aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0045.c (194437B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47067380(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(0x47067380u);
     13 
     14 L_47067380:
     15     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
     16     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     17     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067380: sub ecx, dword ptr [ecx - 4] */
     18     _flag_k = FK_CMP;
     19     goto L_470A04B0; /* 0x47067383: jmp 0x470a04b0 */
     20 L_470A04B0:
     21     eax = MEM32(ecx + (-0x34)); /* 0x470A04B0: mov eax, dword ptr [ecx - 0x34] */
     22     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A04B3: ret  */
     23     RECOMP_REGS_OUT();
     24 }
     25 
     26 void sub_47067390(void) {
     27     int _fpu_cmp = 0;
     28     uint32_t _cf = 0;
     29     int _df = 1;
     30     uint32_t _flag_k = FK_NONE;
     31     uint32_t _flag_a = 0, _flag_b = 0;
     32     uint32_t _itail_tgt = 0;
     33     RECOMP_REGS_LOCALS
     34     RECOMP_ENTER(0x47067390u);
     35 
     36 L_47067390:
     37     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
     38     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     39     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067390: sub ecx, dword ptr [ecx - 4] */
     40     _flag_k = FK_CMP;
     41     goto L_4709FF60; /* 0x47067393: jmp 0x4709ff60 */
     42 L_4709FF60:
     43     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
     44     RECOMP_FLAGS_IN();
     45     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
     46     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     47     eax = 0; /* 0x4709FF6C: xor eax, eax */
     48     _cf = 0;
     49     _flag_k = FK_TEST;
     50     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
     51     RECOMP_REGS_OUT();
     52 }
     53 
     54 void sub_470673A0(void) {
     55     int _fpu_cmp = 0;
     56     uint32_t _cf = 0;
     57     int _df = 1;
     58     uint32_t _flag_k = FK_NONE;
     59     uint32_t _flag_a = 0, _flag_b = 0;
     60     uint32_t _itail_tgt = 0;
     61     RECOMP_REGS_LOCALS
     62     RECOMP_ENTER(0x470673A0u);
     63 
     64 L_470673A0:
     65     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
     66     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     67     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470673A0: sub ecx, dword ptr [ecx - 4] */
     68     _flag_k = FK_CMP;
     69     goto L_4709FF60; /* 0x470673A3: jmp 0x4709ff60 */
     70 L_4709FF60:
     71     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
     72     RECOMP_FLAGS_IN();
     73     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
     74     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     75     eax = 0; /* 0x4709FF6C: xor eax, eax */
     76     _cf = 0;
     77     _flag_k = FK_TEST;
     78     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
     79     RECOMP_REGS_OUT();
     80 }
     81 
     82 void sub_470673B0(void) {
     83     int _fpu_cmp = 0;
     84     uint32_t _cf = 0;
     85     int _df = 1;
     86     uint32_t _flag_k = FK_NONE;
     87     uint32_t _flag_a = 0, _flag_b = 0;
     88     uint32_t _itail_tgt = 0;
     89     RECOMP_REGS_LOCALS
     90     RECOMP_ENTER(0x470673B0u);
     91 
     92 L_470673B0:
     93     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
     94     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     95     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470673B0: sub ecx, dword ptr [ecx - 4] */
     96     _flag_k = FK_CMP;
     97     goto L_470A0390; /* 0x470673B3: jmp 0x470a0390 */
     98 L_470A0390:
     99     eax = MEM32(FS_BASE + (0)); /* 0x470A0390: mov eax, dword ptr fs:[0] */
    100     edx = MEM32(esp + 0xC); /* 0x470A0396: mov edx, dword ptr [esp + 0xc] */
    101     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A039A: push -1 */
    102     PUSH32(esp, 0x470ABBA8u); /* 0x470A039C: push 0x470abba8 */
    103     PUSH32(esp, eax); /* 0x470A03A1: push eax */
    104     eax = MEM32(esp + 0x14); /* 0x470A03A2: mov eax, dword ptr [esp + 0x14] */
    105     MEM32(FS_BASE + (0)) = esp; /* 0x470A03A6: mov dword ptr fs:[0], esp */
    106     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    108     esp = esp - 0xCu; /* 0x470A03AD: sub esp, 0xc */
    109     _flag_k = FK_CMP;
    110     PUSH32(esp, esi); /* 0x470A03B0: push esi */
    111     esi = ecx; /* 0x470A03B1: mov esi, ecx */
    112     ecx = MEM32(esp + 0x20); /* 0x470A03B3: mov ecx, dword ptr [esp + 0x20] */
    113     MEM32(esi + (-0x20)) = ecx; /* 0x470A03B7: mov dword ptr [esi - 0x20], ecx */
    114     MEM32(esi + (-0x1C)) = eax; /* 0x470A03BA: mov dword ptr [esi - 0x1c], eax */
    115     eax = MEM32(esp + 0x2C); /* 0x470A03BD: mov eax, dword ptr [esp + 0x2c] */
    116     MEM32(esi + (-0x18)) = edx; /* 0x470A03C1: mov dword ptr [esi - 0x18], edx */
    117     MEM32(esi + (-0x14)) = eax; /* 0x470A03C4: mov dword ptr [esi - 0x14], eax */
    118     eax = MEM32(esi + (-0xC)); /* 0x470A03C7: mov eax, dword ptr [esi - 0xc] */
    119     edx = MEM32(eax + 0x4); /* 0x470A03CA: mov edx, dword ptr [eax + 4] */
    120     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    122     edx = edx + ecx; /* 0x470A03CD: add edx, ecx */
    123     _flag_k = FK_ADD;
    124     ecx = esi + (-0x40); /* 0x470A03CF: lea ecx, [esi - 0x40] */
    125     /* test ecx, ecx */ /* 0x470A03D2: test ecx, ecx */
    126     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    127     _cf = 0;
    128     _flag_k = FK_TEST;
    129     MEM32(eax + 0x4) = edx; /* 0x470A03D4: mov dword ptr [eax + 4], edx */
    130     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A03DD; /* 0x470A03D7: jne 0x470a03dd */
    131 L_470A03D9:
    132     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    133     eax = 0; /* 0x470A03D9: xor eax, eax */
    134     _cf = 0;
    135     _flag_k = FK_TEST;
    136     goto L_470A03E7; /* 0x470A03DB: jmp 0x470a03e7 */
    137 L_470A03DD:
    138     edx = MEM32(esi + (-0x2C)); /* 0x470A03DD: mov edx, dword ptr [esi - 0x2c] */
    139     eax = MEM32(edx + 0x8); /* 0x470A03E0: mov eax, dword ptr [edx + 8] */
    140     eax = eax + esi + (-0x2C); /* 0x470A03E3: lea eax, [eax + esi - 0x2c] */
    141 L_470A03E7:
    142     PUSH32(esp, eax); /* 0x470A03E7: push eax */
    143     ecx = esp + 0x8; /* 0x470A03E8: lea ecx, [esp + 8] */
    144     RECOMP_ICALL(0x47017DC0u); /* 0x470A03EC: call 0x47017dc0 */ /* not lifted */
    145     RECOMP_FLAGS_IN();
    146     ecx = MEM32(esi + (-0x28)); /* 0x470A03F1: mov ecx, dword ptr [esi - 0x28] */
    147     edx = MEM32(ecx); /* 0x470A03F4: mov edx, dword ptr [ecx] */
    148     eax = esp + 0x4; /* 0x470A03F6: lea eax, [esp + 4] */
    149     PUSH32(esp, eax); /* 0x470A03FA: push eax */
    150     MEM32(esp + 0x1C) = 0; /* 0x470A03FB: mov dword ptr [esp + 0x1c], 0 */
    151     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A0403: call dword ptr [edx + 8] */
    152     RECOMP_FLAGS_IN();
    153     ecx = esp + 0x4; /* 0x470A0406: lea ecx, [esp + 4] */
    154     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470A040A: mov dword ptr [esp + 0x18], 0xffffffff */
    155     RECOMP_ICALL(0x47017E00u); /* 0x470A0412: call 0x47017e00 */ /* not lifted */
    156     RECOMP_FLAGS_IN();
    157     ecx = MEM32(esp + 0x10); /* 0x470A0417: mov ecx, dword ptr [esp + 0x10] */
    158     esi = POP32_VAL(esp); /* 0x470A041B: pop esi */
    159     MEM32(FS_BASE + (0)) = ecx; /* 0x470A041C: mov dword ptr fs:[0], ecx */
    160     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    161     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    162     esp = esp + 0x18u; /* 0x470A0423: add esp, 0x18 */
    163     _flag_k = FK_ADD;
    164     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A0426: ret 0x10 */
    165     RECOMP_REGS_OUT();
    166 }
    167 
    168 void sub_470673C0(void) {
    169     int _fpu_cmp = 0;
    170     uint32_t _cf = 0;
    171     int _df = 1;
    172     uint32_t _flag_k = FK_NONE;
    173     uint32_t _flag_a = 0, _flag_b = 0;
    174     uint32_t _itail_tgt = 0;
    175     RECOMP_REGS_LOCALS
    176     RECOMP_ENTER(0x470673C0u);
    177 
    178 L_470673C0:
    179     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    181     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470673C0: sub ecx, dword ptr [ecx - 4] */
    182     _flag_k = FK_CMP;
    183     goto L_470A0EC0; /* 0x470673C3: jmp 0x470a0ec0 */
    184 L_470A0EC0:
    185     eax = MEM32(esp + 0x4); /* 0x470A0EC0: mov eax, dword ptr [esp + 4] */
    186     /* test eax, eax */ /* 0x470A0EC4: test eax, eax */
    187     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    188     _cf = 0;
    189     _flag_k = FK_TEST;
    190     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A0F2B; /* 0x470A0EC6: jne 0x470a0f2b */
    191 L_470A0EC8:
    192     PUSH32(esp, esi); /* 0x470A0EC8: push esi */
    193     PUSH32(esp, edi); /* 0x470A0EC9: push edi */
    194     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A0ECA: call dword ptr [0x470ac150] */
    195     RECOMP_FLAGS_IN();
    196     edi = eax; /* 0x470A0ED0: mov edi, eax */
    197     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A0ED2: call dword ptr [0x470ac3c8] */
    198     RECOMP_FLAGS_IN();
    199     eax = MEM32(eax); /* 0x470A0ED8: mov eax, dword ptr [eax] */
    200     /* test eax, eax */ /* 0x470A0EDA: test eax, eax */
    201     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    202     _cf = 0;
    203     _flag_k = FK_TEST;
    204     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0EE0; /* 0x470A0EDC: je 0x470a0ee0 */
    205 L_470A0EDE:
    206     edi = eax; /* 0x470A0EDE: mov edi, eax */
    207 L_470A0EE0:
    208     RECOMP_ICALL(0x47039020u); /* 0x470A0EE0: call 0x47039020 */ /* not lifted */
    209     RECOMP_FLAGS_IN();
    210     esi = eax; /* 0x470A0EE5: mov esi, eax */
    211     ecx = esi; /* 0x470A0EE7: mov ecx, esi */
    212     RECOMP_ICALL(0x4703B210u); /* 0x470A0EE9: call 0x4703b210 */ /* not lifted */
    213     RECOMP_FLAGS_IN();
    214     PUSH32(esp, eax); /* 0x470A0EEE: push eax */
    215     ecx = esi; /* 0x470A0EEF: mov ecx, esi */
    216     RECOMP_ICALL(0x4703B240u); /* 0x470A0EF1: call 0x4703b240 */ /* not lifted */
    217     RECOMP_FLAGS_IN();
    218     PUSH32(esp, eax); /* 0x470A0EF6: push eax */
    219     ecx = esi; /* 0x470A0EF7: mov ecx, esi */
    220     RECOMP_ICALL(0x4703B080u); /* 0x470A0EF9: call 0x4703b080 */ /* not lifted */
    221     RECOMP_FLAGS_IN();
    222     PUSH32(esp, eax); /* 0x470A0EFE: push eax */
    223     PUSH32(esp, edi); /* 0x470A0EFF: push edi */
    224     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A0F00: push -1 */
    225     PUSH32(esp, 0x5Bu); /* 0x470A0F02: push 0x5b */
    226     PUSH32(esp, 0x4710DB30u); /* 0x470A0F04: push 0x4710db30 */
    227     ecx = esi; /* 0x470A0F09: mov ecx, esi */
    228     RECOMP_ICALL(0x4703A340u); /* 0x470A0F0B: call 0x4703a340 */ /* not lifted */
    229     RECOMP_FLAGS_IN();
    230     PUSH32(esp, 0x4710DB08u); /* 0x470A0F10: push 0x4710db08 */
    231     PUSH32(esp, 0x80u); /* 0x470A0F15: push 0x80 */
    232     PUSH32(esp, esi); /* 0x470A0F1A: push esi */
    233     RECOMP_ICALL(0x47039830u); /* 0x470A0F1B: call 0x47039830 */ /* not lifted */
    234     RECOMP_FLAGS_IN();
    235     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    236     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    237     esp = esp + 0xCu; /* 0x470A0F20: add esp, 0xc */
    238     _flag_k = FK_ADD;
    239     edi = POP32_VAL(esp); /* 0x470A0F23: pop edi */
    240     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    241     eax = eax | 0xFFFFFFFFu; /* 0x470A0F24: or eax, 0xffffffff */
    242     _cf = 0;
    243     _flag_k = FK_TEST;
    244     esi = POP32_VAL(esp); /* 0x470A0F27: pop esi */
    245     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A0F28: ret 4 */
    246 L_470A0F2B:
    247     edx = MEM32(eax); /* 0x470A0F2B: mov edx, dword ptr [eax] */
    248     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC0u);
    249     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    250     ecx = ecx + 0xFFFFFFC0u; /* 0x470A0F2D: add ecx, -0x40 */
    251     _flag_k = FK_ADD;
    252     PUSH32(esp, ecx); /* 0x470A0F30: push ecx */
    253     ecx = eax; /* 0x470A0F31: mov ecx, eax */
    254     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x470A0F33: call dword ptr [edx + 0x9c] */
    255     RECOMP_FLAGS_IN();
    256     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A0F39: ret 4 */
    257     RECOMP_REGS_OUT();
    258 }
    259 
    260 void sub_470673D0(void) {
    261     int _fpu_cmp = 0;
    262     uint32_t _cf = 0;
    263     int _df = 1;
    264     uint32_t _flag_k = FK_NONE;
    265     uint32_t _flag_a = 0, _flag_b = 0;
    266     uint32_t _itail_tgt = 0;
    267     RECOMP_REGS_LOCALS
    268     RECOMP_ENTER(0x470673D0u);
    269 
    270 L_470673D0:
    271     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    272     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    273     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470673D0: sub ecx, dword ptr [ecx - 4] */
    274     _flag_k = FK_CMP;
    275     goto L_4709FD10; /* 0x470673D3: jmp 0x4709fd10 */
    276 L_4709FD10:
    277     eax = MEM32(ecx + (-0x18)); /* 0x4709FD10: mov eax, dword ptr [ecx - 0x18] */
    278     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD13: ret  */
    279     RECOMP_REGS_OUT();
    280 }
    281 
    282 void sub_470673E0(void) {
    283     int _fpu_cmp = 0;
    284     uint32_t _cf = 0;
    285     int _df = 1;
    286     uint32_t _flag_k = FK_NONE;
    287     uint32_t _flag_a = 0, _flag_b = 0;
    288     uint32_t _itail_tgt = 0;
    289     RECOMP_REGS_LOCALS
    290     RECOMP_ENTER(0x470673E0u);
    291 
    292 L_470673E0:
    293     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    295     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470673E0: sub ecx, dword ptr [ecx - 4] */
    296     _flag_k = FK_CMP;
    297     goto L_4709FD20; /* 0x470673E3: jmp 0x4709fd20 */
    298 L_4709FD20:
    299     eax = MEM32(ecx + (-0x14)); /* 0x4709FD20: mov eax, dword ptr [ecx - 0x14] */
    300     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD23: ret  */
    301     RECOMP_REGS_OUT();
    302 }
    303 
    304 void sub_470673F0(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(0x470673F0u);
    313 
    314     goto L_470673F0;
    315 L_47063430:
    316     PUSH32(esp, ebx); /* 0x47063430: push ebx */
    317     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063431: mov bl, byte ptr [esp + 8] */
    318     /* test LO8(ebx), 2 */ /* 0x47063435: test bl, 2 */
    319     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    320     _cf = 0;
    321     _flag_k = FK_NARROW(FK_TEST, 24);
    322     PUSH32(esp, esi); /* 0x47063438: push esi */
    323     if (TEST_Z(_flag_a, _flag_b)) goto L_47063467; /* 0x47063439: je 0x47063467 */
    324 L_4706343B:
    325     eax = MEM32(ecx + (-0x50)); /* 0x4706343B: mov eax, dword ptr [ecx - 0x50] */
    326     esi = ecx + (-0x50); /* 0x4706343E: lea esi, [ecx - 0x50] */
    327     PUSH32(esp, 0x47063410u); /* 0x47063441: push 0x47063410 */
    328     PUSH32(esp, eax); /* 0x47063446: push eax */
    329     PUSH32(esp, 0x5Cu); /* 0x47063447: push 0x5c */
    330     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFB4u);
    331     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    332     ecx = ecx + 0xFFFFFFB4u; /* 0x47063449: add ecx, -0x4c */
    333     _flag_k = FK_ADD;
    334     PUSH32(esp, ecx); /* 0x4706344C: push ecx */
    335     RECOMP_ICALL(0x470A32EBu); /* 0x4706344D: call 0x470a32eb */ /* not lifted */
    336     RECOMP_FLAGS_IN();
    337     /* test LO8(ebx), 1 */ /* 0x47063452: test bl, 1 */
    338     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    339     _cf = 0;
    340     _flag_k = FK_NARROW(FK_TEST, 24);
    341     if (TEST_Z(_flag_a, _flag_b)) goto L_47063493; /* 0x47063455: je 0x47063493 */
    342 L_47063457:
    343     PUSH32(esp, esi); /* 0x47063457: push esi */
    344     RECOMP_ICALL(0x470A32A2u); /* 0x47063458: call 0x470a32a2 */ /* not lifted */
    345     RECOMP_FLAGS_IN();
    346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    348     esp = esp + 4; /* 0x4706345D: add esp, 4 */
    349     _flag_k = FK_ADD;
    350     eax = esi; /* 0x47063460: mov eax, esi */
    351     esi = POP32_VAL(esp); /* 0x47063462: pop esi */
    352     ebx = POP32_VAL(esp); /* 0x47063463: pop ebx */
    353     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063464: ret 4 */
    354 L_47063467:
    355     esi = ecx + (-0x4C); /* 0x47063467: lea esi, [ecx - 0x4c] */
    356     PUSH32(esp, edi); /* 0x4706346A: push edi */
    357     edi = esi + 0x4C; /* 0x4706346B: lea edi, [esi + 0x4c] */
    358     ecx = edi; /* 0x4706346E: mov ecx, edi */
    359     RECOMP_ICALL(0x470A1980u); /* 0x47063470: call 0x470a1980 */ /* not lifted */
    360     RECOMP_FLAGS_IN();
    361     ecx = esi + 0x5C; /* 0x47063475: lea ecx, [esi + 0x5c] */
    362     RECOMP_ICALL(0x47018920u); /* 0x47063478: call 0x47018920 */ /* not lifted */
    363     RECOMP_FLAGS_IN();
    364     ecx = edi; /* 0x4706347D: mov ecx, edi */
    365     RECOMP_ICALL(0x47018740u); /* 0x4706347F: call 0x47018740 */ /* not lifted */
    366     RECOMP_FLAGS_IN();
    367     /* test LO8(ebx), 1 */ /* 0x47063484: test bl, 1 */
    368     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    369     _cf = 0;
    370     _flag_k = FK_NARROW(FK_TEST, 24);
    371     edi = POP32_VAL(esp); /* 0x47063487: pop edi */
    372     if (TEST_Z(_flag_a, _flag_b)) goto L_47063493; /* 0x47063488: je 0x47063493 */
    373 L_4706348A:
    374     PUSH32(esp, esi); /* 0x4706348A: push esi */
    375     RECOMP_ICALL(0x470A32A2u); /* 0x4706348B: call 0x470a32a2 */ /* not lifted */
    376     RECOMP_FLAGS_IN();
    377     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    378     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    379     esp = esp + 4; /* 0x47063490: add esp, 4 */
    380     _flag_k = FK_ADD;
    381 L_47063493:
    382     eax = esi; /* 0x47063493: mov eax, esi */
    383     esi = POP32_VAL(esp); /* 0x47063495: pop esi */
    384     ebx = POP32_VAL(esp); /* 0x47063496: pop ebx */
    385     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063497: ret 4 */
    386 L_470673F0:
    387     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    389     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470673F0: sub ecx, dword ptr [ecx - 4] */
    390     _flag_k = FK_CMP;
    391     RECOMP_BACKEDGE();
    392     goto L_47063430; /* 0x470673F3: jmp 0x47063430 */
    393     { RECOMP_REGS_OUT(); return; } /* end of function */
    394     RECOMP_REGS_OUT();
    395 }
    396 
    397 void sub_47067400(void) {
    398     int _fpu_cmp = 0;
    399     uint32_t _cf = 0;
    400     int _df = 1;
    401     uint32_t _flag_k = FK_NONE;
    402     uint32_t _flag_a = 0, _flag_b = 0;
    403     uint32_t _itail_tgt = 0;
    404     RECOMP_REGS_LOCALS
    405     RECOMP_ENTER(0x47067400u);
    406 
    407 L_47067400:
    408     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    410     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067400: sub ecx, dword ptr [ecx - 4] */
    411     _flag_k = FK_CMP;
    412     goto L_4709FB60; /* 0x47067403: jmp 0x4709fb60 */
    413 L_4709FB60:
    414     eax = MEM32(ecx + (-0x2C)); /* 0x4709FB60: mov eax, dword ptr [ecx - 0x2c] */
    415     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB63: ret  */
    416     RECOMP_REGS_OUT();
    417 }
    418 
    419 void sub_47067410(void) {
    420     int _fpu_cmp = 0;
    421     uint32_t _cf = 0;
    422     int _df = 1;
    423     uint32_t _flag_k = FK_NONE;
    424     uint32_t _flag_a = 0, _flag_b = 0;
    425     uint32_t _itail_tgt = 0;
    426     RECOMP_REGS_LOCALS
    427     RECOMP_ENTER(0x47067410u);
    428 
    429 L_47067410:
    430     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    432     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067410: sub ecx, dword ptr [ecx - 4] */
    433     _flag_k = FK_CMP;
    434     goto L_470A0490; /* 0x47067413: jmp 0x470a0490 */
    435 L_470A0490:
    436     eax = MEM32(ecx + (-0x30)); /* 0x470A0490: mov eax, dword ptr [ecx - 0x30] */
    437     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0493: ret  */
    438     RECOMP_REGS_OUT();
    439 }
    440 
    441 void sub_47067420(void) {
    442     int _fpu_cmp = 0;
    443     uint32_t _cf = 0;
    444     int _df = 1;
    445     uint32_t _flag_k = FK_NONE;
    446     uint32_t _flag_a = 0, _flag_b = 0;
    447     uint32_t _itail_tgt = 0;
    448     RECOMP_REGS_LOCALS
    449     RECOMP_ENTER(0x47067420u);
    450 
    451 L_47067420:
    452     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    454     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067420: sub ecx, dword ptr [ecx - 4] */
    455     _flag_k = FK_CMP;
    456     goto L_4709FB70; /* 0x47067423: jmp 0x4709fb70 */
    457 L_4709FB70:
    458     eax = MEM32(ecx + (-0x28)); /* 0x4709FB70: mov eax, dword ptr [ecx - 0x28] */
    459     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB73: ret  */
    460     RECOMP_REGS_OUT();
    461 }
    462 
    463 void sub_47067430(void) {
    464     int _fpu_cmp = 0;
    465     uint32_t _cf = 0;
    466     int _df = 1;
    467     uint32_t _flag_k = FK_NONE;
    468     uint32_t _flag_a = 0, _flag_b = 0;
    469     uint32_t _itail_tgt = 0;
    470     RECOMP_REGS_LOCALS
    471     RECOMP_ENTER(0x47067430u);
    472 
    473 L_47067430:
    474     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    476     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067430: sub ecx, dword ptr [ecx - 4] */
    477     _flag_k = FK_CMP;
    478     goto L_470A0EA0; /* 0x47067433: jmp 0x470a0ea0 */
    479 L_470A0EA0:
    480     eax = MEM32(ecx + (-0x24)); /* 0x470A0EA0: mov eax, dword ptr [ecx - 0x24] */
    481     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EA3: ret  */
    482     RECOMP_REGS_OUT();
    483 }
    484 
    485 void sub_47067440(void) {
    486     int _fpu_cmp = 0;
    487     uint32_t _cf = 0;
    488     int _df = 1;
    489     uint32_t _flag_k = FK_NONE;
    490     uint32_t _flag_a = 0, _flag_b = 0;
    491     uint32_t _itail_tgt = 0;
    492     RECOMP_REGS_LOCALS
    493     RECOMP_ENTER(0x47067440u);
    494 
    495 L_47067440:
    496     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    498     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067440: sub ecx, dword ptr [ecx - 4] */
    499     _flag_k = FK_CMP;
    500     goto L_470A0E90; /* 0x47067443: jmp 0x470a0e90 */
    501 L_470A0E90:
    502     eax = MEM32(ecx + (-0x20)); /* 0x470A0E90: mov eax, dword ptr [ecx - 0x20] */
    503     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0E93: ret  */
    504     RECOMP_REGS_OUT();
    505 }
    506 
    507 void sub_47067450(void) {
    508     int _fpu_cmp = 0;
    509     uint32_t _cf = 0;
    510     int _df = 1;
    511     uint32_t _flag_k = FK_NONE;
    512     uint32_t _flag_a = 0, _flag_b = 0;
    513     uint32_t _itail_tgt = 0;
    514     RECOMP_REGS_LOCALS
    515     RECOMP_ENTER(0x47067450u);
    516 
    517 L_47067450:
    518     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    520     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067450: sub ecx, dword ptr [ecx - 4] */
    521     _flag_k = FK_CMP;
    522     goto L_470A19E0; /* 0x47067453: jmp 0x470a19e0 */
    523 L_470A19E0:
    524     eax = MEM32(ecx + (-0x3C)); /* 0x470A19E0: mov eax, dword ptr [ecx - 0x3c] */
    525     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A19E3: ret  */
    526     RECOMP_REGS_OUT();
    527 }
    528 
    529 void sub_47067460(void) {
    530     int _fpu_cmp = 0;
    531     uint32_t _cf = 0;
    532     int _df = 1;
    533     uint32_t _flag_k = FK_NONE;
    534     uint32_t _flag_a = 0, _flag_b = 0;
    535     uint32_t _itail_tgt = 0;
    536     RECOMP_REGS_LOCALS
    537     RECOMP_ENTER(0x47067460u);
    538 
    539 L_47067460:
    540     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    542     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067460: sub ecx, dword ptr [ecx - 4] */
    543     _flag_k = FK_CMP;
    544     goto L_470A19F0; /* 0x47067463: jmp 0x470a19f0 */
    545 L_470A19F0:
    546     eax = MEM32(ecx + (-0x44)); /* 0x470A19F0: mov eax, dword ptr [ecx - 0x44] */
    547     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A19F3: ret  */
    548     RECOMP_REGS_OUT();
    549 }
    550 
    551 void sub_47067470(void) {
    552     int _fpu_cmp = 0;
    553     uint32_t _cf = 0;
    554     int _df = 1;
    555     uint32_t _flag_k = FK_NONE;
    556     uint32_t _flag_a = 0, _flag_b = 0;
    557     uint32_t _itail_tgt = 0;
    558     RECOMP_REGS_LOCALS
    559     RECOMP_ENTER(0x47067470u);
    560 
    561 L_47067470:
    562     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    564     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067470: sub ecx, dword ptr [ecx - 4] */
    565     _flag_k = FK_CMP;
    566     goto L_470A1A00; /* 0x47067473: jmp 0x470a1a00 */
    567 L_470A1A00:
    568     eax = MEM32(ecx + (-0x40)); /* 0x470A1A00: mov eax, dword ptr [ecx - 0x40] */
    569     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A1A03: ret  */
    570     RECOMP_REGS_OUT();
    571 }
    572 
    573 void sub_47067480(void) {
    574     int _fpu_cmp = 0;
    575     uint32_t _cf = 0;
    576     int _df = 1;
    577     uint32_t _flag_k = FK_NONE;
    578     uint32_t _flag_a = 0, _flag_b = 0;
    579     uint32_t _itail_tgt = 0;
    580     RECOMP_REGS_LOCALS
    581     RECOMP_ENTER(0x47067480u);
    582 
    583 L_47067480:
    584     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    586     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067480: sub ecx, dword ptr [ecx - 4] */
    587     _flag_k = FK_CMP;
    588     goto L_4709FF60; /* 0x47067483: jmp 0x4709ff60 */
    589 L_4709FF60:
    590     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
    591     RECOMP_FLAGS_IN();
    592     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
    593     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    594     eax = 0; /* 0x4709FF6C: xor eax, eax */
    595     _cf = 0;
    596     _flag_k = FK_TEST;
    597     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
    598     RECOMP_REGS_OUT();
    599 }
    600 
    601 void sub_47067490(void) {
    602     int _fpu_cmp = 0;
    603     uint32_t _cf = 0;
    604     int _df = 1;
    605     uint32_t _flag_k = FK_NONE;
    606     uint32_t _flag_a = 0, _flag_b = 0;
    607     uint32_t _itail_tgt = 0;
    608     RECOMP_REGS_LOCALS
    609     RECOMP_ENTER(0x47067490u);
    610 
    611 L_47067490:
    612     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    614     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067490: sub ecx, dword ptr [ecx - 4] */
    615     _flag_k = FK_CMP;
    616     goto L_4709FF60; /* 0x47067493: jmp 0x4709ff60 */
    617 L_4709FF60:
    618     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
    619     RECOMP_FLAGS_IN();
    620     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
    621     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    622     eax = 0; /* 0x4709FF6C: xor eax, eax */
    623     _cf = 0;
    624     _flag_k = FK_TEST;
    625     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
    626     RECOMP_REGS_OUT();
    627 }
    628 
    629 void sub_470674A0(void) {
    630     int _fpu_cmp = 0;
    631     uint32_t _cf = 0;
    632     int _df = 1;
    633     uint32_t _flag_k = FK_NONE;
    634     uint32_t _flag_a = 0, _flag_b = 0;
    635     uint32_t _itail_tgt = 0;
    636     RECOMP_REGS_LOCALS
    637     RECOMP_ENTER(0x470674A0u);
    638 
    639 L_470674A0:
    640     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    642     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470674A0: sub ecx, dword ptr [ecx - 4] */
    643     _flag_k = FK_CMP;
    644     goto L_470A18F0; /* 0x470674A3: jmp 0x470a18f0 */
    645 L_470A18F0:
    646     eax = MEM32(FS_BASE + (0)); /* 0x470A18F0: mov eax, dword ptr fs:[0] */
    647     edx = MEM32(esp + 0xC); /* 0x470A18F6: mov edx, dword ptr [esp + 0xc] */
    648     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A18FA: push -1 */
    649     PUSH32(esp, 0x470ABCA8u); /* 0x470A18FC: push 0x470abca8 */
    650     PUSH32(esp, eax); /* 0x470A1901: push eax */
    651     eax = MEM32(esp + 0x10); /* 0x470A1902: mov eax, dword ptr [esp + 0x10] */
    652     MEM32(FS_BASE + (0)) = esp; /* 0x470A1906: mov dword ptr fs:[0], esp */
    653     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    655     esp = esp - 0xCu; /* 0x470A190D: sub esp, 0xc */
    656     _flag_k = FK_CMP;
    657     PUSH32(esp, esi); /* 0x470A1910: push esi */
    658     esi = ecx; /* 0x470A1911: mov esi, ecx */
    659     ecx = MEM32(esp + 0x24); /* 0x470A1913: mov ecx, dword ptr [esp + 0x24] */
    660     MEM32(esi + (-0x2C)) = eax; /* 0x470A1917: mov dword ptr [esi - 0x2c], eax */
    661     eax = MEM32(esp + 0x2C); /* 0x470A191A: mov eax, dword ptr [esp + 0x2c] */
    662     MEM32(esi + (-0x28)) = ecx; /* 0x470A191E: mov dword ptr [esi - 0x28], ecx */
    663     ecx = esi + (-0x4C); /* 0x470A1921: lea ecx, [esi - 0x4c] */
    664     /* test ecx, ecx */ /* 0x470A1924: test ecx, ecx */
    665     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    666     _cf = 0;
    667     _flag_k = FK_TEST;
    668     MEM32(esi + (-0x24)) = edx; /* 0x470A1926: mov dword ptr [esi - 0x24], edx */
    669     MEM32(esi + (-0x20)) = eax; /* 0x470A1929: mov dword ptr [esi - 0x20], eax */
    670     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A1932; /* 0x470A192C: jne 0x470a1932 */
    671 L_470A192E:
    672     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    673     eax = 0; /* 0x470A192E: xor eax, eax */
    674     _cf = 0;
    675     _flag_k = FK_TEST;
    676     goto L_470A193C; /* 0x470A1930: jmp 0x470a193c */
    677 L_470A1932:
    678     edx = MEM32(esi + (-0x38)); /* 0x470A1932: mov edx, dword ptr [esi - 0x38] */
    679     eax = MEM32(edx + 0x8); /* 0x470A1935: mov eax, dword ptr [edx + 8] */
    680     eax = eax + esi + (-0x38); /* 0x470A1938: lea eax, [eax + esi - 0x38] */
    681 L_470A193C:
    682     PUSH32(esp, eax); /* 0x470A193C: push eax */
    683     ecx = esp + 0x8; /* 0x470A193D: lea ecx, [esp + 8] */
    684     RECOMP_ICALL(0x47018330u); /* 0x470A1941: call 0x47018330 */ /* not lifted */
    685     RECOMP_FLAGS_IN();
    686     ecx = MEM32(esi + (-0x34)); /* 0x470A1946: mov ecx, dword ptr [esi - 0x34] */
    687     edx = MEM32(ecx); /* 0x470A1949: mov edx, dword ptr [ecx] */
    688     eax = esp + 0x4; /* 0x470A194B: lea eax, [esp + 4] */
    689     PUSH32(esp, eax); /* 0x470A194F: push eax */
    690     MEM32(esp + 0x1C) = 0; /* 0x470A1950: mov dword ptr [esp + 0x1c], 0 */
    691     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x470A1958: call dword ptr [edx + 0x18] */
    692     RECOMP_FLAGS_IN();
    693     ecx = esp + 0x4; /* 0x470A195B: lea ecx, [esp + 4] */
    694     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470A195F: mov dword ptr [esp + 0x18], 0xffffffff */
    695     RECOMP_ICALL(0x47017E00u); /* 0x470A1967: call 0x47017e00 */ /* not lifted */
    696     RECOMP_FLAGS_IN();
    697     ecx = MEM32(esp + 0x10); /* 0x470A196C: mov ecx, dword ptr [esp + 0x10] */
    698     esi = POP32_VAL(esp); /* 0x470A1970: pop esi */
    699     MEM32(FS_BASE + (0)) = ecx; /* 0x470A1971: mov dword ptr fs:[0], ecx */
    700     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    701     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    702     esp = esp + 0x18u; /* 0x470A1978: add esp, 0x18 */
    703     _flag_k = FK_ADD;
    704     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A197B: ret 0x10 */
    705     RECOMP_REGS_OUT();
    706 }
    707 
    708 void sub_470674B0(void) {
    709     int _fpu_cmp = 0;
    710     uint32_t _cf = 0;
    711     int _df = 1;
    712     uint32_t _flag_k = FK_NONE;
    713     uint32_t _flag_a = 0, _flag_b = 0;
    714     uint32_t _itail_tgt = 0;
    715     RECOMP_REGS_LOCALS
    716     RECOMP_ENTER(0x470674B0u);
    717 
    718 L_470674B0:
    719     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    721     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470674B0: sub ecx, dword ptr [ecx - 4] */
    722     _flag_k = FK_CMP;
    723     goto L_470A1A10; /* 0x470674B3: jmp 0x470a1a10 */
    724 L_470A1A10:
    725     eax = MEM32(esp + 0x4); /* 0x470A1A10: mov eax, dword ptr [esp + 4] */
    726     /* test eax, eax */ /* 0x470A1A14: test eax, eax */
    727     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    728     _cf = 0;
    729     _flag_k = FK_TEST;
    730     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A1A7B; /* 0x470A1A16: jne 0x470a1a7b */
    731 L_470A1A18:
    732     PUSH32(esp, esi); /* 0x470A1A18: push esi */
    733     PUSH32(esp, edi); /* 0x470A1A19: push edi */
    734     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470A1A1A: call dword ptr [0x470ac150] */
    735     RECOMP_FLAGS_IN();
    736     edi = eax; /* 0x470A1A20: mov edi, eax */
    737     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1A22: call dword ptr [0x470ac3c8] */
    738     RECOMP_FLAGS_IN();
    739     eax = MEM32(eax); /* 0x470A1A28: mov eax, dword ptr [eax] */
    740     /* test eax, eax */ /* 0x470A1A2A: test eax, eax */
    741     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    742     _cf = 0;
    743     _flag_k = FK_TEST;
    744     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1A30; /* 0x470A1A2C: je 0x470a1a30 */
    745 L_470A1A2E:
    746     edi = eax; /* 0x470A1A2E: mov edi, eax */
    747 L_470A1A30:
    748     RECOMP_ICALL(0x47039020u); /* 0x470A1A30: call 0x47039020 */ /* not lifted */
    749     RECOMP_FLAGS_IN();
    750     esi = eax; /* 0x470A1A35: mov esi, eax */
    751     ecx = esi; /* 0x470A1A37: mov ecx, esi */
    752     RECOMP_ICALL(0x4703B210u); /* 0x470A1A39: call 0x4703b210 */ /* not lifted */
    753     RECOMP_FLAGS_IN();
    754     PUSH32(esp, eax); /* 0x470A1A3E: push eax */
    755     ecx = esi; /* 0x470A1A3F: mov ecx, esi */
    756     RECOMP_ICALL(0x4703B240u); /* 0x470A1A41: call 0x4703b240 */ /* not lifted */
    757     RECOMP_FLAGS_IN();
    758     PUSH32(esp, eax); /* 0x470A1A46: push eax */
    759     ecx = esi; /* 0x470A1A47: mov ecx, esi */
    760     RECOMP_ICALL(0x4703B080u); /* 0x470A1A49: call 0x4703b080 */ /* not lifted */
    761     RECOMP_FLAGS_IN();
    762     PUSH32(esp, eax); /* 0x470A1A4E: push eax */
    763     PUSH32(esp, edi); /* 0x470A1A4F: push edi */
    764     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A1A50: push -1 */
    765     PUSH32(esp, 0x5Bu); /* 0x470A1A52: push 0x5b */
    766     PUSH32(esp, 0x4710DB30u); /* 0x470A1A54: push 0x4710db30 */
    767     ecx = esi; /* 0x470A1A59: mov ecx, esi */
    768     RECOMP_ICALL(0x4703A340u); /* 0x470A1A5B: call 0x4703a340 */ /* not lifted */
    769     RECOMP_FLAGS_IN();
    770     PUSH32(esp, 0x4710DB08u); /* 0x470A1A60: push 0x4710db08 */
    771     PUSH32(esp, 0x80u); /* 0x470A1A65: push 0x80 */
    772     PUSH32(esp, esi); /* 0x470A1A6A: push esi */
    773     RECOMP_ICALL(0x47039830u); /* 0x470A1A6B: call 0x47039830 */ /* not lifted */
    774     RECOMP_FLAGS_IN();
    775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    776     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    777     esp = esp + 0xCu; /* 0x470A1A70: add esp, 0xc */
    778     _flag_k = FK_ADD;
    779     edi = POP32_VAL(esp); /* 0x470A1A73: pop edi */
    780     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    781     eax = eax | 0xFFFFFFFFu; /* 0x470A1A74: or eax, 0xffffffff */
    782     _cf = 0;
    783     _flag_k = FK_TEST;
    784     esi = POP32_VAL(esp); /* 0x470A1A77: pop esi */
    785     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A1A78: ret 4 */
    786 L_470A1A7B:
    787     edx = MEM32(eax); /* 0x470A1A7B: mov edx, dword ptr [eax] */
    788     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFB4u);
    789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    790     ecx = ecx + 0xFFFFFFB4u; /* 0x470A1A7D: add ecx, -0x4c */
    791     _flag_k = FK_ADD;
    792     PUSH32(esp, ecx); /* 0x470A1A80: push ecx */
    793     ecx = eax; /* 0x470A1A81: mov ecx, eax */
    794     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x470A1A83: call dword ptr [edx + 0x9c] */
    795     RECOMP_FLAGS_IN();
    796     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470A1A89: ret 4 */
    797     RECOMP_REGS_OUT();
    798 }
    799 
    800 void sub_470674C0(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(0x470674C0u);
    809 
    810 L_470674C0:
    811     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    813     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470674C0: sub ecx, dword ptr [ecx - 4] */
    814     _flag_k = FK_CMP;
    815     goto L_470A0EA0; /* 0x470674C3: jmp 0x470a0ea0 */
    816 L_470A0EA0:
    817     eax = MEM32(ecx + (-0x24)); /* 0x470A0EA0: mov eax, dword ptr [ecx - 0x24] */
    818     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EA3: ret  */
    819     RECOMP_REGS_OUT();
    820 }
    821 
    822 void sub_470674D0(void) {
    823     int _fpu_cmp = 0;
    824     uint32_t _cf = 0;
    825     int _df = 1;
    826     uint32_t _flag_k = FK_NONE;
    827     uint32_t _flag_a = 0, _flag_b = 0;
    828     uint32_t _itail_tgt = 0;
    829     RECOMP_REGS_LOCALS
    830     RECOMP_ENTER(0x470674D0u);
    831 
    832 L_470674D0:
    833     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    835     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470674D0: sub ecx, dword ptr [ecx - 4] */
    836     _flag_k = FK_CMP;
    837     goto L_470A0E90; /* 0x470674D3: jmp 0x470a0e90 */
    838 L_470A0E90:
    839     eax = MEM32(ecx + (-0x20)); /* 0x470A0E90: mov eax, dword ptr [ecx - 0x20] */
    840     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0E93: ret  */
    841     RECOMP_REGS_OUT();
    842 }
    843 
    844 void sub_470674E0(void) {
    845     int _fpu_cmp = 0;
    846     uint32_t _cf = 0;
    847     int _df = 1;
    848     uint32_t _flag_k = FK_NONE;
    849     uint32_t _flag_a = 0, _flag_b = 0;
    850     uint32_t _itail_tgt = 0;
    851     RECOMP_REGS_LOCALS
    852     RECOMP_ENTER(0x470674E0u);
    853 
    854 L_470674E0:
    855     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    857     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470674E0: sub ecx, dword ptr [ecx - 4] */
    858     _flag_k = FK_CMP;
    859     goto L_470A0EB0; /* 0x470674E3: jmp 0x470a0eb0 */
    860 L_470A0EB0:
    861     eax = MEM32(ecx + (-0x1C)); /* 0x470A0EB0: mov eax, dword ptr [ecx - 0x1c] */
    862     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EB3: ret  */
    863     RECOMP_REGS_OUT();
    864 }
    865 
    866 void sub_470674F0(void) {
    867     int _fpu_cmp = 0;
    868     uint32_t _cf = 0;
    869     int _df = 1;
    870     uint32_t _flag_k = FK_NONE;
    871     uint32_t _flag_a = 0, _flag_b = 0;
    872     uint32_t _itail_tgt = 0;
    873     RECOMP_REGS_LOCALS
    874     RECOMP_ENTER(0x470674F0u);
    875 
    876 L_470674F0:
    877     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    879     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470674F0: sub ecx, dword ptr [ecx - 4] */
    880     _flag_k = FK_CMP;
    881     goto L_4709FD10; /* 0x470674F3: jmp 0x4709fd10 */
    882 L_4709FD10:
    883     eax = MEM32(ecx + (-0x18)); /* 0x4709FD10: mov eax, dword ptr [ecx - 0x18] */
    884     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD13: ret  */
    885     RECOMP_REGS_OUT();
    886 }
    887 
    888 void sub_47067500(void) {
    889     int _fpu_cmp = 0;
    890     uint32_t _cf = 0;
    891     int _df = 1;
    892     uint32_t _flag_k = FK_NONE;
    893     uint32_t _flag_a = 0, _flag_b = 0;
    894     uint32_t _itail_tgt = 0;
    895     RECOMP_REGS_LOCALS
    896     RECOMP_ENTER(0x47067500u);
    897 
    898 L_47067500:
    899     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
    900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    901     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067500: sub ecx, dword ptr [ecx - 4] */
    902     _flag_k = FK_CMP;
    903     goto L_4709FD20; /* 0x47067503: jmp 0x4709fd20 */
    904 L_4709FD20:
    905     eax = MEM32(ecx + (-0x14)); /* 0x4709FD20: mov eax, dword ptr [ecx - 0x14] */
    906     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD23: ret  */
    907     RECOMP_REGS_OUT();
    908 }
    909 
    910 void sub_47067510(void) {
    911     int _fpu_cmp = 0;
    912     uint32_t _cf = 0;
    913     int _df = 1;
    914     uint32_t _flag_k = FK_NONE;
    915     uint32_t _flag_a = 0, _flag_b = 0;
    916     uint32_t _itail_tgt = 0;
    917     RECOMP_REGS_LOCALS
    918     RECOMP_ENTER(0x47067510u);
    919 
    920     goto L_47067510;
    921 L_47063830:
    922     PUSH32(esp, ebx); /* 0x47063830: push ebx */
    923     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063831: mov bl, byte ptr [esp + 8] */
    924     /* test LO8(ebx), 2 */ /* 0x47063835: test bl, 2 */
    925     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    926     _cf = 0;
    927     _flag_k = FK_NARROW(FK_TEST, 24);
    928     PUSH32(esp, esi); /* 0x47063838: push esi */
    929     esi = ecx; /* 0x47063839: mov esi, ecx */
    930     if (TEST_Z(_flag_a, _flag_b)) goto L_47063868; /* 0x4706383B: je 0x47063868 */
    931 L_4706383D:
    932     eax = MEM32(esi + (-0x4)); /* 0x4706383D: mov eax, dword ptr [esi - 4] */
    933     PUSH32(esp, edi); /* 0x47063840: push edi */
    934     PUSH32(esp, 0x47063890u); /* 0x47063841: push 0x47063890 */
    935     edi = esi + (-0x4); /* 0x47063846: lea edi, [esi - 4] */
    936     PUSH32(esp, eax); /* 0x47063849: push eax */
    937     PUSH32(esp, 0x5Cu); /* 0x4706384A: push 0x5c */
    938     PUSH32(esp, esi); /* 0x4706384C: push esi */
    939     RECOMP_ICALL(0x470A32EBu); /* 0x4706384D: call 0x470a32eb */ /* not lifted */
    940     RECOMP_FLAGS_IN();
    941     /* test LO8(ebx), 1 */ /* 0x47063852: test bl, 1 */
    942     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    943     _cf = 0;
    944     _flag_k = FK_NARROW(FK_TEST, 24);
    945     if (TEST_Z(_flag_a, _flag_b)) goto L_47063860; /* 0x47063855: je 0x47063860 */
    946 L_47063857:
    947     PUSH32(esp, edi); /* 0x47063857: push edi */
    948     RECOMP_ICALL(0x470A32A2u); /* 0x47063858: call 0x470a32a2 */ /* not lifted */
    949     RECOMP_FLAGS_IN();
    950     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    951     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    952     esp = esp + 4; /* 0x4706385D: add esp, 4 */
    953     _flag_k = FK_ADD;
    954 L_47063860:
    955     eax = edi; /* 0x47063860: mov eax, edi */
    956     edi = POP32_VAL(esp); /* 0x47063862: pop edi */
    957     esi = POP32_VAL(esp); /* 0x47063863: pop esi */
    958     ebx = POP32_VAL(esp); /* 0x47063864: pop ebx */
    959     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063865: ret 4 */
    960 L_47063868:
    961     ecx = esi; /* 0x47063868: mov ecx, esi */
    962     RECOMP_ICALL(0x47063890u); /* 0x4706386A: call 0x47063890 */ /* not lifted */
    963     RECOMP_FLAGS_IN();
    964     /* test LO8(ebx), 1 */ /* 0x4706386F: test bl, 1 */
    965     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    966     _cf = 0;
    967     _flag_k = FK_NARROW(FK_TEST, 24);
    968     if (TEST_Z(_flag_a, _flag_b)) goto L_4706387D; /* 0x47063872: je 0x4706387d */
    969 L_47063874:
    970     PUSH32(esp, esi); /* 0x47063874: push esi */
    971     RECOMP_ICALL(0x470A32A2u); /* 0x47063875: call 0x470a32a2 */ /* not lifted */
    972     RECOMP_FLAGS_IN();
    973     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    974     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    975     esp = esp + 4; /* 0x4706387A: add esp, 4 */
    976     _flag_k = FK_ADD;
    977 L_4706387D:
    978     eax = esi; /* 0x4706387D: mov eax, esi */
    979     esi = POP32_VAL(esp); /* 0x4706387F: pop esi */
    980     ebx = POP32_VAL(esp); /* 0x47063880: pop ebx */
    981     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063881: ret 4 */
    982 L_47067510:
    983     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    984     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    985     ecx = ecx - 0xCu; /* 0x47067510: sub ecx, 0xc */
    986     _flag_k = FK_CMP;
    987     RECOMP_BACKEDGE();
    988     goto L_47063830; /* 0x47067513: jmp 0x47063830 */
    989     { RECOMP_REGS_OUT(); return; } /* end of function */
    990     RECOMP_REGS_OUT();
    991 }
    992 
    993 void sub_47067520(void) {
    994     int _fpu_cmp = 0;
    995     uint32_t _cf = 0;
    996     int _df = 1;
    997     uint32_t _flag_k = FK_NONE;
    998     uint32_t _flag_a = 0, _flag_b = 0;
    999     uint32_t _itail_tgt = 0;
   1000     RECOMP_REGS_LOCALS
   1001     RECOMP_ENTER(0x47067520u);
   1002 
   1003     goto L_47067520;
   1004 L_47062CA0:
   1005     PUSH32(esp, ebx); /* 0x47062CA0: push ebx */
   1006     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062CA1: mov bl, byte ptr [esp + 8] */
   1007     /* test LO8(ebx), 2 */ /* 0x47062CA5: test bl, 2 */
   1008     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1009     _cf = 0;
   1010     _flag_k = FK_NARROW(FK_TEST, 24);
   1011     PUSH32(esp, esi); /* 0x47062CA8: push esi */
   1012     if (TEST_Z(_flag_a, _flag_b)) goto L_47062CD7; /* 0x47062CA9: je 0x47062cd7 */
   1013 L_47062CAB:
   1014     eax = MEM32(ecx + (-0x1C)); /* 0x47062CAB: mov eax, dword ptr [ecx - 0x1c] */
   1015     esi = ecx + (-0x1C); /* 0x47062CAE: lea esi, [ecx - 0x1c] */
   1016     PUSH32(esp, 0x47062C70u); /* 0x47062CB1: push 0x47062c70 */
   1017     PUSH32(esp, eax); /* 0x47062CB6: push eax */
   1018     PUSH32(esp, 0x34u); /* 0x47062CB7: push 0x34 */
   1019     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u);
   1020     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1021     ecx = ecx + 0xFFFFFFE8u; /* 0x47062CB9: add ecx, -0x18 */
   1022     _flag_k = FK_ADD;
   1023     PUSH32(esp, ecx); /* 0x47062CBC: push ecx */
   1024     RECOMP_ICALL(0x470A32EBu); /* 0x47062CBD: call 0x470a32eb */ /* not lifted */
   1025     RECOMP_FLAGS_IN();
   1026     /* test LO8(ebx), 1 */ /* 0x47062CC2: test bl, 1 */
   1027     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1028     _cf = 0;
   1029     _flag_k = FK_NARROW(FK_TEST, 24);
   1030     if (TEST_Z(_flag_a, _flag_b)) goto L_47062D0B; /* 0x47062CC5: je 0x47062d0b */
   1031 L_47062CC7:
   1032     PUSH32(esp, esi); /* 0x47062CC7: push esi */
   1033     RECOMP_ICALL(0x470A32A2u); /* 0x47062CC8: call 0x470a32a2 */ /* not lifted */
   1034     RECOMP_FLAGS_IN();
   1035     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1036     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1037     esp = esp + 4; /* 0x47062CCD: add esp, 4 */
   1038     _flag_k = FK_ADD;
   1039     eax = esi; /* 0x47062CD0: mov eax, esi */
   1040     esi = POP32_VAL(esp); /* 0x47062CD2: pop esi */
   1041     ebx = POP32_VAL(esp); /* 0x47062CD3: pop ebx */
   1042     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062CD4: ret 4 */
   1043 L_47062CD7:
   1044     esi = ecx + (-0x18); /* 0x47062CD7: lea esi, [ecx - 0x18] */
   1045     PUSH32(esp, edi); /* 0x47062CDA: push edi */
   1046     edi = esi + 0x18; /* 0x47062CDB: lea edi, [esi + 0x18] */
   1047     ecx = edi; /* 0x47062CDE: mov ecx, edi */
   1048     RECOMP_ICALL(0x470A0BA0u); /* 0x47062CE0: call 0x470a0ba0 */ /* not lifted */
   1049     RECOMP_FLAGS_IN();
   1050     ecx = esi + 0x34; /* 0x47062CE5: lea ecx, [esi + 0x34] */
   1051     RECOMP_ICALL(0x470187E0u); /* 0x47062CE8: call 0x470187e0 */ /* not lifted */
   1052     RECOMP_FLAGS_IN();
   1053     ecx = esi + 0x28; /* 0x47062CED: lea ecx, [esi + 0x28] */
   1054     RECOMP_ICALL(0x47018760u); /* 0x47062CF0: call 0x47018760 */ /* not lifted */
   1055     RECOMP_FLAGS_IN();
   1056     ecx = edi; /* 0x47062CF5: mov ecx, edi */
   1057     RECOMP_ICALL(0x47018750u); /* 0x47062CF7: call 0x47018750 */ /* not lifted */
   1058     RECOMP_FLAGS_IN();
   1059     /* test LO8(ebx), 1 */ /* 0x47062CFC: test bl, 1 */
   1060     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1061     _cf = 0;
   1062     _flag_k = FK_NARROW(FK_TEST, 24);
   1063     edi = POP32_VAL(esp); /* 0x47062CFF: pop edi */
   1064     if (TEST_Z(_flag_a, _flag_b)) goto L_47062D0B; /* 0x47062D00: je 0x47062d0b */
   1065 L_47062D02:
   1066     PUSH32(esp, esi); /* 0x47062D02: push esi */
   1067     RECOMP_ICALL(0x470A32A2u); /* 0x47062D03: call 0x470a32a2 */ /* not lifted */
   1068     RECOMP_FLAGS_IN();
   1069     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1070     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1071     esp = esp + 4; /* 0x47062D08: add esp, 4 */
   1072     _flag_k = FK_ADD;
   1073 L_47062D0B:
   1074     eax = esi; /* 0x47062D0B: mov eax, esi */
   1075     esi = POP32_VAL(esp); /* 0x47062D0D: pop esi */
   1076     ebx = POP32_VAL(esp); /* 0x47062D0E: pop ebx */
   1077     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062D0F: ret 4 */
   1078 L_47067520:
   1079     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1081     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067520: sub ecx, dword ptr [ecx - 4] */
   1082     _flag_k = FK_CMP;
   1083     RECOMP_BACKEDGE();
   1084     goto L_47062CA0; /* 0x47067523: jmp 0x47062ca0 */
   1085     { RECOMP_REGS_OUT(); return; } /* end of function */
   1086     RECOMP_REGS_OUT();
   1087 }
   1088 
   1089 void sub_47067530(void) {
   1090     int _fpu_cmp = 0;
   1091     uint32_t _cf = 0;
   1092     int _df = 1;
   1093     uint32_t _flag_k = FK_NONE;
   1094     uint32_t _flag_a = 0, _flag_b = 0;
   1095     uint32_t _itail_tgt = 0;
   1096     RECOMP_REGS_LOCALS
   1097     RECOMP_ENTER(0x47067530u);
   1098 
   1099 L_47067530:
   1100     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1102     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067530: sub ecx, dword ptr [ecx - 4] */
   1103     _flag_k = FK_CMP;
   1104     goto L_470A1D90; /* 0x47067533: jmp 0x470a1d90 */
   1105 L_470A1D90:
   1106     eax = MEM32(esp + 0x10); /* 0x470A1D90: mov eax, dword ptr [esp + 0x10] */
   1107     PUSH32(esp, esi); /* 0x470A1D94: push esi */
   1108     esi = ecx; /* 0x470A1D95: mov esi, ecx */
   1109     ecx = MEM32(esp + 0x8); /* 0x470A1D97: mov ecx, dword ptr [esp + 8] */
   1110     MEM32(esi + (-0x10)) = eax; /* 0x470A1D9B: mov dword ptr [esi - 0x10], eax */
   1111     eax = MEM32(esp + 0xC); /* 0x470A1D9E: mov eax, dword ptr [esp + 0xc] */
   1112     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DA2: cmp eax, -1 */
   1113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1115     _flag_k = FK_CMP;
   1116     MEM32(esi + (-0xC)) = ecx; /* 0x470A1DA5: mov dword ptr [esi - 0xc], ecx */
   1117     MEM32(esi + (-0x8)) = eax; /* 0x470A1DA8: mov dword ptr [esi - 8], eax */
   1118     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DB8; /* 0x470A1DAB: jne 0x470a1db8 */
   1119 L_470A1DAD:
   1120     ecx = MEM32(esi + (-0xC)); /* 0x470A1DAD: mov ecx, dword ptr [esi - 0xc] */
   1121     edx = MEM32(ecx); /* 0x470A1DB0: mov edx, dword ptr [ecx] */
   1122     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x470A1DB2: call dword ptr [edx + 0x24] */
   1123     RECOMP_FLAGS_IN();
   1124     MEM32(esi + (-0x8)) = eax; /* 0x470A1DB5: mov dword ptr [esi - 8], eax */
   1125 L_470A1DB8:
   1126     eax = MEM32(esi + (-0x8)); /* 0x470A1DB8: mov eax, dword ptr [esi - 8] */
   1127     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DBB: cmp eax, -1 */
   1128     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1130     _flag_k = FK_CMP;
   1131     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DC6; /* 0x470A1DBE: jne 0x470a1dc6 */
   1132 L_470A1DC0:
   1133     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   1134     eax = eax | eax; /* 0x470A1DC0: or eax, eax */
   1135     _cf = 0;
   1136     _flag_k = FK_TEST;
   1137     esi = POP32_VAL(esp); /* 0x470A1DC2: pop esi */
   1138     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DC3: ret 0x10 */
   1139 L_470A1DC6:
   1140     ecx = MEM32(esi + (-0x14)); /* 0x470A1DC6: mov ecx, dword ptr [esi - 0x14] */
   1141     esi = MEM32(esp + 0x10); /* 0x470A1DC9: mov esi, dword ptr [esp + 0x10] */
   1142     edx = MEM32(ecx); /* 0x470A1DCD: mov edx, dword ptr [ecx] */
   1143     PUSH32(esp, esi); /* 0x470A1DCF: push esi */
   1144     PUSH32(esp, eax); /* 0x470A1DD0: push eax */
   1145     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x470A1DD1: call dword ptr [edx + 0x44] */
   1146     RECOMP_FLAGS_IN();
   1147     esi = POP32_VAL(esp); /* 0x470A1DD4: pop esi */
   1148     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DD5: ret 0x10 */
   1149     RECOMP_REGS_OUT();
   1150 }
   1151 
   1152 void sub_47067540(void) {
   1153     int _fpu_cmp = 0;
   1154     uint32_t _cf = 0;
   1155     int _df = 1;
   1156     uint32_t _flag_k = FK_NONE;
   1157     uint32_t _flag_a = 0, _flag_b = 0;
   1158     uint32_t _itail_tgt = 0;
   1159     RECOMP_REGS_LOCALS
   1160     RECOMP_ENTER(0x47067540u);
   1161 
   1162     goto L_47067540;
   1163 L_4700E9B0:
   1164     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4700E9B0: call dword ptr [0x470ac3c8] */
   1165     RECOMP_FLAGS_IN();
   1166     MEM32(eax) = 0x28u; /* 0x4700E9B6: mov dword ptr [eax], 0x28 */
   1167     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1168     eax = eax | 0xFFFFFFFFu; /* 0x4700E9BC: or eax, 0xffffffff */
   1169     _cf = 0;
   1170     _flag_k = FK_TEST;
   1171     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700E9BF: ret  */
   1172 L_47067540:
   1173     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1175     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067540: sub ecx, dword ptr [ecx - 4] */
   1176     _flag_k = FK_CMP;
   1177     RECOMP_BACKEDGE();
   1178     goto L_4700E9B0; /* 0x47067543: jmp 0x4700e9b0 */
   1179     { RECOMP_REGS_OUT(); return; } /* end of function */
   1180     RECOMP_REGS_OUT();
   1181 }
   1182 
   1183 void sub_47067550(void) {
   1184     int _fpu_cmp = 0;
   1185     uint32_t _cf = 0;
   1186     int _df = 1;
   1187     uint32_t _flag_k = FK_NONE;
   1188     uint32_t _flag_a = 0, _flag_b = 0;
   1189     uint32_t _itail_tgt = 0;
   1190     RECOMP_REGS_LOCALS
   1191     RECOMP_ENTER(0x47067550u);
   1192 
   1193 L_47067550:
   1194     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1196     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067550: sub ecx, dword ptr [ecx - 4] */
   1197     _flag_k = FK_CMP;
   1198     goto L_4709FB30; /* 0x47067553: jmp 0x4709fb30 */
   1199 L_4709FB30:
   1200     eax = MEM32(ecx + (-0x10)); /* 0x4709FB30: mov eax, dword ptr [ecx - 0x10] */
   1201     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB33: ret  */
   1202     RECOMP_REGS_OUT();
   1203 }
   1204 
   1205 void sub_47067560(void) {
   1206     int _fpu_cmp = 0;
   1207     uint32_t _cf = 0;
   1208     int _df = 1;
   1209     uint32_t _flag_k = FK_NONE;
   1210     uint32_t _flag_a = 0, _flag_b = 0;
   1211     uint32_t _itail_tgt = 0;
   1212     RECOMP_REGS_LOCALS
   1213     RECOMP_ENTER(0x47067560u);
   1214 
   1215 L_47067560:
   1216     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1218     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067560: sub ecx, dword ptr [ecx - 4] */
   1219     _flag_k = FK_CMP;
   1220     goto L_470A0C50; /* 0x47067563: jmp 0x470a0c50 */
   1221 L_470A0C50:
   1222     eax = MEM32(esp + 0x14); /* 0x470A0C50: mov eax, dword ptr [esp + 0x14] */
   1223     edx = MEM32(esp + 0x10); /* 0x470A0C54: mov edx, dword ptr [esp + 0x10] */
   1224     PUSH32(esp, eax); /* 0x470A0C58: push eax */
   1225     eax = MEM32(esp + 0x10); /* 0x470A0C59: mov eax, dword ptr [esp + 0x10] */
   1226     PUSH32(esp, edx); /* 0x470A0C5D: push edx */
   1227     edx = MEM32(esp + 0x10); /* 0x470A0C5E: mov edx, dword ptr [esp + 0x10] */
   1228     PUSH32(esp, eax); /* 0x470A0C62: push eax */
   1229     eax = MEM32(esp + 0x10); /* 0x470A0C63: mov eax, dword ptr [esp + 0x10] */
   1230     PUSH32(esp, edx); /* 0x470A0C67: push edx */
   1231     PUSH32(esp, eax); /* 0x470A0C68: push eax */
   1232     RECOMP_ICALL(0x470A00A0u); /* 0x470A0C69: call 0x470a00a0 */ /* not lifted */
   1233     RECOMP_FLAGS_IN();
   1234     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A0C6E: ret 0x14 */
   1235     RECOMP_REGS_OUT();
   1236 }
   1237 
   1238 void sub_47067570(void) {
   1239     int _fpu_cmp = 0;
   1240     uint32_t _cf = 0;
   1241     int _df = 1;
   1242     uint32_t _flag_k = FK_NONE;
   1243     uint32_t _flag_a = 0, _flag_b = 0;
   1244     uint32_t _itail_tgt = 0;
   1245     RECOMP_REGS_LOCALS
   1246     RECOMP_ENTER(0x47067570u);
   1247 
   1248 L_47067570:
   1249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1251     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067570: sub ecx, dword ptr [ecx - 4] */
   1252     _flag_k = FK_CMP;
   1253     goto L_470A0AC0; /* 0x47067573: jmp 0x470a0ac0 */
   1254 L_470A0AC0:
   1255     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A0AC0: push -1 */
   1256     PUSH32(esp, 0x470ABC0Bu); /* 0x470A0AC2: push 0x470abc0b */
   1257     eax = MEM32(FS_BASE + (0)); /* 0x470A0AC7: mov eax, dword ptr fs:[0] */
   1258     PUSH32(esp, eax); /* 0x470A0ACD: push eax */
   1259     MEM32(FS_BASE + (0)) = esp; /* 0x470A0ACE: mov dword ptr fs:[0], esp */
   1260     PUSH32(esp, ecx); /* 0x470A0AD5: push ecx */
   1261     PUSH32(esp, esi); /* 0x470A0AD6: push esi */
   1262     PUSH32(esp, edi); /* 0x470A0AD7: push edi */
   1263     PUSH32(esp, 0x58u); /* 0x470A0AD8: push 0x58 */
   1264     esi = ecx; /* 0x470A0ADA: mov esi, ecx */
   1265     RECOMP_ICALL(0x470A33F2u); /* 0x470A0ADC: call 0x470a33f2 */ /* not lifted */
   1266     RECOMP_FLAGS_IN();
   1267     edi = eax; /* 0x470A0AE1: mov edi, eax */
   1268     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1269     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1270     esp = esp + 4; /* 0x470A0AE3: add esp, 4 */
   1271     _flag_k = FK_ADD;
   1272     MEM32(esp + 0x8) = edi; /* 0x470A0AE6: mov dword ptr [esp + 8], edi */
   1273     /* test edi, edi */ /* 0x470A0AEA: test edi, edi */
   1274     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1275     _cf = 0;
   1276     _flag_k = FK_TEST;
   1277     MEM32(esp + 0x14) = 0; /* 0x470A0AEC: mov dword ptr [esp + 0x14], 0 */
   1278     if (TEST_Z(_flag_a, _flag_b)) goto L_470A0B37; /* 0x470A0AF4: je 0x470a0b37 */
   1279 L_470A0AF6:
   1280     eax = MEM32(esp + 0x34); /* 0x470A0AF6: mov eax, dword ptr [esp + 0x34] */
   1281     ecx = MEM32(esi + (-0x28)); /* 0x470A0AFA: mov ecx, dword ptr [esi - 0x28] */
   1282     edx = MEM32(esp + 0x30); /* 0x470A0AFD: mov edx, dword ptr [esp + 0x30] */
   1283     PUSH32(esp, 1); /* 0x470A0B01: push 1 */
   1284     PUSH32(esp, eax); /* 0x470A0B03: push eax */
   1285     eax = MEM32(ecx); /* 0x470A0B04: mov eax, dword ptr [ecx] */
   1286     PUSH32(esp, edx); /* 0x470A0B06: push edx */
   1287     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A0B07: call dword ptr [eax + 4] */
   1288     RECOMP_FLAGS_IN();
   1289     ecx = MEM32(esp + 0x34); /* 0x470A0B0A: mov ecx, dword ptr [esp + 0x34] */
   1290     edx = MEM32(esp + 0x30); /* 0x470A0B0E: mov edx, dword ptr [esp + 0x30] */
   1291     PUSH32(esp, eax); /* 0x470A0B12: push eax */
   1292     eax = MEM32(esp + 0x3C); /* 0x470A0B13: mov eax, dword ptr [esp + 0x3c] */
   1293     PUSH32(esp, ecx); /* 0x470A0B17: push ecx */
   1294     ecx = MEM32(esp + 0x34); /* 0x470A0B18: mov ecx, dword ptr [esp + 0x34] */
   1295     PUSH32(esp, edx); /* 0x470A0B1C: push edx */
   1296     edx = MEM32(esp + 0x34); /* 0x470A0B1D: mov edx, dword ptr [esp + 0x34] */
   1297     PUSH32(esp, eax); /* 0x470A0B21: push eax */
   1298     eax = MEM32(esi + (-0x1C)); /* 0x470A0B22: mov eax, dword ptr [esi - 0x1c] */
   1299     PUSH32(esp, ecx); /* 0x470A0B25: push ecx */
   1300     ecx = MEM32(esi + (-0x20)); /* 0x470A0B26: mov ecx, dword ptr [esi - 0x20] */
   1301     PUSH32(esp, edx); /* 0x470A0B29: push edx */
   1302     PUSH32(esp, eax); /* 0x470A0B2A: push eax */
   1303     PUSH32(esp, ecx); /* 0x470A0B2B: push ecx */
   1304     ecx = edi; /* 0x470A0B2C: mov ecx, edi */
   1305     RECOMP_ICALL(0x470A07A0u); /* 0x470A0B2E: call 0x470a07a0 */ /* not lifted */
   1306     RECOMP_FLAGS_IN();
   1307     edi = eax; /* 0x470A0B33: mov edi, eax */
   1308     goto L_470A0B39; /* 0x470A0B35: jmp 0x470a0b39 */
   1309 L_470A0B37:
   1310     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1311     edi = 0; /* 0x470A0B37: xor edi, edi */
   1312     _cf = 0;
   1313     _flag_k = FK_TEST;
   1314 L_470A0B39:
   1315     /* test edi, edi */ /* 0x470A0B39: test edi, edi */
   1316     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1317     _cf = 0;
   1318     _flag_k = FK_TEST;
   1319     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A0B3B: mov dword ptr [esp + 0x14], 0xffffffff */
   1320     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A0B67; /* 0x470A0B43: jne 0x470a0b67 */
   1321 L_470A0B45:
   1322     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A0B45: call dword ptr [0x470ac3c8] */
   1323     RECOMP_FLAGS_IN();
   1324     edi = POP32_VAL(esp); /* 0x470A0B4B: pop edi */
   1325     MEM32(eax) = 0xCu; /* 0x470A0B4C: mov dword ptr [eax], 0xc */
   1326     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1327     eax = eax | 0xFFFFFFFFu; /* 0x470A0B52: or eax, 0xffffffff */
   1328     _cf = 0;
   1329     _flag_k = FK_TEST;
   1330     esi = POP32_VAL(esp); /* 0x470A0B55: pop esi */
   1331     ecx = MEM32(esp + 0x4); /* 0x470A0B56: mov ecx, dword ptr [esp + 4] */
   1332     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0B5A: mov dword ptr fs:[0], ecx */
   1333     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1335     esp = esp + 0x10u; /* 0x470A0B61: add esp, 0x10 */
   1336     _flag_k = FK_ADD;
   1337     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A0B64: ret 0x1c */
   1338 L_470A0B67:
   1339     PUSH32(esp, edi); /* 0x470A0B67: push edi */
   1340     ecx = esi + (-0x2C); /* 0x470A0B68: lea ecx, [esi - 0x2c] */
   1341     RECOMP_ICALL(0x470A01D0u); /* 0x470A0B6B: call 0x470a01d0 */ /* not lifted */
   1342     RECOMP_FLAGS_IN();
   1343     esi = eax; /* 0x470A0B70: mov esi, eax */
   1344     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0B72: cmp esi, -1 */
   1345     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1347     _flag_k = FK_CMP;
   1348     if (CMP_NE(_flag_a, _flag_b)) goto L_470A0B86; /* 0x470A0B75: jne 0x470a0b86 */
   1349 L_470A0B77:
   1350     edx = MEM32(edi); /* 0x470A0B77: mov edx, dword ptr [edi] */
   1351     eax = MEM32(edx + 0x4); /* 0x470A0B79: mov eax, dword ptr [edx + 4] */
   1352     edx = MEM32(eax + edi); /* 0x470A0B7C: mov edx, dword ptr [eax + edi] */
   1353     ecx = eax + edi; /* 0x470A0B7F: lea ecx, [eax + edi] */
   1354     PUSH32(esp, 1); /* 0x470A0B82: push 1 */
   1355     RECOMP_ICALL(MEM32(edx)); /* 0x470A0B84: call dword ptr [edx] */
   1356     RECOMP_FLAGS_IN();
   1357 L_470A0B86:
   1358     ecx = MEM32(esp + 0xC); /* 0x470A0B86: mov ecx, dword ptr [esp + 0xc] */
   1359     edi = POP32_VAL(esp); /* 0x470A0B8A: pop edi */
   1360     eax = esi; /* 0x470A0B8B: mov eax, esi */
   1361     esi = POP32_VAL(esp); /* 0x470A0B8D: pop esi */
   1362     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0B8E: mov dword ptr fs:[0], ecx */
   1363     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1364     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1365     esp = esp + 0x10u; /* 0x470A0B95: add esp, 0x10 */
   1366     _flag_k = FK_ADD;
   1367     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A0B98: ret 0x1c */
   1368     RECOMP_REGS_OUT();
   1369 }
   1370 
   1371 void sub_47067580(void) {
   1372     int _fpu_cmp = 0;
   1373     uint32_t _cf = 0;
   1374     int _df = 1;
   1375     uint32_t _flag_k = FK_NONE;
   1376     uint32_t _flag_a = 0, _flag_b = 0;
   1377     uint32_t _itail_tgt = 0;
   1378     RECOMP_REGS_LOCALS
   1379     RECOMP_ENTER(0x47067580u);
   1380 
   1381     goto L_47067580;
   1382 L_47062AE0:
   1383     PUSH32(esp, ebx); /* 0x47062AE0: push ebx */
   1384     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062AE1: mov bl, byte ptr [esp + 8] */
   1385     /* test LO8(ebx), 2 */ /* 0x47062AE5: test bl, 2 */
   1386     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1387     _cf = 0;
   1388     _flag_k = FK_NARROW(FK_TEST, 24);
   1389     PUSH32(esp, esi); /* 0x47062AE8: push esi */
   1390     if (TEST_Z(_flag_a, _flag_b)) goto L_47062B17; /* 0x47062AE9: je 0x47062b17 */
   1391 L_47062AEB:
   1392     eax = MEM32(ecx + (-0x18)); /* 0x47062AEB: mov eax, dword ptr [ecx - 0x18] */
   1393     esi = ecx + (-0x18); /* 0x47062AEE: lea esi, [ecx - 0x18] */
   1394     PUSH32(esp, 0x47062AB0u); /* 0x47062AF1: push 0x47062ab0 */
   1395     PUSH32(esp, eax); /* 0x47062AF6: push eax */
   1396     PUSH32(esp, 0x58u); /* 0x47062AF7: push 0x58 */
   1397     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   1398     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1399     ecx = ecx + 0xFFFFFFECu; /* 0x47062AF9: add ecx, -0x14 */
   1400     _flag_k = FK_ADD;
   1401     PUSH32(esp, ecx); /* 0x47062AFC: push ecx */
   1402     RECOMP_ICALL(0x470A32EBu); /* 0x47062AFD: call 0x470a32eb */ /* not lifted */
   1403     RECOMP_FLAGS_IN();
   1404     /* test LO8(ebx), 1 */ /* 0x47062B02: test bl, 1 */
   1405     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1406     _cf = 0;
   1407     _flag_k = FK_NARROW(FK_TEST, 24);
   1408     if (TEST_Z(_flag_a, _flag_b)) goto L_47062B53; /* 0x47062B05: je 0x47062b53 */
   1409 L_47062B07:
   1410     PUSH32(esp, esi); /* 0x47062B07: push esi */
   1411     RECOMP_ICALL(0x470A32A2u); /* 0x47062B08: call 0x470a32a2 */ /* not lifted */
   1412     RECOMP_FLAGS_IN();
   1413     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1415     esp = esp + 4; /* 0x47062B0D: add esp, 4 */
   1416     _flag_k = FK_ADD;
   1417     eax = esi; /* 0x47062B10: mov eax, esi */
   1418     esi = POP32_VAL(esp); /* 0x47062B12: pop esi */
   1419     ebx = POP32_VAL(esp); /* 0x47062B13: pop ebx */
   1420     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062B14: ret 4 */
   1421 L_47062B17:
   1422     esi = ecx + (-0x14); /* 0x47062B17: lea esi, [ecx - 0x14] */
   1423     PUSH32(esp, edi); /* 0x47062B1A: push edi */
   1424     edi = esi + 0x14; /* 0x47062B1B: lea edi, [esi + 0x14] */
   1425     ecx = edi; /* 0x47062B1E: mov ecx, edi */
   1426     RECOMP_ICALL(0x470A0970u); /* 0x47062B20: call 0x470a0970 */ /* not lifted */
   1427     RECOMP_FLAGS_IN();
   1428     ecx = esi + 0x5C; /* 0x47062B25: lea ecx, [esi + 0x5c] */
   1429     RECOMP_ICALL(0x4709FC00u); /* 0x47062B28: call 0x4709fc00 */ /* not lifted */
   1430     RECOMP_FLAGS_IN();
   1431     ecx = esi + 0x28; /* 0x47062B2D: lea ecx, [esi + 0x28] */
   1432     RECOMP_ICALL(0x47018840u); /* 0x47062B30: call 0x47018840 */ /* not lifted */
   1433     RECOMP_FLAGS_IN();
   1434     ecx = esi + 0x24; /* 0x47062B35: lea ecx, [esi + 0x24] */
   1435     RECOMP_ICALL(0x47018780u); /* 0x47062B38: call 0x47018780 */ /* not lifted */
   1436     RECOMP_FLAGS_IN();
   1437     ecx = edi; /* 0x47062B3D: mov ecx, edi */
   1438     RECOMP_ICALL(0x47018740u); /* 0x47062B3F: call 0x47018740 */ /* not lifted */
   1439     RECOMP_FLAGS_IN();
   1440     /* test LO8(ebx), 1 */ /* 0x47062B44: test bl, 1 */
   1441     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1442     _cf = 0;
   1443     _flag_k = FK_NARROW(FK_TEST, 24);
   1444     edi = POP32_VAL(esp); /* 0x47062B47: pop edi */
   1445     if (TEST_Z(_flag_a, _flag_b)) goto L_47062B53; /* 0x47062B48: je 0x47062b53 */
   1446 L_47062B4A:
   1447     PUSH32(esp, esi); /* 0x47062B4A: push esi */
   1448     RECOMP_ICALL(0x470A32A2u); /* 0x47062B4B: call 0x470a32a2 */ /* not lifted */
   1449     RECOMP_FLAGS_IN();
   1450     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1451     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1452     esp = esp + 4; /* 0x47062B50: add esp, 4 */
   1453     _flag_k = FK_ADD;
   1454 L_47062B53:
   1455     eax = esi; /* 0x47062B53: mov eax, esi */
   1456     esi = POP32_VAL(esp); /* 0x47062B55: pop esi */
   1457     ebx = POP32_VAL(esp); /* 0x47062B56: pop ebx */
   1458     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062B57: ret 4 */
   1459 L_47067580:
   1460     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1462     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067580: sub ecx, dword ptr [ecx - 4] */
   1463     _flag_k = FK_CMP;
   1464     RECOMP_BACKEDGE();
   1465     goto L_47062AE0; /* 0x47067583: jmp 0x47062ae0 */
   1466     { RECOMP_REGS_OUT(); return; } /* end of function */
   1467     RECOMP_REGS_OUT();
   1468 }
   1469 
   1470 void sub_47067590(void) {
   1471     int _fpu_cmp = 0;
   1472     uint32_t _cf = 0;
   1473     int _df = 1;
   1474     uint32_t _flag_k = FK_NONE;
   1475     uint32_t _flag_a = 0, _flag_b = 0;
   1476     uint32_t _itail_tgt = 0;
   1477     RECOMP_REGS_LOCALS
   1478     RECOMP_ENTER(0x47067590u);
   1479 
   1480 L_47067590:
   1481     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1483     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067590: sub ecx, dword ptr [ecx - 4] */
   1484     _flag_k = FK_CMP;
   1485     goto L_470A09E0; /* 0x47067593: jmp 0x470a09e0 */
   1486 L_470A09E0:
   1487     eax = MEM32(ecx + (-0x14)); /* 0x470A09E0: mov eax, dword ptr [ecx - 0x14] */
   1488     edx = MEM32(eax + 0xC); /* 0x470A09E3: mov edx, dword ptr [eax + 0xc] */
   1489     eax = MEM32(edx + ecx + 0xC); /* 0x470A09E6: mov eax, dword ptr [edx + ecx + 0xc] */
   1490     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A09EA: ret  */
   1491     RECOMP_REGS_OUT();
   1492 }
   1493 
   1494 void sub_470675A0(void) {
   1495     int _fpu_cmp = 0;
   1496     uint32_t _cf = 0;
   1497     int _df = 1;
   1498     uint32_t _flag_k = FK_NONE;
   1499     uint32_t _flag_a = 0, _flag_b = 0;
   1500     uint32_t _itail_tgt = 0;
   1501     RECOMP_REGS_LOCALS
   1502     RECOMP_ENTER(0x470675A0u);
   1503 
   1504 L_470675A0:
   1505     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1507     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470675A0: sub ecx, dword ptr [ecx - 4] */
   1508     _flag_k = FK_CMP;
   1509     goto L_4709FEF0; /* 0x470675A3: jmp 0x4709fef0 */
   1510 L_4709FEF0:
   1511     eax = MEM32(ecx + (-0x14)); /* 0x4709FEF0: mov eax, dword ptr [ecx - 0x14] */
   1512     edx = MEM32(eax + 0xC); /* 0x4709FEF3: mov edx, dword ptr [eax + 0xc] */
   1513     eax = MEM32(edx + ecx + 0x8); /* 0x4709FEF6: mov eax, dword ptr [edx + ecx + 8] */
   1514     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FEFA: ret  */
   1515     RECOMP_REGS_OUT();
   1516 }
   1517 
   1518 void sub_470675B0(void) {
   1519     int _fpu_cmp = 0;
   1520     uint32_t _cf = 0;
   1521     int _df = 1;
   1522     uint32_t _flag_k = FK_NONE;
   1523     uint32_t _flag_a = 0, _flag_b = 0;
   1524     uint32_t _itail_tgt = 0;
   1525     RECOMP_REGS_LOCALS
   1526     RECOMP_ENTER(0x470675B0u);
   1527 
   1528 L_470675B0:
   1529     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1531     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470675B0: sub ecx, dword ptr [ecx - 4] */
   1532     _flag_k = FK_CMP;
   1533     goto L_4709FF00; /* 0x470675B3: jmp 0x4709ff00 */
   1534 L_4709FF00:
   1535     eax = MEM32(ecx + (-0x14)); /* 0x4709FF00: mov eax, dword ptr [ecx - 0x14] */
   1536     edx = MEM32(eax + 0xC); /* 0x4709FF03: mov edx, dword ptr [eax + 0xc] */
   1537     eax = MEM32(edx + ecx + 0x10); /* 0x4709FF06: mov eax, dword ptr [edx + ecx + 0x10] */
   1538     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF0A: ret  */
   1539     RECOMP_REGS_OUT();
   1540 }
   1541 
   1542 void sub_470675C0(void) {
   1543     int _fpu_cmp = 0;
   1544     uint32_t _cf = 0;
   1545     int _df = 1;
   1546     uint32_t _flag_k = FK_NONE;
   1547     uint32_t _flag_a = 0, _flag_b = 0;
   1548     uint32_t _itail_tgt = 0;
   1549     RECOMP_REGS_LOCALS
   1550     RECOMP_ENTER(0x470675C0u);
   1551 
   1552 L_470675C0:
   1553     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1555     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470675C0: sub ecx, dword ptr [ecx - 4] */
   1556     _flag_k = FK_CMP;
   1557     goto L_4709FF10; /* 0x470675C3: jmp 0x4709ff10 */
   1558 L_4709FF10:
   1559     eax = MEM32(ecx + (-0x14)); /* 0x4709FF10: mov eax, dword ptr [ecx - 0x14] */
   1560     edx = MEM32(eax + 0xC); /* 0x4709FF13: mov edx, dword ptr [eax + 0xc] */
   1561     eax = MEM32(edx + ecx + 0x14); /* 0x4709FF16: mov eax, dword ptr [edx + ecx + 0x14] */
   1562     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF1A: ret  */
   1563     RECOMP_REGS_OUT();
   1564 }
   1565 
   1566 void sub_470675D0(void) {
   1567     int _fpu_cmp = 0;
   1568     uint32_t _cf = 0;
   1569     int _df = 1;
   1570     uint32_t _flag_k = FK_NONE;
   1571     uint32_t _flag_a = 0, _flag_b = 0;
   1572     uint32_t _itail_tgt = 0;
   1573     RECOMP_REGS_LOCALS
   1574     RECOMP_ENTER(0x470675D0u);
   1575 
   1576 L_470675D0:
   1577     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1579     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470675D0: sub ecx, dword ptr [ecx - 4] */
   1580     _flag_k = FK_CMP;
   1581     goto L_4709FF20; /* 0x470675D3: jmp 0x4709ff20 */
   1582 L_4709FF20:
   1583     eax = MEM32(ecx + (-0x14)); /* 0x4709FF20: mov eax, dword ptr [ecx - 0x14] */
   1584     edx = MEM32(eax + 0xC); /* 0x4709FF23: mov edx, dword ptr [eax + 0xc] */
   1585     eax = MEM32(edx + ecx + 0x18); /* 0x4709FF26: mov eax, dword ptr [edx + ecx + 0x18] */
   1586     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF2A: ret  */
   1587     RECOMP_REGS_OUT();
   1588 }
   1589 
   1590 void sub_470675E0(void) {
   1591     int _fpu_cmp = 0;
   1592     uint32_t _cf = 0;
   1593     int _df = 1;
   1594     uint32_t _flag_k = FK_NONE;
   1595     uint32_t _flag_a = 0, _flag_b = 0;
   1596     uint32_t _itail_tgt = 0;
   1597     RECOMP_REGS_LOCALS
   1598     RECOMP_ENTER(0x470675E0u);
   1599 
   1600 L_470675E0:
   1601     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1603     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470675E0: sub ecx, dword ptr [ecx - 4] */
   1604     _flag_k = FK_CMP;
   1605     goto L_4709FF30; /* 0x470675E3: jmp 0x4709ff30 */
   1606 L_4709FF30:
   1607     eax = MEM32(ecx + (-0x14)); /* 0x4709FF30: mov eax, dword ptr [ecx - 0x14] */
   1608     edx = MEM32(eax + 0xC); /* 0x4709FF33: mov edx, dword ptr [eax + 0xc] */
   1609     eax = MEM32(edx + ecx + (-0x4)); /* 0x4709FF36: mov eax, dword ptr [edx + ecx - 4] */
   1610     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF3A: ret  */
   1611     RECOMP_REGS_OUT();
   1612 }
   1613 
   1614 void sub_470675F0(void) {
   1615     int _fpu_cmp = 0;
   1616     uint32_t _cf = 0;
   1617     int _df = 1;
   1618     uint32_t _flag_k = FK_NONE;
   1619     uint32_t _flag_a = 0, _flag_b = 0;
   1620     uint32_t _itail_tgt = 0;
   1621     RECOMP_REGS_LOCALS
   1622     RECOMP_ENTER(0x470675F0u);
   1623 
   1624 L_470675F0:
   1625     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1627     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470675F0: sub ecx, dword ptr [ecx - 4] */
   1628     _flag_k = FK_CMP;
   1629     goto L_4709FF40; /* 0x470675F3: jmp 0x4709ff40 */
   1630 L_4709FF40:
   1631     eax = MEM32(ecx + (-0x14)); /* 0x4709FF40: mov eax, dword ptr [ecx - 0x14] */
   1632     edx = MEM32(eax + 0xC); /* 0x4709FF43: mov edx, dword ptr [eax + 0xc] */
   1633     eax = MEM32(edx + ecx + (-0xC)); /* 0x4709FF46: mov eax, dword ptr [edx + ecx - 0xc] */
   1634     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF4A: ret  */
   1635     RECOMP_REGS_OUT();
   1636 }
   1637 
   1638 void sub_47067600(void) {
   1639     int _fpu_cmp = 0;
   1640     uint32_t _cf = 0;
   1641     int _df = 1;
   1642     uint32_t _flag_k = FK_NONE;
   1643     uint32_t _flag_a = 0, _flag_b = 0;
   1644     uint32_t _itail_tgt = 0;
   1645     RECOMP_REGS_LOCALS
   1646     RECOMP_ENTER(0x47067600u);
   1647 
   1648 L_47067600:
   1649     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1651     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067600: sub ecx, dword ptr [ecx - 4] */
   1652     _flag_k = FK_CMP;
   1653     goto L_4709FF50; /* 0x47067603: jmp 0x4709ff50 */
   1654 L_4709FF50:
   1655     eax = MEM32(ecx + (-0x14)); /* 0x4709FF50: mov eax, dword ptr [ecx - 0x14] */
   1656     edx = MEM32(eax + 0xC); /* 0x4709FF53: mov edx, dword ptr [eax + 0xc] */
   1657     eax = MEM32(edx + ecx + (-0x8)); /* 0x4709FF56: mov eax, dword ptr [edx + ecx - 8] */
   1658     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF5A: ret  */
   1659     RECOMP_REGS_OUT();
   1660 }
   1661 
   1662 void sub_47067610(void) {
   1663     int _fpu_cmp = 0;
   1664     uint32_t _cf = 0;
   1665     int _df = 1;
   1666     uint32_t _flag_k = FK_NONE;
   1667     uint32_t _flag_a = 0, _flag_b = 0;
   1668     uint32_t _itail_tgt = 0;
   1669     RECOMP_REGS_LOCALS
   1670     RECOMP_ENTER(0x47067610u);
   1671 
   1672 L_47067610:
   1673     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1675     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067610: sub ecx, dword ptr [ecx - 4] */
   1676     _flag_k = FK_CMP;
   1677     goto L_4709FF60; /* 0x47067613: jmp 0x4709ff60 */
   1678 L_4709FF60:
   1679     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
   1680     RECOMP_FLAGS_IN();
   1681     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
   1682     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1683     eax = 0; /* 0x4709FF6C: xor eax, eax */
   1684     _cf = 0;
   1685     _flag_k = FK_TEST;
   1686     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
   1687     RECOMP_REGS_OUT();
   1688 }
   1689 
   1690 void sub_47067620(void) {
   1691     int _fpu_cmp = 0;
   1692     uint32_t _cf = 0;
   1693     int _df = 1;
   1694     uint32_t _flag_k = FK_NONE;
   1695     uint32_t _flag_a = 0, _flag_b = 0;
   1696     uint32_t _itail_tgt = 0;
   1697     RECOMP_REGS_LOCALS
   1698     RECOMP_ENTER(0x47067620u);
   1699 
   1700 L_47067620:
   1701     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1703     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067620: sub ecx, dword ptr [ecx - 4] */
   1704     _flag_k = FK_CMP;
   1705     goto L_4709FF60; /* 0x47067623: jmp 0x4709ff60 */
   1706 L_4709FF60:
   1707     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
   1708     RECOMP_FLAGS_IN();
   1709     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
   1710     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1711     eax = 0; /* 0x4709FF6C: xor eax, eax */
   1712     _cf = 0;
   1713     _flag_k = FK_TEST;
   1714     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
   1715     RECOMP_REGS_OUT();
   1716 }
   1717 
   1718 void sub_47067630(void) {
   1719     int _fpu_cmp = 0;
   1720     uint32_t _cf = 0;
   1721     int _df = 1;
   1722     uint32_t _flag_k = FK_NONE;
   1723     uint32_t _flag_a = 0, _flag_b = 0;
   1724     uint32_t _itail_tgt = 0;
   1725     RECOMP_REGS_LOCALS
   1726     RECOMP_ENTER(0x47067630u);
   1727 
   1728 L_47067630:
   1729     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1731     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067630: sub ecx, dword ptr [ecx - 4] */
   1732     _flag_k = FK_CMP;
   1733     goto L_470A08B0; /* 0x47067633: jmp 0x470a08b0 */
   1734 L_470A08B0:
   1735     eax = MEM32(FS_BASE + (0)); /* 0x470A08B0: mov eax, dword ptr fs:[0] */
   1736     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A08B6: push -1 */
   1737     PUSH32(esp, 0x470ABBE8u); /* 0x470A08B8: push 0x470abbe8 */
   1738     PUSH32(esp, eax); /* 0x470A08BD: push eax */
   1739     MEM32(FS_BASE + (0)) = esp; /* 0x470A08BE: mov dword ptr fs:[0], esp */
   1740     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1742     esp = esp - 0x10u; /* 0x470A08C5: sub esp, 0x10 */
   1743     _flag_k = FK_CMP;
   1744     PUSH32(esp, esi); /* 0x470A08C8: push esi */
   1745     esi = ecx; /* 0x470A08C9: mov esi, ecx */
   1746     eax = MEM32(esi + (-0x14)); /* 0x470A08CB: mov eax, dword ptr [esi - 0x14] */
   1747     edx = MEM32(eax + 0xC); /* 0x470A08CE: mov edx, dword ptr [eax + 0xc] */
   1748     ecx = MEM32(esp + 0x24); /* 0x470A08D1: mov ecx, dword ptr [esp + 0x24] */
   1749     MEM32(edx + esi + 0xC) = ecx; /* 0x470A08D5: mov dword ptr [edx + esi + 0xc], ecx */
   1750     eax = MEM32(esi + (-0x14)); /* 0x470A08D9: mov eax, dword ptr [esi - 0x14] */
   1751     edx = MEM32(eax + 0xC); /* 0x470A08DC: mov edx, dword ptr [eax + 0xc] */
   1752     eax = MEM32(esp + 0x28); /* 0x470A08DF: mov eax, dword ptr [esp + 0x28] */
   1753     MEM32(edx + esi + 0x10) = eax; /* 0x470A08E3: mov dword ptr [edx + esi + 0x10], eax */
   1754     edx = MEM32(esi + (-0x14)); /* 0x470A08E7: mov edx, dword ptr [esi - 0x14] */
   1755     eax = MEM32(edx + 0xC); /* 0x470A08EA: mov eax, dword ptr [edx + 0xc] */
   1756     edx = MEM32(esp + 0x2C); /* 0x470A08ED: mov edx, dword ptr [esp + 0x2c] */
   1757     MEM32(eax + esi + 0x14) = edx; /* 0x470A08F1: mov dword ptr [eax + esi + 0x14], edx */
   1758     eax = MEM32(esi + (-0x14)); /* 0x470A08F5: mov eax, dword ptr [esi - 0x14] */
   1759     edx = MEM32(eax + 0xC); /* 0x470A08F8: mov edx, dword ptr [eax + 0xc] */
   1760     eax = MEM32(esp + 0x30); /* 0x470A08FB: mov eax, dword ptr [esp + 0x30] */
   1761     MEM32(edx + esi + 0x18) = eax; /* 0x470A08FF: mov dword ptr [edx + esi + 0x18], eax */
   1762     eax = MEM32(esi + (-0xC)); /* 0x470A0903: mov eax, dword ptr [esi - 0xc] */
   1763     edx = MEM32(eax + 0x8); /* 0x470A0906: mov edx, dword ptr [eax + 8] */
   1764     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1765     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1766     edx = edx + ecx; /* 0x470A0909: add edx, ecx */
   1767     _flag_k = FK_ADD;
   1768     ecx = esi + (-0x14); /* 0x470A090B: lea ecx, [esi - 0x14] */
   1769     /* test ecx, ecx */ /* 0x470A090E: test ecx, ecx */
   1770     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1771     _cf = 0;
   1772     _flag_k = FK_TEST;
   1773     MEM32(eax + 0x8) = edx; /* 0x470A0910: mov dword ptr [eax + 8], edx */
   1774     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A0919; /* 0x470A0913: jne 0x470a0919 */
   1775 L_470A0915:
   1776     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1777     eax = 0; /* 0x470A0915: xor eax, eax */
   1778     _cf = 0;
   1779     _flag_k = FK_TEST;
   1780     goto L_470A0923; /* 0x470A0917: jmp 0x470a0923 */
   1781 L_470A0919:
   1782     edx = MEM32(esi + (-0x14)); /* 0x470A0919: mov edx, dword ptr [esi - 0x14] */
   1783     eax = MEM32(edx + 0x10); /* 0x470A091C: mov eax, dword ptr [edx + 0x10] */
   1784     eax = eax + esi + (-0x14); /* 0x470A091F: lea eax, [eax + esi - 0x14] */
   1785 L_470A0923:
   1786     PUSH32(esp, eax); /* 0x470A0923: push eax */
   1787     ecx = esp + 0x8; /* 0x470A0924: lea ecx, [esp + 8] */
   1788     RECOMP_ICALL(0x47017F00u); /* 0x470A0928: call 0x47017f00 */ /* not lifted */
   1789     RECOMP_FLAGS_IN();
   1790     ecx = MEM32(esi + (-0x14)); /* 0x470A092D: mov ecx, dword ptr [esi - 0x14] */
   1791     edx = MEM32(ecx + 0xC); /* 0x470A0930: mov edx, dword ptr [ecx + 0xc] */
   1792     ecx = MEM32(edx + esi + 0x4); /* 0x470A0933: mov ecx, dword ptr [edx + esi + 4] */
   1793     eax = MEM32(ecx); /* 0x470A0937: mov eax, dword ptr [ecx] */
   1794     edx = esp + 0x4; /* 0x470A0939: lea edx, [esp + 4] */
   1795     PUSH32(esp, edx); /* 0x470A093D: push edx */
   1796     MEM32(esp + 0x20) = 0; /* 0x470A093E: mov dword ptr [esp + 0x20], 0 */
   1797     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470A0946: call dword ptr [eax + 0xc] */
   1798     RECOMP_FLAGS_IN();
   1799     ecx = esp + 0x4; /* 0x470A0949: lea ecx, [esp + 4] */
   1800     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A094D: mov dword ptr [esp + 0x1c], 0xffffffff */
   1801     RECOMP_ICALL(0x47017E00u); /* 0x470A0955: call 0x47017e00 */ /* not lifted */
   1802     RECOMP_FLAGS_IN();
   1803     ecx = MEM32(esp + 0x14); /* 0x470A095A: mov ecx, dword ptr [esp + 0x14] */
   1804     esi = POP32_VAL(esp); /* 0x470A095E: pop esi */
   1805     MEM32(FS_BASE + (0)) = ecx; /* 0x470A095F: mov dword ptr fs:[0], ecx */
   1806     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1807     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1808     esp = esp + 0x1Cu; /* 0x470A0966: add esp, 0x1c */
   1809     _flag_k = FK_ADD;
   1810     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A0969: ret 0x10 */
   1811     RECOMP_REGS_OUT();
   1812 }
   1813 
   1814 void sub_47067640(void) {
   1815     int _fpu_cmp = 0;
   1816     uint32_t _cf = 0;
   1817     int _df = 1;
   1818     uint32_t _flag_k = FK_NONE;
   1819     uint32_t _flag_a = 0, _flag_b = 0;
   1820     uint32_t _itail_tgt = 0;
   1821     RECOMP_REGS_LOCALS
   1822     RECOMP_ENTER(0x47067640u);
   1823 
   1824 L_47067640:
   1825     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1827     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067640: sub ecx, dword ptr [ecx - 4] */
   1828     _flag_k = FK_CMP;
   1829     goto L_4709FF70; /* 0x47067643: jmp 0x4709ff70 */
   1830 L_4709FF70:
   1831     eax = MEM32(ecx + (-0x14)); /* 0x4709FF70: mov eax, dword ptr [ecx - 0x14] */
   1832     edx = MEM32(eax + 0xC); /* 0x4709FF73: mov edx, dword ptr [eax + 0xc] */
   1833     eax = edx + ecx + 0x20; /* 0x4709FF76: lea eax, [edx + ecx + 0x20] */
   1834     ecx = MEM32(esp + 0x4); /* 0x4709FF7A: mov ecx, dword ptr [esp + 4] */
   1835     /* test ecx, ecx */ /* 0x4709FF7E: test ecx, ecx */
   1836     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1837     _cf = 0;
   1838     _flag_k = FK_TEST;
   1839     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709FFE5; /* 0x4709FF80: jne 0x4709ffe5 */
   1840 L_4709FF82:
   1841     PUSH32(esp, esi); /* 0x4709FF82: push esi */
   1842     PUSH32(esp, edi); /* 0x4709FF83: push edi */
   1843     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709FF84: call dword ptr [0x470ac150] */
   1844     RECOMP_FLAGS_IN();
   1845     edi = eax; /* 0x4709FF8A: mov edi, eax */
   1846     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF8C: call dword ptr [0x470ac3c8] */
   1847     RECOMP_FLAGS_IN();
   1848     eax = MEM32(eax); /* 0x4709FF92: mov eax, dword ptr [eax] */
   1849     /* test eax, eax */ /* 0x4709FF94: test eax, eax */
   1850     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1851     _cf = 0;
   1852     _flag_k = FK_TEST;
   1853     if (TEST_Z(_flag_a, _flag_b)) goto L_4709FF9A; /* 0x4709FF96: je 0x4709ff9a */
   1854 L_4709FF98:
   1855     edi = eax; /* 0x4709FF98: mov edi, eax */
   1856 L_4709FF9A:
   1857     RECOMP_ICALL(0x47039020u); /* 0x4709FF9A: call 0x47039020 */ /* not lifted */
   1858     RECOMP_FLAGS_IN();
   1859     esi = eax; /* 0x4709FF9F: mov esi, eax */
   1860     ecx = esi; /* 0x4709FFA1: mov ecx, esi */
   1861     RECOMP_ICALL(0x4703B210u); /* 0x4709FFA3: call 0x4703b210 */ /* not lifted */
   1862     RECOMP_FLAGS_IN();
   1863     PUSH32(esp, eax); /* 0x4709FFA8: push eax */
   1864     ecx = esi; /* 0x4709FFA9: mov ecx, esi */
   1865     RECOMP_ICALL(0x4703B240u); /* 0x4709FFAB: call 0x4703b240 */ /* not lifted */
   1866     RECOMP_FLAGS_IN();
   1867     PUSH32(esp, eax); /* 0x4709FFB0: push eax */
   1868     ecx = esi; /* 0x4709FFB1: mov ecx, esi */
   1869     RECOMP_ICALL(0x4703B080u); /* 0x4709FFB3: call 0x4703b080 */ /* not lifted */
   1870     RECOMP_FLAGS_IN();
   1871     PUSH32(esp, eax); /* 0x4709FFB8: push eax */
   1872     PUSH32(esp, edi); /* 0x4709FFB9: push edi */
   1873     PUSH32(esp, 0xFFFFFFFFu); /* 0x4709FFBA: push -1 */
   1874     PUSH32(esp, 0x5Bu); /* 0x4709FFBC: push 0x5b */
   1875     PUSH32(esp, 0x4710DB30u); /* 0x4709FFBE: push 0x4710db30 */
   1876     ecx = esi; /* 0x4709FFC3: mov ecx, esi */
   1877     RECOMP_ICALL(0x4703A340u); /* 0x4709FFC5: call 0x4703a340 */ /* not lifted */
   1878     RECOMP_FLAGS_IN();
   1879     PUSH32(esp, 0x4710DB08u); /* 0x4709FFCA: push 0x4710db08 */
   1880     PUSH32(esp, 0x80u); /* 0x4709FFCF: push 0x80 */
   1881     PUSH32(esp, esi); /* 0x4709FFD4: push esi */
   1882     RECOMP_ICALL(0x47039830u); /* 0x4709FFD5: call 0x47039830 */ /* not lifted */
   1883     RECOMP_FLAGS_IN();
   1884     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1885     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1886     esp = esp + 0xCu; /* 0x4709FFDA: add esp, 0xc */
   1887     _flag_k = FK_ADD;
   1888     edi = POP32_VAL(esp); /* 0x4709FFDD: pop edi */
   1889     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1890     eax = eax | 0xFFFFFFFFu; /* 0x4709FFDE: or eax, 0xffffffff */
   1891     _cf = 0;
   1892     _flag_k = FK_TEST;
   1893     esi = POP32_VAL(esp); /* 0x4709FFE1: pop esi */
   1894     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709FFE2: ret 4 */
   1895 L_4709FFE5:
   1896     edx = MEM32(ecx); /* 0x4709FFE5: mov edx, dword ptr [ecx] */
   1897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFCCu);
   1898     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1899     eax = eax + 0xFFFFFFCCu; /* 0x4709FFE7: add eax, -0x34 */
   1900     _flag_k = FK_ADD;
   1901     PUSH32(esp, eax); /* 0x4709FFEA: push eax */
   1902     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x4709FFEB: call dword ptr [edx + 0x9c] */
   1903     RECOMP_FLAGS_IN();
   1904     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709FFF1: ret 4 */
   1905     RECOMP_REGS_OUT();
   1906 }
   1907 
   1908 void sub_47067650(void) {
   1909     int _fpu_cmp = 0;
   1910     uint32_t _cf = 0;
   1911     int _df = 1;
   1912     uint32_t _flag_k = FK_NONE;
   1913     uint32_t _flag_a = 0, _flag_b = 0;
   1914     uint32_t _itail_tgt = 0;
   1915     RECOMP_REGS_LOCALS
   1916     RECOMP_ENTER(0x47067650u);
   1917 
   1918 L_47067650:
   1919     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1921     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067650: sub ecx, dword ptr [ecx - 4] */
   1922     _flag_k = FK_CMP;
   1923     goto L_4709FD10; /* 0x47067653: jmp 0x4709fd10 */
   1924 L_4709FD10:
   1925     eax = MEM32(ecx + (-0x18)); /* 0x4709FD10: mov eax, dword ptr [ecx - 0x18] */
   1926     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD13: ret  */
   1927     RECOMP_REGS_OUT();
   1928 }
   1929 
   1930 void sub_47067660(void) {
   1931     int _fpu_cmp = 0;
   1932     uint32_t _cf = 0;
   1933     int _df = 1;
   1934     uint32_t _flag_k = FK_NONE;
   1935     uint32_t _flag_a = 0, _flag_b = 0;
   1936     uint32_t _itail_tgt = 0;
   1937     RECOMP_REGS_LOCALS
   1938     RECOMP_ENTER(0x47067660u);
   1939 
   1940 L_47067660:
   1941     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   1942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1943     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067660: sub ecx, dword ptr [ecx - 4] */
   1944     _flag_k = FK_CMP;
   1945     goto L_4709FD20; /* 0x47067663: jmp 0x4709fd20 */
   1946 L_4709FD20:
   1947     eax = MEM32(ecx + (-0x14)); /* 0x4709FD20: mov eax, dword ptr [ecx - 0x14] */
   1948     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD23: ret  */
   1949     RECOMP_REGS_OUT();
   1950 }
   1951 
   1952 void sub_47067670(void) {
   1953     int _fpu_cmp = 0;
   1954     uint32_t _cf = 0;
   1955     int _df = 1;
   1956     uint32_t _flag_k = FK_NONE;
   1957     uint32_t _flag_a = 0, _flag_b = 0;
   1958     uint32_t _itail_tgt = 0;
   1959     RECOMP_REGS_LOCALS
   1960     RECOMP_ENTER(0x47067670u);
   1961 
   1962     goto L_47067670;
   1963 L_47063000:
   1964     PUSH32(esp, ebx); /* 0x47063000: push ebx */
   1965     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063001: mov bl, byte ptr [esp + 8] */
   1966     /* test LO8(ebx), 2 */ /* 0x47063005: test bl, 2 */
   1967     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1968     _cf = 0;
   1969     _flag_k = FK_NARROW(FK_TEST, 24);
   1970     PUSH32(esp, esi); /* 0x47063008: push esi */
   1971     if (TEST_Z(_flag_a, _flag_b)) goto L_47063037; /* 0x47063009: je 0x47063037 */
   1972 L_4706300B:
   1973     eax = MEM32(ecx + (-0x1C)); /* 0x4706300B: mov eax, dword ptr [ecx - 0x1c] */
   1974     esi = ecx + (-0x1C); /* 0x4706300E: lea esi, [ecx - 0x1c] */
   1975     PUSH32(esp, 0x47062FD0u); /* 0x47063011: push 0x47062fd0 */
   1976     PUSH32(esp, eax); /* 0x47063016: push eax */
   1977     PUSH32(esp, 0x34u); /* 0x47063017: push 0x34 */
   1978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u);
   1979     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1980     ecx = ecx + 0xFFFFFFE8u; /* 0x47063019: add ecx, -0x18 */
   1981     _flag_k = FK_ADD;
   1982     PUSH32(esp, ecx); /* 0x4706301C: push ecx */
   1983     RECOMP_ICALL(0x470A32EBu); /* 0x4706301D: call 0x470a32eb */ /* not lifted */
   1984     RECOMP_FLAGS_IN();
   1985     /* test LO8(ebx), 1 */ /* 0x47063022: test bl, 1 */
   1986     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1987     _cf = 0;
   1988     _flag_k = FK_NARROW(FK_TEST, 24);
   1989     if (TEST_Z(_flag_a, _flag_b)) goto L_4706306B; /* 0x47063025: je 0x4706306b */
   1990 L_47063027:
   1991     PUSH32(esp, esi); /* 0x47063027: push esi */
   1992     RECOMP_ICALL(0x470A32A2u); /* 0x47063028: call 0x470a32a2 */ /* not lifted */
   1993     RECOMP_FLAGS_IN();
   1994     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1996     esp = esp + 4; /* 0x4706302D: add esp, 4 */
   1997     _flag_k = FK_ADD;
   1998     eax = esi; /* 0x47063030: mov eax, esi */
   1999     esi = POP32_VAL(esp); /* 0x47063032: pop esi */
   2000     ebx = POP32_VAL(esp); /* 0x47063033: pop ebx */
   2001     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063034: ret 4 */
   2002 L_47063037:
   2003     esi = ecx + (-0x18); /* 0x47063037: lea esi, [ecx - 0x18] */
   2004     PUSH32(esp, edi); /* 0x4706303A: push edi */
   2005     edi = esi + 0x18; /* 0x4706303B: lea edi, [esi + 0x18] */
   2006     ecx = edi; /* 0x4706303E: mov ecx, edi */
   2007     RECOMP_ICALL(0x470A10F0u); /* 0x47063040: call 0x470a10f0 */ /* not lifted */
   2008     RECOMP_FLAGS_IN();
   2009     ecx = esi + 0x34; /* 0x47063045: lea ecx, [esi + 0x34] */
   2010     RECOMP_ICALL(0x47018810u); /* 0x47063048: call 0x47018810 */ /* not lifted */
   2011     RECOMP_FLAGS_IN();
   2012     ecx = esi + 0x28; /* 0x4706304D: lea ecx, [esi + 0x28] */
   2013     RECOMP_ICALL(0x470187A0u); /* 0x47063050: call 0x470187a0 */ /* not lifted */
   2014     RECOMP_FLAGS_IN();
   2015     ecx = edi; /* 0x47063055: mov ecx, edi */
   2016     RECOMP_ICALL(0x47018750u); /* 0x47063057: call 0x47018750 */ /* not lifted */
   2017     RECOMP_FLAGS_IN();
   2018     /* test LO8(ebx), 1 */ /* 0x4706305C: test bl, 1 */
   2019     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2020     _cf = 0;
   2021     _flag_k = FK_NARROW(FK_TEST, 24);
   2022     edi = POP32_VAL(esp); /* 0x4706305F: pop edi */
   2023     if (TEST_Z(_flag_a, _flag_b)) goto L_4706306B; /* 0x47063060: je 0x4706306b */
   2024 L_47063062:
   2025     PUSH32(esp, esi); /* 0x47063062: push esi */
   2026     RECOMP_ICALL(0x470A32A2u); /* 0x47063063: call 0x470a32a2 */ /* not lifted */
   2027     RECOMP_FLAGS_IN();
   2028     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2029     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2030     esp = esp + 4; /* 0x47063068: add esp, 4 */
   2031     _flag_k = FK_ADD;
   2032 L_4706306B:
   2033     eax = esi; /* 0x4706306B: mov eax, esi */
   2034     esi = POP32_VAL(esp); /* 0x4706306D: pop esi */
   2035     ebx = POP32_VAL(esp); /* 0x4706306E: pop ebx */
   2036     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706306F: ret 4 */
   2037 L_47067670:
   2038     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2040     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067670: sub ecx, dword ptr [ecx - 4] */
   2041     _flag_k = FK_CMP;
   2042     RECOMP_BACKEDGE();
   2043     goto L_47063000; /* 0x47067673: jmp 0x47063000 */
   2044     { RECOMP_REGS_OUT(); return; } /* end of function */
   2045     RECOMP_REGS_OUT();
   2046 }
   2047 
   2048 void sub_47067680(void) {
   2049     int _fpu_cmp = 0;
   2050     uint32_t _cf = 0;
   2051     int _df = 1;
   2052     uint32_t _flag_k = FK_NONE;
   2053     uint32_t _flag_a = 0, _flag_b = 0;
   2054     uint32_t _itail_tgt = 0;
   2055     RECOMP_REGS_LOCALS
   2056     RECOMP_ENTER(0x47067680u);
   2057 
   2058 L_47067680:
   2059     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2061     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067680: sub ecx, dword ptr [ecx - 4] */
   2062     _flag_k = FK_CMP;
   2063     goto L_470A1D90; /* 0x47067683: jmp 0x470a1d90 */
   2064 L_470A1D90:
   2065     eax = MEM32(esp + 0x10); /* 0x470A1D90: mov eax, dword ptr [esp + 0x10] */
   2066     PUSH32(esp, esi); /* 0x470A1D94: push esi */
   2067     esi = ecx; /* 0x470A1D95: mov esi, ecx */
   2068     ecx = MEM32(esp + 0x8); /* 0x470A1D97: mov ecx, dword ptr [esp + 8] */
   2069     MEM32(esi + (-0x10)) = eax; /* 0x470A1D9B: mov dword ptr [esi - 0x10], eax */
   2070     eax = MEM32(esp + 0xC); /* 0x470A1D9E: mov eax, dword ptr [esp + 0xc] */
   2071     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DA2: cmp eax, -1 */
   2072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2074     _flag_k = FK_CMP;
   2075     MEM32(esi + (-0xC)) = ecx; /* 0x470A1DA5: mov dword ptr [esi - 0xc], ecx */
   2076     MEM32(esi + (-0x8)) = eax; /* 0x470A1DA8: mov dword ptr [esi - 8], eax */
   2077     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DB8; /* 0x470A1DAB: jne 0x470a1db8 */
   2078 L_470A1DAD:
   2079     ecx = MEM32(esi + (-0xC)); /* 0x470A1DAD: mov ecx, dword ptr [esi - 0xc] */
   2080     edx = MEM32(ecx); /* 0x470A1DB0: mov edx, dword ptr [ecx] */
   2081     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x470A1DB2: call dword ptr [edx + 0x24] */
   2082     RECOMP_FLAGS_IN();
   2083     MEM32(esi + (-0x8)) = eax; /* 0x470A1DB5: mov dword ptr [esi - 8], eax */
   2084 L_470A1DB8:
   2085     eax = MEM32(esi + (-0x8)); /* 0x470A1DB8: mov eax, dword ptr [esi - 8] */
   2086     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DBB: cmp eax, -1 */
   2087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2089     _flag_k = FK_CMP;
   2090     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DC6; /* 0x470A1DBE: jne 0x470a1dc6 */
   2091 L_470A1DC0:
   2092     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   2093     eax = eax | eax; /* 0x470A1DC0: or eax, eax */
   2094     _cf = 0;
   2095     _flag_k = FK_TEST;
   2096     esi = POP32_VAL(esp); /* 0x470A1DC2: pop esi */
   2097     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DC3: ret 0x10 */
   2098 L_470A1DC6:
   2099     ecx = MEM32(esi + (-0x14)); /* 0x470A1DC6: mov ecx, dword ptr [esi - 0x14] */
   2100     esi = MEM32(esp + 0x10); /* 0x470A1DC9: mov esi, dword ptr [esp + 0x10] */
   2101     edx = MEM32(ecx); /* 0x470A1DCD: mov edx, dword ptr [ecx] */
   2102     PUSH32(esp, esi); /* 0x470A1DCF: push esi */
   2103     PUSH32(esp, eax); /* 0x470A1DD0: push eax */
   2104     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x470A1DD1: call dword ptr [edx + 0x44] */
   2105     RECOMP_FLAGS_IN();
   2106     esi = POP32_VAL(esp); /* 0x470A1DD4: pop esi */
   2107     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DD5: ret 0x10 */
   2108     RECOMP_REGS_OUT();
   2109 }
   2110 
   2111 void sub_47067690(void) {
   2112     int _fpu_cmp = 0;
   2113     uint32_t _cf = 0;
   2114     int _df = 1;
   2115     uint32_t _flag_k = FK_NONE;
   2116     uint32_t _flag_a = 0, _flag_b = 0;
   2117     uint32_t _itail_tgt = 0;
   2118     RECOMP_REGS_LOCALS
   2119     RECOMP_ENTER(0x47067690u);
   2120 
   2121     goto L_47067690;
   2122 L_4700E9B0:
   2123     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4700E9B0: call dword ptr [0x470ac3c8] */
   2124     RECOMP_FLAGS_IN();
   2125     MEM32(eax) = 0x28u; /* 0x4700E9B6: mov dword ptr [eax], 0x28 */
   2126     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2127     eax = eax | 0xFFFFFFFFu; /* 0x4700E9BC: or eax, 0xffffffff */
   2128     _cf = 0;
   2129     _flag_k = FK_TEST;
   2130     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700E9BF: ret  */
   2131 L_47067690:
   2132     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2134     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067690: sub ecx, dword ptr [ecx - 4] */
   2135     _flag_k = FK_CMP;
   2136     RECOMP_BACKEDGE();
   2137     goto L_4700E9B0; /* 0x47067693: jmp 0x4700e9b0 */
   2138     { RECOMP_REGS_OUT(); return; } /* end of function */
   2139     RECOMP_REGS_OUT();
   2140 }
   2141 
   2142 void sub_470676A0(void) {
   2143     int _fpu_cmp = 0;
   2144     uint32_t _cf = 0;
   2145     int _df = 1;
   2146     uint32_t _flag_k = FK_NONE;
   2147     uint32_t _flag_a = 0, _flag_b = 0;
   2148     uint32_t _itail_tgt = 0;
   2149     RECOMP_REGS_LOCALS
   2150     RECOMP_ENTER(0x470676A0u);
   2151 
   2152 L_470676A0:
   2153     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2155     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470676A0: sub ecx, dword ptr [ecx - 4] */
   2156     _flag_k = FK_CMP;
   2157     goto L_4709FB30; /* 0x470676A3: jmp 0x4709fb30 */
   2158 L_4709FB30:
   2159     eax = MEM32(ecx + (-0x10)); /* 0x4709FB30: mov eax, dword ptr [ecx - 0x10] */
   2160     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB33: ret  */
   2161     RECOMP_REGS_OUT();
   2162 }
   2163 
   2164 void sub_470676B0(void) {
   2165     int _fpu_cmp = 0;
   2166     uint32_t _cf = 0;
   2167     int _df = 1;
   2168     uint32_t _flag_k = FK_NONE;
   2169     uint32_t _flag_a = 0, _flag_b = 0;
   2170     uint32_t _itail_tgt = 0;
   2171     RECOMP_REGS_LOCALS
   2172     RECOMP_ENTER(0x470676B0u);
   2173 
   2174 L_470676B0:
   2175     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2177     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470676B0: sub ecx, dword ptr [ecx - 4] */
   2178     _flag_k = FK_CMP;
   2179     goto L_470A11A0; /* 0x470676B3: jmp 0x470a11a0 */
   2180 L_470A11A0:
   2181     eax = MEM32(esp + 0x14); /* 0x470A11A0: mov eax, dword ptr [esp + 0x14] */
   2182     edx = MEM32(esp + 0x10); /* 0x470A11A4: mov edx, dword ptr [esp + 0x10] */
   2183     PUSH32(esp, eax); /* 0x470A11A8: push eax */
   2184     eax = MEM32(esp + 0x10); /* 0x470A11A9: mov eax, dword ptr [esp + 0x10] */
   2185     PUSH32(esp, edx); /* 0x470A11AD: push edx */
   2186     edx = MEM32(esp + 0x10); /* 0x470A11AE: mov edx, dword ptr [esp + 0x10] */
   2187     PUSH32(esp, eax); /* 0x470A11B2: push eax */
   2188     eax = MEM32(esp + 0x10); /* 0x470A11B3: mov eax, dword ptr [esp + 0x10] */
   2189     PUSH32(esp, edx); /* 0x470A11B7: push edx */
   2190     PUSH32(esp, eax); /* 0x470A11B8: push eax */
   2191     RECOMP_ICALL(0x470A0560u); /* 0x470A11B9: call 0x470a0560 */ /* not lifted */
   2192     RECOMP_FLAGS_IN();
   2193     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A11BE: ret 0x14 */
   2194     RECOMP_REGS_OUT();
   2195 }
   2196 
   2197 void sub_470676C0(void) {
   2198     int _fpu_cmp = 0;
   2199     uint32_t _cf = 0;
   2200     int _df = 1;
   2201     uint32_t _flag_k = FK_NONE;
   2202     uint32_t _flag_a = 0, _flag_b = 0;
   2203     uint32_t _itail_tgt = 0;
   2204     RECOMP_REGS_LOCALS
   2205     RECOMP_ENTER(0x470676C0u);
   2206 
   2207 L_470676C0:
   2208     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2210     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470676C0: sub ecx, dword ptr [ecx - 4] */
   2211     _flag_k = FK_CMP;
   2212     goto L_470A1010; /* 0x470676C3: jmp 0x470a1010 */
   2213 L_470A1010:
   2214     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A1010: push -1 */
   2215     PUSH32(esp, 0x470ABC4Bu); /* 0x470A1012: push 0x470abc4b */
   2216     eax = MEM32(FS_BASE + (0)); /* 0x470A1017: mov eax, dword ptr fs:[0] */
   2217     PUSH32(esp, eax); /* 0x470A101D: push eax */
   2218     MEM32(FS_BASE + (0)) = esp; /* 0x470A101E: mov dword ptr fs:[0], esp */
   2219     PUSH32(esp, ecx); /* 0x470A1025: push ecx */
   2220     PUSH32(esp, esi); /* 0x470A1026: push esi */
   2221     PUSH32(esp, edi); /* 0x470A1027: push edi */
   2222     PUSH32(esp, 0x54u); /* 0x470A1028: push 0x54 */
   2223     esi = ecx; /* 0x470A102A: mov esi, ecx */
   2224     RECOMP_ICALL(0x470A33F2u); /* 0x470A102C: call 0x470a33f2 */ /* not lifted */
   2225     RECOMP_FLAGS_IN();
   2226     edi = eax; /* 0x470A1031: mov edi, eax */
   2227     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2228     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2229     esp = esp + 4; /* 0x470A1033: add esp, 4 */
   2230     _flag_k = FK_ADD;
   2231     MEM32(esp + 0x8) = edi; /* 0x470A1036: mov dword ptr [esp + 8], edi */
   2232     /* test edi, edi */ /* 0x470A103A: test edi, edi */
   2233     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2234     _cf = 0;
   2235     _flag_k = FK_TEST;
   2236     MEM32(esp + 0x14) = 0; /* 0x470A103C: mov dword ptr [esp + 0x14], 0 */
   2237     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1087; /* 0x470A1044: je 0x470a1087 */
   2238 L_470A1046:
   2239     eax = MEM32(esp + 0x34); /* 0x470A1046: mov eax, dword ptr [esp + 0x34] */
   2240     ecx = MEM32(esi + (-0x28)); /* 0x470A104A: mov ecx, dword ptr [esi - 0x28] */
   2241     edx = MEM32(esp + 0x30); /* 0x470A104D: mov edx, dword ptr [esp + 0x30] */
   2242     PUSH32(esp, 1); /* 0x470A1051: push 1 */
   2243     PUSH32(esp, eax); /* 0x470A1053: push eax */
   2244     eax = MEM32(ecx); /* 0x470A1054: mov eax, dword ptr [ecx] */
   2245     PUSH32(esp, edx); /* 0x470A1056: push edx */
   2246     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A1057: call dword ptr [eax + 4] */
   2247     RECOMP_FLAGS_IN();
   2248     ecx = MEM32(esp + 0x34); /* 0x470A105A: mov ecx, dword ptr [esp + 0x34] */
   2249     edx = MEM32(esp + 0x30); /* 0x470A105E: mov edx, dword ptr [esp + 0x30] */
   2250     PUSH32(esp, eax); /* 0x470A1062: push eax */
   2251     eax = MEM32(esp + 0x3C); /* 0x470A1063: mov eax, dword ptr [esp + 0x3c] */
   2252     PUSH32(esp, ecx); /* 0x470A1067: push ecx */
   2253     ecx = MEM32(esp + 0x34); /* 0x470A1068: mov ecx, dword ptr [esp + 0x34] */
   2254     PUSH32(esp, edx); /* 0x470A106C: push edx */
   2255     edx = MEM32(esp + 0x34); /* 0x470A106D: mov edx, dword ptr [esp + 0x34] */
   2256     PUSH32(esp, eax); /* 0x470A1071: push eax */
   2257     eax = MEM32(esi + (-0x1C)); /* 0x470A1072: mov eax, dword ptr [esi - 0x1c] */
   2258     PUSH32(esp, ecx); /* 0x470A1075: push ecx */
   2259     ecx = MEM32(esi + (-0x20)); /* 0x470A1076: mov ecx, dword ptr [esi - 0x20] */
   2260     PUSH32(esp, edx); /* 0x470A1079: push edx */
   2261     PUSH32(esp, eax); /* 0x470A107A: push eax */
   2262     PUSH32(esp, ecx); /* 0x470A107B: push ecx */
   2263     ecx = edi; /* 0x470A107C: mov ecx, edi */
   2264     RECOMP_ICALL(0x470A0C80u); /* 0x470A107E: call 0x470a0c80 */ /* not lifted */
   2265     RECOMP_FLAGS_IN();
   2266     edi = eax; /* 0x470A1083: mov edi, eax */
   2267     goto L_470A1089; /* 0x470A1085: jmp 0x470a1089 */
   2268 L_470A1087:
   2269     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2270     edi = 0; /* 0x470A1087: xor edi, edi */
   2271     _cf = 0;
   2272     _flag_k = FK_TEST;
   2273 L_470A1089:
   2274     /* test edi, edi */ /* 0x470A1089: test edi, edi */
   2275     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2276     _cf = 0;
   2277     _flag_k = FK_TEST;
   2278     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A108B: mov dword ptr [esp + 0x14], 0xffffffff */
   2279     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A10B7; /* 0x470A1093: jne 0x470a10b7 */
   2280 L_470A1095:
   2281     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1095: call dword ptr [0x470ac3c8] */
   2282     RECOMP_FLAGS_IN();
   2283     edi = POP32_VAL(esp); /* 0x470A109B: pop edi */
   2284     MEM32(eax) = 0xCu; /* 0x470A109C: mov dword ptr [eax], 0xc */
   2285     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2286     eax = eax | 0xFFFFFFFFu; /* 0x470A10A2: or eax, 0xffffffff */
   2287     _cf = 0;
   2288     _flag_k = FK_TEST;
   2289     esi = POP32_VAL(esp); /* 0x470A10A5: pop esi */
   2290     ecx = MEM32(esp + 0x4); /* 0x470A10A6: mov ecx, dword ptr [esp + 4] */
   2291     MEM32(FS_BASE + (0)) = ecx; /* 0x470A10AA: mov dword ptr fs:[0], ecx */
   2292     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2293     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2294     esp = esp + 0x10u; /* 0x470A10B1: add esp, 0x10 */
   2295     _flag_k = FK_ADD;
   2296     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A10B4: ret 0x1c */
   2297 L_470A10B7:
   2298     PUSH32(esp, edi); /* 0x470A10B7: push edi */
   2299     ecx = esi + (-0x2C); /* 0x470A10B8: lea ecx, [esi - 0x2c] */
   2300     RECOMP_ICALL(0x470A06A0u); /* 0x470A10BB: call 0x470a06a0 */ /* not lifted */
   2301     RECOMP_FLAGS_IN();
   2302     esi = eax; /* 0x470A10C0: mov esi, eax */
   2303     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A10C2: cmp esi, -1 */
   2304     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2306     _flag_k = FK_CMP;
   2307     if (CMP_NE(_flag_a, _flag_b)) goto L_470A10D9; /* 0x470A10C5: jne 0x470a10d9 */
   2308 L_470A10C7:
   2309     edx = MEM32(edi + 0x14); /* 0x470A10C7: mov edx, dword ptr [edi + 0x14] */
   2310     eax = MEM32(edx + 0x4); /* 0x470A10CA: mov eax, dword ptr [edx + 4] */
   2311     edx = MEM32(eax + edi + 0x14); /* 0x470A10CD: mov edx, dword ptr [eax + edi + 0x14] */
   2312     ecx = eax + edi + 0x14; /* 0x470A10D1: lea ecx, [eax + edi + 0x14] */
   2313     PUSH32(esp, 1); /* 0x470A10D5: push 1 */
   2314     RECOMP_ICALL(MEM32(edx)); /* 0x470A10D7: call dword ptr [edx] */
   2315     RECOMP_FLAGS_IN();
   2316 L_470A10D9:
   2317     ecx = MEM32(esp + 0xC); /* 0x470A10D9: mov ecx, dword ptr [esp + 0xc] */
   2318     edi = POP32_VAL(esp); /* 0x470A10DD: pop edi */
   2319     eax = esi; /* 0x470A10DE: mov eax, esi */
   2320     esi = POP32_VAL(esp); /* 0x470A10E0: pop esi */
   2321     MEM32(FS_BASE + (0)) = ecx; /* 0x470A10E1: mov dword ptr fs:[0], ecx */
   2322     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2323     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2324     esp = esp + 0x10u; /* 0x470A10E8: add esp, 0x10 */
   2325     _flag_k = FK_ADD;
   2326     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x470A10EB: ret 0x1c */
   2327     RECOMP_REGS_OUT();
   2328 }
   2329 
   2330 void sub_470676D0(void) {
   2331     int _fpu_cmp = 0;
   2332     uint32_t _cf = 0;
   2333     int _df = 1;
   2334     uint32_t _flag_k = FK_NONE;
   2335     uint32_t _flag_a = 0, _flag_b = 0;
   2336     uint32_t _itail_tgt = 0;
   2337     RECOMP_REGS_LOCALS
   2338     RECOMP_ENTER(0x470676D0u);
   2339 
   2340     goto L_470676D0;
   2341 L_47062520:
   2342     PUSH32(esp, ebx); /* 0x47062520: push ebx */
   2343     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062521: mov bl, byte ptr [esp + 8] */
   2344     /* test LO8(ebx), 2 */ /* 0x47062525: test bl, 2 */
   2345     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   2346     _cf = 0;
   2347     _flag_k = FK_NARROW(FK_TEST, 24);
   2348     PUSH32(esp, esi); /* 0x47062528: push esi */
   2349     if (TEST_Z(_flag_a, _flag_b)) goto L_47062557; /* 0x47062529: je 0x47062557 */
   2350 L_4706252B:
   2351     eax = MEM32(ecx + (-0x18)); /* 0x4706252B: mov eax, dword ptr [ecx - 0x18] */
   2352     esi = ecx + (-0x18); /* 0x4706252E: lea esi, [ecx - 0x18] */
   2353     PUSH32(esp, 0x470624F0u); /* 0x47062531: push 0x470624f0 */
   2354     PUSH32(esp, eax); /* 0x47062536: push eax */
   2355     PUSH32(esp, 0x54u); /* 0x47062537: push 0x54 */
   2356     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   2357     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2358     ecx = ecx + 0xFFFFFFECu; /* 0x47062539: add ecx, -0x14 */
   2359     _flag_k = FK_ADD;
   2360     PUSH32(esp, ecx); /* 0x4706253C: push ecx */
   2361     RECOMP_ICALL(0x470A32EBu); /* 0x4706253D: call 0x470a32eb */ /* not lifted */
   2362     RECOMP_FLAGS_IN();
   2363     /* test LO8(ebx), 1 */ /* 0x47062542: test bl, 1 */
   2364     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2365     _cf = 0;
   2366     _flag_k = FK_NARROW(FK_TEST, 24);
   2367     if (TEST_Z(_flag_a, _flag_b)) goto L_4706258B; /* 0x47062545: je 0x4706258b */
   2368 L_47062547:
   2369     PUSH32(esp, esi); /* 0x47062547: push esi */
   2370     RECOMP_ICALL(0x470A32A2u); /* 0x47062548: call 0x470a32a2 */ /* not lifted */
   2371     RECOMP_FLAGS_IN();
   2372     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2373     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2374     esp = esp + 4; /* 0x4706254D: add esp, 4 */
   2375     _flag_k = FK_ADD;
   2376     eax = esi; /* 0x47062550: mov eax, esi */
   2377     esi = POP32_VAL(esp); /* 0x47062552: pop esi */
   2378     ebx = POP32_VAL(esp); /* 0x47062553: pop ebx */
   2379     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062554: ret 4 */
   2380 L_47062557:
   2381     esi = ecx + (-0x14); /* 0x47062557: lea esi, [ecx - 0x14] */
   2382     PUSH32(esp, edi); /* 0x4706255A: push edi */
   2383     edi = esi + 0x14; /* 0x4706255B: lea edi, [esi + 0x14] */
   2384     ecx = edi; /* 0x4706255E: mov ecx, edi */
   2385     RECOMP_ICALL(0x4709FEB0u); /* 0x47062560: call 0x4709feb0 */ /* not lifted */
   2386     RECOMP_FLAGS_IN();
   2387     ecx = esi + 0x58; /* 0x47062565: lea ecx, [esi + 0x58] */
   2388     RECOMP_ICALL(0x4709FC00u); /* 0x47062568: call 0x4709fc00 */ /* not lifted */
   2389     RECOMP_FLAGS_IN();
   2390     ecx = esi + 0x24; /* 0x4706256D: lea ecx, [esi + 0x24] */
   2391     RECOMP_ICALL(0x47018780u); /* 0x47062570: call 0x47018780 */ /* not lifted */
   2392     RECOMP_FLAGS_IN();
   2393     ecx = edi; /* 0x47062575: mov ecx, edi */
   2394     RECOMP_ICALL(0x47018740u); /* 0x47062577: call 0x47018740 */ /* not lifted */
   2395     RECOMP_FLAGS_IN();
   2396     /* test LO8(ebx), 1 */ /* 0x4706257C: test bl, 1 */
   2397     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2398     _cf = 0;
   2399     _flag_k = FK_NARROW(FK_TEST, 24);
   2400     edi = POP32_VAL(esp); /* 0x4706257F: pop edi */
   2401     if (TEST_Z(_flag_a, _flag_b)) goto L_4706258B; /* 0x47062580: je 0x4706258b */
   2402 L_47062582:
   2403     PUSH32(esp, esi); /* 0x47062582: push esi */
   2404     RECOMP_ICALL(0x470A32A2u); /* 0x47062583: call 0x470a32a2 */ /* not lifted */
   2405     RECOMP_FLAGS_IN();
   2406     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2407     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2408     esp = esp + 4; /* 0x47062588: add esp, 4 */
   2409     _flag_k = FK_ADD;
   2410 L_4706258B:
   2411     eax = esi; /* 0x4706258B: mov eax, esi */
   2412     esi = POP32_VAL(esp); /* 0x4706258D: pop esi */
   2413     ebx = POP32_VAL(esp); /* 0x4706258E: pop ebx */
   2414     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706258F: ret 4 */
   2415 L_470676D0:
   2416     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2418     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470676D0: sub ecx, dword ptr [ecx - 4] */
   2419     _flag_k = FK_CMP;
   2420     RECOMP_BACKEDGE();
   2421     goto L_47062520; /* 0x470676D3: jmp 0x47062520 */
   2422     { RECOMP_REGS_OUT(); return; } /* end of function */
   2423     RECOMP_REGS_OUT();
   2424 }
   2425 
   2426 void sub_470676E0(void) {
   2427     int _fpu_cmp = 0;
   2428     uint32_t _cf = 0;
   2429     int _df = 1;
   2430     uint32_t _flag_k = FK_NONE;
   2431     uint32_t _flag_a = 0, _flag_b = 0;
   2432     uint32_t _itail_tgt = 0;
   2433     RECOMP_REGS_LOCALS
   2434     RECOMP_ENTER(0x470676E0u);
   2435 
   2436 L_470676E0:
   2437     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2439     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470676E0: sub ecx, dword ptr [ecx - 4] */
   2440     _flag_k = FK_CMP;
   2441     goto L_470A09E0; /* 0x470676E3: jmp 0x470a09e0 */
   2442 L_470A09E0:
   2443     eax = MEM32(ecx + (-0x14)); /* 0x470A09E0: mov eax, dword ptr [ecx - 0x14] */
   2444     edx = MEM32(eax + 0xC); /* 0x470A09E3: mov edx, dword ptr [eax + 0xc] */
   2445     eax = MEM32(edx + ecx + 0xC); /* 0x470A09E6: mov eax, dword ptr [edx + ecx + 0xc] */
   2446     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A09EA: ret  */
   2447     RECOMP_REGS_OUT();
   2448 }
   2449 
   2450 void sub_470676F0(void) {
   2451     int _fpu_cmp = 0;
   2452     uint32_t _cf = 0;
   2453     int _df = 1;
   2454     uint32_t _flag_k = FK_NONE;
   2455     uint32_t _flag_a = 0, _flag_b = 0;
   2456     uint32_t _itail_tgt = 0;
   2457     RECOMP_REGS_LOCALS
   2458     RECOMP_ENTER(0x470676F0u);
   2459 
   2460 L_470676F0:
   2461     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2463     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470676F0: sub ecx, dword ptr [ecx - 4] */
   2464     _flag_k = FK_CMP;
   2465     goto L_4709FEF0; /* 0x470676F3: jmp 0x4709fef0 */
   2466 L_4709FEF0:
   2467     eax = MEM32(ecx + (-0x14)); /* 0x4709FEF0: mov eax, dword ptr [ecx - 0x14] */
   2468     edx = MEM32(eax + 0xC); /* 0x4709FEF3: mov edx, dword ptr [eax + 0xc] */
   2469     eax = MEM32(edx + ecx + 0x8); /* 0x4709FEF6: mov eax, dword ptr [edx + ecx + 8] */
   2470     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FEFA: ret  */
   2471     RECOMP_REGS_OUT();
   2472 }
   2473 
   2474 void sub_47067700(void) {
   2475     int _fpu_cmp = 0;
   2476     uint32_t _cf = 0;
   2477     int _df = 1;
   2478     uint32_t _flag_k = FK_NONE;
   2479     uint32_t _flag_a = 0, _flag_b = 0;
   2480     uint32_t _itail_tgt = 0;
   2481     RECOMP_REGS_LOCALS
   2482     RECOMP_ENTER(0x47067700u);
   2483 
   2484 L_47067700:
   2485     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2487     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067700: sub ecx, dword ptr [ecx - 4] */
   2488     _flag_k = FK_CMP;
   2489     goto L_4709FF00; /* 0x47067703: jmp 0x4709ff00 */
   2490 L_4709FF00:
   2491     eax = MEM32(ecx + (-0x14)); /* 0x4709FF00: mov eax, dword ptr [ecx - 0x14] */
   2492     edx = MEM32(eax + 0xC); /* 0x4709FF03: mov edx, dword ptr [eax + 0xc] */
   2493     eax = MEM32(edx + ecx + 0x10); /* 0x4709FF06: mov eax, dword ptr [edx + ecx + 0x10] */
   2494     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF0A: ret  */
   2495     RECOMP_REGS_OUT();
   2496 }
   2497 
   2498 void sub_47067710(void) {
   2499     int _fpu_cmp = 0;
   2500     uint32_t _cf = 0;
   2501     int _df = 1;
   2502     uint32_t _flag_k = FK_NONE;
   2503     uint32_t _flag_a = 0, _flag_b = 0;
   2504     uint32_t _itail_tgt = 0;
   2505     RECOMP_REGS_LOCALS
   2506     RECOMP_ENTER(0x47067710u);
   2507 
   2508 L_47067710:
   2509     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2511     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067710: sub ecx, dword ptr [ecx - 4] */
   2512     _flag_k = FK_CMP;
   2513     goto L_4709FF10; /* 0x47067713: jmp 0x4709ff10 */
   2514 L_4709FF10:
   2515     eax = MEM32(ecx + (-0x14)); /* 0x4709FF10: mov eax, dword ptr [ecx - 0x14] */
   2516     edx = MEM32(eax + 0xC); /* 0x4709FF13: mov edx, dword ptr [eax + 0xc] */
   2517     eax = MEM32(edx + ecx + 0x14); /* 0x4709FF16: mov eax, dword ptr [edx + ecx + 0x14] */
   2518     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF1A: ret  */
   2519     RECOMP_REGS_OUT();
   2520 }
   2521 
   2522 void sub_47067720(void) {
   2523     int _fpu_cmp = 0;
   2524     uint32_t _cf = 0;
   2525     int _df = 1;
   2526     uint32_t _flag_k = FK_NONE;
   2527     uint32_t _flag_a = 0, _flag_b = 0;
   2528     uint32_t _itail_tgt = 0;
   2529     RECOMP_REGS_LOCALS
   2530     RECOMP_ENTER(0x47067720u);
   2531 
   2532 L_47067720:
   2533     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2535     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067720: sub ecx, dword ptr [ecx - 4] */
   2536     _flag_k = FK_CMP;
   2537     goto L_4709FF20; /* 0x47067723: jmp 0x4709ff20 */
   2538 L_4709FF20:
   2539     eax = MEM32(ecx + (-0x14)); /* 0x4709FF20: mov eax, dword ptr [ecx - 0x14] */
   2540     edx = MEM32(eax + 0xC); /* 0x4709FF23: mov edx, dword ptr [eax + 0xc] */
   2541     eax = MEM32(edx + ecx + 0x18); /* 0x4709FF26: mov eax, dword ptr [edx + ecx + 0x18] */
   2542     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF2A: ret  */
   2543     RECOMP_REGS_OUT();
   2544 }
   2545 
   2546 void sub_47067730(void) {
   2547     int _fpu_cmp = 0;
   2548     uint32_t _cf = 0;
   2549     int _df = 1;
   2550     uint32_t _flag_k = FK_NONE;
   2551     uint32_t _flag_a = 0, _flag_b = 0;
   2552     uint32_t _itail_tgt = 0;
   2553     RECOMP_REGS_LOCALS
   2554     RECOMP_ENTER(0x47067730u);
   2555 
   2556 L_47067730:
   2557     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2558     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2559     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067730: sub ecx, dword ptr [ecx - 4] */
   2560     _flag_k = FK_CMP;
   2561     goto L_4709FF30; /* 0x47067733: jmp 0x4709ff30 */
   2562 L_4709FF30:
   2563     eax = MEM32(ecx + (-0x14)); /* 0x4709FF30: mov eax, dword ptr [ecx - 0x14] */
   2564     edx = MEM32(eax + 0xC); /* 0x4709FF33: mov edx, dword ptr [eax + 0xc] */
   2565     eax = MEM32(edx + ecx + (-0x4)); /* 0x4709FF36: mov eax, dword ptr [edx + ecx - 4] */
   2566     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF3A: ret  */
   2567     RECOMP_REGS_OUT();
   2568 }
   2569 
   2570 void sub_47067740(void) {
   2571     int _fpu_cmp = 0;
   2572     uint32_t _cf = 0;
   2573     int _df = 1;
   2574     uint32_t _flag_k = FK_NONE;
   2575     uint32_t _flag_a = 0, _flag_b = 0;
   2576     uint32_t _itail_tgt = 0;
   2577     RECOMP_REGS_LOCALS
   2578     RECOMP_ENTER(0x47067740u);
   2579 
   2580 L_47067740:
   2581     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2583     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067740: sub ecx, dword ptr [ecx - 4] */
   2584     _flag_k = FK_CMP;
   2585     goto L_4709FF40; /* 0x47067743: jmp 0x4709ff40 */
   2586 L_4709FF40:
   2587     eax = MEM32(ecx + (-0x14)); /* 0x4709FF40: mov eax, dword ptr [ecx - 0x14] */
   2588     edx = MEM32(eax + 0xC); /* 0x4709FF43: mov edx, dword ptr [eax + 0xc] */
   2589     eax = MEM32(edx + ecx + (-0xC)); /* 0x4709FF46: mov eax, dword ptr [edx + ecx - 0xc] */
   2590     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF4A: ret  */
   2591     RECOMP_REGS_OUT();
   2592 }
   2593 
   2594 void sub_47067750(void) {
   2595     int _fpu_cmp = 0;
   2596     uint32_t _cf = 0;
   2597     int _df = 1;
   2598     uint32_t _flag_k = FK_NONE;
   2599     uint32_t _flag_a = 0, _flag_b = 0;
   2600     uint32_t _itail_tgt = 0;
   2601     RECOMP_REGS_LOCALS
   2602     RECOMP_ENTER(0x47067750u);
   2603 
   2604 L_47067750:
   2605     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2607     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067750: sub ecx, dword ptr [ecx - 4] */
   2608     _flag_k = FK_CMP;
   2609     goto L_4709FF50; /* 0x47067753: jmp 0x4709ff50 */
   2610 L_4709FF50:
   2611     eax = MEM32(ecx + (-0x14)); /* 0x4709FF50: mov eax, dword ptr [ecx - 0x14] */
   2612     edx = MEM32(eax + 0xC); /* 0x4709FF53: mov edx, dword ptr [eax + 0xc] */
   2613     eax = MEM32(edx + ecx + (-0x8)); /* 0x4709FF56: mov eax, dword ptr [edx + ecx - 8] */
   2614     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF5A: ret  */
   2615     RECOMP_REGS_OUT();
   2616 }
   2617 
   2618 void sub_47067760(void) {
   2619     int _fpu_cmp = 0;
   2620     uint32_t _cf = 0;
   2621     int _df = 1;
   2622     uint32_t _flag_k = FK_NONE;
   2623     uint32_t _flag_a = 0, _flag_b = 0;
   2624     uint32_t _itail_tgt = 0;
   2625     RECOMP_REGS_LOCALS
   2626     RECOMP_ENTER(0x47067760u);
   2627 
   2628 L_47067760:
   2629     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2631     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067760: sub ecx, dword ptr [ecx - 4] */
   2632     _flag_k = FK_CMP;
   2633     goto L_4709FF60; /* 0x47067763: jmp 0x4709ff60 */
   2634 L_4709FF60:
   2635     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
   2636     RECOMP_FLAGS_IN();
   2637     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
   2638     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2639     eax = 0; /* 0x4709FF6C: xor eax, eax */
   2640     _cf = 0;
   2641     _flag_k = FK_TEST;
   2642     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
   2643     RECOMP_REGS_OUT();
   2644 }
   2645 
   2646 void sub_47067770(void) {
   2647     int _fpu_cmp = 0;
   2648     uint32_t _cf = 0;
   2649     int _df = 1;
   2650     uint32_t _flag_k = FK_NONE;
   2651     uint32_t _flag_a = 0, _flag_b = 0;
   2652     uint32_t _itail_tgt = 0;
   2653     RECOMP_REGS_LOCALS
   2654     RECOMP_ENTER(0x47067770u);
   2655 
   2656 L_47067770:
   2657     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2658     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2659     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067770: sub ecx, dword ptr [ecx - 4] */
   2660     _flag_k = FK_CMP;
   2661     goto L_4709FF60; /* 0x47067773: jmp 0x4709ff60 */
   2662 L_4709FF60:
   2663     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
   2664     RECOMP_FLAGS_IN();
   2665     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
   2666     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2667     eax = 0; /* 0x4709FF6C: xor eax, eax */
   2668     _cf = 0;
   2669     _flag_k = FK_TEST;
   2670     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
   2671     RECOMP_REGS_OUT();
   2672 }
   2673 
   2674 void sub_47067780(void) {
   2675     int _fpu_cmp = 0;
   2676     uint32_t _cf = 0;
   2677     int _df = 1;
   2678     uint32_t _flag_k = FK_NONE;
   2679     uint32_t _flag_a = 0, _flag_b = 0;
   2680     uint32_t _itail_tgt = 0;
   2681     RECOMP_REGS_LOCALS
   2682     RECOMP_ENTER(0x47067780u);
   2683 
   2684 L_47067780:
   2685     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2687     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067780: sub ecx, dword ptr [ecx - 4] */
   2688     _flag_k = FK_CMP;
   2689     goto L_4709FDF0; /* 0x47067783: jmp 0x4709fdf0 */
   2690 L_4709FDF0:
   2691     eax = MEM32(FS_BASE + (0)); /* 0x4709FDF0: mov eax, dword ptr fs:[0] */
   2692     PUSH32(esp, 0xFFFFFFFFu); /* 0x4709FDF6: push -1 */
   2693     PUSH32(esp, 0x470ABB68u); /* 0x4709FDF8: push 0x470abb68 */
   2694     PUSH32(esp, eax); /* 0x4709FDFD: push eax */
   2695     MEM32(FS_BASE + (0)) = esp; /* 0x4709FDFE: mov dword ptr fs:[0], esp */
   2696     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2698     esp = esp - 0xCu; /* 0x4709FE05: sub esp, 0xc */
   2699     _flag_k = FK_CMP;
   2700     PUSH32(esp, esi); /* 0x4709FE08: push esi */
   2701     esi = ecx; /* 0x4709FE09: mov esi, ecx */
   2702     eax = MEM32(esi + (-0x14)); /* 0x4709FE0B: mov eax, dword ptr [esi - 0x14] */
   2703     edx = MEM32(eax + 0xC); /* 0x4709FE0E: mov edx, dword ptr [eax + 0xc] */
   2704     ecx = MEM32(esp + 0x20); /* 0x4709FE11: mov ecx, dword ptr [esp + 0x20] */
   2705     MEM32(edx + esi + 0xC) = ecx; /* 0x4709FE15: mov dword ptr [edx + esi + 0xc], ecx */
   2706     eax = MEM32(esi + (-0x14)); /* 0x4709FE19: mov eax, dword ptr [esi - 0x14] */
   2707     edx = MEM32(eax + 0xC); /* 0x4709FE1C: mov edx, dword ptr [eax + 0xc] */
   2708     eax = MEM32(esp + 0x24); /* 0x4709FE1F: mov eax, dword ptr [esp + 0x24] */
   2709     MEM32(edx + esi + 0x10) = eax; /* 0x4709FE23: mov dword ptr [edx + esi + 0x10], eax */
   2710     edx = MEM32(esi + (-0x14)); /* 0x4709FE27: mov edx, dword ptr [esi - 0x14] */
   2711     eax = MEM32(edx + 0xC); /* 0x4709FE2A: mov eax, dword ptr [edx + 0xc] */
   2712     edx = MEM32(esp + 0x28); /* 0x4709FE2D: mov edx, dword ptr [esp + 0x28] */
   2713     MEM32(eax + esi + 0x14) = edx; /* 0x4709FE31: mov dword ptr [eax + esi + 0x14], edx */
   2714     eax = MEM32(esi + (-0x14)); /* 0x4709FE35: mov eax, dword ptr [esi - 0x14] */
   2715     edx = MEM32(eax + 0xC); /* 0x4709FE38: mov edx, dword ptr [eax + 0xc] */
   2716     eax = MEM32(esp + 0x2C); /* 0x4709FE3B: mov eax, dword ptr [esp + 0x2c] */
   2717     MEM32(edx + esi + 0x18) = eax; /* 0x4709FE3F: mov dword ptr [edx + esi + 0x18], eax */
   2718     eax = MEM32(esi + (-0xC)); /* 0x4709FE43: mov eax, dword ptr [esi - 0xc] */
   2719     edx = MEM32(eax + 0x8); /* 0x4709FE46: mov edx, dword ptr [eax + 8] */
   2720     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2721     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2722     edx = edx + ecx; /* 0x4709FE49: add edx, ecx */
   2723     _flag_k = FK_ADD;
   2724     ecx = esi + (-0x14); /* 0x4709FE4B: lea ecx, [esi - 0x14] */
   2725     /* test ecx, ecx */ /* 0x4709FE4E: test ecx, ecx */
   2726     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2727     _cf = 0;
   2728     _flag_k = FK_TEST;
   2729     MEM32(eax + 0x8) = edx; /* 0x4709FE50: mov dword ptr [eax + 8], edx */
   2730     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709FE59; /* 0x4709FE53: jne 0x4709fe59 */
   2731 L_4709FE55:
   2732     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2733     eax = 0; /* 0x4709FE55: xor eax, eax */
   2734     _cf = 0;
   2735     _flag_k = FK_TEST;
   2736     goto L_4709FE63; /* 0x4709FE57: jmp 0x4709fe63 */
   2737 L_4709FE59:
   2738     edx = MEM32(esi + (-0x14)); /* 0x4709FE59: mov edx, dword ptr [esi - 0x14] */
   2739     eax = MEM32(edx + 0x8); /* 0x4709FE5C: mov eax, dword ptr [edx + 8] */
   2740     eax = eax + esi + (-0x14); /* 0x4709FE5F: lea eax, [eax + esi - 0x14] */
   2741 L_4709FE63:
   2742     PUSH32(esp, eax); /* 0x4709FE63: push eax */
   2743     ecx = esp + 0x8; /* 0x4709FE64: lea ecx, [esp + 8] */
   2744     RECOMP_ICALL(0x47017CA0u); /* 0x4709FE68: call 0x47017ca0 */ /* not lifted */
   2745     RECOMP_FLAGS_IN();
   2746     ecx = MEM32(esi + (-0x14)); /* 0x4709FE6D: mov ecx, dword ptr [esi - 0x14] */
   2747     edx = MEM32(ecx + 0xC); /* 0x4709FE70: mov edx, dword ptr [ecx + 0xc] */
   2748     ecx = MEM32(edx + esi + 0x4); /* 0x4709FE73: mov ecx, dword ptr [edx + esi + 4] */
   2749     eax = MEM32(ecx); /* 0x4709FE77: mov eax, dword ptr [ecx] */
   2750     edx = esp + 0x4; /* 0x4709FE79: lea edx, [esp + 4] */
   2751     PUSH32(esp, edx); /* 0x4709FE7D: push edx */
   2752     MEM32(esp + 0x1C) = 0; /* 0x4709FE7E: mov dword ptr [esp + 0x1c], 0 */
   2753     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4709FE86: call dword ptr [eax + 4] */
   2754     RECOMP_FLAGS_IN();
   2755     ecx = esp + 0x4; /* 0x4709FE89: lea ecx, [esp + 4] */
   2756     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x4709FE8D: mov dword ptr [esp + 0x18], 0xffffffff */
   2757     RECOMP_ICALL(0x47017E00u); /* 0x4709FE95: call 0x47017e00 */ /* not lifted */
   2758     RECOMP_FLAGS_IN();
   2759     ecx = MEM32(esp + 0x10); /* 0x4709FE9A: mov ecx, dword ptr [esp + 0x10] */
   2760     esi = POP32_VAL(esp); /* 0x4709FE9E: pop esi */
   2761     MEM32(FS_BASE + (0)) = ecx; /* 0x4709FE9F: mov dword ptr fs:[0], ecx */
   2762     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2763     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2764     esp = esp + 0x18u; /* 0x4709FEA6: add esp, 0x18 */
   2765     _flag_k = FK_ADD;
   2766     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4709FEA9: ret 0x10 */
   2767     RECOMP_REGS_OUT();
   2768 }
   2769 
   2770 void sub_47067790(void) {
   2771     int _fpu_cmp = 0;
   2772     uint32_t _cf = 0;
   2773     int _df = 1;
   2774     uint32_t _flag_k = FK_NONE;
   2775     uint32_t _flag_a = 0, _flag_b = 0;
   2776     uint32_t _itail_tgt = 0;
   2777     RECOMP_REGS_LOCALS
   2778     RECOMP_ENTER(0x47067790u);
   2779 
   2780 L_47067790:
   2781     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2783     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067790: sub ecx, dword ptr [ecx - 4] */
   2784     _flag_k = FK_CMP;
   2785     goto L_4709FF70; /* 0x47067793: jmp 0x4709ff70 */
   2786 L_4709FF70:
   2787     eax = MEM32(ecx + (-0x14)); /* 0x4709FF70: mov eax, dword ptr [ecx - 0x14] */
   2788     edx = MEM32(eax + 0xC); /* 0x4709FF73: mov edx, dword ptr [eax + 0xc] */
   2789     eax = edx + ecx + 0x20; /* 0x4709FF76: lea eax, [edx + ecx + 0x20] */
   2790     ecx = MEM32(esp + 0x4); /* 0x4709FF7A: mov ecx, dword ptr [esp + 4] */
   2791     /* test ecx, ecx */ /* 0x4709FF7E: test ecx, ecx */
   2792     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2793     _cf = 0;
   2794     _flag_k = FK_TEST;
   2795     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709FFE5; /* 0x4709FF80: jne 0x4709ffe5 */
   2796 L_4709FF82:
   2797     PUSH32(esp, esi); /* 0x4709FF82: push esi */
   2798     PUSH32(esp, edi); /* 0x4709FF83: push edi */
   2799     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709FF84: call dword ptr [0x470ac150] */
   2800     RECOMP_FLAGS_IN();
   2801     edi = eax; /* 0x4709FF8A: mov edi, eax */
   2802     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF8C: call dword ptr [0x470ac3c8] */
   2803     RECOMP_FLAGS_IN();
   2804     eax = MEM32(eax); /* 0x4709FF92: mov eax, dword ptr [eax] */
   2805     /* test eax, eax */ /* 0x4709FF94: test eax, eax */
   2806     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2807     _cf = 0;
   2808     _flag_k = FK_TEST;
   2809     if (TEST_Z(_flag_a, _flag_b)) goto L_4709FF9A; /* 0x4709FF96: je 0x4709ff9a */
   2810 L_4709FF98:
   2811     edi = eax; /* 0x4709FF98: mov edi, eax */
   2812 L_4709FF9A:
   2813     RECOMP_ICALL(0x47039020u); /* 0x4709FF9A: call 0x47039020 */ /* not lifted */
   2814     RECOMP_FLAGS_IN();
   2815     esi = eax; /* 0x4709FF9F: mov esi, eax */
   2816     ecx = esi; /* 0x4709FFA1: mov ecx, esi */
   2817     RECOMP_ICALL(0x4703B210u); /* 0x4709FFA3: call 0x4703b210 */ /* not lifted */
   2818     RECOMP_FLAGS_IN();
   2819     PUSH32(esp, eax); /* 0x4709FFA8: push eax */
   2820     ecx = esi; /* 0x4709FFA9: mov ecx, esi */
   2821     RECOMP_ICALL(0x4703B240u); /* 0x4709FFAB: call 0x4703b240 */ /* not lifted */
   2822     RECOMP_FLAGS_IN();
   2823     PUSH32(esp, eax); /* 0x4709FFB0: push eax */
   2824     ecx = esi; /* 0x4709FFB1: mov ecx, esi */
   2825     RECOMP_ICALL(0x4703B080u); /* 0x4709FFB3: call 0x4703b080 */ /* not lifted */
   2826     RECOMP_FLAGS_IN();
   2827     PUSH32(esp, eax); /* 0x4709FFB8: push eax */
   2828     PUSH32(esp, edi); /* 0x4709FFB9: push edi */
   2829     PUSH32(esp, 0xFFFFFFFFu); /* 0x4709FFBA: push -1 */
   2830     PUSH32(esp, 0x5Bu); /* 0x4709FFBC: push 0x5b */
   2831     PUSH32(esp, 0x4710DB30u); /* 0x4709FFBE: push 0x4710db30 */
   2832     ecx = esi; /* 0x4709FFC3: mov ecx, esi */
   2833     RECOMP_ICALL(0x4703A340u); /* 0x4709FFC5: call 0x4703a340 */ /* not lifted */
   2834     RECOMP_FLAGS_IN();
   2835     PUSH32(esp, 0x4710DB08u); /* 0x4709FFCA: push 0x4710db08 */
   2836     PUSH32(esp, 0x80u); /* 0x4709FFCF: push 0x80 */
   2837     PUSH32(esp, esi); /* 0x4709FFD4: push esi */
   2838     RECOMP_ICALL(0x47039830u); /* 0x4709FFD5: call 0x47039830 */ /* not lifted */
   2839     RECOMP_FLAGS_IN();
   2840     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2841     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2842     esp = esp + 0xCu; /* 0x4709FFDA: add esp, 0xc */
   2843     _flag_k = FK_ADD;
   2844     edi = POP32_VAL(esp); /* 0x4709FFDD: pop edi */
   2845     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2846     eax = eax | 0xFFFFFFFFu; /* 0x4709FFDE: or eax, 0xffffffff */
   2847     _cf = 0;
   2848     _flag_k = FK_TEST;
   2849     esi = POP32_VAL(esp); /* 0x4709FFE1: pop esi */
   2850     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709FFE2: ret 4 */
   2851 L_4709FFE5:
   2852     edx = MEM32(ecx); /* 0x4709FFE5: mov edx, dword ptr [ecx] */
   2853     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFCCu);
   2854     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2855     eax = eax + 0xFFFFFFCCu; /* 0x4709FFE7: add eax, -0x34 */
   2856     _flag_k = FK_ADD;
   2857     PUSH32(esp, eax); /* 0x4709FFEA: push eax */
   2858     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x4709FFEB: call dword ptr [edx + 0x9c] */
   2859     RECOMP_FLAGS_IN();
   2860     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709FFF1: ret 4 */
   2861     RECOMP_REGS_OUT();
   2862 }
   2863 
   2864 void sub_470677A0(void) {
   2865     int _fpu_cmp = 0;
   2866     uint32_t _cf = 0;
   2867     int _df = 1;
   2868     uint32_t _flag_k = FK_NONE;
   2869     uint32_t _flag_a = 0, _flag_b = 0;
   2870     uint32_t _itail_tgt = 0;
   2871     RECOMP_REGS_LOCALS
   2872     RECOMP_ENTER(0x470677A0u);
   2873 
   2874 L_470677A0:
   2875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2877     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470677A0: sub ecx, dword ptr [ecx - 4] */
   2878     _flag_k = FK_CMP;
   2879     goto L_4709FD10; /* 0x470677A3: jmp 0x4709fd10 */
   2880 L_4709FD10:
   2881     eax = MEM32(ecx + (-0x18)); /* 0x4709FD10: mov eax, dword ptr [ecx - 0x18] */
   2882     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD13: ret  */
   2883     RECOMP_REGS_OUT();
   2884 }
   2885 
   2886 void sub_470677B0(void) {
   2887     int _fpu_cmp = 0;
   2888     uint32_t _cf = 0;
   2889     int _df = 1;
   2890     uint32_t _flag_k = FK_NONE;
   2891     uint32_t _flag_a = 0, _flag_b = 0;
   2892     uint32_t _itail_tgt = 0;
   2893     RECOMP_REGS_LOCALS
   2894     RECOMP_ENTER(0x470677B0u);
   2895 
   2896 L_470677B0:
   2897     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2899     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470677B0: sub ecx, dword ptr [ecx - 4] */
   2900     _flag_k = FK_CMP;
   2901     goto L_4709FD20; /* 0x470677B3: jmp 0x4709fd20 */
   2902 L_4709FD20:
   2903     eax = MEM32(ecx + (-0x14)); /* 0x4709FD20: mov eax, dword ptr [ecx - 0x14] */
   2904     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD23: ret  */
   2905     RECOMP_REGS_OUT();
   2906 }
   2907 
   2908 void sub_470677C0(void) {
   2909     int _fpu_cmp = 0;
   2910     uint32_t _cf = 0;
   2911     int _df = 1;
   2912     uint32_t _flag_k = FK_NONE;
   2913     uint32_t _flag_a = 0, _flag_b = 0;
   2914     uint32_t _itail_tgt = 0;
   2915     RECOMP_REGS_LOCALS
   2916     RECOMP_ENTER(0x470677C0u);
   2917 
   2918     goto L_470677C0;
   2919 L_47063590:
   2920     PUSH32(esp, ebx); /* 0x47063590: push ebx */
   2921     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47063591: mov bl, byte ptr [esp + 8] */
   2922     /* test LO8(ebx), 2 */ /* 0x47063595: test bl, 2 */
   2923     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   2924     _cf = 0;
   2925     _flag_k = FK_NARROW(FK_TEST, 24);
   2926     PUSH32(esp, esi); /* 0x47063598: push esi */
   2927     if (TEST_Z(_flag_a, _flag_b)) goto L_470635C7; /* 0x47063599: je 0x470635c7 */
   2928 L_4706359B:
   2929     eax = MEM32(ecx + (-0x1C)); /* 0x4706359B: mov eax, dword ptr [ecx - 0x1c] */
   2930     esi = ecx + (-0x1C); /* 0x4706359E: lea esi, [ecx - 0x1c] */
   2931     PUSH32(esp, 0x47063570u); /* 0x470635A1: push 0x47063570 */
   2932     PUSH32(esp, eax); /* 0x470635A6: push eax */
   2933     PUSH32(esp, 0x28u); /* 0x470635A7: push 0x28 */
   2934     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u);
   2935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2936     ecx = ecx + 0xFFFFFFE8u; /* 0x470635A9: add ecx, -0x18 */
   2937     _flag_k = FK_ADD;
   2938     PUSH32(esp, ecx); /* 0x470635AC: push ecx */
   2939     RECOMP_ICALL(0x470A32EBu); /* 0x470635AD: call 0x470a32eb */ /* not lifted */
   2940     RECOMP_FLAGS_IN();
   2941     /* test LO8(ebx), 1 */ /* 0x470635B2: test bl, 1 */
   2942     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2943     _cf = 0;
   2944     _flag_k = FK_NARROW(FK_TEST, 24);
   2945     if (TEST_Z(_flag_a, _flag_b)) goto L_470635F3; /* 0x470635B5: je 0x470635f3 */
   2946 L_470635B7:
   2947     PUSH32(esp, esi); /* 0x470635B7: push esi */
   2948     RECOMP_ICALL(0x470A32A2u); /* 0x470635B8: call 0x470a32a2 */ /* not lifted */
   2949     RECOMP_FLAGS_IN();
   2950     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2951     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2952     esp = esp + 4; /* 0x470635BD: add esp, 4 */
   2953     _flag_k = FK_ADD;
   2954     eax = esi; /* 0x470635C0: mov eax, esi */
   2955     esi = POP32_VAL(esp); /* 0x470635C2: pop esi */
   2956     ebx = POP32_VAL(esp); /* 0x470635C3: pop ebx */
   2957     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470635C4: ret 4 */
   2958 L_470635C7:
   2959     esi = ecx + (-0x18); /* 0x470635C7: lea esi, [ecx - 0x18] */
   2960     PUSH32(esp, edi); /* 0x470635CA: push edi */
   2961     edi = esi + 0x18; /* 0x470635CB: lea edi, [esi + 0x18] */
   2962     ecx = edi; /* 0x470635CE: mov ecx, edi */
   2963     RECOMP_ICALL(0x470A1D30u); /* 0x470635D0: call 0x470a1d30 */ /* not lifted */
   2964     RECOMP_FLAGS_IN();
   2965     ecx = esi + 0x28; /* 0x470635D5: lea ecx, [esi + 0x28] */
   2966     RECOMP_ICALL(0x470188C0u); /* 0x470635D8: call 0x470188c0 */ /* not lifted */
   2967     RECOMP_FLAGS_IN();
   2968     ecx = edi; /* 0x470635DD: mov ecx, edi */
   2969     RECOMP_ICALL(0x47018750u); /* 0x470635DF: call 0x47018750 */ /* not lifted */
   2970     RECOMP_FLAGS_IN();
   2971     /* test LO8(ebx), 1 */ /* 0x470635E4: test bl, 1 */
   2972     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2973     _cf = 0;
   2974     _flag_k = FK_NARROW(FK_TEST, 24);
   2975     edi = POP32_VAL(esp); /* 0x470635E7: pop edi */
   2976     if (TEST_Z(_flag_a, _flag_b)) goto L_470635F3; /* 0x470635E8: je 0x470635f3 */
   2977 L_470635EA:
   2978     PUSH32(esp, esi); /* 0x470635EA: push esi */
   2979     RECOMP_ICALL(0x470A32A2u); /* 0x470635EB: call 0x470a32a2 */ /* not lifted */
   2980     RECOMP_FLAGS_IN();
   2981     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2982     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2983     esp = esp + 4; /* 0x470635F0: add esp, 4 */
   2984     _flag_k = FK_ADD;
   2985 L_470635F3:
   2986     eax = esi; /* 0x470635F3: mov eax, esi */
   2987     esi = POP32_VAL(esp); /* 0x470635F5: pop esi */
   2988     ebx = POP32_VAL(esp); /* 0x470635F6: pop ebx */
   2989     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470635F7: ret 4 */
   2990 L_470677C0:
   2991     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   2992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2993     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470677C0: sub ecx, dword ptr [ecx - 4] */
   2994     _flag_k = FK_CMP;
   2995     RECOMP_BACKEDGE();
   2996     goto L_47063590; /* 0x470677C3: jmp 0x47063590 */
   2997     { RECOMP_REGS_OUT(); return; } /* end of function */
   2998     RECOMP_REGS_OUT();
   2999 }
   3000 
   3001 void sub_470677D0(void) {
   3002     int _fpu_cmp = 0;
   3003     uint32_t _cf = 0;
   3004     int _df = 1;
   3005     uint32_t _flag_k = FK_NONE;
   3006     uint32_t _flag_a = 0, _flag_b = 0;
   3007     uint32_t _itail_tgt = 0;
   3008     RECOMP_REGS_LOCALS
   3009     RECOMP_ENTER(0x470677D0u);
   3010 
   3011 L_470677D0:
   3012     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3014     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470677D0: sub ecx, dword ptr [ecx - 4] */
   3015     _flag_k = FK_CMP;
   3016     goto L_470A1D90; /* 0x470677D3: jmp 0x470a1d90 */
   3017 L_470A1D90:
   3018     eax = MEM32(esp + 0x10); /* 0x470A1D90: mov eax, dword ptr [esp + 0x10] */
   3019     PUSH32(esp, esi); /* 0x470A1D94: push esi */
   3020     esi = ecx; /* 0x470A1D95: mov esi, ecx */
   3021     ecx = MEM32(esp + 0x8); /* 0x470A1D97: mov ecx, dword ptr [esp + 8] */
   3022     MEM32(esi + (-0x10)) = eax; /* 0x470A1D9B: mov dword ptr [esi - 0x10], eax */
   3023     eax = MEM32(esp + 0xC); /* 0x470A1D9E: mov eax, dword ptr [esp + 0xc] */
   3024     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DA2: cmp eax, -1 */
   3025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3027     _flag_k = FK_CMP;
   3028     MEM32(esi + (-0xC)) = ecx; /* 0x470A1DA5: mov dword ptr [esi - 0xc], ecx */
   3029     MEM32(esi + (-0x8)) = eax; /* 0x470A1DA8: mov dword ptr [esi - 8], eax */
   3030     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DB8; /* 0x470A1DAB: jne 0x470a1db8 */
   3031 L_470A1DAD:
   3032     ecx = MEM32(esi + (-0xC)); /* 0x470A1DAD: mov ecx, dword ptr [esi - 0xc] */
   3033     edx = MEM32(ecx); /* 0x470A1DB0: mov edx, dword ptr [ecx] */
   3034     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x470A1DB2: call dword ptr [edx + 0x24] */
   3035     RECOMP_FLAGS_IN();
   3036     MEM32(esi + (-0x8)) = eax; /* 0x470A1DB5: mov dword ptr [esi - 8], eax */
   3037 L_470A1DB8:
   3038     eax = MEM32(esi + (-0x8)); /* 0x470A1DB8: mov eax, dword ptr [esi - 8] */
   3039     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DBB: cmp eax, -1 */
   3040     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3042     _flag_k = FK_CMP;
   3043     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DC6; /* 0x470A1DBE: jne 0x470a1dc6 */
   3044 L_470A1DC0:
   3045     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   3046     eax = eax | eax; /* 0x470A1DC0: or eax, eax */
   3047     _cf = 0;
   3048     _flag_k = FK_TEST;
   3049     esi = POP32_VAL(esp); /* 0x470A1DC2: pop esi */
   3050     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DC3: ret 0x10 */
   3051 L_470A1DC6:
   3052     ecx = MEM32(esi + (-0x14)); /* 0x470A1DC6: mov ecx, dword ptr [esi - 0x14] */
   3053     esi = MEM32(esp + 0x10); /* 0x470A1DC9: mov esi, dword ptr [esp + 0x10] */
   3054     edx = MEM32(ecx); /* 0x470A1DCD: mov edx, dword ptr [ecx] */
   3055     PUSH32(esp, esi); /* 0x470A1DCF: push esi */
   3056     PUSH32(esp, eax); /* 0x470A1DD0: push eax */
   3057     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x470A1DD1: call dword ptr [edx + 0x44] */
   3058     RECOMP_FLAGS_IN();
   3059     esi = POP32_VAL(esp); /* 0x470A1DD4: pop esi */
   3060     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DD5: ret 0x10 */
   3061     RECOMP_REGS_OUT();
   3062 }
   3063 
   3064 void sub_470677E0(void) {
   3065     int _fpu_cmp = 0;
   3066     uint32_t _cf = 0;
   3067     int _df = 1;
   3068     uint32_t _flag_k = FK_NONE;
   3069     uint32_t _flag_a = 0, _flag_b = 0;
   3070     uint32_t _itail_tgt = 0;
   3071     RECOMP_REGS_LOCALS
   3072     RECOMP_ENTER(0x470677E0u);
   3073 
   3074     goto L_470677E0;
   3075 L_4700E9B0:
   3076     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4700E9B0: call dword ptr [0x470ac3c8] */
   3077     RECOMP_FLAGS_IN();
   3078     MEM32(eax) = 0x28u; /* 0x4700E9B6: mov dword ptr [eax], 0x28 */
   3079     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3080     eax = eax | 0xFFFFFFFFu; /* 0x4700E9BC: or eax, 0xffffffff */
   3081     _cf = 0;
   3082     _flag_k = FK_TEST;
   3083     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700E9BF: ret  */
   3084 L_470677E0:
   3085     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3087     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470677E0: sub ecx, dword ptr [ecx - 4] */
   3088     _flag_k = FK_CMP;
   3089     RECOMP_BACKEDGE();
   3090     goto L_4700E9B0; /* 0x470677E3: jmp 0x4700e9b0 */
   3091     { RECOMP_REGS_OUT(); return; } /* end of function */
   3092     RECOMP_REGS_OUT();
   3093 }
   3094 
   3095 void sub_470677F0(void) {
   3096     int _fpu_cmp = 0;
   3097     uint32_t _cf = 0;
   3098     int _df = 1;
   3099     uint32_t _flag_k = FK_NONE;
   3100     uint32_t _flag_a = 0, _flag_b = 0;
   3101     uint32_t _itail_tgt = 0;
   3102     RECOMP_REGS_LOCALS
   3103     RECOMP_ENTER(0x470677F0u);
   3104 
   3105 L_470677F0:
   3106     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3108     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470677F0: sub ecx, dword ptr [ecx - 4] */
   3109     _flag_k = FK_CMP;
   3110     goto L_4709FB30; /* 0x470677F3: jmp 0x4709fb30 */
   3111 L_4709FB30:
   3112     eax = MEM32(ecx + (-0x10)); /* 0x4709FB30: mov eax, dword ptr [ecx - 0x10] */
   3113     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB33: ret  */
   3114     RECOMP_REGS_OUT();
   3115 }
   3116 
   3117 void sub_47067800(void) {
   3118     int _fpu_cmp = 0;
   3119     uint32_t _cf = 0;
   3120     int _df = 1;
   3121     uint32_t _flag_k = FK_NONE;
   3122     uint32_t _flag_a = 0, _flag_b = 0;
   3123     uint32_t _itail_tgt = 0;
   3124     RECOMP_REGS_LOCALS
   3125     RECOMP_ENTER(0x47067800u);
   3126 
   3127 L_47067800:
   3128     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3130     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067800: sub ecx, dword ptr [ecx - 4] */
   3131     _flag_k = FK_CMP;
   3132     goto L_470A1B30; /* 0x47067803: jmp 0x470a1b30 */
   3133 L_470A1B30:
   3134     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A1B30: push -1 */
   3135     PUSH32(esp, 0x470ABCCBu); /* 0x470A1B32: push 0x470abccb */
   3136     eax = MEM32(FS_BASE + (0)); /* 0x470A1B37: mov eax, dword ptr fs:[0] */
   3137     PUSH32(esp, eax); /* 0x470A1B3D: push eax */
   3138     MEM32(FS_BASE + (0)) = esp; /* 0x470A1B3E: mov dword ptr fs:[0], esp */
   3139     PUSH32(esp, ecx); /* 0x470A1B45: push ecx */
   3140     PUSH32(esp, ebx); /* 0x470A1B46: push ebx */
   3141     PUSH32(esp, ebp); /* 0x470A1B47: push ebp */
   3142     PUSH32(esp, esi); /* 0x470A1B48: push esi */
   3143     PUSH32(esp, edi); /* 0x470A1B49: push edi */
   3144     PUSH32(esp, 0x5Cu); /* 0x470A1B4A: push 0x5c */
   3145     esi = ecx; /* 0x470A1B4C: mov esi, ecx */
   3146     RECOMP_ICALL(0x470A33F2u); /* 0x470A1B4E: call 0x470a33f2 */ /* not lifted */
   3147     RECOMP_FLAGS_IN();
   3148     edi = eax; /* 0x470A1B53: mov edi, eax */
   3149     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3150     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3151     esp = esp + 4; /* 0x470A1B55: add esp, 4 */
   3152     _flag_k = FK_ADD;
   3153     MEM32(esp + 0x10) = edi; /* 0x470A1B58: mov dword ptr [esp + 0x10], edi */
   3154     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3155     ebx = 0; /* 0x470A1B5C: xor ebx, ebx */
   3156     _cf = 0;
   3157     _flag_k = FK_TEST;
   3158     /* cmp edi, ebx */ /* 0x470A1B5E: cmp edi, ebx */
   3159     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3161     _flag_k = FK_CMP;
   3162     MEM32(esp + 0x1C) = ebx; /* 0x470A1B60: mov dword ptr [esp + 0x1c], ebx */
   3163     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A1BB6; /* 0x470A1B64: je 0x470a1bb6 */
   3164 L_470A1B66:
   3165     eax = MEM32(esp + 0x48); /* 0x470A1B66: mov eax, dword ptr [esp + 0x48] */
   3166     ecx = MEM32(esi + (-0x1C)); /* 0x470A1B6A: mov ecx, dword ptr [esi - 0x1c] */
   3167     edx = MEM32(esp + 0x44); /* 0x470A1B6D: mov edx, dword ptr [esp + 0x44] */
   3168     PUSH32(esp, 1); /* 0x470A1B71: push 1 */
   3169     PUSH32(esp, eax); /* 0x470A1B73: push eax */
   3170     eax = MEM32(ecx); /* 0x470A1B74: mov eax, dword ptr [ecx] */
   3171     PUSH32(esp, edx); /* 0x470A1B76: push edx */
   3172     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A1B77: call dword ptr [eax + 4] */
   3173     RECOMP_FLAGS_IN();
   3174     ecx = MEM32(esp + 0x4C); /* 0x470A1B7A: mov ecx, dword ptr [esp + 0x4c] */
   3175     edx = MEM32(esp + 0x48); /* 0x470A1B7E: mov edx, dword ptr [esp + 0x48] */
   3176     PUSH32(esp, eax); /* 0x470A1B82: push eax */
   3177     eax = MEM32(esp + 0x48); /* 0x470A1B83: mov eax, dword ptr [esp + 0x48] */
   3178     PUSH32(esp, ecx); /* 0x470A1B87: push ecx */
   3179     ecx = MEM32(esp + 0x48); /* 0x470A1B88: mov ecx, dword ptr [esp + 0x48] */
   3180     PUSH32(esp, edx); /* 0x470A1B8C: push edx */
   3181     edx = MEM32(esp + 0x48); /* 0x470A1B8D: mov edx, dword ptr [esp + 0x48] */
   3182     PUSH32(esp, eax); /* 0x470A1B91: push eax */
   3183     eax = MEM32(esp + 0x48); /* 0x470A1B92: mov eax, dword ptr [esp + 0x48] */
   3184     PUSH32(esp, ecx); /* 0x470A1B96: push ecx */
   3185     ecx = MEM32(esp + 0x48); /* 0x470A1B97: mov ecx, dword ptr [esp + 0x48] */
   3186     PUSH32(esp, edx); /* 0x470A1B9B: push edx */
   3187     edx = MEM32(esp + 0x48); /* 0x470A1B9C: mov edx, dword ptr [esp + 0x48] */
   3188     PUSH32(esp, eax); /* 0x470A1BA0: push eax */
   3189     eax = MEM32(esi + (-0x10)); /* 0x470A1BA1: mov eax, dword ptr [esi - 0x10] */
   3190     PUSH32(esp, ecx); /* 0x470A1BA4: push ecx */
   3191     ecx = MEM32(esi + (-0x14)); /* 0x470A1BA5: mov ecx, dword ptr [esi - 0x14] */
   3192     PUSH32(esp, edx); /* 0x470A1BA8: push edx */
   3193     PUSH32(esp, eax); /* 0x470A1BA9: push eax */
   3194     PUSH32(esp, ecx); /* 0x470A1BAA: push ecx */
   3195     ecx = edi; /* 0x470A1BAB: mov ecx, edi */
   3196     RECOMP_ICALL(0x470A1810u); /* 0x470A1BAD: call 0x470a1810 */ /* not lifted */
   3197     RECOMP_FLAGS_IN();
   3198     esi = eax; /* 0x470A1BB2: mov esi, eax */
   3199     goto L_470A1BB8; /* 0x470A1BB4: jmp 0x470a1bb8 */
   3200 L_470A1BB6:
   3201     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3202     esi = 0; /* 0x470A1BB6: xor esi, esi */
   3203     _cf = 0;
   3204     _flag_k = FK_TEST;
   3205 L_470A1BB8:
   3206     /* cmp esi, ebx */ /* 0x470A1BB8: cmp esi, ebx */
   3207     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3209     _flag_k = FK_CMP;
   3210     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x470A1BBA: mov dword ptr [esp + 0x1c], 0xffffffff */
   3211     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1BD8; /* 0x470A1BC2: jne 0x470a1bd8 */
   3212 L_470A1BC4:
   3213     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A1BC4: call dword ptr [0x470ac3c8] */
   3214     RECOMP_FLAGS_IN();
   3215     MEM32(eax) = 0xCu; /* 0x470A1BCA: mov dword ptr [eax], 0xc */
   3216     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3217     eax = eax | 0xFFFFFFFFu; /* 0x470A1BD0: or eax, 0xffffffff */
   3218     _cf = 0;
   3219     _flag_k = FK_TEST;
   3220     goto L_470A1D10; /* 0x470A1BD3: jmp 0x470a1d10 */
   3221 L_470A1BD8:
   3222     edx = MEM32(esi + 0x14); /* 0x470A1BD8: mov edx, dword ptr [esi + 0x14] */
   3223     eax = MEM32(edx + 0x8); /* 0x470A1BDB: mov eax, dword ptr [edx + 8] */
   3224     edx = MEM32(eax + esi + 0x14); /* 0x470A1BDE: mov edx, dword ptr [eax + esi + 0x14] */
   3225     ecx = eax + esi + 0x14; /* 0x470A1BE2: lea ecx, [eax + esi + 0x14] */
   3226     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A1BE6: call dword ptr [edx + 8] */
   3227     RECOMP_FLAGS_IN();
   3228     /* test eax, eax */ /* 0x470A1BE9: test eax, eax */
   3229     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3230     _cf = 0;
   3231     _flag_k = FK_TEST;
   3232     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1C07; /* 0x470A1BEB: je 0x470a1c07 */
   3233 L_470A1BED:
   3234     eax = MEM32(esi + 0x14); /* 0x470A1BED: mov eax, dword ptr [esi + 0x14] */
   3235     ecx = MEM32(eax + 0x8); /* 0x470A1BF0: mov ecx, dword ptr [eax + 8] */
   3236     edx = MEM32(ecx + esi + 0x14); /* 0x470A1BF3: mov edx, dword ptr [ecx + esi + 0x14] */
   3237     ecx = ecx + esi + 0x14; /* 0x470A1BF7: lea ecx, [ecx + esi + 0x14] */
   3238     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470A1BFB: call dword ptr [edx + 8] */
   3239     RECOMP_FLAGS_IN();
   3240     ecx = eax; /* 0x470A1BFE: mov ecx, eax */
   3241     RECOMP_ICALL(0x470183E0u); /* 0x470A1C00: call 0x470183e0 */ /* not lifted */
   3242     RECOMP_FLAGS_IN();
   3243     ebx = eax; /* 0x470A1C05: mov ebx, eax */
   3244 L_470A1C07:
   3245     eax = MEM32(esi + 0x14); /* 0x470A1C07: mov eax, dword ptr [esi + 0x14] */
   3246     ecx = MEM32(eax + 0x8); /* 0x470A1C0A: mov ecx, dword ptr [eax + 8] */
   3247     edx = ecx + esi + 0x14; /* 0x470A1C0D: lea edx, [ecx + esi + 0x14] */
   3248     ecx = MEM32(eax + 0x8); /* 0x470A1C11: mov ecx, dword ptr [eax + 8] */
   3249     MEM32(esp + 0x48) = edx; /* 0x470A1C14: mov dword ptr [esp + 0x48], edx */
   3250     edx = ecx + esi + 0x14; /* 0x470A1C18: lea edx, [ecx + esi + 0x14] */
   3251     ecx = MEM32(eax + 0x8); /* 0x470A1C1C: mov ecx, dword ptr [eax + 8] */
   3252     MEM32(esp + 0x48) = edx; /* 0x470A1C1F: mov dword ptr [esp + 0x48], edx */
   3253     edx = ecx + esi + 0x14; /* 0x470A1C23: lea edx, [ecx + esi + 0x14] */
   3254     ecx = MEM32(eax + 0x8); /* 0x470A1C27: mov ecx, dword ptr [eax + 8] */
   3255     MEM32(esp + 0x48) = edx; /* 0x470A1C2A: mov dword ptr [esp + 0x48], edx */
   3256     edx = ecx + esi + 0x14; /* 0x470A1C2E: lea edx, [ecx + esi + 0x14] */
   3257     ecx = MEM32(eax + 0x8); /* 0x470A1C32: mov ecx, dword ptr [eax + 8] */
   3258     edi = ecx + esi + 0x14; /* 0x470A1C35: lea edi, [ecx + esi + 0x14] */
   3259     MEM32(esp + 0x48) = edx; /* 0x470A1C39: mov dword ptr [esp + 0x48], edx */
   3260     edx = MEM32(edi); /* 0x470A1C3D: mov edx, dword ptr [edi] */
   3261     ecx = edi; /* 0x470A1C3F: mov ecx, edi */
   3262     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x470A1C41: call dword ptr [edx + 0x14] */
   3263     RECOMP_FLAGS_IN();
   3264     PUSH32(esp, eax); /* 0x470A1C44: push eax */
   3265     eax = MEM32(edi); /* 0x470A1C45: mov eax, dword ptr [edi] */
   3266     PUSH32(esp, ebx); /* 0x470A1C47: push ebx */
   3267     PUSH32(esp, esi); /* 0x470A1C48: push esi */
   3268     ecx = edi; /* 0x470A1C49: mov ecx, edi */
   3269     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x470A1C4B: call dword ptr [eax + 0x10] */
   3270     RECOMP_FLAGS_IN();
   3271     edx = MEM32(edi); /* 0x470A1C4E: mov edx, dword ptr [edi] */
   3272     PUSH32(esp, eax); /* 0x470A1C50: push eax */
   3273     ecx = edi; /* 0x470A1C51: mov ecx, edi */
   3274     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470A1C53: call dword ptr [edx + 0xc] */
   3275     RECOMP_FLAGS_IN();
   3276     PUSH32(esp, eax); /* 0x470A1C56: push eax */
   3277     eax = MEM32(edi); /* 0x470A1C57: mov eax, dword ptr [edi] */
   3278     ecx = edi; /* 0x470A1C59: mov ecx, edi */
   3279     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A1C5B: call dword ptr [eax + 4] */
   3280     RECOMP_FLAGS_IN();
   3281     edx = MEM32(edi); /* 0x470A1C5E: mov edx, dword ptr [edi] */
   3282     PUSH32(esp, eax); /* 0x470A1C60: push eax */
   3283     ecx = edi; /* 0x470A1C61: mov ecx, edi */
   3284     RECOMP_ICALL(MEM32(edx)); /* 0x470A1C63: call dword ptr [edx] */
   3285     RECOMP_FLAGS_IN();
   3286     PUSH32(esp, eax); /* 0x470A1C65: push eax */
   3287     RECOMP_ICALL(0x470A329Cu); /* 0x470A1C66: call 0x470a329c */ /* not lifted */
   3288     RECOMP_FLAGS_IN();
   3289     /* cmp eax, 1 */ /* 0x470A1C6B: cmp eax, 1 */
   3290     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3292     _flag_k = FK_CMP;
   3293     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1C75; /* 0x470A1C6E: jne 0x470a1c75 */
   3294 L_470A1C70:
   3295     goto L_470A1D10; /* 0x470A1C70: jmp 0x470a1d10 */
   3296 L_470A1C75:
   3297     edi = MEM32(0x470AC3C8); /* 0x470A1C75: mov edi, dword ptr [0x470ac3c8] */
   3298     RECOMP_ICALL(edi); /* 0x470A1C7B: call edi */
   3299     RECOMP_FLAGS_IN();
   3300     ebp = MEM32(0x470AC150); /* 0x470A1C7D: mov ebp, dword ptr [0x470ac150] */
   3301     ebx = eax; /* 0x470A1C83: mov ebx, eax */
   3302     RECOMP_ICALL(ebp); /* 0x470A1C85: call ebp */
   3303     RECOMP_FLAGS_IN();
   3304     MEM32(ebx) = eax; /* 0x470A1C87: mov dword ptr [ebx], eax */
   3305     RECOMP_ICALL(edi); /* 0x470A1C89: call edi */
   3306     RECOMP_FLAGS_IN();
   3307     /* cmp MEM32(eax), 0x3E5u */ /* 0x470A1C8B: cmp dword ptr [eax], 0x3e5 */
   3308     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x3E5u);
   3309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3310     _flag_k = FK_CMP;
   3311     if (CMP_EQ(_flag_a, _flag_b)) goto L_470A1D0E; /* 0x470A1C91: je 0x470a1d0e */
   3312 L_470A1C93:
   3313     eax = MEM32(esi + 0x14); /* 0x470A1C93: mov eax, dword ptr [esi + 0x14] */
   3314     ecx = MEM32(eax + 0x4); /* 0x470A1C96: mov ecx, dword ptr [eax + 4] */
   3315     edx = MEM32(ecx + esi + 0x14); /* 0x470A1C99: mov edx, dword ptr [ecx + esi + 0x14] */
   3316     ecx = ecx + esi + 0x14; /* 0x470A1C9D: lea ecx, [ecx + esi + 0x14] */
   3317     PUSH32(esp, 1); /* 0x470A1CA1: push 1 */
   3318     RECOMP_ICALL(MEM32(edx)); /* 0x470A1CA3: call dword ptr [edx] */
   3319     RECOMP_FLAGS_IN();
   3320     SET_LO8(eax, MEM8(0x4710DE04)); /* 0x470A1CA5: mov al, byte ptr [0x4710de04] */
   3321     /* test LO8(eax), LO8(eax) */ /* 0x470A1CAA: test al, al */
   3322     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3323     _cf = 0;
   3324     _flag_k = FK_NARROW(FK_TEST, 24);
   3325     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1D09; /* 0x470A1CAC: je 0x470a1d09 */
   3326 L_470A1CAE:
   3327     RECOMP_ICALL(ebp); /* 0x470A1CAE: call ebp */
   3328     RECOMP_FLAGS_IN();
   3329     esi = eax; /* 0x470A1CB0: mov esi, eax */
   3330     RECOMP_ICALL(edi); /* 0x470A1CB2: call edi */
   3331     RECOMP_FLAGS_IN();
   3332     eax = MEM32(eax); /* 0x470A1CB4: mov eax, dword ptr [eax] */
   3333     /* test eax, eax */ /* 0x470A1CB6: test eax, eax */
   3334     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3335     _cf = 0;
   3336     _flag_k = FK_TEST;
   3337     edi = esi; /* 0x470A1CB8: mov edi, esi */
   3338     if (TEST_Z(_flag_a, _flag_b)) goto L_470A1CBE; /* 0x470A1CBA: je 0x470a1cbe */
   3339 L_470A1CBC:
   3340     edi = eax; /* 0x470A1CBC: mov edi, eax */
   3341 L_470A1CBE:
   3342     RECOMP_ICALL(0x47039020u); /* 0x470A1CBE: call 0x47039020 */ /* not lifted */
   3343     RECOMP_FLAGS_IN();
   3344     esi = eax; /* 0x470A1CC3: mov esi, eax */
   3345     ecx = esi; /* 0x470A1CC5: mov ecx, esi */
   3346     RECOMP_ICALL(0x4703B210u); /* 0x470A1CC7: call 0x4703b210 */ /* not lifted */
   3347     RECOMP_FLAGS_IN();
   3348     PUSH32(esp, eax); /* 0x470A1CCC: push eax */
   3349     ecx = esi; /* 0x470A1CCD: mov ecx, esi */
   3350     RECOMP_ICALL(0x4703B240u); /* 0x470A1CCF: call 0x4703b240 */ /* not lifted */
   3351     RECOMP_FLAGS_IN();
   3352     PUSH32(esp, eax); /* 0x470A1CD4: push eax */
   3353     ecx = esi; /* 0x470A1CD5: mov ecx, esi */
   3354     RECOMP_ICALL(0x4703B080u); /* 0x470A1CD7: call 0x4703b080 */ /* not lifted */
   3355     RECOMP_FLAGS_IN();
   3356     PUSH32(esp, eax); /* 0x470A1CDC: push eax */
   3357     PUSH32(esp, edi); /* 0x470A1CDD: push edi */
   3358     PUSH32(esp, 0); /* 0x470A1CDE: push 0 */
   3359     PUSH32(esp, 0x67Cu); /* 0x470A1CE0: push 0x67c */
   3360     PUSH32(esp, 0x4710DB30u); /* 0x470A1CE5: push 0x4710db30 */
   3361     ecx = esi; /* 0x470A1CEA: mov ecx, esi */
   3362     RECOMP_ICALL(0x4703A340u); /* 0x470A1CEC: call 0x4703a340 */ /* not lifted */
   3363     RECOMP_FLAGS_IN();
   3364     PUSH32(esp, 0x4710DBACu); /* 0x470A1CF1: push 0x4710dbac */
   3365     PUSH32(esp, 0x471055F0u); /* 0x470A1CF6: push 0x471055f0 */
   3366     PUSH32(esp, 0x80u); /* 0x470A1CFB: push 0x80 */
   3367     PUSH32(esp, esi); /* 0x470A1D00: push esi */
   3368     RECOMP_ICALL(0x47039830u); /* 0x470A1D01: call 0x47039830 */ /* not lifted */
   3369     RECOMP_FLAGS_IN();
   3370     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3371     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3372     esp = esp + 0x10u; /* 0x470A1D06: add esp, 0x10 */
   3373     _flag_k = FK_ADD;
   3374 L_470A1D09:
   3375     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3376     eax = eax | 0xFFFFFFFFu; /* 0x470A1D09: or eax, 0xffffffff */
   3377     _cf = 0;
   3378     _flag_k = FK_TEST;
   3379     goto L_470A1D10; /* 0x470A1D0C: jmp 0x470a1d10 */
   3380 L_470A1D0E:
   3381     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3382     eax = 0; /* 0x470A1D0E: xor eax, eax */
   3383     _cf = 0;
   3384     _flag_k = FK_TEST;
   3385 L_470A1D10:
   3386     ecx = MEM32(esp + 0x14); /* 0x470A1D10: mov ecx, dword ptr [esp + 0x14] */
   3387     edi = POP32_VAL(esp); /* 0x470A1D14: pop edi */
   3388     esi = POP32_VAL(esp); /* 0x470A1D15: pop esi */
   3389     ebp = POP32_VAL(esp); /* 0x470A1D16: pop ebp */
   3390     ebx = POP32_VAL(esp); /* 0x470A1D17: pop ebx */
   3391     MEM32(FS_BASE + (0)) = ecx; /* 0x470A1D18: mov dword ptr fs:[0], ecx */
   3392     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3393     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3394     esp = esp + 0x10u; /* 0x470A1D1F: add esp, 0x10 */
   3395     _flag_k = FK_ADD;
   3396     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470A1D22: ret 0x28 */
   3397     RECOMP_REGS_OUT();
   3398 }
   3399 
   3400 void sub_47067810(void) {
   3401     int _fpu_cmp = 0;
   3402     uint32_t _cf = 0;
   3403     int _df = 1;
   3404     uint32_t _flag_k = FK_NONE;
   3405     uint32_t _flag_a = 0, _flag_b = 0;
   3406     uint32_t _itail_tgt = 0;
   3407     RECOMP_REGS_LOCALS
   3408     RECOMP_ENTER(0x47067810u);
   3409 
   3410     goto L_47067810;
   3411 L_47062900:
   3412     PUSH32(esp, ebx); /* 0x47062900: push ebx */
   3413     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062901: mov bl, byte ptr [esp + 8] */
   3414     /* test LO8(ebx), 2 */ /* 0x47062905: test bl, 2 */
   3415     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3416     _cf = 0;
   3417     _flag_k = FK_NARROW(FK_TEST, 24);
   3418     PUSH32(esp, esi); /* 0x47062908: push esi */
   3419     if (TEST_Z(_flag_a, _flag_b)) goto L_47062937; /* 0x47062909: je 0x47062937 */
   3420 L_4706290B:
   3421     eax = MEM32(ecx + (-0x1C)); /* 0x4706290B: mov eax, dword ptr [ecx - 0x1c] */
   3422     esi = ecx + (-0x1C); /* 0x4706290E: lea esi, [ecx - 0x1c] */
   3423     PUSH32(esp, 0x470628E0u); /* 0x47062911: push 0x470628e0 */
   3424     PUSH32(esp, eax); /* 0x47062916: push eax */
   3425     PUSH32(esp, 0x28u); /* 0x47062917: push 0x28 */
   3426     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u);
   3427     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3428     ecx = ecx + 0xFFFFFFE8u; /* 0x47062919: add ecx, -0x18 */
   3429     _flag_k = FK_ADD;
   3430     PUSH32(esp, ecx); /* 0x4706291C: push ecx */
   3431     RECOMP_ICALL(0x470A32EBu); /* 0x4706291D: call 0x470a32eb */ /* not lifted */
   3432     RECOMP_FLAGS_IN();
   3433     /* test LO8(ebx), 1 */ /* 0x47062922: test bl, 1 */
   3434     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3435     _cf = 0;
   3436     _flag_k = FK_NARROW(FK_TEST, 24);
   3437     if (TEST_Z(_flag_a, _flag_b)) goto L_47062963; /* 0x47062925: je 0x47062963 */
   3438 L_47062927:
   3439     PUSH32(esp, esi); /* 0x47062927: push esi */
   3440     RECOMP_ICALL(0x470A32A2u); /* 0x47062928: call 0x470a32a2 */ /* not lifted */
   3441     RECOMP_FLAGS_IN();
   3442     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3443     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3444     esp = esp + 4; /* 0x4706292D: add esp, 4 */
   3445     _flag_k = FK_ADD;
   3446     eax = esi; /* 0x47062930: mov eax, esi */
   3447     esi = POP32_VAL(esp); /* 0x47062932: pop esi */
   3448     ebx = POP32_VAL(esp); /* 0x47062933: pop ebx */
   3449     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062934: ret 4 */
   3450 L_47062937:
   3451     esi = ecx + (-0x18); /* 0x47062937: lea esi, [ecx - 0x18] */
   3452     PUSH32(esp, edi); /* 0x4706293A: push edi */
   3453     edi = esi + 0x18; /* 0x4706293B: lea edi, [esi + 0x18] */
   3454     ecx = edi; /* 0x4706293E: mov ecx, edi */
   3455     RECOMP_ICALL(0x470A0640u); /* 0x47062940: call 0x470a0640 */ /* not lifted */
   3456     RECOMP_FLAGS_IN();
   3457     ecx = esi + 0x28; /* 0x47062945: lea ecx, [esi + 0x28] */
   3458     RECOMP_ICALL(0x470187A0u); /* 0x47062948: call 0x470187a0 */ /* not lifted */
   3459     RECOMP_FLAGS_IN();
   3460     ecx = edi; /* 0x4706294D: mov ecx, edi */
   3461     RECOMP_ICALL(0x47018750u); /* 0x4706294F: call 0x47018750 */ /* not lifted */
   3462     RECOMP_FLAGS_IN();
   3463     /* test LO8(ebx), 1 */ /* 0x47062954: test bl, 1 */
   3464     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3465     _cf = 0;
   3466     _flag_k = FK_NARROW(FK_TEST, 24);
   3467     edi = POP32_VAL(esp); /* 0x47062957: pop edi */
   3468     if (TEST_Z(_flag_a, _flag_b)) goto L_47062963; /* 0x47062958: je 0x47062963 */
   3469 L_4706295A:
   3470     PUSH32(esp, esi); /* 0x4706295A: push esi */
   3471     RECOMP_ICALL(0x470A32A2u); /* 0x4706295B: call 0x470a32a2 */ /* not lifted */
   3472     RECOMP_FLAGS_IN();
   3473     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3474     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3475     esp = esp + 4; /* 0x47062960: add esp, 4 */
   3476     _flag_k = FK_ADD;
   3477 L_47062963:
   3478     eax = esi; /* 0x47062963: mov eax, esi */
   3479     esi = POP32_VAL(esp); /* 0x47062965: pop esi */
   3480     ebx = POP32_VAL(esp); /* 0x47062966: pop ebx */
   3481     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062967: ret 4 */
   3482 L_47067810:
   3483     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3485     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067810: sub ecx, dword ptr [ecx - 4] */
   3486     _flag_k = FK_CMP;
   3487     RECOMP_BACKEDGE();
   3488     goto L_47062900; /* 0x47067813: jmp 0x47062900 */
   3489     { RECOMP_REGS_OUT(); return; } /* end of function */
   3490     RECOMP_REGS_OUT();
   3491 }
   3492 
   3493 void sub_47067820(void) {
   3494     int _fpu_cmp = 0;
   3495     uint32_t _cf = 0;
   3496     int _df = 1;
   3497     uint32_t _flag_k = FK_NONE;
   3498     uint32_t _flag_a = 0, _flag_b = 0;
   3499     uint32_t _itail_tgt = 0;
   3500     RECOMP_REGS_LOCALS
   3501     RECOMP_ENTER(0x47067820u);
   3502 
   3503 L_47067820:
   3504     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3506     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067820: sub ecx, dword ptr [ecx - 4] */
   3507     _flag_k = FK_CMP;
   3508     goto L_470A1D90; /* 0x47067823: jmp 0x470a1d90 */
   3509 L_470A1D90:
   3510     eax = MEM32(esp + 0x10); /* 0x470A1D90: mov eax, dword ptr [esp + 0x10] */
   3511     PUSH32(esp, esi); /* 0x470A1D94: push esi */
   3512     esi = ecx; /* 0x470A1D95: mov esi, ecx */
   3513     ecx = MEM32(esp + 0x8); /* 0x470A1D97: mov ecx, dword ptr [esp + 8] */
   3514     MEM32(esi + (-0x10)) = eax; /* 0x470A1D9B: mov dword ptr [esi - 0x10], eax */
   3515     eax = MEM32(esp + 0xC); /* 0x470A1D9E: mov eax, dword ptr [esp + 0xc] */
   3516     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DA2: cmp eax, -1 */
   3517     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3519     _flag_k = FK_CMP;
   3520     MEM32(esi + (-0xC)) = ecx; /* 0x470A1DA5: mov dword ptr [esi - 0xc], ecx */
   3521     MEM32(esi + (-0x8)) = eax; /* 0x470A1DA8: mov dword ptr [esi - 8], eax */
   3522     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DB8; /* 0x470A1DAB: jne 0x470a1db8 */
   3523 L_470A1DAD:
   3524     ecx = MEM32(esi + (-0xC)); /* 0x470A1DAD: mov ecx, dword ptr [esi - 0xc] */
   3525     edx = MEM32(ecx); /* 0x470A1DB0: mov edx, dword ptr [ecx] */
   3526     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x470A1DB2: call dword ptr [edx + 0x24] */
   3527     RECOMP_FLAGS_IN();
   3528     MEM32(esi + (-0x8)) = eax; /* 0x470A1DB5: mov dword ptr [esi - 8], eax */
   3529 L_470A1DB8:
   3530     eax = MEM32(esi + (-0x8)); /* 0x470A1DB8: mov eax, dword ptr [esi - 8] */
   3531     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DBB: cmp eax, -1 */
   3532     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3534     _flag_k = FK_CMP;
   3535     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DC6; /* 0x470A1DBE: jne 0x470a1dc6 */
   3536 L_470A1DC0:
   3537     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   3538     eax = eax | eax; /* 0x470A1DC0: or eax, eax */
   3539     _cf = 0;
   3540     _flag_k = FK_TEST;
   3541     esi = POP32_VAL(esp); /* 0x470A1DC2: pop esi */
   3542     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DC3: ret 0x10 */
   3543 L_470A1DC6:
   3544     ecx = MEM32(esi + (-0x14)); /* 0x470A1DC6: mov ecx, dword ptr [esi - 0x14] */
   3545     esi = MEM32(esp + 0x10); /* 0x470A1DC9: mov esi, dword ptr [esp + 0x10] */
   3546     edx = MEM32(ecx); /* 0x470A1DCD: mov edx, dword ptr [ecx] */
   3547     PUSH32(esp, esi); /* 0x470A1DCF: push esi */
   3548     PUSH32(esp, eax); /* 0x470A1DD0: push eax */
   3549     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x470A1DD1: call dword ptr [edx + 0x44] */
   3550     RECOMP_FLAGS_IN();
   3551     esi = POP32_VAL(esp); /* 0x470A1DD4: pop esi */
   3552     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DD5: ret 0x10 */
   3553     RECOMP_REGS_OUT();
   3554 }
   3555 
   3556 void sub_47067830(void) {
   3557     int _fpu_cmp = 0;
   3558     uint32_t _cf = 0;
   3559     int _df = 1;
   3560     uint32_t _flag_k = FK_NONE;
   3561     uint32_t _flag_a = 0, _flag_b = 0;
   3562     uint32_t _itail_tgt = 0;
   3563     RECOMP_REGS_LOCALS
   3564     RECOMP_ENTER(0x47067830u);
   3565 
   3566     goto L_47067830;
   3567 L_4700E9B0:
   3568     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4700E9B0: call dword ptr [0x470ac3c8] */
   3569     RECOMP_FLAGS_IN();
   3570     MEM32(eax) = 0x28u; /* 0x4700E9B6: mov dword ptr [eax], 0x28 */
   3571     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3572     eax = eax | 0xFFFFFFFFu; /* 0x4700E9BC: or eax, 0xffffffff */
   3573     _cf = 0;
   3574     _flag_k = FK_TEST;
   3575     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700E9BF: ret  */
   3576 L_47067830:
   3577     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3579     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067830: sub ecx, dword ptr [ecx - 4] */
   3580     _flag_k = FK_CMP;
   3581     RECOMP_BACKEDGE();
   3582     goto L_4700E9B0; /* 0x47067833: jmp 0x4700e9b0 */
   3583     { RECOMP_REGS_OUT(); return; } /* end of function */
   3584     RECOMP_REGS_OUT();
   3585 }
   3586 
   3587 void sub_47067840(void) {
   3588     int _fpu_cmp = 0;
   3589     uint32_t _cf = 0;
   3590     int _df = 1;
   3591     uint32_t _flag_k = FK_NONE;
   3592     uint32_t _flag_a = 0, _flag_b = 0;
   3593     uint32_t _itail_tgt = 0;
   3594     RECOMP_REGS_LOCALS
   3595     RECOMP_ENTER(0x47067840u);
   3596 
   3597 L_47067840:
   3598     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3600     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067840: sub ecx, dword ptr [ecx - 4] */
   3601     _flag_k = FK_CMP;
   3602     goto L_4709FB30; /* 0x47067843: jmp 0x4709fb30 */
   3603 L_4709FB30:
   3604     eax = MEM32(ecx + (-0x10)); /* 0x4709FB30: mov eax, dword ptr [ecx - 0x10] */
   3605     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB33: ret  */
   3606     RECOMP_REGS_OUT();
   3607 }
   3608 
   3609 void sub_47067850(void) {
   3610     int _fpu_cmp = 0;
   3611     uint32_t _cf = 0;
   3612     int _df = 1;
   3613     uint32_t _flag_k = FK_NONE;
   3614     uint32_t _flag_a = 0, _flag_b = 0;
   3615     uint32_t _itail_tgt = 0;
   3616     RECOMP_REGS_LOCALS
   3617     RECOMP_ENTER(0x47067850u);
   3618 
   3619 L_47067850:
   3620     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3622     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067850: sub ecx, dword ptr [ecx - 4] */
   3623     _flag_k = FK_CMP;
   3624     goto L_470A0560; /* 0x47067853: jmp 0x470a0560 */
   3625 L_470A0560:
   3626     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A0560: push -1 */
   3627     PUSH32(esp, 0x470ABBCBu); /* 0x470A0562: push 0x470abbcb */
   3628     eax = MEM32(FS_BASE + (0)); /* 0x470A0567: mov eax, dword ptr fs:[0] */
   3629     PUSH32(esp, eax); /* 0x470A056D: push eax */
   3630     MEM32(FS_BASE + (0)) = esp; /* 0x470A056E: mov dword ptr fs:[0], esp */
   3631     PUSH32(esp, ecx); /* 0x470A0575: push ecx */
   3632     PUSH32(esp, esi); /* 0x470A0576: push esi */
   3633     PUSH32(esp, edi); /* 0x470A0577: push edi */
   3634     PUSH32(esp, 0x50u); /* 0x470A0578: push 0x50 */
   3635     esi = ecx; /* 0x470A057A: mov esi, ecx */
   3636     RECOMP_ICALL(0x470A33F2u); /* 0x470A057C: call 0x470a33f2 */ /* not lifted */
   3637     RECOMP_FLAGS_IN();
   3638     edi = eax; /* 0x470A0581: mov edi, eax */
   3639     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3640     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3641     esp = esp + 4; /* 0x470A0583: add esp, 4 */
   3642     _flag_k = FK_ADD;
   3643     MEM32(esp + 0x8) = edi; /* 0x470A0586: mov dword ptr [esp + 8], edi */
   3644     /* test edi, edi */ /* 0x470A058A: test edi, edi */
   3645     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3646     _cf = 0;
   3647     _flag_k = FK_TEST;
   3648     MEM32(esp + 0x14) = 0; /* 0x470A058C: mov dword ptr [esp + 0x14], 0 */
   3649     if (TEST_Z(_flag_a, _flag_b)) goto L_470A05CD; /* 0x470A0594: je 0x470a05cd */
   3650 L_470A0596:
   3651     eax = MEM32(esp + 0x2C); /* 0x470A0596: mov eax, dword ptr [esp + 0x2c] */
   3652     ecx = MEM32(esi + (-0x1C)); /* 0x470A059A: mov ecx, dword ptr [esi - 0x1c] */
   3653     edx = MEM32(esp + 0x28); /* 0x470A059D: mov edx, dword ptr [esp + 0x28] */
   3654     PUSH32(esp, 1); /* 0x470A05A1: push 1 */
   3655     PUSH32(esp, eax); /* 0x470A05A3: push eax */
   3656     eax = MEM32(ecx); /* 0x470A05A4: mov eax, dword ptr [ecx] */
   3657     PUSH32(esp, edx); /* 0x470A05A6: push edx */
   3658     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A05A7: call dword ptr [eax + 4] */
   3659     RECOMP_FLAGS_IN();
   3660     ecx = MEM32(esp + 0x30); /* 0x470A05AA: mov ecx, dword ptr [esp + 0x30] */
   3661     edx = MEM32(esp + 0x2C); /* 0x470A05AE: mov edx, dword ptr [esp + 0x2c] */
   3662     PUSH32(esp, eax); /* 0x470A05B2: push eax */
   3663     eax = MEM32(esp + 0x2C); /* 0x470A05B3: mov eax, dword ptr [esp + 0x2c] */
   3664     PUSH32(esp, ecx); /* 0x470A05B7: push ecx */
   3665     ecx = MEM32(esi + (-0x10)); /* 0x470A05B8: mov ecx, dword ptr [esi - 0x10] */
   3666     PUSH32(esp, edx); /* 0x470A05BB: push edx */
   3667     edx = MEM32(esi + (-0x14)); /* 0x470A05BC: mov edx, dword ptr [esi - 0x14] */
   3668     PUSH32(esp, eax); /* 0x470A05BF: push eax */
   3669     PUSH32(esp, ecx); /* 0x470A05C0: push ecx */
   3670     PUSH32(esp, edx); /* 0x470A05C1: push edx */
   3671     ecx = edi; /* 0x470A05C2: mov ecx, edi */
   3672     RECOMP_ICALL(0x470A02D0u); /* 0x470A05C4: call 0x470a02d0 */ /* not lifted */
   3673     RECOMP_FLAGS_IN();
   3674     edi = eax; /* 0x470A05C9: mov edi, eax */
   3675     goto L_470A05CF; /* 0x470A05CB: jmp 0x470a05cf */
   3676 L_470A05CD:
   3677     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3678     edi = 0; /* 0x470A05CD: xor edi, edi */
   3679     _cf = 0;
   3680     _flag_k = FK_TEST;
   3681 L_470A05CF:
   3682     /* test edi, edi */ /* 0x470A05CF: test edi, edi */
   3683     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3684     _cf = 0;
   3685     _flag_k = FK_TEST;
   3686     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A05D1: mov dword ptr [esp + 0x14], 0xffffffff */
   3687     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A05FD; /* 0x470A05D9: jne 0x470a05fd */
   3688 L_470A05DB:
   3689     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A05DB: call dword ptr [0x470ac3c8] */
   3690     RECOMP_FLAGS_IN();
   3691     edi = POP32_VAL(esp); /* 0x470A05E1: pop edi */
   3692     MEM32(eax) = 0xCu; /* 0x470A05E2: mov dword ptr [eax], 0xc */
   3693     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3694     eax = eax | 0xFFFFFFFFu; /* 0x470A05E8: or eax, 0xffffffff */
   3695     _cf = 0;
   3696     _flag_k = FK_TEST;
   3697     esi = POP32_VAL(esp); /* 0x470A05EB: pop esi */
   3698     ecx = MEM32(esp + 0x4); /* 0x470A05EC: mov ecx, dword ptr [esp + 4] */
   3699     MEM32(FS_BASE + (0)) = ecx; /* 0x470A05F0: mov dword ptr fs:[0], ecx */
   3700     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3701     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3702     esp = esp + 0x10u; /* 0x470A05F7: add esp, 0x10 */
   3703     _flag_k = FK_ADD;
   3704     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A05FA: ret 0x14 */
   3705 L_470A05FD:
   3706     PUSH32(esp, edi); /* 0x470A05FD: push edi */
   3707     ecx = esi + (-0x20); /* 0x470A05FE: lea ecx, [esi - 0x20] */
   3708     RECOMP_ICALL(0x470A06A0u); /* 0x470A0601: call 0x470a06a0 */ /* not lifted */
   3709     RECOMP_FLAGS_IN();
   3710     esi = eax; /* 0x470A0606: mov esi, eax */
   3711     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0608: cmp esi, -1 */
   3712     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3714     _flag_k = FK_CMP;
   3715     if (CMP_NE(_flag_a, _flag_b)) goto L_470A061F; /* 0x470A060B: jne 0x470a061f */
   3716 L_470A060D:
   3717     eax = MEM32(edi + 0x14); /* 0x470A060D: mov eax, dword ptr [edi + 0x14] */
   3718     ecx = MEM32(eax + 0x4); /* 0x470A0610: mov ecx, dword ptr [eax + 4] */
   3719     edx = MEM32(ecx + edi + 0x14); /* 0x470A0613: mov edx, dword ptr [ecx + edi + 0x14] */
   3720     ecx = ecx + edi + 0x14; /* 0x470A0617: lea ecx, [ecx + edi + 0x14] */
   3721     PUSH32(esp, 1); /* 0x470A061B: push 1 */
   3722     RECOMP_ICALL(MEM32(edx)); /* 0x470A061D: call dword ptr [edx] */
   3723     RECOMP_FLAGS_IN();
   3724 L_470A061F:
   3725     ecx = MEM32(esp + 0xC); /* 0x470A061F: mov ecx, dword ptr [esp + 0xc] */
   3726     edi = POP32_VAL(esp); /* 0x470A0623: pop edi */
   3727     eax = esi; /* 0x470A0624: mov eax, esi */
   3728     esi = POP32_VAL(esp); /* 0x470A0626: pop esi */
   3729     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0627: mov dword ptr fs:[0], ecx */
   3730     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3732     esp = esp + 0x10u; /* 0x470A062E: add esp, 0x10 */
   3733     _flag_k = FK_ADD;
   3734     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A0631: ret 0x14 */
   3735     RECOMP_REGS_OUT();
   3736 }
   3737 
   3738 void sub_47067860(void) {
   3739     int _fpu_cmp = 0;
   3740     uint32_t _cf = 0;
   3741     int _df = 1;
   3742     uint32_t _flag_k = FK_NONE;
   3743     uint32_t _flag_a = 0, _flag_b = 0;
   3744     uint32_t _itail_tgt = 0;
   3745     RECOMP_REGS_LOCALS
   3746     RECOMP_ENTER(0x47067860u);
   3747 
   3748     goto L_47067860;
   3749 L_470636E0:
   3750     PUSH32(esp, ebx); /* 0x470636E0: push ebx */
   3751     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470636E1: mov bl, byte ptr [esp + 8] */
   3752     /* test LO8(ebx), 2 */ /* 0x470636E5: test bl, 2 */
   3753     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3754     _cf = 0;
   3755     _flag_k = FK_NARROW(FK_TEST, 24);
   3756     PUSH32(esp, esi); /* 0x470636E8: push esi */
   3757     if (TEST_Z(_flag_a, _flag_b)) goto L_47063717; /* 0x470636E9: je 0x47063717 */
   3758 L_470636EB:
   3759     eax = MEM32(ecx + (-0x40)); /* 0x470636EB: mov eax, dword ptr [ecx - 0x40] */
   3760     esi = ecx + (-0x40); /* 0x470636EE: lea esi, [ecx - 0x40] */
   3761     PUSH32(esp, 0x470636C0u); /* 0x470636F1: push 0x470636c0 */
   3762     PUSH32(esp, eax); /* 0x470636F6: push eax */
   3763     PUSH32(esp, 0x40u); /* 0x470636F7: push 0x40 */
   3764     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u);
   3765     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3766     ecx = ecx + 0xFFFFFFC4u; /* 0x470636F9: add ecx, -0x3c */
   3767     _flag_k = FK_ADD;
   3768     PUSH32(esp, ecx); /* 0x470636FC: push ecx */
   3769     RECOMP_ICALL(0x470A32EBu); /* 0x470636FD: call 0x470a32eb */ /* not lifted */
   3770     RECOMP_FLAGS_IN();
   3771     /* test LO8(ebx), 1 */ /* 0x47063702: test bl, 1 */
   3772     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3773     _cf = 0;
   3774     _flag_k = FK_NARROW(FK_TEST, 24);
   3775     if (TEST_Z(_flag_a, _flag_b)) goto L_47063710; /* 0x47063705: je 0x47063710 */
   3776 L_47063707:
   3777     PUSH32(esp, esi); /* 0x47063707: push esi */
   3778     RECOMP_ICALL(0x470A32A2u); /* 0x47063708: call 0x470a32a2 */ /* not lifted */
   3779     RECOMP_FLAGS_IN();
   3780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3782     esp = esp + 4; /* 0x4706370D: add esp, 4 */
   3783     _flag_k = FK_ADD;
   3784 L_47063710:
   3785     eax = esi; /* 0x47063710: mov eax, esi */
   3786     esi = POP32_VAL(esp); /* 0x47063712: pop esi */
   3787     ebx = POP32_VAL(esp); /* 0x47063713: pop ebx */
   3788     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47063714: ret 4 */
   3789 L_47063717:
   3790     PUSH32(esp, edi); /* 0x47063717: push edi */
   3791     edi = ecx + (-0x3C); /* 0x47063718: lea edi, [ecx - 0x3c] */
   3792     esi = edi + 0x3C; /* 0x4706371B: lea esi, [edi + 0x3c] */
   3793     ecx = esi; /* 0x4706371E: mov ecx, esi */
   3794     RECOMP_ICALL(0x470636B0u); /* 0x47063720: call 0x470636b0 */ /* not lifted */
   3795     RECOMP_FLAGS_IN();
   3796     ecx = esi; /* 0x47063725: mov ecx, esi */
   3797     RECOMP_ICALL(0x47018740u); /* 0x47063727: call 0x47018740 */ /* not lifted */
   3798     RECOMP_FLAGS_IN();
   3799     /* test LO8(ebx), 1 */ /* 0x4706372C: test bl, 1 */
   3800     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3801     _cf = 0;
   3802     _flag_k = FK_NARROW(FK_TEST, 24);
   3803     if (TEST_Z(_flag_a, _flag_b)) goto L_4706373A; /* 0x4706372F: je 0x4706373a */
   3804 L_47063731:
   3805     PUSH32(esp, edi); /* 0x47063731: push edi */
   3806     RECOMP_ICALL(0x470A32A2u); /* 0x47063732: call 0x470a32a2 */ /* not lifted */
   3807     RECOMP_FLAGS_IN();
   3808     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3809     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3810     esp = esp + 4; /* 0x47063737: add esp, 4 */
   3811     _flag_k = FK_ADD;
   3812 L_4706373A:
   3813     eax = edi; /* 0x4706373A: mov eax, edi */
   3814     edi = POP32_VAL(esp); /* 0x4706373C: pop edi */
   3815     esi = POP32_VAL(esp); /* 0x4706373D: pop esi */
   3816     ebx = POP32_VAL(esp); /* 0x4706373E: pop ebx */
   3817     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706373F: ret 4 */
   3818 L_47067860:
   3819     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3821     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067860: sub ecx, dword ptr [ecx - 4] */
   3822     _flag_k = FK_CMP;
   3823     RECOMP_BACKEDGE();
   3824     goto L_470636E0; /* 0x47067863: jmp 0x470636e0 */
   3825     { RECOMP_REGS_OUT(); return; } /* end of function */
   3826     RECOMP_REGS_OUT();
   3827 }
   3828 
   3829 void sub_47067870(void) {
   3830     int _fpu_cmp = 0;
   3831     uint32_t _cf = 0;
   3832     int _df = 1;
   3833     uint32_t _flag_k = FK_NONE;
   3834     uint32_t _flag_a = 0, _flag_b = 0;
   3835     uint32_t _itail_tgt = 0;
   3836     RECOMP_REGS_LOCALS
   3837     RECOMP_ENTER(0x47067870u);
   3838 
   3839 L_47067870:
   3840     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3842     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067870: sub ecx, dword ptr [ecx - 4] */
   3843     _flag_k = FK_CMP;
   3844     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3846     ecx = ecx - 8; /* 0x47067873: sub ecx, 8 */
   3847     _flag_k = FK_CMP;
   3848     goto L_4709FD20; /* 0x47067876: jmp 0x4709fd20 */
   3849 L_4709FD20:
   3850     eax = MEM32(ecx + (-0x14)); /* 0x4709FD20: mov eax, dword ptr [ecx - 0x14] */
   3851     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD23: ret  */
   3852     RECOMP_REGS_OUT();
   3853 }
   3854 
   3855 void sub_47067880(void) {
   3856     int _fpu_cmp = 0;
   3857     uint32_t _cf = 0;
   3858     int _df = 1;
   3859     uint32_t _flag_k = FK_NONE;
   3860     uint32_t _flag_a = 0, _flag_b = 0;
   3861     uint32_t _itail_tgt = 0;
   3862     RECOMP_REGS_LOCALS
   3863     RECOMP_ENTER(0x47067880u);
   3864 
   3865 L_47067880:
   3866     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3868     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067880: sub ecx, dword ptr [ecx - 4] */
   3869     _flag_k = FK_CMP;
   3870     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3872     ecx = ecx - 8; /* 0x47067883: sub ecx, 8 */
   3873     _flag_k = FK_CMP;
   3874     goto L_4709FD10; /* 0x47067886: jmp 0x4709fd10 */
   3875 L_4709FD10:
   3876     eax = MEM32(ecx + (-0x18)); /* 0x4709FD10: mov eax, dword ptr [ecx - 0x18] */
   3877     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD13: ret  */
   3878     RECOMP_REGS_OUT();
   3879 }
   3880 
   3881 void sub_47067890(void) {
   3882     int _fpu_cmp = 0;
   3883     uint32_t _cf = 0;
   3884     int _df = 1;
   3885     uint32_t _flag_k = FK_NONE;
   3886     uint32_t _flag_a = 0, _flag_b = 0;
   3887     uint32_t _itail_tgt = 0;
   3888     RECOMP_REGS_LOCALS
   3889     RECOMP_ENTER(0x47067890u);
   3890 
   3891 L_47067890:
   3892     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3894     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067890: sub ecx, dword ptr [ecx - 4] */
   3895     _flag_k = FK_CMP;
   3896     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3897     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3898     ecx = ecx - 8; /* 0x47067893: sub ecx, 8 */
   3899     _flag_k = FK_CMP;
   3900     goto L_4709FB30; /* 0x47067896: jmp 0x4709fb30 */
   3901 L_4709FB30:
   3902     eax = MEM32(ecx + (-0x10)); /* 0x4709FB30: mov eax, dword ptr [ecx - 0x10] */
   3903     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB33: ret  */
   3904     RECOMP_REGS_OUT();
   3905 }
   3906 
   3907 void sub_470678A0(void) {
   3908     int _fpu_cmp = 0;
   3909     uint32_t _cf = 0;
   3910     int _df = 1;
   3911     uint32_t _flag_k = FK_NONE;
   3912     uint32_t _flag_a = 0, _flag_b = 0;
   3913     uint32_t _itail_tgt = 0;
   3914     RECOMP_REGS_LOCALS
   3915     RECOMP_ENTER(0x470678A0u);
   3916 
   3917 L_470678A0:
   3918     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3920     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470678A0: sub ecx, dword ptr [ecx - 4] */
   3921     _flag_k = FK_CMP;
   3922     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3924     ecx = ecx - 8; /* 0x470678A3: sub ecx, 8 */
   3925     _flag_k = FK_CMP;
   3926     goto L_4709FB40; /* 0x470678A6: jmp 0x4709fb40 */
   3927 L_4709FB40:
   3928     eax = MEM32(ecx + (-0xC)); /* 0x4709FB40: mov eax, dword ptr [ecx - 0xc] */
   3929     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB43: ret  */
   3930     RECOMP_REGS_OUT();
   3931 }
   3932 
   3933 void sub_470678B0(void) {
   3934     int _fpu_cmp = 0;
   3935     uint32_t _cf = 0;
   3936     int _df = 1;
   3937     uint32_t _flag_k = FK_NONE;
   3938     uint32_t _flag_a = 0, _flag_b = 0;
   3939     uint32_t _itail_tgt = 0;
   3940     RECOMP_REGS_LOCALS
   3941     RECOMP_ENTER(0x470678B0u);
   3942 
   3943 L_470678B0:
   3944     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3946     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470678B0: sub ecx, dword ptr [ecx - 4] */
   3947     _flag_k = FK_CMP;
   3948     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3950     ecx = ecx - 8; /* 0x470678B3: sub ecx, 8 */
   3951     _flag_k = FK_CMP;
   3952     goto L_4709FB50; /* 0x470678B6: jmp 0x4709fb50 */
   3953 L_4709FB50:
   3954     eax = MEM32(ecx + (-0x8)); /* 0x4709FB50: mov eax, dword ptr [ecx - 8] */
   3955     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB53: ret  */
   3956     RECOMP_REGS_OUT();
   3957 }
   3958 
   3959 void sub_470678C0(void) {
   3960     int _fpu_cmp = 0;
   3961     uint32_t _cf = 0;
   3962     int _df = 1;
   3963     uint32_t _flag_k = FK_NONE;
   3964     uint32_t _flag_a = 0, _flag_b = 0;
   3965     uint32_t _itail_tgt = 0;
   3966     RECOMP_REGS_LOCALS
   3967     RECOMP_ENTER(0x470678C0u);
   3968 
   3969 L_470678C0:
   3970     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3972     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470678C0: sub ecx, dword ptr [ecx - 4] */
   3973     _flag_k = FK_CMP;
   3974     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3976     ecx = ecx - 8; /* 0x470678C3: sub ecx, 8 */
   3977     _flag_k = FK_CMP;
   3978     goto L_470A0EA0; /* 0x470678C6: jmp 0x470a0ea0 */
   3979 L_470A0EA0:
   3980     eax = MEM32(ecx + (-0x24)); /* 0x470A0EA0: mov eax, dword ptr [ecx - 0x24] */
   3981     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EA3: ret  */
   3982     RECOMP_REGS_OUT();
   3983 }
   3984 
   3985 void sub_470678D0(void) {
   3986     int _fpu_cmp = 0;
   3987     uint32_t _cf = 0;
   3988     int _df = 1;
   3989     uint32_t _flag_k = FK_NONE;
   3990     uint32_t _flag_a = 0, _flag_b = 0;
   3991     uint32_t _itail_tgt = 0;
   3992     RECOMP_REGS_LOCALS
   3993     RECOMP_ENTER(0x470678D0u);
   3994 
   3995 L_470678D0:
   3996     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   3997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3998     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470678D0: sub ecx, dword ptr [ecx - 4] */
   3999     _flag_k = FK_CMP;
   4000     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   4001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4002     ecx = ecx - 8; /* 0x470678D3: sub ecx, 8 */
   4003     _flag_k = FK_CMP;
   4004     goto L_4709FB60; /* 0x470678D6: jmp 0x4709fb60 */
   4005 L_4709FB60:
   4006     eax = MEM32(ecx + (-0x2C)); /* 0x4709FB60: mov eax, dword ptr [ecx - 0x2c] */
   4007     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB63: ret  */
   4008     RECOMP_REGS_OUT();
   4009 }
   4010 
   4011 void sub_470678E0(void) {
   4012     int _fpu_cmp = 0;
   4013     uint32_t _cf = 0;
   4014     int _df = 1;
   4015     uint32_t _flag_k = FK_NONE;
   4016     uint32_t _flag_a = 0, _flag_b = 0;
   4017     uint32_t _itail_tgt = 0;
   4018     RECOMP_REGS_LOCALS
   4019     RECOMP_ENTER(0x470678E0u);
   4020 
   4021 L_470678E0:
   4022     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4024     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470678E0: sub ecx, dword ptr [ecx - 4] */
   4025     _flag_k = FK_CMP;
   4026     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   4027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4028     ecx = ecx - 8; /* 0x470678E3: sub ecx, 8 */
   4029     _flag_k = FK_CMP;
   4030     goto L_4709FB70; /* 0x470678E6: jmp 0x4709fb70 */
   4031 L_4709FB70:
   4032     eax = MEM32(ecx + (-0x28)); /* 0x4709FB70: mov eax, dword ptr [ecx - 0x28] */
   4033     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB73: ret  */
   4034     RECOMP_REGS_OUT();
   4035 }
   4036 
   4037 void sub_470678F0(void) {
   4038     int _fpu_cmp = 0;
   4039     uint32_t _cf = 0;
   4040     int _df = 1;
   4041     uint32_t _flag_k = FK_NONE;
   4042     uint32_t _flag_a = 0, _flag_b = 0;
   4043     uint32_t _itail_tgt = 0;
   4044     RECOMP_REGS_LOCALS
   4045     RECOMP_ENTER(0x470678F0u);
   4046 
   4047 L_470678F0:
   4048     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4050     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470678F0: sub ecx, dword ptr [ecx - 4] */
   4051     _flag_k = FK_CMP;
   4052     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   4053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4054     ecx = ecx - 8; /* 0x470678F3: sub ecx, 8 */
   4055     _flag_k = FK_CMP;
   4056     goto L_4709FF60; /* 0x470678F6: jmp 0x4709ff60 */
   4057 L_4709FF60:
   4058     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
   4059     RECOMP_FLAGS_IN();
   4060     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
   4061     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4062     eax = 0; /* 0x4709FF6C: xor eax, eax */
   4063     _cf = 0;
   4064     _flag_k = FK_TEST;
   4065     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
   4066     RECOMP_REGS_OUT();
   4067 }
   4068 
   4069 void sub_47067900(void) {
   4070     int _fpu_cmp = 0;
   4071     uint32_t _cf = 0;
   4072     int _df = 1;
   4073     uint32_t _flag_k = FK_NONE;
   4074     uint32_t _flag_a = 0, _flag_b = 0;
   4075     uint32_t _itail_tgt = 0;
   4076     RECOMP_REGS_LOCALS
   4077     RECOMP_ENTER(0x47067900u);
   4078 
   4079 L_47067900:
   4080     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4081     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4082     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067900: sub ecx, dword ptr [ecx - 4] */
   4083     _flag_k = FK_CMP;
   4084     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   4085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4086     ecx = ecx - 8; /* 0x47067903: sub ecx, 8 */
   4087     _flag_k = FK_CMP;
   4088     goto L_4709FF60; /* 0x47067906: jmp 0x4709ff60 */
   4089 L_4709FF60:
   4090     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FF60: call dword ptr [0x470ac3c8] */
   4091     RECOMP_FLAGS_IN();
   4092     MEM32(eax) = 0x28u; /* 0x4709FF66: mov dword ptr [eax], 0x28 */
   4093     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4094     eax = 0; /* 0x4709FF6C: xor eax, eax */
   4095     _cf = 0;
   4096     _flag_k = FK_TEST;
   4097     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FF6E: ret  */
   4098     RECOMP_REGS_OUT();
   4099 }
   4100 
   4101 void sub_47067910(void) {
   4102     int _fpu_cmp = 0;
   4103     uint32_t _cf = 0;
   4104     int _df = 1;
   4105     uint32_t _flag_k = FK_NONE;
   4106     uint32_t _flag_a = 0, _flag_b = 0;
   4107     uint32_t _itail_tgt = 0;
   4108     RECOMP_REGS_LOCALS
   4109     RECOMP_ENTER(0x47067910u);
   4110 
   4111 L_47067910:
   4112     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4114     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067910: sub ecx, dword ptr [ecx - 4] */
   4115     _flag_k = FK_CMP;
   4116     goto L_470A3070; /* 0x47067913: jmp 0x470a3070 */
   4117 L_470A3070:
   4118     PUSH32(esp, esi); /* 0x470A3070: push esi */
   4119     esi = ecx; /* 0x470A3071: mov esi, ecx */
   4120     eax = MEM32(esi + (-0x28)); /* 0x470A3073: mov eax, dword ptr [esi - 0x28] */
   4121     ecx = MEM32(eax + 0x4); /* 0x470A3076: mov ecx, dword ptr [eax + 4] */
   4122     edx = MEM32(esi + (-0x24)); /* 0x470A3079: mov edx, dword ptr [esi - 0x24] */
   4123     eax = MEM32(ecx + esi + (-0x28)); /* 0x470A307C: mov eax, dword ptr [ecx + esi - 0x28] */
   4124     ecx = ecx + esi + (-0x28); /* 0x470A3080: lea ecx, [ecx + esi - 0x28] */
   4125     PUSH32(esp, edi); /* 0x470A3084: push edi */
   4126     edi = MEM32(edx); /* 0x470A3085: mov edi, dword ptr [edx] */
   4127     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x470A3087: call dword ptr [eax + 8] */
   4128     RECOMP_FLAGS_IN();
   4129     PUSH32(esp, eax); /* 0x470A308A: push eax */
   4130     ecx = esi + (-0xC); /* 0x470A308B: lea ecx, [esi - 0xc] */
   4131     PUSH32(esp, ecx); /* 0x470A308E: push ecx */
   4132     ecx = MEM32(esi + (-0x24)); /* 0x470A308F: mov ecx, dword ptr [esi - 0x24] */
   4133     RECOMP_ICALL(MEM32(edi + 0x1C)); /* 0x470A3092: call dword ptr [edi + 0x1c] */
   4134     RECOMP_FLAGS_IN();
   4135     edi = POP32_VAL(esp); /* 0x470A3095: pop edi */
   4136     esi = POP32_VAL(esp); /* 0x470A3096: pop esi */
   4137     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A3097: ret 0x10 */
   4138     RECOMP_REGS_OUT();
   4139 }
   4140 
   4141 void sub_47067920(void) {
   4142     int _fpu_cmp = 0;
   4143     uint32_t _cf = 0;
   4144     int _df = 1;
   4145     uint32_t _flag_k = FK_NONE;
   4146     uint32_t _flag_a = 0, _flag_b = 0;
   4147     uint32_t _itail_tgt = 0;
   4148     RECOMP_REGS_LOCALS
   4149     RECOMP_ENTER(0x47067920u);
   4150 
   4151 L_47067920:
   4152     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4153     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4154     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067920: sub ecx, dword ptr [ecx - 4] */
   4155     _flag_k = FK_CMP;
   4156     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   4157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4158     ecx = ecx - 8; /* 0x47067923: sub ecx, 8 */
   4159     _flag_k = FK_CMP;
   4160     goto L_4709FB80; /* 0x47067926: jmp 0x4709fb80 */
   4161 L_4709FB80:
   4162     eax = MEM32(esp + 0x4); /* 0x4709FB80: mov eax, dword ptr [esp + 4] */
   4163     /* test eax, eax */ /* 0x4709FB84: test eax, eax */
   4164     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4165     _cf = 0;
   4166     _flag_k = FK_TEST;
   4167     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709FBEB; /* 0x4709FB86: jne 0x4709fbeb */
   4168 L_4709FB88:
   4169     PUSH32(esp, esi); /* 0x4709FB88: push esi */
   4170     PUSH32(esp, edi); /* 0x4709FB89: push edi */
   4171     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709FB8A: call dword ptr [0x470ac150] */
   4172     RECOMP_FLAGS_IN();
   4173     edi = eax; /* 0x4709FB90: mov edi, eax */
   4174     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709FB92: call dword ptr [0x470ac3c8] */
   4175     RECOMP_FLAGS_IN();
   4176     eax = MEM32(eax); /* 0x4709FB98: mov eax, dword ptr [eax] */
   4177     /* test eax, eax */ /* 0x4709FB9A: test eax, eax */
   4178     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4179     _cf = 0;
   4180     _flag_k = FK_TEST;
   4181     if (TEST_Z(_flag_a, _flag_b)) goto L_4709FBA0; /* 0x4709FB9C: je 0x4709fba0 */
   4182 L_4709FB9E:
   4183     edi = eax; /* 0x4709FB9E: mov edi, eax */
   4184 L_4709FBA0:
   4185     RECOMP_ICALL(0x47039020u); /* 0x4709FBA0: call 0x47039020 */ /* not lifted */
   4186     RECOMP_FLAGS_IN();
   4187     esi = eax; /* 0x4709FBA5: mov esi, eax */
   4188     ecx = esi; /* 0x4709FBA7: mov ecx, esi */
   4189     RECOMP_ICALL(0x4703B210u); /* 0x4709FBA9: call 0x4703b210 */ /* not lifted */
   4190     RECOMP_FLAGS_IN();
   4191     PUSH32(esp, eax); /* 0x4709FBAE: push eax */
   4192     ecx = esi; /* 0x4709FBAF: mov ecx, esi */
   4193     RECOMP_ICALL(0x4703B240u); /* 0x4709FBB1: call 0x4703b240 */ /* not lifted */
   4194     RECOMP_FLAGS_IN();
   4195     PUSH32(esp, eax); /* 0x4709FBB6: push eax */
   4196     ecx = esi; /* 0x4709FBB7: mov ecx, esi */
   4197     RECOMP_ICALL(0x4703B080u); /* 0x4709FBB9: call 0x4703b080 */ /* not lifted */
   4198     RECOMP_FLAGS_IN();
   4199     PUSH32(esp, eax); /* 0x4709FBBE: push eax */
   4200     PUSH32(esp, edi); /* 0x4709FBBF: push edi */
   4201     PUSH32(esp, 0xFFFFFFFFu); /* 0x4709FBC0: push -1 */
   4202     PUSH32(esp, 0x5Bu); /* 0x4709FBC2: push 0x5b */
   4203     PUSH32(esp, 0x4710DB30u); /* 0x4709FBC4: push 0x4710db30 */
   4204     ecx = esi; /* 0x4709FBC9: mov ecx, esi */
   4205     RECOMP_ICALL(0x4703A340u); /* 0x4709FBCB: call 0x4703a340 */ /* not lifted */
   4206     RECOMP_FLAGS_IN();
   4207     PUSH32(esp, 0x4710DB08u); /* 0x4709FBD0: push 0x4710db08 */
   4208     PUSH32(esp, 0x80u); /* 0x4709FBD5: push 0x80 */
   4209     PUSH32(esp, esi); /* 0x4709FBDA: push esi */
   4210     RECOMP_ICALL(0x47039830u); /* 0x4709FBDB: call 0x47039830 */ /* not lifted */
   4211     RECOMP_FLAGS_IN();
   4212     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4213     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4214     esp = esp + 0xCu; /* 0x4709FBE0: add esp, 0xc */
   4215     _flag_k = FK_ADD;
   4216     edi = POP32_VAL(esp); /* 0x4709FBE3: pop edi */
   4217     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4218     eax = eax | 0xFFFFFFFFu; /* 0x4709FBE4: or eax, 0xffffffff */
   4219     _cf = 0;
   4220     _flag_k = FK_TEST;
   4221     esi = POP32_VAL(esp); /* 0x4709FBE7: pop esi */
   4222     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709FBE8: ret 4 */
   4223 L_4709FBEB:
   4224     edx = MEM32(eax); /* 0x4709FBEB: mov edx, dword ptr [eax] */
   4225     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFCCu);
   4226     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4227     ecx = ecx + 0xFFFFFFCCu; /* 0x4709FBED: add ecx, -0x34 */
   4228     _flag_k = FK_ADD;
   4229     PUSH32(esp, ecx); /* 0x4709FBF0: push ecx */
   4230     ecx = eax; /* 0x4709FBF1: mov ecx, eax */
   4231     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x4709FBF3: call dword ptr [edx + 0x9c] */
   4232     RECOMP_FLAGS_IN();
   4233     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709FBF9: ret 4 */
   4234     RECOMP_REGS_OUT();
   4235 }
   4236 
   4237 void sub_47067930(void) {
   4238     int _fpu_cmp = 0;
   4239     uint32_t _cf = 0;
   4240     int _df = 1;
   4241     uint32_t _flag_k = FK_NONE;
   4242     uint32_t _flag_a = 0, _flag_b = 0;
   4243     uint32_t _itail_tgt = 0;
   4244     RECOMP_REGS_LOCALS
   4245     RECOMP_ENTER(0x47067930u);
   4246 
   4247     goto L_47067930;
   4248 L_47062E40:
   4249     PUSH32(esp, ebx); /* 0x47062E40: push ebx */
   4250     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062E41: mov bl, byte ptr [esp + 8] */
   4251     /* test LO8(ebx), 2 */ /* 0x47062E45: test bl, 2 */
   4252     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4253     _cf = 0;
   4254     _flag_k = FK_NARROW(FK_TEST, 24);
   4255     PUSH32(esp, esi); /* 0x47062E48: push esi */
   4256     if (TEST_Z(_flag_a, _flag_b)) goto L_47062E77; /* 0x47062E49: je 0x47062e77 */
   4257 L_47062E4B:
   4258     eax = MEM32(ecx + (-0x44)); /* 0x47062E4B: mov eax, dword ptr [ecx - 0x44] */
   4259     esi = ecx + (-0x44); /* 0x47062E4E: lea esi, [ecx - 0x44] */
   4260     PUSH32(esp, 0x47062E10u); /* 0x47062E51: push 0x47062e10 */
   4261     PUSH32(esp, eax); /* 0x47062E56: push eax */
   4262     PUSH32(esp, 0x54u); /* 0x47062E57: push 0x54 */
   4263     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC0u);
   4264     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4265     ecx = ecx + 0xFFFFFFC0u; /* 0x47062E59: add ecx, -0x40 */
   4266     _flag_k = FK_ADD;
   4267     PUSH32(esp, ecx); /* 0x47062E5C: push ecx */
   4268     RECOMP_ICALL(0x470A32EBu); /* 0x47062E5D: call 0x470a32eb */ /* not lifted */
   4269     RECOMP_FLAGS_IN();
   4270     /* test LO8(ebx), 1 */ /* 0x47062E62: test bl, 1 */
   4271     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4272     _cf = 0;
   4273     _flag_k = FK_NARROW(FK_TEST, 24);
   4274     if (TEST_Z(_flag_a, _flag_b)) goto L_47062EAB; /* 0x47062E65: je 0x47062eab */
   4275 L_47062E67:
   4276     PUSH32(esp, esi); /* 0x47062E67: push esi */
   4277     RECOMP_ICALL(0x470A32A2u); /* 0x47062E68: call 0x470a32a2 */ /* not lifted */
   4278     RECOMP_FLAGS_IN();
   4279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4281     esp = esp + 4; /* 0x47062E6D: add esp, 4 */
   4282     _flag_k = FK_ADD;
   4283     eax = esi; /* 0x47062E70: mov eax, esi */
   4284     esi = POP32_VAL(esp); /* 0x47062E72: pop esi */
   4285     ebx = POP32_VAL(esp); /* 0x47062E73: pop ebx */
   4286     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062E74: ret 4 */
   4287 L_47062E77:
   4288     esi = ecx + (-0x40); /* 0x47062E77: lea esi, [ecx - 0x40] */
   4289     PUSH32(esp, edi); /* 0x47062E7A: push edi */
   4290     edi = esi + 0x40; /* 0x47062E7B: lea edi, [esi + 0x40] */
   4291     ecx = edi; /* 0x47062E7E: mov ecx, edi */
   4292     RECOMP_ICALL(0x470A0E00u); /* 0x47062E80: call 0x470a0e00 */ /* not lifted */
   4293     RECOMP_FLAGS_IN();
   4294     ecx = esi + 0x54; /* 0x47062E85: lea ecx, [esi + 0x54] */
   4295     RECOMP_ICALL(0x47018860u); /* 0x47062E88: call 0x47018860 */ /* not lifted */
   4296     RECOMP_FLAGS_IN();
   4297     ecx = esi + 0x50; /* 0x47062E8D: lea ecx, [esi + 0x50] */
   4298     RECOMP_ICALL(0x470187C0u); /* 0x47062E90: call 0x470187c0 */ /* not lifted */
   4299     RECOMP_FLAGS_IN();
   4300     ecx = edi; /* 0x47062E95: mov ecx, edi */
   4301     RECOMP_ICALL(0x47018740u); /* 0x47062E97: call 0x47018740 */ /* not lifted */
   4302     RECOMP_FLAGS_IN();
   4303     /* test LO8(ebx), 1 */ /* 0x47062E9C: test bl, 1 */
   4304     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4305     _cf = 0;
   4306     _flag_k = FK_NARROW(FK_TEST, 24);
   4307     edi = POP32_VAL(esp); /* 0x47062E9F: pop edi */
   4308     if (TEST_Z(_flag_a, _flag_b)) goto L_47062EAB; /* 0x47062EA0: je 0x47062eab */
   4309 L_47062EA2:
   4310     PUSH32(esp, esi); /* 0x47062EA2: push esi */
   4311     RECOMP_ICALL(0x470A32A2u); /* 0x47062EA3: call 0x470a32a2 */ /* not lifted */
   4312     RECOMP_FLAGS_IN();
   4313     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4314     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4315     esp = esp + 4; /* 0x47062EA8: add esp, 4 */
   4316     _flag_k = FK_ADD;
   4317 L_47062EAB:
   4318     eax = esi; /* 0x47062EAB: mov eax, esi */
   4319     esi = POP32_VAL(esp); /* 0x47062EAD: pop esi */
   4320     ebx = POP32_VAL(esp); /* 0x47062EAE: pop ebx */
   4321     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062EAF: ret 4 */
   4322 L_47067930:
   4323     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4325     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067930: sub ecx, dword ptr [ecx - 4] */
   4326     _flag_k = FK_CMP;
   4327     RECOMP_BACKEDGE();
   4328     goto L_47062E40; /* 0x47067933: jmp 0x47062e40 */
   4329     { RECOMP_REGS_OUT(); return; } /* end of function */
   4330     RECOMP_REGS_OUT();
   4331 }
   4332 
   4333 void sub_47067940(void) {
   4334     int _fpu_cmp = 0;
   4335     uint32_t _cf = 0;
   4336     int _df = 1;
   4337     uint32_t _flag_k = FK_NONE;
   4338     uint32_t _flag_a = 0, _flag_b = 0;
   4339     uint32_t _itail_tgt = 0;
   4340     RECOMP_REGS_LOCALS
   4341     RECOMP_ENTER(0x47067940u);
   4342 
   4343 L_47067940:
   4344     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4346     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067940: sub ecx, dword ptr [ecx - 4] */
   4347     _flag_k = FK_CMP;
   4348     goto L_470A0E90; /* 0x47067943: jmp 0x470a0e90 */
   4349 L_470A0E90:
   4350     eax = MEM32(ecx + (-0x20)); /* 0x470A0E90: mov eax, dword ptr [ecx - 0x20] */
   4351     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0E93: ret  */
   4352     RECOMP_REGS_OUT();
   4353 }
   4354 
   4355 void sub_47067950(void) {
   4356     int _fpu_cmp = 0;
   4357     uint32_t _cf = 0;
   4358     int _df = 1;
   4359     uint32_t _flag_k = FK_NONE;
   4360     uint32_t _flag_a = 0, _flag_b = 0;
   4361     uint32_t _itail_tgt = 0;
   4362     RECOMP_REGS_LOCALS
   4363     RECOMP_ENTER(0x47067950u);
   4364 
   4365 L_47067950:
   4366     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4368     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067950: sub ecx, dword ptr [ecx - 4] */
   4369     _flag_k = FK_CMP;
   4370     goto L_470A0EA0; /* 0x47067953: jmp 0x470a0ea0 */
   4371 L_470A0EA0:
   4372     eax = MEM32(ecx + (-0x24)); /* 0x470A0EA0: mov eax, dword ptr [ecx - 0x24] */
   4373     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EA3: ret  */
   4374     RECOMP_REGS_OUT();
   4375 }
   4376 
   4377 void sub_47067960(void) {
   4378     int _fpu_cmp = 0;
   4379     uint32_t _cf = 0;
   4380     int _df = 1;
   4381     uint32_t _flag_k = FK_NONE;
   4382     uint32_t _flag_a = 0, _flag_b = 0;
   4383     uint32_t _itail_tgt = 0;
   4384     RECOMP_REGS_LOCALS
   4385     RECOMP_ENTER(0x47067960u);
   4386 
   4387 L_47067960:
   4388     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4390     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067960: sub ecx, dword ptr [ecx - 4] */
   4391     _flag_k = FK_CMP;
   4392     goto L_470A0EB0; /* 0x47067963: jmp 0x470a0eb0 */
   4393 L_470A0EB0:
   4394     eax = MEM32(ecx + (-0x1C)); /* 0x470A0EB0: mov eax, dword ptr [ecx - 0x1c] */
   4395     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EB3: ret  */
   4396     RECOMP_REGS_OUT();
   4397 }
   4398 
   4399 void sub_47067970(void) {
   4400     int _fpu_cmp = 0;
   4401     uint32_t _cf = 0;
   4402     int _df = 1;
   4403     uint32_t _flag_k = FK_NONE;
   4404     uint32_t _flag_a = 0, _flag_b = 0;
   4405     uint32_t _itail_tgt = 0;
   4406     RECOMP_REGS_LOCALS
   4407     RECOMP_ENTER(0x47067970u);
   4408 
   4409 L_47067970:
   4410     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4412     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067970: sub ecx, dword ptr [ecx - 4] */
   4413     _flag_k = FK_CMP;
   4414     goto L_4709FD10; /* 0x47067973: jmp 0x4709fd10 */
   4415 L_4709FD10:
   4416     eax = MEM32(ecx + (-0x18)); /* 0x4709FD10: mov eax, dword ptr [ecx - 0x18] */
   4417     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD13: ret  */
   4418     RECOMP_REGS_OUT();
   4419 }
   4420 
   4421 void sub_47067980(void) {
   4422     int _fpu_cmp = 0;
   4423     uint32_t _cf = 0;
   4424     int _df = 1;
   4425     uint32_t _flag_k = FK_NONE;
   4426     uint32_t _flag_a = 0, _flag_b = 0;
   4427     uint32_t _itail_tgt = 0;
   4428     RECOMP_REGS_LOCALS
   4429     RECOMP_ENTER(0x47067980u);
   4430 
   4431 L_47067980:
   4432     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4434     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067980: sub ecx, dword ptr [ecx - 4] */
   4435     _flag_k = FK_CMP;
   4436     goto L_4709FD20; /* 0x47067983: jmp 0x4709fd20 */
   4437 L_4709FD20:
   4438     eax = MEM32(ecx + (-0x14)); /* 0x4709FD20: mov eax, dword ptr [ecx - 0x14] */
   4439     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD23: ret  */
   4440     RECOMP_REGS_OUT();
   4441 }
   4442 
   4443 void sub_47067990(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(0x47067990u);
   4452 
   4453 L_47067990:
   4454     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4456     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067990: sub ecx, dword ptr [ecx - 4] */
   4457     _flag_k = FK_CMP;
   4458     goto L_470A0490; /* 0x47067993: jmp 0x470a0490 */
   4459 L_470A0490:
   4460     eax = MEM32(ecx + (-0x30)); /* 0x470A0490: mov eax, dword ptr [ecx - 0x30] */
   4461     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0493: ret  */
   4462     RECOMP_REGS_OUT();
   4463 }
   4464 
   4465 void sub_470679A0(void) {
   4466     int _fpu_cmp = 0;
   4467     uint32_t _cf = 0;
   4468     int _df = 1;
   4469     uint32_t _flag_k = FK_NONE;
   4470     uint32_t _flag_a = 0, _flag_b = 0;
   4471     uint32_t _itail_tgt = 0;
   4472     RECOMP_REGS_LOCALS
   4473     RECOMP_ENTER(0x470679A0u);
   4474 
   4475 L_470679A0:
   4476     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4478     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470679A0: sub ecx, dword ptr [ecx - 4] */
   4479     _flag_k = FK_CMP;
   4480     goto L_470A04A0; /* 0x470679A3: jmp 0x470a04a0 */
   4481 L_470A04A0:
   4482     eax = MEM32(ecx + (-0x38)); /* 0x470A04A0: mov eax, dword ptr [ecx - 0x38] */
   4483     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A04A3: ret  */
   4484     RECOMP_REGS_OUT();
   4485 }
   4486 
   4487 void sub_470679B0(void) {
   4488     int _fpu_cmp = 0;
   4489     uint32_t _cf = 0;
   4490     int _df = 1;
   4491     uint32_t _flag_k = FK_NONE;
   4492     uint32_t _flag_a = 0, _flag_b = 0;
   4493     uint32_t _itail_tgt = 0;
   4494     RECOMP_REGS_LOCALS
   4495     RECOMP_ENTER(0x470679B0u);
   4496 
   4497 L_470679B0:
   4498     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   4499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4500     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470679B0: sub ecx, dword ptr [ecx - 4] */
   4501     _flag_k = FK_CMP;
   4502     goto L_470A04B0; /* 0x470679B3: jmp 0x470a04b0 */
   4503 L_470A04B0:
   4504     eax = MEM32(ecx + (-0x34)); /* 0x470A04B0: mov eax, dword ptr [ecx - 0x34] */
   4505     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A04B3: ret  */
   4506     RECOMP_REGS_OUT();
   4507 }