aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0032.c (269701B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_470448B7(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(0x470448B7u);
     13 
     14 L_470448B7:
     15     ecx = MEM32(esp + 0x18); /* 0x470448B7: mov ecx, dword ptr [esp + 0x18] */
     16     edi = POP32_VAL(esp); /* 0x470448BB: pop edi */
     17     esi = POP32_VAL(esp); /* 0x470448BC: pop esi */
     18     ebp = POP32_VAL(esp); /* 0x470448BD: pop ebp */
     19     ebx = POP32_VAL(esp); /* 0x470448BE: pop ebx */
     20     MEM32(FS_BASE + (0)) = ecx; /* 0x470448BF: mov dword ptr fs:[0], ecx */
     21     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     22     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     23     esp = esp + 0x14u; /* 0x470448C6: add esp, 0x14 */
     24     _flag_k = FK_ADD;
     25     RECOMP_FLAGS_OUT(); esp += 56; { RECOMP_REGS_OUT(); return; } /* 0x470448C9: ret 0x34 */
     26     RECOMP_REGS_OUT();
     27 }
     28 
     29 void sub_470448D0(void) {
     30     int _fpu_cmp = 0;
     31     uint32_t _cf = 0;
     32     int _df = 1;
     33     uint32_t _flag_k = FK_NONE;
     34     uint32_t _flag_a = 0, _flag_b = 0;
     35     uint32_t _itail_tgt = 0;
     36     RECOMP_REGS_LOCALS
     37     RECOMP_ENTER(0x470448D0u);
     38 
     39 L_470448D0:
     40     PUSH32(esp, esi); /* 0x470448D0: push esi */
     41     esi = ecx; /* 0x470448D1: mov esi, ecx */
     42     /* cmp MEM32(esi + 0x20), 1 */ /* 0x470448D3: cmp dword ptr [esi + 0x20], 1 */
     43     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(1);
     44     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     45     _flag_k = FK_CMP;
     46     MEM32(esi) = 0x470AD67Cu; /* 0x470448D7: mov dword ptr [esi], 0x470ad67c */
     47     if (CMP_LE(_flag_a, _flag_b)) goto L_47044946; /* 0x470448DD: jle 0x47044946 */
     48 L_470448DF:
     49     PUSH32(esp, ebp); /* 0x470448DF: push ebp */
     50     PUSH32(esp, edi); /* 0x470448E0: push edi */
     51     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470448E1: call dword ptr [0x470ac150] */
     52     RECOMP_FLAGS_IN();
     53     ebp = eax; /* 0x470448E7: mov ebp, eax */
     54     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470448E9: call dword ptr [0x470ac3c8] */
     55     RECOMP_FLAGS_IN();
     56     eax = MEM32(eax); /* 0x470448EF: mov eax, dword ptr [eax] */
     57     /* test eax, eax */ /* 0x470448F1: test eax, eax */
     58     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     59     _cf = 0;
     60     _flag_k = FK_TEST;
     61     if (TEST_Z(_flag_a, _flag_b)) goto L_470448F7; /* 0x470448F3: je 0x470448f7 */
     62 L_470448F5:
     63     ebp = eax; /* 0x470448F5: mov ebp, eax */
     64 L_470448F7:
     65     RECOMP_ICALL(0x47039020u); /* 0x470448F7: call 0x47039020 */ /* not lifted */
     66     RECOMP_FLAGS_IN();
     67     edi = eax; /* 0x470448FC: mov edi, eax */
     68     ecx = edi; /* 0x470448FE: mov ecx, edi */
     69     RECOMP_ICALL(0x4703B210u); /* 0x47044900: call 0x4703b210 */ /* not lifted */
     70     RECOMP_FLAGS_IN();
     71     PUSH32(esp, eax); /* 0x47044905: push eax */
     72     ecx = edi; /* 0x47044906: mov ecx, edi */
     73     RECOMP_ICALL(0x4703B240u); /* 0x47044908: call 0x4703b240 */ /* not lifted */
     74     RECOMP_FLAGS_IN();
     75     PUSH32(esp, eax); /* 0x4704490D: push eax */
     76     ecx = edi; /* 0x4704490E: mov ecx, edi */
     77     RECOMP_ICALL(0x4703B080u); /* 0x47044910: call 0x4703b080 */ /* not lifted */
     78     RECOMP_FLAGS_IN();
     79     PUSH32(esp, eax); /* 0x47044915: push eax */
     80     PUSH32(esp, ebp); /* 0x47044916: push ebp */
     81     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044917: push -1 */
     82     PUSH32(esp, 0x247u); /* 0x47044919: push 0x247 */
     83     PUSH32(esp, 0x471082E0u); /* 0x4704491E: push 0x471082e0 */
     84     ecx = edi; /* 0x47044923: mov ecx, edi */
     85     RECOMP_ICALL(0x4703A340u); /* 0x47044925: call 0x4703a340 */ /* not lifted */
     86     RECOMP_FLAGS_IN();
     87     PUSH32(esp, 0xFFFFFFFFu); /* 0x4704492A: push -1 */
     88     PUSH32(esp, 0x471083A0u); /* 0x4704492C: push 0x471083a0 */
     89     PUSH32(esp, 0x47104AA4u); /* 0x47044931: push 0x47104aa4 */
     90     PUSH32(esp, 0x80u); /* 0x47044936: push 0x80 */
     91     PUSH32(esp, edi); /* 0x4704493B: push edi */
     92     RECOMP_ICALL(0x47039830u); /* 0x4704493C: call 0x47039830 */ /* not lifted */
     93     RECOMP_FLAGS_IN();
     94     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     95     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     96     esp = esp + 0x14u; /* 0x47044941: add esp, 0x14 */
     97     _flag_k = FK_ADD;
     98     edi = POP32_VAL(esp); /* 0x47044944: pop edi */
     99     ebp = POP32_VAL(esp); /* 0x47044945: pop ebp */
    100 L_47044946:
    101     /* test MEM8(esi + 0x10), 1 */ /* 0x47044946: test byte ptr [esi + 0x10], 1 */
    102     _flag_a = (uint32_t)(MEM8(esi + 0x10)) << 24; _flag_b = (uint32_t)(1) << 24;
    103     _cf = 0;
    104     _flag_k = FK_NARROW(FK_TEST, 24);
    105     MEM32(esi + 0x20) = 0; /* 0x4704494A: mov dword ptr [esi + 0x20], 0 */
    106     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044966; /* 0x47044951: jne 0x47044966 */
    107 L_47044953:
    108     ecx = MEM32(esi + 0x18); /* 0x47044953: mov ecx, dword ptr [esi + 0x18] */
    109     edx = MEM32(esi + 0x14); /* 0x47044956: mov edx, dword ptr [esi + 0x14] */
    110     eax = MEM32(ecx); /* 0x47044959: mov eax, dword ptr [ecx] */
    111     PUSH32(esp, edx); /* 0x4704495B: push edx */
    112     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4704495C: call dword ptr [eax + 0xc] */
    113     RECOMP_FLAGS_IN();
    114     MEM32(esi + 0x14) = 0; /* 0x4704495F: mov dword ptr [esi + 0x14], 0 */
    115 L_47044966:
    116     esi = POP32_VAL(esp); /* 0x47044966: pop esi */
    117     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044967: ret  */
    118     RECOMP_REGS_OUT();
    119 }
    120 
    121 void sub_47044970(void) {
    122     int _fpu_cmp = 0;
    123     uint32_t _cf = 0;
    124     int _df = 1;
    125     uint32_t _flag_k = FK_NONE;
    126     uint32_t _flag_a = 0, _flag_b = 0;
    127     uint32_t _itail_tgt = 0;
    128     RECOMP_REGS_LOCALS
    129     RECOMP_ENTER(0x47044970u);
    130 
    131 L_47044970:
    132     PUSH32(esp, esi); /* 0x47044970: push esi */
    133     PUSH32(esp, edi); /* 0x47044971: push edi */
    134     edi = ecx; /* 0x47044972: mov edi, ecx */
    135     eax = MEM32(edi + 0x20); /* 0x47044974: mov eax, dword ptr [edi + 0x20] */
    136     /* test eax, eax */ /* 0x47044977: test eax, eax */
    137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    138     _cf = 0;
    139     _flag_k = FK_TEST;
    140     if (TEST_G(_flag_a, _flag_b)) goto L_470449E0; /* 0x47044979: jg 0x470449e0 */
    141 L_4704497B:
    142     PUSH32(esp, ebx); /* 0x4704497B: push ebx */
    143     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704497C: call dword ptr [0x470ac150] */
    144     RECOMP_FLAGS_IN();
    145     ebx = eax; /* 0x47044982: mov ebx, eax */
    146     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044984: call dword ptr [0x470ac3c8] */
    147     RECOMP_FLAGS_IN();
    148     eax = MEM32(eax); /* 0x4704498A: mov eax, dword ptr [eax] */
    149     /* test eax, eax */ /* 0x4704498C: test eax, eax */
    150     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    151     _cf = 0;
    152     _flag_k = FK_TEST;
    153     if (TEST_Z(_flag_a, _flag_b)) goto L_47044992; /* 0x4704498E: je 0x47044992 */
    154 L_47044990:
    155     ebx = eax; /* 0x47044990: mov ebx, eax */
    156 L_47044992:
    157     RECOMP_ICALL(0x47039020u); /* 0x47044992: call 0x47039020 */ /* not lifted */
    158     RECOMP_FLAGS_IN();
    159     esi = eax; /* 0x47044997: mov esi, eax */
    160     ecx = esi; /* 0x47044999: mov ecx, esi */
    161     RECOMP_ICALL(0x4703B210u); /* 0x4704499B: call 0x4703b210 */ /* not lifted */
    162     RECOMP_FLAGS_IN();
    163     PUSH32(esp, eax); /* 0x470449A0: push eax */
    164     ecx = esi; /* 0x470449A1: mov ecx, esi */
    165     RECOMP_ICALL(0x4703B240u); /* 0x470449A3: call 0x4703b240 */ /* not lifted */
    166     RECOMP_FLAGS_IN();
    167     PUSH32(esp, eax); /* 0x470449A8: push eax */
    168     ecx = esi; /* 0x470449A9: mov ecx, esi */
    169     RECOMP_ICALL(0x4703B080u); /* 0x470449AB: call 0x4703b080 */ /* not lifted */
    170     RECOMP_FLAGS_IN();
    171     PUSH32(esp, eax); /* 0x470449B0: push eax */
    172     PUSH32(esp, ebx); /* 0x470449B1: push ebx */
    173     PUSH32(esp, 0xFFFFFFFFu); /* 0x470449B2: push -1 */
    174     PUSH32(esp, 0x259u); /* 0x470449B4: push 0x259 */
    175     PUSH32(esp, 0x471082E0u); /* 0x470449B9: push 0x471082e0 */
    176     ecx = esi; /* 0x470449BE: mov ecx, esi */
    177     RECOMP_ICALL(0x4703A340u); /* 0x470449C0: call 0x4703a340 */ /* not lifted */
    178     RECOMP_FLAGS_IN();
    179     PUSH32(esp, 0xFFFFFFFFu); /* 0x470449C5: push -1 */
    180     PUSH32(esp, 0x471083D0u); /* 0x470449C7: push 0x471083d0 */
    181     PUSH32(esp, 0x47104AA4u); /* 0x470449CC: push 0x47104aa4 */
    182     PUSH32(esp, 0x80u); /* 0x470449D1: push 0x80 */
    183     PUSH32(esp, esi); /* 0x470449D6: push esi */
    184     RECOMP_ICALL(0x47039830u); /* 0x470449D7: call 0x47039830 */ /* not lifted */
    185     RECOMP_FLAGS_IN();
    186     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    187     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    188     esp = esp + 0x14u; /* 0x470449DC: add esp, 0x14 */
    189     _flag_k = FK_ADD;
    190     ebx = POP32_VAL(esp); /* 0x470449DF: pop ebx */
    191 L_470449E0:
    192     esi = MEM32(edi + 0x20); /* 0x470449E0: mov esi, dword ptr [edi + 0x20] */
    193     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    194     esi = esi - 1; /* 0x470449E3: dec esi */
    195     _flag_k = FK_DEC;
    196     eax = esi; /* 0x470449E4: mov eax, esi */
    197     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    198     _cf = (eax) != 0;
    199     eax = (uint32_t)(-(int32_t)eax); /* 0x470449E6: neg eax */
    200     _flag_k = FK_CMP;
    201     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470449E8: sbb eax, eax */
    202       eax = _sc ? 0xFFFFFFFFu : 0;
    203       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    204       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    205     MEM32(edi + 0x20) = esi; /* 0x470449EA: mov dword ptr [edi + 0x20], esi */
    206     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    207     eax = eax & edi; /* 0x470449ED: and eax, edi */
    208     _cf = 0;
    209     _flag_k = FK_TEST;
    210     edi = POP32_VAL(esp); /* 0x470449EF: pop edi */
    211     esi = POP32_VAL(esp); /* 0x470449F0: pop esi */
    212     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470449F1: ret  */
    213     RECOMP_REGS_OUT();
    214 }
    215 
    216 void sub_47044A00(void) {
    217     int _fpu_cmp = 0;
    218     uint32_t _cf = 0;
    219     int _df = 1;
    220     uint32_t _flag_k = FK_NONE;
    221     uint32_t _flag_a = 0, _flag_b = 0;
    222     uint32_t _itail_tgt = 0;
    223     RECOMP_REGS_LOCALS
    224     RECOMP_ENTER(0x47044A00u);
    225 
    226 L_47044A00:
    227     eax = MEM32(FS_BASE + (0)); /* 0x47044A00: mov eax, dword ptr fs:[0] */
    228     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044A06: push -1 */
    229     PUSH32(esp, 0x470A6638u); /* 0x47044A08: push 0x470a6638 */
    230     PUSH32(esp, eax); /* 0x47044A0D: push eax */
    231     eax = MEM32(esp + 0x10); /* 0x47044A0E: mov eax, dword ptr [esp + 0x10] */
    232     MEM32(FS_BASE + (0)) = esp; /* 0x47044A12: mov dword ptr fs:[0], esp */
    233     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    235     esp = esp - 8; /* 0x47044A19: sub esp, 8 */
    236     _flag_k = FK_CMP;
    237     /* test eax, eax */ /* 0x47044A1C: test eax, eax */
    238     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    239     _cf = 0;
    240     _flag_k = FK_TEST;
    241     PUSH32(esp, ebx); /* 0x47044A1E: push ebx */
    242     PUSH32(esp, esi); /* 0x47044A1F: push esi */
    243     esi = ecx; /* 0x47044A20: mov esi, ecx */
    244     PUSH32(esp, edi); /* 0x47044A22: push edi */
    245     edi = MEM32(esi + 0x1C); /* 0x47044A23: mov edi, dword ptr [esi + 0x1c] */
    246     if (TEST_Z(_flag_a, _flag_b)) goto L_47044A30; /* 0x47044A26: je 0x47044a30 */
    247 L_47044A28:
    248     /* cmp eax, edi */ /* 0x47044A28: cmp eax, edi */
    249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    251     _flag_k = FK_CMP;
    252     if (CMP_EQ(_flag_a, _flag_b)) goto L_47044AF8; /* 0x47044A2A: je 0x47044af8 */
    253 L_47044A30:
    254     /* test edi, edi */ /* 0x47044A30: test edi, edi */
    255     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    256     _cf = 0;
    257     _flag_k = FK_TEST;
    258     if (TEST_Z(_flag_a, _flag_b)) goto L_47044AF8; /* 0x47044A32: je 0x47044af8 */
    259 L_47044A38:
    260     eax = MEM32(edi); /* 0x47044A38: mov eax, dword ptr [edi] */
    261     ecx = edi; /* 0x47044A3A: mov ecx, edi */
    262     MEM32(esp + 0xC) = edi; /* 0x47044A3C: mov dword ptr [esp + 0xc], edi */
    263     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47044A40: call dword ptr [eax + 8] */
    264     RECOMP_FLAGS_IN();
    265     MEM32(esp + 0x10) = eax; /* 0x47044A43: mov dword ptr [esp + 0x10], eax */
    266     /* cmp eax, 0xFFFFFFFFu */ /* 0x47044A47: cmp eax, -1 */
    267     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    269     _flag_k = FK_CMP;
    270     MEM32(esp + 0x1C) = 0; /* 0x47044A4A: mov dword ptr [esp + 0x1c], 0 */
    271     if (CMP_NE(_flag_a, _flag_b)) goto L_47044A6A; /* 0x47044A52: jne 0x47044a6a */
    272 L_47044A54:
    273     edi = POP32_VAL(esp); /* 0x47044A54: pop edi */
    274     esi = POP32_VAL(esp); /* 0x47044A55: pop esi */
    275     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    276     eax = 0; /* 0x47044A56: xor eax, eax */
    277     _cf = 0;
    278     _flag_k = FK_TEST;
    279     ebx = POP32_VAL(esp); /* 0x47044A58: pop ebx */
    280     ecx = MEM32(esp + 0x8); /* 0x47044A59: mov ecx, dword ptr [esp + 8] */
    281     MEM32(FS_BASE + (0)) = ecx; /* 0x47044A5D: mov dword ptr fs:[0], ecx */
    282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    283     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    284     esp = esp + 0x14u; /* 0x47044A64: add esp, 0x14 */
    285     _flag_k = FK_ADD;
    286     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044A67: ret 4 */
    287 L_47044A6A:
    288     eax = MEM32(esi + 0x20); /* 0x47044A6A: mov eax, dword ptr [esi + 0x20] */
    289     /* test eax, eax */ /* 0x47044A6D: test eax, eax */
    290     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    291     _cf = 0;
    292     _flag_k = FK_TEST;
    293     if (TEST_G(_flag_a, _flag_b)) goto L_47044AD6; /* 0x47044A6F: jg 0x47044ad6 */
    294 L_47044A71:
    295     PUSH32(esp, ebp); /* 0x47044A71: push ebp */
    296     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47044A72: call dword ptr [0x470ac150] */
    297     RECOMP_FLAGS_IN();
    298     ebp = eax; /* 0x47044A78: mov ebp, eax */
    299     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044A7A: call dword ptr [0x470ac3c8] */
    300     RECOMP_FLAGS_IN();
    301     eax = MEM32(eax); /* 0x47044A80: mov eax, dword ptr [eax] */
    302     /* test eax, eax */ /* 0x47044A82: test eax, eax */
    303     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    304     _cf = 0;
    305     _flag_k = FK_TEST;
    306     if (TEST_Z(_flag_a, _flag_b)) goto L_47044A88; /* 0x47044A84: je 0x47044a88 */
    307 L_47044A86:
    308     ebp = eax; /* 0x47044A86: mov ebp, eax */
    309 L_47044A88:
    310     RECOMP_ICALL(0x47039020u); /* 0x47044A88: call 0x47039020 */ /* not lifted */
    311     RECOMP_FLAGS_IN();
    312     ebx = eax; /* 0x47044A8D: mov ebx, eax */
    313     ecx = ebx; /* 0x47044A8F: mov ecx, ebx */
    314     RECOMP_ICALL(0x4703B210u); /* 0x47044A91: call 0x4703b210 */ /* not lifted */
    315     RECOMP_FLAGS_IN();
    316     PUSH32(esp, eax); /* 0x47044A96: push eax */
    317     ecx = ebx; /* 0x47044A97: mov ecx, ebx */
    318     RECOMP_ICALL(0x4703B240u); /* 0x47044A99: call 0x4703b240 */ /* not lifted */
    319     RECOMP_FLAGS_IN();
    320     PUSH32(esp, eax); /* 0x47044A9E: push eax */
    321     ecx = ebx; /* 0x47044A9F: mov ecx, ebx */
    322     RECOMP_ICALL(0x4703B080u); /* 0x47044AA1: call 0x4703b080 */ /* not lifted */
    323     RECOMP_FLAGS_IN();
    324     PUSH32(esp, eax); /* 0x47044AA6: push eax */
    325     PUSH32(esp, ebp); /* 0x47044AA7: push ebp */
    326     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044AA8: push -1 */
    327     PUSH32(esp, 0x259u); /* 0x47044AAA: push 0x259 */
    328     PUSH32(esp, 0x471082E0u); /* 0x47044AAF: push 0x471082e0 */
    329     ecx = ebx; /* 0x47044AB4: mov ecx, ebx */
    330     RECOMP_ICALL(0x4703A340u); /* 0x47044AB6: call 0x4703a340 */ /* not lifted */
    331     RECOMP_FLAGS_IN();
    332     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044ABB: push -1 */
    333     PUSH32(esp, 0x471083D0u); /* 0x47044ABD: push 0x471083d0 */
    334     PUSH32(esp, 0x47104AA4u); /* 0x47044AC2: push 0x47104aa4 */
    335     PUSH32(esp, 0x80u); /* 0x47044AC7: push 0x80 */
    336     PUSH32(esp, ebx); /* 0x47044ACC: push ebx */
    337     RECOMP_ICALL(0x47039830u); /* 0x47044ACD: call 0x47039830 */ /* not lifted */
    338     RECOMP_FLAGS_IN();
    339     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    340     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    341     esp = esp + 0x14u; /* 0x47044AD2: add esp, 0x14 */
    342     _flag_k = FK_ADD;
    343     ebp = POP32_VAL(esp); /* 0x47044AD5: pop ebp */
    344 L_47044AD6:
    345     ebx = MEM32(esi + 0x20); /* 0x47044AD6: mov ebx, dword ptr [esi + 0x20] */
    346     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    347     ebx = ebx - 1; /* 0x47044AD9: dec ebx */
    348     _flag_k = FK_DEC;
    349     eax = ebx; /* 0x47044ADA: mov eax, ebx */
    350     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    351     _cf = (eax) != 0;
    352     eax = (uint32_t)(-(int32_t)eax); /* 0x47044ADC: neg eax */
    353     _flag_k = FK_CMP;
    354     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47044ADE: sbb eax, eax */
    355       eax = _sc ? 0xFFFFFFFFu : 0;
    356       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    357       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    358     MEM32(esi + 0x20) = ebx; /* 0x47044AE0: mov dword ptr [esi + 0x20], ebx */
    359     edx = MEM32(edi); /* 0x47044AE3: mov edx, dword ptr [edi] */
    360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    361     eax = eax & esi; /* 0x47044AE5: and eax, esi */
    362     _cf = 0;
    363     _flag_k = FK_TEST;
    364     ecx = edi; /* 0x47044AE7: mov ecx, edi */
    365     esi = eax; /* 0x47044AE9: mov esi, eax */
    366     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47044AEB: mov dword ptr [esp + 0x1c], 0xffffffff */
    367     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x47044AF3: call dword ptr [edx + 0x10] */
    368     RECOMP_FLAGS_IN();
    369     goto L_47044B73; /* 0x47044AF6: jmp 0x47044b73 */
    370 L_47044AF8:
    371     eax = MEM32(esi + 0x20); /* 0x47044AF8: mov eax, dword ptr [esi + 0x20] */
    372     /* test eax, eax */ /* 0x47044AFB: test eax, eax */
    373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    374     _cf = 0;
    375     _flag_k = FK_TEST;
    376     if (TEST_G(_flag_a, _flag_b)) goto L_47044B62; /* 0x47044AFD: jg 0x47044b62 */
    377 L_47044AFF:
    378     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47044AFF: call dword ptr [0x470ac150] */
    379     RECOMP_FLAGS_IN();
    380     ebx = eax; /* 0x47044B05: mov ebx, eax */
    381     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044B07: call dword ptr [0x470ac3c8] */
    382     RECOMP_FLAGS_IN();
    383     eax = MEM32(eax); /* 0x47044B0D: mov eax, dword ptr [eax] */
    384     /* test eax, eax */ /* 0x47044B0F: test eax, eax */
    385     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    386     _cf = 0;
    387     _flag_k = FK_TEST;
    388     if (TEST_Z(_flag_a, _flag_b)) goto L_47044B15; /* 0x47044B11: je 0x47044b15 */
    389 L_47044B13:
    390     ebx = eax; /* 0x47044B13: mov ebx, eax */
    391 L_47044B15:
    392     RECOMP_ICALL(0x47039020u); /* 0x47044B15: call 0x47039020 */ /* not lifted */
    393     RECOMP_FLAGS_IN();
    394     edi = eax; /* 0x47044B1A: mov edi, eax */
    395     ecx = edi; /* 0x47044B1C: mov ecx, edi */
    396     RECOMP_ICALL(0x4703B210u); /* 0x47044B1E: call 0x4703b210 */ /* not lifted */
    397     RECOMP_FLAGS_IN();
    398     PUSH32(esp, eax); /* 0x47044B23: push eax */
    399     ecx = edi; /* 0x47044B24: mov ecx, edi */
    400     RECOMP_ICALL(0x4703B240u); /* 0x47044B26: call 0x4703b240 */ /* not lifted */
    401     RECOMP_FLAGS_IN();
    402     PUSH32(esp, eax); /* 0x47044B2B: push eax */
    403     ecx = edi; /* 0x47044B2C: mov ecx, edi */
    404     RECOMP_ICALL(0x4703B080u); /* 0x47044B2E: call 0x4703b080 */ /* not lifted */
    405     RECOMP_FLAGS_IN();
    406     PUSH32(esp, eax); /* 0x47044B33: push eax */
    407     PUSH32(esp, ebx); /* 0x47044B34: push ebx */
    408     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044B35: push -1 */
    409     PUSH32(esp, 0x259u); /* 0x47044B37: push 0x259 */
    410     PUSH32(esp, 0x471082E0u); /* 0x47044B3C: push 0x471082e0 */
    411     ecx = edi; /* 0x47044B41: mov ecx, edi */
    412     RECOMP_ICALL(0x4703A340u); /* 0x47044B43: call 0x4703a340 */ /* not lifted */
    413     RECOMP_FLAGS_IN();
    414     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044B48: push -1 */
    415     PUSH32(esp, 0x471083D0u); /* 0x47044B4A: push 0x471083d0 */
    416     PUSH32(esp, 0x47104AA4u); /* 0x47044B4F: push 0x47104aa4 */
    417     PUSH32(esp, 0x80u); /* 0x47044B54: push 0x80 */
    418     PUSH32(esp, edi); /* 0x47044B59: push edi */
    419     RECOMP_ICALL(0x47039830u); /* 0x47044B5A: call 0x47039830 */ /* not lifted */
    420     RECOMP_FLAGS_IN();
    421     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    423     esp = esp + 0x14u; /* 0x47044B5F: add esp, 0x14 */
    424     _flag_k = FK_ADD;
    425 L_47044B62:
    426     edi = MEM32(esi + 0x20); /* 0x47044B62: mov edi, dword ptr [esi + 0x20] */
    427     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
    428     edi = edi - 1; /* 0x47044B65: dec edi */
    429     _flag_k = FK_DEC;
    430     eax = edi; /* 0x47044B66: mov eax, edi */
    431     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    432     _cf = (eax) != 0;
    433     eax = (uint32_t)(-(int32_t)eax); /* 0x47044B68: neg eax */
    434     _flag_k = FK_CMP;
    435     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47044B6A: sbb eax, eax */
    436       eax = _sc ? 0xFFFFFFFFu : 0;
    437       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    438       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    439     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    440     eax = eax & esi; /* 0x47044B6C: and eax, esi */
    441     _cf = 0;
    442     _flag_k = FK_TEST;
    443     MEM32(esi + 0x20) = edi; /* 0x47044B6E: mov dword ptr [esi + 0x20], edi */
    444     esi = eax; /* 0x47044B71: mov esi, eax */
    445 L_47044B73:
    446     ecx = MEM32(esp + 0x14); /* 0x47044B73: mov ecx, dword ptr [esp + 0x14] */
    447     edi = POP32_VAL(esp); /* 0x47044B77: pop edi */
    448     eax = esi; /* 0x47044B78: mov eax, esi */
    449     esi = POP32_VAL(esp); /* 0x47044B7A: pop esi */
    450     ebx = POP32_VAL(esp); /* 0x47044B7B: pop ebx */
    451     MEM32(FS_BASE + (0)) = ecx; /* 0x47044B7C: mov dword ptr fs:[0], ecx */
    452     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    453     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    454     esp = esp + 0x14u; /* 0x47044B83: add esp, 0x14 */
    455     _flag_k = FK_ADD;
    456     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044B86: ret 4 */
    457     RECOMP_REGS_OUT();
    458 }
    459 
    460 void sub_47044B90(void) {
    461     int _fpu_cmp = 0;
    462     uint32_t _cf = 0;
    463     int _df = 1;
    464     uint32_t _flag_k = FK_NONE;
    465     uint32_t _flag_a = 0, _flag_b = 0;
    466     uint32_t _itail_tgt = 0;
    467     RECOMP_REGS_LOCALS
    468     RECOMP_ENTER(0x47044B90u);
    469 
    470 L_47044B90:
    471     eax = MEM32(esp + 0x4); /* 0x47044B90: mov eax, dword ptr [esp + 4] */
    472     PUSH32(esp, ebx); /* 0x47044B94: push ebx */
    473     PUSH32(esp, esi); /* 0x47044B95: push esi */
    474     PUSH32(esp, edi); /* 0x47044B96: push edi */
    475     esi = ecx; /* 0x47044B97: mov esi, ecx */
    476     edi = MEM32(esi + 0x24); /* 0x47044B99: mov edi, dword ptr [esi + 0x24] */
    477     PUSH32(esp, eax); /* 0x47044B9C: push eax */
    478     RECOMP_ICALL(0x47044A00u); /* 0x47044B9D: call 0x47044a00 */ /* not lifted */
    479     RECOMP_FLAGS_IN();
    480     ebx = eax; /* 0x47044BA2: mov ebx, eax */
    481     /* test ebx, ebx */ /* 0x47044BA4: test ebx, ebx */
    482     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    483     _cf = 0;
    484     _flag_k = FK_TEST;
    485     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044BBB; /* 0x47044BA6: jne 0x47044bbb */
    486 L_47044BA8:
    487     /* test esi, esi */ /* 0x47044BA8: test esi, esi */
    488     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    489     _cf = 0;
    490     _flag_k = FK_TEST;
    491     if (TEST_Z(_flag_a, _flag_b)) goto L_47044BBB; /* 0x47044BAA: je 0x47044bbb */
    492 L_47044BAC:
    493     edx = MEM32(esi); /* 0x47044BAC: mov edx, dword ptr [esi] */
    494     PUSH32(esp, eax); /* 0x47044BAE: push eax */
    495     ecx = esi; /* 0x47044BAF: mov ecx, esi */
    496     RECOMP_ICALL(MEM32(edx)); /* 0x47044BB1: call dword ptr [edx] */
    497     RECOMP_FLAGS_IN();
    498     eax = MEM32(edi); /* 0x47044BB3: mov eax, dword ptr [edi] */
    499     PUSH32(esp, esi); /* 0x47044BB5: push esi */
    500     ecx = edi; /* 0x47044BB6: mov ecx, edi */
    501     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47044BB8: call dword ptr [eax + 0xc] */
    502     RECOMP_FLAGS_IN();
    503 L_47044BBB:
    504     edi = POP32_VAL(esp); /* 0x47044BBB: pop edi */
    505     esi = POP32_VAL(esp); /* 0x47044BBC: pop esi */
    506     eax = ebx; /* 0x47044BBD: mov eax, ebx */
    507     ebx = POP32_VAL(esp); /* 0x47044BBF: pop ebx */
    508     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044BC0: ret 4 */
    509     RECOMP_REGS_OUT();
    510 }
    511 
    512 void sub_47044BD0(void) {
    513     int _fpu_cmp = 0;
    514     uint32_t _cf = 0;
    515     int _df = 1;
    516     uint32_t _flag_k = FK_NONE;
    517     uint32_t _flag_a = 0, _flag_b = 0;
    518     uint32_t _itail_tgt = 0;
    519     RECOMP_REGS_LOCALS
    520     RECOMP_ENTER(0x47044BD0u);
    521 
    522 L_47044BD0:
    523     eax = MEM32(FS_BASE + (0)); /* 0x47044BD0: mov eax, dword ptr fs:[0] */
    524     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044BD6: push -1 */
    525     PUSH32(esp, 0x470A6658u); /* 0x47044BD8: push 0x470a6658 */
    526     PUSH32(esp, eax); /* 0x47044BDD: push eax */
    527     MEM32(FS_BASE + (0)) = esp; /* 0x47044BDE: mov dword ptr fs:[0], esp */
    528     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    530     esp = esp - 8; /* 0x47044BE5: sub esp, 8 */
    531     _flag_k = FK_CMP;
    532     PUSH32(esp, ebx); /* 0x47044BE8: push ebx */
    533     PUSH32(esp, esi); /* 0x47044BE9: push esi */
    534     ebx = ecx; /* 0x47044BEA: mov ebx, ecx */
    535     PUSH32(esp, edi); /* 0x47044BEC: push edi */
    536     edi = MEM32(ebx + 0x2C); /* 0x47044BED: mov edi, dword ptr [ebx + 0x2c] */
    537     /* test edi, edi */ /* 0x47044BF0: test edi, edi */
    538     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    539     _cf = 0;
    540     _flag_k = FK_TEST;
    541     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C32; /* 0x47044BF2: je 0x47044c32 */
    542 L_47044BF4:
    543     esi = MEM32(edi + 0x1C); /* 0x47044BF4: mov esi, dword ptr [edi + 0x1c] */
    544     /* test esi, esi */ /* 0x47044BF7: test esi, esi */
    545     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    546     _cf = 0;
    547     _flag_k = FK_TEST;
    548     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C32; /* 0x47044BF9: je 0x47044c32 */
    549 L_47044BFB:
    550     eax = MEM32(esi); /* 0x47044BFB: mov eax, dword ptr [esi] */
    551     ecx = esi; /* 0x47044BFD: mov ecx, esi */
    552     MEM32(esp + 0xC) = esi; /* 0x47044BFF: mov dword ptr [esp + 0xc], esi */
    553     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47044C03: call dword ptr [eax + 8] */
    554     RECOMP_FLAGS_IN();
    555     MEM32(esp + 0x10) = eax; /* 0x47044C06: mov dword ptr [esp + 0x10], eax */
    556     /* cmp eax, 0xFFFFFFFFu */ /* 0x47044C0A: cmp eax, -1 */
    557     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    558     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    559     _flag_k = FK_CMP;
    560     MEM32(esp + 0x1C) = 0; /* 0x47044C0D: mov dword ptr [esp + 0x1c], 0 */
    561     if (CMP_EQ(_flag_a, _flag_b)) goto L_47044C56; /* 0x47044C15: je 0x47044c56 */
    562 L_47044C17:
    563     PUSH32(esp, esi); /* 0x47044C17: push esi */
    564     ecx = ebx; /* 0x47044C18: mov ecx, ebx */
    565     RECOMP_ICALL(0x47044C70u); /* 0x47044C1A: call 0x47044c70 */ /* not lifted */
    566     RECOMP_FLAGS_IN();
    567     edx = MEM32(esi); /* 0x47044C1F: mov edx, dword ptr [esi] */
    568     ecx = esi; /* 0x47044C21: mov ecx, esi */
    569     ebx = eax; /* 0x47044C23: mov ebx, eax */
    570     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47044C25: mov dword ptr [esp + 0x1c], 0xffffffff */
    571     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x47044C2D: call dword ptr [edx + 0x10] */
    572     RECOMP_FLAGS_IN();
    573     goto L_47044C3D; /* 0x47044C30: jmp 0x47044c3d */
    574 L_47044C32:
    575     PUSH32(esp, 0); /* 0x47044C32: push 0 */
    576     ecx = ebx; /* 0x47044C34: mov ecx, ebx */
    577     RECOMP_ICALL(0x47044C70u); /* 0x47044C36: call 0x47044c70 */ /* not lifted */
    578     RECOMP_FLAGS_IN();
    579     ebx = eax; /* 0x47044C3B: mov ebx, eax */
    580 L_47044C3D:
    581     /* test ebx, ebx */ /* 0x47044C3D: test ebx, ebx */
    582     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    583     _cf = 0;
    584     _flag_k = FK_TEST;
    585     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C56; /* 0x47044C3F: je 0x47044c56 */
    586 L_47044C41:
    587     /* test edi, edi */ /* 0x47044C41: test edi, edi */
    588     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    589     _cf = 0;
    590     _flag_k = FK_TEST;
    591     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C56; /* 0x47044C43: je 0x47044c56 */
    592 L_47044C45:
    593     eax = MEM32(edi); /* 0x47044C45: mov eax, dword ptr [edi] */
    594     PUSH32(esp, 0); /* 0x47044C47: push 0 */
    595     ecx = edi; /* 0x47044C49: mov ecx, edi */
    596     RECOMP_ICALL(MEM32(eax)); /* 0x47044C4B: call dword ptr [eax] */
    597     RECOMP_FLAGS_IN();
    598     ecx = MEM32(edi + 0x24); /* 0x47044C4D: mov ecx, dword ptr [edi + 0x24] */
    599     edx = MEM32(ecx); /* 0x47044C50: mov edx, dword ptr [ecx] */
    600     PUSH32(esp, edi); /* 0x47044C52: push edi */
    601     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47044C53: call dword ptr [edx + 0xc] */
    602     RECOMP_FLAGS_IN();
    603 L_47044C56:
    604     ecx = MEM32(esp + 0x14); /* 0x47044C56: mov ecx, dword ptr [esp + 0x14] */
    605     edi = POP32_VAL(esp); /* 0x47044C5A: pop edi */
    606     esi = POP32_VAL(esp); /* 0x47044C5B: pop esi */
    607     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    608     eax = 0; /* 0x47044C5C: xor eax, eax */
    609     _cf = 0;
    610     _flag_k = FK_TEST;
    611     ebx = POP32_VAL(esp); /* 0x47044C5E: pop ebx */
    612     MEM32(FS_BASE + (0)) = ecx; /* 0x47044C5F: mov dword ptr fs:[0], ecx */
    613     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    614     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    615     esp = esp + 0x14u; /* 0x47044C66: add esp, 0x14 */
    616     _flag_k = FK_ADD;
    617     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044C69: ret  */
    618     RECOMP_REGS_OUT();
    619 }
    620 
    621 void sub_47044C3D(void) {
    622     int _fpu_cmp = 0;
    623     uint32_t _cf = 0;
    624     int _df = 1;
    625     uint32_t _flag_k = FK_NONE;
    626     uint32_t _flag_a = 0, _flag_b = 0;
    627     uint32_t _itail_tgt = 0;
    628     RECOMP_REGS_LOCALS
    629     RECOMP_ENTER(0x47044C3Du);
    630 
    631 L_47044C3D:
    632     /* test ebx, ebx */ /* 0x47044C3D: test ebx, ebx */
    633     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    634     _cf = 0;
    635     _flag_k = FK_TEST;
    636     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C56; /* 0x47044C3F: je 0x47044c56 */
    637 L_47044C41:
    638     /* test edi, edi */ /* 0x47044C41: test edi, edi */
    639     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    640     _cf = 0;
    641     _flag_k = FK_TEST;
    642     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C56; /* 0x47044C43: je 0x47044c56 */
    643 L_47044C45:
    644     eax = MEM32(edi); /* 0x47044C45: mov eax, dword ptr [edi] */
    645     PUSH32(esp, 0); /* 0x47044C47: push 0 */
    646     ecx = edi; /* 0x47044C49: mov ecx, edi */
    647     RECOMP_ICALL(MEM32(eax)); /* 0x47044C4B: call dword ptr [eax] */
    648     RECOMP_FLAGS_IN();
    649     ecx = MEM32(edi + 0x24); /* 0x47044C4D: mov ecx, dword ptr [edi + 0x24] */
    650     edx = MEM32(ecx); /* 0x47044C50: mov edx, dword ptr [ecx] */
    651     PUSH32(esp, edi); /* 0x47044C52: push edi */
    652     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47044C53: call dword ptr [edx + 0xc] */
    653     RECOMP_FLAGS_IN();
    654 L_47044C56:
    655     ecx = MEM32(esp + 0x14); /* 0x47044C56: mov ecx, dword ptr [esp + 0x14] */
    656     edi = POP32_VAL(esp); /* 0x47044C5A: pop edi */
    657     esi = POP32_VAL(esp); /* 0x47044C5B: pop esi */
    658     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    659     eax = 0; /* 0x47044C5C: xor eax, eax */
    660     _cf = 0;
    661     _flag_k = FK_TEST;
    662     ebx = POP32_VAL(esp); /* 0x47044C5E: pop ebx */
    663     MEM32(FS_BASE + (0)) = ecx; /* 0x47044C5F: mov dword ptr fs:[0], ecx */
    664     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    665     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    666     esp = esp + 0x14u; /* 0x47044C66: add esp, 0x14 */
    667     _flag_k = FK_ADD;
    668     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044C69: ret  */
    669     RECOMP_REGS_OUT();
    670 }
    671 
    672 void sub_47044C70(void) {
    673     int _fpu_cmp = 0;
    674     uint32_t _cf = 0;
    675     int _df = 1;
    676     uint32_t _flag_k = FK_NONE;
    677     uint32_t _flag_a = 0, _flag_b = 0;
    678     uint32_t _itail_tgt = 0;
    679     RECOMP_REGS_LOCALS
    680     RECOMP_ENTER(0x47044C70u);
    681 
    682 L_47044C70:
    683     PUSH32(esp, ebx); /* 0x47044C70: push ebx */
    684     PUSH32(esp, ebp); /* 0x47044C71: push ebp */
    685     ebp = MEM32(esp + 0xC); /* 0x47044C72: mov ebp, dword ptr [esp + 0xc] */
    686     PUSH32(esp, esi); /* 0x47044C76: push esi */
    687     ebx = ecx; /* 0x47044C77: mov ebx, ecx */
    688     PUSH32(esp, edi); /* 0x47044C79: push edi */
    689     edi = MEM32(ebx + 0x20); /* 0x47044C7A: mov edi, dword ptr [ebx + 0x20] */
    690     /* test edi, edi */ /* 0x47044C7D: test edi, edi */
    691     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    692     _cf = 0;
    693     _flag_k = FK_TEST;
    694     if (TEST_Z(_flag_a, _flag_b)) goto L_47044CB7; /* 0x47044C7F: je 0x47044cb7 */
    695 L_47044C81:
    696     eax = edi + 0x20; /* 0x47044C81: lea eax, [edi + 0x20] */
    697     ecx = edi; /* 0x47044C84: mov ecx, edi */
    698     edi = MEM32(eax); /* 0x47044C86: mov edi, dword ptr [eax] */
    699     esi = MEM32(ecx + 0x2C); /* 0x47044C88: mov esi, dword ptr [ecx + 0x2c] */
    700     PUSH32(esp, ebp); /* 0x47044C8B: push ebp */
    701     MEM32(eax) = 0; /* 0x47044C8C: mov dword ptr [eax], 0 */
    702     RECOMP_ICALL(0x47044C70u); /* 0x47044C92: call 0x47044c70 */ /* not lifted */
    703     RECOMP_FLAGS_IN();
    704     /* test eax, eax */ /* 0x47044C97: test eax, eax */
    705     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    706     _cf = 0;
    707     _flag_k = FK_TEST;
    708     if (TEST_Z(_flag_a, _flag_b)) goto L_47044CB0; /* 0x47044C99: je 0x47044cb0 */
    709 L_47044C9B:
    710     /* test esi, esi */ /* 0x47044C9B: test esi, esi */
    711     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    712     _cf = 0;
    713     _flag_k = FK_TEST;
    714     if (TEST_Z(_flag_a, _flag_b)) goto L_47044CB0; /* 0x47044C9D: je 0x47044cb0 */
    715 L_47044C9F:
    716     eax = MEM32(esi); /* 0x47044C9F: mov eax, dword ptr [esi] */
    717     PUSH32(esp, 0); /* 0x47044CA1: push 0 */
    718     ecx = esi; /* 0x47044CA3: mov ecx, esi */
    719     RECOMP_ICALL(MEM32(eax)); /* 0x47044CA5: call dword ptr [eax] */
    720     RECOMP_FLAGS_IN();
    721     ecx = MEM32(esi + 0x24); /* 0x47044CA7: mov ecx, dword ptr [esi + 0x24] */
    722     edx = MEM32(ecx); /* 0x47044CAA: mov edx, dword ptr [ecx] */
    723     PUSH32(esp, esi); /* 0x47044CAC: push esi */
    724     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47044CAD: call dword ptr [edx + 0xc] */
    725     RECOMP_FLAGS_IN();
    726 L_47044CB0:
    727     /* test edi, edi */ /* 0x47044CB0: test edi, edi */
    728     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    729     _cf = 0;
    730     _flag_k = FK_TEST;
    731     RECOMP_BACKEDGE();
    732     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044C81; /* 0x47044CB2: jne 0x47044c81 */
    733 L_47044CB4:
    734     MEM32(ebx + 0x20) = edi; /* 0x47044CB4: mov dword ptr [ebx + 0x20], edi */
    735 L_47044CB7:
    736     ecx = MEM32(ebx + 0x2C); /* 0x47044CB7: mov ecx, dword ptr [ebx + 0x2c] */
    737     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    738     esi = 0; /* 0x47044CBA: xor esi, esi */
    739     _cf = 0;
    740     _flag_k = FK_TEST;
    741     /* test ecx, ecx */ /* 0x47044CBC: test ecx, ecx */
    742     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    743     _cf = 0;
    744     _flag_k = FK_TEST;
    745     if (TEST_Z(_flag_a, _flag_b)) goto L_47044CD6; /* 0x47044CBE: je 0x47044cd6 */
    746 L_47044CC0:
    747     PUSH32(esp, ebp); /* 0x47044CC0: push ebp */
    748     RECOMP_ICALL(0x47044A00u); /* 0x47044CC1: call 0x47044a00 */ /* not lifted */
    749     RECOMP_FLAGS_IN();
    750     /* test eax, eax */ /* 0x47044CC6: test eax, eax */
    751     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    752     _cf = 0;
    753     _flag_k = FK_TEST;
    754     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044CCF; /* 0x47044CC8: jne 0x47044ccf */
    755 L_47044CCA:
    756     esi = 1; /* 0x47044CCA: mov esi, 1 */
    757 L_47044CCF:
    758     MEM32(ebx + 0x2C) = 0; /* 0x47044CCF: mov dword ptr [ebx + 0x2c], 0 */
    759 L_47044CD6:
    760     eax = MEM32(ebx + 0x30); /* 0x47044CD6: mov eax, dword ptr [ebx + 0x30] */
    761     /* test eax, eax */ /* 0x47044CD9: test eax, eax */
    762     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    763     _cf = 0;
    764     _flag_k = FK_TEST;
    765     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044CF2; /* 0x47044CDB: jne 0x47044cf2 */
    766 L_47044CDD:
    767     /* test ebx, ebx */ /* 0x47044CDD: test ebx, ebx */
    768     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    769     _cf = 0;
    770     _flag_k = FK_TEST;
    771     if (TEST_Z(_flag_a, _flag_b)) goto L_47044D07; /* 0x47044CDF: je 0x47044d07 */
    772 L_47044CE1:
    773     eax = MEM32(ebx); /* 0x47044CE1: mov eax, dword ptr [ebx] */
    774     PUSH32(esp, 1); /* 0x47044CE3: push 1 */
    775     ecx = ebx; /* 0x47044CE5: mov ecx, ebx */
    776     RECOMP_ICALL(MEM32(eax)); /* 0x47044CE7: call dword ptr [eax] */
    777     RECOMP_FLAGS_IN();
    778     edi = POP32_VAL(esp); /* 0x47044CE9: pop edi */
    779     eax = esi; /* 0x47044CEA: mov eax, esi */
    780     esi = POP32_VAL(esp); /* 0x47044CEC: pop esi */
    781     ebp = POP32_VAL(esp); /* 0x47044CED: pop ebp */
    782     ebx = POP32_VAL(esp); /* 0x47044CEE: pop ebx */
    783     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044CEF: ret 4 */
    784 L_47044CF2:
    785     /* test ebx, ebx */ /* 0x47044CF2: test ebx, ebx */
    786     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    787     _cf = 0;
    788     _flag_k = FK_TEST;
    789     if (TEST_Z(_flag_a, _flag_b)) goto L_47044D07; /* 0x47044CF4: je 0x47044d07 */
    790 L_47044CF6:
    791     edx = MEM32(ebx); /* 0x47044CF6: mov edx, dword ptr [ebx] */
    792     PUSH32(esp, 0); /* 0x47044CF8: push 0 */
    793     ecx = ebx; /* 0x47044CFA: mov ecx, ebx */
    794     RECOMP_ICALL(MEM32(edx)); /* 0x47044CFC: call dword ptr [edx] */
    795     RECOMP_FLAGS_IN();
    796     ecx = MEM32(ebx + 0x30); /* 0x47044CFE: mov ecx, dword ptr [ebx + 0x30] */
    797     eax = MEM32(ecx); /* 0x47044D01: mov eax, dword ptr [ecx] */
    798     PUSH32(esp, ebx); /* 0x47044D03: push ebx */
    799     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47044D04: call dword ptr [eax + 0xc] */
    800     RECOMP_FLAGS_IN();
    801 L_47044D07:
    802     edi = POP32_VAL(esp); /* 0x47044D07: pop edi */
    803     eax = esi; /* 0x47044D08: mov eax, esi */
    804     esi = POP32_VAL(esp); /* 0x47044D0A: pop esi */
    805     ebp = POP32_VAL(esp); /* 0x47044D0B: pop ebp */
    806     ebx = POP32_VAL(esp); /* 0x47044D0C: pop ebx */
    807     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044D0D: ret 4 */
    808     RECOMP_REGS_OUT();
    809 }
    810 
    811 void sub_47044D10(void) {
    812     int _fpu_cmp = 0;
    813     uint32_t _cf = 0;
    814     int _df = 1;
    815     uint32_t _flag_k = FK_NONE;
    816     uint32_t _flag_a = 0, _flag_b = 0;
    817     uint32_t _itail_tgt = 0;
    818     RECOMP_REGS_LOCALS
    819     RECOMP_ENTER(0x47044D10u);
    820 
    821     goto L_47044D10;
    822 L_47044BD0:
    823     eax = MEM32(FS_BASE + (0)); /* 0x47044BD0: mov eax, dword ptr fs:[0] */
    824     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044BD6: push -1 */
    825     PUSH32(esp, 0x470A6658u); /* 0x47044BD8: push 0x470a6658 */
    826     PUSH32(esp, eax); /* 0x47044BDD: push eax */
    827     MEM32(FS_BASE + (0)) = esp; /* 0x47044BDE: mov dword ptr fs:[0], esp */
    828     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    830     esp = esp - 8; /* 0x47044BE5: sub esp, 8 */
    831     _flag_k = FK_CMP;
    832     PUSH32(esp, ebx); /* 0x47044BE8: push ebx */
    833     PUSH32(esp, esi); /* 0x47044BE9: push esi */
    834     ebx = ecx; /* 0x47044BEA: mov ebx, ecx */
    835     PUSH32(esp, edi); /* 0x47044BEC: push edi */
    836     edi = MEM32(ebx + 0x2C); /* 0x47044BED: mov edi, dword ptr [ebx + 0x2c] */
    837     /* test edi, edi */ /* 0x47044BF0: test edi, edi */
    838     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    839     _cf = 0;
    840     _flag_k = FK_TEST;
    841     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C32; /* 0x47044BF2: je 0x47044c32 */
    842 L_47044BF4:
    843     esi = MEM32(edi + 0x1C); /* 0x47044BF4: mov esi, dword ptr [edi + 0x1c] */
    844     /* test esi, esi */ /* 0x47044BF7: test esi, esi */
    845     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    846     _cf = 0;
    847     _flag_k = FK_TEST;
    848     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C32; /* 0x47044BF9: je 0x47044c32 */
    849 L_47044BFB:
    850     eax = MEM32(esi); /* 0x47044BFB: mov eax, dword ptr [esi] */
    851     ecx = esi; /* 0x47044BFD: mov ecx, esi */
    852     MEM32(esp + 0xC) = esi; /* 0x47044BFF: mov dword ptr [esp + 0xc], esi */
    853     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47044C03: call dword ptr [eax + 8] */
    854     RECOMP_FLAGS_IN();
    855     MEM32(esp + 0x10) = eax; /* 0x47044C06: mov dword ptr [esp + 0x10], eax */
    856     /* cmp eax, 0xFFFFFFFFu */ /* 0x47044C0A: cmp eax, -1 */
    857     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    859     _flag_k = FK_CMP;
    860     MEM32(esp + 0x1C) = 0; /* 0x47044C0D: mov dword ptr [esp + 0x1c], 0 */
    861     if (CMP_EQ(_flag_a, _flag_b)) goto L_47044C56; /* 0x47044C15: je 0x47044c56 */
    862 L_47044C17:
    863     PUSH32(esp, esi); /* 0x47044C17: push esi */
    864     ecx = ebx; /* 0x47044C18: mov ecx, ebx */
    865     RECOMP_ICALL(0x47044C70u); /* 0x47044C1A: call 0x47044c70 */ /* not lifted */
    866     RECOMP_FLAGS_IN();
    867     edx = MEM32(esi); /* 0x47044C1F: mov edx, dword ptr [esi] */
    868     ecx = esi; /* 0x47044C21: mov ecx, esi */
    869     ebx = eax; /* 0x47044C23: mov ebx, eax */
    870     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47044C25: mov dword ptr [esp + 0x1c], 0xffffffff */
    871     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x47044C2D: call dword ptr [edx + 0x10] */
    872     RECOMP_FLAGS_IN();
    873     goto L_47044C3D; /* 0x47044C30: jmp 0x47044c3d */
    874 L_47044C32:
    875     PUSH32(esp, 0); /* 0x47044C32: push 0 */
    876     ecx = ebx; /* 0x47044C34: mov ecx, ebx */
    877     RECOMP_ICALL(0x47044C70u); /* 0x47044C36: call 0x47044c70 */ /* not lifted */
    878     RECOMP_FLAGS_IN();
    879     ebx = eax; /* 0x47044C3B: mov ebx, eax */
    880 L_47044C3D:
    881     /* test ebx, ebx */ /* 0x47044C3D: test ebx, ebx */
    882     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    883     _cf = 0;
    884     _flag_k = FK_TEST;
    885     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C56; /* 0x47044C3F: je 0x47044c56 */
    886 L_47044C41:
    887     /* test edi, edi */ /* 0x47044C41: test edi, edi */
    888     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    889     _cf = 0;
    890     _flag_k = FK_TEST;
    891     if (TEST_Z(_flag_a, _flag_b)) goto L_47044C56; /* 0x47044C43: je 0x47044c56 */
    892 L_47044C45:
    893     eax = MEM32(edi); /* 0x47044C45: mov eax, dword ptr [edi] */
    894     PUSH32(esp, 0); /* 0x47044C47: push 0 */
    895     ecx = edi; /* 0x47044C49: mov ecx, edi */
    896     RECOMP_ICALL(MEM32(eax)); /* 0x47044C4B: call dword ptr [eax] */
    897     RECOMP_FLAGS_IN();
    898     ecx = MEM32(edi + 0x24); /* 0x47044C4D: mov ecx, dword ptr [edi + 0x24] */
    899     edx = MEM32(ecx); /* 0x47044C50: mov edx, dword ptr [ecx] */
    900     PUSH32(esp, edi); /* 0x47044C52: push edi */
    901     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47044C53: call dword ptr [edx + 0xc] */
    902     RECOMP_FLAGS_IN();
    903 L_47044C56:
    904     ecx = MEM32(esp + 0x14); /* 0x47044C56: mov ecx, dword ptr [esp + 0x14] */
    905     edi = POP32_VAL(esp); /* 0x47044C5A: pop edi */
    906     esi = POP32_VAL(esp); /* 0x47044C5B: pop esi */
    907     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    908     eax = 0; /* 0x47044C5C: xor eax, eax */
    909     _cf = 0;
    910     _flag_k = FK_TEST;
    911     ebx = POP32_VAL(esp); /* 0x47044C5E: pop ebx */
    912     MEM32(FS_BASE + (0)) = ecx; /* 0x47044C5F: mov dword ptr fs:[0], ecx */
    913     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    915     esp = esp + 0x14u; /* 0x47044C66: add esp, 0x14 */
    916     _flag_k = FK_ADD;
    917     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044C69: ret  */
    918 L_47044D10:
    919     ecx = MEM32(esp + 0x4); /* 0x47044D10: mov ecx, dword ptr [esp + 4] */
    920     /* test ecx, ecx */ /* 0x47044D14: test ecx, ecx */
    921     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    922     _cf = 0;
    923     _flag_k = FK_TEST;
    924     if (TEST_Z(_flag_a, _flag_b)) goto L_47044D1D; /* 0x47044D16: je 0x47044d1d */
    925 L_47044D18:
    926     RECOMP_BACKEDGE();
    927     goto L_47044BD0; /* 0x47044D18: jmp 0x47044bd0 */
    928 L_47044D1D:
    929     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    930     eax = 0; /* 0x47044D1D: xor eax, eax */
    931     _cf = 0;
    932     _flag_k = FK_TEST;
    933     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044D1F: ret  */
    934     RECOMP_REGS_OUT();
    935 }
    936 
    937 void sub_47044D20(void) {
    938     int _fpu_cmp = 0;
    939     uint32_t _cf = 0;
    940     int _df = 1;
    941     uint32_t _flag_k = FK_NONE;
    942     uint32_t _flag_a = 0, _flag_b = 0;
    943     uint32_t _itail_tgt = 0;
    944     RECOMP_REGS_LOCALS
    945     RECOMP_ENTER(0x47044D20u);
    946 
    947 L_47044D20:
    948     PUSH32(esp, ebx); /* 0x47044D20: push ebx */
    949     PUSH32(esp, ebp); /* 0x47044D21: push ebp */
    950     PUSH32(esp, esi); /* 0x47044D22: push esi */
    951     PUSH32(esp, edi); /* 0x47044D23: push edi */
    952     edi = ecx; /* 0x47044D24: mov edi, ecx */
    953     esi = MEM32(edi + 0x2C); /* 0x47044D26: mov esi, dword ptr [edi + 0x2c] */
    954     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    955     ebp = 0; /* 0x47044D29: xor ebp, ebp */
    956     _cf = 0;
    957     _flag_k = FK_TEST;
    958     /* cmp esi, ebp */ /* 0x47044D2B: cmp esi, ebp */
    959     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
    960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    961     _flag_k = FK_CMP;
    962     MEM32(edi) = 0x470AD688u; /* 0x47044D2D: mov dword ptr [edi], 0x470ad688 */
    963     if (CMP_EQ(_flag_a, _flag_b)) goto L_47044D57; /* 0x47044D33: je 0x47044d57 */
    964 L_47044D35:
    965     ebx = MEM32(esi + 0x24); /* 0x47044D35: mov ebx, dword ptr [esi + 0x24] */
    966     PUSH32(esp, ebp); /* 0x47044D38: push ebp */
    967     ecx = esi; /* 0x47044D39: mov ecx, esi */
    968     RECOMP_ICALL(0x47044A00u); /* 0x47044D3B: call 0x47044a00 */ /* not lifted */
    969     RECOMP_FLAGS_IN();
    970     /* test eax, eax */ /* 0x47044D40: test eax, eax */
    971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    972     _cf = 0;
    973     _flag_k = FK_TEST;
    974     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044D57; /* 0x47044D42: jne 0x47044d57 */
    975 L_47044D44:
    976     /* cmp esi, ebp */ /* 0x47044D44: cmp esi, ebp */
    977     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp);
    978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    979     _flag_k = FK_CMP;
    980     if (CMP_EQ(_flag_a, _flag_b)) goto L_47044D57; /* 0x47044D46: je 0x47044d57 */
    981 L_47044D48:
    982     eax = MEM32(esi); /* 0x47044D48: mov eax, dword ptr [esi] */
    983     PUSH32(esp, ebp); /* 0x47044D4A: push ebp */
    984     ecx = esi; /* 0x47044D4B: mov ecx, esi */
    985     RECOMP_ICALL(MEM32(eax)); /* 0x47044D4D: call dword ptr [eax] */
    986     RECOMP_FLAGS_IN();
    987     edx = MEM32(ebx); /* 0x47044D4F: mov edx, dword ptr [ebx] */
    988     PUSH32(esp, esi); /* 0x47044D51: push esi */
    989     ecx = ebx; /* 0x47044D52: mov ecx, ebx */
    990     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47044D54: call dword ptr [edx + 0xc] */
    991     RECOMP_FLAGS_IN();
    992 L_47044D57:
    993     MEM32(edi + 0x28) = ebp; /* 0x47044D57: mov dword ptr [edi + 0x28], ebp */
    994     MEM32(edi + 0x24) = ebp; /* 0x47044D5A: mov dword ptr [edi + 0x24], ebp */
    995     edi = POP32_VAL(esp); /* 0x47044D5D: pop edi */
    996     esi = POP32_VAL(esp); /* 0x47044D5E: pop esi */
    997     ebp = POP32_VAL(esp); /* 0x47044D5F: pop ebp */
    998     ebx = POP32_VAL(esp); /* 0x47044D60: pop ebx */
    999     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044D61: ret  */
   1000     RECOMP_REGS_OUT();
   1001 }
   1002 
   1003 void sub_47044D70(void) {
   1004     int _fpu_cmp = 0;
   1005     uint32_t _cf = 0;
   1006     int _df = 1;
   1007     uint32_t _flag_k = FK_NONE;
   1008     uint32_t _flag_a = 0, _flag_b = 0;
   1009     uint32_t _itail_tgt = 0;
   1010     RECOMP_REGS_LOCALS
   1011     RECOMP_ENTER(0x47044D70u);
   1012 
   1013 L_47044D70:
   1014     eax = MEM32(FS_BASE + (0)); /* 0x47044D70: mov eax, dword ptr fs:[0] */
   1015     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044D76: push -1 */
   1016     PUSH32(esp, 0x470A6678u); /* 0x47044D78: push 0x470a6678 */
   1017     PUSH32(esp, eax); /* 0x47044D7D: push eax */
   1018     MEM32(FS_BASE + (0)) = esp; /* 0x47044D7E: mov dword ptr fs:[0], esp */
   1019     PUSH32(esp, esi); /* 0x47044D85: push esi */
   1020     PUSH32(esp, edi); /* 0x47044D86: push edi */
   1021     edi = ecx; /* 0x47044D87: mov edi, ecx */
   1022     esi = MEM32(edi + 0x1C); /* 0x47044D89: mov esi, dword ptr [edi + 0x1c] */
   1023     /* test esi, esi */ /* 0x47044D8C: test esi, esi */
   1024     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1025     _cf = 0;
   1026     _flag_k = FK_TEST;
   1027     if (TEST_Z(_flag_a, _flag_b)) goto L_47044DD4; /* 0x47044D8E: je 0x47044dd4 */
   1028 L_47044D90:
   1029     eax = MEM32(esi); /* 0x47044D90: mov eax, dword ptr [esi] */
   1030     ecx = esi; /* 0x47044D92: mov ecx, esi */
   1031     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47044D94: call dword ptr [eax + 8] */
   1032     RECOMP_FLAGS_IN();
   1033     /* cmp eax, 0xFFFFFFFFu */ /* 0x47044D97: cmp eax, -1 */
   1034     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1036     _flag_k = FK_CMP;
   1037     if (CMP_NE(_flag_a, _flag_b)) goto L_47044DAF; /* 0x47044D9A: jne 0x47044daf */
   1038 L_47044D9C:
   1039     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1040     eax = 0; /* 0x47044D9C: xor eax, eax */
   1041     _cf = 0;
   1042     _flag_k = FK_TEST;
   1043     ecx = MEM32(esp + 0x8); /* 0x47044D9E: mov ecx, dword ptr [esp + 8] */
   1044     MEM32(FS_BASE + (0)) = ecx; /* 0x47044DA2: mov dword ptr fs:[0], ecx */
   1045     edi = POP32_VAL(esp); /* 0x47044DA9: pop edi */
   1046     esi = POP32_VAL(esp); /* 0x47044DAA: pop esi */
   1047     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1048     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1049     esp = esp + 0xCu; /* 0x47044DAB: add esp, 0xc */
   1050     _flag_k = FK_ADD;
   1051     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044DAE: ret  */
   1052 L_47044DAF:
   1053     _flag_a = (uint32_t)(MEM32(edi + 0x20)); _flag_b = (uint32_t)(1);
   1054     MEM32(edi + 0x20) = MEM32(edi + 0x20) + 1; /* 0x47044DAF: inc dword ptr [edi + 0x20] */
   1055     _flag_k = FK_INC;
   1056     edx = MEM32(esi); /* 0x47044DB2: mov edx, dword ptr [esi] */
   1057     ecx = esi; /* 0x47044DB4: mov ecx, esi */
   1058     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47044DB6: mov dword ptr [esp + 0x10], 0xffffffff */
   1059     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x47044DBE: call dword ptr [edx + 0x10] */
   1060     RECOMP_FLAGS_IN();
   1061     eax = edi; /* 0x47044DC1: mov eax, edi */
   1062     ecx = MEM32(esp + 0x8); /* 0x47044DC3: mov ecx, dword ptr [esp + 8] */
   1063     MEM32(FS_BASE + (0)) = ecx; /* 0x47044DC7: mov dword ptr fs:[0], ecx */
   1064     edi = POP32_VAL(esp); /* 0x47044DCE: pop edi */
   1065     esi = POP32_VAL(esp); /* 0x47044DCF: pop esi */
   1066     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1067     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1068     esp = esp + 0xCu; /* 0x47044DD0: add esp, 0xc */
   1069     _flag_k = FK_ADD;
   1070     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044DD3: ret  */
   1071 L_47044DD4:
   1072     eax = MEM32(edi + 0x20); /* 0x47044DD4: mov eax, dword ptr [edi + 0x20] */
   1073     ecx = MEM32(esp + 0x8); /* 0x47044DD7: mov ecx, dword ptr [esp + 8] */
   1074     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1075     eax = eax + 1; /* 0x47044DDB: inc eax */
   1076     _flag_k = FK_INC;
   1077     MEM32(edi + 0x20) = eax; /* 0x47044DDC: mov dword ptr [edi + 0x20], eax */
   1078     eax = edi; /* 0x47044DDF: mov eax, edi */
   1079     edi = POP32_VAL(esp); /* 0x47044DE1: pop edi */
   1080     MEM32(FS_BASE + (0)) = ecx; /* 0x47044DE2: mov dword ptr fs:[0], ecx */
   1081     esi = POP32_VAL(esp); /* 0x47044DE9: pop esi */
   1082     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1083     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1084     esp = esp + 0xCu; /* 0x47044DEA: add esp, 0xc */
   1085     _flag_k = FK_ADD;
   1086     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044DED: ret  */
   1087     RECOMP_REGS_OUT();
   1088 }
   1089 
   1090 void sub_47044DF0(void) {
   1091     int _fpu_cmp = 0;
   1092     uint32_t _cf = 0;
   1093     int _df = 1;
   1094     uint32_t _flag_k = FK_NONE;
   1095     uint32_t _flag_a = 0, _flag_b = 0;
   1096     uint32_t _itail_tgt = 0;
   1097     RECOMP_REGS_LOCALS
   1098     RECOMP_ENTER(0x47044DF0u);
   1099 
   1100 L_47044DF0:
   1101     eax = MEM32(FS_BASE + (0)); /* 0x47044DF0: mov eax, dword ptr fs:[0] */
   1102     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044DF6: push -1 */
   1103     PUSH32(esp, 0x470A66BCu); /* 0x47044DF8: push 0x470a66bc */
   1104     PUSH32(esp, eax); /* 0x47044DFD: push eax */
   1105     MEM32(FS_BASE + (0)) = esp; /* 0x47044DFE: mov dword ptr fs:[0], esp */
   1106     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1108     esp = esp - 0x10u; /* 0x47044E05: sub esp, 0x10 */
   1109     _flag_k = FK_CMP;
   1110     PUSH32(esp, ebx); /* 0x47044E08: push ebx */
   1111     PUSH32(esp, ebp); /* 0x47044E09: push ebp */
   1112     PUSH32(esp, esi); /* 0x47044E0A: push esi */
   1113     esi = ecx; /* 0x47044E0B: mov esi, ecx */
   1114     ecx = MEM32(esi + 0x30); /* 0x47044E0D: mov ecx, dword ptr [esi + 0x30] */
   1115     /* test ecx, ecx */ /* 0x47044E10: test ecx, ecx */
   1116     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1117     _cf = 0;
   1118     _flag_k = FK_TEST;
   1119     PUSH32(esp, edi); /* 0x47044E12: push edi */
   1120     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044EF2; /* 0x47044E13: jne 0x47044ef2 */
   1121 L_47044E19:
   1122     PUSH32(esp, 0x34u); /* 0x47044E19: push 0x34 */
   1123     RECOMP_ICALL(0x470A33F2u); /* 0x47044E1B: call 0x470a33f2 */ /* not lifted */
   1124     RECOMP_FLAGS_IN();
   1125     ebp = eax; /* 0x47044E20: mov ebp, eax */
   1126     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1127     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1128     esp = esp + 4; /* 0x47044E22: add esp, 4 */
   1129     _flag_k = FK_ADD;
   1130     MEM32(esp + 0x10) = ebp; /* 0x47044E25: mov dword ptr [esp + 0x10], ebp */
   1131     /* test ebp, ebp */ /* 0x47044E29: test ebp, ebp */
   1132     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   1133     _cf = 0;
   1134     _flag_k = FK_TEST;
   1135     MEM32(esp + 0x28) = 0; /* 0x47044E2B: mov dword ptr [esp + 0x28], 0 */
   1136     if (TEST_Z(_flag_a, _flag_b)) goto L_47044EBD; /* 0x47044E33: je 0x47044ebd */
   1137 L_47044E39:
   1138     edi = MEM32(esi + 0x2C); /* 0x47044E39: mov edi, dword ptr [esi + 0x2c] */
   1139     ecx = MEM32(edi + 0x1C); /* 0x47044E3C: mov ecx, dword ptr [edi + 0x1c] */
   1140     /* test ecx, ecx */ /* 0x47044E3F: test ecx, ecx */
   1141     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1142     _cf = 0;
   1143     _flag_k = FK_TEST;
   1144     ebx = MEM32(edi + 0x24); /* 0x47044E41: mov ebx, dword ptr [edi + 0x24] */
   1145     if (TEST_Z(_flag_a, _flag_b)) goto L_47044E91; /* 0x47044E44: je 0x47044e91 */
   1146 L_47044E46:
   1147     MEM32(esp + 0x18) = ecx; /* 0x47044E46: mov dword ptr [esp + 0x18], ecx */
   1148     MEM32(esp + 0x1C) = 0; /* 0x47044E4A: mov dword ptr [esp + 0x1c], 0 */
   1149     eax = MEM32(ecx); /* 0x47044E52: mov eax, dword ptr [ecx] */
   1150     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47044E54: call dword ptr [eax + 8] */
   1151     RECOMP_FLAGS_IN();
   1152     MEM32(esp + 0x1C) = eax; /* 0x47044E57: mov dword ptr [esp + 0x1c], eax */
   1153     /* cmp eax, 0xFFFFFFFFu */ /* 0x47044E5B: cmp eax, -1 */
   1154     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1156     _flag_k = FK_CMP;
   1157     if (CMP_NE(_flag_a, _flag_b)) goto L_47044E72; /* 0x47044E5E: jne 0x47044e72 */
   1158 L_47044E60:
   1159     ecx = esp + 0x18; /* 0x47044E60: lea ecx, [esp + 0x18] */
   1160     MEM8(esp + 0x28) = (uint8_t)(0); /* 0x47044E64: mov byte ptr [esp + 0x28], 0 */
   1161     RECOMP_ICALL(0x47045860u); /* 0x47044E69: call 0x47045860 */ /* not lifted */
   1162     RECOMP_FLAGS_IN();
   1163     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1164     edi = 0; /* 0x47044E6E: xor edi, edi */
   1165     _cf = 0;
   1166     _flag_k = FK_TEST;
   1167     goto L_47044E94; /* 0x47044E70: jmp 0x47044e94 */
   1168 L_47044E72:
   1169     eax = MEM32(edi + 0x20); /* 0x47044E72: mov eax, dword ptr [edi + 0x20] */
   1170     ecx = MEM32(esp + 0x18); /* 0x47044E75: mov ecx, dword ptr [esp + 0x18] */
   1171     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1172     eax = eax + 1; /* 0x47044E79: inc eax */
   1173     _flag_k = FK_INC;
   1174     MEM32(edi + 0x20) = eax; /* 0x47044E7A: mov dword ptr [edi + 0x20], eax */
   1175     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47044E7D: mov dword ptr [esp + 0x1c], 0xffffffff */
   1176     edx = MEM32(ecx); /* 0x47044E85: mov edx, dword ptr [ecx] */
   1177     MEM8(esp + 0x28) = (uint8_t)(0); /* 0x47044E87: mov byte ptr [esp + 0x28], 0 */
   1178     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x47044E8C: call dword ptr [edx + 0x10] */
   1179     RECOMP_FLAGS_IN();
   1180     goto L_47044E94; /* 0x47044E8F: jmp 0x47044e94 */
   1181 L_47044E91:
   1182     _flag_a = (uint32_t)(MEM32(edi + 0x20)); _flag_b = (uint32_t)(1);
   1183     MEM32(edi + 0x20) = MEM32(edi + 0x20) + 1; /* 0x47044E91: inc dword ptr [edi + 0x20] */
   1184     _flag_k = FK_INC;
   1185 L_47044E94:
   1186     eax = MEM32(esi + 0x30); /* 0x47044E94: mov eax, dword ptr [esi + 0x30] */
   1187     PUSH32(esp, eax); /* 0x47044E97: push eax */
   1188     eax = MEM32(esi + 0xC); /* 0x47044E98: mov eax, dword ptr [esi + 0xc] */
   1189     PUSH32(esp, ebx); /* 0x47044E9B: push ebx */
   1190     PUSH32(esp, edi); /* 0x47044E9C: push edi */
   1191     ecx = esi + 0x18; /* 0x47044E9D: lea ecx, [esi + 0x18] */
   1192     PUSH32(esp, ecx); /* 0x47044EA0: push ecx */
   1193     edx = esi + 0x10; /* 0x47044EA1: lea edx, [esi + 0x10] */
   1194     PUSH32(esp, edx); /* 0x47044EA4: push edx */
   1195     PUSH32(esp, eax); /* 0x47044EA5: push eax */
   1196     PUSH32(esp, 0); /* 0x47044EA6: push 0 */
   1197     PUSH32(esp, 0); /* 0x47044EA8: push 0 */
   1198     PUSH32(esp, 0); /* 0x47044EAA: push 0 */
   1199     PUSH32(esp, 0); /* 0x47044EAC: push 0 */
   1200     PUSH32(esp, 0); /* 0x47044EAE: push 0 */
   1201     PUSH32(esp, 0); /* 0x47044EB0: push 0 */
   1202     PUSH32(esp, 0); /* 0x47044EB2: push 0 */
   1203     ecx = ebp; /* 0x47044EB4: mov ecx, ebp */
   1204     RECOMP_ICALL(0x47044580u); /* 0x47044EB6: call 0x47044580 */ /* not lifted */
   1205     RECOMP_FLAGS_IN();
   1206     goto L_47044EBF; /* 0x47044EBB: jmp 0x47044ebf */
   1207 L_47044EBD:
   1208     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1209     eax = 0; /* 0x47044EBD: xor eax, eax */
   1210     _cf = 0;
   1211     _flag_k = FK_TEST;
   1212 L_47044EBF:
   1213     /* test eax, eax */ /* 0x47044EBF: test eax, eax */
   1214     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1215     _cf = 0;
   1216     _flag_k = FK_TEST;
   1217     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47044EC1: mov dword ptr [esp + 0x28], 0xffffffff */
   1218     edi = eax; /* 0x47044EC9: mov edi, eax */
   1219     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044F7C; /* 0x47044ECB: jne 0x47044f7c */
   1220 L_47044ED1:
   1221     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044ED1: call dword ptr [0x470ac3c8] */
   1222     RECOMP_FLAGS_IN();
   1223     edi = POP32_VAL(esp); /* 0x47044ED7: pop edi */
   1224     esi = POP32_VAL(esp); /* 0x47044ED8: pop esi */
   1225     ebp = POP32_VAL(esp); /* 0x47044ED9: pop ebp */
   1226     MEM32(eax) = 0xCu; /* 0x47044EDA: mov dword ptr [eax], 0xc */
   1227     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1228     eax = 0; /* 0x47044EE0: xor eax, eax */
   1229     _cf = 0;
   1230     _flag_k = FK_TEST;
   1231     ebx = POP32_VAL(esp); /* 0x47044EE2: pop ebx */
   1232     ecx = MEM32(esp + 0x10); /* 0x47044EE3: mov ecx, dword ptr [esp + 0x10] */
   1233     MEM32(FS_BASE + (0)) = ecx; /* 0x47044EE7: mov dword ptr fs:[0], ecx */
   1234     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1235     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1236     esp = esp + 0x1Cu; /* 0x47044EEE: add esp, 0x1c */
   1237     _flag_k = FK_ADD;
   1238     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044EF1: ret  */
   1239 L_47044EF2:
   1240     edx = MEM32(ecx); /* 0x47044EF2: mov edx, dword ptr [ecx] */
   1241     PUSH32(esp, 0x34u); /* 0x47044EF4: push 0x34 */
   1242     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47044EF6: call dword ptr [edx + 4] */
   1243     RECOMP_FLAGS_IN();
   1244     edi = eax; /* 0x47044EF9: mov edi, eax */
   1245     /* test edi, edi */ /* 0x47044EFB: test edi, edi */
   1246     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1247     _cf = 0;
   1248     _flag_k = FK_TEST;
   1249     MEM32(esp + 0x14) = edi; /* 0x47044EFD: mov dword ptr [esp + 0x14], edi */
   1250     RECOMP_BACKEDGE();
   1251     if (TEST_Z(_flag_a, _flag_b)) goto L_47044ED1; /* 0x47044F01: je 0x47044ed1 */
   1252 L_47044F03:
   1253     MEM32(esp + 0x18) = edi; /* 0x47044F03: mov dword ptr [esp + 0x18], edi */
   1254     ebp = MEM32(esi + 0x2C); /* 0x47044F07: mov ebp, dword ptr [esi + 0x2c] */
   1255     ebx = MEM32(ebp + 0x1C); /* 0x47044F0A: mov ebx, dword ptr [ebp + 0x1c] */
   1256     /* test ebx, ebx */ /* 0x47044F0D: test ebx, ebx */
   1257     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1258     _cf = 0;
   1259     _flag_k = FK_TEST;
   1260     eax = MEM32(ebp + 0x24); /* 0x47044F0F: mov eax, dword ptr [ebp + 0x24] */
   1261     MEM32(esp + 0x28) = 2; /* 0x47044F12: mov dword ptr [esp + 0x28], 2 */
   1262     MEM32(esp + 0x10) = eax; /* 0x47044F1A: mov dword ptr [esp + 0x10], eax */
   1263     if (TEST_Z(_flag_a, _flag_b)) goto L_47044F46; /* 0x47044F1E: je 0x47044f46 */
   1264 L_47044F20:
   1265     edx = MEM32(ebx); /* 0x47044F20: mov edx, dword ptr [ebx] */
   1266     ecx = ebx; /* 0x47044F22: mov ecx, ebx */
   1267     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47044F24: call dword ptr [edx + 8] */
   1268     RECOMP_FLAGS_IN();
   1269     /* cmp eax, 0xFFFFFFFFu */ /* 0x47044F27: cmp eax, -1 */
   1270     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1272     _flag_k = FK_CMP;
   1273     if (CMP_NE(_flag_a, _flag_b)) goto L_47044F35; /* 0x47044F2A: jne 0x47044f35 */
   1274 L_47044F2C:
   1275     MEM8(esp + 0x28) = (uint8_t)(2); /* 0x47044F2C: mov byte ptr [esp + 0x28], 2 */
   1276     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1277     ebp = 0; /* 0x47044F31: xor ebp, ebp */
   1278     _cf = 0;
   1279     _flag_k = FK_TEST;
   1280     goto L_47044F49; /* 0x47044F33: jmp 0x47044f49 */
   1281 L_47044F35:
   1282     _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(1);
   1283     MEM32(ebp + 0x20) = MEM32(ebp + 0x20) + 1; /* 0x47044F35: inc dword ptr [ebp + 0x20] */
   1284     _flag_k = FK_INC;
   1285     eax = MEM32(ebx); /* 0x47044F38: mov eax, dword ptr [ebx] */
   1286     ecx = ebx; /* 0x47044F3A: mov ecx, ebx */
   1287     MEM8(esp + 0x28) = (uint8_t)(2); /* 0x47044F3C: mov byte ptr [esp + 0x28], 2 */
   1288     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x47044F41: call dword ptr [eax + 0x10] */
   1289     RECOMP_FLAGS_IN();
   1290     goto L_47044F49; /* 0x47044F44: jmp 0x47044f49 */
   1291 L_47044F46:
   1292     _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(1);
   1293     MEM32(ebp + 0x20) = MEM32(ebp + 0x20) + 1; /* 0x47044F46: inc dword ptr [ebp + 0x20] */
   1294     _flag_k = FK_INC;
   1295 L_47044F49:
   1296     ecx = MEM32(esi + 0x30); /* 0x47044F49: mov ecx, dword ptr [esi + 0x30] */
   1297     edx = MEM32(esp + 0x10); /* 0x47044F4C: mov edx, dword ptr [esp + 0x10] */
   1298     PUSH32(esp, ecx); /* 0x47044F50: push ecx */
   1299     PUSH32(esp, edx); /* 0x47044F51: push edx */
   1300     edx = MEM32(esi + 0xC); /* 0x47044F52: mov edx, dword ptr [esi + 0xc] */
   1301     PUSH32(esp, ebp); /* 0x47044F55: push ebp */
   1302     eax = esi + 0x18; /* 0x47044F56: lea eax, [esi + 0x18] */
   1303     PUSH32(esp, eax); /* 0x47044F59: push eax */
   1304     ecx = esi + 0x10; /* 0x47044F5A: lea ecx, [esi + 0x10] */
   1305     PUSH32(esp, ecx); /* 0x47044F5D: push ecx */
   1306     PUSH32(esp, edx); /* 0x47044F5E: push edx */
   1307     PUSH32(esp, 0); /* 0x47044F5F: push 0 */
   1308     PUSH32(esp, 0); /* 0x47044F61: push 0 */
   1309     PUSH32(esp, 0); /* 0x47044F63: push 0 */
   1310     PUSH32(esp, 0); /* 0x47044F65: push 0 */
   1311     PUSH32(esp, 0); /* 0x47044F67: push 0 */
   1312     PUSH32(esp, 0); /* 0x47044F69: push 0 */
   1313     PUSH32(esp, 0); /* 0x47044F6B: push 0 */
   1314     ecx = edi; /* 0x47044F6D: mov ecx, edi */
   1315     RECOMP_ICALL(0x47044580u); /* 0x47044F6F: call 0x47044580 */ /* not lifted */
   1316     RECOMP_FLAGS_IN();
   1317     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47044F74: mov dword ptr [esp + 0x28], 0xffffffff */
   1318 L_47044F7C:
   1319     eax = MEM32(esi + 0x4); /* 0x47044F7C: mov eax, dword ptr [esi + 4] */
   1320     _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(eax);
   1321     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1322     MEM32(edi + 0x4) = MEM32(edi + 0x4) + eax; /* 0x47044F7F: add dword ptr [edi + 4], eax */
   1323     _flag_k = FK_ADD;
   1324     ecx = MEM32(esi + 0x8); /* 0x47044F82: mov ecx, dword ptr [esi + 8] */
   1325     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ecx);
   1326     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1327     MEM32(edi + 0x8) = MEM32(edi + 0x8) + ecx; /* 0x47044F85: add dword ptr [edi + 8], ecx */
   1328     _flag_k = FK_ADD;
   1329     esi = MEM32(esi + 0x20); /* 0x47044F88: mov esi, dword ptr [esi + 0x20] */
   1330     /* test esi, esi */ /* 0x47044F8B: test esi, esi */
   1331     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1332     _cf = 0;
   1333     _flag_k = FK_TEST;
   1334     if (TEST_Z(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F8D: je 0x47044fa6 */
   1335 L_47044F8F:
   1336     ecx = esi; /* 0x47044F8F: mov ecx, esi */
   1337     RECOMP_ICALL(0x47044DF0u); /* 0x47044F91: call 0x47044df0 */ /* not lifted */
   1338     RECOMP_FLAGS_IN();
   1339     /* test eax, eax */ /* 0x47044F96: test eax, eax */
   1340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1341     _cf = 0;
   1342     _flag_k = FK_TEST;
   1343     MEM32(edi + 0x20) = eax; /* 0x47044F98: mov dword ptr [edi + 0x20], eax */
   1344     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F9B: jne 0x47044fa6 */
   1345 L_47044F9D:
   1346     ecx = edi; /* 0x47044F9D: mov ecx, edi */
   1347     RECOMP_ICALL(0x47044BD0u); /* 0x47044F9F: call 0x47044bd0 */ /* not lifted */
   1348     RECOMP_FLAGS_IN();
   1349     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1350     edi = 0; /* 0x47044FA4: xor edi, edi */
   1351     _cf = 0;
   1352     _flag_k = FK_TEST;
   1353 L_47044FA6:
   1354     ecx = MEM32(esp + 0x20); /* 0x47044FA6: mov ecx, dword ptr [esp + 0x20] */
   1355     eax = edi; /* 0x47044FAA: mov eax, edi */
   1356     edi = POP32_VAL(esp); /* 0x47044FAC: pop edi */
   1357     esi = POP32_VAL(esp); /* 0x47044FAD: pop esi */
   1358     ebp = POP32_VAL(esp); /* 0x47044FAE: pop ebp */
   1359     ebx = POP32_VAL(esp); /* 0x47044FAF: pop ebx */
   1360     MEM32(FS_BASE + (0)) = ecx; /* 0x47044FB0: mov dword ptr fs:[0], ecx */
   1361     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1362     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1363     esp = esp + 0x1Cu; /* 0x47044FB7: add esp, 0x1c */
   1364     _flag_k = FK_ADD;
   1365     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044FBA: ret  */
   1366     RECOMP_REGS_OUT();
   1367 }
   1368 
   1369 void sub_47044E94(void) {
   1370     int _fpu_cmp = 0;
   1371     uint32_t _cf = 0;
   1372     int _df = 1;
   1373     uint32_t _flag_k = FK_NONE;
   1374     uint32_t _flag_a = 0, _flag_b = 0;
   1375     uint32_t _itail_tgt = 0;
   1376     RECOMP_REGS_LOCALS
   1377     RECOMP_ENTER(0x47044E94u);
   1378 
   1379 L_47044E94:
   1380     eax = MEM32(esi + 0x30); /* 0x47044E94: mov eax, dword ptr [esi + 0x30] */
   1381     PUSH32(esp, eax); /* 0x47044E97: push eax */
   1382     eax = MEM32(esi + 0xC); /* 0x47044E98: mov eax, dword ptr [esi + 0xc] */
   1383     PUSH32(esp, ebx); /* 0x47044E9B: push ebx */
   1384     PUSH32(esp, edi); /* 0x47044E9C: push edi */
   1385     ecx = esi + 0x18; /* 0x47044E9D: lea ecx, [esi + 0x18] */
   1386     PUSH32(esp, ecx); /* 0x47044EA0: push ecx */
   1387     edx = esi + 0x10; /* 0x47044EA1: lea edx, [esi + 0x10] */
   1388     PUSH32(esp, edx); /* 0x47044EA4: push edx */
   1389     PUSH32(esp, eax); /* 0x47044EA5: push eax */
   1390     PUSH32(esp, 0); /* 0x47044EA6: push 0 */
   1391     PUSH32(esp, 0); /* 0x47044EA8: push 0 */
   1392     PUSH32(esp, 0); /* 0x47044EAA: push 0 */
   1393     PUSH32(esp, 0); /* 0x47044EAC: push 0 */
   1394     PUSH32(esp, 0); /* 0x47044EAE: push 0 */
   1395     PUSH32(esp, 0); /* 0x47044EB0: push 0 */
   1396     PUSH32(esp, 0); /* 0x47044EB2: push 0 */
   1397     ecx = ebp; /* 0x47044EB4: mov ecx, ebp */
   1398     RECOMP_ICALL(0x47044580u); /* 0x47044EB6: call 0x47044580 */ /* not lifted */
   1399     RECOMP_FLAGS_IN();
   1400     goto L_47044EBF; /* 0x47044EBB: jmp 0x47044ebf */
   1401 L_47044EBF:
   1402     /* test eax, eax */ /* 0x47044EBF: test eax, eax */
   1403     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1404     _cf = 0;
   1405     _flag_k = FK_TEST;
   1406     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47044EC1: mov dword ptr [esp + 0x28], 0xffffffff */
   1407     edi = eax; /* 0x47044EC9: mov edi, eax */
   1408     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044F7C; /* 0x47044ECB: jne 0x47044f7c */
   1409 L_47044ED1:
   1410     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044ED1: call dword ptr [0x470ac3c8] */
   1411     RECOMP_FLAGS_IN();
   1412     edi = POP32_VAL(esp); /* 0x47044ED7: pop edi */
   1413     esi = POP32_VAL(esp); /* 0x47044ED8: pop esi */
   1414     ebp = POP32_VAL(esp); /* 0x47044ED9: pop ebp */
   1415     MEM32(eax) = 0xCu; /* 0x47044EDA: mov dword ptr [eax], 0xc */
   1416     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1417     eax = 0; /* 0x47044EE0: xor eax, eax */
   1418     _cf = 0;
   1419     _flag_k = FK_TEST;
   1420     ebx = POP32_VAL(esp); /* 0x47044EE2: pop ebx */
   1421     ecx = MEM32(esp + 0x10); /* 0x47044EE3: mov ecx, dword ptr [esp + 0x10] */
   1422     MEM32(FS_BASE + (0)) = ecx; /* 0x47044EE7: mov dword ptr fs:[0], ecx */
   1423     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1424     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1425     esp = esp + 0x1Cu; /* 0x47044EEE: add esp, 0x1c */
   1426     _flag_k = FK_ADD;
   1427     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044EF1: ret  */
   1428 L_47044F7C:
   1429     eax = MEM32(esi + 0x4); /* 0x47044F7C: mov eax, dword ptr [esi + 4] */
   1430     _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(eax);
   1431     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1432     MEM32(edi + 0x4) = MEM32(edi + 0x4) + eax; /* 0x47044F7F: add dword ptr [edi + 4], eax */
   1433     _flag_k = FK_ADD;
   1434     ecx = MEM32(esi + 0x8); /* 0x47044F82: mov ecx, dword ptr [esi + 8] */
   1435     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ecx);
   1436     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1437     MEM32(edi + 0x8) = MEM32(edi + 0x8) + ecx; /* 0x47044F85: add dword ptr [edi + 8], ecx */
   1438     _flag_k = FK_ADD;
   1439     esi = MEM32(esi + 0x20); /* 0x47044F88: mov esi, dword ptr [esi + 0x20] */
   1440     /* test esi, esi */ /* 0x47044F8B: test esi, esi */
   1441     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1442     _cf = 0;
   1443     _flag_k = FK_TEST;
   1444     if (TEST_Z(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F8D: je 0x47044fa6 */
   1445 L_47044F8F:
   1446     ecx = esi; /* 0x47044F8F: mov ecx, esi */
   1447     RECOMP_ICALL(0x47044DF0u); /* 0x47044F91: call 0x47044df0 */ /* not lifted */
   1448     RECOMP_FLAGS_IN();
   1449     /* test eax, eax */ /* 0x47044F96: test eax, eax */
   1450     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1451     _cf = 0;
   1452     _flag_k = FK_TEST;
   1453     MEM32(edi + 0x20) = eax; /* 0x47044F98: mov dword ptr [edi + 0x20], eax */
   1454     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F9B: jne 0x47044fa6 */
   1455 L_47044F9D:
   1456     ecx = edi; /* 0x47044F9D: mov ecx, edi */
   1457     RECOMP_ICALL(0x47044BD0u); /* 0x47044F9F: call 0x47044bd0 */ /* not lifted */
   1458     RECOMP_FLAGS_IN();
   1459     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1460     edi = 0; /* 0x47044FA4: xor edi, edi */
   1461     _cf = 0;
   1462     _flag_k = FK_TEST;
   1463 L_47044FA6:
   1464     ecx = MEM32(esp + 0x20); /* 0x47044FA6: mov ecx, dword ptr [esp + 0x20] */
   1465     eax = edi; /* 0x47044FAA: mov eax, edi */
   1466     edi = POP32_VAL(esp); /* 0x47044FAC: pop edi */
   1467     esi = POP32_VAL(esp); /* 0x47044FAD: pop esi */
   1468     ebp = POP32_VAL(esp); /* 0x47044FAE: pop ebp */
   1469     ebx = POP32_VAL(esp); /* 0x47044FAF: pop ebx */
   1470     MEM32(FS_BASE + (0)) = ecx; /* 0x47044FB0: mov dword ptr fs:[0], ecx */
   1471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1473     esp = esp + 0x1Cu; /* 0x47044FB7: add esp, 0x1c */
   1474     _flag_k = FK_ADD;
   1475     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044FBA: ret  */
   1476     RECOMP_REGS_OUT();
   1477 }
   1478 
   1479 void sub_47044EBF(void) {
   1480     int _fpu_cmp = 0;
   1481     uint32_t _cf = 0;
   1482     int _df = 1;
   1483     uint32_t _flag_k = FK_NONE;
   1484     uint32_t _flag_a = 0, _flag_b = 0;
   1485     uint32_t _itail_tgt = 0;
   1486     RECOMP_REGS_LOCALS
   1487     RECOMP_ENTER(0x47044EBFu);
   1488 
   1489 L_47044EBF:
   1490     /* test eax, eax */ /* 0x47044EBF: test eax, eax */
   1491     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1492     _cf = 0;
   1493     _flag_k = FK_TEST;
   1494     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47044EC1: mov dword ptr [esp + 0x28], 0xffffffff */
   1495     edi = eax; /* 0x47044EC9: mov edi, eax */
   1496     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044F7C; /* 0x47044ECB: jne 0x47044f7c */
   1497 L_47044ED1:
   1498     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044ED1: call dword ptr [0x470ac3c8] */
   1499     RECOMP_FLAGS_IN();
   1500     edi = POP32_VAL(esp); /* 0x47044ED7: pop edi */
   1501     esi = POP32_VAL(esp); /* 0x47044ED8: pop esi */
   1502     ebp = POP32_VAL(esp); /* 0x47044ED9: pop ebp */
   1503     MEM32(eax) = 0xCu; /* 0x47044EDA: mov dword ptr [eax], 0xc */
   1504     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1505     eax = 0; /* 0x47044EE0: xor eax, eax */
   1506     _cf = 0;
   1507     _flag_k = FK_TEST;
   1508     ebx = POP32_VAL(esp); /* 0x47044EE2: pop ebx */
   1509     ecx = MEM32(esp + 0x10); /* 0x47044EE3: mov ecx, dword ptr [esp + 0x10] */
   1510     MEM32(FS_BASE + (0)) = ecx; /* 0x47044EE7: mov dword ptr fs:[0], ecx */
   1511     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1512     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1513     esp = esp + 0x1Cu; /* 0x47044EEE: add esp, 0x1c */
   1514     _flag_k = FK_ADD;
   1515     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044EF1: ret  */
   1516 L_47044F7C:
   1517     eax = MEM32(esi + 0x4); /* 0x47044F7C: mov eax, dword ptr [esi + 4] */
   1518     _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(eax);
   1519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1520     MEM32(edi + 0x4) = MEM32(edi + 0x4) + eax; /* 0x47044F7F: add dword ptr [edi + 4], eax */
   1521     _flag_k = FK_ADD;
   1522     ecx = MEM32(esi + 0x8); /* 0x47044F82: mov ecx, dword ptr [esi + 8] */
   1523     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ecx);
   1524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1525     MEM32(edi + 0x8) = MEM32(edi + 0x8) + ecx; /* 0x47044F85: add dword ptr [edi + 8], ecx */
   1526     _flag_k = FK_ADD;
   1527     esi = MEM32(esi + 0x20); /* 0x47044F88: mov esi, dword ptr [esi + 0x20] */
   1528     /* test esi, esi */ /* 0x47044F8B: test esi, esi */
   1529     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1530     _cf = 0;
   1531     _flag_k = FK_TEST;
   1532     if (TEST_Z(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F8D: je 0x47044fa6 */
   1533 L_47044F8F:
   1534     ecx = esi; /* 0x47044F8F: mov ecx, esi */
   1535     RECOMP_ICALL(0x47044DF0u); /* 0x47044F91: call 0x47044df0 */ /* not lifted */
   1536     RECOMP_FLAGS_IN();
   1537     /* test eax, eax */ /* 0x47044F96: test eax, eax */
   1538     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1539     _cf = 0;
   1540     _flag_k = FK_TEST;
   1541     MEM32(edi + 0x20) = eax; /* 0x47044F98: mov dword ptr [edi + 0x20], eax */
   1542     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F9B: jne 0x47044fa6 */
   1543 L_47044F9D:
   1544     ecx = edi; /* 0x47044F9D: mov ecx, edi */
   1545     RECOMP_ICALL(0x47044BD0u); /* 0x47044F9F: call 0x47044bd0 */ /* not lifted */
   1546     RECOMP_FLAGS_IN();
   1547     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1548     edi = 0; /* 0x47044FA4: xor edi, edi */
   1549     _cf = 0;
   1550     _flag_k = FK_TEST;
   1551 L_47044FA6:
   1552     ecx = MEM32(esp + 0x20); /* 0x47044FA6: mov ecx, dword ptr [esp + 0x20] */
   1553     eax = edi; /* 0x47044FAA: mov eax, edi */
   1554     edi = POP32_VAL(esp); /* 0x47044FAC: pop edi */
   1555     esi = POP32_VAL(esp); /* 0x47044FAD: pop esi */
   1556     ebp = POP32_VAL(esp); /* 0x47044FAE: pop ebp */
   1557     ebx = POP32_VAL(esp); /* 0x47044FAF: pop ebx */
   1558     MEM32(FS_BASE + (0)) = ecx; /* 0x47044FB0: mov dword ptr fs:[0], ecx */
   1559     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1560     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1561     esp = esp + 0x1Cu; /* 0x47044FB7: add esp, 0x1c */
   1562     _flag_k = FK_ADD;
   1563     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044FBA: ret  */
   1564     RECOMP_REGS_OUT();
   1565 }
   1566 
   1567 void sub_47044F49(void) {
   1568     int _fpu_cmp = 0;
   1569     uint32_t _cf = 0;
   1570     int _df = 1;
   1571     uint32_t _flag_k = FK_NONE;
   1572     uint32_t _flag_a = 0, _flag_b = 0;
   1573     uint32_t _itail_tgt = 0;
   1574     RECOMP_REGS_LOCALS
   1575     RECOMP_ENTER(0x47044F49u);
   1576 
   1577 L_47044F49:
   1578     ecx = MEM32(esi + 0x30); /* 0x47044F49: mov ecx, dword ptr [esi + 0x30] */
   1579     edx = MEM32(esp + 0x10); /* 0x47044F4C: mov edx, dword ptr [esp + 0x10] */
   1580     PUSH32(esp, ecx); /* 0x47044F50: push ecx */
   1581     PUSH32(esp, edx); /* 0x47044F51: push edx */
   1582     edx = MEM32(esi + 0xC); /* 0x47044F52: mov edx, dword ptr [esi + 0xc] */
   1583     PUSH32(esp, ebp); /* 0x47044F55: push ebp */
   1584     eax = esi + 0x18; /* 0x47044F56: lea eax, [esi + 0x18] */
   1585     PUSH32(esp, eax); /* 0x47044F59: push eax */
   1586     ecx = esi + 0x10; /* 0x47044F5A: lea ecx, [esi + 0x10] */
   1587     PUSH32(esp, ecx); /* 0x47044F5D: push ecx */
   1588     PUSH32(esp, edx); /* 0x47044F5E: push edx */
   1589     PUSH32(esp, 0); /* 0x47044F5F: push 0 */
   1590     PUSH32(esp, 0); /* 0x47044F61: push 0 */
   1591     PUSH32(esp, 0); /* 0x47044F63: push 0 */
   1592     PUSH32(esp, 0); /* 0x47044F65: push 0 */
   1593     PUSH32(esp, 0); /* 0x47044F67: push 0 */
   1594     PUSH32(esp, 0); /* 0x47044F69: push 0 */
   1595     PUSH32(esp, 0); /* 0x47044F6B: push 0 */
   1596     ecx = edi; /* 0x47044F6D: mov ecx, edi */
   1597     RECOMP_ICALL(0x47044580u); /* 0x47044F6F: call 0x47044580 */ /* not lifted */
   1598     RECOMP_FLAGS_IN();
   1599     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47044F74: mov dword ptr [esp + 0x28], 0xffffffff */
   1600     eax = MEM32(esi + 0x4); /* 0x47044F7C: mov eax, dword ptr [esi + 4] */
   1601     _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(eax);
   1602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1603     MEM32(edi + 0x4) = MEM32(edi + 0x4) + eax; /* 0x47044F7F: add dword ptr [edi + 4], eax */
   1604     _flag_k = FK_ADD;
   1605     ecx = MEM32(esi + 0x8); /* 0x47044F82: mov ecx, dword ptr [esi + 8] */
   1606     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ecx);
   1607     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1608     MEM32(edi + 0x8) = MEM32(edi + 0x8) + ecx; /* 0x47044F85: add dword ptr [edi + 8], ecx */
   1609     _flag_k = FK_ADD;
   1610     esi = MEM32(esi + 0x20); /* 0x47044F88: mov esi, dword ptr [esi + 0x20] */
   1611     /* test esi, esi */ /* 0x47044F8B: test esi, esi */
   1612     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1613     _cf = 0;
   1614     _flag_k = FK_TEST;
   1615     if (TEST_Z(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F8D: je 0x47044fa6 */
   1616 L_47044F8F:
   1617     ecx = esi; /* 0x47044F8F: mov ecx, esi */
   1618     RECOMP_ICALL(0x47044DF0u); /* 0x47044F91: call 0x47044df0 */ /* not lifted */
   1619     RECOMP_FLAGS_IN();
   1620     /* test eax, eax */ /* 0x47044F96: test eax, eax */
   1621     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1622     _cf = 0;
   1623     _flag_k = FK_TEST;
   1624     MEM32(edi + 0x20) = eax; /* 0x47044F98: mov dword ptr [edi + 0x20], eax */
   1625     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F9B: jne 0x47044fa6 */
   1626 L_47044F9D:
   1627     ecx = edi; /* 0x47044F9D: mov ecx, edi */
   1628     RECOMP_ICALL(0x47044BD0u); /* 0x47044F9F: call 0x47044bd0 */ /* not lifted */
   1629     RECOMP_FLAGS_IN();
   1630     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1631     edi = 0; /* 0x47044FA4: xor edi, edi */
   1632     _cf = 0;
   1633     _flag_k = FK_TEST;
   1634 L_47044FA6:
   1635     ecx = MEM32(esp + 0x20); /* 0x47044FA6: mov ecx, dword ptr [esp + 0x20] */
   1636     eax = edi; /* 0x47044FAA: mov eax, edi */
   1637     edi = POP32_VAL(esp); /* 0x47044FAC: pop edi */
   1638     esi = POP32_VAL(esp); /* 0x47044FAD: pop esi */
   1639     ebp = POP32_VAL(esp); /* 0x47044FAE: pop ebp */
   1640     ebx = POP32_VAL(esp); /* 0x47044FAF: pop ebx */
   1641     MEM32(FS_BASE + (0)) = ecx; /* 0x47044FB0: mov dword ptr fs:[0], ecx */
   1642     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1643     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1644     esp = esp + 0x1Cu; /* 0x47044FB7: add esp, 0x1c */
   1645     _flag_k = FK_ADD;
   1646     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044FBA: ret  */
   1647     RECOMP_REGS_OUT();
   1648 }
   1649 
   1650 void sub_47044FC0(void) {
   1651     int _fpu_cmp = 0;
   1652     uint32_t _cf = 0;
   1653     int _df = 1;
   1654     uint32_t _flag_k = FK_NONE;
   1655     uint32_t _flag_a = 0, _flag_b = 0;
   1656     uint32_t _itail_tgt = 0;
   1657     RECOMP_REGS_LOCALS
   1658     RECOMP_ENTER(0x47044FC0u);
   1659 
   1660     goto L_47044FC0;
   1661 L_47044DF0:
   1662     eax = MEM32(FS_BASE + (0)); /* 0x47044DF0: mov eax, dword ptr fs:[0] */
   1663     PUSH32(esp, 0xFFFFFFFFu); /* 0x47044DF6: push -1 */
   1664     PUSH32(esp, 0x470A66BCu); /* 0x47044DF8: push 0x470a66bc */
   1665     PUSH32(esp, eax); /* 0x47044DFD: push eax */
   1666     MEM32(FS_BASE + (0)) = esp; /* 0x47044DFE: mov dword ptr fs:[0], esp */
   1667     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1669     esp = esp - 0x10u; /* 0x47044E05: sub esp, 0x10 */
   1670     _flag_k = FK_CMP;
   1671     PUSH32(esp, ebx); /* 0x47044E08: push ebx */
   1672     PUSH32(esp, ebp); /* 0x47044E09: push ebp */
   1673     PUSH32(esp, esi); /* 0x47044E0A: push esi */
   1674     esi = ecx; /* 0x47044E0B: mov esi, ecx */
   1675     ecx = MEM32(esi + 0x30); /* 0x47044E0D: mov ecx, dword ptr [esi + 0x30] */
   1676     /* test ecx, ecx */ /* 0x47044E10: test ecx, ecx */
   1677     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1678     _cf = 0;
   1679     _flag_k = FK_TEST;
   1680     PUSH32(esp, edi); /* 0x47044E12: push edi */
   1681     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044EF2; /* 0x47044E13: jne 0x47044ef2 */
   1682 L_47044E19:
   1683     PUSH32(esp, 0x34u); /* 0x47044E19: push 0x34 */
   1684     RECOMP_ICALL(0x470A33F2u); /* 0x47044E1B: call 0x470a33f2 */ /* not lifted */
   1685     RECOMP_FLAGS_IN();
   1686     ebp = eax; /* 0x47044E20: mov ebp, eax */
   1687     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1688     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1689     esp = esp + 4; /* 0x47044E22: add esp, 4 */
   1690     _flag_k = FK_ADD;
   1691     MEM32(esp + 0x10) = ebp; /* 0x47044E25: mov dword ptr [esp + 0x10], ebp */
   1692     /* test ebp, ebp */ /* 0x47044E29: test ebp, ebp */
   1693     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   1694     _cf = 0;
   1695     _flag_k = FK_TEST;
   1696     MEM32(esp + 0x28) = 0; /* 0x47044E2B: mov dword ptr [esp + 0x28], 0 */
   1697     if (TEST_Z(_flag_a, _flag_b)) goto L_47044EBD; /* 0x47044E33: je 0x47044ebd */
   1698 L_47044E39:
   1699     edi = MEM32(esi + 0x2C); /* 0x47044E39: mov edi, dword ptr [esi + 0x2c] */
   1700     ecx = MEM32(edi + 0x1C); /* 0x47044E3C: mov ecx, dword ptr [edi + 0x1c] */
   1701     /* test ecx, ecx */ /* 0x47044E3F: test ecx, ecx */
   1702     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1703     _cf = 0;
   1704     _flag_k = FK_TEST;
   1705     ebx = MEM32(edi + 0x24); /* 0x47044E41: mov ebx, dword ptr [edi + 0x24] */
   1706     if (TEST_Z(_flag_a, _flag_b)) goto L_47044E91; /* 0x47044E44: je 0x47044e91 */
   1707 L_47044E46:
   1708     MEM32(esp + 0x18) = ecx; /* 0x47044E46: mov dword ptr [esp + 0x18], ecx */
   1709     MEM32(esp + 0x1C) = 0; /* 0x47044E4A: mov dword ptr [esp + 0x1c], 0 */
   1710     eax = MEM32(ecx); /* 0x47044E52: mov eax, dword ptr [ecx] */
   1711     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47044E54: call dword ptr [eax + 8] */
   1712     RECOMP_FLAGS_IN();
   1713     MEM32(esp + 0x1C) = eax; /* 0x47044E57: mov dword ptr [esp + 0x1c], eax */
   1714     /* cmp eax, 0xFFFFFFFFu */ /* 0x47044E5B: cmp eax, -1 */
   1715     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1717     _flag_k = FK_CMP;
   1718     if (CMP_NE(_flag_a, _flag_b)) goto L_47044E72; /* 0x47044E5E: jne 0x47044e72 */
   1719 L_47044E60:
   1720     ecx = esp + 0x18; /* 0x47044E60: lea ecx, [esp + 0x18] */
   1721     MEM8(esp + 0x28) = (uint8_t)(0); /* 0x47044E64: mov byte ptr [esp + 0x28], 0 */
   1722     RECOMP_ICALL(0x47045860u); /* 0x47044E69: call 0x47045860 */ /* not lifted */
   1723     RECOMP_FLAGS_IN();
   1724     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1725     edi = 0; /* 0x47044E6E: xor edi, edi */
   1726     _cf = 0;
   1727     _flag_k = FK_TEST;
   1728     goto L_47044E94; /* 0x47044E70: jmp 0x47044e94 */
   1729 L_47044E72:
   1730     eax = MEM32(edi + 0x20); /* 0x47044E72: mov eax, dword ptr [edi + 0x20] */
   1731     ecx = MEM32(esp + 0x18); /* 0x47044E75: mov ecx, dword ptr [esp + 0x18] */
   1732     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1733     eax = eax + 1; /* 0x47044E79: inc eax */
   1734     _flag_k = FK_INC;
   1735     MEM32(edi + 0x20) = eax; /* 0x47044E7A: mov dword ptr [edi + 0x20], eax */
   1736     MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47044E7D: mov dword ptr [esp + 0x1c], 0xffffffff */
   1737     edx = MEM32(ecx); /* 0x47044E85: mov edx, dword ptr [ecx] */
   1738     MEM8(esp + 0x28) = (uint8_t)(0); /* 0x47044E87: mov byte ptr [esp + 0x28], 0 */
   1739     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x47044E8C: call dword ptr [edx + 0x10] */
   1740     RECOMP_FLAGS_IN();
   1741     goto L_47044E94; /* 0x47044E8F: jmp 0x47044e94 */
   1742 L_47044E91:
   1743     _flag_a = (uint32_t)(MEM32(edi + 0x20)); _flag_b = (uint32_t)(1);
   1744     MEM32(edi + 0x20) = MEM32(edi + 0x20) + 1; /* 0x47044E91: inc dword ptr [edi + 0x20] */
   1745     _flag_k = FK_INC;
   1746 L_47044E94:
   1747     eax = MEM32(esi + 0x30); /* 0x47044E94: mov eax, dword ptr [esi + 0x30] */
   1748     PUSH32(esp, eax); /* 0x47044E97: push eax */
   1749     eax = MEM32(esi + 0xC); /* 0x47044E98: mov eax, dword ptr [esi + 0xc] */
   1750     PUSH32(esp, ebx); /* 0x47044E9B: push ebx */
   1751     PUSH32(esp, edi); /* 0x47044E9C: push edi */
   1752     ecx = esi + 0x18; /* 0x47044E9D: lea ecx, [esi + 0x18] */
   1753     PUSH32(esp, ecx); /* 0x47044EA0: push ecx */
   1754     edx = esi + 0x10; /* 0x47044EA1: lea edx, [esi + 0x10] */
   1755     PUSH32(esp, edx); /* 0x47044EA4: push edx */
   1756     PUSH32(esp, eax); /* 0x47044EA5: push eax */
   1757     PUSH32(esp, 0); /* 0x47044EA6: push 0 */
   1758     PUSH32(esp, 0); /* 0x47044EA8: push 0 */
   1759     PUSH32(esp, 0); /* 0x47044EAA: push 0 */
   1760     PUSH32(esp, 0); /* 0x47044EAC: push 0 */
   1761     PUSH32(esp, 0); /* 0x47044EAE: push 0 */
   1762     PUSH32(esp, 0); /* 0x47044EB0: push 0 */
   1763     PUSH32(esp, 0); /* 0x47044EB2: push 0 */
   1764     ecx = ebp; /* 0x47044EB4: mov ecx, ebp */
   1765     RECOMP_ICALL(0x47044580u); /* 0x47044EB6: call 0x47044580 */ /* not lifted */
   1766     RECOMP_FLAGS_IN();
   1767     goto L_47044EBF; /* 0x47044EBB: jmp 0x47044ebf */
   1768 L_47044EBD:
   1769     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1770     eax = 0; /* 0x47044EBD: xor eax, eax */
   1771     _cf = 0;
   1772     _flag_k = FK_TEST;
   1773 L_47044EBF:
   1774     /* test eax, eax */ /* 0x47044EBF: test eax, eax */
   1775     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1776     _cf = 0;
   1777     _flag_k = FK_TEST;
   1778     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47044EC1: mov dword ptr [esp + 0x28], 0xffffffff */
   1779     edi = eax; /* 0x47044EC9: mov edi, eax */
   1780     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044F7C; /* 0x47044ECB: jne 0x47044f7c */
   1781 L_47044ED1:
   1782     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47044ED1: call dword ptr [0x470ac3c8] */
   1783     RECOMP_FLAGS_IN();
   1784     edi = POP32_VAL(esp); /* 0x47044ED7: pop edi */
   1785     esi = POP32_VAL(esp); /* 0x47044ED8: pop esi */
   1786     ebp = POP32_VAL(esp); /* 0x47044ED9: pop ebp */
   1787     MEM32(eax) = 0xCu; /* 0x47044EDA: mov dword ptr [eax], 0xc */
   1788     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1789     eax = 0; /* 0x47044EE0: xor eax, eax */
   1790     _cf = 0;
   1791     _flag_k = FK_TEST;
   1792     ebx = POP32_VAL(esp); /* 0x47044EE2: pop ebx */
   1793     ecx = MEM32(esp + 0x10); /* 0x47044EE3: mov ecx, dword ptr [esp + 0x10] */
   1794     MEM32(FS_BASE + (0)) = ecx; /* 0x47044EE7: mov dword ptr fs:[0], ecx */
   1795     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1796     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1797     esp = esp + 0x1Cu; /* 0x47044EEE: add esp, 0x1c */
   1798     _flag_k = FK_ADD;
   1799     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044EF1: ret  */
   1800 L_47044EF2:
   1801     edx = MEM32(ecx); /* 0x47044EF2: mov edx, dword ptr [ecx] */
   1802     PUSH32(esp, 0x34u); /* 0x47044EF4: push 0x34 */
   1803     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47044EF6: call dword ptr [edx + 4] */
   1804     RECOMP_FLAGS_IN();
   1805     edi = eax; /* 0x47044EF9: mov edi, eax */
   1806     /* test edi, edi */ /* 0x47044EFB: test edi, edi */
   1807     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1808     _cf = 0;
   1809     _flag_k = FK_TEST;
   1810     MEM32(esp + 0x14) = edi; /* 0x47044EFD: mov dword ptr [esp + 0x14], edi */
   1811     RECOMP_BACKEDGE();
   1812     if (TEST_Z(_flag_a, _flag_b)) goto L_47044ED1; /* 0x47044F01: je 0x47044ed1 */
   1813 L_47044F03:
   1814     MEM32(esp + 0x18) = edi; /* 0x47044F03: mov dword ptr [esp + 0x18], edi */
   1815     ebp = MEM32(esi + 0x2C); /* 0x47044F07: mov ebp, dword ptr [esi + 0x2c] */
   1816     ebx = MEM32(ebp + 0x1C); /* 0x47044F0A: mov ebx, dword ptr [ebp + 0x1c] */
   1817     /* test ebx, ebx */ /* 0x47044F0D: test ebx, ebx */
   1818     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1819     _cf = 0;
   1820     _flag_k = FK_TEST;
   1821     eax = MEM32(ebp + 0x24); /* 0x47044F0F: mov eax, dword ptr [ebp + 0x24] */
   1822     MEM32(esp + 0x28) = 2; /* 0x47044F12: mov dword ptr [esp + 0x28], 2 */
   1823     MEM32(esp + 0x10) = eax; /* 0x47044F1A: mov dword ptr [esp + 0x10], eax */
   1824     if (TEST_Z(_flag_a, _flag_b)) goto L_47044F46; /* 0x47044F1E: je 0x47044f46 */
   1825 L_47044F20:
   1826     edx = MEM32(ebx); /* 0x47044F20: mov edx, dword ptr [ebx] */
   1827     ecx = ebx; /* 0x47044F22: mov ecx, ebx */
   1828     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47044F24: call dword ptr [edx + 8] */
   1829     RECOMP_FLAGS_IN();
   1830     /* cmp eax, 0xFFFFFFFFu */ /* 0x47044F27: cmp eax, -1 */
   1831     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1832     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1833     _flag_k = FK_CMP;
   1834     if (CMP_NE(_flag_a, _flag_b)) goto L_47044F35; /* 0x47044F2A: jne 0x47044f35 */
   1835 L_47044F2C:
   1836     MEM8(esp + 0x28) = (uint8_t)(2); /* 0x47044F2C: mov byte ptr [esp + 0x28], 2 */
   1837     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1838     ebp = 0; /* 0x47044F31: xor ebp, ebp */
   1839     _cf = 0;
   1840     _flag_k = FK_TEST;
   1841     goto L_47044F49; /* 0x47044F33: jmp 0x47044f49 */
   1842 L_47044F35:
   1843     _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(1);
   1844     MEM32(ebp + 0x20) = MEM32(ebp + 0x20) + 1; /* 0x47044F35: inc dword ptr [ebp + 0x20] */
   1845     _flag_k = FK_INC;
   1846     eax = MEM32(ebx); /* 0x47044F38: mov eax, dword ptr [ebx] */
   1847     ecx = ebx; /* 0x47044F3A: mov ecx, ebx */
   1848     MEM8(esp + 0x28) = (uint8_t)(2); /* 0x47044F3C: mov byte ptr [esp + 0x28], 2 */
   1849     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x47044F41: call dword ptr [eax + 0x10] */
   1850     RECOMP_FLAGS_IN();
   1851     goto L_47044F49; /* 0x47044F44: jmp 0x47044f49 */
   1852 L_47044F46:
   1853     _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(1);
   1854     MEM32(ebp + 0x20) = MEM32(ebp + 0x20) + 1; /* 0x47044F46: inc dword ptr [ebp + 0x20] */
   1855     _flag_k = FK_INC;
   1856 L_47044F49:
   1857     ecx = MEM32(esi + 0x30); /* 0x47044F49: mov ecx, dword ptr [esi + 0x30] */
   1858     edx = MEM32(esp + 0x10); /* 0x47044F4C: mov edx, dword ptr [esp + 0x10] */
   1859     PUSH32(esp, ecx); /* 0x47044F50: push ecx */
   1860     PUSH32(esp, edx); /* 0x47044F51: push edx */
   1861     edx = MEM32(esi + 0xC); /* 0x47044F52: mov edx, dword ptr [esi + 0xc] */
   1862     PUSH32(esp, ebp); /* 0x47044F55: push ebp */
   1863     eax = esi + 0x18; /* 0x47044F56: lea eax, [esi + 0x18] */
   1864     PUSH32(esp, eax); /* 0x47044F59: push eax */
   1865     ecx = esi + 0x10; /* 0x47044F5A: lea ecx, [esi + 0x10] */
   1866     PUSH32(esp, ecx); /* 0x47044F5D: push ecx */
   1867     PUSH32(esp, edx); /* 0x47044F5E: push edx */
   1868     PUSH32(esp, 0); /* 0x47044F5F: push 0 */
   1869     PUSH32(esp, 0); /* 0x47044F61: push 0 */
   1870     PUSH32(esp, 0); /* 0x47044F63: push 0 */
   1871     PUSH32(esp, 0); /* 0x47044F65: push 0 */
   1872     PUSH32(esp, 0); /* 0x47044F67: push 0 */
   1873     PUSH32(esp, 0); /* 0x47044F69: push 0 */
   1874     PUSH32(esp, 0); /* 0x47044F6B: push 0 */
   1875     ecx = edi; /* 0x47044F6D: mov ecx, edi */
   1876     RECOMP_ICALL(0x47044580u); /* 0x47044F6F: call 0x47044580 */ /* not lifted */
   1877     RECOMP_FLAGS_IN();
   1878     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47044F74: mov dword ptr [esp + 0x28], 0xffffffff */
   1879 L_47044F7C:
   1880     eax = MEM32(esi + 0x4); /* 0x47044F7C: mov eax, dword ptr [esi + 4] */
   1881     _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(eax);
   1882     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1883     MEM32(edi + 0x4) = MEM32(edi + 0x4) + eax; /* 0x47044F7F: add dword ptr [edi + 4], eax */
   1884     _flag_k = FK_ADD;
   1885     ecx = MEM32(esi + 0x8); /* 0x47044F82: mov ecx, dword ptr [esi + 8] */
   1886     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ecx);
   1887     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1888     MEM32(edi + 0x8) = MEM32(edi + 0x8) + ecx; /* 0x47044F85: add dword ptr [edi + 8], ecx */
   1889     _flag_k = FK_ADD;
   1890     esi = MEM32(esi + 0x20); /* 0x47044F88: mov esi, dword ptr [esi + 0x20] */
   1891     /* test esi, esi */ /* 0x47044F8B: test esi, esi */
   1892     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1893     _cf = 0;
   1894     _flag_k = FK_TEST;
   1895     if (TEST_Z(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F8D: je 0x47044fa6 */
   1896 L_47044F8F:
   1897     ecx = esi; /* 0x47044F8F: mov ecx, esi */
   1898     RECOMP_ICALL(0x47044DF0u); /* 0x47044F91: call 0x47044df0 */ /* not lifted */
   1899     RECOMP_FLAGS_IN();
   1900     /* test eax, eax */ /* 0x47044F96: test eax, eax */
   1901     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1902     _cf = 0;
   1903     _flag_k = FK_TEST;
   1904     MEM32(edi + 0x20) = eax; /* 0x47044F98: mov dword ptr [edi + 0x20], eax */
   1905     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044FA6; /* 0x47044F9B: jne 0x47044fa6 */
   1906 L_47044F9D:
   1907     ecx = edi; /* 0x47044F9D: mov ecx, edi */
   1908     RECOMP_ICALL(0x47044BD0u); /* 0x47044F9F: call 0x47044bd0 */ /* not lifted */
   1909     RECOMP_FLAGS_IN();
   1910     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1911     edi = 0; /* 0x47044FA4: xor edi, edi */
   1912     _cf = 0;
   1913     _flag_k = FK_TEST;
   1914 L_47044FA6:
   1915     ecx = MEM32(esp + 0x20); /* 0x47044FA6: mov ecx, dword ptr [esp + 0x20] */
   1916     eax = edi; /* 0x47044FAA: mov eax, edi */
   1917     edi = POP32_VAL(esp); /* 0x47044FAC: pop edi */
   1918     esi = POP32_VAL(esp); /* 0x47044FAD: pop esi */
   1919     ebp = POP32_VAL(esp); /* 0x47044FAE: pop ebp */
   1920     ebx = POP32_VAL(esp); /* 0x47044FAF: pop ebx */
   1921     MEM32(FS_BASE + (0)) = ecx; /* 0x47044FB0: mov dword ptr fs:[0], ecx */
   1922     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1923     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1924     esp = esp + 0x1Cu; /* 0x47044FB7: add esp, 0x1c */
   1925     _flag_k = FK_ADD;
   1926     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044FBA: ret  */
   1927 L_47044FC0:
   1928     ecx = MEM32(esp + 0x4); /* 0x47044FC0: mov ecx, dword ptr [esp + 4] */
   1929     /* test ecx, ecx */ /* 0x47044FC4: test ecx, ecx */
   1930     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1931     _cf = 0;
   1932     _flag_k = FK_TEST;
   1933     if (TEST_NZ(_flag_a, _flag_b)) goto L_47044FCB; /* 0x47044FC6: jne 0x47044fcb */
   1934 L_47044FC8:
   1935     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1936     eax = 0; /* 0x47044FC8: xor eax, eax */
   1937     _cf = 0;
   1938     _flag_k = FK_TEST;
   1939     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47044FCA: ret  */
   1940 L_47044FCB:
   1941     RECOMP_BACKEDGE();
   1942     goto L_47044DF0; /* 0x47044FCB: jmp 0x47044df0 */
   1943     { RECOMP_REGS_OUT(); return; } /* end of function */
   1944     RECOMP_REGS_OUT();
   1945 }
   1946 
   1947 void sub_47044FD0(void) {
   1948     int _fpu_cmp = 0;
   1949     uint32_t _cf = 0;
   1950     int _df = 1;
   1951     uint32_t _flag_k = FK_NONE;
   1952     uint32_t _flag_a = 0, _flag_b = 0;
   1953     uint32_t _itail_tgt = 0;
   1954     RECOMP_REGS_LOCALS
   1955     RECOMP_ENTER(0x47044FD0u);
   1956 
   1957 L_47044FD0:
   1958     PUSH32(esp, esi); /* 0x47044FD0: push esi */
   1959     esi = ecx; /* 0x47044FD1: mov esi, ecx */
   1960     ecx = MEM32(esp + 0x8); /* 0x47044FD3: mov ecx, dword ptr [esp + 8] */
   1961     eax = MEM32(esi); /* 0x47044FD7: mov eax, dword ptr [esi] */
   1962     PUSH32(esp, edi); /* 0x47044FD9: push edi */
   1963     PUSH32(esp, ecx); /* 0x47044FDA: push ecx */
   1964     ecx = esi; /* 0x47044FDB: mov ecx, esi */
   1965     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47044FDD: call dword ptr [eax + 8] */
   1966     RECOMP_FLAGS_IN();
   1967     ecx = MEM32(esi + 0xC); /* 0x47044FE0: mov ecx, dword ptr [esi + 0xc] */
   1968     esi = MEM32(esi + 0x14); /* 0x47044FE3: mov esi, dword ptr [esi + 0x14] */
   1969     edi = MEM32(eax + 0x14); /* 0x47044FE6: mov edi, dword ptr [eax + 0x14] */
   1970     edx = ecx; /* 0x47044FE9: mov edx, ecx */
   1971     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47044FEB: shr ecx, 2 */
   1972     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1973     ecx = ecx >> 2u; /* 0x47044FEB: shr ecx, 2 */
   1974     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47044FEE: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1975     ecx = edx; /* 0x47044FF0: mov ecx, edx */
   1976     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   1977     ecx = ecx & 3; /* 0x47044FF2: and ecx, 3 */
   1978     _cf = 0;
   1979     _flag_k = FK_TEST;
   1980     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47044FF5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1981     edi = POP32_VAL(esp); /* 0x47044FF7: pop edi */
   1982     esi = POP32_VAL(esp); /* 0x47044FF8: pop esi */
   1983     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47044FF9: ret 4 */
   1984     RECOMP_REGS_OUT();
   1985 }
   1986 
   1987 void sub_47045000(void) {
   1988     int _fpu_cmp = 0;
   1989     uint32_t _cf = 0;
   1990     int _df = 1;
   1991     uint32_t _flag_k = FK_NONE;
   1992     uint32_t _flag_a = 0, _flag_b = 0;
   1993     uint32_t _itail_tgt = 0;
   1994     RECOMP_REGS_LOCALS
   1995     RECOMP_ENTER(0x47045000u);
   1996 
   1997 L_47045000:
   1998     PUSH32(esp, 0xFFFFFFFFu); /* 0x47045000: push -1 */
   1999     PUSH32(esp, 0x470A66E1u); /* 0x47045002: push 0x470a66e1 */
   2000     eax = MEM32(FS_BASE + (0)); /* 0x47045007: mov eax, dword ptr fs:[0] */
   2001     PUSH32(esp, eax); /* 0x4704500D: push eax */
   2002     MEM32(FS_BASE + (0)) = esp; /* 0x4704500E: mov dword ptr fs:[0], esp */
   2003     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2005     esp = esp - 8; /* 0x47045015: sub esp, 8 */
   2006     _flag_k = FK_CMP;
   2007     PUSH32(esp, esi); /* 0x47045018: push esi */
   2008     esi = ecx; /* 0x47045019: mov esi, ecx */
   2009     ecx = MEM32(esi + 0x24); /* 0x4704501B: mov ecx, dword ptr [esi + 0x24] */
   2010     eax = MEM32(ecx); /* 0x4704501E: mov eax, dword ptr [ecx] */
   2011     PUSH32(esp, edi); /* 0x47045020: push edi */
   2012     PUSH32(esp, 0x28u); /* 0x47045021: push 0x28 */
   2013     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47045023: call dword ptr [eax + 4] */
   2014     RECOMP_FLAGS_IN();
   2015     edi = eax; /* 0x47045026: mov edi, eax */
   2016     /* test edi, edi */ /* 0x47045028: test edi, edi */
   2017     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2018     _cf = 0;
   2019     _flag_k = FK_TEST;
   2020     MEM32(esp + 0x8) = edi; /* 0x4704502A: mov dword ptr [esp + 8], edi */
   2021     if (TEST_Z(_flag_a, _flag_b)) goto L_47045083; /* 0x4704502E: je 0x47045083 */
   2022 L_47045030:
   2023     MEM32(esp + 0xC) = edi; /* 0x47045030: mov dword ptr [esp + 0xc], edi */
   2024     ecx = MEM32(esi + 0x24); /* 0x47045034: mov ecx, dword ptr [esi + 0x24] */
   2025     edx = MEM32(esi + 0x10); /* 0x47045037: mov edx, dword ptr [esi + 0x10] */
   2026     eax = MEM32(esi + 0x1C); /* 0x4704503A: mov eax, dword ptr [esi + 0x1c] */
   2027     PUSH32(esp, ecx); /* 0x4704503D: push ecx */
   2028     ecx = MEM32(esi + 0x18); /* 0x4704503E: mov ecx, dword ptr [esi + 0x18] */
   2029     PUSH32(esp, edx); /* 0x47045041: push edx */
   2030     edx = MEM32(esi + 0x4); /* 0x47045042: mov edx, dword ptr [esi + 4] */
   2031     PUSH32(esp, eax); /* 0x47045045: push eax */
   2032     eax = MEM32(esi + 0xC); /* 0x47045046: mov eax, dword ptr [esi + 0xc] */
   2033     PUSH32(esp, ecx); /* 0x47045049: push ecx */
   2034     PUSH32(esp, 0); /* 0x4704504A: push 0 */
   2035     PUSH32(esp, edx); /* 0x4704504C: push edx */
   2036     PUSH32(esp, eax); /* 0x4704504D: push eax */
   2037     ecx = edi; /* 0x4704504E: mov ecx, edi */
   2038     MEM32(esp + 0x34) = 0; /* 0x47045050: mov dword ptr [esp + 0x34], 0 */
   2039     RECOMP_ICALL(0x47044150u); /* 0x47045058: call 0x47044150 */ /* not lifted */
   2040     RECOMP_FLAGS_IN();
   2041     ecx = MEM32(esp + 0x20); /* 0x4704505D: mov ecx, dword ptr [esp + 0x20] */
   2042     eax = MEM32(edi + 0x10); /* 0x47045061: mov eax, dword ptr [edi + 0x10] */
   2043     _flag_a = (uint32_t)((ecx | 1)); _flag_b = (uint32_t)((ecx | 1));
   2044     ecx = ecx | 1; /* 0x47045064: or ecx, 1 */
   2045     _cf = 0;
   2046     _flag_k = FK_TEST;
   2047     ecx = ~ecx; /* 0x47045067: not ecx */
   2048     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2049     eax = eax & ecx; /* 0x47045069: and eax, ecx */
   2050     _cf = 0;
   2051     _flag_k = FK_TEST;
   2052     MEM32(edi + 0x10) = eax; /* 0x4704506B: mov dword ptr [edi + 0x10], eax */
   2053     eax = edi; /* 0x4704506E: mov eax, edi */
   2054     edi = POP32_VAL(esp); /* 0x47045070: pop edi */
   2055     esi = POP32_VAL(esp); /* 0x47045071: pop esi */
   2056     ecx = MEM32(esp + 0x8); /* 0x47045072: mov ecx, dword ptr [esp + 8] */
   2057     MEM32(FS_BASE + (0)) = ecx; /* 0x47045076: mov dword ptr fs:[0], ecx */
   2058     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2060     esp = esp + 0x14u; /* 0x4704507D: add esp, 0x14 */
   2061     _flag_k = FK_ADD;
   2062     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47045080: ret 4 */
   2063 L_47045083:
   2064     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47045083: call dword ptr [0x470ac3c8] */
   2065     RECOMP_FLAGS_IN();
   2066     ecx = MEM32(esp + 0x10); /* 0x47045089: mov ecx, dword ptr [esp + 0x10] */
   2067     MEM32(eax) = 0xCu; /* 0x4704508D: mov dword ptr [eax], 0xc */
   2068     edi = POP32_VAL(esp); /* 0x47045093: pop edi */
   2069     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2070     eax = 0; /* 0x47045094: xor eax, eax */
   2071     _cf = 0;
   2072     _flag_k = FK_TEST;
   2073     esi = POP32_VAL(esp); /* 0x47045096: pop esi */
   2074     MEM32(FS_BASE + (0)) = ecx; /* 0x47045097: mov dword ptr fs:[0], ecx */
   2075     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2076     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2077     esp = esp + 0x14u; /* 0x4704509E: add esp, 0x14 */
   2078     _flag_k = FK_ADD;
   2079     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470450A1: ret 4 */
   2080     RECOMP_REGS_OUT();
   2081 }
   2082 
   2083 void sub_470450B0(void) {
   2084     int _fpu_cmp = 0;
   2085     uint32_t _cf = 0;
   2086     int _df = 1;
   2087     uint32_t _flag_k = FK_NONE;
   2088     uint32_t _flag_a = 0, _flag_b = 0;
   2089     uint32_t _itail_tgt = 0;
   2090     RECOMP_REGS_LOCALS
   2091     RECOMP_ENTER(0x470450B0u);
   2092 
   2093 L_470450B0:
   2094     eax = MEM32(FS_BASE + (0)); /* 0x470450B0: mov eax, dword ptr fs:[0] */
   2095     edx = MEM32(esp + 0x4); /* 0x470450B6: mov edx, dword ptr [esp + 4] */
   2096     PUSH32(esp, 0xFFFFFFFFu); /* 0x470450BA: push -1 */
   2097     PUSH32(esp, 0x470A6714u); /* 0x470450BC: push 0x470a6714 */
   2098     PUSH32(esp, eax); /* 0x470450C1: push eax */
   2099     MEM32(FS_BASE + (0)) = esp; /* 0x470450C2: mov dword ptr fs:[0], esp */
   2100     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2102     esp = esp - 0xCu; /* 0x470450C9: sub esp, 0xc */
   2103     _flag_k = FK_CMP;
   2104     PUSH32(esp, ebx); /* 0x470450CC: push ebx */
   2105     PUSH32(esp, ebp); /* 0x470450CD: push ebp */
   2106     PUSH32(esp, esi); /* 0x470450CE: push esi */
   2107     esi = ecx; /* 0x470450CF: mov esi, ecx */
   2108     ecx = MEM32(esi + 0x2C); /* 0x470450D1: mov ecx, dword ptr [esi + 0x2c] */
   2109     eax = MEM32(ecx); /* 0x470450D4: mov eax, dword ptr [ecx] */
   2110     PUSH32(esp, edi); /* 0x470450D6: push edi */
   2111     PUSH32(esp, edx); /* 0x470450D7: push edx */
   2112     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470450D8: call dword ptr [eax + 4] */
   2113     RECOMP_FLAGS_IN();
   2114     ebx = eax; /* 0x470450DB: mov ebx, eax */
   2115     /* test ebx, ebx */ /* 0x470450DD: test ebx, ebx */
   2116     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2117     _cf = 0;
   2118     _flag_k = FK_TEST;
   2119     if (TEST_Z(_flag_a, _flag_b)) goto L_4704522F; /* 0x470450DF: je 0x4704522f */
   2120 L_470450E5:
   2121     ecx = MEM32(esi + 0x30); /* 0x470450E5: mov ecx, dword ptr [esi + 0x30] */
   2122     _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu));
   2123     ebp = ebp | 0xFFFFFFFFu; /* 0x470450E8: or ebp, 0xffffffff */
   2124     _cf = 0;
   2125     _flag_k = FK_TEST;
   2126     /* test ecx, ecx */ /* 0x470450EB: test ecx, ecx */
   2127     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2128     _cf = 0;
   2129     _flag_k = FK_TEST;
   2130     if (TEST_NZ(_flag_a, _flag_b)) goto L_47045145; /* 0x470450ED: jne 0x47045145 */
   2131 L_470450EF:
   2132     PUSH32(esp, 0x34u); /* 0x470450EF: push 0x34 */
   2133     RECOMP_ICALL(0x470A33F2u); /* 0x470450F1: call 0x470a33f2 */ /* not lifted */
   2134     RECOMP_FLAGS_IN();
   2135     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2137     esp = esp + 4; /* 0x470450F6: add esp, 4 */
   2138     _flag_k = FK_ADD;
   2139     MEM32(esp + 0x10) = eax; /* 0x470450F9: mov dword ptr [esp + 0x10], eax */
   2140     /* test eax, eax */ /* 0x470450FD: test eax, eax */
   2141     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2142     _cf = 0;
   2143     _flag_k = FK_TEST;
   2144     MEM32(esp + 0x24) = 0; /* 0x470450FF: mov dword ptr [esp + 0x24], 0 */
   2145     if (TEST_Z(_flag_a, _flag_b)) goto L_4704513B; /* 0x47045107: je 0x4704513b */
   2146 L_47045109:
   2147     ecx = MEM32(esi + 0x30); /* 0x47045109: mov ecx, dword ptr [esi + 0x30] */
   2148     edx = MEM32(ebx + 0x24); /* 0x4704510C: mov edx, dword ptr [ebx + 0x24] */
   2149     PUSH32(esp, ecx); /* 0x4704510F: push ecx */
   2150     PUSH32(esp, edx); /* 0x47045110: push edx */
   2151     PUSH32(esp, ebx); /* 0x47045111: push ebx */
   2152     edx = esi + 0x18; /* 0x47045112: lea edx, [esi + 0x18] */
   2153     PUSH32(esp, edx); /* 0x47045115: push edx */
   2154     edx = MEM32(esi + 0xC); /* 0x47045116: mov edx, dword ptr [esi + 0xc] */
   2155     ecx = esi + 0x10; /* 0x47045119: lea ecx, [esi + 0x10] */
   2156     PUSH32(esp, ecx); /* 0x4704511C: push ecx */
   2157     PUSH32(esp, edx); /* 0x4704511D: push edx */
   2158     PUSH32(esp, 0); /* 0x4704511E: push 0 */
   2159     PUSH32(esp, 0); /* 0x47045120: push 0 */
   2160     PUSH32(esp, 0); /* 0x47045122: push 0 */
   2161     PUSH32(esp, 0); /* 0x47045124: push 0 */
   2162     PUSH32(esp, 0); /* 0x47045126: push 0 */
   2163     PUSH32(esp, 0); /* 0x47045128: push 0 */
   2164     PUSH32(esp, 0); /* 0x4704512A: push 0 */
   2165     ecx = eax; /* 0x4704512C: mov ecx, eax */
   2166     RECOMP_ICALL(0x47044580u); /* 0x4704512E: call 0x47044580 */ /* not lifted */
   2167     RECOMP_FLAGS_IN();
   2168     MEM32(esp + 0x24) = ebp; /* 0x47045133: mov dword ptr [esp + 0x24], ebp */
   2169     edi = eax; /* 0x47045137: mov edi, eax */
   2170     goto L_47045190; /* 0x47045139: jmp 0x47045190 */
   2171 L_4704513B:
   2172     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2173     eax = 0; /* 0x4704513B: xor eax, eax */
   2174     _cf = 0;
   2175     _flag_k = FK_TEST;
   2176     MEM32(esp + 0x24) = ebp; /* 0x4704513D: mov dword ptr [esp + 0x24], ebp */
   2177     edi = eax; /* 0x47045141: mov edi, eax */
   2178     goto L_47045190; /* 0x47045143: jmp 0x47045190 */
   2179 L_47045145:
   2180     eax = MEM32(ecx); /* 0x47045145: mov eax, dword ptr [ecx] */
   2181     PUSH32(esp, 0x34u); /* 0x47045147: push 0x34 */
   2182     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47045149: call dword ptr [eax + 4] */
   2183     RECOMP_FLAGS_IN();
   2184     edi = eax; /* 0x4704514C: mov edi, eax */
   2185     /* test edi, edi */ /* 0x4704514E: test edi, edi */
   2186     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2187     _cf = 0;
   2188     _flag_k = FK_TEST;
   2189     MEM32(esp + 0x10) = edi; /* 0x47045150: mov dword ptr [esp + 0x10], edi */
   2190     if (TEST_Z(_flag_a, _flag_b)) goto L_47045194; /* 0x47045154: je 0x47045194 */
   2191 L_47045156:
   2192     MEM32(esp + 0x14) = edi; /* 0x47045156: mov dword ptr [esp + 0x14], edi */
   2193     ecx = MEM32(esi + 0x30); /* 0x4704515A: mov ecx, dword ptr [esi + 0x30] */
   2194     eax = MEM32(ebx + 0x24); /* 0x4704515D: mov eax, dword ptr [ebx + 0x24] */
   2195     PUSH32(esp, ecx); /* 0x47045160: push ecx */
   2196     ecx = MEM32(esi + 0xC); /* 0x47045161: mov ecx, dword ptr [esi + 0xc] */
   2197     PUSH32(esp, eax); /* 0x47045164: push eax */
   2198     PUSH32(esp, ebx); /* 0x47045165: push ebx */
   2199     edx = esi + 0x18; /* 0x47045166: lea edx, [esi + 0x18] */
   2200     PUSH32(esp, edx); /* 0x47045169: push edx */
   2201     eax = esi + 0x10; /* 0x4704516A: lea eax, [esi + 0x10] */
   2202     PUSH32(esp, eax); /* 0x4704516D: push eax */
   2203     PUSH32(esp, ecx); /* 0x4704516E: push ecx */
   2204     PUSH32(esp, 0); /* 0x4704516F: push 0 */
   2205     PUSH32(esp, 0); /* 0x47045171: push 0 */
   2206     PUSH32(esp, 0); /* 0x47045173: push 0 */
   2207     PUSH32(esp, 0); /* 0x47045175: push 0 */
   2208     PUSH32(esp, 0); /* 0x47045177: push 0 */
   2209     PUSH32(esp, 0); /* 0x47045179: push 0 */
   2210     PUSH32(esp, 0); /* 0x4704517B: push 0 */
   2211     ecx = edi; /* 0x4704517D: mov ecx, edi */
   2212     MEM32(esp + 0x58) = 1; /* 0x4704517F: mov dword ptr [esp + 0x58], 1 */
   2213     RECOMP_ICALL(0x47044580u); /* 0x47045187: call 0x47044580 */ /* not lifted */
   2214     RECOMP_FLAGS_IN();
   2215     MEM32(esp + 0x24) = ebp; /* 0x4704518C: mov dword ptr [esp + 0x24], ebp */
   2216 L_47045190:
   2217     /* test edi, edi */ /* 0x47045190: test edi, edi */
   2218     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2219     _cf = 0;
   2220     _flag_k = FK_TEST;
   2221     if (TEST_NZ(_flag_a, _flag_b)) goto L_470451FE; /* 0x47045192: jne 0x470451fe */
   2222 L_47045194:
   2223     eax = MEM32(ebx + 0x1C); /* 0x47045194: mov eax, dword ptr [ebx + 0x1c] */
   2224     /* test eax, eax */ /* 0x47045197: test eax, eax */
   2225     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2226     _cf = 0;
   2227     _flag_k = FK_TEST;
   2228     edi = MEM32(ebx + 0x24); /* 0x47045199: mov edi, dword ptr [ebx + 0x24] */
   2229     if (TEST_Z(_flag_a, _flag_b)) goto L_470451DD; /* 0x4704519C: je 0x470451dd */
   2230 L_4704519E:
   2231     PUSH32(esp, eax); /* 0x4704519E: push eax */
   2232     ecx = esp + 0x18; /* 0x4704519F: lea ecx, [esp + 0x18] */
   2233     RECOMP_ICALL(0x47045840u); /* 0x470451A3: call 0x47045840 */ /* not lifted */
   2234     RECOMP_FLAGS_IN();
   2235     /* cmp MEM32(esp + 0x18), ebp */ /* 0x470451A8: cmp dword ptr [esp + 0x18], ebp */
   2236     _flag_a = (uint32_t)(MEM32(esp + 0x18)); _flag_b = (uint32_t)(ebp);
   2237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2238     _flag_k = FK_CMP;
   2239     MEM32(esp + 0x24) = 2; /* 0x470451AC: mov dword ptr [esp + 0x24], 2 */
   2240     if (CMP_NE(_flag_a, _flag_b)) goto L_470451C5; /* 0x470451B4: jne 0x470451c5 */
   2241 L_470451B6:
   2242     ecx = esp + 0x14; /* 0x470451B6: lea ecx, [esp + 0x14] */
   2243     MEM32(esp + 0x24) = ebp; /* 0x470451BA: mov dword ptr [esp + 0x24], ebp */
   2244     RECOMP_ICALL(0x47045860u); /* 0x470451BE: call 0x47045860 */ /* not lifted */
   2245     RECOMP_FLAGS_IN();
   2246     goto L_470451EA; /* 0x470451C3: jmp 0x470451ea */
   2247 L_470451C5:
   2248     ecx = ebx; /* 0x470451C5: mov ecx, ebx */
   2249     RECOMP_ICALL(0x47044970u); /* 0x470451C7: call 0x47044970 */ /* not lifted */
   2250     RECOMP_FLAGS_IN();
   2251     ecx = esp + 0x14; /* 0x470451CC: lea ecx, [esp + 0x14] */
   2252     esi = eax; /* 0x470451D0: mov esi, eax */
   2253     MEM32(esp + 0x24) = ebp; /* 0x470451D2: mov dword ptr [esp + 0x24], ebp */
   2254     RECOMP_ICALL(0x47045860u); /* 0x470451D6: call 0x47045860 */ /* not lifted */
   2255     RECOMP_FLAGS_IN();
   2256     goto L_470451E6; /* 0x470451DB: jmp 0x470451e6 */
   2257 L_470451DD:
   2258     ecx = ebx; /* 0x470451DD: mov ecx, ebx */
   2259     RECOMP_ICALL(0x47044970u); /* 0x470451DF: call 0x47044970 */ /* not lifted */
   2260     RECOMP_FLAGS_IN();
   2261     esi = eax; /* 0x470451E4: mov esi, eax */
   2262 L_470451E6:
   2263     /* test esi, esi */ /* 0x470451E6: test esi, esi */
   2264     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2265     _cf = 0;
   2266     _flag_k = FK_TEST;
   2267     if (TEST_NZ(_flag_a, _flag_b)) goto L_470451FA; /* 0x470451E8: jne 0x470451fa */
   2268 L_470451EA:
   2269     edx = MEM32(ebx); /* 0x470451EA: mov edx, dword ptr [ebx] */
   2270     PUSH32(esp, 0); /* 0x470451EC: push 0 */
   2271     ecx = ebx; /* 0x470451EE: mov ecx, ebx */
   2272     RECOMP_ICALL(MEM32(edx)); /* 0x470451F0: call dword ptr [edx] */
   2273     RECOMP_FLAGS_IN();
   2274     eax = MEM32(edi); /* 0x470451F2: mov eax, dword ptr [edi] */
   2275     PUSH32(esp, ebx); /* 0x470451F4: push ebx */
   2276     ecx = edi; /* 0x470451F5: mov ecx, edi */
   2277     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470451F7: call dword ptr [eax + 0xc] */
   2278     RECOMP_FLAGS_IN();
   2279 L_470451FA:
   2280     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2281     eax = 0; /* 0x470451FA: xor eax, eax */
   2282     _cf = 0;
   2283     _flag_k = FK_TEST;
   2284     goto L_4704522F; /* 0x470451FC: jmp 0x4704522f */
   2285 L_470451FE:
   2286     ecx = MEM32(esi + 0x4); /* 0x470451FE: mov ecx, dword ptr [esi + 4] */
   2287     _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(ecx);
   2288     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2289     MEM32(edi + 0x4) = MEM32(edi + 0x4) + ecx; /* 0x47045201: add dword ptr [edi + 4], ecx */
   2290     _flag_k = FK_ADD;
   2291     edx = MEM32(esi + 0x8); /* 0x47045204: mov edx, dword ptr [esi + 8] */
   2292     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(edx);
   2293     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2294     MEM32(edi + 0x8) = MEM32(edi + 0x8) + edx; /* 0x47045207: add dword ptr [edi + 8], edx */
   2295     _flag_k = FK_ADD;
   2296     ecx = MEM32(esi + 0x20); /* 0x4704520A: mov ecx, dword ptr [esi + 0x20] */
   2297     /* test ecx, ecx */ /* 0x4704520D: test ecx, ecx */
   2298     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2299     _cf = 0;
   2300     _flag_k = FK_TEST;
   2301     if (TEST_Z(_flag_a, _flag_b)) goto L_4704522D; /* 0x4704520F: je 0x4704522d */
   2302 L_47045211:
   2303     edx = MEM32(esp + 0x2C); /* 0x47045211: mov edx, dword ptr [esp + 0x2c] */
   2304     eax = MEM32(ecx); /* 0x47045215: mov eax, dword ptr [ecx] */
   2305     PUSH32(esp, edx); /* 0x47045217: push edx */
   2306     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47045218: call dword ptr [eax + 4] */
   2307     RECOMP_FLAGS_IN();
   2308     /* test eax, eax */ /* 0x4704521B: test eax, eax */
   2309     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2310     _cf = 0;
   2311     _flag_k = FK_TEST;
   2312     MEM32(edi + 0x20) = eax; /* 0x4704521D: mov dword ptr [edi + 0x20], eax */
   2313     if (TEST_NZ(_flag_a, _flag_b)) goto L_4704522D; /* 0x47045220: jne 0x4704522d */
   2314 L_47045222:
   2315     ecx = edi; /* 0x47045222: mov ecx, edi */
   2316     RECOMP_ICALL(0x47044BD0u); /* 0x47045224: call 0x47044bd0 */ /* not lifted */
   2317     RECOMP_FLAGS_IN();
   2318     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2319     eax = 0; /* 0x47045229: xor eax, eax */
   2320     _cf = 0;
   2321     _flag_k = FK_TEST;
   2322     goto L_4704522F; /* 0x4704522B: jmp 0x4704522f */
   2323 L_4704522D:
   2324     eax = edi; /* 0x4704522D: mov eax, edi */
   2325 L_4704522F:
   2326     ecx = MEM32(esp + 0x1C); /* 0x4704522F: mov ecx, dword ptr [esp + 0x1c] */
   2327     edi = POP32_VAL(esp); /* 0x47045233: pop edi */
   2328     esi = POP32_VAL(esp); /* 0x47045234: pop esi */
   2329     ebp = POP32_VAL(esp); /* 0x47045235: pop ebp */
   2330     ebx = POP32_VAL(esp); /* 0x47045236: pop ebx */
   2331     MEM32(FS_BASE + (0)) = ecx; /* 0x47045237: mov dword ptr fs:[0], ecx */
   2332     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2333     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2334     esp = esp + 0x18u; /* 0x4704523E: add esp, 0x18 */
   2335     _flag_k = FK_ADD;
   2336     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47045241: ret 4 */
   2337     RECOMP_REGS_OUT();
   2338 }
   2339 
   2340 void sub_47045250(void) {
   2341     int _fpu_cmp = 0;
   2342     uint32_t _cf = 0;
   2343     int _df = 1;
   2344     uint32_t _flag_k = FK_NONE;
   2345     uint32_t _flag_a = 0, _flag_b = 0;
   2346     uint32_t _itail_tgt = 0;
   2347     RECOMP_REGS_LOCALS
   2348     RECOMP_ENTER(0x47045250u);
   2349 
   2350 L_47045250:
   2351     PUSH32(esp, esi); /* 0x47045250: push esi */
   2352     esi = ecx; /* 0x47045251: mov esi, ecx */
   2353     /* test MEM8(esi + 0x10), 1 */ /* 0x47045253: test byte ptr [esi + 0x10], 1 */
   2354     _flag_a = (uint32_t)(MEM8(esi + 0x10)) << 24; _flag_b = (uint32_t)(1) << 24;
   2355     _cf = 0;
   2356     _flag_k = FK_NARROW(FK_TEST, 24);
   2357     if (TEST_NZ(_flag_a, _flag_b)) goto L_47045265; /* 0x47045257: jne 0x47045265 */
   2358 L_47045259:
   2359     ecx = MEM32(esi + 0x18); /* 0x47045259: mov ecx, dword ptr [esi + 0x18] */
   2360     edx = MEM32(esi + 0x14); /* 0x4704525C: mov edx, dword ptr [esi + 0x14] */
   2361     eax = MEM32(ecx); /* 0x4704525F: mov eax, dword ptr [ecx] */
   2362     PUSH32(esp, edx); /* 0x47045261: push edx */
   2363     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47045262: call dword ptr [eax + 0xc] */
   2364     RECOMP_FLAGS_IN();
   2365 L_47045265:
   2366     eax = MEM32(esp + 0xC); /* 0x47045265: mov eax, dword ptr [esp + 0xc] */
   2367     ecx = MEM32(esp + 0x10); /* 0x47045269: mov ecx, dword ptr [esp + 0x10] */
   2368     MEM32(esi + 0xC) = eax; /* 0x4704526D: mov dword ptr [esi + 0xc], eax */
   2369     MEM32(esi + 0x8) = eax; /* 0x47045270: mov dword ptr [esi + 8], eax */
   2370     eax = MEM32(esp + 0x8); /* 0x47045273: mov eax, dword ptr [esp + 8] */
   2371     MEM32(esi + 0x14) = eax; /* 0x47045277: mov dword ptr [esi + 0x14], eax */
   2372     MEM32(esi + 0x10) = ecx; /* 0x4704527A: mov dword ptr [esi + 0x10], ecx */
   2373     esi = POP32_VAL(esp); /* 0x4704527D: pop esi */
   2374     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4704527E: ret 0xc */
   2375     RECOMP_REGS_OUT();
   2376 }
   2377 
   2378 void sub_47045290(void) {
   2379     int _fpu_cmp = 0;
   2380     uint32_t _cf = 0;
   2381     int _df = 1;
   2382     uint32_t _flag_k = FK_NONE;
   2383     uint32_t _flag_a = 0, _flag_b = 0;
   2384     uint32_t _itail_tgt = 0;
   2385     RECOMP_REGS_LOCALS
   2386     RECOMP_ENTER(0x47045290u);
   2387 
   2388 L_47045290:
   2389     eax = MEM32(esp + 0x4); /* 0x47045290: mov eax, dword ptr [esp + 4] */
   2390     PUSH32(esp, ebx); /* 0x47045294: push ebx */
   2391     ebx = MEM32(esp + 0x10); /* 0x47045295: mov ebx, dword ptr [esp + 0x10] */
   2392     PUSH32(esp, esi); /* 0x47045299: push esi */
   2393     esi = ecx; /* 0x4704529A: mov esi, ecx */
   2394     ecx = MEM32(esp + 0x10); /* 0x4704529C: mov ecx, dword ptr [esp + 0x10] */
   2395     PUSH32(esp, edi); /* 0x470452A0: push edi */
   2396     edi = MEM32(esp + 0x1C); /* 0x470452A1: mov edi, dword ptr [esp + 0x1c] */
   2397     MEM32(esi + 0x8) = ecx; /* 0x470452A5: mov dword ptr [esi + 8], ecx */
   2398     ecx = esi + 0x14; /* 0x470452A8: lea ecx, [esi + 0x14] */
   2399     MEM32(esi + 0x4) = eax; /* 0x470452AB: mov dword ptr [esi + 4], eax */
   2400     MEM32(esi + 0xC) = ebx; /* 0x470452AE: mov dword ptr [esi + 0xc], ebx */
   2401     MEM32(esi + 0x10) = edi; /* 0x470452B1: mov dword ptr [esi + 0x10], edi */
   2402     edx = edi + (-0x1); /* 0x470452B4: lea edx, [edi - 1] */
   2403     MEM32(ecx) = 0; /* 0x470452B7: mov dword ptr [ecx], 0 */
   2404     MEM32(ecx + 0x4) = edx; /* 0x470452BD: mov dword ptr [ecx + 4], edx */
   2405     RECOMP_ICALL(0x470543C0u); /* 0x470452C0: call 0x470543c0 */ /* not lifted */
   2406     RECOMP_FLAGS_IN();
   2407     ecx = esi + 0x1C; /* 0x470452C5: lea ecx, [esi + 0x1c] */
   2408     MEM32(ecx) = 0; /* 0x470452C8: mov dword ptr [ecx], 0 */
   2409     MEM32(ecx + 0x4) = edi; /* 0x470452CE: mov dword ptr [ecx + 4], edi */
   2410     RECOMP_ICALL(0x470543C0u); /* 0x470452D1: call 0x470543c0 */ /* not lifted */
   2411     RECOMP_FLAGS_IN();
   2412     ecx = esi + 0x24; /* 0x470452D6: lea ecx, [esi + 0x24] */
   2413     MEM32(ecx) = 0; /* 0x470452D9: mov dword ptr [ecx], 0 */
   2414     MEM32(ecx + 0x4) = ebx; /* 0x470452DF: mov dword ptr [ecx + 4], ebx */
   2415     RECOMP_ICALL(0x470543C0u); /* 0x470452E2: call 0x470543c0 */ /* not lifted */
   2416     RECOMP_FLAGS_IN();
   2417     edi = POP32_VAL(esp); /* 0x470452E7: pop edi */
   2418     MEM32(esi) = 0x470AC788u; /* 0x470452E8: mov dword ptr [esi], 0x470ac788 */
   2419     eax = esi; /* 0x470452EE: mov eax, esi */
   2420     esi = POP32_VAL(esp); /* 0x470452F0: pop esi */
   2421     ebx = POP32_VAL(esp); /* 0x470452F1: pop ebx */
   2422     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470452F2: ret 0x10 */
   2423     RECOMP_REGS_OUT();
   2424 }
   2425 
   2426 void sub_47045300(void) {
   2427     int _fpu_cmp = 0;
   2428     uint32_t _cf = 0;
   2429     int _df = 1;
   2430     uint32_t _flag_k = FK_NONE;
   2431     uint32_t _flag_a = 0, _flag_b = 0;
   2432     uint32_t _itail_tgt = 0;
   2433     RECOMP_REGS_LOCALS
   2434     RECOMP_ENTER(0x47045300u);
   2435 
   2436 L_47045300:
   2437     MEM32(ecx) = 0x470AC788u; /* 0x47045300: mov dword ptr [ecx], 0x470ac788 */
   2438     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045306: ret  */
   2439     RECOMP_REGS_OUT();
   2440 }
   2441 
   2442 void sub_47045310(void) {
   2443     int _fpu_cmp = 0;
   2444     uint32_t _cf = 0;
   2445     int _df = 1;
   2446     uint32_t _flag_k = FK_NONE;
   2447     uint32_t _flag_a = 0, _flag_b = 0;
   2448     uint32_t _itail_tgt = 0;
   2449     RECOMP_REGS_LOCALS
   2450     RECOMP_ENTER(0x47045310u);
   2451 
   2452 L_47045310:
   2453     PUSH32(esp, ecx); /* 0x47045310: push ecx */
   2454     PUSH32(esp, ebx); /* 0x47045311: push ebx */
   2455     ebx = MEM32(0x470AC150); /* 0x47045312: mov ebx, dword ptr [0x470ac150] */
   2456     PUSH32(esp, ebp); /* 0x47045318: push ebp */
   2457     PUSH32(esp, esi); /* 0x47045319: push esi */
   2458     PUSH32(esp, edi); /* 0x4704531A: push edi */
   2459     esi = ecx; /* 0x4704531B: mov esi, ecx */
   2460     RECOMP_ICALL(ebx); /* 0x4704531D: call ebx */
   2461     RECOMP_FLAGS_IN();
   2462     ebp = MEM32(0x470AC3C8); /* 0x4704531F: mov ebp, dword ptr [0x470ac3c8] */
   2463     edi = eax; /* 0x47045325: mov edi, eax */
   2464     RECOMP_ICALL(ebp); /* 0x47045327: call ebp */
   2465     RECOMP_FLAGS_IN();
   2466     eax = MEM32(eax); /* 0x47045329: mov eax, dword ptr [eax] */
   2467     /* test eax, eax */ /* 0x4704532B: test eax, eax */
   2468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2469     _cf = 0;
   2470     _flag_k = FK_TEST;
   2471     MEM32(esp + 0x10) = edi; /* 0x4704532D: mov dword ptr [esp + 0x10], edi */
   2472     if (TEST_Z(_flag_a, _flag_b)) goto L_47045337; /* 0x47045331: je 0x47045337 */
   2473 L_47045333:
   2474     MEM32(esp + 0x10) = eax; /* 0x47045333: mov dword ptr [esp + 0x10], eax */
   2475 L_47045337:
   2476     RECOMP_ICALL(0x47039020u); /* 0x47045337: call 0x47039020 */ /* not lifted */
   2477     RECOMP_FLAGS_IN();
   2478     edi = eax; /* 0x4704533C: mov edi, eax */
   2479     ecx = edi; /* 0x4704533E: mov ecx, edi */
   2480     RECOMP_ICALL(0x4703B210u); /* 0x47045340: call 0x4703b210 */ /* not lifted */
   2481     RECOMP_FLAGS_IN();
   2482     PUSH32(esp, eax); /* 0x47045345: push eax */
   2483     ecx = edi; /* 0x47045346: mov ecx, edi */
   2484     RECOMP_ICALL(0x4703B240u); /* 0x47045348: call 0x4703b240 */ /* not lifted */
   2485     RECOMP_FLAGS_IN();
   2486     PUSH32(esp, eax); /* 0x4704534D: push eax */
   2487     ecx = edi; /* 0x4704534E: mov ecx, edi */
   2488     RECOMP_ICALL(0x4703B080u); /* 0x47045350: call 0x4703b080 */ /* not lifted */
   2489     RECOMP_FLAGS_IN();
   2490     PUSH32(esp, eax); /* 0x47045355: push eax */
   2491     eax = MEM32(esp + 0x1C); /* 0x47045356: mov eax, dword ptr [esp + 0x1c] */
   2492     PUSH32(esp, eax); /* 0x4704535A: push eax */
   2493     PUSH32(esp, 0); /* 0x4704535B: push 0 */
   2494     PUSH32(esp, 0x436u); /* 0x4704535D: push 0x436 */
   2495     PUSH32(esp, 0x471082E0u); /* 0x47045362: push 0x471082e0 */
   2496     ecx = edi; /* 0x47045367: mov ecx, edi */
   2497     RECOMP_ICALL(0x4703A340u); /* 0x47045369: call 0x4703a340 */ /* not lifted */
   2498     RECOMP_FLAGS_IN();
   2499     PUSH32(esp, esi); /* 0x4704536E: push esi */
   2500     PUSH32(esp, 0x471052CCu); /* 0x4704536F: push 0x471052cc */
   2501     PUSH32(esp, 4); /* 0x47045374: push 4 */
   2502     PUSH32(esp, edi); /* 0x47045376: push edi */
   2503     RECOMP_ICALL(0x47039830u); /* 0x47045377: call 0x47039830 */ /* not lifted */
   2504     RECOMP_FLAGS_IN();
   2505     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2506     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2507     esp = esp + 0x10u; /* 0x4704537C: add esp, 0x10 */
   2508     _flag_k = FK_ADD;
   2509     RECOMP_ICALL(ebx); /* 0x4704537F: call ebx */
   2510     RECOMP_FLAGS_IN();
   2511     edi = eax; /* 0x47045381: mov edi, eax */
   2512     RECOMP_ICALL(ebp); /* 0x47045383: call ebp */
   2513     RECOMP_FLAGS_IN();
   2514     eax = MEM32(eax); /* 0x47045385: mov eax, dword ptr [eax] */
   2515     /* test eax, eax */ /* 0x47045387: test eax, eax */
   2516     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2517     _cf = 0;
   2518     _flag_k = FK_TEST;
   2519     MEM32(esp + 0x10) = edi; /* 0x47045389: mov dword ptr [esp + 0x10], edi */
   2520     if (TEST_Z(_flag_a, _flag_b)) goto L_47045393; /* 0x4704538D: je 0x47045393 */
   2521 L_4704538F:
   2522     MEM32(esp + 0x10) = eax; /* 0x4704538F: mov dword ptr [esp + 0x10], eax */
   2523 L_47045393:
   2524     RECOMP_ICALL(0x47039020u); /* 0x47045393: call 0x47039020 */ /* not lifted */
   2525     RECOMP_FLAGS_IN();
   2526     edi = eax; /* 0x47045398: mov edi, eax */
   2527     ecx = edi; /* 0x4704539A: mov ecx, edi */
   2528     RECOMP_ICALL(0x4703B210u); /* 0x4704539C: call 0x4703b210 */ /* not lifted */
   2529     RECOMP_FLAGS_IN();
   2530     PUSH32(esp, eax); /* 0x470453A1: push eax */
   2531     ecx = edi; /* 0x470453A2: mov ecx, edi */
   2532     RECOMP_ICALL(0x4703B240u); /* 0x470453A4: call 0x4703b240 */ /* not lifted */
   2533     RECOMP_FLAGS_IN();
   2534     PUSH32(esp, eax); /* 0x470453A9: push eax */
   2535     ecx = edi; /* 0x470453AA: mov ecx, edi */
   2536     RECOMP_ICALL(0x4703B080u); /* 0x470453AC: call 0x4703b080 */ /* not lifted */
   2537     RECOMP_FLAGS_IN();
   2538     ecx = MEM32(esp + 0x18); /* 0x470453B1: mov ecx, dword ptr [esp + 0x18] */
   2539     PUSH32(esp, eax); /* 0x470453B5: push eax */
   2540     PUSH32(esp, ecx); /* 0x470453B6: push ecx */
   2541     PUSH32(esp, 0); /* 0x470453B7: push 0 */
   2542     PUSH32(esp, 0x449u); /* 0x470453B9: push 0x449 */
   2543     PUSH32(esp, 0x471082E0u); /* 0x470453BE: push 0x471082e0 */
   2544     ecx = edi; /* 0x470453C3: mov ecx, edi */
   2545     RECOMP_ICALL(0x4703A340u); /* 0x470453C5: call 0x4703a340 */ /* not lifted */
   2546     RECOMP_FLAGS_IN();
   2547     edx = MEM32(esi + 0x28); /* 0x470453CA: mov edx, dword ptr [esi + 0x28] */
   2548     eax = MEM32(esi + 0x24); /* 0x470453CD: mov eax, dword ptr [esi + 0x24] */
   2549     ecx = MEM32(esi + 0x20); /* 0x470453D0: mov ecx, dword ptr [esi + 0x20] */
   2550     PUSH32(esp, edx); /* 0x470453D3: push edx */
   2551     edx = MEM32(esi + 0x1C); /* 0x470453D4: mov edx, dword ptr [esi + 0x1c] */
   2552     PUSH32(esp, eax); /* 0x470453D7: push eax */
   2553     eax = MEM32(esi + 0x18); /* 0x470453D8: mov eax, dword ptr [esi + 0x18] */
   2554     PUSH32(esp, ecx); /* 0x470453DB: push ecx */
   2555     ecx = MEM32(esi + 0x14); /* 0x470453DC: mov ecx, dword ptr [esi + 0x14] */
   2556     PUSH32(esp, edx); /* 0x470453DF: push edx */
   2557     edx = MEM32(esi + 0x10); /* 0x470453E0: mov edx, dword ptr [esi + 0x10] */
   2558     PUSH32(esp, eax); /* 0x470453E3: push eax */
   2559     eax = MEM32(esi + 0xC); /* 0x470453E4: mov eax, dword ptr [esi + 0xc] */
   2560     PUSH32(esp, ecx); /* 0x470453E7: push ecx */
   2561     ecx = MEM32(esi + 0x8); /* 0x470453E8: mov ecx, dword ptr [esi + 8] */
   2562     PUSH32(esp, edx); /* 0x470453EB: push edx */
   2563     edx = MEM32(esi + 0x4); /* 0x470453EC: mov edx, dword ptr [esi + 4] */
   2564     PUSH32(esp, eax); /* 0x470453EF: push eax */
   2565     PUSH32(esp, ecx); /* 0x470453F0: push ecx */
   2566     PUSH32(esp, edx); /* 0x470453F1: push edx */
   2567     PUSH32(esp, 0x471083ECu); /* 0x470453F2: push 0x471083ec */
   2568     PUSH32(esp, 4); /* 0x470453F7: push 4 */
   2569     PUSH32(esp, edi); /* 0x470453F9: push edi */
   2570     RECOMP_ICALL(0x47039830u); /* 0x470453FA: call 0x47039830 */ /* not lifted */
   2571     RECOMP_FLAGS_IN();
   2572     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
   2573     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2574     esp = esp + 0x34u; /* 0x470453FF: add esp, 0x34 */
   2575     _flag_k = FK_ADD;
   2576     RECOMP_ICALL(ebx); /* 0x47045402: call ebx */
   2577     RECOMP_FLAGS_IN();
   2578     esi = eax; /* 0x47045404: mov esi, eax */
   2579     RECOMP_ICALL(ebp); /* 0x47045406: call ebp */
   2580     RECOMP_FLAGS_IN();
   2581     eax = MEM32(eax); /* 0x47045408: mov eax, dword ptr [eax] */
   2582     /* test eax, eax */ /* 0x4704540A: test eax, eax */
   2583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2584     _cf = 0;
   2585     _flag_k = FK_TEST;
   2586     edi = esi; /* 0x4704540C: mov edi, esi */
   2587     if (TEST_Z(_flag_a, _flag_b)) goto L_47045412; /* 0x4704540E: je 0x47045412 */
   2588 L_47045410:
   2589     edi = eax; /* 0x47045410: mov edi, eax */
   2590 L_47045412:
   2591     RECOMP_ICALL(0x47039020u); /* 0x47045412: call 0x47039020 */ /* not lifted */
   2592     RECOMP_FLAGS_IN();
   2593     esi = eax; /* 0x47045417: mov esi, eax */
   2594     ecx = esi; /* 0x47045419: mov ecx, esi */
   2595     RECOMP_ICALL(0x4703B210u); /* 0x4704541B: call 0x4703b210 */ /* not lifted */
   2596     RECOMP_FLAGS_IN();
   2597     PUSH32(esp, eax); /* 0x47045420: push eax */
   2598     ecx = esi; /* 0x47045421: mov ecx, esi */
   2599     RECOMP_ICALL(0x4703B240u); /* 0x47045423: call 0x4703b240 */ /* not lifted */
   2600     RECOMP_FLAGS_IN();
   2601     PUSH32(esp, eax); /* 0x47045428: push eax */
   2602     ecx = esi; /* 0x47045429: mov ecx, esi */
   2603     RECOMP_ICALL(0x4703B080u); /* 0x4704542B: call 0x4703b080 */ /* not lifted */
   2604     RECOMP_FLAGS_IN();
   2605     PUSH32(esp, eax); /* 0x47045430: push eax */
   2606     PUSH32(esp, edi); /* 0x47045431: push edi */
   2607     PUSH32(esp, 0); /* 0x47045432: push 0 */
   2608     PUSH32(esp, 0x44Bu); /* 0x47045434: push 0x44b */
   2609     PUSH32(esp, 0x471082E0u); /* 0x47045439: push 0x471082e0 */
   2610     ecx = esi; /* 0x4704543E: mov ecx, esi */
   2611     RECOMP_ICALL(0x4703A340u); /* 0x47045440: call 0x4703a340 */ /* not lifted */
   2612     RECOMP_FLAGS_IN();
   2613     PUSH32(esp, 0x4710529Cu); /* 0x47045445: push 0x4710529c */
   2614     PUSH32(esp, 4); /* 0x4704544A: push 4 */
   2615     PUSH32(esp, esi); /* 0x4704544C: push esi */
   2616     RECOMP_ICALL(0x47039830u); /* 0x4704544D: call 0x47039830 */ /* not lifted */
   2617     RECOMP_FLAGS_IN();
   2618     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2620     esp = esp + 0xCu; /* 0x47045452: add esp, 0xc */
   2621     _flag_k = FK_ADD;
   2622     edi = POP32_VAL(esp); /* 0x47045455: pop edi */
   2623     esi = POP32_VAL(esp); /* 0x47045456: pop esi */
   2624     ebp = POP32_VAL(esp); /* 0x47045457: pop ebp */
   2625     ebx = POP32_VAL(esp); /* 0x47045458: pop ebx */
   2626     ecx = POP32_VAL(esp); /* 0x47045459: pop ecx */
   2627     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704545A: ret  */
   2628     RECOMP_REGS_OUT();
   2629 }
   2630 
   2631 void sub_47045460(void) {
   2632     int _fpu_cmp = 0;
   2633     uint32_t _cf = 0;
   2634     int _df = 1;
   2635     uint32_t _flag_k = FK_NONE;
   2636     uint32_t _flag_a = 0, _flag_b = 0;
   2637     uint32_t _itail_tgt = 0;
   2638     RECOMP_REGS_LOCALS
   2639     RECOMP_ENTER(0x47045460u);
   2640 
   2641 L_47045460:
   2642     eax = MEM32(esp + 0x4); /* 0x47045460: mov eax, dword ptr [esp + 4] */
   2643     PUSH32(esp, ebx); /* 0x47045464: push ebx */
   2644     ebx = MEM32(esp + 0x10); /* 0x47045465: mov ebx, dword ptr [esp + 0x10] */
   2645     PUSH32(esp, esi); /* 0x47045469: push esi */
   2646     esi = ecx; /* 0x4704546A: mov esi, ecx */
   2647     ecx = MEM32(esp + 0x10); /* 0x4704546C: mov ecx, dword ptr [esp + 0x10] */
   2648     PUSH32(esp, edi); /* 0x47045470: push edi */
   2649     edi = MEM32(esp + 0x1C); /* 0x47045471: mov edi, dword ptr [esp + 0x1c] */
   2650     MEM32(esi + 0x8) = ecx; /* 0x47045475: mov dword ptr [esi + 8], ecx */
   2651     ecx = esi + 0x14; /* 0x47045478: lea ecx, [esi + 0x14] */
   2652     MEM32(esi + 0x4) = eax; /* 0x4704547B: mov dword ptr [esi + 4], eax */
   2653     MEM32(esi + 0xC) = ebx; /* 0x4704547E: mov dword ptr [esi + 0xc], ebx */
   2654     MEM32(esi + 0x10) = edi; /* 0x47045481: mov dword ptr [esi + 0x10], edi */
   2655     edx = edi + (-0x1); /* 0x47045484: lea edx, [edi - 1] */
   2656     MEM32(ecx) = 0; /* 0x47045487: mov dword ptr [ecx], 0 */
   2657     MEM32(ecx + 0x4) = edx; /* 0x4704548D: mov dword ptr [ecx + 4], edx */
   2658     RECOMP_ICALL(0x470543C0u); /* 0x47045490: call 0x470543c0 */ /* not lifted */
   2659     RECOMP_FLAGS_IN();
   2660     ecx = esi + 0x1C; /* 0x47045495: lea ecx, [esi + 0x1c] */
   2661     MEM32(ecx) = 0; /* 0x47045498: mov dword ptr [ecx], 0 */
   2662     MEM32(ecx + 0x4) = edi; /* 0x4704549E: mov dword ptr [ecx + 4], edi */
   2663     RECOMP_ICALL(0x470543C0u); /* 0x470454A1: call 0x470543c0 */ /* not lifted */
   2664     RECOMP_FLAGS_IN();
   2665     ecx = esi + 0x24; /* 0x470454A6: lea ecx, [esi + 0x24] */
   2666     MEM32(ecx) = 0; /* 0x470454A9: mov dword ptr [ecx], 0 */
   2667     MEM32(ecx + 0x4) = ebx; /* 0x470454AF: mov dword ptr [ecx + 4], ebx */
   2668     RECOMP_ICALL(0x470543C0u); /* 0x470454B2: call 0x470543c0 */ /* not lifted */
   2669     RECOMP_FLAGS_IN();
   2670     edi = POP32_VAL(esp); /* 0x470454B7: pop edi */
   2671     MEM32(esi) = 0x470AC794u; /* 0x470454B8: mov dword ptr [esi], 0x470ac794 */
   2672     eax = esi; /* 0x470454BE: mov eax, esi */
   2673     esi = POP32_VAL(esp); /* 0x470454C0: pop esi */
   2674     ebx = POP32_VAL(esp); /* 0x470454C1: pop ebx */
   2675     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470454C2: ret 0x10 */
   2676     RECOMP_REGS_OUT();
   2677 }
   2678 
   2679 void sub_470454D0(void) {
   2680     int _fpu_cmp = 0;
   2681     uint32_t _cf = 0;
   2682     int _df = 1;
   2683     uint32_t _flag_k = FK_NONE;
   2684     uint32_t _flag_a = 0, _flag_b = 0;
   2685     uint32_t _itail_tgt = 0;
   2686     RECOMP_REGS_LOCALS
   2687     RECOMP_ENTER(0x470454D0u);
   2688 
   2689 L_470454D0:
   2690     PUSH32(esp, ecx); /* 0x470454D0: push ecx */
   2691     PUSH32(esp, ebx); /* 0x470454D1: push ebx */
   2692     PUSH32(esp, ebp); /* 0x470454D2: push ebp */
   2693     PUSH32(esp, esi); /* 0x470454D3: push esi */
   2694     PUSH32(esp, edi); /* 0x470454D4: push edi */
   2695     edi = MEM32(0x470AC150); /* 0x470454D5: mov edi, dword ptr [0x470ac150] */
   2696     ebp = ecx; /* 0x470454DB: mov ebp, ecx */
   2697     RECOMP_ICALL(edi); /* 0x470454DD: call edi */
   2698     RECOMP_FLAGS_IN();
   2699     ebx = MEM32(0x470AC3C8); /* 0x470454DF: mov ebx, dword ptr [0x470ac3c8] */
   2700     esi = eax; /* 0x470454E5: mov esi, eax */
   2701     RECOMP_ICALL(ebx); /* 0x470454E7: call ebx */
   2702     RECOMP_FLAGS_IN();
   2703     eax = MEM32(eax); /* 0x470454E9: mov eax, dword ptr [eax] */
   2704     /* test eax, eax */ /* 0x470454EB: test eax, eax */
   2705     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2706     _cf = 0;
   2707     _flag_k = FK_TEST;
   2708     MEM32(esp + 0x10) = esi; /* 0x470454ED: mov dword ptr [esp + 0x10], esi */
   2709     if (TEST_Z(_flag_a, _flag_b)) goto L_470454F7; /* 0x470454F1: je 0x470454f7 */
   2710 L_470454F3:
   2711     MEM32(esp + 0x10) = eax; /* 0x470454F3: mov dword ptr [esp + 0x10], eax */
   2712 L_470454F7:
   2713     RECOMP_ICALL(0x47039020u); /* 0x470454F7: call 0x47039020 */ /* not lifted */
   2714     RECOMP_FLAGS_IN();
   2715     esi = eax; /* 0x470454FC: mov esi, eax */
   2716     ecx = esi; /* 0x470454FE: mov ecx, esi */
   2717     RECOMP_ICALL(0x4703B210u); /* 0x47045500: call 0x4703b210 */ /* not lifted */
   2718     RECOMP_FLAGS_IN();
   2719     PUSH32(esp, eax); /* 0x47045505: push eax */
   2720     ecx = esi; /* 0x47045506: mov ecx, esi */
   2721     RECOMP_ICALL(0x4703B240u); /* 0x47045508: call 0x4703b240 */ /* not lifted */
   2722     RECOMP_FLAGS_IN();
   2723     PUSH32(esp, eax); /* 0x4704550D: push eax */
   2724     ecx = esi; /* 0x4704550E: mov ecx, esi */
   2725     RECOMP_ICALL(0x4703B080u); /* 0x47045510: call 0x4703b080 */ /* not lifted */
   2726     RECOMP_FLAGS_IN();
   2727     PUSH32(esp, eax); /* 0x47045515: push eax */
   2728     eax = MEM32(esp + 0x1C); /* 0x47045516: mov eax, dword ptr [esp + 0x1c] */
   2729     PUSH32(esp, eax); /* 0x4704551A: push eax */
   2730     PUSH32(esp, 0); /* 0x4704551B: push 0 */
   2731     PUSH32(esp, 0x462u); /* 0x4704551D: push 0x462 */
   2732     PUSH32(esp, 0x471082E0u); /* 0x47045522: push 0x471082e0 */
   2733     ecx = esi; /* 0x47045527: mov ecx, esi */
   2734     RECOMP_ICALL(0x4703A340u); /* 0x47045529: call 0x4703a340 */ /* not lifted */
   2735     RECOMP_FLAGS_IN();
   2736     PUSH32(esp, ebp); /* 0x4704552E: push ebp */
   2737     PUSH32(esp, 0x471052CCu); /* 0x4704552F: push 0x471052cc */
   2738     PUSH32(esp, 4); /* 0x47045534: push 4 */
   2739     PUSH32(esp, esi); /* 0x47045536: push esi */
   2740     RECOMP_ICALL(0x47039830u); /* 0x47045537: call 0x47039830 */ /* not lifted */
   2741     RECOMP_FLAGS_IN();
   2742     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2744     esp = esp + 0x10u; /* 0x4704553C: add esp, 0x10 */
   2745     _flag_k = FK_ADD;
   2746     RECOMP_ICALL(edi); /* 0x4704553F: call edi */
   2747     RECOMP_FLAGS_IN();
   2748     esi = eax; /* 0x47045541: mov esi, eax */
   2749     RECOMP_ICALL(ebx); /* 0x47045543: call ebx */
   2750     RECOMP_FLAGS_IN();
   2751     eax = MEM32(eax); /* 0x47045545: mov eax, dword ptr [eax] */
   2752     /* test eax, eax */ /* 0x47045547: test eax, eax */
   2753     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2754     _cf = 0;
   2755     _flag_k = FK_TEST;
   2756     MEM32(esp + 0x10) = esi; /* 0x47045549: mov dword ptr [esp + 0x10], esi */
   2757     if (TEST_Z(_flag_a, _flag_b)) goto L_47045553; /* 0x4704554D: je 0x47045553 */
   2758 L_4704554F:
   2759     MEM32(esp + 0x10) = eax; /* 0x4704554F: mov dword ptr [esp + 0x10], eax */
   2760 L_47045553:
   2761     RECOMP_ICALL(0x47039020u); /* 0x47045553: call 0x47039020 */ /* not lifted */
   2762     RECOMP_FLAGS_IN();
   2763     esi = eax; /* 0x47045558: mov esi, eax */
   2764     ecx = esi; /* 0x4704555A: mov ecx, esi */
   2765     RECOMP_ICALL(0x4703B210u); /* 0x4704555C: call 0x4703b210 */ /* not lifted */
   2766     RECOMP_FLAGS_IN();
   2767     PUSH32(esp, eax); /* 0x47045561: push eax */
   2768     ecx = esi; /* 0x47045562: mov ecx, esi */
   2769     RECOMP_ICALL(0x4703B240u); /* 0x47045564: call 0x4703b240 */ /* not lifted */
   2770     RECOMP_FLAGS_IN();
   2771     PUSH32(esp, eax); /* 0x47045569: push eax */
   2772     ecx = esi; /* 0x4704556A: mov ecx, esi */
   2773     RECOMP_ICALL(0x4703B080u); /* 0x4704556C: call 0x4703b080 */ /* not lifted */
   2774     RECOMP_FLAGS_IN();
   2775     ecx = MEM32(esp + 0x18); /* 0x47045571: mov ecx, dword ptr [esp + 0x18] */
   2776     PUSH32(esp, eax); /* 0x47045575: push eax */
   2777     PUSH32(esp, ecx); /* 0x47045576: push ecx */
   2778     PUSH32(esp, 0); /* 0x47045577: push 0 */
   2779     PUSH32(esp, 0x464u); /* 0x47045579: push 0x464 */
   2780     PUSH32(esp, 0x471082E0u); /* 0x4704557E: push 0x471082e0 */
   2781     ecx = esi; /* 0x47045583: mov ecx, esi */
   2782     RECOMP_ICALL(0x4703A340u); /* 0x47045585: call 0x4703a340 */ /* not lifted */
   2783     RECOMP_FLAGS_IN();
   2784     PUSH32(esp, 0x471084F4u); /* 0x4704558A: push 0x471084f4 */
   2785     PUSH32(esp, 4); /* 0x4704558F: push 4 */
   2786     PUSH32(esp, esi); /* 0x47045591: push esi */
   2787     RECOMP_ICALL(0x47039830u); /* 0x47045592: call 0x47039830 */ /* not lifted */
   2788     RECOMP_FLAGS_IN();
   2789     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2790     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2791     esp = esp + 0xCu; /* 0x47045597: add esp, 0xc */
   2792     _flag_k = FK_ADD;
   2793     ecx = ebp; /* 0x4704559A: mov ecx, ebp */
   2794     RECOMP_ICALL(0x47045310u); /* 0x4704559C: call 0x47045310 */ /* not lifted */
   2795     RECOMP_FLAGS_IN();
   2796     RECOMP_ICALL(edi); /* 0x470455A1: call edi */
   2797     RECOMP_FLAGS_IN();
   2798     ebp = eax; /* 0x470455A3: mov ebp, eax */
   2799     RECOMP_ICALL(ebx); /* 0x470455A5: call ebx */
   2800     RECOMP_FLAGS_IN();
   2801     eax = MEM32(eax); /* 0x470455A7: mov eax, dword ptr [eax] */
   2802     /* test eax, eax */ /* 0x470455A9: test eax, eax */
   2803     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2804     _cf = 0;
   2805     _flag_k = FK_TEST;
   2806     if (TEST_Z(_flag_a, _flag_b)) goto L_470455AF; /* 0x470455AB: je 0x470455af */
   2807 L_470455AD:
   2808     ebp = eax; /* 0x470455AD: mov ebp, eax */
   2809 L_470455AF:
   2810     RECOMP_ICALL(0x47039020u); /* 0x470455AF: call 0x47039020 */ /* not lifted */
   2811     RECOMP_FLAGS_IN();
   2812     esi = eax; /* 0x470455B4: mov esi, eax */
   2813     ecx = esi; /* 0x470455B6: mov ecx, esi */
   2814     RECOMP_ICALL(0x4703B210u); /* 0x470455B8: call 0x4703b210 */ /* not lifted */
   2815     RECOMP_FLAGS_IN();
   2816     PUSH32(esp, eax); /* 0x470455BD: push eax */
   2817     ecx = esi; /* 0x470455BE: mov ecx, esi */
   2818     RECOMP_ICALL(0x4703B240u); /* 0x470455C0: call 0x4703b240 */ /* not lifted */
   2819     RECOMP_FLAGS_IN();
   2820     PUSH32(esp, eax); /* 0x470455C5: push eax */
   2821     ecx = esi; /* 0x470455C6: mov ecx, esi */
   2822     RECOMP_ICALL(0x4703B080u); /* 0x470455C8: call 0x4703b080 */ /* not lifted */
   2823     RECOMP_FLAGS_IN();
   2824     PUSH32(esp, eax); /* 0x470455CD: push eax */
   2825     PUSH32(esp, ebp); /* 0x470455CE: push ebp */
   2826     PUSH32(esp, 0); /* 0x470455CF: push 0 */
   2827     PUSH32(esp, 0x467u); /* 0x470455D1: push 0x467 */
   2828     PUSH32(esp, 0x471082E0u); /* 0x470455D6: push 0x471082e0 */
   2829     ecx = esi; /* 0x470455DB: mov ecx, esi */
   2830     RECOMP_ICALL(0x4703A340u); /* 0x470455DD: call 0x4703a340 */ /* not lifted */
   2831     RECOMP_FLAGS_IN();
   2832     PUSH32(esp, 0x471084C4u); /* 0x470455E2: push 0x471084c4 */
   2833     PUSH32(esp, 4); /* 0x470455E7: push 4 */
   2834     PUSH32(esp, esi); /* 0x470455E9: push esi */
   2835     RECOMP_ICALL(0x47039830u); /* 0x470455EA: call 0x47039830 */ /* not lifted */
   2836     RECOMP_FLAGS_IN();
   2837     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2838     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2839     esp = esp + 0xCu; /* 0x470455EF: add esp, 0xc */
   2840     _flag_k = FK_ADD;
   2841     RECOMP_ICALL(edi); /* 0x470455F2: call edi */
   2842     RECOMP_FLAGS_IN();
   2843     esi = eax; /* 0x470455F4: mov esi, eax */
   2844     RECOMP_ICALL(ebx); /* 0x470455F6: call ebx */
   2845     RECOMP_FLAGS_IN();
   2846     eax = MEM32(eax); /* 0x470455F8: mov eax, dword ptr [eax] */
   2847     /* test eax, eax */ /* 0x470455FA: test eax, eax */
   2848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2849     _cf = 0;
   2850     _flag_k = FK_TEST;
   2851     edi = esi; /* 0x470455FC: mov edi, esi */
   2852     if (TEST_Z(_flag_a, _flag_b)) goto L_47045602; /* 0x470455FE: je 0x47045602 */
   2853 L_47045600:
   2854     edi = eax; /* 0x47045600: mov edi, eax */
   2855 L_47045602:
   2856     RECOMP_ICALL(0x47039020u); /* 0x47045602: call 0x47039020 */ /* not lifted */
   2857     RECOMP_FLAGS_IN();
   2858     esi = eax; /* 0x47045607: mov esi, eax */
   2859     ecx = esi; /* 0x47045609: mov ecx, esi */
   2860     RECOMP_ICALL(0x4703B210u); /* 0x4704560B: call 0x4703b210 */ /* not lifted */
   2861     RECOMP_FLAGS_IN();
   2862     PUSH32(esp, eax); /* 0x47045610: push eax */
   2863     ecx = esi; /* 0x47045611: mov ecx, esi */
   2864     RECOMP_ICALL(0x4703B240u); /* 0x47045613: call 0x4703b240 */ /* not lifted */
   2865     RECOMP_FLAGS_IN();
   2866     PUSH32(esp, eax); /* 0x47045618: push eax */
   2867     ecx = esi; /* 0x47045619: mov ecx, esi */
   2868     RECOMP_ICALL(0x4703B080u); /* 0x4704561B: call 0x4703b080 */ /* not lifted */
   2869     RECOMP_FLAGS_IN();
   2870     PUSH32(esp, eax); /* 0x47045620: push eax */
   2871     PUSH32(esp, edi); /* 0x47045621: push edi */
   2872     PUSH32(esp, 0); /* 0x47045622: push 0 */
   2873     PUSH32(esp, 0x469u); /* 0x47045624: push 0x469 */
   2874     PUSH32(esp, 0x471082E0u); /* 0x47045629: push 0x471082e0 */
   2875     ecx = esi; /* 0x4704562E: mov ecx, esi */
   2876     RECOMP_ICALL(0x4703A340u); /* 0x47045630: call 0x4703a340 */ /* not lifted */
   2877     RECOMP_FLAGS_IN();
   2878     PUSH32(esp, 0x4710529Cu); /* 0x47045635: push 0x4710529c */
   2879     PUSH32(esp, 4); /* 0x4704563A: push 4 */
   2880     PUSH32(esp, esi); /* 0x4704563C: push esi */
   2881     RECOMP_ICALL(0x47039830u); /* 0x4704563D: call 0x47039830 */ /* not lifted */
   2882     RECOMP_FLAGS_IN();
   2883     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2885     esp = esp + 0xCu; /* 0x47045642: add esp, 0xc */
   2886     _flag_k = FK_ADD;
   2887     edi = POP32_VAL(esp); /* 0x47045645: pop edi */
   2888     esi = POP32_VAL(esp); /* 0x47045646: pop esi */
   2889     ebp = POP32_VAL(esp); /* 0x47045647: pop ebp */
   2890     ebx = POP32_VAL(esp); /* 0x47045648: pop ebx */
   2891     ecx = POP32_VAL(esp); /* 0x47045649: pop ecx */
   2892     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704564A: ret  */
   2893     RECOMP_REGS_OUT();
   2894 }
   2895 
   2896 void sub_47045650(void) {
   2897     int _fpu_cmp = 0;
   2898     uint32_t _cf = 0;
   2899     int _df = 1;
   2900     uint32_t _flag_k = FK_NONE;
   2901     uint32_t _flag_a = 0, _flag_b = 0;
   2902     uint32_t _itail_tgt = 0;
   2903     RECOMP_REGS_LOCALS
   2904     RECOMP_ENTER(0x47045650u);
   2905 
   2906 L_47045650:
   2907     eax = MEM32(esp + 0x4); /* 0x47045650: mov eax, dword ptr [esp + 4] */
   2908     PUSH32(esp, ebx); /* 0x47045654: push ebx */
   2909     ebx = MEM32(esp + 0x10); /* 0x47045655: mov ebx, dword ptr [esp + 0x10] */
   2910     PUSH32(esp, esi); /* 0x47045659: push esi */
   2911     esi = ecx; /* 0x4704565A: mov esi, ecx */
   2912     ecx = MEM32(esp + 0x10); /* 0x4704565C: mov ecx, dword ptr [esp + 0x10] */
   2913     PUSH32(esp, edi); /* 0x47045660: push edi */
   2914     edi = MEM32(esp + 0x1C); /* 0x47045661: mov edi, dword ptr [esp + 0x1c] */
   2915     MEM32(esi + 0x8) = ecx; /* 0x47045665: mov dword ptr [esi + 8], ecx */
   2916     ecx = esi + 0x14; /* 0x47045668: lea ecx, [esi + 0x14] */
   2917     MEM32(esi + 0x4) = eax; /* 0x4704566B: mov dword ptr [esi + 4], eax */
   2918     MEM32(esi + 0xC) = ebx; /* 0x4704566E: mov dword ptr [esi + 0xc], ebx */
   2919     MEM32(esi + 0x10) = edi; /* 0x47045671: mov dword ptr [esi + 0x10], edi */
   2920     edx = edi + (-0x1); /* 0x47045674: lea edx, [edi - 1] */
   2921     MEM32(ecx) = 0; /* 0x47045677: mov dword ptr [ecx], 0 */
   2922     MEM32(ecx + 0x4) = edx; /* 0x4704567D: mov dword ptr [ecx + 4], edx */
   2923     RECOMP_ICALL(0x470543C0u); /* 0x47045680: call 0x470543c0 */ /* not lifted */
   2924     RECOMP_FLAGS_IN();
   2925     ecx = esi + 0x1C; /* 0x47045685: lea ecx, [esi + 0x1c] */
   2926     MEM32(ecx) = 0; /* 0x47045688: mov dword ptr [ecx], 0 */
   2927     MEM32(ecx + 0x4) = edi; /* 0x4704568E: mov dword ptr [ecx + 4], edi */
   2928     RECOMP_ICALL(0x470543C0u); /* 0x47045691: call 0x470543c0 */ /* not lifted */
   2929     RECOMP_FLAGS_IN();
   2930     ecx = esi + 0x24; /* 0x47045696: lea ecx, [esi + 0x24] */
   2931     MEM32(ecx) = 0; /* 0x47045699: mov dword ptr [ecx], 0 */
   2932     MEM32(ecx + 0x4) = ebx; /* 0x4704569F: mov dword ptr [ecx + 4], ebx */
   2933     RECOMP_ICALL(0x470543C0u); /* 0x470456A2: call 0x470543c0 */ /* not lifted */
   2934     RECOMP_FLAGS_IN();
   2935     edi = POP32_VAL(esp); /* 0x470456A7: pop edi */
   2936     MEM32(esi) = 0x470AC7A0u; /* 0x470456A8: mov dword ptr [esi], 0x470ac7a0 */
   2937     eax = esi; /* 0x470456AE: mov eax, esi */
   2938     esi = POP32_VAL(esp); /* 0x470456B0: pop esi */
   2939     ebx = POP32_VAL(esp); /* 0x470456B1: pop ebx */
   2940     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470456B2: ret 0x10 */
   2941     RECOMP_REGS_OUT();
   2942 }
   2943 
   2944 void sub_470456C0(void) {
   2945     int _fpu_cmp = 0;
   2946     uint32_t _cf = 0;
   2947     int _df = 1;
   2948     uint32_t _flag_k = FK_NONE;
   2949     uint32_t _flag_a = 0, _flag_b = 0;
   2950     uint32_t _itail_tgt = 0;
   2951     RECOMP_REGS_LOCALS
   2952     RECOMP_ENTER(0x470456C0u);
   2953 
   2954 L_470456C0:
   2955     PUSH32(esp, ecx); /* 0x470456C0: push ecx */
   2956     PUSH32(esp, ebx); /* 0x470456C1: push ebx */
   2957     PUSH32(esp, ebp); /* 0x470456C2: push ebp */
   2958     PUSH32(esp, esi); /* 0x470456C3: push esi */
   2959     PUSH32(esp, edi); /* 0x470456C4: push edi */
   2960     edi = MEM32(0x470AC150); /* 0x470456C5: mov edi, dword ptr [0x470ac150] */
   2961     ebp = ecx; /* 0x470456CB: mov ebp, ecx */
   2962     RECOMP_ICALL(edi); /* 0x470456CD: call edi */
   2963     RECOMP_FLAGS_IN();
   2964     ebx = MEM32(0x470AC3C8); /* 0x470456CF: mov ebx, dword ptr [0x470ac3c8] */
   2965     esi = eax; /* 0x470456D5: mov esi, eax */
   2966     RECOMP_ICALL(ebx); /* 0x470456D7: call ebx */
   2967     RECOMP_FLAGS_IN();
   2968     eax = MEM32(eax); /* 0x470456D9: mov eax, dword ptr [eax] */
   2969     /* test eax, eax */ /* 0x470456DB: test eax, eax */
   2970     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2971     _cf = 0;
   2972     _flag_k = FK_TEST;
   2973     MEM32(esp + 0x10) = esi; /* 0x470456DD: mov dword ptr [esp + 0x10], esi */
   2974     if (TEST_Z(_flag_a, _flag_b)) goto L_470456E7; /* 0x470456E1: je 0x470456e7 */
   2975 L_470456E3:
   2976     MEM32(esp + 0x10) = eax; /* 0x470456E3: mov dword ptr [esp + 0x10], eax */
   2977 L_470456E7:
   2978     RECOMP_ICALL(0x47039020u); /* 0x470456E7: call 0x47039020 */ /* not lifted */
   2979     RECOMP_FLAGS_IN();
   2980     esi = eax; /* 0x470456EC: mov esi, eax */
   2981     ecx = esi; /* 0x470456EE: mov ecx, esi */
   2982     RECOMP_ICALL(0x4703B210u); /* 0x470456F0: call 0x4703b210 */ /* not lifted */
   2983     RECOMP_FLAGS_IN();
   2984     PUSH32(esp, eax); /* 0x470456F5: push eax */
   2985     ecx = esi; /* 0x470456F6: mov ecx, esi */
   2986     RECOMP_ICALL(0x4703B240u); /* 0x470456F8: call 0x4703b240 */ /* not lifted */
   2987     RECOMP_FLAGS_IN();
   2988     PUSH32(esp, eax); /* 0x470456FD: push eax */
   2989     ecx = esi; /* 0x470456FE: mov ecx, esi */
   2990     RECOMP_ICALL(0x4703B080u); /* 0x47045700: call 0x4703b080 */ /* not lifted */
   2991     RECOMP_FLAGS_IN();
   2992     PUSH32(esp, eax); /* 0x47045705: push eax */
   2993     eax = MEM32(esp + 0x1C); /* 0x47045706: mov eax, dword ptr [esp + 0x1c] */
   2994     PUSH32(esp, eax); /* 0x4704570A: push eax */
   2995     PUSH32(esp, 0); /* 0x4704570B: push 0 */
   2996     PUSH32(esp, 0x480u); /* 0x4704570D: push 0x480 */
   2997     PUSH32(esp, 0x471082E0u); /* 0x47045712: push 0x471082e0 */
   2998     ecx = esi; /* 0x47045717: mov ecx, esi */
   2999     RECOMP_ICALL(0x4703A340u); /* 0x47045719: call 0x4703a340 */ /* not lifted */
   3000     RECOMP_FLAGS_IN();
   3001     PUSH32(esp, ebp); /* 0x4704571E: push ebp */
   3002     PUSH32(esp, 0x471052CCu); /* 0x4704571F: push 0x471052cc */
   3003     PUSH32(esp, 4); /* 0x47045724: push 4 */
   3004     PUSH32(esp, esi); /* 0x47045726: push esi */
   3005     RECOMP_ICALL(0x47039830u); /* 0x47045727: call 0x47039830 */ /* not lifted */
   3006     RECOMP_FLAGS_IN();
   3007     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3008     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3009     esp = esp + 0x10u; /* 0x4704572C: add esp, 0x10 */
   3010     _flag_k = FK_ADD;
   3011     RECOMP_ICALL(edi); /* 0x4704572F: call edi */
   3012     RECOMP_FLAGS_IN();
   3013     esi = eax; /* 0x47045731: mov esi, eax */
   3014     RECOMP_ICALL(ebx); /* 0x47045733: call ebx */
   3015     RECOMP_FLAGS_IN();
   3016     eax = MEM32(eax); /* 0x47045735: mov eax, dword ptr [eax] */
   3017     /* test eax, eax */ /* 0x47045737: test eax, eax */
   3018     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3019     _cf = 0;
   3020     _flag_k = FK_TEST;
   3021     MEM32(esp + 0x10) = esi; /* 0x47045739: mov dword ptr [esp + 0x10], esi */
   3022     if (TEST_Z(_flag_a, _flag_b)) goto L_47045743; /* 0x4704573D: je 0x47045743 */
   3023 L_4704573F:
   3024     MEM32(esp + 0x10) = eax; /* 0x4704573F: mov dword ptr [esp + 0x10], eax */
   3025 L_47045743:
   3026     RECOMP_ICALL(0x47039020u); /* 0x47045743: call 0x47039020 */ /* not lifted */
   3027     RECOMP_FLAGS_IN();
   3028     esi = eax; /* 0x47045748: mov esi, eax */
   3029     ecx = esi; /* 0x4704574A: mov ecx, esi */
   3030     RECOMP_ICALL(0x4703B210u); /* 0x4704574C: call 0x4703b210 */ /* not lifted */
   3031     RECOMP_FLAGS_IN();
   3032     PUSH32(esp, eax); /* 0x47045751: push eax */
   3033     ecx = esi; /* 0x47045752: mov ecx, esi */
   3034     RECOMP_ICALL(0x4703B240u); /* 0x47045754: call 0x4703b240 */ /* not lifted */
   3035     RECOMP_FLAGS_IN();
   3036     PUSH32(esp, eax); /* 0x47045759: push eax */
   3037     ecx = esi; /* 0x4704575A: mov ecx, esi */
   3038     RECOMP_ICALL(0x4703B080u); /* 0x4704575C: call 0x4703b080 */ /* not lifted */
   3039     RECOMP_FLAGS_IN();
   3040     ecx = MEM32(esp + 0x18); /* 0x47045761: mov ecx, dword ptr [esp + 0x18] */
   3041     PUSH32(esp, eax); /* 0x47045765: push eax */
   3042     PUSH32(esp, ecx); /* 0x47045766: push ecx */
   3043     PUSH32(esp, 0); /* 0x47045767: push 0 */
   3044     PUSH32(esp, 0x482u); /* 0x47045769: push 0x482 */
   3045     PUSH32(esp, 0x471082E0u); /* 0x4704576E: push 0x471082e0 */
   3046     ecx = esi; /* 0x47045773: mov ecx, esi */
   3047     RECOMP_ICALL(0x4703A340u); /* 0x47045775: call 0x4703a340 */ /* not lifted */
   3048     RECOMP_FLAGS_IN();
   3049     PUSH32(esp, 0x471084F4u); /* 0x4704577A: push 0x471084f4 */
   3050     PUSH32(esp, 4); /* 0x4704577F: push 4 */
   3051     PUSH32(esp, esi); /* 0x47045781: push esi */
   3052     RECOMP_ICALL(0x47039830u); /* 0x47045782: call 0x47039830 */ /* not lifted */
   3053     RECOMP_FLAGS_IN();
   3054     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3055     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3056     esp = esp + 0xCu; /* 0x47045787: add esp, 0xc */
   3057     _flag_k = FK_ADD;
   3058     ecx = ebp; /* 0x4704578A: mov ecx, ebp */
   3059     RECOMP_ICALL(0x47045310u); /* 0x4704578C: call 0x47045310 */ /* not lifted */
   3060     RECOMP_FLAGS_IN();
   3061     RECOMP_ICALL(edi); /* 0x47045791: call edi */
   3062     RECOMP_FLAGS_IN();
   3063     ebp = eax; /* 0x47045793: mov ebp, eax */
   3064     RECOMP_ICALL(ebx); /* 0x47045795: call ebx */
   3065     RECOMP_FLAGS_IN();
   3066     eax = MEM32(eax); /* 0x47045797: mov eax, dword ptr [eax] */
   3067     /* test eax, eax */ /* 0x47045799: test eax, eax */
   3068     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3069     _cf = 0;
   3070     _flag_k = FK_TEST;
   3071     if (TEST_Z(_flag_a, _flag_b)) goto L_4704579F; /* 0x4704579B: je 0x4704579f */
   3072 L_4704579D:
   3073     ebp = eax; /* 0x4704579D: mov ebp, eax */
   3074 L_4704579F:
   3075     RECOMP_ICALL(0x47039020u); /* 0x4704579F: call 0x47039020 */ /* not lifted */
   3076     RECOMP_FLAGS_IN();
   3077     esi = eax; /* 0x470457A4: mov esi, eax */
   3078     ecx = esi; /* 0x470457A6: mov ecx, esi */
   3079     RECOMP_ICALL(0x4703B210u); /* 0x470457A8: call 0x4703b210 */ /* not lifted */
   3080     RECOMP_FLAGS_IN();
   3081     PUSH32(esp, eax); /* 0x470457AD: push eax */
   3082     ecx = esi; /* 0x470457AE: mov ecx, esi */
   3083     RECOMP_ICALL(0x4703B240u); /* 0x470457B0: call 0x4703b240 */ /* not lifted */
   3084     RECOMP_FLAGS_IN();
   3085     PUSH32(esp, eax); /* 0x470457B5: push eax */
   3086     ecx = esi; /* 0x470457B6: mov ecx, esi */
   3087     RECOMP_ICALL(0x4703B080u); /* 0x470457B8: call 0x4703b080 */ /* not lifted */
   3088     RECOMP_FLAGS_IN();
   3089     PUSH32(esp, eax); /* 0x470457BD: push eax */
   3090     PUSH32(esp, ebp); /* 0x470457BE: push ebp */
   3091     PUSH32(esp, 0); /* 0x470457BF: push 0 */
   3092     PUSH32(esp, 0x485u); /* 0x470457C1: push 0x485 */
   3093     PUSH32(esp, 0x471082E0u); /* 0x470457C6: push 0x471082e0 */
   3094     ecx = esi; /* 0x470457CB: mov ecx, esi */
   3095     RECOMP_ICALL(0x4703A340u); /* 0x470457CD: call 0x4703a340 */ /* not lifted */
   3096     RECOMP_FLAGS_IN();
   3097     PUSH32(esp, 0x47108520u); /* 0x470457D2: push 0x47108520 */
   3098     PUSH32(esp, 4); /* 0x470457D7: push 4 */
   3099     PUSH32(esp, esi); /* 0x470457D9: push esi */
   3100     RECOMP_ICALL(0x47039830u); /* 0x470457DA: call 0x47039830 */ /* not lifted */
   3101     RECOMP_FLAGS_IN();
   3102     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3103     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3104     esp = esp + 0xCu; /* 0x470457DF: add esp, 0xc */
   3105     _flag_k = FK_ADD;
   3106     RECOMP_ICALL(edi); /* 0x470457E2: call edi */
   3107     RECOMP_FLAGS_IN();
   3108     esi = eax; /* 0x470457E4: mov esi, eax */
   3109     RECOMP_ICALL(ebx); /* 0x470457E6: call ebx */
   3110     RECOMP_FLAGS_IN();
   3111     eax = MEM32(eax); /* 0x470457E8: mov eax, dword ptr [eax] */
   3112     /* test eax, eax */ /* 0x470457EA: test eax, eax */
   3113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3114     _cf = 0;
   3115     _flag_k = FK_TEST;
   3116     edi = esi; /* 0x470457EC: mov edi, esi */
   3117     if (TEST_Z(_flag_a, _flag_b)) goto L_470457F2; /* 0x470457EE: je 0x470457f2 */
   3118 L_470457F0:
   3119     edi = eax; /* 0x470457F0: mov edi, eax */
   3120 L_470457F2:
   3121     RECOMP_ICALL(0x47039020u); /* 0x470457F2: call 0x47039020 */ /* not lifted */
   3122     RECOMP_FLAGS_IN();
   3123     esi = eax; /* 0x470457F7: mov esi, eax */
   3124     ecx = esi; /* 0x470457F9: mov ecx, esi */
   3125     RECOMP_ICALL(0x4703B210u); /* 0x470457FB: call 0x4703b210 */ /* not lifted */
   3126     RECOMP_FLAGS_IN();
   3127     PUSH32(esp, eax); /* 0x47045800: push eax */
   3128     ecx = esi; /* 0x47045801: mov ecx, esi */
   3129     RECOMP_ICALL(0x4703B240u); /* 0x47045803: call 0x4703b240 */ /* not lifted */
   3130     RECOMP_FLAGS_IN();
   3131     PUSH32(esp, eax); /* 0x47045808: push eax */
   3132     ecx = esi; /* 0x47045809: mov ecx, esi */
   3133     RECOMP_ICALL(0x4703B080u); /* 0x4704580B: call 0x4703b080 */ /* not lifted */
   3134     RECOMP_FLAGS_IN();
   3135     PUSH32(esp, eax); /* 0x47045810: push eax */
   3136     PUSH32(esp, edi); /* 0x47045811: push edi */
   3137     PUSH32(esp, 0); /* 0x47045812: push 0 */
   3138     PUSH32(esp, 0x487u); /* 0x47045814: push 0x487 */
   3139     PUSH32(esp, 0x471082E0u); /* 0x47045819: push 0x471082e0 */
   3140     ecx = esi; /* 0x4704581E: mov ecx, esi */
   3141     RECOMP_ICALL(0x4703A340u); /* 0x47045820: call 0x4703a340 */ /* not lifted */
   3142     RECOMP_FLAGS_IN();
   3143     PUSH32(esp, 0x4710529Cu); /* 0x47045825: push 0x4710529c */
   3144     PUSH32(esp, 4); /* 0x4704582A: push 4 */
   3145     PUSH32(esp, esi); /* 0x4704582C: push esi */
   3146     RECOMP_ICALL(0x47039830u); /* 0x4704582D: call 0x47039830 */ /* not lifted */
   3147     RECOMP_FLAGS_IN();
   3148     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3149     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3150     esp = esp + 0xCu; /* 0x47045832: add esp, 0xc */
   3151     _flag_k = FK_ADD;
   3152     edi = POP32_VAL(esp); /* 0x47045835: pop edi */
   3153     esi = POP32_VAL(esp); /* 0x47045836: pop esi */
   3154     ebp = POP32_VAL(esp); /* 0x47045837: pop ebp */
   3155     ebx = POP32_VAL(esp); /* 0x47045838: pop ebx */
   3156     ecx = POP32_VAL(esp); /* 0x47045839: pop ecx */
   3157     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704583A: ret  */
   3158     RECOMP_REGS_OUT();
   3159 }
   3160 
   3161 void sub_47045840(void) {
   3162     int _fpu_cmp = 0;
   3163     uint32_t _cf = 0;
   3164     int _df = 1;
   3165     uint32_t _flag_k = FK_NONE;
   3166     uint32_t _flag_a = 0, _flag_b = 0;
   3167     uint32_t _itail_tgt = 0;
   3168     RECOMP_REGS_LOCALS
   3169     RECOMP_ENTER(0x47045840u);
   3170 
   3171 L_47045840:
   3172     PUSH32(esp, esi); /* 0x47045840: push esi */
   3173     esi = ecx; /* 0x47045841: mov esi, ecx */
   3174     ecx = MEM32(esp + 0x8); /* 0x47045843: mov ecx, dword ptr [esp + 8] */
   3175     MEM32(esi) = ecx; /* 0x47045847: mov dword ptr [esi], ecx */
   3176     MEM32(esi + 0x4) = 0; /* 0x47045849: mov dword ptr [esi + 4], 0 */
   3177     eax = MEM32(ecx); /* 0x47045850: mov eax, dword ptr [ecx] */
   3178     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47045852: call dword ptr [eax + 8] */
   3179     RECOMP_FLAGS_IN();
   3180     MEM32(esi + 0x4) = eax; /* 0x47045855: mov dword ptr [esi + 4], eax */
   3181     eax = esi; /* 0x47045858: mov eax, esi */
   3182     esi = POP32_VAL(esp); /* 0x4704585A: pop esi */
   3183     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704585B: ret 4 */
   3184     RECOMP_REGS_OUT();
   3185 }
   3186 
   3187 void sub_47045860(void) {
   3188     int _fpu_cmp = 0;
   3189     uint32_t _cf = 0;
   3190     int _df = 1;
   3191     uint32_t _flag_k = FK_NONE;
   3192     uint32_t _flag_a = 0, _flag_b = 0;
   3193     uint32_t _itail_tgt = 0;
   3194     RECOMP_REGS_LOCALS
   3195     RECOMP_ENTER(0x47045860u);
   3196 
   3197 L_47045860:
   3198     edx = MEM32(ecx + 0x4); /* 0x47045860: mov edx, dword ptr [ecx + 4] */
   3199 L_47045863:
   3200     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3201     eax = eax | 0xFFFFFFFFu; /* 0x47045863: or eax, 0xffffffff */
   3202     _cf = 0;
   3203     _flag_k = FK_TEST;
   3204 L_47045866:
   3205     /* cmp edx, eax */ /* 0x47045866: cmp edx, eax */
   3206     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3208     _flag_k = FK_CMP;
   3209 L_47045868:
   3210     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_47045874; /* 0x47045868: je 0x47045874 */
   3211 L_4704586A:
   3212     MEM32(ecx + 0x4) = eax; /* 0x4704586A: mov dword ptr [ecx + 4], eax */
   3213 L_4704586D:
   3214     ecx = MEM32(ecx); /* 0x4704586D: mov ecx, dword ptr [ecx] */
   3215 L_4704586F:
   3216     eax = MEM32(ecx); /* 0x4704586F: mov eax, dword ptr [ecx] */
   3217 L_47045871:
   3218     { _itail_tgt = (uint32_t)(MEM32(eax + 0x10)); goto _ljump; }
   3219 L_47045874:
   3220     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3221     eax = 0; /* 0x47045874: xor eax, eax */
   3222     _cf = 0;
   3223     _flag_k = FK_TEST;
   3224 L_47045876:
   3225     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045876: ret  */
   3226   _ljump:
   3227     switch (_itail_tgt) {
   3228       case 0x47045860u: goto L_47045860;
   3229       case 0x47045863u: goto L_47045863;
   3230       case 0x47045866u: goto L_47045866;
   3231       case 0x47045868u: goto L_47045868;
   3232       case 0x4704586Au: goto L_4704586A;
   3233       case 0x4704586Du: goto L_4704586D;
   3234       case 0x4704586Fu: goto L_4704586F;
   3235       case 0x47045871u: goto L_47045871;
   3236       case 0x47045874u: goto L_47045874;
   3237       case 0x47045876u: goto L_47045876;
   3238       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3239     }
   3240     RECOMP_REGS_OUT();
   3241 }
   3242 
   3243 void sub_47045880(void) {
   3244     int _fpu_cmp = 0;
   3245     uint32_t _cf = 0;
   3246     int _df = 1;
   3247     uint32_t _flag_k = FK_NONE;
   3248     uint32_t _flag_a = 0, _flag_b = 0;
   3249     uint32_t _itail_tgt = 0;
   3250     RECOMP_REGS_LOCALS
   3251     RECOMP_ENTER(0x47045880u);
   3252 
   3253 L_47045880:
   3254     ecx = 0x4710E745u; /* 0x47045880: mov ecx, 0x4710e745 */
   3255     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47045885: call dword ptr [0x470ac1c8] */
   3256     RECOMP_FLAGS_IN();
   3257     PUSH32(esp, 0x470458A0u); /* 0x4704588B: push 0x470458a0 */
   3258     RECOMP_ICALL(0x470A32D9u); /* 0x47045890: call 0x470a32d9 */ /* not lifted */
   3259     RECOMP_FLAGS_IN();
   3260     ecx = POP32_VAL(esp); /* 0x47045895: pop ecx */
   3261     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045896: ret  */
   3262     RECOMP_REGS_OUT();
   3263 }
   3264 
   3265 void sub_470458A0(void) {
   3266     int _fpu_cmp = 0;
   3267     uint32_t _cf = 0;
   3268     int _df = 1;
   3269     uint32_t _flag_k = FK_NONE;
   3270     uint32_t _flag_a = 0, _flag_b = 0;
   3271     uint32_t _itail_tgt = 0;
   3272     RECOMP_REGS_LOCALS
   3273     RECOMP_ENTER(0x470458A0u);
   3274 
   3275 L_470458A0:
   3276     ecx = 0x4710E745u; /* 0x470458A0: mov ecx, 0x4710e745 */
   3277 L_470458A5:
   3278     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3279     { RECOMP_REGS_OUT(); return; } /* end of function */
   3280   _ljump:
   3281     switch (_itail_tgt) {
   3282       case 0x470458A0u: goto L_470458A0;
   3283       case 0x470458A5u: goto L_470458A5;
   3284       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3285     }
   3286     RECOMP_REGS_OUT();
   3287 }
   3288 
   3289 void sub_470458B0(void) {
   3290     int _fpu_cmp = 0;
   3291     uint32_t _cf = 0;
   3292     int _df = 1;
   3293     uint32_t _flag_k = FK_NONE;
   3294     uint32_t _flag_a = 0, _flag_b = 0;
   3295     uint32_t _itail_tgt = 0;
   3296     RECOMP_REGS_LOCALS
   3297     RECOMP_ENTER(0x470458B0u);
   3298 
   3299 L_470458B0:
   3300     ecx = 0x4710E744u; /* 0x470458B0: mov ecx, 0x4710e744 */
   3301     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470458B5: call dword ptr [0x470ac1c4] */
   3302     RECOMP_FLAGS_IN();
   3303     PUSH32(esp, 0x470458D0u); /* 0x470458BB: push 0x470458d0 */
   3304     RECOMP_ICALL(0x470A32D9u); /* 0x470458C0: call 0x470a32d9 */ /* not lifted */
   3305     RECOMP_FLAGS_IN();
   3306     ecx = POP32_VAL(esp); /* 0x470458C5: pop ecx */
   3307     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470458C6: ret  */
   3308     RECOMP_REGS_OUT();
   3309 }
   3310 
   3311 void sub_470458D0(void) {
   3312     int _fpu_cmp = 0;
   3313     uint32_t _cf = 0;
   3314     int _df = 1;
   3315     uint32_t _flag_k = FK_NONE;
   3316     uint32_t _flag_a = 0, _flag_b = 0;
   3317     uint32_t _itail_tgt = 0;
   3318     RECOMP_REGS_LOCALS
   3319     RECOMP_ENTER(0x470458D0u);
   3320 
   3321 L_470458D0:
   3322     ecx = 0x4710E744u; /* 0x470458D0: mov ecx, 0x4710e744 */
   3323 L_470458D5:
   3324     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3325     { RECOMP_REGS_OUT(); return; } /* end of function */
   3326   _ljump:
   3327     switch (_itail_tgt) {
   3328       case 0x470458D0u: goto L_470458D0;
   3329       case 0x470458D5u: goto L_470458D5;
   3330       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3331     }
   3332     RECOMP_REGS_OUT();
   3333 }
   3334 
   3335 void sub_470458E0(void) {
   3336     int _fpu_cmp = 0;
   3337     uint32_t _cf = 0;
   3338     int _df = 1;
   3339     uint32_t _flag_k = FK_NONE;
   3340     uint32_t _flag_a = 0, _flag_b = 0;
   3341     uint32_t _itail_tgt = 0;
   3342     RECOMP_REGS_LOCALS
   3343     RECOMP_ENTER(0x470458E0u);
   3344 
   3345 L_470458E0:
   3346     MEM32(0x4710E734) = 0x47104A3Cu; /* 0x470458E0: mov dword ptr [0x4710e734], 0x47104a3c */
   3347     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470458EA: ret  */
   3348     RECOMP_REGS_OUT();
   3349 }
   3350 
   3351 void sub_470458F0(void) {
   3352     int _fpu_cmp = 0;
   3353     uint32_t _cf = 0;
   3354     int _df = 1;
   3355     uint32_t _flag_k = FK_NONE;
   3356     uint32_t _flag_a = 0, _flag_b = 0;
   3357     uint32_t _itail_tgt = 0;
   3358     RECOMP_REGS_LOCALS
   3359     RECOMP_ENTER(0x470458F0u);
   3360 
   3361 L_470458F0:
   3362     MEM32(0x4710E750) = 0x47104A00u; /* 0x470458F0: mov dword ptr [0x4710e750], 0x47104a00 */
   3363     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470458FA: ret  */
   3364     RECOMP_REGS_OUT();
   3365 }
   3366 
   3367 void sub_47045900(void) {
   3368     int _fpu_cmp = 0;
   3369     uint32_t _cf = 0;
   3370     int _df = 1;
   3371     uint32_t _flag_k = FK_NONE;
   3372     uint32_t _flag_a = 0, _flag_b = 0;
   3373     uint32_t _itail_tgt = 0;
   3374     RECOMP_REGS_LOCALS
   3375     RECOMP_ENTER(0x47045900u);
   3376 
   3377 L_47045900:
   3378     MEM32(0x4710E74C) = 0x47104A70u; /* 0x47045900: mov dword ptr [0x4710e74c], 0x47104a70 */
   3379     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704590A: ret  */
   3380     RECOMP_REGS_OUT();
   3381 }
   3382 
   3383 void sub_47045910(void) {
   3384     int _fpu_cmp = 0;
   3385     uint32_t _cf = 0;
   3386     int _df = 1;
   3387     uint32_t _flag_k = FK_NONE;
   3388     uint32_t _flag_a = 0, _flag_b = 0;
   3389     uint32_t _itail_tgt = 0;
   3390     RECOMP_REGS_LOCALS
   3391     RECOMP_ENTER(0x47045910u);
   3392 
   3393 L_47045910:
   3394     MEM32(0x4710E768) = 0x47104B6Cu; /* 0x47045910: mov dword ptr [0x4710e768], 0x47104b6c */
   3395     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704591A: ret  */
   3396     RECOMP_REGS_OUT();
   3397 }
   3398 
   3399 void sub_47045920(void) {
   3400     int _fpu_cmp = 0;
   3401     uint32_t _cf = 0;
   3402     int _df = 1;
   3403     uint32_t _flag_k = FK_NONE;
   3404     uint32_t _flag_a = 0, _flag_b = 0;
   3405     uint32_t _itail_tgt = 0;
   3406     RECOMP_REGS_LOCALS
   3407     RECOMP_ENTER(0x47045920u);
   3408 
   3409 L_47045920:
   3410     MEM32(0x4710E740) = 0x47104BA0u; /* 0x47045920: mov dword ptr [0x4710e740], 0x47104ba0 */
   3411     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704592A: ret  */
   3412     RECOMP_REGS_OUT();
   3413 }
   3414 
   3415 void sub_47045930(void) {
   3416     int _fpu_cmp = 0;
   3417     uint32_t _cf = 0;
   3418     int _df = 1;
   3419     uint32_t _flag_k = FK_NONE;
   3420     uint32_t _flag_a = 0, _flag_b = 0;
   3421     uint32_t _itail_tgt = 0;
   3422     RECOMP_REGS_LOCALS
   3423     RECOMP_ENTER(0x47045930u);
   3424 
   3425 L_47045930:
   3426     MEM32(0x4710E760) = 0x47104BD4u; /* 0x47045930: mov dword ptr [0x4710e760], 0x47104bd4 */
   3427     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704593A: ret  */
   3428     RECOMP_REGS_OUT();
   3429 }
   3430 
   3431 void sub_47045940(void) {
   3432     int _fpu_cmp = 0;
   3433     uint32_t _cf = 0;
   3434     int _df = 1;
   3435     uint32_t _flag_k = FK_NONE;
   3436     uint32_t _flag_a = 0, _flag_b = 0;
   3437     uint32_t _itail_tgt = 0;
   3438     RECOMP_REGS_LOCALS
   3439     RECOMP_ENTER(0x47045940u);
   3440 
   3441 L_47045940:
   3442     MEM32(0x4710E758) = 0x47104C0Cu; /* 0x47045940: mov dword ptr [0x4710e758], 0x47104c0c */
   3443     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704594A: ret  */
   3444     RECOMP_REGS_OUT();
   3445 }
   3446 
   3447 void sub_47045950(void) {
   3448     int _fpu_cmp = 0;
   3449     uint32_t _cf = 0;
   3450     int _df = 1;
   3451     uint32_t _flag_k = FK_NONE;
   3452     uint32_t _flag_a = 0, _flag_b = 0;
   3453     uint32_t _itail_tgt = 0;
   3454     RECOMP_REGS_LOCALS
   3455     RECOMP_ENTER(0x47045950u);
   3456 
   3457 L_47045950:
   3458     MEM32(0x4710E75C) = 0x471050FCu; /* 0x47045950: mov dword ptr [0x4710e75c], 0x471050fc */
   3459     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704595A: ret  */
   3460     RECOMP_REGS_OUT();
   3461 }
   3462 
   3463 void sub_47045960(void) {
   3464     int _fpu_cmp = 0;
   3465     uint32_t _cf = 0;
   3466     int _df = 1;
   3467     uint32_t _flag_k = FK_NONE;
   3468     uint32_t _flag_a = 0, _flag_b = 0;
   3469     uint32_t _itail_tgt = 0;
   3470     RECOMP_REGS_LOCALS
   3471     RECOMP_ENTER(0x47045960u);
   3472 
   3473 L_47045960:
   3474     MEM32(0x4710E748) = 0x47105158u; /* 0x47045960: mov dword ptr [0x4710e748], 0x47105158 */
   3475     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704596A: ret  */
   3476     RECOMP_REGS_OUT();
   3477 }
   3478 
   3479 void sub_47045970(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(0x47045970u);
   3488 
   3489 L_47045970:
   3490     MEM32(0x4710E738) = 0x4710518Cu; /* 0x47045970: mov dword ptr [0x4710e738], 0x4710518c */
   3491     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704597A: ret  */
   3492     RECOMP_REGS_OUT();
   3493 }
   3494 
   3495 void sub_47045980(void) {
   3496     int _fpu_cmp = 0;
   3497     uint32_t _cf = 0;
   3498     int _df = 1;
   3499     uint32_t _flag_k = FK_NONE;
   3500     uint32_t _flag_a = 0, _flag_b = 0;
   3501     uint32_t _itail_tgt = 0;
   3502     RECOMP_REGS_LOCALS
   3503     RECOMP_ENTER(0x47045980u);
   3504 
   3505 L_47045980:
   3506     MEM32(0x4710E764) = 0x471051ECu; /* 0x47045980: mov dword ptr [0x4710e764], 0x471051ec */
   3507     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704598A: ret  */
   3508     RECOMP_REGS_OUT();
   3509 }
   3510 
   3511 void sub_47045990(void) {
   3512     int _fpu_cmp = 0;
   3513     uint32_t _cf = 0;
   3514     int _df = 1;
   3515     uint32_t _flag_k = FK_NONE;
   3516     uint32_t _flag_a = 0, _flag_b = 0;
   3517     uint32_t _itail_tgt = 0;
   3518     RECOMP_REGS_LOCALS
   3519     RECOMP_ENTER(0x47045990u);
   3520 
   3521 L_47045990:
   3522     MEM32(0x4710E754) = 0x47105224u; /* 0x47045990: mov dword ptr [0x4710e754], 0x47105224 */
   3523     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4704599A: ret  */
   3524     RECOMP_REGS_OUT();
   3525 }
   3526 
   3527 void sub_470459A0(void) {
   3528     int _fpu_cmp = 0;
   3529     uint32_t _cf = 0;
   3530     int _df = 1;
   3531     uint32_t _flag_k = FK_NONE;
   3532     uint32_t _flag_a = 0, _flag_b = 0;
   3533     uint32_t _itail_tgt = 0;
   3534     RECOMP_REGS_LOCALS
   3535     RECOMP_ENTER(0x470459A0u);
   3536 
   3537 L_470459A0:
   3538     MEM32(0x4710E73C) = 0x47108550u; /* 0x470459A0: mov dword ptr [0x4710e73c], 0x47108550 */
   3539     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470459AA: ret  */
   3540     RECOMP_REGS_OUT();
   3541 }
   3542 
   3543 void sub_470459B0(void) {
   3544     int _fpu_cmp = 0;
   3545     uint32_t _cf = 0;
   3546     int _df = 1;
   3547     uint32_t _flag_k = FK_NONE;
   3548     uint32_t _flag_a = 0, _flag_b = 0;
   3549     uint32_t _itail_tgt = 0;
   3550     RECOMP_REGS_LOCALS
   3551     RECOMP_ENTER(0x470459B0u);
   3552 
   3553 L_470459B0:
   3554     ecx = 0x4710E76Du; /* 0x470459B0: mov ecx, 0x4710e76d */
   3555     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470459B5: call dword ptr [0x470ac1c8] */
   3556     RECOMP_FLAGS_IN();
   3557     PUSH32(esp, 0x470459D0u); /* 0x470459BB: push 0x470459d0 */
   3558     RECOMP_ICALL(0x470A32D9u); /* 0x470459C0: call 0x470a32d9 */ /* not lifted */
   3559     RECOMP_FLAGS_IN();
   3560     ecx = POP32_VAL(esp); /* 0x470459C5: pop ecx */
   3561     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470459C6: ret  */
   3562     RECOMP_REGS_OUT();
   3563 }
   3564 
   3565 void sub_470459D0(void) {
   3566     int _fpu_cmp = 0;
   3567     uint32_t _cf = 0;
   3568     int _df = 1;
   3569     uint32_t _flag_k = FK_NONE;
   3570     uint32_t _flag_a = 0, _flag_b = 0;
   3571     uint32_t _itail_tgt = 0;
   3572     RECOMP_REGS_LOCALS
   3573     RECOMP_ENTER(0x470459D0u);
   3574 
   3575 L_470459D0:
   3576     ecx = 0x4710E76Du; /* 0x470459D0: mov ecx, 0x4710e76d */
   3577 L_470459D5:
   3578     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3579     { RECOMP_REGS_OUT(); return; } /* end of function */
   3580   _ljump:
   3581     switch (_itail_tgt) {
   3582       case 0x470459D0u: goto L_470459D0;
   3583       case 0x470459D5u: goto L_470459D5;
   3584       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3585     }
   3586     RECOMP_REGS_OUT();
   3587 }
   3588 
   3589 void sub_470459E0(void) {
   3590     int _fpu_cmp = 0;
   3591     uint32_t _cf = 0;
   3592     int _df = 1;
   3593     uint32_t _flag_k = FK_NONE;
   3594     uint32_t _flag_a = 0, _flag_b = 0;
   3595     uint32_t _itail_tgt = 0;
   3596     RECOMP_REGS_LOCALS
   3597     RECOMP_ENTER(0x470459E0u);
   3598 
   3599 L_470459E0:
   3600     ecx = 0x4710E76Cu; /* 0x470459E0: mov ecx, 0x4710e76c */
   3601     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470459E5: call dword ptr [0x470ac1c4] */
   3602     RECOMP_FLAGS_IN();
   3603     PUSH32(esp, 0x47045A00u); /* 0x470459EB: push 0x47045a00 */
   3604     RECOMP_ICALL(0x470A32D9u); /* 0x470459F0: call 0x470a32d9 */ /* not lifted */
   3605     RECOMP_FLAGS_IN();
   3606     ecx = POP32_VAL(esp); /* 0x470459F5: pop ecx */
   3607     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470459F6: ret  */
   3608     RECOMP_REGS_OUT();
   3609 }
   3610 
   3611 void sub_47045A00(void) {
   3612     int _fpu_cmp = 0;
   3613     uint32_t _cf = 0;
   3614     int _df = 1;
   3615     uint32_t _flag_k = FK_NONE;
   3616     uint32_t _flag_a = 0, _flag_b = 0;
   3617     uint32_t _itail_tgt = 0;
   3618     RECOMP_REGS_LOCALS
   3619     RECOMP_ENTER(0x47045A00u);
   3620 
   3621 L_47045A00:
   3622     ecx = 0x4710E76Cu; /* 0x47045A00: mov ecx, 0x4710e76c */
   3623 L_47045A05:
   3624     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3625     { RECOMP_REGS_OUT(); return; } /* end of function */
   3626   _ljump:
   3627     switch (_itail_tgt) {
   3628       case 0x47045A00u: goto L_47045A00;
   3629       case 0x47045A05u: goto L_47045A05;
   3630       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3631     }
   3632     RECOMP_REGS_OUT();
   3633 }
   3634 
   3635 void sub_47045A10(void) {
   3636     int _fpu_cmp = 0;
   3637     uint32_t _cf = 0;
   3638     int _df = 1;
   3639     uint32_t _flag_k = FK_NONE;
   3640     uint32_t _flag_a = 0, _flag_b = 0;
   3641     uint32_t _itail_tgt = 0;
   3642     RECOMP_REGS_LOCALS
   3643     RECOMP_ENTER(0x47045A10u);
   3644 
   3645 L_47045A10:
   3646     MEM32(0x4710E770) = 0x47108588u; /* 0x47045A10: mov dword ptr [0x4710e770], 0x47108588 */
   3647     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045A1A: ret  */
   3648     RECOMP_REGS_OUT();
   3649 }
   3650 
   3651 void sub_47045A20(void) {
   3652     int _fpu_cmp = 0;
   3653     uint32_t _cf = 0;
   3654     int _df = 1;
   3655     uint32_t _flag_k = FK_NONE;
   3656     uint32_t _flag_a = 0, _flag_b = 0;
   3657     uint32_t _itail_tgt = 0;
   3658     RECOMP_REGS_LOCALS
   3659     RECOMP_ENTER(0x47045A20u);
   3660 
   3661 L_47045A20:
   3662     eax = ecx; /* 0x47045A20: mov eax, ecx */
   3663     ecx = MEM32(esp + 0x4); /* 0x47045A22: mov ecx, dword ptr [esp + 4] */
   3664     MEM32(eax + 0x4) = ecx; /* 0x47045A26: mov dword ptr [eax + 4], ecx */
   3665     MEM32(eax) = 0x470ACB74u; /* 0x47045A29: mov dword ptr [eax], 0x470acb74 */
   3666     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47045A2F: ret 4 */
   3667     RECOMP_REGS_OUT();
   3668 }
   3669 
   3670 void sub_47045A40(void) {
   3671     int _fpu_cmp = 0;
   3672     uint32_t _cf = 0;
   3673     int _df = 1;
   3674     uint32_t _flag_k = FK_NONE;
   3675     uint32_t _flag_a = 0, _flag_b = 0;
   3676     uint32_t _itail_tgt = 0;
   3677     RECOMP_REGS_LOCALS
   3678     RECOMP_ENTER(0x47045A40u);
   3679 
   3680 L_47045A40:
   3681     MEM32(ecx) = 0x470ACB74u; /* 0x47045A40: mov dword ptr [ecx], 0x470acb74 */
   3682     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045A46: ret  */
   3683     RECOMP_REGS_OUT();
   3684 }
   3685 
   3686 void sub_47045A50(void) {
   3687     int _fpu_cmp = 0;
   3688     uint32_t _cf = 0;
   3689     int _df = 1;
   3690     uint32_t _flag_k = FK_NONE;
   3691     uint32_t _flag_a = 0, _flag_b = 0;
   3692     uint32_t _itail_tgt = 0;
   3693     RECOMP_REGS_LOCALS
   3694     RECOMP_ENTER(0x47045A50u);
   3695 
   3696 L_47045A50:
   3697     ecx = 0x4710E785u; /* 0x47045A50: mov ecx, 0x4710e785 */
   3698     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47045A55: call dword ptr [0x470ac1c8] */
   3699     RECOMP_FLAGS_IN();
   3700     PUSH32(esp, 0x47045A70u); /* 0x47045A5B: push 0x47045a70 */
   3701     RECOMP_ICALL(0x470A32D9u); /* 0x47045A60: call 0x470a32d9 */ /* not lifted */
   3702     RECOMP_FLAGS_IN();
   3703     ecx = POP32_VAL(esp); /* 0x47045A65: pop ecx */
   3704     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045A66: ret  */
   3705     RECOMP_REGS_OUT();
   3706 }
   3707 
   3708 void sub_47045A70(void) {
   3709     int _fpu_cmp = 0;
   3710     uint32_t _cf = 0;
   3711     int _df = 1;
   3712     uint32_t _flag_k = FK_NONE;
   3713     uint32_t _flag_a = 0, _flag_b = 0;
   3714     uint32_t _itail_tgt = 0;
   3715     RECOMP_REGS_LOCALS
   3716     RECOMP_ENTER(0x47045A70u);
   3717 
   3718 L_47045A70:
   3719     ecx = 0x4710E785u; /* 0x47045A70: mov ecx, 0x4710e785 */
   3720 L_47045A75:
   3721     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3722     { RECOMP_REGS_OUT(); return; } /* end of function */
   3723   _ljump:
   3724     switch (_itail_tgt) {
   3725       case 0x47045A70u: goto L_47045A70;
   3726       case 0x47045A75u: goto L_47045A75;
   3727       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3728     }
   3729     RECOMP_REGS_OUT();
   3730 }
   3731 
   3732 void sub_47045A80(void) {
   3733     int _fpu_cmp = 0;
   3734     uint32_t _cf = 0;
   3735     int _df = 1;
   3736     uint32_t _flag_k = FK_NONE;
   3737     uint32_t _flag_a = 0, _flag_b = 0;
   3738     uint32_t _itail_tgt = 0;
   3739     RECOMP_REGS_LOCALS
   3740     RECOMP_ENTER(0x47045A80u);
   3741 
   3742 L_47045A80:
   3743     ecx = 0x4710E784u; /* 0x47045A80: mov ecx, 0x4710e784 */
   3744     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47045A85: call dword ptr [0x470ac1c4] */
   3745     RECOMP_FLAGS_IN();
   3746     PUSH32(esp, 0x47045AA0u); /* 0x47045A8B: push 0x47045aa0 */
   3747     RECOMP_ICALL(0x470A32D9u); /* 0x47045A90: call 0x470a32d9 */ /* not lifted */
   3748     RECOMP_FLAGS_IN();
   3749     ecx = POP32_VAL(esp); /* 0x47045A95: pop ecx */
   3750     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045A96: ret  */
   3751     RECOMP_REGS_OUT();
   3752 }
   3753 
   3754 void sub_47045AA0(void) {
   3755     int _fpu_cmp = 0;
   3756     uint32_t _cf = 0;
   3757     int _df = 1;
   3758     uint32_t _flag_k = FK_NONE;
   3759     uint32_t _flag_a = 0, _flag_b = 0;
   3760     uint32_t _itail_tgt = 0;
   3761     RECOMP_REGS_LOCALS
   3762     RECOMP_ENTER(0x47045AA0u);
   3763 
   3764 L_47045AA0:
   3765     ecx = 0x4710E784u; /* 0x47045AA0: mov ecx, 0x4710e784 */
   3766 L_47045AA5:
   3767     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3768     { RECOMP_REGS_OUT(); return; } /* end of function */
   3769   _ljump:
   3770     switch (_itail_tgt) {
   3771       case 0x47045AA0u: goto L_47045AA0;
   3772       case 0x47045AA5u: goto L_47045AA5;
   3773       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3774     }
   3775     RECOMP_REGS_OUT();
   3776 }
   3777 
   3778 void sub_47045AB0(void) {
   3779     int _fpu_cmp = 0;
   3780     uint32_t _cf = 0;
   3781     int _df = 1;
   3782     uint32_t _flag_k = FK_NONE;
   3783     uint32_t _flag_a = 0, _flag_b = 0;
   3784     uint32_t _itail_tgt = 0;
   3785     RECOMP_REGS_LOCALS
   3786     RECOMP_ENTER(0x47045AB0u);
   3787 
   3788 L_47045AB0:
   3789     MEM32(0x4710E774) = 0x47104A3Cu; /* 0x47045AB0: mov dword ptr [0x4710e774], 0x47104a3c */
   3790     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045ABA: ret  */
   3791     RECOMP_REGS_OUT();
   3792 }
   3793 
   3794 void sub_47045AC0(void) {
   3795     int _fpu_cmp = 0;
   3796     uint32_t _cf = 0;
   3797     int _df = 1;
   3798     uint32_t _flag_k = FK_NONE;
   3799     uint32_t _flag_a = 0, _flag_b = 0;
   3800     uint32_t _itail_tgt = 0;
   3801     RECOMP_REGS_LOCALS
   3802     RECOMP_ENTER(0x47045AC0u);
   3803 
   3804 L_47045AC0:
   3805     MEM32(0x4710E790) = 0x47104A00u; /* 0x47045AC0: mov dword ptr [0x4710e790], 0x47104a00 */
   3806     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045ACA: ret  */
   3807     RECOMP_REGS_OUT();
   3808 }
   3809 
   3810 void sub_47045AD0(void) {
   3811     int _fpu_cmp = 0;
   3812     uint32_t _cf = 0;
   3813     int _df = 1;
   3814     uint32_t _flag_k = FK_NONE;
   3815     uint32_t _flag_a = 0, _flag_b = 0;
   3816     uint32_t _itail_tgt = 0;
   3817     RECOMP_REGS_LOCALS
   3818     RECOMP_ENTER(0x47045AD0u);
   3819 
   3820 L_47045AD0:
   3821     MEM32(0x4710E78C) = 0x47104A70u; /* 0x47045AD0: mov dword ptr [0x4710e78c], 0x47104a70 */
   3822     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045ADA: ret  */
   3823     RECOMP_REGS_OUT();
   3824 }
   3825 
   3826 void sub_47045AE0(void) {
   3827     int _fpu_cmp = 0;
   3828     uint32_t _cf = 0;
   3829     int _df = 1;
   3830     uint32_t _flag_k = FK_NONE;
   3831     uint32_t _flag_a = 0, _flag_b = 0;
   3832     uint32_t _itail_tgt = 0;
   3833     RECOMP_REGS_LOCALS
   3834     RECOMP_ENTER(0x47045AE0u);
   3835 
   3836 L_47045AE0:
   3837     MEM32(0x4710E7A8) = 0x47104B6Cu; /* 0x47045AE0: mov dword ptr [0x4710e7a8], 0x47104b6c */
   3838     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045AEA: ret  */
   3839     RECOMP_REGS_OUT();
   3840 }
   3841 
   3842 void sub_47045AF0(void) {
   3843     int _fpu_cmp = 0;
   3844     uint32_t _cf = 0;
   3845     int _df = 1;
   3846     uint32_t _flag_k = FK_NONE;
   3847     uint32_t _flag_a = 0, _flag_b = 0;
   3848     uint32_t _itail_tgt = 0;
   3849     RECOMP_REGS_LOCALS
   3850     RECOMP_ENTER(0x47045AF0u);
   3851 
   3852 L_47045AF0:
   3853     MEM32(0x4710E780) = 0x47104BA0u; /* 0x47045AF0: mov dword ptr [0x4710e780], 0x47104ba0 */
   3854     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045AFA: ret  */
   3855     RECOMP_REGS_OUT();
   3856 }
   3857 
   3858 void sub_47045B00(void) {
   3859     int _fpu_cmp = 0;
   3860     uint32_t _cf = 0;
   3861     int _df = 1;
   3862     uint32_t _flag_k = FK_NONE;
   3863     uint32_t _flag_a = 0, _flag_b = 0;
   3864     uint32_t _itail_tgt = 0;
   3865     RECOMP_REGS_LOCALS
   3866     RECOMP_ENTER(0x47045B00u);
   3867 
   3868 L_47045B00:
   3869     MEM32(0x4710E7A0) = 0x47104BD4u; /* 0x47045B00: mov dword ptr [0x4710e7a0], 0x47104bd4 */
   3870     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045B0A: ret  */
   3871     RECOMP_REGS_OUT();
   3872 }
   3873 
   3874 void sub_47045B10(void) {
   3875     int _fpu_cmp = 0;
   3876     uint32_t _cf = 0;
   3877     int _df = 1;
   3878     uint32_t _flag_k = FK_NONE;
   3879     uint32_t _flag_a = 0, _flag_b = 0;
   3880     uint32_t _itail_tgt = 0;
   3881     RECOMP_REGS_LOCALS
   3882     RECOMP_ENTER(0x47045B10u);
   3883 
   3884 L_47045B10:
   3885     MEM32(0x4710E79C) = 0x471050FCu; /* 0x47045B10: mov dword ptr [0x4710e79c], 0x471050fc */
   3886     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045B1A: ret  */
   3887     RECOMP_REGS_OUT();
   3888 }
   3889 
   3890 void sub_47045B20(void) {
   3891     int _fpu_cmp = 0;
   3892     uint32_t _cf = 0;
   3893     int _df = 1;
   3894     uint32_t _flag_k = FK_NONE;
   3895     uint32_t _flag_a = 0, _flag_b = 0;
   3896     uint32_t _itail_tgt = 0;
   3897     RECOMP_REGS_LOCALS
   3898     RECOMP_ENTER(0x47045B20u);
   3899 
   3900 L_47045B20:
   3901     MEM32(0x4710E798) = 0x47104C0Cu; /* 0x47045B20: mov dword ptr [0x4710e798], 0x47104c0c */
   3902     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045B2A: ret  */
   3903     RECOMP_REGS_OUT();
   3904 }
   3905 
   3906 void sub_47045B30(void) {
   3907     int _fpu_cmp = 0;
   3908     uint32_t _cf = 0;
   3909     int _df = 1;
   3910     uint32_t _flag_k = FK_NONE;
   3911     uint32_t _flag_a = 0, _flag_b = 0;
   3912     uint32_t _itail_tgt = 0;
   3913     RECOMP_REGS_LOCALS
   3914     RECOMP_ENTER(0x47045B30u);
   3915 
   3916 L_47045B30:
   3917     MEM32(0x4710E788) = 0x47105158u; /* 0x47045B30: mov dword ptr [0x4710e788], 0x47105158 */
   3918     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045B3A: ret  */
   3919     RECOMP_REGS_OUT();
   3920 }
   3921 
   3922 void sub_47045B40(void) {
   3923     int _fpu_cmp = 0;
   3924     uint32_t _cf = 0;
   3925     int _df = 1;
   3926     uint32_t _flag_k = FK_NONE;
   3927     uint32_t _flag_a = 0, _flag_b = 0;
   3928     uint32_t _itail_tgt = 0;
   3929     RECOMP_REGS_LOCALS
   3930     RECOMP_ENTER(0x47045B40u);
   3931 
   3932 L_47045B40:
   3933     MEM32(0x4710E778) = 0x4710518Cu; /* 0x47045B40: mov dword ptr [0x4710e778], 0x4710518c */
   3934     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045B4A: ret  */
   3935     RECOMP_REGS_OUT();
   3936 }
   3937 
   3938 void sub_47045B50(void) {
   3939     int _fpu_cmp = 0;
   3940     uint32_t _cf = 0;
   3941     int _df = 1;
   3942     uint32_t _flag_k = FK_NONE;
   3943     uint32_t _flag_a = 0, _flag_b = 0;
   3944     uint32_t _itail_tgt = 0;
   3945     RECOMP_REGS_LOCALS
   3946     RECOMP_ENTER(0x47045B50u);
   3947 
   3948 L_47045B50:
   3949     MEM32(0x4710E7A4) = 0x471051ECu; /* 0x47045B50: mov dword ptr [0x4710e7a4], 0x471051ec */
   3950     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045B5A: ret  */
   3951     RECOMP_REGS_OUT();
   3952 }
   3953 
   3954 void sub_47045B60(void) {
   3955     int _fpu_cmp = 0;
   3956     uint32_t _cf = 0;
   3957     int _df = 1;
   3958     uint32_t _flag_k = FK_NONE;
   3959     uint32_t _flag_a = 0, _flag_b = 0;
   3960     uint32_t _itail_tgt = 0;
   3961     RECOMP_REGS_LOCALS
   3962     RECOMP_ENTER(0x47045B60u);
   3963 
   3964 L_47045B60:
   3965     MEM32(0x4710E794) = 0x47105224u; /* 0x47045B60: mov dword ptr [0x4710e794], 0x47105224 */
   3966     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045B6A: ret  */
   3967     RECOMP_REGS_OUT();
   3968 }
   3969 
   3970 void sub_47045B70(void) {
   3971     int _fpu_cmp = 0;
   3972     uint32_t _cf = 0;
   3973     int _df = 1;
   3974     uint32_t _flag_k = FK_NONE;
   3975     uint32_t _flag_a = 0, _flag_b = 0;
   3976     uint32_t _itail_tgt = 0;
   3977     RECOMP_REGS_LOCALS
   3978     RECOMP_ENTER(0x47045B70u);
   3979 
   3980 L_47045B70:
   3981     PUSH32(esp, 0); /* 0x47045B70: push 0 */
   3982     PUSH32(esp, 0); /* 0x47045B72: push 0 */
   3983     RECOMP_ICALL(0x47045BB0u); /* 0x47045B74: call 0x47045bb0 */ /* not lifted */
   3984     RECOMP_FLAGS_IN();
   3985     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045B79: ret  */
   3986     RECOMP_REGS_OUT();
   3987 }
   3988 
   3989 void sub_47045B80(void) {
   3990     int _fpu_cmp = 0;
   3991     uint32_t _cf = 0;
   3992     int _df = 1;
   3993     uint32_t _flag_k = FK_NONE;
   3994     uint32_t _flag_a = 0, _flag_b = 0;
   3995     uint32_t _itail_tgt = 0;
   3996     RECOMP_REGS_LOCALS
   3997     RECOMP_ENTER(0x47045B80u);
   3998 
   3999 L_47045B80:
   4000     edx = MEM32(esp + 0x4); /* 0x47045B80: mov edx, dword ptr [esp + 4] */
   4001     eax = MEM32(ecx); /* 0x47045B84: mov eax, dword ptr [ecx] */
   4002     PUSH32(esp, 2); /* 0x47045B86: push 2 */
   4003     PUSH32(esp, edx); /* 0x47045B88: push edx */
   4004     RECOMP_ICALL(MEM32(eax + 0xFC)); /* 0x47045B89: call dword ptr [eax + 0xfc] */
   4005     RECOMP_FLAGS_IN();
   4006     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47045B8F: ret 4 */
   4007     RECOMP_REGS_OUT();
   4008 }
   4009 
   4010 void sub_47045BA0(void) {
   4011     int _fpu_cmp = 0;
   4012     uint32_t _cf = 0;
   4013     int _df = 1;
   4014     uint32_t _flag_k = FK_NONE;
   4015     uint32_t _flag_a = 0, _flag_b = 0;
   4016     uint32_t _itail_tgt = 0;
   4017     RECOMP_REGS_LOCALS
   4018     RECOMP_ENTER(0x47045BA0u);
   4019 
   4020 L_47045BA0:
   4021     MEM32(0x4710E77C) = 0x471085C4u; /* 0x47045BA0: mov dword ptr [0x4710e77c], 0x471085c4 */
   4022     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045BAA: ret  */
   4023     RECOMP_REGS_OUT();
   4024 }
   4025 
   4026 void sub_47045BB0(void) {
   4027     int _fpu_cmp = 0;
   4028     uint32_t _cf = 0;
   4029     int _df = 1;
   4030     uint32_t _flag_k = FK_NONE;
   4031     uint32_t _flag_a = 0, _flag_b = 0;
   4032     uint32_t _itail_tgt = 0;
   4033     RECOMP_REGS_LOCALS
   4034     RECOMP_ENTER(0x47045BB0u);
   4035 
   4036 L_47045BB0:
   4037     eax = MEM32(esp + 0x8); /* 0x47045BB0: mov eax, dword ptr [esp + 8] */
   4038     PUSH32(esp, esi); /* 0x47045BB4: push esi */
   4039     esi = ecx; /* 0x47045BB5: mov esi, ecx */
   4040     ecx = MEM32(esp + 0x8); /* 0x47045BB7: mov ecx, dword ptr [esp + 8] */
   4041     PUSH32(esp, eax); /* 0x47045BBB: push eax */
   4042     PUSH32(esp, ecx); /* 0x47045BBC: push ecx */
   4043     ecx = esi; /* 0x47045BBD: mov ecx, esi */
   4044     RECOMP_ICALL(0x4709D010u); /* 0x47045BBF: call 0x4709d010 */ /* not lifted */
   4045     RECOMP_FLAGS_IN();
   4046     MEM32(esi) = 0x470AD690u; /* 0x47045BC4: mov dword ptr [esi], 0x470ad690 */
   4047     eax = esi; /* 0x47045BCA: mov eax, esi */
   4048     esi = POP32_VAL(esp); /* 0x47045BCC: pop esi */
   4049     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47045BCD: ret 8 */
   4050     RECOMP_REGS_OUT();
   4051 }
   4052 
   4053 void sub_47045BD0(void) {
   4054     int _fpu_cmp = 0;
   4055     uint32_t _cf = 0;
   4056     int _df = 1;
   4057     uint32_t _flag_k = FK_NONE;
   4058     uint32_t _flag_a = 0, _flag_b = 0;
   4059     uint32_t _itail_tgt = 0;
   4060     RECOMP_REGS_LOCALS
   4061     RECOMP_ENTER(0x47045BD0u);
   4062 
   4063 L_47045BD0:
   4064     PUSH32(esp, ebx); /* 0x47045BD0: push ebx */
   4065     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47045BD1: mov bl, byte ptr [esp + 8] */
   4066     /* test LO8(ebx), 2 */ /* 0x47045BD5: test bl, 2 */
   4067     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4068     _cf = 0;
   4069     _flag_k = FK_NARROW(FK_TEST, 24);
   4070     PUSH32(esp, esi); /* 0x47045BD8: push esi */
   4071     esi = ecx; /* 0x47045BD9: mov esi, ecx */
   4072     if (TEST_Z(_flag_a, _flag_b)) goto L_47045C0B; /* 0x47045BDB: je 0x47045c0b */
   4073 L_47045BDD:
   4074     eax = MEM32(esi + (-0x4)); /* 0x47045BDD: mov eax, dword ptr [esi - 4] */
   4075     PUSH32(esp, edi); /* 0x47045BE0: push edi */
   4076     PUSH32(esp, 0x47045C60u); /* 0x47045BE1: push 0x47045c60 */
   4077     edi = esi + (-0x4); /* 0x47045BE6: lea edi, [esi - 4] */
   4078     PUSH32(esp, eax); /* 0x47045BE9: push eax */
   4079     PUSH32(esp, 0xC4u); /* 0x47045BEA: push 0xc4 */
   4080     PUSH32(esp, esi); /* 0x47045BEF: push esi */
   4081     RECOMP_ICALL(0x470A32EBu); /* 0x47045BF0: call 0x470a32eb */ /* not lifted */
   4082     RECOMP_FLAGS_IN();
   4083     /* test LO8(ebx), 1 */ /* 0x47045BF5: test bl, 1 */
   4084     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4085     _cf = 0;
   4086     _flag_k = FK_NARROW(FK_TEST, 24);
   4087     if (TEST_Z(_flag_a, _flag_b)) goto L_47045C03; /* 0x47045BF8: je 0x47045c03 */
   4088 L_47045BFA:
   4089     PUSH32(esp, edi); /* 0x47045BFA: push edi */
   4090     RECOMP_ICALL(0x470A32A2u); /* 0x47045BFB: call 0x470a32a2 */ /* not lifted */
   4091     RECOMP_FLAGS_IN();
   4092     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4094     esp = esp + 4; /* 0x47045C00: add esp, 4 */
   4095     _flag_k = FK_ADD;
   4096 L_47045C03:
   4097     eax = edi; /* 0x47045C03: mov eax, edi */
   4098     edi = POP32_VAL(esp); /* 0x47045C05: pop edi */
   4099     esi = POP32_VAL(esp); /* 0x47045C06: pop esi */
   4100     ebx = POP32_VAL(esp); /* 0x47045C07: pop ebx */
   4101     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47045C08: ret 4 */
   4102 L_47045C0B:
   4103     ecx = esi; /* 0x47045C0B: mov ecx, esi */
   4104     RECOMP_ICALL(0x47045C60u); /* 0x47045C0D: call 0x47045c60 */ /* not lifted */
   4105     RECOMP_FLAGS_IN();
   4106     /* test LO8(ebx), 1 */ /* 0x47045C12: test bl, 1 */
   4107     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4108     _cf = 0;
   4109     _flag_k = FK_NARROW(FK_TEST, 24);
   4110     if (TEST_Z(_flag_a, _flag_b)) goto L_47045C20; /* 0x47045C15: je 0x47045c20 */
   4111 L_47045C17:
   4112     PUSH32(esp, esi); /* 0x47045C17: push esi */
   4113     RECOMP_ICALL(0x470A32A2u); /* 0x47045C18: call 0x470a32a2 */ /* not lifted */
   4114     RECOMP_FLAGS_IN();
   4115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4117     esp = esp + 4; /* 0x47045C1D: add esp, 4 */
   4118     _flag_k = FK_ADD;
   4119 L_47045C20:
   4120     eax = esi; /* 0x47045C20: mov eax, esi */
   4121     esi = POP32_VAL(esp); /* 0x47045C22: pop esi */
   4122     ebx = POP32_VAL(esp); /* 0x47045C23: pop ebx */
   4123     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47045C24: ret 4 */
   4124     RECOMP_REGS_OUT();
   4125 }
   4126 
   4127 void sub_47045C30(void) {
   4128     int _fpu_cmp = 0;
   4129     uint32_t _cf = 0;
   4130     int _df = 1;
   4131     uint32_t _flag_k = FK_NONE;
   4132     uint32_t _flag_a = 0, _flag_b = 0;
   4133     uint32_t _itail_tgt = 0;
   4134     RECOMP_REGS_LOCALS
   4135     RECOMP_ENTER(0x47045C30u);
   4136 
   4137 L_47045C30:
   4138     eax = MEM32(esp + 0x10); /* 0x47045C30: mov eax, dword ptr [esp + 0x10] */
   4139     edx = MEM32(esp + 0x8); /* 0x47045C34: mov edx, dword ptr [esp + 8] */
   4140     PUSH32(esp, esi); /* 0x47045C38: push esi */
   4141     PUSH32(esp, eax); /* 0x47045C39: push eax */
   4142     eax = MEM32(esp + 0xC); /* 0x47045C3A: mov eax, dword ptr [esp + 0xc] */
   4143     esi = ecx; /* 0x47045C3E: mov esi, ecx */
   4144     ecx = MEM32(esp + 0x14); /* 0x47045C40: mov ecx, dword ptr [esp + 0x14] */
   4145     PUSH32(esp, ecx); /* 0x47045C44: push ecx */
   4146     PUSH32(esp, edx); /* 0x47045C45: push edx */
   4147     PUSH32(esp, eax); /* 0x47045C46: push eax */
   4148     ecx = esi; /* 0x47045C47: mov ecx, esi */
   4149     RECOMP_ICALL(0x4709D200u); /* 0x47045C49: call 0x4709d200 */ /* not lifted */
   4150     RECOMP_FLAGS_IN();
   4151     MEM32(esi) = 0x470AD690u; /* 0x47045C4E: mov dword ptr [esi], 0x470ad690 */
   4152     eax = esi; /* 0x47045C54: mov eax, esi */
   4153     esi = POP32_VAL(esp); /* 0x47045C56: pop esi */
   4154     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47045C57: ret 0x10 */
   4155     RECOMP_REGS_OUT();
   4156 }
   4157 
   4158 void sub_47045C60(void) {
   4159     int _fpu_cmp = 0;
   4160     uint32_t _cf = 0;
   4161     int _df = 1;
   4162     uint32_t _flag_k = FK_NONE;
   4163     uint32_t _flag_a = 0, _flag_b = 0;
   4164     uint32_t _itail_tgt = 0;
   4165     RECOMP_REGS_LOCALS
   4166     RECOMP_ENTER(0x47045C60u);
   4167 
   4168 L_47045C60:
   4169     MEM32(ecx) = 0x470AD690u; /* 0x47045C60: mov dword ptr [ecx], 0x470ad690 */
   4170     goto L_4709DB10; /* 0x47045C66: jmp 0x4709db10 */
   4171 L_4709DB10:
   4172     PUSH32(esp, 0xFFFFFFFFu); /* 0x4709DB10: push -1 */
   4173     PUSH32(esp, 0x470AB9D1u); /* 0x4709DB12: push 0x470ab9d1 */
   4174     eax = MEM32(FS_BASE + (0)); /* 0x4709DB17: mov eax, dword ptr fs:[0] */
   4175     PUSH32(esp, eax); /* 0x4709DB1D: push eax */
   4176     MEM32(FS_BASE + (0)) = esp; /* 0x4709DB1E: mov dword ptr fs:[0], esp */
   4177     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4179     esp = esp - 0xCu; /* 0x4709DB25: sub esp, 0xc */
   4180     _flag_k = FK_CMP;
   4181     PUSH32(esp, ebx); /* 0x4709DB28: push ebx */
   4182     PUSH32(esp, ebp); /* 0x4709DB29: push ebp */
   4183     PUSH32(esp, esi); /* 0x4709DB2A: push esi */
   4184     esi = ecx; /* 0x4709DB2B: mov esi, ecx */
   4185     PUSH32(esp, edi); /* 0x4709DB2D: push edi */
   4186     MEM32(esp + 0x10) = esi; /* 0x4709DB2E: mov dword ptr [esp + 0x10], esi */
   4187     MEM32(esi) = 0x470B012Cu; /* 0x4709DB32: mov dword ptr [esi], 0x470b012c */
   4188     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4189     ebx = 0; /* 0x4709DB38: xor ebx, ebx */
   4190     _cf = 0;
   4191     _flag_k = FK_TEST;
   4192     MEM32(esp + 0x24) = ebx; /* 0x4709DB3A: mov dword ptr [esp + 0x24], ebx */
   4193     eax = esi + 0x20; /* 0x4709DB3E: lea eax, [esi + 0x20] */
   4194     PUSH32(esp, eax); /* 0x4709DB41: push eax */
   4195     MEM32(esp + 0x18) = eax; /* 0x4709DB42: mov dword ptr [esp + 0x18], eax */
   4196     MEM32(esp + 0x1C) = ebx; /* 0x4709DB46: mov dword ptr [esp + 0x1c], ebx */
   4197     RECOMP_ICALL(0x47002030u); /* 0x4709DB4A: call 0x47002030 */ /* not lifted */
   4198     RECOMP_FLAGS_IN();
   4199     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4200     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4201     esp = esp + 4; /* 0x4709DB4F: add esp, 4 */
   4202     _flag_k = FK_ADD;
   4203     MEM32(esp + 0x18) = eax; /* 0x4709DB52: mov dword ptr [esp + 0x18], eax */
   4204     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   4205     edi = edi | 0xFFFFFFFFu; /* 0x4709DB56: or edi, 0xffffffff */
   4206     _cf = 0;
   4207     _flag_k = FK_TEST;
   4208     /* cmp eax, edi */ /* 0x4709DB59: cmp eax, edi */
   4209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4211     _flag_k = FK_CMP;
   4212     MEM8(esp + 0x24) = (uint8_t)(8); /* 0x4709DB5B: mov byte ptr [esp + 0x24], 8 */
   4213     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DB6A; /* 0x4709DB60: je 0x4709db6a */
   4214 L_4709DB62:
   4215     /* cmp MEM32(esi + 0xBC), ebx */ /* 0x4709DB62: cmp dword ptr [esi + 0xbc], ebx */
   4216     _flag_a = (uint32_t)(MEM32(esi + 0xBC)); _flag_b = (uint32_t)(ebx);
   4217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4218     _flag_k = FK_CMP;
   4219     if (CMP_NE(_flag_a, _flag_b)) goto L_4709DB7A; /* 0x4709DB68: jne 0x4709db7a */
   4220 L_4709DB6A:
   4221     ecx = esp + 0x14; /* 0x4709DB6A: lea ecx, [esp + 0x14] */
   4222     MEM8(esp + 0x24) = (uint8_t)(7); /* 0x4709DB6E: mov byte ptr [esp + 0x24], 7 */
   4223     RECOMP_ICALL(0x47042730u); /* 0x4709DB73: call 0x47042730 */ /* not lifted */
   4224     RECOMP_FLAGS_IN();
   4225     goto L_4709DBA4; /* 0x4709DB78: jmp 0x4709dba4 */
   4226 L_4709DB7A:
   4227     ecx = esi + 0x4C; /* 0x4709DB7A: lea ecx, [esi + 0x4c] */
   4228     MEM32(esi + 0xBC) = ebx; /* 0x4709DB7D: mov dword ptr [esi + 0xbc], ebx */
   4229     RECOMP_ICALL(0x4709BAF0u); /* 0x4709DB83: call 0x4709baf0 */ /* not lifted */
   4230     RECOMP_FLAGS_IN();
   4231     /* cmp MEM32(esp + 0x18), edi */ /* 0x4709DB88: cmp dword ptr [esp + 0x18], edi */
   4232     _flag_a = (uint32_t)(MEM32(esp + 0x18)); _flag_b = (uint32_t)(edi);
   4233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4234     _flag_k = FK_CMP;
   4235     MEM8(esp + 0x24) = (uint8_t)(7); /* 0x4709DB8C: mov byte ptr [esp + 0x24], 7 */
   4236     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DBA4; /* 0x4709DB91: je 0x4709dba4 */
   4237 L_4709DB93:
   4238     eax = MEM32(esp + 0x14); /* 0x4709DB93: mov eax, dword ptr [esp + 0x14] */
   4239     PUSH32(esp, eax); /* 0x4709DB97: push eax */
   4240     MEM32(esp + 0x1C) = edi; /* 0x4709DB98: mov dword ptr [esp + 0x1c], edi */
   4241     RECOMP_ICALL(0x47002210u); /* 0x4709DB9C: call 0x47002210 */ /* not lifted */
   4242     RECOMP_FLAGS_IN();
   4243     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4244     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4245     esp = esp + 4; /* 0x4709DBA1: add esp, 4 */
   4246     _flag_k = FK_ADD;
   4247 L_4709DBA4:
   4248     edx = MEM32(esi + 0x4C); /* 0x4709DBA4: mov edx, dword ptr [esi + 0x4c] */
   4249     edi = esi + 0x4C; /* 0x4709DBA7: lea edi, [esi + 0x4c] */
   4250     ecx = edi; /* 0x4709DBAA: mov ecx, edi */
   4251     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x4709DBAC: call dword ptr [edx + 8] */
   4252     RECOMP_FLAGS_IN();
   4253     /* cmp MEM32(esi + 0x10), ebx */ /* 0x4709DBAF: cmp dword ptr [esi + 0x10], ebx */
   4254     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx);
   4255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4256     _flag_k = FK_CMP;
   4257     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DBC7; /* 0x4709DBB2: je 0x4709dbc7 */
   4258 L_4709DBB4:
   4259     ecx = MEM32(esi + 0xC); /* 0x4709DBB4: mov ecx, dword ptr [esi + 0xc] */
   4260     /* cmp ecx, ebx */ /* 0x4709DBB7: cmp ecx, ebx */
   4261     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4263     _flag_k = FK_CMP;
   4264     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DBC1; /* 0x4709DBB9: je 0x4709dbc1 */
   4265 L_4709DBBB:
   4266     eax = MEM32(ecx); /* 0x4709DBBB: mov eax, dword ptr [ecx] */
   4267     PUSH32(esp, 1); /* 0x4709DBBD: push 1 */
   4268     RECOMP_ICALL(MEM32(eax)); /* 0x4709DBBF: call dword ptr [eax] */
   4269     RECOMP_FLAGS_IN();
   4270 L_4709DBC1:
   4271     MEM32(esi + 0xC) = ebx; /* 0x4709DBC1: mov dword ptr [esi + 0xc], ebx */
   4272     MEM32(esi + 0x10) = ebx; /* 0x4709DBC4: mov dword ptr [esi + 0x10], ebx */
   4273 L_4709DBC7:
   4274     /* cmp MEM32(esi + 0x8), ebx */ /* 0x4709DBC7: cmp dword ptr [esi + 8], ebx */
   4275     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(ebx);
   4276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4277     _flag_k = FK_CMP;
   4278     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DBDE; /* 0x4709DBCA: je 0x4709dbde */
   4279 L_4709DBCC:
   4280     eax = MEM32(esi + 0x4); /* 0x4709DBCC: mov eax, dword ptr [esi + 4] */
   4281     PUSH32(esp, eax); /* 0x4709DBCF: push eax */
   4282     RECOMP_ICALL(0x470A32A2u); /* 0x4709DBD0: call 0x470a32a2 */ /* not lifted */
   4283     RECOMP_FLAGS_IN();
   4284     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4285     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4286     esp = esp + 4; /* 0x4709DBD5: add esp, 4 */
   4287     _flag_k = FK_ADD;
   4288     MEM32(esi + 0x4) = ebx; /* 0x4709DBD8: mov dword ptr [esi + 4], ebx */
   4289     MEM32(esi + 0x8) = ebx; /* 0x4709DBDB: mov dword ptr [esi + 8], ebx */
   4290 L_4709DBDE:
   4291     /* cmp MEM32(esi + 0x1C), ebx */ /* 0x4709DBDE: cmp dword ptr [esi + 0x1c], ebx */
   4292     _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(ebx);
   4293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4294     _flag_k = FK_CMP;
   4295     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DBF6; /* 0x4709DBE1: je 0x4709dbf6 */
   4296 L_4709DBE3:
   4297     ecx = MEM32(esi + 0x18); /* 0x4709DBE3: mov ecx, dword ptr [esi + 0x18] */
   4298     /* cmp ecx, ebx */ /* 0x4709DBE6: cmp ecx, ebx */
   4299     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4301     _flag_k = FK_CMP;
   4302     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DBF0; /* 0x4709DBE8: je 0x4709dbf0 */
   4303 L_4709DBEA:
   4304     edx = MEM32(ecx); /* 0x4709DBEA: mov edx, dword ptr [ecx] */
   4305     PUSH32(esp, 1); /* 0x4709DBEC: push 1 */
   4306     RECOMP_ICALL(MEM32(edx)); /* 0x4709DBEE: call dword ptr [edx] */
   4307     RECOMP_FLAGS_IN();
   4308 L_4709DBF0:
   4309     MEM32(esi + 0x18) = ebx; /* 0x4709DBF0: mov dword ptr [esi + 0x18], ebx */
   4310     MEM32(esi + 0x1C) = ebx; /* 0x4709DBF3: mov dword ptr [esi + 0x1c], ebx */
   4311 L_4709DBF6:
   4312     ecx = esi + 0x9C; /* 0x4709DBF6: lea ecx, [esi + 0x9c] */
   4313     MEM8(esp + 0x24) = (uint8_t)(6); /* 0x4709DBFC: mov byte ptr [esp + 0x24], 6 */
   4314     RECOMP_ICALL(0x47086020u); /* 0x4709DC01: call 0x47086020 */ /* not lifted */
   4315     RECOMP_FLAGS_IN();
   4316     ecx = esi + 0x90; /* 0x4709DC06: lea ecx, [esi + 0x90] */
   4317     MEM8(esp + 0x24) = (uint8_t)(5); /* 0x4709DC0C: mov byte ptr [esp + 0x24], 5 */
   4318     RECOMP_ICALL(0x4702A7B0u); /* 0x4709DC11: call 0x4702a7b0 */ /* not lifted */
   4319     RECOMP_FLAGS_IN();
   4320     ecx = esi + 0x88; /* 0x4709DC16: lea ecx, [esi + 0x88] */
   4321     MEM8(esp + 0x24) = (uint8_t)(4); /* 0x4709DC1C: mov byte ptr [esp + 0x24], 4 */
   4322     RECOMP_ICALL(0x47086020u); /* 0x4709DC21: call 0x47086020 */ /* not lifted */
   4323     RECOMP_FLAGS_IN();
   4324     ecx = esi + 0x80; /* 0x4709DC26: lea ecx, [esi + 0x80] */
   4325     MEM8(esp + 0x24) = (uint8_t)(3); /* 0x4709DC2C: mov byte ptr [esp + 0x24], 3 */
   4326     RECOMP_ICALL(0x47086020u); /* 0x4709DC31: call 0x47086020 */ /* not lifted */
   4327     RECOMP_FLAGS_IN();
   4328     eax = MEM32(edi + 0xC); /* 0x4709DC36: mov eax, dword ptr [edi + 0xc] */
   4329     PUSH32(esp, eax); /* 0x4709DC39: push eax */
   4330     MEM32(edi) = 0x470ACA78u; /* 0x4709DC3A: mov dword ptr [edi], 0x470aca78 */
   4331     RECOMP_ICALL(0x470A32A2u); /* 0x4709DC40: call 0x470a32a2 */ /* not lifted */
   4332     RECOMP_FLAGS_IN();
   4333     eax = MEM32(edi + 0x10); /* 0x4709DC45: mov eax, dword ptr [edi + 0x10] */
   4334     PUSH32(esp, eax); /* 0x4709DC48: push eax */
   4335     RECOMP_ICALL(0x470A32A2u); /* 0x4709DC49: call 0x470a32a2 */ /* not lifted */
   4336     RECOMP_FLAGS_IN();
   4337     eax = MEM32(edi + 0x20); /* 0x4709DC4E: mov eax, dword ptr [edi + 0x20] */
   4338     PUSH32(esp, eax); /* 0x4709DC51: push eax */
   4339     RECOMP_ICALL(0x470A32A2u); /* 0x4709DC52: call 0x470a32a2 */ /* not lifted */
   4340     RECOMP_FLAGS_IN();
   4341     edi = MEM32(edi + 0x18); /* 0x4709DC57: mov edi, dword ptr [edi + 0x18] */
   4342     PUSH32(esp, edi); /* 0x4709DC5A: push edi */
   4343     RECOMP_ICALL(0x470A32A2u); /* 0x4709DC5B: call 0x470a32a2 */ /* not lifted */
   4344     RECOMP_FLAGS_IN();
   4345     edi = esi + 0x40; /* 0x4709DC60: lea edi, [esi + 0x40] */
   4346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4348     esp = esp + 0x10u; /* 0x4709DC63: add esp, 0x10 */
   4349     _flag_k = FK_ADD;
   4350     MEM32(esp + 0x14) = edi; /* 0x4709DC66: mov dword ptr [esp + 0x14], edi */
   4351     MEM32(edi) = 0x470B0274u; /* 0x4709DC6A: mov dword ptr [edi], 0x470b0274 */
   4352     /* cmp MEM32(edi + 0x8), ebx */ /* 0x4709DC70: cmp dword ptr [edi + 8], ebx */
   4353     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ebx);
   4354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4355     _flag_k = FK_CMP;
   4356     MEM8(esp + 0x24) = (uint8_t)(9); /* 0x4709DC73: mov byte ptr [esp + 0x24], 9 */
   4357     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DC91; /* 0x4709DC78: je 0x4709dc91 */
   4358 L_4709DC7A:
   4359     ebp = MEM32(edi + 0x4); /* 0x4709DC7A: mov ebp, dword ptr [edi + 4] */
   4360     /* cmp ebp, ebx */ /* 0x4709DC7D: cmp ebp, ebx */
   4361     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx);
   4362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4363     _flag_k = FK_CMP;
   4364     if (CMP_EQ(_flag_a, _flag_b)) goto L_4709DC91; /* 0x4709DC7F: je 0x4709dc91 */
   4365 L_4709DC81:
   4366     ecx = ebp; /* 0x4709DC81: mov ecx, ebp */
   4367     RECOMP_ICALL(0x47086800u); /* 0x4709DC83: call 0x47086800 */ /* not lifted */
   4368     RECOMP_FLAGS_IN();
   4369     PUSH32(esp, ebp); /* 0x4709DC88: push ebp */
   4370     RECOMP_ICALL(0x470A32A2u); /* 0x4709DC89: call 0x470a32a2 */ /* not lifted */
   4371     RECOMP_FLAGS_IN();
   4372     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4373     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4374     esp = esp + 4; /* 0x4709DC8E: add esp, 4 */
   4375     _flag_k = FK_ADD;
   4376 L_4709DC91:
   4377     ecx = edi; /* 0x4709DC91: mov ecx, edi */
   4378     MEM8(esp + 0x24) = (uint8_t)(1); /* 0x4709DC93: mov byte ptr [esp + 0x24], 1 */
   4379     RECOMP_ICALL(0x47085660u); /* 0x4709DC98: call 0x47085660 */ /* not lifted */
   4380     RECOMP_FLAGS_IN();
   4381     ecx = esi + 0x20; /* 0x4709DC9D: lea ecx, [esi + 0x20] */
   4382     MEM8(esp + 0x24) = (uint8_t)(LO8(ebx)); /* 0x4709DCA0: mov byte ptr [esp + 0x24], bl */
   4383     RECOMP_ICALL(0x47086800u); /* 0x4709DCA4: call 0x47086800 */ /* not lifted */
   4384     RECOMP_FLAGS_IN();
   4385     ecx = MEM32(esp + 0x1C); /* 0x4709DCA9: mov ecx, dword ptr [esp + 0x1c] */
   4386     edi = POP32_VAL(esp); /* 0x4709DCAD: pop edi */
   4387     MEM32(esi) = 0x470AC8C8u; /* 0x4709DCAE: mov dword ptr [esi], 0x470ac8c8 */
   4388     esi = POP32_VAL(esp); /* 0x4709DCB4: pop esi */
   4389     ebp = POP32_VAL(esp); /* 0x4709DCB5: pop ebp */
   4390     ebx = POP32_VAL(esp); /* 0x4709DCB6: pop ebx */
   4391     MEM32(FS_BASE + (0)) = ecx; /* 0x4709DCB7: mov dword ptr fs:[0], ecx */
   4392     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   4393     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4394     esp = esp + 0x18u; /* 0x4709DCBE: add esp, 0x18 */
   4395     _flag_k = FK_ADD;
   4396     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709DCC1: ret  */
   4397     RECOMP_REGS_OUT();
   4398 }
   4399 
   4400 void sub_47045C70(void) {
   4401     int _fpu_cmp = 0;
   4402     uint32_t _cf = 0;
   4403     int _df = 1;
   4404     uint32_t _flag_k = FK_NONE;
   4405     uint32_t _flag_a = 0, _flag_b = 0;
   4406     uint32_t _itail_tgt = 0;
   4407     RECOMP_REGS_LOCALS
   4408     RECOMP_ENTER(0x47045C70u);
   4409 
   4410 L_47045C70:
   4411     PUSH32(esp, ebx); /* 0x47045C70: push ebx */
   4412     PUSH32(esp, ebp); /* 0x47045C71: push ebp */
   4413     PUSH32(esp, esi); /* 0x47045C72: push esi */
   4414     esi = ecx; /* 0x47045C73: mov esi, ecx */
   4415     ecx = MEM32(esi + 0x50); /* 0x47045C75: mov ecx, dword ptr [esi + 0x50] */
   4416     eax = MEM32(ecx); /* 0x47045C78: mov eax, dword ptr [ecx] */
   4417     PUSH32(esp, edi); /* 0x47045C7A: push edi */
   4418     RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47045C7B: call dword ptr [eax + 0x104] */
   4419     RECOMP_FLAGS_IN();
   4420     ebx = MEM32(0x470AC14C); /* 0x47045C81: mov ebx, dword ptr [0x470ac14c] */
   4421     edi = eax; /* 0x47045C87: mov edi, eax */
   4422     RECOMP_ICALL(ebx); /* 0x47045C89: call ebx */
   4423     RECOMP_FLAGS_IN();
   4424     /* cmp eax, edi */ /* 0x47045C8B: cmp eax, edi */
   4425     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4427     _flag_k = FK_CMP;
   4428     edi = MEM32(esi + 0x58); /* 0x47045C8D: mov edi, dword ptr [esi + 0x58] */
   4429     if (CMP_EQ(_flag_a, _flag_b)) goto L_47045C95; /* 0x47045C90: je 0x47045c95 */
   4430 L_47045C92:
   4431     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   4432     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4433     edi = edi + 4; /* 0x47045C92: add edi, 4 */
   4434     _flag_k = FK_ADD;
   4435 L_47045C95:
   4436     ecx = MEM32(esi + 0x50); /* 0x47045C95: mov ecx, dword ptr [esi + 0x50] */
   4437     edx = MEM32(ecx); /* 0x47045C98: mov edx, dword ptr [ecx] */
   4438     RECOMP_ICALL(MEM32(edx + 0x104)); /* 0x47045C9A: call dword ptr [edx + 0x104] */
   4439     RECOMP_FLAGS_IN();
   4440     ebp = eax; /* 0x47045CA0: mov ebp, eax */
   4441     RECOMP_ICALL(ebx); /* 0x47045CA2: call ebx */
   4442     RECOMP_FLAGS_IN();
   4443     /* cmp eax, ebp */ /* 0x47045CA4: cmp eax, ebp */
   4444     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   4445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4446     _flag_k = FK_CMP;
   4447     esi = MEM32(esi + 0x60); /* 0x47045CA6: mov esi, dword ptr [esi + 0x60] */
   4448     if (CMP_EQ(_flag_a, _flag_b)) goto L_47045CAC; /* 0x47045CA9: je 0x47045cac */
   4449 L_47045CAB:
   4450     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4451     esi = esi - 1; /* 0x47045CAB: dec esi */
   4452     _flag_k = FK_DEC;
   4453 L_47045CAC:
   4454     eax = MEM32(esp + 0x14); /* 0x47045CAC: mov eax, dword ptr [esp + 0x14] */
   4455     PUSH32(esp, 0xFFu); /* 0x47045CB0: push 0xff */
   4456     PUSH32(esp, eax); /* 0x47045CB5: push eax */
   4457     PUSH32(esp, 0); /* 0x47045CB6: push 0 */
   4458     PUSH32(esp, edi); /* 0x47045CB8: push edi */
   4459     PUSH32(esp, esi); /* 0x47045CB9: push esi */
   4460     RECOMP_ICALL(MEM32(0x470AC410)); /* 0x47045CBA: call dword ptr [0x470ac410] */
   4461     RECOMP_FLAGS_IN();
   4462     edi = POP32_VAL(esp); /* 0x47045CC0: pop edi */
   4463     esi = POP32_VAL(esp); /* 0x47045CC1: pop esi */
   4464     ebp = POP32_VAL(esp); /* 0x47045CC2: pop ebp */
   4465     ebx = POP32_VAL(esp); /* 0x47045CC3: pop ebx */
   4466     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47045CC4: ret 8 */
   4467     RECOMP_REGS_OUT();
   4468 }
   4469 
   4470 void sub_47045CD0(void) {
   4471     int _fpu_cmp = 0;
   4472     uint32_t _cf = 0;
   4473     int _df = 1;
   4474     uint32_t _flag_k = FK_NONE;
   4475     uint32_t _flag_a = 0, _flag_b = 0;
   4476     uint32_t _itail_tgt = 0;
   4477     RECOMP_REGS_LOCALS
   4478     RECOMP_ENTER(0x47045CD0u);
   4479 
   4480 L_47045CD0:
   4481     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   4482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4483     esp = esp - 0x1Cu; /* 0x47045CD0: sub esp, 0x1c */
   4484     _flag_k = FK_CMP;
   4485     PUSH32(esp, ebx); /* 0x47045CD3: push ebx */
   4486     PUSH32(esp, ebp); /* 0x47045CD4: push ebp */
   4487     PUSH32(esp, esi); /* 0x47045CD5: push esi */
   4488     PUSH32(esp, edi); /* 0x47045CD6: push edi */
   4489     edi = MEM32(0x470AC420); /* 0x47045CD7: mov edi, dword ptr [0x470ac420] */
   4490     PUSH32(esp, 1); /* 0x47045CDD: push 1 */
   4491     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4492     esi = 0; /* 0x47045CDF: xor esi, esi */
   4493     _cf = 0;
   4494     _flag_k = FK_TEST;
   4495     PUSH32(esp, esi); /* 0x47045CE1: push esi */
   4496     PUSH32(esp, esi); /* 0x47045CE2: push esi */
   4497     PUSH32(esp, esi); /* 0x47045CE3: push esi */
   4498     eax = esp + 0x20; /* 0x47045CE4: lea eax, [esp + 0x20] */
   4499     PUSH32(esp, eax); /* 0x47045CE8: push eax */
   4500     RECOMP_ICALL(edi); /* 0x47045CE9: call edi */
   4501     RECOMP_FLAGS_IN();
   4502     /* test eax, eax */ /* 0x47045CEB: test eax, eax */
   4503     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4504     _cf = 0;
   4505     _flag_k = FK_TEST;
   4506     if (TEST_Z(_flag_a, _flag_b)) goto L_47045D24; /* 0x47045CED: je 0x47045d24 */
   4507 L_47045CEF:
   4508     ebp = MEM32(0x470AC41C); /* 0x47045CEF: mov ebp, dword ptr [0x470ac41c] */
   4509     ebx = MEM32(0x470AC418); /* 0x47045CF5: mov ebx, dword ptr [0x470ac418] */
   4510 L_47045CFB:
   4511     ecx = esp + 0x10; /* 0x47045CFB: lea ecx, [esp + 0x10] */
   4512     PUSH32(esp, ecx); /* 0x47045CFF: push ecx */
   4513     RECOMP_ICALL(ebp); /* 0x47045D00: call ebp */
   4514     RECOMP_FLAGS_IN();
   4515     /* cmp MEM32(esp + 0x14), 0x12u */ /* 0x47045D02: cmp dword ptr [esp + 0x14], 0x12 */
   4516     _flag_a = (uint32_t)(MEM32(esp + 0x14)); _flag_b = (uint32_t)(0x12u);
   4517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4518     _flag_k = FK_CMP;
   4519     if (CMP_EQ(_flag_a, _flag_b)) goto L_47045D2E; /* 0x47045D07: je 0x47045d2e */
   4520 L_47045D09:
   4521     edx = esp + 0x10; /* 0x47045D09: lea edx, [esp + 0x10] */
   4522     PUSH32(esp, edx); /* 0x47045D0D: push edx */
   4523     RECOMP_ICALL(ebx); /* 0x47045D0E: call ebx */
   4524     RECOMP_FLAGS_IN();
   4525     PUSH32(esp, 1); /* 0x47045D10: push 1 */
   4526     PUSH32(esp, 0); /* 0x47045D12: push 0 */
   4527     PUSH32(esp, 0); /* 0x47045D14: push 0 */
   4528     PUSH32(esp, 0); /* 0x47045D16: push 0 */
   4529     eax = esp + 0x20; /* 0x47045D18: lea eax, [esp + 0x20] */
   4530     PUSH32(esp, eax); /* 0x47045D1C: push eax */
   4531     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4532     esi = esi + 1; /* 0x47045D1D: inc esi */
   4533     _flag_k = FK_INC;
   4534     RECOMP_ICALL(edi); /* 0x47045D1E: call edi */
   4535     RECOMP_FLAGS_IN();
   4536     /* test eax, eax */ /* 0x47045D20: test eax, eax */
   4537     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4538     _cf = 0;
   4539     _flag_k = FK_TEST;
   4540     RECOMP_BACKEDGE();
   4541     if (TEST_NZ(_flag_a, _flag_b)) goto L_47045CFB; /* 0x47045D22: jne 0x47045cfb */
   4542 L_47045D24:
   4543     edi = POP32_VAL(esp); /* 0x47045D24: pop edi */
   4544     eax = esi; /* 0x47045D25: mov eax, esi */
   4545     esi = POP32_VAL(esp); /* 0x47045D27: pop esi */
   4546     ebp = POP32_VAL(esp); /* 0x47045D28: pop ebp */
   4547     ebx = POP32_VAL(esp); /* 0x47045D29: pop ebx */
   4548     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   4549     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4550     esp = esp + 0x1Cu; /* 0x47045D2A: add esp, 0x1c */
   4551     _flag_k = FK_ADD;
   4552     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045D2D: ret  */
   4553 L_47045D2E:
   4554     ecx = MEM32(esp + 0x18); /* 0x47045D2E: mov ecx, dword ptr [esp + 0x18] */
   4555     PUSH32(esp, ecx); /* 0x47045D32: push ecx */
   4556     RECOMP_ICALL(MEM32(0x470AC414)); /* 0x47045D33: call dword ptr [0x470ac414] */
   4557     RECOMP_FLAGS_IN();
   4558     edi = POP32_VAL(esp); /* 0x47045D39: pop edi */
   4559     esi = POP32_VAL(esp); /* 0x47045D3A: pop esi */
   4560     ebp = POP32_VAL(esp); /* 0x47045D3B: pop ebp */
   4561     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4562     eax = eax | 0xFFFFFFFFu; /* 0x47045D3C: or eax, 0xffffffff */
   4563     _cf = 0;
   4564     _flag_k = FK_TEST;
   4565     ebx = POP32_VAL(esp); /* 0x47045D3F: pop ebx */
   4566     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   4567     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4568     esp = esp + 0x1Cu; /* 0x47045D40: add esp, 0x1c */
   4569     _flag_k = FK_ADD;
   4570     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045D43: ret  */
   4571     RECOMP_REGS_OUT();
   4572 }
   4573 
   4574 void sub_47045D50(void) {
   4575     int _fpu_cmp = 0;
   4576     uint32_t _cf = 0;
   4577     int _df = 1;
   4578     uint32_t _flag_k = FK_NONE;
   4579     uint32_t _flag_a = 0, _flag_b = 0;
   4580     uint32_t _itail_tgt = 0;
   4581     RECOMP_REGS_LOCALS
   4582     RECOMP_ENTER(0x47045D50u);
   4583 
   4584 L_47045D50:
   4585     PUSH32(esp, ebx); /* 0x47045D50: push ebx */
   4586     PUSH32(esp, ebp); /* 0x47045D51: push ebp */
   4587     PUSH32(esp, esi); /* 0x47045D52: push esi */
   4588     esi = ecx; /* 0x47045D53: mov esi, ecx */
   4589     ecx = MEM32(esi + 0x50); /* 0x47045D55: mov ecx, dword ptr [esi + 0x50] */
   4590     eax = MEM32(ecx); /* 0x47045D58: mov eax, dword ptr [ecx] */
   4591     PUSH32(esp, edi); /* 0x47045D5A: push edi */
   4592     RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47045D5B: call dword ptr [eax + 0x104] */
   4593     RECOMP_FLAGS_IN();
   4594     ebx = MEM32(0x470AC14C); /* 0x47045D61: mov ebx, dword ptr [0x470ac14c] */
   4595     edi = eax; /* 0x47045D67: mov edi, eax */
   4596     RECOMP_ICALL(ebx); /* 0x47045D69: call ebx */
   4597     RECOMP_FLAGS_IN();
   4598     /* cmp eax, edi */ /* 0x47045D6B: cmp eax, edi */
   4599     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4601     _flag_k = FK_CMP;
   4602     edi = MEM32(esi + 0x58); /* 0x47045D6D: mov edi, dword ptr [esi + 0x58] */
   4603     if (CMP_EQ(_flag_a, _flag_b)) goto L_47045D75; /* 0x47045D70: je 0x47045d75 */
   4604 L_47045D72:
   4605     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   4606     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4607     edi = edi + 4; /* 0x47045D72: add edi, 4 */
   4608     _flag_k = FK_ADD;
   4609 L_47045D75:
   4610     ecx = MEM32(esi + 0x50); /* 0x47045D75: mov ecx, dword ptr [esi + 0x50] */
   4611     edx = MEM32(ecx); /* 0x47045D78: mov edx, dword ptr [ecx] */
   4612     RECOMP_ICALL(MEM32(edx + 0x104)); /* 0x47045D7A: call dword ptr [edx + 0x104] */
   4613     RECOMP_FLAGS_IN();
   4614     ebp = eax; /* 0x47045D80: mov ebp, eax */
   4615     RECOMP_ICALL(ebx); /* 0x47045D82: call ebx */
   4616     RECOMP_FLAGS_IN();
   4617     /* cmp eax, ebp */ /* 0x47045D84: cmp eax, ebp */
   4618     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   4619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4620     _flag_k = FK_CMP;
   4621     eax = MEM32(esi + 0x60); /* 0x47045D86: mov eax, dword ptr [esi + 0x60] */
   4622     if (CMP_EQ(_flag_a, _flag_b)) goto L_47045D8C; /* 0x47045D89: je 0x47045d8c */
   4623 L_47045D8B:
   4624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4625     eax = eax - 1; /* 0x47045D8B: dec eax */
   4626     _flag_k = FK_DEC;
   4627 L_47045D8C:
   4628     ecx = MEM32(esp + 0x14); /* 0x47045D8C: mov ecx, dword ptr [esp + 0x14] */
   4629     PUSH32(esp, 0xFFu); /* 0x47045D90: push 0xff */
   4630     PUSH32(esp, 0); /* 0x47045D95: push 0 */
   4631     PUSH32(esp, 0); /* 0x47045D97: push 0 */
   4632     edx = edi + ecx * 4; /* 0x47045D99: lea edx, [edi + ecx*4] */
   4633     PUSH32(esp, edx); /* 0x47045D9C: push edx */
   4634     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4636     eax = eax - ecx; /* 0x47045D9D: sub eax, ecx */
   4637     _flag_k = FK_CMP;
   4638     PUSH32(esp, eax); /* 0x47045D9F: push eax */
   4639     RECOMP_ICALL(MEM32(0x470AC410)); /* 0x47045DA0: call dword ptr [0x470ac410] */
   4640     RECOMP_FLAGS_IN();
   4641     edi = POP32_VAL(esp); /* 0x47045DA6: pop edi */
   4642     esi = POP32_VAL(esp); /* 0x47045DA7: pop esi */
   4643     ebp = POP32_VAL(esp); /* 0x47045DA8: pop ebp */
   4644     ebx = POP32_VAL(esp); /* 0x47045DA9: pop ebx */
   4645     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47045DAA: ret 4 */
   4646     RECOMP_REGS_OUT();
   4647 }
   4648 
   4649 void sub_47045DB0(void) {
   4650     int _fpu_cmp = 0;
   4651     uint32_t _cf = 0;
   4652     int _df = 1;
   4653     uint32_t _flag_k = FK_NONE;
   4654     uint32_t _flag_a = 0, _flag_b = 0;
   4655     uint32_t _itail_tgt = 0;
   4656     RECOMP_REGS_LOCALS
   4657     RECOMP_ENTER(0x47045DB0u);
   4658 
   4659 L_47045DB0:
   4660     ecx = 0x4710E7B5u; /* 0x47045DB0: mov ecx, 0x4710e7b5 */
   4661     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47045DB5: call dword ptr [0x470ac1c8] */
   4662     RECOMP_FLAGS_IN();
   4663     PUSH32(esp, 0x47045DD0u); /* 0x47045DBB: push 0x47045dd0 */
   4664     RECOMP_ICALL(0x470A32D9u); /* 0x47045DC0: call 0x470a32d9 */ /* not lifted */
   4665     RECOMP_FLAGS_IN();
   4666     ecx = POP32_VAL(esp); /* 0x47045DC5: pop ecx */
   4667     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045DC6: ret  */
   4668     RECOMP_REGS_OUT();
   4669 }
   4670 
   4671 void sub_47045DD0(void) {
   4672     int _fpu_cmp = 0;
   4673     uint32_t _cf = 0;
   4674     int _df = 1;
   4675     uint32_t _flag_k = FK_NONE;
   4676     uint32_t _flag_a = 0, _flag_b = 0;
   4677     uint32_t _itail_tgt = 0;
   4678     RECOMP_REGS_LOCALS
   4679     RECOMP_ENTER(0x47045DD0u);
   4680 
   4681 L_47045DD0:
   4682     ecx = 0x4710E7B5u; /* 0x47045DD0: mov ecx, 0x4710e7b5 */
   4683 L_47045DD5:
   4684     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   4685     { RECOMP_REGS_OUT(); return; } /* end of function */
   4686   _ljump:
   4687     switch (_itail_tgt) {
   4688       case 0x47045DD0u: goto L_47045DD0;
   4689       case 0x47045DD5u: goto L_47045DD5;
   4690       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4691     }
   4692     RECOMP_REGS_OUT();
   4693 }
   4694 
   4695 void sub_47045DE0(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(0x47045DE0u);
   4704 
   4705 L_47045DE0:
   4706     ecx = 0x4710E7B4u; /* 0x47045DE0: mov ecx, 0x4710e7b4 */
   4707     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47045DE5: call dword ptr [0x470ac1c4] */
   4708     RECOMP_FLAGS_IN();
   4709     PUSH32(esp, 0x47045E00u); /* 0x47045DEB: push 0x47045e00 */
   4710     RECOMP_ICALL(0x470A32D9u); /* 0x47045DF0: call 0x470a32d9 */ /* not lifted */
   4711     RECOMP_FLAGS_IN();
   4712     ecx = POP32_VAL(esp); /* 0x47045DF5: pop ecx */
   4713     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045DF6: ret  */
   4714     RECOMP_REGS_OUT();
   4715 }
   4716 
   4717 void sub_47045E00(void) {
   4718     int _fpu_cmp = 0;
   4719     uint32_t _cf = 0;
   4720     int _df = 1;
   4721     uint32_t _flag_k = FK_NONE;
   4722     uint32_t _flag_a = 0, _flag_b = 0;
   4723     uint32_t _itail_tgt = 0;
   4724     RECOMP_REGS_LOCALS
   4725     RECOMP_ENTER(0x47045E00u);
   4726 
   4727 L_47045E00:
   4728     ecx = 0x4710E7B4u; /* 0x47045E00: mov ecx, 0x4710e7b4 */
   4729 L_47045E05:
   4730     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   4731     { RECOMP_REGS_OUT(); return; } /* end of function */
   4732   _ljump:
   4733     switch (_itail_tgt) {
   4734       case 0x47045E00u: goto L_47045E00;
   4735       case 0x47045E05u: goto L_47045E05;
   4736       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4737     }
   4738     RECOMP_REGS_OUT();
   4739 }
   4740 
   4741 void sub_47045E10(void) {
   4742     int _fpu_cmp = 0;
   4743     uint32_t _cf = 0;
   4744     int _df = 1;
   4745     uint32_t _flag_k = FK_NONE;
   4746     uint32_t _flag_a = 0, _flag_b = 0;
   4747     uint32_t _itail_tgt = 0;
   4748     RECOMP_REGS_LOCALS
   4749     RECOMP_ENTER(0x47045E10u);
   4750 
   4751 L_47045E10:
   4752     MEM32(0x4710E7AC) = 0x47104A3Cu; /* 0x47045E10: mov dword ptr [0x4710e7ac], 0x47104a3c */
   4753     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045E1A: ret  */
   4754     RECOMP_REGS_OUT();
   4755 }
   4756 
   4757 void sub_47045E20(void) {
   4758     int _fpu_cmp = 0;
   4759     uint32_t _cf = 0;
   4760     int _df = 1;
   4761     uint32_t _flag_k = FK_NONE;
   4762     uint32_t _flag_a = 0, _flag_b = 0;
   4763     uint32_t _itail_tgt = 0;
   4764     RECOMP_REGS_LOCALS
   4765     RECOMP_ENTER(0x47045E20u);
   4766 
   4767 L_47045E20:
   4768     MEM32(0x4710E7BC) = 0x47104A00u; /* 0x47045E20: mov dword ptr [0x4710e7bc], 0x47104a00 */
   4769     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045E2A: ret  */
   4770     RECOMP_REGS_OUT();
   4771 }
   4772 
   4773 void sub_47045E30(void) {
   4774     int _fpu_cmp = 0;
   4775     uint32_t _cf = 0;
   4776     int _df = 1;
   4777     uint32_t _flag_k = FK_NONE;
   4778     uint32_t _flag_a = 0, _flag_b = 0;
   4779     uint32_t _itail_tgt = 0;
   4780     RECOMP_REGS_LOCALS
   4781     RECOMP_ENTER(0x47045E30u);
   4782 
   4783 L_47045E30:
   4784     MEM32(0x4710E7B8) = 0x47104A70u; /* 0x47045E30: mov dword ptr [0x4710e7b8], 0x47104a70 */
   4785     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045E3A: ret  */
   4786     RECOMP_REGS_OUT();
   4787 }
   4788 
   4789 void sub_47045E40(void) {
   4790     int _fpu_cmp = 0;
   4791     uint32_t _cf = 0;
   4792     int _df = 1;
   4793     uint32_t _flag_k = FK_NONE;
   4794     uint32_t _flag_a = 0, _flag_b = 0;
   4795     uint32_t _itail_tgt = 0;
   4796     RECOMP_REGS_LOCALS
   4797     RECOMP_ENTER(0x47045E40u);
   4798 
   4799 L_47045E40:
   4800     MEM32(0x4710E7CC) = 0x47104B6Cu; /* 0x47045E40: mov dword ptr [0x4710e7cc], 0x47104b6c */
   4801     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045E4A: ret  */
   4802     RECOMP_REGS_OUT();
   4803 }
   4804 
   4805 void sub_47045E50(void) {
   4806     int _fpu_cmp = 0;
   4807     uint32_t _cf = 0;
   4808     int _df = 1;
   4809     uint32_t _flag_k = FK_NONE;
   4810     uint32_t _flag_a = 0, _flag_b = 0;
   4811     uint32_t _itail_tgt = 0;
   4812     RECOMP_REGS_LOCALS
   4813     RECOMP_ENTER(0x47045E50u);
   4814 
   4815 L_47045E50:
   4816     MEM32(0x4710E7B0) = 0x47104BA0u; /* 0x47045E50: mov dword ptr [0x4710e7b0], 0x47104ba0 */
   4817     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045E5A: ret  */
   4818     RECOMP_REGS_OUT();
   4819 }
   4820 
   4821 void sub_47045E60(void) {
   4822     int _fpu_cmp = 0;
   4823     uint32_t _cf = 0;
   4824     int _df = 1;
   4825     uint32_t _flag_k = FK_NONE;
   4826     uint32_t _flag_a = 0, _flag_b = 0;
   4827     uint32_t _itail_tgt = 0;
   4828     RECOMP_REGS_LOCALS
   4829     RECOMP_ENTER(0x47045E60u);
   4830 
   4831 L_47045E60:
   4832     MEM32(0x4710E7C4) = 0x47104BD4u; /* 0x47045E60: mov dword ptr [0x4710e7c4], 0x47104bd4 */
   4833     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045E6A: ret  */
   4834     RECOMP_REGS_OUT();
   4835 }
   4836 
   4837 void sub_47045E70(void) {
   4838     int _fpu_cmp = 0;
   4839     uint32_t _cf = 0;
   4840     int _df = 1;
   4841     uint32_t _flag_k = FK_NONE;
   4842     uint32_t _flag_a = 0, _flag_b = 0;
   4843     uint32_t _itail_tgt = 0;
   4844     RECOMP_REGS_LOCALS
   4845     RECOMP_ENTER(0x47045E70u);
   4846 
   4847 L_47045E70:
   4848     MEM32(0x4710E7C0) = 0x471050FCu; /* 0x47045E70: mov dword ptr [0x4710e7c0], 0x471050fc */
   4849     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045E7A: ret  */
   4850     RECOMP_REGS_OUT();
   4851 }
   4852 
   4853 void sub_47045E80(void) {
   4854     int _fpu_cmp = 0;
   4855     uint32_t _cf = 0;
   4856     int _df = 1;
   4857     uint32_t _flag_k = FK_NONE;
   4858     uint32_t _flag_a = 0, _flag_b = 0;
   4859     uint32_t _itail_tgt = 0;
   4860     RECOMP_REGS_LOCALS
   4861     RECOMP_ENTER(0x47045E80u);
   4862 
   4863 L_47045E80:
   4864     MEM32(0x4710E7C8) = 0x47108600u; /* 0x47045E80: mov dword ptr [0x4710e7c8], 0x47108600 */
   4865     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045E8A: ret  */
   4866     RECOMP_REGS_OUT();
   4867 }
   4868 
   4869 void sub_47045E90(void) {
   4870     int _fpu_cmp = 0;
   4871     uint32_t _cf = 0;
   4872     int _df = 1;
   4873     uint32_t _flag_k = FK_NONE;
   4874     uint32_t _flag_a = 0, _flag_b = 0;
   4875     uint32_t _itail_tgt = 0;
   4876     RECOMP_REGS_LOCALS
   4877     RECOMP_ENTER(0x47045E90u);
   4878 
   4879 L_47045E90:
   4880     PUSH32(esp, ecx); /* 0x47045E90: push ecx */
   4881     PUSH32(esp, ebx); /* 0x47045E91: push ebx */
   4882     ebx = MEM32(0x470AC150); /* 0x47045E92: mov ebx, dword ptr [0x470ac150] */
   4883     PUSH32(esp, ebp); /* 0x47045E98: push ebp */
   4884     PUSH32(esp, esi); /* 0x47045E99: push esi */
   4885     PUSH32(esp, edi); /* 0x47045E9A: push edi */
   4886     edi = ecx; /* 0x47045E9B: mov edi, ecx */
   4887     RECOMP_ICALL(ebx); /* 0x47045E9D: call ebx */
   4888     RECOMP_FLAGS_IN();
   4889     ebp = MEM32(0x470AC3C8); /* 0x47045E9F: mov ebp, dword ptr [0x470ac3c8] */
   4890     esi = eax; /* 0x47045EA5: mov esi, eax */
   4891     RECOMP_ICALL(ebp); /* 0x47045EA7: call ebp */
   4892     RECOMP_FLAGS_IN();
   4893     eax = MEM32(eax); /* 0x47045EA9: mov eax, dword ptr [eax] */
   4894     /* test eax, eax */ /* 0x47045EAB: test eax, eax */
   4895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4896     _cf = 0;
   4897     _flag_k = FK_TEST;
   4898     MEM32(esp + 0x10) = esi; /* 0x47045EAD: mov dword ptr [esp + 0x10], esi */
   4899     if (TEST_Z(_flag_a, _flag_b)) goto L_47045EB7; /* 0x47045EB1: je 0x47045eb7 */
   4900 L_47045EB3:
   4901     MEM32(esp + 0x10) = eax; /* 0x47045EB3: mov dword ptr [esp + 0x10], eax */
   4902 L_47045EB7:
   4903     RECOMP_ICALL(0x47039020u); /* 0x47045EB7: call 0x47039020 */ /* not lifted */
   4904     RECOMP_FLAGS_IN();
   4905     esi = eax; /* 0x47045EBC: mov esi, eax */
   4906     ecx = esi; /* 0x47045EBE: mov ecx, esi */
   4907     RECOMP_ICALL(0x4703B210u); /* 0x47045EC0: call 0x4703b210 */ /* not lifted */
   4908     RECOMP_FLAGS_IN();
   4909     PUSH32(esp, eax); /* 0x47045EC5: push eax */
   4910     ecx = esi; /* 0x47045EC6: mov ecx, esi */
   4911     RECOMP_ICALL(0x4703B240u); /* 0x47045EC8: call 0x4703b240 */ /* not lifted */
   4912     RECOMP_FLAGS_IN();
   4913     PUSH32(esp, eax); /* 0x47045ECD: push eax */
   4914     ecx = esi; /* 0x47045ECE: mov ecx, esi */
   4915     RECOMP_ICALL(0x4703B080u); /* 0x47045ED0: call 0x4703b080 */ /* not lifted */
   4916     RECOMP_FLAGS_IN();
   4917     PUSH32(esp, eax); /* 0x47045ED5: push eax */
   4918     eax = MEM32(esp + 0x1C); /* 0x47045ED6: mov eax, dword ptr [esp + 0x1c] */
   4919     PUSH32(esp, eax); /* 0x47045EDA: push eax */
   4920     PUSH32(esp, 0); /* 0x47045EDB: push 0 */
   4921     PUSH32(esp, 0xEu); /* 0x47045EDD: push 0xe */
   4922     PUSH32(esp, 0x47108644u); /* 0x47045EDF: push 0x47108644 */
   4923     ecx = esi; /* 0x47045EE4: mov ecx, esi */
   4924     RECOMP_ICALL(0x4703A340u); /* 0x47045EE6: call 0x4703a340 */ /* not lifted */
   4925     RECOMP_FLAGS_IN();
   4926     PUSH32(esp, edi); /* 0x47045EEB: push edi */
   4927     PUSH32(esp, 0x471052CCu); /* 0x47045EEC: push 0x471052cc */
   4928     PUSH32(esp, 4); /* 0x47045EF1: push 4 */
   4929     PUSH32(esp, esi); /* 0x47045EF3: push esi */
   4930     RECOMP_ICALL(0x47039830u); /* 0x47045EF4: call 0x47039830 */ /* not lifted */
   4931     RECOMP_FLAGS_IN();
   4932     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4933     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4934     esp = esp + 0x10u; /* 0x47045EF9: add esp, 0x10 */
   4935     _flag_k = FK_ADD;
   4936     ecx = edi + 0xC; /* 0x47045EFC: lea ecx, [edi + 0xc] */
   4937     RECOMP_ICALL(0x47042970u); /* 0x47045EFF: call 0x47042970 */ /* not lifted */
   4938     RECOMP_FLAGS_IN();
   4939     ecx = edi + 0x10; /* 0x47045F04: lea ecx, [edi + 0x10] */
   4940     RECOMP_ICALL(0x47042970u); /* 0x47045F07: call 0x47042970 */ /* not lifted */
   4941     RECOMP_FLAGS_IN();
   4942     RECOMP_ICALL(ebx); /* 0x47045F0C: call ebx */
   4943     RECOMP_FLAGS_IN();
   4944     esi = eax; /* 0x47045F0E: mov esi, eax */
   4945     RECOMP_ICALL(ebp); /* 0x47045F10: call ebp */
   4946     RECOMP_FLAGS_IN();
   4947     eax = MEM32(eax); /* 0x47045F12: mov eax, dword ptr [eax] */
   4948     /* test eax, eax */ /* 0x47045F14: test eax, eax */
   4949     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4950     _cf = 0;
   4951     _flag_k = FK_TEST;
   4952     MEM32(esp + 0x10) = esi; /* 0x47045F16: mov dword ptr [esp + 0x10], esi */
   4953     if (TEST_Z(_flag_a, _flag_b)) goto L_47045F20; /* 0x47045F1A: je 0x47045f20 */
   4954 L_47045F1C:
   4955     MEM32(esp + 0x10) = eax; /* 0x47045F1C: mov dword ptr [esp + 0x10], eax */
   4956 L_47045F20:
   4957     RECOMP_ICALL(0x47039020u); /* 0x47045F20: call 0x47039020 */ /* not lifted */
   4958     RECOMP_FLAGS_IN();
   4959     esi = eax; /* 0x47045F25: mov esi, eax */
   4960     ecx = esi; /* 0x47045F27: mov ecx, esi */
   4961     RECOMP_ICALL(0x4703B210u); /* 0x47045F29: call 0x4703b210 */ /* not lifted */
   4962     RECOMP_FLAGS_IN();
   4963     PUSH32(esp, eax); /* 0x47045F2E: push eax */
   4964     ecx = esi; /* 0x47045F2F: mov ecx, esi */
   4965     RECOMP_ICALL(0x4703B240u); /* 0x47045F31: call 0x4703b240 */ /* not lifted */
   4966     RECOMP_FLAGS_IN();
   4967     PUSH32(esp, eax); /* 0x47045F36: push eax */
   4968     ecx = esi; /* 0x47045F37: mov ecx, esi */
   4969     RECOMP_ICALL(0x4703B080u); /* 0x47045F39: call 0x4703b080 */ /* not lifted */
   4970     RECOMP_FLAGS_IN();
   4971     ecx = MEM32(esp + 0x18); /* 0x47045F3E: mov ecx, dword ptr [esp + 0x18] */
   4972     PUSH32(esp, eax); /* 0x47045F42: push eax */
   4973     PUSH32(esp, ecx); /* 0x47045F43: push ecx */
   4974     PUSH32(esp, 0); /* 0x47045F44: push 0 */
   4975     PUSH32(esp, 0x11u); /* 0x47045F46: push 0x11 */
   4976     PUSH32(esp, 0x47108644u); /* 0x47045F48: push 0x47108644 */
   4977     ecx = esi; /* 0x47045F4D: mov ecx, esi */
   4978     RECOMP_ICALL(0x4703A340u); /* 0x47045F4F: call 0x4703a340 */ /* not lifted */
   4979     RECOMP_FLAGS_IN();
   4980     edx = MEM32(edi + 0x20); /* 0x47045F54: mov edx, dword ptr [edi + 0x20] */
   4981     PUSH32(esp, edx); /* 0x47045F57: push edx */
   4982     PUSH32(esp, 0x47108634u); /* 0x47045F58: push 0x47108634 */
   4983     PUSH32(esp, 4); /* 0x47045F5D: push 4 */
   4984     PUSH32(esp, esi); /* 0x47045F5F: push esi */
   4985     RECOMP_ICALL(0x47039830u); /* 0x47045F60: call 0x47039830 */ /* not lifted */
   4986     RECOMP_FLAGS_IN();
   4987     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4988     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4989     esp = esp + 0x10u; /* 0x47045F65: add esp, 0x10 */
   4990     _flag_k = FK_ADD;
   4991     RECOMP_ICALL(ebx); /* 0x47045F68: call ebx */
   4992     RECOMP_FLAGS_IN();
   4993     esi = eax; /* 0x47045F6A: mov esi, eax */
   4994     RECOMP_ICALL(ebp); /* 0x47045F6C: call ebp */
   4995     RECOMP_FLAGS_IN();
   4996     eax = MEM32(eax); /* 0x47045F6E: mov eax, dword ptr [eax] */
   4997     /* test eax, eax */ /* 0x47045F70: test eax, eax */
   4998     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4999     _cf = 0;
   5000     _flag_k = FK_TEST;
   5001     edi = esi; /* 0x47045F72: mov edi, esi */
   5002     if (TEST_Z(_flag_a, _flag_b)) goto L_47045F78; /* 0x47045F74: je 0x47045f78 */
   5003 L_47045F76:
   5004     edi = eax; /* 0x47045F76: mov edi, eax */
   5005 L_47045F78:
   5006     RECOMP_ICALL(0x47039020u); /* 0x47045F78: call 0x47039020 */ /* not lifted */
   5007     RECOMP_FLAGS_IN();
   5008     esi = eax; /* 0x47045F7D: mov esi, eax */
   5009     ecx = esi; /* 0x47045F7F: mov ecx, esi */
   5010     RECOMP_ICALL(0x4703B210u); /* 0x47045F81: call 0x4703b210 */ /* not lifted */
   5011     RECOMP_FLAGS_IN();
   5012     PUSH32(esp, eax); /* 0x47045F86: push eax */
   5013     ecx = esi; /* 0x47045F87: mov ecx, esi */
   5014     RECOMP_ICALL(0x4703B240u); /* 0x47045F89: call 0x4703b240 */ /* not lifted */
   5015     RECOMP_FLAGS_IN();
   5016     PUSH32(esp, eax); /* 0x47045F8E: push eax */
   5017     ecx = esi; /* 0x47045F8F: mov ecx, esi */
   5018     RECOMP_ICALL(0x4703B080u); /* 0x47045F91: call 0x4703b080 */ /* not lifted */
   5019     RECOMP_FLAGS_IN();
   5020     PUSH32(esp, eax); /* 0x47045F96: push eax */
   5021     PUSH32(esp, edi); /* 0x47045F97: push edi */
   5022     PUSH32(esp, 0); /* 0x47045F98: push 0 */
   5023     PUSH32(esp, 0x12u); /* 0x47045F9A: push 0x12 */
   5024     PUSH32(esp, 0x47108644u); /* 0x47045F9C: push 0x47108644 */
   5025     ecx = esi; /* 0x47045FA1: mov ecx, esi */
   5026     RECOMP_ICALL(0x4703A340u); /* 0x47045FA3: call 0x4703a340 */ /* not lifted */
   5027     RECOMP_FLAGS_IN();
   5028     PUSH32(esp, 0x4710529Cu); /* 0x47045FA8: push 0x4710529c */
   5029     PUSH32(esp, 4); /* 0x47045FAD: push 4 */
   5030     PUSH32(esp, esi); /* 0x47045FAF: push esi */
   5031     RECOMP_ICALL(0x47039830u); /* 0x47045FB0: call 0x47039830 */ /* not lifted */
   5032     RECOMP_FLAGS_IN();
   5033     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5034     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5035     esp = esp + 0xCu; /* 0x47045FB5: add esp, 0xc */
   5036     _flag_k = FK_ADD;
   5037     edi = POP32_VAL(esp); /* 0x47045FB8: pop edi */
   5038     esi = POP32_VAL(esp); /* 0x47045FB9: pop esi */
   5039     ebp = POP32_VAL(esp); /* 0x47045FBA: pop ebp */
   5040     ebx = POP32_VAL(esp); /* 0x47045FBB: pop ebx */
   5041     ecx = POP32_VAL(esp); /* 0x47045FBC: pop ecx */
   5042     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47045FBD: ret  */
   5043     RECOMP_REGS_OUT();
   5044 }
   5045 
   5046 void sub_47045FC0(void) {
   5047     int _fpu_cmp = 0;
   5048     uint32_t _cf = 0;
   5049     int _df = 1;
   5050     uint32_t _flag_k = FK_NONE;
   5051     uint32_t _flag_a = 0, _flag_b = 0;
   5052     uint32_t _itail_tgt = 0;
   5053     RECOMP_REGS_LOCALS
   5054     RECOMP_ENTER(0x47045FC0u);
   5055 
   5056 L_47045FC0:
   5057     PUSH32(esp, 0xFFFFFFFFu); /* 0x47045FC0: push -1 */
   5058     PUSH32(esp, 0x470A6733u); /* 0x47045FC2: push 0x470a6733 */
   5059     eax = MEM32(FS_BASE + (0)); /* 0x47045FC7: mov eax, dword ptr fs:[0] */
   5060     PUSH32(esp, eax); /* 0x47045FCD: push eax */
   5061     MEM32(FS_BASE + (0)) = esp; /* 0x47045FCE: mov dword ptr fs:[0], esp */
   5062     PUSH32(esp, ecx); /* 0x47045FD5: push ecx */
   5063     PUSH32(esp, esi); /* 0x47045FD6: push esi */
   5064     PUSH32(esp, 0); /* 0x47045FD7: push 0 */
   5065     esi = ecx; /* 0x47045FD9: mov esi, ecx */
   5066     PUSH32(esp, 0); /* 0x47045FDB: push 0 */
   5067     MEM32(esp + 0xC) = esi; /* 0x47045FDD: mov dword ptr [esp + 0xc], esi */
   5068     RECOMP_ICALL(0x4702A790u); /* 0x47045FE1: call 0x4702a790 */ /* not lifted */
   5069     RECOMP_FLAGS_IN();
   5070     ecx = esi + 0x10; /* 0x47045FE6: lea ecx, [esi + 0x10] */
   5071     MEM32(esp + 0x10) = 1; /* 0x47045FE9: mov dword ptr [esp + 0x10], 1 */
   5072     RECOMP_ICALL(0x4707A510u); /* 0x47045FF1: call 0x4707a510 */ /* not lifted */
   5073     RECOMP_FLAGS_IN();
   5074     ecx = MEM32(esp + 0x8); /* 0x47045FF6: mov ecx, dword ptr [esp + 8] */
   5075     MEM32(esi + 0x20) = 0; /* 0x47045FFA: mov dword ptr [esi + 0x20], 0 */
   5076     MEM32(esi) = 0x470AD288u; /* 0x47046001: mov dword ptr [esi], 0x470ad288 */
   5077     eax = esi; /* 0x47046007: mov eax, esi */
   5078     esi = POP32_VAL(esp); /* 0x47046009: pop esi */
   5079     MEM32(FS_BASE + (0)) = ecx; /* 0x4704600A: mov dword ptr fs:[0], ecx */
   5080     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5081     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5082     esp = esp + 0x10u; /* 0x47046011: add esp, 0x10 */
   5083     _flag_k = FK_ADD;
   5084     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47046014: ret  */
   5085     RECOMP_REGS_OUT();
   5086 }
   5087 
   5088 void sub_47046020(void) {
   5089     int _fpu_cmp = 0;
   5090     uint32_t _cf = 0;
   5091     int _df = 1;
   5092     uint32_t _flag_k = FK_NONE;
   5093     uint32_t _flag_a = 0, _flag_b = 0;
   5094     uint32_t _itail_tgt = 0;
   5095     RECOMP_REGS_LOCALS
   5096     RECOMP_ENTER(0x47046020u);
   5097 
   5098 L_47046020:
   5099     PUSH32(esp, ebx); /* 0x47046020: push ebx */
   5100     ebx = MEM32(esp + 0xC); /* 0x47046021: mov ebx, dword ptr [esp + 0xc] */
   5101     PUSH32(esp, esi); /* 0x47046025: push esi */
   5102     PUSH32(esp, edi); /* 0x47046026: push edi */
   5103     esi = ecx; /* 0x47046027: mov esi, ecx */
   5104     PUSH32(esp, 2); /* 0x47046029: push 2 */
   5105     ecx = ebx; /* 0x4704602B: mov ecx, ebx */
   5106     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5107     edi = 0; /* 0x4704602D: xor edi, edi */
   5108     _cf = 0;
   5109     _flag_k = FK_TEST;
   5110     RECOMP_ICALL(0x47088190u); /* 0x4704602F: call 0x47088190 */ /* not lifted */
   5111     RECOMP_FLAGS_IN();
   5112     /* test eax, eax */ /* 0x47046034: test eax, eax */
   5113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5114     _cf = 0;
   5115     _flag_k = FK_TEST;
   5116     if (TEST_Z(_flag_a, _flag_b)) goto L_47046041; /* 0x47046036: je 0x47046041 */
   5117 L_47046038:
   5118     ecx = ebx; /* 0x47046038: mov ecx, ebx */
   5119     RECOMP_ICALL(0x470881E0u); /* 0x4704603A: call 0x470881e0 */ /* not lifted */
   5120     RECOMP_FLAGS_IN();
   5121     edi = eax; /* 0x4704603F: mov edi, eax */
   5122 L_47046041:
   5123     eax = MEM32(esp + 0x10); /* 0x47046041: mov eax, dword ptr [esp + 0x10] */
   5124     PUSH32(esp, 0); /* 0x47046045: push 0 */
   5125     PUSH32(esp, 2); /* 0x47046047: push 2 */
   5126     PUSH32(esp, 0); /* 0x47046049: push 0 */
   5127     PUSH32(esp, 0); /* 0x4704604B: push 0 */
   5128     PUSH32(esp, 0); /* 0x4704604D: push 0 */
   5129     PUSH32(esp, 0x4710DF08u); /* 0x4704604F: push 0x4710df08 */
   5130     PUSH32(esp, edi); /* 0x47046054: push edi */
   5131     PUSH32(esp, eax); /* 0x47046055: push eax */
   5132     ecx = esi + 0x10; /* 0x47046056: lea ecx, [esi + 0x10] */
   5133     PUSH32(esp, ecx); /* 0x47046059: push ecx */
   5134     ecx = esi + 0xC; /* 0x4704605A: lea ecx, [esi + 0xc] */
   5135     RECOMP_ICALL(0x4707BAD0u); /* 0x4704605D: call 0x4707bad0 */ /* not lifted */
   5136     RECOMP_FLAGS_IN();
   5137     edi = POP32_VAL(esp); /* 0x47046062: pop edi */
   5138     esi = POP32_VAL(esp); /* 0x47046063: pop esi */
   5139     ebx = POP32_VAL(esp); /* 0x47046064: pop ebx */
   5140     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47046065: ret 8 */
   5141     RECOMP_REGS_OUT();
   5142 }
   5143 
   5144 void sub_47046070(void) {
   5145     int _fpu_cmp = 0;
   5146     uint32_t _cf = 0;
   5147     int _df = 1;
   5148     uint32_t _flag_k = FK_NONE;
   5149     uint32_t _flag_a = 0, _flag_b = 0;
   5150     uint32_t _itail_tgt = 0;
   5151     RECOMP_REGS_LOCALS
   5152     RECOMP_ENTER(0x47046070u);
   5153 
   5154 L_47046070:
   5155     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046070: push -1 */
   5156     PUSH32(esp, 0x470A675Eu); /* 0x47046072: push 0x470a675e */
   5157     eax = MEM32(FS_BASE + (0)); /* 0x47046077: mov eax, dword ptr fs:[0] */
   5158     PUSH32(esp, eax); /* 0x4704607D: push eax */
   5159     MEM32(FS_BASE + (0)) = esp; /* 0x4704607E: mov dword ptr fs:[0], esp */
   5160     PUSH32(esp, ecx); /* 0x47046085: push ecx */
   5161     PUSH32(esp, ebx); /* 0x47046086: push ebx */
   5162     PUSH32(esp, ebp); /* 0x47046087: push ebp */
   5163     PUSH32(esp, esi); /* 0x47046088: push esi */
   5164     PUSH32(esp, edi); /* 0x47046089: push edi */
   5165     PUSH32(esp, 0); /* 0x4704608A: push 0 */
   5166     esi = ecx; /* 0x4704608C: mov esi, ecx */
   5167     PUSH32(esp, 0); /* 0x4704608E: push 0 */
   5168     MEM32(esp + 0x18) = esi; /* 0x47046090: mov dword ptr [esp + 0x18], esi */
   5169     RECOMP_ICALL(0x4702A790u); /* 0x47046094: call 0x4702a790 */ /* not lifted */
   5170     RECOMP_FLAGS_IN();
   5171     edi = esi + 0x10; /* 0x47046099: lea edi, [esi + 0x10] */
   5172     ecx = edi; /* 0x4704609C: mov ecx, edi */
   5173     MEM32(esp + 0x1C) = 1; /* 0x4704609E: mov dword ptr [esp + 0x1c], 1 */
   5174     RECOMP_ICALL(0x4707A510u); /* 0x470460A6: call 0x4707a510 */ /* not lifted */
   5175     RECOMP_FLAGS_IN();
   5176     ebp = MEM32(esp + 0x28); /* 0x470460AB: mov ebp, dword ptr [esp + 0x28] */
   5177     PUSH32(esp, 2); /* 0x470460AF: push 2 */
   5178     ecx = ebp; /* 0x470460B1: mov ecx, ebp */
   5179     MEM8(esp + 0x20) = (uint8_t)(2); /* 0x470460B3: mov byte ptr [esp + 0x20], 2 */
   5180     MEM32(esi) = 0x470AD288u; /* 0x470460B8: mov dword ptr [esi], 0x470ad288 */
   5181     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5182     ebx = 0; /* 0x470460BE: xor ebx, ebx */
   5183     _cf = 0;
   5184     _flag_k = FK_TEST;
   5185     RECOMP_ICALL(0x47088190u); /* 0x470460C0: call 0x47088190 */ /* not lifted */
   5186     RECOMP_FLAGS_IN();
   5187     /* test eax, eax */ /* 0x470460C5: test eax, eax */
   5188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5189     _cf = 0;
   5190     _flag_k = FK_TEST;
   5191     if (TEST_Z(_flag_a, _flag_b)) goto L_470460D2; /* 0x470460C7: je 0x470460d2 */
   5192 L_470460C9:
   5193     ecx = ebp; /* 0x470460C9: mov ecx, ebp */
   5194     RECOMP_ICALL(0x470881E0u); /* 0x470460CB: call 0x470881e0 */ /* not lifted */
   5195     RECOMP_FLAGS_IN();
   5196     ebx = eax; /* 0x470460D0: mov ebx, eax */
   5197 L_470460D2:
   5198     eax = MEM32(esp + 0x24); /* 0x470460D2: mov eax, dword ptr [esp + 0x24] */
   5199     PUSH32(esp, 0); /* 0x470460D6: push 0 */
   5200     PUSH32(esp, 2); /* 0x470460D8: push 2 */
   5201     PUSH32(esp, 0); /* 0x470460DA: push 0 */
   5202     PUSH32(esp, 0); /* 0x470460DC: push 0 */
   5203     PUSH32(esp, 0); /* 0x470460DE: push 0 */
   5204     PUSH32(esp, 0x4710DF08u); /* 0x470460E0: push 0x4710df08 */
   5205     PUSH32(esp, ebx); /* 0x470460E5: push ebx */
   5206     PUSH32(esp, eax); /* 0x470460E6: push eax */
   5207     PUSH32(esp, edi); /* 0x470460E7: push edi */
   5208     ecx = esi + 0xC; /* 0x470460E8: lea ecx, [esi + 0xc] */
   5209     RECOMP_ICALL(0x4707BAD0u); /* 0x470460EB: call 0x4707bad0 */ /* not lifted */
   5210     RECOMP_FLAGS_IN();
   5211     /* cmp eax, 0xFFFFFFFFu */ /* 0x470460F0: cmp eax, -1 */
   5212     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5214     _flag_k = FK_CMP;
   5215     if (CMP_NE(_flag_a, _flag_b)) goto L_4704616C; /* 0x470460F3: jne 0x4704616c */
   5216 L_470460F5:
   5217     PUSH32(esp, 2); /* 0x470460F5: push 2 */
   5218     ecx = ebp; /* 0x470460F7: mov ecx, ebp */
   5219     RECOMP_ICALL(0x47088190u); /* 0x470460F9: call 0x47088190 */ /* not lifted */
   5220     RECOMP_FLAGS_IN();
   5221     /* test eax, eax */ /* 0x470460FE: test eax, eax */
   5222     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5223     _cf = 0;
   5224     _flag_k = FK_TEST;
   5225     if (TEST_Z(_flag_a, _flag_b)) goto L_4704616C; /* 0x47046100: je 0x4704616c */
   5226 L_47046102:
   5227     edi = MEM32(0x470AC3C8); /* 0x47046102: mov edi, dword ptr [0x470ac3c8] */
   5228     RECOMP_ICALL(edi); /* 0x47046108: call edi */
   5229     RECOMP_FLAGS_IN();
   5230     /* cmp MEM32(eax), 0x2733u */ /* 0x4704610A: cmp dword ptr [eax], 0x2733 */
   5231     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x2733u);
   5232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5233     _flag_k = FK_CMP;
   5234     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704616C; /* 0x47046110: je 0x4704616c */
   5235 L_47046112:
   5236     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47046112: call dword ptr [0x470ac150] */
   5237     RECOMP_FLAGS_IN();
   5238     ebx = eax; /* 0x47046118: mov ebx, eax */
   5239     RECOMP_ICALL(edi); /* 0x4704611A: call edi */
   5240     RECOMP_FLAGS_IN();
   5241     eax = MEM32(eax); /* 0x4704611C: mov eax, dword ptr [eax] */
   5242     /* test eax, eax */ /* 0x4704611E: test eax, eax */
   5243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5244     _cf = 0;
   5245     _flag_k = FK_TEST;
   5246     if (TEST_Z(_flag_a, _flag_b)) goto L_47046124; /* 0x47046120: je 0x47046124 */
   5247 L_47046122:
   5248     ebx = eax; /* 0x47046122: mov ebx, eax */
   5249 L_47046124:
   5250     RECOMP_ICALL(0x47039020u); /* 0x47046124: call 0x47039020 */ /* not lifted */
   5251     RECOMP_FLAGS_IN();
   5252     edi = eax; /* 0x47046129: mov edi, eax */
   5253     ecx = edi; /* 0x4704612B: mov ecx, edi */
   5254     RECOMP_ICALL(0x4703B210u); /* 0x4704612D: call 0x4703b210 */ /* not lifted */
   5255     RECOMP_FLAGS_IN();
   5256     PUSH32(esp, eax); /* 0x47046132: push eax */
   5257     ecx = edi; /* 0x47046133: mov ecx, edi */
   5258     RECOMP_ICALL(0x4703B240u); /* 0x47046135: call 0x4703b240 */ /* not lifted */
   5259     RECOMP_FLAGS_IN();
   5260     PUSH32(esp, eax); /* 0x4704613A: push eax */
   5261     ecx = edi; /* 0x4704613B: mov ecx, edi */
   5262     RECOMP_ICALL(0x4703B080u); /* 0x4704613D: call 0x4703b080 */ /* not lifted */
   5263     RECOMP_FLAGS_IN();
   5264     PUSH32(esp, eax); /* 0x47046142: push eax */
   5265     PUSH32(esp, ebx); /* 0x47046143: push ebx */
   5266     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046144: push -1 */
   5267     PUSH32(esp, 0x39u); /* 0x47046146: push 0x39 */
   5268     PUSH32(esp, 0x47108644u); /* 0x47046148: push 0x47108644 */
   5269     ecx = edi; /* 0x4704614D: mov ecx, edi */
   5270     RECOMP_ICALL(0x4703A340u); /* 0x4704614F: call 0x4703a340 */ /* not lifted */
   5271     RECOMP_FLAGS_IN();
   5272     PUSH32(esp, 0x47108680u); /* 0x47046154: push 0x47108680 */
   5273     PUSH32(esp, 0x471055F0u); /* 0x47046159: push 0x471055f0 */
   5274     PUSH32(esp, 0x80u); /* 0x4704615E: push 0x80 */
   5275     PUSH32(esp, edi); /* 0x47046163: push edi */
   5276     RECOMP_ICALL(0x47039830u); /* 0x47046164: call 0x47039830 */ /* not lifted */
   5277     RECOMP_FLAGS_IN();
   5278     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5280     esp = esp + 0x10u; /* 0x47046169: add esp, 0x10 */
   5281     _flag_k = FK_ADD;
   5282 L_4704616C:
   5283     ecx = MEM32(esp + 0x14); /* 0x4704616C: mov ecx, dword ptr [esp + 0x14] */
   5284     edi = POP32_VAL(esp); /* 0x47046170: pop edi */
   5285     eax = esi; /* 0x47046171: mov eax, esi */
   5286     esi = POP32_VAL(esp); /* 0x47046173: pop esi */
   5287     ebp = POP32_VAL(esp); /* 0x47046174: pop ebp */
   5288     ebx = POP32_VAL(esp); /* 0x47046175: pop ebx */
   5289     MEM32(FS_BASE + (0)) = ecx; /* 0x47046176: mov dword ptr fs:[0], ecx */
   5290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5291     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5292     esp = esp + 0x10u; /* 0x4704617D: add esp, 0x10 */
   5293     _flag_k = FK_ADD;
   5294     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47046180: ret 8 */
   5295     RECOMP_REGS_OUT();
   5296 }
   5297 
   5298 void sub_47046190(void) {
   5299     int _fpu_cmp = 0;
   5300     uint32_t _cf = 0;
   5301     int _df = 1;
   5302     uint32_t _flag_k = FK_NONE;
   5303     uint32_t _flag_a = 0, _flag_b = 0;
   5304     uint32_t _itail_tgt = 0;
   5305     RECOMP_REGS_LOCALS
   5306     RECOMP_ENTER(0x47046190u);
   5307 
   5308 L_47046190:
   5309     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5311     esp = esp - 0xCu; /* 0x47046190: sub esp, 0xc */
   5312     _flag_k = FK_CMP;
   5313     PUSH32(esp, esi); /* 0x47046193: push esi */
   5314     PUSH32(esp, edi); /* 0x47046194: push edi */
   5315     eax = esp + 0x18; /* 0x47046195: lea eax, [esp + 0x18] */
   5316     edi = ecx; /* 0x47046199: mov edi, ecx */
   5317     ecx = MEM32(esp + 0x18); /* 0x4704619B: mov ecx, dword ptr [esp + 0x18] */
   5318     PUSH32(esp, eax); /* 0x4704619F: push eax */
   5319     RECOMP_ICALL(0x470469C0u); /* 0x470461A0: call 0x470469c0 */ /* not lifted */
   5320     RECOMP_FLAGS_IN();
   5321     esi = eax; /* 0x470461A5: mov esi, eax */
   5322     /* cmp esi, 0xFFFFFFFFu */ /* 0x470461A7: cmp esi, -1 */
   5323     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5325     _flag_k = FK_CMP;
   5326     if (CMP_NE(_flag_a, _flag_b)) goto L_47046215; /* 0x470461AA: jne 0x47046215 */
   5327 L_470461AC:
   5328     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470461AC: call dword ptr [0x470ac150] */
   5329     RECOMP_FLAGS_IN();
   5330     edi = eax; /* 0x470461B2: mov edi, eax */
   5331     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470461B4: call dword ptr [0x470ac3c8] */
   5332     RECOMP_FLAGS_IN();
   5333     eax = MEM32(eax); /* 0x470461BA: mov eax, dword ptr [eax] */
   5334     /* test eax, eax */ /* 0x470461BC: test eax, eax */
   5335     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5336     _cf = 0;
   5337     _flag_k = FK_TEST;
   5338     if (TEST_Z(_flag_a, _flag_b)) goto L_470461C2; /* 0x470461BE: je 0x470461c2 */
   5339 L_470461C0:
   5340     edi = eax; /* 0x470461C0: mov edi, eax */
   5341 L_470461C2:
   5342     RECOMP_ICALL(0x47039020u); /* 0x470461C2: call 0x47039020 */ /* not lifted */
   5343     RECOMP_FLAGS_IN();
   5344     esi = eax; /* 0x470461C7: mov esi, eax */
   5345     ecx = esi; /* 0x470461C9: mov ecx, esi */
   5346     RECOMP_ICALL(0x4703B210u); /* 0x470461CB: call 0x4703b210 */ /* not lifted */
   5347     RECOMP_FLAGS_IN();
   5348     PUSH32(esp, eax); /* 0x470461D0: push eax */
   5349     ecx = esi; /* 0x470461D1: mov ecx, esi */
   5350     RECOMP_ICALL(0x4703B240u); /* 0x470461D3: call 0x4703b240 */ /* not lifted */
   5351     RECOMP_FLAGS_IN();
   5352     PUSH32(esp, eax); /* 0x470461D8: push eax */
   5353     ecx = esi; /* 0x470461D9: mov ecx, esi */
   5354     RECOMP_ICALL(0x4703B080u); /* 0x470461DB: call 0x4703b080 */ /* not lifted */
   5355     RECOMP_FLAGS_IN();
   5356     PUSH32(esp, eax); /* 0x470461E0: push eax */
   5357     PUSH32(esp, edi); /* 0x470461E1: push edi */
   5358     PUSH32(esp, 0xFFFFFFFFu); /* 0x470461E2: push -1 */
   5359     PUSH32(esp, 0x50u); /* 0x470461E4: push 0x50 */
   5360     PUSH32(esp, 0x47108644u); /* 0x470461E6: push 0x47108644 */
   5361     ecx = esi; /* 0x470461EB: mov ecx, esi */
   5362     RECOMP_ICALL(0x4703A340u); /* 0x470461ED: call 0x4703a340 */ /* not lifted */
   5363     RECOMP_FLAGS_IN();
   5364     PUSH32(esp, 0x471086CCu); /* 0x470461F2: push 0x471086cc */
   5365 L_470461F7:
   5366     PUSH32(esp, 0x471055F0u); /* 0x470461F7: push 0x471055f0 */
   5367     PUSH32(esp, 0x80u); /* 0x470461FC: push 0x80 */
   5368     PUSH32(esp, esi); /* 0x47046201: push esi */
   5369     RECOMP_ICALL(0x47039830u); /* 0x47046202: call 0x47039830 */ /* not lifted */
   5370     RECOMP_FLAGS_IN();
   5371     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5372     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5373     esp = esp + 0x10u; /* 0x47046207: add esp, 0x10 */
   5374     _flag_k = FK_ADD;
   5375     edi = POP32_VAL(esp); /* 0x4704620A: pop edi */
   5376     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5377     eax = eax | 0xFFFFFFFFu; /* 0x4704620B: or eax, 0xffffffff */
   5378     _cf = 0;
   5379     _flag_k = FK_TEST;
   5380     esi = POP32_VAL(esp); /* 0x4704620E: pop esi */
   5381     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5383     esp = esp + 0xCu; /* 0x4704620F: add esp, 0xc */
   5384     _flag_k = FK_ADD;
   5385     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046212: ret 4 */
   5386 L_47046215:
   5387     ecx = MEM32(esp + 0x18); /* 0x47046215: mov ecx, dword ptr [esp + 0x18] */
   5388     eax = MEM32(edi + 0x10); /* 0x47046219: mov eax, dword ptr [edi + 0x10] */
   5389     PUSH32(esp, 0); /* 0x4704621C: push 0 */
   5390     PUSH32(esp, esi); /* 0x4704621E: push esi */
   5391     PUSH32(esp, ecx); /* 0x4704621F: push ecx */
   5392     PUSH32(esp, eax); /* 0x47046220: push eax */
   5393     RECOMP_ICALL(0x4700D560u); /* 0x47046221: call 0x4700d560 */ /* not lifted */
   5394     RECOMP_FLAGS_IN();
   5395     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5396     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5397     esp = esp + 0x10u; /* 0x47046226: add esp, 0x10 */
   5398     _flag_k = FK_ADD;
   5399     /* cmp eax, esi */ /* 0x47046229: cmp eax, esi */
   5400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   5401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5402     _flag_k = FK_CMP;
   5403     if (CMP_EQ(_flag_a, _flag_b)) goto L_4704627D; /* 0x4704622B: je 0x4704627d */
   5404 L_4704622D:
   5405     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4704622D: call dword ptr [0x470ac150] */
   5406     RECOMP_FLAGS_IN();
   5407     edi = eax; /* 0x47046233: mov edi, eax */
   5408     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47046235: call dword ptr [0x470ac3c8] */
   5409     RECOMP_FLAGS_IN();
   5410     eax = MEM32(eax); /* 0x4704623B: mov eax, dword ptr [eax] */
   5411     /* test eax, eax */ /* 0x4704623D: test eax, eax */
   5412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5413     _cf = 0;
   5414     _flag_k = FK_TEST;
   5415     if (TEST_Z(_flag_a, _flag_b)) goto L_47046243; /* 0x4704623F: je 0x47046243 */
   5416 L_47046241:
   5417     edi = eax; /* 0x47046241: mov edi, eax */
   5418 L_47046243:
   5419     RECOMP_ICALL(0x47039020u); /* 0x47046243: call 0x47039020 */ /* not lifted */
   5420     RECOMP_FLAGS_IN();
   5421     esi = eax; /* 0x47046248: mov esi, eax */
   5422     ecx = esi; /* 0x4704624A: mov ecx, esi */
   5423     RECOMP_ICALL(0x4703B210u); /* 0x4704624C: call 0x4703b210 */ /* not lifted */
   5424     RECOMP_FLAGS_IN();
   5425     PUSH32(esp, eax); /* 0x47046251: push eax */
   5426     ecx = esi; /* 0x47046252: mov ecx, esi */
   5427     RECOMP_ICALL(0x4703B240u); /* 0x47046254: call 0x4703b240 */ /* not lifted */
   5428     RECOMP_FLAGS_IN();
   5429     PUSH32(esp, eax); /* 0x47046259: push eax */
   5430     ecx = esi; /* 0x4704625A: mov ecx, esi */
   5431     RECOMP_ICALL(0x4703B080u); /* 0x4704625C: call 0x4703b080 */ /* not lifted */
   5432     RECOMP_FLAGS_IN();
   5433     PUSH32(esp, eax); /* 0x47046261: push eax */
   5434     PUSH32(esp, edi); /* 0x47046262: push edi */
   5435     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046263: push -1 */
   5436     PUSH32(esp, 0x58u); /* 0x47046265: push 0x58 */
   5437     PUSH32(esp, 0x47108644u); /* 0x47046267: push 0x47108644 */
   5438     ecx = esi; /* 0x4704626C: mov ecx, esi */
   5439     RECOMP_ICALL(0x4703A340u); /* 0x4704626E: call 0x4703a340 */ /* not lifted */
   5440     RECOMP_FLAGS_IN();
   5441     PUSH32(esp, 0x471086BCu); /* 0x47046273: push 0x471086bc */
   5442     RECOMP_BACKEDGE();
   5443     goto L_470461F7; /* 0x47046278: jmp 0x470461f7 */
   5444 L_4704627D:
   5445     ecx = esp + 0x8; /* 0x4704627D: lea ecx, [esp + 8] */
   5446     RECOMP_ICALL(0x470471D0u); /* 0x47046281: call 0x470471d0 */ /* not lifted */
   5447     RECOMP_FLAGS_IN();
   5448     edi = MEM32(edi + 0x10); /* 0x47046286: mov edi, dword ptr [edi + 0x10] */
   5449     PUSH32(esp, 0); /* 0x47046289: push 0 */
   5450     PUSH32(esp, 0xCu); /* 0x4704628B: push 0xc */
   5451     edx = esp + 0x10; /* 0x4704628D: lea edx, [esp + 0x10] */
   5452     PUSH32(esp, edx); /* 0x47046291: push edx */
   5453     PUSH32(esp, edi); /* 0x47046292: push edi */
   5454     RECOMP_ICALL(0x4700C570u); /* 0x47046293: call 0x4700c570 */ /* not lifted */
   5455     RECOMP_FLAGS_IN();
   5456     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5457     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5458     esp = esp + 0x10u; /* 0x47046298: add esp, 0x10 */
   5459     _flag_k = FK_ADD;
   5460     /* cmp eax, 0xFFFFFFFFu */ /* 0x4704629B: cmp eax, -1 */
   5461     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5463     _flag_k = FK_CMP;
   5464     if (CMP_NE(_flag_a, _flag_b)) goto L_470462F0; /* 0x4704629E: jne 0x470462f0 */
   5465 L_470462A0:
   5466     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470462A0: call dword ptr [0x470ac150] */
   5467     RECOMP_FLAGS_IN();
   5468     edi = eax; /* 0x470462A6: mov edi, eax */
   5469     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470462A8: call dword ptr [0x470ac3c8] */
   5470     RECOMP_FLAGS_IN();
   5471     eax = MEM32(eax); /* 0x470462AE: mov eax, dword ptr [eax] */
   5472     /* test eax, eax */ /* 0x470462B0: test eax, eax */
   5473     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5474     _cf = 0;
   5475     _flag_k = FK_TEST;
   5476     if (TEST_Z(_flag_a, _flag_b)) goto L_470462B6; /* 0x470462B2: je 0x470462b6 */
   5477 L_470462B4:
   5478     edi = eax; /* 0x470462B4: mov edi, eax */
   5479 L_470462B6:
   5480     RECOMP_ICALL(0x47039020u); /* 0x470462B6: call 0x47039020 */ /* not lifted */
   5481     RECOMP_FLAGS_IN();
   5482     esi = eax; /* 0x470462BB: mov esi, eax */
   5483     ecx = esi; /* 0x470462BD: mov ecx, esi */
   5484     RECOMP_ICALL(0x4703B210u); /* 0x470462BF: call 0x4703b210 */ /* not lifted */
   5485     RECOMP_FLAGS_IN();
   5486     PUSH32(esp, eax); /* 0x470462C4: push eax */
   5487     ecx = esi; /* 0x470462C5: mov ecx, esi */
   5488     RECOMP_ICALL(0x4703B240u); /* 0x470462C7: call 0x4703b240 */ /* not lifted */
   5489     RECOMP_FLAGS_IN();
   5490     PUSH32(esp, eax); /* 0x470462CC: push eax */
   5491     ecx = esi; /* 0x470462CD: mov ecx, esi */
   5492     RECOMP_ICALL(0x4703B080u); /* 0x470462CF: call 0x4703b080 */ /* not lifted */
   5493     RECOMP_FLAGS_IN();
   5494     PUSH32(esp, eax); /* 0x470462D4: push eax */
   5495     PUSH32(esp, edi); /* 0x470462D5: push edi */
   5496     PUSH32(esp, 0xFFFFFFFFu); /* 0x470462D6: push -1 */
   5497     PUSH32(esp, 0x64u); /* 0x470462D8: push 0x64 */
   5498     PUSH32(esp, 0x47108644u); /* 0x470462DA: push 0x47108644 */
   5499     ecx = esi; /* 0x470462DF: mov ecx, esi */
   5500     RECOMP_ICALL(0x4703A340u); /* 0x470462E1: call 0x4703a340 */ /* not lifted */
   5501     RECOMP_FLAGS_IN();
   5502     PUSH32(esp, 0x471086B0u); /* 0x470462E6: push 0x471086b0 */
   5503     RECOMP_BACKEDGE();
   5504     goto L_470461F7; /* 0x470462EB: jmp 0x470461f7 */
   5505 L_470462F0:
   5506     ecx = esp + 0x8; /* 0x470462F0: lea ecx, [esp + 8] */
   5507     RECOMP_ICALL(0x47047280u); /* 0x470462F4: call 0x47047280 */ /* not lifted */
   5508     RECOMP_FLAGS_IN();
   5509     /* cmp eax, 0xFFFFFFFFu */ /* 0x470462F9: cmp eax, -1 */
   5510     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5512     _flag_k = FK_CMP;
   5513     if (CMP_NE(_flag_a, _flag_b)) goto L_4704634E; /* 0x470462FC: jne 0x4704634e */
   5514 L_470462FE:
   5515     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470462FE: call dword ptr [0x470ac150] */
   5516     RECOMP_FLAGS_IN();
   5517     edi = eax; /* 0x47046304: mov edi, eax */
   5518     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47046306: call dword ptr [0x470ac3c8] */
   5519     RECOMP_FLAGS_IN();
   5520     eax = MEM32(eax); /* 0x4704630C: mov eax, dword ptr [eax] */
   5521     /* test eax, eax */ /* 0x4704630E: test eax, eax */
   5522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5523     _cf = 0;
   5524     _flag_k = FK_TEST;
   5525     if (TEST_Z(_flag_a, _flag_b)) goto L_47046314; /* 0x47046310: je 0x47046314 */
   5526 L_47046312:
   5527     edi = eax; /* 0x47046312: mov edi, eax */
   5528 L_47046314:
   5529     RECOMP_ICALL(0x47039020u); /* 0x47046314: call 0x47039020 */ /* not lifted */
   5530     RECOMP_FLAGS_IN();
   5531     esi = eax; /* 0x47046319: mov esi, eax */
   5532     ecx = esi; /* 0x4704631B: mov ecx, esi */
   5533     RECOMP_ICALL(0x4703B210u); /* 0x4704631D: call 0x4703b210 */ /* not lifted */
   5534     RECOMP_FLAGS_IN();
   5535     PUSH32(esp, eax); /* 0x47046322: push eax */
   5536     ecx = esi; /* 0x47046323: mov ecx, esi */
   5537     RECOMP_ICALL(0x4703B240u); /* 0x47046325: call 0x4703b240 */ /* not lifted */
   5538     RECOMP_FLAGS_IN();
   5539     PUSH32(esp, eax); /* 0x4704632A: push eax */
   5540     ecx = esi; /* 0x4704632B: mov ecx, esi */
   5541     RECOMP_ICALL(0x4703B080u); /* 0x4704632D: call 0x4703b080 */ /* not lifted */
   5542     RECOMP_FLAGS_IN();
   5543     PUSH32(esp, eax); /* 0x47046332: push eax */
   5544     PUSH32(esp, edi); /* 0x47046333: push edi */
   5545     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046334: push -1 */
   5546     PUSH32(esp, 0x69u); /* 0x47046336: push 0x69 */
   5547     PUSH32(esp, 0x47108644u); /* 0x47046338: push 0x47108644 */
   5548     ecx = esi; /* 0x4704633D: mov ecx, esi */
   5549     RECOMP_ICALL(0x4703A340u); /* 0x4704633F: call 0x4703a340 */ /* not lifted */
   5550     RECOMP_FLAGS_IN();
   5551     PUSH32(esp, 0x471086A0u); /* 0x47046344: push 0x471086a0 */
   5552     RECOMP_BACKEDGE();
   5553     goto L_470461F7; /* 0x47046349: jmp 0x470461f7 */
   5554 L_4704634E:
   5555     ecx = esp + 0x8; /* 0x4704634E: lea ecx, [esp + 8] */
   5556     RECOMP_ICALL(0x470870B0u); /* 0x47046352: call 0x470870b0 */ /* not lifted */
   5557     RECOMP_FLAGS_IN();
   5558     esi = eax; /* 0x47046357: mov esi, eax */
   5559     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47046359: call dword ptr [0x470ac3c8] */
   5560     RECOMP_FLAGS_IN();
   5561     ecx = esp + 0x8; /* 0x4704635F: lea ecx, [esp + 8] */
   5562     MEM32(eax) = esi; /* 0x47046363: mov dword ptr [eax], esi */
   5563     RECOMP_ICALL(0x4708EA70u); /* 0x47046365: call 0x4708ea70 */ /* not lifted */
   5564     RECOMP_FLAGS_IN();
   5565     edi = POP32_VAL(esp); /* 0x4704636A: pop edi */
   5566     esi = POP32_VAL(esp); /* 0x4704636B: pop esi */
   5567     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5568     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5569     esp = esp + 0xCu; /* 0x4704636C: add esp, 0xc */
   5570     _flag_k = FK_ADD;
   5571     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704636F: ret 4 */
   5572     RECOMP_REGS_OUT();
   5573 }
   5574 
   5575 void sub_470461F7(void) {
   5576     int _fpu_cmp = 0;
   5577     uint32_t _cf = 0;
   5578     int _df = 1;
   5579     uint32_t _flag_k = FK_NONE;
   5580     uint32_t _flag_a = 0, _flag_b = 0;
   5581     uint32_t _itail_tgt = 0;
   5582     RECOMP_REGS_LOCALS
   5583     RECOMP_ENTER(0x470461F7u);
   5584 
   5585 L_470461F7:
   5586     PUSH32(esp, 0x471055F0u); /* 0x470461F7: push 0x471055f0 */
   5587     PUSH32(esp, 0x80u); /* 0x470461FC: push 0x80 */
   5588     PUSH32(esp, esi); /* 0x47046201: push esi */
   5589     RECOMP_ICALL(0x47039830u); /* 0x47046202: call 0x47039830 */ /* not lifted */
   5590     RECOMP_FLAGS_IN();
   5591     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5592     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5593     esp = esp + 0x10u; /* 0x47046207: add esp, 0x10 */
   5594     _flag_k = FK_ADD;
   5595     edi = POP32_VAL(esp); /* 0x4704620A: pop edi */
   5596     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5597     eax = eax | 0xFFFFFFFFu; /* 0x4704620B: or eax, 0xffffffff */
   5598     _cf = 0;
   5599     _flag_k = FK_TEST;
   5600     esi = POP32_VAL(esp); /* 0x4704620E: pop esi */
   5601     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5603     esp = esp + 0xCu; /* 0x4704620F: add esp, 0xc */
   5604     _flag_k = FK_ADD;
   5605     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046212: ret 4 */
   5606     RECOMP_REGS_OUT();
   5607 }
   5608 
   5609 void sub_47046380(void) {
   5610     int _fpu_cmp = 0;
   5611     uint32_t _cf = 0;
   5612     int _df = 1;
   5613     uint32_t _flag_k = FK_NONE;
   5614     uint32_t _flag_a = 0, _flag_b = 0;
   5615     uint32_t _itail_tgt = 0;
   5616     RECOMP_REGS_LOCALS
   5617     RECOMP_ENTER(0x47046380u);
   5618 
   5619 L_47046380:
   5620     PUSH32(esp, esi); /* 0x47046380: push esi */
   5621     PUSH32(esp, edi); /* 0x47046381: push edi */
   5622     eax = esp + 0xC; /* 0x47046382: lea eax, [esp + 0xc] */
   5623     edi = ecx; /* 0x47046386: mov edi, ecx */
   5624     ecx = MEM32(esp + 0xC); /* 0x47046388: mov ecx, dword ptr [esp + 0xc] */
   5625     PUSH32(esp, eax); /* 0x4704638C: push eax */
   5626     RECOMP_ICALL(0x470469C0u); /* 0x4704638D: call 0x470469c0 */ /* not lifted */
   5627     RECOMP_FLAGS_IN();
   5628     esi = eax; /* 0x47046392: mov esi, eax */
   5629     /* cmp esi, 0xFFFFFFFFu */ /* 0x47046394: cmp esi, -1 */
   5630     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5632     _flag_k = FK_CMP;
   5633     if (CMP_NE(_flag_a, _flag_b)) goto L_470463E6; /* 0x47046397: jne 0x470463e6 */
   5634 L_47046399:
   5635     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47046399: call dword ptr [0x470ac150] */
   5636     RECOMP_FLAGS_IN();
   5637     edi = eax; /* 0x4704639F: mov edi, eax */
   5638     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470463A1: call dword ptr [0x470ac3c8] */
   5639     RECOMP_FLAGS_IN();
   5640     eax = MEM32(eax); /* 0x470463A7: mov eax, dword ptr [eax] */
   5641     /* test eax, eax */ /* 0x470463A9: test eax, eax */
   5642     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5643     _cf = 0;
   5644     _flag_k = FK_TEST;
   5645     if (TEST_Z(_flag_a, _flag_b)) goto L_470463AF; /* 0x470463AB: je 0x470463af */
   5646 L_470463AD:
   5647     edi = eax; /* 0x470463AD: mov edi, eax */
   5648 L_470463AF:
   5649     RECOMP_ICALL(0x47039020u); /* 0x470463AF: call 0x47039020 */ /* not lifted */
   5650     RECOMP_FLAGS_IN();
   5651     esi = eax; /* 0x470463B4: mov esi, eax */
   5652     ecx = esi; /* 0x470463B6: mov ecx, esi */
   5653     RECOMP_ICALL(0x4703B210u); /* 0x470463B8: call 0x4703b210 */ /* not lifted */
   5654     RECOMP_FLAGS_IN();
   5655     PUSH32(esp, eax); /* 0x470463BD: push eax */
   5656     ecx = esi; /* 0x470463BE: mov ecx, esi */
   5657     RECOMP_ICALL(0x4703B240u); /* 0x470463C0: call 0x4703b240 */ /* not lifted */
   5658     RECOMP_FLAGS_IN();
   5659     PUSH32(esp, eax); /* 0x470463C5: push eax */
   5660     ecx = esi; /* 0x470463C6: mov ecx, esi */
   5661     RECOMP_ICALL(0x4703B080u); /* 0x470463C8: call 0x4703b080 */ /* not lifted */
   5662     RECOMP_FLAGS_IN();
   5663     PUSH32(esp, eax); /* 0x470463CD: push eax */
   5664     PUSH32(esp, edi); /* 0x470463CE: push edi */
   5665     PUSH32(esp, 0xFFFFFFFFu); /* 0x470463CF: push -1 */
   5666     PUSH32(esp, 0x7Au); /* 0x470463D1: push 0x7a */
   5667     PUSH32(esp, 0x47108644u); /* 0x470463D3: push 0x47108644 */
   5668     ecx = esi; /* 0x470463D8: mov ecx, esi */
   5669     RECOMP_ICALL(0x4703A340u); /* 0x470463DA: call 0x4703a340 */ /* not lifted */
   5670     RECOMP_FLAGS_IN();
   5671     PUSH32(esp, 0x471086CCu); /* 0x470463DF: push 0x471086cc */
   5672     goto L_4704644C; /* 0x470463E4: jmp 0x4704644c */
   5673 L_470463E6:
   5674     ecx = MEM32(esp + 0xC); /* 0x470463E6: mov ecx, dword ptr [esp + 0xc] */
   5675     eax = MEM32(edi + 0x10); /* 0x470463EA: mov eax, dword ptr [edi + 0x10] */
   5676     PUSH32(esp, 0); /* 0x470463ED: push 0 */
   5677     PUSH32(esp, esi); /* 0x470463EF: push esi */
   5678     PUSH32(esp, ecx); /* 0x470463F0: push ecx */
   5679     PUSH32(esp, eax); /* 0x470463F1: push eax */
   5680     RECOMP_ICALL(0x4700D560u); /* 0x470463F2: call 0x4700d560 */ /* not lifted */
   5681     RECOMP_FLAGS_IN();
   5682     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5683     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5684     esp = esp + 0x10u; /* 0x470463F7: add esp, 0x10 */
   5685     _flag_k = FK_ADD;
   5686     /* cmp eax, esi */ /* 0x470463FA: cmp eax, esi */
   5687     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   5688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5689     _flag_k = FK_CMP;
   5690     if (CMP_EQ(_flag_a, _flag_b)) goto L_47046467; /* 0x470463FC: je 0x47046467 */
   5691 L_470463FE:
   5692     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470463FE: call dword ptr [0x470ac150] */
   5693     RECOMP_FLAGS_IN();
   5694     edi = eax; /* 0x47046404: mov edi, eax */
   5695     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47046406: call dword ptr [0x470ac3c8] */
   5696     RECOMP_FLAGS_IN();
   5697     eax = MEM32(eax); /* 0x4704640C: mov eax, dword ptr [eax] */
   5698     /* test eax, eax */ /* 0x4704640E: test eax, eax */
   5699     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5700     _cf = 0;
   5701     _flag_k = FK_TEST;
   5702     if (TEST_Z(_flag_a, _flag_b)) goto L_47046414; /* 0x47046410: je 0x47046414 */
   5703 L_47046412:
   5704     edi = eax; /* 0x47046412: mov edi, eax */
   5705 L_47046414:
   5706     RECOMP_ICALL(0x47039020u); /* 0x47046414: call 0x47039020 */ /* not lifted */
   5707     RECOMP_FLAGS_IN();
   5708     esi = eax; /* 0x47046419: mov esi, eax */
   5709     ecx = esi; /* 0x4704641B: mov ecx, esi */
   5710     RECOMP_ICALL(0x4703B210u); /* 0x4704641D: call 0x4703b210 */ /* not lifted */
   5711     RECOMP_FLAGS_IN();
   5712     PUSH32(esp, eax); /* 0x47046422: push eax */
   5713     ecx = esi; /* 0x47046423: mov ecx, esi */
   5714     RECOMP_ICALL(0x4703B240u); /* 0x47046425: call 0x4703b240 */ /* not lifted */
   5715     RECOMP_FLAGS_IN();
   5716     PUSH32(esp, eax); /* 0x4704642A: push eax */
   5717     ecx = esi; /* 0x4704642B: mov ecx, esi */
   5718     RECOMP_ICALL(0x4703B080u); /* 0x4704642D: call 0x4703b080 */ /* not lifted */
   5719     RECOMP_FLAGS_IN();
   5720     PUSH32(esp, eax); /* 0x47046432: push eax */
   5721     PUSH32(esp, edi); /* 0x47046433: push edi */
   5722     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046434: push -1 */
   5723     PUSH32(esp, 0x82u); /* 0x47046436: push 0x82 */
   5724     PUSH32(esp, 0x47108644u); /* 0x4704643B: push 0x47108644 */
   5725     ecx = esi; /* 0x47046440: mov ecx, esi */
   5726     RECOMP_ICALL(0x4703A340u); /* 0x47046442: call 0x4703a340 */ /* not lifted */
   5727     RECOMP_FLAGS_IN();
   5728     PUSH32(esp, 0x471086BCu); /* 0x47046447: push 0x471086bc */
   5729 L_4704644C:
   5730     PUSH32(esp, 0x471055F0u); /* 0x4704644C: push 0x471055f0 */
   5731     PUSH32(esp, 0x80u); /* 0x47046451: push 0x80 */
   5732     PUSH32(esp, esi); /* 0x47046456: push esi */
   5733     RECOMP_ICALL(0x47039830u); /* 0x47046457: call 0x47039830 */ /* not lifted */
   5734     RECOMP_FLAGS_IN();
   5735     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5736     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5737     esp = esp + 0x10u; /* 0x4704645C: add esp, 0x10 */
   5738     _flag_k = FK_ADD;
   5739     edi = POP32_VAL(esp); /* 0x4704645F: pop edi */
   5740     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5741     eax = eax | 0xFFFFFFFFu; /* 0x47046460: or eax, 0xffffffff */
   5742     _cf = 0;
   5743     _flag_k = FK_TEST;
   5744     esi = POP32_VAL(esp); /* 0x47046463: pop esi */
   5745     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046464: ret 4 */
   5746 L_47046467:
   5747     edi = POP32_VAL(esp); /* 0x47046467: pop edi */
   5748     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5749     eax = 0; /* 0x47046468: xor eax, eax */
   5750     _cf = 0;
   5751     _flag_k = FK_TEST;
   5752     esi = POP32_VAL(esp); /* 0x4704646A: pop esi */
   5753     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4704646B: ret 4 */
   5754     RECOMP_REGS_OUT();
   5755 }
   5756 
   5757 void sub_47046470(void) {
   5758     int _fpu_cmp = 0;
   5759     uint32_t _cf = 0;
   5760     int _df = 1;
   5761     uint32_t _flag_k = FK_NONE;
   5762     uint32_t _flag_a = 0, _flag_b = 0;
   5763     uint32_t _itail_tgt = 0;
   5764     RECOMP_REGS_LOCALS
   5765     RECOMP_ENTER(0x47046470u);
   5766 
   5767 L_47046470:
   5768     PUSH32(esp, ebx); /* 0x47046470: push ebx */
   5769     PUSH32(esp, ebp); /* 0x47046471: push ebp */
   5770     PUSH32(esp, esi); /* 0x47046472: push esi */
   5771     PUSH32(esp, edi); /* 0x47046473: push edi */
   5772     edi = MEM32(esp + 0x14); /* 0x47046474: mov edi, dword ptr [esp + 0x14] */
   5773     PUSH32(esp, 0); /* 0x47046478: push 0 */
   5774     esi = ecx; /* 0x4704647A: mov esi, ecx */
   5775     eax = MEM32(esi + 0x10); /* 0x4704647C: mov eax, dword ptr [esi + 0x10] */
   5776     PUSH32(esp, 4); /* 0x4704647F: push 4 */
   5777     PUSH32(esp, edi); /* 0x47046481: push edi */
   5778     PUSH32(esp, eax); /* 0x47046482: push eax */
   5779     RECOMP_ICALL(0x4700BED0u); /* 0x47046483: call 0x4700bed0 */ /* not lifted */
   5780     RECOMP_FLAGS_IN();
   5781     ebp = MEM32(0x470AC150); /* 0x47046488: mov ebp, dword ptr [0x470ac150] */
   5782     ebx = eax; /* 0x4704648E: mov ebx, eax */
   5783     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5784     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5785     esp = esp + 0x10u; /* 0x47046490: add esp, 0x10 */
   5786     _flag_k = FK_ADD;
   5787     /* cmp ebx, 0xFFFFFFFFu */ /* 0x47046493: cmp ebx, -1 */
   5788     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5789     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5790     _flag_k = FK_CMP;
   5791     if (CMP_EQ(_flag_a, _flag_b)) goto L_470465B6; /* 0x47046496: je 0x470465b6 */
   5792 L_4704649C:
   5793     /* test ebx, ebx */ /* 0x4704649C: test ebx, ebx */
   5794     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5795     _cf = 0;
   5796     _flag_k = FK_TEST;
   5797     if (TEST_Z(_flag_a, _flag_b)) goto L_4704666B; /* 0x4704649E: je 0x4704666b */
   5798 L_470464A4:
   5799     /* cmp ebx, 4 */ /* 0x470464A4: cmp ebx, 4 */
   5800     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   5801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5802     _flag_k = FK_CMP;
   5803     if (CMP_NE(_flag_a, _flag_b)) goto L_4704660B; /* 0x470464A7: jne 0x4704660b */
   5804 L_470464AD:
   5805     ecx = edi; /* 0x470464AD: mov ecx, edi */
   5806     RECOMP_ICALL(0x4708EA50u); /* 0x470464AF: call 0x4708ea50 */ /* not lifted */
   5807     RECOMP_FLAGS_IN();
   5808     PUSH32(esp, eax); /* 0x470464B4: push eax */
   5809     RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x470464B5: call dword ptr [0x470ac4b0] */
   5810     RECOMP_FLAGS_IN();
   5811     esi = MEM32(esi + 0x10); /* 0x470464BB: mov esi, dword ptr [esi + 0x10] */
   5812     ebx = eax; /* 0x470464BE: mov ebx, eax */
   5813     PUSH32(esp, 0); /* 0x470464C0: push 0 */
   5814     eax = ebx + (-0x4); /* 0x470464C2: lea eax, [ebx - 4] */
   5815     PUSH32(esp, eax); /* 0x470464C5: push eax */
   5816     ecx = edi + 0x4; /* 0x470464C6: lea ecx, [edi + 4] */
   5817     PUSH32(esp, ecx); /* 0x470464C9: push ecx */
   5818     PUSH32(esp, esi); /* 0x470464CA: push esi */
   5819     RECOMP_ICALL(0x4700BED0u); /* 0x470464CB: call 0x4700bed0 */ /* not lifted */
   5820     RECOMP_FLAGS_IN();
   5821     ebp = eax; /* 0x470464D0: mov ebp, eax */
   5822     edx = ebx + (-0x4); /* 0x470464D2: lea edx, [ebx - 4] */
   5823     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5824     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5825     esp = esp + 0x10u; /* 0x470464D5: add esp, 0x10 */
   5826     _flag_k = FK_ADD;
   5827     /* cmp ebp, edx */ /* 0x470464D8: cmp ebp, edx */
   5828     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx);
   5829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5830     _flag_k = FK_CMP;
   5831     if (CMP_EQ(_flag_a, _flag_b)) goto L_47046536; /* 0x470464DA: je 0x47046536 */
   5832 L_470464DC:
   5833     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470464DC: call dword ptr [0x470ac150] */
   5834     RECOMP_FLAGS_IN();
   5835     edi = eax; /* 0x470464E2: mov edi, eax */
   5836     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470464E4: call dword ptr [0x470ac3c8] */
   5837     RECOMP_FLAGS_IN();
   5838     eax = MEM32(eax); /* 0x470464EA: mov eax, dword ptr [eax] */
   5839     /* test eax, eax */ /* 0x470464EC: test eax, eax */
   5840     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5841     _cf = 0;
   5842     _flag_k = FK_TEST;
   5843     if (TEST_Z(_flag_a, _flag_b)) goto L_470464F2; /* 0x470464EE: je 0x470464f2 */
   5844 L_470464F0:
   5845     edi = eax; /* 0x470464F0: mov edi, eax */
   5846 L_470464F2:
   5847     RECOMP_ICALL(0x47039020u); /* 0x470464F2: call 0x47039020 */ /* not lifted */
   5848     RECOMP_FLAGS_IN();
   5849     esi = eax; /* 0x470464F7: mov esi, eax */
   5850     ecx = esi; /* 0x470464F9: mov ecx, esi */
   5851     RECOMP_ICALL(0x4703B210u); /* 0x470464FB: call 0x4703b210 */ /* not lifted */
   5852     RECOMP_FLAGS_IN();
   5853     PUSH32(esp, eax); /* 0x47046500: push eax */
   5854     ecx = esi; /* 0x47046501: mov ecx, esi */
   5855     RECOMP_ICALL(0x4703B240u); /* 0x47046503: call 0x4703b240 */ /* not lifted */
   5856     RECOMP_FLAGS_IN();
   5857     PUSH32(esp, eax); /* 0x47046508: push eax */
   5858     ecx = esi; /* 0x47046509: mov ecx, esi */
   5859     RECOMP_ICALL(0x4703B080u); /* 0x4704650B: call 0x4703b080 */ /* not lifted */
   5860     RECOMP_FLAGS_IN();
   5861     PUSH32(esp, eax); /* 0x47046510: push eax */
   5862     PUSH32(esp, edi); /* 0x47046511: push edi */
   5863     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046512: push -1 */
   5864     PUSH32(esp, 0xB2u); /* 0x47046514: push 0xb2 */
   5865     PUSH32(esp, 0x47108644u); /* 0x47046519: push 0x47108644 */
   5866     ecx = esi; /* 0x4704651E: mov ecx, esi */
   5867     RECOMP_ICALL(0x4703A340u); /* 0x47046520: call 0x4703a340 */ /* not lifted */
   5868     RECOMP_FLAGS_IN();
   5869     PUSH32(esp, ebp); /* 0x47046525: push ebp */
   5870     PUSH32(esp, ebx); /* 0x47046526: push ebx */
   5871     PUSH32(esp, 0x47108744u); /* 0x47046527: push 0x47108744 */
   5872     PUSH32(esp, 0x4710872Cu); /* 0x4704652C: push 0x4710872c */
   5873     goto L_4704665D; /* 0x47046531: jmp 0x4704665d */
   5874 L_47046536:
   5875     ecx = edi; /* 0x47046536: mov ecx, edi */
   5876     RECOMP_ICALL(0x47046A60u); /* 0x47046538: call 0x47046a60 */ /* not lifted */
   5877     RECOMP_FLAGS_IN();
   5878     /* cmp eax, 0xFFFFFFFFu */ /* 0x4704653D: cmp eax, -1 */
   5879     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5881     _flag_k = FK_CMP;
   5882     if (CMP_NE(_flag_a, _flag_b)) goto L_470465AD; /* 0x47046540: jne 0x470465ad */
   5883 L_47046542:
   5884     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47046542: call dword ptr [0x470ac150] */
   5885     RECOMP_FLAGS_IN();
   5886     edi = eax; /* 0x47046548: mov edi, eax */
   5887     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704654A: call dword ptr [0x470ac3c8] */
   5888     RECOMP_FLAGS_IN();
   5889     eax = MEM32(eax); /* 0x47046550: mov eax, dword ptr [eax] */
   5890     /* test eax, eax */ /* 0x47046552: test eax, eax */
   5891     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5892     _cf = 0;
   5893     _flag_k = FK_TEST;
   5894     if (TEST_Z(_flag_a, _flag_b)) goto L_47046558; /* 0x47046554: je 0x47046558 */
   5895 L_47046556:
   5896     edi = eax; /* 0x47046556: mov edi, eax */
   5897 L_47046558:
   5898     RECOMP_ICALL(0x47039020u); /* 0x47046558: call 0x47039020 */ /* not lifted */
   5899     RECOMP_FLAGS_IN();
   5900     esi = eax; /* 0x4704655D: mov esi, eax */
   5901     ecx = esi; /* 0x4704655F: mov ecx, esi */
   5902     RECOMP_ICALL(0x4703B210u); /* 0x47046561: call 0x4703b210 */ /* not lifted */
   5903     RECOMP_FLAGS_IN();
   5904     PUSH32(esp, eax); /* 0x47046566: push eax */
   5905     ecx = esi; /* 0x47046567: mov ecx, esi */
   5906     RECOMP_ICALL(0x4703B240u); /* 0x47046569: call 0x4703b240 */ /* not lifted */
   5907     RECOMP_FLAGS_IN();
   5908     PUSH32(esp, eax); /* 0x4704656E: push eax */
   5909     ecx = esi; /* 0x4704656F: mov ecx, esi */
   5910     RECOMP_ICALL(0x4703B080u); /* 0x47046571: call 0x4703b080 */ /* not lifted */
   5911     RECOMP_FLAGS_IN();
   5912     PUSH32(esp, eax); /* 0x47046576: push eax */
   5913     PUSH32(esp, edi); /* 0x47046577: push edi */
   5914     PUSH32(esp, 0xFFFFFFFFu); /* 0x47046578: push -1 */
   5915     PUSH32(esp, 0xBBu); /* 0x4704657A: push 0xbb */
   5916     PUSH32(esp, 0x47108644u); /* 0x4704657F: push 0x47108644 */
   5917     ecx = esi; /* 0x47046584: mov ecx, esi */
   5918     RECOMP_ICALL(0x4703A340u); /* 0x47046586: call 0x4703a340 */ /* not lifted */
   5919     RECOMP_FLAGS_IN();
   5920     PUSH32(esp, 0x471086A0u); /* 0x4704658B: push 0x471086a0 */
   5921     PUSH32(esp, 0x471055F0u); /* 0x47046590: push 0x471055f0 */
   5922     PUSH32(esp, 0x80u); /* 0x47046595: push 0x80 */
   5923     PUSH32(esp, esi); /* 0x4704659A: push esi */
   5924     RECOMP_ICALL(0x47039830u); /* 0x4704659B: call 0x47039830 */ /* not lifted */
   5925     RECOMP_FLAGS_IN();
   5926     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5927     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5928     esp = esp + 0x10u; /* 0x470465A0: add esp, 0x10 */
   5929     _flag_k = FK_ADD;
   5930     edi = POP32_VAL(esp); /* 0x470465A3: pop edi */
   5931     esi = POP32_VAL(esp); /* 0x470465A4: pop esi */
   5932     ebp = POP32_VAL(esp); /* 0x470465A5: pop ebp */
   5933     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5934     eax = eax | 0xFFFFFFFFu; /* 0x470465A6: or eax, 0xffffffff */
   5935     _cf = 0;
   5936     _flag_k = FK_TEST;
   5937     ebx = POP32_VAL(esp); /* 0x470465A9: pop ebx */
   5938     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470465AA: ret 4 */
   5939 L_470465AD:
   5940     edi = POP32_VAL(esp); /* 0x470465AD: pop edi */
   5941     esi = POP32_VAL(esp); /* 0x470465AE: pop esi */
   5942     ebp = POP32_VAL(esp); /* 0x470465AF: pop ebp */
   5943     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5944     eax = 0; /* 0x470465B0: xor eax, eax */
   5945     _cf = 0;
   5946     _flag_k = FK_TEST;
   5947     ebx = POP32_VAL(esp); /* 0x470465B2: pop ebx */
   5948     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470465B3: ret 4 */
   5949 L_470465B6:
   5950     RECOMP_ICALL(ebp); /* 0x470465B6: call ebp */
   5951     RECOMP_FLAGS_IN();
   5952     edi = eax; /* 0x470465B8: mov edi, eax */
   5953     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470465BA: call dword ptr [0x470ac3c8] */
   5954     RECOMP_FLAGS_IN();
   5955     eax = MEM32(eax); /* 0x470465C0: mov eax, dword ptr [eax] */
   5956     /* test eax, eax */ /* 0x470465C2: test eax, eax */
   5957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5958     _cf = 0;
   5959     _flag_k = FK_TEST;
   5960     if (TEST_Z(_flag_a, _flag_b)) goto L_470465C8; /* 0x470465C4: je 0x470465c8 */
   5961 L_470465C6:
   5962     edi = eax; /* 0x470465C6: mov edi, eax */
   5963 L_470465C8:
   5964     RECOMP_ICALL(0x47039020u); /* 0x470465C8: call 0x47039020 */ /* not lifted */
   5965     RECOMP_FLAGS_IN();
   5966     esi = eax; /* 0x470465CD: mov esi, eax */
   5967     ecx = esi; /* 0x470465CF: mov ecx, esi */
   5968     RECOMP_ICALL(0x4703B210u); /* 0x470465D1: call 0x4703b210 */ /* not lifted */
   5969     RECOMP_FLAGS_IN();
   5970     PUSH32(esp, eax); /* 0x470465D6: push eax */
   5971     ecx = esi; /* 0x470465D7: mov ecx, esi */
   5972     RECOMP_ICALL(0x4703B240u); /* 0x470465D9: call 0x4703b240 */ /* not lifted */
   5973     RECOMP_FLAGS_IN();
   5974     PUSH32(esp, eax); /* 0x470465DE: push eax */
   5975     ecx = esi; /* 0x470465DF: mov ecx, esi */
   5976     RECOMP_ICALL(0x4703B080u); /* 0x470465E1: call 0x4703b080 */ /* not lifted */
   5977     RECOMP_FLAGS_IN();
   5978     PUSH32(esp, eax); /* 0x470465E6: push eax */
   5979     PUSH32(esp, edi); /* 0x470465E7: push edi */
   5980     PUSH32(esp, 0); /* 0x470465E8: push 0 */
   5981     PUSH32(esp, 0x94u); /* 0x470465EA: push 0x94 */
   5982     PUSH32(esp, 0x47108644u); /* 0x470465EF: push 0x47108644 */
   5983     ecx = esi; /* 0x470465F4: mov ecx, esi */
   5984     RECOMP_ICALL(0x4703A340u); /* 0x470465F6: call 0x4703a340 */ /* not lifted */
   5985     RECOMP_FLAGS_IN();
   5986     PUSH32(esp, 0x47108700u); /* 0x470465FB: push 0x47108700 */
   5987     PUSH32(esp, 4); /* 0x47046600: push 4 */
   5988     PUSH32(esp, esi); /* 0x47046602: push esi */
   5989     RECOMP_ICALL(0x47039830u); /* 0x47046603: call 0x47039830 */ /* not lifted */
   5990     RECOMP_FLAGS_IN();
   5991     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5992     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5993     esp = esp + 0xCu; /* 0x47046608: add esp, 0xc */
   5994     _flag_k = FK_ADD;
   5995 L_4704660B:
   5996     RECOMP_ICALL(ebp); /* 0x4704660B: call ebp */
   5997     RECOMP_FLAGS_IN();
   5998     edi = eax; /* 0x4704660D: mov edi, eax */
   5999     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4704660F: call dword ptr [0x470ac3c8] */
   6000     RECOMP_FLAGS_IN();
   6001     eax = MEM32(eax); /* 0x47046615: mov eax, dword ptr [eax] */
   6002     /* test eax, eax */ /* 0x47046617: test eax, eax */
   6003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6004     _cf = 0;
   6005     _flag_k = FK_TEST;
   6006     if (TEST_Z(_flag_a, _flag_b)) goto L_4704661D; /* 0x47046619: je 0x4704661d */
   6007 L_4704661B:
   6008     edi = eax; /* 0x4704661B: mov edi, eax */
   6009 L_4704661D:
   6010     RECOMP_ICALL(0x47039020u); /* 0x4704661D: call 0x47039020 */ /* not lifted */
   6011     RECOMP_FLAGS_IN();
   6012     esi = eax; /* 0x47046622: mov esi, eax */
   6013     ecx = esi; /* 0x47046624: mov ecx, esi */
   6014     RECOMP_ICALL(0x4703B210u); /* 0x47046626: call 0x4703b210 */ /* not lifted */
   6015     RECOMP_FLAGS_IN();
   6016     PUSH32(esp, eax); /* 0x4704662B: push eax */
   6017     ecx = esi; /* 0x4704662C: mov ecx, esi */
   6018     RECOMP_ICALL(0x4703B240u); /* 0x4704662E: call 0x4703b240 */ /* not lifted */
   6019     RECOMP_FLAGS_IN();
   6020     PUSH32(esp, eax); /* 0x47046633: push eax */
   6021     ecx = esi; /* 0x47046634: mov ecx, esi */
   6022     RECOMP_ICALL(0x4703B080u); /* 0x47046636: call 0x4703b080 */ /* not lifted */
   6023     RECOMP_FLAGS_IN();
   6024     PUSH32(esp, eax); /* 0x4704663B: push eax */
   6025     PUSH32(esp, edi); /* 0x4704663C: push edi */
   6026     PUSH32(esp, 0xFFFFFFFFu); /* 0x4704663D: push -1 */
   6027     PUSH32(esp, 0x9Au); /* 0x4704663F: push 0x9a */
   6028     PUSH32(esp, 0x47108644u); /* 0x47046644: push 0x47108644 */
   6029     ecx = esi; /* 0x47046649: mov ecx, esi */
   6030     RECOMP_ICALL(0x4703A340u); /* 0x4704664B: call 0x4703a340 */ /* not lifted */
   6031     RECOMP_FLAGS_IN();
   6032     PUSH32(esp, 4); /* 0x47046650: push 4 */
   6033     PUSH32(esp, ebx); /* 0x47046652: push ebx */
   6034     PUSH32(esp, 0x471086B0u); /* 0x47046653: push 0x471086b0 */
   6035     PUSH32(esp, 0x471086DCu); /* 0x47046658: push 0x471086dc */
   6036 L_4704665D:
   6037     PUSH32(esp, 0x80u); /* 0x4704665D: push 0x80 */
   6038     PUSH32(esp, esi); /* 0x47046662: push esi */
   6039     RECOMP_ICALL(0x47039830u); /* 0x47046663: call 0x47039830 */ /* not lifted */
   6040     RECOMP_FLAGS_IN();
   6041     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6042     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6043     esp = esp + 0x18u; /* 0x47046668: add esp, 0x18 */
   6044     _flag_k = FK_ADD;
   6045 L_4704666B:
   6046     edi = POP32_VAL(esp); /* 0x4704666B: pop edi */
   6047     esi = POP32_VAL(esp); /* 0x4704666C: pop esi */
   6048     ebp = POP32_VAL(esp); /* 0x4704666D: pop ebp */
   6049     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6050     eax = eax | 0xFFFFFFFFu; /* 0x4704666E: or eax, 0xffffffff */
   6051     _cf = 0;
   6052     _flag_k = FK_TEST;
   6053     ebx = POP32_VAL(esp); /* 0x47046671: pop ebx */
   6054     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046672: ret 4 */
   6055     RECOMP_REGS_OUT();
   6056 }
   6057 
   6058 void sub_4704665D(void) {
   6059     int _fpu_cmp = 0;
   6060     uint32_t _cf = 0;
   6061     int _df = 1;
   6062     uint32_t _flag_k = FK_NONE;
   6063     uint32_t _flag_a = 0, _flag_b = 0;
   6064     uint32_t _itail_tgt = 0;
   6065     RECOMP_REGS_LOCALS
   6066     RECOMP_ENTER(0x4704665Du);
   6067 
   6068 L_4704665D:
   6069     PUSH32(esp, 0x80u); /* 0x4704665D: push 0x80 */
   6070     PUSH32(esp, esi); /* 0x47046662: push esi */
   6071     RECOMP_ICALL(0x47039830u); /* 0x47046663: call 0x47039830 */ /* not lifted */
   6072     RECOMP_FLAGS_IN();
   6073     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6074     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6075     esp = esp + 0x18u; /* 0x47046668: add esp, 0x18 */
   6076     _flag_k = FK_ADD;
   6077     edi = POP32_VAL(esp); /* 0x4704666B: pop edi */
   6078     esi = POP32_VAL(esp); /* 0x4704666C: pop esi */
   6079     ebp = POP32_VAL(esp); /* 0x4704666D: pop ebp */
   6080     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6081     eax = eax | 0xFFFFFFFFu; /* 0x4704666E: or eax, 0xffffffff */
   6082     _cf = 0;
   6083     _flag_k = FK_TEST;
   6084     ebx = POP32_VAL(esp); /* 0x47046671: pop ebx */
   6085     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47046672: ret 4 */
   6086     RECOMP_REGS_OUT();
   6087 }