aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0081.c (125258B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_470A6748(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(0x470A6748u);
     13 
     14     goto L_470A6748;
     15 L_470041D0:
     16     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret  */
     17 L_470A6748:
     18     ecx = MEM32(ebp + (-0x10)); /* 0x470A6748: mov ecx, dword ptr [ebp - 0x10] */
     19     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
     20     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     21     ecx = ecx + 0xCu; /* 0x470A674B: add ecx, 0xc */
     22     _flag_k = FK_ADD;
     23     RECOMP_BACKEDGE();
     24     goto L_470041D0; /* 0x470A674E: jmp 0x470041d0 */
     25     { RECOMP_REGS_OUT(); return; } /* end of function */
     26     RECOMP_REGS_OUT();
     27 }
     28 
     29 void sub_470A6753(void) {
     30     int _fpu_cmp = 0;
     31     uint32_t _cf = 0;
     32     int _df = 1;
     33     uint32_t _flag_k = FK_NONE;
     34     uint32_t _flag_a = 0, _flag_b = 0;
     35     uint32_t _itail_tgt = 0;
     36     RECOMP_REGS_LOCALS
     37     RECOMP_ENTER(0x470A6753u);
     38 
     39     goto L_470A6753;
     40 L_47033030:
     41     PUSH32(esp, 0xFFFFFFFFu); /* 0x47033030: push -1 */
     42     PUSH32(esp, 0x470A57E8u); /* 0x47033032: push 0x470a57e8 */
     43     eax = MEM32(FS_BASE + (0)); /* 0x47033037: mov eax, dword ptr fs:[0] */
     44     PUSH32(esp, eax); /* 0x4703303D: push eax */
     45     MEM32(FS_BASE + (0)) = esp; /* 0x4703303E: mov dword ptr fs:[0], esp */
     46     PUSH32(esp, ecx); /* 0x47033045: push ecx */
     47     PUSH32(esp, esi); /* 0x47033046: push esi */
     48     esi = ecx; /* 0x47033047: mov esi, ecx */
     49     PUSH32(esp, edi); /* 0x47033049: push edi */
     50     MEM32(esp + 0x8) = esi; /* 0x4703304A: mov dword ptr [esp + 8], esi */
     51     eax = MEM32(esi + 0x4); /* 0x4703304E: mov eax, dword ptr [esi + 4] */
     52     edi = MEM32(eax); /* 0x47033051: mov edi, dword ptr [eax] */
     53     /* cmp edi, eax */ /* 0x47033053: cmp edi, eax */
     54     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
     55     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     56     _flag_k = FK_CMP;
     57     MEM32(esp + 0x14) = 0; /* 0x47033055: mov dword ptr [esp + 0x14], 0 */
     58     if (CMP_EQ(_flag_a, _flag_b)) goto L_4703307E; /* 0x4703305D: je 0x4703307e */
     59 L_4703305F:
     60     eax = edi; /* 0x4703305F: mov eax, edi */
     61     /* test eax, eax */ /* 0x47033061: test eax, eax */
     62     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     63     _cf = 0;
     64     _flag_k = FK_TEST;
     65     edi = MEM32(edi); /* 0x47033063: mov edi, dword ptr [edi] */
     66     if (TEST_Z(_flag_a, _flag_b)) goto L_47033070; /* 0x47033065: je 0x47033070 */
     67 L_47033067:
     68     ecx = MEM32(esi + 0xC); /* 0x47033067: mov ecx, dword ptr [esi + 0xc] */
     69     edx = MEM32(ecx); /* 0x4703306A: mov edx, dword ptr [ecx] */
     70     PUSH32(esp, eax); /* 0x4703306C: push eax */
     71     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703306D: call dword ptr [edx + 0xc] */
     72     RECOMP_FLAGS_IN();
     73 L_47033070:
     74     ecx = MEM32(esi + 0x8); /* 0x47033070: mov ecx, dword ptr [esi + 8] */
     75     eax = MEM32(esi + 0x4); /* 0x47033073: mov eax, dword ptr [esi + 4] */
     76     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
     77     ecx = ecx - 1; /* 0x47033076: dec ecx */
     78     _flag_k = FK_DEC;
     79     /* cmp edi, eax */ /* 0x47033077: cmp edi, eax */
     80     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
     81     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     82     _flag_k = FK_CMP;
     83     MEM32(esi + 0x8) = ecx; /* 0x47033079: mov dword ptr [esi + 8], ecx */
     84     RECOMP_BACKEDGE();
     85     if (CMP_NE(_flag_a, _flag_b)) goto L_4703305F; /* 0x4703307C: jne 0x4703305f */
     86 L_4703307E:
     87     eax = MEM32(esi + 0x4); /* 0x4703307E: mov eax, dword ptr [esi + 4] */
     88     MEM32(eax) = eax; /* 0x47033081: mov dword ptr [eax], eax */
     89     eax = MEM32(esi + 0x4); /* 0x47033083: mov eax, dword ptr [esi + 4] */
     90     /* test eax, eax */ /* 0x47033086: test eax, eax */
     91     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     92     _cf = 0;
     93     _flag_k = FK_TEST;
     94     if (TEST_Z(_flag_a, _flag_b)) goto L_47033093; /* 0x47033088: je 0x47033093 */
     95 L_4703308A:
     96     ecx = MEM32(esi + 0xC); /* 0x4703308A: mov ecx, dword ptr [esi + 0xc] */
     97     edx = MEM32(ecx); /* 0x4703308D: mov edx, dword ptr [ecx] */
     98     PUSH32(esp, eax); /* 0x4703308F: push eax */
     99     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47033090: call dword ptr [edx + 0xc] */
    100     RECOMP_FLAGS_IN();
    101 L_47033093:
    102     ecx = MEM32(esp + 0xC); /* 0x47033093: mov ecx, dword ptr [esp + 0xc] */
    103     MEM32(esi + 0x4) = 0; /* 0x47033097: mov dword ptr [esi + 4], 0 */
    104     edi = POP32_VAL(esp); /* 0x4703309E: pop edi */
    105     esi = POP32_VAL(esp); /* 0x4703309F: pop esi */
    106     MEM32(FS_BASE + (0)) = ecx; /* 0x470330A0: mov dword ptr fs:[0], ecx */
    107     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    108     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    109     esp = esp + 0x10u; /* 0x470330A7: add esp, 0x10 */
    110     _flag_k = FK_ADD;
    111     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470330AA: ret  */
    112 L_470A6753:
    113     ecx = MEM32(ebp + (-0x10)); /* 0x470A6753: mov ecx, dword ptr [ebp - 0x10] */
    114     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
    115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    116     ecx = ecx + 0x10u; /* 0x470A6756: add ecx, 0x10 */
    117     _flag_k = FK_ADD;
    118     RECOMP_BACKEDGE();
    119     goto L_47033030; /* 0x470A6759: jmp 0x47033030 */
    120     { RECOMP_REGS_OUT(); return; } /* end of function */
    121     RECOMP_REGS_OUT();
    122 }
    123 
    124 void sub_470A675E(void) {
    125     int _fpu_cmp = 0;
    126     uint32_t _cf = 0;
    127     int _df = 1;
    128     uint32_t _flag_k = FK_NONE;
    129     uint32_t _flag_a = 0, _flag_b = 0;
    130     uint32_t _itail_tgt = 0;
    131     RECOMP_REGS_LOCALS
    132     RECOMP_ENTER(0x470A675Eu);
    133 
    134     goto L_470A675E;
    135 L_470A33EC:
    136     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    137 L_470A675E:
    138     eax = 0x470B3E48u; /* 0x470A675E: mov eax, 0x470b3e48 */
    139 L_470A6763:
    140     RECOMP_BACKEDGE();
    141     goto L_470A33EC; /* 0x470A6763: jmp 0x470a33ec */
    142     { RECOMP_REGS_OUT(); return; } /* end of function */
    143   _ljump:
    144     switch (_itail_tgt) {
    145       case 0x470A33ECu: goto L_470A33EC;
    146       case 0x470A675Eu: goto L_470A675E;
    147       case 0x470A6763u: goto L_470A6763;
    148       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    149     }
    150     RECOMP_REGS_OUT();
    151 }
    152 
    153 void sub_470A6770(void) {
    154     int _fpu_cmp = 0;
    155     uint32_t _cf = 0;
    156     int _df = 1;
    157     uint32_t _flag_k = FK_NONE;
    158     uint32_t _flag_a = 0, _flag_b = 0;
    159     uint32_t _itail_tgt = 0;
    160     RECOMP_REGS_LOCALS
    161     RECOMP_ENTER(0x470A6770u);
    162 
    163     goto L_470A6770;
    164 L_4702A7B0:
    165     MEM32(ecx) = 0x470AC5C0u; /* 0x4702A7B0: mov dword ptr [ecx], 0x470ac5c0 */
    166     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702A7B6: ret  */
    167 L_470A6770:
    168     ecx = MEM32(ebp + (-0x14)); /* 0x470A6770: mov ecx, dword ptr [ebp - 0x14] */
    169     RECOMP_BACKEDGE();
    170     goto L_4702A7B0; /* 0x470A6773: jmp 0x4702a7b0 */
    171     { RECOMP_REGS_OUT(); return; } /* end of function */
    172     RECOMP_REGS_OUT();
    173 }
    174 
    175 void sub_470A6778(void) {
    176     int _fpu_cmp = 0;
    177     uint32_t _cf = 0;
    178     int _df = 1;
    179     uint32_t _flag_k = FK_NONE;
    180     uint32_t _flag_a = 0, _flag_b = 0;
    181     uint32_t _itail_tgt = 0;
    182     RECOMP_REGS_LOCALS
    183     RECOMP_ENTER(0x470A6778u);
    184 
    185     goto L_470A6778;
    186 L_470041D0:
    187     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret  */
    188 L_470A6778:
    189     ecx = MEM32(ebp + (-0x14)); /* 0x470A6778: mov ecx, dword ptr [ebp - 0x14] */
    190     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    191     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    192     ecx = ecx + 0xCu; /* 0x470A677B: add ecx, 0xc */
    193     _flag_k = FK_ADD;
    194     RECOMP_BACKEDGE();
    195     goto L_470041D0; /* 0x470A677E: jmp 0x470041d0 */
    196     { RECOMP_REGS_OUT(); return; } /* end of function */
    197     RECOMP_REGS_OUT();
    198 }
    199 
    200 void sub_470A6783(void) {
    201     int _fpu_cmp = 0;
    202     uint32_t _cf = 0;
    203     int _df = 1;
    204     uint32_t _flag_k = FK_NONE;
    205     uint32_t _flag_a = 0, _flag_b = 0;
    206     uint32_t _itail_tgt = 0;
    207     RECOMP_REGS_LOCALS
    208     RECOMP_ENTER(0x470A6783u);
    209 
    210     goto L_470A6783;
    211 L_47033030:
    212     PUSH32(esp, 0xFFFFFFFFu); /* 0x47033030: push -1 */
    213     PUSH32(esp, 0x470A57E8u); /* 0x47033032: push 0x470a57e8 */
    214     eax = MEM32(FS_BASE + (0)); /* 0x47033037: mov eax, dword ptr fs:[0] */
    215     PUSH32(esp, eax); /* 0x4703303D: push eax */
    216     MEM32(FS_BASE + (0)) = esp; /* 0x4703303E: mov dword ptr fs:[0], esp */
    217     PUSH32(esp, ecx); /* 0x47033045: push ecx */
    218     PUSH32(esp, esi); /* 0x47033046: push esi */
    219     esi = ecx; /* 0x47033047: mov esi, ecx */
    220     PUSH32(esp, edi); /* 0x47033049: push edi */
    221     MEM32(esp + 0x8) = esi; /* 0x4703304A: mov dword ptr [esp + 8], esi */
    222     eax = MEM32(esi + 0x4); /* 0x4703304E: mov eax, dword ptr [esi + 4] */
    223     edi = MEM32(eax); /* 0x47033051: mov edi, dword ptr [eax] */
    224     /* cmp edi, eax */ /* 0x47033053: cmp edi, eax */
    225     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    227     _flag_k = FK_CMP;
    228     MEM32(esp + 0x14) = 0; /* 0x47033055: mov dword ptr [esp + 0x14], 0 */
    229     if (CMP_EQ(_flag_a, _flag_b)) goto L_4703307E; /* 0x4703305D: je 0x4703307e */
    230 L_4703305F:
    231     eax = edi; /* 0x4703305F: mov eax, edi */
    232     /* test eax, eax */ /* 0x47033061: test eax, eax */
    233     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    234     _cf = 0;
    235     _flag_k = FK_TEST;
    236     edi = MEM32(edi); /* 0x47033063: mov edi, dword ptr [edi] */
    237     if (TEST_Z(_flag_a, _flag_b)) goto L_47033070; /* 0x47033065: je 0x47033070 */
    238 L_47033067:
    239     ecx = MEM32(esi + 0xC); /* 0x47033067: mov ecx, dword ptr [esi + 0xc] */
    240     edx = MEM32(ecx); /* 0x4703306A: mov edx, dword ptr [ecx] */
    241     PUSH32(esp, eax); /* 0x4703306C: push eax */
    242     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703306D: call dword ptr [edx + 0xc] */
    243     RECOMP_FLAGS_IN();
    244 L_47033070:
    245     ecx = MEM32(esi + 0x8); /* 0x47033070: mov ecx, dword ptr [esi + 8] */
    246     eax = MEM32(esi + 0x4); /* 0x47033073: mov eax, dword ptr [esi + 4] */
    247     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    248     ecx = ecx - 1; /* 0x47033076: dec ecx */
    249     _flag_k = FK_DEC;
    250     /* cmp edi, eax */ /* 0x47033077: cmp edi, eax */
    251     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    253     _flag_k = FK_CMP;
    254     MEM32(esi + 0x8) = ecx; /* 0x47033079: mov dword ptr [esi + 8], ecx */
    255     RECOMP_BACKEDGE();
    256     if (CMP_NE(_flag_a, _flag_b)) goto L_4703305F; /* 0x4703307C: jne 0x4703305f */
    257 L_4703307E:
    258     eax = MEM32(esi + 0x4); /* 0x4703307E: mov eax, dword ptr [esi + 4] */
    259     MEM32(eax) = eax; /* 0x47033081: mov dword ptr [eax], eax */
    260     eax = MEM32(esi + 0x4); /* 0x47033083: mov eax, dword ptr [esi + 4] */
    261     /* test eax, eax */ /* 0x47033086: test eax, eax */
    262     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    263     _cf = 0;
    264     _flag_k = FK_TEST;
    265     if (TEST_Z(_flag_a, _flag_b)) goto L_47033093; /* 0x47033088: je 0x47033093 */
    266 L_4703308A:
    267     ecx = MEM32(esi + 0xC); /* 0x4703308A: mov ecx, dword ptr [esi + 0xc] */
    268     edx = MEM32(ecx); /* 0x4703308D: mov edx, dword ptr [ecx] */
    269     PUSH32(esp, eax); /* 0x4703308F: push eax */
    270     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47033090: call dword ptr [edx + 0xc] */
    271     RECOMP_FLAGS_IN();
    272 L_47033093:
    273     ecx = MEM32(esp + 0xC); /* 0x47033093: mov ecx, dword ptr [esp + 0xc] */
    274     MEM32(esi + 0x4) = 0; /* 0x47033097: mov dword ptr [esi + 4], 0 */
    275     edi = POP32_VAL(esp); /* 0x4703309E: pop edi */
    276     esi = POP32_VAL(esp); /* 0x4703309F: pop esi */
    277     MEM32(FS_BASE + (0)) = ecx; /* 0x470330A0: mov dword ptr fs:[0], ecx */
    278     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    280     esp = esp + 0x10u; /* 0x470330A7: add esp, 0x10 */
    281     _flag_k = FK_ADD;
    282     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470330AA: ret  */
    283 L_470A6783:
    284     ecx = MEM32(ebp + (-0x14)); /* 0x470A6783: mov ecx, dword ptr [ebp - 0x14] */
    285     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
    286     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    287     ecx = ecx + 0x10u; /* 0x470A6786: add ecx, 0x10 */
    288     _flag_k = FK_ADD;
    289     RECOMP_BACKEDGE();
    290     goto L_47033030; /* 0x470A6789: jmp 0x47033030 */
    291     { RECOMP_REGS_OUT(); return; } /* end of function */
    292     RECOMP_REGS_OUT();
    293 }
    294 
    295 void sub_470A678E(void) {
    296     int _fpu_cmp = 0;
    297     uint32_t _cf = 0;
    298     int _df = 1;
    299     uint32_t _flag_k = FK_NONE;
    300     uint32_t _flag_a = 0, _flag_b = 0;
    301     uint32_t _itail_tgt = 0;
    302     RECOMP_REGS_LOCALS
    303     RECOMP_ENTER(0x470A678Eu);
    304 
    305     goto L_470A678E;
    306 L_470041D0:
    307     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret  */
    308 L_470A678E:
    309     ecx = MEM32(ebp + (-0x10)); /* 0x470A678E: mov ecx, dword ptr [ebp - 0x10] */
    310     RECOMP_BACKEDGE();
    311     goto L_470041D0; /* 0x470A6791: jmp 0x470041d0 */
    312     { RECOMP_REGS_OUT(); return; } /* end of function */
    313     RECOMP_REGS_OUT();
    314 }
    315 
    316 void sub_470A6796(void) {
    317     int _fpu_cmp = 0;
    318     uint32_t _cf = 0;
    319     int _df = 1;
    320     uint32_t _flag_k = FK_NONE;
    321     uint32_t _flag_a = 0, _flag_b = 0;
    322     uint32_t _itail_tgt = 0;
    323     RECOMP_REGS_LOCALS
    324     RECOMP_ENTER(0x470A6796u);
    325 
    326     goto L_470A6796;
    327 L_470A33EC:
    328     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    329 L_470A6796:
    330     eax = 0x470B3E80u; /* 0x470A6796: mov eax, 0x470b3e80 */
    331 L_470A679B:
    332     RECOMP_BACKEDGE();
    333     goto L_470A33EC; /* 0x470A679B: jmp 0x470a33ec */
    334     { RECOMP_REGS_OUT(); return; } /* end of function */
    335   _ljump:
    336     switch (_itail_tgt) {
    337       case 0x470A33ECu: goto L_470A33EC;
    338       case 0x470A6796u: goto L_470A6796;
    339       case 0x470A679Bu: goto L_470A679B;
    340       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    341     }
    342     RECOMP_REGS_OUT();
    343 }
    344 
    345 void sub_470A67A0(void) {
    346     int _fpu_cmp = 0;
    347     uint32_t _cf = 0;
    348     int _df = 1;
    349     uint32_t _flag_k = FK_NONE;
    350     uint32_t _flag_a = 0, _flag_b = 0;
    351     uint32_t _itail_tgt = 0;
    352     RECOMP_REGS_LOCALS
    353     RECOMP_ENTER(0x470A67A0u);
    354 
    355     goto L_470A67A0;
    356 L_470810C0:
    357     eax = ecx; /* 0x470810C0: mov eax, ecx */
    358     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    359     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    360     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    361     PUSH32(esp, eax); /* 0x470810C9: push eax */
    362     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    363     RECOMP_FLAGS_IN();
    364     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    365 L_470A67A0:
    366     ecx = MEM32(ebp + (-0x10)); /* 0x470A67A0: mov ecx, dword ptr [ebp - 0x10] */
    367     RECOMP_BACKEDGE();
    368     goto L_470810C0; /* 0x470A67A3: jmp 0x470810c0 */
    369     { RECOMP_REGS_OUT(); return; } /* end of function */
    370     RECOMP_REGS_OUT();
    371 }
    372 
    373 void sub_470A67A8(void) {
    374     int _fpu_cmp = 0;
    375     uint32_t _cf = 0;
    376     int _df = 1;
    377     uint32_t _flag_k = FK_NONE;
    378     uint32_t _flag_a = 0, _flag_b = 0;
    379     uint32_t _itail_tgt = 0;
    380     RECOMP_REGS_LOCALS
    381     RECOMP_ENTER(0x470A67A8u);
    382 
    383     goto L_470A67A8;
    384 L_470A33EC:
    385     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    386 L_470A67A8:
    387     eax = 0x470B3EC0u; /* 0x470A67A8: mov eax, 0x470b3ec0 */
    388 L_470A67AD:
    389     RECOMP_BACKEDGE();
    390     goto L_470A33EC; /* 0x470A67AD: jmp 0x470a33ec */
    391     { RECOMP_REGS_OUT(); return; } /* end of function */
    392   _ljump:
    393     switch (_itail_tgt) {
    394       case 0x470A33ECu: goto L_470A33EC;
    395       case 0x470A67A8u: goto L_470A67A8;
    396       case 0x470A67ADu: goto L_470A67AD;
    397       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    398     }
    399     RECOMP_REGS_OUT();
    400 }
    401 
    402 void sub_470A67C0(void) {
    403     int _fpu_cmp = 0;
    404     uint32_t _cf = 0;
    405     int _df = 1;
    406     uint32_t _flag_k = FK_NONE;
    407     uint32_t _flag_a = 0, _flag_b = 0;
    408     uint32_t _itail_tgt = 0;
    409     RECOMP_REGS_LOCALS
    410     RECOMP_ENTER(0x470A67C0u);
    411 
    412     goto L_470A67C0;
    413 L_470810C0:
    414     eax = ecx; /* 0x470810C0: mov eax, ecx */
    415     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    416     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    417     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    418     PUSH32(esp, eax); /* 0x470810C9: push eax */
    419     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    420     RECOMP_FLAGS_IN();
    421     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    422 L_470A67C0:
    423     ecx = MEM32(ebp + (-0x10)); /* 0x470A67C0: mov ecx, dword ptr [ebp - 0x10] */
    424     RECOMP_BACKEDGE();
    425     goto L_470810C0; /* 0x470A67C3: jmp 0x470810c0 */
    426     { RECOMP_REGS_OUT(); return; } /* end of function */
    427     RECOMP_REGS_OUT();
    428 }
    429 
    430 void sub_470A67C8(void) {
    431     int _fpu_cmp = 0;
    432     uint32_t _cf = 0;
    433     int _df = 1;
    434     uint32_t _flag_k = FK_NONE;
    435     uint32_t _flag_a = 0, _flag_b = 0;
    436     uint32_t _itail_tgt = 0;
    437     RECOMP_REGS_LOCALS
    438     RECOMP_ENTER(0x470A67C8u);
    439 
    440     goto L_470A67C8;
    441 L_470A33EC:
    442     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    443 L_470A67C8:
    444     eax = 0x470B3EE8u; /* 0x470A67C8: mov eax, 0x470b3ee8 */
    445 L_470A67CD:
    446     RECOMP_BACKEDGE();
    447     goto L_470A33EC; /* 0x470A67CD: jmp 0x470a33ec */
    448     { RECOMP_REGS_OUT(); return; } /* end of function */
    449   _ljump:
    450     switch (_itail_tgt) {
    451       case 0x470A33ECu: goto L_470A33EC;
    452       case 0x470A67C8u: goto L_470A67C8;
    453       case 0x470A67CDu: goto L_470A67CD;
    454       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    455     }
    456     RECOMP_REGS_OUT();
    457 }
    458 
    459 void sub_470A67E0(void) {
    460     int _fpu_cmp = 0;
    461     uint32_t _cf = 0;
    462     int _df = 1;
    463     uint32_t _flag_k = FK_NONE;
    464     uint32_t _flag_a = 0, _flag_b = 0;
    465     uint32_t _itail_tgt = 0;
    466     RECOMP_REGS_LOCALS
    467     RECOMP_ENTER(0x470A67E0u);
    468 
    469     goto L_470A67E0;
    470 L_470810C0:
    471     eax = ecx; /* 0x470810C0: mov eax, ecx */
    472     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    473     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    474     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    475     PUSH32(esp, eax); /* 0x470810C9: push eax */
    476     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    477     RECOMP_FLAGS_IN();
    478     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    479 L_470A67E0:
    480     ecx = MEM32(ebp + (-0x10)); /* 0x470A67E0: mov ecx, dword ptr [ebp - 0x10] */
    481     RECOMP_BACKEDGE();
    482     goto L_470810C0; /* 0x470A67E3: jmp 0x470810c0 */
    483     { RECOMP_REGS_OUT(); return; } /* end of function */
    484     RECOMP_REGS_OUT();
    485 }
    486 
    487 void sub_470A67E8(void) {
    488     int _fpu_cmp = 0;
    489     uint32_t _cf = 0;
    490     int _df = 1;
    491     uint32_t _flag_k = FK_NONE;
    492     uint32_t _flag_a = 0, _flag_b = 0;
    493     uint32_t _itail_tgt = 0;
    494     RECOMP_REGS_LOCALS
    495     RECOMP_ENTER(0x470A67E8u);
    496 
    497     goto L_470A67E8;
    498 L_470A33EC:
    499     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    500 L_470A67E8:
    501     eax = 0x470B3F10u; /* 0x470A67E8: mov eax, 0x470b3f10 */
    502 L_470A67ED:
    503     RECOMP_BACKEDGE();
    504     goto L_470A33EC; /* 0x470A67ED: jmp 0x470a33ec */
    505     { RECOMP_REGS_OUT(); return; } /* end of function */
    506   _ljump:
    507     switch (_itail_tgt) {
    508       case 0x470A33ECu: goto L_470A33EC;
    509       case 0x470A67E8u: goto L_470A67E8;
    510       case 0x470A67EDu: goto L_470A67ED;
    511       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    512     }
    513     RECOMP_REGS_OUT();
    514 }
    515 
    516 void sub_470A6800(void) {
    517     int _fpu_cmp = 0;
    518     uint32_t _cf = 0;
    519     int _df = 1;
    520     uint32_t _flag_k = FK_NONE;
    521     uint32_t _flag_a = 0, _flag_b = 0;
    522     uint32_t _itail_tgt = 0;
    523     RECOMP_REGS_LOCALS
    524     RECOMP_ENTER(0x470A6800u);
    525 
    526     goto L_470A6800;
    527 L_470810C0:
    528     eax = ecx; /* 0x470810C0: mov eax, ecx */
    529     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
    530     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
    531     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
    532     PUSH32(esp, eax); /* 0x470810C9: push eax */
    533     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
    534     RECOMP_FLAGS_IN();
    535     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
    536 L_470A6800:
    537     ecx = MEM32(ebp + (-0x10)); /* 0x470A6800: mov ecx, dword ptr [ebp - 0x10] */
    538     RECOMP_BACKEDGE();
    539     goto L_470810C0; /* 0x470A6803: jmp 0x470810c0 */
    540     { RECOMP_REGS_OUT(); return; } /* end of function */
    541     RECOMP_REGS_OUT();
    542 }
    543 
    544 void sub_470A6808(void) {
    545     int _fpu_cmp = 0;
    546     uint32_t _cf = 0;
    547     int _df = 1;
    548     uint32_t _flag_k = FK_NONE;
    549     uint32_t _flag_a = 0, _flag_b = 0;
    550     uint32_t _itail_tgt = 0;
    551     RECOMP_REGS_LOCALS
    552     RECOMP_ENTER(0x470A6808u);
    553 
    554     goto L_470A6808;
    555 L_470A33EC:
    556     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    557 L_470A6808:
    558     eax = 0x470B3F38u; /* 0x470A6808: mov eax, 0x470b3f38 */
    559 L_470A680D:
    560     RECOMP_BACKEDGE();
    561     goto L_470A33EC; /* 0x470A680D: jmp 0x470a33ec */
    562     { RECOMP_REGS_OUT(); return; } /* end of function */
    563   _ljump:
    564     switch (_itail_tgt) {
    565       case 0x470A33ECu: goto L_470A33EC;
    566       case 0x470A6808u: goto L_470A6808;
    567       case 0x470A680Du: goto L_470A680D;
    568       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    569     }
    570     RECOMP_REGS_OUT();
    571 }
    572 
    573 void sub_470A6820(void) {
    574     int _fpu_cmp = 0;
    575     uint32_t _cf = 0;
    576     int _df = 1;
    577     uint32_t _flag_k = FK_NONE;
    578     uint32_t _flag_a = 0, _flag_b = 0;
    579     uint32_t _itail_tgt = 0;
    580     RECOMP_REGS_LOCALS
    581     RECOMP_ENTER(0x470A6820u);
    582 
    583     goto L_470A6820;
    584 L_470477E0:
    585     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
    586     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
    587 L_470A6820:
    588     ecx = MEM32(ebp + (-0x14)); /* 0x470A6820: mov ecx, dword ptr [ebp - 0x14] */
    589     RECOMP_BACKEDGE();
    590     goto L_470477E0; /* 0x470A6823: jmp 0x470477e0 */
    591     { RECOMP_REGS_OUT(); return; } /* end of function */
    592     RECOMP_REGS_OUT();
    593 }
    594 
    595 void sub_470A6828(void) {
    596     int _fpu_cmp = 0;
    597     uint32_t _cf = 0;
    598     int _df = 1;
    599     uint32_t _flag_k = FK_NONE;
    600     uint32_t _flag_a = 0, _flag_b = 0;
    601     uint32_t _itail_tgt = 0;
    602     RECOMP_REGS_LOCALS
    603     RECOMP_ENTER(0x470A6828u);
    604 
    605     goto L_470A6828;
    606 L_4702A7B0:
    607     MEM32(ecx) = 0x470AC5C0u; /* 0x4702A7B0: mov dword ptr [ecx], 0x470ac5c0 */
    608     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702A7B6: ret  */
    609 L_470A6828:
    610     ecx = MEM32(ebp + 0x4); /* 0x470A6828: mov ecx, dword ptr [ebp + 4] */
    611     RECOMP_BACKEDGE();
    612     goto L_4702A7B0; /* 0x470A682B: jmp 0x4702a7b0 */
    613     { RECOMP_REGS_OUT(); return; } /* end of function */
    614     RECOMP_REGS_OUT();
    615 }
    616 
    617 void sub_470A6830(void) {
    618     int _fpu_cmp = 0;
    619     uint32_t _cf = 0;
    620     int _df = 1;
    621     uint32_t _flag_k = FK_NONE;
    622     uint32_t _flag_a = 0, _flag_b = 0;
    623     uint32_t _itail_tgt = 0;
    624     RECOMP_REGS_LOCALS
    625     RECOMP_ENTER(0x470A6830u);
    626 
    627     goto L_470A6830;
    628 L_470041D0:
    629     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret  */
    630 L_470A6830:
    631     ecx = MEM32(ebp + 0x4); /* 0x470A6830: mov ecx, dword ptr [ebp + 4] */
    632     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    633     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    634     ecx = ecx + 0xCu; /* 0x470A6833: add ecx, 0xc */
    635     _flag_k = FK_ADD;
    636     RECOMP_BACKEDGE();
    637     goto L_470041D0; /* 0x470A6836: jmp 0x470041d0 */
    638     { RECOMP_REGS_OUT(); return; } /* end of function */
    639     RECOMP_REGS_OUT();
    640 }
    641 
    642 void sub_470A683B(void) {
    643     int _fpu_cmp = 0;
    644     uint32_t _cf = 0;
    645     int _df = 1;
    646     uint32_t _flag_k = FK_NONE;
    647     uint32_t _flag_a = 0, _flag_b = 0;
    648     uint32_t _itail_tgt = 0;
    649     RECOMP_REGS_LOCALS
    650     RECOMP_ENTER(0x470A683Bu);
    651 
    652     goto L_470A683B;
    653 L_470041D0:
    654     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret  */
    655 L_470A683B:
    656     ecx = MEM32(ebp + (-0x10)); /* 0x470A683B: mov ecx, dword ptr [ebp - 0x10] */
    657     RECOMP_BACKEDGE();
    658     goto L_470041D0; /* 0x470A683E: jmp 0x470041d0 */
    659     { RECOMP_REGS_OUT(); return; } /* end of function */
    660     RECOMP_REGS_OUT();
    661 }
    662 
    663 void sub_470A6843(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(0x470A6843u);
    672 
    673     goto L_470A6843;
    674 L_470A33EC:
    675     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    676 L_470A6843:
    677     eax = 0x470B3F60u; /* 0x470A6843: mov eax, 0x470b3f60 */
    678 L_470A6848:
    679     RECOMP_BACKEDGE();
    680     goto L_470A33EC; /* 0x470A6848: jmp 0x470a33ec */
    681     { RECOMP_REGS_OUT(); return; } /* end of function */
    682   _ljump:
    683     switch (_itail_tgt) {
    684       case 0x470A33ECu: goto L_470A33EC;
    685       case 0x470A6843u: goto L_470A6843;
    686       case 0x470A6848u: goto L_470A6848;
    687       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    688     }
    689     RECOMP_REGS_OUT();
    690 }
    691 
    692 void sub_470A6850(void) {
    693     int _fpu_cmp = 0;
    694     uint32_t _cf = 0;
    695     int _df = 1;
    696     uint32_t _flag_k = FK_NONE;
    697     uint32_t _flag_a = 0, _flag_b = 0;
    698     uint32_t _itail_tgt = 0;
    699     RECOMP_REGS_LOCALS
    700     RECOMP_ENTER(0x470A6850u);
    701 
    702 L_470A6850:
    703     eax = MEM32(ebp + 0x4); /* 0x470A6850: mov eax, dword ptr [ebp + 4] */
    704     PUSH32(esp, eax); /* 0x470A6853: push eax */
    705     RECOMP_ICALL(0x470A32A2u); /* 0x470A6854: call 0x470a32a2 */ /* not lifted */
    706     RECOMP_FLAGS_IN();
    707     ecx = POP32_VAL(esp); /* 0x470A6859: pop ecx */
    708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A685A: ret  */
    709     RECOMP_REGS_OUT();
    710 }
    711 
    712 void sub_470A685B(void) {
    713     int _fpu_cmp = 0;
    714     uint32_t _cf = 0;
    715     int _df = 1;
    716     uint32_t _flag_k = FK_NONE;
    717     uint32_t _flag_a = 0, _flag_b = 0;
    718     uint32_t _itail_tgt = 0;
    719     RECOMP_REGS_LOCALS
    720     RECOMP_ENTER(0x470A685Bu);
    721 
    722 L_470A685B:
    723     eax = MEM32(ebp + 0x8); /* 0x470A685B: mov eax, dword ptr [ebp + 8] */
    724     PUSH32(esp, eax); /* 0x470A685E: push eax */
    725     RECOMP_ICALL(0x470A32A2u); /* 0x470A685F: call 0x470a32a2 */ /* not lifted */
    726     RECOMP_FLAGS_IN();
    727     ecx = POP32_VAL(esp); /* 0x470A6864: pop ecx */
    728     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6865: ret  */
    729     RECOMP_REGS_OUT();
    730 }
    731 
    732 void sub_470A6866(void) {
    733     int _fpu_cmp = 0;
    734     uint32_t _cf = 0;
    735     int _df = 1;
    736     uint32_t _flag_k = FK_NONE;
    737     uint32_t _flag_a = 0, _flag_b = 0;
    738     uint32_t _itail_tgt = 0;
    739     RECOMP_REGS_LOCALS
    740     RECOMP_ENTER(0x470A6866u);
    741 
    742     goto L_470A6866;
    743 L_470477E0:
    744     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
    745     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
    746 L_470A6866:
    747     ecx = MEM32(ebp + 0x8); /* 0x470A6866: mov ecx, dword ptr [ebp + 8] */
    748     RECOMP_BACKEDGE();
    749     goto L_470477E0; /* 0x470A6869: jmp 0x470477e0 */
    750     { RECOMP_REGS_OUT(); return; } /* end of function */
    751     RECOMP_REGS_OUT();
    752 }
    753 
    754 void sub_470A686E(void) {
    755     int _fpu_cmp = 0;
    756     uint32_t _cf = 0;
    757     int _df = 1;
    758     uint32_t _flag_k = FK_NONE;
    759     uint32_t _flag_a = 0, _flag_b = 0;
    760     uint32_t _itail_tgt = 0;
    761     RECOMP_REGS_LOCALS
    762     RECOMP_ENTER(0x470A686Eu);
    763 
    764 L_470A686E:
    765     eax = MEM32(ebp + 0x8); /* 0x470A686E: mov eax, dword ptr [ebp + 8] */
    766     PUSH32(esp, eax); /* 0x470A6871: push eax */
    767     RECOMP_ICALL(0x470A32A2u); /* 0x470A6872: call 0x470a32a2 */ /* not lifted */
    768     RECOMP_FLAGS_IN();
    769     ecx = POP32_VAL(esp); /* 0x470A6877: pop ecx */
    770     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A6878: ret  */
    771     RECOMP_REGS_OUT();
    772 }
    773 
    774 void sub_470A6879(void) {
    775     int _fpu_cmp = 0;
    776     uint32_t _cf = 0;
    777     int _df = 1;
    778     uint32_t _flag_k = FK_NONE;
    779     uint32_t _flag_a = 0, _flag_b = 0;
    780     uint32_t _itail_tgt = 0;
    781     RECOMP_REGS_LOCALS
    782     RECOMP_ENTER(0x470A6879u);
    783 
    784     goto L_470A6879;
    785 L_470477E0:
    786     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
    787     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
    788 L_470A6879:
    789     ecx = MEM32(ebp + 0x8); /* 0x470A6879: mov ecx, dword ptr [ebp + 8] */
    790     RECOMP_BACKEDGE();
    791     goto L_470477E0; /* 0x470A687C: jmp 0x470477e0 */
    792     { RECOMP_REGS_OUT(); return; } /* end of function */
    793     RECOMP_REGS_OUT();
    794 }
    795 
    796 void sub_470A6881(void) {
    797     int _fpu_cmp = 0;
    798     uint32_t _cf = 0;
    799     int _df = 1;
    800     uint32_t _flag_k = FK_NONE;
    801     uint32_t _flag_a = 0, _flag_b = 0;
    802     uint32_t _itail_tgt = 0;
    803     RECOMP_REGS_LOCALS
    804     RECOMP_ENTER(0x470A6881u);
    805 
    806     goto L_470A6881;
    807 L_470A33EC:
    808     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    809 L_470A6881:
    810     eax = 0x470B3FA0u; /* 0x470A6881: mov eax, 0x470b3fa0 */
    811 L_470A6886:
    812     RECOMP_BACKEDGE();
    813     goto L_470A33EC; /* 0x470A6886: jmp 0x470a33ec */
    814     { RECOMP_REGS_OUT(); return; } /* end of function */
    815   _ljump:
    816     switch (_itail_tgt) {
    817       case 0x470A33ECu: goto L_470A33EC;
    818       case 0x470A6881u: goto L_470A6881;
    819       case 0x470A6886u: goto L_470A6886;
    820       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    821     }
    822     RECOMP_REGS_OUT();
    823 }
    824 
    825 void sub_470A6890(void) {
    826     int _fpu_cmp = 0;
    827     uint32_t _cf = 0;
    828     int _df = 1;
    829     uint32_t _flag_k = FK_NONE;
    830     uint32_t _flag_a = 0, _flag_b = 0;
    831     uint32_t _itail_tgt = 0;
    832     RECOMP_REGS_LOCALS
    833     RECOMP_ENTER(0x470A6890u);
    834 
    835     goto L_470A6890;
    836 L_47076DD0:
    837     PUSH32(esp, 0xFFFFFFFFu); /* 0x47076DD0: push -1 */
    838     PUSH32(esp, 0x470A9588u); /* 0x47076DD2: push 0x470a9588 */
    839     eax = MEM32(FS_BASE + (0)); /* 0x47076DD7: mov eax, dword ptr fs:[0] */
    840     PUSH32(esp, eax); /* 0x47076DDD: push eax */
    841     MEM32(FS_BASE + (0)) = esp; /* 0x47076DDE: mov dword ptr fs:[0], esp */
    842     PUSH32(esp, ecx); /* 0x47076DE5: push ecx */
    843     PUSH32(esp, esi); /* 0x47076DE6: push esi */
    844     esi = ecx; /* 0x47076DE7: mov esi, ecx */
    845     eax = esi + 0xC; /* 0x47076DE9: lea eax, [esi + 0xc] */
    846     MEM32(esp + 0x4) = esi; /* 0x47076DEC: mov dword ptr [esp + 4], esi */
    847     MEM32(esi) = 0x470AC820u; /* 0x47076DF0: mov dword ptr [esi], 0x470ac820 */
    848     MEM32(eax) = 0x470AC810u; /* 0x47076DF6: mov dword ptr [eax], 0x470ac810 */
    849     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
    850     _cf = (ecx) != 0;
    851     ecx = (uint32_t)(-(int32_t)ecx); /* 0x47076DFC: neg ecx */
    852     _flag_k = FK_CMP;
    853     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x47076DFE: sbb ecx, ecx */
    854       ecx = _sc ? 0xFFFFFFFFu : 0;
    855       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    856       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    858     ecx = ecx & eax; /* 0x47076E00: and ecx, eax */
    859     _cf = 0;
    860     _flag_k = FK_TEST;
    861     MEM32(esp + 0x10) = 0; /* 0x47076E02: mov dword ptr [esp + 0x10], 0 */
    862     RECOMP_ICALL(0x47078B30u); /* 0x47076E0A: call 0x47078b30 */ /* not lifted */
    863     RECOMP_FLAGS_IN();
    864     ecx = esi; /* 0x47076E0F: mov ecx, esi */
    865     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47076E11: mov dword ptr [esp + 0x10], 0xffffffff */
    866     RECOMP_ICALL(0x4702A7B0u); /* 0x47076E19: call 0x4702a7b0 */ /* not lifted */
    867     RECOMP_FLAGS_IN();
    868     ecx = MEM32(esp + 0x8); /* 0x47076E1E: mov ecx, dword ptr [esp + 8] */
    869     esi = POP32_VAL(esp); /* 0x47076E22: pop esi */
    870     MEM32(FS_BASE + (0)) = ecx; /* 0x47076E23: mov dword ptr fs:[0], ecx */
    871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    873     esp = esp + 0x10u; /* 0x47076E2A: add esp, 0x10 */
    874     _flag_k = FK_ADD;
    875     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47076E2D: ret  */
    876 L_470A6890:
    877     ecx = MEM32(ebp + (-0x10)); /* 0x470A6890: mov ecx, dword ptr [ebp - 0x10] */
    878     RECOMP_BACKEDGE();
    879     goto L_47076DD0; /* 0x470A6893: jmp 0x47076dd0 */
    880     { RECOMP_REGS_OUT(); return; } /* end of function */
    881     RECOMP_REGS_OUT();
    882 }
    883 
    884 void sub_470A6898(void) {
    885     int _fpu_cmp = 0;
    886     uint32_t _cf = 0;
    887     int _df = 1;
    888     uint32_t _flag_k = FK_NONE;
    889     uint32_t _flag_a = 0, _flag_b = 0;
    890     uint32_t _itail_tgt = 0;
    891     RECOMP_REGS_LOCALS
    892     RECOMP_ENTER(0x470A6898u);
    893 
    894     goto L_470A6898;
    895 L_470A33EC:
    896     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    897 L_470A6898:
    898     eax = 0x470B3FE8u; /* 0x470A6898: mov eax, 0x470b3fe8 */
    899 L_470A689D:
    900     RECOMP_BACKEDGE();
    901     goto L_470A33EC; /* 0x470A689D: jmp 0x470a33ec */
    902     { RECOMP_REGS_OUT(); return; } /* end of function */
    903   _ljump:
    904     switch (_itail_tgt) {
    905       case 0x470A33ECu: goto L_470A33EC;
    906       case 0x470A6898u: goto L_470A6898;
    907       case 0x470A689Du: goto L_470A689D;
    908       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    909     }
    910     RECOMP_REGS_OUT();
    911 }
    912 
    913 void sub_470A68B0(void) {
    914     int _fpu_cmp = 0;
    915     uint32_t _cf = 0;
    916     int _df = 1;
    917     uint32_t _flag_k = FK_NONE;
    918     uint32_t _flag_a = 0, _flag_b = 0;
    919     uint32_t _itail_tgt = 0;
    920     RECOMP_REGS_LOCALS
    921     RECOMP_ENTER(0x470A68B0u);
    922 
    923     goto L_470A68B0;
    924 L_47076DD0:
    925     PUSH32(esp, 0xFFFFFFFFu); /* 0x47076DD0: push -1 */
    926     PUSH32(esp, 0x470A9588u); /* 0x47076DD2: push 0x470a9588 */
    927     eax = MEM32(FS_BASE + (0)); /* 0x47076DD7: mov eax, dword ptr fs:[0] */
    928     PUSH32(esp, eax); /* 0x47076DDD: push eax */
    929     MEM32(FS_BASE + (0)) = esp; /* 0x47076DDE: mov dword ptr fs:[0], esp */
    930     PUSH32(esp, ecx); /* 0x47076DE5: push ecx */
    931     PUSH32(esp, esi); /* 0x47076DE6: push esi */
    932     esi = ecx; /* 0x47076DE7: mov esi, ecx */
    933     eax = esi + 0xC; /* 0x47076DE9: lea eax, [esi + 0xc] */
    934     MEM32(esp + 0x4) = esi; /* 0x47076DEC: mov dword ptr [esp + 4], esi */
    935     MEM32(esi) = 0x470AC820u; /* 0x47076DF0: mov dword ptr [esi], 0x470ac820 */
    936     MEM32(eax) = 0x470AC810u; /* 0x47076DF6: mov dword ptr [eax], 0x470ac810 */
    937     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
    938     _cf = (ecx) != 0;
    939     ecx = (uint32_t)(-(int32_t)ecx); /* 0x47076DFC: neg ecx */
    940     _flag_k = FK_CMP;
    941     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x47076DFE: sbb ecx, ecx */
    942       ecx = _sc ? 0xFFFFFFFFu : 0;
    943       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    944       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    945     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    946     ecx = ecx & eax; /* 0x47076E00: and ecx, eax */
    947     _cf = 0;
    948     _flag_k = FK_TEST;
    949     MEM32(esp + 0x10) = 0; /* 0x47076E02: mov dword ptr [esp + 0x10], 0 */
    950     RECOMP_ICALL(0x47078B30u); /* 0x47076E0A: call 0x47078b30 */ /* not lifted */
    951     RECOMP_FLAGS_IN();
    952     ecx = esi; /* 0x47076E0F: mov ecx, esi */
    953     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47076E11: mov dword ptr [esp + 0x10], 0xffffffff */
    954     RECOMP_ICALL(0x4702A7B0u); /* 0x47076E19: call 0x4702a7b0 */ /* not lifted */
    955     RECOMP_FLAGS_IN();
    956     ecx = MEM32(esp + 0x8); /* 0x47076E1E: mov ecx, dword ptr [esp + 8] */
    957     esi = POP32_VAL(esp); /* 0x47076E22: pop esi */
    958     MEM32(FS_BASE + (0)) = ecx; /* 0x47076E23: mov dword ptr fs:[0], ecx */
    959     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    960     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    961     esp = esp + 0x10u; /* 0x47076E2A: add esp, 0x10 */
    962     _flag_k = FK_ADD;
    963     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47076E2D: ret  */
    964 L_470A68B0:
    965     ecx = MEM32(ebp + (-0x10)); /* 0x470A68B0: mov ecx, dword ptr [ebp - 0x10] */
    966     RECOMP_BACKEDGE();
    967     goto L_47076DD0; /* 0x470A68B3: jmp 0x47076dd0 */
    968     { RECOMP_REGS_OUT(); return; } /* end of function */
    969     RECOMP_REGS_OUT();
    970 }
    971 
    972 void sub_470A68B8(void) {
    973     int _fpu_cmp = 0;
    974     uint32_t _cf = 0;
    975     int _df = 1;
    976     uint32_t _flag_k = FK_NONE;
    977     uint32_t _flag_a = 0, _flag_b = 0;
    978     uint32_t _itail_tgt = 0;
    979     RECOMP_REGS_LOCALS
    980     RECOMP_ENTER(0x470A68B8u);
    981 
    982     goto L_470A68B8;
    983 L_470A33EC:
    984     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    985 L_470A68B8:
    986     eax = 0x470B4010u; /* 0x470A68B8: mov eax, 0x470b4010 */
    987 L_470A68BD:
    988     RECOMP_BACKEDGE();
    989     goto L_470A33EC; /* 0x470A68BD: jmp 0x470a33ec */
    990     { RECOMP_REGS_OUT(); return; } /* end of function */
    991   _ljump:
    992     switch (_itail_tgt) {
    993       case 0x470A33ECu: goto L_470A33EC;
    994       case 0x470A68B8u: goto L_470A68B8;
    995       case 0x470A68BDu: goto L_470A68BD;
    996       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    997     }
    998     RECOMP_REGS_OUT();
    999 }
   1000 
   1001 void sub_470A68D0(void) {
   1002     int _fpu_cmp = 0;
   1003     uint32_t _cf = 0;
   1004     int _df = 1;
   1005     uint32_t _flag_k = FK_NONE;
   1006     uint32_t _flag_a = 0, _flag_b = 0;
   1007     uint32_t _itail_tgt = 0;
   1008     RECOMP_REGS_LOCALS
   1009     RECOMP_ENTER(0x470A68D0u);
   1010 
   1011     goto L_470A68D0;
   1012 L_470810C0:
   1013     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1014     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1015     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1016     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1017     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1018     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1019     RECOMP_FLAGS_IN();
   1020     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1021 L_470A68D0:
   1022     ecx = ebp + (-0x18); /* 0x470A68D0: lea ecx, [ebp - 0x18] */
   1023     RECOMP_BACKEDGE();
   1024     goto L_470810C0; /* 0x470A68D3: jmp 0x470810c0 */
   1025     { RECOMP_REGS_OUT(); return; } /* end of function */
   1026     RECOMP_REGS_OUT();
   1027 }
   1028 
   1029 void sub_470A68D8(void) {
   1030     int _fpu_cmp = 0;
   1031     uint32_t _cf = 0;
   1032     int _df = 1;
   1033     uint32_t _flag_k = FK_NONE;
   1034     uint32_t _flag_a = 0, _flag_b = 0;
   1035     uint32_t _itail_tgt = 0;
   1036     RECOMP_REGS_LOCALS
   1037     RECOMP_ENTER(0x470A68D8u);
   1038 
   1039     goto L_470A68D8;
   1040 L_470810C0:
   1041     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1042     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1043     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1044     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1045     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1046     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1047     RECOMP_FLAGS_IN();
   1048     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1049 L_470A68D8:
   1050     ecx = ebp + (-0x24); /* 0x470A68D8: lea ecx, [ebp - 0x24] */
   1051     RECOMP_BACKEDGE();
   1052     goto L_470810C0; /* 0x470A68DB: jmp 0x470810c0 */
   1053     { RECOMP_REGS_OUT(); return; } /* end of function */
   1054     RECOMP_REGS_OUT();
   1055 }
   1056 
   1057 void sub_470A68E0(void) {
   1058     int _fpu_cmp = 0;
   1059     uint32_t _cf = 0;
   1060     int _df = 1;
   1061     uint32_t _flag_k = FK_NONE;
   1062     uint32_t _flag_a = 0, _flag_b = 0;
   1063     uint32_t _itail_tgt = 0;
   1064     RECOMP_REGS_LOCALS
   1065     RECOMP_ENTER(0x470A68E0u);
   1066 
   1067     goto L_470A68E0;
   1068 L_470A33EC:
   1069     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1070 L_470A68E0:
   1071     eax = 0x470B4038u; /* 0x470A68E0: mov eax, 0x470b4038 */
   1072 L_470A68E5:
   1073     RECOMP_BACKEDGE();
   1074     goto L_470A33EC; /* 0x470A68E5: jmp 0x470a33ec */
   1075     { RECOMP_REGS_OUT(); return; } /* end of function */
   1076   _ljump:
   1077     switch (_itail_tgt) {
   1078       case 0x470A33ECu: goto L_470A33EC;
   1079       case 0x470A68E0u: goto L_470A68E0;
   1080       case 0x470A68E5u: goto L_470A68E5;
   1081       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1082     }
   1083     RECOMP_REGS_OUT();
   1084 }
   1085 
   1086 void sub_470A68F0(void) {
   1087     int _fpu_cmp = 0;
   1088     uint32_t _cf = 0;
   1089     int _df = 1;
   1090     uint32_t _flag_k = FK_NONE;
   1091     uint32_t _flag_a = 0, _flag_b = 0;
   1092     uint32_t _itail_tgt = 0;
   1093     RECOMP_REGS_LOCALS
   1094     RECOMP_ENTER(0x470A68F0u);
   1095 
   1096     goto L_470A68F0;
   1097 L_470810C0:
   1098     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1099     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1100     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1101     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1102     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1103     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1104     RECOMP_FLAGS_IN();
   1105     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1106 L_470A68F0:
   1107     ecx = ebp + (-0x18); /* 0x470A68F0: lea ecx, [ebp - 0x18] */
   1108     RECOMP_BACKEDGE();
   1109     goto L_470810C0; /* 0x470A68F3: jmp 0x470810c0 */
   1110     { RECOMP_REGS_OUT(); return; } /* end of function */
   1111     RECOMP_REGS_OUT();
   1112 }
   1113 
   1114 void sub_470A68F8(void) {
   1115     int _fpu_cmp = 0;
   1116     uint32_t _cf = 0;
   1117     int _df = 1;
   1118     uint32_t _flag_k = FK_NONE;
   1119     uint32_t _flag_a = 0, _flag_b = 0;
   1120     uint32_t _itail_tgt = 0;
   1121     RECOMP_REGS_LOCALS
   1122     RECOMP_ENTER(0x470A68F8u);
   1123 
   1124     goto L_470A68F8;
   1125 L_470810C0:
   1126     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1127     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1128     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1129     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1130     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1131     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1132     RECOMP_FLAGS_IN();
   1133     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1134 L_470A68F8:
   1135     ecx = ebp + (-0x24); /* 0x470A68F8: lea ecx, [ebp - 0x24] */
   1136     RECOMP_BACKEDGE();
   1137     goto L_470810C0; /* 0x470A68FB: jmp 0x470810c0 */
   1138     { RECOMP_REGS_OUT(); return; } /* end of function */
   1139     RECOMP_REGS_OUT();
   1140 }
   1141 
   1142 void sub_470A6900(void) {
   1143     int _fpu_cmp = 0;
   1144     uint32_t _cf = 0;
   1145     int _df = 1;
   1146     uint32_t _flag_k = FK_NONE;
   1147     uint32_t _flag_a = 0, _flag_b = 0;
   1148     uint32_t _itail_tgt = 0;
   1149     RECOMP_REGS_LOCALS
   1150     RECOMP_ENTER(0x470A6900u);
   1151 
   1152     goto L_470A6900;
   1153 L_470A33EC:
   1154     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1155 L_470A6900:
   1156     eax = 0x470B4068u; /* 0x470A6900: mov eax, 0x470b4068 */
   1157 L_470A6905:
   1158     RECOMP_BACKEDGE();
   1159     goto L_470A33EC; /* 0x470A6905: jmp 0x470a33ec */
   1160     { RECOMP_REGS_OUT(); return; } /* end of function */
   1161   _ljump:
   1162     switch (_itail_tgt) {
   1163       case 0x470A33ECu: goto L_470A33EC;
   1164       case 0x470A6900u: goto L_470A6900;
   1165       case 0x470A6905u: goto L_470A6905;
   1166       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1167     }
   1168     RECOMP_REGS_OUT();
   1169 }
   1170 
   1171 void sub_470A6910(void) {
   1172     int _fpu_cmp = 0;
   1173     uint32_t _cf = 0;
   1174     int _df = 1;
   1175     uint32_t _flag_k = FK_NONE;
   1176     uint32_t _flag_a = 0, _flag_b = 0;
   1177     uint32_t _itail_tgt = 0;
   1178     RECOMP_REGS_LOCALS
   1179     RECOMP_ENTER(0x470A6910u);
   1180 
   1181     goto L_470A6910;
   1182 L_470810C0:
   1183     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1184     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1185     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1186     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1187     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1188     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1189     RECOMP_FLAGS_IN();
   1190     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1191 L_470A6910:
   1192     ecx = ebp + (-0x18); /* 0x470A6910: lea ecx, [ebp - 0x18] */
   1193     RECOMP_BACKEDGE();
   1194     goto L_470810C0; /* 0x470A6913: jmp 0x470810c0 */
   1195     { RECOMP_REGS_OUT(); return; } /* end of function */
   1196     RECOMP_REGS_OUT();
   1197 }
   1198 
   1199 void sub_470A6918(void) {
   1200     int _fpu_cmp = 0;
   1201     uint32_t _cf = 0;
   1202     int _df = 1;
   1203     uint32_t _flag_k = FK_NONE;
   1204     uint32_t _flag_a = 0, _flag_b = 0;
   1205     uint32_t _itail_tgt = 0;
   1206     RECOMP_REGS_LOCALS
   1207     RECOMP_ENTER(0x470A6918u);
   1208 
   1209     goto L_470A6918;
   1210 L_470A33EC:
   1211     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1212 L_470A6918:
   1213     eax = 0x470B4098u; /* 0x470A6918: mov eax, 0x470b4098 */
   1214 L_470A691D:
   1215     RECOMP_BACKEDGE();
   1216     goto L_470A33EC; /* 0x470A691D: jmp 0x470a33ec */
   1217     { RECOMP_REGS_OUT(); return; } /* end of function */
   1218   _ljump:
   1219     switch (_itail_tgt) {
   1220       case 0x470A33ECu: goto L_470A33EC;
   1221       case 0x470A6918u: goto L_470A6918;
   1222       case 0x470A691Du: goto L_470A691D;
   1223       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1224     }
   1225     RECOMP_REGS_OUT();
   1226 }
   1227 
   1228 void sub_470A6930(void) {
   1229     int _fpu_cmp = 0;
   1230     uint32_t _cf = 0;
   1231     int _df = 1;
   1232     uint32_t _flag_k = FK_NONE;
   1233     uint32_t _flag_a = 0, _flag_b = 0;
   1234     uint32_t _itail_tgt = 0;
   1235     RECOMP_REGS_LOCALS
   1236     RECOMP_ENTER(0x470A6930u);
   1237 
   1238     goto L_470A6930;
   1239 L_470810C0:
   1240     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1241     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1242     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1243     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1244     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1245     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1246     RECOMP_FLAGS_IN();
   1247     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1248 L_470A6930:
   1249     ecx = ebp + (-0x24); /* 0x470A6930: lea ecx, [ebp - 0x24] */
   1250     RECOMP_BACKEDGE();
   1251     goto L_470810C0; /* 0x470A6933: jmp 0x470810c0 */
   1252     { RECOMP_REGS_OUT(); return; } /* end of function */
   1253     RECOMP_REGS_OUT();
   1254 }
   1255 
   1256 void sub_470A6938(void) {
   1257     int _fpu_cmp = 0;
   1258     uint32_t _cf = 0;
   1259     int _df = 1;
   1260     uint32_t _flag_k = FK_NONE;
   1261     uint32_t _flag_a = 0, _flag_b = 0;
   1262     uint32_t _itail_tgt = 0;
   1263     RECOMP_REGS_LOCALS
   1264     RECOMP_ENTER(0x470A6938u);
   1265 
   1266     goto L_470A6938;
   1267 L_470810C0:
   1268     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1269     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1270     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1271     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1272     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1273     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1274     RECOMP_FLAGS_IN();
   1275     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1276 L_470A6938:
   1277     ecx = ebp + (-0x18); /* 0x470A6938: lea ecx, [ebp - 0x18] */
   1278     RECOMP_BACKEDGE();
   1279     goto L_470810C0; /* 0x470A693B: jmp 0x470810c0 */
   1280     { RECOMP_REGS_OUT(); return; } /* end of function */
   1281     RECOMP_REGS_OUT();
   1282 }
   1283 
   1284 void sub_470A6940(void) {
   1285     int _fpu_cmp = 0;
   1286     uint32_t _cf = 0;
   1287     int _df = 1;
   1288     uint32_t _flag_k = FK_NONE;
   1289     uint32_t _flag_a = 0, _flag_b = 0;
   1290     uint32_t _itail_tgt = 0;
   1291     RECOMP_REGS_LOCALS
   1292     RECOMP_ENTER(0x470A6940u);
   1293 
   1294     goto L_470A6940;
   1295 L_470A33EC:
   1296     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1297 L_470A6940:
   1298     eax = 0x470B40C0u; /* 0x470A6940: mov eax, 0x470b40c0 */
   1299 L_470A6945:
   1300     RECOMP_BACKEDGE();
   1301     goto L_470A33EC; /* 0x470A6945: jmp 0x470a33ec */
   1302     { RECOMP_REGS_OUT(); return; } /* end of function */
   1303   _ljump:
   1304     switch (_itail_tgt) {
   1305       case 0x470A33ECu: goto L_470A33EC;
   1306       case 0x470A6940u: goto L_470A6940;
   1307       case 0x470A6945u: goto L_470A6945;
   1308       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1309     }
   1310     RECOMP_REGS_OUT();
   1311 }
   1312 
   1313 void sub_470A6950(void) {
   1314     int _fpu_cmp = 0;
   1315     uint32_t _cf = 0;
   1316     int _df = 1;
   1317     uint32_t _flag_k = FK_NONE;
   1318     uint32_t _flag_a = 0, _flag_b = 0;
   1319     uint32_t _itail_tgt = 0;
   1320     RECOMP_REGS_LOCALS
   1321     RECOMP_ENTER(0x470A6950u);
   1322 
   1323     goto L_470A6950;
   1324 L_470810C0:
   1325     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1326     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1327     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1328     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1329     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1330     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1331     RECOMP_FLAGS_IN();
   1332     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1333 L_470A6950:
   1334     ecx = ebp + (-0x18); /* 0x470A6950: lea ecx, [ebp - 0x18] */
   1335     RECOMP_BACKEDGE();
   1336     goto L_470810C0; /* 0x470A6953: jmp 0x470810c0 */
   1337     { RECOMP_REGS_OUT(); return; } /* end of function */
   1338     RECOMP_REGS_OUT();
   1339 }
   1340 
   1341 void sub_470A6958(void) {
   1342     int _fpu_cmp = 0;
   1343     uint32_t _cf = 0;
   1344     int _df = 1;
   1345     uint32_t _flag_k = FK_NONE;
   1346     uint32_t _flag_a = 0, _flag_b = 0;
   1347     uint32_t _itail_tgt = 0;
   1348     RECOMP_REGS_LOCALS
   1349     RECOMP_ENTER(0x470A6958u);
   1350 
   1351     goto L_470A6958;
   1352 L_470A33EC:
   1353     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1354 L_470A6958:
   1355     eax = 0x470B40F0u; /* 0x470A6958: mov eax, 0x470b40f0 */
   1356 L_470A695D:
   1357     RECOMP_BACKEDGE();
   1358     goto L_470A33EC; /* 0x470A695D: jmp 0x470a33ec */
   1359     { RECOMP_REGS_OUT(); return; } /* end of function */
   1360   _ljump:
   1361     switch (_itail_tgt) {
   1362       case 0x470A33ECu: goto L_470A33EC;
   1363       case 0x470A6958u: goto L_470A6958;
   1364       case 0x470A695Du: goto L_470A695D;
   1365       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1366     }
   1367     RECOMP_REGS_OUT();
   1368 }
   1369 
   1370 void sub_470A6970(void) {
   1371     int _fpu_cmp = 0;
   1372     uint32_t _cf = 0;
   1373     int _df = 1;
   1374     uint32_t _flag_k = FK_NONE;
   1375     uint32_t _flag_a = 0, _flag_b = 0;
   1376     uint32_t _itail_tgt = 0;
   1377     RECOMP_REGS_LOCALS
   1378     RECOMP_ENTER(0x470A6970u);
   1379 
   1380     goto L_470A6970;
   1381 L_470810C0:
   1382     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1383     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1384     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1385     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1386     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1387     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1388     RECOMP_FLAGS_IN();
   1389     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1390 L_470A6970:
   1391     ecx = ebp + (-0x18); /* 0x470A6970: lea ecx, [ebp - 0x18] */
   1392     RECOMP_BACKEDGE();
   1393     goto L_470810C0; /* 0x470A6973: jmp 0x470810c0 */
   1394     { RECOMP_REGS_OUT(); return; } /* end of function */
   1395     RECOMP_REGS_OUT();
   1396 }
   1397 
   1398 void sub_470A6978(void) {
   1399     int _fpu_cmp = 0;
   1400     uint32_t _cf = 0;
   1401     int _df = 1;
   1402     uint32_t _flag_k = FK_NONE;
   1403     uint32_t _flag_a = 0, _flag_b = 0;
   1404     uint32_t _itail_tgt = 0;
   1405     RECOMP_REGS_LOCALS
   1406     RECOMP_ENTER(0x470A6978u);
   1407 
   1408     goto L_470A6978;
   1409 L_470A33EC:
   1410     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1411 L_470A6978:
   1412     eax = 0x470B4118u; /* 0x470A6978: mov eax, 0x470b4118 */
   1413 L_470A697D:
   1414     RECOMP_BACKEDGE();
   1415     goto L_470A33EC; /* 0x470A697D: jmp 0x470a33ec */
   1416     { RECOMP_REGS_OUT(); return; } /* end of function */
   1417   _ljump:
   1418     switch (_itail_tgt) {
   1419       case 0x470A33ECu: goto L_470A33EC;
   1420       case 0x470A6978u: goto L_470A6978;
   1421       case 0x470A697Du: goto L_470A697D;
   1422       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1423     }
   1424     RECOMP_REGS_OUT();
   1425 }
   1426 
   1427 void sub_470A6990(void) {
   1428     int _fpu_cmp = 0;
   1429     uint32_t _cf = 0;
   1430     int _df = 1;
   1431     uint32_t _flag_k = FK_NONE;
   1432     uint32_t _flag_a = 0, _flag_b = 0;
   1433     uint32_t _itail_tgt = 0;
   1434     RECOMP_REGS_LOCALS
   1435     RECOMP_ENTER(0x470A6990u);
   1436 
   1437     goto L_470A6990;
   1438 L_470810C0:
   1439     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1440     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1441     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1442     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1443     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1444     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1445     RECOMP_FLAGS_IN();
   1446     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1447 L_470A6990:
   1448     ecx = ebp + (-0x18); /* 0x470A6990: lea ecx, [ebp - 0x18] */
   1449     RECOMP_BACKEDGE();
   1450     goto L_470810C0; /* 0x470A6993: jmp 0x470810c0 */
   1451     { RECOMP_REGS_OUT(); return; } /* end of function */
   1452     RECOMP_REGS_OUT();
   1453 }
   1454 
   1455 void sub_470A6998(void) {
   1456     int _fpu_cmp = 0;
   1457     uint32_t _cf = 0;
   1458     int _df = 1;
   1459     uint32_t _flag_k = FK_NONE;
   1460     uint32_t _flag_a = 0, _flag_b = 0;
   1461     uint32_t _itail_tgt = 0;
   1462     RECOMP_REGS_LOCALS
   1463     RECOMP_ENTER(0x470A6998u);
   1464 
   1465     goto L_470A6998;
   1466 L_470A33EC:
   1467     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1468 L_470A6998:
   1469     eax = 0x470B4140u; /* 0x470A6998: mov eax, 0x470b4140 */
   1470 L_470A699D:
   1471     RECOMP_BACKEDGE();
   1472     goto L_470A33EC; /* 0x470A699D: jmp 0x470a33ec */
   1473     { RECOMP_REGS_OUT(); return; } /* end of function */
   1474   _ljump:
   1475     switch (_itail_tgt) {
   1476       case 0x470A33ECu: goto L_470A33EC;
   1477       case 0x470A6998u: goto L_470A6998;
   1478       case 0x470A699Du: goto L_470A699D;
   1479       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1480     }
   1481     RECOMP_REGS_OUT();
   1482 }
   1483 
   1484 void sub_470A69B0(void) {
   1485     int _fpu_cmp = 0;
   1486     uint32_t _cf = 0;
   1487     int _df = 1;
   1488     uint32_t _flag_k = FK_NONE;
   1489     uint32_t _flag_a = 0, _flag_b = 0;
   1490     uint32_t _itail_tgt = 0;
   1491     RECOMP_REGS_LOCALS
   1492     RECOMP_ENTER(0x470A69B0u);
   1493 
   1494     goto L_470A69B0;
   1495 L_470810C0:
   1496     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1497     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1498     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1499     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1500     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1501     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1502     RECOMP_FLAGS_IN();
   1503     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1504 L_470A69B0:
   1505     ecx = ebp + (-0x18); /* 0x470A69B0: lea ecx, [ebp - 0x18] */
   1506     RECOMP_BACKEDGE();
   1507     goto L_470810C0; /* 0x470A69B3: jmp 0x470810c0 */
   1508     { RECOMP_REGS_OUT(); return; } /* end of function */
   1509     RECOMP_REGS_OUT();
   1510 }
   1511 
   1512 void sub_470A69B8(void) {
   1513     int _fpu_cmp = 0;
   1514     uint32_t _cf = 0;
   1515     int _df = 1;
   1516     uint32_t _flag_k = FK_NONE;
   1517     uint32_t _flag_a = 0, _flag_b = 0;
   1518     uint32_t _itail_tgt = 0;
   1519     RECOMP_REGS_LOCALS
   1520     RECOMP_ENTER(0x470A69B8u);
   1521 
   1522     goto L_470A69B8;
   1523 L_470A33EC:
   1524     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1525 L_470A69B8:
   1526     eax = 0x470B4168u; /* 0x470A69B8: mov eax, 0x470b4168 */
   1527 L_470A69BD:
   1528     RECOMP_BACKEDGE();
   1529     goto L_470A33EC; /* 0x470A69BD: jmp 0x470a33ec */
   1530     { RECOMP_REGS_OUT(); return; } /* end of function */
   1531   _ljump:
   1532     switch (_itail_tgt) {
   1533       case 0x470A33ECu: goto L_470A33EC;
   1534       case 0x470A69B8u: goto L_470A69B8;
   1535       case 0x470A69BDu: goto L_470A69BD;
   1536       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1537     }
   1538     RECOMP_REGS_OUT();
   1539 }
   1540 
   1541 void sub_470A69D0(void) {
   1542     int _fpu_cmp = 0;
   1543     uint32_t _cf = 0;
   1544     int _df = 1;
   1545     uint32_t _flag_k = FK_NONE;
   1546     uint32_t _flag_a = 0, _flag_b = 0;
   1547     uint32_t _itail_tgt = 0;
   1548     RECOMP_REGS_LOCALS
   1549     RECOMP_ENTER(0x470A69D0u);
   1550 
   1551     goto L_470A69D0;
   1552 L_470810C0:
   1553     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1554     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1555     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1556     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1557     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1558     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1559     RECOMP_FLAGS_IN();
   1560     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1561 L_470A69D0:
   1562     ecx = ebp + (-0x18); /* 0x470A69D0: lea ecx, [ebp - 0x18] */
   1563     RECOMP_BACKEDGE();
   1564     goto L_470810C0; /* 0x470A69D3: jmp 0x470810c0 */
   1565     { RECOMP_REGS_OUT(); return; } /* end of function */
   1566     RECOMP_REGS_OUT();
   1567 }
   1568 
   1569 void sub_470A69D8(void) {
   1570     int _fpu_cmp = 0;
   1571     uint32_t _cf = 0;
   1572     int _df = 1;
   1573     uint32_t _flag_k = FK_NONE;
   1574     uint32_t _flag_a = 0, _flag_b = 0;
   1575     uint32_t _itail_tgt = 0;
   1576     RECOMP_REGS_LOCALS
   1577     RECOMP_ENTER(0x470A69D8u);
   1578 
   1579     goto L_470A69D8;
   1580 L_470A33EC:
   1581     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1582 L_470A69D8:
   1583     eax = 0x470B4190u; /* 0x470A69D8: mov eax, 0x470b4190 */
   1584 L_470A69DD:
   1585     RECOMP_BACKEDGE();
   1586     goto L_470A33EC; /* 0x470A69DD: jmp 0x470a33ec */
   1587     { RECOMP_REGS_OUT(); return; } /* end of function */
   1588   _ljump:
   1589     switch (_itail_tgt) {
   1590       case 0x470A33ECu: goto L_470A33EC;
   1591       case 0x470A69D8u: goto L_470A69D8;
   1592       case 0x470A69DDu: goto L_470A69DD;
   1593       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1594     }
   1595     RECOMP_REGS_OUT();
   1596 }
   1597 
   1598 void sub_470A69F0(void) {
   1599     int _fpu_cmp = 0;
   1600     uint32_t _cf = 0;
   1601     int _df = 1;
   1602     uint32_t _flag_k = FK_NONE;
   1603     uint32_t _flag_a = 0, _flag_b = 0;
   1604     uint32_t _itail_tgt = 0;
   1605     RECOMP_REGS_LOCALS
   1606     RECOMP_ENTER(0x470A69F0u);
   1607 
   1608     goto L_470A69F0;
   1609 L_470810C0:
   1610     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1611     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1612     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1613     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1614     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1615     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1616     RECOMP_FLAGS_IN();
   1617     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1618 L_470A69F0:
   1619     ecx = ebp + (-0x18); /* 0x470A69F0: lea ecx, [ebp - 0x18] */
   1620     RECOMP_BACKEDGE();
   1621     goto L_470810C0; /* 0x470A69F3: jmp 0x470810c0 */
   1622     { RECOMP_REGS_OUT(); return; } /* end of function */
   1623     RECOMP_REGS_OUT();
   1624 }
   1625 
   1626 void sub_470A69F8(void) {
   1627     int _fpu_cmp = 0;
   1628     uint32_t _cf = 0;
   1629     int _df = 1;
   1630     uint32_t _flag_k = FK_NONE;
   1631     uint32_t _flag_a = 0, _flag_b = 0;
   1632     uint32_t _itail_tgt = 0;
   1633     RECOMP_REGS_LOCALS
   1634     RECOMP_ENTER(0x470A69F8u);
   1635 
   1636     goto L_470A69F8;
   1637 L_470A33EC:
   1638     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1639 L_470A69F8:
   1640     eax = 0x470B41B8u; /* 0x470A69F8: mov eax, 0x470b41b8 */
   1641 L_470A69FD:
   1642     RECOMP_BACKEDGE();
   1643     goto L_470A33EC; /* 0x470A69FD: jmp 0x470a33ec */
   1644     { RECOMP_REGS_OUT(); return; } /* end of function */
   1645   _ljump:
   1646     switch (_itail_tgt) {
   1647       case 0x470A33ECu: goto L_470A33EC;
   1648       case 0x470A69F8u: goto L_470A69F8;
   1649       case 0x470A69FDu: goto L_470A69FD;
   1650       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1651     }
   1652     RECOMP_REGS_OUT();
   1653 }
   1654 
   1655 void sub_470A6A10(void) {
   1656     int _fpu_cmp = 0;
   1657     uint32_t _cf = 0;
   1658     int _df = 1;
   1659     uint32_t _flag_k = FK_NONE;
   1660     uint32_t _flag_a = 0, _flag_b = 0;
   1661     uint32_t _itail_tgt = 0;
   1662     RECOMP_REGS_LOCALS
   1663     RECOMP_ENTER(0x470A6A10u);
   1664 
   1665     goto L_470A6A10;
   1666 L_470810C0:
   1667     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1668     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1669     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1670     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1671     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1672     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1673     RECOMP_FLAGS_IN();
   1674     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1675 L_470A6A10:
   1676     ecx = ebp + (-0x18); /* 0x470A6A10: lea ecx, [ebp - 0x18] */
   1677     RECOMP_BACKEDGE();
   1678     goto L_470810C0; /* 0x470A6A13: jmp 0x470810c0 */
   1679     { RECOMP_REGS_OUT(); return; } /* end of function */
   1680     RECOMP_REGS_OUT();
   1681 }
   1682 
   1683 void sub_470A6A18(void) {
   1684     int _fpu_cmp = 0;
   1685     uint32_t _cf = 0;
   1686     int _df = 1;
   1687     uint32_t _flag_k = FK_NONE;
   1688     uint32_t _flag_a = 0, _flag_b = 0;
   1689     uint32_t _itail_tgt = 0;
   1690     RECOMP_REGS_LOCALS
   1691     RECOMP_ENTER(0x470A6A18u);
   1692 
   1693     goto L_470A6A18;
   1694 L_470A33EC:
   1695     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1696 L_470A6A18:
   1697     eax = 0x470B41E0u; /* 0x470A6A18: mov eax, 0x470b41e0 */
   1698 L_470A6A1D:
   1699     RECOMP_BACKEDGE();
   1700     goto L_470A33EC; /* 0x470A6A1D: jmp 0x470a33ec */
   1701     { RECOMP_REGS_OUT(); return; } /* end of function */
   1702   _ljump:
   1703     switch (_itail_tgt) {
   1704       case 0x470A33ECu: goto L_470A33EC;
   1705       case 0x470A6A18u: goto L_470A6A18;
   1706       case 0x470A6A1Du: goto L_470A6A1D;
   1707       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1708     }
   1709     RECOMP_REGS_OUT();
   1710 }
   1711 
   1712 void sub_470A6A30(void) {
   1713     int _fpu_cmp = 0;
   1714     uint32_t _cf = 0;
   1715     int _df = 1;
   1716     uint32_t _flag_k = FK_NONE;
   1717     uint32_t _flag_a = 0, _flag_b = 0;
   1718     uint32_t _itail_tgt = 0;
   1719     RECOMP_REGS_LOCALS
   1720     RECOMP_ENTER(0x470A6A30u);
   1721 
   1722     goto L_470A6A30;
   1723 L_47076DD0:
   1724     PUSH32(esp, 0xFFFFFFFFu); /* 0x47076DD0: push -1 */
   1725     PUSH32(esp, 0x470A9588u); /* 0x47076DD2: push 0x470a9588 */
   1726     eax = MEM32(FS_BASE + (0)); /* 0x47076DD7: mov eax, dword ptr fs:[0] */
   1727     PUSH32(esp, eax); /* 0x47076DDD: push eax */
   1728     MEM32(FS_BASE + (0)) = esp; /* 0x47076DDE: mov dword ptr fs:[0], esp */
   1729     PUSH32(esp, ecx); /* 0x47076DE5: push ecx */
   1730     PUSH32(esp, esi); /* 0x47076DE6: push esi */
   1731     esi = ecx; /* 0x47076DE7: mov esi, ecx */
   1732     eax = esi + 0xC; /* 0x47076DE9: lea eax, [esi + 0xc] */
   1733     MEM32(esp + 0x4) = esi; /* 0x47076DEC: mov dword ptr [esp + 4], esi */
   1734     MEM32(esi) = 0x470AC820u; /* 0x47076DF0: mov dword ptr [esi], 0x470ac820 */
   1735     MEM32(eax) = 0x470AC810u; /* 0x47076DF6: mov dword ptr [eax], 0x470ac810 */
   1736     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1737     _cf = (ecx) != 0;
   1738     ecx = (uint32_t)(-(int32_t)ecx); /* 0x47076DFC: neg ecx */
   1739     _flag_k = FK_CMP;
   1740     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x47076DFE: sbb ecx, ecx */
   1741       ecx = _sc ? 0xFFFFFFFFu : 0;
   1742       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1743       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1744     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1745     ecx = ecx & eax; /* 0x47076E00: and ecx, eax */
   1746     _cf = 0;
   1747     _flag_k = FK_TEST;
   1748     MEM32(esp + 0x10) = 0; /* 0x47076E02: mov dword ptr [esp + 0x10], 0 */
   1749     RECOMP_ICALL(0x47078B30u); /* 0x47076E0A: call 0x47078b30 */ /* not lifted */
   1750     RECOMP_FLAGS_IN();
   1751     ecx = esi; /* 0x47076E0F: mov ecx, esi */
   1752     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47076E11: mov dword ptr [esp + 0x10], 0xffffffff */
   1753     RECOMP_ICALL(0x4702A7B0u); /* 0x47076E19: call 0x4702a7b0 */ /* not lifted */
   1754     RECOMP_FLAGS_IN();
   1755     ecx = MEM32(esp + 0x8); /* 0x47076E1E: mov ecx, dword ptr [esp + 8] */
   1756     esi = POP32_VAL(esp); /* 0x47076E22: pop esi */
   1757     MEM32(FS_BASE + (0)) = ecx; /* 0x47076E23: mov dword ptr fs:[0], ecx */
   1758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1760     esp = esp + 0x10u; /* 0x47076E2A: add esp, 0x10 */
   1761     _flag_k = FK_ADD;
   1762     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47076E2D: ret  */
   1763 L_470A6A30:
   1764     ecx = MEM32(ebp + (-0x10)); /* 0x470A6A30: mov ecx, dword ptr [ebp - 0x10] */
   1765     RECOMP_BACKEDGE();
   1766     goto L_47076DD0; /* 0x470A6A33: jmp 0x47076dd0 */
   1767     { RECOMP_REGS_OUT(); return; } /* end of function */
   1768     RECOMP_REGS_OUT();
   1769 }
   1770 
   1771 void sub_470A6A38(void) {
   1772     int _fpu_cmp = 0;
   1773     uint32_t _cf = 0;
   1774     int _df = 1;
   1775     uint32_t _flag_k = FK_NONE;
   1776     uint32_t _flag_a = 0, _flag_b = 0;
   1777     uint32_t _itail_tgt = 0;
   1778     RECOMP_REGS_LOCALS
   1779     RECOMP_ENTER(0x470A6A38u);
   1780 
   1781     goto L_470A6A38;
   1782 L_470A33EC:
   1783     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1784 L_470A6A38:
   1785     eax = 0x470B4208u; /* 0x470A6A38: mov eax, 0x470b4208 */
   1786 L_470A6A3D:
   1787     RECOMP_BACKEDGE();
   1788     goto L_470A33EC; /* 0x470A6A3D: jmp 0x470a33ec */
   1789     { RECOMP_REGS_OUT(); return; } /* end of function */
   1790   _ljump:
   1791     switch (_itail_tgt) {
   1792       case 0x470A33ECu: goto L_470A33EC;
   1793       case 0x470A6A38u: goto L_470A6A38;
   1794       case 0x470A6A3Du: goto L_470A6A3D;
   1795       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1796     }
   1797     RECOMP_REGS_OUT();
   1798 }
   1799 
   1800 void sub_470A6A50(void) {
   1801     int _fpu_cmp = 0;
   1802     uint32_t _cf = 0;
   1803     int _df = 1;
   1804     uint32_t _flag_k = FK_NONE;
   1805     uint32_t _flag_a = 0, _flag_b = 0;
   1806     uint32_t _itail_tgt = 0;
   1807     RECOMP_REGS_LOCALS
   1808     RECOMP_ENTER(0x470A6A50u);
   1809 
   1810     goto L_470A6A50;
   1811 L_470041D0:
   1812     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470041D0: ret  */
   1813 L_470A6A50:
   1814     ecx = ebp + (-0x28); /* 0x470A6A50: lea ecx, [ebp - 0x28] */
   1815     RECOMP_BACKEDGE();
   1816     goto L_470041D0; /* 0x470A6A53: jmp 0x470041d0 */
   1817     { RECOMP_REGS_OUT(); return; } /* end of function */
   1818     RECOMP_REGS_OUT();
   1819 }
   1820 
   1821 void sub_470A6A58(void) {
   1822     int _fpu_cmp = 0;
   1823     uint32_t _cf = 0;
   1824     int _df = 1;
   1825     uint32_t _flag_k = FK_NONE;
   1826     uint32_t _flag_a = 0, _flag_b = 0;
   1827     uint32_t _itail_tgt = 0;
   1828     RECOMP_REGS_LOCALS
   1829     RECOMP_ENTER(0x470A6A58u);
   1830 
   1831     goto L_470A6A58;
   1832 L_470A33EC:
   1833     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1834 L_470A6A58:
   1835     eax = 0x470B4230u; /* 0x470A6A58: mov eax, 0x470b4230 */
   1836 L_470A6A5D:
   1837     RECOMP_BACKEDGE();
   1838     goto L_470A33EC; /* 0x470A6A5D: jmp 0x470a33ec */
   1839     { RECOMP_REGS_OUT(); return; } /* end of function */
   1840   _ljump:
   1841     switch (_itail_tgt) {
   1842       case 0x470A33ECu: goto L_470A33EC;
   1843       case 0x470A6A58u: goto L_470A6A58;
   1844       case 0x470A6A5Du: goto L_470A6A5D;
   1845       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1846     }
   1847     RECOMP_REGS_OUT();
   1848 }
   1849 
   1850 void sub_470A6A70(void) {
   1851     int _fpu_cmp = 0;
   1852     uint32_t _cf = 0;
   1853     int _df = 1;
   1854     uint32_t _flag_k = FK_NONE;
   1855     uint32_t _flag_a = 0, _flag_b = 0;
   1856     uint32_t _itail_tgt = 0;
   1857     RECOMP_REGS_LOCALS
   1858     RECOMP_ENTER(0x470A6A70u);
   1859 
   1860     goto L_470A6A70;
   1861 L_4704DAE0:
   1862     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   1863     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1864     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   1865     _cf = 0;
   1866     _flag_k = FK_TEST;
   1867     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   1868     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1870     _flag_k = FK_CMP;
   1871     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   1872 L_4704DAEA:
   1873     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   1874     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   1875     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   1876     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   1877     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   1878     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   1879     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   1880     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   1881     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   1882     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   1883     RECOMP_FLAGS_IN();
   1884     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   1885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1886     _cf = 0;
   1887     _flag_k = FK_TEST;
   1888     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   1889 L_4704DB0C:
   1890     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   1891     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   1892     RECOMP_FLAGS_IN();
   1893     esi = eax; /* 0x4704DB13: mov esi, eax */
   1894     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   1895     RECOMP_FLAGS_IN();
   1896     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   1897     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   1898 L_4704DB1E:
   1899     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   1900 L_470A6A70:
   1901     ecx = ebp + (-0x14); /* 0x470A6A70: lea ecx, [ebp - 0x14] */
   1902     RECOMP_BACKEDGE();
   1903     goto L_4704DAE0; /* 0x470A6A73: jmp 0x4704dae0 */
   1904     { RECOMP_REGS_OUT(); return; } /* end of function */
   1905     RECOMP_REGS_OUT();
   1906 }
   1907 
   1908 void sub_470A6A78(void) {
   1909     int _fpu_cmp = 0;
   1910     uint32_t _cf = 0;
   1911     int _df = 1;
   1912     uint32_t _flag_k = FK_NONE;
   1913     uint32_t _flag_a = 0, _flag_b = 0;
   1914     uint32_t _itail_tgt = 0;
   1915     RECOMP_REGS_LOCALS
   1916     RECOMP_ENTER(0x470A6A78u);
   1917 
   1918     goto L_470A6A78;
   1919 L_470A33EC:
   1920     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1921 L_470A6A78:
   1922     eax = 0x470B4258u; /* 0x470A6A78: mov eax, 0x470b4258 */
   1923 L_470A6A7D:
   1924     RECOMP_BACKEDGE();
   1925     goto L_470A33EC; /* 0x470A6A7D: jmp 0x470a33ec */
   1926     { RECOMP_REGS_OUT(); return; } /* end of function */
   1927   _ljump:
   1928     switch (_itail_tgt) {
   1929       case 0x470A33ECu: goto L_470A33EC;
   1930       case 0x470A6A78u: goto L_470A6A78;
   1931       case 0x470A6A7Du: goto L_470A6A7D;
   1932       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1933     }
   1934     RECOMP_REGS_OUT();
   1935 }
   1936 
   1937 void sub_470A6A90(void) {
   1938     int _fpu_cmp = 0;
   1939     uint32_t _cf = 0;
   1940     int _df = 1;
   1941     uint32_t _flag_k = FK_NONE;
   1942     uint32_t _flag_a = 0, _flag_b = 0;
   1943     uint32_t _itail_tgt = 0;
   1944     RECOMP_REGS_LOCALS
   1945     RECOMP_ENTER(0x470A6A90u);
   1946 
   1947     goto L_470A6A90;
   1948 L_4704DAE0:
   1949     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   1950     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1951     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   1952     _cf = 0;
   1953     _flag_k = FK_TEST;
   1954     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   1955     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1957     _flag_k = FK_CMP;
   1958     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   1959 L_4704DAEA:
   1960     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   1961     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   1962     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   1963     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   1964     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   1965     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   1966     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   1967     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   1968     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   1969     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   1970     RECOMP_FLAGS_IN();
   1971     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   1972     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1973     _cf = 0;
   1974     _flag_k = FK_TEST;
   1975     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   1976 L_4704DB0C:
   1977     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   1978     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   1979     RECOMP_FLAGS_IN();
   1980     esi = eax; /* 0x4704DB13: mov esi, eax */
   1981     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   1982     RECOMP_FLAGS_IN();
   1983     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   1984     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   1985 L_4704DB1E:
   1986     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   1987 L_470A6A90:
   1988     ecx = ebp + (-0x14); /* 0x470A6A90: lea ecx, [ebp - 0x14] */
   1989     RECOMP_BACKEDGE();
   1990     goto L_4704DAE0; /* 0x470A6A93: jmp 0x4704dae0 */
   1991     { RECOMP_REGS_OUT(); return; } /* end of function */
   1992     RECOMP_REGS_OUT();
   1993 }
   1994 
   1995 void sub_470A6A98(void) {
   1996     int _fpu_cmp = 0;
   1997     uint32_t _cf = 0;
   1998     int _df = 1;
   1999     uint32_t _flag_k = FK_NONE;
   2000     uint32_t _flag_a = 0, _flag_b = 0;
   2001     uint32_t _itail_tgt = 0;
   2002     RECOMP_REGS_LOCALS
   2003     RECOMP_ENTER(0x470A6A98u);
   2004 
   2005     goto L_470A6A98;
   2006 L_470A33EC:
   2007     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2008 L_470A6A98:
   2009     eax = 0x470B4280u; /* 0x470A6A98: mov eax, 0x470b4280 */
   2010 L_470A6A9D:
   2011     RECOMP_BACKEDGE();
   2012     goto L_470A33EC; /* 0x470A6A9D: jmp 0x470a33ec */
   2013     { RECOMP_REGS_OUT(); return; } /* end of function */
   2014   _ljump:
   2015     switch (_itail_tgt) {
   2016       case 0x470A33ECu: goto L_470A33EC;
   2017       case 0x470A6A98u: goto L_470A6A98;
   2018       case 0x470A6A9Du: goto L_470A6A9D;
   2019       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2020     }
   2021     RECOMP_REGS_OUT();
   2022 }
   2023 
   2024 void sub_470A6AB0(void) {
   2025     int _fpu_cmp = 0;
   2026     uint32_t _cf = 0;
   2027     int _df = 1;
   2028     uint32_t _flag_k = FK_NONE;
   2029     uint32_t _flag_a = 0, _flag_b = 0;
   2030     uint32_t _itail_tgt = 0;
   2031     RECOMP_REGS_LOCALS
   2032     RECOMP_ENTER(0x470A6AB0u);
   2033 
   2034     goto L_470A6AB0;
   2035 L_4704DAE0:
   2036     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2037     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2038     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2039     _cf = 0;
   2040     _flag_k = FK_TEST;
   2041     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2042     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2044     _flag_k = FK_CMP;
   2045     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2046 L_4704DAEA:
   2047     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2048     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2049     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2050     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2051     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2052     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2053     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2054     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2055     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2056     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2057     RECOMP_FLAGS_IN();
   2058     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2060     _cf = 0;
   2061     _flag_k = FK_TEST;
   2062     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2063 L_4704DB0C:
   2064     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2065     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2066     RECOMP_FLAGS_IN();
   2067     esi = eax; /* 0x4704DB13: mov esi, eax */
   2068     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2069     RECOMP_FLAGS_IN();
   2070     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2071     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2072 L_4704DB1E:
   2073     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2074 L_470A6AB0:
   2075     ecx = ebp + (-0x28); /* 0x470A6AB0: lea ecx, [ebp - 0x28] */
   2076     RECOMP_BACKEDGE();
   2077     goto L_4704DAE0; /* 0x470A6AB3: jmp 0x4704dae0 */
   2078     { RECOMP_REGS_OUT(); return; } /* end of function */
   2079     RECOMP_REGS_OUT();
   2080 }
   2081 
   2082 void sub_470A6AB8(void) {
   2083     int _fpu_cmp = 0;
   2084     uint32_t _cf = 0;
   2085     int _df = 1;
   2086     uint32_t _flag_k = FK_NONE;
   2087     uint32_t _flag_a = 0, _flag_b = 0;
   2088     uint32_t _itail_tgt = 0;
   2089     RECOMP_REGS_LOCALS
   2090     RECOMP_ENTER(0x470A6AB8u);
   2091 
   2092     goto L_470A6AB8;
   2093 L_470A33EC:
   2094     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2095 L_470A6AB8:
   2096     eax = 0x470B42A8u; /* 0x470A6AB8: mov eax, 0x470b42a8 */
   2097 L_470A6ABD:
   2098     RECOMP_BACKEDGE();
   2099     goto L_470A33EC; /* 0x470A6ABD: jmp 0x470a33ec */
   2100     { RECOMP_REGS_OUT(); return; } /* end of function */
   2101   _ljump:
   2102     switch (_itail_tgt) {
   2103       case 0x470A33ECu: goto L_470A33EC;
   2104       case 0x470A6AB8u: goto L_470A6AB8;
   2105       case 0x470A6ABDu: goto L_470A6ABD;
   2106       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2107     }
   2108     RECOMP_REGS_OUT();
   2109 }
   2110 
   2111 void sub_470A6AD0(void) {
   2112     int _fpu_cmp = 0;
   2113     uint32_t _cf = 0;
   2114     int _df = 1;
   2115     uint32_t _flag_k = FK_NONE;
   2116     uint32_t _flag_a = 0, _flag_b = 0;
   2117     uint32_t _itail_tgt = 0;
   2118     RECOMP_REGS_LOCALS
   2119     RECOMP_ENTER(0x470A6AD0u);
   2120 
   2121     goto L_470A6AD0;
   2122 L_4704DAE0:
   2123     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2124     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2125     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2126     _cf = 0;
   2127     _flag_k = FK_TEST;
   2128     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2129     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2131     _flag_k = FK_CMP;
   2132     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2133 L_4704DAEA:
   2134     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2135     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2136     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2137     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2138     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2139     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2140     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2141     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2142     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2143     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2144     RECOMP_FLAGS_IN();
   2145     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2147     _cf = 0;
   2148     _flag_k = FK_TEST;
   2149     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2150 L_4704DB0C:
   2151     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2152     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2153     RECOMP_FLAGS_IN();
   2154     esi = eax; /* 0x4704DB13: mov esi, eax */
   2155     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2156     RECOMP_FLAGS_IN();
   2157     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2158     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2159 L_4704DB1E:
   2160     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2161 L_470A6AD0:
   2162     ecx = ebp + (-0x28); /* 0x470A6AD0: lea ecx, [ebp - 0x28] */
   2163     RECOMP_BACKEDGE();
   2164     goto L_4704DAE0; /* 0x470A6AD3: jmp 0x4704dae0 */
   2165     { RECOMP_REGS_OUT(); return; } /* end of function */
   2166     RECOMP_REGS_OUT();
   2167 }
   2168 
   2169 void sub_470A6AD8(void) {
   2170     int _fpu_cmp = 0;
   2171     uint32_t _cf = 0;
   2172     int _df = 1;
   2173     uint32_t _flag_k = FK_NONE;
   2174     uint32_t _flag_a = 0, _flag_b = 0;
   2175     uint32_t _itail_tgt = 0;
   2176     RECOMP_REGS_LOCALS
   2177     RECOMP_ENTER(0x470A6AD8u);
   2178 
   2179     goto L_470A6AD8;
   2180 L_470810C0:
   2181     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2182     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2183     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2184     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2185     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2186     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2187     RECOMP_FLAGS_IN();
   2188     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2189 L_470A6AD8:
   2190     ecx = ebp + (-0x3C); /* 0x470A6AD8: lea ecx, [ebp - 0x3c] */
   2191     RECOMP_BACKEDGE();
   2192     goto L_470810C0; /* 0x470A6ADB: jmp 0x470810c0 */
   2193     { RECOMP_REGS_OUT(); return; } /* end of function */
   2194     RECOMP_REGS_OUT();
   2195 }
   2196 
   2197 void sub_470A6AE0(void) {
   2198     int _fpu_cmp = 0;
   2199     uint32_t _cf = 0;
   2200     int _df = 1;
   2201     uint32_t _flag_k = FK_NONE;
   2202     uint32_t _flag_a = 0, _flag_b = 0;
   2203     uint32_t _itail_tgt = 0;
   2204     RECOMP_REGS_LOCALS
   2205     RECOMP_ENTER(0x470A6AE0u);
   2206 
   2207     goto L_470A6AE0;
   2208 L_470A33EC:
   2209     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2210 L_470A6AE0:
   2211     eax = 0x470B42D0u; /* 0x470A6AE0: mov eax, 0x470b42d0 */
   2212 L_470A6AE5:
   2213     RECOMP_BACKEDGE();
   2214     goto L_470A33EC; /* 0x470A6AE5: jmp 0x470a33ec */
   2215     { RECOMP_REGS_OUT(); return; } /* end of function */
   2216   _ljump:
   2217     switch (_itail_tgt) {
   2218       case 0x470A33ECu: goto L_470A33EC;
   2219       case 0x470A6AE0u: goto L_470A6AE0;
   2220       case 0x470A6AE5u: goto L_470A6AE5;
   2221       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2222     }
   2223     RECOMP_REGS_OUT();
   2224 }
   2225 
   2226 void sub_470A6AF0(void) {
   2227     int _fpu_cmp = 0;
   2228     uint32_t _cf = 0;
   2229     int _df = 1;
   2230     uint32_t _flag_k = FK_NONE;
   2231     uint32_t _flag_a = 0, _flag_b = 0;
   2232     uint32_t _itail_tgt = 0;
   2233     RECOMP_REGS_LOCALS
   2234     RECOMP_ENTER(0x470A6AF0u);
   2235 
   2236     goto L_470A6AF0;
   2237 L_4704DAE0:
   2238     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2239     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2240     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2241     _cf = 0;
   2242     _flag_k = FK_TEST;
   2243     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2244     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2246     _flag_k = FK_CMP;
   2247     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2248 L_4704DAEA:
   2249     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2250     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2251     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2252     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2253     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2254     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2255     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2256     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2257     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2258     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2259     RECOMP_FLAGS_IN();
   2260     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2261     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2262     _cf = 0;
   2263     _flag_k = FK_TEST;
   2264     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2265 L_4704DB0C:
   2266     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2267     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2268     RECOMP_FLAGS_IN();
   2269     esi = eax; /* 0x4704DB13: mov esi, eax */
   2270     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2271     RECOMP_FLAGS_IN();
   2272     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2273     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2274 L_4704DB1E:
   2275     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2276 L_470A6AF0:
   2277     ecx = ebp + (-0x40); /* 0x470A6AF0: lea ecx, [ebp - 0x40] */
   2278     RECOMP_BACKEDGE();
   2279     goto L_4704DAE0; /* 0x470A6AF3: jmp 0x4704dae0 */
   2280     { RECOMP_REGS_OUT(); return; } /* end of function */
   2281     RECOMP_REGS_OUT();
   2282 }
   2283 
   2284 void sub_470A6AF8(void) {
   2285     int _fpu_cmp = 0;
   2286     uint32_t _cf = 0;
   2287     int _df = 1;
   2288     uint32_t _flag_k = FK_NONE;
   2289     uint32_t _flag_a = 0, _flag_b = 0;
   2290     uint32_t _itail_tgt = 0;
   2291     RECOMP_REGS_LOCALS
   2292     RECOMP_ENTER(0x470A6AF8u);
   2293 
   2294     goto L_470A6AF8;
   2295 L_470810C0:
   2296     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2297     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2298     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2299     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2300     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2301     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2302     RECOMP_FLAGS_IN();
   2303     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2304 L_470A6AF8:
   2305     ecx = ebp + (-0x18); /* 0x470A6AF8: lea ecx, [ebp - 0x18] */
   2306     RECOMP_BACKEDGE();
   2307     goto L_470810C0; /* 0x470A6AFB: jmp 0x470810c0 */
   2308     { RECOMP_REGS_OUT(); return; } /* end of function */
   2309     RECOMP_REGS_OUT();
   2310 }
   2311 
   2312 void sub_470A6B00(void) {
   2313     int _fpu_cmp = 0;
   2314     uint32_t _cf = 0;
   2315     int _df = 1;
   2316     uint32_t _flag_k = FK_NONE;
   2317     uint32_t _flag_a = 0, _flag_b = 0;
   2318     uint32_t _itail_tgt = 0;
   2319     RECOMP_REGS_LOCALS
   2320     RECOMP_ENTER(0x470A6B00u);
   2321 
   2322     goto L_470A6B00;
   2323 L_470810C0:
   2324     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2325     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2326     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2327     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2328     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2329     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2330     RECOMP_FLAGS_IN();
   2331     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2332 L_470A6B00:
   2333     ecx = ebp + (-0x30); /* 0x470A6B00: lea ecx, [ebp - 0x30] */
   2334     RECOMP_BACKEDGE();
   2335     goto L_470810C0; /* 0x470A6B03: jmp 0x470810c0 */
   2336     { RECOMP_REGS_OUT(); return; } /* end of function */
   2337     RECOMP_REGS_OUT();
   2338 }
   2339 
   2340 void sub_470A6B08(void) {
   2341     int _fpu_cmp = 0;
   2342     uint32_t _cf = 0;
   2343     int _df = 1;
   2344     uint32_t _flag_k = FK_NONE;
   2345     uint32_t _flag_a = 0, _flag_b = 0;
   2346     uint32_t _itail_tgt = 0;
   2347     RECOMP_REGS_LOCALS
   2348     RECOMP_ENTER(0x470A6B08u);
   2349 
   2350     goto L_470A6B08;
   2351 L_470A33EC:
   2352     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2353 L_470A6B08:
   2354     eax = 0x470B4300u; /* 0x470A6B08: mov eax, 0x470b4300 */
   2355 L_470A6B0D:
   2356     RECOMP_BACKEDGE();
   2357     goto L_470A33EC; /* 0x470A6B0D: jmp 0x470a33ec */
   2358     { RECOMP_REGS_OUT(); return; } /* end of function */
   2359   _ljump:
   2360     switch (_itail_tgt) {
   2361       case 0x470A33ECu: goto L_470A33EC;
   2362       case 0x470A6B08u: goto L_470A6B08;
   2363       case 0x470A6B0Du: goto L_470A6B0D;
   2364       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2365     }
   2366     RECOMP_REGS_OUT();
   2367 }
   2368 
   2369 void sub_470A6B20(void) {
   2370     int _fpu_cmp = 0;
   2371     uint32_t _cf = 0;
   2372     int _df = 1;
   2373     uint32_t _flag_k = FK_NONE;
   2374     uint32_t _flag_a = 0, _flag_b = 0;
   2375     uint32_t _itail_tgt = 0;
   2376     RECOMP_REGS_LOCALS
   2377     RECOMP_ENTER(0x470A6B20u);
   2378 
   2379     goto L_470A6B20;
   2380 L_4704DAE0:
   2381     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2382     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2383     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2384     _cf = 0;
   2385     _flag_k = FK_TEST;
   2386     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2387     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2389     _flag_k = FK_CMP;
   2390     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2391 L_4704DAEA:
   2392     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2393     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2394     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2395     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2396     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2397     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2398     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2399     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2400     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2401     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2402     RECOMP_FLAGS_IN();
   2403     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2405     _cf = 0;
   2406     _flag_k = FK_TEST;
   2407     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2408 L_4704DB0C:
   2409     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2410     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2411     RECOMP_FLAGS_IN();
   2412     esi = eax; /* 0x4704DB13: mov esi, eax */
   2413     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2414     RECOMP_FLAGS_IN();
   2415     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2416     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2417 L_4704DB1E:
   2418     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2419 L_470A6B20:
   2420     ecx = ebp + (-0x50); /* 0x470A6B20: lea ecx, [ebp - 0x50] */
   2421     RECOMP_BACKEDGE();
   2422     goto L_4704DAE0; /* 0x470A6B23: jmp 0x4704dae0 */
   2423     { RECOMP_REGS_OUT(); return; } /* end of function */
   2424     RECOMP_REGS_OUT();
   2425 }
   2426 
   2427 void sub_470A6B28(void) {
   2428     int _fpu_cmp = 0;
   2429     uint32_t _cf = 0;
   2430     int _df = 1;
   2431     uint32_t _flag_k = FK_NONE;
   2432     uint32_t _flag_a = 0, _flag_b = 0;
   2433     uint32_t _itail_tgt = 0;
   2434     RECOMP_REGS_LOCALS
   2435     RECOMP_ENTER(0x470A6B28u);
   2436 
   2437     goto L_470A6B28;
   2438 L_470810C0:
   2439     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2440     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2441     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2442     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2443     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2444     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2445     RECOMP_FLAGS_IN();
   2446     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2447 L_470A6B28:
   2448     ecx = ebp + (-0x18); /* 0x470A6B28: lea ecx, [ebp - 0x18] */
   2449     RECOMP_BACKEDGE();
   2450     goto L_470810C0; /* 0x470A6B2B: jmp 0x470810c0 */
   2451     { RECOMP_REGS_OUT(); return; } /* end of function */
   2452     RECOMP_REGS_OUT();
   2453 }
   2454 
   2455 void sub_470A6B30(void) {
   2456     int _fpu_cmp = 0;
   2457     uint32_t _cf = 0;
   2458     int _df = 1;
   2459     uint32_t _flag_k = FK_NONE;
   2460     uint32_t _flag_a = 0, _flag_b = 0;
   2461     uint32_t _itail_tgt = 0;
   2462     RECOMP_REGS_LOCALS
   2463     RECOMP_ENTER(0x470A6B30u);
   2464 
   2465     goto L_470A6B30;
   2466 L_470810C0:
   2467     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2468     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2469     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2470     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2471     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2472     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2473     RECOMP_FLAGS_IN();
   2474     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2475 L_470A6B30:
   2476     ecx = ebp + (-0x30); /* 0x470A6B30: lea ecx, [ebp - 0x30] */
   2477     RECOMP_BACKEDGE();
   2478     goto L_470810C0; /* 0x470A6B33: jmp 0x470810c0 */
   2479     { RECOMP_REGS_OUT(); return; } /* end of function */
   2480     RECOMP_REGS_OUT();
   2481 }
   2482 
   2483 void sub_470A6B38(void) {
   2484     int _fpu_cmp = 0;
   2485     uint32_t _cf = 0;
   2486     int _df = 1;
   2487     uint32_t _flag_k = FK_NONE;
   2488     uint32_t _flag_a = 0, _flag_b = 0;
   2489     uint32_t _itail_tgt = 0;
   2490     RECOMP_REGS_LOCALS
   2491     RECOMP_ENTER(0x470A6B38u);
   2492 
   2493     goto L_470A6B38;
   2494 L_470A33EC:
   2495     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2496 L_470A6B38:
   2497     eax = 0x470B4340u; /* 0x470A6B38: mov eax, 0x470b4340 */
   2498 L_470A6B3D:
   2499     RECOMP_BACKEDGE();
   2500     goto L_470A33EC; /* 0x470A6B3D: jmp 0x470a33ec */
   2501     { RECOMP_REGS_OUT(); return; } /* end of function */
   2502   _ljump:
   2503     switch (_itail_tgt) {
   2504       case 0x470A33ECu: goto L_470A33EC;
   2505       case 0x470A6B38u: goto L_470A6B38;
   2506       case 0x470A6B3Du: goto L_470A6B3D;
   2507       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2508     }
   2509     RECOMP_REGS_OUT();
   2510 }
   2511 
   2512 void sub_470A6B50(void) {
   2513     int _fpu_cmp = 0;
   2514     uint32_t _cf = 0;
   2515     int _df = 1;
   2516     uint32_t _flag_k = FK_NONE;
   2517     uint32_t _flag_a = 0, _flag_b = 0;
   2518     uint32_t _itail_tgt = 0;
   2519     RECOMP_REGS_LOCALS
   2520     RECOMP_ENTER(0x470A6B50u);
   2521 
   2522     goto L_470A6B50;
   2523 L_4704DAE0:
   2524     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2525     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2526     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2527     _cf = 0;
   2528     _flag_k = FK_TEST;
   2529     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2530     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2532     _flag_k = FK_CMP;
   2533     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2534 L_4704DAEA:
   2535     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2536     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2537     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2538     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2539     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2540     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2541     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2542     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2543     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2544     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2545     RECOMP_FLAGS_IN();
   2546     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2547     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2548     _cf = 0;
   2549     _flag_k = FK_TEST;
   2550     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2551 L_4704DB0C:
   2552     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2553     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2554     RECOMP_FLAGS_IN();
   2555     esi = eax; /* 0x4704DB13: mov esi, eax */
   2556     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2557     RECOMP_FLAGS_IN();
   2558     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2559     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2560 L_4704DB1E:
   2561     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2562 L_470A6B50:
   2563     ecx = ebp + (-0x2C); /* 0x470A6B50: lea ecx, [ebp - 0x2c] */
   2564     RECOMP_BACKEDGE();
   2565     goto L_4704DAE0; /* 0x470A6B53: jmp 0x4704dae0 */
   2566     { RECOMP_REGS_OUT(); return; } /* end of function */
   2567     RECOMP_REGS_OUT();
   2568 }
   2569 
   2570 void sub_470A6B58(void) {
   2571     int _fpu_cmp = 0;
   2572     uint32_t _cf = 0;
   2573     int _df = 1;
   2574     uint32_t _flag_k = FK_NONE;
   2575     uint32_t _flag_a = 0, _flag_b = 0;
   2576     uint32_t _itail_tgt = 0;
   2577     RECOMP_REGS_LOCALS
   2578     RECOMP_ENTER(0x470A6B58u);
   2579 
   2580     goto L_470A6B58;
   2581 L_470810C0:
   2582     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2583     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2584     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2585     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2586     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2587     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2588     RECOMP_FLAGS_IN();
   2589     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2590 L_470A6B58:
   2591     ecx = ebp + (-0x24); /* 0x470A6B58: lea ecx, [ebp - 0x24] */
   2592     RECOMP_BACKEDGE();
   2593     goto L_470810C0; /* 0x470A6B5B: jmp 0x470810c0 */
   2594     { RECOMP_REGS_OUT(); return; } /* end of function */
   2595     RECOMP_REGS_OUT();
   2596 }
   2597 
   2598 void sub_470A6B60(void) {
   2599     int _fpu_cmp = 0;
   2600     uint32_t _cf = 0;
   2601     int _df = 1;
   2602     uint32_t _flag_k = FK_NONE;
   2603     uint32_t _flag_a = 0, _flag_b = 0;
   2604     uint32_t _itail_tgt = 0;
   2605     RECOMP_REGS_LOCALS
   2606     RECOMP_ENTER(0x470A6B60u);
   2607 
   2608     goto L_470A6B60;
   2609 L_470A33EC:
   2610     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2611 L_470A6B60:
   2612     eax = 0x470B4380u; /* 0x470A6B60: mov eax, 0x470b4380 */
   2613 L_470A6B65:
   2614     RECOMP_BACKEDGE();
   2615     goto L_470A33EC; /* 0x470A6B65: jmp 0x470a33ec */
   2616     { RECOMP_REGS_OUT(); return; } /* end of function */
   2617   _ljump:
   2618     switch (_itail_tgt) {
   2619       case 0x470A33ECu: goto L_470A33EC;
   2620       case 0x470A6B60u: goto L_470A6B60;
   2621       case 0x470A6B65u: goto L_470A6B65;
   2622       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2623     }
   2624     RECOMP_REGS_OUT();
   2625 }
   2626 
   2627 void sub_470A6B70(void) {
   2628     int _fpu_cmp = 0;
   2629     uint32_t _cf = 0;
   2630     int _df = 1;
   2631     uint32_t _flag_k = FK_NONE;
   2632     uint32_t _flag_a = 0, _flag_b = 0;
   2633     uint32_t _itail_tgt = 0;
   2634     RECOMP_REGS_LOCALS
   2635     RECOMP_ENTER(0x470A6B70u);
   2636 
   2637     goto L_470A6B70;
   2638 L_4704DAE0:
   2639     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2640     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2641     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2642     _cf = 0;
   2643     _flag_k = FK_TEST;
   2644     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2645     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2647     _flag_k = FK_CMP;
   2648     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2649 L_4704DAEA:
   2650     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2651     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2652     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2653     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2654     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2655     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2656     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2657     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2658     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2659     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2660     RECOMP_FLAGS_IN();
   2661     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2662     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2663     _cf = 0;
   2664     _flag_k = FK_TEST;
   2665     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2666 L_4704DB0C:
   2667     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2668     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2669     RECOMP_FLAGS_IN();
   2670     esi = eax; /* 0x4704DB13: mov esi, eax */
   2671     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2672     RECOMP_FLAGS_IN();
   2673     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2674     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2675 L_4704DB1E:
   2676     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2677 L_470A6B70:
   2678     ecx = ebp + (-0x64); /* 0x470A6B70: lea ecx, [ebp - 0x64] */
   2679     RECOMP_BACKEDGE();
   2680     goto L_4704DAE0; /* 0x470A6B73: jmp 0x4704dae0 */
   2681     { RECOMP_REGS_OUT(); return; } /* end of function */
   2682     RECOMP_REGS_OUT();
   2683 }
   2684 
   2685 void sub_470A6B78(void) {
   2686     int _fpu_cmp = 0;
   2687     uint32_t _cf = 0;
   2688     int _df = 1;
   2689     uint32_t _flag_k = FK_NONE;
   2690     uint32_t _flag_a = 0, _flag_b = 0;
   2691     uint32_t _itail_tgt = 0;
   2692     RECOMP_REGS_LOCALS
   2693     RECOMP_ENTER(0x470A6B78u);
   2694 
   2695     goto L_470A6B78;
   2696 L_470810C0:
   2697     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2698     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2699     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2700     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2701     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2702     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2703     RECOMP_FLAGS_IN();
   2704     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2705 L_470A6B78:
   2706     ecx = ebp + (-0x34); /* 0x470A6B78: lea ecx, [ebp - 0x34] */
   2707     RECOMP_BACKEDGE();
   2708     goto L_470810C0; /* 0x470A6B7B: jmp 0x470810c0 */
   2709     { RECOMP_REGS_OUT(); return; } /* end of function */
   2710     RECOMP_REGS_OUT();
   2711 }
   2712 
   2713 void sub_470A6B80(void) {
   2714     int _fpu_cmp = 0;
   2715     uint32_t _cf = 0;
   2716     int _df = 1;
   2717     uint32_t _flag_k = FK_NONE;
   2718     uint32_t _flag_a = 0, _flag_b = 0;
   2719     uint32_t _itail_tgt = 0;
   2720     RECOMP_REGS_LOCALS
   2721     RECOMP_ENTER(0x470A6B80u);
   2722 
   2723     goto L_470A6B80;
   2724 L_470810C0:
   2725     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2726     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2727     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2728     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2729     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2730     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2731     RECOMP_FLAGS_IN();
   2732     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2733 L_470A6B80:
   2734     ecx = ebp + (-0x40); /* 0x470A6B80: lea ecx, [ebp - 0x40] */
   2735     RECOMP_BACKEDGE();
   2736     goto L_470810C0; /* 0x470A6B83: jmp 0x470810c0 */
   2737     { RECOMP_REGS_OUT(); return; } /* end of function */
   2738     RECOMP_REGS_OUT();
   2739 }
   2740 
   2741 void sub_470A6B88(void) {
   2742     int _fpu_cmp = 0;
   2743     uint32_t _cf = 0;
   2744     int _df = 1;
   2745     uint32_t _flag_k = FK_NONE;
   2746     uint32_t _flag_a = 0, _flag_b = 0;
   2747     uint32_t _itail_tgt = 0;
   2748     RECOMP_REGS_LOCALS
   2749     RECOMP_ENTER(0x470A6B88u);
   2750 
   2751     goto L_470A6B88;
   2752 L_470475E0:
   2753     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
   2754     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
   2755     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
   2756     PUSH32(esp, eax); /* 0x470475ED: push eax */
   2757     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
   2758     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
   2759     PUSH32(esp, esi); /* 0x470475F6: push esi */
   2760     esi = ecx; /* 0x470475F7: mov esi, ecx */
   2761     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
   2762     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
   2763     PUSH32(esp, eax); /* 0x47047600: push eax */
   2764     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
   2765     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
   2766     RECOMP_FLAGS_IN();
   2767     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2768     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2769     esp = esp + 4; /* 0x4704760F: add esp, 4 */
   2770     _flag_k = FK_ADD;
   2771     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
   2772     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
   2773     RECOMP_FLAGS_IN();
   2774     ecx = esi; /* 0x4704761A: mov ecx, esi */
   2775     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
   2776     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
   2777     RECOMP_FLAGS_IN();
   2778     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
   2779     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
   2780     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
   2781     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2782     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2783     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
   2784     _flag_k = FK_ADD;
   2785     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
   2786 L_470A6B88:
   2787     ecx = ebp + (-0x28); /* 0x470A6B88: lea ecx, [ebp - 0x28] */
   2788     RECOMP_BACKEDGE();
   2789     goto L_470475E0; /* 0x470A6B8B: jmp 0x470475e0 */
   2790     { RECOMP_REGS_OUT(); return; } /* end of function */
   2791     RECOMP_REGS_OUT();
   2792 }
   2793 
   2794 void sub_470A6B90(void) {
   2795     int _fpu_cmp = 0;
   2796     uint32_t _cf = 0;
   2797     int _df = 1;
   2798     uint32_t _flag_k = FK_NONE;
   2799     uint32_t _flag_a = 0, _flag_b = 0;
   2800     uint32_t _itail_tgt = 0;
   2801     RECOMP_REGS_LOCALS
   2802     RECOMP_ENTER(0x470A6B90u);
   2803 
   2804     goto L_470A6B90;
   2805 L_470A33EC:
   2806     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2807 L_470A6B90:
   2808     eax = 0x470B43B0u; /* 0x470A6B90: mov eax, 0x470b43b0 */
   2809 L_470A6B95:
   2810     RECOMP_BACKEDGE();
   2811     goto L_470A33EC; /* 0x470A6B95: jmp 0x470a33ec */
   2812     { RECOMP_REGS_OUT(); return; } /* end of function */
   2813   _ljump:
   2814     switch (_itail_tgt) {
   2815       case 0x470A33ECu: goto L_470A33EC;
   2816       case 0x470A6B90u: goto L_470A6B90;
   2817       case 0x470A6B95u: goto L_470A6B95;
   2818       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2819     }
   2820     RECOMP_REGS_OUT();
   2821 }
   2822 
   2823 void sub_470A6BA0(void) {
   2824     int _fpu_cmp = 0;
   2825     uint32_t _cf = 0;
   2826     int _df = 1;
   2827     uint32_t _flag_k = FK_NONE;
   2828     uint32_t _flag_a = 0, _flag_b = 0;
   2829     uint32_t _itail_tgt = 0;
   2830     RECOMP_REGS_LOCALS
   2831     RECOMP_ENTER(0x470A6BA0u);
   2832 
   2833     goto L_470A6BA0;
   2834 L_4704DAE0:
   2835     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   2836     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2837     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   2838     _cf = 0;
   2839     _flag_k = FK_TEST;
   2840     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   2841     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2843     _flag_k = FK_CMP;
   2844     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   2845 L_4704DAEA:
   2846     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   2847     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   2848     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   2849     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   2850     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   2851     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   2852     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   2853     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   2854     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   2855     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   2856     RECOMP_FLAGS_IN();
   2857     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   2858     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2859     _cf = 0;
   2860     _flag_k = FK_TEST;
   2861     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   2862 L_4704DB0C:
   2863     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   2864     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   2865     RECOMP_FLAGS_IN();
   2866     esi = eax; /* 0x4704DB13: mov esi, eax */
   2867     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   2868     RECOMP_FLAGS_IN();
   2869     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   2870     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   2871 L_4704DB1E:
   2872     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   2873 L_470A6BA0:
   2874     ecx = ebp + (-0x6C); /* 0x470A6BA0: lea ecx, [ebp - 0x6c] */
   2875     RECOMP_BACKEDGE();
   2876     goto L_4704DAE0; /* 0x470A6BA3: jmp 0x4704dae0 */
   2877     { RECOMP_REGS_OUT(); return; } /* end of function */
   2878     RECOMP_REGS_OUT();
   2879 }
   2880 
   2881 void sub_470A6BA8(void) {
   2882     int _fpu_cmp = 0;
   2883     uint32_t _cf = 0;
   2884     int _df = 1;
   2885     uint32_t _flag_k = FK_NONE;
   2886     uint32_t _flag_a = 0, _flag_b = 0;
   2887     uint32_t _itail_tgt = 0;
   2888     RECOMP_REGS_LOCALS
   2889     RECOMP_ENTER(0x470A6BA8u);
   2890 
   2891     goto L_470A6BA8;
   2892 L_470810C0:
   2893     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2894     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2895     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2896     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2897     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2898     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2899     RECOMP_FLAGS_IN();
   2900     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2901 L_470A6BA8:
   2902     ecx = ebp + (-0x34); /* 0x470A6BA8: lea ecx, [ebp - 0x34] */
   2903     RECOMP_BACKEDGE();
   2904     goto L_470810C0; /* 0x470A6BAB: jmp 0x470810c0 */
   2905     { RECOMP_REGS_OUT(); return; } /* end of function */
   2906     RECOMP_REGS_OUT();
   2907 }
   2908 
   2909 void sub_470A6BB0(void) {
   2910     int _fpu_cmp = 0;
   2911     uint32_t _cf = 0;
   2912     int _df = 1;
   2913     uint32_t _flag_k = FK_NONE;
   2914     uint32_t _flag_a = 0, _flag_b = 0;
   2915     uint32_t _itail_tgt = 0;
   2916     RECOMP_REGS_LOCALS
   2917     RECOMP_ENTER(0x470A6BB0u);
   2918 
   2919     goto L_470A6BB0;
   2920 L_470810C0:
   2921     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2922     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2923     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2924     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2925     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2926     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2927     RECOMP_FLAGS_IN();
   2928     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2929 L_470A6BB0:
   2930     ecx = ebp + (-0x40); /* 0x470A6BB0: lea ecx, [ebp - 0x40] */
   2931     RECOMP_BACKEDGE();
   2932     goto L_470810C0; /* 0x470A6BB3: jmp 0x470810c0 */
   2933     { RECOMP_REGS_OUT(); return; } /* end of function */
   2934     RECOMP_REGS_OUT();
   2935 }
   2936 
   2937 void sub_470A6BB8(void) {
   2938     int _fpu_cmp = 0;
   2939     uint32_t _cf = 0;
   2940     int _df = 1;
   2941     uint32_t _flag_k = FK_NONE;
   2942     uint32_t _flag_a = 0, _flag_b = 0;
   2943     uint32_t _itail_tgt = 0;
   2944     RECOMP_REGS_LOCALS
   2945     RECOMP_ENTER(0x470A6BB8u);
   2946 
   2947     goto L_470A6BB8;
   2948 L_470475E0:
   2949     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
   2950     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
   2951     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
   2952     PUSH32(esp, eax); /* 0x470475ED: push eax */
   2953     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
   2954     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
   2955     PUSH32(esp, esi); /* 0x470475F6: push esi */
   2956     esi = ecx; /* 0x470475F7: mov esi, ecx */
   2957     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
   2958     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
   2959     PUSH32(esp, eax); /* 0x47047600: push eax */
   2960     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
   2961     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
   2962     RECOMP_FLAGS_IN();
   2963     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2965     esp = esp + 4; /* 0x4704760F: add esp, 4 */
   2966     _flag_k = FK_ADD;
   2967     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
   2968     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
   2969     RECOMP_FLAGS_IN();
   2970     ecx = esi; /* 0x4704761A: mov ecx, esi */
   2971     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
   2972     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
   2973     RECOMP_FLAGS_IN();
   2974     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
   2975     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
   2976     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
   2977     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2978     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2979     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
   2980     _flag_k = FK_ADD;
   2981     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
   2982 L_470A6BB8:
   2983     ecx = ebp + (-0x28); /* 0x470A6BB8: lea ecx, [ebp - 0x28] */
   2984     RECOMP_BACKEDGE();
   2985     goto L_470475E0; /* 0x470A6BBB: jmp 0x470475e0 */
   2986     { RECOMP_REGS_OUT(); return; } /* end of function */
   2987     RECOMP_REGS_OUT();
   2988 }
   2989 
   2990 void sub_470A6BC0(void) {
   2991     int _fpu_cmp = 0;
   2992     uint32_t _cf = 0;
   2993     int _df = 1;
   2994     uint32_t _flag_k = FK_NONE;
   2995     uint32_t _flag_a = 0, _flag_b = 0;
   2996     uint32_t _itail_tgt = 0;
   2997     RECOMP_REGS_LOCALS
   2998     RECOMP_ENTER(0x470A6BC0u);
   2999 
   3000     goto L_470A6BC0;
   3001 L_470A33EC:
   3002     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3003 L_470A6BC0:
   3004     eax = 0x470B4400u; /* 0x470A6BC0: mov eax, 0x470b4400 */
   3005 L_470A6BC5:
   3006     RECOMP_BACKEDGE();
   3007     goto L_470A33EC; /* 0x470A6BC5: jmp 0x470a33ec */
   3008     { RECOMP_REGS_OUT(); return; } /* end of function */
   3009   _ljump:
   3010     switch (_itail_tgt) {
   3011       case 0x470A33ECu: goto L_470A33EC;
   3012       case 0x470A6BC0u: goto L_470A6BC0;
   3013       case 0x470A6BC5u: goto L_470A6BC5;
   3014       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3015     }
   3016     RECOMP_REGS_OUT();
   3017 }
   3018 
   3019 void sub_470A6BD0(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(0x470A6BD0u);
   3028 
   3029     goto L_470A6BD0;
   3030 L_4704DAE0:
   3031     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3032     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3033     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3034     _cf = 0;
   3035     _flag_k = FK_TEST;
   3036     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3037     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3039     _flag_k = FK_CMP;
   3040     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3041 L_4704DAEA:
   3042     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3043     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3044     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3045     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3046     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3047     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3048     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3049     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3050     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3051     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3052     RECOMP_FLAGS_IN();
   3053     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3055     _cf = 0;
   3056     _flag_k = FK_TEST;
   3057     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3058 L_4704DB0C:
   3059     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3060     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3061     RECOMP_FLAGS_IN();
   3062     esi = eax; /* 0x4704DB13: mov esi, eax */
   3063     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3064     RECOMP_FLAGS_IN();
   3065     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3066     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3067 L_4704DB1E:
   3068     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3069 L_470A6BD0:
   3070     ecx = ebp + (-0x5C); /* 0x470A6BD0: lea ecx, [ebp - 0x5c] */
   3071     RECOMP_BACKEDGE();
   3072     goto L_4704DAE0; /* 0x470A6BD3: jmp 0x4704dae0 */
   3073     { RECOMP_REGS_OUT(); return; } /* end of function */
   3074     RECOMP_REGS_OUT();
   3075 }
   3076 
   3077 void sub_470A6BD8(void) {
   3078     int _fpu_cmp = 0;
   3079     uint32_t _cf = 0;
   3080     int _df = 1;
   3081     uint32_t _flag_k = FK_NONE;
   3082     uint32_t _flag_a = 0, _flag_b = 0;
   3083     uint32_t _itail_tgt = 0;
   3084     RECOMP_REGS_LOCALS
   3085     RECOMP_ENTER(0x470A6BD8u);
   3086 
   3087     goto L_470A6BD8;
   3088 L_470810C0:
   3089     eax = ecx; /* 0x470810C0: mov eax, ecx */
   3090     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   3091     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   3092     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   3093     PUSH32(esp, eax); /* 0x470810C9: push eax */
   3094     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   3095     RECOMP_FLAGS_IN();
   3096     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   3097 L_470A6BD8:
   3098     ecx = ebp + (-0x34); /* 0x470A6BD8: lea ecx, [ebp - 0x34] */
   3099     RECOMP_BACKEDGE();
   3100     goto L_470810C0; /* 0x470A6BDB: jmp 0x470810c0 */
   3101     { RECOMP_REGS_OUT(); return; } /* end of function */
   3102     RECOMP_REGS_OUT();
   3103 }
   3104 
   3105 void sub_470A6BE0(void) {
   3106     int _fpu_cmp = 0;
   3107     uint32_t _cf = 0;
   3108     int _df = 1;
   3109     uint32_t _flag_k = FK_NONE;
   3110     uint32_t _flag_a = 0, _flag_b = 0;
   3111     uint32_t _itail_tgt = 0;
   3112     RECOMP_REGS_LOCALS
   3113     RECOMP_ENTER(0x470A6BE0u);
   3114 
   3115     goto L_470A6BE0;
   3116 L_470810C0:
   3117     eax = ecx; /* 0x470810C0: mov eax, ecx */
   3118     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   3119     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   3120     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   3121     PUSH32(esp, eax); /* 0x470810C9: push eax */
   3122     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   3123     RECOMP_FLAGS_IN();
   3124     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   3125 L_470A6BE0:
   3126     ecx = ebp + (-0x40); /* 0x470A6BE0: lea ecx, [ebp - 0x40] */
   3127     RECOMP_BACKEDGE();
   3128     goto L_470810C0; /* 0x470A6BE3: jmp 0x470810c0 */
   3129     { RECOMP_REGS_OUT(); return; } /* end of function */
   3130     RECOMP_REGS_OUT();
   3131 }
   3132 
   3133 void sub_470A6BE8(void) {
   3134     int _fpu_cmp = 0;
   3135     uint32_t _cf = 0;
   3136     int _df = 1;
   3137     uint32_t _flag_k = FK_NONE;
   3138     uint32_t _flag_a = 0, _flag_b = 0;
   3139     uint32_t _itail_tgt = 0;
   3140     RECOMP_REGS_LOCALS
   3141     RECOMP_ENTER(0x470A6BE8u);
   3142 
   3143     goto L_470A6BE8;
   3144 L_470475E0:
   3145     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
   3146     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
   3147     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
   3148     PUSH32(esp, eax); /* 0x470475ED: push eax */
   3149     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
   3150     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
   3151     PUSH32(esp, esi); /* 0x470475F6: push esi */
   3152     esi = ecx; /* 0x470475F7: mov esi, ecx */
   3153     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
   3154     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
   3155     PUSH32(esp, eax); /* 0x47047600: push eax */
   3156     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
   3157     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
   3158     RECOMP_FLAGS_IN();
   3159     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3160     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3161     esp = esp + 4; /* 0x4704760F: add esp, 4 */
   3162     _flag_k = FK_ADD;
   3163     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
   3164     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
   3165     RECOMP_FLAGS_IN();
   3166     ecx = esi; /* 0x4704761A: mov ecx, esi */
   3167     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
   3168     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
   3169     RECOMP_FLAGS_IN();
   3170     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
   3171     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
   3172     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
   3173     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3174     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3175     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
   3176     _flag_k = FK_ADD;
   3177     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
   3178 L_470A6BE8:
   3179     ecx = ebp + (-0x28); /* 0x470A6BE8: lea ecx, [ebp - 0x28] */
   3180     RECOMP_BACKEDGE();
   3181     goto L_470475E0; /* 0x470A6BEB: jmp 0x470475e0 */
   3182     { RECOMP_REGS_OUT(); return; } /* end of function */
   3183     RECOMP_REGS_OUT();
   3184 }
   3185 
   3186 void sub_470A6BF0(void) {
   3187     int _fpu_cmp = 0;
   3188     uint32_t _cf = 0;
   3189     int _df = 1;
   3190     uint32_t _flag_k = FK_NONE;
   3191     uint32_t _flag_a = 0, _flag_b = 0;
   3192     uint32_t _itail_tgt = 0;
   3193     RECOMP_REGS_LOCALS
   3194     RECOMP_ENTER(0x470A6BF0u);
   3195 
   3196     goto L_470A6BF0;
   3197 L_470A33EC:
   3198     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3199 L_470A6BF0:
   3200     eax = 0x470B4450u; /* 0x470A6BF0: mov eax, 0x470b4450 */
   3201 L_470A6BF5:
   3202     RECOMP_BACKEDGE();
   3203     goto L_470A33EC; /* 0x470A6BF5: jmp 0x470a33ec */
   3204     { RECOMP_REGS_OUT(); return; } /* end of function */
   3205   _ljump:
   3206     switch (_itail_tgt) {
   3207       case 0x470A33ECu: goto L_470A33EC;
   3208       case 0x470A6BF0u: goto L_470A6BF0;
   3209       case 0x470A6BF5u: goto L_470A6BF5;
   3210       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3211     }
   3212     RECOMP_REGS_OUT();
   3213 }
   3214 
   3215 void sub_470A6C00(void) {
   3216     int _fpu_cmp = 0;
   3217     uint32_t _cf = 0;
   3218     int _df = 1;
   3219     uint32_t _flag_k = FK_NONE;
   3220     uint32_t _flag_a = 0, _flag_b = 0;
   3221     uint32_t _itail_tgt = 0;
   3222     RECOMP_REGS_LOCALS
   3223     RECOMP_ENTER(0x470A6C00u);
   3224 
   3225     goto L_470A6C00;
   3226 L_4704DAE0:
   3227     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3228     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3229     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3230     _cf = 0;
   3231     _flag_k = FK_TEST;
   3232     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3233     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3235     _flag_k = FK_CMP;
   3236     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3237 L_4704DAEA:
   3238     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3239     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3240     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3241     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3242     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3243     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3244     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3245     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3246     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3247     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3248     RECOMP_FLAGS_IN();
   3249     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3250     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3251     _cf = 0;
   3252     _flag_k = FK_TEST;
   3253     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3254 L_4704DB0C:
   3255     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3256     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3257     RECOMP_FLAGS_IN();
   3258     esi = eax; /* 0x4704DB13: mov esi, eax */
   3259     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3260     RECOMP_FLAGS_IN();
   3261     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3262     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3263 L_4704DB1E:
   3264     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3265 L_470A6C00:
   3266     ecx = ebp + (-0x14); /* 0x470A6C00: lea ecx, [ebp - 0x14] */
   3267     RECOMP_BACKEDGE();
   3268     goto L_4704DAE0; /* 0x470A6C03: jmp 0x4704dae0 */
   3269     { RECOMP_REGS_OUT(); return; } /* end of function */
   3270     RECOMP_REGS_OUT();
   3271 }
   3272 
   3273 void sub_470A6C08(void) {
   3274     int _fpu_cmp = 0;
   3275     uint32_t _cf = 0;
   3276     int _df = 1;
   3277     uint32_t _flag_k = FK_NONE;
   3278     uint32_t _flag_a = 0, _flag_b = 0;
   3279     uint32_t _itail_tgt = 0;
   3280     RECOMP_REGS_LOCALS
   3281     RECOMP_ENTER(0x470A6C08u);
   3282 
   3283     goto L_470A6C08;
   3284 L_470A33EC:
   3285     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3286 L_470A6C08:
   3287     eax = 0x470B44A0u; /* 0x470A6C08: mov eax, 0x470b44a0 */
   3288 L_470A6C0D:
   3289     RECOMP_BACKEDGE();
   3290     goto L_470A33EC; /* 0x470A6C0D: jmp 0x470a33ec */
   3291     { RECOMP_REGS_OUT(); return; } /* end of function */
   3292   _ljump:
   3293     switch (_itail_tgt) {
   3294       case 0x470A33ECu: goto L_470A33EC;
   3295       case 0x470A6C08u: goto L_470A6C08;
   3296       case 0x470A6C0Du: goto L_470A6C0D;
   3297       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3298     }
   3299     RECOMP_REGS_OUT();
   3300 }
   3301 
   3302 void sub_470A6C20(void) {
   3303     int _fpu_cmp = 0;
   3304     uint32_t _cf = 0;
   3305     int _df = 1;
   3306     uint32_t _flag_k = FK_NONE;
   3307     uint32_t _flag_a = 0, _flag_b = 0;
   3308     uint32_t _itail_tgt = 0;
   3309     RECOMP_REGS_LOCALS
   3310     RECOMP_ENTER(0x470A6C20u);
   3311 
   3312     goto L_470A6C20;
   3313 L_4704DAE0:
   3314     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3315     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3316     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3317     _cf = 0;
   3318     _flag_k = FK_TEST;
   3319     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3320     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3322     _flag_k = FK_CMP;
   3323     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3324 L_4704DAEA:
   3325     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3326     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3327     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3328     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3329     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3330     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3331     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3332     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3333     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3334     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3335     RECOMP_FLAGS_IN();
   3336     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3337     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3338     _cf = 0;
   3339     _flag_k = FK_TEST;
   3340     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3341 L_4704DB0C:
   3342     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3343     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3344     RECOMP_FLAGS_IN();
   3345     esi = eax; /* 0x4704DB13: mov esi, eax */
   3346     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3347     RECOMP_FLAGS_IN();
   3348     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3349     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3350 L_4704DB1E:
   3351     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3352 L_470A6C20:
   3353     ecx = ebp + (-0x14); /* 0x470A6C20: lea ecx, [ebp - 0x14] */
   3354     RECOMP_BACKEDGE();
   3355     goto L_4704DAE0; /* 0x470A6C23: jmp 0x4704dae0 */
   3356     { RECOMP_REGS_OUT(); return; } /* end of function */
   3357     RECOMP_REGS_OUT();
   3358 }
   3359 
   3360 void sub_470A6C28(void) {
   3361     int _fpu_cmp = 0;
   3362     uint32_t _cf = 0;
   3363     int _df = 1;
   3364     uint32_t _flag_k = FK_NONE;
   3365     uint32_t _flag_a = 0, _flag_b = 0;
   3366     uint32_t _itail_tgt = 0;
   3367     RECOMP_REGS_LOCALS
   3368     RECOMP_ENTER(0x470A6C28u);
   3369 
   3370     goto L_470A6C28;
   3371 L_470A33EC:
   3372     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3373 L_470A6C28:
   3374     eax = 0x470B44C8u; /* 0x470A6C28: mov eax, 0x470b44c8 */
   3375 L_470A6C2D:
   3376     RECOMP_BACKEDGE();
   3377     goto L_470A33EC; /* 0x470A6C2D: jmp 0x470a33ec */
   3378     { RECOMP_REGS_OUT(); return; } /* end of function */
   3379   _ljump:
   3380     switch (_itail_tgt) {
   3381       case 0x470A33ECu: goto L_470A33EC;
   3382       case 0x470A6C28u: goto L_470A6C28;
   3383       case 0x470A6C2Du: goto L_470A6C2D;
   3384       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3385     }
   3386     RECOMP_REGS_OUT();
   3387 }
   3388 
   3389 void sub_470A6C40(void) {
   3390     int _fpu_cmp = 0;
   3391     uint32_t _cf = 0;
   3392     int _df = 1;
   3393     uint32_t _flag_k = FK_NONE;
   3394     uint32_t _flag_a = 0, _flag_b = 0;
   3395     uint32_t _itail_tgt = 0;
   3396     RECOMP_REGS_LOCALS
   3397     RECOMP_ENTER(0x470A6C40u);
   3398 
   3399     goto L_470A6C40;
   3400 L_4704DAE0:
   3401     edx = MEM32(ecx + 0x4); /* 0x4704DAE0: mov edx, dword ptr [ecx + 4] */
   3402     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3403     eax = eax | 0xFFFFFFFFu; /* 0x4704DAE3: or eax, 0xffffffff */
   3404     _cf = 0;
   3405     _flag_k = FK_TEST;
   3406     /* cmp edx, eax */ /* 0x4704DAE6: cmp edx, eax */
   3407     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3408     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3409     _flag_k = FK_CMP;
   3410     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DAE8: je 0x4704db1e */
   3411 L_4704DAEA:
   3412     PUSH32(esp, 0); /* 0x4704DAEA: push 0 */
   3413     MEM32(ecx + 0x4) = eax; /* 0x4704DAEC: mov dword ptr [ecx + 4], eax */
   3414     eax = MEM32(ecx); /* 0x4704DAEF: mov eax, dword ptr [ecx] */
   3415     PUSH32(esp, 1); /* 0x4704DAF1: push 1 */
   3416     PUSH32(esp, 0); /* 0x4704DAF3: push 0 */
   3417     MEM32(eax + 0x8) = 0; /* 0x4704DAF5: mov dword ptr [eax + 8], 0 */
   3418     eax = MEM32(eax + 0x18); /* 0x4704DAFC: mov eax, dword ptr [eax + 0x18] */
   3419     PUSH32(esp, 0); /* 0x4704DAFF: push 0 */
   3420     PUSH32(esp, eax); /* 0x4704DB01: push eax */
   3421     RECOMP_ICALL(MEM32(0x470AC0FC)); /* 0x4704DB02: call dword ptr [0x470ac0fc] */
   3422     RECOMP_FLAGS_IN();
   3423     /* test eax, eax */ /* 0x4704DB08: test eax, eax */
   3424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3425     _cf = 0;
   3426     _flag_k = FK_TEST;
   3427     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704DB1E; /* 0x4704DB0A: jne 0x4704db1e */
   3428 L_4704DB0C:
   3429     PUSH32(esp, esi); /* 0x4704DB0C: push esi */
   3430     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704DB0D: call dword ptr [0x470ac3c8] */
   3431     RECOMP_FLAGS_IN();
   3432     esi = eax; /* 0x4704DB13: mov esi, eax */
   3433     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704DB15: call dword ptr [0x470ac150] */
   3434     RECOMP_FLAGS_IN();
   3435     MEM32(esi) = eax; /* 0x4704DB1B: mov dword ptr [esi], eax */
   3436     esi = POP32_VAL(esp); /* 0x4704DB1D: pop esi */
   3437 L_4704DB1E:
   3438     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704DB1E: ret  */
   3439 L_470A6C40:
   3440     ecx = ebp + (-0x28); /* 0x470A6C40: lea ecx, [ebp - 0x28] */
   3441     RECOMP_BACKEDGE();
   3442     goto L_4704DAE0; /* 0x470A6C43: jmp 0x4704dae0 */
   3443     { RECOMP_REGS_OUT(); return; } /* end of function */
   3444     RECOMP_REGS_OUT();
   3445 }