aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0061.c (214660B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47088050(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(0x47088050u);
     13 
     14 L_47088050:
     15     SET_LO8(ecx, MEM8(0x4710F95C)); /* 0x47088050: mov cl, byte ptr [0x4710f95c] */
     16     SET_LO8(eax, 2); /* 0x47088056: mov al, 2 */
     17     /* test LO8(eax), LO8(ecx) */ /* 0x47088058: test al, cl */
     18     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
     19     _cf = 0;
     20     _flag_k = FK_NARROW(FK_TEST, 24);
     21     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088064; /* 0x4708805A: jne 0x47088064 */
     22 L_4708805C:
     23     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
     24     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x4708805C: or cl, al */
     25     _cf = 0;
     26     _flag_k = FK_NARROW(FK_TEST, 24);
     27     MEM8(0x4710F95C) = (uint8_t)(LO8(ecx)); /* 0x4708805E: mov byte ptr [0x4710f95c], cl */
     28 L_47088064:
     29     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088064: ret  */
     30     RECOMP_REGS_OUT();
     31 }
     32 
     33 void sub_47088070(void) {
     34     int _fpu_cmp = 0;
     35     uint32_t _cf = 0;
     36     int _df = 1;
     37     uint32_t _flag_k = FK_NONE;
     38     uint32_t _flag_a = 0, _flag_b = 0;
     39     uint32_t _itail_tgt = 0;
     40     RECOMP_REGS_LOCALS
     41     RECOMP_ENTER(0x47088070u);
     42 
     43 L_47088070:
     44     eax = MEM32(0x4710E9A8); /* 0x47088070: mov eax, dword ptr [0x4710e9a8] */
     45     /* cmp eax, eax */ /* 0x47088075: cmp eax, eax */
     46     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     47     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     48     _flag_k = FK_CMP;
     49     ecx = MEM32(0x4710E9AC); /* 0x47088077: mov ecx, dword ptr [0x4710e9ac] */
     50     MEM32(0x4710F920) = 1; /* 0x4708807D: mov dword ptr [0x4710f920], 1 */
     51     MEM32(0x4710F924) = eax; /* 0x47088087: mov dword ptr [0x4710f924], eax */
     52     MEM32(0x4710F928) = ecx; /* 0x4708808C: mov dword ptr [0x4710f928], ecx */
     53     if (CMP_NE(_flag_a, _flag_b)) goto L_47088098; /* 0x47088092: jne 0x47088098 */
     54 L_47088094:
     55     /* cmp ecx, ecx */ /* 0x47088094: cmp ecx, ecx */
     56     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     57     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     58     _flag_k = FK_CMP;
     59     if (CMP_EQ(_flag_a, _flag_b)) goto L_470880A2; /* 0x47088096: je 0x470880a2 */
     60 L_47088098:
     61     MEM32(0x4710F920) = 3; /* 0x47088098: mov dword ptr [0x4710f920], 3 */
     62 L_470880A2:
     63     PUSH32(esp, 0x470880C0u); /* 0x470880A2: push 0x470880c0 */
     64     MEM32(0x4710F92C) = 0; /* 0x470880A7: mov dword ptr [0x4710f92c], 0 */
     65     RECOMP_ICALL(0x470A32D9u); /* 0x470880B1: call 0x470a32d9 */ /* not lifted */
     66     RECOMP_FLAGS_IN();
     67     ecx = POP32_VAL(esp); /* 0x470880B6: pop ecx */
     68     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470880B7: ret  */
     69     RECOMP_REGS_OUT();
     70 }
     71 
     72 void sub_470880C0(void) {
     73     int _fpu_cmp = 0;
     74     uint32_t _cf = 0;
     75     int _df = 1;
     76     uint32_t _flag_k = FK_NONE;
     77     uint32_t _flag_a = 0, _flag_b = 0;
     78     uint32_t _itail_tgt = 0;
     79     RECOMP_REGS_LOCALS
     80     RECOMP_ENTER(0x470880C0u);
     81 
     82 L_470880C0:
     83     SET_LO8(ecx, MEM8(0x4710F95C)); /* 0x470880C0: mov cl, byte ptr [0x4710f95c] */
     84     SET_LO8(eax, 4); /* 0x470880C6: mov al, 4 */
     85     /* test LO8(eax), LO8(ecx) */ /* 0x470880C8: test al, cl */
     86     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
     87     _cf = 0;
     88     _flag_k = FK_NARROW(FK_TEST, 24);
     89     if (TEST_NZ(_flag_a, _flag_b)) goto L_470880D4; /* 0x470880CA: jne 0x470880d4 */
     90 L_470880CC:
     91     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
     92     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x470880CC: or cl, al */
     93     _cf = 0;
     94     _flag_k = FK_NARROW(FK_TEST, 24);
     95     MEM8(0x4710F95C) = (uint8_t)(LO8(ecx)); /* 0x470880CE: mov byte ptr [0x4710f95c], cl */
     96 L_470880D4:
     97     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470880D4: ret  */
     98     RECOMP_REGS_OUT();
     99 }
    100 
    101 void sub_470880E0(void) {
    102     int _fpu_cmp = 0;
    103     uint32_t _cf = 0;
    104     int _df = 1;
    105     uint32_t _flag_k = FK_NONE;
    106     uint32_t _flag_a = 0, _flag_b = 0;
    107     uint32_t _itail_tgt = 0;
    108     RECOMP_REGS_LOCALS
    109     RECOMP_ENTER(0x470880E0u);
    110 
    111 L_470880E0:
    112     edx = MEM32(esp + 0x8); /* 0x470880E0: mov edx, dword ptr [esp + 8] */
    113     eax = ecx; /* 0x470880E4: mov eax, ecx */
    114     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    115     ecx = 0; /* 0x470880E6: xor ecx, ecx */
    116     _cf = 0;
    117     _flag_k = FK_TEST;
    118     MEM32(eax + 0x4) = ecx; /* 0x470880E8: mov dword ptr [eax + 4], ecx */
    119     MEM32(eax + 0x8) = ecx; /* 0x470880EB: mov dword ptr [eax + 8], ecx */
    120     ecx = MEM32(esp + 0x4); /* 0x470880EE: mov ecx, dword ptr [esp + 4] */
    121     MEM32(eax) = ecx; /* 0x470880F2: mov dword ptr [eax], ecx */
    122     PUSH32(esp, esi); /* 0x470880F4: push esi */
    123     esi = MEM32(edx); /* 0x470880F5: mov esi, dword ptr [edx] */
    124     MEM32(eax + 0x4) = esi; /* 0x470880F7: mov dword ptr [eax + 4], esi */
    125     edx = MEM32(edx + 0x4); /* 0x470880FA: mov edx, dword ptr [edx + 4] */
    126     MEM32(eax + 0x8) = edx; /* 0x470880FD: mov dword ptr [eax + 8], edx */
    127     edx = MEM32(eax + 0x4); /* 0x47088100: mov edx, dword ptr [eax + 4] */
    128     /* cmp edx, MEM32(0x4710E9A8) */ /* 0x47088103: cmp edx, dword ptr [0x4710e9a8] */
    129     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(0x4710E9A8));
    130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    131     _flag_k = FK_CMP;
    132     if (CMP_NE(_flag_a, _flag_b)) goto L_47088116; /* 0x47088109: jne 0x47088116 */
    133 L_4708810B:
    134     edx = MEM32(eax + 0x8); /* 0x4708810B: mov edx, dword ptr [eax + 8] */
    135     /* cmp edx, MEM32(0x4710E9AC) */ /* 0x4708810E: cmp edx, dword ptr [0x4710e9ac] */
    136     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(0x4710E9AC));
    137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    138     _flag_k = FK_CMP;
    139     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088126; /* 0x47088114: je 0x47088126 */
    140 L_47088116:
    141     _flag_a = (uint32_t)((ecx | 2)); _flag_b = (uint32_t)((ecx | 2));
    142     ecx = ecx | 2; /* 0x47088116: or ecx, 2 */
    143     _cf = 0;
    144     _flag_k = FK_TEST;
    145     MEM32(eax) = ecx; /* 0x47088119: mov dword ptr [eax], ecx */
    146     ecx = MEM32(esp + 0x10); /* 0x4708811B: mov ecx, dword ptr [esp + 0x10] */
    147     MEM32(eax + 0xC) = ecx; /* 0x4708811F: mov dword ptr [eax + 0xc], ecx */
    148     esi = POP32_VAL(esp); /* 0x47088122: pop esi */
    149     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47088123: ret 0xc */
    150 L_47088126:
    151     edx = MEM32(esp + 0x10); /* 0x47088126: mov edx, dword ptr [esp + 0x10] */
    152     MEM32(eax + 0xC) = edx; /* 0x4708812A: mov dword ptr [eax + 0xc], edx */
    153     esi = POP32_VAL(esp); /* 0x4708812D: pop esi */
    154     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4708812E: ret 0xc */
    155     RECOMP_REGS_OUT();
    156 }
    157 
    158 void sub_47088140(void) {
    159     int _fpu_cmp = 0;
    160     uint32_t _cf = 0;
    161     int _df = 1;
    162     uint32_t _flag_k = FK_NONE;
    163     uint32_t _flag_a = 0, _flag_b = 0;
    164     uint32_t _itail_tgt = 0;
    165     RECOMP_REGS_LOCALS
    166     RECOMP_ENTER(0x47088140u);
    167 
    168 L_47088140:
    169     eax = MEM32(esp + 0x4); /* 0x47088140: mov eax, dword ptr [esp + 4] */
    170     edx = MEM32(esp + 0x8); /* 0x47088144: mov edx, dword ptr [esp + 8] */
    171     MEM32(ecx) = eax; /* 0x47088148: mov dword ptr [ecx], eax */
    172     PUSH32(esp, esi); /* 0x4708814A: push esi */
    173     esi = MEM32(edx); /* 0x4708814B: mov esi, dword ptr [edx] */
    174     MEM32(ecx + 0x4) = esi; /* 0x4708814D: mov dword ptr [ecx + 4], esi */
    175     edx = MEM32(edx + 0x4); /* 0x47088150: mov edx, dword ptr [edx + 4] */
    176     MEM32(ecx + 0x8) = edx; /* 0x47088153: mov dword ptr [ecx + 8], edx */
    177     edx = MEM32(ecx + 0x4); /* 0x47088156: mov edx, dword ptr [ecx + 4] */
    178     /* cmp edx, MEM32(0x4710E9A8) */ /* 0x47088159: cmp edx, dword ptr [0x4710e9a8] */
    179     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(0x4710E9A8));
    180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    181     _flag_k = FK_CMP;
    182     if (CMP_NE(_flag_a, _flag_b)) goto L_4708816C; /* 0x4708815F: jne 0x4708816c */
    183 L_47088161:
    184     edx = MEM32(ecx + 0x8); /* 0x47088161: mov edx, dword ptr [ecx + 8] */
    185     /* cmp edx, MEM32(0x4710E9AC) */ /* 0x47088164: cmp edx, dword ptr [0x4710e9ac] */
    186     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(0x4710E9AC));
    187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    188     _flag_k = FK_CMP;
    189     if (CMP_EQ(_flag_a, _flag_b)) goto L_4708817C; /* 0x4708816A: je 0x4708817c */
    190 L_4708816C:
    191     _flag_a = (uint32_t)((eax | 2)); _flag_b = (uint32_t)((eax | 2));
    192     eax = eax | 2; /* 0x4708816C: or eax, 2 */
    193     _cf = 0;
    194     _flag_k = FK_TEST;
    195     MEM32(ecx) = eax; /* 0x4708816F: mov dword ptr [ecx], eax */
    196     eax = MEM32(esp + 0x10); /* 0x47088171: mov eax, dword ptr [esp + 0x10] */
    197     MEM32(ecx + 0xC) = eax; /* 0x47088175: mov dword ptr [ecx + 0xc], eax */
    198     esi = POP32_VAL(esp); /* 0x47088178: pop esi */
    199     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47088179: ret 0xc */
    200 L_4708817C:
    201     edx = MEM32(esp + 0x10); /* 0x4708817C: mov edx, dword ptr [esp + 0x10] */
    202     MEM32(ecx + 0xC) = edx; /* 0x47088180: mov dword ptr [ecx + 0xc], edx */
    203     esi = POP32_VAL(esp); /* 0x47088183: pop esi */
    204     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47088184: ret 0xc */
    205     RECOMP_REGS_OUT();
    206 }
    207 
    208 void sub_47088190(void) {
    209     int _fpu_cmp = 0;
    210     uint32_t _cf = 0;
    211     int _df = 1;
    212     uint32_t _flag_k = FK_NONE;
    213     uint32_t _flag_a = 0, _flag_b = 0;
    214     uint32_t _itail_tgt = 0;
    215     RECOMP_REGS_LOCALS
    216     RECOMP_ENTER(0x47088190u);
    217 
    218 L_47088190:
    219     eax = MEM32(ecx); /* 0x47088190: mov eax, dword ptr [ecx] */
    220     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esp + 0x4));
    221     eax = eax & MEM32(esp + 0x4); /* 0x47088192: and eax, dword ptr [esp + 4] */
    222     _cf = 0;
    223     _flag_k = FK_TEST;
    224     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    225     _cf = (eax) != 0;
    226     eax = (uint32_t)(-(int32_t)eax); /* 0x47088196: neg eax */
    227     _flag_k = FK_CMP;
    228     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47088198: sbb eax, eax */
    229       eax = _sc ? 0xFFFFFFFFu : 0;
    230       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    231       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    232     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    233     _cf = (eax) != 0;
    234     eax = (uint32_t)(-(int32_t)eax); /* 0x4708819A: neg eax */
    235     _flag_k = FK_CMP;
    236     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4708819C: ret 4 */
    237     RECOMP_REGS_OUT();
    238 }
    239 
    240 void sub_470881A0(void) {
    241     int _fpu_cmp = 0;
    242     uint32_t _cf = 0;
    243     int _df = 1;
    244     uint32_t _flag_k = FK_NONE;
    245     uint32_t _flag_a = 0, _flag_b = 0;
    246     uint32_t _itail_tgt = 0;
    247     RECOMP_REGS_LOCALS
    248     RECOMP_ENTER(0x470881A0u);
    249 
    250 L_470881A0:
    251     edx = MEM32(ecx); /* 0x470881A0: mov edx, dword ptr [ecx] */
    252     eax = MEM32(esp + 0x4); /* 0x470881A2: mov eax, dword ptr [esp + 4] */
    253     _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax));
    254     edx = edx | eax; /* 0x470881A6: or edx, eax */
    255     _cf = 0;
    256     _flag_k = FK_TEST;
    257     MEM32(ecx) = edx; /* 0x470881A8: mov dword ptr [ecx], edx */
    258     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470881AA: ret 4 */
    259     RECOMP_REGS_OUT();
    260 }
    261 
    262 void sub_470881B0(void) {
    263     int _fpu_cmp = 0;
    264     uint32_t _cf = 0;
    265     int _df = 1;
    266     uint32_t _flag_k = FK_NONE;
    267     uint32_t _flag_a = 0, _flag_b = 0;
    268     uint32_t _itail_tgt = 0;
    269     RECOMP_REGS_LOCALS
    270     RECOMP_ENTER(0x470881B0u);
    271 
    272 L_470881B0:
    273     eax = ecx + 0x4; /* 0x470881B0: lea eax, [ecx + 4] */
    274     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470881B3: ret  */
    275     RECOMP_REGS_OUT();
    276 }
    277 
    278 void sub_470881C0(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(0x470881C0u);
    287 
    288 L_470881C0:
    289     eax = MEM32(esp + 0x4); /* 0x470881C0: mov eax, dword ptr [esp + 4] */
    290     edx = MEM32(eax); /* 0x470881C4: mov edx, dword ptr [eax] */
    291     MEM32(ecx + 0x4) = edx; /* 0x470881C6: mov dword ptr [ecx + 4], edx */
    292     eax = MEM32(eax + 0x4); /* 0x470881C9: mov eax, dword ptr [eax + 4] */
    293     MEM32(ecx + 0x8) = eax; /* 0x470881CC: mov dword ptr [ecx + 8], eax */
    294     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470881CF: ret 4 */
    295     RECOMP_REGS_OUT();
    296 }
    297 
    298 void sub_470881E0(void) {
    299     int _fpu_cmp = 0;
    300     uint32_t _cf = 0;
    301     int _df = 1;
    302     uint32_t _flag_k = FK_NONE;
    303     uint32_t _flag_a = 0, _flag_b = 0;
    304     uint32_t _itail_tgt = 0;
    305     RECOMP_REGS_LOCALS
    306     RECOMP_ENTER(0x470881E0u);
    307 
    308 L_470881E0:
    309     /* test MEM8(ecx), 2 */ /* 0x470881E0: test byte ptr [ecx], 2 */
    310     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(2) << 24;
    311     _cf = 0;
    312     _flag_k = FK_NARROW(FK_TEST, 24);
    313     if (TEST_Z(_flag_a, _flag_b)) goto L_470881E9; /* 0x470881E3: je 0x470881e9 */
    314 L_470881E5:
    315     eax = ecx + 0x4; /* 0x470881E5: lea eax, [ecx + 4] */
    316     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470881E8: ret  */
    317 L_470881E9:
    318     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    319     eax = 0; /* 0x470881E9: xor eax, eax */
    320     _cf = 0;
    321     _flag_k = FK_TEST;
    322     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470881EB: ret  */
    323     RECOMP_REGS_OUT();
    324 }
    325 
    326 void sub_470881F0(void) {
    327     int _fpu_cmp = 0;
    328     uint32_t _cf = 0;
    329     int _df = 1;
    330     uint32_t _flag_k = FK_NONE;
    331     uint32_t _flag_a = 0, _flag_b = 0;
    332     uint32_t _itail_tgt = 0;
    333     RECOMP_REGS_LOCALS
    334     RECOMP_ENTER(0x470881F0u);
    335 
    336 L_470881F0:
    337     eax = MEM32(ecx + 0xC); /* 0x470881F0: mov eax, dword ptr [ecx + 0xc] */
    338     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470881F3: ret  */
    339     RECOMP_REGS_OUT();
    340 }
    341 
    342 void sub_47088200(void) {
    343     int _fpu_cmp = 0;
    344     uint32_t _cf = 0;
    345     int _df = 1;
    346     uint32_t _flag_k = FK_NONE;
    347     uint32_t _flag_a = 0, _flag_b = 0;
    348     uint32_t _itail_tgt = 0;
    349     RECOMP_REGS_LOCALS
    350     RECOMP_ENTER(0x47088200u);
    351 
    352 L_47088200:
    353     eax = MEM32(esp + 0x4); /* 0x47088200: mov eax, dword ptr [esp + 4] */
    354     MEM32(ecx + 0xC) = eax; /* 0x47088204: mov dword ptr [ecx + 0xc], eax */
    355     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088207: ret 4 */
    356     RECOMP_REGS_OUT();
    357 }
    358 
    359 void sub_47088210(void) {
    360     int _fpu_cmp = 0;
    361     uint32_t _cf = 0;
    362     int _df = 1;
    363     uint32_t _flag_k = FK_NONE;
    364     uint32_t _flag_a = 0, _flag_b = 0;
    365     uint32_t _itail_tgt = 0;
    366     RECOMP_REGS_LOCALS
    367     RECOMP_ENTER(0x47088210u);
    368 
    369 L_47088210:
    370     ecx = 0x4710F96Du; /* 0x47088210: mov ecx, 0x4710f96d */
    371     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47088215: call dword ptr [0x470ac1c8] */
    372     RECOMP_FLAGS_IN();
    373     PUSH32(esp, 0x47088230u); /* 0x4708821B: push 0x47088230 */
    374     RECOMP_ICALL(0x470A32D9u); /* 0x47088220: call 0x470a32d9 */ /* not lifted */
    375     RECOMP_FLAGS_IN();
    376     ecx = POP32_VAL(esp); /* 0x47088225: pop ecx */
    377     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088226: ret  */
    378     RECOMP_REGS_OUT();
    379 }
    380 
    381 void sub_47088230(void) {
    382     int _fpu_cmp = 0;
    383     uint32_t _cf = 0;
    384     int _df = 1;
    385     uint32_t _flag_k = FK_NONE;
    386     uint32_t _flag_a = 0, _flag_b = 0;
    387     uint32_t _itail_tgt = 0;
    388     RECOMP_REGS_LOCALS
    389     RECOMP_ENTER(0x47088230u);
    390 
    391 L_47088230:
    392     ecx = 0x4710F96Du; /* 0x47088230: mov ecx, 0x4710f96d */
    393 L_47088235:
    394     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
    395     { RECOMP_REGS_OUT(); return; } /* end of function */
    396   _ljump:
    397     switch (_itail_tgt) {
    398       case 0x47088230u: goto L_47088230;
    399       case 0x47088235u: goto L_47088235;
    400       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    401     }
    402     RECOMP_REGS_OUT();
    403 }
    404 
    405 void sub_47088240(void) {
    406     int _fpu_cmp = 0;
    407     uint32_t _cf = 0;
    408     int _df = 1;
    409     uint32_t _flag_k = FK_NONE;
    410     uint32_t _flag_a = 0, _flag_b = 0;
    411     uint32_t _itail_tgt = 0;
    412     RECOMP_REGS_LOCALS
    413     RECOMP_ENTER(0x47088240u);
    414 
    415 L_47088240:
    416     ecx = 0x4710F96Cu; /* 0x47088240: mov ecx, 0x4710f96c */
    417     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47088245: call dword ptr [0x470ac1c4] */
    418     RECOMP_FLAGS_IN();
    419     PUSH32(esp, 0x47088260u); /* 0x4708824B: push 0x47088260 */
    420     RECOMP_ICALL(0x470A32D9u); /* 0x47088250: call 0x470a32d9 */ /* not lifted */
    421     RECOMP_FLAGS_IN();
    422     ecx = POP32_VAL(esp); /* 0x47088255: pop ecx */
    423     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088256: ret  */
    424     RECOMP_REGS_OUT();
    425 }
    426 
    427 void sub_47088260(void) {
    428     int _fpu_cmp = 0;
    429     uint32_t _cf = 0;
    430     int _df = 1;
    431     uint32_t _flag_k = FK_NONE;
    432     uint32_t _flag_a = 0, _flag_b = 0;
    433     uint32_t _itail_tgt = 0;
    434     RECOMP_REGS_LOCALS
    435     RECOMP_ENTER(0x47088260u);
    436 
    437 L_47088260:
    438     ecx = 0x4710F96Cu; /* 0x47088260: mov ecx, 0x4710f96c */
    439 L_47088265:
    440     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
    441     { RECOMP_REGS_OUT(); return; } /* end of function */
    442   _ljump:
    443     switch (_itail_tgt) {
    444       case 0x47088260u: goto L_47088260;
    445       case 0x47088265u: goto L_47088265;
    446       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    447     }
    448     RECOMP_REGS_OUT();
    449 }
    450 
    451 void sub_47088270(void) {
    452     int _fpu_cmp = 0;
    453     uint32_t _cf = 0;
    454     int _df = 1;
    455     uint32_t _flag_k = FK_NONE;
    456     uint32_t _flag_a = 0, _flag_b = 0;
    457     uint32_t _itail_tgt = 0;
    458     RECOMP_REGS_LOCALS
    459     RECOMP_ENTER(0x47088270u);
    460 
    461 L_47088270:
    462     MEM32(0x4710F960) = 0x47104A3Cu; /* 0x47088270: mov dword ptr [0x4710f960], 0x47104a3c */
    463     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708827A: ret  */
    464     RECOMP_REGS_OUT();
    465 }
    466 
    467 void sub_47088280(void) {
    468     int _fpu_cmp = 0;
    469     uint32_t _cf = 0;
    470     int _df = 1;
    471     uint32_t _flag_k = FK_NONE;
    472     uint32_t _flag_a = 0, _flag_b = 0;
    473     uint32_t _itail_tgt = 0;
    474     RECOMP_REGS_LOCALS
    475     RECOMP_ENTER(0x47088280u);
    476 
    477 L_47088280:
    478     MEM32(0x4710F974) = 0x47104A00u; /* 0x47088280: mov dword ptr [0x4710f974], 0x47104a00 */
    479     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708828A: ret  */
    480     RECOMP_REGS_OUT();
    481 }
    482 
    483 void sub_47088290(void) {
    484     int _fpu_cmp = 0;
    485     uint32_t _cf = 0;
    486     int _df = 1;
    487     uint32_t _flag_k = FK_NONE;
    488     uint32_t _flag_a = 0, _flag_b = 0;
    489     uint32_t _itail_tgt = 0;
    490     RECOMP_REGS_LOCALS
    491     RECOMP_ENTER(0x47088290u);
    492 
    493 L_47088290:
    494     MEM32(0x4710F970) = 0x47104A70u; /* 0x47088290: mov dword ptr [0x4710f970], 0x47104a70 */
    495     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708829A: ret  */
    496     RECOMP_REGS_OUT();
    497 }
    498 
    499 void sub_470882A0(void) {
    500     int _fpu_cmp = 0;
    501     uint32_t _cf = 0;
    502     int _df = 1;
    503     uint32_t _flag_k = FK_NONE;
    504     uint32_t _flag_a = 0, _flag_b = 0;
    505     uint32_t _itail_tgt = 0;
    506     RECOMP_REGS_LOCALS
    507     RECOMP_ENTER(0x470882A0u);
    508 
    509 L_470882A0:
    510     MEM32(0x4710F97C) = 0x47104B6Cu; /* 0x470882A0: mov dword ptr [0x4710f97c], 0x47104b6c */
    511     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470882AA: ret  */
    512     RECOMP_REGS_OUT();
    513 }
    514 
    515 void sub_470882B0(void) {
    516     int _fpu_cmp = 0;
    517     uint32_t _cf = 0;
    518     int _df = 1;
    519     uint32_t _flag_k = FK_NONE;
    520     uint32_t _flag_a = 0, _flag_b = 0;
    521     uint32_t _itail_tgt = 0;
    522     RECOMP_REGS_LOCALS
    523     RECOMP_ENTER(0x470882B0u);
    524 
    525 L_470882B0:
    526     MEM32(0x4710F968) = 0x47104BA0u; /* 0x470882B0: mov dword ptr [0x4710f968], 0x47104ba0 */
    527     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470882BA: ret  */
    528     RECOMP_REGS_OUT();
    529 }
    530 
    531 void sub_470882C0(void) {
    532     int _fpu_cmp = 0;
    533     uint32_t _cf = 0;
    534     int _df = 1;
    535     uint32_t _flag_k = FK_NONE;
    536     uint32_t _flag_a = 0, _flag_b = 0;
    537     uint32_t _itail_tgt = 0;
    538     RECOMP_REGS_LOCALS
    539     RECOMP_ENTER(0x470882C0u);
    540 
    541 L_470882C0:
    542     MEM32(0x4710F978) = 0x47104BD4u; /* 0x470882C0: mov dword ptr [0x4710f978], 0x47104bd4 */
    543     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470882CA: ret  */
    544     RECOMP_REGS_OUT();
    545 }
    546 
    547 void sub_470882D0(void) {
    548     int _fpu_cmp = 0;
    549     uint32_t _cf = 0;
    550     int _df = 1;
    551     uint32_t _flag_k = FK_NONE;
    552     uint32_t _flag_a = 0, _flag_b = 0;
    553     uint32_t _itail_tgt = 0;
    554     RECOMP_REGS_LOCALS
    555     RECOMP_ENTER(0x470882D0u);
    556 
    557 L_470882D0:
    558     eax = ecx; /* 0x470882D0: mov eax, ecx */
    559     ecx = MEM32(esp + 0x4); /* 0x470882D2: mov ecx, dword ptr [esp + 4] */
    560     edx = MEM32(ecx); /* 0x470882D6: mov edx, dword ptr [ecx] */
    561     MEM32(eax) = edx; /* 0x470882D8: mov dword ptr [eax], edx */
    562     ecx = MEM32(ecx + 0x4); /* 0x470882DA: mov ecx, dword ptr [ecx + 4] */
    563     MEM32(eax + 0x4) = ecx; /* 0x470882DD: mov dword ptr [eax + 4], ecx */
    564     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470882E0: ret 4 */
    565     RECOMP_REGS_OUT();
    566 }
    567 
    568 void sub_470882F0(void) {
    569     int _fpu_cmp = 0;
    570     uint32_t _cf = 0;
    571     int _df = 1;
    572     uint32_t _flag_k = FK_NONE;
    573     uint32_t _flag_a = 0, _flag_b = 0;
    574     uint32_t _itail_tgt = 0;
    575     RECOMP_REGS_LOCALS
    576     RECOMP_ENTER(0x470882F0u);
    577 
    578 L_470882F0:
    579     PUSH32(esp, 0x471081BCu); /* 0x470882F0: push 0x471081bc */
    580     RECOMP_ICALL(0x47088310u); /* 0x470882F5: call 0x47088310 */ /* not lifted */
    581     RECOMP_FLAGS_IN();
    582     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470882FA: ret  */
    583     RECOMP_REGS_OUT();
    584 }
    585 
    586 void sub_47088300(void) {
    587     int _fpu_cmp = 0;
    588     uint32_t _cf = 0;
    589     int _df = 1;
    590     uint32_t _flag_k = FK_NONE;
    591     uint32_t _flag_a = 0, _flag_b = 0;
    592     uint32_t _itail_tgt = 0;
    593     RECOMP_REGS_LOCALS
    594     RECOMP_ENTER(0x47088300u);
    595 
    596 L_47088300:
    597     MEM32(0x4710F964) = 0x4710C7B0u; /* 0x47088300: mov dword ptr [0x4710f964], 0x4710c7b0 */
    598     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708830A: ret  */
    599     RECOMP_REGS_OUT();
    600 }
    601 
    602 void sub_47088310(void) {
    603     int _fpu_cmp = 0;
    604     uint32_t _cf = 0;
    605     int _df = 1;
    606     uint32_t _flag_k = FK_NONE;
    607     uint32_t _flag_a = 0, _flag_b = 0;
    608     uint32_t _itail_tgt = 0;
    609     RECOMP_REGS_LOCALS
    610     RECOMP_ENTER(0x47088310u);
    611 
    612 L_47088310:
    613     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088310: push -1 */
    614     PUSH32(esp, 0x470AA004u); /* 0x47088312: push 0x470aa004 */
    615     eax = MEM32(FS_BASE + (0)); /* 0x47088317: mov eax, dword ptr fs:[0] */
    616     PUSH32(esp, eax); /* 0x4708831D: push eax */
    617     MEM32(FS_BASE + (0)) = esp; /* 0x4708831E: mov dword ptr fs:[0], esp */
    618     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    620     esp = esp - 0x10u; /* 0x47088325: sub esp, 0x10 */
    621     _flag_k = FK_CMP;
    622     PUSH32(esp, ebx); /* 0x47088328: push ebx */
    623     PUSH32(esp, ebp); /* 0x47088329: push ebp */
    624     PUSH32(esp, esi); /* 0x4708832A: push esi */
    625     esi = ecx; /* 0x4708832B: mov esi, ecx */
    626     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    627     ebx = 0; /* 0x4708832D: xor ebx, ebx */
    628     _cf = 0;
    629     _flag_k = FK_TEST;
    630     PUSH32(esp, 0x258u); /* 0x4708832F: push 0x258 */
    631     MEM32(esp + 0x14) = esi; /* 0x47088334: mov dword ptr [esp + 0x14], esi */
    632     MEM32(esi + 0x4) = ebx; /* 0x47088338: mov dword ptr [esi + 4], ebx */
    633     RECOMP_ICALL(0x470A33F2u); /* 0x4708833B: call 0x470a33f2 */ /* not lifted */
    634     RECOMP_FLAGS_IN();
    635     ebp = eax; /* 0x47088340: mov ebp, eax */
    636     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    638     esp = esp + 4; /* 0x47088342: add esp, 4 */
    639     _flag_k = FK_ADD;
    640     MEM32(esp + 0x14) = ebp; /* 0x47088345: mov dword ptr [esp + 0x14], ebp */
    641     /* cmp ebp, ebx */ /* 0x47088349: cmp ebp, ebx */
    642     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx);
    643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    644     _flag_k = FK_CMP;
    645     MEM32(esp + 0x24) = ebx; /* 0x4708834B: mov dword ptr [esp + 0x24], ebx */
    646     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088507; /* 0x4708834F: je 0x47088507 */
    647 L_47088355:
    648     PUSH32(esp, edi); /* 0x47088355: push edi */
    649     ecx = ebp; /* 0x47088356: mov ecx, ebp */
    650     RECOMP_ICALL(0x4703DCB0u); /* 0x47088358: call 0x4703dcb0 */ /* not lifted */
    651     RECOMP_FLAGS_IN();
    652     esi = ebp + 0x4; /* 0x4708835D: lea esi, [ebp + 4] */
    653     PUSH32(esp, ebx); /* 0x47088360: push ebx */
    654     ebx = MEM32(esp + 0x34); /* 0x47088361: mov ebx, dword ptr [esp + 0x34] */
    655     edi = esi + 0x4; /* 0x47088365: lea edi, [esi + 4] */
    656     PUSH32(esp, ebx); /* 0x47088368: push ebx */
    657     ecx = edi; /* 0x47088369: mov ecx, edi */
    658     MEM8(esp + 0x30) = (uint8_t)(1); /* 0x4708836B: mov byte ptr [esp + 0x30], 1 */
    659     MEM32(esp + 0x24) = esi; /* 0x47088370: mov dword ptr [esp + 0x24], esi */
    660     RECOMP_ICALL(0x47042EA0u); /* 0x47088374: call 0x47042ea0 */ /* not lifted */
    661     RECOMP_FLAGS_IN();
    662     /* test ebx, ebx */ /* 0x47088379: test ebx, ebx */
    663     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    664     _cf = 0;
    665     _flag_k = FK_TEST;
    666     MEM8(esp + 0x28) = (uint8_t)(2); /* 0x4708837B: mov byte ptr [esp + 0x28], 2 */
    667     if (TEST_Z(_flag_a, _flag_b)) goto L_4708838D; /* 0x47088380: je 0x4708838d */
    668 L_47088382:
    669     PUSH32(esp, 0x5Cu); /* 0x47088382: push 0x5c */
    670     PUSH32(esp, ebx); /* 0x47088384: push ebx */
    671     RECOMP_ICALL(0x4700BCE0u); /* 0x47088385: call 0x4700bce0 */ /* not lifted */
    672     RECOMP_FLAGS_IN();
    673     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    675     esp = esp + 8; /* 0x4708838A: add esp, 8 */
    676     _flag_k = FK_ADD;
    677 L_4708838D:
    678     ecx = esp + 0x10; /* 0x4708838D: lea ecx, [esp + 0x10] */
    679     PUSH32(esp, ecx); /* 0x47088391: push ecx */
    680     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    681     eax = 0; /* 0x47088392: xor eax, eax */
    682     _cf = 0;
    683     _flag_k = FK_TEST;
    684     edx = esp + 0x34; /* 0x47088394: lea edx, [esp + 0x34] */
    685     PUSH32(esp, edx); /* 0x47088398: push edx */
    686     MEM32(esp + 0x38) = eax; /* 0x47088399: mov dword ptr [esp + 0x38], eax */
    687     MEM32(esp + 0x18) = eax; /* 0x4708839D: mov dword ptr [esp + 0x18], eax */
    688     eax = MEM32(edi); /* 0x470883A1: mov eax, dword ptr [edi] */
    689     PUSH32(esp, 0x11Cu); /* 0x470883A3: push 0x11c */
    690     ecx = edi; /* 0x470883A8: mov ecx, edi */
    691     MEM8(esp + 0x34) = (uint8_t)(4); /* 0x470883AA: mov byte ptr [esp + 0x34], 4 */
    692     RECOMP_ICALL(MEM32(eax + 0x40)); /* 0x470883AF: call dword ptr [eax + 0x40] */
    693     RECOMP_FLAGS_IN();
    694     /* test eax, eax */ /* 0x470883B2: test eax, eax */
    695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    696     _cf = 0;
    697     _flag_k = FK_TEST;
    698     MEM32(esi) = eax; /* 0x470883B4: mov dword ptr [esi], eax */
    699     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088491; /* 0x470883B6: jne 0x47088491 */
    700 L_470883BC:
    701     ebx = MEM32(0x470AC150); /* 0x470883BC: mov ebx, dword ptr [0x470ac150] */
    702     RECOMP_ICALL(ebx); /* 0x470883C2: call ebx */
    703     RECOMP_FLAGS_IN();
    704     edi = eax; /* 0x470883C4: mov edi, eax */
    705     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470883C6: call dword ptr [0x470ac3c8] */
    706     RECOMP_FLAGS_IN();
    707     eax = MEM32(eax); /* 0x470883CC: mov eax, dword ptr [eax] */
    708     /* test eax, eax */ /* 0x470883CE: test eax, eax */
    709     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    710     _cf = 0;
    711     _flag_k = FK_TEST;
    712     if (TEST_Z(_flag_a, _flag_b)) goto L_470883D4; /* 0x470883D0: je 0x470883d4 */
    713 L_470883D2:
    714     edi = eax; /* 0x470883D2: mov edi, eax */
    715 L_470883D4:
    716     RECOMP_ICALL(0x47039020u); /* 0x470883D4: call 0x47039020 */ /* not lifted */
    717     RECOMP_FLAGS_IN();
    718     esi = eax; /* 0x470883D9: mov esi, eax */
    719     ecx = esi; /* 0x470883DB: mov ecx, esi */
    720     RECOMP_ICALL(0x4703B210u); /* 0x470883DD: call 0x4703b210 */ /* not lifted */
    721     RECOMP_FLAGS_IN();
    722     PUSH32(esp, eax); /* 0x470883E2: push eax */
    723     ecx = esi; /* 0x470883E3: mov ecx, esi */
    724     RECOMP_ICALL(0x4703B240u); /* 0x470883E5: call 0x4703b240 */ /* not lifted */
    725     RECOMP_FLAGS_IN();
    726     PUSH32(esp, eax); /* 0x470883EA: push eax */
    727     ecx = esi; /* 0x470883EB: mov ecx, esi */
    728     RECOMP_ICALL(0x4703B080u); /* 0x470883ED: call 0x4703b080 */ /* not lifted */
    729     RECOMP_FLAGS_IN();
    730     PUSH32(esp, eax); /* 0x470883F2: push eax */
    731     PUSH32(esp, edi); /* 0x470883F3: push edi */
    732     PUSH32(esp, 0xFFFFFFFFu); /* 0x470883F4: push -1 */
    733     PUSH32(esp, 0x9Du); /* 0x470883F6: push 0x9d */
    734     PUSH32(esp, 0x47105B2Cu); /* 0x470883FB: push 0x47105b2c */
    735     ecx = esi; /* 0x47088400: mov ecx, esi */
    736     RECOMP_ICALL(0x4703A340u); /* 0x47088402: call 0x4703a340 */ /* not lifted */
    737     RECOMP_FLAGS_IN();
    738     PUSH32(esp, 0x47105B18u); /* 0x47088407: push 0x47105b18 */
    739     PUSH32(esp, 0x47105B0Cu); /* 0x4708840C: push 0x47105b0c */
    740     PUSH32(esp, 0x80u); /* 0x47088411: push 0x80 */
    741     PUSH32(esp, esi); /* 0x47088416: push esi */
    742     RECOMP_ICALL(0x47039830u); /* 0x47088417: call 0x47039830 */ /* not lifted */
    743     RECOMP_FLAGS_IN();
    744     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    745     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    746     esp = esp + 0x10u; /* 0x4708841C: add esp, 0x10 */
    747     _flag_k = FK_ADD;
    748     MEM8(esp + 0x28) = (uint8_t)(3); /* 0x4708841F: mov byte ptr [esp + 0x28], 3 */
    749     RECOMP_ICALL(ebx); /* 0x47088424: call ebx */
    750     RECOMP_FLAGS_IN();
    751     edi = eax; /* 0x47088426: mov edi, eax */
    752     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47088428: call dword ptr [0x470ac3c8] */
    753     RECOMP_FLAGS_IN();
    754     eax = MEM32(eax); /* 0x4708842E: mov eax, dword ptr [eax] */
    755     /* test eax, eax */ /* 0x47088430: test eax, eax */
    756     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    757     _cf = 0;
    758     _flag_k = FK_TEST;
    759     if (TEST_Z(_flag_a, _flag_b)) goto L_47088436; /* 0x47088432: je 0x47088436 */
    760 L_47088434:
    761     edi = eax; /* 0x47088434: mov edi, eax */
    762 L_47088436:
    763     RECOMP_ICALL(0x47039020u); /* 0x47088436: call 0x47039020 */ /* not lifted */
    764     RECOMP_FLAGS_IN();
    765     esi = eax; /* 0x4708843B: mov esi, eax */
    766     ecx = esi; /* 0x4708843D: mov ecx, esi */
    767     RECOMP_ICALL(0x4703B210u); /* 0x4708843F: call 0x4703b210 */ /* not lifted */
    768     RECOMP_FLAGS_IN();
    769     PUSH32(esp, eax); /* 0x47088444: push eax */
    770     ecx = esi; /* 0x47088445: mov ecx, esi */
    771     RECOMP_ICALL(0x4703B240u); /* 0x47088447: call 0x4703b240 */ /* not lifted */
    772     RECOMP_FLAGS_IN();
    773     PUSH32(esp, eax); /* 0x4708844C: push eax */
    774     ecx = esi; /* 0x4708844D: mov ecx, esi */
    775     RECOMP_ICALL(0x4703B080u); /* 0x4708844F: call 0x4703b080 */ /* not lifted */
    776     RECOMP_FLAGS_IN();
    777     PUSH32(esp, eax); /* 0x47088454: push eax */
    778     PUSH32(esp, edi); /* 0x47088455: push edi */
    779     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088456: push -1 */
    780     PUSH32(esp, 0xE4u); /* 0x47088458: push 0xe4 */
    781     PUSH32(esp, 0x47105B2Cu); /* 0x4708845D: push 0x47105b2c */
    782     ecx = esi; /* 0x47088462: mov ecx, esi */
    783     RECOMP_ICALL(0x4703A340u); /* 0x47088464: call 0x4703a340 */ /* not lifted */
    784     RECOMP_FLAGS_IN();
    785     PUSH32(esp, 0x47105ACCu); /* 0x47088469: push 0x47105acc */
    786     PUSH32(esp, 0x471055F0u); /* 0x4708846E: push 0x471055f0 */
    787     PUSH32(esp, 0x80u); /* 0x47088473: push 0x80 */
    788     PUSH32(esp, esi); /* 0x47088478: push esi */
    789     RECOMP_ICALL(0x47039830u); /* 0x47088479: call 0x47039830 */ /* not lifted */
    790     RECOMP_FLAGS_IN();
    791     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    792     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    793     esp = esp + 0x10u; /* 0x4708847E: add esp, 0x10 */
    794     _flag_k = FK_ADD;
    795 L_47088481:
    796     esi = MEM32(esp + 0x14); /* 0x47088481: mov esi, dword ptr [esp + 0x14] */
    797     MEM32(ebp) = 0x470AFC98u; /* 0x47088485: mov dword ptr [ebp], 0x470afc98 */
    798     eax = ebp; /* 0x4708848C: mov eax, ebp */
    799     edi = POP32_VAL(esp); /* 0x4708848E: pop edi */
    800     goto L_47088509; /* 0x4708848F: jmp 0x47088509 */
    801 L_47088491:
    802     ecx = MEM32(esp + 0x10); /* 0x47088491: mov ecx, dword ptr [esp + 0x10] */
    803     /* test ecx, ecx */ /* 0x47088495: test ecx, ecx */
    804     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    805     _cf = 0;
    806     _flag_k = FK_TEST;
    807     RECOMP_BACKEDGE();
    808     if (TEST_Z(_flag_a, _flag_b)) goto L_47088481; /* 0x47088497: je 0x47088481 */
    809 L_47088499:
    810     ecx = eax + 0x110; /* 0x47088499: lea ecx, [eax + 0x110] */
    811     MEM32(eax + 0x4) = ecx; /* 0x4708849F: mov dword ptr [eax + 4], ecx */
    812     eax = MEM32(esi); /* 0x470884A2: mov eax, dword ptr [esi] */
    813     eax = MEM32(eax + 0x4); /* 0x470884A4: mov eax, dword ptr [eax + 4] */
    814     MEM32(eax) = eax; /* 0x470884A7: mov dword ptr [eax], eax */
    815     eax = MEM32(esi); /* 0x470884A9: mov eax, dword ptr [esi] */
    816     MEM32(eax) = 0; /* 0x470884AB: mov dword ptr [eax], 0 */
    817     ecx = MEM32(esi); /* 0x470884B1: mov ecx, dword ptr [esi] */
    818     edx = MEM32(ecx + 0x4); /* 0x470884B3: mov edx, dword ptr [ecx + 4] */
    819     MEM32(edx + 0x4) = 0; /* 0x470884B6: mov dword ptr [edx + 4], 0 */
    820     /* cmp MEM32(esp + 0x30), 0x128u */ /* 0x470884BD: cmp dword ptr [esp + 0x30], 0x128 */
    821     _flag_a = (uint32_t)(MEM32(esp + 0x30)); _flag_b = (uint32_t)(0x128u);
    822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    823     _flag_k = FK_CMP;
    824     RECOMP_BACKEDGE();
    825     if (CMP_BE(_flag_a, _flag_b)) goto L_47088481; /* 0x470884C5: jbe 0x47088481 */
    826 L_470884C7:
    827     eax = MEM32(esi); /* 0x470884C7: mov eax, dword ptr [esi] */
    828     ecx = MEM32(eax + 0x4); /* 0x470884C9: mov ecx, dword ptr [eax + 4] */
    829     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    830     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    831     ecx = ecx + 0xCu; /* 0x470884CC: add ecx, 0xc */
    832     _flag_k = FK_ADD;
    833     MEM32(ecx) = 0; /* 0x470884CF: mov dword ptr [ecx], 0 */
    834     edx = MEM32(esp + 0x30); /* 0x470884D5: mov edx, dword ptr [esp + 0x30] */
    835     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFEE4u);
    836     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    837     edx = edx + 0xFFFFFEE4u; /* 0x470884D9: add edx, 0xfffffee4 */
    838     _flag_k = FK_ADD;
    839     eax = 0xAAAAAAABu; /* 0x470884DF: mov eax, 0xaaaaaaab */
    840     { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x470884E4: mul edx */
    841       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
    842       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    843     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x470884E6: shr edx, 3 */
    844     if (3u) { _flag_a = recomp_flags_pack((edx >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    845     edx = edx >> 3u; /* 0x470884E6: shr edx, 3 */
    846     MEM32(ecx + 0x4) = edx; /* 0x470884E9: mov dword ptr [ecx + 4], edx */
    847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    848     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    849     ecx = ecx + 0xCu; /* 0x470884EC: add ecx, 0xc */
    850     _flag_k = FK_ADD;
    851     PUSH32(esp, ecx); /* 0x470884EF: push ecx */
    852     ecx = esi; /* 0x470884F0: mov ecx, esi */
    853     RECOMP_ICALL(0x47088F10u); /* 0x470884F2: call 0x47088f10 */ /* not lifted */
    854     RECOMP_FLAGS_IN();
    855     esi = MEM32(esp + 0x14); /* 0x470884F7: mov esi, dword ptr [esp + 0x14] */
    856     MEM32(ebp) = 0x470AFC98u; /* 0x470884FB: mov dword ptr [ebp], 0x470afc98 */
    857     eax = ebp; /* 0x47088502: mov eax, ebp */
    858     edi = POP32_VAL(esp); /* 0x47088504: pop edi */
    859     goto L_47088509; /* 0x47088505: jmp 0x47088509 */
    860 L_47088507:
    861     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    862     eax = 0; /* 0x47088507: xor eax, eax */
    863     _cf = 0;
    864     _flag_k = FK_TEST;
    865 L_47088509:
    866     /* test eax, eax */ /* 0x47088509: test eax, eax */
    867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    868     _cf = 0;
    869     _flag_k = FK_TEST;
    870     MEM32(esi) = eax; /* 0x4708850B: mov dword ptr [esi], eax */
    871     if (TEST_NZ(_flag_a, _flag_b)) goto L_4708851B; /* 0x4708850D: jne 0x4708851b */
    872 L_4708850F:
    873     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708850F: call dword ptr [0x470ac3c8] */
    874     RECOMP_FLAGS_IN();
    875     MEM32(eax) = 0xCu; /* 0x47088515: mov dword ptr [eax], 0xc */
    876 L_4708851B:
    877     ecx = MEM32(esp + 0x1C); /* 0x4708851B: mov ecx, dword ptr [esp + 0x1c] */
    878     eax = esi; /* 0x4708851F: mov eax, esi */
    879     esi = POP32_VAL(esp); /* 0x47088521: pop esi */
    880     ebp = POP32_VAL(esp); /* 0x47088522: pop ebp */
    881     ebx = POP32_VAL(esp); /* 0x47088523: pop ebx */
    882     MEM32(FS_BASE + (0)) = ecx; /* 0x47088524: mov dword ptr fs:[0], ecx */
    883     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
    884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    885     esp = esp + 0x1Cu; /* 0x4708852B: add esp, 0x1c */
    886     _flag_k = FK_ADD;
    887     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4708852E: ret 4 */
    888     RECOMP_REGS_OUT();
    889 }
    890 
    891 void sub_47088540(void) {
    892     int _fpu_cmp = 0;
    893     uint32_t _cf = 0;
    894     int _df = 1;
    895     uint32_t _flag_k = FK_NONE;
    896     uint32_t _flag_a = 0, _flag_b = 0;
    897     uint32_t _itail_tgt = 0;
    898     RECOMP_REGS_LOCALS
    899     RECOMP_ENTER(0x47088540u);
    900 
    901 L_47088540:
    902     ecx = MEM32(ecx); /* 0x47088540: mov ecx, dword ptr [ecx] */
    903     /* test ecx, ecx */ /* 0x47088542: test ecx, ecx */
    904     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    905     _cf = 0;
    906     _flag_k = FK_TEST;
    907     if (TEST_Z(_flag_a, _flag_b)) goto L_4708854C; /* 0x47088544: je 0x4708854c */
    908 L_47088546:
    909     eax = MEM32(ecx); /* 0x47088546: mov eax, dword ptr [ecx] */
    910     PUSH32(esp, 1); /* 0x47088548: push 1 */
    911     RECOMP_ICALL(MEM32(eax)); /* 0x4708854A: call dword ptr [eax] */
    912     RECOMP_FLAGS_IN();
    913 L_4708854C:
    914     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708854C: ret  */
    915     RECOMP_REGS_OUT();
    916 }
    917 
    918 void sub_47088550(void) {
    919     int _fpu_cmp = 0;
    920     uint32_t _cf = 0;
    921     int _df = 1;
    922     uint32_t _flag_k = FK_NONE;
    923     uint32_t _flag_a = 0, _flag_b = 0;
    924     uint32_t _itail_tgt = 0;
    925     RECOMP_REGS_LOCALS
    926     RECOMP_ENTER(0x47088550u);
    927 
    928 L_47088550:
    929     PUSH32(esp, 0); /* 0x47088550: push 0 */
    930     RECOMP_ICALL(MEM32(0x470AC3B8)); /* 0x47088552: call dword ptr [0x470ac3b8] */
    931     RECOMP_FLAGS_IN();
    932     ecx = MEM32(esp + 0x8); /* 0x47088558: mov ecx, dword ptr [esp + 8] */
    933     MEM32(ecx) = eax; /* 0x4708855C: mov dword ptr [ecx], eax */
    934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    936     esp = esp + 4; /* 0x4708855E: add esp, 4 */
    937     _flag_k = FK_ADD;
    938     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    939     eax = 0; /* 0x47088561: xor eax, eax */
    940     _cf = 0;
    941     _flag_k = FK_TEST;
    942     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088563: ret  */
    943     RECOMP_REGS_OUT();
    944 }
    945 
    946 void sub_47088570(void) {
    947     int _fpu_cmp = 0;
    948     uint32_t _cf = 0;
    949     int _df = 1;
    950     uint32_t _flag_k = FK_NONE;
    951     uint32_t _flag_a = 0, _flag_b = 0;
    952     uint32_t _itail_tgt = 0;
    953     RECOMP_REGS_LOCALS
    954     RECOMP_ENTER(0x47088570u);
    955 
    956 L_47088570:
    957     PUSH32(esp, ecx); /* 0x47088570: push ecx */
    958     PUSH32(esp, esi); /* 0x47088571: push esi */
    959     esi = ecx; /* 0x47088572: mov esi, ecx */
    960     eax = MEM32(esi + 0x4); /* 0x47088574: mov eax, dword ptr [esi + 4] */
    961     /* test eax, eax */ /* 0x47088577: test eax, eax */
    962     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    963     _cf = 0;
    964     _flag_k = FK_TEST;
    965     if (TEST_NZ(_flag_a, _flag_b)) goto L_470885B0; /* 0x47088579: jne 0x470885b0 */
    966 L_4708857B:
    967     ecx = MEM32(esi); /* 0x4708857B: mov ecx, dword ptr [esi] */
    968     eax = MEM32(ecx); /* 0x4708857D: mov eax, dword ptr [ecx] */
    969     edx = esp + 0x4; /* 0x4708857F: lea edx, [esp + 4] */
    970     PUSH32(esp, edx); /* 0x47088583: push edx */
    971     PUSH32(esp, 0x4710C7E8u); /* 0x47088584: push 0x4710c7e8 */
    972     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x47088589: call dword ptr [eax + 0x20] */
    973     RECOMP_FLAGS_IN();
    974     /* cmp eax, 0xFFFFFFFFu */ /* 0x4708858C: cmp eax, -1 */
    975     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    977     _flag_k = FK_CMP;
    978     if (CMP_NE(_flag_a, _flag_b)) goto L_470885A9; /* 0x4708858F: jne 0x470885a9 */
    979 L_47088591:
    980     PUSH32(esp, 0); /* 0x47088591: push 0 */
    981     RECOMP_ICALL(MEM32(0x470AC3B8)); /* 0x47088593: call dword ptr [0x470ac3b8] */
    982     RECOMP_FLAGS_IN();
    983     ecx = MEM32(esp + 0x10); /* 0x47088599: mov ecx, dword ptr [esp + 0x10] */
    984     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    985     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    986     esp = esp + 4; /* 0x4708859D: add esp, 4 */
    987     _flag_k = FK_ADD;
    988     MEM32(ecx) = eax; /* 0x470885A0: mov dword ptr [ecx], eax */
    989     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    990     eax = 0; /* 0x470885A2: xor eax, eax */
    991     _cf = 0;
    992     _flag_k = FK_TEST;
    993     esi = POP32_VAL(esp); /* 0x470885A4: pop esi */
    994     ecx = POP32_VAL(esp); /* 0x470885A5: pop ecx */
    995     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470885A6: ret 4 */
    996 L_470885A9:
    997     edx = MEM32(esp + 0x4); /* 0x470885A9: mov edx, dword ptr [esp + 4] */
    998     MEM32(esi + 0x4) = edx; /* 0x470885AD: mov dword ptr [esi + 4], edx */
    999 L_470885B0:
   1000     eax = MEM32(esi + 0x4); /* 0x470885B0: mov eax, dword ptr [esi + 4] */
   1001     /* cmp MEM32(eax), 0 */ /* 0x470885B3: cmp dword ptr [eax], 0 */
   1002     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
   1003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1004     _flag_k = FK_CMP;
   1005     if (CMP_L(_flag_a, _flag_b)) goto L_470885D7; /* 0x470885B6: jl 0x470885d7 */
   1006 L_470885B8:
   1007     PUSH32(esp, 0); /* 0x470885B8: push 0 */
   1008     RECOMP_ICALL(MEM32(0x470AC3B8)); /* 0x470885BA: call dword ptr [0x470ac3b8] */
   1009     RECOMP_FLAGS_IN();
   1010     ecx = MEM32(esi + 0x4); /* 0x470885C0: mov ecx, dword ptr [esi + 4] */
   1011     edx = MEM32(ecx); /* 0x470885C3: mov edx, dword ptr [ecx] */
   1012     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1013     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1014     edx = edx + eax; /* 0x470885C5: add edx, eax */
   1015     _flag_k = FK_ADD;
   1016     eax = MEM32(esp + 0x10); /* 0x470885C7: mov eax, dword ptr [esp + 0x10] */
   1017     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1018     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1019     esp = esp + 4; /* 0x470885CB: add esp, 4 */
   1020     _flag_k = FK_ADD;
   1021     MEM32(eax) = edx; /* 0x470885CE: mov dword ptr [eax], edx */
   1022     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1023     eax = 0; /* 0x470885D0: xor eax, eax */
   1024     _cf = 0;
   1025     _flag_k = FK_TEST;
   1026     esi = POP32_VAL(esp); /* 0x470885D2: pop esi */
   1027     ecx = POP32_VAL(esp); /* 0x470885D3: pop ecx */
   1028     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470885D4: ret 4 */
   1029 L_470885D7:
   1030     ecx = MEM32(eax + 0x4); /* 0x470885D7: mov ecx, dword ptr [eax + 4] */
   1031     edx = MEM32(esp + 0xC); /* 0x470885DA: mov edx, dword ptr [esp + 0xc] */
   1032     MEM32(edx) = ecx; /* 0x470885DE: mov dword ptr [edx], ecx */
   1033     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1034     eax = 0; /* 0x470885E0: xor eax, eax */
   1035     _cf = 0;
   1036     _flag_k = FK_TEST;
   1037     esi = POP32_VAL(esp); /* 0x470885E2: pop esi */
   1038     ecx = POP32_VAL(esp); /* 0x470885E3: pop ecx */
   1039     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470885E4: ret 4 */
   1040     RECOMP_REGS_OUT();
   1041 }
   1042 
   1043 void sub_470885F0(void) {
   1044     int _fpu_cmp = 0;
   1045     uint32_t _cf = 0;
   1046     int _df = 1;
   1047     uint32_t _flag_k = FK_NONE;
   1048     uint32_t _flag_a = 0, _flag_b = 0;
   1049     uint32_t _itail_tgt = 0;
   1050     RECOMP_REGS_LOCALS
   1051     RECOMP_ENTER(0x470885F0u);
   1052 
   1053 L_470885F0:
   1054     PUSH32(esp, ecx); /* 0x470885F0: push ecx */
   1055     PUSH32(esp, esi); /* 0x470885F1: push esi */
   1056     esi = ecx; /* 0x470885F2: mov esi, ecx */
   1057     eax = MEM32(esi + 0x4); /* 0x470885F4: mov eax, dword ptr [esi + 4] */
   1058     /* test eax, eax */ /* 0x470885F7: test eax, eax */
   1059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1060     _cf = 0;
   1061     _flag_k = FK_TEST;
   1062     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088630; /* 0x470885F9: jne 0x47088630 */
   1063 L_470885FB:
   1064     ecx = MEM32(esi); /* 0x470885FB: mov ecx, dword ptr [esi] */
   1065     eax = MEM32(ecx); /* 0x470885FD: mov eax, dword ptr [ecx] */
   1066     edx = esp + 0x4; /* 0x470885FF: lea edx, [esp + 4] */
   1067     PUSH32(esp, edx); /* 0x47088603: push edx */
   1068     PUSH32(esp, 0x4710C7E8u); /* 0x47088604: push 0x4710c7e8 */
   1069     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x47088609: call dword ptr [eax + 0x20] */
   1070     RECOMP_FLAGS_IN();
   1071     /* cmp eax, 0xFFFFFFFFu */ /* 0x4708860C: cmp eax, -1 */
   1072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1074     _flag_k = FK_CMP;
   1075     if (CMP_NE(_flag_a, _flag_b)) goto L_47088629; /* 0x4708860F: jne 0x47088629 */
   1076 L_47088611:
   1077     PUSH32(esp, 0); /* 0x47088611: push 0 */
   1078     RECOMP_ICALL(MEM32(0x470AC3B8)); /* 0x47088613: call dword ptr [0x470ac3b8] */
   1079     RECOMP_FLAGS_IN();
   1080     ecx = MEM32(esp + 0x10); /* 0x47088619: mov ecx, dword ptr [esp + 0x10] */
   1081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1083     esp = esp + 4; /* 0x4708861D: add esp, 4 */
   1084     _flag_k = FK_ADD;
   1085     MEM32(ecx) = eax; /* 0x47088620: mov dword ptr [ecx], eax */
   1086     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1087     eax = 0; /* 0x47088622: xor eax, eax */
   1088     _cf = 0;
   1089     _flag_k = FK_TEST;
   1090     esi = POP32_VAL(esp); /* 0x47088624: pop esi */
   1091     ecx = POP32_VAL(esp); /* 0x47088625: pop ecx */
   1092     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088626: ret 4 */
   1093 L_47088629:
   1094     edx = MEM32(esp + 0x4); /* 0x47088629: mov edx, dword ptr [esp + 4] */
   1095     MEM32(esi + 0x4) = edx; /* 0x4708862D: mov dword ptr [esi + 4], edx */
   1096 L_47088630:
   1097     eax = MEM32(esi + 0x4); /* 0x47088630: mov eax, dword ptr [esi + 4] */
   1098     /* cmp MEM32(eax), 0 */ /* 0x47088633: cmp dword ptr [eax], 0 */
   1099     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
   1100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1101     _flag_k = FK_CMP;
   1102     if (CMP_L(_flag_a, _flag_b)) goto L_47088657; /* 0x47088636: jl 0x47088657 */
   1103 L_47088638:
   1104     PUSH32(esp, 0); /* 0x47088638: push 0 */
   1105     RECOMP_ICALL(MEM32(0x470AC3B8)); /* 0x4708863A: call dword ptr [0x470ac3b8] */
   1106     RECOMP_FLAGS_IN();
   1107     ecx = MEM32(esi + 0x4); /* 0x47088640: mov ecx, dword ptr [esi + 4] */
   1108     ecx = MEM32(ecx); /* 0x47088643: mov ecx, dword ptr [ecx] */
   1109     edx = MEM32(esp + 0x10); /* 0x47088645: mov edx, dword ptr [esp + 0x10] */
   1110     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1111     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1112     esp = esp + 4; /* 0x47088649: add esp, 4 */
   1113     _flag_k = FK_ADD;
   1114     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1116     ecx = ecx + eax; /* 0x4708864C: add ecx, eax */
   1117     _flag_k = FK_ADD;
   1118     MEM32(edx) = ecx; /* 0x4708864E: mov dword ptr [edx], ecx */
   1119     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1120     eax = 0; /* 0x47088650: xor eax, eax */
   1121     _cf = 0;
   1122     _flag_k = FK_TEST;
   1123     esi = POP32_VAL(esp); /* 0x47088652: pop esi */
   1124     ecx = POP32_VAL(esp); /* 0x47088653: pop ecx */
   1125     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088654: ret 4 */
   1126 L_47088657:
   1127     eax = MEM32(eax + 0x4); /* 0x47088657: mov eax, dword ptr [eax + 4] */
   1128     ecx = MEM32(esp + 0xC); /* 0x4708865A: mov ecx, dword ptr [esp + 0xc] */
   1129     MEM32(ecx) = eax; /* 0x4708865E: mov dword ptr [ecx], eax */
   1130     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1131     eax = 0; /* 0x47088660: xor eax, eax */
   1132     _cf = 0;
   1133     _flag_k = FK_TEST;
   1134     esi = POP32_VAL(esp); /* 0x47088662: pop esi */
   1135     ecx = POP32_VAL(esp); /* 0x47088663: pop ecx */
   1136     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088664: ret 4 */
   1137     RECOMP_REGS_OUT();
   1138 }
   1139 
   1140 void sub_47088670(void) {
   1141     int _fpu_cmp = 0;
   1142     uint32_t _cf = 0;
   1143     int _df = 1;
   1144     uint32_t _flag_k = FK_NONE;
   1145     uint32_t _flag_a = 0, _flag_b = 0;
   1146     uint32_t _itail_tgt = 0;
   1147     RECOMP_REGS_LOCALS
   1148     RECOMP_ENTER(0x47088670u);
   1149 
   1150 L_47088670:
   1151     eax = MEM32(esp + 0x4); /* 0x47088670: mov eax, dword ptr [esp + 4] */
   1152     PUSH32(esp, eax); /* 0x47088674: push eax */
   1153     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1155     ecx = ecx + 4; /* 0x47088675: add ecx, 4 */
   1156     _flag_k = FK_ADD;
   1157     RECOMP_ICALL(0x47088880u); /* 0x47088678: call 0x47088880 */ /* not lifted */
   1158     RECOMP_FLAGS_IN();
   1159     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4708867D: ret 4 */
   1160     RECOMP_REGS_OUT();
   1161 }
   1162 
   1163 void sub_47088680(void) {
   1164     int _fpu_cmp = 0;
   1165     uint32_t _cf = 0;
   1166     int _df = 1;
   1167     uint32_t _flag_k = FK_NONE;
   1168     uint32_t _flag_a = 0, _flag_b = 0;
   1169     uint32_t _itail_tgt = 0;
   1170     RECOMP_REGS_LOCALS
   1171     RECOMP_ENTER(0x47088680u);
   1172 
   1173 L_47088680:
   1174     PUSH32(esp, esi); /* 0x47088680: push esi */
   1175     PUSH32(esp, edi); /* 0x47088681: push edi */
   1176     edi = MEM32(esp + 0xC); /* 0x47088682: mov edi, dword ptr [esp + 0xc] */
   1177     PUSH32(esp, edi); /* 0x47088686: push edi */
   1178     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1179     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1180     ecx = ecx + 4; /* 0x47088687: add ecx, 4 */
   1181     _flag_k = FK_ADD;
   1182     RECOMP_ICALL(0x47088880u); /* 0x4708868A: call 0x47088880 */ /* not lifted */
   1183     RECOMP_FLAGS_IN();
   1184     esi = eax; /* 0x4708868F: mov esi, eax */
   1185     /* test esi, esi */ /* 0x47088691: test esi, esi */
   1186     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1187     _cf = 0;
   1188     _flag_k = FK_TEST;
   1189     if (TEST_Z(_flag_a, _flag_b)) goto L_470886C1; /* 0x47088693: je 0x470886c1 */
   1190 L_47088695:
   1191     eax = (int32_t)(int8_t)MEM8(esp + 0x10); /* 0x47088695: movsx eax, byte ptr [esp + 0x10] */
   1192     PUSH32(esp, ebx); /* 0x4708869A: push ebx */
   1193     SET_LO8(ebx, LO8(eax)); /* 0x4708869B: mov bl, al */
   1194     SET_HI8(ebx, LO8(ebx)); /* 0x4708869D: mov bh, bl */
   1195     ecx = edi; /* 0x4708869F: mov ecx, edi */
   1196     edx = ecx; /* 0x470886A1: mov edx, ecx */
   1197     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470886A3: shr ecx, 2 */
   1198     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1199     ecx = ecx >> 2u; /* 0x470886A3: shr ecx, 2 */
   1200     edi = esi; /* 0x470886A6: mov edi, esi */
   1201     eax = ebx; /* 0x470886A8: mov eax, ebx */
   1202     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x470886AA: shl eax, 0x10 */
   1203     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1204     eax = eax << 16u; /* 0x470886AA: shl eax, 0x10 */
   1205     SET_LO16(eax, LO16(ebx)); /* 0x470886AD: mov ax, bx */
   1206     ebx = POP32_VAL(esp); /* 0x470886B0: pop ebx */
   1207     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470886B1: 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; }
   1208     ecx = edx; /* 0x470886B3: mov ecx, edx */
   1209     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   1210     ecx = ecx & 3; /* 0x470886B5: and ecx, 3 */
   1211     _cf = 0;
   1212     _flag_k = FK_TEST;
   1213     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x470886B8: rep stosb byte ptr es:[edi], al */ if (_df > 0) { memset((void*)ADDR(edi), LO8(eax), _n); edi += _b; } else { memset((void*)ADDR(edi - _b + 1u), LO8(eax), _n); edi -= _b; } ecx = 0; }
   1214     edi = POP32_VAL(esp); /* 0x470886BA: pop edi */
   1215     eax = esi; /* 0x470886BB: mov eax, esi */
   1216     esi = POP32_VAL(esp); /* 0x470886BD: pop esi */
   1217     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470886BE: ret 8 */
   1218 L_470886C1:
   1219     edi = POP32_VAL(esp); /* 0x470886C1: pop edi */
   1220     eax = esi; /* 0x470886C2: mov eax, esi */
   1221     esi = POP32_VAL(esp); /* 0x470886C4: pop esi */
   1222     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470886C5: ret 8 */
   1223     RECOMP_REGS_OUT();
   1224 }
   1225 
   1226 void sub_470886D0(void) {
   1227     int _fpu_cmp = 0;
   1228     uint32_t _cf = 0;
   1229     int _df = 1;
   1230     uint32_t _flag_k = FK_NONE;
   1231     uint32_t _flag_a = 0, _flag_b = 0;
   1232     uint32_t _itail_tgt = 0;
   1233     RECOMP_REGS_LOCALS
   1234     RECOMP_ENTER(0x470886D0u);
   1235 
   1236 L_470886D0:
   1237     eax = MEM32(esp + 0x4); /* 0x470886D0: mov eax, dword ptr [esp + 4] */
   1238     PUSH32(esp, eax); /* 0x470886D4: push eax */
   1239     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1241     ecx = ecx + 4; /* 0x470886D5: add ecx, 4 */
   1242     _flag_k = FK_ADD;
   1243     RECOMP_ICALL(0x470888C0u); /* 0x470886D8: call 0x470888c0 */ /* not lifted */
   1244     RECOMP_FLAGS_IN();
   1245     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470886DD: ret 4 */
   1246     RECOMP_REGS_OUT();
   1247 }
   1248 
   1249 void sub_470886E0(void) {
   1250     int _fpu_cmp = 0;
   1251     uint32_t _cf = 0;
   1252     int _df = 1;
   1253     uint32_t _flag_k = FK_NONE;
   1254     uint32_t _flag_a = 0, _flag_b = 0;
   1255     uint32_t _itail_tgt = 0;
   1256     RECOMP_REGS_LOCALS
   1257     RECOMP_ENTER(0x470886E0u);
   1258 
   1259 L_470886E0:
   1260     eax = MEM32(ecx + 0x8); /* 0x470886E0: mov eax, dword ptr [ecx + 8] */
   1261 L_470886E3:
   1262     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   1263     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1264     ecx = ecx + 8; /* 0x470886E3: add ecx, 8 */
   1265     _flag_k = FK_ADD;
   1266 L_470886E6:
   1267     { _itail_tgt = (uint32_t)(MEM32(eax + 0x48)); goto _ljump; }
   1268     { RECOMP_REGS_OUT(); return; } /* end of function */
   1269   _ljump:
   1270     switch (_itail_tgt) {
   1271       case 0x470886E0u: goto L_470886E0;
   1272       case 0x470886E3u: goto L_470886E3;
   1273       case 0x470886E6u: goto L_470886E6;
   1274       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1275     }
   1276     RECOMP_REGS_OUT();
   1277 }
   1278 
   1279 void sub_470886F0(void) {
   1280     int _fpu_cmp = 0;
   1281     uint32_t _cf = 0;
   1282     int _df = 1;
   1283     uint32_t _flag_k = FK_NONE;
   1284     uint32_t _flag_a = 0, _flag_b = 0;
   1285     uint32_t _itail_tgt = 0;
   1286     RECOMP_REGS_LOCALS
   1287     RECOMP_ENTER(0x470886F0u);
   1288 
   1289 L_470886F0:
   1290     eax = MEM32(esp + 0xC); /* 0x470886F0: mov eax, dword ptr [esp + 0xc] */
   1291     edx = MEM32(esp + 0x8); /* 0x470886F4: mov edx, dword ptr [esp + 8] */
   1292     PUSH32(esp, eax); /* 0x470886F8: push eax */
   1293     eax = MEM32(esp + 0x8); /* 0x470886F9: mov eax, dword ptr [esp + 8] */
   1294     PUSH32(esp, edx); /* 0x470886FD: push edx */
   1295     PUSH32(esp, eax); /* 0x470886FE: push eax */
   1296     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1297     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1298     ecx = ecx + 4; /* 0x470886FF: add ecx, 4 */
   1299     _flag_k = FK_ADD;
   1300     RECOMP_ICALL(0x47088900u); /* 0x47088702: call 0x47088900 */ /* not lifted */
   1301     RECOMP_FLAGS_IN();
   1302     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47088707: ret 0xc */
   1303     RECOMP_REGS_OUT();
   1304 }
   1305 
   1306 void sub_47088710(void) {
   1307     int _fpu_cmp = 0;
   1308     uint32_t _cf = 0;
   1309     int _df = 1;
   1310     uint32_t _flag_k = FK_NONE;
   1311     uint32_t _flag_a = 0, _flag_b = 0;
   1312     uint32_t _itail_tgt = 0;
   1313     RECOMP_REGS_LOCALS
   1314     RECOMP_ENTER(0x47088710u);
   1315 
   1316 L_47088710:
   1317     eax = MEM32(esp + 0x8); /* 0x47088710: mov eax, dword ptr [esp + 8] */
   1318     edx = MEM32(esp + 0x4); /* 0x47088714: mov edx, dword ptr [esp + 4] */
   1319     PUSH32(esp, eax); /* 0x47088718: push eax */
   1320     PUSH32(esp, edx); /* 0x47088719: push edx */
   1321     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1322     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1323     ecx = ecx + 4; /* 0x4708871A: add ecx, 4 */
   1324     _flag_k = FK_ADD;
   1325     RECOMP_ICALL(0x470889F0u); /* 0x4708871D: call 0x470889f0 */ /* not lifted */
   1326     RECOMP_FLAGS_IN();
   1327     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47088722: ret 8 */
   1328     RECOMP_REGS_OUT();
   1329 }
   1330 
   1331 void sub_47088730(void) {
   1332     int _fpu_cmp = 0;
   1333     uint32_t _cf = 0;
   1334     int _df = 1;
   1335     uint32_t _flag_k = FK_NONE;
   1336     uint32_t _flag_a = 0, _flag_b = 0;
   1337     uint32_t _itail_tgt = 0;
   1338     RECOMP_REGS_LOCALS
   1339     RECOMP_ENTER(0x47088730u);
   1340 
   1341 L_47088730:
   1342     eax = MEM32(esp + 0x4); /* 0x47088730: mov eax, dword ptr [esp + 4] */
   1343     PUSH32(esp, eax); /* 0x47088734: push eax */
   1344     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1345     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1346     ecx = ecx + 4; /* 0x47088735: add ecx, 4 */
   1347     _flag_k = FK_ADD;
   1348     RECOMP_ICALL(0x47088AB0u); /* 0x47088738: call 0x47088ab0 */ /* not lifted */
   1349     RECOMP_FLAGS_IN();
   1350     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4708873D: ret 4 */
   1351     RECOMP_REGS_OUT();
   1352 }
   1353 
   1354 void sub_47088740(void) {
   1355     int _fpu_cmp = 0;
   1356     uint32_t _cf = 0;
   1357     int _df = 1;
   1358     uint32_t _flag_k = FK_NONE;
   1359     uint32_t _flag_a = 0, _flag_b = 0;
   1360     uint32_t _itail_tgt = 0;
   1361     RECOMP_REGS_LOCALS
   1362     RECOMP_ENTER(0x47088740u);
   1363 
   1364 L_47088740:
   1365     eax = MEM32(esp + 0x8); /* 0x47088740: mov eax, dword ptr [esp + 8] */
   1366     edx = MEM32(esp + 0x4); /* 0x47088744: mov edx, dword ptr [esp + 4] */
   1367     PUSH32(esp, eax); /* 0x47088748: push eax */
   1368     PUSH32(esp, edx); /* 0x47088749: push edx */
   1369     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1370     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1371     ecx = ecx + 4; /* 0x4708874A: add ecx, 4 */
   1372     _flag_k = FK_ADD;
   1373     RECOMP_ICALL(0x47088AF0u); /* 0x4708874D: call 0x47088af0 */ /* not lifted */
   1374     RECOMP_FLAGS_IN();
   1375     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47088752: ret 8 */
   1376     RECOMP_REGS_OUT();
   1377 }
   1378 
   1379 void sub_47088760(void) {
   1380     int _fpu_cmp = 0;
   1381     uint32_t _cf = 0;
   1382     int _df = 1;
   1383     uint32_t _flag_k = FK_NONE;
   1384     uint32_t _flag_a = 0, _flag_b = 0;
   1385     uint32_t _itail_tgt = 0;
   1386     RECOMP_REGS_LOCALS
   1387     RECOMP_ENTER(0x47088760u);
   1388 
   1389 L_47088760:
   1390     eax = MEM32(esp + 0x8); /* 0x47088760: mov eax, dword ptr [esp + 8] */
   1391     edx = MEM32(esp + 0x4); /* 0x47088764: mov edx, dword ptr [esp + 4] */
   1392     PUSH32(esp, eax); /* 0x47088768: push eax */
   1393     PUSH32(esp, edx); /* 0x47088769: push edx */
   1394     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1395     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1396     ecx = ecx + 4; /* 0x4708876A: add ecx, 4 */
   1397     _flag_k = FK_ADD;
   1398     RECOMP_ICALL(0x47088B50u); /* 0x4708876D: call 0x47088b50 */ /* not lifted */
   1399     RECOMP_FLAGS_IN();
   1400     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47088772: ret 8 */
   1401     RECOMP_REGS_OUT();
   1402 }
   1403 
   1404 void sub_47088780(void) {
   1405     int _fpu_cmp = 0;
   1406     uint32_t _cf = 0;
   1407     int _df = 1;
   1408     uint32_t _flag_k = FK_NONE;
   1409     uint32_t _flag_a = 0, _flag_b = 0;
   1410     uint32_t _itail_tgt = 0;
   1411     RECOMP_REGS_LOCALS
   1412     RECOMP_ENTER(0x47088780u);
   1413 
   1414 L_47088780:
   1415     PUSH32(esp, ecx); /* 0x47088780: push ecx */
   1416     edx = MEM32(esp + 0x8); /* 0x47088781: mov edx, dword ptr [esp + 8] */
   1417     eax = esp; /* 0x47088785: lea eax, [esp] */
   1418     PUSH32(esp, eax); /* 0x47088789: push eax */
   1419     PUSH32(esp, edx); /* 0x4708878A: push edx */
   1420     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1421     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1422     ecx = ecx + 4; /* 0x4708878B: add ecx, 4 */
   1423     _flag_k = FK_ADD;
   1424     MEM32(esp + 0x8) = 0; /* 0x4708878E: mov dword ptr [esp + 8], 0 */
   1425     RECOMP_ICALL(0x47088B50u); /* 0x47088796: call 0x47088b50 */ /* not lifted */
   1426     RECOMP_FLAGS_IN();
   1427     ecx = POP32_VAL(esp); /* 0x4708879B: pop ecx */
   1428     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4708879C: ret 4 */
   1429     RECOMP_REGS_OUT();
   1430 }
   1431 
   1432 void sub_470887A0(void) {
   1433     int _fpu_cmp = 0;
   1434     uint32_t _cf = 0;
   1435     int _df = 1;
   1436     uint32_t _flag_k = FK_NONE;
   1437     uint32_t _flag_a = 0, _flag_b = 0;
   1438     uint32_t _itail_tgt = 0;
   1439     RECOMP_REGS_LOCALS
   1440     RECOMP_ENTER(0x470887A0u);
   1441 
   1442 L_470887A0:
   1443     edx = MEM32(esp + 0xC); /* 0x470887A0: mov edx, dword ptr [esp + 0xc] */
   1444     eax = MEM32(ecx + 0x8); /* 0x470887A4: mov eax, dword ptr [ecx + 8] */
   1445     PUSH32(esp, edx); /* 0x470887A7: push edx */
   1446     edx = MEM32(esp + 0xC); /* 0x470887A8: mov edx, dword ptr [esp + 0xc] */
   1447     PUSH32(esp, edx); /* 0x470887AC: push edx */
   1448     edx = MEM32(esp + 0xC); /* 0x470887AD: mov edx, dword ptr [esp + 0xc] */
   1449     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   1450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1451     ecx = ecx + 8; /* 0x470887B1: add ecx, 8 */
   1452     _flag_k = FK_ADD;
   1453     PUSH32(esp, edx); /* 0x470887B4: push edx */
   1454     RECOMP_ICALL(MEM32(eax + 0x54)); /* 0x470887B5: call dword ptr [eax + 0x54] */
   1455     RECOMP_FLAGS_IN();
   1456     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470887B8: ret 0xc */
   1457     RECOMP_REGS_OUT();
   1458 }
   1459 
   1460 void sub_470887C0(void) {
   1461     int _fpu_cmp = 0;
   1462     uint32_t _cf = 0;
   1463     int _df = 1;
   1464     uint32_t _flag_k = FK_NONE;
   1465     uint32_t _flag_a = 0, _flag_b = 0;
   1466     uint32_t _itail_tgt = 0;
   1467     RECOMP_REGS_LOCALS
   1468     RECOMP_ENTER(0x470887C0u);
   1469 
   1470 L_470887C0:
   1471     edx = MEM32(esp + 0x8); /* 0x470887C0: mov edx, dword ptr [esp + 8] */
   1472     eax = MEM32(ecx + 0x8); /* 0x470887C4: mov eax, dword ptr [ecx + 8] */
   1473     PUSH32(esp, edx); /* 0x470887C7: push edx */
   1474     edx = MEM32(esp + 0x8); /* 0x470887C8: mov edx, dword ptr [esp + 8] */
   1475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   1476     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1477     ecx = ecx + 8; /* 0x470887CC: add ecx, 8 */
   1478     _flag_k = FK_ADD;
   1479     PUSH32(esp, edx); /* 0x470887CF: push edx */
   1480     RECOMP_ICALL(MEM32(eax + 0x58)); /* 0x470887D0: call dword ptr [eax + 0x58] */
   1481     RECOMP_FLAGS_IN();
   1482     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470887D3: ret 8 */
   1483     RECOMP_REGS_OUT();
   1484 }
   1485 
   1486 void sub_470887E0(void) {
   1487     int _fpu_cmp = 0;
   1488     uint32_t _cf = 0;
   1489     int _df = 1;
   1490     uint32_t _flag_k = FK_NONE;
   1491     uint32_t _flag_a = 0, _flag_b = 0;
   1492     uint32_t _itail_tgt = 0;
   1493     RECOMP_REGS_LOCALS
   1494     RECOMP_ENTER(0x470887E0u);
   1495 
   1496 L_470887E0:
   1497     PUSH32(esp, esi); /* 0x470887E0: push esi */
   1498     esi = ecx; /* 0x470887E1: mov esi, ecx */
   1499     RECOMP_ICALL(0x47088800u); /* 0x470887E3: call 0x47088800 */ /* not lifted */
   1500     RECOMP_FLAGS_IN();
   1501     /* test MEM8(esp + 0x8), 1 */ /* 0x470887E8: test byte ptr [esp + 8], 1 */
   1502     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   1503     _cf = 0;
   1504     _flag_k = FK_NARROW(FK_TEST, 24);
   1505     if (TEST_Z(_flag_a, _flag_b)) goto L_470887F8; /* 0x470887ED: je 0x470887f8 */
   1506 L_470887EF:
   1507     PUSH32(esp, esi); /* 0x470887EF: push esi */
   1508     RECOMP_ICALL(0x470A32A2u); /* 0x470887F0: call 0x470a32a2 */ /* not lifted */
   1509     RECOMP_FLAGS_IN();
   1510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1511     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1512     esp = esp + 4; /* 0x470887F5: add esp, 4 */
   1513     _flag_k = FK_ADD;
   1514 L_470887F8:
   1515     eax = esi; /* 0x470887F8: mov eax, esi */
   1516     esi = POP32_VAL(esp); /* 0x470887FA: pop esi */
   1517     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470887FB: ret 4 */
   1518     RECOMP_REGS_OUT();
   1519 }
   1520 
   1521 void sub_47088800(void) {
   1522     int _fpu_cmp = 0;
   1523     uint32_t _cf = 0;
   1524     int _df = 1;
   1525     uint32_t _flag_k = FK_NONE;
   1526     uint32_t _flag_a = 0, _flag_b = 0;
   1527     uint32_t _itail_tgt = 0;
   1528     RECOMP_REGS_LOCALS
   1529     RECOMP_ENTER(0x47088800u);
   1530 
   1531 L_47088800:
   1532     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088800: push -1 */
   1533     PUSH32(esp, 0x470AA020u); /* 0x47088802: push 0x470aa020 */
   1534     eax = MEM32(FS_BASE + (0)); /* 0x47088807: mov eax, dword ptr fs:[0] */
   1535     PUSH32(esp, eax); /* 0x4708880D: push eax */
   1536     MEM32(FS_BASE + (0)) = esp; /* 0x4708880E: mov dword ptr fs:[0], esp */
   1537     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1538     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1539     esp = esp - 8; /* 0x47088815: sub esp, 8 */
   1540     _flag_k = FK_CMP;
   1541     PUSH32(esp, esi); /* 0x47088818: push esi */
   1542     esi = ecx; /* 0x47088819: mov esi, ecx */
   1543     PUSH32(esp, edi); /* 0x4708881B: push edi */
   1544     MEM32(esp + 0x8) = esi; /* 0x4708881C: mov dword ptr [esp + 8], esi */
   1545     MEM32(esi) = 0x470AFC98u; /* 0x47088820: mov dword ptr [esi], 0x470afc98 */
   1546     edi = esi + 0x8; /* 0x47088826: lea edi, [esi + 8] */
   1547     MEM32(esp + 0x18) = 0; /* 0x47088829: mov dword ptr [esp + 0x18], 0 */
   1548     MEM32(esp + 0xC) = edi; /* 0x47088831: mov dword ptr [esp + 0xc], edi */
   1549     MEM32(edi) = 0x470AC710u; /* 0x47088835: mov dword ptr [edi], 0x470ac710 */
   1550     ecx = edi + 0x10; /* 0x4708883B: lea ecx, [edi + 0x10] */
   1551     MEM8(esp + 0x18) = (uint8_t)(1); /* 0x4708883E: mov byte ptr [esp + 0x18], 1 */
   1552     RECOMP_ICALL(0x47041710u); /* 0x47088843: call 0x47041710 */ /* not lifted */
   1553     RECOMP_FLAGS_IN();
   1554     ecx = edi; /* 0x47088848: mov ecx, edi */
   1555     MEM8(esp + 0x18) = (uint8_t)(0); /* 0x4708884A: mov byte ptr [esp + 0x18], 0 */
   1556     RECOMP_ICALL(0x4702A7B0u); /* 0x4708884F: call 0x4702a7b0 */ /* not lifted */
   1557     RECOMP_FLAGS_IN();
   1558     ecx = esi; /* 0x47088854: mov ecx, esi */
   1559     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47088856: mov dword ptr [esp + 0x18], 0xffffffff */
   1560     RECOMP_ICALL(0x4703DCA0u); /* 0x4708885E: call 0x4703dca0 */ /* not lifted */
   1561     RECOMP_FLAGS_IN();
   1562     ecx = MEM32(esp + 0x10); /* 0x47088863: mov ecx, dword ptr [esp + 0x10] */
   1563     edi = POP32_VAL(esp); /* 0x47088867: pop edi */
   1564     esi = POP32_VAL(esp); /* 0x47088868: pop esi */
   1565     MEM32(FS_BASE + (0)) = ecx; /* 0x47088869: mov dword ptr fs:[0], ecx */
   1566     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1567     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1568     esp = esp + 0x14u; /* 0x47088870: add esp, 0x14 */
   1569     _flag_k = FK_ADD;
   1570     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088873: ret  */
   1571     RECOMP_REGS_OUT();
   1572 }
   1573 
   1574 void sub_47088880(void) {
   1575     int _fpu_cmp = 0;
   1576     uint32_t _cf = 0;
   1577     int _df = 1;
   1578     uint32_t _flag_k = FK_NONE;
   1579     uint32_t _flag_a = 0, _flag_b = 0;
   1580     uint32_t _itail_tgt = 0;
   1581     RECOMP_REGS_LOCALS
   1582     RECOMP_ENTER(0x47088880u);
   1583 
   1584 L_47088880:
   1585     eax = MEM32(FS_BASE + (0)); /* 0x47088880: mov eax, dword ptr fs:[0] */
   1586     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088886: push -1 */
   1587     PUSH32(esp, 0x470AA038u); /* 0x47088888: push 0x470aa038 */
   1588     PUSH32(esp, eax); /* 0x4708888D: push eax */
   1589     MEM32(FS_BASE + (0)) = esp; /* 0x4708888E: mov dword ptr fs:[0], esp */
   1590     eax = MEM32(esp + 0x10); /* 0x47088895: mov eax, dword ptr [esp + 0x10] */
   1591     PUSH32(esp, eax); /* 0x47088899: push eax */
   1592     MEM32(esp + 0xC) = 0; /* 0x4708889A: mov dword ptr [esp + 0xc], 0 */
   1593     RECOMP_ICALL(0x47088D00u); /* 0x470888A2: call 0x47088d00 */ /* not lifted */
   1594     RECOMP_FLAGS_IN();
   1595     ecx = MEM32(esp); /* 0x470888A7: mov ecx, dword ptr [esp] */
   1596     MEM32(FS_BASE + (0)) = ecx; /* 0x470888AB: mov dword ptr fs:[0], ecx */
   1597     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1598     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1599     esp = esp + 0xCu; /* 0x470888B2: add esp, 0xc */
   1600     _flag_k = FK_ADD;
   1601     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470888B5: ret 4 */
   1602     RECOMP_REGS_OUT();
   1603 }
   1604 
   1605 void sub_470888C0(void) {
   1606     int _fpu_cmp = 0;
   1607     uint32_t _cf = 0;
   1608     int _df = 1;
   1609     uint32_t _flag_k = FK_NONE;
   1610     uint32_t _flag_a = 0, _flag_b = 0;
   1611     uint32_t _itail_tgt = 0;
   1612     RECOMP_REGS_LOCALS
   1613     RECOMP_ENTER(0x470888C0u);
   1614 
   1615 L_470888C0:
   1616     eax = MEM32(FS_BASE + (0)); /* 0x470888C0: mov eax, dword ptr fs:[0] */
   1617     PUSH32(esp, 0xFFFFFFFFu); /* 0x470888C6: push -1 */
   1618     PUSH32(esp, 0x470AA058u); /* 0x470888C8: push 0x470aa058 */
   1619     PUSH32(esp, eax); /* 0x470888CD: push eax */
   1620     MEM32(FS_BASE + (0)) = esp; /* 0x470888CE: mov dword ptr fs:[0], esp */
   1621     eax = MEM32(esp + 0x10); /* 0x470888D5: mov eax, dword ptr [esp + 0x10] */
   1622     PUSH32(esp, eax); /* 0x470888D9: push eax */
   1623     MEM32(esp + 0xC) = 0; /* 0x470888DA: mov dword ptr [esp + 0xc], 0 */
   1624     RECOMP_ICALL(0x47088F10u); /* 0x470888E2: call 0x47088f10 */ /* not lifted */
   1625     RECOMP_FLAGS_IN();
   1626     ecx = MEM32(esp); /* 0x470888E7: mov ecx, dword ptr [esp] */
   1627     MEM32(FS_BASE + (0)) = ecx; /* 0x470888EB: mov dword ptr fs:[0], ecx */
   1628     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1629     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1630     esp = esp + 0xCu; /* 0x470888F2: add esp, 0xc */
   1631     _flag_k = FK_ADD;
   1632     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470888F5: ret 4 */
   1633     RECOMP_REGS_OUT();
   1634 }
   1635 
   1636 void sub_47088900(void) {
   1637     int _fpu_cmp = 0;
   1638     uint32_t _cf = 0;
   1639     int _df = 1;
   1640     uint32_t _flag_k = FK_NONE;
   1641     uint32_t _flag_a = 0, _flag_b = 0;
   1642     uint32_t _itail_tgt = 0;
   1643     RECOMP_REGS_LOCALS
   1644     RECOMP_ENTER(0x47088900u);
   1645 
   1646 L_47088900:
   1647     eax = MEM32(FS_BASE + (0)); /* 0x47088900: mov eax, dword ptr fs:[0] */
   1648     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088906: push -1 */
   1649     PUSH32(esp, 0x470AA089u); /* 0x47088908: push 0x470aa089 */
   1650     PUSH32(esp, eax); /* 0x4708890D: push eax */
   1651     MEM32(FS_BASE + (0)) = esp; /* 0x4708890E: mov dword ptr fs:[0], esp */
   1652     PUSH32(esp, ebx); /* 0x47088915: push ebx */
   1653     PUSH32(esp, esi); /* 0x47088916: push esi */
   1654     PUSH32(esp, edi); /* 0x47088917: push edi */
   1655     esi = ecx; /* 0x47088918: mov esi, ecx */
   1656     eax = MEM32(esp + 0x24); /* 0x4708891A: mov eax, dword ptr [esp + 0x24] */
   1657     /* test eax, eax */ /* 0x4708891E: test eax, eax */
   1658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1659     _cf = 0;
   1660     _flag_k = FK_TEST;
   1661     ebx = MEM32(esp + 0x1C); /* 0x47088920: mov ebx, dword ptr [esp + 0x1c] */
   1662     MEM32(esp + 0x14) = 0; /* 0x47088924: mov dword ptr [esp + 0x14], 0 */
   1663     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088951; /* 0x4708892C: jne 0x47088951 */
   1664 L_4708892E:
   1665     PUSH32(esp, ebx); /* 0x4708892E: push ebx */
   1666     RECOMP_ICALL(0x47088C20u); /* 0x4708892F: call 0x47088c20 */ /* not lifted */
   1667     RECOMP_FLAGS_IN();
   1668     /* test eax, eax */ /* 0x47088934: test eax, eax */
   1669     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1670     _cf = 0;
   1671     _flag_k = FK_TEST;
   1672     if (TEST_Z(_flag_a, _flag_b)) goto L_47088951; /* 0x47088936: je 0x47088951 */
   1673 L_47088938:
   1674     eax = 1; /* 0x47088938: mov eax, 1 */
   1675     ecx = MEM32(esp + 0xC); /* 0x4708893D: mov ecx, dword ptr [esp + 0xc] */
   1676     MEM32(FS_BASE + (0)) = ecx; /* 0x47088941: mov dword ptr fs:[0], ecx */
   1677     edi = POP32_VAL(esp); /* 0x47088948: pop edi */
   1678     esi = POP32_VAL(esp); /* 0x47088949: pop esi */
   1679     ebx = POP32_VAL(esp); /* 0x4708894A: pop ebx */
   1680     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1682     esp = esp + 0xCu; /* 0x4708894B: add esp, 0xc */
   1683     _flag_k = FK_ADD;
   1684     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4708894E: ret 0xc */
   1685 L_47088951:
   1686     /* cmp MEM32(esi), 0 */ /* 0x47088951: cmp dword ptr [esi], 0 */
   1687     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   1688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1689     _flag_k = FK_CMP;
   1690     if (CMP_NE(_flag_a, _flag_b)) goto L_4708896D; /* 0x47088954: jne 0x4708896d */
   1691 L_47088956:
   1692     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1693     eax = eax | 0xFFFFFFFFu; /* 0x47088956: or eax, 0xffffffff */
   1694     _cf = 0;
   1695     _flag_k = FK_TEST;
   1696     ecx = MEM32(esp + 0xC); /* 0x47088959: mov ecx, dword ptr [esp + 0xc] */
   1697     MEM32(FS_BASE + (0)) = ecx; /* 0x4708895D: mov dword ptr fs:[0], ecx */
   1698     edi = POP32_VAL(esp); /* 0x47088964: pop edi */
   1699     esi = POP32_VAL(esp); /* 0x47088965: pop esi */
   1700     ebx = POP32_VAL(esp); /* 0x47088966: pop ebx */
   1701     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1702     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1703     esp = esp + 0xCu; /* 0x47088967: add esp, 0xc */
   1704     _flag_k = FK_ADD;
   1705     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4708896A: ret 0xc */
   1706 L_4708896D:
   1707     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1708     ecx = ecx | 0xFFFFFFFFu; /* 0x4708896D: or ecx, 0xffffffff */
   1709     _cf = 0;
   1710     _flag_k = FK_TEST;
   1711     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1712     eax = 0; /* 0x47088970: xor eax, eax */
   1713     _cf = 0;
   1714     _flag_k = FK_TEST;
   1715     edi = ebx; /* 0x47088972: mov edi, ebx */
   1716     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; } /* 0x47088974: repne scasb al, byte ptr es:[edi] */
   1717     ecx = ~ecx; /* 0x47088976: not ecx */
   1718     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   1719     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1720     ecx = ecx + 0x10u; /* 0x47088978: add ecx, 0x10 */
   1721     _flag_k = FK_ADD;
   1722     PUSH32(esp, ecx); /* 0x4708897B: push ecx */
   1723     ecx = esi; /* 0x4708897C: mov ecx, esi */
   1724     RECOMP_ICALL(0x47088D00u); /* 0x4708897E: call 0x47088d00 */ /* not lifted */
   1725     RECOMP_FLAGS_IN();
   1726     /* test eax, eax */ /* 0x47088983: test eax, eax */
   1727     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1728     _cf = 0;
   1729     _flag_k = FK_TEST;
   1730     MEM32(esp + 0x24) = eax; /* 0x47088985: mov dword ptr [esp + 0x24], eax */
   1731     if (TEST_NZ(_flag_a, _flag_b)) goto L_470889AE; /* 0x47088989: jne 0x470889ae */
   1732 L_4708898B:
   1733     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708898B: call dword ptr [0x470ac3c8] */
   1734     RECOMP_FLAGS_IN();
   1735     MEM32(eax) = 0xCu; /* 0x47088991: mov dword ptr [eax], 0xc */
   1736     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1737     eax = eax | 0xFFFFFFFFu; /* 0x47088997: or eax, 0xffffffff */
   1738     _cf = 0;
   1739     _flag_k = FK_TEST;
   1740     ecx = MEM32(esp + 0xC); /* 0x4708899A: mov ecx, dword ptr [esp + 0xc] */
   1741     MEM32(FS_BASE + (0)) = ecx; /* 0x4708899E: mov dword ptr fs:[0], ecx */
   1742     edi = POP32_VAL(esp); /* 0x470889A5: pop edi */
   1743     esi = POP32_VAL(esp); /* 0x470889A6: pop esi */
   1744     ebx = POP32_VAL(esp); /* 0x470889A7: pop ebx */
   1745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1747     esp = esp + 0xCu; /* 0x470889A8: add esp, 0xc */
   1748     _flag_k = FK_ADD;
   1749     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470889AB: ret 0xc */
   1750 L_470889AE:
   1751     ecx = eax + 0x10; /* 0x470889AE: lea ecx, [eax + 0x10] */
   1752     MEM32(esp + 0x1C) = eax; /* 0x470889B1: mov dword ptr [esp + 0x1c], eax */
   1753     edx = MEM32(esi); /* 0x470889B5: mov edx, dword ptr [esi] */
   1754     edx = MEM32(edx); /* 0x470889B7: mov edx, dword ptr [edx] */
   1755     PUSH32(esp, edx); /* 0x470889B9: push edx */
   1756     edx = MEM32(esp + 0x24); /* 0x470889BA: mov edx, dword ptr [esp + 0x24] */
   1757     PUSH32(esp, edx); /* 0x470889BE: push edx */
   1758     PUSH32(esp, ecx); /* 0x470889BF: push ecx */
   1759     PUSH32(esp, ebx); /* 0x470889C0: push ebx */
   1760     ecx = eax; /* 0x470889C1: mov ecx, eax */
   1761     MEM8(esp + 0x24) = (uint8_t)(1); /* 0x470889C3: mov byte ptr [esp + 0x24], 1 */
   1762     RECOMP_ICALL(0x4703CB50u); /* 0x470889C8: call 0x4703cb50 */ /* not lifted */
   1763     RECOMP_FLAGS_IN();
   1764     ecx = MEM32(esi); /* 0x470889CD: mov ecx, dword ptr [esi] */
   1765     MEM32(ecx) = eax; /* 0x470889CF: mov dword ptr [ecx], eax */
   1766     ecx = MEM32(esp + 0xC); /* 0x470889D1: mov ecx, dword ptr [esp + 0xc] */
   1767     edi = POP32_VAL(esp); /* 0x470889D5: pop edi */
   1768     esi = POP32_VAL(esp); /* 0x470889D6: pop esi */
   1769     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1770     eax = 0; /* 0x470889D7: xor eax, eax */
   1771     _cf = 0;
   1772     _flag_k = FK_TEST;
   1773     MEM32(FS_BASE + (0)) = ecx; /* 0x470889D9: mov dword ptr fs:[0], ecx */
   1774     ebx = POP32_VAL(esp); /* 0x470889E0: pop ebx */
   1775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1776     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1777     esp = esp + 0xCu; /* 0x470889E1: add esp, 0xc */
   1778     _flag_k = FK_ADD;
   1779     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470889E4: ret 0xc */
   1780     RECOMP_REGS_OUT();
   1781 }
   1782 
   1783 void sub_470889F0(void) {
   1784     int _fpu_cmp = 0;
   1785     uint32_t _cf = 0;
   1786     int _df = 1;
   1787     uint32_t _flag_k = FK_NONE;
   1788     uint32_t _flag_a = 0, _flag_b = 0;
   1789     uint32_t _itail_tgt = 0;
   1790     RECOMP_REGS_LOCALS
   1791     RECOMP_ENTER(0x470889F0u);
   1792 
   1793 L_470889F0:
   1794     eax = MEM32(FS_BASE + (0)); /* 0x470889F0: mov eax, dword ptr fs:[0] */
   1795     PUSH32(esp, 0xFFFFFFFFu); /* 0x470889F6: push -1 */
   1796     PUSH32(esp, 0x470AA0B9u); /* 0x470889F8: push 0x470aa0b9 */
   1797     PUSH32(esp, eax); /* 0x470889FD: push eax */
   1798     MEM32(FS_BASE + (0)) = esp; /* 0x470889FE: mov dword ptr fs:[0], esp */
   1799     PUSH32(esp, ebx); /* 0x47088A05: push ebx */
   1800     PUSH32(esp, ebp); /* 0x47088A06: push ebp */
   1801     PUSH32(esp, esi); /* 0x47088A07: push esi */
   1802     PUSH32(esp, edi); /* 0x47088A08: push edi */
   1803     esi = ecx; /* 0x47088A09: mov esi, ecx */
   1804     ebx = MEM32(esp + 0x20); /* 0x47088A0B: mov ebx, dword ptr [esp + 0x20] */
   1805     PUSH32(esp, ebx); /* 0x47088A0F: push ebx */
   1806     MEM32(esp + 0x1C) = 0; /* 0x47088A10: mov dword ptr [esp + 0x1c], 0 */
   1807     RECOMP_ICALL(0x47088C20u); /* 0x47088A18: call 0x47088c20 */ /* not lifted */
   1808     RECOMP_FLAGS_IN();
   1809     /* test eax, eax */ /* 0x47088A1D: test eax, eax */
   1810     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1811     _cf = 0;
   1812     _flag_k = FK_TEST;
   1813     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088A83; /* 0x47088A1F: jne 0x47088a83 */
   1814 L_47088A21:
   1815     eax = MEM32(esp + 0x24); /* 0x47088A21: mov eax, dword ptr [esp + 0x24] */
   1816     ebp = MEM32(eax); /* 0x47088A25: mov ebp, dword ptr [eax] */
   1817     /* cmp MEM32(esi), 0 */ /* 0x47088A27: cmp dword ptr [esi], 0 */
   1818     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0);
   1819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1820     _flag_k = FK_CMP;
   1821     if (CMP_NE(_flag_a, _flag_b)) goto L_47088A31; /* 0x47088A2A: jne 0x47088a31 */
   1822 L_47088A2C:
   1823     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1824     eax = eax | 0xFFFFFFFFu; /* 0x47088A2C: or eax, 0xffffffff */
   1825     _cf = 0;
   1826     _flag_k = FK_TEST;
   1827     goto L_47088A91; /* 0x47088A2F: jmp 0x47088a91 */
   1828 L_47088A31:
   1829     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1830     ecx = ecx | 0xFFFFFFFFu; /* 0x47088A31: or ecx, 0xffffffff */
   1831     _cf = 0;
   1832     _flag_k = FK_TEST;
   1833     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1834     eax = 0; /* 0x47088A34: xor eax, eax */
   1835     _cf = 0;
   1836     _flag_k = FK_TEST;
   1837     edi = ebx; /* 0x47088A36: mov edi, ebx */
   1838     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; } /* 0x47088A38: repne scasb al, byte ptr es:[edi] */
   1839     ecx = ~ecx; /* 0x47088A3A: not ecx */
   1840     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   1841     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1842     ecx = ecx + 0x10u; /* 0x47088A3C: add ecx, 0x10 */
   1843     _flag_k = FK_ADD;
   1844     PUSH32(esp, ecx); /* 0x47088A3F: push ecx */
   1845     ecx = esi; /* 0x47088A40: mov ecx, esi */
   1846     RECOMP_ICALL(0x47088D00u); /* 0x47088A42: call 0x47088d00 */ /* not lifted */
   1847     RECOMP_FLAGS_IN();
   1848     /* test eax, eax */ /* 0x47088A47: test eax, eax */
   1849     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1850     _cf = 0;
   1851     _flag_k = FK_TEST;
   1852     MEM32(esp + 0x24) = eax; /* 0x47088A49: mov dword ptr [esp + 0x24], eax */
   1853     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088A60; /* 0x47088A4D: jne 0x47088a60 */
   1854 L_47088A4F:
   1855     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47088A4F: call dword ptr [0x470ac3c8] */
   1856     RECOMP_FLAGS_IN();
   1857     MEM32(eax) = 0xCu; /* 0x47088A55: mov dword ptr [eax], 0xc */
   1858     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1859     eax = eax | 0xFFFFFFFFu; /* 0x47088A5B: or eax, 0xffffffff */
   1860     _cf = 0;
   1861     _flag_k = FK_TEST;
   1862     goto L_47088A91; /* 0x47088A5E: jmp 0x47088a91 */
   1863 L_47088A60:
   1864     ecx = eax + 0x10; /* 0x47088A60: lea ecx, [eax + 0x10] */
   1865     MEM32(esp + 0x20) = eax; /* 0x47088A63: mov dword ptr [esp + 0x20], eax */
   1866     edx = MEM32(esi); /* 0x47088A67: mov edx, dword ptr [esi] */
   1867     edx = MEM32(edx); /* 0x47088A69: mov edx, dword ptr [edx] */
   1868     PUSH32(esp, edx); /* 0x47088A6B: push edx */
   1869     PUSH32(esp, ebp); /* 0x47088A6C: push ebp */
   1870     PUSH32(esp, ecx); /* 0x47088A6D: push ecx */
   1871     PUSH32(esp, ebx); /* 0x47088A6E: push ebx */
   1872     ecx = eax; /* 0x47088A6F: mov ecx, eax */
   1873     MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47088A71: mov byte ptr [esp + 0x28], 1 */
   1874     RECOMP_ICALL(0x4703CB50u); /* 0x47088A76: call 0x4703cb50 */ /* not lifted */
   1875     RECOMP_FLAGS_IN();
   1876     ecx = MEM32(esi); /* 0x47088A7B: mov ecx, dword ptr [esi] */
   1877     MEM32(ecx) = eax; /* 0x47088A7D: mov dword ptr [ecx], eax */
   1878     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1879     eax = 0; /* 0x47088A7F: xor eax, eax */
   1880     _cf = 0;
   1881     _flag_k = FK_TEST;
   1882     goto L_47088A91; /* 0x47088A81: jmp 0x47088a91 */
   1883 L_47088A83:
   1884     edx = MEM32(eax + 0x4); /* 0x47088A83: mov edx, dword ptr [eax + 4] */
   1885     eax = MEM32(esp + 0x24); /* 0x47088A86: mov eax, dword ptr [esp + 0x24] */
   1886     MEM32(eax) = edx; /* 0x47088A8A: mov dword ptr [eax], edx */
   1887     eax = 1; /* 0x47088A8C: mov eax, 1 */
   1888 L_47088A91:
   1889     ecx = MEM32(esp + 0x10); /* 0x47088A91: mov ecx, dword ptr [esp + 0x10] */
   1890     edi = POP32_VAL(esp); /* 0x47088A95: pop edi */
   1891     esi = POP32_VAL(esp); /* 0x47088A96: pop esi */
   1892     ebp = POP32_VAL(esp); /* 0x47088A97: pop ebp */
   1893     MEM32(FS_BASE + (0)) = ecx; /* 0x47088A98: mov dword ptr fs:[0], ecx */
   1894     ebx = POP32_VAL(esp); /* 0x47088A9F: pop ebx */
   1895     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1896     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1897     esp = esp + 0xCu; /* 0x47088AA0: add esp, 0xc */
   1898     _flag_k = FK_ADD;
   1899     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47088AA3: ret 8 */
   1900     RECOMP_REGS_OUT();
   1901 }
   1902 
   1903 void sub_47088AB0(void) {
   1904     int _fpu_cmp = 0;
   1905     uint32_t _cf = 0;
   1906     int _df = 1;
   1907     uint32_t _flag_k = FK_NONE;
   1908     uint32_t _flag_a = 0, _flag_b = 0;
   1909     uint32_t _itail_tgt = 0;
   1910     RECOMP_REGS_LOCALS
   1911     RECOMP_ENTER(0x47088AB0u);
   1912 
   1913 L_47088AB0:
   1914     eax = MEM32(FS_BASE + (0)); /* 0x47088AB0: mov eax, dword ptr fs:[0] */
   1915     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088AB6: push -1 */
   1916     PUSH32(esp, 0x470AA0D8u); /* 0x47088AB8: push 0x470aa0d8 */
   1917     PUSH32(esp, eax); /* 0x47088ABD: push eax */
   1918     MEM32(FS_BASE + (0)) = esp; /* 0x47088ABE: mov dword ptr fs:[0], esp */
   1919     eax = MEM32(esp + 0x10); /* 0x47088AC5: mov eax, dword ptr [esp + 0x10] */
   1920     PUSH32(esp, eax); /* 0x47088AC9: push eax */
   1921     MEM32(esp + 0xC) = 0; /* 0x47088ACA: mov dword ptr [esp + 0xc], 0 */
   1922     RECOMP_ICALL(0x47088C20u); /* 0x47088AD2: call 0x47088c20 */ /* not lifted */
   1923     RECOMP_FLAGS_IN();
   1924     ecx = MEM32(esp); /* 0x47088AD7: mov ecx, dword ptr [esp] */
   1925     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1926     _cf = (eax) != 0;
   1927     eax = (uint32_t)(-(int32_t)eax); /* 0x47088ADB: neg eax */
   1928     _flag_k = FK_CMP;
   1929     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47088ADD: sbb eax, eax */
   1930       eax = _sc ? 0xFFFFFFFFu : 0;
   1931       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1932       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1933     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1934     _cf = (eax) != 0;
   1935     eax = (uint32_t)(-(int32_t)eax); /* 0x47088ADF: neg eax */
   1936     _flag_k = FK_CMP;
   1937     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1938     eax = eax - 1; /* 0x47088AE1: dec eax */
   1939     _flag_k = FK_DEC;
   1940     MEM32(FS_BASE + (0)) = ecx; /* 0x47088AE2: mov dword ptr fs:[0], ecx */
   1941     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1942     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1943     esp = esp + 0xCu; /* 0x47088AE9: add esp, 0xc */
   1944     _flag_k = FK_ADD;
   1945     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088AEC: ret 4 */
   1946     RECOMP_REGS_OUT();
   1947 }
   1948 
   1949 void sub_47088AF0(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(0x47088AF0u);
   1958 
   1959 L_47088AF0:
   1960     eax = MEM32(FS_BASE + (0)); /* 0x47088AF0: mov eax, dword ptr fs:[0] */
   1961     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088AF6: push -1 */
   1962     PUSH32(esp, 0x470AA0F8u); /* 0x47088AF8: push 0x470aa0f8 */
   1963     PUSH32(esp, eax); /* 0x47088AFD: push eax */
   1964     MEM32(FS_BASE + (0)) = esp; /* 0x47088AFE: mov dword ptr fs:[0], esp */
   1965     eax = MEM32(esp + 0x10); /* 0x47088B05: mov eax, dword ptr [esp + 0x10] */
   1966     PUSH32(esp, eax); /* 0x47088B09: push eax */
   1967     MEM32(esp + 0xC) = 0; /* 0x47088B0A: mov dword ptr [esp + 0xc], 0 */
   1968     RECOMP_ICALL(0x47088C20u); /* 0x47088B12: call 0x47088c20 */ /* not lifted */
   1969     RECOMP_FLAGS_IN();
   1970     /* test eax, eax */ /* 0x47088B17: test eax, eax */
   1971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1972     _cf = 0;
   1973     _flag_k = FK_TEST;
   1974     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088B2F; /* 0x47088B19: jne 0x47088b2f */
   1975 L_47088B1B:
   1976     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1977     eax = eax | 0xFFFFFFFFu; /* 0x47088B1B: or eax, 0xffffffff */
   1978     _cf = 0;
   1979     _flag_k = FK_TEST;
   1980     ecx = MEM32(esp); /* 0x47088B1E: mov ecx, dword ptr [esp] */
   1981     MEM32(FS_BASE + (0)) = ecx; /* 0x47088B22: mov dword ptr fs:[0], ecx */
   1982     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1983     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1984     esp = esp + 0xCu; /* 0x47088B29: add esp, 0xc */
   1985     _flag_k = FK_ADD;
   1986     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47088B2C: ret 8 */
   1987 L_47088B2F:
   1988     ecx = MEM32(eax + 0x4); /* 0x47088B2F: mov ecx, dword ptr [eax + 4] */
   1989     edx = MEM32(esp + 0x14); /* 0x47088B32: mov edx, dword ptr [esp + 0x14] */
   1990     MEM32(edx) = ecx; /* 0x47088B36: mov dword ptr [edx], ecx */
   1991     ecx = MEM32(esp); /* 0x47088B38: mov ecx, dword ptr [esp] */
   1992     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1993     eax = 0; /* 0x47088B3C: xor eax, eax */
   1994     _cf = 0;
   1995     _flag_k = FK_TEST;
   1996     MEM32(FS_BASE + (0)) = ecx; /* 0x47088B3E: mov dword ptr fs:[0], ecx */
   1997     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1998     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1999     esp = esp + 0xCu; /* 0x47088B45: add esp, 0xc */
   2000     _flag_k = FK_ADD;
   2001     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47088B48: ret 8 */
   2002     RECOMP_REGS_OUT();
   2003 }
   2004 
   2005 void sub_47088B50(void) {
   2006     int _fpu_cmp = 0;
   2007     uint32_t _cf = 0;
   2008     int _df = 1;
   2009     uint32_t _flag_k = FK_NONE;
   2010     uint32_t _flag_a = 0, _flag_b = 0;
   2011     uint32_t _itail_tgt = 0;
   2012     RECOMP_REGS_LOCALS
   2013     RECOMP_ENTER(0x47088B50u);
   2014 
   2015 L_47088B50:
   2016     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088B50: push -1 */
   2017     PUSH32(esp, 0x470AA118u); /* 0x47088B52: push 0x470aa118 */
   2018     eax = MEM32(FS_BASE + (0)); /* 0x47088B57: mov eax, dword ptr fs:[0] */
   2019     PUSH32(esp, eax); /* 0x47088B5D: push eax */
   2020     MEM32(FS_BASE + (0)) = esp; /* 0x47088B5E: mov dword ptr fs:[0], esp */
   2021     PUSH32(esp, ecx); /* 0x47088B65: push ecx */
   2022     PUSH32(esp, ebx); /* 0x47088B66: push ebx */
   2023     PUSH32(esp, ebp); /* 0x47088B67: push ebp */
   2024     PUSH32(esp, esi); /* 0x47088B68: push esi */
   2025     PUSH32(esp, edi); /* 0x47088B69: push edi */
   2026     MEM32(esp + 0x10) = ecx; /* 0x47088B6A: mov dword ptr [esp + 0x10], ecx */
   2027     eax = MEM32(ecx); /* 0x47088B6E: mov eax, dword ptr [ecx] */
   2028     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2029     ebp = 0; /* 0x47088B70: xor ebp, ebp */
   2030     _cf = 0;
   2031     _flag_k = FK_TEST;
   2032     /* cmp eax, ebp */ /* 0x47088B72: cmp eax, ebp */
   2033     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   2034     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2035     _flag_k = FK_CMP;
   2036     MEM32(esp + 0x1C) = ebp; /* 0x47088B74: mov dword ptr [esp + 0x1c], ebp */
   2037     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088BC3; /* 0x47088B78: je 0x47088bc3 */
   2038 L_47088B7A:
   2039     edi = MEM32(eax); /* 0x47088B7A: mov edi, dword ptr [eax] */
   2040     /* cmp edi, ebp */ /* 0x47088B7C: cmp edi, ebp */
   2041     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp);
   2042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2043     _flag_k = FK_CMP;
   2044     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088BC3; /* 0x47088B7E: je 0x47088bc3 */
   2045 L_47088B80:
   2046     ebx = MEM32(esp + 0x24); /* 0x47088B80: mov ebx, dword ptr [esp + 0x24] */
   2047 L_47088B84:
   2048     ecx = edi; /* 0x47088B84: mov ecx, edi */
   2049     RECOMP_ICALL(0x4708EA50u); /* 0x47088B86: call 0x4708ea50 */ /* not lifted */
   2050     RECOMP_FLAGS_IN();
   2051     esi = ebx; /* 0x47088B8B: mov esi, ebx */
   2052 L_47088B8D:
   2053     SET_LO8(edx, MEM8(eax)); /* 0x47088B8D: mov dl, byte ptr [eax] */
   2054     SET_LO8(ecx, LO8(edx)); /* 0x47088B8F: mov cl, dl */
   2055     /* cmp LO8(edx), MEM8(esi) */ /* 0x47088B91: cmp dl, byte ptr [esi] */
   2056     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   2057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2058     _flag_k = FK_NARROW(FK_CMP, 24);
   2059     if (CMP_NE(_flag_a, _flag_b)) goto L_47088BB1; /* 0x47088B93: jne 0x47088bb1 */
   2060 L_47088B95:
   2061     /* test LO8(ecx), LO8(ecx) */ /* 0x47088B95: test cl, cl */
   2062     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2063     _cf = 0;
   2064     _flag_k = FK_NARROW(FK_TEST, 24);
   2065     if (TEST_Z(_flag_a, _flag_b)) goto L_47088BAD; /* 0x47088B97: je 0x47088bad */
   2066 L_47088B99:
   2067     SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47088B99: mov dl, byte ptr [eax + 1] */
   2068     SET_LO8(ecx, LO8(edx)); /* 0x47088B9C: mov cl, dl */
   2069     /* cmp LO8(edx), MEM8(esi + 0x1) */ /* 0x47088B9E: cmp dl, byte ptr [esi + 1] */
   2070     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   2071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2072     _flag_k = FK_NARROW(FK_CMP, 24);
   2073     if (CMP_NE(_flag_a, _flag_b)) goto L_47088BB1; /* 0x47088BA1: jne 0x47088bb1 */
   2074 L_47088BA3:
   2075     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   2076     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2077     eax = eax + 2; /* 0x47088BA3: add eax, 2 */
   2078     _flag_k = FK_ADD;
   2079     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   2080     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2081     esi = esi + 2; /* 0x47088BA6: add esi, 2 */
   2082     _flag_k = FK_ADD;
   2083     /* test LO8(ecx), LO8(ecx) */ /* 0x47088BA9: test cl, cl */
   2084     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2085     _cf = 0;
   2086     _flag_k = FK_NARROW(FK_TEST, 24);
   2087     RECOMP_BACKEDGE();
   2088     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088B8D; /* 0x47088BAB: jne 0x47088b8d */
   2089 L_47088BAD:
   2090     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2091     eax = 0; /* 0x47088BAD: xor eax, eax */
   2092     _cf = 0;
   2093     _flag_k = FK_TEST;
   2094     goto L_47088BB6; /* 0x47088BAF: jmp 0x47088bb6 */
   2095 L_47088BB1:
   2096     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47088BB1: sbb eax, eax */
   2097       eax = _sc ? 0xFFFFFFFFu : 0;
   2098       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2099       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2100     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47088BB3: sbb eax, -1 */
   2101       eax = _sa - _sb - _sc;
   2102       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2103       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2104 L_47088BB6:
   2105     /* test eax, eax */ /* 0x47088BB6: test eax, eax */
   2106     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2107     _cf = 0;
   2108     _flag_k = FK_TEST;
   2109     if (TEST_Z(_flag_a, _flag_b)) goto L_47088BDB; /* 0x47088BB8: je 0x47088bdb */
   2110 L_47088BBA:
   2111     ebp = edi; /* 0x47088BBA: mov ebp, edi */
   2112     edi = MEM32(edi + 0x8); /* 0x47088BBC: mov edi, dword ptr [edi + 8] */
   2113     /* test edi, edi */ /* 0x47088BBF: test edi, edi */
   2114     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2115     _cf = 0;
   2116     _flag_k = FK_TEST;
   2117     RECOMP_BACKEDGE();
   2118     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088B84; /* 0x47088BC1: jne 0x47088b84 */
   2119 L_47088BC3:
   2120     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2121     eax = eax | 0xFFFFFFFFu; /* 0x47088BC3: or eax, 0xffffffff */
   2122     _cf = 0;
   2123     _flag_k = FK_TEST;
   2124 L_47088BC6:
   2125     ecx = MEM32(esp + 0x14); /* 0x47088BC6: mov ecx, dword ptr [esp + 0x14] */
   2126     edi = POP32_VAL(esp); /* 0x47088BCA: pop edi */
   2127     esi = POP32_VAL(esp); /* 0x47088BCB: pop esi */
   2128     ebp = POP32_VAL(esp); /* 0x47088BCC: pop ebp */
   2129     ebx = POP32_VAL(esp); /* 0x47088BCD: pop ebx */
   2130     MEM32(FS_BASE + (0)) = ecx; /* 0x47088BCE: mov dword ptr fs:[0], ecx */
   2131     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2132     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2133     esp = esp + 0x10u; /* 0x47088BD5: add esp, 0x10 */
   2134     _flag_k = FK_ADD;
   2135     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47088BD8: ret 8 */
   2136 L_47088BDB:
   2137     /* test ebp, ebp */ /* 0x47088BDB: test ebp, ebp */
   2138     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   2139     _cf = 0;
   2140     _flag_k = FK_TEST;
   2141     eax = MEM32(edi + 0x4); /* 0x47088BDD: mov eax, dword ptr [edi + 4] */
   2142     ecx = MEM32(esp + 0x28); /* 0x47088BE0: mov ecx, dword ptr [esp + 0x28] */
   2143     MEM32(ecx) = eax; /* 0x47088BE4: mov dword ptr [ecx], eax */
   2144     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088BF5; /* 0x47088BE6: jne 0x47088bf5 */
   2145 L_47088BE8:
   2146     edx = MEM32(esp + 0x10); /* 0x47088BE8: mov edx, dword ptr [esp + 0x10] */
   2147     eax = MEM32(edx); /* 0x47088BEC: mov eax, dword ptr [edx] */
   2148     ecx = MEM32(edi + 0x8); /* 0x47088BEE: mov ecx, dword ptr [edi + 8] */
   2149     MEM32(eax) = ecx; /* 0x47088BF1: mov dword ptr [eax], ecx */
   2150     goto L_47088BFB; /* 0x47088BF3: jmp 0x47088bfb */
   2151 L_47088BF5:
   2152     edx = MEM32(edi + 0x8); /* 0x47088BF5: mov edx, dword ptr [edi + 8] */
   2153     MEM32(ebp + 0x8) = edx; /* 0x47088BF8: mov dword ptr [ebp + 8], edx */
   2154 L_47088BFB:
   2155     eax = MEM32(edi + 0x8); /* 0x47088BFB: mov eax, dword ptr [edi + 8] */
   2156     /* test eax, eax */ /* 0x47088BFE: test eax, eax */
   2157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2158     _cf = 0;
   2159     _flag_k = FK_TEST;
   2160     if (TEST_Z(_flag_a, _flag_b)) goto L_47088C05; /* 0x47088C00: je 0x47088c05 */
   2161 L_47088C02:
   2162     MEM32(eax + 0xC) = ebp; /* 0x47088C02: mov dword ptr [eax + 0xc], ebp */
   2163 L_47088C05:
   2164     ecx = MEM32(esp + 0x10); /* 0x47088C05: mov ecx, dword ptr [esp + 0x10] */
   2165     PUSH32(esp, edi); /* 0x47088C09: push edi */
   2166     RECOMP_ICALL(0x47088F10u); /* 0x47088C0A: call 0x47088f10 */ /* not lifted */
   2167     RECOMP_FLAGS_IN();
   2168     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2169     eax = 0; /* 0x47088C0F: xor eax, eax */
   2170     _cf = 0;
   2171     _flag_k = FK_TEST;
   2172     RECOMP_BACKEDGE();
   2173     goto L_47088BC6; /* 0x47088C11: jmp 0x47088bc6 */
   2174     { RECOMP_REGS_OUT(); return; } /* end of function */
   2175     RECOMP_REGS_OUT();
   2176 }
   2177 
   2178 void sub_47088C20(void) {
   2179     int _fpu_cmp = 0;
   2180     uint32_t _cf = 0;
   2181     int _df = 1;
   2182     uint32_t _flag_k = FK_NONE;
   2183     uint32_t _flag_a = 0, _flag_b = 0;
   2184     uint32_t _itail_tgt = 0;
   2185     RECOMP_REGS_LOCALS
   2186     RECOMP_ENTER(0x47088C20u);
   2187 
   2188 L_47088C20:
   2189     PUSH32(esp, ebp); /* 0x47088C20: push ebp */
   2190     ebp = esp; /* 0x47088C21: mov ebp, esp */
   2191     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088C23: push -1 */
   2192     PUSH32(esp, 0x470AFCD8u); /* 0x47088C25: push 0x470afcd8 */
   2193     PUSH32(esp, 0x470A34B2u); /* 0x47088C2A: push 0x470a34b2 */
   2194     eax = MEM32(FS_BASE + (0)); /* 0x47088C2F: mov eax, dword ptr fs:[0] */
   2195     PUSH32(esp, eax); /* 0x47088C35: push eax */
   2196     MEM32(FS_BASE + (0)) = esp; /* 0x47088C36: mov dword ptr fs:[0], esp */
   2197     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2199     esp = esp - 0x14u; /* 0x47088C3D: sub esp, 0x14 */
   2200     _flag_k = FK_CMP;
   2201     PUSH32(esp, ebx); /* 0x47088C40: push ebx */
   2202     PUSH32(esp, esi); /* 0x47088C41: push esi */
   2203     PUSH32(esp, edi); /* 0x47088C42: push edi */
   2204     MEM32(ebp + (-0x18)) = esp; /* 0x47088C43: mov dword ptr [ebp - 0x18], esp */
   2205     MEM32(ebp + (-0x24)) = ecx; /* 0x47088C46: mov dword ptr [ebp - 0x24], ecx */
   2206     eax = MEM32(ecx); /* 0x47088C49: mov eax, dword ptr [ecx] */
   2207     /* test eax, eax */ /* 0x47088C4B: test eax, eax */
   2208     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2209     _cf = 0;
   2210     _flag_k = FK_TEST;
   2211     if (TEST_Z(_flag_a, _flag_b)) goto L_47088CDD; /* 0x47088C4D: je 0x47088cdd */
   2212 L_47088C53:
   2213     MEM32(ebp + (-0x4)) = 0; /* 0x47088C53: mov dword ptr [ebp - 4], 0 */
   2214     edi = MEM32(eax); /* 0x47088C5A: mov edi, dword ptr [eax] */
   2215     MEM32(ebp + (-0x1C)) = edi; /* 0x47088C5C: mov dword ptr [ebp - 0x1c], edi */
   2216     ebx = MEM32(ebp + 0x8); /* 0x47088C5F: mov ebx, dword ptr [ebp + 8] */
   2217 L_47088C62:
   2218     /* test edi, edi */ /* 0x47088C62: test edi, edi */
   2219     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2220     _cf = 0;
   2221     _flag_k = FK_TEST;
   2222     if (TEST_Z(_flag_a, _flag_b)) goto L_47088CD6; /* 0x47088C64: je 0x47088cd6 */
   2223 L_47088C66:
   2224     ecx = edi; /* 0x47088C66: mov ecx, edi */
   2225     RECOMP_ICALL(0x4708EA50u); /* 0x47088C68: call 0x4708ea50 */ /* not lifted */
   2226     RECOMP_FLAGS_IN();
   2227     MEM32(ebp + (-0x20)) = eax; /* 0x47088C6D: mov dword ptr [ebp - 0x20], eax */
   2228     esi = ebx; /* 0x47088C70: mov esi, ebx */
   2229 L_47088C72:
   2230     SET_LO8(edx, MEM8(eax)); /* 0x47088C72: mov dl, byte ptr [eax] */
   2231     SET_LO8(ecx, LO8(edx)); /* 0x47088C74: mov cl, dl */
   2232     /* cmp LO8(edx), MEM8(esi) */ /* 0x47088C76: cmp dl, byte ptr [esi] */
   2233     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24;
   2234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2235     _flag_k = FK_NARROW(FK_CMP, 24);
   2236     if (CMP_NE(_flag_a, _flag_b)) goto L_47088C96; /* 0x47088C78: jne 0x47088c96 */
   2237 L_47088C7A:
   2238     /* test LO8(ecx), LO8(ecx) */ /* 0x47088C7A: test cl, cl */
   2239     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2240     _cf = 0;
   2241     _flag_k = FK_NARROW(FK_TEST, 24);
   2242     if (TEST_Z(_flag_a, _flag_b)) goto L_47088C92; /* 0x47088C7C: je 0x47088c92 */
   2243 L_47088C7E:
   2244     SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47088C7E: mov dl, byte ptr [eax + 1] */
   2245     SET_LO8(ecx, LO8(edx)); /* 0x47088C81: mov cl, dl */
   2246     /* cmp LO8(edx), MEM8(esi + 0x1) */ /* 0x47088C83: cmp dl, byte ptr [esi + 1] */
   2247     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24;
   2248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2249     _flag_k = FK_NARROW(FK_CMP, 24);
   2250     if (CMP_NE(_flag_a, _flag_b)) goto L_47088C96; /* 0x47088C86: jne 0x47088c96 */
   2251 L_47088C88:
   2252     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   2253     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2254     eax = eax + 2; /* 0x47088C88: add eax, 2 */
   2255     _flag_k = FK_ADD;
   2256     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   2257     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2258     esi = esi + 2; /* 0x47088C8B: add esi, 2 */
   2259     _flag_k = FK_ADD;
   2260     /* test LO8(ecx), LO8(ecx) */ /* 0x47088C8E: test cl, cl */
   2261     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2262     _cf = 0;
   2263     _flag_k = FK_NARROW(FK_TEST, 24);
   2264     RECOMP_BACKEDGE();
   2265     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088C72; /* 0x47088C90: jne 0x47088c72 */
   2266 L_47088C92:
   2267     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2268     eax = 0; /* 0x47088C92: xor eax, eax */
   2269     _cf = 0;
   2270     _flag_k = FK_TEST;
   2271     goto L_47088C9B; /* 0x47088C94: jmp 0x47088c9b */
   2272 L_47088C96:
   2273     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47088C96: sbb eax, eax */
   2274       eax = _sc ? 0xFFFFFFFFu : 0;
   2275       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2276       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2277     { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47088C98: sbb eax, -1 */
   2278       eax = _sa - _sb - _sc;
   2279       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2280       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2281 L_47088C9B:
   2282     /* test eax, eax */ /* 0x47088C9B: test eax, eax */
   2283     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2284     _cf = 0;
   2285     _flag_k = FK_TEST;
   2286     if (TEST_NZ(_flag_a, _flag_b)) goto L_47088CBB; /* 0x47088C9D: jne 0x47088cbb */
   2287 L_47088C9F:
   2288     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088C9F: mov dword ptr [ebp - 4], 0xffffffff */
   2289     eax = edi; /* 0x47088CA6: mov eax, edi */
   2290     ecx = MEM32(ebp + (-0x10)); /* 0x47088CA8: mov ecx, dword ptr [ebp - 0x10] */
   2291     MEM32(FS_BASE + (0)) = ecx; /* 0x47088CAB: mov dword ptr fs:[0], ecx */
   2292     edi = POP32_VAL(esp); /* 0x47088CB2: pop edi */
   2293     esi = POP32_VAL(esp); /* 0x47088CB3: pop esi */
   2294     ebx = POP32_VAL(esp); /* 0x47088CB4: pop ebx */
   2295     esp = ebp; /* 0x47088CB5: mov esp, ebp */
   2296     ebp = POP32_VAL(esp); /* 0x47088CB7: pop ebp */
   2297     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088CB8: ret 4 */
   2298 L_47088CBB:
   2299     edi = MEM32(edi + 0x8); /* 0x47088CBB: mov edi, dword ptr [edi + 8] */
   2300     MEM32(ebp + (-0x1C)) = edi; /* 0x47088CBE: mov dword ptr [ebp - 0x1c], edi */
   2301     RECOMP_BACKEDGE();
   2302     goto L_47088C62; /* 0x47088CC1: jmp 0x47088c62 */
   2303 L_47088CD6:
   2304     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088CD6: mov dword ptr [ebp - 4], 0xffffffff */
   2305 L_47088CDD:
   2306     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2307     eax = 0; /* 0x47088CDD: xor eax, eax */
   2308     _cf = 0;
   2309     _flag_k = FK_TEST;
   2310     ecx = MEM32(ebp + (-0x10)); /* 0x47088CDF: mov ecx, dword ptr [ebp - 0x10] */
   2311     MEM32(FS_BASE + (0)) = ecx; /* 0x47088CE2: mov dword ptr fs:[0], ecx */
   2312     edi = POP32_VAL(esp); /* 0x47088CE9: pop edi */
   2313     esi = POP32_VAL(esp); /* 0x47088CEA: pop esi */
   2314     ebx = POP32_VAL(esp); /* 0x47088CEB: pop ebx */
   2315     esp = ebp; /* 0x47088CEC: mov esp, ebp */
   2316     ebp = POP32_VAL(esp); /* 0x47088CEE: pop ebp */
   2317     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088CEF: ret 4 */
   2318     RECOMP_REGS_OUT();
   2319 }
   2320 
   2321 void sub_47088CC3(void) {
   2322     int _fpu_cmp = 0;
   2323     uint32_t _cf = 0;
   2324     int _df = 1;
   2325     uint32_t _flag_k = FK_NONE;
   2326     uint32_t _flag_a = 0, _flag_b = 0;
   2327     uint32_t _itail_tgt = 0;
   2328     RECOMP_REGS_LOCALS
   2329     RECOMP_ENTER(0x47088CC3u);
   2330 
   2331 L_47088CC3:
   2332     eax = MEM32(ebp + (-0x24)); /* 0x47088CC3: mov eax, dword ptr [ebp - 0x24] */
   2333     ecx = eax + 0x4; /* 0x47088CC6: lea ecx, [eax + 4] */
   2334     edx = MEM32(ecx); /* 0x47088CC9: mov edx, dword ptr [ecx] */
   2335     eax = MEM32(ebp + (-0x14)); /* 0x47088CCB: mov eax, dword ptr [ebp - 0x14] */
   2336     PUSH32(esp, eax); /* 0x47088CCE: push eax */
   2337     RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x47088CCF: call dword ptr [edx + 0x5c] */
   2338     RECOMP_FLAGS_IN();
   2339     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088CD2: ret  */
   2340     RECOMP_REGS_OUT();
   2341 }
   2342 
   2343 void sub_47088CD3(void) {
   2344     int _fpu_cmp = 0;
   2345     uint32_t _cf = 0;
   2346     int _df = 1;
   2347     uint32_t _flag_k = FK_NONE;
   2348     uint32_t _flag_a = 0, _flag_b = 0;
   2349     uint32_t _itail_tgt = 0;
   2350     RECOMP_REGS_LOCALS
   2351     RECOMP_ENTER(0x47088CD3u);
   2352 
   2353 L_47088CD3:
   2354     esp = MEM32(ebp + (-0x18)); /* 0x47088CD3: mov esp, dword ptr [ebp - 0x18] */
   2355     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088CD6: mov dword ptr [ebp - 4], 0xffffffff */
   2356     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2357     eax = 0; /* 0x47088CDD: xor eax, eax */
   2358     _cf = 0;
   2359     _flag_k = FK_TEST;
   2360     ecx = MEM32(ebp + (-0x10)); /* 0x47088CDF: mov ecx, dword ptr [ebp - 0x10] */
   2361     MEM32(FS_BASE + (0)) = ecx; /* 0x47088CE2: mov dword ptr fs:[0], ecx */
   2362     edi = POP32_VAL(esp); /* 0x47088CE9: pop edi */
   2363     esi = POP32_VAL(esp); /* 0x47088CEA: pop esi */
   2364     ebx = POP32_VAL(esp); /* 0x47088CEB: pop ebx */
   2365     esp = ebp; /* 0x47088CEC: mov esp, ebp */
   2366     ebp = POP32_VAL(esp); /* 0x47088CEE: pop ebp */
   2367     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088CEF: ret 4 */
   2368     RECOMP_REGS_OUT();
   2369 }
   2370 
   2371 void sub_47088CD6(void) {
   2372     int _fpu_cmp = 0;
   2373     uint32_t _cf = 0;
   2374     int _df = 1;
   2375     uint32_t _flag_k = FK_NONE;
   2376     uint32_t _flag_a = 0, _flag_b = 0;
   2377     uint32_t _itail_tgt = 0;
   2378     RECOMP_REGS_LOCALS
   2379     RECOMP_ENTER(0x47088CD6u);
   2380 
   2381 L_47088CD6:
   2382     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088CD6: mov dword ptr [ebp - 4], 0xffffffff */
   2383     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2384     eax = 0; /* 0x47088CDD: xor eax, eax */
   2385     _cf = 0;
   2386     _flag_k = FK_TEST;
   2387     ecx = MEM32(ebp + (-0x10)); /* 0x47088CDF: mov ecx, dword ptr [ebp - 0x10] */
   2388     MEM32(FS_BASE + (0)) = ecx; /* 0x47088CE2: mov dword ptr fs:[0], ecx */
   2389     edi = POP32_VAL(esp); /* 0x47088CE9: pop edi */
   2390     esi = POP32_VAL(esp); /* 0x47088CEA: pop esi */
   2391     ebx = POP32_VAL(esp); /* 0x47088CEB: pop ebx */
   2392     esp = ebp; /* 0x47088CEC: mov esp, ebp */
   2393     ebp = POP32_VAL(esp); /* 0x47088CEE: pop ebp */
   2394     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088CEF: ret 4 */
   2395     RECOMP_REGS_OUT();
   2396 }
   2397 
   2398 void sub_47088CDD(void) {
   2399     int _fpu_cmp = 0;
   2400     uint32_t _cf = 0;
   2401     int _df = 1;
   2402     uint32_t _flag_k = FK_NONE;
   2403     uint32_t _flag_a = 0, _flag_b = 0;
   2404     uint32_t _itail_tgt = 0;
   2405     RECOMP_REGS_LOCALS
   2406     RECOMP_ENTER(0x47088CDDu);
   2407 
   2408 L_47088CDD:
   2409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2410     eax = 0; /* 0x47088CDD: xor eax, eax */
   2411     _cf = 0;
   2412     _flag_k = FK_TEST;
   2413     ecx = MEM32(ebp + (-0x10)); /* 0x47088CDF: mov ecx, dword ptr [ebp - 0x10] */
   2414     MEM32(FS_BASE + (0)) = ecx; /* 0x47088CE2: mov dword ptr fs:[0], ecx */
   2415     edi = POP32_VAL(esp); /* 0x47088CE9: pop edi */
   2416     esi = POP32_VAL(esp); /* 0x47088CEA: pop esi */
   2417     ebx = POP32_VAL(esp); /* 0x47088CEB: pop ebx */
   2418     esp = ebp; /* 0x47088CEC: mov esp, ebp */
   2419     ebp = POP32_VAL(esp); /* 0x47088CEE: pop ebp */
   2420     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088CEF: ret 4 */
   2421     RECOMP_REGS_OUT();
   2422 }
   2423 
   2424 void sub_47088D00(void) {
   2425     int _fpu_cmp = 0;
   2426     uint32_t _cf = 0;
   2427     int _df = 1;
   2428     uint32_t _flag_k = FK_NONE;
   2429     uint32_t _flag_a = 0, _flag_b = 0;
   2430     uint32_t _itail_tgt = 0;
   2431     RECOMP_REGS_LOCALS
   2432     RECOMP_ENTER(0x47088D00u);
   2433 
   2434 L_47088D00:
   2435     PUSH32(esp, ebp); /* 0x47088D00: push ebp */
   2436     ebp = esp; /* 0x47088D01: mov ebp, esp */
   2437     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088D03: push -1 */
   2438     PUSH32(esp, 0x470AFCE8u); /* 0x47088D05: push 0x470afce8 */
   2439     PUSH32(esp, 0x470A34B2u); /* 0x47088D0A: push 0x470a34b2 */
   2440     eax = MEM32(FS_BASE + (0)); /* 0x47088D0F: mov eax, dword ptr fs:[0] */
   2441     PUSH32(esp, eax); /* 0x47088D15: push eax */
   2442     MEM32(FS_BASE + (0)) = esp; /* 0x47088D16: mov dword ptr fs:[0], esp */
   2443     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
   2444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2445     esp = esp - 0x34u; /* 0x47088D1D: sub esp, 0x34 */
   2446     _flag_k = FK_CMP;
   2447     PUSH32(esp, ebx); /* 0x47088D20: push ebx */
   2448     PUSH32(esp, esi); /* 0x47088D21: push esi */
   2449     PUSH32(esp, edi); /* 0x47088D22: push edi */
   2450     MEM32(ebp + (-0x18)) = esp; /* 0x47088D23: mov dword ptr [ebp - 0x18], esp */
   2451     esi = ecx; /* 0x47088D26: mov esi, ecx */
   2452     MEM32(ebp + (-0x44)) = esi; /* 0x47088D28: mov dword ptr [ebp - 0x44], esi */
   2453     ecx = MEM32(esi); /* 0x47088D2B: mov ecx, dword ptr [esi] */
   2454     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2455     ebx = 0; /* 0x47088D2D: xor ebx, ebx */
   2456     _cf = 0;
   2457     _flag_k = FK_TEST;
   2458     /* cmp ecx, ebx */ /* 0x47088D2F: cmp ecx, ebx */
   2459     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2461     _flag_k = FK_CMP;
   2462     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088ED9; /* 0x47088D31: je 0x47088ed9 */
   2463 L_47088D37:
   2464     eax = MEM32(ebp + 0x8); /* 0x47088D37: mov eax, dword ptr [ebp + 8] */
   2465     edx = eax + 0xB; /* 0x47088D3A: lea edx, [eax + 0xb] */
   2466     eax = 0xAAAAAAABu; /* 0x47088D3D: mov eax, 0xaaaaaaab */
   2467     { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x47088D42: mul edx */
   2468       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
   2469       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2470     edi = edx; /* 0x47088D44: mov edi, edx */
   2471     if (3u) _cf = (((edi) >> 2) & 1u); /* 0x47088D46: shr edi, 3 */
   2472     if (3u) { _flag_a = recomp_flags_pack((edi >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2473     edi = edi >> 3u; /* 0x47088D46: shr edi, 3 */
   2474     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2475     edi = edi + 1; /* 0x47088D49: inc edi */
   2476     _flag_k = FK_INC;
   2477     MEM32(ebp + (-0x24)) = edi; /* 0x47088D4A: mov dword ptr [ebp - 0x24], edi */
   2478     MEM32(ebp + (-0x20)) = ebx; /* 0x47088D4D: mov dword ptr [ebp - 0x20], ebx */
   2479     MEM32(ebp + (-0x1C)) = ebx; /* 0x47088D50: mov dword ptr [ebp - 0x1c], ebx */
   2480     MEM32(ebp + (-0x4)) = ebx; /* 0x47088D53: mov dword ptr [ebp - 4], ebx */
   2481     edx = MEM32(ecx + 0x4); /* 0x47088D56: mov edx, dword ptr [ecx + 4] */
   2482     MEM32(ebp + (-0x20)) = edx; /* 0x47088D59: mov dword ptr [ebp - 0x20], edx */
   2483     eax = MEM32(edx); /* 0x47088D5C: mov eax, dword ptr [edx] */
   2484     MEM32(ebp + (-0x1C)) = eax; /* 0x47088D5E: mov dword ptr [ebp - 0x1c], eax */
   2485     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088D61: mov dword ptr [ebp - 4], 0xffffffff */
   2486     goto L_47088D92; /* 0x47088D68: jmp 0x47088d92 */
   2487 L_47088D92:
   2488     MEM32(ebp + (-0x4)) = 1; /* 0x47088D92: mov dword ptr [ebp - 4], 1 */
   2489     ecx = MEM32(eax + 0x4); /* 0x47088D99: mov ecx, dword ptr [eax + 4] */
   2490     /* cmp ecx, edi */ /* 0x47088D9C: cmp ecx, edi */
   2491     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2493     _flag_k = FK_CMP;
   2494     if (CMP_B(_flag_a, _flag_b)) goto L_47088E02; /* 0x47088D9E: jb 0x47088e02 */
   2495 L_47088DA0:
   2496     if (CMP_NE(_flag_a, _flag_b)) goto L_47088DC8; /* 0x47088DA0: jne 0x47088dc8 */
   2497 L_47088DA2:
   2498     ecx = MEM32(eax); /* 0x47088DA2: mov ecx, dword ptr [eax] */
   2499     MEM32(edx) = ecx; /* 0x47088DA4: mov dword ptr [edx], ecx */
   2500     ecx = MEM32(esi); /* 0x47088DA6: mov ecx, dword ptr [esi] */
   2501     MEM32(ecx + 0x4) = edx; /* 0x47088DA8: mov dword ptr [ecx + 4], edx */
   2502     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2504     eax = eax + 0xCu; /* 0x47088DAB: add eax, 0xc */
   2505     _flag_k = FK_ADD;
   2506     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088DAE: mov dword ptr [ebp - 4], 0xffffffff */
   2507     ecx = MEM32(ebp + (-0x10)); /* 0x47088DB5: mov ecx, dword ptr [ebp - 0x10] */
   2508     MEM32(FS_BASE + (0)) = ecx; /* 0x47088DB8: mov dword ptr fs:[0], ecx */
   2509     edi = POP32_VAL(esp); /* 0x47088DBF: pop edi */
   2510     esi = POP32_VAL(esp); /* 0x47088DC0: pop esi */
   2511     ebx = POP32_VAL(esp); /* 0x47088DC1: pop ebx */
   2512     esp = ebp; /* 0x47088DC2: mov esp, ebp */
   2513     ebp = POP32_VAL(esp); /* 0x47088DC4: pop ebp */
   2514     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088DC5: ret 4 */
   2515 L_47088DC8:
   2516     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2518     ecx = ecx - edi; /* 0x47088DC8: sub ecx, edi */
   2519     _flag_k = FK_CMP;
   2520     MEM32(eax + 0x4) = ecx; /* 0x47088DCA: mov dword ptr [eax + 4], ecx */
   2521     ecx = ecx + ecx * 2; /* 0x47088DCD: lea ecx, [ecx + ecx*2] */
   2522     eax = eax + ecx * 4; /* 0x47088DD0: lea eax, [eax + ecx*4] */
   2523     MEM32(ebp + (-0x1C)) = eax; /* 0x47088DD3: mov dword ptr [ebp - 0x1c], eax */
   2524     ecx = MEM32(esi); /* 0x47088DD6: mov ecx, dword ptr [esi] */
   2525     MEM32(ebp + (-0x34)) = ecx; /* 0x47088DD8: mov dword ptr [ebp - 0x34], ecx */
   2526     MEM32(eax) = ebx; /* 0x47088DDB: mov dword ptr [eax], ebx */
   2527     MEM32(eax + 0x4) = edi; /* 0x47088DDD: mov dword ptr [eax + 4], edi */
   2528     ecx = MEM32(esi); /* 0x47088DE0: mov ecx, dword ptr [esi] */
   2529     MEM32(ecx + 0x4) = edx; /* 0x47088DE2: mov dword ptr [ecx + 4], edx */
   2530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2532     eax = eax + 0xCu; /* 0x47088DE5: add eax, 0xc */
   2533     _flag_k = FK_ADD;
   2534     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088DE8: mov dword ptr [ebp - 4], 0xffffffff */
   2535     ecx = MEM32(ebp + (-0x10)); /* 0x47088DEF: mov ecx, dword ptr [ebp - 0x10] */
   2536     MEM32(FS_BASE + (0)) = ecx; /* 0x47088DF2: mov dword ptr fs:[0], ecx */
   2537     edi = POP32_VAL(esp); /* 0x47088DF9: pop edi */
   2538     esi = POP32_VAL(esp); /* 0x47088DFA: pop esi */
   2539     ebx = POP32_VAL(esp); /* 0x47088DFB: pop ebx */
   2540     esp = ebp; /* 0x47088DFC: mov esp, ebp */
   2541     ebp = POP32_VAL(esp); /* 0x47088DFE: pop ebp */
   2542     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088DFF: ret 4 */
   2543 L_47088E02:
   2544     edx = MEM32(esi); /* 0x47088E02: mov edx, dword ptr [esi] */
   2545     /* cmp eax, MEM32(edx + 0x4) */ /* 0x47088E04: cmp eax, dword ptr [edx + 4] */
   2546     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2548     _flag_k = FK_CMP;
   2549     if (CMP_NE(_flag_a, _flag_b)) goto L_47088E50; /* 0x47088E07: jne 0x47088e50 */
   2550 L_47088E09:
   2551     MEM32(ebp + (-0x28)) = ebx; /* 0x47088E09: mov dword ptr [ebp - 0x28], ebx */
   2552     ecx = esi + 0x4; /* 0x47088E0C: lea ecx, [esi + 4] */
   2553     eax = MEM32(ecx); /* 0x47088E0F: mov eax, dword ptr [ecx] */
   2554     edx = ebp + (-0x28); /* 0x47088E11: lea edx, [ebp - 0x28] */
   2555     PUSH32(esp, edx); /* 0x47088E14: push edx */
   2556     edx = edi + edi * 2; /* 0x47088E15: lea edx, [edi + edi*2] */
   2557     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x47088E18: shl edx, 2 */
   2558     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2559     edx = edx << 2u; /* 0x47088E18: shl edx, 2 */
   2560     PUSH32(esp, edx); /* 0x47088E1B: push edx */
   2561     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x47088E1C: call dword ptr [eax + 0x44] */
   2562     RECOMP_FLAGS_IN();
   2563     ecx = eax; /* 0x47088E1F: mov ecx, eax */
   2564     MEM32(ebp + (-0x1C)) = ecx; /* 0x47088E21: mov dword ptr [ebp - 0x1c], ecx */
   2565     /* cmp ecx, ebx */ /* 0x47088E24: cmp ecx, ebx */
   2566     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2568     _flag_k = FK_CMP;
   2569     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088E66; /* 0x47088E26: je 0x47088e66 */
   2570 L_47088E28:
   2571     eax = MEM32(esi); /* 0x47088E28: mov eax, dword ptr [esi] */
   2572     MEM32(ebp + (-0x38)) = eax; /* 0x47088E2A: mov dword ptr [ebp - 0x38], eax */
   2573     MEM32(ecx) = ebx; /* 0x47088E2D: mov dword ptr [ecx], ebx */
   2574     eax = 0xAAAAAAABu; /* 0x47088E2F: mov eax, 0xaaaaaaab */
   2575     { uint64_t _r = (uint64_t)eax * (uint32_t)(MEM32(ebp + (-0x28))); /* 0x47088E34: mul dword ptr [ebp - 0x28] */
   2576       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
   2577       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2578     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x47088E37: shr edx, 3 */
   2579     if (3u) { _flag_a = recomp_flags_pack((edx >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2580     edx = edx >> 3u; /* 0x47088E37: shr edx, 3 */
   2581     MEM32(ecx + 0x4) = edx; /* 0x47088E3A: mov dword ptr [ecx + 4], edx */
   2582     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2584     ecx = ecx + 0xCu; /* 0x47088E3D: add ecx, 0xc */
   2585     _flag_k = FK_ADD;
   2586     PUSH32(esp, ecx); /* 0x47088E40: push ecx */
   2587     ecx = esi; /* 0x47088E41: mov ecx, esi */
   2588     RECOMP_ICALL(0x47088F10u); /* 0x47088E43: call 0x47088f10 */ /* not lifted */
   2589     RECOMP_FLAGS_IN();
   2590     ecx = MEM32(esi); /* 0x47088E48: mov ecx, dword ptr [esi] */
   2591     eax = MEM32(ecx + 0x4); /* 0x47088E4A: mov eax, dword ptr [ecx + 4] */
   2592     MEM32(ebp + (-0x1C)) = eax; /* 0x47088E4D: mov dword ptr [ebp - 0x1c], eax */
   2593 L_47088E50:
   2594     edx = eax; /* 0x47088E50: mov edx, eax */
   2595     MEM32(ebp + (-0x20)) = edx; /* 0x47088E52: mov dword ptr [ebp - 0x20], edx */
   2596     eax = MEM32(eax); /* 0x47088E55: mov eax, dword ptr [eax] */
   2597     MEM32(ebp + (-0x1C)) = eax; /* 0x47088E57: mov dword ptr [ebp - 0x1c], eax */
   2598     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088E5A: mov dword ptr [ebp - 4], 0xffffffff */
   2599     RECOMP_BACKEDGE();
   2600     goto L_47088D92; /* 0x47088E61: jmp 0x47088d92 */
   2601 L_47088E66:
   2602     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47088E66: call dword ptr [0x470ac150] */
   2603     RECOMP_FLAGS_IN();
   2604     edi = eax; /* 0x47088E6C: mov edi, eax */
   2605     MEM32(ebp + (-0x3C)) = edi; /* 0x47088E6E: mov dword ptr [ebp - 0x3c], edi */
   2606     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47088E71: call dword ptr [0x470ac3c8] */
   2607     RECOMP_FLAGS_IN();
   2608     eax = MEM32(eax); /* 0x47088E77: mov eax, dword ptr [eax] */
   2609     MEM32(ebp + (-0x40)) = eax; /* 0x47088E79: mov dword ptr [ebp - 0x40], eax */
   2610     /* cmp eax, ebx */ /* 0x47088E7C: cmp eax, ebx */
   2611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2613     _flag_k = FK_CMP;
   2614     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088E82; /* 0x47088E7E: je 0x47088e82 */
   2615 L_47088E80:
   2616     edi = eax; /* 0x47088E80: mov edi, eax */
   2617 L_47088E82:
   2618     MEM32(ebp + (-0x2C)) = edi; /* 0x47088E82: mov dword ptr [ebp - 0x2c], edi */
   2619     RECOMP_ICALL(0x47039020u); /* 0x47088E85: call 0x47039020 */ /* not lifted */
   2620     RECOMP_FLAGS_IN();
   2621     esi = eax; /* 0x47088E8A: mov esi, eax */
   2622     MEM32(ebp + (-0x30)) = esi; /* 0x47088E8C: mov dword ptr [ebp - 0x30], esi */
   2623     ecx = esi; /* 0x47088E8F: mov ecx, esi */
   2624     RECOMP_ICALL(0x4703B210u); /* 0x47088E91: call 0x4703b210 */ /* not lifted */
   2625     RECOMP_FLAGS_IN();
   2626     PUSH32(esp, eax); /* 0x47088E96: push eax */
   2627     ecx = esi; /* 0x47088E97: mov ecx, esi */
   2628     RECOMP_ICALL(0x4703B240u); /* 0x47088E99: call 0x4703b240 */ /* not lifted */
   2629     RECOMP_FLAGS_IN();
   2630     PUSH32(esp, eax); /* 0x47088E9E: push eax */
   2631     ecx = esi; /* 0x47088E9F: mov ecx, esi */
   2632     RECOMP_ICALL(0x4703B080u); /* 0x47088EA1: call 0x4703b080 */ /* not lifted */
   2633     RECOMP_FLAGS_IN();
   2634     PUSH32(esp, eax); /* 0x47088EA6: push eax */
   2635     PUSH32(esp, edi); /* 0x47088EA7: push edi */
   2636     PUSH32(esp, ebx); /* 0x47088EA8: push ebx */
   2637     PUSH32(esp, 0x188u); /* 0x47088EA9: push 0x188 */
   2638     PUSH32(esp, 0x47105B2Cu); /* 0x47088EAE: push 0x47105b2c */
   2639     ecx = esi; /* 0x47088EB3: mov ecx, esi */
   2640     RECOMP_ICALL(0x4703A340u); /* 0x47088EB5: call 0x4703a340 */ /* not lifted */
   2641     RECOMP_FLAGS_IN();
   2642     PUSH32(esp, 0x47105BB8u); /* 0x47088EBA: push 0x47105bb8 */
   2643     PUSH32(esp, 0x47105B0Cu); /* 0x47088EBF: push 0x47105b0c */
   2644     PUSH32(esp, 0x80u); /* 0x47088EC4: push 0x80 */
   2645     PUSH32(esp, esi); /* 0x47088EC9: push esi */
   2646     RECOMP_ICALL(0x47039830u); /* 0x47088ECA: call 0x47039830 */ /* not lifted */
   2647     RECOMP_FLAGS_IN();
   2648     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2649     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2650     esp = esp + 0x10u; /* 0x47088ECF: add esp, 0x10 */
   2651     _flag_k = FK_ADD;
   2652     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088ED2: mov dword ptr [ebp - 4], 0xffffffff */
   2653 L_47088ED9:
   2654     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2655     eax = 0; /* 0x47088ED9: xor eax, eax */
   2656     _cf = 0;
   2657     _flag_k = FK_TEST;
   2658     ecx = MEM32(ebp + (-0x10)); /* 0x47088EDB: mov ecx, dword ptr [ebp - 0x10] */
   2659     MEM32(FS_BASE + (0)) = ecx; /* 0x47088EDE: mov dword ptr fs:[0], ecx */
   2660     edi = POP32_VAL(esp); /* 0x47088EE5: pop edi */
   2661     esi = POP32_VAL(esp); /* 0x47088EE6: pop esi */
   2662     ebx = POP32_VAL(esp); /* 0x47088EE7: pop ebx */
   2663     esp = ebp; /* 0x47088EE8: mov esp, ebp */
   2664     ebp = POP32_VAL(esp); /* 0x47088EEA: pop ebp */
   2665     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088EEB: ret 4 */
   2666     RECOMP_REGS_OUT();
   2667 }
   2668 
   2669 void sub_47088D6A(void) {
   2670     int _fpu_cmp = 0;
   2671     uint32_t _cf = 0;
   2672     int _df = 1;
   2673     uint32_t _flag_k = FK_NONE;
   2674     uint32_t _flag_a = 0, _flag_b = 0;
   2675     uint32_t _itail_tgt = 0;
   2676     RECOMP_REGS_LOCALS
   2677     RECOMP_ENTER(0x47088D6Au);
   2678 
   2679 L_47088D6A:
   2680     eax = MEM32(ebp + (-0x44)); /* 0x47088D6A: mov eax, dword ptr [ebp - 0x44] */
   2681     ecx = eax + 0x4; /* 0x47088D6D: lea ecx, [eax + 4] */
   2682     edx = MEM32(ecx); /* 0x47088D70: mov edx, dword ptr [ecx] */
   2683     eax = MEM32(ebp + (-0x14)); /* 0x47088D72: mov eax, dword ptr [ebp - 0x14] */
   2684     PUSH32(esp, eax); /* 0x47088D75: push eax */
   2685     RECOMP_ICALL(MEM32(edx + 0x5C)); /* 0x47088D76: call dword ptr [edx + 0x5c] */
   2686     RECOMP_FLAGS_IN();
   2687     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088D79: ret  */
   2688     RECOMP_REGS_OUT();
   2689 }
   2690 
   2691 void sub_47088D7A(void) {
   2692     int _fpu_cmp = 0;
   2693     uint32_t _cf = 0;
   2694     int _df = 1;
   2695     uint32_t _flag_k = FK_NONE;
   2696     uint32_t _flag_a = 0, _flag_b = 0;
   2697     uint32_t _itail_tgt = 0;
   2698     RECOMP_REGS_LOCALS
   2699     RECOMP_ENTER(0x47088D7Au);
   2700 
   2701 L_47088D7A:
   2702     esp = MEM32(ebp + (-0x18)); /* 0x47088D7A: mov esp, dword ptr [ebp - 0x18] */
   2703     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088D7D: mov dword ptr [ebp - 4], 0xffffffff */
   2704     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2705     ebx = 0; /* 0x47088D84: xor ebx, ebx */
   2706     _cf = 0;
   2707     _flag_k = FK_TEST;
   2708     esi = MEM32(ebp + (-0x44)); /* 0x47088D86: mov esi, dword ptr [ebp - 0x44] */
   2709     edi = MEM32(ebp + (-0x24)); /* 0x47088D89: mov edi, dword ptr [ebp - 0x24] */
   2710     edx = MEM32(ebp + (-0x20)); /* 0x47088D8C: mov edx, dword ptr [ebp - 0x20] */
   2711     eax = MEM32(ebp + (-0x1C)); /* 0x47088D8F: mov eax, dword ptr [ebp - 0x1c] */
   2712 L_47088D92:
   2713     MEM32(ebp + (-0x4)) = 1; /* 0x47088D92: mov dword ptr [ebp - 4], 1 */
   2714     ecx = MEM32(eax + 0x4); /* 0x47088D99: mov ecx, dword ptr [eax + 4] */
   2715     /* cmp ecx, edi */ /* 0x47088D9C: cmp ecx, edi */
   2716     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2718     _flag_k = FK_CMP;
   2719     if (CMP_B(_flag_a, _flag_b)) goto L_47088E02; /* 0x47088D9E: jb 0x47088e02 */
   2720 L_47088DA0:
   2721     if (CMP_NE(_flag_a, _flag_b)) goto L_47088DC8; /* 0x47088DA0: jne 0x47088dc8 */
   2722 L_47088DA2:
   2723     ecx = MEM32(eax); /* 0x47088DA2: mov ecx, dword ptr [eax] */
   2724     MEM32(edx) = ecx; /* 0x47088DA4: mov dword ptr [edx], ecx */
   2725     ecx = MEM32(esi); /* 0x47088DA6: mov ecx, dword ptr [esi] */
   2726     MEM32(ecx + 0x4) = edx; /* 0x47088DA8: mov dword ptr [ecx + 4], edx */
   2727     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2729     eax = eax + 0xCu; /* 0x47088DAB: add eax, 0xc */
   2730     _flag_k = FK_ADD;
   2731     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088DAE: mov dword ptr [ebp - 4], 0xffffffff */
   2732     ecx = MEM32(ebp + (-0x10)); /* 0x47088DB5: mov ecx, dword ptr [ebp - 0x10] */
   2733     MEM32(FS_BASE + (0)) = ecx; /* 0x47088DB8: mov dword ptr fs:[0], ecx */
   2734     edi = POP32_VAL(esp); /* 0x47088DBF: pop edi */
   2735     esi = POP32_VAL(esp); /* 0x47088DC0: pop esi */
   2736     ebx = POP32_VAL(esp); /* 0x47088DC1: pop ebx */
   2737     esp = ebp; /* 0x47088DC2: mov esp, ebp */
   2738     ebp = POP32_VAL(esp); /* 0x47088DC4: pop ebp */
   2739     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088DC5: ret 4 */
   2740 L_47088DC8:
   2741     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2743     ecx = ecx - edi; /* 0x47088DC8: sub ecx, edi */
   2744     _flag_k = FK_CMP;
   2745     MEM32(eax + 0x4) = ecx; /* 0x47088DCA: mov dword ptr [eax + 4], ecx */
   2746     ecx = ecx + ecx * 2; /* 0x47088DCD: lea ecx, [ecx + ecx*2] */
   2747     eax = eax + ecx * 4; /* 0x47088DD0: lea eax, [eax + ecx*4] */
   2748     MEM32(ebp + (-0x1C)) = eax; /* 0x47088DD3: mov dword ptr [ebp - 0x1c], eax */
   2749     ecx = MEM32(esi); /* 0x47088DD6: mov ecx, dword ptr [esi] */
   2750     MEM32(ebp + (-0x34)) = ecx; /* 0x47088DD8: mov dword ptr [ebp - 0x34], ecx */
   2751     MEM32(eax) = ebx; /* 0x47088DDB: mov dword ptr [eax], ebx */
   2752     MEM32(eax + 0x4) = edi; /* 0x47088DDD: mov dword ptr [eax + 4], edi */
   2753     ecx = MEM32(esi); /* 0x47088DE0: mov ecx, dword ptr [esi] */
   2754     MEM32(ecx + 0x4) = edx; /* 0x47088DE2: mov dword ptr [ecx + 4], edx */
   2755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2756     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2757     eax = eax + 0xCu; /* 0x47088DE5: add eax, 0xc */
   2758     _flag_k = FK_ADD;
   2759     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088DE8: mov dword ptr [ebp - 4], 0xffffffff */
   2760     ecx = MEM32(ebp + (-0x10)); /* 0x47088DEF: mov ecx, dword ptr [ebp - 0x10] */
   2761     MEM32(FS_BASE + (0)) = ecx; /* 0x47088DF2: mov dword ptr fs:[0], ecx */
   2762     edi = POP32_VAL(esp); /* 0x47088DF9: pop edi */
   2763     esi = POP32_VAL(esp); /* 0x47088DFA: pop esi */
   2764     ebx = POP32_VAL(esp); /* 0x47088DFB: pop ebx */
   2765     esp = ebp; /* 0x47088DFC: mov esp, ebp */
   2766     ebp = POP32_VAL(esp); /* 0x47088DFE: pop ebp */
   2767     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088DFF: ret 4 */
   2768 L_47088E02:
   2769     edx = MEM32(esi); /* 0x47088E02: mov edx, dword ptr [esi] */
   2770     /* cmp eax, MEM32(edx + 0x4) */ /* 0x47088E04: cmp eax, dword ptr [edx + 4] */
   2771     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2773     _flag_k = FK_CMP;
   2774     if (CMP_NE(_flag_a, _flag_b)) goto L_47088E50; /* 0x47088E07: jne 0x47088e50 */
   2775 L_47088E09:
   2776     MEM32(ebp + (-0x28)) = ebx; /* 0x47088E09: mov dword ptr [ebp - 0x28], ebx */
   2777     ecx = esi + 0x4; /* 0x47088E0C: lea ecx, [esi + 4] */
   2778     eax = MEM32(ecx); /* 0x47088E0F: mov eax, dword ptr [ecx] */
   2779     edx = ebp + (-0x28); /* 0x47088E11: lea edx, [ebp - 0x28] */
   2780     PUSH32(esp, edx); /* 0x47088E14: push edx */
   2781     edx = edi + edi * 2; /* 0x47088E15: lea edx, [edi + edi*2] */
   2782     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x47088E18: shl edx, 2 */
   2783     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2784     edx = edx << 2u; /* 0x47088E18: shl edx, 2 */
   2785     PUSH32(esp, edx); /* 0x47088E1B: push edx */
   2786     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x47088E1C: call dword ptr [eax + 0x44] */
   2787     RECOMP_FLAGS_IN();
   2788     ecx = eax; /* 0x47088E1F: mov ecx, eax */
   2789     MEM32(ebp + (-0x1C)) = ecx; /* 0x47088E21: mov dword ptr [ebp - 0x1c], ecx */
   2790     /* cmp ecx, ebx */ /* 0x47088E24: cmp ecx, ebx */
   2791     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2792     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2793     _flag_k = FK_CMP;
   2794     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088E66; /* 0x47088E26: je 0x47088e66 */
   2795 L_47088E28:
   2796     eax = MEM32(esi); /* 0x47088E28: mov eax, dword ptr [esi] */
   2797     MEM32(ebp + (-0x38)) = eax; /* 0x47088E2A: mov dword ptr [ebp - 0x38], eax */
   2798     MEM32(ecx) = ebx; /* 0x47088E2D: mov dword ptr [ecx], ebx */
   2799     eax = 0xAAAAAAABu; /* 0x47088E2F: mov eax, 0xaaaaaaab */
   2800     { uint64_t _r = (uint64_t)eax * (uint32_t)(MEM32(ebp + (-0x28))); /* 0x47088E34: mul dword ptr [ebp - 0x28] */
   2801       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
   2802       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2803     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x47088E37: shr edx, 3 */
   2804     if (3u) { _flag_a = recomp_flags_pack((edx >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2805     edx = edx >> 3u; /* 0x47088E37: shr edx, 3 */
   2806     MEM32(ecx + 0x4) = edx; /* 0x47088E3A: mov dword ptr [ecx + 4], edx */
   2807     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2808     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2809     ecx = ecx + 0xCu; /* 0x47088E3D: add ecx, 0xc */
   2810     _flag_k = FK_ADD;
   2811     PUSH32(esp, ecx); /* 0x47088E40: push ecx */
   2812     ecx = esi; /* 0x47088E41: mov ecx, esi */
   2813     RECOMP_ICALL(0x47088F10u); /* 0x47088E43: call 0x47088f10 */ /* not lifted */
   2814     RECOMP_FLAGS_IN();
   2815     ecx = MEM32(esi); /* 0x47088E48: mov ecx, dword ptr [esi] */
   2816     eax = MEM32(ecx + 0x4); /* 0x47088E4A: mov eax, dword ptr [ecx + 4] */
   2817     MEM32(ebp + (-0x1C)) = eax; /* 0x47088E4D: mov dword ptr [ebp - 0x1c], eax */
   2818 L_47088E50:
   2819     edx = eax; /* 0x47088E50: mov edx, eax */
   2820     MEM32(ebp + (-0x20)) = edx; /* 0x47088E52: mov dword ptr [ebp - 0x20], edx */
   2821     eax = MEM32(eax); /* 0x47088E55: mov eax, dword ptr [eax] */
   2822     MEM32(ebp + (-0x1C)) = eax; /* 0x47088E57: mov dword ptr [ebp - 0x1c], eax */
   2823     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088E5A: mov dword ptr [ebp - 4], 0xffffffff */
   2824     RECOMP_BACKEDGE();
   2825     goto L_47088D92; /* 0x47088E61: jmp 0x47088d92 */
   2826 L_47088E66:
   2827     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47088E66: call dword ptr [0x470ac150] */
   2828     RECOMP_FLAGS_IN();
   2829     edi = eax; /* 0x47088E6C: mov edi, eax */
   2830     MEM32(ebp + (-0x3C)) = edi; /* 0x47088E6E: mov dword ptr [ebp - 0x3c], edi */
   2831     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47088E71: call dword ptr [0x470ac3c8] */
   2832     RECOMP_FLAGS_IN();
   2833     eax = MEM32(eax); /* 0x47088E77: mov eax, dword ptr [eax] */
   2834     MEM32(ebp + (-0x40)) = eax; /* 0x47088E79: mov dword ptr [ebp - 0x40], eax */
   2835     /* cmp eax, ebx */ /* 0x47088E7C: cmp eax, ebx */
   2836     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2838     _flag_k = FK_CMP;
   2839     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088E82; /* 0x47088E7E: je 0x47088e82 */
   2840 L_47088E80:
   2841     edi = eax; /* 0x47088E80: mov edi, eax */
   2842 L_47088E82:
   2843     MEM32(ebp + (-0x2C)) = edi; /* 0x47088E82: mov dword ptr [ebp - 0x2c], edi */
   2844     RECOMP_ICALL(0x47039020u); /* 0x47088E85: call 0x47039020 */ /* not lifted */
   2845     RECOMP_FLAGS_IN();
   2846     esi = eax; /* 0x47088E8A: mov esi, eax */
   2847     MEM32(ebp + (-0x30)) = esi; /* 0x47088E8C: mov dword ptr [ebp - 0x30], esi */
   2848     ecx = esi; /* 0x47088E8F: mov ecx, esi */
   2849     RECOMP_ICALL(0x4703B210u); /* 0x47088E91: call 0x4703b210 */ /* not lifted */
   2850     RECOMP_FLAGS_IN();
   2851     PUSH32(esp, eax); /* 0x47088E96: push eax */
   2852     ecx = esi; /* 0x47088E97: mov ecx, esi */
   2853     RECOMP_ICALL(0x4703B240u); /* 0x47088E99: call 0x4703b240 */ /* not lifted */
   2854     RECOMP_FLAGS_IN();
   2855     PUSH32(esp, eax); /* 0x47088E9E: push eax */
   2856     ecx = esi; /* 0x47088E9F: mov ecx, esi */
   2857     RECOMP_ICALL(0x4703B080u); /* 0x47088EA1: call 0x4703b080 */ /* not lifted */
   2858     RECOMP_FLAGS_IN();
   2859     PUSH32(esp, eax); /* 0x47088EA6: push eax */
   2860     PUSH32(esp, edi); /* 0x47088EA7: push edi */
   2861     PUSH32(esp, ebx); /* 0x47088EA8: push ebx */
   2862     PUSH32(esp, 0x188u); /* 0x47088EA9: push 0x188 */
   2863     PUSH32(esp, 0x47105B2Cu); /* 0x47088EAE: push 0x47105b2c */
   2864     ecx = esi; /* 0x47088EB3: mov ecx, esi */
   2865     RECOMP_ICALL(0x4703A340u); /* 0x47088EB5: call 0x4703a340 */ /* not lifted */
   2866     RECOMP_FLAGS_IN();
   2867     PUSH32(esp, 0x47105BB8u); /* 0x47088EBA: push 0x47105bb8 */
   2868     PUSH32(esp, 0x47105B0Cu); /* 0x47088EBF: push 0x47105b0c */
   2869     PUSH32(esp, 0x80u); /* 0x47088EC4: push 0x80 */
   2870     PUSH32(esp, esi); /* 0x47088EC9: push esi */
   2871     RECOMP_ICALL(0x47039830u); /* 0x47088ECA: call 0x47039830 */ /* not lifted */
   2872     RECOMP_FLAGS_IN();
   2873     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2875     esp = esp + 0x10u; /* 0x47088ECF: add esp, 0x10 */
   2876     _flag_k = FK_ADD;
   2877     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088ED2: mov dword ptr [ebp - 4], 0xffffffff */
   2878     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2879     eax = 0; /* 0x47088ED9: xor eax, eax */
   2880     _cf = 0;
   2881     _flag_k = FK_TEST;
   2882     ecx = MEM32(ebp + (-0x10)); /* 0x47088EDB: mov ecx, dword ptr [ebp - 0x10] */
   2883     MEM32(FS_BASE + (0)) = ecx; /* 0x47088EDE: mov dword ptr fs:[0], ecx */
   2884     edi = POP32_VAL(esp); /* 0x47088EE5: pop edi */
   2885     esi = POP32_VAL(esp); /* 0x47088EE6: pop esi */
   2886     ebx = POP32_VAL(esp); /* 0x47088EE7: pop ebx */
   2887     esp = ebp; /* 0x47088EE8: mov esp, ebp */
   2888     ebp = POP32_VAL(esp); /* 0x47088EEA: pop ebp */
   2889     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088EEB: ret 4 */
   2890     RECOMP_REGS_OUT();
   2891 }
   2892 
   2893 void sub_47088D92(void) {
   2894     int _fpu_cmp = 0;
   2895     uint32_t _cf = 0;
   2896     int _df = 1;
   2897     uint32_t _flag_k = FK_NONE;
   2898     uint32_t _flag_a = 0, _flag_b = 0;
   2899     uint32_t _itail_tgt = 0;
   2900     RECOMP_REGS_LOCALS
   2901     RECOMP_ENTER(0x47088D92u);
   2902 
   2903 L_47088D92:
   2904     MEM32(ebp + (-0x4)) = 1; /* 0x47088D92: mov dword ptr [ebp - 4], 1 */
   2905     ecx = MEM32(eax + 0x4); /* 0x47088D99: mov ecx, dword ptr [eax + 4] */
   2906     /* cmp ecx, edi */ /* 0x47088D9C: cmp ecx, edi */
   2907     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2909     _flag_k = FK_CMP;
   2910     if (CMP_B(_flag_a, _flag_b)) goto L_47088E02; /* 0x47088D9E: jb 0x47088e02 */
   2911 L_47088DA0:
   2912     if (CMP_NE(_flag_a, _flag_b)) goto L_47088DC8; /* 0x47088DA0: jne 0x47088dc8 */
   2913 L_47088DA2:
   2914     ecx = MEM32(eax); /* 0x47088DA2: mov ecx, dword ptr [eax] */
   2915     MEM32(edx) = ecx; /* 0x47088DA4: mov dword ptr [edx], ecx */
   2916     ecx = MEM32(esi); /* 0x47088DA6: mov ecx, dword ptr [esi] */
   2917     MEM32(ecx + 0x4) = edx; /* 0x47088DA8: mov dword ptr [ecx + 4], edx */
   2918     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2919     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2920     eax = eax + 0xCu; /* 0x47088DAB: add eax, 0xc */
   2921     _flag_k = FK_ADD;
   2922     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088DAE: mov dword ptr [ebp - 4], 0xffffffff */
   2923     ecx = MEM32(ebp + (-0x10)); /* 0x47088DB5: mov ecx, dword ptr [ebp - 0x10] */
   2924     MEM32(FS_BASE + (0)) = ecx; /* 0x47088DB8: mov dword ptr fs:[0], ecx */
   2925     edi = POP32_VAL(esp); /* 0x47088DBF: pop edi */
   2926     esi = POP32_VAL(esp); /* 0x47088DC0: pop esi */
   2927     ebx = POP32_VAL(esp); /* 0x47088DC1: pop ebx */
   2928     esp = ebp; /* 0x47088DC2: mov esp, ebp */
   2929     ebp = POP32_VAL(esp); /* 0x47088DC4: pop ebp */
   2930     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088DC5: ret 4 */
   2931 L_47088DC8:
   2932     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2934     ecx = ecx - edi; /* 0x47088DC8: sub ecx, edi */
   2935     _flag_k = FK_CMP;
   2936     MEM32(eax + 0x4) = ecx; /* 0x47088DCA: mov dword ptr [eax + 4], ecx */
   2937     ecx = ecx + ecx * 2; /* 0x47088DCD: lea ecx, [ecx + ecx*2] */
   2938     eax = eax + ecx * 4; /* 0x47088DD0: lea eax, [eax + ecx*4] */
   2939     MEM32(ebp + (-0x1C)) = eax; /* 0x47088DD3: mov dword ptr [ebp - 0x1c], eax */
   2940     ecx = MEM32(esi); /* 0x47088DD6: mov ecx, dword ptr [esi] */
   2941     MEM32(ebp + (-0x34)) = ecx; /* 0x47088DD8: mov dword ptr [ebp - 0x34], ecx */
   2942     MEM32(eax) = ebx; /* 0x47088DDB: mov dword ptr [eax], ebx */
   2943     MEM32(eax + 0x4) = edi; /* 0x47088DDD: mov dword ptr [eax + 4], edi */
   2944     ecx = MEM32(esi); /* 0x47088DE0: mov ecx, dword ptr [esi] */
   2945     MEM32(ecx + 0x4) = edx; /* 0x47088DE2: mov dword ptr [ecx + 4], edx */
   2946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2947     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2948     eax = eax + 0xCu; /* 0x47088DE5: add eax, 0xc */
   2949     _flag_k = FK_ADD;
   2950     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088DE8: mov dword ptr [ebp - 4], 0xffffffff */
   2951     ecx = MEM32(ebp + (-0x10)); /* 0x47088DEF: mov ecx, dword ptr [ebp - 0x10] */
   2952     MEM32(FS_BASE + (0)) = ecx; /* 0x47088DF2: mov dword ptr fs:[0], ecx */
   2953     edi = POP32_VAL(esp); /* 0x47088DF9: pop edi */
   2954     esi = POP32_VAL(esp); /* 0x47088DFA: pop esi */
   2955     ebx = POP32_VAL(esp); /* 0x47088DFB: pop ebx */
   2956     esp = ebp; /* 0x47088DFC: mov esp, ebp */
   2957     ebp = POP32_VAL(esp); /* 0x47088DFE: pop ebp */
   2958     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088DFF: ret 4 */
   2959 L_47088E02:
   2960     edx = MEM32(esi); /* 0x47088E02: mov edx, dword ptr [esi] */
   2961     /* cmp eax, MEM32(edx + 0x4) */ /* 0x47088E04: cmp eax, dword ptr [edx + 4] */
   2962     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2964     _flag_k = FK_CMP;
   2965     if (CMP_NE(_flag_a, _flag_b)) goto L_47088E50; /* 0x47088E07: jne 0x47088e50 */
   2966 L_47088E09:
   2967     MEM32(ebp + (-0x28)) = ebx; /* 0x47088E09: mov dword ptr [ebp - 0x28], ebx */
   2968     ecx = esi + 0x4; /* 0x47088E0C: lea ecx, [esi + 4] */
   2969     eax = MEM32(ecx); /* 0x47088E0F: mov eax, dword ptr [ecx] */
   2970     edx = ebp + (-0x28); /* 0x47088E11: lea edx, [ebp - 0x28] */
   2971     PUSH32(esp, edx); /* 0x47088E14: push edx */
   2972     edx = edi + edi * 2; /* 0x47088E15: lea edx, [edi + edi*2] */
   2973     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x47088E18: shl edx, 2 */
   2974     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2975     edx = edx << 2u; /* 0x47088E18: shl edx, 2 */
   2976     PUSH32(esp, edx); /* 0x47088E1B: push edx */
   2977     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x47088E1C: call dword ptr [eax + 0x44] */
   2978     RECOMP_FLAGS_IN();
   2979     ecx = eax; /* 0x47088E1F: mov ecx, eax */
   2980     MEM32(ebp + (-0x1C)) = ecx; /* 0x47088E21: mov dword ptr [ebp - 0x1c], ecx */
   2981     /* cmp ecx, ebx */ /* 0x47088E24: cmp ecx, ebx */
   2982     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2984     _flag_k = FK_CMP;
   2985     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088E66; /* 0x47088E26: je 0x47088e66 */
   2986 L_47088E28:
   2987     eax = MEM32(esi); /* 0x47088E28: mov eax, dword ptr [esi] */
   2988     MEM32(ebp + (-0x38)) = eax; /* 0x47088E2A: mov dword ptr [ebp - 0x38], eax */
   2989     MEM32(ecx) = ebx; /* 0x47088E2D: mov dword ptr [ecx], ebx */
   2990     eax = 0xAAAAAAABu; /* 0x47088E2F: mov eax, 0xaaaaaaab */
   2991     { uint64_t _r = (uint64_t)eax * (uint32_t)(MEM32(ebp + (-0x28))); /* 0x47088E34: mul dword ptr [ebp - 0x28] */
   2992       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
   2993       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2994     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x47088E37: shr edx, 3 */
   2995     if (3u) { _flag_a = recomp_flags_pack((edx >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2996     edx = edx >> 3u; /* 0x47088E37: shr edx, 3 */
   2997     MEM32(ecx + 0x4) = edx; /* 0x47088E3A: mov dword ptr [ecx + 4], edx */
   2998     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2999     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3000     ecx = ecx + 0xCu; /* 0x47088E3D: add ecx, 0xc */
   3001     _flag_k = FK_ADD;
   3002     PUSH32(esp, ecx); /* 0x47088E40: push ecx */
   3003     ecx = esi; /* 0x47088E41: mov ecx, esi */
   3004     RECOMP_ICALL(0x47088F10u); /* 0x47088E43: call 0x47088f10 */ /* not lifted */
   3005     RECOMP_FLAGS_IN();
   3006     ecx = MEM32(esi); /* 0x47088E48: mov ecx, dword ptr [esi] */
   3007     eax = MEM32(ecx + 0x4); /* 0x47088E4A: mov eax, dword ptr [ecx + 4] */
   3008     MEM32(ebp + (-0x1C)) = eax; /* 0x47088E4D: mov dword ptr [ebp - 0x1c], eax */
   3009 L_47088E50:
   3010     edx = eax; /* 0x47088E50: mov edx, eax */
   3011     MEM32(ebp + (-0x20)) = edx; /* 0x47088E52: mov dword ptr [ebp - 0x20], edx */
   3012     eax = MEM32(eax); /* 0x47088E55: mov eax, dword ptr [eax] */
   3013     MEM32(ebp + (-0x1C)) = eax; /* 0x47088E57: mov dword ptr [ebp - 0x1c], eax */
   3014     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088E5A: mov dword ptr [ebp - 4], 0xffffffff */
   3015     RECOMP_BACKEDGE();
   3016     goto L_47088D92; /* 0x47088E61: jmp 0x47088d92 */
   3017 L_47088E66:
   3018     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47088E66: call dword ptr [0x470ac150] */
   3019     RECOMP_FLAGS_IN();
   3020     edi = eax; /* 0x47088E6C: mov edi, eax */
   3021     MEM32(ebp + (-0x3C)) = edi; /* 0x47088E6E: mov dword ptr [ebp - 0x3c], edi */
   3022     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47088E71: call dword ptr [0x470ac3c8] */
   3023     RECOMP_FLAGS_IN();
   3024     eax = MEM32(eax); /* 0x47088E77: mov eax, dword ptr [eax] */
   3025     MEM32(ebp + (-0x40)) = eax; /* 0x47088E79: mov dword ptr [ebp - 0x40], eax */
   3026     /* cmp eax, ebx */ /* 0x47088E7C: cmp eax, ebx */
   3027     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3028     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3029     _flag_k = FK_CMP;
   3030     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088E82; /* 0x47088E7E: je 0x47088e82 */
   3031 L_47088E80:
   3032     edi = eax; /* 0x47088E80: mov edi, eax */
   3033 L_47088E82:
   3034     MEM32(ebp + (-0x2C)) = edi; /* 0x47088E82: mov dword ptr [ebp - 0x2c], edi */
   3035     RECOMP_ICALL(0x47039020u); /* 0x47088E85: call 0x47039020 */ /* not lifted */
   3036     RECOMP_FLAGS_IN();
   3037     esi = eax; /* 0x47088E8A: mov esi, eax */
   3038     MEM32(ebp + (-0x30)) = esi; /* 0x47088E8C: mov dword ptr [ebp - 0x30], esi */
   3039     ecx = esi; /* 0x47088E8F: mov ecx, esi */
   3040     RECOMP_ICALL(0x4703B210u); /* 0x47088E91: call 0x4703b210 */ /* not lifted */
   3041     RECOMP_FLAGS_IN();
   3042     PUSH32(esp, eax); /* 0x47088E96: push eax */
   3043     ecx = esi; /* 0x47088E97: mov ecx, esi */
   3044     RECOMP_ICALL(0x4703B240u); /* 0x47088E99: call 0x4703b240 */ /* not lifted */
   3045     RECOMP_FLAGS_IN();
   3046     PUSH32(esp, eax); /* 0x47088E9E: push eax */
   3047     ecx = esi; /* 0x47088E9F: mov ecx, esi */
   3048     RECOMP_ICALL(0x4703B080u); /* 0x47088EA1: call 0x4703b080 */ /* not lifted */
   3049     RECOMP_FLAGS_IN();
   3050     PUSH32(esp, eax); /* 0x47088EA6: push eax */
   3051     PUSH32(esp, edi); /* 0x47088EA7: push edi */
   3052     PUSH32(esp, ebx); /* 0x47088EA8: push ebx */
   3053     PUSH32(esp, 0x188u); /* 0x47088EA9: push 0x188 */
   3054     PUSH32(esp, 0x47105B2Cu); /* 0x47088EAE: push 0x47105b2c */
   3055     ecx = esi; /* 0x47088EB3: mov ecx, esi */
   3056     RECOMP_ICALL(0x4703A340u); /* 0x47088EB5: call 0x4703a340 */ /* not lifted */
   3057     RECOMP_FLAGS_IN();
   3058     PUSH32(esp, 0x47105BB8u); /* 0x47088EBA: push 0x47105bb8 */
   3059     PUSH32(esp, 0x47105B0Cu); /* 0x47088EBF: push 0x47105b0c */
   3060     PUSH32(esp, 0x80u); /* 0x47088EC4: push 0x80 */
   3061     PUSH32(esp, esi); /* 0x47088EC9: push esi */
   3062     RECOMP_ICALL(0x47039830u); /* 0x47088ECA: call 0x47039830 */ /* not lifted */
   3063     RECOMP_FLAGS_IN();
   3064     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3065     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3066     esp = esp + 0x10u; /* 0x47088ECF: add esp, 0x10 */
   3067     _flag_k = FK_ADD;
   3068     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088ED2: mov dword ptr [ebp - 4], 0xffffffff */
   3069     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3070     eax = 0; /* 0x47088ED9: xor eax, eax */
   3071     _cf = 0;
   3072     _flag_k = FK_TEST;
   3073     ecx = MEM32(ebp + (-0x10)); /* 0x47088EDB: mov ecx, dword ptr [ebp - 0x10] */
   3074     MEM32(FS_BASE + (0)) = ecx; /* 0x47088EDE: mov dword ptr fs:[0], ecx */
   3075     edi = POP32_VAL(esp); /* 0x47088EE5: pop edi */
   3076     esi = POP32_VAL(esp); /* 0x47088EE6: pop esi */
   3077     ebx = POP32_VAL(esp); /* 0x47088EE7: pop ebx */
   3078     esp = ebp; /* 0x47088EE8: mov esp, ebp */
   3079     ebp = POP32_VAL(esp); /* 0x47088EEA: pop ebp */
   3080     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088EEB: ret 4 */
   3081     RECOMP_REGS_OUT();
   3082 }
   3083 
   3084 void sub_47088ED9(void) {
   3085     int _fpu_cmp = 0;
   3086     uint32_t _cf = 0;
   3087     int _df = 1;
   3088     uint32_t _flag_k = FK_NONE;
   3089     uint32_t _flag_a = 0, _flag_b = 0;
   3090     uint32_t _itail_tgt = 0;
   3091     RECOMP_REGS_LOCALS
   3092     RECOMP_ENTER(0x47088ED9u);
   3093 
   3094 L_47088ED9:
   3095     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3096     eax = 0; /* 0x47088ED9: xor eax, eax */
   3097     _cf = 0;
   3098     _flag_k = FK_TEST;
   3099     ecx = MEM32(ebp + (-0x10)); /* 0x47088EDB: mov ecx, dword ptr [ebp - 0x10] */
   3100     MEM32(FS_BASE + (0)) = ecx; /* 0x47088EDE: mov dword ptr fs:[0], ecx */
   3101     edi = POP32_VAL(esp); /* 0x47088EE5: pop edi */
   3102     esi = POP32_VAL(esp); /* 0x47088EE6: pop esi */
   3103     ebx = POP32_VAL(esp); /* 0x47088EE7: pop ebx */
   3104     esp = ebp; /* 0x47088EE8: mov esp, ebp */
   3105     ebp = POP32_VAL(esp); /* 0x47088EEA: pop ebp */
   3106     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088EEB: ret 4 */
   3107     RECOMP_REGS_OUT();
   3108 }
   3109 
   3110 void sub_47088EEE(void) {
   3111     int _fpu_cmp = 0;
   3112     uint32_t _cf = 0;
   3113     int _df = 1;
   3114     uint32_t _flag_k = FK_NONE;
   3115     uint32_t _flag_a = 0, _flag_b = 0;
   3116     uint32_t _itail_tgt = 0;
   3117     RECOMP_REGS_LOCALS
   3118     RECOMP_ENTER(0x47088EEEu);
   3119 
   3120 L_47088EEE:
   3121     edx = MEM32(ebp + (-0x44)); /* 0x47088EEE: mov edx, dword ptr [ebp - 0x44] */
   3122     ecx = edx + 0x4; /* 0x47088EF1: lea ecx, [edx + 4] */
   3123     eax = MEM32(ecx); /* 0x47088EF4: mov eax, dword ptr [ecx] */
   3124     edx = MEM32(ebp + (-0x14)); /* 0x47088EF6: mov edx, dword ptr [ebp - 0x14] */
   3125     PUSH32(esp, edx); /* 0x47088EF9: push edx */
   3126     RECOMP_ICALL(MEM32(eax + 0x5C)); /* 0x47088EFA: call dword ptr [eax + 0x5c] */
   3127     RECOMP_FLAGS_IN();
   3128     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088EFD: ret  */
   3129     RECOMP_REGS_OUT();
   3130 }
   3131 
   3132 void sub_47088EFE(void) {
   3133     int _fpu_cmp = 0;
   3134     uint32_t _cf = 0;
   3135     int _df = 1;
   3136     uint32_t _flag_k = FK_NONE;
   3137     uint32_t _flag_a = 0, _flag_b = 0;
   3138     uint32_t _itail_tgt = 0;
   3139     RECOMP_REGS_LOCALS
   3140     RECOMP_ENTER(0x47088EFEu);
   3141 
   3142     goto L_47088EFE;
   3143 L_47088D7A:
   3144     esp = MEM32(ebp + (-0x18)); /* 0x47088D7A: mov esp, dword ptr [ebp - 0x18] */
   3145     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088D7D: mov dword ptr [ebp - 4], 0xffffffff */
   3146     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3147     ebx = 0; /* 0x47088D84: xor ebx, ebx */
   3148     _cf = 0;
   3149     _flag_k = FK_TEST;
   3150     esi = MEM32(ebp + (-0x44)); /* 0x47088D86: mov esi, dword ptr [ebp - 0x44] */
   3151     edi = MEM32(ebp + (-0x24)); /* 0x47088D89: mov edi, dword ptr [ebp - 0x24] */
   3152     edx = MEM32(ebp + (-0x20)); /* 0x47088D8C: mov edx, dword ptr [ebp - 0x20] */
   3153     eax = MEM32(ebp + (-0x1C)); /* 0x47088D8F: mov eax, dword ptr [ebp - 0x1c] */
   3154 L_47088D92:
   3155     MEM32(ebp + (-0x4)) = 1; /* 0x47088D92: mov dword ptr [ebp - 4], 1 */
   3156     ecx = MEM32(eax + 0x4); /* 0x47088D99: mov ecx, dword ptr [eax + 4] */
   3157     /* cmp ecx, edi */ /* 0x47088D9C: cmp ecx, edi */
   3158     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3160     _flag_k = FK_CMP;
   3161     if (CMP_B(_flag_a, _flag_b)) goto L_47088E02; /* 0x47088D9E: jb 0x47088e02 */
   3162 L_47088DA0:
   3163     if (CMP_NE(_flag_a, _flag_b)) goto L_47088DC8; /* 0x47088DA0: jne 0x47088dc8 */
   3164 L_47088DA2:
   3165     ecx = MEM32(eax); /* 0x47088DA2: mov ecx, dword ptr [eax] */
   3166     MEM32(edx) = ecx; /* 0x47088DA4: mov dword ptr [edx], ecx */
   3167     ecx = MEM32(esi); /* 0x47088DA6: mov ecx, dword ptr [esi] */
   3168     MEM32(ecx + 0x4) = edx; /* 0x47088DA8: mov dword ptr [ecx + 4], edx */
   3169     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3170     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3171     eax = eax + 0xCu; /* 0x47088DAB: add eax, 0xc */
   3172     _flag_k = FK_ADD;
   3173     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088DAE: mov dword ptr [ebp - 4], 0xffffffff */
   3174     ecx = MEM32(ebp + (-0x10)); /* 0x47088DB5: mov ecx, dword ptr [ebp - 0x10] */
   3175     MEM32(FS_BASE + (0)) = ecx; /* 0x47088DB8: mov dword ptr fs:[0], ecx */
   3176     edi = POP32_VAL(esp); /* 0x47088DBF: pop edi */
   3177     esi = POP32_VAL(esp); /* 0x47088DC0: pop esi */
   3178     ebx = POP32_VAL(esp); /* 0x47088DC1: pop ebx */
   3179     esp = ebp; /* 0x47088DC2: mov esp, ebp */
   3180     ebp = POP32_VAL(esp); /* 0x47088DC4: pop ebp */
   3181     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088DC5: ret 4 */
   3182 L_47088DC8:
   3183     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3184     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3185     ecx = ecx - edi; /* 0x47088DC8: sub ecx, edi */
   3186     _flag_k = FK_CMP;
   3187     MEM32(eax + 0x4) = ecx; /* 0x47088DCA: mov dword ptr [eax + 4], ecx */
   3188     ecx = ecx + ecx * 2; /* 0x47088DCD: lea ecx, [ecx + ecx*2] */
   3189     eax = eax + ecx * 4; /* 0x47088DD0: lea eax, [eax + ecx*4] */
   3190     MEM32(ebp + (-0x1C)) = eax; /* 0x47088DD3: mov dword ptr [ebp - 0x1c], eax */
   3191     ecx = MEM32(esi); /* 0x47088DD6: mov ecx, dword ptr [esi] */
   3192     MEM32(ebp + (-0x34)) = ecx; /* 0x47088DD8: mov dword ptr [ebp - 0x34], ecx */
   3193     MEM32(eax) = ebx; /* 0x47088DDB: mov dword ptr [eax], ebx */
   3194     MEM32(eax + 0x4) = edi; /* 0x47088DDD: mov dword ptr [eax + 4], edi */
   3195     ecx = MEM32(esi); /* 0x47088DE0: mov ecx, dword ptr [esi] */
   3196     MEM32(ecx + 0x4) = edx; /* 0x47088DE2: mov dword ptr [ecx + 4], edx */
   3197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3198     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3199     eax = eax + 0xCu; /* 0x47088DE5: add eax, 0xc */
   3200     _flag_k = FK_ADD;
   3201     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088DE8: mov dword ptr [ebp - 4], 0xffffffff */
   3202     ecx = MEM32(ebp + (-0x10)); /* 0x47088DEF: mov ecx, dword ptr [ebp - 0x10] */
   3203     MEM32(FS_BASE + (0)) = ecx; /* 0x47088DF2: mov dword ptr fs:[0], ecx */
   3204     edi = POP32_VAL(esp); /* 0x47088DF9: pop edi */
   3205     esi = POP32_VAL(esp); /* 0x47088DFA: pop esi */
   3206     ebx = POP32_VAL(esp); /* 0x47088DFB: pop ebx */
   3207     esp = ebp; /* 0x47088DFC: mov esp, ebp */
   3208     ebp = POP32_VAL(esp); /* 0x47088DFE: pop ebp */
   3209     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088DFF: ret 4 */
   3210 L_47088E02:
   3211     edx = MEM32(esi); /* 0x47088E02: mov edx, dword ptr [esi] */
   3212     /* cmp eax, MEM32(edx + 0x4) */ /* 0x47088E04: cmp eax, dword ptr [edx + 4] */
   3213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3215     _flag_k = FK_CMP;
   3216     if (CMP_NE(_flag_a, _flag_b)) goto L_47088E50; /* 0x47088E07: jne 0x47088e50 */
   3217 L_47088E09:
   3218     MEM32(ebp + (-0x28)) = ebx; /* 0x47088E09: mov dword ptr [ebp - 0x28], ebx */
   3219     ecx = esi + 0x4; /* 0x47088E0C: lea ecx, [esi + 4] */
   3220     eax = MEM32(ecx); /* 0x47088E0F: mov eax, dword ptr [ecx] */
   3221     edx = ebp + (-0x28); /* 0x47088E11: lea edx, [ebp - 0x28] */
   3222     PUSH32(esp, edx); /* 0x47088E14: push edx */
   3223     edx = edi + edi * 2; /* 0x47088E15: lea edx, [edi + edi*2] */
   3224     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x47088E18: shl edx, 2 */
   3225     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3226     edx = edx << 2u; /* 0x47088E18: shl edx, 2 */
   3227     PUSH32(esp, edx); /* 0x47088E1B: push edx */
   3228     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x47088E1C: call dword ptr [eax + 0x44] */
   3229     RECOMP_FLAGS_IN();
   3230     ecx = eax; /* 0x47088E1F: mov ecx, eax */
   3231     MEM32(ebp + (-0x1C)) = ecx; /* 0x47088E21: mov dword ptr [ebp - 0x1c], ecx */
   3232     /* cmp ecx, ebx */ /* 0x47088E24: cmp ecx, ebx */
   3233     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   3234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3235     _flag_k = FK_CMP;
   3236     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088E66; /* 0x47088E26: je 0x47088e66 */
   3237 L_47088E28:
   3238     eax = MEM32(esi); /* 0x47088E28: mov eax, dword ptr [esi] */
   3239     MEM32(ebp + (-0x38)) = eax; /* 0x47088E2A: mov dword ptr [ebp - 0x38], eax */
   3240     MEM32(ecx) = ebx; /* 0x47088E2D: mov dword ptr [ecx], ebx */
   3241     eax = 0xAAAAAAABu; /* 0x47088E2F: mov eax, 0xaaaaaaab */
   3242     { uint64_t _r = (uint64_t)eax * (uint32_t)(MEM32(ebp + (-0x28))); /* 0x47088E34: mul dword ptr [ebp - 0x28] */
   3243       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
   3244       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3245     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x47088E37: shr edx, 3 */
   3246     if (3u) { _flag_a = recomp_flags_pack((edx >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3247     edx = edx >> 3u; /* 0x47088E37: shr edx, 3 */
   3248     MEM32(ecx + 0x4) = edx; /* 0x47088E3A: mov dword ptr [ecx + 4], edx */
   3249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   3250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3251     ecx = ecx + 0xCu; /* 0x47088E3D: add ecx, 0xc */
   3252     _flag_k = FK_ADD;
   3253     PUSH32(esp, ecx); /* 0x47088E40: push ecx */
   3254     ecx = esi; /* 0x47088E41: mov ecx, esi */
   3255     RECOMP_ICALL(0x47088F10u); /* 0x47088E43: call 0x47088f10 */ /* not lifted */
   3256     RECOMP_FLAGS_IN();
   3257     ecx = MEM32(esi); /* 0x47088E48: mov ecx, dword ptr [esi] */
   3258     eax = MEM32(ecx + 0x4); /* 0x47088E4A: mov eax, dword ptr [ecx + 4] */
   3259     MEM32(ebp + (-0x1C)) = eax; /* 0x47088E4D: mov dword ptr [ebp - 0x1c], eax */
   3260 L_47088E50:
   3261     edx = eax; /* 0x47088E50: mov edx, eax */
   3262     MEM32(ebp + (-0x20)) = edx; /* 0x47088E52: mov dword ptr [ebp - 0x20], edx */
   3263     eax = MEM32(eax); /* 0x47088E55: mov eax, dword ptr [eax] */
   3264     MEM32(ebp + (-0x1C)) = eax; /* 0x47088E57: mov dword ptr [ebp - 0x1c], eax */
   3265     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088E5A: mov dword ptr [ebp - 4], 0xffffffff */
   3266     RECOMP_BACKEDGE();
   3267     goto L_47088D92; /* 0x47088E61: jmp 0x47088d92 */
   3268 L_47088E66:
   3269     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47088E66: call dword ptr [0x470ac150] */
   3270     RECOMP_FLAGS_IN();
   3271     edi = eax; /* 0x47088E6C: mov edi, eax */
   3272     MEM32(ebp + (-0x3C)) = edi; /* 0x47088E6E: mov dword ptr [ebp - 0x3c], edi */
   3273     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47088E71: call dword ptr [0x470ac3c8] */
   3274     RECOMP_FLAGS_IN();
   3275     eax = MEM32(eax); /* 0x47088E77: mov eax, dword ptr [eax] */
   3276     MEM32(ebp + (-0x40)) = eax; /* 0x47088E79: mov dword ptr [ebp - 0x40], eax */
   3277     /* cmp eax, ebx */ /* 0x47088E7C: cmp eax, ebx */
   3278     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3280     _flag_k = FK_CMP;
   3281     if (CMP_EQ(_flag_a, _flag_b)) goto L_47088E82; /* 0x47088E7E: je 0x47088e82 */
   3282 L_47088E80:
   3283     edi = eax; /* 0x47088E80: mov edi, eax */
   3284 L_47088E82:
   3285     MEM32(ebp + (-0x2C)) = edi; /* 0x47088E82: mov dword ptr [ebp - 0x2c], edi */
   3286     RECOMP_ICALL(0x47039020u); /* 0x47088E85: call 0x47039020 */ /* not lifted */
   3287     RECOMP_FLAGS_IN();
   3288     esi = eax; /* 0x47088E8A: mov esi, eax */
   3289     MEM32(ebp + (-0x30)) = esi; /* 0x47088E8C: mov dword ptr [ebp - 0x30], esi */
   3290     ecx = esi; /* 0x47088E8F: mov ecx, esi */
   3291     RECOMP_ICALL(0x4703B210u); /* 0x47088E91: call 0x4703b210 */ /* not lifted */
   3292     RECOMP_FLAGS_IN();
   3293     PUSH32(esp, eax); /* 0x47088E96: push eax */
   3294     ecx = esi; /* 0x47088E97: mov ecx, esi */
   3295     RECOMP_ICALL(0x4703B240u); /* 0x47088E99: call 0x4703b240 */ /* not lifted */
   3296     RECOMP_FLAGS_IN();
   3297     PUSH32(esp, eax); /* 0x47088E9E: push eax */
   3298     ecx = esi; /* 0x47088E9F: mov ecx, esi */
   3299     RECOMP_ICALL(0x4703B080u); /* 0x47088EA1: call 0x4703b080 */ /* not lifted */
   3300     RECOMP_FLAGS_IN();
   3301     PUSH32(esp, eax); /* 0x47088EA6: push eax */
   3302     PUSH32(esp, edi); /* 0x47088EA7: push edi */
   3303     PUSH32(esp, ebx); /* 0x47088EA8: push ebx */
   3304     PUSH32(esp, 0x188u); /* 0x47088EA9: push 0x188 */
   3305     PUSH32(esp, 0x47105B2Cu); /* 0x47088EAE: push 0x47105b2c */
   3306     ecx = esi; /* 0x47088EB3: mov ecx, esi */
   3307     RECOMP_ICALL(0x4703A340u); /* 0x47088EB5: call 0x4703a340 */ /* not lifted */
   3308     RECOMP_FLAGS_IN();
   3309     PUSH32(esp, 0x47105BB8u); /* 0x47088EBA: push 0x47105bb8 */
   3310     PUSH32(esp, 0x47105B0Cu); /* 0x47088EBF: push 0x47105b0c */
   3311     PUSH32(esp, 0x80u); /* 0x47088EC4: push 0x80 */
   3312     PUSH32(esp, esi); /* 0x47088EC9: push esi */
   3313     RECOMP_ICALL(0x47039830u); /* 0x47088ECA: call 0x47039830 */ /* not lifted */
   3314     RECOMP_FLAGS_IN();
   3315     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3316     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3317     esp = esp + 0x10u; /* 0x47088ECF: add esp, 0x10 */
   3318     _flag_k = FK_ADD;
   3319     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088ED2: mov dword ptr [ebp - 4], 0xffffffff */
   3320     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3321     eax = 0; /* 0x47088ED9: xor eax, eax */
   3322     _cf = 0;
   3323     _flag_k = FK_TEST;
   3324     ecx = MEM32(ebp + (-0x10)); /* 0x47088EDB: mov ecx, dword ptr [ebp - 0x10] */
   3325     MEM32(FS_BASE + (0)) = ecx; /* 0x47088EDE: mov dword ptr fs:[0], ecx */
   3326     edi = POP32_VAL(esp); /* 0x47088EE5: pop edi */
   3327     esi = POP32_VAL(esp); /* 0x47088EE6: pop esi */
   3328     ebx = POP32_VAL(esp); /* 0x47088EE7: pop ebx */
   3329     esp = ebp; /* 0x47088EE8: mov esp, ebp */
   3330     ebp = POP32_VAL(esp); /* 0x47088EEA: pop ebp */
   3331     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088EEB: ret 4 */
   3332 L_47088EFE:
   3333     RECOMP_BACKEDGE();
   3334     goto L_47088D7A; /* 0x47088EFE: jmp 0x47088d7a */
   3335     { RECOMP_REGS_OUT(); return; } /* end of function */
   3336     RECOMP_REGS_OUT();
   3337 }
   3338 
   3339 void sub_47088F10(void) {
   3340     int _fpu_cmp = 0;
   3341     uint32_t _cf = 0;
   3342     int _df = 1;
   3343     uint32_t _flag_k = FK_NONE;
   3344     uint32_t _flag_a = 0, _flag_b = 0;
   3345     uint32_t _itail_tgt = 0;
   3346     RECOMP_REGS_LOCALS
   3347     RECOMP_ENTER(0x47088F10u);
   3348 
   3349 L_47088F10:
   3350     PUSH32(esp, ebp); /* 0x47088F10: push ebp */
   3351     ebp = esp; /* 0x47088F11: mov ebp, esp */
   3352     PUSH32(esp, 0xFFFFFFFFu); /* 0x47088F13: push -1 */
   3353     PUSH32(esp, 0x470AFD00u); /* 0x47088F15: push 0x470afd00 */
   3354     PUSH32(esp, 0x470A34B2u); /* 0x47088F1A: push 0x470a34b2 */
   3355     eax = MEM32(FS_BASE + (0)); /* 0x47088F1F: mov eax, dword ptr fs:[0] */
   3356     PUSH32(esp, eax); /* 0x47088F25: push eax */
   3357     MEM32(FS_BASE + (0)) = esp; /* 0x47088F26: mov dword ptr fs:[0], esp */
   3358     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3360     esp = esp - 0x14u; /* 0x47088F2D: sub esp, 0x14 */
   3361     _flag_k = FK_CMP;
   3362     PUSH32(esp, ebx); /* 0x47088F30: push ebx */
   3363     PUSH32(esp, esi); /* 0x47088F31: push esi */
   3364     PUSH32(esp, edi); /* 0x47088F32: push edi */
   3365     MEM32(ebp + (-0x18)) = esp; /* 0x47088F33: mov dword ptr [ebp - 0x18], esp */
   3366     MEM32(ebp + (-0x24)) = ecx; /* 0x47088F36: mov dword ptr [ebp - 0x24], ecx */
   3367     eax = MEM32(ebp + 0x8); /* 0x47088F39: mov eax, dword ptr [ebp + 8] */
   3368     /* test eax, eax */ /* 0x47088F3C: test eax, eax */
   3369     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3370     _cf = 0;
   3371     _flag_k = FK_TEST;
   3372     if (TEST_Z(_flag_a, _flag_b)) goto L_47088FCF; /* 0x47088F3E: je 0x47088fcf */
   3373 L_47088F44:
   3374     edx = MEM32(ecx); /* 0x47088F44: mov edx, dword ptr [ecx] */
   3375     /* test edx, edx */ /* 0x47088F46: test edx, edx */
   3376     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3377     _cf = 0;
   3378     _flag_k = FK_TEST;
   3379     if (TEST_Z(_flag_a, _flag_b)) goto L_47088FCF; /* 0x47088F48: je 0x47088fcf */
   3380 L_47088F4E:
   3381     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF4u);
   3382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3383     eax = eax + 0xFFFFFFF4u; /* 0x47088F4E: add eax, -0xc */
   3384     _flag_k = FK_ADD;
   3385     edx = MEM32(edx + 0x4); /* 0x47088F51: mov edx, dword ptr [edx + 4] */
   3386     MEM32(ebp + (-0x4)) = 0; /* 0x47088F54: mov dword ptr [ebp - 4], 0 */
   3387 L_47088F5B:
   3388     /* cmp eax, edx */ /* 0x47088F5B: cmp eax, edx */
   3389     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3391     _flag_k = FK_CMP;
   3392     if (CMP_BE(_flag_a, _flag_b)) goto L_47088F65; /* 0x47088F5D: jbe 0x47088f65 */
   3393 L_47088F5F:
   3394     esi = MEM32(edx); /* 0x47088F5F: mov esi, dword ptr [edx] */
   3395     /* cmp eax, esi */ /* 0x47088F61: cmp eax, esi */
   3396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3398     _flag_k = FK_CMP;
   3399     if (CMP_B(_flag_a, _flag_b)) goto L_47088F73; /* 0x47088F63: jb 0x47088f73 */
   3400 L_47088F65:
   3401     esi = MEM32(edx); /* 0x47088F65: mov esi, dword ptr [edx] */
   3402     /* cmp edx, esi */ /* 0x47088F67: cmp edx, esi */
   3403     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   3404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3405     _flag_k = FK_CMP;
   3406     if (CMP_B(_flag_a, _flag_b)) goto L_47088FAE; /* 0x47088F69: jb 0x47088fae */
   3407 L_47088F6B:
   3408     /* cmp eax, edx */ /* 0x47088F6B: cmp eax, edx */
   3409     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3411     _flag_k = FK_CMP;
   3412     if (CMP_A(_flag_a, _flag_b)) goto L_47088F73; /* 0x47088F6D: ja 0x47088f73 */
   3413 L_47088F6F:
   3414     /* cmp eax, esi */ /* 0x47088F6F: cmp eax, esi */
   3415     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3417     _flag_k = FK_CMP;
   3418     if (CMP_AE(_flag_a, _flag_b)) goto L_47088FAE; /* 0x47088F71: jae 0x47088fae */
   3419 L_47088F73:
   3420     edi = MEM32(eax + 0x4); /* 0x47088F73: mov edi, dword ptr [eax + 4] */
   3421     ebx = edi + edi * 2; /* 0x47088F76: lea ebx, [edi + edi*2] */
   3422     ebx = eax + ebx * 4; /* 0x47088F79: lea ebx, [eax + ebx*4] */
   3423     /* cmp ebx, esi */ /* 0x47088F7C: cmp ebx, esi */
   3424     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   3425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3426     _flag_k = FK_CMP;
   3427     if (CMP_NE(_flag_a, _flag_b)) goto L_47088F8C; /* 0x47088F7E: jne 0x47088f8c */
   3428 L_47088F80:
   3429     esi = MEM32(esi + 0x4); /* 0x47088F80: mov esi, dword ptr [esi + 4] */
   3430     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   3431     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3432     esi = esi + edi; /* 0x47088F83: add esi, edi */
   3433     _flag_k = FK_ADD;
   3434     MEM32(eax + 0x4) = esi; /* 0x47088F85: mov dword ptr [eax + 4], esi */
   3435     esi = MEM32(edx); /* 0x47088F88: mov esi, dword ptr [edx] */
   3436     esi = MEM32(esi); /* 0x47088F8A: mov esi, dword ptr [esi] */
   3437 L_47088F8C:
   3438     MEM32(eax) = esi; /* 0x47088F8C: mov dword ptr [eax], esi */
   3439     esi = MEM32(edx + 0x4); /* 0x47088F8E: mov esi, dword ptr [edx + 4] */
   3440     edi = esi + esi * 2; /* 0x47088F91: lea edi, [esi + esi*2] */
   3441     edi = edx + edi * 4; /* 0x47088F94: lea edi, [edx + edi*4] */
   3442     /* cmp edi, eax */ /* 0x47088F97: cmp edi, eax */
   3443     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3445     _flag_k = FK_CMP;
   3446     if (CMP_NE(_flag_a, _flag_b)) goto L_47088FA5; /* 0x47088F99: jne 0x47088fa5 */
   3447 L_47088F9B:
   3448     edi = MEM32(eax + 0x4); /* 0x47088F9B: mov edi, dword ptr [eax + 4] */
   3449     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   3450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3451     edi = edi + esi; /* 0x47088F9E: add edi, esi */
   3452     _flag_k = FK_ADD;
   3453     MEM32(edx + 0x4) = edi; /* 0x47088FA0: mov dword ptr [edx + 4], edi */
   3454     eax = MEM32(eax); /* 0x47088FA3: mov eax, dword ptr [eax] */
   3455 L_47088FA5:
   3456     MEM32(edx) = eax; /* 0x47088FA5: mov dword ptr [edx], eax */
   3457     ecx = MEM32(ecx); /* 0x47088FA7: mov ecx, dword ptr [ecx] */
   3458     MEM32(ecx + 0x4) = edx; /* 0x47088FA9: mov dword ptr [ecx + 4], edx */
   3459     goto L_47088FC8; /* 0x47088FAC: jmp 0x47088fc8 */
   3460 L_47088FAE:
   3461     edx = esi; /* 0x47088FAE: mov edx, esi */
   3462     MEM32(ebp + (-0x20)) = edx; /* 0x47088FB0: mov dword ptr [ebp - 0x20], edx */
   3463     RECOMP_BACKEDGE();
   3464     goto L_47088F5B; /* 0x47088FB3: jmp 0x47088f5b */
   3465 L_47088FC8:
   3466     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088FC8: mov dword ptr [ebp - 4], 0xffffffff */
   3467 L_47088FCF:
   3468     ecx = MEM32(ebp + (-0x10)); /* 0x47088FCF: mov ecx, dword ptr [ebp - 0x10] */
   3469     MEM32(FS_BASE + (0)) = ecx; /* 0x47088FD2: mov dword ptr fs:[0], ecx */
   3470     edi = POP32_VAL(esp); /* 0x47088FD9: pop edi */
   3471     esi = POP32_VAL(esp); /* 0x47088FDA: pop esi */
   3472     ebx = POP32_VAL(esp); /* 0x47088FDB: pop ebx */
   3473     esp = ebp; /* 0x47088FDC: mov esp, ebp */
   3474     ebp = POP32_VAL(esp); /* 0x47088FDE: pop ebp */
   3475     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088FDF: ret 4 */
   3476     RECOMP_REGS_OUT();
   3477 }
   3478 
   3479 void sub_47088FB5(void) {
   3480     int _fpu_cmp = 0;
   3481     uint32_t _cf = 0;
   3482     int _df = 1;
   3483     uint32_t _flag_k = FK_NONE;
   3484     uint32_t _flag_a = 0, _flag_b = 0;
   3485     uint32_t _itail_tgt = 0;
   3486     RECOMP_REGS_LOCALS
   3487     RECOMP_ENTER(0x47088FB5u);
   3488 
   3489 L_47088FB5:
   3490     edx = MEM32(ebp + (-0x24)); /* 0x47088FB5: mov edx, dword ptr [ebp - 0x24] */
   3491     ecx = edx + 0x4; /* 0x47088FB8: lea ecx, [edx + 4] */
   3492     eax = MEM32(ecx); /* 0x47088FBB: mov eax, dword ptr [ecx] */
   3493     edx = MEM32(ebp + (-0x14)); /* 0x47088FBD: mov edx, dword ptr [ebp - 0x14] */
   3494     PUSH32(esp, edx); /* 0x47088FC0: push edx */
   3495     RECOMP_ICALL(MEM32(eax + 0x5C)); /* 0x47088FC1: call dword ptr [eax + 0x5c] */
   3496     RECOMP_FLAGS_IN();
   3497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47088FC4: ret  */
   3498     RECOMP_REGS_OUT();
   3499 }
   3500 
   3501 void sub_47088FC5(void) {
   3502     int _fpu_cmp = 0;
   3503     uint32_t _cf = 0;
   3504     int _df = 1;
   3505     uint32_t _flag_k = FK_NONE;
   3506     uint32_t _flag_a = 0, _flag_b = 0;
   3507     uint32_t _itail_tgt = 0;
   3508     RECOMP_REGS_LOCALS
   3509     RECOMP_ENTER(0x47088FC5u);
   3510 
   3511 L_47088FC5:
   3512     esp = MEM32(ebp + (-0x18)); /* 0x47088FC5: mov esp, dword ptr [ebp - 0x18] */
   3513     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088FC8: mov dword ptr [ebp - 4], 0xffffffff */
   3514     ecx = MEM32(ebp + (-0x10)); /* 0x47088FCF: mov ecx, dword ptr [ebp - 0x10] */
   3515     MEM32(FS_BASE + (0)) = ecx; /* 0x47088FD2: mov dword ptr fs:[0], ecx */
   3516     edi = POP32_VAL(esp); /* 0x47088FD9: pop edi */
   3517     esi = POP32_VAL(esp); /* 0x47088FDA: pop esi */
   3518     ebx = POP32_VAL(esp); /* 0x47088FDB: pop ebx */
   3519     esp = ebp; /* 0x47088FDC: mov esp, ebp */
   3520     ebp = POP32_VAL(esp); /* 0x47088FDE: pop ebp */
   3521     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088FDF: ret 4 */
   3522     RECOMP_REGS_OUT();
   3523 }
   3524 
   3525 void sub_47088FC8(void) {
   3526     int _fpu_cmp = 0;
   3527     uint32_t _cf = 0;
   3528     int _df = 1;
   3529     uint32_t _flag_k = FK_NONE;
   3530     uint32_t _flag_a = 0, _flag_b = 0;
   3531     uint32_t _itail_tgt = 0;
   3532     RECOMP_REGS_LOCALS
   3533     RECOMP_ENTER(0x47088FC8u);
   3534 
   3535 L_47088FC8:
   3536     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x47088FC8: mov dword ptr [ebp - 4], 0xffffffff */
   3537     ecx = MEM32(ebp + (-0x10)); /* 0x47088FCF: mov ecx, dword ptr [ebp - 0x10] */
   3538     MEM32(FS_BASE + (0)) = ecx; /* 0x47088FD2: mov dword ptr fs:[0], ecx */
   3539     edi = POP32_VAL(esp); /* 0x47088FD9: pop edi */
   3540     esi = POP32_VAL(esp); /* 0x47088FDA: pop esi */
   3541     ebx = POP32_VAL(esp); /* 0x47088FDB: pop ebx */
   3542     esp = ebp; /* 0x47088FDC: mov esp, ebp */
   3543     ebp = POP32_VAL(esp); /* 0x47088FDE: pop ebp */
   3544     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088FDF: ret 4 */
   3545     RECOMP_REGS_OUT();
   3546 }
   3547 
   3548 void sub_47088FCF(void) {
   3549     int _fpu_cmp = 0;
   3550     uint32_t _cf = 0;
   3551     int _df = 1;
   3552     uint32_t _flag_k = FK_NONE;
   3553     uint32_t _flag_a = 0, _flag_b = 0;
   3554     uint32_t _itail_tgt = 0;
   3555     RECOMP_REGS_LOCALS
   3556     RECOMP_ENTER(0x47088FCFu);
   3557 
   3558 L_47088FCF:
   3559     ecx = MEM32(ebp + (-0x10)); /* 0x47088FCF: mov ecx, dword ptr [ebp - 0x10] */
   3560     MEM32(FS_BASE + (0)) = ecx; /* 0x47088FD2: mov dword ptr fs:[0], ecx */
   3561     edi = POP32_VAL(esp); /* 0x47088FD9: pop edi */
   3562     esi = POP32_VAL(esp); /* 0x47088FDA: pop esi */
   3563     ebx = POP32_VAL(esp); /* 0x47088FDB: pop ebx */
   3564     esp = ebp; /* 0x47088FDC: mov esp, ebp */
   3565     ebp = POP32_VAL(esp); /* 0x47088FDE: pop ebp */
   3566     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47088FDF: ret 4 */
   3567     RECOMP_REGS_OUT();
   3568 }
   3569 
   3570 void sub_47088FF0(void) {
   3571     int _fpu_cmp = 0;
   3572     uint32_t _cf = 0;
   3573     int _df = 1;
   3574     uint32_t _flag_k = FK_NONE;
   3575     uint32_t _flag_a = 0, _flag_b = 0;
   3576     uint32_t _itail_tgt = 0;
   3577     RECOMP_REGS_LOCALS
   3578     RECOMP_ENTER(0x47088FF0u);
   3579 
   3580 L_47088FF0:
   3581     ecx = 0x4710F999u; /* 0x47088FF0: mov ecx, 0x4710f999 */
   3582     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47088FF5: call dword ptr [0x470ac1c8] */
   3583     RECOMP_FLAGS_IN();
   3584     PUSH32(esp, 0x47089010u); /* 0x47088FFB: push 0x47089010 */
   3585     RECOMP_ICALL(0x470A32D9u); /* 0x47089000: call 0x470a32d9 */ /* not lifted */
   3586     RECOMP_FLAGS_IN();
   3587     ecx = POP32_VAL(esp); /* 0x47089005: pop ecx */
   3588     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47089006: ret  */
   3589     RECOMP_REGS_OUT();
   3590 }
   3591 
   3592 void sub_47089010(void) {
   3593     int _fpu_cmp = 0;
   3594     uint32_t _cf = 0;
   3595     int _df = 1;
   3596     uint32_t _flag_k = FK_NONE;
   3597     uint32_t _flag_a = 0, _flag_b = 0;
   3598     uint32_t _itail_tgt = 0;
   3599     RECOMP_REGS_LOCALS
   3600     RECOMP_ENTER(0x47089010u);
   3601 
   3602 L_47089010:
   3603     ecx = 0x4710F999u; /* 0x47089010: mov ecx, 0x4710f999 */
   3604 L_47089015:
   3605     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3606     { RECOMP_REGS_OUT(); return; } /* end of function */
   3607   _ljump:
   3608     switch (_itail_tgt) {
   3609       case 0x47089010u: goto L_47089010;
   3610       case 0x47089015u: goto L_47089015;
   3611       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3612     }
   3613     RECOMP_REGS_OUT();
   3614 }
   3615 
   3616 void sub_47089020(void) {
   3617     int _fpu_cmp = 0;
   3618     uint32_t _cf = 0;
   3619     int _df = 1;
   3620     uint32_t _flag_k = FK_NONE;
   3621     uint32_t _flag_a = 0, _flag_b = 0;
   3622     uint32_t _itail_tgt = 0;
   3623     RECOMP_REGS_LOCALS
   3624     RECOMP_ENTER(0x47089020u);
   3625 
   3626 L_47089020:
   3627     ecx = 0x4710F998u; /* 0x47089020: mov ecx, 0x4710f998 */
   3628     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47089025: call dword ptr [0x470ac1c4] */
   3629     RECOMP_FLAGS_IN();
   3630     PUSH32(esp, 0x47089040u); /* 0x4708902B: push 0x47089040 */
   3631     RECOMP_ICALL(0x470A32D9u); /* 0x47089030: call 0x470a32d9 */ /* not lifted */
   3632     RECOMP_FLAGS_IN();
   3633     ecx = POP32_VAL(esp); /* 0x47089035: pop ecx */
   3634     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47089036: ret  */
   3635     RECOMP_REGS_OUT();
   3636 }
   3637 
   3638 void sub_47089040(void) {
   3639     int _fpu_cmp = 0;
   3640     uint32_t _cf = 0;
   3641     int _df = 1;
   3642     uint32_t _flag_k = FK_NONE;
   3643     uint32_t _flag_a = 0, _flag_b = 0;
   3644     uint32_t _itail_tgt = 0;
   3645     RECOMP_REGS_LOCALS
   3646     RECOMP_ENTER(0x47089040u);
   3647 
   3648 L_47089040:
   3649     ecx = 0x4710F998u; /* 0x47089040: mov ecx, 0x4710f998 */
   3650 L_47089045:
   3651     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3652     { RECOMP_REGS_OUT(); return; } /* end of function */
   3653   _ljump:
   3654     switch (_itail_tgt) {
   3655       case 0x47089040u: goto L_47089040;
   3656       case 0x47089045u: goto L_47089045;
   3657       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3658     }
   3659     RECOMP_REGS_OUT();
   3660 }
   3661 
   3662 void sub_47089050(void) {
   3663     int _fpu_cmp = 0;
   3664     uint32_t _cf = 0;
   3665     int _df = 1;
   3666     uint32_t _flag_k = FK_NONE;
   3667     uint32_t _flag_a = 0, _flag_b = 0;
   3668     uint32_t _itail_tgt = 0;
   3669     RECOMP_REGS_LOCALS
   3670     RECOMP_ENTER(0x47089050u);
   3671 
   3672 L_47089050:
   3673     MEM32(0x4710F980) = 0x47104A3Cu; /* 0x47089050: mov dword ptr [0x4710f980], 0x47104a3c */
   3674     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708905A: ret  */
   3675     RECOMP_REGS_OUT();
   3676 }
   3677 
   3678 void sub_47089060(void) {
   3679     int _fpu_cmp = 0;
   3680     uint32_t _cf = 0;
   3681     int _df = 1;
   3682     uint32_t _flag_k = FK_NONE;
   3683     uint32_t _flag_a = 0, _flag_b = 0;
   3684     uint32_t _itail_tgt = 0;
   3685     RECOMP_REGS_LOCALS
   3686     RECOMP_ENTER(0x47089060u);
   3687 
   3688 L_47089060:
   3689     MEM32(0x4710F9A4) = 0x47104A00u; /* 0x47089060: mov dword ptr [0x4710f9a4], 0x47104a00 */
   3690     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708906A: ret  */
   3691     RECOMP_REGS_OUT();
   3692 }
   3693 
   3694 void sub_47089070(void) {
   3695     int _fpu_cmp = 0;
   3696     uint32_t _cf = 0;
   3697     int _df = 1;
   3698     uint32_t _flag_k = FK_NONE;
   3699     uint32_t _flag_a = 0, _flag_b = 0;
   3700     uint32_t _itail_tgt = 0;
   3701     RECOMP_REGS_LOCALS
   3702     RECOMP_ENTER(0x47089070u);
   3703 
   3704 L_47089070:
   3705     MEM32(0x4710F9A0) = 0x47104A70u; /* 0x47089070: mov dword ptr [0x4710f9a0], 0x47104a70 */
   3706     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708907A: ret  */
   3707     RECOMP_REGS_OUT();
   3708 }
   3709 
   3710 void sub_47089080(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(0x47089080u);
   3719 
   3720 L_47089080:
   3721     MEM32(0x4710F9C0) = 0x47104B6Cu; /* 0x47089080: mov dword ptr [0x4710f9c0], 0x47104b6c */
   3722     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708908A: ret  */
   3723     RECOMP_REGS_OUT();
   3724 }
   3725 
   3726 void sub_47089090(void) {
   3727     int _fpu_cmp = 0;
   3728     uint32_t _cf = 0;
   3729     int _df = 1;
   3730     uint32_t _flag_k = FK_NONE;
   3731     uint32_t _flag_a = 0, _flag_b = 0;
   3732     uint32_t _itail_tgt = 0;
   3733     RECOMP_REGS_LOCALS
   3734     RECOMP_ENTER(0x47089090u);
   3735 
   3736 L_47089090:
   3737     MEM32(0x4710F98C) = 0x47104BA0u; /* 0x47089090: mov dword ptr [0x4710f98c], 0x47104ba0 */
   3738     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708909A: ret  */
   3739     RECOMP_REGS_OUT();
   3740 }
   3741 
   3742 void sub_470890A0(void) {
   3743     int _fpu_cmp = 0;
   3744     uint32_t _cf = 0;
   3745     int _df = 1;
   3746     uint32_t _flag_k = FK_NONE;
   3747     uint32_t _flag_a = 0, _flag_b = 0;
   3748     uint32_t _itail_tgt = 0;
   3749     RECOMP_REGS_LOCALS
   3750     RECOMP_ENTER(0x470890A0u);
   3751 
   3752 L_470890A0:
   3753     MEM32(0x4710F9B8) = 0x47104BD4u; /* 0x470890A0: mov dword ptr [0x4710f9b8], 0x47104bd4 */
   3754     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470890AA: ret  */
   3755     RECOMP_REGS_OUT();
   3756 }
   3757 
   3758 void sub_470890B0(void) {
   3759     int _fpu_cmp = 0;
   3760     uint32_t _cf = 0;
   3761     int _df = 1;
   3762     uint32_t _flag_k = FK_NONE;
   3763     uint32_t _flag_a = 0, _flag_b = 0;
   3764     uint32_t _itail_tgt = 0;
   3765     RECOMP_REGS_LOCALS
   3766     RECOMP_ENTER(0x470890B0u);
   3767 
   3768 L_470890B0:
   3769     MEM32(0x4710F9AC) = 0x47104C0Cu; /* 0x470890B0: mov dword ptr [0x4710f9ac], 0x47104c0c */
   3770     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470890BA: ret  */
   3771     RECOMP_REGS_OUT();
   3772 }
   3773 
   3774 void sub_470890C0(void) {
   3775     int _fpu_cmp = 0;
   3776     uint32_t _cf = 0;
   3777     int _df = 1;
   3778     uint32_t _flag_k = FK_NONE;
   3779     uint32_t _flag_a = 0, _flag_b = 0;
   3780     uint32_t _itail_tgt = 0;
   3781     RECOMP_REGS_LOCALS
   3782     RECOMP_ENTER(0x470890C0u);
   3783 
   3784 L_470890C0:
   3785     MEM32(0x4710F9B4) = 0x471050FCu; /* 0x470890C0: mov dword ptr [0x4710f9b4], 0x471050fc */
   3786     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470890CA: ret  */
   3787     RECOMP_REGS_OUT();
   3788 }
   3789 
   3790 void sub_470890D0(void) {
   3791     int _fpu_cmp = 0;
   3792     uint32_t _cf = 0;
   3793     int _df = 1;
   3794     uint32_t _flag_k = FK_NONE;
   3795     uint32_t _flag_a = 0, _flag_b = 0;
   3796     uint32_t _itail_tgt = 0;
   3797     RECOMP_REGS_LOCALS
   3798     RECOMP_ENTER(0x470890D0u);
   3799 
   3800 L_470890D0:
   3801     MEM32(0x4710F99C) = 0x47105158u; /* 0x470890D0: mov dword ptr [0x4710f99c], 0x47105158 */
   3802     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470890DA: ret  */
   3803     RECOMP_REGS_OUT();
   3804 }
   3805 
   3806 void sub_470890E0(void) {
   3807     int _fpu_cmp = 0;
   3808     uint32_t _cf = 0;
   3809     int _df = 1;
   3810     uint32_t _flag_k = FK_NONE;
   3811     uint32_t _flag_a = 0, _flag_b = 0;
   3812     uint32_t _itail_tgt = 0;
   3813     RECOMP_REGS_LOCALS
   3814     RECOMP_ENTER(0x470890E0u);
   3815 
   3816 L_470890E0:
   3817     MEM32(0x4710F988) = 0x4710518Cu; /* 0x470890E0: mov dword ptr [0x4710f988], 0x4710518c */
   3818     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470890EA: ret  */
   3819     RECOMP_REGS_OUT();
   3820 }
   3821 
   3822 void sub_470890F0(void) {
   3823     int _fpu_cmp = 0;
   3824     uint32_t _cf = 0;
   3825     int _df = 1;
   3826     uint32_t _flag_k = FK_NONE;
   3827     uint32_t _flag_a = 0, _flag_b = 0;
   3828     uint32_t _itail_tgt = 0;
   3829     RECOMP_REGS_LOCALS
   3830     RECOMP_ENTER(0x470890F0u);
   3831 
   3832 L_470890F0:
   3833     MEM32(0x4710F9BC) = 0x471051ECu; /* 0x470890F0: mov dword ptr [0x4710f9bc], 0x471051ec */
   3834     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470890FA: ret  */
   3835     RECOMP_REGS_OUT();
   3836 }
   3837 
   3838 void sub_47089100(void) {
   3839     int _fpu_cmp = 0;
   3840     uint32_t _cf = 0;
   3841     int _df = 1;
   3842     uint32_t _flag_k = FK_NONE;
   3843     uint32_t _flag_a = 0, _flag_b = 0;
   3844     uint32_t _itail_tgt = 0;
   3845     RECOMP_REGS_LOCALS
   3846     RECOMP_ENTER(0x47089100u);
   3847 
   3848 L_47089100:
   3849     MEM32(0x4710F9A8) = 0x47105224u; /* 0x47089100: mov dword ptr [0x4710f9a8], 0x47105224 */
   3850     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708910A: ret  */
   3851     RECOMP_REGS_OUT();
   3852 }
   3853 
   3854 void sub_47089110(void) {
   3855     int _fpu_cmp = 0;
   3856     uint32_t _cf = 0;
   3857     int _df = 1;
   3858     uint32_t _flag_k = FK_NONE;
   3859     uint32_t _flag_a = 0, _flag_b = 0;
   3860     uint32_t _itail_tgt = 0;
   3861     RECOMP_REGS_LOCALS
   3862     RECOMP_ENTER(0x47089110u);
   3863 
   3864 L_47089110:
   3865     MEM32(0x4710F994) = 0x47108CC8u; /* 0x47089110: mov dword ptr [0x4710f994], 0x47108cc8 */
   3866     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708911A: ret  */
   3867     RECOMP_REGS_OUT();
   3868 }
   3869 
   3870 void sub_47089120(void) {
   3871     int _fpu_cmp = 0;
   3872     uint32_t _cf = 0;
   3873     int _df = 1;
   3874     uint32_t _flag_k = FK_NONE;
   3875     uint32_t _flag_a = 0, _flag_b = 0;
   3876     uint32_t _itail_tgt = 0;
   3877     RECOMP_REGS_LOCALS
   3878     RECOMP_ENTER(0x47089120u);
   3879 
   3880 L_47089120:
   3881     MEM32(0x4710F984) = 0x47108D04u; /* 0x47089120: mov dword ptr [0x4710f984], 0x47108d04 */
   3882     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708912A: ret  */
   3883     RECOMP_REGS_OUT();
   3884 }
   3885 
   3886 void sub_47089130(void) {
   3887     int _fpu_cmp = 0;
   3888     uint32_t _cf = 0;
   3889     int _df = 1;
   3890     uint32_t _flag_k = FK_NONE;
   3891     uint32_t _flag_a = 0, _flag_b = 0;
   3892     uint32_t _itail_tgt = 0;
   3893     RECOMP_REGS_LOCALS
   3894     RECOMP_ENTER(0x47089130u);
   3895 
   3896 L_47089130:
   3897     MEM32(0x4710F9B0) = 0x47108D38u; /* 0x47089130: mov dword ptr [0x4710f9b0], 0x47108d38 */
   3898     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708913A: ret  */
   3899     RECOMP_REGS_OUT();
   3900 }
   3901 
   3902 void sub_47089140(void) {
   3903     int _fpu_cmp = 0;
   3904     uint32_t _cf = 0;
   3905     int _df = 1;
   3906     uint32_t _flag_k = FK_NONE;
   3907     uint32_t _flag_a = 0, _flag_b = 0;
   3908     uint32_t _itail_tgt = 0;
   3909     RECOMP_REGS_LOCALS
   3910     RECOMP_ENTER(0x47089140u);
   3911 
   3912 L_47089140:
   3913     MEM32(0x4710F990) = 0x4710C7F4u; /* 0x47089140: mov dword ptr [0x4710f990], 0x4710c7f4 */
   3914     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708914A: ret  */
   3915     RECOMP_REGS_OUT();
   3916 }
   3917 
   3918 void sub_47089150(void) {
   3919     int _fpu_cmp = 0;
   3920     uint32_t _cf = 0;
   3921     int _df = 1;
   3922     uint32_t _flag_k = FK_NONE;
   3923     uint32_t _flag_a = 0, _flag_b = 0;
   3924     uint32_t _itail_tgt = 0;
   3925     RECOMP_REGS_LOCALS
   3926     RECOMP_ENTER(0x47089150u);
   3927 
   3928 L_47089150:
   3929     PUSH32(esp, 0xFFFFFFFFu); /* 0x47089150: push -1 */
   3930     PUSH32(esp, 0x470AA138u); /* 0x47089152: push 0x470aa138 */
   3931     eax = MEM32(FS_BASE + (0)); /* 0x47089157: mov eax, dword ptr fs:[0] */
   3932     PUSH32(esp, eax); /* 0x4708915D: push eax */
   3933     MEM32(FS_BASE + (0)) = esp; /* 0x4708915E: mov dword ptr fs:[0], esp */
   3934     PUSH32(esp, ecx); /* 0x47089165: push ecx */
   3935     PUSH32(esp, esi); /* 0x47089166: push esi */
   3936     esi = ecx; /* 0x47089167: mov esi, ecx */
   3937     MEM32(esp + 0x4) = esi; /* 0x47089169: mov dword ptr [esp + 4], esi */
   3938     MEM32(esi) = 0x470AFD1Cu; /* 0x4708916D: mov dword ptr [esi], 0x470afd1c */
   3939     MEM32(esi + 0xC) = 0x470AFD0Cu; /* 0x47089173: mov dword ptr [esi + 0xc], 0x470afd0c */
   3940     ecx = esi + 0x20; /* 0x4708917A: lea ecx, [esi + 0x20] */
   3941     MEM32(esp + 0x10) = 0; /* 0x4708917D: mov dword ptr [esp + 0x10], 0 */
   3942     RECOMP_ICALL(0x47087E30u); /* 0x47089185: call 0x47087e30 */ /* not lifted */
   3943     RECOMP_FLAGS_IN();
   3944     ecx = esi; /* 0x4708918A: mov ecx, esi */
   3945     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x4708918C: mov dword ptr [esp + 0x10], 0xffffffff */
   3946     RECOMP_ICALL(0x47076DD0u); /* 0x47089194: call 0x47076dd0 */ /* not lifted */
   3947     RECOMP_FLAGS_IN();
   3948     ecx = MEM32(esp + 0x8); /* 0x47089199: mov ecx, dword ptr [esp + 8] */
   3949     esi = POP32_VAL(esp); /* 0x4708919D: pop esi */
   3950     MEM32(FS_BASE + (0)) = ecx; /* 0x4708919E: mov dword ptr fs:[0], ecx */
   3951     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3953     esp = esp + 0x10u; /* 0x470891A5: add esp, 0x10 */
   3954     _flag_k = FK_ADD;
   3955     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470891A8: ret  */
   3956     RECOMP_REGS_OUT();
   3957 }
   3958 
   3959 void sub_470891B0(void) {
   3960     int _fpu_cmp = 0;
   3961     uint32_t _cf = 0;
   3962     int _df = 1;
   3963     uint32_t _flag_k = FK_NONE;
   3964     uint32_t _flag_a = 0, _flag_b = 0;
   3965     uint32_t _itail_tgt = 0;
   3966     RECOMP_REGS_LOCALS
   3967     RECOMP_ENTER(0x470891B0u);
   3968 
   3969 L_470891B0:
   3970     PUSH32(esp, ebx); /* 0x470891B0: push ebx */
   3971     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470891B1: mov bl, byte ptr [esp + 8] */
   3972     /* test LO8(ebx), 2 */ /* 0x470891B5: test bl, 2 */
   3973     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3974     _cf = 0;
   3975     _flag_k = FK_NARROW(FK_TEST, 24);
   3976     PUSH32(esp, esi); /* 0x470891B8: push esi */
   3977     esi = ecx; /* 0x470891B9: mov esi, ecx */
   3978     if (TEST_Z(_flag_a, _flag_b)) goto L_470891E8; /* 0x470891BB: je 0x470891e8 */
   3979 L_470891BD:
   3980     eax = MEM32(esi + (-0x4)); /* 0x470891BD: mov eax, dword ptr [esi - 4] */
   3981     PUSH32(esp, edi); /* 0x470891C0: push edi */
   3982     PUSH32(esp, 0x47089150u); /* 0x470891C1: push 0x47089150 */
   3983     edi = esi + (-0x4); /* 0x470891C6: lea edi, [esi - 4] */
   3984     PUSH32(esp, eax); /* 0x470891C9: push eax */
   3985     PUSH32(esp, 0x3Cu); /* 0x470891CA: push 0x3c */
   3986     PUSH32(esp, esi); /* 0x470891CC: push esi */
   3987     RECOMP_ICALL(0x470A32EBu); /* 0x470891CD: call 0x470a32eb */ /* not lifted */
   3988     RECOMP_FLAGS_IN();
   3989     /* test LO8(ebx), 1 */ /* 0x470891D2: test bl, 1 */
   3990     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3991     _cf = 0;
   3992     _flag_k = FK_NARROW(FK_TEST, 24);
   3993     if (TEST_Z(_flag_a, _flag_b)) goto L_470891E0; /* 0x470891D5: je 0x470891e0 */
   3994 L_470891D7:
   3995     PUSH32(esp, edi); /* 0x470891D7: push edi */
   3996     RECOMP_ICALL(0x470A32A2u); /* 0x470891D8: call 0x470a32a2 */ /* not lifted */
   3997     RECOMP_FLAGS_IN();
   3998     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3999     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4000     esp = esp + 4; /* 0x470891DD: add esp, 4 */
   4001     _flag_k = FK_ADD;
   4002 L_470891E0:
   4003     eax = edi; /* 0x470891E0: mov eax, edi */
   4004     edi = POP32_VAL(esp); /* 0x470891E2: pop edi */
   4005     esi = POP32_VAL(esp); /* 0x470891E3: pop esi */
   4006     ebx = POP32_VAL(esp); /* 0x470891E4: pop ebx */
   4007     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470891E5: ret 4 */
   4008 L_470891E8:
   4009     ecx = esi; /* 0x470891E8: mov ecx, esi */
   4010     RECOMP_ICALL(0x47089150u); /* 0x470891EA: call 0x47089150 */ /* not lifted */
   4011     RECOMP_FLAGS_IN();
   4012     /* test LO8(ebx), 1 */ /* 0x470891EF: test bl, 1 */
   4013     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4014     _cf = 0;
   4015     _flag_k = FK_NARROW(FK_TEST, 24);
   4016     if (TEST_Z(_flag_a, _flag_b)) goto L_470891FD; /* 0x470891F2: je 0x470891fd */
   4017 L_470891F4:
   4018     PUSH32(esp, esi); /* 0x470891F4: push esi */
   4019     RECOMP_ICALL(0x470A32A2u); /* 0x470891F5: call 0x470a32a2 */ /* not lifted */
   4020     RECOMP_FLAGS_IN();
   4021     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4022     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4023     esp = esp + 4; /* 0x470891FA: add esp, 4 */
   4024     _flag_k = FK_ADD;
   4025 L_470891FD:
   4026     eax = esi; /* 0x470891FD: mov eax, esi */
   4027     esi = POP32_VAL(esp); /* 0x470891FF: pop esi */
   4028     ebx = POP32_VAL(esp); /* 0x47089200: pop ebx */
   4029     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47089201: ret 4 */
   4030     RECOMP_REGS_OUT();
   4031 }
   4032 
   4033 void sub_47089210(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(0x47089210u);
   4042 
   4043 L_47089210:
   4044     PUSH32(esp, 0xFFFFFFFFu); /* 0x47089210: push -1 */
   4045     PUSH32(esp, 0x470AA158u); /* 0x47089212: push 0x470aa158 */
   4046     eax = MEM32(FS_BASE + (0)); /* 0x47089217: mov eax, dword ptr fs:[0] */
   4047     PUSH32(esp, eax); /* 0x4708921D: push eax */
   4048     MEM32(FS_BASE + (0)) = esp; /* 0x4708921E: mov dword ptr fs:[0], esp */
   4049     PUSH32(esp, ecx); /* 0x47089225: push ecx */
   4050     PUSH32(esp, esi); /* 0x47089226: push esi */
   4051     esi = ecx; /* 0x47089227: mov esi, ecx */
   4052     PUSH32(esp, 0); /* 0x47089229: push 0 */
   4053     MEM32(esp + 0x8) = esi; /* 0x4708922B: mov dword ptr [esp + 8], esi */
   4054     RECOMP_ICALL(0x47076DA0u); /* 0x4708922F: call 0x47076da0 */ /* not lifted */
   4055     RECOMP_FLAGS_IN();
   4056     eax = MEM32(esp + 0x18); /* 0x47089234: mov eax, dword ptr [esp + 0x18] */
   4057     PUSH32(esp, 0); /* 0x47089238: push 0 */
   4058     PUSH32(esp, 0); /* 0x4708923A: push 0 */
   4059     ecx = esi + 0x20; /* 0x4708923C: lea ecx, [esi + 0x20] */
   4060     MEM32(esp + 0x18) = 0; /* 0x4708923F: mov dword ptr [esp + 0x18], 0 */
   4061     MEM32(esi + 0x10) = 0; /* 0x47089247: mov dword ptr [esi + 0x10], 0 */
   4062     MEM32(esi + 0x14) = eax; /* 0x4708924E: mov dword ptr [esi + 0x14], eax */
   4063     MEM32(esi + 0x18) = 0; /* 0x47089251: mov dword ptr [esi + 0x18], 0 */
   4064     MEM32(esi + 0x1C) = 0xFFFFFFFFu; /* 0x47089258: mov dword ptr [esi + 0x1c], 0xffffffff */
   4065     RECOMP_ICALL(0x47087E50u); /* 0x4708925F: call 0x47087e50 */ /* not lifted */
   4066     RECOMP_FLAGS_IN();
   4067     ecx = MEM32(esp + 0x8); /* 0x47089264: mov ecx, dword ptr [esp + 8] */
   4068     MEM32(esi) = 0x470AFD1Cu; /* 0x47089268: mov dword ptr [esi], 0x470afd1c */
   4069     MEM32(esi + 0xC) = 0x470AFD0Cu; /* 0x4708926E: mov dword ptr [esi + 0xc], 0x470afd0c */
   4070     eax = esi; /* 0x47089275: mov eax, esi */
   4071     esi = POP32_VAL(esp); /* 0x47089277: pop esi */
   4072     MEM32(FS_BASE + (0)) = ecx; /* 0x47089278: mov dword ptr fs:[0], ecx */
   4073     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4074     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4075     esp = esp + 0x10u; /* 0x4708927F: add esp, 0x10 */
   4076     _flag_k = FK_ADD;
   4077     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47089282: ret 4 */
   4078     RECOMP_REGS_OUT();
   4079 }
   4080 
   4081 void sub_47089290(void) {
   4082     int _fpu_cmp = 0;
   4083     uint32_t _cf = 0;
   4084     int _df = 1;
   4085     uint32_t _flag_k = FK_NONE;
   4086     uint32_t _flag_a = 0, _flag_b = 0;
   4087     uint32_t _itail_tgt = 0;
   4088     RECOMP_REGS_LOCALS
   4089     RECOMP_ENTER(0x47089290u);
   4090 
   4091 L_47089290:
   4092     eax = ecx; /* 0x47089290: mov eax, ecx */
   4093     ecx = MEM32(eax + 0x14); /* 0x47089292: mov ecx, dword ptr [eax + 0x14] */
   4094     /* test ecx, ecx */ /* 0x47089295: test ecx, ecx */
   4095     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4096     _cf = 0;
   4097     _flag_k = FK_TEST;
   4098     if (TEST_Z(_flag_a, _flag_b)) goto L_470892A0; /* 0x47089297: je 0x470892a0 */
   4099 L_47089299:
   4100     PUSH32(esp, eax); /* 0x47089299: push eax */
   4101     RECOMP_ICALL(0x4708D770u); /* 0x4708929A: call 0x4708d770 */ /* not lifted */
   4102     RECOMP_FLAGS_IN();
   4103     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708929F: ret  */
   4104 L_470892A0:
   4105     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4106     eax = 0; /* 0x470892A0: xor eax, eax */
   4107     _cf = 0;
   4108     _flag_k = FK_TEST;
   4109     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470892A2: ret  */
   4110     RECOMP_REGS_OUT();
   4111 }
   4112 
   4113 void sub_470892B0(void) {
   4114     int _fpu_cmp = 0;
   4115     uint32_t _cf = 0;
   4116     int _df = 1;
   4117     uint32_t _flag_k = FK_NONE;
   4118     uint32_t _flag_a = 0, _flag_b = 0;
   4119     uint32_t _itail_tgt = 0;
   4120     RECOMP_REGS_LOCALS
   4121     RECOMP_ENTER(0x470892B0u);
   4122 
   4123 L_470892B0:
   4124     PUSH32(esp, 0xFFFFFFFFu); /* 0x470892B0: push -1 */
   4125     PUSH32(esp, 0x470AA178u); /* 0x470892B2: push 0x470aa178 */
   4126     eax = MEM32(FS_BASE + (0)); /* 0x470892B7: mov eax, dword ptr fs:[0] */
   4127     PUSH32(esp, eax); /* 0x470892BD: push eax */
   4128     MEM32(FS_BASE + (0)) = esp; /* 0x470892BE: mov dword ptr fs:[0], esp */
   4129     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4131     esp = esp - 8; /* 0x470892C5: sub esp, 8 */
   4132     _flag_k = FK_CMP;
   4133     PUSH32(esp, esi); /* 0x470892C8: push esi */
   4134     PUSH32(esp, edi); /* 0x470892C9: push edi */
   4135     esi = ecx; /* 0x470892CA: mov esi, ecx */
   4136     edi = esi + 0x20; /* 0x470892CC: lea edi, [esi + 0x20] */
   4137     PUSH32(esp, edi); /* 0x470892CF: push edi */
   4138     MEM32(esp + 0xC) = edi; /* 0x470892D0: mov dword ptr [esp + 0xc], edi */
   4139     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470892D4: call dword ptr [0x470ac180] */
   4140     RECOMP_FLAGS_IN();
   4141     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4142     eax = 0; /* 0x470892DA: xor eax, eax */
   4143     _cf = 0;
   4144     _flag_k = FK_TEST;
   4145     MEM32(esp + 0xC) = eax; /* 0x470892DC: mov dword ptr [esp + 0xc], eax */
   4146     /* cmp MEM32(esi + 0x10), eax */ /* 0x470892E0: cmp dword ptr [esi + 0x10], eax */
   4147     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(eax);
   4148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4149     _flag_k = FK_CMP;
   4150     MEM32(esp + 0x18) = eax; /* 0x470892E3: mov dword ptr [esp + 0x18], eax */
   4151     if (CMP_BE(_flag_a, _flag_b)) goto L_4708930E; /* 0x470892E7: jbe 0x4708930e */
   4152 L_470892E9:
   4153     ecx = MEM32(esi + 0x14); /* 0x470892E9: mov ecx, dword ptr [esi + 0x14] */
   4154     PUSH32(esp, esi); /* 0x470892EC: push esi */
   4155     RECOMP_ICALL(0x4708D9E0u); /* 0x470892ED: call 0x4708d9e0 */ /* not lifted */
   4156     RECOMP_FLAGS_IN();
   4157     PUSH32(esp, edi); /* 0x470892F2: push edi */
   4158     esi = eax; /* 0x470892F3: mov esi, eax */
   4159     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470892F5: call dword ptr [0x470ac190] */
   4160     RECOMP_FLAGS_IN();
   4161     edi = POP32_VAL(esp); /* 0x470892FB: pop edi */
   4162     eax = esi; /* 0x470892FC: mov eax, esi */
   4163     esi = POP32_VAL(esp); /* 0x470892FE: pop esi */
   4164     ecx = MEM32(esp + 0x8); /* 0x470892FF: mov ecx, dword ptr [esp + 8] */
   4165     MEM32(FS_BASE + (0)) = ecx; /* 0x47089303: mov dword ptr fs:[0], ecx */
   4166     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4167     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4168     esp = esp + 0x14u; /* 0x4708930A: add esp, 0x14 */
   4169     _flag_k = FK_ADD;
   4170     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708930D: ret  */
   4171 L_4708930E:
   4172     PUSH32(esp, edi); /* 0x4708930E: push edi */
   4173     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4708930F: call dword ptr [0x470ac190] */
   4174     RECOMP_FLAGS_IN();
   4175     ecx = MEM32(esp + 0x10); /* 0x47089315: mov ecx, dword ptr [esp + 0x10] */
   4176     edi = POP32_VAL(esp); /* 0x47089319: pop edi */
   4177     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4178     eax = 0; /* 0x4708931A: xor eax, eax */
   4179     _cf = 0;
   4180     _flag_k = FK_TEST;
   4181     esi = POP32_VAL(esp); /* 0x4708931C: pop esi */
   4182     MEM32(FS_BASE + (0)) = ecx; /* 0x4708931D: mov dword ptr fs:[0], ecx */
   4183     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4184     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4185     esp = esp + 0x14u; /* 0x47089324: add esp, 0x14 */
   4186     _flag_k = FK_ADD;
   4187     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47089327: ret  */
   4188     RECOMP_REGS_OUT();
   4189 }
   4190 
   4191 void sub_47089330(void) {
   4192     int _fpu_cmp = 0;
   4193     uint32_t _cf = 0;
   4194     int _df = 1;
   4195     uint32_t _flag_k = FK_NONE;
   4196     uint32_t _flag_a = 0, _flag_b = 0;
   4197     uint32_t _itail_tgt = 0;
   4198     RECOMP_REGS_LOCALS
   4199     RECOMP_ENTER(0x47089330u);
   4200 
   4201 L_47089330:
   4202     PUSH32(esp, 0xFFFFFFFFu); /* 0x47089330: push -1 */
   4203     PUSH32(esp, 0x470AA198u); /* 0x47089332: push 0x470aa198 */
   4204     eax = MEM32(FS_BASE + (0)); /* 0x47089337: mov eax, dword ptr fs:[0] */
   4205     PUSH32(esp, eax); /* 0x4708933D: push eax */
   4206     MEM32(FS_BASE + (0)) = esp; /* 0x4708933E: mov dword ptr fs:[0], esp */
   4207     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4209     esp = esp - 8; /* 0x47089345: sub esp, 8 */
   4210     _flag_k = FK_CMP;
   4211     PUSH32(esp, esi); /* 0x47089348: push esi */
   4212     PUSH32(esp, edi); /* 0x47089349: push edi */
   4213     esi = ecx; /* 0x4708934A: mov esi, ecx */
   4214     edi = esi + 0x20; /* 0x4708934C: lea edi, [esi + 0x20] */
   4215     PUSH32(esp, edi); /* 0x4708934F: push edi */
   4216     MEM32(esp + 0xC) = edi; /* 0x47089350: mov dword ptr [esp + 0xc], edi */
   4217     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47089354: call dword ptr [0x470ac180] */
   4218     RECOMP_FLAGS_IN();
   4219     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4220     eax = 0; /* 0x4708935A: xor eax, eax */
   4221     _cf = 0;
   4222     _flag_k = FK_TEST;
   4223     MEM32(esp + 0xC) = eax; /* 0x4708935C: mov dword ptr [esp + 0xc], eax */
   4224     /* cmp MEM32(esi + 0x10), eax */ /* 0x47089360: cmp dword ptr [esi + 0x10], eax */
   4225     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(eax);
   4226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4227     _flag_k = FK_CMP;
   4228     MEM32(esp + 0x18) = eax; /* 0x47089363: mov dword ptr [esp + 0x18], eax */
   4229     if (CMP_BE(_flag_a, _flag_b)) goto L_4708938E; /* 0x47089367: jbe 0x4708938e */
   4230 L_47089369:
   4231     ecx = MEM32(esi + 0x14); /* 0x47089369: mov ecx, dword ptr [esi + 0x14] */
   4232     PUSH32(esp, esi); /* 0x4708936C: push esi */
   4233     RECOMP_ICALL(0x4708DA00u); /* 0x4708936D: call 0x4708da00 */ /* not lifted */
   4234     RECOMP_FLAGS_IN();
   4235     PUSH32(esp, edi); /* 0x47089372: push edi */
   4236     esi = eax; /* 0x47089373: mov esi, eax */
   4237     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47089375: call dword ptr [0x470ac190] */
   4238     RECOMP_FLAGS_IN();
   4239     edi = POP32_VAL(esp); /* 0x4708937B: pop edi */
   4240     eax = esi; /* 0x4708937C: mov eax, esi */
   4241     esi = POP32_VAL(esp); /* 0x4708937E: pop esi */
   4242     ecx = MEM32(esp + 0x8); /* 0x4708937F: mov ecx, dword ptr [esp + 8] */
   4243     MEM32(FS_BASE + (0)) = ecx; /* 0x47089383: mov dword ptr fs:[0], ecx */
   4244     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4245     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4246     esp = esp + 0x14u; /* 0x4708938A: add esp, 0x14 */
   4247     _flag_k = FK_ADD;
   4248     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708938D: ret  */
   4249 L_4708938E:
   4250     PUSH32(esp, edi); /* 0x4708938E: push edi */
   4251     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x4708938F: call dword ptr [0x470ac190] */
   4252     RECOMP_FLAGS_IN();
   4253     ecx = MEM32(esp + 0x10); /* 0x47089395: mov ecx, dword ptr [esp + 0x10] */
   4254     edi = POP32_VAL(esp); /* 0x47089399: pop edi */
   4255     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4256     eax = 0; /* 0x4708939A: xor eax, eax */
   4257     _cf = 0;
   4258     _flag_k = FK_TEST;
   4259     esi = POP32_VAL(esp); /* 0x4708939C: pop esi */
   4260     MEM32(FS_BASE + (0)) = ecx; /* 0x4708939D: mov dword ptr fs:[0], ecx */
   4261     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4262     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4263     esp = esp + 0x14u; /* 0x470893A4: add esp, 0x14 */
   4264     _flag_k = FK_ADD;
   4265     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470893A7: ret  */
   4266     RECOMP_REGS_OUT();
   4267 }
   4268 
   4269 void sub_470893B0(void) {
   4270     int _fpu_cmp = 0;
   4271     uint32_t _cf = 0;
   4272     int _df = 1;
   4273     uint32_t _flag_k = FK_NONE;
   4274     uint32_t _flag_a = 0, _flag_b = 0;
   4275     uint32_t _itail_tgt = 0;
   4276     RECOMP_REGS_LOCALS
   4277     RECOMP_ENTER(0x470893B0u);
   4278 
   4279 L_470893B0:
   4280     PUSH32(esp, 0xFFFFFFFFu); /* 0x470893B0: push -1 */
   4281     PUSH32(esp, 0x470AA1B8u); /* 0x470893B2: push 0x470aa1b8 */
   4282     eax = MEM32(FS_BASE + (0)); /* 0x470893B7: mov eax, dword ptr fs:[0] */
   4283     PUSH32(esp, eax); /* 0x470893BD: push eax */
   4284     MEM32(FS_BASE + (0)) = esp; /* 0x470893BE: mov dword ptr fs:[0], esp */
   4285     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4287     esp = esp - 8; /* 0x470893C5: sub esp, 8 */
   4288     _flag_k = FK_CMP;
   4289     PUSH32(esp, ebp); /* 0x470893C8: push ebp */
   4290     PUSH32(esp, esi); /* 0x470893C9: push esi */
   4291     PUSH32(esp, edi); /* 0x470893CA: push edi */
   4292     esi = ecx; /* 0x470893CB: mov esi, ecx */
   4293     edi = esi + 0x20; /* 0x470893CD: lea edi, [esi + 0x20] */
   4294     PUSH32(esp, edi); /* 0x470893D0: push edi */
   4295     MEM32(esp + 0x10) = edi; /* 0x470893D1: mov dword ptr [esp + 0x10], edi */
   4296     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470893D5: call dword ptr [0x470ac180] */
   4297     RECOMP_FLAGS_IN();
   4298     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4299     ecx = 0; /* 0x470893DB: xor ecx, ecx */
   4300     _cf = 0;
   4301     _flag_k = FK_TEST;
   4302     MEM32(esp + 0x10) = ecx; /* 0x470893DD: mov dword ptr [esp + 0x10], ecx */
   4303     ebp = MEM32(esp + 0x38); /* 0x470893E1: mov ebp, dword ptr [esp + 0x38] */
   4304     /* cmp ebp, ecx */ /* 0x470893E5: cmp ebp, ecx */
   4305     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx);
   4306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4307     _flag_k = FK_CMP;
   4308     MEM32(esp + 0x1C) = ecx; /* 0x470893E7: mov dword ptr [esp + 0x1c], ecx */
   4309     if (CMP_NE(_flag_a, _flag_b)) goto L_470893EF; /* 0x470893EB: jne 0x470893ef */
   4310 L_470893ED:
   4311     ebp = esi; /* 0x470893ED: mov ebp, esi */
   4312 L_470893EF:
   4313     eax = MEM32(esi + 0x10); /* 0x470893EF: mov eax, dword ptr [esi + 0x10] */
   4314     /* cmp eax, ecx */ /* 0x470893F2: cmp eax, ecx */
   4315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4317     _flag_k = FK_CMP;
   4318     if (CMP_BE(_flag_a, _flag_b)) goto L_4708941C; /* 0x470893F4: jbe 0x4708941c */
   4319 L_470893F6:
   4320     /* cmp MEM32(esp + 0x2C), ecx */ /* 0x470893F6: cmp dword ptr [esp + 0x2c], ecx */
   4321     _flag_a = (uint32_t)(MEM32(esp + 0x2C)); _flag_b = (uint32_t)(ecx);
   4322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4323     _flag_k = FK_CMP;
   4324     if (CMP_NE(_flag_a, _flag_b)) goto L_4708941C; /* 0x470893FA: jne 0x4708941c */
   4325 L_470893FC:
   4326     PUSH32(esp, edi); /* 0x470893FC: push edi */
   4327     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470893FD: call dword ptr [0x470ac190] */
   4328     RECOMP_FLAGS_IN();
   4329     edi = POP32_VAL(esp); /* 0x47089403: pop edi */
   4330     esi = POP32_VAL(esp); /* 0x47089404: pop esi */
   4331     eax = 1; /* 0x47089405: mov eax, 1 */
   4332     ebp = POP32_VAL(esp); /* 0x4708940A: pop ebp */
   4333     ecx = MEM32(esp + 0x8); /* 0x4708940B: mov ecx, dword ptr [esp + 8] */
   4334     MEM32(FS_BASE + (0)) = ecx; /* 0x4708940F: mov dword ptr fs:[0], ecx */
   4335     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4336     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4337     esp = esp + 0x14u; /* 0x47089416: add esp, 0x14 */
   4338     _flag_k = FK_ADD;
   4339     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x47089419: ret 0x28 */
   4340 L_4708941C:
   4341     /* cmp eax, ecx */ /* 0x4708941C: cmp eax, ecx */
   4342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4344     _flag_k = FK_CMP;
   4345     PUSH32(esp, ebx); /* 0x4708941E: push ebx */
   4346     ebx = MEM32(esp + 0x38); /* 0x4708941F: mov ebx, dword ptr [esp + 0x38] */
   4347     if (CMP_BE(_flag_a, _flag_b)) goto L_4708942D; /* 0x47089423: jbe 0x4708942d */
   4348 L_47089425:
   4349     /* cmp ebx, 0xFFFFFFFFu */ /* 0x47089425: cmp ebx, -1 */
   4350     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4351     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4352     _flag_k = FK_CMP;
   4353     if (CMP_EQ(_flag_a, _flag_b)) goto L_4708942D; /* 0x47089428: je 0x4708942d */
   4354 L_4708942A:
   4355     ebx = MEM32(esi + 0x1C); /* 0x4708942A: mov ebx, dword ptr [esi + 0x1c] */
   4356 L_4708942D:
   4357     edi = MEM32(esp + 0x2C); /* 0x4708942D: mov edi, dword ptr [esp + 0x2c] */
   4358     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4359     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4360     eax = eax + edi; /* 0x47089431: add eax, edi */
   4361     _flag_k = FK_ADD;
   4362     MEM32(esi + 0x10) = eax; /* 0x47089433: mov dword ptr [esi + 0x10], eax */
   4363     /* cmp MEM32(esi + 0x14), ecx */ /* 0x47089436: cmp dword ptr [esi + 0x14], ecx */
   4364     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(ecx);
   4365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4366     _flag_k = FK_CMP;
   4367     if (CMP_NE(_flag_a, _flag_b)) goto L_47089443; /* 0x47089439: jne 0x47089443 */
   4368 L_4708943B:
   4369     RECOMP_ICALL(0x4708A720u); /* 0x4708943B: call 0x4708a720 */ /* not lifted */
   4370     RECOMP_FLAGS_IN();
   4371     MEM32(esi + 0x14) = eax; /* 0x47089440: mov dword ptr [esi + 0x14], eax */
   4372 L_47089443:
   4373     eax = MEM32(esp + 0x4C); /* 0x47089443: mov eax, dword ptr [esp + 0x4c] */
   4374     /* test eax, eax */ /* 0x47089447: test eax, eax */
   4375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4376     _cf = 0;
   4377     _flag_k = FK_TEST;
   4378     if (TEST_NZ(_flag_a, _flag_b)) goto L_47089477; /* 0x47089449: jne 0x47089477 */
   4379 L_4708944B:
   4380     eax = MEM32(esp + 0x48); /* 0x4708944B: mov eax, dword ptr [esp + 0x48] */
   4381     ecx = MEM32(esp + 0x44); /* 0x4708944F: mov ecx, dword ptr [esp + 0x44] */
   4382     edx = MEM32(esp + 0x40); /* 0x47089453: mov edx, dword ptr [esp + 0x40] */
   4383     PUSH32(esp, eax); /* 0x47089457: push eax */
   4384     eax = MEM32(esp + 0x38); /* 0x47089458: mov eax, dword ptr [esp + 0x38] */
   4385     PUSH32(esp, ecx); /* 0x4708945C: push ecx */
   4386     ecx = MEM32(esp + 0x30); /* 0x4708945D: mov ecx, dword ptr [esp + 0x30] */
   4387     PUSH32(esp, edx); /* 0x47089461: push edx */
   4388     PUSH32(esp, ebp); /* 0x47089462: push ebp */
   4389     PUSH32(esp, ebx); /* 0x47089463: push ebx */
   4390     PUSH32(esp, eax); /* 0x47089464: push eax */
   4391     PUSH32(esp, ecx); /* 0x47089465: push ecx */
   4392     ecx = MEM32(esi + 0x14); /* 0x47089466: mov ecx, dword ptr [esi + 0x14] */
   4393     PUSH32(esp, esi); /* 0x47089469: push esi */
   4394     PUSH32(esp, 0x47089520u); /* 0x4708946A: push 0x47089520 */
   4395     PUSH32(esp, edi); /* 0x4708946F: push edi */
   4396     RECOMP_ICALL(0x4708B280u); /* 0x47089470: call 0x4708b280 */ /* not lifted */
   4397     RECOMP_FLAGS_IN();
   4398     goto L_470894A1; /* 0x47089475: jmp 0x470894a1 */
   4399 L_47089477:
   4400     edx = MEM32(esp + 0x40); /* 0x47089477: mov edx, dword ptr [esp + 0x40] */
   4401     ecx = MEM32(esp + 0x48); /* 0x4708947B: mov ecx, dword ptr [esp + 0x48] */
   4402     PUSH32(esp, edx); /* 0x4708947F: push edx */
   4403     edx = MEM32(esp + 0x48); /* 0x47089480: mov edx, dword ptr [esp + 0x48] */
   4404     PUSH32(esp, ecx); /* 0x47089484: push ecx */
   4405     ecx = MEM32(esp + 0x3C); /* 0x47089485: mov ecx, dword ptr [esp + 0x3c] */
   4406     PUSH32(esp, edx); /* 0x47089489: push edx */
   4407     edx = MEM32(esp + 0x34); /* 0x4708948A: mov edx, dword ptr [esp + 0x34] */
   4408     PUSH32(esp, ebx); /* 0x4708948E: push ebx */
   4409     PUSH32(esp, ecx); /* 0x4708948F: push ecx */
   4410     ecx = MEM32(esi + 0x14); /* 0x47089490: mov ecx, dword ptr [esi + 0x14] */
   4411     PUSH32(esp, edx); /* 0x47089493: push edx */
   4412     PUSH32(esp, esi); /* 0x47089494: push esi */
   4413     PUSH32(esp, 0x47089520u); /* 0x47089495: push 0x47089520 */
   4414     PUSH32(esp, edi); /* 0x4708949A: push edi */
   4415     PUSH32(esp, eax); /* 0x4708949B: push eax */
   4416     RECOMP_ICALL(0x4708B3A0u); /* 0x4708949C: call 0x4708b3a0 */ /* not lifted */
   4417     RECOMP_FLAGS_IN();
   4418 L_470894A1:
   4419     /* cmp eax, 0xFFFFFFFFu */ /* 0x470894A1: cmp eax, -1 */
   4420     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4422     _flag_k = FK_CMP;
   4423     ebx = POP32_VAL(esp); /* 0x470894A4: pop ebx */
   4424     if (CMP_NE(_flag_a, _flag_b)) goto L_470894D1; /* 0x470894A5: jne 0x470894d1 */
   4425 L_470894A7:
   4426     edx = MEM32(esi + 0x10); /* 0x470894A7: mov edx, dword ptr [esi + 0x10] */
   4427     eax = MEM32(esp + 0xC); /* 0x470894AA: mov eax, dword ptr [esp + 0xc] */
   4428     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   4429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4430     edx = edx - edi; /* 0x470894AE: sub edx, edi */
   4431     _flag_k = FK_CMP;
   4432     PUSH32(esp, eax); /* 0x470894B0: push eax */
   4433     MEM32(esi + 0x10) = edx; /* 0x470894B1: mov dword ptr [esi + 0x10], edx */
   4434     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470894B4: call dword ptr [0x470ac190] */
   4435     RECOMP_FLAGS_IN();
   4436     edi = POP32_VAL(esp); /* 0x470894BA: pop edi */
   4437     esi = POP32_VAL(esp); /* 0x470894BB: pop esi */
   4438     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4439     eax = eax | 0xFFFFFFFFu; /* 0x470894BC: or eax, 0xffffffff */
   4440     _cf = 0;
   4441     _flag_k = FK_TEST;
   4442     ebp = POP32_VAL(esp); /* 0x470894BF: pop ebp */
   4443     ecx = MEM32(esp + 0x8); /* 0x470894C0: mov ecx, dword ptr [esp + 8] */
   4444     MEM32(FS_BASE + (0)) = ecx; /* 0x470894C4: mov dword ptr fs:[0], ecx */
   4445     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4446     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4447     esp = esp + 0x14u; /* 0x470894CB: add esp, 0x14 */
   4448     _flag_k = FK_ADD;
   4449     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470894CE: ret 0x28 */
   4450 L_470894D1:
   4451     /* cmp MEM32(esi + 0x1C), 0xFFFFFFFFu */ /* 0x470894D1: cmp dword ptr [esi + 0x1c], -1 */
   4452     _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4454     _flag_k = FK_CMP;
   4455     if (CMP_NE(_flag_a, _flag_b)) goto L_470894DA; /* 0x470894D5: jne 0x470894da */
   4456 L_470894D7:
   4457     MEM32(esi + 0x1C) = eax; /* 0x470894D7: mov dword ptr [esi + 0x1c], eax */
   4458 L_470894DA:
   4459     ecx = MEM32(esp + 0xC); /* 0x470894DA: mov ecx, dword ptr [esp + 0xc] */
   4460     PUSH32(esp, ecx); /* 0x470894DE: push ecx */
   4461     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470894DF: call dword ptr [0x470ac190] */
   4462     RECOMP_FLAGS_IN();
   4463     ecx = MEM32(esp + 0x14); /* 0x470894E5: mov ecx, dword ptr [esp + 0x14] */
   4464     edi = POP32_VAL(esp); /* 0x470894E9: pop edi */
   4465     esi = POP32_VAL(esp); /* 0x470894EA: pop esi */
   4466     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4467     eax = 0; /* 0x470894EB: xor eax, eax */
   4468     _cf = 0;
   4469     _flag_k = FK_TEST;
   4470     ebp = POP32_VAL(esp); /* 0x470894ED: pop ebp */
   4471     MEM32(FS_BASE + (0)) = ecx; /* 0x470894EE: mov dword ptr fs:[0], ecx */
   4472     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4473     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4474     esp = esp + 0x14u; /* 0x470894F5: add esp, 0x14 */
   4475     _flag_k = FK_ADD;
   4476     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470894F8: ret 0x28 */
   4477     RECOMP_REGS_OUT();
   4478 }
   4479 
   4480 void sub_47089500(void) {
   4481     int _fpu_cmp = 0;
   4482     uint32_t _cf = 0;
   4483     int _df = 1;
   4484     uint32_t _flag_k = FK_NONE;
   4485     uint32_t _flag_a = 0, _flag_b = 0;
   4486     uint32_t _itail_tgt = 0;
   4487     RECOMP_REGS_LOCALS
   4488     RECOMP_ENTER(0x47089500u);
   4489 
   4490 L_47089500:
   4491     PUSH32(esp, esi); /* 0x47089500: push esi */
   4492     esi = MEM32(esp + 0x8); /* 0x47089501: mov esi, dword ptr [esp + 8] */
   4493     ecx = esi; /* 0x47089505: mov ecx, esi */
   4494     RECOMP_ICALL(0x47050AE0u); /* 0x47089507: call 0x47050ae0 */ /* not lifted */
   4495     RECOMP_FLAGS_IN();
   4496     eax = MEM32(esi); /* 0x4708950C: mov eax, dword ptr [esi] */
   4497     PUSH32(esp, 0); /* 0x4708950E: push 0 */
   4498     ecx = esi; /* 0x47089510: mov ecx, esi */
   4499     RECOMP_ICALL(MEM32(eax + 0x4C)); /* 0x47089512: call dword ptr [eax + 0x4c] */
   4500     RECOMP_FLAGS_IN();
   4501     esi = POP32_VAL(esp); /* 0x47089515: pop esi */
   4502     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47089516: ret  */
   4503     RECOMP_REGS_OUT();
   4504 }
   4505 
   4506 void sub_47089520(void) {
   4507     int _fpu_cmp = 0;
   4508     uint32_t _cf = 0;
   4509     int _df = 1;
   4510     uint32_t _flag_k = FK_NONE;
   4511     uint32_t _flag_a = 0, _flag_b = 0;
   4512     uint32_t _itail_tgt = 0;
   4513     RECOMP_REGS_LOCALS
   4514     RECOMP_ENTER(0x47089520u);
   4515 
   4516 L_47089520:
   4517     PUSH32(esp, ebx); /* 0x47089520: push ebx */
   4518     PUSH32(esp, ebp); /* 0x47089521: push ebp */
   4519     PUSH32(esp, esi); /* 0x47089522: push esi */
   4520     PUSH32(esp, edi); /* 0x47089523: push edi */
   4521     RECOMP_ICALL(0x47039020u); /* 0x47089524: call 0x47039020 */ /* not lifted */
   4522     RECOMP_FLAGS_IN();
   4523     ecx = eax; /* 0x47089529: mov ecx, eax */
   4524     RECOMP_ICALL(0x4703B0F0u); /* 0x4708952B: call 0x4703b0f0 */ /* not lifted */
   4525     RECOMP_FLAGS_IN();
   4526     ebx = eax; /* 0x47089530: mov ebx, eax */
   4527     /* test ebx, ebx */ /* 0x47089532: test ebx, ebx */
   4528     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4529     _cf = 0;
   4530     _flag_k = FK_TEST;
   4531     if (TEST_NZ(_flag_a, _flag_b)) goto L_47089599; /* 0x47089534: jne 0x47089599 */
   4532 L_47089536:
   4533     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47089536: call dword ptr [0x470ac150] */
   4534     RECOMP_FLAGS_IN();
   4535     edi = eax; /* 0x4708953C: mov edi, eax */
   4536     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708953E: call dword ptr [0x470ac3c8] */
   4537     RECOMP_FLAGS_IN();
   4538     eax = MEM32(eax); /* 0x47089544: mov eax, dword ptr [eax] */
   4539     /* test eax, eax */ /* 0x47089546: test eax, eax */
   4540     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4541     _cf = 0;
   4542     _flag_k = FK_TEST;
   4543     if (TEST_Z(_flag_a, _flag_b)) goto L_4708954C; /* 0x47089548: je 0x4708954c */
   4544 L_4708954A:
   4545     edi = eax; /* 0x4708954A: mov edi, eax */
   4546 L_4708954C:
   4547     RECOMP_ICALL(0x47039020u); /* 0x4708954C: call 0x47039020 */ /* not lifted */
   4548     RECOMP_FLAGS_IN();
   4549     esi = eax; /* 0x47089551: mov esi, eax */
   4550     ecx = esi; /* 0x47089553: mov ecx, esi */
   4551     RECOMP_ICALL(0x4703B210u); /* 0x47089555: call 0x4703b210 */ /* not lifted */
   4552     RECOMP_FLAGS_IN();
   4553     PUSH32(esp, eax); /* 0x4708955A: push eax */
   4554     ecx = esi; /* 0x4708955B: mov ecx, esi */
   4555     RECOMP_ICALL(0x4703B240u); /* 0x4708955D: call 0x4703b240 */ /* not lifted */
   4556     RECOMP_FLAGS_IN();
   4557     PUSH32(esp, eax); /* 0x47089562: push eax */
   4558     ecx = esi; /* 0x47089563: mov ecx, esi */
   4559     RECOMP_ICALL(0x4703B080u); /* 0x47089565: call 0x4703b080 */ /* not lifted */
   4560     RECOMP_FLAGS_IN();
   4561     PUSH32(esp, eax); /* 0x4708956A: push eax */
   4562     PUSH32(esp, edi); /* 0x4708956B: push edi */
   4563     PUSH32(esp, 0xFFFFFFFFu); /* 0x4708956C: push -1 */
   4564     PUSH32(esp, 0xECu); /* 0x4708956E: push 0xec */
   4565     PUSH32(esp, 0x47105140u); /* 0x47089573: push 0x47105140 */
   4566     ecx = esi; /* 0x47089578: mov ecx, esi */
   4567     RECOMP_ICALL(0x4703A340u); /* 0x4708957A: call 0x4703a340 */ /* not lifted */
   4568     RECOMP_FLAGS_IN();
   4569     PUSH32(esp, 0xFFFFFFFFu); /* 0x4708957F: push -1 */
   4570     PUSH32(esp, 0x47105134u); /* 0x47089581: push 0x47105134 */
   4571     PUSH32(esp, 0x47104AA4u); /* 0x47089586: push 0x47104aa4 */
   4572     PUSH32(esp, 0x80u); /* 0x4708958B: push 0x80 */
   4573     PUSH32(esp, esi); /* 0x47089590: push esi */
   4574     RECOMP_ICALL(0x47039830u); /* 0x47089591: call 0x47039830 */ /* not lifted */
   4575     RECOMP_FLAGS_IN();
   4576     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4577     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4578     esp = esp + 0x14u; /* 0x47089596: add esp, 0x14 */
   4579     _flag_k = FK_ADD;
   4580 L_47089599:
   4581     edi = MEM32(esp + 0x14); /* 0x47089599: mov edi, dword ptr [esp + 0x14] */
   4582     PUSH32(esp, 0); /* 0x4708959D: push 0 */
   4583     PUSH32(esp, 0x47089500u); /* 0x4708959F: push 0x47089500 */
   4584     PUSH32(esp, edi); /* 0x470895A4: push edi */
   4585     ecx = ebx; /* 0x470895A5: mov ecx, ebx */
   4586     RECOMP_ICALL(0x47089DC0u); /* 0x470895A7: call 0x47089dc0 */ /* not lifted */
   4587     RECOMP_FLAGS_IN();
   4588     eax = MEM32(edi); /* 0x470895AC: mov eax, dword ptr [edi] */
   4589     ecx = edi; /* 0x470895AE: mov ecx, edi */
   4590     RECOMP_ICALL(MEM32(eax + 0x58)); /* 0x470895B0: call dword ptr [eax + 0x58] */
   4591     RECOMP_FLAGS_IN();
   4592     ecx = edi; /* 0x470895B3: mov ecx, edi */
   4593     MEM32(esp + 0x14) = eax; /* 0x470895B5: mov dword ptr [esp + 0x14], eax */
   4594     RECOMP_ICALL(0x47050AE0u); /* 0x470895B9: call 0x47050ae0 */ /* not lifted */
   4595     RECOMP_FLAGS_IN();
   4596     edx = MEM32(edi); /* 0x470895BE: mov edx, dword ptr [edi] */
   4597     PUSH32(esp, 0); /* 0x470895C0: push 0 */
   4598     ecx = edi; /* 0x470895C2: mov ecx, edi */
   4599     RECOMP_ICALL(MEM32(edx + 0x4C)); /* 0x470895C4: call dword ptr [edx + 0x4c] */
   4600     RECOMP_FLAGS_IN();
   4601     RECOMP_ICALL(0x47039020u); /* 0x470895C7: call 0x47039020 */ /* not lifted */
   4602     RECOMP_FLAGS_IN();
   4603     ecx = eax; /* 0x470895CC: mov ecx, eax */
   4604     RECOMP_ICALL(0x4703B0F0u); /* 0x470895CE: call 0x4703b0f0 */ /* not lifted */
   4605     RECOMP_FLAGS_IN();
   4606     ebp = eax; /* 0x470895D3: mov ebp, eax */
   4607     /* test ebp, ebp */ /* 0x470895D5: test ebp, ebp */
   4608     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   4609     _cf = 0;
   4610     _flag_k = FK_TEST;
   4611     if (TEST_NZ(_flag_a, _flag_b)) goto L_4708963C; /* 0x470895D7: jne 0x4708963c */
   4612 L_470895D9:
   4613     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470895D9: call dword ptr [0x470ac150] */
   4614     RECOMP_FLAGS_IN();
   4615     ebx = eax; /* 0x470895DF: mov ebx, eax */
   4616     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470895E1: call dword ptr [0x470ac3c8] */
   4617     RECOMP_FLAGS_IN();
   4618     eax = MEM32(eax); /* 0x470895E7: mov eax, dword ptr [eax] */
   4619     /* test eax, eax */ /* 0x470895E9: test eax, eax */
   4620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4621     _cf = 0;
   4622     _flag_k = FK_TEST;
   4623     if (TEST_Z(_flag_a, _flag_b)) goto L_470895EF; /* 0x470895EB: je 0x470895ef */
   4624 L_470895ED:
   4625     ebx = eax; /* 0x470895ED: mov ebx, eax */
   4626 L_470895EF:
   4627     RECOMP_ICALL(0x47039020u); /* 0x470895EF: call 0x47039020 */ /* not lifted */
   4628     RECOMP_FLAGS_IN();
   4629     esi = eax; /* 0x470895F4: mov esi, eax */
   4630     ecx = esi; /* 0x470895F6: mov ecx, esi */
   4631     RECOMP_ICALL(0x4703B210u); /* 0x470895F8: call 0x4703b210 */ /* not lifted */
   4632     RECOMP_FLAGS_IN();
   4633     PUSH32(esp, eax); /* 0x470895FD: push eax */
   4634     ecx = esi; /* 0x470895FE: mov ecx, esi */
   4635     RECOMP_ICALL(0x4703B240u); /* 0x47089600: call 0x4703b240 */ /* not lifted */
   4636     RECOMP_FLAGS_IN();
   4637     PUSH32(esp, eax); /* 0x47089605: push eax */
   4638     ecx = esi; /* 0x47089606: mov ecx, esi */
   4639     RECOMP_ICALL(0x4703B080u); /* 0x47089608: call 0x4703b080 */ /* not lifted */
   4640     RECOMP_FLAGS_IN();
   4641     PUSH32(esp, eax); /* 0x4708960D: push eax */
   4642     PUSH32(esp, ebx); /* 0x4708960E: push ebx */
   4643     PUSH32(esp, 0xFFFFFFFFu); /* 0x4708960F: push -1 */
   4644     PUSH32(esp, 0xECu); /* 0x47089611: push 0xec */
   4645     PUSH32(esp, 0x47105140u); /* 0x47089616: push 0x47105140 */
   4646     ecx = esi; /* 0x4708961B: mov ecx, esi */
   4647     RECOMP_ICALL(0x4703A340u); /* 0x4708961D: call 0x4703a340 */ /* not lifted */
   4648     RECOMP_FLAGS_IN();
   4649     PUSH32(esp, 0xFFFFFFFFu); /* 0x47089622: push -1 */
   4650     PUSH32(esp, 0x47105134u); /* 0x47089624: push 0x47105134 */
   4651     PUSH32(esp, 0x47104AA4u); /* 0x47089629: push 0x47104aa4 */
   4652     PUSH32(esp, 0x80u); /* 0x4708962E: push 0x80 */
   4653     PUSH32(esp, esi); /* 0x47089633: push esi */
   4654     RECOMP_ICALL(0x47039830u); /* 0x47089634: call 0x47039830 */ /* not lifted */
   4655     RECOMP_FLAGS_IN();
   4656     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4658     esp = esp + 0x14u; /* 0x47089639: add esp, 0x14 */
   4659     _flag_k = FK_ADD;
   4660 L_4708963C:
   4661     PUSH32(esp, 0); /* 0x4708963C: push 0 */
   4662     PUSH32(esp, 0); /* 0x4708963E: push 0 */
   4663     PUSH32(esp, edi); /* 0x47089640: push edi */
   4664     ecx = ebp; /* 0x47089641: mov ecx, ebp */
   4665     RECOMP_ICALL(0x47089DC0u); /* 0x47089643: call 0x47089dc0 */ /* not lifted */
   4666     RECOMP_FLAGS_IN();
   4667     eax = MEM32(esp + 0x14); /* 0x47089648: mov eax, dword ptr [esp + 0x14] */
   4668     edi = POP32_VAL(esp); /* 0x4708964C: pop edi */
   4669     esi = POP32_VAL(esp); /* 0x4708964D: pop esi */
   4670     ebp = POP32_VAL(esp); /* 0x4708964E: pop ebp */
   4671     ebx = POP32_VAL(esp); /* 0x4708964F: pop ebx */
   4672     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47089650: ret  */
   4673     RECOMP_REGS_OUT();
   4674 }
   4675 
   4676 void sub_47089660(void) {
   4677     int _fpu_cmp = 0;
   4678     uint32_t _cf = 0;
   4679     int _df = 1;
   4680     uint32_t _flag_k = FK_NONE;
   4681     uint32_t _flag_a = 0, _flag_b = 0;
   4682     uint32_t _itail_tgt = 0;
   4683     RECOMP_REGS_LOCALS
   4684     RECOMP_ENTER(0x47089660u);
   4685 
   4686 L_47089660:
   4687     eax = MEM32(ecx); /* 0x47089660: mov eax, dword ptr [ecx] */
   4688     PUSH32(esp, 1); /* 0x47089662: push 1 */
   4689     RECOMP_ICALL(MEM32(eax + 0x4C)); /* 0x47089664: call dword ptr [eax + 0x4c] */
   4690     RECOMP_FLAGS_IN();
   4691     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47089667: ret  */
   4692     RECOMP_REGS_OUT();
   4693 }
   4694 
   4695 void sub_47089670(void) {
   4696     int _fpu_cmp = 0;
   4697     uint32_t _cf = 0;
   4698     int _df = 1;
   4699     uint32_t _flag_k = FK_NONE;
   4700     uint32_t _flag_a = 0, _flag_b = 0;
   4701     uint32_t _itail_tgt = 0;
   4702     RECOMP_REGS_LOCALS
   4703     RECOMP_ENTER(0x47089670u);
   4704 
   4705     goto L_47089670;
   4706 L_470891B0:
   4707     PUSH32(esp, ebx); /* 0x470891B0: push ebx */
   4708     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470891B1: mov bl, byte ptr [esp + 8] */
   4709     /* test LO8(ebx), 2 */ /* 0x470891B5: test bl, 2 */
   4710     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4711     _cf = 0;
   4712     _flag_k = FK_NARROW(FK_TEST, 24);
   4713     PUSH32(esp, esi); /* 0x470891B8: push esi */
   4714     esi = ecx; /* 0x470891B9: mov esi, ecx */
   4715     if (TEST_Z(_flag_a, _flag_b)) goto L_470891E8; /* 0x470891BB: je 0x470891e8 */
   4716 L_470891BD:
   4717     eax = MEM32(esi + (-0x4)); /* 0x470891BD: mov eax, dword ptr [esi - 4] */
   4718     PUSH32(esp, edi); /* 0x470891C0: push edi */
   4719     PUSH32(esp, 0x47089150u); /* 0x470891C1: push 0x47089150 */
   4720     edi = esi + (-0x4); /* 0x470891C6: lea edi, [esi - 4] */
   4721     PUSH32(esp, eax); /* 0x470891C9: push eax */
   4722     PUSH32(esp, 0x3Cu); /* 0x470891CA: push 0x3c */
   4723     PUSH32(esp, esi); /* 0x470891CC: push esi */
   4724     RECOMP_ICALL(0x470A32EBu); /* 0x470891CD: call 0x470a32eb */ /* not lifted */
   4725     RECOMP_FLAGS_IN();
   4726     /* test LO8(ebx), 1 */ /* 0x470891D2: test bl, 1 */
   4727     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4728     _cf = 0;
   4729     _flag_k = FK_NARROW(FK_TEST, 24);
   4730     if (TEST_Z(_flag_a, _flag_b)) goto L_470891E0; /* 0x470891D5: je 0x470891e0 */
   4731 L_470891D7:
   4732     PUSH32(esp, edi); /* 0x470891D7: push edi */
   4733     RECOMP_ICALL(0x470A32A2u); /* 0x470891D8: call 0x470a32a2 */ /* not lifted */
   4734     RECOMP_FLAGS_IN();
   4735     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4736     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4737     esp = esp + 4; /* 0x470891DD: add esp, 4 */
   4738     _flag_k = FK_ADD;
   4739 L_470891E0:
   4740     eax = edi; /* 0x470891E0: mov eax, edi */
   4741     edi = POP32_VAL(esp); /* 0x470891E2: pop edi */
   4742     esi = POP32_VAL(esp); /* 0x470891E3: pop esi */
   4743     ebx = POP32_VAL(esp); /* 0x470891E4: pop ebx */
   4744     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470891E5: ret 4 */
   4745 L_470891E8:
   4746     ecx = esi; /* 0x470891E8: mov ecx, esi */
   4747     RECOMP_ICALL(0x47089150u); /* 0x470891EA: call 0x47089150 */ /* not lifted */
   4748     RECOMP_FLAGS_IN();
   4749     /* test LO8(ebx), 1 */ /* 0x470891EF: test bl, 1 */
   4750     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4751     _cf = 0;
   4752     _flag_k = FK_NARROW(FK_TEST, 24);
   4753     if (TEST_Z(_flag_a, _flag_b)) goto L_470891FD; /* 0x470891F2: je 0x470891fd */
   4754 L_470891F4:
   4755     PUSH32(esp, esi); /* 0x470891F4: push esi */
   4756     RECOMP_ICALL(0x470A32A2u); /* 0x470891F5: call 0x470a32a2 */ /* not lifted */
   4757     RECOMP_FLAGS_IN();
   4758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4760     esp = esp + 4; /* 0x470891FA: add esp, 4 */
   4761     _flag_k = FK_ADD;
   4762 L_470891FD:
   4763     eax = esi; /* 0x470891FD: mov eax, esi */
   4764     esi = POP32_VAL(esp); /* 0x470891FF: pop esi */
   4765     ebx = POP32_VAL(esp); /* 0x47089200: pop ebx */
   4766     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47089201: ret 4 */
   4767 L_47089670:
   4768     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   4769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4770     ecx = ecx - 0xCu; /* 0x47089670: sub ecx, 0xc */
   4771     _flag_k = FK_CMP;
   4772     RECOMP_BACKEDGE();
   4773     goto L_470891B0; /* 0x47089673: jmp 0x470891b0 */
   4774     { RECOMP_REGS_OUT(); return; } /* end of function */
   4775     RECOMP_REGS_OUT();
   4776 }
   4777 
   4778 void sub_47089680(void) {
   4779     int _fpu_cmp = 0;
   4780     uint32_t _cf = 0;
   4781     int _df = 1;
   4782     uint32_t _flag_k = FK_NONE;
   4783     uint32_t _flag_a = 0, _flag_b = 0;
   4784     uint32_t _itail_tgt = 0;
   4785     RECOMP_REGS_LOCALS
   4786     RECOMP_ENTER(0x47089680u);
   4787 
   4788 L_47089680:
   4789     ecx = 0x4710F9C9u; /* 0x47089680: mov ecx, 0x4710f9c9 */
   4790     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47089685: call dword ptr [0x470ac1c8] */
   4791     RECOMP_FLAGS_IN();
   4792     PUSH32(esp, 0x470896A0u); /* 0x4708968B: push 0x470896a0 */
   4793     RECOMP_ICALL(0x470A32D9u); /* 0x47089690: call 0x470a32d9 */ /* not lifted */
   4794     RECOMP_FLAGS_IN();
   4795     ecx = POP32_VAL(esp); /* 0x47089695: pop ecx */
   4796     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47089696: ret  */
   4797     RECOMP_REGS_OUT();
   4798 }