aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0082.c (144361B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_470A6C48(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(0x470A6C48u);
     13 
     14     goto L_470A6C48;
     15 L_470A33EC:
     16     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
     17 L_470A6C48:
     18     eax = 0x470B44F0u; /* 0x470A6C48: mov eax, 0x470b44f0 */
     19 L_470A6C4D:
     20     RECOMP_BACKEDGE();
     21     goto L_470A33EC; /* 0x470A6C4D: jmp 0x470a33ec */
     22     { RECOMP_REGS_OUT(); return; } /* end of function */
     23   _ljump:
     24     switch (_itail_tgt) {
     25       case 0x470A33ECu: goto L_470A33EC;
     26       case 0x470A6C48u: goto L_470A6C48;
     27       case 0x470A6C4Du: goto L_470A6C4D;
     28       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     29     }
     30     RECOMP_REGS_OUT();
     31 }
     32 
     33 void sub_470A6C60(void) {
     34     int _fpu_cmp = 0;
     35     uint32_t _cf = 0;
     36     int _df = 1;
     37     uint32_t _flag_k = FK_NONE;
     38     uint32_t _flag_a = 0, _flag_b = 0;
     39     uint32_t _itail_tgt = 0;
     40     RECOMP_REGS_LOCALS
     41     RECOMP_ENTER(0x470A6C60u);
     42 
     43     goto L_470A6C60;
     44 L_4704DAE0:
     45     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
     46     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
     47     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
     48     _cf = 0;
     49     _flag_k = FK_TEST;
     50     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
     51     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
     52     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     53     _flag_k = FK_CMP;
     54     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
     55 L_4704DAEA:
     56     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
     57     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
     58     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
     59     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
     60     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
     61     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
     62     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
     63     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
     64     PUSH32(esp, eax); /* 0x4704DB01: push eax */
     65     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
     66     RECOMP_FLAGS_IN();
     67     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
     68     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     69     _cf = 0;
     70     _flag_k = FK_TEST;
     71     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
     72 L_4704DB0C:
     73     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
     74     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
     75     RECOMP_FLAGS_IN();
     76     esi = eax; /* 0x4704DB13: mov esi, eax */
     77     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
     78     RECOMP_FLAGS_IN();
     79     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
     80     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
     81 L_4704DB1E:
     82     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
     83 L_470A6C60:
     84     ecx = ebp + (-0x28); /* 0x470A6C60: lea ecx, [ebp - 0x28] */
     85     RECOMP_BACKEDGE();
     86     goto L_4704DAE0; /* 0x470A6C63: jmp 0x4704dae0 */
     87     { RECOMP_REGS_OUT(); return; } /* end of function */
     88     RECOMP_REGS_OUT();
     89 }
     90 
     91 void sub_470A6C68(void) {
     92     int _fpu_cmp = 0;
     93     uint32_t _cf = 0;
     94     int _df = 1;
     95     uint32_t _flag_k = FK_NONE;
     96     uint32_t _flag_a = 0, _flag_b = 0;
     97     uint32_t _itail_tgt = 0;
     98     RECOMP_REGS_LOCALS
     99     RECOMP_ENTER(0x470A6C68u);
    100 
    101     goto L_470A6C68;
    102 L_470810C0:
    103     eax = ecx; /* 0x470810C0: mov eax, ecx */
    104     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    105     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    106     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    107     PUSH32(esp, eax); /* 0x470810C9: push eax */
    108     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    109     RECOMP_FLAGS_IN();
    110     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    111 L_470A6C68:
    112     ecx = ebp + (-0x3C); /* 0x470A6C68: lea ecx, [ebp - 0x3c] */
    113     RECOMP_BACKEDGE();
    114     goto L_470810C0; /* 0x470A6C6B: jmp 0x470810c0 */
    115     { RECOMP_REGS_OUT(); return; } /* end of function */
    116     RECOMP_REGS_OUT();
    117 }
    118 
    119 void sub_470A6C70(void) {
    120     int _fpu_cmp = 0;
    121     uint32_t _cf = 0;
    122     int _df = 1;
    123     uint32_t _flag_k = FK_NONE;
    124     uint32_t _flag_a = 0, _flag_b = 0;
    125     uint32_t _itail_tgt = 0;
    126     RECOMP_REGS_LOCALS
    127     RECOMP_ENTER(0x470A6C70u);
    128 
    129     goto L_470A6C70;
    130 L_470A33EC:
    131     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    132 L_470A6C70:
    133     eax = 0x470B4518u; /* 0x470A6C70: mov eax, 0x470b4518 */
    134 L_470A6C75:
    135     RECOMP_BACKEDGE();
    136     goto L_470A33EC; /* 0x470A6C75: jmp 0x470a33ec */
    137     { RECOMP_REGS_OUT(); return; } /* end of function */
    138   _ljump:
    139     switch (_itail_tgt) {
    140       case 0x470A33ECu: goto L_470A33EC;
    141       case 0x470A6C70u: goto L_470A6C70;
    142       case 0x470A6C75u: goto L_470A6C75;
    143       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    144     }
    145     RECOMP_REGS_OUT();
    146 }
    147 
    148 void sub_470A6C80(void) {
    149     int _fpu_cmp = 0;
    150     uint32_t _cf = 0;
    151     int _df = 1;
    152     uint32_t _flag_k = FK_NONE;
    153     uint32_t _flag_a = 0, _flag_b = 0;
    154     uint32_t _itail_tgt = 0;
    155     RECOMP_REGS_LOCALS
    156     RECOMP_ENTER(0x470A6C80u);
    157 
    158     goto L_470A6C80;
    159 L_4704DAE0:
    160     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
    161     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    162     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
    163     _cf = 0;
    164     _flag_k = FK_TEST;
    165     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
    166     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    168     _flag_k = FK_CMP;
    169     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
    170 L_4704DAEA:
    171     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
    172     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
    173     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
    174     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
    175     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
    176     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
    177     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
    178     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
    179     PUSH32(esp, eax); /* 0x4704DB01: push eax */
    180     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
    181     RECOMP_FLAGS_IN();
    182     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
    183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    184     _cf = 0;
    185     _flag_k = FK_TEST;
    186     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
    187 L_4704DB0C:
    188     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
    189     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
    190     RECOMP_FLAGS_IN();
    191     esi = eax; /* 0x4704DB13: mov esi, eax */
    192     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
    193     RECOMP_FLAGS_IN();
    194     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
    195     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
    196 L_4704DB1E:
    197     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
    198 L_470A6C80:
    199     ecx = ebp + (-0x40); /* 0x470A6C80: lea ecx, [ebp - 0x40] */
    200     RECOMP_BACKEDGE();
    201     goto L_4704DAE0; /* 0x470A6C83: jmp 0x4704dae0 */
    202     { RECOMP_REGS_OUT(); return; } /* end of function */
    203     RECOMP_REGS_OUT();
    204 }
    205 
    206 void sub_470A6C88(void) {
    207     int _fpu_cmp = 0;
    208     uint32_t _cf = 0;
    209     int _df = 1;
    210     uint32_t _flag_k = FK_NONE;
    211     uint32_t _flag_a = 0, _flag_b = 0;
    212     uint32_t _itail_tgt = 0;
    213     RECOMP_REGS_LOCALS
    214     RECOMP_ENTER(0x470A6C88u);
    215 
    216     goto L_470A6C88;
    217 L_470810C0:
    218     eax = ecx; /* 0x470810C0: mov eax, ecx */
    219     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    220     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    221     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    222     PUSH32(esp, eax); /* 0x470810C9: push eax */
    223     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    224     RECOMP_FLAGS_IN();
    225     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    226 L_470A6C88:
    227     ecx = ebp + (-0x18); /* 0x470A6C88: lea ecx, [ebp - 0x18] */
    228     RECOMP_BACKEDGE();
    229     goto L_470810C0; /* 0x470A6C8B: jmp 0x470810c0 */
    230     { RECOMP_REGS_OUT(); return; } /* end of function */
    231     RECOMP_REGS_OUT();
    232 }
    233 
    234 void sub_470A6C90(void) {
    235     int _fpu_cmp = 0;
    236     uint32_t _cf = 0;
    237     int _df = 1;
    238     uint32_t _flag_k = FK_NONE;
    239     uint32_t _flag_a = 0, _flag_b = 0;
    240     uint32_t _itail_tgt = 0;
    241     RECOMP_REGS_LOCALS
    242     RECOMP_ENTER(0x470A6C90u);
    243 
    244     goto L_470A6C90;
    245 L_470810C0:
    246     eax = ecx; /* 0x470810C0: mov eax, ecx */
    247     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    248     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    249     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    250     PUSH32(esp, eax); /* 0x470810C9: push eax */
    251     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    252     RECOMP_FLAGS_IN();
    253     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    254 L_470A6C90:
    255     ecx = ebp + (-0x30); /* 0x470A6C90: lea ecx, [ebp - 0x30] */
    256     RECOMP_BACKEDGE();
    257     goto L_470810C0; /* 0x470A6C93: jmp 0x470810c0 */
    258     { RECOMP_REGS_OUT(); return; } /* end of function */
    259     RECOMP_REGS_OUT();
    260 }
    261 
    262 void sub_470A6C98(void) {
    263     int _fpu_cmp = 0;
    264     uint32_t _cf = 0;
    265     int _df = 1;
    266     uint32_t _flag_k = FK_NONE;
    267     uint32_t _flag_a = 0, _flag_b = 0;
    268     uint32_t _itail_tgt = 0;
    269     RECOMP_REGS_LOCALS
    270     RECOMP_ENTER(0x470A6C98u);
    271 
    272     goto L_470A6C98;
    273 L_470A33EC:
    274     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    275 L_470A6C98:
    276     eax = 0x470B4548u; /* 0x470A6C98: mov eax, 0x470b4548 */
    277 L_470A6C9D:
    278     RECOMP_BACKEDGE();
    279     goto L_470A33EC; /* 0x470A6C9D: jmp 0x470a33ec */
    280     { RECOMP_REGS_OUT(); return; } /* end of function */
    281   _ljump:
    282     switch (_itail_tgt) {
    283       case 0x470A33ECu: goto L_470A33EC;
    284       case 0x470A6C98u: goto L_470A6C98;
    285       case 0x470A6C9Du: goto L_470A6C9D;
    286       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    287     }
    288     RECOMP_REGS_OUT();
    289 }
    290 
    291 void sub_470A6CB0(void) {
    292     int _fpu_cmp = 0;
    293     uint32_t _cf = 0;
    294     int _df = 1;
    295     uint32_t _flag_k = FK_NONE;
    296     uint32_t _flag_a = 0, _flag_b = 0;
    297     uint32_t _itail_tgt = 0;
    298     RECOMP_REGS_LOCALS
    299     RECOMP_ENTER(0x470A6CB0u);
    300 
    301     goto L_470A6CB0;
    302 L_4704DAE0:
    303     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
    304     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    305     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
    306     _cf = 0;
    307     _flag_k = FK_TEST;
    308     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
    309     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    311     _flag_k = FK_CMP;
    312     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
    313 L_4704DAEA:
    314     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
    315     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
    316     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
    317     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
    318     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
    319     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
    320     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
    321     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
    322     PUSH32(esp, eax); /* 0x4704DB01: push eax */
    323     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
    324     RECOMP_FLAGS_IN();
    325     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
    326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    327     _cf = 0;
    328     _flag_k = FK_TEST;
    329     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
    330 L_4704DB0C:
    331     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
    332     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
    333     RECOMP_FLAGS_IN();
    334     esi = eax; /* 0x4704DB13: mov esi, eax */
    335     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
    336     RECOMP_FLAGS_IN();
    337     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
    338     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
    339 L_4704DB1E:
    340     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
    341 L_470A6CB0:
    342     ecx = ebp + (-0x50); /* 0x470A6CB0: lea ecx, [ebp - 0x50] */
    343     RECOMP_BACKEDGE();
    344     goto L_4704DAE0; /* 0x470A6CB3: jmp 0x4704dae0 */
    345     { RECOMP_REGS_OUT(); return; } /* end of function */
    346     RECOMP_REGS_OUT();
    347 }
    348 
    349 void sub_470A6CB8(void) {
    350     int _fpu_cmp = 0;
    351     uint32_t _cf = 0;
    352     int _df = 1;
    353     uint32_t _flag_k = FK_NONE;
    354     uint32_t _flag_a = 0, _flag_b = 0;
    355     uint32_t _itail_tgt = 0;
    356     RECOMP_REGS_LOCALS
    357     RECOMP_ENTER(0x470A6CB8u);
    358 
    359     goto L_470A6CB8;
    360 L_470810C0:
    361     eax = ecx; /* 0x470810C0: mov eax, ecx */
    362     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    363     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    364     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    365     PUSH32(esp, eax); /* 0x470810C9: push eax */
    366     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    367     RECOMP_FLAGS_IN();
    368     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    369 L_470A6CB8:
    370     ecx = ebp + (-0x18); /* 0x470A6CB8: lea ecx, [ebp - 0x18] */
    371     RECOMP_BACKEDGE();
    372     goto L_470810C0; /* 0x470A6CBB: jmp 0x470810c0 */
    373     { RECOMP_REGS_OUT(); return; } /* end of function */
    374     RECOMP_REGS_OUT();
    375 }
    376 
    377 void sub_470A6CC0(void) {
    378     int _fpu_cmp = 0;
    379     uint32_t _cf = 0;
    380     int _df = 1;
    381     uint32_t _flag_k = FK_NONE;
    382     uint32_t _flag_a = 0, _flag_b = 0;
    383     uint32_t _itail_tgt = 0;
    384     RECOMP_REGS_LOCALS
    385     RECOMP_ENTER(0x470A6CC0u);
    386 
    387     goto L_470A6CC0;
    388 L_470810C0:
    389     eax = ecx; /* 0x470810C0: mov eax, ecx */
    390     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    391     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    392     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    393     PUSH32(esp, eax); /* 0x470810C9: push eax */
    394     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    395     RECOMP_FLAGS_IN();
    396     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    397 L_470A6CC0:
    398     ecx = ebp + (-0x30); /* 0x470A6CC0: lea ecx, [ebp - 0x30] */
    399     RECOMP_BACKEDGE();
    400     goto L_470810C0; /* 0x470A6CC3: jmp 0x470810c0 */
    401     { RECOMP_REGS_OUT(); return; } /* end of function */
    402     RECOMP_REGS_OUT();
    403 }
    404 
    405 void sub_470A6CC8(void) {
    406     int _fpu_cmp = 0;
    407     uint32_t _cf = 0;
    408     int _df = 1;
    409     uint32_t _flag_k = FK_NONE;
    410     uint32_t _flag_a = 0, _flag_b = 0;
    411     uint32_t _itail_tgt = 0;
    412     RECOMP_REGS_LOCALS
    413     RECOMP_ENTER(0x470A6CC8u);
    414 
    415     goto L_470A6CC8;
    416 L_470A33EC:
    417     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    418 L_470A6CC8:
    419     eax = 0x470B4588u; /* 0x470A6CC8: mov eax, 0x470b4588 */
    420 L_470A6CCD:
    421     RECOMP_BACKEDGE();
    422     goto L_470A33EC; /* 0x470A6CCD: jmp 0x470a33ec */
    423     { RECOMP_REGS_OUT(); return; } /* end of function */
    424   _ljump:
    425     switch (_itail_tgt) {
    426       case 0x470A33ECu: goto L_470A33EC;
    427       case 0x470A6CC8u: goto L_470A6CC8;
    428       case 0x470A6CCDu: goto L_470A6CCD;
    429       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    430     }
    431     RECOMP_REGS_OUT();
    432 }
    433 
    434 void sub_470A6CE0(void) {
    435     int _fpu_cmp = 0;
    436     uint32_t _cf = 0;
    437     int _df = 1;
    438     uint32_t _flag_k = FK_NONE;
    439     uint32_t _flag_a = 0, _flag_b = 0;
    440     uint32_t _itail_tgt = 0;
    441     RECOMP_REGS_LOCALS
    442     RECOMP_ENTER(0x470A6CE0u);
    443 
    444     goto L_470A6CE0;
    445 L_4704DAE0:
    446     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
    447     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    448     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
    449     _cf = 0;
    450     _flag_k = FK_TEST;
    451     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
    452     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    454     _flag_k = FK_CMP;
    455     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
    456 L_4704DAEA:
    457     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
    458     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
    459     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
    460     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
    461     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
    462     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
    463     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
    464     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
    465     PUSH32(esp, eax); /* 0x4704DB01: push eax */
    466     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
    467     RECOMP_FLAGS_IN();
    468     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
    469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    470     _cf = 0;
    471     _flag_k = FK_TEST;
    472     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
    473 L_4704DB0C:
    474     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
    475     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
    476     RECOMP_FLAGS_IN();
    477     esi = eax; /* 0x4704DB13: mov esi, eax */
    478     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
    479     RECOMP_FLAGS_IN();
    480     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
    481     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
    482 L_4704DB1E:
    483     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
    484 L_470A6CE0:
    485     ecx = ebp + (-0x2C); /* 0x470A6CE0: lea ecx, [ebp - 0x2c] */
    486     RECOMP_BACKEDGE();
    487     goto L_4704DAE0; /* 0x470A6CE3: jmp 0x4704dae0 */
    488     { RECOMP_REGS_OUT(); return; } /* end of function */
    489     RECOMP_REGS_OUT();
    490 }
    491 
    492 void sub_470A6CE8(void) {
    493     int _fpu_cmp = 0;
    494     uint32_t _cf = 0;
    495     int _df = 1;
    496     uint32_t _flag_k = FK_NONE;
    497     uint32_t _flag_a = 0, _flag_b = 0;
    498     uint32_t _itail_tgt = 0;
    499     RECOMP_REGS_LOCALS
    500     RECOMP_ENTER(0x470A6CE8u);
    501 
    502     goto L_470A6CE8;
    503 L_470810C0:
    504     eax = ecx; /* 0x470810C0: mov eax, ecx */
    505     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    506     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    507     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    508     PUSH32(esp, eax); /* 0x470810C9: push eax */
    509     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    510     RECOMP_FLAGS_IN();
    511     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    512 L_470A6CE8:
    513     ecx = ebp + (-0x24); /* 0x470A6CE8: lea ecx, [ebp - 0x24] */
    514     RECOMP_BACKEDGE();
    515     goto L_470810C0; /* 0x470A6CEB: jmp 0x470810c0 */
    516     { RECOMP_REGS_OUT(); return; } /* end of function */
    517     RECOMP_REGS_OUT();
    518 }
    519 
    520 void sub_470A6CF0(void) {
    521     int _fpu_cmp = 0;
    522     uint32_t _cf = 0;
    523     int _df = 1;
    524     uint32_t _flag_k = FK_NONE;
    525     uint32_t _flag_a = 0, _flag_b = 0;
    526     uint32_t _itail_tgt = 0;
    527     RECOMP_REGS_LOCALS
    528     RECOMP_ENTER(0x470A6CF0u);
    529 
    530     goto L_470A6CF0;
    531 L_470A33EC:
    532     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    533 L_470A6CF0:
    534     eax = 0x470B45C8u; /* 0x470A6CF0: mov eax, 0x470b45c8 */
    535 L_470A6CF5:
    536     RECOMP_BACKEDGE();
    537     goto L_470A33EC; /* 0x470A6CF5: jmp 0x470a33ec */
    538     { RECOMP_REGS_OUT(); return; } /* end of function */
    539   _ljump:
    540     switch (_itail_tgt) {
    541       case 0x470A33ECu: goto L_470A33EC;
    542       case 0x470A6CF0u: goto L_470A6CF0;
    543       case 0x470A6CF5u: goto L_470A6CF5;
    544       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    545     }
    546     RECOMP_REGS_OUT();
    547 }
    548 
    549 void sub_470A6D00(void) {
    550     int _fpu_cmp = 0;
    551     uint32_t _cf = 0;
    552     int _df = 1;
    553     uint32_t _flag_k = FK_NONE;
    554     uint32_t _flag_a = 0, _flag_b = 0;
    555     uint32_t _itail_tgt = 0;
    556     RECOMP_REGS_LOCALS
    557     RECOMP_ENTER(0x470A6D00u);
    558 
    559     goto L_470A6D00;
    560 L_4704DAE0:
    561     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
    562     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    563     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
    564     _cf = 0;
    565     _flag_k = FK_TEST;
    566     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
    567     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    569     _flag_k = FK_CMP;
    570     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
    571 L_4704DAEA:
    572     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
    573     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
    574     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
    575     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
    576     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
    577     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
    578     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
    579     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
    580     PUSH32(esp, eax); /* 0x4704DB01: push eax */
    581     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
    582     RECOMP_FLAGS_IN();
    583     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
    584     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    585     _cf = 0;
    586     _flag_k = FK_TEST;
    587     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
    588 L_4704DB0C:
    589     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
    590     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
    591     RECOMP_FLAGS_IN();
    592     esi = eax; /* 0x4704DB13: mov esi, eax */
    593     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
    594     RECOMP_FLAGS_IN();
    595     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
    596     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
    597 L_4704DB1E:
    598     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
    599 L_470A6D00:
    600     ecx = ebp + (-0x64); /* 0x470A6D00: lea ecx, [ebp - 0x64] */
    601     RECOMP_BACKEDGE();
    602     goto L_4704DAE0; /* 0x470A6D03: jmp 0x4704dae0 */
    603     { RECOMP_REGS_OUT(); return; } /* end of function */
    604     RECOMP_REGS_OUT();
    605 }
    606 
    607 void sub_470A6D08(void) {
    608     int _fpu_cmp = 0;
    609     uint32_t _cf = 0;
    610     int _df = 1;
    611     uint32_t _flag_k = FK_NONE;
    612     uint32_t _flag_a = 0, _flag_b = 0;
    613     uint32_t _itail_tgt = 0;
    614     RECOMP_REGS_LOCALS
    615     RECOMP_ENTER(0x470A6D08u);
    616 
    617     goto L_470A6D08;
    618 L_470810C0:
    619     eax = ecx; /* 0x470810C0: mov eax, ecx */
    620     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    621     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    622     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    623     PUSH32(esp, eax); /* 0x470810C9: push eax */
    624     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    625     RECOMP_FLAGS_IN();
    626     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    627 L_470A6D08:
    628     ecx = ebp + (-0x34); /* 0x470A6D08: lea ecx, [ebp - 0x34] */
    629     RECOMP_BACKEDGE();
    630     goto L_470810C0; /* 0x470A6D0B: jmp 0x470810c0 */
    631     { RECOMP_REGS_OUT(); return; } /* end of function */
    632     RECOMP_REGS_OUT();
    633 }
    634 
    635 void sub_470A6D10(void) {
    636     int _fpu_cmp = 0;
    637     uint32_t _cf = 0;
    638     int _df = 1;
    639     uint32_t _flag_k = FK_NONE;
    640     uint32_t _flag_a = 0, _flag_b = 0;
    641     uint32_t _itail_tgt = 0;
    642     RECOMP_REGS_LOCALS
    643     RECOMP_ENTER(0x470A6D10u);
    644 
    645     goto L_470A6D10;
    646 L_470810C0:
    647     eax = ecx; /* 0x470810C0: mov eax, ecx */
    648     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    649     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    650     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    651     PUSH32(esp, eax); /* 0x470810C9: push eax */
    652     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    653     RECOMP_FLAGS_IN();
    654     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    655 L_470A6D10:
    656     ecx = ebp + (-0x40); /* 0x470A6D10: lea ecx, [ebp - 0x40] */
    657     RECOMP_BACKEDGE();
    658     goto L_470810C0; /* 0x470A6D13: jmp 0x470810c0 */
    659     { RECOMP_REGS_OUT(); return; } /* end of function */
    660     RECOMP_REGS_OUT();
    661 }
    662 
    663 void sub_470A6D18(void) {
    664     int _fpu_cmp = 0;
    665     uint32_t _cf = 0;
    666     int _df = 1;
    667     uint32_t _flag_k = FK_NONE;
    668     uint32_t _flag_a = 0, _flag_b = 0;
    669     uint32_t _itail_tgt = 0;
    670     RECOMP_REGS_LOCALS
    671     RECOMP_ENTER(0x470A6D18u);
    672 
    673     goto L_470A6D18;
    674 L_470475E0:
    675     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
    676     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
    677     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
    678     PUSH32(esp, eax); /* 0x470475ED: push eax */
    679     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
    680     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
    681     PUSH32(esp, esi); /* 0x470475F6: push esi */
    682     esi = ecx; /* 0x470475F7: mov esi, ecx */
    683     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
    684     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
    685     PUSH32(esp, eax); /* 0x47047600: push eax */
    686     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
    687     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
    688     RECOMP_FLAGS_IN();
    689     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    691     esp = esp + 4; /* 0x4704760F: add esp, 4 */
    692     _flag_k = FK_ADD;
    693     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
    694     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
    695     RECOMP_FLAGS_IN();
    696     ecx = esi; /* 0x4704761A: mov ecx, esi */
    697     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
    698     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
    699     RECOMP_FLAGS_IN();
    700     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
    701     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
    702     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
    703     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    704     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    705     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
    706     _flag_k = FK_ADD;
    707     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
    708 L_470A6D18:
    709     ecx = ebp + (-0x28); /* 0x470A6D18: lea ecx, [ebp - 0x28] */
    710     RECOMP_BACKEDGE();
    711     goto L_470475E0; /* 0x470A6D1B: jmp 0x470475e0 */
    712     { RECOMP_REGS_OUT(); return; } /* end of function */
    713     RECOMP_REGS_OUT();
    714 }
    715 
    716 void sub_470A6D20(void) {
    717     int _fpu_cmp = 0;
    718     uint32_t _cf = 0;
    719     int _df = 1;
    720     uint32_t _flag_k = FK_NONE;
    721     uint32_t _flag_a = 0, _flag_b = 0;
    722     uint32_t _itail_tgt = 0;
    723     RECOMP_REGS_LOCALS
    724     RECOMP_ENTER(0x470A6D20u);
    725 
    726     goto L_470A6D20;
    727 L_470A33EC:
    728     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    729 L_470A6D20:
    730     eax = 0x470B45F8u; /* 0x470A6D20: mov eax, 0x470b45f8 */
    731 L_470A6D25:
    732     RECOMP_BACKEDGE();
    733     goto L_470A33EC; /* 0x470A6D25: jmp 0x470a33ec */
    734     { RECOMP_REGS_OUT(); return; } /* end of function */
    735   _ljump:
    736     switch (_itail_tgt) {
    737       case 0x470A33ECu: goto L_470A33EC;
    738       case 0x470A6D20u: goto L_470A6D20;
    739       case 0x470A6D25u: goto L_470A6D25;
    740       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    741     }
    742     RECOMP_REGS_OUT();
    743 }
    744 
    745 void sub_470A6D30(void) {
    746     int _fpu_cmp = 0;
    747     uint32_t _cf = 0;
    748     int _df = 1;
    749     uint32_t _flag_k = FK_NONE;
    750     uint32_t _flag_a = 0, _flag_b = 0;
    751     uint32_t _itail_tgt = 0;
    752     RECOMP_REGS_LOCALS
    753     RECOMP_ENTER(0x470A6D30u);
    754 
    755     goto L_470A6D30;
    756 L_4704DAE0:
    757     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
    758     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    759     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
    760     _cf = 0;
    761     _flag_k = FK_TEST;
    762     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
    763     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    765     _flag_k = FK_CMP;
    766     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
    767 L_4704DAEA:
    768     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
    769     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
    770     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
    771     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
    772     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
    773     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
    774     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
    775     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
    776     PUSH32(esp, eax); /* 0x4704DB01: push eax */
    777     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
    778     RECOMP_FLAGS_IN();
    779     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
    780     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    781     _cf = 0;
    782     _flag_k = FK_TEST;
    783     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
    784 L_4704DB0C:
    785     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
    786     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
    787     RECOMP_FLAGS_IN();
    788     esi = eax; /* 0x4704DB13: mov esi, eax */
    789     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
    790     RECOMP_FLAGS_IN();
    791     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
    792     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
    793 L_4704DB1E:
    794     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
    795 L_470A6D30:
    796     ecx = ebp + (-0x6C); /* 0x470A6D30: lea ecx, [ebp - 0x6c] */
    797     RECOMP_BACKEDGE();
    798     goto L_4704DAE0; /* 0x470A6D33: jmp 0x4704dae0 */
    799     { RECOMP_REGS_OUT(); return; } /* end of function */
    800     RECOMP_REGS_OUT();
    801 }
    802 
    803 void sub_470A6D38(void) {
    804     int _fpu_cmp = 0;
    805     uint32_t _cf = 0;
    806     int _df = 1;
    807     uint32_t _flag_k = FK_NONE;
    808     uint32_t _flag_a = 0, _flag_b = 0;
    809     uint32_t _itail_tgt = 0;
    810     RECOMP_REGS_LOCALS
    811     RECOMP_ENTER(0x470A6D38u);
    812 
    813     goto L_470A6D38;
    814 L_470810C0:
    815     eax = ecx; /* 0x470810C0: mov eax, ecx */
    816     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    817     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    818     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    819     PUSH32(esp, eax); /* 0x470810C9: push eax */
    820     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    821     RECOMP_FLAGS_IN();
    822     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    823 L_470A6D38:
    824     ecx = ebp + (-0x34); /* 0x470A6D38: lea ecx, [ebp - 0x34] */
    825     RECOMP_BACKEDGE();
    826     goto L_470810C0; /* 0x470A6D3B: jmp 0x470810c0 */
    827     { RECOMP_REGS_OUT(); return; } /* end of function */
    828     RECOMP_REGS_OUT();
    829 }
    830 
    831 void sub_470A6D40(void) {
    832     int _fpu_cmp = 0;
    833     uint32_t _cf = 0;
    834     int _df = 1;
    835     uint32_t _flag_k = FK_NONE;
    836     uint32_t _flag_a = 0, _flag_b = 0;
    837     uint32_t _itail_tgt = 0;
    838     RECOMP_REGS_LOCALS
    839     RECOMP_ENTER(0x470A6D40u);
    840 
    841     goto L_470A6D40;
    842 L_470810C0:
    843     eax = ecx; /* 0x470810C0: mov eax, ecx */
    844     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    845     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    846     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    847     PUSH32(esp, eax); /* 0x470810C9: push eax */
    848     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    849     RECOMP_FLAGS_IN();
    850     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    851 L_470A6D40:
    852     ecx = ebp + (-0x40); /* 0x470A6D40: lea ecx, [ebp - 0x40] */
    853     RECOMP_BACKEDGE();
    854     goto L_470810C0; /* 0x470A6D43: jmp 0x470810c0 */
    855     { RECOMP_REGS_OUT(); return; } /* end of function */
    856     RECOMP_REGS_OUT();
    857 }
    858 
    859 void sub_470A6D48(void) {
    860     int _fpu_cmp = 0;
    861     uint32_t _cf = 0;
    862     int _df = 1;
    863     uint32_t _flag_k = FK_NONE;
    864     uint32_t _flag_a = 0, _flag_b = 0;
    865     uint32_t _itail_tgt = 0;
    866     RECOMP_REGS_LOCALS
    867     RECOMP_ENTER(0x470A6D48u);
    868 
    869     goto L_470A6D48;
    870 L_470475E0:
    871     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
    872     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
    873     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
    874     PUSH32(esp, eax); /* 0x470475ED: push eax */
    875     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
    876     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
    877     PUSH32(esp, esi); /* 0x470475F6: push esi */
    878     esi = ecx; /* 0x470475F7: mov esi, ecx */
    879     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
    880     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
    881     PUSH32(esp, eax); /* 0x47047600: push eax */
    882     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
    883     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
    884     RECOMP_FLAGS_IN();
    885     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    886     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    887     esp = esp + 4; /* 0x4704760F: add esp, 4 */
    888     _flag_k = FK_ADD;
    889     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
    890     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
    891     RECOMP_FLAGS_IN();
    892     ecx = esi; /* 0x4704761A: mov ecx, esi */
    893     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
    894     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
    895     RECOMP_FLAGS_IN();
    896     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
    897     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
    898     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
    899     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    900     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    901     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
    902     _flag_k = FK_ADD;
    903     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
    904 L_470A6D48:
    905     ecx = ebp + (-0x28); /* 0x470A6D48: lea ecx, [ebp - 0x28] */
    906     RECOMP_BACKEDGE();
    907     goto L_470475E0; /* 0x470A6D4B: jmp 0x470475e0 */
    908     { RECOMP_REGS_OUT(); return; } /* end of function */
    909     RECOMP_REGS_OUT();
    910 }
    911 
    912 void sub_470A6D50(void) {
    913     int _fpu_cmp = 0;
    914     uint32_t _cf = 0;
    915     int _df = 1;
    916     uint32_t _flag_k = FK_NONE;
    917     uint32_t _flag_a = 0, _flag_b = 0;
    918     uint32_t _itail_tgt = 0;
    919     RECOMP_REGS_LOCALS
    920     RECOMP_ENTER(0x470A6D50u);
    921 
    922     goto L_470A6D50;
    923 L_470A33EC:
    924     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    925 L_470A6D50:
    926     eax = 0x470B4648u; /* 0x470A6D50: mov eax, 0x470b4648 */
    927 L_470A6D55:
    928     RECOMP_BACKEDGE();
    929     goto L_470A33EC; /* 0x470A6D55: jmp 0x470a33ec */
    930     { RECOMP_REGS_OUT(); return; } /* end of function */
    931   _ljump:
    932     switch (_itail_tgt) {
    933       case 0x470A33ECu: goto L_470A33EC;
    934       case 0x470A6D50u: goto L_470A6D50;
    935       case 0x470A6D55u: goto L_470A6D55;
    936       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    937     }
    938     RECOMP_REGS_OUT();
    939 }
    940 
    941 void sub_470A6D60(void) {
    942     int _fpu_cmp = 0;
    943     uint32_t _cf = 0;
    944     int _df = 1;
    945     uint32_t _flag_k = FK_NONE;
    946     uint32_t _flag_a = 0, _flag_b = 0;
    947     uint32_t _itail_tgt = 0;
    948     RECOMP_REGS_LOCALS
    949     RECOMP_ENTER(0x470A6D60u);
    950 
    951     goto L_470A6D60;
    952 L_4704DAE0:
    953     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
    954     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    955     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
    956     _cf = 0;
    957     _flag_k = FK_TEST;
    958     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
    959     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    961     _flag_k = FK_CMP;
    962     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
    963 L_4704DAEA:
    964     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
    965     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
    966     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
    967     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
    968     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
    969     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
    970     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
    971     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
    972     PUSH32(esp, eax); /* 0x4704DB01: push eax */
    973     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
    974     RECOMP_FLAGS_IN();
    975     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
    976     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    977     _cf = 0;
    978     _flag_k = FK_TEST;
    979     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
    980 L_4704DB0C:
    981     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
    982     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
    983     RECOMP_FLAGS_IN();
    984     esi = eax; /* 0x4704DB13: mov esi, eax */
    985     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
    986     RECOMP_FLAGS_IN();
    987     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
    988     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
    989 L_4704DB1E:
    990     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
    991 L_470A6D60:
    992     ecx = ebp + (-0x5C); /* 0x470A6D60: lea ecx, [ebp - 0x5c] */
    993     RECOMP_BACKEDGE();
    994     goto L_4704DAE0; /* 0x470A6D63: jmp 0x4704dae0 */
    995     { RECOMP_REGS_OUT(); return; } /* end of function */
    996     RECOMP_REGS_OUT();
    997 }
    998 
    999 void sub_470A6D68(void) {
   1000     int _fpu_cmp = 0;
   1001     uint32_t _cf = 0;
   1002     int _df = 1;
   1003     uint32_t _flag_k = FK_NONE;
   1004     uint32_t _flag_a = 0, _flag_b = 0;
   1005     uint32_t _itail_tgt = 0;
   1006     RECOMP_REGS_LOCALS
   1007     RECOMP_ENTER(0x470A6D68u);
   1008 
   1009     goto L_470A6D68;
   1010 L_470810C0:
   1011     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1012     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1013     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1014     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1015     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1016     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1017     RECOMP_FLAGS_IN();
   1018     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1019 L_470A6D68:
   1020     ecx = ebp + (-0x34); /* 0x470A6D68: lea ecx, [ebp - 0x34] */
   1021     RECOMP_BACKEDGE();
   1022     goto L_470810C0; /* 0x470A6D6B: jmp 0x470810c0 */
   1023     { RECOMP_REGS_OUT(); return; } /* end of function */
   1024     RECOMP_REGS_OUT();
   1025 }
   1026 
   1027 void sub_470A6D70(void) {
   1028     int _fpu_cmp = 0;
   1029     uint32_t _cf = 0;
   1030     int _df = 1;
   1031     uint32_t _flag_k = FK_NONE;
   1032     uint32_t _flag_a = 0, _flag_b = 0;
   1033     uint32_t _itail_tgt = 0;
   1034     RECOMP_REGS_LOCALS
   1035     RECOMP_ENTER(0x470A6D70u);
   1036 
   1037     goto L_470A6D70;
   1038 L_470810C0:
   1039     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1040     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1041     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1042     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1043     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1044     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1045     RECOMP_FLAGS_IN();
   1046     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1047 L_470A6D70:
   1048     ecx = ebp + (-0x40); /* 0x470A6D70: lea ecx, [ebp - 0x40] */
   1049     RECOMP_BACKEDGE();
   1050     goto L_470810C0; /* 0x470A6D73: jmp 0x470810c0 */
   1051     { RECOMP_REGS_OUT(); return; } /* end of function */
   1052     RECOMP_REGS_OUT();
   1053 }
   1054 
   1055 void sub_470A6D78(void) {
   1056     int _fpu_cmp = 0;
   1057     uint32_t _cf = 0;
   1058     int _df = 1;
   1059     uint32_t _flag_k = FK_NONE;
   1060     uint32_t _flag_a = 0, _flag_b = 0;
   1061     uint32_t _itail_tgt = 0;
   1062     RECOMP_REGS_LOCALS
   1063     RECOMP_ENTER(0x470A6D78u);
   1064 
   1065     goto L_470A6D78;
   1066 L_470475E0:
   1067     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
   1068     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
   1069     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
   1070     PUSH32(esp, eax); /* 0x470475ED: push eax */
   1071     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
   1072     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
   1073     PUSH32(esp, esi); /* 0x470475F6: push esi */
   1074     esi = ecx; /* 0x470475F7: mov esi, ecx */
   1075     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
   1076     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
   1077     PUSH32(esp, eax); /* 0x47047600: push eax */
   1078     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
   1079     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
   1080     RECOMP_FLAGS_IN();
   1081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1083     esp = esp + 4; /* 0x4704760F: add esp, 4 */
   1084     _flag_k = FK_ADD;
   1085     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
   1086     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
   1087     RECOMP_FLAGS_IN();
   1088     ecx = esi; /* 0x4704761A: mov ecx, esi */
   1089     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
   1090     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
   1091     RECOMP_FLAGS_IN();
   1092     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
   1093     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
   1094     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
   1095     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1096     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1097     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
   1098     _flag_k = FK_ADD;
   1099     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
   1100 L_470A6D78:
   1101     ecx = ebp + (-0x28); /* 0x470A6D78: lea ecx, [ebp - 0x28] */
   1102     RECOMP_BACKEDGE();
   1103     goto L_470475E0; /* 0x470A6D7B: jmp 0x470475e0 */
   1104     { RECOMP_REGS_OUT(); return; } /* end of function */
   1105     RECOMP_REGS_OUT();
   1106 }
   1107 
   1108 void sub_470A6D80(void) {
   1109     int _fpu_cmp = 0;
   1110     uint32_t _cf = 0;
   1111     int _df = 1;
   1112     uint32_t _flag_k = FK_NONE;
   1113     uint32_t _flag_a = 0, _flag_b = 0;
   1114     uint32_t _itail_tgt = 0;
   1115     RECOMP_REGS_LOCALS
   1116     RECOMP_ENTER(0x470A6D80u);
   1117 
   1118     goto L_470A6D80;
   1119 L_470A33EC:
   1120     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1121 L_470A6D80:
   1122     eax = 0x470B4698u; /* 0x470A6D80: mov eax, 0x470b4698 */
   1123 L_470A6D85:
   1124     RECOMP_BACKEDGE();
   1125     goto L_470A33EC; /* 0x470A6D85: jmp 0x470a33ec */
   1126     { RECOMP_REGS_OUT(); return; } /* end of function */
   1127   _ljump:
   1128     switch (_itail_tgt) {
   1129       case 0x470A33ECu: goto L_470A33EC;
   1130       case 0x470A6D80u: goto L_470A6D80;
   1131       case 0x470A6D85u: goto L_470A6D85;
   1132       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1133     }
   1134     RECOMP_REGS_OUT();
   1135 }
   1136 
   1137 void sub_470A6D90(void) {
   1138     int _fpu_cmp = 0;
   1139     uint32_t _cf = 0;
   1140     int _df = 1;
   1141     uint32_t _flag_k = FK_NONE;
   1142     uint32_t _flag_a = 0, _flag_b = 0;
   1143     uint32_t _itail_tgt = 0;
   1144     RECOMP_REGS_LOCALS
   1145     RECOMP_ENTER(0x470A6D90u);
   1146 
   1147     goto L_470A6D90;
   1148 L_470477E0:
   1149     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
   1150     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
   1151 L_470A6D90:
   1152     ecx = MEM32(ebp + (-0x10)); /* 0x470A6D90: mov ecx, dword ptr [ebp - 0x10] */
   1153     RECOMP_BACKEDGE();
   1154     goto L_470477E0; /* 0x470A6D93: jmp 0x470477e0 */
   1155     { RECOMP_REGS_OUT(); return; } /* end of function */
   1156     RECOMP_REGS_OUT();
   1157 }
   1158 
   1159 void sub_470A6D98(void) {
   1160     int _fpu_cmp = 0;
   1161     uint32_t _cf = 0;
   1162     int _df = 1;
   1163     uint32_t _flag_k = FK_NONE;
   1164     uint32_t _flag_a = 0, _flag_b = 0;
   1165     uint32_t _itail_tgt = 0;
   1166     RECOMP_REGS_LOCALS
   1167     RECOMP_ENTER(0x470A6D98u);
   1168 
   1169     goto L_470A6D98;
   1170 L_470A33EC:
   1171     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1172 L_470A6D98:
   1173     eax = 0x470B46E8u; /* 0x470A6D98: mov eax, 0x470b46e8 */
   1174 L_470A6D9D:
   1175     RECOMP_BACKEDGE();
   1176     goto L_470A33EC; /* 0x470A6D9D: jmp 0x470a33ec */
   1177     { RECOMP_REGS_OUT(); return; } /* end of function */
   1178   _ljump:
   1179     switch (_itail_tgt) {
   1180       case 0x470A33ECu: goto L_470A33EC;
   1181       case 0x470A6D98u: goto L_470A6D98;
   1182       case 0x470A6D9Du: goto L_470A6D9D;
   1183       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1184     }
   1185     RECOMP_REGS_OUT();
   1186 }
   1187 
   1188 void sub_470A6DB0(void) {
   1189     int _fpu_cmp = 0;
   1190     uint32_t _cf = 0;
   1191     int _df = 1;
   1192     uint32_t _flag_k = FK_NONE;
   1193     uint32_t _flag_a = 0, _flag_b = 0;
   1194     uint32_t _itail_tgt = 0;
   1195     RECOMP_REGS_LOCALS
   1196     RECOMP_ENTER(0x470A6DB0u);
   1197 
   1198     goto L_470A6DB0;
   1199 L_470477E0:
   1200     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
   1201     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
   1202 L_470A6DB0:
   1203     ecx = MEM32(ebp + (-0x10)); /* 0x470A6DB0: mov ecx, dword ptr [ebp - 0x10] */
   1204     RECOMP_BACKEDGE();
   1205     goto L_470477E0; /* 0x470A6DB3: jmp 0x470477e0 */
   1206     { RECOMP_REGS_OUT(); return; } /* end of function */
   1207     RECOMP_REGS_OUT();
   1208 }
   1209 
   1210 void sub_470A6DB8(void) {
   1211     int _fpu_cmp = 0;
   1212     uint32_t _cf = 0;
   1213     int _df = 1;
   1214     uint32_t _flag_k = FK_NONE;
   1215     uint32_t _flag_a = 0, _flag_b = 0;
   1216     uint32_t _itail_tgt = 0;
   1217     RECOMP_REGS_LOCALS
   1218     RECOMP_ENTER(0x470A6DB8u);
   1219 
   1220     goto L_470A6DB8;
   1221 L_470A33EC:
   1222     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1223 L_470A6DB8:
   1224     eax = 0x470B4710u; /* 0x470A6DB8: mov eax, 0x470b4710 */
   1225 L_470A6DBD:
   1226     RECOMP_BACKEDGE();
   1227     goto L_470A33EC; /* 0x470A6DBD: jmp 0x470a33ec */
   1228     { RECOMP_REGS_OUT(); return; } /* end of function */
   1229   _ljump:
   1230     switch (_itail_tgt) {
   1231       case 0x470A33ECu: goto L_470A33EC;
   1232       case 0x470A6DB8u: goto L_470A6DB8;
   1233       case 0x470A6DBDu: goto L_470A6DBD;
   1234       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1235     }
   1236     RECOMP_REGS_OUT();
   1237 }
   1238 
   1239 void sub_470A6DD0(void) {
   1240     int _fpu_cmp = 0;
   1241     uint32_t _cf = 0;
   1242     int _df = 1;
   1243     uint32_t _flag_k = FK_NONE;
   1244     uint32_t _flag_a = 0, _flag_b = 0;
   1245     uint32_t _itail_tgt = 0;
   1246     RECOMP_REGS_LOCALS
   1247     RECOMP_ENTER(0x470A6DD0u);
   1248 
   1249 L_470A6DD0:
   1250     eax = MEM32(ebp + 0x4); /* 0x470A6DD0: mov eax, dword ptr [ebp + 4] */
   1251     PUSH32(esp, eax); /* 0x470A6DD3: push eax */
   1252     ecx = MEM32(ebp + (-0x10)); /* 0x470A6DD4: mov ecx, dword ptr [ebp - 0x10] */
   1253     PUSH32(esp, ecx); /* 0x470A6DD7: push ecx */
   1254     RECOMP_ICALL(0x470041D0u); /* 0x470A6DD8: call 0x470041d0 */ /* not lifted */
   1255     RECOMP_FLAGS_IN();
   1256     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1257     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1258     esp = esp + 8; /* 0x470A6DDD: add esp, 8 */
   1259     _flag_k = FK_ADD;
   1260     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6DE0: ret  */
   1261     RECOMP_REGS_OUT();
   1262 }
   1263 
   1264 void sub_470A6DE1(void) {
   1265     int _fpu_cmp = 0;
   1266     uint32_t _cf = 0;
   1267     int _df = 1;
   1268     uint32_t _flag_k = FK_NONE;
   1269     uint32_t _flag_a = 0, _flag_b = 0;
   1270     uint32_t _itail_tgt = 0;
   1271     RECOMP_REGS_LOCALS
   1272     RECOMP_ENTER(0x470A6DE1u);
   1273 
   1274     goto L_470A6DE1;
   1275 L_470A33EC:
   1276     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1277 L_470A6DE1:
   1278     eax = 0x470B4738u; /* 0x470A6DE1: mov eax, 0x470b4738 */
   1279 L_470A6DE6:
   1280     RECOMP_BACKEDGE();
   1281     goto L_470A33EC; /* 0x470A6DE6: jmp 0x470a33ec */
   1282     { RECOMP_REGS_OUT(); return; } /* end of function */
   1283   _ljump:
   1284     switch (_itail_tgt) {
   1285       case 0x470A33ECu: goto L_470A33EC;
   1286       case 0x470A6DE1u: goto L_470A6DE1;
   1287       case 0x470A6DE6u: goto L_470A6DE6;
   1288       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1289     }
   1290     RECOMP_REGS_OUT();
   1291 }
   1292 
   1293 void sub_470A6DF0(void) {
   1294     int _fpu_cmp = 0;
   1295     uint32_t _cf = 0;
   1296     int _df = 1;
   1297     uint32_t _flag_k = FK_NONE;
   1298     uint32_t _flag_a = 0, _flag_b = 0;
   1299     uint32_t _itail_tgt = 0;
   1300     RECOMP_REGS_LOCALS
   1301     RECOMP_ENTER(0x470A6DF0u);
   1302 
   1303 L_470A6DF0:
   1304     eax = MEM32(ebp + 0x4); /* 0x470A6DF0: mov eax, dword ptr [ebp + 4] */
   1305     PUSH32(esp, eax); /* 0x470A6DF3: push eax */
   1306     ecx = MEM32(ebp + (-0x10)); /* 0x470A6DF4: mov ecx, dword ptr [ebp - 0x10] */
   1307     PUSH32(esp, ecx); /* 0x470A6DF7: push ecx */
   1308     RECOMP_ICALL(0x470041D0u); /* 0x470A6DF8: call 0x470041d0 */ /* not lifted */
   1309     RECOMP_FLAGS_IN();
   1310     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1311     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1312     esp = esp + 8; /* 0x470A6DFD: add esp, 8 */
   1313     _flag_k = FK_ADD;
   1314     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6E00: ret  */
   1315     RECOMP_REGS_OUT();
   1316 }
   1317 
   1318 void sub_470A6E01(void) {
   1319     int _fpu_cmp = 0;
   1320     uint32_t _cf = 0;
   1321     int _df = 1;
   1322     uint32_t _flag_k = FK_NONE;
   1323     uint32_t _flag_a = 0, _flag_b = 0;
   1324     uint32_t _itail_tgt = 0;
   1325     RECOMP_REGS_LOCALS
   1326     RECOMP_ENTER(0x470A6E01u);
   1327 
   1328     goto L_470A6E01;
   1329 L_470A33EC:
   1330     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1331 L_470A6E01:
   1332     eax = 0x470B4760u; /* 0x470A6E01: mov eax, 0x470b4760 */
   1333 L_470A6E06:
   1334     RECOMP_BACKEDGE();
   1335     goto L_470A33EC; /* 0x470A6E06: jmp 0x470a33ec */
   1336     { RECOMP_REGS_OUT(); return; } /* end of function */
   1337   _ljump:
   1338     switch (_itail_tgt) {
   1339       case 0x470A33ECu: goto L_470A33EC;
   1340       case 0x470A6E01u: goto L_470A6E01;
   1341       case 0x470A6E06u: goto L_470A6E06;
   1342       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1343     }
   1344     RECOMP_REGS_OUT();
   1345 }
   1346 
   1347 void sub_470A6E10(void) {
   1348     int _fpu_cmp = 0;
   1349     uint32_t _cf = 0;
   1350     int _df = 1;
   1351     uint32_t _flag_k = FK_NONE;
   1352     uint32_t _flag_a = 0, _flag_b = 0;
   1353     uint32_t _itail_tgt = 0;
   1354     RECOMP_REGS_LOCALS
   1355     RECOMP_ENTER(0x470A6E10u);
   1356 
   1357 L_470A6E10:
   1358     eax = MEM32(ebp + (-0x448)); /* 0x470A6E10: mov eax, dword ptr [ebp - 0x448] */
   1359     PUSH32(esp, eax); /* 0x470A6E16: push eax */
   1360     RECOMP_ICALL(0x470A32A2u); /* 0x470A6E17: call 0x470a32a2 */ /* not lifted */
   1361     RECOMP_FLAGS_IN();
   1362     ecx = POP32_VAL(esp); /* 0x470A6E1C: pop ecx */
   1363     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6E1D: ret  */
   1364     RECOMP_REGS_OUT();
   1365 }
   1366 
   1367 void sub_470A6E1E(void) {
   1368     int _fpu_cmp = 0;
   1369     uint32_t _cf = 0;
   1370     int _df = 1;
   1371     uint32_t _flag_k = FK_NONE;
   1372     uint32_t _flag_a = 0, _flag_b = 0;
   1373     uint32_t _itail_tgt = 0;
   1374     RECOMP_REGS_LOCALS
   1375     RECOMP_ENTER(0x470A6E1Eu);
   1376 
   1377     goto L_470A6E1E;
   1378 L_4703DCA0:
   1379     MEM32(ecx) = 0x470AC538u; /* 0x4703DCA0: mov dword ptr [ecx], 0x470ac538 */
   1380     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DCA6: ret  */
   1381 L_470A6E1E:
   1382     ecx = MEM32(ebp + (-0x448)); /* 0x470A6E1E: mov ecx, dword ptr [ebp - 0x448] */
   1383     RECOMP_BACKEDGE();
   1384     goto L_4703DCA0; /* 0x470A6E24: jmp 0x4703dca0 */
   1385     { RECOMP_REGS_OUT(); return; } /* end of function */
   1386     RECOMP_REGS_OUT();
   1387 }
   1388 
   1389 void sub_470A6E29(void) {
   1390     int _fpu_cmp = 0;
   1391     uint32_t _cf = 0;
   1392     int _df = 1;
   1393     uint32_t _flag_k = FK_NONE;
   1394     uint32_t _flag_a = 0, _flag_b = 0;
   1395     uint32_t _itail_tgt = 0;
   1396     RECOMP_REGS_LOCALS
   1397     RECOMP_ENTER(0x470A6E29u);
   1398 
   1399 L_470A6E29:
   1400     eax = MEM32(ebp + (-0x448)); /* 0x470A6E29: mov eax, dword ptr [ebp - 0x448] */
   1401     PUSH32(esp, eax); /* 0x470A6E2F: push eax */
   1402     RECOMP_ICALL(0x470A32A2u); /* 0x470A6E30: call 0x470a32a2 */ /* not lifted */
   1403     RECOMP_FLAGS_IN();
   1404     ecx = POP32_VAL(esp); /* 0x470A6E35: pop ecx */
   1405     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6E36: ret  */
   1406     RECOMP_REGS_OUT();
   1407 }
   1408 
   1409 void sub_470A6E37(void) {
   1410     int _fpu_cmp = 0;
   1411     uint32_t _cf = 0;
   1412     int _df = 1;
   1413     uint32_t _flag_k = FK_NONE;
   1414     uint32_t _flag_a = 0, _flag_b = 0;
   1415     uint32_t _itail_tgt = 0;
   1416     RECOMP_REGS_LOCALS
   1417     RECOMP_ENTER(0x470A6E37u);
   1418 
   1419     goto L_470A6E37;
   1420 L_4704DAE0:
   1421     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   1422     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1423     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   1424     _cf = 0;
   1425     _flag_k = FK_TEST;
   1426     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   1427     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1429     _flag_k = FK_CMP;
   1430     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   1431 L_4704DAEA:
   1432     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   1433     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   1434     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   1435     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   1436     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   1437     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   1438     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   1439     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   1440     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   1441     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   1442     RECOMP_FLAGS_IN();
   1443     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   1444     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1445     _cf = 0;
   1446     _flag_k = FK_TEST;
   1447     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   1448 L_4704DB0C:
   1449     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   1450     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   1451     RECOMP_FLAGS_IN();
   1452     esi = eax; /* 0x4704DB13: mov esi, eax */
   1453     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   1454     RECOMP_FLAGS_IN();
   1455     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   1456     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   1457 L_4704DB1E:
   1458     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   1459 L_470A6E37:
   1460     ecx = ebp + (-0x440); /* 0x470A6E37: lea ecx, [ebp - 0x440] */
   1461     RECOMP_BACKEDGE();
   1462     goto L_4704DAE0; /* 0x470A6E3D: jmp 0x4704dae0 */
   1463     { RECOMP_REGS_OUT(); return; } /* end of function */
   1464     RECOMP_REGS_OUT();
   1465 }
   1466 
   1467 void sub_470A6E42(void) {
   1468     int _fpu_cmp = 0;
   1469     uint32_t _cf = 0;
   1470     int _df = 1;
   1471     uint32_t _flag_k = FK_NONE;
   1472     uint32_t _flag_a = 0, _flag_b = 0;
   1473     uint32_t _itail_tgt = 0;
   1474     RECOMP_REGS_LOCALS
   1475     RECOMP_ENTER(0x470A6E42u);
   1476 
   1477 L_470A6E42:
   1478     eax = MEM32(ebp + (-0x454)); /* 0x470A6E42: mov eax, dword ptr [ebp - 0x454] */
   1479     PUSH32(esp, eax); /* 0x470A6E48: push eax */
   1480     ecx = MEM32(ebp + (-0x444)); /* 0x470A6E49: mov ecx, dword ptr [ebp - 0x444] */
   1481     PUSH32(esp, ecx); /* 0x470A6E4F: push ecx */
   1482     RECOMP_ICALL(0x470041D0u); /* 0x470A6E50: call 0x470041d0 */ /* not lifted */
   1483     RECOMP_FLAGS_IN();
   1484     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1485     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1486     esp = esp + 8; /* 0x470A6E55: add esp, 8 */
   1487     _flag_k = FK_ADD;
   1488     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6E58: ret  */
   1489     RECOMP_REGS_OUT();
   1490 }
   1491 
   1492 void sub_470A6E59(void) {
   1493     int _fpu_cmp = 0;
   1494     uint32_t _cf = 0;
   1495     int _df = 1;
   1496     uint32_t _flag_k = FK_NONE;
   1497     uint32_t _flag_a = 0, _flag_b = 0;
   1498     uint32_t _itail_tgt = 0;
   1499     RECOMP_REGS_LOCALS
   1500     RECOMP_ENTER(0x470A6E59u);
   1501 
   1502     goto L_470A6E59;
   1503 L_470041D0:
   1504     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret  */
   1505 L_470A6E59:
   1506     ecx = MEM32(ebp + (-0x444)); /* 0x470A6E59: mov ecx, dword ptr [ebp - 0x444] */
   1507     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1508     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1509     ecx = ecx + 4; /* 0x470A6E5F: add ecx, 4 */
   1510     _flag_k = FK_ADD;
   1511     RECOMP_BACKEDGE();
   1512     goto L_470041D0; /* 0x470A6E62: jmp 0x470041d0 */
   1513     { RECOMP_REGS_OUT(); return; } /* end of function */
   1514     RECOMP_REGS_OUT();
   1515 }
   1516 
   1517 void sub_470A6E67(void) {
   1518     int _fpu_cmp = 0;
   1519     uint32_t _cf = 0;
   1520     int _df = 1;
   1521     uint32_t _flag_k = FK_NONE;
   1522     uint32_t _flag_a = 0, _flag_b = 0;
   1523     uint32_t _itail_tgt = 0;
   1524     RECOMP_REGS_LOCALS
   1525     RECOMP_ENTER(0x470A6E67u);
   1526 
   1527     goto L_470A6E67;
   1528 L_470A33EC:
   1529     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1530 L_470A6E67:
   1531     eax = 0x470B4788u; /* 0x470A6E67: mov eax, 0x470b4788 */
   1532 L_470A6E6C:
   1533     RECOMP_BACKEDGE();
   1534     goto L_470A33EC; /* 0x470A6E6C: jmp 0x470a33ec */
   1535     { RECOMP_REGS_OUT(); return; } /* end of function */
   1536   _ljump:
   1537     switch (_itail_tgt) {
   1538       case 0x470A33ECu: goto L_470A33EC;
   1539       case 0x470A6E67u: goto L_470A6E67;
   1540       case 0x470A6E6Cu: goto L_470A6E6C;
   1541       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1542     }
   1543     RECOMP_REGS_OUT();
   1544 }
   1545 
   1546 void sub_470A6E80(void) {
   1547     int _fpu_cmp = 0;
   1548     uint32_t _cf = 0;
   1549     int _df = 1;
   1550     uint32_t _flag_k = FK_NONE;
   1551     uint32_t _flag_a = 0, _flag_b = 0;
   1552     uint32_t _itail_tgt = 0;
   1553     RECOMP_REGS_LOCALS
   1554     RECOMP_ENTER(0x470A6E80u);
   1555 
   1556     goto L_470A6E80;
   1557 L_4703DCA0:
   1558     MEM32(ecx) = 0x470AC538u; /* 0x4703DCA0: mov dword ptr [ecx], 0x470ac538 */
   1559     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DCA6: ret  */
   1560 L_470A6E80:
   1561     ecx = MEM32(ebp + (-0x14)); /* 0x470A6E80: mov ecx, dword ptr [ebp - 0x14] */
   1562     RECOMP_BACKEDGE();
   1563     goto L_4703DCA0; /* 0x470A6E83: jmp 0x4703dca0 */
   1564     { RECOMP_REGS_OUT(); return; } /* end of function */
   1565     RECOMP_REGS_OUT();
   1566 }
   1567 
   1568 void sub_470A6E88(void) {
   1569     int _fpu_cmp = 0;
   1570     uint32_t _cf = 0;
   1571     int _df = 1;
   1572     uint32_t _flag_k = FK_NONE;
   1573     uint32_t _flag_a = 0, _flag_b = 0;
   1574     uint32_t _itail_tgt = 0;
   1575     RECOMP_REGS_LOCALS
   1576     RECOMP_ENTER(0x470A6E88u);
   1577 
   1578     goto L_470A6E88;
   1579 L_4700A8A0:
   1580     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700A8A0: push -1 */
   1581     PUSH32(esp, 0x470A3938u); /* 0x4700A8A2: push 0x470a3938 */
   1582     eax = MEM32(FS_BASE + (0)); /* 0x4700A8A7: mov eax, dword ptr fs:[0] */
   1583     PUSH32(esp, eax); /* 0x4700A8AD: push eax */
   1584     MEM32(FS_BASE + (0)) = esp; /* 0x4700A8AE: mov dword ptr fs:[0], esp */
   1585     PUSH32(esp, ecx); /* 0x4700A8B5: push ecx */
   1586     PUSH32(esp, esi); /* 0x4700A8B6: push esi */
   1587     esi = ecx; /* 0x4700A8B7: mov esi, ecx */
   1588     MEM32(esp + 0x4) = esi; /* 0x4700A8B9: mov dword ptr [esp + 4], esi */
   1589     MEM32(esi) = 0x470AC710u; /* 0x4700A8BD: mov dword ptr [esi], 0x470ac710 */
   1590     ecx = esi + 0x10; /* 0x4700A8C3: lea ecx, [esi + 0x10] */
   1591     MEM32(esp + 0x10) = 0; /* 0x4700A8C6: mov dword ptr [esp + 0x10], 0 */
   1592     RECOMP_ICALL(0x47041710u); /* 0x4700A8CE: call 0x47041710 */ /* not lifted */
   1593     RECOMP_FLAGS_IN();
   1594     ecx = esi; /* 0x4700A8D3: mov ecx, esi */
   1595     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4700A8D5: mov dword ptr [esp + 0x10], 0xffffffff */
   1596     RECOMP_ICALL(0x4702A7B0u); /* 0x4700A8DD: call 0x4702a7b0 */ /* not lifted */
   1597     RECOMP_FLAGS_IN();
   1598     ecx = MEM32(esp + 0x8); /* 0x4700A8E2: mov ecx, dword ptr [esp + 8] */
   1599     esi = POP32_VAL(esp); /* 0x4700A8E6: pop esi */
   1600     MEM32(FS_BASE + (0)) = ecx; /* 0x4700A8E7: mov dword ptr fs:[0], ecx */
   1601     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1603     esp = esp + 0x10u; /* 0x4700A8EE: add esp, 0x10 */
   1604     _flag_k = FK_ADD;
   1605     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700A8F1: ret  */
   1606 L_470A6E88:
   1607     ecx = MEM32(ebp + (-0x10)); /* 0x470A6E88: mov ecx, dword ptr [ebp - 0x10] */
   1608     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1609     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1610     ecx = ecx + 4; /* 0x470A6E8B: add ecx, 4 */
   1611     _flag_k = FK_ADD;
   1612     RECOMP_BACKEDGE();
   1613     goto L_4700A8A0; /* 0x470A6E8E: jmp 0x4700a8a0 */
   1614     { RECOMP_REGS_OUT(); return; } /* end of function */
   1615     RECOMP_REGS_OUT();
   1616 }
   1617 
   1618 void sub_470A6E93(void) {
   1619     int _fpu_cmp = 0;
   1620     uint32_t _cf = 0;
   1621     int _df = 1;
   1622     uint32_t _flag_k = FK_NONE;
   1623     uint32_t _flag_a = 0, _flag_b = 0;
   1624     uint32_t _itail_tgt = 0;
   1625     RECOMP_REGS_LOCALS
   1626     RECOMP_ENTER(0x470A6E93u);
   1627 
   1628     goto L_470A6E93;
   1629 L_4702A7B0:
   1630     MEM32(ecx) = 0x470AC5C0u; /* 0x4702A7B0: mov dword ptr [ecx], 0x470ac5c0 */
   1631     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702A7B6: ret  */
   1632 L_470A6E93:
   1633     ecx = MEM32(ebp + (-0x10)); /* 0x470A6E93: mov ecx, dword ptr [ebp - 0x10] */
   1634     RECOMP_BACKEDGE();
   1635     goto L_4702A7B0; /* 0x470A6E96: jmp 0x4702a7b0 */
   1636     { RECOMP_REGS_OUT(); return; } /* end of function */
   1637     RECOMP_REGS_OUT();
   1638 }
   1639 
   1640 void sub_470A6E9B(void) {
   1641     int _fpu_cmp = 0;
   1642     uint32_t _cf = 0;
   1643     int _df = 1;
   1644     uint32_t _flag_k = FK_NONE;
   1645     uint32_t _flag_a = 0, _flag_b = 0;
   1646     uint32_t _itail_tgt = 0;
   1647     RECOMP_REGS_LOCALS
   1648     RECOMP_ENTER(0x470A6E9Bu);
   1649 
   1650     goto L_470A6E9B;
   1651 L_470A33EC:
   1652     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1653 L_470A6E9B:
   1654     eax = 0x470B47D8u; /* 0x470A6E9B: mov eax, 0x470b47d8 */
   1655 L_470A6EA0:
   1656     RECOMP_BACKEDGE();
   1657     goto L_470A33EC; /* 0x470A6EA0: jmp 0x470a33ec */
   1658     { RECOMP_REGS_OUT(); return; } /* end of function */
   1659   _ljump:
   1660     switch (_itail_tgt) {
   1661       case 0x470A33ECu: goto L_470A33EC;
   1662       case 0x470A6E9Bu: goto L_470A6E9B;
   1663       case 0x470A6EA0u: goto L_470A6EA0;
   1664       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1665     }
   1666     RECOMP_REGS_OUT();
   1667 }
   1668 
   1669 void sub_470A6EB0(void) {
   1670     int _fpu_cmp = 0;
   1671     uint32_t _cf = 0;
   1672     int _df = 1;
   1673     uint32_t _flag_k = FK_NONE;
   1674     uint32_t _flag_a = 0, _flag_b = 0;
   1675     uint32_t _itail_tgt = 0;
   1676     RECOMP_REGS_LOCALS
   1677     RECOMP_ENTER(0x470A6EB0u);
   1678 
   1679     goto L_470A6EB0;
   1680 L_4704DAE0:
   1681     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   1682     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1683     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   1684     _cf = 0;
   1685     _flag_k = FK_TEST;
   1686     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   1687     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1689     _flag_k = FK_CMP;
   1690     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   1691 L_4704DAEA:
   1692     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   1693     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   1694     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   1695     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   1696     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   1697     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   1698     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   1699     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   1700     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   1701     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   1702     RECOMP_FLAGS_IN();
   1703     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   1704     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1705     _cf = 0;
   1706     _flag_k = FK_TEST;
   1707     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   1708 L_4704DB0C:
   1709     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   1710     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   1711     RECOMP_FLAGS_IN();
   1712     esi = eax; /* 0x4704DB13: mov esi, eax */
   1713     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   1714     RECOMP_FLAGS_IN();
   1715     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   1716     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   1717 L_4704DB1E:
   1718     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   1719 L_470A6EB0:
   1720     ecx = ebp + (-0x14); /* 0x470A6EB0: lea ecx, [ebp - 0x14] */
   1721     RECOMP_BACKEDGE();
   1722     goto L_4704DAE0; /* 0x470A6EB3: jmp 0x4704dae0 */
   1723     { RECOMP_REGS_OUT(); return; } /* end of function */
   1724     RECOMP_REGS_OUT();
   1725 }
   1726 
   1727 void sub_470A6EB8(void) {
   1728     int _fpu_cmp = 0;
   1729     uint32_t _cf = 0;
   1730     int _df = 1;
   1731     uint32_t _flag_k = FK_NONE;
   1732     uint32_t _flag_a = 0, _flag_b = 0;
   1733     uint32_t _itail_tgt = 0;
   1734     RECOMP_REGS_LOCALS
   1735     RECOMP_ENTER(0x470A6EB8u);
   1736 
   1737     goto L_470A6EB8;
   1738 L_470A33EC:
   1739     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1740 L_470A6EB8:
   1741     eax = 0x470B4810u; /* 0x470A6EB8: mov eax, 0x470b4810 */
   1742 L_470A6EBD:
   1743     RECOMP_BACKEDGE();
   1744     goto L_470A33EC; /* 0x470A6EBD: jmp 0x470a33ec */
   1745     { RECOMP_REGS_OUT(); return; } /* end of function */
   1746   _ljump:
   1747     switch (_itail_tgt) {
   1748       case 0x470A33ECu: goto L_470A33EC;
   1749       case 0x470A6EB8u: goto L_470A6EB8;
   1750       case 0x470A6EBDu: goto L_470A6EBD;
   1751       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1752     }
   1753     RECOMP_REGS_OUT();
   1754 }
   1755 
   1756 void sub_470A6ED0(void) {
   1757     int _fpu_cmp = 0;
   1758     uint32_t _cf = 0;
   1759     int _df = 1;
   1760     uint32_t _flag_k = FK_NONE;
   1761     uint32_t _flag_a = 0, _flag_b = 0;
   1762     uint32_t _itail_tgt = 0;
   1763     RECOMP_REGS_LOCALS
   1764     RECOMP_ENTER(0x470A6ED0u);
   1765 
   1766     goto L_470A6ED0;
   1767 L_4704DAE0:
   1768     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   1769     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1770     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   1771     _cf = 0;
   1772     _flag_k = FK_TEST;
   1773     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   1774     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1775     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1776     _flag_k = FK_CMP;
   1777     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   1778 L_4704DAEA:
   1779     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   1780     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   1781     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   1782     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   1783     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   1784     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   1785     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   1786     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   1787     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   1788     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   1789     RECOMP_FLAGS_IN();
   1790     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   1791     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1792     _cf = 0;
   1793     _flag_k = FK_TEST;
   1794     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   1795 L_4704DB0C:
   1796     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   1797     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   1798     RECOMP_FLAGS_IN();
   1799     esi = eax; /* 0x4704DB13: mov esi, eax */
   1800     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   1801     RECOMP_FLAGS_IN();
   1802     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   1803     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   1804 L_4704DB1E:
   1805     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   1806 L_470A6ED0:
   1807     ecx = ebp + (-0x14); /* 0x470A6ED0: lea ecx, [ebp - 0x14] */
   1808     RECOMP_BACKEDGE();
   1809     goto L_4704DAE0; /* 0x470A6ED3: jmp 0x4704dae0 */
   1810     { RECOMP_REGS_OUT(); return; } /* end of function */
   1811     RECOMP_REGS_OUT();
   1812 }
   1813 
   1814 void sub_470A6ED8(void) {
   1815     int _fpu_cmp = 0;
   1816     uint32_t _cf = 0;
   1817     int _df = 1;
   1818     uint32_t _flag_k = FK_NONE;
   1819     uint32_t _flag_a = 0, _flag_b = 0;
   1820     uint32_t _itail_tgt = 0;
   1821     RECOMP_REGS_LOCALS
   1822     RECOMP_ENTER(0x470A6ED8u);
   1823 
   1824     goto L_470A6ED8;
   1825 L_470A33EC:
   1826     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1827 L_470A6ED8:
   1828     eax = 0x470B4838u; /* 0x470A6ED8: mov eax, 0x470b4838 */
   1829 L_470A6EDD:
   1830     RECOMP_BACKEDGE();
   1831     goto L_470A33EC; /* 0x470A6EDD: jmp 0x470a33ec */
   1832     { RECOMP_REGS_OUT(); return; } /* end of function */
   1833   _ljump:
   1834     switch (_itail_tgt) {
   1835       case 0x470A33ECu: goto L_470A33EC;
   1836       case 0x470A6ED8u: goto L_470A6ED8;
   1837       case 0x470A6EDDu: goto L_470A6EDD;
   1838       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1839     }
   1840     RECOMP_REGS_OUT();
   1841 }
   1842 
   1843 void sub_470A6EF0(void) {
   1844     int _fpu_cmp = 0;
   1845     uint32_t _cf = 0;
   1846     int _df = 1;
   1847     uint32_t _flag_k = FK_NONE;
   1848     uint32_t _flag_a = 0, _flag_b = 0;
   1849     uint32_t _itail_tgt = 0;
   1850     RECOMP_REGS_LOCALS
   1851     RECOMP_ENTER(0x470A6EF0u);
   1852 
   1853     goto L_470A6EF0;
   1854 L_4704DAE0:
   1855     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   1856     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1857     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   1858     _cf = 0;
   1859     _flag_k = FK_TEST;
   1860     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   1861     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1863     _flag_k = FK_CMP;
   1864     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   1865 L_4704DAEA:
   1866     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   1867     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   1868     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   1869     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   1870     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   1871     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   1872     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   1873     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   1874     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   1875     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   1876     RECOMP_FLAGS_IN();
   1877     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   1878     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1879     _cf = 0;
   1880     _flag_k = FK_TEST;
   1881     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   1882 L_4704DB0C:
   1883     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   1884     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   1885     RECOMP_FLAGS_IN();
   1886     esi = eax; /* 0x4704DB13: mov esi, eax */
   1887     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   1888     RECOMP_FLAGS_IN();
   1889     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   1890     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   1891 L_4704DB1E:
   1892     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   1893 L_470A6EF0:
   1894     ecx = ebp + (-0x14); /* 0x470A6EF0: lea ecx, [ebp - 0x14] */
   1895     RECOMP_BACKEDGE();
   1896     goto L_4704DAE0; /* 0x470A6EF3: jmp 0x4704dae0 */
   1897     { RECOMP_REGS_OUT(); return; } /* end of function */
   1898     RECOMP_REGS_OUT();
   1899 }
   1900 
   1901 void sub_470A6EF8(void) {
   1902     int _fpu_cmp = 0;
   1903     uint32_t _cf = 0;
   1904     int _df = 1;
   1905     uint32_t _flag_k = FK_NONE;
   1906     uint32_t _flag_a = 0, _flag_b = 0;
   1907     uint32_t _itail_tgt = 0;
   1908     RECOMP_REGS_LOCALS
   1909     RECOMP_ENTER(0x470A6EF8u);
   1910 
   1911 L_470A6EF8:
   1912     eax = MEM32(ebp + 0xC); /* 0x470A6EF8: mov eax, dword ptr [ebp + 0xc] */
   1913     PUSH32(esp, eax); /* 0x470A6EFB: push eax */
   1914     ecx = MEM32(ebp + 0x4); /* 0x470A6EFC: mov ecx, dword ptr [ebp + 4] */
   1915     PUSH32(esp, ecx); /* 0x470A6EFF: push ecx */
   1916     RECOMP_ICALL(0x470041D0u); /* 0x470A6F00: call 0x470041d0 */ /* not lifted */
   1917     RECOMP_FLAGS_IN();
   1918     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1919     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1920     esp = esp + 8; /* 0x470A6F05: add esp, 8 */
   1921     _flag_k = FK_ADD;
   1922     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6F08: ret  */
   1923     RECOMP_REGS_OUT();
   1924 }
   1925 
   1926 void sub_470A6F09(void) {
   1927     int _fpu_cmp = 0;
   1928     uint32_t _cf = 0;
   1929     int _df = 1;
   1930     uint32_t _flag_k = FK_NONE;
   1931     uint32_t _flag_a = 0, _flag_b = 0;
   1932     uint32_t _itail_tgt = 0;
   1933     RECOMP_REGS_LOCALS
   1934     RECOMP_ENTER(0x470A6F09u);
   1935 
   1936     goto L_470A6F09;
   1937 L_470A33EC:
   1938     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1939 L_470A6F09:
   1940     eax = 0x470B4860u; /* 0x470A6F09: mov eax, 0x470b4860 */
   1941 L_470A6F0E:
   1942     RECOMP_BACKEDGE();
   1943     goto L_470A33EC; /* 0x470A6F0E: jmp 0x470a33ec */
   1944     { RECOMP_REGS_OUT(); return; } /* end of function */
   1945   _ljump:
   1946     switch (_itail_tgt) {
   1947       case 0x470A33ECu: goto L_470A33EC;
   1948       case 0x470A6F09u: goto L_470A6F09;
   1949       case 0x470A6F0Eu: goto L_470A6F0E;
   1950       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1951     }
   1952     RECOMP_REGS_OUT();
   1953 }
   1954 
   1955 void sub_470A6F20(void) {
   1956     int _fpu_cmp = 0;
   1957     uint32_t _cf = 0;
   1958     int _df = 1;
   1959     uint32_t _flag_k = FK_NONE;
   1960     uint32_t _flag_a = 0, _flag_b = 0;
   1961     uint32_t _itail_tgt = 0;
   1962     RECOMP_REGS_LOCALS
   1963     RECOMP_ENTER(0x470A6F20u);
   1964 
   1965     goto L_470A6F20;
   1966 L_4704DAE0:
   1967     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   1968     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1969     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   1970     _cf = 0;
   1971     _flag_k = FK_TEST;
   1972     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   1973     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1975     _flag_k = FK_CMP;
   1976     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   1977 L_4704DAEA:
   1978     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   1979     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   1980     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   1981     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   1982     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   1983     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   1984     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   1985     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   1986     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   1987     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   1988     RECOMP_FLAGS_IN();
   1989     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   1990     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1991     _cf = 0;
   1992     _flag_k = FK_TEST;
   1993     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   1994 L_4704DB0C:
   1995     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   1996     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   1997     RECOMP_FLAGS_IN();
   1998     esi = eax; /* 0x4704DB13: mov esi, eax */
   1999     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2000     RECOMP_FLAGS_IN();
   2001     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2002     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2003 L_4704DB1E:
   2004     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2005 L_470A6F20:
   2006     ecx = ebp + (-0x14); /* 0x470A6F20: lea ecx, [ebp - 0x14] */
   2007     RECOMP_BACKEDGE();
   2008     goto L_4704DAE0; /* 0x470A6F23: jmp 0x4704dae0 */
   2009     { RECOMP_REGS_OUT(); return; } /* end of function */
   2010     RECOMP_REGS_OUT();
   2011 }
   2012 
   2013 void sub_470A6F28(void) {
   2014     int _fpu_cmp = 0;
   2015     uint32_t _cf = 0;
   2016     int _df = 1;
   2017     uint32_t _flag_k = FK_NONE;
   2018     uint32_t _flag_a = 0, _flag_b = 0;
   2019     uint32_t _itail_tgt = 0;
   2020     RECOMP_REGS_LOCALS
   2021     RECOMP_ENTER(0x470A6F28u);
   2022 
   2023 L_470A6F28:
   2024     eax = MEM32(ebp + 0x4); /* 0x470A6F28: mov eax, dword ptr [ebp + 4] */
   2025     PUSH32(esp, eax); /* 0x470A6F2B: push eax */
   2026     ecx = MEM32(ebp + (-0x18)); /* 0x470A6F2C: mov ecx, dword ptr [ebp - 0x18] */
   2027     PUSH32(esp, ecx); /* 0x470A6F2F: push ecx */
   2028     RECOMP_ICALL(0x470041D0u); /* 0x470A6F30: call 0x470041d0 */ /* not lifted */
   2029     RECOMP_FLAGS_IN();
   2030     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2031     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2032     esp = esp + 8; /* 0x470A6F35: add esp, 8 */
   2033     _flag_k = FK_ADD;
   2034     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6F38: ret  */
   2035     RECOMP_REGS_OUT();
   2036 }
   2037 
   2038 void sub_470A6F39(void) {
   2039     int _fpu_cmp = 0;
   2040     uint32_t _cf = 0;
   2041     int _df = 1;
   2042     uint32_t _flag_k = FK_NONE;
   2043     uint32_t _flag_a = 0, _flag_b = 0;
   2044     uint32_t _itail_tgt = 0;
   2045     RECOMP_REGS_LOCALS
   2046     RECOMP_ENTER(0x470A6F39u);
   2047 
   2048     goto L_470A6F39;
   2049 L_470A33EC:
   2050     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2051 L_470A6F39:
   2052     eax = 0x470B4890u; /* 0x470A6F39: mov eax, 0x470b4890 */
   2053 L_470A6F3E:
   2054     RECOMP_BACKEDGE();
   2055     goto L_470A33EC; /* 0x470A6F3E: jmp 0x470a33ec */
   2056     { RECOMP_REGS_OUT(); return; } /* end of function */
   2057   _ljump:
   2058     switch (_itail_tgt) {
   2059       case 0x470A33ECu: goto L_470A33EC;
   2060       case 0x470A6F39u: goto L_470A6F39;
   2061       case 0x470A6F3Eu: goto L_470A6F3E;
   2062       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2063     }
   2064     RECOMP_REGS_OUT();
   2065 }
   2066 
   2067 void sub_470A6F50(void) {
   2068     int _fpu_cmp = 0;
   2069     uint32_t _cf = 0;
   2070     int _df = 1;
   2071     uint32_t _flag_k = FK_NONE;
   2072     uint32_t _flag_a = 0, _flag_b = 0;
   2073     uint32_t _itail_tgt = 0;
   2074     RECOMP_REGS_LOCALS
   2075     RECOMP_ENTER(0x470A6F50u);
   2076 
   2077     goto L_470A6F50;
   2078 L_4704DAE0:
   2079     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2080     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2081     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2082     _cf = 0;
   2083     _flag_k = FK_TEST;
   2084     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2085     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2087     _flag_k = FK_CMP;
   2088     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2089 L_4704DAEA:
   2090     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2091     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2092     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2093     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2094     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2095     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2096     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2097     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2098     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2099     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2100     RECOMP_FLAGS_IN();
   2101     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2103     _cf = 0;
   2104     _flag_k = FK_TEST;
   2105     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2106 L_4704DB0C:
   2107     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2108     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2109     RECOMP_FLAGS_IN();
   2110     esi = eax; /* 0x4704DB13: mov esi, eax */
   2111     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2112     RECOMP_FLAGS_IN();
   2113     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2114     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2115 L_4704DB1E:
   2116     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2117 L_470A6F50:
   2118     ecx = ebp + (-0x14); /* 0x470A6F50: lea ecx, [ebp - 0x14] */
   2119     RECOMP_BACKEDGE();
   2120     goto L_4704DAE0; /* 0x470A6F53: jmp 0x4704dae0 */
   2121     { RECOMP_REGS_OUT(); return; } /* end of function */
   2122     RECOMP_REGS_OUT();
   2123 }
   2124 
   2125 void sub_470A6F58(void) {
   2126     int _fpu_cmp = 0;
   2127     uint32_t _cf = 0;
   2128     int _df = 1;
   2129     uint32_t _flag_k = FK_NONE;
   2130     uint32_t _flag_a = 0, _flag_b = 0;
   2131     uint32_t _itail_tgt = 0;
   2132     RECOMP_REGS_LOCALS
   2133     RECOMP_ENTER(0x470A6F58u);
   2134 
   2135     goto L_470A6F58;
   2136 L_470A33EC:
   2137     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2138 L_470A6F58:
   2139     eax = 0x470B48C0u; /* 0x470A6F58: mov eax, 0x470b48c0 */
   2140 L_470A6F5D:
   2141     RECOMP_BACKEDGE();
   2142     goto L_470A33EC; /* 0x470A6F5D: jmp 0x470a33ec */
   2143     { RECOMP_REGS_OUT(); return; } /* end of function */
   2144   _ljump:
   2145     switch (_itail_tgt) {
   2146       case 0x470A33ECu: goto L_470A33EC;
   2147       case 0x470A6F58u: goto L_470A6F58;
   2148       case 0x470A6F5Du: goto L_470A6F5D;
   2149       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2150     }
   2151     RECOMP_REGS_OUT();
   2152 }
   2153 
   2154 void sub_470A6F70(void) {
   2155     int _fpu_cmp = 0;
   2156     uint32_t _cf = 0;
   2157     int _df = 1;
   2158     uint32_t _flag_k = FK_NONE;
   2159     uint32_t _flag_a = 0, _flag_b = 0;
   2160     uint32_t _itail_tgt = 0;
   2161     RECOMP_REGS_LOCALS
   2162     RECOMP_ENTER(0x470A6F70u);
   2163 
   2164     goto L_470A6F70;
   2165 L_4704DAE0:
   2166     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2167     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2168     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2169     _cf = 0;
   2170     _flag_k = FK_TEST;
   2171     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2172     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2174     _flag_k = FK_CMP;
   2175     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2176 L_4704DAEA:
   2177     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2178     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2179     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2180     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2181     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2182     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2183     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2184     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2185     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2186     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2187     RECOMP_FLAGS_IN();
   2188     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2189     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2190     _cf = 0;
   2191     _flag_k = FK_TEST;
   2192     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2193 L_4704DB0C:
   2194     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2195     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2196     RECOMP_FLAGS_IN();
   2197     esi = eax; /* 0x4704DB13: mov esi, eax */
   2198     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2199     RECOMP_FLAGS_IN();
   2200     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2201     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2202 L_4704DB1E:
   2203     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2204 L_470A6F70:
   2205     ecx = ebp + (-0x14); /* 0x470A6F70: lea ecx, [ebp - 0x14] */
   2206     RECOMP_BACKEDGE();
   2207     goto L_4704DAE0; /* 0x470A6F73: jmp 0x4704dae0 */
   2208     { RECOMP_REGS_OUT(); return; } /* end of function */
   2209     RECOMP_REGS_OUT();
   2210 }
   2211 
   2212 void sub_470A6F78(void) {
   2213     int _fpu_cmp = 0;
   2214     uint32_t _cf = 0;
   2215     int _df = 1;
   2216     uint32_t _flag_k = FK_NONE;
   2217     uint32_t _flag_a = 0, _flag_b = 0;
   2218     uint32_t _itail_tgt = 0;
   2219     RECOMP_REGS_LOCALS
   2220     RECOMP_ENTER(0x470A6F78u);
   2221 
   2222     goto L_470A6F78;
   2223 L_470A33EC:
   2224     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2225 L_470A6F78:
   2226     eax = 0x470B48E8u; /* 0x470A6F78: mov eax, 0x470b48e8 */
   2227 L_470A6F7D:
   2228     RECOMP_BACKEDGE();
   2229     goto L_470A33EC; /* 0x470A6F7D: jmp 0x470a33ec */
   2230     { RECOMP_REGS_OUT(); return; } /* end of function */
   2231   _ljump:
   2232     switch (_itail_tgt) {
   2233       case 0x470A33ECu: goto L_470A33EC;
   2234       case 0x470A6F78u: goto L_470A6F78;
   2235       case 0x470A6F7Du: goto L_470A6F7D;
   2236       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2237     }
   2238     RECOMP_REGS_OUT();
   2239 }
   2240 
   2241 void sub_470A6F90(void) {
   2242     int _fpu_cmp = 0;
   2243     uint32_t _cf = 0;
   2244     int _df = 1;
   2245     uint32_t _flag_k = FK_NONE;
   2246     uint32_t _flag_a = 0, _flag_b = 0;
   2247     uint32_t _itail_tgt = 0;
   2248     RECOMP_REGS_LOCALS
   2249     RECOMP_ENTER(0x470A6F90u);
   2250 
   2251     goto L_470A6F90;
   2252 L_4704DAE0:
   2253     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2254     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2255     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2256     _cf = 0;
   2257     _flag_k = FK_TEST;
   2258     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2259     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2261     _flag_k = FK_CMP;
   2262     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2263 L_4704DAEA:
   2264     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2265     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2266     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2267     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2268     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2269     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2270     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2271     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2272     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2273     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2274     RECOMP_FLAGS_IN();
   2275     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2276     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2277     _cf = 0;
   2278     _flag_k = FK_TEST;
   2279     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2280 L_4704DB0C:
   2281     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2282     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2283     RECOMP_FLAGS_IN();
   2284     esi = eax; /* 0x4704DB13: mov esi, eax */
   2285     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2286     RECOMP_FLAGS_IN();
   2287     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2288     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2289 L_4704DB1E:
   2290     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2291 L_470A6F90:
   2292     ecx = ebp + (-0x14); /* 0x470A6F90: lea ecx, [ebp - 0x14] */
   2293     RECOMP_BACKEDGE();
   2294     goto L_4704DAE0; /* 0x470A6F93: jmp 0x4704dae0 */
   2295     { RECOMP_REGS_OUT(); return; } /* end of function */
   2296     RECOMP_REGS_OUT();
   2297 }
   2298 
   2299 void sub_470A6F98(void) {
   2300     int _fpu_cmp = 0;
   2301     uint32_t _cf = 0;
   2302     int _df = 1;
   2303     uint32_t _flag_k = FK_NONE;
   2304     uint32_t _flag_a = 0, _flag_b = 0;
   2305     uint32_t _itail_tgt = 0;
   2306     RECOMP_REGS_LOCALS
   2307     RECOMP_ENTER(0x470A6F98u);
   2308 
   2309     goto L_470A6F98;
   2310 L_470A33EC:
   2311     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2312 L_470A6F98:
   2313     eax = 0x470B4910u; /* 0x470A6F98: mov eax, 0x470b4910 */
   2314 L_470A6F9D:
   2315     RECOMP_BACKEDGE();
   2316     goto L_470A33EC; /* 0x470A6F9D: jmp 0x470a33ec */
   2317     { RECOMP_REGS_OUT(); return; } /* end of function */
   2318   _ljump:
   2319     switch (_itail_tgt) {
   2320       case 0x470A33ECu: goto L_470A33EC;
   2321       case 0x470A6F98u: goto L_470A6F98;
   2322       case 0x470A6F9Du: goto L_470A6F9D;
   2323       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2324     }
   2325     RECOMP_REGS_OUT();
   2326 }
   2327 
   2328 void sub_470A6FB0(void) {
   2329     int _fpu_cmp = 0;
   2330     uint32_t _cf = 0;
   2331     int _df = 1;
   2332     uint32_t _flag_k = FK_NONE;
   2333     uint32_t _flag_a = 0, _flag_b = 0;
   2334     uint32_t _itail_tgt = 0;
   2335     RECOMP_REGS_LOCALS
   2336     RECOMP_ENTER(0x470A6FB0u);
   2337 
   2338 L_470A6FB0:
   2339     eax = MEM32(ebp + (-0x448)); /* 0x470A6FB0: mov eax, dword ptr [ebp - 0x448] */
   2340     PUSH32(esp, eax); /* 0x470A6FB6: push eax */
   2341     RECOMP_ICALL(0x470A32A2u); /* 0x470A6FB7: call 0x470a32a2 */ /* not lifted */
   2342     RECOMP_FLAGS_IN();
   2343     ecx = POP32_VAL(esp); /* 0x470A6FBC: pop ecx */
   2344     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6FBD: ret  */
   2345     RECOMP_REGS_OUT();
   2346 }
   2347 
   2348 void sub_470A6FBE(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(0x470A6FBEu);
   2357 
   2358     goto L_470A6FBE;
   2359 L_4703DCA0:
   2360     MEM32(ecx) = 0x470AC538u; /* 0x4703DCA0: mov dword ptr [ecx], 0x470ac538 */
   2361     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DCA6: ret  */
   2362 L_470A6FBE:
   2363     ecx = MEM32(ebp + (-0x448)); /* 0x470A6FBE: mov ecx, dword ptr [ebp - 0x448] */
   2364     RECOMP_BACKEDGE();
   2365     goto L_4703DCA0; /* 0x470A6FC4: jmp 0x4703dca0 */
   2366     { RECOMP_REGS_OUT(); return; } /* end of function */
   2367     RECOMP_REGS_OUT();
   2368 }
   2369 
   2370 void sub_470A6FC9(void) {
   2371     int _fpu_cmp = 0;
   2372     uint32_t _cf = 0;
   2373     int _df = 1;
   2374     uint32_t _flag_k = FK_NONE;
   2375     uint32_t _flag_a = 0, _flag_b = 0;
   2376     uint32_t _itail_tgt = 0;
   2377     RECOMP_REGS_LOCALS
   2378     RECOMP_ENTER(0x470A6FC9u);
   2379 
   2380 L_470A6FC9:
   2381     eax = MEM32(ebp + (-0x448)); /* 0x470A6FC9: mov eax, dword ptr [ebp - 0x448] */
   2382     PUSH32(esp, eax); /* 0x470A6FCF: push eax */
   2383     RECOMP_ICALL(0x470A32A2u); /* 0x470A6FD0: call 0x470a32a2 */ /* not lifted */
   2384     RECOMP_FLAGS_IN();
   2385     ecx = POP32_VAL(esp); /* 0x470A6FD5: pop ecx */
   2386     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6FD6: ret  */
   2387     RECOMP_REGS_OUT();
   2388 }
   2389 
   2390 void sub_470A6FD7(void) {
   2391     int _fpu_cmp = 0;
   2392     uint32_t _cf = 0;
   2393     int _df = 1;
   2394     uint32_t _flag_k = FK_NONE;
   2395     uint32_t _flag_a = 0, _flag_b = 0;
   2396     uint32_t _itail_tgt = 0;
   2397     RECOMP_REGS_LOCALS
   2398     RECOMP_ENTER(0x470A6FD7u);
   2399 
   2400     goto L_470A6FD7;
   2401 L_4704DAE0:
   2402     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2403     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2404     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2405     _cf = 0;
   2406     _flag_k = FK_TEST;
   2407     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2408     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2410     _flag_k = FK_CMP;
   2411     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2412 L_4704DAEA:
   2413     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2414     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2415     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2416     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2417     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2418     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2419     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2420     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2421     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2422     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2423     RECOMP_FLAGS_IN();
   2424     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2425     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2426     _cf = 0;
   2427     _flag_k = FK_TEST;
   2428     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2429 L_4704DB0C:
   2430     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2431     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2432     RECOMP_FLAGS_IN();
   2433     esi = eax; /* 0x4704DB13: mov esi, eax */
   2434     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2435     RECOMP_FLAGS_IN();
   2436     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2437     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2438 L_4704DB1E:
   2439     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2440 L_470A6FD7:
   2441     ecx = ebp + (-0x440); /* 0x470A6FD7: lea ecx, [ebp - 0x440] */
   2442     RECOMP_BACKEDGE();
   2443     goto L_4704DAE0; /* 0x470A6FDD: jmp 0x4704dae0 */
   2444     { RECOMP_REGS_OUT(); return; } /* end of function */
   2445     RECOMP_REGS_OUT();
   2446 }
   2447 
   2448 void sub_470A6FE2(void) {
   2449     int _fpu_cmp = 0;
   2450     uint32_t _cf = 0;
   2451     int _df = 1;
   2452     uint32_t _flag_k = FK_NONE;
   2453     uint32_t _flag_a = 0, _flag_b = 0;
   2454     uint32_t _itail_tgt = 0;
   2455     RECOMP_REGS_LOCALS
   2456     RECOMP_ENTER(0x470A6FE2u);
   2457 
   2458 L_470A6FE2:
   2459     eax = MEM32(ebp + (-0x454)); /* 0x470A6FE2: mov eax, dword ptr [ebp - 0x454] */
   2460     PUSH32(esp, eax); /* 0x470A6FE8: push eax */
   2461     ecx = MEM32(ebp + (-0x444)); /* 0x470A6FE9: mov ecx, dword ptr [ebp - 0x444] */
   2462     PUSH32(esp, ecx); /* 0x470A6FEF: push ecx */
   2463     RECOMP_ICALL(0x470041D0u); /* 0x470A6FF0: call 0x470041d0 */ /* not lifted */
   2464     RECOMP_FLAGS_IN();
   2465     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2466     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2467     esp = esp + 8; /* 0x470A6FF5: add esp, 8 */
   2468     _flag_k = FK_ADD;
   2469     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6FF8: ret  */
   2470     RECOMP_REGS_OUT();
   2471 }
   2472 
   2473 void sub_470A6FF9(void) {
   2474     int _fpu_cmp = 0;
   2475     uint32_t _cf = 0;
   2476     int _df = 1;
   2477     uint32_t _flag_k = FK_NONE;
   2478     uint32_t _flag_a = 0, _flag_b = 0;
   2479     uint32_t _itail_tgt = 0;
   2480     RECOMP_REGS_LOCALS
   2481     RECOMP_ENTER(0x470A6FF9u);
   2482 
   2483     goto L_470A6FF9;
   2484 L_470041D0:
   2485     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret  */
   2486 L_470A6FF9:
   2487     ecx = MEM32(ebp + (-0x444)); /* 0x470A6FF9: mov ecx, dword ptr [ebp - 0x444] */
   2488     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2489     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2490     ecx = ecx + 4; /* 0x470A6FFF: add ecx, 4 */
   2491     _flag_k = FK_ADD;
   2492     RECOMP_BACKEDGE();
   2493     goto L_470041D0; /* 0x470A7002: jmp 0x470041d0 */
   2494     { RECOMP_REGS_OUT(); return; } /* end of function */
   2495     RECOMP_REGS_OUT();
   2496 }
   2497 
   2498 void sub_470A7007(void) {
   2499     int _fpu_cmp = 0;
   2500     uint32_t _cf = 0;
   2501     int _df = 1;
   2502     uint32_t _flag_k = FK_NONE;
   2503     uint32_t _flag_a = 0, _flag_b = 0;
   2504     uint32_t _itail_tgt = 0;
   2505     RECOMP_REGS_LOCALS
   2506     RECOMP_ENTER(0x470A7007u);
   2507 
   2508     goto L_470A7007;
   2509 L_470A33EC:
   2510     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2511 L_470A7007:
   2512     eax = 0x470B4938u; /* 0x470A7007: mov eax, 0x470b4938 */
   2513 L_470A700C:
   2514     RECOMP_BACKEDGE();
   2515     goto L_470A33EC; /* 0x470A700C: jmp 0x470a33ec */
   2516     { RECOMP_REGS_OUT(); return; } /* end of function */
   2517   _ljump:
   2518     switch (_itail_tgt) {
   2519       case 0x470A33ECu: goto L_470A33EC;
   2520       case 0x470A7007u: goto L_470A7007;
   2521       case 0x470A700Cu: goto L_470A700C;
   2522       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2523     }
   2524     RECOMP_REGS_OUT();
   2525 }
   2526 
   2527 void sub_470A7020(void) {
   2528     int _fpu_cmp = 0;
   2529     uint32_t _cf = 0;
   2530     int _df = 1;
   2531     uint32_t _flag_k = FK_NONE;
   2532     uint32_t _flag_a = 0, _flag_b = 0;
   2533     uint32_t _itail_tgt = 0;
   2534     RECOMP_REGS_LOCALS
   2535     RECOMP_ENTER(0x470A7020u);
   2536 
   2537     goto L_470A7020;
   2538 L_4703DCA0:
   2539     MEM32(ecx) = 0x470AC538u; /* 0x4703DCA0: mov dword ptr [ecx], 0x470ac538 */
   2540     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703DCA6: ret  */
   2541 L_470A7020:
   2542     ecx = MEM32(ebp + (-0x14)); /* 0x470A7020: mov ecx, dword ptr [ebp - 0x14] */
   2543     RECOMP_BACKEDGE();
   2544     goto L_4703DCA0; /* 0x470A7023: jmp 0x4703dca0 */
   2545     { RECOMP_REGS_OUT(); return; } /* end of function */
   2546     RECOMP_REGS_OUT();
   2547 }
   2548 
   2549 void sub_470A7028(void) {
   2550     int _fpu_cmp = 0;
   2551     uint32_t _cf = 0;
   2552     int _df = 1;
   2553     uint32_t _flag_k = FK_NONE;
   2554     uint32_t _flag_a = 0, _flag_b = 0;
   2555     uint32_t _itail_tgt = 0;
   2556     RECOMP_REGS_LOCALS
   2557     RECOMP_ENTER(0x470A7028u);
   2558 
   2559     goto L_470A7028;
   2560 L_4700A7E0:
   2561     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700A7E0: push -1 */
   2562     PUSH32(esp, 0x470A3918u); /* 0x4700A7E2: push 0x470a3918 */
   2563     eax = MEM32(FS_BASE + (0)); /* 0x4700A7E7: mov eax, dword ptr fs:[0] */
   2564     PUSH32(esp, eax); /* 0x4700A7ED: push eax */
   2565     MEM32(FS_BASE + (0)) = esp; /* 0x4700A7EE: mov dword ptr fs:[0], esp */
   2566     PUSH32(esp, ecx); /* 0x4700A7F5: push ecx */
   2567     PUSH32(esp, esi); /* 0x4700A7F6: push esi */
   2568     esi = ecx; /* 0x4700A7F7: mov esi, ecx */
   2569     MEM32(esp + 0x4) = esi; /* 0x4700A7F9: mov dword ptr [esp + 4], esi */
   2570     MEM32(esi) = 0x470AC710u; /* 0x4700A7FD: mov dword ptr [esi], 0x470ac710 */
   2571     ecx = esi + 0x10; /* 0x4700A803: lea ecx, [esi + 0x10] */
   2572     MEM32(esp + 0x10) = 0; /* 0x4700A806: mov dword ptr [esp + 0x10], 0 */
   2573     RECOMP_ICALL(0x47041710u); /* 0x4700A80E: call 0x47041710 */ /* not lifted */
   2574     RECOMP_FLAGS_IN();
   2575     ecx = esi; /* 0x4700A813: mov ecx, esi */
   2576     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4700A815: mov dword ptr [esp + 0x10], 0xffffffff */
   2577     RECOMP_ICALL(0x4702A7B0u); /* 0x4700A81D: call 0x4702a7b0 */ /* not lifted */
   2578     RECOMP_FLAGS_IN();
   2579     ecx = MEM32(esp + 0x8); /* 0x4700A822: mov ecx, dword ptr [esp + 8] */
   2580     esi = POP32_VAL(esp); /* 0x4700A826: pop esi */
   2581     MEM32(FS_BASE + (0)) = ecx; /* 0x4700A827: mov dword ptr fs:[0], ecx */
   2582     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2584     esp = esp + 0x10u; /* 0x4700A82E: add esp, 0x10 */
   2585     _flag_k = FK_ADD;
   2586     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700A831: ret  */
   2587 L_470A7028:
   2588     ecx = MEM32(ebp + (-0x10)); /* 0x470A7028: mov ecx, dword ptr [ebp - 0x10] */
   2589     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2590     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2591     ecx = ecx + 4; /* 0x470A702B: add ecx, 4 */
   2592     _flag_k = FK_ADD;
   2593     RECOMP_BACKEDGE();
   2594     goto L_4700A7E0; /* 0x470A702E: jmp 0x4700a7e0 */
   2595     { RECOMP_REGS_OUT(); return; } /* end of function */
   2596     RECOMP_REGS_OUT();
   2597 }
   2598 
   2599 void sub_470A7033(void) {
   2600     int _fpu_cmp = 0;
   2601     uint32_t _cf = 0;
   2602     int _df = 1;
   2603     uint32_t _flag_k = FK_NONE;
   2604     uint32_t _flag_a = 0, _flag_b = 0;
   2605     uint32_t _itail_tgt = 0;
   2606     RECOMP_REGS_LOCALS
   2607     RECOMP_ENTER(0x470A7033u);
   2608 
   2609     goto L_470A7033;
   2610 L_4702A7B0:
   2611     MEM32(ecx) = 0x470AC5C0u; /* 0x4702A7B0: mov dword ptr [ecx], 0x470ac5c0 */
   2612     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702A7B6: ret  */
   2613 L_470A7033:
   2614     ecx = MEM32(ebp + (-0x10)); /* 0x470A7033: mov ecx, dword ptr [ebp - 0x10] */
   2615     RECOMP_BACKEDGE();
   2616     goto L_4702A7B0; /* 0x470A7036: jmp 0x4702a7b0 */
   2617     { RECOMP_REGS_OUT(); return; } /* end of function */
   2618     RECOMP_REGS_OUT();
   2619 }
   2620 
   2621 void sub_470A703B(void) {
   2622     int _fpu_cmp = 0;
   2623     uint32_t _cf = 0;
   2624     int _df = 1;
   2625     uint32_t _flag_k = FK_NONE;
   2626     uint32_t _flag_a = 0, _flag_b = 0;
   2627     uint32_t _itail_tgt = 0;
   2628     RECOMP_REGS_LOCALS
   2629     RECOMP_ENTER(0x470A703Bu);
   2630 
   2631     goto L_470A703B;
   2632 L_470A33EC:
   2633     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2634 L_470A703B:
   2635     eax = 0x470B4988u; /* 0x470A703B: mov eax, 0x470b4988 */
   2636 L_470A7040:
   2637     RECOMP_BACKEDGE();
   2638     goto L_470A33EC; /* 0x470A7040: jmp 0x470a33ec */
   2639     { RECOMP_REGS_OUT(); return; } /* end of function */
   2640   _ljump:
   2641     switch (_itail_tgt) {
   2642       case 0x470A33ECu: goto L_470A33EC;
   2643       case 0x470A703Bu: goto L_470A703B;
   2644       case 0x470A7040u: goto L_470A7040;
   2645       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2646     }
   2647     RECOMP_REGS_OUT();
   2648 }
   2649 
   2650 void sub_470A7050(void) {
   2651     int _fpu_cmp = 0;
   2652     uint32_t _cf = 0;
   2653     int _df = 1;
   2654     uint32_t _flag_k = FK_NONE;
   2655     uint32_t _flag_a = 0, _flag_b = 0;
   2656     uint32_t _itail_tgt = 0;
   2657     RECOMP_REGS_LOCALS
   2658     RECOMP_ENTER(0x470A7050u);
   2659 
   2660     goto L_470A7050;
   2661 L_4704DAE0:
   2662     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2663     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2664     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2665     _cf = 0;
   2666     _flag_k = FK_TEST;
   2667     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2668     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2670     _flag_k = FK_CMP;
   2671     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2672 L_4704DAEA:
   2673     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2674     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2675     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2676     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2677     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2678     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2679     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2680     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2681     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2682     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2683     RECOMP_FLAGS_IN();
   2684     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2685     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2686     _cf = 0;
   2687     _flag_k = FK_TEST;
   2688     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2689 L_4704DB0C:
   2690     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2691     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2692     RECOMP_FLAGS_IN();
   2693     esi = eax; /* 0x4704DB13: mov esi, eax */
   2694     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2695     RECOMP_FLAGS_IN();
   2696     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2697     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2698 L_4704DB1E:
   2699     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2700 L_470A7050:
   2701     ecx = ebp + (-0x14); /* 0x470A7050: lea ecx, [ebp - 0x14] */
   2702     RECOMP_BACKEDGE();
   2703     goto L_4704DAE0; /* 0x470A7053: jmp 0x4704dae0 */
   2704     { RECOMP_REGS_OUT(); return; } /* end of function */
   2705     RECOMP_REGS_OUT();
   2706 }
   2707 
   2708 void sub_470A7058(void) {
   2709     int _fpu_cmp = 0;
   2710     uint32_t _cf = 0;
   2711     int _df = 1;
   2712     uint32_t _flag_k = FK_NONE;
   2713     uint32_t _flag_a = 0, _flag_b = 0;
   2714     uint32_t _itail_tgt = 0;
   2715     RECOMP_REGS_LOCALS
   2716     RECOMP_ENTER(0x470A7058u);
   2717 
   2718     goto L_470A7058;
   2719 L_470A33EC:
   2720     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2721 L_470A7058:
   2722     eax = 0x470B49C0u; /* 0x470A7058: mov eax, 0x470b49c0 */
   2723 L_470A705D:
   2724     RECOMP_BACKEDGE();
   2725     goto L_470A33EC; /* 0x470A705D: jmp 0x470a33ec */
   2726     { RECOMP_REGS_OUT(); return; } /* end of function */
   2727   _ljump:
   2728     switch (_itail_tgt) {
   2729       case 0x470A33ECu: goto L_470A33EC;
   2730       case 0x470A7058u: goto L_470A7058;
   2731       case 0x470A705Du: goto L_470A705D;
   2732       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2733     }
   2734     RECOMP_REGS_OUT();
   2735 }
   2736 
   2737 void sub_470A7070(void) {
   2738     int _fpu_cmp = 0;
   2739     uint32_t _cf = 0;
   2740     int _df = 1;
   2741     uint32_t _flag_k = FK_NONE;
   2742     uint32_t _flag_a = 0, _flag_b = 0;
   2743     uint32_t _itail_tgt = 0;
   2744     RECOMP_REGS_LOCALS
   2745     RECOMP_ENTER(0x470A7070u);
   2746 
   2747     goto L_470A7070;
   2748 L_4704DAE0:
   2749     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2750     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2751     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2752     _cf = 0;
   2753     _flag_k = FK_TEST;
   2754     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2755     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2757     _flag_k = FK_CMP;
   2758     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2759 L_4704DAEA:
   2760     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2761     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2762     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2763     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2764     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2765     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2766     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2767     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2768     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2769     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2770     RECOMP_FLAGS_IN();
   2771     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2772     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2773     _cf = 0;
   2774     _flag_k = FK_TEST;
   2775     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2776 L_4704DB0C:
   2777     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2778     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2779     RECOMP_FLAGS_IN();
   2780     esi = eax; /* 0x4704DB13: mov esi, eax */
   2781     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2782     RECOMP_FLAGS_IN();
   2783     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2784     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2785 L_4704DB1E:
   2786     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2787 L_470A7070:
   2788     ecx = ebp + (-0x14); /* 0x470A7070: lea ecx, [ebp - 0x14] */
   2789     RECOMP_BACKEDGE();
   2790     goto L_4704DAE0; /* 0x470A7073: jmp 0x4704dae0 */
   2791     { RECOMP_REGS_OUT(); return; } /* end of function */
   2792     RECOMP_REGS_OUT();
   2793 }
   2794 
   2795 void sub_470A7078(void) {
   2796     int _fpu_cmp = 0;
   2797     uint32_t _cf = 0;
   2798     int _df = 1;
   2799     uint32_t _flag_k = FK_NONE;
   2800     uint32_t _flag_a = 0, _flag_b = 0;
   2801     uint32_t _itail_tgt = 0;
   2802     RECOMP_REGS_LOCALS
   2803     RECOMP_ENTER(0x470A7078u);
   2804 
   2805     goto L_470A7078;
   2806 L_470A33EC:
   2807     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2808 L_470A7078:
   2809     eax = 0x470B49E8u; /* 0x470A7078: mov eax, 0x470b49e8 */
   2810 L_470A707D:
   2811     RECOMP_BACKEDGE();
   2812     goto L_470A33EC; /* 0x470A707D: jmp 0x470a33ec */
   2813     { RECOMP_REGS_OUT(); return; } /* end of function */
   2814   _ljump:
   2815     switch (_itail_tgt) {
   2816       case 0x470A33ECu: goto L_470A33EC;
   2817       case 0x470A7078u: goto L_470A7078;
   2818       case 0x470A707Du: goto L_470A707D;
   2819       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2820     }
   2821     RECOMP_REGS_OUT();
   2822 }
   2823 
   2824 void sub_470A7090(void) {
   2825     int _fpu_cmp = 0;
   2826     uint32_t _cf = 0;
   2827     int _df = 1;
   2828     uint32_t _flag_k = FK_NONE;
   2829     uint32_t _flag_a = 0, _flag_b = 0;
   2830     uint32_t _itail_tgt = 0;
   2831     RECOMP_REGS_LOCALS
   2832     RECOMP_ENTER(0x470A7090u);
   2833 
   2834     goto L_470A7090;
   2835 L_4704DAE0:
   2836     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2837     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2838     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2839     _cf = 0;
   2840     _flag_k = FK_TEST;
   2841     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2842     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2844     _flag_k = FK_CMP;
   2845     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2846 L_4704DAEA:
   2847     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2848     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2849     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2850     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2851     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2852     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2853     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2854     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2855     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2856     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2857     RECOMP_FLAGS_IN();
   2858     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2859     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2860     _cf = 0;
   2861     _flag_k = FK_TEST;
   2862     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2863 L_4704DB0C:
   2864     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2865     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2866     RECOMP_FLAGS_IN();
   2867     esi = eax; /* 0x4704DB13: mov esi, eax */
   2868     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2869     RECOMP_FLAGS_IN();
   2870     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2871     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2872 L_4704DB1E:
   2873     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2874 L_470A7090:
   2875     ecx = ebp + (-0x14); /* 0x470A7090: lea ecx, [ebp - 0x14] */
   2876     RECOMP_BACKEDGE();
   2877     goto L_4704DAE0; /* 0x470A7093: jmp 0x4704dae0 */
   2878     { RECOMP_REGS_OUT(); return; } /* end of function */
   2879     RECOMP_REGS_OUT();
   2880 }
   2881 
   2882 void sub_470A7098(void) {
   2883     int _fpu_cmp = 0;
   2884     uint32_t _cf = 0;
   2885     int _df = 1;
   2886     uint32_t _flag_k = FK_NONE;
   2887     uint32_t _flag_a = 0, _flag_b = 0;
   2888     uint32_t _itail_tgt = 0;
   2889     RECOMP_REGS_LOCALS
   2890     RECOMP_ENTER(0x470A7098u);
   2891 
   2892 L_470A7098:
   2893     eax = MEM32(ebp + 0xC); /* 0x470A7098: mov eax, dword ptr [ebp + 0xc] */
   2894     PUSH32(esp, eax); /* 0x470A709B: push eax */
   2895     ecx = MEM32(ebp + 0x4); /* 0x470A709C: mov ecx, dword ptr [ebp + 4] */
   2896     PUSH32(esp, ecx); /* 0x470A709F: push ecx */
   2897     RECOMP_ICALL(0x470041D0u); /* 0x470A70A0: call 0x470041d0 */ /* not lifted */
   2898     RECOMP_FLAGS_IN();
   2899     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2900     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2901     esp = esp + 8; /* 0x470A70A5: add esp, 8 */
   2902     _flag_k = FK_ADD;
   2903     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A70A8: ret  */
   2904     RECOMP_REGS_OUT();
   2905 }
   2906 
   2907 void sub_470A70A9(void) {
   2908     int _fpu_cmp = 0;
   2909     uint32_t _cf = 0;
   2910     int _df = 1;
   2911     uint32_t _flag_k = FK_NONE;
   2912     uint32_t _flag_a = 0, _flag_b = 0;
   2913     uint32_t _itail_tgt = 0;
   2914     RECOMP_REGS_LOCALS
   2915     RECOMP_ENTER(0x470A70A9u);
   2916 
   2917     goto L_470A70A9;
   2918 L_470A33EC:
   2919     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2920 L_470A70A9:
   2921     eax = 0x470B4A10u; /* 0x470A70A9: mov eax, 0x470b4a10 */
   2922 L_470A70AE:
   2923     RECOMP_BACKEDGE();
   2924     goto L_470A33EC; /* 0x470A70AE: jmp 0x470a33ec */
   2925     { RECOMP_REGS_OUT(); return; } /* end of function */
   2926   _ljump:
   2927     switch (_itail_tgt) {
   2928       case 0x470A33ECu: goto L_470A33EC;
   2929       case 0x470A70A9u: goto L_470A70A9;
   2930       case 0x470A70AEu: goto L_470A70AE;
   2931       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2932     }
   2933     RECOMP_REGS_OUT();
   2934 }
   2935 
   2936 void sub_470A70C0(void) {
   2937     int _fpu_cmp = 0;
   2938     uint32_t _cf = 0;
   2939     int _df = 1;
   2940     uint32_t _flag_k = FK_NONE;
   2941     uint32_t _flag_a = 0, _flag_b = 0;
   2942     uint32_t _itail_tgt = 0;
   2943     RECOMP_REGS_LOCALS
   2944     RECOMP_ENTER(0x470A70C0u);
   2945 
   2946     goto L_470A70C0;
   2947 L_4704DAE0:
   2948     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2949     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2950     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2951     _cf = 0;
   2952     _flag_k = FK_TEST;
   2953     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2954     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2956     _flag_k = FK_CMP;
   2957     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2958 L_4704DAEA:
   2959     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2960     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2961     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2962     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2963     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2964     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2965     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2966     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2967     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2968     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2969     RECOMP_FLAGS_IN();
   2970     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2972     _cf = 0;
   2973     _flag_k = FK_TEST;
   2974     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2975 L_4704DB0C:
   2976     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2977     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2978     RECOMP_FLAGS_IN();
   2979     esi = eax; /* 0x4704DB13: mov esi, eax */
   2980     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2981     RECOMP_FLAGS_IN();
   2982     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2983     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2984 L_4704DB1E:
   2985     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2986 L_470A70C0:
   2987     ecx = ebp + (-0x14); /* 0x470A70C0: lea ecx, [ebp - 0x14] */
   2988     RECOMP_BACKEDGE();
   2989     goto L_4704DAE0; /* 0x470A70C3: jmp 0x4704dae0 */
   2990     { RECOMP_REGS_OUT(); return; } /* end of function */
   2991     RECOMP_REGS_OUT();
   2992 }
   2993 
   2994 void sub_470A70C8(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(0x470A70C8u);
   3003 
   3004 L_470A70C8:
   3005     eax = MEM32(ebp + 0x4); /* 0x470A70C8: mov eax, dword ptr [ebp + 4] */
   3006     PUSH32(esp, eax); /* 0x470A70CB: push eax */
   3007     ecx = MEM32(ebp + (-0x18)); /* 0x470A70CC: mov ecx, dword ptr [ebp - 0x18] */
   3008     PUSH32(esp, ecx); /* 0x470A70CF: push ecx */
   3009     RECOMP_ICALL(0x470041D0u); /* 0x470A70D0: call 0x470041d0 */ /* not lifted */
   3010     RECOMP_FLAGS_IN();
   3011     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3012     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3013     esp = esp + 8; /* 0x470A70D5: add esp, 8 */
   3014     _flag_k = FK_ADD;
   3015     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A70D8: ret  */
   3016     RECOMP_REGS_OUT();
   3017 }
   3018 
   3019 void sub_470A70D9(void) {
   3020     int _fpu_cmp = 0;
   3021     uint32_t _cf = 0;
   3022     int _df = 1;
   3023     uint32_t _flag_k = FK_NONE;
   3024     uint32_t _flag_a = 0, _flag_b = 0;
   3025     uint32_t _itail_tgt = 0;
   3026     RECOMP_REGS_LOCALS
   3027     RECOMP_ENTER(0x470A70D9u);
   3028 
   3029     goto L_470A70D9;
   3030 L_470A33EC:
   3031     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3032 L_470A70D9:
   3033     eax = 0x470B4A40u; /* 0x470A70D9: mov eax, 0x470b4a40 */
   3034 L_470A70DE:
   3035     RECOMP_BACKEDGE();
   3036     goto L_470A33EC; /* 0x470A70DE: jmp 0x470a33ec */
   3037     { RECOMP_REGS_OUT(); return; } /* end of function */
   3038   _ljump:
   3039     switch (_itail_tgt) {
   3040       case 0x470A33ECu: goto L_470A33EC;
   3041       case 0x470A70D9u: goto L_470A70D9;
   3042       case 0x470A70DEu: goto L_470A70DE;
   3043       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3044     }
   3045     RECOMP_REGS_OUT();
   3046 }
   3047 
   3048 void sub_470A70F0(void) {
   3049     int _fpu_cmp = 0;
   3050     uint32_t _cf = 0;
   3051     int _df = 1;
   3052     uint32_t _flag_k = FK_NONE;
   3053     uint32_t _flag_a = 0, _flag_b = 0;
   3054     uint32_t _itail_tgt = 0;
   3055     RECOMP_REGS_LOCALS
   3056     RECOMP_ENTER(0x470A70F0u);
   3057 
   3058     goto L_470A70F0;
   3059 L_4704DAE0:
   3060     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3061     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3062     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3063     _cf = 0;
   3064     _flag_k = FK_TEST;
   3065     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3066     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3068     _flag_k = FK_CMP;
   3069     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3070 L_4704DAEA:
   3071     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3072     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3073     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3074     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3075     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3076     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3077     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3078     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3079     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3080     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3081     RECOMP_FLAGS_IN();
   3082     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3083     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3084     _cf = 0;
   3085     _flag_k = FK_TEST;
   3086     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3087 L_4704DB0C:
   3088     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3089     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3090     RECOMP_FLAGS_IN();
   3091     esi = eax; /* 0x4704DB13: mov esi, eax */
   3092     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3093     RECOMP_FLAGS_IN();
   3094     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3095     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3096 L_4704DB1E:
   3097     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3098 L_470A70F0:
   3099     ecx = ebp + (-0x14); /* 0x470A70F0: lea ecx, [ebp - 0x14] */
   3100     RECOMP_BACKEDGE();
   3101     goto L_4704DAE0; /* 0x470A70F3: jmp 0x4704dae0 */
   3102     { RECOMP_REGS_OUT(); return; } /* end of function */
   3103     RECOMP_REGS_OUT();
   3104 }
   3105 
   3106 void sub_470A70F8(void) {
   3107     int _fpu_cmp = 0;
   3108     uint32_t _cf = 0;
   3109     int _df = 1;
   3110     uint32_t _flag_k = FK_NONE;
   3111     uint32_t _flag_a = 0, _flag_b = 0;
   3112     uint32_t _itail_tgt = 0;
   3113     RECOMP_REGS_LOCALS
   3114     RECOMP_ENTER(0x470A70F8u);
   3115 
   3116     goto L_470A70F8;
   3117 L_470A33EC:
   3118     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3119 L_470A70F8:
   3120     eax = 0x470B4A70u; /* 0x470A70F8: mov eax, 0x470b4a70 */
   3121 L_470A70FD:
   3122     RECOMP_BACKEDGE();
   3123     goto L_470A33EC; /* 0x470A70FD: jmp 0x470a33ec */
   3124     { RECOMP_REGS_OUT(); return; } /* end of function */
   3125   _ljump:
   3126     switch (_itail_tgt) {
   3127       case 0x470A33ECu: goto L_470A33EC;
   3128       case 0x470A70F8u: goto L_470A70F8;
   3129       case 0x470A70FDu: goto L_470A70FD;
   3130       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3131     }
   3132     RECOMP_REGS_OUT();
   3133 }
   3134 
   3135 void sub_470A7110(void) {
   3136     int _fpu_cmp = 0;
   3137     uint32_t _cf = 0;
   3138     int _df = 1;
   3139     uint32_t _flag_k = FK_NONE;
   3140     uint32_t _flag_a = 0, _flag_b = 0;
   3141     uint32_t _itail_tgt = 0;
   3142     RECOMP_REGS_LOCALS
   3143     RECOMP_ENTER(0x470A7110u);
   3144 
   3145     goto L_470A7110;
   3146 L_4704DAE0:
   3147     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3148     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3149     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3150     _cf = 0;
   3151     _flag_k = FK_TEST;
   3152     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3153     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3155     _flag_k = FK_CMP;
   3156     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3157 L_4704DAEA:
   3158     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3159     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3160     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3161     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3162     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3163     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3164     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3165     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3166     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3167     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3168     RECOMP_FLAGS_IN();
   3169     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3170     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3171     _cf = 0;
   3172     _flag_k = FK_TEST;
   3173     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3174 L_4704DB0C:
   3175     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3176     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3177     RECOMP_FLAGS_IN();
   3178     esi = eax; /* 0x4704DB13: mov esi, eax */
   3179     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3180     RECOMP_FLAGS_IN();
   3181     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3182     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3183 L_4704DB1E:
   3184     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3185 L_470A7110:
   3186     ecx = ebp + (-0x14); /* 0x470A7110: lea ecx, [ebp - 0x14] */
   3187     RECOMP_BACKEDGE();
   3188     goto L_4704DAE0; /* 0x470A7113: jmp 0x4704dae0 */
   3189     { RECOMP_REGS_OUT(); return; } /* end of function */
   3190     RECOMP_REGS_OUT();
   3191 }
   3192 
   3193 void sub_470A7118(void) {
   3194     int _fpu_cmp = 0;
   3195     uint32_t _cf = 0;
   3196     int _df = 1;
   3197     uint32_t _flag_k = FK_NONE;
   3198     uint32_t _flag_a = 0, _flag_b = 0;
   3199     uint32_t _itail_tgt = 0;
   3200     RECOMP_REGS_LOCALS
   3201     RECOMP_ENTER(0x470A7118u);
   3202 
   3203     goto L_470A7118;
   3204 L_470A33EC:
   3205     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3206 L_470A7118:
   3207     eax = 0x470B4A98u; /* 0x470A7118: mov eax, 0x470b4a98 */
   3208 L_470A711D:
   3209     RECOMP_BACKEDGE();
   3210     goto L_470A33EC; /* 0x470A711D: jmp 0x470a33ec */
   3211     { RECOMP_REGS_OUT(); return; } /* end of function */
   3212   _ljump:
   3213     switch (_itail_tgt) {
   3214       case 0x470A33ECu: goto L_470A33EC;
   3215       case 0x470A7118u: goto L_470A7118;
   3216       case 0x470A711Du: goto L_470A711D;
   3217       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3218     }
   3219     RECOMP_REGS_OUT();
   3220 }
   3221 
   3222 void sub_470A7130(void) {
   3223     int _fpu_cmp = 0;
   3224     uint32_t _cf = 0;
   3225     int _df = 1;
   3226     uint32_t _flag_k = FK_NONE;
   3227     uint32_t _flag_a = 0, _flag_b = 0;
   3228     uint32_t _itail_tgt = 0;
   3229     RECOMP_REGS_LOCALS
   3230     RECOMP_ENTER(0x470A7130u);
   3231 
   3232     goto L_470A7130;
   3233 L_4704DAE0:
   3234     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3235     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3236     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3237     _cf = 0;
   3238     _flag_k = FK_TEST;
   3239     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3240     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3242     _flag_k = FK_CMP;
   3243     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3244 L_4704DAEA:
   3245     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3246     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3247     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3248     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3249     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3250     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3251     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3252     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3253     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3254     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3255     RECOMP_FLAGS_IN();
   3256     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3257     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3258     _cf = 0;
   3259     _flag_k = FK_TEST;
   3260     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3261 L_4704DB0C:
   3262     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3263     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3264     RECOMP_FLAGS_IN();
   3265     esi = eax; /* 0x4704DB13: mov esi, eax */
   3266     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3267     RECOMP_FLAGS_IN();
   3268     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3269     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3270 L_4704DB1E:
   3271     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3272 L_470A7130:
   3273     ecx = ebp + (-0x14); /* 0x470A7130: lea ecx, [ebp - 0x14] */
   3274     RECOMP_BACKEDGE();
   3275     goto L_4704DAE0; /* 0x470A7133: jmp 0x4704dae0 */
   3276     { RECOMP_REGS_OUT(); return; } /* end of function */
   3277     RECOMP_REGS_OUT();
   3278 }
   3279 
   3280 void sub_470A7138(void) {
   3281     int _fpu_cmp = 0;
   3282     uint32_t _cf = 0;
   3283     int _df = 1;
   3284     uint32_t _flag_k = FK_NONE;
   3285     uint32_t _flag_a = 0, _flag_b = 0;
   3286     uint32_t _itail_tgt = 0;
   3287     RECOMP_REGS_LOCALS
   3288     RECOMP_ENTER(0x470A7138u);
   3289 
   3290     goto L_470A7138;
   3291 L_470A33EC:
   3292     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3293 L_470A7138:
   3294     eax = 0x470B4AC0u; /* 0x470A7138: mov eax, 0x470b4ac0 */
   3295 L_470A713D:
   3296     RECOMP_BACKEDGE();
   3297     goto L_470A33EC; /* 0x470A713D: jmp 0x470a33ec */
   3298     { RECOMP_REGS_OUT(); return; } /* end of function */
   3299   _ljump:
   3300     switch (_itail_tgt) {
   3301       case 0x470A33ECu: goto L_470A33EC;
   3302       case 0x470A7138u: goto L_470A7138;
   3303       case 0x470A713Du: goto L_470A713D;
   3304       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3305     }
   3306     RECOMP_REGS_OUT();
   3307 }
   3308 
   3309 void sub_470A7150(void) {
   3310     int _fpu_cmp = 0;
   3311     uint32_t _cf = 0;
   3312     int _df = 1;
   3313     uint32_t _flag_k = FK_NONE;
   3314     uint32_t _flag_a = 0, _flag_b = 0;
   3315     uint32_t _itail_tgt = 0;
   3316     RECOMP_REGS_LOCALS
   3317     RECOMP_ENTER(0x470A7150u);
   3318 
   3319     goto L_470A7150;
   3320 L_4700A8A0:
   3321     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700A8A0: push -1 */
   3322     PUSH32(esp, 0x470A3938u); /* 0x4700A8A2: push 0x470a3938 */
   3323     eax = MEM32(FS_BASE + (0)); /* 0x4700A8A7: mov eax, dword ptr fs:[0] */
   3324     PUSH32(esp, eax); /* 0x4700A8AD: push eax */
   3325     MEM32(FS_BASE + (0)) = esp; /* 0x4700A8AE: mov dword ptr fs:[0], esp */
   3326     PUSH32(esp, ecx); /* 0x4700A8B5: push ecx */
   3327     PUSH32(esp, esi); /* 0x4700A8B6: push esi */
   3328     esi = ecx; /* 0x4700A8B7: mov esi, ecx */
   3329     MEM32(esp + 0x4) = esi; /* 0x4700A8B9: mov dword ptr [esp + 4], esi */
   3330     MEM32(esi) = 0x470AC710u; /* 0x4700A8BD: mov dword ptr [esi], 0x470ac710 */
   3331     ecx = esi + 0x10; /* 0x4700A8C3: lea ecx, [esi + 0x10] */
   3332     MEM32(esp + 0x10) = 0; /* 0x4700A8C6: mov dword ptr [esp + 0x10], 0 */
   3333     RECOMP_ICALL(0x47041710u); /* 0x4700A8CE: call 0x47041710 */ /* not lifted */
   3334     RECOMP_FLAGS_IN();
   3335     ecx = esi; /* 0x4700A8D3: mov ecx, esi */
   3336     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4700A8D5: mov dword ptr [esp + 0x10], 0xffffffff */
   3337     RECOMP_ICALL(0x4702A7B0u); /* 0x4700A8DD: call 0x4702a7b0 */ /* not lifted */
   3338     RECOMP_FLAGS_IN();
   3339     ecx = MEM32(esp + 0x8); /* 0x4700A8E2: mov ecx, dword ptr [esp + 8] */
   3340     esi = POP32_VAL(esp); /* 0x4700A8E6: pop esi */
   3341     MEM32(FS_BASE + (0)) = ecx; /* 0x4700A8E7: mov dword ptr fs:[0], ecx */
   3342     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3343     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3344     esp = esp + 0x10u; /* 0x4700A8EE: add esp, 0x10 */
   3345     _flag_k = FK_ADD;
   3346     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700A8F1: ret  */
   3347 L_470A7150:
   3348     ecx = MEM32(ebp + (-0x18)); /* 0x470A7150: mov ecx, dword ptr [ebp - 0x18] */
   3349     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   3350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3351     ecx = ecx + 4; /* 0x470A7153: add ecx, 4 */
   3352     _flag_k = FK_ADD;
   3353     RECOMP_BACKEDGE();
   3354     goto L_4700A8A0; /* 0x470A7156: jmp 0x4700a8a0 */
   3355     { RECOMP_REGS_OUT(); return; } /* end of function */
   3356     RECOMP_REGS_OUT();
   3357 }
   3358 
   3359 void sub_470A715B(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(0x470A715Bu);
   3368 
   3369     goto L_470A715B;
   3370 L_470859F0:
   3371     PUSH32(esp, esi); /* 0x470859F0: push esi */
   3372     esi = ecx; /* 0x470859F1: mov esi, ecx */
   3373     eax = MEM32(esi + 0x1C); /* 0x470859F3: mov eax, dword ptr [esi + 0x1c] */
   3374     /* test eax, eax */ /* 0x470859F6: test eax, eax */
   3375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3376     _cf = 0;
   3377     _flag_k = FK_TEST;
   3378     if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A91; /* 0x470859F8: jne 0x47085a91 */
   3379 L_470859FE:
   3380     eax = MEM32(esi + 0x18); /* 0x470859FE: mov eax, dword ptr [esi + 0x18] */
   3381     /* cmp eax, 0xFFFFFFFFu */ /* 0x47085A01: cmp eax, -1 */
   3382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3384     _flag_k = FK_CMP;
   3385     MEM32(esi + 0x1C) = 1; /* 0x47085A04: mov dword ptr [esi + 0x1c], 1 */
   3386     if (CMP_EQ(_flag_a, _flag_b)) goto L_47085A91; /* 0x47085A0B: je 0x47085a91 */
   3387 L_47085A11:
   3388     PUSH32(esp, ebx); /* 0x47085A11: push ebx */
   3389     PUSH32(esp, ebp); /* 0x47085A12: push ebp */
   3390     PUSH32(esp, edi); /* 0x47085A13: push edi */
   3391     PUSH32(esp, 0); /* 0x47085A14: push 0 */
   3392     PUSH32(esp, eax); /* 0x47085A16: push eax */
   3393     MEM32(esi + 0x8) = 0; /* 0x47085A17: mov dword ptr [esi + 8], 0 */
   3394     RECOMP_ICALL(MEM32(0x470AC144)); /* 0x47085A1E: call dword ptr [0x470ac144] */
   3395     RECOMP_FLAGS_IN();
   3396     ecx = MEM32(esi + 0x18); /* 0x47085A24: mov ecx, dword ptr [esi + 0x18] */
   3397     PUSH32(esp, 0); /* 0x47085A27: push 0 */
   3398     PUSH32(esp, eax); /* 0x47085A29: push eax */
   3399     eax = MEM32(esi + 0x8); /* 0x47085A2A: mov eax, dword ptr [esi + 8] */
   3400     PUSH32(esp, 0); /* 0x47085A2D: push 0 */
   3401     PUSH32(esp, eax); /* 0x47085A2F: push eax */
   3402     PUSH32(esp, ecx); /* 0x47085A30: push ecx */
   3403     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x47085A31: call dword ptr [0x470ac0fc] */
   3404     RECOMP_FLAGS_IN();
   3405     /* test eax, eax */ /* 0x47085A37: test eax, eax */
   3406     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3407     _cf = 0;
   3408     _flag_k = FK_TEST;
   3409     ebx = MEM32(0x470AC3C8); /* 0x47085A39: mov ebx, dword ptr [0x470ac3c8] */
   3410     ebp = MEM32(0x470AC150); /* 0x47085A3F: mov ebp, dword ptr [0x470ac150] */
   3411     if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A4F; /* 0x47085A45: jne 0x47085a4f */
   3412 L_47085A47:
   3413     RECOMP_ICALL(ebx); /* 0x47085A47: call ebx */
   3414     RECOMP_FLAGS_IN();
   3415     edi = eax; /* 0x47085A49: mov edi, eax */
   3416     RECOMP_ICALL(ebp); /* 0x47085A4B: call ebp */
   3417     RECOMP_FLAGS_IN();
   3418     MEM32(edi) = eax; /* 0x47085A4D: mov dword ptr [edi], eax */
   3419 L_47085A4F:
   3420     eax = MEM32(esi + 0x18); /* 0x47085A4F: mov eax, dword ptr [esi + 0x18] */
   3421     PUSH32(esp, eax); /* 0x47085A52: push eax */
   3422     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47085A53: call dword ptr [0x470ac198] */
   3423     RECOMP_FLAGS_IN();
   3424     /* test eax, eax */ /* 0x47085A59: test eax, eax */
   3425     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3426     _cf = 0;
   3427     _flag_k = FK_TEST;
   3428     if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A65; /* 0x47085A5B: jne 0x47085a65 */
   3429 L_47085A5D:
   3430     RECOMP_ICALL(ebx); /* 0x47085A5D: call ebx */
   3431     RECOMP_FLAGS_IN();
   3432     edi = eax; /* 0x47085A5F: mov edi, eax */
   3433     RECOMP_ICALL(ebp); /* 0x47085A61: call ebp */
   3434     RECOMP_FLAGS_IN();
   3435     MEM32(edi) = eax; /* 0x47085A63: mov dword ptr [edi], eax */
   3436 L_47085A65:
   3437     eax = MEM32(esi + 0x14); /* 0x47085A65: mov eax, dword ptr [esi + 0x14] */
   3438     /* test eax, eax */ /* 0x47085A68: test eax, eax */
   3439     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3440     _cf = 0;
   3441     _flag_k = FK_TEST;
   3442     edi = POP32_VAL(esp); /* 0x47085A6A: pop edi */
   3443     ebp = POP32_VAL(esp); /* 0x47085A6B: pop ebp */
   3444     MEM32(esi + 0x18) = 0xFFFFFFFFu; /* 0x47085A6C: mov dword ptr [esi + 0x18], 0xffffffff */
   3445     ebx = POP32_VAL(esp); /* 0x47085A73: pop ebx */
   3446     if (TEST_Z(_flag_a, _flag_b)) goto L_47085A8A; /* 0x47085A74: je 0x47085a8a */
   3447 L_47085A76:
   3448     PUSH32(esp, eax); /* 0x47085A76: push eax */
   3449     RECOMP_ICALL(MEM32(0x470AC3F8)); /* 0x47085A77: call dword ptr [0x470ac3f8] */
   3450     RECOMP_FLAGS_IN();
   3451     edx = MEM32(esi + 0x14); /* 0x47085A7D: mov edx, dword ptr [esi + 0x14] */
   3452     PUSH32(esp, edx); /* 0x47085A80: push edx */
   3453     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47085A81: call dword ptr [0x470ac390] */
   3454     RECOMP_FLAGS_IN();
   3455     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3456     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3457     esp = esp + 8; /* 0x47085A87: add esp, 8 */
   3458     _flag_k = FK_ADD;
   3459 L_47085A8A:
   3460     MEM32(esi + 0x14) = 0; /* 0x47085A8A: mov dword ptr [esi + 0x14], 0 */
   3461 L_47085A91:
   3462     esi = POP32_VAL(esp); /* 0x47085A91: pop esi */
   3463     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085A92: ret  */
   3464 L_470A715B:
   3465     ecx = MEM32(ebp + (-0x18)); /* 0x470A715B: mov ecx, dword ptr [ebp - 0x18] */
   3466     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x250u);
   3467     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3468     ecx = ecx + 0x250u; /* 0x470A715E: add ecx, 0x250 */
   3469     _flag_k = FK_ADD;
   3470     RECOMP_BACKEDGE();
   3471     goto L_470859F0; /* 0x470A7164: jmp 0x470859f0 */
   3472     { RECOMP_REGS_OUT(); return; } /* end of function */
   3473     RECOMP_REGS_OUT();
   3474 }
   3475 
   3476 void sub_470A7169(void) {
   3477     int _fpu_cmp = 0;
   3478     uint32_t _cf = 0;
   3479     int _df = 1;
   3480     uint32_t _flag_k = FK_NONE;
   3481     uint32_t _flag_a = 0, _flag_b = 0;
   3482     uint32_t _itail_tgt = 0;
   3483     RECOMP_REGS_LOCALS
   3484     RECOMP_ENTER(0x470A7169u);
   3485 
   3486     goto L_470A7169;
   3487 L_4704DAE0:
   3488     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3489     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3490     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3491     _cf = 0;
   3492     _flag_k = FK_TEST;
   3493     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3494     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3496     _flag_k = FK_CMP;
   3497     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3498 L_4704DAEA:
   3499     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3500     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3501     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3502     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3503     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3504     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3505     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3506     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3507     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3508     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3509     RECOMP_FLAGS_IN();
   3510     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3511     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3512     _cf = 0;
   3513     _flag_k = FK_TEST;
   3514     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3515 L_4704DB0C:
   3516     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3517     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3518     RECOMP_FLAGS_IN();
   3519     esi = eax; /* 0x4704DB13: mov esi, eax */
   3520     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3521     RECOMP_FLAGS_IN();
   3522     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3523     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3524 L_4704DB1E:
   3525     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3526 L_470A7169:
   3527     ecx = ebp + (-0x14); /* 0x470A7169: lea ecx, [ebp - 0x14] */
   3528     RECOMP_BACKEDGE();
   3529     goto L_4704DAE0; /* 0x470A716C: jmp 0x4704dae0 */
   3530     { RECOMP_REGS_OUT(); return; } /* end of function */
   3531     RECOMP_REGS_OUT();
   3532 }
   3533 
   3534 void sub_470A7171(void) {
   3535     int _fpu_cmp = 0;
   3536     uint32_t _cf = 0;
   3537     int _df = 1;
   3538     uint32_t _flag_k = FK_NONE;
   3539     uint32_t _flag_a = 0, _flag_b = 0;
   3540     uint32_t _itail_tgt = 0;
   3541     RECOMP_REGS_LOCALS
   3542     RECOMP_ENTER(0x470A7171u);
   3543 
   3544     goto L_470A7171;
   3545 L_470A33EC:
   3546     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3547 L_470A7171:
   3548     eax = 0x470B4AE8u; /* 0x470A7171: mov eax, 0x470b4ae8 */
   3549 L_470A7176:
   3550     RECOMP_BACKEDGE();
   3551     goto L_470A33EC; /* 0x470A7176: jmp 0x470a33ec */
   3552     { RECOMP_REGS_OUT(); return; } /* end of function */
   3553   _ljump:
   3554     switch (_itail_tgt) {
   3555       case 0x470A33ECu: goto L_470A33EC;
   3556       case 0x470A7171u: goto L_470A7171;
   3557       case 0x470A7176u: goto L_470A7176;
   3558       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3559     }
   3560     RECOMP_REGS_OUT();
   3561 }
   3562 
   3563 void sub_470A7180(void) {
   3564     int _fpu_cmp = 0;
   3565     uint32_t _cf = 0;
   3566     int _df = 1;
   3567     uint32_t _flag_k = FK_NONE;
   3568     uint32_t _flag_a = 0, _flag_b = 0;
   3569     uint32_t _itail_tgt = 0;
   3570     RECOMP_REGS_LOCALS
   3571     RECOMP_ENTER(0x470A7180u);
   3572 
   3573     goto L_470A7180;
   3574 L_4700A7E0:
   3575     PUSH32(esp, 0xFFFFFFFFu); /* 0x4700A7E0: push -1 */
   3576     PUSH32(esp, 0x470A3918u); /* 0x4700A7E2: push 0x470a3918 */
   3577     eax = MEM32(FS_BASE + (0)); /* 0x4700A7E7: mov eax, dword ptr fs:[0] */
   3578     PUSH32(esp, eax); /* 0x4700A7ED: push eax */
   3579     MEM32(FS_BASE + (0)) = esp; /* 0x4700A7EE: mov dword ptr fs:[0], esp */
   3580     PUSH32(esp, ecx); /* 0x4700A7F5: push ecx */
   3581     PUSH32(esp, esi); /* 0x4700A7F6: push esi */
   3582     esi = ecx; /* 0x4700A7F7: mov esi, ecx */
   3583     MEM32(esp + 0x4) = esi; /* 0x4700A7F9: mov dword ptr [esp + 4], esi */
   3584     MEM32(esi) = 0x470AC710u; /* 0x4700A7FD: mov dword ptr [esi], 0x470ac710 */
   3585     ecx = esi + 0x10; /* 0x4700A803: lea ecx, [esi + 0x10] */
   3586     MEM32(esp + 0x10) = 0; /* 0x4700A806: mov dword ptr [esp + 0x10], 0 */
   3587     RECOMP_ICALL(0x47041710u); /* 0x4700A80E: call 0x47041710 */ /* not lifted */
   3588     RECOMP_FLAGS_IN();
   3589     ecx = esi; /* 0x4700A813: mov ecx, esi */
   3590     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4700A815: mov dword ptr [esp + 0x10], 0xffffffff */
   3591     RECOMP_ICALL(0x4702A7B0u); /* 0x4700A81D: call 0x4702a7b0 */ /* not lifted */
   3592     RECOMP_FLAGS_IN();
   3593     ecx = MEM32(esp + 0x8); /* 0x4700A822: mov ecx, dword ptr [esp + 8] */
   3594     esi = POP32_VAL(esp); /* 0x4700A826: pop esi */
   3595     MEM32(FS_BASE + (0)) = ecx; /* 0x4700A827: mov dword ptr fs:[0], ecx */
   3596     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3598     esp = esp + 0x10u; /* 0x4700A82E: add esp, 0x10 */
   3599     _flag_k = FK_ADD;
   3600     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700A831: ret  */
   3601 L_470A7180:
   3602     ecx = MEM32(ebp + (-0x18)); /* 0x470A7180: mov ecx, dword ptr [ebp - 0x18] */
   3603     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   3604     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3605     ecx = ecx + 4; /* 0x470A7183: add ecx, 4 */
   3606     _flag_k = FK_ADD;
   3607     RECOMP_BACKEDGE();
   3608     goto L_4700A7E0; /* 0x470A7186: jmp 0x4700a7e0 */
   3609     { RECOMP_REGS_OUT(); return; } /* end of function */
   3610     RECOMP_REGS_OUT();
   3611 }
   3612 
   3613 void sub_470A718B(void) {
   3614     int _fpu_cmp = 0;
   3615     uint32_t _cf = 0;
   3616     int _df = 1;
   3617     uint32_t _flag_k = FK_NONE;
   3618     uint32_t _flag_a = 0, _flag_b = 0;
   3619     uint32_t _itail_tgt = 0;
   3620     RECOMP_REGS_LOCALS
   3621     RECOMP_ENTER(0x470A718Bu);
   3622 
   3623     goto L_470A718B;
   3624 L_470859F0:
   3625     PUSH32(esp, esi); /* 0x470859F0: push esi */
   3626     esi = ecx; /* 0x470859F1: mov esi, ecx */
   3627     eax = MEM32(esi + 0x1C); /* 0x470859F3: mov eax, dword ptr [esi + 0x1c] */
   3628     /* test eax, eax */ /* 0x470859F6: test eax, eax */
   3629     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3630     _cf = 0;
   3631     _flag_k = FK_TEST;
   3632     if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A91; /* 0x470859F8: jne 0x47085a91 */
   3633 L_470859FE:
   3634     eax = MEM32(esi + 0x18); /* 0x470859FE: mov eax, dword ptr [esi + 0x18] */
   3635     /* cmp eax, 0xFFFFFFFFu */ /* 0x47085A01: cmp eax, -1 */
   3636     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3638     _flag_k = FK_CMP;
   3639     MEM32(esi + 0x1C) = 1; /* 0x47085A04: mov dword ptr [esi + 0x1c], 1 */
   3640     if (CMP_EQ(_flag_a, _flag_b)) goto L_47085A91; /* 0x47085A0B: je 0x47085a91 */
   3641 L_47085A11:
   3642     PUSH32(esp, ebx); /* 0x47085A11: push ebx */
   3643     PUSH32(esp, ebp); /* 0x47085A12: push ebp */
   3644     PUSH32(esp, edi); /* 0x47085A13: push edi */
   3645     PUSH32(esp, 0); /* 0x47085A14: push 0 */
   3646     PUSH32(esp, eax); /* 0x47085A16: push eax */
   3647     MEM32(esi + 0x8) = 0; /* 0x47085A17: mov dword ptr [esi + 8], 0 */
   3648     RECOMP_ICALL(MEM32(0x470AC144)); /* 0x47085A1E: call dword ptr [0x470ac144] */
   3649     RECOMP_FLAGS_IN();
   3650     ecx = MEM32(esi + 0x18); /* 0x47085A24: mov ecx, dword ptr [esi + 0x18] */
   3651     PUSH32(esp, 0); /* 0x47085A27: push 0 */
   3652     PUSH32(esp, eax); /* 0x47085A29: push eax */
   3653     eax = MEM32(esi + 0x8); /* 0x47085A2A: mov eax, dword ptr [esi + 8] */
   3654     PUSH32(esp, 0); /* 0x47085A2D: push 0 */
   3655     PUSH32(esp, eax); /* 0x47085A2F: push eax */
   3656     PUSH32(esp, ecx); /* 0x47085A30: push ecx */
   3657     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x47085A31: call dword ptr [0x470ac0fc] */
   3658     RECOMP_FLAGS_IN();
   3659     /* test eax, eax */ /* 0x47085A37: test eax, eax */
   3660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3661     _cf = 0;
   3662     _flag_k = FK_TEST;
   3663     ebx = MEM32(0x470AC3C8); /* 0x47085A39: mov ebx, dword ptr [0x470ac3c8] */
   3664     ebp = MEM32(0x470AC150); /* 0x47085A3F: mov ebp, dword ptr [0x470ac150] */
   3665     if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A4F; /* 0x47085A45: jne 0x47085a4f */
   3666 L_47085A47:
   3667     RECOMP_ICALL(ebx); /* 0x47085A47: call ebx */
   3668     RECOMP_FLAGS_IN();
   3669     edi = eax; /* 0x47085A49: mov edi, eax */
   3670     RECOMP_ICALL(ebp); /* 0x47085A4B: call ebp */
   3671     RECOMP_FLAGS_IN();
   3672     MEM32(edi) = eax; /* 0x47085A4D: mov dword ptr [edi], eax */
   3673 L_47085A4F:
   3674     eax = MEM32(esi + 0x18); /* 0x47085A4F: mov eax, dword ptr [esi + 0x18] */
   3675     PUSH32(esp, eax); /* 0x47085A52: push eax */
   3676     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x47085A53: call dword ptr [0x470ac198] */
   3677     RECOMP_FLAGS_IN();
   3678     /* test eax, eax */ /* 0x47085A59: test eax, eax */
   3679     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3680     _cf = 0;
   3681     _flag_k = FK_TEST;
   3682     if (TEST_NZ(_flag_a, _flag_b)) goto L_47085A65; /* 0x47085A5B: jne 0x47085a65 */
   3683 L_47085A5D:
   3684     RECOMP_ICALL(ebx); /* 0x47085A5D: call ebx */
   3685     RECOMP_FLAGS_IN();
   3686     edi = eax; /* 0x47085A5F: mov edi, eax */
   3687     RECOMP_ICALL(ebp); /* 0x47085A61: call ebp */
   3688     RECOMP_FLAGS_IN();
   3689     MEM32(edi) = eax; /* 0x47085A63: mov dword ptr [edi], eax */
   3690 L_47085A65:
   3691     eax = MEM32(esi + 0x14); /* 0x47085A65: mov eax, dword ptr [esi + 0x14] */
   3692     /* test eax, eax */ /* 0x47085A68: test eax, eax */
   3693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3694     _cf = 0;
   3695     _flag_k = FK_TEST;
   3696     edi = POP32_VAL(esp); /* 0x47085A6A: pop edi */
   3697     ebp = POP32_VAL(esp); /* 0x47085A6B: pop ebp */
   3698     MEM32(esi + 0x18) = 0xFFFFFFFFu; /* 0x47085A6C: mov dword ptr [esi + 0x18], 0xffffffff */
   3699     ebx = POP32_VAL(esp); /* 0x47085A73: pop ebx */
   3700     if (TEST_Z(_flag_a, _flag_b)) goto L_47085A8A; /* 0x47085A74: je 0x47085a8a */
   3701 L_47085A76:
   3702     PUSH32(esp, eax); /* 0x47085A76: push eax */
   3703     RECOMP_ICALL(MEM32(0x470AC3F8)); /* 0x47085A77: call dword ptr [0x470ac3f8] */
   3704     RECOMP_FLAGS_IN();
   3705     edx = MEM32(esi + 0x14); /* 0x47085A7D: mov edx, dword ptr [esi + 0x14] */
   3706     PUSH32(esp, edx); /* 0x47085A80: push edx */
   3707     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47085A81: call dword ptr [0x470ac390] */
   3708     RECOMP_FLAGS_IN();
   3709     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3710     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3711     esp = esp + 8; /* 0x47085A87: add esp, 8 */
   3712     _flag_k = FK_ADD;
   3713 L_47085A8A:
   3714     MEM32(esi + 0x14) = 0; /* 0x47085A8A: mov dword ptr [esi + 0x14], 0 */
   3715 L_47085A91:
   3716     esi = POP32_VAL(esp); /* 0x47085A91: pop esi */
   3717     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47085A92: ret  */
   3718 L_470A718B:
   3719     ecx = MEM32(ebp + (-0x18)); /* 0x470A718B: mov ecx, dword ptr [ebp - 0x18] */
   3720     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x250u);
   3721     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3722     ecx = ecx + 0x250u; /* 0x470A718E: add ecx, 0x250 */
   3723     _flag_k = FK_ADD;
   3724     RECOMP_BACKEDGE();
   3725     goto L_470859F0; /* 0x470A7194: jmp 0x470859f0 */
   3726     { RECOMP_REGS_OUT(); return; } /* end of function */
   3727     RECOMP_REGS_OUT();
   3728 }
   3729 
   3730 void sub_470A7199(void) {
   3731     int _fpu_cmp = 0;
   3732     uint32_t _cf = 0;
   3733     int _df = 1;
   3734     uint32_t _flag_k = FK_NONE;
   3735     uint32_t _flag_a = 0, _flag_b = 0;
   3736     uint32_t _itail_tgt = 0;
   3737     RECOMP_REGS_LOCALS
   3738     RECOMP_ENTER(0x470A7199u);
   3739 
   3740     goto L_470A7199;
   3741 L_4704DAE0:
   3742     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3743     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3744     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3745     _cf = 0;
   3746     _flag_k = FK_TEST;
   3747     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3748     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3750     _flag_k = FK_CMP;
   3751     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3752 L_4704DAEA:
   3753     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3754     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3755     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3756     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3757     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3758     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3759     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3760     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3761     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3762     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3763     RECOMP_FLAGS_IN();
   3764     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3765     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3766     _cf = 0;
   3767     _flag_k = FK_TEST;
   3768     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3769 L_4704DB0C:
   3770     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3771     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3772     RECOMP_FLAGS_IN();
   3773     esi = eax; /* 0x4704DB13: mov esi, eax */
   3774     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3775     RECOMP_FLAGS_IN();
   3776     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3777     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3778 L_4704DB1E:
   3779     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3780 L_470A7199:
   3781     ecx = ebp + (-0x14); /* 0x470A7199: lea ecx, [ebp - 0x14] */
   3782     RECOMP_BACKEDGE();
   3783     goto L_4704DAE0; /* 0x470A719C: jmp 0x4704dae0 */
   3784     { RECOMP_REGS_OUT(); return; } /* end of function */
   3785     RECOMP_REGS_OUT();
   3786 }
   3787 
   3788 void sub_470A71A1(void) {
   3789     int _fpu_cmp = 0;
   3790     uint32_t _cf = 0;
   3791     int _df = 1;
   3792     uint32_t _flag_k = FK_NONE;
   3793     uint32_t _flag_a = 0, _flag_b = 0;
   3794     uint32_t _itail_tgt = 0;
   3795     RECOMP_REGS_LOCALS
   3796     RECOMP_ENTER(0x470A71A1u);
   3797 
   3798     goto L_470A71A1;
   3799 L_470A33EC:
   3800     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3801 L_470A71A1:
   3802     eax = 0x470B4B20u; /* 0x470A71A1: mov eax, 0x470b4b20 */
   3803 L_470A71A6:
   3804     RECOMP_BACKEDGE();
   3805     goto L_470A33EC; /* 0x470A71A6: jmp 0x470a33ec */
   3806     { RECOMP_REGS_OUT(); return; } /* end of function */
   3807   _ljump:
   3808     switch (_itail_tgt) {
   3809       case 0x470A33ECu: goto L_470A33EC;
   3810       case 0x470A71A1u: goto L_470A71A1;
   3811       case 0x470A71A6u: goto L_470A71A6;
   3812       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3813     }
   3814     RECOMP_REGS_OUT();
   3815 }