aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0070.c (302423B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_4709FD10(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(0x4709FD10u);
     13 
     14 L_4709FD10:
     15     eax = MEM32(ecx + (-0x18)); /* 0x4709FD10: mov eax, dword ptr [ecx - 0x18] */
     16     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD13: ret  */
     17     RECOMP_REGS_OUT();
     18 }
     19 
     20 void sub_4709FD20(void) {
     21     int _fpu_cmp = 0;
     22     uint32_t _cf = 0;
     23     int _df = 1;
     24     uint32_t _flag_k = FK_NONE;
     25     uint32_t _flag_a = 0, _flag_b = 0;
     26     uint32_t _itail_tgt = 0;
     27     RECOMP_REGS_LOCALS
     28     RECOMP_ENTER(0x4709FD20u);
     29 
     30 L_4709FD20:
     31     eax = MEM32(ecx + (-0x14)); /* 0x4709FD20: mov eax, dword ptr [ecx - 0x14] */
     32     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD23: ret  */
     33     RECOMP_REGS_OUT();
     34 }
     35 
     36 void sub_4709FD30(void) {
     37     int _fpu_cmp = 0;
     38     uint32_t _cf = 0;
     39     int _df = 1;
     40     uint32_t _flag_k = FK_NONE;
     41     uint32_t _flag_a = 0, _flag_b = 0;
     42     uint32_t _itail_tgt = 0;
     43     RECOMP_REGS_LOCALS
     44     RECOMP_ENTER(0x4709FD30u);
     45 
     46 L_4709FD30:
     47     PUSH32(esp, ecx); /* 0x4709FD30: push ecx */
     48     eax = MEM32(esp + 0x28); /* 0x4709FD31: mov eax, dword ptr [esp + 0x28] */
     49     /* test eax, eax */ /* 0x4709FD35: test eax, eax */
     50     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     51     _cf = 0;
     52     _flag_k = FK_TEST;
     53     PUSH32(esp, esi); /* 0x4709FD37: push esi */
     54     esi = ecx; /* 0x4709FD38: mov esi, ecx */
     55     MEM32(esp + 0x4) = 0; /* 0x4709FD3A: mov dword ptr [esp + 4], 0 */
     56     if (TEST_Z(_flag_a, _flag_b)) goto L_4709FD9B; /* 0x4709FD42: je 0x4709fd9b */
     57 L_4709FD44:
     58     edx = MEM32(esp + 0x28); /* 0x4709FD44: mov edx, dword ptr [esp + 0x28] */
     59     MEM32(esi) = 0x470AE404u; /* 0x4709FD48: mov dword ptr [esi], 0x470ae404 */
     60     MEM32(esi + 0x20) = 0x470AE3FCu; /* 0x4709FD4E: mov dword ptr [esi + 0x20], 0x470ae3fc */
     61     MEM32(esi + 0x38) = 0x470AE3F4u; /* 0x4709FD55: mov dword ptr [esi + 0x38], 0x470ae3f4 */
     62     PUSH32(esp, 0); /* 0x4709FD5C: push 0 */
     63     MEM32(esi + 0x14) = 0x470ACC18u; /* 0x4709FD5E: mov dword ptr [esi + 0x14], 0x470acc18 */
     64     eax = MEM32(esi + 0x20); /* 0x4709FD65: mov eax, dword ptr [esi + 0x20] */
     65     PUSH32(esp, edx); /* 0x4709FD68: push edx */
     66     edx = MEM32(esp + 0x24); /* 0x4709FD69: mov edx, dword ptr [esp + 0x24] */
     67     MEM32(esi + 0x1C) = 0x470ACCACu; /* 0x4709FD6D: mov dword ptr [esi + 0x1c], 0x470accac */
     68     ecx = MEM32(eax + 0x4); /* 0x4709FD74: mov ecx, dword ptr [eax + 4] */
     69     eax = MEM32(esp + 0x2C); /* 0x4709FD77: mov eax, dword ptr [esp + 0x2c] */
     70     PUSH32(esp, eax); /* 0x4709FD7B: push eax */
     71     eax = MEM32(esp + 0x18); /* 0x4709FD7C: mov eax, dword ptr [esp + 0x18] */
     72     PUSH32(esp, 0); /* 0x4709FD80: push 0 */
     73     MEM32(ecx + esi + 0x20) = 0x470ACC78u; /* 0x4709FD82: mov dword ptr [ecx + esi + 0x20], 0x470acc78 */
     74     ecx = MEM32(esp + 0x30); /* 0x4709FD8A: mov ecx, dword ptr [esp + 0x30] */
     75     PUSH32(esp, 0); /* 0x4709FD8E: push 0 */
     76     PUSH32(esp, ecx); /* 0x4709FD90: push ecx */
     77     PUSH32(esp, edx); /* 0x4709FD91: push edx */
     78     PUSH32(esp, eax); /* 0x4709FD92: push eax */
     79     ecx = esi + 0x24; /* 0x4709FD93: lea ecx, [esi + 0x24] */
     80     RECOMP_ICALL(0x4709FC20u); /* 0x4709FD96: call 0x4709fc20 */ /* not lifted */
     81     RECOMP_FLAGS_IN();
     82 L_4709FD9B:
     83     ecx = MEM32(esp + 0x18); /* 0x4709FD9B: mov ecx, dword ptr [esp + 0x18] */
     84     edx = MEM32(esp + 0x14); /* 0x4709FD9F: mov edx, dword ptr [esp + 0x14] */
     85     eax = MEM32(esp + 0x10); /* 0x4709FDA3: mov eax, dword ptr [esp + 0x10] */
     86     MEM32(esi + 0x4) = ecx; /* 0x4709FDA7: mov dword ptr [esi + 4], ecx */
     87     ecx = MEM32(esi); /* 0x4709FDAA: mov ecx, dword ptr [esi] */
     88     MEM32(esi + 0x8) = edx; /* 0x4709FDAC: mov dword ptr [esi + 8], edx */
     89     MEM32(esi + 0xC) = eax; /* 0x4709FDAF: mov dword ptr [esi + 0xc], eax */
     90     edx = MEM32(ecx + 0x4); /* 0x4709FDB2: mov edx, dword ptr [ecx + 4] */
     91     MEM32(edx + esi) = 0x470AE3C0u; /* 0x4709FDB5: mov dword ptr [edx + esi], 0x470ae3c0 */
     92     eax = MEM32(esi); /* 0x4709FDBC: mov eax, dword ptr [esi] */
     93     ecx = MEM32(eax + 0x8); /* 0x4709FDBE: mov ecx, dword ptr [eax + 8] */
     94     MEM32(ecx + esi) = 0x470AE3B4u; /* 0x4709FDC1: mov dword ptr [ecx + esi], 0x470ae3b4 */
     95     edx = MEM32(esi); /* 0x4709FDC8: mov edx, dword ptr [esi] */
     96     eax = MEM32(edx + 0x4); /* 0x4709FDCA: mov eax, dword ptr [edx + 4] */
     97     ecx = eax + (-0x14); /* 0x4709FDCD: lea ecx, [eax - 0x14] */
     98     MEM32(eax + esi + (-0x4)) = ecx; /* 0x4709FDD0: mov dword ptr [eax + esi - 4], ecx */
     99     edx = MEM32(esi); /* 0x4709FDD4: mov edx, dword ptr [esi] */
    100     eax = MEM32(edx + 0x8); /* 0x4709FDD6: mov eax, dword ptr [edx + 8] */
    101     ecx = eax + (-0x1C); /* 0x4709FDD9: lea ecx, [eax - 0x1c] */
    102     MEM32(eax + esi + (-0x4)) = ecx; /* 0x4709FDDC: mov dword ptr [eax + esi - 4], ecx */
    103     eax = esi; /* 0x4709FDE0: mov eax, esi */
    104     esi = POP32_VAL(esp); /* 0x4709FDE2: pop esi */
    105     ecx = POP32_VAL(esp); /* 0x4709FDE3: pop ecx */
    106     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x4709FDE4: ret 0x24 */
    107     RECOMP_REGS_OUT();
    108 }
    109 
    110 void sub_4709FDF0(void) {
    111     int _fpu_cmp = 0;
    112     uint32_t _cf = 0;
    113     int _df = 1;
    114     uint32_t _flag_k = FK_NONE;
    115     uint32_t _flag_a = 0, _flag_b = 0;
    116     uint32_t _itail_tgt = 0;
    117     RECOMP_REGS_LOCALS
    118     RECOMP_ENTER(0x4709FDF0u);
    119 
    120 L_4709FDF0:
    121     eax = MEM32(FS_BASE + (0)); /* 0x4709FDF0: mov eax, dword ptr fs:[0] */
    122     PUSH32(esp, 0xFFFFFFFFu); /* 0x4709FDF6: push -1 */
    123     PUSH32(esp, 0x470ABB68u); /* 0x4709FDF8: push 0x470abb68 */
    124     PUSH32(esp, eax); /* 0x4709FDFD: push eax */
    125     MEM32(FS_BASE + (0)) = esp; /* 0x4709FDFE: mov dword ptr fs:[0], esp */
    126     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    128     esp = esp - 0xCu; /* 0x4709FE05: sub esp, 0xc */
    129     _flag_k = FK_CMP;
    130     PUSH32(esp, esi); /* 0x4709FE08: push esi */
    131     esi = ecx; /* 0x4709FE09: mov esi, ecx */
    132     eax = MEM32(esi + (-0x14)); /* 0x4709FE0B: mov eax, dword ptr [esi - 0x14] */
    133     edx = MEM32(eax + 0xC); /* 0x4709FE0E: mov edx, dword ptr [eax + 0xc] */
    134     ecx = MEM32(esp + 0x20); /* 0x4709FE11: mov ecx, dword ptr [esp + 0x20] */
    135     MEM32(edx + esi + 0xC) = ecx; /* 0x4709FE15: mov dword ptr [edx + esi + 0xc], ecx */
    136     eax = MEM32(esi + (-0x14)); /* 0x4709FE19: mov eax, dword ptr [esi - 0x14] */
    137     edx = MEM32(eax + 0xC); /* 0x4709FE1C: mov edx, dword ptr [eax + 0xc] */
    138     eax = MEM32(esp + 0x24); /* 0x4709FE1F: mov eax, dword ptr [esp + 0x24] */
    139     MEM32(edx + esi + 0x10) = eax; /* 0x4709FE23: mov dword ptr [edx + esi + 0x10], eax */
    140     edx = MEM32(esi + (-0x14)); /* 0x4709FE27: mov edx, dword ptr [esi - 0x14] */
    141     eax = MEM32(edx + 0xC); /* 0x4709FE2A: mov eax, dword ptr [edx + 0xc] */
    142     edx = MEM32(esp + 0x28); /* 0x4709FE2D: mov edx, dword ptr [esp + 0x28] */
    143     MEM32(eax + esi + 0x14) = edx; /* 0x4709FE31: mov dword ptr [eax + esi + 0x14], edx */
    144     eax = MEM32(esi + (-0x14)); /* 0x4709FE35: mov eax, dword ptr [esi - 0x14] */
    145     edx = MEM32(eax + 0xC); /* 0x4709FE38: mov edx, dword ptr [eax + 0xc] */
    146     eax = MEM32(esp + 0x2C); /* 0x4709FE3B: mov eax, dword ptr [esp + 0x2c] */
    147     MEM32(edx + esi + 0x18) = eax; /* 0x4709FE3F: mov dword ptr [edx + esi + 0x18], eax */
    148     eax = MEM32(esi + (-0xC)); /* 0x4709FE43: mov eax, dword ptr [esi - 0xc] */
    149     edx = MEM32(eax + 0x8); /* 0x4709FE46: mov edx, dword ptr [eax + 8] */
    150     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    151     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    152     edx = edx + ecx; /* 0x4709FE49: add edx, ecx */
    153     _flag_k = FK_ADD;
    154     ecx = esi + (-0x14); /* 0x4709FE4B: lea ecx, [esi - 0x14] */
    155     /* test ecx, ecx */ /* 0x4709FE4E: test ecx, ecx */
    156     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    157     _cf = 0;
    158     _flag_k = FK_TEST;
    159     MEM32(eax + 0x8) = edx; /* 0x4709FE50: mov dword ptr [eax + 8], edx */
    160     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709FE59; /* 0x4709FE53: jne 0x4709fe59 */
    161 L_4709FE55:
    162     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    163     eax = 0; /* 0x4709FE55: xor eax, eax */
    164     _cf = 0;
    165     _flag_k = FK_TEST;
    166     goto L_4709FE63; /* 0x4709FE57: jmp 0x4709fe63 */
    167 L_4709FE59:
    168     edx = MEM32(esi + (-0x14)); /* 0x4709FE59: mov edx, dword ptr [esi - 0x14] */
    169     eax = MEM32(edx + 0x8); /* 0x4709FE5C: mov eax, dword ptr [edx + 8] */
    170     eax = eax + esi + (-0x14); /* 0x4709FE5F: lea eax, [eax + esi - 0x14] */
    171 L_4709FE63:
    172     PUSH32(esp, eax); /* 0x4709FE63: push eax */
    173     ecx = esp + 0x8; /* 0x4709FE64: lea ecx, [esp + 8] */
    174     RECOMP_ICALL(0x47017CA0u); /* 0x4709FE68: call 0x47017ca0 */ /* not lifted */
    175     RECOMP_FLAGS_IN();
    176     ecx = MEM32(esi + (-0x14)); /* 0x4709FE6D: mov ecx, dword ptr [esi - 0x14] */
    177     edx = MEM32(ecx + 0xC); /* 0x4709FE70: mov edx, dword ptr [ecx + 0xc] */
    178     ecx = MEM32(edx + esi + 0x4); /* 0x4709FE73: mov ecx, dword ptr [edx + esi + 4] */
    179     eax = MEM32(ecx); /* 0x4709FE77: mov eax, dword ptr [ecx] */
    180     edx = esp + 0x4; /* 0x4709FE79: lea edx, [esp + 4] */
    181     PUSH32(esp, edx); /* 0x4709FE7D: push edx */
    182     MEM32(esp + 0x1C) = 0; /* 0x4709FE7E: mov dword ptr [esp + 0x1c], 0 */
    183     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4709FE86: call dword ptr [eax + 4] */
    184     RECOMP_FLAGS_IN();
    185     ecx = esp + 0x4; /* 0x4709FE89: lea ecx, [esp + 4] */
    186     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4709FE8D: mov dword ptr [esp + 0x18], 0xffffffff */
    187     RECOMP_ICALL(0x47017E00u); /* 0x4709FE95: call 0x47017e00 */ /* not lifted */
    188     RECOMP_FLAGS_IN();
    189     ecx = MEM32(esp + 0x10); /* 0x4709FE9A: mov ecx, dword ptr [esp + 0x10] */
    190     esi = POP32_VAL(esp); /* 0x4709FE9E: pop esi */
    191     MEM32(FS_BASE + (0)) = ecx; /* 0x4709FE9F: mov dword ptr fs:[0], ecx */
    192     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    193     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    194     esp = esp + 0x18u; /* 0x4709FEA6: add esp, 0x18 */
    195     _flag_k = FK_ADD;
    196     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4709FEA9: ret 0x10 */
    197     RECOMP_REGS_OUT();
    198 }
    199 
    200 void sub_4709FE63(void) {
    201     int _fpu_cmp = 0;
    202     uint32_t _cf = 0;
    203     int _df = 1;
    204     uint32_t _flag_k = FK_NONE;
    205     uint32_t _flag_a = 0, _flag_b = 0;
    206     uint32_t _itail_tgt = 0;
    207     RECOMP_REGS_LOCALS
    208     RECOMP_ENTER(0x4709FE63u);
    209 
    210 L_4709FE63:
    211     PUSH32(esp, eax); /* 0x4709FE63: push eax */
    212     ecx = esp + 0x8; /* 0x4709FE64: lea ecx, [esp + 8] */
    213     RECOMP_ICALL(0x47017CA0u); /* 0x4709FE68: call 0x47017ca0 */ /* not lifted */
    214     RECOMP_FLAGS_IN();
    215     ecx = MEM32(esi + (-0x14)); /* 0x4709FE6D: mov ecx, dword ptr [esi - 0x14] */
    216     edx = MEM32(ecx + 0xC); /* 0x4709FE70: mov edx, dword ptr [ecx + 0xc] */
    217     ecx = MEM32(edx + esi + 0x4); /* 0x4709FE73: mov ecx, dword ptr [edx + esi + 4] */
    218     eax = MEM32(ecx); /* 0x4709FE77: mov eax, dword ptr [ecx] */
    219     edx = esp + 0x4; /* 0x4709FE79: lea edx, [esp + 4] */
    220     PUSH32(esp, edx); /* 0x4709FE7D: push edx */
    221     MEM32(esp + 0x1C) = 0; /* 0x4709FE7E: mov dword ptr [esp + 0x1c], 0 */
    222     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4709FE86: call dword ptr [eax + 4] */
    223     RECOMP_FLAGS_IN();
    224     ecx = esp + 0x4; /* 0x4709FE89: lea ecx, [esp + 4] */
    225     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4709FE8D: mov dword ptr [esp + 0x18], 0xffffffff */
    226     RECOMP_ICALL(0x47017E00u); /* 0x4709FE95: call 0x47017e00 */ /* not lifted */
    227     RECOMP_FLAGS_IN();
    228     ecx = MEM32(esp + 0x10); /* 0x4709FE9A: mov ecx, dword ptr [esp + 0x10] */
    229     esi = POP32_VAL(esp); /* 0x4709FE9E: pop esi */
    230     MEM32(FS_BASE + (0)) = ecx; /* 0x4709FE9F: mov dword ptr fs:[0], ecx */
    231     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    232     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    233     esp = esp + 0x18u; /* 0x4709FEA6: add esp, 0x18 */
    234     _flag_k = FK_ADD;
    235     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4709FEA9: ret 0x10 */
    236     RECOMP_REGS_OUT();
    237 }
    238 
    239 void sub_4709FEB0(void) {
    240     int _fpu_cmp = 0;
    241     uint32_t _cf = 0;
    242     int _df = 1;
    243     uint32_t _flag_k = FK_NONE;
    244     uint32_t _flag_a = 0, _flag_b = 0;
    245     uint32_t _itail_tgt = 0;
    246     RECOMP_REGS_LOCALS
    247     RECOMP_ENTER(0x4709FEB0u);
    248 
    249 L_4709FEB0:
    250     eax = MEM32(ecx + (-0x14)); /* 0x4709FEB0: mov eax, dword ptr [ecx - 0x14] */
    251     edx = MEM32(eax + 0x4); /* 0x4709FEB3: mov edx, dword ptr [eax + 4] */
    252     MEM32(edx + ecx + (-0x14)) = 0x470AE3C0u; /* 0x4709FEB6: mov dword ptr [edx + ecx - 0x14], 0x470ae3c0 */
    253     eax = MEM32(ecx + (-0x14)); /* 0x4709FEBE: mov eax, dword ptr [ecx - 0x14] */
    254     edx = MEM32(eax + 0x8); /* 0x4709FEC1: mov edx, dword ptr [eax + 8] */
    255     MEM32(edx + ecx + (-0x14)) = 0x470AE3B4u; /* 0x4709FEC4: mov dword ptr [edx + ecx - 0x14], 0x470ae3b4 */
    256     eax = MEM32(ecx + (-0x14)); /* 0x4709FECC: mov eax, dword ptr [ecx - 0x14] */
    257     eax = MEM32(eax + 0x4); /* 0x4709FECF: mov eax, dword ptr [eax + 4] */
    258     edx = eax + (-0x14); /* 0x4709FED2: lea edx, [eax - 0x14] */
    259     MEM32(eax + ecx + (-0x18)) = edx; /* 0x4709FED5: mov dword ptr [eax + ecx - 0x18], edx */
    260     eax = MEM32(ecx + (-0x14)); /* 0x4709FED9: mov eax, dword ptr [ecx - 0x14] */
    261     eax = MEM32(eax + 0x8); /* 0x4709FEDC: mov eax, dword ptr [eax + 8] */
    262     edx = eax + (-0x1C); /* 0x4709FEDF: lea edx, [eax - 0x1c] */
    263     MEM32(eax + ecx + (-0x18)) = edx; /* 0x4709FEE2: mov dword ptr [eax + ecx - 0x18], edx */
    264     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FEE6: ret  */
    265     RECOMP_REGS_OUT();
    266 }
    267 
    268 void sub_4709FEF0(void) {
    269     int _fpu_cmp = 0;
    270     uint32_t _cf = 0;
    271     int _df = 1;
    272     uint32_t _flag_k = FK_NONE;
    273     uint32_t _flag_a = 0, _flag_b = 0;
    274     uint32_t _itail_tgt = 0;
    275     RECOMP_REGS_LOCALS
    276     RECOMP_ENTER(0x4709FEF0u);
    277 
    278 L_4709FEF0:
    279     eax = MEM32(ecx + (-0x14)); /* 0x4709FEF0: mov eax, dword ptr [ecx - 0x14] */
    280     edx = MEM32(eax + 0xC); /* 0x4709FEF3: mov edx, dword ptr [eax + 0xc] */
    281     eax = MEM32(edx + ecx + 0x8); /* 0x4709FEF6: mov eax, dword ptr [edx + ecx + 8] */
    282     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FEFA: ret  */
    283     RECOMP_REGS_OUT();
    284 }
    285 
    286 void sub_4709FF00(void) {
    287     int _fpu_cmp = 0;
    288     uint32_t _cf = 0;
    289     int _df = 1;
    290     uint32_t _flag_k = FK_NONE;
    291     uint32_t _flag_a = 0, _flag_b = 0;
    292     uint32_t _itail_tgt = 0;
    293     RECOMP_REGS_LOCALS
    294     RECOMP_ENTER(0x4709FF00u);
    295 
    296 L_4709FF00:
    297     eax = MEM32(ecx + (-0x14)); /* 0x4709FF00: mov eax, dword ptr [ecx - 0x14] */
    298     edx = MEM32(eax + 0xC); /* 0x4709FF03: mov edx, dword ptr [eax + 0xc] */
    299     eax = MEM32(edx + ecx + 0x10); /* 0x4709FF06: mov eax, dword ptr [edx + ecx + 0x10] */
    300     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF0A: ret  */
    301     RECOMP_REGS_OUT();
    302 }
    303 
    304 void sub_4709FF10(void) {
    305     int _fpu_cmp = 0;
    306     uint32_t _cf = 0;
    307     int _df = 1;
    308     uint32_t _flag_k = FK_NONE;
    309     uint32_t _flag_a = 0, _flag_b = 0;
    310     uint32_t _itail_tgt = 0;
    311     RECOMP_REGS_LOCALS
    312     RECOMP_ENTER(0x4709FF10u);
    313 
    314 L_4709FF10:
    315     eax = MEM32(ecx + (-0x14)); /* 0x4709FF10: mov eax, dword ptr [ecx - 0x14] */
    316     edx = MEM32(eax + 0xC); /* 0x4709FF13: mov edx, dword ptr [eax + 0xc] */
    317     eax = MEM32(edx + ecx + 0x14); /* 0x4709FF16: mov eax, dword ptr [edx + ecx + 0x14] */
    318     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF1A: ret  */
    319     RECOMP_REGS_OUT();
    320 }
    321 
    322 void sub_4709FF20(void) {
    323     int _fpu_cmp = 0;
    324     uint32_t _cf = 0;
    325     int _df = 1;
    326     uint32_t _flag_k = FK_NONE;
    327     uint32_t _flag_a = 0, _flag_b = 0;
    328     uint32_t _itail_tgt = 0;
    329     RECOMP_REGS_LOCALS
    330     RECOMP_ENTER(0x4709FF20u);
    331 
    332 L_4709FF20:
    333     eax = MEM32(ecx + (-0x14)); /* 0x4709FF20: mov eax, dword ptr [ecx - 0x14] */
    334     edx = MEM32(eax + 0xC); /* 0x4709FF23: mov edx, dword ptr [eax + 0xc] */
    335     eax = MEM32(edx + ecx + 0x18); /* 0x4709FF26: mov eax, dword ptr [edx + ecx + 0x18] */
    336     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF2A: ret  */
    337     RECOMP_REGS_OUT();
    338 }
    339 
    340 void sub_4709FF30(void) {
    341     int _fpu_cmp = 0;
    342     uint32_t _cf = 0;
    343     int _df = 1;
    344     uint32_t _flag_k = FK_NONE;
    345     uint32_t _flag_a = 0, _flag_b = 0;
    346     uint32_t _itail_tgt = 0;
    347     RECOMP_REGS_LOCALS
    348     RECOMP_ENTER(0x4709FF30u);
    349 
    350 L_4709FF30:
    351     eax = MEM32(ecx + (-0x14)); /* 0x4709FF30: mov eax, dword ptr [ecx - 0x14] */
    352     edx = MEM32(eax + 0xC); /* 0x4709FF33: mov edx, dword ptr [eax + 0xc] */
    353     eax = MEM32(edx + ecx + (-0x4)); /* 0x4709FF36: mov eax, dword ptr [edx + ecx - 4] */
    354     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF3A: ret  */
    355     RECOMP_REGS_OUT();
    356 }
    357 
    358 void sub_4709FF40(void) {
    359     int _fpu_cmp = 0;
    360     uint32_t _cf = 0;
    361     int _df = 1;
    362     uint32_t _flag_k = FK_NONE;
    363     uint32_t _flag_a = 0, _flag_b = 0;
    364     uint32_t _itail_tgt = 0;
    365     RECOMP_REGS_LOCALS
    366     RECOMP_ENTER(0x4709FF40u);
    367 
    368 L_4709FF40:
    369     eax = MEM32(ecx + (-0x14)); /* 0x4709FF40: mov eax, dword ptr [ecx - 0x14] */
    370     edx = MEM32(eax + 0xC); /* 0x4709FF43: mov edx, dword ptr [eax + 0xc] */
    371     eax = MEM32(edx + ecx + (-0xC)); /* 0x4709FF46: mov eax, dword ptr [edx + ecx - 0xc] */
    372     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF4A: ret  */
    373     RECOMP_REGS_OUT();
    374 }
    375 
    376 void sub_4709FF50(void) {
    377     int _fpu_cmp = 0;
    378     uint32_t _cf = 0;
    379     int _df = 1;
    380     uint32_t _flag_k = FK_NONE;
    381     uint32_t _flag_a = 0, _flag_b = 0;
    382     uint32_t _itail_tgt = 0;
    383     RECOMP_REGS_LOCALS
    384     RECOMP_ENTER(0x4709FF50u);
    385 
    386 L_4709FF50:
    387     eax = MEM32(ecx + (-0x14)); /* 0x4709FF50: mov eax, dword ptr [ecx - 0x14] */
    388     edx = MEM32(eax + 0xC); /* 0x4709FF53: mov edx, dword ptr [eax + 0xc] */
    389     eax = MEM32(edx + ecx + (-0x8)); /* 0x4709FF56: mov eax, dword ptr [edx + ecx - 8] */
    390     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF5A: ret  */
    391     RECOMP_REGS_OUT();
    392 }
    393 
    394 void sub_4709FF60(void) {
    395     int _fpu_cmp = 0;
    396     uint32_t _cf = 0;
    397     int _df = 1;
    398     uint32_t _flag_k = FK_NONE;
    399     uint32_t _flag_a = 0, _flag_b = 0;
    400     uint32_t _itail_tgt = 0;
    401     RECOMP_REGS_LOCALS
    402     RECOMP_ENTER(0x4709FF60u);
    403 
    404 L_4709FF60:
    405     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
    406     RECOMP_FLAGS_IN();
    407     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
    408     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    409     eax = 0; /* 0x4709FF6C: xor eax, eax */
    410     _cf = 0;
    411     _flag_k = FK_TEST;
    412     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
    413     RECOMP_REGS_OUT();
    414 }
    415 
    416 void sub_4709FF70(void) {
    417     int _fpu_cmp = 0;
    418     uint32_t _cf = 0;
    419     int _df = 1;
    420     uint32_t _flag_k = FK_NONE;
    421     uint32_t _flag_a = 0, _flag_b = 0;
    422     uint32_t _itail_tgt = 0;
    423     RECOMP_REGS_LOCALS
    424     RECOMP_ENTER(0x4709FF70u);
    425 
    426 L_4709FF70:
    427     eax = MEM32(ecx + (-0x14)); /* 0x4709FF70: mov eax, dword ptr [ecx - 0x14] */
    428     edx = MEM32(eax + 0xC); /* 0x4709FF73: mov edx, dword ptr [eax + 0xc] */
    429     eax = edx + ecx + 0x20; /* 0x4709FF76: lea eax, [edx + ecx + 0x20] */
    430     ecx = MEM32(esp + 0x4); /* 0x4709FF7A: mov ecx, dword ptr [esp + 4] */
    431     /* test ecx, ecx */ /* 0x4709FF7E: test ecx, ecx */
    432     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    433     _cf = 0;
    434     _flag_k = FK_TEST;
    435     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709FFE5; /* 0x4709FF80: jne 0x4709ffe5 */
    436 L_4709FF82:
    437     PUSH32(esp, esi); /* 0x4709FF82: push esi */
    438     PUSH32(esp, edi); /* 0x4709FF83: push edi */
    439     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709FF84: call dword ptr [0x470ac150] */
    440     RECOMP_FLAGS_IN();
    441     edi = eax; /* 0x4709FF8A: mov edi, eax */
    442     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF8C: call dword ptr [0x470ac3c8] */
    443     RECOMP_FLAGS_IN();
    444     eax = MEM32(eax); /* 0x4709FF92: mov eax, dword ptr [eax] */
    445     /* test eax, eax */ /* 0x4709FF94: test eax, eax */
    446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    447     _cf = 0;
    448     _flag_k = FK_TEST;
    449     if (TEST_Z(_flag_a, _flag_b)) goto L_4709FF9A; /* 0x4709FF96: je 0x4709ff9a */
    450 L_4709FF98:
    451     edi = eax; /* 0x4709FF98: mov edi, eax */
    452 L_4709FF9A:
    453     RECOMP_ICALL(0x47039020u); /* 0x4709FF9A: call 0x47039020 */ /* not lifted */
    454     RECOMP_FLAGS_IN();
    455     esi = eax; /* 0x4709FF9F: mov esi, eax */
    456     ecx = esi; /* 0x4709FFA1: mov ecx, esi */
    457     RECOMP_ICALL(0x4703B210u); /* 0x4709FFA3: call 0x4703b210 */ /* not lifted */
    458     RECOMP_FLAGS_IN();
    459     PUSH32(esp, eax); /* 0x4709FFA8: push eax */
    460     ecx = esi; /* 0x4709FFA9: mov ecx, esi */
    461     RECOMP_ICALL(0x4703B240u); /* 0x4709FFAB: call 0x4703b240 */ /* not lifted */
    462     RECOMP_FLAGS_IN();
    463     PUSH32(esp, eax); /* 0x4709FFB0: push eax */
    464     ecx = esi; /* 0x4709FFB1: mov ecx, esi */
    465     RECOMP_ICALL(0x4703B080u); /* 0x4709FFB3: call 0x4703b080 */ /* not lifted */
    466     RECOMP_FLAGS_IN();
    467     PUSH32(esp, eax); /* 0x4709FFB8: push eax */
    468     PUSH32(esp, edi); /* 0x4709FFB9: push edi */
    469     PUSH32(esp, 0xFFFFFFFFu); /* 0x4709FFBA: push -1 */
    470     PUSH32(esp, 0x5Bu); /* 0x4709FFBC: push 0x5b */
    471     PUSH32(esp, 0x4710DB30u); /* 0x4709FFBE: push 0x4710db30 */
    472     ecx = esi; /* 0x4709FFC3: mov ecx, esi */
    473     RECOMP_ICALL(0x4703A340u); /* 0x4709FFC5: call 0x4703a340 */ /* not lifted */
    474     RECOMP_FLAGS_IN();
    475     PUSH32(esp, 0x4710DB08u); /* 0x4709FFCA: push 0x4710db08 */
    476     PUSH32(esp, 0x80u); /* 0x4709FFCF: push 0x80 */
    477     PUSH32(esp, esi); /* 0x4709FFD4: push esi */
    478     RECOMP_ICALL(0x47039830u); /* 0x4709FFD5: call 0x47039830 */ /* not lifted */
    479     RECOMP_FLAGS_IN();
    480     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    481     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    482     esp = esp + 0xCu; /* 0x4709FFDA: add esp, 0xc */
    483     _flag_k = FK_ADD;
    484     edi = POP32_VAL(esp); /* 0x4709FFDD: pop edi */
    485     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    486     eax = eax | 0xFFFFFFFFu; /* 0x4709FFDE: or eax, 0xffffffff */
    487     _cf = 0;
    488     _flag_k = FK_TEST;
    489     esi = POP32_VAL(esp); /* 0x4709FFE1: pop esi */
    490     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709FFE2: ret 4 */
    491 L_4709FFE5:
    492     edx = MEM32(ecx); /* 0x4709FFE5: mov edx, dword ptr [ecx] */
    493     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFCCu);
    494     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    495     eax = eax + 0xFFFFFFCCu; /* 0x4709FFE7: add eax, -0x34 */
    496     _flag_k = FK_ADD;
    497     PUSH32(esp, eax); /* 0x4709FFEA: push eax */
    498     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x4709FFEB: call dword ptr [edx + 0x9c] */
    499     RECOMP_FLAGS_IN();
    500     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709FFF1: ret 4 */
    501     RECOMP_REGS_OUT();
    502 }
    503 
    504 void sub_470A0000(void) {
    505     int _fpu_cmp = 0;
    506     uint32_t _cf = 0;
    507     int _df = 1;
    508     uint32_t _flag_k = FK_NONE;
    509     uint32_t _flag_a = 0, _flag_b = 0;
    510     uint32_t _itail_tgt = 0;
    511     RECOMP_REGS_LOCALS
    512     RECOMP_ENTER(0x470A0000u);
    513 
    514 L_470A0000:
    515     PUSH32(esp, ecx); /* 0x470A0000: push ecx */
    516     edx = MEM32(esp + 0xC); /* 0x470A0001: mov edx, dword ptr [esp + 0xc] */
    517     eax = ecx; /* 0x470A0005: mov eax, ecx */
    518     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    519     ecx = 0; /* 0x470A0007: xor ecx, ecx */
    520     _cf = 0;
    521     _flag_k = FK_TEST;
    522     /* cmp edx, ecx */ /* 0x470A0009: cmp edx, ecx */
    523     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    525     _flag_k = FK_CMP;
    526     MEM32(esp) = ecx; /* 0x470A000B: mov dword ptr [esp], ecx */
    527     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A003A; /* 0x470A000F: je 0x470a003a */
    528 L_470A0011:
    529     MEM32(eax) = 0x470AE430u; /* 0x470A0011: mov dword ptr [eax], 0x470ae430 */
    530     MEM32(eax + 0x24) = 0x470AE428u; /* 0x470A0017: mov dword ptr [eax + 0x24], 0x470ae428 */
    531     MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x470A001E: mov dword ptr [eax + 0x18], 0x470acc4c */
    532     edx = MEM32(eax + 0x24); /* 0x470A0025: mov edx, dword ptr [eax + 0x24] */
    533     MEM32(eax + 0x20) = 0x470ACC6Cu; /* 0x470A0028: mov dword ptr [eax + 0x20], 0x470acc6c */
    534     edx = MEM32(edx + 0x4); /* 0x470A002F: mov edx, dword ptr [edx + 4] */
    535     MEM32(edx + eax + 0x24) = 0x470ACC5Cu; /* 0x470A0032: mov dword ptr [edx + eax + 0x24], 0x470acc5c */
    536 L_470A003A:
    537     edx = MEM32(esp + 0x8); /* 0x470A003A: mov edx, dword ptr [esp + 8] */
    538     MEM32(eax + 0x8) = ecx; /* 0x470A003E: mov dword ptr [eax + 8], ecx */
    539     MEM32(eax + 0xC) = ecx; /* 0x470A0041: mov dword ptr [eax + 0xc], ecx */
    540     ecx = MEM32(eax); /* 0x470A0044: mov ecx, dword ptr [eax] */
    541     MEM32(eax + 0x4) = edx; /* 0x470A0046: mov dword ptr [eax + 4], edx */
    542     MEM32(eax + 0x10) = 0xFFFFFFFFu; /* 0x470A0049: mov dword ptr [eax + 0x10], 0xffffffff */
    543     edx = MEM32(ecx + 0x4); /* 0x470A0050: mov edx, dword ptr [ecx + 4] */
    544     MEM32(edx + eax) = 0x470AE39Cu; /* 0x470A0053: mov dword ptr [edx + eax], 0x470ae39c */
    545     ecx = MEM32(eax); /* 0x470A005A: mov ecx, dword ptr [eax] */
    546     ecx = MEM32(ecx + 0x4); /* 0x470A005C: mov ecx, dword ptr [ecx + 4] */
    547     edx = ecx + (-0x18); /* 0x470A005F: lea edx, [ecx - 0x18] */
    548     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A0062: mov dword ptr [ecx + eax - 4], edx */
    549     ecx = MEM32(eax); /* 0x470A0066: mov ecx, dword ptr [eax] */
    550     edx = MEM32(ecx + 0x4); /* 0x470A0068: mov edx, dword ptr [ecx + 4] */
    551     MEM32(edx + eax) = 0x470AE418u; /* 0x470A006B: mov dword ptr [edx + eax], 0x470ae418 */
    552     ecx = MEM32(eax); /* 0x470A0072: mov ecx, dword ptr [eax] */
    553     edx = MEM32(ecx + 0x8); /* 0x470A0074: mov edx, dword ptr [ecx + 8] */
    554     MEM32(edx + eax) = 0x470AE414u; /* 0x470A0077: mov dword ptr [edx + eax], 0x470ae414 */
    555     ecx = MEM32(eax); /* 0x470A007E: mov ecx, dword ptr [eax] */
    556     ecx = MEM32(ecx + 0x4); /* 0x470A0080: mov ecx, dword ptr [ecx + 4] */
    557     edx = ecx + (-0x18); /* 0x470A0083: lea edx, [ecx - 0x18] */
    558     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A0086: mov dword ptr [ecx + eax - 4], edx */
    559     ecx = MEM32(eax); /* 0x470A008A: mov ecx, dword ptr [eax] */
    560     ecx = MEM32(ecx + 0x8); /* 0x470A008C: mov ecx, dword ptr [ecx + 8] */
    561     edx = ecx + (-0x20); /* 0x470A008F: lea edx, [ecx - 0x20] */
    562     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A0092: mov dword ptr [ecx + eax - 4], edx */
    563     ecx = POP32_VAL(esp); /* 0x470A0096: pop ecx */
    564     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A0097: ret 8 */
    565     RECOMP_REGS_OUT();
    566 }
    567 
    568 void sub_470A00A0(void) {
    569     int _fpu_cmp = 0;
    570     uint32_t _cf = 0;
    571     int _df = 1;
    572     uint32_t _flag_k = FK_NONE;
    573     uint32_t _flag_a = 0, _flag_b = 0;
    574     uint32_t _itail_tgt = 0;
    575     RECOMP_REGS_LOCALS
    576     RECOMP_ENTER(0x470A00A0u);
    577 
    578 L_470A00A0:
    579     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A00A0: push -1 */
    580     PUSH32(esp, 0x470ABB8Bu); /* 0x470A00A2: push 0x470abb8b */
    581     eax = MEM32(FS_BASE + (0)); /* 0x470A00A7: mov eax, dword ptr fs:[0] */
    582     PUSH32(esp, eax); /* 0x470A00AD: push eax */
    583     MEM32(FS_BASE + (0)) = esp; /* 0x470A00AE: mov dword ptr fs:[0], esp */
    584     PUSH32(esp, ecx); /* 0x470A00B5: push ecx */
    585     PUSH32(esp, esi); /* 0x470A00B6: push esi */
    586     PUSH32(esp, edi); /* 0x470A00B7: push edi */
    587     PUSH32(esp, 0x54u); /* 0x470A00B8: push 0x54 */
    588     esi = ecx; /* 0x470A00BA: mov esi, ecx */
    589     RECOMP_ICALL(0x470A33F2u); /* 0x470A00BC: call 0x470a33f2 */ /* not lifted */
    590     RECOMP_FLAGS_IN();
    591     edi = eax; /* 0x470A00C1: mov edi, eax */
    592     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    593     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    594     esp = esp + 4; /* 0x470A00C3: add esp, 4 */
    595     _flag_k = FK_ADD;
    596     MEM32(esp + 0x8) = edi; /* 0x470A00C6: mov dword ptr [esp + 8], edi */
    597     /* test edi, edi */ /* 0x470A00CA: test edi, edi */
    598     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    599     _cf = 0;
    600     _flag_k = FK_TEST;
    601     MEM32(esp + 0x14) = 0; /* 0x470A00CC: mov dword ptr [esp + 0x14], 0 */
    602     if (TEST_Z(_flag_a, _flag_b)) goto L_470A010D; /* 0x470A00D4: je 0x470a010d */
    603 L_470A00D6:
    604     eax = MEM32(esp + 0x2C); /* 0x470A00D6: mov eax, dword ptr [esp + 0x2c] */
    605     ecx = MEM32(esi + (-0x1C)); /* 0x470A00DA: mov ecx, dword ptr [esi - 0x1c] */
    606     edx = MEM32(esp + 0x28); /* 0x470A00DD: mov edx, dword ptr [esp + 0x28] */
    607     PUSH32(esp, 1); /* 0x470A00E1: push 1 */
    608     PUSH32(esp, eax); /* 0x470A00E3: push eax */
    609     eax = MEM32(ecx); /* 0x470A00E4: mov eax, dword ptr [ecx] */
    610     PUSH32(esp, edx); /* 0x470A00E6: push edx */
    611     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A00E7: call dword ptr [eax + 4] */
    612     RECOMP_FLAGS_IN();
    613     ecx = MEM32(esp + 0x30); /* 0x470A00EA: mov ecx, dword ptr [esp + 0x30] */
    614     edx = MEM32(esp + 0x2C); /* 0x470A00EE: mov edx, dword ptr [esp + 0x2c] */
    615     PUSH32(esp, eax); /* 0x470A00F2: push eax */
    616     eax = MEM32(esp + 0x2C); /* 0x470A00F3: mov eax, dword ptr [esp + 0x2c] */
    617     PUSH32(esp, ecx); /* 0x470A00F7: push ecx */
    618     ecx = MEM32(esi + (-0x10)); /* 0x470A00F8: mov ecx, dword ptr [esi - 0x10] */
    619     PUSH32(esp, edx); /* 0x470A00FB: push edx */
    620     edx = MEM32(esi + (-0x14)); /* 0x470A00FC: mov edx, dword ptr [esi - 0x14] */
    621     PUSH32(esp, eax); /* 0x470A00FF: push eax */
    622     PUSH32(esp, ecx); /* 0x470A0100: push ecx */
    623     PUSH32(esp, edx); /* 0x470A0101: push edx */
    624     ecx = edi; /* 0x470A0102: mov ecx, edi */
    625     RECOMP_ICALL(0x4709FD30u); /* 0x470A0104: call 0x4709fd30 */ /* not lifted */
    626     RECOMP_FLAGS_IN();
    627     edi = eax; /* 0x470A0109: mov edi, eax */
    628     goto L_470A010F; /* 0x470A010B: jmp 0x470a010f */
    629 L_470A010D:
    630     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    631     edi = 0; /* 0x470A010D: xor edi, edi */
    632     _cf = 0;
    633     _flag_k = FK_TEST;
    634 L_470A010F:
    635     /* test edi, edi */ /* 0x470A010F: test edi, edi */
    636     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    637     _cf = 0;
    638     _flag_k = FK_TEST;
    639     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A0111: mov dword ptr [esp + 0x14], 0xffffffff */
    640     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A013D; /* 0x470A0119: jne 0x470a013d */
    641 L_470A011B:
    642     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A011B: call dword ptr [0x470ac3c8] */
    643     RECOMP_FLAGS_IN();
    644     edi = POP32_VAL(esp); /* 0x470A0121: pop edi */
    645     MEM32(eax) = 0xCu; /* 0x470A0122: mov dword ptr [eax], 0xc */
    646     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    647     eax = eax | 0xFFFFFFFFu; /* 0x470A0128: or eax, 0xffffffff */
    648     _cf = 0;
    649     _flag_k = FK_TEST;
    650     esi = POP32_VAL(esp); /* 0x470A012B: pop esi */
    651     ecx = MEM32(esp + 0x4); /* 0x470A012C: mov ecx, dword ptr [esp + 4] */
    652     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0130: mov dword ptr fs:[0], ecx */
    653     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    654     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    655     esp = esp + 0x10u; /* 0x470A0137: add esp, 0x10 */
    656     _flag_k = FK_ADD;
    657     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A013A: ret 0x14 */
    658 L_470A013D:
    659     PUSH32(esp, edi); /* 0x470A013D: push edi */
    660     ecx = esi + (-0x20); /* 0x470A013E: lea ecx, [esi - 0x20] */
    661     RECOMP_ICALL(0x470A01D0u); /* 0x470A0141: call 0x470a01d0 */ /* not lifted */
    662     RECOMP_FLAGS_IN();
    663     esi = eax; /* 0x470A0146: mov esi, eax */
    664     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0148: cmp esi, -1 */
    665     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    667     _flag_k = FK_CMP;
    668     if (CMP_NE(_flag_a, _flag_b)) goto L_470A015B; /* 0x470A014B: jne 0x470a015b */
    669 L_470A014D:
    670     eax = MEM32(edi); /* 0x470A014D: mov eax, dword ptr [edi] */
    671     ecx = MEM32(eax + 0x4); /* 0x470A014F: mov ecx, dword ptr [eax + 4] */
    672     edx = MEM32(ecx + edi); /* 0x470A0152: mov edx, dword ptr [ecx + edi] */
    673     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
    674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    675     ecx = ecx + edi; /* 0x470A0155: add ecx, edi */
    676     _flag_k = FK_ADD;
    677     PUSH32(esp, 1); /* 0x470A0157: push 1 */
    678     RECOMP_ICALL(MEM32(edx)); /* 0x470A0159: call dword ptr [edx] */
    679     RECOMP_FLAGS_IN();
    680 L_470A015B:
    681     ecx = MEM32(esp + 0xC); /* 0x470A015B: mov ecx, dword ptr [esp + 0xc] */
    682     edi = POP32_VAL(esp); /* 0x470A015F: pop edi */
    683     eax = esi; /* 0x470A0160: mov eax, esi */
    684     esi = POP32_VAL(esp); /* 0x470A0162: pop esi */
    685     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0163: mov dword ptr fs:[0], ecx */
    686     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    687     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    688     esp = esp + 0x10u; /* 0x470A016A: add esp, 0x10 */
    689     _flag_k = FK_ADD;
    690     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A016D: ret 0x14 */
    691     RECOMP_REGS_OUT();
    692 }
    693 
    694 void sub_470A010F(void) {
    695     int _fpu_cmp = 0;
    696     uint32_t _cf = 0;
    697     int _df = 1;
    698     uint32_t _flag_k = FK_NONE;
    699     uint32_t _flag_a = 0, _flag_b = 0;
    700     uint32_t _itail_tgt = 0;
    701     RECOMP_REGS_LOCALS
    702     RECOMP_ENTER(0x470A010Fu);
    703 
    704 L_470A010F:
    705     /* test edi, edi */ /* 0x470A010F: test edi, edi */
    706     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    707     _cf = 0;
    708     _flag_k = FK_TEST;
    709     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A0111: mov dword ptr [esp + 0x14], 0xffffffff */
    710     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A013D; /* 0x470A0119: jne 0x470a013d */
    711 L_470A011B:
    712     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A011B: call dword ptr [0x470ac3c8] */
    713     RECOMP_FLAGS_IN();
    714     edi = POP32_VAL(esp); /* 0x470A0121: pop edi */
    715     MEM32(eax) = 0xCu; /* 0x470A0122: mov dword ptr [eax], 0xc */
    716     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    717     eax = eax | 0xFFFFFFFFu; /* 0x470A0128: or eax, 0xffffffff */
    718     _cf = 0;
    719     _flag_k = FK_TEST;
    720     esi = POP32_VAL(esp); /* 0x470A012B: pop esi */
    721     ecx = MEM32(esp + 0x4); /* 0x470A012C: mov ecx, dword ptr [esp + 4] */
    722     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0130: mov dword ptr fs:[0], ecx */
    723     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    724     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    725     esp = esp + 0x10u; /* 0x470A0137: add esp, 0x10 */
    726     _flag_k = FK_ADD;
    727     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A013A: ret 0x14 */
    728 L_470A013D:
    729     PUSH32(esp, edi); /* 0x470A013D: push edi */
    730     ecx = esi + (-0x20); /* 0x470A013E: lea ecx, [esi - 0x20] */
    731     RECOMP_ICALL(0x470A01D0u); /* 0x470A0141: call 0x470a01d0 */ /* not lifted */
    732     RECOMP_FLAGS_IN();
    733     esi = eax; /* 0x470A0146: mov esi, eax */
    734     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0148: cmp esi, -1 */
    735     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    737     _flag_k = FK_CMP;
    738     if (CMP_NE(_flag_a, _flag_b)) goto L_470A015B; /* 0x470A014B: jne 0x470a015b */
    739 L_470A014D:
    740     eax = MEM32(edi); /* 0x470A014D: mov eax, dword ptr [edi] */
    741     ecx = MEM32(eax + 0x4); /* 0x470A014F: mov ecx, dword ptr [eax + 4] */
    742     edx = MEM32(ecx + edi); /* 0x470A0152: mov edx, dword ptr [ecx + edi] */
    743     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
    744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    745     ecx = ecx + edi; /* 0x470A0155: add ecx, edi */
    746     _flag_k = FK_ADD;
    747     PUSH32(esp, 1); /* 0x470A0157: push 1 */
    748     RECOMP_ICALL(MEM32(edx)); /* 0x470A0159: call dword ptr [edx] */
    749     RECOMP_FLAGS_IN();
    750 L_470A015B:
    751     ecx = MEM32(esp + 0xC); /* 0x470A015B: mov ecx, dword ptr [esp + 0xc] */
    752     edi = POP32_VAL(esp); /* 0x470A015F: pop edi */
    753     eax = esi; /* 0x470A0160: mov eax, esi */
    754     esi = POP32_VAL(esp); /* 0x470A0162: pop esi */
    755     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0163: mov dword ptr fs:[0], ecx */
    756     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    757     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    758     esp = esp + 0x10u; /* 0x470A016A: add esp, 0x10 */
    759     _flag_k = FK_ADD;
    760     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A016D: ret 0x14 */
    761     RECOMP_REGS_OUT();
    762 }
    763 
    764 void sub_470A0170(void) {
    765     int _fpu_cmp = 0;
    766     uint32_t _cf = 0;
    767     int _df = 1;
    768     uint32_t _flag_k = FK_NONE;
    769     uint32_t _flag_a = 0, _flag_b = 0;
    770     uint32_t _itail_tgt = 0;
    771     RECOMP_REGS_LOCALS
    772     RECOMP_ENTER(0x470A0170u);
    773 
    774 L_470A0170:
    775     eax = MEM32(ecx + (-0x18)); /* 0x470A0170: mov eax, dword ptr [ecx - 0x18] */
    776     edx = MEM32(eax + 0x4); /* 0x470A0173: mov edx, dword ptr [eax + 4] */
    777     MEM32(edx + ecx + (-0x18)) = 0x470AE418u; /* 0x470A0176: mov dword ptr [edx + ecx - 0x18], 0x470ae418 */
    778     eax = MEM32(ecx + (-0x18)); /* 0x470A017E: mov eax, dword ptr [ecx - 0x18] */
    779     edx = MEM32(eax + 0x8); /* 0x470A0181: mov edx, dword ptr [eax + 8] */
    780     MEM32(edx + ecx + (-0x18)) = 0x470AE414u; /* 0x470A0184: mov dword ptr [edx + ecx - 0x18], 0x470ae414 */
    781     eax = MEM32(ecx + (-0x18)); /* 0x470A018C: mov eax, dword ptr [ecx - 0x18] */
    782     eax = MEM32(eax + 0x4); /* 0x470A018F: mov eax, dword ptr [eax + 4] */
    783     edx = eax + (-0x18); /* 0x470A0192: lea edx, [eax - 0x18] */
    784     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0195: mov dword ptr [eax + ecx - 0x1c], edx */
    785     eax = MEM32(ecx + (-0x18)); /* 0x470A0199: mov eax, dword ptr [ecx - 0x18] */
    786     eax = MEM32(eax + 0x8); /* 0x470A019C: mov eax, dword ptr [eax + 8] */
    787     edx = eax + (-0x20); /* 0x470A019F: lea edx, [eax - 0x20] */
    788     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A01A2: mov dword ptr [eax + ecx - 0x1c], edx */
    789     eax = MEM32(ecx + (-0x18)); /* 0x470A01A6: mov eax, dword ptr [ecx - 0x18] */
    790     edx = MEM32(eax + 0x4); /* 0x470A01A9: mov edx, dword ptr [eax + 4] */
    791     MEM32(edx + ecx + (-0x18)) = 0x470AE39Cu; /* 0x470A01AC: mov dword ptr [edx + ecx - 0x18], 0x470ae39c */
    792     eax = MEM32(ecx + (-0x18)); /* 0x470A01B4: mov eax, dword ptr [ecx - 0x18] */
    793     eax = MEM32(eax + 0x4); /* 0x470A01B7: mov eax, dword ptr [eax + 4] */
    794     edx = eax + (-0x18); /* 0x470A01BA: lea edx, [eax - 0x18] */
    795     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A01BD: mov dword ptr [eax + ecx - 0x1c], edx */
    796     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A01C1: ret  */
    797     RECOMP_REGS_OUT();
    798 }
    799 
    800 void sub_470A01D0(void) {
    801     int _fpu_cmp = 0;
    802     uint32_t _cf = 0;
    803     int _df = 1;
    804     uint32_t _flag_k = FK_NONE;
    805     uint32_t _flag_a = 0, _flag_b = 0;
    806     uint32_t _itail_tgt = 0;
    807     RECOMP_REGS_LOCALS
    808     RECOMP_ENTER(0x470A01D0u);
    809 
    810 L_470A01D0:
    811     PUSH32(esp, ecx); /* 0x470A01D0: push ecx */
    812     PUSH32(esp, ebx); /* 0x470A01D1: push ebx */
    813     PUSH32(esp, esi); /* 0x470A01D2: push esi */
    814     esi = MEM32(esp + 0x10); /* 0x470A01D3: mov esi, dword ptr [esp + 0x10] */
    815     /* test esi, esi */ /* 0x470A01D7: test esi, esi */
    816     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    817     _cf = 0;
    818     _flag_k = FK_TEST;
    819     PUSH32(esp, edi); /* 0x470A01D9: push edi */
    820     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A01E0; /* 0x470A01DA: jne 0x470a01e0 */
    821 L_470A01DC:
    822     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    823     ebx = 0; /* 0x470A01DC: xor ebx, ebx */
    824     _cf = 0;
    825     _flag_k = FK_TEST;
    826     goto L_470A01E7; /* 0x470A01DE: jmp 0x470a01e7 */
    827 L_470A01E0:
    828     eax = MEM32(esi); /* 0x470A01E0: mov eax, dword ptr [esi] */
    829     ebx = MEM32(eax + 0xC); /* 0x470A01E2: mov ebx, dword ptr [eax + 0xc] */
    830     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
    831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    832     ebx = ebx + esi; /* 0x470A01E5: add ebx, esi */
    833     _flag_k = FK_ADD;
    834 L_470A01E7:
    835     ecx = MEM32(esi); /* 0x470A01E7: mov ecx, dword ptr [esi] */
    836     edx = MEM32(ecx + 0x8); /* 0x470A01E9: mov edx, dword ptr [ecx + 8] */
    837     eax = MEM32(edx + esi); /* 0x470A01EC: mov eax, dword ptr [edx + esi] */
    838     ecx = edx + esi; /* 0x470A01EF: lea ecx, [edx + esi] */
    839     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A01F2: call dword ptr [eax + 4] */
    840     RECOMP_FLAGS_IN();
    841     ecx = MEM32(eax + 0x2C); /* 0x470A01F5: mov ecx, dword ptr [eax + 0x2c] */
    842     edi = MEM32(ecx + 0x14); /* 0x470A01F8: mov edi, dword ptr [ecx + 0x14] */
    843     ecx = MEM32(eax + 0x8); /* 0x470A01FB: mov ecx, dword ptr [eax + 8] */
    844     edx = MEM32(esi); /* 0x470A01FE: mov edx, dword ptr [esi] */
    845     eax = MEM32(edx + 0x8); /* 0x470A0200: mov eax, dword ptr [edx + 8] */
    846     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
    847     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    848     edi = edi + ecx; /* 0x470A0203: add edi, ecx */
    849     _flag_k = FK_ADD;
    850     ecx = edx; /* 0x470A0205: mov ecx, edx */
    851     edx = MEM32(ecx + 0x8); /* 0x470A0207: mov edx, dword ptr [ecx + 8] */
    852     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    853     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    854     eax = eax + esi; /* 0x470A020A: add eax, esi */
    855     _flag_k = FK_ADD;
    856     MEM32(esp + 0x14) = eax; /* 0x470A020C: mov dword ptr [esp + 0x14], eax */
    857     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
    858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    859     esi = esi + edx; /* 0x470A0210: add esi, edx */
    860     _flag_k = FK_ADD;
    861     edx = MEM32(esi); /* 0x470A0212: mov edx, dword ptr [esi] */
    862     PUSH32(esp, ebx); /* 0x470A0214: push ebx */
    863     eax = esp + 0x10; /* 0x470A0215: lea eax, [esp + 0x10] */
    864     PUSH32(esp, eax); /* 0x470A0219: push eax */
    865     ecx = esi; /* 0x470A021A: mov ecx, esi */
    866     RECOMP_ICALL(MEM32(edx)); /* 0x470A021C: call dword ptr [edx] */
    867     RECOMP_FLAGS_IN();
    868     PUSH32(esp, eax); /* 0x470A021E: push eax */
    869     eax = MEM32(esi); /* 0x470A021F: mov eax, dword ptr [esi] */
    870     PUSH32(esp, edi); /* 0x470A0221: push edi */
    871     ecx = esi; /* 0x470A0222: mov ecx, esi */
    872     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x470A0224: call dword ptr [eax + 8] */
    873     RECOMP_FLAGS_IN();
    874     PUSH32(esp, eax); /* 0x470A0227: push eax */
    875     RECOMP_ICALL(MEM32(0x470AC110)); /* 0x470A0228: call dword ptr [0x470ac110] */
    876     RECOMP_FLAGS_IN();
    877     /* cmp eax, 1 */ /* 0x470A022E: cmp eax, 1 */
    878     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    880     _flag_k = FK_CMP;
    881     if (CMP_NE(_flag_a, _flag_b)) goto L_470A023A; /* 0x470A0231: jne 0x470a023a */
    882 L_470A0233:
    883     edi = POP32_VAL(esp); /* 0x470A0233: pop edi */
    884     esi = POP32_VAL(esp); /* 0x470A0234: pop esi */
    885     ebx = POP32_VAL(esp); /* 0x470A0235: pop ebx */
    886     ecx = POP32_VAL(esp); /* 0x470A0236: pop ecx */
    887     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A0237: ret 4 */
    888 L_470A023A:
    889     esi = MEM32(0x470AC3C8); /* 0x470A023A: mov esi, dword ptr [0x470ac3c8] */
    890     RECOMP_ICALL(esi); /* 0x470A0240: call esi */
    891     RECOMP_FLAGS_IN();
    892     edi = MEM32(0x470AC150); /* 0x470A0242: mov edi, dword ptr [0x470ac150] */
    893     ebx = eax; /* 0x470A0248: mov ebx, eax */
    894     RECOMP_ICALL(edi); /* 0x470A024A: call edi */
    895     RECOMP_FLAGS_IN();
    896     MEM32(ebx) = eax; /* 0x470A024C: mov dword ptr [ebx], eax */
    897     RECOMP_ICALL(esi); /* 0x470A024E: call esi */
    898     RECOMP_FLAGS_IN();
    899     /* cmp MEM32(eax), 0x3E5u */ /* 0x470A0250: cmp dword ptr [eax], 0x3e5 */
    900     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x3E5u);
    901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    902     _flag_k = FK_CMP;
    903     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A02C4; /* 0x470A0256: je 0x470a02c4 */
    904 L_470A0258:
    905     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A0258: mov al, byte ptr [0x4710de04] */
    906     /* test LO8(eax), LO8(eax) */ /* 0x470A025D: test al, al */
    907     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    908     _cf = 0;
    909     _flag_k = FK_NARROW(FK_TEST, 24);
    910     if (TEST_Z(_flag_a, _flag_b)) goto L_470A02BA; /* 0x470A025F: je 0x470a02ba */
    911 L_470A0261:
    912     RECOMP_ICALL(edi); /* 0x470A0261: call edi */
    913     RECOMP_FLAGS_IN();
    914     edi = eax; /* 0x470A0263: mov edi, eax */
    915     RECOMP_ICALL(esi); /* 0x470A0265: call esi */
    916     RECOMP_FLAGS_IN();
    917     eax = MEM32(eax); /* 0x470A0267: mov eax, dword ptr [eax] */
    918     /* test eax, eax */ /* 0x470A0269: test eax, eax */
    919     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    920     _cf = 0;
    921     _flag_k = FK_TEST;
    922     if (TEST_Z(_flag_a, _flag_b)) goto L_470A026F; /* 0x470A026B: je 0x470a026f */
    923 L_470A026D:
    924     edi = eax; /* 0x470A026D: mov edi, eax */
    925 L_470A026F:
    926     RECOMP_ICALL(0x47039020u); /* 0x470A026F: call 0x47039020 */ /* not lifted */
    927     RECOMP_FLAGS_IN();
    928     esi = eax; /* 0x470A0274: mov esi, eax */
    929     ecx = esi; /* 0x470A0276: mov ecx, esi */
    930     RECOMP_ICALL(0x4703B210u); /* 0x470A0278: call 0x4703b210 */ /* not lifted */
    931     RECOMP_FLAGS_IN();
    932     PUSH32(esp, eax); /* 0x470A027D: push eax */
    933     ecx = esi; /* 0x470A027E: mov ecx, esi */
    934     RECOMP_ICALL(0x4703B240u); /* 0x470A0280: call 0x4703b240 */ /* not lifted */
    935     RECOMP_FLAGS_IN();
    936     PUSH32(esp, eax); /* 0x470A0285: push eax */
    937     ecx = esi; /* 0x470A0286: mov ecx, esi */
    938     RECOMP_ICALL(0x4703B080u); /* 0x470A0288: call 0x4703b080 */ /* not lifted */
    939     RECOMP_FLAGS_IN();
    940     PUSH32(esp, eax); /* 0x470A028D: push eax */
    941     PUSH32(esp, edi); /* 0x470A028E: push edi */
    942     PUSH32(esp, 0); /* 0x470A028F: push 0 */
    943     PUSH32(esp, 0x190u); /* 0x470A0291: push 0x190 */
    944     PUSH32(esp, 0x4710DB30u); /* 0x470A0296: push 0x4710db30 */
    945     ecx = esi; /* 0x470A029B: mov ecx, esi */
    946     RECOMP_ICALL(0x4703A340u); /* 0x470A029D: call 0x4703a340 */ /* not lifted */
    947     RECOMP_FLAGS_IN();
    948     PUSH32(esp, 0x4710DB70u); /* 0x470A02A2: push 0x4710db70 */
    949     PUSH32(esp, 0x471055F0u); /* 0x470A02A7: push 0x471055f0 */
    950     PUSH32(esp, 0x80u); /* 0x470A02AC: push 0x80 */
    951     PUSH32(esp, esi); /* 0x470A02B1: push esi */
    952     RECOMP_ICALL(0x47039830u); /* 0x470A02B2: call 0x47039830 */ /* not lifted */
    953     RECOMP_FLAGS_IN();
    954     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    955     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    956     esp = esp + 0x10u; /* 0x470A02B7: add esp, 0x10 */
    957     _flag_k = FK_ADD;
    958 L_470A02BA:
    959     edi = POP32_VAL(esp); /* 0x470A02BA: pop edi */
    960     esi = POP32_VAL(esp); /* 0x470A02BB: pop esi */
    961     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    962     eax = eax | 0xFFFFFFFFu; /* 0x470A02BC: or eax, 0xffffffff */
    963     _cf = 0;
    964     _flag_k = FK_TEST;
    965     ebx = POP32_VAL(esp); /* 0x470A02BF: pop ebx */
    966     ecx = POP32_VAL(esp); /* 0x470A02C0: pop ecx */
    967     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A02C1: ret 4 */
    968 L_470A02C4:
    969     edi = POP32_VAL(esp); /* 0x470A02C4: pop edi */
    970     esi = POP32_VAL(esp); /* 0x470A02C5: pop esi */
    971     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    972     eax = 0; /* 0x470A02C6: xor eax, eax */
    973     _cf = 0;
    974     _flag_k = FK_TEST;
    975     ebx = POP32_VAL(esp); /* 0x470A02C8: pop ebx */
    976     ecx = POP32_VAL(esp); /* 0x470A02C9: pop ecx */
    977     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A02CA: ret 4 */
    978     RECOMP_REGS_OUT();
    979 }
    980 
    981 void sub_470A02D0(void) {
    982     int _fpu_cmp = 0;
    983     uint32_t _cf = 0;
    984     int _df = 1;
    985     uint32_t _flag_k = FK_NONE;
    986     uint32_t _flag_a = 0, _flag_b = 0;
    987     uint32_t _itail_tgt = 0;
    988     RECOMP_REGS_LOCALS
    989     RECOMP_ENTER(0x470A02D0u);
    990 
    991 L_470A02D0:
    992     PUSH32(esp, ecx); /* 0x470A02D0: push ecx */
    993     eax = MEM32(esp + 0x28); /* 0x470A02D1: mov eax, dword ptr [esp + 0x28] */
    994     /* test eax, eax */ /* 0x470A02D5: test eax, eax */
    995     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    996     _cf = 0;
    997     _flag_k = FK_TEST;
    998     PUSH32(esp, esi); /* 0x470A02D7: push esi */
    999     esi = ecx; /* 0x470A02D8: mov esi, ecx */
   1000     MEM32(esp + 0x4) = 0; /* 0x470A02DA: mov dword ptr [esp + 4], 0 */
   1001     if (TEST_Z(_flag_a, _flag_b)) goto L_470A030E; /* 0x470A02E2: je 0x470a030e */
   1002 L_470A02E4:
   1003     MEM32(esi + 0x14) = 0x470AE484u; /* 0x470A02E4: mov dword ptr [esi + 0x14], 0x470ae484 */
   1004     MEM32(esi + 0x4C) = 0x470AE47Cu; /* 0x470A02EB: mov dword ptr [esi + 0x4c], 0x470ae47c */
   1005     MEM32(esi + 0x40) = 0x470ACC18u; /* 0x470A02F2: mov dword ptr [esi + 0x40], 0x470acc18 */
   1006     eax = MEM32(esi + 0x4C); /* 0x470A02F9: mov eax, dword ptr [esi + 0x4c] */
   1007     MEM32(esi + 0x48) = 0x470ACD10u; /* 0x470A02FC: mov dword ptr [esi + 0x48], 0x470acd10 */
   1008     ecx = MEM32(eax + 0x4); /* 0x470A0303: mov ecx, dword ptr [eax + 4] */
   1009     MEM32(ecx + esi + 0x4C) = 0x470ACCDCu; /* 0x470A0306: mov dword ptr [ecx + esi + 0x4c], 0x470accdc */
   1010 L_470A030E:
   1011     edx = MEM32(esp + 0x28); /* 0x470A030E: mov edx, dword ptr [esp + 0x28] */
   1012     eax = MEM32(esp + 0x24); /* 0x470A0312: mov eax, dword ptr [esp + 0x24] */
   1013     ecx = MEM32(esp + 0x20); /* 0x470A0316: mov ecx, dword ptr [esp + 0x20] */
   1014     PUSH32(esp, 0); /* 0x470A031A: push 0 */
   1015     PUSH32(esp, edx); /* 0x470A031C: push edx */
   1016     edx = MEM32(esp + 0x24); /* 0x470A031D: mov edx, dword ptr [esp + 0x24] */
   1017     PUSH32(esp, eax); /* 0x470A0321: push eax */
   1018     eax = MEM32(esp + 0x18); /* 0x470A0322: mov eax, dword ptr [esp + 0x18] */
   1019     PUSH32(esp, 0); /* 0x470A0326: push 0 */
   1020     PUSH32(esp, 0); /* 0x470A0328: push 0 */
   1021     PUSH32(esp, ecx); /* 0x470A032A: push ecx */
   1022     PUSH32(esp, edx); /* 0x470A032B: push edx */
   1023     PUSH32(esp, eax); /* 0x470A032C: push eax */
   1024     ecx = esi; /* 0x470A032D: mov ecx, esi */
   1025     RECOMP_ICALL(0x4709FC20u); /* 0x470A032F: call 0x4709fc20 */ /* not lifted */
   1026     RECOMP_FLAGS_IN();
   1027     ecx = MEM32(esp + 0x18); /* 0x470A0334: mov ecx, dword ptr [esp + 0x18] */
   1028     edx = MEM32(esp + 0x14); /* 0x470A0338: mov edx, dword ptr [esp + 0x14] */
   1029     eax = MEM32(esp + 0x10); /* 0x470A033C: mov eax, dword ptr [esp + 0x10] */
   1030     MEM32(esi + 0x30) = ecx; /* 0x470A0340: mov dword ptr [esi + 0x30], ecx */
   1031     ecx = MEM32(esi + 0x14); /* 0x470A0343: mov ecx, dword ptr [esi + 0x14] */
   1032     MEM32(esi + 0x34) = edx; /* 0x470A0346: mov dword ptr [esi + 0x34], edx */
   1033     MEM32(esi + 0x38) = eax; /* 0x470A0349: mov dword ptr [esi + 0x38], eax */
   1034     edx = MEM32(ecx + 0x4); /* 0x470A034C: mov edx, dword ptr [ecx + 4] */
   1035     MEM32(edx + esi + 0x14) = 0x470AE448u; /* 0x470A034F: mov dword ptr [edx + esi + 0x14], 0x470ae448 */
   1036     eax = MEM32(esi + 0x14); /* 0x470A0357: mov eax, dword ptr [esi + 0x14] */
   1037     ecx = MEM32(eax + 0x8); /* 0x470A035A: mov ecx, dword ptr [eax + 8] */
   1038     MEM32(ecx + esi + 0x14) = 0x470AE43Cu; /* 0x470A035D: mov dword ptr [ecx + esi + 0x14], 0x470ae43c */
   1039     edx = MEM32(esi + 0x14); /* 0x470A0365: mov edx, dword ptr [esi + 0x14] */
   1040     eax = MEM32(edx + 0x4); /* 0x470A0368: mov eax, dword ptr [edx + 4] */
   1041     ecx = eax + (-0x2C); /* 0x470A036B: lea ecx, [eax - 0x2c] */
   1042     MEM32(eax + esi + 0x10) = ecx; /* 0x470A036E: mov dword ptr [eax + esi + 0x10], ecx */
   1043     edx = MEM32(esi + 0x14); /* 0x470A0372: mov edx, dword ptr [esi + 0x14] */
   1044     eax = MEM32(edx + 0x8); /* 0x470A0375: mov eax, dword ptr [edx + 8] */
   1045     ecx = eax + (-0x34); /* 0x470A0378: lea ecx, [eax - 0x34] */
   1046     MEM32(eax + esi + 0x10) = ecx; /* 0x470A037B: mov dword ptr [eax + esi + 0x10], ecx */
   1047     eax = esi; /* 0x470A037F: mov eax, esi */
   1048     esi = POP32_VAL(esp); /* 0x470A0381: pop esi */
   1049     ecx = POP32_VAL(esp); /* 0x470A0382: pop ecx */
   1050     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x470A0383: ret 0x24 */
   1051     RECOMP_REGS_OUT();
   1052 }
   1053 
   1054 void sub_470A0390(void) {
   1055     int _fpu_cmp = 0;
   1056     uint32_t _cf = 0;
   1057     int _df = 1;
   1058     uint32_t _flag_k = FK_NONE;
   1059     uint32_t _flag_a = 0, _flag_b = 0;
   1060     uint32_t _itail_tgt = 0;
   1061     RECOMP_REGS_LOCALS
   1062     RECOMP_ENTER(0x470A0390u);
   1063 
   1064 L_470A0390:
   1065     eax = MEM32(FS_BASE + (0)); /* 0x470A0390: mov eax, dword ptr fs:[0] */
   1066     edx = MEM32(esp + 0xC); /* 0x470A0396: mov edx, dword ptr [esp + 0xc] */
   1067     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A039A: push -1 */
   1068     PUSH32(esp, 0x470ABBA8u); /* 0x470A039C: push 0x470abba8 */
   1069     PUSH32(esp, eax); /* 0x470A03A1: push eax */
   1070     eax = MEM32(esp + 0x14); /* 0x470A03A2: mov eax, dword ptr [esp + 0x14] */
   1071     MEM32(FS_BASE + (0)) = esp; /* 0x470A03A6: mov dword ptr fs:[0], esp */
   1072     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1074     esp = esp - 0xCu; /* 0x470A03AD: sub esp, 0xc */
   1075     _flag_k = FK_CMP;
   1076     PUSH32(esp, esi); /* 0x470A03B0: push esi */
   1077     esi = ecx; /* 0x470A03B1: mov esi, ecx */
   1078     ecx = MEM32(esp + 0x20); /* 0x470A03B3: mov ecx, dword ptr [esp + 0x20] */
   1079     MEM32(esi + (-0x20)) = ecx; /* 0x470A03B7: mov dword ptr [esi - 0x20], ecx */
   1080     MEM32(esi + (-0x1C)) = eax; /* 0x470A03BA: mov dword ptr [esi - 0x1c], eax */
   1081     eax = MEM32(esp + 0x2C); /* 0x470A03BD: mov eax, dword ptr [esp + 0x2c] */
   1082     MEM32(esi + (-0x18)) = edx; /* 0x470A03C1: mov dword ptr [esi - 0x18], edx */
   1083     MEM32(esi + (-0x14)) = eax; /* 0x470A03C4: mov dword ptr [esi - 0x14], eax */
   1084     eax = MEM32(esi + (-0xC)); /* 0x470A03C7: mov eax, dword ptr [esi - 0xc] */
   1085     edx = MEM32(eax + 0x4); /* 0x470A03CA: mov edx, dword ptr [eax + 4] */
   1086     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1087     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1088     edx = edx + ecx; /* 0x470A03CD: add edx, ecx */
   1089     _flag_k = FK_ADD;
   1090     ecx = esi + (-0x40); /* 0x470A03CF: lea ecx, [esi - 0x40] */
   1091     /* test ecx, ecx */ /* 0x470A03D2: test ecx, ecx */
   1092     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1093     _cf = 0;
   1094     _flag_k = FK_TEST;
   1095     MEM32(eax + 0x4) = edx; /* 0x470A03D4: mov dword ptr [eax + 4], edx */
   1096     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A03DD; /* 0x470A03D7: jne 0x470a03dd */
   1097 L_470A03D9:
   1098     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1099     eax = 0; /* 0x470A03D9: xor eax, eax */
   1100     _cf = 0;
   1101     _flag_k = FK_TEST;
   1102     goto L_470A03E7; /* 0x470A03DB: jmp 0x470a03e7 */
   1103 L_470A03DD:
   1104     edx = MEM32(esi + (-0x2C)); /* 0x470A03DD: mov edx, dword ptr [esi - 0x2c] */
   1105     eax = MEM32(edx + 0x8); /* 0x470A03E0: mov eax, dword ptr [edx + 8] */
   1106     eax = eax + esi + (-0x2C); /* 0x470A03E3: lea eax, [eax + esi - 0x2c] */
   1107 L_470A03E7:
   1108     PUSH32(esp, eax); /* 0x470A03E7: push eax */
   1109     ecx = esp + 0x8; /* 0x470A03E8: lea ecx, [esp + 8] */
   1110     RECOMP_ICALL(0x47017DC0u); /* 0x470A03EC: call 0x47017dc0 */ /* not lifted */
   1111     RECOMP_FLAGS_IN();
   1112     ecx = MEM32(esi + (-0x28)); /* 0x470A03F1: mov ecx, dword ptr [esi - 0x28] */
   1113     edx = MEM32(ecx); /* 0x470A03F4: mov edx, dword ptr [ecx] */
   1114     eax = esp + 0x4; /* 0x470A03F6: lea eax, [esp + 4] */
   1115     PUSH32(esp, eax); /* 0x470A03FA: push eax */
   1116     MEM32(esp + 0x1C) = 0; /* 0x470A03FB: mov dword ptr [esp + 0x1c], 0 */
   1117     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A0403: call dword ptr [edx + 8] */
   1118     RECOMP_FLAGS_IN();
   1119     ecx = esp + 0x4; /* 0x470A0406: lea ecx, [esp + 4] */
   1120     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470A040A: mov dword ptr [esp + 0x18], 0xffffffff */
   1121     RECOMP_ICALL(0x47017E00u); /* 0x470A0412: call 0x47017e00 */ /* not lifted */
   1122     RECOMP_FLAGS_IN();
   1123     ecx = MEM32(esp + 0x10); /* 0x470A0417: mov ecx, dword ptr [esp + 0x10] */
   1124     esi = POP32_VAL(esp); /* 0x470A041B: pop esi */
   1125     MEM32(FS_BASE + (0)) = ecx; /* 0x470A041C: mov dword ptr fs:[0], ecx */
   1126     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1127     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1128     esp = esp + 0x18u; /* 0x470A0423: add esp, 0x18 */
   1129     _flag_k = FK_ADD;
   1130     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A0426: ret 0x10 */
   1131     RECOMP_REGS_OUT();
   1132 }
   1133 
   1134 void sub_470A03E7(void) {
   1135     int _fpu_cmp = 0;
   1136     uint32_t _cf = 0;
   1137     int _df = 1;
   1138     uint32_t _flag_k = FK_NONE;
   1139     uint32_t _flag_a = 0, _flag_b = 0;
   1140     uint32_t _itail_tgt = 0;
   1141     RECOMP_REGS_LOCALS
   1142     RECOMP_ENTER(0x470A03E7u);
   1143 
   1144 L_470A03E7:
   1145     PUSH32(esp, eax); /* 0x470A03E7: push eax */
   1146     ecx = esp + 0x8; /* 0x470A03E8: lea ecx, [esp + 8] */
   1147     RECOMP_ICALL(0x47017DC0u); /* 0x470A03EC: call 0x47017dc0 */ /* not lifted */
   1148     RECOMP_FLAGS_IN();
   1149     ecx = MEM32(esi + (-0x28)); /* 0x470A03F1: mov ecx, dword ptr [esi - 0x28] */
   1150     edx = MEM32(ecx); /* 0x470A03F4: mov edx, dword ptr [ecx] */
   1151     eax = esp + 0x4; /* 0x470A03F6: lea eax, [esp + 4] */
   1152     PUSH32(esp, eax); /* 0x470A03FA: push eax */
   1153     MEM32(esp + 0x1C) = 0; /* 0x470A03FB: mov dword ptr [esp + 0x1c], 0 */
   1154     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A0403: call dword ptr [edx + 8] */
   1155     RECOMP_FLAGS_IN();
   1156     ecx = esp + 0x4; /* 0x470A0406: lea ecx, [esp + 4] */
   1157     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470A040A: mov dword ptr [esp + 0x18], 0xffffffff */
   1158     RECOMP_ICALL(0x47017E00u); /* 0x470A0412: call 0x47017e00 */ /* not lifted */
   1159     RECOMP_FLAGS_IN();
   1160     ecx = MEM32(esp + 0x10); /* 0x470A0417: mov ecx, dword ptr [esp + 0x10] */
   1161     esi = POP32_VAL(esp); /* 0x470A041B: pop esi */
   1162     MEM32(FS_BASE + (0)) = ecx; /* 0x470A041C: mov dword ptr fs:[0], ecx */
   1163     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1164     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1165     esp = esp + 0x18u; /* 0x470A0423: add esp, 0x18 */
   1166     _flag_k = FK_ADD;
   1167     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A0426: ret 0x10 */
   1168     RECOMP_REGS_OUT();
   1169 }
   1170 
   1171 void sub_470A0430(void) {
   1172     int _fpu_cmp = 0;
   1173     uint32_t _cf = 0;
   1174     int _df = 1;
   1175     uint32_t _flag_k = FK_NONE;
   1176     uint32_t _flag_a = 0, _flag_b = 0;
   1177     uint32_t _itail_tgt = 0;
   1178     RECOMP_REGS_LOCALS
   1179     RECOMP_ENTER(0x470A0430u);
   1180 
   1181 L_470A0430:
   1182     eax = MEM32(ecx + (-0x2C)); /* 0x470A0430: mov eax, dword ptr [ecx - 0x2c] */
   1183     edx = MEM32(eax + 0x4); /* 0x470A0433: mov edx, dword ptr [eax + 4] */
   1184     MEM32(edx + ecx + (-0x2C)) = 0x470AE448u; /* 0x470A0436: mov dword ptr [edx + ecx - 0x2c], 0x470ae448 */
   1185     eax = MEM32(ecx + (-0x2C)); /* 0x470A043E: mov eax, dword ptr [ecx - 0x2c] */
   1186     edx = MEM32(eax + 0x8); /* 0x470A0441: mov edx, dword ptr [eax + 8] */
   1187     MEM32(edx + ecx + (-0x2C)) = 0x470AE43Cu; /* 0x470A0444: mov dword ptr [edx + ecx - 0x2c], 0x470ae43c */
   1188     eax = MEM32(ecx + (-0x2C)); /* 0x470A044C: mov eax, dword ptr [ecx - 0x2c] */
   1189     eax = MEM32(eax + 0x4); /* 0x470A044F: mov eax, dword ptr [eax + 4] */
   1190     edx = eax + (-0x2C); /* 0x470A0452: lea edx, [eax - 0x2c] */
   1191     MEM32(eax + ecx + (-0x30)) = edx; /* 0x470A0455: mov dword ptr [eax + ecx - 0x30], edx */
   1192     eax = MEM32(ecx + (-0x2C)); /* 0x470A0459: mov eax, dword ptr [ecx - 0x2c] */
   1193     eax = MEM32(eax + 0x8); /* 0x470A045C: mov eax, dword ptr [eax + 8] */
   1194     edx = eax + (-0x34); /* 0x470A045F: lea edx, [eax - 0x34] */
   1195     MEM32(eax + ecx + (-0x30)) = edx; /* 0x470A0462: mov dword ptr [eax + ecx - 0x30], edx */
   1196     eax = MEM32(ecx + (-0x2C)); /* 0x470A0466: mov eax, dword ptr [ecx - 0x2c] */
   1197     edx = MEM32(eax + 0x4); /* 0x470A0469: mov edx, dword ptr [eax + 4] */
   1198     MEM32(edx + ecx + (-0x2C)) = 0x470AE360u; /* 0x470A046C: mov dword ptr [edx + ecx - 0x2c], 0x470ae360 */
   1199     eax = MEM32(ecx + (-0x2C)); /* 0x470A0474: mov eax, dword ptr [ecx - 0x2c] */
   1200     eax = MEM32(eax + 0x4); /* 0x470A0477: mov eax, dword ptr [eax + 4] */
   1201     edx = eax + (-0x20); /* 0x470A047A: lea edx, [eax - 0x20] */
   1202     MEM32(eax + ecx + (-0x30)) = edx; /* 0x470A047D: mov dword ptr [eax + ecx - 0x30], edx */
   1203     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0481: ret  */
   1204     RECOMP_REGS_OUT();
   1205 }
   1206 
   1207 void sub_470A0490(void) {
   1208     int _fpu_cmp = 0;
   1209     uint32_t _cf = 0;
   1210     int _df = 1;
   1211     uint32_t _flag_k = FK_NONE;
   1212     uint32_t _flag_a = 0, _flag_b = 0;
   1213     uint32_t _itail_tgt = 0;
   1214     RECOMP_REGS_LOCALS
   1215     RECOMP_ENTER(0x470A0490u);
   1216 
   1217 L_470A0490:
   1218     eax = MEM32(ecx + (-0x30)); /* 0x470A0490: mov eax, dword ptr [ecx - 0x30] */
   1219     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0493: ret  */
   1220     RECOMP_REGS_OUT();
   1221 }
   1222 
   1223 void sub_470A04A0(void) {
   1224     int _fpu_cmp = 0;
   1225     uint32_t _cf = 0;
   1226     int _df = 1;
   1227     uint32_t _flag_k = FK_NONE;
   1228     uint32_t _flag_a = 0, _flag_b = 0;
   1229     uint32_t _itail_tgt = 0;
   1230     RECOMP_REGS_LOCALS
   1231     RECOMP_ENTER(0x470A04A0u);
   1232 
   1233 L_470A04A0:
   1234     eax = MEM32(ecx + (-0x38)); /* 0x470A04A0: mov eax, dword ptr [ecx - 0x38] */
   1235     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A04A3: ret  */
   1236     RECOMP_REGS_OUT();
   1237 }
   1238 
   1239 void sub_470A04B0(void) {
   1240     int _fpu_cmp = 0;
   1241     uint32_t _cf = 0;
   1242     int _df = 1;
   1243     uint32_t _flag_k = FK_NONE;
   1244     uint32_t _flag_a = 0, _flag_b = 0;
   1245     uint32_t _itail_tgt = 0;
   1246     RECOMP_REGS_LOCALS
   1247     RECOMP_ENTER(0x470A04B0u);
   1248 
   1249 L_470A04B0:
   1250     eax = MEM32(ecx + (-0x34)); /* 0x470A04B0: mov eax, dword ptr [ecx - 0x34] */
   1251     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A04B3: ret  */
   1252     RECOMP_REGS_OUT();
   1253 }
   1254 
   1255 void sub_470A04C0(void) {
   1256     int _fpu_cmp = 0;
   1257     uint32_t _cf = 0;
   1258     int _df = 1;
   1259     uint32_t _flag_k = FK_NONE;
   1260     uint32_t _flag_a = 0, _flag_b = 0;
   1261     uint32_t _itail_tgt = 0;
   1262     RECOMP_REGS_LOCALS
   1263     RECOMP_ENTER(0x470A04C0u);
   1264 
   1265 L_470A04C0:
   1266     PUSH32(esp, ecx); /* 0x470A04C0: push ecx */
   1267     edx = MEM32(esp + 0xC); /* 0x470A04C1: mov edx, dword ptr [esp + 0xc] */
   1268     eax = ecx; /* 0x470A04C5: mov eax, ecx */
   1269     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1270     ecx = 0; /* 0x470A04C7: xor ecx, ecx */
   1271     _cf = 0;
   1272     _flag_k = FK_TEST;
   1273     /* cmp edx, ecx */ /* 0x470A04C9: cmp edx, ecx */
   1274     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1276     _flag_k = FK_CMP;
   1277     MEM32(esp) = ecx; /* 0x470A04CB: mov dword ptr [esp], ecx */
   1278     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A04FA; /* 0x470A04CF: je 0x470a04fa */
   1279 L_470A04D1:
   1280     MEM32(eax) = 0x470AE4ACu; /* 0x470A04D1: mov dword ptr [eax], 0x470ae4ac */
   1281     MEM32(eax + 0x24) = 0x470AE4A4u; /* 0x470A04D7: mov dword ptr [eax + 0x24], 0x470ae4a4 */
   1282     MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x470A04DE: mov dword ptr [eax + 0x18], 0x470acc4c */
   1283     edx = MEM32(eax + 0x24); /* 0x470A04E5: mov edx, dword ptr [eax + 0x24] */
   1284     MEM32(eax + 0x20) = 0x470ACCD0u; /* 0x470A04E8: mov dword ptr [eax + 0x20], 0x470accd0 */
   1285     edx = MEM32(edx + 0x4); /* 0x470A04EF: mov edx, dword ptr [edx + 4] */
   1286     MEM32(edx + eax + 0x24) = 0x470ACCC0u; /* 0x470A04F2: mov dword ptr [edx + eax + 0x24], 0x470accc0 */
   1287 L_470A04FA:
   1288     edx = MEM32(esp + 0x8); /* 0x470A04FA: mov edx, dword ptr [esp + 8] */
   1289     MEM32(eax + 0x8) = ecx; /* 0x470A04FE: mov dword ptr [eax + 8], ecx */
   1290     MEM32(eax + 0xC) = ecx; /* 0x470A0501: mov dword ptr [eax + 0xc], ecx */
   1291     ecx = MEM32(eax); /* 0x470A0504: mov ecx, dword ptr [eax] */
   1292     MEM32(eax + 0x4) = edx; /* 0x470A0506: mov dword ptr [eax + 4], edx */
   1293     MEM32(eax + 0x10) = 0xFFFFFFFFu; /* 0x470A0509: mov dword ptr [eax + 0x10], 0xffffffff */
   1294     edx = MEM32(ecx + 0x4); /* 0x470A0510: mov edx, dword ptr [ecx + 4] */
   1295     MEM32(edx + eax) = 0x470AE39Cu; /* 0x470A0513: mov dword ptr [edx + eax], 0x470ae39c */
   1296     ecx = MEM32(eax); /* 0x470A051A: mov ecx, dword ptr [eax] */
   1297     ecx = MEM32(ecx + 0x4); /* 0x470A051C: mov ecx, dword ptr [ecx + 4] */
   1298     edx = ecx + (-0x18); /* 0x470A051F: lea edx, [ecx - 0x18] */
   1299     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A0522: mov dword ptr [ecx + eax - 4], edx */
   1300     ecx = MEM32(eax); /* 0x470A0526: mov ecx, dword ptr [eax] */
   1301     edx = MEM32(ecx + 0x4); /* 0x470A0528: mov edx, dword ptr [ecx + 4] */
   1302     MEM32(edx + eax) = 0x470AE494u; /* 0x470A052B: mov dword ptr [edx + eax], 0x470ae494 */
   1303     ecx = MEM32(eax); /* 0x470A0532: mov ecx, dword ptr [eax] */
   1304     edx = MEM32(ecx + 0x8); /* 0x470A0534: mov edx, dword ptr [ecx + 8] */
   1305     MEM32(edx + eax) = 0x470AE490u; /* 0x470A0537: mov dword ptr [edx + eax], 0x470ae490 */
   1306     ecx = MEM32(eax); /* 0x470A053E: mov ecx, dword ptr [eax] */
   1307     ecx = MEM32(ecx + 0x4); /* 0x470A0540: mov ecx, dword ptr [ecx + 4] */
   1308     edx = ecx + (-0x18); /* 0x470A0543: lea edx, [ecx - 0x18] */
   1309     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A0546: mov dword ptr [ecx + eax - 4], edx */
   1310     ecx = MEM32(eax); /* 0x470A054A: mov ecx, dword ptr [eax] */
   1311     ecx = MEM32(ecx + 0x8); /* 0x470A054C: mov ecx, dword ptr [ecx + 8] */
   1312     edx = ecx + (-0x20); /* 0x470A054F: lea edx, [ecx - 0x20] */
   1313     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A0552: mov dword ptr [ecx + eax - 4], edx */
   1314     ecx = POP32_VAL(esp); /* 0x470A0556: pop ecx */
   1315     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A0557: ret 8 */
   1316     RECOMP_REGS_OUT();
   1317 }
   1318 
   1319 void sub_470A0560(void) {
   1320     int _fpu_cmp = 0;
   1321     uint32_t _cf = 0;
   1322     int _df = 1;
   1323     uint32_t _flag_k = FK_NONE;
   1324     uint32_t _flag_a = 0, _flag_b = 0;
   1325     uint32_t _itail_tgt = 0;
   1326     RECOMP_REGS_LOCALS
   1327     RECOMP_ENTER(0x470A0560u);
   1328 
   1329 L_470A0560:
   1330     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A0560: push -1 */
   1331     PUSH32(esp, 0x470ABBCBu); /* 0x470A0562: push 0x470abbcb */
   1332     eax = MEM32(FS_BASE + (0)); /* 0x470A0567: mov eax, dword ptr fs:[0] */
   1333     PUSH32(esp, eax); /* 0x470A056D: push eax */
   1334     MEM32(FS_BASE + (0)) = esp; /* 0x470A056E: mov dword ptr fs:[0], esp */
   1335     PUSH32(esp, ecx); /* 0x470A0575: push ecx */
   1336     PUSH32(esp, esi); /* 0x470A0576: push esi */
   1337     PUSH32(esp, edi); /* 0x470A0577: push edi */
   1338     PUSH32(esp, 0x50u); /* 0x470A0578: push 0x50 */
   1339     esi = ecx; /* 0x470A057A: mov esi, ecx */
   1340     RECOMP_ICALL(0x470A33F2u); /* 0x470A057C: call 0x470a33f2 */ /* not lifted */
   1341     RECOMP_FLAGS_IN();
   1342     edi = eax; /* 0x470A0581: mov edi, eax */
   1343     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1344     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1345     esp = esp + 4; /* 0x470A0583: add esp, 4 */
   1346     _flag_k = FK_ADD;
   1347     MEM32(esp + 0x8) = edi; /* 0x470A0586: mov dword ptr [esp + 8], edi */
   1348     /* test edi, edi */ /* 0x470A058A: test edi, edi */
   1349     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1350     _cf = 0;
   1351     _flag_k = FK_TEST;
   1352     MEM32(esp + 0x14) = 0; /* 0x470A058C: mov dword ptr [esp + 0x14], 0 */
   1353     if (TEST_Z(_flag_a, _flag_b)) goto L_470A05CD; /* 0x470A0594: je 0x470a05cd */
   1354 L_470A0596:
   1355     eax = MEM32(esp + 0x2C); /* 0x470A0596: mov eax, dword ptr [esp + 0x2c] */
   1356     ecx = MEM32(esi + (-0x1C)); /* 0x470A059A: mov ecx, dword ptr [esi - 0x1c] */
   1357     edx = MEM32(esp + 0x28); /* 0x470A059D: mov edx, dword ptr [esp + 0x28] */
   1358     PUSH32(esp, 1); /* 0x470A05A1: push 1 */
   1359     PUSH32(esp, eax); /* 0x470A05A3: push eax */
   1360     eax = MEM32(ecx); /* 0x470A05A4: mov eax, dword ptr [ecx] */
   1361     PUSH32(esp, edx); /* 0x470A05A6: push edx */
   1362     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A05A7: call dword ptr [eax + 4] */
   1363     RECOMP_FLAGS_IN();
   1364     ecx = MEM32(esp + 0x30); /* 0x470A05AA: mov ecx, dword ptr [esp + 0x30] */
   1365     edx = MEM32(esp + 0x2C); /* 0x470A05AE: mov edx, dword ptr [esp + 0x2c] */
   1366     PUSH32(esp, eax); /* 0x470A05B2: push eax */
   1367     eax = MEM32(esp + 0x2C); /* 0x470A05B3: mov eax, dword ptr [esp + 0x2c] */
   1368     PUSH32(esp, ecx); /* 0x470A05B7: push ecx */
   1369     ecx = MEM32(esi + (-0x10)); /* 0x470A05B8: mov ecx, dword ptr [esi - 0x10] */
   1370     PUSH32(esp, edx); /* 0x470A05BB: push edx */
   1371     edx = MEM32(esi + (-0x14)); /* 0x470A05BC: mov edx, dword ptr [esi - 0x14] */
   1372     PUSH32(esp, eax); /* 0x470A05BF: push eax */
   1373     PUSH32(esp, ecx); /* 0x470A05C0: push ecx */
   1374     PUSH32(esp, edx); /* 0x470A05C1: push edx */
   1375     ecx = edi; /* 0x470A05C2: mov ecx, edi */
   1376     RECOMP_ICALL(0x470A02D0u); /* 0x470A05C4: call 0x470a02d0 */ /* not lifted */
   1377     RECOMP_FLAGS_IN();
   1378     edi = eax; /* 0x470A05C9: mov edi, eax */
   1379     goto L_470A05CF; /* 0x470A05CB: jmp 0x470a05cf */
   1380 L_470A05CD:
   1381     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1382     edi = 0; /* 0x470A05CD: xor edi, edi */
   1383     _cf = 0;
   1384     _flag_k = FK_TEST;
   1385 L_470A05CF:
   1386     /* test edi, edi */ /* 0x470A05CF: test edi, edi */
   1387     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1388     _cf = 0;
   1389     _flag_k = FK_TEST;
   1390     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A05D1: mov dword ptr [esp + 0x14], 0xffffffff */
   1391     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A05FD; /* 0x470A05D9: jne 0x470a05fd */
   1392 L_470A05DB:
   1393     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A05DB: call dword ptr [0x470ac3c8] */
   1394     RECOMP_FLAGS_IN();
   1395     edi = POP32_VAL(esp); /* 0x470A05E1: pop edi */
   1396     MEM32(eax) = 0xCu; /* 0x470A05E2: mov dword ptr [eax], 0xc */
   1397     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1398     eax = eax | 0xFFFFFFFFu; /* 0x470A05E8: or eax, 0xffffffff */
   1399     _cf = 0;
   1400     _flag_k = FK_TEST;
   1401     esi = POP32_VAL(esp); /* 0x470A05EB: pop esi */
   1402     ecx = MEM32(esp + 0x4); /* 0x470A05EC: mov ecx, dword ptr [esp + 4] */
   1403     MEM32(FS_BASE + (0)) = ecx; /* 0x470A05F0: mov dword ptr fs:[0], ecx */
   1404     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1405     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1406     esp = esp + 0x10u; /* 0x470A05F7: add esp, 0x10 */
   1407     _flag_k = FK_ADD;
   1408     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A05FA: ret 0x14 */
   1409 L_470A05FD:
   1410     PUSH32(esp, edi); /* 0x470A05FD: push edi */
   1411     ecx = esi + (-0x20); /* 0x470A05FE: lea ecx, [esi - 0x20] */
   1412     RECOMP_ICALL(0x470A06A0u); /* 0x470A0601: call 0x470a06a0 */ /* not lifted */
   1413     RECOMP_FLAGS_IN();
   1414     esi = eax; /* 0x470A0606: mov esi, eax */
   1415     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0608: cmp esi, -1 */
   1416     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1418     _flag_k = FK_CMP;
   1419     if (CMP_NE(_flag_a, _flag_b)) goto L_470A061F; /* 0x470A060B: jne 0x470a061f */
   1420 L_470A060D:
   1421     eax = MEM32(edi + 0x14); /* 0x470A060D: mov eax, dword ptr [edi + 0x14] */
   1422     ecx = MEM32(eax + 0x4); /* 0x470A0610: mov ecx, dword ptr [eax + 4] */
   1423     edx = MEM32(ecx + edi + 0x14); /* 0x470A0613: mov edx, dword ptr [ecx + edi + 0x14] */
   1424     ecx = ecx + edi + 0x14; /* 0x470A0617: lea ecx, [ecx + edi + 0x14] */
   1425     PUSH32(esp, 1); /* 0x470A061B: push 1 */
   1426     RECOMP_ICALL(MEM32(edx)); /* 0x470A061D: call dword ptr [edx] */
   1427     RECOMP_FLAGS_IN();
   1428 L_470A061F:
   1429     ecx = MEM32(esp + 0xC); /* 0x470A061F: mov ecx, dword ptr [esp + 0xc] */
   1430     edi = POP32_VAL(esp); /* 0x470A0623: pop edi */
   1431     eax = esi; /* 0x470A0624: mov eax, esi */
   1432     esi = POP32_VAL(esp); /* 0x470A0626: pop esi */
   1433     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0627: mov dword ptr fs:[0], ecx */
   1434     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1435     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1436     esp = esp + 0x10u; /* 0x470A062E: add esp, 0x10 */
   1437     _flag_k = FK_ADD;
   1438     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A0631: ret 0x14 */
   1439     RECOMP_REGS_OUT();
   1440 }
   1441 
   1442 void sub_470A05CF(void) {
   1443     int _fpu_cmp = 0;
   1444     uint32_t _cf = 0;
   1445     int _df = 1;
   1446     uint32_t _flag_k = FK_NONE;
   1447     uint32_t _flag_a = 0, _flag_b = 0;
   1448     uint32_t _itail_tgt = 0;
   1449     RECOMP_REGS_LOCALS
   1450     RECOMP_ENTER(0x470A05CFu);
   1451 
   1452 L_470A05CF:
   1453     /* test edi, edi */ /* 0x470A05CF: test edi, edi */
   1454     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1455     _cf = 0;
   1456     _flag_k = FK_TEST;
   1457     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A05D1: mov dword ptr [esp + 0x14], 0xffffffff */
   1458     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A05FD; /* 0x470A05D9: jne 0x470a05fd */
   1459 L_470A05DB:
   1460     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A05DB: call dword ptr [0x470ac3c8] */
   1461     RECOMP_FLAGS_IN();
   1462     edi = POP32_VAL(esp); /* 0x470A05E1: pop edi */
   1463     MEM32(eax) = 0xCu; /* 0x470A05E2: mov dword ptr [eax], 0xc */
   1464     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1465     eax = eax | 0xFFFFFFFFu; /* 0x470A05E8: or eax, 0xffffffff */
   1466     _cf = 0;
   1467     _flag_k = FK_TEST;
   1468     esi = POP32_VAL(esp); /* 0x470A05EB: pop esi */
   1469     ecx = MEM32(esp + 0x4); /* 0x470A05EC: mov ecx, dword ptr [esp + 4] */
   1470     MEM32(FS_BASE + (0)) = ecx; /* 0x470A05F0: mov dword ptr fs:[0], ecx */
   1471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1473     esp = esp + 0x10u; /* 0x470A05F7: add esp, 0x10 */
   1474     _flag_k = FK_ADD;
   1475     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A05FA: ret 0x14 */
   1476 L_470A05FD:
   1477     PUSH32(esp, edi); /* 0x470A05FD: push edi */
   1478     ecx = esi + (-0x20); /* 0x470A05FE: lea ecx, [esi - 0x20] */
   1479     RECOMP_ICALL(0x470A06A0u); /* 0x470A0601: call 0x470a06a0 */ /* not lifted */
   1480     RECOMP_FLAGS_IN();
   1481     esi = eax; /* 0x470A0606: mov esi, eax */
   1482     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0608: cmp esi, -1 */
   1483     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1485     _flag_k = FK_CMP;
   1486     if (CMP_NE(_flag_a, _flag_b)) goto L_470A061F; /* 0x470A060B: jne 0x470a061f */
   1487 L_470A060D:
   1488     eax = MEM32(edi + 0x14); /* 0x470A060D: mov eax, dword ptr [edi + 0x14] */
   1489     ecx = MEM32(eax + 0x4); /* 0x470A0610: mov ecx, dword ptr [eax + 4] */
   1490     edx = MEM32(ecx + edi + 0x14); /* 0x470A0613: mov edx, dword ptr [ecx + edi + 0x14] */
   1491     ecx = ecx + edi + 0x14; /* 0x470A0617: lea ecx, [ecx + edi + 0x14] */
   1492     PUSH32(esp, 1); /* 0x470A061B: push 1 */
   1493     RECOMP_ICALL(MEM32(edx)); /* 0x470A061D: call dword ptr [edx] */
   1494     RECOMP_FLAGS_IN();
   1495 L_470A061F:
   1496     ecx = MEM32(esp + 0xC); /* 0x470A061F: mov ecx, dword ptr [esp + 0xc] */
   1497     edi = POP32_VAL(esp); /* 0x470A0623: pop edi */
   1498     eax = esi; /* 0x470A0624: mov eax, esi */
   1499     esi = POP32_VAL(esp); /* 0x470A0626: pop esi */
   1500     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0627: mov dword ptr fs:[0], ecx */
   1501     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1502     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1503     esp = esp + 0x10u; /* 0x470A062E: add esp, 0x10 */
   1504     _flag_k = FK_ADD;
   1505     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A0631: ret 0x14 */
   1506     RECOMP_REGS_OUT();
   1507 }
   1508 
   1509 void sub_470A0640(void) {
   1510     int _fpu_cmp = 0;
   1511     uint32_t _cf = 0;
   1512     int _df = 1;
   1513     uint32_t _flag_k = FK_NONE;
   1514     uint32_t _flag_a = 0, _flag_b = 0;
   1515     uint32_t _itail_tgt = 0;
   1516     RECOMP_REGS_LOCALS
   1517     RECOMP_ENTER(0x470A0640u);
   1518 
   1519 L_470A0640:
   1520     eax = MEM32(ecx + (-0x18)); /* 0x470A0640: mov eax, dword ptr [ecx - 0x18] */
   1521     edx = MEM32(eax + 0x4); /* 0x470A0643: mov edx, dword ptr [eax + 4] */
   1522     MEM32(edx + ecx + (-0x18)) = 0x470AE494u; /* 0x470A0646: mov dword ptr [edx + ecx - 0x18], 0x470ae494 */
   1523     eax = MEM32(ecx + (-0x18)); /* 0x470A064E: mov eax, dword ptr [ecx - 0x18] */
   1524     edx = MEM32(eax + 0x8); /* 0x470A0651: mov edx, dword ptr [eax + 8] */
   1525     MEM32(edx + ecx + (-0x18)) = 0x470AE490u; /* 0x470A0654: mov dword ptr [edx + ecx - 0x18], 0x470ae490 */
   1526     eax = MEM32(ecx + (-0x18)); /* 0x470A065C: mov eax, dword ptr [ecx - 0x18] */
   1527     eax = MEM32(eax + 0x4); /* 0x470A065F: mov eax, dword ptr [eax + 4] */
   1528     edx = eax + (-0x18); /* 0x470A0662: lea edx, [eax - 0x18] */
   1529     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0665: mov dword ptr [eax + ecx - 0x1c], edx */
   1530     eax = MEM32(ecx + (-0x18)); /* 0x470A0669: mov eax, dword ptr [ecx - 0x18] */
   1531     eax = MEM32(eax + 0x8); /* 0x470A066C: mov eax, dword ptr [eax + 8] */
   1532     edx = eax + (-0x20); /* 0x470A066F: lea edx, [eax - 0x20] */
   1533     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0672: mov dword ptr [eax + ecx - 0x1c], edx */
   1534     eax = MEM32(ecx + (-0x18)); /* 0x470A0676: mov eax, dword ptr [ecx - 0x18] */
   1535     edx = MEM32(eax + 0x4); /* 0x470A0679: mov edx, dword ptr [eax + 4] */
   1536     MEM32(edx + ecx + (-0x18)) = 0x470AE39Cu; /* 0x470A067C: mov dword ptr [edx + ecx - 0x18], 0x470ae39c */
   1537     eax = MEM32(ecx + (-0x18)); /* 0x470A0684: mov eax, dword ptr [ecx - 0x18] */
   1538     eax = MEM32(eax + 0x4); /* 0x470A0687: mov eax, dword ptr [eax + 4] */
   1539     edx = eax + (-0x18); /* 0x470A068A: lea edx, [eax - 0x18] */
   1540     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A068D: mov dword ptr [eax + ecx - 0x1c], edx */
   1541     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0691: ret  */
   1542     RECOMP_REGS_OUT();
   1543 }
   1544 
   1545 void sub_470A06A0(void) {
   1546     int _fpu_cmp = 0;
   1547     uint32_t _cf = 0;
   1548     int _df = 1;
   1549     uint32_t _flag_k = FK_NONE;
   1550     uint32_t _flag_a = 0, _flag_b = 0;
   1551     uint32_t _itail_tgt = 0;
   1552     RECOMP_REGS_LOCALS
   1553     RECOMP_ENTER(0x470A06A0u);
   1554 
   1555 L_470A06A0:
   1556     PUSH32(esp, ecx); /* 0x470A06A0: push ecx */
   1557     PUSH32(esp, ebx); /* 0x470A06A1: push ebx */
   1558     PUSH32(esp, esi); /* 0x470A06A2: push esi */
   1559     esi = MEM32(esp + 0x10); /* 0x470A06A3: mov esi, dword ptr [esp + 0x10] */
   1560     eax = MEM32(esi + 0x14); /* 0x470A06A7: mov eax, dword ptr [esi + 0x14] */
   1561     ecx = MEM32(eax + 0x8); /* 0x470A06AA: mov ecx, dword ptr [eax + 8] */
   1562     edx = MEM32(ecx + esi + 0x14); /* 0x470A06AD: mov edx, dword ptr [ecx + esi + 0x14] */
   1563     ecx = ecx + esi + 0x14; /* 0x470A06B1: lea ecx, [ecx + esi + 0x14] */
   1564     PUSH32(esp, edi); /* 0x470A06B5: push edi */
   1565     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470A06B6: call dword ptr [edx + 4] */
   1566     RECOMP_FLAGS_IN();
   1567     ecx = MEM32(eax + 0x2C); /* 0x470A06B9: mov ecx, dword ptr [eax + 0x2c] */
   1568     ebx = MEM32(ecx + 0x14); /* 0x470A06BC: mov ebx, dword ptr [ecx + 0x14] */
   1569     ecx = MEM32(eax + 0x4); /* 0x470A06BF: mov ecx, dword ptr [eax + 4] */
   1570     edx = MEM32(esi + 0x14); /* 0x470A06C2: mov edx, dword ptr [esi + 0x14] */
   1571     eax = MEM32(edx + 0x8); /* 0x470A06C5: mov eax, dword ptr [edx + 8] */
   1572     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   1573     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1574     ebx = ebx + ecx; /* 0x470A06C8: add ebx, ecx */
   1575     _flag_k = FK_ADD;
   1576     ecx = eax + esi + 0x14; /* 0x470A06CA: lea ecx, [eax + esi + 0x14] */
   1577     eax = MEM32(edx + 0x8); /* 0x470A06CE: mov eax, dword ptr [edx + 8] */
   1578     edx = MEM32(eax + esi + 0x14); /* 0x470A06D1: mov edx, dword ptr [eax + esi + 0x14] */
   1579     MEM32(esp + 0x14) = ecx; /* 0x470A06D5: mov dword ptr [esp + 0x14], ecx */
   1580     edi = eax + esi + 0x14; /* 0x470A06D9: lea edi, [eax + esi + 0x14] */
   1581     PUSH32(esp, esi); /* 0x470A06DD: push esi */
   1582     ecx = esp + 0x10; /* 0x470A06DE: lea ecx, [esp + 0x10] */
   1583     PUSH32(esp, ecx); /* 0x470A06E2: push ecx */
   1584     ecx = edi; /* 0x470A06E3: mov ecx, edi */
   1585     RECOMP_ICALL(MEM32(edx)); /* 0x470A06E5: call dword ptr [edx] */
   1586     RECOMP_FLAGS_IN();
   1587     PUSH32(esp, eax); /* 0x470A06E7: push eax */
   1588     eax = MEM32(edi); /* 0x470A06E8: mov eax, dword ptr [edi] */
   1589     PUSH32(esp, ebx); /* 0x470A06EA: push ebx */
   1590     ecx = edi; /* 0x470A06EB: mov ecx, edi */
   1591     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x470A06ED: call dword ptr [eax + 8] */
   1592     RECOMP_FLAGS_IN();
   1593     PUSH32(esp, eax); /* 0x470A06F0: push eax */
   1594     RECOMP_ICALL(MEM32(0x470AC114)); /* 0x470A06F1: call dword ptr [0x470ac114] */
   1595     RECOMP_FLAGS_IN();
   1596     /* cmp eax, 1 */ /* 0x470A06F7: cmp eax, 1 */
   1597     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1599     _flag_k = FK_CMP;
   1600     if (CMP_NE(_flag_a, _flag_b)) goto L_470A0703; /* 0x470A06FA: jne 0x470a0703 */
   1601 L_470A06FC:
   1602     edi = POP32_VAL(esp); /* 0x470A06FC: pop edi */
   1603     esi = POP32_VAL(esp); /* 0x470A06FD: pop esi */
   1604     ebx = POP32_VAL(esp); /* 0x470A06FE: pop ebx */
   1605     ecx = POP32_VAL(esp); /* 0x470A06FF: pop ecx */
   1606     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A0700: ret 4 */
   1607 L_470A0703:
   1608     esi = MEM32(0x470AC3C8); /* 0x470A0703: mov esi, dword ptr [0x470ac3c8] */
   1609     RECOMP_ICALL(esi); /* 0x470A0709: call esi */
   1610     RECOMP_FLAGS_IN();
   1611     edi = MEM32(0x470AC150); /* 0x470A070B: mov edi, dword ptr [0x470ac150] */
   1612     ebx = eax; /* 0x470A0711: mov ebx, eax */
   1613     RECOMP_ICALL(edi); /* 0x470A0713: call edi */
   1614     RECOMP_FLAGS_IN();
   1615     MEM32(ebx) = eax; /* 0x470A0715: mov dword ptr [ebx], eax */
   1616     RECOMP_ICALL(esi); /* 0x470A0717: call esi */
   1617     RECOMP_FLAGS_IN();
   1618     /* cmp MEM32(eax), 0x3E5u */ /* 0x470A0719: cmp dword ptr [eax], 0x3e5 */
   1619     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x3E5u);
   1620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1621     _flag_k = FK_CMP;
   1622     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A078D; /* 0x470A071F: je 0x470a078d */
   1623 L_470A0721:
   1624     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A0721: mov al, byte ptr [0x4710de04] */
   1625     /* test LO8(eax), LO8(eax) */ /* 0x470A0726: test al, al */
   1626     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1627     _cf = 0;
   1628     _flag_k = FK_NARROW(FK_TEST, 24);
   1629     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0783; /* 0x470A0728: je 0x470a0783 */
   1630 L_470A072A:
   1631     RECOMP_ICALL(edi); /* 0x470A072A: call edi */
   1632     RECOMP_FLAGS_IN();
   1633     edi = eax; /* 0x470A072C: mov edi, eax */
   1634     RECOMP_ICALL(esi); /* 0x470A072E: call esi */
   1635     RECOMP_FLAGS_IN();
   1636     eax = MEM32(eax); /* 0x470A0730: mov eax, dword ptr [eax] */
   1637     /* test eax, eax */ /* 0x470A0732: test eax, eax */
   1638     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1639     _cf = 0;
   1640     _flag_k = FK_TEST;
   1641     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0738; /* 0x470A0734: je 0x470a0738 */
   1642 L_470A0736:
   1643     edi = eax; /* 0x470A0736: mov edi, eax */
   1644 L_470A0738:
   1645     RECOMP_ICALL(0x47039020u); /* 0x470A0738: call 0x47039020 */ /* not lifted */
   1646     RECOMP_FLAGS_IN();
   1647     esi = eax; /* 0x470A073D: mov esi, eax */
   1648     ecx = esi; /* 0x470A073F: mov ecx, esi */
   1649     RECOMP_ICALL(0x4703B210u); /* 0x470A0741: call 0x4703b210 */ /* not lifted */
   1650     RECOMP_FLAGS_IN();
   1651     PUSH32(esp, eax); /* 0x470A0746: push eax */
   1652     ecx = esi; /* 0x470A0747: mov ecx, esi */
   1653     RECOMP_ICALL(0x4703B240u); /* 0x470A0749: call 0x4703b240 */ /* not lifted */
   1654     RECOMP_FLAGS_IN();
   1655     PUSH32(esp, eax); /* 0x470A074E: push eax */
   1656     ecx = esi; /* 0x470A074F: mov ecx, esi */
   1657     RECOMP_ICALL(0x4703B080u); /* 0x470A0751: call 0x4703b080 */ /* not lifted */
   1658     RECOMP_FLAGS_IN();
   1659     PUSH32(esp, eax); /* 0x470A0756: push eax */
   1660     PUSH32(esp, edi); /* 0x470A0757: push edi */
   1661     PUSH32(esp, 0); /* 0x470A0758: push 0 */
   1662     PUSH32(esp, 0x27Du); /* 0x470A075A: push 0x27d */
   1663     PUSH32(esp, 0x4710DB30u); /* 0x470A075F: push 0x4710db30 */
   1664     ecx = esi; /* 0x470A0764: mov ecx, esi */
   1665     RECOMP_ICALL(0x4703A340u); /* 0x470A0766: call 0x4703a340 */ /* not lifted */
   1666     RECOMP_FLAGS_IN();
   1667     PUSH32(esp, 0x4710DB7Cu); /* 0x470A076B: push 0x4710db7c */
   1668     PUSH32(esp, 0x471055F0u); /* 0x470A0770: push 0x471055f0 */
   1669     PUSH32(esp, 0x80u); /* 0x470A0775: push 0x80 */
   1670     PUSH32(esp, esi); /* 0x470A077A: push esi */
   1671     RECOMP_ICALL(0x47039830u); /* 0x470A077B: call 0x47039830 */ /* not lifted */
   1672     RECOMP_FLAGS_IN();
   1673     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1675     esp = esp + 0x10u; /* 0x470A0780: add esp, 0x10 */
   1676     _flag_k = FK_ADD;
   1677 L_470A0783:
   1678     edi = POP32_VAL(esp); /* 0x470A0783: pop edi */
   1679     esi = POP32_VAL(esp); /* 0x470A0784: pop esi */
   1680     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1681     eax = eax | 0xFFFFFFFFu; /* 0x470A0785: or eax, 0xffffffff */
   1682     _cf = 0;
   1683     _flag_k = FK_TEST;
   1684     ebx = POP32_VAL(esp); /* 0x470A0788: pop ebx */
   1685     ecx = POP32_VAL(esp); /* 0x470A0789: pop ecx */
   1686     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A078A: ret 4 */
   1687 L_470A078D:
   1688     edi = POP32_VAL(esp); /* 0x470A078D: pop edi */
   1689     esi = POP32_VAL(esp); /* 0x470A078E: pop esi */
   1690     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1691     eax = 0; /* 0x470A078F: xor eax, eax */
   1692     _cf = 0;
   1693     _flag_k = FK_TEST;
   1694     ebx = POP32_VAL(esp); /* 0x470A0791: pop ebx */
   1695     ecx = POP32_VAL(esp); /* 0x470A0792: pop ecx */
   1696     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A0793: ret 4 */
   1697     RECOMP_REGS_OUT();
   1698 }
   1699 
   1700 void sub_470A07A0(void) {
   1701     int _fpu_cmp = 0;
   1702     uint32_t _cf = 0;
   1703     int _df = 1;
   1704     uint32_t _flag_k = FK_NONE;
   1705     uint32_t _flag_a = 0, _flag_b = 0;
   1706     uint32_t _itail_tgt = 0;
   1707     RECOMP_REGS_LOCALS
   1708     RECOMP_ENTER(0x470A07A0u);
   1709 
   1710 L_470A07A0:
   1711     PUSH32(esp, ecx); /* 0x470A07A0: push ecx */
   1712     eax = MEM32(esp + 0x30); /* 0x470A07A1: mov eax, dword ptr [esp + 0x30] */
   1713     /* test eax, eax */ /* 0x470A07A5: test eax, eax */
   1714     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1715     _cf = 0;
   1716     _flag_k = FK_TEST;
   1717     PUSH32(esp, ebx); /* 0x470A07A7: push ebx */
   1718     ebx = MEM32(esp + 0x2C); /* 0x470A07A8: mov ebx, dword ptr [esp + 0x2c] */
   1719     PUSH32(esp, ebp); /* 0x470A07AC: push ebp */
   1720     ebp = MEM32(esp + 0x2C); /* 0x470A07AD: mov ebp, dword ptr [esp + 0x2c] */
   1721     PUSH32(esp, esi); /* 0x470A07B1: push esi */
   1722     PUSH32(esp, edi); /* 0x470A07B2: push edi */
   1723     edi = MEM32(esp + 0x3C); /* 0x470A07B3: mov edi, dword ptr [esp + 0x3c] */
   1724     esi = ecx; /* 0x470A07B7: mov esi, ecx */
   1725     MEM32(esp + 0x10) = 0; /* 0x470A07B9: mov dword ptr [esp + 0x10], 0 */
   1726     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0831; /* 0x470A07C1: je 0x470a0831 */
   1727 L_470A07C3:
   1728     MEM32(esi) = 0x470AE514u; /* 0x470A07C3: mov dword ptr [esi], 0x470ae514 */
   1729     MEM32(esi + 0x20) = 0x470AE50Cu; /* 0x470A07C9: mov dword ptr [esi + 0x20], 0x470ae50c */
   1730     MEM32(esi + 0x24) = 0x470AE500u; /* 0x470A07D0: mov dword ptr [esi + 0x24], 0x470ae500 */
   1731     MEM32(esi + 0x3C) = 0x470AE4F8u; /* 0x470A07D7: mov dword ptr [esi + 0x3c], 0x470ae4f8 */
   1732     MEM32(esi + 0x14) = 0x470ACC18u; /* 0x470A07DE: mov dword ptr [esi + 0x14], 0x470acc18 */
   1733     eax = MEM32(esi + 0x20); /* 0x470A07E5: mov eax, dword ptr [esi + 0x20] */
   1734     MEM32(esi + 0x1C) = 0x470ACCACu; /* 0x470A07E8: mov dword ptr [esi + 0x1c], 0x470accac */
   1735     ecx = MEM32(eax + 0x4); /* 0x470A07EF: mov ecx, dword ptr [eax + 4] */
   1736     PUSH32(esp, 0); /* 0x470A07F2: push 0 */
   1737     MEM32(ecx + esi + 0x20) = 0x470ACC78u; /* 0x470A07F4: mov dword ptr [ecx + esi + 0x20], 0x470acc78 */
   1738     edx = MEM32(esi + 0x24); /* 0x470A07FC: mov edx, dword ptr [esi + 0x24] */
   1739     eax = MEM32(edx + 0x4); /* 0x470A07FF: mov eax, dword ptr [edx + 4] */
   1740     PUSH32(esp, edi); /* 0x470A0802: push edi */
   1741     PUSH32(esp, ebx); /* 0x470A0803: push ebx */
   1742     PUSH32(esp, 0); /* 0x470A0804: push 0 */
   1743     MEM32(eax + esi + 0x24) = 0x470ACD5Cu; /* 0x470A0806: mov dword ptr [eax + esi + 0x24], 0x470acd5c */
   1744     ecx = MEM32(esi + 0x24); /* 0x470A080E: mov ecx, dword ptr [esi + 0x24] */
   1745     edx = MEM32(ecx + 0x8); /* 0x470A0811: mov edx, dword ptr [ecx + 8] */
   1746     eax = MEM32(esp + 0x38); /* 0x470A0814: mov eax, dword ptr [esp + 0x38] */
   1747     ecx = MEM32(esp + 0x28); /* 0x470A0818: mov ecx, dword ptr [esp + 0x28] */
   1748     PUSH32(esp, 0); /* 0x470A081C: push 0 */
   1749     PUSH32(esp, ebp); /* 0x470A081E: push ebp */
   1750     PUSH32(esp, eax); /* 0x470A081F: push eax */
   1751     PUSH32(esp, ecx); /* 0x470A0820: push ecx */
   1752     ecx = esi + 0x28; /* 0x470A0821: lea ecx, [esi + 0x28] */
   1753     MEM32(edx + esi + 0x24) = 0x470ACD50u; /* 0x470A0824: mov dword ptr [edx + esi + 0x24], 0x470acd50 */
   1754     RECOMP_ICALL(0x4709FC20u); /* 0x470A082C: call 0x4709fc20 */ /* not lifted */
   1755     RECOMP_FLAGS_IN();
   1756 L_470A0831:
   1757     edx = MEM32(esp + 0x28); /* 0x470A0831: mov edx, dword ptr [esp + 0x28] */
   1758     eax = MEM32(esp + 0x24); /* 0x470A0835: mov eax, dword ptr [esp + 0x24] */
   1759     ecx = MEM32(esp + 0x20); /* 0x470A0839: mov ecx, dword ptr [esp + 0x20] */
   1760     PUSH32(esp, 0); /* 0x470A083D: push 0 */
   1761     PUSH32(esp, edi); /* 0x470A083F: push edi */
   1762     PUSH32(esp, ebx); /* 0x470A0840: push ebx */
   1763     PUSH32(esp, ebp); /* 0x470A0841: push ebp */
   1764     PUSH32(esp, edx); /* 0x470A0842: push edx */
   1765     edx = MEM32(esp + 0x30); /* 0x470A0843: mov edx, dword ptr [esp + 0x30] */
   1766     PUSH32(esp, eax); /* 0x470A0847: push eax */
   1767     eax = MEM32(esp + 0x30); /* 0x470A0848: mov eax, dword ptr [esp + 0x30] */
   1768     PUSH32(esp, ecx); /* 0x470A084C: push ecx */
   1769     PUSH32(esp, edx); /* 0x470A084D: push edx */
   1770     PUSH32(esp, eax); /* 0x470A084E: push eax */
   1771     ecx = esi; /* 0x470A084F: mov ecx, esi */
   1772     RECOMP_ICALL(0x4709FD30u); /* 0x470A0851: call 0x4709fd30 */ /* not lifted */
   1773     RECOMP_FLAGS_IN();
   1774     ecx = MEM32(esi); /* 0x470A0856: mov ecx, dword ptr [esi] */
   1775     edx = MEM32(ecx + 0x4); /* 0x470A0858: mov edx, dword ptr [ecx + 4] */
   1776     MEM32(edx + esi) = 0x470AE4C4u; /* 0x470A085B: mov dword ptr [edx + esi], 0x470ae4c4 */
   1777     eax = MEM32(esi); /* 0x470A0862: mov eax, dword ptr [esi] */
   1778     ecx = MEM32(eax + 0x8); /* 0x470A0864: mov ecx, dword ptr [eax + 8] */
   1779     MEM32(ecx + esi) = 0x470AE4B8u; /* 0x470A0867: mov dword ptr [ecx + esi], 0x470ae4b8 */
   1780     edx = MEM32(esi); /* 0x470A086E: mov edx, dword ptr [esi] */
   1781     eax = MEM32(edx + 0x4); /* 0x470A0870: mov eax, dword ptr [edx + 4] */
   1782     ecx = eax + (-0x14); /* 0x470A0873: lea ecx, [eax - 0x14] */
   1783     MEM32(eax + esi + (-0x4)) = ecx; /* 0x470A0876: mov dword ptr [eax + esi - 4], ecx */
   1784     edx = MEM32(esi); /* 0x470A087A: mov edx, dword ptr [esi] */
   1785     eax = MEM32(edx + 0x8); /* 0x470A087C: mov eax, dword ptr [edx + 8] */
   1786     ecx = eax + (-0x1C); /* 0x470A087F: lea ecx, [eax - 0x1c] */
   1787     MEM32(eax + esi + (-0x4)) = ecx; /* 0x470A0882: mov dword ptr [eax + esi - 4], ecx */
   1788     edx = MEM32(esi); /* 0x470A0886: mov edx, dword ptr [esi] */
   1789     eax = MEM32(edx + 0xC); /* 0x470A0888: mov eax, dword ptr [edx + 0xc] */
   1790     ecx = MEM32(esp + 0x2C); /* 0x470A088B: mov ecx, dword ptr [esp + 0x2c] */
   1791     MEM32(eax + esi + 0x8) = ecx; /* 0x470A088F: mov dword ptr [eax + esi + 8], ecx */
   1792     edx = MEM32(esi); /* 0x470A0893: mov edx, dword ptr [esi] */
   1793     eax = MEM32(edx + 0xC); /* 0x470A0895: mov eax, dword ptr [edx + 0xc] */
   1794     ecx = MEM32(esp + 0x30); /* 0x470A0898: mov ecx, dword ptr [esp + 0x30] */
   1795     edi = POP32_VAL(esp); /* 0x470A089C: pop edi */
   1796     MEM32(eax + esi + 0xC) = ecx; /* 0x470A089D: mov dword ptr [eax + esi + 0xc], ecx */
   1797     eax = esi; /* 0x470A08A1: mov eax, esi */
   1798     esi = POP32_VAL(esp); /* 0x470A08A3: pop esi */
   1799     ebp = POP32_VAL(esp); /* 0x470A08A4: pop ebp */
   1800     ebx = POP32_VAL(esp); /* 0x470A08A5: pop ebx */
   1801     ecx = POP32_VAL(esp); /* 0x470A08A6: pop ecx */
   1802     RECOMP_FLAGS_OUT(); esp += 48; { RECOMP_REGS_OUT(); return; } /* 0x470A08A7: ret 0x2c */
   1803     RECOMP_REGS_OUT();
   1804 }
   1805 
   1806 void sub_470A08B0(void) {
   1807     int _fpu_cmp = 0;
   1808     uint32_t _cf = 0;
   1809     int _df = 1;
   1810     uint32_t _flag_k = FK_NONE;
   1811     uint32_t _flag_a = 0, _flag_b = 0;
   1812     uint32_t _itail_tgt = 0;
   1813     RECOMP_REGS_LOCALS
   1814     RECOMP_ENTER(0x470A08B0u);
   1815 
   1816 L_470A08B0:
   1817     eax = MEM32(FS_BASE + (0)); /* 0x470A08B0: mov eax, dword ptr fs:[0] */
   1818     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A08B6: push -1 */
   1819     PUSH32(esp, 0x470ABBE8u); /* 0x470A08B8: push 0x470abbe8 */
   1820     PUSH32(esp, eax); /* 0x470A08BD: push eax */
   1821     MEM32(FS_BASE + (0)) = esp; /* 0x470A08BE: mov dword ptr fs:[0], esp */
   1822     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1824     esp = esp - 0x10u; /* 0x470A08C5: sub esp, 0x10 */
   1825     _flag_k = FK_CMP;
   1826     PUSH32(esp, esi); /* 0x470A08C8: push esi */
   1827     esi = ecx; /* 0x470A08C9: mov esi, ecx */
   1828     eax = MEM32(esi + (-0x14)); /* 0x470A08CB: mov eax, dword ptr [esi - 0x14] */
   1829     edx = MEM32(eax + 0xC); /* 0x470A08CE: mov edx, dword ptr [eax + 0xc] */
   1830     ecx = MEM32(esp + 0x24); /* 0x470A08D1: mov ecx, dword ptr [esp + 0x24] */
   1831     MEM32(edx + esi + 0xC) = ecx; /* 0x470A08D5: mov dword ptr [edx + esi + 0xc], ecx */
   1832     eax = MEM32(esi + (-0x14)); /* 0x470A08D9: mov eax, dword ptr [esi - 0x14] */
   1833     edx = MEM32(eax + 0xC); /* 0x470A08DC: mov edx, dword ptr [eax + 0xc] */
   1834     eax = MEM32(esp + 0x28); /* 0x470A08DF: mov eax, dword ptr [esp + 0x28] */
   1835     MEM32(edx + esi + 0x10) = eax; /* 0x470A08E3: mov dword ptr [edx + esi + 0x10], eax */
   1836     edx = MEM32(esi + (-0x14)); /* 0x470A08E7: mov edx, dword ptr [esi - 0x14] */
   1837     eax = MEM32(edx + 0xC); /* 0x470A08EA: mov eax, dword ptr [edx + 0xc] */
   1838     edx = MEM32(esp + 0x2C); /* 0x470A08ED: mov edx, dword ptr [esp + 0x2c] */
   1839     MEM32(eax + esi + 0x14) = edx; /* 0x470A08F1: mov dword ptr [eax + esi + 0x14], edx */
   1840     eax = MEM32(esi + (-0x14)); /* 0x470A08F5: mov eax, dword ptr [esi - 0x14] */
   1841     edx = MEM32(eax + 0xC); /* 0x470A08F8: mov edx, dword ptr [eax + 0xc] */
   1842     eax = MEM32(esp + 0x30); /* 0x470A08FB: mov eax, dword ptr [esp + 0x30] */
   1843     MEM32(edx + esi + 0x18) = eax; /* 0x470A08FF: mov dword ptr [edx + esi + 0x18], eax */
   1844     eax = MEM32(esi + (-0xC)); /* 0x470A0903: mov eax, dword ptr [esi - 0xc] */
   1845     edx = MEM32(eax + 0x8); /* 0x470A0906: mov edx, dword ptr [eax + 8] */
   1846     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1847     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1848     edx = edx + ecx; /* 0x470A0909: add edx, ecx */
   1849     _flag_k = FK_ADD;
   1850     ecx = esi + (-0x14); /* 0x470A090B: lea ecx, [esi - 0x14] */
   1851     /* test ecx, ecx */ /* 0x470A090E: test ecx, ecx */
   1852     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1853     _cf = 0;
   1854     _flag_k = FK_TEST;
   1855     MEM32(eax + 0x8) = edx; /* 0x470A0910: mov dword ptr [eax + 8], edx */
   1856     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A0919; /* 0x470A0913: jne 0x470a0919 */
   1857 L_470A0915:
   1858     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1859     eax = 0; /* 0x470A0915: xor eax, eax */
   1860     _cf = 0;
   1861     _flag_k = FK_TEST;
   1862     goto L_470A0923; /* 0x470A0917: jmp 0x470a0923 */
   1863 L_470A0919:
   1864     edx = MEM32(esi + (-0x14)); /* 0x470A0919: mov edx, dword ptr [esi - 0x14] */
   1865     eax = MEM32(edx + 0x10); /* 0x470A091C: mov eax, dword ptr [edx + 0x10] */
   1866     eax = eax + esi + (-0x14); /* 0x470A091F: lea eax, [eax + esi - 0x14] */
   1867 L_470A0923:
   1868     PUSH32(esp, eax); /* 0x470A0923: push eax */
   1869     ecx = esp + 0x8; /* 0x470A0924: lea ecx, [esp + 8] */
   1870     RECOMP_ICALL(0x47017F00u); /* 0x470A0928: call 0x47017f00 */ /* not lifted */
   1871     RECOMP_FLAGS_IN();
   1872     ecx = MEM32(esi + (-0x14)); /* 0x470A092D: mov ecx, dword ptr [esi - 0x14] */
   1873     edx = MEM32(ecx + 0xC); /* 0x470A0930: mov edx, dword ptr [ecx + 0xc] */
   1874     ecx = MEM32(edx + esi + 0x4); /* 0x470A0933: mov ecx, dword ptr [edx + esi + 4] */
   1875     eax = MEM32(ecx); /* 0x470A0937: mov eax, dword ptr [ecx] */
   1876     edx = esp + 0x4; /* 0x470A0939: lea edx, [esp + 4] */
   1877     PUSH32(esp, edx); /* 0x470A093D: push edx */
   1878     MEM32(esp + 0x20) = 0; /* 0x470A093E: mov dword ptr [esp + 0x20], 0 */
   1879     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470A0946: call dword ptr [eax + 0xc] */
   1880     RECOMP_FLAGS_IN();
   1881     ecx = esp + 0x4; /* 0x470A0949: lea ecx, [esp + 4] */
   1882     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A094D: mov dword ptr [esp + 0x1c], 0xffffffff */
   1883     RECOMP_ICALL(0x47017E00u); /* 0x470A0955: call 0x47017e00 */ /* not lifted */
   1884     RECOMP_FLAGS_IN();
   1885     ecx = MEM32(esp + 0x14); /* 0x470A095A: mov ecx, dword ptr [esp + 0x14] */
   1886     esi = POP32_VAL(esp); /* 0x470A095E: pop esi */
   1887     MEM32(FS_BASE + (0)) = ecx; /* 0x470A095F: mov dword ptr fs:[0], ecx */
   1888     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1890     esp = esp + 0x1Cu; /* 0x470A0966: add esp, 0x1c */
   1891     _flag_k = FK_ADD;
   1892     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A0969: ret 0x10 */
   1893     RECOMP_REGS_OUT();
   1894 }
   1895 
   1896 void sub_470A0923(void) {
   1897     int _fpu_cmp = 0;
   1898     uint32_t _cf = 0;
   1899     int _df = 1;
   1900     uint32_t _flag_k = FK_NONE;
   1901     uint32_t _flag_a = 0, _flag_b = 0;
   1902     uint32_t _itail_tgt = 0;
   1903     RECOMP_REGS_LOCALS
   1904     RECOMP_ENTER(0x470A0923u);
   1905 
   1906 L_470A0923:
   1907     PUSH32(esp, eax); /* 0x470A0923: push eax */
   1908     ecx = esp + 0x8; /* 0x470A0924: lea ecx, [esp + 8] */
   1909     RECOMP_ICALL(0x47017F00u); /* 0x470A0928: call 0x47017f00 */ /* not lifted */
   1910     RECOMP_FLAGS_IN();
   1911     ecx = MEM32(esi + (-0x14)); /* 0x470A092D: mov ecx, dword ptr [esi - 0x14] */
   1912     edx = MEM32(ecx + 0xC); /* 0x470A0930: mov edx, dword ptr [ecx + 0xc] */
   1913     ecx = MEM32(edx + esi + 0x4); /* 0x470A0933: mov ecx, dword ptr [edx + esi + 4] */
   1914     eax = MEM32(ecx); /* 0x470A0937: mov eax, dword ptr [ecx] */
   1915     edx = esp + 0x4; /* 0x470A0939: lea edx, [esp + 4] */
   1916     PUSH32(esp, edx); /* 0x470A093D: push edx */
   1917     MEM32(esp + 0x20) = 0; /* 0x470A093E: mov dword ptr [esp + 0x20], 0 */
   1918     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470A0946: call dword ptr [eax + 0xc] */
   1919     RECOMP_FLAGS_IN();
   1920     ecx = esp + 0x4; /* 0x470A0949: lea ecx, [esp + 4] */
   1921     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A094D: mov dword ptr [esp + 0x1c], 0xffffffff */
   1922     RECOMP_ICALL(0x47017E00u); /* 0x470A0955: call 0x47017e00 */ /* not lifted */
   1923     RECOMP_FLAGS_IN();
   1924     ecx = MEM32(esp + 0x14); /* 0x470A095A: mov ecx, dword ptr [esp + 0x14] */
   1925     esi = POP32_VAL(esp); /* 0x470A095E: pop esi */
   1926     MEM32(FS_BASE + (0)) = ecx; /* 0x470A095F: mov dword ptr fs:[0], ecx */
   1927     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1928     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1929     esp = esp + 0x1Cu; /* 0x470A0966: add esp, 0x1c */
   1930     _flag_k = FK_ADD;
   1931     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A0969: ret 0x10 */
   1932     RECOMP_REGS_OUT();
   1933 }
   1934 
   1935 void sub_470A0970(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(0x470A0970u);
   1944 
   1945 L_470A0970:
   1946     eax = MEM32(ecx + (-0x14)); /* 0x470A0970: mov eax, dword ptr [ecx - 0x14] */
   1947     edx = MEM32(eax + 0x4); /* 0x470A0973: mov edx, dword ptr [eax + 4] */
   1948     MEM32(edx + ecx + (-0x14)) = 0x470AE4C4u; /* 0x470A0976: mov dword ptr [edx + ecx - 0x14], 0x470ae4c4 */
   1949     eax = MEM32(ecx + (-0x14)); /* 0x470A097E: mov eax, dword ptr [ecx - 0x14] */
   1950     edx = MEM32(eax + 0x8); /* 0x470A0981: mov edx, dword ptr [eax + 8] */
   1951     MEM32(edx + ecx + (-0x14)) = 0x470AE4B8u; /* 0x470A0984: mov dword ptr [edx + ecx - 0x14], 0x470ae4b8 */
   1952     eax = MEM32(ecx + (-0x14)); /* 0x470A098C: mov eax, dword ptr [ecx - 0x14] */
   1953     eax = MEM32(eax + 0x4); /* 0x470A098F: mov eax, dword ptr [eax + 4] */
   1954     edx = eax + (-0x14); /* 0x470A0992: lea edx, [eax - 0x14] */
   1955     MEM32(eax + ecx + (-0x18)) = edx; /* 0x470A0995: mov dword ptr [eax + ecx - 0x18], edx */
   1956     eax = MEM32(ecx + (-0x14)); /* 0x470A0999: mov eax, dword ptr [ecx - 0x14] */
   1957     eax = MEM32(eax + 0x8); /* 0x470A099C: mov eax, dword ptr [eax + 8] */
   1958     edx = eax + (-0x1C); /* 0x470A099F: lea edx, [eax - 0x1c] */
   1959     MEM32(eax + ecx + (-0x18)) = edx; /* 0x470A09A2: mov dword ptr [eax + ecx - 0x18], edx */
   1960     eax = MEM32(ecx + (-0x14)); /* 0x470A09A6: mov eax, dword ptr [ecx - 0x14] */
   1961     edx = MEM32(eax + 0x4); /* 0x470A09A9: mov edx, dword ptr [eax + 4] */
   1962     MEM32(edx + ecx + (-0x14)) = 0x470AE3C0u; /* 0x470A09AC: mov dword ptr [edx + ecx - 0x14], 0x470ae3c0 */
   1963     eax = MEM32(ecx + (-0x14)); /* 0x470A09B4: mov eax, dword ptr [ecx - 0x14] */
   1964     edx = MEM32(eax + 0x8); /* 0x470A09B7: mov edx, dword ptr [eax + 8] */
   1965     MEM32(edx + ecx + (-0x14)) = 0x470AE3B4u; /* 0x470A09BA: mov dword ptr [edx + ecx - 0x14], 0x470ae3b4 */
   1966     eax = MEM32(ecx + (-0x14)); /* 0x470A09C2: mov eax, dword ptr [ecx - 0x14] */
   1967     eax = MEM32(eax + 0x4); /* 0x470A09C5: mov eax, dword ptr [eax + 4] */
   1968     edx = eax + (-0x14); /* 0x470A09C8: lea edx, [eax - 0x14] */
   1969     MEM32(eax + ecx + (-0x18)) = edx; /* 0x470A09CB: mov dword ptr [eax + ecx - 0x18], edx */
   1970     eax = MEM32(ecx + (-0x14)); /* 0x470A09CF: mov eax, dword ptr [ecx - 0x14] */
   1971     eax = MEM32(eax + 0x8); /* 0x470A09D2: mov eax, dword ptr [eax + 8] */
   1972     edx = eax + (-0x1C); /* 0x470A09D5: lea edx, [eax - 0x1c] */
   1973     MEM32(eax + ecx + (-0x18)) = edx; /* 0x470A09D8: mov dword ptr [eax + ecx - 0x18], edx */
   1974     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A09DC: ret  */
   1975     RECOMP_REGS_OUT();
   1976 }
   1977 
   1978 void sub_470A09E0(void) {
   1979     int _fpu_cmp = 0;
   1980     uint32_t _cf = 0;
   1981     int _df = 1;
   1982     uint32_t _flag_k = FK_NONE;
   1983     uint32_t _flag_a = 0, _flag_b = 0;
   1984     uint32_t _itail_tgt = 0;
   1985     RECOMP_REGS_LOCALS
   1986     RECOMP_ENTER(0x470A09E0u);
   1987 
   1988 L_470A09E0:
   1989     eax = MEM32(ecx + (-0x14)); /* 0x470A09E0: mov eax, dword ptr [ecx - 0x14] */
   1990     edx = MEM32(eax + 0xC); /* 0x470A09E3: mov edx, dword ptr [eax + 0xc] */
   1991     eax = MEM32(edx + ecx + 0xC); /* 0x470A09E6: mov eax, dword ptr [edx + ecx + 0xc] */
   1992     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A09EA: ret  */
   1993     RECOMP_REGS_OUT();
   1994 }
   1995 
   1996 void sub_470A09F0(void) {
   1997     int _fpu_cmp = 0;
   1998     uint32_t _cf = 0;
   1999     int _df = 1;
   2000     uint32_t _flag_k = FK_NONE;
   2001     uint32_t _flag_a = 0, _flag_b = 0;
   2002     uint32_t _itail_tgt = 0;
   2003     RECOMP_REGS_LOCALS
   2004     RECOMP_ENTER(0x470A09F0u);
   2005 
   2006 L_470A09F0:
   2007     PUSH32(esp, ecx); /* 0x470A09F0: push ecx */
   2008     eax = MEM32(esp + 0xC); /* 0x470A09F1: mov eax, dword ptr [esp + 0xc] */
   2009     /* test eax, eax */ /* 0x470A09F5: test eax, eax */
   2010     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2011     _cf = 0;
   2012     _flag_k = FK_TEST;
   2013     PUSH32(esp, esi); /* 0x470A09F7: push esi */
   2014     esi = ecx; /* 0x470A09F8: mov esi, ecx */
   2015     MEM32(esp + 0x4) = 0; /* 0x470A09FA: mov dword ptr [esp + 4], 0 */
   2016     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0A57; /* 0x470A0A02: je 0x470a0a57 */
   2017 L_470A0A04:
   2018     MEM32(esi) = 0x470AE554u; /* 0x470A0A04: mov dword ptr [esi], 0x470ae554 */
   2019     MEM32(esi + 0x24) = 0x470AE54Cu; /* 0x470A0A0A: mov dword ptr [esi + 0x24], 0x470ae54c */
   2020     MEM32(esi + 0x30) = 0x470AE540u; /* 0x470A0A11: mov dword ptr [esi + 0x30], 0x470ae540 */
   2021     MEM32(esi + 0x18) = 0x470ACC4Cu; /* 0x470A0A18: mov dword ptr [esi + 0x18], 0x470acc4c */
   2022     eax = MEM32(esi + 0x24); /* 0x470A0A1F: mov eax, dword ptr [esi + 0x24] */
   2023     MEM32(esi + 0x20) = 0x470ACC6Cu; /* 0x470A0A22: mov dword ptr [esi + 0x20], 0x470acc6c */
   2024     ecx = MEM32(eax + 0x4); /* 0x470A0A29: mov ecx, dword ptr [eax + 4] */
   2025     MEM32(ecx + esi + 0x24) = 0x470ACC5Cu; /* 0x470A0A2C: mov dword ptr [ecx + esi + 0x24], 0x470acc5c */
   2026     edx = MEM32(esi + 0x30); /* 0x470A0A34: mov edx, dword ptr [esi + 0x30] */
   2027     MEM32(esi + 0x2C) = 0x470ACD38u; /* 0x470A0A37: mov dword ptr [esi + 0x2c], 0x470acd38 */
   2028     eax = MEM32(edx + 0x4); /* 0x470A0A3E: mov eax, dword ptr [edx + 4] */
   2029     MEM32(eax + esi + 0x30) = 0x470ACD28u; /* 0x470A0A41: mov dword ptr [eax + esi + 0x30], 0x470acd28 */
   2030     ecx = MEM32(esi + 0x30); /* 0x470A0A49: mov ecx, dword ptr [esi + 0x30] */
   2031     edx = MEM32(ecx + 0x8); /* 0x470A0A4C: mov edx, dword ptr [ecx + 8] */
   2032     MEM32(edx + esi + 0x30) = 0x470ACD24u; /* 0x470A0A4F: mov dword ptr [edx + esi + 0x30], 0x470acd24 */
   2033 L_470A0A57:
   2034     eax = MEM32(esp + 0xC); /* 0x470A0A57: mov eax, dword ptr [esp + 0xc] */
   2035     PUSH32(esp, 0); /* 0x470A0A5B: push 0 */
   2036     PUSH32(esp, eax); /* 0x470A0A5D: push eax */
   2037     ecx = esi; /* 0x470A0A5E: mov ecx, esi */
   2038     RECOMP_ICALL(0x470A0000u); /* 0x470A0A60: call 0x470a0000 */ /* not lifted */
   2039     RECOMP_FLAGS_IN();
   2040     ecx = MEM32(esi); /* 0x470A0A65: mov ecx, dword ptr [esi] */
   2041     edx = MEM32(ecx + 0x4); /* 0x470A0A67: mov edx, dword ptr [ecx + 4] */
   2042     MEM32(edx + esi) = 0x470AE530u; /* 0x470A0A6A: mov dword ptr [edx + esi], 0x470ae530 */
   2043     eax = MEM32(esi); /* 0x470A0A71: mov eax, dword ptr [esi] */
   2044     ecx = MEM32(eax + 0x8); /* 0x470A0A73: mov ecx, dword ptr [eax + 8] */
   2045     MEM32(ecx + esi) = 0x470AE52Cu; /* 0x470A0A76: mov dword ptr [ecx + esi], 0x470ae52c */
   2046     edx = MEM32(esi); /* 0x470A0A7D: mov edx, dword ptr [esi] */
   2047     eax = MEM32(edx + 0xC); /* 0x470A0A7F: mov eax, dword ptr [edx + 0xc] */
   2048     MEM32(eax + esi) = 0x470AE528u; /* 0x470A0A82: mov dword ptr [eax + esi], 0x470ae528 */
   2049     ecx = MEM32(esi); /* 0x470A0A89: mov ecx, dword ptr [esi] */
   2050     eax = MEM32(ecx + 0x4); /* 0x470A0A8B: mov eax, dword ptr [ecx + 4] */
   2051     edx = eax + (-0x18); /* 0x470A0A8E: lea edx, [eax - 0x18] */
   2052     MEM32(eax + esi + (-0x4)) = edx; /* 0x470A0A91: mov dword ptr [eax + esi - 4], edx */
   2053     eax = MEM32(esi); /* 0x470A0A95: mov eax, dword ptr [esi] */
   2054     eax = MEM32(eax + 0x8); /* 0x470A0A97: mov eax, dword ptr [eax + 8] */
   2055     ecx = eax + (-0x20); /* 0x470A0A9A: lea ecx, [eax - 0x20] */
   2056     MEM32(eax + esi + (-0x4)) = ecx; /* 0x470A0A9D: mov dword ptr [eax + esi - 4], ecx */
   2057     edx = MEM32(esi); /* 0x470A0AA1: mov edx, dword ptr [esi] */
   2058     eax = MEM32(edx + 0xC); /* 0x470A0AA3: mov eax, dword ptr [edx + 0xc] */
   2059     ecx = eax + (-0x2C); /* 0x470A0AA6: lea ecx, [eax - 0x2c] */
   2060     MEM32(eax + esi + (-0x4)) = ecx; /* 0x470A0AA9: mov dword ptr [eax + esi - 4], ecx */
   2061     eax = esi; /* 0x470A0AAD: mov eax, esi */
   2062     esi = POP32_VAL(esp); /* 0x470A0AAF: pop esi */
   2063     ecx = POP32_VAL(esp); /* 0x470A0AB0: pop ecx */
   2064     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A0AB1: ret 8 */
   2065     RECOMP_REGS_OUT();
   2066 }
   2067 
   2068 void sub_470A0AC0(void) {
   2069     int _fpu_cmp = 0;
   2070     uint32_t _cf = 0;
   2071     int _df = 1;
   2072     uint32_t _flag_k = FK_NONE;
   2073     uint32_t _flag_a = 0, _flag_b = 0;
   2074     uint32_t _itail_tgt = 0;
   2075     RECOMP_REGS_LOCALS
   2076     RECOMP_ENTER(0x470A0AC0u);
   2077 
   2078 L_470A0AC0:
   2079     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A0AC0: push -1 */
   2080     PUSH32(esp, 0x470ABC0Bu); /* 0x470A0AC2: push 0x470abc0b */
   2081     eax = MEM32(FS_BASE + (0)); /* 0x470A0AC7: mov eax, dword ptr fs:[0] */
   2082     PUSH32(esp, eax); /* 0x470A0ACD: push eax */
   2083     MEM32(FS_BASE + (0)) = esp; /* 0x470A0ACE: mov dword ptr fs:[0], esp */
   2084     PUSH32(esp, ecx); /* 0x470A0AD5: push ecx */
   2085     PUSH32(esp, esi); /* 0x470A0AD6: push esi */
   2086     PUSH32(esp, edi); /* 0x470A0AD7: push edi */
   2087     PUSH32(esp, 0x58u); /* 0x470A0AD8: push 0x58 */
   2088     esi = ecx; /* 0x470A0ADA: mov esi, ecx */
   2089     RECOMP_ICALL(0x470A33F2u); /* 0x470A0ADC: call 0x470a33f2 */ /* not lifted */
   2090     RECOMP_FLAGS_IN();
   2091     edi = eax; /* 0x470A0AE1: mov edi, eax */
   2092     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2094     esp = esp + 4; /* 0x470A0AE3: add esp, 4 */
   2095     _flag_k = FK_ADD;
   2096     MEM32(esp + 0x8) = edi; /* 0x470A0AE6: mov dword ptr [esp + 8], edi */
   2097     /* test edi, edi */ /* 0x470A0AEA: test edi, edi */
   2098     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2099     _cf = 0;
   2100     _flag_k = FK_TEST;
   2101     MEM32(esp + 0x14) = 0; /* 0x470A0AEC: mov dword ptr [esp + 0x14], 0 */
   2102     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0B37; /* 0x470A0AF4: je 0x470a0b37 */
   2103 L_470A0AF6:
   2104     eax = MEM32(esp + 0x34); /* 0x470A0AF6: mov eax, dword ptr [esp + 0x34] */
   2105     ecx = MEM32(esi + (-0x28)); /* 0x470A0AFA: mov ecx, dword ptr [esi - 0x28] */
   2106     edx = MEM32(esp + 0x30); /* 0x470A0AFD: mov edx, dword ptr [esp + 0x30] */
   2107     PUSH32(esp, 1); /* 0x470A0B01: push 1 */
   2108     PUSH32(esp, eax); /* 0x470A0B03: push eax */
   2109     eax = MEM32(ecx); /* 0x470A0B04: mov eax, dword ptr [ecx] */
   2110     PUSH32(esp, edx); /* 0x470A0B06: push edx */
   2111     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A0B07: call dword ptr [eax + 4] */
   2112     RECOMP_FLAGS_IN();
   2113     ecx = MEM32(esp + 0x34); /* 0x470A0B0A: mov ecx, dword ptr [esp + 0x34] */
   2114     edx = MEM32(esp + 0x30); /* 0x470A0B0E: mov edx, dword ptr [esp + 0x30] */
   2115     PUSH32(esp, eax); /* 0x470A0B12: push eax */
   2116     eax = MEM32(esp + 0x3C); /* 0x470A0B13: mov eax, dword ptr [esp + 0x3c] */
   2117     PUSH32(esp, ecx); /* 0x470A0B17: push ecx */
   2118     ecx = MEM32(esp + 0x34); /* 0x470A0B18: mov ecx, dword ptr [esp + 0x34] */
   2119     PUSH32(esp, edx); /* 0x470A0B1C: push edx */
   2120     edx = MEM32(esp + 0x34); /* 0x470A0B1D: mov edx, dword ptr [esp + 0x34] */
   2121     PUSH32(esp, eax); /* 0x470A0B21: push eax */
   2122     eax = MEM32(esi + (-0x1C)); /* 0x470A0B22: mov eax, dword ptr [esi - 0x1c] */
   2123     PUSH32(esp, ecx); /* 0x470A0B25: push ecx */
   2124     ecx = MEM32(esi + (-0x20)); /* 0x470A0B26: mov ecx, dword ptr [esi - 0x20] */
   2125     PUSH32(esp, edx); /* 0x470A0B29: push edx */
   2126     PUSH32(esp, eax); /* 0x470A0B2A: push eax */
   2127     PUSH32(esp, ecx); /* 0x470A0B2B: push ecx */
   2128     ecx = edi; /* 0x470A0B2C: mov ecx, edi */
   2129     RECOMP_ICALL(0x470A07A0u); /* 0x470A0B2E: call 0x470a07a0 */ /* not lifted */
   2130     RECOMP_FLAGS_IN();
   2131     edi = eax; /* 0x470A0B33: mov edi, eax */
   2132     goto L_470A0B39; /* 0x470A0B35: jmp 0x470a0b39 */
   2133 L_470A0B37:
   2134     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2135     edi = 0; /* 0x470A0B37: xor edi, edi */
   2136     _cf = 0;
   2137     _flag_k = FK_TEST;
   2138 L_470A0B39:
   2139     /* test edi, edi */ /* 0x470A0B39: test edi, edi */
   2140     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2141     _cf = 0;
   2142     _flag_k = FK_TEST;
   2143     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A0B3B: mov dword ptr [esp + 0x14], 0xffffffff */
   2144     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A0B67; /* 0x470A0B43: jne 0x470a0b67 */
   2145 L_470A0B45:
   2146     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A0B45: call dword ptr [0x470ac3c8] */
   2147     RECOMP_FLAGS_IN();
   2148     edi = POP32_VAL(esp); /* 0x470A0B4B: pop edi */
   2149     MEM32(eax) = 0xCu; /* 0x470A0B4C: mov dword ptr [eax], 0xc */
   2150     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2151     eax = eax | 0xFFFFFFFFu; /* 0x470A0B52: or eax, 0xffffffff */
   2152     _cf = 0;
   2153     _flag_k = FK_TEST;
   2154     esi = POP32_VAL(esp); /* 0x470A0B55: pop esi */
   2155     ecx = MEM32(esp + 0x4); /* 0x470A0B56: mov ecx, dword ptr [esp + 4] */
   2156     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0B5A: mov dword ptr fs:[0], ecx */
   2157     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2159     esp = esp + 0x10u; /* 0x470A0B61: add esp, 0x10 */
   2160     _flag_k = FK_ADD;
   2161     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A0B64: ret 0x1c */
   2162 L_470A0B67:
   2163     PUSH32(esp, edi); /* 0x470A0B67: push edi */
   2164     ecx = esi + (-0x2C); /* 0x470A0B68: lea ecx, [esi - 0x2c] */
   2165     RECOMP_ICALL(0x470A01D0u); /* 0x470A0B6B: call 0x470a01d0 */ /* not lifted */
   2166     RECOMP_FLAGS_IN();
   2167     esi = eax; /* 0x470A0B70: mov esi, eax */
   2168     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0B72: cmp esi, -1 */
   2169     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2171     _flag_k = FK_CMP;
   2172     if (CMP_NE(_flag_a, _flag_b)) goto L_470A0B86; /* 0x470A0B75: jne 0x470a0b86 */
   2173 L_470A0B77:
   2174     edx = MEM32(edi); /* 0x470A0B77: mov edx, dword ptr [edi] */
   2175     eax = MEM32(edx + 0x4); /* 0x470A0B79: mov eax, dword ptr [edx + 4] */
   2176     edx = MEM32(eax + edi); /* 0x470A0B7C: mov edx, dword ptr [eax + edi] */
   2177     ecx = eax + edi; /* 0x470A0B7F: lea ecx, [eax + edi] */
   2178     PUSH32(esp, 1); /* 0x470A0B82: push 1 */
   2179     RECOMP_ICALL(MEM32(edx)); /* 0x470A0B84: call dword ptr [edx] */
   2180     RECOMP_FLAGS_IN();
   2181 L_470A0B86:
   2182     ecx = MEM32(esp + 0xC); /* 0x470A0B86: mov ecx, dword ptr [esp + 0xc] */
   2183     edi = POP32_VAL(esp); /* 0x470A0B8A: pop edi */
   2184     eax = esi; /* 0x470A0B8B: mov eax, esi */
   2185     esi = POP32_VAL(esp); /* 0x470A0B8D: pop esi */
   2186     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0B8E: mov dword ptr fs:[0], ecx */
   2187     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2189     esp = esp + 0x10u; /* 0x470A0B95: add esp, 0x10 */
   2190     _flag_k = FK_ADD;
   2191     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A0B98: ret 0x1c */
   2192     RECOMP_REGS_OUT();
   2193 }
   2194 
   2195 void sub_470A0B39(void) {
   2196     int _fpu_cmp = 0;
   2197     uint32_t _cf = 0;
   2198     int _df = 1;
   2199     uint32_t _flag_k = FK_NONE;
   2200     uint32_t _flag_a = 0, _flag_b = 0;
   2201     uint32_t _itail_tgt = 0;
   2202     RECOMP_REGS_LOCALS
   2203     RECOMP_ENTER(0x470A0B39u);
   2204 
   2205 L_470A0B39:
   2206     /* test edi, edi */ /* 0x470A0B39: test edi, edi */
   2207     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2208     _cf = 0;
   2209     _flag_k = FK_TEST;
   2210     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A0B3B: mov dword ptr [esp + 0x14], 0xffffffff */
   2211     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A0B67; /* 0x470A0B43: jne 0x470a0b67 */
   2212 L_470A0B45:
   2213     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A0B45: call dword ptr [0x470ac3c8] */
   2214     RECOMP_FLAGS_IN();
   2215     edi = POP32_VAL(esp); /* 0x470A0B4B: pop edi */
   2216     MEM32(eax) = 0xCu; /* 0x470A0B4C: mov dword ptr [eax], 0xc */
   2217     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2218     eax = eax | 0xFFFFFFFFu; /* 0x470A0B52: or eax, 0xffffffff */
   2219     _cf = 0;
   2220     _flag_k = FK_TEST;
   2221     esi = POP32_VAL(esp); /* 0x470A0B55: pop esi */
   2222     ecx = MEM32(esp + 0x4); /* 0x470A0B56: mov ecx, dword ptr [esp + 4] */
   2223     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0B5A: mov dword ptr fs:[0], ecx */
   2224     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2225     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2226     esp = esp + 0x10u; /* 0x470A0B61: add esp, 0x10 */
   2227     _flag_k = FK_ADD;
   2228     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A0B64: ret 0x1c */
   2229 L_470A0B67:
   2230     PUSH32(esp, edi); /* 0x470A0B67: push edi */
   2231     ecx = esi + (-0x2C); /* 0x470A0B68: lea ecx, [esi - 0x2c] */
   2232     RECOMP_ICALL(0x470A01D0u); /* 0x470A0B6B: call 0x470a01d0 */ /* not lifted */
   2233     RECOMP_FLAGS_IN();
   2234     esi = eax; /* 0x470A0B70: mov esi, eax */
   2235     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0B72: cmp esi, -1 */
   2236     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2238     _flag_k = FK_CMP;
   2239     if (CMP_NE(_flag_a, _flag_b)) goto L_470A0B86; /* 0x470A0B75: jne 0x470a0b86 */
   2240 L_470A0B77:
   2241     edx = MEM32(edi); /* 0x470A0B77: mov edx, dword ptr [edi] */
   2242     eax = MEM32(edx + 0x4); /* 0x470A0B79: mov eax, dword ptr [edx + 4] */
   2243     edx = MEM32(eax + edi); /* 0x470A0B7C: mov edx, dword ptr [eax + edi] */
   2244     ecx = eax + edi; /* 0x470A0B7F: lea ecx, [eax + edi] */
   2245     PUSH32(esp, 1); /* 0x470A0B82: push 1 */
   2246     RECOMP_ICALL(MEM32(edx)); /* 0x470A0B84: call dword ptr [edx] */
   2247     RECOMP_FLAGS_IN();
   2248 L_470A0B86:
   2249     ecx = MEM32(esp + 0xC); /* 0x470A0B86: mov ecx, dword ptr [esp + 0xc] */
   2250     edi = POP32_VAL(esp); /* 0x470A0B8A: pop edi */
   2251     eax = esi; /* 0x470A0B8B: mov eax, esi */
   2252     esi = POP32_VAL(esp); /* 0x470A0B8D: pop esi */
   2253     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0B8E: mov dword ptr fs:[0], ecx */
   2254     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2255     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2256     esp = esp + 0x10u; /* 0x470A0B95: add esp, 0x10 */
   2257     _flag_k = FK_ADD;
   2258     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A0B98: ret 0x1c */
   2259     RECOMP_REGS_OUT();
   2260 }
   2261 
   2262 void sub_470A0BA0(void) {
   2263     int _fpu_cmp = 0;
   2264     uint32_t _cf = 0;
   2265     int _df = 1;
   2266     uint32_t _flag_k = FK_NONE;
   2267     uint32_t _flag_a = 0, _flag_b = 0;
   2268     uint32_t _itail_tgt = 0;
   2269     RECOMP_REGS_LOCALS
   2270     RECOMP_ENTER(0x470A0BA0u);
   2271 
   2272 L_470A0BA0:
   2273     eax = MEM32(ecx + (-0x18)); /* 0x470A0BA0: mov eax, dword ptr [ecx - 0x18] */
   2274     edx = MEM32(eax + 0x4); /* 0x470A0BA3: mov edx, dword ptr [eax + 4] */
   2275     MEM32(edx + ecx + (-0x18)) = 0x470AE530u; /* 0x470A0BA6: mov dword ptr [edx + ecx - 0x18], 0x470ae530 */
   2276     eax = MEM32(ecx + (-0x18)); /* 0x470A0BAE: mov eax, dword ptr [ecx - 0x18] */
   2277     edx = MEM32(eax + 0x8); /* 0x470A0BB1: mov edx, dword ptr [eax + 8] */
   2278     MEM32(edx + ecx + (-0x18)) = 0x470AE52Cu; /* 0x470A0BB4: mov dword ptr [edx + ecx - 0x18], 0x470ae52c */
   2279     eax = MEM32(ecx + (-0x18)); /* 0x470A0BBC: mov eax, dword ptr [ecx - 0x18] */
   2280     edx = MEM32(eax + 0xC); /* 0x470A0BBF: mov edx, dword ptr [eax + 0xc] */
   2281     MEM32(edx + ecx + (-0x18)) = 0x470AE528u; /* 0x470A0BC2: mov dword ptr [edx + ecx - 0x18], 0x470ae528 */
   2282     eax = MEM32(ecx + (-0x18)); /* 0x470A0BCA: mov eax, dword ptr [ecx - 0x18] */
   2283     eax = MEM32(eax + 0x4); /* 0x470A0BCD: mov eax, dword ptr [eax + 4] */
   2284     edx = eax + (-0x18); /* 0x470A0BD0: lea edx, [eax - 0x18] */
   2285     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0BD3: mov dword ptr [eax + ecx - 0x1c], edx */
   2286     eax = MEM32(ecx + (-0x18)); /* 0x470A0BD7: mov eax, dword ptr [ecx - 0x18] */
   2287     eax = MEM32(eax + 0x8); /* 0x470A0BDA: mov eax, dword ptr [eax + 8] */
   2288     edx = eax + (-0x20); /* 0x470A0BDD: lea edx, [eax - 0x20] */
   2289     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0BE0: mov dword ptr [eax + ecx - 0x1c], edx */
   2290     eax = MEM32(ecx + (-0x18)); /* 0x470A0BE4: mov eax, dword ptr [ecx - 0x18] */
   2291     eax = MEM32(eax + 0xC); /* 0x470A0BE7: mov eax, dword ptr [eax + 0xc] */
   2292     edx = eax + (-0x2C); /* 0x470A0BEA: lea edx, [eax - 0x2c] */
   2293     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0BED: mov dword ptr [eax + ecx - 0x1c], edx */
   2294     eax = MEM32(ecx + (-0x18)); /* 0x470A0BF1: mov eax, dword ptr [ecx - 0x18] */
   2295     edx = MEM32(eax + 0x4); /* 0x470A0BF4: mov edx, dword ptr [eax + 4] */
   2296     MEM32(edx + ecx + (-0x18)) = 0x470AE418u; /* 0x470A0BF7: mov dword ptr [edx + ecx - 0x18], 0x470ae418 */
   2297     eax = MEM32(ecx + (-0x18)); /* 0x470A0BFF: mov eax, dword ptr [ecx - 0x18] */
   2298     edx = MEM32(eax + 0x8); /* 0x470A0C02: mov edx, dword ptr [eax + 8] */
   2299     MEM32(edx + ecx + (-0x18)) = 0x470AE414u; /* 0x470A0C05: mov dword ptr [edx + ecx - 0x18], 0x470ae414 */
   2300     eax = MEM32(ecx + (-0x18)); /* 0x470A0C0D: mov eax, dword ptr [ecx - 0x18] */
   2301     eax = MEM32(eax + 0x4); /* 0x470A0C10: mov eax, dword ptr [eax + 4] */
   2302     edx = eax + (-0x18); /* 0x470A0C13: lea edx, [eax - 0x18] */
   2303     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0C16: mov dword ptr [eax + ecx - 0x1c], edx */
   2304     eax = MEM32(ecx + (-0x18)); /* 0x470A0C1A: mov eax, dword ptr [ecx - 0x18] */
   2305     eax = MEM32(eax + 0x8); /* 0x470A0C1D: mov eax, dword ptr [eax + 8] */
   2306     edx = eax + (-0x20); /* 0x470A0C20: lea edx, [eax - 0x20] */
   2307     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0C23: mov dword ptr [eax + ecx - 0x1c], edx */
   2308     eax = MEM32(ecx + (-0x18)); /* 0x470A0C27: mov eax, dword ptr [ecx - 0x18] */
   2309     edx = MEM32(eax + 0x4); /* 0x470A0C2A: mov edx, dword ptr [eax + 4] */
   2310     MEM32(edx + ecx + (-0x18)) = 0x470AE39Cu; /* 0x470A0C2D: mov dword ptr [edx + ecx - 0x18], 0x470ae39c */
   2311     eax = MEM32(ecx + (-0x18)); /* 0x470A0C35: mov eax, dword ptr [ecx - 0x18] */
   2312     eax = MEM32(eax + 0x4); /* 0x470A0C38: mov eax, dword ptr [eax + 4] */
   2313     edx = eax + (-0x18); /* 0x470A0C3B: lea edx, [eax - 0x18] */
   2314     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A0C3E: mov dword ptr [eax + ecx - 0x1c], edx */
   2315     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0C42: ret  */
   2316     RECOMP_REGS_OUT();
   2317 }
   2318 
   2319 void sub_470A0C50(void) {
   2320     int _fpu_cmp = 0;
   2321     uint32_t _cf = 0;
   2322     int _df = 1;
   2323     uint32_t _flag_k = FK_NONE;
   2324     uint32_t _flag_a = 0, _flag_b = 0;
   2325     uint32_t _itail_tgt = 0;
   2326     RECOMP_REGS_LOCALS
   2327     RECOMP_ENTER(0x470A0C50u);
   2328 
   2329 L_470A0C50:
   2330     eax = MEM32(esp + 0x14); /* 0x470A0C50: mov eax, dword ptr [esp + 0x14] */
   2331     edx = MEM32(esp + 0x10); /* 0x470A0C54: mov edx, dword ptr [esp + 0x10] */
   2332     PUSH32(esp, eax); /* 0x470A0C58: push eax */
   2333     eax = MEM32(esp + 0x10); /* 0x470A0C59: mov eax, dword ptr [esp + 0x10] */
   2334     PUSH32(esp, edx); /* 0x470A0C5D: push edx */
   2335     edx = MEM32(esp + 0x10); /* 0x470A0C5E: mov edx, dword ptr [esp + 0x10] */
   2336     PUSH32(esp, eax); /* 0x470A0C62: push eax */
   2337     eax = MEM32(esp + 0x10); /* 0x470A0C63: mov eax, dword ptr [esp + 0x10] */
   2338     PUSH32(esp, edx); /* 0x470A0C67: push edx */
   2339     PUSH32(esp, eax); /* 0x470A0C68: push eax */
   2340     RECOMP_ICALL(0x470A00A0u); /* 0x470A0C69: call 0x470a00a0 */ /* not lifted */
   2341     RECOMP_FLAGS_IN();
   2342     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A0C6E: ret 0x14 */
   2343     RECOMP_REGS_OUT();
   2344 }
   2345 
   2346 void sub_470A0C80(void) {
   2347     int _fpu_cmp = 0;
   2348     uint32_t _cf = 0;
   2349     int _df = 1;
   2350     uint32_t _flag_k = FK_NONE;
   2351     uint32_t _flag_a = 0, _flag_b = 0;
   2352     uint32_t _itail_tgt = 0;
   2353     RECOMP_REGS_LOCALS
   2354     RECOMP_ENTER(0x470A0C80u);
   2355 
   2356 L_470A0C80:
   2357     PUSH32(esp, ecx); /* 0x470A0C80: push ecx */
   2358     eax = MEM32(esp + 0x30); /* 0x470A0C81: mov eax, dword ptr [esp + 0x30] */
   2359     /* test eax, eax */ /* 0x470A0C85: test eax, eax */
   2360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2361     _cf = 0;
   2362     _flag_k = FK_TEST;
   2363     PUSH32(esp, esi); /* 0x470A0C87: push esi */
   2364     esi = ecx; /* 0x470A0C88: mov esi, ecx */
   2365     MEM32(esp + 0x4) = 0; /* 0x470A0C8A: mov dword ptr [esp + 4], 0 */
   2366     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0CE1; /* 0x470A0C92: je 0x470a0ce1 */
   2367 L_470A0C94:
   2368     MEM32(esi + 0x14) = 0x470AE5B8u; /* 0x470A0C94: mov dword ptr [esi + 0x14], 0x470ae5b8 */
   2369     MEM32(esi + 0x4C) = 0x470AE5B0u; /* 0x470A0C9B: mov dword ptr [esi + 0x4c], 0x470ae5b0 */
   2370     MEM32(esi + 0x50) = 0x470AE5A4u; /* 0x470A0CA2: mov dword ptr [esi + 0x50], 0x470ae5a4 */
   2371     MEM32(esi + 0x40) = 0x470ACC18u; /* 0x470A0CA9: mov dword ptr [esi + 0x40], 0x470acc18 */
   2372     eax = MEM32(esi + 0x4C); /* 0x470A0CB0: mov eax, dword ptr [esi + 0x4c] */
   2373     MEM32(esi + 0x48) = 0x470ACD10u; /* 0x470A0CB3: mov dword ptr [esi + 0x48], 0x470acd10 */
   2374     ecx = MEM32(eax + 0x4); /* 0x470A0CBA: mov ecx, dword ptr [eax + 4] */
   2375     MEM32(ecx + esi + 0x4C) = 0x470ACCDCu; /* 0x470A0CBD: mov dword ptr [ecx + esi + 0x4c], 0x470accdc */
   2376     edx = MEM32(esi + 0x50); /* 0x470A0CC5: mov edx, dword ptr [esi + 0x50] */
   2377     eax = MEM32(edx + 0x4); /* 0x470A0CC8: mov eax, dword ptr [edx + 4] */
   2378     MEM32(eax + esi + 0x50) = 0x470ACDDCu; /* 0x470A0CCB: mov dword ptr [eax + esi + 0x50], 0x470acddc */
   2379     ecx = MEM32(esi + 0x50); /* 0x470A0CD3: mov ecx, dword ptr [esi + 0x50] */
   2380     edx = MEM32(ecx + 0x8); /* 0x470A0CD6: mov edx, dword ptr [ecx + 8] */
   2381     MEM32(edx + esi + 0x50) = 0x470ACDD0u; /* 0x470A0CD9: mov dword ptr [edx + esi + 0x50], 0x470acdd0 */
   2382 L_470A0CE1:
   2383     eax = MEM32(esp + 0x30); /* 0x470A0CE1: mov eax, dword ptr [esp + 0x30] */
   2384     ecx = MEM32(esp + 0x2C); /* 0x470A0CE5: mov ecx, dword ptr [esp + 0x2c] */
   2385     edx = MEM32(esp + 0x28); /* 0x470A0CE9: mov edx, dword ptr [esp + 0x28] */
   2386     PUSH32(esp, 0); /* 0x470A0CED: push 0 */
   2387     PUSH32(esp, eax); /* 0x470A0CEF: push eax */
   2388     eax = MEM32(esp + 0x24); /* 0x470A0CF0: mov eax, dword ptr [esp + 0x24] */
   2389     PUSH32(esp, ecx); /* 0x470A0CF4: push ecx */
   2390     ecx = MEM32(esp + 0x24); /* 0x470A0CF5: mov ecx, dword ptr [esp + 0x24] */
   2391     PUSH32(esp, edx); /* 0x470A0CF9: push edx */
   2392     edx = MEM32(esp + 0x24); /* 0x470A0CFA: mov edx, dword ptr [esp + 0x24] */
   2393     PUSH32(esp, eax); /* 0x470A0CFE: push eax */
   2394     eax = MEM32(esp + 0x24); /* 0x470A0CFF: mov eax, dword ptr [esp + 0x24] */
   2395     PUSH32(esp, ecx); /* 0x470A0D03: push ecx */
   2396     ecx = MEM32(esp + 0x24); /* 0x470A0D04: mov ecx, dword ptr [esp + 0x24] */
   2397     PUSH32(esp, edx); /* 0x470A0D08: push edx */
   2398     PUSH32(esp, eax); /* 0x470A0D09: push eax */
   2399     PUSH32(esp, ecx); /* 0x470A0D0A: push ecx */
   2400     ecx = esi; /* 0x470A0D0B: mov ecx, esi */
   2401     RECOMP_ICALL(0x470A02D0u); /* 0x470A0D0D: call 0x470a02d0 */ /* not lifted */
   2402     RECOMP_FLAGS_IN();
   2403     edx = MEM32(esi + 0x14); /* 0x470A0D12: mov edx, dword ptr [esi + 0x14] */
   2404     eax = MEM32(edx + 0x4); /* 0x470A0D15: mov eax, dword ptr [edx + 4] */
   2405     MEM32(eax + esi + 0x14) = 0x470AE570u; /* 0x470A0D18: mov dword ptr [eax + esi + 0x14], 0x470ae570 */
   2406     ecx = MEM32(esi + 0x14); /* 0x470A0D20: mov ecx, dword ptr [esi + 0x14] */
   2407     edx = MEM32(ecx + 0x8); /* 0x470A0D23: mov edx, dword ptr [ecx + 8] */
   2408     MEM32(edx + esi + 0x14) = 0x470AE564u; /* 0x470A0D26: mov dword ptr [edx + esi + 0x14], 0x470ae564 */
   2409     eax = MEM32(esi + 0x14); /* 0x470A0D2E: mov eax, dword ptr [esi + 0x14] */
   2410     eax = MEM32(eax + 0x4); /* 0x470A0D31: mov eax, dword ptr [eax + 4] */
   2411     ecx = eax + (-0x2C); /* 0x470A0D34: lea ecx, [eax - 0x2c] */
   2412     MEM32(eax + esi + 0x10) = ecx; /* 0x470A0D37: mov dword ptr [eax + esi + 0x10], ecx */
   2413     edx = MEM32(esi + 0x14); /* 0x470A0D3B: mov edx, dword ptr [esi + 0x14] */
   2414     eax = MEM32(edx + 0x8); /* 0x470A0D3E: mov eax, dword ptr [edx + 8] */
   2415     edx = MEM32(esp + 0x20); /* 0x470A0D41: mov edx, dword ptr [esp + 0x20] */
   2416     ecx = eax + (-0x34); /* 0x470A0D45: lea ecx, [eax - 0x34] */
   2417     MEM32(eax + esi + 0x10) = ecx; /* 0x470A0D48: mov dword ptr [eax + esi + 0x10], ecx */
   2418     eax = MEM32(esp + 0x24); /* 0x470A0D4C: mov eax, dword ptr [esp + 0x24] */
   2419     MEM32(esi + 0xC) = eax; /* 0x470A0D50: mov dword ptr [esi + 0xc], eax */
   2420     MEM32(esi + 0x8) = edx; /* 0x470A0D53: mov dword ptr [esi + 8], edx */
   2421     eax = esi; /* 0x470A0D56: mov eax, esi */
   2422     esi = POP32_VAL(esp); /* 0x470A0D58: pop esi */
   2423     ecx = POP32_VAL(esp); /* 0x470A0D59: pop ecx */
   2424     RECOMP_FLAGS_OUT(); esp += 48; { RECOMP_REGS_OUT(); return; } /* 0x470A0D5A: ret 0x2c */
   2425     RECOMP_REGS_OUT();
   2426 }
   2427 
   2428 void sub_470A0D60(void) {
   2429     int _fpu_cmp = 0;
   2430     uint32_t _cf = 0;
   2431     int _df = 1;
   2432     uint32_t _flag_k = FK_NONE;
   2433     uint32_t _flag_a = 0, _flag_b = 0;
   2434     uint32_t _itail_tgt = 0;
   2435     RECOMP_REGS_LOCALS
   2436     RECOMP_ENTER(0x470A0D60u);
   2437 
   2438 L_470A0D60:
   2439     eax = MEM32(FS_BASE + (0)); /* 0x470A0D60: mov eax, dword ptr fs:[0] */
   2440     edx = MEM32(esp + 0xC); /* 0x470A0D66: mov edx, dword ptr [esp + 0xc] */
   2441     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A0D6A: push -1 */
   2442     PUSH32(esp, 0x470ABC28u); /* 0x470A0D6C: push 0x470abc28 */
   2443     PUSH32(esp, eax); /* 0x470A0D71: push eax */
   2444     eax = MEM32(esp + 0x14); /* 0x470A0D72: mov eax, dword ptr [esp + 0x14] */
   2445     MEM32(FS_BASE + (0)) = esp; /* 0x470A0D76: mov dword ptr fs:[0], esp */
   2446     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2448     esp = esp - 0x10u; /* 0x470A0D7D: sub esp, 0x10 */
   2449     _flag_k = FK_CMP;
   2450     PUSH32(esp, esi); /* 0x470A0D80: push esi */
   2451     esi = ecx; /* 0x470A0D81: mov esi, ecx */
   2452     ecx = MEM32(esp + 0x24); /* 0x470A0D83: mov ecx, dword ptr [esp + 0x24] */
   2453     MEM32(esi + (-0x20)) = ecx; /* 0x470A0D87: mov dword ptr [esi - 0x20], ecx */
   2454     MEM32(esi + (-0x1C)) = eax; /* 0x470A0D8A: mov dword ptr [esi - 0x1c], eax */
   2455     eax = MEM32(esp + 0x30); /* 0x470A0D8D: mov eax, dword ptr [esp + 0x30] */
   2456     MEM32(esi + (-0x18)) = edx; /* 0x470A0D91: mov dword ptr [esi - 0x18], edx */
   2457     MEM32(esi + (-0x14)) = eax; /* 0x470A0D94: mov dword ptr [esi - 0x14], eax */
   2458     eax = MEM32(esi + (-0xC)); /* 0x470A0D97: mov eax, dword ptr [esi - 0xc] */
   2459     edx = MEM32(eax + 0x4); /* 0x470A0D9A: mov edx, dword ptr [eax + 4] */
   2460     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2461     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2462     edx = edx + ecx; /* 0x470A0D9D: add edx, ecx */
   2463     _flag_k = FK_ADD;
   2464     ecx = esi + (-0x40); /* 0x470A0D9F: lea ecx, [esi - 0x40] */
   2465     /* test ecx, ecx */ /* 0x470A0DA2: test ecx, ecx */
   2466     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2467     _cf = 0;
   2468     _flag_k = FK_TEST;
   2469     MEM32(eax + 0x4) = edx; /* 0x470A0DA4: mov dword ptr [eax + 4], edx */
   2470     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A0DAD; /* 0x470A0DA7: jne 0x470a0dad */
   2471 L_470A0DA9:
   2472     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2473     eax = 0; /* 0x470A0DA9: xor eax, eax */
   2474     _cf = 0;
   2475     _flag_k = FK_TEST;
   2476     goto L_470A0DB7; /* 0x470A0DAB: jmp 0x470a0db7 */
   2477 L_470A0DAD:
   2478     edx = MEM32(esi + (-0x2C)); /* 0x470A0DAD: mov edx, dword ptr [esi - 0x2c] */
   2479     eax = MEM32(edx + 0xC); /* 0x470A0DB0: mov eax, dword ptr [edx + 0xc] */
   2480     eax = eax + esi + (-0x2C); /* 0x470A0DB3: lea eax, [eax + esi - 0x2c] */
   2481 L_470A0DB7:
   2482     PUSH32(esp, eax); /* 0x470A0DB7: push eax */
   2483     ecx = esp + 0x8; /* 0x470A0DB8: lea ecx, [esp + 8] */
   2484     RECOMP_ICALL(0x47018060u); /* 0x470A0DBC: call 0x47018060 */ /* not lifted */
   2485     RECOMP_FLAGS_IN();
   2486     ecx = MEM32(esi + (-0x28)); /* 0x470A0DC1: mov ecx, dword ptr [esi - 0x28] */
   2487     edx = MEM32(ecx); /* 0x470A0DC4: mov edx, dword ptr [ecx] */
   2488     eax = esp + 0x4; /* 0x470A0DC6: lea eax, [esp + 4] */
   2489     PUSH32(esp, eax); /* 0x470A0DCA: push eax */
   2490     MEM32(esp + 0x20) = 0; /* 0x470A0DCB: mov dword ptr [esp + 0x20], 0 */
   2491     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x470A0DD3: call dword ptr [edx + 0x10] */
   2492     RECOMP_FLAGS_IN();
   2493     ecx = esp + 0x4; /* 0x470A0DD6: lea ecx, [esp + 4] */
   2494     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A0DDA: mov dword ptr [esp + 0x1c], 0xffffffff */
   2495     RECOMP_ICALL(0x47017E00u); /* 0x470A0DE2: call 0x47017e00 */ /* not lifted */
   2496     RECOMP_FLAGS_IN();
   2497     ecx = MEM32(esp + 0x14); /* 0x470A0DE7: mov ecx, dword ptr [esp + 0x14] */
   2498     esi = POP32_VAL(esp); /* 0x470A0DEB: pop esi */
   2499     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0DEC: mov dword ptr fs:[0], ecx */
   2500     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   2501     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2502     esp = esp + 0x1Cu; /* 0x470A0DF3: add esp, 0x1c */
   2503     _flag_k = FK_ADD;
   2504     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A0DF6: ret 0x10 */
   2505     RECOMP_REGS_OUT();
   2506 }
   2507 
   2508 void sub_470A0DB7(void) {
   2509     int _fpu_cmp = 0;
   2510     uint32_t _cf = 0;
   2511     int _df = 1;
   2512     uint32_t _flag_k = FK_NONE;
   2513     uint32_t _flag_a = 0, _flag_b = 0;
   2514     uint32_t _itail_tgt = 0;
   2515     RECOMP_REGS_LOCALS
   2516     RECOMP_ENTER(0x470A0DB7u);
   2517 
   2518 L_470A0DB7:
   2519     PUSH32(esp, eax); /* 0x470A0DB7: push eax */
   2520     ecx = esp + 0x8; /* 0x470A0DB8: lea ecx, [esp + 8] */
   2521     RECOMP_ICALL(0x47018060u); /* 0x470A0DBC: call 0x47018060 */ /* not lifted */
   2522     RECOMP_FLAGS_IN();
   2523     ecx = MEM32(esi + (-0x28)); /* 0x470A0DC1: mov ecx, dword ptr [esi - 0x28] */
   2524     edx = MEM32(ecx); /* 0x470A0DC4: mov edx, dword ptr [ecx] */
   2525     eax = esp + 0x4; /* 0x470A0DC6: lea eax, [esp + 4] */
   2526     PUSH32(esp, eax); /* 0x470A0DCA: push eax */
   2527     MEM32(esp + 0x20) = 0; /* 0x470A0DCB: mov dword ptr [esp + 0x20], 0 */
   2528     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x470A0DD3: call dword ptr [edx + 0x10] */
   2529     RECOMP_FLAGS_IN();
   2530     ecx = esp + 0x4; /* 0x470A0DD6: lea ecx, [esp + 4] */
   2531     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A0DDA: mov dword ptr [esp + 0x1c], 0xffffffff */
   2532     RECOMP_ICALL(0x47017E00u); /* 0x470A0DE2: call 0x47017e00 */ /* not lifted */
   2533     RECOMP_FLAGS_IN();
   2534     ecx = MEM32(esp + 0x14); /* 0x470A0DE7: mov ecx, dword ptr [esp + 0x14] */
   2535     esi = POP32_VAL(esp); /* 0x470A0DEB: pop esi */
   2536     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0DEC: mov dword ptr fs:[0], ecx */
   2537     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   2538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2539     esp = esp + 0x1Cu; /* 0x470A0DF3: add esp, 0x1c */
   2540     _flag_k = FK_ADD;
   2541     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A0DF6: ret 0x10 */
   2542     RECOMP_REGS_OUT();
   2543 }
   2544 
   2545 void sub_470A0E00(void) {
   2546     int _fpu_cmp = 0;
   2547     uint32_t _cf = 0;
   2548     int _df = 1;
   2549     uint32_t _flag_k = FK_NONE;
   2550     uint32_t _flag_a = 0, _flag_b = 0;
   2551     uint32_t _itail_tgt = 0;
   2552     RECOMP_REGS_LOCALS
   2553     RECOMP_ENTER(0x470A0E00u);
   2554 
   2555 L_470A0E00:
   2556     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E00: mov eax, dword ptr [ecx - 0x2c] */
   2557     edx = MEM32(eax + 0x4); /* 0x470A0E03: mov edx, dword ptr [eax + 4] */
   2558     MEM32(edx + ecx + (-0x2C)) = 0x470AE570u; /* 0x470A0E06: mov dword ptr [edx + ecx - 0x2c], 0x470ae570 */
   2559     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E0E: mov eax, dword ptr [ecx - 0x2c] */
   2560     edx = MEM32(eax + 0x8); /* 0x470A0E11: mov edx, dword ptr [eax + 8] */
   2561     MEM32(edx + ecx + (-0x2C)) = 0x470AE564u; /* 0x470A0E14: mov dword ptr [edx + ecx - 0x2c], 0x470ae564 */
   2562     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E1C: mov eax, dword ptr [ecx - 0x2c] */
   2563     eax = MEM32(eax + 0x4); /* 0x470A0E1F: mov eax, dword ptr [eax + 4] */
   2564     edx = eax + (-0x2C); /* 0x470A0E22: lea edx, [eax - 0x2c] */
   2565     MEM32(eax + ecx + (-0x30)) = edx; /* 0x470A0E25: mov dword ptr [eax + ecx - 0x30], edx */
   2566     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E29: mov eax, dword ptr [ecx - 0x2c] */
   2567     eax = MEM32(eax + 0x8); /* 0x470A0E2C: mov eax, dword ptr [eax + 8] */
   2568     edx = eax + (-0x34); /* 0x470A0E2F: lea edx, [eax - 0x34] */
   2569     MEM32(eax + ecx + (-0x30)) = edx; /* 0x470A0E32: mov dword ptr [eax + ecx - 0x30], edx */
   2570     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E36: mov eax, dword ptr [ecx - 0x2c] */
   2571     edx = MEM32(eax + 0x4); /* 0x470A0E39: mov edx, dword ptr [eax + 4] */
   2572     MEM32(edx + ecx + (-0x2C)) = 0x470AE448u; /* 0x470A0E3C: mov dword ptr [edx + ecx - 0x2c], 0x470ae448 */
   2573     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E44: mov eax, dword ptr [ecx - 0x2c] */
   2574     edx = MEM32(eax + 0x8); /* 0x470A0E47: mov edx, dword ptr [eax + 8] */
   2575     MEM32(edx + ecx + (-0x2C)) = 0x470AE43Cu; /* 0x470A0E4A: mov dword ptr [edx + ecx - 0x2c], 0x470ae43c */
   2576     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E52: mov eax, dword ptr [ecx - 0x2c] */
   2577     eax = MEM32(eax + 0x4); /* 0x470A0E55: mov eax, dword ptr [eax + 4] */
   2578     edx = eax + (-0x2C); /* 0x470A0E58: lea edx, [eax - 0x2c] */
   2579     MEM32(eax + ecx + (-0x30)) = edx; /* 0x470A0E5B: mov dword ptr [eax + ecx - 0x30], edx */
   2580     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E5F: mov eax, dword ptr [ecx - 0x2c] */
   2581     eax = MEM32(eax + 0x8); /* 0x470A0E62: mov eax, dword ptr [eax + 8] */
   2582     edx = eax + (-0x34); /* 0x470A0E65: lea edx, [eax - 0x34] */
   2583     MEM32(eax + ecx + (-0x30)) = edx; /* 0x470A0E68: mov dword ptr [eax + ecx - 0x30], edx */
   2584     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E6C: mov eax, dword ptr [ecx - 0x2c] */
   2585     edx = MEM32(eax + 0x4); /* 0x470A0E6F: mov edx, dword ptr [eax + 4] */
   2586     MEM32(edx + ecx + (-0x2C)) = 0x470AE360u; /* 0x470A0E72: mov dword ptr [edx + ecx - 0x2c], 0x470ae360 */
   2587     eax = MEM32(ecx + (-0x2C)); /* 0x470A0E7A: mov eax, dword ptr [ecx - 0x2c] */
   2588     eax = MEM32(eax + 0x4); /* 0x470A0E7D: mov eax, dword ptr [eax + 4] */
   2589     edx = eax + (-0x20); /* 0x470A0E80: lea edx, [eax - 0x20] */
   2590     MEM32(eax + ecx + (-0x30)) = edx; /* 0x470A0E83: mov dword ptr [eax + ecx - 0x30], edx */
   2591     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0E87: ret  */
   2592     RECOMP_REGS_OUT();
   2593 }
   2594 
   2595 void sub_470A0E90(void) {
   2596     int _fpu_cmp = 0;
   2597     uint32_t _cf = 0;
   2598     int _df = 1;
   2599     uint32_t _flag_k = FK_NONE;
   2600     uint32_t _flag_a = 0, _flag_b = 0;
   2601     uint32_t _itail_tgt = 0;
   2602     RECOMP_REGS_LOCALS
   2603     RECOMP_ENTER(0x470A0E90u);
   2604 
   2605 L_470A0E90:
   2606     eax = MEM32(ecx + (-0x20)); /* 0x470A0E90: mov eax, dword ptr [ecx - 0x20] */
   2607     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0E93: ret  */
   2608     RECOMP_REGS_OUT();
   2609 }
   2610 
   2611 void sub_470A0EA0(void) {
   2612     int _fpu_cmp = 0;
   2613     uint32_t _cf = 0;
   2614     int _df = 1;
   2615     uint32_t _flag_k = FK_NONE;
   2616     uint32_t _flag_a = 0, _flag_b = 0;
   2617     uint32_t _itail_tgt = 0;
   2618     RECOMP_REGS_LOCALS
   2619     RECOMP_ENTER(0x470A0EA0u);
   2620 
   2621 L_470A0EA0:
   2622     eax = MEM32(ecx + (-0x24)); /* 0x470A0EA0: mov eax, dword ptr [ecx - 0x24] */
   2623     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EA3: ret  */
   2624     RECOMP_REGS_OUT();
   2625 }
   2626 
   2627 void sub_470A0EB0(void) {
   2628     int _fpu_cmp = 0;
   2629     uint32_t _cf = 0;
   2630     int _df = 1;
   2631     uint32_t _flag_k = FK_NONE;
   2632     uint32_t _flag_a = 0, _flag_b = 0;
   2633     uint32_t _itail_tgt = 0;
   2634     RECOMP_REGS_LOCALS
   2635     RECOMP_ENTER(0x470A0EB0u);
   2636 
   2637 L_470A0EB0:
   2638     eax = MEM32(ecx + (-0x1C)); /* 0x470A0EB0: mov eax, dword ptr [ecx - 0x1c] */
   2639     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EB3: ret  */
   2640     RECOMP_REGS_OUT();
   2641 }
   2642 
   2643 void sub_470A0EC0(void) {
   2644     int _fpu_cmp = 0;
   2645     uint32_t _cf = 0;
   2646     int _df = 1;
   2647     uint32_t _flag_k = FK_NONE;
   2648     uint32_t _flag_a = 0, _flag_b = 0;
   2649     uint32_t _itail_tgt = 0;
   2650     RECOMP_REGS_LOCALS
   2651     RECOMP_ENTER(0x470A0EC0u);
   2652 
   2653 L_470A0EC0:
   2654     eax = MEM32(esp + 0x4); /* 0x470A0EC0: mov eax, dword ptr [esp + 4] */
   2655     /* test eax, eax */ /* 0x470A0EC4: test eax, eax */
   2656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2657     _cf = 0;
   2658     _flag_k = FK_TEST;
   2659     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A0F2B; /* 0x470A0EC6: jne 0x470a0f2b */
   2660 L_470A0EC8:
   2661     PUSH32(esp, esi); /* 0x470A0EC8: push esi */
   2662     PUSH32(esp, edi); /* 0x470A0EC9: push edi */
   2663     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A0ECA: call dword ptr [0x470ac150] */
   2664     RECOMP_FLAGS_IN();
   2665     edi = eax; /* 0x470A0ED0: mov edi, eax */
   2666     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A0ED2: call dword ptr [0x470ac3c8] */
   2667     RECOMP_FLAGS_IN();
   2668     eax = MEM32(eax); /* 0x470A0ED8: mov eax, dword ptr [eax] */
   2669     /* test eax, eax */ /* 0x470A0EDA: test eax, eax */
   2670     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2671     _cf = 0;
   2672     _flag_k = FK_TEST;
   2673     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0EE0; /* 0x470A0EDC: je 0x470a0ee0 */
   2674 L_470A0EDE:
   2675     edi = eax; /* 0x470A0EDE: mov edi, eax */
   2676 L_470A0EE0:
   2677     RECOMP_ICALL(0x47039020u); /* 0x470A0EE0: call 0x47039020 */ /* not lifted */
   2678     RECOMP_FLAGS_IN();
   2679     esi = eax; /* 0x470A0EE5: mov esi, eax */
   2680     ecx = esi; /* 0x470A0EE7: mov ecx, esi */
   2681     RECOMP_ICALL(0x4703B210u); /* 0x470A0EE9: call 0x4703b210 */ /* not lifted */
   2682     RECOMP_FLAGS_IN();
   2683     PUSH32(esp, eax); /* 0x470A0EEE: push eax */
   2684     ecx = esi; /* 0x470A0EEF: mov ecx, esi */
   2685     RECOMP_ICALL(0x4703B240u); /* 0x470A0EF1: call 0x4703b240 */ /* not lifted */
   2686     RECOMP_FLAGS_IN();
   2687     PUSH32(esp, eax); /* 0x470A0EF6: push eax */
   2688     ecx = esi; /* 0x470A0EF7: mov ecx, esi */
   2689     RECOMP_ICALL(0x4703B080u); /* 0x470A0EF9: call 0x4703b080 */ /* not lifted */
   2690     RECOMP_FLAGS_IN();
   2691     PUSH32(esp, eax); /* 0x470A0EFE: push eax */
   2692     PUSH32(esp, edi); /* 0x470A0EFF: push edi */
   2693     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A0F00: push -1 */
   2694     PUSH32(esp, 0x5Bu); /* 0x470A0F02: push 0x5b */
   2695     PUSH32(esp, 0x4710DB30u); /* 0x470A0F04: push 0x4710db30 */
   2696     ecx = esi; /* 0x470A0F09: mov ecx, esi */
   2697     RECOMP_ICALL(0x4703A340u); /* 0x470A0F0B: call 0x4703a340 */ /* not lifted */
   2698     RECOMP_FLAGS_IN();
   2699     PUSH32(esp, 0x4710DB08u); /* 0x470A0F10: push 0x4710db08 */
   2700     PUSH32(esp, 0x80u); /* 0x470A0F15: push 0x80 */
   2701     PUSH32(esp, esi); /* 0x470A0F1A: push esi */
   2702     RECOMP_ICALL(0x47039830u); /* 0x470A0F1B: call 0x47039830 */ /* not lifted */
   2703     RECOMP_FLAGS_IN();
   2704     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2705     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2706     esp = esp + 0xCu; /* 0x470A0F20: add esp, 0xc */
   2707     _flag_k = FK_ADD;
   2708     edi = POP32_VAL(esp); /* 0x470A0F23: pop edi */
   2709     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2710     eax = eax | 0xFFFFFFFFu; /* 0x470A0F24: or eax, 0xffffffff */
   2711     _cf = 0;
   2712     _flag_k = FK_TEST;
   2713     esi = POP32_VAL(esp); /* 0x470A0F27: pop esi */
   2714     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A0F28: ret 4 */
   2715 L_470A0F2B:
   2716     edx = MEM32(eax); /* 0x470A0F2B: mov edx, dword ptr [eax] */
   2717     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC0u);
   2718     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2719     ecx = ecx + 0xFFFFFFC0u; /* 0x470A0F2D: add ecx, -0x40 */
   2720     _flag_k = FK_ADD;
   2721     PUSH32(esp, ecx); /* 0x470A0F30: push ecx */
   2722     ecx = eax; /* 0x470A0F31: mov ecx, eax */
   2723     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x470A0F33: call dword ptr [edx + 0x9c] */
   2724     RECOMP_FLAGS_IN();
   2725     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A0F39: ret 4 */
   2726     RECOMP_REGS_OUT();
   2727 }
   2728 
   2729 void sub_470A0F40(void) {
   2730     int _fpu_cmp = 0;
   2731     uint32_t _cf = 0;
   2732     int _df = 1;
   2733     uint32_t _flag_k = FK_NONE;
   2734     uint32_t _flag_a = 0, _flag_b = 0;
   2735     uint32_t _itail_tgt = 0;
   2736     RECOMP_REGS_LOCALS
   2737     RECOMP_ENTER(0x470A0F40u);
   2738 
   2739 L_470A0F40:
   2740     PUSH32(esp, ecx); /* 0x470A0F40: push ecx */
   2741     eax = MEM32(esp + 0xC); /* 0x470A0F41: mov eax, dword ptr [esp + 0xc] */
   2742     /* test eax, eax */ /* 0x470A0F45: test eax, eax */
   2743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2744     _cf = 0;
   2745     _flag_k = FK_TEST;
   2746     PUSH32(esp, esi); /* 0x470A0F47: push esi */
   2747     esi = ecx; /* 0x470A0F48: mov esi, ecx */
   2748     MEM32(esp + 0x4) = 0; /* 0x470A0F4A: mov dword ptr [esp + 4], 0 */
   2749     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0FA7; /* 0x470A0F52: je 0x470a0fa7 */
   2750 L_470A0F54:
   2751     MEM32(esi) = 0x470AE5F4u; /* 0x470A0F54: mov dword ptr [esi], 0x470ae5f4 */
   2752     MEM32(esi + 0x24) = 0x470AE5ECu; /* 0x470A0F5A: mov dword ptr [esi + 0x24], 0x470ae5ec */
   2753     MEM32(esi + 0x30) = 0x470AE5E0u; /* 0x470A0F61: mov dword ptr [esi + 0x30], 0x470ae5e0 */
   2754     MEM32(esi + 0x18) = 0x470ACC4Cu; /* 0x470A0F68: mov dword ptr [esi + 0x18], 0x470acc4c */
   2755     eax = MEM32(esi + 0x24); /* 0x470A0F6F: mov eax, dword ptr [esi + 0x24] */
   2756     MEM32(esi + 0x20) = 0x470ACCD0u; /* 0x470A0F72: mov dword ptr [esi + 0x20], 0x470accd0 */
   2757     ecx = MEM32(eax + 0x4); /* 0x470A0F79: mov ecx, dword ptr [eax + 4] */
   2758     MEM32(ecx + esi + 0x24) = 0x470ACCC0u; /* 0x470A0F7C: mov dword ptr [ecx + esi + 0x24], 0x470accc0 */
   2759     edx = MEM32(esi + 0x30); /* 0x470A0F84: mov edx, dword ptr [esi + 0x30] */
   2760     MEM32(esi + 0x2C) = 0x470ACDB8u; /* 0x470A0F87: mov dword ptr [esi + 0x2c], 0x470acdb8 */
   2761     eax = MEM32(edx + 0x4); /* 0x470A0F8E: mov eax, dword ptr [edx + 4] */
   2762     MEM32(eax + esi + 0x30) = 0x470ACDA8u; /* 0x470A0F91: mov dword ptr [eax + esi + 0x30], 0x470acda8 */
   2763     ecx = MEM32(esi + 0x30); /* 0x470A0F99: mov ecx, dword ptr [esi + 0x30] */
   2764     edx = MEM32(ecx + 0x8); /* 0x470A0F9C: mov edx, dword ptr [ecx + 8] */
   2765     MEM32(edx + esi + 0x30) = 0x470ACDA4u; /* 0x470A0F9F: mov dword ptr [edx + esi + 0x30], 0x470acda4 */
   2766 L_470A0FA7:
   2767     eax = MEM32(esp + 0xC); /* 0x470A0FA7: mov eax, dword ptr [esp + 0xc] */
   2768     PUSH32(esp, 0); /* 0x470A0FAB: push 0 */
   2769     PUSH32(esp, eax); /* 0x470A0FAD: push eax */
   2770     ecx = esi; /* 0x470A0FAE: mov ecx, esi */
   2771     RECOMP_ICALL(0x470A04C0u); /* 0x470A0FB0: call 0x470a04c0 */ /* not lifted */
   2772     RECOMP_FLAGS_IN();
   2773     ecx = MEM32(esi); /* 0x470A0FB5: mov ecx, dword ptr [esi] */
   2774     edx = MEM32(ecx + 0x4); /* 0x470A0FB7: mov edx, dword ptr [ecx + 4] */
   2775     MEM32(edx + esi) = 0x470AE5D0u; /* 0x470A0FBA: mov dword ptr [edx + esi], 0x470ae5d0 */
   2776     eax = MEM32(esi); /* 0x470A0FC1: mov eax, dword ptr [esi] */
   2777     ecx = MEM32(eax + 0x8); /* 0x470A0FC3: mov ecx, dword ptr [eax + 8] */
   2778     MEM32(ecx + esi) = 0x470AE5CCu; /* 0x470A0FC6: mov dword ptr [ecx + esi], 0x470ae5cc */
   2779     edx = MEM32(esi); /* 0x470A0FCD: mov edx, dword ptr [esi] */
   2780     eax = MEM32(edx + 0xC); /* 0x470A0FCF: mov eax, dword ptr [edx + 0xc] */
   2781     MEM32(eax + esi) = 0x470AE5C8u; /* 0x470A0FD2: mov dword ptr [eax + esi], 0x470ae5c8 */
   2782     ecx = MEM32(esi); /* 0x470A0FD9: mov ecx, dword ptr [esi] */
   2783     eax = MEM32(ecx + 0x4); /* 0x470A0FDB: mov eax, dword ptr [ecx + 4] */
   2784     edx = eax + (-0x18); /* 0x470A0FDE: lea edx, [eax - 0x18] */
   2785     MEM32(eax + esi + (-0x4)) = edx; /* 0x470A0FE1: mov dword ptr [eax + esi - 4], edx */
   2786     eax = MEM32(esi); /* 0x470A0FE5: mov eax, dword ptr [esi] */
   2787     eax = MEM32(eax + 0x8); /* 0x470A0FE7: mov eax, dword ptr [eax + 8] */
   2788     ecx = eax + (-0x20); /* 0x470A0FEA: lea ecx, [eax - 0x20] */
   2789     MEM32(eax + esi + (-0x4)) = ecx; /* 0x470A0FED: mov dword ptr [eax + esi - 4], ecx */
   2790     edx = MEM32(esi); /* 0x470A0FF1: mov edx, dword ptr [esi] */
   2791     eax = MEM32(edx + 0xC); /* 0x470A0FF3: mov eax, dword ptr [edx + 0xc] */
   2792     ecx = eax + (-0x2C); /* 0x470A0FF6: lea ecx, [eax - 0x2c] */
   2793     MEM32(eax + esi + (-0x4)) = ecx; /* 0x470A0FF9: mov dword ptr [eax + esi - 4], ecx */
   2794     eax = esi; /* 0x470A0FFD: mov eax, esi */
   2795     esi = POP32_VAL(esp); /* 0x470A0FFF: pop esi */
   2796     ecx = POP32_VAL(esp); /* 0x470A1000: pop ecx */
   2797     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A1001: ret 8 */
   2798     RECOMP_REGS_OUT();
   2799 }
   2800 
   2801 void sub_470A1010(void) {
   2802     int _fpu_cmp = 0;
   2803     uint32_t _cf = 0;
   2804     int _df = 1;
   2805     uint32_t _flag_k = FK_NONE;
   2806     uint32_t _flag_a = 0, _flag_b = 0;
   2807     uint32_t _itail_tgt = 0;
   2808     RECOMP_REGS_LOCALS
   2809     RECOMP_ENTER(0x470A1010u);
   2810 
   2811 L_470A1010:
   2812     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A1010: push -1 */
   2813     PUSH32(esp, 0x470ABC4Bu); /* 0x470A1012: push 0x470abc4b */
   2814     eax = MEM32(FS_BASE + (0)); /* 0x470A1017: mov eax, dword ptr fs:[0] */
   2815     PUSH32(esp, eax); /* 0x470A101D: push eax */
   2816     MEM32(FS_BASE + (0)) = esp; /* 0x470A101E: mov dword ptr fs:[0], esp */
   2817     PUSH32(esp, ecx); /* 0x470A1025: push ecx */
   2818     PUSH32(esp, esi); /* 0x470A1026: push esi */
   2819     PUSH32(esp, edi); /* 0x470A1027: push edi */
   2820     PUSH32(esp, 0x54u); /* 0x470A1028: push 0x54 */
   2821     esi = ecx; /* 0x470A102A: mov esi, ecx */
   2822     RECOMP_ICALL(0x470A33F2u); /* 0x470A102C: call 0x470a33f2 */ /* not lifted */
   2823     RECOMP_FLAGS_IN();
   2824     edi = eax; /* 0x470A1031: mov edi, eax */
   2825     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2826     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2827     esp = esp + 4; /* 0x470A1033: add esp, 4 */
   2828     _flag_k = FK_ADD;
   2829     MEM32(esp + 0x8) = edi; /* 0x470A1036: mov dword ptr [esp + 8], edi */
   2830     /* test edi, edi */ /* 0x470A103A: test edi, edi */
   2831     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2832     _cf = 0;
   2833     _flag_k = FK_TEST;
   2834     MEM32(esp + 0x14) = 0; /* 0x470A103C: mov dword ptr [esp + 0x14], 0 */
   2835     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1087; /* 0x470A1044: je 0x470a1087 */
   2836 L_470A1046:
   2837     eax = MEM32(esp + 0x34); /* 0x470A1046: mov eax, dword ptr [esp + 0x34] */
   2838     ecx = MEM32(esi + (-0x28)); /* 0x470A104A: mov ecx, dword ptr [esi - 0x28] */
   2839     edx = MEM32(esp + 0x30); /* 0x470A104D: mov edx, dword ptr [esp + 0x30] */
   2840     PUSH32(esp, 1); /* 0x470A1051: push 1 */
   2841     PUSH32(esp, eax); /* 0x470A1053: push eax */
   2842     eax = MEM32(ecx); /* 0x470A1054: mov eax, dword ptr [ecx] */
   2843     PUSH32(esp, edx); /* 0x470A1056: push edx */
   2844     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A1057: call dword ptr [eax + 4] */
   2845     RECOMP_FLAGS_IN();
   2846     ecx = MEM32(esp + 0x34); /* 0x470A105A: mov ecx, dword ptr [esp + 0x34] */
   2847     edx = MEM32(esp + 0x30); /* 0x470A105E: mov edx, dword ptr [esp + 0x30] */
   2848     PUSH32(esp, eax); /* 0x470A1062: push eax */
   2849     eax = MEM32(esp + 0x3C); /* 0x470A1063: mov eax, dword ptr [esp + 0x3c] */
   2850     PUSH32(esp, ecx); /* 0x470A1067: push ecx */
   2851     ecx = MEM32(esp + 0x34); /* 0x470A1068: mov ecx, dword ptr [esp + 0x34] */
   2852     PUSH32(esp, edx); /* 0x470A106C: push edx */
   2853     edx = MEM32(esp + 0x34); /* 0x470A106D: mov edx, dword ptr [esp + 0x34] */
   2854     PUSH32(esp, eax); /* 0x470A1071: push eax */
   2855     eax = MEM32(esi + (-0x1C)); /* 0x470A1072: mov eax, dword ptr [esi - 0x1c] */
   2856     PUSH32(esp, ecx); /* 0x470A1075: push ecx */
   2857     ecx = MEM32(esi + (-0x20)); /* 0x470A1076: mov ecx, dword ptr [esi - 0x20] */
   2858     PUSH32(esp, edx); /* 0x470A1079: push edx */
   2859     PUSH32(esp, eax); /* 0x470A107A: push eax */
   2860     PUSH32(esp, ecx); /* 0x470A107B: push ecx */
   2861     ecx = edi; /* 0x470A107C: mov ecx, edi */
   2862     RECOMP_ICALL(0x470A0C80u); /* 0x470A107E: call 0x470a0c80 */ /* not lifted */
   2863     RECOMP_FLAGS_IN();
   2864     edi = eax; /* 0x470A1083: mov edi, eax */
   2865     goto L_470A1089; /* 0x470A1085: jmp 0x470a1089 */
   2866 L_470A1087:
   2867     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2868     edi = 0; /* 0x470A1087: xor edi, edi */
   2869     _cf = 0;
   2870     _flag_k = FK_TEST;
   2871 L_470A1089:
   2872     /* test edi, edi */ /* 0x470A1089: test edi, edi */
   2873     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2874     _cf = 0;
   2875     _flag_k = FK_TEST;
   2876     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A108B: mov dword ptr [esp + 0x14], 0xffffffff */
   2877     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A10B7; /* 0x470A1093: jne 0x470a10b7 */
   2878 L_470A1095:
   2879     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1095: call dword ptr [0x470ac3c8] */
   2880     RECOMP_FLAGS_IN();
   2881     edi = POP32_VAL(esp); /* 0x470A109B: pop edi */
   2882     MEM32(eax) = 0xCu; /* 0x470A109C: mov dword ptr [eax], 0xc */
   2883     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2884     eax = eax | 0xFFFFFFFFu; /* 0x470A10A2: or eax, 0xffffffff */
   2885     _cf = 0;
   2886     _flag_k = FK_TEST;
   2887     esi = POP32_VAL(esp); /* 0x470A10A5: pop esi */
   2888     ecx = MEM32(esp + 0x4); /* 0x470A10A6: mov ecx, dword ptr [esp + 4] */
   2889     MEM32(FS_BASE + (0)) = ecx; /* 0x470A10AA: mov dword ptr fs:[0], ecx */
   2890     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2891     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2892     esp = esp + 0x10u; /* 0x470A10B1: add esp, 0x10 */
   2893     _flag_k = FK_ADD;
   2894     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A10B4: ret 0x1c */
   2895 L_470A10B7:
   2896     PUSH32(esp, edi); /* 0x470A10B7: push edi */
   2897     ecx = esi + (-0x2C); /* 0x470A10B8: lea ecx, [esi - 0x2c] */
   2898     RECOMP_ICALL(0x470A06A0u); /* 0x470A10BB: call 0x470a06a0 */ /* not lifted */
   2899     RECOMP_FLAGS_IN();
   2900     esi = eax; /* 0x470A10C0: mov esi, eax */
   2901     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A10C2: cmp esi, -1 */
   2902     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2904     _flag_k = FK_CMP;
   2905     if (CMP_NE(_flag_a, _flag_b)) goto L_470A10D9; /* 0x470A10C5: jne 0x470a10d9 */
   2906 L_470A10C7:
   2907     edx = MEM32(edi + 0x14); /* 0x470A10C7: mov edx, dword ptr [edi + 0x14] */
   2908     eax = MEM32(edx + 0x4); /* 0x470A10CA: mov eax, dword ptr [edx + 4] */
   2909     edx = MEM32(eax + edi + 0x14); /* 0x470A10CD: mov edx, dword ptr [eax + edi + 0x14] */
   2910     ecx = eax + edi + 0x14; /* 0x470A10D1: lea ecx, [eax + edi + 0x14] */
   2911     PUSH32(esp, 1); /* 0x470A10D5: push 1 */
   2912     RECOMP_ICALL(MEM32(edx)); /* 0x470A10D7: call dword ptr [edx] */
   2913     RECOMP_FLAGS_IN();
   2914 L_470A10D9:
   2915     ecx = MEM32(esp + 0xC); /* 0x470A10D9: mov ecx, dword ptr [esp + 0xc] */
   2916     edi = POP32_VAL(esp); /* 0x470A10DD: pop edi */
   2917     eax = esi; /* 0x470A10DE: mov eax, esi */
   2918     esi = POP32_VAL(esp); /* 0x470A10E0: pop esi */
   2919     MEM32(FS_BASE + (0)) = ecx; /* 0x470A10E1: mov dword ptr fs:[0], ecx */
   2920     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2921     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2922     esp = esp + 0x10u; /* 0x470A10E8: add esp, 0x10 */
   2923     _flag_k = FK_ADD;
   2924     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A10EB: ret 0x1c */
   2925     RECOMP_REGS_OUT();
   2926 }
   2927 
   2928 void sub_470A1089(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(0x470A1089u);
   2937 
   2938 L_470A1089:
   2939     /* test edi, edi */ /* 0x470A1089: test edi, edi */
   2940     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2941     _cf = 0;
   2942     _flag_k = FK_TEST;
   2943     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A108B: mov dword ptr [esp + 0x14], 0xffffffff */
   2944     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A10B7; /* 0x470A1093: jne 0x470a10b7 */
   2945 L_470A1095:
   2946     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1095: call dword ptr [0x470ac3c8] */
   2947     RECOMP_FLAGS_IN();
   2948     edi = POP32_VAL(esp); /* 0x470A109B: pop edi */
   2949     MEM32(eax) = 0xCu; /* 0x470A109C: mov dword ptr [eax], 0xc */
   2950     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2951     eax = eax | 0xFFFFFFFFu; /* 0x470A10A2: or eax, 0xffffffff */
   2952     _cf = 0;
   2953     _flag_k = FK_TEST;
   2954     esi = POP32_VAL(esp); /* 0x470A10A5: pop esi */
   2955     ecx = MEM32(esp + 0x4); /* 0x470A10A6: mov ecx, dword ptr [esp + 4] */
   2956     MEM32(FS_BASE + (0)) = ecx; /* 0x470A10AA: mov dword ptr fs:[0], ecx */
   2957     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2958     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2959     esp = esp + 0x10u; /* 0x470A10B1: add esp, 0x10 */
   2960     _flag_k = FK_ADD;
   2961     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A10B4: ret 0x1c */
   2962 L_470A10B7:
   2963     PUSH32(esp, edi); /* 0x470A10B7: push edi */
   2964     ecx = esi + (-0x2C); /* 0x470A10B8: lea ecx, [esi - 0x2c] */
   2965     RECOMP_ICALL(0x470A06A0u); /* 0x470A10BB: call 0x470a06a0 */ /* not lifted */
   2966     RECOMP_FLAGS_IN();
   2967     esi = eax; /* 0x470A10C0: mov esi, eax */
   2968     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A10C2: cmp esi, -1 */
   2969     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2971     _flag_k = FK_CMP;
   2972     if (CMP_NE(_flag_a, _flag_b)) goto L_470A10D9; /* 0x470A10C5: jne 0x470a10d9 */
   2973 L_470A10C7:
   2974     edx = MEM32(edi + 0x14); /* 0x470A10C7: mov edx, dword ptr [edi + 0x14] */
   2975     eax = MEM32(edx + 0x4); /* 0x470A10CA: mov eax, dword ptr [edx + 4] */
   2976     edx = MEM32(eax + edi + 0x14); /* 0x470A10CD: mov edx, dword ptr [eax + edi + 0x14] */
   2977     ecx = eax + edi + 0x14; /* 0x470A10D1: lea ecx, [eax + edi + 0x14] */
   2978     PUSH32(esp, 1); /* 0x470A10D5: push 1 */
   2979     RECOMP_ICALL(MEM32(edx)); /* 0x470A10D7: call dword ptr [edx] */
   2980     RECOMP_FLAGS_IN();
   2981 L_470A10D9:
   2982     ecx = MEM32(esp + 0xC); /* 0x470A10D9: mov ecx, dword ptr [esp + 0xc] */
   2983     edi = POP32_VAL(esp); /* 0x470A10DD: pop edi */
   2984     eax = esi; /* 0x470A10DE: mov eax, esi */
   2985     esi = POP32_VAL(esp); /* 0x470A10E0: pop esi */
   2986     MEM32(FS_BASE + (0)) = ecx; /* 0x470A10E1: 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; /* 0x470A10E8: add esp, 0x10 */
   2990     _flag_k = FK_ADD;
   2991     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A10EB: ret 0x1c */
   2992     RECOMP_REGS_OUT();
   2993 }
   2994 
   2995 void sub_470A10F0(void) {
   2996     int _fpu_cmp = 0;
   2997     uint32_t _cf = 0;
   2998     int _df = 1;
   2999     uint32_t _flag_k = FK_NONE;
   3000     uint32_t _flag_a = 0, _flag_b = 0;
   3001     uint32_t _itail_tgt = 0;
   3002     RECOMP_REGS_LOCALS
   3003     RECOMP_ENTER(0x470A10F0u);
   3004 
   3005 L_470A10F0:
   3006     eax = MEM32(ecx + (-0x18)); /* 0x470A10F0: mov eax, dword ptr [ecx - 0x18] */
   3007     edx = MEM32(eax + 0x4); /* 0x470A10F3: mov edx, dword ptr [eax + 4] */
   3008     MEM32(edx + ecx + (-0x18)) = 0x470AE5D0u; /* 0x470A10F6: mov dword ptr [edx + ecx - 0x18], 0x470ae5d0 */
   3009     eax = MEM32(ecx + (-0x18)); /* 0x470A10FE: mov eax, dword ptr [ecx - 0x18] */
   3010     edx = MEM32(eax + 0x8); /* 0x470A1101: mov edx, dword ptr [eax + 8] */
   3011     MEM32(edx + ecx + (-0x18)) = 0x470AE5CCu; /* 0x470A1104: mov dword ptr [edx + ecx - 0x18], 0x470ae5cc */
   3012     eax = MEM32(ecx + (-0x18)); /* 0x470A110C: mov eax, dword ptr [ecx - 0x18] */
   3013     edx = MEM32(eax + 0xC); /* 0x470A110F: mov edx, dword ptr [eax + 0xc] */
   3014     MEM32(edx + ecx + (-0x18)) = 0x470AE5C8u; /* 0x470A1112: mov dword ptr [edx + ecx - 0x18], 0x470ae5c8 */
   3015     eax = MEM32(ecx + (-0x18)); /* 0x470A111A: mov eax, dword ptr [ecx - 0x18] */
   3016     eax = MEM32(eax + 0x4); /* 0x470A111D: mov eax, dword ptr [eax + 4] */
   3017     edx = eax + (-0x18); /* 0x470A1120: lea edx, [eax - 0x18] */
   3018     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A1123: mov dword ptr [eax + ecx - 0x1c], edx */
   3019     eax = MEM32(ecx + (-0x18)); /* 0x470A1127: mov eax, dword ptr [ecx - 0x18] */
   3020     eax = MEM32(eax + 0x8); /* 0x470A112A: mov eax, dword ptr [eax + 8] */
   3021     edx = eax + (-0x20); /* 0x470A112D: lea edx, [eax - 0x20] */
   3022     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A1130: mov dword ptr [eax + ecx - 0x1c], edx */
   3023     eax = MEM32(ecx + (-0x18)); /* 0x470A1134: mov eax, dword ptr [ecx - 0x18] */
   3024     eax = MEM32(eax + 0xC); /* 0x470A1137: mov eax, dword ptr [eax + 0xc] */
   3025     edx = eax + (-0x2C); /* 0x470A113A: lea edx, [eax - 0x2c] */
   3026     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A113D: mov dword ptr [eax + ecx - 0x1c], edx */
   3027     eax = MEM32(ecx + (-0x18)); /* 0x470A1141: mov eax, dword ptr [ecx - 0x18] */
   3028     edx = MEM32(eax + 0x4); /* 0x470A1144: mov edx, dword ptr [eax + 4] */
   3029     MEM32(edx + ecx + (-0x18)) = 0x470AE494u; /* 0x470A1147: mov dword ptr [edx + ecx - 0x18], 0x470ae494 */
   3030     eax = MEM32(ecx + (-0x18)); /* 0x470A114F: mov eax, dword ptr [ecx - 0x18] */
   3031     edx = MEM32(eax + 0x8); /* 0x470A1152: mov edx, dword ptr [eax + 8] */
   3032     MEM32(edx + ecx + (-0x18)) = 0x470AE490u; /* 0x470A1155: mov dword ptr [edx + ecx - 0x18], 0x470ae490 */
   3033     eax = MEM32(ecx + (-0x18)); /* 0x470A115D: mov eax, dword ptr [ecx - 0x18] */
   3034     eax = MEM32(eax + 0x4); /* 0x470A1160: mov eax, dword ptr [eax + 4] */
   3035     edx = eax + (-0x18); /* 0x470A1163: lea edx, [eax - 0x18] */
   3036     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A1166: mov dword ptr [eax + ecx - 0x1c], edx */
   3037     eax = MEM32(ecx + (-0x18)); /* 0x470A116A: mov eax, dword ptr [ecx - 0x18] */
   3038     eax = MEM32(eax + 0x8); /* 0x470A116D: mov eax, dword ptr [eax + 8] */
   3039     edx = eax + (-0x20); /* 0x470A1170: lea edx, [eax - 0x20] */
   3040     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A1173: mov dword ptr [eax + ecx - 0x1c], edx */
   3041     eax = MEM32(ecx + (-0x18)); /* 0x470A1177: mov eax, dword ptr [ecx - 0x18] */
   3042     edx = MEM32(eax + 0x4); /* 0x470A117A: mov edx, dword ptr [eax + 4] */
   3043     MEM32(edx + ecx + (-0x18)) = 0x470AE39Cu; /* 0x470A117D: mov dword ptr [edx + ecx - 0x18], 0x470ae39c */
   3044     eax = MEM32(ecx + (-0x18)); /* 0x470A1185: mov eax, dword ptr [ecx - 0x18] */
   3045     eax = MEM32(eax + 0x4); /* 0x470A1188: mov eax, dword ptr [eax + 4] */
   3046     edx = eax + (-0x18); /* 0x470A118B: lea edx, [eax - 0x18] */
   3047     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A118E: mov dword ptr [eax + ecx - 0x1c], edx */
   3048     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1192: ret  */
   3049     RECOMP_REGS_OUT();
   3050 }
   3051 
   3052 void sub_470A11A0(void) {
   3053     int _fpu_cmp = 0;
   3054     uint32_t _cf = 0;
   3055     int _df = 1;
   3056     uint32_t _flag_k = FK_NONE;
   3057     uint32_t _flag_a = 0, _flag_b = 0;
   3058     uint32_t _itail_tgt = 0;
   3059     RECOMP_REGS_LOCALS
   3060     RECOMP_ENTER(0x470A11A0u);
   3061 
   3062 L_470A11A0:
   3063     eax = MEM32(esp + 0x14); /* 0x470A11A0: mov eax, dword ptr [esp + 0x14] */
   3064     edx = MEM32(esp + 0x10); /* 0x470A11A4: mov edx, dword ptr [esp + 0x10] */
   3065     PUSH32(esp, eax); /* 0x470A11A8: push eax */
   3066     eax = MEM32(esp + 0x10); /* 0x470A11A9: mov eax, dword ptr [esp + 0x10] */
   3067     PUSH32(esp, edx); /* 0x470A11AD: push edx */
   3068     edx = MEM32(esp + 0x10); /* 0x470A11AE: mov edx, dword ptr [esp + 0x10] */
   3069     PUSH32(esp, eax); /* 0x470A11B2: push eax */
   3070     eax = MEM32(esp + 0x10); /* 0x470A11B3: mov eax, dword ptr [esp + 0x10] */
   3071     PUSH32(esp, edx); /* 0x470A11B7: push edx */
   3072     PUSH32(esp, eax); /* 0x470A11B8: push eax */
   3073     RECOMP_ICALL(0x470A0560u); /* 0x470A11B9: call 0x470a0560 */ /* not lifted */
   3074     RECOMP_FLAGS_IN();
   3075     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A11BE: ret 0x14 */
   3076     RECOMP_REGS_OUT();
   3077 }
   3078 
   3079 void sub_470A11D0(void) {
   3080     int _fpu_cmp = 0;
   3081     uint32_t _cf = 0;
   3082     int _df = 1;
   3083     uint32_t _flag_k = FK_NONE;
   3084     uint32_t _flag_a = 0, _flag_b = 0;
   3085     uint32_t _itail_tgt = 0;
   3086     RECOMP_REGS_LOCALS
   3087     RECOMP_ENTER(0x470A11D0u);
   3088 
   3089 L_470A11D0:
   3090     PUSH32(esp, ecx); /* 0x470A11D0: push ecx */
   3091     eax = MEM32(esp + 0x2C); /* 0x470A11D1: mov eax, dword ptr [esp + 0x2c] */
   3092     /* test eax, eax */ /* 0x470A11D5: test eax, eax */
   3093     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3094     _cf = 0;
   3095     _flag_k = FK_TEST;
   3096     PUSH32(esp, esi); /* 0x470A11D7: push esi */
   3097     esi = ecx; /* 0x470A11D8: mov esi, ecx */
   3098     MEM32(esp + 0x4) = 0; /* 0x470A11DA: mov dword ptr [esp + 4], 0 */
   3099     if (TEST_Z(_flag_a, _flag_b)) goto L_470A120E; /* 0x470A11E2: je 0x470a120e */
   3100 L_470A11E4:
   3101     MEM32(esi + 0x14) = 0x470AE650u; /* 0x470A11E4: mov dword ptr [esi + 0x14], 0x470ae650 */
   3102     MEM32(esi + 0x50) = 0x470AE648u; /* 0x470A11EB: mov dword ptr [esi + 0x50], 0x470ae648 */
   3103     MEM32(esi + 0x44) = 0x470ACC18u; /* 0x470A11F2: mov dword ptr [esi + 0x44], 0x470acc18 */
   3104     eax = MEM32(esi + 0x50); /* 0x470A11F9: mov eax, dword ptr [esi + 0x50] */
   3105     MEM32(esi + 0x4C) = 0x470ACE74u; /* 0x470A11FC: mov dword ptr [esi + 0x4c], 0x470ace74 */
   3106     ecx = MEM32(eax + 0x4); /* 0x470A1203: mov ecx, dword ptr [eax + 4] */
   3107     MEM32(ecx + esi + 0x50) = 0x470ACE40u; /* 0x470A1206: mov dword ptr [ecx + esi + 0x50], 0x470ace40 */
   3108 L_470A120E:
   3109     edx = MEM32(esp + 0x2C); /* 0x470A120E: mov edx, dword ptr [esp + 0x2c] */
   3110     eax = MEM32(esp + 0x28); /* 0x470A1212: mov eax, dword ptr [esp + 0x28] */
   3111     ecx = MEM32(esp + 0x24); /* 0x470A1216: mov ecx, dword ptr [esp + 0x24] */
   3112     PUSH32(esp, 0); /* 0x470A121A: push 0 */
   3113     PUSH32(esp, edx); /* 0x470A121C: push edx */
   3114     edx = MEM32(esp + 0x28); /* 0x470A121D: mov edx, dword ptr [esp + 0x28] */
   3115     PUSH32(esp, eax); /* 0x470A1221: push eax */
   3116     eax = MEM32(esp + 0x18); /* 0x470A1222: mov eax, dword ptr [esp + 0x18] */
   3117     PUSH32(esp, 0); /* 0x470A1226: push 0 */
   3118     PUSH32(esp, 0); /* 0x470A1228: push 0 */
   3119     PUSH32(esp, ecx); /* 0x470A122A: push ecx */
   3120     PUSH32(esp, edx); /* 0x470A122B: push edx */
   3121     PUSH32(esp, eax); /* 0x470A122C: push eax */
   3122     ecx = esi; /* 0x470A122D: mov ecx, esi */
   3123     RECOMP_ICALL(0x4709FC20u); /* 0x470A122F: call 0x4709fc20 */ /* not lifted */
   3124     RECOMP_FLAGS_IN();
   3125     ecx = MEM32(esp + 0x1C); /* 0x470A1234: mov ecx, dword ptr [esp + 0x1c] */
   3126     edx = MEM32(esp + 0x18); /* 0x470A1238: mov edx, dword ptr [esp + 0x18] */
   3127     eax = MEM32(esp + 0x10); /* 0x470A123C: mov eax, dword ptr [esp + 0x10] */
   3128     MEM32(esi + 0x30) = ecx; /* 0x470A1240: mov dword ptr [esi + 0x30], ecx */
   3129     ecx = MEM32(esp + 0x14); /* 0x470A1243: mov ecx, dword ptr [esp + 0x14] */
   3130     MEM32(esi + 0x34) = edx; /* 0x470A1247: mov dword ptr [esi + 0x34], edx */
   3131     edx = MEM32(esi + 0x14); /* 0x470A124A: mov edx, dword ptr [esi + 0x14] */
   3132     MEM32(esi + 0x3C) = ecx; /* 0x470A124D: mov dword ptr [esi + 0x3c], ecx */
   3133     MEM32(esi + 0x38) = eax; /* 0x470A1250: mov dword ptr [esi + 0x38], eax */
   3134     eax = MEM32(edx + 0x4); /* 0x470A1253: mov eax, dword ptr [edx + 4] */
   3135     MEM32(eax + esi + 0x14) = 0x470AE614u; /* 0x470A1256: mov dword ptr [eax + esi + 0x14], 0x470ae614 */
   3136     ecx = MEM32(esi + 0x14); /* 0x470A125E: mov ecx, dword ptr [esi + 0x14] */
   3137     edx = MEM32(ecx + 0x8); /* 0x470A1261: mov edx, dword ptr [ecx + 8] */
   3138     MEM32(edx + esi + 0x14) = 0x470AE604u; /* 0x470A1264: mov dword ptr [edx + esi + 0x14], 0x470ae604 */
   3139     eax = MEM32(esi + 0x14); /* 0x470A126C: mov eax, dword ptr [esi + 0x14] */
   3140     eax = MEM32(eax + 0x4); /* 0x470A126F: mov eax, dword ptr [eax + 4] */
   3141     ecx = eax + (-0x30); /* 0x470A1272: lea ecx, [eax - 0x30] */
   3142     MEM32(eax + esi + 0x10) = ecx; /* 0x470A1275: mov dword ptr [eax + esi + 0x10], ecx */
   3143     edx = MEM32(esi + 0x14); /* 0x470A1279: mov edx, dword ptr [esi + 0x14] */
   3144     eax = MEM32(edx + 0x8); /* 0x470A127C: mov eax, dword ptr [edx + 8] */
   3145     ecx = eax + (-0x38); /* 0x470A127F: lea ecx, [eax - 0x38] */
   3146     MEM32(eax + esi + 0x10) = ecx; /* 0x470A1282: mov dword ptr [eax + esi + 0x10], ecx */
   3147     eax = esi; /* 0x470A1286: mov eax, esi */
   3148     esi = POP32_VAL(esp); /* 0x470A1288: pop esi */
   3149     ecx = POP32_VAL(esp); /* 0x470A1289: pop ecx */
   3150     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470A128A: ret 0x28 */
   3151     RECOMP_REGS_OUT();
   3152 }
   3153 
   3154 void sub_470A1290(void) {
   3155     int _fpu_cmp = 0;
   3156     uint32_t _cf = 0;
   3157     int _df = 1;
   3158     uint32_t _flag_k = FK_NONE;
   3159     uint32_t _flag_a = 0, _flag_b = 0;
   3160     uint32_t _itail_tgt = 0;
   3161     RECOMP_REGS_LOCALS
   3162     RECOMP_ENTER(0x470A1290u);
   3163 
   3164 L_470A1290:
   3165     eax = MEM32(FS_BASE + (0)); /* 0x470A1290: mov eax, dword ptr fs:[0] */
   3166     edx = MEM32(esp + 0xC); /* 0x470A1296: mov edx, dword ptr [esp + 0xc] */
   3167     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A129A: push -1 */
   3168     PUSH32(esp, 0x470ABC68u); /* 0x470A129C: push 0x470abc68 */
   3169     PUSH32(esp, eax); /* 0x470A12A1: push eax */
   3170     eax = MEM32(esp + 0x14); /* 0x470A12A2: mov eax, dword ptr [esp + 0x14] */
   3171     MEM32(FS_BASE + (0)) = esp; /* 0x470A12A6: mov dword ptr fs:[0], esp */
   3172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3174     esp = esp - 0xCu; /* 0x470A12AD: sub esp, 0xc */
   3175     _flag_k = FK_CMP;
   3176     PUSH32(esp, esi); /* 0x470A12B0: push esi */
   3177     esi = ecx; /* 0x470A12B1: mov esi, ecx */
   3178     ecx = MEM32(esp + 0x20); /* 0x470A12B3: mov ecx, dword ptr [esp + 0x20] */
   3179     MEM32(esi + (-0x24)) = ecx; /* 0x470A12B7: mov dword ptr [esi - 0x24], ecx */
   3180     MEM32(esi + (-0x20)) = eax; /* 0x470A12BA: mov dword ptr [esi - 0x20], eax */
   3181     eax = MEM32(esp + 0x2C); /* 0x470A12BD: mov eax, dword ptr [esp + 0x2c] */
   3182     MEM32(esi + (-0x1C)) = edx; /* 0x470A12C1: mov dword ptr [esi - 0x1c], edx */
   3183     MEM32(esi + (-0x18)) = eax; /* 0x470A12C4: mov dword ptr [esi - 0x18], eax */
   3184     eax = MEM32(esi + (-0x10)); /* 0x470A12C7: mov eax, dword ptr [esi - 0x10] */
   3185     edx = MEM32(eax + 0x8); /* 0x470A12CA: mov edx, dword ptr [eax + 8] */
   3186     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3187     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3188     edx = edx + ecx; /* 0x470A12CD: add edx, ecx */
   3189     _flag_k = FK_ADD;
   3190     ecx = esi + (-0x44); /* 0x470A12CF: lea ecx, [esi - 0x44] */
   3191     /* test ecx, ecx */ /* 0x470A12D2: test ecx, ecx */
   3192     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3193     _cf = 0;
   3194     _flag_k = FK_TEST;
   3195     MEM32(eax + 0x8) = edx; /* 0x470A12D4: mov dword ptr [eax + 8], edx */
   3196     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A12DD; /* 0x470A12D7: jne 0x470a12dd */
   3197 L_470A12D9:
   3198     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3199     eax = 0; /* 0x470A12D9: xor eax, eax */
   3200     _cf = 0;
   3201     _flag_k = FK_TEST;
   3202     goto L_470A12E7; /* 0x470A12DB: jmp 0x470a12e7 */
   3203 L_470A12DD:
   3204     edx = MEM32(esi + (-0x30)); /* 0x470A12DD: mov edx, dword ptr [esi - 0x30] */
   3205     eax = MEM32(edx + 0x8); /* 0x470A12E0: mov eax, dword ptr [edx + 8] */
   3206     eax = eax + esi + (-0x30); /* 0x470A12E3: lea eax, [eax + esi - 0x30] */
   3207 L_470A12E7:
   3208     PUSH32(esp, eax); /* 0x470A12E7: push eax */
   3209     ecx = esp + 0x8; /* 0x470A12E8: lea ecx, [esp + 8] */
   3210     RECOMP_ICALL(0x470181A0u); /* 0x470A12EC: call 0x470181a0 */ /* not lifted */
   3211     RECOMP_FLAGS_IN();
   3212     ecx = MEM32(esi + (-0x2C)); /* 0x470A12F1: mov ecx, dword ptr [esi - 0x2c] */
   3213     edx = MEM32(ecx); /* 0x470A12F4: mov edx, dword ptr [ecx] */
   3214     eax = esp + 0x4; /* 0x470A12F6: lea eax, [esp + 4] */
   3215     PUSH32(esp, eax); /* 0x470A12FA: push eax */
   3216     MEM32(esp + 0x1C) = 0; /* 0x470A12FB: mov dword ptr [esp + 0x1c], 0 */
   3217     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x470A1303: call dword ptr [edx + 0x14] */
   3218     RECOMP_FLAGS_IN();
   3219     ecx = esp + 0x4; /* 0x470A1306: lea ecx, [esp + 4] */
   3220     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470A130A: mov dword ptr [esp + 0x18], 0xffffffff */
   3221     RECOMP_ICALL(0x47017E00u); /* 0x470A1312: call 0x47017e00 */ /* not lifted */
   3222     RECOMP_FLAGS_IN();
   3223     ecx = MEM32(esp + 0x10); /* 0x470A1317: mov ecx, dword ptr [esp + 0x10] */
   3224     esi = POP32_VAL(esp); /* 0x470A131B: pop esi */
   3225     MEM32(FS_BASE + (0)) = ecx; /* 0x470A131C: mov dword ptr fs:[0], ecx */
   3226     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   3227     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3228     esp = esp + 0x18u; /* 0x470A1323: add esp, 0x18 */
   3229     _flag_k = FK_ADD;
   3230     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1326: ret 0x10 */
   3231     RECOMP_REGS_OUT();
   3232 }
   3233 
   3234 void sub_470A12E7(void) {
   3235     int _fpu_cmp = 0;
   3236     uint32_t _cf = 0;
   3237     int _df = 1;
   3238     uint32_t _flag_k = FK_NONE;
   3239     uint32_t _flag_a = 0, _flag_b = 0;
   3240     uint32_t _itail_tgt = 0;
   3241     RECOMP_REGS_LOCALS
   3242     RECOMP_ENTER(0x470A12E7u);
   3243 
   3244 L_470A12E7:
   3245     PUSH32(esp, eax); /* 0x470A12E7: push eax */
   3246     ecx = esp + 0x8; /* 0x470A12E8: lea ecx, [esp + 8] */
   3247     RECOMP_ICALL(0x470181A0u); /* 0x470A12EC: call 0x470181a0 */ /* not lifted */
   3248     RECOMP_FLAGS_IN();
   3249     ecx = MEM32(esi + (-0x2C)); /* 0x470A12F1: mov ecx, dword ptr [esi - 0x2c] */
   3250     edx = MEM32(ecx); /* 0x470A12F4: mov edx, dword ptr [ecx] */
   3251     eax = esp + 0x4; /* 0x470A12F6: lea eax, [esp + 4] */
   3252     PUSH32(esp, eax); /* 0x470A12FA: push eax */
   3253     MEM32(esp + 0x1C) = 0; /* 0x470A12FB: mov dword ptr [esp + 0x1c], 0 */
   3254     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x470A1303: call dword ptr [edx + 0x14] */
   3255     RECOMP_FLAGS_IN();
   3256     ecx = esp + 0x4; /* 0x470A1306: lea ecx, [esp + 4] */
   3257     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470A130A: mov dword ptr [esp + 0x18], 0xffffffff */
   3258     RECOMP_ICALL(0x47017E00u); /* 0x470A1312: call 0x47017e00 */ /* not lifted */
   3259     RECOMP_FLAGS_IN();
   3260     ecx = MEM32(esp + 0x10); /* 0x470A1317: mov ecx, dword ptr [esp + 0x10] */
   3261     esi = POP32_VAL(esp); /* 0x470A131B: pop esi */
   3262     MEM32(FS_BASE + (0)) = ecx; /* 0x470A131C: mov dword ptr fs:[0], ecx */
   3263     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   3264     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3265     esp = esp + 0x18u; /* 0x470A1323: add esp, 0x18 */
   3266     _flag_k = FK_ADD;
   3267     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1326: ret 0x10 */
   3268     RECOMP_REGS_OUT();
   3269 }
   3270 
   3271 void sub_470A1330(void) {
   3272     int _fpu_cmp = 0;
   3273     uint32_t _cf = 0;
   3274     int _df = 1;
   3275     uint32_t _flag_k = FK_NONE;
   3276     uint32_t _flag_a = 0, _flag_b = 0;
   3277     uint32_t _itail_tgt = 0;
   3278     RECOMP_REGS_LOCALS
   3279     RECOMP_ENTER(0x470A1330u);
   3280 
   3281 L_470A1330:
   3282     eax = MEM32(ecx + (-0x30)); /* 0x470A1330: mov eax, dword ptr [ecx - 0x30] */
   3283     edx = MEM32(eax + 0x4); /* 0x470A1333: mov edx, dword ptr [eax + 4] */
   3284     MEM32(edx + ecx + (-0x30)) = 0x470AE614u; /* 0x470A1336: mov dword ptr [edx + ecx - 0x30], 0x470ae614 */
   3285     eax = MEM32(ecx + (-0x30)); /* 0x470A133E: mov eax, dword ptr [ecx - 0x30] */
   3286     edx = MEM32(eax + 0x8); /* 0x470A1341: mov edx, dword ptr [eax + 8] */
   3287     MEM32(edx + ecx + (-0x30)) = 0x470AE604u; /* 0x470A1344: mov dword ptr [edx + ecx - 0x30], 0x470ae604 */
   3288     eax = MEM32(ecx + (-0x30)); /* 0x470A134C: mov eax, dword ptr [ecx - 0x30] */
   3289     eax = MEM32(eax + 0x4); /* 0x470A134F: mov eax, dword ptr [eax + 4] */
   3290     edx = eax + (-0x30); /* 0x470A1352: lea edx, [eax - 0x30] */
   3291     MEM32(eax + ecx + (-0x34)) = edx; /* 0x470A1355: mov dword ptr [eax + ecx - 0x34], edx */
   3292     eax = MEM32(ecx + (-0x30)); /* 0x470A1359: mov eax, dword ptr [ecx - 0x30] */
   3293     eax = MEM32(eax + 0x8); /* 0x470A135C: mov eax, dword ptr [eax + 8] */
   3294     edx = eax + (-0x38); /* 0x470A135F: lea edx, [eax - 0x38] */
   3295     MEM32(eax + ecx + (-0x34)) = edx; /* 0x470A1362: mov dword ptr [eax + ecx - 0x34], edx */
   3296     eax = MEM32(ecx + (-0x30)); /* 0x470A1366: mov eax, dword ptr [ecx - 0x30] */
   3297     edx = MEM32(eax + 0x4); /* 0x470A1369: mov edx, dword ptr [eax + 4] */
   3298     MEM32(edx + ecx + (-0x30)) = 0x470AE360u; /* 0x470A136C: mov dword ptr [edx + ecx - 0x30], 0x470ae360 */
   3299     eax = MEM32(ecx + (-0x30)); /* 0x470A1374: mov eax, dword ptr [ecx - 0x30] */
   3300     eax = MEM32(eax + 0x4); /* 0x470A1377: mov eax, dword ptr [eax + 4] */
   3301     edx = eax + (-0x20); /* 0x470A137A: lea edx, [eax - 0x20] */
   3302     MEM32(eax + ecx + (-0x34)) = edx; /* 0x470A137D: mov dword ptr [eax + ecx - 0x34], edx */
   3303     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1381: ret  */
   3304     RECOMP_REGS_OUT();
   3305 }
   3306 
   3307 void sub_470A1390(void) {
   3308     int _fpu_cmp = 0;
   3309     uint32_t _cf = 0;
   3310     int _df = 1;
   3311     uint32_t _flag_k = FK_NONE;
   3312     uint32_t _flag_a = 0, _flag_b = 0;
   3313     uint32_t _itail_tgt = 0;
   3314     RECOMP_REGS_LOCALS
   3315     RECOMP_ENTER(0x470A1390u);
   3316 
   3317 L_470A1390:
   3318     eax = MEM32(esp + 0x4); /* 0x470A1390: mov eax, dword ptr [esp + 4] */
   3319     /* test eax, eax */ /* 0x470A1394: test eax, eax */
   3320     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3321     _cf = 0;
   3322     _flag_k = FK_TEST;
   3323     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A13FB; /* 0x470A1396: jne 0x470a13fb */
   3324 L_470A1398:
   3325     PUSH32(esp, esi); /* 0x470A1398: push esi */
   3326     PUSH32(esp, edi); /* 0x470A1399: push edi */
   3327     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A139A: call dword ptr [0x470ac150] */
   3328     RECOMP_FLAGS_IN();
   3329     edi = eax; /* 0x470A13A0: mov edi, eax */
   3330     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A13A2: call dword ptr [0x470ac3c8] */
   3331     RECOMP_FLAGS_IN();
   3332     eax = MEM32(eax); /* 0x470A13A8: mov eax, dword ptr [eax] */
   3333     /* test eax, eax */ /* 0x470A13AA: test eax, eax */
   3334     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3335     _cf = 0;
   3336     _flag_k = FK_TEST;
   3337     if (TEST_Z(_flag_a, _flag_b)) goto L_470A13B0; /* 0x470A13AC: je 0x470a13b0 */
   3338 L_470A13AE:
   3339     edi = eax; /* 0x470A13AE: mov edi, eax */
   3340 L_470A13B0:
   3341     RECOMP_ICALL(0x47039020u); /* 0x470A13B0: call 0x47039020 */ /* not lifted */
   3342     RECOMP_FLAGS_IN();
   3343     esi = eax; /* 0x470A13B5: mov esi, eax */
   3344     ecx = esi; /* 0x470A13B7: mov ecx, esi */
   3345     RECOMP_ICALL(0x4703B210u); /* 0x470A13B9: call 0x4703b210 */ /* not lifted */
   3346     RECOMP_FLAGS_IN();
   3347     PUSH32(esp, eax); /* 0x470A13BE: push eax */
   3348     ecx = esi; /* 0x470A13BF: mov ecx, esi */
   3349     RECOMP_ICALL(0x4703B240u); /* 0x470A13C1: call 0x4703b240 */ /* not lifted */
   3350     RECOMP_FLAGS_IN();
   3351     PUSH32(esp, eax); /* 0x470A13C6: push eax */
   3352     ecx = esi; /* 0x470A13C7: mov ecx, esi */
   3353     RECOMP_ICALL(0x4703B080u); /* 0x470A13C9: call 0x4703b080 */ /* not lifted */
   3354     RECOMP_FLAGS_IN();
   3355     PUSH32(esp, eax); /* 0x470A13CE: push eax */
   3356     PUSH32(esp, edi); /* 0x470A13CF: push edi */
   3357     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A13D0: push -1 */
   3358     PUSH32(esp, 0x5Bu); /* 0x470A13D2: push 0x5b */
   3359     PUSH32(esp, 0x4710DB30u); /* 0x470A13D4: push 0x4710db30 */
   3360     ecx = esi; /* 0x470A13D9: mov ecx, esi */
   3361     RECOMP_ICALL(0x4703A340u); /* 0x470A13DB: call 0x4703a340 */ /* not lifted */
   3362     RECOMP_FLAGS_IN();
   3363     PUSH32(esp, 0x4710DB08u); /* 0x470A13E0: push 0x4710db08 */
   3364     PUSH32(esp, 0x80u); /* 0x470A13E5: push 0x80 */
   3365     PUSH32(esp, esi); /* 0x470A13EA: push esi */
   3366     RECOMP_ICALL(0x47039830u); /* 0x470A13EB: call 0x47039830 */ /* not lifted */
   3367     RECOMP_FLAGS_IN();
   3368     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3369     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3370     esp = esp + 0xCu; /* 0x470A13F0: add esp, 0xc */
   3371     _flag_k = FK_ADD;
   3372     edi = POP32_VAL(esp); /* 0x470A13F3: pop edi */
   3373     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3374     eax = eax | 0xFFFFFFFFu; /* 0x470A13F4: or eax, 0xffffffff */
   3375     _cf = 0;
   3376     _flag_k = FK_TEST;
   3377     esi = POP32_VAL(esp); /* 0x470A13F7: pop esi */
   3378     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A13F8: ret 4 */
   3379 L_470A13FB:
   3380     edx = MEM32(eax); /* 0x470A13FB: mov edx, dword ptr [eax] */
   3381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFBCu);
   3382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3383     ecx = ecx + 0xFFFFFFBCu; /* 0x470A13FD: add ecx, -0x44 */
   3384     _flag_k = FK_ADD;
   3385     PUSH32(esp, ecx); /* 0x470A1400: push ecx */
   3386     ecx = eax; /* 0x470A1401: mov ecx, eax */
   3387     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x470A1403: call dword ptr [edx + 0x9c] */
   3388     RECOMP_FLAGS_IN();
   3389     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A1409: ret 4 */
   3390     RECOMP_REGS_OUT();
   3391 }
   3392 
   3393 void sub_470A1410(void) {
   3394     int _fpu_cmp = 0;
   3395     uint32_t _cf = 0;
   3396     int _df = 1;
   3397     uint32_t _flag_k = FK_NONE;
   3398     uint32_t _flag_a = 0, _flag_b = 0;
   3399     uint32_t _itail_tgt = 0;
   3400     RECOMP_REGS_LOCALS
   3401     RECOMP_ENTER(0x470A1410u);
   3402 
   3403 L_470A1410:
   3404     PUSH32(esp, ecx); /* 0x470A1410: push ecx */
   3405     edx = MEM32(esp + 0xC); /* 0x470A1411: mov edx, dword ptr [esp + 0xc] */
   3406     eax = ecx; /* 0x470A1415: mov eax, ecx */
   3407     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3408     ecx = 0; /* 0x470A1417: xor ecx, ecx */
   3409     _cf = 0;
   3410     _flag_k = FK_TEST;
   3411     /* cmp edx, ecx */ /* 0x470A1419: cmp edx, ecx */
   3412     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3414     _flag_k = FK_CMP;
   3415     MEM32(esp) = ecx; /* 0x470A141B: mov dword ptr [esp], ecx */
   3416     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A144A; /* 0x470A141F: je 0x470a144a */
   3417 L_470A1421:
   3418     MEM32(eax) = 0x470AE678u; /* 0x470A1421: mov dword ptr [eax], 0x470ae678 */
   3419     MEM32(eax + 0x24) = 0x470AE670u; /* 0x470A1427: mov dword ptr [eax + 0x24], 0x470ae670 */
   3420     MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x470A142E: mov dword ptr [eax + 0x18], 0x470acc4c */
   3421     edx = MEM32(eax + 0x24); /* 0x470A1435: mov edx, dword ptr [eax + 0x24] */
   3422     MEM32(eax + 0x20) = 0x470ACE34u; /* 0x470A1438: mov dword ptr [eax + 0x20], 0x470ace34 */
   3423     edx = MEM32(edx + 0x4); /* 0x470A143F: mov edx, dword ptr [edx + 4] */
   3424     MEM32(edx + eax + 0x24) = 0x470ACE24u; /* 0x470A1442: mov dword ptr [edx + eax + 0x24], 0x470ace24 */
   3425 L_470A144A:
   3426     edx = MEM32(esp + 0x8); /* 0x470A144A: mov edx, dword ptr [esp + 8] */
   3427     MEM32(eax + 0x8) = ecx; /* 0x470A144E: mov dword ptr [eax + 8], ecx */
   3428     MEM32(eax + 0xC) = ecx; /* 0x470A1451: mov dword ptr [eax + 0xc], ecx */
   3429     ecx = MEM32(eax); /* 0x470A1454: mov ecx, dword ptr [eax] */
   3430     MEM32(eax + 0x4) = edx; /* 0x470A1456: mov dword ptr [eax + 4], edx */
   3431     MEM32(eax + 0x10) = 0xFFFFFFFFu; /* 0x470A1459: mov dword ptr [eax + 0x10], 0xffffffff */
   3432     edx = MEM32(ecx + 0x4); /* 0x470A1460: mov edx, dword ptr [ecx + 4] */
   3433     MEM32(edx + eax) = 0x470AE39Cu; /* 0x470A1463: mov dword ptr [edx + eax], 0x470ae39c */
   3434     ecx = MEM32(eax); /* 0x470A146A: mov ecx, dword ptr [eax] */
   3435     ecx = MEM32(ecx + 0x4); /* 0x470A146C: mov ecx, dword ptr [ecx + 4] */
   3436     edx = ecx + (-0x18); /* 0x470A146F: lea edx, [ecx - 0x18] */
   3437     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A1472: mov dword ptr [ecx + eax - 4], edx */
   3438     ecx = MEM32(eax); /* 0x470A1476: mov ecx, dword ptr [eax] */
   3439     edx = MEM32(ecx + 0x4); /* 0x470A1478: mov edx, dword ptr [ecx + 4] */
   3440     MEM32(edx + eax) = 0x470AE660u; /* 0x470A147B: mov dword ptr [edx + eax], 0x470ae660 */
   3441     ecx = MEM32(eax); /* 0x470A1482: mov ecx, dword ptr [eax] */
   3442     edx = MEM32(ecx + 0x8); /* 0x470A1484: mov edx, dword ptr [ecx + 8] */
   3443     MEM32(edx + eax) = 0x470AE65Cu; /* 0x470A1487: mov dword ptr [edx + eax], 0x470ae65c */
   3444     ecx = MEM32(eax); /* 0x470A148E: mov ecx, dword ptr [eax] */
   3445     ecx = MEM32(ecx + 0x4); /* 0x470A1490: mov ecx, dword ptr [ecx + 4] */
   3446     edx = ecx + (-0x18); /* 0x470A1493: lea edx, [ecx - 0x18] */
   3447     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A1496: mov dword ptr [ecx + eax - 4], edx */
   3448     ecx = MEM32(eax); /* 0x470A149A: mov ecx, dword ptr [eax] */
   3449     ecx = MEM32(ecx + 0x8); /* 0x470A149C: mov ecx, dword ptr [ecx + 8] */
   3450     edx = ecx + (-0x20); /* 0x470A149F: lea edx, [ecx - 0x20] */
   3451     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A14A2: mov dword ptr [ecx + eax - 4], edx */
   3452     ecx = POP32_VAL(esp); /* 0x470A14A6: pop ecx */
   3453     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A14A7: ret 8 */
   3454     RECOMP_REGS_OUT();
   3455 }
   3456 
   3457 void sub_470A14B0(void) {
   3458     int _fpu_cmp = 0;
   3459     uint32_t _cf = 0;
   3460     int _df = 1;
   3461     uint32_t _flag_k = FK_NONE;
   3462     uint32_t _flag_a = 0, _flag_b = 0;
   3463     uint32_t _itail_tgt = 0;
   3464     RECOMP_REGS_LOCALS
   3465     RECOMP_ENTER(0x470A14B0u);
   3466 
   3467 L_470A14B0:
   3468     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A14B0: push -1 */
   3469     PUSH32(esp, 0x470ABC8Bu); /* 0x470A14B2: push 0x470abc8b */
   3470     eax = MEM32(FS_BASE + (0)); /* 0x470A14B7: mov eax, dword ptr fs:[0] */
   3471     PUSH32(esp, eax); /* 0x470A14BD: push eax */
   3472     MEM32(FS_BASE + (0)) = esp; /* 0x470A14BE: mov dword ptr fs:[0], esp */
   3473     PUSH32(esp, ecx); /* 0x470A14C5: push ecx */
   3474     PUSH32(esp, ebx); /* 0x470A14C6: push ebx */
   3475     PUSH32(esp, ebp); /* 0x470A14C7: push ebp */
   3476     ebp = MEM32(esp + 0x20); /* 0x470A14C8: mov ebp, dword ptr [esp + 0x20] */
   3477     PUSH32(esp, esi); /* 0x470A14CC: push esi */
   3478     PUSH32(esp, edi); /* 0x470A14CD: push edi */
   3479     edi = MEM32(esp + 0x24); /* 0x470A14CE: mov edi, dword ptr [esp + 0x24] */
   3480     eax = MEM32(edi + 0x8); /* 0x470A14D2: mov eax, dword ptr [edi + 8] */
   3481     esi = ecx; /* 0x470A14D5: mov esi, ecx */
   3482     ecx = MEM32(edi + 0x2C); /* 0x470A14D7: mov ecx, dword ptr [edi + 0x2c] */
   3483     edx = MEM32(ecx + 0x14); /* 0x470A14DA: mov edx, dword ptr [ecx + 0x14] */
   3484     ecx = MEM32(ecx + 0x8); /* 0x470A14DD: mov ecx, dword ptr [ecx + 8] */
   3485     ebx = edx; /* 0x470A14E0: mov ebx, edx */
   3486     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3488     eax = eax - ebx; /* 0x470A14E2: sub eax, ebx */
   3489     _flag_k = FK_CMP;
   3490     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3491     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3492     eax = eax + edx; /* 0x470A14E4: add eax, edx */
   3493     _flag_k = FK_ADD;
   3494     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3496     ecx = ecx - eax; /* 0x470A14E6: sub ecx, eax */
   3497     _flag_k = FK_CMP;
   3498     eax = ebp + 0x40; /* 0x470A14E8: lea eax, [ebp + 0x40] */
   3499     /* cmp ecx, eax */ /* 0x470A14EB: cmp ecx, eax */
   3500     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3502     _flag_k = FK_CMP;
   3503     if (CMP_AE(_flag_a, _flag_b)) goto L_470A1553; /* 0x470A14ED: jae 0x470a1553 */
   3504 L_470A14EF:
   3505     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A14EF: call dword ptr [0x470ac150] */
   3506     RECOMP_FLAGS_IN();
   3507     edi = eax; /* 0x470A14F5: mov edi, eax */
   3508     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A14F7: call dword ptr [0x470ac3c8] */
   3509     RECOMP_FLAGS_IN();
   3510     eax = MEM32(eax); /* 0x470A14FD: mov eax, dword ptr [eax] */
   3511     /* test eax, eax */ /* 0x470A14FF: test eax, eax */
   3512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3513     _cf = 0;
   3514     _flag_k = FK_TEST;
   3515     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1505; /* 0x470A1501: je 0x470a1505 */
   3516 L_470A1503:
   3517     edi = eax; /* 0x470A1503: mov edi, eax */
   3518 L_470A1505:
   3519     RECOMP_ICALL(0x47039020u); /* 0x470A1505: call 0x47039020 */ /* not lifted */
   3520     RECOMP_FLAGS_IN();
   3521     esi = eax; /* 0x470A150A: mov esi, eax */
   3522     ecx = esi; /* 0x470A150C: mov ecx, esi */
   3523     RECOMP_ICALL(0x4703B210u); /* 0x470A150E: call 0x4703b210 */ /* not lifted */
   3524     RECOMP_FLAGS_IN();
   3525     PUSH32(esp, eax); /* 0x470A1513: push eax */
   3526     ecx = esi; /* 0x470A1514: mov ecx, esi */
   3527     RECOMP_ICALL(0x4703B240u); /* 0x470A1516: call 0x4703b240 */ /* not lifted */
   3528     RECOMP_FLAGS_IN();
   3529     PUSH32(esp, eax); /* 0x470A151B: push eax */
   3530     ecx = esi; /* 0x470A151C: mov ecx, esi */
   3531     RECOMP_ICALL(0x4703B080u); /* 0x470A151E: call 0x4703b080 */ /* not lifted */
   3532     RECOMP_FLAGS_IN();
   3533     PUSH32(esp, eax); /* 0x470A1523: push eax */
   3534     PUSH32(esp, edi); /* 0x470A1524: push edi */
   3535     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A1525: push -1 */
   3536     PUSH32(esp, 0x512u); /* 0x470A1527: push 0x512 */
   3537     PUSH32(esp, 0x4710DB30u); /* 0x470A152C: push 0x4710db30 */
   3538     ecx = esi; /* 0x470A1531: mov ecx, esi */
   3539     RECOMP_ICALL(0x4703A340u); /* 0x470A1533: call 0x4703a340 */ /* not lifted */
   3540     RECOMP_FLAGS_IN();
   3541     PUSH32(esp, 0x4710DB98u); /* 0x470A1538: push 0x4710db98 */
   3542     PUSH32(esp, 0x80u); /* 0x470A153D: push 0x80 */
   3543     PUSH32(esp, esi); /* 0x470A1542: push esi */
   3544     RECOMP_ICALL(0x47039830u); /* 0x470A1543: call 0x47039830 */ /* not lifted */
   3545     RECOMP_FLAGS_IN();
   3546     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3547     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3548     esp = esp + 0xCu; /* 0x470A1548: add esp, 0xc */
   3549     _flag_k = FK_ADD;
   3550     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3551     eax = eax | 0xFFFFFFFFu; /* 0x470A154B: or eax, 0xffffffff */
   3552     _cf = 0;
   3553     _flag_k = FK_TEST;
   3554     goto L_470A1799; /* 0x470A154E: jmp 0x470a1799 */
   3555 L_470A1553:
   3556     /* cmp MEM32(esp + 0x2C), 0xFFFFFFFFu */ /* 0x470A1553: cmp dword ptr [esp + 0x2c], -1 */
   3557     _flag_a = (uint32_t)(MEM32(esp + 0x2C)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3558     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3559     _flag_k = FK_CMP;
   3560     MEM32(esp + 0x24) = 0; /* 0x470A1558: mov dword ptr [esp + 0x24], 0 */
   3561     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1607; /* 0x470A1560: jne 0x470a1607 */
   3562 L_470A1566:
   3563     PUSH32(esp, 0); /* 0x470A1566: push 0 */
   3564     PUSH32(esp, 1); /* 0x470A1568: push 1 */
   3565     PUSH32(esp, 2); /* 0x470A156A: push 2 */
   3566     RECOMP_ICALL(MEM32(0x470AC438)); /* 0x470A156C: call dword ptr [0x470ac438] */
   3567     RECOMP_FLAGS_IN();
   3568     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1572: cmp eax, -1 */
   3569     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3571     _flag_k = FK_CMP;
   3572     if (CMP_NE(_flag_a, _flag_b)) goto L_470A15FB; /* 0x470A1575: jne 0x470a15fb */
   3573 L_470A157B:
   3574     RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x470A157B: call dword ptr [0x470ac4a4] */
   3575     RECOMP_FLAGS_IN();
   3576     esi = MEM32(0x470AC3C8); /* 0x470A1581: mov esi, dword ptr [0x470ac3c8] */
   3577     edi = eax; /* 0x470A1587: mov edi, eax */
   3578     RECOMP_ICALL(esi); /* 0x470A1589: call esi */
   3579     RECOMP_FLAGS_IN();
   3580     MEM32(eax) = edi; /* 0x470A158B: mov dword ptr [eax], edi */
   3581     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A158D: mov al, byte ptr [0x4710de04] */
   3582     /* test LO8(eax), LO8(eax) */ /* 0x470A1592: test al, al */
   3583     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3584     _cf = 0;
   3585     _flag_k = FK_NARROW(FK_TEST, 24);
   3586     if (TEST_Z(_flag_a, _flag_b)) goto L_470A15F3; /* 0x470A1594: je 0x470a15f3 */
   3587 L_470A1596:
   3588     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A1596: call dword ptr [0x470ac150] */
   3589     RECOMP_FLAGS_IN();
   3590     edi = eax; /* 0x470A159C: mov edi, eax */
   3591     RECOMP_ICALL(esi); /* 0x470A159E: call esi */
   3592     RECOMP_FLAGS_IN();
   3593     eax = MEM32(eax); /* 0x470A15A0: mov eax, dword ptr [eax] */
   3594     /* test eax, eax */ /* 0x470A15A2: test eax, eax */
   3595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3596     _cf = 0;
   3597     _flag_k = FK_TEST;
   3598     if (TEST_Z(_flag_a, _flag_b)) goto L_470A15A8; /* 0x470A15A4: je 0x470a15a8 */
   3599 L_470A15A6:
   3600     edi = eax; /* 0x470A15A6: mov edi, eax */
   3601 L_470A15A8:
   3602     RECOMP_ICALL(0x47039020u); /* 0x470A15A8: call 0x47039020 */ /* not lifted */
   3603     RECOMP_FLAGS_IN();
   3604     esi = eax; /* 0x470A15AD: mov esi, eax */
   3605     ecx = esi; /* 0x470A15AF: mov ecx, esi */
   3606     RECOMP_ICALL(0x4703B210u); /* 0x470A15B1: call 0x4703b210 */ /* not lifted */
   3607     RECOMP_FLAGS_IN();
   3608     PUSH32(esp, eax); /* 0x470A15B6: push eax */
   3609     ecx = esi; /* 0x470A15B7: mov ecx, esi */
   3610     RECOMP_ICALL(0x4703B240u); /* 0x470A15B9: call 0x4703b240 */ /* not lifted */
   3611     RECOMP_FLAGS_IN();
   3612     PUSH32(esp, eax); /* 0x470A15BE: push eax */
   3613     ecx = esi; /* 0x470A15BF: mov ecx, esi */
   3614     RECOMP_ICALL(0x4703B080u); /* 0x470A15C1: call 0x4703b080 */ /* not lifted */
   3615     RECOMP_FLAGS_IN();
   3616     PUSH32(esp, eax); /* 0x470A15C6: push eax */
   3617     PUSH32(esp, edi); /* 0x470A15C7: push edi */
   3618     PUSH32(esp, 0); /* 0x470A15C8: push 0 */
   3619     PUSH32(esp, 0x523u); /* 0x470A15CA: push 0x523 */
   3620     PUSH32(esp, 0x4710DB30u); /* 0x470A15CF: push 0x4710db30 */
   3621     ecx = esi; /* 0x470A15D4: mov ecx, esi */
   3622     RECOMP_ICALL(0x4703A340u); /* 0x470A15D6: call 0x4703a340 */ /* not lifted */
   3623     RECOMP_FLAGS_IN();
   3624     PUSH32(esp, 0x4710DB88u); /* 0x470A15DB: push 0x4710db88 */
   3625 L_470A15E0:
   3626     PUSH32(esp, 0x471055F0u); /* 0x470A15E0: push 0x471055f0 */
   3627     PUSH32(esp, 0x80u); /* 0x470A15E5: push 0x80 */
   3628     PUSH32(esp, esi); /* 0x470A15EA: push esi */
   3629     RECOMP_ICALL(0x47039830u); /* 0x470A15EB: call 0x47039830 */ /* not lifted */
   3630     RECOMP_FLAGS_IN();
   3631     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3632     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3633     esp = esp + 0x10u; /* 0x470A15F0: add esp, 0x10 */
   3634     _flag_k = FK_ADD;
   3635 L_470A15F3:
   3636     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3637     eax = eax | 0xFFFFFFFFu; /* 0x470A15F3: or eax, 0xffffffff */
   3638     _cf = 0;
   3639     _flag_k = FK_TEST;
   3640     goto L_470A1799; /* 0x470A15F6: jmp 0x470a1799 */
   3641 L_470A15FB:
   3642     MEM32(esp + 0x2C) = eax; /* 0x470A15FB: mov dword ptr [esp + 0x2c], eax */
   3643     MEM32(esp + 0x24) = 1; /* 0x470A15FF: mov dword ptr [esp + 0x24], 1 */
   3644 L_470A1607:
   3645     PUSH32(esp, 0x54u); /* 0x470A1607: push 0x54 */
   3646     RECOMP_ICALL(0x470A33F2u); /* 0x470A1609: call 0x470a33f2 */ /* not lifted */
   3647     RECOMP_FLAGS_IN();
   3648     ebx = eax; /* 0x470A160E: mov ebx, eax */
   3649     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3651     esp = esp + 4; /* 0x470A1610: add esp, 4 */
   3652     _flag_k = FK_ADD;
   3653     MEM32(esp + 0x28) = ebx; /* 0x470A1613: mov dword ptr [esp + 0x28], ebx */
   3654     /* test ebx, ebx */ /* 0x470A1617: test ebx, ebx */
   3655     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3656     _cf = 0;
   3657     _flag_k = FK_TEST;
   3658     MEM32(esp + 0x1C) = 0; /* 0x470A1619: mov dword ptr [esp + 0x1c], 0 */
   3659     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1657; /* 0x470A1621: je 0x470a1657 */
   3660 L_470A1623:
   3661     eax = MEM32(esp + 0x38); /* 0x470A1623: mov eax, dword ptr [esp + 0x38] */
   3662     ecx = MEM32(esi + (-0x1C)); /* 0x470A1627: mov ecx, dword ptr [esi - 0x1c] */
   3663     edx = MEM32(esp + 0x34); /* 0x470A162A: mov edx, dword ptr [esp + 0x34] */
   3664     PUSH32(esp, 1); /* 0x470A162E: push 1 */
   3665     PUSH32(esp, eax); /* 0x470A1630: push eax */
   3666     eax = MEM32(ecx); /* 0x470A1631: mov eax, dword ptr [ecx] */
   3667     PUSH32(esp, edx); /* 0x470A1633: push edx */
   3668     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A1634: call dword ptr [eax + 4] */
   3669     RECOMP_FLAGS_IN();
   3670     ecx = MEM32(esp + 0x3C); /* 0x470A1637: mov ecx, dword ptr [esp + 0x3c] */
   3671     edx = MEM32(esp + 0x38); /* 0x470A163B: mov edx, dword ptr [esp + 0x38] */
   3672     PUSH32(esp, eax); /* 0x470A163F: push eax */
   3673     eax = MEM32(esi + (-0x10)); /* 0x470A1640: mov eax, dword ptr [esi - 0x10] */
   3674     PUSH32(esp, ecx); /* 0x470A1643: push ecx */
   3675     ecx = MEM32(esi + (-0x14)); /* 0x470A1644: mov ecx, dword ptr [esi - 0x14] */
   3676     PUSH32(esp, ebp); /* 0x470A1647: push ebp */
   3677     PUSH32(esp, edi); /* 0x470A1648: push edi */
   3678     PUSH32(esp, edx); /* 0x470A1649: push edx */
   3679     PUSH32(esp, eax); /* 0x470A164A: push eax */
   3680     PUSH32(esp, ecx); /* 0x470A164B: push ecx */
   3681     ecx = ebx; /* 0x470A164C: mov ecx, ebx */
   3682     RECOMP_ICALL(0x470A11D0u); /* 0x470A164E: call 0x470a11d0 */ /* not lifted */
   3683     RECOMP_FLAGS_IN();
   3684     esi = eax; /* 0x470A1653: mov esi, eax */
   3685     goto L_470A1659; /* 0x470A1655: jmp 0x470a1659 */
   3686 L_470A1657:
   3687     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3688     esi = 0; /* 0x470A1657: xor esi, esi */
   3689     _cf = 0;
   3690     _flag_k = FK_TEST;
   3691 L_470A1659:
   3692     /* test esi, esi */ /* 0x470A1659: test esi, esi */
   3693     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3694     _cf = 0;
   3695     _flag_k = FK_TEST;
   3696     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A165B: mov dword ptr [esp + 0x1c], 0xffffffff */
   3697     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A1679; /* 0x470A1663: jne 0x470a1679 */
   3698 L_470A1665:
   3699     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1665: call dword ptr [0x470ac3c8] */
   3700     RECOMP_FLAGS_IN();
   3701     MEM32(eax) = 0xCu; /* 0x470A166B: mov dword ptr [eax], 0xc */
   3702     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3703     eax = eax | 0xFFFFFFFFu; /* 0x470A1671: or eax, 0xffffffff */
   3704     _cf = 0;
   3705     _flag_k = FK_TEST;
   3706     goto L_470A1799; /* 0x470A1674: jmp 0x470a1799 */
   3707 L_470A1679:
   3708     edx = MEM32(esi + 0x14); /* 0x470A1679: mov edx, dword ptr [esi + 0x14] */
   3709     eax = MEM32(edx + 0x8); /* 0x470A167C: mov eax, dword ptr [edx + 8] */
   3710     edx = MEM32(eax + esi + 0x14); /* 0x470A167F: mov edx, dword ptr [eax + esi + 0x14] */
   3711     ecx = eax + esi + 0x14; /* 0x470A1683: lea ecx, [eax + esi + 0x14] */
   3712     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470A1687: call dword ptr [edx + 4] */
   3713     RECOMP_FLAGS_IN();
   3714     ecx = MEM32(eax + 0x2C); /* 0x470A168A: mov ecx, dword ptr [eax + 0x2c] */
   3715     ebx = MEM32(ecx + 0x14); /* 0x470A168D: mov ebx, dword ptr [ecx + 0x14] */
   3716     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3717     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3718     ebx = ebx + MEM32(eax + 0x8); /* 0x470A1690: add ebx, dword ptr [eax + 8] */
   3719     _flag_k = FK_ADD;
   3720     edx = MEM32(esi + 0x14); /* 0x470A1693: mov edx, dword ptr [esi + 0x14] */
   3721     eax = MEM32(edx + 0x8); /* 0x470A1696: mov eax, dword ptr [edx + 8] */
   3722     ecx = eax + esi + 0x14; /* 0x470A1699: lea ecx, [eax + esi + 0x14] */
   3723     eax = MEM32(edx + 0x8); /* 0x470A169D: mov eax, dword ptr [edx + 8] */
   3724     MEM32(esp + 0x28) = ecx; /* 0x470A16A0: mov dword ptr [esp + 0x28], ecx */
   3725     ecx = eax + esi + 0x14; /* 0x470A16A4: lea ecx, [eax + esi + 0x14] */
   3726     eax = MEM32(edx + 0x8); /* 0x470A16A8: mov eax, dword ptr [edx + 8] */
   3727     edx = MEM32(eax + esi + 0x14); /* 0x470A16AB: mov edx, dword ptr [eax + esi + 0x14] */
   3728     MEM32(esp + 0x28) = ecx; /* 0x470A16AF: mov dword ptr [esp + 0x28], ecx */
   3729     PUSH32(esp, esi); /* 0x470A16B3: push esi */
   3730     ecx = esp + 0x14; /* 0x470A16B4: lea ecx, [esp + 0x14] */
   3731     PUSH32(esp, ecx); /* 0x470A16B8: push ecx */
   3732     edi = eax + esi + 0x14; /* 0x470A16B9: lea edi, [eax + esi + 0x14] */
   3733     PUSH32(esp, 0x20u); /* 0x470A16BD: push 0x20 */
   3734     PUSH32(esp, 0x20u); /* 0x470A16BF: push 0x20 */
   3735     ecx = edi; /* 0x470A16C1: mov ecx, edi */
   3736     RECOMP_ICALL(MEM32(edx)); /* 0x470A16C3: call dword ptr [edx] */
   3737     RECOMP_FLAGS_IN();
   3738     PUSH32(esp, eax); /* 0x470A16C5: push eax */
   3739     eax = MEM32(edi); /* 0x470A16C6: mov eax, dword ptr [edi] */
   3740     PUSH32(esp, ebx); /* 0x470A16C8: push ebx */
   3741     ecx = edi; /* 0x470A16C9: mov ecx, edi */
   3742     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470A16CB: call dword ptr [eax + 0xc] */
   3743     RECOMP_FLAGS_IN();
   3744     edx = MEM32(edi); /* 0x470A16CE: mov edx, dword ptr [edi] */
   3745     PUSH32(esp, eax); /* 0x470A16D0: push eax */
   3746     ecx = edi; /* 0x470A16D1: mov ecx, edi */
   3747     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A16D3: call dword ptr [edx + 8] */
   3748     RECOMP_FLAGS_IN();
   3749     PUSH32(esp, eax); /* 0x470A16D6: push eax */
   3750     RECOMP_ICALL(0x470A3296u); /* 0x470A16D7: call 0x470a3296 */ /* not lifted */
   3751     RECOMP_FLAGS_IN();
   3752     /* cmp eax, 1 */ /* 0x470A16DC: cmp eax, 1 */
   3753     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3755     _flag_k = FK_CMP;
   3756     if (CMP_NE(_flag_a, _flag_b)) goto L_470A16E6; /* 0x470A16DF: jne 0x470a16e6 */
   3757 L_470A16E1:
   3758     goto L_470A1799; /* 0x470A16E1: jmp 0x470a1799 */
   3759 L_470A16E6:
   3760     edi = MEM32(0x470AC3C8); /* 0x470A16E6: mov edi, dword ptr [0x470ac3c8] */
   3761     RECOMP_ICALL(edi); /* 0x470A16EC: call edi */
   3762     RECOMP_FLAGS_IN();
   3763     ebp = MEM32(0x470AC150); /* 0x470A16EE: mov ebp, dword ptr [0x470ac150] */
   3764     ebx = eax; /* 0x470A16F4: mov ebx, eax */
   3765     RECOMP_ICALL(ebp); /* 0x470A16F6: call ebp */
   3766     RECOMP_FLAGS_IN();
   3767     MEM32(ebx) = eax; /* 0x470A16F8: mov dword ptr [ebx], eax */
   3768     RECOMP_ICALL(edi); /* 0x470A16FA: call edi */
   3769     RECOMP_FLAGS_IN();
   3770     /* cmp MEM32(eax), 0x3E5u */ /* 0x470A16FC: cmp dword ptr [eax], 0x3e5 */
   3771     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x3E5u);
   3772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3773     _flag_k = FK_CMP;
   3774     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A1797; /* 0x470A1702: je 0x470a1797 */
   3775 L_470A1708:
   3776     /* cmp MEM32(esp + 0x24), 1 */ /* 0x470A1708: cmp dword ptr [esp + 0x24], 1 */
   3777     _flag_a = (uint32_t)(MEM32(esp + 0x24)); _flag_b = (uint32_t)(1);
   3778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3779     _flag_k = FK_CMP;
   3780     if (CMP_NE(_flag_a, _flag_b)) goto L_470A172B; /* 0x470A170D: jne 0x470a172b */
   3781 L_470A170F:
   3782     eax = MEM32(esp + 0x2C); /* 0x470A170F: mov eax, dword ptr [esp + 0x2c] */
   3783     PUSH32(esp, eax); /* 0x470A1713: push eax */
   3784     RECOMP_ICALL(MEM32(0x470AC428)); /* 0x470A1714: call dword ptr [0x470ac428] */
   3785     RECOMP_FLAGS_IN();
   3786     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A171A: cmp eax, -1 */
   3787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3789     _flag_k = FK_CMP;
   3790     if (CMP_NE(_flag_a, _flag_b)) goto L_470A172B; /* 0x470A171D: jne 0x470a172b */
   3791 L_470A171F:
   3792     RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x470A171F: call dword ptr [0x470ac4a4] */
   3793     RECOMP_FLAGS_IN();
   3794     ebx = eax; /* 0x470A1725: mov ebx, eax */
   3795     RECOMP_ICALL(edi); /* 0x470A1727: call edi */
   3796     RECOMP_FLAGS_IN();
   3797     MEM32(eax) = ebx; /* 0x470A1729: mov dword ptr [eax], ebx */
   3798 L_470A172B:
   3799     ecx = MEM32(esi + 0x14); /* 0x470A172B: mov ecx, dword ptr [esi + 0x14] */
   3800     edx = MEM32(ecx + 0x4); /* 0x470A172E: mov edx, dword ptr [ecx + 4] */
   3801     eax = MEM32(edx + esi + 0x14); /* 0x470A1731: mov eax, dword ptr [edx + esi + 0x14] */
   3802     ecx = edx + esi + 0x14; /* 0x470A1735: lea ecx, [edx + esi + 0x14] */
   3803     PUSH32(esp, 1); /* 0x470A1739: push 1 */
   3804     RECOMP_ICALL(MEM32(eax)); /* 0x470A173B: call dword ptr [eax] */
   3805     RECOMP_FLAGS_IN();
   3806     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A173D: mov al, byte ptr [0x4710de04] */
   3807     /* test LO8(eax), LO8(eax) */ /* 0x470A1742: test al, al */
   3808     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3809     _cf = 0;
   3810     _flag_k = FK_NARROW(FK_TEST, 24);
   3811     RECOMP_BACKEDGE();
   3812     if (TEST_Z(_flag_a, _flag_b)) goto L_470A15F3; /* 0x470A1744: je 0x470a15f3 */
   3813 L_470A174A:
   3814     RECOMP_ICALL(ebp); /* 0x470A174A: call ebp */
   3815     RECOMP_FLAGS_IN();
   3816     esi = eax; /* 0x470A174C: mov esi, eax */
   3817     RECOMP_ICALL(edi); /* 0x470A174E: call edi */
   3818     RECOMP_FLAGS_IN();
   3819     eax = MEM32(eax); /* 0x470A1750: mov eax, dword ptr [eax] */
   3820     /* test eax, eax */ /* 0x470A1752: test eax, eax */
   3821     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3822     _cf = 0;
   3823     _flag_k = FK_TEST;
   3824     edi = esi; /* 0x470A1754: mov edi, esi */
   3825     if (TEST_Z(_flag_a, _flag_b)) goto L_470A175A; /* 0x470A1756: je 0x470a175a */
   3826 L_470A1758:
   3827     edi = eax; /* 0x470A1758: mov edi, eax */
   3828 L_470A175A:
   3829     RECOMP_ICALL(0x47039020u); /* 0x470A175A: call 0x47039020 */ /* not lifted */
   3830     RECOMP_FLAGS_IN();
   3831     esi = eax; /* 0x470A175F: mov esi, eax */
   3832     ecx = esi; /* 0x470A1761: mov ecx, esi */
   3833     RECOMP_ICALL(0x4703B210u); /* 0x470A1763: call 0x4703b210 */ /* not lifted */
   3834     RECOMP_FLAGS_IN();
   3835     PUSH32(esp, eax); /* 0x470A1768: push eax */
   3836     ecx = esi; /* 0x470A1769: mov ecx, esi */
   3837     RECOMP_ICALL(0x4703B240u); /* 0x470A176B: call 0x4703b240 */ /* not lifted */
   3838     RECOMP_FLAGS_IN();
   3839     PUSH32(esp, eax); /* 0x470A1770: push eax */
   3840     ecx = esi; /* 0x470A1771: mov ecx, esi */
   3841     RECOMP_ICALL(0x4703B080u); /* 0x470A1773: call 0x4703b080 */ /* not lifted */
   3842     RECOMP_FLAGS_IN();
   3843     PUSH32(esp, eax); /* 0x470A1778: push eax */
   3844     PUSH32(esp, edi); /* 0x470A1779: push edi */
   3845     PUSH32(esp, 0); /* 0x470A177A: push 0 */
   3846     PUSH32(esp, 0x561u); /* 0x470A177C: push 0x561 */
   3847     PUSH32(esp, 0x4710DB30u); /* 0x470A1781: push 0x4710db30 */
   3848     ecx = esi; /* 0x470A1786: mov ecx, esi */
   3849     RECOMP_ICALL(0x4703A340u); /* 0x470A1788: call 0x4703a340 */ /* not lifted */
   3850     RECOMP_FLAGS_IN();
   3851     PUSH32(esp, 0x4710DB70u); /* 0x470A178D: push 0x4710db70 */
   3852     RECOMP_BACKEDGE();
   3853     goto L_470A15E0; /* 0x470A1792: jmp 0x470a15e0 */
   3854 L_470A1797:
   3855     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3856     eax = 0; /* 0x470A1797: xor eax, eax */
   3857     _cf = 0;
   3858     _flag_k = FK_TEST;
   3859 L_470A1799:
   3860     ecx = MEM32(esp + 0x14); /* 0x470A1799: mov ecx, dword ptr [esp + 0x14] */
   3861     edi = POP32_VAL(esp); /* 0x470A179D: pop edi */
   3862     esi = POP32_VAL(esp); /* 0x470A179E: pop esi */
   3863     ebp = POP32_VAL(esp); /* 0x470A179F: pop ebp */
   3864     ebx = POP32_VAL(esp); /* 0x470A17A0: pop ebx */
   3865     MEM32(FS_BASE + (0)) = ecx; /* 0x470A17A1: mov dword ptr fs:[0], ecx */
   3866     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3867     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3868     esp = esp + 0x10u; /* 0x470A17A8: add esp, 0x10 */
   3869     _flag_k = FK_ADD;
   3870     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x470A17AB: ret 0x18 */
   3871     RECOMP_REGS_OUT();
   3872 }
   3873 
   3874 void sub_470A15E0(void) {
   3875     int _fpu_cmp = 0;
   3876     uint32_t _cf = 0;
   3877     int _df = 1;
   3878     uint32_t _flag_k = FK_NONE;
   3879     uint32_t _flag_a = 0, _flag_b = 0;
   3880     uint32_t _itail_tgt = 0;
   3881     RECOMP_REGS_LOCALS
   3882     RECOMP_ENTER(0x470A15E0u);
   3883 
   3884 L_470A15E0:
   3885     PUSH32(esp, 0x471055F0u); /* 0x470A15E0: push 0x471055f0 */
   3886     PUSH32(esp, 0x80u); /* 0x470A15E5: push 0x80 */
   3887     PUSH32(esp, esi); /* 0x470A15EA: push esi */
   3888     RECOMP_ICALL(0x47039830u); /* 0x470A15EB: call 0x47039830 */ /* not lifted */
   3889     RECOMP_FLAGS_IN();
   3890     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3891     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3892     esp = esp + 0x10u; /* 0x470A15F0: add esp, 0x10 */
   3893     _flag_k = FK_ADD;
   3894     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3895     eax = eax | 0xFFFFFFFFu; /* 0x470A15F3: or eax, 0xffffffff */
   3896     _cf = 0;
   3897     _flag_k = FK_TEST;
   3898     goto L_470A1799; /* 0x470A15F6: jmp 0x470a1799 */
   3899 L_470A1799:
   3900     ecx = MEM32(esp + 0x14); /* 0x470A1799: mov ecx, dword ptr [esp + 0x14] */
   3901     edi = POP32_VAL(esp); /* 0x470A179D: pop edi */
   3902     esi = POP32_VAL(esp); /* 0x470A179E: pop esi */
   3903     ebp = POP32_VAL(esp); /* 0x470A179F: pop ebp */
   3904     ebx = POP32_VAL(esp); /* 0x470A17A0: pop ebx */
   3905     MEM32(FS_BASE + (0)) = ecx; /* 0x470A17A1: mov dword ptr fs:[0], ecx */
   3906     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3908     esp = esp + 0x10u; /* 0x470A17A8: add esp, 0x10 */
   3909     _flag_k = FK_ADD;
   3910     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x470A17AB: ret 0x18 */
   3911     RECOMP_REGS_OUT();
   3912 }
   3913 
   3914 void sub_470A15F3(void) {
   3915     int _fpu_cmp = 0;
   3916     uint32_t _cf = 0;
   3917     int _df = 1;
   3918     uint32_t _flag_k = FK_NONE;
   3919     uint32_t _flag_a = 0, _flag_b = 0;
   3920     uint32_t _itail_tgt = 0;
   3921     RECOMP_REGS_LOCALS
   3922     RECOMP_ENTER(0x470A15F3u);
   3923 
   3924 L_470A15F3:
   3925     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3926     eax = eax | 0xFFFFFFFFu; /* 0x470A15F3: or eax, 0xffffffff */
   3927     _cf = 0;
   3928     _flag_k = FK_TEST;
   3929     goto L_470A1799; /* 0x470A15F6: jmp 0x470a1799 */
   3930 L_470A1799:
   3931     ecx = MEM32(esp + 0x14); /* 0x470A1799: mov ecx, dword ptr [esp + 0x14] */
   3932     edi = POP32_VAL(esp); /* 0x470A179D: pop edi */
   3933     esi = POP32_VAL(esp); /* 0x470A179E: pop esi */
   3934     ebp = POP32_VAL(esp); /* 0x470A179F: pop ebp */
   3935     ebx = POP32_VAL(esp); /* 0x470A17A0: pop ebx */
   3936     MEM32(FS_BASE + (0)) = ecx; /* 0x470A17A1: mov dword ptr fs:[0], ecx */
   3937     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3939     esp = esp + 0x10u; /* 0x470A17A8: add esp, 0x10 */
   3940     _flag_k = FK_ADD;
   3941     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x470A17AB: ret 0x18 */
   3942     RECOMP_REGS_OUT();
   3943 }
   3944 
   3945 void sub_470A1659(void) {
   3946     int _fpu_cmp = 0;
   3947     uint32_t _cf = 0;
   3948     int _df = 1;
   3949     uint32_t _flag_k = FK_NONE;
   3950     uint32_t _flag_a = 0, _flag_b = 0;
   3951     uint32_t _itail_tgt = 0;
   3952     RECOMP_REGS_LOCALS
   3953     RECOMP_ENTER(0x470A1659u);
   3954 
   3955     goto L_470A1659;
   3956 L_470A15E0:
   3957     PUSH32(esp, 0x471055F0u); /* 0x470A15E0: push 0x471055f0 */
   3958     PUSH32(esp, 0x80u); /* 0x470A15E5: push 0x80 */
   3959     PUSH32(esp, esi); /* 0x470A15EA: push esi */
   3960     RECOMP_ICALL(0x47039830u); /* 0x470A15EB: call 0x47039830 */ /* not lifted */
   3961     RECOMP_FLAGS_IN();
   3962     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3963     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3964     esp = esp + 0x10u; /* 0x470A15F0: add esp, 0x10 */
   3965     _flag_k = FK_ADD;
   3966 L_470A15F3:
   3967     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3968     eax = eax | 0xFFFFFFFFu; /* 0x470A15F3: or eax, 0xffffffff */
   3969     _cf = 0;
   3970     _flag_k = FK_TEST;
   3971     goto L_470A1799; /* 0x470A15F6: jmp 0x470a1799 */
   3972 L_470A1659:
   3973     /* test esi, esi */ /* 0x470A1659: test esi, esi */
   3974     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3975     _cf = 0;
   3976     _flag_k = FK_TEST;
   3977     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A165B: mov dword ptr [esp + 0x1c], 0xffffffff */
   3978     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A1679; /* 0x470A1663: jne 0x470a1679 */
   3979 L_470A1665:
   3980     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1665: call dword ptr [0x470ac3c8] */
   3981     RECOMP_FLAGS_IN();
   3982     MEM32(eax) = 0xCu; /* 0x470A166B: mov dword ptr [eax], 0xc */
   3983     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3984     eax = eax | 0xFFFFFFFFu; /* 0x470A1671: or eax, 0xffffffff */
   3985     _cf = 0;
   3986     _flag_k = FK_TEST;
   3987     goto L_470A1799; /* 0x470A1674: jmp 0x470a1799 */
   3988 L_470A1679:
   3989     edx = MEM32(esi + 0x14); /* 0x470A1679: mov edx, dword ptr [esi + 0x14] */
   3990     eax = MEM32(edx + 0x8); /* 0x470A167C: mov eax, dword ptr [edx + 8] */
   3991     edx = MEM32(eax + esi + 0x14); /* 0x470A167F: mov edx, dword ptr [eax + esi + 0x14] */
   3992     ecx = eax + esi + 0x14; /* 0x470A1683: lea ecx, [eax + esi + 0x14] */
   3993     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470A1687: call dword ptr [edx + 4] */
   3994     RECOMP_FLAGS_IN();
   3995     ecx = MEM32(eax + 0x2C); /* 0x470A168A: mov ecx, dword ptr [eax + 0x2c] */
   3996     ebx = MEM32(ecx + 0x14); /* 0x470A168D: mov ebx, dword ptr [ecx + 0x14] */
   3997     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3998     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3999     ebx = ebx + MEM32(eax + 0x8); /* 0x470A1690: add ebx, dword ptr [eax + 8] */
   4000     _flag_k = FK_ADD;
   4001     edx = MEM32(esi + 0x14); /* 0x470A1693: mov edx, dword ptr [esi + 0x14] */
   4002     eax = MEM32(edx + 0x8); /* 0x470A1696: mov eax, dword ptr [edx + 8] */
   4003     ecx = eax + esi + 0x14; /* 0x470A1699: lea ecx, [eax + esi + 0x14] */
   4004     eax = MEM32(edx + 0x8); /* 0x470A169D: mov eax, dword ptr [edx + 8] */
   4005     MEM32(esp + 0x28) = ecx; /* 0x470A16A0: mov dword ptr [esp + 0x28], ecx */
   4006     ecx = eax + esi + 0x14; /* 0x470A16A4: lea ecx, [eax + esi + 0x14] */
   4007     eax = MEM32(edx + 0x8); /* 0x470A16A8: mov eax, dword ptr [edx + 8] */
   4008     edx = MEM32(eax + esi + 0x14); /* 0x470A16AB: mov edx, dword ptr [eax + esi + 0x14] */
   4009     MEM32(esp + 0x28) = ecx; /* 0x470A16AF: mov dword ptr [esp + 0x28], ecx */
   4010     PUSH32(esp, esi); /* 0x470A16B3: push esi */
   4011     ecx = esp + 0x14; /* 0x470A16B4: lea ecx, [esp + 0x14] */
   4012     PUSH32(esp, ecx); /* 0x470A16B8: push ecx */
   4013     edi = eax + esi + 0x14; /* 0x470A16B9: lea edi, [eax + esi + 0x14] */
   4014     PUSH32(esp, 0x20u); /* 0x470A16BD: push 0x20 */
   4015     PUSH32(esp, 0x20u); /* 0x470A16BF: push 0x20 */
   4016     ecx = edi; /* 0x470A16C1: mov ecx, edi */
   4017     RECOMP_ICALL(MEM32(edx)); /* 0x470A16C3: call dword ptr [edx] */
   4018     RECOMP_FLAGS_IN();
   4019     PUSH32(esp, eax); /* 0x470A16C5: push eax */
   4020     eax = MEM32(edi); /* 0x470A16C6: mov eax, dword ptr [edi] */
   4021     PUSH32(esp, ebx); /* 0x470A16C8: push ebx */
   4022     ecx = edi; /* 0x470A16C9: mov ecx, edi */
   4023     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470A16CB: call dword ptr [eax + 0xc] */
   4024     RECOMP_FLAGS_IN();
   4025     edx = MEM32(edi); /* 0x470A16CE: mov edx, dword ptr [edi] */
   4026     PUSH32(esp, eax); /* 0x470A16D0: push eax */
   4027     ecx = edi; /* 0x470A16D1: mov ecx, edi */
   4028     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A16D3: call dword ptr [edx + 8] */
   4029     RECOMP_FLAGS_IN();
   4030     PUSH32(esp, eax); /* 0x470A16D6: push eax */
   4031     RECOMP_ICALL(0x470A3296u); /* 0x470A16D7: call 0x470a3296 */ /* not lifted */
   4032     RECOMP_FLAGS_IN();
   4033     /* cmp eax, 1 */ /* 0x470A16DC: cmp eax, 1 */
   4034     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4036     _flag_k = FK_CMP;
   4037     if (CMP_NE(_flag_a, _flag_b)) goto L_470A16E6; /* 0x470A16DF: jne 0x470a16e6 */
   4038 L_470A16E1:
   4039     goto L_470A1799; /* 0x470A16E1: jmp 0x470a1799 */
   4040 L_470A16E6:
   4041     edi = MEM32(0x470AC3C8); /* 0x470A16E6: mov edi, dword ptr [0x470ac3c8] */
   4042     RECOMP_ICALL(edi); /* 0x470A16EC: call edi */
   4043     RECOMP_FLAGS_IN();
   4044     ebp = MEM32(0x470AC150); /* 0x470A16EE: mov ebp, dword ptr [0x470ac150] */
   4045     ebx = eax; /* 0x470A16F4: mov ebx, eax */
   4046     RECOMP_ICALL(ebp); /* 0x470A16F6: call ebp */
   4047     RECOMP_FLAGS_IN();
   4048     MEM32(ebx) = eax; /* 0x470A16F8: mov dword ptr [ebx], eax */
   4049     RECOMP_ICALL(edi); /* 0x470A16FA: call edi */
   4050     RECOMP_FLAGS_IN();
   4051     /* cmp MEM32(eax), 0x3E5u */ /* 0x470A16FC: cmp dword ptr [eax], 0x3e5 */
   4052     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x3E5u);
   4053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4054     _flag_k = FK_CMP;
   4055     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A1797; /* 0x470A1702: je 0x470a1797 */
   4056 L_470A1708:
   4057     /* cmp MEM32(esp + 0x24), 1 */ /* 0x470A1708: cmp dword ptr [esp + 0x24], 1 */
   4058     _flag_a = (uint32_t)(MEM32(esp + 0x24)); _flag_b = (uint32_t)(1);
   4059     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4060     _flag_k = FK_CMP;
   4061     if (CMP_NE(_flag_a, _flag_b)) goto L_470A172B; /* 0x470A170D: jne 0x470a172b */
   4062 L_470A170F:
   4063     eax = MEM32(esp + 0x2C); /* 0x470A170F: mov eax, dword ptr [esp + 0x2c] */
   4064     PUSH32(esp, eax); /* 0x470A1713: push eax */
   4065     RECOMP_ICALL(MEM32(0x470AC428)); /* 0x470A1714: call dword ptr [0x470ac428] */
   4066     RECOMP_FLAGS_IN();
   4067     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A171A: cmp eax, -1 */
   4068     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4069     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4070     _flag_k = FK_CMP;
   4071     if (CMP_NE(_flag_a, _flag_b)) goto L_470A172B; /* 0x470A171D: jne 0x470a172b */
   4072 L_470A171F:
   4073     RECOMP_ICALL(MEM32(0x470AC4A4)); /* 0x470A171F: call dword ptr [0x470ac4a4] */
   4074     RECOMP_FLAGS_IN();
   4075     ebx = eax; /* 0x470A1725: mov ebx, eax */
   4076     RECOMP_ICALL(edi); /* 0x470A1727: call edi */
   4077     RECOMP_FLAGS_IN();
   4078     MEM32(eax) = ebx; /* 0x470A1729: mov dword ptr [eax], ebx */
   4079 L_470A172B:
   4080     ecx = MEM32(esi + 0x14); /* 0x470A172B: mov ecx, dword ptr [esi + 0x14] */
   4081     edx = MEM32(ecx + 0x4); /* 0x470A172E: mov edx, dword ptr [ecx + 4] */
   4082     eax = MEM32(edx + esi + 0x14); /* 0x470A1731: mov eax, dword ptr [edx + esi + 0x14] */
   4083     ecx = edx + esi + 0x14; /* 0x470A1735: lea ecx, [edx + esi + 0x14] */
   4084     PUSH32(esp, 1); /* 0x470A1739: push 1 */
   4085     RECOMP_ICALL(MEM32(eax)); /* 0x470A173B: call dword ptr [eax] */
   4086     RECOMP_FLAGS_IN();
   4087     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A173D: mov al, byte ptr [0x4710de04] */
   4088     /* test LO8(eax), LO8(eax) */ /* 0x470A1742: test al, al */
   4089     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4090     _cf = 0;
   4091     _flag_k = FK_NARROW(FK_TEST, 24);
   4092     RECOMP_BACKEDGE();
   4093     if (TEST_Z(_flag_a, _flag_b)) goto L_470A15F3; /* 0x470A1744: je 0x470a15f3 */
   4094 L_470A174A:
   4095     RECOMP_ICALL(ebp); /* 0x470A174A: call ebp */
   4096     RECOMP_FLAGS_IN();
   4097     esi = eax; /* 0x470A174C: mov esi, eax */
   4098     RECOMP_ICALL(edi); /* 0x470A174E: call edi */
   4099     RECOMP_FLAGS_IN();
   4100     eax = MEM32(eax); /* 0x470A1750: mov eax, dword ptr [eax] */
   4101     /* test eax, eax */ /* 0x470A1752: test eax, eax */
   4102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4103     _cf = 0;
   4104     _flag_k = FK_TEST;
   4105     edi = esi; /* 0x470A1754: mov edi, esi */
   4106     if (TEST_Z(_flag_a, _flag_b)) goto L_470A175A; /* 0x470A1756: je 0x470a175a */
   4107 L_470A1758:
   4108     edi = eax; /* 0x470A1758: mov edi, eax */
   4109 L_470A175A:
   4110     RECOMP_ICALL(0x47039020u); /* 0x470A175A: call 0x47039020 */ /* not lifted */
   4111     RECOMP_FLAGS_IN();
   4112     esi = eax; /* 0x470A175F: mov esi, eax */
   4113     ecx = esi; /* 0x470A1761: mov ecx, esi */
   4114     RECOMP_ICALL(0x4703B210u); /* 0x470A1763: call 0x4703b210 */ /* not lifted */
   4115     RECOMP_FLAGS_IN();
   4116     PUSH32(esp, eax); /* 0x470A1768: push eax */
   4117     ecx = esi; /* 0x470A1769: mov ecx, esi */
   4118     RECOMP_ICALL(0x4703B240u); /* 0x470A176B: call 0x4703b240 */ /* not lifted */
   4119     RECOMP_FLAGS_IN();
   4120     PUSH32(esp, eax); /* 0x470A1770: push eax */
   4121     ecx = esi; /* 0x470A1771: mov ecx, esi */
   4122     RECOMP_ICALL(0x4703B080u); /* 0x470A1773: call 0x4703b080 */ /* not lifted */
   4123     RECOMP_FLAGS_IN();
   4124     PUSH32(esp, eax); /* 0x470A1778: push eax */
   4125     PUSH32(esp, edi); /* 0x470A1779: push edi */
   4126     PUSH32(esp, 0); /* 0x470A177A: push 0 */
   4127     PUSH32(esp, 0x561u); /* 0x470A177C: push 0x561 */
   4128     PUSH32(esp, 0x4710DB30u); /* 0x470A1781: push 0x4710db30 */
   4129     ecx = esi; /* 0x470A1786: mov ecx, esi */
   4130     RECOMP_ICALL(0x4703A340u); /* 0x470A1788: call 0x4703a340 */ /* not lifted */
   4131     RECOMP_FLAGS_IN();
   4132     PUSH32(esp, 0x4710DB70u); /* 0x470A178D: push 0x4710db70 */
   4133     RECOMP_BACKEDGE();
   4134     goto L_470A15E0; /* 0x470A1792: jmp 0x470a15e0 */
   4135 L_470A1797:
   4136     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4137     eax = 0; /* 0x470A1797: xor eax, eax */
   4138     _cf = 0;
   4139     _flag_k = FK_TEST;
   4140 L_470A1799:
   4141     ecx = MEM32(esp + 0x14); /* 0x470A1799: mov ecx, dword ptr [esp + 0x14] */
   4142     edi = POP32_VAL(esp); /* 0x470A179D: pop edi */
   4143     esi = POP32_VAL(esp); /* 0x470A179E: pop esi */
   4144     ebp = POP32_VAL(esp); /* 0x470A179F: pop ebp */
   4145     ebx = POP32_VAL(esp); /* 0x470A17A0: pop ebx */
   4146     MEM32(FS_BASE + (0)) = ecx; /* 0x470A17A1: mov dword ptr fs:[0], ecx */
   4147     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4148     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4149     esp = esp + 0x10u; /* 0x470A17A8: add esp, 0x10 */
   4150     _flag_k = FK_ADD;
   4151     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x470A17AB: ret 0x18 */
   4152     RECOMP_REGS_OUT();
   4153 }
   4154 
   4155 void sub_470A1799(void) {
   4156     int _fpu_cmp = 0;
   4157     uint32_t _cf = 0;
   4158     int _df = 1;
   4159     uint32_t _flag_k = FK_NONE;
   4160     uint32_t _flag_a = 0, _flag_b = 0;
   4161     uint32_t _itail_tgt = 0;
   4162     RECOMP_REGS_LOCALS
   4163     RECOMP_ENTER(0x470A1799u);
   4164 
   4165 L_470A1799:
   4166     ecx = MEM32(esp + 0x14); /* 0x470A1799: mov ecx, dword ptr [esp + 0x14] */
   4167     edi = POP32_VAL(esp); /* 0x470A179D: pop edi */
   4168     esi = POP32_VAL(esp); /* 0x470A179E: pop esi */
   4169     ebp = POP32_VAL(esp); /* 0x470A179F: pop ebp */
   4170     ebx = POP32_VAL(esp); /* 0x470A17A0: pop ebx */
   4171     MEM32(FS_BASE + (0)) = ecx; /* 0x470A17A1: mov dword ptr fs:[0], ecx */
   4172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4173     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4174     esp = esp + 0x10u; /* 0x470A17A8: add esp, 0x10 */
   4175     _flag_k = FK_ADD;
   4176     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x470A17AB: ret 0x18 */
   4177     RECOMP_REGS_OUT();
   4178 }
   4179 
   4180 void sub_470A17B0(void) {
   4181     int _fpu_cmp = 0;
   4182     uint32_t _cf = 0;
   4183     int _df = 1;
   4184     uint32_t _flag_k = FK_NONE;
   4185     uint32_t _flag_a = 0, _flag_b = 0;
   4186     uint32_t _itail_tgt = 0;
   4187     RECOMP_REGS_LOCALS
   4188     RECOMP_ENTER(0x470A17B0u);
   4189 
   4190 L_470A17B0:
   4191     eax = MEM32(ecx + (-0x18)); /* 0x470A17B0: mov eax, dword ptr [ecx - 0x18] */
   4192     edx = MEM32(eax + 0x4); /* 0x470A17B3: mov edx, dword ptr [eax + 4] */
   4193     MEM32(edx + ecx + (-0x18)) = 0x470AE660u; /* 0x470A17B6: mov dword ptr [edx + ecx - 0x18], 0x470ae660 */
   4194     eax = MEM32(ecx + (-0x18)); /* 0x470A17BE: mov eax, dword ptr [ecx - 0x18] */
   4195     edx = MEM32(eax + 0x8); /* 0x470A17C1: mov edx, dword ptr [eax + 8] */
   4196     MEM32(edx + ecx + (-0x18)) = 0x470AE65Cu; /* 0x470A17C4: mov dword ptr [edx + ecx - 0x18], 0x470ae65c */
   4197     eax = MEM32(ecx + (-0x18)); /* 0x470A17CC: mov eax, dword ptr [ecx - 0x18] */
   4198     eax = MEM32(eax + 0x4); /* 0x470A17CF: mov eax, dword ptr [eax + 4] */
   4199     edx = eax + (-0x18); /* 0x470A17D2: lea edx, [eax - 0x18] */
   4200     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A17D5: mov dword ptr [eax + ecx - 0x1c], edx */
   4201     eax = MEM32(ecx + (-0x18)); /* 0x470A17D9: mov eax, dword ptr [ecx - 0x18] */
   4202     eax = MEM32(eax + 0x8); /* 0x470A17DC: mov eax, dword ptr [eax + 8] */
   4203     edx = eax + (-0x20); /* 0x470A17DF: lea edx, [eax - 0x20] */
   4204     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A17E2: mov dword ptr [eax + ecx - 0x1c], edx */
   4205     eax = MEM32(ecx + (-0x18)); /* 0x470A17E6: mov eax, dword ptr [ecx - 0x18] */
   4206     edx = MEM32(eax + 0x4); /* 0x470A17E9: mov edx, dword ptr [eax + 4] */
   4207     MEM32(edx + ecx + (-0x18)) = 0x470AE39Cu; /* 0x470A17EC: mov dword ptr [edx + ecx - 0x18], 0x470ae39c */
   4208     eax = MEM32(ecx + (-0x18)); /* 0x470A17F4: mov eax, dword ptr [ecx - 0x18] */
   4209     eax = MEM32(eax + 0x4); /* 0x470A17F7: mov eax, dword ptr [eax + 4] */
   4210     edx = eax + (-0x18); /* 0x470A17FA: lea edx, [eax - 0x18] */
   4211     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A17FD: mov dword ptr [eax + ecx - 0x1c], edx */
   4212     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1801: ret  */
   4213     RECOMP_REGS_OUT();
   4214 }
   4215 
   4216 void sub_470A1810(void) {
   4217     int _fpu_cmp = 0;
   4218     uint32_t _cf = 0;
   4219     int _df = 1;
   4220     uint32_t _flag_k = FK_NONE;
   4221     uint32_t _flag_a = 0, _flag_b = 0;
   4222     uint32_t _itail_tgt = 0;
   4223     RECOMP_REGS_LOCALS
   4224     RECOMP_ENTER(0x470A1810u);
   4225 
   4226 L_470A1810:
   4227     PUSH32(esp, ecx); /* 0x470A1810: push ecx */
   4228     eax = MEM32(esp + 0x3C); /* 0x470A1811: mov eax, dword ptr [esp + 0x3c] */
   4229     /* test eax, eax */ /* 0x470A1815: test eax, eax */
   4230     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4231     _cf = 0;
   4232     _flag_k = FK_TEST;
   4233     PUSH32(esp, esi); /* 0x470A1817: push esi */
   4234     esi = ecx; /* 0x470A1818: mov esi, ecx */
   4235     MEM32(esp + 0x4) = 0; /* 0x470A181A: mov dword ptr [esp + 4], 0 */
   4236     if (TEST_Z(_flag_a, _flag_b)) goto L_470A184E; /* 0x470A1822: je 0x470a184e */
   4237 L_470A1824:
   4238     MEM32(esi + 0x14) = 0x470AE6D8u; /* 0x470A1824: mov dword ptr [esi + 0x14], 0x470ae6d8 */
   4239     MEM32(esi + 0x58) = 0x470AE6D0u; /* 0x470A182B: mov dword ptr [esi + 0x58], 0x470ae6d0 */
   4240     MEM32(esi + 0x4C) = 0x470ACC18u; /* 0x470A1832: mov dword ptr [esi + 0x4c], 0x470acc18 */
   4241     eax = MEM32(esi + 0x58); /* 0x470A1839: mov eax, dword ptr [esi + 0x58] */
   4242     MEM32(esi + 0x54) = 0x470ACEC0u; /* 0x470A183C: mov dword ptr [esi + 0x54], 0x470acec0 */
   4243     ecx = MEM32(eax + 0x4); /* 0x470A1843: mov ecx, dword ptr [eax + 4] */
   4244     MEM32(ecx + esi + 0x58) = 0x470ACE8Cu; /* 0x470A1846: mov dword ptr [ecx + esi + 0x58], 0x470ace8c */
   4245 L_470A184E:
   4246     edx = MEM32(esp + 0x3C); /* 0x470A184E: mov edx, dword ptr [esp + 0x3c] */
   4247     eax = MEM32(esp + 0x38); /* 0x470A1852: mov eax, dword ptr [esp + 0x38] */
   4248     ecx = MEM32(esp + 0x24); /* 0x470A1856: mov ecx, dword ptr [esp + 0x24] */
   4249     PUSH32(esp, 0); /* 0x470A185A: push 0 */
   4250     PUSH32(esp, edx); /* 0x470A185C: push edx */
   4251     edx = MEM32(esp + 0x28); /* 0x470A185D: mov edx, dword ptr [esp + 0x28] */
   4252     PUSH32(esp, eax); /* 0x470A1861: push eax */
   4253     eax = MEM32(esp + 0x40); /* 0x470A1862: mov eax, dword ptr [esp + 0x40] */
   4254     PUSH32(esp, ecx); /* 0x470A1866: push ecx */
   4255     ecx = MEM32(esp + 0x40); /* 0x470A1867: mov ecx, dword ptr [esp + 0x40] */
   4256     PUSH32(esp, edx); /* 0x470A186B: push edx */
   4257     edx = MEM32(esp + 0x20); /* 0x470A186C: mov edx, dword ptr [esp + 0x20] */
   4258     PUSH32(esp, eax); /* 0x470A1870: push eax */
   4259     PUSH32(esp, ecx); /* 0x470A1871: push ecx */
   4260     PUSH32(esp, edx); /* 0x470A1872: push edx */
   4261     ecx = esi; /* 0x470A1873: mov ecx, esi */
   4262     RECOMP_ICALL(0x4709FC20u); /* 0x470A1875: call 0x4709fc20 */ /* not lifted */
   4263     RECOMP_FLAGS_IN();
   4264     eax = MEM32(esp + 0x10); /* 0x470A187A: mov eax, dword ptr [esp + 0x10] */
   4265     ecx = MEM32(esp + 0x14); /* 0x470A187E: mov ecx, dword ptr [esp + 0x14] */
   4266     edx = MEM32(esp + 0x18); /* 0x470A1882: mov edx, dword ptr [esp + 0x18] */
   4267     MEM32(esi + 0x30) = eax; /* 0x470A1886: mov dword ptr [esi + 0x30], eax */
   4268     eax = MEM32(esp + 0x1C); /* 0x470A1889: mov eax, dword ptr [esp + 0x1c] */
   4269     MEM32(esi + 0x34) = ecx; /* 0x470A188D: mov dword ptr [esi + 0x34], ecx */
   4270     ecx = MEM32(esp + 0x28); /* 0x470A1890: mov ecx, dword ptr [esp + 0x28] */
   4271     MEM32(esi + 0x38) = edx; /* 0x470A1894: mov dword ptr [esi + 0x38], edx */
   4272     edx = MEM32(esp + 0x2C); /* 0x470A1897: mov edx, dword ptr [esp + 0x2c] */
   4273     MEM32(esi + 0x3C) = eax; /* 0x470A189B: mov dword ptr [esi + 0x3c], eax */
   4274     eax = MEM32(esi + 0x14); /* 0x470A189E: mov eax, dword ptr [esi + 0x14] */
   4275     MEM32(esi + 0x40) = ecx; /* 0x470A18A1: mov dword ptr [esi + 0x40], ecx */
   4276     MEM32(esi + 0x44) = edx; /* 0x470A18A4: mov dword ptr [esi + 0x44], edx */
   4277     ecx = MEM32(eax + 0x4); /* 0x470A18A7: mov ecx, dword ptr [eax + 4] */
   4278     MEM32(ecx + esi + 0x14) = 0x470AE69Cu; /* 0x470A18AA: mov dword ptr [ecx + esi + 0x14], 0x470ae69c */
   4279     edx = MEM32(esi + 0x14); /* 0x470A18B2: mov edx, dword ptr [esi + 0x14] */
   4280     eax = MEM32(edx + 0x8); /* 0x470A18B5: mov eax, dword ptr [edx + 8] */
   4281     MEM32(eax + esi + 0x14) = 0x470AE684u; /* 0x470A18B8: mov dword ptr [eax + esi + 0x14], 0x470ae684 */
   4282     ecx = MEM32(esi + 0x14); /* 0x470A18C0: mov ecx, dword ptr [esi + 0x14] */
   4283     eax = MEM32(ecx + 0x4); /* 0x470A18C3: mov eax, dword ptr [ecx + 4] */
   4284     edx = eax + (-0x38); /* 0x470A18C6: lea edx, [eax - 0x38] */
   4285     MEM32(eax + esi + 0x10) = edx; /* 0x470A18C9: mov dword ptr [eax + esi + 0x10], edx */
   4286     eax = MEM32(esi + 0x14); /* 0x470A18CD: mov eax, dword ptr [esi + 0x14] */
   4287     eax = MEM32(eax + 0x8); /* 0x470A18D0: mov eax, dword ptr [eax + 8] */
   4288     ecx = eax + (-0x40); /* 0x470A18D3: lea ecx, [eax - 0x40] */
   4289     MEM32(eax + esi + 0x10) = ecx; /* 0x470A18D6: mov dword ptr [eax + esi + 0x10], ecx */
   4290     eax = esi; /* 0x470A18DA: mov eax, esi */
   4291     esi = POP32_VAL(esp); /* 0x470A18DC: pop esi */
   4292     ecx = POP32_VAL(esp); /* 0x470A18DD: pop ecx */
   4293     RECOMP_FLAGS_OUT(); esp += 60; { RECOMP_REGS_OUT(); return; } /* 0x470A18DE: ret 0x38 */
   4294     RECOMP_REGS_OUT();
   4295 }
   4296 
   4297 void sub_470A18F0(void) {
   4298     int _fpu_cmp = 0;
   4299     uint32_t _cf = 0;
   4300     int _df = 1;
   4301     uint32_t _flag_k = FK_NONE;
   4302     uint32_t _flag_a = 0, _flag_b = 0;
   4303     uint32_t _itail_tgt = 0;
   4304     RECOMP_REGS_LOCALS
   4305     RECOMP_ENTER(0x470A18F0u);
   4306 
   4307 L_470A18F0:
   4308     eax = MEM32(FS_BASE + (0)); /* 0x470A18F0: mov eax, dword ptr fs:[0] */
   4309     edx = MEM32(esp + 0xC); /* 0x470A18F6: mov edx, dword ptr [esp + 0xc] */
   4310     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A18FA: push -1 */
   4311     PUSH32(esp, 0x470ABCA8u); /* 0x470A18FC: push 0x470abca8 */
   4312     PUSH32(esp, eax); /* 0x470A1901: push eax */
   4313     eax = MEM32(esp + 0x10); /* 0x470A1902: mov eax, dword ptr [esp + 0x10] */
   4314     MEM32(FS_BASE + (0)) = esp; /* 0x470A1906: mov dword ptr fs:[0], esp */
   4315     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4317     esp = esp - 0xCu; /* 0x470A190D: sub esp, 0xc */
   4318     _flag_k = FK_CMP;
   4319     PUSH32(esp, esi); /* 0x470A1910: push esi */
   4320     esi = ecx; /* 0x470A1911: mov esi, ecx */
   4321     ecx = MEM32(esp + 0x24); /* 0x470A1913: mov ecx, dword ptr [esp + 0x24] */
   4322     MEM32(esi + (-0x2C)) = eax; /* 0x470A1917: mov dword ptr [esi - 0x2c], eax */
   4323     eax = MEM32(esp + 0x2C); /* 0x470A191A: mov eax, dword ptr [esp + 0x2c] */
   4324     MEM32(esi + (-0x28)) = ecx; /* 0x470A191E: mov dword ptr [esi - 0x28], ecx */
   4325     ecx = esi + (-0x4C); /* 0x470A1921: lea ecx, [esi - 0x4c] */
   4326     /* test ecx, ecx */ /* 0x470A1924: test ecx, ecx */
   4327     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4328     _cf = 0;
   4329     _flag_k = FK_TEST;
   4330     MEM32(esi + (-0x24)) = edx; /* 0x470A1926: mov dword ptr [esi - 0x24], edx */
   4331     MEM32(esi + (-0x20)) = eax; /* 0x470A1929: mov dword ptr [esi - 0x20], eax */
   4332     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A1932; /* 0x470A192C: jne 0x470a1932 */
   4333 L_470A192E:
   4334     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4335     eax = 0; /* 0x470A192E: xor eax, eax */
   4336     _cf = 0;
   4337     _flag_k = FK_TEST;
   4338     goto L_470A193C; /* 0x470A1930: jmp 0x470a193c */
   4339 L_470A1932:
   4340     edx = MEM32(esi + (-0x38)); /* 0x470A1932: mov edx, dword ptr [esi - 0x38] */
   4341     eax = MEM32(edx + 0x8); /* 0x470A1935: mov eax, dword ptr [edx + 8] */
   4342     eax = eax + esi + (-0x38); /* 0x470A1938: lea eax, [eax + esi - 0x38] */
   4343 L_470A193C:
   4344     PUSH32(esp, eax); /* 0x470A193C: push eax */
   4345     ecx = esp + 0x8; /* 0x470A193D: lea ecx, [esp + 8] */
   4346     RECOMP_ICALL(0x47018330u); /* 0x470A1941: call 0x47018330 */ /* not lifted */
   4347     RECOMP_FLAGS_IN();
   4348     ecx = MEM32(esi + (-0x34)); /* 0x470A1946: mov ecx, dword ptr [esi - 0x34] */
   4349     edx = MEM32(ecx); /* 0x470A1949: mov edx, dword ptr [ecx] */
   4350     eax = esp + 0x4; /* 0x470A194B: lea eax, [esp + 4] */
   4351     PUSH32(esp, eax); /* 0x470A194F: push eax */
   4352     MEM32(esp + 0x1C) = 0; /* 0x470A1950: mov dword ptr [esp + 0x1c], 0 */
   4353     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x470A1958: call dword ptr [edx + 0x18] */
   4354     RECOMP_FLAGS_IN();
   4355     ecx = esp + 0x4; /* 0x470A195B: lea ecx, [esp + 4] */
   4356     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470A195F: mov dword ptr [esp + 0x18], 0xffffffff */
   4357     RECOMP_ICALL(0x47017E00u); /* 0x470A1967: call 0x47017e00 */ /* not lifted */
   4358     RECOMP_FLAGS_IN();
   4359     ecx = MEM32(esp + 0x10); /* 0x470A196C: mov ecx, dword ptr [esp + 0x10] */
   4360     esi = POP32_VAL(esp); /* 0x470A1970: pop esi */
   4361     MEM32(FS_BASE + (0)) = ecx; /* 0x470A1971: mov dword ptr fs:[0], ecx */
   4362     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   4363     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4364     esp = esp + 0x18u; /* 0x470A1978: add esp, 0x18 */
   4365     _flag_k = FK_ADD;
   4366     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A197B: ret 0x10 */
   4367     RECOMP_REGS_OUT();
   4368 }
   4369 
   4370 void sub_470A193C(void) {
   4371     int _fpu_cmp = 0;
   4372     uint32_t _cf = 0;
   4373     int _df = 1;
   4374     uint32_t _flag_k = FK_NONE;
   4375     uint32_t _flag_a = 0, _flag_b = 0;
   4376     uint32_t _itail_tgt = 0;
   4377     RECOMP_REGS_LOCALS
   4378     RECOMP_ENTER(0x470A193Cu);
   4379 
   4380 L_470A193C:
   4381     PUSH32(esp, eax); /* 0x470A193C: push eax */
   4382     ecx = esp + 0x8; /* 0x470A193D: lea ecx, [esp + 8] */
   4383     RECOMP_ICALL(0x47018330u); /* 0x470A1941: call 0x47018330 */ /* not lifted */
   4384     RECOMP_FLAGS_IN();
   4385     ecx = MEM32(esi + (-0x34)); /* 0x470A1946: mov ecx, dword ptr [esi - 0x34] */
   4386     edx = MEM32(ecx); /* 0x470A1949: mov edx, dword ptr [ecx] */
   4387     eax = esp + 0x4; /* 0x470A194B: lea eax, [esp + 4] */
   4388     PUSH32(esp, eax); /* 0x470A194F: push eax */
   4389     MEM32(esp + 0x1C) = 0; /* 0x470A1950: mov dword ptr [esp + 0x1c], 0 */
   4390     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x470A1958: call dword ptr [edx + 0x18] */
   4391     RECOMP_FLAGS_IN();
   4392     ecx = esp + 0x4; /* 0x470A195B: lea ecx, [esp + 4] */
   4393     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470A195F: mov dword ptr [esp + 0x18], 0xffffffff */
   4394     RECOMP_ICALL(0x47017E00u); /* 0x470A1967: call 0x47017e00 */ /* not lifted */
   4395     RECOMP_FLAGS_IN();
   4396     ecx = MEM32(esp + 0x10); /* 0x470A196C: mov ecx, dword ptr [esp + 0x10] */
   4397     esi = POP32_VAL(esp); /* 0x470A1970: pop esi */
   4398     MEM32(FS_BASE + (0)) = ecx; /* 0x470A1971: mov dword ptr fs:[0], ecx */
   4399     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   4400     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4401     esp = esp + 0x18u; /* 0x470A1978: add esp, 0x18 */
   4402     _flag_k = FK_ADD;
   4403     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A197B: ret 0x10 */
   4404     RECOMP_REGS_OUT();
   4405 }
   4406 
   4407 void sub_470A1980(void) {
   4408     int _fpu_cmp = 0;
   4409     uint32_t _cf = 0;
   4410     int _df = 1;
   4411     uint32_t _flag_k = FK_NONE;
   4412     uint32_t _flag_a = 0, _flag_b = 0;
   4413     uint32_t _itail_tgt = 0;
   4414     RECOMP_REGS_LOCALS
   4415     RECOMP_ENTER(0x470A1980u);
   4416 
   4417 L_470A1980:
   4418     eax = MEM32(ecx + (-0x38)); /* 0x470A1980: mov eax, dword ptr [ecx - 0x38] */
   4419     edx = MEM32(eax + 0x4); /* 0x470A1983: mov edx, dword ptr [eax + 4] */
   4420     MEM32(edx + ecx + (-0x38)) = 0x470AE69Cu; /* 0x470A1986: mov dword ptr [edx + ecx - 0x38], 0x470ae69c */
   4421     eax = MEM32(ecx + (-0x38)); /* 0x470A198E: mov eax, dword ptr [ecx - 0x38] */
   4422     edx = MEM32(eax + 0x8); /* 0x470A1991: mov edx, dword ptr [eax + 8] */
   4423     MEM32(edx + ecx + (-0x38)) = 0x470AE684u; /* 0x470A1994: mov dword ptr [edx + ecx - 0x38], 0x470ae684 */
   4424     eax = MEM32(ecx + (-0x38)); /* 0x470A199C: mov eax, dword ptr [ecx - 0x38] */
   4425     eax = MEM32(eax + 0x4); /* 0x470A199F: mov eax, dword ptr [eax + 4] */
   4426     edx = eax + (-0x38); /* 0x470A19A2: lea edx, [eax - 0x38] */
   4427     MEM32(eax + ecx + (-0x3C)) = edx; /* 0x470A19A5: mov dword ptr [eax + ecx - 0x3c], edx */
   4428     eax = MEM32(ecx + (-0x38)); /* 0x470A19A9: mov eax, dword ptr [ecx - 0x38] */
   4429     eax = MEM32(eax + 0x8); /* 0x470A19AC: mov eax, dword ptr [eax + 8] */
   4430     edx = eax + (-0x40); /* 0x470A19AF: lea edx, [eax - 0x40] */
   4431     MEM32(eax + ecx + (-0x3C)) = edx; /* 0x470A19B2: mov dword ptr [eax + ecx - 0x3c], edx */
   4432     eax = MEM32(ecx + (-0x38)); /* 0x470A19B6: mov eax, dword ptr [ecx - 0x38] */
   4433     edx = MEM32(eax + 0x4); /* 0x470A19B9: mov edx, dword ptr [eax + 4] */
   4434     MEM32(edx + ecx + (-0x38)) = 0x470AE360u; /* 0x470A19BC: mov dword ptr [edx + ecx - 0x38], 0x470ae360 */
   4435     eax = MEM32(ecx + (-0x38)); /* 0x470A19C4: mov eax, dword ptr [ecx - 0x38] */
   4436     eax = MEM32(eax + 0x4); /* 0x470A19C7: mov eax, dword ptr [eax + 4] */
   4437     edx = eax + (-0x20); /* 0x470A19CA: lea edx, [eax - 0x20] */
   4438     MEM32(eax + ecx + (-0x3C)) = edx; /* 0x470A19CD: mov dword ptr [eax + ecx - 0x3c], edx */
   4439     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A19D1: ret  */
   4440     RECOMP_REGS_OUT();
   4441 }
   4442 
   4443 void sub_470A19E0(void) {
   4444     int _fpu_cmp = 0;
   4445     uint32_t _cf = 0;
   4446     int _df = 1;
   4447     uint32_t _flag_k = FK_NONE;
   4448     uint32_t _flag_a = 0, _flag_b = 0;
   4449     uint32_t _itail_tgt = 0;
   4450     RECOMP_REGS_LOCALS
   4451     RECOMP_ENTER(0x470A19E0u);
   4452 
   4453 L_470A19E0:
   4454     eax = MEM32(ecx + (-0x3C)); /* 0x470A19E0: mov eax, dword ptr [ecx - 0x3c] */
   4455     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A19E3: ret  */
   4456     RECOMP_REGS_OUT();
   4457 }
   4458 
   4459 void sub_470A19F0(void) {
   4460     int _fpu_cmp = 0;
   4461     uint32_t _cf = 0;
   4462     int _df = 1;
   4463     uint32_t _flag_k = FK_NONE;
   4464     uint32_t _flag_a = 0, _flag_b = 0;
   4465     uint32_t _itail_tgt = 0;
   4466     RECOMP_REGS_LOCALS
   4467     RECOMP_ENTER(0x470A19F0u);
   4468 
   4469 L_470A19F0:
   4470     eax = MEM32(ecx + (-0x44)); /* 0x470A19F0: mov eax, dword ptr [ecx - 0x44] */
   4471     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A19F3: ret  */
   4472     RECOMP_REGS_OUT();
   4473 }
   4474 
   4475 void sub_470A1A00(void) {
   4476     int _fpu_cmp = 0;
   4477     uint32_t _cf = 0;
   4478     int _df = 1;
   4479     uint32_t _flag_k = FK_NONE;
   4480     uint32_t _flag_a = 0, _flag_b = 0;
   4481     uint32_t _itail_tgt = 0;
   4482     RECOMP_REGS_LOCALS
   4483     RECOMP_ENTER(0x470A1A00u);
   4484 
   4485 L_470A1A00:
   4486     eax = MEM32(ecx + (-0x40)); /* 0x470A1A00: mov eax, dword ptr [ecx - 0x40] */
   4487     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1A03: ret  */
   4488     RECOMP_REGS_OUT();
   4489 }
   4490 
   4491 void sub_470A1A10(void) {
   4492     int _fpu_cmp = 0;
   4493     uint32_t _cf = 0;
   4494     int _df = 1;
   4495     uint32_t _flag_k = FK_NONE;
   4496     uint32_t _flag_a = 0, _flag_b = 0;
   4497     uint32_t _itail_tgt = 0;
   4498     RECOMP_REGS_LOCALS
   4499     RECOMP_ENTER(0x470A1A10u);
   4500 
   4501 L_470A1A10:
   4502     eax = MEM32(esp + 0x4); /* 0x470A1A10: mov eax, dword ptr [esp + 4] */
   4503     /* test eax, eax */ /* 0x470A1A14: test eax, eax */
   4504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4505     _cf = 0;
   4506     _flag_k = FK_TEST;
   4507     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A1A7B; /* 0x470A1A16: jne 0x470a1a7b */
   4508 L_470A1A18:
   4509     PUSH32(esp, esi); /* 0x470A1A18: push esi */
   4510     PUSH32(esp, edi); /* 0x470A1A19: push edi */
   4511     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A1A1A: call dword ptr [0x470ac150] */
   4512     RECOMP_FLAGS_IN();
   4513     edi = eax; /* 0x470A1A20: mov edi, eax */
   4514     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1A22: call dword ptr [0x470ac3c8] */
   4515     RECOMP_FLAGS_IN();
   4516     eax = MEM32(eax); /* 0x470A1A28: mov eax, dword ptr [eax] */
   4517     /* test eax, eax */ /* 0x470A1A2A: test eax, eax */
   4518     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4519     _cf = 0;
   4520     _flag_k = FK_TEST;
   4521     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1A30; /* 0x470A1A2C: je 0x470a1a30 */
   4522 L_470A1A2E:
   4523     edi = eax; /* 0x470A1A2E: mov edi, eax */
   4524 L_470A1A30:
   4525     RECOMP_ICALL(0x47039020u); /* 0x470A1A30: call 0x47039020 */ /* not lifted */
   4526     RECOMP_FLAGS_IN();
   4527     esi = eax; /* 0x470A1A35: mov esi, eax */
   4528     ecx = esi; /* 0x470A1A37: mov ecx, esi */
   4529     RECOMP_ICALL(0x4703B210u); /* 0x470A1A39: call 0x4703b210 */ /* not lifted */
   4530     RECOMP_FLAGS_IN();
   4531     PUSH32(esp, eax); /* 0x470A1A3E: push eax */
   4532     ecx = esi; /* 0x470A1A3F: mov ecx, esi */
   4533     RECOMP_ICALL(0x4703B240u); /* 0x470A1A41: call 0x4703b240 */ /* not lifted */
   4534     RECOMP_FLAGS_IN();
   4535     PUSH32(esp, eax); /* 0x470A1A46: push eax */
   4536     ecx = esi; /* 0x470A1A47: mov ecx, esi */
   4537     RECOMP_ICALL(0x4703B080u); /* 0x470A1A49: call 0x4703b080 */ /* not lifted */
   4538     RECOMP_FLAGS_IN();
   4539     PUSH32(esp, eax); /* 0x470A1A4E: push eax */
   4540     PUSH32(esp, edi); /* 0x470A1A4F: push edi */
   4541     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A1A50: push -1 */
   4542     PUSH32(esp, 0x5Bu); /* 0x470A1A52: push 0x5b */
   4543     PUSH32(esp, 0x4710DB30u); /* 0x470A1A54: push 0x4710db30 */
   4544     ecx = esi; /* 0x470A1A59: mov ecx, esi */
   4545     RECOMP_ICALL(0x4703A340u); /* 0x470A1A5B: call 0x4703a340 */ /* not lifted */
   4546     RECOMP_FLAGS_IN();
   4547     PUSH32(esp, 0x4710DB08u); /* 0x470A1A60: push 0x4710db08 */
   4548     PUSH32(esp, 0x80u); /* 0x470A1A65: push 0x80 */
   4549     PUSH32(esp, esi); /* 0x470A1A6A: push esi */
   4550     RECOMP_ICALL(0x47039830u); /* 0x470A1A6B: call 0x47039830 */ /* not lifted */
   4551     RECOMP_FLAGS_IN();
   4552     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4553     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4554     esp = esp + 0xCu; /* 0x470A1A70: add esp, 0xc */
   4555     _flag_k = FK_ADD;
   4556     edi = POP32_VAL(esp); /* 0x470A1A73: pop edi */
   4557     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4558     eax = eax | 0xFFFFFFFFu; /* 0x470A1A74: or eax, 0xffffffff */
   4559     _cf = 0;
   4560     _flag_k = FK_TEST;
   4561     esi = POP32_VAL(esp); /* 0x470A1A77: pop esi */
   4562     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A1A78: ret 4 */
   4563 L_470A1A7B:
   4564     edx = MEM32(eax); /* 0x470A1A7B: mov edx, dword ptr [eax] */
   4565     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFB4u);
   4566     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4567     ecx = ecx + 0xFFFFFFB4u; /* 0x470A1A7D: add ecx, -0x4c */
   4568     _flag_k = FK_ADD;
   4569     PUSH32(esp, ecx); /* 0x470A1A80: push ecx */
   4570     ecx = eax; /* 0x470A1A81: mov ecx, eax */
   4571     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x470A1A83: call dword ptr [edx + 0x9c] */
   4572     RECOMP_FLAGS_IN();
   4573     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A1A89: ret 4 */
   4574     RECOMP_REGS_OUT();
   4575 }
   4576 
   4577 void sub_470A1A90(void) {
   4578     int _fpu_cmp = 0;
   4579     uint32_t _cf = 0;
   4580     int _df = 1;
   4581     uint32_t _flag_k = FK_NONE;
   4582     uint32_t _flag_a = 0, _flag_b = 0;
   4583     uint32_t _itail_tgt = 0;
   4584     RECOMP_REGS_LOCALS
   4585     RECOMP_ENTER(0x470A1A90u);
   4586 
   4587 L_470A1A90:
   4588     PUSH32(esp, ecx); /* 0x470A1A90: push ecx */
   4589     edx = MEM32(esp + 0xC); /* 0x470A1A91: mov edx, dword ptr [esp + 0xc] */
   4590     eax = ecx; /* 0x470A1A95: mov eax, ecx */
   4591     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4592     ecx = 0; /* 0x470A1A97: xor ecx, ecx */
   4593     _cf = 0;
   4594     _flag_k = FK_TEST;
   4595     /* cmp edx, ecx */ /* 0x470A1A99: cmp edx, ecx */
   4596     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4598     _flag_k = FK_CMP;
   4599     MEM32(esp) = ecx; /* 0x470A1A9B: mov dword ptr [esp], ecx */
   4600     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A1ACA; /* 0x470A1A9F: je 0x470a1aca */
   4601 L_470A1AA1:
   4602     MEM32(eax) = 0x470AE700u; /* 0x470A1AA1: mov dword ptr [eax], 0x470ae700 */
   4603     MEM32(eax + 0x24) = 0x470AE6F8u; /* 0x470A1AA7: mov dword ptr [eax + 0x24], 0x470ae6f8 */
   4604     MEM32(eax + 0x18) = 0x470ACC4Cu; /* 0x470A1AAE: mov dword ptr [eax + 0x18], 0x470acc4c */
   4605     edx = MEM32(eax + 0x24); /* 0x470A1AB5: mov edx, dword ptr [eax + 0x24] */
   4606     MEM32(eax + 0x20) = 0x470ACEF0u; /* 0x470A1AB8: mov dword ptr [eax + 0x20], 0x470acef0 */
   4607     edx = MEM32(edx + 0x4); /* 0x470A1ABF: mov edx, dword ptr [edx + 4] */
   4608     MEM32(edx + eax + 0x24) = 0x470ACEE0u; /* 0x470A1AC2: mov dword ptr [edx + eax + 0x24], 0x470acee0 */
   4609 L_470A1ACA:
   4610     edx = MEM32(esp + 0x8); /* 0x470A1ACA: mov edx, dword ptr [esp + 8] */
   4611     MEM32(eax + 0x8) = ecx; /* 0x470A1ACE: mov dword ptr [eax + 8], ecx */
   4612     MEM32(eax + 0xC) = ecx; /* 0x470A1AD1: mov dword ptr [eax + 0xc], ecx */
   4613     ecx = MEM32(eax); /* 0x470A1AD4: mov ecx, dword ptr [eax] */
   4614     MEM32(eax + 0x4) = edx; /* 0x470A1AD6: mov dword ptr [eax + 4], edx */
   4615     MEM32(eax + 0x10) = 0xFFFFFFFFu; /* 0x470A1AD9: mov dword ptr [eax + 0x10], 0xffffffff */
   4616     edx = MEM32(ecx + 0x4); /* 0x470A1AE0: mov edx, dword ptr [ecx + 4] */
   4617     MEM32(edx + eax) = 0x470AE39Cu; /* 0x470A1AE3: mov dword ptr [edx + eax], 0x470ae39c */
   4618     ecx = MEM32(eax); /* 0x470A1AEA: mov ecx, dword ptr [eax] */
   4619     ecx = MEM32(ecx + 0x4); /* 0x470A1AEC: mov ecx, dword ptr [ecx + 4] */
   4620     edx = ecx + (-0x18); /* 0x470A1AEF: lea edx, [ecx - 0x18] */
   4621     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A1AF2: mov dword ptr [ecx + eax - 4], edx */
   4622     ecx = MEM32(eax); /* 0x470A1AF6: mov ecx, dword ptr [eax] */
   4623     edx = MEM32(ecx + 0x4); /* 0x470A1AF8: mov edx, dword ptr [ecx + 4] */
   4624     MEM32(edx + eax) = 0x470AE6E8u; /* 0x470A1AFB: mov dword ptr [edx + eax], 0x470ae6e8 */
   4625     ecx = MEM32(eax); /* 0x470A1B02: mov ecx, dword ptr [eax] */
   4626     edx = MEM32(ecx + 0x8); /* 0x470A1B04: mov edx, dword ptr [ecx + 8] */
   4627     MEM32(edx + eax) = 0x470AE6E4u; /* 0x470A1B07: mov dword ptr [edx + eax], 0x470ae6e4 */
   4628     ecx = MEM32(eax); /* 0x470A1B0E: mov ecx, dword ptr [eax] */
   4629     ecx = MEM32(ecx + 0x4); /* 0x470A1B10: mov ecx, dword ptr [ecx + 4] */
   4630     edx = ecx + (-0x18); /* 0x470A1B13: lea edx, [ecx - 0x18] */
   4631     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A1B16: mov dword ptr [ecx + eax - 4], edx */
   4632     ecx = MEM32(eax); /* 0x470A1B1A: mov ecx, dword ptr [eax] */
   4633     ecx = MEM32(ecx + 0x8); /* 0x470A1B1C: mov ecx, dword ptr [ecx + 8] */
   4634     edx = ecx + (-0x20); /* 0x470A1B1F: lea edx, [ecx - 0x20] */
   4635     MEM32(ecx + eax + (-0x4)) = edx; /* 0x470A1B22: mov dword ptr [ecx + eax - 4], edx */
   4636     ecx = POP32_VAL(esp); /* 0x470A1B26: pop ecx */
   4637     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A1B27: ret 8 */
   4638     RECOMP_REGS_OUT();
   4639 }
   4640 
   4641 void sub_470A1B30(void) {
   4642     int _fpu_cmp = 0;
   4643     uint32_t _cf = 0;
   4644     int _df = 1;
   4645     uint32_t _flag_k = FK_NONE;
   4646     uint32_t _flag_a = 0, _flag_b = 0;
   4647     uint32_t _itail_tgt = 0;
   4648     RECOMP_REGS_LOCALS
   4649     RECOMP_ENTER(0x470A1B30u);
   4650 
   4651 L_470A1B30:
   4652     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A1B30: push -1 */
   4653     PUSH32(esp, 0x470ABCCBu); /* 0x470A1B32: push 0x470abccb */
   4654     eax = MEM32(FS_BASE + (0)); /* 0x470A1B37: mov eax, dword ptr fs:[0] */
   4655     PUSH32(esp, eax); /* 0x470A1B3D: push eax */
   4656     MEM32(FS_BASE + (0)) = esp; /* 0x470A1B3E: mov dword ptr fs:[0], esp */
   4657     PUSH32(esp, ecx); /* 0x470A1B45: push ecx */
   4658     PUSH32(esp, ebx); /* 0x470A1B46: push ebx */
   4659     PUSH32(esp, ebp); /* 0x470A1B47: push ebp */
   4660     PUSH32(esp, esi); /* 0x470A1B48: push esi */
   4661     PUSH32(esp, edi); /* 0x470A1B49: push edi */
   4662     PUSH32(esp, 0x5Cu); /* 0x470A1B4A: push 0x5c */
   4663     esi = ecx; /* 0x470A1B4C: mov esi, ecx */
   4664     RECOMP_ICALL(0x470A33F2u); /* 0x470A1B4E: call 0x470a33f2 */ /* not lifted */
   4665     RECOMP_FLAGS_IN();
   4666     edi = eax; /* 0x470A1B53: mov edi, eax */
   4667     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4668     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4669     esp = esp + 4; /* 0x470A1B55: add esp, 4 */
   4670     _flag_k = FK_ADD;
   4671     MEM32(esp + 0x10) = edi; /* 0x470A1B58: mov dword ptr [esp + 0x10], edi */
   4672     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4673     ebx = 0; /* 0x470A1B5C: xor ebx, ebx */
   4674     _cf = 0;
   4675     _flag_k = FK_TEST;
   4676     /* cmp edi, ebx */ /* 0x470A1B5E: cmp edi, ebx */
   4677     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   4678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4679     _flag_k = FK_CMP;
   4680     MEM32(esp + 0x1C) = ebx; /* 0x470A1B60: mov dword ptr [esp + 0x1c], ebx */
   4681     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A1BB6; /* 0x470A1B64: je 0x470a1bb6 */
   4682 L_470A1B66:
   4683     eax = MEM32(esp + 0x48); /* 0x470A1B66: mov eax, dword ptr [esp + 0x48] */
   4684     ecx = MEM32(esi + (-0x1C)); /* 0x470A1B6A: mov ecx, dword ptr [esi - 0x1c] */
   4685     edx = MEM32(esp + 0x44); /* 0x470A1B6D: mov edx, dword ptr [esp + 0x44] */
   4686     PUSH32(esp, 1); /* 0x470A1B71: push 1 */
   4687     PUSH32(esp, eax); /* 0x470A1B73: push eax */
   4688     eax = MEM32(ecx); /* 0x470A1B74: mov eax, dword ptr [ecx] */
   4689     PUSH32(esp, edx); /* 0x470A1B76: push edx */
   4690     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A1B77: call dword ptr [eax + 4] */
   4691     RECOMP_FLAGS_IN();
   4692     ecx = MEM32(esp + 0x4C); /* 0x470A1B7A: mov ecx, dword ptr [esp + 0x4c] */
   4693     edx = MEM32(esp + 0x48); /* 0x470A1B7E: mov edx, dword ptr [esp + 0x48] */
   4694     PUSH32(esp, eax); /* 0x470A1B82: push eax */
   4695     eax = MEM32(esp + 0x48); /* 0x470A1B83: mov eax, dword ptr [esp + 0x48] */
   4696     PUSH32(esp, ecx); /* 0x470A1B87: push ecx */
   4697     ecx = MEM32(esp + 0x48); /* 0x470A1B88: mov ecx, dword ptr [esp + 0x48] */
   4698     PUSH32(esp, edx); /* 0x470A1B8C: push edx */
   4699     edx = MEM32(esp + 0x48); /* 0x470A1B8D: mov edx, dword ptr [esp + 0x48] */
   4700     PUSH32(esp, eax); /* 0x470A1B91: push eax */
   4701     eax = MEM32(esp + 0x48); /* 0x470A1B92: mov eax, dword ptr [esp + 0x48] */
   4702     PUSH32(esp, ecx); /* 0x470A1B96: push ecx */
   4703     ecx = MEM32(esp + 0x48); /* 0x470A1B97: mov ecx, dword ptr [esp + 0x48] */
   4704     PUSH32(esp, edx); /* 0x470A1B9B: push edx */
   4705     edx = MEM32(esp + 0x48); /* 0x470A1B9C: mov edx, dword ptr [esp + 0x48] */
   4706     PUSH32(esp, eax); /* 0x470A1BA0: push eax */
   4707     eax = MEM32(esi + (-0x10)); /* 0x470A1BA1: mov eax, dword ptr [esi - 0x10] */
   4708     PUSH32(esp, ecx); /* 0x470A1BA4: push ecx */
   4709     ecx = MEM32(esi + (-0x14)); /* 0x470A1BA5: mov ecx, dword ptr [esi - 0x14] */
   4710     PUSH32(esp, edx); /* 0x470A1BA8: push edx */
   4711     PUSH32(esp, eax); /* 0x470A1BA9: push eax */
   4712     PUSH32(esp, ecx); /* 0x470A1BAA: push ecx */
   4713     ecx = edi; /* 0x470A1BAB: mov ecx, edi */
   4714     RECOMP_ICALL(0x470A1810u); /* 0x470A1BAD: call 0x470a1810 */ /* not lifted */
   4715     RECOMP_FLAGS_IN();
   4716     esi = eax; /* 0x470A1BB2: mov esi, eax */
   4717     goto L_470A1BB8; /* 0x470A1BB4: jmp 0x470a1bb8 */
   4718 L_470A1BB6:
   4719     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4720     esi = 0; /* 0x470A1BB6: xor esi, esi */
   4721     _cf = 0;
   4722     _flag_k = FK_TEST;
   4723 L_470A1BB8:
   4724     /* cmp esi, ebx */ /* 0x470A1BB8: cmp esi, ebx */
   4725     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4727     _flag_k = FK_CMP;
   4728     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A1BBA: mov dword ptr [esp + 0x1c], 0xffffffff */
   4729     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1BD8; /* 0x470A1BC2: jne 0x470a1bd8 */
   4730 L_470A1BC4:
   4731     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1BC4: call dword ptr [0x470ac3c8] */
   4732     RECOMP_FLAGS_IN();
   4733     MEM32(eax) = 0xCu; /* 0x470A1BCA: mov dword ptr [eax], 0xc */
   4734     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4735     eax = eax | 0xFFFFFFFFu; /* 0x470A1BD0: or eax, 0xffffffff */
   4736     _cf = 0;
   4737     _flag_k = FK_TEST;
   4738     goto L_470A1D10; /* 0x470A1BD3: jmp 0x470a1d10 */
   4739 L_470A1BD8:
   4740     edx = MEM32(esi + 0x14); /* 0x470A1BD8: mov edx, dword ptr [esi + 0x14] */
   4741     eax = MEM32(edx + 0x8); /* 0x470A1BDB: mov eax, dword ptr [edx + 8] */
   4742     edx = MEM32(eax + esi + 0x14); /* 0x470A1BDE: mov edx, dword ptr [eax + esi + 0x14] */
   4743     ecx = eax + esi + 0x14; /* 0x470A1BE2: lea ecx, [eax + esi + 0x14] */
   4744     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A1BE6: call dword ptr [edx + 8] */
   4745     RECOMP_FLAGS_IN();
   4746     /* test eax, eax */ /* 0x470A1BE9: test eax, eax */
   4747     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4748     _cf = 0;
   4749     _flag_k = FK_TEST;
   4750     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1C07; /* 0x470A1BEB: je 0x470a1c07 */
   4751 L_470A1BED:
   4752     eax = MEM32(esi + 0x14); /* 0x470A1BED: mov eax, dword ptr [esi + 0x14] */
   4753     ecx = MEM32(eax + 0x8); /* 0x470A1BF0: mov ecx, dword ptr [eax + 8] */
   4754     edx = MEM32(ecx + esi + 0x14); /* 0x470A1BF3: mov edx, dword ptr [ecx + esi + 0x14] */
   4755     ecx = ecx + esi + 0x14; /* 0x470A1BF7: lea ecx, [ecx + esi + 0x14] */
   4756     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A1BFB: call dword ptr [edx + 8] */
   4757     RECOMP_FLAGS_IN();
   4758     ecx = eax; /* 0x470A1BFE: mov ecx, eax */
   4759     RECOMP_ICALL(0x470183E0u); /* 0x470A1C00: call 0x470183e0 */ /* not lifted */
   4760     RECOMP_FLAGS_IN();
   4761     ebx = eax; /* 0x470A1C05: mov ebx, eax */
   4762 L_470A1C07:
   4763     eax = MEM32(esi + 0x14); /* 0x470A1C07: mov eax, dword ptr [esi + 0x14] */
   4764     ecx = MEM32(eax + 0x8); /* 0x470A1C0A: mov ecx, dword ptr [eax + 8] */
   4765     edx = ecx + esi + 0x14; /* 0x470A1C0D: lea edx, [ecx + esi + 0x14] */
   4766     ecx = MEM32(eax + 0x8); /* 0x470A1C11: mov ecx, dword ptr [eax + 8] */
   4767     MEM32(esp + 0x48) = edx; /* 0x470A1C14: mov dword ptr [esp + 0x48], edx */
   4768     edx = ecx + esi + 0x14; /* 0x470A1C18: lea edx, [ecx + esi + 0x14] */
   4769     ecx = MEM32(eax + 0x8); /* 0x470A1C1C: mov ecx, dword ptr [eax + 8] */
   4770     MEM32(esp + 0x48) = edx; /* 0x470A1C1F: mov dword ptr [esp + 0x48], edx */
   4771     edx = ecx + esi + 0x14; /* 0x470A1C23: lea edx, [ecx + esi + 0x14] */
   4772     ecx = MEM32(eax + 0x8); /* 0x470A1C27: mov ecx, dword ptr [eax + 8] */
   4773     MEM32(esp + 0x48) = edx; /* 0x470A1C2A: mov dword ptr [esp + 0x48], edx */
   4774     edx = ecx + esi + 0x14; /* 0x470A1C2E: lea edx, [ecx + esi + 0x14] */
   4775     ecx = MEM32(eax + 0x8); /* 0x470A1C32: mov ecx, dword ptr [eax + 8] */
   4776     edi = ecx + esi + 0x14; /* 0x470A1C35: lea edi, [ecx + esi + 0x14] */
   4777     MEM32(esp + 0x48) = edx; /* 0x470A1C39: mov dword ptr [esp + 0x48], edx */
   4778     edx = MEM32(edi); /* 0x470A1C3D: mov edx, dword ptr [edi] */
   4779     ecx = edi; /* 0x470A1C3F: mov ecx, edi */
   4780     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x470A1C41: call dword ptr [edx + 0x14] */
   4781     RECOMP_FLAGS_IN();
   4782     PUSH32(esp, eax); /* 0x470A1C44: push eax */
   4783     eax = MEM32(edi); /* 0x470A1C45: mov eax, dword ptr [edi] */
   4784     PUSH32(esp, ebx); /* 0x470A1C47: push ebx */
   4785     PUSH32(esp, esi); /* 0x470A1C48: push esi */
   4786     ecx = edi; /* 0x470A1C49: mov ecx, edi */
   4787     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x470A1C4B: call dword ptr [eax + 0x10] */
   4788     RECOMP_FLAGS_IN();
   4789     edx = MEM32(edi); /* 0x470A1C4E: mov edx, dword ptr [edi] */
   4790     PUSH32(esp, eax); /* 0x470A1C50: push eax */
   4791     ecx = edi; /* 0x470A1C51: mov ecx, edi */
   4792     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470A1C53: call dword ptr [edx + 0xc] */
   4793     RECOMP_FLAGS_IN();
   4794     PUSH32(esp, eax); /* 0x470A1C56: push eax */
   4795     eax = MEM32(edi); /* 0x470A1C57: mov eax, dword ptr [edi] */
   4796     ecx = edi; /* 0x470A1C59: mov ecx, edi */
   4797     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A1C5B: call dword ptr [eax + 4] */
   4798     RECOMP_FLAGS_IN();
   4799     edx = MEM32(edi); /* 0x470A1C5E: mov edx, dword ptr [edi] */
   4800     PUSH32(esp, eax); /* 0x470A1C60: push eax */
   4801     ecx = edi; /* 0x470A1C61: mov ecx, edi */
   4802     RECOMP_ICALL(MEM32(edx)); /* 0x470A1C63: call dword ptr [edx] */
   4803     RECOMP_FLAGS_IN();
   4804     PUSH32(esp, eax); /* 0x470A1C65: push eax */
   4805     RECOMP_ICALL(0x470A329Cu); /* 0x470A1C66: call 0x470a329c */ /* not lifted */
   4806     RECOMP_FLAGS_IN();
   4807     /* cmp eax, 1 */ /* 0x470A1C6B: cmp eax, 1 */
   4808     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4810     _flag_k = FK_CMP;
   4811     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1C75; /* 0x470A1C6E: jne 0x470a1c75 */
   4812 L_470A1C70:
   4813     goto L_470A1D10; /* 0x470A1C70: jmp 0x470a1d10 */
   4814 L_470A1C75:
   4815     edi = MEM32(0x470AC3C8); /* 0x470A1C75: mov edi, dword ptr [0x470ac3c8] */
   4816     RECOMP_ICALL(edi); /* 0x470A1C7B: call edi */
   4817     RECOMP_FLAGS_IN();
   4818     ebp = MEM32(0x470AC150); /* 0x470A1C7D: mov ebp, dword ptr [0x470ac150] */
   4819     ebx = eax; /* 0x470A1C83: mov ebx, eax */
   4820     RECOMP_ICALL(ebp); /* 0x470A1C85: call ebp */
   4821     RECOMP_FLAGS_IN();
   4822     MEM32(ebx) = eax; /* 0x470A1C87: mov dword ptr [ebx], eax */
   4823     RECOMP_ICALL(edi); /* 0x470A1C89: call edi */
   4824     RECOMP_FLAGS_IN();
   4825     /* cmp MEM32(eax), 0x3E5u */ /* 0x470A1C8B: cmp dword ptr [eax], 0x3e5 */
   4826     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x3E5u);
   4827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4828     _flag_k = FK_CMP;
   4829     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A1D0E; /* 0x470A1C91: je 0x470a1d0e */
   4830 L_470A1C93:
   4831     eax = MEM32(esi + 0x14); /* 0x470A1C93: mov eax, dword ptr [esi + 0x14] */
   4832     ecx = MEM32(eax + 0x4); /* 0x470A1C96: mov ecx, dword ptr [eax + 4] */
   4833     edx = MEM32(ecx + esi + 0x14); /* 0x470A1C99: mov edx, dword ptr [ecx + esi + 0x14] */
   4834     ecx = ecx + esi + 0x14; /* 0x470A1C9D: lea ecx, [ecx + esi + 0x14] */
   4835     PUSH32(esp, 1); /* 0x470A1CA1: push 1 */
   4836     RECOMP_ICALL(MEM32(edx)); /* 0x470A1CA3: call dword ptr [edx] */
   4837     RECOMP_FLAGS_IN();
   4838     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A1CA5: mov al, byte ptr [0x4710de04] */
   4839     /* test LO8(eax), LO8(eax) */ /* 0x470A1CAA: test al, al */
   4840     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4841     _cf = 0;
   4842     _flag_k = FK_NARROW(FK_TEST, 24);
   4843     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1D09; /* 0x470A1CAC: je 0x470a1d09 */
   4844 L_470A1CAE:
   4845     RECOMP_ICALL(ebp); /* 0x470A1CAE: call ebp */
   4846     RECOMP_FLAGS_IN();
   4847     esi = eax; /* 0x470A1CB0: mov esi, eax */
   4848     RECOMP_ICALL(edi); /* 0x470A1CB2: call edi */
   4849     RECOMP_FLAGS_IN();
   4850     eax = MEM32(eax); /* 0x470A1CB4: mov eax, dword ptr [eax] */
   4851     /* test eax, eax */ /* 0x470A1CB6: test eax, eax */
   4852     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4853     _cf = 0;
   4854     _flag_k = FK_TEST;
   4855     edi = esi; /* 0x470A1CB8: mov edi, esi */
   4856     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1CBE; /* 0x470A1CBA: je 0x470a1cbe */
   4857 L_470A1CBC:
   4858     edi = eax; /* 0x470A1CBC: mov edi, eax */
   4859 L_470A1CBE:
   4860     RECOMP_ICALL(0x47039020u); /* 0x470A1CBE: call 0x47039020 */ /* not lifted */
   4861     RECOMP_FLAGS_IN();
   4862     esi = eax; /* 0x470A1CC3: mov esi, eax */
   4863     ecx = esi; /* 0x470A1CC5: mov ecx, esi */
   4864     RECOMP_ICALL(0x4703B210u); /* 0x470A1CC7: call 0x4703b210 */ /* not lifted */
   4865     RECOMP_FLAGS_IN();
   4866     PUSH32(esp, eax); /* 0x470A1CCC: push eax */
   4867     ecx = esi; /* 0x470A1CCD: mov ecx, esi */
   4868     RECOMP_ICALL(0x4703B240u); /* 0x470A1CCF: call 0x4703b240 */ /* not lifted */
   4869     RECOMP_FLAGS_IN();
   4870     PUSH32(esp, eax); /* 0x470A1CD4: push eax */
   4871     ecx = esi; /* 0x470A1CD5: mov ecx, esi */
   4872     RECOMP_ICALL(0x4703B080u); /* 0x470A1CD7: call 0x4703b080 */ /* not lifted */
   4873     RECOMP_FLAGS_IN();
   4874     PUSH32(esp, eax); /* 0x470A1CDC: push eax */
   4875     PUSH32(esp, edi); /* 0x470A1CDD: push edi */
   4876     PUSH32(esp, 0); /* 0x470A1CDE: push 0 */
   4877     PUSH32(esp, 0x67Cu); /* 0x470A1CE0: push 0x67c */
   4878     PUSH32(esp, 0x4710DB30u); /* 0x470A1CE5: push 0x4710db30 */
   4879     ecx = esi; /* 0x470A1CEA: mov ecx, esi */
   4880     RECOMP_ICALL(0x4703A340u); /* 0x470A1CEC: call 0x4703a340 */ /* not lifted */
   4881     RECOMP_FLAGS_IN();
   4882     PUSH32(esp, 0x4710DBACu); /* 0x470A1CF1: push 0x4710dbac */
   4883     PUSH32(esp, 0x471055F0u); /* 0x470A1CF6: push 0x471055f0 */
   4884     PUSH32(esp, 0x80u); /* 0x470A1CFB: push 0x80 */
   4885     PUSH32(esp, esi); /* 0x470A1D00: push esi */
   4886     RECOMP_ICALL(0x47039830u); /* 0x470A1D01: call 0x47039830 */ /* not lifted */
   4887     RECOMP_FLAGS_IN();
   4888     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4890     esp = esp + 0x10u; /* 0x470A1D06: add esp, 0x10 */
   4891     _flag_k = FK_ADD;
   4892 L_470A1D09:
   4893     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4894     eax = eax | 0xFFFFFFFFu; /* 0x470A1D09: or eax, 0xffffffff */
   4895     _cf = 0;
   4896     _flag_k = FK_TEST;
   4897     goto L_470A1D10; /* 0x470A1D0C: jmp 0x470a1d10 */
   4898 L_470A1D0E:
   4899     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4900     eax = 0; /* 0x470A1D0E: xor eax, eax */
   4901     _cf = 0;
   4902     _flag_k = FK_TEST;
   4903 L_470A1D10:
   4904     ecx = MEM32(esp + 0x14); /* 0x470A1D10: mov ecx, dword ptr [esp + 0x14] */
   4905     edi = POP32_VAL(esp); /* 0x470A1D14: pop edi */
   4906     esi = POP32_VAL(esp); /* 0x470A1D15: pop esi */
   4907     ebp = POP32_VAL(esp); /* 0x470A1D16: pop ebp */
   4908     ebx = POP32_VAL(esp); /* 0x470A1D17: pop ebx */
   4909     MEM32(FS_BASE + (0)) = ecx; /* 0x470A1D18: mov dword ptr fs:[0], ecx */
   4910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4912     esp = esp + 0x10u; /* 0x470A1D1F: add esp, 0x10 */
   4913     _flag_k = FK_ADD;
   4914     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470A1D22: ret 0x28 */
   4915     RECOMP_REGS_OUT();
   4916 }
   4917 
   4918 void sub_470A1BB8(void) {
   4919     int _fpu_cmp = 0;
   4920     uint32_t _cf = 0;
   4921     int _df = 1;
   4922     uint32_t _flag_k = FK_NONE;
   4923     uint32_t _flag_a = 0, _flag_b = 0;
   4924     uint32_t _itail_tgt = 0;
   4925     RECOMP_REGS_LOCALS
   4926     RECOMP_ENTER(0x470A1BB8u);
   4927 
   4928 L_470A1BB8:
   4929     /* cmp esi, ebx */ /* 0x470A1BB8: cmp esi, ebx */
   4930     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4931     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4932     _flag_k = FK_CMP;
   4933     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A1BBA: mov dword ptr [esp + 0x1c], 0xffffffff */
   4934     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1BD8; /* 0x470A1BC2: jne 0x470a1bd8 */
   4935 L_470A1BC4:
   4936     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1BC4: call dword ptr [0x470ac3c8] */
   4937     RECOMP_FLAGS_IN();
   4938     MEM32(eax) = 0xCu; /* 0x470A1BCA: mov dword ptr [eax], 0xc */
   4939     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4940     eax = eax | 0xFFFFFFFFu; /* 0x470A1BD0: or eax, 0xffffffff */
   4941     _cf = 0;
   4942     _flag_k = FK_TEST;
   4943     goto L_470A1D10; /* 0x470A1BD3: jmp 0x470a1d10 */
   4944 L_470A1BD8:
   4945     edx = MEM32(esi + 0x14); /* 0x470A1BD8: mov edx, dword ptr [esi + 0x14] */
   4946     eax = MEM32(edx + 0x8); /* 0x470A1BDB: mov eax, dword ptr [edx + 8] */
   4947     edx = MEM32(eax + esi + 0x14); /* 0x470A1BDE: mov edx, dword ptr [eax + esi + 0x14] */
   4948     ecx = eax + esi + 0x14; /* 0x470A1BE2: lea ecx, [eax + esi + 0x14] */
   4949     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A1BE6: call dword ptr [edx + 8] */
   4950     RECOMP_FLAGS_IN();
   4951     /* test eax, eax */ /* 0x470A1BE9: test eax, eax */
   4952     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4953     _cf = 0;
   4954     _flag_k = FK_TEST;
   4955     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1C07; /* 0x470A1BEB: je 0x470a1c07 */
   4956 L_470A1BED:
   4957     eax = MEM32(esi + 0x14); /* 0x470A1BED: mov eax, dword ptr [esi + 0x14] */
   4958     ecx = MEM32(eax + 0x8); /* 0x470A1BF0: mov ecx, dword ptr [eax + 8] */
   4959     edx = MEM32(ecx + esi + 0x14); /* 0x470A1BF3: mov edx, dword ptr [ecx + esi + 0x14] */
   4960     ecx = ecx + esi + 0x14; /* 0x470A1BF7: lea ecx, [ecx + esi + 0x14] */
   4961     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A1BFB: call dword ptr [edx + 8] */
   4962     RECOMP_FLAGS_IN();
   4963     ecx = eax; /* 0x470A1BFE: mov ecx, eax */
   4964     RECOMP_ICALL(0x470183E0u); /* 0x470A1C00: call 0x470183e0 */ /* not lifted */
   4965     RECOMP_FLAGS_IN();
   4966     ebx = eax; /* 0x470A1C05: mov ebx, eax */
   4967 L_470A1C07:
   4968     eax = MEM32(esi + 0x14); /* 0x470A1C07: mov eax, dword ptr [esi + 0x14] */
   4969     ecx = MEM32(eax + 0x8); /* 0x470A1C0A: mov ecx, dword ptr [eax + 8] */
   4970     edx = ecx + esi + 0x14; /* 0x470A1C0D: lea edx, [ecx + esi + 0x14] */
   4971     ecx = MEM32(eax + 0x8); /* 0x470A1C11: mov ecx, dword ptr [eax + 8] */
   4972     MEM32(esp + 0x48) = edx; /* 0x470A1C14: mov dword ptr [esp + 0x48], edx */
   4973     edx = ecx + esi + 0x14; /* 0x470A1C18: lea edx, [ecx + esi + 0x14] */
   4974     ecx = MEM32(eax + 0x8); /* 0x470A1C1C: mov ecx, dword ptr [eax + 8] */
   4975     MEM32(esp + 0x48) = edx; /* 0x470A1C1F: mov dword ptr [esp + 0x48], edx */
   4976     edx = ecx + esi + 0x14; /* 0x470A1C23: lea edx, [ecx + esi + 0x14] */
   4977     ecx = MEM32(eax + 0x8); /* 0x470A1C27: mov ecx, dword ptr [eax + 8] */
   4978     MEM32(esp + 0x48) = edx; /* 0x470A1C2A: mov dword ptr [esp + 0x48], edx */
   4979     edx = ecx + esi + 0x14; /* 0x470A1C2E: lea edx, [ecx + esi + 0x14] */
   4980     ecx = MEM32(eax + 0x8); /* 0x470A1C32: mov ecx, dword ptr [eax + 8] */
   4981     edi = ecx + esi + 0x14; /* 0x470A1C35: lea edi, [ecx + esi + 0x14] */
   4982     MEM32(esp + 0x48) = edx; /* 0x470A1C39: mov dword ptr [esp + 0x48], edx */
   4983     edx = MEM32(edi); /* 0x470A1C3D: mov edx, dword ptr [edi] */
   4984     ecx = edi; /* 0x470A1C3F: mov ecx, edi */
   4985     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x470A1C41: call dword ptr [edx + 0x14] */
   4986     RECOMP_FLAGS_IN();
   4987     PUSH32(esp, eax); /* 0x470A1C44: push eax */
   4988     eax = MEM32(edi); /* 0x470A1C45: mov eax, dword ptr [edi] */
   4989     PUSH32(esp, ebx); /* 0x470A1C47: push ebx */
   4990     PUSH32(esp, esi); /* 0x470A1C48: push esi */
   4991     ecx = edi; /* 0x470A1C49: mov ecx, edi */
   4992     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x470A1C4B: call dword ptr [eax + 0x10] */
   4993     RECOMP_FLAGS_IN();
   4994     edx = MEM32(edi); /* 0x470A1C4E: mov edx, dword ptr [edi] */
   4995     PUSH32(esp, eax); /* 0x470A1C50: push eax */
   4996     ecx = edi; /* 0x470A1C51: mov ecx, edi */
   4997     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470A1C53: call dword ptr [edx + 0xc] */
   4998     RECOMP_FLAGS_IN();
   4999     PUSH32(esp, eax); /* 0x470A1C56: push eax */
   5000     eax = MEM32(edi); /* 0x470A1C57: mov eax, dword ptr [edi] */
   5001     ecx = edi; /* 0x470A1C59: mov ecx, edi */
   5002     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A1C5B: call dword ptr [eax + 4] */
   5003     RECOMP_FLAGS_IN();
   5004     edx = MEM32(edi); /* 0x470A1C5E: mov edx, dword ptr [edi] */
   5005     PUSH32(esp, eax); /* 0x470A1C60: push eax */
   5006     ecx = edi; /* 0x470A1C61: mov ecx, edi */
   5007     RECOMP_ICALL(MEM32(edx)); /* 0x470A1C63: call dword ptr [edx] */
   5008     RECOMP_FLAGS_IN();
   5009     PUSH32(esp, eax); /* 0x470A1C65: push eax */
   5010     RECOMP_ICALL(0x470A329Cu); /* 0x470A1C66: call 0x470a329c */ /* not lifted */
   5011     RECOMP_FLAGS_IN();
   5012     /* cmp eax, 1 */ /* 0x470A1C6B: cmp eax, 1 */
   5013     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5015     _flag_k = FK_CMP;
   5016     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1C75; /* 0x470A1C6E: jne 0x470a1c75 */
   5017 L_470A1C70:
   5018     goto L_470A1D10; /* 0x470A1C70: jmp 0x470a1d10 */
   5019 L_470A1C75:
   5020     edi = MEM32(0x470AC3C8); /* 0x470A1C75: mov edi, dword ptr [0x470ac3c8] */
   5021     RECOMP_ICALL(edi); /* 0x470A1C7B: call edi */
   5022     RECOMP_FLAGS_IN();
   5023     ebp = MEM32(0x470AC150); /* 0x470A1C7D: mov ebp, dword ptr [0x470ac150] */
   5024     ebx = eax; /* 0x470A1C83: mov ebx, eax */
   5025     RECOMP_ICALL(ebp); /* 0x470A1C85: call ebp */
   5026     RECOMP_FLAGS_IN();
   5027     MEM32(ebx) = eax; /* 0x470A1C87: mov dword ptr [ebx], eax */
   5028     RECOMP_ICALL(edi); /* 0x470A1C89: call edi */
   5029     RECOMP_FLAGS_IN();
   5030     /* cmp MEM32(eax), 0x3E5u */ /* 0x470A1C8B: cmp dword ptr [eax], 0x3e5 */
   5031     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x3E5u);
   5032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5033     _flag_k = FK_CMP;
   5034     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A1D0E; /* 0x470A1C91: je 0x470a1d0e */
   5035 L_470A1C93:
   5036     eax = MEM32(esi + 0x14); /* 0x470A1C93: mov eax, dword ptr [esi + 0x14] */
   5037     ecx = MEM32(eax + 0x4); /* 0x470A1C96: mov ecx, dword ptr [eax + 4] */
   5038     edx = MEM32(ecx + esi + 0x14); /* 0x470A1C99: mov edx, dword ptr [ecx + esi + 0x14] */
   5039     ecx = ecx + esi + 0x14; /* 0x470A1C9D: lea ecx, [ecx + esi + 0x14] */
   5040     PUSH32(esp, 1); /* 0x470A1CA1: push 1 */
   5041     RECOMP_ICALL(MEM32(edx)); /* 0x470A1CA3: call dword ptr [edx] */
   5042     RECOMP_FLAGS_IN();
   5043     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A1CA5: mov al, byte ptr [0x4710de04] */
   5044     /* test LO8(eax), LO8(eax) */ /* 0x470A1CAA: test al, al */
   5045     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5046     _cf = 0;
   5047     _flag_k = FK_NARROW(FK_TEST, 24);
   5048     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1D09; /* 0x470A1CAC: je 0x470a1d09 */
   5049 L_470A1CAE:
   5050     RECOMP_ICALL(ebp); /* 0x470A1CAE: call ebp */
   5051     RECOMP_FLAGS_IN();
   5052     esi = eax; /* 0x470A1CB0: mov esi, eax */
   5053     RECOMP_ICALL(edi); /* 0x470A1CB2: call edi */
   5054     RECOMP_FLAGS_IN();
   5055     eax = MEM32(eax); /* 0x470A1CB4: mov eax, dword ptr [eax] */
   5056     /* test eax, eax */ /* 0x470A1CB6: test eax, eax */
   5057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5058     _cf = 0;
   5059     _flag_k = FK_TEST;
   5060     edi = esi; /* 0x470A1CB8: mov edi, esi */
   5061     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1CBE; /* 0x470A1CBA: je 0x470a1cbe */
   5062 L_470A1CBC:
   5063     edi = eax; /* 0x470A1CBC: mov edi, eax */
   5064 L_470A1CBE:
   5065     RECOMP_ICALL(0x47039020u); /* 0x470A1CBE: call 0x47039020 */ /* not lifted */
   5066     RECOMP_FLAGS_IN();
   5067     esi = eax; /* 0x470A1CC3: mov esi, eax */
   5068     ecx = esi; /* 0x470A1CC5: mov ecx, esi */
   5069     RECOMP_ICALL(0x4703B210u); /* 0x470A1CC7: call 0x4703b210 */ /* not lifted */
   5070     RECOMP_FLAGS_IN();
   5071     PUSH32(esp, eax); /* 0x470A1CCC: push eax */
   5072     ecx = esi; /* 0x470A1CCD: mov ecx, esi */
   5073     RECOMP_ICALL(0x4703B240u); /* 0x470A1CCF: call 0x4703b240 */ /* not lifted */
   5074     RECOMP_FLAGS_IN();
   5075     PUSH32(esp, eax); /* 0x470A1CD4: push eax */
   5076     ecx = esi; /* 0x470A1CD5: mov ecx, esi */
   5077     RECOMP_ICALL(0x4703B080u); /* 0x470A1CD7: call 0x4703b080 */ /* not lifted */
   5078     RECOMP_FLAGS_IN();
   5079     PUSH32(esp, eax); /* 0x470A1CDC: push eax */
   5080     PUSH32(esp, edi); /* 0x470A1CDD: push edi */
   5081     PUSH32(esp, 0); /* 0x470A1CDE: push 0 */
   5082     PUSH32(esp, 0x67Cu); /* 0x470A1CE0: push 0x67c */
   5083     PUSH32(esp, 0x4710DB30u); /* 0x470A1CE5: push 0x4710db30 */
   5084     ecx = esi; /* 0x470A1CEA: mov ecx, esi */
   5085     RECOMP_ICALL(0x4703A340u); /* 0x470A1CEC: call 0x4703a340 */ /* not lifted */
   5086     RECOMP_FLAGS_IN();
   5087     PUSH32(esp, 0x4710DBACu); /* 0x470A1CF1: push 0x4710dbac */
   5088     PUSH32(esp, 0x471055F0u); /* 0x470A1CF6: push 0x471055f0 */
   5089     PUSH32(esp, 0x80u); /* 0x470A1CFB: push 0x80 */
   5090     PUSH32(esp, esi); /* 0x470A1D00: push esi */
   5091     RECOMP_ICALL(0x47039830u); /* 0x470A1D01: call 0x47039830 */ /* not lifted */
   5092     RECOMP_FLAGS_IN();
   5093     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5094     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5095     esp = esp + 0x10u; /* 0x470A1D06: add esp, 0x10 */
   5096     _flag_k = FK_ADD;
   5097 L_470A1D09:
   5098     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5099     eax = eax | 0xFFFFFFFFu; /* 0x470A1D09: or eax, 0xffffffff */
   5100     _cf = 0;
   5101     _flag_k = FK_TEST;
   5102     goto L_470A1D10; /* 0x470A1D0C: jmp 0x470a1d10 */
   5103 L_470A1D0E:
   5104     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5105     eax = 0; /* 0x470A1D0E: xor eax, eax */
   5106     _cf = 0;
   5107     _flag_k = FK_TEST;
   5108 L_470A1D10:
   5109     ecx = MEM32(esp + 0x14); /* 0x470A1D10: mov ecx, dword ptr [esp + 0x14] */
   5110     edi = POP32_VAL(esp); /* 0x470A1D14: pop edi */
   5111     esi = POP32_VAL(esp); /* 0x470A1D15: pop esi */
   5112     ebp = POP32_VAL(esp); /* 0x470A1D16: pop ebp */
   5113     ebx = POP32_VAL(esp); /* 0x470A1D17: pop ebx */
   5114     MEM32(FS_BASE + (0)) = ecx; /* 0x470A1D18: mov dword ptr fs:[0], ecx */
   5115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5117     esp = esp + 0x10u; /* 0x470A1D1F: add esp, 0x10 */
   5118     _flag_k = FK_ADD;
   5119     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470A1D22: ret 0x28 */
   5120     RECOMP_REGS_OUT();
   5121 }
   5122 
   5123 void sub_470A1D10(void) {
   5124     int _fpu_cmp = 0;
   5125     uint32_t _cf = 0;
   5126     int _df = 1;
   5127     uint32_t _flag_k = FK_NONE;
   5128     uint32_t _flag_a = 0, _flag_b = 0;
   5129     uint32_t _itail_tgt = 0;
   5130     RECOMP_REGS_LOCALS
   5131     RECOMP_ENTER(0x470A1D10u);
   5132 
   5133 L_470A1D10:
   5134     ecx = MEM32(esp + 0x14); /* 0x470A1D10: mov ecx, dword ptr [esp + 0x14] */
   5135     edi = POP32_VAL(esp); /* 0x470A1D14: pop edi */
   5136     esi = POP32_VAL(esp); /* 0x470A1D15: pop esi */
   5137     ebp = POP32_VAL(esp); /* 0x470A1D16: pop ebp */
   5138     ebx = POP32_VAL(esp); /* 0x470A1D17: pop ebx */
   5139     MEM32(FS_BASE + (0)) = ecx; /* 0x470A1D18: mov dword ptr fs:[0], ecx */
   5140     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5141     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5142     esp = esp + 0x10u; /* 0x470A1D1F: add esp, 0x10 */
   5143     _flag_k = FK_ADD;
   5144     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470A1D22: ret 0x28 */
   5145     RECOMP_REGS_OUT();
   5146 }
   5147 
   5148 void sub_470A1D30(void) {
   5149     int _fpu_cmp = 0;
   5150     uint32_t _cf = 0;
   5151     int _df = 1;
   5152     uint32_t _flag_k = FK_NONE;
   5153     uint32_t _flag_a = 0, _flag_b = 0;
   5154     uint32_t _itail_tgt = 0;
   5155     RECOMP_REGS_LOCALS
   5156     RECOMP_ENTER(0x470A1D30u);
   5157 
   5158 L_470A1D30:
   5159     eax = MEM32(ecx + (-0x18)); /* 0x470A1D30: mov eax, dword ptr [ecx - 0x18] */
   5160     edx = MEM32(eax + 0x4); /* 0x470A1D33: mov edx, dword ptr [eax + 4] */
   5161     MEM32(edx + ecx + (-0x18)) = 0x470AE6E8u; /* 0x470A1D36: mov dword ptr [edx + ecx - 0x18], 0x470ae6e8 */
   5162     eax = MEM32(ecx + (-0x18)); /* 0x470A1D3E: mov eax, dword ptr [ecx - 0x18] */
   5163     edx = MEM32(eax + 0x8); /* 0x470A1D41: mov edx, dword ptr [eax + 8] */
   5164     MEM32(edx + ecx + (-0x18)) = 0x470AE6E4u; /* 0x470A1D44: mov dword ptr [edx + ecx - 0x18], 0x470ae6e4 */
   5165     eax = MEM32(ecx + (-0x18)); /* 0x470A1D4C: mov eax, dword ptr [ecx - 0x18] */
   5166     eax = MEM32(eax + 0x4); /* 0x470A1D4F: mov eax, dword ptr [eax + 4] */
   5167     edx = eax + (-0x18); /* 0x470A1D52: lea edx, [eax - 0x18] */
   5168     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A1D55: mov dword ptr [eax + ecx - 0x1c], edx */
   5169     eax = MEM32(ecx + (-0x18)); /* 0x470A1D59: mov eax, dword ptr [ecx - 0x18] */
   5170     eax = MEM32(eax + 0x8); /* 0x470A1D5C: mov eax, dword ptr [eax + 8] */
   5171     edx = eax + (-0x20); /* 0x470A1D5F: lea edx, [eax - 0x20] */
   5172     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A1D62: mov dword ptr [eax + ecx - 0x1c], edx */
   5173     eax = MEM32(ecx + (-0x18)); /* 0x470A1D66: mov eax, dword ptr [ecx - 0x18] */
   5174     edx = MEM32(eax + 0x4); /* 0x470A1D69: mov edx, dword ptr [eax + 4] */
   5175     MEM32(edx + ecx + (-0x18)) = 0x470AE39Cu; /* 0x470A1D6C: mov dword ptr [edx + ecx - 0x18], 0x470ae39c */
   5176     eax = MEM32(ecx + (-0x18)); /* 0x470A1D74: mov eax, dword ptr [ecx - 0x18] */
   5177     eax = MEM32(eax + 0x4); /* 0x470A1D77: mov eax, dword ptr [eax + 4] */
   5178     edx = eax + (-0x18); /* 0x470A1D7A: lea edx, [eax - 0x18] */
   5179     MEM32(eax + ecx + (-0x1C)) = edx; /* 0x470A1D7D: mov dword ptr [eax + ecx - 0x1c], edx */
   5180     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1D81: ret  */
   5181     RECOMP_REGS_OUT();
   5182 }
   5183 
   5184 void sub_470A1D90(void) {
   5185     int _fpu_cmp = 0;
   5186     uint32_t _cf = 0;
   5187     int _df = 1;
   5188     uint32_t _flag_k = FK_NONE;
   5189     uint32_t _flag_a = 0, _flag_b = 0;
   5190     uint32_t _itail_tgt = 0;
   5191     RECOMP_REGS_LOCALS
   5192     RECOMP_ENTER(0x470A1D90u);
   5193 
   5194 L_470A1D90:
   5195     eax = MEM32(esp + 0x10); /* 0x470A1D90: mov eax, dword ptr [esp + 0x10] */
   5196     PUSH32(esp, esi); /* 0x470A1D94: push esi */
   5197     esi = ecx; /* 0x470A1D95: mov esi, ecx */
   5198     ecx = MEM32(esp + 0x8); /* 0x470A1D97: mov ecx, dword ptr [esp + 8] */
   5199     MEM32(esi + (-0x10)) = eax; /* 0x470A1D9B: mov dword ptr [esi - 0x10], eax */
   5200     eax = MEM32(esp + 0xC); /* 0x470A1D9E: mov eax, dword ptr [esp + 0xc] */
   5201     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DA2: cmp eax, -1 */
   5202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5204     _flag_k = FK_CMP;
   5205     MEM32(esi + (-0xC)) = ecx; /* 0x470A1DA5: mov dword ptr [esi - 0xc], ecx */
   5206     MEM32(esi + (-0x8)) = eax; /* 0x470A1DA8: mov dword ptr [esi - 8], eax */
   5207     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DB8; /* 0x470A1DAB: jne 0x470a1db8 */
   5208 L_470A1DAD:
   5209     ecx = MEM32(esi + (-0xC)); /* 0x470A1DAD: mov ecx, dword ptr [esi - 0xc] */
   5210     edx = MEM32(ecx); /* 0x470A1DB0: mov edx, dword ptr [ecx] */
   5211     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x470A1DB2: call dword ptr [edx + 0x24] */
   5212     RECOMP_FLAGS_IN();
   5213     MEM32(esi + (-0x8)) = eax; /* 0x470A1DB5: mov dword ptr [esi - 8], eax */
   5214 L_470A1DB8:
   5215     eax = MEM32(esi + (-0x8)); /* 0x470A1DB8: mov eax, dword ptr [esi - 8] */
   5216     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DBB: cmp eax, -1 */
   5217     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5218     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5219     _flag_k = FK_CMP;
   5220     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DC6; /* 0x470A1DBE: jne 0x470a1dc6 */
   5221 L_470A1DC0:
   5222     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   5223     eax = eax | eax; /* 0x470A1DC0: or eax, eax */
   5224     _cf = 0;
   5225     _flag_k = FK_TEST;
   5226     esi = POP32_VAL(esp); /* 0x470A1DC2: pop esi */
   5227     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DC3: ret 0x10 */
   5228 L_470A1DC6:
   5229     ecx = MEM32(esi + (-0x14)); /* 0x470A1DC6: mov ecx, dword ptr [esi - 0x14] */
   5230     esi = MEM32(esp + 0x10); /* 0x470A1DC9: mov esi, dword ptr [esp + 0x10] */
   5231     edx = MEM32(ecx); /* 0x470A1DCD: mov edx, dword ptr [ecx] */
   5232     PUSH32(esp, esi); /* 0x470A1DCF: push esi */
   5233     PUSH32(esp, eax); /* 0x470A1DD0: push eax */
   5234     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x470A1DD1: call dword ptr [edx + 0x44] */
   5235     RECOMP_FLAGS_IN();
   5236     esi = POP32_VAL(esp); /* 0x470A1DD4: pop esi */
   5237     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DD5: ret 0x10 */
   5238     RECOMP_REGS_OUT();
   5239 }
   5240 
   5241 void sub_470A1DE0(void) {
   5242     int _fpu_cmp = 0;
   5243     uint32_t _cf = 0;
   5244     int _df = 1;
   5245     uint32_t _flag_k = FK_NONE;
   5246     uint32_t _flag_a = 0, _flag_b = 0;
   5247     uint32_t _itail_tgt = 0;
   5248     RECOMP_REGS_LOCALS
   5249     RECOMP_ENTER(0x470A1DE0u);
   5250 
   5251 L_470A1DE0:
   5252     ecx = 0x4710FDA9u; /* 0x470A1DE0: mov ecx, 0x4710fda9 */
   5253     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470A1DE5: call dword ptr [0x470ac1c8] */
   5254     RECOMP_FLAGS_IN();
   5255     PUSH32(esp, 0x470A1E00u); /* 0x470A1DEB: push 0x470a1e00 */
   5256     RECOMP_ICALL(0x470A32D9u); /* 0x470A1DF0: call 0x470a32d9 */ /* not lifted */
   5257     RECOMP_FLAGS_IN();
   5258     ecx = POP32_VAL(esp); /* 0x470A1DF5: pop ecx */
   5259     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1DF6: ret  */
   5260     RECOMP_REGS_OUT();
   5261 }
   5262 
   5263 void sub_470A1E00(void) {
   5264     int _fpu_cmp = 0;
   5265     uint32_t _cf = 0;
   5266     int _df = 1;
   5267     uint32_t _flag_k = FK_NONE;
   5268     uint32_t _flag_a = 0, _flag_b = 0;
   5269     uint32_t _itail_tgt = 0;
   5270     RECOMP_REGS_LOCALS
   5271     RECOMP_ENTER(0x470A1E00u);
   5272 
   5273 L_470A1E00:
   5274     ecx = 0x4710FDA9u; /* 0x470A1E00: mov ecx, 0x4710fda9 */
   5275 L_470A1E05:
   5276     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   5277     { RECOMP_REGS_OUT(); return; } /* end of function */
   5278   _ljump:
   5279     switch (_itail_tgt) {
   5280       case 0x470A1E00u: goto L_470A1E00;
   5281       case 0x470A1E05u: goto L_470A1E05;
   5282       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5283     }
   5284     RECOMP_REGS_OUT();
   5285 }
   5286 
   5287 void sub_470A1E10(void) {
   5288     int _fpu_cmp = 0;
   5289     uint32_t _cf = 0;
   5290     int _df = 1;
   5291     uint32_t _flag_k = FK_NONE;
   5292     uint32_t _flag_a = 0, _flag_b = 0;
   5293     uint32_t _itail_tgt = 0;
   5294     RECOMP_REGS_LOCALS
   5295     RECOMP_ENTER(0x470A1E10u);
   5296 
   5297 L_470A1E10:
   5298     ecx = 0x4710FDA8u; /* 0x470A1E10: mov ecx, 0x4710fda8 */
   5299     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470A1E15: call dword ptr [0x470ac1c4] */
   5300     RECOMP_FLAGS_IN();
   5301     PUSH32(esp, 0x470A1E30u); /* 0x470A1E1B: push 0x470a1e30 */
   5302     RECOMP_ICALL(0x470A32D9u); /* 0x470A1E20: call 0x470a32d9 */ /* not lifted */
   5303     RECOMP_FLAGS_IN();
   5304     ecx = POP32_VAL(esp); /* 0x470A1E25: pop ecx */
   5305     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1E26: ret  */
   5306     RECOMP_REGS_OUT();
   5307 }
   5308 
   5309 void sub_470A1E30(void) {
   5310     int _fpu_cmp = 0;
   5311     uint32_t _cf = 0;
   5312     int _df = 1;
   5313     uint32_t _flag_k = FK_NONE;
   5314     uint32_t _flag_a = 0, _flag_b = 0;
   5315     uint32_t _itail_tgt = 0;
   5316     RECOMP_REGS_LOCALS
   5317     RECOMP_ENTER(0x470A1E30u);
   5318 
   5319 L_470A1E30:
   5320     ecx = 0x4710FDA8u; /* 0x470A1E30: mov ecx, 0x4710fda8 */
   5321 L_470A1E35:
   5322     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   5323     { RECOMP_REGS_OUT(); return; } /* end of function */
   5324   _ljump:
   5325     switch (_itail_tgt) {
   5326       case 0x470A1E30u: goto L_470A1E30;
   5327       case 0x470A1E35u: goto L_470A1E35;
   5328       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5329     }
   5330     RECOMP_REGS_OUT();
   5331 }
   5332 
   5333 void sub_470A1E40(void) {
   5334     int _fpu_cmp = 0;
   5335     uint32_t _cf = 0;
   5336     int _df = 1;
   5337     uint32_t _flag_k = FK_NONE;
   5338     uint32_t _flag_a = 0, _flag_b = 0;
   5339     uint32_t _itail_tgt = 0;
   5340     RECOMP_REGS_LOCALS
   5341     RECOMP_ENTER(0x470A1E40u);
   5342 
   5343 L_470A1E40:
   5344     MEM32(0x4710FDA0) = 0x47104A3Cu; /* 0x470A1E40: mov dword ptr [0x4710fda0], 0x47104a3c */
   5345     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1E4A: ret  */
   5346     RECOMP_REGS_OUT();
   5347 }
   5348 
   5349 void sub_470A1E50(void) {
   5350     int _fpu_cmp = 0;
   5351     uint32_t _cf = 0;
   5352     int _df = 1;
   5353     uint32_t _flag_k = FK_NONE;
   5354     uint32_t _flag_a = 0, _flag_b = 0;
   5355     uint32_t _itail_tgt = 0;
   5356     RECOMP_REGS_LOCALS
   5357     RECOMP_ENTER(0x470A1E50u);
   5358 
   5359 L_470A1E50:
   5360     MEM32(0x4710FDBC) = 0x47104B6Cu; /* 0x470A1E50: mov dword ptr [0x4710fdbc], 0x47104b6c */
   5361     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1E5A: ret  */
   5362     RECOMP_REGS_OUT();
   5363 }
   5364 
   5365 void sub_470A1E60(void) {
   5366     int _fpu_cmp = 0;
   5367     uint32_t _cf = 0;
   5368     int _df = 1;
   5369     uint32_t _flag_k = FK_NONE;
   5370     uint32_t _flag_a = 0, _flag_b = 0;
   5371     uint32_t _itail_tgt = 0;
   5372     RECOMP_REGS_LOCALS
   5373     RECOMP_ENTER(0x470A1E60u);
   5374 
   5375 L_470A1E60:
   5376     MEM32(0x4710FDB0) = 0x47104A00u; /* 0x470A1E60: mov dword ptr [0x4710fdb0], 0x47104a00 */
   5377     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1E6A: ret  */
   5378     RECOMP_REGS_OUT();
   5379 }
   5380 
   5381 void sub_470A1E70(void) {
   5382     int _fpu_cmp = 0;
   5383     uint32_t _cf = 0;
   5384     int _df = 1;
   5385     uint32_t _flag_k = FK_NONE;
   5386     uint32_t _flag_a = 0, _flag_b = 0;
   5387     uint32_t _itail_tgt = 0;
   5388     RECOMP_REGS_LOCALS
   5389     RECOMP_ENTER(0x470A1E70u);
   5390 
   5391 L_470A1E70:
   5392     MEM32(0x4710FDAC) = 0x47104A70u; /* 0x470A1E70: mov dword ptr [0x4710fdac], 0x47104a70 */
   5393     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1E7A: ret  */
   5394     RECOMP_REGS_OUT();
   5395 }
   5396 
   5397 void sub_470A1E80(void) {
   5398     int _fpu_cmp = 0;
   5399     uint32_t _cf = 0;
   5400     int _df = 1;
   5401     uint32_t _flag_k = FK_NONE;
   5402     uint32_t _flag_a = 0, _flag_b = 0;
   5403     uint32_t _itail_tgt = 0;
   5404     RECOMP_REGS_LOCALS
   5405     RECOMP_ENTER(0x470A1E80u);
   5406 
   5407 L_470A1E80:
   5408     MEM32(0x4710FDA4) = 0x47104BA0u; /* 0x470A1E80: mov dword ptr [0x4710fda4], 0x47104ba0 */
   5409     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1E8A: ret  */
   5410     RECOMP_REGS_OUT();
   5411 }
   5412 
   5413 void sub_470A1E90(void) {
   5414     int _fpu_cmp = 0;
   5415     uint32_t _cf = 0;
   5416     int _df = 1;
   5417     uint32_t _flag_k = FK_NONE;
   5418     uint32_t _flag_a = 0, _flag_b = 0;
   5419     uint32_t _itail_tgt = 0;
   5420     RECOMP_REGS_LOCALS
   5421     RECOMP_ENTER(0x470A1E90u);
   5422 
   5423 L_470A1E90:
   5424     MEM32(0x4710FDB8) = 0x47104BD4u; /* 0x470A1E90: mov dword ptr [0x4710fdb8], 0x47104bd4 */
   5425     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1E9A: ret  */
   5426     RECOMP_REGS_OUT();
   5427 }
   5428 
   5429 void sub_470A1EA0(void) {
   5430     int _fpu_cmp = 0;
   5431     uint32_t _cf = 0;
   5432     int _df = 1;
   5433     uint32_t _flag_k = FK_NONE;
   5434     uint32_t _flag_a = 0, _flag_b = 0;
   5435     uint32_t _itail_tgt = 0;
   5436     RECOMP_REGS_LOCALS
   5437     RECOMP_ENTER(0x470A1EA0u);
   5438 
   5439 L_470A1EA0:
   5440     MEM32(0x4710FDB4) = 0x471050FCu; /* 0x470A1EA0: mov dword ptr [0x4710fdb4], 0x471050fc */
   5441     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1EAA: ret  */
   5442     RECOMP_REGS_OUT();
   5443 }
   5444 
   5445 void sub_470A1EB0(void) {
   5446     int _fpu_cmp = 0;
   5447     uint32_t _cf = 0;
   5448     int _df = 1;
   5449     uint32_t _flag_k = FK_NONE;
   5450     uint32_t _flag_a = 0, _flag_b = 0;
   5451     uint32_t _itail_tgt = 0;
   5452     RECOMP_REGS_LOCALS
   5453     RECOMP_ENTER(0x470A1EB0u);
   5454 
   5455 L_470A1EB0:
   5456     PUSH32(esp, ecx); /* 0x470A1EB0: push ecx */
   5457     eax = ecx; /* 0x470A1EB1: mov eax, ecx */
   5458     ecx = MEM32(esp + 0xC); /* 0x470A1EB3: mov ecx, dword ptr [esp + 0xc] */
   5459     /* test ecx, ecx */ /* 0x470A1EB7: test ecx, ecx */
   5460     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5461     _cf = 0;
   5462     _flag_k = FK_TEST;
   5463     MEM32(esp) = 0; /* 0x470A1EB9: mov dword ptr [esp], 0 */
   5464     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1ED1; /* 0x470A1EC1: je 0x470a1ed1 */
   5465 L_470A1EC3:
   5466     MEM32(eax + 0x14) = 0x470B0328u; /* 0x470A1EC3: mov dword ptr [eax + 0x14], 0x470b0328 */
   5467     MEM32(eax + 0x34) = 0x470ACC18u; /* 0x470A1ECA: mov dword ptr [eax + 0x34], 0x470acc18 */
   5468 L_470A1ED1:
   5469     edx = MEM32(esp + 0x8); /* 0x470A1ED1: mov edx, dword ptr [esp + 8] */
   5470     PUSH32(esp, esi); /* 0x470A1ED5: push esi */
   5471     esi = edx; /* 0x470A1ED6: mov esi, edx */
   5472     PUSH32(esp, edi); /* 0x470A1ED8: push edi */
   5473     ecx = 5; /* 0x470A1ED9: mov ecx, 5 */
   5474     edi = eax; /* 0x470A1EDE: mov edi, eax */
   5475     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470A1EE0: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5476     ecx = MEM32(edx + 0x18); /* 0x470A1EE2: mov ecx, dword ptr [edx + 0x18] */
   5477     MEM32(eax + 0x18) = ecx; /* 0x470A1EE5: mov dword ptr [eax + 0x18], ecx */
   5478     ecx = MEM32(edx + 0x1C); /* 0x470A1EE8: mov ecx, dword ptr [edx + 0x1c] */
   5479     MEM32(eax + 0x1C) = ecx; /* 0x470A1EEB: mov dword ptr [eax + 0x1c], ecx */
   5480     ecx = MEM32(edx + 0x20); /* 0x470A1EEE: mov ecx, dword ptr [edx + 0x20] */
   5481     MEM32(eax + 0x20) = ecx; /* 0x470A1EF1: mov dword ptr [eax + 0x20], ecx */
   5482     ecx = MEM32(edx + 0x24); /* 0x470A1EF4: mov ecx, dword ptr [edx + 0x24] */
   5483     MEM32(eax + 0x24) = ecx; /* 0x470A1EF7: mov dword ptr [eax + 0x24], ecx */
   5484     ecx = MEM32(edx + 0x28); /* 0x470A1EFA: mov ecx, dword ptr [edx + 0x28] */
   5485     MEM32(eax + 0x28) = ecx; /* 0x470A1EFD: mov dword ptr [eax + 0x28], ecx */
   5486     edx = MEM32(edx + 0x2C); /* 0x470A1F00: mov edx, dword ptr [edx + 0x2c] */
   5487     ecx = MEM32(eax + 0x14); /* 0x470A1F03: mov ecx, dword ptr [eax + 0x14] */
   5488     MEM32(eax + 0x2C) = edx; /* 0x470A1F06: mov dword ptr [eax + 0x2c], edx */
   5489     edx = MEM32(ecx + 0x4); /* 0x470A1F09: mov edx, dword ptr [ecx + 4] */
   5490     MEM32(edx + eax + 0x14) = 0x470AE360u; /* 0x470A1F0C: mov dword ptr [edx + eax + 0x14], 0x470ae360 */
   5491     ecx = MEM32(eax + 0x14); /* 0x470A1F14: mov ecx, dword ptr [eax + 0x14] */
   5492     edx = MEM32(ecx + 0x4); /* 0x470A1F17: mov edx, dword ptr [ecx + 4] */
   5493     MEM32(edx + eax + 0x10) = 0; /* 0x470A1F1A: mov dword ptr [edx + eax + 0x10], 0 */
   5494     ecx = MEM32(eax + 0x14); /* 0x470A1F22: mov ecx, dword ptr [eax + 0x14] */
   5495     edx = MEM32(ecx + 0x4); /* 0x470A1F25: mov edx, dword ptr [ecx + 4] */
   5496     MEM32(edx + eax + 0x14) = 0x470B02F4u; /* 0x470A1F28: mov dword ptr [edx + eax + 0x14], 0x470b02f4 */
   5497     ecx = MEM32(eax + 0x14); /* 0x470A1F30: mov ecx, dword ptr [eax + 0x14] */
   5498     edx = MEM32(ecx + 0x4); /* 0x470A1F33: mov edx, dword ptr [ecx + 4] */
   5499     edi = POP32_VAL(esp); /* 0x470A1F36: pop edi */
   5500     MEM32(edx + eax + 0x10) = 0; /* 0x470A1F37: mov dword ptr [edx + eax + 0x10], 0 */
   5501     esi = POP32_VAL(esp); /* 0x470A1F3F: pop esi */
   5502     ecx = POP32_VAL(esp); /* 0x470A1F40: pop ecx */
   5503     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A1F41: ret 8 */
   5504     RECOMP_REGS_OUT();
   5505 }
   5506 
   5507 void sub_470A1F50(void) {
   5508     int _fpu_cmp = 0;
   5509     uint32_t _cf = 0;
   5510     int _df = 1;
   5511     uint32_t _flag_k = FK_NONE;
   5512     uint32_t _flag_a = 0, _flag_b = 0;
   5513     uint32_t _itail_tgt = 0;
   5514     RECOMP_REGS_LOCALS
   5515     RECOMP_ENTER(0x470A1F50u);
   5516 
   5517 L_470A1F50:
   5518     PUSH32(esp, esi); /* 0x470A1F50: push esi */
   5519     esi = ecx + 0x34; /* 0x470A1F51: lea esi, [ecx + 0x34] */
   5520     ecx = esi; /* 0x470A1F54: mov ecx, esi */
   5521     RECOMP_ICALL(0x470A3140u); /* 0x470A1F56: call 0x470a3140 */ /* not lifted */
   5522     RECOMP_FLAGS_IN();
   5523     ecx = esi; /* 0x470A1F5B: mov ecx, esi */
   5524     RECOMP_ICALL(0x47018740u); /* 0x470A1F5D: call 0x47018740 */ /* not lifted */
   5525     RECOMP_FLAGS_IN();
   5526     esi = POP32_VAL(esp); /* 0x470A1F62: pop esi */
   5527     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1F63: ret  */
   5528     RECOMP_REGS_OUT();
   5529 }
   5530 
   5531 void sub_470A1F70(void) {
   5532     int _fpu_cmp = 0;
   5533     uint32_t _cf = 0;
   5534     int _df = 1;
   5535     uint32_t _flag_k = FK_NONE;
   5536     uint32_t _flag_a = 0, _flag_b = 0;
   5537     uint32_t _itail_tgt = 0;
   5538     RECOMP_REGS_LOCALS
   5539     RECOMP_ENTER(0x470A1F70u);
   5540 
   5541 L_470A1F70:
   5542     PUSH32(esp, ebx); /* 0x470A1F70: push ebx */
   5543     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470A1F71: mov bl, byte ptr [esp + 8] */
   5544     /* test LO8(ebx), 2 */ /* 0x470A1F75: test bl, 2 */
   5545     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   5546     _cf = 0;
   5547     _flag_k = FK_NARROW(FK_TEST, 24);
   5548     PUSH32(esp, esi); /* 0x470A1F78: push esi */
   5549     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1FA7; /* 0x470A1F79: je 0x470a1fa7 */
   5550 L_470A1F7B:
   5551     eax = MEM32(ecx + (-0x38)); /* 0x470A1F7B: mov eax, dword ptr [ecx - 0x38] */
   5552     esi = ecx + (-0x38); /* 0x470A1F7E: lea esi, [ecx - 0x38] */
   5553     PUSH32(esp, 0x470A1F50u); /* 0x470A1F81: push 0x470a1f50 */
   5554     PUSH32(esp, eax); /* 0x470A1F86: push eax */
   5555     PUSH32(esp, 0x38u); /* 0x470A1F87: push 0x38 */
   5556     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFCCu);
   5557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5558     ecx = ecx + 0xFFFFFFCCu; /* 0x470A1F89: add ecx, -0x34 */
   5559     _flag_k = FK_ADD;
   5560     PUSH32(esp, ecx); /* 0x470A1F8C: push ecx */
   5561     RECOMP_ICALL(0x470A32EBu); /* 0x470A1F8D: call 0x470a32eb */ /* not lifted */
   5562     RECOMP_FLAGS_IN();
   5563     /* test LO8(ebx), 1 */ /* 0x470A1F92: test bl, 1 */
   5564     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   5565     _cf = 0;
   5566     _flag_k = FK_NARROW(FK_TEST, 24);
   5567     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1FA0; /* 0x470A1F95: je 0x470a1fa0 */
   5568 L_470A1F97:
   5569     PUSH32(esp, esi); /* 0x470A1F97: push esi */
   5570     RECOMP_ICALL(0x470A32A2u); /* 0x470A1F98: call 0x470a32a2 */ /* not lifted */
   5571     RECOMP_FLAGS_IN();
   5572     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5573     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5574     esp = esp + 4; /* 0x470A1F9D: add esp, 4 */
   5575     _flag_k = FK_ADD;
   5576 L_470A1FA0:
   5577     eax = esi; /* 0x470A1FA0: mov eax, esi */
   5578     esi = POP32_VAL(esp); /* 0x470A1FA2: pop esi */
   5579     ebx = POP32_VAL(esp); /* 0x470A1FA3: pop ebx */
   5580     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A1FA4: ret 4 */
   5581 L_470A1FA7:
   5582     PUSH32(esp, edi); /* 0x470A1FA7: push edi */
   5583     edi = ecx + (-0x34); /* 0x470A1FA8: lea edi, [ecx - 0x34] */
   5584     esi = edi + 0x34; /* 0x470A1FAB: lea esi, [edi + 0x34] */
   5585     ecx = esi; /* 0x470A1FAE: mov ecx, esi */
   5586     RECOMP_ICALL(0x470A3140u); /* 0x470A1FB0: call 0x470a3140 */ /* not lifted */
   5587     RECOMP_FLAGS_IN();
   5588     ecx = esi; /* 0x470A1FB5: mov ecx, esi */
   5589     RECOMP_ICALL(0x47018740u); /* 0x470A1FB7: call 0x47018740 */ /* not lifted */
   5590     RECOMP_FLAGS_IN();
   5591     /* test LO8(ebx), 1 */ /* 0x470A1FBC: test bl, 1 */
   5592     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   5593     _cf = 0;
   5594     _flag_k = FK_NARROW(FK_TEST, 24);
   5595     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1FCA; /* 0x470A1FBF: je 0x470a1fca */
   5596 L_470A1FC1:
   5597     PUSH32(esp, edi); /* 0x470A1FC1: push edi */
   5598     RECOMP_ICALL(0x470A32A2u); /* 0x470A1FC2: call 0x470a32a2 */ /* not lifted */
   5599     RECOMP_FLAGS_IN();
   5600     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5601     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5602     esp = esp + 4; /* 0x470A1FC7: add esp, 4 */
   5603     _flag_k = FK_ADD;
   5604 L_470A1FCA:
   5605     eax = edi; /* 0x470A1FCA: mov eax, edi */
   5606     edi = POP32_VAL(esp); /* 0x470A1FCC: pop edi */
   5607     esi = POP32_VAL(esp); /* 0x470A1FCD: pop esi */
   5608     ebx = POP32_VAL(esp); /* 0x470A1FCE: pop ebx */
   5609     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A1FCF: ret 4 */
   5610     RECOMP_REGS_OUT();
   5611 }
   5612 
   5613 void sub_470A1FE0(void) {
   5614     int _fpu_cmp = 0;
   5615     uint32_t _cf = 0;
   5616     int _df = 1;
   5617     uint32_t _flag_k = FK_NONE;
   5618     uint32_t _flag_a = 0, _flag_b = 0;
   5619     uint32_t _itail_tgt = 0;
   5620     RECOMP_REGS_LOCALS
   5621     RECOMP_ENTER(0x470A1FE0u);
   5622 
   5623 L_470A1FE0:
   5624     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A1FE0: push -1 */
   5625     PUSH32(esp, 0x470ABCFEu); /* 0x470A1FE2: push 0x470abcfe */
   5626     eax = MEM32(FS_BASE + (0)); /* 0x470A1FE7: mov eax, dword ptr fs:[0] */
   5627     PUSH32(esp, eax); /* 0x470A1FED: push eax */
   5628     MEM32(FS_BASE + (0)) = esp; /* 0x470A1FEE: mov dword ptr fs:[0], esp */
   5629     PUSH32(esp, ecx); /* 0x470A1FF5: push ecx */
   5630     PUSH32(esp, esi); /* 0x470A1FF6: push esi */
   5631     PUSH32(esp, edi); /* 0x470A1FF7: push edi */
   5632     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5633     edi = 0; /* 0x470A1FF8: xor edi, edi */
   5634     _cf = 0;
   5635     _flag_k = FK_TEST;
   5636     PUSH32(esp, edi); /* 0x470A1FFA: push edi */
   5637     esi = ecx; /* 0x470A1FFB: mov esi, ecx */
   5638     PUSH32(esp, edi); /* 0x470A1FFD: push edi */
   5639     MEM32(esp + 0x10) = esi; /* 0x470A1FFE: mov dword ptr [esp + 0x10], esi */
   5640     RECOMP_ICALL(0x4702A790u); /* 0x470A2002: call 0x4702a790 */ /* not lifted */
   5641     RECOMP_FLAGS_IN();
   5642     MEM32(esi) = 0x470AE2C8u; /* 0x470A2007: mov dword ptr [esi], 0x470ae2c8 */
   5643     eax = MEM32(esp + 0x1C); /* 0x470A200D: mov eax, dword ptr [esp + 0x1c] */
   5644     PUSH32(esp, edi); /* 0x470A2011: push edi */
   5645     PUSH32(esp, edi); /* 0x470A2012: push edi */
   5646     PUSH32(esp, 1); /* 0x470A2013: push 1 */
   5647     PUSH32(esp, edi); /* 0x470A2015: push edi */
   5648     ecx = esi + 0x14; /* 0x470A2016: lea ecx, [esi + 0x14] */
   5649     MEM32(esp + 0x24) = edi; /* 0x470A2019: mov dword ptr [esp + 0x24], edi */
   5650     MEM32(esi + 0xC) = edi; /* 0x470A201D: mov dword ptr [esi + 0xc], edi */
   5651     MEM32(esi + 0x10) = eax; /* 0x470A2020: mov dword ptr [esi + 0x10], eax */
   5652     RECOMP_ICALL(0x47086DB0u); /* 0x470A2023: call 0x47086db0 */ /* not lifted */
   5653     RECOMP_FLAGS_IN();
   5654     ecx = MEM32(esp + 0x20); /* 0x470A2028: mov ecx, dword ptr [esp + 0x20] */
   5655     MEM32(esi + 0x1C) = ecx; /* 0x470A202C: mov dword ptr [esi + 0x1c], ecx */
   5656     ecx = esi + 0x20; /* 0x470A202F: lea ecx, [esi + 0x20] */
   5657     MEM8(esp + 0x14) = (uint8_t)(1); /* 0x470A2032: mov byte ptr [esp + 0x14], 1 */
   5658     RECOMP_ICALL(0x47018450u); /* 0x470A2037: call 0x47018450 */ /* not lifted */
   5659     RECOMP_FLAGS_IN();
   5660     edx = MEM32(esi + 0x10); /* 0x470A203C: mov edx, dword ptr [esi + 0x10] */
   5661     eax = MEM32(esi + 0xC); /* 0x470A203F: mov eax, dword ptr [esi + 0xc] */
   5662     PUSH32(esp, edx); /* 0x470A2042: push edx */
   5663     PUSH32(esp, edi); /* 0x470A2043: push edi */
   5664     PUSH32(esp, eax); /* 0x470A2044: push eax */
   5665     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A2045: push -1 */
   5666     MEM8(esp + 0x24) = (uint8_t)(2); /* 0x470A2047: mov byte ptr [esp + 0x24], 2 */
   5667     MEM32(esi) = 0x470B0330u; /* 0x470A204C: mov dword ptr [esi], 0x470b0330 */
   5668     RECOMP_ICALL(MEM32(0x470AC074)); /* 0x470A2052: call dword ptr [0x470ac074] */
   5669     RECOMP_FLAGS_IN();
   5670     /* cmp eax, edi */ /* 0x470A2058: cmp eax, edi */
   5671     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5673     _flag_k = FK_CMP;
   5674     MEM32(esi + 0xC) = eax; /* 0x470A205A: mov dword ptr [esi + 0xc], eax */
   5675     if (CMP_NE(_flag_a, _flag_b)) goto L_470A20D4; /* 0x470A205D: jne 0x470a20d4 */
   5676 L_470A205F:
   5677     PUSH32(esp, ebx); /* 0x470A205F: push ebx */
   5678     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A2060: call dword ptr [0x470ac150] */
   5679     RECOMP_FLAGS_IN();
   5680     ebx = eax; /* 0x470A2066: mov ebx, eax */
   5681     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A2068: call dword ptr [0x470ac3c8] */
   5682     RECOMP_FLAGS_IN();
   5683     eax = MEM32(eax); /* 0x470A206E: mov eax, dword ptr [eax] */
   5684     /* cmp eax, edi */ /* 0x470A2070: cmp eax, edi */
   5685     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5687     _flag_k = FK_CMP;
   5688     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A2076; /* 0x470A2072: je 0x470a2076 */
   5689 L_470A2074:
   5690     ebx = eax; /* 0x470A2074: mov ebx, eax */
   5691 L_470A2076:
   5692     RECOMP_ICALL(0x47039020u); /* 0x470A2076: call 0x47039020 */ /* not lifted */
   5693     RECOMP_FLAGS_IN();
   5694     edi = eax; /* 0x470A207B: mov edi, eax */
   5695     ecx = edi; /* 0x470A207D: mov ecx, edi */
   5696     RECOMP_ICALL(0x4703B210u); /* 0x470A207F: call 0x4703b210 */ /* not lifted */
   5697     RECOMP_FLAGS_IN();
   5698     PUSH32(esp, eax); /* 0x470A2084: push eax */
   5699     ecx = edi; /* 0x470A2085: mov ecx, edi */
   5700     RECOMP_ICALL(0x4703B240u); /* 0x470A2087: call 0x4703b240 */ /* not lifted */
   5701     RECOMP_FLAGS_IN();
   5702     PUSH32(esp, eax); /* 0x470A208C: push eax */
   5703     ecx = edi; /* 0x470A208D: mov ecx, edi */
   5704     RECOMP_ICALL(0x4703B080u); /* 0x470A208F: call 0x4703b080 */ /* not lifted */
   5705     RECOMP_FLAGS_IN();
   5706     PUSH32(esp, eax); /* 0x470A2094: push eax */
   5707     PUSH32(esp, ebx); /* 0x470A2095: push ebx */
   5708     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A2096: push -1 */
   5709     PUSH32(esp, 0x3Cu); /* 0x470A2098: push 0x3c */
   5710     PUSH32(esp, 0x4710DBD4u); /* 0x470A209A: push 0x4710dbd4 */
   5711     ecx = edi; /* 0x470A209F: mov ecx, edi */
   5712     RECOMP_ICALL(0x4703A340u); /* 0x470A20A1: call 0x4703a340 */ /* not lifted */
   5713     RECOMP_FLAGS_IN();
   5714     PUSH32(esp, 0x4710DBBCu); /* 0x470A20A6: push 0x4710dbbc */
   5715     PUSH32(esp, 0x471055F0u); /* 0x470A20AB: push 0x471055f0 */
   5716     PUSH32(esp, 0x80u); /* 0x470A20B0: push 0x80 */
   5717     PUSH32(esp, edi); /* 0x470A20B5: push edi */
   5718     RECOMP_ICALL(0x47039830u); /* 0x470A20B6: call 0x47039830 */ /* not lifted */
   5719     RECOMP_FLAGS_IN();
   5720     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5721     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5722     esp = esp + 0x10u; /* 0x470A20BB: add esp, 0x10 */
   5723     _flag_k = FK_ADD;
   5724     ebx = POP32_VAL(esp); /* 0x470A20BE: pop ebx */
   5725     edi = POP32_VAL(esp); /* 0x470A20BF: pop edi */
   5726     eax = esi; /* 0x470A20C0: mov eax, esi */
   5727     esi = POP32_VAL(esp); /* 0x470A20C2: pop esi */
   5728     ecx = MEM32(esp + 0x4); /* 0x470A20C3: mov ecx, dword ptr [esp + 4] */
   5729     MEM32(FS_BASE + (0)) = ecx; /* 0x470A20C7: mov dword ptr fs:[0], ecx */
   5730     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5732     esp = esp + 0x10u; /* 0x470A20CE: add esp, 0x10 */
   5733     _flag_k = FK_ADD;
   5734     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A20D1: ret 8 */
   5735 L_470A20D4:
   5736     ecx = MEM32(esp + 0xC); /* 0x470A20D4: mov ecx, dword ptr [esp + 0xc] */
   5737     edi = POP32_VAL(esp); /* 0x470A20D8: pop edi */
   5738     eax = esi; /* 0x470A20D9: mov eax, esi */
   5739     esi = POP32_VAL(esp); /* 0x470A20DB: pop esi */
   5740     MEM32(FS_BASE + (0)) = ecx; /* 0x470A20DC: mov dword ptr fs:[0], ecx */
   5741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5742     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5743     esp = esp + 0x10u; /* 0x470A20E3: add esp, 0x10 */
   5744     _flag_k = FK_ADD;
   5745     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A20E6: ret 8 */
   5746     RECOMP_REGS_OUT();
   5747 }
   5748 
   5749 void sub_470A20F0(void) {
   5750     int _fpu_cmp = 0;
   5751     uint32_t _cf = 0;
   5752     int _df = 1;
   5753     uint32_t _flag_k = FK_NONE;
   5754     uint32_t _flag_a = 0, _flag_b = 0;
   5755     uint32_t _itail_tgt = 0;
   5756     RECOMP_REGS_LOCALS
   5757     RECOMP_ENTER(0x470A20F0u);
   5758 
   5759 L_470A20F0:
   5760     PUSH32(esp, ebx); /* 0x470A20F0: push ebx */
   5761     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470A20F1: mov bl, byte ptr [esp + 8] */
   5762     /* test LO8(ebx), 2 */ /* 0x470A20F5: test bl, 2 */
   5763     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   5764     _cf = 0;
   5765     _flag_k = FK_NARROW(FK_TEST, 24);
   5766     PUSH32(esp, esi); /* 0x470A20F8: push esi */
   5767     esi = ecx; /* 0x470A20F9: mov esi, ecx */
   5768     if (TEST_Z(_flag_a, _flag_b)) goto L_470A2128; /* 0x470A20FB: je 0x470a2128 */
   5769 L_470A20FD:
   5770     eax = MEM32(esi + (-0x4)); /* 0x470A20FD: mov eax, dword ptr [esi - 4] */
   5771     PUSH32(esp, edi); /* 0x470A2100: push edi */
   5772     PUSH32(esp, 0x470A2150u); /* 0x470A2101: push 0x470a2150 */
   5773     edi = esi + (-0x4); /* 0x470A2106: lea edi, [esi - 4] */
   5774     PUSH32(esp, eax); /* 0x470A2109: push eax */
   5775     PUSH32(esp, 0x28u); /* 0x470A210A: push 0x28 */
   5776     PUSH32(esp, esi); /* 0x470A210C: push esi */
   5777     RECOMP_ICALL(0x470A32EBu); /* 0x470A210D: call 0x470a32eb */ /* not lifted */
   5778     RECOMP_FLAGS_IN();
   5779     /* test LO8(ebx), 1 */ /* 0x470A2112: test bl, 1 */
   5780     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   5781     _cf = 0;
   5782     _flag_k = FK_NARROW(FK_TEST, 24);
   5783     if (TEST_Z(_flag_a, _flag_b)) goto L_470A2120; /* 0x470A2115: je 0x470a2120 */
   5784 L_470A2117:
   5785     PUSH32(esp, edi); /* 0x470A2117: push edi */
   5786     RECOMP_ICALL(0x470A32A2u); /* 0x470A2118: call 0x470a32a2 */ /* not lifted */
   5787     RECOMP_FLAGS_IN();
   5788     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5790     esp = esp + 4; /* 0x470A211D: add esp, 4 */
   5791     _flag_k = FK_ADD;
   5792 L_470A2120:
   5793     eax = edi; /* 0x470A2120: mov eax, edi */
   5794     edi = POP32_VAL(esp); /* 0x470A2122: pop edi */
   5795     esi = POP32_VAL(esp); /* 0x470A2123: pop esi */
   5796     ebx = POP32_VAL(esp); /* 0x470A2124: pop ebx */
   5797     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A2125: ret 4 */
   5798 L_470A2128:
   5799     ecx = esi; /* 0x470A2128: mov ecx, esi */
   5800     RECOMP_ICALL(0x470A2150u); /* 0x470A212A: call 0x470a2150 */ /* not lifted */
   5801     RECOMP_FLAGS_IN();
   5802     /* test LO8(ebx), 1 */ /* 0x470A212F: test bl, 1 */
   5803     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   5804     _cf = 0;
   5805     _flag_k = FK_NARROW(FK_TEST, 24);
   5806     if (TEST_Z(_flag_a, _flag_b)) goto L_470A213D; /* 0x470A2132: je 0x470a213d */
   5807 L_470A2134:
   5808     PUSH32(esp, esi); /* 0x470A2134: push esi */
   5809     RECOMP_ICALL(0x470A32A2u); /* 0x470A2135: call 0x470a32a2 */ /* not lifted */
   5810     RECOMP_FLAGS_IN();
   5811     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5812     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5813     esp = esp + 4; /* 0x470A213A: add esp, 4 */
   5814     _flag_k = FK_ADD;
   5815 L_470A213D:
   5816     eax = esi; /* 0x470A213D: mov eax, esi */
   5817     esi = POP32_VAL(esp); /* 0x470A213F: pop esi */
   5818     ebx = POP32_VAL(esp); /* 0x470A2140: pop ebx */
   5819     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A2141: ret 4 */
   5820     RECOMP_REGS_OUT();
   5821 }
   5822 
   5823 void sub_470A2150(void) {
   5824     int _fpu_cmp = 0;
   5825     uint32_t _cf = 0;
   5826     int _df = 1;
   5827     uint32_t _flag_k = FK_NONE;
   5828     uint32_t _flag_a = 0, _flag_b = 0;
   5829     uint32_t _itail_tgt = 0;
   5830     RECOMP_REGS_LOCALS
   5831     RECOMP_ENTER(0x470A2150u);
   5832 
   5833 L_470A2150:
   5834     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A2150: push -1 */
   5835     PUSH32(esp, 0x470ABD23u); /* 0x470A2152: push 0x470abd23 */
   5836     eax = MEM32(FS_BASE + (0)); /* 0x470A2157: mov eax, dword ptr fs:[0] */
   5837     PUSH32(esp, eax); /* 0x470A215D: push eax */
   5838     MEM32(FS_BASE + (0)) = esp; /* 0x470A215E: mov dword ptr fs:[0], esp */
   5839     PUSH32(esp, ecx); /* 0x470A2165: push ecx */
   5840     PUSH32(esp, esi); /* 0x470A2166: push esi */
   5841     esi = ecx; /* 0x470A2167: mov esi, ecx */
   5842     MEM32(esp + 0x4) = esi; /* 0x470A2169: mov dword ptr [esp + 4], esi */
   5843     MEM32(esi) = 0x470B0330u; /* 0x470A216D: mov dword ptr [esi], 0x470b0330 */
   5844     eax = MEM32(esi + 0xC); /* 0x470A2173: mov eax, dword ptr [esi + 0xc] */
   5845     /* test eax, eax */ /* 0x470A2176: test eax, eax */
   5846     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5847     _cf = 0;
   5848     _flag_k = FK_TEST;
   5849     MEM32(esp + 0x10) = 1; /* 0x470A2178: mov dword ptr [esp + 0x10], 1 */
   5850     if (TEST_Z(_flag_a, _flag_b)) goto L_470A21AE; /* 0x470A2180: je 0x470a21ae */
   5851 L_470A2182:
   5852     PUSH32(esp, eax); /* 0x470A2182: push eax */
   5853     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x470A2183: call dword ptr [0x470ac198] */
   5854     RECOMP_FLAGS_IN();
   5855     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5856     _cf = (eax) != 0;
   5857     eax = (uint32_t)(-(int32_t)eax); /* 0x470A2189: neg eax */
   5858     _flag_k = FK_CMP;
   5859     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470A218B: sbb eax, eax */
   5860       eax = _sc ? 0xFFFFFFFFu : 0;
   5861       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5862       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5863     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5864     _cf = (eax) != 0;
   5865     eax = (uint32_t)(-(int32_t)eax); /* 0x470A218D: neg eax */
   5866     _flag_k = FK_CMP;
   5867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5868     eax = eax - 1; /* 0x470A218F: dec eax */
   5869     _flag_k = FK_DEC;
   5870     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A2190: cmp eax, -1 */
   5871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5873     _flag_k = FK_CMP;
   5874     if (CMP_NE(_flag_a, _flag_b)) goto L_470A21A7; /* 0x470A2193: jne 0x470a21a7 */
   5875 L_470A2195:
   5876     PUSH32(esp, edi); /* 0x470A2195: push edi */
   5877     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A2196: call dword ptr [0x470ac3c8] */
   5878     RECOMP_FLAGS_IN();
   5879     edi = eax; /* 0x470A219C: mov edi, eax */
   5880     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A219E: call dword ptr [0x470ac150] */
   5881     RECOMP_FLAGS_IN();
   5882     MEM32(edi) = eax; /* 0x470A21A4: mov dword ptr [edi], eax */
   5883     edi = POP32_VAL(esp); /* 0x470A21A6: pop edi */
   5884 L_470A21A7:
   5885     MEM32(esi + 0xC) = 0; /* 0x470A21A7: mov dword ptr [esi + 0xc], 0 */
   5886 L_470A21AE:
   5887     ecx = esi + 0x20; /* 0x470A21AE: lea ecx, [esi + 0x20] */
   5888     RECOMP_ICALL(0x47018480u); /* 0x470A21B1: call 0x47018480 */ /* not lifted */
   5889     RECOMP_FLAGS_IN();
   5890     ecx = esi + 0x14; /* 0x470A21B6: lea ecx, [esi + 0x14] */
   5891     MEM8(esp + 0x10) = (uint8_t)(0); /* 0x470A21B9: mov byte ptr [esp + 0x10], 0 */
   5892     RECOMP_ICALL(0x47086020u); /* 0x470A21BE: call 0x47086020 */ /* not lifted */
   5893     RECOMP_FLAGS_IN();
   5894     ecx = esi; /* 0x470A21C3: mov ecx, esi */
   5895     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470A21C5: mov dword ptr [esp + 0x10], 0xffffffff */
   5896     MEM32(esi) = 0x470AE2C8u; /* 0x470A21CD: mov dword ptr [esi], 0x470ae2c8 */
   5897     RECOMP_ICALL(0x4702A7B0u); /* 0x470A21D3: call 0x4702a7b0 */ /* not lifted */
   5898     RECOMP_FLAGS_IN();
   5899     ecx = MEM32(esp + 0x8); /* 0x470A21D8: mov ecx, dword ptr [esp + 8] */
   5900     esi = POP32_VAL(esp); /* 0x470A21DC: pop esi */
   5901     MEM32(FS_BASE + (0)) = ecx; /* 0x470A21DD: mov dword ptr fs:[0], ecx */
   5902     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5903     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5904     esp = esp + 0x10u; /* 0x470A21E4: add esp, 0x10 */
   5905     _flag_k = FK_ADD;
   5906     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A21E7: ret  */
   5907     RECOMP_REGS_OUT();
   5908 }
   5909 
   5910 void sub_470A21F0(void) {
   5911     int _fpu_cmp = 0;
   5912     uint32_t _cf = 0;
   5913     int _df = 1;
   5914     uint32_t _flag_k = FK_NONE;
   5915     uint32_t _flag_a = 0, _flag_b = 0;
   5916     uint32_t _itail_tgt = 0;
   5917     RECOMP_REGS_LOCALS
   5918     RECOMP_ENTER(0x470A21F0u);
   5919 
   5920 L_470A21F0:
   5921     PUSH32(esp, edi); /* 0x470A21F0: push edi */
   5922     edi = ecx; /* 0x470A21F1: mov edi, ecx */
   5923     eax = MEM32(edi + 0xC); /* 0x470A21F3: mov eax, dword ptr [edi + 0xc] */
   5924     /* test eax, eax */ /* 0x470A21F6: test eax, eax */
   5925     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5926     _cf = 0;
   5927     _flag_k = FK_TEST;
   5928     if (TEST_Z(_flag_a, _flag_b)) goto L_470A222E; /* 0x470A21F8: je 0x470a222e */
   5929 L_470A21FA:
   5930     PUSH32(esp, esi); /* 0x470A21FA: push esi */
   5931     PUSH32(esp, eax); /* 0x470A21FB: push eax */
   5932     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x470A21FC: call dword ptr [0x470ac198] */
   5933     RECOMP_FLAGS_IN();
   5934     esi = eax; /* 0x470A2202: mov esi, eax */
   5935     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   5936     _cf = (esi) != 0;
   5937     esi = (uint32_t)(-(int32_t)esi); /* 0x470A2204: neg esi */
   5938     _flag_k = FK_CMP;
   5939     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x470A2206: sbb esi, esi */
   5940       esi = _sc ? 0xFFFFFFFFu : 0;
   5941       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5942       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5943     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
   5944     _cf = (esi) != 0;
   5945     esi = (uint32_t)(-(int32_t)esi); /* 0x470A2208: neg esi */
   5946     _flag_k = FK_CMP;
   5947     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5948     esi = esi - 1; /* 0x470A220A: dec esi */
   5949     _flag_k = FK_DEC;
   5950     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A220B: cmp esi, -1 */
   5951     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5953     _flag_k = FK_CMP;
   5954     if (CMP_NE(_flag_a, _flag_b)) goto L_470A2222; /* 0x470A220E: jne 0x470a2222 */
   5955 L_470A2210:
   5956     PUSH32(esp, ebx); /* 0x470A2210: push ebx */
   5957     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A2211: call dword ptr [0x470ac3c8] */
   5958     RECOMP_FLAGS_IN();
   5959     ebx = eax; /* 0x470A2217: mov ebx, eax */
   5960     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A2219: call dword ptr [0x470ac150] */
   5961     RECOMP_FLAGS_IN();
   5962     MEM32(ebx) = eax; /* 0x470A221F: mov dword ptr [ebx], eax */
   5963     ebx = POP32_VAL(esp); /* 0x470A2221: pop ebx */
   5964 L_470A2222:
   5965     eax = esi; /* 0x470A2222: mov eax, esi */
   5966     esi = POP32_VAL(esp); /* 0x470A2224: pop esi */
   5967     MEM32(edi + 0xC) = 0; /* 0x470A2225: mov dword ptr [edi + 0xc], 0 */
   5968     edi = POP32_VAL(esp); /* 0x470A222C: pop edi */
   5969     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A222D: ret  */
   5970 L_470A222E:
   5971     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5972     eax = 0; /* 0x470A222E: xor eax, eax */
   5973     _cf = 0;
   5974     _flag_k = FK_TEST;
   5975     edi = POP32_VAL(esp); /* 0x470A2230: pop edi */
   5976     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A2231: ret  */
   5977     RECOMP_REGS_OUT();
   5978 }
   5979 
   5980 void sub_470A2240(void) {
   5981     int _fpu_cmp = 0;
   5982     uint32_t _cf = 0;
   5983     int _df = 1;
   5984     uint32_t _flag_k = FK_NONE;
   5985     uint32_t _flag_a = 0, _flag_b = 0;
   5986     uint32_t _itail_tgt = 0;
   5987     RECOMP_REGS_LOCALS
   5988     RECOMP_ENTER(0x470A2240u);
   5989 
   5990 L_470A2240:
   5991     eax = MEM32(ecx + 0x10); /* 0x470A2240: mov eax, dword ptr [ecx + 0x10] */
   5992     edx = MEM32(esp + 0x8); /* 0x470A2243: mov edx, dword ptr [esp + 8] */
   5993     PUSH32(esp, esi); /* 0x470A2247: push esi */
   5994     PUSH32(esp, edi); /* 0x470A2248: push edi */
   5995     PUSH32(esp, eax); /* 0x470A2249: push eax */
   5996     eax = MEM32(ecx + 0xC); /* 0x470A224A: mov eax, dword ptr [ecx + 0xc] */
   5997     ecx = MEM32(esp + 0x10); /* 0x470A224D: mov ecx, dword ptr [esp + 0x10] */
   5998     PUSH32(esp, edx); /* 0x470A2251: push edx */
   5999     PUSH32(esp, eax); /* 0x470A2252: push eax */
   6000     PUSH32(esp, ecx); /* 0x470A2253: push ecx */
   6001     RECOMP_ICALL(MEM32(0x470AC074)); /* 0x470A2254: call dword ptr [0x470ac074] */
   6002     RECOMP_FLAGS_IN();
   6003     /* test eax, eax */ /* 0x470A225A: test eax, eax */
   6004     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6005     _cf = 0;
   6006     _flag_k = FK_TEST;
   6007     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A22E6; /* 0x470A225C: jne 0x470a22e6 */
   6008 L_470A2262:
   6009     esi = MEM32(0x470AC3C8); /* 0x470A2262: mov esi, dword ptr [0x470ac3c8] */
   6010     PUSH32(esp, ebx); /* 0x470A2268: push ebx */
   6011     RECOMP_ICALL(esi); /* 0x470A2269: call esi */
   6012     RECOMP_FLAGS_IN();
   6013     edi = MEM32(0x470AC150); /* 0x470A226B: mov edi, dword ptr [0x470ac150] */
   6014     ebx = eax; /* 0x470A2271: mov ebx, eax */
   6015     RECOMP_ICALL(edi); /* 0x470A2273: call edi */
   6016     RECOMP_FLAGS_IN();
   6017     MEM32(ebx) = eax; /* 0x470A2275: mov dword ptr [ebx], eax */
   6018     RECOMP_ICALL(esi); /* 0x470A2277: call esi */
   6019     RECOMP_FLAGS_IN();
   6020     /* cmp MEM32(eax), 0x57u */ /* 0x470A2279: cmp dword ptr [eax], 0x57 */
   6021     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x57u);
   6022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6023     _flag_k = FK_CMP;
   6024     ebx = POP32_VAL(esp); /* 0x470A227C: pop ebx */
   6025     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A22E6; /* 0x470A227D: je 0x470a22e6 */
   6026 L_470A227F:
   6027     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A227F: mov al, byte ptr [0x4710de04] */
   6028     /* test LO8(eax), LO8(eax) */ /* 0x470A2284: test al, al */
   6029     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6030     _cf = 0;
   6031     _flag_k = FK_NARROW(FK_TEST, 24);
   6032     if (TEST_Z(_flag_a, _flag_b)) goto L_470A22DE; /* 0x470A2286: je 0x470a22de */
   6033 L_470A2288:
   6034     RECOMP_ICALL(edi); /* 0x470A2288: call edi */
   6035     RECOMP_FLAGS_IN();
   6036     edi = eax; /* 0x470A228A: mov edi, eax */
   6037     RECOMP_ICALL(esi); /* 0x470A228C: call esi */
   6038     RECOMP_FLAGS_IN();
   6039     eax = MEM32(eax); /* 0x470A228E: mov eax, dword ptr [eax] */
   6040     /* test eax, eax */ /* 0x470A2290: test eax, eax */
   6041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6042     _cf = 0;
   6043     _flag_k = FK_TEST;
   6044     if (TEST_Z(_flag_a, _flag_b)) goto L_470A2296; /* 0x470A2292: je 0x470a2296 */
   6045 L_470A2294:
   6046     edi = eax; /* 0x470A2294: mov edi, eax */
   6047 L_470A2296:
   6048     RECOMP_ICALL(0x47039020u); /* 0x470A2296: call 0x47039020 */ /* not lifted */
   6049     RECOMP_FLAGS_IN();
   6050     esi = eax; /* 0x470A229B: mov esi, eax */
   6051     ecx = esi; /* 0x470A229D: mov ecx, esi */
   6052     RECOMP_ICALL(0x4703B210u); /* 0x470A229F: call 0x4703b210 */ /* not lifted */
   6053     RECOMP_FLAGS_IN();
   6054     PUSH32(esp, eax); /* 0x470A22A4: push eax */
   6055     ecx = esi; /* 0x470A22A5: mov ecx, esi */
   6056     RECOMP_ICALL(0x4703B240u); /* 0x470A22A7: call 0x4703b240 */ /* not lifted */
   6057     RECOMP_FLAGS_IN();
   6058     PUSH32(esp, eax); /* 0x470A22AC: push eax */
   6059     ecx = esi; /* 0x470A22AD: mov ecx, esi */
   6060     RECOMP_ICALL(0x4703B080u); /* 0x470A22AF: call 0x4703b080 */ /* not lifted */
   6061     RECOMP_FLAGS_IN();
   6062     PUSH32(esp, eax); /* 0x470A22B4: push eax */
   6063     PUSH32(esp, edi); /* 0x470A22B5: push edi */
   6064     PUSH32(esp, 0); /* 0x470A22B6: push 0 */
   6065     PUSH32(esp, 0x66u); /* 0x470A22B8: push 0x66 */
   6066     PUSH32(esp, 0x4710DBD4u); /* 0x470A22BA: push 0x4710dbd4 */
   6067     ecx = esi; /* 0x470A22BF: mov ecx, esi */
   6068     RECOMP_ICALL(0x4703A340u); /* 0x470A22C1: call 0x4703a340 */ /* not lifted */
   6069     RECOMP_FLAGS_IN();
   6070     PUSH32(esp, 0x4710DBBCu); /* 0x470A22C6: push 0x4710dbbc */
   6071     PUSH32(esp, 0x471055F0u); /* 0x470A22CB: push 0x471055f0 */
   6072     PUSH32(esp, 0x80u); /* 0x470A22D0: push 0x80 */
   6073     PUSH32(esp, esi); /* 0x470A22D5: push esi */
   6074     RECOMP_ICALL(0x47039830u); /* 0x470A22D6: call 0x47039830 */ /* not lifted */
   6075     RECOMP_FLAGS_IN();
   6076     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6078     esp = esp + 0x10u; /* 0x470A22DB: add esp, 0x10 */
   6079     _flag_k = FK_ADD;
   6080 L_470A22DE:
   6081     edi = POP32_VAL(esp); /* 0x470A22DE: pop edi */
   6082     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6083     eax = eax | 0xFFFFFFFFu; /* 0x470A22DF: or eax, 0xffffffff */
   6084     _cf = 0;
   6085     _flag_k = FK_TEST;
   6086     esi = POP32_VAL(esp); /* 0x470A22E2: pop esi */
   6087     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A22E3: ret 8 */
   6088 L_470A22E6:
   6089     edi = POP32_VAL(esp); /* 0x470A22E6: pop edi */
   6090     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6091     eax = 0; /* 0x470A22E7: xor eax, eax */
   6092     _cf = 0;
   6093     _flag_k = FK_TEST;
   6094     esi = POP32_VAL(esp); /* 0x470A22E9: pop esi */
   6095     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470A22EA: ret 8 */
   6096     RECOMP_REGS_OUT();
   6097 }