aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0023.c (348009B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_4702DD60(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(0x4702DD60u);
     13 
     14 L_4702DD60:
     15     eax = esp + 0x4; /* 0x4702DD60: lea eax, [esp + 4] */
     16     PUSH32(esp, eax); /* 0x4702DD64: push eax */
     17     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
     18     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     19     ecx = ecx + 4; /* 0x4702DD65: add ecx, 4 */
     20     _flag_k = FK_ADD;
     21     RECOMP_ICALL(0x4702F170u); /* 0x4702DD68: call 0x4702f170 */ /* not lifted */
     22     RECOMP_FLAGS_IN();
     23     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702DD6D: ret 4 */
     24     RECOMP_REGS_OUT();
     25 }
     26 
     27 void sub_4702DD70(void) {
     28     int _fpu_cmp = 0;
     29     uint32_t _cf = 0;
     30     int _df = 1;
     31     uint32_t _flag_k = FK_NONE;
     32     uint32_t _flag_a = 0, _flag_b = 0;
     33     uint32_t _itail_tgt = 0;
     34     RECOMP_REGS_LOCALS
     35     RECOMP_ENTER(0x4702DD70u);
     36 
     37 L_4702DD70:
     38     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702DD70: push -1 */
     39     PUSH32(esp, 0x470A5420u); /* 0x4702DD72: push 0x470a5420 */
     40     eax = MEM32(FS_BASE + (0)); /* 0x4702DD77: mov eax, dword ptr fs:[0] */
     41     PUSH32(esp, eax); /* 0x4702DD7D: push eax */
     42     MEM32(FS_BASE + (0)) = esp; /* 0x4702DD7E: mov dword ptr fs:[0], esp */
     43     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     44     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     45     esp = esp - 0x14u; /* 0x4702DD85: sub esp, 0x14 */
     46     _flag_k = FK_CMP;
     47     eax = MEM32(esp + 0x24); /* 0x4702DD88: mov eax, dword ptr [esp + 0x24] */
     48     PUSH32(esp, ebp); /* 0x4702DD8C: push ebp */
     49     PUSH32(esp, esi); /* 0x4702DD8D: push esi */
     50     PUSH32(esp, edi); /* 0x4702DD8E: push edi */
     51     PUSH32(esp, eax); /* 0x4702DD8F: push eax */
     52     edi = ecx; /* 0x4702DD90: mov edi, ecx */
     53     RECOMP_ICALL(0x4700B4C0u); /* 0x4702DD92: call 0x4700b4c0 */ /* not lifted */
     54     RECOMP_FLAGS_IN();
     55     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     56     edx = 0; /* 0x4702DD97: xor edx, edx */
     57     _cf = 0;
     58     _flag_k = FK_TEST;
     59     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(edi); /* 0x4702DD99: div dword ptr [edi] */
     60       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
     61       else { eax = 0; edx = 0; } }
     62     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     63     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     64     esp = esp + 4; /* 0x4702DD9B: add esp, 4 */
     65     _flag_k = FK_ADD;
     66     eax = edx * 8; /* 0x4702DD9E: lea eax, [edx*8] */
     67     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
     68     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     69     eax = eax - edx; /* 0x4702DDA5: sub eax, edx */
     70     _flag_k = FK_CMP;
     71     ecx = eax + eax * 2; /* 0x4702DDA7: lea ecx, [eax + eax*2] */
     72     esi = edi + ecx * 8 + 0x18; /* 0x4702DDAA: lea esi, [edi + ecx*8 + 0x18] */
     73     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
     74     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     75     edi = edi + 4; /* 0x4702DDAE: add edi, 4 */
     76     _flag_k = FK_ADD;
     77     edx = esp + 0x10; /* 0x4702DDB1: lea edx, [esp + 0x10] */
     78     PUSH32(esp, edx); /* 0x4702DDB5: push edx */
     79     eax = esp + 0x10; /* 0x4702DDB6: lea eax, [esp + 0x10] */
     80     PUSH32(esp, eax); /* 0x4702DDBA: push eax */
     81     ecx = esp + 0x38; /* 0x4702DDBB: lea ecx, [esp + 0x38] */
     82     PUSH32(esp, ecx); /* 0x4702DDBF: push ecx */
     83     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     84     ebp = 0; /* 0x4702DDC0: xor ebp, ebp */
     85     _cf = 0;
     86     _flag_k = FK_TEST;
     87     ecx = edi; /* 0x4702DDC2: mov ecx, edi */
     88     MEM32(esp + 0x34) = ebp; /* 0x4702DDC4: mov dword ptr [esp + 0x34], ebp */
     89     RECOMP_ICALL(0x4702F790u); /* 0x4702DDC8: call 0x4702f790 */ /* not lifted */
     90     RECOMP_FLAGS_IN();
     91     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     92     edx = 0; /* 0x4702DDCD: xor edx, edx */
     93     _cf = 0;
     94     _flag_k = FK_TEST;
     95     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702DDCF: cmp eax, -1 */
     96     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
     97     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     98     _flag_k = FK_CMP;
     99     SET_LO8(edx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x4702DDD2: setne dl */
    100     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x4702DDD5: mov dword ptr [esp + 0x28], 0xffffffff */
    101     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    102     edx = edx - 1; /* 0x4702DDDD: dec edx */
    103     _flag_k = FK_DEC;
    104     eax = edx; /* 0x4702DDDE: mov eax, edx */
    105     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702DDE0: cmp eax, -1 */
    106     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    108     _flag_k = FK_CMP;
    109     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DEEF; /* 0x4702DDE3: je 0x4702deef */
    110 L_4702DDE9:
    111     PUSH32(esp, ebx); /* 0x4702DDE9: push ebx */
    112     MEM32(esp + 0x1C) = esi; /* 0x4702DDEA: mov dword ptr [esp + 0x1c], esi */
    113     PUSH32(esp, esi); /* 0x4702DDEE: push esi */
    114     MEM32(esp + 0x30) = 1; /* 0x4702DDEF: mov dword ptr [esp + 0x30], 1 */
    115     RECOMP_ICALL(0x47002030u); /* 0x4702DDF7: call 0x47002030 */ /* not lifted */
    116     RECOMP_FLAGS_IN();
    117     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    118     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    119     esp = esp + 4; /* 0x4702DDFC: add esp, 4 */
    120     _flag_k = FK_ADD;
    121     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702DDFF: cmp eax, -1 */
    122     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    124     _flag_k = FK_CMP;
    125     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DE40; /* 0x4702DE02: je 0x4702de40 */
    126 L_4702DE04:
    127     /* cmp MEM32(esi + 0x74), ebp */ /* 0x4702DE04: cmp dword ptr [esi + 0x74], ebp */
    128     _flag_a = (uint32_t)(MEM32(esi + 0x74)); _flag_b = (uint32_t)(ebp);
    129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    130     _flag_k = FK_CMP;
    131     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DE30; /* 0x4702DE07: je 0x4702de30 */
    132 L_4702DE09:
    133     ebx = esi + 0x48; /* 0x4702DE09: lea ebx, [esi + 0x48] */
    134 L_4702DE0C:
    135     edx = MEM32(esi + 0x70); /* 0x4702DE0C: mov edx, dword ptr [esi + 0x70] */
    136     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    137     edx = edx + 1; /* 0x4702DE0F: inc edx */
    138     _flag_k = FK_INC;
    139     PUSH32(esp, esi); /* 0x4702DE10: push esi */
    140     PUSH32(esp, ebx); /* 0x4702DE11: push ebx */
    141     MEM32(esi + 0x70) = edx; /* 0x4702DE12: mov dword ptr [esi + 0x70], edx */
    142     RECOMP_ICALL(0x47057E90u); /* 0x4702DE15: call 0x47057e90 */ /* not lifted */
    143     RECOMP_FLAGS_IN();
    144     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    145     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    146     esp = esp + 8; /* 0x4702DE1A: add esp, 8 */
    147     _flag_k = FK_ADD;
    148     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702DE1D: cmp eax, -1 */
    149     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    151     _flag_k = FK_CMP;
    152     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DE37; /* 0x4702DE20: je 0x4702de37 */
    153 L_4702DE22:
    154     ecx = MEM32(esi + 0x70); /* 0x4702DE22: mov ecx, dword ptr [esi + 0x70] */
    155     eax = MEM32(esi + 0x74); /* 0x4702DE25: mov eax, dword ptr [esi + 0x74] */
    156     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    157     ecx = ecx - 1; /* 0x4702DE28: dec ecx */
    158     _flag_k = FK_DEC;
    159     /* cmp eax, ebp */ /* 0x4702DE29: cmp eax, ebp */
    160     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
    161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    162     _flag_k = FK_CMP;
    163     MEM32(esi + 0x70) = ecx; /* 0x4702DE2B: mov dword ptr [esi + 0x70], ecx */
    164     RECOMP_BACKEDGE();
    165     if (CMP_NE(_flag_a, _flag_b)) goto L_4702DE0C; /* 0x4702DE2E: jne 0x4702de0c */
    166 L_4702DE30:
    167     MEM32(esi + 0x74) = 0xFFFFFFFFu; /* 0x4702DE30: mov dword ptr [esi + 0x74], 0xffffffff */
    168 L_4702DE37:
    169     PUSH32(esp, esi); /* 0x4702DE37: push esi */
    170     RECOMP_ICALL(0x47002210u); /* 0x4702DE38: call 0x47002210 */ /* not lifted */
    171     RECOMP_FLAGS_IN();
    172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    173     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    174     esp = esp + 4; /* 0x4702DE3D: add esp, 4 */
    175     _flag_k = FK_ADD;
    176 L_4702DE40:
    177     MEM32(esp + 0x20) = ebp; /* 0x4702DE40: mov dword ptr [esp + 0x20], ebp */
    178     eax = MEM32(esp + 0x34); /* 0x4702DE44: mov eax, dword ptr [esp + 0x34] */
    179     ecx = edi + 0x4; /* 0x4702DE48: lea ecx, [edi + 4] */
    180     PUSH32(esp, ecx); /* 0x4702DE4B: push ecx */
    181     ebx = 2; /* 0x4702DE4C: mov ebx, 2 */
    182     ecx = esp + 0x1C; /* 0x4702DE51: lea ecx, [esp + 0x1c] */
    183     MEM32(esp + 0x30) = ebx; /* 0x4702DE55: mov dword ptr [esp + 0x30], ebx */
    184     MEM32(esp + 0x18) = eax; /* 0x4702DE59: mov dword ptr [esp + 0x18], eax */
    185     MEM32(esp + 0x14) = ebp; /* 0x4702DE5D: mov dword ptr [esp + 0x14], ebp */
    186     RECOMP_ICALL(0x470010E0u); /* 0x4702DE61: call 0x470010e0 */ /* not lifted */
    187     RECOMP_FLAGS_IN();
    188     edx = esp + 0x10; /* 0x4702DE66: lea edx, [esp + 0x10] */
    189     PUSH32(esp, edx); /* 0x4702DE6A: push edx */
    190     eax = esp + 0x18; /* 0x4702DE6B: lea eax, [esp + 0x18] */
    191     PUSH32(esp, eax); /* 0x4702DE6F: push eax */
    192     ecx = edi; /* 0x4702DE70: mov ecx, edi */
    193     MEM8(esp + 0x34) = (uint8_t)(3); /* 0x4702DE72: mov byte ptr [esp + 0x34], 3 */
    194     RECOMP_ICALL(0x4702F4F0u); /* 0x4702DE77: call 0x4702f4f0 */ /* not lifted */
    195     RECOMP_FLAGS_IN();
    196     /* cmp eax, ebp */ /* 0x4702DE7C: cmp eax, ebp */
    197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
    198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    199     _flag_k = FK_CMP;
    200     MEM8(esp + 0x2C) = (uint8_t)(LO8(ebx)); /* 0x4702DE7E: mov byte ptr [esp + 0x2c], bl */
    201     ebx = POP32_VAL(esp); /* 0x4702DE82: pop ebx */
    202     if (CMP_NE(_flag_a, _flag_b)) goto L_4702DEC2; /* 0x4702DE83: jne 0x4702dec2 */
    203 L_4702DE85:
    204     ecx = MEM32(esp + 0xC); /* 0x4702DE85: mov ecx, dword ptr [esp + 0xc] */
    205     MEM32(ecx + 0x25C) = 1; /* 0x4702DE89: mov dword ptr [ecx + 0x25c], 1 */
    206     edx = MEM32(esp + 0xC); /* 0x4702DE93: mov edx, dword ptr [esp + 0xc] */
    207     eax = MEM32(edx + 0x30C); /* 0x4702DE97: mov eax, dword ptr [edx + 0x30c] */
    208     PUSH32(esp, eax); /* 0x4702DE9D: push eax */
    209     RECOMP_ICALL(0x47002A90u); /* 0x4702DE9E: call 0x47002a90 */ /* not lifted */
    210     RECOMP_FLAGS_IN();
    211     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    212     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    213     esp = esp + 4; /* 0x4702DEA3: add esp, 4 */
    214     _flag_k = FK_ADD;
    215     /* test eax, eax */ /* 0x4702DEA6: test eax, eax */
    216     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    217     _cf = 0;
    218     _flag_k = FK_TEST;
    219     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702DEC6; /* 0x4702DEA8: jne 0x4702dec6 */
    220 L_4702DEAA:
    221     ecx = MEM32(esp + 0xC); /* 0x4702DEAA: mov ecx, dword ptr [esp + 0xc] */
    222     /* cmp ecx, ebp */ /* 0x4702DEAE: cmp ecx, ebp */
    223     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp);
    224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    225     _flag_k = FK_CMP;
    226     edi = ecx; /* 0x4702DEB0: mov edi, ecx */
    227     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DEC2; /* 0x4702DEB2: je 0x4702dec2 */
    228 L_4702DEB4:
    229     RECOMP_ICALL(0x4702EE80u); /* 0x4702DEB4: call 0x4702ee80 */ /* not lifted */
    230     RECOMP_FLAGS_IN();
    231     PUSH32(esp, edi); /* 0x4702DEB9: push edi */
    232     RECOMP_ICALL(0x470A32A2u); /* 0x4702DEBA: call 0x470a32a2 */ /* not lifted */
    233     RECOMP_FLAGS_IN();
    234     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    235     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    236     esp = esp + 4; /* 0x4702DEBF: add esp, 4 */
    237     _flag_k = FK_ADD;
    238 L_4702DEC2:
    239     MEM32(esp + 0xC) = ebp; /* 0x4702DEC2: mov dword ptr [esp + 0xc], ebp */
    240 L_4702DEC6:
    241     PUSH32(esp, esi); /* 0x4702DEC6: push esi */
    242     MEM32(esp + 0x2C) = 0xFFFFFFFFu; /* 0x4702DEC7: mov dword ptr [esp + 0x2c], 0xffffffff */
    243     RECOMP_ICALL(0x47002D10u); /* 0x4702DECF: call 0x47002d10 */ /* not lifted */
    244     RECOMP_FLAGS_IN();
    245     eax = MEM32(esp + 0x10); /* 0x4702DED4: mov eax, dword ptr [esp + 0x10] */
    246     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    247     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    248     esp = esp + 4; /* 0x4702DED8: add esp, 4 */
    249     _flag_k = FK_ADD;
    250     edi = POP32_VAL(esp); /* 0x4702DEDB: pop edi */
    251     esi = POP32_VAL(esp); /* 0x4702DEDC: pop esi */
    252     ebp = POP32_VAL(esp); /* 0x4702DEDD: pop ebp */
    253     ecx = MEM32(esp + 0x14); /* 0x4702DEDE: mov ecx, dword ptr [esp + 0x14] */
    254     MEM32(FS_BASE + (0)) = ecx; /* 0x4702DEE2: mov dword ptr fs:[0], ecx */
    255     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    256     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    257     esp = esp + 0x20u; /* 0x4702DEE9: add esp, 0x20 */
    258     _flag_k = FK_ADD;
    259     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702DEEC: ret 4 */
    260 L_4702DEEF:
    261     ecx = MEM32(esp + 0x20); /* 0x4702DEEF: mov ecx, dword ptr [esp + 0x20] */
    262     edi = POP32_VAL(esp); /* 0x4702DEF3: pop edi */
    263     esi = POP32_VAL(esp); /* 0x4702DEF4: pop esi */
    264     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    265     eax = 0; /* 0x4702DEF5: xor eax, eax */
    266     _cf = 0;
    267     _flag_k = FK_TEST;
    268     ebp = POP32_VAL(esp); /* 0x4702DEF7: pop ebp */
    269     MEM32(FS_BASE + (0)) = ecx; /* 0x4702DEF8: mov dword ptr fs:[0], ecx */
    270     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
    271     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    272     esp = esp + 0x20u; /* 0x4702DEFF: add esp, 0x20 */
    273     _flag_k = FK_ADD;
    274     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702DF02: ret 4 */
    275     RECOMP_REGS_OUT();
    276 }
    277 
    278 void sub_4702DF10(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(0x4702DF10u);
    287 
    288 L_4702DF10:
    289     eax = MEM32(FS_BASE + (0)); /* 0x4702DF10: mov eax, dword ptr fs:[0] */
    290     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702DF16: push -1 */
    291     PUSH32(esp, 0x470A5438u); /* 0x4702DF18: push 0x470a5438 */
    292     PUSH32(esp, eax); /* 0x4702DF1D: push eax */
    293     MEM32(FS_BASE + (0)) = esp; /* 0x4702DF1E: mov dword ptr fs:[0], esp */
    294     eax = MEM32(ecx + 0x4); /* 0x4702DF25: mov eax, dword ptr [ecx + 4] */
    295     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    297     esp = esp - 0xCu; /* 0x4702DF28: sub esp, 0xc */
    298     _flag_k = FK_CMP;
    299     PUSH32(esp, ebx); /* 0x4702DF2B: push ebx */
    300     PUSH32(esp, esi); /* 0x4702DF2C: push esi */
    301     PUSH32(esp, edi); /* 0x4702DF2D: push edi */
    302     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
    303     edi = edi | 0xFFFFFFFFu; /* 0x4702DF2E: or edi, 0xffffffff */
    304     _cf = 0;
    305     _flag_k = FK_TEST;
    306     /* cmp eax, edi */ /* 0x4702DF31: cmp eax, edi */
    307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    309     _flag_k = FK_CMP;
    310     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E06A; /* 0x4702DF33: je 0x4702e06a */
    311 L_4702DF39:
    312     esi = MEM32(ecx); /* 0x4702DF39: mov esi, dword ptr [ecx] */
    313     MEM32(ecx + 0x4) = edi; /* 0x4702DF3B: mov dword ptr [ecx + 4], edi */
    314     eax = MEM32(esi); /* 0x4702DF3E: mov eax, dword ptr [esi] */
    315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    316     eax = eax - 1; /* 0x4702DF40: dec eax */
    317     _flag_k = FK_DEC;
    318     ebx = 0; /* 0x4702DF41: mov ebx, 0 */
    319     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702DFA7; /* 0x4702DF46: je 0x4702dfa7 */
    320 L_4702DF48:
    321     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    322     eax = eax - 1; /* 0x4702DF48: dec eax */
    323     _flag_k = FK_DEC;
    324     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702DF69; /* 0x4702DF49: je 0x4702df69 */
    325 L_4702DF4B:
    326     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702DF4B: call dword ptr [0x470ac3c8] */
    327     RECOMP_FLAGS_IN();
    328     edi = POP32_VAL(esp); /* 0x4702DF51: pop edi */
    329     esi = POP32_VAL(esp); /* 0x4702DF52: pop esi */
    330     MEM32(eax) = 0x16u; /* 0x4702DF53: mov dword ptr [eax], 0x16 */
    331     ebx = POP32_VAL(esp); /* 0x4702DF59: pop ebx */
    332     ecx = MEM32(esp + 0xC); /* 0x4702DF5A: mov ecx, dword ptr [esp + 0xc] */
    333     MEM32(FS_BASE + (0)) = ecx; /* 0x4702DF5E: mov dword ptr fs:[0], ecx */
    334     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    336     esp = esp + 0x18u; /* 0x4702DF65: add esp, 0x18 */
    337     _flag_k = FK_ADD;
    338     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702DF68: ret  */
    339 L_4702DF69:
    340     eax = esi + 0x4; /* 0x4702DF69: lea eax, [esi + 4] */
    341     MEM32(esp + 0xC) = eax; /* 0x4702DF6C: mov dword ptr [esp + 0xc], eax */
    342     eax = MEM32(eax); /* 0x4702DF70: mov eax, dword ptr [eax] */
    343     PUSH32(esp, edi); /* 0x4702DF72: push edi */
    344     PUSH32(esp, eax); /* 0x4702DF73: push eax */
    345     RECOMP_ICALL(MEM32(0x470AC194)); /* 0x4702DF74: call dword ptr [0x470ac194] */
    346     RECOMP_FLAGS_IN();
    347     /* cmp eax, ebx */ /* 0x4702DF7A: cmp eax, ebx */
    348     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    350     _flag_k = FK_CMP;
    351     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DFB5; /* 0x4702DF7C: je 0x4702dfb5 */
    352 L_4702DF7E:
    353     /* cmp eax, 0x80u */ /* 0x4702DF7E: cmp eax, 0x80 */
    354     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
    355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    356     _flag_k = FK_CMP;
    357     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DFB5; /* 0x4702DF83: je 0x4702dfb5 */
    358 L_4702DF85:
    359     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702DF85: call dword ptr [0x470ac3c8] */
    360     RECOMP_FLAGS_IN();
    361     esi = eax; /* 0x4702DF8B: mov esi, eax */
    362     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702DF8D: call dword ptr [0x470ac150] */
    363     RECOMP_FLAGS_IN();
    364     edi = POP32_VAL(esp); /* 0x4702DF93: pop edi */
    365     MEM32(esi) = eax; /* 0x4702DF94: mov dword ptr [esi], eax */
    366     esi = POP32_VAL(esp); /* 0x4702DF96: pop esi */
    367     ebx = POP32_VAL(esp); /* 0x4702DF97: pop ebx */
    368     ecx = MEM32(esp + 0xC); /* 0x4702DF98: mov ecx, dword ptr [esp + 0xc] */
    369     MEM32(FS_BASE + (0)) = ecx; /* 0x4702DF9C: mov dword ptr fs:[0], ecx */
    370     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    371     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    372     esp = esp + 0x18u; /* 0x4702DFA3: add esp, 0x18 */
    373     _flag_k = FK_ADD;
    374     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702DFA6: ret  */
    375 L_4702DFA7:
    376     eax = esi + 0x4; /* 0x4702DFA7: lea eax, [esi + 4] */
    377     PUSH32(esp, eax); /* 0x4702DFAA: push eax */
    378     MEM32(esp + 0x10) = eax; /* 0x4702DFAB: mov dword ptr [esp + 0x10], eax */
    379     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4702DFAF: call dword ptr [0x470ac180] */
    380     RECOMP_FLAGS_IN();
    381 L_4702DFB5:
    382     eax = MEM32(esi + 0x74); /* 0x4702DFB5: mov eax, dword ptr [esi + 0x74] */
    383     /* cmp eax, ebx */ /* 0x4702DFB8: cmp eax, ebx */
    384     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    386     _flag_k = FK_CMP;
    387     if (CMP_LE(_flag_a, _flag_b)) goto L_4702DFC2; /* 0x4702DFBA: jle 0x4702dfc2 */
    388 L_4702DFBC:
    389     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    390     eax = eax - 1; /* 0x4702DFBC: dec eax */
    391     _flag_k = FK_DEC;
    392     MEM32(esi + 0x74) = eax; /* 0x4702DFBD: mov dword ptr [esi + 0x74], eax */
    393     goto L_4702DFCD; /* 0x4702DFC0: jmp 0x4702dfcd */
    394 L_4702DFC2:
    395     /* cmp eax, edi */ /* 0x4702DFC2: cmp eax, edi */
    396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    398     _flag_k = FK_CMP;
    399     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E06A; /* 0x4702DFC4: jne 0x4702e06a */
    400 L_4702DFCA:
    401     MEM32(esi + 0x74) = ebx; /* 0x4702DFCA: mov dword ptr [esi + 0x74], ebx */
    402 L_4702DFCD:
    403     edi = MEM32(0x470AC3C8); /* 0x4702DFCD: mov edi, dword ptr [0x470ac3c8] */
    404     PUSH32(esp, ebp); /* 0x4702DFD3: push ebp */
    405     RECOMP_ICALL(edi); /* 0x4702DFD4: call edi */
    406     RECOMP_FLAGS_IN();
    407     ebp = eax; /* 0x4702DFD6: mov ebp, eax */
    408     MEM32(esp + 0x14) = ebp; /* 0x4702DFD8: mov dword ptr [esp + 0x14], ebp */
    409     MEM32(esp + 0x18) = ebx; /* 0x4702DFDC: mov dword ptr [esp + 0x18], ebx */
    410     /* cmp MEM32(esi + 0x78), ebx */ /* 0x4702DFE0: cmp dword ptr [esi + 0x78], ebx */
    411     _flag_a = (uint32_t)(MEM32(esi + 0x78)); _flag_b = (uint32_t)(ebx);
    412     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    413     _flag_k = FK_CMP;
    414     MEM32(esp + 0x24) = ebx; /* 0x4702DFE3: mov dword ptr [esp + 0x24], ebx */
    415     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DFFA; /* 0x4702DFE7: je 0x4702dffa */
    416 L_4702DFE9:
    417     /* cmp MEM32(esi + 0x74), 1 */ /* 0x4702DFE9: cmp dword ptr [esi + 0x74], 1 */
    418     _flag_a = (uint32_t)(MEM32(esi + 0x74)); _flag_b = (uint32_t)(1);
    419     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    420     _flag_k = FK_CMP;
    421     if (CMP_NE(_flag_a, _flag_b)) goto L_4702DFFA; /* 0x4702DFED: jne 0x4702dffa */
    422 L_4702DFEF:
    423     ecx = esi + 0x7C; /* 0x4702DFEF: lea ecx, [esi + 0x7c] */
    424     PUSH32(esp, ecx); /* 0x4702DFF2: push ecx */
    425     RECOMP_ICALL(0x47057DB0u); /* 0x4702DFF3: call 0x47057db0 */ /* not lifted */
    426     RECOMP_FLAGS_IN();
    427     goto L_4702E023; /* 0x4702DFF8: jmp 0x4702e023 */
    428 L_4702DFFA:
    429     eax = MEM32(esi + 0x70); /* 0x4702DFFA: mov eax, dword ptr [esi + 0x70] */
    430     /* cmp eax, ebx */ /* 0x4702DFFD: cmp eax, ebx */
    431     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    433     _flag_k = FK_CMP;
    434     if (CMP_LE(_flag_a, _flag_b)) goto L_4702E011; /* 0x4702DFFF: jle 0x4702e011 */
    435 L_4702E001:
    436     /* cmp MEM32(esi + 0x74), ebx */ /* 0x4702E001: cmp dword ptr [esi + 0x74], ebx */
    437     _flag_a = (uint32_t)(MEM32(esi + 0x74)); _flag_b = (uint32_t)(ebx);
    438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    439     _flag_k = FK_CMP;
    440     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E011; /* 0x4702E004: jne 0x4702e011 */
    441 L_4702E006:
    442     edx = esi + 0x48; /* 0x4702E006: lea edx, [esi + 0x48] */
    443     PUSH32(esp, edx); /* 0x4702E009: push edx */
    444     RECOMP_ICALL(0x47057DB0u); /* 0x4702E00A: call 0x47057db0 */ /* not lifted */
    445     RECOMP_FLAGS_IN();
    446     goto L_4702E023; /* 0x4702E00F: jmp 0x4702e023 */
    447 L_4702E011:
    448     /* cmp MEM32(esi + 0x44), ebx */ /* 0x4702E011: cmp dword ptr [esi + 0x44], ebx */
    449     _flag_a = (uint32_t)(MEM32(esi + 0x44)); _flag_b = (uint32_t)(ebx);
    450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    451     _flag_k = FK_CMP;
    452     if (CMP_LE(_flag_a, _flag_b)) goto L_4702E02A; /* 0x4702E014: jle 0x4702e02a */
    453 L_4702E016:
    454     /* cmp eax, ebx */ /* 0x4702E016: cmp eax, ebx */
    455     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    457     _flag_k = FK_CMP;
    458     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E02A; /* 0x4702E018: jne 0x4702e02a */
    459 L_4702E01A:
    460     eax = esi + 0x1C; /* 0x4702E01A: lea eax, [esi + 0x1c] */
    461     PUSH32(esp, eax); /* 0x4702E01D: push eax */
    462     RECOMP_ICALL(0x47057E10u); /* 0x4702E01E: call 0x47057e10 */ /* not lifted */
    463     RECOMP_FLAGS_IN();
    464 L_4702E023:
    465     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    466     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    467     esp = esp + 4; /* 0x4702E023: add esp, 4 */
    468     _flag_k = FK_ADD;
    469     RECOMP_ICALL(edi); /* 0x4702E026: call edi */
    470     RECOMP_FLAGS_IN();
    471     ebx = MEM32(eax); /* 0x4702E028: mov ebx, dword ptr [eax] */
    472 L_4702E02A:
    473     esi = MEM32(esi); /* 0x4702E02A: mov esi, dword ptr [esi] */
    474     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    475     esi = esi - 1; /* 0x4702E02C: dec esi */
    476     _flag_k = FK_DEC;
    477     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E05B; /* 0x4702E02D: je 0x4702e05b */
    478 L_4702E02F:
    479     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    480     esi = esi - 1; /* 0x4702E02F: dec esi */
    481     _flag_k = FK_DEC;
    482     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E03C; /* 0x4702E030: je 0x4702e03c */
    483 L_4702E032:
    484     RECOMP_ICALL(edi); /* 0x4702E032: call edi */
    485     RECOMP_FLAGS_IN();
    486     MEM32(eax) = 0x16u; /* 0x4702E034: mov dword ptr [eax], 0x16 */
    487     goto L_4702E066; /* 0x4702E03A: jmp 0x4702e066 */
    488 L_4702E03C:
    489     ecx = MEM32(esp + 0x10); /* 0x4702E03C: mov ecx, dword ptr [esp + 0x10] */
    490     edx = MEM32(ecx); /* 0x4702E040: mov edx, dword ptr [ecx] */
    491     PUSH32(esp, edx); /* 0x4702E042: push edx */
    492     RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x4702E043: call dword ptr [0x470ac18c] */
    493     RECOMP_FLAGS_IN();
    494     /* test eax, eax */ /* 0x4702E049: test eax, eax */
    495     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    496     _cf = 0;
    497     _flag_k = FK_TEST;
    498     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E066; /* 0x4702E04B: jne 0x4702e066 */
    499 L_4702E04D:
    500     RECOMP_ICALL(edi); /* 0x4702E04D: call edi */
    501     RECOMP_FLAGS_IN();
    502     esi = eax; /* 0x4702E04F: mov esi, eax */
    503     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E051: call dword ptr [0x470ac150] */
    504     RECOMP_FLAGS_IN();
    505     MEM32(esi) = eax; /* 0x4702E057: mov dword ptr [esi], eax */
    506     goto L_4702E066; /* 0x4702E059: jmp 0x4702e066 */
    507 L_4702E05B:
    508     eax = MEM32(esp + 0x10); /* 0x4702E05B: mov eax, dword ptr [esp + 0x10] */
    509     PUSH32(esp, eax); /* 0x4702E05F: push eax */
    510     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4702E060: call dword ptr [0x470ac190] */
    511     RECOMP_FLAGS_IN();
    512 L_4702E066:
    513     MEM32(ebp) = ebx; /* 0x4702E066: mov dword ptr [ebp], ebx */
    514     ebp = POP32_VAL(esp); /* 0x4702E069: pop ebp */
    515 L_4702E06A:
    516     ecx = MEM32(esp + 0x18); /* 0x4702E06A: mov ecx, dword ptr [esp + 0x18] */
    517     edi = POP32_VAL(esp); /* 0x4702E06E: pop edi */
    518     esi = POP32_VAL(esp); /* 0x4702E06F: pop esi */
    519     ebx = POP32_VAL(esp); /* 0x4702E070: pop ebx */
    520     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E071: mov dword ptr fs:[0], ecx */
    521     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    522     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    523     esp = esp + 0x18u; /* 0x4702E078: add esp, 0x18 */
    524     _flag_k = FK_ADD;
    525     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702E07B: ret  */
    526     RECOMP_REGS_OUT();
    527 }
    528 
    529 void sub_4702DFCD(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(0x4702DFCDu);
    538 
    539 L_4702DFCD:
    540     edi = MEM32(0x470AC3C8); /* 0x4702DFCD: mov edi, dword ptr [0x470ac3c8] */
    541     PUSH32(esp, ebp); /* 0x4702DFD3: push ebp */
    542     RECOMP_ICALL(edi); /* 0x4702DFD4: call edi */
    543     RECOMP_FLAGS_IN();
    544     ebp = eax; /* 0x4702DFD6: mov ebp, eax */
    545     MEM32(esp + 0x14) = ebp; /* 0x4702DFD8: mov dword ptr [esp + 0x14], ebp */
    546     MEM32(esp + 0x18) = ebx; /* 0x4702DFDC: mov dword ptr [esp + 0x18], ebx */
    547     /* cmp MEM32(esi + 0x78), ebx */ /* 0x4702DFE0: cmp dword ptr [esi + 0x78], ebx */
    548     _flag_a = (uint32_t)(MEM32(esi + 0x78)); _flag_b = (uint32_t)(ebx);
    549     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    550     _flag_k = FK_CMP;
    551     MEM32(esp + 0x24) = ebx; /* 0x4702DFE3: mov dword ptr [esp + 0x24], ebx */
    552     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702DFFA; /* 0x4702DFE7: je 0x4702dffa */
    553 L_4702DFE9:
    554     /* cmp MEM32(esi + 0x74), 1 */ /* 0x4702DFE9: cmp dword ptr [esi + 0x74], 1 */
    555     _flag_a = (uint32_t)(MEM32(esi + 0x74)); _flag_b = (uint32_t)(1);
    556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    557     _flag_k = FK_CMP;
    558     if (CMP_NE(_flag_a, _flag_b)) goto L_4702DFFA; /* 0x4702DFED: jne 0x4702dffa */
    559 L_4702DFEF:
    560     ecx = esi + 0x7C; /* 0x4702DFEF: lea ecx, [esi + 0x7c] */
    561     PUSH32(esp, ecx); /* 0x4702DFF2: push ecx */
    562     RECOMP_ICALL(0x47057DB0u); /* 0x4702DFF3: call 0x47057db0 */ /* not lifted */
    563     RECOMP_FLAGS_IN();
    564     goto L_4702E023; /* 0x4702DFF8: jmp 0x4702e023 */
    565 L_4702DFFA:
    566     eax = MEM32(esi + 0x70); /* 0x4702DFFA: mov eax, dword ptr [esi + 0x70] */
    567     /* cmp eax, ebx */ /* 0x4702DFFD: cmp eax, ebx */
    568     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    570     _flag_k = FK_CMP;
    571     if (CMP_LE(_flag_a, _flag_b)) goto L_4702E011; /* 0x4702DFFF: jle 0x4702e011 */
    572 L_4702E001:
    573     /* cmp MEM32(esi + 0x74), ebx */ /* 0x4702E001: cmp dword ptr [esi + 0x74], ebx */
    574     _flag_a = (uint32_t)(MEM32(esi + 0x74)); _flag_b = (uint32_t)(ebx);
    575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    576     _flag_k = FK_CMP;
    577     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E011; /* 0x4702E004: jne 0x4702e011 */
    578 L_4702E006:
    579     edx = esi + 0x48; /* 0x4702E006: lea edx, [esi + 0x48] */
    580     PUSH32(esp, edx); /* 0x4702E009: push edx */
    581     RECOMP_ICALL(0x47057DB0u); /* 0x4702E00A: call 0x47057db0 */ /* not lifted */
    582     RECOMP_FLAGS_IN();
    583     goto L_4702E023; /* 0x4702E00F: jmp 0x4702e023 */
    584 L_4702E011:
    585     /* cmp MEM32(esi + 0x44), ebx */ /* 0x4702E011: cmp dword ptr [esi + 0x44], ebx */
    586     _flag_a = (uint32_t)(MEM32(esi + 0x44)); _flag_b = (uint32_t)(ebx);
    587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    588     _flag_k = FK_CMP;
    589     if (CMP_LE(_flag_a, _flag_b)) goto L_4702E02A; /* 0x4702E014: jle 0x4702e02a */
    590 L_4702E016:
    591     /* cmp eax, ebx */ /* 0x4702E016: cmp eax, ebx */
    592     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    594     _flag_k = FK_CMP;
    595     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E02A; /* 0x4702E018: jne 0x4702e02a */
    596 L_4702E01A:
    597     eax = esi + 0x1C; /* 0x4702E01A: lea eax, [esi + 0x1c] */
    598     PUSH32(esp, eax); /* 0x4702E01D: push eax */
    599     RECOMP_ICALL(0x47057E10u); /* 0x4702E01E: call 0x47057e10 */ /* not lifted */
    600     RECOMP_FLAGS_IN();
    601 L_4702E023:
    602     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    604     esp = esp + 4; /* 0x4702E023: add esp, 4 */
    605     _flag_k = FK_ADD;
    606     RECOMP_ICALL(edi); /* 0x4702E026: call edi */
    607     RECOMP_FLAGS_IN();
    608     ebx = MEM32(eax); /* 0x4702E028: mov ebx, dword ptr [eax] */
    609 L_4702E02A:
    610     esi = MEM32(esi); /* 0x4702E02A: mov esi, dword ptr [esi] */
    611     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    612     esi = esi - 1; /* 0x4702E02C: dec esi */
    613     _flag_k = FK_DEC;
    614     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E05B; /* 0x4702E02D: je 0x4702e05b */
    615 L_4702E02F:
    616     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    617     esi = esi - 1; /* 0x4702E02F: dec esi */
    618     _flag_k = FK_DEC;
    619     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E03C; /* 0x4702E030: je 0x4702e03c */
    620 L_4702E032:
    621     RECOMP_ICALL(edi); /* 0x4702E032: call edi */
    622     RECOMP_FLAGS_IN();
    623     MEM32(eax) = 0x16u; /* 0x4702E034: mov dword ptr [eax], 0x16 */
    624     goto L_4702E066; /* 0x4702E03A: jmp 0x4702e066 */
    625 L_4702E03C:
    626     ecx = MEM32(esp + 0x10); /* 0x4702E03C: mov ecx, dword ptr [esp + 0x10] */
    627     edx = MEM32(ecx); /* 0x4702E040: mov edx, dword ptr [ecx] */
    628     PUSH32(esp, edx); /* 0x4702E042: push edx */
    629     RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x4702E043: call dword ptr [0x470ac18c] */
    630     RECOMP_FLAGS_IN();
    631     /* test eax, eax */ /* 0x4702E049: test eax, eax */
    632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    633     _cf = 0;
    634     _flag_k = FK_TEST;
    635     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E066; /* 0x4702E04B: jne 0x4702e066 */
    636 L_4702E04D:
    637     RECOMP_ICALL(edi); /* 0x4702E04D: call edi */
    638     RECOMP_FLAGS_IN();
    639     esi = eax; /* 0x4702E04F: mov esi, eax */
    640     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E051: call dword ptr [0x470ac150] */
    641     RECOMP_FLAGS_IN();
    642     MEM32(esi) = eax; /* 0x4702E057: mov dword ptr [esi], eax */
    643     goto L_4702E066; /* 0x4702E059: jmp 0x4702e066 */
    644 L_4702E05B:
    645     eax = MEM32(esp + 0x10); /* 0x4702E05B: mov eax, dword ptr [esp + 0x10] */
    646     PUSH32(esp, eax); /* 0x4702E05F: push eax */
    647     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4702E060: call dword ptr [0x470ac190] */
    648     RECOMP_FLAGS_IN();
    649 L_4702E066:
    650     MEM32(ebp) = ebx; /* 0x4702E066: mov dword ptr [ebp], ebx */
    651     ebp = POP32_VAL(esp); /* 0x4702E069: pop ebp */
    652     ecx = MEM32(esp + 0x18); /* 0x4702E06A: mov ecx, dword ptr [esp + 0x18] */
    653     edi = POP32_VAL(esp); /* 0x4702E06E: pop edi */
    654     esi = POP32_VAL(esp); /* 0x4702E06F: pop esi */
    655     ebx = POP32_VAL(esp); /* 0x4702E070: pop ebx */
    656     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E071: mov dword ptr fs:[0], ecx */
    657     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    658     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    659     esp = esp + 0x18u; /* 0x4702E078: add esp, 0x18 */
    660     _flag_k = FK_ADD;
    661     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702E07B: ret  */
    662     RECOMP_REGS_OUT();
    663 }
    664 
    665 void sub_4702E023(void) {
    666     int _fpu_cmp = 0;
    667     uint32_t _cf = 0;
    668     int _df = 1;
    669     uint32_t _flag_k = FK_NONE;
    670     uint32_t _flag_a = 0, _flag_b = 0;
    671     uint32_t _itail_tgt = 0;
    672     RECOMP_REGS_LOCALS
    673     RECOMP_ENTER(0x4702E023u);
    674 
    675 L_4702E023:
    676     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    677     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    678     esp = esp + 4; /* 0x4702E023: add esp, 4 */
    679     _flag_k = FK_ADD;
    680     RECOMP_ICALL(edi); /* 0x4702E026: call edi */
    681     RECOMP_FLAGS_IN();
    682     ebx = MEM32(eax); /* 0x4702E028: mov ebx, dword ptr [eax] */
    683     esi = MEM32(esi); /* 0x4702E02A: mov esi, dword ptr [esi] */
    684     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    685     esi = esi - 1; /* 0x4702E02C: dec esi */
    686     _flag_k = FK_DEC;
    687     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E05B; /* 0x4702E02D: je 0x4702e05b */
    688 L_4702E02F:
    689     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    690     esi = esi - 1; /* 0x4702E02F: dec esi */
    691     _flag_k = FK_DEC;
    692     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E03C; /* 0x4702E030: je 0x4702e03c */
    693 L_4702E032:
    694     RECOMP_ICALL(edi); /* 0x4702E032: call edi */
    695     RECOMP_FLAGS_IN();
    696     MEM32(eax) = 0x16u; /* 0x4702E034: mov dword ptr [eax], 0x16 */
    697     goto L_4702E066; /* 0x4702E03A: jmp 0x4702e066 */
    698 L_4702E03C:
    699     ecx = MEM32(esp + 0x10); /* 0x4702E03C: mov ecx, dword ptr [esp + 0x10] */
    700     edx = MEM32(ecx); /* 0x4702E040: mov edx, dword ptr [ecx] */
    701     PUSH32(esp, edx); /* 0x4702E042: push edx */
    702     RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x4702E043: call dword ptr [0x470ac18c] */
    703     RECOMP_FLAGS_IN();
    704     /* test eax, eax */ /* 0x4702E049: test eax, eax */
    705     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    706     _cf = 0;
    707     _flag_k = FK_TEST;
    708     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E066; /* 0x4702E04B: jne 0x4702e066 */
    709 L_4702E04D:
    710     RECOMP_ICALL(edi); /* 0x4702E04D: call edi */
    711     RECOMP_FLAGS_IN();
    712     esi = eax; /* 0x4702E04F: mov esi, eax */
    713     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E051: call dword ptr [0x470ac150] */
    714     RECOMP_FLAGS_IN();
    715     MEM32(esi) = eax; /* 0x4702E057: mov dword ptr [esi], eax */
    716     goto L_4702E066; /* 0x4702E059: jmp 0x4702e066 */
    717 L_4702E05B:
    718     eax = MEM32(esp + 0x10); /* 0x4702E05B: mov eax, dword ptr [esp + 0x10] */
    719     PUSH32(esp, eax); /* 0x4702E05F: push eax */
    720     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4702E060: call dword ptr [0x470ac190] */
    721     RECOMP_FLAGS_IN();
    722 L_4702E066:
    723     MEM32(ebp) = ebx; /* 0x4702E066: mov dword ptr [ebp], ebx */
    724     ebp = POP32_VAL(esp); /* 0x4702E069: pop ebp */
    725     ecx = MEM32(esp + 0x18); /* 0x4702E06A: mov ecx, dword ptr [esp + 0x18] */
    726     edi = POP32_VAL(esp); /* 0x4702E06E: pop edi */
    727     esi = POP32_VAL(esp); /* 0x4702E06F: pop esi */
    728     ebx = POP32_VAL(esp); /* 0x4702E070: pop ebx */
    729     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E071: mov dword ptr fs:[0], ecx */
    730     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    732     esp = esp + 0x18u; /* 0x4702E078: add esp, 0x18 */
    733     _flag_k = FK_ADD;
    734     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702E07B: ret  */
    735     RECOMP_REGS_OUT();
    736 }
    737 
    738 void sub_4702E066(void) {
    739     int _fpu_cmp = 0;
    740     uint32_t _cf = 0;
    741     int _df = 1;
    742     uint32_t _flag_k = FK_NONE;
    743     uint32_t _flag_a = 0, _flag_b = 0;
    744     uint32_t _itail_tgt = 0;
    745     RECOMP_REGS_LOCALS
    746     RECOMP_ENTER(0x4702E066u);
    747 
    748 L_4702E066:
    749     MEM32(ebp) = ebx; /* 0x4702E066: mov dword ptr [ebp], ebx */
    750     ebp = POP32_VAL(esp); /* 0x4702E069: pop ebp */
    751     ecx = MEM32(esp + 0x18); /* 0x4702E06A: mov ecx, dword ptr [esp + 0x18] */
    752     edi = POP32_VAL(esp); /* 0x4702E06E: pop edi */
    753     esi = POP32_VAL(esp); /* 0x4702E06F: pop esi */
    754     ebx = POP32_VAL(esp); /* 0x4702E070: pop ebx */
    755     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E071: mov dword ptr fs:[0], ecx */
    756     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    757     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    758     esp = esp + 0x18u; /* 0x4702E078: add esp, 0x18 */
    759     _flag_k = FK_ADD;
    760     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702E07B: ret  */
    761     RECOMP_REGS_OUT();
    762 }
    763 
    764 void sub_4702E080(void) {
    765     int _fpu_cmp = 0;
    766     uint32_t _cf = 0;
    767     int _df = 1;
    768     uint32_t _flag_k = FK_NONE;
    769     uint32_t _flag_a = 0, _flag_b = 0;
    770     uint32_t _itail_tgt = 0;
    771     RECOMP_REGS_LOCALS
    772     RECOMP_ENTER(0x4702E080u);
    773 
    774 L_4702E080:
    775     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E080: push -1 */
    776     PUSH32(esp, 0x470A5478u); /* 0x4702E082: push 0x470a5478 */
    777     eax = MEM32(FS_BASE + (0)); /* 0x4702E087: mov eax, dword ptr fs:[0] */
    778     PUSH32(esp, eax); /* 0x4702E08D: push eax */
    779     MEM32(FS_BASE + (0)) = esp; /* 0x4702E08E: mov dword ptr fs:[0], esp */
    780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u);
    781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    782     esp = esp - 0x30u; /* 0x4702E095: sub esp, 0x30 */
    783     _flag_k = FK_CMP;
    784     eax = MEM32(esp + 0x40); /* 0x4702E098: mov eax, dword ptr [esp + 0x40] */
    785     PUSH32(esp, ebx); /* 0x4702E09C: push ebx */
    786     PUSH32(esp, ebp); /* 0x4702E09D: push ebp */
    787     PUSH32(esp, esi); /* 0x4702E09E: push esi */
    788     PUSH32(esp, edi); /* 0x4702E09F: push edi */
    789     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    790     ebp = 0; /* 0x4702E0A0: xor ebp, ebp */
    791     _cf = 0;
    792     _flag_k = FK_TEST;
    793     PUSH32(esp, eax); /* 0x4702E0A2: push eax */
    794     esi = ecx; /* 0x4702E0A3: mov esi, ecx */
    795     MEM32(esp + 0x14) = ebp; /* 0x4702E0A5: mov dword ptr [esp + 0x14], ebp */
    796     RECOMP_ICALL(0x4700B4C0u); /* 0x4702E0A9: call 0x4700b4c0 */ /* not lifted */
    797     RECOMP_FLAGS_IN();
    798     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    799     edx = 0; /* 0x4702E0AE: xor edx, edx */
    800     _cf = 0;
    801     _flag_k = FK_TEST;
    802     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(esi); /* 0x4702E0B0: div dword ptr [esi] */
    803       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
    804       else { eax = 0; edx = 0; } }
    805     eax = edx * 8; /* 0x4702E0B2: lea eax, [edx*8] */
    806     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    807     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    808     eax = eax - edx; /* 0x4702E0B9: sub eax, edx */
    809     _flag_k = FK_CMP;
    810     ecx = eax + eax * 2; /* 0x4702E0BB: lea ecx, [eax + eax*2] */
    811     eax = esi + ecx * 8; /* 0x4702E0BE: lea eax, [esi + ecx*8] */
    812     edi = eax + 0x15018; /* 0x4702E0C1: lea edi, [eax + 0x15018] */
    813     PUSH32(esp, edi); /* 0x4702E0C7: push edi */
    814     ebx = eax + 0x18; /* 0x4702E0C8: lea ebx, [eax + 0x18] */
    815     RECOMP_ICALL(0x47002B80u); /* 0x4702E0CB: call 0x47002b80 */ /* not lifted */
    816     RECOMP_FLAGS_IN();
    817     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    819     esp = esp + 8; /* 0x4702E0D0: add esp, 8 */
    820     _flag_k = FK_ADD;
    821     ecx = esi + 0x4; /* 0x4702E0D3: lea ecx, [esi + 4] */
    822     edx = esp + 0x10; /* 0x4702E0D6: lea edx, [esp + 0x10] */
    823     PUSH32(esp, edx); /* 0x4702E0DA: push edx */
    824     eax = esp + 0x54; /* 0x4702E0DB: lea eax, [esp + 0x54] */
    825     PUSH32(esp, eax); /* 0x4702E0DF: push eax */
    826     MEM32(esp + 0x50) = ebp; /* 0x4702E0E0: mov dword ptr [esp + 0x50], ebp */
    827     RECOMP_ICALL(0x4702F460u); /* 0x4702E0E4: call 0x4702f460 */ /* not lifted */
    828     RECOMP_FLAGS_IN();
    829     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E0E9: cmp eax, -1 */
    830     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    832     _flag_k = FK_CMP;
    833     MEM32(esp + 0x48) = 0xFFFFFFFFu; /* 0x4702E0EC: mov dword ptr [esp + 0x48], 0xffffffff */
    834     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E15C; /* 0x4702E0F4: jne 0x4702e15c */
    835 L_4702E0F6:
    836     MEM32(esp + 0x14) = ebx; /* 0x4702E0F6: mov dword ptr [esp + 0x14], ebx */
    837     PUSH32(esp, ebx); /* 0x4702E0FA: push ebx */
    838     MEM32(esp + 0x4C) = 1; /* 0x4702E0FB: mov dword ptr [esp + 0x4c], 1 */
    839     RECOMP_ICALL(0x47002C40u); /* 0x4702E103: call 0x47002c40 */ /* not lifted */
    840     RECOMP_FLAGS_IN();
    841     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    842     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    843     esp = esp + 4; /* 0x4702E108: add esp, 4 */
    844     _flag_k = FK_ADD;
    845     MEM32(esp + 0x18) = eax; /* 0x4702E10B: mov dword ptr [esp + 0x18], eax */
    846     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E10F: cmp eax, -1 */
    847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    849     _flag_k = FK_CMP;
    850     MEM32(esp + 0x48) = 2; /* 0x4702E112: mov dword ptr [esp + 0x48], 2 */
    851     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E123; /* 0x4702E11A: jne 0x4702e123 */
    852 L_4702E11C:
    853     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    854     eax = 0; /* 0x4702E11C: xor eax, eax */
    855     _cf = 0;
    856     _flag_k = FK_TEST;
    857     goto L_4702E268; /* 0x4702E11E: jmp 0x4702e268 */
    858 L_4702E123:
    859     ecx = MEM32(esp + 0x54); /* 0x4702E123: mov ecx, dword ptr [esp + 0x54] */
    860     edx = MEM32(esp + 0x50); /* 0x4702E127: mov edx, dword ptr [esp + 0x50] */
    861     PUSH32(esp, ecx); /* 0x4702E12B: push ecx */
    862     PUSH32(esp, edi); /* 0x4702E12C: push edi */
    863     PUSH32(esp, edx); /* 0x4702E12D: push edx */
    864     ecx = esi; /* 0x4702E12E: mov ecx, esi */
    865     RECOMP_ICALL(0x4702DA30u); /* 0x4702E130: call 0x4702da30 */ /* not lifted */
    866     RECOMP_FLAGS_IN();
    867     /* cmp eax, ebp */ /* 0x4702E135: cmp eax, ebp */
    868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
    869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    870     _flag_k = FK_CMP;
    871     MEM32(esp + 0x10) = eax; /* 0x4702E137: mov dword ptr [esp + 0x10], eax */
    872     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E146; /* 0x4702E13B: jne 0x4702e146 */
    873 L_4702E13D:
    874     PUSH32(esp, edi); /* 0x4702E13D: push edi */
    875     RECOMP_ICALL(0x47002D10u); /* 0x4702E13E: call 0x47002d10 */ /* not lifted */
    876     RECOMP_FLAGS_IN();
    877     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    878     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    879     esp = esp + 4; /* 0x4702E143: add esp, 4 */
    880     _flag_k = FK_ADD;
    881 L_4702E146:
    882     PUSH32(esp, ebx); /* 0x4702E146: push ebx */
    883     MEM32(esp + 0x4C) = 0xFFFFFFFFu; /* 0x4702E147: mov dword ptr [esp + 0x4c], 0xffffffff */
    884     RECOMP_ICALL(0x47002D10u); /* 0x4702E14F: call 0x47002d10 */ /* not lifted */
    885     RECOMP_FLAGS_IN();
    886     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    887     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    888     esp = esp + 4; /* 0x4702E154: add esp, 4 */
    889     _flag_k = FK_ADD;
    890     goto L_4702E264; /* 0x4702E157: jmp 0x4702e264 */
    891 L_4702E15C:
    892     eax = MEM32(esp + 0x10); /* 0x4702E15C: mov eax, dword ptr [esp + 0x10] */
    893     ecx = esp + 0x1C; /* 0x4702E160: lea ecx, [esp + 0x1c] */
    894     ebp = eax; /* 0x4702E164: mov ebp, eax */
    895     PUSH32(esp, ecx); /* 0x4702E166: push ecx */
    896     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    897     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    898     eax = eax + 4; /* 0x4702E167: add eax, 4 */
    899     _flag_k = FK_ADD;
    900     PUSH32(esp, eax); /* 0x4702E16A: push eax */
    901     RECOMP_ICALL(MEM32(0x470AC3E8)); /* 0x4702E16B: call dword ptr [0x470ac3e8] */
    902     RECOMP_FLAGS_IN();
    903     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    904     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    905     esp = esp + 8; /* 0x4702E171: add esp, 8 */
    906     _flag_k = FK_ADD;
    907     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E174: cmp eax, -1 */
    908     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    909     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    910     _flag_k = FK_CMP;
    911     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E19B; /* 0x4702E177: je 0x4702e19b */
    912 L_4702E179:
    913     edx = MEM32(esp + 0x38); /* 0x4702E179: mov edx, dword ptr [esp + 0x38] */
    914     ebp = MEM32(ebp + 0x248); /* 0x4702E17D: mov ebp, dword ptr [ebp + 0x248] */
    915     PUSH32(esp, edx); /* 0x4702E183: push edx */
    916     PUSH32(esp, ebp); /* 0x4702E184: push ebp */
    917     RECOMP_ICALL(MEM32(0x470AC270)); /* 0x4702E185: call dword ptr [0x470ac270] */
    918     RECOMP_FLAGS_IN();
    919     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x470AD150)); /* 0x4702E18B: fcomp qword ptr [0x470ad150] */
    920     fp_pop();
    921     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    922     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    923     esp = esp + 8; /* 0x4702E191: add esp, 8 */
    924     _flag_k = FK_ADD;
    925     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4702E194: fnstsw ax */
    926     /* test HI8(eax), 1 */ /* 0x4702E196: test ah, 1 */
    927     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    928     _cf = 0;
    929     _flag_k = FK_NARROW(FK_TEST, 24);
    930     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E206; /* 0x4702E199: je 0x4702e206 */
    931 L_4702E19B:
    932     MEM32(esp + 0x14) = ebx; /* 0x4702E19B: mov dword ptr [esp + 0x14], ebx */
    933     PUSH32(esp, ebx); /* 0x4702E19F: push ebx */
    934     MEM32(esp + 0x4C) = 3; /* 0x4702E1A0: mov dword ptr [esp + 0x4c], 3 */
    935     RECOMP_ICALL(0x47002C40u); /* 0x4702E1A8: call 0x47002c40 */ /* not lifted */
    936     RECOMP_FLAGS_IN();
    937     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    939     esp = esp + 4; /* 0x4702E1AD: add esp, 4 */
    940     _flag_k = FK_ADD;
    941     MEM32(esp + 0x18) = eax; /* 0x4702E1B0: mov dword ptr [esp + 0x18], eax */
    942     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E1B4: cmp eax, -1 */
    943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    945     _flag_k = FK_CMP;
    946     MEM32(esp + 0x48) = 4; /* 0x4702E1B7: mov dword ptr [esp + 0x48], 4 */
    947     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E1C8; /* 0x4702E1BF: jne 0x4702e1c8 */
    948 L_4702E1C1:
    949     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    950     eax = 0; /* 0x4702E1C1: xor eax, eax */
    951     _cf = 0;
    952     _flag_k = FK_TEST;
    953     goto L_4702E268; /* 0x4702E1C3: jmp 0x4702e268 */
    954 L_4702E1C8:
    955     eax = MEM32(esp + 0x50); /* 0x4702E1C8: mov eax, dword ptr [esp + 0x50] */
    956     PUSH32(esp, eax); /* 0x4702E1CC: push eax */
    957     ecx = esi; /* 0x4702E1CD: mov ecx, esi */
    958     ebp = eax; /* 0x4702E1CF: mov ebp, eax */
    959     RECOMP_ICALL(0x4702DC50u); /* 0x4702E1D1: call 0x4702dc50 */ /* not lifted */
    960     RECOMP_FLAGS_IN();
    961     eax = MEM32(esp + 0x54); /* 0x4702E1D6: mov eax, dword ptr [esp + 0x54] */
    962     PUSH32(esp, eax); /* 0x4702E1DA: push eax */
    963     PUSH32(esp, edi); /* 0x4702E1DB: push edi */
    964     PUSH32(esp, ebp); /* 0x4702E1DC: push ebp */
    965     ecx = esi; /* 0x4702E1DD: mov ecx, esi */
    966     RECOMP_ICALL(0x4702DA30u); /* 0x4702E1DF: call 0x4702da30 */ /* not lifted */
    967     RECOMP_FLAGS_IN();
    968     /* test eax, eax */ /* 0x4702E1E4: test eax, eax */
    969     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    970     _cf = 0;
    971     _flag_k = FK_TEST;
    972     MEM32(esp + 0x10) = eax; /* 0x4702E1E6: mov dword ptr [esp + 0x10], eax */
    973     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E1F5; /* 0x4702E1EA: jne 0x4702e1f5 */
    974 L_4702E1EC:
    975     PUSH32(esp, edi); /* 0x4702E1EC: push edi */
    976     RECOMP_ICALL(0x47002D10u); /* 0x4702E1ED: call 0x47002d10 */ /* not lifted */
    977     RECOMP_FLAGS_IN();
    978     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    979     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    980     esp = esp + 4; /* 0x4702E1F2: add esp, 4 */
    981     _flag_k = FK_ADD;
    982 L_4702E1F5:
    983     PUSH32(esp, ebx); /* 0x4702E1F5: push ebx */
    984     MEM32(esp + 0x4C) = 0xFFFFFFFFu; /* 0x4702E1F6: mov dword ptr [esp + 0x4c], 0xffffffff */
    985     RECOMP_ICALL(0x47002D10u); /* 0x4702E1FE: call 0x47002d10 */ /* not lifted */
    986     RECOMP_FLAGS_IN();
    987     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    988     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    989     esp = esp + 4; /* 0x4702E203: add esp, 4 */
    990     _flag_k = FK_ADD;
    991 L_4702E206:
    992     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E206: call dword ptr [0x470ac150] */
    993     RECOMP_FLAGS_IN();
    994     edi = eax; /* 0x4702E20C: mov edi, eax */
    995     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702E20E: call dword ptr [0x470ac3c8] */
    996     RECOMP_FLAGS_IN();
    997     eax = MEM32(eax); /* 0x4702E214: mov eax, dword ptr [eax] */
    998     /* test eax, eax */ /* 0x4702E216: test eax, eax */
    999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1000     _cf = 0;
   1001     _flag_k = FK_TEST;
   1002     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E21C; /* 0x4702E218: je 0x4702e21c */
   1003 L_4702E21A:
   1004     edi = eax; /* 0x4702E21A: mov edi, eax */
   1005 L_4702E21C:
   1006     RECOMP_ICALL(0x47039020u); /* 0x4702E21C: call 0x47039020 */ /* not lifted */
   1007     RECOMP_FLAGS_IN();
   1008     esi = eax; /* 0x4702E221: mov esi, eax */
   1009     ecx = esi; /* 0x4702E223: mov ecx, esi */
   1010     RECOMP_ICALL(0x4703B210u); /* 0x4702E225: call 0x4703b210 */ /* not lifted */
   1011     RECOMP_FLAGS_IN();
   1012     PUSH32(esp, eax); /* 0x4702E22A: push eax */
   1013     ecx = esi; /* 0x4702E22B: mov ecx, esi */
   1014     RECOMP_ICALL(0x4703B240u); /* 0x4702E22D: call 0x4703b240 */ /* not lifted */
   1015     RECOMP_FLAGS_IN();
   1016     PUSH32(esp, eax); /* 0x4702E232: push eax */
   1017     ecx = esi; /* 0x4702E233: mov ecx, esi */
   1018     RECOMP_ICALL(0x4703B080u); /* 0x4702E235: call 0x4703b080 */ /* not lifted */
   1019     RECOMP_FLAGS_IN();
   1020     PUSH32(esp, eax); /* 0x4702E23A: push eax */
   1021     PUSH32(esp, edi); /* 0x4702E23B: push edi */
   1022     PUSH32(esp, 0); /* 0x4702E23C: push 0 */
   1023     PUSH32(esp, 0x16Eu); /* 0x4702E23E: push 0x16e */
   1024     PUSH32(esp, 0x47106580u); /* 0x4702E243: push 0x47106580 */
   1025     ecx = esi; /* 0x4702E248: mov ecx, esi */
   1026     RECOMP_ICALL(0x4703A340u); /* 0x4702E24A: call 0x4703a340 */ /* not lifted */
   1027     RECOMP_FLAGS_IN();
   1028     ecx = MEM32(esp + 0x50); /* 0x4702E24F: mov ecx, dword ptr [esp + 0x50] */
   1029     PUSH32(esp, ecx); /* 0x4702E253: push ecx */
   1030     PUSH32(esp, 0x471065B8u); /* 0x4702E254: push 0x471065b8 */
   1031     PUSH32(esp, 4); /* 0x4702E259: push 4 */
   1032     PUSH32(esp, esi); /* 0x4702E25B: push esi */
   1033     RECOMP_ICALL(0x47039830u); /* 0x4702E25C: call 0x47039830 */ /* not lifted */
   1034     RECOMP_FLAGS_IN();
   1035     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1036     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1037     esp = esp + 0x10u; /* 0x4702E261: add esp, 0x10 */
   1038     _flag_k = FK_ADD;
   1039 L_4702E264:
   1040     eax = MEM32(esp + 0x10); /* 0x4702E264: mov eax, dword ptr [esp + 0x10] */
   1041 L_4702E268:
   1042     ecx = MEM32(esp + 0x40); /* 0x4702E268: mov ecx, dword ptr [esp + 0x40] */
   1043     edi = POP32_VAL(esp); /* 0x4702E26C: pop edi */
   1044     esi = POP32_VAL(esp); /* 0x4702E26D: pop esi */
   1045     ebp = POP32_VAL(esp); /* 0x4702E26E: pop ebp */
   1046     ebx = POP32_VAL(esp); /* 0x4702E26F: pop ebx */
   1047     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E270: mov dword ptr fs:[0], ecx */
   1048     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   1049     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1050     esp = esp + 0x3Cu; /* 0x4702E277: add esp, 0x3c */
   1051     _flag_k = FK_ADD;
   1052     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702E27A: ret 8 */
   1053     RECOMP_REGS_OUT();
   1054 }
   1055 
   1056 void sub_4702E264(void) {
   1057     int _fpu_cmp = 0;
   1058     uint32_t _cf = 0;
   1059     int _df = 1;
   1060     uint32_t _flag_k = FK_NONE;
   1061     uint32_t _flag_a = 0, _flag_b = 0;
   1062     uint32_t _itail_tgt = 0;
   1063     RECOMP_REGS_LOCALS
   1064     RECOMP_ENTER(0x4702E264u);
   1065 
   1066 L_4702E264:
   1067     eax = MEM32(esp + 0x10); /* 0x4702E264: mov eax, dword ptr [esp + 0x10] */
   1068     ecx = MEM32(esp + 0x40); /* 0x4702E268: mov ecx, dword ptr [esp + 0x40] */
   1069     edi = POP32_VAL(esp); /* 0x4702E26C: pop edi */
   1070     esi = POP32_VAL(esp); /* 0x4702E26D: pop esi */
   1071     ebp = POP32_VAL(esp); /* 0x4702E26E: pop ebp */
   1072     ebx = POP32_VAL(esp); /* 0x4702E26F: pop ebx */
   1073     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E270: mov dword ptr fs:[0], ecx */
   1074     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   1075     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1076     esp = esp + 0x3Cu; /* 0x4702E277: add esp, 0x3c */
   1077     _flag_k = FK_ADD;
   1078     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702E27A: ret 8 */
   1079     RECOMP_REGS_OUT();
   1080 }
   1081 
   1082 void sub_4702E268(void) {
   1083     int _fpu_cmp = 0;
   1084     uint32_t _cf = 0;
   1085     int _df = 1;
   1086     uint32_t _flag_k = FK_NONE;
   1087     uint32_t _flag_a = 0, _flag_b = 0;
   1088     uint32_t _itail_tgt = 0;
   1089     RECOMP_REGS_LOCALS
   1090     RECOMP_ENTER(0x4702E268u);
   1091 
   1092 L_4702E268:
   1093     ecx = MEM32(esp + 0x40); /* 0x4702E268: mov ecx, dword ptr [esp + 0x40] */
   1094     edi = POP32_VAL(esp); /* 0x4702E26C: pop edi */
   1095     esi = POP32_VAL(esp); /* 0x4702E26D: pop esi */
   1096     ebp = POP32_VAL(esp); /* 0x4702E26E: pop ebp */
   1097     ebx = POP32_VAL(esp); /* 0x4702E26F: pop ebx */
   1098     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E270: mov dword ptr fs:[0], ecx */
   1099     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   1100     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1101     esp = esp + 0x3Cu; /* 0x4702E277: add esp, 0x3c */
   1102     _flag_k = FK_ADD;
   1103     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702E27A: ret 8 */
   1104     RECOMP_REGS_OUT();
   1105 }
   1106 
   1107 void sub_4702E280(void) {
   1108     int _fpu_cmp = 0;
   1109     uint32_t _cf = 0;
   1110     int _df = 1;
   1111     uint32_t _flag_k = FK_NONE;
   1112     uint32_t _flag_a = 0, _flag_b = 0;
   1113     uint32_t _itail_tgt = 0;
   1114     RECOMP_REGS_LOCALS
   1115     RECOMP_ENTER(0x4702E280u);
   1116 
   1117 L_4702E280:
   1118     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E280: push -1 */
   1119     PUSH32(esp, 0x470A549Bu); /* 0x4702E282: push 0x470a549b */
   1120     eax = MEM32(FS_BASE + (0)); /* 0x4702E287: mov eax, dword ptr fs:[0] */
   1121     PUSH32(esp, eax); /* 0x4702E28D: push eax */
   1122     MEM32(FS_BASE + (0)) = esp; /* 0x4702E28E: mov dword ptr fs:[0], esp */
   1123     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1124     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1125     esp = esp - 8; /* 0x4702E295: sub esp, 8 */
   1126     _flag_k = FK_CMP;
   1127     PUSH32(esp, ebx); /* 0x4702E298: push ebx */
   1128     PUSH32(esp, ebp); /* 0x4702E299: push ebp */
   1129     PUSH32(esp, esi); /* 0x4702E29A: push esi */
   1130     PUSH32(esp, edi); /* 0x4702E29B: push edi */
   1131     edi = MEM32(esp + 0x28); /* 0x4702E29C: mov edi, dword ptr [esp + 0x28] */
   1132     PUSH32(esp, edi); /* 0x4702E2A0: push edi */
   1133     esi = ecx; /* 0x4702E2A1: mov esi, ecx */
   1134     RECOMP_ICALL(0x4700B4C0u); /* 0x4702E2A3: call 0x4700b4c0 */ /* not lifted */
   1135     RECOMP_FLAGS_IN();
   1136     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1137     edx = 0; /* 0x4702E2A8: xor edx, edx */
   1138     _cf = 0;
   1139     _flag_k = FK_TEST;
   1140     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(esi); /* 0x4702E2AA: div dword ptr [esi] */
   1141       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   1142       else { eax = 0; edx = 0; } }
   1143     PUSH32(esp, 0x310u); /* 0x4702E2AC: push 0x310 */
   1144     eax = edx * 8; /* 0x4702E2B1: lea eax, [edx*8] */
   1145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1147     eax = eax - edx; /* 0x4702E2B8: sub eax, edx */
   1148     _flag_k = FK_CMP;
   1149     eax = eax + eax * 2; /* 0x4702E2BA: lea eax, [eax + eax*2] */
   1150     esi = esi + eax * 8 + 0x15018; /* 0x4702E2BD: lea esi, [esi + eax*8 + 0x15018] */
   1151     RECOMP_ICALL(0x470A33F2u); /* 0x4702E2C4: call 0x470a33f2 */ /* not lifted */
   1152     RECOMP_FLAGS_IN();
   1153     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1155     esp = esp + 8; /* 0x4702E2C9: add esp, 8 */
   1156     _flag_k = FK_ADD;
   1157     MEM32(esp + 0x28) = eax; /* 0x4702E2CC: mov dword ptr [esp + 0x28], eax */
   1158     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1159     ebp = 0; /* 0x4702E2D0: xor ebp, ebp */
   1160     _cf = 0;
   1161     _flag_k = FK_TEST;
   1162     /* cmp eax, ebp */ /* 0x4702E2D2: cmp eax, ebp */
   1163     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   1164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1165     _flag_k = FK_CMP;
   1166     MEM32(esp + 0x20) = ebp; /* 0x4702E2D4: mov dword ptr [esp + 0x20], ebp */
   1167     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E2F3; /* 0x4702E2D8: je 0x4702e2f3 */
   1168 L_4702E2DA:
   1169     ecx = MEM32(esp + 0x2C); /* 0x4702E2DA: mov ecx, dword ptr [esp + 0x2c] */
   1170     PUSH32(esp, ebp); /* 0x4702E2DE: push ebp */
   1171     PUSH32(esp, esi); /* 0x4702E2DF: push esi */
   1172     PUSH32(esp, ecx); /* 0x4702E2E0: push ecx */
   1173     PUSH32(esp, edi); /* 0x4702E2E1: push edi */
   1174     ecx = eax; /* 0x4702E2E2: mov ecx, eax */
   1175     RECOMP_ICALL(0x4702EB20u); /* 0x4702E2E4: call 0x4702eb20 */ /* not lifted */
   1176     RECOMP_FLAGS_IN();
   1177     ebx = eax; /* 0x4702E2E9: mov ebx, eax */
   1178     /* cmp ebx, ebp */ /* 0x4702E2EB: cmp ebx, ebp */
   1179     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebp);
   1180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1181     _flag_k = FK_CMP;
   1182     MEM32(esp + 0x28) = ebx; /* 0x4702E2ED: mov dword ptr [esp + 0x28], ebx */
   1183     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E306; /* 0x4702E2F1: jne 0x4702e306 */
   1184 L_4702E2F3:
   1185     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702E2F3: call dword ptr [0x470ac3c8] */
   1186     RECOMP_FLAGS_IN();
   1187     MEM32(eax) = 0xCu; /* 0x4702E2F9: mov dword ptr [eax], 0xc */
   1188     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1189     eax = 0; /* 0x4702E2FF: xor eax, eax */
   1190     _cf = 0;
   1191     _flag_k = FK_TEST;
   1192     goto L_4702E3BF; /* 0x4702E301: jmp 0x4702e3bf */
   1193 L_4702E306:
   1194     esi = MEM32(ebx + 0x30C); /* 0x4702E306: mov esi, dword ptr [ebx + 0x30c] */
   1195     eax = MEM32(esi); /* 0x4702E30C: mov eax, dword ptr [esi] */
   1196     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1197     eax = eax - 1; /* 0x4702E30E: dec eax */
   1198     _flag_k = FK_DEC;
   1199     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E351; /* 0x4702E30F: je 0x4702e351 */
   1200 L_4702E311:
   1201     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1202     eax = eax - 1; /* 0x4702E311: dec eax */
   1203     _flag_k = FK_DEC;
   1204     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E325; /* 0x4702E312: je 0x4702e325 */
   1205 L_4702E314:
   1206     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702E314: call dword ptr [0x470ac3c8] */
   1207     RECOMP_FLAGS_IN();
   1208     MEM32(eax) = 0x16u; /* 0x4702E31A: mov dword ptr [eax], 0x16 */
   1209     goto L_4702E3BD; /* 0x4702E320: jmp 0x4702e3bd */
   1210 L_4702E325:
   1211     edx = MEM32(esi + 0x4); /* 0x4702E325: mov edx, dword ptr [esi + 4] */
   1212     edi = esi + 0x4; /* 0x4702E328: lea edi, [esi + 4] */
   1213     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E32B: push -1 */
   1214     PUSH32(esp, edx); /* 0x4702E32D: push edx */
   1215     RECOMP_ICALL(MEM32(0x470AC194)); /* 0x4702E32E: call dword ptr [0x470ac194] */
   1216     RECOMP_FLAGS_IN();
   1217     /* cmp eax, ebp */ /* 0x4702E334: cmp eax, ebp */
   1218     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   1219     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1220     _flag_k = FK_CMP;
   1221     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E35B; /* 0x4702E336: je 0x4702e35b */
   1222 L_4702E338:
   1223     /* cmp eax, 0x80u */ /* 0x4702E338: cmp eax, 0x80 */
   1224     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
   1225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1226     _flag_k = FK_CMP;
   1227     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E35B; /* 0x4702E33D: je 0x4702e35b */
   1228 L_4702E33F:
   1229     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702E33F: call dword ptr [0x470ac3c8] */
   1230     RECOMP_FLAGS_IN();
   1231     esi = eax; /* 0x4702E345: mov esi, eax */
   1232     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E347: call dword ptr [0x470ac150] */
   1233     RECOMP_FLAGS_IN();
   1234     MEM32(esi) = eax; /* 0x4702E34D: mov dword ptr [esi], eax */
   1235     goto L_4702E3BD; /* 0x4702E34F: jmp 0x4702e3bd */
   1236 L_4702E351:
   1237     edi = esi + 0x4; /* 0x4702E351: lea edi, [esi + 4] */
   1238     PUSH32(esp, edi); /* 0x4702E354: push edi */
   1239     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x4702E355: call dword ptr [0x470ac180] */
   1240     RECOMP_FLAGS_IN();
   1241 L_4702E35B:
   1242     ebx = MEM32(0x470AC3C8); /* 0x4702E35B: mov ebx, dword ptr [0x470ac3c8] */
   1243     RECOMP_ICALL(ebx); /* 0x4702E361: call ebx */
   1244     RECOMP_FLAGS_IN();
   1245     MEM32(esp + 0x10) = eax; /* 0x4702E363: mov dword ptr [esp + 0x10], eax */
   1246     eax = MEM32(esi + 0x74); /* 0x4702E367: mov eax, dword ptr [esi + 0x74] */
   1247     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E36A: cmp eax, -1 */
   1248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1250     _flag_k = FK_CMP;
   1251     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E37A; /* 0x4702E36D: je 0x4702e37a */
   1252 L_4702E36F:
   1253     /* cmp MEM32(esi + 0x70), ebp */ /* 0x4702E36F: cmp dword ptr [esi + 0x70], ebp */
   1254     _flag_a = (uint32_t)(MEM32(esi + 0x70)); _flag_b = (uint32_t)(ebp);
   1255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1256     _flag_k = FK_CMP;
   1257     if (CMP_G(_flag_a, _flag_b)) goto L_4702E37A; /* 0x4702E372: jg 0x4702e37a */
   1258 L_4702E374:
   1259     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1260     eax = eax + 1; /* 0x4702E374: inc eax */
   1261     _flag_k = FK_INC;
   1262     MEM32(esi + 0x74) = eax; /* 0x4702E375: mov dword ptr [esi + 0x74], eax */
   1263     goto L_4702E37F; /* 0x4702E378: jmp 0x4702e37f */
   1264 L_4702E37A:
   1265     ebp = 0x10u; /* 0x4702E37A: mov ebp, 0x10 */
   1266 L_4702E37F:
   1267     esi = MEM32(esi); /* 0x4702E37F: mov esi, dword ptr [esi] */
   1268     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   1269     esi = esi - 1; /* 0x4702E381: dec esi */
   1270     _flag_k = FK_DEC;
   1271     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E3AC; /* 0x4702E382: je 0x4702e3ac */
   1272 L_4702E384:
   1273     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   1274     esi = esi - 1; /* 0x4702E384: dec esi */
   1275     _flag_k = FK_DEC;
   1276     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E391; /* 0x4702E385: je 0x4702e391 */
   1277 L_4702E387:
   1278     RECOMP_ICALL(ebx); /* 0x4702E387: call ebx */
   1279     RECOMP_FLAGS_IN();
   1280     MEM32(eax) = 0x16u; /* 0x4702E389: mov dword ptr [eax], 0x16 */
   1281     goto L_4702E3B3; /* 0x4702E38F: jmp 0x4702e3b3 */
   1282 L_4702E391:
   1283     eax = MEM32(edi); /* 0x4702E391: mov eax, dword ptr [edi] */
   1284     PUSH32(esp, eax); /* 0x4702E393: push eax */
   1285     RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x4702E394: call dword ptr [0x470ac18c] */
   1286     RECOMP_FLAGS_IN();
   1287     /* test eax, eax */ /* 0x4702E39A: test eax, eax */
   1288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1289     _cf = 0;
   1290     _flag_k = FK_TEST;
   1291     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E3B3; /* 0x4702E39C: jne 0x4702e3b3 */
   1292 L_4702E39E:
   1293     RECOMP_ICALL(ebx); /* 0x4702E39E: call ebx */
   1294     RECOMP_FLAGS_IN();
   1295     esi = eax; /* 0x4702E3A0: mov esi, eax */
   1296     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E3A2: call dword ptr [0x470ac150] */
   1297     RECOMP_FLAGS_IN();
   1298     MEM32(esi) = eax; /* 0x4702E3A8: mov dword ptr [esi], eax */
   1299     goto L_4702E3B3; /* 0x4702E3AA: jmp 0x4702e3b3 */
   1300 L_4702E3AC:
   1301     PUSH32(esp, edi); /* 0x4702E3AC: push edi */
   1302     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4702E3AD: call dword ptr [0x470ac190] */
   1303     RECOMP_FLAGS_IN();
   1304 L_4702E3B3:
   1305     ecx = MEM32(esp + 0x10); /* 0x4702E3B3: mov ecx, dword ptr [esp + 0x10] */
   1306     ebx = MEM32(esp + 0x28); /* 0x4702E3B7: mov ebx, dword ptr [esp + 0x28] */
   1307     MEM32(ecx) = ebp; /* 0x4702E3BB: mov dword ptr [ecx], ebp */
   1308 L_4702E3BD:
   1309     eax = ebx; /* 0x4702E3BD: mov eax, ebx */
   1310 L_4702E3BF:
   1311     ecx = MEM32(esp + 0x18); /* 0x4702E3BF: mov ecx, dword ptr [esp + 0x18] */
   1312     edi = POP32_VAL(esp); /* 0x4702E3C3: pop edi */
   1313     esi = POP32_VAL(esp); /* 0x4702E3C4: pop esi */
   1314     ebp = POP32_VAL(esp); /* 0x4702E3C5: pop ebp */
   1315     ebx = POP32_VAL(esp); /* 0x4702E3C6: pop ebx */
   1316     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E3C7: mov dword ptr fs:[0], ecx */
   1317     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1318     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1319     esp = esp + 0x14u; /* 0x4702E3CE: add esp, 0x14 */
   1320     _flag_k = FK_ADD;
   1321     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702E3D1: ret 8 */
   1322     RECOMP_REGS_OUT();
   1323 }
   1324 
   1325 void sub_4702E3BD(void) {
   1326     int _fpu_cmp = 0;
   1327     uint32_t _cf = 0;
   1328     int _df = 1;
   1329     uint32_t _flag_k = FK_NONE;
   1330     uint32_t _flag_a = 0, _flag_b = 0;
   1331     uint32_t _itail_tgt = 0;
   1332     RECOMP_REGS_LOCALS
   1333     RECOMP_ENTER(0x4702E3BDu);
   1334 
   1335 L_4702E3BD:
   1336     eax = ebx; /* 0x4702E3BD: mov eax, ebx */
   1337     ecx = MEM32(esp + 0x18); /* 0x4702E3BF: mov ecx, dword ptr [esp + 0x18] */
   1338     edi = POP32_VAL(esp); /* 0x4702E3C3: pop edi */
   1339     esi = POP32_VAL(esp); /* 0x4702E3C4: pop esi */
   1340     ebp = POP32_VAL(esp); /* 0x4702E3C5: pop ebp */
   1341     ebx = POP32_VAL(esp); /* 0x4702E3C6: pop ebx */
   1342     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E3C7: mov dword ptr fs:[0], ecx */
   1343     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1344     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1345     esp = esp + 0x14u; /* 0x4702E3CE: add esp, 0x14 */
   1346     _flag_k = FK_ADD;
   1347     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702E3D1: ret 8 */
   1348     RECOMP_REGS_OUT();
   1349 }
   1350 
   1351 void sub_4702E3BF(void) {
   1352     int _fpu_cmp = 0;
   1353     uint32_t _cf = 0;
   1354     int _df = 1;
   1355     uint32_t _flag_k = FK_NONE;
   1356     uint32_t _flag_a = 0, _flag_b = 0;
   1357     uint32_t _itail_tgt = 0;
   1358     RECOMP_REGS_LOCALS
   1359     RECOMP_ENTER(0x4702E3BFu);
   1360 
   1361 L_4702E3BF:
   1362     ecx = MEM32(esp + 0x18); /* 0x4702E3BF: mov ecx, dword ptr [esp + 0x18] */
   1363     edi = POP32_VAL(esp); /* 0x4702E3C3: pop edi */
   1364     esi = POP32_VAL(esp); /* 0x4702E3C4: pop esi */
   1365     ebp = POP32_VAL(esp); /* 0x4702E3C5: pop ebp */
   1366     ebx = POP32_VAL(esp); /* 0x4702E3C6: pop ebx */
   1367     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E3C7: mov dword ptr fs:[0], ecx */
   1368     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1369     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1370     esp = esp + 0x14u; /* 0x4702E3CE: add esp, 0x14 */
   1371     _flag_k = FK_ADD;
   1372     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702E3D1: ret 8 */
   1373     RECOMP_REGS_OUT();
   1374 }
   1375 
   1376 void sub_4702E3E0(void) {
   1377     int _fpu_cmp = 0;
   1378     uint32_t _cf = 0;
   1379     int _df = 1;
   1380     uint32_t _flag_k = FK_NONE;
   1381     uint32_t _flag_a = 0, _flag_b = 0;
   1382     uint32_t _itail_tgt = 0;
   1383     RECOMP_REGS_LOCALS
   1384     RECOMP_ENTER(0x4702E3E0u);
   1385 
   1386 L_4702E3E0:
   1387     eax = MEM32(FS_BASE + (0)); /* 0x4702E3E0: mov eax, dword ptr fs:[0] */
   1388     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E3E6: push -1 */
   1389     PUSH32(esp, 0x470A54DCu); /* 0x4702E3E8: push 0x470a54dc */
   1390     PUSH32(esp, eax); /* 0x4702E3ED: push eax */
   1391     MEM32(FS_BASE + (0)) = esp; /* 0x4702E3EE: mov dword ptr fs:[0], esp */
   1392     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1394     esp = esp - 0x14u; /* 0x4702E3F5: sub esp, 0x14 */
   1395     _flag_k = FK_CMP;
   1396     PUSH32(esp, ebx); /* 0x4702E3F8: push ebx */
   1397     ebx = MEM32(esp + 0x28); /* 0x4702E3F9: mov ebx, dword ptr [esp + 0x28] */
   1398     eax = MEM32(ebx); /* 0x4702E3FD: mov eax, dword ptr [ebx] */
   1399     /* test eax, eax */ /* 0x4702E3FF: test eax, eax */
   1400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1401     _cf = 0;
   1402     _flag_k = FK_TEST;
   1403     PUSH32(esp, ebp); /* 0x4702E401: push ebp */
   1404     PUSH32(esp, esi); /* 0x4702E402: push esi */
   1405     PUSH32(esp, edi); /* 0x4702E403: push edi */
   1406     ebp = ecx; /* 0x4702E404: mov ebp, ecx */
   1407     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E6BD; /* 0x4702E406: je 0x4702e6bd */
   1408 L_4702E40C:
   1409     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1410     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1411     eax = eax + 4; /* 0x4702E40C: add eax, 4 */
   1412     _flag_k = FK_ADD;
   1413     PUSH32(esp, eax); /* 0x4702E40F: push eax */
   1414     RECOMP_ICALL(0x4700B4C0u); /* 0x4702E410: call 0x4700b4c0 */ /* not lifted */
   1415     RECOMP_FLAGS_IN();
   1416     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1417     edx = 0; /* 0x4702E415: xor edx, edx */
   1418     _cf = 0;
   1419     _flag_k = FK_TEST;
   1420     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(ebp); /* 0x4702E417: div dword ptr [ebp] */
   1421       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   1422       else { eax = 0; edx = 0; } }
   1423     esi = MEM32(ebx); /* 0x4702E41A: mov esi, dword ptr [ebx] */
   1424     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1425     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1426     esp = esp + 4; /* 0x4702E41C: add esp, 4 */
   1427     _flag_k = FK_ADD;
   1428     eax = edx * 8; /* 0x4702E41F: lea eax, [edx*8] */
   1429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1431     eax = eax - edx; /* 0x4702E426: sub eax, edx */
   1432     _flag_k = FK_CMP;
   1433     /* test esi, esi */ /* 0x4702E428: test esi, esi */
   1434     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1435     _cf = 0;
   1436     _flag_k = FK_TEST;
   1437     eax = eax + eax * 2; /* 0x4702E42A: lea eax, [eax + eax*2] */
   1438     eax = ebp + eax * 8 + 0x18; /* 0x4702E42D: lea eax, [ebp + eax*8 + 0x18] */
   1439     MEM32(esp + 0x14) = eax; /* 0x4702E431: mov dword ptr [esp + 0x14], eax */
   1440     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E6BB; /* 0x4702E435: je 0x4702e6bb */
   1441 L_4702E43B:
   1442     ecx = MEM32(esi + 0x254); /* 0x4702E43B: mov ecx, dword ptr [esi + 0x254] */
   1443     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2);
   1444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1445     ecx = ecx - 2; /* 0x4702E441: sub ecx, 2 */
   1446     _flag_k = FK_CMP;
   1447     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702E536; /* 0x4702E444: je 0x4702e536 */
   1448 L_4702E44A:
   1449     /* cmp MEM32(esi + 0x254), 2 */ /* 0x4702E44A: cmp dword ptr [esi + 0x254], 2 */
   1450     _flag_a = (uint32_t)(MEM32(esi + 0x254)); _flag_b = (uint32_t)(2);
   1451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1452     _flag_k = FK_CMP;
   1453     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E492; /* 0x4702E451: jne 0x4702e492 */
   1454 L_4702E453:
   1455     edi = esi + 0x10C; /* 0x4702E453: lea edi, [esi + 0x10c] */
   1456     ecx = edi; /* 0x4702E459: mov ecx, edi */
   1457     RECOMP_ICALL(0x4700A2A0u); /* 0x4702E45B: call 0x4700a2a0 */ /* not lifted */
   1458     RECOMP_FLAGS_IN();
   1459     eax = MEM32(edi); /* 0x4702E460: mov eax, dword ptr [edi] */
   1460     _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu));
   1461     ebp = ebp | 0xFFFFFFFFu; /* 0x4702E462: or ebp, 0xffffffff */
   1462     _cf = 0;
   1463     _flag_k = FK_TEST;
   1464     /* cmp eax, ebp */ /* 0x4702E465: cmp eax, ebp */
   1465     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   1466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1467     _flag_k = FK_CMP;
   1468     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E47B; /* 0x4702E467: je 0x4702e47b */
   1469 L_4702E469:
   1470     ecx = MEM32(edi + 0x10C); /* 0x4702E469: mov ecx, dword ptr [edi + 0x10c] */
   1471     PUSH32(esp, ecx); /* 0x4702E46F: push ecx */
   1472     PUSH32(esp, eax); /* 0x4702E470: push eax */
   1473     RECOMP_ICALL(0x47004E30u); /* 0x4702E471: call 0x47004e30 */ /* not lifted */
   1474     RECOMP_FLAGS_IN();
   1475     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1476     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1477     esp = esp + 8; /* 0x4702E476: add esp, 8 */
   1478     _flag_k = FK_ADD;
   1479     MEM32(edi) = ebp; /* 0x4702E479: mov dword ptr [edi], ebp */
   1480 L_4702E47B:
   1481     edx = MEM32(esi + 0x228); /* 0x4702E47B: mov edx, dword ptr [esi + 0x228] */
   1482     PUSH32(esp, edx); /* 0x4702E481: push edx */
   1483     RECOMP_ICALL(0x47002300u); /* 0x4702E482: call 0x47002300 */ /* not lifted */
   1484     RECOMP_FLAGS_IN();
   1485     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1486     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1487     esp = esp + 4; /* 0x4702E487: add esp, 4 */
   1488     _flag_k = FK_ADD;
   1489     MEM32(esi + 0x228) = ebp; /* 0x4702E48A: mov dword ptr [esi + 0x228], ebp */
   1490     goto L_4702E495; /* 0x4702E490: jmp 0x4702e495 */
   1491 L_4702E492:
   1492     _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu));
   1493     ebp = ebp | 0xFFFFFFFFu; /* 0x4702E492: or ebp, 0xffffffff */
   1494     _cf = 0;
   1495     _flag_k = FK_TEST;
   1496 L_4702E495:
   1497     esi = MEM32(esi + 0x30C); /* 0x4702E495: mov esi, dword ptr [esi + 0x30c] */
   1498     PUSH32(esp, esi); /* 0x4702E49B: push esi */
   1499     RECOMP_ICALL(0x47002D10u); /* 0x4702E49C: call 0x47002d10 */ /* not lifted */
   1500     RECOMP_FLAGS_IN();
   1501     eax = MEM32(ebx); /* 0x4702E4A1: mov eax, dword ptr [ebx] */
   1502     ecx = MEM32(eax + 0x25C); /* 0x4702E4A3: mov ecx, dword ptr [eax + 0x25c] */
   1503     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1504     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1505     esp = esp + 4; /* 0x4702E4A9: add esp, 4 */
   1506     _flag_k = FK_ADD;
   1507     /* test ecx, ecx */ /* 0x4702E4AC: test ecx, ecx */
   1508     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1509     _cf = 0;
   1510     _flag_k = FK_TEST;
   1511     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E6BB; /* 0x4702E4AE: je 0x4702e6bb */
   1512 L_4702E4B4:
   1513     eax = MEM32(eax + 0x30C); /* 0x4702E4B4: mov eax, dword ptr [eax + 0x30c] */
   1514     PUSH32(esp, eax); /* 0x4702E4BA: push eax */
   1515     RECOMP_ICALL(0x47002A90u); /* 0x4702E4BB: call 0x47002a90 */ /* not lifted */
   1516     RECOMP_FLAGS_IN();
   1517     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1518     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1519     esp = esp + 4; /* 0x4702E4C0: add esp, 4 */
   1520     _flag_k = FK_ADD;
   1521     /* test eax, eax */ /* 0x4702E4C3: test eax, eax */
   1522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1523     _cf = 0;
   1524     _flag_k = FK_TEST;
   1525     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E6BB; /* 0x4702E4C5: jne 0x4702e6bb */
   1526 L_4702E4CB:
   1527     esi = MEM32(ebx); /* 0x4702E4CB: mov esi, dword ptr [ebx] */
   1528     /* test esi, esi */ /* 0x4702E4CD: test esi, esi */
   1529     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1530     _cf = 0;
   1531     _flag_k = FK_TEST;
   1532     MEM32(esp + 0x34) = esi; /* 0x4702E4CF: mov dword ptr [esp + 0x34], esi */
   1533     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E52B; /* 0x4702E4D3: je 0x4702e52b */
   1534 L_4702E4D5:
   1535     eax = MEM32(esi + 0x258); /* 0x4702E4D5: mov eax, dword ptr [esi + 0x258] */
   1536     /* test eax, eax */ /* 0x4702E4DB: test eax, eax */
   1537     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1538     _cf = 0;
   1539     _flag_k = FK_TEST;
   1540     MEM32(esp + 0x2C) = 3; /* 0x4702E4DD: mov dword ptr [esp + 0x2c], 3 */
   1541     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E508; /* 0x4702E4E5: jne 0x4702e508 */
   1542 L_4702E4E7:
   1543     PUSH32(esp, ebp); /* 0x4702E4E7: push ebp */
   1544     ecx = esi + 0x10C; /* 0x4702E4E8: lea ecx, [esi + 0x10c] */
   1545     RECOMP_ICALL(0x4700A300u); /* 0x4702E4EE: call 0x4700a300 */ /* not lifted */
   1546     RECOMP_FLAGS_IN();
   1547     eax = MEM32(esi + 0x228); /* 0x4702E4F3: mov eax, dword ptr [esi + 0x228] */
   1548     PUSH32(esp, eax); /* 0x4702E4F9: push eax */
   1549     RECOMP_ICALL(0x47002300u); /* 0x4702E4FA: call 0x47002300 */ /* not lifted */
   1550     RECOMP_FLAGS_IN();
   1551     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1552     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1553     esp = esp + 4; /* 0x4702E4FF: add esp, 4 */
   1554     _flag_k = FK_ADD;
   1555     MEM32(esi + 0x228) = ebp; /* 0x4702E502: mov dword ptr [esi + 0x228], ebp */
   1556 L_4702E508:
   1557     ecx = esi + 0x264; /* 0x4702E508: lea ecx, [esi + 0x264] */
   1558     RECOMP_ICALL(0x47085D30u); /* 0x4702E50E: call 0x47085d30 */ /* not lifted */
   1559     RECOMP_FLAGS_IN();
   1560     ecx = esi + 0x10C; /* 0x4702E513: lea ecx, [esi + 0x10c] */
   1561     MEM32(esp + 0x2C) = ebp; /* 0x4702E519: mov dword ptr [esp + 0x2c], ebp */
   1562     RECOMP_ICALL(0x47041710u); /* 0x4702E51D: call 0x47041710 */ /* not lifted */
   1563     RECOMP_FLAGS_IN();
   1564     PUSH32(esp, esi); /* 0x4702E522: push esi */
   1565     RECOMP_ICALL(0x470A32A2u); /* 0x4702E523: call 0x470a32a2 */ /* not lifted */
   1566     RECOMP_FLAGS_IN();
   1567     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1568     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1569     esp = esp + 4; /* 0x4702E528: add esp, 4 */
   1570     _flag_k = FK_ADD;
   1571 L_4702E52B:
   1572     MEM32(ebx) = 0; /* 0x4702E52B: mov dword ptr [ebx], 0 */
   1573     goto L_4702E6BB; /* 0x4702E531: jmp 0x4702e6bb */
   1574 L_4702E536:
   1575     MEM32(esp + 0x1C) = eax; /* 0x4702E536: mov dword ptr [esp + 0x1c], eax */
   1576     PUSH32(esp, eax); /* 0x4702E53A: push eax */
   1577     MEM32(esp + 0x30) = 0; /* 0x4702E53B: mov dword ptr [esp + 0x30], 0 */
   1578     RECOMP_ICALL(0x47002C40u); /* 0x4702E543: call 0x47002c40 */ /* not lifted */
   1579     RECOMP_FLAGS_IN();
   1580     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1582     esp = esp + 4; /* 0x4702E548: add esp, 4 */
   1583     _flag_k = FK_ADD;
   1584     MEM32(esp + 0x20) = eax; /* 0x4702E54B: mov dword ptr [esp + 0x20], eax */
   1585     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E54F: cmp eax, -1 */
   1586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1588     _flag_k = FK_CMP;
   1589     MEM32(esp + 0x2C) = 1; /* 0x4702E552: mov dword ptr [esp + 0x2c], 1 */
   1590     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E563; /* 0x4702E55A: jne 0x4702e563 */
   1591 L_4702E55C:
   1592     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1593     eax = 0; /* 0x4702E55C: xor eax, eax */
   1594     _cf = 0;
   1595     _flag_k = FK_TEST;
   1596     goto L_4702E6BD; /* 0x4702E55E: jmp 0x4702e6bd */
   1597 L_4702E563:
   1598     edi = MEM32(ebx); /* 0x4702E563: mov edi, dword ptr [ebx] */
   1599     /* cmp MEM32(edi + 0x254), 2 */ /* 0x4702E565: cmp dword ptr [edi + 0x254], 2 */
   1600     _flag_a = (uint32_t)(MEM32(edi + 0x254)); _flag_b = (uint32_t)(2);
   1601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1602     _flag_k = FK_CMP;
   1603     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E5B1; /* 0x4702E56C: jne 0x4702e5b1 */
   1604 L_4702E56E:
   1605     esi = edi + 0x10C; /* 0x4702E56E: lea esi, [edi + 0x10c] */
   1606     ecx = esi; /* 0x4702E574: mov ecx, esi */
   1607     RECOMP_ICALL(0x4700A2A0u); /* 0x4702E576: call 0x4700a2a0 */ /* not lifted */
   1608     RECOMP_FLAGS_IN();
   1609     eax = MEM32(esi); /* 0x4702E57B: mov eax, dword ptr [esi] */
   1610     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E57D: cmp eax, -1 */
   1611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1613     _flag_k = FK_CMP;
   1614     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E598; /* 0x4702E580: je 0x4702e598 */
   1615 L_4702E582:
   1616     ecx = MEM32(esi + 0x10C); /* 0x4702E582: mov ecx, dword ptr [esi + 0x10c] */
   1617     PUSH32(esp, ecx); /* 0x4702E588: push ecx */
   1618     PUSH32(esp, eax); /* 0x4702E589: push eax */
   1619     RECOMP_ICALL(0x47004E30u); /* 0x4702E58A: call 0x47004e30 */ /* not lifted */
   1620     RECOMP_FLAGS_IN();
   1621     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1622     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1623     esp = esp + 8; /* 0x4702E58F: add esp, 8 */
   1624     _flag_k = FK_ADD;
   1625     MEM32(esi) = 0xFFFFFFFFu; /* 0x4702E592: mov dword ptr [esi], 0xffffffff */
   1626 L_4702E598:
   1627     edx = MEM32(edi + 0x228); /* 0x4702E598: mov edx, dword ptr [edi + 0x228] */
   1628     PUSH32(esp, edx); /* 0x4702E59E: push edx */
   1629     RECOMP_ICALL(0x47002300u); /* 0x4702E59F: call 0x47002300 */ /* not lifted */
   1630     RECOMP_FLAGS_IN();
   1631     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1632     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1633     esp = esp + 4; /* 0x4702E5A4: add esp, 4 */
   1634     _flag_k = FK_ADD;
   1635     MEM32(edi + 0x228) = 0xFFFFFFFFu; /* 0x4702E5A7: mov dword ptr [edi + 0x228], 0xffffffff */
   1636 L_4702E5B1:
   1637     edi = MEM32(edi + 0x30C); /* 0x4702E5B1: mov edi, dword ptr [edi + 0x30c] */
   1638     PUSH32(esp, edi); /* 0x4702E5B7: push edi */
   1639     RECOMP_ICALL(0x47002D10u); /* 0x4702E5B8: call 0x47002d10 */ /* not lifted */
   1640     RECOMP_FLAGS_IN();
   1641     eax = MEM32(ebx); /* 0x4702E5BD: mov eax, dword ptr [ebx] */
   1642     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1643     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1644     esp = esp + 4; /* 0x4702E5BF: add esp, 4 */
   1645     _flag_k = FK_ADD;
   1646     ecx = esp + 0x34; /* 0x4702E5C2: lea ecx, [esp + 0x34] */
   1647     PUSH32(esp, ecx); /* 0x4702E5C6: push ecx */
   1648     edx = esp + 0x14; /* 0x4702E5C7: lea edx, [esp + 0x14] */
   1649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1651     eax = eax + 4; /* 0x4702E5CB: add eax, 4 */
   1652     _flag_k = FK_ADD;
   1653     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1654     edi = 0; /* 0x4702E5CE: xor edi, edi */
   1655     _cf = 0;
   1656     _flag_k = FK_TEST;
   1657     PUSH32(esp, edx); /* 0x4702E5D0: push edx */
   1658     ecx = ebp + 0x4; /* 0x4702E5D1: lea ecx, [ebp + 4] */
   1659     MEM32(esp + 0x18) = eax; /* 0x4702E5D4: mov dword ptr [esp + 0x18], eax */
   1660     MEM32(esp + 0x3C) = edi; /* 0x4702E5D8: mov dword ptr [esp + 0x3c], edi */
   1661     RECOMP_ICALL(0x4702F220u); /* 0x4702E5DC: call 0x4702f220 */ /* not lifted */
   1662     RECOMP_FLAGS_IN();
   1663     /* test eax, eax */ /* 0x4702E5E1: test eax, eax */
   1664     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1665     _cf = 0;
   1666     _flag_k = FK_TEST;
   1667     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E622; /* 0x4702E5E3: jne 0x4702e622 */
   1668 L_4702E5E5:
   1669     eax = MEM32(esp + 0x34); /* 0x4702E5E5: mov eax, dword ptr [esp + 0x34] */
   1670     MEM32(eax + 0x25C) = 1; /* 0x4702E5E9: mov dword ptr [eax + 0x25c], 1 */
   1671     ecx = MEM32(esp + 0x34); /* 0x4702E5F3: mov ecx, dword ptr [esp + 0x34] */
   1672     eax = MEM32(ecx + 0x30C); /* 0x4702E5F7: mov eax, dword ptr [ecx + 0x30c] */
   1673     PUSH32(esp, eax); /* 0x4702E5FD: push eax */
   1674     RECOMP_ICALL(0x47002A90u); /* 0x4702E5FE: call 0x47002a90 */ /* not lifted */
   1675     RECOMP_FLAGS_IN();
   1676     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1677     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1678     esp = esp + 4; /* 0x4702E603: add esp, 4 */
   1679     _flag_k = FK_ADD;
   1680     /* test eax, eax */ /* 0x4702E606: test eax, eax */
   1681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1682     _cf = 0;
   1683     _flag_k = FK_TEST;
   1684     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E626; /* 0x4702E608: jne 0x4702e626 */
   1685 L_4702E60A:
   1686     ecx = MEM32(esp + 0x34); /* 0x4702E60A: mov ecx, dword ptr [esp + 0x34] */
   1687     /* cmp ecx, edi */ /* 0x4702E60E: cmp ecx, edi */
   1688     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   1689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1690     _flag_k = FK_CMP;
   1691     esi = ecx; /* 0x4702E610: mov esi, ecx */
   1692     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E622; /* 0x4702E612: je 0x4702e622 */
   1693 L_4702E614:
   1694     RECOMP_ICALL(0x4702EE80u); /* 0x4702E614: call 0x4702ee80 */ /* not lifted */
   1695     RECOMP_FLAGS_IN();
   1696     PUSH32(esp, esi); /* 0x4702E619: push esi */
   1697     RECOMP_ICALL(0x470A32A2u); /* 0x4702E61A: call 0x470a32a2 */ /* not lifted */
   1698     RECOMP_FLAGS_IN();
   1699     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1700     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1701     esp = esp + 4; /* 0x4702E61F: add esp, 4 */
   1702     _flag_k = FK_ADD;
   1703 L_4702E622:
   1704     MEM32(esp + 0x34) = edi; /* 0x4702E622: mov dword ptr [esp + 0x34], edi */
   1705 L_4702E626:
   1706     eax = MEM32(ebx); /* 0x4702E626: mov eax, dword ptr [ebx] */
   1707     /* cmp MEM32(eax + 0x25C), edi */ /* 0x4702E628: cmp dword ptr [eax + 0x25c], edi */
   1708     _flag_a = (uint32_t)(MEM32(eax + 0x25C)); _flag_b = (uint32_t)(edi);
   1709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1710     _flag_k = FK_CMP;
   1711     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E6A6; /* 0x4702E62E: je 0x4702e6a6 */
   1712 L_4702E630:
   1713     eax = MEM32(eax + 0x30C); /* 0x4702E630: mov eax, dword ptr [eax + 0x30c] */
   1714     PUSH32(esp, eax); /* 0x4702E636: push eax */
   1715     RECOMP_ICALL(0x47002A90u); /* 0x4702E637: call 0x47002a90 */ /* not lifted */
   1716     RECOMP_FLAGS_IN();
   1717     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1718     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1719     esp = esp + 4; /* 0x4702E63C: add esp, 4 */
   1720     _flag_k = FK_ADD;
   1721     /* test eax, eax */ /* 0x4702E63F: test eax, eax */
   1722     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1723     _cf = 0;
   1724     _flag_k = FK_TEST;
   1725     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702E6A6; /* 0x4702E641: jne 0x4702e6a6 */
   1726 L_4702E643:
   1727     esi = MEM32(ebx); /* 0x4702E643: mov esi, dword ptr [ebx] */
   1728     /* cmp esi, edi */ /* 0x4702E645: cmp esi, edi */
   1729     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   1730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1731     _flag_k = FK_CMP;
   1732     MEM32(esp + 0x18) = esi; /* 0x4702E647: mov dword ptr [esp + 0x18], esi */
   1733     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702E6A4; /* 0x4702E64B: je 0x4702e6a4 */
   1734 L_4702E64D:
   1735     /* cmp MEM32(esi + 0x258), edi */ /* 0x4702E64D: cmp dword ptr [esi + 0x258], edi */
   1736     _flag_a = (uint32_t)(MEM32(esi + 0x258)); _flag_b = (uint32_t)(edi);
   1737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1738     _flag_k = FK_CMP;
   1739     MEM8(esp + 0x2C) = (uint8_t)(2); /* 0x4702E653: mov byte ptr [esp + 0x2c], 2 */
   1740     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E680; /* 0x4702E658: jne 0x4702e680 */
   1741 L_4702E65A:
   1742     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E65A: push -1 */
   1743     ecx = esi + 0x10C; /* 0x4702E65C: lea ecx, [esi + 0x10c] */
   1744     RECOMP_ICALL(0x4700A300u); /* 0x4702E662: call 0x4700a300 */ /* not lifted */
   1745     RECOMP_FLAGS_IN();
   1746     edx = MEM32(esi + 0x228); /* 0x4702E667: mov edx, dword ptr [esi + 0x228] */
   1747     PUSH32(esp, edx); /* 0x4702E66D: push edx */
   1748     RECOMP_ICALL(0x47002300u); /* 0x4702E66E: call 0x47002300 */ /* not lifted */
   1749     RECOMP_FLAGS_IN();
   1750     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1751     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1752     esp = esp + 4; /* 0x4702E673: add esp, 4 */
   1753     _flag_k = FK_ADD;
   1754     MEM32(esi + 0x228) = 0xFFFFFFFFu; /* 0x4702E676: mov dword ptr [esi + 0x228], 0xffffffff */
   1755 L_4702E680:
   1756     ecx = esi + 0x264; /* 0x4702E680: lea ecx, [esi + 0x264] */
   1757     RECOMP_ICALL(0x47085D30u); /* 0x4702E686: call 0x47085d30 */ /* not lifted */
   1758     RECOMP_FLAGS_IN();
   1759     ecx = esi + 0x10C; /* 0x4702E68B: lea ecx, [esi + 0x10c] */
   1760     MEM8(esp + 0x2C) = (uint8_t)(1); /* 0x4702E691: mov byte ptr [esp + 0x2c], 1 */
   1761     RECOMP_ICALL(0x47041710u); /* 0x4702E696: call 0x47041710 */ /* not lifted */
   1762     RECOMP_FLAGS_IN();
   1763     PUSH32(esp, esi); /* 0x4702E69B: push esi */
   1764     RECOMP_ICALL(0x470A32A2u); /* 0x4702E69C: call 0x470a32a2 */ /* not lifted */
   1765     RECOMP_FLAGS_IN();
   1766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1768     esp = esp + 4; /* 0x4702E6A1: add esp, 4 */
   1769     _flag_k = FK_ADD;
   1770 L_4702E6A4:
   1771     MEM32(ebx) = edi; /* 0x4702E6A4: mov dword ptr [ebx], edi */
   1772 L_4702E6A6:
   1773     eax = MEM32(esp + 0x14); /* 0x4702E6A6: mov eax, dword ptr [esp + 0x14] */
   1774     PUSH32(esp, eax); /* 0x4702E6AA: push eax */
   1775     MEM32(esp + 0x30) = 0xFFFFFFFFu; /* 0x4702E6AB: mov dword ptr [esp + 0x30], 0xffffffff */
   1776     RECOMP_ICALL(0x47002D10u); /* 0x4702E6B3: call 0x47002d10 */ /* not lifted */
   1777     RECOMP_FLAGS_IN();
   1778     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1779     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1780     esp = esp + 4; /* 0x4702E6B8: add esp, 4 */
   1781     _flag_k = FK_ADD;
   1782 L_4702E6BB:
   1783     eax = MEM32(ebx); /* 0x4702E6BB: mov eax, dword ptr [ebx] */
   1784 L_4702E6BD:
   1785     ecx = MEM32(esp + 0x24); /* 0x4702E6BD: mov ecx, dword ptr [esp + 0x24] */
   1786     edi = POP32_VAL(esp); /* 0x4702E6C1: pop edi */
   1787     esi = POP32_VAL(esp); /* 0x4702E6C2: pop esi */
   1788     ebp = POP32_VAL(esp); /* 0x4702E6C3: pop ebp */
   1789     ebx = POP32_VAL(esp); /* 0x4702E6C4: pop ebx */
   1790     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E6C5: mov dword ptr fs:[0], ecx */
   1791     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   1792     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1793     esp = esp + 0x20u; /* 0x4702E6CC: add esp, 0x20 */
   1794     _flag_k = FK_ADD;
   1795     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702E6CF: ret 4 */
   1796     RECOMP_REGS_OUT();
   1797 }
   1798 
   1799 void sub_4702E6BB(void) {
   1800     int _fpu_cmp = 0;
   1801     uint32_t _cf = 0;
   1802     int _df = 1;
   1803     uint32_t _flag_k = FK_NONE;
   1804     uint32_t _flag_a = 0, _flag_b = 0;
   1805     uint32_t _itail_tgt = 0;
   1806     RECOMP_REGS_LOCALS
   1807     RECOMP_ENTER(0x4702E6BBu);
   1808 
   1809 L_4702E6BB:
   1810     eax = MEM32(ebx); /* 0x4702E6BB: mov eax, dword ptr [ebx] */
   1811     ecx = MEM32(esp + 0x24); /* 0x4702E6BD: mov ecx, dword ptr [esp + 0x24] */
   1812     edi = POP32_VAL(esp); /* 0x4702E6C1: pop edi */
   1813     esi = POP32_VAL(esp); /* 0x4702E6C2: pop esi */
   1814     ebp = POP32_VAL(esp); /* 0x4702E6C3: pop ebp */
   1815     ebx = POP32_VAL(esp); /* 0x4702E6C4: pop ebx */
   1816     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E6C5: mov dword ptr fs:[0], ecx */
   1817     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   1818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1819     esp = esp + 0x20u; /* 0x4702E6CC: add esp, 0x20 */
   1820     _flag_k = FK_ADD;
   1821     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702E6CF: ret 4 */
   1822     RECOMP_REGS_OUT();
   1823 }
   1824 
   1825 void sub_4702E6BD(void) {
   1826     int _fpu_cmp = 0;
   1827     uint32_t _cf = 0;
   1828     int _df = 1;
   1829     uint32_t _flag_k = FK_NONE;
   1830     uint32_t _flag_a = 0, _flag_b = 0;
   1831     uint32_t _itail_tgt = 0;
   1832     RECOMP_REGS_LOCALS
   1833     RECOMP_ENTER(0x4702E6BDu);
   1834 
   1835 L_4702E6BD:
   1836     ecx = MEM32(esp + 0x24); /* 0x4702E6BD: mov ecx, dword ptr [esp + 0x24] */
   1837     edi = POP32_VAL(esp); /* 0x4702E6C1: pop edi */
   1838     esi = POP32_VAL(esp); /* 0x4702E6C2: pop esi */
   1839     ebp = POP32_VAL(esp); /* 0x4702E6C3: pop ebp */
   1840     ebx = POP32_VAL(esp); /* 0x4702E6C4: pop ebx */
   1841     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E6C5: mov dword ptr fs:[0], ecx */
   1842     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   1843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1844     esp = esp + 0x20u; /* 0x4702E6CC: add esp, 0x20 */
   1845     _flag_k = FK_ADD;
   1846     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702E6CF: ret 4 */
   1847     RECOMP_REGS_OUT();
   1848 }
   1849 
   1850 void sub_4702E6E0(void) {
   1851     int _fpu_cmp = 0;
   1852     uint32_t _cf = 0;
   1853     int _df = 1;
   1854     uint32_t _flag_k = FK_NONE;
   1855     uint32_t _flag_a = 0, _flag_b = 0;
   1856     uint32_t _itail_tgt = 0;
   1857     RECOMP_REGS_LOCALS
   1858     RECOMP_ENTER(0x4702E6E0u);
   1859 
   1860 L_4702E6E0:
   1861     edx = ecx; /* 0x4702E6E0: mov edx, ecx */
   1862     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1863     eax = 0; /* 0x4702E6E2: xor eax, eax */
   1864     _cf = 0;
   1865     _flag_k = FK_TEST;
   1866     PUSH32(esp, edi); /* 0x4702E6E4: push edi */
   1867     ecx = 9; /* 0x4702E6E5: mov ecx, 9 */
   1868     edi = edx + 0x22C; /* 0x4702E6EA: lea edi, [edx + 0x22c] */
   1869     MEM8(edx + 0x4) = (uint8_t)(LO8(eax)); /* 0x4702E6F0: mov byte ptr [edx + 4], al */
   1870     MEM32(edx + 0x228) = 0xFFFFFFFFu; /* 0x4702E6F3: mov dword ptr [edx + 0x228], 0xffffffff */
   1871     MEM32(edx + 0x258) = eax; /* 0x4702E6FD: mov dword ptr [edx + 0x258], eax */
   1872     MEM32(edx) = eax; /* 0x4702E703: mov dword ptr [edx], eax */
   1873     MEM32(edx + 0x250) = eax; /* 0x4702E705: mov dword ptr [edx + 0x250], eax */
   1874     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E70B: 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; }
   1875     edi = POP32_VAL(esp); /* 0x4702E70D: pop edi */
   1876     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702E70E: ret  */
   1877     RECOMP_REGS_OUT();
   1878 }
   1879 
   1880 void sub_4702E710(void) {
   1881     int _fpu_cmp = 0;
   1882     uint32_t _cf = 0;
   1883     int _df = 1;
   1884     uint32_t _flag_k = FK_NONE;
   1885     uint32_t _flag_a = 0, _flag_b = 0;
   1886     uint32_t _itail_tgt = 0;
   1887     RECOMP_REGS_LOCALS
   1888     RECOMP_ENTER(0x4702E710u);
   1889 
   1890 L_4702E710:
   1891     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E710: push -1 */
   1892     PUSH32(esp, 0x470A54FEu); /* 0x4702E712: push 0x470a54fe */
   1893     eax = MEM32(FS_BASE + (0)); /* 0x4702E717: mov eax, dword ptr fs:[0] */
   1894     PUSH32(esp, eax); /* 0x4702E71D: push eax */
   1895     MEM32(FS_BASE + (0)) = esp; /* 0x4702E71E: mov dword ptr fs:[0], esp */
   1896     PUSH32(esp, ecx); /* 0x4702E725: push ecx */
   1897     PUSH32(esp, ebx); /* 0x4702E726: push ebx */
   1898     PUSH32(esp, esi); /* 0x4702E727: push esi */
   1899     esi = ecx; /* 0x4702E728: mov esi, ecx */
   1900     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1901     ebx = 0; /* 0x4702E72A: xor ebx, ebx */
   1902     _cf = 0;
   1903     _flag_k = FK_TEST;
   1904     PUSH32(esp, edi); /* 0x4702E72C: push edi */
   1905     ecx = esi + 0x10C; /* 0x4702E72D: lea ecx, [esi + 0x10c] */
   1906     MEM32(esp + 0xC) = esi; /* 0x4702E733: mov dword ptr [esp + 0xc], esi */
   1907     MEM32(esi) = ebx; /* 0x4702E737: mov dword ptr [esi], ebx */
   1908     RECOMP_ICALL(0x47041C70u); /* 0x4702E739: call 0x47041c70 */ /* not lifted */
   1909     RECOMP_FLAGS_IN();
   1910     PUSH32(esp, ebx); /* 0x4702E73E: push ebx */
   1911     edi = esi + 0x264; /* 0x4702E73F: lea edi, [esi + 0x264] */
   1912     PUSH32(esp, ebx); /* 0x4702E745: push ebx */
   1913     ecx = edi; /* 0x4702E746: mov ecx, edi */
   1914     MEM32(esp + 0x20) = ebx; /* 0x4702E748: mov dword ptr [esp + 0x20], ebx */
   1915     MEM32(esi + 0x228) = ebx; /* 0x4702E74C: mov dword ptr [esi + 0x228], ebx */
   1916     MEM32(esi + 0x250) = ebx; /* 0x4702E752: mov dword ptr [esi + 0x250], ebx */
   1917     MEM32(esi + 0x254) = ebx; /* 0x4702E758: mov dword ptr [esi + 0x254], ebx */
   1918     MEM32(esi + 0x258) = ebx; /* 0x4702E75E: mov dword ptr [esi + 0x258], ebx */
   1919     MEM32(esi + 0x25C) = ebx; /* 0x4702E764: mov dword ptr [esi + 0x25c], ebx */
   1920     RECOMP_ICALL(0x47087E70u); /* 0x4702E76A: call 0x47087e70 */ /* not lifted */
   1921     RECOMP_FLAGS_IN();
   1922     MEM32(esi + 0x30C) = edi; /* 0x4702E76F: mov dword ptr [esi + 0x30c], edi */
   1923     MEM8(esi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x4702E775: mov byte ptr [esi + 4], bl */
   1924     MEM32(esi + 0x258) = ebx; /* 0x4702E778: mov dword ptr [esi + 0x258], ebx */
   1925     MEM32(esi) = ebx; /* 0x4702E77E: mov dword ptr [esi], ebx */
   1926     MEM32(esi + 0x250) = ebx; /* 0x4702E780: mov dword ptr [esi + 0x250], ebx */
   1927     MEM32(esi + 0x228) = 0xFFFFFFFFu; /* 0x4702E786: mov dword ptr [esi + 0x228], 0xffffffff */
   1928     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1929     eax = 0; /* 0x4702E790: xor eax, eax */
   1930     _cf = 0;
   1931     _flag_k = FK_TEST;
   1932     edi = esi + 0x22C; /* 0x4702E792: lea edi, [esi + 0x22c] */
   1933     ecx = 9; /* 0x4702E798: mov ecx, 9 */
   1934     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E79D: 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; }
   1935     ecx = MEM32(esp + 0x10); /* 0x4702E79F: mov ecx, dword ptr [esp + 0x10] */
   1936     edi = POP32_VAL(esp); /* 0x4702E7A3: pop edi */
   1937     eax = esi; /* 0x4702E7A4: mov eax, esi */
   1938     esi = POP32_VAL(esp); /* 0x4702E7A6: pop esi */
   1939     ebx = POP32_VAL(esp); /* 0x4702E7A7: pop ebx */
   1940     MEM32(FS_BASE + (0)) = ecx; /* 0x4702E7A8: mov dword ptr fs:[0], ecx */
   1941     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1942     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1943     esp = esp + 0x10u; /* 0x4702E7AF: add esp, 0x10 */
   1944     _flag_k = FK_ADD;
   1945     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702E7B2: ret  */
   1946     RECOMP_REGS_OUT();
   1947 }
   1948 
   1949 void sub_4702E7C0(void) {
   1950     int _fpu_cmp = 0;
   1951     uint32_t _cf = 0;
   1952     int _df = 1;
   1953     uint32_t _flag_k = FK_NONE;
   1954     uint32_t _flag_a = 0, _flag_b = 0;
   1955     uint32_t _itail_tgt = 0;
   1956     RECOMP_REGS_LOCALS
   1957     RECOMP_ENTER(0x4702E7C0u);
   1958 
   1959 L_4702E7C0:
   1960     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E7C0: push -1 */
   1961     PUSH32(esp, 0x470A552Cu); /* 0x4702E7C2: push 0x470a552c */
   1962     eax = MEM32(FS_BASE + (0)); /* 0x4702E7C7: mov eax, dword ptr fs:[0] */
   1963     PUSH32(esp, eax); /* 0x4702E7CD: push eax */
   1964     MEM32(FS_BASE + (0)) = esp; /* 0x4702E7CE: mov dword ptr fs:[0], esp */
   1965     PUSH32(esp, ecx); /* 0x4702E7D5: push ecx */
   1966     PUSH32(esp, ebx); /* 0x4702E7D6: push ebx */
   1967     PUSH32(esp, ebp); /* 0x4702E7D7: push ebp */
   1968     ebp = ecx; /* 0x4702E7D8: mov ebp, ecx */
   1969     PUSH32(esp, esi); /* 0x4702E7DA: push esi */
   1970     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1971     esi = 0; /* 0x4702E7DB: xor esi, esi */
   1972     _cf = 0;
   1973     _flag_k = FK_TEST;
   1974     PUSH32(esp, edi); /* 0x4702E7DD: push edi */
   1975     ecx = ebp + 0x10C; /* 0x4702E7DE: lea ecx, [ebp + 0x10c] */
   1976     MEM32(esp + 0x10) = ebp; /* 0x4702E7E4: mov dword ptr [esp + 0x10], ebp */
   1977     MEM32(ebp) = esi; /* 0x4702E7E8: mov dword ptr [ebp], esi */
   1978     RECOMP_ICALL(0x47041C70u); /* 0x4702E7EB: call 0x47041c70 */ /* not lifted */
   1979     RECOMP_FLAGS_IN();
   1980     eax = MEM32(esp + 0x2C); /* 0x4702E7F0: mov eax, dword ptr [esp + 0x2c] */
   1981     PUSH32(esp, esi); /* 0x4702E7F4: push esi */
   1982     PUSH32(esp, esi); /* 0x4702E7F5: push esi */
   1983     ecx = ebp + 0x264; /* 0x4702E7F6: lea ecx, [ebp + 0x264] */
   1984     MEM32(esp + 0x24) = esi; /* 0x4702E7FC: mov dword ptr [esp + 0x24], esi */
   1985     MEM32(ebp + 0x228) = esi; /* 0x4702E800: mov dword ptr [ebp + 0x228], esi */
   1986     MEM32(ebp + 0x250) = esi; /* 0x4702E806: mov dword ptr [ebp + 0x250], esi */
   1987     MEM32(ebp + 0x254) = esi; /* 0x4702E80C: mov dword ptr [ebp + 0x254], esi */
   1988     MEM32(ebp + 0x258) = esi; /* 0x4702E812: mov dword ptr [ebp + 0x258], esi */
   1989     MEM32(ebp + 0x25C) = esi; /* 0x4702E818: mov dword ptr [ebp + 0x25c], esi */
   1990     MEM32(ebp + 0x260) = eax; /* 0x4702E81E: mov dword ptr [ebp + 0x260], eax */
   1991     RECOMP_ICALL(0x47087E70u); /* 0x4702E824: call 0x47087e70 */ /* not lifted */
   1992     RECOMP_FLAGS_IN();
   1993     ecx = MEM32(esp + 0x28); /* 0x4702E829: mov ecx, dword ptr [esp + 0x28] */
   1994     MEM32(ebp + 0x30C) = ecx; /* 0x4702E82D: mov dword ptr [ebp + 0x30c], ecx */
   1995     MEM32(ebp + 0x258) = esi; /* 0x4702E833: mov dword ptr [ebp + 0x258], esi */
   1996     MEM32(ebp) = esi; /* 0x4702E839: mov dword ptr [ebp], esi */
   1997     MEM32(ebp + 0x250) = esi; /* 0x4702E83C: mov dword ptr [ebp + 0x250], esi */
   1998     ebx = ebp + 0x4; /* 0x4702E842: lea ebx, [ebp + 4] */
   1999     MEM8(ebx) = (uint8_t)(0); /* 0x4702E845: mov byte ptr [ebx], 0 */
   2000     MEM32(ebp + 0x228) = 0xFFFFFFFFu; /* 0x4702E848: mov dword ptr [ebp + 0x228], 0xffffffff */
   2001     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2002     eax = 0; /* 0x4702E852: xor eax, eax */
   2003     _cf = 0;
   2004     _flag_k = FK_TEST;
   2005     edi = ebp + 0x22C; /* 0x4702E854: lea edi, [ebp + 0x22c] */
   2006     ecx = 9; /* 0x4702E85A: mov ecx, 9 */
   2007     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E85F: 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; }
   2008     edi = MEM32(esp + 0x24); /* 0x4702E861: mov edi, dword ptr [esp + 0x24] */
   2009     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2010     ecx = ecx | 0xFFFFFFFFu; /* 0x4702E865: or ecx, 0xffffffff */
   2011     _cf = 0;
   2012     _flag_k = FK_TEST;
   2013     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; } /* 0x4702E868: repne scasb al, byte ptr es:[edi] */
   2014     ecx = ~ecx; /* 0x4702E86A: not ecx */
   2015     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   2016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2017     edi = edi - ecx; /* 0x4702E86C: sub edi, ecx */
   2018     _flag_k = FK_CMP;
   2019     edx = ecx; /* 0x4702E86E: mov edx, ecx */
   2020     esi = edi; /* 0x4702E870: mov esi, edi */
   2021     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4702E872: shr ecx, 2 */
   2022     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2023     ecx = ecx >> 2u; /* 0x4702E872: shr ecx, 2 */
   2024     edi = ebx; /* 0x4702E875: mov edi, ebx */
   2025     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E877: 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; }
   2026     ecx = edx; /* 0x4702E879: mov ecx, edx */
   2027     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2028     ecx = ecx & 3; /* 0x4702E87B: and ecx, 3 */
   2029     _cf = 0;
   2030     _flag_k = FK_TEST;
   2031     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4702E87E: 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; }
   2032     PUSH32(esp, 4); /* 0x4702E880: push 4 */
   2033     edi = 1; /* 0x4702E882: mov edi, 1 */
   2034     PUSH32(esp, ebx); /* 0x4702E887: push ebx */
   2035     MEM8(esp + 0x24) = (uint8_t)(1); /* 0x4702E888: mov byte ptr [esp + 0x24], 1 */
   2036     MEM32(ebp + 0x254) = edi; /* 0x4702E88D: mov dword ptr [ebp + 0x254], edi */
   2037     RECOMP_ICALL(MEM32(0x470AC220)); /* 0x4702E893: call dword ptr [0x470ac220] */
   2038     RECOMP_FLAGS_IN();
   2039     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2040     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2041     esp = esp + 8; /* 0x4702E899: add esp, 8 */
   2042     _flag_k = FK_ADD;
   2043     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E89C: cmp eax, -1 */
   2044     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2046     _flag_k = FK_CMP;
   2047     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E90D; /* 0x4702E89F: jne 0x4702e90d */
   2048 L_4702E8A1:
   2049     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E8A1: call dword ptr [0x470ac150] */
   2050     RECOMP_FLAGS_IN();
   2051     ebx = eax; /* 0x4702E8A7: mov ebx, eax */
   2052     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702E8A9: call dword ptr [0x470ac3c8] */
   2053     RECOMP_FLAGS_IN();
   2054     eax = MEM32(eax); /* 0x4702E8AF: mov eax, dword ptr [eax] */
   2055     /* test eax, eax */ /* 0x4702E8B1: test eax, eax */
   2056     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2057     _cf = 0;
   2058     _flag_k = FK_TEST;
   2059     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E8B7; /* 0x4702E8B3: je 0x4702e8b7 */
   2060 L_4702E8B5:
   2061     ebx = eax; /* 0x4702E8B5: mov ebx, eax */
   2062 L_4702E8B7:
   2063     RECOMP_ICALL(0x47039020u); /* 0x4702E8B7: call 0x47039020 */ /* not lifted */
   2064     RECOMP_FLAGS_IN();
   2065     esi = eax; /* 0x4702E8BC: mov esi, eax */
   2066     ecx = esi; /* 0x4702E8BE: mov ecx, esi */
   2067     RECOMP_ICALL(0x4703B210u); /* 0x4702E8C0: call 0x4703b210 */ /* not lifted */
   2068     RECOMP_FLAGS_IN();
   2069     PUSH32(esp, eax); /* 0x4702E8C5: push eax */
   2070     ecx = esi; /* 0x4702E8C6: mov ecx, esi */
   2071     RECOMP_ICALL(0x4703B240u); /* 0x4702E8C8: call 0x4703b240 */ /* not lifted */
   2072     RECOMP_FLAGS_IN();
   2073     PUSH32(esp, eax); /* 0x4702E8CD: push eax */
   2074     ecx = esi; /* 0x4702E8CE: mov ecx, esi */
   2075     RECOMP_ICALL(0x4703B080u); /* 0x4702E8D0: call 0x4703b080 */ /* not lifted */
   2076     RECOMP_FLAGS_IN();
   2077     PUSH32(esp, eax); /* 0x4702E8D5: push eax */
   2078     PUSH32(esp, ebx); /* 0x4702E8D6: push ebx */
   2079     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E8D7: push -1 */
   2080     PUSH32(esp, 0x2AEu); /* 0x4702E8D9: push 0x2ae */
   2081     PUSH32(esp, 0x47106580u); /* 0x4702E8DE: push 0x47106580 */
   2082     ecx = esi; /* 0x4702E8E3: mov ecx, esi */
   2083     RECOMP_ICALL(0x4703A340u); /* 0x4702E8E5: call 0x4703a340 */ /* not lifted */
   2084     RECOMP_FLAGS_IN();
   2085     PUSH32(esp, 0x4710661Cu); /* 0x4702E8EA: push 0x4710661c */
   2086     PUSH32(esp, 0x47106614u); /* 0x4702E8EF: push 0x47106614 */
   2087     PUSH32(esp, 0x80u); /* 0x4702E8F4: push 0x80 */
   2088     PUSH32(esp, esi); /* 0x4702E8F9: push esi */
   2089     RECOMP_ICALL(0x47039830u); /* 0x4702E8FA: call 0x47039830 */ /* not lifted */
   2090     RECOMP_FLAGS_IN();
   2091     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2093     esp = esp + 0x10u; /* 0x4702E8FF: add esp, 0x10 */
   2094     _flag_k = FK_ADD;
   2095     MEM32(ebp + 0x258) = edi; /* 0x4702E902: mov dword ptr [ebp + 0x258], edi */
   2096     goto L_4702EB03; /* 0x4702E908: jmp 0x4702eb03 */
   2097 L_4702E90D:
   2098     eax = ebp + 0x22C; /* 0x4702E90D: lea eax, [ebp + 0x22c] */
   2099     PUSH32(esp, eax); /* 0x4702E913: push eax */
   2100     PUSH32(esp, ebx); /* 0x4702E914: push ebx */
   2101     RECOMP_ICALL(MEM32(0x470AC3E8)); /* 0x4702E915: call dword ptr [0x470ac3e8] */
   2102     RECOMP_FLAGS_IN();
   2103     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2104     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2105     esp = esp + 8; /* 0x4702E91B: add esp, 8 */
   2106     _flag_k = FK_ADD;
   2107     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E91E: cmp eax, -1 */
   2108     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2110     _flag_k = FK_CMP;
   2111     if (CMP_NE(_flag_a, _flag_b)) goto L_4702E993; /* 0x4702E921: jne 0x4702e993 */
   2112 L_4702E923:
   2113     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E923: call dword ptr [0x470ac150] */
   2114     RECOMP_FLAGS_IN();
   2115     edi = eax; /* 0x4702E929: mov edi, eax */
   2116     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702E92B: call dword ptr [0x470ac3c8] */
   2117     RECOMP_FLAGS_IN();
   2118     eax = MEM32(eax); /* 0x4702E931: mov eax, dword ptr [eax] */
   2119     /* test eax, eax */ /* 0x4702E933: test eax, eax */
   2120     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2121     _cf = 0;
   2122     _flag_k = FK_TEST;
   2123     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E939; /* 0x4702E935: je 0x4702e939 */
   2124 L_4702E937:
   2125     edi = eax; /* 0x4702E937: mov edi, eax */
   2126 L_4702E939:
   2127     RECOMP_ICALL(0x47039020u); /* 0x4702E939: call 0x47039020 */ /* not lifted */
   2128     RECOMP_FLAGS_IN();
   2129     esi = eax; /* 0x4702E93E: mov esi, eax */
   2130     ecx = esi; /* 0x4702E940: mov ecx, esi */
   2131     RECOMP_ICALL(0x4703B210u); /* 0x4702E942: call 0x4703b210 */ /* not lifted */
   2132     RECOMP_FLAGS_IN();
   2133     PUSH32(esp, eax); /* 0x4702E947: push eax */
   2134     ecx = esi; /* 0x4702E948: mov ecx, esi */
   2135     RECOMP_ICALL(0x4703B240u); /* 0x4702E94A: call 0x4703b240 */ /* not lifted */
   2136     RECOMP_FLAGS_IN();
   2137     PUSH32(esp, eax); /* 0x4702E94F: push eax */
   2138     ecx = esi; /* 0x4702E950: mov ecx, esi */
   2139     RECOMP_ICALL(0x4703B080u); /* 0x4702E952: call 0x4703b080 */ /* not lifted */
   2140     RECOMP_FLAGS_IN();
   2141     PUSH32(esp, eax); /* 0x4702E957: push eax */
   2142     PUSH32(esp, edi); /* 0x4702E958: push edi */
   2143     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E959: push -1 */
   2144     PUSH32(esp, 0x2AEu); /* 0x4702E95B: push 0x2ae */
   2145     PUSH32(esp, 0x47106580u); /* 0x4702E960: push 0x47106580 */
   2146     ecx = esi; /* 0x4702E965: mov ecx, esi */
   2147     RECOMP_ICALL(0x4703A340u); /* 0x4702E967: call 0x4703a340 */ /* not lifted */
   2148     RECOMP_FLAGS_IN();
   2149     PUSH32(esp, 0x4710661Cu); /* 0x4702E96C: push 0x4710661c */
   2150     PUSH32(esp, 0x47106614u); /* 0x4702E971: push 0x47106614 */
   2151     PUSH32(esp, 0x80u); /* 0x4702E976: push 0x80 */
   2152     PUSH32(esp, esi); /* 0x4702E97B: push esi */
   2153     RECOMP_ICALL(0x47039830u); /* 0x4702E97C: call 0x47039830 */ /* not lifted */
   2154     RECOMP_FLAGS_IN();
   2155     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2156     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2157     esp = esp + 0x10u; /* 0x4702E981: add esp, 0x10 */
   2158     _flag_k = FK_ADD;
   2159     MEM32(ebp + 0x258) = 4; /* 0x4702E984: mov dword ptr [ebp + 0x258], 4 */
   2160     goto L_4702EB03; /* 0x4702E98E: jmp 0x4702eb03 */
   2161 L_4702E993:
   2162     ecx = MEM32(ebp + 0x260); /* 0x4702E993: mov ecx, dword ptr [ebp + 0x260] */
   2163     eax = MEM32(ebp + 0x240); /* 0x4702E999: mov eax, dword ptr [ebp + 0x240] */
   2164     PUSH32(esp, ecx); /* 0x4702E99F: push ecx */
   2165     PUSH32(esp, 0x124u); /* 0x4702E9A0: push 0x124 */
   2166     PUSH32(esp, 0x48000000u); /* 0x4702E9A5: push 0x48000000 */
   2167     PUSH32(esp, ebx); /* 0x4702E9AA: push ebx */
   2168     MEM32(ebp + 0x250) = eax; /* 0x4702E9AB: mov dword ptr [ebp + 0x250], eax */
   2169     MEM32(ebp) = ebx; /* 0x4702E9B1: mov dword ptr [ebp], ebx */
   2170     RECOMP_ICALL(0x470571E0u); /* 0x4702E9B4: call 0x470571e0 */ /* not lifted */
   2171     RECOMP_FLAGS_IN();
   2172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2173     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2174     esp = esp + 0x10u; /* 0x4702E9B9: add esp, 0x10 */
   2175     _flag_k = FK_ADD;
   2176     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702E9BC: cmp eax, -1 */
   2177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2179     _flag_k = FK_CMP;
   2180     MEM32(ebp + 0x228) = eax; /* 0x4702E9BF: mov dword ptr [ebp + 0x228], eax */
   2181     if (CMP_NE(_flag_a, _flag_b)) goto L_4702EA37; /* 0x4702E9C5: jne 0x4702ea37 */
   2182 L_4702E9C7:
   2183     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702E9C7: call dword ptr [0x470ac150] */
   2184     RECOMP_FLAGS_IN();
   2185     edi = eax; /* 0x4702E9CD: mov edi, eax */
   2186     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702E9CF: call dword ptr [0x470ac3c8] */
   2187     RECOMP_FLAGS_IN();
   2188     eax = MEM32(eax); /* 0x4702E9D5: mov eax, dword ptr [eax] */
   2189     /* test eax, eax */ /* 0x4702E9D7: test eax, eax */
   2190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2191     _cf = 0;
   2192     _flag_k = FK_TEST;
   2193     if (TEST_Z(_flag_a, _flag_b)) goto L_4702E9DD; /* 0x4702E9D9: je 0x4702e9dd */
   2194 L_4702E9DB:
   2195     edi = eax; /* 0x4702E9DB: mov edi, eax */
   2196 L_4702E9DD:
   2197     RECOMP_ICALL(0x47039020u); /* 0x4702E9DD: call 0x47039020 */ /* not lifted */
   2198     RECOMP_FLAGS_IN();
   2199     esi = eax; /* 0x4702E9E2: mov esi, eax */
   2200     ecx = esi; /* 0x4702E9E4: mov ecx, esi */
   2201     RECOMP_ICALL(0x4703B210u); /* 0x4702E9E6: call 0x4703b210 */ /* not lifted */
   2202     RECOMP_FLAGS_IN();
   2203     PUSH32(esp, eax); /* 0x4702E9EB: push eax */
   2204     ecx = esi; /* 0x4702E9EC: mov ecx, esi */
   2205     RECOMP_ICALL(0x4703B240u); /* 0x4702E9EE: call 0x4703b240 */ /* not lifted */
   2206     RECOMP_FLAGS_IN();
   2207     PUSH32(esp, eax); /* 0x4702E9F3: push eax */
   2208     ecx = esi; /* 0x4702E9F4: mov ecx, esi */
   2209     RECOMP_ICALL(0x4703B080u); /* 0x4702E9F6: call 0x4703b080 */ /* not lifted */
   2210     RECOMP_FLAGS_IN();
   2211     PUSH32(esp, eax); /* 0x4702E9FB: push eax */
   2212     PUSH32(esp, edi); /* 0x4702E9FC: push edi */
   2213     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702E9FD: push -1 */
   2214     PUSH32(esp, 0x2AEu); /* 0x4702E9FF: push 0x2ae */
   2215     PUSH32(esp, 0x47106580u); /* 0x4702EA04: push 0x47106580 */
   2216     ecx = esi; /* 0x4702EA09: mov ecx, esi */
   2217     RECOMP_ICALL(0x4703A340u); /* 0x4702EA0B: call 0x4703a340 */ /* not lifted */
   2218     RECOMP_FLAGS_IN();
   2219     PUSH32(esp, 0x471065F0u); /* 0x4702EA10: push 0x471065f0 */
   2220     PUSH32(esp, 0x47106614u); /* 0x4702EA15: push 0x47106614 */
   2221     PUSH32(esp, 0x80u); /* 0x4702EA1A: push 0x80 */
   2222     PUSH32(esp, esi); /* 0x4702EA1F: push esi */
   2223     RECOMP_ICALL(0x47039830u); /* 0x4702EA20: call 0x47039830 */ /* not lifted */
   2224     RECOMP_FLAGS_IN();
   2225     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2226     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2227     esp = esp + 0x10u; /* 0x4702EA25: add esp, 0x10 */
   2228     _flag_k = FK_ADD;
   2229     MEM32(ebp + 0x258) = 2; /* 0x4702EA28: mov dword ptr [ebp + 0x258], 2 */
   2230     goto L_4702EB03; /* 0x4702EA32: jmp 0x4702eb03 */
   2231 L_4702EA37:
   2232     ecx = MEM32(esp + 0x30); /* 0x4702EA37: mov ecx, dword ptr [esp + 0x30] */
   2233     /* test ecx, ecx */ /* 0x4702EA3B: test ecx, ecx */
   2234     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2235     _cf = 0;
   2236     _flag_k = FK_TEST;
   2237     if (TEST_Z(_flag_a, _flag_b)) goto L_4702EAFD; /* 0x4702EA3D: je 0x4702eafd */
   2238 L_4702EA43:
   2239     ecx = MEM32(ebp + 0x260); /* 0x4702EA43: mov ecx, dword ptr [ebp + 0x260] */
   2240     PUSH32(esp, ecx); /* 0x4702EA49: push ecx */
   2241     PUSH32(esp, 0); /* 0x4702EA4A: push 0 */
   2242     PUSH32(esp, 0); /* 0x4702EA4C: push 0 */
   2243     PUSH32(esp, edi); /* 0x4702EA4E: push edi */
   2244     PUSH32(esp, 2); /* 0x4702EA4F: push 2 */
   2245     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702EA51: push -1 */
   2246     PUSH32(esp, eax); /* 0x4702EA53: push eax */
   2247     ecx = ebp + 0x10C; /* 0x4702EA54: lea ecx, [ebp + 0x10c] */
   2248     RECOMP_ICALL(0x470417B0u); /* 0x4702EA5A: call 0x470417b0 */ /* not lifted */
   2249     RECOMP_FLAGS_IN();
   2250     /* test eax, eax */ /* 0x4702EA5F: test eax, eax */
   2251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2252     _cf = 0;
   2253     _flag_k = FK_TEST;
   2254     if (TEST_Z(_flag_a, _flag_b)) goto L_4702EAFD; /* 0x4702EA61: je 0x4702eafd */
   2255 L_4702EA67:
   2256     ebx = MEM32(0x470AC150); /* 0x4702EA67: mov ebx, dword ptr [0x470ac150] */
   2257     RECOMP_ICALL(ebx); /* 0x4702EA6D: call ebx */
   2258     RECOMP_FLAGS_IN();
   2259     edi = eax; /* 0x4702EA6F: mov edi, eax */
   2260     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702EA71: call dword ptr [0x470ac3c8] */
   2261     RECOMP_FLAGS_IN();
   2262     eax = MEM32(eax); /* 0x4702EA77: mov eax, dword ptr [eax] */
   2263     /* test eax, eax */ /* 0x4702EA79: test eax, eax */
   2264     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2265     _cf = 0;
   2266     _flag_k = FK_TEST;
   2267     if (TEST_Z(_flag_a, _flag_b)) goto L_4702EA7F; /* 0x4702EA7B: je 0x4702ea7f */
   2268 L_4702EA7D:
   2269     edi = eax; /* 0x4702EA7D: mov edi, eax */
   2270 L_4702EA7F:
   2271     RECOMP_ICALL(0x47039020u); /* 0x4702EA7F: call 0x47039020 */ /* not lifted */
   2272     RECOMP_FLAGS_IN();
   2273     esi = eax; /* 0x4702EA84: mov esi, eax */
   2274     ecx = esi; /* 0x4702EA86: mov ecx, esi */
   2275     RECOMP_ICALL(0x4703B210u); /* 0x4702EA88: call 0x4703b210 */ /* not lifted */
   2276     RECOMP_FLAGS_IN();
   2277     PUSH32(esp, eax); /* 0x4702EA8D: push eax */
   2278     ecx = esi; /* 0x4702EA8E: mov ecx, esi */
   2279     RECOMP_ICALL(0x4703B240u); /* 0x4702EA90: call 0x4703b240 */ /* not lifted */
   2280     RECOMP_FLAGS_IN();
   2281     PUSH32(esp, eax); /* 0x4702EA95: push eax */
   2282     ecx = esi; /* 0x4702EA96: mov ecx, esi */
   2283     RECOMP_ICALL(0x4703B080u); /* 0x4702EA98: call 0x4703b080 */ /* not lifted */
   2284     RECOMP_FLAGS_IN();
   2285     PUSH32(esp, eax); /* 0x4702EA9D: push eax */
   2286     PUSH32(esp, edi); /* 0x4702EA9E: push edi */
   2287     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702EA9F: push -1 */
   2288     PUSH32(esp, 0x2AEu); /* 0x4702EAA1: push 0x2ae */
   2289     PUSH32(esp, 0x47106580u); /* 0x4702EAA6: push 0x47106580 */
   2290     ecx = esi; /* 0x4702EAAB: mov ecx, esi */
   2291     RECOMP_ICALL(0x4703A340u); /* 0x4702EAAD: call 0x4703a340 */ /* not lifted */
   2292     RECOMP_FLAGS_IN();
   2293     PUSH32(esp, 0x471065D0u); /* 0x4702EAB2: push 0x471065d0 */
   2294     PUSH32(esp, 0x47106614u); /* 0x4702EAB7: push 0x47106614 */
   2295     PUSH32(esp, 0x80u); /* 0x4702EABC: push 0x80 */
   2296     PUSH32(esp, esi); /* 0x4702EAC1: push esi */
   2297     RECOMP_ICALL(0x47039830u); /* 0x4702EAC2: call 0x47039830 */ /* not lifted */
   2298     RECOMP_FLAGS_IN();
   2299     eax = MEM32(ebp + 0x228); /* 0x4702EAC7: mov eax, dword ptr [ebp + 0x228] */
   2300     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2301     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2302     esp = esp + 0x10u; /* 0x4702EACD: add esp, 0x10 */
   2303     _flag_k = FK_ADD;
   2304     PUSH32(esp, eax); /* 0x4702EAD0: push eax */
   2305     MEM32(ebp + 0x258) = 5; /* 0x4702EAD1: mov dword ptr [ebp + 0x258], 5 */
   2306     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x4702EADB: call dword ptr [0x470ac198] */
   2307     RECOMP_FLAGS_IN();
   2308     /* test eax, eax */ /* 0x4702EAE1: test eax, eax */
   2309     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2310     _cf = 0;
   2311     _flag_k = FK_TEST;
   2312     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702EAF1; /* 0x4702EAE3: jne 0x4702eaf1 */
   2313 L_4702EAE5:
   2314     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702EAE5: call dword ptr [0x470ac3c8] */
   2315     RECOMP_FLAGS_IN();
   2316     esi = eax; /* 0x4702EAEB: mov esi, eax */
   2317     RECOMP_ICALL(ebx); /* 0x4702EAED: call ebx */
   2318     RECOMP_FLAGS_IN();
   2319     MEM32(esi) = eax; /* 0x4702EAEF: mov dword ptr [esi], eax */
   2320 L_4702EAF1:
   2321     MEM32(ebp + 0x228) = 0xFFFFFFFFu; /* 0x4702EAF1: mov dword ptr [ebp + 0x228], 0xffffffff */
   2322     goto L_4702EB03; /* 0x4702EAFB: jmp 0x4702eb03 */
   2323 L_4702EAFD:
   2324     MEM32(ebp + 0x254) = edi; /* 0x4702EAFD: mov dword ptr [ebp + 0x254], edi */
   2325 L_4702EB03:
   2326     ecx = MEM32(esp + 0x14); /* 0x4702EB03: mov ecx, dword ptr [esp + 0x14] */
   2327     edi = POP32_VAL(esp); /* 0x4702EB07: pop edi */
   2328     esi = POP32_VAL(esp); /* 0x4702EB08: pop esi */
   2329     eax = ebp; /* 0x4702EB09: mov eax, ebp */
   2330     ebp = POP32_VAL(esp); /* 0x4702EB0B: pop ebp */
   2331     ebx = POP32_VAL(esp); /* 0x4702EB0C: pop ebx */
   2332     MEM32(FS_BASE + (0)) = ecx; /* 0x4702EB0D: mov dword ptr fs:[0], ecx */
   2333     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2335     esp = esp + 0x10u; /* 0x4702EB14: add esp, 0x10 */
   2336     _flag_k = FK_ADD;
   2337     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4702EB17: ret 0x10 */
   2338     RECOMP_REGS_OUT();
   2339 }
   2340 
   2341 void sub_4702EB03(void) {
   2342     int _fpu_cmp = 0;
   2343     uint32_t _cf = 0;
   2344     int _df = 1;
   2345     uint32_t _flag_k = FK_NONE;
   2346     uint32_t _flag_a = 0, _flag_b = 0;
   2347     uint32_t _itail_tgt = 0;
   2348     RECOMP_REGS_LOCALS
   2349     RECOMP_ENTER(0x4702EB03u);
   2350 
   2351 L_4702EB03:
   2352     ecx = MEM32(esp + 0x14); /* 0x4702EB03: mov ecx, dword ptr [esp + 0x14] */
   2353     edi = POP32_VAL(esp); /* 0x4702EB07: pop edi */
   2354     esi = POP32_VAL(esp); /* 0x4702EB08: pop esi */
   2355     eax = ebp; /* 0x4702EB09: mov eax, ebp */
   2356     ebp = POP32_VAL(esp); /* 0x4702EB0B: pop ebp */
   2357     ebx = POP32_VAL(esp); /* 0x4702EB0C: pop ebx */
   2358     MEM32(FS_BASE + (0)) = ecx; /* 0x4702EB0D: mov dword ptr fs:[0], ecx */
   2359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2361     esp = esp + 0x10u; /* 0x4702EB14: add esp, 0x10 */
   2362     _flag_k = FK_ADD;
   2363     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4702EB17: ret 0x10 */
   2364     RECOMP_REGS_OUT();
   2365 }
   2366 
   2367 void sub_4702EB20(void) {
   2368     int _fpu_cmp = 0;
   2369     uint32_t _cf = 0;
   2370     int _df = 1;
   2371     uint32_t _flag_k = FK_NONE;
   2372     uint32_t _flag_a = 0, _flag_b = 0;
   2373     uint32_t _itail_tgt = 0;
   2374     RECOMP_REGS_LOCALS
   2375     RECOMP_ENTER(0x4702EB20u);
   2376 
   2377 L_4702EB20:
   2378     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702EB20: push -1 */
   2379     PUSH32(esp, 0x470A555Cu); /* 0x4702EB22: push 0x470a555c */
   2380     eax = MEM32(FS_BASE + (0)); /* 0x4702EB27: mov eax, dword ptr fs:[0] */
   2381     PUSH32(esp, eax); /* 0x4702EB2D: push eax */
   2382     MEM32(FS_BASE + (0)) = esp; /* 0x4702EB2E: mov dword ptr fs:[0], esp */
   2383     PUSH32(esp, ecx); /* 0x4702EB35: push ecx */
   2384     PUSH32(esp, ebx); /* 0x4702EB36: push ebx */
   2385     PUSH32(esp, ebp); /* 0x4702EB37: push ebp */
   2386     ebp = ecx; /* 0x4702EB38: mov ebp, ecx */
   2387     PUSH32(esp, esi); /* 0x4702EB3A: push esi */
   2388     PUSH32(esp, edi); /* 0x4702EB3B: push edi */
   2389     ecx = ebp + 0x10C; /* 0x4702EB3C: lea ecx, [ebp + 0x10c] */
   2390     MEM32(esp + 0x10) = ebp; /* 0x4702EB42: mov dword ptr [esp + 0x10], ebp */
   2391     RECOMP_ICALL(0x47041C70u); /* 0x4702EB46: call 0x47041c70 */ /* not lifted */
   2392     RECOMP_FLAGS_IN();
   2393     eax = MEM32(esp + 0x30); /* 0x4702EB4B: mov eax, dword ptr [esp + 0x30] */
   2394     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2395     esi = 0; /* 0x4702EB4F: xor esi, esi */
   2396     _cf = 0;
   2397     _flag_k = FK_TEST;
   2398     PUSH32(esp, esi); /* 0x4702EB51: push esi */
   2399     PUSH32(esp, esi); /* 0x4702EB52: push esi */
   2400     ecx = ebp + 0x264; /* 0x4702EB53: lea ecx, [ebp + 0x264] */
   2401     MEM32(esp + 0x24) = esi; /* 0x4702EB59: mov dword ptr [esp + 0x24], esi */
   2402     MEM32(ebp + 0x25C) = esi; /* 0x4702EB5D: mov dword ptr [ebp + 0x25c], esi */
   2403     MEM32(ebp + 0x260) = eax; /* 0x4702EB63: mov dword ptr [ebp + 0x260], eax */
   2404     RECOMP_ICALL(0x47087E70u); /* 0x4702EB69: call 0x47087e70 */ /* not lifted */
   2405     RECOMP_FLAGS_IN();
   2406     ecx = MEM32(esp + 0x2C); /* 0x4702EB6E: mov ecx, dword ptr [esp + 0x2c] */
   2407     edx = MEM32(esp + 0x28); /* 0x4702EB72: mov edx, dword ptr [esp + 0x28] */
   2408     MEM32(ebp + 0x30C) = ecx; /* 0x4702EB76: mov dword ptr [ebp + 0x30c], ecx */
   2409     MEM32(ebp + 0x258) = esi; /* 0x4702EB7C: mov dword ptr [ebp + 0x258], esi */
   2410     MEM32(ebp) = esi; /* 0x4702EB82: mov dword ptr [ebp], esi */
   2411     ebx = ebp + 0x4; /* 0x4702EB85: lea ebx, [ebp + 4] */
   2412     MEM8(ebx) = (uint8_t)(0); /* 0x4702EB88: mov byte ptr [ebx], 0 */
   2413     MEM32(ebp + 0x228) = 0xFFFFFFFFu; /* 0x4702EB8B: mov dword ptr [ebp + 0x228], 0xffffffff */
   2414     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2415     eax = 0; /* 0x4702EB95: xor eax, eax */
   2416     _cf = 0;
   2417     _flag_k = FK_TEST;
   2418     ecx = 9; /* 0x4702EB97: mov ecx, 9 */
   2419     edi = ebp + 0x22C; /* 0x4702EB9C: lea edi, [ebp + 0x22c] */
   2420     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702EBA2: 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; }
   2421     edi = MEM32(esp + 0x24); /* 0x4702EBA4: mov edi, dword ptr [esp + 0x24] */
   2422     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2423     ecx = ecx | 0xFFFFFFFFu; /* 0x4702EBA8: or ecx, 0xffffffff */
   2424     _cf = 0;
   2425     _flag_k = FK_TEST;
   2426     MEM32(ebp + 0x250) = edx; /* 0x4702EBAB: mov dword ptr [ebp + 0x250], edx */
   2427     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; } /* 0x4702EBB1: repne scasb al, byte ptr es:[edi] */
   2428     ecx = ~ecx; /* 0x4702EBB3: not ecx */
   2429     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   2430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2431     edi = edi - ecx; /* 0x4702EBB5: sub edi, ecx */
   2432     _flag_k = FK_CMP;
   2433     eax = ecx; /* 0x4702EBB7: mov eax, ecx */
   2434     esi = edi; /* 0x4702EBB9: mov esi, edi */
   2435     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x4702EBBB: shr ecx, 2 */
   2436     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2437     ecx = ecx >> 2u; /* 0x4702EBBB: shr ecx, 2 */
   2438     edi = ebx; /* 0x4702EBBE: mov edi, ebx */
   2439     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702EBC0: 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; }
   2440     ecx = eax; /* 0x4702EBC2: mov ecx, eax */
   2441     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2442     ecx = ecx & 3; /* 0x4702EBC4: and ecx, 3 */
   2443     _cf = 0;
   2444     _flag_k = FK_TEST;
   2445     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4702EBC7: 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; }
   2446     esi = MEM32(0x470AC220); /* 0x4702EBC9: mov esi, dword ptr [0x470ac220] */
   2447     PUSH32(esp, 6); /* 0x4702EBCF: push 6 */
   2448     edi = 2; /* 0x4702EBD1: mov edi, 2 */
   2449     PUSH32(esp, ebx); /* 0x4702EBD6: push ebx */
   2450     MEM8(esp + 0x24) = (uint8_t)(1); /* 0x4702EBD7: mov byte ptr [esp + 0x24], 1 */
   2451     MEM32(ebp + 0x254) = edi; /* 0x4702EBDC: mov dword ptr [ebp + 0x254], edi */
   2452     RECOMP_ICALL(esi); /* 0x4702EBE2: call esi */
   2453     RECOMP_FLAGS_IN();
   2454     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2456     esp = esp + 8; /* 0x4702EBE4: add esp, 8 */
   2457     _flag_k = FK_ADD;
   2458     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EBE7: cmp eax, -1 */
   2459     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2461     _flag_k = FK_CMP;
   2462     if (CMP_NE(_flag_a, _flag_b)) goto L_4702EC69; /* 0x4702EBEA: jne 0x4702ec69 */
   2463 L_4702EBEC:
   2464     PUSH32(esp, 0); /* 0x4702EBEC: push 0 */
   2465     PUSH32(esp, ebx); /* 0x4702EBEE: push ebx */
   2466     RECOMP_ICALL(esi); /* 0x4702EBEF: call esi */
   2467     RECOMP_FLAGS_IN();
   2468     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2469     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2470     esp = esp + 8; /* 0x4702EBF1: add esp, 8 */
   2471     _flag_k = FK_ADD;
   2472     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EBF4: cmp eax, -1 */
   2473     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2475     _flag_k = FK_CMP;
   2476     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702EC69; /* 0x4702EBF7: je 0x4702ec69 */
   2477 L_4702EBF9:
   2478     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702EBF9: call dword ptr [0x470ac150] */
   2479     RECOMP_FLAGS_IN();
   2480     edi = eax; /* 0x4702EBFF: mov edi, eax */
   2481     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702EC01: call dword ptr [0x470ac3c8] */
   2482     RECOMP_FLAGS_IN();
   2483     eax = MEM32(eax); /* 0x4702EC07: mov eax, dword ptr [eax] */
   2484     /* test eax, eax */ /* 0x4702EC09: test eax, eax */
   2485     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2486     _cf = 0;
   2487     _flag_k = FK_TEST;
   2488     if (TEST_Z(_flag_a, _flag_b)) goto L_4702EC0F; /* 0x4702EC0B: je 0x4702ec0f */
   2489 L_4702EC0D:
   2490     edi = eax; /* 0x4702EC0D: mov edi, eax */
   2491 L_4702EC0F:
   2492     RECOMP_ICALL(0x47039020u); /* 0x4702EC0F: call 0x47039020 */ /* not lifted */
   2493     RECOMP_FLAGS_IN();
   2494     esi = eax; /* 0x4702EC14: mov esi, eax */
   2495     ecx = esi; /* 0x4702EC16: mov ecx, esi */
   2496     RECOMP_ICALL(0x4703B210u); /* 0x4702EC18: call 0x4703b210 */ /* not lifted */
   2497     RECOMP_FLAGS_IN();
   2498     PUSH32(esp, eax); /* 0x4702EC1D: push eax */
   2499     ecx = esi; /* 0x4702EC1E: mov ecx, esi */
   2500     RECOMP_ICALL(0x4703B240u); /* 0x4702EC20: call 0x4703b240 */ /* not lifted */
   2501     RECOMP_FLAGS_IN();
   2502     PUSH32(esp, eax); /* 0x4702EC25: push eax */
   2503     ecx = esi; /* 0x4702EC26: mov ecx, esi */
   2504     RECOMP_ICALL(0x4703B080u); /* 0x4702EC28: call 0x4703b080 */ /* not lifted */
   2505     RECOMP_FLAGS_IN();
   2506     PUSH32(esp, eax); /* 0x4702EC2D: push eax */
   2507     PUSH32(esp, edi); /* 0x4702EC2E: push edi */
   2508     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702EC2F: push -1 */
   2509     PUSH32(esp, 0x2AEu); /* 0x4702EC31: push 0x2ae */
   2510     PUSH32(esp, 0x47106580u); /* 0x4702EC36: push 0x47106580 */
   2511     ecx = esi; /* 0x4702EC3B: mov ecx, esi */
   2512     RECOMP_ICALL(0x4703A340u); /* 0x4702EC3D: call 0x4703a340 */ /* not lifted */
   2513     RECOMP_FLAGS_IN();
   2514     PUSH32(esp, 0x4710661Cu); /* 0x4702EC42: push 0x4710661c */
   2515     PUSH32(esp, 0x47106614u); /* 0x4702EC47: push 0x47106614 */
   2516     PUSH32(esp, 0x80u); /* 0x4702EC4C: push 0x80 */
   2517     PUSH32(esp, esi); /* 0x4702EC51: push esi */
   2518     RECOMP_ICALL(0x47039830u); /* 0x4702EC52: call 0x47039830 */ /* not lifted */
   2519     RECOMP_FLAGS_IN();
   2520     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2521     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2522     esp = esp + 0x10u; /* 0x4702EC57: add esp, 0x10 */
   2523     _flag_k = FK_ADD;
   2524     MEM32(ebp + 0x258) = 1; /* 0x4702EC5A: mov dword ptr [ebp + 0x258], 1 */
   2525     goto L_4702EE5E; /* 0x4702EC64: jmp 0x4702ee5e */
   2526 L_4702EC69:
   2527     ecx = MEM32(ebp + 0x260); /* 0x4702EC69: mov ecx, dword ptr [ebp + 0x260] */
   2528     PUSH32(esp, ecx); /* 0x4702EC6F: push ecx */
   2529     PUSH32(esp, 0x1B6u); /* 0x4702EC70: push 0x1b6 */
   2530     PUSH32(esp, 0x48000302u); /* 0x4702EC75: push 0x48000302 */
   2531     PUSH32(esp, ebx); /* 0x4702EC7A: push ebx */
   2532     MEM32(ebp) = ebx; /* 0x4702EC7B: mov dword ptr [ebp], ebx */
   2533     RECOMP_ICALL(0x470571E0u); /* 0x4702EC7E: call 0x470571e0 */ /* not lifted */
   2534     RECOMP_FLAGS_IN();
   2535     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2536     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2537     esp = esp + 0x10u; /* 0x4702EC83: add esp, 0x10 */
   2538     _flag_k = FK_ADD;
   2539     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EC86: cmp eax, -1 */
   2540     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2542     _flag_k = FK_CMP;
   2543     MEM32(ebp + 0x228) = eax; /* 0x4702EC89: mov dword ptr [ebp + 0x228], eax */
   2544     if (CMP_NE(_flag_a, _flag_b)) goto L_4702ECFD; /* 0x4702EC8F: jne 0x4702ecfd */
   2545 L_4702EC91:
   2546     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702EC91: call dword ptr [0x470ac150] */
   2547     RECOMP_FLAGS_IN();
   2548     ebx = eax; /* 0x4702EC97: mov ebx, eax */
   2549     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702EC99: call dword ptr [0x470ac3c8] */
   2550     RECOMP_FLAGS_IN();
   2551     eax = MEM32(eax); /* 0x4702EC9F: mov eax, dword ptr [eax] */
   2552     /* test eax, eax */ /* 0x4702ECA1: test eax, eax */
   2553     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2554     _cf = 0;
   2555     _flag_k = FK_TEST;
   2556     if (TEST_Z(_flag_a, _flag_b)) goto L_4702ECA7; /* 0x4702ECA3: je 0x4702eca7 */
   2557 L_4702ECA5:
   2558     ebx = eax; /* 0x4702ECA5: mov ebx, eax */
   2559 L_4702ECA7:
   2560     RECOMP_ICALL(0x47039020u); /* 0x4702ECA7: call 0x47039020 */ /* not lifted */
   2561     RECOMP_FLAGS_IN();
   2562     esi = eax; /* 0x4702ECAC: mov esi, eax */
   2563     ecx = esi; /* 0x4702ECAE: mov ecx, esi */
   2564     RECOMP_ICALL(0x4703B210u); /* 0x4702ECB0: call 0x4703b210 */ /* not lifted */
   2565     RECOMP_FLAGS_IN();
   2566     PUSH32(esp, eax); /* 0x4702ECB5: push eax */
   2567     ecx = esi; /* 0x4702ECB6: mov ecx, esi */
   2568     RECOMP_ICALL(0x4703B240u); /* 0x4702ECB8: call 0x4703b240 */ /* not lifted */
   2569     RECOMP_FLAGS_IN();
   2570     PUSH32(esp, eax); /* 0x4702ECBD: push eax */
   2571     ecx = esi; /* 0x4702ECBE: mov ecx, esi */
   2572     RECOMP_ICALL(0x4703B080u); /* 0x4702ECC0: call 0x4703b080 */ /* not lifted */
   2573     RECOMP_FLAGS_IN();
   2574     PUSH32(esp, eax); /* 0x4702ECC5: push eax */
   2575     PUSH32(esp, ebx); /* 0x4702ECC6: push ebx */
   2576     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702ECC7: push -1 */
   2577     PUSH32(esp, 0x2AEu); /* 0x4702ECC9: push 0x2ae */
   2578     PUSH32(esp, 0x47106580u); /* 0x4702ECCE: push 0x47106580 */
   2579     ecx = esi; /* 0x4702ECD3: mov ecx, esi */
   2580     RECOMP_ICALL(0x4703A340u); /* 0x4702ECD5: call 0x4703a340 */ /* not lifted */
   2581     RECOMP_FLAGS_IN();
   2582     PUSH32(esp, 0x47106680u); /* 0x4702ECDA: push 0x47106680 */
   2583     PUSH32(esp, 0x47106614u); /* 0x4702ECDF: push 0x47106614 */
   2584     PUSH32(esp, 0x80u); /* 0x4702ECE4: push 0x80 */
   2585     PUSH32(esp, esi); /* 0x4702ECE9: push esi */
   2586     RECOMP_ICALL(0x47039830u); /* 0x4702ECEA: call 0x47039830 */ /* not lifted */
   2587     RECOMP_FLAGS_IN();
   2588     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2589     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2590     esp = esp + 0x10u; /* 0x4702ECEF: add esp, 0x10 */
   2591     _flag_k = FK_ADD;
   2592     MEM32(ebp + 0x258) = edi; /* 0x4702ECF2: mov dword ptr [ebp + 0x258], edi */
   2593     goto L_4702EE5E; /* 0x4702ECF8: jmp 0x4702ee5e */
   2594 L_4702ECFD:
   2595     edx = MEM32(ebp + 0x250); /* 0x4702ECFD: mov edx, dword ptr [ebp + 0x250] */
   2596     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2597     edx = edx - 1; /* 0x4702ED03: dec edx */
   2598     _flag_k = FK_DEC;
   2599     PUSH32(esp, edx); /* 0x4702ED04: push edx */
   2600     PUSH32(esp, 1); /* 0x4702ED05: push 1 */
   2601     PUSH32(esp, 0x4710DE90u); /* 0x4702ED07: push 0x4710de90 */
   2602     PUSH32(esp, eax); /* 0x4702ED0C: push eax */
   2603     RECOMP_ICALL(0x47057140u); /* 0x4702ED0D: call 0x47057140 */ /* not lifted */
   2604     RECOMP_FLAGS_IN();
   2605     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2606     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2607     esp = esp + 0x10u; /* 0x4702ED12: add esp, 0x10 */
   2608     _flag_k = FK_ADD;
   2609     /* cmp eax, 1 */ /* 0x4702ED15: cmp eax, 1 */
   2610     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2612     _flag_k = FK_CMP;
   2613     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702EDA5; /* 0x4702ED18: je 0x4702eda5 */
   2614 L_4702ED1E:
   2615     ebx = MEM32(0x470AC150); /* 0x4702ED1E: mov ebx, dword ptr [0x470ac150] */
   2616     RECOMP_ICALL(ebx); /* 0x4702ED24: call ebx */
   2617     RECOMP_FLAGS_IN();
   2618     edi = eax; /* 0x4702ED26: mov edi, eax */
   2619     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702ED28: call dword ptr [0x470ac3c8] */
   2620     RECOMP_FLAGS_IN();
   2621     eax = MEM32(eax); /* 0x4702ED2E: mov eax, dword ptr [eax] */
   2622     /* test eax, eax */ /* 0x4702ED30: test eax, eax */
   2623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2624     _cf = 0;
   2625     _flag_k = FK_TEST;
   2626     if (TEST_Z(_flag_a, _flag_b)) goto L_4702ED36; /* 0x4702ED32: je 0x4702ed36 */
   2627 L_4702ED34:
   2628     edi = eax; /* 0x4702ED34: mov edi, eax */
   2629 L_4702ED36:
   2630     RECOMP_ICALL(0x47039020u); /* 0x4702ED36: call 0x47039020 */ /* not lifted */
   2631     RECOMP_FLAGS_IN();
   2632     esi = eax; /* 0x4702ED3B: mov esi, eax */
   2633     ecx = esi; /* 0x4702ED3D: mov ecx, esi */
   2634     RECOMP_ICALL(0x4703B210u); /* 0x4702ED3F: call 0x4703b210 */ /* not lifted */
   2635     RECOMP_FLAGS_IN();
   2636     PUSH32(esp, eax); /* 0x4702ED44: push eax */
   2637     ecx = esi; /* 0x4702ED45: mov ecx, esi */
   2638     RECOMP_ICALL(0x4703B240u); /* 0x4702ED47: call 0x4703b240 */ /* not lifted */
   2639     RECOMP_FLAGS_IN();
   2640     PUSH32(esp, eax); /* 0x4702ED4C: push eax */
   2641     ecx = esi; /* 0x4702ED4D: mov ecx, esi */
   2642     RECOMP_ICALL(0x4703B080u); /* 0x4702ED4F: call 0x4703b080 */ /* not lifted */
   2643     RECOMP_FLAGS_IN();
   2644     PUSH32(esp, eax); /* 0x4702ED54: push eax */
   2645     PUSH32(esp, edi); /* 0x4702ED55: push edi */
   2646     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702ED56: push -1 */
   2647     PUSH32(esp, 0x2AEu); /* 0x4702ED58: push 0x2ae */
   2648     PUSH32(esp, 0x47106580u); /* 0x4702ED5D: push 0x47106580 */
   2649     ecx = esi; /* 0x4702ED62: mov ecx, esi */
   2650     RECOMP_ICALL(0x4703A340u); /* 0x4702ED64: call 0x4703a340 */ /* not lifted */
   2651     RECOMP_FLAGS_IN();
   2652     PUSH32(esp, 0x47106658u); /* 0x4702ED69: push 0x47106658 */
   2653     PUSH32(esp, 0x47106614u); /* 0x4702ED6E: push 0x47106614 */
   2654     PUSH32(esp, 0x80u); /* 0x4702ED73: push 0x80 */
   2655     PUSH32(esp, esi); /* 0x4702ED78: push esi */
   2656     RECOMP_ICALL(0x47039830u); /* 0x4702ED79: call 0x47039830 */ /* not lifted */
   2657     RECOMP_FLAGS_IN();
   2658     eax = MEM32(ebp + 0x228); /* 0x4702ED7E: mov eax, dword ptr [ebp + 0x228] */
   2659     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2660     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2661     esp = esp + 0x10u; /* 0x4702ED84: add esp, 0x10 */
   2662     _flag_k = FK_ADD;
   2663     PUSH32(esp, eax); /* 0x4702ED87: push eax */
   2664     MEM32(ebp + 0x258) = 6; /* 0x4702ED88: mov dword ptr [ebp + 0x258], 6 */
   2665     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x4702ED92: call dword ptr [0x470ac198] */
   2666     RECOMP_FLAGS_IN();
   2667     /* test eax, eax */ /* 0x4702ED98: test eax, eax */
   2668     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2669     _cf = 0;
   2670     _flag_k = FK_TEST;
   2671     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702EE5E; /* 0x4702ED9A: jne 0x4702ee5e */
   2672 L_4702EDA0:
   2673     goto L_4702EE52; /* 0x4702EDA0: jmp 0x4702ee52 */
   2674 L_4702EDA5:
   2675     eax = MEM32(ebp + 0x260); /* 0x4702EDA5: mov eax, dword ptr [ebp + 0x260] */
   2676     ecx = MEM32(ebp + 0x250); /* 0x4702EDAB: mov ecx, dword ptr [ebp + 0x250] */
   2677     edx = MEM32(ebp + 0x228); /* 0x4702EDB1: mov edx, dword ptr [ebp + 0x228] */
   2678     PUSH32(esp, eax); /* 0x4702EDB7: push eax */
   2679     PUSH32(esp, 0); /* 0x4702EDB8: push 0 */
   2680     PUSH32(esp, 0); /* 0x4702EDBA: push 0 */
   2681     PUSH32(esp, edi); /* 0x4702EDBC: push edi */
   2682     PUSH32(esp, 4); /* 0x4702EDBD: push 4 */
   2683     PUSH32(esp, ecx); /* 0x4702EDBF: push ecx */
   2684     PUSH32(esp, edx); /* 0x4702EDC0: push edx */
   2685     ecx = ebp + 0x10C; /* 0x4702EDC1: lea ecx, [ebp + 0x10c] */
   2686     RECOMP_ICALL(0x470417B0u); /* 0x4702EDC7: call 0x470417b0 */ /* not lifted */
   2687     RECOMP_FLAGS_IN();
   2688     /* test eax, eax */ /* 0x4702EDCC: test eax, eax */
   2689     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2690     _cf = 0;
   2691     _flag_k = FK_TEST;
   2692     if (TEST_Z(_flag_a, _flag_b)) goto L_4702EE5E; /* 0x4702EDCE: je 0x4702ee5e */
   2693 L_4702EDD4:
   2694     ebx = MEM32(0x470AC150); /* 0x4702EDD4: mov ebx, dword ptr [0x470ac150] */
   2695     RECOMP_ICALL(ebx); /* 0x4702EDDA: call ebx */
   2696     RECOMP_FLAGS_IN();
   2697     edi = eax; /* 0x4702EDDC: mov edi, eax */
   2698     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702EDDE: call dword ptr [0x470ac3c8] */
   2699     RECOMP_FLAGS_IN();
   2700     eax = MEM32(eax); /* 0x4702EDE4: mov eax, dword ptr [eax] */
   2701     /* test eax, eax */ /* 0x4702EDE6: test eax, eax */
   2702     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2703     _cf = 0;
   2704     _flag_k = FK_TEST;
   2705     if (TEST_Z(_flag_a, _flag_b)) goto L_4702EDEC; /* 0x4702EDE8: je 0x4702edec */
   2706 L_4702EDEA:
   2707     edi = eax; /* 0x4702EDEA: mov edi, eax */
   2708 L_4702EDEC:
   2709     RECOMP_ICALL(0x47039020u); /* 0x4702EDEC: call 0x47039020 */ /* not lifted */
   2710     RECOMP_FLAGS_IN();
   2711     esi = eax; /* 0x4702EDF1: mov esi, eax */
   2712     ecx = esi; /* 0x4702EDF3: mov ecx, esi */
   2713     RECOMP_ICALL(0x4703B210u); /* 0x4702EDF5: call 0x4703b210 */ /* not lifted */
   2714     RECOMP_FLAGS_IN();
   2715     PUSH32(esp, eax); /* 0x4702EDFA: push eax */
   2716     ecx = esi; /* 0x4702EDFB: mov ecx, esi */
   2717     RECOMP_ICALL(0x4703B240u); /* 0x4702EDFD: call 0x4703b240 */ /* not lifted */
   2718     RECOMP_FLAGS_IN();
   2719     PUSH32(esp, eax); /* 0x4702EE02: push eax */
   2720     ecx = esi; /* 0x4702EE03: mov ecx, esi */
   2721     RECOMP_ICALL(0x4703B080u); /* 0x4702EE05: call 0x4703b080 */ /* not lifted */
   2722     RECOMP_FLAGS_IN();
   2723     PUSH32(esp, eax); /* 0x4702EE0A: push eax */
   2724     PUSH32(esp, edi); /* 0x4702EE0B: push edi */
   2725     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702EE0C: push -1 */
   2726     PUSH32(esp, 0x2AEu); /* 0x4702EE0E: push 0x2ae */
   2727     PUSH32(esp, 0x47106580u); /* 0x4702EE13: push 0x47106580 */
   2728     ecx = esi; /* 0x4702EE18: mov ecx, esi */
   2729     RECOMP_ICALL(0x4703A340u); /* 0x4702EE1A: call 0x4703a340 */ /* not lifted */
   2730     RECOMP_FLAGS_IN();
   2731     PUSH32(esp, 0x47106634u); /* 0x4702EE1F: push 0x47106634 */
   2732     PUSH32(esp, 0x47106614u); /* 0x4702EE24: push 0x47106614 */
   2733     PUSH32(esp, 0x80u); /* 0x4702EE29: push 0x80 */
   2734     PUSH32(esp, esi); /* 0x4702EE2E: push esi */
   2735     RECOMP_ICALL(0x47039830u); /* 0x4702EE2F: call 0x47039830 */ /* not lifted */
   2736     RECOMP_FLAGS_IN();
   2737     eax = MEM32(ebp + 0x228); /* 0x4702EE34: mov eax, dword ptr [ebp + 0x228] */
   2738     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2739     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2740     esp = esp + 0x10u; /* 0x4702EE3A: add esp, 0x10 */
   2741     _flag_k = FK_ADD;
   2742     PUSH32(esp, eax); /* 0x4702EE3D: push eax */
   2743     MEM32(ebp + 0x258) = 5; /* 0x4702EE3E: mov dword ptr [ebp + 0x258], 5 */
   2744     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x4702EE48: call dword ptr [0x470ac198] */
   2745     RECOMP_FLAGS_IN();
   2746     /* test eax, eax */ /* 0x4702EE4E: test eax, eax */
   2747     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2748     _cf = 0;
   2749     _flag_k = FK_TEST;
   2750     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702EE5E; /* 0x4702EE50: jne 0x4702ee5e */
   2751 L_4702EE52:
   2752     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702EE52: call dword ptr [0x470ac3c8] */
   2753     RECOMP_FLAGS_IN();
   2754     esi = eax; /* 0x4702EE58: mov esi, eax */
   2755     RECOMP_ICALL(ebx); /* 0x4702EE5A: call ebx */
   2756     RECOMP_FLAGS_IN();
   2757     MEM32(esi) = eax; /* 0x4702EE5C: mov dword ptr [esi], eax */
   2758 L_4702EE5E:
   2759     ecx = MEM32(esp + 0x14); /* 0x4702EE5E: mov ecx, dword ptr [esp + 0x14] */
   2760     edi = POP32_VAL(esp); /* 0x4702EE62: pop edi */
   2761     esi = POP32_VAL(esp); /* 0x4702EE63: pop esi */
   2762     eax = ebp; /* 0x4702EE64: mov eax, ebp */
   2763     ebp = POP32_VAL(esp); /* 0x4702EE66: pop ebp */
   2764     ebx = POP32_VAL(esp); /* 0x4702EE67: pop ebx */
   2765     MEM32(FS_BASE + (0)) = ecx; /* 0x4702EE68: mov dword ptr fs:[0], ecx */
   2766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2768     esp = esp + 0x10u; /* 0x4702EE6F: add esp, 0x10 */
   2769     _flag_k = FK_ADD;
   2770     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4702EE72: ret 0x10 */
   2771     RECOMP_REGS_OUT();
   2772 }
   2773 
   2774 void sub_4702EE52(void) {
   2775     int _fpu_cmp = 0;
   2776     uint32_t _cf = 0;
   2777     int _df = 1;
   2778     uint32_t _flag_k = FK_NONE;
   2779     uint32_t _flag_a = 0, _flag_b = 0;
   2780     uint32_t _itail_tgt = 0;
   2781     RECOMP_REGS_LOCALS
   2782     RECOMP_ENTER(0x4702EE52u);
   2783 
   2784 L_4702EE52:
   2785     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702EE52: call dword ptr [0x470ac3c8] */
   2786     RECOMP_FLAGS_IN();
   2787     esi = eax; /* 0x4702EE58: mov esi, eax */
   2788     RECOMP_ICALL(ebx); /* 0x4702EE5A: call ebx */
   2789     RECOMP_FLAGS_IN();
   2790     MEM32(esi) = eax; /* 0x4702EE5C: mov dword ptr [esi], eax */
   2791     ecx = MEM32(esp + 0x14); /* 0x4702EE5E: mov ecx, dword ptr [esp + 0x14] */
   2792     edi = POP32_VAL(esp); /* 0x4702EE62: pop edi */
   2793     esi = POP32_VAL(esp); /* 0x4702EE63: pop esi */
   2794     eax = ebp; /* 0x4702EE64: mov eax, ebp */
   2795     ebp = POP32_VAL(esp); /* 0x4702EE66: pop ebp */
   2796     ebx = POP32_VAL(esp); /* 0x4702EE67: pop ebx */
   2797     MEM32(FS_BASE + (0)) = ecx; /* 0x4702EE68: mov dword ptr fs:[0], ecx */
   2798     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2800     esp = esp + 0x10u; /* 0x4702EE6F: add esp, 0x10 */
   2801     _flag_k = FK_ADD;
   2802     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4702EE72: ret 0x10 */
   2803     RECOMP_REGS_OUT();
   2804 }
   2805 
   2806 void sub_4702EE5E(void) {
   2807     int _fpu_cmp = 0;
   2808     uint32_t _cf = 0;
   2809     int _df = 1;
   2810     uint32_t _flag_k = FK_NONE;
   2811     uint32_t _flag_a = 0, _flag_b = 0;
   2812     uint32_t _itail_tgt = 0;
   2813     RECOMP_REGS_LOCALS
   2814     RECOMP_ENTER(0x4702EE5Eu);
   2815 
   2816 L_4702EE5E:
   2817     ecx = MEM32(esp + 0x14); /* 0x4702EE5E: mov ecx, dword ptr [esp + 0x14] */
   2818     edi = POP32_VAL(esp); /* 0x4702EE62: pop edi */
   2819     esi = POP32_VAL(esp); /* 0x4702EE63: pop esi */
   2820     eax = ebp; /* 0x4702EE64: mov eax, ebp */
   2821     ebp = POP32_VAL(esp); /* 0x4702EE66: pop ebp */
   2822     ebx = POP32_VAL(esp); /* 0x4702EE67: pop ebx */
   2823     MEM32(FS_BASE + (0)) = ecx; /* 0x4702EE68: mov dword ptr fs:[0], ecx */
   2824     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2825     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2826     esp = esp + 0x10u; /* 0x4702EE6F: add esp, 0x10 */
   2827     _flag_k = FK_ADD;
   2828     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4702EE72: ret 0x10 */
   2829     RECOMP_REGS_OUT();
   2830 }
   2831 
   2832 void sub_4702EE80(void) {
   2833     int _fpu_cmp = 0;
   2834     uint32_t _cf = 0;
   2835     int _df = 1;
   2836     uint32_t _flag_k = FK_NONE;
   2837     uint32_t _flag_a = 0, _flag_b = 0;
   2838     uint32_t _itail_tgt = 0;
   2839     RECOMP_REGS_LOCALS
   2840     RECOMP_ENTER(0x4702EE80u);
   2841 
   2842 L_4702EE80:
   2843     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702EE80: push -1 */
   2844     PUSH32(esp, 0x470A557Eu); /* 0x4702EE82: push 0x470a557e */
   2845     eax = MEM32(FS_BASE + (0)); /* 0x4702EE87: mov eax, dword ptr fs:[0] */
   2846     PUSH32(esp, eax); /* 0x4702EE8D: push eax */
   2847     MEM32(FS_BASE + (0)) = esp; /* 0x4702EE8E: mov dword ptr fs:[0], esp */
   2848     PUSH32(esp, ecx); /* 0x4702EE95: push ecx */
   2849     PUSH32(esp, esi); /* 0x4702EE96: push esi */
   2850     esi = ecx; /* 0x4702EE97: mov esi, ecx */
   2851     MEM32(esp + 0x4) = esi; /* 0x4702EE99: mov dword ptr [esp + 4], esi */
   2852     eax = MEM32(esi + 0x258); /* 0x4702EE9D: mov eax, dword ptr [esi + 0x258] */
   2853     /* test eax, eax */ /* 0x4702EEA3: test eax, eax */
   2854     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2855     _cf = 0;
   2856     _flag_k = FK_TEST;
   2857     MEM32(esp + 0x10) = 0; /* 0x4702EEA5: mov dword ptr [esp + 0x10], 0 */
   2858     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702EF5C; /* 0x4702EEAD: jne 0x4702ef5c */
   2859 L_4702EEB3:
   2860     eax = MEM32(esi + 0x220); /* 0x4702EEB3: mov eax, dword ptr [esi + 0x220] */
   2861     /* cmp eax, MEM32(esi + 0x21C) */ /* 0x4702EEB9: cmp eax, dword ptr [esi + 0x21c] */
   2862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x21C));
   2863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2864     _flag_k = FK_CMP;
   2865     PUSH32(esp, ebx); /* 0x4702EEBF: push ebx */
   2866     ebx = MEM32(0x470AC198); /* 0x4702EEC0: mov ebx, dword ptr [0x470ac198] */
   2867     PUSH32(esp, ebp); /* 0x4702EEC6: push ebp */
   2868     ebp = MEM32(0x470AC3C8); /* 0x4702EEC7: mov ebp, dword ptr [0x470ac3c8] */
   2869     PUSH32(esp, edi); /* 0x4702EECD: push edi */
   2870     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702EEFA; /* 0x4702EECE: je 0x4702eefa */
   2871 L_4702EED0:
   2872     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EED0: cmp eax, -1 */
   2873     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2874     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2875     _flag_k = FK_CMP;
   2876     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702EEFA; /* 0x4702EED3: je 0x4702eefa */
   2877 L_4702EED5:
   2878     PUSH32(esp, eax); /* 0x4702EED5: push eax */
   2879     RECOMP_ICALL(ebx); /* 0x4702EED6: call ebx */
   2880     RECOMP_FLAGS_IN();
   2881     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2882     _cf = (eax) != 0;
   2883     eax = (uint32_t)(-(int32_t)eax); /* 0x4702EED8: neg eax */
   2884     _flag_k = FK_CMP;
   2885     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702EEDA: sbb eax, eax */
   2886       eax = _sc ? 0xFFFFFFFFu : 0;
   2887       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2888       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2889     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2890     _cf = (eax) != 0;
   2891     eax = (uint32_t)(-(int32_t)eax); /* 0x4702EEDC: neg eax */
   2892     _flag_k = FK_CMP;
   2893     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2894     eax = eax - 1; /* 0x4702EEDE: dec eax */
   2895     _flag_k = FK_DEC;
   2896     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EEDF: cmp eax, -1 */
   2897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2899     _flag_k = FK_CMP;
   2900     if (CMP_NE(_flag_a, _flag_b)) goto L_4702EEF0; /* 0x4702EEE2: jne 0x4702eef0 */
   2901 L_4702EEE4:
   2902     RECOMP_ICALL(ebp); /* 0x4702EEE4: call ebp */
   2903     RECOMP_FLAGS_IN();
   2904     edi = eax; /* 0x4702EEE6: mov edi, eax */
   2905     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702EEE8: call dword ptr [0x470ac150] */
   2906     RECOMP_FLAGS_IN();
   2907     MEM32(edi) = eax; /* 0x4702EEEE: mov dword ptr [edi], eax */
   2908 L_4702EEF0:
   2909     MEM32(esi + 0x220) = 0xFFFFFFFFu; /* 0x4702EEF0: mov dword ptr [esi + 0x220], 0xffffffff */
   2910 L_4702EEFA:
   2911     eax = MEM32(esi + 0x10C); /* 0x4702EEFA: mov eax, dword ptr [esi + 0x10c] */
   2912     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EF00: cmp eax, -1 */
   2913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2915     _flag_k = FK_CMP;
   2916     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702EF2E; /* 0x4702EF03: je 0x4702ef2e */
   2917 L_4702EF05:
   2918     PUSH32(esp, eax); /* 0x4702EF05: push eax */
   2919     RECOMP_ICALL(MEM32(0x470AC104)); /* 0x4702EF06: call dword ptr [0x470ac104] */
   2920     RECOMP_FLAGS_IN();
   2921     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2922     _cf = (eax) != 0;
   2923     eax = (uint32_t)(-(int32_t)eax); /* 0x4702EF0C: neg eax */
   2924     _flag_k = FK_CMP;
   2925     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702EF0E: sbb eax, eax */
   2926       eax = _sc ? 0xFFFFFFFFu : 0;
   2927       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2928       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2929     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2930     _cf = (eax) != 0;
   2931     eax = (uint32_t)(-(int32_t)eax); /* 0x4702EF10: neg eax */
   2932     _flag_k = FK_CMP;
   2933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2934     eax = eax - 1; /* 0x4702EF12: dec eax */
   2935     _flag_k = FK_DEC;
   2936     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EF13: cmp eax, -1 */
   2937     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2938     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2939     _flag_k = FK_CMP;
   2940     if (CMP_NE(_flag_a, _flag_b)) goto L_4702EF24; /* 0x4702EF16: jne 0x4702ef24 */
   2941 L_4702EF18:
   2942     RECOMP_ICALL(ebp); /* 0x4702EF18: call ebp */
   2943     RECOMP_FLAGS_IN();
   2944     edi = eax; /* 0x4702EF1A: mov edi, eax */
   2945     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702EF1C: call dword ptr [0x470ac150] */
   2946     RECOMP_FLAGS_IN();
   2947     MEM32(edi) = eax; /* 0x4702EF22: mov dword ptr [edi], eax */
   2948 L_4702EF24:
   2949     MEM32(esi + 0x10C) = 0xFFFFFFFFu; /* 0x4702EF24: mov dword ptr [esi + 0x10c], 0xffffffff */
   2950 L_4702EF2E:
   2951     eax = MEM32(esi + 0x228); /* 0x4702EF2E: mov eax, dword ptr [esi + 0x228] */
   2952     PUSH32(esp, eax); /* 0x4702EF34: push eax */
   2953     RECOMP_ICALL(ebx); /* 0x4702EF35: call ebx */
   2954     RECOMP_FLAGS_IN();
   2955     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2956     _cf = (eax) != 0;
   2957     eax = (uint32_t)(-(int32_t)eax); /* 0x4702EF37: neg eax */
   2958     _flag_k = FK_CMP;
   2959     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702EF39: sbb eax, eax */
   2960       eax = _sc ? 0xFFFFFFFFu : 0;
   2961       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2962       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2963     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2964     _cf = (eax) != 0;
   2965     eax = (uint32_t)(-(int32_t)eax); /* 0x4702EF3B: neg eax */
   2966     _flag_k = FK_CMP;
   2967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2968     eax = eax - 1; /* 0x4702EF3D: dec eax */
   2969     _flag_k = FK_DEC;
   2970     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EF3E: cmp eax, -1 */
   2971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2973     _flag_k = FK_CMP;
   2974     if (CMP_NE(_flag_a, _flag_b)) goto L_4702EF4F; /* 0x4702EF41: jne 0x4702ef4f */
   2975 L_4702EF43:
   2976     RECOMP_ICALL(ebp); /* 0x4702EF43: call ebp */
   2977     RECOMP_FLAGS_IN();
   2978     edi = eax; /* 0x4702EF45: mov edi, eax */
   2979     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702EF47: call dword ptr [0x470ac150] */
   2980     RECOMP_FLAGS_IN();
   2981     MEM32(edi) = eax; /* 0x4702EF4D: mov dword ptr [edi], eax */
   2982 L_4702EF4F:
   2983     edi = POP32_VAL(esp); /* 0x4702EF4F: pop edi */
   2984     ebp = POP32_VAL(esp); /* 0x4702EF50: pop ebp */
   2985     MEM32(esi + 0x228) = 0xFFFFFFFFu; /* 0x4702EF51: mov dword ptr [esi + 0x228], 0xffffffff */
   2986     ebx = POP32_VAL(esp); /* 0x4702EF5B: pop ebx */
   2987 L_4702EF5C:
   2988     ecx = esi + 0x264; /* 0x4702EF5C: lea ecx, [esi + 0x264] */
   2989     RECOMP_ICALL(0x47085D30u); /* 0x4702EF62: call 0x47085d30 */ /* not lifted */
   2990     RECOMP_FLAGS_IN();
   2991     ecx = esi + 0x10C; /* 0x4702EF67: lea ecx, [esi + 0x10c] */
   2992     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4702EF6D: mov dword ptr [esp + 0x10], 0xffffffff */
   2993     RECOMP_ICALL(0x47041710u); /* 0x4702EF75: call 0x47041710 */ /* not lifted */
   2994     RECOMP_FLAGS_IN();
   2995     ecx = MEM32(esp + 0x8); /* 0x4702EF7A: mov ecx, dword ptr [esp + 8] */
   2996     esi = POP32_VAL(esp); /* 0x4702EF7E: pop esi */
   2997     MEM32(FS_BASE + (0)) = ecx; /* 0x4702EF7F: mov dword ptr fs:[0], ecx */
   2998     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2999     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3000     esp = esp + 0x10u; /* 0x4702EF86: add esp, 0x10 */
   3001     _flag_k = FK_ADD;
   3002     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702EF89: ret  */
   3003     RECOMP_REGS_OUT();
   3004 }
   3005 
   3006 void sub_4702EF90(void) {
   3007     int _fpu_cmp = 0;
   3008     uint32_t _cf = 0;
   3009     int _df = 1;
   3010     uint32_t _flag_k = FK_NONE;
   3011     uint32_t _flag_a = 0, _flag_b = 0;
   3012     uint32_t _itail_tgt = 0;
   3013     RECOMP_REGS_LOCALS
   3014     RECOMP_ENTER(0x4702EF90u);
   3015 
   3016 L_4702EF90:
   3017     ecx = MEM32(ecx + 0x30C); /* 0x4702EF90: mov ecx, dword ptr [ecx + 0x30c] */
   3018     PUSH32(esp, ecx); /* 0x4702EF96: push ecx */
   3019     RECOMP_ICALL(0x47002990u); /* 0x4702EF97: call 0x47002990 */ /* not lifted */
   3020     RECOMP_FLAGS_IN();
   3021     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3022     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3023     esp = esp + 4; /* 0x4702EF9C: add esp, 4 */
   3024     _flag_k = FK_ADD;
   3025     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702EF9F: ret  */
   3026     RECOMP_REGS_OUT();
   3027 }
   3028 
   3029 void sub_4702EFA0(void) {
   3030     int _fpu_cmp = 0;
   3031     uint32_t _cf = 0;
   3032     int _df = 1;
   3033     uint32_t _flag_k = FK_NONE;
   3034     uint32_t _flag_a = 0, _flag_b = 0;
   3035     uint32_t _itail_tgt = 0;
   3036     RECOMP_REGS_LOCALS
   3037     RECOMP_ENTER(0x4702EFA0u);
   3038 
   3039 L_4702EFA0:
   3040     PUSH32(esp, esi); /* 0x4702EFA0: push esi */
   3041     esi = ecx; /* 0x4702EFA1: mov esi, ecx */
   3042     /* cmp MEM32(esi + 0x254), 2 */ /* 0x4702EFA3: cmp dword ptr [esi + 0x254], 2 */
   3043     _flag_a = (uint32_t)(MEM32(esi + 0x254)); _flag_b = (uint32_t)(2);
   3044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3045     _flag_k = FK_CMP;
   3046     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F03D; /* 0x4702EFAA: jne 0x4702f03d */
   3047 L_4702EFB0:
   3048     eax = MEM32(esi + 0x220); /* 0x4702EFB0: mov eax, dword ptr [esi + 0x220] */
   3049     /* cmp eax, MEM32(esi + 0x21C) */ /* 0x4702EFB6: cmp eax, dword ptr [esi + 0x21c] */
   3050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x21C));
   3051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3052     _flag_k = FK_CMP;
   3053     PUSH32(esp, ebx); /* 0x4702EFBC: push ebx */
   3054     ebx = MEM32(0x470AC3C8); /* 0x4702EFBD: mov ebx, dword ptr [0x470ac3c8] */
   3055     PUSH32(esp, ebp); /* 0x4702EFC3: push ebp */
   3056     ebp = MEM32(0x470AC150); /* 0x4702EFC4: mov ebp, dword ptr [0x470ac150] */
   3057     PUSH32(esp, edi); /* 0x4702EFCA: push edi */
   3058     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702EFEF; /* 0x4702EFCB: je 0x4702efef */
   3059 L_4702EFCD:
   3060     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EFCD: cmp eax, -1 */
   3061     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3063     _flag_k = FK_CMP;
   3064     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702EFEF; /* 0x4702EFD0: je 0x4702efef */
   3065 L_4702EFD2:
   3066     PUSH32(esp, eax); /* 0x4702EFD2: push eax */
   3067     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x4702EFD3: call dword ptr [0x470ac198] */
   3068     RECOMP_FLAGS_IN();
   3069     /* test eax, eax */ /* 0x4702EFD9: test eax, eax */
   3070     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3071     _cf = 0;
   3072     _flag_k = FK_TEST;
   3073     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702EFE5; /* 0x4702EFDB: jne 0x4702efe5 */
   3074 L_4702EFDD:
   3075     RECOMP_ICALL(ebx); /* 0x4702EFDD: call ebx */
   3076     RECOMP_FLAGS_IN();
   3077     edi = eax; /* 0x4702EFDF: mov edi, eax */
   3078     RECOMP_ICALL(ebp); /* 0x4702EFE1: call ebp */
   3079     RECOMP_FLAGS_IN();
   3080     MEM32(edi) = eax; /* 0x4702EFE3: mov dword ptr [edi], eax */
   3081 L_4702EFE5:
   3082     MEM32(esi + 0x220) = 0xFFFFFFFFu; /* 0x4702EFE5: mov dword ptr [esi + 0x220], 0xffffffff */
   3083 L_4702EFEF:
   3084     eax = MEM32(esi + 0x10C); /* 0x4702EFEF: mov eax, dword ptr [esi + 0x10c] */
   3085     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702EFF5: cmp eax, -1 */
   3086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3088     _flag_k = FK_CMP;
   3089     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F017; /* 0x4702EFF8: je 0x4702f017 */
   3090 L_4702EFFA:
   3091     PUSH32(esp, eax); /* 0x4702EFFA: push eax */
   3092     RECOMP_ICALL(MEM32(0x470AC104)); /* 0x4702EFFB: call dword ptr [0x470ac104] */
   3093     RECOMP_FLAGS_IN();
   3094     /* test eax, eax */ /* 0x4702F001: test eax, eax */
   3095     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3096     _cf = 0;
   3097     _flag_k = FK_TEST;
   3098     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F00D; /* 0x4702F003: jne 0x4702f00d */
   3099 L_4702F005:
   3100     RECOMP_ICALL(ebx); /* 0x4702F005: call ebx */
   3101     RECOMP_FLAGS_IN();
   3102     edi = eax; /* 0x4702F007: mov edi, eax */
   3103     RECOMP_ICALL(ebp); /* 0x4702F009: call ebp */
   3104     RECOMP_FLAGS_IN();
   3105     MEM32(edi) = eax; /* 0x4702F00B: mov dword ptr [edi], eax */
   3106 L_4702F00D:
   3107     MEM32(esi + 0x10C) = 0xFFFFFFFFu; /* 0x4702F00D: mov dword ptr [esi + 0x10c], 0xffffffff */
   3108 L_4702F017:
   3109     eax = MEM32(esi + 0x228); /* 0x4702F017: mov eax, dword ptr [esi + 0x228] */
   3110     PUSH32(esp, eax); /* 0x4702F01D: push eax */
   3111     RECOMP_ICALL(MEM32(0x470AC198)); /* 0x4702F01E: call dword ptr [0x470ac198] */
   3112     RECOMP_FLAGS_IN();
   3113     /* test eax, eax */ /* 0x4702F024: test eax, eax */
   3114     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3115     _cf = 0;
   3116     _flag_k = FK_TEST;
   3117     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F030; /* 0x4702F026: jne 0x4702f030 */
   3118 L_4702F028:
   3119     RECOMP_ICALL(ebx); /* 0x4702F028: call ebx */
   3120     RECOMP_FLAGS_IN();
   3121     edi = eax; /* 0x4702F02A: mov edi, eax */
   3122     RECOMP_ICALL(ebp); /* 0x4702F02C: call ebp */
   3123     RECOMP_FLAGS_IN();
   3124     MEM32(edi) = eax; /* 0x4702F02E: mov dword ptr [edi], eax */
   3125 L_4702F030:
   3126     edi = POP32_VAL(esp); /* 0x4702F030: pop edi */
   3127     ebp = POP32_VAL(esp); /* 0x4702F031: pop ebp */
   3128     MEM32(esi + 0x228) = 0xFFFFFFFFu; /* 0x4702F032: mov dword ptr [esi + 0x228], 0xffffffff */
   3129     ebx = POP32_VAL(esp); /* 0x4702F03C: pop ebx */
   3130 L_4702F03D:
   3131     esi = MEM32(esi + 0x30C); /* 0x4702F03D: mov esi, dword ptr [esi + 0x30c] */
   3132     PUSH32(esp, esi); /* 0x4702F043: push esi */
   3133     RECOMP_ICALL(0x47002D10u); /* 0x4702F044: call 0x47002d10 */ /* not lifted */
   3134     RECOMP_FLAGS_IN();
   3135     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3137     esp = esp + 4; /* 0x4702F049: add esp, 4 */
   3138     _flag_k = FK_ADD;
   3139     esi = POP32_VAL(esp); /* 0x4702F04C: pop esi */
   3140     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F04D: ret  */
   3141     RECOMP_REGS_OUT();
   3142 }
   3143 
   3144 void sub_4702F050(void) {
   3145     int _fpu_cmp = 0;
   3146     uint32_t _cf = 0;
   3147     int _df = 1;
   3148     uint32_t _flag_k = FK_NONE;
   3149     uint32_t _flag_a = 0, _flag_b = 0;
   3150     uint32_t _itail_tgt = 0;
   3151     RECOMP_REGS_LOCALS
   3152     RECOMP_ENTER(0x4702F050u);
   3153 
   3154 L_4702F050:
   3155     eax = MEM32(ecx + 0x258); /* 0x4702F050: mov eax, dword ptr [ecx + 0x258] */
   3156     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F056: ret  */
   3157     RECOMP_REGS_OUT();
   3158 }
   3159 
   3160 void sub_4702F060(void) {
   3161     int _fpu_cmp = 0;
   3162     uint32_t _cf = 0;
   3163     int _df = 1;
   3164     uint32_t _flag_k = FK_NONE;
   3165     uint32_t _flag_a = 0, _flag_b = 0;
   3166     uint32_t _itail_tgt = 0;
   3167     RECOMP_REGS_LOCALS
   3168     RECOMP_ENTER(0x4702F060u);
   3169 
   3170 L_4702F060:
   3171     PUSH32(esp, ebx); /* 0x4702F060: push ebx */
   3172     PUSH32(esp, esi); /* 0x4702F061: push esi */
   3173     PUSH32(esp, edi); /* 0x4702F062: push edi */
   3174     ebx = ecx; /* 0x4702F063: mov ebx, ecx */
   3175     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702F065: call dword ptr [0x470ac150] */
   3176     RECOMP_FLAGS_IN();
   3177     edi = eax; /* 0x4702F06B: mov edi, eax */
   3178     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702F06D: call dword ptr [0x470ac3c8] */
   3179     RECOMP_FLAGS_IN();
   3180     eax = MEM32(eax); /* 0x4702F073: mov eax, dword ptr [eax] */
   3181     /* test eax, eax */ /* 0x4702F075: test eax, eax */
   3182     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3183     _cf = 0;
   3184     _flag_k = FK_TEST;
   3185     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F07B; /* 0x4702F077: je 0x4702f07b */
   3186 L_4702F079:
   3187     edi = eax; /* 0x4702F079: mov edi, eax */
   3188 L_4702F07B:
   3189     RECOMP_ICALL(0x47039020u); /* 0x4702F07B: call 0x47039020 */ /* not lifted */
   3190     RECOMP_FLAGS_IN();
   3191     esi = eax; /* 0x4702F080: mov esi, eax */
   3192     ecx = esi; /* 0x4702F082: mov ecx, esi */
   3193     RECOMP_ICALL(0x4703B210u); /* 0x4702F084: call 0x4703b210 */ /* not lifted */
   3194     RECOMP_FLAGS_IN();
   3195     PUSH32(esp, eax); /* 0x4702F089: push eax */
   3196     ecx = esi; /* 0x4702F08A: mov ecx, esi */
   3197     RECOMP_ICALL(0x4703B240u); /* 0x4702F08C: call 0x4703b240 */ /* not lifted */
   3198     RECOMP_FLAGS_IN();
   3199     PUSH32(esp, eax); /* 0x4702F091: push eax */
   3200     ecx = esi; /* 0x4702F092: mov ecx, esi */
   3201     RECOMP_ICALL(0x4703B080u); /* 0x4702F094: call 0x4703b080 */ /* not lifted */
   3202     RECOMP_FLAGS_IN();
   3203     PUSH32(esp, eax); /* 0x4702F099: push eax */
   3204     PUSH32(esp, edi); /* 0x4702F09A: push edi */
   3205     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702F09B: push -1 */
   3206     PUSH32(esp, 0x2AEu); /* 0x4702F09D: push 0x2ae */
   3207     PUSH32(esp, 0x47106580u); /* 0x4702F0A2: push 0x47106580 */
   3208     ecx = esi; /* 0x4702F0A7: mov ecx, esi */
   3209     RECOMP_ICALL(0x4703A340u); /* 0x4702F0A9: call 0x4703a340 */ /* not lifted */
   3210     RECOMP_FLAGS_IN();
   3211     eax = MEM32(esp + 0x14); /* 0x4702F0AE: mov eax, dword ptr [esp + 0x14] */
   3212     PUSH32(esp, eax); /* 0x4702F0B2: push eax */
   3213     PUSH32(esp, 0x47106614u); /* 0x4702F0B3: push 0x47106614 */
   3214     PUSH32(esp, 0x80u); /* 0x4702F0B8: push 0x80 */
   3215     PUSH32(esp, esi); /* 0x4702F0BD: push esi */
   3216     RECOMP_ICALL(0x47039830u); /* 0x4702F0BE: call 0x47039830 */ /* not lifted */
   3217     RECOMP_FLAGS_IN();
   3218     eax = MEM32(esp + 0x20); /* 0x4702F0C3: mov eax, dword ptr [esp + 0x20] */
   3219     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3220     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3221     esp = esp + 0x10u; /* 0x4702F0C7: add esp, 0x10 */
   3222     _flag_k = FK_ADD;
   3223     edi = POP32_VAL(esp); /* 0x4702F0CA: pop edi */
   3224     esi = POP32_VAL(esp); /* 0x4702F0CB: pop esi */
   3225     MEM32(ebx + 0x258) = eax; /* 0x4702F0CC: mov dword ptr [ebx + 0x258], eax */
   3226     ebx = POP32_VAL(esp); /* 0x4702F0D2: pop ebx */
   3227     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702F0D3: ret 8 */
   3228     RECOMP_REGS_OUT();
   3229 }
   3230 
   3231 void sub_4702F0E0(void) {
   3232     int _fpu_cmp = 0;
   3233     uint32_t _cf = 0;
   3234     int _df = 1;
   3235     uint32_t _flag_k = FK_NONE;
   3236     uint32_t _flag_a = 0, _flag_b = 0;
   3237     uint32_t _itail_tgt = 0;
   3238     RECOMP_REGS_LOCALS
   3239     RECOMP_ENTER(0x4702F0E0u);
   3240 
   3241 L_4702F0E0:
   3242     eax = MEM32(ecx + 0x250); /* 0x4702F0E0: mov eax, dword ptr [ecx + 0x250] */
   3243     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F0E6: ret  */
   3244     RECOMP_REGS_OUT();
   3245 }
   3246 
   3247 void sub_4702F0F0(void) {
   3248     int _fpu_cmp = 0;
   3249     uint32_t _cf = 0;
   3250     int _df = 1;
   3251     uint32_t _flag_k = FK_NONE;
   3252     uint32_t _flag_a = 0, _flag_b = 0;
   3253     uint32_t _itail_tgt = 0;
   3254     RECOMP_REGS_LOCALS
   3255     RECOMP_ENTER(0x4702F0F0u);
   3256 
   3257 L_4702F0F0:
   3258     eax = MEM32(ecx + 0x228); /* 0x4702F0F0: mov eax, dword ptr [ecx + 0x228] */
   3259     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F0F6: ret  */
   3260     RECOMP_REGS_OUT();
   3261 }
   3262 
   3263 void sub_4702F100(void) {
   3264     int _fpu_cmp = 0;
   3265     uint32_t _cf = 0;
   3266     int _df = 1;
   3267     uint32_t _flag_k = FK_NONE;
   3268     uint32_t _flag_a = 0, _flag_b = 0;
   3269     uint32_t _itail_tgt = 0;
   3270     RECOMP_REGS_LOCALS
   3271     RECOMP_ENTER(0x4702F100u);
   3272 
   3273 L_4702F100:
   3274     eax = MEM32(ecx + 0x10C); /* 0x4702F100: mov eax, dword ptr [ecx + 0x10c] */
   3275     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F106: ret  */
   3276     RECOMP_REGS_OUT();
   3277 }
   3278 
   3279 void sub_4702F110(void) {
   3280     int _fpu_cmp = 0;
   3281     uint32_t _cf = 0;
   3282     int _df = 1;
   3283     uint32_t _flag_k = FK_NONE;
   3284     uint32_t _flag_a = 0, _flag_b = 0;
   3285     uint32_t _itail_tgt = 0;
   3286     RECOMP_REGS_LOCALS
   3287     RECOMP_ENTER(0x4702F110u);
   3288 
   3289 L_4702F110:
   3290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   3291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3292     esp = esp - 0x24u; /* 0x4702F110: sub esp, 0x24 */
   3293     _flag_k = FK_CMP;
   3294     PUSH32(esp, esi); /* 0x4702F113: push esi */
   3295     esi = ecx; /* 0x4702F114: mov esi, ecx */
   3296     eax = esp + 0x4; /* 0x4702F116: lea eax, [esp + 4] */
   3297     PUSH32(esp, eax); /* 0x4702F11A: push eax */
   3298     ecx = esi + 0x4; /* 0x4702F11B: lea ecx, [esi + 4] */
   3299     PUSH32(esp, ecx); /* 0x4702F11E: push ecx */
   3300     RECOMP_ICALL(MEM32(0x470AC3E8)); /* 0x4702F11F: call dword ptr [0x470ac3e8] */
   3301     RECOMP_FLAGS_IN();
   3302     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3303     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3304     esp = esp + 8; /* 0x4702F125: add esp, 8 */
   3305     _flag_k = FK_ADD;
   3306     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702F128: cmp eax, -1 */
   3307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3309     _flag_k = FK_CMP;
   3310     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F137; /* 0x4702F12B: jne 0x4702f137 */
   3311 L_4702F12D:
   3312     eax = 1; /* 0x4702F12D: mov eax, 1 */
   3313     esi = POP32_VAL(esp); /* 0x4702F132: pop esi */
   3314     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   3315     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3316     esp = esp + 0x24u; /* 0x4702F133: add esp, 0x24 */
   3317     _flag_k = FK_ADD;
   3318     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F136: ret  */
   3319 L_4702F137:
   3320     edx = MEM32(esp + 0x20); /* 0x4702F137: mov edx, dword ptr [esp + 0x20] */
   3321     eax = MEM32(esi + 0x248); /* 0x4702F13B: mov eax, dword ptr [esi + 0x248] */
   3322     PUSH32(esp, edx); /* 0x4702F141: push edx */
   3323     PUSH32(esp, eax); /* 0x4702F142: push eax */
   3324     RECOMP_ICALL(MEM32(0x470AC270)); /* 0x4702F143: call dword ptr [0x470ac270] */
   3325     RECOMP_FLAGS_IN();
   3326     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x470AD150)); /* 0x4702F149: fcomp qword ptr [0x470ad150] */
   3327     fp_pop();
   3328     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3330     esp = esp + 8; /* 0x4702F14F: add esp, 8 */
   3331     _flag_k = FK_ADD;
   3332     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4702F152: fnstsw ax */
   3333     /* test HI8(eax), 1 */ /* 0x4702F154: test ah, 1 */
   3334     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3335     _cf = 0;
   3336     _flag_k = FK_NARROW(FK_TEST, 24);
   3337     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F163; /* 0x4702F157: je 0x4702f163 */
   3338 L_4702F159:
   3339     eax = 1; /* 0x4702F159: mov eax, 1 */
   3340     esi = POP32_VAL(esp); /* 0x4702F15E: pop esi */
   3341     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   3342     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3343     esp = esp + 0x24u; /* 0x4702F15F: add esp, 0x24 */
   3344     _flag_k = FK_ADD;
   3345     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F162: ret  */
   3346 L_4702F163:
   3347     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3348     eax = 0; /* 0x4702F163: xor eax, eax */
   3349     _cf = 0;
   3350     _flag_k = FK_TEST;
   3351     esi = POP32_VAL(esp); /* 0x4702F165: pop esi */
   3352     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   3353     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3354     esp = esp + 0x24u; /* 0x4702F166: add esp, 0x24 */
   3355     _flag_k = FK_ADD;
   3356     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F169: ret  */
   3357     RECOMP_REGS_OUT();
   3358 }
   3359 
   3360 void sub_4702F170(void) {
   3361     int _fpu_cmp = 0;
   3362     uint32_t _cf = 0;
   3363     int _df = 1;
   3364     uint32_t _flag_k = FK_NONE;
   3365     uint32_t _flag_a = 0, _flag_b = 0;
   3366     uint32_t _itail_tgt = 0;
   3367     RECOMP_REGS_LOCALS
   3368     RECOMP_ENTER(0x4702F170u);
   3369 
   3370 L_4702F170:
   3371     eax = MEM32(FS_BASE + (0)); /* 0x4702F170: mov eax, dword ptr fs:[0] */
   3372     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702F176: push -1 */
   3373     PUSH32(esp, 0x470A5598u); /* 0x4702F178: push 0x470a5598 */
   3374     PUSH32(esp, eax); /* 0x4702F17D: push eax */
   3375     MEM32(FS_BASE + (0)) = esp; /* 0x4702F17E: mov dword ptr fs:[0], esp */
   3376     PUSH32(esp, ebx); /* 0x4702F185: push ebx */
   3377     PUSH32(esp, ebp); /* 0x4702F186: push ebp */
   3378     PUSH32(esp, esi); /* 0x4702F187: push esi */
   3379     PUSH32(esp, edi); /* 0x4702F188: push edi */
   3380     esi = ecx; /* 0x4702F189: mov esi, ecx */
   3381     edi = MEM32(esp + 0x20); /* 0x4702F18B: mov edi, dword ptr [esp + 0x20] */
   3382     eax = MEM32(edi); /* 0x4702F18F: mov eax, dword ptr [edi] */
   3383     PUSH32(esp, eax); /* 0x4702F191: push eax */
   3384     MEM32(esp + 0x1C) = 0; /* 0x4702F192: mov dword ptr [esp + 0x1c], 0 */
   3385     RECOMP_ICALL(0x4700B4C0u); /* 0x4702F19A: call 0x4700b4c0 */ /* not lifted */
   3386     RECOMP_FLAGS_IN();
   3387     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3388     edx = 0; /* 0x4702F19F: xor edx, edx */
   3389     _cf = 0;
   3390     _flag_k = FK_TEST;
   3391     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(esi + 0xC); /* 0x4702F1A1: div dword ptr [esi + 0xc] */
   3392       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   3393       else { eax = 0; edx = 0; } }
   3394     eax = MEM32(esi + 0x8); /* 0x4702F1A4: mov eax, dword ptr [esi + 8] */
   3395     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3396     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3397     esp = esp + 4; /* 0x4702F1A7: add esp, 4 */
   3398     _flag_k = FK_ADD;
   3399     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x4702F1AA: shl edx, 4 */
   3400     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3401     edx = edx << 4u; /* 0x4702F1AA: shl edx, 4 */
   3402     ebp = MEM32(edx + eax + 0x8); /* 0x4702F1AD: mov ebp, dword ptr [edx + eax + 8] */
   3403     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3404     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3405     edx = edx + eax; /* 0x4702F1B1: add edx, eax */
   3406     _flag_k = FK_ADD;
   3407     /* cmp ebp, edx */ /* 0x4702F1B3: cmp ebp, edx */
   3408     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   3409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3410     _flag_k = FK_CMP;
   3411     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F1F6; /* 0x4702F1B5: je 0x4702f1f6 */
   3412 L_4702F1B7:
   3413     edi = MEM32(edi); /* 0x4702F1B7: mov edi, dword ptr [edi] */
   3414 L_4702F1B9:
   3415     eax = MEM32(ebp); /* 0x4702F1B9: mov eax, dword ptr [ebp] */
   3416     esi = edi; /* 0x4702F1BC: mov esi, edi */
   3417 L_4702F1BE:
   3418     SET_LO8(ebx, MEM8(eax)); /* 0x4702F1BE: mov bl, byte ptr [eax] */
   3419     SET_LO8(ecx, LO8(ebx)); /* 0x4702F1C0: mov cl, bl */
   3420     /* cmp LO8(ebx), MEM8(esi) */ /* 0x4702F1C2: cmp bl, byte ptr [esi] */
   3421     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   3422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3423     _flag_k = FK_NARROW(FK_CMP, 24);
   3424     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F1E2; /* 0x4702F1C4: jne 0x4702f1e2 */
   3425 L_4702F1C6:
   3426     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F1C6: test cl, cl */
   3427     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3428     _cf = 0;
   3429     _flag_k = FK_NARROW(FK_TEST, 24);
   3430     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F1DE; /* 0x4702F1C8: je 0x4702f1de */
   3431 L_4702F1CA:
   3432     SET_LO8(ebx, MEM8(eax + 0x1)); /* 0x4702F1CA: mov bl, byte ptr [eax + 1] */
   3433     SET_LO8(ecx, LO8(ebx)); /* 0x4702F1CD: mov cl, bl */
   3434     /* cmp LO8(ebx), MEM8(esi + 0x1) */ /* 0x4702F1CF: cmp bl, byte ptr [esi + 1] */
   3435     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   3436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3437     _flag_k = FK_NARROW(FK_CMP, 24);
   3438     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F1E2; /* 0x4702F1D2: jne 0x4702f1e2 */
   3439 L_4702F1D4:
   3440     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   3441     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3442     eax = eax + 2; /* 0x4702F1D4: add eax, 2 */
   3443     _flag_k = FK_ADD;
   3444     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   3445     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3446     esi = esi + 2; /* 0x4702F1D7: add esi, 2 */
   3447     _flag_k = FK_ADD;
   3448     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F1DA: test cl, cl */
   3449     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3450     _cf = 0;
   3451     _flag_k = FK_NARROW(FK_TEST, 24);
   3452     RECOMP_BACKEDGE();
   3453     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F1BE; /* 0x4702F1DC: jne 0x4702f1be */
   3454 L_4702F1DE:
   3455     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3456     eax = 0; /* 0x4702F1DE: xor eax, eax */
   3457     _cf = 0;
   3458     _flag_k = FK_TEST;
   3459     goto L_4702F1E7; /* 0x4702F1E0: jmp 0x4702f1e7 */
   3460 L_4702F1E2:
   3461     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702F1E2: sbb eax, eax */
   3462       eax = _sc ? 0xFFFFFFFFu : 0;
   3463       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3464       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3465     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4702F1E4: sbb eax, -1 */
   3466       eax = _sa - _sb - _sc;
   3467       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3468       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3469 L_4702F1E7:
   3470     /* test eax, eax */ /* 0x4702F1E7: test eax, eax */
   3471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3472     _cf = 0;
   3473     _flag_k = FK_TEST;
   3474     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F1F2; /* 0x4702F1E9: je 0x4702f1f2 */
   3475 L_4702F1EB:
   3476     ebp = MEM32(ebp + 0x8); /* 0x4702F1EB: mov ebp, dword ptr [ebp + 8] */
   3477     /* cmp ebp, edx */ /* 0x4702F1EE: cmp ebp, edx */
   3478     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   3479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3480     _flag_k = FK_CMP;
   3481     RECOMP_BACKEDGE();
   3482     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F1B9; /* 0x4702F1F0: jne 0x4702f1b9 */
   3483 L_4702F1F2:
   3484     /* cmp ebp, edx */ /* 0x4702F1F2: cmp ebp, edx */
   3485     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   3486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3487     _flag_k = FK_CMP;
   3488     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F207; /* 0x4702F1F4: jne 0x4702f207 */
   3489 L_4702F1F6:
   3490     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702F1F6: call dword ptr [0x470ac3c8] */
   3491     RECOMP_FLAGS_IN();
   3492     MEM32(eax) = 2; /* 0x4702F1FC: mov dword ptr [eax], 2 */
   3493     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3494     eax = eax | 0xFFFFFFFFu; /* 0x4702F202: or eax, 0xffffffff */
   3495     _cf = 0;
   3496     _flag_k = FK_TEST;
   3497     goto L_4702F209; /* 0x4702F205: jmp 0x4702f209 */
   3498 L_4702F207:
   3499     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3500     eax = 0; /* 0x4702F207: xor eax, eax */
   3501     _cf = 0;
   3502     _flag_k = FK_TEST;
   3503 L_4702F209:
   3504     ecx = MEM32(esp + 0x10); /* 0x4702F209: mov ecx, dword ptr [esp + 0x10] */
   3505     edi = POP32_VAL(esp); /* 0x4702F20D: pop edi */
   3506     esi = POP32_VAL(esp); /* 0x4702F20E: pop esi */
   3507     ebp = POP32_VAL(esp); /* 0x4702F20F: pop ebp */
   3508     MEM32(FS_BASE + (0)) = ecx; /* 0x4702F210: mov dword ptr fs:[0], ecx */
   3509     ebx = POP32_VAL(esp); /* 0x4702F217: pop ebx */
   3510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3511     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3512     esp = esp + 0xCu; /* 0x4702F218: add esp, 0xc */
   3513     _flag_k = FK_ADD;
   3514     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702F21B: ret 4 */
   3515     RECOMP_REGS_OUT();
   3516 }
   3517 
   3518 void sub_4702F220(void) {
   3519     int _fpu_cmp = 0;
   3520     uint32_t _cf = 0;
   3521     int _df = 1;
   3522     uint32_t _flag_k = FK_NONE;
   3523     uint32_t _flag_a = 0, _flag_b = 0;
   3524     uint32_t _itail_tgt = 0;
   3525     RECOMP_REGS_LOCALS
   3526     RECOMP_ENTER(0x4702F220u);
   3527 
   3528 L_4702F220:
   3529     eax = MEM32(FS_BASE + (0)); /* 0x4702F220: mov eax, dword ptr fs:[0] */
   3530     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702F226: push -1 */
   3531     PUSH32(esp, 0x470A55B8u); /* 0x4702F228: push 0x470a55b8 */
   3532     PUSH32(esp, eax); /* 0x4702F22D: push eax */
   3533     MEM32(FS_BASE + (0)) = esp; /* 0x4702F22E: mov dword ptr fs:[0], esp */
   3534     PUSH32(esp, ebx); /* 0x4702F235: push ebx */
   3535     PUSH32(esp, ebp); /* 0x4702F236: push ebp */
   3536     PUSH32(esp, esi); /* 0x4702F237: push esi */
   3537     PUSH32(esp, edi); /* 0x4702F238: push edi */
   3538     ebx = ecx; /* 0x4702F239: mov ebx, ecx */
   3539     esi = MEM32(esp + 0x20); /* 0x4702F23B: mov esi, dword ptr [esp + 0x20] */
   3540     eax = MEM32(esi); /* 0x4702F23F: mov eax, dword ptr [esi] */
   3541     PUSH32(esp, eax); /* 0x4702F241: push eax */
   3542     MEM32(esp + 0x1C) = 0; /* 0x4702F242: mov dword ptr [esp + 0x1c], 0 */
   3543     RECOMP_ICALL(0x4700B4C0u); /* 0x4702F24A: call 0x4700b4c0 */ /* not lifted */
   3544     RECOMP_FLAGS_IN();
   3545     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3546     edx = 0; /* 0x4702F24F: xor edx, edx */
   3547     _cf = 0;
   3548     _flag_k = FK_TEST;
   3549     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(ebx + 0xC); /* 0x4702F251: div dword ptr [ebx + 0xc] */
   3550       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   3551       else { eax = 0; edx = 0; } }
   3552     eax = MEM32(ebx + 0x8); /* 0x4702F254: mov eax, dword ptr [ebx + 8] */
   3553     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3554     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3555     esp = esp + 4; /* 0x4702F257: add esp, 4 */
   3556     _flag_k = FK_ADD;
   3557     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x4702F25A: shl edx, 4 */
   3558     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3559     edx = edx << 4u; /* 0x4702F25A: shl edx, 4 */
   3560     edi = MEM32(edx + eax + 0x8); /* 0x4702F25D: mov edi, dword ptr [edx + eax + 8] */
   3561     ebp = edx + eax; /* 0x4702F261: lea ebp, [edx + eax] */
   3562     /* cmp edi, ebp */ /* 0x4702F264: cmp edi, ebp */
   3563     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   3564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3565     _flag_k = FK_CMP;
   3566     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F2AC; /* 0x4702F266: je 0x4702f2ac */
   3567 L_4702F268:
   3568     ecx = MEM32(esi); /* 0x4702F268: mov ecx, dword ptr [esi] */
   3569     MEM32(esp + 0x20) = ecx; /* 0x4702F26A: mov dword ptr [esp + 0x20], ecx */
   3570 L_4702F26E:
   3571     esi = MEM32(esp + 0x20); /* 0x4702F26E: mov esi, dword ptr [esp + 0x20] */
   3572     eax = MEM32(edi); /* 0x4702F272: mov eax, dword ptr [edi] */
   3573 L_4702F274:
   3574     SET_LO8(edx, MEM8(eax)); /* 0x4702F274: mov dl, byte ptr [eax] */
   3575     SET_LO8(ecx, LO8(edx)); /* 0x4702F276: mov cl, dl */
   3576     /* cmp LO8(edx), MEM8(esi) */ /* 0x4702F278: cmp dl, byte ptr [esi] */
   3577     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   3578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3579     _flag_k = FK_NARROW(FK_CMP, 24);
   3580     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F298; /* 0x4702F27A: jne 0x4702f298 */
   3581 L_4702F27C:
   3582     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F27C: test cl, cl */
   3583     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3584     _cf = 0;
   3585     _flag_k = FK_NARROW(FK_TEST, 24);
   3586     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F294; /* 0x4702F27E: je 0x4702f294 */
   3587 L_4702F280:
   3588     SET_LO8(edx, MEM8(eax + 0x1)); /* 0x4702F280: mov dl, byte ptr [eax + 1] */
   3589     SET_LO8(ecx, LO8(edx)); /* 0x4702F283: mov cl, dl */
   3590     /* cmp LO8(edx), MEM8(esi + 0x1) */ /* 0x4702F285: cmp dl, byte ptr [esi + 1] */
   3591     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   3592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3593     _flag_k = FK_NARROW(FK_CMP, 24);
   3594     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F298; /* 0x4702F288: jne 0x4702f298 */
   3595 L_4702F28A:
   3596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   3597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3598     eax = eax + 2; /* 0x4702F28A: add eax, 2 */
   3599     _flag_k = FK_ADD;
   3600     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   3601     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3602     esi = esi + 2; /* 0x4702F28D: add esi, 2 */
   3603     _flag_k = FK_ADD;
   3604     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F290: test cl, cl */
   3605     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3606     _cf = 0;
   3607     _flag_k = FK_NARROW(FK_TEST, 24);
   3608     RECOMP_BACKEDGE();
   3609     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F274; /* 0x4702F292: jne 0x4702f274 */
   3610 L_4702F294:
   3611     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3612     eax = 0; /* 0x4702F294: xor eax, eax */
   3613     _cf = 0;
   3614     _flag_k = FK_TEST;
   3615     goto L_4702F29D; /* 0x4702F296: jmp 0x4702f29d */
   3616 L_4702F298:
   3617     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702F298: sbb eax, eax */
   3618       eax = _sc ? 0xFFFFFFFFu : 0;
   3619       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3620       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3621     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4702F29A: sbb eax, -1 */
   3622       eax = _sa - _sb - _sc;
   3623       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3624       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3625 L_4702F29D:
   3626     /* test eax, eax */ /* 0x4702F29D: test eax, eax */
   3627     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3628     _cf = 0;
   3629     _flag_k = FK_TEST;
   3630     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F2A8; /* 0x4702F29F: je 0x4702f2a8 */
   3631 L_4702F2A1:
   3632     edi = MEM32(edi + 0x8); /* 0x4702F2A1: mov edi, dword ptr [edi + 8] */
   3633     /* cmp edi, ebp */ /* 0x4702F2A4: cmp edi, ebp */
   3634     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   3635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3636     _flag_k = FK_CMP;
   3637     RECOMP_BACKEDGE();
   3638     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F26E; /* 0x4702F2A6: jne 0x4702f26e */
   3639 L_4702F2A8:
   3640     /* cmp edi, ebp */ /* 0x4702F2A8: cmp edi, ebp */
   3641     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   3642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3643     _flag_k = FK_CMP;
   3644     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F2C7; /* 0x4702F2AA: jne 0x4702f2c7 */
   3645 L_4702F2AC:
   3646     esi = MEM32(0x470AC3C8); /* 0x4702F2AC: mov esi, dword ptr [0x470ac3c8] */
   3647     RECOMP_ICALL(esi); /* 0x4702F2B2: call esi */
   3648     RECOMP_FLAGS_IN();
   3649     MEM32(eax) = 2; /* 0x4702F2B4: mov dword ptr [eax], 2 */
   3650     RECOMP_ICALL(esi); /* 0x4702F2BA: call esi */
   3651     RECOMP_FLAGS_IN();
   3652     MEM32(eax) = 2; /* 0x4702F2BC: mov dword ptr [eax], 2 */
   3653     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3654     eax = eax | 0xFFFFFFFFu; /* 0x4702F2C2: or eax, 0xffffffff */
   3655     _cf = 0;
   3656     _flag_k = FK_TEST;
   3657     goto L_4702F2FF; /* 0x4702F2C5: jmp 0x4702f2ff */
   3658 L_4702F2C7:
   3659     /* test edi, edi */ /* 0x4702F2C7: test edi, edi */
   3660     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3661     _cf = 0;
   3662     _flag_k = FK_TEST;
   3663     eax = MEM32(edi + 0x4); /* 0x4702F2C9: mov eax, dword ptr [edi + 4] */
   3664     ecx = MEM32(esp + 0x24); /* 0x4702F2CC: mov ecx, dword ptr [esp + 0x24] */
   3665     MEM32(ecx) = eax; /* 0x4702F2D0: mov dword ptr [ecx], eax */
   3666     edx = MEM32(edi + 0x8); /* 0x4702F2D2: mov edx, dword ptr [edi + 8] */
   3667     eax = MEM32(edi + 0xC); /* 0x4702F2D5: mov eax, dword ptr [edi + 0xc] */
   3668     MEM32(edx + 0xC) = eax; /* 0x4702F2D8: mov dword ptr [edx + 0xc], eax */
   3669     ecx = MEM32(edi + 0xC); /* 0x4702F2DB: mov ecx, dword ptr [edi + 0xc] */
   3670     edx = MEM32(edi + 0x8); /* 0x4702F2DE: mov edx, dword ptr [edi + 8] */
   3671     MEM32(ecx + 0x8) = edx; /* 0x4702F2E1: mov dword ptr [ecx + 8], edx */
   3672     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F2FA; /* 0x4702F2E4: je 0x4702f2fa */
   3673 L_4702F2E6:
   3674     eax = MEM32(edi); /* 0x4702F2E6: mov eax, dword ptr [edi] */
   3675     PUSH32(esp, eax); /* 0x4702F2E8: push eax */
   3676     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x4702F2E9: call dword ptr [0x470ac390] */
   3677     RECOMP_FLAGS_IN();
   3678     ecx = MEM32(ebx); /* 0x4702F2EF: mov ecx, dword ptr [ebx] */
   3679     edx = MEM32(ecx); /* 0x4702F2F1: mov edx, dword ptr [ecx] */
   3680     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3682     esp = esp + 4; /* 0x4702F2F3: add esp, 4 */
   3683     _flag_k = FK_ADD;
   3684     PUSH32(esp, edi); /* 0x4702F2F6: push edi */
   3685     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4702F2F7: call dword ptr [edx + 0xc] */
   3686     RECOMP_FLAGS_IN();
   3687 L_4702F2FA:
   3688     _flag_a = (uint32_t)(MEM32(ebx + 0x10)); _flag_b = (uint32_t)(1);
   3689     MEM32(ebx + 0x10) = MEM32(ebx + 0x10) - 1; /* 0x4702F2FA: dec dword ptr [ebx + 0x10] */
   3690     _flag_k = FK_DEC;
   3691     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3692     eax = 0; /* 0x4702F2FD: xor eax, eax */
   3693     _cf = 0;
   3694     _flag_k = FK_TEST;
   3695 L_4702F2FF:
   3696     ecx = MEM32(esp + 0x10); /* 0x4702F2FF: mov ecx, dword ptr [esp + 0x10] */
   3697     edi = POP32_VAL(esp); /* 0x4702F303: pop edi */
   3698     esi = POP32_VAL(esp); /* 0x4702F304: pop esi */
   3699     ebp = POP32_VAL(esp); /* 0x4702F305: pop ebp */
   3700     MEM32(FS_BASE + (0)) = ecx; /* 0x4702F306: mov dword ptr fs:[0], ecx */
   3701     ebx = POP32_VAL(esp); /* 0x4702F30D: pop ebx */
   3702     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3703     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3704     esp = esp + 0xCu; /* 0x4702F30E: add esp, 0xc */
   3705     _flag_k = FK_ADD;
   3706     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702F311: ret 8 */
   3707     RECOMP_REGS_OUT();
   3708 }
   3709 
   3710 void sub_4702F320(void) {
   3711     int _fpu_cmp = 0;
   3712     uint32_t _cf = 0;
   3713     int _df = 1;
   3714     uint32_t _flag_k = FK_NONE;
   3715     uint32_t _flag_a = 0, _flag_b = 0;
   3716     uint32_t _itail_tgt = 0;
   3717     RECOMP_REGS_LOCALS
   3718     RECOMP_ENTER(0x4702F320u);
   3719 
   3720 L_4702F320:
   3721     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702F320: push -1 */
   3722     PUSH32(esp, 0x470A55E3u); /* 0x4702F322: push 0x470a55e3 */
   3723     eax = MEM32(FS_BASE + (0)); /* 0x4702F327: mov eax, dword ptr fs:[0] */
   3724     PUSH32(esp, eax); /* 0x4702F32D: push eax */
   3725     MEM32(FS_BASE + (0)) = esp; /* 0x4702F32E: mov dword ptr fs:[0], esp */
   3726     PUSH32(esp, ecx); /* 0x4702F335: push ecx */
   3727     eax = MEM32(esp + 0x18); /* 0x4702F336: mov eax, dword ptr [esp + 0x18] */
   3728     PUSH32(esp, ebx); /* 0x4702F33A: push ebx */
   3729     PUSH32(esp, esi); /* 0x4702F33B: push esi */
   3730     PUSH32(esp, edi); /* 0x4702F33C: push edi */
   3731     edi = ecx; /* 0x4702F33D: mov edi, ecx */
   3732     MEM32(esp + 0xC) = edi; /* 0x4702F33F: mov dword ptr [esp + 0xc], edi */
   3733     MEM32(edi) = eax; /* 0x4702F343: mov dword ptr [edi], eax */
   3734     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3735     esi = 0; /* 0x4702F345: xor esi, esi */
   3736     _cf = 0;
   3737     _flag_k = FK_TEST;
   3738     MEM32(esp + 0x18) = esi; /* 0x4702F347: mov dword ptr [esp + 0x18], esi */
   3739     MEM32(edi + 0x8) = esi; /* 0x4702F34B: mov dword ptr [edi + 8], esi */
   3740     MEM32(edi + 0xC) = esi; /* 0x4702F34E: mov dword ptr [edi + 0xc], esi */
   3741     MEM32(edi + 0x10) = esi; /* 0x4702F351: mov dword ptr [edi + 0x10], esi */
   3742     /* cmp eax, esi */ /* 0x4702F354: cmp eax, esi */
   3743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3745     _flag_k = FK_CMP;
   3746     MEM8(esp + 0x18) = (uint8_t)(1); /* 0x4702F356: mov byte ptr [esp + 0x18], 1 */
   3747     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F362; /* 0x4702F35B: jne 0x4702f362 */
   3748 L_4702F35D:
   3749     RECOMP_ICALL(0x4703DAC0u); /* 0x4702F35D: call 0x4703dac0 */ /* not lifted */
   3750     RECOMP_FLAGS_IN();
   3751 L_4702F362:
   3752     ebx = MEM32(esp + 0x20); /* 0x4702F362: mov ebx, dword ptr [esp + 0x20] */
   3753     /* cmp ebx, esi */ /* 0x4702F366: cmp ebx, esi */
   3754     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   3755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3756     _flag_k = FK_CMP;
   3757     MEM32(edi) = eax; /* 0x4702F368: mov dword ptr [edi], eax */
   3758     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F3D1; /* 0x4702F36A: jne 0x4702f3d1 */
   3759 L_4702F36C:
   3760     PUSH32(esp, ebp); /* 0x4702F36C: push ebp */
   3761     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702F36D: call dword ptr [0x470ac150] */
   3762     RECOMP_FLAGS_IN();
   3763     ebp = eax; /* 0x4702F373: mov ebp, eax */
   3764     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702F375: call dword ptr [0x470ac3c8] */
   3765     RECOMP_FLAGS_IN();
   3766     eax = MEM32(eax); /* 0x4702F37B: mov eax, dword ptr [eax] */
   3767     /* cmp eax, esi */ /* 0x4702F37D: cmp eax, esi */
   3768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3770     _flag_k = FK_CMP;
   3771     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F383; /* 0x4702F37F: je 0x4702f383 */
   3772 L_4702F381:
   3773     ebp = eax; /* 0x4702F381: mov ebp, eax */
   3774 L_4702F383:
   3775     RECOMP_ICALL(0x47039020u); /* 0x4702F383: call 0x47039020 */ /* not lifted */
   3776     RECOMP_FLAGS_IN();
   3777     esi = eax; /* 0x4702F388: mov esi, eax */
   3778     ecx = esi; /* 0x4702F38A: mov ecx, esi */
   3779     RECOMP_ICALL(0x4703B210u); /* 0x4702F38C: call 0x4703b210 */ /* not lifted */
   3780     RECOMP_FLAGS_IN();
   3781     PUSH32(esp, eax); /* 0x4702F391: push eax */
   3782     ecx = esi; /* 0x4702F392: mov ecx, esi */
   3783     RECOMP_ICALL(0x4703B240u); /* 0x4702F394: call 0x4703b240 */ /* not lifted */
   3784     RECOMP_FLAGS_IN();
   3785     PUSH32(esp, eax); /* 0x4702F399: push eax */
   3786     ecx = esi; /* 0x4702F39A: mov ecx, esi */
   3787     RECOMP_ICALL(0x4703B080u); /* 0x4702F39C: call 0x4703b080 */ /* not lifted */
   3788     RECOMP_FLAGS_IN();
   3789     PUSH32(esp, eax); /* 0x4702F3A1: push eax */
   3790     PUSH32(esp, ebp); /* 0x4702F3A2: push ebp */
   3791     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702F3A3: push -1 */
   3792     PUSH32(esp, 0x86u); /* 0x4702F3A5: push 0x86 */
   3793     PUSH32(esp, 0x47105A54u); /* 0x4702F3AA: push 0x47105a54 */
   3794     ecx = esi; /* 0x4702F3AF: mov ecx, esi */
   3795     RECOMP_ICALL(0x4703A340u); /* 0x4702F3B1: call 0x4703a340 */ /* not lifted */
   3796     RECOMP_FLAGS_IN();
   3797     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702F3B6: push -1 */
   3798     PUSH32(esp, 0x47105A48u); /* 0x4702F3B8: push 0x47105a48 */
   3799     PUSH32(esp, 0x47104AA4u); /* 0x4702F3BD: push 0x47104aa4 */
   3800     PUSH32(esp, 0x80u); /* 0x4702F3C2: push 0x80 */
   3801     PUSH32(esp, esi); /* 0x4702F3C7: push esi */
   3802     RECOMP_ICALL(0x47039830u); /* 0x4702F3C8: call 0x47039830 */ /* not lifted */
   3803     RECOMP_FLAGS_IN();
   3804     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3806     esp = esp + 0x14u; /* 0x4702F3CD: add esp, 0x14 */
   3807     _flag_k = FK_ADD;
   3808     ebp = POP32_VAL(esp); /* 0x4702F3D0: pop ebp */
   3809 L_4702F3D1:
   3810     PUSH32(esp, ebx); /* 0x4702F3D1: push ebx */
   3811     ecx = edi; /* 0x4702F3D2: mov ecx, edi */
   3812     RECOMP_ICALL(0x47028780u); /* 0x4702F3D4: call 0x47028780 */ /* not lifted */
   3813     RECOMP_FLAGS_IN();
   3814     /* cmp eax, 0xFFFFFFFFu */ /* 0x4702F3D9: cmp eax, -1 */
   3815     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3816     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3817     _flag_k = FK_CMP;
   3818     MEM8(esp + 0x18) = (uint8_t)(0); /* 0x4702F3DC: mov byte ptr [esp + 0x18], 0 */
   3819     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F43E; /* 0x4702F3E1: jne 0x4702f43e */
   3820 L_4702F3E3:
   3821     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702F3E3: call dword ptr [0x470ac150] */
   3822     RECOMP_FLAGS_IN();
   3823     esi = eax; /* 0x4702F3E9: mov esi, eax */
   3824     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702F3EB: call dword ptr [0x470ac3c8] */
   3825     RECOMP_FLAGS_IN();
   3826     eax = MEM32(eax); /* 0x4702F3F1: mov eax, dword ptr [eax] */
   3827     /* test eax, eax */ /* 0x4702F3F3: test eax, eax */
   3828     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3829     _cf = 0;
   3830     _flag_k = FK_TEST;
   3831     ebx = esi; /* 0x4702F3F5: mov ebx, esi */
   3832     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F3FB; /* 0x4702F3F7: je 0x4702f3fb */
   3833 L_4702F3F9:
   3834     ebx = eax; /* 0x4702F3F9: mov ebx, eax */
   3835 L_4702F3FB:
   3836     RECOMP_ICALL(0x47039020u); /* 0x4702F3FB: call 0x47039020 */ /* not lifted */
   3837     RECOMP_FLAGS_IN();
   3838     esi = eax; /* 0x4702F400: mov esi, eax */
   3839     ecx = esi; /* 0x4702F402: mov ecx, esi */
   3840     RECOMP_ICALL(0x4703B210u); /* 0x4702F404: call 0x4703b210 */ /* not lifted */
   3841     RECOMP_FLAGS_IN();
   3842     PUSH32(esp, eax); /* 0x4702F409: push eax */
   3843     ecx = esi; /* 0x4702F40A: mov ecx, esi */
   3844     RECOMP_ICALL(0x4703B240u); /* 0x4702F40C: call 0x4703b240 */ /* not lifted */
   3845     RECOMP_FLAGS_IN();
   3846     PUSH32(esp, eax); /* 0x4702F411: push eax */
   3847     ecx = esi; /* 0x4702F412: mov ecx, esi */
   3848     RECOMP_ICALL(0x4703B080u); /* 0x4702F414: call 0x4703b080 */ /* not lifted */
   3849     RECOMP_FLAGS_IN();
   3850     PUSH32(esp, eax); /* 0x4702F419: push eax */
   3851     PUSH32(esp, ebx); /* 0x4702F41A: push ebx */
   3852     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702F41B: push -1 */
   3853     PUSH32(esp, 0xEu); /* 0x4702F41D: push 0xe */
   3854     PUSH32(esp, 0x471059C8u); /* 0x4702F41F: push 0x471059c8 */
   3855     ecx = esi; /* 0x4702F424: mov ecx, esi */
   3856     RECOMP_ICALL(0x4703A340u); /* 0x4702F426: call 0x4703a340 */ /* not lifted */
   3857     RECOMP_FLAGS_IN();
   3858     PUSH32(esp, 0x471059ACu); /* 0x4702F42B: push 0x471059ac */
   3859     PUSH32(esp, 0x80u); /* 0x4702F430: push 0x80 */
   3860     PUSH32(esp, esi); /* 0x4702F435: push esi */
   3861     RECOMP_ICALL(0x47039830u); /* 0x4702F436: call 0x47039830 */ /* not lifted */
   3862     RECOMP_FLAGS_IN();
   3863     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3865     esp = esp + 0xCu; /* 0x4702F43B: add esp, 0xc */
   3866     _flag_k = FK_ADD;
   3867 L_4702F43E:
   3868     ecx = MEM32(esp + 0x10); /* 0x4702F43E: mov ecx, dword ptr [esp + 0x10] */
   3869     eax = edi; /* 0x4702F442: mov eax, edi */
   3870     edi = POP32_VAL(esp); /* 0x4702F444: pop edi */
   3871     esi = POP32_VAL(esp); /* 0x4702F445: pop esi */
   3872     ebx = POP32_VAL(esp); /* 0x4702F446: pop ebx */
   3873     MEM32(FS_BASE + (0)) = ecx; /* 0x4702F447: mov dword ptr fs:[0], ecx */
   3874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3876     esp = esp + 0x10u; /* 0x4702F44E: add esp, 0x10 */
   3877     _flag_k = FK_ADD;
   3878     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702F451: ret 8 */
   3879     RECOMP_REGS_OUT();
   3880 }
   3881 
   3882 void sub_4702F460(void) {
   3883     int _fpu_cmp = 0;
   3884     uint32_t _cf = 0;
   3885     int _df = 1;
   3886     uint32_t _flag_k = FK_NONE;
   3887     uint32_t _flag_a = 0, _flag_b = 0;
   3888     uint32_t _itail_tgt = 0;
   3889     RECOMP_REGS_LOCALS
   3890     RECOMP_ENTER(0x4702F460u);
   3891 
   3892 L_4702F460:
   3893     PUSH32(esp, ebp); /* 0x4702F460: push ebp */
   3894     PUSH32(esp, esi); /* 0x4702F461: push esi */
   3895     PUSH32(esp, edi); /* 0x4702F462: push edi */
   3896     edi = MEM32(esp + 0x10); /* 0x4702F463: mov edi, dword ptr [esp + 0x10] */
   3897     eax = MEM32(edi); /* 0x4702F467: mov eax, dword ptr [edi] */
   3898     PUSH32(esp, eax); /* 0x4702F469: push eax */
   3899     esi = ecx; /* 0x4702F46A: mov esi, ecx */
   3900     RECOMP_ICALL(0x4700B4C0u); /* 0x4702F46C: call 0x4700b4c0 */ /* not lifted */
   3901     RECOMP_FLAGS_IN();
   3902     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3903     edx = 0; /* 0x4702F471: xor edx, edx */
   3904     _cf = 0;
   3905     _flag_k = FK_TEST;
   3906     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(esi + 0xC); /* 0x4702F473: div dword ptr [esi + 0xc] */
   3907       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   3908       else { eax = 0; edx = 0; } }
   3909     eax = MEM32(esi + 0x8); /* 0x4702F476: mov eax, dword ptr [esi + 8] */
   3910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3912     esp = esp + 4; /* 0x4702F479: add esp, 4 */
   3913     _flag_k = FK_ADD;
   3914     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x4702F47C: shl edx, 4 */
   3915     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3916     edx = edx << 4u; /* 0x4702F47C: shl edx, 4 */
   3917     ebp = MEM32(edx + eax + 0x8); /* 0x4702F47F: mov ebp, dword ptr [edx + eax + 8] */
   3918     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3919     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3920     edx = edx + eax; /* 0x4702F483: add edx, eax */
   3921     _flag_k = FK_ADD;
   3922     /* cmp ebp, edx */ /* 0x4702F485: cmp ebp, edx */
   3923     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   3924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3925     _flag_k = FK_CMP;
   3926     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F4CA; /* 0x4702F487: je 0x4702f4ca */
   3927 L_4702F489:
   3928     edi = MEM32(edi); /* 0x4702F489: mov edi, dword ptr [edi] */
   3929     PUSH32(esp, ebx); /* 0x4702F48B: push ebx */
   3930 L_4702F48C:
   3931     eax = MEM32(ebp); /* 0x4702F48C: mov eax, dword ptr [ebp] */
   3932     esi = edi; /* 0x4702F48F: mov esi, edi */
   3933 L_4702F491:
   3934     SET_LO8(ebx, MEM8(eax)); /* 0x4702F491: mov bl, byte ptr [eax] */
   3935     SET_LO8(ecx, LO8(ebx)); /* 0x4702F493: mov cl, bl */
   3936     /* cmp LO8(ebx), MEM8(esi) */ /* 0x4702F495: cmp bl, byte ptr [esi] */
   3937     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   3938     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3939     _flag_k = FK_NARROW(FK_CMP, 24);
   3940     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F4B5; /* 0x4702F497: jne 0x4702f4b5 */
   3941 L_4702F499:
   3942     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F499: test cl, cl */
   3943     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3944     _cf = 0;
   3945     _flag_k = FK_NARROW(FK_TEST, 24);
   3946     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F4B1; /* 0x4702F49B: je 0x4702f4b1 */
   3947 L_4702F49D:
   3948     SET_LO8(ebx, MEM8(eax + 0x1)); /* 0x4702F49D: mov bl, byte ptr [eax + 1] */
   3949     SET_LO8(ecx, LO8(ebx)); /* 0x4702F4A0: mov cl, bl */
   3950     /* cmp LO8(ebx), MEM8(esi + 0x1) */ /* 0x4702F4A2: cmp bl, byte ptr [esi + 1] */
   3951     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   3952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3953     _flag_k = FK_NARROW(FK_CMP, 24);
   3954     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F4B5; /* 0x4702F4A5: jne 0x4702f4b5 */
   3955 L_4702F4A7:
   3956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   3957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3958     eax = eax + 2; /* 0x4702F4A7: add eax, 2 */
   3959     _flag_k = FK_ADD;
   3960     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   3961     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3962     esi = esi + 2; /* 0x4702F4AA: add esi, 2 */
   3963     _flag_k = FK_ADD;
   3964     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F4AD: test cl, cl */
   3965     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3966     _cf = 0;
   3967     _flag_k = FK_NARROW(FK_TEST, 24);
   3968     RECOMP_BACKEDGE();
   3969     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F491; /* 0x4702F4AF: jne 0x4702f491 */
   3970 L_4702F4B1:
   3971     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3972     eax = 0; /* 0x4702F4B1: xor eax, eax */
   3973     _cf = 0;
   3974     _flag_k = FK_TEST;
   3975     goto L_4702F4BA; /* 0x4702F4B3: jmp 0x4702f4ba */
   3976 L_4702F4B5:
   3977     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702F4B5: sbb eax, eax */
   3978       eax = _sc ? 0xFFFFFFFFu : 0;
   3979       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3980       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3981     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4702F4B7: sbb eax, -1 */
   3982       eax = _sa - _sb - _sc;
   3983       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3984       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3985 L_4702F4BA:
   3986     /* test eax, eax */ /* 0x4702F4BA: test eax, eax */
   3987     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3988     _cf = 0;
   3989     _flag_k = FK_TEST;
   3990     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F4C5; /* 0x4702F4BC: je 0x4702f4c5 */
   3991 L_4702F4BE:
   3992     ebp = MEM32(ebp + 0x8); /* 0x4702F4BE: mov ebp, dword ptr [ebp + 8] */
   3993     /* cmp ebp, edx */ /* 0x4702F4C1: cmp ebp, edx */
   3994     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   3995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3996     _flag_k = FK_CMP;
   3997     RECOMP_BACKEDGE();
   3998     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F48C; /* 0x4702F4C3: jne 0x4702f48c */
   3999 L_4702F4C5:
   4000     /* cmp ebp, edx */ /* 0x4702F4C5: cmp ebp, edx */
   4001     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   4002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4003     _flag_k = FK_CMP;
   4004     ebx = POP32_VAL(esp); /* 0x4702F4C7: pop ebx */
   4005     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F4DF; /* 0x4702F4C8: jne 0x4702f4df */
   4006 L_4702F4CA:
   4007     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702F4CA: call dword ptr [0x470ac3c8] */
   4008     RECOMP_FLAGS_IN();
   4009     edi = POP32_VAL(esp); /* 0x4702F4D0: pop edi */
   4010     esi = POP32_VAL(esp); /* 0x4702F4D1: pop esi */
   4011     MEM32(eax) = 2; /* 0x4702F4D2: mov dword ptr [eax], 2 */
   4012     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4013     eax = eax | 0xFFFFFFFFu; /* 0x4702F4D8: or eax, 0xffffffff */
   4014     _cf = 0;
   4015     _flag_k = FK_TEST;
   4016     ebp = POP32_VAL(esp); /* 0x4702F4DB: pop ebp */
   4017     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702F4DC: ret 8 */
   4018 L_4702F4DF:
   4019     ecx = MEM32(ebp + 0x4); /* 0x4702F4DF: mov ecx, dword ptr [ebp + 4] */
   4020     edx = MEM32(esp + 0x14); /* 0x4702F4E2: mov edx, dword ptr [esp + 0x14] */
   4021     edi = POP32_VAL(esp); /* 0x4702F4E6: pop edi */
   4022     esi = POP32_VAL(esp); /* 0x4702F4E7: pop esi */
   4023     MEM32(edx) = ecx; /* 0x4702F4E8: mov dword ptr [edx], ecx */
   4024     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4025     eax = 0; /* 0x4702F4EA: xor eax, eax */
   4026     _cf = 0;
   4027     _flag_k = FK_TEST;
   4028     ebp = POP32_VAL(esp); /* 0x4702F4EC: pop ebp */
   4029     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702F4ED: ret 8 */
   4030     RECOMP_REGS_OUT();
   4031 }
   4032 
   4033 void sub_4702F4F0(void) {
   4034     int _fpu_cmp = 0;
   4035     uint32_t _cf = 0;
   4036     int _df = 1;
   4037     uint32_t _flag_k = FK_NONE;
   4038     uint32_t _flag_a = 0, _flag_b = 0;
   4039     uint32_t _itail_tgt = 0;
   4040     RECOMP_REGS_LOCALS
   4041     RECOMP_ENTER(0x4702F4F0u);
   4042 
   4043 L_4702F4F0:
   4044     PUSH32(esp, ebx); /* 0x4702F4F0: push ebx */
   4045     PUSH32(esp, ebp); /* 0x4702F4F1: push ebp */
   4046     PUSH32(esp, esi); /* 0x4702F4F2: push esi */
   4047     esi = MEM32(esp + 0x10); /* 0x4702F4F3: mov esi, dword ptr [esp + 0x10] */
   4048     eax = MEM32(esi); /* 0x4702F4F7: mov eax, dword ptr [esi] */
   4049     PUSH32(esp, edi); /* 0x4702F4F9: push edi */
   4050     PUSH32(esp, eax); /* 0x4702F4FA: push eax */
   4051     ebx = ecx; /* 0x4702F4FB: mov ebx, ecx */
   4052     RECOMP_ICALL(0x4700B4C0u); /* 0x4702F4FD: call 0x4700b4c0 */ /* not lifted */
   4053     RECOMP_FLAGS_IN();
   4054     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4055     edx = 0; /* 0x4702F502: xor edx, edx */
   4056     _cf = 0;
   4057     _flag_k = FK_TEST;
   4058     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(ebx + 0xC); /* 0x4702F504: div dword ptr [ebx + 0xc] */
   4059       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   4060       else { eax = 0; edx = 0; } }
   4061     eax = MEM32(ebx + 0x8); /* 0x4702F507: mov eax, dword ptr [ebx + 8] */
   4062     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4063     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4064     esp = esp + 4; /* 0x4702F50A: add esp, 4 */
   4065     _flag_k = FK_ADD;
   4066     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x4702F50D: shl edx, 4 */
   4067     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4068     edx = edx << 4u; /* 0x4702F50D: shl edx, 4 */
   4069     edi = MEM32(edx + eax + 0x8); /* 0x4702F510: mov edi, dword ptr [edx + eax + 8] */
   4070     ebp = edx + eax; /* 0x4702F514: lea ebp, [edx + eax] */
   4071     /* cmp edi, ebp */ /* 0x4702F517: cmp edi, ebp */
   4072     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   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_4702F55F; /* 0x4702F519: je 0x4702f55f */
   4076 L_4702F51B:
   4077     ecx = MEM32(esi); /* 0x4702F51B: mov ecx, dword ptr [esi] */
   4078     MEM32(esp + 0x14) = ecx; /* 0x4702F51D: mov dword ptr [esp + 0x14], ecx */
   4079 L_4702F521:
   4080     esi = MEM32(esp + 0x14); /* 0x4702F521: mov esi, dword ptr [esp + 0x14] */
   4081     eax = MEM32(edi); /* 0x4702F525: mov eax, dword ptr [edi] */
   4082 L_4702F527:
   4083     SET_LO8(edx, MEM8(eax)); /* 0x4702F527: mov dl, byte ptr [eax] */
   4084     SET_LO8(ecx, LO8(edx)); /* 0x4702F529: mov cl, dl */
   4085     /* cmp LO8(edx), MEM8(esi) */ /* 0x4702F52B: cmp dl, byte ptr [esi] */
   4086     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   4087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4088     _flag_k = FK_NARROW(FK_CMP, 24);
   4089     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F54B; /* 0x4702F52D: jne 0x4702f54b */
   4090 L_4702F52F:
   4091     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F52F: test cl, cl */
   4092     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4093     _cf = 0;
   4094     _flag_k = FK_NARROW(FK_TEST, 24);
   4095     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F547; /* 0x4702F531: je 0x4702f547 */
   4096 L_4702F533:
   4097     SET_LO8(edx, MEM8(eax + 0x1)); /* 0x4702F533: mov dl, byte ptr [eax + 1] */
   4098     SET_LO8(ecx, LO8(edx)); /* 0x4702F536: mov cl, dl */
   4099     /* cmp LO8(edx), MEM8(esi + 0x1) */ /* 0x4702F538: cmp dl, byte ptr [esi + 1] */
   4100     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   4101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4102     _flag_k = FK_NARROW(FK_CMP, 24);
   4103     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F54B; /* 0x4702F53B: jne 0x4702f54b */
   4104 L_4702F53D:
   4105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   4106     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4107     eax = eax + 2; /* 0x4702F53D: add eax, 2 */
   4108     _flag_k = FK_ADD;
   4109     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   4110     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4111     esi = esi + 2; /* 0x4702F540: add esi, 2 */
   4112     _flag_k = FK_ADD;
   4113     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F543: test cl, cl */
   4114     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4115     _cf = 0;
   4116     _flag_k = FK_NARROW(FK_TEST, 24);
   4117     RECOMP_BACKEDGE();
   4118     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F527; /* 0x4702F545: jne 0x4702f527 */
   4119 L_4702F547:
   4120     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4121     eax = 0; /* 0x4702F547: xor eax, eax */
   4122     _cf = 0;
   4123     _flag_k = FK_TEST;
   4124     goto L_4702F550; /* 0x4702F549: jmp 0x4702f550 */
   4125 L_4702F54B:
   4126     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702F54B: sbb eax, eax */
   4127       eax = _sc ? 0xFFFFFFFFu : 0;
   4128       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4129       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4130     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4702F54D: sbb eax, -1 */
   4131       eax = _sa - _sb - _sc;
   4132       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4133       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4134 L_4702F550:
   4135     /* test eax, eax */ /* 0x4702F550: test eax, eax */
   4136     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4137     _cf = 0;
   4138     _flag_k = FK_TEST;
   4139     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F55B; /* 0x4702F552: je 0x4702f55b */
   4140 L_4702F554:
   4141     edi = MEM32(edi + 0x8); /* 0x4702F554: mov edi, dword ptr [edi + 8] */
   4142     /* cmp edi, ebp */ /* 0x4702F557: cmp edi, ebp */
   4143     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   4144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4145     _flag_k = FK_CMP;
   4146     RECOMP_BACKEDGE();
   4147     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F521; /* 0x4702F559: jne 0x4702f521 */
   4148 L_4702F55B:
   4149     /* cmp edi, ebp */ /* 0x4702F55B: cmp edi, ebp */
   4150     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   4151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4152     _flag_k = FK_CMP;
   4153     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F57F; /* 0x4702F55D: jne 0x4702f57f */
   4154 L_4702F55F:
   4155     esi = MEM32(0x470AC3C8); /* 0x4702F55F: mov esi, dword ptr [0x470ac3c8] */
   4156     RECOMP_ICALL(esi); /* 0x4702F565: call esi */
   4157     RECOMP_FLAGS_IN();
   4158     MEM32(eax) = 2; /* 0x4702F567: mov dword ptr [eax], 2 */
   4159     RECOMP_ICALL(esi); /* 0x4702F56D: call esi */
   4160     RECOMP_FLAGS_IN();
   4161     edi = POP32_VAL(esp); /* 0x4702F56F: pop edi */
   4162     esi = POP32_VAL(esp); /* 0x4702F570: pop esi */
   4163     ebp = POP32_VAL(esp); /* 0x4702F571: pop ebp */
   4164     MEM32(eax) = 2; /* 0x4702F572: mov dword ptr [eax], 2 */
   4165     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4166     eax = eax | 0xFFFFFFFFu; /* 0x4702F578: or eax, 0xffffffff */
   4167     _cf = 0;
   4168     _flag_k = FK_TEST;
   4169     ebx = POP32_VAL(esp); /* 0x4702F57B: pop ebx */
   4170     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702F57C: ret 8 */
   4171 L_4702F57F:
   4172     /* test edi, edi */ /* 0x4702F57F: test edi, edi */
   4173     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4174     _cf = 0;
   4175     _flag_k = FK_TEST;
   4176     eax = MEM32(edi + 0x4); /* 0x4702F581: mov eax, dword ptr [edi + 4] */
   4177     ecx = MEM32(esp + 0x18); /* 0x4702F584: mov ecx, dword ptr [esp + 0x18] */
   4178     MEM32(ecx) = eax; /* 0x4702F588: mov dword ptr [ecx], eax */
   4179     edx = MEM32(edi + 0x8); /* 0x4702F58A: mov edx, dword ptr [edi + 8] */
   4180     eax = MEM32(edi + 0xC); /* 0x4702F58D: mov eax, dword ptr [edi + 0xc] */
   4181     MEM32(edx + 0xC) = eax; /* 0x4702F590: mov dword ptr [edx + 0xc], eax */
   4182     ecx = MEM32(edi + 0xC); /* 0x4702F593: mov ecx, dword ptr [edi + 0xc] */
   4183     edx = MEM32(edi + 0x8); /* 0x4702F596: mov edx, dword ptr [edi + 8] */
   4184     MEM32(ecx + 0x8) = edx; /* 0x4702F599: mov dword ptr [ecx + 8], edx */
   4185     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F5B2; /* 0x4702F59C: je 0x4702f5b2 */
   4186 L_4702F59E:
   4187     eax = MEM32(edi); /* 0x4702F59E: mov eax, dword ptr [edi] */
   4188     PUSH32(esp, eax); /* 0x4702F5A0: push eax */
   4189     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x4702F5A1: call dword ptr [0x470ac390] */
   4190     RECOMP_FLAGS_IN();
   4191     ecx = MEM32(ebx); /* 0x4702F5A7: mov ecx, dword ptr [ebx] */
   4192     edx = MEM32(ecx); /* 0x4702F5A9: mov edx, dword ptr [ecx] */
   4193     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4194     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4195     esp = esp + 4; /* 0x4702F5AB: add esp, 4 */
   4196     _flag_k = FK_ADD;
   4197     PUSH32(esp, edi); /* 0x4702F5AE: push edi */
   4198     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4702F5AF: call dword ptr [edx + 0xc] */
   4199     RECOMP_FLAGS_IN();
   4200 L_4702F5B2:
   4201     eax = MEM32(ebx + 0x10); /* 0x4702F5B2: mov eax, dword ptr [ebx + 0x10] */
   4202     edi = POP32_VAL(esp); /* 0x4702F5B5: pop edi */
   4203     esi = POP32_VAL(esp); /* 0x4702F5B6: pop esi */
   4204     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4205     eax = eax - 1; /* 0x4702F5B7: dec eax */
   4206     _flag_k = FK_DEC;
   4207     MEM32(ebx + 0x10) = eax; /* 0x4702F5B8: mov dword ptr [ebx + 0x10], eax */
   4208     ebp = POP32_VAL(esp); /* 0x4702F5BB: pop ebp */
   4209     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4210     eax = 0; /* 0x4702F5BC: xor eax, eax */
   4211     _cf = 0;
   4212     _flag_k = FK_TEST;
   4213     ebx = POP32_VAL(esp); /* 0x4702F5BE: pop ebx */
   4214     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702F5BF: ret 8 */
   4215     RECOMP_REGS_OUT();
   4216 }
   4217 
   4218 void sub_4702F5D0(void) {
   4219     int _fpu_cmp = 0;
   4220     uint32_t _cf = 0;
   4221     int _df = 1;
   4222     uint32_t _flag_k = FK_NONE;
   4223     uint32_t _flag_a = 0, _flag_b = 0;
   4224     uint32_t _itail_tgt = 0;
   4225     RECOMP_REGS_LOCALS
   4226     RECOMP_ENTER(0x4702F5D0u);
   4227 
   4228 L_4702F5D0:
   4229     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4231     esp = esp - 8; /* 0x4702F5D0: sub esp, 8 */
   4232     _flag_k = FK_CMP;
   4233     PUSH32(esp, ebx); /* 0x4702F5D3: push ebx */
   4234     PUSH32(esp, ebp); /* 0x4702F5D4: push ebp */
   4235     PUSH32(esp, esi); /* 0x4702F5D5: push esi */
   4236     esi = MEM32(esp + 0x18); /* 0x4702F5D6: mov esi, dword ptr [esp + 0x18] */
   4237     eax = MEM32(esi); /* 0x4702F5DA: mov eax, dword ptr [esi] */
   4238     PUSH32(esp, edi); /* 0x4702F5DC: push edi */
   4239     PUSH32(esp, eax); /* 0x4702F5DD: push eax */
   4240     edi = ecx; /* 0x4702F5DE: mov edi, ecx */
   4241     RECOMP_ICALL(0x4700B4C0u); /* 0x4702F5E0: call 0x4700b4c0 */ /* not lifted */
   4242     RECOMP_FLAGS_IN();
   4243     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4244     edx = 0; /* 0x4702F5E5: xor edx, edx */
   4245     _cf = 0;
   4246     _flag_k = FK_TEST;
   4247     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(edi + 0xC); /* 0x4702F5E7: div dword ptr [edi + 0xc] */
   4248       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   4249       else { eax = 0; edx = 0; } }
   4250     eax = MEM32(edi + 0x8); /* 0x4702F5EA: mov eax, dword ptr [edi + 8] */
   4251     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4253     esp = esp + 4; /* 0x4702F5ED: add esp, 4 */
   4254     _flag_k = FK_ADD;
   4255     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x4702F5F0: shl edx, 4 */
   4256     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4257     edx = edx << 4u; /* 0x4702F5F0: shl edx, 4 */
   4258     ebp = MEM32(edx + eax + 0x8); /* 0x4702F5F3: mov ebp, dword ptr [edx + eax + 8] */
   4259     MEM32(esp + 0x10) = edx; /* 0x4702F5F7: mov dword ptr [esp + 0x10], edx */
   4260     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4261     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4262     edx = edx + eax; /* 0x4702F5FB: add edx, eax */
   4263     _flag_k = FK_ADD;
   4264     /* cmp ebp, edx */ /* 0x4702F5FD: cmp ebp, edx */
   4265     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   4266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4267     _flag_k = FK_CMP;
   4268     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F646; /* 0x4702F5FF: je 0x4702f646 */
   4269 L_4702F601:
   4270     ecx = MEM32(esi); /* 0x4702F601: mov ecx, dword ptr [esi] */
   4271     MEM32(esp + 0x14) = ecx; /* 0x4702F603: mov dword ptr [esp + 0x14], ecx */
   4272 L_4702F607:
   4273     esi = MEM32(esp + 0x14); /* 0x4702F607: mov esi, dword ptr [esp + 0x14] */
   4274     eax = MEM32(ebp); /* 0x4702F60B: mov eax, dword ptr [ebp] */
   4275 L_4702F60E:
   4276     SET_LO8(ebx, MEM8(eax)); /* 0x4702F60E: mov bl, byte ptr [eax] */
   4277     SET_LO8(ecx, LO8(ebx)); /* 0x4702F610: mov cl, bl */
   4278     /* cmp LO8(ebx), MEM8(esi) */ /* 0x4702F612: cmp bl, byte ptr [esi] */
   4279     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   4280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4281     _flag_k = FK_NARROW(FK_CMP, 24);
   4282     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F632; /* 0x4702F614: jne 0x4702f632 */
   4283 L_4702F616:
   4284     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F616: test cl, cl */
   4285     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4286     _cf = 0;
   4287     _flag_k = FK_NARROW(FK_TEST, 24);
   4288     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F62E; /* 0x4702F618: je 0x4702f62e */
   4289 L_4702F61A:
   4290     SET_LO8(ebx, MEM8(eax + 0x1)); /* 0x4702F61A: mov bl, byte ptr [eax + 1] */
   4291     SET_LO8(ecx, LO8(ebx)); /* 0x4702F61D: mov cl, bl */
   4292     /* cmp LO8(ebx), MEM8(esi + 0x1) */ /* 0x4702F61F: cmp bl, byte ptr [esi + 1] */
   4293     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   4294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4295     _flag_k = FK_NARROW(FK_CMP, 24);
   4296     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F632; /* 0x4702F622: jne 0x4702f632 */
   4297 L_4702F624:
   4298     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   4299     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4300     eax = eax + 2; /* 0x4702F624: add eax, 2 */
   4301     _flag_k = FK_ADD;
   4302     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   4303     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4304     esi = esi + 2; /* 0x4702F627: add esi, 2 */
   4305     _flag_k = FK_ADD;
   4306     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F62A: test cl, cl */
   4307     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4308     _cf = 0;
   4309     _flag_k = FK_NARROW(FK_TEST, 24);
   4310     RECOMP_BACKEDGE();
   4311     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F60E; /* 0x4702F62C: jne 0x4702f60e */
   4312 L_4702F62E:
   4313     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4314     eax = 0; /* 0x4702F62E: xor eax, eax */
   4315     _cf = 0;
   4316     _flag_k = FK_TEST;
   4317     goto L_4702F637; /* 0x4702F630: jmp 0x4702f637 */
   4318 L_4702F632:
   4319     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702F632: sbb eax, eax */
   4320       eax = _sc ? 0xFFFFFFFFu : 0;
   4321       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4322       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4323     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4702F634: sbb eax, -1 */
   4324       eax = _sa - _sb - _sc;
   4325       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4326       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4327 L_4702F637:
   4328     /* test eax, eax */ /* 0x4702F637: test eax, eax */
   4329     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4330     _cf = 0;
   4331     _flag_k = FK_TEST;
   4332     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F642; /* 0x4702F639: je 0x4702f642 */
   4333 L_4702F63B:
   4334     ebp = MEM32(ebp + 0x8); /* 0x4702F63B: mov ebp, dword ptr [ebp + 8] */
   4335     /* cmp ebp, edx */ /* 0x4702F63E: cmp ebp, edx */
   4336     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   4337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4338     _flag_k = FK_CMP;
   4339     RECOMP_BACKEDGE();
   4340     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F607; /* 0x4702F640: jne 0x4702f607 */
   4341 L_4702F642:
   4342     /* cmp ebp, edx */ /* 0x4702F642: cmp ebp, edx */
   4343     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   4344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4345     _flag_k = FK_CMP;
   4346     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F678; /* 0x4702F644: jne 0x4702f678 */
   4347 L_4702F646:
   4348     ebp = MEM32(0x470AC3C8); /* 0x4702F646: mov ebp, dword ptr [0x470ac3c8] */
   4349     RECOMP_ICALL(ebp); /* 0x4702F64C: call ebp */
   4350     RECOMP_FLAGS_IN();
   4351     MEM32(eax) = 2; /* 0x4702F64E: mov dword ptr [eax], 2 */
   4352     ecx = MEM32(edi); /* 0x4702F654: mov ecx, dword ptr [edi] */
   4353     eax = MEM32(ecx); /* 0x4702F656: mov eax, dword ptr [ecx] */
   4354     PUSH32(esp, 0x10u); /* 0x4702F658: push 0x10 */
   4355     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4702F65A: call dword ptr [eax + 4] */
   4356     RECOMP_FLAGS_IN();
   4357     esi = eax; /* 0x4702F65D: mov esi, eax */
   4358     /* test esi, esi */ /* 0x4702F65F: test esi, esi */
   4359     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4360     _cf = 0;
   4361     _flag_k = FK_TEST;
   4362     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F68D; /* 0x4702F661: jne 0x4702f68d */
   4363 L_4702F663:
   4364     RECOMP_ICALL(ebp); /* 0x4702F663: call ebp */
   4365     RECOMP_FLAGS_IN();
   4366     edi = POP32_VAL(esp); /* 0x4702F665: pop edi */
   4367     esi = POP32_VAL(esp); /* 0x4702F666: pop esi */
   4368     ebp = POP32_VAL(esp); /* 0x4702F667: pop ebp */
   4369     MEM32(eax) = 0xCu; /* 0x4702F668: mov dword ptr [eax], 0xc */
   4370     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4371     eax = eax | 0xFFFFFFFFu; /* 0x4702F66E: or eax, 0xffffffff */
   4372     _cf = 0;
   4373     _flag_k = FK_TEST;
   4374     ebx = POP32_VAL(esp); /* 0x4702F671: pop ebx */
   4375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4377     esp = esp + 8; /* 0x4702F672: add esp, 8 */
   4378     _flag_k = FK_ADD;
   4379     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702F675: ret 0xc */
   4380 L_4702F678:
   4381     edx = MEM32(esp + 0x24); /* 0x4702F678: mov edx, dword ptr [esp + 0x24] */
   4382     edi = POP32_VAL(esp); /* 0x4702F67C: pop edi */
   4383     esi = POP32_VAL(esp); /* 0x4702F67D: pop esi */
   4384     MEM32(edx) = ebp; /* 0x4702F67E: mov dword ptr [edx], ebp */
   4385     ebp = POP32_VAL(esp); /* 0x4702F680: pop ebp */
   4386     eax = 1; /* 0x4702F681: mov eax, 1 */
   4387     ebx = POP32_VAL(esp); /* 0x4702F686: pop ebx */
   4388     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4390     esp = esp + 8; /* 0x4702F687: add esp, 8 */
   4391     _flag_k = FK_ADD;
   4392     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702F68A: ret 0xc */
   4393 L_4702F68D:
   4394     eax = MEM32(esp + 0x1C); /* 0x4702F68D: mov eax, dword ptr [esp + 0x1c] */
   4395     ecx = MEM32(edi + 0x8); /* 0x4702F691: mov ecx, dword ptr [edi + 8] */
   4396     edx = MEM32(esp + 0x10); /* 0x4702F694: mov edx, dword ptr [esp + 0x10] */
   4397     eax = MEM32(eax); /* 0x4702F698: mov eax, dword ptr [eax] */
   4398     /* test eax, eax */ /* 0x4702F69A: test eax, eax */
   4399     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4400     _cf = 0;
   4401     _flag_k = FK_TEST;
   4402     ebp = MEM32(ecx + edx + 0x8); /* 0x4702F69C: mov ebp, dword ptr [ecx + edx + 8] */
   4403     ebx = ecx + edx; /* 0x4702F6A0: lea ebx, [ecx + edx] */
   4404     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F6A8; /* 0x4702F6A3: je 0x4702f6a8 */
   4405 L_4702F6A5:
   4406     PUSH32(esp, eax); /* 0x4702F6A5: push eax */
   4407     goto L_4702F6AD; /* 0x4702F6A6: jmp 0x4702f6ad */
   4408 L_4702F6A8:
   4409     PUSH32(esp, 0x4710DE90u); /* 0x4702F6A8: push 0x4710de90 */
   4410 L_4702F6AD:
   4411     RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x4702F6AD: call dword ptr [0x470ac3f4] */
   4412     RECOMP_FLAGS_IN();
   4413     ecx = MEM32(esp + 0x24); /* 0x4702F6B3: mov ecx, dword ptr [esp + 0x24] */
   4414     MEM32(esi) = eax; /* 0x4702F6B7: mov dword ptr [esi], eax */
   4415     edx = MEM32(ecx); /* 0x4702F6B9: mov edx, dword ptr [ecx] */
   4416     eax = MEM32(esp + 0x28); /* 0x4702F6BB: mov eax, dword ptr [esp + 0x28] */
   4417     MEM32(esi + 0x4) = edx; /* 0x4702F6BF: mov dword ptr [esi + 4], edx */
   4418     edx = MEM32(esp + 0x14); /* 0x4702F6C2: mov edx, dword ptr [esp + 0x14] */
   4419     MEM32(esi + 0x8) = ebp; /* 0x4702F6C6: mov dword ptr [esi + 8], ebp */
   4420     MEM32(esi + 0xC) = ebx; /* 0x4702F6C9: mov dword ptr [esi + 0xc], ebx */
   4421     MEM32(eax) = esi; /* 0x4702F6CC: mov dword ptr [eax], esi */
   4422     ecx = MEM32(edi + 0x8); /* 0x4702F6CE: mov ecx, dword ptr [edi + 8] */
   4423     MEM32(ecx + edx + 0x8) = esi; /* 0x4702F6D1: mov dword ptr [ecx + edx + 8], esi */
   4424     eax = MEM32(eax); /* 0x4702F6D5: mov eax, dword ptr [eax] */
   4425     ecx = MEM32(eax + 0x8); /* 0x4702F6D7: mov ecx, dword ptr [eax + 8] */
   4426     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4427     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4428     esp = esp + 4; /* 0x4702F6DA: add esp, 4 */
   4429     _flag_k = FK_ADD;
   4430     MEM32(ecx + 0xC) = eax; /* 0x4702F6DD: mov dword ptr [ecx + 0xc], eax */
   4431     _flag_a = (uint32_t)(MEM32(edi + 0x10)); _flag_b = (uint32_t)(1);
   4432     MEM32(edi + 0x10) = MEM32(edi + 0x10) + 1; /* 0x4702F6E0: inc dword ptr [edi + 0x10] */
   4433     _flag_k = FK_INC;
   4434     edi = POP32_VAL(esp); /* 0x4702F6E3: pop edi */
   4435     esi = POP32_VAL(esp); /* 0x4702F6E4: pop esi */
   4436     ebp = POP32_VAL(esp); /* 0x4702F6E5: pop ebp */
   4437     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4438     eax = 0; /* 0x4702F6E6: xor eax, eax */
   4439     _cf = 0;
   4440     _flag_k = FK_TEST;
   4441     ebx = POP32_VAL(esp); /* 0x4702F6E8: pop ebx */
   4442     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4443     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4444     esp = esp + 8; /* 0x4702F6E9: add esp, 8 */
   4445     _flag_k = FK_ADD;
   4446     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702F6EC: ret 0xc */
   4447     RECOMP_REGS_OUT();
   4448 }
   4449 
   4450 void sub_4702F6F0(void) {
   4451     int _fpu_cmp = 0;
   4452     uint32_t _cf = 0;
   4453     int _df = 1;
   4454     uint32_t _flag_k = FK_NONE;
   4455     uint32_t _flag_a = 0, _flag_b = 0;
   4456     uint32_t _itail_tgt = 0;
   4457     RECOMP_REGS_LOCALS
   4458     RECOMP_ENTER(0x4702F6F0u);
   4459 
   4460 L_4702F6F0:
   4461     PUSH32(esp, ecx); /* 0x4702F6F0: push ecx */
   4462     PUSH32(esp, esi); /* 0x4702F6F1: push esi */
   4463     esi = ecx; /* 0x4702F6F2: mov esi, ecx */
   4464     eax = MEM32(esi + 0x8); /* 0x4702F6F4: mov eax, dword ptr [esi + 8] */
   4465     PUSH32(esp, edi); /* 0x4702F6F7: push edi */
   4466     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4467     edi = 0; /* 0x4702F6F8: xor edi, edi */
   4468     _cf = 0;
   4469     _flag_k = FK_TEST;
   4470     /* cmp eax, edi */ /* 0x4702F6FA: cmp eax, edi */
   4471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4473     _flag_k = FK_CMP;
   4474     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F784; /* 0x4702F6FC: je 0x4702f784 */
   4475 L_4702F702:
   4476     /* cmp MEM32(esi + 0xC), edi */ /* 0x4702F702: cmp dword ptr [esi + 0xc], edi */
   4477     _flag_a = (uint32_t)(MEM32(esi + 0xC)); _flag_b = (uint32_t)(edi);
   4478     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4479     _flag_k = FK_CMP;
   4480     MEM32(esp + 0x8) = edi; /* 0x4702F705: mov dword ptr [esp + 8], edi */
   4481     if (CMP_BE(_flag_a, _flag_b)) goto L_4702F770; /* 0x4702F709: jbe 0x4702f770 */
   4482 L_4702F70B:
   4483     PUSH32(esp, ebx); /* 0x4702F70B: push ebx */
   4484     PUSH32(esp, ebp); /* 0x4702F70C: push ebp */
   4485     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4486     ebp = 0; /* 0x4702F70D: xor ebp, ebp */
   4487     _cf = 0;
   4488     _flag_k = FK_TEST;
   4489 L_4702F70F:
   4490     eax = MEM32(esi + 0x8); /* 0x4702F70F: mov eax, dword ptr [esi + 8] */
   4491     ebx = MEM32(eax + ebp + 0x8); /* 0x4702F712: mov ebx, dword ptr [eax + ebp + 8] */
   4492     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   4493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4494     eax = eax + ebp; /* 0x4702F716: add eax, ebp */
   4495     _flag_k = FK_ADD;
   4496     /* cmp ebx, eax */ /* 0x4702F718: cmp ebx, eax */
   4497     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   4498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4499     _flag_k = FK_CMP;
   4500     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F746; /* 0x4702F71A: je 0x4702f746 */
   4501 L_4702F71C:
   4502     edi = ebx; /* 0x4702F71C: mov edi, ebx */
   4503     /* test edi, edi */ /* 0x4702F71E: test edi, edi */
   4504     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4505     _cf = 0;
   4506     _flag_k = FK_TEST;
   4507     ebx = MEM32(ebx + 0x8); /* 0x4702F720: mov ebx, dword ptr [ebx + 8] */
   4508     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F739; /* 0x4702F723: je 0x4702f739 */
   4509 L_4702F725:
   4510     ecx = MEM32(edi); /* 0x4702F725: mov ecx, dword ptr [edi] */
   4511     PUSH32(esp, ecx); /* 0x4702F727: push ecx */
   4512     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x4702F728: call dword ptr [0x470ac390] */
   4513     RECOMP_FLAGS_IN();
   4514     ecx = MEM32(esi); /* 0x4702F72E: mov ecx, dword ptr [esi] */
   4515     edx = MEM32(ecx); /* 0x4702F730: mov edx, dword ptr [ecx] */
   4516     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4517     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4518     esp = esp + 4; /* 0x4702F732: add esp, 4 */
   4519     _flag_k = FK_ADD;
   4520     PUSH32(esp, edi); /* 0x4702F735: push edi */
   4521     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4702F736: call dword ptr [edx + 0xc] */
   4522     RECOMP_FLAGS_IN();
   4523 L_4702F739:
   4524     edx = MEM32(esi + 0x8); /* 0x4702F739: mov edx, dword ptr [esi + 8] */
   4525     eax = ebp; /* 0x4702F73C: mov eax, ebp */
   4526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4528     eax = eax + edx; /* 0x4702F73E: add eax, edx */
   4529     _flag_k = FK_ADD;
   4530     /* cmp ebx, eax */ /* 0x4702F740: cmp ebx, eax */
   4531     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   4532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4533     _flag_k = FK_CMP;
   4534     RECOMP_BACKEDGE();
   4535     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F71C; /* 0x4702F742: jne 0x4702f71c */
   4536 L_4702F744:
   4537     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4538     edi = 0; /* 0x4702F744: xor edi, edi */
   4539     _cf = 0;
   4540     _flag_k = FK_TEST;
   4541 L_4702F746:
   4542     ecx = MEM32(esi + 0x8); /* 0x4702F746: mov ecx, dword ptr [esi + 8] */
   4543     eax = ebp; /* 0x4702F749: mov eax, ebp */
   4544     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4546     eax = eax + ecx; /* 0x4702F74B: add eax, ecx */
   4547     _flag_k = FK_ADD;
   4548     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_4702F75B; /* 0x4702F74D: je 0x4702f75b */
   4549 L_4702F74F:
   4550     ecx = MEM32(eax); /* 0x4702F74F: mov ecx, dword ptr [eax] */
   4551     PUSH32(esp, ecx); /* 0x4702F751: push ecx */
   4552     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x4702F752: call dword ptr [0x470ac390] */
   4553     RECOMP_FLAGS_IN();
   4554     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4555     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4556     esp = esp + 4; /* 0x4702F758: add esp, 4 */
   4557     _flag_k = FK_ADD;
   4558 L_4702F75B:
   4559     eax = MEM32(esp + 0x10); /* 0x4702F75B: mov eax, dword ptr [esp + 0x10] */
   4560     ecx = MEM32(esi + 0xC); /* 0x4702F75F: mov ecx, dword ptr [esi + 0xc] */
   4561     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4562     eax = eax + 1; /* 0x4702F762: inc eax */
   4563     _flag_k = FK_INC;
   4564     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x10u);
   4565     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4566     ebp = ebp + 0x10u; /* 0x4702F763: add ebp, 0x10 */
   4567     _flag_k = FK_ADD;
   4568     /* cmp eax, ecx */ /* 0x4702F766: cmp eax, ecx */
   4569     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4571     _flag_k = FK_CMP;
   4572     MEM32(esp + 0x10) = eax; /* 0x4702F768: mov dword ptr [esp + 0x10], eax */
   4573     RECOMP_BACKEDGE();
   4574     if (CMP_B(_flag_a, _flag_b)) goto L_4702F70F; /* 0x4702F76C: jb 0x4702f70f */
   4575 L_4702F76E:
   4576     ebp = POP32_VAL(esp); /* 0x4702F76E: pop ebp */
   4577     ebx = POP32_VAL(esp); /* 0x4702F76F: pop ebx */
   4578 L_4702F770:
   4579     ecx = MEM32(esi); /* 0x4702F770: mov ecx, dword ptr [esi] */
   4580     eax = MEM32(esi + 0x8); /* 0x4702F772: mov eax, dword ptr [esi + 8] */
   4581     edx = MEM32(ecx); /* 0x4702F775: mov edx, dword ptr [ecx] */
   4582     PUSH32(esp, eax); /* 0x4702F777: push eax */
   4583     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4702F778: call dword ptr [edx + 0xc] */
   4584     RECOMP_FLAGS_IN();
   4585     MEM32(esi + 0x10) = edi; /* 0x4702F77B: mov dword ptr [esi + 0x10], edi */
   4586     MEM32(esi + 0xC) = edi; /* 0x4702F77E: mov dword ptr [esi + 0xc], edi */
   4587     MEM32(esi + 0x8) = edi; /* 0x4702F781: mov dword ptr [esi + 8], edi */
   4588 L_4702F784:
   4589     edi = POP32_VAL(esp); /* 0x4702F784: pop edi */
   4590     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4591     eax = 0; /* 0x4702F785: xor eax, eax */
   4592     _cf = 0;
   4593     _flag_k = FK_TEST;
   4594     esi = POP32_VAL(esp); /* 0x4702F787: pop esi */
   4595     ecx = POP32_VAL(esp); /* 0x4702F788: pop ecx */
   4596     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F789: ret  */
   4597     RECOMP_REGS_OUT();
   4598 }
   4599 
   4600 void sub_4702F790(void) {
   4601     int _fpu_cmp = 0;
   4602     uint32_t _cf = 0;
   4603     int _df = 1;
   4604     uint32_t _flag_k = FK_NONE;
   4605     uint32_t _flag_a = 0, _flag_b = 0;
   4606     uint32_t _itail_tgt = 0;
   4607     RECOMP_REGS_LOCALS
   4608     RECOMP_ENTER(0x4702F790u);
   4609 
   4610 L_4702F790:
   4611     PUSH32(esp, ebx); /* 0x4702F790: push ebx */
   4612     ebx = MEM32(esp + 0x8); /* 0x4702F791: mov ebx, dword ptr [esp + 8] */
   4613     eax = MEM32(ebx); /* 0x4702F795: mov eax, dword ptr [ebx] */
   4614     PUSH32(esp, ebp); /* 0x4702F797: push ebp */
   4615     PUSH32(esp, esi); /* 0x4702F798: push esi */
   4616     PUSH32(esp, edi); /* 0x4702F799: push edi */
   4617     PUSH32(esp, eax); /* 0x4702F79A: push eax */
   4618     esi = ecx; /* 0x4702F79B: mov esi, ecx */
   4619     RECOMP_ICALL(0x4700B4C0u); /* 0x4702F79D: call 0x4700b4c0 */ /* not lifted */
   4620     RECOMP_FLAGS_IN();
   4621     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4622     edx = 0; /* 0x4702F7A2: xor edx, edx */
   4623     _cf = 0;
   4624     _flag_k = FK_TEST;
   4625     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(esi + 0xC); /* 0x4702F7A4: div dword ptr [esi + 0xc] */
   4626       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   4627       else { eax = 0; edx = 0; } }
   4628     eax = MEM32(esp + 0x20); /* 0x4702F7A7: mov eax, dword ptr [esp + 0x20] */
   4629     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4631     esp = esp + 4; /* 0x4702F7AB: add esp, 4 */
   4632     _flag_k = FK_ADD;
   4633     MEM32(eax) = edx; /* 0x4702F7AE: mov dword ptr [eax], edx */
   4634     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x4702F7B0: shl edx, 4 */
   4635     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4636     edx = edx << 4u; /* 0x4702F7B0: shl edx, 4 */
   4637     ebp = edx; /* 0x4702F7B3: mov ebp, edx */
   4638     edx = MEM32(esi + 0x8); /* 0x4702F7B5: mov edx, dword ptr [esi + 8] */
   4639     edi = MEM32(edx + ebp + 0x8); /* 0x4702F7B8: mov edi, dword ptr [edx + ebp + 8] */
   4640     eax = edx + ebp; /* 0x4702F7BC: lea eax, [edx + ebp] */
   4641     /* cmp edi, eax */ /* 0x4702F7BF: cmp edi, eax */
   4642     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4644     _flag_k = FK_CMP;
   4645     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702F806; /* 0x4702F7C1: je 0x4702f806 */
   4646 L_4702F7C3:
   4647     ecx = MEM32(ebx); /* 0x4702F7C3: mov ecx, dword ptr [ebx] */
   4648     MEM32(esp + 0x14) = ecx; /* 0x4702F7C5: mov dword ptr [esp + 0x14], ecx */
   4649 L_4702F7C9:
   4650     esi = MEM32(esp + 0x14); /* 0x4702F7C9: mov esi, dword ptr [esp + 0x14] */
   4651     eax = MEM32(edi); /* 0x4702F7CD: mov eax, dword ptr [edi] */
   4652 L_4702F7CF:
   4653     SET_LO8(ebx, MEM8(eax)); /* 0x4702F7CF: mov bl, byte ptr [eax] */
   4654     SET_LO8(ecx, LO8(ebx)); /* 0x4702F7D1: mov cl, bl */
   4655     /* cmp LO8(ebx), MEM8(esi) */ /* 0x4702F7D3: cmp bl, byte ptr [esi] */
   4656     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   4657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4658     _flag_k = FK_NARROW(FK_CMP, 24);
   4659     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F7F3; /* 0x4702F7D5: jne 0x4702f7f3 */
   4660 L_4702F7D7:
   4661     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F7D7: test cl, cl */
   4662     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4663     _cf = 0;
   4664     _flag_k = FK_NARROW(FK_TEST, 24);
   4665     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F7EF; /* 0x4702F7D9: je 0x4702f7ef */
   4666 L_4702F7DB:
   4667     SET_LO8(ebx, MEM8(eax + 0x1)); /* 0x4702F7DB: mov bl, byte ptr [eax + 1] */
   4668     SET_LO8(ecx, LO8(ebx)); /* 0x4702F7DE: mov cl, bl */
   4669     /* cmp LO8(ebx), MEM8(esi + 0x1) */ /* 0x4702F7E0: cmp bl, byte ptr [esi + 1] */
   4670     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   4671     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4672     _flag_k = FK_NARROW(FK_CMP, 24);
   4673     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F7F3; /* 0x4702F7E3: jne 0x4702f7f3 */
   4674 L_4702F7E5:
   4675     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   4676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4677     eax = eax + 2; /* 0x4702F7E5: add eax, 2 */
   4678     _flag_k = FK_ADD;
   4679     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   4680     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4681     esi = esi + 2; /* 0x4702F7E8: add esi, 2 */
   4682     _flag_k = FK_ADD;
   4683     /* test LO8(ecx), LO8(ecx) */ /* 0x4702F7EB: test cl, cl */
   4684     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4685     _cf = 0;
   4686     _flag_k = FK_NARROW(FK_TEST, 24);
   4687     RECOMP_BACKEDGE();
   4688     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702F7CF; /* 0x4702F7ED: jne 0x4702f7cf */
   4689 L_4702F7EF:
   4690     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4691     eax = 0; /* 0x4702F7EF: xor eax, eax */
   4692     _cf = 0;
   4693     _flag_k = FK_TEST;
   4694     goto L_4702F7F8; /* 0x4702F7F1: jmp 0x4702f7f8 */
   4695 L_4702F7F3:
   4696     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702F7F3: sbb eax, eax */
   4697       eax = _sc ? 0xFFFFFFFFu : 0;
   4698       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4699       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4700     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4702F7F5: sbb eax, -1 */
   4701       eax = _sa - _sb - _sc;
   4702       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4703       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4704 L_4702F7F8:
   4705     /* test eax, eax */ /* 0x4702F7F8: test eax, eax */
   4706     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4707     _cf = 0;
   4708     _flag_k = FK_TEST;
   4709     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F806; /* 0x4702F7FA: je 0x4702f806 */
   4710 L_4702F7FC:
   4711     edi = MEM32(edi + 0x8); /* 0x4702F7FC: mov edi, dword ptr [edi + 8] */
   4712     eax = edx + ebp; /* 0x4702F7FF: lea eax, [edx + ebp] */
   4713     /* cmp edi, eax */ /* 0x4702F802: cmp edi, eax */
   4714     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4716     _flag_k = FK_CMP;
   4717     RECOMP_BACKEDGE();
   4718     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F7C9; /* 0x4702F804: jne 0x4702f7c9 */
   4719 L_4702F806:
   4720     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   4721     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4722     ebp = ebp + edx; /* 0x4702F806: add ebp, edx */
   4723     _flag_k = FK_ADD;
   4724     /* cmp edi, ebp */ /* 0x4702F808: cmp edi, ebp */
   4725     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   4726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4727     _flag_k = FK_CMP;
   4728     if (CMP_NE(_flag_a, _flag_b)) goto L_4702F822; /* 0x4702F80A: jne 0x4702f822 */
   4729 L_4702F80C:
   4730     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702F80C: call dword ptr [0x470ac3c8] */
   4731     RECOMP_FLAGS_IN();
   4732     edi = POP32_VAL(esp); /* 0x4702F812: pop edi */
   4733     esi = POP32_VAL(esp); /* 0x4702F813: pop esi */
   4734     ebp = POP32_VAL(esp); /* 0x4702F814: pop ebp */
   4735     MEM32(eax) = 2; /* 0x4702F815: mov dword ptr [eax], 2 */
   4736     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4737     eax = eax | 0xFFFFFFFFu; /* 0x4702F81B: or eax, 0xffffffff */
   4738     _cf = 0;
   4739     _flag_k = FK_TEST;
   4740     ebx = POP32_VAL(esp); /* 0x4702F81E: pop ebx */
   4741     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702F81F: ret 0xc */
   4742 L_4702F822:
   4743     ecx = MEM32(esp + 0x18); /* 0x4702F822: mov ecx, dword ptr [esp + 0x18] */
   4744     MEM32(ecx) = edi; /* 0x4702F826: mov dword ptr [ecx], edi */
   4745     edi = POP32_VAL(esp); /* 0x4702F828: pop edi */
   4746     esi = POP32_VAL(esp); /* 0x4702F829: pop esi */
   4747     ebp = POP32_VAL(esp); /* 0x4702F82A: pop ebp */
   4748     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4749     eax = 0; /* 0x4702F82B: xor eax, eax */
   4750     _cf = 0;
   4751     _flag_k = FK_TEST;
   4752     ebx = POP32_VAL(esp); /* 0x4702F82D: pop ebx */
   4753     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702F82E: ret 0xc */
   4754     RECOMP_REGS_OUT();
   4755 }
   4756 
   4757 void sub_4702F840(void) {
   4758     int _fpu_cmp = 0;
   4759     uint32_t _cf = 0;
   4760     int _df = 1;
   4761     uint32_t _flag_k = FK_NONE;
   4762     uint32_t _flag_a = 0, _flag_b = 0;
   4763     uint32_t _itail_tgt = 0;
   4764     RECOMP_REGS_LOCALS
   4765     RECOMP_ENTER(0x4702F840u);
   4766 
   4767 L_4702F840:
   4768     PUSH32(esp, esi); /* 0x4702F840: push esi */
   4769     esi = ecx; /* 0x4702F841: mov esi, ecx */
   4770     eax = MEM32(esi); /* 0x4702F843: mov eax, dword ptr [esi] */
   4771     PUSH32(esp, eax); /* 0x4702F845: push eax */
   4772     RECOMP_ICALL(MEM32(0x470AC390)); /* 0x4702F846: call dword ptr [0x470ac390] */
   4773     RECOMP_FLAGS_IN();
   4774     SET_LO8(eax, MEM8(esp + 0xC)); /* 0x4702F84C: mov al, byte ptr [esp + 0xc] */
   4775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4776     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4777     esp = esp + 4; /* 0x4702F850: add esp, 4 */
   4778     _flag_k = FK_ADD;
   4779     /* test LO8(eax), 1 */ /* 0x4702F853: test al, 1 */
   4780     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4781     _cf = 0;
   4782     _flag_k = FK_NARROW(FK_TEST, 24);
   4783     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F860; /* 0x4702F855: je 0x4702f860 */
   4784 L_4702F857:
   4785     PUSH32(esp, esi); /* 0x4702F857: push esi */
   4786     RECOMP_ICALL(0x470A32A2u); /* 0x4702F858: call 0x470a32a2 */ /* not lifted */
   4787     RECOMP_FLAGS_IN();
   4788     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4790     esp = esp + 4; /* 0x4702F85D: add esp, 4 */
   4791     _flag_k = FK_ADD;
   4792 L_4702F860:
   4793     eax = esi; /* 0x4702F860: mov eax, esi */
   4794     esi = POP32_VAL(esp); /* 0x4702F862: pop esi */
   4795     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702F863: ret 4 */
   4796     RECOMP_REGS_OUT();
   4797 }
   4798 
   4799 void sub_4702F870(void) {
   4800     int _fpu_cmp = 0;
   4801     uint32_t _cf = 0;
   4802     int _df = 1;
   4803     uint32_t _flag_k = FK_NONE;
   4804     uint32_t _flag_a = 0, _flag_b = 0;
   4805     uint32_t _itail_tgt = 0;
   4806     RECOMP_REGS_LOCALS
   4807     RECOMP_ENTER(0x4702F870u);
   4808 
   4809 L_4702F870:
   4810     ecx = 0x4710E2CDu; /* 0x4702F870: mov ecx, 0x4710e2cd */
   4811     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4702F875: call dword ptr [0x470ac1c8] */
   4812     RECOMP_FLAGS_IN();
   4813     PUSH32(esp, 0x4702F890u); /* 0x4702F87B: push 0x4702f890 */
   4814     RECOMP_ICALL(0x470A32D9u); /* 0x4702F880: call 0x470a32d9 */ /* not lifted */
   4815     RECOMP_FLAGS_IN();
   4816     ecx = POP32_VAL(esp); /* 0x4702F885: pop ecx */
   4817     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F886: ret  */
   4818     RECOMP_REGS_OUT();
   4819 }
   4820 
   4821 void sub_4702F890(void) {
   4822     int _fpu_cmp = 0;
   4823     uint32_t _cf = 0;
   4824     int _df = 1;
   4825     uint32_t _flag_k = FK_NONE;
   4826     uint32_t _flag_a = 0, _flag_b = 0;
   4827     uint32_t _itail_tgt = 0;
   4828     RECOMP_REGS_LOCALS
   4829     RECOMP_ENTER(0x4702F890u);
   4830 
   4831 L_4702F890:
   4832     ecx = 0x4710E2CDu; /* 0x4702F890: mov ecx, 0x4710e2cd */
   4833 L_4702F895:
   4834     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   4835     { RECOMP_REGS_OUT(); return; } /* end of function */
   4836   _ljump:
   4837     switch (_itail_tgt) {
   4838       case 0x4702F890u: goto L_4702F890;
   4839       case 0x4702F895u: goto L_4702F895;
   4840       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4841     }
   4842     RECOMP_REGS_OUT();
   4843 }
   4844 
   4845 void sub_4702F8A0(void) {
   4846     int _fpu_cmp = 0;
   4847     uint32_t _cf = 0;
   4848     int _df = 1;
   4849     uint32_t _flag_k = FK_NONE;
   4850     uint32_t _flag_a = 0, _flag_b = 0;
   4851     uint32_t _itail_tgt = 0;
   4852     RECOMP_REGS_LOCALS
   4853     RECOMP_ENTER(0x4702F8A0u);
   4854 
   4855 L_4702F8A0:
   4856     ecx = 0x4710E2CCu; /* 0x4702F8A0: mov ecx, 0x4710e2cc */
   4857     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4702F8A5: call dword ptr [0x470ac1c4] */
   4858     RECOMP_FLAGS_IN();
   4859     PUSH32(esp, 0x4702F8C0u); /* 0x4702F8AB: push 0x4702f8c0 */
   4860     RECOMP_ICALL(0x470A32D9u); /* 0x4702F8B0: call 0x470a32d9 */ /* not lifted */
   4861     RECOMP_FLAGS_IN();
   4862     ecx = POP32_VAL(esp); /* 0x4702F8B5: pop ecx */
   4863     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F8B6: ret  */
   4864     RECOMP_REGS_OUT();
   4865 }
   4866 
   4867 void sub_4702F8C0(void) {
   4868     int _fpu_cmp = 0;
   4869     uint32_t _cf = 0;
   4870     int _df = 1;
   4871     uint32_t _flag_k = FK_NONE;
   4872     uint32_t _flag_a = 0, _flag_b = 0;
   4873     uint32_t _itail_tgt = 0;
   4874     RECOMP_REGS_LOCALS
   4875     RECOMP_ENTER(0x4702F8C0u);
   4876 
   4877 L_4702F8C0:
   4878     ecx = 0x4710E2CCu; /* 0x4702F8C0: mov ecx, 0x4710e2cc */
   4879 L_4702F8C5:
   4880     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   4881     { RECOMP_REGS_OUT(); return; } /* end of function */
   4882   _ljump:
   4883     switch (_itail_tgt) {
   4884       case 0x4702F8C0u: goto L_4702F8C0;
   4885       case 0x4702F8C5u: goto L_4702F8C5;
   4886       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4887     }
   4888     RECOMP_REGS_OUT();
   4889 }
   4890 
   4891 void sub_4702F8D0(void) {
   4892     int _fpu_cmp = 0;
   4893     uint32_t _cf = 0;
   4894     int _df = 1;
   4895     uint32_t _flag_k = FK_NONE;
   4896     uint32_t _flag_a = 0, _flag_b = 0;
   4897     uint32_t _itail_tgt = 0;
   4898     RECOMP_REGS_LOCALS
   4899     RECOMP_ENTER(0x4702F8D0u);
   4900 
   4901 L_4702F8D0:
   4902     MEM32(0x4710E2D0) = 0x47105158u; /* 0x4702F8D0: mov dword ptr [0x4710e2d0], 0x47105158 */
   4903     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F8DA: ret  */
   4904     RECOMP_REGS_OUT();
   4905 }
   4906 
   4907 void sub_4702F8E0(void) {
   4908     int _fpu_cmp = 0;
   4909     uint32_t _cf = 0;
   4910     int _df = 1;
   4911     uint32_t _flag_k = FK_NONE;
   4912     uint32_t _flag_a = 0, _flag_b = 0;
   4913     uint32_t _itail_tgt = 0;
   4914     RECOMP_REGS_LOCALS
   4915     RECOMP_ENTER(0x4702F8E0u);
   4916 
   4917 L_4702F8E0:
   4918     MEM32(0x4710E2C8) = 0x471066A4u; /* 0x4702F8E0: mov dword ptr [0x4710e2c8], 0x471066a4 */
   4919     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F8EA: ret  */
   4920     RECOMP_REGS_OUT();
   4921 }
   4922 
   4923 void sub_4702F8F0(void) {
   4924     int _fpu_cmp = 0;
   4925     uint32_t _cf = 0;
   4926     int _df = 1;
   4927     uint32_t _flag_k = FK_NONE;
   4928     uint32_t _flag_a = 0, _flag_b = 0;
   4929     uint32_t _itail_tgt = 0;
   4930     RECOMP_REGS_LOCALS
   4931     RECOMP_ENTER(0x4702F8F0u);
   4932 
   4933 L_4702F8F0:
   4934     ecx = 0x4710E2D5u; /* 0x4702F8F0: mov ecx, 0x4710e2d5 */
   4935     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4702F8F5: call dword ptr [0x470ac1c8] */
   4936     RECOMP_FLAGS_IN();
   4937     PUSH32(esp, 0x4702F910u); /* 0x4702F8FB: push 0x4702f910 */
   4938     RECOMP_ICALL(0x470A32D9u); /* 0x4702F900: call 0x470a32d9 */ /* not lifted */
   4939     RECOMP_FLAGS_IN();
   4940     ecx = POP32_VAL(esp); /* 0x4702F905: pop ecx */
   4941     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F906: ret  */
   4942     RECOMP_REGS_OUT();
   4943 }
   4944 
   4945 void sub_4702F910(void) {
   4946     int _fpu_cmp = 0;
   4947     uint32_t _cf = 0;
   4948     int _df = 1;
   4949     uint32_t _flag_k = FK_NONE;
   4950     uint32_t _flag_a = 0, _flag_b = 0;
   4951     uint32_t _itail_tgt = 0;
   4952     RECOMP_REGS_LOCALS
   4953     RECOMP_ENTER(0x4702F910u);
   4954 
   4955 L_4702F910:
   4956     ecx = 0x4710E2D5u; /* 0x4702F910: mov ecx, 0x4710e2d5 */
   4957 L_4702F915:
   4958     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   4959     { RECOMP_REGS_OUT(); return; } /* end of function */
   4960   _ljump:
   4961     switch (_itail_tgt) {
   4962       case 0x4702F910u: goto L_4702F910;
   4963       case 0x4702F915u: goto L_4702F915;
   4964       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4965     }
   4966     RECOMP_REGS_OUT();
   4967 }
   4968 
   4969 void sub_4702F920(void) {
   4970     int _fpu_cmp = 0;
   4971     uint32_t _cf = 0;
   4972     int _df = 1;
   4973     uint32_t _flag_k = FK_NONE;
   4974     uint32_t _flag_a = 0, _flag_b = 0;
   4975     uint32_t _itail_tgt = 0;
   4976     RECOMP_REGS_LOCALS
   4977     RECOMP_ENTER(0x4702F920u);
   4978 
   4979 L_4702F920:
   4980     ecx = 0x4710E2D4u; /* 0x4702F920: mov ecx, 0x4710e2d4 */
   4981     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4702F925: call dword ptr [0x470ac1c4] */
   4982     RECOMP_FLAGS_IN();
   4983     PUSH32(esp, 0x4702F940u); /* 0x4702F92B: push 0x4702f940 */
   4984     RECOMP_ICALL(0x470A32D9u); /* 0x4702F930: call 0x470a32d9 */ /* not lifted */
   4985     RECOMP_FLAGS_IN();
   4986     ecx = POP32_VAL(esp); /* 0x4702F935: pop ecx */
   4987     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F936: ret  */
   4988     RECOMP_REGS_OUT();
   4989 }
   4990 
   4991 void sub_4702F940(void) {
   4992     int _fpu_cmp = 0;
   4993     uint32_t _cf = 0;
   4994     int _df = 1;
   4995     uint32_t _flag_k = FK_NONE;
   4996     uint32_t _flag_a = 0, _flag_b = 0;
   4997     uint32_t _itail_tgt = 0;
   4998     RECOMP_REGS_LOCALS
   4999     RECOMP_ENTER(0x4702F940u);
   5000 
   5001 L_4702F940:
   5002     ecx = 0x4710E2D4u; /* 0x4702F940: mov ecx, 0x4710e2d4 */
   5003 L_4702F945:
   5004     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   5005     { RECOMP_REGS_OUT(); return; } /* end of function */
   5006   _ljump:
   5007     switch (_itail_tgt) {
   5008       case 0x4702F940u: goto L_4702F940;
   5009       case 0x4702F945u: goto L_4702F945;
   5010       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5011     }
   5012     RECOMP_REGS_OUT();
   5013 }
   5014 
   5015 void sub_4702F950(void) {
   5016     int _fpu_cmp = 0;
   5017     uint32_t _cf = 0;
   5018     int _df = 1;
   5019     uint32_t _flag_k = FK_NONE;
   5020     uint32_t _flag_a = 0, _flag_b = 0;
   5021     uint32_t _itail_tgt = 0;
   5022     RECOMP_REGS_LOCALS
   5023     RECOMP_ENTER(0x4702F950u);
   5024 
   5025 L_4702F950:
   5026     MEM32(0x4710E2D8) = 0x471066D8u; /* 0x4702F950: mov dword ptr [0x4710e2d8], 0x471066d8 */
   5027     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702F95A: ret  */
   5028     RECOMP_REGS_OUT();
   5029 }
   5030 
   5031 void sub_4702F960(void) {
   5032     int _fpu_cmp = 0;
   5033     uint32_t _cf = 0;
   5034     int _df = 1;
   5035     uint32_t _flag_k = FK_NONE;
   5036     uint32_t _flag_a = 0, _flag_b = 0;
   5037     uint32_t _itail_tgt = 0;
   5038     RECOMP_REGS_LOCALS
   5039     RECOMP_ENTER(0x4702F960u);
   5040 
   5041 L_4702F960:
   5042     edx = MEM32(esp + 0x14); /* 0x4702F960: mov edx, dword ptr [esp + 0x14] */
   5043     eax = ecx; /* 0x4702F964: mov eax, ecx */
   5044     ecx = MEM32(esp + 0x10); /* 0x4702F966: mov ecx, dword ptr [esp + 0x10] */
   5045     MEM32(eax + 0x4) = ecx; /* 0x4702F96A: mov dword ptr [eax + 4], ecx */
   5046     ecx = MEM32(esp + 0x4); /* 0x4702F96D: mov ecx, dword ptr [esp + 4] */
   5047     MEM32(eax + 0x8) = edx; /* 0x4702F971: mov dword ptr [eax + 8], edx */
   5048     edx = MEM32(esp + 0x8); /* 0x4702F974: mov edx, dword ptr [esp + 8] */
   5049     MEM32(eax + 0xC) = ecx; /* 0x4702F978: mov dword ptr [eax + 0xc], ecx */
   5050     ecx = MEM32(esp + 0xC); /* 0x4702F97B: mov ecx, dword ptr [esp + 0xc] */
   5051     MEM32(eax) = 0; /* 0x4702F97F: mov dword ptr [eax], 0 */
   5052     MEM32(eax + 0x10) = edx; /* 0x4702F985: mov dword ptr [eax + 0x10], edx */
   5053     MEM32(eax + 0x14) = 0; /* 0x4702F988: mov dword ptr [eax + 0x14], 0 */
   5054     MEM32(eax + 0x18) = ecx; /* 0x4702F98F: mov dword ptr [eax + 0x18], ecx */
   5055     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4702F992: ret 0x14 */
   5056     RECOMP_REGS_OUT();
   5057 }
   5058 
   5059 void sub_4702F9A0(void) {
   5060     int _fpu_cmp = 0;
   5061     uint32_t _cf = 0;
   5062     int _df = 1;
   5063     uint32_t _flag_k = FK_NONE;
   5064     uint32_t _flag_a = 0, _flag_b = 0;
   5065     uint32_t _itail_tgt = 0;
   5066     RECOMP_REGS_LOCALS
   5067     RECOMP_ENTER(0x4702F9A0u);
   5068 
   5069 L_4702F9A0:
   5070     PUSH32(esp, ecx); /* 0x4702F9A0: push ecx */
   5071     PUSH32(esp, ebx); /* 0x4702F9A1: push ebx */
   5072     PUSH32(esp, ebp); /* 0x4702F9A2: push ebp */
   5073     PUSH32(esp, esi); /* 0x4702F9A3: push esi */
   5074     PUSH32(esp, edi); /* 0x4702F9A4: push edi */
   5075     edi = MEM32(0x470AC150); /* 0x4702F9A5: mov edi, dword ptr [0x470ac150] */
   5076     MEM32(esp + 0x10) = ecx; /* 0x4702F9AB: mov dword ptr [esp + 0x10], ecx */
   5077     RECOMP_ICALL(edi); /* 0x4702F9AF: call edi */
   5078     RECOMP_FLAGS_IN();
   5079     ebx = MEM32(0x470AC3C8); /* 0x4702F9B1: mov ebx, dword ptr [0x470ac3c8] */
   5080     ebp = eax; /* 0x4702F9B7: mov ebp, eax */
   5081     RECOMP_ICALL(ebx); /* 0x4702F9B9: call ebx */
   5082     RECOMP_FLAGS_IN();
   5083     eax = MEM32(eax); /* 0x4702F9BB: mov eax, dword ptr [eax] */
   5084     /* test eax, eax */ /* 0x4702F9BD: test eax, eax */
   5085     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5086     _cf = 0;
   5087     _flag_k = FK_TEST;
   5088     if (TEST_Z(_flag_a, _flag_b)) goto L_4702F9C3; /* 0x4702F9BF: je 0x4702f9c3 */
   5089 L_4702F9C1:
   5090     ebp = eax; /* 0x4702F9C1: mov ebp, eax */
   5091 L_4702F9C3:
   5092     RECOMP_ICALL(0x47039020u); /* 0x4702F9C3: call 0x47039020 */ /* not lifted */
   5093     RECOMP_FLAGS_IN();
   5094     esi = eax; /* 0x4702F9C8: mov esi, eax */
   5095     ecx = esi; /* 0x4702F9CA: mov ecx, esi */
   5096     RECOMP_ICALL(0x4703B210u); /* 0x4702F9CC: call 0x4703b210 */ /* not lifted */
   5097     RECOMP_FLAGS_IN();
   5098     PUSH32(esp, eax); /* 0x4702F9D1: push eax */
   5099     ecx = esi; /* 0x4702F9D2: mov ecx, esi */
   5100     RECOMP_ICALL(0x4703B240u); /* 0x4702F9D4: call 0x4703b240 */ /* not lifted */
   5101     RECOMP_FLAGS_IN();
   5102     PUSH32(esp, eax); /* 0x4702F9D9: push eax */
   5103     ecx = esi; /* 0x4702F9DA: mov ecx, esi */
   5104     RECOMP_ICALL(0x4703B080u); /* 0x4702F9DC: call 0x4703b080 */ /* not lifted */
   5105     RECOMP_FLAGS_IN();
   5106     PUSH32(esp, eax); /* 0x4702F9E1: push eax */
   5107     PUSH32(esp, ebp); /* 0x4702F9E2: push ebp */
   5108     PUSH32(esp, 0); /* 0x4702F9E3: push 0 */
   5109     PUSH32(esp, 0x45u); /* 0x4702F9E5: push 0x45 */
   5110     PUSH32(esp, 0x4710670Cu); /* 0x4702F9E7: push 0x4710670c */
   5111     ecx = esi; /* 0x4702F9EC: mov ecx, esi */
   5112     RECOMP_ICALL(0x4703A340u); /* 0x4702F9EE: call 0x4703a340 */ /* not lifted */
   5113     RECOMP_FLAGS_IN();
   5114     eax = MEM32(esp + 0x10); /* 0x4702F9F3: mov eax, dword ptr [esp + 0x10] */
   5115     PUSH32(esp, eax); /* 0x4702F9F7: push eax */
   5116     PUSH32(esp, 0x471052CCu); /* 0x4702F9F8: push 0x471052cc */
   5117     PUSH32(esp, 4); /* 0x4702F9FD: push 4 */
   5118     PUSH32(esp, esi); /* 0x4702F9FF: push esi */
   5119     RECOMP_ICALL(0x47039830u); /* 0x4702FA00: call 0x47039830 */ /* not lifted */
   5120     RECOMP_FLAGS_IN();
   5121     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5122     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5123     esp = esp + 0x10u; /* 0x4702FA05: add esp, 0x10 */
   5124     _flag_k = FK_ADD;
   5125     RECOMP_ICALL(edi); /* 0x4702FA08: call edi */
   5126     RECOMP_FLAGS_IN();
   5127     ebp = eax; /* 0x4702FA0A: mov ebp, eax */
   5128     RECOMP_ICALL(ebx); /* 0x4702FA0C: call ebx */
   5129     RECOMP_FLAGS_IN();
   5130     eax = MEM32(eax); /* 0x4702FA0E: mov eax, dword ptr [eax] */
   5131     /* test eax, eax */ /* 0x4702FA10: test eax, eax */
   5132     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5133     _cf = 0;
   5134     _flag_k = FK_TEST;
   5135     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FA16; /* 0x4702FA12: je 0x4702fa16 */
   5136 L_4702FA14:
   5137     ebp = eax; /* 0x4702FA14: mov ebp, eax */
   5138 L_4702FA16:
   5139     RECOMP_ICALL(0x47039020u); /* 0x4702FA16: call 0x47039020 */ /* not lifted */
   5140     RECOMP_FLAGS_IN();
   5141     esi = eax; /* 0x4702FA1B: mov esi, eax */
   5142     ecx = esi; /* 0x4702FA1D: mov ecx, esi */
   5143     RECOMP_ICALL(0x4703B210u); /* 0x4702FA1F: call 0x4703b210 */ /* not lifted */
   5144     RECOMP_FLAGS_IN();
   5145     PUSH32(esp, eax); /* 0x4702FA24: push eax */
   5146     ecx = esi; /* 0x4702FA25: mov ecx, esi */
   5147     RECOMP_ICALL(0x4703B240u); /* 0x4702FA27: call 0x4703b240 */ /* not lifted */
   5148     RECOMP_FLAGS_IN();
   5149     PUSH32(esp, eax); /* 0x4702FA2C: push eax */
   5150     ecx = esi; /* 0x4702FA2D: mov ecx, esi */
   5151     RECOMP_ICALL(0x4703B080u); /* 0x4702FA2F: call 0x4703b080 */ /* not lifted */
   5152     RECOMP_FLAGS_IN();
   5153     PUSH32(esp, eax); /* 0x4702FA34: push eax */
   5154     PUSH32(esp, ebp); /* 0x4702FA35: push ebp */
   5155     PUSH32(esp, 0); /* 0x4702FA36: push 0 */
   5156     PUSH32(esp, 0x46u); /* 0x4702FA38: push 0x46 */
   5157     PUSH32(esp, 0x4710670Cu); /* 0x4702FA3A: push 0x4710670c */
   5158     ecx = esi; /* 0x4702FA3F: mov ecx, esi */
   5159     RECOMP_ICALL(0x4703A340u); /* 0x4702FA41: call 0x4703a340 */ /* not lifted */
   5160     RECOMP_FLAGS_IN();
   5161     PUSH32(esp, 0x47105590u); /* 0x4702FA46: push 0x47105590 */
   5162     PUSH32(esp, 4); /* 0x4702FA4B: push 4 */
   5163     PUSH32(esp, esi); /* 0x4702FA4D: push esi */
   5164     RECOMP_ICALL(0x47039830u); /* 0x4702FA4E: call 0x47039830 */ /* not lifted */
   5165     RECOMP_FLAGS_IN();
   5166     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5167     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5168     esp = esp + 0xCu; /* 0x4702FA53: add esp, 0xc */
   5169     _flag_k = FK_ADD;
   5170     RECOMP_ICALL(edi); /* 0x4702FA56: call edi */
   5171     RECOMP_FLAGS_IN();
   5172     esi = eax; /* 0x4702FA58: mov esi, eax */
   5173     RECOMP_ICALL(ebx); /* 0x4702FA5A: call ebx */
   5174     RECOMP_FLAGS_IN();
   5175     eax = MEM32(eax); /* 0x4702FA5C: mov eax, dword ptr [eax] */
   5176     /* test eax, eax */ /* 0x4702FA5E: test eax, eax */
   5177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5178     _cf = 0;
   5179     _flag_k = FK_TEST;
   5180     edi = esi; /* 0x4702FA60: mov edi, esi */
   5181     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FA66; /* 0x4702FA62: je 0x4702fa66 */
   5182 L_4702FA64:
   5183     edi = eax; /* 0x4702FA64: mov edi, eax */
   5184 L_4702FA66:
   5185     RECOMP_ICALL(0x47039020u); /* 0x4702FA66: call 0x47039020 */ /* not lifted */
   5186     RECOMP_FLAGS_IN();
   5187     esi = eax; /* 0x4702FA6B: mov esi, eax */
   5188     ecx = esi; /* 0x4702FA6D: mov ecx, esi */
   5189     RECOMP_ICALL(0x4703B210u); /* 0x4702FA6F: call 0x4703b210 */ /* not lifted */
   5190     RECOMP_FLAGS_IN();
   5191     PUSH32(esp, eax); /* 0x4702FA74: push eax */
   5192     ecx = esi; /* 0x4702FA75: mov ecx, esi */
   5193     RECOMP_ICALL(0x4703B240u); /* 0x4702FA77: call 0x4703b240 */ /* not lifted */
   5194     RECOMP_FLAGS_IN();
   5195     PUSH32(esp, eax); /* 0x4702FA7C: push eax */
   5196     ecx = esi; /* 0x4702FA7D: mov ecx, esi */
   5197     RECOMP_ICALL(0x4703B080u); /* 0x4702FA7F: call 0x4703b080 */ /* not lifted */
   5198     RECOMP_FLAGS_IN();
   5199     PUSH32(esp, eax); /* 0x4702FA84: push eax */
   5200     PUSH32(esp, edi); /* 0x4702FA85: push edi */
   5201     PUSH32(esp, 0); /* 0x4702FA86: push 0 */
   5202     PUSH32(esp, 0x47u); /* 0x4702FA88: push 0x47 */
   5203     PUSH32(esp, 0x4710670Cu); /* 0x4702FA8A: push 0x4710670c */
   5204     ecx = esi; /* 0x4702FA8F: mov ecx, esi */
   5205     RECOMP_ICALL(0x4703A340u); /* 0x4702FA91: call 0x4703a340 */ /* not lifted */
   5206     RECOMP_FLAGS_IN();
   5207     PUSH32(esp, 0x4710529Cu); /* 0x4702FA96: push 0x4710529c */
   5208     PUSH32(esp, 4); /* 0x4702FA9B: push 4 */
   5209     PUSH32(esp, esi); /* 0x4702FA9D: push esi */
   5210     RECOMP_ICALL(0x47039830u); /* 0x4702FA9E: call 0x47039830 */ /* not lifted */
   5211     RECOMP_FLAGS_IN();
   5212     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5213     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5214     esp = esp + 0xCu; /* 0x4702FAA3: add esp, 0xc */
   5215     _flag_k = FK_ADD;
   5216     edi = POP32_VAL(esp); /* 0x4702FAA6: pop edi */
   5217     esi = POP32_VAL(esp); /* 0x4702FAA7: pop esi */
   5218     ebp = POP32_VAL(esp); /* 0x4702FAA8: pop ebp */
   5219     ebx = POP32_VAL(esp); /* 0x4702FAA9: pop ebx */
   5220     ecx = POP32_VAL(esp); /* 0x4702FAAA: pop ecx */
   5221     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FAAB: ret  */
   5222     RECOMP_REGS_OUT();
   5223 }
   5224 
   5225 void sub_4702FAB0(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(0x4702FAB0u);
   5234 
   5235 L_4702FAB0:
   5236     PUSH32(esp, ebx); /* 0x4702FAB0: push ebx */
   5237     PUSH32(esp, ebp); /* 0x4702FAB1: push ebp */
   5238     PUSH32(esp, esi); /* 0x4702FAB2: push esi */
   5239     esi = ecx; /* 0x4702FAB3: mov esi, ecx */
   5240     edx = MEM32(esi + 0x10); /* 0x4702FAB5: mov edx, dword ptr [esi + 0x10] */
   5241     /* test edx, edx */ /* 0x4702FAB8: test edx, edx */
   5242     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5243     _cf = 0;
   5244     _flag_k = FK_TEST;
   5245     PUSH32(esp, edi); /* 0x4702FABA: push edi */
   5246     if (TEST_NZ(_flag_a, _flag_b)) goto L_4702FAC8; /* 0x4702FABB: jne 0x4702fac8 */
   5247 L_4702FABD:
   5248     edi = POP32_VAL(esp); /* 0x4702FABD: pop edi */
   5249     MEM32(esi + 0x4) = edx; /* 0x4702FABE: mov dword ptr [esi + 4], edx */
   5250     esi = POP32_VAL(esp); /* 0x4702FAC1: pop esi */
   5251     ebp = POP32_VAL(esp); /* 0x4702FAC2: pop ebp */
   5252     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5253     eax = eax | 0xFFFFFFFFu; /* 0x4702FAC3: or eax, 0xffffffff */
   5254     _cf = 0;
   5255     _flag_k = FK_TEST;
   5256     ebx = POP32_VAL(esp); /* 0x4702FAC6: pop ebx */
   5257     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FAC7: ret  */
   5258 L_4702FAC8:
   5259     eax = MEM32(esi + 0x14); /* 0x4702FAC8: mov eax, dword ptr [esi + 0x14] */
   5260     /* test eax, eax */ /* 0x4702FACB: test eax, eax */
   5261     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5262     _cf = 0;
   5263     _flag_k = FK_TEST;
   5264     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FAD4; /* 0x4702FACD: je 0x4702fad4 */
   5265 L_4702FACF:
   5266     /* cmp MEM8(eax), 0 */ /* 0x4702FACF: cmp byte ptr [eax], 0 */
   5267     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   5268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5269     _flag_k = FK_NARROW(FK_CMP, 24);
   5270     if (CMP_NE(_flag_a, _flag_b)) goto L_4702FB0A; /* 0x4702FAD2: jne 0x4702fb0a */
   5271 L_4702FAD4:
   5272     ecx = MEM32(esi + 0x4); /* 0x4702FAD4: mov ecx, dword ptr [esi + 4] */
   5273     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x4702FAD7: cmp ecx, dword ptr [esi + 0xc] */
   5274     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   5275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5276     _flag_k = FK_CMP;
   5277     if (CMP_GE(_flag_a, _flag_b)) goto L_4702FAFB; /* 0x4702FADA: jge 0x4702fafb */
   5278 L_4702FADC:
   5279     eax = MEM32(edx + ecx * 4); /* 0x4702FADC: mov eax, dword ptr [edx + ecx*4] */
   5280     MEM32(esi + 0x14) = eax; /* 0x4702FADF: mov dword ptr [esi + 0x14], eax */
   5281     /* cmp MEM8(eax), 0x2Du */ /* 0x4702FAE2: cmp byte ptr [eax], 0x2d */
   5282     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x2Du) << 24;
   5283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5284     _flag_k = FK_NARROW(FK_CMP, 24);
   5285     if (CMP_NE(_flag_a, _flag_b)) goto L_4702FAFB; /* 0x4702FAE5: jne 0x4702fafb */
   5286 L_4702FAE7:
   5287     SET_LO8(edx, MEM8(eax + 0x1)); /* 0x4702FAE7: mov dl, byte ptr [eax + 1] */
   5288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5289     eax = eax + 1; /* 0x4702FAEA: inc eax */
   5290     _flag_k = FK_INC;
   5291     /* test LO8(edx), LO8(edx) */ /* 0x4702FAEB: test dl, dl */
   5292     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5293     _cf = 0;
   5294     _flag_k = FK_NARROW(FK_TEST, 24);
   5295     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FB0A; /* 0x4702FAED: je 0x4702fb0a */
   5296 L_4702FAEF:
   5297     MEM32(esi + 0x14) = eax; /* 0x4702FAEF: mov dword ptr [esi + 0x14], eax */
   5298     /* cmp MEM8(eax), 0x2Du */ /* 0x4702FAF2: cmp byte ptr [eax], 0x2d */
   5299     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x2Du) << 24;
   5300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5301     _flag_k = FK_NARROW(FK_CMP, 24);
   5302     if (CMP_NE(_flag_a, _flag_b)) goto L_4702FB0A; /* 0x4702FAF5: jne 0x4702fb0a */
   5303 L_4702FAF7:
   5304     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5305     ecx = ecx + 1; /* 0x4702FAF7: inc ecx */
   5306     _flag_k = FK_INC;
   5307     MEM32(esi + 0x4) = ecx; /* 0x4702FAF8: mov dword ptr [esi + 4], ecx */
   5308 L_4702FAFB:
   5309     MEM32(esi + 0x14) = 0x4710DE90u; /* 0x4702FAFB: mov dword ptr [esi + 0x14], 0x4710de90 */
   5310 L_4702FB02:
   5311     edi = POP32_VAL(esp); /* 0x4702FB02: pop edi */
   5312     esi = POP32_VAL(esp); /* 0x4702FB03: pop esi */
   5313     ebp = POP32_VAL(esp); /* 0x4702FB04: pop ebp */
   5314     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5315     eax = eax | 0xFFFFFFFFu; /* 0x4702FB05: or eax, 0xffffffff */
   5316     _cf = 0;
   5317     _flag_k = FK_TEST;
   5318     ebx = POP32_VAL(esp); /* 0x4702FB08: pop ebx */
   5319     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FB09: ret  */
   5320 L_4702FB0A:
   5321     eax = MEM32(esi + 0x14); /* 0x4702FB0A: mov eax, dword ptr [esi + 0x14] */
   5322     ebp = (int32_t)(int8_t)MEM8(eax); /* 0x4702FB0D: movsx ebp, byte ptr [eax] */
   5323     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5324     eax = eax + 1; /* 0x4702FB10: inc eax */
   5325     _flag_k = FK_INC;
   5326     /* cmp ebp, 0x3Au */ /* 0x4702FB11: cmp ebp, 0x3a */
   5327     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x3Au);
   5328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5329     _flag_k = FK_CMP;
   5330     MEM32(esi + 0x14) = eax; /* 0x4702FB14: mov dword ptr [esi + 0x14], eax */
   5331     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702FC26; /* 0x4702FB17: je 0x4702fc26 */
   5332 L_4702FB1D:
   5333     eax = MEM32(esi + 0x18); /* 0x4702FB1D: mov eax, dword ptr [esi + 0x18] */
   5334     PUSH32(esp, ebp); /* 0x4702FB20: push ebp */
   5335     PUSH32(esp, eax); /* 0x4702FB21: push eax */
   5336     RECOMP_ICALL(MEM32(0x470AC380)); /* 0x4702FB22: call dword ptr [0x470ac380] */
   5337     RECOMP_FLAGS_IN();
   5338     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5339     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5340     esp = esp + 8; /* 0x4702FB28: add esp, 8 */
   5341     _flag_k = FK_ADD;
   5342     /* test eax, eax */ /* 0x4702FB2B: test eax, eax */
   5343     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5344     _cf = 0;
   5345     _flag_k = FK_TEST;
   5346     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FC26; /* 0x4702FB2D: je 0x4702fc26 */
   5347 L_4702FB33:
   5348     /* cmp MEM8(eax + 0x1), 0x3Au */ /* 0x4702FB33: cmp byte ptr [eax + 1], 0x3a */
   5349     _flag_a = (uint32_t)(MEM8(eax + 0x1)) << 24; _flag_b = (uint32_t)(0x3Au) << 24;
   5350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5351     _flag_k = FK_NARROW(FK_CMP, 24);
   5352     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702FB59; /* 0x4702FB37: je 0x4702fb59 */
   5353 L_4702FB39:
   5354     eax = MEM32(esi + 0x14); /* 0x4702FB39: mov eax, dword ptr [esi + 0x14] */
   5355     MEM32(esi) = 0; /* 0x4702FB3C: mov dword ptr [esi], 0 */
   5356     /* cmp MEM8(eax), 0 */ /* 0x4702FB42: cmp byte ptr [eax], 0 */
   5357     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   5358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5359     _flag_k = FK_NARROW(FK_CMP, 24);
   5360     if (CMP_NE(_flag_a, _flag_b)) goto L_4702FC1F; /* 0x4702FB45: jne 0x4702fc1f */
   5361 L_4702FB4B:
   5362     eax = MEM32(esi + 0x4); /* 0x4702FB4B: mov eax, dword ptr [esi + 4] */
   5363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5364     eax = eax + 1; /* 0x4702FB4E: inc eax */
   5365     _flag_k = FK_INC;
   5366     edi = POP32_VAL(esp); /* 0x4702FB4F: pop edi */
   5367     MEM32(esi + 0x4) = eax; /* 0x4702FB50: mov dword ptr [esi + 4], eax */
   5368     esi = POP32_VAL(esp); /* 0x4702FB53: pop esi */
   5369     eax = ebp; /* 0x4702FB54: mov eax, ebp */
   5370     ebp = POP32_VAL(esp); /* 0x4702FB56: pop ebp */
   5371     ebx = POP32_VAL(esp); /* 0x4702FB57: pop ebx */
   5372     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FB58: ret  */
   5373 L_4702FB59:
   5374     eax = MEM32(esi + 0x14); /* 0x4702FB59: mov eax, dword ptr [esi + 0x14] */
   5375     /* cmp MEM8(eax), 0 */ /* 0x4702FB5C: cmp byte ptr [eax], 0 */
   5376     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   5377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5378     _flag_k = FK_NARROW(FK_CMP, 24);
   5379     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702FB68; /* 0x4702FB5F: je 0x4702fb68 */
   5380 L_4702FB61:
   5381     MEM32(esi) = eax; /* 0x4702FB61: mov dword ptr [esi], eax */
   5382     goto L_4702FC11; /* 0x4702FB63: jmp 0x4702fc11 */
   5383 L_4702FB68:
   5384     edx = MEM32(esi + 0x4); /* 0x4702FB68: mov edx, dword ptr [esi + 4] */
   5385     ecx = MEM32(esi + 0xC); /* 0x4702FB6B: mov ecx, dword ptr [esi + 0xc] */
   5386     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5387     edx = edx + 1; /* 0x4702FB6E: inc edx */
   5388     _flag_k = FK_INC;
   5389     eax = edx; /* 0x4702FB6F: mov eax, edx */
   5390     /* cmp ecx, eax */ /* 0x4702FB71: cmp ecx, eax */
   5391     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5393     _flag_k = FK_CMP;
   5394     MEM32(esi + 0x4) = edx; /* 0x4702FB73: mov dword ptr [esi + 4], edx */
   5395     if (CMP_G(_flag_a, _flag_b)) goto L_4702FC09; /* 0x4702FB76: jg 0x4702fc09 */
   5396 L_4702FB7C:
   5397     ecx = MEM32(esi + 0x18); /* 0x4702FB7C: mov ecx, dword ptr [esi + 0x18] */
   5398     MEM32(esi + 0x14) = 0x4710DE90u; /* 0x4702FB7F: mov dword ptr [esi + 0x14], 0x4710de90 */
   5399     /* cmp MEM8(ecx), 0x3Au */ /* 0x4702FB86: cmp byte ptr [ecx], 0x3a */
   5400     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(0x3Au) << 24;
   5401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5402     _flag_k = FK_NARROW(FK_CMP, 24);
   5403     if (CMP_NE(_flag_a, _flag_b)) goto L_4702FB95; /* 0x4702FB89: jne 0x4702fb95 */
   5404 L_4702FB8B:
   5405     edi = POP32_VAL(esp); /* 0x4702FB8B: pop edi */
   5406     esi = POP32_VAL(esp); /* 0x4702FB8C: pop esi */
   5407     ebp = POP32_VAL(esp); /* 0x4702FB8D: pop ebp */
   5408     eax = 0x3Au; /* 0x4702FB8E: mov eax, 0x3a */
   5409     ebx = POP32_VAL(esp); /* 0x4702FB93: pop ebx */
   5410     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FB94: ret  */
   5411 L_4702FB95:
   5412     eax = MEM32(esi + 0x8); /* 0x4702FB95: mov eax, dword ptr [esi + 8] */
   5413     /* test eax, eax */ /* 0x4702FB98: test eax, eax */
   5414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5415     _cf = 0;
   5416     _flag_k = FK_TEST;
   5417     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FBFF; /* 0x4702FB9A: je 0x4702fbff */
   5418 L_4702FB9C:
   5419     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702FB9C: call dword ptr [0x470ac150] */
   5420     RECOMP_FLAGS_IN();
   5421     ebx = eax; /* 0x4702FBA2: mov ebx, eax */
   5422     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702FBA4: call dword ptr [0x470ac3c8] */
   5423     RECOMP_FLAGS_IN();
   5424     eax = MEM32(eax); /* 0x4702FBAA: mov eax, dword ptr [eax] */
   5425     /* test eax, eax */ /* 0x4702FBAC: test eax, eax */
   5426     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5427     _cf = 0;
   5428     _flag_k = FK_TEST;
   5429     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FBB2; /* 0x4702FBAE: je 0x4702fbb2 */
   5430 L_4702FBB0:
   5431     ebx = eax; /* 0x4702FBB0: mov ebx, eax */
   5432 L_4702FBB2:
   5433     RECOMP_ICALL(0x47039020u); /* 0x4702FBB2: call 0x47039020 */ /* not lifted */
   5434     RECOMP_FLAGS_IN();
   5435     edi = eax; /* 0x4702FBB7: mov edi, eax */
   5436     ecx = edi; /* 0x4702FBB9: mov ecx, edi */
   5437     RECOMP_ICALL(0x4703B210u); /* 0x4702FBBB: call 0x4703b210 */ /* not lifted */
   5438     RECOMP_FLAGS_IN();
   5439     PUSH32(esp, eax); /* 0x4702FBC0: push eax */
   5440     ecx = edi; /* 0x4702FBC1: mov ecx, edi */
   5441     RECOMP_ICALL(0x4703B240u); /* 0x4702FBC3: call 0x4703b240 */ /* not lifted */
   5442     RECOMP_FLAGS_IN();
   5443     PUSH32(esp, eax); /* 0x4702FBC8: push eax */
   5444     ecx = edi; /* 0x4702FBC9: mov ecx, edi */
   5445     RECOMP_ICALL(0x4703B080u); /* 0x4702FBCB: call 0x4703b080 */ /* not lifted */
   5446     RECOMP_FLAGS_IN();
   5447     PUSH32(esp, eax); /* 0x4702FBD0: push eax */
   5448     PUSH32(esp, ebx); /* 0x4702FBD1: push ebx */
   5449     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702FBD2: push -1 */
   5450     PUSH32(esp, 0x98u); /* 0x4702FBD4: push 0x98 */
   5451     PUSH32(esp, 0x4710670Cu); /* 0x4702FBD9: push 0x4710670c */
   5452     ecx = edi; /* 0x4702FBDE: mov ecx, edi */
   5453     RECOMP_ICALL(0x4703A340u); /* 0x4702FBE0: call 0x4703a340 */ /* not lifted */
   5454     RECOMP_FLAGS_IN();
   5455     edx = MEM32(esi + 0x10); /* 0x4702FBE5: mov edx, dword ptr [esi + 0x10] */
   5456     eax = MEM32(edx); /* 0x4702FBE8: mov eax, dword ptr [edx] */
   5457     PUSH32(esp, ebp); /* 0x4702FBEA: push ebp */
   5458     PUSH32(esp, eax); /* 0x4702FBEB: push eax */
   5459     PUSH32(esp, 0x47106760u); /* 0x4702FBEC: push 0x47106760 */
   5460 L_4702FBF1:
   5461     PUSH32(esp, 0x80u); /* 0x4702FBF1: push 0x80 */
   5462     PUSH32(esp, edi); /* 0x4702FBF6: push edi */
   5463     RECOMP_ICALL(0x47039830u); /* 0x4702FBF7: call 0x47039830 */ /* not lifted */
   5464     RECOMP_FLAGS_IN();
   5465     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5466     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5467     esp = esp + 0x14u; /* 0x4702FBFC: add esp, 0x14 */
   5468     _flag_k = FK_ADD;
   5469 L_4702FBFF:
   5470     edi = POP32_VAL(esp); /* 0x4702FBFF: pop edi */
   5471     esi = POP32_VAL(esp); /* 0x4702FC00: pop esi */
   5472     ebp = POP32_VAL(esp); /* 0x4702FC01: pop ebp */
   5473     eax = 0x3Fu; /* 0x4702FC02: mov eax, 0x3f */
   5474     ebx = POP32_VAL(esp); /* 0x4702FC07: pop ebx */
   5475     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FC08: ret  */
   5476 L_4702FC09:
   5477     ecx = MEM32(esi + 0x10); /* 0x4702FC09: mov ecx, dword ptr [esi + 0x10] */
   5478     edx = MEM32(ecx + eax * 4); /* 0x4702FC0C: mov edx, dword ptr [ecx + eax*4] */
   5479     MEM32(esi) = edx; /* 0x4702FC0F: mov dword ptr [esi], edx */
   5480 L_4702FC11:
   5481     eax = MEM32(esi + 0x4); /* 0x4702FC11: mov eax, dword ptr [esi + 4] */
   5482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5483     eax = eax + 1; /* 0x4702FC14: inc eax */
   5484     _flag_k = FK_INC;
   5485     MEM32(esi + 0x14) = 0x4710DE90u; /* 0x4702FC15: mov dword ptr [esi + 0x14], 0x4710de90 */
   5486     MEM32(esi + 0x4) = eax; /* 0x4702FC1C: mov dword ptr [esi + 4], eax */
   5487 L_4702FC1F:
   5488     edi = POP32_VAL(esp); /* 0x4702FC1F: pop edi */
   5489     esi = POP32_VAL(esp); /* 0x4702FC20: pop esi */
   5490     eax = ebp; /* 0x4702FC21: mov eax, ebp */
   5491     ebp = POP32_VAL(esp); /* 0x4702FC23: pop ebp */
   5492     ebx = POP32_VAL(esp); /* 0x4702FC24: pop ebx */
   5493     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FC25: ret  */
   5494 L_4702FC26:
   5495     /* cmp ebp, 0x2Du */ /* 0x4702FC26: cmp ebp, 0x2d */
   5496     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0x2Du);
   5497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5498     _flag_k = FK_CMP;
   5499     RECOMP_BACKEDGE();
   5500     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702FB02; /* 0x4702FC29: je 0x4702fb02 */
   5501 L_4702FC2F:
   5502     eax = MEM32(esi + 0x14); /* 0x4702FC2F: mov eax, dword ptr [esi + 0x14] */
   5503     /* cmp MEM8(eax), 0 */ /* 0x4702FC32: cmp byte ptr [eax], 0 */
   5504     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   5505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5506     _flag_k = FK_NARROW(FK_CMP, 24);
   5507     if (CMP_NE(_flag_a, _flag_b)) goto L_4702FC3A; /* 0x4702FC35: jne 0x4702fc3a */
   5508 L_4702FC37:
   5509     _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(1);
   5510     MEM32(esi + 0x4) = MEM32(esi + 0x4) + 1; /* 0x4702FC37: inc dword ptr [esi + 4] */
   5511     _flag_k = FK_INC;
   5512 L_4702FC3A:
   5513     eax = MEM32(esi + 0x8); /* 0x4702FC3A: mov eax, dword ptr [esi + 8] */
   5514     /* test eax, eax */ /* 0x4702FC3D: test eax, eax */
   5515     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5516     _cf = 0;
   5517     _flag_k = FK_TEST;
   5518     RECOMP_BACKEDGE();
   5519     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FBFF; /* 0x4702FC3F: je 0x4702fbff */
   5520 L_4702FC41:
   5521     ecx = MEM32(esi + 0x18); /* 0x4702FC41: mov ecx, dword ptr [esi + 0x18] */
   5522     /* cmp MEM8(ecx), 0x3Au */ /* 0x4702FC44: cmp byte ptr [ecx], 0x3a */
   5523     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(0x3Au) << 24;
   5524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5525     _flag_k = FK_NARROW(FK_CMP, 24);
   5526     RECOMP_BACKEDGE();
   5527     if (CMP_EQ(_flag_a, _flag_b)) goto L_4702FBFF; /* 0x4702FC47: je 0x4702fbff */
   5528 L_4702FC49:
   5529     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702FC49: call dword ptr [0x470ac150] */
   5530     RECOMP_FLAGS_IN();
   5531     ebx = eax; /* 0x4702FC4F: mov ebx, eax */
   5532     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702FC51: call dword ptr [0x470ac3c8] */
   5533     RECOMP_FLAGS_IN();
   5534     eax = MEM32(eax); /* 0x4702FC57: mov eax, dword ptr [eax] */
   5535     /* test eax, eax */ /* 0x4702FC59: test eax, eax */
   5536     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5537     _cf = 0;
   5538     _flag_k = FK_TEST;
   5539     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FC5F; /* 0x4702FC5B: je 0x4702fc5f */
   5540 L_4702FC5D:
   5541     ebx = eax; /* 0x4702FC5D: mov ebx, eax */
   5542 L_4702FC5F:
   5543     RECOMP_ICALL(0x47039020u); /* 0x4702FC5F: call 0x47039020 */ /* not lifted */
   5544     RECOMP_FLAGS_IN();
   5545     edi = eax; /* 0x4702FC64: mov edi, eax */
   5546     ecx = edi; /* 0x4702FC66: mov ecx, edi */
   5547     RECOMP_ICALL(0x4703B210u); /* 0x4702FC68: call 0x4703b210 */ /* not lifted */
   5548     RECOMP_FLAGS_IN();
   5549     PUSH32(esp, eax); /* 0x4702FC6D: push eax */
   5550     ecx = edi; /* 0x4702FC6E: mov ecx, edi */
   5551     RECOMP_ICALL(0x4703B240u); /* 0x4702FC70: call 0x4703b240 */ /* not lifted */
   5552     RECOMP_FLAGS_IN();
   5553     PUSH32(esp, eax); /* 0x4702FC75: push eax */
   5554     ecx = edi; /* 0x4702FC76: mov ecx, edi */
   5555     RECOMP_ICALL(0x4703B080u); /* 0x4702FC78: call 0x4703b080 */ /* not lifted */
   5556     RECOMP_FLAGS_IN();
   5557     PUSH32(esp, eax); /* 0x4702FC7D: push eax */
   5558     PUSH32(esp, ebx); /* 0x4702FC7E: push ebx */
   5559     PUSH32(esp, 0xFFFFFFFFu); /* 0x4702FC7F: push -1 */
   5560     PUSH32(esp, 0x80u); /* 0x4702FC81: push 0x80 */
   5561     PUSH32(esp, 0x4710670Cu); /* 0x4702FC86: push 0x4710670c */
   5562     ecx = edi; /* 0x4702FC8B: mov ecx, edi */
   5563     RECOMP_ICALL(0x4703A340u); /* 0x4702FC8D: call 0x4703a340 */ /* not lifted */
   5564     RECOMP_FLAGS_IN();
   5565     edx = MEM32(esi + 0x10); /* 0x4702FC92: mov edx, dword ptr [esi + 0x10] */
   5566     eax = MEM32(edx); /* 0x4702FC95: mov eax, dword ptr [edx] */
   5567     PUSH32(esp, ebp); /* 0x4702FC97: push ebp */
   5568     PUSH32(esp, eax); /* 0x4702FC98: push eax */
   5569     PUSH32(esp, 0x47106744u); /* 0x4702FC99: push 0x47106744 */
   5570     RECOMP_BACKEDGE();
   5571     goto L_4702FBF1; /* 0x4702FC9E: jmp 0x4702fbf1 */
   5572     { RECOMP_REGS_OUT(); return; } /* end of function */
   5573     RECOMP_REGS_OUT();
   5574 }
   5575 
   5576 void sub_4702FBF1(void) {
   5577     int _fpu_cmp = 0;
   5578     uint32_t _cf = 0;
   5579     int _df = 1;
   5580     uint32_t _flag_k = FK_NONE;
   5581     uint32_t _flag_a = 0, _flag_b = 0;
   5582     uint32_t _itail_tgt = 0;
   5583     RECOMP_REGS_LOCALS
   5584     RECOMP_ENTER(0x4702FBF1u);
   5585 
   5586 L_4702FBF1:
   5587     PUSH32(esp, 0x80u); /* 0x4702FBF1: push 0x80 */
   5588     PUSH32(esp, edi); /* 0x4702FBF6: push edi */
   5589     RECOMP_ICALL(0x47039830u); /* 0x4702FBF7: call 0x47039830 */ /* not lifted */
   5590     RECOMP_FLAGS_IN();
   5591     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5592     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5593     esp = esp + 0x14u; /* 0x4702FBFC: add esp, 0x14 */
   5594     _flag_k = FK_ADD;
   5595     edi = POP32_VAL(esp); /* 0x4702FBFF: pop edi */
   5596     esi = POP32_VAL(esp); /* 0x4702FC00: pop esi */
   5597     ebp = POP32_VAL(esp); /* 0x4702FC01: pop ebp */
   5598     eax = 0x3Fu; /* 0x4702FC02: mov eax, 0x3f */
   5599     ebx = POP32_VAL(esp); /* 0x4702FC07: pop ebx */
   5600     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FC08: ret  */
   5601     RECOMP_REGS_OUT();
   5602 }
   5603 
   5604 void sub_4702FC11(void) {
   5605     int _fpu_cmp = 0;
   5606     uint32_t _cf = 0;
   5607     int _df = 1;
   5608     uint32_t _flag_k = FK_NONE;
   5609     uint32_t _flag_a = 0, _flag_b = 0;
   5610     uint32_t _itail_tgt = 0;
   5611     RECOMP_REGS_LOCALS
   5612     RECOMP_ENTER(0x4702FC11u);
   5613 
   5614 L_4702FC11:
   5615     eax = MEM32(esi + 0x4); /* 0x4702FC11: mov eax, dword ptr [esi + 4] */
   5616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5617     eax = eax + 1; /* 0x4702FC14: inc eax */
   5618     _flag_k = FK_INC;
   5619     MEM32(esi + 0x14) = 0x4710DE90u; /* 0x4702FC15: mov dword ptr [esi + 0x14], 0x4710de90 */
   5620     MEM32(esi + 0x4) = eax; /* 0x4702FC1C: mov dword ptr [esi + 4], eax */
   5621     edi = POP32_VAL(esp); /* 0x4702FC1F: pop edi */
   5622     esi = POP32_VAL(esp); /* 0x4702FC20: pop esi */
   5623     eax = ebp; /* 0x4702FC21: mov eax, ebp */
   5624     ebp = POP32_VAL(esp); /* 0x4702FC23: pop ebp */
   5625     ebx = POP32_VAL(esp); /* 0x4702FC24: pop ebx */
   5626     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FC25: ret  */
   5627     RECOMP_REGS_OUT();
   5628 }
   5629 
   5630 void sub_4702FCB0(void) {
   5631     int _fpu_cmp = 0;
   5632     uint32_t _cf = 0;
   5633     int _df = 1;
   5634     uint32_t _flag_k = FK_NONE;
   5635     uint32_t _flag_a = 0, _flag_b = 0;
   5636     uint32_t _itail_tgt = 0;
   5637     RECOMP_REGS_LOCALS
   5638     RECOMP_ENTER(0x4702FCB0u);
   5639 
   5640 L_4702FCB0:
   5641     ecx = 0x4710E2DDu; /* 0x4702FCB0: mov ecx, 0x4710e2dd */
   5642     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x4702FCB5: call dword ptr [0x470ac1c8] */
   5643     RECOMP_FLAGS_IN();
   5644     PUSH32(esp, 0x4702FCD0u); /* 0x4702FCBB: push 0x4702fcd0 */
   5645     RECOMP_ICALL(0x470A32D9u); /* 0x4702FCC0: call 0x470a32d9 */ /* not lifted */
   5646     RECOMP_FLAGS_IN();
   5647     ecx = POP32_VAL(esp); /* 0x4702FCC5: pop ecx */
   5648     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FCC6: ret  */
   5649     RECOMP_REGS_OUT();
   5650 }
   5651 
   5652 void sub_4702FCD0(void) {
   5653     int _fpu_cmp = 0;
   5654     uint32_t _cf = 0;
   5655     int _df = 1;
   5656     uint32_t _flag_k = FK_NONE;
   5657     uint32_t _flag_a = 0, _flag_b = 0;
   5658     uint32_t _itail_tgt = 0;
   5659     RECOMP_REGS_LOCALS
   5660     RECOMP_ENTER(0x4702FCD0u);
   5661 
   5662 L_4702FCD0:
   5663     ecx = 0x4710E2DDu; /* 0x4702FCD0: mov ecx, 0x4710e2dd */
   5664 L_4702FCD5:
   5665     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   5666     { RECOMP_REGS_OUT(); return; } /* end of function */
   5667   _ljump:
   5668     switch (_itail_tgt) {
   5669       case 0x4702FCD0u: goto L_4702FCD0;
   5670       case 0x4702FCD5u: goto L_4702FCD5;
   5671       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5672     }
   5673     RECOMP_REGS_OUT();
   5674 }
   5675 
   5676 void sub_4702FCE0(void) {
   5677     int _fpu_cmp = 0;
   5678     uint32_t _cf = 0;
   5679     int _df = 1;
   5680     uint32_t _flag_k = FK_NONE;
   5681     uint32_t _flag_a = 0, _flag_b = 0;
   5682     uint32_t _itail_tgt = 0;
   5683     RECOMP_REGS_LOCALS
   5684     RECOMP_ENTER(0x4702FCE0u);
   5685 
   5686 L_4702FCE0:
   5687     ecx = 0x4710E2DCu; /* 0x4702FCE0: mov ecx, 0x4710e2dc */
   5688     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x4702FCE5: call dword ptr [0x470ac1c4] */
   5689     RECOMP_FLAGS_IN();
   5690     PUSH32(esp, 0x4702FD00u); /* 0x4702FCEB: push 0x4702fd00 */
   5691     RECOMP_ICALL(0x470A32D9u); /* 0x4702FCF0: call 0x470a32d9 */ /* not lifted */
   5692     RECOMP_FLAGS_IN();
   5693     ecx = POP32_VAL(esp); /* 0x4702FCF5: pop ecx */
   5694     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FCF6: ret  */
   5695     RECOMP_REGS_OUT();
   5696 }
   5697 
   5698 void sub_4702FD00(void) {
   5699     int _fpu_cmp = 0;
   5700     uint32_t _cf = 0;
   5701     int _df = 1;
   5702     uint32_t _flag_k = FK_NONE;
   5703     uint32_t _flag_a = 0, _flag_b = 0;
   5704     uint32_t _itail_tgt = 0;
   5705     RECOMP_REGS_LOCALS
   5706     RECOMP_ENTER(0x4702FD00u);
   5707 
   5708 L_4702FD00:
   5709     ecx = 0x4710E2DCu; /* 0x4702FD00: mov ecx, 0x4710e2dc */
   5710 L_4702FD05:
   5711     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   5712     { RECOMP_REGS_OUT(); return; } /* end of function */
   5713   _ljump:
   5714     switch (_itail_tgt) {
   5715       case 0x4702FD00u: goto L_4702FD00;
   5716       case 0x4702FD05u: goto L_4702FD05;
   5717       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5718     }
   5719     RECOMP_REGS_OUT();
   5720 }
   5721 
   5722 void sub_4702FD10(void) {
   5723     int _fpu_cmp = 0;
   5724     uint32_t _cf = 0;
   5725     int _df = 1;
   5726     uint32_t _flag_k = FK_NONE;
   5727     uint32_t _flag_a = 0, _flag_b = 0;
   5728     uint32_t _itail_tgt = 0;
   5729     RECOMP_REGS_LOCALS
   5730     RECOMP_ENTER(0x4702FD10u);
   5731 
   5732 L_4702FD10:
   5733     MEM32(0x4710E2E0) = 0x47106788u; /* 0x4702FD10: mov dword ptr [0x4710e2e0], 0x47106788 */
   5734     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FD1A: ret  */
   5735     RECOMP_REGS_OUT();
   5736 }
   5737 
   5738 void sub_4702FD20(void) {
   5739     int _fpu_cmp = 0;
   5740     uint32_t _cf = 0;
   5741     int _df = 1;
   5742     uint32_t _flag_k = FK_NONE;
   5743     uint32_t _flag_a = 0, _flag_b = 0;
   5744     uint32_t _itail_tgt = 0;
   5745     RECOMP_REGS_LOCALS
   5746     RECOMP_ENTER(0x4702FD20u);
   5747 
   5748 L_4702FD20:
   5749     PUSH32(esp, ecx); /* 0x4702FD20: push ecx */
   5750     PUSH32(esp, ebx); /* 0x4702FD21: push ebx */
   5751     PUSH32(esp, ebp); /* 0x4702FD22: push ebp */
   5752     ebp = MEM32(0x470AC150); /* 0x4702FD23: mov ebp, dword ptr [0x470ac150] */
   5753     PUSH32(esp, esi); /* 0x4702FD29: push esi */
   5754     PUSH32(esp, edi); /* 0x4702FD2A: push edi */
   5755     edi = ecx; /* 0x4702FD2B: mov edi, ecx */
   5756     RECOMP_ICALL(ebp); /* 0x4702FD2D: call ebp */
   5757     RECOMP_FLAGS_IN();
   5758     ebx = MEM32(0x470AC3C8); /* 0x4702FD2F: mov ebx, dword ptr [0x470ac3c8] */
   5759     esi = eax; /* 0x4702FD35: mov esi, eax */
   5760     RECOMP_ICALL(ebx); /* 0x4702FD37: call ebx */
   5761     RECOMP_FLAGS_IN();
   5762     eax = MEM32(eax); /* 0x4702FD39: mov eax, dword ptr [eax] */
   5763     /* test eax, eax */ /* 0x4702FD3B: test eax, eax */
   5764     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5765     _cf = 0;
   5766     _flag_k = FK_TEST;
   5767     MEM32(esp + 0x10) = esi; /* 0x4702FD3D: mov dword ptr [esp + 0x10], esi */
   5768     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FD47; /* 0x4702FD41: je 0x4702fd47 */
   5769 L_4702FD43:
   5770     MEM32(esp + 0x10) = eax; /* 0x4702FD43: mov dword ptr [esp + 0x10], eax */
   5771 L_4702FD47:
   5772     RECOMP_ICALL(0x47039020u); /* 0x4702FD47: call 0x47039020 */ /* not lifted */
   5773     RECOMP_FLAGS_IN();
   5774     esi = eax; /* 0x4702FD4C: mov esi, eax */
   5775     ecx = esi; /* 0x4702FD4E: mov ecx, esi */
   5776     RECOMP_ICALL(0x4703B210u); /* 0x4702FD50: call 0x4703b210 */ /* not lifted */
   5777     RECOMP_FLAGS_IN();
   5778     PUSH32(esp, eax); /* 0x4702FD55: push eax */
   5779     ecx = esi; /* 0x4702FD56: mov ecx, esi */
   5780     RECOMP_ICALL(0x4703B240u); /* 0x4702FD58: call 0x4703b240 */ /* not lifted */
   5781     RECOMP_FLAGS_IN();
   5782     PUSH32(esp, eax); /* 0x4702FD5D: push eax */
   5783     ecx = esi; /* 0x4702FD5E: mov ecx, esi */
   5784     RECOMP_ICALL(0x4703B080u); /* 0x4702FD60: call 0x4703b080 */ /* not lifted */
   5785     RECOMP_FLAGS_IN();
   5786     PUSH32(esp, eax); /* 0x4702FD65: push eax */
   5787     eax = MEM32(esp + 0x1C); /* 0x4702FD66: mov eax, dword ptr [esp + 0x1c] */
   5788     PUSH32(esp, eax); /* 0x4702FD6A: push eax */
   5789     PUSH32(esp, 0); /* 0x4702FD6B: push 0 */
   5790     PUSH32(esp, 0x1Bu); /* 0x4702FD6D: push 0x1b */
   5791     PUSH32(esp, 0x471067F0u); /* 0x4702FD6F: push 0x471067f0 */
   5792     ecx = esi; /* 0x4702FD74: mov ecx, esi */
   5793     RECOMP_ICALL(0x4703A340u); /* 0x4702FD76: call 0x4703a340 */ /* not lifted */
   5794     RECOMP_FLAGS_IN();
   5795     PUSH32(esp, edi); /* 0x4702FD7B: push edi */
   5796     PUSH32(esp, 0x471052CCu); /* 0x4702FD7C: push 0x471052cc */
   5797     PUSH32(esp, 4); /* 0x4702FD81: push 4 */
   5798     PUSH32(esp, esi); /* 0x4702FD83: push esi */
   5799     RECOMP_ICALL(0x47039830u); /* 0x4702FD84: call 0x47039830 */ /* not lifted */
   5800     RECOMP_FLAGS_IN();
   5801     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5802     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5803     esp = esp + 0x10u; /* 0x4702FD89: add esp, 0x10 */
   5804     _flag_k = FK_ADD;
   5805     RECOMP_ICALL(ebp); /* 0x4702FD8C: call ebp */
   5806     RECOMP_FLAGS_IN();
   5807     esi = eax; /* 0x4702FD8E: mov esi, eax */
   5808     RECOMP_ICALL(ebx); /* 0x4702FD90: call ebx */
   5809     RECOMP_FLAGS_IN();
   5810     eax = MEM32(eax); /* 0x4702FD92: mov eax, dword ptr [eax] */
   5811     /* test eax, eax */ /* 0x4702FD94: test eax, eax */
   5812     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5813     _cf = 0;
   5814     _flag_k = FK_TEST;
   5815     MEM32(esp + 0x10) = esi; /* 0x4702FD96: mov dword ptr [esp + 0x10], esi */
   5816     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FDA0; /* 0x4702FD9A: je 0x4702fda0 */
   5817 L_4702FD9C:
   5818     MEM32(esp + 0x10) = eax; /* 0x4702FD9C: mov dword ptr [esp + 0x10], eax */
   5819 L_4702FDA0:
   5820     RECOMP_ICALL(0x47039020u); /* 0x4702FDA0: call 0x47039020 */ /* not lifted */
   5821     RECOMP_FLAGS_IN();
   5822     esi = eax; /* 0x4702FDA5: mov esi, eax */
   5823     ecx = esi; /* 0x4702FDA7: mov ecx, esi */
   5824     RECOMP_ICALL(0x4703B210u); /* 0x4702FDA9: call 0x4703b210 */ /* not lifted */
   5825     RECOMP_FLAGS_IN();
   5826     PUSH32(esp, eax); /* 0x4702FDAE: push eax */
   5827     ecx = esi; /* 0x4702FDAF: mov ecx, esi */
   5828     RECOMP_ICALL(0x4703B240u); /* 0x4702FDB1: call 0x4703b240 */ /* not lifted */
   5829     RECOMP_FLAGS_IN();
   5830     PUSH32(esp, eax); /* 0x4702FDB6: push eax */
   5831     ecx = esi; /* 0x4702FDB7: mov ecx, esi */
   5832     RECOMP_ICALL(0x4703B080u); /* 0x4702FDB9: call 0x4703b080 */ /* not lifted */
   5833     RECOMP_FLAGS_IN();
   5834     ecx = MEM32(esp + 0x18); /* 0x4702FDBE: mov ecx, dword ptr [esp + 0x18] */
   5835     PUSH32(esp, eax); /* 0x4702FDC2: push eax */
   5836     PUSH32(esp, ecx); /* 0x4702FDC3: push ecx */
   5837     PUSH32(esp, 0); /* 0x4702FDC4: push 0 */
   5838     PUSH32(esp, 0x1Du); /* 0x4702FDC6: push 0x1d */
   5839     PUSH32(esp, 0x471067F0u); /* 0x4702FDC8: push 0x471067f0 */
   5840     ecx = esi; /* 0x4702FDCD: mov ecx, esi */
   5841     RECOMP_ICALL(0x4703A340u); /* 0x4702FDCF: call 0x4703a340 */ /* not lifted */
   5842     RECOMP_FLAGS_IN();
   5843     edx = MEM32(edi); /* 0x4702FDD4: mov edx, dword ptr [edi] */
   5844     PUSH32(esp, edx); /* 0x4702FDD6: push edx */
   5845     PUSH32(esp, 0x471067E4u); /* 0x4702FDD7: push 0x471067e4 */
   5846     PUSH32(esp, 4); /* 0x4702FDDC: push 4 */
   5847     PUSH32(esp, esi); /* 0x4702FDDE: push esi */
   5848     RECOMP_ICALL(0x47039830u); /* 0x4702FDDF: call 0x47039830 */ /* not lifted */
   5849     RECOMP_FLAGS_IN();
   5850     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5851     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5852     esp = esp + 0x10u; /* 0x4702FDE4: add esp, 0x10 */
   5853     _flag_k = FK_ADD;
   5854     RECOMP_ICALL(ebp); /* 0x4702FDE7: call ebp */
   5855     RECOMP_FLAGS_IN();
   5856     esi = eax; /* 0x4702FDE9: mov esi, eax */
   5857     RECOMP_ICALL(ebx); /* 0x4702FDEB: call ebx */
   5858     RECOMP_FLAGS_IN();
   5859     eax = MEM32(eax); /* 0x4702FDED: mov eax, dword ptr [eax] */
   5860     /* test eax, eax */ /* 0x4702FDEF: test eax, eax */
   5861     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5862     _cf = 0;
   5863     _flag_k = FK_TEST;
   5864     MEM32(esp + 0x10) = esi; /* 0x4702FDF1: mov dword ptr [esp + 0x10], esi */
   5865     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FDFB; /* 0x4702FDF5: je 0x4702fdfb */
   5866 L_4702FDF7:
   5867     MEM32(esp + 0x10) = eax; /* 0x4702FDF7: mov dword ptr [esp + 0x10], eax */
   5868 L_4702FDFB:
   5869     RECOMP_ICALL(0x47039020u); /* 0x4702FDFB: call 0x47039020 */ /* not lifted */
   5870     RECOMP_FLAGS_IN();
   5871     esi = eax; /* 0x4702FE00: mov esi, eax */
   5872     ecx = esi; /* 0x4702FE02: mov ecx, esi */
   5873     RECOMP_ICALL(0x4703B210u); /* 0x4702FE04: call 0x4703b210 */ /* not lifted */
   5874     RECOMP_FLAGS_IN();
   5875     PUSH32(esp, eax); /* 0x4702FE09: push eax */
   5876     ecx = esi; /* 0x4702FE0A: mov ecx, esi */
   5877     RECOMP_ICALL(0x4703B240u); /* 0x4702FE0C: call 0x4703b240 */ /* not lifted */
   5878     RECOMP_FLAGS_IN();
   5879     PUSH32(esp, eax); /* 0x4702FE11: push eax */
   5880     ecx = esi; /* 0x4702FE12: mov ecx, esi */
   5881     RECOMP_ICALL(0x4703B080u); /* 0x4702FE14: call 0x4703b080 */ /* not lifted */
   5882     RECOMP_FLAGS_IN();
   5883     PUSH32(esp, eax); /* 0x4702FE19: push eax */
   5884     eax = MEM32(esp + 0x1C); /* 0x4702FE1A: mov eax, dword ptr [esp + 0x1c] */
   5885     PUSH32(esp, eax); /* 0x4702FE1E: push eax */
   5886     PUSH32(esp, 0); /* 0x4702FE1F: push 0 */
   5887     PUSH32(esp, 0x1Eu); /* 0x4702FE21: push 0x1e */
   5888     PUSH32(esp, 0x471067F0u); /* 0x4702FE23: push 0x471067f0 */
   5889     ecx = esi; /* 0x4702FE28: mov ecx, esi */
   5890     RECOMP_ICALL(0x4703A340u); /* 0x4702FE2A: call 0x4703a340 */ /* not lifted */
   5891     RECOMP_FLAGS_IN();
   5892     ecx = MEM32(edi + 0x4); /* 0x4702FE2F: mov ecx, dword ptr [edi + 4] */
   5893     PUSH32(esp, ecx); /* 0x4702FE32: push ecx */
   5894     PUSH32(esp, 0x471067D0u); /* 0x4702FE33: push 0x471067d0 */
   5895     PUSH32(esp, 4); /* 0x4702FE38: push 4 */
   5896     PUSH32(esp, esi); /* 0x4702FE3A: push esi */
   5897     RECOMP_ICALL(0x47039830u); /* 0x4702FE3B: call 0x47039830 */ /* not lifted */
   5898     RECOMP_FLAGS_IN();
   5899     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5900     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5901     esp = esp + 0x10u; /* 0x4702FE40: add esp, 0x10 */
   5902     _flag_k = FK_ADD;
   5903     RECOMP_ICALL(ebp); /* 0x4702FE43: call ebp */
   5904     RECOMP_FLAGS_IN();
   5905     esi = eax; /* 0x4702FE45: mov esi, eax */
   5906     RECOMP_ICALL(ebx); /* 0x4702FE47: call ebx */
   5907     RECOMP_FLAGS_IN();
   5908     eax = MEM32(eax); /* 0x4702FE49: mov eax, dword ptr [eax] */
   5909     /* test eax, eax */ /* 0x4702FE4B: test eax, eax */
   5910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5911     _cf = 0;
   5912     _flag_k = FK_TEST;
   5913     ebx = esi; /* 0x4702FE4D: mov ebx, esi */
   5914     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FE53; /* 0x4702FE4F: je 0x4702fe53 */
   5915 L_4702FE51:
   5916     ebx = eax; /* 0x4702FE51: mov ebx, eax */
   5917 L_4702FE53:
   5918     RECOMP_ICALL(0x47039020u); /* 0x4702FE53: call 0x47039020 */ /* not lifted */
   5919     RECOMP_FLAGS_IN();
   5920     esi = eax; /* 0x4702FE58: mov esi, eax */
   5921     ecx = esi; /* 0x4702FE5A: mov ecx, esi */
   5922     RECOMP_ICALL(0x4703B210u); /* 0x4702FE5C: call 0x4703b210 */ /* not lifted */
   5923     RECOMP_FLAGS_IN();
   5924     PUSH32(esp, eax); /* 0x4702FE61: push eax */
   5925     ecx = esi; /* 0x4702FE62: mov ecx, esi */
   5926     RECOMP_ICALL(0x4703B240u); /* 0x4702FE64: call 0x4703b240 */ /* not lifted */
   5927     RECOMP_FLAGS_IN();
   5928     PUSH32(esp, eax); /* 0x4702FE69: push eax */
   5929     ecx = esi; /* 0x4702FE6A: mov ecx, esi */
   5930     RECOMP_ICALL(0x4703B080u); /* 0x4702FE6C: call 0x4703b080 */ /* not lifted */
   5931     RECOMP_FLAGS_IN();
   5932     PUSH32(esp, eax); /* 0x4702FE71: push eax */
   5933     PUSH32(esp, ebx); /* 0x4702FE72: push ebx */
   5934     PUSH32(esp, 0); /* 0x4702FE73: push 0 */
   5935     PUSH32(esp, 0x1Fu); /* 0x4702FE75: push 0x1f */
   5936     PUSH32(esp, 0x471067F0u); /* 0x4702FE77: push 0x471067f0 */
   5937     ecx = esi; /* 0x4702FE7C: mov ecx, esi */
   5938     RECOMP_ICALL(0x4703A340u); /* 0x4702FE7E: call 0x4703a340 */ /* not lifted */
   5939     RECOMP_FLAGS_IN();
   5940     PUSH32(esp, 0x471067CCu); /* 0x4702FE83: push 0x471067cc */
   5941     PUSH32(esp, 4); /* 0x4702FE88: push 4 */
   5942     PUSH32(esp, esi); /* 0x4702FE8A: push esi */
   5943     RECOMP_ICALL(0x47039830u); /* 0x4702FE8B: call 0x47039830 */ /* not lifted */
   5944     RECOMP_FLAGS_IN();
   5945     edx = MEM32(edi + 0x8); /* 0x4702FE90: mov edx, dword ptr [edi + 8] */
   5946     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5947     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5948     esp = esp + 0xCu; /* 0x4702FE93: add esp, 0xc */
   5949     _flag_k = FK_ADD;
   5950     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5951     ebx = 0; /* 0x4702FE96: xor ebx, ebx */
   5952     _cf = 0;
   5953     _flag_k = FK_TEST;
   5954     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5955     edx = edx + 1; /* 0x4702FE98: inc edx */
   5956     _flag_k = FK_INC;
   5957     if (/* inc result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_4702FF14; /* 0x4702FE99: je 0x4702ff14 */
   5958 L_4702FE9B:
   5959     ebp = edi + 0xC; /* 0x4702FE9B: lea ebp, [edi + 0xc] */
   5960 L_4702FE9E:
   5961     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702FE9E: call dword ptr [0x470ac150] */
   5962     RECOMP_FLAGS_IN();
   5963     esi = eax; /* 0x4702FEA4: mov esi, eax */
   5964     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702FEA6: call dword ptr [0x470ac3c8] */
   5965     RECOMP_FLAGS_IN();
   5966     eax = MEM32(eax); /* 0x4702FEAC: mov eax, dword ptr [eax] */
   5967     /* test eax, eax */ /* 0x4702FEAE: test eax, eax */
   5968     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5969     _cf = 0;
   5970     _flag_k = FK_TEST;
   5971     MEM32(esp + 0x10) = esi; /* 0x4702FEB0: mov dword ptr [esp + 0x10], esi */
   5972     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FEBA; /* 0x4702FEB4: je 0x4702feba */
   5973 L_4702FEB6:
   5974     MEM32(esp + 0x10) = eax; /* 0x4702FEB6: mov dword ptr [esp + 0x10], eax */
   5975 L_4702FEBA:
   5976     RECOMP_ICALL(0x47039020u); /* 0x4702FEBA: call 0x47039020 */ /* not lifted */
   5977     RECOMP_FLAGS_IN();
   5978     esi = eax; /* 0x4702FEBF: mov esi, eax */
   5979     ecx = esi; /* 0x4702FEC1: mov ecx, esi */
   5980     RECOMP_ICALL(0x4703B210u); /* 0x4702FEC3: call 0x4703b210 */ /* not lifted */
   5981     RECOMP_FLAGS_IN();
   5982     PUSH32(esp, eax); /* 0x4702FEC8: push eax */
   5983     ecx = esi; /* 0x4702FEC9: mov ecx, esi */
   5984     RECOMP_ICALL(0x4703B240u); /* 0x4702FECB: call 0x4703b240 */ /* not lifted */
   5985     RECOMP_FLAGS_IN();
   5986     PUSH32(esp, eax); /* 0x4702FED0: push eax */
   5987     ecx = esi; /* 0x4702FED1: mov ecx, esi */
   5988     RECOMP_ICALL(0x4703B080u); /* 0x4702FED3: call 0x4703b080 */ /* not lifted */
   5989     RECOMP_FLAGS_IN();
   5990     PUSH32(esp, eax); /* 0x4702FED8: push eax */
   5991     eax = MEM32(esp + 0x1C); /* 0x4702FED9: mov eax, dword ptr [esp + 0x1c] */
   5992     PUSH32(esp, eax); /* 0x4702FEDD: push eax */
   5993     PUSH32(esp, 0); /* 0x4702FEDE: push 0 */
   5994     PUSH32(esp, 0x23u); /* 0x4702FEE0: push 0x23 */
   5995     PUSH32(esp, 0x471067F0u); /* 0x4702FEE2: push 0x471067f0 */
   5996     ecx = esi; /* 0x4702FEE7: mov ecx, esi */
   5997     RECOMP_ICALL(0x4703A340u); /* 0x4702FEE9: call 0x4703a340 */ /* not lifted */
   5998     RECOMP_FLAGS_IN();
   5999     ecx = MEM32(ebp); /* 0x4702FEEE: mov ecx, dword ptr [ebp] */
   6000     PUSH32(esp, ecx); /* 0x4702FEF1: push ecx */
   6001     PUSH32(esp, 0x471067C4u); /* 0x4702FEF2: push 0x471067c4 */
   6002     PUSH32(esp, 4); /* 0x4702FEF7: push 4 */
   6003     PUSH32(esp, esi); /* 0x4702FEF9: push esi */
   6004     RECOMP_ICALL(0x47039830u); /* 0x4702FEFA: call 0x47039830 */ /* not lifted */
   6005     RECOMP_FLAGS_IN();
   6006     edx = MEM32(edi + 0x8); /* 0x4702FEFF: mov edx, dword ptr [edi + 8] */
   6007     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6008     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6009     esp = esp + 0x10u; /* 0x4702FF02: add esp, 0x10 */
   6010     _flag_k = FK_ADD;
   6011     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   6012     ebx = ebx + 1; /* 0x4702FF05: inc ebx */
   6013     _flag_k = FK_INC;
   6014     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(4);
   6015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6016     ebp = ebp + 4; /* 0x4702FF06: add ebp, 4 */
   6017     _flag_k = FK_ADD;
   6018     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6019     edx = edx + 1; /* 0x4702FF09: inc edx */
   6020     _flag_k = FK_INC;
   6021     /* cmp ebx, edx */ /* 0x4702FF0A: cmp ebx, edx */
   6022     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   6023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6024     _flag_k = FK_CMP;
   6025     RECOMP_BACKEDGE();
   6026     if (CMP_B(_flag_a, _flag_b)) goto L_4702FE9E; /* 0x4702FF0C: jb 0x4702fe9e */
   6027 L_4702FF0E:
   6028     ebp = MEM32(0x470AC150); /* 0x4702FF0E: mov ebp, dword ptr [0x470ac150] */
   6029 L_4702FF14:
   6030     RECOMP_ICALL(ebp); /* 0x4702FF14: call ebp */
   6031     RECOMP_FLAGS_IN();
   6032     ebx = MEM32(0x470AC3C8); /* 0x4702FF16: mov ebx, dword ptr [0x470ac3c8] */
   6033     edi = eax; /* 0x4702FF1C: mov edi, eax */
   6034     RECOMP_ICALL(ebx); /* 0x4702FF1E: call ebx */
   6035     RECOMP_FLAGS_IN();
   6036     eax = MEM32(eax); /* 0x4702FF20: mov eax, dword ptr [eax] */
   6037     /* test eax, eax */ /* 0x4702FF22: test eax, eax */
   6038     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6039     _cf = 0;
   6040     _flag_k = FK_TEST;
   6041     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FF28; /* 0x4702FF24: je 0x4702ff28 */
   6042 L_4702FF26:
   6043     edi = eax; /* 0x4702FF26: mov edi, eax */
   6044 L_4702FF28:
   6045     RECOMP_ICALL(0x47039020u); /* 0x4702FF28: call 0x47039020 */ /* not lifted */
   6046     RECOMP_FLAGS_IN();
   6047     esi = eax; /* 0x4702FF2D: mov esi, eax */
   6048     ecx = esi; /* 0x4702FF2F: mov ecx, esi */
   6049     RECOMP_ICALL(0x4703B210u); /* 0x4702FF31: call 0x4703b210 */ /* not lifted */
   6050     RECOMP_FLAGS_IN();
   6051     PUSH32(esp, eax); /* 0x4702FF36: push eax */
   6052     ecx = esi; /* 0x4702FF37: mov ecx, esi */
   6053     RECOMP_ICALL(0x4703B240u); /* 0x4702FF39: call 0x4703b240 */ /* not lifted */
   6054     RECOMP_FLAGS_IN();
   6055     PUSH32(esp, eax); /* 0x4702FF3E: push eax */
   6056     ecx = esi; /* 0x4702FF3F: mov ecx, esi */
   6057     RECOMP_ICALL(0x4703B080u); /* 0x4702FF41: call 0x4703b080 */ /* not lifted */
   6058     RECOMP_FLAGS_IN();
   6059     PUSH32(esp, eax); /* 0x4702FF46: push eax */
   6060     PUSH32(esp, edi); /* 0x4702FF47: push edi */
   6061     PUSH32(esp, 0); /* 0x4702FF48: push 0 */
   6062     PUSH32(esp, 0x2Au); /* 0x4702FF4A: push 0x2a */
   6063     PUSH32(esp, 0x471067F0u); /* 0x4702FF4C: push 0x471067f0 */
   6064     ecx = esi; /* 0x4702FF51: mov ecx, esi */
   6065     RECOMP_ICALL(0x4703A340u); /* 0x4702FF53: call 0x4703a340 */ /* not lifted */
   6066     RECOMP_FLAGS_IN();
   6067     PUSH32(esp, 0x471067C0u); /* 0x4702FF58: push 0x471067c0 */
   6068     PUSH32(esp, 4); /* 0x4702FF5D: push 4 */
   6069     PUSH32(esp, esi); /* 0x4702FF5F: push esi */
   6070     RECOMP_ICALL(0x47039830u); /* 0x4702FF60: call 0x47039830 */ /* not lifted */
   6071     RECOMP_FLAGS_IN();
   6072     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6073     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6074     esp = esp + 0xCu; /* 0x4702FF65: add esp, 0xc */
   6075     _flag_k = FK_ADD;
   6076     RECOMP_ICALL(ebp); /* 0x4702FF68: call ebp */
   6077     RECOMP_FLAGS_IN();
   6078     esi = eax; /* 0x4702FF6A: mov esi, eax */
   6079     RECOMP_ICALL(ebx); /* 0x4702FF6C: call ebx */
   6080     RECOMP_FLAGS_IN();
   6081     eax = MEM32(eax); /* 0x4702FF6E: mov eax, dword ptr [eax] */
   6082     /* test eax, eax */ /* 0x4702FF70: test eax, eax */
   6083     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6084     _cf = 0;
   6085     _flag_k = FK_TEST;
   6086     edi = esi; /* 0x4702FF72: mov edi, esi */
   6087     if (TEST_Z(_flag_a, _flag_b)) goto L_4702FF78; /* 0x4702FF74: je 0x4702ff78 */
   6088 L_4702FF76:
   6089     edi = eax; /* 0x4702FF76: mov edi, eax */
   6090 L_4702FF78:
   6091     RECOMP_ICALL(0x47039020u); /* 0x4702FF78: call 0x47039020 */ /* not lifted */
   6092     RECOMP_FLAGS_IN();
   6093     esi = eax; /* 0x4702FF7D: mov esi, eax */
   6094     ecx = esi; /* 0x4702FF7F: mov ecx, esi */
   6095     RECOMP_ICALL(0x4703B210u); /* 0x4702FF81: call 0x4703b210 */ /* not lifted */
   6096     RECOMP_FLAGS_IN();
   6097     PUSH32(esp, eax); /* 0x4702FF86: push eax */
   6098     ecx = esi; /* 0x4702FF87: mov ecx, esi */
   6099     RECOMP_ICALL(0x4703B240u); /* 0x4702FF89: call 0x4703b240 */ /* not lifted */
   6100     RECOMP_FLAGS_IN();
   6101     PUSH32(esp, eax); /* 0x4702FF8E: push eax */
   6102     ecx = esi; /* 0x4702FF8F: mov ecx, esi */
   6103     RECOMP_ICALL(0x4703B080u); /* 0x4702FF91: call 0x4703b080 */ /* not lifted */
   6104     RECOMP_FLAGS_IN();
   6105     PUSH32(esp, eax); /* 0x4702FF96: push eax */
   6106     PUSH32(esp, edi); /* 0x4702FF97: push edi */
   6107     PUSH32(esp, 0); /* 0x4702FF98: push 0 */
   6108     PUSH32(esp, 0x2Bu); /* 0x4702FF9A: push 0x2b */
   6109     PUSH32(esp, 0x471067F0u); /* 0x4702FF9C: push 0x471067f0 */
   6110     ecx = esi; /* 0x4702FFA1: mov ecx, esi */
   6111     RECOMP_ICALL(0x4703A340u); /* 0x4702FFA3: call 0x4703a340 */ /* not lifted */
   6112     RECOMP_FLAGS_IN();
   6113     PUSH32(esp, 0x4710529Cu); /* 0x4702FFA8: push 0x4710529c */
   6114     PUSH32(esp, 4); /* 0x4702FFAD: push 4 */
   6115     PUSH32(esp, esi); /* 0x4702FFAF: push esi */
   6116     RECOMP_ICALL(0x47039830u); /* 0x4702FFB0: call 0x47039830 */ /* not lifted */
   6117     RECOMP_FLAGS_IN();
   6118     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6119     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6120     esp = esp + 0xCu; /* 0x4702FFB5: add esp, 0xc */
   6121     _flag_k = FK_ADD;
   6122     edi = POP32_VAL(esp); /* 0x4702FFB8: pop edi */
   6123     esi = POP32_VAL(esp); /* 0x4702FFB9: pop esi */
   6124     ebp = POP32_VAL(esp); /* 0x4702FFBA: pop ebp */
   6125     ebx = POP32_VAL(esp); /* 0x4702FFBB: pop ebx */
   6126     ecx = POP32_VAL(esp); /* 0x4702FFBC: pop ecx */
   6127     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FFBD: ret  */
   6128     RECOMP_REGS_OUT();
   6129 }
   6130 
   6131 void sub_4702FFC0(void) {
   6132     int _fpu_cmp = 0;
   6133     uint32_t _cf = 0;
   6134     int _df = 1;
   6135     uint32_t _flag_k = FK_NONE;
   6136     uint32_t _flag_a = 0, _flag_b = 0;
   6137     uint32_t _itail_tgt = 0;
   6138     RECOMP_REGS_LOCALS
   6139     RECOMP_ENTER(0x4702FFC0u);
   6140 
   6141 L_4702FFC0:
   6142     eax = ecx; /* 0x4702FFC0: mov eax, ecx */
   6143     MEM32(eax + 0x4) = 0xFFFFFFFFu; /* 0x4702FFC2: mov dword ptr [eax + 4], 0xffffffff */
   6144     MEM32(eax) = 0; /* 0x4702FFC9: mov dword ptr [eax], 0 */
   6145     MEM32(eax + 0x8) = 0; /* 0x4702FFCF: mov dword ptr [eax + 8], 0 */
   6146     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702FFD6: ret  */
   6147     RECOMP_REGS_OUT();
   6148 }
   6149 
   6150 void sub_4702FFE0(void) {
   6151     int _fpu_cmp = 0;
   6152     uint32_t _cf = 0;
   6153     int _df = 1;
   6154     uint32_t _flag_k = FK_NONE;
   6155     uint32_t _flag_a = 0, _flag_b = 0;
   6156     uint32_t _itail_tgt = 0;
   6157     RECOMP_REGS_LOCALS
   6158     RECOMP_ENTER(0x4702FFE0u);
   6159 
   6160 L_4702FFE0:
   6161     PUSH32(esp, esi); /* 0x4702FFE0: push esi */
   6162     esi = MEM32(esp + 0x8); /* 0x4702FFE1: mov esi, dword ptr [esp + 8] */
   6163     eax = ecx; /* 0x4702FFE5: mov eax, ecx */
   6164     PUSH32(esp, edi); /* 0x4702FFE7: push edi */
   6165     edi = eax + 0x8; /* 0x4702FFE8: lea edi, [eax + 8] */
   6166     MEM32(edi) = 0; /* 0x4702FFEB: mov dword ptr [edi], 0 */
   6167     ecx = 0x41u; /* 0x4702FFF1: mov ecx, 0x41 */
   6168     MEM32(eax + 0x4) = 0xFFFFFFFFu; /* 0x4702FFF6: mov dword ptr [eax + 4], 0xffffffff */
   6169     MEM32(eax) = 0; /* 0x4702FFFD: mov dword ptr [eax], 0 */
   6170     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47030003: 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; }
   6171     edi = POP32_VAL(esp); /* 0x47030005: pop edi */
   6172     esi = POP32_VAL(esp); /* 0x47030006: pop esi */
   6173     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47030007: ret 4 */
   6174     RECOMP_REGS_OUT();
   6175 }
   6176 
   6177 void sub_47030010(void) {
   6178     int _fpu_cmp = 0;
   6179     uint32_t _cf = 0;
   6180     int _df = 1;
   6181     uint32_t _flag_k = FK_NONE;
   6182     uint32_t _flag_a = 0, _flag_b = 0;
   6183     uint32_t _itail_tgt = 0;
   6184     RECOMP_REGS_LOCALS
   6185     RECOMP_ENTER(0x47030010u);
   6186 
   6187 L_47030010:
   6188     ecx = MEM32(esp + 0x4); /* 0x47030010: mov ecx, dword ptr [esp + 4] */
   6189     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6190     eax = 0; /* 0x47030014: xor eax, eax */
   6191     _cf = 0;
   6192     _flag_k = FK_TEST;
   6193     /* test ecx, ecx */ /* 0x47030016: test ecx, ecx */
   6194     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6195     _cf = 0;
   6196     _flag_k = FK_TEST;
   6197     if (TEST_Z(_flag_a, _flag_b)) goto L_47030022; /* 0x47030018: je 0x47030022 */
   6198 L_4703001A:
   6199     edx = ecx + (-0x1); /* 0x4703001A: lea edx, [ecx - 1] */
   6200     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6201     eax = eax + 1; /* 0x4703001D: inc eax */
   6202     _flag_k = FK_INC;
   6203     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6204     ecx = ecx & edx; /* 0x4703001E: and ecx, edx */
   6205     _cf = 0;
   6206     _flag_k = FK_TEST;
   6207     RECOMP_BACKEDGE();
   6208     if (TEST_NZ(_flag_a, _flag_b)) goto L_4703001A; /* 0x47030020: jne 0x4703001a */
   6209 L_47030022:
   6210     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030022: ret  */
   6211     RECOMP_REGS_OUT();
   6212 }
   6213 
   6214 void sub_47030030(void) {
   6215     int _fpu_cmp = 0;
   6216     uint32_t _cf = 0;
   6217     int _df = 1;
   6218     uint32_t _flag_k = FK_NONE;
   6219     uint32_t _flag_a = 0, _flag_b = 0;
   6220     uint32_t _itail_tgt = 0;
   6221     RECOMP_REGS_LOCALS
   6222     RECOMP_ENTER(0x47030030u);
   6223 
   6224 L_47030030:
   6225     PUSH32(esp, ecx); /* 0x47030030: push ecx */
   6226     PUSH32(esp, ebx); /* 0x47030031: push ebx */
   6227     ebx = MEM32(0x470AC150); /* 0x47030032: mov ebx, dword ptr [0x470ac150] */
   6228     PUSH32(esp, ebp); /* 0x47030038: push ebp */
   6229     PUSH32(esp, esi); /* 0x47030039: push esi */
   6230     PUSH32(esp, edi); /* 0x4703003A: push edi */
   6231     edi = ecx; /* 0x4703003B: mov edi, ecx */
   6232     RECOMP_ICALL(ebx); /* 0x4703003D: call ebx */
   6233     RECOMP_FLAGS_IN();
   6234     ebp = MEM32(0x470AC3C8); /* 0x4703003F: mov ebp, dword ptr [0x470ac3c8] */
   6235     esi = eax; /* 0x47030045: mov esi, eax */
   6236     RECOMP_ICALL(ebp); /* 0x47030047: call ebp */
   6237     RECOMP_FLAGS_IN();
   6238     eax = MEM32(eax); /* 0x47030049: mov eax, dword ptr [eax] */
   6239     /* test eax, eax */ /* 0x4703004B: test eax, eax */
   6240     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6241     _cf = 0;
   6242     _flag_k = FK_TEST;
   6243     MEM32(esp + 0x10) = esi; /* 0x4703004D: mov dword ptr [esp + 0x10], esi */
   6244     if (TEST_Z(_flag_a, _flag_b)) goto L_47030057; /* 0x47030051: je 0x47030057 */
   6245 L_47030053:
   6246     MEM32(esp + 0x10) = eax; /* 0x47030053: mov dword ptr [esp + 0x10], eax */
   6247 L_47030057:
   6248     RECOMP_ICALL(0x47039020u); /* 0x47030057: call 0x47039020 */ /* not lifted */
   6249     RECOMP_FLAGS_IN();
   6250     esi = eax; /* 0x4703005C: mov esi, eax */
   6251     ecx = esi; /* 0x4703005E: mov ecx, esi */
   6252     RECOMP_ICALL(0x4703B210u); /* 0x47030060: call 0x4703b210 */ /* not lifted */
   6253     RECOMP_FLAGS_IN();
   6254     PUSH32(esp, eax); /* 0x47030065: push eax */
   6255     ecx = esi; /* 0x47030066: mov ecx, esi */
   6256     RECOMP_ICALL(0x4703B240u); /* 0x47030068: call 0x4703b240 */ /* not lifted */
   6257     RECOMP_FLAGS_IN();
   6258     PUSH32(esp, eax); /* 0x4703006D: push eax */
   6259     ecx = esi; /* 0x4703006E: mov ecx, esi */
   6260     RECOMP_ICALL(0x4703B080u); /* 0x47030070: call 0x4703b080 */ /* not lifted */
   6261     RECOMP_FLAGS_IN();
   6262     PUSH32(esp, eax); /* 0x47030075: push eax */
   6263     eax = MEM32(esp + 0x1C); /* 0x47030076: mov eax, dword ptr [esp + 0x1c] */
   6264     PUSH32(esp, eax); /* 0x4703007A: push eax */
   6265     PUSH32(esp, 0); /* 0x4703007B: push 0 */
   6266     PUSH32(esp, 0xF5u); /* 0x4703007D: push 0xf5 */
   6267     PUSH32(esp, 0x471067F0u); /* 0x47030082: push 0x471067f0 */
   6268     ecx = esi; /* 0x47030087: mov ecx, esi */
   6269     RECOMP_ICALL(0x4703A340u); /* 0x47030089: call 0x4703a340 */ /* not lifted */
   6270     RECOMP_FLAGS_IN();
   6271     PUSH32(esp, edi); /* 0x4703008E: push edi */
   6272     PUSH32(esp, 0x471052CCu); /* 0x4703008F: push 0x471052cc */
   6273     PUSH32(esp, 4); /* 0x47030094: push 4 */
   6274     PUSH32(esp, esi); /* 0x47030096: push esi */
   6275     RECOMP_ICALL(0x47039830u); /* 0x47030097: call 0x47039830 */ /* not lifted */
   6276     RECOMP_FLAGS_IN();
   6277     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6278     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6279     esp = esp + 0x10u; /* 0x4703009C: add esp, 0x10 */
   6280     _flag_k = FK_ADD;
   6281     RECOMP_ICALL(ebx); /* 0x4703009F: call ebx */
   6282     RECOMP_FLAGS_IN();
   6283     esi = eax; /* 0x470300A1: mov esi, eax */
   6284     RECOMP_ICALL(ebp); /* 0x470300A3: call ebp */
   6285     RECOMP_FLAGS_IN();
   6286     eax = MEM32(eax); /* 0x470300A5: mov eax, dword ptr [eax] */
   6287     /* test eax, eax */ /* 0x470300A7: test eax, eax */
   6288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6289     _cf = 0;
   6290     _flag_k = FK_TEST;
   6291     MEM32(esp + 0x10) = esi; /* 0x470300A9: mov dword ptr [esp + 0x10], esi */
   6292     if (TEST_Z(_flag_a, _flag_b)) goto L_470300B3; /* 0x470300AD: je 0x470300b3 */
   6293 L_470300AF:
   6294     MEM32(esp + 0x10) = eax; /* 0x470300AF: mov dword ptr [esp + 0x10], eax */
   6295 L_470300B3:
   6296     RECOMP_ICALL(0x47039020u); /* 0x470300B3: call 0x47039020 */ /* not lifted */
   6297     RECOMP_FLAGS_IN();
   6298     esi = eax; /* 0x470300B8: mov esi, eax */
   6299     ecx = esi; /* 0x470300BA: mov ecx, esi */
   6300     RECOMP_ICALL(0x4703B210u); /* 0x470300BC: call 0x4703b210 */ /* not lifted */
   6301     RECOMP_FLAGS_IN();
   6302     PUSH32(esp, eax); /* 0x470300C1: push eax */
   6303     ecx = esi; /* 0x470300C2: mov ecx, esi */
   6304     RECOMP_ICALL(0x4703B240u); /* 0x470300C4: call 0x4703b240 */ /* not lifted */
   6305     RECOMP_FLAGS_IN();
   6306     PUSH32(esp, eax); /* 0x470300C9: push eax */
   6307     ecx = esi; /* 0x470300CA: mov ecx, esi */
   6308     RECOMP_ICALL(0x4703B080u); /* 0x470300CC: call 0x4703b080 */ /* not lifted */
   6309     RECOMP_FLAGS_IN();
   6310     ecx = MEM32(esp + 0x18); /* 0x470300D1: mov ecx, dword ptr [esp + 0x18] */
   6311     PUSH32(esp, eax); /* 0x470300D5: push eax */
   6312     PUSH32(esp, ecx); /* 0x470300D6: push ecx */
   6313     PUSH32(esp, 0); /* 0x470300D7: push 0 */
   6314     PUSH32(esp, 0xF7u); /* 0x470300D9: push 0xf7 */
   6315     PUSH32(esp, 0x471067F0u); /* 0x470300DE: push 0x471067f0 */
   6316     ecx = esi; /* 0x470300E3: mov ecx, esi */
   6317     RECOMP_ICALL(0x4703A340u); /* 0x470300E5: call 0x4703a340 */ /* not lifted */
   6318     RECOMP_FLAGS_IN();
   6319     edx = MEM32(edi + 0x4); /* 0x470300EA: mov edx, dword ptr [edi + 4] */
   6320     PUSH32(esp, edx); /* 0x470300ED: push edx */
   6321     PUSH32(esp, 0x4710683Cu); /* 0x470300EE: push 0x4710683c */
   6322     PUSH32(esp, 4); /* 0x470300F3: push 4 */
   6323     PUSH32(esp, esi); /* 0x470300F5: push esi */
   6324     RECOMP_ICALL(0x47039830u); /* 0x470300F6: call 0x47039830 */ /* not lifted */
   6325     RECOMP_FLAGS_IN();
   6326     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6328     esp = esp + 0x10u; /* 0x470300FB: add esp, 0x10 */
   6329     _flag_k = FK_ADD;
   6330     RECOMP_ICALL(ebx); /* 0x470300FE: call ebx */
   6331     RECOMP_FLAGS_IN();
   6332     esi = eax; /* 0x47030100: mov esi, eax */
   6333     RECOMP_ICALL(ebp); /* 0x47030102: call ebp */
   6334     RECOMP_FLAGS_IN();
   6335     eax = MEM32(eax); /* 0x47030104: mov eax, dword ptr [eax] */
   6336     /* test eax, eax */ /* 0x47030106: test eax, eax */
   6337     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6338     _cf = 0;
   6339     _flag_k = FK_TEST;
   6340     MEM32(esp + 0x10) = esi; /* 0x47030108: mov dword ptr [esp + 0x10], esi */
   6341     if (TEST_Z(_flag_a, _flag_b)) goto L_47030112; /* 0x4703010C: je 0x47030112 */
   6342 L_4703010E:
   6343     MEM32(esp + 0x10) = eax; /* 0x4703010E: mov dword ptr [esp + 0x10], eax */
   6344 L_47030112:
   6345     RECOMP_ICALL(0x47039020u); /* 0x47030112: call 0x47039020 */ /* not lifted */
   6346     RECOMP_FLAGS_IN();
   6347     esi = eax; /* 0x47030117: mov esi, eax */
   6348     ecx = esi; /* 0x47030119: mov ecx, esi */
   6349     RECOMP_ICALL(0x4703B210u); /* 0x4703011B: call 0x4703b210 */ /* not lifted */
   6350     RECOMP_FLAGS_IN();
   6351     PUSH32(esp, eax); /* 0x47030120: push eax */
   6352     ecx = esi; /* 0x47030121: mov ecx, esi */
   6353     RECOMP_ICALL(0x4703B240u); /* 0x47030123: call 0x4703b240 */ /* not lifted */
   6354     RECOMP_FLAGS_IN();
   6355     PUSH32(esp, eax); /* 0x47030128: push eax */
   6356     ecx = esi; /* 0x47030129: mov ecx, esi */
   6357     RECOMP_ICALL(0x4703B080u); /* 0x4703012B: call 0x4703b080 */ /* not lifted */
   6358     RECOMP_FLAGS_IN();
   6359     PUSH32(esp, eax); /* 0x47030130: push eax */
   6360     eax = MEM32(esp + 0x1C); /* 0x47030131: mov eax, dword ptr [esp + 0x1c] */
   6361     PUSH32(esp, eax); /* 0x47030135: push eax */
   6362     PUSH32(esp, 0); /* 0x47030136: push 0 */
   6363     PUSH32(esp, 0xFCu); /* 0x47030138: push 0xfc */
   6364     PUSH32(esp, 0x471067F0u); /* 0x4703013D: push 0x471067f0 */
   6365     ecx = esi; /* 0x47030142: mov ecx, esi */
   6366     RECOMP_ICALL(0x4703A340u); /* 0x47030144: call 0x4703a340 */ /* not lifted */
   6367     RECOMP_FLAGS_IN();
   6368     ecx = MEM32(edi + 0x8); /* 0x47030149: mov ecx, dword ptr [edi + 8] */
   6369     PUSH32(esp, ecx); /* 0x4703014C: push ecx */
   6370     PUSH32(esp, 0x4710682Cu); /* 0x4703014D: push 0x4710682c */
   6371     PUSH32(esp, 4); /* 0x47030152: push 4 */
   6372     PUSH32(esp, esi); /* 0x47030154: push esi */
   6373     RECOMP_ICALL(0x47039830u); /* 0x47030155: call 0x47039830 */ /* not lifted */
   6374     RECOMP_FLAGS_IN();
   6375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6377     esp = esp + 0x10u; /* 0x4703015A: add esp, 0x10 */
   6378     _flag_k = FK_ADD;
   6379     RECOMP_ICALL(ebx); /* 0x4703015D: call ebx */
   6380     RECOMP_FLAGS_IN();
   6381     esi = eax; /* 0x4703015F: mov esi, eax */
   6382     RECOMP_ICALL(ebp); /* 0x47030161: call ebp */
   6383     RECOMP_FLAGS_IN();
   6384     eax = MEM32(eax); /* 0x47030163: mov eax, dword ptr [eax] */
   6385     /* test eax, eax */ /* 0x47030165: test eax, eax */
   6386     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6387     _cf = 0;
   6388     _flag_k = FK_TEST;
   6389     edi = esi; /* 0x47030167: mov edi, esi */
   6390     if (TEST_Z(_flag_a, _flag_b)) goto L_4703016D; /* 0x47030169: je 0x4703016d */
   6391 L_4703016B:
   6392     edi = eax; /* 0x4703016B: mov edi, eax */
   6393 L_4703016D:
   6394     RECOMP_ICALL(0x47039020u); /* 0x4703016D: call 0x47039020 */ /* not lifted */
   6395     RECOMP_FLAGS_IN();
   6396     esi = eax; /* 0x47030172: mov esi, eax */
   6397     ecx = esi; /* 0x47030174: mov ecx, esi */
   6398     RECOMP_ICALL(0x4703B210u); /* 0x47030176: call 0x4703b210 */ /* not lifted */
   6399     RECOMP_FLAGS_IN();
   6400     PUSH32(esp, eax); /* 0x4703017B: push eax */
   6401     ecx = esi; /* 0x4703017C: mov ecx, esi */
   6402     RECOMP_ICALL(0x4703B240u); /* 0x4703017E: call 0x4703b240 */ /* not lifted */
   6403     RECOMP_FLAGS_IN();
   6404     PUSH32(esp, eax); /* 0x47030183: push eax */
   6405     ecx = esi; /* 0x47030184: mov ecx, esi */
   6406     RECOMP_ICALL(0x4703B080u); /* 0x47030186: call 0x4703b080 */ /* not lifted */
   6407     RECOMP_FLAGS_IN();
   6408     PUSH32(esp, eax); /* 0x4703018B: push eax */
   6409     PUSH32(esp, edi); /* 0x4703018C: push edi */
   6410     PUSH32(esp, 0); /* 0x4703018D: push 0 */
   6411     PUSH32(esp, 0xFDu); /* 0x4703018F: push 0xfd */
   6412     PUSH32(esp, 0x471067F0u); /* 0x47030194: push 0x471067f0 */
   6413     ecx = esi; /* 0x47030199: mov ecx, esi */
   6414     RECOMP_ICALL(0x4703A340u); /* 0x4703019B: call 0x4703a340 */ /* not lifted */
   6415     RECOMP_FLAGS_IN();
   6416     PUSH32(esp, 0x4710529Cu); /* 0x470301A0: push 0x4710529c */
   6417     PUSH32(esp, 4); /* 0x470301A5: push 4 */
   6418     PUSH32(esp, esi); /* 0x470301A7: push esi */
   6419     RECOMP_ICALL(0x47039830u); /* 0x470301A8: call 0x47039830 */ /* not lifted */
   6420     RECOMP_FLAGS_IN();
   6421     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6423     esp = esp + 0xCu; /* 0x470301AD: add esp, 0xc */
   6424     _flag_k = FK_ADD;
   6425     edi = POP32_VAL(esp); /* 0x470301B0: pop edi */
   6426     esi = POP32_VAL(esp); /* 0x470301B1: pop esi */
   6427     ebp = POP32_VAL(esp); /* 0x470301B2: pop ebp */
   6428     ebx = POP32_VAL(esp); /* 0x470301B3: pop ebx */
   6429     ecx = POP32_VAL(esp); /* 0x470301B4: pop ecx */
   6430     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470301B5: ret  */
   6431     RECOMP_REGS_OUT();
   6432 }
   6433 
   6434 void sub_470301C0(void) {
   6435     int _fpu_cmp = 0;
   6436     uint32_t _cf = 0;
   6437     int _df = 1;
   6438     uint32_t _flag_k = FK_NONE;
   6439     uint32_t _flag_a = 0, _flag_b = 0;
   6440     uint32_t _itail_tgt = 0;
   6441     RECOMP_REGS_LOCALS
   6442     RECOMP_ENTER(0x470301C0u);
   6443 
   6444 L_470301C0:
   6445     eax = MEM32(ecx); /* 0x470301C0: mov eax, dword ptr [ecx] */
   6446     edx = MEM32(ecx + 0x4); /* 0x470301C2: mov edx, dword ptr [ecx + 4] */
   6447     /* cmp edx, MEM32(eax + 0x8) */ /* 0x470301C5: cmp edx, dword ptr [eax + 8] */
   6448     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6450     _flag_k = FK_CMP;
   6451     if (CMP_AE(_flag_a, _flag_b)) goto L_470301D3; /* 0x470301C8: jae 0x470301d3 */
   6452 L_470301CA:
   6453     eax = MEM32(eax + edx * 4 + 0xC); /* 0x470301CA: mov eax, dword ptr [eax + edx*4 + 0xc] */
   6454     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6455     edx = edx + 1; /* 0x470301CE: inc edx */
   6456     _flag_k = FK_INC;
   6457     MEM32(ecx + 0x4) = edx; /* 0x470301CF: mov dword ptr [ecx + 4], edx */
   6458     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470301D2: ret  */
   6459 L_470301D3:
   6460     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6461     eax = eax | 0xFFFFFFFFu; /* 0x470301D3: or eax, 0xffffffff */
   6462     _cf = 0;
   6463     _flag_k = FK_TEST;
   6464     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470301D6: ret  */
   6465     RECOMP_REGS_OUT();
   6466 }
   6467 
   6468 void sub_470301E0(void) {
   6469     int _fpu_cmp = 0;
   6470     uint32_t _cf = 0;
   6471     int _df = 1;
   6472     uint32_t _flag_k = FK_NONE;
   6473     uint32_t _flag_a = 0, _flag_b = 0;
   6474     uint32_t _itail_tgt = 0;
   6475     RECOMP_REGS_LOCALS
   6476     RECOMP_ENTER(0x470301E0u);
   6477 
   6478 L_470301E0:
   6479     eax = ecx; /* 0x470301E0: mov eax, ecx */
   6480     ecx = MEM32(esp + 0x4); /* 0x470301E2: mov ecx, dword ptr [esp + 4] */
   6481     MEM32(eax) = ecx; /* 0x470301E6: mov dword ptr [eax], ecx */
   6482     MEM32(eax + 0x4) = 0; /* 0x470301E8: mov dword ptr [eax + 4], 0 */
   6483     MEM32(eax + 0x8) = 0xFFFFFFFFu; /* 0x470301EF: mov dword ptr [eax + 8], 0xffffffff */
   6484     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470301F6: ret 4 */
   6485     RECOMP_REGS_OUT();
   6486 }
   6487 
   6488 void sub_47030200(void) {
   6489     int _fpu_cmp = 0;
   6490     uint32_t _cf = 0;
   6491     int _df = 1;
   6492     uint32_t _flag_k = FK_NONE;
   6493     uint32_t _flag_a = 0, _flag_b = 0;
   6494     uint32_t _itail_tgt = 0;
   6495     RECOMP_REGS_LOCALS
   6496     RECOMP_ENTER(0x47030200u);
   6497 
   6498 L_47030200:
   6499     ecx = 0x4710E2F1u; /* 0x47030200: mov ecx, 0x4710e2f1 */
   6500     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47030205: call dword ptr [0x470ac1c8] */
   6501     RECOMP_FLAGS_IN();
   6502     PUSH32(esp, 0x47030220u); /* 0x4703020B: push 0x47030220 */
   6503     RECOMP_ICALL(0x470A32D9u); /* 0x47030210: call 0x470a32d9 */ /* not lifted */
   6504     RECOMP_FLAGS_IN();
   6505     ecx = POP32_VAL(esp); /* 0x47030215: pop ecx */
   6506     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030216: ret  */
   6507     RECOMP_REGS_OUT();
   6508 }
   6509 
   6510 void sub_47030220(void) {
   6511     int _fpu_cmp = 0;
   6512     uint32_t _cf = 0;
   6513     int _df = 1;
   6514     uint32_t _flag_k = FK_NONE;
   6515     uint32_t _flag_a = 0, _flag_b = 0;
   6516     uint32_t _itail_tgt = 0;
   6517     RECOMP_REGS_LOCALS
   6518     RECOMP_ENTER(0x47030220u);
   6519 
   6520 L_47030220:
   6521     ecx = 0x4710E2F1u; /* 0x47030220: mov ecx, 0x4710e2f1 */
   6522 L_47030225:
   6523     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   6524     { RECOMP_REGS_OUT(); return; } /* end of function */
   6525   _ljump:
   6526     switch (_itail_tgt) {
   6527       case 0x47030220u: goto L_47030220;
   6528       case 0x47030225u: goto L_47030225;
   6529       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6530     }
   6531     RECOMP_REGS_OUT();
   6532 }
   6533 
   6534 void sub_47030230(void) {
   6535     int _fpu_cmp = 0;
   6536     uint32_t _cf = 0;
   6537     int _df = 1;
   6538     uint32_t _flag_k = FK_NONE;
   6539     uint32_t _flag_a = 0, _flag_b = 0;
   6540     uint32_t _itail_tgt = 0;
   6541     RECOMP_REGS_LOCALS
   6542     RECOMP_ENTER(0x47030230u);
   6543 
   6544 L_47030230:
   6545     ecx = 0x4710E2F0u; /* 0x47030230: mov ecx, 0x4710e2f0 */
   6546     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47030235: call dword ptr [0x470ac1c4] */
   6547     RECOMP_FLAGS_IN();
   6548     PUSH32(esp, 0x47030250u); /* 0x4703023B: push 0x47030250 */
   6549     RECOMP_ICALL(0x470A32D9u); /* 0x47030240: call 0x470a32d9 */ /* not lifted */
   6550     RECOMP_FLAGS_IN();
   6551     ecx = POP32_VAL(esp); /* 0x47030245: pop ecx */
   6552     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030246: ret  */
   6553     RECOMP_REGS_OUT();
   6554 }
   6555 
   6556 void sub_47030250(void) {
   6557     int _fpu_cmp = 0;
   6558     uint32_t _cf = 0;
   6559     int _df = 1;
   6560     uint32_t _flag_k = FK_NONE;
   6561     uint32_t _flag_a = 0, _flag_b = 0;
   6562     uint32_t _itail_tgt = 0;
   6563     RECOMP_REGS_LOCALS
   6564     RECOMP_ENTER(0x47030250u);
   6565 
   6566 L_47030250:
   6567     ecx = 0x4710E2F0u; /* 0x47030250: mov ecx, 0x4710e2f0 */
   6568 L_47030255:
   6569     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   6570     { RECOMP_REGS_OUT(); return; } /* end of function */
   6571   _ljump:
   6572     switch (_itail_tgt) {
   6573       case 0x47030250u: goto L_47030250;
   6574       case 0x47030255u: goto L_47030255;
   6575       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6576     }
   6577     RECOMP_REGS_OUT();
   6578 }
   6579 
   6580 void sub_47030260(void) {
   6581     int _fpu_cmp = 0;
   6582     uint32_t _cf = 0;
   6583     int _df = 1;
   6584     uint32_t _flag_k = FK_NONE;
   6585     uint32_t _flag_a = 0, _flag_b = 0;
   6586     uint32_t _itail_tgt = 0;
   6587     RECOMP_REGS_LOCALS
   6588     RECOMP_ENTER(0x47030260u);
   6589 
   6590 L_47030260:
   6591     MEM32(0x4710E2F4) = 0x47105158u; /* 0x47030260: mov dword ptr [0x4710e2f4], 0x47105158 */
   6592     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703026A: ret  */
   6593     RECOMP_REGS_OUT();
   6594 }
   6595 
   6596 void sub_47030270(void) {
   6597     int _fpu_cmp = 0;
   6598     uint32_t _cf = 0;
   6599     int _df = 1;
   6600     uint32_t _flag_k = FK_NONE;
   6601     uint32_t _flag_a = 0, _flag_b = 0;
   6602     uint32_t _itail_tgt = 0;
   6603     RECOMP_REGS_LOCALS
   6604     RECOMP_ENTER(0x47030270u);
   6605 
   6606 L_47030270:
   6607     MEM32(0x4710E2E4) = 0x47104A3Cu; /* 0x47030270: mov dword ptr [0x4710e2e4], 0x47104a3c */
   6608     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703027A: ret  */
   6609     RECOMP_REGS_OUT();
   6610 }
   6611 
   6612 void sub_47030280(void) {
   6613     int _fpu_cmp = 0;
   6614     uint32_t _cf = 0;
   6615     int _df = 1;
   6616     uint32_t _flag_k = FK_NONE;
   6617     uint32_t _flag_a = 0, _flag_b = 0;
   6618     uint32_t _itail_tgt = 0;
   6619     RECOMP_REGS_LOCALS
   6620     RECOMP_ENTER(0x47030280u);
   6621 
   6622 L_47030280:
   6623     MEM32(0x4710E300) = 0x47104A00u; /* 0x47030280: mov dword ptr [0x4710e300], 0x47104a00 */
   6624     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703028A: ret  */
   6625     RECOMP_REGS_OUT();
   6626 }
   6627 
   6628 void sub_47030290(void) {
   6629     int _fpu_cmp = 0;
   6630     uint32_t _cf = 0;
   6631     int _df = 1;
   6632     uint32_t _flag_k = FK_NONE;
   6633     uint32_t _flag_a = 0, _flag_b = 0;
   6634     uint32_t _itail_tgt = 0;
   6635     RECOMP_REGS_LOCALS
   6636     RECOMP_ENTER(0x47030290u);
   6637 
   6638 L_47030290:
   6639     MEM32(0x4710E2F8) = 0x47104A70u; /* 0x47030290: mov dword ptr [0x4710e2f8], 0x47104a70 */
   6640     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703029A: ret  */
   6641     RECOMP_REGS_OUT();
   6642 }
   6643 
   6644 void sub_470302A0(void) {
   6645     int _fpu_cmp = 0;
   6646     uint32_t _cf = 0;
   6647     int _df = 1;
   6648     uint32_t _flag_k = FK_NONE;
   6649     uint32_t _flag_a = 0, _flag_b = 0;
   6650     uint32_t _itail_tgt = 0;
   6651     RECOMP_REGS_LOCALS
   6652     RECOMP_ENTER(0x470302A0u);
   6653 
   6654 L_470302A0:
   6655     MEM32(0x4710E30C) = 0x47104B6Cu; /* 0x470302A0: mov dword ptr [0x4710e30c], 0x47104b6c */
   6656     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470302AA: ret  */
   6657     RECOMP_REGS_OUT();
   6658 }
   6659 
   6660 void sub_470302B0(void) {
   6661     int _fpu_cmp = 0;
   6662     uint32_t _cf = 0;
   6663     int _df = 1;
   6664     uint32_t _flag_k = FK_NONE;
   6665     uint32_t _flag_a = 0, _flag_b = 0;
   6666     uint32_t _itail_tgt = 0;
   6667     RECOMP_REGS_LOCALS
   6668     RECOMP_ENTER(0x470302B0u);
   6669 
   6670 L_470302B0:
   6671     MEM32(0x4710E2EC) = 0x47104BA0u; /* 0x470302B0: mov dword ptr [0x4710e2ec], 0x47104ba0 */
   6672     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470302BA: ret  */
   6673     RECOMP_REGS_OUT();
   6674 }
   6675 
   6676 void sub_470302C0(void) {
   6677     int _fpu_cmp = 0;
   6678     uint32_t _cf = 0;
   6679     int _df = 1;
   6680     uint32_t _flag_k = FK_NONE;
   6681     uint32_t _flag_a = 0, _flag_b = 0;
   6682     uint32_t _itail_tgt = 0;
   6683     RECOMP_REGS_LOCALS
   6684     RECOMP_ENTER(0x470302C0u);
   6685 
   6686 L_470302C0:
   6687     MEM32(0x4710E308) = 0x47104BD4u; /* 0x470302C0: mov dword ptr [0x4710e308], 0x47104bd4 */
   6688     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470302CA: ret  */
   6689     RECOMP_REGS_OUT();
   6690 }
   6691 
   6692 void sub_470302D0(void) {
   6693     int _fpu_cmp = 0;
   6694     uint32_t _cf = 0;
   6695     int _df = 1;
   6696     uint32_t _flag_k = FK_NONE;
   6697     uint32_t _flag_a = 0, _flag_b = 0;
   6698     uint32_t _itail_tgt = 0;
   6699     RECOMP_REGS_LOCALS
   6700     RECOMP_ENTER(0x470302D0u);
   6701 
   6702 L_470302D0:
   6703     MEM32(0x4710E304) = 0x471050FCu; /* 0x470302D0: mov dword ptr [0x4710e304], 0x471050fc */
   6704     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470302DA: ret  */
   6705     RECOMP_REGS_OUT();
   6706 }
   6707 
   6708 void sub_470302E0(void) {
   6709     int _fpu_cmp = 0;
   6710     uint32_t _cf = 0;
   6711     int _df = 1;
   6712     uint32_t _flag_k = FK_NONE;
   6713     uint32_t _flag_a = 0, _flag_b = 0;
   6714     uint32_t _itail_tgt = 0;
   6715     RECOMP_REGS_LOCALS
   6716     RECOMP_ENTER(0x470302E0u);
   6717 
   6718 L_470302E0:
   6719     MEM32(0x4710E2E8) = 0x4710518Cu; /* 0x470302E0: mov dword ptr [0x4710e2e8], 0x4710518c */
   6720     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470302EA: ret  */
   6721     RECOMP_REGS_OUT();
   6722 }
   6723 
   6724 void sub_470302F0(void) {
   6725     int _fpu_cmp = 0;
   6726     uint32_t _cf = 0;
   6727     int _df = 1;
   6728     uint32_t _flag_k = FK_NONE;
   6729     uint32_t _flag_a = 0, _flag_b = 0;
   6730     uint32_t _itail_tgt = 0;
   6731     RECOMP_REGS_LOCALS
   6732     RECOMP_ENTER(0x470302F0u);
   6733 
   6734 L_470302F0:
   6735     MEM32(0x4710E2FC) = 0x47106850u; /* 0x470302F0: mov dword ptr [0x4710e2fc], 0x47106850 */
   6736     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470302FA: ret  */
   6737     RECOMP_REGS_OUT();
   6738 }
   6739 
   6740 void sub_47030300(void) {
   6741     int _fpu_cmp = 0;
   6742     uint32_t _cf = 0;
   6743     int _df = 1;
   6744     uint32_t _flag_k = FK_NONE;
   6745     uint32_t _flag_a = 0, _flag_b = 0;
   6746     uint32_t _itail_tgt = 0;
   6747     RECOMP_REGS_LOCALS
   6748     RECOMP_ENTER(0x47030300u);
   6749 
   6750 L_47030300:
   6751     ecx = 0x4710E319u; /* 0x47030300: mov ecx, 0x4710e319 */
   6752     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47030305: call dword ptr [0x470ac1c8] */
   6753     RECOMP_FLAGS_IN();
   6754     PUSH32(esp, 0x47030320u); /* 0x4703030B: push 0x47030320 */
   6755     RECOMP_ICALL(0x470A32D9u); /* 0x47030310: call 0x470a32d9 */ /* not lifted */
   6756     RECOMP_FLAGS_IN();
   6757     ecx = POP32_VAL(esp); /* 0x47030315: pop ecx */
   6758     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030316: ret  */
   6759     RECOMP_REGS_OUT();
   6760 }
   6761 
   6762 void sub_47030320(void) {
   6763     int _fpu_cmp = 0;
   6764     uint32_t _cf = 0;
   6765     int _df = 1;
   6766     uint32_t _flag_k = FK_NONE;
   6767     uint32_t _flag_a = 0, _flag_b = 0;
   6768     uint32_t _itail_tgt = 0;
   6769     RECOMP_REGS_LOCALS
   6770     RECOMP_ENTER(0x47030320u);
   6771 
   6772 L_47030320:
   6773     ecx = 0x4710E319u; /* 0x47030320: mov ecx, 0x4710e319 */
   6774 L_47030325:
   6775     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   6776     { RECOMP_REGS_OUT(); return; } /* end of function */
   6777   _ljump:
   6778     switch (_itail_tgt) {
   6779       case 0x47030320u: goto L_47030320;
   6780       case 0x47030325u: goto L_47030325;
   6781       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6782     }
   6783     RECOMP_REGS_OUT();
   6784 }
   6785 
   6786 void sub_47030330(void) {
   6787     int _fpu_cmp = 0;
   6788     uint32_t _cf = 0;
   6789     int _df = 1;
   6790     uint32_t _flag_k = FK_NONE;
   6791     uint32_t _flag_a = 0, _flag_b = 0;
   6792     uint32_t _itail_tgt = 0;
   6793     RECOMP_REGS_LOCALS
   6794     RECOMP_ENTER(0x47030330u);
   6795 
   6796 L_47030330:
   6797     ecx = 0x4710E318u; /* 0x47030330: mov ecx, 0x4710e318 */
   6798     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47030335: call dword ptr [0x470ac1c4] */
   6799     RECOMP_FLAGS_IN();
   6800     PUSH32(esp, 0x47030350u); /* 0x4703033B: push 0x47030350 */
   6801     RECOMP_ICALL(0x470A32D9u); /* 0x47030340: call 0x470a32d9 */ /* not lifted */
   6802     RECOMP_FLAGS_IN();
   6803     ecx = POP32_VAL(esp); /* 0x47030345: pop ecx */
   6804     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030346: ret  */
   6805     RECOMP_REGS_OUT();
   6806 }
   6807 
   6808 void sub_47030350(void) {
   6809     int _fpu_cmp = 0;
   6810     uint32_t _cf = 0;
   6811     int _df = 1;
   6812     uint32_t _flag_k = FK_NONE;
   6813     uint32_t _flag_a = 0, _flag_b = 0;
   6814     uint32_t _itail_tgt = 0;
   6815     RECOMP_REGS_LOCALS
   6816     RECOMP_ENTER(0x47030350u);
   6817 
   6818 L_47030350:
   6819     ecx = 0x4710E318u; /* 0x47030350: mov ecx, 0x4710e318 */
   6820 L_47030355:
   6821     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   6822     { RECOMP_REGS_OUT(); return; } /* end of function */
   6823   _ljump:
   6824     switch (_itail_tgt) {
   6825       case 0x47030350u: goto L_47030350;
   6826       case 0x47030355u: goto L_47030355;
   6827       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6828     }
   6829     RECOMP_REGS_OUT();
   6830 }
   6831 
   6832 void sub_47030360(void) {
   6833     int _fpu_cmp = 0;
   6834     uint32_t _cf = 0;
   6835     int _df = 1;
   6836     uint32_t _flag_k = FK_NONE;
   6837     uint32_t _flag_a = 0, _flag_b = 0;
   6838     uint32_t _itail_tgt = 0;
   6839     RECOMP_REGS_LOCALS
   6840     RECOMP_ENTER(0x47030360u);
   6841 
   6842 L_47030360:
   6843     MEM32(0x4710E310) = 0x47104A3Cu; /* 0x47030360: mov dword ptr [0x4710e310], 0x47104a3c */
   6844     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703036A: ret  */
   6845     RECOMP_REGS_OUT();
   6846 }
   6847 
   6848 void sub_47030370(void) {
   6849     int _fpu_cmp = 0;
   6850     uint32_t _cf = 0;
   6851     int _df = 1;
   6852     uint32_t _flag_k = FK_NONE;
   6853     uint32_t _flag_a = 0, _flag_b = 0;
   6854     uint32_t _itail_tgt = 0;
   6855     RECOMP_REGS_LOCALS
   6856     RECOMP_ENTER(0x47030370u);
   6857 
   6858 L_47030370:
   6859     MEM32(0x4710E324) = 0x47104A00u; /* 0x47030370: mov dword ptr [0x4710e324], 0x47104a00 */
   6860     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703037A: ret  */
   6861     RECOMP_REGS_OUT();
   6862 }
   6863 
   6864 void sub_47030380(void) {
   6865     int _fpu_cmp = 0;
   6866     uint32_t _cf = 0;
   6867     int _df = 1;
   6868     uint32_t _flag_k = FK_NONE;
   6869     uint32_t _flag_a = 0, _flag_b = 0;
   6870     uint32_t _itail_tgt = 0;
   6871     RECOMP_REGS_LOCALS
   6872     RECOMP_ENTER(0x47030380u);
   6873 
   6874 L_47030380:
   6875     MEM32(0x4710E31C) = 0x47104A70u; /* 0x47030380: mov dword ptr [0x4710e31c], 0x47104a70 */
   6876     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703038A: ret  */
   6877     RECOMP_REGS_OUT();
   6878 }
   6879 
   6880 void sub_47030390(void) {
   6881     int _fpu_cmp = 0;
   6882     uint32_t _cf = 0;
   6883     int _df = 1;
   6884     uint32_t _flag_k = FK_NONE;
   6885     uint32_t _flag_a = 0, _flag_b = 0;
   6886     uint32_t _itail_tgt = 0;
   6887     RECOMP_REGS_LOCALS
   6888     RECOMP_ENTER(0x47030390u);
   6889 
   6890 L_47030390:
   6891     MEM32(0x4710E32C) = 0x47104B6Cu; /* 0x47030390: mov dword ptr [0x4710e32c], 0x47104b6c */
   6892     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703039A: ret  */
   6893     RECOMP_REGS_OUT();
   6894 }
   6895 
   6896 void sub_470303A0(void) {
   6897     int _fpu_cmp = 0;
   6898     uint32_t _cf = 0;
   6899     int _df = 1;
   6900     uint32_t _flag_k = FK_NONE;
   6901     uint32_t _flag_a = 0, _flag_b = 0;
   6902     uint32_t _itail_tgt = 0;
   6903     RECOMP_REGS_LOCALS
   6904     RECOMP_ENTER(0x470303A0u);
   6905 
   6906 L_470303A0:
   6907     MEM32(0x4710E314) = 0x47104BA0u; /* 0x470303A0: mov dword ptr [0x4710e314], 0x47104ba0 */
   6908     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470303AA: ret  */
   6909     RECOMP_REGS_OUT();
   6910 }
   6911 
   6912 void sub_470303B0(void) {
   6913     int _fpu_cmp = 0;
   6914     uint32_t _cf = 0;
   6915     int _df = 1;
   6916     uint32_t _flag_k = FK_NONE;
   6917     uint32_t _flag_a = 0, _flag_b = 0;
   6918     uint32_t _itail_tgt = 0;
   6919     RECOMP_REGS_LOCALS
   6920     RECOMP_ENTER(0x470303B0u);
   6921 
   6922 L_470303B0:
   6923     MEM32(0x4710E328) = 0x47104BD4u; /* 0x470303B0: mov dword ptr [0x4710e328], 0x47104bd4 */
   6924     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470303BA: ret  */
   6925     RECOMP_REGS_OUT();
   6926 }
   6927 
   6928 void sub_470303C0(void) {
   6929     int _fpu_cmp = 0;
   6930     uint32_t _cf = 0;
   6931     int _df = 1;
   6932     uint32_t _flag_k = FK_NONE;
   6933     uint32_t _flag_a = 0, _flag_b = 0;
   6934     uint32_t _itail_tgt = 0;
   6935     RECOMP_REGS_LOCALS
   6936     RECOMP_ENTER(0x470303C0u);
   6937 
   6938 L_470303C0:
   6939     PUSH32(esp, ebx); /* 0x470303C0: push ebx */
   6940     PUSH32(esp, ebp); /* 0x470303C1: push ebp */
   6941     ebp = MEM32(esp + 0xC); /* 0x470303C2: mov ebp, dword ptr [esp + 0xc] */
   6942     eax = MEM32(ebp); /* 0x470303C6: mov eax, dword ptr [ebp] */
   6943     PUSH32(esp, esi); /* 0x470303C9: push esi */
   6944     esi = ecx; /* 0x470303CA: mov esi, ecx */
   6945     MEM32(esi) = eax; /* 0x470303CC: mov dword ptr [esi], eax */
   6946     ecx = MEM32(ebp + 0x4); /* 0x470303CE: mov ecx, dword ptr [ebp + 4] */
   6947     MEM32(esi + 0x4) = ecx; /* 0x470303D1: mov dword ptr [esi + 4], ecx */
   6948     edx = MEM32(ebp + 0x8); /* 0x470303D4: mov edx, dword ptr [ebp + 8] */
   6949     MEM32(esi + 0x8) = edx; /* 0x470303D7: mov dword ptr [esi + 8], edx */
   6950     eax = MEM32(ebp + 0xC); /* 0x470303DA: mov eax, dword ptr [ebp + 0xc] */
   6951     MEM32(esi + 0xC) = eax; /* 0x470303DD: mov dword ptr [esi + 0xc], eax */
   6952     PUSH32(esp, edi); /* 0x470303E0: push edi */
   6953     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6954     edi = 0; /* 0x470303E1: xor edi, edi */
   6955     _cf = 0;
   6956     _flag_k = FK_TEST;
   6957     MEM32(esi + 0x10) = edi; /* 0x470303E3: mov dword ptr [esi + 0x10], edi */
   6958     MEM32(esi + 0x14) = edi; /* 0x470303E6: mov dword ptr [esi + 0x14], edi */
   6959     eax = MEM32(ebp + 0x18); /* 0x470303E9: mov eax, dword ptr [ebp + 0x18] */
   6960     /* cmp eax, edi */ /* 0x470303EC: cmp eax, edi */
   6961     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6963     _flag_k = FK_CMP;
   6964     MEM32(esi + 0x18) = eax; /* 0x470303EE: mov dword ptr [esi + 0x18], eax */
   6965     if (CMP_NE(_flag_a, _flag_b)) goto L_470303FB; /* 0x470303F1: jne 0x470303fb */
   6966 L_470303F3:
   6967     RECOMP_ICALL(0x4703DAC0u); /* 0x470303F3: call 0x4703dac0 */ /* not lifted */
   6968     RECOMP_FLAGS_IN();
   6969     MEM32(esi + 0x18) = eax; /* 0x470303F8: mov dword ptr [esi + 0x18], eax */
   6970 L_470303FB:
   6971     ecx = MEM32(esi + 0x18); /* 0x470303FB: mov ecx, dword ptr [esi + 0x18] */
   6972     edx = MEM32(ecx); /* 0x470303FE: mov edx, dword ptr [ecx] */
   6973     PUSH32(esp, 8); /* 0x47030400: push 8 */
   6974     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47030402: call dword ptr [edx + 4] */
   6975     RECOMP_FLAGS_IN();
   6976     /* cmp eax, edi */ /* 0x47030405: cmp eax, edi */
   6977     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6979     _flag_k = FK_CMP;
   6980     MEM32(esi + 0x10) = eax; /* 0x47030407: mov dword ptr [esi + 0x10], eax */
   6981     if (CMP_EQ(_flag_a, _flag_b)) goto L_4703044B; /* 0x4703040A: je 0x4703044b */
   6982 L_4703040C:
   6983     MEM32(eax) = edi; /* 0x4703040C: mov dword ptr [eax], edi */
   6984     eax = MEM32(esi + 0x10); /* 0x4703040E: mov eax, dword ptr [esi + 0x10] */
   6985     MEM32(eax) = eax; /* 0x47030411: mov dword ptr [eax], eax */
   6986     eax = MEM32(ebp + 0x10); /* 0x47030413: mov eax, dword ptr [ebp + 0x10] */
   6987     ebx = MEM32(eax); /* 0x47030416: mov ebx, dword ptr [eax] */
   6988     /* cmp ebx, eax */ /* 0x47030418: cmp ebx, eax */
   6989     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   6990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6991     _flag_k = FK_CMP;
   6992     if (CMP_EQ(_flag_a, _flag_b)) goto L_470304A0; /* 0x4703041A: je 0x470304a0 */
   6993 L_47030420:
   6994     ecx = MEM32(ebx + 0x4); /* 0x47030420: mov ecx, dword ptr [ebx + 4] */
   6995     eax = MEM32(esi + 0x10); /* 0x47030423: mov eax, dword ptr [esi + 0x10] */
   6996     MEM32(eax + 0x4) = ecx; /* 0x47030426: mov dword ptr [eax + 4], ecx */
   6997     ecx = MEM32(esi + 0x18); /* 0x47030429: mov ecx, dword ptr [esi + 0x18] */
   6998     edx = MEM32(ecx); /* 0x4703042C: mov edx, dword ptr [ecx] */
   6999     PUSH32(esp, 8); /* 0x4703042E: push 8 */
   7000     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47030430: call dword ptr [edx + 4] */
   7001     RECOMP_FLAGS_IN();
   7002     /* test eax, eax */ /* 0x47030433: test eax, eax */
   7003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7004     _cf = 0;
   7005     _flag_k = FK_TEST;
   7006     if (TEST_Z(_flag_a, _flag_b)) goto L_47030460; /* 0x47030435: je 0x47030460 */
   7007 L_47030437:
   7008     ecx = MEM32(esi + 0x10); /* 0x47030437: mov ecx, dword ptr [esi + 0x10] */
   7009     edx = MEM32(ecx); /* 0x4703043A: mov edx, dword ptr [ecx] */
   7010     MEM32(eax) = edx; /* 0x4703043C: mov dword ptr [eax], edx */
   7011     ecx = MEM32(esi + 0x10); /* 0x4703043E: mov ecx, dword ptr [esi + 0x10] */
   7012     MEM32(ecx) = eax; /* 0x47030441: mov dword ptr [ecx], eax */
   7013     MEM32(esi + 0x10) = eax; /* 0x47030443: mov dword ptr [esi + 0x10], eax */
   7014     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(1);
   7015     MEM32(esi + 0x14) = MEM32(esi + 0x14) + 1; /* 0x47030446: inc dword ptr [esi + 0x14] */
   7016     _flag_k = FK_INC;
   7017     goto L_47030499; /* 0x47030449: jmp 0x47030499 */
   7018 L_4703044B:
   7019     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703044B: call dword ptr [0x470ac3c8] */
   7020     RECOMP_FLAGS_IN();
   7021     edi = POP32_VAL(esp); /* 0x47030451: pop edi */
   7022     MEM32(eax) = 0xCu; /* 0x47030452: mov dword ptr [eax], 0xc */
   7023     eax = esi; /* 0x47030458: mov eax, esi */
   7024     esi = POP32_VAL(esp); /* 0x4703045A: pop esi */
   7025     ebp = POP32_VAL(esp); /* 0x4703045B: pop ebp */
   7026     ebx = POP32_VAL(esp); /* 0x4703045C: pop ebx */
   7027     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703045D: ret 4 */
   7028 L_47030460:
   7029     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47030460: call dword ptr [0x470ac3c8] */
   7030     RECOMP_FLAGS_IN();
   7031     MEM32(eax) = 0xCu; /* 0x47030466: mov dword ptr [eax], 0xc */
   7032     eax = MEM32(esi + 0x10); /* 0x4703046C: mov eax, dword ptr [esi + 0x10] */
   7033     edi = MEM32(eax); /* 0x4703046F: mov edi, dword ptr [eax] */
   7034     /* cmp edi, eax */ /* 0x47030471: cmp edi, eax */
   7035     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7037     _flag_k = FK_CMP;
   7038     if (CMP_EQ(_flag_a, _flag_b)) goto L_47030494; /* 0x47030473: je 0x47030494 */
   7039 L_47030475:
   7040     eax = edi; /* 0x47030475: mov eax, edi */
   7041     /* test eax, eax */ /* 0x47030477: test eax, eax */
   7042     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7043     _cf = 0;
   7044     _flag_k = FK_TEST;
   7045     edi = MEM32(edi); /* 0x47030479: mov edi, dword ptr [edi] */
   7046     if (TEST_Z(_flag_a, _flag_b)) goto L_47030486; /* 0x4703047B: je 0x47030486 */
   7047 L_4703047D:
   7048     ecx = MEM32(esi + 0x18); /* 0x4703047D: mov ecx, dword ptr [esi + 0x18] */
   7049     edx = MEM32(ecx); /* 0x47030480: mov edx, dword ptr [ecx] */
   7050     PUSH32(esp, eax); /* 0x47030482: push eax */
   7051     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47030483: call dword ptr [edx + 0xc] */
   7052     RECOMP_FLAGS_IN();
   7053 L_47030486:
   7054     ecx = MEM32(esi + 0x14); /* 0x47030486: mov ecx, dword ptr [esi + 0x14] */
   7055     eax = MEM32(esi + 0x10); /* 0x47030489: mov eax, dword ptr [esi + 0x10] */
   7056     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7057     ecx = ecx - 1; /* 0x4703048C: dec ecx */
   7058     _flag_k = FK_DEC;
   7059     /* cmp edi, eax */ /* 0x4703048D: cmp edi, eax */
   7060     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7061     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7062     _flag_k = FK_CMP;
   7063     MEM32(esi + 0x14) = ecx; /* 0x4703048F: mov dword ptr [esi + 0x14], ecx */
   7064     RECOMP_BACKEDGE();
   7065     if (CMP_NE(_flag_a, _flag_b)) goto L_47030475; /* 0x47030492: jne 0x47030475 */
   7066 L_47030494:
   7067     eax = MEM32(esi + 0x10); /* 0x47030494: mov eax, dword ptr [esi + 0x10] */
   7068     MEM32(eax) = eax; /* 0x47030497: mov dword ptr [eax], eax */
   7069 L_47030499:
   7070     ebx = MEM32(ebx); /* 0x47030499: mov ebx, dword ptr [ebx] */
   7071     /* cmp ebx, MEM32(ebp + 0x10) */ /* 0x4703049B: cmp ebx, dword ptr [ebp + 0x10] */
   7072     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0x10));
   7073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7074     _flag_k = FK_CMP;
   7075     RECOMP_BACKEDGE();
   7076     if (CMP_NE(_flag_a, _flag_b)) goto L_47030420; /* 0x4703049E: jne 0x47030420 */
   7077 L_470304A0:
   7078     edi = POP32_VAL(esp); /* 0x470304A0: pop edi */
   7079     eax = esi; /* 0x470304A1: mov eax, esi */
   7080     esi = POP32_VAL(esp); /* 0x470304A3: pop esi */
   7081     ebp = POP32_VAL(esp); /* 0x470304A4: pop ebp */
   7082     ebx = POP32_VAL(esp); /* 0x470304A5: pop ebx */
   7083     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470304A6: ret 4 */
   7084     RECOMP_REGS_OUT();
   7085 }
   7086 
   7087 void sub_470304B0(void) {
   7088     int _fpu_cmp = 0;
   7089     uint32_t _cf = 0;
   7090     int _df = 1;
   7091     uint32_t _flag_k = FK_NONE;
   7092     uint32_t _flag_a = 0, _flag_b = 0;
   7093     uint32_t _itail_tgt = 0;
   7094     RECOMP_REGS_LOCALS
   7095     RECOMP_ENTER(0x470304B0u);
   7096 
   7097 L_470304B0:
   7098     eax = MEM32(esp + 0x4); /* 0x470304B0: mov eax, dword ptr [esp + 4] */
   7099     PUSH32(esp, ebx); /* 0x470304B4: push ebx */
   7100     PUSH32(esp, ebp); /* 0x470304B5: push ebp */
   7101     ebp = ecx; /* 0x470304B6: mov ebp, ecx */
   7102     ecx = MEM32(eax); /* 0x470304B8: mov ecx, dword ptr [eax] */
   7103     MEM32(ebp) = ecx; /* 0x470304BA: mov dword ptr [ebp], ecx */
   7104     edx = MEM32(eax + 0x4); /* 0x470304BD: mov edx, dword ptr [eax + 4] */
   7105     MEM32(ebp + 0x4) = edx; /* 0x470304C0: mov dword ptr [ebp + 4], edx */
   7106     ecx = MEM32(eax + 0x8); /* 0x470304C3: mov ecx, dword ptr [eax + 8] */
   7107     PUSH32(esp, esi); /* 0x470304C6: push esi */
   7108     MEM32(ebp + 0x8) = ecx; /* 0x470304C7: mov dword ptr [ebp + 8], ecx */
   7109     edx = MEM32(eax + 0xC); /* 0x470304CA: mov edx, dword ptr [eax + 0xc] */
   7110     ecx = eax + 0x10; /* 0x470304CD: lea ecx, [eax + 0x10] */
   7111     esi = ebp + 0x10; /* 0x470304D0: lea esi, [ebp + 0x10] */
   7112     /* cmp esi, ecx */ /* 0x470304D3: cmp esi, ecx */
   7113     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   7114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7115     _flag_k = FK_CMP;
   7116     PUSH32(esp, edi); /* 0x470304D5: push edi */
   7117     MEM32(ebp + 0xC) = edx; /* 0x470304D6: mov dword ptr [ebp + 0xc], edx */
   7118     MEM32(esp + 0x14) = ecx; /* 0x470304D9: mov dword ptr [esp + 0x14], ecx */
   7119     if (CMP_EQ(_flag_a, _flag_b)) goto L_47030559; /* 0x470304DD: je 0x47030559 */
   7120 L_470304DF:
   7121     eax = MEM32(esi); /* 0x470304DF: mov eax, dword ptr [esi] */
   7122     edi = MEM32(eax); /* 0x470304E1: mov edi, dword ptr [eax] */
   7123     /* cmp edi, eax */ /* 0x470304E3: cmp edi, eax */
   7124     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7125     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7126     _flag_k = FK_CMP;
   7127     if (CMP_EQ(_flag_a, _flag_b)) goto L_47030509; /* 0x470304E5: je 0x47030509 */
   7128 L_470304E7:
   7129     eax = edi; /* 0x470304E7: mov eax, edi */
   7130     /* test eax, eax */ /* 0x470304E9: test eax, eax */
   7131     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7132     _cf = 0;
   7133     _flag_k = FK_TEST;
   7134     edi = MEM32(edi); /* 0x470304EB: mov edi, dword ptr [edi] */
   7135     if (TEST_Z(_flag_a, _flag_b)) goto L_470304F8; /* 0x470304ED: je 0x470304f8 */
   7136 L_470304EF:
   7137     ecx = MEM32(esi + 0x8); /* 0x470304EF: mov ecx, dword ptr [esi + 8] */
   7138     edx = MEM32(ecx); /* 0x470304F2: mov edx, dword ptr [ecx] */
   7139     PUSH32(esp, eax); /* 0x470304F4: push eax */
   7140     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470304F5: call dword ptr [edx + 0xc] */
   7141     RECOMP_FLAGS_IN();
   7142 L_470304F8:
   7143     ecx = MEM32(esi + 0x4); /* 0x470304F8: mov ecx, dword ptr [esi + 4] */
   7144     eax = MEM32(esi); /* 0x470304FB: mov eax, dword ptr [esi] */
   7145     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7146     ecx = ecx - 1; /* 0x470304FD: dec ecx */
   7147     _flag_k = FK_DEC;
   7148     /* cmp edi, eax */ /* 0x470304FE: cmp edi, eax */
   7149     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7151     _flag_k = FK_CMP;
   7152     MEM32(esi + 0x4) = ecx; /* 0x47030500: mov dword ptr [esi + 4], ecx */
   7153     RECOMP_BACKEDGE();
   7154     if (CMP_NE(_flag_a, _flag_b)) goto L_470304E7; /* 0x47030503: jne 0x470304e7 */
   7155 L_47030505:
   7156     ecx = MEM32(esp + 0x14); /* 0x47030505: mov ecx, dword ptr [esp + 0x14] */
   7157 L_47030509:
   7158     eax = MEM32(esi); /* 0x47030509: mov eax, dword ptr [esi] */
   7159     MEM32(eax) = eax; /* 0x4703050B: mov dword ptr [eax], eax */
   7160     eax = MEM32(ecx); /* 0x4703050D: mov eax, dword ptr [ecx] */
   7161     ebx = MEM32(eax); /* 0x4703050F: mov ebx, dword ptr [eax] */
   7162     /* cmp ebx, eax */ /* 0x47030511: cmp ebx, eax */
   7163     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   7164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7165     _flag_k = FK_CMP;
   7166     if (CMP_EQ(_flag_a, _flag_b)) goto L_47030559; /* 0x47030513: je 0x47030559 */
   7167 L_47030515:
   7168     eax = ebx + 0x4; /* 0x47030515: lea eax, [ebx + 4] */
   7169     PUSH32(esp, eax); /* 0x47030518: push eax */
   7170     ecx = esi; /* 0x47030519: mov ecx, esi */
   7171     RECOMP_ICALL(0x47067230u); /* 0x4703051B: call 0x47067230 */ /* not lifted */
   7172     RECOMP_FLAGS_IN();
   7173     /* cmp eax, 0xFFFFFFFFu */ /* 0x47030520: cmp eax, -1 */
   7174     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7176     _flag_k = FK_CMP;
   7177     if (CMP_NE(_flag_a, _flag_b)) goto L_4703054F; /* 0x47030523: jne 0x4703054f */
   7178 L_47030525:
   7179     eax = MEM32(esi); /* 0x47030525: mov eax, dword ptr [esi] */
   7180     edi = MEM32(eax); /* 0x47030527: mov edi, dword ptr [eax] */
   7181     /* cmp edi, eax */ /* 0x47030529: cmp edi, eax */
   7182     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7184     _flag_k = FK_CMP;
   7185     if (CMP_EQ(_flag_a, _flag_b)) goto L_4703054B; /* 0x4703052B: je 0x4703054b */
   7186 L_4703052D:
   7187     eax = edi; /* 0x4703052D: mov eax, edi */
   7188     /* test eax, eax */ /* 0x4703052F: test eax, eax */
   7189     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7190     _cf = 0;
   7191     _flag_k = FK_TEST;
   7192     edi = MEM32(edi); /* 0x47030531: mov edi, dword ptr [edi] */
   7193     if (TEST_Z(_flag_a, _flag_b)) goto L_4703053E; /* 0x47030533: je 0x4703053e */
   7194 L_47030535:
   7195     ecx = MEM32(esi + 0x8); /* 0x47030535: mov ecx, dword ptr [esi + 8] */
   7196     edx = MEM32(ecx); /* 0x47030538: mov edx, dword ptr [ecx] */
   7197     PUSH32(esp, eax); /* 0x4703053A: push eax */
   7198     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703053B: call dword ptr [edx + 0xc] */
   7199     RECOMP_FLAGS_IN();
   7200 L_4703053E:
   7201     ecx = MEM32(esi + 0x4); /* 0x4703053E: mov ecx, dword ptr [esi + 4] */
   7202     eax = MEM32(esi); /* 0x47030541: mov eax, dword ptr [esi] */
   7203     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7204     ecx = ecx - 1; /* 0x47030543: dec ecx */
   7205     _flag_k = FK_DEC;
   7206     /* cmp edi, eax */ /* 0x47030544: cmp edi, eax */
   7207     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7209     _flag_k = FK_CMP;
   7210     MEM32(esi + 0x4) = ecx; /* 0x47030546: mov dword ptr [esi + 4], ecx */
   7211     RECOMP_BACKEDGE();
   7212     if (CMP_NE(_flag_a, _flag_b)) goto L_4703052D; /* 0x47030549: jne 0x4703052d */
   7213 L_4703054B:
   7214     eax = MEM32(esi); /* 0x4703054B: mov eax, dword ptr [esi] */
   7215     MEM32(eax) = eax; /* 0x4703054D: mov dword ptr [eax], eax */
   7216 L_4703054F:
   7217     eax = MEM32(esp + 0x14); /* 0x4703054F: mov eax, dword ptr [esp + 0x14] */
   7218     ebx = MEM32(ebx); /* 0x47030553: mov ebx, dword ptr [ebx] */
   7219     /* cmp ebx, MEM32(eax) */ /* 0x47030555: cmp ebx, dword ptr [eax] */
   7220     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax));
   7221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7222     _flag_k = FK_CMP;
   7223     RECOMP_BACKEDGE();
   7224     if (CMP_NE(_flag_a, _flag_b)) goto L_47030515; /* 0x47030557: jne 0x47030515 */
   7225 L_47030559:
   7226     edi = POP32_VAL(esp); /* 0x47030559: pop edi */
   7227     esi = POP32_VAL(esp); /* 0x4703055A: pop esi */
   7228     eax = ebp; /* 0x4703055B: mov eax, ebp */
   7229     ebp = POP32_VAL(esp); /* 0x4703055D: pop ebp */
   7230     ebx = POP32_VAL(esp); /* 0x4703055E: pop ebx */
   7231     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703055F: ret 4 */
   7232     RECOMP_REGS_OUT();
   7233 }
   7234 
   7235 void sub_47030570(void) {
   7236     int _fpu_cmp = 0;
   7237     uint32_t _cf = 0;
   7238     int _df = 1;
   7239     uint32_t _flag_k = FK_NONE;
   7240     uint32_t _flag_a = 0, _flag_b = 0;
   7241     uint32_t _itail_tgt = 0;
   7242     RECOMP_REGS_LOCALS
   7243     RECOMP_ENTER(0x47030570u);
   7244 
   7245 L_47030570:
   7246     PUSH32(esp, esi); /* 0x47030570: push esi */
   7247     esi = ecx; /* 0x47030571: mov esi, ecx */
   7248     eax = MEM32(esi + 0x10); /* 0x47030573: mov eax, dword ptr [esi + 0x10] */
   7249     PUSH32(esp, edi); /* 0x47030576: push edi */
   7250     edi = MEM32(eax); /* 0x47030577: mov edi, dword ptr [eax] */
   7251     /* cmp edi, eax */ /* 0x47030579: cmp edi, eax */
   7252     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7254     _flag_k = FK_CMP;
   7255     if (CMP_EQ(_flag_a, _flag_b)) goto L_4703059C; /* 0x4703057B: je 0x4703059c */
   7256 L_4703057D:
   7257     eax = edi; /* 0x4703057D: mov eax, edi */
   7258     /* test eax, eax */ /* 0x4703057F: test eax, eax */
   7259     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7260     _cf = 0;
   7261     _flag_k = FK_TEST;
   7262     edi = MEM32(edi); /* 0x47030581: mov edi, dword ptr [edi] */
   7263     if (TEST_Z(_flag_a, _flag_b)) goto L_4703058E; /* 0x47030583: je 0x4703058e */
   7264 L_47030585:
   7265     ecx = MEM32(esi + 0x18); /* 0x47030585: mov ecx, dword ptr [esi + 0x18] */
   7266     edx = MEM32(ecx); /* 0x47030588: mov edx, dword ptr [ecx] */
   7267     PUSH32(esp, eax); /* 0x4703058A: push eax */
   7268     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4703058B: call dword ptr [edx + 0xc] */
   7269     RECOMP_FLAGS_IN();
   7270 L_4703058E:
   7271     ecx = MEM32(esi + 0x14); /* 0x4703058E: mov ecx, dword ptr [esi + 0x14] */
   7272     eax = MEM32(esi + 0x10); /* 0x47030591: mov eax, dword ptr [esi + 0x10] */
   7273     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7274     ecx = ecx - 1; /* 0x47030594: dec ecx */
   7275     _flag_k = FK_DEC;
   7276     /* cmp edi, eax */ /* 0x47030595: cmp edi, eax */
   7277     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7279     _flag_k = FK_CMP;
   7280     MEM32(esi + 0x14) = ecx; /* 0x47030597: mov dword ptr [esi + 0x14], ecx */
   7281     RECOMP_BACKEDGE();
   7282     if (CMP_NE(_flag_a, _flag_b)) goto L_4703057D; /* 0x4703059A: jne 0x4703057d */
   7283 L_4703059C:
   7284     eax = MEM32(esi + 0x10); /* 0x4703059C: mov eax, dword ptr [esi + 0x10] */
   7285     MEM32(eax) = eax; /* 0x4703059F: mov dword ptr [eax], eax */
   7286     eax = MEM32(esi + 0x10); /* 0x470305A1: mov eax, dword ptr [esi + 0x10] */
   7287     /* test eax, eax */ /* 0x470305A4: test eax, eax */
   7288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7289     _cf = 0;
   7290     _flag_k = FK_TEST;
   7291     if (TEST_Z(_flag_a, _flag_b)) goto L_470305B1; /* 0x470305A6: je 0x470305b1 */
   7292 L_470305A8:
   7293     ecx = MEM32(esi + 0x18); /* 0x470305A8: mov ecx, dword ptr [esi + 0x18] */
   7294     edx = MEM32(ecx); /* 0x470305AB: mov edx, dword ptr [ecx] */
   7295     PUSH32(esp, eax); /* 0x470305AD: push eax */
   7296     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470305AE: call dword ptr [edx + 0xc] */
   7297     RECOMP_FLAGS_IN();
   7298 L_470305B1:
   7299     edi = POP32_VAL(esp); /* 0x470305B1: pop edi */
   7300     MEM32(esi + 0x10) = 0; /* 0x470305B2: mov dword ptr [esi + 0x10], 0 */
   7301     esi = POP32_VAL(esp); /* 0x470305B9: pop esi */
   7302     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470305BA: ret  */
   7303     RECOMP_REGS_OUT();
   7304 }
   7305 
   7306 void sub_470305C0(void) {
   7307     int _fpu_cmp = 0;
   7308     uint32_t _cf = 0;
   7309     int _df = 1;
   7310     uint32_t _flag_k = FK_NONE;
   7311     uint32_t _flag_a = 0, _flag_b = 0;
   7312     uint32_t _itail_tgt = 0;
   7313     RECOMP_REGS_LOCALS
   7314     RECOMP_ENTER(0x470305C0u);
   7315 
   7316 L_470305C0:
   7317     PUSH32(esp, esi); /* 0x470305C0: push esi */
   7318     esi = MEM32(esp + 0x8); /* 0x470305C1: mov esi, dword ptr [esp + 8] */
   7319     PUSH32(esp, edi); /* 0x470305C5: push edi */
   7320     eax = ecx; /* 0x470305C6: mov eax, ecx */
   7321     ecx = 0x1Au; /* 0x470305C8: mov ecx, 0x1a */
   7322     edi = eax; /* 0x470305CD: mov edi, eax */
   7323     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470305CF: 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; }
   7324     edi = POP32_VAL(esp); /* 0x470305D1: pop edi */
   7325     esi = POP32_VAL(esp); /* 0x470305D2: pop esi */
   7326     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470305D3: ret 4 */
   7327     RECOMP_REGS_OUT();
   7328 }
   7329 
   7330 void sub_470305E0(void) {
   7331     int _fpu_cmp = 0;
   7332     uint32_t _cf = 0;
   7333     int _df = 1;
   7334     uint32_t _flag_k = FK_NONE;
   7335     uint32_t _flag_a = 0, _flag_b = 0;
   7336     uint32_t _itail_tgt = 0;
   7337     RECOMP_REGS_LOCALS
   7338     RECOMP_ENTER(0x470305E0u);
   7339 
   7340 L_470305E0:
   7341     eax = ecx; /* 0x470305E0: mov eax, ecx */
   7342     ecx = MEM32(esp + 0x4); /* 0x470305E2: mov ecx, dword ptr [esp + 4] */
   7343     MEM32(eax) = 0; /* 0x470305E6: mov dword ptr [eax], 0 */
   7344     MEM32(eax + 0x4) = 0; /* 0x470305EC: mov dword ptr [eax + 4], 0 */
   7345     MEM32(eax + 0x8) = ecx; /* 0x470305F3: mov dword ptr [eax + 8], ecx */
   7346     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470305F6: ret 4 */
   7347     RECOMP_REGS_OUT();
   7348 }
   7349 
   7350 void sub_47030600(void) {
   7351     int _fpu_cmp = 0;
   7352     uint32_t _cf = 0;
   7353     int _df = 1;
   7354     uint32_t _flag_k = FK_NONE;
   7355     uint32_t _flag_a = 0, _flag_b = 0;
   7356     uint32_t _itail_tgt = 0;
   7357     RECOMP_REGS_LOCALS
   7358     RECOMP_ENTER(0x47030600u);
   7359 
   7360 L_47030600:
   7361     PUSH32(esp, esi); /* 0x47030600: push esi */
   7362     esi = MEM32(ecx); /* 0x47030601: mov esi, dword ptr [ecx] */
   7363     PUSH32(esp, edi); /* 0x47030603: push edi */
   7364     edi = MEM32(ecx + 0x4); /* 0x47030604: mov edi, dword ptr [ecx + 4] */
   7365     RECOMP_ICALL(0x47081200u); /* 0x47030607: call 0x47081200 */ /* not lifted */
   7366     RECOMP_FLAGS_IN();
   7367     ecx = eax; /* 0x4703060C: mov ecx, eax */
   7368     eax = MEM32(esp + 0xC); /* 0x4703060E: mov eax, dword ptr [esp + 0xc] */
   7369     ecx = (uint32_t)((int32_t)ecx * (int32_t)esi); /* 0x47030612: imul ecx, esi */
   7370     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   7371     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7372     ecx = ecx + edi; /* 0x47030615: add ecx, edi */
   7373     _flag_k = FK_ADD;
   7374     edi = POP32_VAL(esp); /* 0x47030617: pop edi */
   7375     MEM32(eax) = ecx; /* 0x47030618: mov dword ptr [eax], ecx */
   7376     MEM32(eax + 0x4) = 0; /* 0x4703061A: mov dword ptr [eax + 4], 0 */
   7377     esi = POP32_VAL(esp); /* 0x47030621: pop esi */
   7378     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47030622: ret 4 */
   7379     RECOMP_REGS_OUT();
   7380 }
   7381 
   7382 void sub_47030630(void) {
   7383     int _fpu_cmp = 0;
   7384     uint32_t _cf = 0;
   7385     int _df = 1;
   7386     uint32_t _flag_k = FK_NONE;
   7387     uint32_t _flag_a = 0, _flag_b = 0;
   7388     uint32_t _itail_tgt = 0;
   7389     RECOMP_REGS_LOCALS
   7390     RECOMP_ENTER(0x47030630u);
   7391 
   7392 L_47030630:
   7393     PUSH32(esp, ebx); /* 0x47030630: push ebx */
   7394     PUSH32(esp, esi); /* 0x47030631: push esi */
   7395     PUSH32(esp, edi); /* 0x47030632: push edi */
   7396     edi = ecx; /* 0x47030633: mov edi, ecx */
   7397     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47030635: call dword ptr [0x470ac150] */
   7398     RECOMP_FLAGS_IN();
   7399     ebx = eax; /* 0x4703063B: mov ebx, eax */
   7400     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703063D: call dword ptr [0x470ac3c8] */
   7401     RECOMP_FLAGS_IN();
   7402     eax = MEM32(eax); /* 0x47030643: mov eax, dword ptr [eax] */
   7403     /* test eax, eax */ /* 0x47030645: test eax, eax */
   7404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7405     _cf = 0;
   7406     _flag_k = FK_TEST;
   7407     if (TEST_Z(_flag_a, _flag_b)) goto L_4703064B; /* 0x47030647: je 0x4703064b */
   7408 L_47030649:
   7409     ebx = eax; /* 0x47030649: mov ebx, eax */
   7410 L_4703064B:
   7411     RECOMP_ICALL(0x47039020u); /* 0x4703064B: call 0x47039020 */ /* not lifted */
   7412     RECOMP_FLAGS_IN();
   7413     esi = eax; /* 0x47030650: mov esi, eax */
   7414     ecx = esi; /* 0x47030652: mov ecx, esi */
   7415     RECOMP_ICALL(0x4703B210u); /* 0x47030654: call 0x4703b210 */ /* not lifted */
   7416     RECOMP_FLAGS_IN();
   7417     PUSH32(esp, eax); /* 0x47030659: push eax */
   7418     ecx = esi; /* 0x4703065A: mov ecx, esi */
   7419     RECOMP_ICALL(0x4703B240u); /* 0x4703065C: call 0x4703b240 */ /* not lifted */
   7420     RECOMP_FLAGS_IN();
   7421     PUSH32(esp, eax); /* 0x47030661: push eax */
   7422     ecx = esi; /* 0x47030662: mov ecx, esi */
   7423     RECOMP_ICALL(0x4703B080u); /* 0x47030664: call 0x4703b080 */ /* not lifted */
   7424     RECOMP_FLAGS_IN();
   7425     PUSH32(esp, eax); /* 0x47030669: push eax */
   7426     PUSH32(esp, ebx); /* 0x4703066A: push ebx */
   7427     PUSH32(esp, 0); /* 0x4703066B: push 0 */
   7428     PUSH32(esp, 0x3Cu); /* 0x4703066D: push 0x3c */
   7429     PUSH32(esp, 0x471068C4u); /* 0x4703066F: push 0x471068c4 */
   7430     ecx = esi; /* 0x47030674: mov ecx, esi */
   7431     RECOMP_ICALL(0x4703A340u); /* 0x47030676: call 0x4703a340 */ /* not lifted */
   7432     RECOMP_FLAGS_IN();
   7433     eax = MEM32(edi + 0x4); /* 0x4703067B: mov eax, dword ptr [edi + 4] */
   7434     ecx = MEM32(edi); /* 0x4703067E: mov ecx, dword ptr [edi] */
   7435     edx = MEM32(edi + 0x8); /* 0x47030680: mov edx, dword ptr [edi + 8] */
   7436     PUSH32(esp, eax); /* 0x47030683: push eax */
   7437     PUSH32(esp, ecx); /* 0x47030684: push ecx */
   7438     PUSH32(esp, edx); /* 0x47030685: push edx */
   7439     PUSH32(esp, 0x47106890u); /* 0x47030686: push 0x47106890 */
   7440     PUSH32(esp, 4); /* 0x4703068B: push 4 */
   7441     PUSH32(esp, esi); /* 0x4703068D: push esi */
   7442     RECOMP_ICALL(0x47039830u); /* 0x4703068E: call 0x47039830 */ /* not lifted */
   7443     RECOMP_FLAGS_IN();
   7444     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7445     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7446     esp = esp + 0x18u; /* 0x47030693: add esp, 0x18 */
   7447     _flag_k = FK_ADD;
   7448     edi = POP32_VAL(esp); /* 0x47030696: pop edi */
   7449     esi = POP32_VAL(esp); /* 0x47030697: pop esi */
   7450     ebx = POP32_VAL(esp); /* 0x47030698: pop ebx */
   7451     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030699: ret  */
   7452     RECOMP_REGS_OUT();
   7453 }
   7454 
   7455 void sub_470306A0(void) {
   7456     int _fpu_cmp = 0;
   7457     uint32_t _cf = 0;
   7458     int _df = 1;
   7459     uint32_t _flag_k = FK_NONE;
   7460     uint32_t _flag_a = 0, _flag_b = 0;
   7461     uint32_t _itail_tgt = 0;
   7462     RECOMP_REGS_LOCALS
   7463     RECOMP_ENTER(0x470306A0u);
   7464 
   7465 L_470306A0:
   7466     PUSH32(esp, 0xFFFFFFFFu); /* 0x470306A0: push -1 */
   7467     PUSH32(esp, 0x470A55FBu); /* 0x470306A2: push 0x470a55fb */
   7468     eax = MEM32(FS_BASE + (0)); /* 0x470306A7: mov eax, dword ptr fs:[0] */
   7469     PUSH32(esp, eax); /* 0x470306AD: push eax */
   7470     MEM32(FS_BASE + (0)) = esp; /* 0x470306AE: mov dword ptr fs:[0], esp */
   7471     PUSH32(esp, ecx); /* 0x470306B5: push ecx */
   7472     PUSH32(esp, esi); /* 0x470306B6: push esi */
   7473     esi = ecx; /* 0x470306B7: mov esi, ecx */
   7474     PUSH32(esp, edi); /* 0x470306B9: push edi */
   7475     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7476     edi = 0; /* 0x470306BA: xor edi, edi */
   7477     _cf = 0;
   7478     _flag_k = FK_TEST;
   7479     MEM32(esp + 0x8) = esi; /* 0x470306BC: mov dword ptr [esp + 8], esi */
   7480     MEM32(esi + 0x10) = edi; /* 0x470306C0: mov dword ptr [esi + 0x10], edi */
   7481     MEM32(esi + 0x14) = edi; /* 0x470306C3: mov dword ptr [esi + 0x14], edi */
   7482     MEM32(esi + 0x18) = edi; /* 0x470306C6: mov dword ptr [esi + 0x18], edi */
   7483     RECOMP_ICALL(0x4703DAC0u); /* 0x470306C9: call 0x4703dac0 */ /* not lifted */
   7484     RECOMP_FLAGS_IN();
   7485     MEM32(esi + 0x18) = eax; /* 0x470306CE: mov dword ptr [esi + 0x18], eax */
   7486     edx = MEM32(eax); /* 0x470306D1: mov edx, dword ptr [eax] */
   7487     PUSH32(esp, 8); /* 0x470306D3: push 8 */
   7488     ecx = eax; /* 0x470306D5: mov ecx, eax */
   7489     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470306D7: call dword ptr [edx + 4] */
   7490     RECOMP_FLAGS_IN();
   7491     /* cmp eax, edi */ /* 0x470306DA: cmp eax, edi */
   7492     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7494     _flag_k = FK_CMP;
   7495     MEM32(esi + 0x10) = eax; /* 0x470306DC: mov dword ptr [esi + 0x10], eax */
   7496     if (CMP_EQ(_flag_a, _flag_b)) goto L_47030706; /* 0x470306DF: je 0x47030706 */
   7497 L_470306E1:
   7498     MEM32(eax) = edi; /* 0x470306E1: mov dword ptr [eax], edi */
   7499     eax = MEM32(esi + 0x10); /* 0x470306E3: mov eax, dword ptr [esi + 0x10] */
   7500     MEM32(eax) = eax; /* 0x470306E6: mov dword ptr [eax], eax */
   7501 L_470306E8:
   7502     ecx = esi; /* 0x470306E8: mov ecx, esi */
   7503     MEM32(esp + 0x14) = edi; /* 0x470306EA: mov dword ptr [esp + 0x14], edi */
   7504     RECOMP_ICALL(0x47081610u); /* 0x470306EE: call 0x47081610 */ /* not lifted */
   7505     RECOMP_FLAGS_IN();
   7506     ecx = MEM32(esp + 0xC); /* 0x470306F3: mov ecx, dword ptr [esp + 0xc] */
   7507     edi = POP32_VAL(esp); /* 0x470306F7: pop edi */
   7508     eax = esi; /* 0x470306F8: mov eax, esi */
   7509     esi = POP32_VAL(esp); /* 0x470306FA: pop esi */
   7510     MEM32(FS_BASE + (0)) = ecx; /* 0x470306FB: mov dword ptr fs:[0], ecx */
   7511     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7512     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7513     esp = esp + 0x10u; /* 0x47030702: add esp, 0x10 */
   7514     _flag_k = FK_ADD;
   7515     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47030705: ret  */
   7516 L_47030706:
   7517     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47030706: call dword ptr [0x470ac3c8] */
   7518     RECOMP_FLAGS_IN();
   7519     MEM32(eax) = 0xCu; /* 0x4703070C: mov dword ptr [eax], 0xc */
   7520     RECOMP_BACKEDGE();
   7521     goto L_470306E8; /* 0x47030712: jmp 0x470306e8 */
   7522     { RECOMP_REGS_OUT(); return; } /* end of function */
   7523     RECOMP_REGS_OUT();
   7524 }