aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0088.c (126557B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_470A8B61(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(0x470A8B61u);
     13 
     14     goto L_470A8B61;
     15 L_4706C100:
     16     PUSH32(esp, 0xFFFFFFFFu); /* 0x4706C100: push -1 */
     17     PUSH32(esp, 0x470A89F8u); /* 0x4706C102: push 0x470a89f8 */
     18     eax = MEM32(FS_BASE + (0)); /* 0x4706C107: mov eax, dword ptr fs:[0] */
     19     PUSH32(esp, eax); /* 0x4706C10D: push eax */
     20     MEM32(FS_BASE + (0)) = esp; /* 0x4706C10E: mov dword ptr fs:[0], esp */
     21     PUSH32(esp, ecx); /* 0x4706C115: push ecx */
     22     PUSH32(esp, esi); /* 0x4706C116: push esi */
     23     esi = ecx; /* 0x4706C117: mov esi, ecx */
     24     MEM32(esp + 0x4) = esi; /* 0x4706C119: mov dword ptr [esp + 4], esi */
     25     PUSH32(esp, 0); /* 0x4706C11D: push 0 */
     26     PUSH32(esp, 0); /* 0x4706C11F: push 0 */
     27     PUSH32(esp, 0); /* 0x4706C121: push 0 */
     28     ecx = esi + 0x14; /* 0x4706C123: lea ecx, [esi + 0x14] */
     29     MEM32(esp + 0x1C) = 0; /* 0x4706C126: mov dword ptr [esp + 0x1c], 0 */
     30     RECOMP_ICALL(0x470802D0u); /* 0x4706C12E: call 0x470802d0 */ /* not lifted */
     31     RECOMP_FLAGS_IN();
     32     PUSH32(esp, 0); /* 0x4706C133: push 0 */
     33     PUSH32(esp, 0); /* 0x4706C135: push 0 */
     34     PUSH32(esp, 0); /* 0x4706C137: push 0 */
     35     ecx = esi; /* 0x4706C139: mov ecx, esi */
     36     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x4706C13B: mov dword ptr [esp + 0x1c], 0xffffffff */
     37     RECOMP_ICALL(0x470802D0u); /* 0x4706C143: call 0x470802d0 */ /* not lifted */
     38     RECOMP_FLAGS_IN();
     39     ecx = MEM32(esp + 0x8); /* 0x4706C148: mov ecx, dword ptr [esp + 8] */
     40     esi = POP32_VAL(esp); /* 0x4706C14C: pop esi */
     41     MEM32(FS_BASE + (0)) = ecx; /* 0x4706C14D: mov dword ptr fs:[0], ecx */
     42     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
     43     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     44     esp = esp + 0x10u; /* 0x4706C154: add esp, 0x10 */
     45     _flag_k = FK_ADD;
     46     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706C157: ret  */
     47 L_470A8B61:
     48     ecx = ebp + (-0x34); /* 0x470A8B61: lea ecx, [ebp - 0x34] */
     49     RECOMP_BACKEDGE();
     50     goto L_4706C100; /* 0x470A8B64: jmp 0x4706c100 */
     51     { RECOMP_REGS_OUT(); return; } /* end of function */
     52     RECOMP_REGS_OUT();
     53 }
     54 
     55 void sub_470A8B69(void) {
     56     int _fpu_cmp = 0;
     57     uint32_t _cf = 0;
     58     int _df = 1;
     59     uint32_t _flag_k = FK_NONE;
     60     uint32_t _flag_a = 0, _flag_b = 0;
     61     uint32_t _itail_tgt = 0;
     62     RECOMP_REGS_LOCALS
     63     RECOMP_ENTER(0x470A8B69u);
     64 
     65     goto L_470A8B69;
     66 L_47007240:
     67     PUSH32(esp, 0); /* 0x47007240: push 0 */
     68     PUSH32(esp, 0); /* 0x47007242: push 0 */
     69     PUSH32(esp, 0); /* 0x47007244: push 0 */
     70     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
     71     RECOMP_FLAGS_IN();
     72     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
     73 L_470A8B69:
     74     ecx = ebp + (-0x5C); /* 0x470A8B69: lea ecx, [ebp - 0x5c] */
     75     RECOMP_BACKEDGE();
     76     goto L_47007240; /* 0x470A8B6C: jmp 0x47007240 */
     77     { RECOMP_REGS_OUT(); return; } /* end of function */
     78     RECOMP_REGS_OUT();
     79 }
     80 
     81 void sub_470A8B71(void) {
     82     int _fpu_cmp = 0;
     83     uint32_t _cf = 0;
     84     int _df = 1;
     85     uint32_t _flag_k = FK_NONE;
     86     uint32_t _flag_a = 0, _flag_b = 0;
     87     uint32_t _itail_tgt = 0;
     88     RECOMP_REGS_LOCALS
     89     RECOMP_ENTER(0x470A8B71u);
     90 
     91     goto L_470A8B71;
     92 L_47007240:
     93     PUSH32(esp, 0); /* 0x47007240: push 0 */
     94     PUSH32(esp, 0); /* 0x47007242: push 0 */
     95     PUSH32(esp, 0); /* 0x47007244: push 0 */
     96     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
     97     RECOMP_FLAGS_IN();
     98     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
     99 L_470A8B71:
    100     ecx = ebp + (-0x48); /* 0x470A8B71: lea ecx, [ebp - 0x48] */
    101     RECOMP_BACKEDGE();
    102     goto L_47007240; /* 0x470A8B74: jmp 0x47007240 */
    103     { RECOMP_REGS_OUT(); return; } /* end of function */
    104     RECOMP_REGS_OUT();
    105 }
    106 
    107 void sub_470A8B79(void) {
    108     int _fpu_cmp = 0;
    109     uint32_t _cf = 0;
    110     int _df = 1;
    111     uint32_t _flag_k = FK_NONE;
    112     uint32_t _flag_a = 0, _flag_b = 0;
    113     uint32_t _itail_tgt = 0;
    114     RECOMP_REGS_LOCALS
    115     RECOMP_ENTER(0x470A8B79u);
    116 
    117     goto L_470A8B79;
    118 L_47007240:
    119     PUSH32(esp, 0); /* 0x47007240: push 0 */
    120     PUSH32(esp, 0); /* 0x47007242: push 0 */
    121     PUSH32(esp, 0); /* 0x47007244: push 0 */
    122     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    123     RECOMP_FLAGS_IN();
    124     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    125 L_470A8B79:
    126     ecx = ebp + (-0x34); /* 0x470A8B79: lea ecx, [ebp - 0x34] */
    127     RECOMP_BACKEDGE();
    128     goto L_47007240; /* 0x470A8B7C: jmp 0x47007240 */
    129     { RECOMP_REGS_OUT(); return; } /* end of function */
    130     RECOMP_REGS_OUT();
    131 }
    132 
    133 void sub_470A8B81(void) {
    134     int _fpu_cmp = 0;
    135     uint32_t _cf = 0;
    136     int _df = 1;
    137     uint32_t _flag_k = FK_NONE;
    138     uint32_t _flag_a = 0, _flag_b = 0;
    139     uint32_t _itail_tgt = 0;
    140     RECOMP_REGS_LOCALS
    141     RECOMP_ENTER(0x470A8B81u);
    142 
    143 L_470A8B81:
    144     eax = MEM32(ebp + 0x4); /* 0x470A8B81: mov eax, dword ptr [ebp + 4] */
    145     ecx = MEM32(eax); /* 0x470A8B84: mov ecx, dword ptr [eax] */
    146     PUSH32(esp, ecx); /* 0x470A8B86: push ecx */
    147     edx = MEM32(ebp + 0x8); /* 0x470A8B87: mov edx, dword ptr [ebp + 8] */
    148     PUSH32(esp, edx); /* 0x470A8B8A: push edx */
    149     RECOMP_ICALL(0x470041D0u); /* 0x470A8B8B: call 0x470041d0 */ /* not lifted */
    150     RECOMP_FLAGS_IN();
    151     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    152     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    153     esp = esp + 8; /* 0x470A8B90: add esp, 8 */
    154     _flag_k = FK_ADD;
    155     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8B93: ret  */
    156     RECOMP_REGS_OUT();
    157 }
    158 
    159 void sub_470A8B94(void) {
    160     int _fpu_cmp = 0;
    161     uint32_t _cf = 0;
    162     int _df = 1;
    163     uint32_t _flag_k = FK_NONE;
    164     uint32_t _flag_a = 0, _flag_b = 0;
    165     uint32_t _itail_tgt = 0;
    166     RECOMP_REGS_LOCALS
    167     RECOMP_ENTER(0x470A8B94u);
    168 
    169     goto L_470A8B94;
    170 L_4706E960:
    171     PUSH32(esp, esi); /* 0x4706E960: push esi */
    172     esi = ecx; /* 0x4706E961: mov esi, ecx */
    173     eax = MEM32(esi); /* 0x4706E963: mov eax, dword ptr [esi] */
    174     PUSH32(esp, edi); /* 0x4706E965: push edi */
    175     edi = MEM32(eax); /* 0x4706E966: mov edi, dword ptr [eax] */
    176     /* cmp edi, eax */ /* 0x4706E968: cmp edi, eax */
    177     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    179     _flag_k = FK_CMP;
    180     if (CMP_EQ(_flag_a, _flag_b)) goto L_4706E993; /* 0x4706E96A: je 0x4706e993 */
    181 L_4706E96C:
    182     PUSH32(esp, ebx); /* 0x4706E96C: push ebx */
    183 L_4706E96D:
    184     ebx = edi; /* 0x4706E96D: mov ebx, edi */
    185     /* test ebx, ebx */ /* 0x4706E96F: test ebx, ebx */
    186     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    187     _cf = 0;
    188     _flag_k = FK_TEST;
    189     edi = MEM32(edi); /* 0x4706E971: mov edi, dword ptr [edi] */
    190     if (TEST_Z(_flag_a, _flag_b)) goto L_4706E985; /* 0x4706E973: je 0x4706e985 */
    191 L_4706E975:
    192     ecx = ebx; /* 0x4706E975: mov ecx, ebx */
    193     RECOMP_ICALL(0x4706ED30u); /* 0x4706E977: call 0x4706ed30 */ /* not lifted */
    194     RECOMP_FLAGS_IN();
    195     ecx = MEM32(esi + 0x8); /* 0x4706E97C: mov ecx, dword ptr [esi + 8] */
    196     eax = MEM32(ecx); /* 0x4706E97F: mov eax, dword ptr [ecx] */
    197     PUSH32(esp, ebx); /* 0x4706E981: push ebx */
    198     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706E982: call dword ptr [eax + 0xc] */
    199     RECOMP_FLAGS_IN();
    200 L_4706E985:
    201     ecx = MEM32(esi + 0x4); /* 0x4706E985: mov ecx, dword ptr [esi + 4] */
    202     eax = MEM32(esi); /* 0x4706E988: mov eax, dword ptr [esi] */
    203     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    204     ecx = ecx - 1; /* 0x4706E98A: dec ecx */
    205     _flag_k = FK_DEC;
    206     /* cmp edi, eax */ /* 0x4706E98B: cmp edi, eax */
    207     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    209     _flag_k = FK_CMP;
    210     MEM32(esi + 0x4) = ecx; /* 0x4706E98D: mov dword ptr [esi + 4], ecx */
    211     RECOMP_BACKEDGE();
    212     if (CMP_NE(_flag_a, _flag_b)) goto L_4706E96D; /* 0x4706E990: jne 0x4706e96d */
    213 L_4706E992:
    214     ebx = POP32_VAL(esp); /* 0x4706E992: pop ebx */
    215 L_4706E993:
    216     eax = MEM32(esi); /* 0x4706E993: mov eax, dword ptr [esi] */
    217     MEM32(eax) = eax; /* 0x4706E995: mov dword ptr [eax], eax */
    218     ecx = MEM32(esi); /* 0x4706E997: mov ecx, dword ptr [esi] */
    219     /* test ecx, ecx */ /* 0x4706E999: test ecx, ecx */
    220     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    221     _cf = 0;
    222     _flag_k = FK_TEST;
    223     if (TEST_Z(_flag_a, _flag_b)) goto L_4706E9AD; /* 0x4706E99B: je 0x4706e9ad */
    224 L_4706E99D:
    225     RECOMP_ICALL(0x4706ED30u); /* 0x4706E99D: call 0x4706ed30 */ /* not lifted */
    226     RECOMP_FLAGS_IN();
    227     ecx = MEM32(esi + 0x8); /* 0x4706E9A2: mov ecx, dword ptr [esi + 8] */
    228     eax = MEM32(esi); /* 0x4706E9A5: mov eax, dword ptr [esi] */
    229     edx = MEM32(ecx); /* 0x4706E9A7: mov edx, dword ptr [ecx] */
    230     PUSH32(esp, eax); /* 0x4706E9A9: push eax */
    231     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706E9AA: call dword ptr [edx + 0xc] */
    232     RECOMP_FLAGS_IN();
    233 L_4706E9AD:
    234     edi = POP32_VAL(esp); /* 0x4706E9AD: pop edi */
    235     MEM32(esi) = 0; /* 0x4706E9AE: mov dword ptr [esi], 0 */
    236     esi = POP32_VAL(esp); /* 0x4706E9B4: pop esi */
    237     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706E9B5: ret  */
    238 L_470A8B94:
    239     eax = MEM32(ebp + (-0x70)); /* 0x470A8B94: mov eax, dword ptr [ebp - 0x70] */
    240     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    241     eax = eax & 1; /* 0x470A8B97: and eax, 1 */
    242     _cf = 0;
    243     _flag_k = FK_TEST;
    244     /* test eax, eax */ /* 0x470A8B9A: test eax, eax */
    245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    246     _cf = 0;
    247     _flag_k = FK_TEST;
    248     if (TEST_Z(_flag_a, _flag_b)) goto L_470A8BAA; /* 0x470A8B9C: je 0x470a8baa */
    249 L_470A8BA2:
    250     ecx = MEM32(ebp + 0x4); /* 0x470A8BA2: mov ecx, dword ptr [ebp + 4] */
    251     RECOMP_BACKEDGE();
    252     goto L_4706E960; /* 0x470A8BA5: jmp 0x4706e960 */
    253 L_470A8BAA:
    254     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8BAA: ret  */
    255     RECOMP_REGS_OUT();
    256 }
    257 
    258 void sub_470A8BAB(void) {
    259     int _fpu_cmp = 0;
    260     uint32_t _cf = 0;
    261     int _df = 1;
    262     uint32_t _flag_k = FK_NONE;
    263     uint32_t _flag_a = 0, _flag_b = 0;
    264     uint32_t _itail_tgt = 0;
    265     RECOMP_REGS_LOCALS
    266     RECOMP_ENTER(0x470A8BABu);
    267 
    268     goto L_470A8BAB;
    269 L_470A33EC:
    270     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    271 L_470A8BAB:
    272     eax = 0x470B6A28u; /* 0x470A8BAB: mov eax, 0x470b6a28 */
    273 L_470A8BB0:
    274     RECOMP_BACKEDGE();
    275     goto L_470A33EC; /* 0x470A8BB0: jmp 0x470a33ec */
    276     { RECOMP_REGS_OUT(); return; } /* end of function */
    277   _ljump:
    278     switch (_itail_tgt) {
    279       case 0x470A33ECu: goto L_470A33EC;
    280       case 0x470A8BABu: goto L_470A8BAB;
    281       case 0x470A8BB0u: goto L_470A8BB0;
    282       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    283     }
    284     RECOMP_REGS_OUT();
    285 }
    286 
    287 void sub_470A8BC0(void) {
    288     int _fpu_cmp = 0;
    289     uint32_t _cf = 0;
    290     int _df = 1;
    291     uint32_t _flag_k = FK_NONE;
    292     uint32_t _flag_a = 0, _flag_b = 0;
    293     uint32_t _itail_tgt = 0;
    294     RECOMP_REGS_LOCALS
    295     RECOMP_ENTER(0x470A8BC0u);
    296 
    297     goto L_470A8BC0;
    298 L_47007240:
    299     PUSH32(esp, 0); /* 0x47007240: push 0 */
    300     PUSH32(esp, 0); /* 0x47007242: push 0 */
    301     PUSH32(esp, 0); /* 0x47007244: push 0 */
    302     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    303     RECOMP_FLAGS_IN();
    304     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    305 L_470A8BC0:
    306     ecx = ebp + (-0x20); /* 0x470A8BC0: lea ecx, [ebp - 0x20] */
    307     RECOMP_BACKEDGE();
    308     goto L_47007240; /* 0x470A8BC3: jmp 0x47007240 */
    309     { RECOMP_REGS_OUT(); return; } /* end of function */
    310     RECOMP_REGS_OUT();
    311 }
    312 
    313 void sub_470A8BC8(void) {
    314     int _fpu_cmp = 0;
    315     uint32_t _cf = 0;
    316     int _df = 1;
    317     uint32_t _flag_k = FK_NONE;
    318     uint32_t _flag_a = 0, _flag_b = 0;
    319     uint32_t _itail_tgt = 0;
    320     RECOMP_REGS_LOCALS
    321     RECOMP_ENTER(0x470A8BC8u);
    322 
    323     goto L_470A8BC8;
    324 L_470A33EC:
    325     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    326 L_470A8BC8:
    327     eax = 0x470B6A90u; /* 0x470A8BC8: mov eax, 0x470b6a90 */
    328 L_470A8BCD:
    329     RECOMP_BACKEDGE();
    330     goto L_470A33EC; /* 0x470A8BCD: jmp 0x470a33ec */
    331     { RECOMP_REGS_OUT(); return; } /* end of function */
    332   _ljump:
    333     switch (_itail_tgt) {
    334       case 0x470A33ECu: goto L_470A33EC;
    335       case 0x470A8BC8u: goto L_470A8BC8;
    336       case 0x470A8BCDu: goto L_470A8BCD;
    337       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    338     }
    339     RECOMP_REGS_OUT();
    340 }
    341 
    342 void sub_470A8BE0(void) {
    343     int _fpu_cmp = 0;
    344     uint32_t _cf = 0;
    345     int _df = 1;
    346     uint32_t _flag_k = FK_NONE;
    347     uint32_t _flag_a = 0, _flag_b = 0;
    348     uint32_t _itail_tgt = 0;
    349     RECOMP_REGS_LOCALS
    350     RECOMP_ENTER(0x470A8BE0u);
    351 
    352     goto L_470A8BE0;
    353 L_4706E960:
    354     PUSH32(esp, esi); /* 0x4706E960: push esi */
    355     esi = ecx; /* 0x4706E961: mov esi, ecx */
    356     eax = MEM32(esi); /* 0x4706E963: mov eax, dword ptr [esi] */
    357     PUSH32(esp, edi); /* 0x4706E965: push edi */
    358     edi = MEM32(eax); /* 0x4706E966: mov edi, dword ptr [eax] */
    359     /* cmp edi, eax */ /* 0x4706E968: cmp edi, eax */
    360     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    362     _flag_k = FK_CMP;
    363     if (CMP_EQ(_flag_a, _flag_b)) goto L_4706E993; /* 0x4706E96A: je 0x4706e993 */
    364 L_4706E96C:
    365     PUSH32(esp, ebx); /* 0x4706E96C: push ebx */
    366 L_4706E96D:
    367     ebx = edi; /* 0x4706E96D: mov ebx, edi */
    368     /* test ebx, ebx */ /* 0x4706E96F: test ebx, ebx */
    369     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    370     _cf = 0;
    371     _flag_k = FK_TEST;
    372     edi = MEM32(edi); /* 0x4706E971: mov edi, dword ptr [edi] */
    373     if (TEST_Z(_flag_a, _flag_b)) goto L_4706E985; /* 0x4706E973: je 0x4706e985 */
    374 L_4706E975:
    375     ecx = ebx; /* 0x4706E975: mov ecx, ebx */
    376     RECOMP_ICALL(0x4706ED30u); /* 0x4706E977: call 0x4706ed30 */ /* not lifted */
    377     RECOMP_FLAGS_IN();
    378     ecx = MEM32(esi + 0x8); /* 0x4706E97C: mov ecx, dword ptr [esi + 8] */
    379     eax = MEM32(ecx); /* 0x4706E97F: mov eax, dword ptr [ecx] */
    380     PUSH32(esp, ebx); /* 0x4706E981: push ebx */
    381     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706E982: call dword ptr [eax + 0xc] */
    382     RECOMP_FLAGS_IN();
    383 L_4706E985:
    384     ecx = MEM32(esi + 0x4); /* 0x4706E985: mov ecx, dword ptr [esi + 4] */
    385     eax = MEM32(esi); /* 0x4706E988: mov eax, dword ptr [esi] */
    386     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    387     ecx = ecx - 1; /* 0x4706E98A: dec ecx */
    388     _flag_k = FK_DEC;
    389     /* cmp edi, eax */ /* 0x4706E98B: cmp edi, eax */
    390     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    392     _flag_k = FK_CMP;
    393     MEM32(esi + 0x4) = ecx; /* 0x4706E98D: mov dword ptr [esi + 4], ecx */
    394     RECOMP_BACKEDGE();
    395     if (CMP_NE(_flag_a, _flag_b)) goto L_4706E96D; /* 0x4706E990: jne 0x4706e96d */
    396 L_4706E992:
    397     ebx = POP32_VAL(esp); /* 0x4706E992: pop ebx */
    398 L_4706E993:
    399     eax = MEM32(esi); /* 0x4706E993: mov eax, dword ptr [esi] */
    400     MEM32(eax) = eax; /* 0x4706E995: mov dword ptr [eax], eax */
    401     ecx = MEM32(esi); /* 0x4706E997: mov ecx, dword ptr [esi] */
    402     /* test ecx, ecx */ /* 0x4706E999: test ecx, ecx */
    403     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    404     _cf = 0;
    405     _flag_k = FK_TEST;
    406     if (TEST_Z(_flag_a, _flag_b)) goto L_4706E9AD; /* 0x4706E99B: je 0x4706e9ad */
    407 L_4706E99D:
    408     RECOMP_ICALL(0x4706ED30u); /* 0x4706E99D: call 0x4706ed30 */ /* not lifted */
    409     RECOMP_FLAGS_IN();
    410     ecx = MEM32(esi + 0x8); /* 0x4706E9A2: mov ecx, dword ptr [esi + 8] */
    411     eax = MEM32(esi); /* 0x4706E9A5: mov eax, dword ptr [esi] */
    412     edx = MEM32(ecx); /* 0x4706E9A7: mov edx, dword ptr [ecx] */
    413     PUSH32(esp, eax); /* 0x4706E9A9: push eax */
    414     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706E9AA: call dword ptr [edx + 0xc] */
    415     RECOMP_FLAGS_IN();
    416 L_4706E9AD:
    417     edi = POP32_VAL(esp); /* 0x4706E9AD: pop edi */
    418     MEM32(esi) = 0; /* 0x4706E9AE: mov dword ptr [esi], 0 */
    419     esi = POP32_VAL(esp); /* 0x4706E9B4: pop esi */
    420     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706E9B5: ret  */
    421 L_470A8BE0:
    422     ecx = ebp + (-0x18); /* 0x470A8BE0: lea ecx, [ebp - 0x18] */
    423     RECOMP_BACKEDGE();
    424     goto L_4706E960; /* 0x470A8BE3: jmp 0x4706e960 */
    425     { RECOMP_REGS_OUT(); return; } /* end of function */
    426     RECOMP_REGS_OUT();
    427 }
    428 
    429 void sub_470A8BE8(void) {
    430     int _fpu_cmp = 0;
    431     uint32_t _cf = 0;
    432     int _df = 1;
    433     uint32_t _flag_k = FK_NONE;
    434     uint32_t _flag_a = 0, _flag_b = 0;
    435     uint32_t _itail_tgt = 0;
    436     RECOMP_REGS_LOCALS
    437     RECOMP_ENTER(0x470A8BE8u);
    438 
    439     goto L_470A8BE8;
    440 L_47007240:
    441     PUSH32(esp, 0); /* 0x47007240: push 0 */
    442     PUSH32(esp, 0); /* 0x47007242: push 0 */
    443     PUSH32(esp, 0); /* 0x47007244: push 0 */
    444     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    445     RECOMP_FLAGS_IN();
    446     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    447 L_470A8BE8:
    448     ecx = MEM32(ebp + 0x4); /* 0x470A8BE8: mov ecx, dword ptr [ebp + 4] */
    449     RECOMP_BACKEDGE();
    450     goto L_47007240; /* 0x470A8BEB: jmp 0x47007240 */
    451     { RECOMP_REGS_OUT(); return; } /* end of function */
    452     RECOMP_REGS_OUT();
    453 }
    454 
    455 void sub_470A8BF0(void) {
    456     int _fpu_cmp = 0;
    457     uint32_t _cf = 0;
    458     int _df = 1;
    459     uint32_t _flag_k = FK_NONE;
    460     uint32_t _flag_a = 0, _flag_b = 0;
    461     uint32_t _itail_tgt = 0;
    462     RECOMP_REGS_LOCALS
    463     RECOMP_ENTER(0x470A8BF0u);
    464 
    465 L_470A8BF0:
    466     eax = MEM32(ebp + 0x4); /* 0x470A8BF0: mov eax, dword ptr [ebp + 4] */
    467     PUSH32(esp, eax); /* 0x470A8BF3: push eax */
    468     ecx = MEM32(ebp + (-0x1C)); /* 0x470A8BF4: mov ecx, dword ptr [ebp - 0x1c] */
    469     PUSH32(esp, ecx); /* 0x470A8BF7: push ecx */
    470     RECOMP_ICALL(0x470041D0u); /* 0x470A8BF8: call 0x470041d0 */ /* not lifted */
    471     RECOMP_FLAGS_IN();
    472     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    473     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    474     esp = esp + 8; /* 0x470A8BFD: add esp, 8 */
    475     _flag_k = FK_ADD;
    476     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8C00: ret  */
    477     RECOMP_REGS_OUT();
    478 }
    479 
    480 void sub_470A8C01(void) {
    481     int _fpu_cmp = 0;
    482     uint32_t _cf = 0;
    483     int _df = 1;
    484     uint32_t _flag_k = FK_NONE;
    485     uint32_t _flag_a = 0, _flag_b = 0;
    486     uint32_t _itail_tgt = 0;
    487     RECOMP_REGS_LOCALS
    488     RECOMP_ENTER(0x470A8C01u);
    489 
    490     goto L_470A8C01;
    491 L_47007240:
    492     PUSH32(esp, 0); /* 0x47007240: push 0 */
    493     PUSH32(esp, 0); /* 0x47007242: push 0 */
    494     PUSH32(esp, 0); /* 0x47007244: push 0 */
    495     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    496     RECOMP_FLAGS_IN();
    497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    498 L_470A8C01:
    499     ecx = MEM32(ebp + 0x4); /* 0x470A8C01: mov ecx, dword ptr [ebp + 4] */
    500     RECOMP_BACKEDGE();
    501     goto L_47007240; /* 0x470A8C04: jmp 0x47007240 */
    502     { RECOMP_REGS_OUT(); return; } /* end of function */
    503     RECOMP_REGS_OUT();
    504 }
    505 
    506 void sub_470A8C09(void) {
    507     int _fpu_cmp = 0;
    508     uint32_t _cf = 0;
    509     int _df = 1;
    510     uint32_t _flag_k = FK_NONE;
    511     uint32_t _flag_a = 0, _flag_b = 0;
    512     uint32_t _itail_tgt = 0;
    513     RECOMP_REGS_LOCALS
    514     RECOMP_ENTER(0x470A8C09u);
    515 
    516     goto L_470A8C09;
    517 L_47007240:
    518     PUSH32(esp, 0); /* 0x47007240: push 0 */
    519     PUSH32(esp, 0); /* 0x47007242: push 0 */
    520     PUSH32(esp, 0); /* 0x47007244: push 0 */
    521     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    522     RECOMP_FLAGS_IN();
    523     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    524 L_470A8C09:
    525     ecx = MEM32(ebp + 0x4); /* 0x470A8C09: mov ecx, dword ptr [ebp + 4] */
    526     RECOMP_BACKEDGE();
    527     goto L_47007240; /* 0x470A8C0C: jmp 0x47007240 */
    528     { RECOMP_REGS_OUT(); return; } /* end of function */
    529     RECOMP_REGS_OUT();
    530 }
    531 
    532 void sub_470A8C11(void) {
    533     int _fpu_cmp = 0;
    534     uint32_t _cf = 0;
    535     int _df = 1;
    536     uint32_t _flag_k = FK_NONE;
    537     uint32_t _flag_a = 0, _flag_b = 0;
    538     uint32_t _itail_tgt = 0;
    539     RECOMP_REGS_LOCALS
    540     RECOMP_ENTER(0x470A8C11u);
    541 
    542     goto L_470A8C11;
    543 L_470A33EC:
    544     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    545 L_470A8C11:
    546     eax = 0x470B6AB8u; /* 0x470A8C11: mov eax, 0x470b6ab8 */
    547 L_470A8C16:
    548     RECOMP_BACKEDGE();
    549     goto L_470A33EC; /* 0x470A8C16: jmp 0x470a33ec */
    550     { RECOMP_REGS_OUT(); return; } /* end of function */
    551   _ljump:
    552     switch (_itail_tgt) {
    553       case 0x470A33ECu: goto L_470A33EC;
    554       case 0x470A8C11u: goto L_470A8C11;
    555       case 0x470A8C16u: goto L_470A8C16;
    556       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    557     }
    558     RECOMP_REGS_OUT();
    559 }
    560 
    561 void sub_470A8C20(void) {
    562     int _fpu_cmp = 0;
    563     uint32_t _cf = 0;
    564     int _df = 1;
    565     uint32_t _flag_k = FK_NONE;
    566     uint32_t _flag_a = 0, _flag_b = 0;
    567     uint32_t _itail_tgt = 0;
    568     RECOMP_REGS_LOCALS
    569     RECOMP_ENTER(0x470A8C20u);
    570 
    571 L_470A8C20:
    572     eax = MEM32(0x4710EBF0); /* 0x470A8C20: mov eax, dword ptr [0x4710ebf0] */
    573     PUSH32(esp, eax); /* 0x470A8C25: push eax */
    574     ecx = MEM32(ebp + (-0x6C)); /* 0x470A8C26: mov ecx, dword ptr [ebp - 0x6c] */
    575     PUSH32(esp, ecx); /* 0x470A8C29: push ecx */
    576     RECOMP_ICALL(0x470041D0u); /* 0x470A8C2A: call 0x470041d0 */ /* not lifted */
    577     RECOMP_FLAGS_IN();
    578     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    579     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    580     esp = esp + 8; /* 0x470A8C2F: add esp, 8 */
    581     _flag_k = FK_ADD;
    582     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8C32: ret  */
    583     RECOMP_REGS_OUT();
    584 }
    585 
    586 void sub_470A8C33(void) {
    587     int _fpu_cmp = 0;
    588     uint32_t _cf = 0;
    589     int _df = 1;
    590     uint32_t _flag_k = FK_NONE;
    591     uint32_t _flag_a = 0, _flag_b = 0;
    592     uint32_t _itail_tgt = 0;
    593     RECOMP_REGS_LOCALS
    594     RECOMP_ENTER(0x470A8C33u);
    595 
    596     goto L_470A8C33;
    597 L_47007240:
    598     PUSH32(esp, 0); /* 0x47007240: push 0 */
    599     PUSH32(esp, 0); /* 0x47007242: push 0 */
    600     PUSH32(esp, 0); /* 0x47007244: push 0 */
    601     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    602     RECOMP_FLAGS_IN();
    603     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    604 L_470A8C33:
    605     ecx = ebp + (-0x50); /* 0x470A8C33: lea ecx, [ebp - 0x50] */
    606     RECOMP_BACKEDGE();
    607     goto L_47007240; /* 0x470A8C36: jmp 0x47007240 */
    608     { RECOMP_REGS_OUT(); return; } /* end of function */
    609     RECOMP_REGS_OUT();
    610 }
    611 
    612 void sub_470A8C3B(void) {
    613     int _fpu_cmp = 0;
    614     uint32_t _cf = 0;
    615     int _df = 1;
    616     uint32_t _flag_k = FK_NONE;
    617     uint32_t _flag_a = 0, _flag_b = 0;
    618     uint32_t _itail_tgt = 0;
    619     RECOMP_REGS_LOCALS
    620     RECOMP_ENTER(0x470A8C3Bu);
    621 
    622     goto L_470A8C3B;
    623 L_4706EA70:
    624     PUSH32(esp, esi); /* 0x4706EA70: push esi */
    625     esi = ecx; /* 0x4706EA71: mov esi, ecx */
    626     eax = MEM32(esi); /* 0x4706EA73: mov eax, dword ptr [esi] */
    627     PUSH32(esp, edi); /* 0x4706EA75: push edi */
    628     edi = MEM32(eax); /* 0x4706EA76: mov edi, dword ptr [eax] */
    629     /* cmp edi, eax */ /* 0x4706EA78: cmp edi, eax */
    630     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    632     _flag_k = FK_CMP;
    633     if (CMP_EQ(_flag_a, _flag_b)) goto L_4706EAA3; /* 0x4706EA7A: je 0x4706eaa3 */
    634 L_4706EA7C:
    635     PUSH32(esp, ebx); /* 0x4706EA7C: push ebx */
    636 L_4706EA7D:
    637     ebx = edi; /* 0x4706EA7D: mov ebx, edi */
    638     /* test ebx, ebx */ /* 0x4706EA7F: test ebx, ebx */
    639     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    640     _cf = 0;
    641     _flag_k = FK_TEST;
    642     edi = MEM32(edi); /* 0x4706EA81: mov edi, dword ptr [edi] */
    643     if (TEST_Z(_flag_a, _flag_b)) goto L_4706EA95; /* 0x4706EA83: je 0x4706ea95 */
    644 L_4706EA85:
    645     ecx = ebx; /* 0x4706EA85: mov ecx, ebx */
    646     RECOMP_ICALL(0x47076010u); /* 0x4706EA87: call 0x47076010 */ /* not lifted */
    647     RECOMP_FLAGS_IN();
    648     ecx = MEM32(esi + 0x8); /* 0x4706EA8C: mov ecx, dword ptr [esi + 8] */
    649     eax = MEM32(ecx); /* 0x4706EA8F: mov eax, dword ptr [ecx] */
    650     PUSH32(esp, ebx); /* 0x4706EA91: push ebx */
    651     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706EA92: call dword ptr [eax + 0xc] */
    652     RECOMP_FLAGS_IN();
    653 L_4706EA95:
    654     ecx = MEM32(esi + 0x4); /* 0x4706EA95: mov ecx, dword ptr [esi + 4] */
    655     eax = MEM32(esi); /* 0x4706EA98: mov eax, dword ptr [esi] */
    656     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    657     ecx = ecx - 1; /* 0x4706EA9A: dec ecx */
    658     _flag_k = FK_DEC;
    659     /* cmp edi, eax */ /* 0x4706EA9B: cmp edi, eax */
    660     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    662     _flag_k = FK_CMP;
    663     MEM32(esi + 0x4) = ecx; /* 0x4706EA9D: mov dword ptr [esi + 4], ecx */
    664     RECOMP_BACKEDGE();
    665     if (CMP_NE(_flag_a, _flag_b)) goto L_4706EA7D; /* 0x4706EAA0: jne 0x4706ea7d */
    666 L_4706EAA2:
    667     ebx = POP32_VAL(esp); /* 0x4706EAA2: pop ebx */
    668 L_4706EAA3:
    669     eax = MEM32(esi); /* 0x4706EAA3: mov eax, dword ptr [esi] */
    670     MEM32(eax) = eax; /* 0x4706EAA5: mov dword ptr [eax], eax */
    671     ecx = MEM32(esi); /* 0x4706EAA7: mov ecx, dword ptr [esi] */
    672     /* test ecx, ecx */ /* 0x4706EAA9: test ecx, ecx */
    673     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    674     _cf = 0;
    675     _flag_k = FK_TEST;
    676     if (TEST_Z(_flag_a, _flag_b)) goto L_4706EABD; /* 0x4706EAAB: je 0x4706eabd */
    677 L_4706EAAD:
    678     RECOMP_ICALL(0x47076010u); /* 0x4706EAAD: call 0x47076010 */ /* not lifted */
    679     RECOMP_FLAGS_IN();
    680     ecx = MEM32(esi + 0x8); /* 0x4706EAB2: mov ecx, dword ptr [esi + 8] */
    681     eax = MEM32(esi); /* 0x4706EAB5: mov eax, dword ptr [esi] */
    682     edx = MEM32(ecx); /* 0x4706EAB7: mov edx, dword ptr [ecx] */
    683     PUSH32(esp, eax); /* 0x4706EAB9: push eax */
    684     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706EABA: call dword ptr [edx + 0xc] */
    685     RECOMP_FLAGS_IN();
    686 L_4706EABD:
    687     edi = POP32_VAL(esp); /* 0x4706EABD: pop edi */
    688     MEM32(esi) = 0; /* 0x4706EABE: mov dword ptr [esi], 0 */
    689     esi = POP32_VAL(esp); /* 0x4706EAC4: pop esi */
    690     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706EAC5: ret  */
    691 L_470A8C3B:
    692     ecx = ebp + (-0x5C); /* 0x470A8C3B: lea ecx, [ebp - 0x5c] */
    693     RECOMP_BACKEDGE();
    694     goto L_4706EA70; /* 0x470A8C3E: jmp 0x4706ea70 */
    695     { RECOMP_REGS_OUT(); return; } /* end of function */
    696     RECOMP_REGS_OUT();
    697 }
    698 
    699 void sub_470A8C43(void) {
    700     int _fpu_cmp = 0;
    701     uint32_t _cf = 0;
    702     int _df = 1;
    703     uint32_t _flag_k = FK_NONE;
    704     uint32_t _flag_a = 0, _flag_b = 0;
    705     uint32_t _itail_tgt = 0;
    706     RECOMP_REGS_LOCALS
    707     RECOMP_ENTER(0x470A8C43u);
    708 
    709     goto L_470A8C43;
    710 L_470A33EC:
    711     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    712 L_470A8C43:
    713     eax = 0x470B6B00u; /* 0x470A8C43: mov eax, 0x470b6b00 */
    714 L_470A8C48:
    715     RECOMP_BACKEDGE();
    716     goto L_470A33EC; /* 0x470A8C48: jmp 0x470a33ec */
    717     { RECOMP_REGS_OUT(); return; } /* end of function */
    718   _ljump:
    719     switch (_itail_tgt) {
    720       case 0x470A33ECu: goto L_470A33EC;
    721       case 0x470A8C43u: goto L_470A8C43;
    722       case 0x470A8C48u: goto L_470A8C48;
    723       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    724     }
    725     RECOMP_REGS_OUT();
    726 }
    727 
    728 void sub_470A8C50(void) {
    729     int _fpu_cmp = 0;
    730     uint32_t _cf = 0;
    731     int _df = 1;
    732     uint32_t _flag_k = FK_NONE;
    733     uint32_t _flag_a = 0, _flag_b = 0;
    734     uint32_t _itail_tgt = 0;
    735     RECOMP_REGS_LOCALS
    736     RECOMP_ENTER(0x470A8C50u);
    737 
    738 L_470A8C50:
    739     eax = MEM32(ebp + (-0x18)); /* 0x470A8C50: mov eax, dword ptr [ebp - 0x18] */
    740     PUSH32(esp, eax); /* 0x470A8C53: push eax */
    741     ecx = MEM32(ebp + (-0x1C)); /* 0x470A8C54: mov ecx, dword ptr [ebp - 0x1c] */
    742     PUSH32(esp, ecx); /* 0x470A8C57: push ecx */
    743     RECOMP_ICALL(0x470041D0u); /* 0x470A8C58: call 0x470041d0 */ /* not lifted */
    744     RECOMP_FLAGS_IN();
    745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    747     esp = esp + 8; /* 0x470A8C5D: add esp, 8 */
    748     _flag_k = FK_ADD;
    749     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8C60: ret  */
    750     RECOMP_REGS_OUT();
    751 }
    752 
    753 void sub_470A8C61(void) {
    754     int _fpu_cmp = 0;
    755     uint32_t _cf = 0;
    756     int _df = 1;
    757     uint32_t _flag_k = FK_NONE;
    758     uint32_t _flag_a = 0, _flag_b = 0;
    759     uint32_t _itail_tgt = 0;
    760     RECOMP_REGS_LOCALS
    761     RECOMP_ENTER(0x470A8C61u);
    762 
    763     goto L_470A8C61;
    764 L_4706EA70:
    765     PUSH32(esp, esi); /* 0x4706EA70: push esi */
    766     esi = ecx; /* 0x4706EA71: mov esi, ecx */
    767     eax = MEM32(esi); /* 0x4706EA73: mov eax, dword ptr [esi] */
    768     PUSH32(esp, edi); /* 0x4706EA75: push edi */
    769     edi = MEM32(eax); /* 0x4706EA76: mov edi, dword ptr [eax] */
    770     /* cmp edi, eax */ /* 0x4706EA78: cmp edi, eax */
    771     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    773     _flag_k = FK_CMP;
    774     if (CMP_EQ(_flag_a, _flag_b)) goto L_4706EAA3; /* 0x4706EA7A: je 0x4706eaa3 */
    775 L_4706EA7C:
    776     PUSH32(esp, ebx); /* 0x4706EA7C: push ebx */
    777 L_4706EA7D:
    778     ebx = edi; /* 0x4706EA7D: mov ebx, edi */
    779     /* test ebx, ebx */ /* 0x4706EA7F: test ebx, ebx */
    780     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    781     _cf = 0;
    782     _flag_k = FK_TEST;
    783     edi = MEM32(edi); /* 0x4706EA81: mov edi, dword ptr [edi] */
    784     if (TEST_Z(_flag_a, _flag_b)) goto L_4706EA95; /* 0x4706EA83: je 0x4706ea95 */
    785 L_4706EA85:
    786     ecx = ebx; /* 0x4706EA85: mov ecx, ebx */
    787     RECOMP_ICALL(0x47076010u); /* 0x4706EA87: call 0x47076010 */ /* not lifted */
    788     RECOMP_FLAGS_IN();
    789     ecx = MEM32(esi + 0x8); /* 0x4706EA8C: mov ecx, dword ptr [esi + 8] */
    790     eax = MEM32(ecx); /* 0x4706EA8F: mov eax, dword ptr [ecx] */
    791     PUSH32(esp, ebx); /* 0x4706EA91: push ebx */
    792     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4706EA92: call dword ptr [eax + 0xc] */
    793     RECOMP_FLAGS_IN();
    794 L_4706EA95:
    795     ecx = MEM32(esi + 0x4); /* 0x4706EA95: mov ecx, dword ptr [esi + 4] */
    796     eax = MEM32(esi); /* 0x4706EA98: mov eax, dword ptr [esi] */
    797     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    798     ecx = ecx - 1; /* 0x4706EA9A: dec ecx */
    799     _flag_k = FK_DEC;
    800     /* cmp edi, eax */ /* 0x4706EA9B: cmp edi, eax */
    801     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    803     _flag_k = FK_CMP;
    804     MEM32(esi + 0x4) = ecx; /* 0x4706EA9D: mov dword ptr [esi + 4], ecx */
    805     RECOMP_BACKEDGE();
    806     if (CMP_NE(_flag_a, _flag_b)) goto L_4706EA7D; /* 0x4706EAA0: jne 0x4706ea7d */
    807 L_4706EAA2:
    808     ebx = POP32_VAL(esp); /* 0x4706EAA2: pop ebx */
    809 L_4706EAA3:
    810     eax = MEM32(esi); /* 0x4706EAA3: mov eax, dword ptr [esi] */
    811     MEM32(eax) = eax; /* 0x4706EAA5: mov dword ptr [eax], eax */
    812     ecx = MEM32(esi); /* 0x4706EAA7: mov ecx, dword ptr [esi] */
    813     /* test ecx, ecx */ /* 0x4706EAA9: test ecx, ecx */
    814     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    815     _cf = 0;
    816     _flag_k = FK_TEST;
    817     if (TEST_Z(_flag_a, _flag_b)) goto L_4706EABD; /* 0x4706EAAB: je 0x4706eabd */
    818 L_4706EAAD:
    819     RECOMP_ICALL(0x47076010u); /* 0x4706EAAD: call 0x47076010 */ /* not lifted */
    820     RECOMP_FLAGS_IN();
    821     ecx = MEM32(esi + 0x8); /* 0x4706EAB2: mov ecx, dword ptr [esi + 8] */
    822     eax = MEM32(esi); /* 0x4706EAB5: mov eax, dword ptr [esi] */
    823     edx = MEM32(ecx); /* 0x4706EAB7: mov edx, dword ptr [ecx] */
    824     PUSH32(esp, eax); /* 0x4706EAB9: push eax */
    825     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706EABA: call dword ptr [edx + 0xc] */
    826     RECOMP_FLAGS_IN();
    827 L_4706EABD:
    828     edi = POP32_VAL(esp); /* 0x4706EABD: pop edi */
    829     MEM32(esi) = 0; /* 0x4706EABE: mov dword ptr [esi], 0 */
    830     esi = POP32_VAL(esp); /* 0x4706EAC4: pop esi */
    831     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706EAC5: ret  */
    832 L_470A8C61:
    833     ecx = ebp + (-0x18); /* 0x470A8C61: lea ecx, [ebp - 0x18] */
    834     RECOMP_BACKEDGE();
    835     goto L_4706EA70; /* 0x470A8C64: jmp 0x4706ea70 */
    836     { RECOMP_REGS_OUT(); return; } /* end of function */
    837     RECOMP_REGS_OUT();
    838 }
    839 
    840 void sub_470A8C69(void) {
    841     int _fpu_cmp = 0;
    842     uint32_t _cf = 0;
    843     int _df = 1;
    844     uint32_t _flag_k = FK_NONE;
    845     uint32_t _flag_a = 0, _flag_b = 0;
    846     uint32_t _itail_tgt = 0;
    847     RECOMP_REGS_LOCALS
    848     RECOMP_ENTER(0x470A8C69u);
    849 
    850     goto L_470A8C69;
    851 L_470A33EC:
    852     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    853 L_470A8C69:
    854     eax = 0x470B6B38u; /* 0x470A8C69: mov eax, 0x470b6b38 */
    855 L_470A8C6E:
    856     RECOMP_BACKEDGE();
    857     goto L_470A33EC; /* 0x470A8C6E: jmp 0x470a33ec */
    858     { RECOMP_REGS_OUT(); return; } /* end of function */
    859   _ljump:
    860     switch (_itail_tgt) {
    861       case 0x470A33ECu: goto L_470A33EC;
    862       case 0x470A8C69u: goto L_470A8C69;
    863       case 0x470A8C6Eu: goto L_470A8C6E;
    864       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    865     }
    866     RECOMP_REGS_OUT();
    867 }
    868 
    869 void sub_470A8C80(void) {
    870     int _fpu_cmp = 0;
    871     uint32_t _cf = 0;
    872     int _df = 1;
    873     uint32_t _flag_k = FK_NONE;
    874     uint32_t _flag_a = 0, _flag_b = 0;
    875     uint32_t _itail_tgt = 0;
    876     RECOMP_REGS_LOCALS
    877     RECOMP_ENTER(0x470A8C80u);
    878 
    879     goto L_470A8C80;
    880 L_47007240:
    881     PUSH32(esp, 0); /* 0x47007240: push 0 */
    882     PUSH32(esp, 0); /* 0x47007242: push 0 */
    883     PUSH32(esp, 0); /* 0x47007244: push 0 */
    884     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    885     RECOMP_FLAGS_IN();
    886     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    887 L_470A8C80:
    888     ecx = ebp + (-0x228); /* 0x470A8C80: lea ecx, [ebp - 0x228] */
    889     RECOMP_BACKEDGE();
    890     goto L_47007240; /* 0x470A8C86: jmp 0x47007240 */
    891     { RECOMP_REGS_OUT(); return; } /* end of function */
    892     RECOMP_REGS_OUT();
    893 }
    894 
    895 void sub_470A8C8B(void) {
    896     int _fpu_cmp = 0;
    897     uint32_t _cf = 0;
    898     int _df = 1;
    899     uint32_t _flag_k = FK_NONE;
    900     uint32_t _flag_a = 0, _flag_b = 0;
    901     uint32_t _itail_tgt = 0;
    902     RECOMP_REGS_LOCALS
    903     RECOMP_ENTER(0x470A8C8Bu);
    904 
    905     goto L_470A8C8B;
    906 L_47007240:
    907     PUSH32(esp, 0); /* 0x47007240: push 0 */
    908     PUSH32(esp, 0); /* 0x47007242: push 0 */
    909     PUSH32(esp, 0); /* 0x47007244: push 0 */
    910     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    911     RECOMP_FLAGS_IN();
    912     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    913 L_470A8C8B:
    914     ecx = ebp + (-0x240); /* 0x470A8C8B: lea ecx, [ebp - 0x240] */
    915     RECOMP_BACKEDGE();
    916     goto L_47007240; /* 0x470A8C91: jmp 0x47007240 */
    917     { RECOMP_REGS_OUT(); return; } /* end of function */
    918     RECOMP_REGS_OUT();
    919 }
    920 
    921 void sub_470A8C96(void) {
    922     int _fpu_cmp = 0;
    923     uint32_t _cf = 0;
    924     int _df = 1;
    925     uint32_t _flag_k = FK_NONE;
    926     uint32_t _flag_a = 0, _flag_b = 0;
    927     uint32_t _itail_tgt = 0;
    928     RECOMP_REGS_LOCALS
    929     RECOMP_ENTER(0x470A8C96u);
    930 
    931     goto L_470A8C96;
    932 L_470A33EC:
    933     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
    934 L_470A8C96:
    935     eax = 0x470B6B68u; /* 0x470A8C96: mov eax, 0x470b6b68 */
    936 L_470A8C9B:
    937     RECOMP_BACKEDGE();
    938     goto L_470A33EC; /* 0x470A8C9B: jmp 0x470a33ec */
    939     { RECOMP_REGS_OUT(); return; } /* end of function */
    940   _ljump:
    941     switch (_itail_tgt) {
    942       case 0x470A33ECu: goto L_470A33EC;
    943       case 0x470A8C96u: goto L_470A8C96;
    944       case 0x470A8C9Bu: goto L_470A8C9B;
    945       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    946     }
    947     RECOMP_REGS_OUT();
    948 }
    949 
    950 void sub_470A8CA0(void) {
    951     int _fpu_cmp = 0;
    952     uint32_t _cf = 0;
    953     int _df = 1;
    954     uint32_t _flag_k = FK_NONE;
    955     uint32_t _flag_a = 0, _flag_b = 0;
    956     uint32_t _itail_tgt = 0;
    957     RECOMP_REGS_LOCALS
    958     RECOMP_ENTER(0x470A8CA0u);
    959 
    960     goto L_470A8CA0;
    961 L_47007240:
    962     PUSH32(esp, 0); /* 0x47007240: push 0 */
    963     PUSH32(esp, 0); /* 0x47007242: push 0 */
    964     PUSH32(esp, 0); /* 0x47007244: push 0 */
    965     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    966     RECOMP_FLAGS_IN();
    967     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    968 L_470A8CA0:
    969     ecx = ebp + (-0x130); /* 0x470A8CA0: lea ecx, [ebp - 0x130] */
    970     RECOMP_BACKEDGE();
    971     goto L_47007240; /* 0x470A8CA6: jmp 0x47007240 */
    972     { RECOMP_REGS_OUT(); return; } /* end of function */
    973     RECOMP_REGS_OUT();
    974 }
    975 
    976 void sub_470A8CAB(void) {
    977     int _fpu_cmp = 0;
    978     uint32_t _cf = 0;
    979     int _df = 1;
    980     uint32_t _flag_k = FK_NONE;
    981     uint32_t _flag_a = 0, _flag_b = 0;
    982     uint32_t _itail_tgt = 0;
    983     RECOMP_REGS_LOCALS
    984     RECOMP_ENTER(0x470A8CABu);
    985 
    986     goto L_470A8CAB;
    987 L_47007240:
    988     PUSH32(esp, 0); /* 0x47007240: push 0 */
    989     PUSH32(esp, 0); /* 0x47007242: push 0 */
    990     PUSH32(esp, 0); /* 0x47007244: push 0 */
    991     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
    992     RECOMP_FLAGS_IN();
    993     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
    994 L_470A8CAB:
    995     ecx = ebp + (-0x148); /* 0x470A8CAB: lea ecx, [ebp - 0x148] */
    996     RECOMP_BACKEDGE();
    997     goto L_47007240; /* 0x470A8CB1: jmp 0x47007240 */
    998     { RECOMP_REGS_OUT(); return; } /* end of function */
    999     RECOMP_REGS_OUT();
   1000 }
   1001 
   1002 void sub_470A8CB6(void) {
   1003     int _fpu_cmp = 0;
   1004     uint32_t _cf = 0;
   1005     int _df = 1;
   1006     uint32_t _flag_k = FK_NONE;
   1007     uint32_t _flag_a = 0, _flag_b = 0;
   1008     uint32_t _itail_tgt = 0;
   1009     RECOMP_REGS_LOCALS
   1010     RECOMP_ENTER(0x470A8CB6u);
   1011 
   1012     goto L_470A8CB6;
   1013 L_470A33EC:
   1014     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1015 L_470A8CB6:
   1016     eax = 0x470B6BA0u; /* 0x470A8CB6: mov eax, 0x470b6ba0 */
   1017 L_470A8CBB:
   1018     RECOMP_BACKEDGE();
   1019     goto L_470A33EC; /* 0x470A8CBB: jmp 0x470a33ec */
   1020     { RECOMP_REGS_OUT(); return; } /* end of function */
   1021   _ljump:
   1022     switch (_itail_tgt) {
   1023       case 0x470A33ECu: goto L_470A33EC;
   1024       case 0x470A8CB6u: goto L_470A8CB6;
   1025       case 0x470A8CBBu: goto L_470A8CBB;
   1026       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1027     }
   1028     RECOMP_REGS_OUT();
   1029 }
   1030 
   1031 void sub_470A8CC0(void) {
   1032     int _fpu_cmp = 0;
   1033     uint32_t _cf = 0;
   1034     int _df = 1;
   1035     uint32_t _flag_k = FK_NONE;
   1036     uint32_t _flag_a = 0, _flag_b = 0;
   1037     uint32_t _itail_tgt = 0;
   1038     RECOMP_REGS_LOCALS
   1039     RECOMP_ENTER(0x470A8CC0u);
   1040 
   1041 L_470A8CC0:
   1042     eax = MEM32(ebp + (-0x10)); /* 0x470A8CC0: mov eax, dword ptr [ebp - 0x10] */
   1043     ecx = MEM32(eax); /* 0x470A8CC3: mov ecx, dword ptr [eax] */
   1044     PUSH32(esp, ecx); /* 0x470A8CC5: push ecx */
   1045     edx = MEM32(ebp + 0x4); /* 0x470A8CC6: mov edx, dword ptr [ebp + 4] */
   1046     PUSH32(esp, edx); /* 0x470A8CC9: push edx */
   1047     RECOMP_ICALL(0x470041D0u); /* 0x470A8CCA: call 0x470041d0 */ /* not lifted */
   1048     RECOMP_FLAGS_IN();
   1049     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1050     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1051     esp = esp + 8; /* 0x470A8CCF: add esp, 8 */
   1052     _flag_k = FK_ADD;
   1053     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8CD2: ret  */
   1054     RECOMP_REGS_OUT();
   1055 }
   1056 
   1057 void sub_470A8CD3(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(0x470A8CD3u);
   1066 
   1067     goto L_470A8CD3;
   1068 L_470A33EC:
   1069     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1070 L_470A8CD3:
   1071     eax = 0x470B6BD8u; /* 0x470A8CD3: mov eax, 0x470b6bd8 */
   1072 L_470A8CD8:
   1073     RECOMP_BACKEDGE();
   1074     goto L_470A33EC; /* 0x470A8CD8: jmp 0x470a33ec */
   1075     { RECOMP_REGS_OUT(); return; } /* end of function */
   1076   _ljump:
   1077     switch (_itail_tgt) {
   1078       case 0x470A33ECu: goto L_470A33EC;
   1079       case 0x470A8CD3u: goto L_470A8CD3;
   1080       case 0x470A8CD8u: goto L_470A8CD8;
   1081       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1082     }
   1083     RECOMP_REGS_OUT();
   1084 }
   1085 
   1086 void sub_470A8CE0(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(0x470A8CE0u);
   1095 
   1096 L_470A8CE0:
   1097     eax = MEM32(ebp + 0x4); /* 0x470A8CE0: mov eax, dword ptr [ebp + 4] */
   1098     PUSH32(esp, eax); /* 0x470A8CE3: push eax */
   1099     ecx = MEM32(ebp + (-0x14)); /* 0x470A8CE4: mov ecx, dword ptr [ebp - 0x14] */
   1100     PUSH32(esp, ecx); /* 0x470A8CE7: push ecx */
   1101     RECOMP_ICALL(0x470041D0u); /* 0x470A8CE8: call 0x470041d0 */ /* not lifted */
   1102     RECOMP_FLAGS_IN();
   1103     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1104     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1105     esp = esp + 8; /* 0x470A8CED: add esp, 8 */
   1106     _flag_k = FK_ADD;
   1107     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8CF0: ret  */
   1108     RECOMP_REGS_OUT();
   1109 }
   1110 
   1111 void sub_470A8CF1(void) {
   1112     int _fpu_cmp = 0;
   1113     uint32_t _cf = 0;
   1114     int _df = 1;
   1115     uint32_t _flag_k = FK_NONE;
   1116     uint32_t _flag_a = 0, _flag_b = 0;
   1117     uint32_t _itail_tgt = 0;
   1118     RECOMP_REGS_LOCALS
   1119     RECOMP_ENTER(0x470A8CF1u);
   1120 
   1121     goto L_470A8CF1;
   1122 L_47007240:
   1123     PUSH32(esp, 0); /* 0x47007240: push 0 */
   1124     PUSH32(esp, 0); /* 0x47007242: push 0 */
   1125     PUSH32(esp, 0); /* 0x47007244: push 0 */
   1126     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
   1127     RECOMP_FLAGS_IN();
   1128     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
   1129 L_470A8CF1:
   1130     ecx = MEM32(ebp + (-0x10)); /* 0x470A8CF1: mov ecx, dword ptr [ebp - 0x10] */
   1131     RECOMP_BACKEDGE();
   1132     goto L_47007240; /* 0x470A8CF4: jmp 0x47007240 */
   1133     { RECOMP_REGS_OUT(); return; } /* end of function */
   1134     RECOMP_REGS_OUT();
   1135 }
   1136 
   1137 void sub_470A8CF9(void) {
   1138     int _fpu_cmp = 0;
   1139     uint32_t _cf = 0;
   1140     int _df = 1;
   1141     uint32_t _flag_k = FK_NONE;
   1142     uint32_t _flag_a = 0, _flag_b = 0;
   1143     uint32_t _itail_tgt = 0;
   1144     RECOMP_REGS_LOCALS
   1145     RECOMP_ENTER(0x470A8CF9u);
   1146 
   1147     goto L_470A8CF9;
   1148 L_470A33EC:
   1149     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1150 L_470A8CF9:
   1151     eax = 0x470B6C00u; /* 0x470A8CF9: mov eax, 0x470b6c00 */
   1152 L_470A8CFE:
   1153     RECOMP_BACKEDGE();
   1154     goto L_470A33EC; /* 0x470A8CFE: jmp 0x470a33ec */
   1155     { RECOMP_REGS_OUT(); return; } /* end of function */
   1156   _ljump:
   1157     switch (_itail_tgt) {
   1158       case 0x470A33ECu: goto L_470A33EC;
   1159       case 0x470A8CF9u: goto L_470A8CF9;
   1160       case 0x470A8CFEu: goto L_470A8CFE;
   1161       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1162     }
   1163     RECOMP_REGS_OUT();
   1164 }
   1165 
   1166 void sub_470A8D10(void) {
   1167     int _fpu_cmp = 0;
   1168     uint32_t _cf = 0;
   1169     int _df = 1;
   1170     uint32_t _flag_k = FK_NONE;
   1171     uint32_t _flag_a = 0, _flag_b = 0;
   1172     uint32_t _itail_tgt = 0;
   1173     RECOMP_REGS_LOCALS
   1174     RECOMP_ENTER(0x470A8D10u);
   1175 
   1176     goto L_470A8D10;
   1177 L_47007240:
   1178     PUSH32(esp, 0); /* 0x47007240: push 0 */
   1179     PUSH32(esp, 0); /* 0x47007242: push 0 */
   1180     PUSH32(esp, 0); /* 0x47007244: push 0 */
   1181     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
   1182     RECOMP_FLAGS_IN();
   1183     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
   1184 L_470A8D10:
   1185     ecx = MEM32(ebp + (-0x10)); /* 0x470A8D10: mov ecx, dword ptr [ebp - 0x10] */
   1186     RECOMP_BACKEDGE();
   1187     goto L_47007240; /* 0x470A8D13: jmp 0x47007240 */
   1188     { RECOMP_REGS_OUT(); return; } /* end of function */
   1189     RECOMP_REGS_OUT();
   1190 }
   1191 
   1192 void sub_470A8D18(void) {
   1193     int _fpu_cmp = 0;
   1194     uint32_t _cf = 0;
   1195     int _df = 1;
   1196     uint32_t _flag_k = FK_NONE;
   1197     uint32_t _flag_a = 0, _flag_b = 0;
   1198     uint32_t _itail_tgt = 0;
   1199     RECOMP_REGS_LOCALS
   1200     RECOMP_ENTER(0x470A8D18u);
   1201 
   1202     goto L_470A8D18;
   1203 L_470A33EC:
   1204     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1205 L_470A8D18:
   1206     eax = 0x470B6C30u; /* 0x470A8D18: mov eax, 0x470b6c30 */
   1207 L_470A8D1D:
   1208     RECOMP_BACKEDGE();
   1209     goto L_470A33EC; /* 0x470A8D1D: jmp 0x470a33ec */
   1210     { RECOMP_REGS_OUT(); return; } /* end of function */
   1211   _ljump:
   1212     switch (_itail_tgt) {
   1213       case 0x470A33ECu: goto L_470A33EC;
   1214       case 0x470A8D18u: goto L_470A8D18;
   1215       case 0x470A8D1Du: goto L_470A8D1D;
   1216       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1217     }
   1218     RECOMP_REGS_OUT();
   1219 }
   1220 
   1221 void sub_470A8D30(void) {
   1222     int _fpu_cmp = 0;
   1223     uint32_t _cf = 0;
   1224     int _df = 1;
   1225     uint32_t _flag_k = FK_NONE;
   1226     uint32_t _flag_a = 0, _flag_b = 0;
   1227     uint32_t _itail_tgt = 0;
   1228     RECOMP_REGS_LOCALS
   1229     RECOMP_ENTER(0x470A8D30u);
   1230 
   1231     goto L_470A8D30;
   1232 L_47007240:
   1233     PUSH32(esp, 0); /* 0x47007240: push 0 */
   1234     PUSH32(esp, 0); /* 0x47007242: push 0 */
   1235     PUSH32(esp, 0); /* 0x47007244: push 0 */
   1236     RECOMP_ICALL(0x470802D0u); /* 0x47007246: call 0x470802d0 */ /* not lifted */
   1237     RECOMP_FLAGS_IN();
   1238     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700724B: ret  */
   1239 L_470A8D30:
   1240     ecx = MEM32(ebp + 0x4); /* 0x470A8D30: mov ecx, dword ptr [ebp + 4] */
   1241     RECOMP_BACKEDGE();
   1242     goto L_47007240; /* 0x470A8D33: jmp 0x47007240 */
   1243     { RECOMP_REGS_OUT(); return; } /* end of function */
   1244     RECOMP_REGS_OUT();
   1245 }
   1246 
   1247 void sub_470A8D38(void) {
   1248     int _fpu_cmp = 0;
   1249     uint32_t _cf = 0;
   1250     int _df = 1;
   1251     uint32_t _flag_k = FK_NONE;
   1252     uint32_t _flag_a = 0, _flag_b = 0;
   1253     uint32_t _itail_tgt = 0;
   1254     RECOMP_REGS_LOCALS
   1255     RECOMP_ENTER(0x470A8D38u);
   1256 
   1257     goto L_470A8D38;
   1258 L_470A33EC:
   1259     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1260 L_470A8D38:
   1261     eax = 0x470B6C58u; /* 0x470A8D38: mov eax, 0x470b6c58 */
   1262 L_470A8D3D:
   1263     RECOMP_BACKEDGE();
   1264     goto L_470A33EC; /* 0x470A8D3D: jmp 0x470a33ec */
   1265     { RECOMP_REGS_OUT(); return; } /* end of function */
   1266   _ljump:
   1267     switch (_itail_tgt) {
   1268       case 0x470A33ECu: goto L_470A33EC;
   1269       case 0x470A8D38u: goto L_470A8D38;
   1270       case 0x470A8D3Du: goto L_470A8D3D;
   1271       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1272     }
   1273     RECOMP_REGS_OUT();
   1274 }
   1275 
   1276 void sub_470A8D50(void) {
   1277     int _fpu_cmp = 0;
   1278     uint32_t _cf = 0;
   1279     int _df = 1;
   1280     uint32_t _flag_k = FK_NONE;
   1281     uint32_t _flag_a = 0, _flag_b = 0;
   1282     uint32_t _itail_tgt = 0;
   1283     RECOMP_REGS_LOCALS
   1284     RECOMP_ENTER(0x470A8D50u);
   1285 
   1286 L_470A8D50:
   1287     eax = MEM32(ebp + 0x4); /* 0x470A8D50: mov eax, dword ptr [ebp + 4] */
   1288     PUSH32(esp, eax); /* 0x470A8D53: push eax */
   1289     ecx = MEM32(ebp + (-0x10)); /* 0x470A8D54: mov ecx, dword ptr [ebp - 0x10] */
   1290     PUSH32(esp, ecx); /* 0x470A8D57: push ecx */
   1291     RECOMP_ICALL(0x470041D0u); /* 0x470A8D58: call 0x470041d0 */ /* not lifted */
   1292     RECOMP_FLAGS_IN();
   1293     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1294     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1295     esp = esp + 8; /* 0x470A8D5D: add esp, 8 */
   1296     _flag_k = FK_ADD;
   1297     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8D60: ret  */
   1298     RECOMP_REGS_OUT();
   1299 }
   1300 
   1301 void sub_470A8D61(void) {
   1302     int _fpu_cmp = 0;
   1303     uint32_t _cf = 0;
   1304     int _df = 1;
   1305     uint32_t _flag_k = FK_NONE;
   1306     uint32_t _flag_a = 0, _flag_b = 0;
   1307     uint32_t _itail_tgt = 0;
   1308     RECOMP_REGS_LOCALS
   1309     RECOMP_ENTER(0x470A8D61u);
   1310 
   1311     goto L_470A8D61;
   1312 L_470A33EC:
   1313     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1314 L_470A8D61:
   1315     eax = 0x470B6C80u; /* 0x470A8D61: mov eax, 0x470b6c80 */
   1316 L_470A8D66:
   1317     RECOMP_BACKEDGE();
   1318     goto L_470A33EC; /* 0x470A8D66: jmp 0x470a33ec */
   1319     { RECOMP_REGS_OUT(); return; } /* end of function */
   1320   _ljump:
   1321     switch (_itail_tgt) {
   1322       case 0x470A33ECu: goto L_470A33EC;
   1323       case 0x470A8D61u: goto L_470A8D61;
   1324       case 0x470A8D66u: goto L_470A8D66;
   1325       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1326     }
   1327     RECOMP_REGS_OUT();
   1328 }
   1329 
   1330 void sub_470A8D70(void) {
   1331     int _fpu_cmp = 0;
   1332     uint32_t _cf = 0;
   1333     int _df = 1;
   1334     uint32_t _flag_k = FK_NONE;
   1335     uint32_t _flag_a = 0, _flag_b = 0;
   1336     uint32_t _itail_tgt = 0;
   1337     RECOMP_REGS_LOCALS
   1338     RECOMP_ENTER(0x470A8D70u);
   1339 
   1340     goto L_470A8D70;
   1341 L_47014F70:
   1342     MEM32(ecx) = 0x470AC510u; /* 0x47014F70: mov dword ptr [ecx], 0x470ac510 */
   1343     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014F76: ret  */
   1344 L_4707CCD0:
   1345     MEM32(ecx) = 0x470AC520u; /* 0x4707CCD0: mov dword ptr [ecx], 0x470ac520 */
   1346     RECOMP_BACKEDGE();
   1347     goto L_47014F70; /* 0x4707CCD6: jmp 0x47014f70 */
   1348 L_470A8D70:
   1349     ecx = ebp + (-0x28); /* 0x470A8D70: lea ecx, [ebp - 0x28] */
   1350     RECOMP_BACKEDGE();
   1351     goto L_4707CCD0; /* 0x470A8D73: jmp 0x4707ccd0 */
   1352     { RECOMP_REGS_OUT(); return; } /* end of function */
   1353     RECOMP_REGS_OUT();
   1354 }
   1355 
   1356 void sub_470A8D78(void) {
   1357     int _fpu_cmp = 0;
   1358     uint32_t _cf = 0;
   1359     int _df = 1;
   1360     uint32_t _flag_k = FK_NONE;
   1361     uint32_t _flag_a = 0, _flag_b = 0;
   1362     uint32_t _itail_tgt = 0;
   1363     RECOMP_REGS_LOCALS
   1364     RECOMP_ENTER(0x470A8D78u);
   1365 
   1366     goto L_470A8D78;
   1367 L_470A33EC:
   1368     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1369 L_470A8D78:
   1370     eax = 0x470B6CA8u; /* 0x470A8D78: mov eax, 0x470b6ca8 */
   1371 L_470A8D7D:
   1372     RECOMP_BACKEDGE();
   1373     goto L_470A33EC; /* 0x470A8D7D: jmp 0x470a33ec */
   1374     { RECOMP_REGS_OUT(); return; } /* end of function */
   1375   _ljump:
   1376     switch (_itail_tgt) {
   1377       case 0x470A33ECu: goto L_470A33EC;
   1378       case 0x470A8D78u: goto L_470A8D78;
   1379       case 0x470A8D7Du: goto L_470A8D7D;
   1380       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1381     }
   1382     RECOMP_REGS_OUT();
   1383 }
   1384 
   1385 void sub_470A8D90(void) {
   1386     int _fpu_cmp = 0;
   1387     uint32_t _cf = 0;
   1388     int _df = 1;
   1389     uint32_t _flag_k = FK_NONE;
   1390     uint32_t _flag_a = 0, _flag_b = 0;
   1391     uint32_t _itail_tgt = 0;
   1392     RECOMP_REGS_LOCALS
   1393     RECOMP_ENTER(0x470A8D90u);
   1394 
   1395     goto L_470A8D90;
   1396 L_470477E0:
   1397     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
   1398     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
   1399 L_470A8D90:
   1400     ecx = MEM32(ebp + (-0x10)); /* 0x470A8D90: mov ecx, dword ptr [ebp - 0x10] */
   1401     RECOMP_BACKEDGE();
   1402     goto L_470477E0; /* 0x470A8D93: jmp 0x470477e0 */
   1403     { RECOMP_REGS_OUT(); return; } /* end of function */
   1404     RECOMP_REGS_OUT();
   1405 }
   1406 
   1407 void sub_470A8D98(void) {
   1408     int _fpu_cmp = 0;
   1409     uint32_t _cf = 0;
   1410     int _df = 1;
   1411     uint32_t _flag_k = FK_NONE;
   1412     uint32_t _flag_a = 0, _flag_b = 0;
   1413     uint32_t _itail_tgt = 0;
   1414     RECOMP_REGS_LOCALS
   1415     RECOMP_ENTER(0x470A8D98u);
   1416 
   1417     goto L_470A8D98;
   1418 L_470A33EC:
   1419     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1420 L_470A8D98:
   1421     eax = 0x470B6CD0u; /* 0x470A8D98: mov eax, 0x470b6cd0 */
   1422 L_470A8D9D:
   1423     RECOMP_BACKEDGE();
   1424     goto L_470A33EC; /* 0x470A8D9D: jmp 0x470a33ec */
   1425     { RECOMP_REGS_OUT(); return; } /* end of function */
   1426   _ljump:
   1427     switch (_itail_tgt) {
   1428       case 0x470A33ECu: goto L_470A33EC;
   1429       case 0x470A8D98u: goto L_470A8D98;
   1430       case 0x470A8D9Du: goto L_470A8D9D;
   1431       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1432     }
   1433     RECOMP_REGS_OUT();
   1434 }
   1435 
   1436 void sub_470A8DB0(void) {
   1437     int _fpu_cmp = 0;
   1438     uint32_t _cf = 0;
   1439     int _df = 1;
   1440     uint32_t _flag_k = FK_NONE;
   1441     uint32_t _flag_a = 0, _flag_b = 0;
   1442     uint32_t _itail_tgt = 0;
   1443     RECOMP_REGS_LOCALS
   1444     RECOMP_ENTER(0x470A8DB0u);
   1445 
   1446     goto L_470A8DB0;
   1447 L_470477E0:
   1448     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
   1449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
   1450 L_470A8DB0:
   1451     ecx = MEM32(ebp + (-0x2C)); /* 0x470A8DB0: mov ecx, dword ptr [ebp - 0x2c] */
   1452     RECOMP_BACKEDGE();
   1453     goto L_470477E0; /* 0x470A8DB3: jmp 0x470477e0 */
   1454     { RECOMP_REGS_OUT(); return; } /* end of function */
   1455     RECOMP_REGS_OUT();
   1456 }
   1457 
   1458 void sub_470A8DB8(void) {
   1459     int _fpu_cmp = 0;
   1460     uint32_t _cf = 0;
   1461     int _df = 1;
   1462     uint32_t _flag_k = FK_NONE;
   1463     uint32_t _flag_a = 0, _flag_b = 0;
   1464     uint32_t _itail_tgt = 0;
   1465     RECOMP_REGS_LOCALS
   1466     RECOMP_ENTER(0x470A8DB8u);
   1467 
   1468     goto L_470A8DB8;
   1469 L_47046680:
   1470     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046680: push -1 */
   1471     PUSH32(esp, 0x470A6796u); /* 0x47046682: push 0x470a6796 */
   1472     eax = MEM32(FS_BASE + (0)); /* 0x47046687: mov eax, dword ptr fs:[0] */
   1473     PUSH32(esp, eax); /* 0x4704668D: push eax */
   1474     MEM32(FS_BASE + (0)) = esp; /* 0x4704668E: mov dword ptr fs:[0], esp */
   1475     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1477     esp = esp - 8; /* 0x47046695: sub esp, 8 */
   1478     _flag_k = FK_CMP;
   1479     PUSH32(esp, ebp); /* 0x47046698: push ebp */
   1480     ebp = ecx; /* 0x47046699: mov ebp, ecx */
   1481     PUSH32(esp, esi); /* 0x4704669B: push esi */
   1482     PUSH32(esp, edi); /* 0x4704669C: push edi */
   1483     MEM32(esp + 0xC) = ebp; /* 0x4704669D: mov dword ptr [esp + 0xc], ebp */
   1484     MEM32(ebp) = 0x470AD288u; /* 0x470466A1: mov dword ptr [ebp], 0x470ad288 */
   1485     esi = ebp + 0x10; /* 0x470466A8: lea esi, [ebp + 0x10] */
   1486     ecx = esi; /* 0x470466AB: mov ecx, esi */
   1487     MEM32(esp + 0x1C) = 2; /* 0x470466AD: mov dword ptr [esp + 0x1c], 2 */
   1488     RECOMP_ICALL(0x4707E7D0u); /* 0x470466B5: call 0x4707e7d0 */ /* not lifted */
   1489     RECOMP_FLAGS_IN();
   1490     MEM32(esp + 0x10) = esi; /* 0x470466BA: mov dword ptr [esp + 0x10], esi */
   1491     eax = MEM32(esi + 0x4); /* 0x470466BE: mov eax, dword ptr [esi + 4] */
   1492     edi = MEM32(eax); /* 0x470466C1: mov edi, dword ptr [eax] */
   1493     /* cmp edi, eax */ /* 0x470466C3: cmp edi, eax */
   1494     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1496     _flag_k = FK_CMP;
   1497     MEM8(esp + 0x1C) = (uint8_t)(3); /* 0x470466C5: mov byte ptr [esp + 0x1c], 3 */
   1498     if (CMP_EQ(_flag_a, _flag_b)) goto L_470466F6; /* 0x470466CA: je 0x470466f6 */
   1499 L_470466CC:
   1500     PUSH32(esp, ebx); /* 0x470466CC: push ebx */
   1501 L_470466CD:
   1502     ebx = edi; /* 0x470466CD: mov ebx, edi */
   1503     /* test ebx, ebx */ /* 0x470466CF: test ebx, ebx */
   1504     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1505     _cf = 0;
   1506     _flag_k = FK_TEST;
   1507     edi = MEM32(edi); /* 0x470466D1: mov edi, dword ptr [edi] */
   1508     if (TEST_Z(_flag_a, _flag_b)) goto L_470466E7; /* 0x470466D3: je 0x470466e7 */
   1509 L_470466D5:
   1510     PUSH32(esp, 0); /* 0x470466D5: push 0 */
   1511     ecx = ebx; /* 0x470466D7: mov ecx, ebx */
   1512     RECOMP_ICALL(0x4708CFB0u); /* 0x470466D9: call 0x4708cfb0 */ /* not lifted */
   1513     RECOMP_FLAGS_IN();
   1514     ecx = MEM32(esi + 0xC); /* 0x470466DE: mov ecx, dword ptr [esi + 0xc] */
   1515     eax = MEM32(ecx); /* 0x470466E1: mov eax, dword ptr [ecx] */
   1516     PUSH32(esp, ebx); /* 0x470466E3: push ebx */
   1517     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470466E4: call dword ptr [eax + 0xc] */
   1518     RECOMP_FLAGS_IN();
   1519 L_470466E7:
   1520     ecx = MEM32(esi + 0x8); /* 0x470466E7: mov ecx, dword ptr [esi + 8] */
   1521     eax = MEM32(esi + 0x4); /* 0x470466EA: mov eax, dword ptr [esi + 4] */
   1522     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1523     ecx = ecx - 1; /* 0x470466ED: dec ecx */
   1524     _flag_k = FK_DEC;
   1525     /* cmp edi, eax */ /* 0x470466EE: cmp edi, eax */
   1526     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1528     _flag_k = FK_CMP;
   1529     MEM32(esi + 0x8) = ecx; /* 0x470466F0: mov dword ptr [esi + 8], ecx */
   1530     RECOMP_BACKEDGE();
   1531     if (CMP_NE(_flag_a, _flag_b)) goto L_470466CD; /* 0x470466F3: jne 0x470466cd */
   1532 L_470466F5:
   1533     ebx = POP32_VAL(esp); /* 0x470466F5: pop ebx */
   1534 L_470466F6:
   1535     eax = MEM32(esi + 0x4); /* 0x470466F6: mov eax, dword ptr [esi + 4] */
   1536     MEM32(eax) = eax; /* 0x470466F9: mov dword ptr [eax], eax */
   1537     eax = MEM32(esi + 0x4); /* 0x470466FB: mov eax, dword ptr [esi + 4] */
   1538     /* test eax, eax */ /* 0x470466FE: test eax, eax */
   1539     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1540     _cf = 0;
   1541     _flag_k = FK_TEST;
   1542     if (TEST_Z(_flag_a, _flag_b)) goto L_4704670B; /* 0x47046700: je 0x4704670b */
   1543 L_47046702:
   1544     ecx = MEM32(esi + 0xC); /* 0x47046702: mov ecx, dword ptr [esi + 0xc] */
   1545     edx = MEM32(ecx); /* 0x47046705: mov edx, dword ptr [ecx] */
   1546     PUSH32(esp, eax); /* 0x47046707: push eax */
   1547     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47046708: call dword ptr [edx + 0xc] */
   1548     RECOMP_FLAGS_IN();
   1549 L_4704670B:
   1550     ecx = ebp; /* 0x4704670B: mov ecx, ebp */
   1551     MEM32(esi + 0x4) = 0; /* 0x4704670D: mov dword ptr [esi + 4], 0 */
   1552     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47046714: mov dword ptr [esp + 0x1c], 0xffffffff */
   1553     RECOMP_ICALL(0x4702A7B0u); /* 0x4704671C: call 0x4702a7b0 */ /* not lifted */
   1554     RECOMP_FLAGS_IN();
   1555     ecx = MEM32(esp + 0x14); /* 0x47046721: mov ecx, dword ptr [esp + 0x14] */
   1556     edi = POP32_VAL(esp); /* 0x47046725: pop edi */
   1557     esi = POP32_VAL(esp); /* 0x47046726: pop esi */
   1558     ebp = POP32_VAL(esp); /* 0x47046727: pop ebp */
   1559     MEM32(FS_BASE + (0)) = ecx; /* 0x47046728: mov dword ptr fs:[0], ecx */
   1560     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1561     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1562     esp = esp + 0x14u; /* 0x4704672F: add esp, 0x14 */
   1563     _flag_k = FK_ADD;
   1564     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046732: ret  */
   1565 L_470A8DB8:
   1566     ecx = MEM32(ebp + (-0x2C)); /* 0x470A8DB8: mov ecx, dword ptr [ebp - 0x2c] */
   1567     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1568     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1569     ecx = ecx + 4; /* 0x470A8DBB: add ecx, 4 */
   1570     _flag_k = FK_ADD;
   1571     RECOMP_BACKEDGE();
   1572     goto L_47046680; /* 0x470A8DBE: jmp 0x47046680 */
   1573     { RECOMP_REGS_OUT(); return; } /* end of function */
   1574     RECOMP_REGS_OUT();
   1575 }
   1576 
   1577 void sub_470A8DC3(void) {
   1578     int _fpu_cmp = 0;
   1579     uint32_t _cf = 0;
   1580     int _df = 1;
   1581     uint32_t _flag_k = FK_NONE;
   1582     uint32_t _flag_a = 0, _flag_b = 0;
   1583     uint32_t _itail_tgt = 0;
   1584     RECOMP_REGS_LOCALS
   1585     RECOMP_ENTER(0x470A8DC3u);
   1586 
   1587     goto L_470A8DC3;
   1588 L_47014F70:
   1589     MEM32(ecx) = 0x470AC510u; /* 0x47014F70: mov dword ptr [ecx], 0x470ac510 */
   1590     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014F76: ret  */
   1591 L_4707CCD0:
   1592     MEM32(ecx) = 0x470AC520u; /* 0x4707CCD0: mov dword ptr [ecx], 0x470ac520 */
   1593     RECOMP_BACKEDGE();
   1594     goto L_47014F70; /* 0x4707CCD6: jmp 0x47014f70 */
   1595 L_470A8DC3:
   1596     ecx = ebp + (-0x28); /* 0x470A8DC3: lea ecx, [ebp - 0x28] */
   1597     RECOMP_BACKEDGE();
   1598     goto L_4707CCD0; /* 0x470A8DC6: jmp 0x4707ccd0 */
   1599     { RECOMP_REGS_OUT(); return; } /* end of function */
   1600     RECOMP_REGS_OUT();
   1601 }
   1602 
   1603 void sub_470A8DCB(void) {
   1604     int _fpu_cmp = 0;
   1605     uint32_t _cf = 0;
   1606     int _df = 1;
   1607     uint32_t _flag_k = FK_NONE;
   1608     uint32_t _flag_a = 0, _flag_b = 0;
   1609     uint32_t _itail_tgt = 0;
   1610     RECOMP_REGS_LOCALS
   1611     RECOMP_ENTER(0x470A8DCBu);
   1612 
   1613     goto L_470A8DCB;
   1614 L_470A33EC:
   1615     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1616 L_470A8DCB:
   1617     eax = 0x470B6CF8u; /* 0x470A8DCB: mov eax, 0x470b6cf8 */
   1618 L_470A8DD0:
   1619     RECOMP_BACKEDGE();
   1620     goto L_470A33EC; /* 0x470A8DD0: jmp 0x470a33ec */
   1621     { RECOMP_REGS_OUT(); return; } /* end of function */
   1622   _ljump:
   1623     switch (_itail_tgt) {
   1624       case 0x470A33ECu: goto L_470A33EC;
   1625       case 0x470A8DCBu: goto L_470A8DCB;
   1626       case 0x470A8DD0u: goto L_470A8DD0;
   1627       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1628     }
   1629     RECOMP_REGS_OUT();
   1630 }
   1631 
   1632 void sub_470A8DE0(void) {
   1633     int _fpu_cmp = 0;
   1634     uint32_t _cf = 0;
   1635     int _df = 1;
   1636     uint32_t _flag_k = FK_NONE;
   1637     uint32_t _flag_a = 0, _flag_b = 0;
   1638     uint32_t _itail_tgt = 0;
   1639     RECOMP_REGS_LOCALS
   1640     RECOMP_ENTER(0x470A8DE0u);
   1641 
   1642     goto L_470A8DE0;
   1643 L_470810C0:
   1644     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1645     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1646     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1647     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1648     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1649     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1650     RECOMP_FLAGS_IN();
   1651     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1652 L_470A8DE0:
   1653     ecx = ebp + (-0xCB0); /* 0x470A8DE0: lea ecx, [ebp - 0xcb0] */
   1654     RECOMP_BACKEDGE();
   1655     goto L_470810C0; /* 0x470A8DE6: jmp 0x470810c0 */
   1656     { RECOMP_REGS_OUT(); return; } /* end of function */
   1657     RECOMP_REGS_OUT();
   1658 }
   1659 
   1660 void sub_470A8DEB(void) {
   1661     int _fpu_cmp = 0;
   1662     uint32_t _cf = 0;
   1663     int _df = 1;
   1664     uint32_t _flag_k = FK_NONE;
   1665     uint32_t _flag_a = 0, _flag_b = 0;
   1666     uint32_t _itail_tgt = 0;
   1667     RECOMP_REGS_LOCALS
   1668     RECOMP_ENTER(0x470A8DEBu);
   1669 
   1670     goto L_470A8DEB;
   1671 L_470A33EC:
   1672     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1673 L_470A8DEB:
   1674     eax = 0x470B6D30u; /* 0x470A8DEB: mov eax, 0x470b6d30 */
   1675 L_470A8DF0:
   1676     RECOMP_BACKEDGE();
   1677     goto L_470A33EC; /* 0x470A8DF0: jmp 0x470a33ec */
   1678     { RECOMP_REGS_OUT(); return; } /* end of function */
   1679   _ljump:
   1680     switch (_itail_tgt) {
   1681       case 0x470A33ECu: goto L_470A33EC;
   1682       case 0x470A8DEBu: goto L_470A8DEB;
   1683       case 0x470A8DF0u: goto L_470A8DF0;
   1684       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1685     }
   1686     RECOMP_REGS_OUT();
   1687 }
   1688 
   1689 void sub_470A8E00(void) {
   1690     int _fpu_cmp = 0;
   1691     uint32_t _cf = 0;
   1692     int _df = 1;
   1693     uint32_t _flag_k = FK_NONE;
   1694     uint32_t _flag_a = 0, _flag_b = 0;
   1695     uint32_t _itail_tgt = 0;
   1696     RECOMP_REGS_LOCALS
   1697     RECOMP_ENTER(0x470A8E00u);
   1698 
   1699     goto L_470A8E00;
   1700 L_470810C0:
   1701     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1702     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1703     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1704     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1705     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1706     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1707     RECOMP_FLAGS_IN();
   1708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1709 L_470A8E00:
   1710     ecx = ebp + (-0xCBC); /* 0x470A8E00: lea ecx, [ebp - 0xcbc] */
   1711     RECOMP_BACKEDGE();
   1712     goto L_470810C0; /* 0x470A8E06: jmp 0x470810c0 */
   1713     { RECOMP_REGS_OUT(); return; } /* end of function */
   1714     RECOMP_REGS_OUT();
   1715 }
   1716 
   1717 void sub_470A8E0B(void) {
   1718     int _fpu_cmp = 0;
   1719     uint32_t _cf = 0;
   1720     int _df = 1;
   1721     uint32_t _flag_k = FK_NONE;
   1722     uint32_t _flag_a = 0, _flag_b = 0;
   1723     uint32_t _itail_tgt = 0;
   1724     RECOMP_REGS_LOCALS
   1725     RECOMP_ENTER(0x470A8E0Bu);
   1726 
   1727 L_470A8E0B:
   1728     eax = MEM32(ebp + (-0xCA8)); /* 0x470A8E0B: mov eax, dword ptr [ebp - 0xca8] */
   1729     PUSH32(esp, eax); /* 0x470A8E11: push eax */
   1730     ecx = MEM32(ebp + (-0xCAC)); /* 0x470A8E12: mov ecx, dword ptr [ebp - 0xcac] */
   1731     PUSH32(esp, ecx); /* 0x470A8E18: push ecx */
   1732     RECOMP_ICALL(0x470041D0u); /* 0x470A8E19: call 0x470041d0 */ /* not lifted */
   1733     RECOMP_FLAGS_IN();
   1734     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1735     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1736     esp = esp + 8; /* 0x470A8E1E: add esp, 8 */
   1737     _flag_k = FK_ADD;
   1738     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8E21: ret  */
   1739     RECOMP_REGS_OUT();
   1740 }
   1741 
   1742 void sub_470A8E22(void) {
   1743     int _fpu_cmp = 0;
   1744     uint32_t _cf = 0;
   1745     int _df = 1;
   1746     uint32_t _flag_k = FK_NONE;
   1747     uint32_t _flag_a = 0, _flag_b = 0;
   1748     uint32_t _itail_tgt = 0;
   1749     RECOMP_REGS_LOCALS
   1750     RECOMP_ENTER(0x470A8E22u);
   1751 
   1752     goto L_470A8E22;
   1753 L_470A33EC:
   1754     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1755 L_470A8E22:
   1756     eax = 0x470B6D58u; /* 0x470A8E22: mov eax, 0x470b6d58 */
   1757 L_470A8E27:
   1758     RECOMP_BACKEDGE();
   1759     goto L_470A33EC; /* 0x470A8E27: jmp 0x470a33ec */
   1760     { RECOMP_REGS_OUT(); return; } /* end of function */
   1761   _ljump:
   1762     switch (_itail_tgt) {
   1763       case 0x470A33ECu: goto L_470A33EC;
   1764       case 0x470A8E22u: goto L_470A8E22;
   1765       case 0x470A8E27u: goto L_470A8E27;
   1766       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1767     }
   1768     RECOMP_REGS_OUT();
   1769 }
   1770 
   1771 void sub_470A8E30(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(0x470A8E30u);
   1780 
   1781     goto L_470A8E30;
   1782 L_470810C0:
   1783     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1784     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1785     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1786     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1787     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1788     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1789     RECOMP_FLAGS_IN();
   1790     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1791 L_470A8E30:
   1792     ecx = ebp + (-0xCBC); /* 0x470A8E30: lea ecx, [ebp - 0xcbc] */
   1793     RECOMP_BACKEDGE();
   1794     goto L_470810C0; /* 0x470A8E36: jmp 0x470810c0 */
   1795     { RECOMP_REGS_OUT(); return; } /* end of function */
   1796     RECOMP_REGS_OUT();
   1797 }
   1798 
   1799 void sub_470A8E3B(void) {
   1800     int _fpu_cmp = 0;
   1801     uint32_t _cf = 0;
   1802     int _df = 1;
   1803     uint32_t _flag_k = FK_NONE;
   1804     uint32_t _flag_a = 0, _flag_b = 0;
   1805     uint32_t _itail_tgt = 0;
   1806     RECOMP_REGS_LOCALS
   1807     RECOMP_ENTER(0x470A8E3Bu);
   1808 
   1809 L_470A8E3B:
   1810     eax = MEM32(ebp + (-0xCA8)); /* 0x470A8E3B: mov eax, dword ptr [ebp - 0xca8] */
   1811     PUSH32(esp, eax); /* 0x470A8E41: push eax */
   1812     ecx = MEM32(ebp + (-0xCAC)); /* 0x470A8E42: mov ecx, dword ptr [ebp - 0xcac] */
   1813     PUSH32(esp, ecx); /* 0x470A8E48: push ecx */
   1814     RECOMP_ICALL(0x470041D0u); /* 0x470A8E49: call 0x470041d0 */ /* not lifted */
   1815     RECOMP_FLAGS_IN();
   1816     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1817     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1818     esp = esp + 8; /* 0x470A8E4E: add esp, 8 */
   1819     _flag_k = FK_ADD;
   1820     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8E51: ret  */
   1821     RECOMP_REGS_OUT();
   1822 }
   1823 
   1824 void sub_470A8E52(void) {
   1825     int _fpu_cmp = 0;
   1826     uint32_t _cf = 0;
   1827     int _df = 1;
   1828     uint32_t _flag_k = FK_NONE;
   1829     uint32_t _flag_a = 0, _flag_b = 0;
   1830     uint32_t _itail_tgt = 0;
   1831     RECOMP_REGS_LOCALS
   1832     RECOMP_ENTER(0x470A8E52u);
   1833 
   1834     goto L_470A8E52;
   1835 L_470A33EC:
   1836     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1837 L_470A8E52:
   1838     eax = 0x470B6D88u; /* 0x470A8E52: mov eax, 0x470b6d88 */
   1839 L_470A8E57:
   1840     RECOMP_BACKEDGE();
   1841     goto L_470A33EC; /* 0x470A8E57: jmp 0x470a33ec */
   1842     { RECOMP_REGS_OUT(); return; } /* end of function */
   1843   _ljump:
   1844     switch (_itail_tgt) {
   1845       case 0x470A33ECu: goto L_470A33EC;
   1846       case 0x470A8E52u: goto L_470A8E52;
   1847       case 0x470A8E57u: goto L_470A8E57;
   1848       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1849     }
   1850     RECOMP_REGS_OUT();
   1851 }
   1852 
   1853 void sub_470A8E60(void) {
   1854     int _fpu_cmp = 0;
   1855     uint32_t _cf = 0;
   1856     int _df = 1;
   1857     uint32_t _flag_k = FK_NONE;
   1858     uint32_t _flag_a = 0, _flag_b = 0;
   1859     uint32_t _itail_tgt = 0;
   1860     RECOMP_REGS_LOCALS
   1861     RECOMP_ENTER(0x470A8E60u);
   1862 
   1863     goto L_470A8E60;
   1864 L_470810C0:
   1865     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1866     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1867     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1868     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1869     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1870     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1871     RECOMP_FLAGS_IN();
   1872     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1873 L_470A8E60:
   1874     ecx = ebp + (-0xCBC); /* 0x470A8E60: lea ecx, [ebp - 0xcbc] */
   1875     RECOMP_BACKEDGE();
   1876     goto L_470810C0; /* 0x470A8E66: jmp 0x470810c0 */
   1877     { RECOMP_REGS_OUT(); return; } /* end of function */
   1878     RECOMP_REGS_OUT();
   1879 }
   1880 
   1881 void sub_470A8E6B(void) {
   1882     int _fpu_cmp = 0;
   1883     uint32_t _cf = 0;
   1884     int _df = 1;
   1885     uint32_t _flag_k = FK_NONE;
   1886     uint32_t _flag_a = 0, _flag_b = 0;
   1887     uint32_t _itail_tgt = 0;
   1888     RECOMP_REGS_LOCALS
   1889     RECOMP_ENTER(0x470A8E6Bu);
   1890 
   1891 L_470A8E6B:
   1892     eax = MEM32(ebp + (-0xCA8)); /* 0x470A8E6B: mov eax, dword ptr [ebp - 0xca8] */
   1893     PUSH32(esp, eax); /* 0x470A8E71: push eax */
   1894     ecx = MEM32(ebp + (-0xCAC)); /* 0x470A8E72: mov ecx, dword ptr [ebp - 0xcac] */
   1895     PUSH32(esp, ecx); /* 0x470A8E78: push ecx */
   1896     RECOMP_ICALL(0x470041D0u); /* 0x470A8E79: call 0x470041d0 */ /* not lifted */
   1897     RECOMP_FLAGS_IN();
   1898     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1899     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1900     esp = esp + 8; /* 0x470A8E7E: add esp, 8 */
   1901     _flag_k = FK_ADD;
   1902     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8E81: ret  */
   1903     RECOMP_REGS_OUT();
   1904 }
   1905 
   1906 void sub_470A8E82(void) {
   1907     int _fpu_cmp = 0;
   1908     uint32_t _cf = 0;
   1909     int _df = 1;
   1910     uint32_t _flag_k = FK_NONE;
   1911     uint32_t _flag_a = 0, _flag_b = 0;
   1912     uint32_t _itail_tgt = 0;
   1913     RECOMP_REGS_LOCALS
   1914     RECOMP_ENTER(0x470A8E82u);
   1915 
   1916     goto L_470A8E82;
   1917 L_470A33EC:
   1918     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   1919 L_470A8E82:
   1920     eax = 0x470B6DB8u; /* 0x470A8E82: mov eax, 0x470b6db8 */
   1921 L_470A8E87:
   1922     RECOMP_BACKEDGE();
   1923     goto L_470A33EC; /* 0x470A8E87: jmp 0x470a33ec */
   1924     { RECOMP_REGS_OUT(); return; } /* end of function */
   1925   _ljump:
   1926     switch (_itail_tgt) {
   1927       case 0x470A33ECu: goto L_470A33EC;
   1928       case 0x470A8E82u: goto L_470A8E82;
   1929       case 0x470A8E87u: goto L_470A8E87;
   1930       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1931     }
   1932     RECOMP_REGS_OUT();
   1933 }
   1934 
   1935 void sub_470A8E90(void) {
   1936     int _fpu_cmp = 0;
   1937     uint32_t _cf = 0;
   1938     int _df = 1;
   1939     uint32_t _flag_k = FK_NONE;
   1940     uint32_t _flag_a = 0, _flag_b = 0;
   1941     uint32_t _itail_tgt = 0;
   1942     RECOMP_REGS_LOCALS
   1943     RECOMP_ENTER(0x470A8E90u);
   1944 
   1945     goto L_470A8E90;
   1946 L_470810C0:
   1947     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1948     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1949     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1950     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1951     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1952     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1953     RECOMP_FLAGS_IN();
   1954     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1955 L_470A8E90:
   1956     ecx = ebp + (-0xCE0); /* 0x470A8E90: lea ecx, [ebp - 0xce0] */
   1957     RECOMP_BACKEDGE();
   1958     goto L_470810C0; /* 0x470A8E96: jmp 0x470810c0 */
   1959     { RECOMP_REGS_OUT(); return; } /* end of function */
   1960     RECOMP_REGS_OUT();
   1961 }
   1962 
   1963 void sub_470A8E9B(void) {
   1964     int _fpu_cmp = 0;
   1965     uint32_t _cf = 0;
   1966     int _df = 1;
   1967     uint32_t _flag_k = FK_NONE;
   1968     uint32_t _flag_a = 0, _flag_b = 0;
   1969     uint32_t _itail_tgt = 0;
   1970     RECOMP_REGS_LOCALS
   1971     RECOMP_ENTER(0x470A8E9Bu);
   1972 
   1973     goto L_470A8E9B;
   1974 L_470810C0:
   1975     eax = ecx; /* 0x470810C0: mov eax, ecx */
   1976     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   1977     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   1978     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   1979     PUSH32(esp, eax); /* 0x470810C9: push eax */
   1980     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   1981     RECOMP_FLAGS_IN();
   1982     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   1983 L_470A8E9B:
   1984     ecx = ebp + (-0xCD4); /* 0x470A8E9B: lea ecx, [ebp - 0xcd4] */
   1985     RECOMP_BACKEDGE();
   1986     goto L_470810C0; /* 0x470A8EA1: jmp 0x470810c0 */
   1987     { RECOMP_REGS_OUT(); return; } /* end of function */
   1988     RECOMP_REGS_OUT();
   1989 }
   1990 
   1991 void sub_470A8EA6(void) {
   1992     int _fpu_cmp = 0;
   1993     uint32_t _cf = 0;
   1994     int _df = 1;
   1995     uint32_t _flag_k = FK_NONE;
   1996     uint32_t _flag_a = 0, _flag_b = 0;
   1997     uint32_t _itail_tgt = 0;
   1998     RECOMP_REGS_LOCALS
   1999     RECOMP_ENTER(0x470A8EA6u);
   2000 
   2001     goto L_470A8EA6;
   2002 L_470475E0:
   2003     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
   2004     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
   2005     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
   2006     PUSH32(esp, eax); /* 0x470475ED: push eax */
   2007     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
   2008     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
   2009     PUSH32(esp, esi); /* 0x470475F6: push esi */
   2010     esi = ecx; /* 0x470475F7: mov esi, ecx */
   2011     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
   2012     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
   2013     PUSH32(esp, eax); /* 0x47047600: push eax */
   2014     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
   2015     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
   2016     RECOMP_FLAGS_IN();
   2017     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2018     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2019     esp = esp + 4; /* 0x4704760F: add esp, 4 */
   2020     _flag_k = FK_ADD;
   2021     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
   2022     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
   2023     RECOMP_FLAGS_IN();
   2024     ecx = esi; /* 0x4704761A: mov ecx, esi */
   2025     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
   2026     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
   2027     RECOMP_FLAGS_IN();
   2028     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
   2029     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
   2030     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
   2031     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2032     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2033     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
   2034     _flag_k = FK_ADD;
   2035     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
   2036 L_470A8EA6:
   2037     ecx = ebp + (-0xCC4); /* 0x470A8EA6: lea ecx, [ebp - 0xcc4] */
   2038     RECOMP_BACKEDGE();
   2039     goto L_470475E0; /* 0x470A8EAC: jmp 0x470475e0 */
   2040     { RECOMP_REGS_OUT(); return; } /* end of function */
   2041     RECOMP_REGS_OUT();
   2042 }
   2043 
   2044 void sub_470A8EB1(void) {
   2045     int _fpu_cmp = 0;
   2046     uint32_t _cf = 0;
   2047     int _df = 1;
   2048     uint32_t _flag_k = FK_NONE;
   2049     uint32_t _flag_a = 0, _flag_b = 0;
   2050     uint32_t _itail_tgt = 0;
   2051     RECOMP_REGS_LOCALS
   2052     RECOMP_ENTER(0x470A8EB1u);
   2053 
   2054 L_470A8EB1:
   2055     eax = MEM32(ebp + (-0xCC8)); /* 0x470A8EB1: mov eax, dword ptr [ebp - 0xcc8] */
   2056     PUSH32(esp, eax); /* 0x470A8EB7: push eax */
   2057     ecx = MEM32(ebp + (-0xCA8)); /* 0x470A8EB8: mov ecx, dword ptr [ebp - 0xca8] */
   2058     PUSH32(esp, ecx); /* 0x470A8EBE: push ecx */
   2059     RECOMP_ICALL(0x470041D0u); /* 0x470A8EBF: call 0x470041d0 */ /* not lifted */
   2060     RECOMP_FLAGS_IN();
   2061     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2062     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2063     esp = esp + 8; /* 0x470A8EC4: add esp, 8 */
   2064     _flag_k = FK_ADD;
   2065     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8EC7: ret  */
   2066     RECOMP_REGS_OUT();
   2067 }
   2068 
   2069 void sub_470A8EC8(void) {
   2070     int _fpu_cmp = 0;
   2071     uint32_t _cf = 0;
   2072     int _df = 1;
   2073     uint32_t _flag_k = FK_NONE;
   2074     uint32_t _flag_a = 0, _flag_b = 0;
   2075     uint32_t _itail_tgt = 0;
   2076     RECOMP_REGS_LOCALS
   2077     RECOMP_ENTER(0x470A8EC8u);
   2078 
   2079     goto L_470A8EC8;
   2080 L_470A33EC:
   2081     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2082 L_470A8EC8:
   2083     eax = 0x470B6DE8u; /* 0x470A8EC8: mov eax, 0x470b6de8 */
   2084 L_470A8ECD:
   2085     RECOMP_BACKEDGE();
   2086     goto L_470A33EC; /* 0x470A8ECD: jmp 0x470a33ec */
   2087     { RECOMP_REGS_OUT(); return; } /* end of function */
   2088   _ljump:
   2089     switch (_itail_tgt) {
   2090       case 0x470A33ECu: goto L_470A33EC;
   2091       case 0x470A8EC8u: goto L_470A8EC8;
   2092       case 0x470A8ECDu: goto L_470A8ECD;
   2093       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2094     }
   2095     RECOMP_REGS_OUT();
   2096 }
   2097 
   2098 void sub_470A8EE0(void) {
   2099     int _fpu_cmp = 0;
   2100     uint32_t _cf = 0;
   2101     int _df = 1;
   2102     uint32_t _flag_k = FK_NONE;
   2103     uint32_t _flag_a = 0, _flag_b = 0;
   2104     uint32_t _itail_tgt = 0;
   2105     RECOMP_REGS_LOCALS
   2106     RECOMP_ENTER(0x470A8EE0u);
   2107 
   2108     goto L_470A8EE0;
   2109 L_470810C0:
   2110     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2111     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2112     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2113     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2114     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2115     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2116     RECOMP_FLAGS_IN();
   2117     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2118 L_470A8EE0:
   2119     ecx = ebp + (-0xCE0); /* 0x470A8EE0: lea ecx, [ebp - 0xce0] */
   2120     RECOMP_BACKEDGE();
   2121     goto L_470810C0; /* 0x470A8EE6: jmp 0x470810c0 */
   2122     { RECOMP_REGS_OUT(); return; } /* end of function */
   2123     RECOMP_REGS_OUT();
   2124 }
   2125 
   2126 void sub_470A8EEB(void) {
   2127     int _fpu_cmp = 0;
   2128     uint32_t _cf = 0;
   2129     int _df = 1;
   2130     uint32_t _flag_k = FK_NONE;
   2131     uint32_t _flag_a = 0, _flag_b = 0;
   2132     uint32_t _itail_tgt = 0;
   2133     RECOMP_REGS_LOCALS
   2134     RECOMP_ENTER(0x470A8EEBu);
   2135 
   2136     goto L_470A8EEB;
   2137 L_470810C0:
   2138     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2139     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2140     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2141     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2142     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2143     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2144     RECOMP_FLAGS_IN();
   2145     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2146 L_470A8EEB:
   2147     ecx = ebp + (-0xCD4); /* 0x470A8EEB: lea ecx, [ebp - 0xcd4] */
   2148     RECOMP_BACKEDGE();
   2149     goto L_470810C0; /* 0x470A8EF1: jmp 0x470810c0 */
   2150     { RECOMP_REGS_OUT(); return; } /* end of function */
   2151     RECOMP_REGS_OUT();
   2152 }
   2153 
   2154 void sub_470A8EF6(void) {
   2155     int _fpu_cmp = 0;
   2156     uint32_t _cf = 0;
   2157     int _df = 1;
   2158     uint32_t _flag_k = FK_NONE;
   2159     uint32_t _flag_a = 0, _flag_b = 0;
   2160     uint32_t _itail_tgt = 0;
   2161     RECOMP_REGS_LOCALS
   2162     RECOMP_ENTER(0x470A8EF6u);
   2163 
   2164     goto L_470A8EF6;
   2165 L_470475E0:
   2166     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
   2167     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
   2168     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
   2169     PUSH32(esp, eax); /* 0x470475ED: push eax */
   2170     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
   2171     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
   2172     PUSH32(esp, esi); /* 0x470475F6: push esi */
   2173     esi = ecx; /* 0x470475F7: mov esi, ecx */
   2174     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
   2175     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
   2176     PUSH32(esp, eax); /* 0x47047600: push eax */
   2177     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
   2178     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
   2179     RECOMP_FLAGS_IN();
   2180     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2181     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2182     esp = esp + 4; /* 0x4704760F: add esp, 4 */
   2183     _flag_k = FK_ADD;
   2184     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
   2185     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
   2186     RECOMP_FLAGS_IN();
   2187     ecx = esi; /* 0x4704761A: mov ecx, esi */
   2188     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
   2189     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
   2190     RECOMP_FLAGS_IN();
   2191     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
   2192     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
   2193     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
   2194     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2196     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
   2197     _flag_k = FK_ADD;
   2198     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
   2199 L_470A8EF6:
   2200     ecx = ebp + (-0xCC4); /* 0x470A8EF6: lea ecx, [ebp - 0xcc4] */
   2201     RECOMP_BACKEDGE();
   2202     goto L_470475E0; /* 0x470A8EFC: jmp 0x470475e0 */
   2203     { RECOMP_REGS_OUT(); return; } /* end of function */
   2204     RECOMP_REGS_OUT();
   2205 }
   2206 
   2207 void sub_470A8F01(void) {
   2208     int _fpu_cmp = 0;
   2209     uint32_t _cf = 0;
   2210     int _df = 1;
   2211     uint32_t _flag_k = FK_NONE;
   2212     uint32_t _flag_a = 0, _flag_b = 0;
   2213     uint32_t _itail_tgt = 0;
   2214     RECOMP_REGS_LOCALS
   2215     RECOMP_ENTER(0x470A8F01u);
   2216 
   2217 L_470A8F01:
   2218     eax = MEM32(ebp + (-0xCC8)); /* 0x470A8F01: mov eax, dword ptr [ebp - 0xcc8] */
   2219     PUSH32(esp, eax); /* 0x470A8F07: push eax */
   2220     ecx = MEM32(ebp + (-0xCA8)); /* 0x470A8F08: mov ecx, dword ptr [ebp - 0xca8] */
   2221     PUSH32(esp, ecx); /* 0x470A8F0E: push ecx */
   2222     RECOMP_ICALL(0x470041D0u); /* 0x470A8F0F: call 0x470041d0 */ /* not lifted */
   2223     RECOMP_FLAGS_IN();
   2224     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2225     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2226     esp = esp + 8; /* 0x470A8F14: add esp, 8 */
   2227     _flag_k = FK_ADD;
   2228     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8F17: ret  */
   2229     RECOMP_REGS_OUT();
   2230 }
   2231 
   2232 void sub_470A8F18(void) {
   2233     int _fpu_cmp = 0;
   2234     uint32_t _cf = 0;
   2235     int _df = 1;
   2236     uint32_t _flag_k = FK_NONE;
   2237     uint32_t _flag_a = 0, _flag_b = 0;
   2238     uint32_t _itail_tgt = 0;
   2239     RECOMP_REGS_LOCALS
   2240     RECOMP_ENTER(0x470A8F18u);
   2241 
   2242     goto L_470A8F18;
   2243 L_470A33EC:
   2244     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2245 L_470A8F18:
   2246     eax = 0x470B6E28u; /* 0x470A8F18: mov eax, 0x470b6e28 */
   2247 L_470A8F1D:
   2248     RECOMP_BACKEDGE();
   2249     goto L_470A33EC; /* 0x470A8F1D: jmp 0x470a33ec */
   2250     { RECOMP_REGS_OUT(); return; } /* end of function */
   2251   _ljump:
   2252     switch (_itail_tgt) {
   2253       case 0x470A33ECu: goto L_470A33EC;
   2254       case 0x470A8F18u: goto L_470A8F18;
   2255       case 0x470A8F1Du: goto L_470A8F1D;
   2256       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2257     }
   2258     RECOMP_REGS_OUT();
   2259 }
   2260 
   2261 void sub_470A8F30(void) {
   2262     int _fpu_cmp = 0;
   2263     uint32_t _cf = 0;
   2264     int _df = 1;
   2265     uint32_t _flag_k = FK_NONE;
   2266     uint32_t _flag_a = 0, _flag_b = 0;
   2267     uint32_t _itail_tgt = 0;
   2268     RECOMP_REGS_LOCALS
   2269     RECOMP_ENTER(0x470A8F30u);
   2270 
   2271     goto L_470A8F30;
   2272 L_470810C0:
   2273     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2274     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2275     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2276     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2277     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2278     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2279     RECOMP_FLAGS_IN();
   2280     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2281 L_470A8F30:
   2282     ecx = ebp + (-0xCE0); /* 0x470A8F30: lea ecx, [ebp - 0xce0] */
   2283     RECOMP_BACKEDGE();
   2284     goto L_470810C0; /* 0x470A8F36: jmp 0x470810c0 */
   2285     { RECOMP_REGS_OUT(); return; } /* end of function */
   2286     RECOMP_REGS_OUT();
   2287 }
   2288 
   2289 void sub_470A8F3B(void) {
   2290     int _fpu_cmp = 0;
   2291     uint32_t _cf = 0;
   2292     int _df = 1;
   2293     uint32_t _flag_k = FK_NONE;
   2294     uint32_t _flag_a = 0, _flag_b = 0;
   2295     uint32_t _itail_tgt = 0;
   2296     RECOMP_REGS_LOCALS
   2297     RECOMP_ENTER(0x470A8F3Bu);
   2298 
   2299     goto L_470A8F3B;
   2300 L_470810C0:
   2301     eax = ecx; /* 0x470810C0: mov eax, ecx */
   2302     ecx = MEM32(eax); /* 0x470810C2: mov ecx, dword ptr [eax] */
   2303     eax = MEM32(eax + 0x8); /* 0x470810C4: mov eax, dword ptr [eax + 8] */
   2304     edx = MEM32(ecx); /* 0x470810C7: mov edx, dword ptr [ecx] */
   2305     PUSH32(esp, eax); /* 0x470810C9: push eax */
   2306     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470810CA: call dword ptr [edx + 0xc] */
   2307     RECOMP_FLAGS_IN();
   2308     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470810CD: ret  */
   2309 L_470A8F3B:
   2310     ecx = ebp + (-0xCD4); /* 0x470A8F3B: lea ecx, [ebp - 0xcd4] */
   2311     RECOMP_BACKEDGE();
   2312     goto L_470810C0; /* 0x470A8F41: jmp 0x470810c0 */
   2313     { RECOMP_REGS_OUT(); return; } /* end of function */
   2314     RECOMP_REGS_OUT();
   2315 }
   2316 
   2317 void sub_470A8F46(void) {
   2318     int _fpu_cmp = 0;
   2319     uint32_t _cf = 0;
   2320     int _df = 1;
   2321     uint32_t _flag_k = FK_NONE;
   2322     uint32_t _flag_a = 0, _flag_b = 0;
   2323     uint32_t _itail_tgt = 0;
   2324     RECOMP_REGS_LOCALS
   2325     RECOMP_ENTER(0x470A8F46u);
   2326 
   2327     goto L_470A8F46;
   2328 L_470475E0:
   2329     PUSH32(esp, 0xFFFFFFFFu); /* 0x470475E0: push -1 */
   2330     PUSH32(esp, 0x470A67C8u); /* 0x470475E2: push 0x470a67c8 */
   2331     eax = MEM32(FS_BASE + (0)); /* 0x470475E7: mov eax, dword ptr fs:[0] */
   2332     PUSH32(esp, eax); /* 0x470475ED: push eax */
   2333     MEM32(FS_BASE + (0)) = esp; /* 0x470475EE: mov dword ptr fs:[0], esp */
   2334     PUSH32(esp, ecx); /* 0x470475F5: push ecx */
   2335     PUSH32(esp, esi); /* 0x470475F6: push esi */
   2336     esi = ecx; /* 0x470475F7: mov esi, ecx */
   2337     MEM32(esp + 0x4) = esi; /* 0x470475F9: mov dword ptr [esp + 4], esi */
   2338     eax = MEM32(esi + 0x18); /* 0x470475FD: mov eax, dword ptr [esi + 0x18] */
   2339     PUSH32(esp, eax); /* 0x47047600: push eax */
   2340     MEM32(esp + 0x14) = 0; /* 0x47047601: mov dword ptr [esp + 0x14], 0 */
   2341     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x47047609: call dword ptr [0x470ac390] */
   2342     RECOMP_FLAGS_IN();
   2343     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2344     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2345     esp = esp + 4; /* 0x4704760F: add esp, 4 */
   2346     _flag_k = FK_ADD;
   2347     ecx = esi + 0xC; /* 0x47047612: lea ecx, [esi + 0xc] */
   2348     RECOMP_ICALL(0x470810C0u); /* 0x47047615: call 0x470810c0 */ /* not lifted */
   2349     RECOMP_FLAGS_IN();
   2350     ecx = esi; /* 0x4704761A: mov ecx, esi */
   2351     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4704761C: mov dword ptr [esp + 0x10], 0xffffffff */
   2352     RECOMP_ICALL(0x470810C0u); /* 0x47047624: call 0x470810c0 */ /* not lifted */
   2353     RECOMP_FLAGS_IN();
   2354     ecx = MEM32(esp + 0x8); /* 0x47047629: mov ecx, dword ptr [esp + 8] */
   2355     esi = POP32_VAL(esp); /* 0x4704762D: pop esi */
   2356     MEM32(FS_BASE + (0)) = ecx; /* 0x4704762E: mov dword ptr fs:[0], ecx */
   2357     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2358     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2359     esp = esp + 0x10u; /* 0x47047635: add esp, 0x10 */
   2360     _flag_k = FK_ADD;
   2361     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47047638: ret  */
   2362 L_470A8F46:
   2363     ecx = ebp + (-0xCC4); /* 0x470A8F46: lea ecx, [ebp - 0xcc4] */
   2364     RECOMP_BACKEDGE();
   2365     goto L_470475E0; /* 0x470A8F4C: jmp 0x470475e0 */
   2366     { RECOMP_REGS_OUT(); return; } /* end of function */
   2367     RECOMP_REGS_OUT();
   2368 }
   2369 
   2370 void sub_470A8F51(void) {
   2371     int _fpu_cmp = 0;
   2372     uint32_t _cf = 0;
   2373     int _df = 1;
   2374     uint32_t _flag_k = FK_NONE;
   2375     uint32_t _flag_a = 0, _flag_b = 0;
   2376     uint32_t _itail_tgt = 0;
   2377     RECOMP_REGS_LOCALS
   2378     RECOMP_ENTER(0x470A8F51u);
   2379 
   2380 L_470A8F51:
   2381     eax = MEM32(ebp + (-0xCC8)); /* 0x470A8F51: mov eax, dword ptr [ebp - 0xcc8] */
   2382     PUSH32(esp, eax); /* 0x470A8F57: push eax */
   2383     ecx = MEM32(ebp + (-0xCA8)); /* 0x470A8F58: mov ecx, dword ptr [ebp - 0xca8] */
   2384     PUSH32(esp, ecx); /* 0x470A8F5E: push ecx */
   2385     RECOMP_ICALL(0x470041D0u); /* 0x470A8F5F: call 0x470041d0 */ /* not lifted */
   2386     RECOMP_FLAGS_IN();
   2387     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2388     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2389     esp = esp + 8; /* 0x470A8F64: add esp, 8 */
   2390     _flag_k = FK_ADD;
   2391     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8F67: ret  */
   2392     RECOMP_REGS_OUT();
   2393 }
   2394 
   2395 void sub_470A8F68(void) {
   2396     int _fpu_cmp = 0;
   2397     uint32_t _cf = 0;
   2398     int _df = 1;
   2399     uint32_t _flag_k = FK_NONE;
   2400     uint32_t _flag_a = 0, _flag_b = 0;
   2401     uint32_t _itail_tgt = 0;
   2402     RECOMP_REGS_LOCALS
   2403     RECOMP_ENTER(0x470A8F68u);
   2404 
   2405     goto L_470A8F68;
   2406 L_470A33EC:
   2407     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2408 L_470A8F68:
   2409     eax = 0x470B6E68u; /* 0x470A8F68: mov eax, 0x470b6e68 */
   2410 L_470A8F6D:
   2411     RECOMP_BACKEDGE();
   2412     goto L_470A33EC; /* 0x470A8F6D: jmp 0x470a33ec */
   2413     { RECOMP_REGS_OUT(); return; } /* end of function */
   2414   _ljump:
   2415     switch (_itail_tgt) {
   2416       case 0x470A33ECu: goto L_470A33EC;
   2417       case 0x470A8F68u: goto L_470A8F68;
   2418       case 0x470A8F6Du: goto L_470A8F6D;
   2419       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2420     }
   2421     RECOMP_REGS_OUT();
   2422 }
   2423 
   2424 void sub_470A8F80(void) {
   2425     int _fpu_cmp = 0;
   2426     uint32_t _cf = 0;
   2427     int _df = 1;
   2428     uint32_t _flag_k = FK_NONE;
   2429     uint32_t _flag_a = 0, _flag_b = 0;
   2430     uint32_t _itail_tgt = 0;
   2431     RECOMP_REGS_LOCALS
   2432     RECOMP_ENTER(0x470A8F80u);
   2433 
   2434     goto L_470A8F80;
   2435 L_470477E0:
   2436     MEM32(ecx) = 0x470AD2C8u; /* 0x470477E0: mov dword ptr [ecx], 0x470ad2c8 */
   2437     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470477E6: ret  */
   2438 L_470A8F80:
   2439     ecx = MEM32(ebp + (-0x10)); /* 0x470A8F80: mov ecx, dword ptr [ebp - 0x10] */
   2440     RECOMP_BACKEDGE();
   2441     goto L_470477E0; /* 0x470A8F83: jmp 0x470477e0 */
   2442     { RECOMP_REGS_OUT(); return; } /* end of function */
   2443     RECOMP_REGS_OUT();
   2444 }
   2445 
   2446 void sub_470A8F88(void) {
   2447     int _fpu_cmp = 0;
   2448     uint32_t _cf = 0;
   2449     int _df = 1;
   2450     uint32_t _flag_k = FK_NONE;
   2451     uint32_t _flag_a = 0, _flag_b = 0;
   2452     uint32_t _itail_tgt = 0;
   2453     RECOMP_REGS_LOCALS
   2454     RECOMP_ENTER(0x470A8F88u);
   2455 
   2456     goto L_470A8F88;
   2457 L_470A33EC:
   2458     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2459 L_470A8F88:
   2460     eax = 0x470B6EA8u; /* 0x470A8F88: mov eax, 0x470b6ea8 */
   2461 L_470A8F8D:
   2462     RECOMP_BACKEDGE();
   2463     goto L_470A33EC; /* 0x470A8F8D: jmp 0x470a33ec */
   2464     { RECOMP_REGS_OUT(); return; } /* end of function */
   2465   _ljump:
   2466     switch (_itail_tgt) {
   2467       case 0x470A33ECu: goto L_470A33EC;
   2468       case 0x470A8F88u: goto L_470A8F88;
   2469       case 0x470A8F8Du: goto L_470A8F8D;
   2470       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2471     }
   2472     RECOMP_REGS_OUT();
   2473 }
   2474 
   2475 void sub_470A8FA0(void) {
   2476     int _fpu_cmp = 0;
   2477     uint32_t _cf = 0;
   2478     int _df = 1;
   2479     uint32_t _flag_k = FK_NONE;
   2480     uint32_t _flag_a = 0, _flag_b = 0;
   2481     uint32_t _itail_tgt = 0;
   2482     RECOMP_REGS_LOCALS
   2483     RECOMP_ENTER(0x470A8FA0u);
   2484 
   2485     goto L_470A8FA0;
   2486 L_47037960:
   2487     PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */
   2488     PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */
   2489     eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */
   2490     PUSH32(esp, eax); /* 0x4703796D: push eax */
   2491     MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */
   2492     PUSH32(esp, ecx); /* 0x47037975: push ecx */
   2493     PUSH32(esp, esi); /* 0x47037976: push esi */
   2494     esi = ecx; /* 0x47037977: mov esi, ecx */
   2495     MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */
   2496     MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */
   2497     ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */
   2498     /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */
   2499     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2500     _cf = 0;
   2501     _flag_k = FK_TEST;
   2502     eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */
   2503     MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */
   2504     if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */
   2505 L_47037995:
   2506     PUSH32(esp, eax); /* 0x47037995: push eax */
   2507     RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */
   2508     RECOMP_FLAGS_IN();
   2509     ecx = eax; /* 0x4703799B: mov ecx, eax */
   2510     RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */
   2511     RECOMP_FLAGS_IN();
   2512 L_470379A2:
   2513     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2514     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2515     esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */
   2516     _flag_k = FK_ADD;
   2517     MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */
   2518     MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */
   2519     PUSH32(esp, esi); /* 0x470379AF: push esi */
   2520     MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */
   2521     RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */
   2522     RECOMP_FLAGS_IN();
   2523     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2525     esp = esp + 4; /* 0x470379BD: add esp, 4 */
   2526     _flag_k = FK_ADD;
   2527     ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */
   2528     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */
   2529     RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */
   2530     RECOMP_FLAGS_IN();
   2531     ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */
   2532     esi = POP32_VAL(esp); /* 0x470379D4: pop esi */
   2533     MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */
   2534     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2535     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2536     esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */
   2537     _flag_k = FK_ADD;
   2538     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret  */
   2539 L_47071620:
   2540     MEM32(ecx) = 0x470AEBE8u; /* 0x47071620: mov dword ptr [ecx], 0x470aebe8 */
   2541     RECOMP_BACKEDGE();
   2542     goto L_47037960; /* 0x47071626: jmp 0x47037960 */
   2543 L_470A8FA0:
   2544     ecx = MEM32(ebp + (-0x10)); /* 0x470A8FA0: mov ecx, dword ptr [ebp - 0x10] */
   2545     RECOMP_BACKEDGE();
   2546     goto L_47071620; /* 0x470A8FA3: jmp 0x47071620 */
   2547     { RECOMP_REGS_OUT(); return; } /* end of function */
   2548     RECOMP_REGS_OUT();
   2549 }
   2550 
   2551 void sub_470A8FA8(void) {
   2552     int _fpu_cmp = 0;
   2553     uint32_t _cf = 0;
   2554     int _df = 1;
   2555     uint32_t _flag_k = FK_NONE;
   2556     uint32_t _flag_a = 0, _flag_b = 0;
   2557     uint32_t _itail_tgt = 0;
   2558     RECOMP_REGS_LOCALS
   2559     RECOMP_ENTER(0x470A8FA8u);
   2560 
   2561     goto L_470A8FA8;
   2562 L_470A33EC:
   2563     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2564 L_470A8FA8:
   2565     eax = 0x470B6ED0u; /* 0x470A8FA8: mov eax, 0x470b6ed0 */
   2566 L_470A8FAD:
   2567     RECOMP_BACKEDGE();
   2568     goto L_470A33EC; /* 0x470A8FAD: jmp 0x470a33ec */
   2569     { RECOMP_REGS_OUT(); return; } /* end of function */
   2570   _ljump:
   2571     switch (_itail_tgt) {
   2572       case 0x470A33ECu: goto L_470A33EC;
   2573       case 0x470A8FA8u: goto L_470A8FA8;
   2574       case 0x470A8FADu: goto L_470A8FAD;
   2575       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2576     }
   2577     RECOMP_REGS_OUT();
   2578 }
   2579 
   2580 void sub_470A8FC0(void) {
   2581     int _fpu_cmp = 0;
   2582     uint32_t _cf = 0;
   2583     int _df = 1;
   2584     uint32_t _flag_k = FK_NONE;
   2585     uint32_t _flag_a = 0, _flag_b = 0;
   2586     uint32_t _itail_tgt = 0;
   2587     RECOMP_REGS_LOCALS
   2588     RECOMP_ENTER(0x470A8FC0u);
   2589 
   2590 L_470A8FC0:
   2591     eax = MEM32(ebp + (-0x10)); /* 0x470A8FC0: mov eax, dword ptr [ebp - 0x10] */
   2592     PUSH32(esp, eax); /* 0x470A8FC3: push eax */
   2593     RECOMP_ICALL(0x470A32A2u); /* 0x470A8FC4: call 0x470a32a2 */ /* not lifted */
   2594     RECOMP_FLAGS_IN();
   2595     ecx = POP32_VAL(esp); /* 0x470A8FC9: pop ecx */
   2596     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8FCA: ret  */
   2597     RECOMP_REGS_OUT();
   2598 }
   2599 
   2600 void sub_470A8FCB(void) {
   2601     int _fpu_cmp = 0;
   2602     uint32_t _cf = 0;
   2603     int _df = 1;
   2604     uint32_t _flag_k = FK_NONE;
   2605     uint32_t _flag_a = 0, _flag_b = 0;
   2606     uint32_t _itail_tgt = 0;
   2607     RECOMP_REGS_LOCALS
   2608     RECOMP_ENTER(0x470A8FCBu);
   2609 
   2610     goto L_470A8FCB;
   2611 L_47037960:
   2612     PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */
   2613     PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */
   2614     eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */
   2615     PUSH32(esp, eax); /* 0x4703796D: push eax */
   2616     MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */
   2617     PUSH32(esp, ecx); /* 0x47037975: push ecx */
   2618     PUSH32(esp, esi); /* 0x47037976: push esi */
   2619     esi = ecx; /* 0x47037977: mov esi, ecx */
   2620     MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */
   2621     MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */
   2622     ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */
   2623     /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */
   2624     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2625     _cf = 0;
   2626     _flag_k = FK_TEST;
   2627     eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */
   2628     MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */
   2629     if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */
   2630 L_47037995:
   2631     PUSH32(esp, eax); /* 0x47037995: push eax */
   2632     RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */
   2633     RECOMP_FLAGS_IN();
   2634     ecx = eax; /* 0x4703799B: mov ecx, eax */
   2635     RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */
   2636     RECOMP_FLAGS_IN();
   2637 L_470379A2:
   2638     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2639     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2640     esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */
   2641     _flag_k = FK_ADD;
   2642     MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */
   2643     MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */
   2644     PUSH32(esp, esi); /* 0x470379AF: push esi */
   2645     MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */
   2646     RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */
   2647     RECOMP_FLAGS_IN();
   2648     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2649     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2650     esp = esp + 4; /* 0x470379BD: add esp, 4 */
   2651     _flag_k = FK_ADD;
   2652     ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */
   2653     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */
   2654     RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */
   2655     RECOMP_FLAGS_IN();
   2656     ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */
   2657     esi = POP32_VAL(esp); /* 0x470379D4: pop esi */
   2658     MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */
   2659     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2660     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2661     esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */
   2662     _flag_k = FK_ADD;
   2663     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret  */
   2664 L_47071620:
   2665     MEM32(ecx) = 0x470AEBE8u; /* 0x47071620: mov dword ptr [ecx], 0x470aebe8 */
   2666     RECOMP_BACKEDGE();
   2667     goto L_47037960; /* 0x47071626: jmp 0x47037960 */
   2668 L_470A8FCB:
   2669     ecx = MEM32(ebp + (-0x10)); /* 0x470A8FCB: mov ecx, dword ptr [ebp - 0x10] */
   2670     RECOMP_BACKEDGE();
   2671     goto L_47071620; /* 0x470A8FCE: jmp 0x47071620 */
   2672     { RECOMP_REGS_OUT(); return; } /* end of function */
   2673     RECOMP_REGS_OUT();
   2674 }
   2675 
   2676 void sub_470A8FD3(void) {
   2677     int _fpu_cmp = 0;
   2678     uint32_t _cf = 0;
   2679     int _df = 1;
   2680     uint32_t _flag_k = FK_NONE;
   2681     uint32_t _flag_a = 0, _flag_b = 0;
   2682     uint32_t _itail_tgt = 0;
   2683     RECOMP_REGS_LOCALS
   2684     RECOMP_ENTER(0x470A8FD3u);
   2685 
   2686     goto L_470A8FD3;
   2687 L_470A33EC:
   2688     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2689 L_470A8FD3:
   2690     eax = 0x470B6EF8u; /* 0x470A8FD3: mov eax, 0x470b6ef8 */
   2691 L_470A8FD8:
   2692     RECOMP_BACKEDGE();
   2693     goto L_470A33EC; /* 0x470A8FD8: jmp 0x470a33ec */
   2694     { RECOMP_REGS_OUT(); return; } /* end of function */
   2695   _ljump:
   2696     switch (_itail_tgt) {
   2697       case 0x470A33ECu: goto L_470A33EC;
   2698       case 0x470A8FD3u: goto L_470A8FD3;
   2699       case 0x470A8FD8u: goto L_470A8FD8;
   2700       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2701     }
   2702     RECOMP_REGS_OUT();
   2703 }
   2704 
   2705 void sub_470A8FE0(void) {
   2706     int _fpu_cmp = 0;
   2707     uint32_t _cf = 0;
   2708     int _df = 1;
   2709     uint32_t _flag_k = FK_NONE;
   2710     uint32_t _flag_a = 0, _flag_b = 0;
   2711     uint32_t _itail_tgt = 0;
   2712     RECOMP_REGS_LOCALS
   2713     RECOMP_ENTER(0x470A8FE0u);
   2714 
   2715 L_470A8FE0:
   2716     eax = MEM32(ebp + (-0x10)); /* 0x470A8FE0: mov eax, dword ptr [ebp - 0x10] */
   2717     PUSH32(esp, eax); /* 0x470A8FE3: push eax */
   2718     RECOMP_ICALL(0x470A32A2u); /* 0x470A8FE4: call 0x470a32a2 */ /* not lifted */
   2719     RECOMP_FLAGS_IN();
   2720     ecx = POP32_VAL(esp); /* 0x470A8FE9: pop ecx */
   2721     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A8FEA: ret  */
   2722     RECOMP_REGS_OUT();
   2723 }
   2724 
   2725 void sub_470A8FEB(void) {
   2726     int _fpu_cmp = 0;
   2727     uint32_t _cf = 0;
   2728     int _df = 1;
   2729     uint32_t _flag_k = FK_NONE;
   2730     uint32_t _flag_a = 0, _flag_b = 0;
   2731     uint32_t _itail_tgt = 0;
   2732     RECOMP_REGS_LOCALS
   2733     RECOMP_ENTER(0x470A8FEBu);
   2734 
   2735     goto L_470A8FEB;
   2736 L_470A33EC:
   2737     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2738 L_470A8FEB:
   2739     eax = 0x470B6F28u; /* 0x470A8FEB: mov eax, 0x470b6f28 */
   2740 L_470A8FF0:
   2741     RECOMP_BACKEDGE();
   2742     goto L_470A33EC; /* 0x470A8FF0: jmp 0x470a33ec */
   2743     { RECOMP_REGS_OUT(); return; } /* end of function */
   2744   _ljump:
   2745     switch (_itail_tgt) {
   2746       case 0x470A33ECu: goto L_470A33EC;
   2747       case 0x470A8FEBu: goto L_470A8FEB;
   2748       case 0x470A8FF0u: goto L_470A8FF0;
   2749       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2750     }
   2751     RECOMP_REGS_OUT();
   2752 }
   2753 
   2754 void sub_470A9000(void) {
   2755     int _fpu_cmp = 0;
   2756     uint32_t _cf = 0;
   2757     int _df = 1;
   2758     uint32_t _flag_k = FK_NONE;
   2759     uint32_t _flag_a = 0, _flag_b = 0;
   2760     uint32_t _itail_tgt = 0;
   2761     RECOMP_REGS_LOCALS
   2762     RECOMP_ENTER(0x470A9000u);
   2763 
   2764     goto L_470A9000;
   2765 L_47037960:
   2766     PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */
   2767     PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */
   2768     eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */
   2769     PUSH32(esp, eax); /* 0x4703796D: push eax */
   2770     MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */
   2771     PUSH32(esp, ecx); /* 0x47037975: push ecx */
   2772     PUSH32(esp, esi); /* 0x47037976: push esi */
   2773     esi = ecx; /* 0x47037977: mov esi, ecx */
   2774     MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */
   2775     MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */
   2776     ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */
   2777     /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */
   2778     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2779     _cf = 0;
   2780     _flag_k = FK_TEST;
   2781     eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */
   2782     MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */
   2783     if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */
   2784 L_47037995:
   2785     PUSH32(esp, eax); /* 0x47037995: push eax */
   2786     RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */
   2787     RECOMP_FLAGS_IN();
   2788     ecx = eax; /* 0x4703799B: mov ecx, eax */
   2789     RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */
   2790     RECOMP_FLAGS_IN();
   2791 L_470379A2:
   2792     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2793     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2794     esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */
   2795     _flag_k = FK_ADD;
   2796     MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */
   2797     MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */
   2798     PUSH32(esp, esi); /* 0x470379AF: push esi */
   2799     MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */
   2800     RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */
   2801     RECOMP_FLAGS_IN();
   2802     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2803     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2804     esp = esp + 4; /* 0x470379BD: add esp, 4 */
   2805     _flag_k = FK_ADD;
   2806     ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */
   2807     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */
   2808     RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */
   2809     RECOMP_FLAGS_IN();
   2810     ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */
   2811     esi = POP32_VAL(esp); /* 0x470379D4: pop esi */
   2812     MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */
   2813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2815     esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */
   2816     _flag_k = FK_ADD;
   2817     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret  */
   2818 L_47071620:
   2819     MEM32(ecx) = 0x470AEBE8u; /* 0x47071620: mov dword ptr [ecx], 0x470aebe8 */
   2820     RECOMP_BACKEDGE();
   2821     goto L_47037960; /* 0x47071626: jmp 0x47037960 */
   2822 L_470A9000:
   2823     ecx = MEM32(ebp + (-0x10)); /* 0x470A9000: mov ecx, dword ptr [ebp - 0x10] */
   2824     RECOMP_BACKEDGE();
   2825     goto L_47071620; /* 0x470A9003: jmp 0x47071620 */
   2826     { RECOMP_REGS_OUT(); return; } /* end of function */
   2827     RECOMP_REGS_OUT();
   2828 }
   2829 
   2830 void sub_470A9008(void) {
   2831     int _fpu_cmp = 0;
   2832     uint32_t _cf = 0;
   2833     int _df = 1;
   2834     uint32_t _flag_k = FK_NONE;
   2835     uint32_t _flag_a = 0, _flag_b = 0;
   2836     uint32_t _itail_tgt = 0;
   2837     RECOMP_REGS_LOCALS
   2838     RECOMP_ENTER(0x470A9008u);
   2839 
   2840     goto L_470A9008;
   2841 L_470A33EC:
   2842     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2843 L_470A9008:
   2844     eax = 0x470B6F50u; /* 0x470A9008: mov eax, 0x470b6f50 */
   2845 L_470A900D:
   2846     RECOMP_BACKEDGE();
   2847     goto L_470A33EC; /* 0x470A900D: jmp 0x470a33ec */
   2848     { RECOMP_REGS_OUT(); return; } /* end of function */
   2849   _ljump:
   2850     switch (_itail_tgt) {
   2851       case 0x470A33ECu: goto L_470A33EC;
   2852       case 0x470A9008u: goto L_470A9008;
   2853       case 0x470A900Du: goto L_470A900D;
   2854       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2855     }
   2856     RECOMP_REGS_OUT();
   2857 }
   2858 
   2859 void sub_470A9020(void) {
   2860     int _fpu_cmp = 0;
   2861     uint32_t _cf = 0;
   2862     int _df = 1;
   2863     uint32_t _flag_k = FK_NONE;
   2864     uint32_t _flag_a = 0, _flag_b = 0;
   2865     uint32_t _itail_tgt = 0;
   2866     RECOMP_REGS_LOCALS
   2867     RECOMP_ENTER(0x470A9020u);
   2868 
   2869 L_470A9020:
   2870     eax = MEM32(ebp + (-0x10)); /* 0x470A9020: mov eax, dword ptr [ebp - 0x10] */
   2871     PUSH32(esp, eax); /* 0x470A9023: push eax */
   2872     RECOMP_ICALL(0x470A32A2u); /* 0x470A9024: call 0x470a32a2 */ /* not lifted */
   2873     RECOMP_FLAGS_IN();
   2874     ecx = POP32_VAL(esp); /* 0x470A9029: pop ecx */
   2875     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A902A: ret  */
   2876     RECOMP_REGS_OUT();
   2877 }
   2878 
   2879 void sub_470A902B(void) {
   2880     int _fpu_cmp = 0;
   2881     uint32_t _cf = 0;
   2882     int _df = 1;
   2883     uint32_t _flag_k = FK_NONE;
   2884     uint32_t _flag_a = 0, _flag_b = 0;
   2885     uint32_t _itail_tgt = 0;
   2886     RECOMP_REGS_LOCALS
   2887     RECOMP_ENTER(0x470A902Bu);
   2888 
   2889     goto L_470A902B;
   2890 L_470A33EC:
   2891     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   2892 L_470A902B:
   2893     eax = 0x470B6F78u; /* 0x470A902B: mov eax, 0x470b6f78 */
   2894 L_470A9030:
   2895     RECOMP_BACKEDGE();
   2896     goto L_470A33EC; /* 0x470A9030: jmp 0x470a33ec */
   2897     { RECOMP_REGS_OUT(); return; } /* end of function */
   2898   _ljump:
   2899     switch (_itail_tgt) {
   2900       case 0x470A33ECu: goto L_470A33EC;
   2901       case 0x470A902Bu: goto L_470A902B;
   2902       case 0x470A9030u: goto L_470A9030;
   2903       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2904     }
   2905     RECOMP_REGS_OUT();
   2906 }
   2907 
   2908 void sub_470A9040(void) {
   2909     int _fpu_cmp = 0;
   2910     uint32_t _cf = 0;
   2911     int _df = 1;
   2912     uint32_t _flag_k = FK_NONE;
   2913     uint32_t _flag_a = 0, _flag_b = 0;
   2914     uint32_t _itail_tgt = 0;
   2915     RECOMP_REGS_LOCALS
   2916     RECOMP_ENTER(0x470A9040u);
   2917 
   2918 L_470A9040:
   2919     eax = MEM32(ebp + (-0x10)); /* 0x470A9040: mov eax, dword ptr [ebp - 0x10] */
   2920     PUSH32(esp, eax); /* 0x470A9043: push eax */
   2921     RECOMP_ICALL(0x470A32A2u); /* 0x470A9044: call 0x470a32a2 */ /* not lifted */
   2922     RECOMP_FLAGS_IN();
   2923     ecx = POP32_VAL(esp); /* 0x470A9049: pop ecx */
   2924     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A904A: ret  */
   2925     RECOMP_REGS_OUT();
   2926 }
   2927 
   2928 void sub_470A904B(void) {
   2929     int _fpu_cmp = 0;
   2930     uint32_t _cf = 0;
   2931     int _df = 1;
   2932     uint32_t _flag_k = FK_NONE;
   2933     uint32_t _flag_a = 0, _flag_b = 0;
   2934     uint32_t _itail_tgt = 0;
   2935     RECOMP_REGS_LOCALS
   2936     RECOMP_ENTER(0x470A904Bu);
   2937 
   2938     goto L_470A904B;
   2939 L_47037960:
   2940     PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */
   2941     PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */
   2942     eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */
   2943     PUSH32(esp, eax); /* 0x4703796D: push eax */
   2944     MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */
   2945     PUSH32(esp, ecx); /* 0x47037975: push ecx */
   2946     PUSH32(esp, esi); /* 0x47037976: push esi */
   2947     esi = ecx; /* 0x47037977: mov esi, ecx */
   2948     MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */
   2949     MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */
   2950     ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */
   2951     /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */
   2952     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2953     _cf = 0;
   2954     _flag_k = FK_TEST;
   2955     eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */
   2956     MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */
   2957     if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */
   2958 L_47037995:
   2959     PUSH32(esp, eax); /* 0x47037995: push eax */
   2960     RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */
   2961     RECOMP_FLAGS_IN();
   2962     ecx = eax; /* 0x4703799B: mov ecx, eax */
   2963     RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */
   2964     RECOMP_FLAGS_IN();
   2965 L_470379A2:
   2966     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2967     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2968     esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */
   2969     _flag_k = FK_ADD;
   2970     MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */
   2971     MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */
   2972     PUSH32(esp, esi); /* 0x470379AF: push esi */
   2973     MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */
   2974     RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */
   2975     RECOMP_FLAGS_IN();
   2976     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2977     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2978     esp = esp + 4; /* 0x470379BD: add esp, 4 */
   2979     _flag_k = FK_ADD;
   2980     ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */
   2981     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */
   2982     RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */
   2983     RECOMP_FLAGS_IN();
   2984     ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */
   2985     esi = POP32_VAL(esp); /* 0x470379D4: pop esi */
   2986     MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */
   2987     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2988     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2989     esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */
   2990     _flag_k = FK_ADD;
   2991     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret  */
   2992 L_47071620:
   2993     MEM32(ecx) = 0x470AEBE8u; /* 0x47071620: mov dword ptr [ecx], 0x470aebe8 */
   2994     RECOMP_BACKEDGE();
   2995     goto L_47037960; /* 0x47071626: jmp 0x47037960 */
   2996 L_470A904B:
   2997     ecx = MEM32(ebp + (-0x10)); /* 0x470A904B: mov ecx, dword ptr [ebp - 0x10] */
   2998     RECOMP_BACKEDGE();
   2999     goto L_47071620; /* 0x470A904E: jmp 0x47071620 */
   3000     { RECOMP_REGS_OUT(); return; } /* end of function */
   3001     RECOMP_REGS_OUT();
   3002 }
   3003 
   3004 void sub_470A9053(void) {
   3005     int _fpu_cmp = 0;
   3006     uint32_t _cf = 0;
   3007     int _df = 1;
   3008     uint32_t _flag_k = FK_NONE;
   3009     uint32_t _flag_a = 0, _flag_b = 0;
   3010     uint32_t _itail_tgt = 0;
   3011     RECOMP_REGS_LOCALS
   3012     RECOMP_ENTER(0x470A9053u);
   3013 
   3014     goto L_470A9053;
   3015 L_470A33EC:
   3016     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3017 L_470A9053:
   3018     eax = 0x470B6FA0u; /* 0x470A9053: mov eax, 0x470b6fa0 */
   3019 L_470A9058:
   3020     RECOMP_BACKEDGE();
   3021     goto L_470A33EC; /* 0x470A9058: jmp 0x470a33ec */
   3022     { RECOMP_REGS_OUT(); return; } /* end of function */
   3023   _ljump:
   3024     switch (_itail_tgt) {
   3025       case 0x470A33ECu: goto L_470A33EC;
   3026       case 0x470A9053u: goto L_470A9053;
   3027       case 0x470A9058u: goto L_470A9058;
   3028       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3029     }
   3030     RECOMP_REGS_OUT();
   3031 }
   3032 
   3033 void sub_470A9060(void) {
   3034     int _fpu_cmp = 0;
   3035     uint32_t _cf = 0;
   3036     int _df = 1;
   3037     uint32_t _flag_k = FK_NONE;
   3038     uint32_t _flag_a = 0, _flag_b = 0;
   3039     uint32_t _itail_tgt = 0;
   3040     RECOMP_REGS_LOCALS
   3041     RECOMP_ENTER(0x470A9060u);
   3042 
   3043     goto L_470A9060;
   3044 L_47037960:
   3045     PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */
   3046     PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */
   3047     eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */
   3048     PUSH32(esp, eax); /* 0x4703796D: push eax */
   3049     MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */
   3050     PUSH32(esp, ecx); /* 0x47037975: push ecx */
   3051     PUSH32(esp, esi); /* 0x47037976: push esi */
   3052     esi = ecx; /* 0x47037977: mov esi, ecx */
   3053     MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */
   3054     MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */
   3055     ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */
   3056     /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */
   3057     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3058     _cf = 0;
   3059     _flag_k = FK_TEST;
   3060     eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */
   3061     MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */
   3062     if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */
   3063 L_47037995:
   3064     PUSH32(esp, eax); /* 0x47037995: push eax */
   3065     RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */
   3066     RECOMP_FLAGS_IN();
   3067     ecx = eax; /* 0x4703799B: mov ecx, eax */
   3068     RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */
   3069     RECOMP_FLAGS_IN();
   3070 L_470379A2:
   3071     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   3072     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3073     esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */
   3074     _flag_k = FK_ADD;
   3075     MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */
   3076     MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */
   3077     PUSH32(esp, esi); /* 0x470379AF: push esi */
   3078     MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */
   3079     RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */
   3080     RECOMP_FLAGS_IN();
   3081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3083     esp = esp + 4; /* 0x470379BD: add esp, 4 */
   3084     _flag_k = FK_ADD;
   3085     ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */
   3086     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */
   3087     RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */
   3088     RECOMP_FLAGS_IN();
   3089     ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */
   3090     esi = POP32_VAL(esp); /* 0x470379D4: pop esi */
   3091     MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */
   3092     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3094     esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */
   3095     _flag_k = FK_ADD;
   3096     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret  */
   3097 L_47071620:
   3098     MEM32(ecx) = 0x470AEBE8u; /* 0x47071620: mov dword ptr [ecx], 0x470aebe8 */
   3099     RECOMP_BACKEDGE();
   3100     goto L_47037960; /* 0x47071626: jmp 0x47037960 */
   3101 L_470A9060:
   3102     ecx = MEM32(ebp + (-0x10)); /* 0x470A9060: mov ecx, dword ptr [ebp - 0x10] */
   3103     RECOMP_BACKEDGE();
   3104     goto L_47071620; /* 0x470A9063: jmp 0x47071620 */
   3105     { RECOMP_REGS_OUT(); return; } /* end of function */
   3106     RECOMP_REGS_OUT();
   3107 }
   3108 
   3109 void sub_470A9068(void) {
   3110     int _fpu_cmp = 0;
   3111     uint32_t _cf = 0;
   3112     int _df = 1;
   3113     uint32_t _flag_k = FK_NONE;
   3114     uint32_t _flag_a = 0, _flag_b = 0;
   3115     uint32_t _itail_tgt = 0;
   3116     RECOMP_REGS_LOCALS
   3117     RECOMP_ENTER(0x470A9068u);
   3118 
   3119     goto L_470A9068;
   3120 L_470A33EC:
   3121     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3122 L_470A9068:
   3123     eax = 0x470B6FD0u; /* 0x470A9068: mov eax, 0x470b6fd0 */
   3124 L_470A906D:
   3125     RECOMP_BACKEDGE();
   3126     goto L_470A33EC; /* 0x470A906D: jmp 0x470a33ec */
   3127     { RECOMP_REGS_OUT(); return; } /* end of function */
   3128   _ljump:
   3129     switch (_itail_tgt) {
   3130       case 0x470A33ECu: goto L_470A33EC;
   3131       case 0x470A9068u: goto L_470A9068;
   3132       case 0x470A906Du: goto L_470A906D;
   3133       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3134     }
   3135     RECOMP_REGS_OUT();
   3136 }
   3137 
   3138 void sub_470A9080(void) {
   3139     int _fpu_cmp = 0;
   3140     uint32_t _cf = 0;
   3141     int _df = 1;
   3142     uint32_t _flag_k = FK_NONE;
   3143     uint32_t _flag_a = 0, _flag_b = 0;
   3144     uint32_t _itail_tgt = 0;
   3145     RECOMP_REGS_LOCALS
   3146     RECOMP_ENTER(0x470A9080u);
   3147 
   3148 L_470A9080:
   3149     eax = MEM32(ebp + (-0x10)); /* 0x470A9080: mov eax, dword ptr [ebp - 0x10] */
   3150     PUSH32(esp, eax); /* 0x470A9083: push eax */
   3151     RECOMP_ICALL(0x470A32A2u); /* 0x470A9084: call 0x470a32a2 */ /* not lifted */
   3152     RECOMP_FLAGS_IN();
   3153     ecx = POP32_VAL(esp); /* 0x470A9089: pop ecx */
   3154     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A908A: ret  */
   3155     RECOMP_REGS_OUT();
   3156 }
   3157 
   3158 void sub_470A908B(void) {
   3159     int _fpu_cmp = 0;
   3160     uint32_t _cf = 0;
   3161     int _df = 1;
   3162     uint32_t _flag_k = FK_NONE;
   3163     uint32_t _flag_a = 0, _flag_b = 0;
   3164     uint32_t _itail_tgt = 0;
   3165     RECOMP_REGS_LOCALS
   3166     RECOMP_ENTER(0x470A908Bu);
   3167 
   3168     goto L_470A908B;
   3169 L_470A33EC:
   3170     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3171 L_470A908B:
   3172     eax = 0x470B6FF8u; /* 0x470A908B: mov eax, 0x470b6ff8 */
   3173 L_470A9090:
   3174     RECOMP_BACKEDGE();
   3175     goto L_470A33EC; /* 0x470A9090: jmp 0x470a33ec */
   3176     { RECOMP_REGS_OUT(); return; } /* end of function */
   3177   _ljump:
   3178     switch (_itail_tgt) {
   3179       case 0x470A33ECu: goto L_470A33EC;
   3180       case 0x470A908Bu: goto L_470A908B;
   3181       case 0x470A9090u: goto L_470A9090;
   3182       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3183     }
   3184     RECOMP_REGS_OUT();
   3185 }
   3186 
   3187 void sub_470A90A0(void) {
   3188     int _fpu_cmp = 0;
   3189     uint32_t _cf = 0;
   3190     int _df = 1;
   3191     uint32_t _flag_k = FK_NONE;
   3192     uint32_t _flag_a = 0, _flag_b = 0;
   3193     uint32_t _itail_tgt = 0;
   3194     RECOMP_REGS_LOCALS
   3195     RECOMP_ENTER(0x470A90A0u);
   3196 
   3197 L_470A90A0:
   3198     eax = MEM32(ebp + (-0x10)); /* 0x470A90A0: mov eax, dword ptr [ebp - 0x10] */
   3199     PUSH32(esp, eax); /* 0x470A90A3: push eax */
   3200     RECOMP_ICALL(0x470A32A2u); /* 0x470A90A4: call 0x470a32a2 */ /* not lifted */
   3201     RECOMP_FLAGS_IN();
   3202     ecx = POP32_VAL(esp); /* 0x470A90A9: pop ecx */
   3203     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A90AA: ret  */
   3204     RECOMP_REGS_OUT();
   3205 }
   3206 
   3207 void sub_470A90AB(void) {
   3208     int _fpu_cmp = 0;
   3209     uint32_t _cf = 0;
   3210     int _df = 1;
   3211     uint32_t _flag_k = FK_NONE;
   3212     uint32_t _flag_a = 0, _flag_b = 0;
   3213     uint32_t _itail_tgt = 0;
   3214     RECOMP_REGS_LOCALS
   3215     RECOMP_ENTER(0x470A90ABu);
   3216 
   3217     goto L_470A90AB;
   3218 L_47037960:
   3219     PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */
   3220     PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */
   3221     eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */
   3222     PUSH32(esp, eax); /* 0x4703796D: push eax */
   3223     MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */
   3224     PUSH32(esp, ecx); /* 0x47037975: push ecx */
   3225     PUSH32(esp, esi); /* 0x47037976: push esi */
   3226     esi = ecx; /* 0x47037977: mov esi, ecx */
   3227     MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */
   3228     MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */
   3229     ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */
   3230     /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */
   3231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3232     _cf = 0;
   3233     _flag_k = FK_TEST;
   3234     eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */
   3235     MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */
   3236     if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */
   3237 L_47037995:
   3238     PUSH32(esp, eax); /* 0x47037995: push eax */
   3239     RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */
   3240     RECOMP_FLAGS_IN();
   3241     ecx = eax; /* 0x4703799B: mov ecx, eax */
   3242     RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */
   3243     RECOMP_FLAGS_IN();
   3244 L_470379A2:
   3245     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   3246     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3247     esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */
   3248     _flag_k = FK_ADD;
   3249     MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */
   3250     MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */
   3251     PUSH32(esp, esi); /* 0x470379AF: push esi */
   3252     MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */
   3253     RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */
   3254     RECOMP_FLAGS_IN();
   3255     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3256     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3257     esp = esp + 4; /* 0x470379BD: add esp, 4 */
   3258     _flag_k = FK_ADD;
   3259     ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */
   3260     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */
   3261     RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */
   3262     RECOMP_FLAGS_IN();
   3263     ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */
   3264     esi = POP32_VAL(esp); /* 0x470379D4: pop esi */
   3265     MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */
   3266     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3267     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3268     esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */
   3269     _flag_k = FK_ADD;
   3270     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret  */
   3271 L_47071620:
   3272     MEM32(ecx) = 0x470AEBE8u; /* 0x47071620: mov dword ptr [ecx], 0x470aebe8 */
   3273     RECOMP_BACKEDGE();
   3274     goto L_47037960; /* 0x47071626: jmp 0x47037960 */
   3275 L_470A90AB:
   3276     ecx = MEM32(ebp + (-0x10)); /* 0x470A90AB: mov ecx, dword ptr [ebp - 0x10] */
   3277     RECOMP_BACKEDGE();
   3278     goto L_47071620; /* 0x470A90AE: jmp 0x47071620 */
   3279     { RECOMP_REGS_OUT(); return; } /* end of function */
   3280     RECOMP_REGS_OUT();
   3281 }
   3282 
   3283 void sub_470A90B3(void) {
   3284     int _fpu_cmp = 0;
   3285     uint32_t _cf = 0;
   3286     int _df = 1;
   3287     uint32_t _flag_k = FK_NONE;
   3288     uint32_t _flag_a = 0, _flag_b = 0;
   3289     uint32_t _itail_tgt = 0;
   3290     RECOMP_REGS_LOCALS
   3291     RECOMP_ENTER(0x470A90B3u);
   3292 
   3293     goto L_470A90B3;
   3294 L_470A33EC:
   3295     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3296 L_470A90B3:
   3297     eax = 0x470B7020u; /* 0x470A90B3: mov eax, 0x470b7020 */
   3298 L_470A90B8:
   3299     RECOMP_BACKEDGE();
   3300     goto L_470A33EC; /* 0x470A90B8: jmp 0x470a33ec */
   3301     { RECOMP_REGS_OUT(); return; } /* end of function */
   3302   _ljump:
   3303     switch (_itail_tgt) {
   3304       case 0x470A33ECu: goto L_470A33EC;
   3305       case 0x470A90B3u: goto L_470A90B3;
   3306       case 0x470A90B8u: goto L_470A90B8;
   3307       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3308     }
   3309     RECOMP_REGS_OUT();
   3310 }
   3311 
   3312 void sub_470A90C0(void) {
   3313     int _fpu_cmp = 0;
   3314     uint32_t _cf = 0;
   3315     int _df = 1;
   3316     uint32_t _flag_k = FK_NONE;
   3317     uint32_t _flag_a = 0, _flag_b = 0;
   3318     uint32_t _itail_tgt = 0;
   3319     RECOMP_REGS_LOCALS
   3320     RECOMP_ENTER(0x470A90C0u);
   3321 
   3322     goto L_470A90C0;
   3323 L_47087E30:
   3324     eax = MEM32(ecx + 0x18); /* 0x47087E30: mov eax, dword ptr [ecx + 0x18] */
   3325     /* test eax, eax */ /* 0x47087E33: test eax, eax */
   3326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3327     _cf = 0;
   3328     _flag_k = FK_TEST;
   3329     if (TEST_NZ(_flag_a, _flag_b)) goto L_47087E45; /* 0x47087E35: jne 0x47087e45 */
   3330 L_47087E37:
   3331     PUSH32(esp, ecx); /* 0x47087E37: push ecx */
   3332     MEM32(ecx + 0x18) = 1; /* 0x47087E38: mov dword ptr [ecx + 0x18], 1 */
   3333     RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47087E3F: call dword ptr [0x470ac19c] */
   3334     RECOMP_FLAGS_IN();
   3335 L_47087E45:
   3336     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087E45: ret  */
   3337 L_470A90C0:
   3338     ecx = MEM32(ebp + (-0x58)); /* 0x470A90C0: mov ecx, dword ptr [ebp - 0x58] */
   3339     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   3340     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3341     ecx = ecx + 4; /* 0x470A90C3: add ecx, 4 */
   3342     _flag_k = FK_ADD;
   3343     RECOMP_BACKEDGE();
   3344     goto L_47087E30; /* 0x470A90C6: jmp 0x47087e30 */
   3345     { RECOMP_REGS_OUT(); return; } /* end of function */
   3346     RECOMP_REGS_OUT();
   3347 }
   3348 
   3349 void sub_470A90CB(void) {
   3350     int _fpu_cmp = 0;
   3351     uint32_t _cf = 0;
   3352     int _df = 1;
   3353     uint32_t _flag_k = FK_NONE;
   3354     uint32_t _flag_a = 0, _flag_b = 0;
   3355     uint32_t _itail_tgt = 0;
   3356     RECOMP_REGS_LOCALS
   3357     RECOMP_ENTER(0x470A90CBu);
   3358 
   3359     goto L_470A90CB;
   3360 L_470A33EC:
   3361     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3362 L_470A90CB:
   3363     eax = 0x470B7050u; /* 0x470A90CB: mov eax, 0x470b7050 */
   3364 L_470A90D0:
   3365     RECOMP_BACKEDGE();
   3366     goto L_470A33EC; /* 0x470A90D0: jmp 0x470a33ec */
   3367     { RECOMP_REGS_OUT(); return; } /* end of function */
   3368   _ljump:
   3369     switch (_itail_tgt) {
   3370       case 0x470A33ECu: goto L_470A33EC;
   3371       case 0x470A90CBu: goto L_470A90CB;
   3372       case 0x470A90D0u: goto L_470A90D0;
   3373       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3374     }
   3375     RECOMP_REGS_OUT();
   3376 }
   3377 
   3378 void sub_470A90E0(void) {
   3379     int _fpu_cmp = 0;
   3380     uint32_t _cf = 0;
   3381     int _df = 1;
   3382     uint32_t _flag_k = FK_NONE;
   3383     uint32_t _flag_a = 0, _flag_b = 0;
   3384     uint32_t _itail_tgt = 0;
   3385     RECOMP_REGS_LOCALS
   3386     RECOMP_ENTER(0x470A90E0u);
   3387 
   3388     goto L_470A90E0;
   3389 L_47087E30:
   3390     eax = MEM32(ecx + 0x18); /* 0x47087E30: mov eax, dword ptr [ecx + 0x18] */
   3391     /* test eax, eax */ /* 0x47087E33: test eax, eax */
   3392     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3393     _cf = 0;
   3394     _flag_k = FK_TEST;
   3395     if (TEST_NZ(_flag_a, _flag_b)) goto L_47087E45; /* 0x47087E35: jne 0x47087e45 */
   3396 L_47087E37:
   3397     PUSH32(esp, ecx); /* 0x47087E37: push ecx */
   3398     MEM32(ecx + 0x18) = 1; /* 0x47087E38: mov dword ptr [ecx + 0x18], 1 */
   3399     RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47087E3F: call dword ptr [0x470ac19c] */
   3400     RECOMP_FLAGS_IN();
   3401 L_47087E45:
   3402     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47087E45: ret  */
   3403 L_470A90E0:
   3404     ecx = MEM32(ebp + (-0x10)); /* 0x470A90E0: mov ecx, dword ptr [ebp - 0x10] */
   3405     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   3406     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3407     ecx = ecx + 4; /* 0x470A90E3: add ecx, 4 */
   3408     _flag_k = FK_ADD;
   3409     RECOMP_BACKEDGE();
   3410     goto L_47087E30; /* 0x470A90E6: jmp 0x47087e30 */
   3411     { RECOMP_REGS_OUT(); return; } /* end of function */
   3412     RECOMP_REGS_OUT();
   3413 }
   3414 
   3415 void sub_470A90EB(void) {
   3416     int _fpu_cmp = 0;
   3417     uint32_t _cf = 0;
   3418     int _df = 1;
   3419     uint32_t _flag_k = FK_NONE;
   3420     uint32_t _flag_a = 0, _flag_b = 0;
   3421     uint32_t _itail_tgt = 0;
   3422     RECOMP_REGS_LOCALS
   3423     RECOMP_ENTER(0x470A90EBu);
   3424 
   3425     goto L_470A90EB;
   3426 L_470A33EC:
   3427     { _itail_tgt = (uint32_t)(MEM32(0x470AC1E8)); goto _ljump; }
   3428 L_470A90EB:
   3429     eax = 0x470B7088u; /* 0x470A90EB: mov eax, 0x470b7088 */
   3430 L_470A90F0:
   3431     RECOMP_BACKEDGE();
   3432     goto L_470A33EC; /* 0x470A90F0: jmp 0x470a33ec */
   3433     { RECOMP_REGS_OUT(); return; } /* end of function */
   3434   _ljump:
   3435     switch (_itail_tgt) {
   3436       case 0x470A33ECu: goto L_470A33EC;
   3437       case 0x470A90EBu: goto L_470A90EB;
   3438       case 0x470A90F0u: goto L_470A90F0;
   3439       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3440     }
   3441     RECOMP_REGS_OUT();
   3442 }