aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0066.c (419075B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47093D80(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(0x47093D80u);
     13 
     14 L_47093D80:
     15     PUSH32(esp, esi); /* 0x47093D80: push esi */
     16     esi = ecx; /* 0x47093D81: mov esi, ecx */
     17     eax = MEM32(esi + 0x8); /* 0x47093D83: mov eax, dword ptr [esi + 8] */
     18     /* test eax, eax */ /* 0x47093D86: test eax, eax */
     19     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     20     _cf = 0;
     21     _flag_k = FK_TEST;
     22     if (TEST_Z(_flag_a, _flag_b)) goto L_47093DC4; /* 0x47093D88: je 0x47093dc4 */
     23 L_47093D8A:
     24     eax = MEM32(esi + 0xC); /* 0x47093D8A: mov eax, dword ptr [esi + 0xc] */
     25     PUSH32(esp, ebx); /* 0x47093D8D: push ebx */
     26     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     27     ebx = 0; /* 0x47093D8E: xor ebx, ebx */
     28     _cf = 0;
     29     _flag_k = FK_TEST;
     30     /* test eax, eax */ /* 0x47093D90: test eax, eax */
     31     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     32     _cf = 0;
     33     _flag_k = FK_TEST;
     34     if (TEST_Z(_flag_a, _flag_b)) goto L_47093DB1; /* 0x47093D92: jbe 0x47093db1 */
     35 L_47093D94:
     36     PUSH32(esp, edi); /* 0x47093D94: push edi */
     37     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     38     edi = 0; /* 0x47093D95: xor edi, edi */
     39     _cf = 0;
     40     _flag_k = FK_TEST;
     41 L_47093D97:
     42     eax = MEM32(esi + 0x8); /* 0x47093D97: mov eax, dword ptr [esi + 8] */
     43     ecx = edi; /* 0x47093D9A: mov ecx, edi */
     44     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
     45     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     46     ecx = ecx + eax; /* 0x47093D9C: add ecx, eax */
     47     _flag_k = FK_ADD;
     48     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_47093DA5; /* 0x47093D9E: je 0x47093da5 */
     49 L_47093DA0:
     50     RECOMP_ICALL(0x47091AC0u); /* 0x47093DA0: call 0x47091ac0 */ /* not lifted */
     51     RECOMP_FLAGS_IN();
     52 L_47093DA5:
     53     eax = MEM32(esi + 0xC); /* 0x47093DA5: mov eax, dword ptr [esi + 0xc] */
     54     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
     55     ebx = ebx + 1; /* 0x47093DA8: inc ebx */
     56     _flag_k = FK_INC;
     57     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x38u);
     58     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     59     edi = edi + 0x38u; /* 0x47093DA9: add edi, 0x38 */
     60     _flag_k = FK_ADD;
     61     /* cmp ebx, eax */ /* 0x47093DAC: cmp ebx, eax */
     62     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
     63     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     64     _flag_k = FK_CMP;
     65     RECOMP_BACKEDGE();
     66     if (CMP_B(_flag_a, _flag_b)) goto L_47093D97; /* 0x47093DAE: jb 0x47093d97 */
     67 L_47093DB0:
     68     edi = POP32_VAL(esp); /* 0x47093DB0: pop edi */
     69 L_47093DB1:
     70     ecx = MEM32(esi); /* 0x47093DB1: mov ecx, dword ptr [esi] */
     71     edx = MEM32(esi + 0x8); /* 0x47093DB3: mov edx, dword ptr [esi + 8] */
     72     eax = MEM32(ecx); /* 0x47093DB6: mov eax, dword ptr [ecx] */
     73     PUSH32(esp, edx); /* 0x47093DB8: push edx */
     74     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47093DB9: call dword ptr [eax + 0xc] */
     75     RECOMP_FLAGS_IN();
     76     MEM32(esi + 0x8) = 0; /* 0x47093DBC: mov dword ptr [esi + 8], 0 */
     77     ebx = POP32_VAL(esp); /* 0x47093DC3: pop ebx */
     78 L_47093DC4:
     79     MEM32(esi + 0xC) = 0; /* 0x47093DC4: mov dword ptr [esi + 0xc], 0 */
     80     MEM32(esi + 0x10) = 0; /* 0x47093DCB: mov dword ptr [esi + 0x10], 0 */
     81     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
     82     eax = eax | 0xFFFFFFFFu; /* 0x47093DD2: or eax, 0xffffffff */
     83     _cf = 0;
     84     _flag_k = FK_TEST;
     85     MEM32(esi + 0x44) = eax; /* 0x47093DD5: mov dword ptr [esi + 0x44], eax */
     86     MEM32(esi + 0x48) = eax; /* 0x47093DD8: mov dword ptr [esi + 0x48], eax */
     87     eax = 0xFFFFFFFEu; /* 0x47093DDB: mov eax, 0xfffffffe */
     88     MEM32(esi + 0x7C) = eax; /* 0x47093DE0: mov dword ptr [esi + 0x7c], eax */
     89     MEM32(esi + 0x80) = eax; /* 0x47093DE3: mov dword ptr [esi + 0x80], eax */
     90     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     91     eax = 0; /* 0x47093DE9: xor eax, eax */
     92     _cf = 0;
     93     _flag_k = FK_TEST;
     94     esi = POP32_VAL(esp); /* 0x47093DEB: pop esi */
     95     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47093DEC: ret  */
     96     RECOMP_REGS_OUT();
     97 }
     98 
     99 void sub_47093DF0(void) {
    100     int _fpu_cmp = 0;
    101     uint32_t _cf = 0;
    102     int _df = 1;
    103     uint32_t _flag_k = FK_NONE;
    104     uint32_t _flag_a = 0, _flag_b = 0;
    105     uint32_t _itail_tgt = 0;
    106     RECOMP_REGS_LOCALS
    107     RECOMP_ENTER(0x47093DF0u);
    108 
    109 L_47093DF0:
    110     PUSH32(esp, esi); /* 0x47093DF0: push esi */
    111     PUSH32(esp, edi); /* 0x47093DF1: push edi */
    112     edi = MEM32(esp + 0xC); /* 0x47093DF2: mov edi, dword ptr [esp + 0xc] */
    113     esi = ecx; /* 0x47093DF6: mov esi, ecx */
    114     PUSH32(esp, edi); /* 0x47093DF8: push edi */
    115     RECOMP_ICALL(0x470389B0u); /* 0x47093DF9: call 0x470389b0 */ /* not lifted */
    116     RECOMP_FLAGS_IN();
    117     eax = MEM32(edi + 0x2C); /* 0x47093DFE: mov eax, dword ptr [edi + 0x2c] */
    118     MEM32(esi + 0x2C) = eax; /* 0x47093E01: mov dword ptr [esi + 0x2c], eax */
    119     ecx = MEM32(edi + 0x30); /* 0x47093E04: mov ecx, dword ptr [edi + 0x30] */
    120     MEM32(esi + 0x30) = ecx; /* 0x47093E07: mov dword ptr [esi + 0x30], ecx */
    121     edx = MEM32(edi + 0x34); /* 0x47093E0A: mov edx, dword ptr [edi + 0x34] */
    122     edi = POP32_VAL(esp); /* 0x47093E0D: pop edi */
    123     MEM32(esi + 0x34) = edx; /* 0x47093E0E: mov dword ptr [esi + 0x34], edx */
    124     eax = esi; /* 0x47093E11: mov eax, esi */
    125     esi = POP32_VAL(esp); /* 0x47093E13: pop esi */
    126     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47093E14: ret 4 */
    127     RECOMP_REGS_OUT();
    128 }
    129 
    130 void sub_47093E20(void) {
    131     int _fpu_cmp = 0;
    132     uint32_t _cf = 0;
    133     int _df = 1;
    134     uint32_t _flag_k = FK_NONE;
    135     uint32_t _flag_a = 0, _flag_b = 0;
    136     uint32_t _itail_tgt = 0;
    137     RECOMP_REGS_LOCALS
    138     RECOMP_ENTER(0x47093E20u);
    139 
    140 L_47093E20:
    141     PUSH32(esp, esi); /* 0x47093E20: push esi */
    142     esi = ecx; /* 0x47093E21: mov esi, ecx */
    143     eax = MEM32(esi + 0x8); /* 0x47093E23: mov eax, dword ptr [esi + 8] */
    144     /* test eax, eax */ /* 0x47093E26: test eax, eax */
    145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    146     _cf = 0;
    147     _flag_k = FK_TEST;
    148     if (TEST_Z(_flag_a, _flag_b)) goto L_47093E64; /* 0x47093E28: je 0x47093e64 */
    149 L_47093E2A:
    150     eax = MEM32(esi + 0xC); /* 0x47093E2A: mov eax, dword ptr [esi + 0xc] */
    151     PUSH32(esp, ebx); /* 0x47093E2D: push ebx */
    152     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    153     ebx = 0; /* 0x47093E2E: xor ebx, ebx */
    154     _cf = 0;
    155     _flag_k = FK_TEST;
    156     /* test eax, eax */ /* 0x47093E30: test eax, eax */
    157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    158     _cf = 0;
    159     _flag_k = FK_TEST;
    160     if (TEST_Z(_flag_a, _flag_b)) goto L_47093E51; /* 0x47093E32: jbe 0x47093e51 */
    161 L_47093E34:
    162     PUSH32(esp, edi); /* 0x47093E34: push edi */
    163     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    164     edi = 0; /* 0x47093E35: xor edi, edi */
    165     _cf = 0;
    166     _flag_k = FK_TEST;
    167 L_47093E37:
    168     eax = MEM32(esi + 0x8); /* 0x47093E37: mov eax, dword ptr [esi + 8] */
    169     ecx = edi; /* 0x47093E3A: mov ecx, edi */
    170     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    171     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    172     ecx = ecx + eax; /* 0x47093E3C: add ecx, eax */
    173     _flag_k = FK_ADD;
    174     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_47093E45; /* 0x47093E3E: je 0x47093e45 */
    175 L_47093E40:
    176     RECOMP_ICALL(0x47091AC0u); /* 0x47093E40: call 0x47091ac0 */ /* not lifted */
    177     RECOMP_FLAGS_IN();
    178 L_47093E45:
    179     eax = MEM32(esi + 0xC); /* 0x47093E45: mov eax, dword ptr [esi + 0xc] */
    180     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    181     ebx = ebx + 1; /* 0x47093E48: inc ebx */
    182     _flag_k = FK_INC;
    183     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x38u);
    184     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    185     edi = edi + 0x38u; /* 0x47093E49: add edi, 0x38 */
    186     _flag_k = FK_ADD;
    187     /* cmp ebx, eax */ /* 0x47093E4C: cmp ebx, eax */
    188     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
    189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    190     _flag_k = FK_CMP;
    191     RECOMP_BACKEDGE();
    192     if (CMP_B(_flag_a, _flag_b)) goto L_47093E37; /* 0x47093E4E: jb 0x47093e37 */
    193 L_47093E50:
    194     edi = POP32_VAL(esp); /* 0x47093E50: pop edi */
    195 L_47093E51:
    196     ecx = MEM32(esi); /* 0x47093E51: mov ecx, dword ptr [esi] */
    197     edx = MEM32(esi + 0x8); /* 0x47093E53: mov edx, dword ptr [esi + 8] */
    198     eax = MEM32(ecx); /* 0x47093E56: mov eax, dword ptr [ecx] */
    199     PUSH32(esp, edx); /* 0x47093E58: push edx */
    200     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47093E59: call dword ptr [eax + 0xc] */
    201     RECOMP_FLAGS_IN();
    202     MEM32(esi + 0x8) = 0; /* 0x47093E5C: mov dword ptr [esi + 8], 0 */
    203     ebx = POP32_VAL(esp); /* 0x47093E63: pop ebx */
    204 L_47093E64:
    205     esi = POP32_VAL(esp); /* 0x47093E64: pop esi */
    206     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47093E65: ret  */
    207     RECOMP_REGS_OUT();
    208 }
    209 
    210 void sub_47093E70(void) {
    211     int _fpu_cmp = 0;
    212     uint32_t _cf = 0;
    213     int _df = 1;
    214     uint32_t _flag_k = FK_NONE;
    215     uint32_t _flag_a = 0, _flag_b = 0;
    216     uint32_t _itail_tgt = 0;
    217     RECOMP_REGS_LOCALS
    218     RECOMP_ENTER(0x47093E70u);
    219 
    220 L_47093E70:
    221     PUSH32(esp, esi); /* 0x47093E70: push esi */
    222     esi = ecx; /* 0x47093E71: mov esi, ecx */
    223     eax = MEM32(esi + 0x44); /* 0x47093E73: mov eax, dword ptr [esi + 0x44] */
    224     /* cmp eax, 0xFFFFFFFFu */ /* 0x47093E76: cmp eax, -1 */
    225     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    227     _flag_k = FK_CMP;
    228     PUSH32(esp, edi); /* 0x47093E79: push edi */
    229     edi = MEM32(esp + 0xC); /* 0x47093E7A: mov edi, dword ptr [esp + 0xc] */
    230     MEM32(edi) = eax; /* 0x47093E7E: mov dword ptr [edi], eax */
    231     if (CMP_EQ(_flag_a, _flag_b)) goto L_47093E89; /* 0x47093E80: je 0x47093e89 */
    232 L_47093E82:
    233     edi = POP32_VAL(esp); /* 0x47093E82: pop edi */
    234     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    235     eax = 0; /* 0x47093E83: xor eax, eax */
    236     _cf = 0;
    237     _flag_k = FK_TEST;
    238     esi = POP32_VAL(esp); /* 0x47093E85: pop esi */
    239     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47093E86: ret 4 */
    240 L_47093E89:
    241     eax = MEM32(esi + 0xC); /* 0x47093E89: mov eax, dword ptr [esi + 0xc] */
    242     /* cmp eax, 0x00010000u */ /* 0x47093E8C: cmp eax, 0x10000 */
    243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u);
    244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    245     _flag_k = FK_CMP;
    246     if (CMP_AE(_flag_a, _flag_b)) goto L_47093E97; /* 0x47093E91: jae 0x47093e97 */
    247 L_47093E93:
    248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    249     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    250     eax = eax + eax; /* 0x47093E93: add eax, eax */
    251     _flag_k = FK_ADD;
    252     goto L_47093E9C; /* 0x47093E95: jmp 0x47093e9c */
    253 L_47093E97:
    254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u);
    255     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    256     eax = eax + 0x8000u; /* 0x47093E97: add eax, 0x8000 */
    257     _flag_k = FK_ADD;
    258 L_47093E9C:
    259     PUSH32(esp, eax); /* 0x47093E9C: push eax */
    260     ecx = esi; /* 0x47093E9D: mov ecx, esi */
    261     RECOMP_ICALL(0x47093940u); /* 0x47093E9F: call 0x47093940 */ /* not lifted */
    262     RECOMP_FLAGS_IN();
    263     /* test eax, eax */ /* 0x47093EA4: test eax, eax */
    264     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    265     _cf = 0;
    266     _flag_k = FK_TEST;
    267     if (TEST_NZ(_flag_a, _flag_b)) goto L_47093EAD; /* 0x47093EA6: jne 0x47093ead */
    268 L_47093EA8:
    269     ecx = MEM32(esi + 0x44); /* 0x47093EA8: mov ecx, dword ptr [esi + 0x44] */
    270     MEM32(edi) = ecx; /* 0x47093EAB: mov dword ptr [edi], ecx */
    271 L_47093EAD:
    272     edi = POP32_VAL(esp); /* 0x47093EAD: pop edi */
    273     esi = POP32_VAL(esp); /* 0x47093EAE: pop esi */
    274     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47093EAF: ret 4 */
    275     RECOMP_REGS_OUT();
    276 }
    277 
    278 void sub_47093EC0(void) {
    279     int _fpu_cmp = 0;
    280     uint32_t _cf = 0;
    281     int _df = 1;
    282     uint32_t _flag_k = FK_NONE;
    283     uint32_t _flag_a = 0, _flag_b = 0;
    284     uint32_t _itail_tgt = 0;
    285     RECOMP_REGS_LOCALS
    286     RECOMP_ENTER(0x47093EC0u);
    287 
    288 L_47093EC0:
    289     PUSH32(esp, ebx); /* 0x47093EC0: push ebx */
    290     PUSH32(esp, esi); /* 0x47093EC1: push esi */
    291     esi = MEM32(esp + 0xC); /* 0x47093EC2: mov esi, dword ptr [esp + 0xc] */
    292     eax = esi * 8; /* 0x47093EC6: lea eax, [esi*8] */
    293     PUSH32(esp, edi); /* 0x47093ECD: push edi */
    294     edi = MEM32(ecx + 0x8); /* 0x47093ECE: mov edi, dword ptr [ecx + 8] */
    295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    297     eax = eax - esi; /* 0x47093ED1: sub eax, esi */
    298     _flag_k = FK_CMP;
    299     edx = MEM32(edi + eax * 8 + 0x34); /* 0x47093ED3: mov edx, dword ptr [edi + eax*8 + 0x34] */
    300     /* cmp edx, 0xFFFFFFFFu */ /* 0x47093ED7: cmp edx, -1 */
    301     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFFu);
    302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    303     _flag_k = FK_CMP;
    304     eax = edi + eax * 8; /* 0x47093EDA: lea eax, [edi + eax*8] */
    305     if (CMP_NE(_flag_a, _flag_b)) goto L_47093EE7; /* 0x47093EDD: jne 0x47093ee7 */
    306 L_47093EDF:
    307     edx = MEM32(eax + 0x30); /* 0x47093EDF: mov edx, dword ptr [eax + 0x30] */
    308     MEM32(ecx + 0x44) = edx; /* 0x47093EE2: mov dword ptr [ecx + 0x44], edx */
    309     goto L_47093EF7; /* 0x47093EE5: jmp 0x47093ef7 */
    310 L_47093EE7:
    311     ebx = edx * 8; /* 0x47093EE7: lea ebx, [edx*8] */
    312     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
    313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    314     ebx = ebx - edx; /* 0x47093EEE: sub ebx, edx */
    315     _flag_k = FK_CMP;
    316     edx = MEM32(eax + 0x30); /* 0x47093EF0: mov edx, dword ptr [eax + 0x30] */
    317     MEM32(edi + ebx * 8 + 0x30) = edx; /* 0x47093EF3: mov dword ptr [edi + ebx*8 + 0x30], edx */
    318 L_47093EF7:
    319     edx = MEM32(eax + 0x30); /* 0x47093EF7: mov edx, dword ptr [eax + 0x30] */
    320     /* cmp edx, 0xFFFFFFFFu */ /* 0x47093EFA: cmp edx, -1 */
    321     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFFu);
    322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    323     _flag_k = FK_CMP;
    324     if (CMP_NE(_flag_a, _flag_b)) goto L_47093F07; /* 0x47093EFD: jne 0x47093f07 */
    325 L_47093EFF:
    326     edx = MEM32(eax + 0x34); /* 0x47093EFF: mov edx, dword ptr [eax + 0x34] */
    327     MEM32(ecx + 0x48) = edx; /* 0x47093F02: mov dword ptr [ecx + 0x48], edx */
    328     goto L_47093F1A; /* 0x47093F05: jmp 0x47093f1a */
    329 L_47093F07:
    330     ebx = MEM32(eax + 0x34); /* 0x47093F07: mov ebx, dword ptr [eax + 0x34] */
    331     edi = edx * 8; /* 0x47093F0A: lea edi, [edx*8] */
    332     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
    333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    334     edi = edi - edx; /* 0x47093F11: sub edi, edx */
    335     _flag_k = FK_CMP;
    336     edx = MEM32(ecx + 0x8); /* 0x47093F13: mov edx, dword ptr [ecx + 8] */
    337     MEM32(edx + edi * 8 + 0x34) = ebx; /* 0x47093F16: mov dword ptr [edx + edi*8 + 0x34], ebx */
    338 L_47093F1A:
    339     edx = MEM32(ecx + 0x7C); /* 0x47093F1A: mov edx, dword ptr [ecx + 0x7c] */
    340     /* cmp edx, 0xFFFFFFFEu */ /* 0x47093F1D: cmp edx, -2 */
    341     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu);
    342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    343     _flag_k = FK_CMP;
    344     MEM32(eax + 0x30) = edx; /* 0x47093F20: mov dword ptr [eax + 0x30], edx */
    345     MEM32(eax + 0x34) = 0xFFFFFFFEu; /* 0x47093F23: mov dword ptr [eax + 0x34], 0xfffffffe */
    346     MEM32(ecx + 0x7C) = esi; /* 0x47093F2A: mov dword ptr [ecx + 0x7c], esi */
    347     if (CMP_NE(_flag_a, _flag_b)) goto L_47093F3B; /* 0x47093F2D: jne 0x47093f3b */
    348 L_47093F2F:
    349     edi = POP32_VAL(esp); /* 0x47093F2F: pop edi */
    350     MEM32(ecx + 0x80) = esi; /* 0x47093F30: mov dword ptr [ecx + 0x80], esi */
    351     esi = POP32_VAL(esp); /* 0x47093F36: pop esi */
    352     ebx = POP32_VAL(esp); /* 0x47093F37: pop ebx */
    353     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47093F38: ret 4 */
    354 L_47093F3B:
    355     ecx = MEM32(ecx + 0x8); /* 0x47093F3B: mov ecx, dword ptr [ecx + 8] */
    356     eax = edx * 8; /* 0x47093F3E: lea eax, [edx*8] */
    357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    359     eax = eax - edx; /* 0x47093F45: sub eax, edx */
    360     _flag_k = FK_CMP;
    361     edi = POP32_VAL(esp); /* 0x47093F47: pop edi */
    362     MEM32(ecx + eax * 8 + 0x34) = esi; /* 0x47093F48: mov dword ptr [ecx + eax*8 + 0x34], esi */
    363     esi = POP32_VAL(esp); /* 0x47093F4C: pop esi */
    364     ebx = POP32_VAL(esp); /* 0x47093F4D: pop ebx */
    365     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47093F4E: ret 4 */
    366     RECOMP_REGS_OUT();
    367 }
    368 
    369 void sub_47093F60(void) {
    370     int _fpu_cmp = 0;
    371     uint32_t _cf = 0;
    372     int _df = 1;
    373     uint32_t _flag_k = FK_NONE;
    374     uint32_t _flag_a = 0, _flag_b = 0;
    375     uint32_t _itail_tgt = 0;
    376     RECOMP_REGS_LOCALS
    377     RECOMP_ENTER(0x47093F60u);
    378 
    379 L_47093F60:
    380     PUSH32(esp, esi); /* 0x47093F60: push esi */
    381     esi = ecx; /* 0x47093F61: mov esi, ecx */
    382     eax = MEM32(esi + 0x44); /* 0x47093F63: mov eax, dword ptr [esi + 0x44] */
    383     /* cmp eax, 0xFFFFFFFFu */ /* 0x47093F66: cmp eax, -1 */
    384     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    386     _flag_k = FK_CMP;
    387     PUSH32(esp, edi); /* 0x47093F69: push edi */
    388     edi = MEM32(esp + 0xC); /* 0x47093F6A: mov edi, dword ptr [esp + 0xc] */
    389     MEM32(edi) = eax; /* 0x47093F6E: mov dword ptr [edi], eax */
    390     if (CMP_EQ(_flag_a, _flag_b)) goto L_47093F79; /* 0x47093F70: je 0x47093f79 */
    391 L_47093F72:
    392     edi = POP32_VAL(esp); /* 0x47093F72: pop edi */
    393     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    394     eax = 0; /* 0x47093F73: xor eax, eax */
    395     _cf = 0;
    396     _flag_k = FK_TEST;
    397     esi = POP32_VAL(esp); /* 0x47093F75: pop esi */
    398     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47093F76: ret 4 */
    399 L_47093F79:
    400     eax = MEM32(esi + 0xC); /* 0x47093F79: mov eax, dword ptr [esi + 0xc] */
    401     /* cmp eax, 0x00010000u */ /* 0x47093F7C: cmp eax, 0x10000 */
    402     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u);
    403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    404     _flag_k = FK_CMP;
    405     if (CMP_AE(_flag_a, _flag_b)) goto L_47093F87; /* 0x47093F81: jae 0x47093f87 */
    406 L_47093F83:
    407     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    408     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    409     eax = eax + eax; /* 0x47093F83: add eax, eax */
    410     _flag_k = FK_ADD;
    411     goto L_47093F8C; /* 0x47093F85: jmp 0x47093f8c */
    412 L_47093F87:
    413     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u);
    414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    415     eax = eax + 0x8000u; /* 0x47093F87: add eax, 0x8000 */
    416     _flag_k = FK_ADD;
    417 L_47093F8C:
    418     PUSH32(esp, eax); /* 0x47093F8C: push eax */
    419     ecx = esi; /* 0x47093F8D: mov ecx, esi */
    420     RECOMP_ICALL(0x47093B60u); /* 0x47093F8F: call 0x47093b60 */ /* not lifted */
    421     RECOMP_FLAGS_IN();
    422     /* test eax, eax */ /* 0x47093F94: test eax, eax */
    423     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    424     _cf = 0;
    425     _flag_k = FK_TEST;
    426     if (TEST_NZ(_flag_a, _flag_b)) goto L_47093F9D; /* 0x47093F96: jne 0x47093f9d */
    427 L_47093F98:
    428     ecx = MEM32(esi + 0x44); /* 0x47093F98: mov ecx, dword ptr [esi + 0x44] */
    429     MEM32(edi) = ecx; /* 0x47093F9B: mov dword ptr [edi], ecx */
    430 L_47093F9D:
    431     edi = POP32_VAL(esp); /* 0x47093F9D: pop edi */
    432     esi = POP32_VAL(esp); /* 0x47093F9E: pop esi */
    433     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47093F9F: ret 4 */
    434     RECOMP_REGS_OUT();
    435 }
    436 
    437 void sub_47093FB0(void) {
    438     int _fpu_cmp = 0;
    439     uint32_t _cf = 0;
    440     int _df = 1;
    441     uint32_t _flag_k = FK_NONE;
    442     uint32_t _flag_a = 0, _flag_b = 0;
    443     uint32_t _itail_tgt = 0;
    444     RECOMP_REGS_LOCALS
    445     RECOMP_ENTER(0x47093FB0u);
    446 
    447 L_47093FB0:
    448     ecx = 0x4710FBA9u; /* 0x47093FB0: mov ecx, 0x4710fba9 */
    449     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47093FB5: call dword ptr [0x470ac1c8] */
    450     RECOMP_FLAGS_IN();
    451     PUSH32(esp, 0x47093FD0u); /* 0x47093FBB: push 0x47093fd0 */
    452     RECOMP_ICALL(0x470A32D9u); /* 0x47093FC0: call 0x470a32d9 */ /* not lifted */
    453     RECOMP_FLAGS_IN();
    454     ecx = POP32_VAL(esp); /* 0x47093FC5: pop ecx */
    455     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47093FC6: ret  */
    456     RECOMP_REGS_OUT();
    457 }
    458 
    459 void sub_47093FD0(void) {
    460     int _fpu_cmp = 0;
    461     uint32_t _cf = 0;
    462     int _df = 1;
    463     uint32_t _flag_k = FK_NONE;
    464     uint32_t _flag_a = 0, _flag_b = 0;
    465     uint32_t _itail_tgt = 0;
    466     RECOMP_REGS_LOCALS
    467     RECOMP_ENTER(0x47093FD0u);
    468 
    469 L_47093FD0:
    470     ecx = 0x4710FBA9u; /* 0x47093FD0: mov ecx, 0x4710fba9 */
    471 L_47093FD5:
    472     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
    473     { RECOMP_REGS_OUT(); return; } /* end of function */
    474   _ljump:
    475     switch (_itail_tgt) {
    476       case 0x47093FD0u: goto L_47093FD0;
    477       case 0x47093FD5u: goto L_47093FD5;
    478       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    479     }
    480     RECOMP_REGS_OUT();
    481 }
    482 
    483 void sub_47093FE0(void) {
    484     int _fpu_cmp = 0;
    485     uint32_t _cf = 0;
    486     int _df = 1;
    487     uint32_t _flag_k = FK_NONE;
    488     uint32_t _flag_a = 0, _flag_b = 0;
    489     uint32_t _itail_tgt = 0;
    490     RECOMP_REGS_LOCALS
    491     RECOMP_ENTER(0x47093FE0u);
    492 
    493 L_47093FE0:
    494     ecx = 0x4710FBA8u; /* 0x47093FE0: mov ecx, 0x4710fba8 */
    495     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47093FE5: call dword ptr [0x470ac1c4] */
    496     RECOMP_FLAGS_IN();
    497     PUSH32(esp, 0x47094000u); /* 0x47093FEB: push 0x47094000 */
    498     RECOMP_ICALL(0x470A32D9u); /* 0x47093FF0: call 0x470a32d9 */ /* not lifted */
    499     RECOMP_FLAGS_IN();
    500     ecx = POP32_VAL(esp); /* 0x47093FF5: pop ecx */
    501     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47093FF6: ret  */
    502     RECOMP_REGS_OUT();
    503 }
    504 
    505 void sub_47094000(void) {
    506     int _fpu_cmp = 0;
    507     uint32_t _cf = 0;
    508     int _df = 1;
    509     uint32_t _flag_k = FK_NONE;
    510     uint32_t _flag_a = 0, _flag_b = 0;
    511     uint32_t _itail_tgt = 0;
    512     RECOMP_REGS_LOCALS
    513     RECOMP_ENTER(0x47094000u);
    514 
    515 L_47094000:
    516     ecx = 0x4710FBA8u; /* 0x47094000: mov ecx, 0x4710fba8 */
    517 L_47094005:
    518     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
    519     { RECOMP_REGS_OUT(); return; } /* end of function */
    520   _ljump:
    521     switch (_itail_tgt) {
    522       case 0x47094000u: goto L_47094000;
    523       case 0x47094005u: goto L_47094005;
    524       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    525     }
    526     RECOMP_REGS_OUT();
    527 }
    528 
    529 void sub_47094010(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(0x47094010u);
    538 
    539 L_47094010:
    540     MEM32(0x4710FB9C) = 0x47104A3Cu; /* 0x47094010: mov dword ptr [0x4710fb9c], 0x47104a3c */
    541     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709401A: ret  */
    542     RECOMP_REGS_OUT();
    543 }
    544 
    545 void sub_47094020(void) {
    546     int _fpu_cmp = 0;
    547     uint32_t _cf = 0;
    548     int _df = 1;
    549     uint32_t _flag_k = FK_NONE;
    550     uint32_t _flag_a = 0, _flag_b = 0;
    551     uint32_t _itail_tgt = 0;
    552     RECOMP_REGS_LOCALS
    553     RECOMP_ENTER(0x47094020u);
    554 
    555 L_47094020:
    556     MEM32(0x4710FBB0) = 0x47104A00u; /* 0x47094020: mov dword ptr [0x4710fbb0], 0x47104a00 */
    557     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709402A: ret  */
    558     RECOMP_REGS_OUT();
    559 }
    560 
    561 void sub_47094030(void) {
    562     int _fpu_cmp = 0;
    563     uint32_t _cf = 0;
    564     int _df = 1;
    565     uint32_t _flag_k = FK_NONE;
    566     uint32_t _flag_a = 0, _flag_b = 0;
    567     uint32_t _itail_tgt = 0;
    568     RECOMP_REGS_LOCALS
    569     RECOMP_ENTER(0x47094030u);
    570 
    571 L_47094030:
    572     MEM32(0x4710FBAC) = 0x47104A70u; /* 0x47094030: mov dword ptr [0x4710fbac], 0x47104a70 */
    573     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709403A: ret  */
    574     RECOMP_REGS_OUT();
    575 }
    576 
    577 void sub_47094040(void) {
    578     int _fpu_cmp = 0;
    579     uint32_t _cf = 0;
    580     int _df = 1;
    581     uint32_t _flag_k = FK_NONE;
    582     uint32_t _flag_a = 0, _flag_b = 0;
    583     uint32_t _itail_tgt = 0;
    584     RECOMP_REGS_LOCALS
    585     RECOMP_ENTER(0x47094040u);
    586 
    587 L_47094040:
    588     MEM32(0x4710FBC0) = 0x47104B6Cu; /* 0x47094040: mov dword ptr [0x4710fbc0], 0x47104b6c */
    589     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709404A: ret  */
    590     RECOMP_REGS_OUT();
    591 }
    592 
    593 void sub_47094050(void) {
    594     int _fpu_cmp = 0;
    595     uint32_t _cf = 0;
    596     int _df = 1;
    597     uint32_t _flag_k = FK_NONE;
    598     uint32_t _flag_a = 0, _flag_b = 0;
    599     uint32_t _itail_tgt = 0;
    600     RECOMP_REGS_LOCALS
    601     RECOMP_ENTER(0x47094050u);
    602 
    603 L_47094050:
    604     MEM32(0x4710FBA4) = 0x47104BA0u; /* 0x47094050: mov dword ptr [0x4710fba4], 0x47104ba0 */
    605     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709405A: ret  */
    606     RECOMP_REGS_OUT();
    607 }
    608 
    609 void sub_47094060(void) {
    610     int _fpu_cmp = 0;
    611     uint32_t _cf = 0;
    612     int _df = 1;
    613     uint32_t _flag_k = FK_NONE;
    614     uint32_t _flag_a = 0, _flag_b = 0;
    615     uint32_t _itail_tgt = 0;
    616     RECOMP_REGS_LOCALS
    617     RECOMP_ENTER(0x47094060u);
    618 
    619 L_47094060:
    620     MEM32(0x4710FBBC) = 0x47104BD4u; /* 0x47094060: mov dword ptr [0x4710fbbc], 0x47104bd4 */
    621     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709406A: ret  */
    622     RECOMP_REGS_OUT();
    623 }
    624 
    625 void sub_47094070(void) {
    626     int _fpu_cmp = 0;
    627     uint32_t _cf = 0;
    628     int _df = 1;
    629     uint32_t _flag_k = FK_NONE;
    630     uint32_t _flag_a = 0, _flag_b = 0;
    631     uint32_t _itail_tgt = 0;
    632     RECOMP_REGS_LOCALS
    633     RECOMP_ENTER(0x47094070u);
    634 
    635 L_47094070:
    636     MEM32(0x4710FBB4) = 0x471050FCu; /* 0x47094070: mov dword ptr [0x4710fbb4], 0x471050fc */
    637     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709407A: ret  */
    638     RECOMP_REGS_OUT();
    639 }
    640 
    641 void sub_47094080(void) {
    642     int _fpu_cmp = 0;
    643     uint32_t _cf = 0;
    644     int _df = 1;
    645     uint32_t _flag_k = FK_NONE;
    646     uint32_t _flag_a = 0, _flag_b = 0;
    647     uint32_t _itail_tgt = 0;
    648     RECOMP_REGS_LOCALS
    649     RECOMP_ENTER(0x47094080u);
    650 
    651 L_47094080:
    652     MEM32(0x4710FBB8) = 0x471053F0u; /* 0x47094080: mov dword ptr [0x4710fbb8], 0x471053f0 */
    653     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709408A: ret  */
    654     RECOMP_REGS_OUT();
    655 }
    656 
    657 void sub_47094090(void) {
    658     int _fpu_cmp = 0;
    659     uint32_t _cf = 0;
    660     int _df = 1;
    661     uint32_t _flag_k = FK_NONE;
    662     uint32_t _flag_a = 0, _flag_b = 0;
    663     uint32_t _itail_tgt = 0;
    664     RECOMP_REGS_LOCALS
    665     RECOMP_ENTER(0x47094090u);
    666 
    667 L_47094090:
    668     MEM32(0x4710FBA0) = 0x4710CFE0u; /* 0x47094090: mov dword ptr [0x4710fba0], 0x4710cfe0 */
    669     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709409A: ret  */
    670     RECOMP_REGS_OUT();
    671 }
    672 
    673 void sub_470940A0(void) {
    674     int _fpu_cmp = 0;
    675     uint32_t _cf = 0;
    676     int _df = 1;
    677     uint32_t _flag_k = FK_NONE;
    678     uint32_t _flag_a = 0, _flag_b = 0;
    679     uint32_t _itail_tgt = 0;
    680     RECOMP_REGS_LOCALS
    681     RECOMP_ENTER(0x470940A0u);
    682 
    683 L_470940A0:
    684     PUSH32(esp, 0xFFFFFFFFu); /* 0x470940A0: push -1 */
    685     PUSH32(esp, 0x470AAFECu); /* 0x470940A2: push 0x470aafec */
    686     eax = MEM32(FS_BASE + (0)); /* 0x470940A7: mov eax, dword ptr fs:[0] */
    687     PUSH32(esp, eax); /* 0x470940AD: push eax */
    688     MEM32(FS_BASE + (0)) = esp; /* 0x470940AE: mov dword ptr fs:[0], esp */
    689     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    691     esp = esp - 8; /* 0x470940B5: sub esp, 8 */
    692     _flag_k = FK_CMP;
    693     PUSH32(esp, ebx); /* 0x470940B8: push ebx */
    694     PUSH32(esp, esi); /* 0x470940B9: push esi */
    695     PUSH32(esp, edi); /* 0x470940BA: push edi */
    696     edi = ecx; /* 0x470940BB: mov edi, ecx */
    697     MEM32(esp + 0xC) = edi; /* 0x470940BD: mov dword ptr [esp + 0xc], edi */
    698     MEM32(edi) = 0x470AC4F4u; /* 0x470940C1: mov dword ptr [edi], 0x470ac4f4 */
    699     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    700     ebx = 0; /* 0x470940C7: xor ebx, ebx */
    701     _cf = 0;
    702     _flag_k = FK_TEST;
    703     PUSH32(esp, ebx); /* 0x470940C9: push ebx */
    704     PUSH32(esp, ebx); /* 0x470940CA: push ebx */
    705     ecx = edi + 0x8; /* 0x470940CB: lea ecx, [edi + 8] */
    706     MEM32(esp + 0x24) = ebx; /* 0x470940CE: mov dword ptr [esp + 0x24], ebx */
    707     RECOMP_ICALL(0x47087E50u); /* 0x470940D2: call 0x47087e50 */ /* not lifted */
    708     RECOMP_FLAGS_IN();
    709     esi = edi + 0x24; /* 0x470940D7: lea esi, [edi + 0x24] */
    710     MEM32(esp + 0x10) = esi; /* 0x470940DA: mov dword ptr [esp + 0x10], esi */
    711     MEM32(esi) = ebx; /* 0x470940DE: mov dword ptr [esi], ebx */
    712     ecx = esi + 0x14; /* 0x470940E0: lea ecx, [esi + 0x14] */
    713     PUSH32(esp, ebx); /* 0x470940E3: push ebx */
    714     MEM8(esp + 0x20) = (uint8_t)(2); /* 0x470940E4: mov byte ptr [esp + 0x20], 2 */
    715     MEM32(esi + 0x8) = ebx; /* 0x470940E9: mov dword ptr [esi + 8], ebx */
    716     MEM32(esi + 0xC) = ebx; /* 0x470940EC: mov dword ptr [esi + 0xc], ebx */
    717     MEM32(esi + 0x10) = ebx; /* 0x470940EF: mov dword ptr [esi + 0x10], ebx */
    718     RECOMP_ICALL(0x47038900u); /* 0x470940F2: call 0x47038900 */ /* not lifted */
    719     RECOMP_FLAGS_IN();
    720     ecx = esi + 0x4C; /* 0x470940F7: lea ecx, [esi + 0x4c] */
    721     PUSH32(esp, ebx); /* 0x470940FA: push ebx */
    722     MEM8(esp + 0x20) = (uint8_t)(3); /* 0x470940FB: mov byte ptr [esp + 0x20], 3 */
    723     RECOMP_ICALL(0x47038900u); /* 0x47094100: call 0x47038900 */ /* not lifted */
    724     RECOMP_FLAGS_IN();
    725     ecx = esi; /* 0x47094105: mov ecx, esi */
    726     MEM8(esp + 0x1C) = (uint8_t)(5); /* 0x47094107: mov byte ptr [esp + 0x1c], 5 */
    727     RECOMP_ICALL(0x47093E20u); /* 0x4709410C: call 0x47093e20 */ /* not lifted */
    728     RECOMP_FLAGS_IN();
    729     MEM32(esi + 0xC) = ebx; /* 0x47094111: mov dword ptr [esi + 0xc], ebx */
    730     MEM32(esi + 0x10) = ebx; /* 0x47094114: mov dword ptr [esi + 0x10], ebx */
    731     MEM32(esi + 0x44) = 0xFFFFFFFFu; /* 0x47094117: mov dword ptr [esi + 0x44], 0xffffffff */
    732     eax = 0xFFFFFFFEu; /* 0x4709411E: mov eax, 0xfffffffe */
    733     MEM32(esi + 0x48) = 0xFFFFFFFFu; /* 0x47094123: mov dword ptr [esi + 0x48], 0xffffffff */
    734     MEM32(esi + 0x7C) = eax; /* 0x4709412A: mov dword ptr [esi + 0x7c], eax */
    735     MEM32(esi + 0x80) = eax; /* 0x4709412D: mov dword ptr [esi + 0x80], eax */
    736     RECOMP_ICALL(0x4703DAC0u); /* 0x47094133: call 0x4703dac0 */ /* not lifted */
    737     RECOMP_FLAGS_IN();
    738     PUSH32(esp, 0x400u); /* 0x47094138: push 0x400 */
    739     ecx = esi; /* 0x4709413D: mov ecx, esi */
    740     MEM32(esi) = eax; /* 0x4709413F: mov dword ptr [esi], eax */
    741     RECOMP_ICALL(0x47095470u); /* 0x47094141: call 0x47095470 */ /* not lifted */
    742     RECOMP_FLAGS_IN();
    743     /* cmp eax, 0xFFFFFFFFu */ /* 0x47094146: cmp eax, -1 */
    744     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    746     _flag_k = FK_CMP;
    747     MEM8(esp + 0x1C) = (uint8_t)(4); /* 0x47094149: mov byte ptr [esp + 0x1c], 4 */
    748     if (CMP_NE(_flag_a, _flag_b)) goto L_470941AB; /* 0x4709414E: jne 0x470941ab */
    749 L_47094150:
    750     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47094150: call dword ptr [0x470ac150] */
    751     RECOMP_FLAGS_IN();
    752     esi = eax; /* 0x47094156: mov esi, eax */
    753     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094158: call dword ptr [0x470ac3c8] */
    754     RECOMP_FLAGS_IN();
    755     eax = MEM32(eax); /* 0x4709415E: mov eax, dword ptr [eax] */
    756     /* cmp eax, ebx */ /* 0x47094160: cmp eax, ebx */
    757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    759     _flag_k = FK_CMP;
    760     ebx = esi; /* 0x47094162: mov ebx, esi */
    761     if (CMP_EQ(_flag_a, _flag_b)) goto L_47094168; /* 0x47094164: je 0x47094168 */
    762 L_47094166:
    763     ebx = eax; /* 0x47094166: mov ebx, eax */
    764 L_47094168:
    765     RECOMP_ICALL(0x47039020u); /* 0x47094168: call 0x47039020 */ /* not lifted */
    766     RECOMP_FLAGS_IN();
    767     esi = eax; /* 0x4709416D: mov esi, eax */
    768     ecx = esi; /* 0x4709416F: mov ecx, esi */
    769     RECOMP_ICALL(0x4703B210u); /* 0x47094171: call 0x4703b210 */ /* not lifted */
    770     RECOMP_FLAGS_IN();
    771     PUSH32(esp, eax); /* 0x47094176: push eax */
    772     ecx = esi; /* 0x47094177: mov ecx, esi */
    773     RECOMP_ICALL(0x4703B240u); /* 0x47094179: call 0x4703b240 */ /* not lifted */
    774     RECOMP_FLAGS_IN();
    775     PUSH32(esp, eax); /* 0x4709417E: push eax */
    776     ecx = esi; /* 0x4709417F: mov ecx, esi */
    777     RECOMP_ICALL(0x4703B080u); /* 0x47094181: call 0x4703b080 */ /* not lifted */
    778     RECOMP_FLAGS_IN();
    779     PUSH32(esp, eax); /* 0x47094186: push eax */
    780     PUSH32(esp, ebx); /* 0x47094187: push ebx */
    781     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094188: push -1 */
    782     PUSH32(esp, 0x38u); /* 0x4709418A: push 0x38 */
    783     PUSH32(esp, 0x4710595Cu); /* 0x4709418C: push 0x4710595c */
    784     ecx = esi; /* 0x47094191: mov ecx, esi */
    785     RECOMP_ICALL(0x4703A340u); /* 0x47094193: call 0x4703a340 */ /* not lifted */
    786     RECOMP_FLAGS_IN();
    787     PUSH32(esp, 0x47105948u); /* 0x47094198: push 0x47105948 */
    788     PUSH32(esp, 0x80u); /* 0x4709419D: push 0x80 */
    789     PUSH32(esp, esi); /* 0x470941A2: push esi */
    790     RECOMP_ICALL(0x47039830u); /* 0x470941A3: call 0x47039830 */ /* not lifted */
    791     RECOMP_FLAGS_IN();
    792     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    793     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    794     esp = esp + 0xCu; /* 0x470941A8: add esp, 0xc */
    795     _flag_k = FK_ADD;
    796 L_470941AB:
    797     ecx = MEM32(esp + 0x14); /* 0x470941AB: mov ecx, dword ptr [esp + 0x14] */
    798     MEM32(edi) = 0x470AFE30u; /* 0x470941AF: mov dword ptr [edi], 0x470afe30 */
    799     eax = edi; /* 0x470941B5: mov eax, edi */
    800     edi = POP32_VAL(esp); /* 0x470941B7: pop edi */
    801     esi = POP32_VAL(esp); /* 0x470941B8: pop esi */
    802     ebx = POP32_VAL(esp); /* 0x470941B9: pop ebx */
    803     MEM32(FS_BASE + (0)) = ecx; /* 0x470941BA: mov dword ptr fs:[0], ecx */
    804     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    806     esp = esp + 0x14u; /* 0x470941C1: add esp, 0x14 */
    807     _flag_k = FK_ADD;
    808     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470941C4: ret  */
    809     RECOMP_REGS_OUT();
    810 }
    811 
    812 void sub_470941D0(void) {
    813     int _fpu_cmp = 0;
    814     uint32_t _cf = 0;
    815     int _df = 1;
    816     uint32_t _flag_k = FK_NONE;
    817     uint32_t _flag_a = 0, _flag_b = 0;
    818     uint32_t _itail_tgt = 0;
    819     RECOMP_REGS_LOCALS
    820     RECOMP_ENTER(0x470941D0u);
    821 
    822 L_470941D0:
    823     PUSH32(esp, ebx); /* 0x470941D0: push ebx */
    824     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470941D1: mov bl, byte ptr [esp + 8] */
    825     /* test LO8(ebx), 2 */ /* 0x470941D5: test bl, 2 */
    826     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    827     _cf = 0;
    828     _flag_k = FK_NARROW(FK_TEST, 24);
    829     PUSH32(esp, esi); /* 0x470941D8: push esi */
    830     esi = ecx; /* 0x470941D9: mov esi, ecx */
    831     if (TEST_Z(_flag_a, _flag_b)) goto L_4709420B; /* 0x470941DB: je 0x4709420b */
    832 L_470941DD:
    833     eax = MEM32(esi + (-0x4)); /* 0x470941DD: mov eax, dword ptr [esi - 4] */
    834     PUSH32(esp, edi); /* 0x470941E0: push edi */
    835     PUSH32(esp, 0x47094230u); /* 0x470941E1: push 0x47094230 */
    836     edi = esi + (-0x4); /* 0x470941E6: lea edi, [esi - 4] */
    837     PUSH32(esp, eax); /* 0x470941E9: push eax */
    838     PUSH32(esp, 0xA8u); /* 0x470941EA: push 0xa8 */
    839     PUSH32(esp, esi); /* 0x470941EF: push esi */
    840     RECOMP_ICALL(0x470A32EBu); /* 0x470941F0: call 0x470a32eb */ /* not lifted */
    841     RECOMP_FLAGS_IN();
    842     /* test LO8(ebx), 1 */ /* 0x470941F5: test bl, 1 */
    843     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    844     _cf = 0;
    845     _flag_k = FK_NARROW(FK_TEST, 24);
    846     if (TEST_Z(_flag_a, _flag_b)) goto L_47094203; /* 0x470941F8: je 0x47094203 */
    847 L_470941FA:
    848     PUSH32(esp, edi); /* 0x470941FA: push edi */
    849     RECOMP_ICALL(0x470A32A2u); /* 0x470941FB: call 0x470a32a2 */ /* not lifted */
    850     RECOMP_FLAGS_IN();
    851     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    852     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    853     esp = esp + 4; /* 0x47094200: add esp, 4 */
    854     _flag_k = FK_ADD;
    855 L_47094203:
    856     eax = edi; /* 0x47094203: mov eax, edi */
    857     edi = POP32_VAL(esp); /* 0x47094205: pop edi */
    858     esi = POP32_VAL(esp); /* 0x47094206: pop esi */
    859     ebx = POP32_VAL(esp); /* 0x47094207: pop ebx */
    860     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47094208: ret 4 */
    861 L_4709420B:
    862     ecx = esi; /* 0x4709420B: mov ecx, esi */
    863     RECOMP_ICALL(0x47094230u); /* 0x4709420D: call 0x47094230 */ /* not lifted */
    864     RECOMP_FLAGS_IN();
    865     /* test LO8(ebx), 1 */ /* 0x47094212: test bl, 1 */
    866     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    867     _cf = 0;
    868     _flag_k = FK_NARROW(FK_TEST, 24);
    869     if (TEST_Z(_flag_a, _flag_b)) goto L_47094220; /* 0x47094215: je 0x47094220 */
    870 L_47094217:
    871     PUSH32(esp, esi); /* 0x47094217: push esi */
    872     RECOMP_ICALL(0x470A32A2u); /* 0x47094218: call 0x470a32a2 */ /* not lifted */
    873     RECOMP_FLAGS_IN();
    874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    876     esp = esp + 4; /* 0x4709421D: add esp, 4 */
    877     _flag_k = FK_ADD;
    878 L_47094220:
    879     eax = esi; /* 0x47094220: mov eax, esi */
    880     esi = POP32_VAL(esp); /* 0x47094222: pop esi */
    881     ebx = POP32_VAL(esp); /* 0x47094223: pop ebx */
    882     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47094224: ret 4 */
    883     RECOMP_REGS_OUT();
    884 }
    885 
    886 void sub_47094230(void) {
    887     int _fpu_cmp = 0;
    888     uint32_t _cf = 0;
    889     int _df = 1;
    890     uint32_t _flag_k = FK_NONE;
    891     uint32_t _flag_a = 0, _flag_b = 0;
    892     uint32_t _itail_tgt = 0;
    893     RECOMP_REGS_LOCALS
    894     RECOMP_ENTER(0x47094230u);
    895 
    896 L_47094230:
    897     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094230: push -1 */
    898     PUSH32(esp, 0x470AB047u); /* 0x47094232: push 0x470ab047 */
    899     eax = MEM32(FS_BASE + (0)); /* 0x47094237: mov eax, dword ptr fs:[0] */
    900     PUSH32(esp, eax); /* 0x4709423D: push eax */
    901     MEM32(FS_BASE + (0)) = esp; /* 0x4709423E: mov dword ptr fs:[0], esp */
    902     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    904     esp = esp - 8; /* 0x47094245: sub esp, 8 */
    905     _flag_k = FK_CMP;
    906     PUSH32(esp, ebx); /* 0x47094248: push ebx */
    907     ebx = ecx; /* 0x47094249: mov ebx, ecx */
    908     PUSH32(esp, esi); /* 0x4709424B: push esi */
    909     PUSH32(esp, edi); /* 0x4709424C: push edi */
    910     MEM32(esp + 0xC) = ebx; /* 0x4709424D: mov dword ptr [esp + 0xc], ebx */
    911     MEM32(ebx) = 0x470AFE30u; /* 0x47094251: mov dword ptr [ebx], 0x470afe30 */
    912     esi = MEM32(ebx + 0xA0); /* 0x47094257: mov esi, dword ptr [ebx + 0xa0] */
    913     edi = ebx + 0x24; /* 0x4709425D: lea edi, [ebx + 0x24] */
    914     MEM32(esp + 0x1C) = 2; /* 0x47094260: mov dword ptr [esp + 0x1c], 2 */
    915 L_47094268:
    916     /* cmp esi, 0xFFFFFFFEu */ /* 0x47094268: cmp esi, -2 */
    917     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFEu);
    918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    919     _flag_k = FK_CMP;
    920     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709429B; /* 0x4709426B: je 0x4709429b */
    921 L_4709426D:
    922     ecx = MEM32(edi + 0x8); /* 0x4709426D: mov ecx, dword ptr [edi + 8] */
    923     eax = esi * 8; /* 0x47094270: lea eax, [esi*8] */
    924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    926     eax = eax - esi; /* 0x47094277: sub eax, esi */
    927     _flag_k = FK_CMP;
    928     eax = ecx + eax * 8; /* 0x47094279: lea eax, [ecx + eax*8] */
    929     ecx = MEM32(eax + 0x2C); /* 0x4709427C: mov ecx, dword ptr [eax + 0x2c] */
    930     /* test ecx, ecx */ /* 0x4709427F: test ecx, ecx */
    931     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    932     _cf = 0;
    933     _flag_k = FK_TEST;
    934     if (TEST_Z(_flag_a, _flag_b)) goto L_47094289; /* 0x47094281: je 0x47094289 */
    935 L_47094283:
    936     edx = MEM32(ecx); /* 0x47094283: mov edx, dword ptr [ecx] */
    937     PUSH32(esp, 1); /* 0x47094285: push 1 */
    938     RECOMP_ICALL(MEM32(edx)); /* 0x47094287: call dword ptr [edx] */
    939     RECOMP_FLAGS_IN();
    940 L_47094289:
    941     ecx = MEM32(edi + 0x8); /* 0x47094289: mov ecx, dword ptr [edi + 8] */
    942     eax = esi * 8; /* 0x4709428C: lea eax, [esi*8] */
    943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    945     eax = eax - esi; /* 0x47094293: sub eax, esi */
    946     _flag_k = FK_CMP;
    947     esi = MEM32(ecx + eax * 8 + 0x30); /* 0x47094295: mov esi, dword ptr [ecx + eax*8 + 0x30] */
    948     RECOMP_BACKEDGE();
    949     goto L_47094268; /* 0x47094299: jmp 0x47094268 */
    950 L_4709429B:
    951     esi = edi; /* 0x4709429B: mov esi, edi */
    952     MEM32(esp + 0x10) = esi; /* 0x4709429D: mov dword ptr [esp + 0x10], esi */
    953     ecx = esi; /* 0x470942A1: mov ecx, esi */
    954     MEM8(esp + 0x1C) = (uint8_t)(6); /* 0x470942A3: mov byte ptr [esp + 0x1c], 6 */
    955     RECOMP_ICALL(0x47093D80u); /* 0x470942A8: call 0x47093d80 */ /* not lifted */
    956     RECOMP_FLAGS_IN();
    957     ecx = esi + 0x4C; /* 0x470942AD: lea ecx, [esi + 0x4c] */
    958     MEM8(esp + 0x1C) = (uint8_t)(4); /* 0x470942B0: mov byte ptr [esp + 0x1c], 4 */
    959     RECOMP_ICALL(0x47038A00u); /* 0x470942B5: call 0x47038a00 */ /* not lifted */
    960     RECOMP_FLAGS_IN();
    961     ecx = esi + 0x14; /* 0x470942BA: lea ecx, [esi + 0x14] */
    962     MEM8(esp + 0x1C) = (uint8_t)(3); /* 0x470942BD: mov byte ptr [esp + 0x1c], 3 */
    963     RECOMP_ICALL(0x47038A00u); /* 0x470942C2: call 0x47038a00 */ /* not lifted */
    964     RECOMP_FLAGS_IN();
    965     ecx = ebx + 0x8; /* 0x470942C7: lea ecx, [ebx + 8] */
    966     MEM8(esp + 0x1C) = (uint8_t)(0); /* 0x470942CA: mov byte ptr [esp + 0x1c], 0 */
    967     RECOMP_ICALL(0x47087E30u); /* 0x470942CF: call 0x47087e30 */ /* not lifted */
    968     RECOMP_FLAGS_IN();
    969     ecx = MEM32(esp + 0x14); /* 0x470942D4: mov ecx, dword ptr [esp + 0x14] */
    970     edi = POP32_VAL(esp); /* 0x470942D8: pop edi */
    971     MEM32(ebx) = 0x470AC4F4u; /* 0x470942D9: mov dword ptr [ebx], 0x470ac4f4 */
    972     esi = POP32_VAL(esp); /* 0x470942DF: pop esi */
    973     ebx = POP32_VAL(esp); /* 0x470942E0: pop ebx */
    974     MEM32(FS_BASE + (0)) = ecx; /* 0x470942E1: mov dword ptr fs:[0], ecx */
    975     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    976     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    977     esp = esp + 0x14u; /* 0x470942E8: add esp, 0x14 */
    978     _flag_k = FK_ADD;
    979     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470942EB: ret  */
    980     RECOMP_REGS_OUT();
    981 }
    982 
    983 void sub_470942F0(void) {
    984     int _fpu_cmp = 0;
    985     uint32_t _cf = 0;
    986     int _df = 1;
    987     uint32_t _flag_k = FK_NONE;
    988     uint32_t _flag_a = 0, _flag_b = 0;
    989     uint32_t _itail_tgt = 0;
    990     RECOMP_REGS_LOCALS
    991     RECOMP_ENTER(0x470942F0u);
    992 
    993 L_470942F0:
    994     eax = MEM32(FS_BASE + (0)); /* 0x470942F0: mov eax, dword ptr fs:[0] */
    995     PUSH32(esp, 0xFFFFFFFFu); /* 0x470942F6: push -1 */
    996     PUSH32(esp, 0x470AB086u); /* 0x470942F8: push 0x470ab086 */
    997     PUSH32(esp, eax); /* 0x470942FD: push eax */
    998     eax = MEM32(0x4710FBC4); /* 0x470942FE: mov eax, dword ptr [0x4710fbc4] */
    999     MEM32(FS_BASE + (0)) = esp; /* 0x47094303: mov dword ptr fs:[0], esp */
   1000     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1002     esp = esp - 0xCu; /* 0x4709430A: sub esp, 0xc */
   1003     _flag_k = FK_CMP;
   1004     /* test eax, eax */ /* 0x4709430D: test eax, eax */
   1005     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1006     _cf = 0;
   1007     _flag_k = FK_TEST;
   1008     PUSH32(esp, esi); /* 0x4709430F: push esi */
   1009     PUSH32(esp, edi); /* 0x47094310: push edi */
   1010     if (TEST_NZ(_flag_a, _flag_b)) goto L_470943DE; /* 0x47094311: jne 0x470943de */
   1011 L_47094317:
   1012     eax = MEM32(0x4710E8B8); /* 0x47094317: mov eax, dword ptr [0x4710e8b8] */
   1013     edi = eax + 0x4; /* 0x4709431C: lea edi, [eax + 4] */
   1014     PUSH32(esp, edi); /* 0x4709431F: push edi */
   1015     MEM32(esp + 0x10) = edi; /* 0x47094320: mov dword ptr [esp + 0x10], edi */
   1016     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47094324: call dword ptr [0x470ac180] */
   1017     RECOMP_FLAGS_IN();
   1018     MEM32(esp + 0x10) = 0; /* 0x4709432A: mov dword ptr [esp + 0x10], 0 */
   1019     eax = MEM32(0x4710FBC4); /* 0x47094332: mov eax, dword ptr [0x4710fbc4] */
   1020     /* test eax, eax */ /* 0x47094337: test eax, eax */
   1021     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1022     _cf = 0;
   1023     _flag_k = FK_TEST;
   1024     MEM32(esp + 0x1C) = 0; /* 0x47094339: mov dword ptr [esp + 0x1c], 0 */
   1025     if (TEST_NZ(_flag_a, _flag_b)) goto L_470943D7; /* 0x47094341: jne 0x470943d7 */
   1026 L_47094347:
   1027     PUSH32(esp, 0xA8u); /* 0x47094347: push 0xa8 */
   1028     RECOMP_ICALL(0x470A33F2u); /* 0x4709434C: call 0x470a33f2 */ /* not lifted */
   1029     RECOMP_FLAGS_IN();
   1030     esi = eax; /* 0x47094351: mov esi, eax */
   1031     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1032     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1033     esp = esp + 4; /* 0x47094353: add esp, 4 */
   1034     _flag_k = FK_ADD;
   1035     MEM32(esp + 0x8) = esi; /* 0x47094356: mov dword ptr [esp + 8], esi */
   1036     /* test esi, esi */ /* 0x4709435A: test esi, esi */
   1037     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1038     _cf = 0;
   1039     _flag_k = FK_TEST;
   1040     if (TEST_Z(_flag_a, _flag_b)) goto L_4709438C; /* 0x4709435C: je 0x4709438c */
   1041 L_4709435E:
   1042     MEM32(esi) = 0x470AC4F4u; /* 0x4709435E: mov dword ptr [esi], 0x470ac4f4 */
   1043     PUSH32(esp, 0); /* 0x47094364: push 0 */
   1044     PUSH32(esp, 0); /* 0x47094366: push 0 */
   1045     ecx = esi + 0x8; /* 0x47094368: lea ecx, [esi + 8] */
   1046     MEM8(esp + 0x24) = (uint8_t)(2); /* 0x4709436B: mov byte ptr [esp + 0x24], 2 */
   1047     RECOMP_ICALL(0x47087E50u); /* 0x47094370: call 0x47087e50 */ /* not lifted */
   1048     RECOMP_FLAGS_IN();
   1049     PUSH32(esp, 0); /* 0x47094375: push 0 */
   1050     ecx = esi + 0x24; /* 0x47094377: lea ecx, [esi + 0x24] */
   1051     MEM8(esp + 0x20) = (uint8_t)(3); /* 0x4709437A: mov byte ptr [esp + 0x20], 3 */
   1052     RECOMP_ICALL(0x47094EB0u); /* 0x4709437F: call 0x47094eb0 */ /* not lifted */
   1053     RECOMP_FLAGS_IN();
   1054     MEM32(esi) = 0x470AFE30u; /* 0x47094384: mov dword ptr [esi], 0x470afe30 */
   1055     goto L_4709438E; /* 0x4709438A: jmp 0x4709438e */
   1056 L_4709438C:
   1057     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1058     esi = 0; /* 0x4709438C: xor esi, esi */
   1059     _cf = 0;
   1060     _flag_k = FK_TEST;
   1061 L_4709438E:
   1062     /* test esi, esi */ /* 0x4709438E: test esi, esi */
   1063     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1064     _cf = 0;
   1065     _flag_k = FK_TEST;
   1066     MEM8(esp + 0x1C) = (uint8_t)(0); /* 0x47094390: mov byte ptr [esp + 0x1c], 0 */
   1067     MEM32(0x4710FBC4) = esi; /* 0x47094395: mov dword ptr [0x4710fbc4], esi */
   1068     if (TEST_NZ(_flag_a, _flag_b)) goto L_470943C3; /* 0x4709439B: jne 0x470943c3 */
   1069 L_4709439D:
   1070     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4709439D: call dword ptr [0x470ac3c8] */
   1071     RECOMP_FLAGS_IN();
   1072     PUSH32(esp, edi); /* 0x470943A3: push edi */
   1073     MEM32(eax) = 0xCu; /* 0x470943A4: mov dword ptr [eax], 0xc */
   1074     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470943AA: call dword ptr [0x470ac190] */
   1075     RECOMP_FLAGS_IN();
   1076     edi = POP32_VAL(esp); /* 0x470943B0: pop edi */
   1077     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1078     eax = 0; /* 0x470943B1: xor eax, eax */
   1079     _cf = 0;
   1080     _flag_k = FK_TEST;
   1081     esi = POP32_VAL(esp); /* 0x470943B3: pop esi */
   1082     ecx = MEM32(esp + 0xC); /* 0x470943B4: mov ecx, dword ptr [esp + 0xc] */
   1083     MEM32(FS_BASE + (0)) = ecx; /* 0x470943B8: mov dword ptr fs:[0], ecx */
   1084     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1085     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1086     esp = esp + 0x18u; /* 0x470943BF: add esp, 0x18 */
   1087     _flag_k = FK_ADD;
   1088     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470943C2: ret  */
   1089 L_470943C3:
   1090     PUSH32(esp, 0); /* 0x470943C3: push 0 */
   1091     PUSH32(esp, 0x47055D30u); /* 0x470943C5: push 0x47055d30 */
   1092     PUSH32(esp, esi); /* 0x470943CA: push esi */
   1093     RECOMP_ICALL(0x470527D0u); /* 0x470943CB: call 0x470527d0 */ /* not lifted */
   1094     RECOMP_FLAGS_IN();
   1095     ecx = eax; /* 0x470943D0: mov ecx, eax */
   1096     RECOMP_ICALL(0x470528D0u); /* 0x470943D2: call 0x470528d0 */ /* not lifted */
   1097     RECOMP_FLAGS_IN();
   1098 L_470943D7:
   1099     PUSH32(esp, edi); /* 0x470943D7: push edi */
   1100     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470943D8: call dword ptr [0x470ac190] */
   1101     RECOMP_FLAGS_IN();
   1102 L_470943DE:
   1103     ecx = MEM32(esp + 0x14); /* 0x470943DE: mov ecx, dword ptr [esp + 0x14] */
   1104     eax = MEM32(0x4710FBC4); /* 0x470943E2: mov eax, dword ptr [0x4710fbc4] */
   1105     edi = POP32_VAL(esp); /* 0x470943E7: pop edi */
   1106     esi = POP32_VAL(esp); /* 0x470943E8: pop esi */
   1107     MEM32(FS_BASE + (0)) = ecx; /* 0x470943E9: mov dword ptr fs:[0], ecx */
   1108     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1109     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1110     esp = esp + 0x18u; /* 0x470943F0: add esp, 0x18 */
   1111     _flag_k = FK_ADD;
   1112     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470943F3: ret  */
   1113     RECOMP_REGS_OUT();
   1114 }
   1115 
   1116 void sub_47094400(void) {
   1117     int _fpu_cmp = 0;
   1118     uint32_t _cf = 0;
   1119     int _df = 1;
   1120     uint32_t _flag_k = FK_NONE;
   1121     uint32_t _flag_a = 0, _flag_b = 0;
   1122     uint32_t _itail_tgt = 0;
   1123     RECOMP_REGS_LOCALS
   1124     RECOMP_ENTER(0x47094400u);
   1125 
   1126 L_47094400:
   1127     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094400: push -1 */
   1128     PUSH32(esp, 0x470AB0B0u); /* 0x47094402: push 0x470ab0b0 */
   1129     eax = MEM32(FS_BASE + (0)); /* 0x47094407: mov eax, dword ptr fs:[0] */
   1130     PUSH32(esp, eax); /* 0x4709440D: push eax */
   1131     MEM32(FS_BASE + (0)) = esp; /* 0x4709440E: mov dword ptr fs:[0], esp */
   1132     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
   1133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1134     esp = esp - 0x34u; /* 0x47094415: sub esp, 0x34 */
   1135     _flag_k = FK_CMP;
   1136     PUSH32(esp, ebx); /* 0x47094418: push ebx */
   1137     PUSH32(esp, ebp); /* 0x47094419: push ebp */
   1138     PUSH32(esp, esi); /* 0x4709441A: push esi */
   1139     esi = ecx; /* 0x4709441B: mov esi, ecx */
   1140     eax = esi + 0x8; /* 0x4709441D: lea eax, [esi + 8] */
   1141     PUSH32(esp, edi); /* 0x47094420: push edi */
   1142     PUSH32(esp, eax); /* 0x47094421: push eax */
   1143     MEM32(esp + 0x14) = eax; /* 0x47094422: mov dword ptr [esp + 0x14], eax */
   1144     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47094426: call dword ptr [0x470ac180] */
   1145     RECOMP_FLAGS_IN();
   1146     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1147     edi = 0; /* 0x4709442C: xor edi, edi */
   1148     _cf = 0;
   1149     _flag_k = FK_TEST;
   1150     MEM32(esp + 0x14) = edi; /* 0x4709442E: mov dword ptr [esp + 0x14], edi */
   1151     ebx = MEM32(esp + 0x58); /* 0x47094432: mov ebx, dword ptr [esp + 0x58] */
   1152     PUSH32(esp, ebx); /* 0x47094436: push ebx */
   1153     ecx = esp + 0x1C; /* 0x47094437: lea ecx, [esp + 0x1c] */
   1154     MEM32(esp + 0x50) = edi; /* 0x4709443B: mov dword ptr [esp + 0x50], edi */
   1155     RECOMP_ICALL(0x47038900u); /* 0x4709443F: call 0x47038900 */ /* not lifted */
   1156     RECOMP_FLAGS_IN();
   1157     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   1158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1159     esi = esi + 0x24u; /* 0x47094444: add esi, 0x24 */
   1160     _flag_k = FK_ADD;
   1161     eax = esp + 0x58; /* 0x47094447: lea eax, [esp + 0x58] */
   1162     PUSH32(esp, eax); /* 0x4709444B: push eax */
   1163     ecx = esp + 0x1C; /* 0x4709444C: lea ecx, [esp + 0x1c] */
   1164     PUSH32(esp, ecx); /* 0x47094450: push ecx */
   1165     ecx = esi; /* 0x47094451: mov ecx, esi */
   1166     MEM8(esp + 0x54) = (uint8_t)(2); /* 0x47094453: mov byte ptr [esp + 0x54], 2 */
   1167     MEM32(esp + 0x60) = edi; /* 0x47094458: mov dword ptr [esp + 0x60], edi */
   1168     RECOMP_ICALL(0x47091A40u); /* 0x4709445C: call 0x47091a40 */ /* not lifted */
   1169     RECOMP_FLAGS_IN();
   1170     /* cmp eax, edi */ /* 0x47094461: cmp eax, edi */
   1171     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1173     _flag_k = FK_CMP;
   1174     ebp = MEM32(esp + 0x54); /* 0x47094463: mov ebp, dword ptr [esp + 0x54] */
   1175     if (CMP_NE(_flag_a, _flag_b)) goto L_47094480; /* 0x47094467: jne 0x47094480 */
   1176 L_47094469:
   1177     ecx = MEM32(esp + 0x58); /* 0x47094469: mov ecx, dword ptr [esp + 0x58] */
   1178     edx = ecx * 8; /* 0x4709446D: lea edx, [ecx*8] */
   1179     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1181     edx = edx - ecx; /* 0x47094474: sub edx, ecx */
   1182     _flag_k = FK_CMP;
   1183     ecx = MEM32(esi + 0x8); /* 0x47094476: mov ecx, dword ptr [esi + 8] */
   1184     edx = MEM32(ecx + edx * 8 + 0x2C); /* 0x47094479: mov edx, dword ptr [ecx + edx*8 + 0x2c] */
   1185     MEM32(ebp + 0xC) = edx; /* 0x4709447D: mov dword ptr [ebp + 0xc], edx */
   1186 L_47094480:
   1187     /* cmp eax, 0xFFFFFFFFu */ /* 0x47094480: cmp eax, -1 */
   1188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1190     _flag_k = FK_CMP;
   1191     MEM8(esp + 0x4C) = (uint8_t)(1); /* 0x47094483: mov byte ptr [esp + 0x4c], 1 */
   1192     if (CMP_NE(_flag_a, _flag_b)) goto L_470944EA; /* 0x47094488: jne 0x470944ea */
   1193 L_4709448A:
   1194     eax = MEM32(ebp); /* 0x4709448A: mov eax, dword ptr [ebp] */
   1195     PUSH32(esp, ebx); /* 0x4709448D: push ebx */
   1196     ecx = ebp; /* 0x4709448E: mov ecx, ebp */
   1197     edi = ebp + 0xC; /* 0x47094490: lea edi, [ebp + 0xc] */
   1198     RECOMP_ICALL(MEM32(eax + 0x4C)); /* 0x47094493: call dword ptr [eax + 0x4c] */
   1199     RECOMP_FLAGS_IN();
   1200     MEM32(edi) = eax; /* 0x47094496: mov dword ptr [edi], eax */
   1201     ecx = esp + 0x58; /* 0x47094498: lea ecx, [esp + 0x58] */
   1202     PUSH32(esp, ecx); /* 0x4709449C: push ecx */
   1203     edx = esp + 0x1C; /* 0x4709449D: lea edx, [esp + 0x1c] */
   1204     PUSH32(esp, edx); /* 0x470944A1: push edx */
   1205     ecx = esi; /* 0x470944A2: mov ecx, esi */
   1206     MEM8(esp + 0x54) = (uint8_t)(3); /* 0x470944A4: mov byte ptr [esp + 0x54], 3 */
   1207     MEM32(esp + 0x60) = 0; /* 0x470944A9: mov dword ptr [esp + 0x60], 0 */
   1208     RECOMP_ICALL(0x47091A40u); /* 0x470944B1: call 0x47091a40 */ /* not lifted */
   1209     RECOMP_FLAGS_IN();
   1210     /* test eax, eax */ /* 0x470944B6: test eax, eax */
   1211     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1212     _cf = 0;
   1213     _flag_k = FK_TEST;
   1214     if (TEST_NZ(_flag_a, _flag_b)) goto L_470944C1; /* 0x470944B8: jne 0x470944c1 */
   1215 L_470944BA:
   1216     eax = 1; /* 0x470944BA: mov eax, 1 */
   1217     goto L_470944CE; /* 0x470944BF: jmp 0x470944ce */
   1218 L_470944C1:
   1219     PUSH32(esp, edi); /* 0x470944C1: push edi */
   1220     eax = esp + 0x1C; /* 0x470944C2: lea eax, [esp + 0x1c] */
   1221     PUSH32(esp, eax); /* 0x470944C6: push eax */
   1222     ecx = esi; /* 0x470944C7: mov ecx, esi */
   1223     RECOMP_ICALL(0x47095210u); /* 0x470944C9: call 0x47095210 */ /* not lifted */
   1224     RECOMP_FLAGS_IN();
   1225 L_470944CE:
   1226     /* cmp eax, 0xFFFFFFFFu */ /* 0x470944CE: cmp eax, -1 */
   1227     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1229     _flag_k = FK_CMP;
   1230     MEM8(esp + 0x4C) = (uint8_t)(1); /* 0x470944D1: mov byte ptr [esp + 0x4c], 1 */
   1231     if (CMP_NE(_flag_a, _flag_b)) goto L_470944EA; /* 0x470944D6: jne 0x470944ea */
   1232 L_470944D8:
   1233     ecx = MEM32(edi); /* 0x470944D8: mov ecx, dword ptr [edi] */
   1234     /* test ecx, ecx */ /* 0x470944DA: test ecx, ecx */
   1235     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1236     _cf = 0;
   1237     _flag_k = FK_TEST;
   1238     if (TEST_Z(_flag_a, _flag_b)) goto L_470944E4; /* 0x470944DC: je 0x470944e4 */
   1239 L_470944DE:
   1240     edx = MEM32(ecx); /* 0x470944DE: mov edx, dword ptr [ecx] */
   1241     PUSH32(esp, 1); /* 0x470944E0: push 1 */
   1242     RECOMP_ICALL(MEM32(edx)); /* 0x470944E2: call dword ptr [edx] */
   1243     RECOMP_FLAGS_IN();
   1244 L_470944E4:
   1245     MEM32(edi) = 0; /* 0x470944E4: mov dword ptr [edi], 0 */
   1246 L_470944EA:
   1247     ebp = MEM32(ebp + 0xC); /* 0x470944EA: mov ebp, dword ptr [ebp + 0xc] */
   1248     /* test ebp, ebp */ /* 0x470944ED: test ebp, ebp */
   1249     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   1250     _cf = 0;
   1251     _flag_k = FK_TEST;
   1252     if (TEST_Z(_flag_a, _flag_b)) goto L_470944F4; /* 0x470944EF: je 0x470944f4 */
   1253 L_470944F1:
   1254     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1);
   1255     MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + 1; /* 0x470944F1: inc dword ptr [ebp + 8] */
   1256     _flag_k = FK_INC;
   1257 L_470944F4:
   1258     ecx = esp + 0x18; /* 0x470944F4: lea ecx, [esp + 0x18] */
   1259     MEM8(esp + 0x4C) = (uint8_t)(0); /* 0x470944F8: mov byte ptr [esp + 0x4c], 0 */
   1260     RECOMP_ICALL(0x47038A00u); /* 0x470944FD: call 0x47038a00 */ /* not lifted */
   1261     RECOMP_FLAGS_IN();
   1262     eax = MEM32(esp + 0x10); /* 0x47094502: mov eax, dword ptr [esp + 0x10] */
   1263     PUSH32(esp, eax); /* 0x47094506: push eax */
   1264     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47094507: call dword ptr [0x470ac190] */
   1265     RECOMP_FLAGS_IN();
   1266     ecx = MEM32(esp + 0x44); /* 0x4709450D: mov ecx, dword ptr [esp + 0x44] */
   1267     edi = POP32_VAL(esp); /* 0x47094511: pop edi */
   1268     esi = POP32_VAL(esp); /* 0x47094512: pop esi */
   1269     ebp = POP32_VAL(esp); /* 0x47094513: pop ebp */
   1270     ebx = POP32_VAL(esp); /* 0x47094514: pop ebx */
   1271     MEM32(FS_BASE + (0)) = ecx; /* 0x47094515: mov dword ptr fs:[0], ecx */
   1272     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u);
   1273     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1274     esp = esp + 0x40u; /* 0x4709451C: add esp, 0x40 */
   1275     _flag_k = FK_ADD;
   1276     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4709451F: ret 8 */
   1277     RECOMP_REGS_OUT();
   1278 }
   1279 
   1280 void sub_47094530(void) {
   1281     int _fpu_cmp = 0;
   1282     uint32_t _cf = 0;
   1283     int _df = 1;
   1284     uint32_t _flag_k = FK_NONE;
   1285     uint32_t _flag_a = 0, _flag_b = 0;
   1286     uint32_t _itail_tgt = 0;
   1287     RECOMP_REGS_LOCALS
   1288     RECOMP_ENTER(0x47094530u);
   1289 
   1290 L_47094530:
   1291     eax = MEM32(esp + 0x4); /* 0x47094530: mov eax, dword ptr [esp + 4] */
   1292     PUSH32(esp, ebx); /* 0x47094534: push ebx */
   1293     PUSH32(esp, esi); /* 0x47094535: push esi */
   1294     PUSH32(esp, eax); /* 0x47094536: push eax */
   1295     eax = MEM32(eax + 0xC); /* 0x47094537: mov eax, dword ptr [eax + 0xc] */
   1296     esi = ecx; /* 0x4709453A: mov esi, ecx */
   1297     PUSH32(esp, eax); /* 0x4709453C: push eax */
   1298     RECOMP_ICALL(0x47094580u); /* 0x4709453D: call 0x47094580 */ /* not lifted */
   1299     RECOMP_FLAGS_IN();
   1300     ecx = MEM32(esi + 0xA0); /* 0x47094542: mov ecx, dword ptr [esi + 0xa0] */
   1301 L_47094548:
   1302     /* cmp ecx, 0xFFFFFFFEu */ /* 0x47094548: cmp ecx, -2 */
   1303     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1305     _flag_k = FK_CMP;
   1306     if (CMP_EQ(_flag_a, _flag_b)) goto L_47094578; /* 0x4709454B: je 0x47094578 */
   1307 L_4709454D:
   1308     ebx = MEM32(esi + 0x2C); /* 0x4709454D: mov ebx, dword ptr [esi + 0x2c] */
   1309     edx = ecx * 8; /* 0x47094550: lea edx, [ecx*8] */
   1310     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1312     edx = edx - ecx; /* 0x47094557: sub edx, ecx */
   1313     _flag_k = FK_CMP;
   1314     edx = ebx + edx * 8; /* 0x47094559: lea edx, [ebx + edx*8] */
   1315     edx = MEM32(edx + 0x2C); /* 0x4709455C: mov edx, dword ptr [edx + 0x2c] */
   1316     MEM32(edx + 0x4) = 0; /* 0x4709455F: mov dword ptr [edx + 4], 0 */
   1317     edx = ecx * 8; /* 0x47094566: lea edx, [ecx*8] */
   1318     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1320     edx = edx - ecx; /* 0x4709456D: sub edx, ecx */
   1321     _flag_k = FK_CMP;
   1322     ecx = MEM32(esi + 0x2C); /* 0x4709456F: mov ecx, dword ptr [esi + 0x2c] */
   1323     ecx = MEM32(ecx + edx * 8 + 0x30); /* 0x47094572: mov ecx, dword ptr [ecx + edx*8 + 0x30] */
   1324     RECOMP_BACKEDGE();
   1325     goto L_47094548; /* 0x47094576: jmp 0x47094548 */
   1326 L_47094578:
   1327     esi = POP32_VAL(esp); /* 0x47094578: pop esi */
   1328     ebx = POP32_VAL(esp); /* 0x47094579: pop ebx */
   1329     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709457A: ret 4 */
   1330     RECOMP_REGS_OUT();
   1331 }
   1332 
   1333 void sub_47094580(void) {
   1334     int _fpu_cmp = 0;
   1335     uint32_t _cf = 0;
   1336     int _df = 1;
   1337     uint32_t _flag_k = FK_NONE;
   1338     uint32_t _flag_a = 0, _flag_b = 0;
   1339     uint32_t _itail_tgt = 0;
   1340     RECOMP_REGS_LOCALS
   1341     RECOMP_ENTER(0x47094580u);
   1342 
   1343 L_47094580:
   1344     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094580: push -1 */
   1345     PUSH32(esp, 0x470AB0C8u); /* 0x47094582: push 0x470ab0c8 */
   1346     eax = MEM32(FS_BASE + (0)); /* 0x47094587: mov eax, dword ptr fs:[0] */
   1347     PUSH32(esp, eax); /* 0x4709458D: push eax */
   1348     MEM32(FS_BASE + (0)) = esp; /* 0x4709458E: mov dword ptr fs:[0], esp */
   1349     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1351     esp = esp - 0x1Cu; /* 0x47094595: sub esp, 0x1c */
   1352     _flag_k = FK_CMP;
   1353     PUSH32(esp, ebx); /* 0x47094598: push ebx */
   1354     PUSH32(esp, ebp); /* 0x47094599: push ebp */
   1355     PUSH32(esp, esi); /* 0x4709459A: push esi */
   1356     esi = MEM32(esp + 0x38); /* 0x4709459B: mov esi, dword ptr [esp + 0x38] */
   1357     eax = MEM32(esi + 0x4); /* 0x4709459F: mov eax, dword ptr [esi + 4] */
   1358     PUSH32(esp, edi); /* 0x470945A2: push edi */
   1359     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1360     edi = 0; /* 0x470945A3: xor edi, edi */
   1361     _cf = 0;
   1362     _flag_k = FK_TEST;
   1363     /* cmp eax, edi */ /* 0x470945A5: cmp eax, edi */
   1364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1366     _flag_k = FK_CMP;
   1367     ebx = ecx; /* 0x470945A7: mov ebx, ecx */
   1368     MEM32(esp + 0x10) = ebx; /* 0x470945A9: mov dword ptr [esp + 0x10], ebx */
   1369     if (CMP_EQ(_flag_a, _flag_b)) goto L_470945B6; /* 0x470945AD: je 0x470945b6 */
   1370 L_470945AF:
   1371     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1372     eax = 0; /* 0x470945AF: xor eax, eax */
   1373     _cf = 0;
   1374     _flag_k = FK_TEST;
   1375     goto L_470948AE; /* 0x470945B1: jmp 0x470948ae */
   1376 L_470945B6:
   1377     MEM32(esi + 0x4) = 1; /* 0x470945B6: mov dword ptr [esi + 4], 1 */
   1378     MEM32(esp + 0x20) = edi; /* 0x470945BD: mov dword ptr [esp + 0x20], edi */
   1379     MEM32(esp + 0x24) = edi; /* 0x470945C1: mov dword ptr [esp + 0x24], edi */
   1380     MEM32(esp + 0x28) = edi; /* 0x470945C5: mov dword ptr [esp + 0x28], edi */
   1381     RECOMP_ICALL(0x4703DAC0u); /* 0x470945C9: call 0x4703dac0 */ /* not lifted */
   1382     RECOMP_FLAGS_IN();
   1383     MEM32(esp + 0x28) = eax; /* 0x470945CE: mov dword ptr [esp + 0x28], eax */
   1384     edx = MEM32(eax); /* 0x470945D2: mov edx, dword ptr [eax] */
   1385     PUSH32(esp, 8); /* 0x470945D4: push 8 */
   1386     ecx = eax; /* 0x470945D6: mov ecx, eax */
   1387     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470945D8: call dword ptr [edx + 4] */
   1388     RECOMP_FLAGS_IN();
   1389     /* cmp eax, edi */ /* 0x470945DB: cmp eax, edi */
   1390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1392     _flag_k = FK_CMP;
   1393     MEM32(esp + 0x20) = eax; /* 0x470945DD: mov dword ptr [esp + 0x20], eax */
   1394     if (CMP_EQ(_flag_a, _flag_b)) goto L_470946AB; /* 0x470945E1: je 0x470946ab */
   1395 L_470945E7:
   1396     MEM32(eax) = edi; /* 0x470945E7: mov dword ptr [eax], edi */
   1397     eax = MEM32(esp + 0x20); /* 0x470945E9: mov eax, dword ptr [esp + 0x20] */
   1398     MEM32(eax) = eax; /* 0x470945ED: mov dword ptr [eax], eax */
   1399 L_470945EF:
   1400     ebp = MEM32(esp + 0x40); /* 0x470945EF: mov ebp, dword ptr [esp + 0x40] */
   1401     eax = MEM32(ebp); /* 0x470945F3: mov eax, dword ptr [ebp] */
   1402     MEM32(esp + 0x34) = edi; /* 0x470945F6: mov dword ptr [esp + 0x34], edi */
   1403     edi = MEM32(esi); /* 0x470945FA: mov edi, dword ptr [esi] */
   1404     ecx = ebp; /* 0x470945FC: mov ecx, ebp */
   1405     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470945FE: call dword ptr [eax + 0x30] */
   1406     RECOMP_FLAGS_IN();
   1407     PUSH32(esp, eax); /* 0x47094601: push eax */
   1408     ecx = esp + 0x24; /* 0x47094602: lea ecx, [esp + 0x24] */
   1409     PUSH32(esp, ecx); /* 0x47094606: push ecx */
   1410     ecx = esi; /* 0x47094607: mov ecx, esi */
   1411     RECOMP_ICALL(MEM32(edi + 0x14)); /* 0x47094609: call dword ptr [edi + 0x14] */
   1412     RECOMP_FLAGS_IN();
   1413     /* cmp eax, 0xFFFFFFFFu */ /* 0x4709460C: cmp eax, -1 */
   1414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1416     _flag_k = FK_CMP;
   1417     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709487D; /* 0x4709460F: je 0x4709487d */
   1418 L_47094615:
   1419     /* cmp eax, 1 */ /* 0x47094615: cmp eax, 1 */
   1420     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1422     _flag_k = FK_CMP;
   1423     if (CMP_EQ(_flag_a, _flag_b)) goto L_47094780; /* 0x47094618: je 0x47094780 */
   1424 L_4709461E:
   1425     ecx = MEM32(esp + 0x20); /* 0x4709461E: mov ecx, dword ptr [esp + 0x20] */
   1426     eax = MEM32(ecx); /* 0x47094622: mov eax, dword ptr [ecx] */
   1427     /* cmp ecx, eax */ /* 0x47094624: cmp ecx, eax */
   1428     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1430     _flag_k = FK_CMP;
   1431     if (CMP_EQ(_flag_a, _flag_b)) goto L_470946E5; /* 0x47094626: je 0x470946e5 */
   1432 L_4709462C:
   1433     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
   1434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1435     ebx = ebx + 0x24u; /* 0x4709462C: add ebx, 0x24 */
   1436     _flag_k = FK_ADD;
   1437     /* cmp ecx, eax */ /* 0x4709462F: cmp ecx, eax */
   1438     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1440     _flag_k = FK_CMP;
   1441     if (CMP_EQ(_flag_a, _flag_b)) goto L_47094650; /* 0x47094631: je 0x47094650 */
   1442 L_47094633:
   1443     /* test eax, eax */ /* 0x47094633: test eax, eax */
   1444     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1445     _cf = 0;
   1446     _flag_k = FK_TEST;
   1447     edx = MEM32(eax + 0x4); /* 0x47094635: mov edx, dword ptr [eax + 4] */
   1448     MEM32(esp + 0x14) = edx; /* 0x47094638: mov dword ptr [esp + 0x14], edx */
   1449     edx = MEM32(eax); /* 0x4709463C: mov edx, dword ptr [eax] */
   1450     MEM32(ecx) = edx; /* 0x4709463E: mov dword ptr [ecx], edx */
   1451     if (TEST_Z(_flag_a, _flag_b)) goto L_4709464C; /* 0x47094640: je 0x4709464c */
   1452 L_47094642:
   1453     ecx = MEM32(esp + 0x28); /* 0x47094642: mov ecx, dword ptr [esp + 0x28] */
   1454     edx = MEM32(ecx); /* 0x47094646: mov edx, dword ptr [ecx] */
   1455     PUSH32(esp, eax); /* 0x47094648: push eax */
   1456     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094649: call dword ptr [edx + 0xc] */
   1457     RECOMP_FLAGS_IN();
   1458 L_4709464C:
   1459     _flag_a = (uint32_t)(MEM32(esp + 0x24)); _flag_b = (uint32_t)(1);
   1460     MEM32(esp + 0x24) = MEM32(esp + 0x24) - 1; /* 0x4709464C: dec dword ptr [esp + 0x24] */
   1461     _flag_k = FK_DEC;
   1462 L_47094650:
   1463     eax = MEM32(esp + 0x14); /* 0x47094650: mov eax, dword ptr [esp + 0x14] */
   1464     PUSH32(esp, 0); /* 0x47094654: push 0 */
   1465     PUSH32(esp, ebx); /* 0x47094656: push ebx */
   1466     ecx = esp + 0x20; /* 0x47094657: lea ecx, [esp + 0x20] */
   1467     esi = eax + 0x60; /* 0x4709465B: lea esi, [eax + 0x60] */
   1468     RECOMP_ICALL(0x47095070u); /* 0x4709465E: call 0x47095070 */ /* not lifted */
   1469     RECOMP_FLAGS_IN();
   1470     ecx = esp + 0x40; /* 0x47094663: lea ecx, [esp + 0x40] */
   1471     PUSH32(esp, ecx); /* 0x47094667: push ecx */
   1472     ecx = esp + 0x1C; /* 0x47094668: lea ecx, [esp + 0x1c] */
   1473     MEM32(esp + 0x44) = 0; /* 0x4709466C: mov dword ptr [esp + 0x44], 0 */
   1474     RECOMP_ICALL(0x47095040u); /* 0x47094674: call 0x47095040 */ /* not lifted */
   1475     RECOMP_FLAGS_IN();
   1476     /* test eax, eax */ /* 0x47094679: test eax, eax */
   1477     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1478     _cf = 0;
   1479     _flag_k = FK_TEST;
   1480     if (TEST_Z(_flag_a, _flag_b)) goto L_470946D7; /* 0x4709467B: je 0x470946d7 */
   1481 L_4709467D:
   1482     edx = MEM32(esp + 0x40); /* 0x4709467D: mov edx, dword ptr [esp + 0x40] */
   1483     ecx = MEM32(edx + 0x2C); /* 0x47094681: mov ecx, dword ptr [edx + 0x2c] */
   1484     eax = MEM32(ecx); /* 0x47094684: mov eax, dword ptr [ecx] */
   1485     PUSH32(esp, esi); /* 0x47094686: push esi */
   1486     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x47094687: call dword ptr [eax + 0x18] */
   1487     RECOMP_FLAGS_IN();
   1488     /* test eax, eax */ /* 0x4709468A: test eax, eax */
   1489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1490     _cf = 0;
   1491     _flag_k = FK_TEST;
   1492     if (TEST_NZ(_flag_a, _flag_b)) goto L_470946BC; /* 0x4709468C: jne 0x470946bc */
   1493 L_4709468E:
   1494     ecx = esp + 0x18; /* 0x4709468E: lea ecx, [esp + 0x18] */
   1495     RECOMP_ICALL(0x47095140u); /* 0x47094692: call 0x47095140 */ /* not lifted */
   1496     RECOMP_FLAGS_IN();
   1497     ecx = esp + 0x40; /* 0x47094697: lea ecx, [esp + 0x40] */
   1498     PUSH32(esp, ecx); /* 0x4709469B: push ecx */
   1499     ecx = esp + 0x1C; /* 0x4709469C: lea ecx, [esp + 0x1c] */
   1500     RECOMP_ICALL(0x47095040u); /* 0x470946A0: call 0x47095040 */ /* not lifted */
   1501     RECOMP_FLAGS_IN();
   1502     /* test eax, eax */ /* 0x470946A5: test eax, eax */
   1503     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1504     _cf = 0;
   1505     _flag_k = FK_TEST;
   1506     RECOMP_BACKEDGE();
   1507     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709467D; /* 0x470946A7: jne 0x4709467d */
   1508 L_470946A9:
   1509     goto L_470946D7; /* 0x470946A9: jmp 0x470946d7 */
   1510 L_470946AB:
   1511     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470946AB: call dword ptr [0x470ac3c8] */
   1512     RECOMP_FLAGS_IN();
   1513     MEM32(eax) = 0xCu; /* 0x470946B1: mov dword ptr [eax], 0xc */
   1514     RECOMP_BACKEDGE();
   1515     goto L_470945EF; /* 0x470946B7: jmp 0x470945ef */
   1516 L_470946BC:
   1517     edx = MEM32(esp + 0x40); /* 0x470946BC: mov edx, dword ptr [esp + 0x40] */
   1518     edi = MEM32(edx + 0x2C); /* 0x470946C0: mov edi, dword ptr [edx + 0x2c] */
   1519     /* test edi, edi */ /* 0x470946C3: test edi, edi */
   1520     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1521     _cf = 0;
   1522     _flag_k = FK_TEST;
   1523     if (TEST_Z(_flag_a, _flag_b)) goto L_470946D7; /* 0x470946C5: je 0x470946d7 */
   1524 L_470946C7:
   1525     ecx = MEM32(esp + 0x10); /* 0x470946C7: mov ecx, dword ptr [esp + 0x10] */
   1526     PUSH32(esp, ebp); /* 0x470946CB: push ebp */
   1527     PUSH32(esp, edi); /* 0x470946CC: push edi */
   1528     RECOMP_ICALL(0x47094580u); /* 0x470946CD: call 0x47094580 */ /* not lifted */
   1529     RECOMP_FLAGS_IN();
   1530     /* cmp eax, 1 */ /* 0x470946D2: cmp eax, 1 */
   1531     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1533     _flag_k = FK_CMP;
   1534     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709470F; /* 0x470946D5: je 0x4709470f */
   1535 L_470946D7:
   1536     ecx = MEM32(esp + 0x20); /* 0x470946D7: mov ecx, dword ptr [esp + 0x20] */
   1537     eax = MEM32(ecx); /* 0x470946DB: mov eax, dword ptr [ecx] */
   1538     /* cmp ecx, eax */ /* 0x470946DD: cmp ecx, eax */
   1539     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1541     _flag_k = FK_CMP;
   1542     RECOMP_BACKEDGE();
   1543     if (CMP_NE(_flag_a, _flag_b)) goto L_47094633; /* 0x470946DF: jne 0x47094633 */
   1544 L_470946E5:
   1545     ecx = esp + 0x20; /* 0x470946E5: lea ecx, [esp + 0x20] */
   1546     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x470946E9: mov dword ptr [esp + 0x34], 0xffffffff */
   1547     RECOMP_ICALL(0x47095170u); /* 0x470946F1: call 0x47095170 */ /* not lifted */
   1548     RECOMP_FLAGS_IN();
   1549     eax = MEM32(esp + 0x20); /* 0x470946F6: mov eax, dword ptr [esp + 0x20] */
   1550     /* test eax, eax */ /* 0x470946FA: test eax, eax */
   1551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1552     _cf = 0;
   1553     _flag_k = FK_TEST;
   1554     if (TEST_Z(_flag_a, _flag_b)) goto L_47094708; /* 0x470946FC: je 0x47094708 */
   1555 L_470946FE:
   1556     ecx = MEM32(esp + 0x28); /* 0x470946FE: mov ecx, dword ptr [esp + 0x28] */
   1557     edx = MEM32(ecx); /* 0x47094702: mov edx, dword ptr [ecx] */
   1558     PUSH32(esp, eax); /* 0x47094704: push eax */
   1559     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094705: call dword ptr [edx + 0xc] */
   1560     RECOMP_FLAGS_IN();
   1561 L_47094708:
   1562     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1563     eax = 0; /* 0x47094708: xor eax, eax */
   1564     _cf = 0;
   1565     _flag_k = FK_TEST;
   1566     goto L_470948AE; /* 0x4709470A: jmp 0x470948ae */
   1567 L_4709470F:
   1568     eax = MEM32(esp + 0x10); /* 0x4709470F: mov eax, dword ptr [esp + 0x10] */
   1569     ecx = MEM32(eax + 0x4); /* 0x47094713: mov ecx, dword ptr [eax + 4] */
   1570     /* test ecx, ecx */ /* 0x47094716: test ecx, ecx */
   1571     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1572     _cf = 0;
   1573     _flag_k = FK_TEST;
   1574     if (TEST_Z(_flag_a, _flag_b)) goto L_47094853; /* 0x47094718: je 0x47094853 */
   1575 L_4709471E:
   1576     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709471E: call dword ptr [0x470ac150] */
   1577     RECOMP_FLAGS_IN();
   1578     ebx = eax; /* 0x47094724: mov ebx, eax */
   1579     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094726: call dword ptr [0x470ac3c8] */
   1580     RECOMP_FLAGS_IN();
   1581     eax = MEM32(eax); /* 0x4709472C: mov eax, dword ptr [eax] */
   1582     /* test eax, eax */ /* 0x4709472E: test eax, eax */
   1583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1584     _cf = 0;
   1585     _flag_k = FK_TEST;
   1586     if (TEST_Z(_flag_a, _flag_b)) goto L_47094734; /* 0x47094730: je 0x47094734 */
   1587 L_47094732:
   1588     ebx = eax; /* 0x47094732: mov ebx, eax */
   1589 L_47094734:
   1590     RECOMP_ICALL(0x47039020u); /* 0x47094734: call 0x47039020 */ /* not lifted */
   1591     RECOMP_FLAGS_IN();
   1592     esi = eax; /* 0x47094739: mov esi, eax */
   1593     ecx = esi; /* 0x4709473B: mov ecx, esi */
   1594     RECOMP_ICALL(0x4703B210u); /* 0x4709473D: call 0x4703b210 */ /* not lifted */
   1595     RECOMP_FLAGS_IN();
   1596     PUSH32(esp, eax); /* 0x47094742: push eax */
   1597     ecx = esi; /* 0x47094743: mov ecx, esi */
   1598     RECOMP_ICALL(0x4703B240u); /* 0x47094745: call 0x4703b240 */ /* not lifted */
   1599     RECOMP_FLAGS_IN();
   1600     PUSH32(esp, eax); /* 0x4709474A: push eax */
   1601     ecx = esi; /* 0x4709474B: mov ecx, esi */
   1602     RECOMP_ICALL(0x4703B080u); /* 0x4709474D: call 0x4703b080 */ /* not lifted */
   1603     RECOMP_FLAGS_IN();
   1604     PUSH32(esp, eax); /* 0x47094752: push eax */
   1605     PUSH32(esp, ebx); /* 0x47094753: push ebx */
   1606     PUSH32(esp, 0); /* 0x47094754: push 0 */
   1607     PUSH32(esp, 0xB4u); /* 0x47094756: push 0xb4 */
   1608     PUSH32(esp, 0x4710D05Cu); /* 0x4709475B: push 0x4710d05c */
   1609     ecx = esi; /* 0x47094760: mov ecx, esi */
   1610     RECOMP_ICALL(0x4703A340u); /* 0x47094762: call 0x4703a340 */ /* not lifted */
   1611     RECOMP_FLAGS_IN();
   1612     ecx = MEM32(esp + 0x3C); /* 0x47094767: mov ecx, dword ptr [esp + 0x3c] */
   1613     edx = MEM32(esp + 0x14); /* 0x4709476B: mov edx, dword ptr [esp + 0x14] */
   1614     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u);
   1615     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1616     edi = edi + 0x18u; /* 0x4709476F: add edi, 0x18 */
   1617     _flag_k = FK_ADD;
   1618     PUSH32(esp, edi); /* 0x47094772: push edi */
   1619     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   1620     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1621     ecx = ecx + 0x18u; /* 0x47094773: add ecx, 0x18 */
   1622     _flag_k = FK_ADD;
   1623     PUSH32(esp, ecx); /* 0x47094776: push ecx */
   1624     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x60u);
   1625     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1626     edx = edx + 0x60u; /* 0x47094777: add edx, 0x60 */
   1627     _flag_k = FK_ADD;
   1628     PUSH32(esp, edx); /* 0x4709477A: push edx */
   1629     goto L_47094843; /* 0x4709477B: jmp 0x47094843 */
   1630 L_47094780:
   1631     eax = MEM32(ebx + 0x4); /* 0x47094780: mov eax, dword ptr [ebx + 4] */
   1632     /* test eax, eax */ /* 0x47094783: test eax, eax */
   1633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1634     _cf = 0;
   1635     _flag_k = FK_TEST;
   1636     if (TEST_Z(_flag_a, _flag_b)) goto L_47094853; /* 0x47094785: je 0x47094853 */
   1637 L_4709478B:
   1638     ebx = MEM32(0x470AC150); /* 0x4709478B: mov ebx, dword ptr [0x470ac150] */
   1639     RECOMP_ICALL(ebx); /* 0x47094791: call ebx */
   1640     RECOMP_FLAGS_IN();
   1641     edi = eax; /* 0x47094793: mov edi, eax */
   1642     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094795: call dword ptr [0x470ac3c8] */
   1643     RECOMP_FLAGS_IN();
   1644     eax = MEM32(eax); /* 0x4709479B: mov eax, dword ptr [eax] */
   1645     /* test eax, eax */ /* 0x4709479D: test eax, eax */
   1646     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1647     _cf = 0;
   1648     _flag_k = FK_TEST;
   1649     if (TEST_Z(_flag_a, _flag_b)) goto L_470947A3; /* 0x4709479F: je 0x470947a3 */
   1650 L_470947A1:
   1651     edi = eax; /* 0x470947A1: mov edi, eax */
   1652 L_470947A3:
   1653     RECOMP_ICALL(0x47039020u); /* 0x470947A3: call 0x47039020 */ /* not lifted */
   1654     RECOMP_FLAGS_IN();
   1655     esi = eax; /* 0x470947A8: mov esi, eax */
   1656     ecx = esi; /* 0x470947AA: mov ecx, esi */
   1657     RECOMP_ICALL(0x4703B210u); /* 0x470947AC: call 0x4703b210 */ /* not lifted */
   1658     RECOMP_FLAGS_IN();
   1659     PUSH32(esp, eax); /* 0x470947B1: push eax */
   1660     ecx = esi; /* 0x470947B2: mov ecx, esi */
   1661     RECOMP_ICALL(0x4703B240u); /* 0x470947B4: call 0x4703b240 */ /* not lifted */
   1662     RECOMP_FLAGS_IN();
   1663     PUSH32(esp, eax); /* 0x470947B9: push eax */
   1664     ecx = esi; /* 0x470947BA: mov ecx, esi */
   1665     RECOMP_ICALL(0x4703B080u); /* 0x470947BC: call 0x4703b080 */ /* not lifted */
   1666     RECOMP_FLAGS_IN();
   1667     PUSH32(esp, eax); /* 0x470947C1: push eax */
   1668     PUSH32(esp, edi); /* 0x470947C2: push edi */
   1669     PUSH32(esp, 0); /* 0x470947C3: push 0 */
   1670     PUSH32(esp, 0x9Au); /* 0x470947C5: push 0x9a */
   1671     PUSH32(esp, 0x4710D05Cu); /* 0x470947CA: push 0x4710d05c */
   1672     ecx = esi; /* 0x470947CF: mov ecx, esi */
   1673     RECOMP_ICALL(0x4703A340u); /* 0x470947D1: call 0x4703a340 */ /* not lifted */
   1674     RECOMP_FLAGS_IN();
   1675     PUSH32(esp, 0x4710D040u); /* 0x470947D6: push 0x4710d040 */
   1676     PUSH32(esp, 4); /* 0x470947DB: push 4 */
   1677     PUSH32(esp, esi); /* 0x470947DD: push esi */
   1678     RECOMP_ICALL(0x47039830u); /* 0x470947DE: call 0x47039830 */ /* not lifted */
   1679     RECOMP_FLAGS_IN();
   1680     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1682     esp = esp + 0xCu; /* 0x470947E3: add esp, 0xc */
   1683     _flag_k = FK_ADD;
   1684     RECOMP_ICALL(ebx); /* 0x470947E6: call ebx */
   1685     RECOMP_FLAGS_IN();
   1686     edi = eax; /* 0x470947E8: mov edi, eax */
   1687     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470947EA: call dword ptr [0x470ac3c8] */
   1688     RECOMP_FLAGS_IN();
   1689     eax = MEM32(eax); /* 0x470947F0: mov eax, dword ptr [eax] */
   1690     /* test eax, eax */ /* 0x470947F2: test eax, eax */
   1691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1692     _cf = 0;
   1693     _flag_k = FK_TEST;
   1694     if (TEST_Z(_flag_a, _flag_b)) goto L_470947F8; /* 0x470947F4: je 0x470947f8 */
   1695 L_470947F6:
   1696     edi = eax; /* 0x470947F6: mov edi, eax */
   1697 L_470947F8:
   1698     RECOMP_ICALL(0x47039020u); /* 0x470947F8: call 0x47039020 */ /* not lifted */
   1699     RECOMP_FLAGS_IN();
   1700     esi = eax; /* 0x470947FD: mov esi, eax */
   1701     ecx = esi; /* 0x470947FF: mov ecx, esi */
   1702     RECOMP_ICALL(0x4703B210u); /* 0x47094801: call 0x4703b210 */ /* not lifted */
   1703     RECOMP_FLAGS_IN();
   1704     PUSH32(esp, eax); /* 0x47094806: push eax */
   1705     ecx = esi; /* 0x47094807: mov ecx, esi */
   1706     RECOMP_ICALL(0x4703B240u); /* 0x47094809: call 0x4703b240 */ /* not lifted */
   1707     RECOMP_FLAGS_IN();
   1708     PUSH32(esp, eax); /* 0x4709480E: push eax */
   1709     ecx = esi; /* 0x4709480F: mov ecx, esi */
   1710     RECOMP_ICALL(0x4703B080u); /* 0x47094811: call 0x4703b080 */ /* not lifted */
   1711     RECOMP_FLAGS_IN();
   1712     PUSH32(esp, eax); /* 0x47094816: push eax */
   1713     PUSH32(esp, edi); /* 0x47094817: push edi */
   1714     PUSH32(esp, 0); /* 0x47094818: push 0 */
   1715     PUSH32(esp, 0x9Eu); /* 0x4709481A: push 0x9e */
   1716     PUSH32(esp, 0x4710D05Cu); /* 0x4709481F: push 0x4710d05c */
   1717     ecx = esi; /* 0x47094824: mov ecx, esi */
   1718     RECOMP_ICALL(0x4703A340u); /* 0x47094826: call 0x4703a340 */ /* not lifted */
   1719     RECOMP_FLAGS_IN();
   1720     eax = MEM32(ebp + 0xC); /* 0x4709482B: mov eax, dword ptr [ebp + 0xc] */
   1721     ecx = MEM32(esp + 0x3C); /* 0x4709482E: mov ecx, dword ptr [esp + 0x3c] */
   1722     edx = MEM32(ebp); /* 0x47094832: mov edx, dword ptr [ebp] */
   1723     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   1724     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1725     eax = eax + 0x18u; /* 0x47094835: add eax, 0x18 */
   1726     _flag_k = FK_ADD;
   1727     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   1728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1729     ecx = ecx + 0x18u; /* 0x47094838: add ecx, 0x18 */
   1730     _flag_k = FK_ADD;
   1731     PUSH32(esp, eax); /* 0x4709483B: push eax */
   1732     PUSH32(esp, ecx); /* 0x4709483C: push ecx */
   1733     ecx = ebp; /* 0x4709483D: mov ecx, ebp */
   1734     RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x4709483F: call dword ptr [edx + 0x30] */
   1735     RECOMP_FLAGS_IN();
   1736     PUSH32(esp, eax); /* 0x47094842: push eax */
   1737 L_47094843:
   1738     PUSH32(esp, 0x4710D01Cu); /* 0x47094843: push 0x4710d01c */
   1739     PUSH32(esp, 4); /* 0x47094848: push 4 */
   1740     PUSH32(esp, esi); /* 0x4709484A: push esi */
   1741     RECOMP_ICALL(0x47039830u); /* 0x4709484B: call 0x47039830 */ /* not lifted */
   1742     RECOMP_FLAGS_IN();
   1743     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1745     esp = esp + 0x18u; /* 0x47094850: add esp, 0x18 */
   1746     _flag_k = FK_ADD;
   1747 L_47094853:
   1748     ecx = esp + 0x20; /* 0x47094853: lea ecx, [esp + 0x20] */
   1749     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094857: mov dword ptr [esp + 0x34], 0xffffffff */
   1750     RECOMP_ICALL(0x47095170u); /* 0x4709485F: call 0x47095170 */ /* not lifted */
   1751     RECOMP_FLAGS_IN();
   1752     eax = MEM32(esp + 0x20); /* 0x47094864: mov eax, dword ptr [esp + 0x20] */
   1753     /* test eax, eax */ /* 0x47094868: test eax, eax */
   1754     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1755     _cf = 0;
   1756     _flag_k = FK_TEST;
   1757     if (TEST_Z(_flag_a, _flag_b)) goto L_47094876; /* 0x4709486A: je 0x47094876 */
   1758 L_4709486C:
   1759     ecx = MEM32(esp + 0x28); /* 0x4709486C: mov ecx, dword ptr [esp + 0x28] */
   1760     edx = MEM32(ecx); /* 0x47094870: mov edx, dword ptr [ecx] */
   1761     PUSH32(esp, eax); /* 0x47094872: push eax */
   1762     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094873: call dword ptr [edx + 0xc] */
   1763     RECOMP_FLAGS_IN();
   1764 L_47094876:
   1765     eax = 1; /* 0x47094876: mov eax, 1 */
   1766     goto L_470948AE; /* 0x4709487B: jmp 0x470948ae */
   1767 L_4709487D:
   1768     ecx = esp + 0x20; /* 0x4709487D: lea ecx, [esp + 0x20] */
   1769     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094881: mov dword ptr [esp + 0x34], 0xffffffff */
   1770     RECOMP_ICALL(0x47095170u); /* 0x47094889: call 0x47095170 */ /* not lifted */
   1771     RECOMP_FLAGS_IN();
   1772     ecx = MEM32(esp + 0x20); /* 0x4709488E: mov ecx, dword ptr [esp + 0x20] */
   1773     /* test ecx, ecx */ /* 0x47094892: test ecx, ecx */
   1774     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1775     _cf = 0;
   1776     _flag_k = FK_TEST;
   1777     if (TEST_Z(_flag_a, _flag_b)) goto L_470948AB; /* 0x47094894: je 0x470948ab */
   1778 L_47094896:
   1779     PUSH32(esp, 0); /* 0x47094896: push 0 */
   1780     RECOMP_ICALL(0x4708CFB0u); /* 0x47094898: call 0x4708cfb0 */ /* not lifted */
   1781     RECOMP_FLAGS_IN();
   1782     ecx = MEM32(esp + 0x28); /* 0x4709489D: mov ecx, dword ptr [esp + 0x28] */
   1783     edx = MEM32(esp + 0x20); /* 0x470948A1: mov edx, dword ptr [esp + 0x20] */
   1784     eax = MEM32(ecx); /* 0x470948A5: mov eax, dword ptr [ecx] */
   1785     PUSH32(esp, edx); /* 0x470948A7: push edx */
   1786     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470948A8: call dword ptr [eax + 0xc] */
   1787     RECOMP_FLAGS_IN();
   1788 L_470948AB:
   1789     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1790     eax = eax | 0xFFFFFFFFu; /* 0x470948AB: or eax, 0xffffffff */
   1791     _cf = 0;
   1792     _flag_k = FK_TEST;
   1793 L_470948AE:
   1794     ecx = MEM32(esp + 0x2C); /* 0x470948AE: mov ecx, dword ptr [esp + 0x2c] */
   1795     edi = POP32_VAL(esp); /* 0x470948B2: pop edi */
   1796     esi = POP32_VAL(esp); /* 0x470948B3: pop esi */
   1797     ebp = POP32_VAL(esp); /* 0x470948B4: pop ebp */
   1798     ebx = POP32_VAL(esp); /* 0x470948B5: pop ebx */
   1799     MEM32(FS_BASE + (0)) = ecx; /* 0x470948B6: mov dword ptr fs:[0], ecx */
   1800     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   1801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1802     esp = esp + 0x28u; /* 0x470948BD: add esp, 0x28 */
   1803     _flag_k = FK_ADD;
   1804     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470948C0: ret 8 */
   1805     RECOMP_REGS_OUT();
   1806 }
   1807 
   1808 void sub_470945EF(void) {
   1809     int _fpu_cmp = 0;
   1810     uint32_t _cf = 0;
   1811     int _df = 1;
   1812     uint32_t _flag_k = FK_NONE;
   1813     uint32_t _flag_a = 0, _flag_b = 0;
   1814     uint32_t _itail_tgt = 0;
   1815     RECOMP_REGS_LOCALS
   1816     RECOMP_ENTER(0x470945EFu);
   1817 
   1818 L_470945EF:
   1819     ebp = MEM32(esp + 0x40); /* 0x470945EF: mov ebp, dword ptr [esp + 0x40] */
   1820     eax = MEM32(ebp); /* 0x470945F3: mov eax, dword ptr [ebp] */
   1821     MEM32(esp + 0x34) = edi; /* 0x470945F6: mov dword ptr [esp + 0x34], edi */
   1822     edi = MEM32(esi); /* 0x470945FA: mov edi, dword ptr [esi] */
   1823     ecx = ebp; /* 0x470945FC: mov ecx, ebp */
   1824     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470945FE: call dword ptr [eax + 0x30] */
   1825     RECOMP_FLAGS_IN();
   1826     PUSH32(esp, eax); /* 0x47094601: push eax */
   1827     ecx = esp + 0x24; /* 0x47094602: lea ecx, [esp + 0x24] */
   1828     PUSH32(esp, ecx); /* 0x47094606: push ecx */
   1829     ecx = esi; /* 0x47094607: mov ecx, esi */
   1830     RECOMP_ICALL(MEM32(edi + 0x14)); /* 0x47094609: call dword ptr [edi + 0x14] */
   1831     RECOMP_FLAGS_IN();
   1832     /* cmp eax, 0xFFFFFFFFu */ /* 0x4709460C: cmp eax, -1 */
   1833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1835     _flag_k = FK_CMP;
   1836     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709487D; /* 0x4709460F: je 0x4709487d */
   1837 L_47094615:
   1838     /* cmp eax, 1 */ /* 0x47094615: cmp eax, 1 */
   1839     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1841     _flag_k = FK_CMP;
   1842     if (CMP_EQ(_flag_a, _flag_b)) goto L_47094780; /* 0x47094618: je 0x47094780 */
   1843 L_4709461E:
   1844     ecx = MEM32(esp + 0x20); /* 0x4709461E: mov ecx, dword ptr [esp + 0x20] */
   1845     eax = MEM32(ecx); /* 0x47094622: mov eax, dword ptr [ecx] */
   1846     /* cmp ecx, eax */ /* 0x47094624: cmp ecx, eax */
   1847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1849     _flag_k = FK_CMP;
   1850     if (CMP_EQ(_flag_a, _flag_b)) goto L_470946E5; /* 0x47094626: je 0x470946e5 */
   1851 L_4709462C:
   1852     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
   1853     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1854     ebx = ebx + 0x24u; /* 0x4709462C: add ebx, 0x24 */
   1855     _flag_k = FK_ADD;
   1856     /* cmp ecx, eax */ /* 0x4709462F: cmp ecx, eax */
   1857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1859     _flag_k = FK_CMP;
   1860     if (CMP_EQ(_flag_a, _flag_b)) goto L_47094650; /* 0x47094631: je 0x47094650 */
   1861 L_47094633:
   1862     /* test eax, eax */ /* 0x47094633: test eax, eax */
   1863     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1864     _cf = 0;
   1865     _flag_k = FK_TEST;
   1866     edx = MEM32(eax + 0x4); /* 0x47094635: mov edx, dword ptr [eax + 4] */
   1867     MEM32(esp + 0x14) = edx; /* 0x47094638: mov dword ptr [esp + 0x14], edx */
   1868     edx = MEM32(eax); /* 0x4709463C: mov edx, dword ptr [eax] */
   1869     MEM32(ecx) = edx; /* 0x4709463E: mov dword ptr [ecx], edx */
   1870     if (TEST_Z(_flag_a, _flag_b)) goto L_4709464C; /* 0x47094640: je 0x4709464c */
   1871 L_47094642:
   1872     ecx = MEM32(esp + 0x28); /* 0x47094642: mov ecx, dword ptr [esp + 0x28] */
   1873     edx = MEM32(ecx); /* 0x47094646: mov edx, dword ptr [ecx] */
   1874     PUSH32(esp, eax); /* 0x47094648: push eax */
   1875     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094649: call dword ptr [edx + 0xc] */
   1876     RECOMP_FLAGS_IN();
   1877 L_4709464C:
   1878     _flag_a = (uint32_t)(MEM32(esp + 0x24)); _flag_b = (uint32_t)(1);
   1879     MEM32(esp + 0x24) = MEM32(esp + 0x24) - 1; /* 0x4709464C: dec dword ptr [esp + 0x24] */
   1880     _flag_k = FK_DEC;
   1881 L_47094650:
   1882     eax = MEM32(esp + 0x14); /* 0x47094650: mov eax, dword ptr [esp + 0x14] */
   1883     PUSH32(esp, 0); /* 0x47094654: push 0 */
   1884     PUSH32(esp, ebx); /* 0x47094656: push ebx */
   1885     ecx = esp + 0x20; /* 0x47094657: lea ecx, [esp + 0x20] */
   1886     esi = eax + 0x60; /* 0x4709465B: lea esi, [eax + 0x60] */
   1887     RECOMP_ICALL(0x47095070u); /* 0x4709465E: call 0x47095070 */ /* not lifted */
   1888     RECOMP_FLAGS_IN();
   1889     ecx = esp + 0x40; /* 0x47094663: lea ecx, [esp + 0x40] */
   1890     PUSH32(esp, ecx); /* 0x47094667: push ecx */
   1891     ecx = esp + 0x1C; /* 0x47094668: lea ecx, [esp + 0x1c] */
   1892     MEM32(esp + 0x44) = 0; /* 0x4709466C: mov dword ptr [esp + 0x44], 0 */
   1893     RECOMP_ICALL(0x47095040u); /* 0x47094674: call 0x47095040 */ /* not lifted */
   1894     RECOMP_FLAGS_IN();
   1895     /* test eax, eax */ /* 0x47094679: test eax, eax */
   1896     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1897     _cf = 0;
   1898     _flag_k = FK_TEST;
   1899     if (TEST_Z(_flag_a, _flag_b)) goto L_470946D7; /* 0x4709467B: je 0x470946d7 */
   1900 L_4709467D:
   1901     edx = MEM32(esp + 0x40); /* 0x4709467D: mov edx, dword ptr [esp + 0x40] */
   1902     ecx = MEM32(edx + 0x2C); /* 0x47094681: mov ecx, dword ptr [edx + 0x2c] */
   1903     eax = MEM32(ecx); /* 0x47094684: mov eax, dword ptr [ecx] */
   1904     PUSH32(esp, esi); /* 0x47094686: push esi */
   1905     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x47094687: call dword ptr [eax + 0x18] */
   1906     RECOMP_FLAGS_IN();
   1907     /* test eax, eax */ /* 0x4709468A: test eax, eax */
   1908     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1909     _cf = 0;
   1910     _flag_k = FK_TEST;
   1911     if (TEST_NZ(_flag_a, _flag_b)) goto L_470946BC; /* 0x4709468C: jne 0x470946bc */
   1912 L_4709468E:
   1913     ecx = esp + 0x18; /* 0x4709468E: lea ecx, [esp + 0x18] */
   1914     RECOMP_ICALL(0x47095140u); /* 0x47094692: call 0x47095140 */ /* not lifted */
   1915     RECOMP_FLAGS_IN();
   1916     ecx = esp + 0x40; /* 0x47094697: lea ecx, [esp + 0x40] */
   1917     PUSH32(esp, ecx); /* 0x4709469B: push ecx */
   1918     ecx = esp + 0x1C; /* 0x4709469C: lea ecx, [esp + 0x1c] */
   1919     RECOMP_ICALL(0x47095040u); /* 0x470946A0: call 0x47095040 */ /* not lifted */
   1920     RECOMP_FLAGS_IN();
   1921     /* test eax, eax */ /* 0x470946A5: test eax, eax */
   1922     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1923     _cf = 0;
   1924     _flag_k = FK_TEST;
   1925     RECOMP_BACKEDGE();
   1926     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709467D; /* 0x470946A7: jne 0x4709467d */
   1927 L_470946A9:
   1928     goto L_470946D7; /* 0x470946A9: jmp 0x470946d7 */
   1929 L_470946BC:
   1930     edx = MEM32(esp + 0x40); /* 0x470946BC: mov edx, dword ptr [esp + 0x40] */
   1931     edi = MEM32(edx + 0x2C); /* 0x470946C0: mov edi, dword ptr [edx + 0x2c] */
   1932     /* test edi, edi */ /* 0x470946C3: test edi, edi */
   1933     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1934     _cf = 0;
   1935     _flag_k = FK_TEST;
   1936     if (TEST_Z(_flag_a, _flag_b)) goto L_470946D7; /* 0x470946C5: je 0x470946d7 */
   1937 L_470946C7:
   1938     ecx = MEM32(esp + 0x10); /* 0x470946C7: mov ecx, dword ptr [esp + 0x10] */
   1939     PUSH32(esp, ebp); /* 0x470946CB: push ebp */
   1940     PUSH32(esp, edi); /* 0x470946CC: push edi */
   1941     RECOMP_ICALL(0x47094580u); /* 0x470946CD: call 0x47094580 */ /* not lifted */
   1942     RECOMP_FLAGS_IN();
   1943     /* cmp eax, 1 */ /* 0x470946D2: cmp eax, 1 */
   1944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1946     _flag_k = FK_CMP;
   1947     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709470F; /* 0x470946D5: je 0x4709470f */
   1948 L_470946D7:
   1949     ecx = MEM32(esp + 0x20); /* 0x470946D7: mov ecx, dword ptr [esp + 0x20] */
   1950     eax = MEM32(ecx); /* 0x470946DB: mov eax, dword ptr [ecx] */
   1951     /* cmp ecx, eax */ /* 0x470946DD: cmp ecx, eax */
   1952     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1954     _flag_k = FK_CMP;
   1955     RECOMP_BACKEDGE();
   1956     if (CMP_NE(_flag_a, _flag_b)) goto L_47094633; /* 0x470946DF: jne 0x47094633 */
   1957 L_470946E5:
   1958     ecx = esp + 0x20; /* 0x470946E5: lea ecx, [esp + 0x20] */
   1959     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x470946E9: mov dword ptr [esp + 0x34], 0xffffffff */
   1960     RECOMP_ICALL(0x47095170u); /* 0x470946F1: call 0x47095170 */ /* not lifted */
   1961     RECOMP_FLAGS_IN();
   1962     eax = MEM32(esp + 0x20); /* 0x470946F6: mov eax, dword ptr [esp + 0x20] */
   1963     /* test eax, eax */ /* 0x470946FA: test eax, eax */
   1964     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1965     _cf = 0;
   1966     _flag_k = FK_TEST;
   1967     if (TEST_Z(_flag_a, _flag_b)) goto L_47094708; /* 0x470946FC: je 0x47094708 */
   1968 L_470946FE:
   1969     ecx = MEM32(esp + 0x28); /* 0x470946FE: mov ecx, dword ptr [esp + 0x28] */
   1970     edx = MEM32(ecx); /* 0x47094702: mov edx, dword ptr [ecx] */
   1971     PUSH32(esp, eax); /* 0x47094704: push eax */
   1972     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094705: call dword ptr [edx + 0xc] */
   1973     RECOMP_FLAGS_IN();
   1974 L_47094708:
   1975     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1976     eax = 0; /* 0x47094708: xor eax, eax */
   1977     _cf = 0;
   1978     _flag_k = FK_TEST;
   1979     goto L_470948AE; /* 0x4709470A: jmp 0x470948ae */
   1980 L_4709470F:
   1981     eax = MEM32(esp + 0x10); /* 0x4709470F: mov eax, dword ptr [esp + 0x10] */
   1982     ecx = MEM32(eax + 0x4); /* 0x47094713: mov ecx, dword ptr [eax + 4] */
   1983     /* test ecx, ecx */ /* 0x47094716: test ecx, ecx */
   1984     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1985     _cf = 0;
   1986     _flag_k = FK_TEST;
   1987     if (TEST_Z(_flag_a, _flag_b)) goto L_47094853; /* 0x47094718: je 0x47094853 */
   1988 L_4709471E:
   1989     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709471E: call dword ptr [0x470ac150] */
   1990     RECOMP_FLAGS_IN();
   1991     ebx = eax; /* 0x47094724: mov ebx, eax */
   1992     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094726: call dword ptr [0x470ac3c8] */
   1993     RECOMP_FLAGS_IN();
   1994     eax = MEM32(eax); /* 0x4709472C: mov eax, dword ptr [eax] */
   1995     /* test eax, eax */ /* 0x4709472E: test eax, eax */
   1996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1997     _cf = 0;
   1998     _flag_k = FK_TEST;
   1999     if (TEST_Z(_flag_a, _flag_b)) goto L_47094734; /* 0x47094730: je 0x47094734 */
   2000 L_47094732:
   2001     ebx = eax; /* 0x47094732: mov ebx, eax */
   2002 L_47094734:
   2003     RECOMP_ICALL(0x47039020u); /* 0x47094734: call 0x47039020 */ /* not lifted */
   2004     RECOMP_FLAGS_IN();
   2005     esi = eax; /* 0x47094739: mov esi, eax */
   2006     ecx = esi; /* 0x4709473B: mov ecx, esi */
   2007     RECOMP_ICALL(0x4703B210u); /* 0x4709473D: call 0x4703b210 */ /* not lifted */
   2008     RECOMP_FLAGS_IN();
   2009     PUSH32(esp, eax); /* 0x47094742: push eax */
   2010     ecx = esi; /* 0x47094743: mov ecx, esi */
   2011     RECOMP_ICALL(0x4703B240u); /* 0x47094745: call 0x4703b240 */ /* not lifted */
   2012     RECOMP_FLAGS_IN();
   2013     PUSH32(esp, eax); /* 0x4709474A: push eax */
   2014     ecx = esi; /* 0x4709474B: mov ecx, esi */
   2015     RECOMP_ICALL(0x4703B080u); /* 0x4709474D: call 0x4703b080 */ /* not lifted */
   2016     RECOMP_FLAGS_IN();
   2017     PUSH32(esp, eax); /* 0x47094752: push eax */
   2018     PUSH32(esp, ebx); /* 0x47094753: push ebx */
   2019     PUSH32(esp, 0); /* 0x47094754: push 0 */
   2020     PUSH32(esp, 0xB4u); /* 0x47094756: push 0xb4 */
   2021     PUSH32(esp, 0x4710D05Cu); /* 0x4709475B: push 0x4710d05c */
   2022     ecx = esi; /* 0x47094760: mov ecx, esi */
   2023     RECOMP_ICALL(0x4703A340u); /* 0x47094762: call 0x4703a340 */ /* not lifted */
   2024     RECOMP_FLAGS_IN();
   2025     ecx = MEM32(esp + 0x3C); /* 0x47094767: mov ecx, dword ptr [esp + 0x3c] */
   2026     edx = MEM32(esp + 0x14); /* 0x4709476B: mov edx, dword ptr [esp + 0x14] */
   2027     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u);
   2028     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2029     edi = edi + 0x18u; /* 0x4709476F: add edi, 0x18 */
   2030     _flag_k = FK_ADD;
   2031     PUSH32(esp, edi); /* 0x47094772: push edi */
   2032     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   2033     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2034     ecx = ecx + 0x18u; /* 0x47094773: add ecx, 0x18 */
   2035     _flag_k = FK_ADD;
   2036     PUSH32(esp, ecx); /* 0x47094776: push ecx */
   2037     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x60u);
   2038     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2039     edx = edx + 0x60u; /* 0x47094777: add edx, 0x60 */
   2040     _flag_k = FK_ADD;
   2041     PUSH32(esp, edx); /* 0x4709477A: push edx */
   2042     goto L_47094843; /* 0x4709477B: jmp 0x47094843 */
   2043 L_47094780:
   2044     eax = MEM32(ebx + 0x4); /* 0x47094780: mov eax, dword ptr [ebx + 4] */
   2045     /* test eax, eax */ /* 0x47094783: test eax, eax */
   2046     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2047     _cf = 0;
   2048     _flag_k = FK_TEST;
   2049     if (TEST_Z(_flag_a, _flag_b)) goto L_47094853; /* 0x47094785: je 0x47094853 */
   2050 L_4709478B:
   2051     ebx = MEM32(0x470AC150); /* 0x4709478B: mov ebx, dword ptr [0x470ac150] */
   2052     RECOMP_ICALL(ebx); /* 0x47094791: call ebx */
   2053     RECOMP_FLAGS_IN();
   2054     edi = eax; /* 0x47094793: mov edi, eax */
   2055     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094795: call dword ptr [0x470ac3c8] */
   2056     RECOMP_FLAGS_IN();
   2057     eax = MEM32(eax); /* 0x4709479B: mov eax, dword ptr [eax] */
   2058     /* test eax, eax */ /* 0x4709479D: test eax, eax */
   2059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2060     _cf = 0;
   2061     _flag_k = FK_TEST;
   2062     if (TEST_Z(_flag_a, _flag_b)) goto L_470947A3; /* 0x4709479F: je 0x470947a3 */
   2063 L_470947A1:
   2064     edi = eax; /* 0x470947A1: mov edi, eax */
   2065 L_470947A3:
   2066     RECOMP_ICALL(0x47039020u); /* 0x470947A3: call 0x47039020 */ /* not lifted */
   2067     RECOMP_FLAGS_IN();
   2068     esi = eax; /* 0x470947A8: mov esi, eax */
   2069     ecx = esi; /* 0x470947AA: mov ecx, esi */
   2070     RECOMP_ICALL(0x4703B210u); /* 0x470947AC: call 0x4703b210 */ /* not lifted */
   2071     RECOMP_FLAGS_IN();
   2072     PUSH32(esp, eax); /* 0x470947B1: push eax */
   2073     ecx = esi; /* 0x470947B2: mov ecx, esi */
   2074     RECOMP_ICALL(0x4703B240u); /* 0x470947B4: call 0x4703b240 */ /* not lifted */
   2075     RECOMP_FLAGS_IN();
   2076     PUSH32(esp, eax); /* 0x470947B9: push eax */
   2077     ecx = esi; /* 0x470947BA: mov ecx, esi */
   2078     RECOMP_ICALL(0x4703B080u); /* 0x470947BC: call 0x4703b080 */ /* not lifted */
   2079     RECOMP_FLAGS_IN();
   2080     PUSH32(esp, eax); /* 0x470947C1: push eax */
   2081     PUSH32(esp, edi); /* 0x470947C2: push edi */
   2082     PUSH32(esp, 0); /* 0x470947C3: push 0 */
   2083     PUSH32(esp, 0x9Au); /* 0x470947C5: push 0x9a */
   2084     PUSH32(esp, 0x4710D05Cu); /* 0x470947CA: push 0x4710d05c */
   2085     ecx = esi; /* 0x470947CF: mov ecx, esi */
   2086     RECOMP_ICALL(0x4703A340u); /* 0x470947D1: call 0x4703a340 */ /* not lifted */
   2087     RECOMP_FLAGS_IN();
   2088     PUSH32(esp, 0x4710D040u); /* 0x470947D6: push 0x4710d040 */
   2089     PUSH32(esp, 4); /* 0x470947DB: push 4 */
   2090     PUSH32(esp, esi); /* 0x470947DD: push esi */
   2091     RECOMP_ICALL(0x47039830u); /* 0x470947DE: call 0x47039830 */ /* not lifted */
   2092     RECOMP_FLAGS_IN();
   2093     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2094     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2095     esp = esp + 0xCu; /* 0x470947E3: add esp, 0xc */
   2096     _flag_k = FK_ADD;
   2097     RECOMP_ICALL(ebx); /* 0x470947E6: call ebx */
   2098     RECOMP_FLAGS_IN();
   2099     edi = eax; /* 0x470947E8: mov edi, eax */
   2100     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470947EA: call dword ptr [0x470ac3c8] */
   2101     RECOMP_FLAGS_IN();
   2102     eax = MEM32(eax); /* 0x470947F0: mov eax, dword ptr [eax] */
   2103     /* test eax, eax */ /* 0x470947F2: test eax, eax */
   2104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2105     _cf = 0;
   2106     _flag_k = FK_TEST;
   2107     if (TEST_Z(_flag_a, _flag_b)) goto L_470947F8; /* 0x470947F4: je 0x470947f8 */
   2108 L_470947F6:
   2109     edi = eax; /* 0x470947F6: mov edi, eax */
   2110 L_470947F8:
   2111     RECOMP_ICALL(0x47039020u); /* 0x470947F8: call 0x47039020 */ /* not lifted */
   2112     RECOMP_FLAGS_IN();
   2113     esi = eax; /* 0x470947FD: mov esi, eax */
   2114     ecx = esi; /* 0x470947FF: mov ecx, esi */
   2115     RECOMP_ICALL(0x4703B210u); /* 0x47094801: call 0x4703b210 */ /* not lifted */
   2116     RECOMP_FLAGS_IN();
   2117     PUSH32(esp, eax); /* 0x47094806: push eax */
   2118     ecx = esi; /* 0x47094807: mov ecx, esi */
   2119     RECOMP_ICALL(0x4703B240u); /* 0x47094809: call 0x4703b240 */ /* not lifted */
   2120     RECOMP_FLAGS_IN();
   2121     PUSH32(esp, eax); /* 0x4709480E: push eax */
   2122     ecx = esi; /* 0x4709480F: mov ecx, esi */
   2123     RECOMP_ICALL(0x4703B080u); /* 0x47094811: call 0x4703b080 */ /* not lifted */
   2124     RECOMP_FLAGS_IN();
   2125     PUSH32(esp, eax); /* 0x47094816: push eax */
   2126     PUSH32(esp, edi); /* 0x47094817: push edi */
   2127     PUSH32(esp, 0); /* 0x47094818: push 0 */
   2128     PUSH32(esp, 0x9Eu); /* 0x4709481A: push 0x9e */
   2129     PUSH32(esp, 0x4710D05Cu); /* 0x4709481F: push 0x4710d05c */
   2130     ecx = esi; /* 0x47094824: mov ecx, esi */
   2131     RECOMP_ICALL(0x4703A340u); /* 0x47094826: call 0x4703a340 */ /* not lifted */
   2132     RECOMP_FLAGS_IN();
   2133     eax = MEM32(ebp + 0xC); /* 0x4709482B: mov eax, dword ptr [ebp + 0xc] */
   2134     ecx = MEM32(esp + 0x3C); /* 0x4709482E: mov ecx, dword ptr [esp + 0x3c] */
   2135     edx = MEM32(ebp); /* 0x47094832: mov edx, dword ptr [ebp] */
   2136     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2137     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2138     eax = eax + 0x18u; /* 0x47094835: add eax, 0x18 */
   2139     _flag_k = FK_ADD;
   2140     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   2141     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2142     ecx = ecx + 0x18u; /* 0x47094838: add ecx, 0x18 */
   2143     _flag_k = FK_ADD;
   2144     PUSH32(esp, eax); /* 0x4709483B: push eax */
   2145     PUSH32(esp, ecx); /* 0x4709483C: push ecx */
   2146     ecx = ebp; /* 0x4709483D: mov ecx, ebp */
   2147     RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x4709483F: call dword ptr [edx + 0x30] */
   2148     RECOMP_FLAGS_IN();
   2149     PUSH32(esp, eax); /* 0x47094842: push eax */
   2150 L_47094843:
   2151     PUSH32(esp, 0x4710D01Cu); /* 0x47094843: push 0x4710d01c */
   2152     PUSH32(esp, 4); /* 0x47094848: push 4 */
   2153     PUSH32(esp, esi); /* 0x4709484A: push esi */
   2154     RECOMP_ICALL(0x47039830u); /* 0x4709484B: call 0x47039830 */ /* not lifted */
   2155     RECOMP_FLAGS_IN();
   2156     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2157     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2158     esp = esp + 0x18u; /* 0x47094850: add esp, 0x18 */
   2159     _flag_k = FK_ADD;
   2160 L_47094853:
   2161     ecx = esp + 0x20; /* 0x47094853: lea ecx, [esp + 0x20] */
   2162     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094857: mov dword ptr [esp + 0x34], 0xffffffff */
   2163     RECOMP_ICALL(0x47095170u); /* 0x4709485F: call 0x47095170 */ /* not lifted */
   2164     RECOMP_FLAGS_IN();
   2165     eax = MEM32(esp + 0x20); /* 0x47094864: mov eax, dword ptr [esp + 0x20] */
   2166     /* test eax, eax */ /* 0x47094868: test eax, eax */
   2167     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2168     _cf = 0;
   2169     _flag_k = FK_TEST;
   2170     if (TEST_Z(_flag_a, _flag_b)) goto L_47094876; /* 0x4709486A: je 0x47094876 */
   2171 L_4709486C:
   2172     ecx = MEM32(esp + 0x28); /* 0x4709486C: mov ecx, dword ptr [esp + 0x28] */
   2173     edx = MEM32(ecx); /* 0x47094870: mov edx, dword ptr [ecx] */
   2174     PUSH32(esp, eax); /* 0x47094872: push eax */
   2175     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094873: call dword ptr [edx + 0xc] */
   2176     RECOMP_FLAGS_IN();
   2177 L_47094876:
   2178     eax = 1; /* 0x47094876: mov eax, 1 */
   2179     goto L_470948AE; /* 0x4709487B: jmp 0x470948ae */
   2180 L_4709487D:
   2181     ecx = esp + 0x20; /* 0x4709487D: lea ecx, [esp + 0x20] */
   2182     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094881: mov dword ptr [esp + 0x34], 0xffffffff */
   2183     RECOMP_ICALL(0x47095170u); /* 0x47094889: call 0x47095170 */ /* not lifted */
   2184     RECOMP_FLAGS_IN();
   2185     ecx = MEM32(esp + 0x20); /* 0x4709488E: mov ecx, dword ptr [esp + 0x20] */
   2186     /* test ecx, ecx */ /* 0x47094892: test ecx, ecx */
   2187     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2188     _cf = 0;
   2189     _flag_k = FK_TEST;
   2190     if (TEST_Z(_flag_a, _flag_b)) goto L_470948AB; /* 0x47094894: je 0x470948ab */
   2191 L_47094896:
   2192     PUSH32(esp, 0); /* 0x47094896: push 0 */
   2193     RECOMP_ICALL(0x4708CFB0u); /* 0x47094898: call 0x4708cfb0 */ /* not lifted */
   2194     RECOMP_FLAGS_IN();
   2195     ecx = MEM32(esp + 0x28); /* 0x4709489D: mov ecx, dword ptr [esp + 0x28] */
   2196     edx = MEM32(esp + 0x20); /* 0x470948A1: mov edx, dword ptr [esp + 0x20] */
   2197     eax = MEM32(ecx); /* 0x470948A5: mov eax, dword ptr [ecx] */
   2198     PUSH32(esp, edx); /* 0x470948A7: push edx */
   2199     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470948A8: call dword ptr [eax + 0xc] */
   2200     RECOMP_FLAGS_IN();
   2201 L_470948AB:
   2202     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2203     eax = eax | 0xFFFFFFFFu; /* 0x470948AB: or eax, 0xffffffff */
   2204     _cf = 0;
   2205     _flag_k = FK_TEST;
   2206 L_470948AE:
   2207     ecx = MEM32(esp + 0x2C); /* 0x470948AE: mov ecx, dword ptr [esp + 0x2c] */
   2208     edi = POP32_VAL(esp); /* 0x470948B2: pop edi */
   2209     esi = POP32_VAL(esp); /* 0x470948B3: pop esi */
   2210     ebp = POP32_VAL(esp); /* 0x470948B4: pop ebp */
   2211     ebx = POP32_VAL(esp); /* 0x470948B5: pop ebx */
   2212     MEM32(FS_BASE + (0)) = ecx; /* 0x470948B6: mov dword ptr fs:[0], ecx */
   2213     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2214     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2215     esp = esp + 0x28u; /* 0x470948BD: add esp, 0x28 */
   2216     _flag_k = FK_ADD;
   2217     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470948C0: ret 8 */
   2218     RECOMP_REGS_OUT();
   2219 }
   2220 
   2221 void sub_47094633(void) {
   2222     int _fpu_cmp = 0;
   2223     uint32_t _cf = 0;
   2224     int _df = 1;
   2225     uint32_t _flag_k = FK_NONE;
   2226     uint32_t _flag_a = 0, _flag_b = 0;
   2227     uint32_t _itail_tgt = 0;
   2228     RECOMP_REGS_LOCALS
   2229     RECOMP_ENTER(0x47094633u);
   2230 
   2231 L_47094633:
   2232     /* test eax, eax */ /* 0x47094633: test eax, eax */
   2233     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2234     _cf = 0;
   2235     _flag_k = FK_TEST;
   2236     edx = MEM32(eax + 0x4); /* 0x47094635: mov edx, dword ptr [eax + 4] */
   2237     MEM32(esp + 0x14) = edx; /* 0x47094638: mov dword ptr [esp + 0x14], edx */
   2238     edx = MEM32(eax); /* 0x4709463C: mov edx, dword ptr [eax] */
   2239     MEM32(ecx) = edx; /* 0x4709463E: mov dword ptr [ecx], edx */
   2240     if (TEST_Z(_flag_a, _flag_b)) goto L_4709464C; /* 0x47094640: je 0x4709464c */
   2241 L_47094642:
   2242     ecx = MEM32(esp + 0x28); /* 0x47094642: mov ecx, dword ptr [esp + 0x28] */
   2243     edx = MEM32(ecx); /* 0x47094646: mov edx, dword ptr [ecx] */
   2244     PUSH32(esp, eax); /* 0x47094648: push eax */
   2245     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094649: call dword ptr [edx + 0xc] */
   2246     RECOMP_FLAGS_IN();
   2247 L_4709464C:
   2248     _flag_a = (uint32_t)(MEM32(esp + 0x24)); _flag_b = (uint32_t)(1);
   2249     MEM32(esp + 0x24) = MEM32(esp + 0x24) - 1; /* 0x4709464C: dec dword ptr [esp + 0x24] */
   2250     _flag_k = FK_DEC;
   2251     eax = MEM32(esp + 0x14); /* 0x47094650: mov eax, dword ptr [esp + 0x14] */
   2252     PUSH32(esp, 0); /* 0x47094654: push 0 */
   2253     PUSH32(esp, ebx); /* 0x47094656: push ebx */
   2254     ecx = esp + 0x20; /* 0x47094657: lea ecx, [esp + 0x20] */
   2255     esi = eax + 0x60; /* 0x4709465B: lea esi, [eax + 0x60] */
   2256     RECOMP_ICALL(0x47095070u); /* 0x4709465E: call 0x47095070 */ /* not lifted */
   2257     RECOMP_FLAGS_IN();
   2258     ecx = esp + 0x40; /* 0x47094663: lea ecx, [esp + 0x40] */
   2259     PUSH32(esp, ecx); /* 0x47094667: push ecx */
   2260     ecx = esp + 0x1C; /* 0x47094668: lea ecx, [esp + 0x1c] */
   2261     MEM32(esp + 0x44) = 0; /* 0x4709466C: mov dword ptr [esp + 0x44], 0 */
   2262     RECOMP_ICALL(0x47095040u); /* 0x47094674: call 0x47095040 */ /* not lifted */
   2263     RECOMP_FLAGS_IN();
   2264     /* test eax, eax */ /* 0x47094679: test eax, eax */
   2265     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2266     _cf = 0;
   2267     _flag_k = FK_TEST;
   2268     if (TEST_Z(_flag_a, _flag_b)) goto L_470946D7; /* 0x4709467B: je 0x470946d7 */
   2269 L_4709467D:
   2270     edx = MEM32(esp + 0x40); /* 0x4709467D: mov edx, dword ptr [esp + 0x40] */
   2271     ecx = MEM32(edx + 0x2C); /* 0x47094681: mov ecx, dword ptr [edx + 0x2c] */
   2272     eax = MEM32(ecx); /* 0x47094684: mov eax, dword ptr [ecx] */
   2273     PUSH32(esp, esi); /* 0x47094686: push esi */
   2274     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x47094687: call dword ptr [eax + 0x18] */
   2275     RECOMP_FLAGS_IN();
   2276     /* test eax, eax */ /* 0x4709468A: test eax, eax */
   2277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2278     _cf = 0;
   2279     _flag_k = FK_TEST;
   2280     if (TEST_NZ(_flag_a, _flag_b)) goto L_470946BC; /* 0x4709468C: jne 0x470946bc */
   2281 L_4709468E:
   2282     ecx = esp + 0x18; /* 0x4709468E: lea ecx, [esp + 0x18] */
   2283     RECOMP_ICALL(0x47095140u); /* 0x47094692: call 0x47095140 */ /* not lifted */
   2284     RECOMP_FLAGS_IN();
   2285     ecx = esp + 0x40; /* 0x47094697: lea ecx, [esp + 0x40] */
   2286     PUSH32(esp, ecx); /* 0x4709469B: push ecx */
   2287     ecx = esp + 0x1C; /* 0x4709469C: lea ecx, [esp + 0x1c] */
   2288     RECOMP_ICALL(0x47095040u); /* 0x470946A0: call 0x47095040 */ /* not lifted */
   2289     RECOMP_FLAGS_IN();
   2290     /* test eax, eax */ /* 0x470946A5: test eax, eax */
   2291     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2292     _cf = 0;
   2293     _flag_k = FK_TEST;
   2294     RECOMP_BACKEDGE();
   2295     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709467D; /* 0x470946A7: jne 0x4709467d */
   2296 L_470946A9:
   2297     goto L_470946D7; /* 0x470946A9: jmp 0x470946d7 */
   2298 L_470946BC:
   2299     edx = MEM32(esp + 0x40); /* 0x470946BC: mov edx, dword ptr [esp + 0x40] */
   2300     edi = MEM32(edx + 0x2C); /* 0x470946C0: mov edi, dword ptr [edx + 0x2c] */
   2301     /* test edi, edi */ /* 0x470946C3: test edi, edi */
   2302     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2303     _cf = 0;
   2304     _flag_k = FK_TEST;
   2305     if (TEST_Z(_flag_a, _flag_b)) goto L_470946D7; /* 0x470946C5: je 0x470946d7 */
   2306 L_470946C7:
   2307     ecx = MEM32(esp + 0x10); /* 0x470946C7: mov ecx, dword ptr [esp + 0x10] */
   2308     PUSH32(esp, ebp); /* 0x470946CB: push ebp */
   2309     PUSH32(esp, edi); /* 0x470946CC: push edi */
   2310     RECOMP_ICALL(0x47094580u); /* 0x470946CD: call 0x47094580 */ /* not lifted */
   2311     RECOMP_FLAGS_IN();
   2312     /* cmp eax, 1 */ /* 0x470946D2: cmp eax, 1 */
   2313     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2314     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2315     _flag_k = FK_CMP;
   2316     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709470F; /* 0x470946D5: je 0x4709470f */
   2317 L_470946D7:
   2318     ecx = MEM32(esp + 0x20); /* 0x470946D7: mov ecx, dword ptr [esp + 0x20] */
   2319     eax = MEM32(ecx); /* 0x470946DB: mov eax, dword ptr [ecx] */
   2320     /* cmp ecx, eax */ /* 0x470946DD: cmp ecx, eax */
   2321     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2323     _flag_k = FK_CMP;
   2324     RECOMP_BACKEDGE();
   2325     if (CMP_NE(_flag_a, _flag_b)) goto L_47094633; /* 0x470946DF: jne 0x47094633 */
   2326 L_470946E5:
   2327     ecx = esp + 0x20; /* 0x470946E5: lea ecx, [esp + 0x20] */
   2328     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x470946E9: mov dword ptr [esp + 0x34], 0xffffffff */
   2329     RECOMP_ICALL(0x47095170u); /* 0x470946F1: call 0x47095170 */ /* not lifted */
   2330     RECOMP_FLAGS_IN();
   2331     eax = MEM32(esp + 0x20); /* 0x470946F6: mov eax, dword ptr [esp + 0x20] */
   2332     /* test eax, eax */ /* 0x470946FA: test eax, eax */
   2333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2334     _cf = 0;
   2335     _flag_k = FK_TEST;
   2336     if (TEST_Z(_flag_a, _flag_b)) goto L_47094708; /* 0x470946FC: je 0x47094708 */
   2337 L_470946FE:
   2338     ecx = MEM32(esp + 0x28); /* 0x470946FE: mov ecx, dword ptr [esp + 0x28] */
   2339     edx = MEM32(ecx); /* 0x47094702: mov edx, dword ptr [ecx] */
   2340     PUSH32(esp, eax); /* 0x47094704: push eax */
   2341     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094705: call dword ptr [edx + 0xc] */
   2342     RECOMP_FLAGS_IN();
   2343 L_47094708:
   2344     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2345     eax = 0; /* 0x47094708: xor eax, eax */
   2346     _cf = 0;
   2347     _flag_k = FK_TEST;
   2348     goto L_470948AE; /* 0x4709470A: jmp 0x470948ae */
   2349 L_4709470F:
   2350     eax = MEM32(esp + 0x10); /* 0x4709470F: mov eax, dword ptr [esp + 0x10] */
   2351     ecx = MEM32(eax + 0x4); /* 0x47094713: mov ecx, dword ptr [eax + 4] */
   2352     /* test ecx, ecx */ /* 0x47094716: test ecx, ecx */
   2353     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2354     _cf = 0;
   2355     _flag_k = FK_TEST;
   2356     if (TEST_Z(_flag_a, _flag_b)) goto L_47094853; /* 0x47094718: je 0x47094853 */
   2357 L_4709471E:
   2358     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709471E: call dword ptr [0x470ac150] */
   2359     RECOMP_FLAGS_IN();
   2360     ebx = eax; /* 0x47094724: mov ebx, eax */
   2361     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094726: call dword ptr [0x470ac3c8] */
   2362     RECOMP_FLAGS_IN();
   2363     eax = MEM32(eax); /* 0x4709472C: mov eax, dword ptr [eax] */
   2364     /* test eax, eax */ /* 0x4709472E: test eax, eax */
   2365     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2366     _cf = 0;
   2367     _flag_k = FK_TEST;
   2368     if (TEST_Z(_flag_a, _flag_b)) goto L_47094734; /* 0x47094730: je 0x47094734 */
   2369 L_47094732:
   2370     ebx = eax; /* 0x47094732: mov ebx, eax */
   2371 L_47094734:
   2372     RECOMP_ICALL(0x47039020u); /* 0x47094734: call 0x47039020 */ /* not lifted */
   2373     RECOMP_FLAGS_IN();
   2374     esi = eax; /* 0x47094739: mov esi, eax */
   2375     ecx = esi; /* 0x4709473B: mov ecx, esi */
   2376     RECOMP_ICALL(0x4703B210u); /* 0x4709473D: call 0x4703b210 */ /* not lifted */
   2377     RECOMP_FLAGS_IN();
   2378     PUSH32(esp, eax); /* 0x47094742: push eax */
   2379     ecx = esi; /* 0x47094743: mov ecx, esi */
   2380     RECOMP_ICALL(0x4703B240u); /* 0x47094745: call 0x4703b240 */ /* not lifted */
   2381     RECOMP_FLAGS_IN();
   2382     PUSH32(esp, eax); /* 0x4709474A: push eax */
   2383     ecx = esi; /* 0x4709474B: mov ecx, esi */
   2384     RECOMP_ICALL(0x4703B080u); /* 0x4709474D: call 0x4703b080 */ /* not lifted */
   2385     RECOMP_FLAGS_IN();
   2386     PUSH32(esp, eax); /* 0x47094752: push eax */
   2387     PUSH32(esp, ebx); /* 0x47094753: push ebx */
   2388     PUSH32(esp, 0); /* 0x47094754: push 0 */
   2389     PUSH32(esp, 0xB4u); /* 0x47094756: push 0xb4 */
   2390     PUSH32(esp, 0x4710D05Cu); /* 0x4709475B: push 0x4710d05c */
   2391     ecx = esi; /* 0x47094760: mov ecx, esi */
   2392     RECOMP_ICALL(0x4703A340u); /* 0x47094762: call 0x4703a340 */ /* not lifted */
   2393     RECOMP_FLAGS_IN();
   2394     ecx = MEM32(esp + 0x3C); /* 0x47094767: mov ecx, dword ptr [esp + 0x3c] */
   2395     edx = MEM32(esp + 0x14); /* 0x4709476B: mov edx, dword ptr [esp + 0x14] */
   2396     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u);
   2397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2398     edi = edi + 0x18u; /* 0x4709476F: add edi, 0x18 */
   2399     _flag_k = FK_ADD;
   2400     PUSH32(esp, edi); /* 0x47094772: push edi */
   2401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   2402     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2403     ecx = ecx + 0x18u; /* 0x47094773: add ecx, 0x18 */
   2404     _flag_k = FK_ADD;
   2405     PUSH32(esp, ecx); /* 0x47094776: push ecx */
   2406     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x60u);
   2407     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2408     edx = edx + 0x60u; /* 0x47094777: add edx, 0x60 */
   2409     _flag_k = FK_ADD;
   2410     PUSH32(esp, edx); /* 0x4709477A: push edx */
   2411     goto L_47094843; /* 0x4709477B: jmp 0x47094843 */
   2412 L_47094843:
   2413     PUSH32(esp, 0x4710D01Cu); /* 0x47094843: push 0x4710d01c */
   2414     PUSH32(esp, 4); /* 0x47094848: push 4 */
   2415     PUSH32(esp, esi); /* 0x4709484A: push esi */
   2416     RECOMP_ICALL(0x47039830u); /* 0x4709484B: call 0x47039830 */ /* not lifted */
   2417     RECOMP_FLAGS_IN();
   2418     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2420     esp = esp + 0x18u; /* 0x47094850: add esp, 0x18 */
   2421     _flag_k = FK_ADD;
   2422 L_47094853:
   2423     ecx = esp + 0x20; /* 0x47094853: lea ecx, [esp + 0x20] */
   2424     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094857: mov dword ptr [esp + 0x34], 0xffffffff */
   2425     RECOMP_ICALL(0x47095170u); /* 0x4709485F: call 0x47095170 */ /* not lifted */
   2426     RECOMP_FLAGS_IN();
   2427     eax = MEM32(esp + 0x20); /* 0x47094864: mov eax, dword ptr [esp + 0x20] */
   2428     /* test eax, eax */ /* 0x47094868: test eax, eax */
   2429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2430     _cf = 0;
   2431     _flag_k = FK_TEST;
   2432     if (TEST_Z(_flag_a, _flag_b)) goto L_47094876; /* 0x4709486A: je 0x47094876 */
   2433 L_4709486C:
   2434     ecx = MEM32(esp + 0x28); /* 0x4709486C: mov ecx, dword ptr [esp + 0x28] */
   2435     edx = MEM32(ecx); /* 0x47094870: mov edx, dword ptr [ecx] */
   2436     PUSH32(esp, eax); /* 0x47094872: push eax */
   2437     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094873: call dword ptr [edx + 0xc] */
   2438     RECOMP_FLAGS_IN();
   2439 L_47094876:
   2440     eax = 1; /* 0x47094876: mov eax, 1 */
   2441     goto L_470948AE; /* 0x4709487B: jmp 0x470948ae */
   2442 L_470948AE:
   2443     ecx = MEM32(esp + 0x2C); /* 0x470948AE: mov ecx, dword ptr [esp + 0x2c] */
   2444     edi = POP32_VAL(esp); /* 0x470948B2: pop edi */
   2445     esi = POP32_VAL(esp); /* 0x470948B3: pop esi */
   2446     ebp = POP32_VAL(esp); /* 0x470948B4: pop ebp */
   2447     ebx = POP32_VAL(esp); /* 0x470948B5: pop ebx */
   2448     MEM32(FS_BASE + (0)) = ecx; /* 0x470948B6: mov dword ptr fs:[0], ecx */
   2449     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2451     esp = esp + 0x28u; /* 0x470948BD: add esp, 0x28 */
   2452     _flag_k = FK_ADD;
   2453     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470948C0: ret 8 */
   2454     RECOMP_REGS_OUT();
   2455 }
   2456 
   2457 void sub_470946D7(void) {
   2458     int _fpu_cmp = 0;
   2459     uint32_t _cf = 0;
   2460     int _df = 1;
   2461     uint32_t _flag_k = FK_NONE;
   2462     uint32_t _flag_a = 0, _flag_b = 0;
   2463     uint32_t _itail_tgt = 0;
   2464     RECOMP_REGS_LOCALS
   2465     RECOMP_ENTER(0x470946D7u);
   2466 
   2467     goto L_470946D7;
   2468 L_47094633:
   2469     /* test eax, eax */ /* 0x47094633: test eax, eax */
   2470     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2471     _cf = 0;
   2472     _flag_k = FK_TEST;
   2473     edx = MEM32(eax + 0x4); /* 0x47094635: mov edx, dword ptr [eax + 4] */
   2474     MEM32(esp + 0x14) = edx; /* 0x47094638: mov dword ptr [esp + 0x14], edx */
   2475     edx = MEM32(eax); /* 0x4709463C: mov edx, dword ptr [eax] */
   2476     MEM32(ecx) = edx; /* 0x4709463E: mov dword ptr [ecx], edx */
   2477     if (TEST_Z(_flag_a, _flag_b)) goto L_4709464C; /* 0x47094640: je 0x4709464c */
   2478 L_47094642:
   2479     ecx = MEM32(esp + 0x28); /* 0x47094642: mov ecx, dword ptr [esp + 0x28] */
   2480     edx = MEM32(ecx); /* 0x47094646: mov edx, dword ptr [ecx] */
   2481     PUSH32(esp, eax); /* 0x47094648: push eax */
   2482     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094649: call dword ptr [edx + 0xc] */
   2483     RECOMP_FLAGS_IN();
   2484 L_4709464C:
   2485     _flag_a = (uint32_t)(MEM32(esp + 0x24)); _flag_b = (uint32_t)(1);
   2486     MEM32(esp + 0x24) = MEM32(esp + 0x24) - 1; /* 0x4709464C: dec dword ptr [esp + 0x24] */
   2487     _flag_k = FK_DEC;
   2488     eax = MEM32(esp + 0x14); /* 0x47094650: mov eax, dword ptr [esp + 0x14] */
   2489     PUSH32(esp, 0); /* 0x47094654: push 0 */
   2490     PUSH32(esp, ebx); /* 0x47094656: push ebx */
   2491     ecx = esp + 0x20; /* 0x47094657: lea ecx, [esp + 0x20] */
   2492     esi = eax + 0x60; /* 0x4709465B: lea esi, [eax + 0x60] */
   2493     RECOMP_ICALL(0x47095070u); /* 0x4709465E: call 0x47095070 */ /* not lifted */
   2494     RECOMP_FLAGS_IN();
   2495     ecx = esp + 0x40; /* 0x47094663: lea ecx, [esp + 0x40] */
   2496     PUSH32(esp, ecx); /* 0x47094667: push ecx */
   2497     ecx = esp + 0x1C; /* 0x47094668: lea ecx, [esp + 0x1c] */
   2498     MEM32(esp + 0x44) = 0; /* 0x4709466C: mov dword ptr [esp + 0x44], 0 */
   2499     RECOMP_ICALL(0x47095040u); /* 0x47094674: call 0x47095040 */ /* not lifted */
   2500     RECOMP_FLAGS_IN();
   2501     /* test eax, eax */ /* 0x47094679: test eax, eax */
   2502     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2503     _cf = 0;
   2504     _flag_k = FK_TEST;
   2505     if (TEST_Z(_flag_a, _flag_b)) goto L_470946D7; /* 0x4709467B: je 0x470946d7 */
   2506 L_4709467D:
   2507     edx = MEM32(esp + 0x40); /* 0x4709467D: mov edx, dword ptr [esp + 0x40] */
   2508     ecx = MEM32(edx + 0x2C); /* 0x47094681: mov ecx, dword ptr [edx + 0x2c] */
   2509     eax = MEM32(ecx); /* 0x47094684: mov eax, dword ptr [ecx] */
   2510     PUSH32(esp, esi); /* 0x47094686: push esi */
   2511     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x47094687: call dword ptr [eax + 0x18] */
   2512     RECOMP_FLAGS_IN();
   2513     /* test eax, eax */ /* 0x4709468A: test eax, eax */
   2514     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2515     _cf = 0;
   2516     _flag_k = FK_TEST;
   2517     if (TEST_NZ(_flag_a, _flag_b)) goto L_470946BC; /* 0x4709468C: jne 0x470946bc */
   2518 L_4709468E:
   2519     ecx = esp + 0x18; /* 0x4709468E: lea ecx, [esp + 0x18] */
   2520     RECOMP_ICALL(0x47095140u); /* 0x47094692: call 0x47095140 */ /* not lifted */
   2521     RECOMP_FLAGS_IN();
   2522     ecx = esp + 0x40; /* 0x47094697: lea ecx, [esp + 0x40] */
   2523     PUSH32(esp, ecx); /* 0x4709469B: push ecx */
   2524     ecx = esp + 0x1C; /* 0x4709469C: lea ecx, [esp + 0x1c] */
   2525     RECOMP_ICALL(0x47095040u); /* 0x470946A0: call 0x47095040 */ /* not lifted */
   2526     RECOMP_FLAGS_IN();
   2527     /* test eax, eax */ /* 0x470946A5: test eax, eax */
   2528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2529     _cf = 0;
   2530     _flag_k = FK_TEST;
   2531     RECOMP_BACKEDGE();
   2532     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709467D; /* 0x470946A7: jne 0x4709467d */
   2533 L_470946A9:
   2534     goto L_470946D7; /* 0x470946A9: jmp 0x470946d7 */
   2535 L_470946BC:
   2536     edx = MEM32(esp + 0x40); /* 0x470946BC: mov edx, dword ptr [esp + 0x40] */
   2537     edi = MEM32(edx + 0x2C); /* 0x470946C0: mov edi, dword ptr [edx + 0x2c] */
   2538     /* test edi, edi */ /* 0x470946C3: test edi, edi */
   2539     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2540     _cf = 0;
   2541     _flag_k = FK_TEST;
   2542     if (TEST_Z(_flag_a, _flag_b)) goto L_470946D7; /* 0x470946C5: je 0x470946d7 */
   2543 L_470946C7:
   2544     ecx = MEM32(esp + 0x10); /* 0x470946C7: mov ecx, dword ptr [esp + 0x10] */
   2545     PUSH32(esp, ebp); /* 0x470946CB: push ebp */
   2546     PUSH32(esp, edi); /* 0x470946CC: push edi */
   2547     RECOMP_ICALL(0x47094580u); /* 0x470946CD: call 0x47094580 */ /* not lifted */
   2548     RECOMP_FLAGS_IN();
   2549     /* cmp eax, 1 */ /* 0x470946D2: cmp eax, 1 */
   2550     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2552     _flag_k = FK_CMP;
   2553     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709470F; /* 0x470946D5: je 0x4709470f */
   2554 L_470946D7:
   2555     ecx = MEM32(esp + 0x20); /* 0x470946D7: mov ecx, dword ptr [esp + 0x20] */
   2556     eax = MEM32(ecx); /* 0x470946DB: mov eax, dword ptr [ecx] */
   2557     /* cmp ecx, eax */ /* 0x470946DD: cmp ecx, eax */
   2558     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2560     _flag_k = FK_CMP;
   2561     RECOMP_BACKEDGE();
   2562     if (CMP_NE(_flag_a, _flag_b)) goto L_47094633; /* 0x470946DF: jne 0x47094633 */
   2563 L_470946E5:
   2564     ecx = esp + 0x20; /* 0x470946E5: lea ecx, [esp + 0x20] */
   2565     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x470946E9: mov dword ptr [esp + 0x34], 0xffffffff */
   2566     RECOMP_ICALL(0x47095170u); /* 0x470946F1: call 0x47095170 */ /* not lifted */
   2567     RECOMP_FLAGS_IN();
   2568     eax = MEM32(esp + 0x20); /* 0x470946F6: mov eax, dword ptr [esp + 0x20] */
   2569     /* test eax, eax */ /* 0x470946FA: test eax, eax */
   2570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2571     _cf = 0;
   2572     _flag_k = FK_TEST;
   2573     if (TEST_Z(_flag_a, _flag_b)) goto L_47094708; /* 0x470946FC: je 0x47094708 */
   2574 L_470946FE:
   2575     ecx = MEM32(esp + 0x28); /* 0x470946FE: mov ecx, dword ptr [esp + 0x28] */
   2576     edx = MEM32(ecx); /* 0x47094702: mov edx, dword ptr [ecx] */
   2577     PUSH32(esp, eax); /* 0x47094704: push eax */
   2578     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094705: call dword ptr [edx + 0xc] */
   2579     RECOMP_FLAGS_IN();
   2580 L_47094708:
   2581     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2582     eax = 0; /* 0x47094708: xor eax, eax */
   2583     _cf = 0;
   2584     _flag_k = FK_TEST;
   2585     goto L_470948AE; /* 0x4709470A: jmp 0x470948ae */
   2586 L_4709470F:
   2587     eax = MEM32(esp + 0x10); /* 0x4709470F: mov eax, dword ptr [esp + 0x10] */
   2588     ecx = MEM32(eax + 0x4); /* 0x47094713: mov ecx, dword ptr [eax + 4] */
   2589     /* test ecx, ecx */ /* 0x47094716: test ecx, ecx */
   2590     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2591     _cf = 0;
   2592     _flag_k = FK_TEST;
   2593     if (TEST_Z(_flag_a, _flag_b)) goto L_47094853; /* 0x47094718: je 0x47094853 */
   2594 L_4709471E:
   2595     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709471E: call dword ptr [0x470ac150] */
   2596     RECOMP_FLAGS_IN();
   2597     ebx = eax; /* 0x47094724: mov ebx, eax */
   2598     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094726: call dword ptr [0x470ac3c8] */
   2599     RECOMP_FLAGS_IN();
   2600     eax = MEM32(eax); /* 0x4709472C: mov eax, dword ptr [eax] */
   2601     /* test eax, eax */ /* 0x4709472E: test eax, eax */
   2602     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2603     _cf = 0;
   2604     _flag_k = FK_TEST;
   2605     if (TEST_Z(_flag_a, _flag_b)) goto L_47094734; /* 0x47094730: je 0x47094734 */
   2606 L_47094732:
   2607     ebx = eax; /* 0x47094732: mov ebx, eax */
   2608 L_47094734:
   2609     RECOMP_ICALL(0x47039020u); /* 0x47094734: call 0x47039020 */ /* not lifted */
   2610     RECOMP_FLAGS_IN();
   2611     esi = eax; /* 0x47094739: mov esi, eax */
   2612     ecx = esi; /* 0x4709473B: mov ecx, esi */
   2613     RECOMP_ICALL(0x4703B210u); /* 0x4709473D: call 0x4703b210 */ /* not lifted */
   2614     RECOMP_FLAGS_IN();
   2615     PUSH32(esp, eax); /* 0x47094742: push eax */
   2616     ecx = esi; /* 0x47094743: mov ecx, esi */
   2617     RECOMP_ICALL(0x4703B240u); /* 0x47094745: call 0x4703b240 */ /* not lifted */
   2618     RECOMP_FLAGS_IN();
   2619     PUSH32(esp, eax); /* 0x4709474A: push eax */
   2620     ecx = esi; /* 0x4709474B: mov ecx, esi */
   2621     RECOMP_ICALL(0x4703B080u); /* 0x4709474D: call 0x4703b080 */ /* not lifted */
   2622     RECOMP_FLAGS_IN();
   2623     PUSH32(esp, eax); /* 0x47094752: push eax */
   2624     PUSH32(esp, ebx); /* 0x47094753: push ebx */
   2625     PUSH32(esp, 0); /* 0x47094754: push 0 */
   2626     PUSH32(esp, 0xB4u); /* 0x47094756: push 0xb4 */
   2627     PUSH32(esp, 0x4710D05Cu); /* 0x4709475B: push 0x4710d05c */
   2628     ecx = esi; /* 0x47094760: mov ecx, esi */
   2629     RECOMP_ICALL(0x4703A340u); /* 0x47094762: call 0x4703a340 */ /* not lifted */
   2630     RECOMP_FLAGS_IN();
   2631     ecx = MEM32(esp + 0x3C); /* 0x47094767: mov ecx, dword ptr [esp + 0x3c] */
   2632     edx = MEM32(esp + 0x14); /* 0x4709476B: mov edx, dword ptr [esp + 0x14] */
   2633     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u);
   2634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2635     edi = edi + 0x18u; /* 0x4709476F: add edi, 0x18 */
   2636     _flag_k = FK_ADD;
   2637     PUSH32(esp, edi); /* 0x47094772: push edi */
   2638     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   2639     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2640     ecx = ecx + 0x18u; /* 0x47094773: add ecx, 0x18 */
   2641     _flag_k = FK_ADD;
   2642     PUSH32(esp, ecx); /* 0x47094776: push ecx */
   2643     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x60u);
   2644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2645     edx = edx + 0x60u; /* 0x47094777: add edx, 0x60 */
   2646     _flag_k = FK_ADD;
   2647     PUSH32(esp, edx); /* 0x4709477A: push edx */
   2648     goto L_47094843; /* 0x4709477B: jmp 0x47094843 */
   2649 L_47094843:
   2650     PUSH32(esp, 0x4710D01Cu); /* 0x47094843: push 0x4710d01c */
   2651     PUSH32(esp, 4); /* 0x47094848: push 4 */
   2652     PUSH32(esp, esi); /* 0x4709484A: push esi */
   2653     RECOMP_ICALL(0x47039830u); /* 0x4709484B: call 0x47039830 */ /* not lifted */
   2654     RECOMP_FLAGS_IN();
   2655     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2656     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2657     esp = esp + 0x18u; /* 0x47094850: add esp, 0x18 */
   2658     _flag_k = FK_ADD;
   2659 L_47094853:
   2660     ecx = esp + 0x20; /* 0x47094853: lea ecx, [esp + 0x20] */
   2661     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094857: mov dword ptr [esp + 0x34], 0xffffffff */
   2662     RECOMP_ICALL(0x47095170u); /* 0x4709485F: call 0x47095170 */ /* not lifted */
   2663     RECOMP_FLAGS_IN();
   2664     eax = MEM32(esp + 0x20); /* 0x47094864: mov eax, dword ptr [esp + 0x20] */
   2665     /* test eax, eax */ /* 0x47094868: test eax, eax */
   2666     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2667     _cf = 0;
   2668     _flag_k = FK_TEST;
   2669     if (TEST_Z(_flag_a, _flag_b)) goto L_47094876; /* 0x4709486A: je 0x47094876 */
   2670 L_4709486C:
   2671     ecx = MEM32(esp + 0x28); /* 0x4709486C: mov ecx, dword ptr [esp + 0x28] */
   2672     edx = MEM32(ecx); /* 0x47094870: mov edx, dword ptr [ecx] */
   2673     PUSH32(esp, eax); /* 0x47094872: push eax */
   2674     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094873: call dword ptr [edx + 0xc] */
   2675     RECOMP_FLAGS_IN();
   2676 L_47094876:
   2677     eax = 1; /* 0x47094876: mov eax, 1 */
   2678     goto L_470948AE; /* 0x4709487B: jmp 0x470948ae */
   2679 L_470948AE:
   2680     ecx = MEM32(esp + 0x2C); /* 0x470948AE: mov ecx, dword ptr [esp + 0x2c] */
   2681     edi = POP32_VAL(esp); /* 0x470948B2: pop edi */
   2682     esi = POP32_VAL(esp); /* 0x470948B3: pop esi */
   2683     ebp = POP32_VAL(esp); /* 0x470948B4: pop ebp */
   2684     ebx = POP32_VAL(esp); /* 0x470948B5: pop ebx */
   2685     MEM32(FS_BASE + (0)) = ecx; /* 0x470948B6: mov dword ptr fs:[0], ecx */
   2686     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2687     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2688     esp = esp + 0x28u; /* 0x470948BD: add esp, 0x28 */
   2689     _flag_k = FK_ADD;
   2690     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470948C0: ret 8 */
   2691     RECOMP_REGS_OUT();
   2692 }
   2693 
   2694 void sub_4709470F(void) {
   2695     int _fpu_cmp = 0;
   2696     uint32_t _cf = 0;
   2697     int _df = 1;
   2698     uint32_t _flag_k = FK_NONE;
   2699     uint32_t _flag_a = 0, _flag_b = 0;
   2700     uint32_t _itail_tgt = 0;
   2701     RECOMP_REGS_LOCALS
   2702     RECOMP_ENTER(0x4709470Fu);
   2703 
   2704 L_4709470F:
   2705     eax = MEM32(esp + 0x10); /* 0x4709470F: mov eax, dword ptr [esp + 0x10] */
   2706     ecx = MEM32(eax + 0x4); /* 0x47094713: mov ecx, dword ptr [eax + 4] */
   2707     /* test ecx, ecx */ /* 0x47094716: test ecx, ecx */
   2708     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2709     _cf = 0;
   2710     _flag_k = FK_TEST;
   2711     if (TEST_Z(_flag_a, _flag_b)) goto L_47094853; /* 0x47094718: je 0x47094853 */
   2712 L_4709471E:
   2713     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4709471E: call dword ptr [0x470ac150] */
   2714     RECOMP_FLAGS_IN();
   2715     ebx = eax; /* 0x47094724: mov ebx, eax */
   2716     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094726: call dword ptr [0x470ac3c8] */
   2717     RECOMP_FLAGS_IN();
   2718     eax = MEM32(eax); /* 0x4709472C: mov eax, dword ptr [eax] */
   2719     /* test eax, eax */ /* 0x4709472E: test eax, eax */
   2720     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2721     _cf = 0;
   2722     _flag_k = FK_TEST;
   2723     if (TEST_Z(_flag_a, _flag_b)) goto L_47094734; /* 0x47094730: je 0x47094734 */
   2724 L_47094732:
   2725     ebx = eax; /* 0x47094732: mov ebx, eax */
   2726 L_47094734:
   2727     RECOMP_ICALL(0x47039020u); /* 0x47094734: call 0x47039020 */ /* not lifted */
   2728     RECOMP_FLAGS_IN();
   2729     esi = eax; /* 0x47094739: mov esi, eax */
   2730     ecx = esi; /* 0x4709473B: mov ecx, esi */
   2731     RECOMP_ICALL(0x4703B210u); /* 0x4709473D: call 0x4703b210 */ /* not lifted */
   2732     RECOMP_FLAGS_IN();
   2733     PUSH32(esp, eax); /* 0x47094742: push eax */
   2734     ecx = esi; /* 0x47094743: mov ecx, esi */
   2735     RECOMP_ICALL(0x4703B240u); /* 0x47094745: call 0x4703b240 */ /* not lifted */
   2736     RECOMP_FLAGS_IN();
   2737     PUSH32(esp, eax); /* 0x4709474A: push eax */
   2738     ecx = esi; /* 0x4709474B: mov ecx, esi */
   2739     RECOMP_ICALL(0x4703B080u); /* 0x4709474D: call 0x4703b080 */ /* not lifted */
   2740     RECOMP_FLAGS_IN();
   2741     PUSH32(esp, eax); /* 0x47094752: push eax */
   2742     PUSH32(esp, ebx); /* 0x47094753: push ebx */
   2743     PUSH32(esp, 0); /* 0x47094754: push 0 */
   2744     PUSH32(esp, 0xB4u); /* 0x47094756: push 0xb4 */
   2745     PUSH32(esp, 0x4710D05Cu); /* 0x4709475B: push 0x4710d05c */
   2746     ecx = esi; /* 0x47094760: mov ecx, esi */
   2747     RECOMP_ICALL(0x4703A340u); /* 0x47094762: call 0x4703a340 */ /* not lifted */
   2748     RECOMP_FLAGS_IN();
   2749     ecx = MEM32(esp + 0x3C); /* 0x47094767: mov ecx, dword ptr [esp + 0x3c] */
   2750     edx = MEM32(esp + 0x14); /* 0x4709476B: mov edx, dword ptr [esp + 0x14] */
   2751     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u);
   2752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2753     edi = edi + 0x18u; /* 0x4709476F: add edi, 0x18 */
   2754     _flag_k = FK_ADD;
   2755     PUSH32(esp, edi); /* 0x47094772: push edi */
   2756     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   2757     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2758     ecx = ecx + 0x18u; /* 0x47094773: add ecx, 0x18 */
   2759     _flag_k = FK_ADD;
   2760     PUSH32(esp, ecx); /* 0x47094776: push ecx */
   2761     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x60u);
   2762     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2763     edx = edx + 0x60u; /* 0x47094777: add edx, 0x60 */
   2764     _flag_k = FK_ADD;
   2765     PUSH32(esp, edx); /* 0x4709477A: push edx */
   2766     goto L_47094843; /* 0x4709477B: jmp 0x47094843 */
   2767 L_47094843:
   2768     PUSH32(esp, 0x4710D01Cu); /* 0x47094843: push 0x4710d01c */
   2769     PUSH32(esp, 4); /* 0x47094848: push 4 */
   2770     PUSH32(esp, esi); /* 0x4709484A: push esi */
   2771     RECOMP_ICALL(0x47039830u); /* 0x4709484B: call 0x47039830 */ /* not lifted */
   2772     RECOMP_FLAGS_IN();
   2773     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2775     esp = esp + 0x18u; /* 0x47094850: add esp, 0x18 */
   2776     _flag_k = FK_ADD;
   2777 L_47094853:
   2778     ecx = esp + 0x20; /* 0x47094853: lea ecx, [esp + 0x20] */
   2779     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094857: mov dword ptr [esp + 0x34], 0xffffffff */
   2780     RECOMP_ICALL(0x47095170u); /* 0x4709485F: call 0x47095170 */ /* not lifted */
   2781     RECOMP_FLAGS_IN();
   2782     eax = MEM32(esp + 0x20); /* 0x47094864: mov eax, dword ptr [esp + 0x20] */
   2783     /* test eax, eax */ /* 0x47094868: test eax, eax */
   2784     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2785     _cf = 0;
   2786     _flag_k = FK_TEST;
   2787     if (TEST_Z(_flag_a, _flag_b)) goto L_47094876; /* 0x4709486A: je 0x47094876 */
   2788 L_4709486C:
   2789     ecx = MEM32(esp + 0x28); /* 0x4709486C: mov ecx, dword ptr [esp + 0x28] */
   2790     edx = MEM32(ecx); /* 0x47094870: mov edx, dword ptr [ecx] */
   2791     PUSH32(esp, eax); /* 0x47094872: push eax */
   2792     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094873: call dword ptr [edx + 0xc] */
   2793     RECOMP_FLAGS_IN();
   2794 L_47094876:
   2795     eax = 1; /* 0x47094876: mov eax, 1 */
   2796     goto L_470948AE; /* 0x4709487B: jmp 0x470948ae */
   2797 L_470948AE:
   2798     ecx = MEM32(esp + 0x2C); /* 0x470948AE: mov ecx, dword ptr [esp + 0x2c] */
   2799     edi = POP32_VAL(esp); /* 0x470948B2: pop edi */
   2800     esi = POP32_VAL(esp); /* 0x470948B3: pop esi */
   2801     ebp = POP32_VAL(esp); /* 0x470948B4: pop ebp */
   2802     ebx = POP32_VAL(esp); /* 0x470948B5: pop ebx */
   2803     MEM32(FS_BASE + (0)) = ecx; /* 0x470948B6: mov dword ptr fs:[0], ecx */
   2804     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2806     esp = esp + 0x28u; /* 0x470948BD: add esp, 0x28 */
   2807     _flag_k = FK_ADD;
   2808     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470948C0: ret 8 */
   2809     RECOMP_REGS_OUT();
   2810 }
   2811 
   2812 void sub_47094843(void) {
   2813     int _fpu_cmp = 0;
   2814     uint32_t _cf = 0;
   2815     int _df = 1;
   2816     uint32_t _flag_k = FK_NONE;
   2817     uint32_t _flag_a = 0, _flag_b = 0;
   2818     uint32_t _itail_tgt = 0;
   2819     RECOMP_REGS_LOCALS
   2820     RECOMP_ENTER(0x47094843u);
   2821 
   2822 L_47094843:
   2823     PUSH32(esp, 0x4710D01Cu); /* 0x47094843: push 0x4710d01c */
   2824     PUSH32(esp, 4); /* 0x47094848: push 4 */
   2825     PUSH32(esp, esi); /* 0x4709484A: push esi */
   2826     RECOMP_ICALL(0x47039830u); /* 0x4709484B: call 0x47039830 */ /* not lifted */
   2827     RECOMP_FLAGS_IN();
   2828     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2829     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2830     esp = esp + 0x18u; /* 0x47094850: add esp, 0x18 */
   2831     _flag_k = FK_ADD;
   2832     ecx = esp + 0x20; /* 0x47094853: lea ecx, [esp + 0x20] */
   2833     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094857: mov dword ptr [esp + 0x34], 0xffffffff */
   2834     RECOMP_ICALL(0x47095170u); /* 0x4709485F: call 0x47095170 */ /* not lifted */
   2835     RECOMP_FLAGS_IN();
   2836     eax = MEM32(esp + 0x20); /* 0x47094864: mov eax, dword ptr [esp + 0x20] */
   2837     /* test eax, eax */ /* 0x47094868: test eax, eax */
   2838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2839     _cf = 0;
   2840     _flag_k = FK_TEST;
   2841     if (TEST_Z(_flag_a, _flag_b)) goto L_47094876; /* 0x4709486A: je 0x47094876 */
   2842 L_4709486C:
   2843     ecx = MEM32(esp + 0x28); /* 0x4709486C: mov ecx, dword ptr [esp + 0x28] */
   2844     edx = MEM32(ecx); /* 0x47094870: mov edx, dword ptr [ecx] */
   2845     PUSH32(esp, eax); /* 0x47094872: push eax */
   2846     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094873: call dword ptr [edx + 0xc] */
   2847     RECOMP_FLAGS_IN();
   2848 L_47094876:
   2849     eax = 1; /* 0x47094876: mov eax, 1 */
   2850     goto L_470948AE; /* 0x4709487B: jmp 0x470948ae */
   2851 L_470948AE:
   2852     ecx = MEM32(esp + 0x2C); /* 0x470948AE: mov ecx, dword ptr [esp + 0x2c] */
   2853     edi = POP32_VAL(esp); /* 0x470948B2: pop edi */
   2854     esi = POP32_VAL(esp); /* 0x470948B3: pop esi */
   2855     ebp = POP32_VAL(esp); /* 0x470948B4: pop ebp */
   2856     ebx = POP32_VAL(esp); /* 0x470948B5: pop ebx */
   2857     MEM32(FS_BASE + (0)) = ecx; /* 0x470948B6: mov dword ptr fs:[0], ecx */
   2858     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2859     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2860     esp = esp + 0x28u; /* 0x470948BD: add esp, 0x28 */
   2861     _flag_k = FK_ADD;
   2862     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470948C0: ret 8 */
   2863     RECOMP_REGS_OUT();
   2864 }
   2865 
   2866 void sub_47094853(void) {
   2867     int _fpu_cmp = 0;
   2868     uint32_t _cf = 0;
   2869     int _df = 1;
   2870     uint32_t _flag_k = FK_NONE;
   2871     uint32_t _flag_a = 0, _flag_b = 0;
   2872     uint32_t _itail_tgt = 0;
   2873     RECOMP_REGS_LOCALS
   2874     RECOMP_ENTER(0x47094853u);
   2875 
   2876 L_47094853:
   2877     ecx = esp + 0x20; /* 0x47094853: lea ecx, [esp + 0x20] */
   2878     MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47094857: mov dword ptr [esp + 0x34], 0xffffffff */
   2879     RECOMP_ICALL(0x47095170u); /* 0x4709485F: call 0x47095170 */ /* not lifted */
   2880     RECOMP_FLAGS_IN();
   2881     eax = MEM32(esp + 0x20); /* 0x47094864: mov eax, dword ptr [esp + 0x20] */
   2882     /* test eax, eax */ /* 0x47094868: test eax, eax */
   2883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2884     _cf = 0;
   2885     _flag_k = FK_TEST;
   2886     if (TEST_Z(_flag_a, _flag_b)) goto L_47094876; /* 0x4709486A: je 0x47094876 */
   2887 L_4709486C:
   2888     ecx = MEM32(esp + 0x28); /* 0x4709486C: mov ecx, dword ptr [esp + 0x28] */
   2889     edx = MEM32(ecx); /* 0x47094870: mov edx, dword ptr [ecx] */
   2890     PUSH32(esp, eax); /* 0x47094872: push eax */
   2891     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47094873: call dword ptr [edx + 0xc] */
   2892     RECOMP_FLAGS_IN();
   2893 L_47094876:
   2894     eax = 1; /* 0x47094876: mov eax, 1 */
   2895     goto L_470948AE; /* 0x4709487B: jmp 0x470948ae */
   2896 L_470948AE:
   2897     ecx = MEM32(esp + 0x2C); /* 0x470948AE: mov ecx, dword ptr [esp + 0x2c] */
   2898     edi = POP32_VAL(esp); /* 0x470948B2: pop edi */
   2899     esi = POP32_VAL(esp); /* 0x470948B3: pop esi */
   2900     ebp = POP32_VAL(esp); /* 0x470948B4: pop ebp */
   2901     ebx = POP32_VAL(esp); /* 0x470948B5: pop ebx */
   2902     MEM32(FS_BASE + (0)) = ecx; /* 0x470948B6: mov dword ptr fs:[0], ecx */
   2903     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2904     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2905     esp = esp + 0x28u; /* 0x470948BD: add esp, 0x28 */
   2906     _flag_k = FK_ADD;
   2907     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470948C0: ret 8 */
   2908     RECOMP_REGS_OUT();
   2909 }
   2910 
   2911 void sub_470948AE(void) {
   2912     int _fpu_cmp = 0;
   2913     uint32_t _cf = 0;
   2914     int _df = 1;
   2915     uint32_t _flag_k = FK_NONE;
   2916     uint32_t _flag_a = 0, _flag_b = 0;
   2917     uint32_t _itail_tgt = 0;
   2918     RECOMP_REGS_LOCALS
   2919     RECOMP_ENTER(0x470948AEu);
   2920 
   2921 L_470948AE:
   2922     ecx = MEM32(esp + 0x2C); /* 0x470948AE: mov ecx, dword ptr [esp + 0x2c] */
   2923     edi = POP32_VAL(esp); /* 0x470948B2: pop edi */
   2924     esi = POP32_VAL(esp); /* 0x470948B3: pop esi */
   2925     ebp = POP32_VAL(esp); /* 0x470948B4: pop ebp */
   2926     ebx = POP32_VAL(esp); /* 0x470948B5: pop ebx */
   2927     MEM32(FS_BASE + (0)) = ecx; /* 0x470948B6: mov dword ptr fs:[0], ecx */
   2928     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2929     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2930     esp = esp + 0x28u; /* 0x470948BD: add esp, 0x28 */
   2931     _flag_k = FK_ADD;
   2932     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470948C0: ret 8 */
   2933     RECOMP_REGS_OUT();
   2934 }
   2935 
   2936 void sub_470948D0(void) {
   2937     int _fpu_cmp = 0;
   2938     uint32_t _cf = 0;
   2939     int _df = 1;
   2940     uint32_t _flag_k = FK_NONE;
   2941     uint32_t _flag_a = 0, _flag_b = 0;
   2942     uint32_t _itail_tgt = 0;
   2943     RECOMP_REGS_LOCALS
   2944     RECOMP_ENTER(0x470948D0u);
   2945 
   2946 L_470948D0:
   2947     PUSH32(esp, ebx); /* 0x470948D0: push ebx */
   2948     PUSH32(esp, ebp); /* 0x470948D1: push ebp */
   2949     ebp = MEM32(esp + 0xC); /* 0x470948D2: mov ebp, dword ptr [esp + 0xc] */
   2950     PUSH32(esp, esi); /* 0x470948D6: push esi */
   2951     ebx = ecx; /* 0x470948D7: mov ebx, ecx */
   2952     esi = MEM32(ebx + 0xA0); /* 0x470948D9: mov esi, dword ptr [ebx + 0xa0] */
   2953     PUSH32(esp, edi); /* 0x470948DF: push edi */
   2954 L_470948E0:
   2955     /* cmp esi, 0xFFFFFFFEu */ /* 0x470948E0: cmp esi, -2 */
   2956     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFEu);
   2957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2958     _flag_k = FK_CMP;
   2959     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709491D; /* 0x470948E3: je 0x4709491d */
   2960 L_470948E5:
   2961     ecx = MEM32(ebx + 0x2C); /* 0x470948E5: mov ecx, dword ptr [ebx + 0x2c] */
   2962     eax = esi * 8; /* 0x470948E8: lea eax, [esi*8] */
   2963     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2965     eax = eax - esi; /* 0x470948EF: sub eax, esi */
   2966     _flag_k = FK_CMP;
   2967     edi = ecx + eax * 8; /* 0x470948F1: lea edi, [ecx + eax*8] */
   2968     ecx = MEM32(edi + 0x2C); /* 0x470948F4: mov ecx, dword ptr [edi + 0x2c] */
   2969     edx = MEM32(ecx); /* 0x470948F7: mov edx, dword ptr [ecx] */
   2970     PUSH32(esp, ebp); /* 0x470948F9: push ebp */
   2971     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x470948FA: call dword ptr [edx + 0x18] */
   2972     RECOMP_FLAGS_IN();
   2973     /* test eax, eax */ /* 0x470948FD: test eax, eax */
   2974     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2975     _cf = 0;
   2976     _flag_k = FK_TEST;
   2977     if (TEST_NZ(_flag_a, _flag_b)) goto L_47094913; /* 0x470948FF: jne 0x47094913 */
   2978 L_47094901:
   2979     ecx = MEM32(ebx + 0x2C); /* 0x47094901: mov ecx, dword ptr [ebx + 0x2c] */
   2980     eax = esi * 8; /* 0x47094904: lea eax, [esi*8] */
   2981     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2983     eax = eax - esi; /* 0x4709490B: sub eax, esi */
   2984     _flag_k = FK_CMP;
   2985     esi = MEM32(ecx + eax * 8 + 0x30); /* 0x4709490D: mov esi, dword ptr [ecx + eax*8 + 0x30] */
   2986     RECOMP_BACKEDGE();
   2987     goto L_470948E0; /* 0x47094911: jmp 0x470948e0 */
   2988 L_47094913:
   2989     eax = MEM32(edi + 0x2C); /* 0x47094913: mov eax, dword ptr [edi + 0x2c] */
   2990     edi = POP32_VAL(esp); /* 0x47094916: pop edi */
   2991     esi = POP32_VAL(esp); /* 0x47094917: pop esi */
   2992     ebp = POP32_VAL(esp); /* 0x47094918: pop ebp */
   2993     ebx = POP32_VAL(esp); /* 0x47094919: pop ebx */
   2994     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709491A: ret 4 */
   2995 L_4709491D:
   2996     edi = POP32_VAL(esp); /* 0x4709491D: pop edi */
   2997     esi = POP32_VAL(esp); /* 0x4709491E: pop esi */
   2998     ebp = POP32_VAL(esp); /* 0x4709491F: pop ebp */
   2999     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3000     eax = 0; /* 0x47094920: xor eax, eax */
   3001     _cf = 0;
   3002     _flag_k = FK_TEST;
   3003     ebx = POP32_VAL(esp); /* 0x47094922: pop ebx */
   3004     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47094923: ret 4 */
   3005     RECOMP_REGS_OUT();
   3006 }
   3007 
   3008 void sub_47094930(void) {
   3009     int _fpu_cmp = 0;
   3010     uint32_t _cf = 0;
   3011     int _df = 1;
   3012     uint32_t _flag_k = FK_NONE;
   3013     uint32_t _flag_a = 0, _flag_b = 0;
   3014     uint32_t _itail_tgt = 0;
   3015     RECOMP_REGS_LOCALS
   3016     RECOMP_ENTER(0x47094930u);
   3017 
   3018 L_47094930:
   3019     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094930: push -1 */
   3020     PUSH32(esp, 0x470AB0F8u); /* 0x47094932: push 0x470ab0f8 */
   3021     eax = MEM32(FS_BASE + (0)); /* 0x47094937: mov eax, dword ptr fs:[0] */
   3022     PUSH32(esp, eax); /* 0x4709493D: push eax */
   3023     MEM32(FS_BASE + (0)) = esp; /* 0x4709493E: mov dword ptr fs:[0], esp */
   3024     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
   3025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3026     esp = esp - 0x34u; /* 0x47094945: sub esp, 0x34 */
   3027     _flag_k = FK_CMP;
   3028     PUSH32(esp, ebx); /* 0x47094948: push ebx */
   3029     PUSH32(esp, ebp); /* 0x47094949: push ebp */
   3030     PUSH32(esp, esi); /* 0x4709494A: push esi */
   3031     PUSH32(esp, edi); /* 0x4709494B: push edi */
   3032     edi = ecx; /* 0x4709494C: mov edi, ecx */
   3033     esi = edi + 0x8; /* 0x4709494E: lea esi, [edi + 8] */
   3034     PUSH32(esp, esi); /* 0x47094951: push esi */
   3035     MEM32(esp + 0x14) = esi; /* 0x47094952: mov dword ptr [esp + 0x14], esi */
   3036     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47094956: call dword ptr [0x470ac180] */
   3037     RECOMP_FLAGS_IN();
   3038     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3039     edx = 0; /* 0x4709495C: xor edx, edx */
   3040     _cf = 0;
   3041     _flag_k = FK_TEST;
   3042     MEM32(esp + 0x14) = edx; /* 0x4709495E: mov dword ptr [esp + 0x14], edx */
   3043     ebx = MEM32(esp + 0x54); /* 0x47094962: mov ebx, dword ptr [esp + 0x54] */
   3044     eax = MEM32(ebx); /* 0x47094966: mov eax, dword ptr [ebx] */
   3045     ecx = MEM32(eax + 0x8); /* 0x47094968: mov ecx, dword ptr [eax + 8] */
   3046     /* cmp ecx, edx */ /* 0x4709496B: cmp ecx, edx */
   3047     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3049     _flag_k = FK_CMP;
   3050     ebp = MEM32(0x470AC3C8); /* 0x4709496D: mov ebp, dword ptr [0x470ac3c8] */
   3051     MEM32(esp + 0x4C) = edx; /* 0x47094973: mov dword ptr [esp + 0x4c], edx */
   3052     if (CMP_NE(_flag_a, _flag_b)) goto L_470949D1; /* 0x47094977: jne 0x470949d1 */
   3053 L_47094979:
   3054     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47094979: call dword ptr [0x470ac150] */
   3055     RECOMP_FLAGS_IN();
   3056     ebx = eax; /* 0x4709497F: mov ebx, eax */
   3057     RECOMP_ICALL(ebp); /* 0x47094981: call ebp */
   3058     RECOMP_FLAGS_IN();
   3059     eax = MEM32(eax); /* 0x47094983: mov eax, dword ptr [eax] */
   3060     /* test eax, eax */ /* 0x47094985: test eax, eax */
   3061     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3062     _cf = 0;
   3063     _flag_k = FK_TEST;
   3064     if (TEST_Z(_flag_a, _flag_b)) goto L_4709498B; /* 0x47094987: je 0x4709498b */
   3065 L_47094989:
   3066     ebx = eax; /* 0x47094989: mov ebx, eax */
   3067 L_4709498B:
   3068     RECOMP_ICALL(0x47039020u); /* 0x4709498B: call 0x47039020 */ /* not lifted */
   3069     RECOMP_FLAGS_IN();
   3070     esi = eax; /* 0x47094990: mov esi, eax */
   3071     ecx = esi; /* 0x47094992: mov ecx, esi */
   3072     RECOMP_ICALL(0x4703B210u); /* 0x47094994: call 0x4703b210 */ /* not lifted */
   3073     RECOMP_FLAGS_IN();
   3074     PUSH32(esp, eax); /* 0x47094999: push eax */
   3075     ecx = esi; /* 0x4709499A: mov ecx, esi */
   3076     RECOMP_ICALL(0x4703B240u); /* 0x4709499C: call 0x4703b240 */ /* not lifted */
   3077     RECOMP_FLAGS_IN();
   3078     PUSH32(esp, eax); /* 0x470949A1: push eax */
   3079     ecx = esi; /* 0x470949A2: mov ecx, esi */
   3080     RECOMP_ICALL(0x4703B080u); /* 0x470949A4: call 0x4703b080 */ /* not lifted */
   3081     RECOMP_FLAGS_IN();
   3082     PUSH32(esp, eax); /* 0x470949A9: push eax */
   3083     PUSH32(esp, ebx); /* 0x470949AA: push ebx */
   3084     PUSH32(esp, 0); /* 0x470949AB: push 0 */
   3085     PUSH32(esp, 0x7Cu); /* 0x470949AD: push 0x7c */
   3086     PUSH32(esp, 0x47106D40u); /* 0x470949AF: push 0x47106d40 */
   3087     ecx = esi; /* 0x470949B4: mov ecx, esi */
   3088     RECOMP_ICALL(0x4703A340u); /* 0x470949B6: call 0x4703a340 */ /* not lifted */
   3089     RECOMP_FLAGS_IN();
   3090     PUSH32(esp, 0x47106D24u); /* 0x470949BB: push 0x47106d24 */
   3091     PUSH32(esp, 4); /* 0x470949C0: push 4 */
   3092     PUSH32(esp, esi); /* 0x470949C2: push esi */
   3093     RECOMP_ICALL(0x47039830u); /* 0x470949C3: call 0x47039830 */ /* not lifted */
   3094     RECOMP_FLAGS_IN();
   3095     ebx = MEM32(esp + 0x60); /* 0x470949C8: mov ebx, dword ptr [esp + 0x60] */
   3096     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3097     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3098     esp = esp + 0xCu; /* 0x470949CC: add esp, 0xc */
   3099     _flag_k = FK_ADD;
   3100     goto L_470949DD; /* 0x470949CF: jmp 0x470949dd */
   3101 L_470949D1:
   3102     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3103     ecx = ecx - 1; /* 0x470949D1: dec ecx */
   3104     _flag_k = FK_DEC;
   3105     /* cmp ecx, edx */ /* 0x470949D2: cmp ecx, edx */
   3106     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3108     _flag_k = FK_CMP;
   3109     MEM32(eax + 0x8) = ecx; /* 0x470949D4: mov dword ptr [eax + 8], ecx */
   3110     if (CMP_NE(_flag_a, _flag_b)) goto L_47094B2A; /* 0x470949D7: jne 0x47094b2a */
   3111 L_470949DD:
   3112     eax = MEM32(ebx); /* 0x470949DD: mov eax, dword ptr [ebx] */
   3113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3114     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3115     eax = eax + 0x18u; /* 0x470949DF: add eax, 0x18 */
   3116     _flag_k = FK_ADD;
   3117     PUSH32(esp, eax); /* 0x470949E2: push eax */
   3118     ecx = esp + 0x1C; /* 0x470949E3: lea ecx, [esp + 0x1c] */
   3119     RECOMP_ICALL(0x47038900u); /* 0x470949E7: call 0x47038900 */ /* not lifted */
   3120     RECOMP_FLAGS_IN();
   3121     esi = edi + 0x24; /* 0x470949EC: lea esi, [edi + 0x24] */
   3122     ecx = esp + 0x54; /* 0x470949EF: lea ecx, [esp + 0x54] */
   3123     PUSH32(esp, ecx); /* 0x470949F3: push ecx */
   3124     edx = esp + 0x1C; /* 0x470949F4: lea edx, [esp + 0x1c] */
   3125     PUSH32(esp, edx); /* 0x470949F8: push edx */
   3126     ecx = esi; /* 0x470949F9: mov ecx, esi */
   3127     MEM8(esp + 0x54) = (uint8_t)(2); /* 0x470949FB: mov byte ptr [esp + 0x54], 2 */
   3128     MEM32(esp + 0x5C) = 0; /* 0x47094A00: mov dword ptr [esp + 0x5c], 0 */
   3129     RECOMP_ICALL(0x47095360u); /* 0x47094A08: call 0x47095360 */ /* not lifted */
   3130     RECOMP_FLAGS_IN();
   3131     /* test eax, eax */ /* 0x47094A0D: test eax, eax */
   3132     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3133     _cf = 0;
   3134     _flag_k = FK_TEST;
   3135     if (TEST_NZ(_flag_a, _flag_b)) goto L_47094A27; /* 0x47094A0F: jne 0x47094a27 */
   3136 L_47094A11:
   3137     ecx = MEM32(esp + 0x54); /* 0x47094A11: mov ecx, dword ptr [esp + 0x54] */
   3138     edx = ecx * 8; /* 0x47094A15: lea edx, [ecx*8] */
   3139     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3141     edx = edx - ecx; /* 0x47094A1C: sub edx, ecx */
   3142     _flag_k = FK_CMP;
   3143     ecx = MEM32(esi + 0x8); /* 0x47094A1E: mov ecx, dword ptr [esi + 8] */
   3144     ecx = MEM32(ecx + edx * 8 + 0x2C); /* 0x47094A21: mov ecx, dword ptr [ecx + edx*8 + 0x2c] */
   3145     goto L_47094A2B; /* 0x47094A25: jmp 0x47094a2b */
   3146 L_47094A27:
   3147     ecx = MEM32(esp + 0x54); /* 0x47094A27: mov ecx, dword ptr [esp + 0x54] */
   3148 L_47094A2B:
   3149     /* cmp eax, 0xFFFFFFFFu */ /* 0x47094A2B: cmp eax, -1 */
   3150     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3152     _flag_k = FK_CMP;
   3153     MEM8(esp + 0x4C) = (uint8_t)(1); /* 0x47094A2E: mov byte ptr [esp + 0x4c], 1 */
   3154     if (CMP_NE(_flag_a, _flag_b)) goto L_47094AA3; /* 0x47094A33: jne 0x47094aa3 */
   3155 L_47094A35:
   3156     RECOMP_ICALL(ebp); /* 0x47094A35: call ebp */
   3157     RECOMP_FLAGS_IN();
   3158     MEM32(eax) = 2; /* 0x47094A37: mov dword ptr [eax], 2 */
   3159     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47094A3D: call dword ptr [0x470ac150] */
   3160     RECOMP_FLAGS_IN();
   3161     edi = eax; /* 0x47094A43: mov edi, eax */
   3162     RECOMP_ICALL(ebp); /* 0x47094A45: call ebp */
   3163     RECOMP_FLAGS_IN();
   3164     eax = MEM32(eax); /* 0x47094A47: mov eax, dword ptr [eax] */
   3165     /* test eax, eax */ /* 0x47094A49: test eax, eax */
   3166     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3167     _cf = 0;
   3168     _flag_k = FK_TEST;
   3169     if (TEST_Z(_flag_a, _flag_b)) goto L_47094A4F; /* 0x47094A4B: je 0x47094a4f */
   3170 L_47094A4D:
   3171     edi = eax; /* 0x47094A4D: mov edi, eax */
   3172 L_47094A4F:
   3173     RECOMP_ICALL(0x47039020u); /* 0x47094A4F: call 0x47039020 */ /* not lifted */
   3174     RECOMP_FLAGS_IN();
   3175     esi = eax; /* 0x47094A54: mov esi, eax */
   3176     ecx = esi; /* 0x47094A56: mov ecx, esi */
   3177     RECOMP_ICALL(0x4703B210u); /* 0x47094A58: call 0x4703b210 */ /* not lifted */
   3178     RECOMP_FLAGS_IN();
   3179     PUSH32(esp, eax); /* 0x47094A5D: push eax */
   3180     ecx = esi; /* 0x47094A5E: mov ecx, esi */
   3181     RECOMP_ICALL(0x4703B240u); /* 0x47094A60: call 0x4703b240 */ /* not lifted */
   3182     RECOMP_FLAGS_IN();
   3183     PUSH32(esp, eax); /* 0x47094A65: push eax */
   3184     ecx = esi; /* 0x47094A66: mov ecx, esi */
   3185     RECOMP_ICALL(0x4703B080u); /* 0x47094A68: call 0x4703b080 */ /* not lifted */
   3186     RECOMP_FLAGS_IN();
   3187     PUSH32(esp, eax); /* 0x47094A6D: push eax */
   3188     PUSH32(esp, edi); /* 0x47094A6E: push edi */
   3189     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094A6F: push -1 */
   3190     PUSH32(esp, 0xE9u); /* 0x47094A71: push 0xe9 */
   3191     PUSH32(esp, 0x4710D05Cu); /* 0x47094A76: push 0x4710d05c */
   3192     ecx = esi; /* 0x47094A7B: mov ecx, esi */
   3193     RECOMP_ICALL(0x4703A340u); /* 0x47094A7D: call 0x4703a340 */ /* not lifted */
   3194     RECOMP_FLAGS_IN();
   3195     ecx = MEM32(ebx); /* 0x47094A82: mov ecx, dword ptr [ebx] */
   3196     edx = MEM32(ecx); /* 0x47094A84: mov edx, dword ptr [ecx] */
   3197     edi = ecx + 0x18; /* 0x47094A86: lea edi, [ecx + 0x18] */
   3198     RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x47094A89: call dword ptr [edx + 0x28] */
   3199     RECOMP_FLAGS_IN();
   3200     PUSH32(esp, eax); /* 0x47094A8C: push eax */
   3201     PUSH32(esp, edi); /* 0x47094A8D: push edi */
   3202     PUSH32(esp, 0x4710D0A8u); /* 0x47094A8E: push 0x4710d0a8 */
   3203     PUSH32(esp, 0x80u); /* 0x47094A93: push 0x80 */
   3204     PUSH32(esp, esi); /* 0x47094A98: push esi */
   3205     RECOMP_ICALL(0x47039830u); /* 0x47094A99: call 0x47039830 */ /* not lifted */
   3206     RECOMP_FLAGS_IN();
   3207     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3208     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3209     esp = esp + 0x14u; /* 0x47094A9E: add esp, 0x14 */
   3210     _flag_k = FK_ADD;
   3211     goto L_47094B18; /* 0x47094AA1: jmp 0x47094b18 */
   3212 L_47094AA3:
   3213     /* cmp MEM32(ebx), ecx */ /* 0x47094AA3: cmp dword ptr [ebx], ecx */
   3214     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(ecx);
   3215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3216     _flag_k = FK_CMP;
   3217     if (CMP_EQ(_flag_a, _flag_b)) goto L_47094B06; /* 0x47094AA5: je 0x47094b06 */
   3218 L_47094AA7:
   3219     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47094AA7: call dword ptr [0x470ac150] */
   3220     RECOMP_FLAGS_IN();
   3221     edi = eax; /* 0x47094AAD: mov edi, eax */
   3222     RECOMP_ICALL(ebp); /* 0x47094AAF: call ebp */
   3223     RECOMP_FLAGS_IN();
   3224     eax = MEM32(eax); /* 0x47094AB1: mov eax, dword ptr [eax] */
   3225     /* test eax, eax */ /* 0x47094AB3: test eax, eax */
   3226     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3227     _cf = 0;
   3228     _flag_k = FK_TEST;
   3229     if (TEST_Z(_flag_a, _flag_b)) goto L_47094AB9; /* 0x47094AB5: je 0x47094ab9 */
   3230 L_47094AB7:
   3231     edi = eax; /* 0x47094AB7: mov edi, eax */
   3232 L_47094AB9:
   3233     RECOMP_ICALL(0x47039020u); /* 0x47094AB9: call 0x47039020 */ /* not lifted */
   3234     RECOMP_FLAGS_IN();
   3235     esi = eax; /* 0x47094ABE: mov esi, eax */
   3236     ecx = esi; /* 0x47094AC0: mov ecx, esi */
   3237     RECOMP_ICALL(0x4703B210u); /* 0x47094AC2: call 0x4703b210 */ /* not lifted */
   3238     RECOMP_FLAGS_IN();
   3239     PUSH32(esp, eax); /* 0x47094AC7: push eax */
   3240     ecx = esi; /* 0x47094AC8: mov ecx, esi */
   3241     RECOMP_ICALL(0x4703B240u); /* 0x47094ACA: call 0x4703b240 */ /* not lifted */
   3242     RECOMP_FLAGS_IN();
   3243     PUSH32(esp, eax); /* 0x47094ACF: push eax */
   3244     ecx = esi; /* 0x47094AD0: mov ecx, esi */
   3245     RECOMP_ICALL(0x4703B080u); /* 0x47094AD2: call 0x4703b080 */ /* not lifted */
   3246     RECOMP_FLAGS_IN();
   3247     PUSH32(esp, eax); /* 0x47094AD7: push eax */
   3248     PUSH32(esp, edi); /* 0x47094AD8: push edi */
   3249     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094AD9: push -1 */
   3250     PUSH32(esp, 0xF1u); /* 0x47094ADB: push 0xf1 */
   3251     PUSH32(esp, 0x4710D05Cu); /* 0x47094AE0: push 0x4710d05c */
   3252     ecx = esi; /* 0x47094AE5: mov ecx, esi */
   3253     RECOMP_ICALL(0x4703A340u); /* 0x47094AE7: call 0x4703a340 */ /* not lifted */
   3254     RECOMP_FLAGS_IN();
   3255     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094AEC: push -1 */
   3256     PUSH32(esp, 0x4710D098u); /* 0x47094AEE: push 0x4710d098 */
   3257     PUSH32(esp, 0x47104AA4u); /* 0x47094AF3: push 0x47104aa4 */
   3258     PUSH32(esp, 0x80u); /* 0x47094AF8: push 0x80 */
   3259     PUSH32(esp, esi); /* 0x47094AFD: push esi */
   3260     RECOMP_ICALL(0x47039830u); /* 0x47094AFE: call 0x47039830 */ /* not lifted */
   3261     RECOMP_FLAGS_IN();
   3262     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3263     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3264     esp = esp + 0x14u; /* 0x47094B03: add esp, 0x14 */
   3265     _flag_k = FK_ADD;
   3266 L_47094B06:
   3267     ecx = MEM32(ebx); /* 0x47094B06: mov ecx, dword ptr [ebx] */
   3268     /* test ecx, ecx */ /* 0x47094B08: test ecx, ecx */
   3269     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3270     _cf = 0;
   3271     _flag_k = FK_TEST;
   3272     if (TEST_Z(_flag_a, _flag_b)) goto L_47094B12; /* 0x47094B0A: je 0x47094b12 */
   3273 L_47094B0C:
   3274     eax = MEM32(ecx); /* 0x47094B0C: mov eax, dword ptr [ecx] */
   3275     PUSH32(esp, 1); /* 0x47094B0E: push 1 */
   3276     RECOMP_ICALL(MEM32(eax)); /* 0x47094B10: call dword ptr [eax] */
   3277     RECOMP_FLAGS_IN();
   3278 L_47094B12:
   3279     MEM32(ebx) = 0; /* 0x47094B12: mov dword ptr [ebx], 0 */
   3280 L_47094B18:
   3281     ecx = esp + 0x18; /* 0x47094B18: lea ecx, [esp + 0x18] */
   3282     MEM8(esp + 0x4C) = (uint8_t)(0); /* 0x47094B1C: mov byte ptr [esp + 0x4c], 0 */
   3283     RECOMP_ICALL(0x47038A00u); /* 0x47094B21: call 0x47038a00 */ /* not lifted */
   3284     RECOMP_FLAGS_IN();
   3285     esi = MEM32(esp + 0x10); /* 0x47094B26: mov esi, dword ptr [esp + 0x10] */
   3286 L_47094B2A:
   3287     PUSH32(esp, esi); /* 0x47094B2A: push esi */
   3288     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47094B2B: call dword ptr [0x470ac190] */
   3289     RECOMP_FLAGS_IN();
   3290     ecx = MEM32(esp + 0x44); /* 0x47094B31: mov ecx, dword ptr [esp + 0x44] */
   3291     edi = POP32_VAL(esp); /* 0x47094B35: pop edi */
   3292     esi = POP32_VAL(esp); /* 0x47094B36: pop esi */
   3293     ebp = POP32_VAL(esp); /* 0x47094B37: pop ebp */
   3294     ebx = POP32_VAL(esp); /* 0x47094B38: pop ebx */
   3295     MEM32(FS_BASE + (0)) = ecx; /* 0x47094B39: mov dword ptr fs:[0], ecx */
   3296     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u);
   3297     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3298     esp = esp + 0x40u; /* 0x47094B40: add esp, 0x40 */
   3299     _flag_k = FK_ADD;
   3300     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47094B43: ret 4 */
   3301     RECOMP_REGS_OUT();
   3302 }
   3303 
   3304 void sub_47094B50(void) {
   3305     int _fpu_cmp = 0;
   3306     uint32_t _cf = 0;
   3307     int _df = 1;
   3308     uint32_t _flag_k = FK_NONE;
   3309     uint32_t _flag_a = 0, _flag_b = 0;
   3310     uint32_t _itail_tgt = 0;
   3311     RECOMP_REGS_LOCALS
   3312     RECOMP_ENTER(0x47094B50u);
   3313 
   3314 L_47094B50:
   3315     PUSH32(esp, ecx); /* 0x47094B50: push ecx */
   3316     PUSH32(esp, ebx); /* 0x47094B51: push ebx */
   3317     PUSH32(esp, ebp); /* 0x47094B52: push ebp */
   3318     PUSH32(esp, esi); /* 0x47094B53: push esi */
   3319     esi = MEM32(0x470AC150); /* 0x47094B54: mov esi, dword ptr [0x470ac150] */
   3320     PUSH32(esp, edi); /* 0x47094B5A: push edi */
   3321     ebp = ecx; /* 0x47094B5B: mov ebp, ecx */
   3322     RECOMP_ICALL(esi); /* 0x47094B5D: call esi */
   3323     RECOMP_FLAGS_IN();
   3324     edi = MEM32(0x470AC3C8); /* 0x47094B5F: mov edi, dword ptr [0x470ac3c8] */
   3325     ebx = eax; /* 0x47094B65: mov ebx, eax */
   3326     RECOMP_ICALL(edi); /* 0x47094B67: call edi */
   3327     RECOMP_FLAGS_IN();
   3328     eax = MEM32(eax); /* 0x47094B69: mov eax, dword ptr [eax] */
   3329     /* test eax, eax */ /* 0x47094B6B: test eax, eax */
   3330     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3331     _cf = 0;
   3332     _flag_k = FK_TEST;
   3333     MEM32(esp + 0x10) = ebx; /* 0x47094B6D: mov dword ptr [esp + 0x10], ebx */
   3334     if (TEST_Z(_flag_a, _flag_b)) goto L_47094B77; /* 0x47094B71: je 0x47094b77 */
   3335 L_47094B73:
   3336     MEM32(esp + 0x10) = eax; /* 0x47094B73: mov dword ptr [esp + 0x10], eax */
   3337 L_47094B77:
   3338     RECOMP_ICALL(0x47039020u); /* 0x47094B77: call 0x47039020 */ /* not lifted */
   3339     RECOMP_FLAGS_IN();
   3340     ebx = eax; /* 0x47094B7C: mov ebx, eax */
   3341     ecx = ebx; /* 0x47094B7E: mov ecx, ebx */
   3342     RECOMP_ICALL(0x4703B210u); /* 0x47094B80: call 0x4703b210 */ /* not lifted */
   3343     RECOMP_FLAGS_IN();
   3344     PUSH32(esp, eax); /* 0x47094B85: push eax */
   3345     ecx = ebx; /* 0x47094B86: mov ecx, ebx */
   3346     RECOMP_ICALL(0x4703B240u); /* 0x47094B88: call 0x4703b240 */ /* not lifted */
   3347     RECOMP_FLAGS_IN();
   3348     PUSH32(esp, eax); /* 0x47094B8D: push eax */
   3349     ecx = ebx; /* 0x47094B8E: mov ecx, ebx */
   3350     RECOMP_ICALL(0x4703B080u); /* 0x47094B90: call 0x4703b080 */ /* not lifted */
   3351     RECOMP_FLAGS_IN();
   3352     PUSH32(esp, eax); /* 0x47094B95: push eax */
   3353     eax = MEM32(esp + 0x1C); /* 0x47094B96: mov eax, dword ptr [esp + 0x1c] */
   3354     PUSH32(esp, eax); /* 0x47094B9A: push eax */
   3355     PUSH32(esp, 0); /* 0x47094B9B: push 0 */
   3356     PUSH32(esp, 0x101u); /* 0x47094B9D: push 0x101 */
   3357     PUSH32(esp, 0x4710D05Cu); /* 0x47094BA2: push 0x4710d05c */
   3358     ecx = ebx; /* 0x47094BA7: mov ecx, ebx */
   3359     RECOMP_ICALL(0x4703A340u); /* 0x47094BA9: call 0x4703a340 */ /* not lifted */
   3360     RECOMP_FLAGS_IN();
   3361     PUSH32(esp, ebp); /* 0x47094BAE: push ebp */
   3362     PUSH32(esp, 0x471052CCu); /* 0x47094BAF: push 0x471052cc */
   3363     PUSH32(esp, 4); /* 0x47094BB4: push 4 */
   3364     PUSH32(esp, ebx); /* 0x47094BB6: push ebx */
   3365     RECOMP_ICALL(0x47039830u); /* 0x47094BB7: call 0x47039830 */ /* not lifted */
   3366     RECOMP_FLAGS_IN();
   3367     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3368     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3369     esp = esp + 0x10u; /* 0x47094BBC: add esp, 0x10 */
   3370     _flag_k = FK_ADD;
   3371     RECOMP_ICALL(esi); /* 0x47094BBF: call esi */
   3372     RECOMP_FLAGS_IN();
   3373     ebx = eax; /* 0x47094BC1: mov ebx, eax */
   3374     RECOMP_ICALL(edi); /* 0x47094BC3: call edi */
   3375     RECOMP_FLAGS_IN();
   3376     eax = MEM32(eax); /* 0x47094BC5: mov eax, dword ptr [eax] */
   3377     /* test eax, eax */ /* 0x47094BC7: test eax, eax */
   3378     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3379     _cf = 0;
   3380     _flag_k = FK_TEST;
   3381     MEM32(esp + 0x10) = ebx; /* 0x47094BC9: mov dword ptr [esp + 0x10], ebx */
   3382     if (TEST_Z(_flag_a, _flag_b)) goto L_47094BD3; /* 0x47094BCD: je 0x47094bd3 */
   3383 L_47094BCF:
   3384     MEM32(esp + 0x10) = eax; /* 0x47094BCF: mov dword ptr [esp + 0x10], eax */
   3385 L_47094BD3:
   3386     RECOMP_ICALL(0x47039020u); /* 0x47094BD3: call 0x47039020 */ /* not lifted */
   3387     RECOMP_FLAGS_IN();
   3388     ebx = eax; /* 0x47094BD8: mov ebx, eax */
   3389     ecx = ebx; /* 0x47094BDA: mov ecx, ebx */
   3390     RECOMP_ICALL(0x4703B210u); /* 0x47094BDC: call 0x4703b210 */ /* not lifted */
   3391     RECOMP_FLAGS_IN();
   3392     PUSH32(esp, eax); /* 0x47094BE1: push eax */
   3393     ecx = ebx; /* 0x47094BE2: mov ecx, ebx */
   3394     RECOMP_ICALL(0x4703B240u); /* 0x47094BE4: call 0x4703b240 */ /* not lifted */
   3395     RECOMP_FLAGS_IN();
   3396     PUSH32(esp, eax); /* 0x47094BE9: push eax */
   3397     ecx = ebx; /* 0x47094BEA: mov ecx, ebx */
   3398     RECOMP_ICALL(0x4703B080u); /* 0x47094BEC: call 0x4703b080 */ /* not lifted */
   3399     RECOMP_FLAGS_IN();
   3400     ecx = MEM32(esp + 0x18); /* 0x47094BF1: mov ecx, dword ptr [esp + 0x18] */
   3401     PUSH32(esp, eax); /* 0x47094BF5: push eax */
   3402     PUSH32(esp, ecx); /* 0x47094BF6: push ecx */
   3403     PUSH32(esp, 0); /* 0x47094BF7: push 0 */
   3404     PUSH32(esp, 0x102u); /* 0x47094BF9: push 0x102 */
   3405     PUSH32(esp, 0x4710D05Cu); /* 0x47094BFE: push 0x4710d05c */
   3406     ecx = ebx; /* 0x47094C03: mov ecx, ebx */
   3407     RECOMP_ICALL(0x4703A340u); /* 0x47094C05: call 0x4703a340 */ /* not lifted */
   3408     RECOMP_FLAGS_IN();
   3409     PUSH32(esp, 0x4710D0D0u); /* 0x47094C0A: push 0x4710d0d0 */
   3410     PUSH32(esp, 4); /* 0x47094C0F: push 4 */
   3411     PUSH32(esp, ebx); /* 0x47094C11: push ebx */
   3412     RECOMP_ICALL(0x47039830u); /* 0x47094C12: call 0x47039830 */ /* not lifted */
   3413     RECOMP_FLAGS_IN();
   3414     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3416     esp = esp + 0xCu; /* 0x47094C17: add esp, 0xc */
   3417     _flag_k = FK_ADD;
   3418     RECOMP_ICALL(esi); /* 0x47094C1A: call esi */
   3419     RECOMP_FLAGS_IN();
   3420     ebx = eax; /* 0x47094C1C: mov ebx, eax */
   3421     RECOMP_ICALL(edi); /* 0x47094C1E: call edi */
   3422     RECOMP_FLAGS_IN();
   3423     eax = MEM32(eax); /* 0x47094C20: mov eax, dword ptr [eax] */
   3424     /* test eax, eax */ /* 0x47094C22: test eax, eax */
   3425     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3426     _cf = 0;
   3427     _flag_k = FK_TEST;
   3428     MEM32(esp + 0x10) = ebx; /* 0x47094C24: mov dword ptr [esp + 0x10], ebx */
   3429     if (TEST_Z(_flag_a, _flag_b)) goto L_47094C2E; /* 0x47094C28: je 0x47094c2e */
   3430 L_47094C2A:
   3431     MEM32(esp + 0x10) = eax; /* 0x47094C2A: mov dword ptr [esp + 0x10], eax */
   3432 L_47094C2E:
   3433     RECOMP_ICALL(0x47039020u); /* 0x47094C2E: call 0x47039020 */ /* not lifted */
   3434     RECOMP_FLAGS_IN();
   3435     ebx = eax; /* 0x47094C33: mov ebx, eax */
   3436     ecx = ebx; /* 0x47094C35: mov ecx, ebx */
   3437     RECOMP_ICALL(0x4703B210u); /* 0x47094C37: call 0x4703b210 */ /* not lifted */
   3438     RECOMP_FLAGS_IN();
   3439     PUSH32(esp, eax); /* 0x47094C3C: push eax */
   3440     ecx = ebx; /* 0x47094C3D: mov ecx, ebx */
   3441     RECOMP_ICALL(0x4703B240u); /* 0x47094C3F: call 0x4703b240 */ /* not lifted */
   3442     RECOMP_FLAGS_IN();
   3443     PUSH32(esp, eax); /* 0x47094C44: push eax */
   3444     ecx = ebx; /* 0x47094C45: mov ecx, ebx */
   3445     RECOMP_ICALL(0x4703B080u); /* 0x47094C47: call 0x4703b080 */ /* not lifted */
   3446     RECOMP_FLAGS_IN();
   3447     edx = MEM32(esp + 0x18); /* 0x47094C4C: mov edx, dword ptr [esp + 0x18] */
   3448     PUSH32(esp, eax); /* 0x47094C50: push eax */
   3449     PUSH32(esp, edx); /* 0x47094C51: push edx */
   3450     PUSH32(esp, 0); /* 0x47094C52: push 0 */
   3451     PUSH32(esp, 0x103u); /* 0x47094C54: push 0x103 */
   3452     PUSH32(esp, 0x4710D05Cu); /* 0x47094C59: push 0x4710d05c */
   3453     ecx = ebx; /* 0x47094C5E: mov ecx, ebx */
   3454     RECOMP_ICALL(0x4703A340u); /* 0x47094C60: call 0x4703a340 */ /* not lifted */
   3455     RECOMP_FLAGS_IN();
   3456     PUSH32(esp, 0x47106F9Cu); /* 0x47094C65: push 0x47106f9c */
   3457     PUSH32(esp, 4); /* 0x47094C6A: push 4 */
   3458     PUSH32(esp, ebx); /* 0x47094C6C: push ebx */
   3459     RECOMP_ICALL(0x47039830u); /* 0x47094C6D: call 0x47039830 */ /* not lifted */
   3460     RECOMP_FLAGS_IN();
   3461     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3462     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3463     esp = esp + 0xCu; /* 0x47094C72: add esp, 0xc */
   3464     _flag_k = FK_ADD;
   3465     ecx = ebp + 0x8; /* 0x47094C75: lea ecx, [ebp + 8] */
   3466     RECOMP_ICALL(0x47087D10u); /* 0x47094C78: call 0x47087d10 */ /* not lifted */
   3467     RECOMP_FLAGS_IN();
   3468     RECOMP_ICALL(esi); /* 0x47094C7D: call esi */
   3469     RECOMP_FLAGS_IN();
   3470     ebx = eax; /* 0x47094C7F: mov ebx, eax */
   3471     RECOMP_ICALL(edi); /* 0x47094C81: call edi */
   3472     RECOMP_FLAGS_IN();
   3473     eax = MEM32(eax); /* 0x47094C83: mov eax, dword ptr [eax] */
   3474     /* test eax, eax */ /* 0x47094C85: test eax, eax */
   3475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3476     _cf = 0;
   3477     _flag_k = FK_TEST;
   3478     MEM32(esp + 0x10) = ebx; /* 0x47094C87: mov dword ptr [esp + 0x10], ebx */
   3479     if (TEST_Z(_flag_a, _flag_b)) goto L_47094C91; /* 0x47094C8B: je 0x47094c91 */
   3480 L_47094C8D:
   3481     MEM32(esp + 0x10) = eax; /* 0x47094C8D: mov dword ptr [esp + 0x10], eax */
   3482 L_47094C91:
   3483     RECOMP_ICALL(0x47039020u); /* 0x47094C91: call 0x47039020 */ /* not lifted */
   3484     RECOMP_FLAGS_IN();
   3485     ebx = eax; /* 0x47094C96: mov ebx, eax */
   3486     ecx = ebx; /* 0x47094C98: mov ecx, ebx */
   3487     RECOMP_ICALL(0x4703B210u); /* 0x47094C9A: call 0x4703b210 */ /* not lifted */
   3488     RECOMP_FLAGS_IN();
   3489     PUSH32(esp, eax); /* 0x47094C9F: push eax */
   3490     ecx = ebx; /* 0x47094CA0: mov ecx, ebx */
   3491     RECOMP_ICALL(0x4703B240u); /* 0x47094CA2: call 0x4703b240 */ /* not lifted */
   3492     RECOMP_FLAGS_IN();
   3493     PUSH32(esp, eax); /* 0x47094CA7: push eax */
   3494     ecx = ebx; /* 0x47094CA8: mov ecx, ebx */
   3495     RECOMP_ICALL(0x4703B080u); /* 0x47094CAA: call 0x4703b080 */ /* not lifted */
   3496     RECOMP_FLAGS_IN();
   3497     PUSH32(esp, eax); /* 0x47094CAF: push eax */
   3498     eax = MEM32(esp + 0x1C); /* 0x47094CB0: mov eax, dword ptr [esp + 0x1c] */
   3499     PUSH32(esp, eax); /* 0x47094CB4: push eax */
   3500     PUSH32(esp, 0); /* 0x47094CB5: push 0 */
   3501     PUSH32(esp, 0x105u); /* 0x47094CB7: push 0x105 */
   3502     PUSH32(esp, 0x4710D05Cu); /* 0x47094CBC: push 0x4710d05c */
   3503     ecx = ebx; /* 0x47094CC1: mov ecx, ebx */
   3504     RECOMP_ICALL(0x4703A340u); /* 0x47094CC3: call 0x4703a340 */ /* not lifted */
   3505     RECOMP_FLAGS_IN();
   3506     PUSH32(esp, 0x4710CECCu); /* 0x47094CC8: push 0x4710cecc */
   3507     PUSH32(esp, 4); /* 0x47094CCD: push 4 */
   3508     PUSH32(esp, ebx); /* 0x47094CCF: push ebx */
   3509     RECOMP_ICALL(0x47039830u); /* 0x47094CD0: call 0x47039830 */ /* not lifted */
   3510     RECOMP_FLAGS_IN();
   3511     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3512     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3513     esp = esp + 0xCu; /* 0x47094CD5: add esp, 0xc */
   3514     _flag_k = FK_ADD;
   3515     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x24u);
   3516     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3517     ebp = ebp + 0x24u; /* 0x47094CD8: add ebp, 0x24 */
   3518     _flag_k = FK_ADD;
   3519     RECOMP_ICALL(esi); /* 0x47094CDB: call esi */
   3520     RECOMP_FLAGS_IN();
   3521     ebx = eax; /* 0x47094CDD: mov ebx, eax */
   3522     RECOMP_ICALL(edi); /* 0x47094CDF: call edi */
   3523     RECOMP_FLAGS_IN();
   3524     eax = MEM32(eax); /* 0x47094CE1: mov eax, dword ptr [eax] */
   3525     /* test eax, eax */ /* 0x47094CE3: test eax, eax */
   3526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3527     _cf = 0;
   3528     _flag_k = FK_TEST;
   3529     MEM32(esp + 0x10) = ebx; /* 0x47094CE5: mov dword ptr [esp + 0x10], ebx */
   3530     if (TEST_Z(_flag_a, _flag_b)) goto L_47094CEF; /* 0x47094CE9: je 0x47094cef */
   3531 L_47094CEB:
   3532     MEM32(esp + 0x10) = eax; /* 0x47094CEB: mov dword ptr [esp + 0x10], eax */
   3533 L_47094CEF:
   3534     RECOMP_ICALL(0x47039020u); /* 0x47094CEF: call 0x47039020 */ /* not lifted */
   3535     RECOMP_FLAGS_IN();
   3536     ebx = eax; /* 0x47094CF4: mov ebx, eax */
   3537     ecx = ebx; /* 0x47094CF6: mov ecx, ebx */
   3538     RECOMP_ICALL(0x4703B210u); /* 0x47094CF8: call 0x4703b210 */ /* not lifted */
   3539     RECOMP_FLAGS_IN();
   3540     PUSH32(esp, eax); /* 0x47094CFD: push eax */
   3541     ecx = ebx; /* 0x47094CFE: mov ecx, ebx */
   3542     RECOMP_ICALL(0x4703B240u); /* 0x47094D00: call 0x4703b240 */ /* not lifted */
   3543     RECOMP_FLAGS_IN();
   3544     PUSH32(esp, eax); /* 0x47094D05: push eax */
   3545     ecx = ebx; /* 0x47094D06: mov ecx, ebx */
   3546     RECOMP_ICALL(0x4703B080u); /* 0x47094D08: call 0x4703b080 */ /* not lifted */
   3547     RECOMP_FLAGS_IN();
   3548     ecx = MEM32(esp + 0x18); /* 0x47094D0D: mov ecx, dword ptr [esp + 0x18] */
   3549     PUSH32(esp, eax); /* 0x47094D11: push eax */
   3550     PUSH32(esp, ecx); /* 0x47094D12: push ecx */
   3551     PUSH32(esp, 0); /* 0x47094D13: push 0 */
   3552     PUSH32(esp, 0x23Bu); /* 0x47094D15: push 0x23b */
   3553     PUSH32(esp, 0x4710CEB4u); /* 0x47094D1A: push 0x4710ceb4 */
   3554     ecx = ebx; /* 0x47094D1F: mov ecx, ebx */
   3555     RECOMP_ICALL(0x4703A340u); /* 0x47094D21: call 0x4703a340 */ /* not lifted */
   3556     RECOMP_FLAGS_IN();
   3557     PUSH32(esp, ebp); /* 0x47094D26: push ebp */
   3558     PUSH32(esp, 0x471052CCu); /* 0x47094D27: push 0x471052cc */
   3559     PUSH32(esp, 4); /* 0x47094D2C: push 4 */
   3560     PUSH32(esp, ebx); /* 0x47094D2E: push ebx */
   3561     RECOMP_ICALL(0x47039830u); /* 0x47094D2F: call 0x47039830 */ /* not lifted */
   3562     RECOMP_FLAGS_IN();
   3563     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3564     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3565     esp = esp + 0x10u; /* 0x47094D34: add esp, 0x10 */
   3566     _flag_k = FK_ADD;
   3567     RECOMP_ICALL(esi); /* 0x47094D37: call esi */
   3568     RECOMP_FLAGS_IN();
   3569     ebx = eax; /* 0x47094D39: mov ebx, eax */
   3570     RECOMP_ICALL(edi); /* 0x47094D3B: call edi */
   3571     RECOMP_FLAGS_IN();
   3572     eax = MEM32(eax); /* 0x47094D3D: mov eax, dword ptr [eax] */
   3573     /* test eax, eax */ /* 0x47094D3F: test eax, eax */
   3574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3575     _cf = 0;
   3576     _flag_k = FK_TEST;
   3577     MEM32(esp + 0x10) = ebx; /* 0x47094D41: mov dword ptr [esp + 0x10], ebx */
   3578     if (TEST_Z(_flag_a, _flag_b)) goto L_47094D4B; /* 0x47094D45: je 0x47094d4b */
   3579 L_47094D47:
   3580     MEM32(esp + 0x10) = eax; /* 0x47094D47: mov dword ptr [esp + 0x10], eax */
   3581 L_47094D4B:
   3582     RECOMP_ICALL(0x47039020u); /* 0x47094D4B: call 0x47039020 */ /* not lifted */
   3583     RECOMP_FLAGS_IN();
   3584     ebx = eax; /* 0x47094D50: mov ebx, eax */
   3585     ecx = ebx; /* 0x47094D52: mov ecx, ebx */
   3586     RECOMP_ICALL(0x4703B210u); /* 0x47094D54: call 0x4703b210 */ /* not lifted */
   3587     RECOMP_FLAGS_IN();
   3588     PUSH32(esp, eax); /* 0x47094D59: push eax */
   3589     ecx = ebx; /* 0x47094D5A: mov ecx, ebx */
   3590     RECOMP_ICALL(0x4703B240u); /* 0x47094D5C: call 0x4703b240 */ /* not lifted */
   3591     RECOMP_FLAGS_IN();
   3592     PUSH32(esp, eax); /* 0x47094D61: push eax */
   3593     ecx = ebx; /* 0x47094D62: mov ecx, ebx */
   3594     RECOMP_ICALL(0x4703B080u); /* 0x47094D64: call 0x4703b080 */ /* not lifted */
   3595     RECOMP_FLAGS_IN();
   3596     edx = MEM32(esp + 0x18); /* 0x47094D69: mov edx, dword ptr [esp + 0x18] */
   3597     PUSH32(esp, eax); /* 0x47094D6D: push eax */
   3598     PUSH32(esp, edx); /* 0x47094D6E: push edx */
   3599     PUSH32(esp, 0); /* 0x47094D6F: push 0 */
   3600     PUSH32(esp, 0x23Cu); /* 0x47094D71: push 0x23c */
   3601     PUSH32(esp, 0x4710CEB4u); /* 0x47094D76: push 0x4710ceb4 */
   3602     ecx = ebx; /* 0x47094D7B: mov ecx, ebx */
   3603     RECOMP_ICALL(0x4703A340u); /* 0x47094D7D: call 0x4703a340 */ /* not lifted */
   3604     RECOMP_FLAGS_IN();
   3605     eax = MEM32(ebp + 0xC); /* 0x47094D82: mov eax, dword ptr [ebp + 0xc] */
   3606     PUSH32(esp, eax); /* 0x47094D85: push eax */
   3607     PUSH32(esp, 0x4710CEA0u); /* 0x47094D86: push 0x4710cea0 */
   3608     PUSH32(esp, 4); /* 0x47094D8B: push 4 */
   3609     PUSH32(esp, ebx); /* 0x47094D8D: push ebx */
   3610     RECOMP_ICALL(0x47039830u); /* 0x47094D8E: call 0x47039830 */ /* not lifted */
   3611     RECOMP_FLAGS_IN();
   3612     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3613     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3614     esp = esp + 0x10u; /* 0x47094D93: add esp, 0x10 */
   3615     _flag_k = FK_ADD;
   3616     RECOMP_ICALL(esi); /* 0x47094D96: call esi */
   3617     RECOMP_FLAGS_IN();
   3618     ebx = eax; /* 0x47094D98: mov ebx, eax */
   3619     RECOMP_ICALL(edi); /* 0x47094D9A: call edi */
   3620     RECOMP_FLAGS_IN();
   3621     eax = MEM32(eax); /* 0x47094D9C: mov eax, dword ptr [eax] */
   3622     /* test eax, eax */ /* 0x47094D9E: test eax, eax */
   3623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3624     _cf = 0;
   3625     _flag_k = FK_TEST;
   3626     MEM32(esp + 0x10) = ebx; /* 0x47094DA0: mov dword ptr [esp + 0x10], ebx */
   3627     if (TEST_Z(_flag_a, _flag_b)) goto L_47094DAA; /* 0x47094DA4: je 0x47094daa */
   3628 L_47094DA6:
   3629     MEM32(esp + 0x10) = eax; /* 0x47094DA6: mov dword ptr [esp + 0x10], eax */
   3630 L_47094DAA:
   3631     RECOMP_ICALL(0x47039020u); /* 0x47094DAA: call 0x47039020 */ /* not lifted */
   3632     RECOMP_FLAGS_IN();
   3633     ebx = eax; /* 0x47094DAF: mov ebx, eax */
   3634     ecx = ebx; /* 0x47094DB1: mov ecx, ebx */
   3635     RECOMP_ICALL(0x4703B210u); /* 0x47094DB3: call 0x4703b210 */ /* not lifted */
   3636     RECOMP_FLAGS_IN();
   3637     PUSH32(esp, eax); /* 0x47094DB8: push eax */
   3638     ecx = ebx; /* 0x47094DB9: mov ecx, ebx */
   3639     RECOMP_ICALL(0x4703B240u); /* 0x47094DBB: call 0x4703b240 */ /* not lifted */
   3640     RECOMP_FLAGS_IN();
   3641     PUSH32(esp, eax); /* 0x47094DC0: push eax */
   3642     ecx = ebx; /* 0x47094DC1: mov ecx, ebx */
   3643     RECOMP_ICALL(0x4703B080u); /* 0x47094DC3: call 0x4703b080 */ /* not lifted */
   3644     RECOMP_FLAGS_IN();
   3645     ecx = MEM32(esp + 0x18); /* 0x47094DC8: mov ecx, dword ptr [esp + 0x18] */
   3646     PUSH32(esp, eax); /* 0x47094DCC: push eax */
   3647     PUSH32(esp, ecx); /* 0x47094DCD: push ecx */
   3648     PUSH32(esp, 0); /* 0x47094DCE: push 0 */
   3649     PUSH32(esp, 0x23Du); /* 0x47094DD0: push 0x23d */
   3650     PUSH32(esp, 0x4710CEB4u); /* 0x47094DD5: push 0x4710ceb4 */
   3651     ecx = ebx; /* 0x47094DDA: mov ecx, ebx */
   3652     RECOMP_ICALL(0x4703A340u); /* 0x47094DDC: call 0x4703a340 */ /* not lifted */
   3653     RECOMP_FLAGS_IN();
   3654     edx = MEM32(ebp + 0x10); /* 0x47094DE1: mov edx, dword ptr [ebp + 0x10] */
   3655     PUSH32(esp, edx); /* 0x47094DE4: push edx */
   3656     PUSH32(esp, 0x47109814u); /* 0x47094DE5: push 0x47109814 */
   3657     PUSH32(esp, 4); /* 0x47094DEA: push 4 */
   3658     PUSH32(esp, ebx); /* 0x47094DEC: push ebx */
   3659     RECOMP_ICALL(0x47039830u); /* 0x47094DED: call 0x47039830 */ /* not lifted */
   3660     RECOMP_FLAGS_IN();
   3661     ebp = MEM32(ebp); /* 0x47094DF2: mov ebp, dword ptr [ebp] */
   3662     eax = MEM32(ebp); /* 0x47094DF5: mov eax, dword ptr [ebp] */
   3663     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3664     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3665     esp = esp + 0x10u; /* 0x47094DF8: add esp, 0x10 */
   3666     _flag_k = FK_ADD;
   3667     ecx = ebp; /* 0x47094DFB: mov ecx, ebp */
   3668     RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x47094DFD: call dword ptr [eax + 0x3c] */
   3669     RECOMP_FLAGS_IN();
   3670     RECOMP_ICALL(esi); /* 0x47094E00: call esi */
   3671     RECOMP_FLAGS_IN();
   3672     ebp = eax; /* 0x47094E02: mov ebp, eax */
   3673     RECOMP_ICALL(edi); /* 0x47094E04: call edi */
   3674     RECOMP_FLAGS_IN();
   3675     eax = MEM32(eax); /* 0x47094E06: mov eax, dword ptr [eax] */
   3676     /* test eax, eax */ /* 0x47094E08: test eax, eax */
   3677     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3678     _cf = 0;
   3679     _flag_k = FK_TEST;
   3680     if (TEST_Z(_flag_a, _flag_b)) goto L_47094E0E; /* 0x47094E0A: je 0x47094e0e */
   3681 L_47094E0C:
   3682     ebp = eax; /* 0x47094E0C: mov ebp, eax */
   3683 L_47094E0E:
   3684     RECOMP_ICALL(0x47039020u); /* 0x47094E0E: call 0x47039020 */ /* not lifted */
   3685     RECOMP_FLAGS_IN();
   3686     ebx = eax; /* 0x47094E13: mov ebx, eax */
   3687     ecx = ebx; /* 0x47094E15: mov ecx, ebx */
   3688     RECOMP_ICALL(0x4703B210u); /* 0x47094E17: call 0x4703b210 */ /* not lifted */
   3689     RECOMP_FLAGS_IN();
   3690     PUSH32(esp, eax); /* 0x47094E1C: push eax */
   3691     ecx = ebx; /* 0x47094E1D: mov ecx, ebx */
   3692     RECOMP_ICALL(0x4703B240u); /* 0x47094E1F: call 0x4703b240 */ /* not lifted */
   3693     RECOMP_FLAGS_IN();
   3694     PUSH32(esp, eax); /* 0x47094E24: push eax */
   3695     ecx = ebx; /* 0x47094E25: mov ecx, ebx */
   3696     RECOMP_ICALL(0x4703B080u); /* 0x47094E27: call 0x4703b080 */ /* not lifted */
   3697     RECOMP_FLAGS_IN();
   3698     PUSH32(esp, eax); /* 0x47094E2C: push eax */
   3699     PUSH32(esp, ebp); /* 0x47094E2D: push ebp */
   3700     PUSH32(esp, 0); /* 0x47094E2E: push 0 */
   3701     PUSH32(esp, 0x240u); /* 0x47094E30: push 0x240 */
   3702     PUSH32(esp, 0x4710CEB4u); /* 0x47094E35: push 0x4710ceb4 */
   3703     ecx = ebx; /* 0x47094E3A: mov ecx, ebx */
   3704     RECOMP_ICALL(0x4703A340u); /* 0x47094E3C: call 0x4703a340 */ /* not lifted */
   3705     RECOMP_FLAGS_IN();
   3706     PUSH32(esp, 0x4710529Cu); /* 0x47094E41: push 0x4710529c */
   3707     PUSH32(esp, 4); /* 0x47094E46: push 4 */
   3708     PUSH32(esp, ebx); /* 0x47094E48: push ebx */
   3709     RECOMP_ICALL(0x47039830u); /* 0x47094E49: call 0x47039830 */ /* not lifted */
   3710     RECOMP_FLAGS_IN();
   3711     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3712     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3713     esp = esp + 0xCu; /* 0x47094E4E: add esp, 0xc */
   3714     _flag_k = FK_ADD;
   3715     RECOMP_ICALL(esi); /* 0x47094E51: call esi */
   3716     RECOMP_FLAGS_IN();
   3717     esi = eax; /* 0x47094E53: mov esi, eax */
   3718     RECOMP_ICALL(edi); /* 0x47094E55: call edi */
   3719     RECOMP_FLAGS_IN();
   3720     eax = MEM32(eax); /* 0x47094E57: mov eax, dword ptr [eax] */
   3721     /* test eax, eax */ /* 0x47094E59: test eax, eax */
   3722     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3723     _cf = 0;
   3724     _flag_k = FK_TEST;
   3725     edi = esi; /* 0x47094E5B: mov edi, esi */
   3726     if (TEST_Z(_flag_a, _flag_b)) goto L_47094E61; /* 0x47094E5D: je 0x47094e61 */
   3727 L_47094E5F:
   3728     edi = eax; /* 0x47094E5F: mov edi, eax */
   3729 L_47094E61:
   3730     RECOMP_ICALL(0x47039020u); /* 0x47094E61: call 0x47039020 */ /* not lifted */
   3731     RECOMP_FLAGS_IN();
   3732     esi = eax; /* 0x47094E66: mov esi, eax */
   3733     ecx = esi; /* 0x47094E68: mov ecx, esi */
   3734     RECOMP_ICALL(0x4703B210u); /* 0x47094E6A: call 0x4703b210 */ /* not lifted */
   3735     RECOMP_FLAGS_IN();
   3736     PUSH32(esp, eax); /* 0x47094E6F: push eax */
   3737     ecx = esi; /* 0x47094E70: mov ecx, esi */
   3738     RECOMP_ICALL(0x4703B240u); /* 0x47094E72: call 0x4703b240 */ /* not lifted */
   3739     RECOMP_FLAGS_IN();
   3740     PUSH32(esp, eax); /* 0x47094E77: push eax */
   3741     ecx = esi; /* 0x47094E78: mov ecx, esi */
   3742     RECOMP_ICALL(0x4703B080u); /* 0x47094E7A: call 0x4703b080 */ /* not lifted */
   3743     RECOMP_FLAGS_IN();
   3744     PUSH32(esp, eax); /* 0x47094E7F: push eax */
   3745     PUSH32(esp, edi); /* 0x47094E80: push edi */
   3746     PUSH32(esp, 0); /* 0x47094E81: push 0 */
   3747     PUSH32(esp, 0x107u); /* 0x47094E83: push 0x107 */
   3748     PUSH32(esp, 0x4710D05Cu); /* 0x47094E88: push 0x4710d05c */
   3749     ecx = esi; /* 0x47094E8D: mov ecx, esi */
   3750     RECOMP_ICALL(0x4703A340u); /* 0x47094E8F: call 0x4703a340 */ /* not lifted */
   3751     RECOMP_FLAGS_IN();
   3752     PUSH32(esp, 0x4710529Cu); /* 0x47094E94: push 0x4710529c */
   3753     PUSH32(esp, 4); /* 0x47094E99: push 4 */
   3754     PUSH32(esp, esi); /* 0x47094E9B: push esi */
   3755     RECOMP_ICALL(0x47039830u); /* 0x47094E9C: call 0x47039830 */ /* not lifted */
   3756     RECOMP_FLAGS_IN();
   3757     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3759     esp = esp + 0xCu; /* 0x47094EA1: add esp, 0xc */
   3760     _flag_k = FK_ADD;
   3761     edi = POP32_VAL(esp); /* 0x47094EA4: pop edi */
   3762     esi = POP32_VAL(esp); /* 0x47094EA5: pop esi */
   3763     ebp = POP32_VAL(esp); /* 0x47094EA6: pop ebp */
   3764     ebx = POP32_VAL(esp); /* 0x47094EA7: pop ebx */
   3765     ecx = POP32_VAL(esp); /* 0x47094EA8: pop ecx */
   3766     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47094EA9: ret  */
   3767     RECOMP_REGS_OUT();
   3768 }
   3769 
   3770 void sub_47094EB0(void) {
   3771     int _fpu_cmp = 0;
   3772     uint32_t _cf = 0;
   3773     int _df = 1;
   3774     uint32_t _flag_k = FK_NONE;
   3775     uint32_t _flag_a = 0, _flag_b = 0;
   3776     uint32_t _itail_tgt = 0;
   3777     RECOMP_REGS_LOCALS
   3778     RECOMP_ENTER(0x47094EB0u);
   3779 
   3780 L_47094EB0:
   3781     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094EB0: push -1 */
   3782     PUSH32(esp, 0x470AB139u); /* 0x47094EB2: push 0x470ab139 */
   3783     eax = MEM32(FS_BASE + (0)); /* 0x47094EB7: mov eax, dword ptr fs:[0] */
   3784     PUSH32(esp, eax); /* 0x47094EBD: push eax */
   3785     MEM32(FS_BASE + (0)) = esp; /* 0x47094EBE: mov dword ptr fs:[0], esp */
   3786     PUSH32(esp, ecx); /* 0x47094EC5: push ecx */
   3787     PUSH32(esp, ebx); /* 0x47094EC6: push ebx */
   3788     PUSH32(esp, esi); /* 0x47094EC7: push esi */
   3789     PUSH32(esp, edi); /* 0x47094EC8: push edi */
   3790     esi = ecx; /* 0x47094EC9: mov esi, ecx */
   3791     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3792     edi = 0; /* 0x47094ECB: xor edi, edi */
   3793     _cf = 0;
   3794     _flag_k = FK_TEST;
   3795     MEM32(esp + 0xC) = esi; /* 0x47094ECD: mov dword ptr [esp + 0xc], esi */
   3796     MEM32(esi) = edi; /* 0x47094ED1: mov dword ptr [esi], edi */
   3797     ecx = esi + 0x14; /* 0x47094ED3: lea ecx, [esi + 0x14] */
   3798     PUSH32(esp, edi); /* 0x47094ED6: push edi */
   3799     MEM32(esp + 0x1C) = edi; /* 0x47094ED7: mov dword ptr [esp + 0x1c], edi */
   3800     MEM32(esi + 0x8) = edi; /* 0x47094EDB: mov dword ptr [esi + 8], edi */
   3801     MEM32(esi + 0xC) = edi; /* 0x47094EDE: mov dword ptr [esi + 0xc], edi */
   3802     MEM32(esi + 0x10) = edi; /* 0x47094EE1: mov dword ptr [esi + 0x10], edi */
   3803     RECOMP_ICALL(0x47038900u); /* 0x47094EE4: call 0x47038900 */ /* not lifted */
   3804     RECOMP_FLAGS_IN();
   3805     ecx = esi + 0x4C; /* 0x47094EE9: lea ecx, [esi + 0x4c] */
   3806     PUSH32(esp, edi); /* 0x47094EEC: push edi */
   3807     MEM8(esp + 0x1C) = (uint8_t)(1); /* 0x47094EED: mov byte ptr [esp + 0x1c], 1 */
   3808     RECOMP_ICALL(0x47038900u); /* 0x47094EF2: call 0x47038900 */ /* not lifted */
   3809     RECOMP_FLAGS_IN();
   3810     ebx = MEM32(esp + 0x20); /* 0x47094EF7: mov ebx, dword ptr [esp + 0x20] */
   3811     ecx = esi; /* 0x47094EFB: mov ecx, esi */
   3812     MEM8(esp + 0x18) = (uint8_t)(3); /* 0x47094EFD: mov byte ptr [esp + 0x18], 3 */
   3813     RECOMP_ICALL(0x47093E20u); /* 0x47094F02: call 0x47093e20 */ /* not lifted */
   3814     RECOMP_FLAGS_IN();
   3815     /* cmp ebx, edi */ /* 0x47094F07: cmp ebx, edi */
   3816     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   3817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3818     _flag_k = FK_CMP;
   3819     MEM32(esi + 0xC) = edi; /* 0x47094F09: mov dword ptr [esi + 0xc], edi */
   3820     MEM32(esi + 0x10) = edi; /* 0x47094F0C: mov dword ptr [esi + 0x10], edi */
   3821     MEM32(esi + 0x44) = 0xFFFFFFFFu; /* 0x47094F0F: mov dword ptr [esi + 0x44], 0xffffffff */
   3822     eax = 0xFFFFFFFEu; /* 0x47094F16: mov eax, 0xfffffffe */
   3823     MEM32(esi + 0x48) = 0xFFFFFFFFu; /* 0x47094F1B: mov dword ptr [esi + 0x48], 0xffffffff */
   3824     MEM32(esi + 0x7C) = eax; /* 0x47094F22: mov dword ptr [esi + 0x7c], eax */
   3825     MEM32(esi + 0x80) = eax; /* 0x47094F25: mov dword ptr [esi + 0x80], eax */
   3826     if (CMP_NE(_flag_a, _flag_b)) goto L_47094F34; /* 0x47094F2B: jne 0x47094f34 */
   3827 L_47094F2D:
   3828     RECOMP_ICALL(0x4703DAC0u); /* 0x47094F2D: call 0x4703dac0 */ /* not lifted */
   3829     RECOMP_FLAGS_IN();
   3830     ebx = eax; /* 0x47094F32: mov ebx, eax */
   3831 L_47094F34:
   3832     PUSH32(esp, 0x400u); /* 0x47094F34: push 0x400 */
   3833     ecx = esi; /* 0x47094F39: mov ecx, esi */
   3834     MEM32(esi) = ebx; /* 0x47094F3B: mov dword ptr [esi], ebx */
   3835     RECOMP_ICALL(0x47095470u); /* 0x47094F3D: call 0x47095470 */ /* not lifted */
   3836     RECOMP_FLAGS_IN();
   3837     /* cmp eax, 0xFFFFFFFFu */ /* 0x47094F42: cmp eax, -1 */
   3838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3840     _flag_k = FK_CMP;
   3841     MEM8(esp + 0x18) = (uint8_t)(2); /* 0x47094F45: mov byte ptr [esp + 0x18], 2 */
   3842     if (CMP_NE(_flag_a, _flag_b)) goto L_47094FA5; /* 0x47094F4A: jne 0x47094fa5 */
   3843 L_47094F4C:
   3844     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47094F4C: call dword ptr [0x470ac150] */
   3845     RECOMP_FLAGS_IN();
   3846     ebx = eax; /* 0x47094F52: mov ebx, eax */
   3847     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47094F54: call dword ptr [0x470ac3c8] */
   3848     RECOMP_FLAGS_IN();
   3849     eax = MEM32(eax); /* 0x47094F5A: mov eax, dword ptr [eax] */
   3850     /* cmp eax, edi */ /* 0x47094F5C: cmp eax, edi */
   3851     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3853     _flag_k = FK_CMP;
   3854     if (CMP_EQ(_flag_a, _flag_b)) goto L_47094F62; /* 0x47094F5E: je 0x47094f62 */
   3855 L_47094F60:
   3856     ebx = eax; /* 0x47094F60: mov ebx, eax */
   3857 L_47094F62:
   3858     RECOMP_ICALL(0x47039020u); /* 0x47094F62: call 0x47039020 */ /* not lifted */
   3859     RECOMP_FLAGS_IN();
   3860     edi = eax; /* 0x47094F67: mov edi, eax */
   3861     ecx = edi; /* 0x47094F69: mov ecx, edi */
   3862     RECOMP_ICALL(0x4703B210u); /* 0x47094F6B: call 0x4703b210 */ /* not lifted */
   3863     RECOMP_FLAGS_IN();
   3864     PUSH32(esp, eax); /* 0x47094F70: push eax */
   3865     ecx = edi; /* 0x47094F71: mov ecx, edi */
   3866     RECOMP_ICALL(0x4703B240u); /* 0x47094F73: call 0x4703b240 */ /* not lifted */
   3867     RECOMP_FLAGS_IN();
   3868     PUSH32(esp, eax); /* 0x47094F78: push eax */
   3869     ecx = edi; /* 0x47094F79: mov ecx, edi */
   3870     RECOMP_ICALL(0x4703B080u); /* 0x47094F7B: call 0x4703b080 */ /* not lifted */
   3871     RECOMP_FLAGS_IN();
   3872     PUSH32(esp, eax); /* 0x47094F80: push eax */
   3873     PUSH32(esp, ebx); /* 0x47094F81: push ebx */
   3874     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094F82: push -1 */
   3875     PUSH32(esp, 0x38u); /* 0x47094F84: push 0x38 */
   3876     PUSH32(esp, 0x4710595Cu); /* 0x47094F86: push 0x4710595c */
   3877     ecx = edi; /* 0x47094F8B: mov ecx, edi */
   3878     RECOMP_ICALL(0x4703A340u); /* 0x47094F8D: call 0x4703a340 */ /* not lifted */
   3879     RECOMP_FLAGS_IN();
   3880     PUSH32(esp, 0x47105948u); /* 0x47094F92: push 0x47105948 */
   3881     PUSH32(esp, 0x80u); /* 0x47094F97: push 0x80 */
   3882     PUSH32(esp, edi); /* 0x47094F9C: push edi */
   3883     RECOMP_ICALL(0x47039830u); /* 0x47094F9D: call 0x47039830 */ /* not lifted */
   3884     RECOMP_FLAGS_IN();
   3885     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3886     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3887     esp = esp + 0xCu; /* 0x47094FA2: add esp, 0xc */
   3888     _flag_k = FK_ADD;
   3889 L_47094FA5:
   3890     ecx = MEM32(esp + 0x10); /* 0x47094FA5: mov ecx, dword ptr [esp + 0x10] */
   3891     edi = POP32_VAL(esp); /* 0x47094FA9: pop edi */
   3892     eax = esi; /* 0x47094FAA: mov eax, esi */
   3893     esi = POP32_VAL(esp); /* 0x47094FAC: pop esi */
   3894     ebx = POP32_VAL(esp); /* 0x47094FAD: pop ebx */
   3895     MEM32(FS_BASE + (0)) = ecx; /* 0x47094FAE: mov dword ptr fs:[0], ecx */
   3896     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3897     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3898     esp = esp + 0x10u; /* 0x47094FB5: add esp, 0x10 */
   3899     _flag_k = FK_ADD;
   3900     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47094FB8: ret 4 */
   3901     RECOMP_REGS_OUT();
   3902 }
   3903 
   3904 void sub_47094FC0(void) {
   3905     int _fpu_cmp = 0;
   3906     uint32_t _cf = 0;
   3907     int _df = 1;
   3908     uint32_t _flag_k = FK_NONE;
   3909     uint32_t _flag_a = 0, _flag_b = 0;
   3910     uint32_t _itail_tgt = 0;
   3911     RECOMP_REGS_LOCALS
   3912     RECOMP_ENTER(0x47094FC0u);
   3913 
   3914 L_47094FC0:
   3915     PUSH32(esp, 0xFFFFFFFFu); /* 0x47094FC0: push -1 */
   3916     PUSH32(esp, 0x470AB179u); /* 0x47094FC2: push 0x470ab179 */
   3917     eax = MEM32(FS_BASE + (0)); /* 0x47094FC7: mov eax, dword ptr fs:[0] */
   3918     PUSH32(esp, eax); /* 0x47094FCD: push eax */
   3919     MEM32(FS_BASE + (0)) = esp; /* 0x47094FCE: mov dword ptr fs:[0], esp */
   3920     PUSH32(esp, ecx); /* 0x47094FD5: push ecx */
   3921     PUSH32(esp, esi); /* 0x47094FD6: push esi */
   3922     esi = ecx; /* 0x47094FD7: mov esi, ecx */
   3923     MEM32(esp + 0x4) = esi; /* 0x47094FD9: mov dword ptr [esp + 4], esi */
   3924     MEM32(esp + 0x10) = 3; /* 0x47094FDD: mov dword ptr [esp + 0x10], 3 */
   3925     RECOMP_ICALL(0x47093E20u); /* 0x47094FE5: call 0x47093e20 */ /* not lifted */
   3926     RECOMP_FLAGS_IN();
   3927     MEM32(esi + 0xC) = 0; /* 0x47094FEA: mov dword ptr [esi + 0xc], 0 */
   3928     MEM32(esi + 0x10) = 0; /* 0x47094FF1: mov dword ptr [esi + 0x10], 0 */
   3929     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3930     eax = eax | 0xFFFFFFFFu; /* 0x47094FF8: or eax, 0xffffffff */
   3931     _cf = 0;
   3932     _flag_k = FK_TEST;
   3933     MEM32(esi + 0x44) = eax; /* 0x47094FFB: mov dword ptr [esi + 0x44], eax */
   3934     MEM32(esi + 0x48) = eax; /* 0x47094FFE: mov dword ptr [esi + 0x48], eax */
   3935     eax = 0xFFFFFFFEu; /* 0x47095001: mov eax, 0xfffffffe */
   3936     MEM32(esi + 0x7C) = eax; /* 0x47095006: mov dword ptr [esi + 0x7c], eax */
   3937     ecx = esi + 0x4C; /* 0x47095009: lea ecx, [esi + 0x4c] */
   3938     MEM32(esi + 0x80) = eax; /* 0x4709500C: mov dword ptr [esi + 0x80], eax */
   3939     MEM8(esp + 0x10) = (uint8_t)(1); /* 0x47095012: mov byte ptr [esp + 0x10], 1 */
   3940     RECOMP_ICALL(0x47038A00u); /* 0x47095017: call 0x47038a00 */ /* not lifted */
   3941     RECOMP_FLAGS_IN();
   3942     ecx = esi + 0x14; /* 0x4709501C: lea ecx, [esi + 0x14] */
   3943     MEM8(esp + 0x10) = (uint8_t)(0); /* 0x4709501F: mov byte ptr [esp + 0x10], 0 */
   3944     RECOMP_ICALL(0x47038A00u); /* 0x47095024: call 0x47038a00 */ /* not lifted */
   3945     RECOMP_FLAGS_IN();
   3946     ecx = MEM32(esp + 0x8); /* 0x47095029: mov ecx, dword ptr [esp + 8] */
   3947     esi = POP32_VAL(esp); /* 0x4709502D: pop esi */
   3948     MEM32(FS_BASE + (0)) = ecx; /* 0x4709502E: mov dword ptr fs:[0], ecx */
   3949     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3950     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3951     esp = esp + 0x10u; /* 0x47095035: add esp, 0x10 */
   3952     _flag_k = FK_ADD;
   3953     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095038: ret  */
   3954     RECOMP_REGS_OUT();
   3955 }
   3956 
   3957 void sub_47095040(void) {
   3958     int _fpu_cmp = 0;
   3959     uint32_t _cf = 0;
   3960     int _df = 1;
   3961     uint32_t _flag_k = FK_NONE;
   3962     uint32_t _flag_a = 0, _flag_b = 0;
   3963     uint32_t _itail_tgt = 0;
   3964     RECOMP_REGS_LOCALS
   3965     RECOMP_ENTER(0x47095040u);
   3966 
   3967 L_47095040:
   3968     eax = MEM32(ecx + 0x4); /* 0x47095040: mov eax, dword ptr [ecx + 4] */
   3969     /* cmp eax, 0xFFFFFFFEu */ /* 0x47095043: cmp eax, -2 */
   3970     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   3971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3972     _flag_k = FK_CMP;
   3973     if (CMP_EQ(_flag_a, _flag_b)) goto L_47095067; /* 0x47095046: je 0x47095067 */
   3974 L_47095048:
   3975     edx = eax * 8; /* 0x47095048: lea edx, [eax*8] */
   3976     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3978     edx = edx - eax; /* 0x4709504F: sub edx, eax */
   3979     _flag_k = FK_CMP;
   3980     eax = MEM32(ecx); /* 0x47095051: mov eax, dword ptr [ecx] */
   3981     ecx = MEM32(eax + 0x8); /* 0x47095053: mov ecx, dword ptr [eax + 8] */
   3982     eax = MEM32(esp + 0x4); /* 0x47095056: mov eax, dword ptr [esp + 4] */
   3983     edx = ecx + edx * 8; /* 0x4709505A: lea edx, [ecx + edx*8] */
   3984     MEM32(eax) = edx; /* 0x4709505D: mov dword ptr [eax], edx */
   3985     eax = 1; /* 0x4709505F: mov eax, 1 */
   3986     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47095064: ret 4 */
   3987 L_47095067:
   3988     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3989     eax = 0; /* 0x47095067: xor eax, eax */
   3990     _cf = 0;
   3991     _flag_k = FK_TEST;
   3992     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47095069: ret 4 */
   3993     RECOMP_REGS_OUT();
   3994 }
   3995 
   3996 void sub_47095070(void) {
   3997     int _fpu_cmp = 0;
   3998     uint32_t _cf = 0;
   3999     int _df = 1;
   4000     uint32_t _flag_k = FK_NONE;
   4001     uint32_t _flag_a = 0, _flag_b = 0;
   4002     uint32_t _itail_tgt = 0;
   4003     RECOMP_REGS_LOCALS
   4004     RECOMP_ENTER(0x47095070u);
   4005 
   4006 L_47095070:
   4007     edx = MEM32(esp + 0x8); /* 0x47095070: mov edx, dword ptr [esp + 8] */
   4008     /* test edx, edx */ /* 0x47095074: test edx, edx */
   4009     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4010     _cf = 0;
   4011     _flag_k = FK_TEST;
   4012     eax = ecx; /* 0x47095076: mov eax, ecx */
   4013     ecx = MEM32(esp + 0x4); /* 0x47095078: mov ecx, dword ptr [esp + 4] */
   4014     MEM32(eax) = ecx; /* 0x4709507C: mov dword ptr [eax], ecx */
   4015     MEM32(eax + 0x4) = 0xFFFFFFFEu; /* 0x4709507E: mov dword ptr [eax + 4], 0xfffffffe */
   4016     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709508D; /* 0x47095085: jne 0x4709508d */
   4017 L_47095087:
   4018     ecx = MEM32(ecx + 0x7C); /* 0x47095087: mov ecx, dword ptr [ecx + 0x7c] */
   4019     MEM32(eax + 0x4) = ecx; /* 0x4709508A: mov dword ptr [eax + 4], ecx */
   4020 L_4709508D:
   4021     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4709508D: ret 8 */
   4022     RECOMP_REGS_OUT();
   4023 }
   4024 
   4025 void sub_47095090(void) {
   4026     int _fpu_cmp = 0;
   4027     uint32_t _cf = 0;
   4028     int _df = 1;
   4029     uint32_t _flag_k = FK_NONE;
   4030     uint32_t _flag_a = 0, _flag_b = 0;
   4031     uint32_t _itail_tgt = 0;
   4032     RECOMP_REGS_LOCALS
   4033     RECOMP_ENTER(0x47095090u);
   4034 
   4035 L_47095090:
   4036     PUSH32(esp, esi); /* 0x47095090: push esi */
   4037     esi = ecx; /* 0x47095091: mov esi, ecx */
   4038     ecx = MEM32(esi); /* 0x47095093: mov ecx, dword ptr [esi] */
   4039     eax = MEM32(ecx); /* 0x47095095: mov eax, dword ptr [ecx] */
   4040     /* cmp ecx, eax */ /* 0x47095097: cmp ecx, eax */
   4041     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4043     _flag_k = FK_CMP;
   4044     if (CMP_EQ(_flag_a, _flag_b)) goto L_470950B4; /* 0x47095099: je 0x470950b4 */
   4045 L_4709509B:
   4046     /* test eax, eax */ /* 0x4709509B: test eax, eax */
   4047     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4048     _cf = 0;
   4049     _flag_k = FK_TEST;
   4050     edx = MEM32(eax); /* 0x4709509D: mov edx, dword ptr [eax] */
   4051     MEM32(ecx) = edx; /* 0x4709509F: mov dword ptr [ecx], edx */
   4052     if (TEST_Z(_flag_a, _flag_b)) goto L_470950AC; /* 0x470950A1: je 0x470950ac */
   4053 L_470950A3:
   4054     ecx = MEM32(esi + 0x8); /* 0x470950A3: mov ecx, dword ptr [esi + 8] */
   4055     edx = MEM32(ecx); /* 0x470950A6: mov edx, dword ptr [ecx] */
   4056     PUSH32(esp, eax); /* 0x470950A8: push eax */
   4057     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470950A9: call dword ptr [edx + 0xc] */
   4058     RECOMP_FLAGS_IN();
   4059 L_470950AC:
   4060     ecx = MEM32(esi); /* 0x470950AC: mov ecx, dword ptr [esi] */
   4061     eax = MEM32(ecx); /* 0x470950AE: mov eax, dword ptr [ecx] */
   4062     /* cmp ecx, eax */ /* 0x470950B0: cmp ecx, eax */
   4063     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4065     _flag_k = FK_CMP;
   4066     RECOMP_BACKEDGE();
   4067     if (CMP_NE(_flag_a, _flag_b)) goto L_4709509B; /* 0x470950B2: jne 0x4709509b */
   4068 L_470950B4:
   4069     eax = MEM32(esi); /* 0x470950B4: mov eax, dword ptr [esi] */
   4070     MEM32(esi + 0x4) = 0; /* 0x470950B6: mov dword ptr [esi + 4], 0 */
   4071     /* cmp eax, MEM32(eax) */ /* 0x470950BD: cmp eax, dword ptr [eax] */
   4072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(eax));
   4073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4074     _flag_k = FK_CMP;
   4075     if (CMP_EQ(_flag_a, _flag_b)) goto L_47095128; /* 0x470950BF: je 0x47095128 */
   4076 L_470950C1:
   4077     PUSH32(esp, ebx); /* 0x470950C1: push ebx */
   4078     PUSH32(esp, edi); /* 0x470950C2: push edi */
   4079     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470950C3: call dword ptr [0x470ac150] */
   4080     RECOMP_FLAGS_IN();
   4081     ebx = eax; /* 0x470950C9: mov ebx, eax */
   4082     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470950CB: call dword ptr [0x470ac3c8] */
   4083     RECOMP_FLAGS_IN();
   4084     eax = MEM32(eax); /* 0x470950D1: mov eax, dword ptr [eax] */
   4085     /* test eax, eax */ /* 0x470950D3: test eax, eax */
   4086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4087     _cf = 0;
   4088     _flag_k = FK_TEST;
   4089     if (TEST_Z(_flag_a, _flag_b)) goto L_470950D9; /* 0x470950D5: je 0x470950d9 */
   4090 L_470950D7:
   4091     ebx = eax; /* 0x470950D7: mov ebx, eax */
   4092 L_470950D9:
   4093     RECOMP_ICALL(0x47039020u); /* 0x470950D9: call 0x47039020 */ /* not lifted */
   4094     RECOMP_FLAGS_IN();
   4095     edi = eax; /* 0x470950DE: mov edi, eax */
   4096     ecx = edi; /* 0x470950E0: mov ecx, edi */
   4097     RECOMP_ICALL(0x4703B210u); /* 0x470950E2: call 0x4703b210 */ /* not lifted */
   4098     RECOMP_FLAGS_IN();
   4099     PUSH32(esp, eax); /* 0x470950E7: push eax */
   4100     ecx = edi; /* 0x470950E8: mov ecx, edi */
   4101     RECOMP_ICALL(0x4703B240u); /* 0x470950EA: call 0x4703b240 */ /* not lifted */
   4102     RECOMP_FLAGS_IN();
   4103     PUSH32(esp, eax); /* 0x470950EF: push eax */
   4104     ecx = edi; /* 0x470950F0: mov ecx, edi */
   4105     RECOMP_ICALL(0x4703B080u); /* 0x470950F2: call 0x4703b080 */ /* not lifted */
   4106     RECOMP_FLAGS_IN();
   4107     PUSH32(esp, eax); /* 0x470950F7: push eax */
   4108     PUSH32(esp, ebx); /* 0x470950F8: push ebx */
   4109     PUSH32(esp, 0xFFFFFFFFu); /* 0x470950F9: push -1 */
   4110     PUSH32(esp, 0xABu); /* 0x470950FB: push 0xab */
   4111     PUSH32(esp, 0x471081A4u); /* 0x47095100: push 0x471081a4 */
   4112     ecx = edi; /* 0x47095105: mov ecx, edi */
   4113     RECOMP_ICALL(0x4703A340u); /* 0x47095107: call 0x4703a340 */ /* not lifted */
   4114     RECOMP_FLAGS_IN();
   4115     PUSH32(esp, 0xFFFFFFFFu); /* 0x4709510C: push -1 */
   4116     PUSH32(esp, 0x4710D0ECu); /* 0x4709510E: push 0x4710d0ec */
   4117     PUSH32(esp, 0x47104AA4u); /* 0x47095113: push 0x47104aa4 */
   4118     PUSH32(esp, 0x80u); /* 0x47095118: push 0x80 */
   4119     PUSH32(esp, edi); /* 0x4709511D: push edi */
   4120     RECOMP_ICALL(0x47039830u); /* 0x4709511E: call 0x47039830 */ /* not lifted */
   4121     RECOMP_FLAGS_IN();
   4122     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4123     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4124     esp = esp + 0x14u; /* 0x47095123: add esp, 0x14 */
   4125     _flag_k = FK_ADD;
   4126     edi = POP32_VAL(esp); /* 0x47095126: pop edi */
   4127     ebx = POP32_VAL(esp); /* 0x47095127: pop ebx */
   4128 L_47095128:
   4129     eax = MEM32(esi); /* 0x47095128: mov eax, dword ptr [esi] */
   4130     /* test eax, eax */ /* 0x4709512A: test eax, eax */
   4131     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4132     _cf = 0;
   4133     _flag_k = FK_TEST;
   4134     if (TEST_Z(_flag_a, _flag_b)) goto L_47095137; /* 0x4709512C: je 0x47095137 */
   4135 L_4709512E:
   4136     ecx = MEM32(esi + 0x8); /* 0x4709512E: mov ecx, dword ptr [esi + 8] */
   4137     edx = MEM32(ecx); /* 0x47095131: mov edx, dword ptr [ecx] */
   4138     PUSH32(esp, eax); /* 0x47095133: push eax */
   4139     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47095134: call dword ptr [edx + 0xc] */
   4140     RECOMP_FLAGS_IN();
   4141 L_47095137:
   4142     esi = POP32_VAL(esp); /* 0x47095137: pop esi */
   4143     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095138: ret  */
   4144     RECOMP_REGS_OUT();
   4145 }
   4146 
   4147 void sub_47095140(void) {
   4148     int _fpu_cmp = 0;
   4149     uint32_t _cf = 0;
   4150     int _df = 1;
   4151     uint32_t _flag_k = FK_NONE;
   4152     uint32_t _flag_a = 0, _flag_b = 0;
   4153     uint32_t _itail_tgt = 0;
   4154     RECOMP_REGS_LOCALS
   4155     RECOMP_ENTER(0x47095140u);
   4156 
   4157 L_47095140:
   4158     eax = MEM32(ecx + 0x4); /* 0x47095140: mov eax, dword ptr [ecx + 4] */
   4159     edx = eax * 8; /* 0x47095143: lea edx, [eax*8] */
   4160     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4162     edx = edx - eax; /* 0x4709514A: sub edx, eax */
   4163     _flag_k = FK_CMP;
   4164     eax = MEM32(ecx); /* 0x4709514C: mov eax, dword ptr [ecx] */
   4165     eax = MEM32(eax + 0x8); /* 0x4709514E: mov eax, dword ptr [eax + 8] */
   4166     eax = MEM32(eax + edx * 8 + 0x30); /* 0x47095151: mov eax, dword ptr [eax + edx*8 + 0x30] */
   4167     MEM32(ecx + 0x4) = eax; /* 0x47095155: mov dword ptr [ecx + 4], eax */
   4168     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4169     ecx = 0; /* 0x47095158: xor ecx, ecx */
   4170     _cf = 0;
   4171     _flag_k = FK_TEST;
   4172     /* cmp eax, 0xFFFFFFFEu */ /* 0x4709515A: cmp eax, -2 */
   4173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4175     _flag_k = FK_CMP;
   4176     SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4709515D: setne cl */
   4177     eax = ecx; /* 0x47095160: mov eax, ecx */
   4178     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095162: ret  */
   4179     RECOMP_REGS_OUT();
   4180 }
   4181 
   4182 void sub_47095170(void) {
   4183     int _fpu_cmp = 0;
   4184     uint32_t _cf = 0;
   4185     int _df = 1;
   4186     uint32_t _flag_k = FK_NONE;
   4187     uint32_t _flag_a = 0, _flag_b = 0;
   4188     uint32_t _itail_tgt = 0;
   4189     RECOMP_REGS_LOCALS
   4190     RECOMP_ENTER(0x47095170u);
   4191 
   4192 L_47095170:
   4193     PUSH32(esp, esi); /* 0x47095170: push esi */
   4194     esi = ecx; /* 0x47095171: mov esi, ecx */
   4195     ecx = MEM32(esi); /* 0x47095173: mov ecx, dword ptr [esi] */
   4196     eax = MEM32(ecx); /* 0x47095175: mov eax, dword ptr [ecx] */
   4197     /* cmp ecx, eax */ /* 0x47095177: cmp ecx, eax */
   4198     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4200     _flag_k = FK_CMP;
   4201     if (CMP_EQ(_flag_a, _flag_b)) goto L_47095194; /* 0x47095179: je 0x47095194 */
   4202 L_4709517B:
   4203     /* test eax, eax */ /* 0x4709517B: test eax, eax */
   4204     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4205     _cf = 0;
   4206     _flag_k = FK_TEST;
   4207     edx = MEM32(eax); /* 0x4709517D: mov edx, dword ptr [eax] */
   4208     MEM32(ecx) = edx; /* 0x4709517F: mov dword ptr [ecx], edx */
   4209     if (TEST_Z(_flag_a, _flag_b)) goto L_4709518C; /* 0x47095181: je 0x4709518c */
   4210 L_47095183:
   4211     ecx = MEM32(esi + 0x8); /* 0x47095183: mov ecx, dword ptr [esi + 8] */
   4212     edx = MEM32(ecx); /* 0x47095186: mov edx, dword ptr [ecx] */
   4213     PUSH32(esp, eax); /* 0x47095188: push eax */
   4214     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47095189: call dword ptr [edx + 0xc] */
   4215     RECOMP_FLAGS_IN();
   4216 L_4709518C:
   4217     ecx = MEM32(esi); /* 0x4709518C: mov ecx, dword ptr [esi] */
   4218     eax = MEM32(ecx); /* 0x4709518E: mov eax, dword ptr [ecx] */
   4219     /* cmp ecx, eax */ /* 0x47095190: cmp ecx, eax */
   4220     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4222     _flag_k = FK_CMP;
   4223     RECOMP_BACKEDGE();
   4224     if (CMP_NE(_flag_a, _flag_b)) goto L_4709517B; /* 0x47095192: jne 0x4709517b */
   4225 L_47095194:
   4226     MEM32(esi + 0x4) = 0; /* 0x47095194: mov dword ptr [esi + 4], 0 */
   4227     esi = MEM32(esi); /* 0x4709519B: mov esi, dword ptr [esi] */
   4228     /* cmp esi, MEM32(esi) */ /* 0x4709519D: cmp esi, dword ptr [esi] */
   4229     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(esi));
   4230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4231     _flag_k = FK_CMP;
   4232     if (CMP_EQ(_flag_a, _flag_b)) goto L_47095206; /* 0x4709519F: je 0x47095206 */
   4233 L_470951A1:
   4234     PUSH32(esp, edi); /* 0x470951A1: push edi */
   4235     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470951A2: call dword ptr [0x470ac150] */
   4236     RECOMP_FLAGS_IN();
   4237     edi = eax; /* 0x470951A8: mov edi, eax */
   4238     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470951AA: call dword ptr [0x470ac3c8] */
   4239     RECOMP_FLAGS_IN();
   4240     eax = MEM32(eax); /* 0x470951B0: mov eax, dword ptr [eax] */
   4241     /* test eax, eax */ /* 0x470951B2: test eax, eax */
   4242     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4243     _cf = 0;
   4244     _flag_k = FK_TEST;
   4245     if (TEST_Z(_flag_a, _flag_b)) goto L_470951B8; /* 0x470951B4: je 0x470951b8 */
   4246 L_470951B6:
   4247     edi = eax; /* 0x470951B6: mov edi, eax */
   4248 L_470951B8:
   4249     RECOMP_ICALL(0x47039020u); /* 0x470951B8: call 0x47039020 */ /* not lifted */
   4250     RECOMP_FLAGS_IN();
   4251     esi = eax; /* 0x470951BD: mov esi, eax */
   4252     ecx = esi; /* 0x470951BF: mov ecx, esi */
   4253     RECOMP_ICALL(0x4703B210u); /* 0x470951C1: call 0x4703b210 */ /* not lifted */
   4254     RECOMP_FLAGS_IN();
   4255     PUSH32(esp, eax); /* 0x470951C6: push eax */
   4256     ecx = esi; /* 0x470951C7: mov ecx, esi */
   4257     RECOMP_ICALL(0x4703B240u); /* 0x470951C9: call 0x4703b240 */ /* not lifted */
   4258     RECOMP_FLAGS_IN();
   4259     PUSH32(esp, eax); /* 0x470951CE: push eax */
   4260     ecx = esi; /* 0x470951CF: mov ecx, esi */
   4261     RECOMP_ICALL(0x4703B080u); /* 0x470951D1: call 0x4703b080 */ /* not lifted */
   4262     RECOMP_FLAGS_IN();
   4263     PUSH32(esp, eax); /* 0x470951D6: push eax */
   4264     PUSH32(esp, edi); /* 0x470951D7: push edi */
   4265     PUSH32(esp, 0xFFFFFFFFu); /* 0x470951D8: push -1 */
   4266     PUSH32(esp, 0xABu); /* 0x470951DA: push 0xab */
   4267     PUSH32(esp, 0x471081A4u); /* 0x470951DF: push 0x471081a4 */
   4268     ecx = esi; /* 0x470951E4: mov ecx, esi */
   4269     RECOMP_ICALL(0x4703A340u); /* 0x470951E6: call 0x4703a340 */ /* not lifted */
   4270     RECOMP_FLAGS_IN();
   4271     PUSH32(esp, 0xFFFFFFFFu); /* 0x470951EB: push -1 */
   4272     PUSH32(esp, 0x4710D0ECu); /* 0x470951ED: push 0x4710d0ec */
   4273     PUSH32(esp, 0x47104AA4u); /* 0x470951F2: push 0x47104aa4 */
   4274     PUSH32(esp, 0x80u); /* 0x470951F7: push 0x80 */
   4275     PUSH32(esp, esi); /* 0x470951FC: push esi */
   4276     RECOMP_ICALL(0x47039830u); /* 0x470951FD: call 0x47039830 */ /* not lifted */
   4277     RECOMP_FLAGS_IN();
   4278     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4280     esp = esp + 0x14u; /* 0x47095202: add esp, 0x14 */
   4281     _flag_k = FK_ADD;
   4282     edi = POP32_VAL(esp); /* 0x47095205: pop edi */
   4283 L_47095206:
   4284     esi = POP32_VAL(esp); /* 0x47095206: pop esi */
   4285     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095207: ret  */
   4286     RECOMP_REGS_OUT();
   4287 }
   4288 
   4289 void sub_47095210(void) {
   4290     int _fpu_cmp = 0;
   4291     uint32_t _cf = 0;
   4292     int _df = 1;
   4293     uint32_t _flag_k = FK_NONE;
   4294     uint32_t _flag_a = 0, _flag_b = 0;
   4295     uint32_t _itail_tgt = 0;
   4296     RECOMP_REGS_LOCALS
   4297     RECOMP_ENTER(0x47095210u);
   4298 
   4299 L_47095210:
   4300     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4301     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4302     esp = esp - 8; /* 0x47095210: sub esp, 8 */
   4303     _flag_k = FK_CMP;
   4304     PUSH32(esp, esi); /* 0x47095213: push esi */
   4305     esi = ecx; /* 0x47095214: mov esi, ecx */
   4306     eax = MEM32(esi + 0x44); /* 0x47095216: mov eax, dword ptr [esi + 0x44] */
   4307     /* cmp eax, 0xFFFFFFFFu */ /* 0x47095219: cmp eax, -1 */
   4308     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4310     _flag_k = FK_CMP;
   4311     MEM32(esp + 0x4) = eax; /* 0x4709521C: mov dword ptr [esp + 4], eax */
   4312     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709522C; /* 0x47095220: je 0x4709522c */
   4313 L_47095222:
   4314     MEM32(esp + 0x8) = 0; /* 0x47095222: mov dword ptr [esp + 8], 0 */
   4315     goto L_47095262; /* 0x4709522A: jmp 0x47095262 */
   4316 L_4709522C:
   4317     eax = MEM32(esi + 0xC); /* 0x4709522C: mov eax, dword ptr [esi + 0xc] */
   4318     /* cmp eax, 0x00010000u */ /* 0x4709522F: cmp eax, 0x10000 */
   4319     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u);
   4320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4321     _flag_k = FK_CMP;
   4322     if (CMP_AE(_flag_a, _flag_b)) goto L_4709523A; /* 0x47095234: jae 0x4709523a */
   4323 L_47095236:
   4324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4326     eax = eax + eax; /* 0x47095236: add eax, eax */
   4327     _flag_k = FK_ADD;
   4328     goto L_4709523F; /* 0x47095238: jmp 0x4709523f */
   4329 L_4709523A:
   4330     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8000u);
   4331     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4332     eax = eax + 0x8000u; /* 0x4709523A: add eax, 0x8000 */
   4333     _flag_k = FK_ADD;
   4334 L_4709523F:
   4335     PUSH32(esp, eax); /* 0x4709523F: push eax */
   4336     ecx = esi; /* 0x47095240: mov ecx, esi */
   4337     RECOMP_ICALL(0x47095470u); /* 0x47095242: call 0x47095470 */ /* not lifted */
   4338     RECOMP_FLAGS_IN();
   4339     /* test eax, eax */ /* 0x47095247: test eax, eax */
   4340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4341     _cf = 0;
   4342     _flag_k = FK_TEST;
   4343     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095252; /* 0x47095249: jne 0x47095252 */
   4344 L_4709524B:
   4345     ecx = MEM32(esi + 0x44); /* 0x4709524B: mov ecx, dword ptr [esi + 0x44] */
   4346     MEM32(esp + 0x4) = ecx; /* 0x4709524E: mov dword ptr [esp + 4], ecx */
   4347 L_47095252:
   4348     /* test eax, eax */ /* 0x47095252: test eax, eax */
   4349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4350     _cf = 0;
   4351     _flag_k = FK_TEST;
   4352     MEM32(esp + 0x8) = eax; /* 0x47095254: mov dword ptr [esp + 8], eax */
   4353     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095348; /* 0x47095258: jne 0x47095348 */
   4354 L_4709525E:
   4355     eax = MEM32(esp + 0x4); /* 0x4709525E: mov eax, dword ptr [esp + 4] */
   4356 L_47095262:
   4357     edx = MEM32(esi + 0x8); /* 0x47095262: mov edx, dword ptr [esi + 8] */
   4358     PUSH32(esp, ebx); /* 0x47095265: push ebx */
   4359     ebx = eax * 8; /* 0x47095266: lea ebx, [eax*8] */
   4360     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   4361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4362     ebx = ebx - eax; /* 0x4709526D: sub ebx, eax */
   4363     _flag_k = FK_CMP;
   4364     eax = MEM32(esp + 0x18); /* 0x4709526F: mov eax, dword ptr [esp + 0x18] */
   4365     ecx = MEM32(eax); /* 0x47095273: mov ecx, dword ptr [eax] */
   4366     if (3u) _cf = (((ebx) >> 29) & 1u); /* 0x47095275: shl ebx, 3 */
   4367     if (3u) { _flag_a = recomp_flags_pack((ebx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4368     ebx = ebx << 3u; /* 0x47095275: shl ebx, 3 */
   4369     MEM32(ebx + edx + 0x2C) = ecx; /* 0x47095278: mov dword ptr [ebx + edx + 0x2c], ecx */
   4370     ecx = MEM32(esi + 0x8); /* 0x4709527C: mov ecx, dword ptr [esi + 8] */
   4371     PUSH32(esp, ebp); /* 0x4709527F: push ebp */
   4372     ebp = MEM32(esp + 0x18); /* 0x47095280: mov ebp, dword ptr [esp + 0x18] */
   4373     edx = ebx; /* 0x47095284: mov edx, ebx */
   4374     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4375     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4376     edx = edx + ecx; /* 0x47095286: add edx, ecx */
   4377     _flag_k = FK_ADD;
   4378     /* cmp ebp, edx */ /* 0x47095288: cmp ebp, edx */
   4379     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   4380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4381     _flag_k = FK_CMP;
   4382     PUSH32(esp, edi); /* 0x4709528A: push edi */
   4383     if (CMP_EQ(_flag_a, _flag_b)) goto L_470952BD; /* 0x4709528B: je 0x470952bd */
   4384 L_4709528D:
   4385     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(4);
   4386     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4387     ebp = ebp + 4; /* 0x4709528D: add ebp, 4 */
   4388     _flag_k = FK_ADD;
   4389     /* test ebp, ebp */ /* 0x47095290: test ebp, ebp */
   4390     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   4391     _cf = 0;
   4392     _flag_k = FK_TEST;
   4393     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095299; /* 0x47095292: jne 0x47095299 */
   4394 L_47095294:
   4395     ebp = 0x47106D1Cu; /* 0x47095294: mov ebp, 0x47106d1c */
   4396 L_47095299:
   4397     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4398     ecx = ecx | 0xFFFFFFFFu; /* 0x47095299: or ecx, 0xffffffff */
   4399     _cf = 0;
   4400     _flag_k = FK_TEST;
   4401     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4402     eax = 0; /* 0x4709529C: xor eax, eax */
   4403     _cf = 0;
   4404     _flag_k = FK_TEST;
   4405     edi = ebp; /* 0x4709529E: mov edi, ebp */
   4406     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470952A0: repne scasb al, byte ptr es:[edi] */
   4407     ecx = ~ecx; /* 0x470952A2: not ecx */
   4408     /* cmp ecx, 0x28u */ /* 0x470952A4: cmp ecx, 0x28 */
   4409     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u);
   4410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4411     _flag_k = FK_CMP;
   4412     if (CMP_L(_flag_a, _flag_b)) goto L_470952AE; /* 0x470952A7: jl 0x470952ae */
   4413 L_470952A9:
   4414     ecx = 0x27u; /* 0x470952A9: mov ecx, 0x27 */
   4415 L_470952AE:
   4416     PUSH32(esp, ecx); /* 0x470952AE: push ecx */
   4417     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   4418     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4419     edx = edx + 4; /* 0x470952AF: add edx, 4 */
   4420     _flag_k = FK_ADD;
   4421     PUSH32(esp, ebp); /* 0x470952B2: push ebp */
   4422     PUSH32(esp, edx); /* 0x470952B3: push edx */
   4423     RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470952B4: call dword ptr [0x470ac22c] */
   4424     RECOMP_FLAGS_IN();
   4425     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4426     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4427     esp = esp + 0xCu; /* 0x470952BA: add esp, 0xc */
   4428     _flag_k = FK_ADD;
   4429 L_470952BD:
   4430     eax = MEM32(esi + 0x8); /* 0x470952BD: mov eax, dword ptr [esi + 8] */
   4431     edx = MEM32(eax + ebx + 0x34); /* 0x470952C0: mov edx, dword ptr [eax + ebx + 0x34] */
   4432     /* cmp edx, 0xFFFFFFFFu */ /* 0x470952C4: cmp edx, -1 */
   4433     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4435     _flag_k = FK_CMP;
   4436     edi = eax + ebx + 0x34; /* 0x470952C7: lea edi, [eax + ebx + 0x34] */
   4437     ecx = eax + ebx + 0x30; /* 0x470952CB: lea ecx, [eax + ebx + 0x30] */
   4438     if (CMP_NE(_flag_a, _flag_b)) goto L_470952D8; /* 0x470952CF: jne 0x470952d8 */
   4439 L_470952D1:
   4440     edx = MEM32(ecx); /* 0x470952D1: mov edx, dword ptr [ecx] */
   4441     MEM32(esi + 0x44) = edx; /* 0x470952D3: mov dword ptr [esi + 0x44], edx */
   4442     goto L_470952E7; /* 0x470952D6: jmp 0x470952e7 */
   4443 L_470952D8:
   4444     ebx = edx * 8; /* 0x470952D8: lea ebx, [edx*8] */
   4445     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   4446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4447     ebx = ebx - edx; /* 0x470952DF: sub ebx, edx */
   4448     _flag_k = FK_CMP;
   4449     edx = MEM32(ecx); /* 0x470952E1: mov edx, dword ptr [ecx] */
   4450     MEM32(eax + ebx * 8 + 0x30) = edx; /* 0x470952E3: mov dword ptr [eax + ebx*8 + 0x30], edx */
   4451 L_470952E7:
   4452     eax = MEM32(ecx); /* 0x470952E7: mov eax, dword ptr [ecx] */
   4453     /* cmp eax, 0xFFFFFFFFu */ /* 0x470952E9: cmp eax, -1 */
   4454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4456     _flag_k = FK_CMP;
   4457     if (CMP_NE(_flag_a, _flag_b)) goto L_470952F5; /* 0x470952EC: jne 0x470952f5 */
   4458 L_470952EE:
   4459     eax = MEM32(edi); /* 0x470952EE: mov eax, dword ptr [edi] */
   4460     MEM32(esi + 0x48) = eax; /* 0x470952F0: mov dword ptr [esi + 0x48], eax */
   4461     goto L_47095307; /* 0x470952F3: jmp 0x47095307 */
   4462 L_470952F5:
   4463     ebx = MEM32(edi); /* 0x470952F5: mov ebx, dword ptr [edi] */
   4464     edx = eax * 8; /* 0x470952F7: lea edx, [eax*8] */
   4465     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4467     edx = edx - eax; /* 0x470952FE: sub edx, eax */
   4468     _flag_k = FK_CMP;
   4469     eax = MEM32(esi + 0x8); /* 0x47095300: mov eax, dword ptr [esi + 8] */
   4470     MEM32(eax + edx * 8 + 0x34) = ebx; /* 0x47095303: mov dword ptr [eax + edx*8 + 0x34], ebx */
   4471 L_47095307:
   4472     eax = MEM32(esi + 0x7C); /* 0x47095307: mov eax, dword ptr [esi + 0x7c] */
   4473     /* cmp eax, 0xFFFFFFFEu */ /* 0x4709530A: cmp eax, -2 */
   4474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4476     _flag_k = FK_CMP;
   4477     MEM32(edi) = 0xFFFFFFFEu; /* 0x4709530D: mov dword ptr [edi], 0xfffffffe */
   4478     edi = POP32_VAL(esp); /* 0x47095313: pop edi */
   4479     MEM32(ecx) = eax; /* 0x47095314: mov dword ptr [ecx], eax */
   4480     ecx = MEM32(esp + 0xC); /* 0x47095316: mov ecx, dword ptr [esp + 0xc] */
   4481     ebp = POP32_VAL(esp); /* 0x4709531A: pop ebp */
   4482     MEM32(esi + 0x7C) = ecx; /* 0x4709531B: mov dword ptr [esi + 0x7c], ecx */
   4483     ebx = POP32_VAL(esp); /* 0x4709531E: pop ebx */
   4484     if (CMP_NE(_flag_a, _flag_b)) goto L_47095335; /* 0x4709531F: jne 0x47095335 */
   4485 L_47095321:
   4486     MEM32(esi + 0x80) = ecx; /* 0x47095321: mov dword ptr [esi + 0x80], ecx */
   4487     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(1);
   4488     MEM32(esi + 0x10) = MEM32(esi + 0x10) + 1; /* 0x47095327: inc dword ptr [esi + 0x10] */
   4489     _flag_k = FK_INC;
   4490     eax = MEM32(esp + 0x8); /* 0x4709532A: mov eax, dword ptr [esp + 8] */
   4491     esi = POP32_VAL(esp); /* 0x4709532E: pop esi */
   4492     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4494     esp = esp + 8; /* 0x4709532F: add esp, 8 */
   4495     _flag_k = FK_ADD;
   4496     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47095332: ret 8 */
   4497 L_47095335:
   4498     edx = eax * 8; /* 0x47095335: lea edx, [eax*8] */
   4499     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4500     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4501     edx = edx - eax; /* 0x4709533C: sub edx, eax */
   4502     _flag_k = FK_CMP;
   4503     eax = MEM32(esi + 0x8); /* 0x4709533E: mov eax, dword ptr [esi + 8] */
   4504     MEM32(eax + edx * 8 + 0x34) = ecx; /* 0x47095341: mov dword ptr [eax + edx*8 + 0x34], ecx */
   4505     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(1);
   4506     MEM32(esi + 0x10) = MEM32(esi + 0x10) + 1; /* 0x47095345: inc dword ptr [esi + 0x10] */
   4507     _flag_k = FK_INC;
   4508 L_47095348:
   4509     eax = MEM32(esp + 0x8); /* 0x47095348: mov eax, dword ptr [esp + 8] */
   4510     esi = POP32_VAL(esp); /* 0x4709534C: pop esi */
   4511     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4512     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4513     esp = esp + 8; /* 0x4709534D: add esp, 8 */
   4514     _flag_k = FK_ADD;
   4515     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47095350: ret 8 */
   4516     RECOMP_REGS_OUT();
   4517 }
   4518 
   4519 void sub_47095360(void) {
   4520     int _fpu_cmp = 0;
   4521     uint32_t _cf = 0;
   4522     int _df = 1;
   4523     uint32_t _flag_k = FK_NONE;
   4524     uint32_t _flag_a = 0, _flag_b = 0;
   4525     uint32_t _itail_tgt = 0;
   4526     RECOMP_REGS_LOCALS
   4527     RECOMP_ENTER(0x47095360u);
   4528 
   4529 L_47095360:
   4530     PUSH32(esp, ebx); /* 0x47095360: push ebx */
   4531     PUSH32(esp, ebp); /* 0x47095361: push ebp */
   4532     PUSH32(esp, esi); /* 0x47095362: push esi */
   4533     PUSH32(esp, edi); /* 0x47095363: push edi */
   4534     edi = MEM32(ecx + 0x7C); /* 0x47095364: mov edi, dword ptr [ecx + 0x7c] */
   4535     /* cmp edi, 0xFFFFFFFEu */ /* 0x47095367: cmp edi, -2 */
   4536     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4538     _flag_k = FK_CMP;
   4539     if (CMP_EQ(_flag_a, _flag_b)) goto L_470953C3; /* 0x4709536A: je 0x470953c3 */
   4540 L_4709536C:
   4541     eax = MEM32(esp + 0x14); /* 0x4709536C: mov eax, dword ptr [esp + 0x14] */
   4542     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4543     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4544     eax = eax + 4; /* 0x47095370: add eax, 4 */
   4545     _flag_k = FK_ADD;
   4546     MEM32(esp + 0x14) = eax; /* 0x47095373: mov dword ptr [esp + 0x14], eax */
   4547 L_47095377:
   4548     ebp = MEM32(ecx + 0x8); /* 0x47095377: mov ebp, dword ptr [ecx + 8] */
   4549     esi = MEM32(esp + 0x14); /* 0x4709537A: mov esi, dword ptr [esp + 0x14] */
   4550     edx = edi * 8; /* 0x4709537E: lea edx, [edi*8] */
   4551     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   4552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4553     edx = edx - edi; /* 0x47095385: sub edx, edi */
   4554     _flag_k = FK_CMP;
   4555     ebp = ebp + edx * 8; /* 0x47095387: lea ebp, [ebp + edx*8] */
   4556     eax = ebp + 0x4; /* 0x4709538B: lea eax, [ebp + 4] */
   4557 L_4709538E:
   4558     SET_LO8(ebx, MEM8(eax)); /* 0x4709538E: mov bl, byte ptr [eax] */
   4559     SET_LO8(edx, LO8(ebx)); /* 0x47095390: mov dl, bl */
   4560     /* cmp LO8(ebx), MEM8(esi) */ /* 0x47095392: cmp bl, byte ptr [esi] */
   4561     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   4562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4563     _flag_k = FK_NARROW(FK_CMP, 24);
   4564     if (CMP_NE(_flag_a, _flag_b)) goto L_470953B2; /* 0x47095394: jne 0x470953b2 */
   4565 L_47095396:
   4566     /* test LO8(edx), LO8(edx) */ /* 0x47095396: test dl, dl */
   4567     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4568     _cf = 0;
   4569     _flag_k = FK_NARROW(FK_TEST, 24);
   4570     if (TEST_Z(_flag_a, _flag_b)) goto L_470953AE; /* 0x47095398: je 0x470953ae */
   4571 L_4709539A:
   4572     SET_LO8(ebx, MEM8(eax + 0x1)); /* 0x4709539A: mov bl, byte ptr [eax + 1] */
   4573     SET_LO8(edx, LO8(ebx)); /* 0x4709539D: mov dl, bl */
   4574     /* cmp LO8(ebx), MEM8(esi + 0x1) */ /* 0x4709539F: cmp bl, byte ptr [esi + 1] */
   4575     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   4576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4577     _flag_k = FK_NARROW(FK_CMP, 24);
   4578     if (CMP_NE(_flag_a, _flag_b)) goto L_470953B2; /* 0x470953A2: jne 0x470953b2 */
   4579 L_470953A4:
   4580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   4581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4582     eax = eax + 2; /* 0x470953A4: add eax, 2 */
   4583     _flag_k = FK_ADD;
   4584     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   4585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4586     esi = esi + 2; /* 0x470953A7: add esi, 2 */
   4587     _flag_k = FK_ADD;
   4588     /* test LO8(edx), LO8(edx) */ /* 0x470953AA: test dl, dl */
   4589     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4590     _cf = 0;
   4591     _flag_k = FK_NARROW(FK_TEST, 24);
   4592     RECOMP_BACKEDGE();
   4593     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709538E; /* 0x470953AC: jne 0x4709538e */
   4594 L_470953AE:
   4595     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4596     eax = 0; /* 0x470953AE: xor eax, eax */
   4597     _cf = 0;
   4598     _flag_k = FK_TEST;
   4599     goto L_470953B7; /* 0x470953B0: jmp 0x470953b7 */
   4600 L_470953B2:
   4601     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470953B2: sbb eax, eax */
   4602       eax = _sc ? 0xFFFFFFFFu : 0;
   4603       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4604       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4605     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x470953B4: sbb eax, -1 */
   4606       eax = _sa - _sb - _sc;
   4607       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4608       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4609 L_470953B7:
   4610     /* test eax, eax */ /* 0x470953B7: test eax, eax */
   4611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4612     _cf = 0;
   4613     _flag_k = FK_TEST;
   4614     if (TEST_Z(_flag_a, _flag_b)) goto L_470953CD; /* 0x470953B9: je 0x470953cd */
   4615 L_470953BB:
   4616     edi = MEM32(ebp + 0x30); /* 0x470953BB: mov edi, dword ptr [ebp + 0x30] */
   4617     /* cmp edi, 0xFFFFFFFEu */ /* 0x470953BE: cmp edi, -2 */
   4618     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4620     _flag_k = FK_CMP;
   4621     RECOMP_BACKEDGE();
   4622     if (CMP_NE(_flag_a, _flag_b)) goto L_47095377; /* 0x470953C1: jne 0x47095377 */
   4623 L_470953C3:
   4624     edi = POP32_VAL(esp); /* 0x470953C3: pop edi */
   4625     esi = POP32_VAL(esp); /* 0x470953C4: pop esi */
   4626     ebp = POP32_VAL(esp); /* 0x470953C5: pop ebp */
   4627     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4628     eax = eax | 0xFFFFFFFFu; /* 0x470953C6: or eax, 0xffffffff */
   4629     _cf = 0;
   4630     _flag_k = FK_TEST;
   4631     ebx = POP32_VAL(esp); /* 0x470953C9: pop ebx */
   4632     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470953CA: ret 8 */
   4633 L_470953CD:
   4634     eax = MEM32(esp + 0x18); /* 0x470953CD: mov eax, dword ptr [esp + 0x18] */
   4635     MEM32(eax) = edi; /* 0x470953D1: mov dword ptr [eax], edi */
   4636     ebx = MEM32(ecx + 0x8); /* 0x470953D3: mov ebx, dword ptr [ecx + 8] */
   4637     edx = edi * 8; /* 0x470953D6: lea edx, [edi*8] */
   4638     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   4639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4640     edx = edx - edi; /* 0x470953DD: sub edx, edi */
   4641     _flag_k = FK_CMP;
   4642     esi = MEM32(ebx + edx * 8 + 0x34); /* 0x470953DF: mov esi, dword ptr [ebx + edx*8 + 0x34] */
   4643     edx = ebx + edx * 8; /* 0x470953E3: lea edx, [ebx + edx*8] */
   4644     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4645     eax = 0; /* 0x470953E6: xor eax, eax */
   4646     _cf = 0;
   4647     _flag_k = FK_TEST;
   4648     /* cmp esi, 0xFFFFFFFEu */ /* 0x470953E8: cmp esi, -2 */
   4649     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4651     _flag_k = FK_CMP;
   4652     if (CMP_NE(_flag_a, _flag_b)) goto L_470953F5; /* 0x470953EB: jne 0x470953f5 */
   4653 L_470953ED:
   4654     esi = MEM32(edx + 0x30); /* 0x470953ED: mov esi, dword ptr [edx + 0x30] */
   4655     MEM32(ecx + 0x7C) = esi; /* 0x470953F0: mov dword ptr [ecx + 0x7c], esi */
   4656     goto L_47095405; /* 0x470953F3: jmp 0x47095405 */
   4657 L_470953F5:
   4658     ebp = esi * 8; /* 0x470953F5: lea ebp, [esi*8] */
   4659     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(esi);
   4660     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4661     ebp = ebp - esi; /* 0x470953FC: sub ebp, esi */
   4662     _flag_k = FK_CMP;
   4663     esi = MEM32(edx + 0x30); /* 0x470953FE: mov esi, dword ptr [edx + 0x30] */
   4664     MEM32(ebx + ebp * 8 + 0x30) = esi; /* 0x47095401: mov dword ptr [ebx + ebp*8 + 0x30], esi */
   4665 L_47095405:
   4666     esi = MEM32(edx + 0x30); /* 0x47095405: mov esi, dword ptr [edx + 0x30] */
   4667     /* cmp esi, 0xFFFFFFFEu */ /* 0x47095408: cmp esi, -2 */
   4668     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4670     _flag_k = FK_CMP;
   4671     if (CMP_NE(_flag_a, _flag_b)) goto L_47095418; /* 0x4709540B: jne 0x47095418 */
   4672 L_4709540D:
   4673     esi = MEM32(edx + 0x34); /* 0x4709540D: mov esi, dword ptr [edx + 0x34] */
   4674     MEM32(ecx + 0x80) = esi; /* 0x47095410: mov dword ptr [ecx + 0x80], esi */
   4675     goto L_4709542B; /* 0x47095416: jmp 0x4709542b */
   4676 L_47095418:
   4677     ebp = MEM32(edx + 0x34); /* 0x47095418: mov ebp, dword ptr [edx + 0x34] */
   4678     ebx = esi * 8; /* 0x4709541B: lea ebx, [esi*8] */
   4679     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   4680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4681     ebx = ebx - esi; /* 0x47095422: sub ebx, esi */
   4682     _flag_k = FK_CMP;
   4683     esi = MEM32(ecx + 0x8); /* 0x47095424: mov esi, dword ptr [ecx + 8] */
   4684     MEM32(esi + ebx * 8 + 0x34) = ebp; /* 0x47095427: mov dword ptr [esi + ebx*8 + 0x34], ebp */
   4685 L_4709542B:
   4686     esi = MEM32(ecx + 0x44); /* 0x4709542B: mov esi, dword ptr [ecx + 0x44] */
   4687     /* cmp esi, 0xFFFFFFFFu */ /* 0x4709542E: cmp esi, -1 */
   4688     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4690     _flag_k = FK_CMP;
   4691     MEM32(edx + 0x30) = esi; /* 0x47095431: mov dword ptr [edx + 0x30], esi */
   4692     MEM32(edx + 0x34) = 0xFFFFFFFFu; /* 0x47095434: mov dword ptr [edx + 0x34], 0xffffffff */
   4693     MEM32(ecx + 0x44) = edi; /* 0x4709543B: mov dword ptr [ecx + 0x44], edi */
   4694     if (CMP_NE(_flag_a, _flag_b)) goto L_47095451; /* 0x4709543E: jne 0x47095451 */
   4695 L_47095440:
   4696     MEM32(ecx + 0x48) = edi; /* 0x47095440: mov dword ptr [ecx + 0x48], edi */
   4697     edx = MEM32(ecx + 0x10); /* 0x47095443: mov edx, dword ptr [ecx + 0x10] */
   4698     edi = POP32_VAL(esp); /* 0x47095446: pop edi */
   4699     esi = POP32_VAL(esp); /* 0x47095447: pop esi */
   4700     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   4701     edx = edx - 1; /* 0x47095448: dec edx */
   4702     _flag_k = FK_DEC;
   4703     ebp = POP32_VAL(esp); /* 0x47095449: pop ebp */
   4704     MEM32(ecx + 0x10) = edx; /* 0x4709544A: mov dword ptr [ecx + 0x10], edx */
   4705     ebx = POP32_VAL(esp); /* 0x4709544D: pop ebx */
   4706     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4709544E: ret 8 */
   4707 L_47095451:
   4708     edx = esi * 8; /* 0x47095451: lea edx, [esi*8] */
   4709     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   4710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4711     edx = edx - esi; /* 0x47095458: sub edx, esi */
   4712     _flag_k = FK_CMP;
   4713     esi = MEM32(ecx + 0x8); /* 0x4709545A: mov esi, dword ptr [ecx + 8] */
   4714     MEM32(esi + edx * 8 + 0x34) = edi; /* 0x4709545D: mov dword ptr [esi + edx*8 + 0x34], edi */
   4715     edx = MEM32(ecx + 0x10); /* 0x47095461: mov edx, dword ptr [ecx + 0x10] */
   4716     edi = POP32_VAL(esp); /* 0x47095464: pop edi */
   4717     esi = POP32_VAL(esp); /* 0x47095465: pop esi */
   4718     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   4719     edx = edx - 1; /* 0x47095466: dec edx */
   4720     _flag_k = FK_DEC;
   4721     ebp = POP32_VAL(esp); /* 0x47095467: pop ebp */
   4722     MEM32(ecx + 0x10) = edx; /* 0x47095468: mov dword ptr [ecx + 0x10], edx */
   4723     ebx = POP32_VAL(esp); /* 0x4709546B: pop ebx */
   4724     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4709546C: ret 8 */
   4725     RECOMP_REGS_OUT();
   4726 }
   4727 
   4728 void sub_47095470(void) {
   4729     int _fpu_cmp = 0;
   4730     uint32_t _cf = 0;
   4731     int _df = 1;
   4732     uint32_t _flag_k = FK_NONE;
   4733     uint32_t _flag_a = 0, _flag_b = 0;
   4734     uint32_t _itail_tgt = 0;
   4735     RECOMP_REGS_LOCALS
   4736     RECOMP_ENTER(0x47095470u);
   4737 
   4738 L_47095470:
   4739     PUSH32(esp, 0xFFFFFFFFu); /* 0x47095470: push -1 */
   4740     PUSH32(esp, 0x470AB1DBu); /* 0x47095472: push 0x470ab1db */
   4741     eax = MEM32(FS_BASE + (0)); /* 0x47095477: mov eax, dword ptr fs:[0] */
   4742     PUSH32(esp, eax); /* 0x4709547D: push eax */
   4743     MEM32(FS_BASE + (0)) = esp; /* 0x4709547E: mov dword ptr fs:[0], esp */
   4744     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4746     esp = esp - 0x10u; /* 0x47095485: sub esp, 0x10 */
   4747     _flag_k = FK_CMP;
   4748     eax = MEM32(esp + 0x20); /* 0x47095488: mov eax, dword ptr [esp + 0x20] */
   4749     PUSH32(esp, ebp); /* 0x4709548C: push ebp */
   4750     ebp = eax * 8; /* 0x4709548D: lea ebp, [eax*8] */
   4751     PUSH32(esp, esi); /* 0x47095494: push esi */
   4752     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(eax);
   4753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4754     ebp = ebp - eax; /* 0x47095495: sub ebp, eax */
   4755     _flag_k = FK_CMP;
   4756     esi = ecx; /* 0x47095497: mov esi, ecx */
   4757     ecx = MEM32(esi); /* 0x47095499: mov ecx, dword ptr [esi] */
   4758     eax = MEM32(ecx); /* 0x4709549B: mov eax, dword ptr [ecx] */
   4759     if (3u) _cf = (((ebp) >> 29) & 1u); /* 0x4709549D: shl ebp, 3 */
   4760     if (3u) { _flag_a = recomp_flags_pack((ebp << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4761     ebp = ebp << 3u; /* 0x4709549D: shl ebp, 3 */
   4762     PUSH32(esp, ebp); /* 0x470954A0: push ebp */
   4763     MEM32(esp + 0x14) = ebp; /* 0x470954A1: mov dword ptr [esp + 0x14], ebp */
   4764     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470954A5: call dword ptr [eax + 4] */
   4765     RECOMP_FLAGS_IN();
   4766     /* test eax, eax */ /* 0x470954A8: test eax, eax */
   4767     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4768     _cf = 0;
   4769     _flag_k = FK_TEST;
   4770     MEM32(esp + 0xC) = eax; /* 0x470954AA: mov dword ptr [esp + 0xc], eax */
   4771     if (TEST_NZ(_flag_a, _flag_b)) goto L_470954D2; /* 0x470954AE: jne 0x470954d2 */
   4772 L_470954B0:
   4773     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470954B0: call dword ptr [0x470ac3c8] */
   4774     RECOMP_FLAGS_IN();
   4775     esi = POP32_VAL(esp); /* 0x470954B6: pop esi */
   4776     MEM32(eax) = 0xCu; /* 0x470954B7: mov dword ptr [eax], 0xc */
   4777     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4778     eax = eax | 0xFFFFFFFFu; /* 0x470954BD: or eax, 0xffffffff */
   4779     _cf = 0;
   4780     _flag_k = FK_TEST;
   4781     ebp = POP32_VAL(esp); /* 0x470954C0: pop ebp */
   4782     ecx = MEM32(esp + 0x10); /* 0x470954C1: mov ecx, dword ptr [esp + 0x10] */
   4783     MEM32(FS_BASE + (0)) = ecx; /* 0x470954C5: mov dword ptr fs:[0], ecx */
   4784     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   4785     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4786     esp = esp + 0x1Cu; /* 0x470954CC: add esp, 0x1c */
   4787     _flag_k = FK_ADD;
   4788     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470954CF: ret 4 */
   4789 L_470954D2:
   4790     ecx = MEM32(esi + 0x7C); /* 0x470954D2: mov ecx, dword ptr [esi + 0x7c] */
   4791     /* cmp ecx, 0xFFFFFFFEu */ /* 0x470954D5: cmp ecx, -2 */
   4792     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4794     _flag_k = FK_CMP;
   4795     PUSH32(esp, ebx); /* 0x470954D8: push ebx */
   4796     PUSH32(esp, edi); /* 0x470954D9: push edi */
   4797     MEM32(esp + 0x10) = ecx; /* 0x470954DA: mov dword ptr [esp + 0x10], ecx */
   4798     if (CMP_EQ(_flag_a, _flag_b)) goto L_47095540; /* 0x470954DE: je 0x47095540 */
   4799 L_470954E0:
   4800     edi = ecx * 8; /* 0x470954E0: lea edi, [ecx*8] */
   4801     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   4802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4803     edi = edi - ecx; /* 0x470954E7: sub edi, ecx */
   4804     _flag_k = FK_CMP;
   4805     if (3u) _cf = (((edi) >> 29) & 1u); /* 0x470954E9: shl edi, 3 */
   4806     if (3u) { _flag_a = recomp_flags_pack((edi << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4807     edi = edi << 3u; /* 0x470954E9: shl edi, 3 */
   4808     ebx = edi + eax; /* 0x470954EC: lea ebx, [edi + eax] */
   4809     MEM32(esp + 0x1C) = ebx; /* 0x470954EF: mov dword ptr [esp + 0x1c], ebx */
   4810     /* test ebx, ebx */ /* 0x470954F3: test ebx, ebx */
   4811     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4812     _cf = 0;
   4813     _flag_k = FK_TEST;
   4814     MEM32(esp + 0x28) = 0; /* 0x470954F5: mov dword ptr [esp + 0x28], 0 */
   4815     if (TEST_Z(_flag_a, _flag_b)) goto L_47095528; /* 0x470954FD: je 0x47095528 */
   4816 L_470954FF:
   4817     ecx = MEM32(esi + 0x8); /* 0x470954FF: mov ecx, dword ptr [esi + 8] */
   4818     ebp = edi; /* 0x47095502: mov ebp, edi */
   4819     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx);
   4820     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4821     ebp = ebp + ecx; /* 0x47095504: add ebp, ecx */
   4822     _flag_k = FK_ADD;
   4823     PUSH32(esp, ebp); /* 0x47095506: push ebp */
   4824     ecx = ebx; /* 0x47095507: mov ecx, ebx */
   4825     RECOMP_ICALL(0x470389B0u); /* 0x47095509: call 0x470389b0 */ /* not lifted */
   4826     RECOMP_FLAGS_IN();
   4827     ecx = MEM32(ebp + 0x2C); /* 0x4709550E: mov ecx, dword ptr [ebp + 0x2c] */
   4828     MEM32(ebx + 0x2C) = ecx; /* 0x47095511: mov dword ptr [ebx + 0x2c], ecx */
   4829     edx = MEM32(ebp + 0x30); /* 0x47095514: mov edx, dword ptr [ebp + 0x30] */
   4830     MEM32(ebx + 0x30) = edx; /* 0x47095517: mov dword ptr [ebx + 0x30], edx */
   4831     eax = MEM32(ebp + 0x34); /* 0x4709551A: mov eax, dword ptr [ebp + 0x34] */
   4832     ebp = MEM32(esp + 0x18); /* 0x4709551D: mov ebp, dword ptr [esp + 0x18] */
   4833     MEM32(ebx + 0x34) = eax; /* 0x47095521: mov dword ptr [ebx + 0x34], eax */
   4834     eax = MEM32(esp + 0x14); /* 0x47095524: mov eax, dword ptr [esp + 0x14] */
   4835 L_47095528:
   4836     ecx = MEM32(esi + 0x8); /* 0x47095528: mov ecx, dword ptr [esi + 8] */
   4837     ecx = MEM32(edi + ecx + 0x30); /* 0x4709552B: mov ecx, dword ptr [edi + ecx + 0x30] */
   4838     /* cmp ecx, 0xFFFFFFFEu */ /* 0x4709552F: cmp ecx, -2 */
   4839     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4841     _flag_k = FK_CMP;
   4842     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47095532: mov dword ptr [esp + 0x28], 0xffffffff */
   4843     MEM32(esp + 0x10) = ecx; /* 0x4709553A: mov dword ptr [esp + 0x10], ecx */
   4844     RECOMP_BACKEDGE();
   4845     if (CMP_NE(_flag_a, _flag_b)) goto L_470954E0; /* 0x4709553E: jne 0x470954e0 */
   4846 L_47095540:
   4847     ecx = MEM32(esi + 0x44); /* 0x47095540: mov ecx, dword ptr [esi + 0x44] */
   4848     _flag_a = (uint32_t)((edx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edx | 0xFFFFFFFFu));
   4849     edx = edx | 0xFFFFFFFFu; /* 0x47095543: or edx, 0xffffffff */
   4850     _cf = 0;
   4851     _flag_k = FK_TEST;
   4852     /* cmp ecx, edx */ /* 0x47095546: cmp ecx, edx */
   4853     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4855     _flag_k = FK_CMP;
   4856     MEM32(esp + 0x10) = ecx; /* 0x47095548: mov dword ptr [esp + 0x10], ecx */
   4857     if (CMP_EQ(_flag_a, _flag_b)) goto L_470955AC; /* 0x4709554C: je 0x470955ac */
   4858 L_4709554E:
   4859     edi = ecx * 8; /* 0x4709554E: lea edi, [ecx*8] */
   4860     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   4861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4862     edi = edi - ecx; /* 0x47095555: sub edi, ecx */
   4863     _flag_k = FK_CMP;
   4864     if (3u) _cf = (((edi) >> 29) & 1u); /* 0x47095557: shl edi, 3 */
   4865     if (3u) { _flag_a = recomp_flags_pack((edi << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4866     edi = edi << 3u; /* 0x47095557: shl edi, 3 */
   4867     ebp = edi + eax; /* 0x4709555A: lea ebp, [edi + eax] */
   4868     MEM32(esp + 0x1C) = ebp; /* 0x4709555D: mov dword ptr [esp + 0x1c], ebp */
   4869     /* test ebp, ebp */ /* 0x47095561: test ebp, ebp */
   4870     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   4871     _cf = 0;
   4872     _flag_k = FK_TEST;
   4873     MEM32(esp + 0x28) = 1; /* 0x47095563: mov dword ptr [esp + 0x28], 1 */
   4874     if (TEST_Z(_flag_a, _flag_b)) goto L_47095595; /* 0x4709556B: je 0x47095595 */
   4875 L_4709556D:
   4876     ecx = MEM32(esi + 0x8); /* 0x4709556D: mov ecx, dword ptr [esi + 8] */
   4877     ebx = edi; /* 0x47095570: mov ebx, edi */
   4878     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   4879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4880     ebx = ebx + ecx; /* 0x47095572: add ebx, ecx */
   4881     _flag_k = FK_ADD;
   4882     PUSH32(esp, ebx); /* 0x47095574: push ebx */
   4883     ecx = ebp; /* 0x47095575: mov ecx, ebp */
   4884     RECOMP_ICALL(0x470389B0u); /* 0x47095577: call 0x470389b0 */ /* not lifted */
   4885     RECOMP_FLAGS_IN();
   4886     edx = MEM32(ebx + 0x2C); /* 0x4709557C: mov edx, dword ptr [ebx + 0x2c] */
   4887     MEM32(ebp + 0x2C) = edx; /* 0x4709557F: mov dword ptr [ebp + 0x2c], edx */
   4888     eax = MEM32(ebx + 0x30); /* 0x47095582: mov eax, dword ptr [ebx + 0x30] */
   4889     MEM32(ebp + 0x30) = eax; /* 0x47095585: mov dword ptr [ebp + 0x30], eax */
   4890     ecx = MEM32(ebx + 0x34); /* 0x47095588: mov ecx, dword ptr [ebx + 0x34] */
   4891     eax = MEM32(esp + 0x14); /* 0x4709558B: mov eax, dword ptr [esp + 0x14] */
   4892     MEM32(ebp + 0x34) = ecx; /* 0x4709558F: mov dword ptr [ebp + 0x34], ecx */
   4893     _flag_a = (uint32_t)((edx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edx | 0xFFFFFFFFu));
   4894     edx = edx | 0xFFFFFFFFu; /* 0x47095592: or edx, 0xffffffff */
   4895     _cf = 0;
   4896     _flag_k = FK_TEST;
   4897 L_47095595:
   4898     ecx = MEM32(esi + 0x8); /* 0x47095595: mov ecx, dword ptr [esi + 8] */
   4899     ecx = MEM32(edi + ecx + 0x30); /* 0x47095598: mov ecx, dword ptr [edi + ecx + 0x30] */
   4900     /* cmp ecx, edx */ /* 0x4709559C: cmp ecx, edx */
   4901     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4903     _flag_k = FK_CMP;
   4904     MEM32(esp + 0x28) = edx; /* 0x4709559E: mov dword ptr [esp + 0x28], edx */
   4905     MEM32(esp + 0x10) = ecx; /* 0x470955A2: mov dword ptr [esp + 0x10], ecx */
   4906     RECOMP_BACKEDGE();
   4907     if (CMP_NE(_flag_a, _flag_b)) goto L_4709554E; /* 0x470955A6: jne 0x4709554e */
   4908 L_470955A8:
   4909     ebp = MEM32(esp + 0x18); /* 0x470955A8: mov ebp, dword ptr [esp + 0x18] */
   4910 L_470955AC:
   4911     edi = MEM32(esi + 0xC); /* 0x470955AC: mov edi, dword ptr [esi + 0xc] */
   4912     /* cmp edi, MEM32(esp + 0x30) */ /* 0x470955AF: cmp edi, dword ptr [esp + 0x30] */
   4913     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esp + 0x30));
   4914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4915     _flag_k = FK_CMP;
   4916     MEM32(esp + 0x10) = edi; /* 0x470955B3: mov dword ptr [esp + 0x10], edi */
   4917     if (CMP_AE(_flag_a, _flag_b)) goto L_470955FF; /* 0x470955B7: jae 0x470955ff */
   4918 L_470955B9:
   4919     ecx = edi * 8; /* 0x470955B9: lea ecx, [edi*8] */
   4920     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   4921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4922     ecx = ecx - edi; /* 0x470955C0: sub ecx, edi */
   4923     _flag_k = FK_CMP;
   4924     ebx = eax + ecx * 8; /* 0x470955C2: lea ebx, [eax + ecx*8] */
   4925     ecx = ebx; /* 0x470955C5: mov ecx, ebx */
   4926     MEM32(esp + 0x1C) = ecx; /* 0x470955C7: mov dword ptr [esp + 0x1c], ecx */
   4927     /* test ecx, ecx */ /* 0x470955CB: test ecx, ecx */
   4928     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4929     _cf = 0;
   4930     _flag_k = FK_TEST;
   4931     MEM32(esp + 0x28) = 2; /* 0x470955CD: mov dword ptr [esp + 0x28], 2 */
   4932     if (TEST_Z(_flag_a, _flag_b)) goto L_470955E5; /* 0x470955D5: je 0x470955e5 */
   4933 L_470955D7:
   4934     PUSH32(esp, 0); /* 0x470955D7: push 0 */
   4935     RECOMP_ICALL(0x47038900u); /* 0x470955D9: call 0x47038900 */ /* not lifted */
   4936     RECOMP_FLAGS_IN();
   4937     eax = MEM32(esp + 0x14); /* 0x470955DE: mov eax, dword ptr [esp + 0x14] */
   4938     _flag_a = (uint32_t)((edx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edx | 0xFFFFFFFFu));
   4939     edx = edx | 0xFFFFFFFFu; /* 0x470955E2: or edx, 0xffffffff */
   4940     _cf = 0;
   4941     _flag_k = FK_TEST;
   4942 L_470955E5:
   4943     ecx = edi + 0x1; /* 0x470955E5: lea ecx, [edi + 1] */
   4944     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   4945     edi = edi - 1; /* 0x470955E8: dec edi */
   4946     _flag_k = FK_DEC;
   4947     MEM32(ebx + 0x30) = ecx; /* 0x470955E9: mov dword ptr [ebx + 0x30], ecx */
   4948     MEM32(ebx + 0x34) = edi; /* 0x470955EC: mov dword ptr [ebx + 0x34], edi */
   4949     edi = ecx; /* 0x470955EF: mov edi, ecx */
   4950     /* cmp edi, MEM32(esp + 0x30) */ /* 0x470955F1: cmp edi, dword ptr [esp + 0x30] */
   4951     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esp + 0x30));
   4952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4953     _flag_k = FK_CMP;
   4954     MEM32(esp + 0x28) = edx; /* 0x470955F5: mov dword ptr [esp + 0x28], edx */
   4955     MEM32(esp + 0x10) = edi; /* 0x470955F9: mov dword ptr [esp + 0x10], edi */
   4956     RECOMP_BACKEDGE();
   4957     if (CMP_B(_flag_a, _flag_b)) goto L_470955B9; /* 0x470955FD: jb 0x470955b9 */
   4958 L_470955FF:
   4959     ecx = MEM32(esi + 0xC); /* 0x470955FF: mov ecx, dword ptr [esi + 0xc] */
   4960     MEM32(esi + 0x44) = ecx; /* 0x47095602: mov dword ptr [esi + 0x44], ecx */
   4961     ecx = MEM32(esp + 0x30); /* 0x47095605: mov ecx, dword ptr [esp + 0x30] */
   4962     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4963     ecx = ecx - 1; /* 0x47095609: dec ecx */
   4964     _flag_k = FK_DEC;
   4965     MEM32(esi + 0x48) = ecx; /* 0x4709560A: mov dword ptr [esi + 0x48], ecx */
   4966     MEM32(eax + ebp + (-0x8)) = edx; /* 0x4709560D: mov dword ptr [eax + ebp - 8], edx */
   4967     ecx = MEM32(esi + 0xC); /* 0x47095611: mov ecx, dword ptr [esi + 0xc] */
   4968     edi = ecx * 8; /* 0x47095614: lea edi, [ecx*8] */
   4969     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   4970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4971     edi = edi - ecx; /* 0x4709561B: sub edi, ecx */
   4972     _flag_k = FK_CMP;
   4973     MEM32(eax + edi * 8 + 0x34) = edx; /* 0x4709561D: mov dword ptr [eax + edi*8 + 0x34], edx */
   4974     ecx = MEM32(esi + 0x8); /* 0x47095621: mov ecx, dword ptr [esi + 8] */
   4975     /* test ecx, ecx */ /* 0x47095624: test ecx, ecx */
   4976     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4977     _cf = 0;
   4978     _flag_k = FK_TEST;
   4979     if (TEST_Z(_flag_a, _flag_b)) goto L_47095662; /* 0x47095626: je 0x47095662 */
   4980 L_47095628:
   4981     eax = MEM32(esi + 0xC); /* 0x47095628: mov eax, dword ptr [esi + 0xc] */
   4982     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4983     ebx = 0; /* 0x4709562B: xor ebx, ebx */
   4984     _cf = 0;
   4985     _flag_k = FK_TEST;
   4986     /* test eax, eax */ /* 0x4709562D: test eax, eax */
   4987     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4988     _cf = 0;
   4989     _flag_k = FK_TEST;
   4990     if (TEST_Z(_flag_a, _flag_b)) goto L_4709564C; /* 0x4709562F: jbe 0x4709564c */
   4991 L_47095631:
   4992     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4993     edi = 0; /* 0x47095631: xor edi, edi */
   4994     _cf = 0;
   4995     _flag_k = FK_TEST;
   4996 L_47095633:
   4997     eax = MEM32(esi + 0x8); /* 0x47095633: mov eax, dword ptr [esi + 8] */
   4998     ecx = edi; /* 0x47095636: mov ecx, edi */
   4999     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5000     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5001     ecx = ecx + eax; /* 0x47095638: add ecx, eax */
   5002     _flag_k = FK_ADD;
   5003     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_47095641; /* 0x4709563A: je 0x47095641 */
   5004 L_4709563C:
   5005     RECOMP_ICALL(0x47038A00u); /* 0x4709563C: call 0x47038a00 */ /* not lifted */
   5006     RECOMP_FLAGS_IN();
   5007 L_47095641:
   5008     eax = MEM32(esi + 0xC); /* 0x47095641: mov eax, dword ptr [esi + 0xc] */
   5009     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   5010     ebx = ebx + 1; /* 0x47095644: inc ebx */
   5011     _flag_k = FK_INC;
   5012     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x38u);
   5013     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5014     edi = edi + 0x38u; /* 0x47095645: add edi, 0x38 */
   5015     _flag_k = FK_ADD;
   5016     /* cmp ebx, eax */ /* 0x47095648: cmp ebx, eax */
   5017     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   5018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5019     _flag_k = FK_CMP;
   5020     RECOMP_BACKEDGE();
   5021     if (CMP_B(_flag_a, _flag_b)) goto L_47095633; /* 0x4709564A: jb 0x47095633 */
   5022 L_4709564C:
   5023     ecx = MEM32(esi); /* 0x4709564C: mov ecx, dword ptr [esi] */
   5024     eax = MEM32(esi + 0x8); /* 0x4709564E: mov eax, dword ptr [esi + 8] */
   5025     edx = MEM32(ecx); /* 0x47095651: mov edx, dword ptr [ecx] */
   5026     PUSH32(esp, eax); /* 0x47095653: push eax */
   5027     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47095654: call dword ptr [edx + 0xc] */
   5028     RECOMP_FLAGS_IN();
   5029     eax = MEM32(esp + 0x14); /* 0x47095657: mov eax, dword ptr [esp + 0x14] */
   5030     MEM32(esi + 0x8) = 0; /* 0x4709565B: mov dword ptr [esi + 8], 0 */
   5031 L_47095662:
   5032     ecx = MEM32(esp + 0x30); /* 0x47095662: mov ecx, dword ptr [esp + 0x30] */
   5033     edi = POP32_VAL(esp); /* 0x47095666: pop edi */
   5034     MEM32(esi + 0xC) = ecx; /* 0x47095667: mov dword ptr [esi + 0xc], ecx */
   5035     ecx = MEM32(esp + 0x1C); /* 0x4709566A: mov ecx, dword ptr [esp + 0x1c] */
   5036     MEM32(esi + 0x8) = eax; /* 0x4709566E: mov dword ptr [esi + 8], eax */
   5037     ebx = POP32_VAL(esp); /* 0x47095671: pop ebx */
   5038     esi = POP32_VAL(esp); /* 0x47095672: pop esi */
   5039     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5040     eax = 0; /* 0x47095673: xor eax, eax */
   5041     _cf = 0;
   5042     _flag_k = FK_TEST;
   5043     ebp = POP32_VAL(esp); /* 0x47095675: pop ebp */
   5044     MEM32(FS_BASE + (0)) = ecx; /* 0x47095676: mov dword ptr fs:[0], ecx */
   5045     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   5046     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5047     esp = esp + 0x1Cu; /* 0x4709567D: add esp, 0x1c */
   5048     _flag_k = FK_ADD;
   5049     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47095680: ret 4 */
   5050     RECOMP_REGS_OUT();
   5051 }
   5052 
   5053 void sub_47095690(void) {
   5054     int _fpu_cmp = 0;
   5055     uint32_t _cf = 0;
   5056     int _df = 1;
   5057     uint32_t _flag_k = FK_NONE;
   5058     uint32_t _flag_a = 0, _flag_b = 0;
   5059     uint32_t _itail_tgt = 0;
   5060     RECOMP_REGS_LOCALS
   5061     RECOMP_ENTER(0x47095690u);
   5062 
   5063 L_47095690:
   5064     ecx = 0x4710FBD5u; /* 0x47095690: mov ecx, 0x4710fbd5 */
   5065     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47095695: call dword ptr [0x470ac1c8] */
   5066     RECOMP_FLAGS_IN();
   5067     PUSH32(esp, 0x470956B0u); /* 0x4709569B: push 0x470956b0 */
   5068     RECOMP_ICALL(0x470A32D9u); /* 0x470956A0: call 0x470a32d9 */ /* not lifted */
   5069     RECOMP_FLAGS_IN();
   5070     ecx = POP32_VAL(esp); /* 0x470956A5: pop ecx */
   5071     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470956A6: ret  */
   5072     RECOMP_REGS_OUT();
   5073 }
   5074 
   5075 void sub_470956B0(void) {
   5076     int _fpu_cmp = 0;
   5077     uint32_t _cf = 0;
   5078     int _df = 1;
   5079     uint32_t _flag_k = FK_NONE;
   5080     uint32_t _flag_a = 0, _flag_b = 0;
   5081     uint32_t _itail_tgt = 0;
   5082     RECOMP_REGS_LOCALS
   5083     RECOMP_ENTER(0x470956B0u);
   5084 
   5085 L_470956B0:
   5086     ecx = 0x4710FBD5u; /* 0x470956B0: mov ecx, 0x4710fbd5 */
   5087 L_470956B5:
   5088     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   5089     { RECOMP_REGS_OUT(); return; } /* end of function */
   5090   _ljump:
   5091     switch (_itail_tgt) {
   5092       case 0x470956B0u: goto L_470956B0;
   5093       case 0x470956B5u: goto L_470956B5;
   5094       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5095     }
   5096     RECOMP_REGS_OUT();
   5097 }
   5098 
   5099 void sub_470956C0(void) {
   5100     int _fpu_cmp = 0;
   5101     uint32_t _cf = 0;
   5102     int _df = 1;
   5103     uint32_t _flag_k = FK_NONE;
   5104     uint32_t _flag_a = 0, _flag_b = 0;
   5105     uint32_t _itail_tgt = 0;
   5106     RECOMP_REGS_LOCALS
   5107     RECOMP_ENTER(0x470956C0u);
   5108 
   5109 L_470956C0:
   5110     ecx = 0x4710FBD4u; /* 0x470956C0: mov ecx, 0x4710fbd4 */
   5111     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470956C5: call dword ptr [0x470ac1c4] */
   5112     RECOMP_FLAGS_IN();
   5113     PUSH32(esp, 0x470956E0u); /* 0x470956CB: push 0x470956e0 */
   5114     RECOMP_ICALL(0x470A32D9u); /* 0x470956D0: call 0x470a32d9 */ /* not lifted */
   5115     RECOMP_FLAGS_IN();
   5116     ecx = POP32_VAL(esp); /* 0x470956D5: pop ecx */
   5117     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470956D6: ret  */
   5118     RECOMP_REGS_OUT();
   5119 }
   5120 
   5121 void sub_470956E0(void) {
   5122     int _fpu_cmp = 0;
   5123     uint32_t _cf = 0;
   5124     int _df = 1;
   5125     uint32_t _flag_k = FK_NONE;
   5126     uint32_t _flag_a = 0, _flag_b = 0;
   5127     uint32_t _itail_tgt = 0;
   5128     RECOMP_REGS_LOCALS
   5129     RECOMP_ENTER(0x470956E0u);
   5130 
   5131 L_470956E0:
   5132     ecx = 0x4710FBD4u; /* 0x470956E0: mov ecx, 0x4710fbd4 */
   5133 L_470956E5:
   5134     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   5135     { RECOMP_REGS_OUT(); return; } /* end of function */
   5136   _ljump:
   5137     switch (_itail_tgt) {
   5138       case 0x470956E0u: goto L_470956E0;
   5139       case 0x470956E5u: goto L_470956E5;
   5140       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5141     }
   5142     RECOMP_REGS_OUT();
   5143 }
   5144 
   5145 void sub_470956F0(void) {
   5146     int _fpu_cmp = 0;
   5147     uint32_t _cf = 0;
   5148     int _df = 1;
   5149     uint32_t _flag_k = FK_NONE;
   5150     uint32_t _flag_a = 0, _flag_b = 0;
   5151     uint32_t _itail_tgt = 0;
   5152     RECOMP_REGS_LOCALS
   5153     RECOMP_ENTER(0x470956F0u);
   5154 
   5155 L_470956F0:
   5156     MEM32(0x4710FBC8) = 0x47104A3Cu; /* 0x470956F0: mov dword ptr [0x4710fbc8], 0x47104a3c */
   5157     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470956FA: ret  */
   5158     RECOMP_REGS_OUT();
   5159 }
   5160 
   5161 void sub_47095700(void) {
   5162     int _fpu_cmp = 0;
   5163     uint32_t _cf = 0;
   5164     int _df = 1;
   5165     uint32_t _flag_k = FK_NONE;
   5166     uint32_t _flag_a = 0, _flag_b = 0;
   5167     uint32_t _itail_tgt = 0;
   5168     RECOMP_REGS_LOCALS
   5169     RECOMP_ENTER(0x47095700u);
   5170 
   5171 L_47095700:
   5172     MEM32(0x4710FBDC) = 0x47104A00u; /* 0x47095700: mov dword ptr [0x4710fbdc], 0x47104a00 */
   5173     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709570A: ret  */
   5174     RECOMP_REGS_OUT();
   5175 }
   5176 
   5177 void sub_47095710(void) {
   5178     int _fpu_cmp = 0;
   5179     uint32_t _cf = 0;
   5180     int _df = 1;
   5181     uint32_t _flag_k = FK_NONE;
   5182     uint32_t _flag_a = 0, _flag_b = 0;
   5183     uint32_t _itail_tgt = 0;
   5184     RECOMP_REGS_LOCALS
   5185     RECOMP_ENTER(0x47095710u);
   5186 
   5187 L_47095710:
   5188     MEM32(0x4710FBD8) = 0x47104A70u; /* 0x47095710: mov dword ptr [0x4710fbd8], 0x47104a70 */
   5189     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709571A: ret  */
   5190     RECOMP_REGS_OUT();
   5191 }
   5192 
   5193 void sub_47095720(void) {
   5194     int _fpu_cmp = 0;
   5195     uint32_t _cf = 0;
   5196     int _df = 1;
   5197     uint32_t _flag_k = FK_NONE;
   5198     uint32_t _flag_a = 0, _flag_b = 0;
   5199     uint32_t _itail_tgt = 0;
   5200     RECOMP_REGS_LOCALS
   5201     RECOMP_ENTER(0x47095720u);
   5202 
   5203 L_47095720:
   5204     MEM32(0x4710FBEC) = 0x47104B6Cu; /* 0x47095720: mov dword ptr [0x4710fbec], 0x47104b6c */
   5205     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709572A: ret  */
   5206     RECOMP_REGS_OUT();
   5207 }
   5208 
   5209 void sub_47095730(void) {
   5210     int _fpu_cmp = 0;
   5211     uint32_t _cf = 0;
   5212     int _df = 1;
   5213     uint32_t _flag_k = FK_NONE;
   5214     uint32_t _flag_a = 0, _flag_b = 0;
   5215     uint32_t _itail_tgt = 0;
   5216     RECOMP_REGS_LOCALS
   5217     RECOMP_ENTER(0x47095730u);
   5218 
   5219 L_47095730:
   5220     MEM32(0x4710FBCC) = 0x47104BA0u; /* 0x47095730: mov dword ptr [0x4710fbcc], 0x47104ba0 */
   5221     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709573A: ret  */
   5222     RECOMP_REGS_OUT();
   5223 }
   5224 
   5225 void sub_47095740(void) {
   5226     int _fpu_cmp = 0;
   5227     uint32_t _cf = 0;
   5228     int _df = 1;
   5229     uint32_t _flag_k = FK_NONE;
   5230     uint32_t _flag_a = 0, _flag_b = 0;
   5231     uint32_t _itail_tgt = 0;
   5232     RECOMP_REGS_LOCALS
   5233     RECOMP_ENTER(0x47095740u);
   5234 
   5235 L_47095740:
   5236     MEM32(0x4710FBE8) = 0x47104BD4u; /* 0x47095740: mov dword ptr [0x4710fbe8], 0x47104bd4 */
   5237     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709574A: ret  */
   5238     RECOMP_REGS_OUT();
   5239 }
   5240 
   5241 void sub_47095750(void) {
   5242     int _fpu_cmp = 0;
   5243     uint32_t _cf = 0;
   5244     int _df = 1;
   5245     uint32_t _flag_k = FK_NONE;
   5246     uint32_t _flag_a = 0, _flag_b = 0;
   5247     uint32_t _itail_tgt = 0;
   5248     RECOMP_REGS_LOCALS
   5249     RECOMP_ENTER(0x47095750u);
   5250 
   5251 L_47095750:
   5252     MEM32(0x4710FBE0) = 0x471050FCu; /* 0x47095750: mov dword ptr [0x4710fbe0], 0x471050fc */
   5253     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709575A: ret  */
   5254     RECOMP_REGS_OUT();
   5255 }
   5256 
   5257 void sub_47095760(void) {
   5258     int _fpu_cmp = 0;
   5259     uint32_t _cf = 0;
   5260     int _df = 1;
   5261     uint32_t _flag_k = FK_NONE;
   5262     uint32_t _flag_a = 0, _flag_b = 0;
   5263     uint32_t _itail_tgt = 0;
   5264     RECOMP_REGS_LOCALS
   5265     RECOMP_ENTER(0x47095760u);
   5266 
   5267 L_47095760:
   5268     MEM32(0x4710FBE4) = 0x471053F0u; /* 0x47095760: mov dword ptr [0x4710fbe4], 0x471053f0 */
   5269     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709576A: ret  */
   5270     RECOMP_REGS_OUT();
   5271 }
   5272 
   5273 void sub_47095770(void) {
   5274     int _fpu_cmp = 0;
   5275     uint32_t _cf = 0;
   5276     int _df = 1;
   5277     uint32_t _flag_k = FK_NONE;
   5278     uint32_t _flag_a = 0, _flag_b = 0;
   5279     uint32_t _itail_tgt = 0;
   5280     RECOMP_REGS_LOCALS
   5281     RECOMP_ENTER(0x47095770u);
   5282 
   5283 L_47095770:
   5284     MEM32(0x4710FBD0) = 0x4710D124u; /* 0x47095770: mov dword ptr [0x4710fbd0], 0x4710d124 */
   5285     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709577A: ret  */
   5286     RECOMP_REGS_OUT();
   5287 }
   5288 
   5289 void sub_47095780(void) {
   5290     int _fpu_cmp = 0;
   5291     uint32_t _cf = 0;
   5292     int _df = 1;
   5293     uint32_t _flag_k = FK_NONE;
   5294     uint32_t _flag_a = 0, _flag_b = 0;
   5295     uint32_t _itail_tgt = 0;
   5296     RECOMP_REGS_LOCALS
   5297     RECOMP_ENTER(0x47095780u);
   5298 
   5299 L_47095780:
   5300     PUSH32(esp, esi); /* 0x47095780: push esi */
   5301     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5302     eax = 0; /* 0x47095781: xor eax, eax */
   5303     _cf = 0;
   5304     _flag_k = FK_TEST;
   5305     PUSH32(esp, eax); /* 0x47095783: push eax */
   5306     esi = ecx; /* 0x47095784: mov esi, ecx */
   5307     PUSH32(esp, 0x4710E9A8u); /* 0x47095786: push 0x4710e9a8 */
   5308     PUSH32(esp, eax); /* 0x4709578B: push eax */
   5309     ecx = esi + 0x170; /* 0x4709578C: lea ecx, [esi + 0x170] */
   5310     MEM32(esi + 0x168) = eax; /* 0x47095792: mov dword ptr [esi + 0x168], eax */
   5311     MEM32(esi + 0x16C) = eax; /* 0x47095798: mov dword ptr [esi + 0x16c], eax */
   5312     RECOMP_ICALL(0x470880E0u); /* 0x4709579E: call 0x470880e0 */ /* not lifted */
   5313     RECOMP_FLAGS_IN();
   5314     eax = esi; /* 0x470957A3: mov eax, esi */
   5315     esi = POP32_VAL(esp); /* 0x470957A5: pop esi */
   5316     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470957A6: ret  */
   5317     RECOMP_REGS_OUT();
   5318 }
   5319 
   5320 void sub_470957B0(void) {
   5321     int _fpu_cmp = 0;
   5322     uint32_t _cf = 0;
   5323     int _df = 1;
   5324     uint32_t _flag_k = FK_NONE;
   5325     uint32_t _flag_a = 0, _flag_b = 0;
   5326     uint32_t _itail_tgt = 0;
   5327     RECOMP_REGS_LOCALS
   5328     RECOMP_ENTER(0x470957B0u);
   5329 
   5330 L_470957B0:
   5331     PUSH32(esp, 0xFFFFFFFFu); /* 0x470957B0: push -1 */
   5332     PUSH32(esp, 0x470AB1FEu); /* 0x470957B2: push 0x470ab1fe */
   5333     eax = MEM32(FS_BASE + (0)); /* 0x470957B7: mov eax, dword ptr fs:[0] */
   5334     PUSH32(esp, eax); /* 0x470957BD: push eax */
   5335     MEM32(FS_BASE + (0)) = esp; /* 0x470957BE: mov dword ptr fs:[0], esp */
   5336     PUSH32(esp, ecx); /* 0x470957C5: push ecx */
   5337     PUSH32(esp, ebx); /* 0x470957C6: push ebx */
   5338     PUSH32(esp, ebp); /* 0x470957C7: push ebp */
   5339     PUSH32(esp, esi); /* 0x470957C8: push esi */
   5340     PUSH32(esp, edi); /* 0x470957C9: push edi */
   5341     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5342     esi = 0; /* 0x470957CA: xor esi, esi */
   5343     _cf = 0;
   5344     _flag_k = FK_TEST;
   5345     PUSH32(esp, esi); /* 0x470957CC: push esi */
   5346     ebx = ecx; /* 0x470957CD: mov ebx, ecx */
   5347     PUSH32(esp, 0x4710E9A8u); /* 0x470957CF: push 0x4710e9a8 */
   5348     PUSH32(esp, esi); /* 0x470957D4: push esi */
   5349     ecx = ebx + 0x170; /* 0x470957D5: lea ecx, [ebx + 0x170] */
   5350     MEM32(esp + 0x1C) = ebx; /* 0x470957DB: mov dword ptr [esp + 0x1c], ebx */
   5351     RECOMP_ICALL(0x470880E0u); /* 0x470957DF: call 0x470880e0 */ /* not lifted */
   5352     RECOMP_FLAGS_IN();
   5353     eax = MEM32(esp + 0x24); /* 0x470957E4: mov eax, dword ptr [esp + 0x24] */
   5354     ebp = MEM32(0x470AC4AC); /* 0x470957E8: mov ebp, dword ptr [0x470ac4ac] */
   5355     PUSH32(esp, eax); /* 0x470957EE: push eax */
   5356     MEM32(esp + 0x20) = esi; /* 0x470957EF: mov dword ptr [esp + 0x20], esi */
   5357     RECOMP_ICALL(ebp); /* 0x470957F3: call ebp */
   5358     RECOMP_FLAGS_IN();
   5359     ecx = MEM32(esp + 0x28); /* 0x470957F5: mov ecx, dword ptr [esp + 0x28] */
   5360     PUSH32(esp, ecx); /* 0x470957F9: push ecx */
   5361     MEM32(ebx + 0x4) = eax; /* 0x470957FA: mov dword ptr [ebx + 4], eax */
   5362     RECOMP_ICALL(ebp); /* 0x470957FD: call ebp */
   5363     RECOMP_FLAGS_IN();
   5364     edx = MEM32(esp + 0x2C); /* 0x470957FF: mov edx, dword ptr [esp + 0x2c] */
   5365     PUSH32(esp, edx); /* 0x47095803: push edx */
   5366     MEM32(ebx + 0x8) = eax; /* 0x47095804: mov dword ptr [ebx + 8], eax */
   5367     RECOMP_ICALL(ebp); /* 0x47095807: call ebp */
   5368     RECOMP_FLAGS_IN();
   5369     PUSH32(esp, esi); /* 0x47095809: push esi */
   5370     MEM32(ebx + 0xC) = eax; /* 0x4709580A: mov dword ptr [ebx + 0xc], eax */
   5371     RECOMP_ICALL(ebp); /* 0x4709580D: call ebp */
   5372     RECOMP_FLAGS_IN();
   5373     PUSH32(esp, esi); /* 0x4709580F: push esi */
   5374     MEM32(ebx + 0x10) = eax; /* 0x47095810: mov dword ptr [ebx + 0x10], eax */
   5375     RECOMP_ICALL(ebp); /* 0x47095813: call ebp */
   5376     RECOMP_FLAGS_IN();
   5377     MEM32(ebx + 0x14) = eax; /* 0x47095815: mov dword ptr [ebx + 0x14], eax */
   5378     MEM32(ebx + 0x24) = esi; /* 0x47095818: mov dword ptr [ebx + 0x24], esi */
   5379     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5380     eax = 0; /* 0x4709581B: xor eax, eax */
   5381     _cf = 0;
   5382     _flag_k = FK_TEST;
   5383     esi = ebx + 0x28; /* 0x4709581D: lea esi, [ebx + 0x28] */
   5384     edi = esi; /* 0x47095820: mov edi, esi */
   5385     ecx = 0x4Fu; /* 0x47095822: mov ecx, 0x4f */
   5386     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47095827: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   5387     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x47095829: stosw word ptr es:[edi], ax */
   5388     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5389     ecx = ecx | 0xFFFFFFFFu; /* 0x4709582B: or ecx, 0xffffffff */
   5390     _cf = 0;
   5391     _flag_k = FK_TEST;
   5392     MEM8(edi) = LO8(eax); edi += _df; /* 0x4709582E: stosb byte ptr es:[edi], al */
   5393     edi = MEM32(esp + 0x30); /* 0x4709582F: mov edi, dword ptr [esp + 0x30] */
   5394     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5395     eax = 0; /* 0x47095833: xor eax, eax */
   5396     _cf = 0;
   5397     _flag_k = FK_TEST;
   5398     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47095835: repne scasb al, byte ptr es:[edi] */
   5399     edi = MEM32(esp + 0x34); /* 0x47095837: mov edi, dword ptr [esp + 0x34] */
   5400     ecx = ~ecx; /* 0x4709583B: not ecx */
   5401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5402     ecx = ecx - 1; /* 0x4709583D: dec ecx */
   5403     _flag_k = FK_DEC;
   5404     edx = ecx; /* 0x4709583E: mov edx, ecx */
   5405     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5406     ecx = ecx | 0xFFFFFFFFu; /* 0x47095840: or ecx, 0xffffffff */
   5407     _cf = 0;
   5408     _flag_k = FK_TEST;
   5409     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5410     edx = edx + 1; /* 0x47095843: inc edx */
   5411     _flag_k = FK_INC;
   5412     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47095844: repne scasb al, byte ptr es:[edi] */
   5413     ecx = ~ecx; /* 0x47095846: not ecx */
   5414     MEM32(esp + 0x24) = ecx; /* 0x47095848: mov dword ptr [esp + 0x24], ecx */
   5415     eax = esi + edx + 0x1; /* 0x4709584C: lea eax, [esi + edx + 1] */
   5416     MEM32(ebx + 0x168) = esi; /* 0x47095850: mov dword ptr [ebx + 0x168], esi */
   5417     esi = MEM32(esp + 0x30); /* 0x47095856: mov esi, dword ptr [esp + 0x30] */
   5418     MEM32(ebx + 0x16C) = eax; /* 0x4709585A: mov dword ptr [ebx + 0x16c], eax */
   5419     MEM8(eax + (-0x1)) = (uint8_t)(0x3Au); /* 0x47095860: mov byte ptr [eax - 1], 0x3a */
   5420     edi = MEM32(ebx + 0x168); /* 0x47095864: mov edi, dword ptr [ebx + 0x168] */
   5421     ecx = edx; /* 0x4709586A: mov ecx, edx */
   5422     eax = ecx; /* 0x4709586C: mov eax, ecx */
   5423     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4709586E: shr ecx, 2 */
   5424     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5425     ecx = ecx >> 2u; /* 0x4709586E: shr ecx, 2 */
   5426     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47095871: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5427     ecx = eax; /* 0x47095873: mov ecx, eax */
   5428     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5429     ecx = ecx & 3; /* 0x47095875: and ecx, 3 */
   5430     _cf = 0;
   5431     _flag_k = FK_TEST;
   5432     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47095878: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5433     ecx = MEM32(esp + 0x24); /* 0x4709587A: mov ecx, dword ptr [esp + 0x24] */
   5434     edi = MEM32(ebx + 0x16C); /* 0x4709587E: mov edi, dword ptr [ebx + 0x16c] */
   5435     esi = MEM32(esp + 0x34); /* 0x47095884: mov esi, dword ptr [esp + 0x34] */
   5436     eax = ecx; /* 0x47095888: mov eax, ecx */
   5437     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4709588A: shr ecx, 2 */
   5438     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5439     ecx = ecx >> 2u; /* 0x4709588A: shr ecx, 2 */
   5440     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4709588D: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5441     ecx = eax; /* 0x4709588F: mov ecx, eax */
   5442     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5443     ecx = ecx & 3; /* 0x47095891: and ecx, 3 */
   5444     _cf = 0;
   5445     _flag_k = FK_TEST;
   5446     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47095894: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5447     ecx = eax; /* 0x47095896: mov ecx, eax */
   5448     edx = ecx + edx + 0x29; /* 0x47095898: lea edx, [ecx + edx + 0x29] */
   5449     PUSH32(esp, edx); /* 0x4709589C: push edx */
   5450     RECOMP_ICALL(ebp); /* 0x4709589D: call ebp */
   5451     RECOMP_FLAGS_IN();
   5452     MEM32(ebx) = eax; /* 0x4709589F: mov dword ptr [ebx], eax */
   5453     esi = MEM32(esp + 0x38); /* 0x470958A1: mov esi, dword ptr [esp + 0x38] */
   5454     PUSH32(esp, 2); /* 0x470958A5: push 2 */
   5455     ecx = esi; /* 0x470958A7: mov ecx, esi */
   5456     RECOMP_ICALL(0x47088190u); /* 0x470958A9: call 0x47088190 */ /* not lifted */
   5457     RECOMP_FLAGS_IN();
   5458     /* cmp eax, 1 */ /* 0x470958AE: cmp eax, 1 */
   5459     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5461     _flag_k = FK_CMP;
   5462     MEM32(ebx + 0x18) = eax; /* 0x470958B1: mov dword ptr [ebx + 0x18], eax */
   5463     if (CMP_NE(_flag_a, _flag_b)) goto L_470958D1; /* 0x470958B4: jne 0x470958d1 */
   5464 L_470958B6:
   5465     ecx = esi; /* 0x470958B6: mov ecx, esi */
   5466     RECOMP_ICALL(0x470881B0u); /* 0x470958B8: call 0x470881b0 */ /* not lifted */
   5467     RECOMP_FLAGS_IN();
   5468     eax = MEM32(eax + 0x4); /* 0x470958BD: mov eax, dword ptr [eax + 4] */
   5469     ecx = esi; /* 0x470958C0: mov ecx, esi */
   5470     MEM32(ebx + 0x20) = eax; /* 0x470958C2: mov dword ptr [ebx + 0x20], eax */
   5471     RECOMP_ICALL(0x470881B0u); /* 0x470958C5: call 0x470881b0 */ /* not lifted */
   5472     RECOMP_FLAGS_IN();
   5473     ecx = MEM32(eax); /* 0x470958CA: mov ecx, dword ptr [eax] */
   5474     MEM32(ebx + 0x1C) = ecx; /* 0x470958CC: mov dword ptr [ebx + 0x1c], ecx */
   5475     goto L_470958D9; /* 0x470958CF: jmp 0x470958d9 */
   5476 L_470958D1:
   5477     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5478     eax = 0; /* 0x470958D1: xor eax, eax */
   5479     _cf = 0;
   5480     _flag_k = FK_TEST;
   5481     MEM32(ebx + 0x20) = eax; /* 0x470958D3: mov dword ptr [ebx + 0x20], eax */
   5482     MEM32(ebx + 0x1C) = eax; /* 0x470958D6: mov dword ptr [ebx + 0x1c], eax */
   5483 L_470958D9:
   5484     ecx = MEM32(esp + 0x14); /* 0x470958D9: mov ecx, dword ptr [esp + 0x14] */
   5485     edi = POP32_VAL(esp); /* 0x470958DD: pop edi */
   5486     esi = POP32_VAL(esp); /* 0x470958DE: pop esi */
   5487     ebp = POP32_VAL(esp); /* 0x470958DF: pop ebp */
   5488     eax = ebx; /* 0x470958E0: mov eax, ebx */
   5489     ebx = POP32_VAL(esp); /* 0x470958E2: pop ebx */
   5490     MEM32(FS_BASE + (0)) = ecx; /* 0x470958E3: mov dword ptr fs:[0], ecx */
   5491     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5492     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5493     esp = esp + 0x10u; /* 0x470958EA: add esp, 0x10 */
   5494     _flag_k = FK_ADD;
   5495     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x470958ED: ret 0x18 */
   5496     RECOMP_REGS_OUT();
   5497 }
   5498 
   5499 void sub_470958F0(void) {
   5500     int _fpu_cmp = 0;
   5501     uint32_t _cf = 0;
   5502     int _df = 1;
   5503     uint32_t _flag_k = FK_NONE;
   5504     uint32_t _flag_a = 0, _flag_b = 0;
   5505     uint32_t _itail_tgt = 0;
   5506     RECOMP_REGS_LOCALS
   5507     RECOMP_ENTER(0x470958F0u);
   5508 
   5509 L_470958F0:
   5510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5512     esp = esp - 8; /* 0x470958F0: sub esp, 8 */
   5513     _flag_k = FK_CMP;
   5514     PUSH32(esp, ebx); /* 0x470958F3: push ebx */
   5515     PUSH32(esp, esi); /* 0x470958F4: push esi */
   5516     esi = ecx; /* 0x470958F5: mov esi, ecx */
   5517     ecx = MEM32(esi + 0x1C); /* 0x470958F7: mov ecx, dword ptr [esi + 0x1c] */
   5518     edx = MEM32(esi + 0x20); /* 0x470958FA: mov edx, dword ptr [esi + 0x20] */
   5519     eax = esi + 0x28; /* 0x470958FD: lea eax, [esi + 0x28] */
   5520     MEM32(esp + 0x8) = ecx; /* 0x47095900: mov dword ptr [esp + 8], ecx */
   5521     PUSH32(esp, edi); /* 0x47095904: push edi */
   5522     ecx = esp + 0xC; /* 0x47095905: lea ecx, [esp + 0xc] */
   5523     MEM32(esi + 0x168) = eax; /* 0x47095909: mov dword ptr [esi + 0x168], eax */
   5524     MEM32(esp + 0x10) = edx; /* 0x4709590F: mov dword ptr [esp + 0x10], edx */
   5525     RECOMP_ICALL(0x470543C0u); /* 0x47095913: call 0x470543c0 */ /* not lifted */
   5526     RECOMP_FLAGS_IN();
   5527     ebx = MEM32(esi + 0x18); /* 0x47095918: mov ebx, dword ptr [esi + 0x18] */
   5528     eax = MEM32(esi + 0x24); /* 0x4709591B: mov eax, dword ptr [esi + 0x24] */
   5529     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5530     edx = 0; /* 0x4709591E: xor edx, edx */
   5531     _cf = 0;
   5532     _flag_k = FK_TEST;
   5533     /* cmp ebx, 1 */ /* 0x47095920: cmp ebx, 1 */
   5534     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   5535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5536     _flag_k = FK_CMP;
   5537     SET_LO8(edx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x47095923: setne dl */
   5538     PUSH32(esp, eax); /* 0x47095926: push eax */
   5539     ecx = esp + 0x10; /* 0x47095927: lea ecx, [esp + 0x10] */
   5540     PUSH32(esp, ecx); /* 0x4709592B: push ecx */
   5541     ecx = esi + 0x170; /* 0x4709592C: lea ecx, [esi + 0x170] */
   5542     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5543     edx = edx - 1; /* 0x47095932: dec edx */
   5544     _flag_k = FK_DEC;
   5545     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2);
   5546     edx = edx & 2; /* 0x47095933: and edx, 2 */
   5547     _cf = 0;
   5548     _flag_k = FK_TEST;
   5549     PUSH32(esp, edx); /* 0x47095936: push edx */
   5550     RECOMP_ICALL(0x47088140u); /* 0x47095937: call 0x47088140 */ /* not lifted */
   5551     RECOMP_FLAGS_IN();
   5552     edx = MEM32(esi + 0x168); /* 0x4709593C: mov edx, dword ptr [esi + 0x168] */
   5553     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5554     ecx = ecx | 0xFFFFFFFFu; /* 0x47095942: or ecx, 0xffffffff */
   5555     _cf = 0;
   5556     _flag_k = FK_TEST;
   5557     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5558     eax = 0; /* 0x47095945: xor eax, eax */
   5559     _cf = 0;
   5560     _flag_k = FK_TEST;
   5561     edi = edx; /* 0x47095947: mov edi, edx */
   5562     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47095949: repne scasb al, byte ptr es:[edi] */
   5563     ecx = ~ecx; /* 0x4709594B: not ecx */
   5564     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5565     ecx = ecx - 1; /* 0x4709594D: dec ecx */
   5566     _flag_k = FK_DEC;
   5567     /* cmp ecx, 0x28u */ /* 0x4709594E: cmp ecx, 0x28 */
   5568     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u);
   5569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5570     _flag_k = FK_CMP;
   5571     if (CMP_L(_flag_a, _flag_b)) goto L_47095969; /* 0x47095951: jl 0x47095969 */
   5572 L_47095953:
   5573     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095953: call dword ptr [0x470ac3c8] */
   5574     RECOMP_FLAGS_IN();
   5575     edi = POP32_VAL(esp); /* 0x47095959: pop edi */
   5576     esi = POP32_VAL(esp); /* 0x4709595A: pop esi */
   5577     MEM32(eax) = 0x26u; /* 0x4709595B: mov dword ptr [eax], 0x26 */
   5578     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5579     eax = eax | 0xFFFFFFFFu; /* 0x47095961: or eax, 0xffffffff */
   5580     _cf = 0;
   5581     _flag_k = FK_TEST;
   5582     ebx = POP32_VAL(esp); /* 0x47095964: pop ebx */
   5583     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5584     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5585     esp = esp + 8; /* 0x47095965: add esp, 8 */
   5586     _flag_k = FK_ADD;
   5587     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095968: ret  */
   5588 L_47095969:
   5589     edi = edx + ecx + 0x2; /* 0x47095969: lea edi, [edx + ecx + 2] */
   5590     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5591     ecx = ecx | 0xFFFFFFFFu; /* 0x4709596D: or ecx, 0xffffffff */
   5592     _cf = 0;
   5593     _flag_k = FK_TEST;
   5594     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5595     eax = 0; /* 0x47095970: xor eax, eax */
   5596     _cf = 0;
   5597     _flag_k = FK_TEST;
   5598     MEM32(esi + 0x16C) = edi; /* 0x47095972: mov dword ptr [esi + 0x16c], edi */
   5599     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47095978: repne scasb al, byte ptr es:[edi] */
   5600     ecx = ~ecx; /* 0x4709597A: not ecx */
   5601     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5602     ecx = ecx - 1; /* 0x4709597C: dec ecx */
   5603     _flag_k = FK_DEC;
   5604     ebx = ecx; /* 0x4709597D: mov ebx, ecx */
   5605     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5606     ecx = ecx | 0xFFFFFFFFu; /* 0x4709597F: or ecx, 0xffffffff */
   5607     _cf = 0;
   5608     _flag_k = FK_TEST;
   5609     edi = edx; /* 0x47095982: mov edi, edx */
   5610     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47095984: repne scasb al, byte ptr es:[edi] */
   5611     eax = MEM32(esi); /* 0x47095986: mov eax, dword ptr [esi] */
   5612     ecx = ~ecx; /* 0x47095988: not ecx */
   5613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5614     ecx = ecx - 1; /* 0x4709598A: dec ecx */
   5615     _flag_k = FK_DEC;
   5616     PUSH32(esp, eax); /* 0x4709598B: push eax */
   5617     edi = ebx + ecx + 0x2B; /* 0x4709598C: lea edi, [ebx + ecx + 0x2b] */
   5618     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47095990: call dword ptr [0x470ac4b0] */
   5619     RECOMP_FLAGS_IN();
   5620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5622     eax = eax - edi; /* 0x47095996: sub eax, edi */
   5623     _flag_k = FK_CMP;
   5624     edi = POP32_VAL(esp); /* 0x47095998: pop edi */
   5625     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5626     _cf = (eax) != 0;
   5627     eax = (uint32_t)(-(int32_t)eax); /* 0x47095999: neg eax */
   5628     _flag_k = FK_CMP;
   5629     esi = POP32_VAL(esp); /* 0x4709599B: pop esi */
   5630     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4709599C: sbb eax, eax */
   5631       eax = _sc ? 0xFFFFFFFFu : 0;
   5632       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5633       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5634     ebx = POP32_VAL(esp); /* 0x4709599E: pop ebx */
   5635     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5636     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5637     esp = esp + 8; /* 0x4709599F: add esp, 8 */
   5638     _flag_k = FK_ADD;
   5639     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470959A2: ret  */
   5640     RECOMP_REGS_OUT();
   5641 }
   5642 
   5643 void sub_470959B0(void) {
   5644     int _fpu_cmp = 0;
   5645     uint32_t _cf = 0;
   5646     int _df = 1;
   5647     uint32_t _flag_k = FK_NONE;
   5648     uint32_t _flag_a = 0, _flag_b = 0;
   5649     uint32_t _itail_tgt = 0;
   5650     RECOMP_REGS_LOCALS
   5651     RECOMP_ENTER(0x470959B0u);
   5652 
   5653 L_470959B0:
   5654     PUSH32(esp, ebx); /* 0x470959B0: push ebx */
   5655     ebx = MEM32(0x470AC150); /* 0x470959B1: mov ebx, dword ptr [0x470ac150] */
   5656     PUSH32(esp, ebp); /* 0x470959B7: push ebp */
   5657     PUSH32(esp, esi); /* 0x470959B8: push esi */
   5658     PUSH32(esp, edi); /* 0x470959B9: push edi */
   5659     ebp = ecx; /* 0x470959BA: mov ebp, ecx */
   5660     RECOMP_ICALL(ebx); /* 0x470959BC: call ebx */
   5661     RECOMP_FLAGS_IN();
   5662     edi = eax; /* 0x470959BE: mov edi, eax */
   5663     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470959C0: call dword ptr [0x470ac3c8] */
   5664     RECOMP_FLAGS_IN();
   5665     eax = MEM32(eax); /* 0x470959C6: mov eax, dword ptr [eax] */
   5666     /* test eax, eax */ /* 0x470959C8: test eax, eax */
   5667     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5668     _cf = 0;
   5669     _flag_k = FK_TEST;
   5670     if (TEST_Z(_flag_a, _flag_b)) goto L_470959CE; /* 0x470959CA: je 0x470959ce */
   5671 L_470959CC:
   5672     edi = eax; /* 0x470959CC: mov edi, eax */
   5673 L_470959CE:
   5674     RECOMP_ICALL(0x47039020u); /* 0x470959CE: call 0x47039020 */ /* not lifted */
   5675     RECOMP_FLAGS_IN();
   5676     esi = eax; /* 0x470959D3: mov esi, eax */
   5677     ecx = esi; /* 0x470959D5: mov ecx, esi */
   5678     RECOMP_ICALL(0x4703B210u); /* 0x470959D7: call 0x4703b210 */ /* not lifted */
   5679     RECOMP_FLAGS_IN();
   5680     PUSH32(esp, eax); /* 0x470959DC: push eax */
   5681     ecx = esi; /* 0x470959DD: mov ecx, esi */
   5682     RECOMP_ICALL(0x4703B240u); /* 0x470959DF: call 0x4703b240 */ /* not lifted */
   5683     RECOMP_FLAGS_IN();
   5684     PUSH32(esp, eax); /* 0x470959E4: push eax */
   5685     ecx = esi; /* 0x470959E5: mov ecx, esi */
   5686     RECOMP_ICALL(0x4703B080u); /* 0x470959E7: call 0x4703b080 */ /* not lifted */
   5687     RECOMP_FLAGS_IN();
   5688     PUSH32(esp, eax); /* 0x470959EC: push eax */
   5689     PUSH32(esp, edi); /* 0x470959ED: push edi */
   5690     PUSH32(esp, 0); /* 0x470959EE: push 0 */
   5691     PUSH32(esp, 0x5Du); /* 0x470959F0: push 0x5d */
   5692     PUSH32(esp, 0x4710D200u); /* 0x470959F2: push 0x4710d200 */
   5693     ecx = esi; /* 0x470959F7: mov ecx, esi */
   5694     RECOMP_ICALL(0x4703A340u); /* 0x470959F9: call 0x4703a340 */ /* not lifted */
   5695     RECOMP_FLAGS_IN();
   5696     PUSH32(esp, ebp); /* 0x470959FE: push ebp */
   5697     PUSH32(esp, 0x471052CCu); /* 0x470959FF: push 0x471052cc */
   5698     PUSH32(esp, 4); /* 0x47095A04: push 4 */
   5699     PUSH32(esp, esi); /* 0x47095A06: push esi */
   5700     RECOMP_ICALL(0x47039830u); /* 0x47095A07: call 0x47039830 */ /* not lifted */
   5701     RECOMP_FLAGS_IN();
   5702     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5703     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5704     esp = esp + 0x10u; /* 0x47095A0C: add esp, 0x10 */
   5705     _flag_k = FK_ADD;
   5706     RECOMP_ICALL(ebx); /* 0x47095A0F: call ebx */
   5707     RECOMP_FLAGS_IN();
   5708     edi = eax; /* 0x47095A11: mov edi, eax */
   5709     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095A13: call dword ptr [0x470ac3c8] */
   5710     RECOMP_FLAGS_IN();
   5711     eax = MEM32(eax); /* 0x47095A19: mov eax, dword ptr [eax] */
   5712     /* test eax, eax */ /* 0x47095A1B: test eax, eax */
   5713     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5714     _cf = 0;
   5715     _flag_k = FK_TEST;
   5716     if (TEST_Z(_flag_a, _flag_b)) goto L_47095A21; /* 0x47095A1D: je 0x47095a21 */
   5717 L_47095A1F:
   5718     edi = eax; /* 0x47095A1F: mov edi, eax */
   5719 L_47095A21:
   5720     RECOMP_ICALL(0x47039020u); /* 0x47095A21: call 0x47039020 */ /* not lifted */
   5721     RECOMP_FLAGS_IN();
   5722     esi = eax; /* 0x47095A26: mov esi, eax */
   5723     ecx = esi; /* 0x47095A28: mov ecx, esi */
   5724     RECOMP_ICALL(0x4703B210u); /* 0x47095A2A: call 0x4703b210 */ /* not lifted */
   5725     RECOMP_FLAGS_IN();
   5726     PUSH32(esp, eax); /* 0x47095A2F: push eax */
   5727     ecx = esi; /* 0x47095A30: mov ecx, esi */
   5728     RECOMP_ICALL(0x4703B240u); /* 0x47095A32: call 0x4703b240 */ /* not lifted */
   5729     RECOMP_FLAGS_IN();
   5730     PUSH32(esp, eax); /* 0x47095A37: push eax */
   5731     ecx = esi; /* 0x47095A38: mov ecx, esi */
   5732     RECOMP_ICALL(0x4703B080u); /* 0x47095A3A: call 0x4703b080 */ /* not lifted */
   5733     RECOMP_FLAGS_IN();
   5734     PUSH32(esp, eax); /* 0x47095A3F: push eax */
   5735     PUSH32(esp, edi); /* 0x47095A40: push edi */
   5736     PUSH32(esp, 0); /* 0x47095A41: push 0 */
   5737     PUSH32(esp, 0x5Fu); /* 0x47095A43: push 0x5f */
   5738     PUSH32(esp, 0x4710D200u); /* 0x47095A45: push 0x4710d200 */
   5739     ecx = esi; /* 0x47095A4A: mov ecx, esi */
   5740     RECOMP_ICALL(0x4703A340u); /* 0x47095A4C: call 0x4703a340 */ /* not lifted */
   5741     RECOMP_FLAGS_IN();
   5742     eax = MEM32(ebp); /* 0x47095A51: mov eax, dword ptr [ebp] */
   5743     edi = MEM32(ebp + 0x16C); /* 0x47095A54: mov edi, dword ptr [ebp + 0x16c] */
   5744     ebx = MEM32(ebp + 0x168); /* 0x47095A5A: mov ebx, dword ptr [ebp + 0x168] */
   5745     PUSH32(esp, eax); /* 0x47095A60: push eax */
   5746     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47095A61: call dword ptr [0x470ac4b0] */
   5747     RECOMP_FLAGS_IN();
   5748     PUSH32(esp, edi); /* 0x47095A67: push edi */
   5749     PUSH32(esp, ebx); /* 0x47095A68: push ebx */
   5750     PUSH32(esp, eax); /* 0x47095A69: push eax */
   5751     PUSH32(esp, 0x4710D1CCu); /* 0x47095A6A: push 0x4710d1cc */
   5752     PUSH32(esp, 4); /* 0x47095A6F: push 4 */
   5753     PUSH32(esp, esi); /* 0x47095A71: push esi */
   5754     RECOMP_ICALL(0x47039830u); /* 0x47095A72: call 0x47039830 */ /* not lifted */
   5755     RECOMP_FLAGS_IN();
   5756     ebx = MEM32(0x470AC150); /* 0x47095A77: mov ebx, dword ptr [0x470ac150] */
   5757     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   5758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5759     esp = esp + 0x18u; /* 0x47095A7D: add esp, 0x18 */
   5760     _flag_k = FK_ADD;
   5761     RECOMP_ICALL(ebx); /* 0x47095A80: call ebx */
   5762     RECOMP_FLAGS_IN();
   5763     esi = eax; /* 0x47095A82: mov esi, eax */
   5764     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095A84: call dword ptr [0x470ac3c8] */
   5765     RECOMP_FLAGS_IN();
   5766     eax = MEM32(eax); /* 0x47095A8A: mov eax, dword ptr [eax] */
   5767     /* test eax, eax */ /* 0x47095A8C: test eax, eax */
   5768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5769     _cf = 0;
   5770     _flag_k = FK_TEST;
   5771     edi = esi; /* 0x47095A8E: mov edi, esi */
   5772     if (TEST_Z(_flag_a, _flag_b)) goto L_47095A94; /* 0x47095A90: je 0x47095a94 */
   5773 L_47095A92:
   5774     edi = eax; /* 0x47095A92: mov edi, eax */
   5775 L_47095A94:
   5776     RECOMP_ICALL(0x47039020u); /* 0x47095A94: call 0x47039020 */ /* not lifted */
   5777     RECOMP_FLAGS_IN();
   5778     esi = eax; /* 0x47095A99: mov esi, eax */
   5779     ecx = esi; /* 0x47095A9B: mov ecx, esi */
   5780     RECOMP_ICALL(0x4703B210u); /* 0x47095A9D: call 0x4703b210 */ /* not lifted */
   5781     RECOMP_FLAGS_IN();
   5782     PUSH32(esp, eax); /* 0x47095AA2: push eax */
   5783     ecx = esi; /* 0x47095AA3: mov ecx, esi */
   5784     RECOMP_ICALL(0x4703B240u); /* 0x47095AA5: call 0x4703b240 */ /* not lifted */
   5785     RECOMP_FLAGS_IN();
   5786     PUSH32(esp, eax); /* 0x47095AAA: push eax */
   5787     ecx = esi; /* 0x47095AAB: mov ecx, esi */
   5788     RECOMP_ICALL(0x4703B080u); /* 0x47095AAD: call 0x4703b080 */ /* not lifted */
   5789     RECOMP_FLAGS_IN();
   5790     PUSH32(esp, eax); /* 0x47095AB2: push eax */
   5791     PUSH32(esp, edi); /* 0x47095AB3: push edi */
   5792     PUSH32(esp, 0); /* 0x47095AB4: push 0 */
   5793     PUSH32(esp, 0x60u); /* 0x47095AB6: push 0x60 */
   5794     PUSH32(esp, 0x4710D200u); /* 0x47095AB8: push 0x4710d200 */
   5795     ecx = esi; /* 0x47095ABD: mov ecx, esi */
   5796     RECOMP_ICALL(0x4703A340u); /* 0x47095ABF: call 0x4703a340 */ /* not lifted */
   5797     RECOMP_FLAGS_IN();
   5798     PUSH32(esp, 0x4710892Cu); /* 0x47095AC4: push 0x4710892c */
   5799     PUSH32(esp, 4); /* 0x47095AC9: push 4 */
   5800     PUSH32(esp, esi); /* 0x47095ACB: push esi */
   5801     RECOMP_ICALL(0x47039830u); /* 0x47095ACC: call 0x47039830 */ /* not lifted */
   5802     RECOMP_FLAGS_IN();
   5803     ecx = MEM32(ebp + 0x4); /* 0x47095AD1: mov ecx, dword ptr [ebp + 4] */
   5804     esi = MEM32(0x470AC4B0); /* 0x47095AD4: mov esi, dword ptr [0x470ac4b0] */
   5805     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5806     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5807     esp = esp + 0xCu; /* 0x47095ADA: add esp, 0xc */
   5808     _flag_k = FK_ADD;
   5809     PUSH32(esp, ecx); /* 0x47095ADD: push ecx */
   5810     RECOMP_ICALL(esi); /* 0x47095ADE: call esi */
   5811     RECOMP_FLAGS_IN();
   5812     /* test eax, eax */ /* 0x47095AE0: test eax, eax */
   5813     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5814     _cf = 0;
   5815     _flag_k = FK_TEST;
   5816     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095B30; /* 0x47095AE2: jne 0x47095b30 */
   5817 L_47095AE4:
   5818     RECOMP_ICALL(ebx); /* 0x47095AE4: call ebx */
   5819     RECOMP_FLAGS_IN();
   5820     edi = eax; /* 0x47095AE6: mov edi, eax */
   5821     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095AE8: call dword ptr [0x470ac3c8] */
   5822     RECOMP_FLAGS_IN();
   5823     eax = MEM32(eax); /* 0x47095AEE: mov eax, dword ptr [eax] */
   5824     /* test eax, eax */ /* 0x47095AF0: test eax, eax */
   5825     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5826     _cf = 0;
   5827     _flag_k = FK_TEST;
   5828     if (TEST_Z(_flag_a, _flag_b)) goto L_47095AF6; /* 0x47095AF2: je 0x47095af6 */
   5829 L_47095AF4:
   5830     edi = eax; /* 0x47095AF4: mov edi, eax */
   5831 L_47095AF6:
   5832     RECOMP_ICALL(0x47039020u); /* 0x47095AF6: call 0x47039020 */ /* not lifted */
   5833     RECOMP_FLAGS_IN();
   5834     esi = eax; /* 0x47095AFB: mov esi, eax */
   5835     ecx = esi; /* 0x47095AFD: mov ecx, esi */
   5836     RECOMP_ICALL(0x4703B210u); /* 0x47095AFF: call 0x4703b210 */ /* not lifted */
   5837     RECOMP_FLAGS_IN();
   5838     PUSH32(esp, eax); /* 0x47095B04: push eax */
   5839     ecx = esi; /* 0x47095B05: mov ecx, esi */
   5840     RECOMP_ICALL(0x4703B240u); /* 0x47095B07: call 0x4703b240 */ /* not lifted */
   5841     RECOMP_FLAGS_IN();
   5842     PUSH32(esp, eax); /* 0x47095B0C: push eax */
   5843     ecx = esi; /* 0x47095B0D: mov ecx, esi */
   5844     RECOMP_ICALL(0x4703B080u); /* 0x47095B0F: call 0x4703b080 */ /* not lifted */
   5845     RECOMP_FLAGS_IN();
   5846     PUSH32(esp, eax); /* 0x47095B14: push eax */
   5847     PUSH32(esp, edi); /* 0x47095B15: push edi */
   5848     PUSH32(esp, 0); /* 0x47095B16: push 0 */
   5849     PUSH32(esp, 0x63u); /* 0x47095B18: push 0x63 */
   5850     PUSH32(esp, 0x4710D200u); /* 0x47095B1A: push 0x4710d200 */
   5851     ecx = esi; /* 0x47095B1F: mov ecx, esi */
   5852     RECOMP_ICALL(0x4703A340u); /* 0x47095B21: call 0x4703a340 */ /* not lifted */
   5853     RECOMP_FLAGS_IN();
   5854     PUSH32(esp, 0x4710D1C4u); /* 0x47095B26: push 0x4710d1c4 */
   5855     goto L_47095BCA; /* 0x47095B2B: jmp 0x47095bca */
   5856 L_47095B30:
   5857     edx = MEM32(ebp + 0x8); /* 0x47095B30: mov edx, dword ptr [ebp + 8] */
   5858     PUSH32(esp, edx); /* 0x47095B33: push edx */
   5859     RECOMP_ICALL(esi); /* 0x47095B34: call esi */
   5860     RECOMP_FLAGS_IN();
   5861     /* test eax, eax */ /* 0x47095B36: test eax, eax */
   5862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5863     _cf = 0;
   5864     _flag_k = FK_TEST;
   5865     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095B83; /* 0x47095B38: jne 0x47095b83 */
   5866 L_47095B3A:
   5867     RECOMP_ICALL(ebx); /* 0x47095B3A: call ebx */
   5868     RECOMP_FLAGS_IN();
   5869     edi = eax; /* 0x47095B3C: mov edi, eax */
   5870     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095B3E: call dword ptr [0x470ac3c8] */
   5871     RECOMP_FLAGS_IN();
   5872     eax = MEM32(eax); /* 0x47095B44: mov eax, dword ptr [eax] */
   5873     /* test eax, eax */ /* 0x47095B46: test eax, eax */
   5874     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5875     _cf = 0;
   5876     _flag_k = FK_TEST;
   5877     if (TEST_Z(_flag_a, _flag_b)) goto L_47095B4C; /* 0x47095B48: je 0x47095b4c */
   5878 L_47095B4A:
   5879     edi = eax; /* 0x47095B4A: mov edi, eax */
   5880 L_47095B4C:
   5881     RECOMP_ICALL(0x47039020u); /* 0x47095B4C: call 0x47039020 */ /* not lifted */
   5882     RECOMP_FLAGS_IN();
   5883     esi = eax; /* 0x47095B51: mov esi, eax */
   5884     ecx = esi; /* 0x47095B53: mov ecx, esi */
   5885     RECOMP_ICALL(0x4703B210u); /* 0x47095B55: call 0x4703b210 */ /* not lifted */
   5886     RECOMP_FLAGS_IN();
   5887     PUSH32(esp, eax); /* 0x47095B5A: push eax */
   5888     ecx = esi; /* 0x47095B5B: mov ecx, esi */
   5889     RECOMP_ICALL(0x4703B240u); /* 0x47095B5D: call 0x4703b240 */ /* not lifted */
   5890     RECOMP_FLAGS_IN();
   5891     PUSH32(esp, eax); /* 0x47095B62: push eax */
   5892     ecx = esi; /* 0x47095B63: mov ecx, esi */
   5893     RECOMP_ICALL(0x4703B080u); /* 0x47095B65: call 0x4703b080 */ /* not lifted */
   5894     RECOMP_FLAGS_IN();
   5895     PUSH32(esp, eax); /* 0x47095B6A: push eax */
   5896     PUSH32(esp, edi); /* 0x47095B6B: push edi */
   5897     PUSH32(esp, 0); /* 0x47095B6C: push 0 */
   5898     PUSH32(esp, 0x67u); /* 0x47095B6E: push 0x67 */
   5899     PUSH32(esp, 0x4710D200u); /* 0x47095B70: push 0x4710d200 */
   5900     ecx = esi; /* 0x47095B75: mov ecx, esi */
   5901     RECOMP_ICALL(0x4703A340u); /* 0x47095B77: call 0x4703a340 */ /* not lifted */
   5902     RECOMP_FLAGS_IN();
   5903     PUSH32(esp, 0x4710D1BCu); /* 0x47095B7C: push 0x4710d1bc */
   5904     goto L_47095BCA; /* 0x47095B81: jmp 0x47095bca */
   5905 L_47095B83:
   5906     RECOMP_ICALL(ebx); /* 0x47095B83: call ebx */
   5907     RECOMP_FLAGS_IN();
   5908     edi = eax; /* 0x47095B85: mov edi, eax */
   5909     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095B87: call dword ptr [0x470ac3c8] */
   5910     RECOMP_FLAGS_IN();
   5911     eax = MEM32(eax); /* 0x47095B8D: mov eax, dword ptr [eax] */
   5912     /* test eax, eax */ /* 0x47095B8F: test eax, eax */
   5913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5914     _cf = 0;
   5915     _flag_k = FK_TEST;
   5916     if (TEST_Z(_flag_a, _flag_b)) goto L_47095B95; /* 0x47095B91: je 0x47095b95 */
   5917 L_47095B93:
   5918     edi = eax; /* 0x47095B93: mov edi, eax */
   5919 L_47095B95:
   5920     RECOMP_ICALL(0x47039020u); /* 0x47095B95: call 0x47039020 */ /* not lifted */
   5921     RECOMP_FLAGS_IN();
   5922     esi = eax; /* 0x47095B9A: mov esi, eax */
   5923     ecx = esi; /* 0x47095B9C: mov ecx, esi */
   5924     RECOMP_ICALL(0x4703B210u); /* 0x47095B9E: call 0x4703b210 */ /* not lifted */
   5925     RECOMP_FLAGS_IN();
   5926     PUSH32(esp, eax); /* 0x47095BA3: push eax */
   5927     ecx = esi; /* 0x47095BA4: mov ecx, esi */
   5928     RECOMP_ICALL(0x4703B240u); /* 0x47095BA6: call 0x4703b240 */ /* not lifted */
   5929     RECOMP_FLAGS_IN();
   5930     PUSH32(esp, eax); /* 0x47095BAB: push eax */
   5931     ecx = esi; /* 0x47095BAC: mov ecx, esi */
   5932     RECOMP_ICALL(0x4703B080u); /* 0x47095BAE: call 0x4703b080 */ /* not lifted */
   5933     RECOMP_FLAGS_IN();
   5934     PUSH32(esp, eax); /* 0x47095BB3: push eax */
   5935     PUSH32(esp, edi); /* 0x47095BB4: push edi */
   5936     PUSH32(esp, 0); /* 0x47095BB5: push 0 */
   5937     PUSH32(esp, 0x69u); /* 0x47095BB7: push 0x69 */
   5938     PUSH32(esp, 0x4710D200u); /* 0x47095BB9: push 0x4710d200 */
   5939     ecx = esi; /* 0x47095BBE: mov ecx, esi */
   5940     RECOMP_ICALL(0x4703A340u); /* 0x47095BC0: call 0x4703a340 */ /* not lifted */
   5941     RECOMP_FLAGS_IN();
   5942     PUSH32(esp, 0x4710D1B4u); /* 0x47095BC5: push 0x4710d1b4 */
   5943 L_47095BCA:
   5944     PUSH32(esp, 4); /* 0x47095BCA: push 4 */
   5945     PUSH32(esp, esi); /* 0x47095BCC: push esi */
   5946     RECOMP_ICALL(0x47039830u); /* 0x47095BCD: call 0x47039830 */ /* not lifted */
   5947     RECOMP_FLAGS_IN();
   5948     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5949     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5950     esp = esp + 0xCu; /* 0x47095BD2: add esp, 0xc */
   5951     _flag_k = FK_ADD;
   5952     RECOMP_ICALL(ebx); /* 0x47095BD5: call ebx */
   5953     RECOMP_FLAGS_IN();
   5954     edi = eax; /* 0x47095BD7: mov edi, eax */
   5955     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095BD9: call dword ptr [0x470ac3c8] */
   5956     RECOMP_FLAGS_IN();
   5957     eax = MEM32(eax); /* 0x47095BDF: mov eax, dword ptr [eax] */
   5958     /* test eax, eax */ /* 0x47095BE1: test eax, eax */
   5959     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5960     _cf = 0;
   5961     _flag_k = FK_TEST;
   5962     if (TEST_Z(_flag_a, _flag_b)) goto L_47095BE7; /* 0x47095BE3: je 0x47095be7 */
   5963 L_47095BE5:
   5964     edi = eax; /* 0x47095BE5: mov edi, eax */
   5965 L_47095BE7:
   5966     RECOMP_ICALL(0x47039020u); /* 0x47095BE7: call 0x47039020 */ /* not lifted */
   5967     RECOMP_FLAGS_IN();
   5968     esi = eax; /* 0x47095BEC: mov esi, eax */
   5969     ecx = esi; /* 0x47095BEE: mov ecx, esi */
   5970     RECOMP_ICALL(0x4703B210u); /* 0x47095BF0: call 0x4703b210 */ /* not lifted */
   5971     RECOMP_FLAGS_IN();
   5972     PUSH32(esp, eax); /* 0x47095BF5: push eax */
   5973     ecx = esi; /* 0x47095BF6: mov ecx, esi */
   5974     RECOMP_ICALL(0x4703B240u); /* 0x47095BF8: call 0x4703b240 */ /* not lifted */
   5975     RECOMP_FLAGS_IN();
   5976     PUSH32(esp, eax); /* 0x47095BFD: push eax */
   5977     ecx = esi; /* 0x47095BFE: mov ecx, esi */
   5978     RECOMP_ICALL(0x4703B080u); /* 0x47095C00: call 0x4703b080 */ /* not lifted */
   5979     RECOMP_FLAGS_IN();
   5980     PUSH32(esp, eax); /* 0x47095C05: push eax */
   5981     PUSH32(esp, edi); /* 0x47095C06: push edi */
   5982     PUSH32(esp, 0); /* 0x47095C07: push 0 */
   5983     PUSH32(esp, 0x6Cu); /* 0x47095C09: push 0x6c */
   5984     PUSH32(esp, 0x4710D200u); /* 0x47095C0B: push 0x4710d200 */
   5985     ecx = esi; /* 0x47095C10: mov ecx, esi */
   5986     RECOMP_ICALL(0x4703A340u); /* 0x47095C12: call 0x4703a340 */ /* not lifted */
   5987     RECOMP_FLAGS_IN();
   5988     PUSH32(esp, 0x4710D1A4u); /* 0x47095C17: push 0x4710d1a4 */
   5989     PUSH32(esp, 4); /* 0x47095C1C: push 4 */
   5990     PUSH32(esp, esi); /* 0x47095C1E: push esi */
   5991     RECOMP_ICALL(0x47039830u); /* 0x47095C1F: call 0x47039830 */ /* not lifted */
   5992     RECOMP_FLAGS_IN();
   5993     eax = MEM32(ebp + 0xC); /* 0x47095C24: mov eax, dword ptr [ebp + 0xc] */
   5994     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5996     esp = esp + 0xCu; /* 0x47095C27: add esp, 0xc */
   5997     _flag_k = FK_ADD;
   5998     PUSH32(esp, eax); /* 0x47095C2A: push eax */
   5999     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47095C2B: call dword ptr [0x470ac4b0] */
   6000     RECOMP_FLAGS_IN();
   6001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0);
   6002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6003     eax = eax - 0; /* 0x47095C31: sub eax, 0 */
   6004     _flag_k = FK_CMP;
   6005     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_47095D3B; /* 0x47095C34: je 0x47095d3b */
   6006 L_47095C3A:
   6007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6008     eax = eax - 1; /* 0x47095C3A: dec eax */
   6009     _flag_k = FK_DEC;
   6010     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47095CF2; /* 0x47095C3B: je 0x47095cf2 */
   6011 L_47095C41:
   6012     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6013     eax = eax - 1; /* 0x47095C41: dec eax */
   6014     _flag_k = FK_DEC;
   6015     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47095CA6; /* 0x47095C42: je 0x47095ca6 */
   6016 L_47095C44:
   6017     RECOMP_ICALL(ebx); /* 0x47095C44: call ebx */
   6018     RECOMP_FLAGS_IN();
   6019     edi = eax; /* 0x47095C46: mov edi, eax */
   6020     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095C48: call dword ptr [0x470ac3c8] */
   6021     RECOMP_FLAGS_IN();
   6022     eax = MEM32(eax); /* 0x47095C4E: mov eax, dword ptr [eax] */
   6023     /* test eax, eax */ /* 0x47095C50: test eax, eax */
   6024     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6025     _cf = 0;
   6026     _flag_k = FK_TEST;
   6027     if (TEST_Z(_flag_a, _flag_b)) goto L_47095C56; /* 0x47095C52: je 0x47095c56 */
   6028 L_47095C54:
   6029     edi = eax; /* 0x47095C54: mov edi, eax */
   6030 L_47095C56:
   6031     RECOMP_ICALL(0x47039020u); /* 0x47095C56: call 0x47039020 */ /* not lifted */
   6032     RECOMP_FLAGS_IN();
   6033     esi = eax; /* 0x47095C5B: mov esi, eax */
   6034     ecx = esi; /* 0x47095C5D: mov ecx, esi */
   6035     RECOMP_ICALL(0x4703B210u); /* 0x47095C5F: call 0x4703b210 */ /* not lifted */
   6036     RECOMP_FLAGS_IN();
   6037     PUSH32(esp, eax); /* 0x47095C64: push eax */
   6038     ecx = esi; /* 0x47095C65: mov ecx, esi */
   6039     RECOMP_ICALL(0x4703B240u); /* 0x47095C67: call 0x4703b240 */ /* not lifted */
   6040     RECOMP_FLAGS_IN();
   6041     PUSH32(esp, eax); /* 0x47095C6C: push eax */
   6042     ecx = esi; /* 0x47095C6D: mov ecx, esi */
   6043     RECOMP_ICALL(0x4703B080u); /* 0x47095C6F: call 0x4703b080 */ /* not lifted */
   6044     RECOMP_FLAGS_IN();
   6045     PUSH32(esp, eax); /* 0x47095C74: push eax */
   6046     PUSH32(esp, edi); /* 0x47095C75: push edi */
   6047     PUSH32(esp, 0); /* 0x47095C76: push 0 */
   6048     PUSH32(esp, 0x79u); /* 0x47095C78: push 0x79 */
   6049     PUSH32(esp, 0x4710D200u); /* 0x47095C7A: push 0x4710d200 */
   6050     ecx = esi; /* 0x47095C7F: mov ecx, esi */
   6051     RECOMP_ICALL(0x4703A340u); /* 0x47095C81: call 0x4703a340 */ /* not lifted */
   6052     RECOMP_FLAGS_IN();
   6053     ecx = MEM32(ebp + 0xC); /* 0x47095C86: mov ecx, dword ptr [ebp + 0xc] */
   6054     PUSH32(esp, ecx); /* 0x47095C89: push ecx */
   6055     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47095C8A: call dword ptr [0x470ac4b0] */
   6056     RECOMP_FLAGS_IN();
   6057     PUSH32(esp, eax); /* 0x47095C90: push eax */
   6058     PUSH32(esp, 0x4710D184u); /* 0x47095C91: push 0x4710d184 */
   6059     PUSH32(esp, 4); /* 0x47095C96: push 4 */
   6060     PUSH32(esp, esi); /* 0x47095C98: push esi */
   6061     RECOMP_ICALL(0x47039830u); /* 0x47095C99: call 0x47039830 */ /* not lifted */
   6062     RECOMP_FLAGS_IN();
   6063     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6064     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6065     esp = esp + 0x10u; /* 0x47095C9E: add esp, 0x10 */
   6066     _flag_k = FK_ADD;
   6067     goto L_47095D8D; /* 0x47095CA1: jmp 0x47095d8d */
   6068 L_47095CA6:
   6069     RECOMP_ICALL(ebx); /* 0x47095CA6: call ebx */
   6070     RECOMP_FLAGS_IN();
   6071     edi = eax; /* 0x47095CA8: mov edi, eax */
   6072     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095CAA: call dword ptr [0x470ac3c8] */
   6073     RECOMP_FLAGS_IN();
   6074     eax = MEM32(eax); /* 0x47095CB0: mov eax, dword ptr [eax] */
   6075     /* test eax, eax */ /* 0x47095CB2: test eax, eax */
   6076     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6077     _cf = 0;
   6078     _flag_k = FK_TEST;
   6079     if (TEST_Z(_flag_a, _flag_b)) goto L_47095CB8; /* 0x47095CB4: je 0x47095cb8 */
   6080 L_47095CB6:
   6081     edi = eax; /* 0x47095CB6: mov edi, eax */
   6082 L_47095CB8:
   6083     RECOMP_ICALL(0x47039020u); /* 0x47095CB8: call 0x47039020 */ /* not lifted */
   6084     RECOMP_FLAGS_IN();
   6085     esi = eax; /* 0x47095CBD: mov esi, eax */
   6086     ecx = esi; /* 0x47095CBF: mov ecx, esi */
   6087     RECOMP_ICALL(0x4703B210u); /* 0x47095CC1: call 0x4703b210 */ /* not lifted */
   6088     RECOMP_FLAGS_IN();
   6089     PUSH32(esp, eax); /* 0x47095CC6: push eax */
   6090     ecx = esi; /* 0x47095CC7: mov ecx, esi */
   6091     RECOMP_ICALL(0x4703B240u); /* 0x47095CC9: call 0x4703b240 */ /* not lifted */
   6092     RECOMP_FLAGS_IN();
   6093     PUSH32(esp, eax); /* 0x47095CCE: push eax */
   6094     ecx = esi; /* 0x47095CCF: mov ecx, esi */
   6095     RECOMP_ICALL(0x4703B080u); /* 0x47095CD1: call 0x4703b080 */ /* not lifted */
   6096     RECOMP_FLAGS_IN();
   6097     PUSH32(esp, eax); /* 0x47095CD6: push eax */
   6098     PUSH32(esp, edi); /* 0x47095CD7: push edi */
   6099     PUSH32(esp, 0); /* 0x47095CD8: push 0 */
   6100     PUSH32(esp, 0x76u); /* 0x47095CDA: push 0x76 */
   6101     PUSH32(esp, 0x4710D200u); /* 0x47095CDC: push 0x4710d200 */
   6102     ecx = esi; /* 0x47095CE1: mov ecx, esi */
   6103     RECOMP_ICALL(0x4703A340u); /* 0x47095CE3: call 0x4703a340 */ /* not lifted */
   6104     RECOMP_FLAGS_IN();
   6105     PUSH32(esp, 0x4710D17Cu); /* 0x47095CE8: push 0x4710d17c */
   6106     goto L_47095D82; /* 0x47095CED: jmp 0x47095d82 */
   6107 L_47095CF2:
   6108     RECOMP_ICALL(ebx); /* 0x47095CF2: call ebx */
   6109     RECOMP_FLAGS_IN();
   6110     edi = eax; /* 0x47095CF4: mov edi, eax */
   6111     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095CF6: call dword ptr [0x470ac3c8] */
   6112     RECOMP_FLAGS_IN();
   6113     eax = MEM32(eax); /* 0x47095CFC: mov eax, dword ptr [eax] */
   6114     /* test eax, eax */ /* 0x47095CFE: test eax, eax */
   6115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6116     _cf = 0;
   6117     _flag_k = FK_TEST;
   6118     if (TEST_Z(_flag_a, _flag_b)) goto L_47095D04; /* 0x47095D00: je 0x47095d04 */
   6119 L_47095D02:
   6120     edi = eax; /* 0x47095D02: mov edi, eax */
   6121 L_47095D04:
   6122     RECOMP_ICALL(0x47039020u); /* 0x47095D04: call 0x47039020 */ /* not lifted */
   6123     RECOMP_FLAGS_IN();
   6124     esi = eax; /* 0x47095D09: mov esi, eax */
   6125     ecx = esi; /* 0x47095D0B: mov ecx, esi */
   6126     RECOMP_ICALL(0x4703B210u); /* 0x47095D0D: call 0x4703b210 */ /* not lifted */
   6127     RECOMP_FLAGS_IN();
   6128     PUSH32(esp, eax); /* 0x47095D12: push eax */
   6129     ecx = esi; /* 0x47095D13: mov ecx, esi */
   6130     RECOMP_ICALL(0x4703B240u); /* 0x47095D15: call 0x4703b240 */ /* not lifted */
   6131     RECOMP_FLAGS_IN();
   6132     PUSH32(esp, eax); /* 0x47095D1A: push eax */
   6133     ecx = esi; /* 0x47095D1B: mov ecx, esi */
   6134     RECOMP_ICALL(0x4703B080u); /* 0x47095D1D: call 0x4703b080 */ /* not lifted */
   6135     RECOMP_FLAGS_IN();
   6136     PUSH32(esp, eax); /* 0x47095D22: push eax */
   6137     PUSH32(esp, edi); /* 0x47095D23: push edi */
   6138     PUSH32(esp, 0); /* 0x47095D24: push 0 */
   6139     PUSH32(esp, 0x73u); /* 0x47095D26: push 0x73 */
   6140     PUSH32(esp, 0x4710D200u); /* 0x47095D28: push 0x4710d200 */
   6141     ecx = esi; /* 0x47095D2D: mov ecx, esi */
   6142     RECOMP_ICALL(0x4703A340u); /* 0x47095D2F: call 0x4703a340 */ /* not lifted */
   6143     RECOMP_FLAGS_IN();
   6144     PUSH32(esp, 0x4710D170u); /* 0x47095D34: push 0x4710d170 */
   6145     goto L_47095D82; /* 0x47095D39: jmp 0x47095d82 */
   6146 L_47095D3B:
   6147     RECOMP_ICALL(ebx); /* 0x47095D3B: call ebx */
   6148     RECOMP_FLAGS_IN();
   6149     edi = eax; /* 0x47095D3D: mov edi, eax */
   6150     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095D3F: call dword ptr [0x470ac3c8] */
   6151     RECOMP_FLAGS_IN();
   6152     eax = MEM32(eax); /* 0x47095D45: mov eax, dword ptr [eax] */
   6153     /* test eax, eax */ /* 0x47095D47: test eax, eax */
   6154     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6155     _cf = 0;
   6156     _flag_k = FK_TEST;
   6157     if (TEST_Z(_flag_a, _flag_b)) goto L_47095D4D; /* 0x47095D49: je 0x47095d4d */
   6158 L_47095D4B:
   6159     edi = eax; /* 0x47095D4B: mov edi, eax */
   6160 L_47095D4D:
   6161     RECOMP_ICALL(0x47039020u); /* 0x47095D4D: call 0x47039020 */ /* not lifted */
   6162     RECOMP_FLAGS_IN();
   6163     esi = eax; /* 0x47095D52: mov esi, eax */
   6164     ecx = esi; /* 0x47095D54: mov ecx, esi */
   6165     RECOMP_ICALL(0x4703B210u); /* 0x47095D56: call 0x4703b210 */ /* not lifted */
   6166     RECOMP_FLAGS_IN();
   6167     PUSH32(esp, eax); /* 0x47095D5B: push eax */
   6168     ecx = esi; /* 0x47095D5C: mov ecx, esi */
   6169     RECOMP_ICALL(0x4703B240u); /* 0x47095D5E: call 0x4703b240 */ /* not lifted */
   6170     RECOMP_FLAGS_IN();
   6171     PUSH32(esp, eax); /* 0x47095D63: push eax */
   6172     ecx = esi; /* 0x47095D64: mov ecx, esi */
   6173     RECOMP_ICALL(0x4703B080u); /* 0x47095D66: call 0x4703b080 */ /* not lifted */
   6174     RECOMP_FLAGS_IN();
   6175     PUSH32(esp, eax); /* 0x47095D6B: push eax */
   6176     PUSH32(esp, edi); /* 0x47095D6C: push edi */
   6177     PUSH32(esp, 0); /* 0x47095D6D: push 0 */
   6178     PUSH32(esp, 0x70u); /* 0x47095D6F: push 0x70 */
   6179     PUSH32(esp, 0x4710D200u); /* 0x47095D71: push 0x4710d200 */
   6180     ecx = esi; /* 0x47095D76: mov ecx, esi */
   6181     RECOMP_ICALL(0x4703A340u); /* 0x47095D78: call 0x4703a340 */ /* not lifted */
   6182     RECOMP_FLAGS_IN();
   6183     PUSH32(esp, 0x4710D164u); /* 0x47095D7D: push 0x4710d164 */
   6184 L_47095D82:
   6185     PUSH32(esp, 4); /* 0x47095D82: push 4 */
   6186     PUSH32(esp, esi); /* 0x47095D84: push esi */
   6187     RECOMP_ICALL(0x47039830u); /* 0x47095D85: call 0x47039830 */ /* not lifted */
   6188     RECOMP_FLAGS_IN();
   6189     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6191     esp = esp + 0xCu; /* 0x47095D8A: add esp, 0xc */
   6192     _flag_k = FK_ADD;
   6193 L_47095D8D:
   6194     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x170u);
   6195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6196     ebp = ebp + 0x170u; /* 0x47095D8D: add ebp, 0x170 */
   6197     _flag_k = FK_ADD;
   6198     PUSH32(esp, 2); /* 0x47095D93: push 2 */
   6199     ecx = ebp; /* 0x47095D95: mov ecx, ebp */
   6200     RECOMP_ICALL(0x47088190u); /* 0x47095D97: call 0x47088190 */ /* not lifted */
   6201     RECOMP_FLAGS_IN();
   6202     /* test eax, eax */ /* 0x47095D9C: test eax, eax */
   6203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6204     _cf = 0;
   6205     _flag_k = FK_TEST;
   6206     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095DF4; /* 0x47095D9E: jne 0x47095df4 */
   6207 L_47095DA0:
   6208     RECOMP_ICALL(ebx); /* 0x47095DA0: call ebx */
   6209     RECOMP_FLAGS_IN();
   6210     edi = eax; /* 0x47095DA2: mov edi, eax */
   6211     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095DA4: call dword ptr [0x470ac3c8] */
   6212     RECOMP_FLAGS_IN();
   6213     eax = MEM32(eax); /* 0x47095DAA: mov eax, dword ptr [eax] */
   6214     /* test eax, eax */ /* 0x47095DAC: test eax, eax */
   6215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6216     _cf = 0;
   6217     _flag_k = FK_TEST;
   6218     if (TEST_Z(_flag_a, _flag_b)) goto L_47095DB2; /* 0x47095DAE: je 0x47095db2 */
   6219 L_47095DB0:
   6220     edi = eax; /* 0x47095DB0: mov edi, eax */
   6221 L_47095DB2:
   6222     RECOMP_ICALL(0x47039020u); /* 0x47095DB2: call 0x47039020 */ /* not lifted */
   6223     RECOMP_FLAGS_IN();
   6224     esi = eax; /* 0x47095DB7: mov esi, eax */
   6225     ecx = esi; /* 0x47095DB9: mov ecx, esi */
   6226     RECOMP_ICALL(0x4703B210u); /* 0x47095DBB: call 0x4703b210 */ /* not lifted */
   6227     RECOMP_FLAGS_IN();
   6228     PUSH32(esp, eax); /* 0x47095DC0: push eax */
   6229     ecx = esi; /* 0x47095DC1: mov ecx, esi */
   6230     RECOMP_ICALL(0x4703B240u); /* 0x47095DC3: call 0x4703b240 */ /* not lifted */
   6231     RECOMP_FLAGS_IN();
   6232     PUSH32(esp, eax); /* 0x47095DC8: push eax */
   6233     ecx = esi; /* 0x47095DC9: mov ecx, esi */
   6234     RECOMP_ICALL(0x4703B080u); /* 0x47095DCB: call 0x4703b080 */ /* not lifted */
   6235     RECOMP_FLAGS_IN();
   6236     PUSH32(esp, eax); /* 0x47095DD0: push eax */
   6237     PUSH32(esp, edi); /* 0x47095DD1: push edi */
   6238     PUSH32(esp, 0); /* 0x47095DD2: push 0 */
   6239     PUSH32(esp, 0x7Eu); /* 0x47095DD4: push 0x7e */
   6240     PUSH32(esp, 0x4710D200u); /* 0x47095DD6: push 0x4710d200 */
   6241     ecx = esi; /* 0x47095DDB: mov ecx, esi */
   6242     RECOMP_ICALL(0x4703A340u); /* 0x47095DDD: call 0x4703a340 */ /* not lifted */
   6243     RECOMP_FLAGS_IN();
   6244     PUSH32(esp, 0x471087F4u); /* 0x47095DE2: push 0x471087f4 */
   6245     PUSH32(esp, 4); /* 0x47095DE7: push 4 */
   6246     PUSH32(esp, esi); /* 0x47095DE9: push esi */
   6247     RECOMP_ICALL(0x47039830u); /* 0x47095DEA: call 0x47039830 */ /* not lifted */
   6248     RECOMP_FLAGS_IN();
   6249     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6251     esp = esp + 0xCu; /* 0x47095DEF: add esp, 0xc */
   6252     _flag_k = FK_ADD;
   6253     goto L_47095E5E; /* 0x47095DF2: jmp 0x47095e5e */
   6254 L_47095DF4:
   6255     RECOMP_ICALL(ebx); /* 0x47095DF4: call ebx */
   6256     RECOMP_FLAGS_IN();
   6257     edi = eax; /* 0x47095DF6: mov edi, eax */
   6258     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095DF8: call dword ptr [0x470ac3c8] */
   6259     RECOMP_FLAGS_IN();
   6260     eax = MEM32(eax); /* 0x47095DFE: mov eax, dword ptr [eax] */
   6261     /* test eax, eax */ /* 0x47095E00: test eax, eax */
   6262     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6263     _cf = 0;
   6264     _flag_k = FK_TEST;
   6265     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E06; /* 0x47095E02: je 0x47095e06 */
   6266 L_47095E04:
   6267     edi = eax; /* 0x47095E04: mov edi, eax */
   6268 L_47095E06:
   6269     RECOMP_ICALL(0x47039020u); /* 0x47095E06: call 0x47039020 */ /* not lifted */
   6270     RECOMP_FLAGS_IN();
   6271     esi = eax; /* 0x47095E0B: mov esi, eax */
   6272     ecx = esi; /* 0x47095E0D: mov ecx, esi */
   6273     RECOMP_ICALL(0x4703B210u); /* 0x47095E0F: call 0x4703b210 */ /* not lifted */
   6274     RECOMP_FLAGS_IN();
   6275     PUSH32(esp, eax); /* 0x47095E14: push eax */
   6276     ecx = esi; /* 0x47095E15: mov ecx, esi */
   6277     RECOMP_ICALL(0x4703B240u); /* 0x47095E17: call 0x4703b240 */ /* not lifted */
   6278     RECOMP_FLAGS_IN();
   6279     PUSH32(esp, eax); /* 0x47095E1C: push eax */
   6280     ecx = esi; /* 0x47095E1D: mov ecx, esi */
   6281     RECOMP_ICALL(0x4703B080u); /* 0x47095E1F: call 0x4703b080 */ /* not lifted */
   6282     RECOMP_FLAGS_IN();
   6283     PUSH32(esp, eax); /* 0x47095E24: push eax */
   6284     PUSH32(esp, edi); /* 0x47095E25: push edi */
   6285     PUSH32(esp, 0); /* 0x47095E26: push 0 */
   6286     PUSH32(esp, 0x82u); /* 0x47095E28: push 0x82 */
   6287     PUSH32(esp, 0x4710D200u); /* 0x47095E2D: push 0x4710d200 */
   6288     ecx = esi; /* 0x47095E32: mov ecx, esi */
   6289     RECOMP_ICALL(0x4703A340u); /* 0x47095E34: call 0x4703a340 */ /* not lifted */
   6290     RECOMP_FLAGS_IN();
   6291     ecx = ebp; /* 0x47095E39: mov ecx, ebp */
   6292     RECOMP_ICALL(0x470881B0u); /* 0x47095E3B: call 0x470881b0 */ /* not lifted */
   6293     RECOMP_FLAGS_IN();
   6294     edi = MEM32(eax + 0x4); /* 0x47095E40: mov edi, dword ptr [eax + 4] */
   6295     ecx = ebp; /* 0x47095E43: mov ecx, ebp */
   6296     RECOMP_ICALL(0x470881B0u); /* 0x47095E45: call 0x470881b0 */ /* not lifted */
   6297     RECOMP_FLAGS_IN();
   6298     eax = MEM32(eax); /* 0x47095E4A: mov eax, dword ptr [eax] */
   6299     PUSH32(esp, edi); /* 0x47095E4C: push edi */
   6300     PUSH32(esp, eax); /* 0x47095E4D: push eax */
   6301     PUSH32(esp, 0x471087D0u); /* 0x47095E4E: push 0x471087d0 */
   6302     PUSH32(esp, 4); /* 0x47095E53: push 4 */
   6303     PUSH32(esp, esi); /* 0x47095E55: push esi */
   6304     RECOMP_ICALL(0x47039830u); /* 0x47095E56: call 0x47039830 */ /* not lifted */
   6305     RECOMP_FLAGS_IN();
   6306     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6307     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6308     esp = esp + 0x14u; /* 0x47095E5B: add esp, 0x14 */
   6309     _flag_k = FK_ADD;
   6310 L_47095E5E:
   6311     RECOMP_ICALL(ebx); /* 0x47095E5E: call ebx */
   6312     RECOMP_FLAGS_IN();
   6313     edi = eax; /* 0x47095E60: mov edi, eax */
   6314     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095E62: call dword ptr [0x470ac3c8] */
   6315     RECOMP_FLAGS_IN();
   6316     eax = MEM32(eax); /* 0x47095E68: mov eax, dword ptr [eax] */
   6317     /* test eax, eax */ /* 0x47095E6A: test eax, eax */
   6318     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6319     _cf = 0;
   6320     _flag_k = FK_TEST;
   6321     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E70; /* 0x47095E6C: je 0x47095e70 */
   6322 L_47095E6E:
   6323     edi = eax; /* 0x47095E6E: mov edi, eax */
   6324 L_47095E70:
   6325     RECOMP_ICALL(0x47039020u); /* 0x47095E70: call 0x47039020 */ /* not lifted */
   6326     RECOMP_FLAGS_IN();
   6327     esi = eax; /* 0x47095E75: mov esi, eax */
   6328     ecx = esi; /* 0x47095E77: mov ecx, esi */
   6329     RECOMP_ICALL(0x4703B210u); /* 0x47095E79: call 0x4703b210 */ /* not lifted */
   6330     RECOMP_FLAGS_IN();
   6331     PUSH32(esp, eax); /* 0x47095E7E: push eax */
   6332     ecx = esi; /* 0x47095E7F: mov ecx, esi */
   6333     RECOMP_ICALL(0x4703B240u); /* 0x47095E81: call 0x4703b240 */ /* not lifted */
   6334     RECOMP_FLAGS_IN();
   6335     PUSH32(esp, eax); /* 0x47095E86: push eax */
   6336     ecx = esi; /* 0x47095E87: mov ecx, esi */
   6337     RECOMP_ICALL(0x4703B080u); /* 0x47095E89: call 0x4703b080 */ /* not lifted */
   6338     RECOMP_FLAGS_IN();
   6339     PUSH32(esp, eax); /* 0x47095E8E: push eax */
   6340     PUSH32(esp, edi); /* 0x47095E8F: push edi */
   6341     PUSH32(esp, 0); /* 0x47095E90: push 0 */
   6342     PUSH32(esp, 0x84u); /* 0x47095E92: push 0x84 */
   6343     PUSH32(esp, 0x4710D200u); /* 0x47095E97: push 0x4710d200 */
   6344     ecx = esi; /* 0x47095E9C: mov ecx, esi */
   6345     RECOMP_ICALL(0x4703A340u); /* 0x47095E9E: call 0x4703a340 */ /* not lifted */
   6346     RECOMP_FLAGS_IN();
   6347     PUSH32(esp, 0x4710529Cu); /* 0x47095EA3: push 0x4710529c */
   6348     PUSH32(esp, 4); /* 0x47095EA8: push 4 */
   6349     PUSH32(esp, esi); /* 0x47095EAA: push esi */
   6350     RECOMP_ICALL(0x47039830u); /* 0x47095EAB: call 0x47039830 */ /* not lifted */
   6351     RECOMP_FLAGS_IN();
   6352     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6353     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6354     esp = esp + 0xCu; /* 0x47095EB0: add esp, 0xc */
   6355     _flag_k = FK_ADD;
   6356     edi = POP32_VAL(esp); /* 0x47095EB3: pop edi */
   6357     esi = POP32_VAL(esp); /* 0x47095EB4: pop esi */
   6358     ebp = POP32_VAL(esp); /* 0x47095EB5: pop ebp */
   6359     ebx = POP32_VAL(esp); /* 0x47095EB6: pop ebx */
   6360     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095EB7: ret  */
   6361     RECOMP_REGS_OUT();
   6362 }
   6363 
   6364 void sub_47095BCA(void) {
   6365     int _fpu_cmp = 0;
   6366     uint32_t _cf = 0;
   6367     int _df = 1;
   6368     uint32_t _flag_k = FK_NONE;
   6369     uint32_t _flag_a = 0, _flag_b = 0;
   6370     uint32_t _itail_tgt = 0;
   6371     RECOMP_REGS_LOCALS
   6372     RECOMP_ENTER(0x47095BCAu);
   6373 
   6374 L_47095BCA:
   6375     PUSH32(esp, 4); /* 0x47095BCA: push 4 */
   6376     PUSH32(esp, esi); /* 0x47095BCC: push esi */
   6377     RECOMP_ICALL(0x47039830u); /* 0x47095BCD: call 0x47039830 */ /* not lifted */
   6378     RECOMP_FLAGS_IN();
   6379     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6381     esp = esp + 0xCu; /* 0x47095BD2: add esp, 0xc */
   6382     _flag_k = FK_ADD;
   6383     RECOMP_ICALL(ebx); /* 0x47095BD5: call ebx */
   6384     RECOMP_FLAGS_IN();
   6385     edi = eax; /* 0x47095BD7: mov edi, eax */
   6386     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095BD9: call dword ptr [0x470ac3c8] */
   6387     RECOMP_FLAGS_IN();
   6388     eax = MEM32(eax); /* 0x47095BDF: mov eax, dword ptr [eax] */
   6389     /* test eax, eax */ /* 0x47095BE1: test eax, eax */
   6390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6391     _cf = 0;
   6392     _flag_k = FK_TEST;
   6393     if (TEST_Z(_flag_a, _flag_b)) goto L_47095BE7; /* 0x47095BE3: je 0x47095be7 */
   6394 L_47095BE5:
   6395     edi = eax; /* 0x47095BE5: mov edi, eax */
   6396 L_47095BE7:
   6397     RECOMP_ICALL(0x47039020u); /* 0x47095BE7: call 0x47039020 */ /* not lifted */
   6398     RECOMP_FLAGS_IN();
   6399     esi = eax; /* 0x47095BEC: mov esi, eax */
   6400     ecx = esi; /* 0x47095BEE: mov ecx, esi */
   6401     RECOMP_ICALL(0x4703B210u); /* 0x47095BF0: call 0x4703b210 */ /* not lifted */
   6402     RECOMP_FLAGS_IN();
   6403     PUSH32(esp, eax); /* 0x47095BF5: push eax */
   6404     ecx = esi; /* 0x47095BF6: mov ecx, esi */
   6405     RECOMP_ICALL(0x4703B240u); /* 0x47095BF8: call 0x4703b240 */ /* not lifted */
   6406     RECOMP_FLAGS_IN();
   6407     PUSH32(esp, eax); /* 0x47095BFD: push eax */
   6408     ecx = esi; /* 0x47095BFE: mov ecx, esi */
   6409     RECOMP_ICALL(0x4703B080u); /* 0x47095C00: call 0x4703b080 */ /* not lifted */
   6410     RECOMP_FLAGS_IN();
   6411     PUSH32(esp, eax); /* 0x47095C05: push eax */
   6412     PUSH32(esp, edi); /* 0x47095C06: push edi */
   6413     PUSH32(esp, 0); /* 0x47095C07: push 0 */
   6414     PUSH32(esp, 0x6Cu); /* 0x47095C09: push 0x6c */
   6415     PUSH32(esp, 0x4710D200u); /* 0x47095C0B: push 0x4710d200 */
   6416     ecx = esi; /* 0x47095C10: mov ecx, esi */
   6417     RECOMP_ICALL(0x4703A340u); /* 0x47095C12: call 0x4703a340 */ /* not lifted */
   6418     RECOMP_FLAGS_IN();
   6419     PUSH32(esp, 0x4710D1A4u); /* 0x47095C17: push 0x4710d1a4 */
   6420     PUSH32(esp, 4); /* 0x47095C1C: push 4 */
   6421     PUSH32(esp, esi); /* 0x47095C1E: push esi */
   6422     RECOMP_ICALL(0x47039830u); /* 0x47095C1F: call 0x47039830 */ /* not lifted */
   6423     RECOMP_FLAGS_IN();
   6424     eax = MEM32(ebp + 0xC); /* 0x47095C24: mov eax, dword ptr [ebp + 0xc] */
   6425     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6426     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6427     esp = esp + 0xCu; /* 0x47095C27: add esp, 0xc */
   6428     _flag_k = FK_ADD;
   6429     PUSH32(esp, eax); /* 0x47095C2A: push eax */
   6430     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47095C2B: call dword ptr [0x470ac4b0] */
   6431     RECOMP_FLAGS_IN();
   6432     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0);
   6433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6434     eax = eax - 0; /* 0x47095C31: sub eax, 0 */
   6435     _flag_k = FK_CMP;
   6436     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_47095D3B; /* 0x47095C34: je 0x47095d3b */
   6437 L_47095C3A:
   6438     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6439     eax = eax - 1; /* 0x47095C3A: dec eax */
   6440     _flag_k = FK_DEC;
   6441     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47095CF2; /* 0x47095C3B: je 0x47095cf2 */
   6442 L_47095C41:
   6443     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6444     eax = eax - 1; /* 0x47095C41: dec eax */
   6445     _flag_k = FK_DEC;
   6446     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47095CA6; /* 0x47095C42: je 0x47095ca6 */
   6447 L_47095C44:
   6448     RECOMP_ICALL(ebx); /* 0x47095C44: call ebx */
   6449     RECOMP_FLAGS_IN();
   6450     edi = eax; /* 0x47095C46: mov edi, eax */
   6451     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095C48: call dword ptr [0x470ac3c8] */
   6452     RECOMP_FLAGS_IN();
   6453     eax = MEM32(eax); /* 0x47095C4E: mov eax, dword ptr [eax] */
   6454     /* test eax, eax */ /* 0x47095C50: test eax, eax */
   6455     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6456     _cf = 0;
   6457     _flag_k = FK_TEST;
   6458     if (TEST_Z(_flag_a, _flag_b)) goto L_47095C56; /* 0x47095C52: je 0x47095c56 */
   6459 L_47095C54:
   6460     edi = eax; /* 0x47095C54: mov edi, eax */
   6461 L_47095C56:
   6462     RECOMP_ICALL(0x47039020u); /* 0x47095C56: call 0x47039020 */ /* not lifted */
   6463     RECOMP_FLAGS_IN();
   6464     esi = eax; /* 0x47095C5B: mov esi, eax */
   6465     ecx = esi; /* 0x47095C5D: mov ecx, esi */
   6466     RECOMP_ICALL(0x4703B210u); /* 0x47095C5F: call 0x4703b210 */ /* not lifted */
   6467     RECOMP_FLAGS_IN();
   6468     PUSH32(esp, eax); /* 0x47095C64: push eax */
   6469     ecx = esi; /* 0x47095C65: mov ecx, esi */
   6470     RECOMP_ICALL(0x4703B240u); /* 0x47095C67: call 0x4703b240 */ /* not lifted */
   6471     RECOMP_FLAGS_IN();
   6472     PUSH32(esp, eax); /* 0x47095C6C: push eax */
   6473     ecx = esi; /* 0x47095C6D: mov ecx, esi */
   6474     RECOMP_ICALL(0x4703B080u); /* 0x47095C6F: call 0x4703b080 */ /* not lifted */
   6475     RECOMP_FLAGS_IN();
   6476     PUSH32(esp, eax); /* 0x47095C74: push eax */
   6477     PUSH32(esp, edi); /* 0x47095C75: push edi */
   6478     PUSH32(esp, 0); /* 0x47095C76: push 0 */
   6479     PUSH32(esp, 0x79u); /* 0x47095C78: push 0x79 */
   6480     PUSH32(esp, 0x4710D200u); /* 0x47095C7A: push 0x4710d200 */
   6481     ecx = esi; /* 0x47095C7F: mov ecx, esi */
   6482     RECOMP_ICALL(0x4703A340u); /* 0x47095C81: call 0x4703a340 */ /* not lifted */
   6483     RECOMP_FLAGS_IN();
   6484     ecx = MEM32(ebp + 0xC); /* 0x47095C86: mov ecx, dword ptr [ebp + 0xc] */
   6485     PUSH32(esp, ecx); /* 0x47095C89: push ecx */
   6486     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47095C8A: call dword ptr [0x470ac4b0] */
   6487     RECOMP_FLAGS_IN();
   6488     PUSH32(esp, eax); /* 0x47095C90: push eax */
   6489     PUSH32(esp, 0x4710D184u); /* 0x47095C91: push 0x4710d184 */
   6490     PUSH32(esp, 4); /* 0x47095C96: push 4 */
   6491     PUSH32(esp, esi); /* 0x47095C98: push esi */
   6492     RECOMP_ICALL(0x47039830u); /* 0x47095C99: call 0x47039830 */ /* not lifted */
   6493     RECOMP_FLAGS_IN();
   6494     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6495     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6496     esp = esp + 0x10u; /* 0x47095C9E: add esp, 0x10 */
   6497     _flag_k = FK_ADD;
   6498     goto L_47095D8D; /* 0x47095CA1: jmp 0x47095d8d */
   6499 L_47095CA6:
   6500     RECOMP_ICALL(ebx); /* 0x47095CA6: call ebx */
   6501     RECOMP_FLAGS_IN();
   6502     edi = eax; /* 0x47095CA8: mov edi, eax */
   6503     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095CAA: call dword ptr [0x470ac3c8] */
   6504     RECOMP_FLAGS_IN();
   6505     eax = MEM32(eax); /* 0x47095CB0: mov eax, dword ptr [eax] */
   6506     /* test eax, eax */ /* 0x47095CB2: test eax, eax */
   6507     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6508     _cf = 0;
   6509     _flag_k = FK_TEST;
   6510     if (TEST_Z(_flag_a, _flag_b)) goto L_47095CB8; /* 0x47095CB4: je 0x47095cb8 */
   6511 L_47095CB6:
   6512     edi = eax; /* 0x47095CB6: mov edi, eax */
   6513 L_47095CB8:
   6514     RECOMP_ICALL(0x47039020u); /* 0x47095CB8: call 0x47039020 */ /* not lifted */
   6515     RECOMP_FLAGS_IN();
   6516     esi = eax; /* 0x47095CBD: mov esi, eax */
   6517     ecx = esi; /* 0x47095CBF: mov ecx, esi */
   6518     RECOMP_ICALL(0x4703B210u); /* 0x47095CC1: call 0x4703b210 */ /* not lifted */
   6519     RECOMP_FLAGS_IN();
   6520     PUSH32(esp, eax); /* 0x47095CC6: push eax */
   6521     ecx = esi; /* 0x47095CC7: mov ecx, esi */
   6522     RECOMP_ICALL(0x4703B240u); /* 0x47095CC9: call 0x4703b240 */ /* not lifted */
   6523     RECOMP_FLAGS_IN();
   6524     PUSH32(esp, eax); /* 0x47095CCE: push eax */
   6525     ecx = esi; /* 0x47095CCF: mov ecx, esi */
   6526     RECOMP_ICALL(0x4703B080u); /* 0x47095CD1: call 0x4703b080 */ /* not lifted */
   6527     RECOMP_FLAGS_IN();
   6528     PUSH32(esp, eax); /* 0x47095CD6: push eax */
   6529     PUSH32(esp, edi); /* 0x47095CD7: push edi */
   6530     PUSH32(esp, 0); /* 0x47095CD8: push 0 */
   6531     PUSH32(esp, 0x76u); /* 0x47095CDA: push 0x76 */
   6532     PUSH32(esp, 0x4710D200u); /* 0x47095CDC: push 0x4710d200 */
   6533     ecx = esi; /* 0x47095CE1: mov ecx, esi */
   6534     RECOMP_ICALL(0x4703A340u); /* 0x47095CE3: call 0x4703a340 */ /* not lifted */
   6535     RECOMP_FLAGS_IN();
   6536     PUSH32(esp, 0x4710D17Cu); /* 0x47095CE8: push 0x4710d17c */
   6537     goto L_47095D82; /* 0x47095CED: jmp 0x47095d82 */
   6538 L_47095CF2:
   6539     RECOMP_ICALL(ebx); /* 0x47095CF2: call ebx */
   6540     RECOMP_FLAGS_IN();
   6541     edi = eax; /* 0x47095CF4: mov edi, eax */
   6542     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095CF6: call dword ptr [0x470ac3c8] */
   6543     RECOMP_FLAGS_IN();
   6544     eax = MEM32(eax); /* 0x47095CFC: mov eax, dword ptr [eax] */
   6545     /* test eax, eax */ /* 0x47095CFE: test eax, eax */
   6546     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6547     _cf = 0;
   6548     _flag_k = FK_TEST;
   6549     if (TEST_Z(_flag_a, _flag_b)) goto L_47095D04; /* 0x47095D00: je 0x47095d04 */
   6550 L_47095D02:
   6551     edi = eax; /* 0x47095D02: mov edi, eax */
   6552 L_47095D04:
   6553     RECOMP_ICALL(0x47039020u); /* 0x47095D04: call 0x47039020 */ /* not lifted */
   6554     RECOMP_FLAGS_IN();
   6555     esi = eax; /* 0x47095D09: mov esi, eax */
   6556     ecx = esi; /* 0x47095D0B: mov ecx, esi */
   6557     RECOMP_ICALL(0x4703B210u); /* 0x47095D0D: call 0x4703b210 */ /* not lifted */
   6558     RECOMP_FLAGS_IN();
   6559     PUSH32(esp, eax); /* 0x47095D12: push eax */
   6560     ecx = esi; /* 0x47095D13: mov ecx, esi */
   6561     RECOMP_ICALL(0x4703B240u); /* 0x47095D15: call 0x4703b240 */ /* not lifted */
   6562     RECOMP_FLAGS_IN();
   6563     PUSH32(esp, eax); /* 0x47095D1A: push eax */
   6564     ecx = esi; /* 0x47095D1B: mov ecx, esi */
   6565     RECOMP_ICALL(0x4703B080u); /* 0x47095D1D: call 0x4703b080 */ /* not lifted */
   6566     RECOMP_FLAGS_IN();
   6567     PUSH32(esp, eax); /* 0x47095D22: push eax */
   6568     PUSH32(esp, edi); /* 0x47095D23: push edi */
   6569     PUSH32(esp, 0); /* 0x47095D24: push 0 */
   6570     PUSH32(esp, 0x73u); /* 0x47095D26: push 0x73 */
   6571     PUSH32(esp, 0x4710D200u); /* 0x47095D28: push 0x4710d200 */
   6572     ecx = esi; /* 0x47095D2D: mov ecx, esi */
   6573     RECOMP_ICALL(0x4703A340u); /* 0x47095D2F: call 0x4703a340 */ /* not lifted */
   6574     RECOMP_FLAGS_IN();
   6575     PUSH32(esp, 0x4710D170u); /* 0x47095D34: push 0x4710d170 */
   6576     goto L_47095D82; /* 0x47095D39: jmp 0x47095d82 */
   6577 L_47095D3B:
   6578     RECOMP_ICALL(ebx); /* 0x47095D3B: call ebx */
   6579     RECOMP_FLAGS_IN();
   6580     edi = eax; /* 0x47095D3D: mov edi, eax */
   6581     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095D3F: call dword ptr [0x470ac3c8] */
   6582     RECOMP_FLAGS_IN();
   6583     eax = MEM32(eax); /* 0x47095D45: mov eax, dword ptr [eax] */
   6584     /* test eax, eax */ /* 0x47095D47: test eax, eax */
   6585     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6586     _cf = 0;
   6587     _flag_k = FK_TEST;
   6588     if (TEST_Z(_flag_a, _flag_b)) goto L_47095D4D; /* 0x47095D49: je 0x47095d4d */
   6589 L_47095D4B:
   6590     edi = eax; /* 0x47095D4B: mov edi, eax */
   6591 L_47095D4D:
   6592     RECOMP_ICALL(0x47039020u); /* 0x47095D4D: call 0x47039020 */ /* not lifted */
   6593     RECOMP_FLAGS_IN();
   6594     esi = eax; /* 0x47095D52: mov esi, eax */
   6595     ecx = esi; /* 0x47095D54: mov ecx, esi */
   6596     RECOMP_ICALL(0x4703B210u); /* 0x47095D56: call 0x4703b210 */ /* not lifted */
   6597     RECOMP_FLAGS_IN();
   6598     PUSH32(esp, eax); /* 0x47095D5B: push eax */
   6599     ecx = esi; /* 0x47095D5C: mov ecx, esi */
   6600     RECOMP_ICALL(0x4703B240u); /* 0x47095D5E: call 0x4703b240 */ /* not lifted */
   6601     RECOMP_FLAGS_IN();
   6602     PUSH32(esp, eax); /* 0x47095D63: push eax */
   6603     ecx = esi; /* 0x47095D64: mov ecx, esi */
   6604     RECOMP_ICALL(0x4703B080u); /* 0x47095D66: call 0x4703b080 */ /* not lifted */
   6605     RECOMP_FLAGS_IN();
   6606     PUSH32(esp, eax); /* 0x47095D6B: push eax */
   6607     PUSH32(esp, edi); /* 0x47095D6C: push edi */
   6608     PUSH32(esp, 0); /* 0x47095D6D: push 0 */
   6609     PUSH32(esp, 0x70u); /* 0x47095D6F: push 0x70 */
   6610     PUSH32(esp, 0x4710D200u); /* 0x47095D71: push 0x4710d200 */
   6611     ecx = esi; /* 0x47095D76: mov ecx, esi */
   6612     RECOMP_ICALL(0x4703A340u); /* 0x47095D78: call 0x4703a340 */ /* not lifted */
   6613     RECOMP_FLAGS_IN();
   6614     PUSH32(esp, 0x4710D164u); /* 0x47095D7D: push 0x4710d164 */
   6615 L_47095D82:
   6616     PUSH32(esp, 4); /* 0x47095D82: push 4 */
   6617     PUSH32(esp, esi); /* 0x47095D84: push esi */
   6618     RECOMP_ICALL(0x47039830u); /* 0x47095D85: call 0x47039830 */ /* not lifted */
   6619     RECOMP_FLAGS_IN();
   6620     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6622     esp = esp + 0xCu; /* 0x47095D8A: add esp, 0xc */
   6623     _flag_k = FK_ADD;
   6624 L_47095D8D:
   6625     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x170u);
   6626     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6627     ebp = ebp + 0x170u; /* 0x47095D8D: add ebp, 0x170 */
   6628     _flag_k = FK_ADD;
   6629     PUSH32(esp, 2); /* 0x47095D93: push 2 */
   6630     ecx = ebp; /* 0x47095D95: mov ecx, ebp */
   6631     RECOMP_ICALL(0x47088190u); /* 0x47095D97: call 0x47088190 */ /* not lifted */
   6632     RECOMP_FLAGS_IN();
   6633     /* test eax, eax */ /* 0x47095D9C: test eax, eax */
   6634     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6635     _cf = 0;
   6636     _flag_k = FK_TEST;
   6637     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095DF4; /* 0x47095D9E: jne 0x47095df4 */
   6638 L_47095DA0:
   6639     RECOMP_ICALL(ebx); /* 0x47095DA0: call ebx */
   6640     RECOMP_FLAGS_IN();
   6641     edi = eax; /* 0x47095DA2: mov edi, eax */
   6642     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095DA4: call dword ptr [0x470ac3c8] */
   6643     RECOMP_FLAGS_IN();
   6644     eax = MEM32(eax); /* 0x47095DAA: mov eax, dword ptr [eax] */
   6645     /* test eax, eax */ /* 0x47095DAC: test eax, eax */
   6646     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6647     _cf = 0;
   6648     _flag_k = FK_TEST;
   6649     if (TEST_Z(_flag_a, _flag_b)) goto L_47095DB2; /* 0x47095DAE: je 0x47095db2 */
   6650 L_47095DB0:
   6651     edi = eax; /* 0x47095DB0: mov edi, eax */
   6652 L_47095DB2:
   6653     RECOMP_ICALL(0x47039020u); /* 0x47095DB2: call 0x47039020 */ /* not lifted */
   6654     RECOMP_FLAGS_IN();
   6655     esi = eax; /* 0x47095DB7: mov esi, eax */
   6656     ecx = esi; /* 0x47095DB9: mov ecx, esi */
   6657     RECOMP_ICALL(0x4703B210u); /* 0x47095DBB: call 0x4703b210 */ /* not lifted */
   6658     RECOMP_FLAGS_IN();
   6659     PUSH32(esp, eax); /* 0x47095DC0: push eax */
   6660     ecx = esi; /* 0x47095DC1: mov ecx, esi */
   6661     RECOMP_ICALL(0x4703B240u); /* 0x47095DC3: call 0x4703b240 */ /* not lifted */
   6662     RECOMP_FLAGS_IN();
   6663     PUSH32(esp, eax); /* 0x47095DC8: push eax */
   6664     ecx = esi; /* 0x47095DC9: mov ecx, esi */
   6665     RECOMP_ICALL(0x4703B080u); /* 0x47095DCB: call 0x4703b080 */ /* not lifted */
   6666     RECOMP_FLAGS_IN();
   6667     PUSH32(esp, eax); /* 0x47095DD0: push eax */
   6668     PUSH32(esp, edi); /* 0x47095DD1: push edi */
   6669     PUSH32(esp, 0); /* 0x47095DD2: push 0 */
   6670     PUSH32(esp, 0x7Eu); /* 0x47095DD4: push 0x7e */
   6671     PUSH32(esp, 0x4710D200u); /* 0x47095DD6: push 0x4710d200 */
   6672     ecx = esi; /* 0x47095DDB: mov ecx, esi */
   6673     RECOMP_ICALL(0x4703A340u); /* 0x47095DDD: call 0x4703a340 */ /* not lifted */
   6674     RECOMP_FLAGS_IN();
   6675     PUSH32(esp, 0x471087F4u); /* 0x47095DE2: push 0x471087f4 */
   6676     PUSH32(esp, 4); /* 0x47095DE7: push 4 */
   6677     PUSH32(esp, esi); /* 0x47095DE9: push esi */
   6678     RECOMP_ICALL(0x47039830u); /* 0x47095DEA: call 0x47039830 */ /* not lifted */
   6679     RECOMP_FLAGS_IN();
   6680     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6682     esp = esp + 0xCu; /* 0x47095DEF: add esp, 0xc */
   6683     _flag_k = FK_ADD;
   6684     goto L_47095E5E; /* 0x47095DF2: jmp 0x47095e5e */
   6685 L_47095DF4:
   6686     RECOMP_ICALL(ebx); /* 0x47095DF4: call ebx */
   6687     RECOMP_FLAGS_IN();
   6688     edi = eax; /* 0x47095DF6: mov edi, eax */
   6689     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095DF8: call dword ptr [0x470ac3c8] */
   6690     RECOMP_FLAGS_IN();
   6691     eax = MEM32(eax); /* 0x47095DFE: mov eax, dword ptr [eax] */
   6692     /* test eax, eax */ /* 0x47095E00: test eax, eax */
   6693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6694     _cf = 0;
   6695     _flag_k = FK_TEST;
   6696     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E06; /* 0x47095E02: je 0x47095e06 */
   6697 L_47095E04:
   6698     edi = eax; /* 0x47095E04: mov edi, eax */
   6699 L_47095E06:
   6700     RECOMP_ICALL(0x47039020u); /* 0x47095E06: call 0x47039020 */ /* not lifted */
   6701     RECOMP_FLAGS_IN();
   6702     esi = eax; /* 0x47095E0B: mov esi, eax */
   6703     ecx = esi; /* 0x47095E0D: mov ecx, esi */
   6704     RECOMP_ICALL(0x4703B210u); /* 0x47095E0F: call 0x4703b210 */ /* not lifted */
   6705     RECOMP_FLAGS_IN();
   6706     PUSH32(esp, eax); /* 0x47095E14: push eax */
   6707     ecx = esi; /* 0x47095E15: mov ecx, esi */
   6708     RECOMP_ICALL(0x4703B240u); /* 0x47095E17: call 0x4703b240 */ /* not lifted */
   6709     RECOMP_FLAGS_IN();
   6710     PUSH32(esp, eax); /* 0x47095E1C: push eax */
   6711     ecx = esi; /* 0x47095E1D: mov ecx, esi */
   6712     RECOMP_ICALL(0x4703B080u); /* 0x47095E1F: call 0x4703b080 */ /* not lifted */
   6713     RECOMP_FLAGS_IN();
   6714     PUSH32(esp, eax); /* 0x47095E24: push eax */
   6715     PUSH32(esp, edi); /* 0x47095E25: push edi */
   6716     PUSH32(esp, 0); /* 0x47095E26: push 0 */
   6717     PUSH32(esp, 0x82u); /* 0x47095E28: push 0x82 */
   6718     PUSH32(esp, 0x4710D200u); /* 0x47095E2D: push 0x4710d200 */
   6719     ecx = esi; /* 0x47095E32: mov ecx, esi */
   6720     RECOMP_ICALL(0x4703A340u); /* 0x47095E34: call 0x4703a340 */ /* not lifted */
   6721     RECOMP_FLAGS_IN();
   6722     ecx = ebp; /* 0x47095E39: mov ecx, ebp */
   6723     RECOMP_ICALL(0x470881B0u); /* 0x47095E3B: call 0x470881b0 */ /* not lifted */
   6724     RECOMP_FLAGS_IN();
   6725     edi = MEM32(eax + 0x4); /* 0x47095E40: mov edi, dword ptr [eax + 4] */
   6726     ecx = ebp; /* 0x47095E43: mov ecx, ebp */
   6727     RECOMP_ICALL(0x470881B0u); /* 0x47095E45: call 0x470881b0 */ /* not lifted */
   6728     RECOMP_FLAGS_IN();
   6729     eax = MEM32(eax); /* 0x47095E4A: mov eax, dword ptr [eax] */
   6730     PUSH32(esp, edi); /* 0x47095E4C: push edi */
   6731     PUSH32(esp, eax); /* 0x47095E4D: push eax */
   6732     PUSH32(esp, 0x471087D0u); /* 0x47095E4E: push 0x471087d0 */
   6733     PUSH32(esp, 4); /* 0x47095E53: push 4 */
   6734     PUSH32(esp, esi); /* 0x47095E55: push esi */
   6735     RECOMP_ICALL(0x47039830u); /* 0x47095E56: call 0x47039830 */ /* not lifted */
   6736     RECOMP_FLAGS_IN();
   6737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6738     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6739     esp = esp + 0x14u; /* 0x47095E5B: add esp, 0x14 */
   6740     _flag_k = FK_ADD;
   6741 L_47095E5E:
   6742     RECOMP_ICALL(ebx); /* 0x47095E5E: call ebx */
   6743     RECOMP_FLAGS_IN();
   6744     edi = eax; /* 0x47095E60: mov edi, eax */
   6745     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095E62: call dword ptr [0x470ac3c8] */
   6746     RECOMP_FLAGS_IN();
   6747     eax = MEM32(eax); /* 0x47095E68: mov eax, dword ptr [eax] */
   6748     /* test eax, eax */ /* 0x47095E6A: test eax, eax */
   6749     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6750     _cf = 0;
   6751     _flag_k = FK_TEST;
   6752     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E70; /* 0x47095E6C: je 0x47095e70 */
   6753 L_47095E6E:
   6754     edi = eax; /* 0x47095E6E: mov edi, eax */
   6755 L_47095E70:
   6756     RECOMP_ICALL(0x47039020u); /* 0x47095E70: call 0x47039020 */ /* not lifted */
   6757     RECOMP_FLAGS_IN();
   6758     esi = eax; /* 0x47095E75: mov esi, eax */
   6759     ecx = esi; /* 0x47095E77: mov ecx, esi */
   6760     RECOMP_ICALL(0x4703B210u); /* 0x47095E79: call 0x4703b210 */ /* not lifted */
   6761     RECOMP_FLAGS_IN();
   6762     PUSH32(esp, eax); /* 0x47095E7E: push eax */
   6763     ecx = esi; /* 0x47095E7F: mov ecx, esi */
   6764     RECOMP_ICALL(0x4703B240u); /* 0x47095E81: call 0x4703b240 */ /* not lifted */
   6765     RECOMP_FLAGS_IN();
   6766     PUSH32(esp, eax); /* 0x47095E86: push eax */
   6767     ecx = esi; /* 0x47095E87: mov ecx, esi */
   6768     RECOMP_ICALL(0x4703B080u); /* 0x47095E89: call 0x4703b080 */ /* not lifted */
   6769     RECOMP_FLAGS_IN();
   6770     PUSH32(esp, eax); /* 0x47095E8E: push eax */
   6771     PUSH32(esp, edi); /* 0x47095E8F: push edi */
   6772     PUSH32(esp, 0); /* 0x47095E90: push 0 */
   6773     PUSH32(esp, 0x84u); /* 0x47095E92: push 0x84 */
   6774     PUSH32(esp, 0x4710D200u); /* 0x47095E97: push 0x4710d200 */
   6775     ecx = esi; /* 0x47095E9C: mov ecx, esi */
   6776     RECOMP_ICALL(0x4703A340u); /* 0x47095E9E: call 0x4703a340 */ /* not lifted */
   6777     RECOMP_FLAGS_IN();
   6778     PUSH32(esp, 0x4710529Cu); /* 0x47095EA3: push 0x4710529c */
   6779     PUSH32(esp, 4); /* 0x47095EA8: push 4 */
   6780     PUSH32(esp, esi); /* 0x47095EAA: push esi */
   6781     RECOMP_ICALL(0x47039830u); /* 0x47095EAB: call 0x47039830 */ /* not lifted */
   6782     RECOMP_FLAGS_IN();
   6783     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6784     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6785     esp = esp + 0xCu; /* 0x47095EB0: add esp, 0xc */
   6786     _flag_k = FK_ADD;
   6787     edi = POP32_VAL(esp); /* 0x47095EB3: pop edi */
   6788     esi = POP32_VAL(esp); /* 0x47095EB4: pop esi */
   6789     ebp = POP32_VAL(esp); /* 0x47095EB5: pop ebp */
   6790     ebx = POP32_VAL(esp); /* 0x47095EB6: pop ebx */
   6791     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095EB7: ret  */
   6792     RECOMP_REGS_OUT();
   6793 }
   6794 
   6795 void sub_47095D82(void) {
   6796     int _fpu_cmp = 0;
   6797     uint32_t _cf = 0;
   6798     int _df = 1;
   6799     uint32_t _flag_k = FK_NONE;
   6800     uint32_t _flag_a = 0, _flag_b = 0;
   6801     uint32_t _itail_tgt = 0;
   6802     RECOMP_REGS_LOCALS
   6803     RECOMP_ENTER(0x47095D82u);
   6804 
   6805 L_47095D82:
   6806     PUSH32(esp, 4); /* 0x47095D82: push 4 */
   6807     PUSH32(esp, esi); /* 0x47095D84: push esi */
   6808     RECOMP_ICALL(0x47039830u); /* 0x47095D85: call 0x47039830 */ /* not lifted */
   6809     RECOMP_FLAGS_IN();
   6810     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6811     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6812     esp = esp + 0xCu; /* 0x47095D8A: add esp, 0xc */
   6813     _flag_k = FK_ADD;
   6814     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x170u);
   6815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6816     ebp = ebp + 0x170u; /* 0x47095D8D: add ebp, 0x170 */
   6817     _flag_k = FK_ADD;
   6818     PUSH32(esp, 2); /* 0x47095D93: push 2 */
   6819     ecx = ebp; /* 0x47095D95: mov ecx, ebp */
   6820     RECOMP_ICALL(0x47088190u); /* 0x47095D97: call 0x47088190 */ /* not lifted */
   6821     RECOMP_FLAGS_IN();
   6822     /* test eax, eax */ /* 0x47095D9C: test eax, eax */
   6823     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6824     _cf = 0;
   6825     _flag_k = FK_TEST;
   6826     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095DF4; /* 0x47095D9E: jne 0x47095df4 */
   6827 L_47095DA0:
   6828     RECOMP_ICALL(ebx); /* 0x47095DA0: call ebx */
   6829     RECOMP_FLAGS_IN();
   6830     edi = eax; /* 0x47095DA2: mov edi, eax */
   6831     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095DA4: call dword ptr [0x470ac3c8] */
   6832     RECOMP_FLAGS_IN();
   6833     eax = MEM32(eax); /* 0x47095DAA: mov eax, dword ptr [eax] */
   6834     /* test eax, eax */ /* 0x47095DAC: test eax, eax */
   6835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6836     _cf = 0;
   6837     _flag_k = FK_TEST;
   6838     if (TEST_Z(_flag_a, _flag_b)) goto L_47095DB2; /* 0x47095DAE: je 0x47095db2 */
   6839 L_47095DB0:
   6840     edi = eax; /* 0x47095DB0: mov edi, eax */
   6841 L_47095DB2:
   6842     RECOMP_ICALL(0x47039020u); /* 0x47095DB2: call 0x47039020 */ /* not lifted */
   6843     RECOMP_FLAGS_IN();
   6844     esi = eax; /* 0x47095DB7: mov esi, eax */
   6845     ecx = esi; /* 0x47095DB9: mov ecx, esi */
   6846     RECOMP_ICALL(0x4703B210u); /* 0x47095DBB: call 0x4703b210 */ /* not lifted */
   6847     RECOMP_FLAGS_IN();
   6848     PUSH32(esp, eax); /* 0x47095DC0: push eax */
   6849     ecx = esi; /* 0x47095DC1: mov ecx, esi */
   6850     RECOMP_ICALL(0x4703B240u); /* 0x47095DC3: call 0x4703b240 */ /* not lifted */
   6851     RECOMP_FLAGS_IN();
   6852     PUSH32(esp, eax); /* 0x47095DC8: push eax */
   6853     ecx = esi; /* 0x47095DC9: mov ecx, esi */
   6854     RECOMP_ICALL(0x4703B080u); /* 0x47095DCB: call 0x4703b080 */ /* not lifted */
   6855     RECOMP_FLAGS_IN();
   6856     PUSH32(esp, eax); /* 0x47095DD0: push eax */
   6857     PUSH32(esp, edi); /* 0x47095DD1: push edi */
   6858     PUSH32(esp, 0); /* 0x47095DD2: push 0 */
   6859     PUSH32(esp, 0x7Eu); /* 0x47095DD4: push 0x7e */
   6860     PUSH32(esp, 0x4710D200u); /* 0x47095DD6: push 0x4710d200 */
   6861     ecx = esi; /* 0x47095DDB: mov ecx, esi */
   6862     RECOMP_ICALL(0x4703A340u); /* 0x47095DDD: call 0x4703a340 */ /* not lifted */
   6863     RECOMP_FLAGS_IN();
   6864     PUSH32(esp, 0x471087F4u); /* 0x47095DE2: push 0x471087f4 */
   6865     PUSH32(esp, 4); /* 0x47095DE7: push 4 */
   6866     PUSH32(esp, esi); /* 0x47095DE9: push esi */
   6867     RECOMP_ICALL(0x47039830u); /* 0x47095DEA: call 0x47039830 */ /* not lifted */
   6868     RECOMP_FLAGS_IN();
   6869     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6870     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6871     esp = esp + 0xCu; /* 0x47095DEF: add esp, 0xc */
   6872     _flag_k = FK_ADD;
   6873     goto L_47095E5E; /* 0x47095DF2: jmp 0x47095e5e */
   6874 L_47095DF4:
   6875     RECOMP_ICALL(ebx); /* 0x47095DF4: call ebx */
   6876     RECOMP_FLAGS_IN();
   6877     edi = eax; /* 0x47095DF6: mov edi, eax */
   6878     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095DF8: call dword ptr [0x470ac3c8] */
   6879     RECOMP_FLAGS_IN();
   6880     eax = MEM32(eax); /* 0x47095DFE: mov eax, dword ptr [eax] */
   6881     /* test eax, eax */ /* 0x47095E00: test eax, eax */
   6882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6883     _cf = 0;
   6884     _flag_k = FK_TEST;
   6885     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E06; /* 0x47095E02: je 0x47095e06 */
   6886 L_47095E04:
   6887     edi = eax; /* 0x47095E04: mov edi, eax */
   6888 L_47095E06:
   6889     RECOMP_ICALL(0x47039020u); /* 0x47095E06: call 0x47039020 */ /* not lifted */
   6890     RECOMP_FLAGS_IN();
   6891     esi = eax; /* 0x47095E0B: mov esi, eax */
   6892     ecx = esi; /* 0x47095E0D: mov ecx, esi */
   6893     RECOMP_ICALL(0x4703B210u); /* 0x47095E0F: call 0x4703b210 */ /* not lifted */
   6894     RECOMP_FLAGS_IN();
   6895     PUSH32(esp, eax); /* 0x47095E14: push eax */
   6896     ecx = esi; /* 0x47095E15: mov ecx, esi */
   6897     RECOMP_ICALL(0x4703B240u); /* 0x47095E17: call 0x4703b240 */ /* not lifted */
   6898     RECOMP_FLAGS_IN();
   6899     PUSH32(esp, eax); /* 0x47095E1C: push eax */
   6900     ecx = esi; /* 0x47095E1D: mov ecx, esi */
   6901     RECOMP_ICALL(0x4703B080u); /* 0x47095E1F: call 0x4703b080 */ /* not lifted */
   6902     RECOMP_FLAGS_IN();
   6903     PUSH32(esp, eax); /* 0x47095E24: push eax */
   6904     PUSH32(esp, edi); /* 0x47095E25: push edi */
   6905     PUSH32(esp, 0); /* 0x47095E26: push 0 */
   6906     PUSH32(esp, 0x82u); /* 0x47095E28: push 0x82 */
   6907     PUSH32(esp, 0x4710D200u); /* 0x47095E2D: push 0x4710d200 */
   6908     ecx = esi; /* 0x47095E32: mov ecx, esi */
   6909     RECOMP_ICALL(0x4703A340u); /* 0x47095E34: call 0x4703a340 */ /* not lifted */
   6910     RECOMP_FLAGS_IN();
   6911     ecx = ebp; /* 0x47095E39: mov ecx, ebp */
   6912     RECOMP_ICALL(0x470881B0u); /* 0x47095E3B: call 0x470881b0 */ /* not lifted */
   6913     RECOMP_FLAGS_IN();
   6914     edi = MEM32(eax + 0x4); /* 0x47095E40: mov edi, dword ptr [eax + 4] */
   6915     ecx = ebp; /* 0x47095E43: mov ecx, ebp */
   6916     RECOMP_ICALL(0x470881B0u); /* 0x47095E45: call 0x470881b0 */ /* not lifted */
   6917     RECOMP_FLAGS_IN();
   6918     eax = MEM32(eax); /* 0x47095E4A: mov eax, dword ptr [eax] */
   6919     PUSH32(esp, edi); /* 0x47095E4C: push edi */
   6920     PUSH32(esp, eax); /* 0x47095E4D: push eax */
   6921     PUSH32(esp, 0x471087D0u); /* 0x47095E4E: push 0x471087d0 */
   6922     PUSH32(esp, 4); /* 0x47095E53: push 4 */
   6923     PUSH32(esp, esi); /* 0x47095E55: push esi */
   6924     RECOMP_ICALL(0x47039830u); /* 0x47095E56: call 0x47039830 */ /* not lifted */
   6925     RECOMP_FLAGS_IN();
   6926     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6927     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6928     esp = esp + 0x14u; /* 0x47095E5B: add esp, 0x14 */
   6929     _flag_k = FK_ADD;
   6930 L_47095E5E:
   6931     RECOMP_ICALL(ebx); /* 0x47095E5E: call ebx */
   6932     RECOMP_FLAGS_IN();
   6933     edi = eax; /* 0x47095E60: mov edi, eax */
   6934     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095E62: call dword ptr [0x470ac3c8] */
   6935     RECOMP_FLAGS_IN();
   6936     eax = MEM32(eax); /* 0x47095E68: mov eax, dword ptr [eax] */
   6937     /* test eax, eax */ /* 0x47095E6A: test eax, eax */
   6938     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6939     _cf = 0;
   6940     _flag_k = FK_TEST;
   6941     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E70; /* 0x47095E6C: je 0x47095e70 */
   6942 L_47095E6E:
   6943     edi = eax; /* 0x47095E6E: mov edi, eax */
   6944 L_47095E70:
   6945     RECOMP_ICALL(0x47039020u); /* 0x47095E70: call 0x47039020 */ /* not lifted */
   6946     RECOMP_FLAGS_IN();
   6947     esi = eax; /* 0x47095E75: mov esi, eax */
   6948     ecx = esi; /* 0x47095E77: mov ecx, esi */
   6949     RECOMP_ICALL(0x4703B210u); /* 0x47095E79: call 0x4703b210 */ /* not lifted */
   6950     RECOMP_FLAGS_IN();
   6951     PUSH32(esp, eax); /* 0x47095E7E: push eax */
   6952     ecx = esi; /* 0x47095E7F: mov ecx, esi */
   6953     RECOMP_ICALL(0x4703B240u); /* 0x47095E81: call 0x4703b240 */ /* not lifted */
   6954     RECOMP_FLAGS_IN();
   6955     PUSH32(esp, eax); /* 0x47095E86: push eax */
   6956     ecx = esi; /* 0x47095E87: mov ecx, esi */
   6957     RECOMP_ICALL(0x4703B080u); /* 0x47095E89: call 0x4703b080 */ /* not lifted */
   6958     RECOMP_FLAGS_IN();
   6959     PUSH32(esp, eax); /* 0x47095E8E: push eax */
   6960     PUSH32(esp, edi); /* 0x47095E8F: push edi */
   6961     PUSH32(esp, 0); /* 0x47095E90: push 0 */
   6962     PUSH32(esp, 0x84u); /* 0x47095E92: push 0x84 */
   6963     PUSH32(esp, 0x4710D200u); /* 0x47095E97: push 0x4710d200 */
   6964     ecx = esi; /* 0x47095E9C: mov ecx, esi */
   6965     RECOMP_ICALL(0x4703A340u); /* 0x47095E9E: call 0x4703a340 */ /* not lifted */
   6966     RECOMP_FLAGS_IN();
   6967     PUSH32(esp, 0x4710529Cu); /* 0x47095EA3: push 0x4710529c */
   6968     PUSH32(esp, 4); /* 0x47095EA8: push 4 */
   6969     PUSH32(esp, esi); /* 0x47095EAA: push esi */
   6970     RECOMP_ICALL(0x47039830u); /* 0x47095EAB: call 0x47039830 */ /* not lifted */
   6971     RECOMP_FLAGS_IN();
   6972     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6973     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6974     esp = esp + 0xCu; /* 0x47095EB0: add esp, 0xc */
   6975     _flag_k = FK_ADD;
   6976     edi = POP32_VAL(esp); /* 0x47095EB3: pop edi */
   6977     esi = POP32_VAL(esp); /* 0x47095EB4: pop esi */
   6978     ebp = POP32_VAL(esp); /* 0x47095EB5: pop ebp */
   6979     ebx = POP32_VAL(esp); /* 0x47095EB6: pop ebx */
   6980     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095EB7: ret  */
   6981     RECOMP_REGS_OUT();
   6982 }
   6983 
   6984 void sub_47095D8D(void) {
   6985     int _fpu_cmp = 0;
   6986     uint32_t _cf = 0;
   6987     int _df = 1;
   6988     uint32_t _flag_k = FK_NONE;
   6989     uint32_t _flag_a = 0, _flag_b = 0;
   6990     uint32_t _itail_tgt = 0;
   6991     RECOMP_REGS_LOCALS
   6992     RECOMP_ENTER(0x47095D8Du);
   6993 
   6994 L_47095D8D:
   6995     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x170u);
   6996     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6997     ebp = ebp + 0x170u; /* 0x47095D8D: add ebp, 0x170 */
   6998     _flag_k = FK_ADD;
   6999     PUSH32(esp, 2); /* 0x47095D93: push 2 */
   7000     ecx = ebp; /* 0x47095D95: mov ecx, ebp */
   7001     RECOMP_ICALL(0x47088190u); /* 0x47095D97: call 0x47088190 */ /* not lifted */
   7002     RECOMP_FLAGS_IN();
   7003     /* test eax, eax */ /* 0x47095D9C: test eax, eax */
   7004     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7005     _cf = 0;
   7006     _flag_k = FK_TEST;
   7007     if (TEST_NZ(_flag_a, _flag_b)) goto L_47095DF4; /* 0x47095D9E: jne 0x47095df4 */
   7008 L_47095DA0:
   7009     RECOMP_ICALL(ebx); /* 0x47095DA0: call ebx */
   7010     RECOMP_FLAGS_IN();
   7011     edi = eax; /* 0x47095DA2: mov edi, eax */
   7012     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095DA4: call dword ptr [0x470ac3c8] */
   7013     RECOMP_FLAGS_IN();
   7014     eax = MEM32(eax); /* 0x47095DAA: mov eax, dword ptr [eax] */
   7015     /* test eax, eax */ /* 0x47095DAC: test eax, eax */
   7016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7017     _cf = 0;
   7018     _flag_k = FK_TEST;
   7019     if (TEST_Z(_flag_a, _flag_b)) goto L_47095DB2; /* 0x47095DAE: je 0x47095db2 */
   7020 L_47095DB0:
   7021     edi = eax; /* 0x47095DB0: mov edi, eax */
   7022 L_47095DB2:
   7023     RECOMP_ICALL(0x47039020u); /* 0x47095DB2: call 0x47039020 */ /* not lifted */
   7024     RECOMP_FLAGS_IN();
   7025     esi = eax; /* 0x47095DB7: mov esi, eax */
   7026     ecx = esi; /* 0x47095DB9: mov ecx, esi */
   7027     RECOMP_ICALL(0x4703B210u); /* 0x47095DBB: call 0x4703b210 */ /* not lifted */
   7028     RECOMP_FLAGS_IN();
   7029     PUSH32(esp, eax); /* 0x47095DC0: push eax */
   7030     ecx = esi; /* 0x47095DC1: mov ecx, esi */
   7031     RECOMP_ICALL(0x4703B240u); /* 0x47095DC3: call 0x4703b240 */ /* not lifted */
   7032     RECOMP_FLAGS_IN();
   7033     PUSH32(esp, eax); /* 0x47095DC8: push eax */
   7034     ecx = esi; /* 0x47095DC9: mov ecx, esi */
   7035     RECOMP_ICALL(0x4703B080u); /* 0x47095DCB: call 0x4703b080 */ /* not lifted */
   7036     RECOMP_FLAGS_IN();
   7037     PUSH32(esp, eax); /* 0x47095DD0: push eax */
   7038     PUSH32(esp, edi); /* 0x47095DD1: push edi */
   7039     PUSH32(esp, 0); /* 0x47095DD2: push 0 */
   7040     PUSH32(esp, 0x7Eu); /* 0x47095DD4: push 0x7e */
   7041     PUSH32(esp, 0x4710D200u); /* 0x47095DD6: push 0x4710d200 */
   7042     ecx = esi; /* 0x47095DDB: mov ecx, esi */
   7043     RECOMP_ICALL(0x4703A340u); /* 0x47095DDD: call 0x4703a340 */ /* not lifted */
   7044     RECOMP_FLAGS_IN();
   7045     PUSH32(esp, 0x471087F4u); /* 0x47095DE2: push 0x471087f4 */
   7046     PUSH32(esp, 4); /* 0x47095DE7: push 4 */
   7047     PUSH32(esp, esi); /* 0x47095DE9: push esi */
   7048     RECOMP_ICALL(0x47039830u); /* 0x47095DEA: call 0x47039830 */ /* not lifted */
   7049     RECOMP_FLAGS_IN();
   7050     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7051     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7052     esp = esp + 0xCu; /* 0x47095DEF: add esp, 0xc */
   7053     _flag_k = FK_ADD;
   7054     goto L_47095E5E; /* 0x47095DF2: jmp 0x47095e5e */
   7055 L_47095DF4:
   7056     RECOMP_ICALL(ebx); /* 0x47095DF4: call ebx */
   7057     RECOMP_FLAGS_IN();
   7058     edi = eax; /* 0x47095DF6: mov edi, eax */
   7059     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095DF8: call dword ptr [0x470ac3c8] */
   7060     RECOMP_FLAGS_IN();
   7061     eax = MEM32(eax); /* 0x47095DFE: mov eax, dword ptr [eax] */
   7062     /* test eax, eax */ /* 0x47095E00: test eax, eax */
   7063     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7064     _cf = 0;
   7065     _flag_k = FK_TEST;
   7066     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E06; /* 0x47095E02: je 0x47095e06 */
   7067 L_47095E04:
   7068     edi = eax; /* 0x47095E04: mov edi, eax */
   7069 L_47095E06:
   7070     RECOMP_ICALL(0x47039020u); /* 0x47095E06: call 0x47039020 */ /* not lifted */
   7071     RECOMP_FLAGS_IN();
   7072     esi = eax; /* 0x47095E0B: mov esi, eax */
   7073     ecx = esi; /* 0x47095E0D: mov ecx, esi */
   7074     RECOMP_ICALL(0x4703B210u); /* 0x47095E0F: call 0x4703b210 */ /* not lifted */
   7075     RECOMP_FLAGS_IN();
   7076     PUSH32(esp, eax); /* 0x47095E14: push eax */
   7077     ecx = esi; /* 0x47095E15: mov ecx, esi */
   7078     RECOMP_ICALL(0x4703B240u); /* 0x47095E17: call 0x4703b240 */ /* not lifted */
   7079     RECOMP_FLAGS_IN();
   7080     PUSH32(esp, eax); /* 0x47095E1C: push eax */
   7081     ecx = esi; /* 0x47095E1D: mov ecx, esi */
   7082     RECOMP_ICALL(0x4703B080u); /* 0x47095E1F: call 0x4703b080 */ /* not lifted */
   7083     RECOMP_FLAGS_IN();
   7084     PUSH32(esp, eax); /* 0x47095E24: push eax */
   7085     PUSH32(esp, edi); /* 0x47095E25: push edi */
   7086     PUSH32(esp, 0); /* 0x47095E26: push 0 */
   7087     PUSH32(esp, 0x82u); /* 0x47095E28: push 0x82 */
   7088     PUSH32(esp, 0x4710D200u); /* 0x47095E2D: push 0x4710d200 */
   7089     ecx = esi; /* 0x47095E32: mov ecx, esi */
   7090     RECOMP_ICALL(0x4703A340u); /* 0x47095E34: call 0x4703a340 */ /* not lifted */
   7091     RECOMP_FLAGS_IN();
   7092     ecx = ebp; /* 0x47095E39: mov ecx, ebp */
   7093     RECOMP_ICALL(0x470881B0u); /* 0x47095E3B: call 0x470881b0 */ /* not lifted */
   7094     RECOMP_FLAGS_IN();
   7095     edi = MEM32(eax + 0x4); /* 0x47095E40: mov edi, dword ptr [eax + 4] */
   7096     ecx = ebp; /* 0x47095E43: mov ecx, ebp */
   7097     RECOMP_ICALL(0x470881B0u); /* 0x47095E45: call 0x470881b0 */ /* not lifted */
   7098     RECOMP_FLAGS_IN();
   7099     eax = MEM32(eax); /* 0x47095E4A: mov eax, dword ptr [eax] */
   7100     PUSH32(esp, edi); /* 0x47095E4C: push edi */
   7101     PUSH32(esp, eax); /* 0x47095E4D: push eax */
   7102     PUSH32(esp, 0x471087D0u); /* 0x47095E4E: push 0x471087d0 */
   7103     PUSH32(esp, 4); /* 0x47095E53: push 4 */
   7104     PUSH32(esp, esi); /* 0x47095E55: push esi */
   7105     RECOMP_ICALL(0x47039830u); /* 0x47095E56: call 0x47039830 */ /* not lifted */
   7106     RECOMP_FLAGS_IN();
   7107     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7108     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7109     esp = esp + 0x14u; /* 0x47095E5B: add esp, 0x14 */
   7110     _flag_k = FK_ADD;
   7111 L_47095E5E:
   7112     RECOMP_ICALL(ebx); /* 0x47095E5E: call ebx */
   7113     RECOMP_FLAGS_IN();
   7114     edi = eax; /* 0x47095E60: mov edi, eax */
   7115     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095E62: call dword ptr [0x470ac3c8] */
   7116     RECOMP_FLAGS_IN();
   7117     eax = MEM32(eax); /* 0x47095E68: mov eax, dword ptr [eax] */
   7118     /* test eax, eax */ /* 0x47095E6A: test eax, eax */
   7119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7120     _cf = 0;
   7121     _flag_k = FK_TEST;
   7122     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E70; /* 0x47095E6C: je 0x47095e70 */
   7123 L_47095E6E:
   7124     edi = eax; /* 0x47095E6E: mov edi, eax */
   7125 L_47095E70:
   7126     RECOMP_ICALL(0x47039020u); /* 0x47095E70: call 0x47039020 */ /* not lifted */
   7127     RECOMP_FLAGS_IN();
   7128     esi = eax; /* 0x47095E75: mov esi, eax */
   7129     ecx = esi; /* 0x47095E77: mov ecx, esi */
   7130     RECOMP_ICALL(0x4703B210u); /* 0x47095E79: call 0x4703b210 */ /* not lifted */
   7131     RECOMP_FLAGS_IN();
   7132     PUSH32(esp, eax); /* 0x47095E7E: push eax */
   7133     ecx = esi; /* 0x47095E7F: mov ecx, esi */
   7134     RECOMP_ICALL(0x4703B240u); /* 0x47095E81: call 0x4703b240 */ /* not lifted */
   7135     RECOMP_FLAGS_IN();
   7136     PUSH32(esp, eax); /* 0x47095E86: push eax */
   7137     ecx = esi; /* 0x47095E87: mov ecx, esi */
   7138     RECOMP_ICALL(0x4703B080u); /* 0x47095E89: call 0x4703b080 */ /* not lifted */
   7139     RECOMP_FLAGS_IN();
   7140     PUSH32(esp, eax); /* 0x47095E8E: push eax */
   7141     PUSH32(esp, edi); /* 0x47095E8F: push edi */
   7142     PUSH32(esp, 0); /* 0x47095E90: push 0 */
   7143     PUSH32(esp, 0x84u); /* 0x47095E92: push 0x84 */
   7144     PUSH32(esp, 0x4710D200u); /* 0x47095E97: push 0x4710d200 */
   7145     ecx = esi; /* 0x47095E9C: mov ecx, esi */
   7146     RECOMP_ICALL(0x4703A340u); /* 0x47095E9E: call 0x4703a340 */ /* not lifted */
   7147     RECOMP_FLAGS_IN();
   7148     PUSH32(esp, 0x4710529Cu); /* 0x47095EA3: push 0x4710529c */
   7149     PUSH32(esp, 4); /* 0x47095EA8: push 4 */
   7150     PUSH32(esp, esi); /* 0x47095EAA: push esi */
   7151     RECOMP_ICALL(0x47039830u); /* 0x47095EAB: call 0x47039830 */ /* not lifted */
   7152     RECOMP_FLAGS_IN();
   7153     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7155     esp = esp + 0xCu; /* 0x47095EB0: add esp, 0xc */
   7156     _flag_k = FK_ADD;
   7157     edi = POP32_VAL(esp); /* 0x47095EB3: pop edi */
   7158     esi = POP32_VAL(esp); /* 0x47095EB4: pop esi */
   7159     ebp = POP32_VAL(esp); /* 0x47095EB5: pop ebp */
   7160     ebx = POP32_VAL(esp); /* 0x47095EB6: pop ebx */
   7161     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095EB7: ret  */
   7162     RECOMP_REGS_OUT();
   7163 }
   7164 
   7165 void sub_47095E5E(void) {
   7166     int _fpu_cmp = 0;
   7167     uint32_t _cf = 0;
   7168     int _df = 1;
   7169     uint32_t _flag_k = FK_NONE;
   7170     uint32_t _flag_a = 0, _flag_b = 0;
   7171     uint32_t _itail_tgt = 0;
   7172     RECOMP_REGS_LOCALS
   7173     RECOMP_ENTER(0x47095E5Eu);
   7174 
   7175 L_47095E5E:
   7176     RECOMP_ICALL(ebx); /* 0x47095E5E: call ebx */
   7177     RECOMP_FLAGS_IN();
   7178     edi = eax; /* 0x47095E60: mov edi, eax */
   7179     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095E62: call dword ptr [0x470ac3c8] */
   7180     RECOMP_FLAGS_IN();
   7181     eax = MEM32(eax); /* 0x47095E68: mov eax, dword ptr [eax] */
   7182     /* test eax, eax */ /* 0x47095E6A: test eax, eax */
   7183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7184     _cf = 0;
   7185     _flag_k = FK_TEST;
   7186     if (TEST_Z(_flag_a, _flag_b)) goto L_47095E70; /* 0x47095E6C: je 0x47095e70 */
   7187 L_47095E6E:
   7188     edi = eax; /* 0x47095E6E: mov edi, eax */
   7189 L_47095E70:
   7190     RECOMP_ICALL(0x47039020u); /* 0x47095E70: call 0x47039020 */ /* not lifted */
   7191     RECOMP_FLAGS_IN();
   7192     esi = eax; /* 0x47095E75: mov esi, eax */
   7193     ecx = esi; /* 0x47095E77: mov ecx, esi */
   7194     RECOMP_ICALL(0x4703B210u); /* 0x47095E79: call 0x4703b210 */ /* not lifted */
   7195     RECOMP_FLAGS_IN();
   7196     PUSH32(esp, eax); /* 0x47095E7E: push eax */
   7197     ecx = esi; /* 0x47095E7F: mov ecx, esi */
   7198     RECOMP_ICALL(0x4703B240u); /* 0x47095E81: call 0x4703b240 */ /* not lifted */
   7199     RECOMP_FLAGS_IN();
   7200     PUSH32(esp, eax); /* 0x47095E86: push eax */
   7201     ecx = esi; /* 0x47095E87: mov ecx, esi */
   7202     RECOMP_ICALL(0x4703B080u); /* 0x47095E89: call 0x4703b080 */ /* not lifted */
   7203     RECOMP_FLAGS_IN();
   7204     PUSH32(esp, eax); /* 0x47095E8E: push eax */
   7205     PUSH32(esp, edi); /* 0x47095E8F: push edi */
   7206     PUSH32(esp, 0); /* 0x47095E90: push 0 */
   7207     PUSH32(esp, 0x84u); /* 0x47095E92: push 0x84 */
   7208     PUSH32(esp, 0x4710D200u); /* 0x47095E97: push 0x4710d200 */
   7209     ecx = esi; /* 0x47095E9C: mov ecx, esi */
   7210     RECOMP_ICALL(0x4703A340u); /* 0x47095E9E: call 0x4703a340 */ /* not lifted */
   7211     RECOMP_FLAGS_IN();
   7212     PUSH32(esp, 0x4710529Cu); /* 0x47095EA3: push 0x4710529c */
   7213     PUSH32(esp, 4); /* 0x47095EA8: push 4 */
   7214     PUSH32(esp, esi); /* 0x47095EAA: push esi */
   7215     RECOMP_ICALL(0x47039830u); /* 0x47095EAB: call 0x47039830 */ /* not lifted */
   7216     RECOMP_FLAGS_IN();
   7217     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7218     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7219     esp = esp + 0xCu; /* 0x47095EB0: add esp, 0xc */
   7220     _flag_k = FK_ADD;
   7221     edi = POP32_VAL(esp); /* 0x47095EB3: pop edi */
   7222     esi = POP32_VAL(esp); /* 0x47095EB4: pop esi */
   7223     ebp = POP32_VAL(esp); /* 0x47095EB5: pop ebp */
   7224     ebx = POP32_VAL(esp); /* 0x47095EB6: pop ebx */
   7225     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095EB7: ret  */
   7226     RECOMP_REGS_OUT();
   7227 }
   7228 
   7229 void sub_47095EC0(void) {
   7230     int _fpu_cmp = 0;
   7231     uint32_t _cf = 0;
   7232     int _df = 1;
   7233     uint32_t _flag_k = FK_NONE;
   7234     uint32_t _flag_a = 0, _flag_b = 0;
   7235     uint32_t _itail_tgt = 0;
   7236     RECOMP_REGS_LOCALS
   7237     RECOMP_ENTER(0x47095EC0u);
   7238 
   7239 L_47095EC0:
   7240     PUSH32(esp, esi); /* 0x47095EC0: push esi */
   7241     PUSH32(esp, edi); /* 0x47095EC1: push edi */
   7242     edi = MEM32(0x470AC4AC); /* 0x47095EC2: mov edi, dword ptr [0x470ac4ac] */
   7243     PUSH32(esp, 0); /* 0x47095EC8: push 0 */
   7244     esi = ecx; /* 0x47095ECA: mov esi, ecx */
   7245     RECOMP_ICALL(edi); /* 0x47095ECC: call edi */
   7246     RECOMP_FLAGS_IN();
   7247     PUSH32(esp, 0); /* 0x47095ECE: push 0 */
   7248     MEM32(esi + 0x8) = eax; /* 0x47095ED0: mov dword ptr [esi + 8], eax */
   7249     RECOMP_ICALL(edi); /* 0x47095ED3: call edi */
   7250     RECOMP_FLAGS_IN();
   7251     PUSH32(esp, 0xCu); /* 0x47095ED5: push 0xc */
   7252     MEM32(esi + 0x4) = eax; /* 0x47095ED7: mov dword ptr [esi + 4], eax */
   7253     RECOMP_ICALL(edi); /* 0x47095EDA: call edi */
   7254     RECOMP_FLAGS_IN();
   7255     MEM32(esi) = eax; /* 0x47095EDC: mov dword ptr [esi], eax */
   7256     edi = POP32_VAL(esp); /* 0x47095EDE: pop edi */
   7257     eax = esi; /* 0x47095EDF: mov eax, esi */
   7258     esi = POP32_VAL(esp); /* 0x47095EE1: pop esi */
   7259     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095EE2: ret  */
   7260     RECOMP_REGS_OUT();
   7261 }
   7262 
   7263 void sub_47095EF0(void) {
   7264     int _fpu_cmp = 0;
   7265     uint32_t _cf = 0;
   7266     int _df = 1;
   7267     uint32_t _flag_k = FK_NONE;
   7268     uint32_t _flag_a = 0, _flag_b = 0;
   7269     uint32_t _itail_tgt = 0;
   7270     RECOMP_REGS_LOCALS
   7271     RECOMP_ENTER(0x47095EF0u);
   7272 
   7273 L_47095EF0:
   7274     eax = MEM32(esp + 0x4); /* 0x47095EF0: mov eax, dword ptr [esp + 4] */
   7275     MEM32(eax) = ecx; /* 0x47095EF4: mov dword ptr [eax], ecx */
   7276     ecx = MEM32(ecx); /* 0x47095EF6: mov ecx, dword ptr [ecx] */
   7277     PUSH32(esp, ecx); /* 0x47095EF8: push ecx */
   7278     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47095EF9: call dword ptr [0x470ac4b0] */
   7279     RECOMP_FLAGS_IN();
   7280     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47095EFF: ret 4 */
   7281     RECOMP_REGS_OUT();
   7282 }
   7283 
   7284 void sub_47095F10(void) {
   7285     int _fpu_cmp = 0;
   7286     uint32_t _cf = 0;
   7287     int _df = 1;
   7288     uint32_t _flag_k = FK_NONE;
   7289     uint32_t _flag_a = 0, _flag_b = 0;
   7290     uint32_t _itail_tgt = 0;
   7291     RECOMP_REGS_LOCALS
   7292     RECOMP_ENTER(0x47095F10u);
   7293 
   7294 L_47095F10:
   7295     PUSH32(esp, ebx); /* 0x47095F10: push ebx */
   7296     PUSH32(esp, ebp); /* 0x47095F11: push ebp */
   7297     PUSH32(esp, esi); /* 0x47095F12: push esi */
   7298     PUSH32(esp, edi); /* 0x47095F13: push edi */
   7299     edi = ecx; /* 0x47095F14: mov edi, ecx */
   7300     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47095F16: call dword ptr [0x470ac150] */
   7301     RECOMP_FLAGS_IN();
   7302     ebx = eax; /* 0x47095F1C: mov ebx, eax */
   7303     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095F1E: call dword ptr [0x470ac3c8] */
   7304     RECOMP_FLAGS_IN();
   7305     eax = MEM32(eax); /* 0x47095F24: mov eax, dword ptr [eax] */
   7306     /* test eax, eax */ /* 0x47095F26: test eax, eax */
   7307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7308     _cf = 0;
   7309     _flag_k = FK_TEST;
   7310     if (TEST_Z(_flag_a, _flag_b)) goto L_47095F2C; /* 0x47095F28: je 0x47095f2c */
   7311 L_47095F2A:
   7312     ebx = eax; /* 0x47095F2A: mov ebx, eax */
   7313 L_47095F2C:
   7314     RECOMP_ICALL(0x47039020u); /* 0x47095F2C: call 0x47039020 */ /* not lifted */
   7315     RECOMP_FLAGS_IN();
   7316     esi = eax; /* 0x47095F31: mov esi, eax */
   7317     ecx = esi; /* 0x47095F33: mov ecx, esi */
   7318     RECOMP_ICALL(0x4703B210u); /* 0x47095F35: call 0x4703b210 */ /* not lifted */
   7319     RECOMP_FLAGS_IN();
   7320     PUSH32(esp, eax); /* 0x47095F3A: push eax */
   7321     ecx = esi; /* 0x47095F3B: mov ecx, esi */
   7322     RECOMP_ICALL(0x4703B240u); /* 0x47095F3D: call 0x4703b240 */ /* not lifted */
   7323     RECOMP_FLAGS_IN();
   7324     PUSH32(esp, eax); /* 0x47095F42: push eax */
   7325     ecx = esi; /* 0x47095F43: mov ecx, esi */
   7326     RECOMP_ICALL(0x4703B080u); /* 0x47095F45: call 0x4703b080 */ /* not lifted */
   7327     RECOMP_FLAGS_IN();
   7328     PUSH32(esp, eax); /* 0x47095F4A: push eax */
   7329     PUSH32(esp, ebx); /* 0x47095F4B: push ebx */
   7330     PUSH32(esp, 0); /* 0x47095F4C: push 0 */
   7331     PUSH32(esp, 0xADu); /* 0x47095F4E: push 0xad */
   7332     PUSH32(esp, 0x4710D200u); /* 0x47095F53: push 0x4710d200 */
   7333     ecx = esi; /* 0x47095F58: mov ecx, esi */
   7334     RECOMP_ICALL(0x4703A340u); /* 0x47095F5A: call 0x4703a340 */ /* not lifted */
   7335     RECOMP_FLAGS_IN();
   7336     eax = MEM32(edi + 0x4); /* 0x47095F5F: mov eax, dword ptr [edi + 4] */
   7337     ebx = MEM32(0x470AC4B0); /* 0x47095F62: mov ebx, dword ptr [0x470ac4b0] */
   7338     PUSH32(esp, eax); /* 0x47095F68: push eax */
   7339     RECOMP_ICALL(ebx); /* 0x47095F69: call ebx */
   7340     RECOMP_FLAGS_IN();
   7341     ecx = MEM32(edi); /* 0x47095F6B: mov ecx, dword ptr [edi] */
   7342     PUSH32(esp, ecx); /* 0x47095F6D: push ecx */
   7343     ebp = eax; /* 0x47095F6E: mov ebp, eax */
   7344     RECOMP_ICALL(ebx); /* 0x47095F70: call ebx */
   7345     RECOMP_FLAGS_IN();
   7346     PUSH32(esp, ebp); /* 0x47095F72: push ebp */
   7347     PUSH32(esp, eax); /* 0x47095F73: push eax */
   7348     PUSH32(esp, 0x47108934u); /* 0x47095F74: push 0x47108934 */
   7349     PUSH32(esp, 4); /* 0x47095F79: push 4 */
   7350     PUSH32(esp, esi); /* 0x47095F7B: push esi */
   7351     RECOMP_ICALL(0x47039830u); /* 0x47095F7C: call 0x47039830 */ /* not lifted */
   7352     RECOMP_FLAGS_IN();
   7353     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7354     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7355     esp = esp + 0x14u; /* 0x47095F81: add esp, 0x14 */
   7356     _flag_k = FK_ADD;
   7357     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47095F84: call dword ptr [0x470ac150] */
   7358     RECOMP_FLAGS_IN();
   7359     esi = eax; /* 0x47095F8A: mov esi, eax */
   7360     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47095F8C: call dword ptr [0x470ac3c8] */
   7361     RECOMP_FLAGS_IN();
   7362     eax = MEM32(eax); /* 0x47095F92: mov eax, dword ptr [eax] */
   7363     /* test eax, eax */ /* 0x47095F94: test eax, eax */
   7364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7365     _cf = 0;
   7366     _flag_k = FK_TEST;
   7367     ebp = esi; /* 0x47095F96: mov ebp, esi */
   7368     if (TEST_Z(_flag_a, _flag_b)) goto L_47095F9C; /* 0x47095F98: je 0x47095f9c */
   7369 L_47095F9A:
   7370     ebp = eax; /* 0x47095F9A: mov ebp, eax */
   7371 L_47095F9C:
   7372     RECOMP_ICALL(0x47039020u); /* 0x47095F9C: call 0x47039020 */ /* not lifted */
   7373     RECOMP_FLAGS_IN();
   7374     esi = eax; /* 0x47095FA1: mov esi, eax */
   7375     ecx = esi; /* 0x47095FA3: mov ecx, esi */
   7376     RECOMP_ICALL(0x4703B210u); /* 0x47095FA5: call 0x4703b210 */ /* not lifted */
   7377     RECOMP_FLAGS_IN();
   7378     PUSH32(esp, eax); /* 0x47095FAA: push eax */
   7379     ecx = esi; /* 0x47095FAB: mov ecx, esi */
   7380     RECOMP_ICALL(0x4703B240u); /* 0x47095FAD: call 0x4703b240 */ /* not lifted */
   7381     RECOMP_FLAGS_IN();
   7382     PUSH32(esp, eax); /* 0x47095FB2: push eax */
   7383     ecx = esi; /* 0x47095FB3: mov ecx, esi */
   7384     RECOMP_ICALL(0x4703B080u); /* 0x47095FB5: call 0x4703b080 */ /* not lifted */
   7385     RECOMP_FLAGS_IN();
   7386     PUSH32(esp, eax); /* 0x47095FBA: push eax */
   7387     PUSH32(esp, ebp); /* 0x47095FBB: push ebp */
   7388     PUSH32(esp, 0); /* 0x47095FBC: push 0 */
   7389     PUSH32(esp, 0xAEu); /* 0x47095FBE: push 0xae */
   7390     PUSH32(esp, 0x4710D200u); /* 0x47095FC3: push 0x4710d200 */
   7391     ecx = esi; /* 0x47095FC8: mov ecx, esi */
   7392     RECOMP_ICALL(0x4703A340u); /* 0x47095FCA: call 0x4703a340 */ /* not lifted */
   7393     RECOMP_FLAGS_IN();
   7394     edx = MEM32(edi + 0x8); /* 0x47095FCF: mov edx, dword ptr [edi + 8] */
   7395     PUSH32(esp, edx); /* 0x47095FD2: push edx */
   7396     RECOMP_ICALL(ebx); /* 0x47095FD3: call ebx */
   7397     RECOMP_FLAGS_IN();
   7398     PUSH32(esp, eax); /* 0x47095FD5: push eax */
   7399     PUSH32(esp, 0x4710D244u); /* 0x47095FD6: push 0x4710d244 */
   7400     PUSH32(esp, 4); /* 0x47095FDB: push 4 */
   7401     PUSH32(esp, esi); /* 0x47095FDD: push esi */
   7402     RECOMP_ICALL(0x47039830u); /* 0x47095FDE: call 0x47039830 */ /* not lifted */
   7403     RECOMP_FLAGS_IN();
   7404     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7405     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7406     esp = esp + 0x10u; /* 0x47095FE3: add esp, 0x10 */
   7407     _flag_k = FK_ADD;
   7408     edi = POP32_VAL(esp); /* 0x47095FE6: pop edi */
   7409     esi = POP32_VAL(esp); /* 0x47095FE7: pop esi */
   7410     ebp = POP32_VAL(esp); /* 0x47095FE8: pop ebp */
   7411     ebx = POP32_VAL(esp); /* 0x47095FE9: pop ebx */
   7412     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47095FEA: ret  */
   7413     RECOMP_REGS_OUT();
   7414 }
   7415 
   7416 void sub_47095FF0(void) {
   7417     int _fpu_cmp = 0;
   7418     uint32_t _cf = 0;
   7419     int _df = 1;
   7420     uint32_t _flag_k = FK_NONE;
   7421     uint32_t _flag_a = 0, _flag_b = 0;
   7422     uint32_t _itail_tgt = 0;
   7423     RECOMP_REGS_LOCALS
   7424     RECOMP_ENTER(0x47095FF0u);
   7425 
   7426 L_47095FF0:
   7427     ecx = 0x4710FC05u; /* 0x47095FF0: mov ecx, 0x4710fc05 */
   7428     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47095FF5: call dword ptr [0x470ac1c8] */
   7429     RECOMP_FLAGS_IN();
   7430     PUSH32(esp, 0x47096010u); /* 0x47095FFB: push 0x47096010 */
   7431     RECOMP_ICALL(0x470A32D9u); /* 0x47096000: call 0x470a32d9 */ /* not lifted */
   7432     RECOMP_FLAGS_IN();
   7433     ecx = POP32_VAL(esp); /* 0x47096005: pop ecx */
   7434     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47096006: ret  */
   7435     RECOMP_REGS_OUT();
   7436 }
   7437 
   7438 void sub_47096010(void) {
   7439     int _fpu_cmp = 0;
   7440     uint32_t _cf = 0;
   7441     int _df = 1;
   7442     uint32_t _flag_k = FK_NONE;
   7443     uint32_t _flag_a = 0, _flag_b = 0;
   7444     uint32_t _itail_tgt = 0;
   7445     RECOMP_REGS_LOCALS
   7446     RECOMP_ENTER(0x47096010u);
   7447 
   7448 L_47096010:
   7449     ecx = 0x4710FC05u; /* 0x47096010: mov ecx, 0x4710fc05 */
   7450 L_47096015:
   7451     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   7452     { RECOMP_REGS_OUT(); return; } /* end of function */
   7453   _ljump:
   7454     switch (_itail_tgt) {
   7455       case 0x47096010u: goto L_47096010;
   7456       case 0x47096015u: goto L_47096015;
   7457       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7458     }
   7459     RECOMP_REGS_OUT();
   7460 }
   7461 
   7462 void sub_47096020(void) {
   7463     int _fpu_cmp = 0;
   7464     uint32_t _cf = 0;
   7465     int _df = 1;
   7466     uint32_t _flag_k = FK_NONE;
   7467     uint32_t _flag_a = 0, _flag_b = 0;
   7468     uint32_t _itail_tgt = 0;
   7469     RECOMP_REGS_LOCALS
   7470     RECOMP_ENTER(0x47096020u);
   7471 
   7472 L_47096020:
   7473     ecx = 0x4710FC04u; /* 0x47096020: mov ecx, 0x4710fc04 */
   7474     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47096025: call dword ptr [0x470ac1c4] */
   7475     RECOMP_FLAGS_IN();
   7476     PUSH32(esp, 0x47096040u); /* 0x4709602B: push 0x47096040 */
   7477     RECOMP_ICALL(0x470A32D9u); /* 0x47096030: call 0x470a32d9 */ /* not lifted */
   7478     RECOMP_FLAGS_IN();
   7479     ecx = POP32_VAL(esp); /* 0x47096035: pop ecx */
   7480     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47096036: ret  */
   7481     RECOMP_REGS_OUT();
   7482 }
   7483 
   7484 void sub_47096040(void) {
   7485     int _fpu_cmp = 0;
   7486     uint32_t _cf = 0;
   7487     int _df = 1;
   7488     uint32_t _flag_k = FK_NONE;
   7489     uint32_t _flag_a = 0, _flag_b = 0;
   7490     uint32_t _itail_tgt = 0;
   7491     RECOMP_REGS_LOCALS
   7492     RECOMP_ENTER(0x47096040u);
   7493 
   7494 L_47096040:
   7495     ecx = 0x4710FC04u; /* 0x47096040: mov ecx, 0x4710fc04 */
   7496 L_47096045:
   7497     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   7498     { RECOMP_REGS_OUT(); return; } /* end of function */
   7499   _ljump:
   7500     switch (_itail_tgt) {
   7501       case 0x47096040u: goto L_47096040;
   7502       case 0x47096045u: goto L_47096045;
   7503       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7504     }
   7505     RECOMP_REGS_OUT();
   7506 }
   7507 
   7508 void sub_47096050(void) {
   7509     int _fpu_cmp = 0;
   7510     uint32_t _cf = 0;
   7511     int _df = 1;
   7512     uint32_t _flag_k = FK_NONE;
   7513     uint32_t _flag_a = 0, _flag_b = 0;
   7514     uint32_t _itail_tgt = 0;
   7515     RECOMP_REGS_LOCALS
   7516     RECOMP_ENTER(0x47096050u);
   7517 
   7518 L_47096050:
   7519     MEM32(0x4710FBF0) = 0x47104A3Cu; /* 0x47096050: mov dword ptr [0x4710fbf0], 0x47104a3c */
   7520     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709605A: ret  */
   7521     RECOMP_REGS_OUT();
   7522 }
   7523 
   7524 void sub_47096060(void) {
   7525     int _fpu_cmp = 0;
   7526     uint32_t _cf = 0;
   7527     int _df = 1;
   7528     uint32_t _flag_k = FK_NONE;
   7529     uint32_t _flag_a = 0, _flag_b = 0;
   7530     uint32_t _itail_tgt = 0;
   7531     RECOMP_REGS_LOCALS
   7532     RECOMP_ENTER(0x47096060u);
   7533 
   7534 L_47096060:
   7535     MEM32(0x4710FC0C) = 0x47104A00u; /* 0x47096060: mov dword ptr [0x4710fc0c], 0x47104a00 */
   7536     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709606A: ret  */
   7537     RECOMP_REGS_OUT();
   7538 }
   7539 
   7540 void sub_47096070(void) {
   7541     int _fpu_cmp = 0;
   7542     uint32_t _cf = 0;
   7543     int _df = 1;
   7544     uint32_t _flag_k = FK_NONE;
   7545     uint32_t _flag_a = 0, _flag_b = 0;
   7546     uint32_t _itail_tgt = 0;
   7547     RECOMP_REGS_LOCALS
   7548     RECOMP_ENTER(0x47096070u);
   7549 
   7550 L_47096070:
   7551     MEM32(0x4710FC08) = 0x47104A70u; /* 0x47096070: mov dword ptr [0x4710fc08], 0x47104a70 */
   7552     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709607A: ret  */
   7553     RECOMP_REGS_OUT();
   7554 }
   7555 
   7556 void sub_47096080(void) {
   7557     int _fpu_cmp = 0;
   7558     uint32_t _cf = 0;
   7559     int _df = 1;
   7560     uint32_t _flag_k = FK_NONE;
   7561     uint32_t _flag_a = 0, _flag_b = 0;
   7562     uint32_t _itail_tgt = 0;
   7563     RECOMP_REGS_LOCALS
   7564     RECOMP_ENTER(0x47096080u);
   7565 
   7566 L_47096080:
   7567     MEM32(0x4710FC18) = 0x47104B6Cu; /* 0x47096080: mov dword ptr [0x4710fc18], 0x47104b6c */
   7568     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709608A: ret  */
   7569     RECOMP_REGS_OUT();
   7570 }
   7571 
   7572 void sub_47096090(void) {
   7573     int _fpu_cmp = 0;
   7574     uint32_t _cf = 0;
   7575     int _df = 1;
   7576     uint32_t _flag_k = FK_NONE;
   7577     uint32_t _flag_a = 0, _flag_b = 0;
   7578     uint32_t _itail_tgt = 0;
   7579     RECOMP_REGS_LOCALS
   7580     RECOMP_ENTER(0x47096090u);
   7581 
   7582 L_47096090:
   7583     MEM32(0x4710FBF8) = 0x47104BA0u; /* 0x47096090: mov dword ptr [0x4710fbf8], 0x47104ba0 */
   7584     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709609A: ret  */
   7585     RECOMP_REGS_OUT();
   7586 }
   7587 
   7588 void sub_470960A0(void) {
   7589     int _fpu_cmp = 0;
   7590     uint32_t _cf = 0;
   7591     int _df = 1;
   7592     uint32_t _flag_k = FK_NONE;
   7593     uint32_t _flag_a = 0, _flag_b = 0;
   7594     uint32_t _itail_tgt = 0;
   7595     RECOMP_REGS_LOCALS
   7596     RECOMP_ENTER(0x470960A0u);
   7597 
   7598 L_470960A0:
   7599     MEM32(0x4710FC14) = 0x47104BD4u; /* 0x470960A0: mov dword ptr [0x4710fc14], 0x47104bd4 */
   7600     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470960AA: ret  */
   7601     RECOMP_REGS_OUT();
   7602 }
   7603 
   7604 void sub_470960B0(void) {
   7605     int _fpu_cmp = 0;
   7606     uint32_t _cf = 0;
   7607     int _df = 1;
   7608     uint32_t _flag_k = FK_NONE;
   7609     uint32_t _flag_a = 0, _flag_b = 0;
   7610     uint32_t _itail_tgt = 0;
   7611     RECOMP_REGS_LOCALS
   7612     RECOMP_ENTER(0x470960B0u);
   7613 
   7614 L_470960B0:
   7615     MEM32(0x4710FC10) = 0x471050FCu; /* 0x470960B0: mov dword ptr [0x4710fc10], 0x471050fc */
   7616     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470960BA: ret  */
   7617     RECOMP_REGS_OUT();
   7618 }
   7619 
   7620 void sub_470960C0(void) {
   7621     int _fpu_cmp = 0;
   7622     uint32_t _cf = 0;
   7623     int _df = 1;
   7624     uint32_t _flag_k = FK_NONE;
   7625     uint32_t _flag_a = 0, _flag_b = 0;
   7626     uint32_t _itail_tgt = 0;
   7627     RECOMP_REGS_LOCALS
   7628     RECOMP_ENTER(0x470960C0u);
   7629 
   7630 L_470960C0:
   7631     MEM32(0x4710FBF4) = 0x47105690u; /* 0x470960C0: mov dword ptr [0x4710fbf4], 0x47105690 */
   7632     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470960CA: ret  */
   7633     RECOMP_REGS_OUT();
   7634 }
   7635 
   7636 void sub_470960D0(void) {
   7637     int _fpu_cmp = 0;
   7638     uint32_t _cf = 0;
   7639     int _df = 1;
   7640     uint32_t _flag_k = FK_NONE;
   7641     uint32_t _flag_a = 0, _flag_b = 0;
   7642     uint32_t _itail_tgt = 0;
   7643     RECOMP_REGS_LOCALS
   7644     RECOMP_ENTER(0x470960D0u);
   7645 
   7646 L_470960D0:
   7647     MEM32(0x4710FBFC) = 0x471094D0u; /* 0x470960D0: mov dword ptr [0x4710fbfc], 0x471094d0 */
   7648     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470960DA: ret  */
   7649     RECOMP_REGS_OUT();
   7650 }
   7651 
   7652 void sub_470960E0(void) {
   7653     int _fpu_cmp = 0;
   7654     uint32_t _cf = 0;
   7655     int _df = 1;
   7656     uint32_t _flag_k = FK_NONE;
   7657     uint32_t _flag_a = 0, _flag_b = 0;
   7658     uint32_t _itail_tgt = 0;
   7659     RECOMP_REGS_LOCALS
   7660     RECOMP_ENTER(0x470960E0u);
   7661 
   7662 L_470960E0:
   7663     MEM32(0x4710FC00) = 0x4710D250u; /* 0x470960E0: mov dword ptr [0x4710fc00], 0x4710d250 */
   7664     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470960EA: ret  */
   7665     RECOMP_REGS_OUT();
   7666 }
   7667 
   7668 void sub_470960F0(void) {
   7669     int _fpu_cmp = 0;
   7670     uint32_t _cf = 0;
   7671     int _df = 1;
   7672     uint32_t _flag_k = FK_NONE;
   7673     uint32_t _flag_a = 0, _flag_b = 0;
   7674     uint32_t _itail_tgt = 0;
   7675     RECOMP_REGS_LOCALS
   7676     RECOMP_ENTER(0x470960F0u);
   7677 
   7678 L_470960F0:
   7679     PUSH32(esp, 0xFFFFFFFFu); /* 0x470960F0: push -1 */
   7680     PUSH32(esp, 0x470AB247u); /* 0x470960F2: push 0x470ab247 */
   7681     eax = MEM32(FS_BASE + (0)); /* 0x470960F7: mov eax, dword ptr fs:[0] */
   7682     PUSH32(esp, eax); /* 0x470960FD: push eax */
   7683     MEM32(FS_BASE + (0)) = esp; /* 0x470960FE: mov dword ptr fs:[0], esp */
   7684     PUSH32(esp, ecx); /* 0x47096105: push ecx */
   7685     PUSH32(esp, ebp); /* 0x47096106: push ebp */
   7686     PUSH32(esp, esi); /* 0x47096107: push esi */
   7687     esi = ecx; /* 0x47096108: mov esi, ecx */
   7688     PUSH32(esp, edi); /* 0x4709610A: push edi */
   7689     MEM32(esp + 0xC) = esi; /* 0x4709610B: mov dword ptr [esp + 0xc], esi */
   7690     MEM32(esi) = 0x470AC8C8u; /* 0x4709610F: mov dword ptr [esi], 0x470ac8c8 */
   7691     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7692     edi = 0; /* 0x47096115: xor edi, edi */
   7693     _cf = 0;
   7694     _flag_k = FK_TEST;
   7695     PUSH32(esp, esi); /* 0x47096117: push esi */
   7696     ecx = esi + 0x4; /* 0x47096118: lea ecx, [esi + 4] */
   7697     MEM32(esp + 0x1C) = edi; /* 0x4709611B: mov dword ptr [esp + 0x1c], edi */
   7698     RECOMP_ICALL(0x470733F0u); /* 0x4709611F: call 0x470733f0 */ /* not lifted */
   7699     RECOMP_FLAGS_IN();
   7700     ecx = esi + 0x14; /* 0x47096124: lea ecx, [esi + 0x14] */
   7701     MEM8(esp + 0x18) = (uint8_t)(1); /* 0x47096127: mov byte ptr [esp + 0x18], 1 */
   7702     RECOMP_ICALL(0x4705BDC0u); /* 0x4709612C: call 0x4705bdc0 */ /* not lifted */
   7703     RECOMP_FLAGS_IN();
   7704     ecx = esi + 0x338; /* 0x47096131: lea ecx, [esi + 0x338] */
   7705     RECOMP_ICALL(0x4705BDC0u); /* 0x47096137: call 0x4705bdc0 */ /* not lifted */
   7706     RECOMP_FLAGS_IN();
   7707     ecx = esi + 0x65C; /* 0x4709613C: lea ecx, [esi + 0x65c] */
   7708     RECOMP_ICALL(0x4705BDC0u); /* 0x47096142: call 0x4705bdc0 */ /* not lifted */
   7709     RECOMP_FLAGS_IN();
   7710     MEM32(esi + 0x980) = edi; /* 0x47096147: mov dword ptr [esi + 0x980], edi */
   7711     MEM32(esi + 0x984) = edi; /* 0x4709614D: mov dword ptr [esi + 0x984], edi */
   7712     MEM32(esi + 0x98C) = edi; /* 0x47096153: mov dword ptr [esi + 0x98c], edi */
   7713     MEM32(esi + 0x994) = edi; /* 0x47096159: mov dword ptr [esi + 0x994], edi */
   7714     MEM32(esi + 0x99C) = 0xFFFFFFFFu; /* 0x4709615F: mov dword ptr [esi + 0x99c], 0xffffffff */
   7715     MEM32(esi + 0x9A0) = edi; /* 0x47096169: mov dword ptr [esi + 0x9a0], edi */
   7716     MEM32(esi + 0x9A8) = edi; /* 0x4709616F: mov dword ptr [esi + 0x9a8], edi */
   7717     MEM32(esi + 0x9AC) = edi; /* 0x47096175: mov dword ptr [esi + 0x9ac], edi */
   7718     MEM32(esi) = 0x470ADD9Cu; /* 0x4709617B: mov dword ptr [esi], 0x470add9c */
   7719     PUSH32(esp, edi); /* 0x47096181: push edi */
   7720     ebp = esi + 0x9B0; /* 0x47096182: lea ebp, [esi + 0x9b0] */
   7721     PUSH32(esp, edi); /* 0x47096188: push edi */
   7722     ecx = ebp; /* 0x47096189: mov ecx, ebp */
   7723     MEM32(esp + 0x20) = 2; /* 0x4709618B: mov dword ptr [esp + 0x20], 2 */
   7724     RECOMP_ICALL(0x4708FA90u); /* 0x47096193: call 0x4708fa90 */ /* not lifted */
   7725     RECOMP_FLAGS_IN();
   7726     MEM32(ebp + 0x48) = esi; /* 0x47096198: mov dword ptr [ebp + 0x48], esi */
   7727     MEM32(ebp) = 0x470AE1B4u; /* 0x4709619B: mov dword ptr [ebp], 0x470ae1b4 */
   7728     PUSH32(esp, ebp); /* 0x470961A2: push ebp */
   7729     ecx = esi + 0x9FC; /* 0x470961A3: lea ecx, [esi + 0x9fc] */
   7730     MEM8(esp + 0x1C) = (uint8_t)(3); /* 0x470961A9: mov byte ptr [esp + 0x1c], 3 */
   7731     RECOMP_ICALL(0x47096A00u); /* 0x470961AE: call 0x47096a00 */ /* not lifted */
   7732     RECOMP_FLAGS_IN();
   7733     ecx = MEM32(esp + 0x24); /* 0x470961B3: mov ecx, dword ptr [esp + 0x24] */
   7734     edx = MEM32(esp + 0x20); /* 0x470961B7: mov edx, dword ptr [esp + 0x20] */
   7735     eax = MEM32(esp + 0x28); /* 0x470961BB: mov eax, dword ptr [esp + 0x28] */
   7736     PUSH32(esp, edi); /* 0x470961BF: push edi */
   7737     PUSH32(esp, edi); /* 0x470961C0: push edi */
   7738     PUSH32(esp, ecx); /* 0x470961C1: push ecx */
   7739     PUSH32(esp, edx); /* 0x470961C2: push edx */
   7740     PUSH32(esp, edi); /* 0x470961C3: push edi */
   7741     PUSH32(esp, 0x40u); /* 0x470961C4: push 0x40 */
   7742     ecx = esi; /* 0x470961C6: mov ecx, esi */
   7743     MEM8(esp + 0x30) = (uint8_t)(4); /* 0x470961C8: mov byte ptr [esp + 0x30], 4 */
   7744     MEM32(esi + 0xA08) = edi; /* 0x470961CD: mov dword ptr [esi + 0xa08], edi */
   7745     MEM32(esi + 0xA0C) = eax; /* 0x470961D3: mov dword ptr [esi + 0xa0c], eax */
   7746     MEM32(esi) = 0x470AE044u; /* 0x470961D9: mov dword ptr [esi], 0x470ae044 */
   7747     RECOMP_ICALL(0x4705CF80u); /* 0x470961DF: call 0x4705cf80 */ /* not lifted */
   7748     RECOMP_FLAGS_IN();
   7749     /* cmp eax, 0xFFFFFFFFu */ /* 0x470961E4: cmp eax, -1 */
   7750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7752     _flag_k = FK_CMP;
   7753     if (CMP_NE(_flag_a, _flag_b)) goto L_4709624C; /* 0x470961E7: jne 0x4709624c */
   7754 L_470961E9:
   7755     PUSH32(esp, ebx); /* 0x470961E9: push ebx */
   7756     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470961EA: call dword ptr [0x470ac150] */
   7757     RECOMP_FLAGS_IN();
   7758     ebx = eax; /* 0x470961F0: mov ebx, eax */
   7759     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470961F2: call dword ptr [0x470ac3c8] */
   7760     RECOMP_FLAGS_IN();
   7761     eax = MEM32(eax); /* 0x470961F8: mov eax, dword ptr [eax] */
   7762     /* cmp eax, edi */ /* 0x470961FA: cmp eax, edi */
   7763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7765     _flag_k = FK_CMP;
   7766     if (CMP_EQ(_flag_a, _flag_b)) goto L_47096200; /* 0x470961FC: je 0x47096200 */
   7767 L_470961FE:
   7768     ebx = eax; /* 0x470961FE: mov ebx, eax */
   7769 L_47096200:
   7770     RECOMP_ICALL(0x47039020u); /* 0x47096200: call 0x47039020 */ /* not lifted */
   7771     RECOMP_FLAGS_IN();
   7772     ebp = eax; /* 0x47096205: mov ebp, eax */
   7773     ecx = ebp; /* 0x47096207: mov ecx, ebp */
   7774     RECOMP_ICALL(0x4703B210u); /* 0x47096209: call 0x4703b210 */ /* not lifted */
   7775     RECOMP_FLAGS_IN();
   7776     PUSH32(esp, eax); /* 0x4709620E: push eax */
   7777     ecx = ebp; /* 0x4709620F: mov ecx, ebp */
   7778     RECOMP_ICALL(0x4703B240u); /* 0x47096211: call 0x4703b240 */ /* not lifted */
   7779     RECOMP_FLAGS_IN();
   7780     PUSH32(esp, eax); /* 0x47096216: push eax */
   7781     ecx = ebp; /* 0x47096217: mov ecx, ebp */
   7782     RECOMP_ICALL(0x4703B080u); /* 0x47096219: call 0x4703b080 */ /* not lifted */
   7783     RECOMP_FLAGS_IN();
   7784     PUSH32(esp, eax); /* 0x4709621E: push eax */
   7785     PUSH32(esp, ebx); /* 0x4709621F: push ebx */
   7786     PUSH32(esp, 0xFFFFFFFFu); /* 0x47096220: push -1 */
   7787     PUSH32(esp, 0x20Au); /* 0x47096222: push 0x20a */
   7788     PUSH32(esp, 0x4710958Cu); /* 0x47096227: push 0x4710958c */
   7789     ecx = ebp; /* 0x4709622C: mov ecx, ebp */
   7790     RECOMP_ICALL(0x4703A340u); /* 0x4709622E: call 0x4703a340 */ /* not lifted */
   7791     RECOMP_FLAGS_IN();
   7792     PUSH32(esp, 0x47109548u); /* 0x47096233: push 0x47109548 */
   7793     PUSH32(esp, 0x471055F0u); /* 0x47096238: push 0x471055f0 */
   7794     PUSH32(esp, 0x80u); /* 0x4709623D: push 0x80 */
   7795     PUSH32(esp, ebp); /* 0x47096242: push ebp */
   7796     RECOMP_ICALL(0x47039830u); /* 0x47096243: call 0x47039830 */ /* not lifted */
   7797     RECOMP_FLAGS_IN();
   7798     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7800     esp = esp + 0x10u; /* 0x47096248: add esp, 0x10 */
   7801     _flag_k = FK_ADD;
   7802     ebx = POP32_VAL(esp); /* 0x4709624B: pop ebx */
   7803 L_4709624C:
   7804     ecx = MEM32(esp + 0x10); /* 0x4709624C: mov ecx, dword ptr [esp + 0x10] */
   7805     MEM32(esi + 0xA20) = edi; /* 0x47096250: mov dword ptr [esi + 0xa20], edi */
   7806     MEM32(esi + 0xA14) = edi; /* 0x47096256: mov dword ptr [esi + 0xa14], edi */
   7807     MEM32(esi + 0xA18) = edi; /* 0x4709625C: mov dword ptr [esi + 0xa18], edi */
   7808     MEM32(esi + 0xA1C) = edi; /* 0x47096262: mov dword ptr [esi + 0xa1c], edi */
   7809     MEM32(esi + 0xA10) = 0xFFFFFFFFu; /* 0x47096268: mov dword ptr [esi + 0xa10], 0xffffffff */
   7810     edi = POP32_VAL(esp); /* 0x47096272: pop edi */
   7811     MEM32(esi) = 0x470AFE38u; /* 0x47096273: mov dword ptr [esi], 0x470afe38 */
   7812     MEM32(esi + 0x9AC) = 1; /* 0x47096279: mov dword ptr [esi + 0x9ac], 1 */
   7813     eax = esi; /* 0x47096283: mov eax, esi */
   7814     esi = POP32_VAL(esp); /* 0x47096285: pop esi */
   7815     ebp = POP32_VAL(esp); /* 0x47096286: pop ebp */
   7816     MEM32(FS_BASE + (0)) = ecx; /* 0x47096287: mov dword ptr fs:[0], ecx */
   7817     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7819     esp = esp + 0x10u; /* 0x4709628E: add esp, 0x10 */
   7820     _flag_k = FK_ADD;
   7821     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47096291: ret 0xc */
   7822     RECOMP_REGS_OUT();
   7823 }
   7824 
   7825 void sub_470962A0(void) {
   7826     int _fpu_cmp = 0;
   7827     uint32_t _cf = 0;
   7828     int _df = 1;
   7829     uint32_t _flag_k = FK_NONE;
   7830     uint32_t _flag_a = 0, _flag_b = 0;
   7831     uint32_t _itail_tgt = 0;
   7832     RECOMP_REGS_LOCALS
   7833     RECOMP_ENTER(0x470962A0u);
   7834 
   7835 L_470962A0:
   7836     PUSH32(esp, ebx); /* 0x470962A0: push ebx */
   7837     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470962A1: mov bl, byte ptr [esp + 8] */
   7838     /* test LO8(ebx), 2 */ /* 0x470962A5: test bl, 2 */
   7839     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   7840     _cf = 0;
   7841     _flag_k = FK_NARROW(FK_TEST, 24);
   7842     PUSH32(esp, esi); /* 0x470962A8: push esi */
   7843     esi = ecx; /* 0x470962A9: mov esi, ecx */
   7844     if (TEST_Z(_flag_a, _flag_b)) goto L_470962DB; /* 0x470962AB: je 0x470962db */
   7845 L_470962AD:
   7846     eax = MEM32(esi + (-0x4)); /* 0x470962AD: mov eax, dword ptr [esi - 4] */
   7847     PUSH32(esp, edi); /* 0x470962B0: push edi */
   7848     PUSH32(esp, 0x4706B290u); /* 0x470962B1: push 0x4706b290 */
   7849     edi = esi + (-0x4); /* 0x470962B6: lea edi, [esi - 4] */
   7850     PUSH32(esp, eax); /* 0x470962B9: push eax */
   7851     PUSH32(esp, 0xA24u); /* 0x470962BA: push 0xa24 */
   7852     PUSH32(esp, esi); /* 0x470962BF: push esi */
   7853     RECOMP_ICALL(0x470A32EBu); /* 0x470962C0: call 0x470a32eb */ /* not lifted */
   7854     RECOMP_FLAGS_IN();
   7855     /* test LO8(ebx), 1 */ /* 0x470962C5: test bl, 1 */
   7856     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7857     _cf = 0;
   7858     _flag_k = FK_NARROW(FK_TEST, 24);
   7859     if (TEST_Z(_flag_a, _flag_b)) goto L_470962D3; /* 0x470962C8: je 0x470962d3 */
   7860 L_470962CA:
   7861     PUSH32(esp, edi); /* 0x470962CA: push edi */
   7862     RECOMP_ICALL(0x470A32A2u); /* 0x470962CB: call 0x470a32a2 */ /* not lifted */
   7863     RECOMP_FLAGS_IN();
   7864     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7865     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7866     esp = esp + 4; /* 0x470962D0: add esp, 4 */
   7867     _flag_k = FK_ADD;
   7868 L_470962D3:
   7869     eax = edi; /* 0x470962D3: mov eax, edi */
   7870     edi = POP32_VAL(esp); /* 0x470962D5: pop edi */
   7871     esi = POP32_VAL(esp); /* 0x470962D6: pop esi */
   7872     ebx = POP32_VAL(esp); /* 0x470962D7: pop ebx */
   7873     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470962D8: ret 4 */
   7874 L_470962DB:
   7875     ecx = esi; /* 0x470962DB: mov ecx, esi */
   7876     RECOMP_ICALL(0x4706B290u); /* 0x470962DD: call 0x4706b290 */ /* not lifted */
   7877     RECOMP_FLAGS_IN();
   7878     /* test LO8(ebx), 1 */ /* 0x470962E2: test bl, 1 */
   7879     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7880     _cf = 0;
   7881     _flag_k = FK_NARROW(FK_TEST, 24);
   7882     if (TEST_Z(_flag_a, _flag_b)) goto L_470962F0; /* 0x470962E5: je 0x470962f0 */
   7883 L_470962E7:
   7884     PUSH32(esp, esi); /* 0x470962E7: push esi */
   7885     RECOMP_ICALL(0x470A32A2u); /* 0x470962E8: call 0x470a32a2 */ /* not lifted */
   7886     RECOMP_FLAGS_IN();
   7887     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7888     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7889     esp = esp + 4; /* 0x470962ED: add esp, 4 */
   7890     _flag_k = FK_ADD;
   7891 L_470962F0:
   7892     eax = esi; /* 0x470962F0: mov eax, esi */
   7893     esi = POP32_VAL(esp); /* 0x470962F2: pop esi */
   7894     ebx = POP32_VAL(esp); /* 0x470962F3: pop ebx */
   7895     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470962F4: ret 4 */
   7896     RECOMP_REGS_OUT();
   7897 }
   7898 
   7899 void sub_47096300(void) {
   7900     int _fpu_cmp = 0;
   7901     uint32_t _cf = 0;
   7902     int _df = 1;
   7903     uint32_t _flag_k = FK_NONE;
   7904     uint32_t _flag_a = 0, _flag_b = 0;
   7905     uint32_t _itail_tgt = 0;
   7906     RECOMP_REGS_LOCALS
   7907     RECOMP_ENTER(0x47096300u);
   7908 
   7909 L_47096300:
   7910     PUSH32(esp, 0xFFFFFFFFu); /* 0x47096300: push -1 */
   7911     PUSH32(esp, 0x470AB297u); /* 0x47096302: push 0x470ab297 */
   7912     eax = MEM32(FS_BASE + (0)); /* 0x47096307: mov eax, dword ptr fs:[0] */
   7913     PUSH32(esp, eax); /* 0x4709630D: push eax */
   7914     MEM32(FS_BASE + (0)) = esp; /* 0x4709630E: mov dword ptr fs:[0], esp */
   7915     PUSH32(esp, ecx); /* 0x47096315: push ecx */
   7916     PUSH32(esp, ebp); /* 0x47096316: push ebp */
   7917     PUSH32(esp, esi); /* 0x47096317: push esi */
   7918     esi = ecx; /* 0x47096318: mov esi, ecx */
   7919     PUSH32(esp, edi); /* 0x4709631A: push edi */
   7920     MEM32(esp + 0xC) = esi; /* 0x4709631B: mov dword ptr [esp + 0xc], esi */
   7921     MEM32(esi) = 0x470AC8C8u; /* 0x4709631F: mov dword ptr [esi], 0x470ac8c8 */
   7922     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7923     edi = 0; /* 0x47096325: xor edi, edi */
   7924     _cf = 0;
   7925     _flag_k = FK_TEST;
   7926     PUSH32(esp, esi); /* 0x47096327: push esi */
   7927     ecx = esi + 0x4; /* 0x47096328: lea ecx, [esi + 4] */
   7928     MEM32(esp + 0x1C) = edi; /* 0x4709632B: mov dword ptr [esp + 0x1c], edi */
   7929     RECOMP_ICALL(0x470733F0u); /* 0x4709632F: call 0x470733f0 */ /* not lifted */
   7930     RECOMP_FLAGS_IN();
   7931     ecx = esi + 0x14; /* 0x47096334: lea ecx, [esi + 0x14] */
   7932     MEM8(esp + 0x18) = (uint8_t)(1); /* 0x47096337: mov byte ptr [esp + 0x18], 1 */
   7933     RECOMP_ICALL(0x4705BDC0u); /* 0x4709633C: call 0x4705bdc0 */ /* not lifted */
   7934     RECOMP_FLAGS_IN();
   7935     ecx = esi + 0x338; /* 0x47096341: lea ecx, [esi + 0x338] */
   7936     RECOMP_ICALL(0x4705BDC0u); /* 0x47096347: call 0x4705bdc0 */ /* not lifted */
   7937     RECOMP_FLAGS_IN();
   7938     ecx = esi + 0x65C; /* 0x4709634C: lea ecx, [esi + 0x65c] */
   7939     RECOMP_ICALL(0x4705BDC0u); /* 0x47096352: call 0x4705bdc0 */ /* not lifted */
   7940     RECOMP_FLAGS_IN();
   7941     MEM32(esi + 0x980) = edi; /* 0x47096357: mov dword ptr [esi + 0x980], edi */
   7942     MEM32(esi + 0x984) = edi; /* 0x4709635D: mov dword ptr [esi + 0x984], edi */
   7943     MEM32(esi + 0x98C) = edi; /* 0x47096363: mov dword ptr [esi + 0x98c], edi */
   7944     MEM32(esi + 0x994) = edi; /* 0x47096369: mov dword ptr [esi + 0x994], edi */
   7945     MEM32(esi + 0x99C) = 0xFFFFFFFFu; /* 0x4709636F: mov dword ptr [esi + 0x99c], 0xffffffff */
   7946     MEM32(esi + 0x9A0) = edi; /* 0x47096379: mov dword ptr [esi + 0x9a0], edi */
   7947     MEM32(esi + 0x9A8) = edi; /* 0x4709637F: mov dword ptr [esi + 0x9a8], edi */
   7948     MEM32(esi + 0x9AC) = edi; /* 0x47096385: mov dword ptr [esi + 0x9ac], edi */
   7949     MEM32(esi) = 0x470ADD9Cu; /* 0x4709638B: mov dword ptr [esi], 0x470add9c */
   7950     PUSH32(esp, edi); /* 0x47096391: push edi */
   7951     ebp = esi + 0x9B0; /* 0x47096392: lea ebp, [esi + 0x9b0] */
   7952     PUSH32(esp, edi); /* 0x47096398: push edi */
   7953     ecx = ebp; /* 0x47096399: mov ecx, ebp */
   7954     MEM32(esp + 0x20) = 2; /* 0x4709639B: mov dword ptr [esp + 0x20], 2 */
   7955     RECOMP_ICALL(0x4708FA90u); /* 0x470963A3: call 0x4708fa90 */ /* not lifted */
   7956     RECOMP_FLAGS_IN();
   7957     MEM32(ebp + 0x48) = esi; /* 0x470963A8: mov dword ptr [ebp + 0x48], esi */
   7958     MEM32(ebp) = 0x470AE1B4u; /* 0x470963AB: mov dword ptr [ebp], 0x470ae1b4 */
   7959     PUSH32(esp, ebp); /* 0x470963B2: push ebp */
   7960     ecx = esi + 0x9FC; /* 0x470963B3: lea ecx, [esi + 0x9fc] */
   7961     MEM8(esp + 0x1C) = (uint8_t)(3); /* 0x470963B9: mov byte ptr [esp + 0x1c], 3 */
   7962     RECOMP_ICALL(0x47096A00u); /* 0x470963BE: call 0x47096a00 */ /* not lifted */
   7963     RECOMP_FLAGS_IN();
   7964     ecx = MEM32(esp + 0x2C); /* 0x470963C3: mov ecx, dword ptr [esp + 0x2c] */
   7965     eax = MEM32(esp + 0x30); /* 0x470963C7: mov eax, dword ptr [esp + 0x30] */
   7966     edx = MEM32(esp + 0x28); /* 0x470963CB: mov edx, dword ptr [esp + 0x28] */
   7967     PUSH32(esp, edi); /* 0x470963CF: push edi */
   7968     PUSH32(esp, edi); /* 0x470963D0: push edi */
   7969     PUSH32(esp, ecx); /* 0x470963D1: push ecx */
   7970     ecx = MEM32(esp + 0x2C); /* 0x470963D2: mov ecx, dword ptr [esp + 0x2c] */
   7971     MEM32(esi + 0xA0C) = eax; /* 0x470963D6: mov dword ptr [esi + 0xa0c], eax */
   7972     eax = MEM32(esp + 0x30); /* 0x470963DC: mov eax, dword ptr [esp + 0x30] */
   7973     PUSH32(esp, edx); /* 0x470963E0: push edx */
   7974     PUSH32(esp, eax); /* 0x470963E1: push eax */
   7975     PUSH32(esp, ecx); /* 0x470963E2: push ecx */
   7976     ecx = esi; /* 0x470963E3: mov ecx, esi */
   7977     MEM8(esp + 0x30) = (uint8_t)(4); /* 0x470963E5: mov byte ptr [esp + 0x30], 4 */
   7978     MEM32(esi + 0xA08) = edi; /* 0x470963EA: mov dword ptr [esi + 0xa08], edi */
   7979     MEM32(esi) = 0x470AE044u; /* 0x470963F0: mov dword ptr [esi], 0x470ae044 */
   7980     RECOMP_ICALL(0x4705CF80u); /* 0x470963F6: call 0x4705cf80 */ /* not lifted */
   7981     RECOMP_FLAGS_IN();
   7982     /* cmp eax, 0xFFFFFFFFu */ /* 0x470963FB: cmp eax, -1 */
   7983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7984     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7985     _flag_k = FK_CMP;
   7986     if (CMP_NE(_flag_a, _flag_b)) goto L_47096463; /* 0x470963FE: jne 0x47096463 */
   7987 L_47096400:
   7988     PUSH32(esp, ebx); /* 0x47096400: push ebx */
   7989     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47096401: call dword ptr [0x470ac150] */
   7990     RECOMP_FLAGS_IN();
   7991     ebx = eax; /* 0x47096407: mov ebx, eax */
   7992     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47096409: call dword ptr [0x470ac3c8] */
   7993     RECOMP_FLAGS_IN();
   7994     eax = MEM32(eax); /* 0x4709640F: mov eax, dword ptr [eax] */
   7995     /* cmp eax, edi */ /* 0x47096411: cmp eax, edi */
   7996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7998     _flag_k = FK_CMP;
   7999     if (CMP_EQ(_flag_a, _flag_b)) goto L_47096417; /* 0x47096413: je 0x47096417 */
   8000 L_47096415:
   8001     ebx = eax; /* 0x47096415: mov ebx, eax */
   8002 L_47096417:
   8003     RECOMP_ICALL(0x47039020u); /* 0x47096417: call 0x47039020 */ /* not lifted */
   8004     RECOMP_FLAGS_IN();
   8005     ebp = eax; /* 0x4709641C: mov ebp, eax */
   8006     ecx = ebp; /* 0x4709641E: mov ecx, ebp */
   8007     RECOMP_ICALL(0x4703B210u); /* 0x47096420: call 0x4703b210 */ /* not lifted */
   8008     RECOMP_FLAGS_IN();
   8009     PUSH32(esp, eax); /* 0x47096425: push eax */
   8010     ecx = ebp; /* 0x47096426: mov ecx, ebp */
   8011     RECOMP_ICALL(0x4703B240u); /* 0x47096428: call 0x4703b240 */ /* not lifted */
   8012     RECOMP_FLAGS_IN();
   8013     PUSH32(esp, eax); /* 0x4709642D: push eax */
   8014     ecx = ebp; /* 0x4709642E: mov ecx, ebp */
   8015     RECOMP_ICALL(0x4703B080u); /* 0x47096430: call 0x4703b080 */ /* not lifted */
   8016     RECOMP_FLAGS_IN();
   8017     PUSH32(esp, eax); /* 0x47096435: push eax */
   8018     PUSH32(esp, ebx); /* 0x47096436: push ebx */
   8019     PUSH32(esp, 0xFFFFFFFFu); /* 0x47096437: push -1 */
   8020     PUSH32(esp, 0x228u); /* 0x47096439: push 0x228 */
   8021     PUSH32(esp, 0x4710958Cu); /* 0x4709643E: push 0x4710958c */
   8022     ecx = ebp; /* 0x47096443: mov ecx, ebp */
   8023     RECOMP_ICALL(0x4703A340u); /* 0x47096445: call 0x4703a340 */ /* not lifted */
   8024     RECOMP_FLAGS_IN();
   8025     PUSH32(esp, 0x47109548u); /* 0x4709644A: push 0x47109548 */
   8026     PUSH32(esp, 0x471055F0u); /* 0x4709644F: push 0x471055f0 */
   8027     PUSH32(esp, 0x80u); /* 0x47096454: push 0x80 */
   8028     PUSH32(esp, ebp); /* 0x47096459: push ebp */
   8029     RECOMP_ICALL(0x47039830u); /* 0x4709645A: call 0x47039830 */ /* not lifted */
   8030     RECOMP_FLAGS_IN();
   8031     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8032     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8033     esp = esp + 0x10u; /* 0x4709645F: add esp, 0x10 */
   8034     _flag_k = FK_ADD;
   8035     ebx = POP32_VAL(esp); /* 0x47096462: pop ebx */
   8036 L_47096463:
   8037     ecx = MEM32(esp + 0x10); /* 0x47096463: mov ecx, dword ptr [esp + 0x10] */
   8038     MEM32(esi + 0xA20) = edi; /* 0x47096467: mov dword ptr [esi + 0xa20], edi */
   8039     MEM32(esi + 0xA14) = edi; /* 0x4709646D: mov dword ptr [esi + 0xa14], edi */
   8040     MEM32(esi + 0xA18) = edi; /* 0x47096473: mov dword ptr [esi + 0xa18], edi */
   8041     MEM32(esi + 0xA1C) = edi; /* 0x47096479: mov dword ptr [esi + 0xa1c], edi */
   8042     MEM32(esi + 0xA10) = 0xFFFFFFFFu; /* 0x4709647F: mov dword ptr [esi + 0xa10], 0xffffffff */
   8043     edi = POP32_VAL(esp); /* 0x47096489: pop edi */
   8044     MEM32(esi) = 0x470AFE38u; /* 0x4709648A: mov dword ptr [esi], 0x470afe38 */
   8045     MEM32(esi + 0x9AC) = 1; /* 0x47096490: mov dword ptr [esi + 0x9ac], 1 */
   8046     eax = esi; /* 0x4709649A: mov eax, esi */
   8047     esi = POP32_VAL(esp); /* 0x4709649C: pop esi */
   8048     ebp = POP32_VAL(esp); /* 0x4709649D: pop ebp */
   8049     MEM32(FS_BASE + (0)) = ecx; /* 0x4709649E: mov dword ptr fs:[0], ecx */
   8050     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8051     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8052     esp = esp + 0x10u; /* 0x470964A5: add esp, 0x10 */
   8053     _flag_k = FK_ADD;
   8054     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470964A8: ret 0x14 */
   8055     RECOMP_REGS_OUT();
   8056 }
   8057 
   8058 void sub_470964B0(void) {
   8059     int _fpu_cmp = 0;
   8060     uint32_t _cf = 0;
   8061     int _df = 1;
   8062     uint32_t _flag_k = FK_NONE;
   8063     uint32_t _flag_a = 0, _flag_b = 0;
   8064     uint32_t _itail_tgt = 0;
   8065     RECOMP_REGS_LOCALS
   8066     RECOMP_ENTER(0x470964B0u);
   8067 
   8068 L_470964B0:
   8069     eax = MEM32(esp + 0x4); /* 0x470964B0: mov eax, dword ptr [esp + 4] */
   8070     PUSH32(esp, ebx); /* 0x470964B4: push ebx */
   8071     ebx = MEM32(eax + 0x4); /* 0x470964B5: mov ebx, dword ptr [eax + 4] */
   8072     /* test ebx, ebx */ /* 0x470964B8: test ebx, ebx */
   8073     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   8074     _cf = 0;
   8075     _flag_k = FK_TEST;
   8076     PUSH32(esp, ebp); /* 0x470964BA: push ebp */
   8077     ebp = MEM32(eax + 0x8); /* 0x470964BB: mov ebp, dword ptr [eax + 8] */
   8078     PUSH32(esp, esi); /* 0x470964BE: push esi */
   8079     PUSH32(esp, edi); /* 0x470964BF: push edi */
   8080     edi = MEM32(eax); /* 0x470964C0: mov edi, dword ptr [eax] */
   8081     eax = MEM32(eax + 0xC); /* 0x470964C2: mov eax, dword ptr [eax + 0xc] */
   8082     esi = ecx; /* 0x470964C5: mov esi, ecx */
   8083     if (TEST_NZ(_flag_a, _flag_b)) goto L_470964D3; /* 0x470964C7: jne 0x470964d3 */
   8084 L_470964C9:
   8085     edi = POP32_VAL(esp); /* 0x470964C9: pop edi */
   8086     esi = POP32_VAL(esp); /* 0x470964CA: pop esi */
   8087     ebp = POP32_VAL(esp); /* 0x470964CB: pop ebp */
   8088     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   8089     eax = eax | 0xFFFFFFFFu; /* 0x470964CC: or eax, 0xffffffff */
   8090     _cf = 0;
   8091     _flag_k = FK_TEST;
   8092     ebx = POP32_VAL(esp); /* 0x470964CF: pop ebx */
   8093     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470964D0: ret 4 */
   8094 L_470964D3:
   8095     PUSH32(esp, edi); /* 0x470964D3: push edi */
   8096     ecx = ebx; /* 0x470964D4: mov ecx, ebx */
   8097     RECOMP_ICALL(eax); /* 0x470964D6: call eax */
   8098     RECOMP_FLAGS_IN();
   8099     /* test eax, eax */ /* 0x470964D8: test eax, eax */
   8100     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8101     _cf = 0;
   8102     _flag_k = FK_TEST;
   8103     if (TEST_NS(_flag_a, _flag_b)) goto L_470964EC; /* 0x470964DA: jge 0x470964ec */
   8104 L_470964DC:
   8105     eax = MEM32(esi); /* 0x470964DC: mov eax, dword ptr [esi] */
   8106     PUSH32(esp, ebp); /* 0x470964DE: push ebp */
   8107     PUSH32(esp, edi); /* 0x470964DF: push edi */
   8108     ecx = esi; /* 0x470964E0: mov ecx, esi */
   8109     RECOMP_ICALL(MEM32(eax + 0x5C)); /* 0x470964E2: call dword ptr [eax + 0x5c] */
   8110     RECOMP_FLAGS_IN();
   8111     edi = POP32_VAL(esp); /* 0x470964E5: pop edi */
   8112     esi = POP32_VAL(esp); /* 0x470964E6: pop esi */
   8113     ebp = POP32_VAL(esp); /* 0x470964E7: pop ebp */
   8114     ebx = POP32_VAL(esp); /* 0x470964E8: pop ebx */
   8115     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470964E9: ret 4 */
   8116 L_470964EC:
   8117     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_470964FC; /* 0x470964EC: jle 0x470964fc */
   8118 L_470964EE:
   8119     edx = MEM32(esi); /* 0x470964EE: mov edx, dword ptr [esi] */
   8120     PUSH32(esp, 2); /* 0x470964F0: push 2 */
   8121     PUSH32(esp, ebp); /* 0x470964F2: push ebp */
   8122     PUSH32(esp, edi); /* 0x470964F3: push edi */
   8123     ecx = esi; /* 0x470964F4: mov ecx, esi */
   8124     RECOMP_ICALL(MEM32(edx + 0xEC)); /* 0x470964F6: call dword ptr [edx + 0xec] */
   8125     RECOMP_FLAGS_IN();
   8126 L_470964FC:
   8127     /* cmp ebx, MEM32(esi + 0x990) */ /* 0x470964FC: cmp ebx, dword ptr [esi + 0x990] */
   8128     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x990));
   8129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8130     _flag_k = FK_CMP;
   8131     if (CMP_EQ(_flag_a, _flag_b)) goto L_47096513; /* 0x47096502: je 0x47096513 */
   8132 L_47096504:
   8133     eax = MEM32(esi); /* 0x47096504: mov eax, dword ptr [esi] */
   8134     PUSH32(esp, edi); /* 0x47096506: push edi */
   8135     ecx = esi; /* 0x47096507: mov ecx, esi */
   8136     RECOMP_ICALL(MEM32(eax + 0x78)); /* 0x47096509: call dword ptr [eax + 0x78] */
   8137     RECOMP_FLAGS_IN();
   8138     edi = POP32_VAL(esp); /* 0x4709650C: pop edi */
   8139     esi = POP32_VAL(esp); /* 0x4709650D: pop esi */
   8140     ebp = POP32_VAL(esp); /* 0x4709650E: pop ebp */
   8141     ebx = POP32_VAL(esp); /* 0x4709650F: pop ebx */
   8142     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47096510: ret 4 */
   8143 L_47096513:
   8144     edi = POP32_VAL(esp); /* 0x47096513: pop edi */
   8145     esi = POP32_VAL(esp); /* 0x47096514: pop esi */
   8146     ebp = POP32_VAL(esp); /* 0x47096515: pop ebp */
   8147     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8148     eax = 0; /* 0x47096516: xor eax, eax */
   8149     _cf = 0;
   8150     _flag_k = FK_TEST;
   8151     ebx = POP32_VAL(esp); /* 0x47096518: pop ebx */
   8152     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47096519: ret 4 */
   8153     RECOMP_REGS_OUT();
   8154 }
   8155 
   8156 void sub_47096520(void) {
   8157     int _fpu_cmp = 0;
   8158     uint32_t _cf = 0;
   8159     int _df = 1;
   8160     uint32_t _flag_k = FK_NONE;
   8161     uint32_t _flag_a = 0, _flag_b = 0;
   8162     uint32_t _itail_tgt = 0;
   8163     RECOMP_REGS_LOCALS
   8164     RECOMP_ENTER(0x47096520u);
   8165 
   8166 L_47096520:
   8167     PUSH32(esp, 0xFFFFFFFFu); /* 0x47096520: push -1 */
   8168     PUSH32(esp, 0x470AB2B8u); /* 0x47096522: push 0x470ab2b8 */
   8169     eax = MEM32(FS_BASE + (0)); /* 0x47096527: mov eax, dword ptr fs:[0] */
   8170     PUSH32(esp, eax); /* 0x4709652D: push eax */
   8171     MEM32(FS_BASE + (0)) = esp; /* 0x4709652E: mov dword ptr fs:[0], esp */
   8172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8174     esp = esp - 0xCu; /* 0x47096535: sub esp, 0xc */
   8175     _flag_k = FK_CMP;
   8176     eax = MEM32(esp + 0x28); /* 0x47096538: mov eax, dword ptr [esp + 0x28] */
   8177     PUSH32(esp, ebx); /* 0x4709653C: push ebx */
   8178     PUSH32(esp, esi); /* 0x4709653D: push esi */
   8179     PUSH32(esp, edi); /* 0x4709653E: push edi */
   8180     esi = ecx; /* 0x4709653F: mov esi, ecx */
   8181     PUSH32(esp, eax); /* 0x47096541: push eax */
   8182     ecx = esp + 0x10; /* 0x47096542: lea ecx, [esp + 0x10] */
   8183     RECOMP_ICALL(0x470301E0u); /* 0x47096546: call 0x470301e0 */ /* not lifted */
   8184     RECOMP_FLAGS_IN();
   8185     ecx = esp + 0xC; /* 0x4709654B: lea ecx, [esp + 0xc] */
   8186     MEM32(esp + 0x20) = 0; /* 0x4709654F: mov dword ptr [esp + 0x20], 0 */
   8187     RECOMP_ICALL(0x470301C0u); /* 0x47096557: call 0x470301c0 */ /* not lifted */
   8188     RECOMP_FLAGS_IN();
   8189     ebx = MEM32(esp + 0x2C); /* 0x4709655C: mov ebx, dword ptr [esp + 0x2c] */
   8190     edi = eax; /* 0x47096560: mov edi, eax */
   8191     /* cmp edi, 0xFFFFFFFFu */ /* 0x47096562: cmp edi, -1 */
   8192     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   8193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8194     _flag_k = FK_CMP;
   8195     if (CMP_EQ(_flag_a, _flag_b)) goto L_470965B1; /* 0x47096565: je 0x470965b1 */
   8196 L_47096567:
   8197     eax = MEM32(ebx); /* 0x47096567: mov eax, dword ptr [ebx] */
   8198     /* cmp eax, MEM32(esp + 0x28) */ /* 0x47096569: cmp eax, dword ptr [esp + 0x28] */
   8199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esp + 0x28));
   8200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8201     _flag_k = FK_CMP;
   8202     if (CMP_GE(_flag_a, _flag_b)) goto L_470965B1; /* 0x4709656D: jge 0x470965b1 */
   8203 L_4709656F:
   8204     ecx = MEM32(esi + 0x9A8); /* 0x4709656F: mov ecx, dword ptr [esi + 0x9a8] */
   8205     /* test ecx, ecx */ /* 0x47096575: test ecx, ecx */
   8206     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8207     _cf = 0;
   8208     _flag_k = FK_TEST;
   8209     if (TEST_NZ(_flag_a, _flag_b)) goto L_470965B1; /* 0x47096577: jne 0x470965b1 */
   8210 L_47096579:
   8211     PUSH32(esp, 0); /* 0x47096579: push 0 */
   8212     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8213     eax = eax + 1; /* 0x4709657B: inc eax */
   8214     _flag_k = FK_INC;
   8215     PUSH32(esp, edi); /* 0x4709657C: push edi */
   8216     ecx = esi + 0x4; /* 0x4709657D: lea ecx, [esi + 4] */
   8217     MEM32(ebx) = eax; /* 0x47096580: mov dword ptr [ebx], eax */
   8218     RECOMP_ICALL(0x470734B0u); /* 0x47096582: call 0x470734b0 */ /* not lifted */
   8219     RECOMP_FLAGS_IN();
   8220     ecx = MEM32(esp + 0x30); /* 0x47096587: mov ecx, dword ptr [esp + 0x30] */
   8221     edx = MEM32(esp + 0x3C); /* 0x4709658B: mov edx, dword ptr [esp + 0x3c] */
   8222     MEM32(esi + 0xA20) = 1; /* 0x4709658F: mov dword ptr [esi + 0xa20], 1 */
   8223     MEM32(esi + 0xA10) = edi; /* 0x47096599: mov dword ptr [esi + 0xa10], edi */
   8224     MEM32(esi + 0xA14) = eax; /* 0x4709659F: mov dword ptr [esi + 0xa14], eax */
   8225     MEM32(esi + 0xA18) = ecx; /* 0x470965A5: mov dword ptr [esi + 0xa18], ecx */
   8226     MEM32(esi + 0xA1C) = edx; /* 0x470965AB: mov dword ptr [esi + 0xa1c], edx */
   8227 L_470965B1:
   8228     /* cmp MEM32(ebx), 0 */ /* 0x470965B1: cmp dword ptr [ebx], 0 */
   8229     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0);
   8230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8231     _flag_k = FK_CMP;
   8232     if (CMP_LE(_flag_a, _flag_b)) goto L_470965D7; /* 0x470965B4: jle 0x470965d7 */
   8233 L_470965B6:
   8234     eax = MEM32(esi + 0x9A8); /* 0x470965B6: mov eax, dword ptr [esi + 0x9a8] */
   8235     /* test eax, eax */ /* 0x470965BC: test eax, eax */
   8236     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8237     _cf = 0;
   8238     _flag_k = FK_TEST;
   8239     if (TEST_Z(_flag_a, _flag_b)) goto L_470965D7; /* 0x470965BE: je 0x470965d7 */
   8240 L_470965C0:
   8241     edi = POP32_VAL(esp); /* 0x470965C0: pop edi */
   8242     esi = POP32_VAL(esp); /* 0x470965C1: pop esi */
   8243     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   8244     eax = eax | 0xFFFFFFFFu; /* 0x470965C2: or eax, 0xffffffff */
   8245     _cf = 0;
   8246     _flag_k = FK_TEST;
   8247     ebx = POP32_VAL(esp); /* 0x470965C5: pop ebx */
   8248     ecx = MEM32(esp + 0xC); /* 0x470965C6: mov ecx, dword ptr [esp + 0xc] */
   8249     MEM32(FS_BASE + (0)) = ecx; /* 0x470965CA: mov dword ptr fs:[0], ecx */
   8250     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8251     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8252     esp = esp + 0x18u; /* 0x470965D1: add esp, 0x18 */
   8253     _flag_k = FK_ADD;
   8254     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x470965D4: ret 0x18 */
   8255 L_470965D7:
   8256     ecx = MEM32(esp + 0x18); /* 0x470965D7: mov ecx, dword ptr [esp + 0x18] */
   8257     edi = POP32_VAL(esp); /* 0x470965DB: pop edi */
   8258     esi = POP32_VAL(esp); /* 0x470965DC: pop esi */
   8259     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8260     eax = 0; /* 0x470965DD: xor eax, eax */
   8261     _cf = 0;
   8262     _flag_k = FK_TEST;
   8263     ebx = POP32_VAL(esp); /* 0x470965DF: pop ebx */
   8264     MEM32(FS_BASE + (0)) = ecx; /* 0x470965E0: mov dword ptr fs:[0], ecx */
   8265     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8266     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8267     esp = esp + 0x18u; /* 0x470965E7: add esp, 0x18 */
   8268     _flag_k = FK_ADD;
   8269     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x470965EA: ret 0x18 */
   8270     RECOMP_REGS_OUT();
   8271 }
   8272 
   8273 void sub_470965F0(void) {
   8274     int _fpu_cmp = 0;
   8275     uint32_t _cf = 0;
   8276     int _df = 1;
   8277     uint32_t _flag_k = FK_NONE;
   8278     uint32_t _flag_a = 0, _flag_b = 0;
   8279     uint32_t _itail_tgt = 0;
   8280     RECOMP_REGS_LOCALS
   8281     RECOMP_ENTER(0x470965F0u);
   8282 
   8283 L_470965F0:
   8284     PUSH32(esp, 0xFFFFFFFFu); /* 0x470965F0: push -1 */
   8285     PUSH32(esp, 0x470AB2D8u); /* 0x470965F2: push 0x470ab2d8 */
   8286     eax = MEM32(FS_BASE + (0)); /* 0x470965F7: mov eax, dword ptr fs:[0] */
   8287     PUSH32(esp, eax); /* 0x470965FD: push eax */
   8288     MEM32(FS_BASE + (0)) = esp; /* 0x470965FE: mov dword ptr fs:[0], esp */
   8289     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u);
   8290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8291     esp = esp - 0x44u; /* 0x47096605: sub esp, 0x44 */
   8292     _flag_k = FK_CMP;
   8293     PUSH32(esp, ebx); /* 0x47096608: push ebx */
   8294     PUSH32(esp, ebp); /* 0x47096609: push ebp */
   8295     PUSH32(esp, esi); /* 0x4709660A: push esi */
   8296     esi = MEM32(esp + 0x60); /* 0x4709660B: mov esi, dword ptr [esp + 0x60] */
   8297     PUSH32(esp, edi); /* 0x4709660F: push edi */
   8298     ebx = ecx; /* 0x47096610: mov ebx, ecx */
   8299     PUSH32(esp, esi); /* 0x47096612: push esi */
   8300     ecx = esp + 0x34; /* 0x47096613: lea ecx, [esp + 0x34] */
   8301     RECOMP_ICALL(0x47054440u); /* 0x47096617: call 0x47054440 */ /* not lifted */
   8302     RECOMP_FLAGS_IN();
   8303     /* test esi, esi */ /* 0x4709661C: test esi, esi */
   8304     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8305     _cf = 0;
   8306     _flag_k = FK_TEST;
   8307     MEM32(esp + 0x5C) = 0; /* 0x4709661E: mov dword ptr [esp + 0x5c], 0 */
   8308     if (TEST_Z(_flag_a, _flag_b)) goto L_47096675; /* 0x47096626: je 0x47096675 */
   8309 L_47096628:
   8310     eax = esp + 0x18; /* 0x47096628: lea eax, [esp + 0x18] */
   8311     PUSH32(esp, eax); /* 0x4709662C: push eax */
   8312     RECOMP_ICALL(MEM32(0x470AC1A8)); /* 0x4709662D: call dword ptr [0x470ac1a8] */
   8313     RECOMP_FLAGS_IN();
   8314     ecx = esp + 0x18; /* 0x47096633: lea ecx, [esp + 0x18] */
   8315     PUSH32(esp, ecx); /* 0x47096637: push ecx */
   8316     ecx = esp + 0x24; /* 0x47096638: lea ecx, [esp + 0x24] */
   8317     RECOMP_ICALL(0x47053F10u); /* 0x4709663C: call 0x47053f10 */ /* not lifted */
   8318     RECOMP_FLAGS_IN();
   8319     ecx = MEM32(eax); /* 0x47096641: mov ecx, dword ptr [eax] */
   8320     edx = MEM32(esi); /* 0x47096643: mov edx, dword ptr [esi] */
   8321     MEM32(esp + 0x28) = ecx; /* 0x47096645: mov dword ptr [esp + 0x28], ecx */
   8322     eax = MEM32(eax + 0x4); /* 0x47096649: mov eax, dword ptr [eax + 4] */
   8323     MEM32(esp + 0x10) = ecx; /* 0x4709664C: mov dword ptr [esp + 0x10], ecx */
   8324     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8326     ecx = ecx + edx; /* 0x47096650: add ecx, edx */
   8327     _flag_k = FK_ADD;
   8328     MEM32(esp + 0x10) = ecx; /* 0x47096652: mov dword ptr [esp + 0x10], ecx */
   8329     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8330     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8331     eax = eax + MEM32(esi + 0x4); /* 0x47096656: add eax, dword ptr [esi + 4] */
   8332     _flag_k = FK_ADD;
   8333     ecx = esp + 0x10; /* 0x47096659: lea ecx, [esp + 0x10] */
   8334     MEM32(esp + 0x14) = eax; /* 0x4709665D: mov dword ptr [esp + 0x14], eax */
   8335     RECOMP_ICALL(0x470543C0u); /* 0x47096661: call 0x470543c0 */ /* not lifted */
   8336     RECOMP_FLAGS_IN();
   8337     PUSH32(esp, 1); /* 0x47096666: push 1 */
   8338     edx = esp + 0x14; /* 0x47096668: lea edx, [esp + 0x14] */
   8339     ebp = ebx + 0x9B0; /* 0x4709666C: lea ebp, [ebx + 0x9b0] */
   8340     PUSH32(esp, edx); /* 0x47096672: push edx */
   8341     goto L_4709667F; /* 0x47096673: jmp 0x4709667f */
   8342 L_47096675:
   8343     PUSH32(esp, 1); /* 0x47096675: push 1 */
   8344     ebp = ebx + 0x9B0; /* 0x47096677: lea ebp, [ebx + 0x9b0] */
   8345     PUSH32(esp, 0); /* 0x4709667D: push 0 */
   8346 L_4709667F:
   8347     PUSH32(esp, 0); /* 0x4709667F: push 0 */
   8348     PUSH32(esp, 0x47042970u); /* 0x47096681: push 0x47042970 */
   8349     ecx = ebp; /* 0x47096686: mov ecx, ebp */
   8350     RECOMP_ICALL(0x4708FBD0u); /* 0x47096688: call 0x4708fbd0 */ /* not lifted */
   8351     RECOMP_FLAGS_IN();
   8352     edi = eax; /* 0x4709668D: mov edi, eax */
   8353     eax = MEM32(esp + 0x30); /* 0x4709668F: mov eax, dword ptr [esp + 0x30] */
   8354     /* test eax, eax */ /* 0x47096693: test eax, eax */
   8355     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8356     _cf = 0;
   8357     _flag_k = FK_TEST;
   8358     if (TEST_Z(_flag_a, _flag_b)) goto L_4709670C; /* 0x47096695: je 0x4709670c */
   8359 L_47096697:
   8360     eax = MEM32(esp + 0x3C); /* 0x47096697: mov eax, dword ptr [esp + 0x3c] */
   8361     /* test eax, eax */ /* 0x4709669B: test eax, eax */
   8362     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8363     _cf = 0;
   8364     _flag_k = FK_TEST;
   8365     if (TEST_NZ(_flag_a, _flag_b)) goto L_4709670C; /* 0x4709669D: jne 0x4709670c */
   8366 L_4709669F:
   8367     eax = esp + 0x34; /* 0x4709669F: lea eax, [esp + 0x34] */
   8368     PUSH32(esp, eax); /* 0x470966A3: push eax */
   8369     ecx = esp + 0x2C; /* 0x470966A4: lea ecx, [esp + 0x2c] */
   8370     PUSH32(esp, ecx); /* 0x470966A8: push ecx */
   8371     RECOMP_ICALL(0x47001760u); /* 0x470966A9: call 0x47001760 */ /* not lifted */
   8372     RECOMP_FLAGS_IN();
   8373     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8374     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8375     esp = esp + 4; /* 0x470966AE: add esp, 4 */
   8376     _flag_k = FK_ADD;
   8377     PUSH32(esp, eax); /* 0x470966B1: push eax */
   8378     edx = esp + 0x28; /* 0x470966B2: lea edx, [esp + 0x28] */
   8379     PUSH32(esp, edx); /* 0x470966B6: push edx */
   8380     RECOMP_ICALL(0x470015F0u); /* 0x470966B7: call 0x470015f0 */ /* not lifted */
   8381     RECOMP_FLAGS_IN();
   8382     ecx = MEM32(eax); /* 0x470966BC: mov ecx, dword ptr [eax] */
   8383     MEM32(esp + 0x1C) = ecx; /* 0x470966BE: mov dword ptr [esp + 0x1c], ecx */
   8384     edx = MEM32(eax + 0x4); /* 0x470966C2: mov edx, dword ptr [eax + 4] */
   8385     ecx = MEM32(esp + 0x3C); /* 0x470966C5: mov ecx, dword ptr [esp + 0x3c] */
   8386     eax = esp + 0x1C; /* 0x470966C9: lea eax, [esp + 0x1c] */
   8387     PUSH32(esp, eax); /* 0x470966CD: push eax */
   8388     PUSH32(esp, ecx); /* 0x470966CE: push ecx */
   8389     MEM32(esp + 0x28) = edx; /* 0x470966CF: mov dword ptr [esp + 0x28], edx */
   8390     RECOMP_ICALL(0x470013D0u); /* 0x470966D3: call 0x470013d0 */ /* not lifted */
   8391     RECOMP_FLAGS_IN();
   8392     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8393     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8394     esp = esp + 0x14u; /* 0x470966D8: add esp, 0x14 */
   8395     _flag_k = FK_ADD;
   8396     /* test eax, eax */ /* 0x470966DB: test eax, eax */
   8397     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8398     _cf = 0;
   8399     _flag_k = FK_TEST;
   8400     if (TEST_Z(_flag_a, _flag_b)) goto L_470966EF; /* 0x470966DD: je 0x470966ef */
   8401 L_470966DF:
   8402     ecx = MEM32(esp + 0x30); /* 0x470966DF: mov ecx, dword ptr [esp + 0x30] */
   8403     edx = esp + 0x10; /* 0x470966E3: lea edx, [esp + 0x10] */
   8404     PUSH32(esp, edx); /* 0x470966E7: push edx */
   8405     RECOMP_ICALL(0x47001570u); /* 0x470966E8: call 0x47001570 */ /* not lifted */
   8406     RECOMP_FLAGS_IN();
   8407     goto L_47096704; /* 0x470966ED: jmp 0x47096704 */
   8408 L_470966EF:
   8409     eax = MEM32(esp + 0x30); /* 0x470966EF: mov eax, dword ptr [esp + 0x30] */
   8410     ecx = MEM32(0x4710E9A8); /* 0x470966F3: mov ecx, dword ptr [0x4710e9a8] */
   8411     MEM32(eax) = ecx; /* 0x470966F9: mov dword ptr [eax], ecx */
   8412     edx = MEM32(0x4710E9AC); /* 0x470966FB: mov edx, dword ptr [0x4710e9ac] */
   8413     MEM32(eax + 0x4) = edx; /* 0x47096701: mov dword ptr [eax + 4], edx */
   8414 L_47096704:
   8415     MEM32(esp + 0x3C) = 1; /* 0x47096704: mov dword ptr [esp + 0x3c], 1 */
   8416 L_4709670C:
   8417     ecx = esp + 0x30; /* 0x4709670C: lea ecx, [esp + 0x30] */
   8418     RECOMP_ICALL(0x470064E0u); /* 0x47096710: call 0x470064e0 */ /* not lifted */
   8419     RECOMP_FLAGS_IN();
   8420     /* cmp edi, 0xFFFFFFFFu */ /* 0x47096715: cmp edi, -1 */
   8421     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   8422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8423     _flag_k = FK_CMP;
   8424     if (CMP_EQ(_flag_a, _flag_b)) goto L_47096872; /* 0x47096718: je 0x47096872 */
   8425 L_4709671E:
   8426     /* cmp edi, 2 */ /* 0x4709671E: cmp edi, 2 */
   8427     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   8428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8429     _flag_k = FK_CMP;
   8430     if (CMP_EQ(_flag_a, _flag_b)) goto L_47096853; /* 0x47096721: je 0x47096853 */
   8431 L_47096727:
   8432     eax = MEM32(ebx + 0xA08); /* 0x47096727: mov eax, dword ptr [ebx + 0xa08] */
   8433     /* test eax, eax */ /* 0x4709672D: test eax, eax */
   8434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8435     _cf = 0;
   8436     _flag_k = FK_TEST;
   8437     if (TEST_Z(_flag_a, _flag_b)) goto L_47096761; /* 0x4709672F: je 0x47096761 */
   8438 L_47096731:
   8439     ecx = ebp; /* 0x47096731: mov ecx, ebp */
   8440     RECOMP_ICALL(0x47090300u); /* 0x47096733: call 0x47090300 */ /* not lifted */
   8441     RECOMP_FLAGS_IN();
   8442 L_47096738:
   8443     ecx = esp + 0x30; /* 0x47096738: lea ecx, [esp + 0x30] */
   8444     MEM32(esp + 0x5C) = 0xFFFFFFFFu; /* 0x4709673C: mov dword ptr [esp + 0x5c], 0xffffffff */
   8445     RECOMP_ICALL(0x470544D0u); /* 0x47096744: call 0x470544d0 */ /* not lifted */
   8446     RECOMP_FLAGS_IN();
   8447     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   8448     eax = eax | 0xFFFFFFFFu; /* 0x47096749: or eax, 0xffffffff */
   8449     _cf = 0;
   8450     _flag_k = FK_TEST;
   8451 L_4709674C:
   8452     ecx = MEM32(esp + 0x54); /* 0x4709674C: mov ecx, dword ptr [esp + 0x54] */
   8453     edi = POP32_VAL(esp); /* 0x47096750: pop edi */
   8454     esi = POP32_VAL(esp); /* 0x47096751: pop esi */
   8455     ebp = POP32_VAL(esp); /* 0x47096752: pop ebp */
   8456     ebx = POP32_VAL(esp); /* 0x47096753: pop ebx */
   8457     MEM32(FS_BASE + (0)) = ecx; /* 0x47096754: mov dword ptr fs:[0], ecx */
   8458     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u);
   8459     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8460     esp = esp + 0x50u; /* 0x4709675B: add esp, 0x50 */
   8461     _flag_k = FK_ADD;
   8462     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709675E: ret 4 */
   8463 L_47096761:
   8464     PUSH32(esp, esi); /* 0x47096761: push esi */
   8465     ecx = ebx; /* 0x47096762: mov ecx, ebx */
   8466     RECOMP_ICALL(0x47060410u); /* 0x47096764: call 0x47060410 */ /* not lifted */
   8467     RECOMP_FLAGS_IN();
   8468     esi = eax; /* 0x47096769: mov esi, eax */
   8469     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   8470     edi = edi | 0xFFFFFFFFu; /* 0x4709676B: or edi, 0xffffffff */
   8471     _cf = 0;
   8472     _flag_k = FK_TEST;
   8473     /* cmp esi, edi */ /* 0x4709676E: cmp esi, edi */
   8474     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   8475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8476     _flag_k = FK_CMP;
   8477     if (CMP_NE(_flag_a, _flag_b)) goto L_4709678A; /* 0x47096770: jne 0x4709678a */
   8478 L_47096772:
   8479     ecx = ebp; /* 0x47096772: mov ecx, ebp */
   8480     RECOMP_ICALL(0x47090300u); /* 0x47096774: call 0x47090300 */ /* not lifted */
   8481     RECOMP_FLAGS_IN();
   8482     ecx = esp + 0x30; /* 0x47096779: lea ecx, [esp + 0x30] */
   8483     MEM32(esp + 0x5C) = edi; /* 0x4709677D: mov dword ptr [esp + 0x5c], edi */
   8484     RECOMP_ICALL(0x470544D0u); /* 0x47096781: call 0x470544d0 */ /* not lifted */
   8485     RECOMP_FLAGS_IN();
   8486     eax = edi; /* 0x47096786: mov eax, edi */
   8487     RECOMP_BACKEDGE();
   8488     goto L_4709674C; /* 0x47096788: jmp 0x4709674c */
   8489 L_4709678A:
   8490     ecx = MEM32(ebx + 0xA20); /* 0x4709678A: mov ecx, dword ptr [ebx + 0xa20] */
   8491     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8492     eax = 0; /* 0x47096790: xor eax, eax */
   8493     _cf = 0;
   8494     _flag_k = FK_TEST;
   8495     /* cmp ecx, eax */ /* 0x47096792: cmp ecx, eax */
   8496     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8498     _flag_k = FK_CMP;
   8499     MEM32(esp + 0x50) = eax; /* 0x47096794: mov dword ptr [esp + 0x50], eax */
   8500     MEM32(esp + 0x40) = edi; /* 0x47096798: mov dword ptr [esp + 0x40], edi */
   8501     MEM32(esp + 0x44) = eax; /* 0x4709679C: mov dword ptr [esp + 0x44], eax */
   8502     MEM32(esp + 0x48) = eax; /* 0x470967A0: mov dword ptr [esp + 0x48], eax */
   8503     MEM32(esp + 0x4C) = eax; /* 0x470967A4: mov dword ptr [esp + 0x4c], eax */
   8504     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709681F; /* 0x470967A8: je 0x4709681f */
   8505 L_470967AA:
   8506     eax = ebx + 0xA10; /* 0x470967AA: lea eax, [ebx + 0xa10] */
   8507     esi = eax; /* 0x470967B0: mov esi, eax */
   8508     ecx = 5; /* 0x470967B2: mov ecx, 5 */
   8509     edi = esp + 0x40; /* 0x470967B7: lea edi, [esp + 0x40] */
   8510     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470967BB: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   8511     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8512     ecx = 0; /* 0x470967BD: xor ecx, ecx */
   8513     _cf = 0;
   8514     _flag_k = FK_TEST;
   8515     MEM32(eax + 0x10) = ecx; /* 0x470967BF: mov dword ptr [eax + 0x10], ecx */
   8516     MEM32(eax) = 0xFFFFFFFFu; /* 0x470967C2: mov dword ptr [eax], 0xffffffff */
   8517     MEM32(eax + 0x4) = ecx; /* 0x470967C8: mov dword ptr [eax + 4], ecx */
   8518     MEM32(eax + 0x8) = ecx; /* 0x470967CB: mov dword ptr [eax + 8], ecx */
   8519     MEM32(eax + 0xC) = ecx; /* 0x470967CE: mov dword ptr [eax + 0xc], ecx */
   8520     eax = MEM32(esp + 0x44); /* 0x470967D1: mov eax, dword ptr [esp + 0x44] */
   8521     /* cmp eax, MEM32(ebx + 0x990) */ /* 0x470967D5: cmp eax, dword ptr [ebx + 0x990] */
   8522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x990));
   8523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8524     _flag_k = FK_CMP;
   8525     edx = MEM32(ebx); /* 0x470967DB: mov edx, dword ptr [ebx] */
   8526     if (CMP_NE(_flag_a, _flag_b)) goto L_4709680D; /* 0x470967DD: jne 0x4709680d */
   8527 L_470967DF:
   8528     eax = esp + 0x40; /* 0x470967DF: lea eax, [esp + 0x40] */
   8529     PUSH32(esp, eax); /* 0x470967E3: push eax */
   8530     ecx = ebx; /* 0x470967E4: mov ecx, ebx */
   8531     RECOMP_ICALL(MEM32(edx + 0x14C)); /* 0x470967E6: call dword ptr [edx + 0x14c] */
   8532     RECOMP_FLAGS_IN();
   8533     ecx = ebp; /* 0x470967EC: mov ecx, ebp */
   8534     esi = eax; /* 0x470967EE: mov esi, eax */
   8535     RECOMP_ICALL(0x47090300u); /* 0x470967F0: call 0x47090300 */ /* not lifted */
   8536     RECOMP_FLAGS_IN();
   8537     ecx = esp + 0x30; /* 0x470967F5: lea ecx, [esp + 0x30] */
   8538     MEM32(esp + 0x5C) = 0xFFFFFFFFu; /* 0x470967F9: mov dword ptr [esp + 0x5c], 0xffffffff */
   8539     RECOMP_ICALL(0x470544D0u); /* 0x47096801: call 0x470544d0 */ /* not lifted */
   8540     RECOMP_FLAGS_IN();
   8541     eax = esi; /* 0x47096806: mov eax, esi */
   8542     RECOMP_BACKEDGE();
   8543     goto L_4709674C; /* 0x47096808: jmp 0x4709674c */
   8544 L_4709680D:
   8545     eax = MEM32(esp + 0x40); /* 0x4709680D: mov eax, dword ptr [esp + 0x40] */
   8546     PUSH32(esp, eax); /* 0x47096811: push eax */
   8547     ecx = ebx; /* 0x47096812: mov ecx, ebx */
   8548     RECOMP_ICALL(MEM32(edx + 0x110)); /* 0x47096814: call dword ptr [edx + 0x110] */
   8549     RECOMP_FLAGS_IN();
   8550     esi = eax; /* 0x4709681A: mov esi, eax */
   8551     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   8552     edi = edi | 0xFFFFFFFFu; /* 0x4709681C: or edi, 0xffffffff */
   8553     _cf = 0;
   8554     _flag_k = FK_TEST;
   8555 L_4709681F:
   8556     ecx = ebp; /* 0x4709681F: mov ecx, ebp */
   8557     RECOMP_ICALL(0x47090300u); /* 0x47096821: call 0x47090300 */ /* not lifted */
   8558     RECOMP_FLAGS_IN();
   8559     eax = MEM32(esp + 0x50); /* 0x47096826: mov eax, dword ptr [esp + 0x50] */
   8560     /* test eax, eax */ /* 0x4709682A: test eax, eax */
   8561     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8562     _cf = 0;
   8563     _flag_k = FK_TEST;
   8564     if (TEST_Z(_flag_a, _flag_b)) goto L_4709683F; /* 0x4709682C: je 0x4709683f */
   8565 L_4709682E:
   8566     edx = MEM32(ebx); /* 0x4709682E: mov edx, dword ptr [ebx] */
   8567     eax = esp + 0x40; /* 0x47096830: lea eax, [esp + 0x40] */
   8568     PUSH32(esp, eax); /* 0x47096834: push eax */
   8569     ecx = ebx; /* 0x47096835: mov ecx, ebx */
   8570     RECOMP_ICALL(MEM32(edx + 0x14C)); /* 0x47096837: call dword ptr [edx + 0x14c] */
   8571     RECOMP_FLAGS_IN();
   8572     esi = eax; /* 0x4709683D: mov esi, eax */
   8573 L_4709683F:
   8574     ecx = esp + 0x30; /* 0x4709683F: lea ecx, [esp + 0x30] */
   8575     MEM32(esp + 0x5C) = edi; /* 0x47096843: mov dword ptr [esp + 0x5c], edi */
   8576     RECOMP_ICALL(0x470544D0u); /* 0x47096847: call 0x470544d0 */ /* not lifted */
   8577     RECOMP_FLAGS_IN();
   8578     eax = esi; /* 0x4709684C: mov eax, esi */
   8579     RECOMP_BACKEDGE();
   8580     goto L_4709674C; /* 0x4709684E: jmp 0x4709674c */
   8581 L_47096853:
   8582     ecx = ebp; /* 0x47096853: mov ecx, ebp */
   8583     RECOMP_ICALL(0x47090300u); /* 0x47096855: call 0x47090300 */ /* not lifted */
   8584     RECOMP_FLAGS_IN();
   8585     ecx = esp + 0x30; /* 0x4709685A: lea ecx, [esp + 0x30] */
   8586     MEM32(esp + 0x5C) = 0xFFFFFFFFu; /* 0x4709685E: mov dword ptr [esp + 0x5c], 0xffffffff */
   8587     RECOMP_ICALL(0x470544D0u); /* 0x47096866: call 0x470544d0 */ /* not lifted */
   8588     RECOMP_FLAGS_IN();
   8589     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8590     eax = 0; /* 0x4709686B: xor eax, eax */
   8591     _cf = 0;
   8592     _flag_k = FK_TEST;
   8593     RECOMP_BACKEDGE();
   8594     goto L_4709674C; /* 0x4709686D: jmp 0x4709674c */
   8595 L_47096872:
   8596     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47096872: call dword ptr [0x470ac3c8] */
   8597     RECOMP_FLAGS_IN();
   8598     /* cmp MEM32(eax), 0x79u */ /* 0x47096878: cmp dword ptr [eax], 0x79 */
   8599     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x79u);
   8600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8601     _flag_k = FK_CMP;
   8602     RECOMP_BACKEDGE();
   8603     if (CMP_NE(_flag_a, _flag_b)) goto L_47096738; /* 0x4709687B: jne 0x47096738 */
   8604 L_47096881:
   8605     ecx = esp + 0x30; /* 0x47096881: lea ecx, [esp + 0x30] */
   8606     MEM32(esp + 0x5C) = 0xFFFFFFFFu; /* 0x47096885: mov dword ptr [esp + 0x5c], 0xffffffff */
   8607     RECOMP_ICALL(0x470544D0u); /* 0x4709688D: call 0x470544d0 */ /* not lifted */
   8608     RECOMP_FLAGS_IN();
   8609     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8610     eax = 0; /* 0x47096892: xor eax, eax */
   8611     _cf = 0;
   8612     _flag_k = FK_TEST;
   8613     RECOMP_BACKEDGE();
   8614     goto L_4709674C; /* 0x47096894: jmp 0x4709674c */
   8615     { RECOMP_REGS_OUT(); return; } /* end of function */
   8616     RECOMP_REGS_OUT();
   8617 }
   8618 
   8619 void sub_4709674C(void) {
   8620     int _fpu_cmp = 0;
   8621     uint32_t _cf = 0;
   8622     int _df = 1;
   8623     uint32_t _flag_k = FK_NONE;
   8624     uint32_t _flag_a = 0, _flag_b = 0;
   8625     uint32_t _itail_tgt = 0;
   8626     RECOMP_REGS_LOCALS
   8627     RECOMP_ENTER(0x4709674Cu);
   8628 
   8629 L_4709674C:
   8630     ecx = MEM32(esp + 0x54); /* 0x4709674C: mov ecx, dword ptr [esp + 0x54] */
   8631     edi = POP32_VAL(esp); /* 0x47096750: pop edi */
   8632     esi = POP32_VAL(esp); /* 0x47096751: pop esi */
   8633     ebp = POP32_VAL(esp); /* 0x47096752: pop ebp */
   8634     ebx = POP32_VAL(esp); /* 0x47096753: pop ebx */
   8635     MEM32(FS_BASE + (0)) = ecx; /* 0x47096754: mov dword ptr fs:[0], ecx */
   8636     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u);
   8637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8638     esp = esp + 0x50u; /* 0x4709675B: add esp, 0x50 */
   8639     _flag_k = FK_ADD;
   8640     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4709675E: ret 4 */
   8641     RECOMP_REGS_OUT();
   8642 }
   8643 
   8644 void sub_470968A0(void) {
   8645     int _fpu_cmp = 0;
   8646     uint32_t _cf = 0;
   8647     int _df = 1;
   8648     uint32_t _flag_k = FK_NONE;
   8649     uint32_t _flag_a = 0, _flag_b = 0;
   8650     uint32_t _itail_tgt = 0;
   8651     RECOMP_REGS_LOCALS
   8652     RECOMP_ENTER(0x470968A0u);
   8653 
   8654 L_470968A0:
   8655     PUSH32(esp, 0xFFFFFFFFu); /* 0x470968A0: push -1 */
   8656     PUSH32(esp, 0x470AB2F8u); /* 0x470968A2: push 0x470ab2f8 */
   8657     eax = MEM32(FS_BASE + (0)); /* 0x470968A7: mov eax, dword ptr fs:[0] */
   8658     PUSH32(esp, eax); /* 0x470968AD: push eax */
   8659     MEM32(FS_BASE + (0)) = esp; /* 0x470968AE: mov dword ptr fs:[0], esp */
   8660     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8662     esp = esp - 8; /* 0x470968B5: sub esp, 8 */
   8663     _flag_k = FK_CMP;
   8664     PUSH32(esp, ebx); /* 0x470968B8: push ebx */
   8665     PUSH32(esp, esi); /* 0x470968B9: push esi */
   8666     esi = ecx; /* 0x470968BA: mov esi, ecx */
   8667     ebx = esi + 0x9B0; /* 0x470968BC: lea ebx, [esi + 0x9b0] */
   8668     PUSH32(esp, 0); /* 0x470968C2: push 0 */
   8669     ecx = ebx; /* 0x470968C4: mov ecx, ebx */
   8670     MEM32(esp + 0xC) = ebx; /* 0x470968C6: mov dword ptr [esp + 0xc], ebx */
   8671     RECOMP_ICALL(0x4708FF80u); /* 0x470968CA: call 0x4708ff80 */ /* not lifted */
   8672     RECOMP_FLAGS_IN();
   8673     MEM32(esp + 0xC) = eax; /* 0x470968CF: mov dword ptr [esp + 0xc], eax */
   8674     /* cmp eax, 0xFFFFFFFFu */ /* 0x470968D3: cmp eax, -1 */
   8675     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   8676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8677     _flag_k = FK_CMP;
   8678     MEM32(esp + 0x18) = 0; /* 0x470968D6: mov dword ptr [esp + 0x18], 0 */
   8679     if (CMP_NE(_flag_a, _flag_b)) goto L_470968F5; /* 0x470968DE: jne 0x470968f5 */
   8680 L_470968E0:
   8681     esi = POP32_VAL(esp); /* 0x470968E0: pop esi */
   8682     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   8683     eax = eax | eax; /* 0x470968E1: or eax, eax */
   8684     _cf = 0;
   8685     _flag_k = FK_TEST;
   8686     ebx = POP32_VAL(esp); /* 0x470968E3: pop ebx */
   8687     ecx = MEM32(esp + 0x8); /* 0x470968E4: mov ecx, dword ptr [esp + 8] */
   8688     MEM32(FS_BASE + (0)) = ecx; /* 0x470968E8: mov dword ptr fs:[0], ecx */
   8689     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8691     esp = esp + 0x14u; /* 0x470968EF: add esp, 0x14 */
   8692     _flag_k = FK_ADD;
   8693     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470968F2: ret 0xc */
   8694 L_470968F5:
   8695     PUSH32(esp, edi); /* 0x470968F5: push edi */
   8696     edi = MEM32(esp + 0x24); /* 0x470968F6: mov edi, dword ptr [esp + 0x24] */
   8697     eax = esi + 0x340; /* 0x470968FA: lea eax, [esi + 0x340] */
   8698     PUSH32(esp, eax); /* 0x47096900: push eax */
   8699     PUSH32(esp, edi); /* 0x47096901: push edi */
   8700     RECOMP_ICALL(0x470A3290u); /* 0x47096902: call 0x470a3290 */ /* not lifted */
   8701     RECOMP_FLAGS_IN();
   8702     /* test eax, eax */ /* 0x47096907: test eax, eax */
   8703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8704     _cf = 0;
   8705     _flag_k = FK_TEST;
   8706     if (TEST_NZ(_flag_a, _flag_b)) goto L_47096948; /* 0x47096909: jne 0x47096948 */
   8707 L_4709690B:
   8708     ecx = esi + 0x44C; /* 0x4709690B: lea ecx, [esi + 0x44c] */
   8709     PUSH32(esp, ecx); /* 0x47096911: push ecx */
   8710     PUSH32(esp, edi); /* 0x47096912: push edi */
   8711     RECOMP_ICALL(0x470A3290u); /* 0x47096913: call 0x470a3290 */ /* not lifted */
   8712     RECOMP_FLAGS_IN();
   8713     /* test eax, eax */ /* 0x47096918: test eax, eax */
   8714     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8715     _cf = 0;
   8716     _flag_k = FK_TEST;
   8717     if (TEST_NZ(_flag_a, _flag_b)) goto L_47096948; /* 0x4709691A: jne 0x47096948 */
   8718 L_4709691C:
   8719     edx = esi + 0x558; /* 0x4709691C: lea edx, [esi + 0x558] */
   8720     PUSH32(esp, edx); /* 0x47096922: push edx */
   8721     PUSH32(esp, edi); /* 0x47096923: push edi */
   8722     RECOMP_ICALL(0x470A3290u); /* 0x47096924: call 0x470a3290 */ /* not lifted */
   8723     RECOMP_FLAGS_IN();
   8724     /* test eax, eax */ /* 0x47096929: test eax, eax */
   8725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8726     _cf = 0;
   8727     _flag_k = FK_TEST;
   8728     if (TEST_NZ(_flag_a, _flag_b)) goto L_47096948; /* 0x4709692B: jne 0x47096948 */
   8729 L_4709692D:
   8730     ecx = MEM32(esp + 0x2C); /* 0x4709692D: mov ecx, dword ptr [esp + 0x2c] */
   8731     eax = MEM32(esi); /* 0x47096931: mov eax, dword ptr [esi] */
   8732     PUSH32(esp, ecx); /* 0x47096933: push ecx */
   8733     ecx = MEM32(esp + 0x2C); /* 0x47096934: mov ecx, dword ptr [esp + 0x2c] */
   8734     edx = esi + 0x14; /* 0x47096938: lea edx, [esi + 0x14] */
   8735     PUSH32(esp, edx); /* 0x4709693B: push edx */
   8736     PUSH32(esp, ecx); /* 0x4709693C: push ecx */
   8737     PUSH32(esp, edi); /* 0x4709693D: push edi */
   8738     ecx = esi; /* 0x4709693E: mov ecx, esi */
   8739     RECOMP_ICALL(MEM32(eax + 0xF8)); /* 0x47096940: call dword ptr [eax + 0xf8] */
   8740     RECOMP_FLAGS_IN();
   8741     goto L_47096964; /* 0x47096946: jmp 0x47096964 */
   8742 L_47096948:
   8743     eax = MEM32(esp + 0x2C); /* 0x47096948: mov eax, dword ptr [esp + 0x2c] */
   8744     edx = MEM32(esi); /* 0x4709694C: mov edx, dword ptr [esi] */
   8745     PUSH32(esp, eax); /* 0x4709694E: push eax */
   8746     eax = MEM32(esp + 0x2C); /* 0x4709694F: mov eax, dword ptr [esp + 0x2c] */
   8747     ecx = esi + 0x338; /* 0x47096953: lea ecx, [esi + 0x338] */
   8748     PUSH32(esp, ecx); /* 0x47096959: push ecx */
   8749     PUSH32(esp, eax); /* 0x4709695A: push eax */
   8750     PUSH32(esp, edi); /* 0x4709695B: push edi */
   8751     ecx = esi; /* 0x4709695C: mov ecx, esi */
   8752     RECOMP_ICALL(MEM32(edx + 0xF8)); /* 0x4709695E: call dword ptr [edx + 0xf8] */
   8753     RECOMP_FLAGS_IN();
   8754 L_47096964:
   8755     ecx = ebx; /* 0x47096964: mov ecx, ebx */
   8756     esi = eax; /* 0x47096966: mov esi, eax */
   8757     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47096968: mov dword ptr [esp + 0x1c], 0xffffffff */
   8758     RECOMP_ICALL(0x47090300u); /* 0x47096970: call 0x47090300 */ /* not lifted */
   8759     RECOMP_FLAGS_IN();
   8760     ecx = MEM32(esp + 0x14); /* 0x47096975: mov ecx, dword ptr [esp + 0x14] */
   8761     edi = POP32_VAL(esp); /* 0x47096979: pop edi */
   8762     eax = esi; /* 0x4709697A: mov eax, esi */
   8763     esi = POP32_VAL(esp); /* 0x4709697C: pop esi */
   8764     ebx = POP32_VAL(esp); /* 0x4709697D: pop ebx */
   8765     MEM32(FS_BASE + (0)) = ecx; /* 0x4709697E: mov dword ptr fs:[0], ecx */
   8766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8768     esp = esp + 0x14u; /* 0x47096985: add esp, 0x14 */
   8769     _flag_k = FK_ADD;
   8770     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47096988: ret 0xc */
   8771     RECOMP_REGS_OUT();
   8772 }
   8773 
   8774 void sub_47096990(void) {
   8775     int _fpu_cmp = 0;
   8776     uint32_t _cf = 0;
   8777     int _df = 1;
   8778     uint32_t _flag_k = FK_NONE;
   8779     uint32_t _flag_a = 0, _flag_b = 0;
   8780     uint32_t _itail_tgt = 0;
   8781     RECOMP_REGS_LOCALS
   8782     RECOMP_ENTER(0x47096990u);
   8783 
   8784 L_47096990:
   8785     eax = ecx; /* 0x47096990: mov eax, ecx */
   8786     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8787     ecx = 0; /* 0x47096992: xor ecx, ecx */
   8788     _cf = 0;
   8789     _flag_k = FK_TEST;
   8790     MEM32(eax + 0x10) = ecx; /* 0x47096994: mov dword ptr [eax + 0x10], ecx */
   8791     MEM32(eax) = 0xFFFFFFFFu; /* 0x47096997: mov dword ptr [eax], 0xffffffff */
   8792     MEM32(eax + 0x4) = ecx; /* 0x4709699D: mov dword ptr [eax + 4], ecx */
   8793     MEM32(eax + 0x8) = ecx; /* 0x470969A0: mov dword ptr [eax + 8], ecx */
   8794     MEM32(eax + 0xC) = ecx; /* 0x470969A3: mov dword ptr [eax + 0xc], ecx */
   8795     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470969A6: ret  */
   8796     RECOMP_REGS_OUT();
   8797 }
   8798 
   8799 void sub_470969B0(void) {
   8800     int _fpu_cmp = 0;
   8801     uint32_t _cf = 0;
   8802     int _df = 1;
   8803     uint32_t _flag_k = FK_NONE;
   8804     uint32_t _flag_a = 0, _flag_b = 0;
   8805     uint32_t _itail_tgt = 0;
   8806     RECOMP_REGS_LOCALS
   8807     RECOMP_ENTER(0x470969B0u);
   8808 
   8809 L_470969B0:
   8810     eax = MEM32(esp + 0x4); /* 0x470969B0: mov eax, dword ptr [esp + 4] */
   8811     edx = MEM32(esp + 0x8); /* 0x470969B4: mov edx, dword ptr [esp + 8] */
   8812     MEM32(ecx) = eax; /* 0x470969B8: mov dword ptr [ecx], eax */
   8813     eax = MEM32(esp + 0xC); /* 0x470969BA: mov eax, dword ptr [esp + 0xc] */
   8814     MEM32(ecx + 0x4) = edx; /* 0x470969BE: mov dword ptr [ecx + 4], edx */
   8815     edx = MEM32(esp + 0x10); /* 0x470969C1: mov edx, dword ptr [esp + 0x10] */
   8816     MEM32(ecx + 0x10) = 1; /* 0x470969C5: mov dword ptr [ecx + 0x10], 1 */
   8817     MEM32(ecx + 0x8) = eax; /* 0x470969CC: mov dword ptr [ecx + 8], eax */
   8818     MEM32(ecx + 0xC) = edx; /* 0x470969CF: mov dword ptr [ecx + 0xc], edx */
   8819     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470969D2: ret 0x10 */
   8820     RECOMP_REGS_OUT();
   8821 }
   8822 
   8823 void sub_470969E0(void) {
   8824     int _fpu_cmp = 0;
   8825     uint32_t _cf = 0;
   8826     int _df = 1;
   8827     uint32_t _flag_k = FK_NONE;
   8828     uint32_t _flag_a = 0, _flag_b = 0;
   8829     uint32_t _itail_tgt = 0;
   8830     RECOMP_REGS_LOCALS
   8831     RECOMP_ENTER(0x470969E0u);
   8832 
   8833 L_470969E0:
   8834     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8835     eax = 0; /* 0x470969E0: xor eax, eax */
   8836     _cf = 0;
   8837     _flag_k = FK_TEST;
   8838     MEM32(ecx + 0x10) = eax; /* 0x470969E2: mov dword ptr [ecx + 0x10], eax */
   8839     MEM32(ecx) = 0xFFFFFFFFu; /* 0x470969E5: mov dword ptr [ecx], 0xffffffff */
   8840     MEM32(ecx + 0x4) = eax; /* 0x470969EB: mov dword ptr [ecx + 4], eax */
   8841     MEM32(ecx + 0x8) = eax; /* 0x470969EE: mov dword ptr [ecx + 8], eax */
   8842     MEM32(ecx + 0xC) = eax; /* 0x470969F1: mov dword ptr [ecx + 0xc], eax */
   8843     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470969F4: ret  */
   8844     RECOMP_REGS_OUT();
   8845 }
   8846 
   8847 void sub_47096A00(void) {
   8848     int _fpu_cmp = 0;
   8849     uint32_t _cf = 0;
   8850     int _df = 1;
   8851     uint32_t _flag_k = FK_NONE;
   8852     uint32_t _flag_a = 0, _flag_b = 0;
   8853     uint32_t _itail_tgt = 0;
   8854     RECOMP_REGS_LOCALS
   8855     RECOMP_ENTER(0x47096A00u);
   8856 
   8857 L_47096A00:
   8858     eax = ecx; /* 0x47096A00: mov eax, ecx */
   8859     ecx = MEM32(esp + 0x4); /* 0x47096A02: mov ecx, dword ptr [esp + 4] */
   8860     MEM32(eax + 0x4) = ecx; /* 0x47096A06: mov dword ptr [eax + 4], ecx */
   8861     MEM32(eax + 0x8) = 0; /* 0x47096A09: mov dword ptr [eax + 8], 0 */
   8862     MEM32(eax) = 0x470AE190u; /* 0x47096A10: mov dword ptr [eax], 0x470ae190 */
   8863     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47096A16: ret 4 */
   8864     RECOMP_REGS_OUT();
   8865 }
   8866 
   8867 void sub_47096A20(void) {
   8868     int _fpu_cmp = 0;
   8869     uint32_t _cf = 0;
   8870     int _df = 1;
   8871     uint32_t _flag_k = FK_NONE;
   8872     uint32_t _flag_a = 0, _flag_b = 0;
   8873     uint32_t _itail_tgt = 0;
   8874     RECOMP_REGS_LOCALS
   8875     RECOMP_ENTER(0x47096A20u);
   8876 
   8877 L_47096A20:
   8878     MEM32(0x4710FC1C) = 0x4710D28Cu; /* 0x47096A20: mov dword ptr [0x4710fc1c], 0x4710d28c */
   8879     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47096A2A: ret  */
   8880     RECOMP_REGS_OUT();
   8881 }
   8882 
   8883 void sub_47096A30(void) {
   8884     int _fpu_cmp = 0;
   8885     uint32_t _cf = 0;
   8886     int _df = 1;
   8887     uint32_t _flag_k = FK_NONE;
   8888     uint32_t _flag_a = 0, _flag_b = 0;
   8889     uint32_t _itail_tgt = 0;
   8890     RECOMP_REGS_LOCALS
   8891     RECOMP_ENTER(0x47096A30u);
   8892 
   8893 L_47096A30:
   8894     ecx = 0x4710FC21u; /* 0x47096A30: mov ecx, 0x4710fc21 */
   8895     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47096A35: call dword ptr [0x470ac1c8] */
   8896     RECOMP_FLAGS_IN();
   8897     PUSH32(esp, 0x47096A50u); /* 0x47096A3B: push 0x47096a50 */
   8898     RECOMP_ICALL(0x470A32D9u); /* 0x47096A40: call 0x470a32d9 */ /* not lifted */
   8899     RECOMP_FLAGS_IN();
   8900     ecx = POP32_VAL(esp); /* 0x47096A45: pop ecx */
   8901     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47096A46: ret  */
   8902     RECOMP_REGS_OUT();
   8903 }
   8904 
   8905 void sub_47096A50(void) {
   8906     int _fpu_cmp = 0;
   8907     uint32_t _cf = 0;
   8908     int _df = 1;
   8909     uint32_t _flag_k = FK_NONE;
   8910     uint32_t _flag_a = 0, _flag_b = 0;
   8911     uint32_t _itail_tgt = 0;
   8912     RECOMP_REGS_LOCALS
   8913     RECOMP_ENTER(0x47096A50u);
   8914 
   8915 L_47096A50:
   8916     ecx = 0x4710FC21u; /* 0x47096A50: mov ecx, 0x4710fc21 */
   8917 L_47096A55:
   8918     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   8919     { RECOMP_REGS_OUT(); return; } /* end of function */
   8920   _ljump:
   8921     switch (_itail_tgt) {
   8922       case 0x47096A50u: goto L_47096A50;
   8923       case 0x47096A55u: goto L_47096A55;
   8924       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8925     }
   8926     RECOMP_REGS_OUT();
   8927 }
   8928 
   8929 void sub_47096A60(void) {
   8930     int _fpu_cmp = 0;
   8931     uint32_t _cf = 0;
   8932     int _df = 1;
   8933     uint32_t _flag_k = FK_NONE;
   8934     uint32_t _flag_a = 0, _flag_b = 0;
   8935     uint32_t _itail_tgt = 0;
   8936     RECOMP_REGS_LOCALS
   8937     RECOMP_ENTER(0x47096A60u);
   8938 
   8939 L_47096A60:
   8940     ecx = 0x4710FC20u; /* 0x47096A60: mov ecx, 0x4710fc20 */
   8941     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47096A65: call dword ptr [0x470ac1c4] */
   8942     RECOMP_FLAGS_IN();
   8943     PUSH32(esp, 0x47096A80u); /* 0x47096A6B: push 0x47096a80 */
   8944     RECOMP_ICALL(0x470A32D9u); /* 0x47096A70: call 0x470a32d9 */ /* not lifted */
   8945     RECOMP_FLAGS_IN();
   8946     ecx = POP32_VAL(esp); /* 0x47096A75: pop ecx */
   8947     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47096A76: ret  */
   8948     RECOMP_REGS_OUT();
   8949 }