aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0013.c (162279B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47017420(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(0x47017420u);
     13 
     14 L_47017420:
     15     PUSH32(esp, ecx); /* 0x47017420: push ecx */
     16     eax = ecx; /* 0x47017421: mov eax, ecx */
     17     ecx = MEM32(esp + 0x8); /* 0x47017423: mov ecx, dword ptr [esp + 8] */
     18     /* test ecx, ecx */ /* 0x47017427: test ecx, ecx */
     19     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     20     _cf = 0;
     21     _flag_k = FK_TEST;
     22     MEM32(esp) = 0; /* 0x47017429: mov dword ptr [esp], 0 */
     23     if (TEST_Z(_flag_a, _flag_b)) goto L_4701745C; /* 0x47017431: je 0x4701745c */
     24 L_47017433:
     25     MEM32(eax) = 0x470ACD98u; /* 0x47017433: mov dword ptr [eax], 0x470acd98 */
     26     MEM32(eax + 0xC) = 0x470ACD90u; /* 0x47017439: mov dword ptr [eax + 0xc], 0x470acd90 */
     27     MEM32(eax + 0x4) = 0x470ACC18u; /* 0x47017440: mov dword ptr [eax + 4], 0x470acc18 */
     28     ecx = MEM32(eax + 0xC); /* 0x47017447: mov ecx, dword ptr [eax + 0xc] */
     29     MEM32(eax + 0x8) = 0x470ACCACu; /* 0x4701744A: mov dword ptr [eax + 8], 0x470accac */
     30     edx = MEM32(ecx + 0x4); /* 0x47017451: mov edx, dword ptr [ecx + 4] */
     31     MEM32(edx + eax + 0xC) = 0x470ACC78u; /* 0x47017454: mov dword ptr [edx + eax + 0xc], 0x470acc78 */
     32 L_4701745C:
     33     ecx = MEM32(eax); /* 0x4701745C: mov ecx, dword ptr [eax] */
     34     edx = MEM32(ecx + 0x4); /* 0x4701745E: mov edx, dword ptr [ecx + 4] */
     35     MEM32(edx + eax) = 0x470ACD5Cu; /* 0x47017461: mov dword ptr [edx + eax], 0x470acd5c */
     36     ecx = MEM32(eax); /* 0x47017468: mov ecx, dword ptr [eax] */
     37     edx = MEM32(ecx + 0x8); /* 0x4701746A: mov edx, dword ptr [ecx + 8] */
     38     MEM32(edx + eax) = 0x470ACD50u; /* 0x4701746D: mov dword ptr [edx + eax], 0x470acd50 */
     39     ecx = POP32_VAL(esp); /* 0x47017474: pop ecx */
     40     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017475: ret 4 */
     41     RECOMP_REGS_OUT();
     42 }
     43 
     44 void sub_47017480(void) {
     45     int _fpu_cmp = 0;
     46     uint32_t _cf = 0;
     47     int _df = 1;
     48     uint32_t _flag_k = FK_NONE;
     49     uint32_t _flag_a = 0, _flag_b = 0;
     50     uint32_t _itail_tgt = 0;
     51     RECOMP_REGS_LOCALS
     52     RECOMP_ENTER(0x47017480u);
     53 
     54 L_47017480:
     55     PUSH32(esp, ecx); /* 0x47017480: push ecx */
     56     eax = ecx; /* 0x47017481: mov eax, ecx */
     57     ecx = MEM32(esp + 0x8); /* 0x47017483: mov ecx, dword ptr [esp + 8] */
     58     /* test ecx, ecx */ /* 0x47017487: test ecx, ecx */
     59     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     60     _cf = 0;
     61     _flag_k = FK_TEST;
     62     MEM32(esp) = 0; /* 0x47017489: mov dword ptr [esp], 0 */
     63     if (TEST_Z(_flag_a, _flag_b)) goto L_470174BD; /* 0x47017491: je 0x470174bd */
     64 L_47017493:
     65     MEM32(eax + 0x4) = 0x470ACDC4u; /* 0x47017493: mov dword ptr [eax + 4], 0x470acdc4 */
     66     MEM32(eax + 0x10) = 0x470ACDBCu; /* 0x4701749A: mov dword ptr [eax + 0x10], 0x470acdbc */
     67     MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x470174A1: mov dword ptr [eax + 8], 0x470acc4c */
     68     ecx = MEM32(eax + 0x10); /* 0x470174A8: mov ecx, dword ptr [eax + 0x10] */
     69     MEM32(eax + 0xC) = 0x470ACCD0u; /* 0x470174AB: mov dword ptr [eax + 0xc], 0x470accd0 */
     70     edx = MEM32(ecx + 0x4); /* 0x470174B2: mov edx, dword ptr [ecx + 4] */
     71     MEM32(edx + eax + 0x10) = 0x470ACCC0u; /* 0x470174B5: mov dword ptr [edx + eax + 0x10], 0x470accc0 */
     72 L_470174BD:
     73     ecx = MEM32(eax + 0x4); /* 0x470174BD: mov ecx, dword ptr [eax + 4] */
     74     MEM32(eax) = 0x470ACDB8u; /* 0x470174C0: mov dword ptr [eax], 0x470acdb8 */
     75     edx = MEM32(ecx + 0x4); /* 0x470174C6: mov edx, dword ptr [ecx + 4] */
     76     MEM32(edx + eax + 0x4) = 0x470ACDA8u; /* 0x470174C9: mov dword ptr [edx + eax + 4], 0x470acda8 */
     77     ecx = MEM32(eax + 0x4); /* 0x470174D1: mov ecx, dword ptr [eax + 4] */
     78     edx = MEM32(ecx + 0x8); /* 0x470174D4: mov edx, dword ptr [ecx + 8] */
     79     MEM32(edx + eax + 0x4) = 0x470ACDA4u; /* 0x470174D7: mov dword ptr [edx + eax + 4], 0x470acda4 */
     80     ecx = POP32_VAL(esp); /* 0x470174DF: pop ecx */
     81     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470174E0: ret 4 */
     82     RECOMP_REGS_OUT();
     83 }
     84 
     85 void sub_470174F0(void) {
     86     int _fpu_cmp = 0;
     87     uint32_t _cf = 0;
     88     int _df = 1;
     89     uint32_t _flag_k = FK_NONE;
     90     uint32_t _flag_a = 0, _flag_b = 0;
     91     uint32_t _itail_tgt = 0;
     92     RECOMP_REGS_LOCALS
     93     RECOMP_ENTER(0x470174F0u);
     94 
     95 L_470174F0:
     96     PUSH32(esp, ecx); /* 0x470174F0: push ecx */
     97     eax = ecx; /* 0x470174F1: mov eax, ecx */
     98     ecx = MEM32(esp + 0x8); /* 0x470174F3: mov ecx, dword ptr [esp + 8] */
     99     /* test ecx, ecx */ /* 0x470174F7: test ecx, ecx */
    100     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    101     _cf = 0;
    102     _flag_k = FK_TEST;
    103     MEM32(esp) = 0; /* 0x470174F9: mov dword ptr [esp], 0 */
    104     if (TEST_Z(_flag_a, _flag_b)) goto L_4701752C; /* 0x47017501: je 0x4701752c */
    105 L_47017503:
    106     MEM32(eax) = 0x470ACE18u; /* 0x47017503: mov dword ptr [eax], 0x470ace18 */
    107     MEM32(eax + 0xC) = 0x470ACE10u; /* 0x47017509: mov dword ptr [eax + 0xc], 0x470ace10 */
    108     MEM32(eax + 0x4) = 0x470ACC18u; /* 0x47017510: mov dword ptr [eax + 4], 0x470acc18 */
    109     ecx = MEM32(eax + 0xC); /* 0x47017517: mov ecx, dword ptr [eax + 0xc] */
    110     MEM32(eax + 0x8) = 0x470ACD10u; /* 0x4701751A: mov dword ptr [eax + 8], 0x470acd10 */
    111     edx = MEM32(ecx + 0x4); /* 0x47017521: mov edx, dword ptr [ecx + 4] */
    112     MEM32(edx + eax + 0xC) = 0x470ACCDCu; /* 0x47017524: mov dword ptr [edx + eax + 0xc], 0x470accdc */
    113 L_4701752C:
    114     ecx = MEM32(eax); /* 0x4701752C: mov ecx, dword ptr [eax] */
    115     edx = MEM32(ecx + 0x4); /* 0x4701752E: mov edx, dword ptr [ecx + 4] */
    116     MEM32(edx + eax) = 0x470ACDDCu; /* 0x47017531: mov dword ptr [edx + eax], 0x470acddc */
    117     ecx = MEM32(eax); /* 0x47017538: mov ecx, dword ptr [eax] */
    118     edx = MEM32(ecx + 0x8); /* 0x4701753A: mov edx, dword ptr [ecx + 8] */
    119     MEM32(edx + eax) = 0x470ACDD0u; /* 0x4701753D: mov dword ptr [edx + eax], 0x470acdd0 */
    120     ecx = POP32_VAL(esp); /* 0x47017544: pop ecx */
    121     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017545: ret 4 */
    122     RECOMP_REGS_OUT();
    123 }
    124 
    125 void sub_47017550(void) {
    126     int _fpu_cmp = 0;
    127     uint32_t _cf = 0;
    128     int _df = 1;
    129     uint32_t _flag_k = FK_NONE;
    130     uint32_t _flag_a = 0, _flag_b = 0;
    131     uint32_t _itail_tgt = 0;
    132     RECOMP_REGS_LOCALS
    133     RECOMP_ENTER(0x47017550u);
    134 
    135 L_47017550:
    136     PUSH32(esp, ecx); /* 0x47017550: push ecx */
    137     eax = ecx; /* 0x47017551: mov eax, ecx */
    138     ecx = MEM32(esp + 0x8); /* 0x47017553: mov ecx, dword ptr [esp + 8] */
    139     /* test ecx, ecx */ /* 0x47017557: test ecx, ecx */
    140     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    141     _cf = 0;
    142     _flag_k = FK_TEST;
    143     MEM32(esp) = 0; /* 0x47017559: mov dword ptr [esp], 0 */
    144     if (TEST_Z(_flag_a, _flag_b)) goto L_47017571; /* 0x47017561: je 0x47017571 */
    145 L_47017563:
    146     MEM32(eax + 0x4) = 0x470ACE38u; /* 0x47017563: mov dword ptr [eax + 4], 0x470ace38 */
    147     MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x4701756A: mov dword ptr [eax + 8], 0x470acc4c */
    148 L_47017571:
    149     ecx = MEM32(eax + 0x4); /* 0x47017571: mov ecx, dword ptr [eax + 4] */
    150     MEM32(eax) = 0x470ACE34u; /* 0x47017574: mov dword ptr [eax], 0x470ace34 */
    151     edx = MEM32(ecx + 0x4); /* 0x4701757A: mov edx, dword ptr [ecx + 4] */
    152     MEM32(edx + eax + 0x4) = 0x470ACE24u; /* 0x4701757D: mov dword ptr [edx + eax + 4], 0x470ace24 */
    153     ecx = POP32_VAL(esp); /* 0x47017585: pop ecx */
    154     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017586: ret 4 */
    155     RECOMP_REGS_OUT();
    156 }
    157 
    158 void sub_47017590(void) {
    159     int _fpu_cmp = 0;
    160     uint32_t _cf = 0;
    161     int _df = 1;
    162     uint32_t _flag_k = FK_NONE;
    163     uint32_t _flag_a = 0, _flag_b = 0;
    164     uint32_t _itail_tgt = 0;
    165     RECOMP_REGS_LOCALS
    166     RECOMP_ENTER(0x47017590u);
    167 
    168 L_47017590:
    169     PUSH32(esp, ecx); /* 0x47017590: push ecx */
    170     eax = ecx; /* 0x47017591: mov eax, ecx */
    171     ecx = MEM32(esp + 0x8); /* 0x47017593: mov ecx, dword ptr [esp + 8] */
    172     /* test ecx, ecx */ /* 0x47017597: test ecx, ecx */
    173     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    174     _cf = 0;
    175     _flag_k = FK_TEST;
    176     MEM32(esp) = 0; /* 0x47017599: mov dword ptr [esp], 0 */
    177     if (TEST_Z(_flag_a, _flag_b)) goto L_470175B1; /* 0x470175A1: je 0x470175b1 */
    178 L_470175A3:
    179     MEM32(eax + 0x4) = 0x470ACE84u; /* 0x470175A3: mov dword ptr [eax + 4], 0x470ace84 */
    180     MEM32(eax + 0x8) = 0x470ACC18u; /* 0x470175AA: mov dword ptr [eax + 8], 0x470acc18 */
    181 L_470175B1:
    182     ecx = MEM32(eax + 0x4); /* 0x470175B1: mov ecx, dword ptr [eax + 4] */
    183     MEM32(eax) = 0x470ACE74u; /* 0x470175B4: mov dword ptr [eax], 0x470ace74 */
    184     edx = MEM32(ecx + 0x4); /* 0x470175BA: mov edx, dword ptr [ecx + 4] */
    185     MEM32(edx + eax + 0x4) = 0x470ACE40u; /* 0x470175BD: mov dword ptr [edx + eax + 4], 0x470ace40 */
    186     ecx = POP32_VAL(esp); /* 0x470175C5: pop ecx */
    187     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470175C6: ret 4 */
    188     RECOMP_REGS_OUT();
    189 }
    190 
    191 void sub_470175D0(void) {
    192     int _fpu_cmp = 0;
    193     uint32_t _cf = 0;
    194     int _df = 1;
    195     uint32_t _flag_k = FK_NONE;
    196     uint32_t _flag_a = 0, _flag_b = 0;
    197     uint32_t _itail_tgt = 0;
    198     RECOMP_REGS_LOCALS
    199     RECOMP_ENTER(0x470175D0u);
    200 
    201 L_470175D0:
    202     PUSH32(esp, ecx); /* 0x470175D0: push ecx */
    203     eax = ecx; /* 0x470175D1: mov eax, ecx */
    204     ecx = MEM32(esp + 0x8); /* 0x470175D3: mov ecx, dword ptr [esp + 8] */
    205     /* test ecx, ecx */ /* 0x470175D7: test ecx, ecx */
    206     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    207     _cf = 0;
    208     _flag_k = FK_TEST;
    209     MEM32(esp) = 0; /* 0x470175D9: mov dword ptr [esp], 0 */
    210     if (TEST_Z(_flag_a, _flag_b)) goto L_470175F1; /* 0x470175E1: je 0x470175f1 */
    211 L_470175E3:
    212     MEM32(eax + 0x4) = 0x470ACED8u; /* 0x470175E3: mov dword ptr [eax + 4], 0x470aced8 */
    213     MEM32(eax + 0x8) = 0x470ACC18u; /* 0x470175EA: mov dword ptr [eax + 8], 0x470acc18 */
    214 L_470175F1:
    215     ecx = MEM32(eax + 0x4); /* 0x470175F1: mov ecx, dword ptr [eax + 4] */
    216     MEM32(eax) = 0x470ACEC0u; /* 0x470175F4: mov dword ptr [eax], 0x470acec0 */
    217     edx = MEM32(ecx + 0x4); /* 0x470175FA: mov edx, dword ptr [ecx + 4] */
    218     MEM32(edx + eax + 0x4) = 0x470ACE8Cu; /* 0x470175FD: mov dword ptr [edx + eax + 4], 0x470ace8c */
    219     ecx = POP32_VAL(esp); /* 0x47017605: pop ecx */
    220     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017606: ret 4 */
    221     RECOMP_REGS_OUT();
    222 }
    223 
    224 void sub_47017610(void) {
    225     int _fpu_cmp = 0;
    226     uint32_t _cf = 0;
    227     int _df = 1;
    228     uint32_t _flag_k = FK_NONE;
    229     uint32_t _flag_a = 0, _flag_b = 0;
    230     uint32_t _itail_tgt = 0;
    231     RECOMP_REGS_LOCALS
    232     RECOMP_ENTER(0x47017610u);
    233 
    234 L_47017610:
    235     MEM32(0x4710DF40) = 0x47104A3Cu; /* 0x47017610: mov dword ptr [0x4710df40], 0x47104a3c */
    236     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701761A: ret  */
    237     RECOMP_REGS_OUT();
    238 }
    239 
    240 void sub_47017620(void) {
    241     int _fpu_cmp = 0;
    242     uint32_t _cf = 0;
    243     int _df = 1;
    244     uint32_t _flag_k = FK_NONE;
    245     uint32_t _flag_a = 0, _flag_b = 0;
    246     uint32_t _itail_tgt = 0;
    247     RECOMP_REGS_LOCALS
    248     RECOMP_ENTER(0x47017620u);
    249 
    250 L_47017620:
    251     MEM32(0x4710DF54) = 0x47104A00u; /* 0x47017620: mov dword ptr [0x4710df54], 0x47104a00 */
    252     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701762A: ret  */
    253     RECOMP_REGS_OUT();
    254 }
    255 
    256 void sub_47017630(void) {
    257     int _fpu_cmp = 0;
    258     uint32_t _cf = 0;
    259     int _df = 1;
    260     uint32_t _flag_k = FK_NONE;
    261     uint32_t _flag_a = 0, _flag_b = 0;
    262     uint32_t _itail_tgt = 0;
    263     RECOMP_REGS_LOCALS
    264     RECOMP_ENTER(0x47017630u);
    265 
    266 L_47017630:
    267     MEM32(0x4710DF50) = 0x47104A70u; /* 0x47017630: mov dword ptr [0x4710df50], 0x47104a70 */
    268     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701763A: ret  */
    269     RECOMP_REGS_OUT();
    270 }
    271 
    272 void sub_47017640(void) {
    273     int _fpu_cmp = 0;
    274     uint32_t _cf = 0;
    275     int _df = 1;
    276     uint32_t _flag_k = FK_NONE;
    277     uint32_t _flag_a = 0, _flag_b = 0;
    278     uint32_t _itail_tgt = 0;
    279     RECOMP_REGS_LOCALS
    280     RECOMP_ENTER(0x47017640u);
    281 
    282 L_47017640:
    283     MEM32(0x4710DF6C) = 0x47104B6Cu; /* 0x47017640: mov dword ptr [0x4710df6c], 0x47104b6c */
    284     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701764A: ret  */
    285     RECOMP_REGS_OUT();
    286 }
    287 
    288 void sub_47017650(void) {
    289     int _fpu_cmp = 0;
    290     uint32_t _cf = 0;
    291     int _df = 1;
    292     uint32_t _flag_k = FK_NONE;
    293     uint32_t _flag_a = 0, _flag_b = 0;
    294     uint32_t _itail_tgt = 0;
    295     RECOMP_REGS_LOCALS
    296     RECOMP_ENTER(0x47017650u);
    297 
    298 L_47017650:
    299     MEM32(0x4710DF48) = 0x47104BA0u; /* 0x47017650: mov dword ptr [0x4710df48], 0x47104ba0 */
    300     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701765A: ret  */
    301     RECOMP_REGS_OUT();
    302 }
    303 
    304 void sub_47017660(void) {
    305     int _fpu_cmp = 0;
    306     uint32_t _cf = 0;
    307     int _df = 1;
    308     uint32_t _flag_k = FK_NONE;
    309     uint32_t _flag_a = 0, _flag_b = 0;
    310     uint32_t _itail_tgt = 0;
    311     RECOMP_REGS_LOCALS
    312     RECOMP_ENTER(0x47017660u);
    313 
    314 L_47017660:
    315     MEM32(0x4710DF68) = 0x47104BD4u; /* 0x47017660: mov dword ptr [0x4710df68], 0x47104bd4 */
    316     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701766A: ret  */
    317     RECOMP_REGS_OUT();
    318 }
    319 
    320 void sub_47017670(void) {
    321     int _fpu_cmp = 0;
    322     uint32_t _cf = 0;
    323     int _df = 1;
    324     uint32_t _flag_k = FK_NONE;
    325     uint32_t _flag_a = 0, _flag_b = 0;
    326     uint32_t _itail_tgt = 0;
    327     RECOMP_REGS_LOCALS
    328     RECOMP_ENTER(0x47017670u);
    329 
    330 L_47017670:
    331     MEM32(0x4710DF64) = 0x471050FCu; /* 0x47017670: mov dword ptr [0x4710df64], 0x471050fc */
    332     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701767A: ret  */
    333     RECOMP_REGS_OUT();
    334 }
    335 
    336 void sub_47017680(void) {
    337     int _fpu_cmp = 0;
    338     uint32_t _cf = 0;
    339     int _df = 1;
    340     uint32_t _flag_k = FK_NONE;
    341     uint32_t _flag_a = 0, _flag_b = 0;
    342     uint32_t _itail_tgt = 0;
    343     RECOMP_REGS_LOCALS
    344     RECOMP_ENTER(0x47017680u);
    345 
    346 L_47017680:
    347     MEM32(0x4710DF60) = 0x47105658u; /* 0x47017680: mov dword ptr [0x4710df60], 0x47105658 */
    348     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701768A: ret  */
    349     RECOMP_REGS_OUT();
    350 }
    351 
    352 void sub_47017690(void) {
    353     int _fpu_cmp = 0;
    354     uint32_t _cf = 0;
    355     int _df = 1;
    356     uint32_t _flag_k = FK_NONE;
    357     uint32_t _flag_a = 0, _flag_b = 0;
    358     uint32_t _itail_tgt = 0;
    359     RECOMP_REGS_LOCALS
    360     RECOMP_ENTER(0x47017690u);
    361 
    362 L_47017690:
    363     MEM32(0x4710DF44) = 0x47105690u; /* 0x47017690: mov dword ptr [0x4710df44], 0x47105690 */
    364     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701769A: ret  */
    365     RECOMP_REGS_OUT();
    366 }
    367 
    368 void sub_470176A0(void) {
    369     int _fpu_cmp = 0;
    370     uint32_t _cf = 0;
    371     int _df = 1;
    372     uint32_t _flag_k = FK_NONE;
    373     uint32_t _flag_a = 0, _flag_b = 0;
    374     uint32_t _itail_tgt = 0;
    375     RECOMP_REGS_LOCALS
    376     RECOMP_ENTER(0x470176A0u);
    377 
    378 L_470176A0:
    379     PUSH32(esp, esi); /* 0x470176A0: push esi */
    380     esi = MEM32(esp + 0x8); /* 0x470176A1: mov esi, dword ptr [esp + 8] */
    381     PUSH32(esp, edi); /* 0x470176A5: push edi */
    382     eax = ecx; /* 0x470176A6: mov eax, ecx */
    383     ecx = 8; /* 0x470176A8: mov ecx, 8 */
    384     edi = eax; /* 0x470176AD: mov edi, eax */
    385     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470176AF: 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; }
    386     edi = POP32_VAL(esp); /* 0x470176B1: pop edi */
    387     esi = POP32_VAL(esp); /* 0x470176B2: pop esi */
    388     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470176B3: ret 4 */
    389     RECOMP_REGS_OUT();
    390 }
    391 
    392 void sub_470176C0(void) {
    393     int _fpu_cmp = 0;
    394     uint32_t _cf = 0;
    395     int _df = 1;
    396     uint32_t _flag_k = FK_NONE;
    397     uint32_t _flag_a = 0, _flag_b = 0;
    398     uint32_t _itail_tgt = 0;
    399     RECOMP_REGS_LOCALS
    400     RECOMP_ENTER(0x470176C0u);
    401 
    402 L_470176C0:
    403     PUSH32(esp, ebx); /* 0x470176C0: push ebx */
    404     PUSH32(esp, ebp); /* 0x470176C1: push ebp */
    405     PUSH32(esp, esi); /* 0x470176C2: push esi */
    406     PUSH32(esp, edi); /* 0x470176C3: push edi */
    407     RECOMP_ICALL(0x47030750u); /* 0x470176C4: call 0x47030750 */ /* not lifted */
    408     RECOMP_FLAGS_IN();
    409     esi = MEM32(esp + 0x1C); /* 0x470176C9: mov esi, dword ptr [esp + 0x1c] */
    410     edi = MEM32(esp + 0x18); /* 0x470176CD: mov edi, dword ptr [esp + 0x18] */
    411     PUSH32(esp, 0); /* 0x470176D1: push 0 */
    412     PUSH32(esp, 0x000F4240u); /* 0x470176D3: push 0xf4240 */
    413     PUSH32(esp, esi); /* 0x470176D8: push esi */
    414     PUSH32(esp, edi); /* 0x470176D9: push edi */
    415     ebx = eax; /* 0x470176DA: mov ebx, eax */
    416     RECOMP_ICALL(0x470A3500u); /* 0x470176DC: call 0x470a3500 */ /* not lifted */
    417     RECOMP_FLAGS_IN();
    418     PUSH32(esp, 0); /* 0x470176E1: push 0 */
    419     PUSH32(esp, ebx); /* 0x470176E3: push ebx */
    420     PUSH32(esp, edx); /* 0x470176E4: push edx */
    421     PUSH32(esp, eax); /* 0x470176E5: push eax */
    422     RECOMP_ICALL(0x470A3500u); /* 0x470176E6: call 0x470a3500 */ /* not lifted */
    423     RECOMP_FLAGS_IN();
    424     ebp = MEM32(esp + 0x14); /* 0x470176EB: mov ebp, dword ptr [esp + 0x14] */
    425     ebx = eax; /* 0x470176EF: mov ebx, eax */
    426     MEM32(ebp) = ebx; /* 0x470176F1: mov dword ptr [ebp], ebx */
    427     RECOMP_ICALL(0x47030750u); /* 0x470176F4: call 0x47030750 */ /* not lifted */
    428     RECOMP_FLAGS_IN();
    429     eax = eax + eax * 4; /* 0x470176F9: lea eax, [eax + eax*4] */
    430     eax = eax + eax * 4; /* 0x470176FC: lea eax, [eax + eax*4] */
    431     eax = eax + eax * 4; /* 0x470176FF: lea eax, [eax + eax*4] */
    432     eax = eax + eax * 4; /* 0x47017702: lea eax, [eax + eax*4] */
    433     eax = eax + eax * 4; /* 0x47017705: lea eax, [eax + eax*4] */
    434     ecx = eax + eax * 4; /* 0x47017708: lea ecx, [eax + eax*4] */
    435     eax = ebx; /* 0x4701770B: mov eax, ebx */
    436     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4701770D: cdq  */
    437     PUSH32(esp, edx); /* 0x4701770E: push edx */
    438     PUSH32(esp, eax); /* 0x4701770F: push eax */
    439     if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x47017710: shl ecx, 6 */
    440     if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    441     ecx = ecx << 6u; /* 0x47017710: shl ecx, 6 */
    442     PUSH32(esp, 0); /* 0x47017713: push 0 */
    443     PUSH32(esp, ecx); /* 0x47017715: push ecx */
    444     RECOMP_ICALL(0x470A34C0u); /* 0x47017716: call 0x470a34c0 */ /* not lifted */
    445     RECOMP_FLAGS_IN();
    446     ebx = eax; /* 0x4701771B: mov ebx, eax */
    447     MEM32(esp + 0x1C) = edx; /* 0x4701771D: mov dword ptr [esp + 0x1c], edx */
    448     RECOMP_ICALL(0x47030750u); /* 0x47017721: call 0x47030750 */ /* not lifted */
    449     RECOMP_FLAGS_IN();
    450     ecx = MEM32(esp + 0x1C); /* 0x47017726: mov ecx, dword ptr [esp + 0x1c] */
    451     PUSH32(esp, 0); /* 0x4701772A: push 0 */
    452     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    454     edi = edi - ebx; /* 0x4701772C: sub edi, ebx */
    455     _flag_k = FK_CMP;
    456     PUSH32(esp, eax); /* 0x4701772E: push eax */
    457     { uint32_t _sa = esi, _sb = ecx, _sc = _cf; /* 0x4701772F: sbb esi, ecx */
    458       esi = _sa - _sb - _sc;
    459       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    460       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    461     PUSH32(esp, esi); /* 0x47017731: push esi */
    462     PUSH32(esp, edi); /* 0x47017732: push edi */
    463     RECOMP_ICALL(0x470A3500u); /* 0x47017733: call 0x470a3500 */ /* not lifted */
    464     RECOMP_FLAGS_IN();
    465     edi = POP32_VAL(esp); /* 0x47017738: pop edi */
    466     esi = POP32_VAL(esp); /* 0x47017739: pop esi */
    467     MEM32(ebp + 0x4) = eax; /* 0x4701773A: mov dword ptr [ebp + 4], eax */
    468     ebp = POP32_VAL(esp); /* 0x4701773D: pop ebp */
    469     ebx = POP32_VAL(esp); /* 0x4701773E: pop ebx */
    470     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701773F: ret  */
    471     RECOMP_REGS_OUT();
    472 }
    473 
    474 void sub_47017740(void) {
    475     int _fpu_cmp = 0;
    476     uint32_t _cf = 0;
    477     int _df = 1;
    478     uint32_t _flag_k = FK_NONE;
    479     uint32_t _flag_a = 0, _flag_b = 0;
    480     uint32_t _itail_tgt = 0;
    481     RECOMP_REGS_LOCALS
    482     RECOMP_ENTER(0x47017740u);
    483 
    484 L_47017740:
    485     eax = MEM32(0x4710E330); /* 0x47017740: mov eax, dword ptr [0x4710e330] */
    486     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    488     esp = esp - 0x18u; /* 0x47017745: sub esp, 0x18 */
    489     _flag_k = FK_CMP;
    490     /* test eax, eax */ /* 0x47017748: test eax, eax */
    491     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    492     _cf = 0;
    493     _flag_k = FK_TEST;
    494     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017751; /* 0x4701774A: jne 0x47017751 */
    495 L_4701774C:
    496     RECOMP_ICALL(0x47030750u); /* 0x4701774C: call 0x47030750 */ /* not lifted */
    497     RECOMP_FLAGS_IN();
    498 L_47017751:
    499     /* cmp MEM32(0x4710E330), 0xFFFFFFFFu */ /* 0x47017751: cmp dword ptr [0x4710e330], -1 */
    500     _flag_a = (uint32_t)(MEM32(0x4710E330)); _flag_b = (uint32_t)(0xFFFFFFFFu);
    501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    502     _flag_k = FK_CMP;
    503     if (CMP_NE(_flag_a, _flag_b)) goto L_47017789; /* 0x47017758: jne 0x47017789 */
    504 L_4701775A:
    505     eax = esp; /* 0x4701775A: lea eax, [esp] */
    506     PUSH32(esp, eax); /* 0x4701775E: push eax */
    507     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x4701775F: call dword ptr [0x470ac1a8] */
    508     RECOMP_FLAGS_IN();
    509     ecx = esp; /* 0x47017765: lea ecx, [esp] */
    510     PUSH32(esp, ecx); /* 0x47017769: push ecx */
    511     ecx = esp + 0xC; /* 0x4701776A: lea ecx, [esp + 0xc] */
    512     RECOMP_ICALL(0x47053F10u); /* 0x4701776E: call 0x47053f10 */ /* not lifted */
    513     RECOMP_FLAGS_IN();
    514     ecx = MEM32(eax); /* 0x47017773: mov ecx, dword ptr [eax] */
    515     MEM32(esp + 0x10) = ecx; /* 0x47017775: mov dword ptr [esp + 0x10], ecx */
    516     edx = MEM32(eax + 0x4); /* 0x47017779: mov edx, dword ptr [eax + 4] */
    517     eax = MEM32(esp + 0x1C); /* 0x4701777C: mov eax, dword ptr [esp + 0x1c] */
    518     MEM32(eax) = ecx; /* 0x47017780: mov dword ptr [eax], ecx */
    519     MEM32(eax + 0x4) = edx; /* 0x47017782: mov dword ptr [eax + 4], edx */
    520     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    521     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    522     esp = esp + 0x18u; /* 0x47017785: add esp, 0x18 */
    523     _flag_k = FK_ADD;
    524     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017788: ret  */
    525 L_47017789:
    526     PUSH32(esp, ebx); /* 0x47017789: push ebx */
    527     PUSH32(esp, ebp); /* 0x4701778A: push ebp */
    528     PUSH32(esp, esi); /* 0x4701778B: push esi */
    529     PUSH32(esp, edi); /* 0x4701778C: push edi */
    530     edx = esp + 0x10; /* 0x4701778D: lea edx, [esp + 0x10] */
    531     PUSH32(esp, edx); /* 0x47017791: push edx */
    532     RECOMP_ICALL(MEM32(0x470AC0F0)); /* 0x47017792: call dword ptr [0x470ac0f0] */
    533     RECOMP_FLAGS_IN();
    534     esi = MEM32(esp + 0x10); /* 0x47017798: mov esi, dword ptr [esp + 0x10] */
    535     edi = MEM32(esp + 0x14); /* 0x4701779C: mov edi, dword ptr [esp + 0x14] */
    536     RECOMP_ICALL(0x47030750u); /* 0x470177A0: call 0x47030750 */ /* not lifted */
    537     RECOMP_FLAGS_IN();
    538     PUSH32(esp, 0); /* 0x470177A5: push 0 */
    539     PUSH32(esp, 0x000F4240u); /* 0x470177A7: push 0xf4240 */
    540     PUSH32(esp, edi); /* 0x470177AC: push edi */
    541     PUSH32(esp, esi); /* 0x470177AD: push esi */
    542     ebx = eax; /* 0x470177AE: mov ebx, eax */
    543     RECOMP_ICALL(0x470A3500u); /* 0x470177B0: call 0x470a3500 */ /* not lifted */
    544     RECOMP_FLAGS_IN();
    545     PUSH32(esp, 0); /* 0x470177B5: push 0 */
    546     PUSH32(esp, ebx); /* 0x470177B7: push ebx */
    547     PUSH32(esp, edx); /* 0x470177B8: push edx */
    548     PUSH32(esp, eax); /* 0x470177B9: push eax */
    549     RECOMP_ICALL(0x470A3500u); /* 0x470177BA: call 0x470a3500 */ /* not lifted */
    550     RECOMP_FLAGS_IN();
    551     ebx = eax; /* 0x470177BF: mov ebx, eax */
    552     RECOMP_ICALL(0x47030750u); /* 0x470177C1: call 0x47030750 */ /* not lifted */
    553     RECOMP_FLAGS_IN();
    554     eax = eax + eax * 4; /* 0x470177C6: lea eax, [eax + eax*4] */
    555     eax = eax + eax * 4; /* 0x470177C9: lea eax, [eax + eax*4] */
    556     eax = eax + eax * 4; /* 0x470177CC: lea eax, [eax + eax*4] */
    557     eax = eax + eax * 4; /* 0x470177CF: lea eax, [eax + eax*4] */
    558     eax = eax + eax * 4; /* 0x470177D2: lea eax, [eax + eax*4] */
    559     ecx = eax + eax * 4; /* 0x470177D5: lea ecx, [eax + eax*4] */
    560     eax = ebx; /* 0x470177D8: mov eax, ebx */
    561     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470177DA: cdq  */
    562     PUSH32(esp, edx); /* 0x470177DB: push edx */
    563     PUSH32(esp, eax); /* 0x470177DC: push eax */
    564     if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x470177DD: shl ecx, 6 */
    565     if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    566     ecx = ecx << 6u; /* 0x470177DD: shl ecx, 6 */
    567     PUSH32(esp, 0); /* 0x470177E0: push 0 */
    568     PUSH32(esp, ecx); /* 0x470177E2: push ecx */
    569     RECOMP_ICALL(0x470A34C0u); /* 0x470177E3: call 0x470a34c0 */ /* not lifted */
    570     RECOMP_FLAGS_IN();
    571     ebp = eax; /* 0x470177E8: mov ebp, eax */
    572     MEM32(esp + 0x1C) = edx; /* 0x470177EA: mov dword ptr [esp + 0x1c], edx */
    573     RECOMP_ICALL(0x47030750u); /* 0x470177EE: call 0x47030750 */ /* not lifted */
    574     RECOMP_FLAGS_IN();
    575     ecx = MEM32(esp + 0x1C); /* 0x470177F3: mov ecx, dword ptr [esp + 0x1c] */
    576     PUSH32(esp, 0); /* 0x470177F7: push 0 */
    577     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
    578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    579     esi = esi - ebp; /* 0x470177F9: sub esi, ebp */
    580     _flag_k = FK_CMP;
    581     PUSH32(esp, eax); /* 0x470177FB: push eax */
    582     { uint32_t _sa = edi, _sb = ecx, _sc = _cf; /* 0x470177FC: sbb edi, ecx */
    583       edi = _sa - _sb - _sc;
    584       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    585       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    586     PUSH32(esp, edi); /* 0x470177FE: push edi */
    587     PUSH32(esp, esi); /* 0x470177FF: push esi */
    588     RECOMP_ICALL(0x470A3500u); /* 0x47017800: call 0x470a3500 */ /* not lifted */
    589     RECOMP_FLAGS_IN();
    590     edi = POP32_VAL(esp); /* 0x47017805: pop edi */
    591     ecx = eax; /* 0x47017806: mov ecx, eax */
    592     eax = MEM32(esp + 0x28); /* 0x47017808: mov eax, dword ptr [esp + 0x28] */
    593     esi = POP32_VAL(esp); /* 0x4701780C: pop esi */
    594     MEM32(eax) = ebx; /* 0x4701780D: mov dword ptr [eax], ebx */
    595     ebp = POP32_VAL(esp); /* 0x4701780F: pop ebp */
    596     MEM32(eax + 0x4) = ecx; /* 0x47017810: mov dword ptr [eax + 4], ecx */
    597     ebx = POP32_VAL(esp); /* 0x47017813: pop ebx */
    598     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    599     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    600     esp = esp + 0x18u; /* 0x47017814: add esp, 0x18 */
    601     _flag_k = FK_ADD;
    602     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017817: ret  */
    603     RECOMP_REGS_OUT();
    604 }
    605 
    606 void sub_47017820(void) {
    607     int _fpu_cmp = 0;
    608     uint32_t _cf = 0;
    609     int _df = 1;
    610     uint32_t _flag_k = FK_NONE;
    611     uint32_t _flag_a = 0, _flag_b = 0;
    612     uint32_t _itail_tgt = 0;
    613     RECOMP_REGS_LOCALS
    614     RECOMP_ENTER(0x47017820u);
    615 
    616 L_47017820:
    617     eax = MEM32(0x4710E330); /* 0x47017820: mov eax, dword ptr [0x4710e330] */
    618     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    620     esp = esp - 0x18u; /* 0x47017825: sub esp, 0x18 */
    621     _flag_k = FK_CMP;
    622     /* test eax, eax */ /* 0x47017828: test eax, eax */
    623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    624     _cf = 0;
    625     _flag_k = FK_TEST;
    626     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017831; /* 0x4701782A: jne 0x47017831 */
    627 L_4701782C:
    628     RECOMP_ICALL(0x47030750u); /* 0x4701782C: call 0x47030750 */ /* not lifted */
    629     RECOMP_FLAGS_IN();
    630 L_47017831:
    631     /* cmp MEM32(0x4710E330), 0xFFFFFFFFu */ /* 0x47017831: cmp dword ptr [0x4710e330], -1 */
    632     _flag_a = (uint32_t)(MEM32(0x4710E330)); _flag_b = (uint32_t)(0xFFFFFFFFu);
    633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    634     _flag_k = FK_CMP;
    635     if (CMP_NE(_flag_a, _flag_b)) goto L_47017881; /* 0x47017838: jne 0x47017881 */
    636 L_4701783A:
    637     eax = esp; /* 0x4701783A: lea eax, [esp] */
    638     PUSH32(esp, eax); /* 0x4701783E: push eax */
    639     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x4701783F: call dword ptr [0x470ac1a8] */
    640     RECOMP_FLAGS_IN();
    641     ecx = esp; /* 0x47017845: lea ecx, [esp] */
    642     PUSH32(esp, ecx); /* 0x47017849: push ecx */
    643     ecx = esp + 0x14; /* 0x4701784A: lea ecx, [esp + 0x14] */
    644     RECOMP_ICALL(0x47053F10u); /* 0x4701784E: call 0x47053f10 */ /* not lifted */
    645     RECOMP_FLAGS_IN();
    646     edx = MEM32(eax); /* 0x47017853: mov edx, dword ptr [eax] */
    647     MEM32(esp + 0x8) = edx; /* 0x47017855: mov dword ptr [esp + 8], edx */
    648     ecx = MEM32(eax + 0x4); /* 0x47017859: mov ecx, dword ptr [eax + 4] */
    649     MEM32(esp + 0xC) = ecx; /* 0x4701785C: mov dword ptr [esp + 0xc], ecx */
    650     ecx = MEM32(eax); /* 0x47017860: mov ecx, dword ptr [eax] */
    651     edx = MEM32(eax + 0x4); /* 0x47017862: mov edx, dword ptr [eax + 4] */
    652     eax = ecx + ecx * 4; /* 0x47017865: lea eax, [ecx + ecx*4] */
    653     eax = eax + eax * 4; /* 0x47017868: lea eax, [eax + eax*4] */
    654     eax = eax + eax * 4; /* 0x4701786B: lea eax, [eax + eax*4] */
    655     eax = eax + eax * 4; /* 0x4701786E: lea eax, [eax + eax*4] */
    656     eax = eax + eax * 4; /* 0x47017871: lea eax, [eax + eax*4] */
    657     eax = eax + eax * 4; /* 0x47017874: lea eax, [eax + eax*4] */
    658     if (6u) _cf = (((eax) >> 26) & 1u); /* 0x47017877: shl eax, 6 */
    659     if (6u) { _flag_a = recomp_flags_pack((eax << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    660     eax = eax << 6u; /* 0x47017877: shl eax, 6 */
    661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    663     eax = eax + edx; /* 0x4701787A: add eax, edx */
    664     _flag_k = FK_ADD;
    665     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4701787C: cdq  */
    666     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    668     esp = esp + 0x18u; /* 0x4701787D: add esp, 0x18 */
    669     _flag_k = FK_ADD;
    670     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017880: ret  */
    671 L_47017881:
    672     edx = esp; /* 0x47017881: lea edx, [esp] */
    673     PUSH32(esp, edx); /* 0x47017885: push edx */
    674     RECOMP_ICALL(MEM32(0x470AC0F0)); /* 0x47017886: call dword ptr [0x470ac0f0] */
    675     RECOMP_FLAGS_IN();
    676     eax = MEM32(esp); /* 0x4701788C: mov eax, dword ptr [esp] */
    677     edx = MEM32(esp + 0x4); /* 0x47017890: mov edx, dword ptr [esp + 4] */
    678     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    679     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    680     esp = esp + 0x18u; /* 0x47017894: add esp, 0x18 */
    681     _flag_k = FK_ADD;
    682     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017897: ret  */
    683     RECOMP_REGS_OUT();
    684 }
    685 
    686 void sub_470178A0(void) {
    687     int _fpu_cmp = 0;
    688     uint32_t _cf = 0;
    689     int _df = 1;
    690     uint32_t _flag_k = FK_NONE;
    691     uint32_t _flag_a = 0, _flag_b = 0;
    692     uint32_t _itail_tgt = 0;
    693     RECOMP_REGS_LOCALS
    694     RECOMP_ENTER(0x470178A0u);
    695 
    696 L_470178A0:
    697     eax = MEM32(0x4710E330); /* 0x470178A0: mov eax, dword ptr [0x4710e330] */
    698     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    700     esp = esp - 0x20u; /* 0x470178A5: sub esp, 0x20 */
    701     _flag_k = FK_CMP;
    702     /* test eax, eax */ /* 0x470178A8: test eax, eax */
    703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    704     _cf = 0;
    705     _flag_k = FK_TEST;
    706     PUSH32(esp, esi); /* 0x470178AA: push esi */
    707     esi = ecx; /* 0x470178AB: mov esi, ecx */
    708     if (TEST_NZ(_flag_a, _flag_b)) goto L_470178B4; /* 0x470178AD: jne 0x470178b4 */
    709 L_470178AF:
    710     RECOMP_ICALL(0x47030750u); /* 0x470178AF: call 0x47030750 */ /* not lifted */
    711     RECOMP_FLAGS_IN();
    712 L_470178B4:
    713     /* cmp MEM32(0x4710E330), 0xFFFFFFFFu */ /* 0x470178B4: cmp dword ptr [0x4710e330], -1 */
    714     _flag_a = (uint32_t)(MEM32(0x4710E330)); _flag_b = (uint32_t)(0xFFFFFFFFu);
    715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    716     _flag_k = FK_CMP;
    717     if (CMP_NE(_flag_a, _flag_b)) goto L_4701790C; /* 0x470178BB: jne 0x4701790c */
    718 L_470178BD:
    719     eax = esp + 0xC; /* 0x470178BD: lea eax, [esp + 0xc] */
    720     PUSH32(esp, eax); /* 0x470178C1: push eax */
    721     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x470178C2: call dword ptr [0x470ac1a8] */
    722     RECOMP_FLAGS_IN();
    723     ecx = esp + 0xC; /* 0x470178C8: lea ecx, [esp + 0xc] */
    724     PUSH32(esp, ecx); /* 0x470178CC: push ecx */
    725     ecx = esp + 0x20; /* 0x470178CD: lea ecx, [esp + 0x20] */
    726     RECOMP_ICALL(0x47053F10u); /* 0x470178D1: call 0x47053f10 */ /* not lifted */
    727     RECOMP_FLAGS_IN();
    728     edx = MEM32(eax); /* 0x470178D6: mov edx, dword ptr [eax] */
    729     MEM32(esp + 0x14) = edx; /* 0x470178D8: mov dword ptr [esp + 0x14], edx */
    730     ecx = MEM32(eax + 0x4); /* 0x470178DC: mov ecx, dword ptr [eax + 4] */
    731     MEM32(esp + 0x18) = ecx; /* 0x470178DF: mov dword ptr [esp + 0x18], ecx */
    732     ecx = MEM32(eax); /* 0x470178E3: mov ecx, dword ptr [eax] */
    733     edx = MEM32(eax + 0x4); /* 0x470178E5: mov edx, dword ptr [eax + 4] */
    734     eax = ecx + ecx * 4; /* 0x470178E8: lea eax, [ecx + ecx*4] */
    735     eax = eax + eax * 4; /* 0x470178EB: lea eax, [eax + eax*4] */
    736     eax = eax + eax * 4; /* 0x470178EE: lea eax, [eax + eax*4] */
    737     eax = eax + eax * 4; /* 0x470178F1: lea eax, [eax + eax*4] */
    738     eax = eax + eax * 4; /* 0x470178F4: lea eax, [eax + eax*4] */
    739     eax = eax + eax * 4; /* 0x470178F7: lea eax, [eax + eax*4] */
    740     if (6u) _cf = (((eax) >> 26) & 1u); /* 0x470178FA: shl eax, 6 */
    741     if (6u) { _flag_a = recomp_flags_pack((eax << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    742     eax = eax << 6u; /* 0x470178FA: shl eax, 6 */
    743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    745     eax = eax + edx; /* 0x470178FD: add eax, edx */
    746     _flag_k = FK_ADD;
    747     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470178FF: cdq  */
    748     MEM32(esi) = eax; /* 0x47017900: mov dword ptr [esi], eax */
    749     MEM32(esi + 0x4) = edx; /* 0x47017902: mov dword ptr [esi + 4], edx */
    750     esi = POP32_VAL(esp); /* 0x47017905: pop esi */
    751     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    753     esp = esp + 0x20u; /* 0x47017906: add esp, 0x20 */
    754     _flag_k = FK_ADD;
    755     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017909: ret 4 */
    756 L_4701790C:
    757     edx = esp + 0x4; /* 0x4701790C: lea edx, [esp + 4] */
    758     PUSH32(esp, edx); /* 0x47017910: push edx */
    759     RECOMP_ICALL(MEM32(0x470AC0F0)); /* 0x47017911: call dword ptr [0x470ac0f0] */
    760     RECOMP_FLAGS_IN();
    761     eax = MEM32(esp + 0x4); /* 0x47017917: mov eax, dword ptr [esp + 4] */
    762     edx = MEM32(esp + 0x8); /* 0x4701791B: mov edx, dword ptr [esp + 8] */
    763     MEM32(esi) = eax; /* 0x4701791F: mov dword ptr [esi], eax */
    764     MEM32(esi + 0x4) = edx; /* 0x47017921: mov dword ptr [esi + 4], edx */
    765     esi = POP32_VAL(esp); /* 0x47017924: pop esi */
    766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    768     esp = esp + 0x20u; /* 0x47017925: add esp, 0x20 */
    769     _flag_k = FK_ADD;
    770     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017928: ret 4 */
    771     RECOMP_REGS_OUT();
    772 }
    773 
    774 void sub_47017930(void) {
    775     int _fpu_cmp = 0;
    776     uint32_t _cf = 0;
    777     int _df = 1;
    778     uint32_t _flag_k = FK_NONE;
    779     uint32_t _flag_a = 0, _flag_b = 0;
    780     uint32_t _itail_tgt = 0;
    781     RECOMP_REGS_LOCALS
    782     RECOMP_ENTER(0x47017930u);
    783 
    784 L_47017930:
    785     eax = MEM32(0x4710E330); /* 0x47017930: mov eax, dword ptr [0x4710e330] */
    786     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    788     esp = esp - 0x20u; /* 0x47017935: sub esp, 0x20 */
    789     _flag_k = FK_CMP;
    790     /* test eax, eax */ /* 0x47017938: test eax, eax */
    791     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    792     _cf = 0;
    793     _flag_k = FK_TEST;
    794     PUSH32(esp, esi); /* 0x4701793A: push esi */
    795     esi = ecx; /* 0x4701793B: mov esi, ecx */
    796     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017944; /* 0x4701793D: jne 0x47017944 */
    797 L_4701793F:
    798     RECOMP_ICALL(0x47030750u); /* 0x4701793F: call 0x47030750 */ /* not lifted */
    799     RECOMP_FLAGS_IN();
    800 L_47017944:
    801     /* cmp MEM32(0x4710E330), 0xFFFFFFFFu */ /* 0x47017944: cmp dword ptr [0x4710e330], -1 */
    802     _flag_a = (uint32_t)(MEM32(0x4710E330)); _flag_b = (uint32_t)(0xFFFFFFFFu);
    803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    804     _flag_k = FK_CMP;
    805     if (CMP_NE(_flag_a, _flag_b)) goto L_4701799D; /* 0x4701794B: jne 0x4701799d */
    806 L_4701794D:
    807     eax = esp + 0xC; /* 0x4701794D: lea eax, [esp + 0xc] */
    808     PUSH32(esp, eax); /* 0x47017951: push eax */
    809     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x47017952: call dword ptr [0x470ac1a8] */
    810     RECOMP_FLAGS_IN();
    811     ecx = esp + 0xC; /* 0x47017958: lea ecx, [esp + 0xc] */
    812     PUSH32(esp, ecx); /* 0x4701795C: push ecx */
    813     ecx = esp + 0x20; /* 0x4701795D: lea ecx, [esp + 0x20] */
    814     RECOMP_ICALL(0x47053F10u); /* 0x47017961: call 0x47053f10 */ /* not lifted */
    815     RECOMP_FLAGS_IN();
    816     edx = MEM32(eax); /* 0x47017966: mov edx, dword ptr [eax] */
    817     MEM32(esp + 0x14) = edx; /* 0x47017968: mov dword ptr [esp + 0x14], edx */
    818     ecx = MEM32(eax + 0x4); /* 0x4701796C: mov ecx, dword ptr [eax + 4] */
    819     MEM32(esp + 0x18) = ecx; /* 0x4701796F: mov dword ptr [esp + 0x18], ecx */
    820     ecx = MEM32(eax); /* 0x47017973: mov ecx, dword ptr [eax] */
    821     edx = MEM32(eax + 0x4); /* 0x47017975: mov edx, dword ptr [eax + 4] */
    822     eax = ecx + ecx * 4; /* 0x47017978: lea eax, [ecx + ecx*4] */
    823     eax = eax + eax * 4; /* 0x4701797B: lea eax, [eax + eax*4] */
    824     eax = eax + eax * 4; /* 0x4701797E: lea eax, [eax + eax*4] */
    825     eax = eax + eax * 4; /* 0x47017981: lea eax, [eax + eax*4] */
    826     eax = eax + eax * 4; /* 0x47017984: lea eax, [eax + eax*4] */
    827     eax = eax + eax * 4; /* 0x47017987: lea eax, [eax + eax*4] */
    828     if (6u) _cf = (((eax) >> 26) & 1u); /* 0x4701798A: shl eax, 6 */
    829     if (6u) { _flag_a = recomp_flags_pack((eax << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    830     eax = eax << 6u; /* 0x4701798A: shl eax, 6 */
    831     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    832     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    833     eax = eax + edx; /* 0x4701798D: add eax, edx */
    834     _flag_k = FK_ADD;
    835     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x4701798F: cdq  */
    836     MEM32(esi + 0x8) = eax; /* 0x47017990: mov dword ptr [esi + 8], eax */
    837     MEM32(esi + 0xC) = edx; /* 0x47017993: mov dword ptr [esi + 0xc], edx */
    838     esi = POP32_VAL(esp); /* 0x47017996: pop esi */
    839     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    840     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    841     esp = esp + 0x20u; /* 0x47017997: add esp, 0x20 */
    842     _flag_k = FK_ADD;
    843     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701799A: ret 4 */
    844 L_4701799D:
    845     edx = esp + 0x4; /* 0x4701799D: lea edx, [esp + 4] */
    846     PUSH32(esp, edx); /* 0x470179A1: push edx */
    847     RECOMP_ICALL(MEM32(0x470AC0F0)); /* 0x470179A2: call dword ptr [0x470ac0f0] */
    848     RECOMP_FLAGS_IN();
    849     eax = MEM32(esp + 0x4); /* 0x470179A8: mov eax, dword ptr [esp + 4] */
    850     edx = MEM32(esp + 0x8); /* 0x470179AC: mov edx, dword ptr [esp + 8] */
    851     MEM32(esi + 0x8) = eax; /* 0x470179B0: mov dword ptr [esi + 8], eax */
    852     MEM32(esi + 0xC) = edx; /* 0x470179B3: mov dword ptr [esi + 0xc], edx */
    853     esi = POP32_VAL(esp); /* 0x470179B6: pop esi */
    854     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    855     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    856     esp = esp + 0x20u; /* 0x470179B7: add esp, 0x20 */
    857     _flag_k = FK_ADD;
    858     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470179BA: ret 4 */
    859     RECOMP_REGS_OUT();
    860 }
    861 
    862 void sub_470179C0(void) {
    863     int _fpu_cmp = 0;
    864     uint32_t _cf = 0;
    865     int _df = 1;
    866     uint32_t _flag_k = FK_NONE;
    867     uint32_t _flag_a = 0, _flag_b = 0;
    868     uint32_t _itail_tgt = 0;
    869     RECOMP_REGS_LOCALS
    870     RECOMP_ENTER(0x470179C0u);
    871 
    872 L_470179C0:
    873     eax = MEM32(0x4710E330); /* 0x470179C0: mov eax, dword ptr [0x4710e330] */
    874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    876     esp = esp - 0x20u; /* 0x470179C5: sub esp, 0x20 */
    877     _flag_k = FK_CMP;
    878     /* test eax, eax */ /* 0x470179C8: test eax, eax */
    879     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    880     _cf = 0;
    881     _flag_k = FK_TEST;
    882     PUSH32(esp, esi); /* 0x470179CA: push esi */
    883     esi = ecx; /* 0x470179CB: mov esi, ecx */
    884     if (TEST_NZ(_flag_a, _flag_b)) goto L_470179D4; /* 0x470179CD: jne 0x470179d4 */
    885 L_470179CF:
    886     RECOMP_ICALL(0x47030750u); /* 0x470179CF: call 0x47030750 */ /* not lifted */
    887     RECOMP_FLAGS_IN();
    888 L_470179D4:
    889     /* cmp MEM32(0x4710E330), 0xFFFFFFFFu */ /* 0x470179D4: cmp dword ptr [0x4710e330], -1 */
    890     _flag_a = (uint32_t)(MEM32(0x4710E330)); _flag_b = (uint32_t)(0xFFFFFFFFu);
    891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    892     _flag_k = FK_CMP;
    893     if (CMP_NE(_flag_a, _flag_b)) goto L_47017A2D; /* 0x470179DB: jne 0x47017a2d */
    894 L_470179DD:
    895     eax = esp + 0xC; /* 0x470179DD: lea eax, [esp + 0xc] */
    896     PUSH32(esp, eax); /* 0x470179E1: push eax */
    897     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x470179E2: call dword ptr [0x470ac1a8] */
    898     RECOMP_FLAGS_IN();
    899     ecx = esp + 0xC; /* 0x470179E8: lea ecx, [esp + 0xc] */
    900     PUSH32(esp, ecx); /* 0x470179EC: push ecx */
    901     ecx = esp + 0x20; /* 0x470179ED: lea ecx, [esp + 0x20] */
    902     RECOMP_ICALL(0x47053F10u); /* 0x470179F1: call 0x47053f10 */ /* not lifted */
    903     RECOMP_FLAGS_IN();
    904     edx = MEM32(eax); /* 0x470179F6: mov edx, dword ptr [eax] */
    905     MEM32(esp + 0x14) = edx; /* 0x470179F8: mov dword ptr [esp + 0x14], edx */
    906     ecx = MEM32(eax + 0x4); /* 0x470179FC: mov ecx, dword ptr [eax + 4] */
    907     MEM32(esp + 0x18) = ecx; /* 0x470179FF: mov dword ptr [esp + 0x18], ecx */
    908     ecx = MEM32(eax); /* 0x47017A03: mov ecx, dword ptr [eax] */
    909     edx = MEM32(eax + 0x4); /* 0x47017A05: mov edx, dword ptr [eax + 4] */
    910     eax = ecx + ecx * 4; /* 0x47017A08: lea eax, [ecx + ecx*4] */
    911     eax = eax + eax * 4; /* 0x47017A0B: lea eax, [eax + eax*4] */
    912     eax = eax + eax * 4; /* 0x47017A0E: lea eax, [eax + eax*4] */
    913     eax = eax + eax * 4; /* 0x47017A11: lea eax, [eax + eax*4] */
    914     eax = eax + eax * 4; /* 0x47017A14: lea eax, [eax + eax*4] */
    915     eax = eax + eax * 4; /* 0x47017A17: lea eax, [eax + eax*4] */
    916     if (6u) _cf = (((eax) >> 26) & 1u); /* 0x47017A1A: shl eax, 6 */
    917     if (6u) { _flag_a = recomp_flags_pack((eax << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    918     eax = eax << 6u; /* 0x47017A1A: shl eax, 6 */
    919     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    920     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    921     eax = eax + edx; /* 0x47017A1D: add eax, edx */
    922     _flag_k = FK_ADD;
    923     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47017A1F: cdq  */
    924     MEM32(esi + 0x18) = eax; /* 0x47017A20: mov dword ptr [esi + 0x18], eax */
    925     MEM32(esi + 0x1C) = edx; /* 0x47017A23: mov dword ptr [esi + 0x1c], edx */
    926     esi = POP32_VAL(esp); /* 0x47017A26: pop esi */
    927     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    928     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    929     esp = esp + 0x20u; /* 0x47017A27: add esp, 0x20 */
    930     _flag_k = FK_ADD;
    931     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017A2A: ret 4 */
    932 L_47017A2D:
    933     edx = esp + 0x4; /* 0x47017A2D: lea edx, [esp + 4] */
    934     PUSH32(esp, edx); /* 0x47017A31: push edx */
    935     RECOMP_ICALL(MEM32(0x470AC0F0)); /* 0x47017A32: call dword ptr [0x470ac0f0] */
    936     RECOMP_FLAGS_IN();
    937     eax = MEM32(esp + 0x4); /* 0x47017A38: mov eax, dword ptr [esp + 4] */
    938     edx = MEM32(esp + 0x8); /* 0x47017A3C: mov edx, dword ptr [esp + 8] */
    939     MEM32(esi + 0x18) = eax; /* 0x47017A40: mov dword ptr [esi + 0x18], eax */
    940     MEM32(esi + 0x1C) = edx; /* 0x47017A43: mov dword ptr [esi + 0x1c], edx */
    941     esi = POP32_VAL(esp); /* 0x47017A46: pop esi */
    942     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    943     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    944     esp = esp + 0x20u; /* 0x47017A47: add esp, 0x20 */
    945     _flag_k = FK_ADD;
    946     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017A4A: ret 4 */
    947     RECOMP_REGS_OUT();
    948 }
    949 
    950 void sub_47017A50(void) {
    951     int _fpu_cmp = 0;
    952     uint32_t _cf = 0;
    953     int _df = 1;
    954     uint32_t _flag_k = FK_NONE;
    955     uint32_t _flag_a = 0, _flag_b = 0;
    956     uint32_t _itail_tgt = 0;
    957     RECOMP_REGS_LOCALS
    958     RECOMP_ENTER(0x47017A50u);
    959 
    960 L_47017A50:
    961     eax = MEM32(0x4710E330); /* 0x47017A50: mov eax, dword ptr [0x4710e330] */
    962     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    964     esp = esp - 0x20u; /* 0x47017A55: sub esp, 0x20 */
    965     _flag_k = FK_CMP;
    966     /* test eax, eax */ /* 0x47017A58: test eax, eax */
    967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    968     _cf = 0;
    969     _flag_k = FK_TEST;
    970     PUSH32(esp, esi); /* 0x47017A5A: push esi */
    971     esi = ecx; /* 0x47017A5B: mov esi, ecx */
    972     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017A64; /* 0x47017A5D: jne 0x47017a64 */
    973 L_47017A5F:
    974     RECOMP_ICALL(0x47030750u); /* 0x47017A5F: call 0x47030750 */ /* not lifted */
    975     RECOMP_FLAGS_IN();
    976 L_47017A64:
    977     /* cmp MEM32(0x4710E330), 0xFFFFFFFFu */ /* 0x47017A64: cmp dword ptr [0x4710e330], -1 */
    978     _flag_a = (uint32_t)(MEM32(0x4710E330)); _flag_b = (uint32_t)(0xFFFFFFFFu);
    979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    980     _flag_k = FK_CMP;
    981     if (CMP_NE(_flag_a, _flag_b)) goto L_47017AB2; /* 0x47017A6B: jne 0x47017ab2 */
    982 L_47017A6D:
    983     eax = esp + 0xC; /* 0x47017A6D: lea eax, [esp + 0xc] */
    984     PUSH32(esp, eax); /* 0x47017A71: push eax */
    985     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x47017A72: call dword ptr [0x470ac1a8] */
    986     RECOMP_FLAGS_IN();
    987     ecx = esp + 0xC; /* 0x47017A78: lea ecx, [esp + 0xc] */
    988     PUSH32(esp, ecx); /* 0x47017A7C: push ecx */
    989     ecx = esp + 0x20; /* 0x47017A7D: lea ecx, [esp + 0x20] */
    990     RECOMP_ICALL(0x47053F10u); /* 0x47017A81: call 0x47053f10 */ /* not lifted */
    991     RECOMP_FLAGS_IN();
    992     edx = MEM32(eax); /* 0x47017A86: mov edx, dword ptr [eax] */
    993     MEM32(esp + 0x14) = edx; /* 0x47017A88: mov dword ptr [esp + 0x14], edx */
    994     ecx = MEM32(eax + 0x4); /* 0x47017A8C: mov ecx, dword ptr [eax + 4] */
    995     MEM32(esp + 0x18) = ecx; /* 0x47017A8F: mov dword ptr [esp + 0x18], ecx */
    996     ecx = MEM32(eax); /* 0x47017A93: mov ecx, dword ptr [eax] */
    997     edx = MEM32(eax + 0x4); /* 0x47017A95: mov edx, dword ptr [eax + 4] */
    998     eax = ecx + ecx * 4; /* 0x47017A98: lea eax, [ecx + ecx*4] */
    999     eax = eax + eax * 4; /* 0x47017A9B: lea eax, [eax + eax*4] */
   1000     eax = eax + eax * 4; /* 0x47017A9E: lea eax, [eax + eax*4] */
   1001     eax = eax + eax * 4; /* 0x47017AA1: lea eax, [eax + eax*4] */
   1002     eax = eax + eax * 4; /* 0x47017AA4: lea eax, [eax + eax*4] */
   1003     eax = eax + eax * 4; /* 0x47017AA7: lea eax, [eax + eax*4] */
   1004     if (6u) _cf = (((eax) >> 26) & 1u); /* 0x47017AAA: shl eax, 6 */
   1005     if (6u) { _flag_a = recomp_flags_pack((eax << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1006     eax = eax << 6u; /* 0x47017AAA: shl eax, 6 */
   1007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1008     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1009     eax = eax + edx; /* 0x47017AAD: add eax, edx */
   1010     _flag_k = FK_ADD;
   1011     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47017AAF: cdq  */
   1012     goto L_47017AC5; /* 0x47017AB0: jmp 0x47017ac5 */
   1013 L_47017AB2:
   1014     edx = esp + 0x4; /* 0x47017AB2: lea edx, [esp + 4] */
   1015     PUSH32(esp, edx); /* 0x47017AB6: push edx */
   1016     RECOMP_ICALL(MEM32(0x470AC0F0)); /* 0x47017AB7: call dword ptr [0x470ac0f0] */
   1017     RECOMP_FLAGS_IN();
   1018     eax = MEM32(esp + 0x4); /* 0x47017ABD: mov eax, dword ptr [esp + 4] */
   1019     edx = MEM32(esp + 0x8); /* 0x47017AC1: mov edx, dword ptr [esp + 8] */
   1020 L_47017AC5:
   1021     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x18));
   1022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1023     eax = eax - MEM32(esi + 0x18); /* 0x47017AC5: sub eax, dword ptr [esi + 0x18] */
   1024     _flag_k = FK_CMP;
   1025     { uint32_t _sa = edx, _sb = MEM32(esi + 0x1C), _sc = _cf; /* 0x47017AC8: sbb edx, dword ptr [esi + 0x1c] */
   1026       edx = _sa - _sb - _sc;
   1027       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1028       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1029     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(eax);
   1030     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1031     MEM32(esi + 0x10) = MEM32(esi + 0x10) + eax; /* 0x47017ACB: add dword ptr [esi + 0x10], eax */
   1032     _flag_k = FK_ADD;
   1033     { uint32_t _aa = MEM32(esi + 0x14), _ab = edx, _ac = _cf; /* 0x47017ACE: adc dword ptr [esi + 0x14], edx */
   1034       MEM32(esi + 0x14) = _aa + _ab + _ac;
   1035       _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0;
   1036       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1037     esi = POP32_VAL(esp); /* 0x47017AD1: pop esi */
   1038     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   1039     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1040     esp = esp + 0x20u; /* 0x47017AD2: add esp, 0x20 */
   1041     _flag_k = FK_ADD;
   1042     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017AD5: ret 4 */
   1043     RECOMP_REGS_OUT();
   1044 }
   1045 
   1046 void sub_47017AE0(void) {
   1047     int _fpu_cmp = 0;
   1048     uint32_t _cf = 0;
   1049     int _df = 1;
   1050     uint32_t _flag_k = FK_NONE;
   1051     uint32_t _flag_a = 0, _flag_b = 0;
   1052     uint32_t _itail_tgt = 0;
   1053     RECOMP_REGS_LOCALS
   1054     RECOMP_ENTER(0x47017AE0u);
   1055 
   1056 L_47017AE0:
   1057     PUSH32(esp, esi); /* 0x47017AE0: push esi */
   1058     PUSH32(esp, edi); /* 0x47017AE1: push edi */
   1059     esi = ecx; /* 0x47017AE2: mov esi, ecx */
   1060     RECOMP_ICALL(0x47030750u); /* 0x47017AE4: call 0x47030750 */ /* not lifted */
   1061     RECOMP_FLAGS_IN();
   1062     edx = MEM32(esi); /* 0x47017AE9: mov edx, dword ptr [esi] */
   1063     ecx = MEM32(esi + 0x8); /* 0x47017AEB: mov ecx, dword ptr [esi + 8] */
   1064     edi = MEM32(esi + 0x4); /* 0x47017AEE: mov edi, dword ptr [esi + 4] */
   1065     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1067     ecx = ecx - edx; /* 0x47017AF1: sub ecx, edx */
   1068     _flag_k = FK_CMP;
   1069     edx = MEM32(esi + 0xC); /* 0x47017AF3: mov edx, dword ptr [esi + 0xc] */
   1070     PUSH32(esp, 0); /* 0x47017AF6: push 0 */
   1071     PUSH32(esp, eax); /* 0x47017AF8: push eax */
   1072     { uint32_t _sa = edx, _sb = edi, _sc = _cf; /* 0x47017AF9: sbb edx, edi */
   1073       edx = _sa - _sb - _sc;
   1074       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1075       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1076     PUSH32(esp, edx); /* 0x47017AFB: push edx */
   1077     PUSH32(esp, ecx); /* 0x47017AFC: push ecx */
   1078     RECOMP_ICALL(0x470A3500u); /* 0x47017AFD: call 0x470a3500 */ /* not lifted */
   1079     RECOMP_FLAGS_IN();
   1080     ecx = MEM32(esp + 0xC); /* 0x47017B02: mov ecx, dword ptr [esp + 0xc] */
   1081     edi = POP32_VAL(esp); /* 0x47017B06: pop edi */
   1082     MEM32(ecx) = eax; /* 0x47017B07: mov dword ptr [ecx], eax */
   1083     MEM32(ecx + 0x4) = edx; /* 0x47017B09: mov dword ptr [ecx + 4], edx */
   1084     esi = POP32_VAL(esp); /* 0x47017B0C: pop esi */
   1085     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017B0D: ret 4 */
   1086     RECOMP_REGS_OUT();
   1087 }
   1088 
   1089 void sub_47017B10(void) {
   1090     int _fpu_cmp = 0;
   1091     uint32_t _cf = 0;
   1092     int _df = 1;
   1093     uint32_t _flag_k = FK_NONE;
   1094     uint32_t _flag_a = 0, _flag_b = 0;
   1095     uint32_t _itail_tgt = 0;
   1096     RECOMP_REGS_LOCALS
   1097     RECOMP_ENTER(0x47017B10u);
   1098 
   1099 L_47017B10:
   1100     eax = MEM32(esp + 0x4); /* 0x47017B10: mov eax, dword ptr [esp + 4] */
   1101     MEM32(0x4710688C) = eax; /* 0x47017B14: mov dword ptr [0x4710688c], eax */
   1102     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017B19: ret  */
   1103     RECOMP_REGS_OUT();
   1104 }
   1105 
   1106 void sub_47017B20(void) {
   1107     int _fpu_cmp = 0;
   1108     uint32_t _cf = 0;
   1109     int _df = 1;
   1110     uint32_t _flag_k = FK_NONE;
   1111     uint32_t _flag_a = 0, _flag_b = 0;
   1112     uint32_t _itail_tgt = 0;
   1113     RECOMP_REGS_LOCALS
   1114     RECOMP_ENTER(0x47017B20u);
   1115 
   1116 L_47017B20:
   1117     MEM32(0x4710DF70) = 0x471056C8u; /* 0x47017B20: mov dword ptr [0x4710df70], 0x471056c8 */
   1118     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017B2A: ret  */
   1119     RECOMP_REGS_OUT();
   1120 }
   1121 
   1122 void sub_47017B30(void) {
   1123     int _fpu_cmp = 0;
   1124     uint32_t _cf = 0;
   1125     int _df = 1;
   1126     uint32_t _flag_k = FK_NONE;
   1127     uint32_t _flag_a = 0, _flag_b = 0;
   1128     uint32_t _itail_tgt = 0;
   1129     RECOMP_REGS_LOCALS
   1130     RECOMP_ENTER(0x47017B30u);
   1131 
   1132 L_47017B30:
   1133     PUSH32(esp, 0); /* 0x47017B30: push 0 */
   1134     PUSH32(esp, 0); /* 0x47017B32: push 0 */
   1135     PUSH32(esp, 0); /* 0x47017B34: push 0 */
   1136     RECOMP_ICALL(0x47063C90u); /* 0x47017B36: call 0x47063c90 */ /* not lifted */
   1137     RECOMP_FLAGS_IN();
   1138     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017B3B: ret  */
   1139     RECOMP_REGS_OUT();
   1140 }
   1141 
   1142 void sub_47017B40(void) {
   1143     int _fpu_cmp = 0;
   1144     uint32_t _cf = 0;
   1145     int _df = 1;
   1146     uint32_t _flag_k = FK_NONE;
   1147     uint32_t _flag_a = 0, _flag_b = 0;
   1148     uint32_t _itail_tgt = 0;
   1149     RECOMP_REGS_LOCALS
   1150     RECOMP_ENTER(0x47017B40u);
   1151 
   1152 L_47017B40:
   1153     MEM32(0x4710DF58) = 0x47104C0Cu; /* 0x47017B40: mov dword ptr [0x4710df58], 0x47104c0c */
   1154     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017B4A: ret  */
   1155     RECOMP_REGS_OUT();
   1156 }
   1157 
   1158 void sub_47017B50(void) {
   1159     int _fpu_cmp = 0;
   1160     uint32_t _cf = 0;
   1161     int _df = 1;
   1162     uint32_t _flag_k = FK_NONE;
   1163     uint32_t _flag_a = 0, _flag_b = 0;
   1164     uint32_t _itail_tgt = 0;
   1165     RECOMP_REGS_LOCALS
   1166     RECOMP_ENTER(0x47017B50u);
   1167 
   1168 L_47017B50:
   1169     ecx = MEM32(ecx + 0x4); /* 0x47017B50: mov ecx, dword ptr [ecx + 4] */
   1170 L_47017B53:
   1171     eax = MEM32(ecx); /* 0x47017B53: mov eax, dword ptr [ecx] */
   1172 L_47017B55:
   1173     { _itail_tgt = (uint32_t)(MEM32(eax + 0x24)); goto _ljump; }
   1174     { RECOMP_REGS_OUT(); return; } /* end of function */
   1175   _ljump:
   1176     switch (_itail_tgt) {
   1177       case 0x47017B50u: goto L_47017B50;
   1178       case 0x47017B53u: goto L_47017B53;
   1179       case 0x47017B55u: goto L_47017B55;
   1180       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1181     }
   1182     RECOMP_REGS_OUT();
   1183 }
   1184 
   1185 void sub_47017B60(void) {
   1186     int _fpu_cmp = 0;
   1187     uint32_t _cf = 0;
   1188     int _df = 1;
   1189     uint32_t _flag_k = FK_NONE;
   1190     uint32_t _flag_a = 0, _flag_b = 0;
   1191     uint32_t _itail_tgt = 0;
   1192     RECOMP_REGS_LOCALS
   1193     RECOMP_ENTER(0x47017B60u);
   1194 
   1195 L_47017B60:
   1196     ecx = MEM32(ecx + 0x4); /* 0x47017B60: mov ecx, dword ptr [ecx + 4] */
   1197 L_47017B63:
   1198     eax = MEM32(ecx); /* 0x47017B63: mov eax, dword ptr [ecx] */
   1199 L_47017B65:
   1200     { _itail_tgt = (uint32_t)(MEM32(eax + 0x28)); goto _ljump; }
   1201     { RECOMP_REGS_OUT(); return; } /* end of function */
   1202   _ljump:
   1203     switch (_itail_tgt) {
   1204       case 0x47017B60u: goto L_47017B60;
   1205       case 0x47017B63u: goto L_47017B63;
   1206       case 0x47017B65u: goto L_47017B65;
   1207       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1208     }
   1209     RECOMP_REGS_OUT();
   1210 }
   1211 
   1212 void sub_47017B70(void) {
   1213     int _fpu_cmp = 0;
   1214     uint32_t _cf = 0;
   1215     int _df = 1;
   1216     uint32_t _flag_k = FK_NONE;
   1217     uint32_t _flag_a = 0, _flag_b = 0;
   1218     uint32_t _itail_tgt = 0;
   1219     RECOMP_REGS_LOCALS
   1220     RECOMP_ENTER(0x47017B70u);
   1221 
   1222 L_47017B70:
   1223     eax = ecx; /* 0x47017B70: mov eax, ecx */
   1224     ecx = MEM32(esp + 0x4); /* 0x47017B72: mov ecx, dword ptr [esp + 4] */
   1225     MEM32(eax + 0x4) = ecx; /* 0x47017B76: mov dword ptr [eax + 4], ecx */
   1226     MEM32(eax) = 0x470ACB80u; /* 0x47017B79: mov dword ptr [eax], 0x470acb80 */
   1227     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017B7F: ret 4 */
   1228     RECOMP_REGS_OUT();
   1229 }
   1230 
   1231 void sub_47017B90(void) {
   1232     int _fpu_cmp = 0;
   1233     uint32_t _cf = 0;
   1234     int _df = 1;
   1235     uint32_t _flag_k = FK_NONE;
   1236     uint32_t _flag_a = 0, _flag_b = 0;
   1237     uint32_t _itail_tgt = 0;
   1238     RECOMP_REGS_LOCALS
   1239     RECOMP_ENTER(0x47017B90u);
   1240 
   1241 L_47017B90:
   1242     edx = MEM32(esp + 0x10); /* 0x47017B90: mov edx, dword ptr [esp + 0x10] */
   1243     ecx = MEM32(ecx + 0x4); /* 0x47017B94: mov ecx, dword ptr [ecx + 4] */
   1244     eax = MEM32(ecx); /* 0x47017B97: mov eax, dword ptr [ecx] */
   1245     PUSH32(esp, edx); /* 0x47017B99: push edx */
   1246     edx = MEM32(esp + 0x10); /* 0x47017B9A: mov edx, dword ptr [esp + 0x10] */
   1247     PUSH32(esp, edx); /* 0x47017B9E: push edx */
   1248     edx = MEM32(esp + 0x10); /* 0x47017B9F: mov edx, dword ptr [esp + 0x10] */
   1249     PUSH32(esp, edx); /* 0x47017BA3: push edx */
   1250     edx = MEM32(esp + 0x10); /* 0x47017BA4: mov edx, dword ptr [esp + 0x10] */
   1251     PUSH32(esp, edx); /* 0x47017BA8: push edx */
   1252     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47017BA9: call dword ptr [eax + 4] */
   1253     RECOMP_FLAGS_IN();
   1254     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47017BAC: ret 0x10 */
   1255     RECOMP_REGS_OUT();
   1256 }
   1257 
   1258 void sub_47017BB0(void) {
   1259     int _fpu_cmp = 0;
   1260     uint32_t _cf = 0;
   1261     int _df = 1;
   1262     uint32_t _flag_k = FK_NONE;
   1263     uint32_t _flag_a = 0, _flag_b = 0;
   1264     uint32_t _itail_tgt = 0;
   1265     RECOMP_REGS_LOCALS
   1266     RECOMP_ENTER(0x47017BB0u);
   1267 
   1268 L_47017BB0:
   1269     eax = ecx; /* 0x47017BB0: mov eax, ecx */
   1270     MEM32(eax + 0x4) = 0; /* 0x47017BB2: mov dword ptr [eax + 4], 0 */
   1271     MEM32(eax) = 0x470ACB84u; /* 0x47017BB9: mov dword ptr [eax], 0x470acb84 */
   1272     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017BBF: ret  */
   1273     RECOMP_REGS_OUT();
   1274 }
   1275 
   1276 void sub_47017BC0(void) {
   1277     int _fpu_cmp = 0;
   1278     uint32_t _cf = 0;
   1279     int _df = 1;
   1280     uint32_t _flag_k = FK_NONE;
   1281     uint32_t _flag_a = 0, _flag_b = 0;
   1282     uint32_t _itail_tgt = 0;
   1283     RECOMP_REGS_LOCALS
   1284     RECOMP_ENTER(0x47017BC0u);
   1285 
   1286 L_47017BC0:
   1287     eax = MEM32(esp + 0x4); /* 0x47017BC0: mov eax, dword ptr [esp + 4] */
   1288     /* test eax, eax */ /* 0x47017BC4: test eax, eax */
   1289     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1290     _cf = 0;
   1291     _flag_k = FK_TEST;
   1292     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017BDC; /* 0x47017BC6: jne 0x47017bdc */
   1293 L_47017BC8:
   1294     eax = MEM32(esp + 0x8); /* 0x47017BC8: mov eax, dword ptr [esp + 8] */
   1295     eax = MEM32(eax + 0x4); /* 0x47017BCC: mov eax, dword ptr [eax + 4] */
   1296     /* test eax, eax */ /* 0x47017BCF: test eax, eax */
   1297     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1298     _cf = 0;
   1299     _flag_k = FK_TEST;
   1300     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017BDC; /* 0x47017BD1: jne 0x47017bdc */
   1301 L_47017BD3:
   1302     PUSH32(esp, eax); /* 0x47017BD3: push eax */
   1303     RECOMP_ICALL(0x47063F60u); /* 0x47017BD4: call 0x47063f60 */ /* not lifted */
   1304     RECOMP_FLAGS_IN();
   1305     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1307     esp = esp + 4; /* 0x47017BD9: add esp, 4 */
   1308     _flag_k = FK_ADD;
   1309 L_47017BDC:
   1310     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47017BDC: ret 8 */
   1311     RECOMP_REGS_OUT();
   1312 }
   1313 
   1314 void sub_47017BE0(void) {
   1315     int _fpu_cmp = 0;
   1316     uint32_t _cf = 0;
   1317     int _df = 1;
   1318     uint32_t _flag_k = FK_NONE;
   1319     uint32_t _flag_a = 0, _flag_b = 0;
   1320     uint32_t _itail_tgt = 0;
   1321     RECOMP_REGS_LOCALS
   1322     RECOMP_ENTER(0x47017BE0u);
   1323 
   1324 L_47017BE0:
   1325     eax = ecx; /* 0x47017BE0: mov eax, ecx */
   1326     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1327     ecx = 0; /* 0x47017BE2: xor ecx, ecx */
   1328     _cf = 0;
   1329     _flag_k = FK_TEST;
   1330     MEM32(eax + 0x4) = ecx; /* 0x47017BE4: mov dword ptr [eax + 4], ecx */
   1331     MEM32(eax + 0x8) = ecx; /* 0x47017BE7: mov dword ptr [eax + 8], ecx */
   1332     MEM32(eax) = 0x470ACB8Cu; /* 0x47017BEA: mov dword ptr [eax], 0x470acb8c */
   1333     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017BF0: ret  */
   1334     RECOMP_REGS_OUT();
   1335 }
   1336 
   1337 void sub_47017C00(void) {
   1338     int _fpu_cmp = 0;
   1339     uint32_t _cf = 0;
   1340     int _df = 1;
   1341     uint32_t _flag_k = FK_NONE;
   1342     uint32_t _flag_a = 0, _flag_b = 0;
   1343     uint32_t _itail_tgt = 0;
   1344     RECOMP_REGS_LOCALS
   1345     RECOMP_ENTER(0x47017C00u);
   1346 
   1347 L_47017C00:
   1348     PUSH32(esp, ebx); /* 0x47017C00: push ebx */
   1349     ebx = MEM32(esp + 0x8); /* 0x47017C01: mov ebx, dword ptr [esp + 8] */
   1350     PUSH32(esp, esi); /* 0x47017C05: push esi */
   1351     esi = MEM32(esp + 0x18); /* 0x47017C06: mov esi, dword ptr [esp + 0x18] */
   1352     /* test esi, esi */ /* 0x47017C0A: test esi, esi */
   1353     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1354     _cf = 0;
   1355     _flag_k = FK_TEST;
   1356     PUSH32(esp, edi); /* 0x47017C0C: push edi */
   1357     edi = ecx; /* 0x47017C0D: mov edi, ecx */
   1358     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017C23; /* 0x47017C0F: jne 0x47017c23 */
   1359 L_47017C11:
   1360     esi = MEM32(ebx + 0x4); /* 0x47017C11: mov esi, dword ptr [ebx + 4] */
   1361     /* test esi, esi */ /* 0x47017C14: test esi, esi */
   1362     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1363     _cf = 0;
   1364     _flag_k = FK_TEST;
   1365     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017C23; /* 0x47017C16: jne 0x47017c23 */
   1366 L_47017C18:
   1367     PUSH32(esp, esi); /* 0x47017C18: push esi */
   1368     RECOMP_ICALL(0x47063F60u); /* 0x47017C19: call 0x47063f60 */ /* not lifted */
   1369     RECOMP_FLAGS_IN();
   1370     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1371     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1372     esp = esp + 4; /* 0x47017C1E: add esp, 4 */
   1373     _flag_k = FK_ADD;
   1374     esi = eax; /* 0x47017C21: mov esi, eax */
   1375 L_47017C23:
   1376     eax = MEM32(edi + 0x8); /* 0x47017C23: mov eax, dword ptr [edi + 8] */
   1377     /* test eax, eax */ /* 0x47017C26: test eax, eax */
   1378     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1379     _cf = 0;
   1380     _flag_k = FK_TEST;
   1381     if (TEST_Z(_flag_a, _flag_b)) goto L_47017C3A; /* 0x47017C28: je 0x47017c3a */
   1382 L_47017C2A:
   1383     ecx = MEM32(eax + 0x4); /* 0x47017C2A: mov ecx, dword ptr [eax + 4] */
   1384     edx = MEM32(ecx + 0x4); /* 0x47017C2D: mov edx, dword ptr [ecx + 4] */
   1385     ecx = edx + eax + 0x4; /* 0x47017C30: lea ecx, [edx + eax + 4] */
   1386     eax = MEM32(ecx); /* 0x47017C34: mov eax, dword ptr [ecx] */
   1387     PUSH32(esp, 1); /* 0x47017C36: push 1 */
   1388     RECOMP_ICALL(MEM32(eax)); /* 0x47017C38: call dword ptr [eax] */
   1389     RECOMP_FLAGS_IN();
   1390 L_47017C3A:
   1391     MEM32(edi + 0x8) = 0; /* 0x47017C3A: mov dword ptr [edi + 8], 0 */
   1392     edx = MEM32(esi); /* 0x47017C41: mov edx, dword ptr [esi] */
   1393     ecx = esi; /* 0x47017C43: mov ecx, esi */
   1394     RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x47017C45: call dword ptr [edx + 0x34] */
   1395     RECOMP_FLAGS_IN();
   1396     /* test eax, eax */ /* 0x47017C48: test eax, eax */
   1397     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1398     _cf = 0;
   1399     _flag_k = FK_TEST;
   1400     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017C55; /* 0x47017C4A: jne 0x47017c55 */
   1401 L_47017C4C:
   1402     edi = POP32_VAL(esp); /* 0x47017C4C: pop edi */
   1403     esi = POP32_VAL(esp); /* 0x47017C4D: pop esi */
   1404     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1405     eax = eax | 0xFFFFFFFFu; /* 0x47017C4E: or eax, 0xffffffff */
   1406     _cf = 0;
   1407     _flag_k = FK_TEST;
   1408     ebx = POP32_VAL(esp); /* 0x47017C51: pop ebx */
   1409     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47017C52: ret 0x10 */
   1410 L_47017C55:
   1411     MEM32(edi + 0x8) = eax; /* 0x47017C55: mov dword ptr [edi + 8], eax */
   1412     ecx = MEM32(eax + 0x4); /* 0x47017C58: mov ecx, dword ptr [eax + 4] */
   1413     edx = MEM32(ecx + 0x4); /* 0x47017C5B: mov edx, dword ptr [ecx + 4] */
   1414     ecx = edx + eax + 0x4; /* 0x47017C5E: lea ecx, [edx + eax + 4] */
   1415     edx = MEM32(esp + 0x18); /* 0x47017C62: mov edx, dword ptr [esp + 0x18] */
   1416     PUSH32(esp, esi); /* 0x47017C66: push esi */
   1417     PUSH32(esp, edx); /* 0x47017C67: push edx */
   1418     edx = MEM32(esp + 0x1C); /* 0x47017C68: mov edx, dword ptr [esp + 0x1c] */
   1419     PUSH32(esp, edx); /* 0x47017C6C: push edx */
   1420     MEM32(edi + 0x4) = ecx; /* 0x47017C6D: mov dword ptr [edi + 4], ecx */
   1421     eax = MEM32(ecx); /* 0x47017C70: mov eax, dword ptr [ecx] */
   1422     PUSH32(esp, ebx); /* 0x47017C72: push ebx */
   1423     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47017C73: call dword ptr [eax + 4] */
   1424     RECOMP_FLAGS_IN();
   1425     edi = POP32_VAL(esp); /* 0x47017C76: pop edi */
   1426     esi = POP32_VAL(esp); /* 0x47017C77: pop esi */
   1427     ebx = POP32_VAL(esp); /* 0x47017C78: pop ebx */
   1428     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47017C79: ret 0x10 */
   1429     RECOMP_REGS_OUT();
   1430 }
   1431 
   1432 void sub_47017C80(void) {
   1433     int _fpu_cmp = 0;
   1434     uint32_t _cf = 0;
   1435     int _df = 1;
   1436     uint32_t _flag_k = FK_NONE;
   1437     uint32_t _flag_a = 0, _flag_b = 0;
   1438     uint32_t _itail_tgt = 0;
   1439     RECOMP_REGS_LOCALS
   1440     RECOMP_ENTER(0x47017C80u);
   1441 
   1442 L_47017C80:
   1443     ecx = MEM32(ecx + 0x8); /* 0x47017C80: mov ecx, dword ptr [ecx + 8] */
   1444 L_47017C83:
   1445     eax = MEM32(ecx); /* 0x47017C83: mov eax, dword ptr [ecx] */
   1446 L_47017C85:
   1447     { _itail_tgt = (uint32_t)(MEM32(eax)); goto _ljump; }
   1448     { RECOMP_REGS_OUT(); return; } /* end of function */
   1449   _ljump:
   1450     switch (_itail_tgt) {
   1451       case 0x47017C80u: goto L_47017C80;
   1452       case 0x47017C83u: goto L_47017C83;
   1453       case 0x47017C85u: goto L_47017C85;
   1454       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1455     }
   1456     RECOMP_REGS_OUT();
   1457 }
   1458 
   1459 void sub_47017C90(void) {
   1460     int _fpu_cmp = 0;
   1461     uint32_t _cf = 0;
   1462     int _df = 1;
   1463     uint32_t _flag_k = FK_NONE;
   1464     uint32_t _flag_a = 0, _flag_b = 0;
   1465     uint32_t _itail_tgt = 0;
   1466     RECOMP_REGS_LOCALS
   1467     RECOMP_ENTER(0x47017C90u);
   1468 
   1469 L_47017C90:
   1470     ecx = MEM32(ecx + 0x8); /* 0x47017C90: mov ecx, dword ptr [ecx + 8] */
   1471 L_47017C93:
   1472     eax = MEM32(ecx); /* 0x47017C93: mov eax, dword ptr [ecx] */
   1473 L_47017C95:
   1474     { _itail_tgt = (uint32_t)(MEM32(eax + 0x4)); goto _ljump; }
   1475     { RECOMP_REGS_OUT(); return; } /* end of function */
   1476   _ljump:
   1477     switch (_itail_tgt) {
   1478       case 0x47017C90u: goto L_47017C90;
   1479       case 0x47017C93u: goto L_47017C93;
   1480       case 0x47017C95u: goto L_47017C95;
   1481       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1482     }
   1483     RECOMP_REGS_OUT();
   1484 }
   1485 
   1486 void sub_47017CA0(void) {
   1487     int _fpu_cmp = 0;
   1488     uint32_t _cf = 0;
   1489     int _df = 1;
   1490     uint32_t _flag_k = FK_NONE;
   1491     uint32_t _flag_a = 0, _flag_b = 0;
   1492     uint32_t _itail_tgt = 0;
   1493     RECOMP_REGS_LOCALS
   1494     RECOMP_ENTER(0x47017CA0u);
   1495 
   1496 L_47017CA0:
   1497     eax = ecx; /* 0x47017CA0: mov eax, ecx */
   1498     ecx = MEM32(esp + 0x4); /* 0x47017CA2: mov ecx, dword ptr [esp + 4] */
   1499     /* test ecx, ecx */ /* 0x47017CA6: test ecx, ecx */
   1500     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1501     _cf = 0;
   1502     _flag_k = FK_TEST;
   1503     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017CBB; /* 0x47017CA8: jne 0x47017cbb */
   1504 L_47017CAA:
   1505     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1506     edx = 0; /* 0x47017CAA: xor edx, edx */
   1507     _cf = 0;
   1508     _flag_k = FK_TEST;
   1509     MEM32(eax + 0x4) = edx; /* 0x47017CAC: mov dword ptr [eax + 4], edx */
   1510     MEM32(eax + 0x8) = ecx; /* 0x47017CAF: mov dword ptr [eax + 8], ecx */
   1511     MEM32(eax) = 0x470ACB88u; /* 0x47017CB2: mov dword ptr [eax], 0x470acb88 */
   1512     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017CB8: ret 4 */
   1513 L_47017CBB:
   1514     edx = MEM32(ecx + 0x4); /* 0x47017CBB: mov edx, dword ptr [ecx + 4] */
   1515     edx = MEM32(edx + 0x4); /* 0x47017CBE: mov edx, dword ptr [edx + 4] */
   1516     edx = edx + ecx + 0x4; /* 0x47017CC1: lea edx, [edx + ecx + 4] */
   1517     MEM32(eax + 0x4) = edx; /* 0x47017CC5: mov dword ptr [eax + 4], edx */
   1518     MEM32(eax + 0x8) = ecx; /* 0x47017CC8: mov dword ptr [eax + 8], ecx */
   1519     MEM32(eax) = 0x470ACB88u; /* 0x47017CCB: mov dword ptr [eax], 0x470acb88 */
   1520     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017CD1: ret 4 */
   1521     RECOMP_REGS_OUT();
   1522 }
   1523 
   1524 void sub_47017CE0(void) {
   1525     int _fpu_cmp = 0;
   1526     uint32_t _cf = 0;
   1527     int _df = 1;
   1528     uint32_t _flag_k = FK_NONE;
   1529     uint32_t _flag_a = 0, _flag_b = 0;
   1530     uint32_t _itail_tgt = 0;
   1531     RECOMP_REGS_LOCALS
   1532     RECOMP_ENTER(0x47017CE0u);
   1533 
   1534 L_47017CE0:
   1535     eax = ecx; /* 0x47017CE0: mov eax, ecx */
   1536     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1537     ecx = 0; /* 0x47017CE2: xor ecx, ecx */
   1538     _cf = 0;
   1539     _flag_k = FK_TEST;
   1540     MEM32(eax + 0x4) = ecx; /* 0x47017CE4: mov dword ptr [eax + 4], ecx */
   1541     MEM32(eax + 0x8) = ecx; /* 0x47017CE7: mov dword ptr [eax + 8], ecx */
   1542     MEM32(eax) = 0x470ACB94u; /* 0x47017CEA: mov dword ptr [eax], 0x470acb94 */
   1543     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017CF0: ret  */
   1544     RECOMP_REGS_OUT();
   1545 }
   1546 
   1547 void sub_47017D00(void) {
   1548     int _fpu_cmp = 0;
   1549     uint32_t _cf = 0;
   1550     int _df = 1;
   1551     uint32_t _flag_k = FK_NONE;
   1552     uint32_t _flag_a = 0, _flag_b = 0;
   1553     uint32_t _itail_tgt = 0;
   1554     RECOMP_REGS_LOCALS
   1555     RECOMP_ENTER(0x47017D00u);
   1556 
   1557 L_47017D00:
   1558     PUSH32(esp, ebx); /* 0x47017D00: push ebx */
   1559     ebx = MEM32(esp + 0x8); /* 0x47017D01: mov ebx, dword ptr [esp + 8] */
   1560     PUSH32(esp, esi); /* 0x47017D05: push esi */
   1561     esi = MEM32(esp + 0x18); /* 0x47017D06: mov esi, dword ptr [esp + 0x18] */
   1562     /* test esi, esi */ /* 0x47017D0A: test esi, esi */
   1563     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1564     _cf = 0;
   1565     _flag_k = FK_TEST;
   1566     PUSH32(esp, edi); /* 0x47017D0C: push edi */
   1567     edi = ecx; /* 0x47017D0D: mov edi, ecx */
   1568     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017D23; /* 0x47017D0F: jne 0x47017d23 */
   1569 L_47017D11:
   1570     esi = MEM32(ebx + 0x4); /* 0x47017D11: mov esi, dword ptr [ebx + 4] */
   1571     /* test esi, esi */ /* 0x47017D14: test esi, esi */
   1572     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1573     _cf = 0;
   1574     _flag_k = FK_TEST;
   1575     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017D23; /* 0x47017D16: jne 0x47017d23 */
   1576 L_47017D18:
   1577     PUSH32(esp, esi); /* 0x47017D18: push esi */
   1578     RECOMP_ICALL(0x47063F60u); /* 0x47017D19: call 0x47063f60 */ /* not lifted */
   1579     RECOMP_FLAGS_IN();
   1580     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1582     esp = esp + 4; /* 0x47017D1E: add esp, 4 */
   1583     _flag_k = FK_ADD;
   1584     esi = eax; /* 0x47017D21: mov esi, eax */
   1585 L_47017D23:
   1586     eax = MEM32(edi + 0x8); /* 0x47017D23: mov eax, dword ptr [edi + 8] */
   1587     /* test eax, eax */ /* 0x47017D26: test eax, eax */
   1588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1589     _cf = 0;
   1590     _flag_k = FK_TEST;
   1591     if (TEST_Z(_flag_a, _flag_b)) goto L_47017D3A; /* 0x47017D28: je 0x47017d3a */
   1592 L_47017D2A:
   1593     ecx = MEM32(eax + 0x4); /* 0x47017D2A: mov ecx, dword ptr [eax + 4] */
   1594     edx = MEM32(ecx + 0x4); /* 0x47017D2D: mov edx, dword ptr [ecx + 4] */
   1595     ecx = edx + eax + 0x4; /* 0x47017D30: lea ecx, [edx + eax + 4] */
   1596     eax = MEM32(ecx); /* 0x47017D34: mov eax, dword ptr [ecx] */
   1597     PUSH32(esp, 1); /* 0x47017D36: push 1 */
   1598     RECOMP_ICALL(MEM32(eax)); /* 0x47017D38: call dword ptr [eax] */
   1599     RECOMP_FLAGS_IN();
   1600 L_47017D3A:
   1601     MEM32(edi + 0x8) = 0; /* 0x47017D3A: mov dword ptr [edi + 8], 0 */
   1602     edx = MEM32(esi); /* 0x47017D41: mov edx, dword ptr [esi] */
   1603     ecx = esi; /* 0x47017D43: mov ecx, esi */
   1604     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x47017D45: call dword ptr [edx + 0x38] */
   1605     RECOMP_FLAGS_IN();
   1606     /* test eax, eax */ /* 0x47017D48: test eax, eax */
   1607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1608     _cf = 0;
   1609     _flag_k = FK_TEST;
   1610     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017D55; /* 0x47017D4A: jne 0x47017d55 */
   1611 L_47017D4C:
   1612     edi = POP32_VAL(esp); /* 0x47017D4C: pop edi */
   1613     esi = POP32_VAL(esp); /* 0x47017D4D: pop esi */
   1614     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1615     eax = eax | 0xFFFFFFFFu; /* 0x47017D4E: or eax, 0xffffffff */
   1616     _cf = 0;
   1617     _flag_k = FK_TEST;
   1618     ebx = POP32_VAL(esp); /* 0x47017D51: pop ebx */
   1619     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47017D52: ret 0x10 */
   1620 L_47017D55:
   1621     MEM32(edi + 0x8) = eax; /* 0x47017D55: mov dword ptr [edi + 8], eax */
   1622     ecx = MEM32(eax + 0x4); /* 0x47017D58: mov ecx, dword ptr [eax + 4] */
   1623     edx = MEM32(ecx + 0x4); /* 0x47017D5B: mov edx, dword ptr [ecx + 4] */
   1624     ecx = edx + eax + 0x4; /* 0x47017D5E: lea ecx, [edx + eax + 4] */
   1625     edx = MEM32(esp + 0x18); /* 0x47017D62: mov edx, dword ptr [esp + 0x18] */
   1626     PUSH32(esp, esi); /* 0x47017D66: push esi */
   1627     PUSH32(esp, edx); /* 0x47017D67: push edx */
   1628     edx = MEM32(esp + 0x1C); /* 0x47017D68: mov edx, dword ptr [esp + 0x1c] */
   1629     PUSH32(esp, edx); /* 0x47017D6C: push edx */
   1630     MEM32(edi + 0x4) = ecx; /* 0x47017D6D: mov dword ptr [edi + 4], ecx */
   1631     eax = MEM32(ecx); /* 0x47017D70: mov eax, dword ptr [ecx] */
   1632     PUSH32(esp, ebx); /* 0x47017D72: push ebx */
   1633     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47017D73: call dword ptr [eax + 4] */
   1634     RECOMP_FLAGS_IN();
   1635     edi = POP32_VAL(esp); /* 0x47017D76: pop edi */
   1636     esi = POP32_VAL(esp); /* 0x47017D77: pop esi */
   1637     ebx = POP32_VAL(esp); /* 0x47017D78: pop ebx */
   1638     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47017D79: ret 0x10 */
   1639     RECOMP_REGS_OUT();
   1640 }
   1641 
   1642 void sub_47017D80(void) {
   1643     int _fpu_cmp = 0;
   1644     uint32_t _cf = 0;
   1645     int _df = 1;
   1646     uint32_t _flag_k = FK_NONE;
   1647     uint32_t _flag_a = 0, _flag_b = 0;
   1648     uint32_t _itail_tgt = 0;
   1649     RECOMP_REGS_LOCALS
   1650     RECOMP_ENTER(0x47017D80u);
   1651 
   1652 L_47017D80:
   1653     edx = MEM32(esp + 0x14); /* 0x47017D80: mov edx, dword ptr [esp + 0x14] */
   1654     ecx = MEM32(ecx + 0x8); /* 0x47017D84: mov ecx, dword ptr [ecx + 8] */
   1655     eax = MEM32(ecx); /* 0x47017D87: mov eax, dword ptr [ecx] */
   1656     PUSH32(esp, edx); /* 0x47017D89: push edx */
   1657     edx = MEM32(esp + 0x14); /* 0x47017D8A: mov edx, dword ptr [esp + 0x14] */
   1658     PUSH32(esp, edx); /* 0x47017D8E: push edx */
   1659     edx = MEM32(esp + 0x14); /* 0x47017D8F: mov edx, dword ptr [esp + 0x14] */
   1660     PUSH32(esp, edx); /* 0x47017D93: push edx */
   1661     edx = MEM32(esp + 0x14); /* 0x47017D94: mov edx, dword ptr [esp + 0x14] */
   1662     PUSH32(esp, edx); /* 0x47017D98: push edx */
   1663     edx = MEM32(esp + 0x14); /* 0x47017D99: mov edx, dword ptr [esp + 0x14] */
   1664     PUSH32(esp, edx); /* 0x47017D9D: push edx */
   1665     RECOMP_ICALL(MEM32(eax)); /* 0x47017D9E: call dword ptr [eax] */
   1666     RECOMP_FLAGS_IN();
   1667     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47017DA0: ret 0x14 */
   1668     RECOMP_REGS_OUT();
   1669 }
   1670 
   1671 void sub_47017DB0(void) {
   1672     int _fpu_cmp = 0;
   1673     uint32_t _cf = 0;
   1674     int _df = 1;
   1675     uint32_t _flag_k = FK_NONE;
   1676     uint32_t _flag_a = 0, _flag_b = 0;
   1677     uint32_t _itail_tgt = 0;
   1678     RECOMP_REGS_LOCALS
   1679     RECOMP_ENTER(0x47017DB0u);
   1680 
   1681 L_47017DB0:
   1682     ecx = MEM32(ecx + 0x8); /* 0x47017DB0: mov ecx, dword ptr [ecx + 8] */
   1683 L_47017DB3:
   1684     eax = MEM32(ecx); /* 0x47017DB3: mov eax, dword ptr [ecx] */
   1685 L_47017DB5:
   1686     { _itail_tgt = (uint32_t)(MEM32(eax + 0x8)); goto _ljump; }
   1687     { RECOMP_REGS_OUT(); return; } /* end of function */
   1688   _ljump:
   1689     switch (_itail_tgt) {
   1690       case 0x47017DB0u: goto L_47017DB0;
   1691       case 0x47017DB3u: goto L_47017DB3;
   1692       case 0x47017DB5u: goto L_47017DB5;
   1693       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1694     }
   1695     RECOMP_REGS_OUT();
   1696 }
   1697 
   1698 void sub_47017DC0(void) {
   1699     int _fpu_cmp = 0;
   1700     uint32_t _cf = 0;
   1701     int _df = 1;
   1702     uint32_t _flag_k = FK_NONE;
   1703     uint32_t _flag_a = 0, _flag_b = 0;
   1704     uint32_t _itail_tgt = 0;
   1705     RECOMP_REGS_LOCALS
   1706     RECOMP_ENTER(0x47017DC0u);
   1707 
   1708 L_47017DC0:
   1709     eax = ecx; /* 0x47017DC0: mov eax, ecx */
   1710     ecx = MEM32(esp + 0x4); /* 0x47017DC2: mov ecx, dword ptr [esp + 4] */
   1711     /* test ecx, ecx */ /* 0x47017DC6: test ecx, ecx */
   1712     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1713     _cf = 0;
   1714     _flag_k = FK_TEST;
   1715     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017DDB; /* 0x47017DC8: jne 0x47017ddb */
   1716 L_47017DCA:
   1717     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1718     edx = 0; /* 0x47017DCA: xor edx, edx */
   1719     _cf = 0;
   1720     _flag_k = FK_TEST;
   1721     MEM32(eax + 0x4) = edx; /* 0x47017DCC: mov dword ptr [eax + 4], edx */
   1722     MEM32(eax + 0x8) = ecx; /* 0x47017DCF: mov dword ptr [eax + 8], ecx */
   1723     MEM32(eax) = 0x470ACB90u; /* 0x47017DD2: mov dword ptr [eax], 0x470acb90 */
   1724     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017DD8: ret 4 */
   1725 L_47017DDB:
   1726     edx = MEM32(ecx + 0x4); /* 0x47017DDB: mov edx, dword ptr [ecx + 4] */
   1727     edx = MEM32(edx + 0x4); /* 0x47017DDE: mov edx, dword ptr [edx + 4] */
   1728     edx = edx + ecx + 0x4; /* 0x47017DE1: lea edx, [edx + ecx + 4] */
   1729     MEM32(eax + 0x4) = edx; /* 0x47017DE5: mov dword ptr [eax + 4], edx */
   1730     MEM32(eax + 0x8) = ecx; /* 0x47017DE8: mov dword ptr [eax + 8], ecx */
   1731     MEM32(eax) = 0x470ACB90u; /* 0x47017DEB: mov dword ptr [eax], 0x470acb90 */
   1732     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017DF1: ret 4 */
   1733     RECOMP_REGS_OUT();
   1734 }
   1735 
   1736 void sub_47017E00(void) {
   1737     int _fpu_cmp = 0;
   1738     uint32_t _cf = 0;
   1739     int _df = 1;
   1740     uint32_t _flag_k = FK_NONE;
   1741     uint32_t _flag_a = 0, _flag_b = 0;
   1742     uint32_t _itail_tgt = 0;
   1743     RECOMP_REGS_LOCALS
   1744     RECOMP_ENTER(0x47017E00u);
   1745 
   1746 L_47017E00:
   1747     MEM32(ecx) = 0x470ACB80u; /* 0x47017E00: mov dword ptr [ecx], 0x470acb80 */
   1748     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017E06: ret  */
   1749     RECOMP_REGS_OUT();
   1750 }
   1751 
   1752 void sub_47017E10(void) {
   1753     int _fpu_cmp = 0;
   1754     uint32_t _cf = 0;
   1755     int _df = 1;
   1756     uint32_t _flag_k = FK_NONE;
   1757     uint32_t _flag_a = 0, _flag_b = 0;
   1758     uint32_t _itail_tgt = 0;
   1759     RECOMP_REGS_LOCALS
   1760     RECOMP_ENTER(0x47017E10u);
   1761 
   1762 L_47017E10:
   1763     eax = ecx; /* 0x47017E10: mov eax, ecx */
   1764     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1765     ecx = 0; /* 0x47017E12: xor ecx, ecx */
   1766     _cf = 0;
   1767     _flag_k = FK_TEST;
   1768     MEM32(eax + 0x4) = ecx; /* 0x47017E14: mov dword ptr [eax + 4], ecx */
   1769     MEM32(eax + 0x8) = ecx; /* 0x47017E17: mov dword ptr [eax + 8], ecx */
   1770     MEM32(eax + 0xC) = ecx; /* 0x47017E1A: mov dword ptr [eax + 0xc], ecx */
   1771     MEM32(eax) = 0x470ACB9Cu; /* 0x47017E1D: mov dword ptr [eax], 0x470acb9c */
   1772     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017E23: ret  */
   1773     RECOMP_REGS_OUT();
   1774 }
   1775 
   1776 void sub_47017E30(void) {
   1777     int _fpu_cmp = 0;
   1778     uint32_t _cf = 0;
   1779     int _df = 1;
   1780     uint32_t _flag_k = FK_NONE;
   1781     uint32_t _flag_a = 0, _flag_b = 0;
   1782     uint32_t _itail_tgt = 0;
   1783     RECOMP_REGS_LOCALS
   1784     RECOMP_ENTER(0x47017E30u);
   1785 
   1786 L_47017E30:
   1787     PUSH32(esp, ebx); /* 0x47017E30: push ebx */
   1788     ebx = MEM32(esp + 0x8); /* 0x47017E31: mov ebx, dword ptr [esp + 8] */
   1789     PUSH32(esp, esi); /* 0x47017E35: push esi */
   1790     esi = MEM32(esp + 0x18); /* 0x47017E36: mov esi, dword ptr [esp + 0x18] */
   1791     /* test esi, esi */ /* 0x47017E3A: test esi, esi */
   1792     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1793     _cf = 0;
   1794     _flag_k = FK_TEST;
   1795     PUSH32(esp, edi); /* 0x47017E3C: push edi */
   1796     edi = ecx; /* 0x47017E3D: mov edi, ecx */
   1797     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017E53; /* 0x47017E3F: jne 0x47017e53 */
   1798 L_47017E41:
   1799     esi = MEM32(ebx + 0x4); /* 0x47017E41: mov esi, dword ptr [ebx + 4] */
   1800     /* test esi, esi */ /* 0x47017E44: test esi, esi */
   1801     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1802     _cf = 0;
   1803     _flag_k = FK_TEST;
   1804     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017E53; /* 0x47017E46: jne 0x47017e53 */
   1805 L_47017E48:
   1806     PUSH32(esp, esi); /* 0x47017E48: push esi */
   1807     RECOMP_ICALL(0x47063F60u); /* 0x47017E49: call 0x47063f60 */ /* not lifted */
   1808     RECOMP_FLAGS_IN();
   1809     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1810     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1811     esp = esp + 4; /* 0x47017E4E: add esp, 4 */
   1812     _flag_k = FK_ADD;
   1813     esi = eax; /* 0x47017E51: mov esi, eax */
   1814 L_47017E53:
   1815     eax = MEM32(edi + 0xC); /* 0x47017E53: mov eax, dword ptr [edi + 0xc] */
   1816     /* test eax, eax */ /* 0x47017E56: test eax, eax */
   1817     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1818     _cf = 0;
   1819     _flag_k = FK_TEST;
   1820     if (TEST_Z(_flag_a, _flag_b)) goto L_47017E6A; /* 0x47017E58: je 0x47017e6a */
   1821 L_47017E5A:
   1822     ecx = MEM32(eax + 0x4); /* 0x47017E5A: mov ecx, dword ptr [eax + 4] */
   1823     edx = MEM32(ecx + 0x4); /* 0x47017E5D: mov edx, dword ptr [ecx + 4] */
   1824     ecx = edx + eax + 0x4; /* 0x47017E60: lea ecx, [edx + eax + 4] */
   1825     eax = MEM32(ecx); /* 0x47017E64: mov eax, dword ptr [ecx] */
   1826     PUSH32(esp, 1); /* 0x47017E66: push 1 */
   1827     RECOMP_ICALL(MEM32(eax)); /* 0x47017E68: call dword ptr [eax] */
   1828     RECOMP_FLAGS_IN();
   1829 L_47017E6A:
   1830     MEM32(edi + 0xC) = 0; /* 0x47017E6A: mov dword ptr [edi + 0xc], 0 */
   1831     edx = MEM32(esi); /* 0x47017E71: mov edx, dword ptr [esi] */
   1832     ecx = esi; /* 0x47017E73: mov ecx, esi */
   1833     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x47017E75: call dword ptr [edx + 0x3c] */
   1834     RECOMP_FLAGS_IN();
   1835     /* test eax, eax */ /* 0x47017E78: test eax, eax */
   1836     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1837     _cf = 0;
   1838     _flag_k = FK_TEST;
   1839     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017E85; /* 0x47017E7A: jne 0x47017e85 */
   1840 L_47017E7C:
   1841     edi = POP32_VAL(esp); /* 0x47017E7C: pop edi */
   1842     esi = POP32_VAL(esp); /* 0x47017E7D: pop esi */
   1843     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1844     eax = eax | 0xFFFFFFFFu; /* 0x47017E7E: or eax, 0xffffffff */
   1845     _cf = 0;
   1846     _flag_k = FK_TEST;
   1847     ebx = POP32_VAL(esp); /* 0x47017E81: pop ebx */
   1848     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47017E82: ret 0x10 */
   1849 L_47017E85:
   1850     MEM32(edi + 0xC) = eax; /* 0x47017E85: mov dword ptr [edi + 0xc], eax */
   1851     ecx = MEM32(eax + 0x4); /* 0x47017E88: mov ecx, dword ptr [eax + 4] */
   1852     edx = MEM32(ecx + 0x8); /* 0x47017E8B: mov edx, dword ptr [ecx + 8] */
   1853     eax = edx + eax + 0x4; /* 0x47017E8E: lea eax, [edx + eax + 4] */
   1854     /* test eax, eax */ /* 0x47017E92: test eax, eax */
   1855     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1856     _cf = 0;
   1857     _flag_k = FK_TEST;
   1858     MEM32(edi + 0x8) = eax; /* 0x47017E94: mov dword ptr [edi + 8], eax */
   1859     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017E9D; /* 0x47017E97: jne 0x47017e9d */
   1860 L_47017E99:
   1861     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1862     ecx = 0; /* 0x47017E99: xor ecx, ecx */
   1863     _cf = 0;
   1864     _flag_k = FK_TEST;
   1865     goto L_47017EA7; /* 0x47017E9B: jmp 0x47017ea7 */
   1866 L_47017E9D:
   1867     ecx = MEM32(eax + 0x4); /* 0x47017E9D: mov ecx, dword ptr [eax + 4] */
   1868     edx = MEM32(ecx + 0x4); /* 0x47017EA0: mov edx, dword ptr [ecx + 4] */
   1869     ecx = edx + eax + 0x4; /* 0x47017EA3: lea ecx, [edx + eax + 4] */
   1870 L_47017EA7:
   1871     edx = MEM32(esp + 0x18); /* 0x47017EA7: mov edx, dword ptr [esp + 0x18] */
   1872     PUSH32(esp, esi); /* 0x47017EAB: push esi */
   1873     PUSH32(esp, edx); /* 0x47017EAC: push edx */
   1874     edx = MEM32(esp + 0x1C); /* 0x47017EAD: mov edx, dword ptr [esp + 0x1c] */
   1875     PUSH32(esp, edx); /* 0x47017EB1: push edx */
   1876     MEM32(edi + 0x4) = ecx; /* 0x47017EB2: mov dword ptr [edi + 4], ecx */
   1877     eax = MEM32(ecx); /* 0x47017EB5: mov eax, dword ptr [ecx] */
   1878     PUSH32(esp, ebx); /* 0x47017EB7: push ebx */
   1879     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47017EB8: call dword ptr [eax + 4] */
   1880     RECOMP_FLAGS_IN();
   1881     edi = POP32_VAL(esp); /* 0x47017EBB: pop edi */
   1882     esi = POP32_VAL(esp); /* 0x47017EBC: pop esi */
   1883     ebx = POP32_VAL(esp); /* 0x47017EBD: pop ebx */
   1884     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47017EBE: ret 0x10 */
   1885     RECOMP_REGS_OUT();
   1886 }
   1887 
   1888 void sub_47017ED0(void) {
   1889     int _fpu_cmp = 0;
   1890     uint32_t _cf = 0;
   1891     int _df = 1;
   1892     uint32_t _flag_k = FK_NONE;
   1893     uint32_t _flag_a = 0, _flag_b = 0;
   1894     uint32_t _itail_tgt = 0;
   1895     RECOMP_REGS_LOCALS
   1896     RECOMP_ENTER(0x47017ED0u);
   1897 
   1898 L_47017ED0:
   1899     edx = MEM32(esp + 0x1C); /* 0x47017ED0: mov edx, dword ptr [esp + 0x1c] */
   1900     ecx = MEM32(ecx + 0xC); /* 0x47017ED4: mov ecx, dword ptr [ecx + 0xc] */
   1901     eax = MEM32(ecx); /* 0x47017ED7: mov eax, dword ptr [ecx] */
   1902     PUSH32(esp, edx); /* 0x47017ED9: push edx */
   1903     edx = MEM32(esp + 0x1C); /* 0x47017EDA: mov edx, dword ptr [esp + 0x1c] */
   1904     PUSH32(esp, edx); /* 0x47017EDE: push edx */
   1905     edx = MEM32(esp + 0x1C); /* 0x47017EDF: mov edx, dword ptr [esp + 0x1c] */
   1906     PUSH32(esp, edx); /* 0x47017EE3: push edx */
   1907     edx = MEM32(esp + 0x1C); /* 0x47017EE4: mov edx, dword ptr [esp + 0x1c] */
   1908     PUSH32(esp, edx); /* 0x47017EE8: push edx */
   1909     edx = MEM32(esp + 0x1C); /* 0x47017EE9: mov edx, dword ptr [esp + 0x1c] */
   1910     PUSH32(esp, edx); /* 0x47017EED: push edx */
   1911     edx = MEM32(esp + 0x1C); /* 0x47017EEE: mov edx, dword ptr [esp + 0x1c] */
   1912     PUSH32(esp, edx); /* 0x47017EF2: push edx */
   1913     edx = MEM32(esp + 0x1C); /* 0x47017EF3: mov edx, dword ptr [esp + 0x1c] */
   1914     PUSH32(esp, edx); /* 0x47017EF7: push edx */
   1915     RECOMP_ICALL(MEM32(eax)); /* 0x47017EF8: call dword ptr [eax] */
   1916     RECOMP_FLAGS_IN();
   1917     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x47017EFA: ret 0x1c */
   1918     RECOMP_REGS_OUT();
   1919 }
   1920 
   1921 void sub_47017F00(void) {
   1922     int _fpu_cmp = 0;
   1923     uint32_t _cf = 0;
   1924     int _df = 1;
   1925     uint32_t _flag_k = FK_NONE;
   1926     uint32_t _flag_a = 0, _flag_b = 0;
   1927     uint32_t _itail_tgt = 0;
   1928     RECOMP_REGS_LOCALS
   1929     RECOMP_ENTER(0x47017F00u);
   1930 
   1931 L_47017F00:
   1932     PUSH32(esp, esi); /* 0x47017F00: push esi */
   1933     esi = MEM32(esp + 0x8); /* 0x47017F01: mov esi, dword ptr [esp + 8] */
   1934     /* test esi, esi */ /* 0x47017F05: test esi, esi */
   1935     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1936     _cf = 0;
   1937     _flag_k = FK_TEST;
   1938     eax = ecx; /* 0x47017F07: mov eax, ecx */
   1939     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017F22; /* 0x47017F09: jne 0x47017f22 */
   1940 L_47017F0B:
   1941     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1942     ecx = 0; /* 0x47017F0B: xor ecx, ecx */
   1943     _cf = 0;
   1944     _flag_k = FK_TEST;
   1945     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1946     edx = 0; /* 0x47017F0D: xor edx, edx */
   1947     _cf = 0;
   1948     _flag_k = FK_TEST;
   1949     MEM32(eax + 0xC) = esi; /* 0x47017F0F: mov dword ptr [eax + 0xc], esi */
   1950     MEM32(eax + 0x4) = edx; /* 0x47017F12: mov dword ptr [eax + 4], edx */
   1951     MEM32(eax + 0x8) = ecx; /* 0x47017F15: mov dword ptr [eax + 8], ecx */
   1952     MEM32(eax) = 0x470ACB98u; /* 0x47017F18: mov dword ptr [eax], 0x470acb98 */
   1953     esi = POP32_VAL(esp); /* 0x47017F1E: pop esi */
   1954     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017F1F: ret 4 */
   1955 L_47017F22:
   1956     ecx = MEM32(esi); /* 0x47017F22: mov ecx, dword ptr [esi] */
   1957     ecx = MEM32(ecx + 0x8); /* 0x47017F24: mov ecx, dword ptr [ecx + 8] */
   1958     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   1959     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1960     ecx = ecx + esi; /* 0x47017F27: add ecx, esi */
   1961     _flag_k = FK_ADD;
   1962     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NE)) goto L_47017F40; /* 0x47017F29: jne 0x47017f40 */
   1963 L_47017F2B:
   1964     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1965     edx = 0; /* 0x47017F2B: xor edx, edx */
   1966     _cf = 0;
   1967     _flag_k = FK_TEST;
   1968     MEM32(eax + 0xC) = esi; /* 0x47017F2D: mov dword ptr [eax + 0xc], esi */
   1969     MEM32(eax + 0x4) = edx; /* 0x47017F30: mov dword ptr [eax + 4], edx */
   1970     MEM32(eax + 0x8) = ecx; /* 0x47017F33: mov dword ptr [eax + 8], ecx */
   1971     MEM32(eax) = 0x470ACB98u; /* 0x47017F36: mov dword ptr [eax], 0x470acb98 */
   1972     esi = POP32_VAL(esp); /* 0x47017F3C: pop esi */
   1973     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017F3D: ret 4 */
   1974 L_47017F40:
   1975     edx = MEM32(ecx + 0x4); /* 0x47017F40: mov edx, dword ptr [ecx + 4] */
   1976     edx = MEM32(edx + 0x4); /* 0x47017F43: mov edx, dword ptr [edx + 4] */
   1977     edx = edx + ecx + 0x4; /* 0x47017F46: lea edx, [edx + ecx + 4] */
   1978     MEM32(eax + 0xC) = esi; /* 0x47017F4A: mov dword ptr [eax + 0xc], esi */
   1979     MEM32(eax + 0x4) = edx; /* 0x47017F4D: mov dword ptr [eax + 4], edx */
   1980     MEM32(eax + 0x8) = ecx; /* 0x47017F50: mov dword ptr [eax + 8], ecx */
   1981     MEM32(eax) = 0x470ACB98u; /* 0x47017F53: mov dword ptr [eax], 0x470acb98 */
   1982     esi = POP32_VAL(esp); /* 0x47017F59: pop esi */
   1983     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017F5A: ret 4 */
   1984     RECOMP_REGS_OUT();
   1985 }
   1986 
   1987 void sub_47017F60(void) {
   1988     int _fpu_cmp = 0;
   1989     uint32_t _cf = 0;
   1990     int _df = 1;
   1991     uint32_t _flag_k = FK_NONE;
   1992     uint32_t _flag_a = 0, _flag_b = 0;
   1993     uint32_t _itail_tgt = 0;
   1994     RECOMP_REGS_LOCALS
   1995     RECOMP_ENTER(0x47017F60u);
   1996 
   1997 L_47017F60:
   1998     eax = ecx; /* 0x47017F60: mov eax, ecx */
   1999     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2000     ecx = 0; /* 0x47017F62: xor ecx, ecx */
   2001     _cf = 0;
   2002     _flag_k = FK_TEST;
   2003     MEM32(eax + 0x4) = ecx; /* 0x47017F64: mov dword ptr [eax + 4], ecx */
   2004     MEM32(eax + 0x8) = ecx; /* 0x47017F67: mov dword ptr [eax + 8], ecx */
   2005     MEM32(eax + 0xC) = ecx; /* 0x47017F6A: mov dword ptr [eax + 0xc], ecx */
   2006     MEM32(eax) = 0x470ACBA4u; /* 0x47017F6D: mov dword ptr [eax], 0x470acba4 */
   2007     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017F73: ret  */
   2008     RECOMP_REGS_OUT();
   2009 }
   2010 
   2011 void sub_47017F80(void) {
   2012     int _fpu_cmp = 0;
   2013     uint32_t _cf = 0;
   2014     int _df = 1;
   2015     uint32_t _flag_k = FK_NONE;
   2016     uint32_t _flag_a = 0, _flag_b = 0;
   2017     uint32_t _itail_tgt = 0;
   2018     RECOMP_REGS_LOCALS
   2019     RECOMP_ENTER(0x47017F80u);
   2020 
   2021 L_47017F80:
   2022     PUSH32(esp, ebx); /* 0x47017F80: push ebx */
   2023     ebx = MEM32(esp + 0x8); /* 0x47017F81: mov ebx, dword ptr [esp + 8] */
   2024     PUSH32(esp, esi); /* 0x47017F85: push esi */
   2025     esi = MEM32(esp + 0x18); /* 0x47017F86: mov esi, dword ptr [esp + 0x18] */
   2026     /* test esi, esi */ /* 0x47017F8A: test esi, esi */
   2027     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2028     _cf = 0;
   2029     _flag_k = FK_TEST;
   2030     PUSH32(esp, edi); /* 0x47017F8C: push edi */
   2031     edi = ecx; /* 0x47017F8D: mov edi, ecx */
   2032     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017FA3; /* 0x47017F8F: jne 0x47017fa3 */
   2033 L_47017F91:
   2034     esi = MEM32(ebx + 0x4); /* 0x47017F91: mov esi, dword ptr [ebx + 4] */
   2035     /* test esi, esi */ /* 0x47017F94: test esi, esi */
   2036     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2037     _cf = 0;
   2038     _flag_k = FK_TEST;
   2039     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017FA3; /* 0x47017F96: jne 0x47017fa3 */
   2040 L_47017F98:
   2041     PUSH32(esp, esi); /* 0x47017F98: push esi */
   2042     RECOMP_ICALL(0x47063F60u); /* 0x47017F99: call 0x47063f60 */ /* not lifted */
   2043     RECOMP_FLAGS_IN();
   2044     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2045     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2046     esp = esp + 4; /* 0x47017F9E: add esp, 4 */
   2047     _flag_k = FK_ADD;
   2048     esi = eax; /* 0x47017FA1: mov esi, eax */
   2049 L_47017FA3:
   2050     eax = MEM32(edi + 0xC); /* 0x47017FA3: mov eax, dword ptr [edi + 0xc] */
   2051     /* test eax, eax */ /* 0x47017FA6: test eax, eax */
   2052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2053     _cf = 0;
   2054     _flag_k = FK_TEST;
   2055     if (TEST_Z(_flag_a, _flag_b)) goto L_47017FBA; /* 0x47017FA8: je 0x47017fba */
   2056 L_47017FAA:
   2057     ecx = MEM32(eax + 0x4); /* 0x47017FAA: mov ecx, dword ptr [eax + 4] */
   2058     edx = MEM32(ecx + 0x4); /* 0x47017FAD: mov edx, dword ptr [ecx + 4] */
   2059     ecx = edx + eax + 0x4; /* 0x47017FB0: lea ecx, [edx + eax + 4] */
   2060     eax = MEM32(ecx); /* 0x47017FB4: mov eax, dword ptr [ecx] */
   2061     PUSH32(esp, 1); /* 0x47017FB6: push 1 */
   2062     RECOMP_ICALL(MEM32(eax)); /* 0x47017FB8: call dword ptr [eax] */
   2063     RECOMP_FLAGS_IN();
   2064 L_47017FBA:
   2065     MEM32(edi + 0xC) = 0; /* 0x47017FBA: mov dword ptr [edi + 0xc], 0 */
   2066     edx = MEM32(esi); /* 0x47017FC1: mov edx, dword ptr [esi] */
   2067     ecx = esi; /* 0x47017FC3: mov ecx, esi */
   2068     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x47017FC5: call dword ptr [edx + 0x40] */
   2069     RECOMP_FLAGS_IN();
   2070     /* test eax, eax */ /* 0x47017FC8: test eax, eax */
   2071     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2072     _cf = 0;
   2073     _flag_k = FK_TEST;
   2074     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017FD5; /* 0x47017FCA: jne 0x47017fd5 */
   2075 L_47017FCC:
   2076     edi = POP32_VAL(esp); /* 0x47017FCC: pop edi */
   2077     esi = POP32_VAL(esp); /* 0x47017FCD: pop esi */
   2078     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2079     eax = eax | 0xFFFFFFFFu; /* 0x47017FCE: or eax, 0xffffffff */
   2080     _cf = 0;
   2081     _flag_k = FK_TEST;
   2082     ebx = POP32_VAL(esp); /* 0x47017FD1: pop ebx */
   2083     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47017FD2: ret 0x10 */
   2084 L_47017FD5:
   2085     MEM32(edi + 0xC) = eax; /* 0x47017FD5: mov dword ptr [edi + 0xc], eax */
   2086     ecx = MEM32(eax + 0x4); /* 0x47017FD8: mov ecx, dword ptr [eax + 4] */
   2087     edx = MEM32(ecx + 0x8); /* 0x47017FDB: mov edx, dword ptr [ecx + 8] */
   2088     eax = edx + eax + 0x4; /* 0x47017FDE: lea eax, [edx + eax + 4] */
   2089     /* test eax, eax */ /* 0x47017FE2: test eax, eax */
   2090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2091     _cf = 0;
   2092     _flag_k = FK_TEST;
   2093     MEM32(edi + 0x8) = eax; /* 0x47017FE4: mov dword ptr [edi + 8], eax */
   2094     if (TEST_NZ(_flag_a, _flag_b)) goto L_47017FED; /* 0x47017FE7: jne 0x47017fed */
   2095 L_47017FE9:
   2096     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2097     ecx = 0; /* 0x47017FE9: xor ecx, ecx */
   2098     _cf = 0;
   2099     _flag_k = FK_TEST;
   2100     goto L_47017FF7; /* 0x47017FEB: jmp 0x47017ff7 */
   2101 L_47017FED:
   2102     ecx = MEM32(eax + 0x4); /* 0x47017FED: mov ecx, dword ptr [eax + 4] */
   2103     edx = MEM32(ecx + 0x4); /* 0x47017FF0: mov edx, dword ptr [ecx + 4] */
   2104     ecx = edx + eax + 0x4; /* 0x47017FF3: lea ecx, [edx + eax + 4] */
   2105 L_47017FF7:
   2106     edx = MEM32(esp + 0x18); /* 0x47017FF7: mov edx, dword ptr [esp + 0x18] */
   2107     PUSH32(esp, esi); /* 0x47017FFB: push esi */
   2108     PUSH32(esp, edx); /* 0x47017FFC: push edx */
   2109     edx = MEM32(esp + 0x1C); /* 0x47017FFD: mov edx, dword ptr [esp + 0x1c] */
   2110     PUSH32(esp, edx); /* 0x47018001: push edx */
   2111     MEM32(edi + 0x4) = ecx; /* 0x47018002: mov dword ptr [edi + 4], ecx */
   2112     eax = MEM32(ecx); /* 0x47018005: mov eax, dword ptr [ecx] */
   2113     PUSH32(esp, ebx); /* 0x47018007: push ebx */
   2114     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47018008: call dword ptr [eax + 4] */
   2115     RECOMP_FLAGS_IN();
   2116     edi = POP32_VAL(esp); /* 0x4701800B: pop edi */
   2117     esi = POP32_VAL(esp); /* 0x4701800C: pop esi */
   2118     ebx = POP32_VAL(esp); /* 0x4701800D: pop ebx */
   2119     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4701800E: ret 0x10 */
   2120     RECOMP_REGS_OUT();
   2121 }
   2122 
   2123 void sub_47018020(void) {
   2124     int _fpu_cmp = 0;
   2125     uint32_t _cf = 0;
   2126     int _df = 1;
   2127     uint32_t _flag_k = FK_NONE;
   2128     uint32_t _flag_a = 0, _flag_b = 0;
   2129     uint32_t _itail_tgt = 0;
   2130     RECOMP_REGS_LOCALS
   2131     RECOMP_ENTER(0x47018020u);
   2132 
   2133 L_47018020:
   2134     eax = MEM32(esp + 0x4); /* 0x47018020: mov eax, dword ptr [esp + 4] */
   2135     /* test eax, eax */ /* 0x47018024: test eax, eax */
   2136     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2137     _cf = 0;
   2138     _flag_k = FK_TEST;
   2139     MEM32(ecx + 0xC) = eax; /* 0x47018026: mov dword ptr [ecx + 0xc], eax */
   2140     if (TEST_Z(_flag_a, _flag_b)) goto L_47018035; /* 0x47018029: je 0x47018035 */
   2141 L_4701802B:
   2142     edx = MEM32(eax + 0x4); /* 0x4701802B: mov edx, dword ptr [eax + 4] */
   2143     edx = MEM32(edx + 0x8); /* 0x4701802E: mov edx, dword ptr [edx + 8] */
   2144     eax = edx + eax + 0x4; /* 0x47018031: lea eax, [edx + eax + 4] */
   2145 L_47018035:
   2146     /* test eax, eax */ /* 0x47018035: test eax, eax */
   2147     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2148     _cf = 0;
   2149     _flag_k = FK_TEST;
   2150     MEM32(ecx + 0x8) = eax; /* 0x47018037: mov dword ptr [ecx + 8], eax */
   2151     if (TEST_NZ(_flag_a, _flag_b)) goto L_47018042; /* 0x4701803A: jne 0x47018042 */
   2152 L_4701803C:
   2153     MEM32(ecx + 0x4) = eax; /* 0x4701803C: mov dword ptr [ecx + 4], eax */
   2154     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701803F: ret 4 */
   2155 L_47018042:
   2156     edx = MEM32(eax + 0x4); /* 0x47018042: mov edx, dword ptr [eax + 4] */
   2157     edx = MEM32(edx + 0x4); /* 0x47018045: mov edx, dword ptr [edx + 4] */
   2158     eax = edx + eax + 0x4; /* 0x47018048: lea eax, [edx + eax + 4] */
   2159     MEM32(ecx + 0x4) = eax; /* 0x4701804C: mov dword ptr [ecx + 4], eax */
   2160     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701804F: ret 4 */
   2161     RECOMP_REGS_OUT();
   2162 }
   2163 
   2164 void sub_47018060(void) {
   2165     int _fpu_cmp = 0;
   2166     uint32_t _cf = 0;
   2167     int _df = 1;
   2168     uint32_t _flag_k = FK_NONE;
   2169     uint32_t _flag_a = 0, _flag_b = 0;
   2170     uint32_t _itail_tgt = 0;
   2171     RECOMP_REGS_LOCALS
   2172     RECOMP_ENTER(0x47018060u);
   2173 
   2174 L_47018060:
   2175     PUSH32(esp, esi); /* 0x47018060: push esi */
   2176     esi = MEM32(esp + 0x8); /* 0x47018061: mov esi, dword ptr [esp + 8] */
   2177     /* test esi, esi */ /* 0x47018065: test esi, esi */
   2178     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2179     _cf = 0;
   2180     _flag_k = FK_TEST;
   2181     eax = ecx; /* 0x47018067: mov eax, ecx */
   2182     if (TEST_NZ(_flag_a, _flag_b)) goto L_47018082; /* 0x47018069: jne 0x47018082 */
   2183 L_4701806B:
   2184     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2185     ecx = 0; /* 0x4701806B: xor ecx, ecx */
   2186     _cf = 0;
   2187     _flag_k = FK_TEST;
   2188     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2189     edx = 0; /* 0x4701806D: xor edx, edx */
   2190     _cf = 0;
   2191     _flag_k = FK_TEST;
   2192     MEM32(eax + 0xC) = esi; /* 0x4701806F: mov dword ptr [eax + 0xc], esi */
   2193     MEM32(eax + 0x4) = edx; /* 0x47018072: mov dword ptr [eax + 4], edx */
   2194     MEM32(eax + 0x8) = ecx; /* 0x47018075: mov dword ptr [eax + 8], ecx */
   2195     MEM32(eax) = 0x470ACBA0u; /* 0x47018078: mov dword ptr [eax], 0x470acba0 */
   2196     esi = POP32_VAL(esp); /* 0x4701807E: pop esi */
   2197     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701807F: ret 4 */
   2198 L_47018082:
   2199     ecx = MEM32(esi); /* 0x47018082: mov ecx, dword ptr [esi] */
   2200     ecx = MEM32(ecx + 0x8); /* 0x47018084: mov ecx, dword ptr [ecx + 8] */
   2201     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2202     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2203     ecx = ecx + esi; /* 0x47018087: add ecx, esi */
   2204     _flag_k = FK_ADD;
   2205     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NE)) goto L_470180A0; /* 0x47018089: jne 0x470180a0 */
   2206 L_4701808B:
   2207     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2208     edx = 0; /* 0x4701808B: xor edx, edx */
   2209     _cf = 0;
   2210     _flag_k = FK_TEST;
   2211     MEM32(eax + 0xC) = esi; /* 0x4701808D: mov dword ptr [eax + 0xc], esi */
   2212     MEM32(eax + 0x4) = edx; /* 0x47018090: mov dword ptr [eax + 4], edx */
   2213     MEM32(eax + 0x8) = ecx; /* 0x47018093: mov dword ptr [eax + 8], ecx */
   2214     MEM32(eax) = 0x470ACBA0u; /* 0x47018096: mov dword ptr [eax], 0x470acba0 */
   2215     esi = POP32_VAL(esp); /* 0x4701809C: pop esi */
   2216     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701809D: ret 4 */
   2217 L_470180A0:
   2218     edx = MEM32(ecx + 0x4); /* 0x470180A0: mov edx, dword ptr [ecx + 4] */
   2219     edx = MEM32(edx + 0x4); /* 0x470180A3: mov edx, dword ptr [edx + 4] */
   2220     edx = edx + ecx + 0x4; /* 0x470180A6: lea edx, [edx + ecx + 4] */
   2221     MEM32(eax + 0xC) = esi; /* 0x470180AA: mov dword ptr [eax + 0xc], esi */
   2222     MEM32(eax + 0x4) = edx; /* 0x470180AD: mov dword ptr [eax + 4], edx */
   2223     MEM32(eax + 0x8) = ecx; /* 0x470180B0: mov dword ptr [eax + 8], ecx */
   2224     MEM32(eax) = 0x470ACBA0u; /* 0x470180B3: mov dword ptr [eax], 0x470acba0 */
   2225     esi = POP32_VAL(esp); /* 0x470180B9: pop esi */
   2226     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470180BA: ret 4 */
   2227     RECOMP_REGS_OUT();
   2228 }
   2229 
   2230 void sub_470180C0(void) {
   2231     int _fpu_cmp = 0;
   2232     uint32_t _cf = 0;
   2233     int _df = 1;
   2234     uint32_t _flag_k = FK_NONE;
   2235     uint32_t _flag_a = 0, _flag_b = 0;
   2236     uint32_t _itail_tgt = 0;
   2237     RECOMP_REGS_LOCALS
   2238     RECOMP_ENTER(0x470180C0u);
   2239 
   2240 L_470180C0:
   2241     eax = ecx; /* 0x470180C0: mov eax, ecx */
   2242     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2243     ecx = 0; /* 0x470180C2: xor ecx, ecx */
   2244     _cf = 0;
   2245     _flag_k = FK_TEST;
   2246     MEM32(eax + 0x4) = ecx; /* 0x470180C4: mov dword ptr [eax + 4], ecx */
   2247     MEM32(eax + 0x8) = ecx; /* 0x470180C7: mov dword ptr [eax + 8], ecx */
   2248     MEM32(eax) = 0x470ACBACu; /* 0x470180CA: mov dword ptr [eax], 0x470acbac */
   2249     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470180D0: ret  */
   2250     RECOMP_REGS_OUT();
   2251 }
   2252 
   2253 void sub_470180E0(void) {
   2254     int _fpu_cmp = 0;
   2255     uint32_t _cf = 0;
   2256     int _df = 1;
   2257     uint32_t _flag_k = FK_NONE;
   2258     uint32_t _flag_a = 0, _flag_b = 0;
   2259     uint32_t _itail_tgt = 0;
   2260     RECOMP_REGS_LOCALS
   2261     RECOMP_ENTER(0x470180E0u);
   2262 
   2263 L_470180E0:
   2264     PUSH32(esp, ebx); /* 0x470180E0: push ebx */
   2265     ebx = MEM32(esp + 0x8); /* 0x470180E1: mov ebx, dword ptr [esp + 8] */
   2266     PUSH32(esp, esi); /* 0x470180E5: push esi */
   2267     esi = MEM32(esp + 0x18); /* 0x470180E6: mov esi, dword ptr [esp + 0x18] */
   2268     /* test esi, esi */ /* 0x470180EA: test esi, esi */
   2269     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2270     _cf = 0;
   2271     _flag_k = FK_TEST;
   2272     PUSH32(esp, edi); /* 0x470180EC: push edi */
   2273     edi = ecx; /* 0x470180ED: mov edi, ecx */
   2274     if (TEST_NZ(_flag_a, _flag_b)) goto L_47018103; /* 0x470180EF: jne 0x47018103 */
   2275 L_470180F1:
   2276     esi = MEM32(ebx + 0x4); /* 0x470180F1: mov esi, dword ptr [ebx + 4] */
   2277     /* test esi, esi */ /* 0x470180F4: test esi, esi */
   2278     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2279     _cf = 0;
   2280     _flag_k = FK_TEST;
   2281     if (TEST_NZ(_flag_a, _flag_b)) goto L_47018103; /* 0x470180F6: jne 0x47018103 */
   2282 L_470180F8:
   2283     PUSH32(esp, esi); /* 0x470180F8: push esi */
   2284     RECOMP_ICALL(0x47063F60u); /* 0x470180F9: call 0x47063f60 */ /* not lifted */
   2285     RECOMP_FLAGS_IN();
   2286     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2287     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2288     esp = esp + 4; /* 0x470180FE: add esp, 4 */
   2289     _flag_k = FK_ADD;
   2290     esi = eax; /* 0x47018101: mov esi, eax */
   2291 L_47018103:
   2292     eax = MEM32(edi + 0x8); /* 0x47018103: mov eax, dword ptr [edi + 8] */
   2293     /* test eax, eax */ /* 0x47018106: test eax, eax */
   2294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2295     _cf = 0;
   2296     _flag_k = FK_TEST;
   2297     if (TEST_Z(_flag_a, _flag_b)) goto L_4701811A; /* 0x47018108: je 0x4701811a */
   2298 L_4701810A:
   2299     ecx = MEM32(eax + 0x4); /* 0x4701810A: mov ecx, dword ptr [eax + 4] */
   2300     edx = MEM32(ecx + 0x4); /* 0x4701810D: mov edx, dword ptr [ecx + 4] */
   2301     ecx = edx + eax + 0x4; /* 0x47018110: lea ecx, [edx + eax + 4] */
   2302     eax = MEM32(ecx); /* 0x47018114: mov eax, dword ptr [ecx] */
   2303     PUSH32(esp, 1); /* 0x47018116: push 1 */
   2304     RECOMP_ICALL(MEM32(eax)); /* 0x47018118: call dword ptr [eax] */
   2305     RECOMP_FLAGS_IN();
   2306 L_4701811A:
   2307     MEM32(edi + 0x8) = 0; /* 0x4701811A: mov dword ptr [edi + 8], 0 */
   2308     edx = MEM32(esi); /* 0x47018121: mov edx, dword ptr [esi] */
   2309     ecx = esi; /* 0x47018123: mov ecx, esi */
   2310     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x47018125: call dword ptr [edx + 0x44] */
   2311     RECOMP_FLAGS_IN();
   2312     /* test eax, eax */ /* 0x47018128: test eax, eax */
   2313     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2314     _cf = 0;
   2315     _flag_k = FK_TEST;
   2316     if (TEST_NZ(_flag_a, _flag_b)) goto L_47018135; /* 0x4701812A: jne 0x47018135 */
   2317 L_4701812C:
   2318     edi = POP32_VAL(esp); /* 0x4701812C: pop edi */
   2319     esi = POP32_VAL(esp); /* 0x4701812D: pop esi */
   2320     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2321     eax = eax | 0xFFFFFFFFu; /* 0x4701812E: or eax, 0xffffffff */
   2322     _cf = 0;
   2323     _flag_k = FK_TEST;
   2324     ebx = POP32_VAL(esp); /* 0x47018131: pop ebx */
   2325     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47018132: ret 0x10 */
   2326 L_47018135:
   2327     MEM32(edi + 0x8) = eax; /* 0x47018135: mov dword ptr [edi + 8], eax */
   2328     ecx = MEM32(eax + 0x4); /* 0x47018138: mov ecx, dword ptr [eax + 4] */
   2329     edx = MEM32(ecx + 0x4); /* 0x4701813B: mov edx, dword ptr [ecx + 4] */
   2330     ecx = edx + eax + 0x4; /* 0x4701813E: lea ecx, [edx + eax + 4] */
   2331     edx = MEM32(esp + 0x18); /* 0x47018142: mov edx, dword ptr [esp + 0x18] */
   2332     PUSH32(esp, esi); /* 0x47018146: push esi */
   2333     PUSH32(esp, edx); /* 0x47018147: push edx */
   2334     edx = MEM32(esp + 0x1C); /* 0x47018148: mov edx, dword ptr [esp + 0x1c] */
   2335     PUSH32(esp, edx); /* 0x4701814C: push edx */
   2336     MEM32(edi + 0x4) = ecx; /* 0x4701814D: mov dword ptr [edi + 4], ecx */
   2337     eax = MEM32(ecx); /* 0x47018150: mov eax, dword ptr [ecx] */
   2338     PUSH32(esp, ebx); /* 0x47018152: push ebx */
   2339     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47018153: call dword ptr [eax + 4] */
   2340     RECOMP_FLAGS_IN();
   2341     edi = POP32_VAL(esp); /* 0x47018156: pop edi */
   2342     esi = POP32_VAL(esp); /* 0x47018157: pop esi */
   2343     ebx = POP32_VAL(esp); /* 0x47018158: pop ebx */
   2344     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47018159: ret 0x10 */
   2345     RECOMP_REGS_OUT();
   2346 }
   2347 
   2348 void sub_47018160(void) {
   2349     int _fpu_cmp = 0;
   2350     uint32_t _cf = 0;
   2351     int _df = 1;
   2352     uint32_t _flag_k = FK_NONE;
   2353     uint32_t _flag_a = 0, _flag_b = 0;
   2354     uint32_t _itail_tgt = 0;
   2355     RECOMP_REGS_LOCALS
   2356     RECOMP_ENTER(0x47018160u);
   2357 
   2358 L_47018160:
   2359     edx = MEM32(esp + 0x18); /* 0x47018160: mov edx, dword ptr [esp + 0x18] */
   2360     ecx = MEM32(ecx + 0x8); /* 0x47018164: mov ecx, dword ptr [ecx + 8] */
   2361     eax = MEM32(ecx); /* 0x47018167: mov eax, dword ptr [ecx] */
   2362     PUSH32(esp, edx); /* 0x47018169: push edx */
   2363     edx = MEM32(esp + 0x18); /* 0x4701816A: mov edx, dword ptr [esp + 0x18] */
   2364     PUSH32(esp, edx); /* 0x4701816E: push edx */
   2365     edx = MEM32(esp + 0x18); /* 0x4701816F: mov edx, dword ptr [esp + 0x18] */
   2366     PUSH32(esp, edx); /* 0x47018173: push edx */
   2367     edx = MEM32(esp + 0x18); /* 0x47018174: mov edx, dword ptr [esp + 0x18] */
   2368     PUSH32(esp, edx); /* 0x47018178: push edx */
   2369     edx = MEM32(esp + 0x18); /* 0x47018179: mov edx, dword ptr [esp + 0x18] */
   2370     PUSH32(esp, edx); /* 0x4701817D: push edx */
   2371     edx = MEM32(esp + 0x18); /* 0x4701817E: mov edx, dword ptr [esp + 0x18] */
   2372     PUSH32(esp, edx); /* 0x47018182: push edx */
   2373     RECOMP_ICALL(MEM32(eax)); /* 0x47018183: call dword ptr [eax] */
   2374     RECOMP_FLAGS_IN();
   2375     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x47018185: ret 0x18 */
   2376     RECOMP_REGS_OUT();
   2377 }
   2378 
   2379 void sub_47018190(void) {
   2380     int _fpu_cmp = 0;
   2381     uint32_t _cf = 0;
   2382     int _df = 1;
   2383     uint32_t _flag_k = FK_NONE;
   2384     uint32_t _flag_a = 0, _flag_b = 0;
   2385     uint32_t _itail_tgt = 0;
   2386     RECOMP_REGS_LOCALS
   2387     RECOMP_ENTER(0x47018190u);
   2388 
   2389 L_47018190:
   2390     ecx = MEM32(ecx + 0x8); /* 0x47018190: mov ecx, dword ptr [ecx + 8] */
   2391 L_47018193:
   2392     eax = MEM32(ecx); /* 0x47018193: mov eax, dword ptr [ecx] */
   2393 L_47018195:
   2394     { _itail_tgt = (uint32_t)(MEM32(eax + 0xC)); goto _ljump; }
   2395     { RECOMP_REGS_OUT(); return; } /* end of function */
   2396   _ljump:
   2397     switch (_itail_tgt) {
   2398       case 0x47018190u: goto L_47018190;
   2399       case 0x47018193u: goto L_47018193;
   2400       case 0x47018195u: goto L_47018195;
   2401       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2402     }
   2403     RECOMP_REGS_OUT();
   2404 }
   2405 
   2406 void sub_470181A0(void) {
   2407     int _fpu_cmp = 0;
   2408     uint32_t _cf = 0;
   2409     int _df = 1;
   2410     uint32_t _flag_k = FK_NONE;
   2411     uint32_t _flag_a = 0, _flag_b = 0;
   2412     uint32_t _itail_tgt = 0;
   2413     RECOMP_REGS_LOCALS
   2414     RECOMP_ENTER(0x470181A0u);
   2415 
   2416 L_470181A0:
   2417     eax = ecx; /* 0x470181A0: mov eax, ecx */
   2418     ecx = MEM32(esp + 0x4); /* 0x470181A2: mov ecx, dword ptr [esp + 4] */
   2419     /* test ecx, ecx */ /* 0x470181A6: test ecx, ecx */
   2420     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2421     _cf = 0;
   2422     _flag_k = FK_TEST;
   2423     if (TEST_NZ(_flag_a, _flag_b)) goto L_470181BB; /* 0x470181A8: jne 0x470181bb */
   2424 L_470181AA:
   2425     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2426     edx = 0; /* 0x470181AA: xor edx, edx */
   2427     _cf = 0;
   2428     _flag_k = FK_TEST;
   2429     MEM32(eax + 0x4) = edx; /* 0x470181AC: mov dword ptr [eax + 4], edx */
   2430     MEM32(eax + 0x8) = ecx; /* 0x470181AF: mov dword ptr [eax + 8], ecx */
   2431     MEM32(eax) = 0x470ACBA8u; /* 0x470181B2: mov dword ptr [eax], 0x470acba8 */
   2432     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470181B8: ret 4 */
   2433 L_470181BB:
   2434     edx = MEM32(ecx + 0x4); /* 0x470181BB: mov edx, dword ptr [ecx + 4] */
   2435     edx = MEM32(edx + 0x4); /* 0x470181BE: mov edx, dword ptr [edx + 4] */
   2436     edx = edx + ecx + 0x4; /* 0x470181C1: lea edx, [edx + ecx + 4] */
   2437     MEM32(eax + 0x4) = edx; /* 0x470181C5: mov dword ptr [eax + 4], edx */
   2438     MEM32(eax + 0x8) = ecx; /* 0x470181C8: mov dword ptr [eax + 8], ecx */
   2439     MEM32(eax) = 0x470ACBA8u; /* 0x470181CB: mov dword ptr [eax], 0x470acba8 */
   2440     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470181D1: ret 4 */
   2441     RECOMP_REGS_OUT();
   2442 }
   2443 
   2444 void sub_470181E0(void) {
   2445     int _fpu_cmp = 0;
   2446     uint32_t _cf = 0;
   2447     int _df = 1;
   2448     uint32_t _flag_k = FK_NONE;
   2449     uint32_t _flag_a = 0, _flag_b = 0;
   2450     uint32_t _itail_tgt = 0;
   2451     RECOMP_REGS_LOCALS
   2452     RECOMP_ENTER(0x470181E0u);
   2453 
   2454 L_470181E0:
   2455     eax = ecx; /* 0x470181E0: mov eax, ecx */
   2456     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2457     ecx = 0; /* 0x470181E2: xor ecx, ecx */
   2458     _cf = 0;
   2459     _flag_k = FK_TEST;
   2460     MEM32(eax + 0x4) = ecx; /* 0x470181E4: mov dword ptr [eax + 4], ecx */
   2461     MEM32(eax + 0x8) = ecx; /* 0x470181E7: mov dword ptr [eax + 8], ecx */
   2462     MEM32(eax) = 0x470ACBB8u; /* 0x470181EA: mov dword ptr [eax], 0x470acbb8 */
   2463     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470181F0: ret  */
   2464     RECOMP_REGS_OUT();
   2465 }
   2466 
   2467 void sub_47018200(void) {
   2468     int _fpu_cmp = 0;
   2469     uint32_t _cf = 0;
   2470     int _df = 1;
   2471     uint32_t _flag_k = FK_NONE;
   2472     uint32_t _flag_a = 0, _flag_b = 0;
   2473     uint32_t _itail_tgt = 0;
   2474     RECOMP_REGS_LOCALS
   2475     RECOMP_ENTER(0x47018200u);
   2476 
   2477 L_47018200:
   2478     PUSH32(esp, esi); /* 0x47018200: push esi */
   2479     esi = ecx; /* 0x47018201: mov esi, ecx */
   2480     ecx = MEM32(esi + 0x4); /* 0x47018203: mov ecx, dword ptr [esi + 4] */
   2481     /* test ecx, ecx */ /* 0x47018206: test ecx, ecx */
   2482     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2483     _cf = 0;
   2484     _flag_k = FK_TEST;
   2485     MEM32(esi) = 0x470ACB84u; /* 0x47018208: mov dword ptr [esi], 0x470acb84 */
   2486     if (TEST_Z(_flag_a, _flag_b)) goto L_47018216; /* 0x4701820E: je 0x47018216 */
   2487 L_47018210:
   2488     eax = MEM32(ecx); /* 0x47018210: mov eax, dword ptr [ecx] */
   2489     PUSH32(esp, 1); /* 0x47018212: push 1 */
   2490     RECOMP_ICALL(MEM32(eax)); /* 0x47018214: call dword ptr [eax] */
   2491     RECOMP_FLAGS_IN();
   2492 L_47018216:
   2493     MEM32(esi + 0x4) = 0; /* 0x47018216: mov dword ptr [esi + 4], 0 */
   2494     esi = POP32_VAL(esp); /* 0x4701821D: pop esi */
   2495     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701821E: ret  */
   2496     RECOMP_REGS_OUT();
   2497 }
   2498 
   2499 void sub_47018220(void) {
   2500     int _fpu_cmp = 0;
   2501     uint32_t _cf = 0;
   2502     int _df = 1;
   2503     uint32_t _flag_k = FK_NONE;
   2504     uint32_t _flag_a = 0, _flag_b = 0;
   2505     uint32_t _itail_tgt = 0;
   2506     RECOMP_REGS_LOCALS
   2507     RECOMP_ENTER(0x47018220u);
   2508 
   2509 L_47018220:
   2510     PUSH32(esp, ebx); /* 0x47018220: push ebx */
   2511     ebx = MEM32(esp + 0x8); /* 0x47018221: mov ebx, dword ptr [esp + 8] */
   2512     PUSH32(esp, esi); /* 0x47018225: push esi */
   2513     esi = MEM32(esp + 0x18); /* 0x47018226: mov esi, dword ptr [esp + 0x18] */
   2514     /* test esi, esi */ /* 0x4701822A: test esi, esi */
   2515     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2516     _cf = 0;
   2517     _flag_k = FK_TEST;
   2518     PUSH32(esp, edi); /* 0x4701822C: push edi */
   2519     edi = ecx; /* 0x4701822D: mov edi, ecx */
   2520     if (TEST_NZ(_flag_a, _flag_b)) goto L_47018243; /* 0x4701822F: jne 0x47018243 */
   2521 L_47018231:
   2522     esi = MEM32(ebx + 0x4); /* 0x47018231: mov esi, dword ptr [ebx + 4] */
   2523     /* test esi, esi */ /* 0x47018234: test esi, esi */
   2524     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2525     _cf = 0;
   2526     _flag_k = FK_TEST;
   2527     if (TEST_NZ(_flag_a, _flag_b)) goto L_47018243; /* 0x47018236: jne 0x47018243 */
   2528 L_47018238:
   2529     PUSH32(esp, esi); /* 0x47018238: push esi */
   2530     RECOMP_ICALL(0x47063F60u); /* 0x47018239: call 0x47063f60 */ /* not lifted */
   2531     RECOMP_FLAGS_IN();
   2532     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2533     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2534     esp = esp + 4; /* 0x4701823E: add esp, 4 */
   2535     _flag_k = FK_ADD;
   2536     esi = eax; /* 0x47018241: mov esi, eax */
   2537 L_47018243:
   2538     eax = MEM32(edi + 0x8); /* 0x47018243: mov eax, dword ptr [edi + 8] */
   2539     /* test eax, eax */ /* 0x47018246: test eax, eax */
   2540     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2541     _cf = 0;
   2542     _flag_k = FK_TEST;
   2543     if (TEST_Z(_flag_a, _flag_b)) goto L_4701825A; /* 0x47018248: je 0x4701825a */
   2544 L_4701824A:
   2545     ecx = MEM32(eax + 0x4); /* 0x4701824A: mov ecx, dword ptr [eax + 4] */
   2546     edx = MEM32(ecx + 0x4); /* 0x4701824D: mov edx, dword ptr [ecx + 4] */
   2547     ecx = edx + eax + 0x4; /* 0x47018250: lea ecx, [edx + eax + 4] */
   2548     eax = MEM32(ecx); /* 0x47018254: mov eax, dword ptr [ecx] */
   2549     PUSH32(esp, 1); /* 0x47018256: push 1 */
   2550     RECOMP_ICALL(MEM32(eax)); /* 0x47018258: call dword ptr [eax] */
   2551     RECOMP_FLAGS_IN();
   2552 L_4701825A:
   2553     MEM32(edi + 0x8) = 0; /* 0x4701825A: mov dword ptr [edi + 8], 0 */
   2554     edx = MEM32(esi); /* 0x47018261: mov edx, dword ptr [esi] */
   2555     ecx = esi; /* 0x47018263: mov ecx, esi */
   2556     RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47018265: call dword ptr [edx + 0x48] */
   2557     RECOMP_FLAGS_IN();
   2558     /* test eax, eax */ /* 0x47018268: test eax, eax */
   2559     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2560     _cf = 0;
   2561     _flag_k = FK_TEST;
   2562     if (TEST_NZ(_flag_a, _flag_b)) goto L_47018275; /* 0x4701826A: jne 0x47018275 */
   2563 L_4701826C:
   2564     edi = POP32_VAL(esp); /* 0x4701826C: pop edi */
   2565     esi = POP32_VAL(esp); /* 0x4701826D: pop esi */
   2566     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2567     eax = eax | 0xFFFFFFFFu; /* 0x4701826E: or eax, 0xffffffff */
   2568     _cf = 0;
   2569     _flag_k = FK_TEST;
   2570     ebx = POP32_VAL(esp); /* 0x47018271: pop ebx */
   2571     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47018272: ret 0x10 */
   2572 L_47018275:
   2573     MEM32(edi + 0x8) = eax; /* 0x47018275: mov dword ptr [edi + 8], eax */
   2574     ecx = MEM32(eax + 0x4); /* 0x47018278: mov ecx, dword ptr [eax + 4] */
   2575     edx = MEM32(ecx + 0x4); /* 0x4701827B: mov edx, dword ptr [ecx + 4] */
   2576     ecx = edx + eax + 0x4; /* 0x4701827E: lea ecx, [edx + eax + 4] */
   2577     edx = MEM32(esp + 0x18); /* 0x47018282: mov edx, dword ptr [esp + 0x18] */
   2578     PUSH32(esp, esi); /* 0x47018286: push esi */
   2579     PUSH32(esp, edx); /* 0x47018287: push edx */
   2580     edx = MEM32(esp + 0x1C); /* 0x47018288: mov edx, dword ptr [esp + 0x1c] */
   2581     PUSH32(esp, edx); /* 0x4701828C: push edx */
   2582     MEM32(edi + 0x4) = ecx; /* 0x4701828D: mov dword ptr [edi + 4], ecx */
   2583     eax = MEM32(ecx); /* 0x47018290: mov eax, dword ptr [ecx] */
   2584     PUSH32(esp, ebx); /* 0x47018292: push ebx */
   2585     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47018293: call dword ptr [eax + 4] */
   2586     RECOMP_FLAGS_IN();
   2587     edi = POP32_VAL(esp); /* 0x47018296: pop edi */
   2588     esi = POP32_VAL(esp); /* 0x47018297: pop esi */
   2589     ebx = POP32_VAL(esp); /* 0x47018298: pop ebx */
   2590     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47018299: ret 0x10 */
   2591     RECOMP_REGS_OUT();
   2592 }
   2593 
   2594 void sub_470182A0(void) {
   2595     int _fpu_cmp = 0;
   2596     uint32_t _cf = 0;
   2597     int _df = 1;
   2598     uint32_t _flag_k = FK_NONE;
   2599     uint32_t _flag_a = 0, _flag_b = 0;
   2600     uint32_t _itail_tgt = 0;
   2601     RECOMP_REGS_LOCALS
   2602     RECOMP_ENTER(0x470182A0u);
   2603 
   2604 L_470182A0:
   2605     edx = MEM32(esp + 0x28); /* 0x470182A0: mov edx, dword ptr [esp + 0x28] */
   2606     PUSH32(esp, edx); /* 0x470182A4: push edx */
   2607     edx = MEM32(esp + 0x28); /* 0x470182A5: mov edx, dword ptr [esp + 0x28] */
   2608     PUSH32(esp, edx); /* 0x470182A9: push edx */
   2609     edx = MEM32(esp + 0x28); /* 0x470182AA: mov edx, dword ptr [esp + 0x28] */
   2610     ecx = MEM32(ecx + 0x8); /* 0x470182AE: mov ecx, dword ptr [ecx + 8] */
   2611     PUSH32(esp, edx); /* 0x470182B1: push edx */
   2612     edx = MEM32(esp + 0x28); /* 0x470182B2: mov edx, dword ptr [esp + 0x28] */
   2613     eax = MEM32(ecx); /* 0x470182B6: mov eax, dword ptr [ecx] */
   2614     PUSH32(esp, edx); /* 0x470182B8: push edx */
   2615     edx = MEM32(esp + 0x28); /* 0x470182B9: mov edx, dword ptr [esp + 0x28] */
   2616     PUSH32(esp, edx); /* 0x470182BD: push edx */
   2617     edx = MEM32(esp + 0x28); /* 0x470182BE: mov edx, dword ptr [esp + 0x28] */
   2618     PUSH32(esp, edx); /* 0x470182C2: push edx */
   2619     edx = MEM32(esp + 0x28); /* 0x470182C3: mov edx, dword ptr [esp + 0x28] */
   2620     PUSH32(esp, edx); /* 0x470182C7: push edx */
   2621     edx = MEM32(esp + 0x28); /* 0x470182C8: mov edx, dword ptr [esp + 0x28] */
   2622     PUSH32(esp, edx); /* 0x470182CC: push edx */
   2623     edx = MEM32(esp + 0x28); /* 0x470182CD: mov edx, dword ptr [esp + 0x28] */
   2624     PUSH32(esp, edx); /* 0x470182D1: push edx */
   2625     edx = MEM32(esp + 0x28); /* 0x470182D2: mov edx, dword ptr [esp + 0x28] */
   2626     PUSH32(esp, edx); /* 0x470182D6: push edx */
   2627     RECOMP_ICALL(MEM32(eax)); /* 0x470182D7: call dword ptr [eax] */
   2628     RECOMP_FLAGS_IN();
   2629     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470182D9: ret 0x28 */
   2630     RECOMP_REGS_OUT();
   2631 }
   2632 
   2633 void sub_470182E0(void) {
   2634     int _fpu_cmp = 0;
   2635     uint32_t _cf = 0;
   2636     int _df = 1;
   2637     uint32_t _flag_k = FK_NONE;
   2638     uint32_t _flag_a = 0, _flag_b = 0;
   2639     uint32_t _itail_tgt = 0;
   2640     RECOMP_REGS_LOCALS
   2641     RECOMP_ENTER(0x470182E0u);
   2642 
   2643 L_470182E0:
   2644     eax = MEM32(esp + 0x4); /* 0x470182E0: mov eax, dword ptr [esp + 4] */
   2645     /* test eax, eax */ /* 0x470182E4: test eax, eax */
   2646     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2647     _cf = 0;
   2648     _flag_k = FK_TEST;
   2649     MEM32(ecx + 0x8) = eax; /* 0x470182E6: mov dword ptr [ecx + 8], eax */
   2650     if (TEST_NZ(_flag_a, _flag_b)) goto L_470182F1; /* 0x470182E9: jne 0x470182f1 */
   2651 L_470182EB:
   2652     MEM32(ecx + 0x4) = eax; /* 0x470182EB: mov dword ptr [ecx + 4], eax */
   2653     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470182EE: ret 4 */
   2654 L_470182F1:
   2655     edx = MEM32(eax + 0x4); /* 0x470182F1: mov edx, dword ptr [eax + 4] */
   2656     edx = MEM32(edx + 0x4); /* 0x470182F4: mov edx, dword ptr [edx + 4] */
   2657     eax = edx + eax + 0x4; /* 0x470182F7: lea eax, [edx + eax + 4] */
   2658     MEM32(ecx + 0x4) = eax; /* 0x470182FB: mov dword ptr [ecx + 4], eax */
   2659     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470182FE: ret 4 */
   2660     RECOMP_REGS_OUT();
   2661 }
   2662 
   2663 void sub_47018310(void) {
   2664     int _fpu_cmp = 0;
   2665     uint32_t _cf = 0;
   2666     int _df = 1;
   2667     uint32_t _flag_k = FK_NONE;
   2668     uint32_t _flag_a = 0, _flag_b = 0;
   2669     uint32_t _itail_tgt = 0;
   2670     RECOMP_REGS_LOCALS
   2671     RECOMP_ENTER(0x47018310u);
   2672 
   2673 L_47018310:
   2674     ecx = MEM32(ecx + 0x8); /* 0x47018310: mov ecx, dword ptr [ecx + 8] */
   2675 L_47018313:
   2676     eax = MEM32(ecx); /* 0x47018313: mov eax, dword ptr [ecx] */
   2677 L_47018315:
   2678     { _itail_tgt = (uint32_t)(MEM32(eax + 0x10)); goto _ljump; }
   2679     { RECOMP_REGS_OUT(); return; } /* end of function */
   2680   _ljump:
   2681     switch (_itail_tgt) {
   2682       case 0x47018310u: goto L_47018310;
   2683       case 0x47018313u: goto L_47018313;
   2684       case 0x47018315u: goto L_47018315;
   2685       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2686     }
   2687     RECOMP_REGS_OUT();
   2688 }
   2689 
   2690 void sub_47018320(void) {
   2691     int _fpu_cmp = 0;
   2692     uint32_t _cf = 0;
   2693     int _df = 1;
   2694     uint32_t _flag_k = FK_NONE;
   2695     uint32_t _flag_a = 0, _flag_b = 0;
   2696     uint32_t _itail_tgt = 0;
   2697     RECOMP_REGS_LOCALS
   2698     RECOMP_ENTER(0x47018320u);
   2699 
   2700 L_47018320:
   2701     ecx = MEM32(ecx + 0x8); /* 0x47018320: mov ecx, dword ptr [ecx + 8] */
   2702 L_47018323:
   2703     eax = MEM32(ecx); /* 0x47018323: mov eax, dword ptr [ecx] */
   2704 L_47018325:
   2705     { _itail_tgt = (uint32_t)(MEM32(eax + 0x14)); goto _ljump; }
   2706     { RECOMP_REGS_OUT(); return; } /* end of function */
   2707   _ljump:
   2708     switch (_itail_tgt) {
   2709       case 0x47018320u: goto L_47018320;
   2710       case 0x47018323u: goto L_47018323;
   2711       case 0x47018325u: goto L_47018325;
   2712       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2713     }
   2714     RECOMP_REGS_OUT();
   2715 }
   2716 
   2717 void sub_47018330(void) {
   2718     int _fpu_cmp = 0;
   2719     uint32_t _cf = 0;
   2720     int _df = 1;
   2721     uint32_t _flag_k = FK_NONE;
   2722     uint32_t _flag_a = 0, _flag_b = 0;
   2723     uint32_t _itail_tgt = 0;
   2724     RECOMP_REGS_LOCALS
   2725     RECOMP_ENTER(0x47018330u);
   2726 
   2727 L_47018330:
   2728     eax = ecx; /* 0x47018330: mov eax, ecx */
   2729     ecx = MEM32(esp + 0x4); /* 0x47018332: mov ecx, dword ptr [esp + 4] */
   2730     /* test ecx, ecx */ /* 0x47018336: test ecx, ecx */
   2731     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2732     _cf = 0;
   2733     _flag_k = FK_TEST;
   2734     if (TEST_NZ(_flag_a, _flag_b)) goto L_4701834B; /* 0x47018338: jne 0x4701834b */
   2735 L_4701833A:
   2736     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2737     edx = 0; /* 0x4701833A: xor edx, edx */
   2738     _cf = 0;
   2739     _flag_k = FK_TEST;
   2740     MEM32(eax + 0x4) = edx; /* 0x4701833C: mov dword ptr [eax + 4], edx */
   2741     MEM32(eax + 0x8) = ecx; /* 0x4701833F: mov dword ptr [eax + 8], ecx */
   2742     MEM32(eax) = 0x470ACBB0u; /* 0x47018342: mov dword ptr [eax], 0x470acbb0 */
   2743     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47018348: ret 4 */
   2744 L_4701834B:
   2745     edx = MEM32(ecx + 0x4); /* 0x4701834B: mov edx, dword ptr [ecx + 4] */
   2746     edx = MEM32(edx + 0x4); /* 0x4701834E: mov edx, dword ptr [edx + 4] */
   2747     edx = edx + ecx + 0x4; /* 0x47018351: lea edx, [edx + ecx + 4] */
   2748     MEM32(eax + 0x4) = edx; /* 0x47018355: mov dword ptr [eax + 4], edx */
   2749     MEM32(eax + 0x8) = ecx; /* 0x47018358: mov dword ptr [eax + 8], ecx */
   2750     MEM32(eax) = 0x470ACBB0u; /* 0x4701835B: mov dword ptr [eax], 0x470acbb0 */
   2751     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47018361: ret 4 */
   2752     RECOMP_REGS_OUT();
   2753 }
   2754 
   2755 void sub_47018370(void) {
   2756     int _fpu_cmp = 0;
   2757     uint32_t _cf = 0;
   2758     int _df = 1;
   2759     uint32_t _flag_k = FK_NONE;
   2760     uint32_t _flag_a = 0, _flag_b = 0;
   2761     uint32_t _itail_tgt = 0;
   2762     RECOMP_REGS_LOCALS
   2763     RECOMP_ENTER(0x47018370u);
   2764 
   2765 L_47018370:
   2766     edx = MEM32(esp + 0x8); /* 0x47018370: mov edx, dword ptr [esp + 8] */
   2767     eax = ecx; /* 0x47018374: mov eax, ecx */
   2768     ecx = MEM32(esp + 0x4); /* 0x47018376: mov ecx, dword ptr [esp + 4] */
   2769     MEM32(eax + 0x4) = ecx; /* 0x4701837A: mov dword ptr [eax + 4], ecx */
   2770     ecx = MEM32(esp + 0xC); /* 0x4701837D: mov ecx, dword ptr [esp + 0xc] */
   2771     MEM32(eax + 0x8) = edx; /* 0x47018381: mov dword ptr [eax + 8], edx */
   2772     edx = MEM32(esp + 0x10); /* 0x47018384: mov edx, dword ptr [esp + 0x10] */
   2773     MEM32(eax + 0xC) = ecx; /* 0x47018388: mov dword ptr [eax + 0xc], ecx */
   2774     MEM32(eax + 0x10) = edx; /* 0x4701838B: mov dword ptr [eax + 0x10], edx */
   2775     MEM32(eax) = 0x470ACBB4u; /* 0x4701838E: mov dword ptr [eax], 0x470acbb4 */
   2776     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47018394: ret 0x10 */
   2777     RECOMP_REGS_OUT();
   2778 }
   2779 
   2780 void sub_470183A0(void) {
   2781     int _fpu_cmp = 0;
   2782     uint32_t _cf = 0;
   2783     int _df = 1;
   2784     uint32_t _flag_k = FK_NONE;
   2785     uint32_t _flag_a = 0, _flag_b = 0;
   2786     uint32_t _itail_tgt = 0;
   2787     RECOMP_REGS_LOCALS
   2788     RECOMP_ENTER(0x470183A0u);
   2789 
   2790 L_470183A0:
   2791     MEM32(ecx) = 0x470ACBB4u; /* 0x470183A0: mov dword ptr [ecx], 0x470acbb4 */
   2792     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470183A6: ret  */
   2793     RECOMP_REGS_OUT();
   2794 }
   2795 
   2796 void sub_470183B0(void) {
   2797     int _fpu_cmp = 0;
   2798     uint32_t _cf = 0;
   2799     int _df = 1;
   2800     uint32_t _flag_k = FK_NONE;
   2801     uint32_t _flag_a = 0, _flag_b = 0;
   2802     uint32_t _itail_tgt = 0;
   2803     RECOMP_REGS_LOCALS
   2804     RECOMP_ENTER(0x470183B0u);
   2805 
   2806 L_470183B0:
   2807     eax = MEM32(esp + 0x4); /* 0x470183B0: mov eax, dword ptr [esp + 4] */
   2808     edx = MEM32(esp + 0x8); /* 0x470183B4: mov edx, dword ptr [esp + 8] */
   2809     MEM32(ecx + 0x4) = eax; /* 0x470183B8: mov dword ptr [ecx + 4], eax */
   2810     eax = MEM32(esp + 0xC); /* 0x470183BB: mov eax, dword ptr [esp + 0xc] */
   2811     MEM32(ecx + 0x8) = edx; /* 0x470183BF: mov dword ptr [ecx + 8], edx */
   2812     edx = MEM32(esp + 0x10); /* 0x470183C2: mov edx, dword ptr [esp + 0x10] */
   2813     MEM32(ecx + 0xC) = eax; /* 0x470183C6: mov dword ptr [ecx + 0xc], eax */
   2814     MEM32(ecx + 0x10) = edx; /* 0x470183C9: mov dword ptr [ecx + 0x10], edx */
   2815     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470183CC: ret 0x10 */
   2816     RECOMP_REGS_OUT();
   2817 }
   2818 
   2819 void sub_470183D0(void) {
   2820     int _fpu_cmp = 0;
   2821     uint32_t _cf = 0;
   2822     int _df = 1;
   2823     uint32_t _flag_k = FK_NONE;
   2824     uint32_t _flag_a = 0, _flag_b = 0;
   2825     uint32_t _itail_tgt = 0;
   2826     RECOMP_REGS_LOCALS
   2827     RECOMP_ENTER(0x470183D0u);
   2828 
   2829 L_470183D0:
   2830     eax = MEM32(ecx + 0x10); /* 0x470183D0: mov eax, dword ptr [ecx + 0x10] */
   2831     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470183D3: ret  */
   2832     RECOMP_REGS_OUT();
   2833 }
   2834 
   2835 void sub_470183E0(void) {
   2836     int _fpu_cmp = 0;
   2837     uint32_t _cf = 0;
   2838     int _df = 1;
   2839     uint32_t _flag_k = FK_NONE;
   2840     uint32_t _flag_a = 0, _flag_b = 0;
   2841     uint32_t _itail_tgt = 0;
   2842     RECOMP_REGS_LOCALS
   2843     RECOMP_ENTER(0x470183E0u);
   2844 
   2845 L_470183E0:
   2846     edx = MEM32(ecx + 0x4); /* 0x470183E0: mov edx, dword ptr [ecx + 4] */
   2847     PUSH32(esp, esi); /* 0x470183E3: push esi */
   2848     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2849     esi = 0; /* 0x470183E4: xor esi, esi */
   2850     _cf = 0;
   2851     _flag_k = FK_TEST;
   2852     /* cmp edx, esi */ /* 0x470183E6: cmp edx, esi */
   2853     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   2854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2855     _flag_k = FK_CMP;
   2856     if (CMP_NE(_flag_a, _flag_b)) goto L_470183F3; /* 0x470183E8: jne 0x470183f3 */
   2857 L_470183EA:
   2858     /* cmp MEM32(ecx + 0xC), esi */ /* 0x470183EA: cmp dword ptr [ecx + 0xc], esi */
   2859     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(esi);
   2860     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2861     _flag_k = FK_CMP;
   2862     if (CMP_NE(_flag_a, _flag_b)) goto L_470183F3; /* 0x470183ED: jne 0x470183f3 */
   2863 L_470183EF:
   2864     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2865     eax = 0; /* 0x470183EF: xor eax, eax */
   2866     _cf = 0;
   2867     _flag_k = FK_TEST;
   2868     esi = POP32_VAL(esp); /* 0x470183F1: pop esi */
   2869     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470183F2: ret  */
   2870 L_470183F3:
   2871     /* cmp edx, esi */ /* 0x470183F3: cmp edx, esi */
   2872     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   2873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2874     _flag_k = FK_CMP;
   2875     PUSH32(esp, edi); /* 0x470183F5: push edi */
   2876     if (CMP_EQ(_flag_a, _flag_b)) goto L_47018412; /* 0x470183F6: je 0x47018412 */
   2877 L_470183F8:
   2878     edi = MEM32(edx + 0x2C); /* 0x470183F8: mov edi, dword ptr [edx + 0x2c] */
   2879     edi = MEM32(edi + 0x14); /* 0x470183FB: mov edi, dword ptr [edi + 0x14] */
   2880     PUSH32(esp, ebx); /* 0x470183FE: push ebx */
   2881     ebx = MEM32(edx + 0x4); /* 0x470183FF: mov ebx, dword ptr [edx + 4] */
   2882     edx = MEM32(ecx + 0x8); /* 0x47018402: mov edx, dword ptr [ecx + 8] */
   2883     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2885     edi = edi + ebx; /* 0x47018405: add edi, ebx */
   2886     _flag_k = FK_ADD;
   2887     eax = ecx + 0x14; /* 0x47018407: lea eax, [ecx + 0x14] */
   2888     MEM32(eax) = edi; /* 0x4701840A: mov dword ptr [eax], edi */
   2889     MEM32(ecx + 0x18) = edx; /* 0x4701840C: mov dword ptr [ecx + 0x18], edx */
   2890     ebx = POP32_VAL(esp); /* 0x4701840F: pop ebx */
   2891     goto L_4701841A; /* 0x47018410: jmp 0x4701841a */
   2892 L_47018412:
   2893     eax = ecx + 0x14; /* 0x47018412: lea eax, [ecx + 0x14] */
   2894     MEM32(eax) = esi; /* 0x47018415: mov dword ptr [eax], esi */
   2895     MEM32(ecx + 0x18) = esi; /* 0x47018417: mov dword ptr [ecx + 0x18], esi */
   2896 L_4701841A:
   2897     edx = MEM32(ecx + 0xC); /* 0x4701841A: mov edx, dword ptr [ecx + 0xc] */
   2898     /* cmp edx, esi */ /* 0x4701841D: cmp edx, esi */
   2899     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   2900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2901     _flag_k = FK_CMP;
   2902     if (CMP_EQ(_flag_a, _flag_b)) goto L_47018438; /* 0x4701841F: je 0x47018438 */
   2903 L_47018421:
   2904     esi = MEM32(edx + 0x2C); /* 0x47018421: mov esi, dword ptr [edx + 0x2c] */
   2905     edi = MEM32(edx + 0x4); /* 0x47018424: mov edi, dword ptr [edx + 4] */
   2906     esi = MEM32(esi + 0x14); /* 0x47018427: mov esi, dword ptr [esi + 0x14] */
   2907     edx = MEM32(ecx + 0x10); /* 0x4701842A: mov edx, dword ptr [ecx + 0x10] */
   2908     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2909     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2910     esi = esi + edi; /* 0x4701842D: add esi, edi */
   2911     _flag_k = FK_ADD;
   2912     edi = POP32_VAL(esp); /* 0x4701842F: pop edi */
   2913     MEM32(ecx + 0x1C) = esi; /* 0x47018430: mov dword ptr [ecx + 0x1c], esi */
   2914     MEM32(ecx + 0x20) = edx; /* 0x47018433: mov dword ptr [ecx + 0x20], edx */
   2915     esi = POP32_VAL(esp); /* 0x47018436: pop esi */
   2916     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018437: ret  */
   2917 L_47018438:
   2918     edi = POP32_VAL(esp); /* 0x47018438: pop edi */
   2919     MEM32(ecx + 0x1C) = esi; /* 0x47018439: mov dword ptr [ecx + 0x1c], esi */
   2920     MEM32(ecx + 0x20) = esi; /* 0x4701843C: mov dword ptr [ecx + 0x20], esi */
   2921     esi = POP32_VAL(esp); /* 0x4701843F: pop esi */
   2922     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018440: ret  */
   2923     RECOMP_REGS_OUT();
   2924 }
   2925 
   2926 void sub_47018450(void) {
   2927     int _fpu_cmp = 0;
   2928     uint32_t _cf = 0;
   2929     int _df = 1;
   2930     uint32_t _flag_k = FK_NONE;
   2931     uint32_t _flag_a = 0, _flag_b = 0;
   2932     uint32_t _itail_tgt = 0;
   2933     RECOMP_REGS_LOCALS
   2934     RECOMP_ENTER(0x47018450u);
   2935 
   2936 L_47018450:
   2937     eax = ecx; /* 0x47018450: mov eax, ecx */
   2938     MEM32(eax + 0x4) = 0; /* 0x47018452: mov dword ptr [eax + 4], 0 */
   2939     MEM32(eax) = 0x470ACBBCu; /* 0x47018459: mov dword ptr [eax], 0x470acbbc */
   2940     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701845F: ret  */
   2941     RECOMP_REGS_OUT();
   2942 }
   2943 
   2944 void sub_47018460(void) {
   2945     int _fpu_cmp = 0;
   2946     uint32_t _cf = 0;
   2947     int _df = 1;
   2948     uint32_t _flag_k = FK_NONE;
   2949     uint32_t _flag_a = 0, _flag_b = 0;
   2950     uint32_t _itail_tgt = 0;
   2951     RECOMP_REGS_LOCALS
   2952     RECOMP_ENTER(0x47018460u);
   2953 
   2954 L_47018460:
   2955     eax = ecx; /* 0x47018460: mov eax, ecx */
   2956     ecx = MEM32(esp + 0x4); /* 0x47018462: mov ecx, dword ptr [esp + 4] */
   2957     MEM32(eax + 0x4) = ecx; /* 0x47018466: mov dword ptr [eax + 4], ecx */
   2958     MEM32(eax) = 0x470ACBBCu; /* 0x47018469: mov dword ptr [eax], 0x470acbbc */
   2959     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701846F: ret 4 */
   2960     RECOMP_REGS_OUT();
   2961 }
   2962 
   2963 void sub_47018480(void) {
   2964     int _fpu_cmp = 0;
   2965     uint32_t _cf = 0;
   2966     int _df = 1;
   2967     uint32_t _flag_k = FK_NONE;
   2968     uint32_t _flag_a = 0, _flag_b = 0;
   2969     uint32_t _itail_tgt = 0;
   2970     RECOMP_REGS_LOCALS
   2971     RECOMP_ENTER(0x47018480u);
   2972 
   2973 L_47018480:
   2974     MEM32(ecx) = 0x470ACBBCu; /* 0x47018480: mov dword ptr [ecx], 0x470acbbc */
   2975     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018486: ret  */
   2976     RECOMP_REGS_OUT();
   2977 }
   2978 
   2979 void sub_47018490(void) {
   2980     int _fpu_cmp = 0;
   2981     uint32_t _cf = 0;
   2982     int _df = 1;
   2983     uint32_t _flag_k = FK_NONE;
   2984     uint32_t _flag_a = 0, _flag_b = 0;
   2985     uint32_t _itail_tgt = 0;
   2986     RECOMP_REGS_LOCALS
   2987     RECOMP_ENTER(0x47018490u);
   2988 
   2989 L_47018490:
   2990     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47018490: ret 8 */
   2991     RECOMP_REGS_OUT();
   2992 }
   2993 
   2994 void sub_470184A0(void) {
   2995     int _fpu_cmp = 0;
   2996     uint32_t _cf = 0;
   2997     int _df = 1;
   2998     uint32_t _flag_k = FK_NONE;
   2999     uint32_t _flag_a = 0, _flag_b = 0;
   3000     uint32_t _itail_tgt = 0;
   3001     RECOMP_REGS_LOCALS
   3002     RECOMP_ENTER(0x470184A0u);
   3003 
   3004 L_470184A0:
   3005     eax = ecx; /* 0x470184A0: mov eax, ecx */
   3006     MEM32(eax + 0x4) = 0; /* 0x470184A2: mov dword ptr [eax + 4], 0 */
   3007     MEM32(eax) = 0x470ACBE4u; /* 0x470184A9: mov dword ptr [eax], 0x470acbe4 */
   3008     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470184AF: ret  */
   3009     RECOMP_REGS_OUT();
   3010 }
   3011 
   3012 void sub_470184B0(void) {
   3013     int _fpu_cmp = 0;
   3014     uint32_t _cf = 0;
   3015     int _df = 1;
   3016     uint32_t _flag_k = FK_NONE;
   3017     uint32_t _flag_a = 0, _flag_b = 0;
   3018     uint32_t _itail_tgt = 0;
   3019     RECOMP_REGS_LOCALS
   3020     RECOMP_ENTER(0x470184B0u);
   3021 
   3022 L_470184B0:
   3023     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x404u);
   3024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3025     esp = esp - 0x404u; /* 0x470184B0: sub esp, 0x404 */
   3026     _flag_k = FK_CMP;
   3027     PUSH32(esp, ebx); /* 0x470184B6: push ebx */
   3028     PUSH32(esp, ebp); /* 0x470184B7: push ebp */
   3029     PUSH32(esp, esi); /* 0x470184B8: push esi */
   3030     PUSH32(esp, edi); /* 0x470184B9: push edi */
   3031     PUSH32(esp, 1); /* 0x470184BA: push 1 */
   3032     MEM32(esp + 0x14) = ecx; /* 0x470184BC: mov dword ptr [esp + 0x14], ecx */
   3033     ecx = MEM32(esp + 0x420); /* 0x470184C0: mov ecx, dword ptr [esp + 0x420] */
   3034     eax = MEM32(ecx); /* 0x470184C7: mov eax, dword ptr [ecx] */
   3035     PUSH32(esp, 0x200u); /* 0x470184C9: push 0x200 */
   3036     edx = esp + 0x1C; /* 0x470184CE: lea edx, [esp + 0x1c] */
   3037     PUSH32(esp, edx); /* 0x470184D2: push edx */
   3038     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x470184D3: call dword ptr [eax + 0x10] */
   3039     RECOMP_FLAGS_IN();
   3040     /* cmp eax, 0xFFFFFFFFu */ /* 0x470184D6: cmp eax, -1 */
   3041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3043     _flag_k = FK_CMP;
   3044     edi = MEM32(0x470AC150); /* 0x470184D9: mov edi, dword ptr [0x470ac150] */
   3045     ebx = MEM32(0x470AC3C8); /* 0x470184DF: mov ebx, dword ptr [0x470ac3c8] */
   3046     if (CMP_NE(_flag_a, _flag_b)) goto L_47018540; /* 0x470184E5: jne 0x47018540 */
   3047 L_470184E7:
   3048     RECOMP_ICALL(edi); /* 0x470184E7: call edi */
   3049     RECOMP_FLAGS_IN();
   3050     ebp = eax; /* 0x470184E9: mov ebp, eax */
   3051     RECOMP_ICALL(ebx); /* 0x470184EB: call ebx */
   3052     RECOMP_FLAGS_IN();
   3053     eax = MEM32(eax); /* 0x470184ED: mov eax, dword ptr [eax] */
   3054     /* test eax, eax */ /* 0x470184EF: test eax, eax */
   3055     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3056     _cf = 0;
   3057     _flag_k = FK_TEST;
   3058     if (TEST_Z(_flag_a, _flag_b)) goto L_470184F5; /* 0x470184F1: je 0x470184f5 */
   3059 L_470184F3:
   3060     ebp = eax; /* 0x470184F3: mov ebp, eax */
   3061 L_470184F5:
   3062     RECOMP_ICALL(0x47039020u); /* 0x470184F5: call 0x47039020 */ /* not lifted */
   3063     RECOMP_FLAGS_IN();
   3064     esi = eax; /* 0x470184FA: mov esi, eax */
   3065     ecx = esi; /* 0x470184FC: mov ecx, esi */
   3066     RECOMP_ICALL(0x4703B210u); /* 0x470184FE: call 0x4703b210 */ /* not lifted */
   3067     RECOMP_FLAGS_IN();
   3068     PUSH32(esp, eax); /* 0x47018503: push eax */
   3069     ecx = esi; /* 0x47018504: mov ecx, esi */
   3070     RECOMP_ICALL(0x4703B240u); /* 0x47018506: call 0x4703b240 */ /* not lifted */
   3071     RECOMP_FLAGS_IN();
   3072     PUSH32(esp, eax); /* 0x4701850B: push eax */
   3073     ecx = esi; /* 0x4701850C: mov ecx, esi */
   3074     RECOMP_ICALL(0x4703B080u); /* 0x4701850E: call 0x4703b080 */ /* not lifted */
   3075     RECOMP_FLAGS_IN();
   3076     PUSH32(esp, eax); /* 0x47018513: push eax */
   3077     PUSH32(esp, ebp); /* 0x47018514: push ebp */
   3078     PUSH32(esp, 0xFFFFFFFFu); /* 0x47018515: push -1 */
   3079     PUSH32(esp, 0x3F2u); /* 0x47018517: push 0x3f2 */
   3080     PUSH32(esp, 0x47105794u); /* 0x4701851C: push 0x47105794 */
   3081     ecx = esi; /* 0x47018521: mov ecx, esi */
   3082     RECOMP_ICALL(0x4703A340u); /* 0x47018523: call 0x4703a340 */ /* not lifted */
   3083     RECOMP_FLAGS_IN();
   3084     PUSH32(esp, 0x47105768u); /* 0x47018528: push 0x47105768 */
   3085     PUSH32(esp, 0x471055F0u); /* 0x4701852D: push 0x471055f0 */
   3086     PUSH32(esp, 0x80u); /* 0x47018532: push 0x80 */
   3087     PUSH32(esp, esi); /* 0x47018537: push esi */
   3088     RECOMP_ICALL(0x47039830u); /* 0x47018538: call 0x47039830 */ /* not lifted */
   3089     RECOMP_FLAGS_IN();
   3090     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3091     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3092     esp = esp + 0x10u; /* 0x4701853D: add esp, 0x10 */
   3093     _flag_k = FK_ADD;
   3094 L_47018540:
   3095     ecx = MEM32(esp + 0x418); /* 0x47018540: mov ecx, dword ptr [esp + 0x418] */
   3096     eax = MEM32(ecx); /* 0x47018547: mov eax, dword ptr [ecx] */
   3097     PUSH32(esp, 1); /* 0x47018549: push 1 */
   3098     PUSH32(esp, 0x200u); /* 0x4701854B: push 0x200 */
   3099     edx = esp + 0x21C; /* 0x47018550: lea edx, [esp + 0x21c] */
   3100     PUSH32(esp, edx); /* 0x47018557: push edx */
   3101     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x47018558: call dword ptr [eax + 0x10] */
   3102     RECOMP_FLAGS_IN();
   3103     /* cmp eax, 0xFFFFFFFFu */ /* 0x4701855B: cmp eax, -1 */
   3104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3106     _flag_k = FK_CMP;
   3107     if (CMP_NE(_flag_a, _flag_b)) goto L_470185B9; /* 0x4701855E: jne 0x470185b9 */
   3108 L_47018560:
   3109     RECOMP_ICALL(edi); /* 0x47018560: call edi */
   3110     RECOMP_FLAGS_IN();
   3111     ebp = eax; /* 0x47018562: mov ebp, eax */
   3112     RECOMP_ICALL(ebx); /* 0x47018564: call ebx */
   3113     RECOMP_FLAGS_IN();
   3114     eax = MEM32(eax); /* 0x47018566: mov eax, dword ptr [eax] */
   3115     /* test eax, eax */ /* 0x47018568: test eax, eax */
   3116     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3117     _cf = 0;
   3118     _flag_k = FK_TEST;
   3119     if (TEST_Z(_flag_a, _flag_b)) goto L_4701856E; /* 0x4701856A: je 0x4701856e */
   3120 L_4701856C:
   3121     ebp = eax; /* 0x4701856C: mov ebp, eax */
   3122 L_4701856E:
   3123     RECOMP_ICALL(0x47039020u); /* 0x4701856E: call 0x47039020 */ /* not lifted */
   3124     RECOMP_FLAGS_IN();
   3125     esi = eax; /* 0x47018573: mov esi, eax */
   3126     ecx = esi; /* 0x47018575: mov ecx, esi */
   3127     RECOMP_ICALL(0x4703B210u); /* 0x47018577: call 0x4703b210 */ /* not lifted */
   3128     RECOMP_FLAGS_IN();
   3129     PUSH32(esp, eax); /* 0x4701857C: push eax */
   3130     ecx = esi; /* 0x4701857D: mov ecx, esi */
   3131     RECOMP_ICALL(0x4703B240u); /* 0x4701857F: call 0x4703b240 */ /* not lifted */
   3132     RECOMP_FLAGS_IN();
   3133     PUSH32(esp, eax); /* 0x47018584: push eax */
   3134     ecx = esi; /* 0x47018585: mov ecx, esi */
   3135     RECOMP_ICALL(0x4703B080u); /* 0x47018587: call 0x4703b080 */ /* not lifted */
   3136     RECOMP_FLAGS_IN();
   3137     PUSH32(esp, eax); /* 0x4701858C: push eax */
   3138     PUSH32(esp, ebp); /* 0x4701858D: push ebp */
   3139     PUSH32(esp, 0xFFFFFFFFu); /* 0x4701858E: push -1 */
   3140     PUSH32(esp, 0x3F5u); /* 0x47018590: push 0x3f5 */
   3141     PUSH32(esp, 0x47105794u); /* 0x47018595: push 0x47105794 */
   3142     ecx = esi; /* 0x4701859A: mov ecx, esi */
   3143     RECOMP_ICALL(0x4703A340u); /* 0x4701859C: call 0x4703a340 */ /* not lifted */
   3144     RECOMP_FLAGS_IN();
   3145     PUSH32(esp, 0x47105738u); /* 0x470185A1: push 0x47105738 */
   3146     PUSH32(esp, 0x471055F0u); /* 0x470185A6: push 0x471055f0 */
   3147     PUSH32(esp, 0x80u); /* 0x470185AB: push 0x80 */
   3148     PUSH32(esp, esi); /* 0x470185B0: push esi */
   3149     RECOMP_ICALL(0x47039830u); /* 0x470185B1: call 0x47039830 */ /* not lifted */
   3150     RECOMP_FLAGS_IN();
   3151     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3152     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3153     esp = esp + 0x10u; /* 0x470185B6: add esp, 0x10 */
   3154     _flag_k = FK_ADD;
   3155 L_470185B9:
   3156     RECOMP_ICALL(edi); /* 0x470185B9: call edi */
   3157     RECOMP_FLAGS_IN();
   3158     ebp = eax; /* 0x470185BB: mov ebp, eax */
   3159     RECOMP_ICALL(ebx); /* 0x470185BD: call ebx */
   3160     RECOMP_FLAGS_IN();
   3161     eax = MEM32(eax); /* 0x470185BF: mov eax, dword ptr [eax] */
   3162     /* test eax, eax */ /* 0x470185C1: test eax, eax */
   3163     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3164     _cf = 0;
   3165     _flag_k = FK_TEST;
   3166     if (TEST_Z(_flag_a, _flag_b)) goto L_470185C7; /* 0x470185C3: je 0x470185c7 */
   3167 L_470185C5:
   3168     ebp = eax; /* 0x470185C5: mov ebp, eax */
   3169 L_470185C7:
   3170     RECOMP_ICALL(0x47039020u); /* 0x470185C7: call 0x47039020 */ /* not lifted */
   3171     RECOMP_FLAGS_IN();
   3172     esi = eax; /* 0x470185CC: mov esi, eax */
   3173     ecx = esi; /* 0x470185CE: mov ecx, esi */
   3174     RECOMP_ICALL(0x4703B210u); /* 0x470185D0: call 0x4703b210 */ /* not lifted */
   3175     RECOMP_FLAGS_IN();
   3176     PUSH32(esp, eax); /* 0x470185D5: push eax */
   3177     ecx = esi; /* 0x470185D6: mov ecx, esi */
   3178     RECOMP_ICALL(0x4703B240u); /* 0x470185D8: call 0x4703b240 */ /* not lifted */
   3179     RECOMP_FLAGS_IN();
   3180     PUSH32(esp, eax); /* 0x470185DD: push eax */
   3181     ecx = esi; /* 0x470185DE: mov ecx, esi */
   3182     RECOMP_ICALL(0x4703B080u); /* 0x470185E0: call 0x4703b080 */ /* not lifted */
   3183     RECOMP_FLAGS_IN();
   3184     PUSH32(esp, eax); /* 0x470185E5: push eax */
   3185     PUSH32(esp, ebp); /* 0x470185E6: push ebp */
   3186     PUSH32(esp, 0); /* 0x470185E7: push 0 */
   3187     PUSH32(esp, 0x3F7u); /* 0x470185E9: push 0x3f7 */
   3188     PUSH32(esp, 0x47105794u); /* 0x470185EE: push 0x47105794 */
   3189     ecx = esi; /* 0x470185F3: mov ecx, esi */
   3190     RECOMP_ICALL(0x4703A340u); /* 0x470185F5: call 0x4703a340 */ /* not lifted */
   3191     RECOMP_FLAGS_IN();
   3192     ecx = MEM32(esp + 0x10); /* 0x470185FA: mov ecx, dword ptr [esp + 0x10] */
   3193     eax = MEM32(ecx); /* 0x470185FE: mov eax, dword ptr [ecx] */
   3194     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x47018600: call dword ptr [eax + 0x24] */
   3195     RECOMP_FLAGS_IN();
   3196     PUSH32(esp, eax); /* 0x47018603: push eax */
   3197     PUSH32(esp, 0x4710572Cu); /* 0x47018604: push 0x4710572c */
   3198     PUSH32(esp, 4); /* 0x47018609: push 4 */
   3199     PUSH32(esp, esi); /* 0x4701860B: push esi */
   3200     RECOMP_ICALL(0x47039830u); /* 0x4701860C: call 0x47039830 */ /* not lifted */
   3201     RECOMP_FLAGS_IN();
   3202     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3204     esp = esp + 0x10u; /* 0x47018611: add esp, 0x10 */
   3205     _flag_k = FK_ADD;
   3206     RECOMP_ICALL(edi); /* 0x47018614: call edi */
   3207     RECOMP_FLAGS_IN();
   3208     ebp = eax; /* 0x47018616: mov ebp, eax */
   3209     RECOMP_ICALL(ebx); /* 0x47018618: call ebx */
   3210     RECOMP_FLAGS_IN();
   3211     eax = MEM32(eax); /* 0x4701861A: mov eax, dword ptr [eax] */
   3212     /* test eax, eax */ /* 0x4701861C: test eax, eax */
   3213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3214     _cf = 0;
   3215     _flag_k = FK_TEST;
   3216     if (TEST_Z(_flag_a, _flag_b)) goto L_47018622; /* 0x4701861E: je 0x47018622 */
   3217 L_47018620:
   3218     ebp = eax; /* 0x47018620: mov ebp, eax */
   3219 L_47018622:
   3220     RECOMP_ICALL(0x47039020u); /* 0x47018622: call 0x47039020 */ /* not lifted */
   3221     RECOMP_FLAGS_IN();
   3222     esi = eax; /* 0x47018627: mov esi, eax */
   3223     ecx = esi; /* 0x47018629: mov ecx, esi */
   3224     RECOMP_ICALL(0x4703B210u); /* 0x4701862B: call 0x4703b210 */ /* not lifted */
   3225     RECOMP_FLAGS_IN();
   3226     PUSH32(esp, eax); /* 0x47018630: push eax */
   3227     ecx = esi; /* 0x47018631: mov ecx, esi */
   3228     RECOMP_ICALL(0x4703B240u); /* 0x47018633: call 0x4703b240 */ /* not lifted */
   3229     RECOMP_FLAGS_IN();
   3230     PUSH32(esp, eax); /* 0x47018638: push eax */
   3231     ecx = esi; /* 0x47018639: mov ecx, esi */
   3232     RECOMP_ICALL(0x4703B080u); /* 0x4701863B: call 0x4703b080 */ /* not lifted */
   3233     RECOMP_FLAGS_IN();
   3234     PUSH32(esp, eax); /* 0x47018640: push eax */
   3235     PUSH32(esp, ebp); /* 0x47018641: push ebp */
   3236     PUSH32(esp, 0); /* 0x47018642: push 0 */
   3237     PUSH32(esp, 0x3F8u); /* 0x47018644: push 0x3f8 */
   3238     PUSH32(esp, 0x47105794u); /* 0x47018649: push 0x47105794 */
   3239     ecx = esi; /* 0x4701864E: mov ecx, esi */
   3240     RECOMP_ICALL(0x4703A340u); /* 0x47018650: call 0x4703a340 */ /* not lifted */
   3241     RECOMP_FLAGS_IN();
   3242     ecx = esp + 0x14; /* 0x47018655: lea ecx, [esp + 0x14] */
   3243     PUSH32(esp, ecx); /* 0x47018659: push ecx */
   3244     PUSH32(esp, 0x47105718u); /* 0x4701865A: push 0x47105718 */
   3245     PUSH32(esp, 4); /* 0x4701865F: push 4 */
   3246     PUSH32(esp, esi); /* 0x47018661: push esi */
   3247     RECOMP_ICALL(0x47039830u); /* 0x47018662: call 0x47039830 */ /* not lifted */
   3248     RECOMP_FLAGS_IN();
   3249     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3251     esp = esp + 0x10u; /* 0x47018667: add esp, 0x10 */
   3252     _flag_k = FK_ADD;
   3253     RECOMP_ICALL(edi); /* 0x4701866A: call edi */
   3254     RECOMP_FLAGS_IN();
   3255     esi = eax; /* 0x4701866C: mov esi, eax */
   3256     RECOMP_ICALL(ebx); /* 0x4701866E: call ebx */
   3257     RECOMP_FLAGS_IN();
   3258     eax = MEM32(eax); /* 0x47018670: mov eax, dword ptr [eax] */
   3259     /* test eax, eax */ /* 0x47018672: test eax, eax */
   3260     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3261     _cf = 0;
   3262     _flag_k = FK_TEST;
   3263     edi = esi; /* 0x47018674: mov edi, esi */
   3264     if (TEST_Z(_flag_a, _flag_b)) goto L_4701867A; /* 0x47018676: je 0x4701867a */
   3265 L_47018678:
   3266     edi = eax; /* 0x47018678: mov edi, eax */
   3267 L_4701867A:
   3268     RECOMP_ICALL(0x47039020u); /* 0x4701867A: call 0x47039020 */ /* not lifted */
   3269     RECOMP_FLAGS_IN();
   3270     esi = eax; /* 0x4701867F: mov esi, eax */
   3271     ecx = esi; /* 0x47018681: mov ecx, esi */
   3272     RECOMP_ICALL(0x4703B210u); /* 0x47018683: call 0x4703b210 */ /* not lifted */
   3273     RECOMP_FLAGS_IN();
   3274     PUSH32(esp, eax); /* 0x47018688: push eax */
   3275     ecx = esi; /* 0x47018689: mov ecx, esi */
   3276     RECOMP_ICALL(0x4703B240u); /* 0x4701868B: call 0x4703b240 */ /* not lifted */
   3277     RECOMP_FLAGS_IN();
   3278     PUSH32(esp, eax); /* 0x47018690: push eax */
   3279     ecx = esi; /* 0x47018691: mov ecx, esi */
   3280     RECOMP_ICALL(0x4703B080u); /* 0x47018693: call 0x4703b080 */ /* not lifted */
   3281     RECOMP_FLAGS_IN();
   3282     PUSH32(esp, eax); /* 0x47018698: push eax */
   3283     PUSH32(esp, edi); /* 0x47018699: push edi */
   3284     PUSH32(esp, 0); /* 0x4701869A: push 0 */
   3285     PUSH32(esp, 0x3F9u); /* 0x4701869C: push 0x3f9 */
   3286     PUSH32(esp, 0x47105794u); /* 0x470186A1: push 0x47105794 */
   3287     ecx = esi; /* 0x470186A6: mov ecx, esi */
   3288     RECOMP_ICALL(0x4703A340u); /* 0x470186A8: call 0x4703a340 */ /* not lifted */
   3289     RECOMP_FLAGS_IN();
   3290     edx = esp + 0x214; /* 0x470186AD: lea edx, [esp + 0x214] */
   3291     PUSH32(esp, edx); /* 0x470186B4: push edx */
   3292     PUSH32(esp, 0x47105704u); /* 0x470186B5: push 0x47105704 */
   3293     PUSH32(esp, 4); /* 0x470186BA: push 4 */
   3294     PUSH32(esp, esi); /* 0x470186BC: push esi */
   3295     RECOMP_ICALL(0x47039830u); /* 0x470186BD: call 0x47039830 */ /* not lifted */
   3296     RECOMP_FLAGS_IN();
   3297     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3298     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3299     esp = esp + 0x10u; /* 0x470186C2: add esp, 0x10 */
   3300     _flag_k = FK_ADD;
   3301     edi = POP32_VAL(esp); /* 0x470186C5: pop edi */
   3302     esi = POP32_VAL(esp); /* 0x470186C6: pop esi */
   3303     ebp = POP32_VAL(esp); /* 0x470186C7: pop ebp */
   3304     ebx = POP32_VAL(esp); /* 0x470186C8: pop ebx */
   3305     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x404u);
   3306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3307     esp = esp + 0x404u; /* 0x470186C9: add esp, 0x404 */
   3308     _flag_k = FK_ADD;
   3309     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470186CF: ret 8 */
   3310     RECOMP_REGS_OUT();
   3311 }
   3312 
   3313 void sub_470186E0(void) {
   3314     int _fpu_cmp = 0;
   3315     uint32_t _cf = 0;
   3316     int _df = 1;
   3317     uint32_t _flag_k = FK_NONE;
   3318     uint32_t _flag_a = 0, _flag_b = 0;
   3319     uint32_t _itail_tgt = 0;
   3320     RECOMP_REGS_LOCALS
   3321     RECOMP_ENTER(0x470186E0u);
   3322 
   3323 L_470186E0:
   3324     ecx = 0x4710DF75u; /* 0x470186E0: mov ecx, 0x4710df75 */
   3325     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470186E5: call dword ptr [0x470ac1c8] */
   3326     RECOMP_FLAGS_IN();
   3327     PUSH32(esp, 0x47018700u); /* 0x470186EB: push 0x47018700 */
   3328     RECOMP_ICALL(0x470A32D9u); /* 0x470186F0: call 0x470a32d9 */ /* not lifted */
   3329     RECOMP_FLAGS_IN();
   3330     ecx = POP32_VAL(esp); /* 0x470186F5: pop ecx */
   3331     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470186F6: ret  */
   3332     RECOMP_REGS_OUT();
   3333 }
   3334 
   3335 void sub_47018700(void) {
   3336     int _fpu_cmp = 0;
   3337     uint32_t _cf = 0;
   3338     int _df = 1;
   3339     uint32_t _flag_k = FK_NONE;
   3340     uint32_t _flag_a = 0, _flag_b = 0;
   3341     uint32_t _itail_tgt = 0;
   3342     RECOMP_REGS_LOCALS
   3343     RECOMP_ENTER(0x47018700u);
   3344 
   3345 L_47018700:
   3346     ecx = 0x4710DF75u; /* 0x47018700: mov ecx, 0x4710df75 */
   3347 L_47018705:
   3348     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3349     { RECOMP_REGS_OUT(); return; } /* end of function */
   3350   _ljump:
   3351     switch (_itail_tgt) {
   3352       case 0x47018700u: goto L_47018700;
   3353       case 0x47018705u: goto L_47018705;
   3354       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3355     }
   3356     RECOMP_REGS_OUT();
   3357 }
   3358 
   3359 void sub_47018710(void) {
   3360     int _fpu_cmp = 0;
   3361     uint32_t _cf = 0;
   3362     int _df = 1;
   3363     uint32_t _flag_k = FK_NONE;
   3364     uint32_t _flag_a = 0, _flag_b = 0;
   3365     uint32_t _itail_tgt = 0;
   3366     RECOMP_REGS_LOCALS
   3367     RECOMP_ENTER(0x47018710u);
   3368 
   3369 L_47018710:
   3370     ecx = 0x4710DF74u; /* 0x47018710: mov ecx, 0x4710df74 */
   3371     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47018715: call dword ptr [0x470ac1c4] */
   3372     RECOMP_FLAGS_IN();
   3373     PUSH32(esp, 0x47018730u); /* 0x4701871B: push 0x47018730 */
   3374     RECOMP_ICALL(0x470A32D9u); /* 0x47018720: call 0x470a32d9 */ /* not lifted */
   3375     RECOMP_FLAGS_IN();
   3376     ecx = POP32_VAL(esp); /* 0x47018725: pop ecx */
   3377     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018726: ret  */
   3378     RECOMP_REGS_OUT();
   3379 }
   3380 
   3381 void sub_47018730(void) {
   3382     int _fpu_cmp = 0;
   3383     uint32_t _cf = 0;
   3384     int _df = 1;
   3385     uint32_t _flag_k = FK_NONE;
   3386     uint32_t _flag_a = 0, _flag_b = 0;
   3387     uint32_t _itail_tgt = 0;
   3388     RECOMP_REGS_LOCALS
   3389     RECOMP_ENTER(0x47018730u);
   3390 
   3391 L_47018730:
   3392     ecx = 0x4710DF74u; /* 0x47018730: mov ecx, 0x4710df74 */
   3393 L_47018735:
   3394     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3395     { RECOMP_REGS_OUT(); return; } /* end of function */
   3396   _ljump:
   3397     switch (_itail_tgt) {
   3398       case 0x47018730u: goto L_47018730;
   3399       case 0x47018735u: goto L_47018735;
   3400       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3401     }
   3402     RECOMP_REGS_OUT();
   3403 }
   3404 
   3405 void sub_47018740(void) {
   3406     int _fpu_cmp = 0;
   3407     uint32_t _cf = 0;
   3408     int _df = 1;
   3409     uint32_t _flag_k = FK_NONE;
   3410     uint32_t _flag_a = 0, _flag_b = 0;
   3411     uint32_t _itail_tgt = 0;
   3412     RECOMP_REGS_LOCALS
   3413     RECOMP_ENTER(0x47018740u);
   3414 
   3415 L_47018740:
   3416     MEM32(ecx) = 0x470ACC18u; /* 0x47018740: mov dword ptr [ecx], 0x470acc18 */
   3417     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018746: ret  */
   3418     RECOMP_REGS_OUT();
   3419 }
   3420 
   3421 void sub_47018750(void) {
   3422     int _fpu_cmp = 0;
   3423     uint32_t _cf = 0;
   3424     int _df = 1;
   3425     uint32_t _flag_k = FK_NONE;
   3426     uint32_t _flag_a = 0, _flag_b = 0;
   3427     uint32_t _itail_tgt = 0;
   3428     RECOMP_REGS_LOCALS
   3429     RECOMP_ENTER(0x47018750u);
   3430 
   3431 L_47018750:
   3432     MEM32(ecx) = 0x470ACC4Cu; /* 0x47018750: mov dword ptr [ecx], 0x470acc4c */
   3433     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018756: ret  */
   3434     RECOMP_REGS_OUT();
   3435 }
   3436 
   3437 void sub_47018760(void) {
   3438     int _fpu_cmp = 0;
   3439     uint32_t _cf = 0;
   3440     int _df = 1;
   3441     uint32_t _flag_k = FK_NONE;
   3442     uint32_t _flag_a = 0, _flag_b = 0;
   3443     uint32_t _itail_tgt = 0;
   3444     RECOMP_REGS_LOCALS
   3445     RECOMP_ENTER(0x47018760u);
   3446 
   3447 L_47018760:
   3448     MEM32(ecx + (-0x8)) = 0x470ACC6Cu; /* 0x47018760: mov dword ptr [ecx - 8], 0x470acc6c */
   3449     eax = MEM32(ecx + (-0x4)); /* 0x47018767: mov eax, dword ptr [ecx - 4] */
   3450     edx = MEM32(eax + 0x4); /* 0x4701876A: mov edx, dword ptr [eax + 4] */
   3451     MEM32(edx + ecx + (-0x4)) = 0x470ACC5Cu; /* 0x4701876D: mov dword ptr [edx + ecx - 4], 0x470acc5c */
   3452     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018775: ret  */
   3453     RECOMP_REGS_OUT();
   3454 }
   3455 
   3456 void sub_47018780(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(0x47018780u);
   3465 
   3466 L_47018780:
   3467     MEM32(ecx + (-0x8)) = 0x470ACCACu; /* 0x47018780: mov dword ptr [ecx - 8], 0x470accac */
   3468     eax = MEM32(ecx + (-0x4)); /* 0x47018787: mov eax, dword ptr [ecx - 4] */
   3469     edx = MEM32(eax + 0x4); /* 0x4701878A: mov edx, dword ptr [eax + 4] */
   3470     MEM32(edx + ecx + (-0x4)) = 0x470ACC78u; /* 0x4701878D: mov dword ptr [edx + ecx - 4], 0x470acc78 */
   3471     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018795: ret  */
   3472     RECOMP_REGS_OUT();
   3473 }
   3474 
   3475 void sub_470187A0(void) {
   3476     int _fpu_cmp = 0;
   3477     uint32_t _cf = 0;
   3478     int _df = 1;
   3479     uint32_t _flag_k = FK_NONE;
   3480     uint32_t _flag_a = 0, _flag_b = 0;
   3481     uint32_t _itail_tgt = 0;
   3482     RECOMP_REGS_LOCALS
   3483     RECOMP_ENTER(0x470187A0u);
   3484 
   3485 L_470187A0:
   3486     MEM32(ecx + (-0x8)) = 0x470ACCD0u; /* 0x470187A0: mov dword ptr [ecx - 8], 0x470accd0 */
   3487     eax = MEM32(ecx + (-0x4)); /* 0x470187A7: mov eax, dword ptr [ecx - 4] */
   3488     edx = MEM32(eax + 0x4); /* 0x470187AA: mov edx, dword ptr [eax + 4] */
   3489     MEM32(edx + ecx + (-0x4)) = 0x470ACCC0u; /* 0x470187AD: mov dword ptr [edx + ecx - 4], 0x470accc0 */
   3490     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470187B5: ret  */
   3491     RECOMP_REGS_OUT();
   3492 }
   3493 
   3494 void sub_470187C0(void) {
   3495     int _fpu_cmp = 0;
   3496     uint32_t _cf = 0;
   3497     int _df = 1;
   3498     uint32_t _flag_k = FK_NONE;
   3499     uint32_t _flag_a = 0, _flag_b = 0;
   3500     uint32_t _itail_tgt = 0;
   3501     RECOMP_REGS_LOCALS
   3502     RECOMP_ENTER(0x470187C0u);
   3503 
   3504 L_470187C0:
   3505     MEM32(ecx + (-0x8)) = 0x470ACD10u; /* 0x470187C0: mov dword ptr [ecx - 8], 0x470acd10 */
   3506     eax = MEM32(ecx + (-0x4)); /* 0x470187C7: mov eax, dword ptr [ecx - 4] */
   3507     edx = MEM32(eax + 0x4); /* 0x470187CA: mov edx, dword ptr [eax + 4] */
   3508     MEM32(edx + ecx + (-0x4)) = 0x470ACCDCu; /* 0x470187CD: mov dword ptr [edx + ecx - 4], 0x470accdc */
   3509     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470187D5: ret  */
   3510     RECOMP_REGS_OUT();
   3511 }
   3512 
   3513 void sub_470187E0(void) {
   3514     int _fpu_cmp = 0;
   3515     uint32_t _cf = 0;
   3516     int _df = 1;
   3517     uint32_t _flag_k = FK_NONE;
   3518     uint32_t _flag_a = 0, _flag_b = 0;
   3519     uint32_t _itail_tgt = 0;
   3520     RECOMP_REGS_LOCALS
   3521     RECOMP_ENTER(0x470187E0u);
   3522 
   3523 L_470187E0:
   3524     MEM32(ecx + (-0x8)) = 0x470ACD38u; /* 0x470187E0: mov dword ptr [ecx - 8], 0x470acd38 */
   3525     eax = MEM32(ecx + (-0x4)); /* 0x470187E7: mov eax, dword ptr [ecx - 4] */
   3526     edx = MEM32(eax + 0x4); /* 0x470187EA: mov edx, dword ptr [eax + 4] */
   3527     MEM32(edx + ecx + (-0x4)) = 0x470ACD28u; /* 0x470187ED: mov dword ptr [edx + ecx - 4], 0x470acd28 */
   3528     eax = MEM32(ecx + (-0x4)); /* 0x470187F5: mov eax, dword ptr [ecx - 4] */
   3529     edx = MEM32(eax + 0x8); /* 0x470187F8: mov edx, dword ptr [eax + 8] */
   3530     MEM32(edx + ecx + (-0x4)) = 0x470ACD24u; /* 0x470187FB: mov dword ptr [edx + ecx - 4], 0x470acd24 */
   3531     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018803: ret  */
   3532     RECOMP_REGS_OUT();
   3533 }
   3534 
   3535 void sub_47018810(void) {
   3536     int _fpu_cmp = 0;
   3537     uint32_t _cf = 0;
   3538     int _df = 1;
   3539     uint32_t _flag_k = FK_NONE;
   3540     uint32_t _flag_a = 0, _flag_b = 0;
   3541     uint32_t _itail_tgt = 0;
   3542     RECOMP_REGS_LOCALS
   3543     RECOMP_ENTER(0x47018810u);
   3544 
   3545 L_47018810:
   3546     MEM32(ecx + (-0x8)) = 0x470ACDB8u; /* 0x47018810: mov dword ptr [ecx - 8], 0x470acdb8 */
   3547     eax = MEM32(ecx + (-0x4)); /* 0x47018817: mov eax, dword ptr [ecx - 4] */
   3548     edx = MEM32(eax + 0x4); /* 0x4701881A: mov edx, dword ptr [eax + 4] */
   3549     MEM32(edx + ecx + (-0x4)) = 0x470ACDA8u; /* 0x4701881D: mov dword ptr [edx + ecx - 4], 0x470acda8 */
   3550     eax = MEM32(ecx + (-0x4)); /* 0x47018825: mov eax, dword ptr [ecx - 4] */
   3551     edx = MEM32(eax + 0x8); /* 0x47018828: mov edx, dword ptr [eax + 8] */
   3552     MEM32(edx + ecx + (-0x4)) = 0x470ACDA4u; /* 0x4701882B: mov dword ptr [edx + ecx - 4], 0x470acda4 */
   3553     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018833: ret  */
   3554     RECOMP_REGS_OUT();
   3555 }
   3556 
   3557 void sub_47018840(void) {
   3558     int _fpu_cmp = 0;
   3559     uint32_t _cf = 0;
   3560     int _df = 1;
   3561     uint32_t _flag_k = FK_NONE;
   3562     uint32_t _flag_a = 0, _flag_b = 0;
   3563     uint32_t _itail_tgt = 0;
   3564     RECOMP_REGS_LOCALS
   3565     RECOMP_ENTER(0x47018840u);
   3566 
   3567 L_47018840:
   3568     eax = MEM32(ecx + (-0x4)); /* 0x47018840: mov eax, dword ptr [ecx - 4] */
   3569     edx = MEM32(eax + 0x4); /* 0x47018843: mov edx, dword ptr [eax + 4] */
   3570     MEM32(edx + ecx + (-0x4)) = 0x470ACD5Cu; /* 0x47018846: mov dword ptr [edx + ecx - 4], 0x470acd5c */
   3571     eax = MEM32(ecx + (-0x4)); /* 0x4701884E: mov eax, dword ptr [ecx - 4] */
   3572     edx = MEM32(eax + 0x8); /* 0x47018851: mov edx, dword ptr [eax + 8] */
   3573     MEM32(edx + ecx + (-0x4)) = 0x470ACD50u; /* 0x47018854: mov dword ptr [edx + ecx - 4], 0x470acd50 */
   3574     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701885C: ret  */
   3575     RECOMP_REGS_OUT();
   3576 }
   3577 
   3578 void sub_47018860(void) {
   3579     int _fpu_cmp = 0;
   3580     uint32_t _cf = 0;
   3581     int _df = 1;
   3582     uint32_t _flag_k = FK_NONE;
   3583     uint32_t _flag_a = 0, _flag_b = 0;
   3584     uint32_t _itail_tgt = 0;
   3585     RECOMP_REGS_LOCALS
   3586     RECOMP_ENTER(0x47018860u);
   3587 
   3588 L_47018860:
   3589     eax = MEM32(ecx + (-0x4)); /* 0x47018860: mov eax, dword ptr [ecx - 4] */
   3590     edx = MEM32(eax + 0x4); /* 0x47018863: mov edx, dword ptr [eax + 4] */
   3591     MEM32(edx + ecx + (-0x4)) = 0x470ACDDCu; /* 0x47018866: mov dword ptr [edx + ecx - 4], 0x470acddc */
   3592     eax = MEM32(ecx + (-0x4)); /* 0x4701886E: mov eax, dword ptr [ecx - 4] */
   3593     edx = MEM32(eax + 0x8); /* 0x47018871: mov edx, dword ptr [eax + 8] */
   3594     MEM32(edx + ecx + (-0x4)) = 0x470ACDD0u; /* 0x47018874: mov dword ptr [edx + ecx - 4], 0x470acdd0 */
   3595     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701887C: ret  */
   3596     RECOMP_REGS_OUT();
   3597 }
   3598 
   3599 void sub_47018880(void) {
   3600     int _fpu_cmp = 0;
   3601     uint32_t _cf = 0;
   3602     int _df = 1;
   3603     uint32_t _flag_k = FK_NONE;
   3604     uint32_t _flag_a = 0, _flag_b = 0;
   3605     uint32_t _itail_tgt = 0;
   3606     RECOMP_REGS_LOCALS
   3607     RECOMP_ENTER(0x47018880u);
   3608 
   3609 L_47018880:
   3610     MEM32(ecx + (-0x8)) = 0x470ACE74u; /* 0x47018880: mov dword ptr [ecx - 8], 0x470ace74 */
   3611     eax = MEM32(ecx + (-0x4)); /* 0x47018887: mov eax, dword ptr [ecx - 4] */
   3612     edx = MEM32(eax + 0x4); /* 0x4701888A: mov edx, dword ptr [eax + 4] */
   3613     MEM32(edx + ecx + (-0x4)) = 0x470ACE40u; /* 0x4701888D: mov dword ptr [edx + ecx - 4], 0x470ace40 */
   3614     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018895: ret  */
   3615     RECOMP_REGS_OUT();
   3616 }
   3617 
   3618 void sub_470188A0(void) {
   3619     int _fpu_cmp = 0;
   3620     uint32_t _cf = 0;
   3621     int _df = 1;
   3622     uint32_t _flag_k = FK_NONE;
   3623     uint32_t _flag_a = 0, _flag_b = 0;
   3624     uint32_t _itail_tgt = 0;
   3625     RECOMP_REGS_LOCALS
   3626     RECOMP_ENTER(0x470188A0u);
   3627 
   3628 L_470188A0:
   3629     MEM32(ecx + (-0x8)) = 0x470ACE34u; /* 0x470188A0: mov dword ptr [ecx - 8], 0x470ace34 */
   3630     eax = MEM32(ecx + (-0x4)); /* 0x470188A7: mov eax, dword ptr [ecx - 4] */
   3631     edx = MEM32(eax + 0x4); /* 0x470188AA: mov edx, dword ptr [eax + 4] */
   3632     MEM32(edx + ecx + (-0x4)) = 0x470ACE24u; /* 0x470188AD: mov dword ptr [edx + ecx - 4], 0x470ace24 */
   3633     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470188B5: ret  */
   3634     RECOMP_REGS_OUT();
   3635 }
   3636 
   3637 void sub_470188C0(void) {
   3638     int _fpu_cmp = 0;
   3639     uint32_t _cf = 0;
   3640     int _df = 1;
   3641     uint32_t _flag_k = FK_NONE;
   3642     uint32_t _flag_a = 0, _flag_b = 0;
   3643     uint32_t _itail_tgt = 0;
   3644     RECOMP_REGS_LOCALS
   3645     RECOMP_ENTER(0x470188C0u);
   3646 
   3647 L_470188C0:
   3648     MEM32(ecx + (-0x8)) = 0x470ACEF0u; /* 0x470188C0: mov dword ptr [ecx - 8], 0x470acef0 */
   3649     eax = MEM32(ecx + (-0x4)); /* 0x470188C7: mov eax, dword ptr [ecx - 4] */
   3650     edx = MEM32(eax + 0x4); /* 0x470188CA: mov edx, dword ptr [eax + 4] */
   3651     MEM32(edx + ecx + (-0x4)) = 0x470ACEE0u; /* 0x470188CD: mov dword ptr [edx + ecx - 4], 0x470acee0 */
   3652     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470188D5: ret  */
   3653     RECOMP_REGS_OUT();
   3654 }
   3655 
   3656 void sub_470188E0(void) {
   3657     int _fpu_cmp = 0;
   3658     uint32_t _cf = 0;
   3659     int _df = 1;
   3660     uint32_t _flag_k = FK_NONE;
   3661     uint32_t _flag_a = 0, _flag_b = 0;
   3662     uint32_t _itail_tgt = 0;
   3663     RECOMP_REGS_LOCALS
   3664     RECOMP_ENTER(0x470188E0u);
   3665 
   3666 L_470188E0:
   3667     PUSH32(esp, esi); /* 0x470188E0: push esi */
   3668     esi = ecx + (-0x8); /* 0x470188E1: lea esi, [ecx - 8] */
   3669     MEM32(esi) = 0x470ACEF0u; /* 0x470188E4: mov dword ptr [esi], 0x470acef0 */
   3670     eax = MEM32(esi + 0x4); /* 0x470188EA: mov eax, dword ptr [esi + 4] */
   3671     ecx = MEM32(eax + 0x4); /* 0x470188ED: mov ecx, dword ptr [eax + 4] */
   3672     /* test MEM8(esp + 0x8), 1 */ /* 0x470188F0: test byte ptr [esp + 8], 1 */
   3673     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3674     _cf = 0;
   3675     _flag_k = FK_NARROW(FK_TEST, 24);
   3676     MEM32(ecx + esi + 0x4) = 0x470ACEE0u; /* 0x470188F5: mov dword ptr [ecx + esi + 4], 0x470acee0 */
   3677     MEM32(esi + 0x8) = 0x470ACC4Cu; /* 0x470188FD: mov dword ptr [esi + 8], 0x470acc4c */
   3678     if (TEST_Z(_flag_a, _flag_b)) goto L_4701890F; /* 0x47018904: je 0x4701890f */
   3679 L_47018906:
   3680     PUSH32(esp, esi); /* 0x47018906: push esi */
   3681     RECOMP_ICALL(0x470A32A2u); /* 0x47018907: call 0x470a32a2 */ /* not lifted */
   3682     RECOMP_FLAGS_IN();
   3683     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3684     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3685     esp = esp + 4; /* 0x4701890C: add esp, 4 */
   3686     _flag_k = FK_ADD;
   3687 L_4701890F:
   3688     eax = esi; /* 0x4701890F: mov eax, esi */
   3689     esi = POP32_VAL(esp); /* 0x47018911: pop esi */
   3690     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47018912: ret 4 */
   3691     RECOMP_REGS_OUT();
   3692 }
   3693 
   3694 void sub_47018920(void) {
   3695     int _fpu_cmp = 0;
   3696     uint32_t _cf = 0;
   3697     int _df = 1;
   3698     uint32_t _flag_k = FK_NONE;
   3699     uint32_t _flag_a = 0, _flag_b = 0;
   3700     uint32_t _itail_tgt = 0;
   3701     RECOMP_REGS_LOCALS
   3702     RECOMP_ENTER(0x47018920u);
   3703 
   3704 L_47018920:
   3705     MEM32(ecx + (-0x8)) = 0x470ACEC0u; /* 0x47018920: mov dword ptr [ecx - 8], 0x470acec0 */
   3706     eax = MEM32(ecx + (-0x4)); /* 0x47018927: mov eax, dword ptr [ecx - 4] */
   3707     edx = MEM32(eax + 0x4); /* 0x4701892A: mov edx, dword ptr [eax + 4] */
   3708     MEM32(edx + ecx + (-0x4)) = 0x470ACE8Cu; /* 0x4701892D: mov dword ptr [edx + ecx - 4], 0x470ace8c */
   3709     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018935: ret  */
   3710     RECOMP_REGS_OUT();
   3711 }
   3712 
   3713 void sub_47018940(void) {
   3714     int _fpu_cmp = 0;
   3715     uint32_t _cf = 0;
   3716     int _df = 1;
   3717     uint32_t _flag_k = FK_NONE;
   3718     uint32_t _flag_a = 0, _flag_b = 0;
   3719     uint32_t _itail_tgt = 0;
   3720     RECOMP_REGS_LOCALS
   3721     RECOMP_ENTER(0x47018940u);
   3722 
   3723 L_47018940:
   3724     ecx = 0x4710DF7Du; /* 0x47018940: mov ecx, 0x4710df7d */
   3725     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47018945: call dword ptr [0x470ac1c8] */
   3726     RECOMP_FLAGS_IN();
   3727     PUSH32(esp, 0x47018960u); /* 0x4701894B: push 0x47018960 */
   3728     RECOMP_ICALL(0x470A32D9u); /* 0x47018950: call 0x470a32d9 */ /* not lifted */
   3729     RECOMP_FLAGS_IN();
   3730     ecx = POP32_VAL(esp); /* 0x47018955: pop ecx */
   3731     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018956: ret  */
   3732     RECOMP_REGS_OUT();
   3733 }
   3734 
   3735 void sub_47018960(void) {
   3736     int _fpu_cmp = 0;
   3737     uint32_t _cf = 0;
   3738     int _df = 1;
   3739     uint32_t _flag_k = FK_NONE;
   3740     uint32_t _flag_a = 0, _flag_b = 0;
   3741     uint32_t _itail_tgt = 0;
   3742     RECOMP_REGS_LOCALS
   3743     RECOMP_ENTER(0x47018960u);
   3744 
   3745 L_47018960:
   3746     ecx = 0x4710DF7Du; /* 0x47018960: mov ecx, 0x4710df7d */
   3747 L_47018965:
   3748     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3749     { RECOMP_REGS_OUT(); return; } /* end of function */
   3750   _ljump:
   3751     switch (_itail_tgt) {
   3752       case 0x47018960u: goto L_47018960;
   3753       case 0x47018965u: goto L_47018965;
   3754       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3755     }
   3756     RECOMP_REGS_OUT();
   3757 }
   3758 
   3759 void sub_47018970(void) {
   3760     int _fpu_cmp = 0;
   3761     uint32_t _cf = 0;
   3762     int _df = 1;
   3763     uint32_t _flag_k = FK_NONE;
   3764     uint32_t _flag_a = 0, _flag_b = 0;
   3765     uint32_t _itail_tgt = 0;
   3766     RECOMP_REGS_LOCALS
   3767     RECOMP_ENTER(0x47018970u);
   3768 
   3769 L_47018970:
   3770     ecx = 0x4710DF7Cu; /* 0x47018970: mov ecx, 0x4710df7c */
   3771     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47018975: call dword ptr [0x470ac1c4] */
   3772     RECOMP_FLAGS_IN();
   3773     PUSH32(esp, 0x47018990u); /* 0x4701897B: push 0x47018990 */
   3774     RECOMP_ICALL(0x470A32D9u); /* 0x47018980: call 0x470a32d9 */ /* not lifted */
   3775     RECOMP_FLAGS_IN();
   3776     ecx = POP32_VAL(esp); /* 0x47018985: pop ecx */
   3777     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47018986: ret  */
   3778     RECOMP_REGS_OUT();
   3779 }
   3780 
   3781 void sub_47018990(void) {
   3782     int _fpu_cmp = 0;
   3783     uint32_t _cf = 0;
   3784     int _df = 1;
   3785     uint32_t _flag_k = FK_NONE;
   3786     uint32_t _flag_a = 0, _flag_b = 0;
   3787     uint32_t _itail_tgt = 0;
   3788     RECOMP_REGS_LOCALS
   3789     RECOMP_ENTER(0x47018990u);
   3790 
   3791 L_47018990:
   3792     ecx = 0x4710DF7Cu; /* 0x47018990: mov ecx, 0x4710df7c */
   3793 L_47018995:
   3794     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3795     { RECOMP_REGS_OUT(); return; } /* end of function */
   3796   _ljump:
   3797     switch (_itail_tgt) {
   3798       case 0x47018990u: goto L_47018990;
   3799       case 0x47018995u: goto L_47018995;
   3800       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3801     }
   3802     RECOMP_REGS_OUT();
   3803 }