aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0011.c (210410B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47013CD0(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(0x47013CD0u);
     13 
     14 L_47013CD0:
     15     PUSH32(esp, 0xFFFFFFFFu); /* 0x47013CD0: push -1 */
     16     PUSH32(esp, 0x470A3DA8u); /* 0x47013CD2: push 0x470a3da8 */
     17     eax = MEM32(FS_BASE + (0)); /* 0x47013CD7: mov eax, dword ptr fs:[0] */
     18     PUSH32(esp, eax); /* 0x47013CDD: push eax */
     19     MEM32(FS_BASE + (0)) = esp; /* 0x47013CDE: mov dword ptr fs:[0], esp */
     20     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     21     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     22     esp = esp - 8; /* 0x47013CE5: sub esp, 8 */
     23     _flag_k = FK_CMP;
     24     PUSH32(esp, ebx); /* 0x47013CE8: push ebx */
     25     PUSH32(esp, esi); /* 0x47013CE9: push esi */
     26     esi = ecx; /* 0x47013CEA: mov esi, ecx */
     27     PUSH32(esp, edi); /* 0x47013CEC: push edi */
     28     eax = esi + 0x28; /* 0x47013CED: lea eax, [esi + 0x28] */
     29     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     30     edi = 0; /* 0x47013CF0: xor edi, edi */
     31     _cf = 0;
     32     _flag_k = FK_TEST;
     33     PUSH32(esp, eax); /* 0x47013CF2: push eax */
     34     MEM32(esp + 0x10) = eax; /* 0x47013CF3: mov dword ptr [esp + 0x10], eax */
     35     MEM32(esp + 0x14) = edi; /* 0x47013CF7: mov dword ptr [esp + 0x14], edi */
     36     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47013CFB: call dword ptr [0x470ac180] */
     37     RECOMP_FLAGS_IN();
     38     MEM32(esp + 0x10) = edi; /* 0x47013D01: mov dword ptr [esp + 0x10], edi */
     39     /* cmp MEM32(esi + 0x20), edi */ /* 0x47013D05: cmp dword ptr [esi + 0x20], edi */
     40     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
     41     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     42     _flag_k = FK_CMP;
     43     MEM32(esp + 0x1C) = edi; /* 0x47013D08: mov dword ptr [esp + 0x1c], edi */
     44     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013D4A; /* 0x47013D0C: je 0x47013d4a */
     45 L_47013D0E:
     46     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47013D0E: call dword ptr [0x470ac3c8] */
     47     RECOMP_FLAGS_IN();
     48     MEM32(eax) = 0x274Au; /* 0x47013D14: mov dword ptr [eax], 0x274a */
     49     eax = MEM32(esp + 0x10); /* 0x47013D1A: mov eax, dword ptr [esp + 0x10] */
     50     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
     51     ebx = ebx | 0xFFFFFFFFu; /* 0x47013D1E: or ebx, 0xffffffff */
     52     _cf = 0;
     53     _flag_k = FK_TEST;
     54     /* cmp eax, ebx */ /* 0x47013D21: cmp eax, ebx */
     55     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
     56     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     57     _flag_k = FK_CMP;
     58     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013D34; /* 0x47013D23: je 0x47013d34 */
     59 L_47013D25:
     60     eax = MEM32(esp + 0xC); /* 0x47013D25: mov eax, dword ptr [esp + 0xc] */
     61     PUSH32(esp, eax); /* 0x47013D29: push eax */
     62     MEM32(esp + 0x14) = ebx; /* 0x47013D2A: mov dword ptr [esp + 0x14], ebx */
     63     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013D2E: call dword ptr [0x470ac190] */
     64     RECOMP_FLAGS_IN();
     65 L_47013D34:
     66     edi = POP32_VAL(esp); /* 0x47013D34: pop edi */
     67     esi = POP32_VAL(esp); /* 0x47013D35: pop esi */
     68     eax = ebx; /* 0x47013D36: mov eax, ebx */
     69     ebx = POP32_VAL(esp); /* 0x47013D38: pop ebx */
     70     ecx = MEM32(esp + 0x8); /* 0x47013D39: mov ecx, dword ptr [esp + 8] */
     71     MEM32(FS_BASE + (0)) = ecx; /* 0x47013D3D: mov dword ptr fs:[0], ecx */
     72     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     73     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     74     esp = esp + 0x14u; /* 0x47013D44: add esp, 0x14 */
     75     _flag_k = FK_ADD;
     76     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013D47: ret 8 */
     77 L_47013D4A:
     78     eax = MEM32(esp + 0x28); /* 0x47013D4A: mov eax, dword ptr [esp + 0x28] */
     79     edx = MEM32(esi); /* 0x47013D4E: mov edx, dword ptr [esi] */
     80     PUSH32(esp, eax); /* 0x47013D50: push eax */
     81     ecx = esp + 0x10; /* 0x47013D51: lea ecx, [esp + 0x10] */
     82     PUSH32(esp, ecx); /* 0x47013D55: push ecx */
     83     ecx = esi; /* 0x47013D56: mov ecx, esi */
     84     RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x47013D58: call dword ptr [edx + 0x90] */
     85     RECOMP_FLAGS_IN();
     86     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
     87     ebx = ebx | 0xFFFFFFFFu; /* 0x47013D5E: or ebx, 0xffffffff */
     88     _cf = 0;
     89     _flag_k = FK_TEST;
     90     /* cmp eax, ebx */ /* 0x47013D61: cmp eax, ebx */
     91     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
     92     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     93     _flag_k = FK_CMP;
     94     if (CMP_NE(_flag_a, _flag_b)) goto L_47013D90; /* 0x47013D63: jne 0x47013d90 */
     95 L_47013D65:
     96     /* cmp MEM32(esp + 0x10), ebx */ /* 0x47013D65: cmp dword ptr [esp + 0x10], ebx */
     97     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebx);
     98     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     99     _flag_k = FK_CMP;
    100     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013D7A; /* 0x47013D69: je 0x47013d7a */
    101 L_47013D6B:
    102     edx = MEM32(esp + 0xC); /* 0x47013D6B: mov edx, dword ptr [esp + 0xc] */
    103     PUSH32(esp, edx); /* 0x47013D6F: push edx */
    104     MEM32(esp + 0x14) = ebx; /* 0x47013D70: mov dword ptr [esp + 0x14], ebx */
    105     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013D74: call dword ptr [0x470ac190] */
    106     RECOMP_FLAGS_IN();
    107 L_47013D7A:
    108     edi = POP32_VAL(esp); /* 0x47013D7A: pop edi */
    109     esi = POP32_VAL(esp); /* 0x47013D7B: pop esi */
    110     eax = ebx; /* 0x47013D7C: mov eax, ebx */
    111     ebx = POP32_VAL(esp); /* 0x47013D7E: pop ebx */
    112     ecx = MEM32(esp + 0x8); /* 0x47013D7F: mov ecx, dword ptr [esp + 8] */
    113     MEM32(FS_BASE + (0)) = ecx; /* 0x47013D83: mov dword ptr fs:[0], ecx */
    114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    116     esp = esp + 0x14u; /* 0x47013D8A: add esp, 0x14 */
    117     _flag_k = FK_ADD;
    118     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013D8D: ret 8 */
    119 L_47013D90:
    120     ecx = MEM32(esp + 0x24); /* 0x47013D90: mov ecx, dword ptr [esp + 0x24] */
    121     eax = MEM32(esi); /* 0x47013D94: mov eax, dword ptr [esi] */
    122     PUSH32(esp, ecx); /* 0x47013D96: push ecx */
    123     ecx = esi; /* 0x47013D97: mov ecx, esi */
    124     RECOMP_ICALL(MEM32(eax + 0x74)); /* 0x47013D99: call dword ptr [eax + 0x74] */
    125     RECOMP_FLAGS_IN();
    126     edi = eax; /* 0x47013D9C: mov edi, eax */
    127     /* cmp edi, ebx */ /* 0x47013D9E: cmp edi, ebx */
    128     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    130     _flag_k = FK_CMP;
    131     RECOMP_BACKEDGE();
    132     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013D65; /* 0x47013DA0: je 0x47013d65 */
    133 L_47013DA2:
    134     eax = MEM32(esi); /* 0x47013DA2: mov eax, dword ptr [esi] */
    135     ecx = esi; /* 0x47013DA4: mov ecx, esi */
    136     RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x47013DA6: call dword ptr [eax + 0x64] */
    137     RECOMP_FLAGS_IN();
    138     /* cmp MEM32(esp + 0x10), ebx */ /* 0x47013DA9: cmp dword ptr [esp + 0x10], ebx */
    139     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebx);
    140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    141     _flag_k = FK_CMP;
    142     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013DBE; /* 0x47013DAD: je 0x47013dbe */
    143 L_47013DAF:
    144     ecx = MEM32(esp + 0xC); /* 0x47013DAF: mov ecx, dword ptr [esp + 0xc] */
    145     PUSH32(esp, ecx); /* 0x47013DB3: push ecx */
    146     MEM32(esp + 0x14) = ebx; /* 0x47013DB4: mov dword ptr [esp + 0x14], ebx */
    147     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013DB8: call dword ptr [0x470ac190] */
    148     RECOMP_FLAGS_IN();
    149 L_47013DBE:
    150     ecx = MEM32(esp + 0x14); /* 0x47013DBE: mov ecx, dword ptr [esp + 0x14] */
    151     eax = edi; /* 0x47013DC2: mov eax, edi */
    152     edi = POP32_VAL(esp); /* 0x47013DC4: pop edi */
    153     esi = POP32_VAL(esp); /* 0x47013DC5: pop esi */
    154     ebx = POP32_VAL(esp); /* 0x47013DC6: pop ebx */
    155     MEM32(FS_BASE + (0)) = ecx; /* 0x47013DC7: mov dword ptr fs:[0], ecx */
    156     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    157     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    158     esp = esp + 0x14u; /* 0x47013DCE: add esp, 0x14 */
    159     _flag_k = FK_ADD;
    160     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013DD1: ret 8 */
    161     RECOMP_REGS_OUT();
    162 }
    163 
    164 void sub_47013DE0(void) {
    165     int _fpu_cmp = 0;
    166     uint32_t _cf = 0;
    167     int _df = 1;
    168     uint32_t _flag_k = FK_NONE;
    169     uint32_t _flag_a = 0, _flag_b = 0;
    170     uint32_t _itail_tgt = 0;
    171     RECOMP_REGS_LOCALS
    172     RECOMP_ENTER(0x47013DE0u);
    173 
    174 L_47013DE0:
    175     PUSH32(esp, 0xFFFFFFFFu); /* 0x47013DE0: push -1 */
    176     PUSH32(esp, 0x470A3DC8u); /* 0x47013DE2: push 0x470a3dc8 */
    177     eax = MEM32(FS_BASE + (0)); /* 0x47013DE7: mov eax, dword ptr fs:[0] */
    178     PUSH32(esp, eax); /* 0x47013DED: push eax */
    179     MEM32(FS_BASE + (0)) = esp; /* 0x47013DEE: mov dword ptr fs:[0], esp */
    180     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    182     esp = esp - 8; /* 0x47013DF5: sub esp, 8 */
    183     _flag_k = FK_CMP;
    184     PUSH32(esp, ebx); /* 0x47013DF8: push ebx */
    185     PUSH32(esp, esi); /* 0x47013DF9: push esi */
    186     esi = ecx; /* 0x47013DFA: mov esi, ecx */
    187     PUSH32(esp, edi); /* 0x47013DFC: push edi */
    188     eax = esi + 0x28; /* 0x47013DFD: lea eax, [esi + 0x28] */
    189     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    190     edi = 0; /* 0x47013E00: xor edi, edi */
    191     _cf = 0;
    192     _flag_k = FK_TEST;
    193     PUSH32(esp, eax); /* 0x47013E02: push eax */
    194     MEM32(esp + 0x10) = eax; /* 0x47013E03: mov dword ptr [esp + 0x10], eax */
    195     MEM32(esp + 0x14) = edi; /* 0x47013E07: mov dword ptr [esp + 0x14], edi */
    196     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47013E0B: call dword ptr [0x470ac180] */
    197     RECOMP_FLAGS_IN();
    198     MEM32(esp + 0x10) = edi; /* 0x47013E11: mov dword ptr [esp + 0x10], edi */
    199     /* cmp MEM32(esi + 0x20), edi */ /* 0x47013E15: cmp dword ptr [esi + 0x20], edi */
    200     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
    201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    202     _flag_k = FK_CMP;
    203     MEM32(esp + 0x1C) = edi; /* 0x47013E18: mov dword ptr [esp + 0x1c], edi */
    204     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013E5A; /* 0x47013E1C: je 0x47013e5a */
    205 L_47013E1E:
    206     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47013E1E: call dword ptr [0x470ac3c8] */
    207     RECOMP_FLAGS_IN();
    208     MEM32(eax) = 0x274Au; /* 0x47013E24: mov dword ptr [eax], 0x274a */
    209     eax = MEM32(esp + 0x10); /* 0x47013E2A: mov eax, dword ptr [esp + 0x10] */
    210     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
    211     ebx = ebx | 0xFFFFFFFFu; /* 0x47013E2E: or ebx, 0xffffffff */
    212     _cf = 0;
    213     _flag_k = FK_TEST;
    214     /* cmp eax, ebx */ /* 0x47013E31: cmp eax, ebx */
    215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    217     _flag_k = FK_CMP;
    218     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013E44; /* 0x47013E33: je 0x47013e44 */
    219 L_47013E35:
    220     eax = MEM32(esp + 0xC); /* 0x47013E35: mov eax, dword ptr [esp + 0xc] */
    221     PUSH32(esp, eax); /* 0x47013E39: push eax */
    222     MEM32(esp + 0x14) = ebx; /* 0x47013E3A: mov dword ptr [esp + 0x14], ebx */
    223     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013E3E: call dword ptr [0x470ac190] */
    224     RECOMP_FLAGS_IN();
    225 L_47013E44:
    226     edi = POP32_VAL(esp); /* 0x47013E44: pop edi */
    227     esi = POP32_VAL(esp); /* 0x47013E45: pop esi */
    228     eax = ebx; /* 0x47013E46: mov eax, ebx */
    229     ebx = POP32_VAL(esp); /* 0x47013E48: pop ebx */
    230     ecx = MEM32(esp + 0x8); /* 0x47013E49: mov ecx, dword ptr [esp + 8] */
    231     MEM32(FS_BASE + (0)) = ecx; /* 0x47013E4D: mov dword ptr fs:[0], ecx */
    232     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    233     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    234     esp = esp + 0x14u; /* 0x47013E54: add esp, 0x14 */
    235     _flag_k = FK_ADD;
    236     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013E57: ret 8 */
    237 L_47013E5A:
    238     eax = MEM32(esp + 0x28); /* 0x47013E5A: mov eax, dword ptr [esp + 0x28] */
    239     edx = MEM32(esi); /* 0x47013E5E: mov edx, dword ptr [esi] */
    240     PUSH32(esp, eax); /* 0x47013E60: push eax */
    241     ecx = esp + 0x10; /* 0x47013E61: lea ecx, [esp + 0x10] */
    242     PUSH32(esp, ecx); /* 0x47013E65: push ecx */
    243     ecx = esi; /* 0x47013E66: mov ecx, esi */
    244     RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x47013E68: call dword ptr [edx + 0x90] */
    245     RECOMP_FLAGS_IN();
    246     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
    247     ebx = ebx | 0xFFFFFFFFu; /* 0x47013E6E: or ebx, 0xffffffff */
    248     _cf = 0;
    249     _flag_k = FK_TEST;
    250     /* cmp eax, ebx */ /* 0x47013E71: cmp eax, ebx */
    251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    253     _flag_k = FK_CMP;
    254     if (CMP_NE(_flag_a, _flag_b)) goto L_47013EA0; /* 0x47013E73: jne 0x47013ea0 */
    255 L_47013E75:
    256     /* cmp MEM32(esp + 0x10), ebx */ /* 0x47013E75: cmp dword ptr [esp + 0x10], ebx */
    257     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebx);
    258     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    259     _flag_k = FK_CMP;
    260     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013E8A; /* 0x47013E79: je 0x47013e8a */
    261 L_47013E7B:
    262     edx = MEM32(esp + 0xC); /* 0x47013E7B: mov edx, dword ptr [esp + 0xc] */
    263     PUSH32(esp, edx); /* 0x47013E7F: push edx */
    264     MEM32(esp + 0x14) = ebx; /* 0x47013E80: mov dword ptr [esp + 0x14], ebx */
    265     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013E84: call dword ptr [0x470ac190] */
    266     RECOMP_FLAGS_IN();
    267 L_47013E8A:
    268     edi = POP32_VAL(esp); /* 0x47013E8A: pop edi */
    269     esi = POP32_VAL(esp); /* 0x47013E8B: pop esi */
    270     eax = ebx; /* 0x47013E8C: mov eax, ebx */
    271     ebx = POP32_VAL(esp); /* 0x47013E8E: pop ebx */
    272     ecx = MEM32(esp + 0x8); /* 0x47013E8F: mov ecx, dword ptr [esp + 8] */
    273     MEM32(FS_BASE + (0)) = ecx; /* 0x47013E93: mov dword ptr fs:[0], ecx */
    274     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    275     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    276     esp = esp + 0x14u; /* 0x47013E9A: add esp, 0x14 */
    277     _flag_k = FK_ADD;
    278     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013E9D: ret 8 */
    279 L_47013EA0:
    280     ecx = MEM32(esp + 0x24); /* 0x47013EA0: mov ecx, dword ptr [esp + 0x24] */
    281     eax = MEM32(esi); /* 0x47013EA4: mov eax, dword ptr [esi] */
    282     PUSH32(esp, ecx); /* 0x47013EA6: push ecx */
    283     ecx = esi; /* 0x47013EA7: mov ecx, esi */
    284     RECOMP_ICALL(MEM32(eax + 0x78)); /* 0x47013EA9: call dword ptr [eax + 0x78] */
    285     RECOMP_FLAGS_IN();
    286     edi = eax; /* 0x47013EAC: mov edi, eax */
    287     /* cmp edi, ebx */ /* 0x47013EAE: cmp edi, ebx */
    288     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    290     _flag_k = FK_CMP;
    291     RECOMP_BACKEDGE();
    292     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013E75; /* 0x47013EB0: je 0x47013e75 */
    293 L_47013EB2:
    294     eax = MEM32(esi); /* 0x47013EB2: mov eax, dword ptr [esi] */
    295     ecx = esi; /* 0x47013EB4: mov ecx, esi */
    296     RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x47013EB6: call dword ptr [eax + 0x64] */
    297     RECOMP_FLAGS_IN();
    298     /* cmp MEM32(esp + 0x10), ebx */ /* 0x47013EB9: cmp dword ptr [esp + 0x10], ebx */
    299     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebx);
    300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    301     _flag_k = FK_CMP;
    302     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013ECE; /* 0x47013EBD: je 0x47013ece */
    303 L_47013EBF:
    304     ecx = MEM32(esp + 0xC); /* 0x47013EBF: mov ecx, dword ptr [esp + 0xc] */
    305     PUSH32(esp, ecx); /* 0x47013EC3: push ecx */
    306     MEM32(esp + 0x14) = ebx; /* 0x47013EC4: mov dword ptr [esp + 0x14], ebx */
    307     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013EC8: call dword ptr [0x470ac190] */
    308     RECOMP_FLAGS_IN();
    309 L_47013ECE:
    310     ecx = MEM32(esp + 0x14); /* 0x47013ECE: mov ecx, dword ptr [esp + 0x14] */
    311     eax = edi; /* 0x47013ED2: mov eax, edi */
    312     edi = POP32_VAL(esp); /* 0x47013ED4: pop edi */
    313     esi = POP32_VAL(esp); /* 0x47013ED5: pop esi */
    314     ebx = POP32_VAL(esp); /* 0x47013ED6: pop ebx */
    315     MEM32(FS_BASE + (0)) = ecx; /* 0x47013ED7: mov dword ptr fs:[0], ecx */
    316     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    317     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    318     esp = esp + 0x14u; /* 0x47013EDE: add esp, 0x14 */
    319     _flag_k = FK_ADD;
    320     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013EE1: ret 8 */
    321     RECOMP_REGS_OUT();
    322 }
    323 
    324 void sub_47013E00(void) {
    325     int _fpu_cmp = 0;
    326     uint32_t _cf = 0;
    327     int _df = 1;
    328     uint32_t _flag_k = FK_NONE;
    329     uint32_t _flag_a = 0, _flag_b = 0;
    330     uint32_t _itail_tgt = 0;
    331     RECOMP_REGS_LOCALS
    332     RECOMP_ENTER(0x47013E00u);
    333 
    334 L_47013E00:
    335     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    336     edi = 0; /* 0x47013E00: xor edi, edi */
    337     _cf = 0;
    338     _flag_k = FK_TEST;
    339     PUSH32(esp, eax); /* 0x47013E02: push eax */
    340     MEM32(esp + 0x10) = eax; /* 0x47013E03: mov dword ptr [esp + 0x10], eax */
    341     MEM32(esp + 0x14) = edi; /* 0x47013E07: mov dword ptr [esp + 0x14], edi */
    342     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47013E0B: call dword ptr [0x470ac180] */
    343     RECOMP_FLAGS_IN();
    344     MEM32(esp + 0x10) = edi; /* 0x47013E11: mov dword ptr [esp + 0x10], edi */
    345     /* cmp MEM32(esi + 0x20), edi */ /* 0x47013E15: cmp dword ptr [esi + 0x20], edi */
    346     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
    347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    348     _flag_k = FK_CMP;
    349     MEM32(esp + 0x1C) = edi; /* 0x47013E18: mov dword ptr [esp + 0x1c], edi */
    350     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013E5A; /* 0x47013E1C: je 0x47013e5a */
    351 L_47013E1E:
    352     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47013E1E: call dword ptr [0x470ac3c8] */
    353     RECOMP_FLAGS_IN();
    354     MEM32(eax) = 0x274Au; /* 0x47013E24: mov dword ptr [eax], 0x274a */
    355     eax = MEM32(esp + 0x10); /* 0x47013E2A: mov eax, dword ptr [esp + 0x10] */
    356     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
    357     ebx = ebx | 0xFFFFFFFFu; /* 0x47013E2E: or ebx, 0xffffffff */
    358     _cf = 0;
    359     _flag_k = FK_TEST;
    360     /* cmp eax, ebx */ /* 0x47013E31: cmp eax, ebx */
    361     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    363     _flag_k = FK_CMP;
    364     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013E44; /* 0x47013E33: je 0x47013e44 */
    365 L_47013E35:
    366     eax = MEM32(esp + 0xC); /* 0x47013E35: mov eax, dword ptr [esp + 0xc] */
    367     PUSH32(esp, eax); /* 0x47013E39: push eax */
    368     MEM32(esp + 0x14) = ebx; /* 0x47013E3A: mov dword ptr [esp + 0x14], ebx */
    369     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013E3E: call dword ptr [0x470ac190] */
    370     RECOMP_FLAGS_IN();
    371 L_47013E44:
    372     edi = POP32_VAL(esp); /* 0x47013E44: pop edi */
    373     esi = POP32_VAL(esp); /* 0x47013E45: pop esi */
    374     eax = ebx; /* 0x47013E46: mov eax, ebx */
    375     ebx = POP32_VAL(esp); /* 0x47013E48: pop ebx */
    376     ecx = MEM32(esp + 0x8); /* 0x47013E49: mov ecx, dword ptr [esp + 8] */
    377     MEM32(FS_BASE + (0)) = ecx; /* 0x47013E4D: mov dword ptr fs:[0], ecx */
    378     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    379     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    380     esp = esp + 0x14u; /* 0x47013E54: add esp, 0x14 */
    381     _flag_k = FK_ADD;
    382     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013E57: ret 8 */
    383 L_47013E5A:
    384     eax = MEM32(esp + 0x28); /* 0x47013E5A: mov eax, dword ptr [esp + 0x28] */
    385     edx = MEM32(esi); /* 0x47013E5E: mov edx, dword ptr [esi] */
    386     PUSH32(esp, eax); /* 0x47013E60: push eax */
    387     ecx = esp + 0x10; /* 0x47013E61: lea ecx, [esp + 0x10] */
    388     PUSH32(esp, ecx); /* 0x47013E65: push ecx */
    389     ecx = esi; /* 0x47013E66: mov ecx, esi */
    390     RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x47013E68: call dword ptr [edx + 0x90] */
    391     RECOMP_FLAGS_IN();
    392     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
    393     ebx = ebx | 0xFFFFFFFFu; /* 0x47013E6E: or ebx, 0xffffffff */
    394     _cf = 0;
    395     _flag_k = FK_TEST;
    396     /* cmp eax, ebx */ /* 0x47013E71: cmp eax, ebx */
    397     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    399     _flag_k = FK_CMP;
    400     if (CMP_NE(_flag_a, _flag_b)) goto L_47013EA0; /* 0x47013E73: jne 0x47013ea0 */
    401 L_47013E75:
    402     /* cmp MEM32(esp + 0x10), ebx */ /* 0x47013E75: cmp dword ptr [esp + 0x10], ebx */
    403     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebx);
    404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    405     _flag_k = FK_CMP;
    406     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013E8A; /* 0x47013E79: je 0x47013e8a */
    407 L_47013E7B:
    408     edx = MEM32(esp + 0xC); /* 0x47013E7B: mov edx, dword ptr [esp + 0xc] */
    409     PUSH32(esp, edx); /* 0x47013E7F: push edx */
    410     MEM32(esp + 0x14) = ebx; /* 0x47013E80: mov dword ptr [esp + 0x14], ebx */
    411     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013E84: call dword ptr [0x470ac190] */
    412     RECOMP_FLAGS_IN();
    413 L_47013E8A:
    414     edi = POP32_VAL(esp); /* 0x47013E8A: pop edi */
    415     esi = POP32_VAL(esp); /* 0x47013E8B: pop esi */
    416     eax = ebx; /* 0x47013E8C: mov eax, ebx */
    417     ebx = POP32_VAL(esp); /* 0x47013E8E: pop ebx */
    418     ecx = MEM32(esp + 0x8); /* 0x47013E8F: mov ecx, dword ptr [esp + 8] */
    419     MEM32(FS_BASE + (0)) = ecx; /* 0x47013E93: mov dword ptr fs:[0], ecx */
    420     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    421     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    422     esp = esp + 0x14u; /* 0x47013E9A: add esp, 0x14 */
    423     _flag_k = FK_ADD;
    424     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013E9D: ret 8 */
    425 L_47013EA0:
    426     ecx = MEM32(esp + 0x24); /* 0x47013EA0: mov ecx, dword ptr [esp + 0x24] */
    427     eax = MEM32(esi); /* 0x47013EA4: mov eax, dword ptr [esi] */
    428     PUSH32(esp, ecx); /* 0x47013EA6: push ecx */
    429     ecx = esi; /* 0x47013EA7: mov ecx, esi */
    430     RECOMP_ICALL(MEM32(eax + 0x78)); /* 0x47013EA9: call dword ptr [eax + 0x78] */
    431     RECOMP_FLAGS_IN();
    432     edi = eax; /* 0x47013EAC: mov edi, eax */
    433     /* cmp edi, ebx */ /* 0x47013EAE: cmp edi, ebx */
    434     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    436     _flag_k = FK_CMP;
    437     RECOMP_BACKEDGE();
    438     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013E75; /* 0x47013EB0: je 0x47013e75 */
    439 L_47013EB2:
    440     eax = MEM32(esi); /* 0x47013EB2: mov eax, dword ptr [esi] */
    441     ecx = esi; /* 0x47013EB4: mov ecx, esi */
    442     RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x47013EB6: call dword ptr [eax + 0x64] */
    443     RECOMP_FLAGS_IN();
    444     /* cmp MEM32(esp + 0x10), ebx */ /* 0x47013EB9: cmp dword ptr [esp + 0x10], ebx */
    445     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebx);
    446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    447     _flag_k = FK_CMP;
    448     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013ECE; /* 0x47013EBD: je 0x47013ece */
    449 L_47013EBF:
    450     ecx = MEM32(esp + 0xC); /* 0x47013EBF: mov ecx, dword ptr [esp + 0xc] */
    451     PUSH32(esp, ecx); /* 0x47013EC3: push ecx */
    452     MEM32(esp + 0x14) = ebx; /* 0x47013EC4: mov dword ptr [esp + 0x14], ebx */
    453     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013EC8: call dword ptr [0x470ac190] */
    454     RECOMP_FLAGS_IN();
    455 L_47013ECE:
    456     ecx = MEM32(esp + 0x14); /* 0x47013ECE: mov ecx, dword ptr [esp + 0x14] */
    457     eax = edi; /* 0x47013ED2: mov eax, edi */
    458     edi = POP32_VAL(esp); /* 0x47013ED4: pop edi */
    459     esi = POP32_VAL(esp); /* 0x47013ED5: pop esi */
    460     ebx = POP32_VAL(esp); /* 0x47013ED6: pop ebx */
    461     MEM32(FS_BASE + (0)) = ecx; /* 0x47013ED7: mov dword ptr fs:[0], ecx */
    462     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    463     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    464     esp = esp + 0x14u; /* 0x47013EDE: add esp, 0x14 */
    465     _flag_k = FK_ADD;
    466     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013EE1: ret 8 */
    467     RECOMP_REGS_OUT();
    468 }
    469 
    470 void sub_47013EF0(void) {
    471     int _fpu_cmp = 0;
    472     uint32_t _cf = 0;
    473     int _df = 1;
    474     uint32_t _flag_k = FK_NONE;
    475     uint32_t _flag_a = 0, _flag_b = 0;
    476     uint32_t _itail_tgt = 0;
    477     RECOMP_REGS_LOCALS
    478     RECOMP_ENTER(0x47013EF0u);
    479 
    480 L_47013EF0:
    481     edx = MEM32(esp + 0x8); /* 0x47013EF0: mov edx, dword ptr [esp + 8] */
    482     eax = MEM32(ecx); /* 0x47013EF4: mov eax, dword ptr [ecx] */
    483     PUSH32(esp, edx); /* 0x47013EF6: push edx */
    484     edx = MEM32(esp + 0x8); /* 0x47013EF7: mov edx, dword ptr [esp + 8] */
    485     PUSH32(esp, edx); /* 0x47013EFB: push edx */
    486     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x47013EFC: call dword ptr [eax + 0x10] */
    487     RECOMP_FLAGS_IN();
    488     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013EFF: ret 8 */
    489     RECOMP_REGS_OUT();
    490 }
    491 
    492 void sub_47013F10(void) {
    493     int _fpu_cmp = 0;
    494     uint32_t _cf = 0;
    495     int _df = 1;
    496     uint32_t _flag_k = FK_NONE;
    497     uint32_t _flag_a = 0, _flag_b = 0;
    498     uint32_t _itail_tgt = 0;
    499     RECOMP_REGS_LOCALS
    500     RECOMP_ENTER(0x47013F10u);
    501 
    502 L_47013F10:
    503     PUSH32(esp, 0xFFFFFFFFu); /* 0x47013F10: push -1 */
    504     PUSH32(esp, 0x470A3DE8u); /* 0x47013F12: push 0x470a3de8 */
    505     eax = MEM32(FS_BASE + (0)); /* 0x47013F17: mov eax, dword ptr fs:[0] */
    506     PUSH32(esp, eax); /* 0x47013F1D: push eax */
    507     MEM32(FS_BASE + (0)) = esp; /* 0x47013F1E: mov dword ptr fs:[0], esp */
    508     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    510     esp = esp - 8; /* 0x47013F25: sub esp, 8 */
    511     _flag_k = FK_CMP;
    512     PUSH32(esp, esi); /* 0x47013F28: push esi */
    513     esi = ecx; /* 0x47013F29: mov esi, ecx */
    514     PUSH32(esp, edi); /* 0x47013F2B: push edi */
    515     eax = esi + 0x28; /* 0x47013F2C: lea eax, [esi + 0x28] */
    516     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    517     edi = 0; /* 0x47013F2F: xor edi, edi */
    518     _cf = 0;
    519     _flag_k = FK_TEST;
    520     PUSH32(esp, eax); /* 0x47013F31: push eax */
    521     MEM32(esp + 0xC) = eax; /* 0x47013F32: mov dword ptr [esp + 0xc], eax */
    522     MEM32(esp + 0x10) = edi; /* 0x47013F36: mov dword ptr [esp + 0x10], edi */
    523     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47013F3A: call dword ptr [0x470ac180] */
    524     RECOMP_FLAGS_IN();
    525     MEM32(esp + 0xC) = edi; /* 0x47013F40: mov dword ptr [esp + 0xc], edi */
    526     /* cmp MEM32(esi + 0x20), edi */ /* 0x47013F44: cmp dword ptr [esi + 0x20], edi */
    527     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
    528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    529     _flag_k = FK_CMP;
    530     MEM32(esp + 0x18) = edi; /* 0x47013F47: mov dword ptr [esp + 0x18], edi */
    531     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013F88; /* 0x47013F4B: je 0x47013f88 */
    532 L_47013F4D:
    533     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47013F4D: call dword ptr [0x470ac3c8] */
    534     RECOMP_FLAGS_IN();
    535     MEM32(eax) = 0x274Au; /* 0x47013F53: mov dword ptr [eax], 0x274a */
    536     eax = MEM32(esp + 0xC); /* 0x47013F59: mov eax, dword ptr [esp + 0xc] */
    537     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
    538     edi = edi | 0xFFFFFFFFu; /* 0x47013F5D: or edi, 0xffffffff */
    539     _cf = 0;
    540     _flag_k = FK_TEST;
    541     /* cmp eax, edi */ /* 0x47013F60: cmp eax, edi */
    542     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    544     _flag_k = FK_CMP;
    545     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013F73; /* 0x47013F62: je 0x47013f73 */
    546 L_47013F64:
    547     eax = MEM32(esp + 0x8); /* 0x47013F64: mov eax, dword ptr [esp + 8] */
    548     PUSH32(esp, eax); /* 0x47013F68: push eax */
    549     MEM32(esp + 0x10) = edi; /* 0x47013F69: mov dword ptr [esp + 0x10], edi */
    550     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013F6D: call dword ptr [0x470ac190] */
    551     RECOMP_FLAGS_IN();
    552 L_47013F73:
    553     eax = edi; /* 0x47013F73: mov eax, edi */
    554     edi = POP32_VAL(esp); /* 0x47013F75: pop edi */
    555     esi = POP32_VAL(esp); /* 0x47013F76: pop esi */
    556     ecx = MEM32(esp + 0x8); /* 0x47013F77: mov ecx, dword ptr [esp + 8] */
    557     MEM32(FS_BASE + (0)) = ecx; /* 0x47013F7B: mov dword ptr fs:[0], ecx */
    558     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    560     esp = esp + 0x14u; /* 0x47013F82: add esp, 0x14 */
    561     _flag_k = FK_ADD;
    562     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013F85: ret 8 */
    563 L_47013F88:
    564     eax = MEM32(esp + 0x24); /* 0x47013F88: mov eax, dword ptr [esp + 0x24] */
    565     edx = MEM32(esi); /* 0x47013F8C: mov edx, dword ptr [esi] */
    566     PUSH32(esp, eax); /* 0x47013F8E: push eax */
    567     ecx = esp + 0xC; /* 0x47013F8F: lea ecx, [esp + 0xc] */
    568     PUSH32(esp, ecx); /* 0x47013F93: push ecx */
    569     ecx = esi; /* 0x47013F94: mov ecx, esi */
    570     RECOMP_ICALL(MEM32(edx + 0x94)); /* 0x47013F96: call dword ptr [edx + 0x94] */
    571     RECOMP_FLAGS_IN();
    572     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
    573     edi = edi | 0xFFFFFFFFu; /* 0x47013F9C: or edi, 0xffffffff */
    574     _cf = 0;
    575     _flag_k = FK_TEST;
    576     /* cmp eax, edi */ /* 0x47013F9F: cmp eax, edi */
    577     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    579     _flag_k = FK_CMP;
    580     if (CMP_NE(_flag_a, _flag_b)) goto L_47013FCD; /* 0x47013FA1: jne 0x47013fcd */
    581 L_47013FA3:
    582     /* cmp MEM32(esp + 0xC), edi */ /* 0x47013FA3: cmp dword ptr [esp + 0xc], edi */
    583     _flag_a = (uint32_t)(MEM32(esp + 0xC)); _flag_b = (uint32_t)(edi);
    584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    585     _flag_k = FK_CMP;
    586     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013FB8; /* 0x47013FA7: je 0x47013fb8 */
    587 L_47013FA9:
    588     edx = MEM32(esp + 0x8); /* 0x47013FA9: mov edx, dword ptr [esp + 8] */
    589     PUSH32(esp, edx); /* 0x47013FAD: push edx */
    590     MEM32(esp + 0x10) = edi; /* 0x47013FAE: mov dword ptr [esp + 0x10], edi */
    591     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013FB2: call dword ptr [0x470ac190] */
    592     RECOMP_FLAGS_IN();
    593 L_47013FB8:
    594     eax = edi; /* 0x47013FB8: mov eax, edi */
    595     edi = POP32_VAL(esp); /* 0x47013FBA: pop edi */
    596     esi = POP32_VAL(esp); /* 0x47013FBB: pop esi */
    597     ecx = MEM32(esp + 0x8); /* 0x47013FBC: mov ecx, dword ptr [esp + 8] */
    598     MEM32(FS_BASE + (0)) = ecx; /* 0x47013FC0: mov dword ptr fs:[0], ecx */
    599     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    601     esp = esp + 0x14u; /* 0x47013FC7: add esp, 0x14 */
    602     _flag_k = FK_ADD;
    603     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47013FCA: ret 8 */
    604 L_47013FCD:
    605     ecx = MEM32(esp + 0x20); /* 0x47013FCD: mov ecx, dword ptr [esp + 0x20] */
    606     eax = MEM32(esi); /* 0x47013FD1: mov eax, dword ptr [esi] */
    607     PUSH32(esp, ecx); /* 0x47013FD3: push ecx */
    608     ecx = esi; /* 0x47013FD4: mov ecx, esi */
    609     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x47013FD6: call dword ptr [eax + 0x7c] */
    610     RECOMP_FLAGS_IN();
    611     esi = eax; /* 0x47013FD9: mov esi, eax */
    612     /* cmp MEM32(esp + 0xC), edi */ /* 0x47013FDB: cmp dword ptr [esp + 0xc], edi */
    613     _flag_a = (uint32_t)(MEM32(esp + 0xC)); _flag_b = (uint32_t)(edi);
    614     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    615     _flag_k = FK_CMP;
    616     if (CMP_EQ(_flag_a, _flag_b)) goto L_47013FF0; /* 0x47013FDF: je 0x47013ff0 */
    617 L_47013FE1:
    618     edx = MEM32(esp + 0x8); /* 0x47013FE1: mov edx, dword ptr [esp + 8] */
    619     PUSH32(esp, edx); /* 0x47013FE5: push edx */
    620     MEM32(esp + 0x10) = edi; /* 0x47013FE6: mov dword ptr [esp + 0x10], edi */
    621     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47013FEA: call dword ptr [0x470ac190] */
    622     RECOMP_FLAGS_IN();
    623 L_47013FF0:
    624     ecx = MEM32(esp + 0x10); /* 0x47013FF0: mov ecx, dword ptr [esp + 0x10] */
    625     edi = POP32_VAL(esp); /* 0x47013FF4: pop edi */
    626     eax = esi; /* 0x47013FF5: mov eax, esi */
    627     esi = POP32_VAL(esp); /* 0x47013FF7: pop esi */
    628     MEM32(FS_BASE + (0)) = ecx; /* 0x47013FF8: mov dword ptr fs:[0], ecx */
    629     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    631     esp = esp + 0x14u; /* 0x47013FFF: add esp, 0x14 */
    632     _flag_k = FK_ADD;
    633     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47014002: ret 8 */
    634     RECOMP_REGS_OUT();
    635 }
    636 
    637 void sub_47014010(void) {
    638     int _fpu_cmp = 0;
    639     uint32_t _cf = 0;
    640     int _df = 1;
    641     uint32_t _flag_k = FK_NONE;
    642     uint32_t _flag_a = 0, _flag_b = 0;
    643     uint32_t _itail_tgt = 0;
    644     RECOMP_REGS_LOCALS
    645     RECOMP_ENTER(0x47014010u);
    646 
    647 L_47014010:
    648     PUSH32(esp, 0xFFFFFFFFu); /* 0x47014010: push -1 */
    649     PUSH32(esp, 0x470A3E08u); /* 0x47014012: push 0x470a3e08 */
    650     eax = MEM32(FS_BASE + (0)); /* 0x47014017: mov eax, dword ptr fs:[0] */
    651     PUSH32(esp, eax); /* 0x4701401D: push eax */
    652     MEM32(FS_BASE + (0)) = esp; /* 0x4701401E: mov dword ptr fs:[0], esp */
    653     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    655     esp = esp - 8; /* 0x47014025: sub esp, 8 */
    656     _flag_k = FK_CMP;
    657     PUSH32(esp, esi); /* 0x47014028: push esi */
    658     PUSH32(esp, edi); /* 0x47014029: push edi */
    659     esi = ecx; /* 0x4701402A: mov esi, ecx */
    660     edi = esi + 0x28; /* 0x4701402C: lea edi, [esi + 0x28] */
    661     PUSH32(esp, edi); /* 0x4701402F: push edi */
    662     MEM32(esp + 0xC) = edi; /* 0x47014030: mov dword ptr [esp + 0xc], edi */
    663     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014034: call dword ptr [0x470ac180] */
    664     RECOMP_FLAGS_IN();
    665     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    666     eax = 0; /* 0x4701403A: xor eax, eax */
    667     _cf = 0;
    668     _flag_k = FK_TEST;
    669     MEM32(esp + 0xC) = eax; /* 0x4701403C: mov dword ptr [esp + 0xc], eax */
    670     MEM32(esp + 0x18) = eax; /* 0x47014040: mov dword ptr [esp + 0x18], eax */
    671     eax = MEM32(esi); /* 0x47014044: mov eax, dword ptr [esi] */
    672     ecx = esi; /* 0x47014046: mov ecx, esi */
    673     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x47014048: call dword ptr [eax + 0x80] */
    674     RECOMP_FLAGS_IN();
    675     PUSH32(esp, edi); /* 0x4701404E: push edi */
    676     esi = eax; /* 0x4701404F: mov esi, eax */
    677     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47014051: call dword ptr [0x470ac190] */
    678     RECOMP_FLAGS_IN();
    679     ecx = MEM32(esp + 0x10); /* 0x47014057: mov ecx, dword ptr [esp + 0x10] */
    680     edi = POP32_VAL(esp); /* 0x4701405B: pop edi */
    681     eax = esi; /* 0x4701405C: mov eax, esi */
    682     esi = POP32_VAL(esp); /* 0x4701405E: pop esi */
    683     MEM32(FS_BASE + (0)) = ecx; /* 0x4701405F: mov dword ptr fs:[0], ecx */
    684     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    685     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    686     esp = esp + 0x14u; /* 0x47014066: add esp, 0x14 */
    687     _flag_k = FK_ADD;
    688     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014069: ret  */
    689     RECOMP_REGS_OUT();
    690 }
    691 
    692 void sub_47014070(void) {
    693     int _fpu_cmp = 0;
    694     uint32_t _cf = 0;
    695     int _df = 1;
    696     uint32_t _flag_k = FK_NONE;
    697     uint32_t _flag_a = 0, _flag_b = 0;
    698     uint32_t _itail_tgt = 0;
    699     RECOMP_REGS_LOCALS
    700     RECOMP_ENTER(0x47014070u);
    701 
    702 L_47014070:
    703     PUSH32(esp, 0xFFFFFFFFu); /* 0x47014070: push -1 */
    704     PUSH32(esp, 0x470A3E28u); /* 0x47014072: push 0x470a3e28 */
    705     eax = MEM32(FS_BASE + (0)); /* 0x47014077: mov eax, dword ptr fs:[0] */
    706     PUSH32(esp, eax); /* 0x4701407D: push eax */
    707     MEM32(FS_BASE + (0)) = esp; /* 0x4701407E: mov dword ptr fs:[0], esp */
    708     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    710     esp = esp - 8; /* 0x47014085: sub esp, 8 */
    711     _flag_k = FK_CMP;
    712     PUSH32(esp, esi); /* 0x47014088: push esi */
    713     PUSH32(esp, edi); /* 0x47014089: push edi */
    714     esi = ecx; /* 0x4701408A: mov esi, ecx */
    715     edi = esi + 0x28; /* 0x4701408C: lea edi, [esi + 0x28] */
    716     PUSH32(esp, edi); /* 0x4701408F: push edi */
    717     MEM32(esp + 0xC) = edi; /* 0x47014090: mov dword ptr [esp + 0xc], edi */
    718     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014094: call dword ptr [0x470ac180] */
    719     RECOMP_FLAGS_IN();
    720     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    721     eax = 0; /* 0x4701409A: xor eax, eax */
    722     _cf = 0;
    723     _flag_k = FK_TEST;
    724     MEM32(esp + 0xC) = eax; /* 0x4701409C: mov dword ptr [esp + 0xc], eax */
    725     MEM32(esp + 0x18) = eax; /* 0x470140A0: mov dword ptr [esp + 0x18], eax */
    726     eax = MEM32(esi); /* 0x470140A4: mov eax, dword ptr [esi] */
    727     ecx = esi; /* 0x470140A6: mov ecx, esi */
    728     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x470140A8: call dword ptr [eax + 0x84] */
    729     RECOMP_FLAGS_IN();
    730     PUSH32(esp, edi); /* 0x470140AE: push edi */
    731     esi = eax; /* 0x470140AF: mov esi, eax */
    732     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470140B1: call dword ptr [0x470ac190] */
    733     RECOMP_FLAGS_IN();
    734     ecx = MEM32(esp + 0x10); /* 0x470140B7: mov ecx, dword ptr [esp + 0x10] */
    735     edi = POP32_VAL(esp); /* 0x470140BB: pop edi */
    736     eax = esi; /* 0x470140BC: mov eax, esi */
    737     esi = POP32_VAL(esp); /* 0x470140BE: pop esi */
    738     MEM32(FS_BASE + (0)) = ecx; /* 0x470140BF: mov dword ptr fs:[0], ecx */
    739     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    740     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    741     esp = esp + 0x14u; /* 0x470140C6: add esp, 0x14 */
    742     _flag_k = FK_ADD;
    743     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470140C9: ret  */
    744     RECOMP_REGS_OUT();
    745 }
    746 
    747 void sub_470140D0(void) {
    748     int _fpu_cmp = 0;
    749     uint32_t _cf = 0;
    750     int _df = 1;
    751     uint32_t _flag_k = FK_NONE;
    752     uint32_t _flag_a = 0, _flag_b = 0;
    753     uint32_t _itail_tgt = 0;
    754     RECOMP_REGS_LOCALS
    755     RECOMP_ENTER(0x470140D0u);
    756 
    757 L_470140D0:
    758     PUSH32(esp, esi); /* 0x470140D0: push esi */
    759     PUSH32(esp, edi); /* 0x470140D1: push edi */
    760     esi = ecx; /* 0x470140D2: mov esi, ecx */
    761     edi = esi + 0x28; /* 0x470140D4: lea edi, [esi + 0x28] */
    762     PUSH32(esp, edi); /* 0x470140D7: push edi */
    763     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470140D8: call dword ptr [0x470ac180] */
    764     RECOMP_FLAGS_IN();
    765     eax = MEM32(esp + 0xC); /* 0x470140DE: mov eax, dword ptr [esp + 0xc] */
    766     PUSH32(esp, edi); /* 0x470140E2: push edi */
    767     MEM32(esi + 0x14) = eax; /* 0x470140E3: mov dword ptr [esi + 0x14], eax */
    768     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470140E6: call dword ptr [0x470ac190] */
    769     RECOMP_FLAGS_IN();
    770     edi = POP32_VAL(esp); /* 0x470140EC: pop edi */
    771     esi = POP32_VAL(esp); /* 0x470140ED: pop esi */
    772     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470140EE: ret 4 */
    773     RECOMP_REGS_OUT();
    774 }
    775 
    776 void sub_47014100(void) {
    777     int _fpu_cmp = 0;
    778     uint32_t _cf = 0;
    779     int _df = 1;
    780     uint32_t _flag_k = FK_NONE;
    781     uint32_t _flag_a = 0, _flag_b = 0;
    782     uint32_t _itail_tgt = 0;
    783     RECOMP_REGS_LOCALS
    784     RECOMP_ENTER(0x47014100u);
    785 
    786 L_47014100:
    787     PUSH32(esp, esi); /* 0x47014100: push esi */
    788     PUSH32(esp, edi); /* 0x47014101: push edi */
    789     esi = ecx; /* 0x47014102: mov esi, ecx */
    790     edi = esi + 0x28; /* 0x47014104: lea edi, [esi + 0x28] */
    791     PUSH32(esp, edi); /* 0x47014107: push edi */
    792     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014108: call dword ptr [0x470ac180] */
    793     RECOMP_FLAGS_IN();
    794     esi = MEM32(esi + 0x14); /* 0x4701410E: mov esi, dword ptr [esi + 0x14] */
    795     PUSH32(esp, edi); /* 0x47014111: push edi */
    796     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47014112: call dword ptr [0x470ac190] */
    797     RECOMP_FLAGS_IN();
    798     edi = POP32_VAL(esp); /* 0x47014118: pop edi */
    799     eax = esi; /* 0x47014119: mov eax, esi */
    800     esi = POP32_VAL(esp); /* 0x4701411B: pop esi */
    801     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701411C: ret  */
    802     RECOMP_REGS_OUT();
    803 }
    804 
    805 void sub_47014120(void) {
    806     int _fpu_cmp = 0;
    807     uint32_t _cf = 0;
    808     int _df = 1;
    809     uint32_t _flag_k = FK_NONE;
    810     uint32_t _flag_a = 0, _flag_b = 0;
    811     uint32_t _itail_tgt = 0;
    812     RECOMP_REGS_LOCALS
    813     RECOMP_ENTER(0x47014120u);
    814 
    815 L_47014120:
    816     PUSH32(esp, esi); /* 0x47014120: push esi */
    817     PUSH32(esp, edi); /* 0x47014121: push edi */
    818     esi = ecx; /* 0x47014122: mov esi, ecx */
    819     edi = esi + 0x28; /* 0x47014124: lea edi, [esi + 0x28] */
    820     PUSH32(esp, edi); /* 0x47014127: push edi */
    821     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014128: call dword ptr [0x470ac180] */
    822     RECOMP_FLAGS_IN();
    823     eax = MEM32(esp + 0xC); /* 0x4701412E: mov eax, dword ptr [esp + 0xc] */
    824     PUSH32(esp, edi); /* 0x47014132: push edi */
    825     MEM32(esi + 0x18) = eax; /* 0x47014133: mov dword ptr [esi + 0x18], eax */
    826     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47014136: call dword ptr [0x470ac190] */
    827     RECOMP_FLAGS_IN();
    828     edi = POP32_VAL(esp); /* 0x4701413C: pop edi */
    829     esi = POP32_VAL(esp); /* 0x4701413D: pop esi */
    830     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701413E: ret 4 */
    831     RECOMP_REGS_OUT();
    832 }
    833 
    834 void sub_47014150(void) {
    835     int _fpu_cmp = 0;
    836     uint32_t _cf = 0;
    837     int _df = 1;
    838     uint32_t _flag_k = FK_NONE;
    839     uint32_t _flag_a = 0, _flag_b = 0;
    840     uint32_t _itail_tgt = 0;
    841     RECOMP_REGS_LOCALS
    842     RECOMP_ENTER(0x47014150u);
    843 
    844 L_47014150:
    845     PUSH32(esp, esi); /* 0x47014150: push esi */
    846     PUSH32(esp, edi); /* 0x47014151: push edi */
    847     esi = ecx; /* 0x47014152: mov esi, ecx */
    848     edi = esi + 0x28; /* 0x47014154: lea edi, [esi + 0x28] */
    849     PUSH32(esp, edi); /* 0x47014157: push edi */
    850     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014158: call dword ptr [0x470ac180] */
    851     RECOMP_FLAGS_IN();
    852     esi = MEM32(esi + 0x18); /* 0x4701415E: mov esi, dword ptr [esi + 0x18] */
    853     PUSH32(esp, edi); /* 0x47014161: push edi */
    854     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47014162: call dword ptr [0x470ac190] */
    855     RECOMP_FLAGS_IN();
    856     edi = POP32_VAL(esp); /* 0x47014168: pop edi */
    857     eax = esi; /* 0x47014169: mov eax, esi */
    858     esi = POP32_VAL(esp); /* 0x4701416B: pop esi */
    859     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701416C: ret  */
    860     RECOMP_REGS_OUT();
    861 }
    862 
    863 void sub_47014170(void) {
    864     int _fpu_cmp = 0;
    865     uint32_t _cf = 0;
    866     int _df = 1;
    867     uint32_t _flag_k = FK_NONE;
    868     uint32_t _flag_a = 0, _flag_b = 0;
    869     uint32_t _itail_tgt = 0;
    870     RECOMP_REGS_LOCALS
    871     RECOMP_ENTER(0x47014170u);
    872 
    873 L_47014170:
    874     PUSH32(esp, esi); /* 0x47014170: push esi */
    875     PUSH32(esp, edi); /* 0x47014171: push edi */
    876     esi = ecx; /* 0x47014172: mov esi, ecx */
    877     edi = esi + 0x28; /* 0x47014174: lea edi, [esi + 0x28] */
    878     PUSH32(esp, edi); /* 0x47014177: push edi */
    879     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014178: call dword ptr [0x470ac180] */
    880     RECOMP_FLAGS_IN();
    881     esi = MEM32(esi + 0x1C); /* 0x4701417E: mov esi, dword ptr [esi + 0x1c] */
    882     PUSH32(esp, edi); /* 0x47014181: push edi */
    883     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47014182: call dword ptr [0x470ac190] */
    884     RECOMP_FLAGS_IN();
    885     edi = POP32_VAL(esp); /* 0x47014188: pop edi */
    886     eax = esi; /* 0x47014189: mov eax, esi */
    887     esi = POP32_VAL(esp); /* 0x4701418B: pop esi */
    888     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701418C: ret  */
    889     RECOMP_REGS_OUT();
    890 }
    891 
    892 void sub_47014190(void) {
    893     int _fpu_cmp = 0;
    894     uint32_t _cf = 0;
    895     int _df = 1;
    896     uint32_t _flag_k = FK_NONE;
    897     uint32_t _flag_a = 0, _flag_b = 0;
    898     uint32_t _itail_tgt = 0;
    899     RECOMP_REGS_LOCALS
    900     RECOMP_ENTER(0x47014190u);
    901 
    902 L_47014190:
    903     PUSH32(esp, esi); /* 0x47014190: push esi */
    904     PUSH32(esp, edi); /* 0x47014191: push edi */
    905     esi = ecx; /* 0x47014192: mov esi, ecx */
    906     edi = esi + 0x28; /* 0x47014194: lea edi, [esi + 0x28] */
    907     PUSH32(esp, edi); /* 0x47014197: push edi */
    908     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014198: call dword ptr [0x470ac180] */
    909     RECOMP_FLAGS_IN();
    910     eax = MEM32(esp + 0xC); /* 0x4701419E: mov eax, dword ptr [esp + 0xc] */
    911     PUSH32(esp, edi); /* 0x470141A2: push edi */
    912     MEM32(esi + 0x10) = eax; /* 0x470141A3: mov dword ptr [esi + 0x10], eax */
    913     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470141A6: call dword ptr [0x470ac190] */
    914     RECOMP_FLAGS_IN();
    915     edi = POP32_VAL(esp); /* 0x470141AC: pop edi */
    916     esi = POP32_VAL(esp); /* 0x470141AD: pop esi */
    917     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470141AE: ret 4 */
    918     RECOMP_REGS_OUT();
    919 }
    920 
    921 void sub_470141C0(void) {
    922     int _fpu_cmp = 0;
    923     uint32_t _cf = 0;
    924     int _df = 1;
    925     uint32_t _flag_k = FK_NONE;
    926     uint32_t _flag_a = 0, _flag_b = 0;
    927     uint32_t _itail_tgt = 0;
    928     RECOMP_REGS_LOCALS
    929     RECOMP_ENTER(0x470141C0u);
    930 
    931 L_470141C0:
    932     PUSH32(esp, esi); /* 0x470141C0: push esi */
    933     PUSH32(esp, edi); /* 0x470141C1: push edi */
    934     esi = ecx; /* 0x470141C2: mov esi, ecx */
    935     edi = esi + 0x28; /* 0x470141C4: lea edi, [esi + 0x28] */
    936     PUSH32(esp, edi); /* 0x470141C7: push edi */
    937     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470141C8: call dword ptr [0x470ac180] */
    938     RECOMP_FLAGS_IN();
    939     esi = MEM32(esi + 0x10); /* 0x470141CE: mov esi, dword ptr [esi + 0x10] */
    940     PUSH32(esp, edi); /* 0x470141D1: push edi */
    941     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470141D2: call dword ptr [0x470ac190] */
    942     RECOMP_FLAGS_IN();
    943     edi = POP32_VAL(esp); /* 0x470141D8: pop edi */
    944     eax = esi; /* 0x470141D9: mov eax, esi */
    945     esi = POP32_VAL(esp); /* 0x470141DB: pop esi */
    946     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470141DC: ret  */
    947     RECOMP_REGS_OUT();
    948 }
    949 
    950 void sub_470141E0(void) {
    951     int _fpu_cmp = 0;
    952     uint32_t _cf = 0;
    953     int _df = 1;
    954     uint32_t _flag_k = FK_NONE;
    955     uint32_t _flag_a = 0, _flag_b = 0;
    956     uint32_t _itail_tgt = 0;
    957     RECOMP_REGS_LOCALS
    958     RECOMP_ENTER(0x470141E0u);
    959 
    960 L_470141E0:
    961     PUSH32(esp, esi); /* 0x470141E0: push esi */
    962     PUSH32(esp, edi); /* 0x470141E1: push edi */
    963     esi = ecx; /* 0x470141E2: mov esi, ecx */
    964     edi = esi + 0x28; /* 0x470141E4: lea edi, [esi + 0x28] */
    965     PUSH32(esp, edi); /* 0x470141E7: push edi */
    966     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470141E8: call dword ptr [0x470ac180] */
    967     RECOMP_FLAGS_IN();
    968     eax = MEM32(esp + 0xC); /* 0x470141EE: mov eax, dword ptr [esp + 0xc] */
    969     PUSH32(esp, edi); /* 0x470141F2: push edi */
    970     MEM32(esi + 0xC) = eax; /* 0x470141F3: mov dword ptr [esi + 0xc], eax */
    971     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470141F6: call dword ptr [0x470ac190] */
    972     RECOMP_FLAGS_IN();
    973     edi = POP32_VAL(esp); /* 0x470141FC: pop edi */
    974     esi = POP32_VAL(esp); /* 0x470141FD: pop esi */
    975     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470141FE: ret 4 */
    976     RECOMP_REGS_OUT();
    977 }
    978 
    979 void sub_47014210(void) {
    980     int _fpu_cmp = 0;
    981     uint32_t _cf = 0;
    982     int _df = 1;
    983     uint32_t _flag_k = FK_NONE;
    984     uint32_t _flag_a = 0, _flag_b = 0;
    985     uint32_t _itail_tgt = 0;
    986     RECOMP_REGS_LOCALS
    987     RECOMP_ENTER(0x47014210u);
    988 
    989 L_47014210:
    990     PUSH32(esp, esi); /* 0x47014210: push esi */
    991     PUSH32(esp, edi); /* 0x47014211: push edi */
    992     esi = ecx; /* 0x47014212: mov esi, ecx */
    993     edi = esi + 0x28; /* 0x47014214: lea edi, [esi + 0x28] */
    994     PUSH32(esp, edi); /* 0x47014217: push edi */
    995     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014218: call dword ptr [0x470ac180] */
    996     RECOMP_FLAGS_IN();
    997     esi = MEM32(esi + 0xC); /* 0x4701421E: mov esi, dword ptr [esi + 0xc] */
    998     PUSH32(esp, edi); /* 0x47014221: push edi */
    999     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47014222: call dword ptr [0x470ac190] */
   1000     RECOMP_FLAGS_IN();
   1001     edi = POP32_VAL(esp); /* 0x47014228: pop edi */
   1002     eax = esi; /* 0x47014229: mov eax, esi */
   1003     esi = POP32_VAL(esp); /* 0x4701422B: pop esi */
   1004     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701422C: ret  */
   1005     RECOMP_REGS_OUT();
   1006 }
   1007 
   1008 void sub_47014230(void) {
   1009     int _fpu_cmp = 0;
   1010     uint32_t _cf = 0;
   1011     int _df = 1;
   1012     uint32_t _flag_k = FK_NONE;
   1013     uint32_t _flag_a = 0, _flag_b = 0;
   1014     uint32_t _itail_tgt = 0;
   1015     RECOMP_REGS_LOCALS
   1016     RECOMP_ENTER(0x47014230u);
   1017 
   1018 L_47014230:
   1019     PUSH32(esp, 0xFFFFFFFFu); /* 0x47014230: push -1 */
   1020     PUSH32(esp, 0x470A3E48u); /* 0x47014232: push 0x470a3e48 */
   1021     eax = MEM32(FS_BASE + (0)); /* 0x47014237: mov eax, dword ptr fs:[0] */
   1022     PUSH32(esp, eax); /* 0x4701423D: push eax */
   1023     MEM32(FS_BASE + (0)) = esp; /* 0x4701423E: mov dword ptr fs:[0], esp */
   1024     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1026     esp = esp - 8; /* 0x47014245: sub esp, 8 */
   1027     _flag_k = FK_CMP;
   1028     PUSH32(esp, esi); /* 0x47014248: push esi */
   1029     PUSH32(esp, edi); /* 0x47014249: push edi */
   1030     esi = ecx; /* 0x4701424A: mov esi, ecx */
   1031     edi = esi + 0x28; /* 0x4701424C: lea edi, [esi + 0x28] */
   1032     PUSH32(esp, edi); /* 0x4701424F: push edi */
   1033     MEM32(esp + 0xC) = edi; /* 0x47014250: mov dword ptr [esp + 0xc], edi */
   1034     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014254: call dword ptr [0x470ac180] */
   1035     RECOMP_FLAGS_IN();
   1036     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1037     eax = 0; /* 0x4701425A: xor eax, eax */
   1038     _cf = 0;
   1039     _flag_k = FK_TEST;
   1040     MEM32(esp + 0xC) = eax; /* 0x4701425C: mov dword ptr [esp + 0xc], eax */
   1041     MEM32(esp + 0x18) = eax; /* 0x47014260: mov dword ptr [esp + 0x18], eax */
   1042     eax = MEM32(esi); /* 0x47014264: mov eax, dword ptr [esi] */
   1043     ecx = esi; /* 0x47014266: mov ecx, esi */
   1044     RECOMP_ICALL(MEM32(eax + 0x88)); /* 0x47014268: call dword ptr [eax + 0x88] */
   1045     RECOMP_FLAGS_IN();
   1046     PUSH32(esp, edi); /* 0x4701426E: push edi */
   1047     esi = eax; /* 0x4701426F: mov esi, eax */
   1048     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47014271: call dword ptr [0x470ac190] */
   1049     RECOMP_FLAGS_IN();
   1050     ecx = MEM32(esp + 0x10); /* 0x47014277: mov ecx, dword ptr [esp + 0x10] */
   1051     edi = POP32_VAL(esp); /* 0x4701427B: pop edi */
   1052     eax = esi; /* 0x4701427C: mov eax, esi */
   1053     esi = POP32_VAL(esp); /* 0x4701427E: pop esi */
   1054     MEM32(FS_BASE + (0)) = ecx; /* 0x4701427F: mov dword ptr fs:[0], ecx */
   1055     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1057     esp = esp + 0x14u; /* 0x47014286: add esp, 0x14 */
   1058     _flag_k = FK_ADD;
   1059     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014289: ret  */
   1060     RECOMP_REGS_OUT();
   1061 }
   1062 
   1063 void sub_47014290(void) {
   1064     int _fpu_cmp = 0;
   1065     uint32_t _cf = 0;
   1066     int _df = 1;
   1067     uint32_t _flag_k = FK_NONE;
   1068     uint32_t _flag_a = 0, _flag_b = 0;
   1069     uint32_t _itail_tgt = 0;
   1070     RECOMP_REGS_LOCALS
   1071     RECOMP_ENTER(0x47014290u);
   1072 
   1073 L_47014290:
   1074     PUSH32(esp, 0xFFFFFFFFu); /* 0x47014290: push -1 */
   1075     PUSH32(esp, 0x470A3E68u); /* 0x47014292: push 0x470a3e68 */
   1076     eax = MEM32(FS_BASE + (0)); /* 0x47014297: mov eax, dword ptr fs:[0] */
   1077     PUSH32(esp, eax); /* 0x4701429D: push eax */
   1078     MEM32(FS_BASE + (0)) = esp; /* 0x4701429E: mov dword ptr fs:[0], esp */
   1079     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1081     esp = esp - 8; /* 0x470142A5: sub esp, 8 */
   1082     _flag_k = FK_CMP;
   1083     PUSH32(esp, esi); /* 0x470142A8: push esi */
   1084     PUSH32(esp, edi); /* 0x470142A9: push edi */
   1085     esi = ecx; /* 0x470142AA: mov esi, ecx */
   1086     edi = esi + 0x28; /* 0x470142AC: lea edi, [esi + 0x28] */
   1087     PUSH32(esp, edi); /* 0x470142AF: push edi */
   1088     MEM32(esp + 0xC) = edi; /* 0x470142B0: mov dword ptr [esp + 0xc], edi */
   1089     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470142B4: call dword ptr [0x470ac180] */
   1090     RECOMP_FLAGS_IN();
   1091     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1092     eax = 0; /* 0x470142BA: xor eax, eax */
   1093     _cf = 0;
   1094     _flag_k = FK_TEST;
   1095     MEM32(esp + 0xC) = eax; /* 0x470142BC: mov dword ptr [esp + 0xc], eax */
   1096     MEM32(esp + 0x18) = eax; /* 0x470142C0: mov dword ptr [esp + 0x18], eax */
   1097     eax = MEM32(esi); /* 0x470142C4: mov eax, dword ptr [esi] */
   1098     ecx = esi; /* 0x470142C6: mov ecx, esi */
   1099     RECOMP_ICALL(MEM32(eax + 0x8C)); /* 0x470142C8: call dword ptr [eax + 0x8c] */
   1100     RECOMP_FLAGS_IN();
   1101     PUSH32(esp, edi); /* 0x470142CE: push edi */
   1102     esi = eax; /* 0x470142CF: mov esi, eax */
   1103     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470142D1: call dword ptr [0x470ac190] */
   1104     RECOMP_FLAGS_IN();
   1105     ecx = MEM32(esp + 0x10); /* 0x470142D7: mov ecx, dword ptr [esp + 0x10] */
   1106     edi = POP32_VAL(esp); /* 0x470142DB: pop edi */
   1107     eax = esi; /* 0x470142DC: mov eax, esi */
   1108     esi = POP32_VAL(esp); /* 0x470142DE: pop esi */
   1109     MEM32(FS_BASE + (0)) = ecx; /* 0x470142DF: mov dword ptr fs:[0], ecx */
   1110     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1111     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1112     esp = esp + 0x14u; /* 0x470142E6: add esp, 0x14 */
   1113     _flag_k = FK_ADD;
   1114     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470142E9: ret  */
   1115     RECOMP_REGS_OUT();
   1116 }
   1117 
   1118 void sub_470142F0(void) {
   1119     int _fpu_cmp = 0;
   1120     uint32_t _cf = 0;
   1121     int _df = 1;
   1122     uint32_t _flag_k = FK_NONE;
   1123     uint32_t _flag_a = 0, _flag_b = 0;
   1124     uint32_t _itail_tgt = 0;
   1125     RECOMP_REGS_LOCALS
   1126     RECOMP_ENTER(0x470142F0u);
   1127 
   1128 L_470142F0:
   1129     eax = MEM32(ecx + 0x20); /* 0x470142F0: mov eax, dword ptr [ecx + 0x20] */
   1130     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470142F3: ret  */
   1131     RECOMP_REGS_OUT();
   1132 }
   1133 
   1134 void sub_47014300(void) {
   1135     int _fpu_cmp = 0;
   1136     uint32_t _cf = 0;
   1137     int _df = 1;
   1138     uint32_t _flag_k = FK_NONE;
   1139     uint32_t _flag_a = 0, _flag_b = 0;
   1140     uint32_t _itail_tgt = 0;
   1141     RECOMP_REGS_LOCALS
   1142     RECOMP_ENTER(0x47014300u);
   1143 
   1144 L_47014300:
   1145     ecx = MEM32(ecx + 0x24); /* 0x47014300: mov ecx, dword ptr [ecx + 0x24] */
   1146 L_47014303:
   1147     /* test ecx, ecx */ /* 0x47014303: test ecx, ecx */
   1148     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1149     _cf = 0;
   1150     _flag_k = FK_TEST;
   1151 L_47014305:
   1152     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4701430A; /* 0x47014305: jne 0x4701430a */
   1153 L_47014307:
   1154     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1155     eax = 0; /* 0x47014307: xor eax, eax */
   1156     _cf = 0;
   1157     _flag_k = FK_TEST;
   1158 L_47014309:
   1159     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014309: ret  */
   1160 L_4701430A:
   1161     eax = MEM32(ecx); /* 0x4701430A: mov eax, dword ptr [ecx] */
   1162 L_4701430C:
   1163     { _itail_tgt = (uint32_t)(MEM32(eax + 0x8)); goto _ljump; }
   1164     { RECOMP_REGS_OUT(); return; } /* end of function */
   1165   _ljump:
   1166     switch (_itail_tgt) {
   1167       case 0x47014300u: goto L_47014300;
   1168       case 0x47014303u: goto L_47014303;
   1169       case 0x47014305u: goto L_47014305;
   1170       case 0x47014307u: goto L_47014307;
   1171       case 0x47014309u: goto L_47014309;
   1172       case 0x4701430Au: goto L_4701430A;
   1173       case 0x4701430Cu: goto L_4701430C;
   1174       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1175     }
   1176     RECOMP_REGS_OUT();
   1177 }
   1178 
   1179 void sub_47014310(void) {
   1180     int _fpu_cmp = 0;
   1181     uint32_t _cf = 0;
   1182     int _df = 1;
   1183     uint32_t _flag_k = FK_NONE;
   1184     uint32_t _flag_a = 0, _flag_b = 0;
   1185     uint32_t _itail_tgt = 0;
   1186     RECOMP_REGS_LOCALS
   1187     RECOMP_ENTER(0x47014310u);
   1188 
   1189 L_47014310:
   1190     eax = MEM32(esp + 0x4); /* 0x47014310: mov eax, dword ptr [esp + 4] */
   1191     MEM32(ecx + 0x24) = eax; /* 0x47014314: mov dword ptr [ecx + 0x24], eax */
   1192     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014317: ret 4 */
   1193     RECOMP_REGS_OUT();
   1194 }
   1195 
   1196 void sub_47014320(void) {
   1197     int _fpu_cmp = 0;
   1198     uint32_t _cf = 0;
   1199     int _df = 1;
   1200     uint32_t _flag_k = FK_NONE;
   1201     uint32_t _flag_a = 0, _flag_b = 0;
   1202     uint32_t _itail_tgt = 0;
   1203     RECOMP_REGS_LOCALS
   1204     RECOMP_ENTER(0x47014320u);
   1205 
   1206 L_47014320:
   1207     eax = MEM32(ecx + 0x24); /* 0x47014320: mov eax, dword ptr [ecx + 0x24] */
   1208     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014323: ret  */
   1209     RECOMP_REGS_OUT();
   1210 }
   1211 
   1212 void sub_47014330(void) {
   1213     int _fpu_cmp = 0;
   1214     uint32_t _cf = 0;
   1215     int _df = 1;
   1216     uint32_t _flag_k = FK_NONE;
   1217     uint32_t _flag_a = 0, _flag_b = 0;
   1218     uint32_t _itail_tgt = 0;
   1219     RECOMP_REGS_LOCALS
   1220     RECOMP_ENTER(0x47014330u);
   1221 
   1222 L_47014330:
   1223     PUSH32(esp, ecx); /* 0x47014330: push ecx */
   1224     PUSH32(esp, ebx); /* 0x47014331: push ebx */
   1225     ebx = MEM32(0x470AC150); /* 0x47014332: mov ebx, dword ptr [0x470ac150] */
   1226     PUSH32(esp, ebp); /* 0x47014338: push ebp */
   1227     PUSH32(esp, esi); /* 0x47014339: push esi */
   1228     PUSH32(esp, edi); /* 0x4701433A: push edi */
   1229     esi = ecx; /* 0x4701433B: mov esi, ecx */
   1230     RECOMP_ICALL(ebx); /* 0x4701433D: call ebx */
   1231     RECOMP_FLAGS_IN();
   1232     ebp = MEM32(0x470AC3C8); /* 0x4701433F: mov ebp, dword ptr [0x470ac3c8] */
   1233     edi = eax; /* 0x47014345: mov edi, eax */
   1234     RECOMP_ICALL(ebp); /* 0x47014347: call ebp */
   1235     RECOMP_FLAGS_IN();
   1236     eax = MEM32(eax); /* 0x47014349: mov eax, dword ptr [eax] */
   1237     /* test eax, eax */ /* 0x4701434B: test eax, eax */
   1238     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1239     _cf = 0;
   1240     _flag_k = FK_TEST;
   1241     MEM32(esp + 0x10) = edi; /* 0x4701434D: mov dword ptr [esp + 0x10], edi */
   1242     if (TEST_Z(_flag_a, _flag_b)) goto L_47014357; /* 0x47014351: je 0x47014357 */
   1243 L_47014353:
   1244     MEM32(esp + 0x10) = eax; /* 0x47014353: mov dword ptr [esp + 0x10], eax */
   1245 L_47014357:
   1246     RECOMP_ICALL(0x47039020u); /* 0x47014357: call 0x47039020 */ /* not lifted */
   1247     RECOMP_FLAGS_IN();
   1248     edi = eax; /* 0x4701435C: mov edi, eax */
   1249     ecx = edi; /* 0x4701435E: mov ecx, edi */
   1250     RECOMP_ICALL(0x4703B210u); /* 0x47014360: call 0x4703b210 */ /* not lifted */
   1251     RECOMP_FLAGS_IN();
   1252     PUSH32(esp, eax); /* 0x47014365: push eax */
   1253     ecx = edi; /* 0x47014366: mov ecx, edi */
   1254     RECOMP_ICALL(0x4703B240u); /* 0x47014368: call 0x4703b240 */ /* not lifted */
   1255     RECOMP_FLAGS_IN();
   1256     PUSH32(esp, eax); /* 0x4701436D: push eax */
   1257     ecx = edi; /* 0x4701436E: mov ecx, edi */
   1258     RECOMP_ICALL(0x4703B080u); /* 0x47014370: call 0x4703b080 */ /* not lifted */
   1259     RECOMP_FLAGS_IN();
   1260     PUSH32(esp, eax); /* 0x47014375: push eax */
   1261     eax = MEM32(esp + 0x1C); /* 0x47014376: mov eax, dword ptr [esp + 0x1c] */
   1262     PUSH32(esp, eax); /* 0x4701437A: push eax */
   1263     PUSH32(esp, 0); /* 0x4701437B: push 0 */
   1264     PUSH32(esp, 0x79u); /* 0x4701437D: push 0x79 */
   1265     PUSH32(esp, 0x471051D0u); /* 0x4701437F: push 0x471051d0 */
   1266     ecx = edi; /* 0x47014384: mov ecx, edi */
   1267     RECOMP_ICALL(0x4703A340u); /* 0x47014386: call 0x4703a340 */ /* not lifted */
   1268     RECOMP_FLAGS_IN();
   1269     PUSH32(esp, esi); /* 0x4701438B: push esi */
   1270     PUSH32(esp, 0x471052CCu); /* 0x4701438C: push 0x471052cc */
   1271     PUSH32(esp, 4); /* 0x47014391: push 4 */
   1272     PUSH32(esp, edi); /* 0x47014393: push edi */
   1273     RECOMP_ICALL(0x47039830u); /* 0x47014394: call 0x47039830 */ /* not lifted */
   1274     RECOMP_FLAGS_IN();
   1275     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1276     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1277     esp = esp + 0x10u; /* 0x47014399: add esp, 0x10 */
   1278     _flag_k = FK_ADD;
   1279     RECOMP_ICALL(ebx); /* 0x4701439C: call ebx */
   1280     RECOMP_FLAGS_IN();
   1281     edi = eax; /* 0x4701439E: mov edi, eax */
   1282     RECOMP_ICALL(ebp); /* 0x470143A0: call ebp */
   1283     RECOMP_FLAGS_IN();
   1284     eax = MEM32(eax); /* 0x470143A2: mov eax, dword ptr [eax] */
   1285     /* test eax, eax */ /* 0x470143A4: test eax, eax */
   1286     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1287     _cf = 0;
   1288     _flag_k = FK_TEST;
   1289     MEM32(esp + 0x10) = edi; /* 0x470143A6: mov dword ptr [esp + 0x10], edi */
   1290     if (TEST_Z(_flag_a, _flag_b)) goto L_470143B0; /* 0x470143AA: je 0x470143b0 */
   1291 L_470143AC:
   1292     MEM32(esp + 0x10) = eax; /* 0x470143AC: mov dword ptr [esp + 0x10], eax */
   1293 L_470143B0:
   1294     RECOMP_ICALL(0x47039020u); /* 0x470143B0: call 0x47039020 */ /* not lifted */
   1295     RECOMP_FLAGS_IN();
   1296     edi = eax; /* 0x470143B5: mov edi, eax */
   1297     ecx = edi; /* 0x470143B7: mov ecx, edi */
   1298     RECOMP_ICALL(0x4703B210u); /* 0x470143B9: call 0x4703b210 */ /* not lifted */
   1299     RECOMP_FLAGS_IN();
   1300     PUSH32(esp, eax); /* 0x470143BE: push eax */
   1301     ecx = edi; /* 0x470143BF: mov ecx, edi */
   1302     RECOMP_ICALL(0x4703B240u); /* 0x470143C1: call 0x4703b240 */ /* not lifted */
   1303     RECOMP_FLAGS_IN();
   1304     PUSH32(esp, eax); /* 0x470143C6: push eax */
   1305     ecx = edi; /* 0x470143C7: mov ecx, edi */
   1306     RECOMP_ICALL(0x4703B080u); /* 0x470143C9: call 0x4703b080 */ /* not lifted */
   1307     RECOMP_FLAGS_IN();
   1308     ecx = MEM32(esp + 0x18); /* 0x470143CE: mov ecx, dword ptr [esp + 0x18] */
   1309     PUSH32(esp, eax); /* 0x470143D2: push eax */
   1310     PUSH32(esp, ecx); /* 0x470143D3: push ecx */
   1311     PUSH32(esp, 0); /* 0x470143D4: push 0 */
   1312     PUSH32(esp, 0x8Au); /* 0x470143D6: push 0x8a */
   1313     PUSH32(esp, 0x471051D0u); /* 0x470143DB: push 0x471051d0 */
   1314     ecx = edi; /* 0x470143E0: mov ecx, edi */
   1315     RECOMP_ICALL(0x4703A340u); /* 0x470143E2: call 0x4703a340 */ /* not lifted */
   1316     RECOMP_FLAGS_IN();
   1317     edx = MEM32(esi + 0x8); /* 0x470143E7: mov edx, dword ptr [esi + 8] */
   1318     eax = MEM32(esi + 0x4); /* 0x470143EA: mov eax, dword ptr [esi + 4] */
   1319     ecx = MEM32(esi + 0x1C); /* 0x470143ED: mov ecx, dword ptr [esi + 0x1c] */
   1320     PUSH32(esp, edx); /* 0x470143F0: push edx */
   1321     edx = MEM32(esi + 0x18); /* 0x470143F1: mov edx, dword ptr [esi + 0x18] */
   1322     PUSH32(esp, eax); /* 0x470143F4: push eax */
   1323     eax = MEM32(esi + 0x14); /* 0x470143F5: mov eax, dword ptr [esi + 0x14] */
   1324     PUSH32(esp, ecx); /* 0x470143F8: push ecx */
   1325     ecx = MEM32(esi + 0x10); /* 0x470143F9: mov ecx, dword ptr [esi + 0x10] */
   1326     PUSH32(esp, edx); /* 0x470143FC: push edx */
   1327     edx = MEM32(esi + 0xC); /* 0x470143FD: mov edx, dword ptr [esi + 0xc] */
   1328     PUSH32(esp, eax); /* 0x47014400: push eax */
   1329     eax = MEM32(esi + 0x20); /* 0x47014401: mov eax, dword ptr [esi + 0x20] */
   1330     PUSH32(esp, ecx); /* 0x47014404: push ecx */
   1331     PUSH32(esp, edx); /* 0x47014405: push edx */
   1332     PUSH32(esp, eax); /* 0x47014406: push eax */
   1333     PUSH32(esp, 0x47105348u); /* 0x47014407: push 0x47105348 */
   1334     PUSH32(esp, 4); /* 0x4701440C: push 4 */
   1335     PUSH32(esp, edi); /* 0x4701440E: push edi */
   1336     RECOMP_ICALL(0x47039830u); /* 0x4701440F: call 0x47039830 */ /* not lifted */
   1337     RECOMP_FLAGS_IN();
   1338     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   1339     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1340     esp = esp + 0x2Cu; /* 0x47014414: add esp, 0x2c */
   1341     _flag_k = FK_ADD;
   1342     RECOMP_ICALL(ebx); /* 0x47014417: call ebx */
   1343     RECOMP_FLAGS_IN();
   1344     edi = eax; /* 0x47014419: mov edi, eax */
   1345     RECOMP_ICALL(ebp); /* 0x4701441B: call ebp */
   1346     RECOMP_FLAGS_IN();
   1347     eax = MEM32(eax); /* 0x4701441D: mov eax, dword ptr [eax] */
   1348     /* test eax, eax */ /* 0x4701441F: test eax, eax */
   1349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1350     _cf = 0;
   1351     _flag_k = FK_TEST;
   1352     MEM32(esp + 0x10) = edi; /* 0x47014421: mov dword ptr [esp + 0x10], edi */
   1353     if (TEST_Z(_flag_a, _flag_b)) goto L_4701442B; /* 0x47014425: je 0x4701442b */
   1354 L_47014427:
   1355     MEM32(esp + 0x10) = eax; /* 0x47014427: mov dword ptr [esp + 0x10], eax */
   1356 L_4701442B:
   1357     RECOMP_ICALL(0x47039020u); /* 0x4701442B: call 0x47039020 */ /* not lifted */
   1358     RECOMP_FLAGS_IN();
   1359     edi = eax; /* 0x47014430: mov edi, eax */
   1360     ecx = edi; /* 0x47014432: mov ecx, edi */
   1361     RECOMP_ICALL(0x4703B210u); /* 0x47014434: call 0x4703b210 */ /* not lifted */
   1362     RECOMP_FLAGS_IN();
   1363     PUSH32(esp, eax); /* 0x47014439: push eax */
   1364     ecx = edi; /* 0x4701443A: mov ecx, edi */
   1365     RECOMP_ICALL(0x4703B240u); /* 0x4701443C: call 0x4703b240 */ /* not lifted */
   1366     RECOMP_FLAGS_IN();
   1367     PUSH32(esp, eax); /* 0x47014441: push eax */
   1368     ecx = edi; /* 0x47014442: mov ecx, edi */
   1369     RECOMP_ICALL(0x4703B080u); /* 0x47014444: call 0x4703b080 */ /* not lifted */
   1370     RECOMP_FLAGS_IN();
   1371     ecx = MEM32(esp + 0x18); /* 0x47014449: mov ecx, dword ptr [esp + 0x18] */
   1372     PUSH32(esp, eax); /* 0x4701444D: push eax */
   1373     PUSH32(esp, ecx); /* 0x4701444E: push ecx */
   1374     PUSH32(esp, 0); /* 0x4701444F: push 0 */
   1375     PUSH32(esp, 0x8Bu); /* 0x47014451: push 0x8b */
   1376     PUSH32(esp, 0x471051D0u); /* 0x47014456: push 0x471051d0 */
   1377     ecx = edi; /* 0x4701445B: mov ecx, edi */
   1378     RECOMP_ICALL(0x4703A340u); /* 0x4701445D: call 0x4703a340 */ /* not lifted */
   1379     RECOMP_FLAGS_IN();
   1380     PUSH32(esp, 0x47105334u); /* 0x47014462: push 0x47105334 */
   1381     PUSH32(esp, 4); /* 0x47014467: push 4 */
   1382     PUSH32(esp, edi); /* 0x47014469: push edi */
   1383     RECOMP_ICALL(0x47039830u); /* 0x4701446A: call 0x47039830 */ /* not lifted */
   1384     RECOMP_FLAGS_IN();
   1385     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1386     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1387     esp = esp + 0xCu; /* 0x4701446F: add esp, 0xc */
   1388     _flag_k = FK_ADD;
   1389     ecx = esi + 0x74; /* 0x47014472: lea ecx, [esi + 0x74] */
   1390     RECOMP_ICALL(0x470871B0u); /* 0x47014475: call 0x470871b0 */ /* not lifted */
   1391     RECOMP_FLAGS_IN();
   1392     RECOMP_ICALL(ebx); /* 0x4701447A: call ebx */
   1393     RECOMP_FLAGS_IN();
   1394     edi = eax; /* 0x4701447C: mov edi, eax */
   1395     RECOMP_ICALL(ebp); /* 0x4701447E: call ebp */
   1396     RECOMP_FLAGS_IN();
   1397     eax = MEM32(eax); /* 0x47014480: mov eax, dword ptr [eax] */
   1398     /* test eax, eax */ /* 0x47014482: test eax, eax */
   1399     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1400     _cf = 0;
   1401     _flag_k = FK_TEST;
   1402     MEM32(esp + 0x10) = edi; /* 0x47014484: mov dword ptr [esp + 0x10], edi */
   1403     if (TEST_Z(_flag_a, _flag_b)) goto L_4701448E; /* 0x47014488: je 0x4701448e */
   1404 L_4701448A:
   1405     MEM32(esp + 0x10) = eax; /* 0x4701448A: mov dword ptr [esp + 0x10], eax */
   1406 L_4701448E:
   1407     RECOMP_ICALL(0x47039020u); /* 0x4701448E: call 0x47039020 */ /* not lifted */
   1408     RECOMP_FLAGS_IN();
   1409     edi = eax; /* 0x47014493: mov edi, eax */
   1410     ecx = edi; /* 0x47014495: mov ecx, edi */
   1411     RECOMP_ICALL(0x4703B210u); /* 0x47014497: call 0x4703b210 */ /* not lifted */
   1412     RECOMP_FLAGS_IN();
   1413     PUSH32(esp, eax); /* 0x4701449C: push eax */
   1414     ecx = edi; /* 0x4701449D: mov ecx, edi */
   1415     RECOMP_ICALL(0x4703B240u); /* 0x4701449F: call 0x4703b240 */ /* not lifted */
   1416     RECOMP_FLAGS_IN();
   1417     PUSH32(esp, eax); /* 0x470144A4: push eax */
   1418     ecx = edi; /* 0x470144A5: mov ecx, edi */
   1419     RECOMP_ICALL(0x4703B080u); /* 0x470144A7: call 0x4703b080 */ /* not lifted */
   1420     RECOMP_FLAGS_IN();
   1421     edx = MEM32(esp + 0x18); /* 0x470144AC: mov edx, dword ptr [esp + 0x18] */
   1422     PUSH32(esp, eax); /* 0x470144B0: push eax */
   1423     PUSH32(esp, edx); /* 0x470144B1: push edx */
   1424     PUSH32(esp, 0); /* 0x470144B2: push 0 */
   1425     PUSH32(esp, 0x8Du); /* 0x470144B4: push 0x8d */
   1426     PUSH32(esp, 0x471051D0u); /* 0x470144B9: push 0x471051d0 */
   1427     ecx = edi; /* 0x470144BE: mov ecx, edi */
   1428     RECOMP_ICALL(0x4703A340u); /* 0x470144C0: call 0x4703a340 */ /* not lifted */
   1429     RECOMP_FLAGS_IN();
   1430     PUSH32(esp, 0x47105320u); /* 0x470144C5: push 0x47105320 */
   1431     PUSH32(esp, 4); /* 0x470144CA: push 4 */
   1432     PUSH32(esp, edi); /* 0x470144CC: push edi */
   1433     RECOMP_ICALL(0x47039830u); /* 0x470144CD: call 0x47039830 */ /* not lifted */
   1434     RECOMP_FLAGS_IN();
   1435     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1436     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1437     esp = esp + 0xCu; /* 0x470144D2: add esp, 0xc */
   1438     _flag_k = FK_ADD;
   1439     ecx = esi + 0x44; /* 0x470144D5: lea ecx, [esi + 0x44] */
   1440     RECOMP_ICALL(0x470871B0u); /* 0x470144D8: call 0x470871b0 */ /* not lifted */
   1441     RECOMP_FLAGS_IN();
   1442     RECOMP_ICALL(ebx); /* 0x470144DD: call ebx */
   1443     RECOMP_FLAGS_IN();
   1444     esi = eax; /* 0x470144DF: mov esi, eax */
   1445     RECOMP_ICALL(ebp); /* 0x470144E1: call ebp */
   1446     RECOMP_FLAGS_IN();
   1447     eax = MEM32(eax); /* 0x470144E3: mov eax, dword ptr [eax] */
   1448     /* test eax, eax */ /* 0x470144E5: test eax, eax */
   1449     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1450     _cf = 0;
   1451     _flag_k = FK_TEST;
   1452     edi = esi; /* 0x470144E7: mov edi, esi */
   1453     if (TEST_Z(_flag_a, _flag_b)) goto L_470144ED; /* 0x470144E9: je 0x470144ed */
   1454 L_470144EB:
   1455     edi = eax; /* 0x470144EB: mov edi, eax */
   1456 L_470144ED:
   1457     RECOMP_ICALL(0x47039020u); /* 0x470144ED: call 0x47039020 */ /* not lifted */
   1458     RECOMP_FLAGS_IN();
   1459     esi = eax; /* 0x470144F2: mov esi, eax */
   1460     ecx = esi; /* 0x470144F4: mov ecx, esi */
   1461     RECOMP_ICALL(0x4703B210u); /* 0x470144F6: call 0x4703b210 */ /* not lifted */
   1462     RECOMP_FLAGS_IN();
   1463     PUSH32(esp, eax); /* 0x470144FB: push eax */
   1464     ecx = esi; /* 0x470144FC: mov ecx, esi */
   1465     RECOMP_ICALL(0x4703B240u); /* 0x470144FE: call 0x4703b240 */ /* not lifted */
   1466     RECOMP_FLAGS_IN();
   1467     PUSH32(esp, eax); /* 0x47014503: push eax */
   1468     ecx = esi; /* 0x47014504: mov ecx, esi */
   1469     RECOMP_ICALL(0x4703B080u); /* 0x47014506: call 0x4703b080 */ /* not lifted */
   1470     RECOMP_FLAGS_IN();
   1471     PUSH32(esp, eax); /* 0x4701450B: push eax */
   1472     PUSH32(esp, edi); /* 0x4701450C: push edi */
   1473     PUSH32(esp, 0); /* 0x4701450D: push 0 */
   1474     PUSH32(esp, 0x8Fu); /* 0x4701450F: push 0x8f */
   1475     PUSH32(esp, 0x471051D0u); /* 0x47014514: push 0x471051d0 */
   1476     ecx = esi; /* 0x47014519: mov ecx, esi */
   1477     RECOMP_ICALL(0x4703A340u); /* 0x4701451B: call 0x4703a340 */ /* not lifted */
   1478     RECOMP_FLAGS_IN();
   1479     PUSH32(esp, 0x4710529Cu); /* 0x47014520: push 0x4710529c */
   1480     PUSH32(esp, 4); /* 0x47014525: push 4 */
   1481     PUSH32(esp, esi); /* 0x47014527: push esi */
   1482     RECOMP_ICALL(0x47039830u); /* 0x47014528: call 0x47039830 */ /* not lifted */
   1483     RECOMP_FLAGS_IN();
   1484     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1485     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1486     esp = esp + 0xCu; /* 0x4701452D: add esp, 0xc */
   1487     _flag_k = FK_ADD;
   1488     edi = POP32_VAL(esp); /* 0x47014530: pop edi */
   1489     esi = POP32_VAL(esp); /* 0x47014531: pop esi */
   1490     ebp = POP32_VAL(esp); /* 0x47014532: pop ebp */
   1491     ebx = POP32_VAL(esp); /* 0x47014533: pop ebx */
   1492     ecx = POP32_VAL(esp); /* 0x47014534: pop ecx */
   1493     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014535: ret  */
   1494     RECOMP_REGS_OUT();
   1495 }
   1496 
   1497 void sub_47014531(void) {
   1498     int _fpu_cmp = 0;
   1499     uint32_t _cf = 0;
   1500     int _df = 1;
   1501     uint32_t _flag_k = FK_NONE;
   1502     uint32_t _flag_a = 0, _flag_b = 0;
   1503     uint32_t _itail_tgt = 0;
   1504     RECOMP_REGS_LOCALS
   1505     RECOMP_ENTER(0x47014531u);
   1506 
   1507 L_47014531:
   1508     esi = POP32_VAL(esp); /* 0x47014531: pop esi */
   1509     ebp = POP32_VAL(esp); /* 0x47014532: pop ebp */
   1510     ebx = POP32_VAL(esp); /* 0x47014533: pop ebx */
   1511     ecx = POP32_VAL(esp); /* 0x47014534: pop ecx */
   1512     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014535: ret  */
   1513     RECOMP_REGS_OUT();
   1514 }
   1515 
   1516 void sub_47014540(void) {
   1517     int _fpu_cmp = 0;
   1518     uint32_t _cf = 0;
   1519     int _df = 1;
   1520     uint32_t _flag_k = FK_NONE;
   1521     uint32_t _flag_a = 0, _flag_b = 0;
   1522     uint32_t _itail_tgt = 0;
   1523     RECOMP_REGS_LOCALS
   1524     RECOMP_ENTER(0x47014540u);
   1525 
   1526 L_47014540:
   1527     PUSH32(esp, esi); /* 0x47014540: push esi */
   1528     PUSH32(esp, edi); /* 0x47014541: push edi */
   1529     edi = MEM32(esp + 0xC); /* 0x47014542: mov edi, dword ptr [esp + 0xc] */
   1530     /* test edi, edi */ /* 0x47014546: test edi, edi */
   1531     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1532     _cf = 0;
   1533     _flag_k = FK_TEST;
   1534     esi = ecx; /* 0x47014548: mov esi, ecx */
   1535     if (TEST_NZ(_flag_a, _flag_b)) goto L_47014554; /* 0x4701454A: jne 0x47014554 */
   1536 L_4701454C:
   1537     edi = POP32_VAL(esp); /* 0x4701454C: pop edi */
   1538     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1539     eax = eax | 0xFFFFFFFFu; /* 0x4701454D: or eax, 0xffffffff */
   1540     _cf = 0;
   1541     _flag_k = FK_TEST;
   1542     esi = POP32_VAL(esp); /* 0x47014550: pop esi */
   1543     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014551: ret 4 */
   1544 L_47014554:
   1545     eax = MEM32(esi + 0x4); /* 0x47014554: mov eax, dword ptr [esi + 4] */
   1546     /* test eax, eax */ /* 0x47014557: test eax, eax */
   1547     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1548     _cf = 0;
   1549     _flag_k = FK_TEST;
   1550     if (TEST_NZ(_flag_a, _flag_b)) goto L_47014568; /* 0x47014559: jne 0x47014568 */
   1551 L_4701455B:
   1552     eax = MEM32(esi); /* 0x4701455B: mov eax, dword ptr [esi] */
   1553     PUSH32(esp, edi); /* 0x4701455D: push edi */
   1554     ecx = esi; /* 0x4701455E: mov ecx, esi */
   1555     RECOMP_ICALL(MEM32(eax + 0x78)); /* 0x47014560: call dword ptr [eax + 0x78] */
   1556     RECOMP_FLAGS_IN();
   1557     edi = POP32_VAL(esp); /* 0x47014563: pop edi */
   1558     esi = POP32_VAL(esp); /* 0x47014564: pop esi */
   1559     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014565: ret 4 */
   1560 L_47014568:
   1561     eax = MEM32(esi + 0x8); /* 0x47014568: mov eax, dword ptr [esi + 8] */
   1562     /* test eax, eax */ /* 0x4701456B: test eax, eax */
   1563     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1564     _cf = 0;
   1565     _flag_k = FK_TEST;
   1566     if (TEST_Z(_flag_a, _flag_b)) goto L_4701458F; /* 0x4701456D: je 0x4701458f */
   1567 L_4701456F:
   1568     ecx = MEM32(edi + 0xC); /* 0x4701456F: mov ecx, dword ptr [edi + 0xc] */
   1569 L_47014572:
   1570     /* cmp MEM32(eax + 0xC), ecx */ /* 0x47014572: cmp dword ptr [eax + 0xc], ecx */
   1571     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(ecx);
   1572     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1573     _flag_k = FK_CMP;
   1574     if (CMP_AE(_flag_a, _flag_b)) goto L_4701458B; /* 0x47014575: jae 0x4701458b */
   1575 L_47014577:
   1576     eax = MEM32(eax + 0x28); /* 0x47014577: mov eax, dword ptr [eax + 0x28] */
   1577     /* test eax, eax */ /* 0x4701457A: test eax, eax */
   1578     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1579     _cf = 0;
   1580     _flag_k = FK_TEST;
   1581     RECOMP_BACKEDGE();
   1582     if (TEST_NZ(_flag_a, _flag_b)) goto L_47014572; /* 0x4701457C: jne 0x47014572 */
   1583 L_4701457E:
   1584     edx = MEM32(esi); /* 0x4701457E: mov edx, dword ptr [esi] */
   1585     PUSH32(esp, edi); /* 0x47014580: push edi */
   1586     ecx = esi; /* 0x47014581: mov ecx, esi */
   1587     RECOMP_ICALL(MEM32(edx + 0x78)); /* 0x47014583: call dword ptr [edx + 0x78] */
   1588     RECOMP_FLAGS_IN();
   1589     edi = POP32_VAL(esp); /* 0x47014586: pop edi */
   1590     esi = POP32_VAL(esp); /* 0x47014587: pop esi */
   1591     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014588: ret 4 */
   1592 L_4701458B:
   1593     /* test eax, eax */ /* 0x4701458B: test eax, eax */
   1594     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1595     _cf = 0;
   1596     _flag_k = FK_TEST;
   1597     if (TEST_NZ(_flag_a, _flag_b)) goto L_4701459C; /* 0x4701458D: jne 0x4701459c */
   1598 L_4701458F:
   1599     edx = MEM32(esi); /* 0x4701458F: mov edx, dword ptr [esi] */
   1600     PUSH32(esp, edi); /* 0x47014591: push edi */
   1601     ecx = esi; /* 0x47014592: mov ecx, esi */
   1602     RECOMP_ICALL(MEM32(edx + 0x78)); /* 0x47014594: call dword ptr [edx + 0x78] */
   1603     RECOMP_FLAGS_IN();
   1604     edi = POP32_VAL(esp); /* 0x47014597: pop edi */
   1605     esi = POP32_VAL(esp); /* 0x47014598: pop esi */
   1606     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014599: ret 4 */
   1607 L_4701459C:
   1608     ecx = MEM32(eax + 0x24); /* 0x4701459C: mov ecx, dword ptr [eax + 0x24] */
   1609     /* test ecx, ecx */ /* 0x4701459F: test ecx, ecx */
   1610     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1611     _cf = 0;
   1612     _flag_k = FK_TEST;
   1613     if (TEST_NZ(_flag_a, _flag_b)) goto L_470145B0; /* 0x470145A1: jne 0x470145b0 */
   1614 L_470145A3:
   1615     eax = MEM32(esi); /* 0x470145A3: mov eax, dword ptr [esi] */
   1616     PUSH32(esp, edi); /* 0x470145A5: push edi */
   1617     ecx = esi; /* 0x470145A6: mov ecx, esi */
   1618     RECOMP_ICALL(MEM32(eax + 0x74)); /* 0x470145A8: call dword ptr [eax + 0x74] */
   1619     RECOMP_FLAGS_IN();
   1620     edi = POP32_VAL(esp); /* 0x470145AB: pop edi */
   1621     esi = POP32_VAL(esp); /* 0x470145AC: pop esi */
   1622     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470145AD: ret 4 */
   1623 L_470145B0:
   1624     MEM32(edi + 0x28) = eax; /* 0x470145B0: mov dword ptr [edi + 0x28], eax */
   1625     ecx = MEM32(eax + 0x24); /* 0x470145B3: mov ecx, dword ptr [eax + 0x24] */
   1626     MEM32(edi + 0x24) = ecx; /* 0x470145B6: mov dword ptr [edi + 0x24], ecx */
   1627     edx = MEM32(eax + 0x24); /* 0x470145B9: mov edx, dword ptr [eax + 0x24] */
   1628     MEM32(edx + 0x28) = edi; /* 0x470145BC: mov dword ptr [edx + 0x28], edi */
   1629     ecx = edi; /* 0x470145BF: mov ecx, edi */
   1630     MEM32(eax + 0x24) = edi; /* 0x470145C1: mov dword ptr [eax + 0x24], edi */
   1631     RECOMP_ICALL(0x47043FB0u); /* 0x470145C4: call 0x47043fb0 */ /* not lifted */
   1632     RECOMP_FLAGS_IN();
   1633     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   1634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1635     MEM32(esi + 0x14) = MEM32(esi + 0x14) + eax; /* 0x470145C9: add dword ptr [esi + 0x14], eax */
   1636     _flag_k = FK_ADD;
   1637     ecx = edi; /* 0x470145CC: mov ecx, edi */
   1638     RECOMP_ICALL(0x47043FD0u); /* 0x470145CE: call 0x47043fd0 */ /* not lifted */
   1639     RECOMP_FLAGS_IN();
   1640     edi = MEM32(esi + 0x18); /* 0x470145D3: mov edi, dword ptr [esi + 0x18] */
   1641     edx = MEM32(esi + 0x1C); /* 0x470145D6: mov edx, dword ptr [esi + 0x1c] */
   1642     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1643     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1644     edi = edi + eax; /* 0x470145D9: add edi, eax */
   1645     _flag_k = FK_ADD;
   1646     eax = MEM32(esi); /* 0x470145DB: mov eax, dword ptr [esi] */
   1647     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1648     edx = edx + 1; /* 0x470145DD: inc edx */
   1649     _flag_k = FK_INC;
   1650     ecx = esi; /* 0x470145DE: mov ecx, esi */
   1651     MEM32(esi + 0x18) = edi; /* 0x470145E0: mov dword ptr [esi + 0x18], edi */
   1652     MEM32(esi + 0x1C) = edx; /* 0x470145E3: mov dword ptr [esi + 0x1c], edx */
   1653     RECOMP_ICALL(MEM32(eax + 0x9C)); /* 0x470145E6: call dword ptr [eax + 0x9c] */
   1654     RECOMP_FLAGS_IN();
   1655     /* cmp eax, 0xFFFFFFFFu */ /* 0x470145EC: cmp eax, -1 */
   1656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1658     _flag_k = FK_CMP;
   1659     if (CMP_NE(_flag_a, _flag_b)) goto L_470145F8; /* 0x470145EF: jne 0x470145f8 */
   1660 L_470145F1:
   1661     edi = POP32_VAL(esp); /* 0x470145F1: pop edi */
   1662     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   1663     eax = eax | eax; /* 0x470145F2: or eax, eax */
   1664     _cf = 0;
   1665     _flag_k = FK_TEST;
   1666     esi = POP32_VAL(esp); /* 0x470145F4: pop esi */
   1667     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470145F5: ret 4 */
   1668 L_470145F8:
   1669     eax = MEM32(esi + 0x1C); /* 0x470145F8: mov eax, dword ptr [esi + 0x1c] */
   1670     edi = POP32_VAL(esp); /* 0x470145FB: pop edi */
   1671     esi = POP32_VAL(esp); /* 0x470145FC: pop esi */
   1672     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470145FD: ret 4 */
   1673     RECOMP_REGS_OUT();
   1674 }
   1675 
   1676 void sub_47014600(void) {
   1677     int _fpu_cmp = 0;
   1678     uint32_t _cf = 0;
   1679     int _df = 1;
   1680     uint32_t _flag_k = FK_NONE;
   1681     uint32_t _flag_a = 0, _flag_b = 0;
   1682     uint32_t _itail_tgt = 0;
   1683     RECOMP_REGS_LOCALS
   1684     RECOMP_ENTER(0x47014600u);
   1685 
   1686 L_47014600:
   1687     PUSH32(esp, esi); /* 0x47014600: push esi */
   1688     PUSH32(esp, edi); /* 0x47014601: push edi */
   1689     edi = MEM32(esp + 0xC); /* 0x47014602: mov edi, dword ptr [esp + 0xc] */
   1690     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1691     eax = 0; /* 0x47014606: xor eax, eax */
   1692     _cf = 0;
   1693     _flag_k = FK_TEST;
   1694     /* cmp edi, eax */ /* 0x47014608: cmp edi, eax */
   1695     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1697     _flag_k = FK_CMP;
   1698     esi = ecx; /* 0x4701460A: mov esi, ecx */
   1699     if (CMP_NE(_flag_a, _flag_b)) goto L_47014616; /* 0x4701460C: jne 0x47014616 */
   1700 L_4701460E:
   1701     edi = POP32_VAL(esp); /* 0x4701460E: pop edi */
   1702     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1703     eax = eax | 0xFFFFFFFFu; /* 0x4701460F: or eax, 0xffffffff */
   1704     _cf = 0;
   1705     _flag_k = FK_TEST;
   1706     esi = POP32_VAL(esp); /* 0x47014612: pop esi */
   1707     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014613: ret 4 */
   1708 L_47014616:
   1709     /* cmp MEM32(esi + 0x8), eax */ /* 0x47014616: cmp dword ptr [esi + 8], eax */
   1710     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   1711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1712     _flag_k = FK_CMP;
   1713     if (CMP_NE(_flag_a, _flag_b)) goto L_47014629; /* 0x47014619: jne 0x47014629 */
   1714 L_4701461B:
   1715     MEM32(esi + 0x4) = edi; /* 0x4701461B: mov dword ptr [esi + 4], edi */
   1716     MEM32(esi + 0x8) = edi; /* 0x4701461E: mov dword ptr [esi + 8], edi */
   1717     MEM32(edi + 0x24) = eax; /* 0x47014621: mov dword ptr [edi + 0x24], eax */
   1718     MEM32(edi + 0x28) = eax; /* 0x47014624: mov dword ptr [edi + 0x28], eax */
   1719     goto L_4701463B; /* 0x47014627: jmp 0x4701463b */
   1720 L_47014629:
   1721     MEM32(edi + 0x24) = eax; /* 0x47014629: mov dword ptr [edi + 0x24], eax */
   1722     eax = MEM32(esi + 0x8); /* 0x4701462C: mov eax, dword ptr [esi + 8] */
   1723     MEM32(eax + 0x24) = edi; /* 0x4701462F: mov dword ptr [eax + 0x24], edi */
   1724     ecx = MEM32(esi + 0x8); /* 0x47014632: mov ecx, dword ptr [esi + 8] */
   1725     MEM32(edi + 0x28) = ecx; /* 0x47014635: mov dword ptr [edi + 0x28], ecx */
   1726     MEM32(esi + 0x8) = edi; /* 0x47014638: mov dword ptr [esi + 8], edi */
   1727 L_4701463B:
   1728     ecx = edi; /* 0x4701463B: mov ecx, edi */
   1729     RECOMP_ICALL(0x47043FB0u); /* 0x4701463D: call 0x47043fb0 */ /* not lifted */
   1730     RECOMP_FLAGS_IN();
   1731     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   1732     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1733     MEM32(esi + 0x14) = MEM32(esi + 0x14) + eax; /* 0x47014642: add dword ptr [esi + 0x14], eax */
   1734     _flag_k = FK_ADD;
   1735     ecx = edi; /* 0x47014645: mov ecx, edi */
   1736     RECOMP_ICALL(0x47043FD0u); /* 0x47014647: call 0x47043fd0 */ /* not lifted */
   1737     RECOMP_FLAGS_IN();
   1738     edi = MEM32(esi + 0x18); /* 0x4701464C: mov edi, dword ptr [esi + 0x18] */
   1739     edx = MEM32(esi + 0x1C); /* 0x4701464F: mov edx, dword ptr [esi + 0x1c] */
   1740     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1741     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1742     edi = edi + eax; /* 0x47014652: add edi, eax */
   1743     _flag_k = FK_ADD;
   1744     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1745     edx = edx + 1; /* 0x47014654: inc edx */
   1746     _flag_k = FK_INC;
   1747     MEM32(esi + 0x1C) = edx; /* 0x47014655: mov dword ptr [esi + 0x1c], edx */
   1748     edx = MEM32(esi); /* 0x47014658: mov edx, dword ptr [esi] */
   1749     ecx = esi; /* 0x4701465A: mov ecx, esi */
   1750     MEM32(esi + 0x18) = edi; /* 0x4701465C: mov dword ptr [esi + 0x18], edi */
   1751     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x4701465F: call dword ptr [edx + 0x9c] */
   1752     RECOMP_FLAGS_IN();
   1753     /* cmp eax, 0xFFFFFFFFu */ /* 0x47014665: cmp eax, -1 */
   1754     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1756     _flag_k = FK_CMP;
   1757     if (CMP_NE(_flag_a, _flag_b)) goto L_47014671; /* 0x47014668: jne 0x47014671 */
   1758 L_4701466A:
   1759     edi = POP32_VAL(esp); /* 0x4701466A: pop edi */
   1760     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   1761     eax = eax | eax; /* 0x4701466B: or eax, eax */
   1762     _cf = 0;
   1763     _flag_k = FK_TEST;
   1764     esi = POP32_VAL(esp); /* 0x4701466D: pop esi */
   1765     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701466E: ret 4 */
   1766 L_47014671:
   1767     eax = MEM32(esi + 0x1C); /* 0x47014671: mov eax, dword ptr [esi + 0x1c] */
   1768     edi = POP32_VAL(esp); /* 0x47014674: pop edi */
   1769     esi = POP32_VAL(esp); /* 0x47014675: pop esi */
   1770     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014676: ret 4 */
   1771     RECOMP_REGS_OUT();
   1772 }
   1773 
   1774 void sub_47014601(void) {
   1775     int _fpu_cmp = 0;
   1776     uint32_t _cf = 0;
   1777     int _df = 1;
   1778     uint32_t _flag_k = FK_NONE;
   1779     uint32_t _flag_a = 0, _flag_b = 0;
   1780     uint32_t _itail_tgt = 0;
   1781     RECOMP_REGS_LOCALS
   1782     RECOMP_ENTER(0x47014601u);
   1783 
   1784 L_47014601:
   1785     PUSH32(esp, edi); /* 0x47014601: push edi */
   1786     edi = MEM32(esp + 0xC); /* 0x47014602: mov edi, dword ptr [esp + 0xc] */
   1787     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1788     eax = 0; /* 0x47014606: xor eax, eax */
   1789     _cf = 0;
   1790     _flag_k = FK_TEST;
   1791     /* cmp edi, eax */ /* 0x47014608: cmp edi, eax */
   1792     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1794     _flag_k = FK_CMP;
   1795     esi = ecx; /* 0x4701460A: mov esi, ecx */
   1796     if (CMP_NE(_flag_a, _flag_b)) goto L_47014616; /* 0x4701460C: jne 0x47014616 */
   1797 L_4701460E:
   1798     edi = POP32_VAL(esp); /* 0x4701460E: pop edi */
   1799     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1800     eax = eax | 0xFFFFFFFFu; /* 0x4701460F: or eax, 0xffffffff */
   1801     _cf = 0;
   1802     _flag_k = FK_TEST;
   1803     esi = POP32_VAL(esp); /* 0x47014612: pop esi */
   1804     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014613: ret 4 */
   1805 L_47014616:
   1806     /* cmp MEM32(esi + 0x8), eax */ /* 0x47014616: cmp dword ptr [esi + 8], eax */
   1807     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   1808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1809     _flag_k = FK_CMP;
   1810     if (CMP_NE(_flag_a, _flag_b)) goto L_47014629; /* 0x47014619: jne 0x47014629 */
   1811 L_4701461B:
   1812     MEM32(esi + 0x4) = edi; /* 0x4701461B: mov dword ptr [esi + 4], edi */
   1813     MEM32(esi + 0x8) = edi; /* 0x4701461E: mov dword ptr [esi + 8], edi */
   1814     MEM32(edi + 0x24) = eax; /* 0x47014621: mov dword ptr [edi + 0x24], eax */
   1815     MEM32(edi + 0x28) = eax; /* 0x47014624: mov dword ptr [edi + 0x28], eax */
   1816     goto L_4701463B; /* 0x47014627: jmp 0x4701463b */
   1817 L_47014629:
   1818     MEM32(edi + 0x24) = eax; /* 0x47014629: mov dword ptr [edi + 0x24], eax */
   1819     eax = MEM32(esi + 0x8); /* 0x4701462C: mov eax, dword ptr [esi + 8] */
   1820     MEM32(eax + 0x24) = edi; /* 0x4701462F: mov dword ptr [eax + 0x24], edi */
   1821     ecx = MEM32(esi + 0x8); /* 0x47014632: mov ecx, dword ptr [esi + 8] */
   1822     MEM32(edi + 0x28) = ecx; /* 0x47014635: mov dword ptr [edi + 0x28], ecx */
   1823     MEM32(esi + 0x8) = edi; /* 0x47014638: mov dword ptr [esi + 8], edi */
   1824 L_4701463B:
   1825     ecx = edi; /* 0x4701463B: mov ecx, edi */
   1826     RECOMP_ICALL(0x47043FB0u); /* 0x4701463D: call 0x47043fb0 */ /* not lifted */
   1827     RECOMP_FLAGS_IN();
   1828     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   1829     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1830     MEM32(esi + 0x14) = MEM32(esi + 0x14) + eax; /* 0x47014642: add dword ptr [esi + 0x14], eax */
   1831     _flag_k = FK_ADD;
   1832     ecx = edi; /* 0x47014645: mov ecx, edi */
   1833     RECOMP_ICALL(0x47043FD0u); /* 0x47014647: call 0x47043fd0 */ /* not lifted */
   1834     RECOMP_FLAGS_IN();
   1835     edi = MEM32(esi + 0x18); /* 0x4701464C: mov edi, dword ptr [esi + 0x18] */
   1836     edx = MEM32(esi + 0x1C); /* 0x4701464F: mov edx, dword ptr [esi + 0x1c] */
   1837     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1838     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1839     edi = edi + eax; /* 0x47014652: add edi, eax */
   1840     _flag_k = FK_ADD;
   1841     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1842     edx = edx + 1; /* 0x47014654: inc edx */
   1843     _flag_k = FK_INC;
   1844     MEM32(esi + 0x1C) = edx; /* 0x47014655: mov dword ptr [esi + 0x1c], edx */
   1845     edx = MEM32(esi); /* 0x47014658: mov edx, dword ptr [esi] */
   1846     ecx = esi; /* 0x4701465A: mov ecx, esi */
   1847     MEM32(esi + 0x18) = edi; /* 0x4701465C: mov dword ptr [esi + 0x18], edi */
   1848     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x4701465F: call dword ptr [edx + 0x9c] */
   1849     RECOMP_FLAGS_IN();
   1850     /* cmp eax, 0xFFFFFFFFu */ /* 0x47014665: cmp eax, -1 */
   1851     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1853     _flag_k = FK_CMP;
   1854     if (CMP_NE(_flag_a, _flag_b)) goto L_47014671; /* 0x47014668: jne 0x47014671 */
   1855 L_4701466A:
   1856     edi = POP32_VAL(esp); /* 0x4701466A: pop edi */
   1857     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   1858     eax = eax | eax; /* 0x4701466B: or eax, eax */
   1859     _cf = 0;
   1860     _flag_k = FK_TEST;
   1861     esi = POP32_VAL(esp); /* 0x4701466D: pop esi */
   1862     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701466E: ret 4 */
   1863 L_47014671:
   1864     eax = MEM32(esi + 0x1C); /* 0x47014671: mov eax, dword ptr [esi + 0x1c] */
   1865     edi = POP32_VAL(esp); /* 0x47014674: pop edi */
   1866     esi = POP32_VAL(esp); /* 0x47014675: pop esi */
   1867     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014676: ret 4 */
   1868     RECOMP_REGS_OUT();
   1869 }
   1870 
   1871 void sub_4701463B(void) {
   1872     int _fpu_cmp = 0;
   1873     uint32_t _cf = 0;
   1874     int _df = 1;
   1875     uint32_t _flag_k = FK_NONE;
   1876     uint32_t _flag_a = 0, _flag_b = 0;
   1877     uint32_t _itail_tgt = 0;
   1878     RECOMP_REGS_LOCALS
   1879     RECOMP_ENTER(0x4701463Bu);
   1880 
   1881 L_4701463B:
   1882     ecx = edi; /* 0x4701463B: mov ecx, edi */
   1883     RECOMP_ICALL(0x47043FB0u); /* 0x4701463D: call 0x47043fb0 */ /* not lifted */
   1884     RECOMP_FLAGS_IN();
   1885     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   1886     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1887     MEM32(esi + 0x14) = MEM32(esi + 0x14) + eax; /* 0x47014642: add dword ptr [esi + 0x14], eax */
   1888     _flag_k = FK_ADD;
   1889     ecx = edi; /* 0x47014645: mov ecx, edi */
   1890     RECOMP_ICALL(0x47043FD0u); /* 0x47014647: call 0x47043fd0 */ /* not lifted */
   1891     RECOMP_FLAGS_IN();
   1892     edi = MEM32(esi + 0x18); /* 0x4701464C: mov edi, dword ptr [esi + 0x18] */
   1893     edx = MEM32(esi + 0x1C); /* 0x4701464F: mov edx, dword ptr [esi + 0x1c] */
   1894     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1895     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1896     edi = edi + eax; /* 0x47014652: add edi, eax */
   1897     _flag_k = FK_ADD;
   1898     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1899     edx = edx + 1; /* 0x47014654: inc edx */
   1900     _flag_k = FK_INC;
   1901     MEM32(esi + 0x1C) = edx; /* 0x47014655: mov dword ptr [esi + 0x1c], edx */
   1902     edx = MEM32(esi); /* 0x47014658: mov edx, dword ptr [esi] */
   1903     ecx = esi; /* 0x4701465A: mov ecx, esi */
   1904     MEM32(esi + 0x18) = edi; /* 0x4701465C: mov dword ptr [esi + 0x18], edi */
   1905     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x4701465F: call dword ptr [edx + 0x9c] */
   1906     RECOMP_FLAGS_IN();
   1907     /* cmp eax, 0xFFFFFFFFu */ /* 0x47014665: cmp eax, -1 */
   1908     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1909     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1910     _flag_k = FK_CMP;
   1911     if (CMP_NE(_flag_a, _flag_b)) goto L_47014671; /* 0x47014668: jne 0x47014671 */
   1912 L_4701466A:
   1913     edi = POP32_VAL(esp); /* 0x4701466A: pop edi */
   1914     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   1915     eax = eax | eax; /* 0x4701466B: or eax, eax */
   1916     _cf = 0;
   1917     _flag_k = FK_TEST;
   1918     esi = POP32_VAL(esp); /* 0x4701466D: pop esi */
   1919     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701466E: ret 4 */
   1920 L_47014671:
   1921     eax = MEM32(esi + 0x1C); /* 0x47014671: mov eax, dword ptr [esi + 0x1c] */
   1922     edi = POP32_VAL(esp); /* 0x47014674: pop edi */
   1923     esi = POP32_VAL(esp); /* 0x47014675: pop esi */
   1924     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014676: ret 4 */
   1925     RECOMP_REGS_OUT();
   1926 }
   1927 
   1928 void sub_47014680(void) {
   1929     int _fpu_cmp = 0;
   1930     uint32_t _cf = 0;
   1931     int _df = 1;
   1932     uint32_t _flag_k = FK_NONE;
   1933     uint32_t _flag_a = 0, _flag_b = 0;
   1934     uint32_t _itail_tgt = 0;
   1935     RECOMP_REGS_LOCALS
   1936     RECOMP_ENTER(0x47014680u);
   1937 
   1938 L_47014680:
   1939     PUSH32(esp, esi); /* 0x47014680: push esi */
   1940     PUSH32(esp, edi); /* 0x47014681: push edi */
   1941     edi = MEM32(esp + 0xC); /* 0x47014682: mov edi, dword ptr [esp + 0xc] */
   1942     /* test edi, edi */ /* 0x47014686: test edi, edi */
   1943     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1944     _cf = 0;
   1945     _flag_k = FK_TEST;
   1946     esi = ecx; /* 0x47014688: mov esi, ecx */
   1947     if (TEST_NZ(_flag_a, _flag_b)) goto L_47014694; /* 0x4701468A: jne 0x47014694 */
   1948 L_4701468C:
   1949     edi = POP32_VAL(esp); /* 0x4701468C: pop edi */
   1950     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1951     eax = eax | 0xFFFFFFFFu; /* 0x4701468D: or eax, 0xffffffff */
   1952     _cf = 0;
   1953     _flag_k = FK_TEST;
   1954     esi = POP32_VAL(esp); /* 0x47014690: pop esi */
   1955     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014691: ret 4 */
   1956 L_47014694:
   1957     MEM32(edi + 0x28) = 0; /* 0x47014694: mov dword ptr [edi + 0x28], 0 */
   1958     eax = MEM32(esi + 0x4); /* 0x4701469B: mov eax, dword ptr [esi + 4] */
   1959     MEM32(edi + 0x24) = eax; /* 0x4701469E: mov dword ptr [edi + 0x24], eax */
   1960     eax = MEM32(esi + 0x4); /* 0x470146A1: mov eax, dword ptr [esi + 4] */
   1961     /* test eax, eax */ /* 0x470146A4: test eax, eax */
   1962     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1963     _cf = 0;
   1964     _flag_k = FK_TEST;
   1965     if (TEST_Z(_flag_a, _flag_b)) goto L_470146AD; /* 0x470146A6: je 0x470146ad */
   1966 L_470146A8:
   1967     MEM32(eax + 0x28) = edi; /* 0x470146A8: mov dword ptr [eax + 0x28], edi */
   1968     goto L_470146B0; /* 0x470146AB: jmp 0x470146b0 */
   1969 L_470146AD:
   1970     MEM32(esi + 0x8) = edi; /* 0x470146AD: mov dword ptr [esi + 8], edi */
   1971 L_470146B0:
   1972     ecx = edi; /* 0x470146B0: mov ecx, edi */
   1973     MEM32(esi + 0x4) = edi; /* 0x470146B2: mov dword ptr [esi + 4], edi */
   1974     RECOMP_ICALL(0x47043FB0u); /* 0x470146B5: call 0x47043fb0 */ /* not lifted */
   1975     RECOMP_FLAGS_IN();
   1976     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   1977     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1978     MEM32(esi + 0x14) = MEM32(esi + 0x14) + eax; /* 0x470146BA: add dword ptr [esi + 0x14], eax */
   1979     _flag_k = FK_ADD;
   1980     ecx = edi; /* 0x470146BD: mov ecx, edi */
   1981     RECOMP_ICALL(0x47043FD0u); /* 0x470146BF: call 0x47043fd0 */ /* not lifted */
   1982     RECOMP_FLAGS_IN();
   1983     edi = MEM32(esi + 0x18); /* 0x470146C4: mov edi, dword ptr [esi + 0x18] */
   1984     edx = MEM32(esi + 0x1C); /* 0x470146C7: mov edx, dword ptr [esi + 0x1c] */
   1985     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1986     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1987     edi = edi + eax; /* 0x470146CA: add edi, eax */
   1988     _flag_k = FK_ADD;
   1989     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1990     edx = edx + 1; /* 0x470146CC: inc edx */
   1991     _flag_k = FK_INC;
   1992     MEM32(esi + 0x1C) = edx; /* 0x470146CD: mov dword ptr [esi + 0x1c], edx */
   1993     edx = MEM32(esi); /* 0x470146D0: mov edx, dword ptr [esi] */
   1994     ecx = esi; /* 0x470146D2: mov ecx, esi */
   1995     MEM32(esi + 0x18) = edi; /* 0x470146D4: mov dword ptr [esi + 0x18], edi */
   1996     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x470146D7: call dword ptr [edx + 0x9c] */
   1997     RECOMP_FLAGS_IN();
   1998     /* cmp eax, 0xFFFFFFFFu */ /* 0x470146DD: cmp eax, -1 */
   1999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2001     _flag_k = FK_CMP;
   2002     if (CMP_NE(_flag_a, _flag_b)) goto L_470146E9; /* 0x470146E0: jne 0x470146e9 */
   2003 L_470146E2:
   2004     edi = POP32_VAL(esp); /* 0x470146E2: pop edi */
   2005     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   2006     eax = eax | eax; /* 0x470146E3: or eax, eax */
   2007     _cf = 0;
   2008     _flag_k = FK_TEST;
   2009     esi = POP32_VAL(esp); /* 0x470146E5: pop esi */
   2010     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470146E6: ret 4 */
   2011 L_470146E9:
   2012     eax = MEM32(esi + 0x1C); /* 0x470146E9: mov eax, dword ptr [esi + 0x1c] */
   2013     edi = POP32_VAL(esp); /* 0x470146EC: pop edi */
   2014     esi = POP32_VAL(esp); /* 0x470146ED: pop esi */
   2015     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470146EE: ret 4 */
   2016     RECOMP_REGS_OUT();
   2017 }
   2018 
   2019 void sub_47014700(void) {
   2020     int _fpu_cmp = 0;
   2021     uint32_t _cf = 0;
   2022     int _df = 1;
   2023     uint32_t _flag_k = FK_NONE;
   2024     uint32_t _flag_a = 0, _flag_b = 0;
   2025     uint32_t _itail_tgt = 0;
   2026     RECOMP_REGS_LOCALS
   2027     RECOMP_ENTER(0x47014700u);
   2028 
   2029 L_47014700:
   2030     PUSH32(esp, esi); /* 0x47014700: push esi */
   2031     esi = ecx; /* 0x47014701: mov esi, ecx */
   2032     eax = MEM32(esi + 0x4); /* 0x47014703: mov eax, dword ptr [esi + 4] */
   2033     /* test eax, eax */ /* 0x47014706: test eax, eax */
   2034     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2035     _cf = 0;
   2036     _flag_k = FK_TEST;
   2037     PUSH32(esp, edi); /* 0x47014708: push edi */
   2038     if (TEST_NZ(_flag_a, _flag_b)) goto L_4701476F; /* 0x47014709: jne 0x4701476f */
   2039 L_4701470B:
   2040     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4701470B: call dword ptr [0x470ac150] */
   2041     RECOMP_FLAGS_IN();
   2042     edi = eax; /* 0x47014711: mov edi, eax */
   2043     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47014713: call dword ptr [0x470ac3c8] */
   2044     RECOMP_FLAGS_IN();
   2045     eax = MEM32(eax); /* 0x47014719: mov eax, dword ptr [eax] */
   2046     /* test eax, eax */ /* 0x4701471B: test eax, eax */
   2047     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2048     _cf = 0;
   2049     _flag_k = FK_TEST;
   2050     if (TEST_Z(_flag_a, _flag_b)) goto L_47014721; /* 0x4701471D: je 0x47014721 */
   2051 L_4701471F:
   2052     edi = eax; /* 0x4701471F: mov edi, eax */
   2053 L_47014721:
   2054     RECOMP_ICALL(0x47039020u); /* 0x47014721: call 0x47039020 */ /* not lifted */
   2055     RECOMP_FLAGS_IN();
   2056     esi = eax; /* 0x47014726: mov esi, eax */
   2057     ecx = esi; /* 0x47014728: mov ecx, esi */
   2058     RECOMP_ICALL(0x4703B210u); /* 0x4701472A: call 0x4703b210 */ /* not lifted */
   2059     RECOMP_FLAGS_IN();
   2060     PUSH32(esp, eax); /* 0x4701472F: push eax */
   2061     ecx = esi; /* 0x47014730: mov ecx, esi */
   2062     RECOMP_ICALL(0x4703B240u); /* 0x47014732: call 0x4703b240 */ /* not lifted */
   2063     RECOMP_FLAGS_IN();
   2064     PUSH32(esp, eax); /* 0x47014737: push eax */
   2065     ecx = esi; /* 0x47014738: mov ecx, esi */
   2066     RECOMP_ICALL(0x4703B080u); /* 0x4701473A: call 0x4703b080 */ /* not lifted */
   2067     RECOMP_FLAGS_IN();
   2068     PUSH32(esp, eax); /* 0x4701473F: push eax */
   2069     PUSH32(esp, edi); /* 0x47014740: push edi */
   2070     PUSH32(esp, 0xFFFFFFFFu); /* 0x47014741: push -1 */
   2071     PUSH32(esp, 0x1C9u); /* 0x47014743: push 0x1c9 */
   2072     PUSH32(esp, 0x471051D0u); /* 0x47014748: push 0x471051d0 */
   2073     ecx = esi; /* 0x4701474D: mov ecx, esi */
   2074     RECOMP_ICALL(0x4703A340u); /* 0x4701474F: call 0x4703a340 */ /* not lifted */
   2075     RECOMP_FLAGS_IN();
   2076     PUSH32(esp, 0x471053C8u); /* 0x47014754: push 0x471053c8 */
   2077     PUSH32(esp, 0x80u); /* 0x47014759: push 0x80 */
   2078     PUSH32(esp, esi); /* 0x4701475E: push esi */
   2079     RECOMP_ICALL(0x47039830u); /* 0x4701475F: call 0x47039830 */ /* not lifted */
   2080     RECOMP_FLAGS_IN();
   2081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2083     esp = esp + 0xCu; /* 0x47014764: add esp, 0xc */
   2084     _flag_k = FK_ADD;
   2085     edi = POP32_VAL(esp); /* 0x47014767: pop edi */
   2086     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2087     eax = eax | 0xFFFFFFFFu; /* 0x47014768: or eax, 0xffffffff */
   2088     _cf = 0;
   2089     _flag_k = FK_TEST;
   2090     esi = POP32_VAL(esp); /* 0x4701476B: pop esi */
   2091     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701476C: ret 4 */
   2092 L_4701476F:
   2093     edi = MEM32(esp + 0xC); /* 0x4701476F: mov edi, dword ptr [esp + 0xc] */
   2094     MEM32(edi) = eax; /* 0x47014773: mov dword ptr [edi], eax */
   2095     eax = MEM32(esi + 0x4); /* 0x47014775: mov eax, dword ptr [esi + 4] */
   2096     eax = MEM32(eax + 0x24); /* 0x47014778: mov eax, dword ptr [eax + 0x24] */
   2097     /* test eax, eax */ /* 0x4701477B: test eax, eax */
   2098     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2099     _cf = 0;
   2100     _flag_k = FK_TEST;
   2101     MEM32(esi + 0x4) = eax; /* 0x4701477D: mov dword ptr [esi + 4], eax */
   2102     if (TEST_NZ(_flag_a, _flag_b)) goto L_47014787; /* 0x47014780: jne 0x47014787 */
   2103 L_47014782:
   2104     MEM32(esi + 0x8) = eax; /* 0x47014782: mov dword ptr [esi + 8], eax */
   2105     goto L_4701478E; /* 0x47014785: jmp 0x4701478e */
   2106 L_47014787:
   2107     MEM32(eax + 0x28) = 0; /* 0x47014787: mov dword ptr [eax + 0x28], 0 */
   2108 L_4701478E:
   2109     ecx = MEM32(edi); /* 0x4701478E: mov ecx, dword ptr [edi] */
   2110     RECOMP_ICALL(0x47043FB0u); /* 0x47014790: call 0x47043fb0 */ /* not lifted */
   2111     RECOMP_FLAGS_IN();
   2112     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   2113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2114     MEM32(esi + 0x14) = MEM32(esi + 0x14) - eax; /* 0x47014795: sub dword ptr [esi + 0x14], eax */
   2115     _flag_k = FK_CMP;
   2116     ecx = MEM32(edi); /* 0x47014798: mov ecx, dword ptr [edi] */
   2117     RECOMP_ICALL(0x47043FD0u); /* 0x4701479A: call 0x47043fd0 */ /* not lifted */
   2118     RECOMP_FLAGS_IN();
   2119     edx = MEM32(esi + 0x18); /* 0x4701479F: mov edx, dword ptr [esi + 0x18] */
   2120     ecx = MEM32(esi + 0x1C); /* 0x470147A2: mov ecx, dword ptr [esi + 0x1c] */
   2121     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2123     edx = edx - eax; /* 0x470147A5: sub edx, eax */
   2124     _flag_k = FK_CMP;
   2125     eax = MEM32(esi + 0xC); /* 0x470147A7: mov eax, dword ptr [esi + 0xc] */
   2126     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2127     ecx = ecx - 1; /* 0x470147AA: dec ecx */
   2128     _flag_k = FK_DEC;
   2129     MEM32(esi + 0x1C) = ecx; /* 0x470147AB: mov dword ptr [esi + 0x1c], ecx */
   2130     ecx = MEM32(esi + 0x14); /* 0x470147AE: mov ecx, dword ptr [esi + 0x14] */
   2131     /* cmp ecx, eax */ /* 0x470147B1: cmp ecx, eax */
   2132     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2134     _flag_k = FK_CMP;
   2135     MEM32(esi + 0x18) = edx; /* 0x470147B3: mov dword ptr [esi + 0x18], edx */
   2136     if (CMP_A(_flag_a, _flag_b)) goto L_470147CE; /* 0x470147B6: ja 0x470147ce */
   2137 L_470147B8:
   2138     edx = MEM32(esi); /* 0x470147B8: mov edx, dword ptr [esi] */
   2139     ecx = esi; /* 0x470147BA: mov ecx, esi */
   2140     RECOMP_ICALL(MEM32(edx + 0x98)); /* 0x470147BC: call dword ptr [edx + 0x98] */
   2141     RECOMP_FLAGS_IN();
   2142     /* cmp eax, 0xFFFFFFFFu */ /* 0x470147C2: cmp eax, -1 */
   2143     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2145     _flag_k = FK_CMP;
   2146     if (CMP_NE(_flag_a, _flag_b)) goto L_470147CE; /* 0x470147C5: jne 0x470147ce */
   2147 L_470147C7:
   2148     edi = POP32_VAL(esp); /* 0x470147C7: pop edi */
   2149     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   2150     eax = eax | eax; /* 0x470147C8: or eax, eax */
   2151     _cf = 0;
   2152     _flag_k = FK_TEST;
   2153     esi = POP32_VAL(esp); /* 0x470147CA: pop esi */
   2154     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470147CB: ret 4 */
   2155 L_470147CE:
   2156     eax = MEM32(esi + 0x1C); /* 0x470147CE: mov eax, dword ptr [esi + 0x1c] */
   2157     edi = POP32_VAL(esp); /* 0x470147D1: pop edi */
   2158     esi = POP32_VAL(esp); /* 0x470147D2: pop esi */
   2159     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470147D3: ret 4 */
   2160     RECOMP_REGS_OUT();
   2161 }
   2162 
   2163 void sub_470147E0(void) {
   2164     int _fpu_cmp = 0;
   2165     uint32_t _cf = 0;
   2166     int _df = 1;
   2167     uint32_t _flag_k = FK_NONE;
   2168     uint32_t _flag_a = 0, _flag_b = 0;
   2169     uint32_t _itail_tgt = 0;
   2170     RECOMP_REGS_LOCALS
   2171     RECOMP_ENTER(0x470147E0u);
   2172 
   2173 L_470147E0:
   2174     edx = MEM32(ecx + 0x8); /* 0x470147E0: mov edx, dword ptr [ecx + 8] */
   2175     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2176     eax = 0; /* 0x470147E3: xor eax, eax */
   2177     _cf = 0;
   2178     _flag_k = FK_TEST;
   2179     /* test edx, edx */ /* 0x470147E5: test edx, edx */
   2180     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2181     _cf = 0;
   2182     _flag_k = FK_TEST;
   2183     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470147E7: sete al */
   2184     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470147EA: ret  */
   2185     RECOMP_REGS_OUT();
   2186 }
   2187 
   2188 void sub_470147F0(void) {
   2189     int _fpu_cmp = 0;
   2190     uint32_t _cf = 0;
   2191     int _df = 1;
   2192     uint32_t _flag_k = FK_NONE;
   2193     uint32_t _flag_a = 0, _flag_b = 0;
   2194     uint32_t _itail_tgt = 0;
   2195     RECOMP_REGS_LOCALS
   2196     RECOMP_ENTER(0x470147F0u);
   2197 
   2198 L_470147F0:
   2199     PUSH32(esp, esi); /* 0x470147F0: push esi */
   2200     esi = ecx; /* 0x470147F1: mov esi, ecx */
   2201     edx = MEM32(esi + 0x20); /* 0x470147F3: mov edx, dword ptr [esi + 0x20] */
   2202     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2203     eax = 0; /* 0x470147F6: xor eax, eax */
   2204     _cf = 0;
   2205     _flag_k = FK_TEST;
   2206     /* test edx, edx */ /* 0x470147F8: test edx, edx */
   2207     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2208     _cf = 0;
   2209     _flag_k = FK_TEST;
   2210     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x470147FA: setne al */
   2211     PUSH32(esp, edi); /* 0x470147FD: push edi */
   2212     ecx = esi + 0x44; /* 0x470147FE: lea ecx, [esi + 0x44] */
   2213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2214     eax = eax + 1; /* 0x47014801: inc eax */
   2215     _flag_k = FK_INC;
   2216     edi = eax; /* 0x47014802: mov edi, eax */
   2217     RECOMP_ICALL(0x47087540u); /* 0x47014804: call 0x47087540 */ /* not lifted */
   2218     RECOMP_FLAGS_IN();
   2219     ecx = esi + 0x74; /* 0x47014809: lea ecx, [esi + 0x74] */
   2220     RECOMP_ICALL(0x47087540u); /* 0x4701480C: call 0x47087540 */ /* not lifted */
   2221     RECOMP_FLAGS_IN();
   2222     eax = edi; /* 0x47014811: mov eax, edi */
   2223     edi = POP32_VAL(esp); /* 0x47014813: pop edi */
   2224     MEM32(esi + 0x20) = 1; /* 0x47014814: mov dword ptr [esi + 0x20], 1 */
   2225     esi = POP32_VAL(esp); /* 0x4701481B: pop esi */
   2226     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701481C: ret  */
   2227     RECOMP_REGS_OUT();
   2228 }
   2229 
   2230 void sub_47014820(void) {
   2231     int _fpu_cmp = 0;
   2232     uint32_t _cf = 0;
   2233     int _df = 1;
   2234     uint32_t _flag_k = FK_NONE;
   2235     uint32_t _flag_a = 0, _flag_b = 0;
   2236     uint32_t _itail_tgt = 0;
   2237     RECOMP_REGS_LOCALS
   2238     RECOMP_ENTER(0x47014820u);
   2239 
   2240 L_47014820:
   2241     edx = MEM32(ecx + 0x20); /* 0x47014820: mov edx, dword ptr [ecx + 0x20] */
   2242     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2243     eax = 0; /* 0x47014823: xor eax, eax */
   2244     _cf = 0;
   2245     _flag_k = FK_TEST;
   2246     /* test edx, edx */ /* 0x47014825: test edx, edx */
   2247     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2248     _cf = 0;
   2249     _flag_k = FK_TEST;
   2250     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47014827: setne al */
   2251     MEM32(ecx + 0x20) = 0; /* 0x4701482A: mov dword ptr [ecx + 0x20], 0 */
   2252     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2253     eax = eax + 1; /* 0x47014831: inc eax */
   2254     _flag_k = FK_INC;
   2255     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014832: ret  */
   2256     RECOMP_REGS_OUT();
   2257 }
   2258 
   2259 void sub_47014823(void) {
   2260     int _fpu_cmp = 0;
   2261     uint32_t _cf = 0;
   2262     int _df = 1;
   2263     uint32_t _flag_k = FK_NONE;
   2264     uint32_t _flag_a = 0, _flag_b = 0;
   2265     uint32_t _itail_tgt = 0;
   2266     RECOMP_REGS_LOCALS
   2267     RECOMP_ENTER(0x47014823u);
   2268 
   2269 L_47014823:
   2270     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2271     eax = 0; /* 0x47014823: xor eax, eax */
   2272     _cf = 0;
   2273     _flag_k = FK_TEST;
   2274     /* test edx, edx */ /* 0x47014825: test edx, edx */
   2275     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2276     _cf = 0;
   2277     _flag_k = FK_TEST;
   2278     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47014827: setne al */
   2279     MEM32(ecx + 0x20) = 0; /* 0x4701482A: mov dword ptr [ecx + 0x20], 0 */
   2280     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2281     eax = eax + 1; /* 0x47014831: inc eax */
   2282     _flag_k = FK_INC;
   2283     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014832: ret  */
   2284     RECOMP_REGS_OUT();
   2285 }
   2286 
   2287 void sub_47014840(void) {
   2288     int _fpu_cmp = 0;
   2289     uint32_t _cf = 0;
   2290     int _df = 1;
   2291     uint32_t _flag_k = FK_NONE;
   2292     uint32_t _flag_a = 0, _flag_b = 0;
   2293     uint32_t _itail_tgt = 0;
   2294     RECOMP_REGS_LOCALS
   2295     RECOMP_ENTER(0x47014840u);
   2296 
   2297 L_47014840:
   2298     PUSH32(esp, ebx); /* 0x47014840: push ebx */
   2299     PUSH32(esp, ebp); /* 0x47014841: push ebp */
   2300     PUSH32(esp, esi); /* 0x47014842: push esi */
   2301     esi = ecx; /* 0x47014843: mov esi, ecx */
   2302     eax = MEM32(esi); /* 0x47014845: mov eax, dword ptr [esi] */
   2303     PUSH32(esp, edi); /* 0x47014847: push edi */
   2304     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2305     ebp = 0; /* 0x47014848: xor ebp, ebp */
   2306     _cf = 0;
   2307     _flag_k = FK_TEST;
   2308     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x4701484A: call dword ptr [eax + 0x80] */
   2309     RECOMP_FLAGS_IN();
   2310     /* test eax, eax */ /* 0x47014850: test eax, eax */
   2311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2312     _cf = 0;
   2313     _flag_k = FK_TEST;
   2314     if (TEST_Z(_flag_a, _flag_b)) goto L_4701487D; /* 0x47014852: je 0x4701487d */
   2315 L_47014854:
   2316     ebx = MEM32(esp + 0x18); /* 0x47014854: mov ebx, dword ptr [esp + 0x18] */
   2317     edi = esi + 0x74; /* 0x47014858: lea edi, [esi + 0x74] */
   2318 L_4701485B:
   2319     PUSH32(esp, ebx); /* 0x4701485B: push ebx */
   2320     ecx = edi; /* 0x4701485C: mov ecx, edi */
   2321     RECOMP_ICALL(0x47087510u); /* 0x4701485E: call 0x47087510 */ /* not lifted */
   2322     RECOMP_FLAGS_IN();
   2323     /* cmp eax, 0xFFFFFFFFu */ /* 0x47014863: cmp eax, -1 */
   2324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2326     _flag_k = FK_CMP;
   2327     if (CMP_EQ(_flag_a, _flag_b)) goto L_47014886; /* 0x47014866: je 0x47014886 */
   2328 L_47014868:
   2329     eax = MEM32(esi + 0x20); /* 0x47014868: mov eax, dword ptr [esi + 0x20] */
   2330     /* test eax, eax */ /* 0x4701486B: test eax, eax */
   2331     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2332     _cf = 0;
   2333     _flag_k = FK_TEST;
   2334     if (TEST_NZ(_flag_a, _flag_b)) goto L_470148A5; /* 0x4701486D: jne 0x470148a5 */
   2335 L_4701486F:
   2336     edx = MEM32(esi); /* 0x4701486F: mov edx, dword ptr [esi] */
   2337     ecx = esi; /* 0x47014871: mov ecx, esi */
   2338     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x47014873: call dword ptr [edx + 0x80] */
   2339     RECOMP_FLAGS_IN();
   2340     /* test eax, eax */ /* 0x47014879: test eax, eax */
   2341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2342     _cf = 0;
   2343     _flag_k = FK_TEST;
   2344     RECOMP_BACKEDGE();
   2345     if (TEST_NZ(_flag_a, _flag_b)) goto L_4701485B; /* 0x4701487B: jne 0x4701485b */
   2346 L_4701487D:
   2347     edi = POP32_VAL(esp); /* 0x4701487D: pop edi */
   2348     esi = POP32_VAL(esp); /* 0x4701487E: pop esi */
   2349     eax = ebp; /* 0x4701487F: mov eax, ebp */
   2350     ebp = POP32_VAL(esp); /* 0x47014881: pop ebp */
   2351     ebx = POP32_VAL(esp); /* 0x47014882: pop ebx */
   2352     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47014883: ret 8 */
   2353 L_47014886:
   2354     esi = MEM32(0x470AC3C8); /* 0x47014886: mov esi, dword ptr [0x470ac3c8] */
   2355     RECOMP_ICALL(esi); /* 0x4701488C: call esi */
   2356     RECOMP_FLAGS_IN();
   2357     /* cmp MEM32(eax), 0x79u */ /* 0x4701488E: cmp dword ptr [eax], 0x79 */
   2358     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x79u);
   2359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2360     _flag_k = FK_CMP;
   2361     if (CMP_NE(_flag_a, _flag_b)) goto L_4701489B; /* 0x47014891: jne 0x4701489b */
   2362 L_47014893:
   2363     RECOMP_ICALL(esi); /* 0x47014893: call esi */
   2364     RECOMP_FLAGS_IN();
   2365     MEM32(eax) = 0x2733u; /* 0x47014895: mov dword ptr [eax], 0x2733 */
   2366 L_4701489B:
   2367     edi = POP32_VAL(esp); /* 0x4701489B: pop edi */
   2368     esi = POP32_VAL(esp); /* 0x4701489C: pop esi */
   2369     ebp = POP32_VAL(esp); /* 0x4701489D: pop ebp */
   2370     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2371     eax = eax | 0xFFFFFFFFu; /* 0x4701489E: or eax, 0xffffffff */
   2372     _cf = 0;
   2373     _flag_k = FK_TEST;
   2374     ebx = POP32_VAL(esp); /* 0x470148A1: pop ebx */
   2375     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470148A2: ret 8 */
   2376 L_470148A5:
   2377     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470148A5: call dword ptr [0x470ac3c8] */
   2378     RECOMP_FLAGS_IN();
   2379     edi = POP32_VAL(esp); /* 0x470148AB: pop edi */
   2380     esi = POP32_VAL(esp); /* 0x470148AC: pop esi */
   2381     ebp = POP32_VAL(esp); /* 0x470148AD: pop ebp */
   2382     MEM32(eax) = 0x274Au; /* 0x470148AE: mov dword ptr [eax], 0x274a */
   2383     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2384     eax = eax | 0xFFFFFFFFu; /* 0x470148B4: or eax, 0xffffffff */
   2385     _cf = 0;
   2386     _flag_k = FK_TEST;
   2387     ebx = POP32_VAL(esp); /* 0x470148B7: pop ebx */
   2388     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470148B8: ret 8 */
   2389     RECOMP_REGS_OUT();
   2390 }
   2391 
   2392 void sub_470148C0(void) {
   2393     int _fpu_cmp = 0;
   2394     uint32_t _cf = 0;
   2395     int _df = 1;
   2396     uint32_t _flag_k = FK_NONE;
   2397     uint32_t _flag_a = 0, _flag_b = 0;
   2398     uint32_t _itail_tgt = 0;
   2399     RECOMP_REGS_LOCALS
   2400     RECOMP_ENTER(0x470148C0u);
   2401 
   2402 L_470148C0:
   2403     PUSH32(esp, ebx); /* 0x470148C0: push ebx */
   2404     PUSH32(esp, ebp); /* 0x470148C1: push ebp */
   2405     PUSH32(esp, esi); /* 0x470148C2: push esi */
   2406     esi = ecx; /* 0x470148C3: mov esi, ecx */
   2407     eax = MEM32(esi); /* 0x470148C5: mov eax, dword ptr [esi] */
   2408     PUSH32(esp, edi); /* 0x470148C7: push edi */
   2409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2410     ebp = 0; /* 0x470148C8: xor ebp, ebp */
   2411     _cf = 0;
   2412     _flag_k = FK_TEST;
   2413     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x470148CA: call dword ptr [eax + 0x84] */
   2414     RECOMP_FLAGS_IN();
   2415     /* test eax, eax */ /* 0x470148D0: test eax, eax */
   2416     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2417     _cf = 0;
   2418     _flag_k = FK_TEST;
   2419     if (TEST_Z(_flag_a, _flag_b)) goto L_470148FD; /* 0x470148D2: je 0x470148fd */
   2420 L_470148D4:
   2421     ebx = MEM32(esp + 0x18); /* 0x470148D4: mov ebx, dword ptr [esp + 0x18] */
   2422     edi = esi + 0x44; /* 0x470148D8: lea edi, [esi + 0x44] */
   2423 L_470148DB:
   2424     PUSH32(esp, ebx); /* 0x470148DB: push ebx */
   2425     ecx = edi; /* 0x470148DC: mov ecx, edi */
   2426     RECOMP_ICALL(0x47087510u); /* 0x470148DE: call 0x47087510 */ /* not lifted */
   2427     RECOMP_FLAGS_IN();
   2428     /* cmp eax, 0xFFFFFFFFu */ /* 0x470148E3: cmp eax, -1 */
   2429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2431     _flag_k = FK_CMP;
   2432     if (CMP_EQ(_flag_a, _flag_b)) goto L_47014906; /* 0x470148E6: je 0x47014906 */
   2433 L_470148E8:
   2434     eax = MEM32(esi + 0x20); /* 0x470148E8: mov eax, dword ptr [esi + 0x20] */
   2435     /* test eax, eax */ /* 0x470148EB: test eax, eax */
   2436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2437     _cf = 0;
   2438     _flag_k = FK_TEST;
   2439     if (TEST_NZ(_flag_a, _flag_b)) goto L_47014925; /* 0x470148ED: jne 0x47014925 */
   2440 L_470148EF:
   2441     edx = MEM32(esi); /* 0x470148EF: mov edx, dword ptr [esi] */
   2442     ecx = esi; /* 0x470148F1: mov ecx, esi */
   2443     RECOMP_ICALL(MEM32(edx + 0x84)); /* 0x470148F3: call dword ptr [edx + 0x84] */
   2444     RECOMP_FLAGS_IN();
   2445     /* test eax, eax */ /* 0x470148F9: test eax, eax */
   2446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2447     _cf = 0;
   2448     _flag_k = FK_TEST;
   2449     RECOMP_BACKEDGE();
   2450     if (TEST_NZ(_flag_a, _flag_b)) goto L_470148DB; /* 0x470148FB: jne 0x470148db */
   2451 L_470148FD:
   2452     edi = POP32_VAL(esp); /* 0x470148FD: pop edi */
   2453     esi = POP32_VAL(esp); /* 0x470148FE: pop esi */
   2454     eax = ebp; /* 0x470148FF: mov eax, ebp */
   2455     ebp = POP32_VAL(esp); /* 0x47014901: pop ebp */
   2456     ebx = POP32_VAL(esp); /* 0x47014902: pop ebx */
   2457     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47014903: ret 8 */
   2458 L_47014906:
   2459     esi = MEM32(0x470AC3C8); /* 0x47014906: mov esi, dword ptr [0x470ac3c8] */
   2460     RECOMP_ICALL(esi); /* 0x4701490C: call esi */
   2461     RECOMP_FLAGS_IN();
   2462     /* cmp MEM32(eax), 0x79u */ /* 0x4701490E: cmp dword ptr [eax], 0x79 */
   2463     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x79u);
   2464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2465     _flag_k = FK_CMP;
   2466     if (CMP_NE(_flag_a, _flag_b)) goto L_4701491B; /* 0x47014911: jne 0x4701491b */
   2467 L_47014913:
   2468     RECOMP_ICALL(esi); /* 0x47014913: call esi */
   2469     RECOMP_FLAGS_IN();
   2470     MEM32(eax) = 0x2733u; /* 0x47014915: mov dword ptr [eax], 0x2733 */
   2471 L_4701491B:
   2472     edi = POP32_VAL(esp); /* 0x4701491B: pop edi */
   2473     esi = POP32_VAL(esp); /* 0x4701491C: pop esi */
   2474     ebp = POP32_VAL(esp); /* 0x4701491D: pop ebp */
   2475     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2476     eax = eax | 0xFFFFFFFFu; /* 0x4701491E: or eax, 0xffffffff */
   2477     _cf = 0;
   2478     _flag_k = FK_TEST;
   2479     ebx = POP32_VAL(esp); /* 0x47014921: pop ebx */
   2480     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47014922: ret 8 */
   2481 L_47014925:
   2482     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47014925: call dword ptr [0x470ac3c8] */
   2483     RECOMP_FLAGS_IN();
   2484     edi = POP32_VAL(esp); /* 0x4701492B: pop edi */
   2485     esi = POP32_VAL(esp); /* 0x4701492C: pop esi */
   2486     ebp = POP32_VAL(esp); /* 0x4701492D: pop ebp */
   2487     MEM32(eax) = 0x274Au; /* 0x4701492E: mov dword ptr [eax], 0x274a */
   2488     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2489     eax = eax | 0xFFFFFFFFu; /* 0x47014934: or eax, 0xffffffff */
   2490     _cf = 0;
   2491     _flag_k = FK_TEST;
   2492     ebx = POP32_VAL(esp); /* 0x47014937: pop ebx */
   2493     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47014938: ret 8 */
   2494     RECOMP_REGS_OUT();
   2495 }
   2496 
   2497 void sub_47014940(void) {
   2498     int _fpu_cmp = 0;
   2499     uint32_t _cf = 0;
   2500     int _df = 1;
   2501     uint32_t _flag_k = FK_NONE;
   2502     uint32_t _flag_a = 0, _flag_b = 0;
   2503     uint32_t _itail_tgt = 0;
   2504     RECOMP_REGS_LOCALS
   2505     RECOMP_ENTER(0x47014940u);
   2506 
   2507 L_47014940:
   2508     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x74u);
   2509     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2510     ecx = ecx + 0x74u; /* 0x47014940: add ecx, 0x74 */
   2511     _flag_k = FK_ADD;
   2512     RECOMP_ICALL(0x47087530u); /* 0x47014943: call 0x47087530 */ /* not lifted */
   2513     RECOMP_FLAGS_IN();
   2514     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2515     _cf = (eax) != 0;
   2516     eax = (uint32_t)(-(int32_t)eax); /* 0x47014948: neg eax */
   2517     _flag_k = FK_CMP;
   2518     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4701494A: sbb eax, eax */
   2519       eax = _sc ? 0xFFFFFFFFu : 0;
   2520       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2521       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2522     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701494C: ret  */
   2523     RECOMP_REGS_OUT();
   2524 }
   2525 
   2526 void sub_47014950(void) {
   2527     int _fpu_cmp = 0;
   2528     uint32_t _cf = 0;
   2529     int _df = 1;
   2530     uint32_t _flag_k = FK_NONE;
   2531     uint32_t _flag_a = 0, _flag_b = 0;
   2532     uint32_t _itail_tgt = 0;
   2533     RECOMP_REGS_LOCALS
   2534     RECOMP_ENTER(0x47014950u);
   2535 
   2536 L_47014950:
   2537     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x44u);
   2538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2539     ecx = ecx + 0x44u; /* 0x47014950: add ecx, 0x44 */
   2540     _flag_k = FK_ADD;
   2541     RECOMP_ICALL(0x47087530u); /* 0x47014953: call 0x47087530 */ /* not lifted */
   2542     RECOMP_FLAGS_IN();
   2543     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2544     _cf = (eax) != 0;
   2545     eax = (uint32_t)(-(int32_t)eax); /* 0x47014958: neg eax */
   2546     _flag_k = FK_CMP;
   2547     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4701495A: sbb eax, eax */
   2548       eax = _sc ? 0xFFFFFFFFu : 0;
   2549       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2550       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2551     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701495C: ret  */
   2552     RECOMP_REGS_OUT();
   2553 }
   2554 
   2555 void sub_47014960(void) {
   2556     int _fpu_cmp = 0;
   2557     uint32_t _cf = 0;
   2558     int _df = 1;
   2559     uint32_t _flag_k = FK_NONE;
   2560     uint32_t _flag_a = 0, _flag_b = 0;
   2561     uint32_t _itail_tgt = 0;
   2562     RECOMP_REGS_LOCALS
   2563     RECOMP_ENTER(0x47014960u);
   2564 
   2565 L_47014960:
   2566     edx = MEM32(ecx + 0x4); /* 0x47014960: mov edx, dword ptr [ecx + 4] */
   2567     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   2568     eax = eax | 0xFFFFFFFFu; /* 0x47014963: or eax, 0xffffffff */
   2569     _cf = 0;
   2570     _flag_k = FK_TEST;
   2571     /* cmp edx, eax */ /* 0x47014966: cmp edx, eax */
   2572     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2574     _flag_k = FK_CMP;
   2575     if (CMP_EQ(_flag_a, _flag_b)) goto L_470149AF; /* 0x47014968: je 0x470149af */
   2576 L_4701496A:
   2577     MEM32(ecx + 0x4) = eax; /* 0x4701496A: mov dword ptr [ecx + 4], eax */
   2578     ecx = MEM32(ecx); /* 0x4701496D: mov ecx, dword ptr [ecx] */
   2579     eax = MEM32(ecx); /* 0x4701496F: mov eax, dword ptr [ecx] */
   2580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2581     eax = eax - 1; /* 0x47014971: dec eax */
   2582     _flag_k = FK_DEC;
   2583     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_470149A5; /* 0x47014972: je 0x470149a5 */
   2584 L_47014974:
   2585     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2586     eax = eax - 1; /* 0x47014974: dec eax */
   2587     _flag_k = FK_DEC;
   2588     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_47014984; /* 0x47014975: je 0x47014984 */
   2589 L_47014977:
   2590     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47014977: call dword ptr [0x470ac3c8] */
   2591     RECOMP_FLAGS_IN();
   2592     MEM32(eax) = 0x16u; /* 0x4701497D: mov dword ptr [eax], 0x16 */
   2593     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014983: ret  */
   2594 L_47014984:
   2595     eax = MEM32(ecx + 0x4); /* 0x47014984: mov eax, dword ptr [ecx + 4] */
   2596     PUSH32(esp, eax); /* 0x47014987: push eax */
   2597     RECOMP_ICALL(MEM32(0x470AC18C)); /* 0x47014988: call dword ptr [0x470ac18c] */
   2598     RECOMP_FLAGS_IN();
   2599     /* test eax, eax */ /* 0x4701498E: test eax, eax */
   2600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2601     _cf = 0;
   2602     _flag_k = FK_TEST;
   2603     if (TEST_NZ(_flag_a, _flag_b)) goto L_470149AF; /* 0x47014990: jne 0x470149af */
   2604 L_47014992:
   2605     PUSH32(esp, esi); /* 0x47014992: push esi */
   2606     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47014993: call dword ptr [0x470ac3c8] */
   2607     RECOMP_FLAGS_IN();
   2608     esi = eax; /* 0x47014999: mov esi, eax */
   2609     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4701499B: call dword ptr [0x470ac150] */
   2610     RECOMP_FLAGS_IN();
   2611     MEM32(esi) = eax; /* 0x470149A1: mov dword ptr [esi], eax */
   2612     esi = POP32_VAL(esp); /* 0x470149A3: pop esi */
   2613     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470149A4: ret  */
   2614 L_470149A5:
   2615     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2616     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2617     ecx = ecx + 4; /* 0x470149A5: add ecx, 4 */
   2618     _flag_k = FK_ADD;
   2619     PUSH32(esp, ecx); /* 0x470149A8: push ecx */
   2620     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470149A9: call dword ptr [0x470ac190] */
   2621     RECOMP_FLAGS_IN();
   2622 L_470149AF:
   2623     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470149AF: ret  */
   2624     RECOMP_REGS_OUT();
   2625 }
   2626 
   2627 void sub_470149B0(void) {
   2628     int _fpu_cmp = 0;
   2629     uint32_t _cf = 0;
   2630     int _df = 1;
   2631     uint32_t _flag_k = FK_NONE;
   2632     uint32_t _flag_a = 0, _flag_b = 0;
   2633     uint32_t _itail_tgt = 0;
   2634     RECOMP_REGS_LOCALS
   2635     RECOMP_ENTER(0x470149B0u);
   2636 
   2637 L_470149B0:
   2638     PUSH32(esp, esi); /* 0x470149B0: push esi */
   2639     esi = ecx; /* 0x470149B1: mov esi, ecx */
   2640     RECOMP_ICALL(0x470149D0u); /* 0x470149B3: call 0x470149d0 */ /* not lifted */
   2641     RECOMP_FLAGS_IN();
   2642     /* test MEM8(esp + 0x8), 1 */ /* 0x470149B8: test byte ptr [esp + 8], 1 */
   2643     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2644     _cf = 0;
   2645     _flag_k = FK_NARROW(FK_TEST, 24);
   2646     if (TEST_Z(_flag_a, _flag_b)) goto L_470149C8; /* 0x470149BD: je 0x470149c8 */
   2647 L_470149BF:
   2648     PUSH32(esp, esi); /* 0x470149BF: push esi */
   2649     RECOMP_ICALL(0x470A32A2u); /* 0x470149C0: call 0x470a32a2 */ /* not lifted */
   2650     RECOMP_FLAGS_IN();
   2651     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2652     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2653     esp = esp + 4; /* 0x470149C5: add esp, 4 */
   2654     _flag_k = FK_ADD;
   2655 L_470149C8:
   2656     eax = esi; /* 0x470149C8: mov eax, esi */
   2657     esi = POP32_VAL(esp); /* 0x470149CA: pop esi */
   2658     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470149CB: ret 4 */
   2659     RECOMP_REGS_OUT();
   2660 }
   2661 
   2662 void sub_470149D0(void) {
   2663     int _fpu_cmp = 0;
   2664     uint32_t _cf = 0;
   2665     int _df = 1;
   2666     uint32_t _flag_k = FK_NONE;
   2667     uint32_t _flag_a = 0, _flag_b = 0;
   2668     uint32_t _itail_tgt = 0;
   2669     RECOMP_REGS_LOCALS
   2670     RECOMP_ENTER(0x470149D0u);
   2671 
   2672 L_470149D0:
   2673     PUSH32(esp, 0xFFFFFFFFu); /* 0x470149D0: push -1 */
   2674     PUSH32(esp, 0x470A3EB1u); /* 0x470149D2: push 0x470a3eb1 */
   2675     eax = MEM32(FS_BASE + (0)); /* 0x470149D7: mov eax, dword ptr fs:[0] */
   2676     PUSH32(esp, eax); /* 0x470149DD: push eax */
   2677     MEM32(FS_BASE + (0)) = esp; /* 0x470149DE: mov dword ptr fs:[0], esp */
   2678     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2679     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2680     esp = esp - 0xCu; /* 0x470149E5: sub esp, 0xc */
   2681     _flag_k = FK_CMP;
   2682     PUSH32(esp, ebx); /* 0x470149E8: push ebx */
   2683     PUSH32(esp, ebp); /* 0x470149E9: push ebp */
   2684     PUSH32(esp, esi); /* 0x470149EA: push esi */
   2685     esi = ecx; /* 0x470149EB: mov esi, ecx */
   2686     PUSH32(esp, edi); /* 0x470149ED: push edi */
   2687     MEM32(esp + 0x10) = esi; /* 0x470149EE: mov dword ptr [esp + 0x10], esi */
   2688     MEM32(esi) = 0x470ACAC8u; /* 0x470149F2: mov dword ptr [esi], 0x470acac8 */
   2689     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2690     ebx = 0; /* 0x470149F8: xor ebx, ebx */
   2691     _cf = 0;
   2692     _flag_k = FK_TEST;
   2693     MEM32(esp + 0x24) = ebx; /* 0x470149FA: mov dword ptr [esp + 0x24], ebx */
   2694     /* cmp MEM32(esi + 0x4), ebx */ /* 0x470149FE: cmp dword ptr [esi + 4], ebx */
   2695     _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(ebx);
   2696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2697     _flag_k = FK_CMP;
   2698     if (CMP_EQ(_flag_a, _flag_b)) goto L_47014AD1; /* 0x47014A01: je 0x47014ad1 */
   2699 L_47014A07:
   2700     edi = esi + 0x28; /* 0x47014A07: lea edi, [esi + 0x28] */
   2701     PUSH32(esp, edi); /* 0x47014A0A: push edi */
   2702     MEM32(esp + 0x18) = edi; /* 0x47014A0B: mov dword ptr [esp + 0x18], edi */
   2703     RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47014A0F: call dword ptr [0x470ac180] */
   2704     RECOMP_FLAGS_IN();
   2705     MEM32(esp + 0x18) = ebx; /* 0x47014A15: mov dword ptr [esp + 0x18], ebx */
   2706     eax = MEM32(esi); /* 0x47014A19: mov eax, dword ptr [esi] */
   2707     ecx = esi; /* 0x47014A1B: mov ecx, esi */
   2708     MEM8(esp + 0x24) = (uint8_t)(4); /* 0x47014A1D: mov byte ptr [esp + 0x24], 4 */
   2709     RECOMP_ICALL(MEM32(eax + 0x88)); /* 0x47014A22: call dword ptr [eax + 0x88] */
   2710     RECOMP_FLAGS_IN();
   2711     ecx = MEM32(esi + 0x4); /* 0x47014A28: mov ecx, dword ptr [esi + 4] */
   2712     /* cmp ecx, ebx */ /* 0x47014A2B: cmp ecx, ebx */
   2713     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2714     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2715     _flag_k = FK_CMP;
   2716     ebp = eax; /* 0x47014A2D: mov ebp, eax */
   2717     MEM32(esi + 0x8) = ebx; /* 0x47014A2F: mov dword ptr [esi + 8], ebx */
   2718     if (CMP_EQ(_flag_a, _flag_b)) goto L_47014A64; /* 0x47014A32: je 0x47014a64 */
   2719 L_47014A34:
   2720     _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(1);
   2721     MEM32(esi + 0x1C) = MEM32(esi + 0x1C) - 1; /* 0x47014A34: dec dword ptr [esi + 0x1c] */
   2722     _flag_k = FK_DEC;
   2723     RECOMP_ICALL(0x47043FB0u); /* 0x47014A37: call 0x47043fb0 */ /* not lifted */
   2724     RECOMP_FLAGS_IN();
   2725     edx = MEM32(esi + 0x14); /* 0x47014A3C: mov edx, dword ptr [esi + 0x14] */
   2726     ecx = MEM32(esi + 0x4); /* 0x47014A3F: mov ecx, dword ptr [esi + 4] */
   2727     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2729     edx = edx - eax; /* 0x47014A42: sub edx, eax */
   2730     _flag_k = FK_CMP;
   2731     MEM32(esi + 0x14) = edx; /* 0x47014A44: mov dword ptr [esi + 0x14], edx */
   2732     RECOMP_ICALL(0x47043FD0u); /* 0x47014A47: call 0x47043fd0 */ /* not lifted */
   2733     RECOMP_FLAGS_IN();
   2734     _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(eax);
   2735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2736     MEM32(esi + 0x18) = MEM32(esi + 0x18) - eax; /* 0x47014A4C: sub dword ptr [esi + 0x18], eax */
   2737     _flag_k = FK_CMP;
   2738     ecx = MEM32(esi + 0x4); /* 0x47014A4F: mov ecx, dword ptr [esi + 4] */
   2739     eax = MEM32(ecx + 0x24); /* 0x47014A52: mov eax, dword ptr [ecx + 0x24] */
   2740     MEM32(esi + 0x4) = eax; /* 0x47014A55: mov dword ptr [esi + 4], eax */
   2741     RECOMP_ICALL(0x47044BD0u); /* 0x47014A58: call 0x47044bd0 */ /* not lifted */
   2742     RECOMP_FLAGS_IN();
   2743     ecx = MEM32(esi + 0x4); /* 0x47014A5D: mov ecx, dword ptr [esi + 4] */
   2744     /* cmp ecx, ebx */ /* 0x47014A60: cmp ecx, ebx */
   2745     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2747     _flag_k = FK_CMP;
   2748     RECOMP_BACKEDGE();
   2749     if (CMP_NE(_flag_a, _flag_b)) goto L_47014A34; /* 0x47014A62: jne 0x47014a34 */
   2750 L_47014A64:
   2751     PUSH32(esp, edi); /* 0x47014A64: push edi */
   2752     MEM8(esp + 0x28) = (uint8_t)(3); /* 0x47014A65: mov byte ptr [esp + 0x28], 3 */
   2753     RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47014A6A: call dword ptr [0x470ac190] */
   2754     RECOMP_FLAGS_IN();
   2755     /* cmp ebp, 0xFFFFFFFFu */ /* 0x47014A70: cmp ebp, -1 */
   2756     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2758     _flag_k = FK_CMP;
   2759     if (CMP_NE(_flag_a, _flag_b)) goto L_47014AD1; /* 0x47014A73: jne 0x47014ad1 */
   2760 L_47014A75:
   2761     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47014A75: call dword ptr [0x470ac150] */
   2762     RECOMP_FLAGS_IN();
   2763     ebp = eax; /* 0x47014A7B: mov ebp, eax */
   2764     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47014A7D: call dword ptr [0x470ac3c8] */
   2765     RECOMP_FLAGS_IN();
   2766     eax = MEM32(eax); /* 0x47014A83: mov eax, dword ptr [eax] */
   2767     /* cmp eax, ebx */ /* 0x47014A85: cmp eax, ebx */
   2768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2770     _flag_k = FK_CMP;
   2771     if (CMP_EQ(_flag_a, _flag_b)) goto L_47014A8B; /* 0x47014A87: je 0x47014a8b */
   2772 L_47014A89:
   2773     ebp = eax; /* 0x47014A89: mov ebp, eax */
   2774 L_47014A8B:
   2775     RECOMP_ICALL(0x47039020u); /* 0x47014A8B: call 0x47039020 */ /* not lifted */
   2776     RECOMP_FLAGS_IN();
   2777     edi = eax; /* 0x47014A90: mov edi, eax */
   2778     ecx = edi; /* 0x47014A92: mov ecx, edi */
   2779     RECOMP_ICALL(0x4703B210u); /* 0x47014A94: call 0x4703b210 */ /* not lifted */
   2780     RECOMP_FLAGS_IN();
   2781     PUSH32(esp, eax); /* 0x47014A99: push eax */
   2782     ecx = edi; /* 0x47014A9A: mov ecx, edi */
   2783     RECOMP_ICALL(0x4703B240u); /* 0x47014A9C: call 0x4703b240 */ /* not lifted */
   2784     RECOMP_FLAGS_IN();
   2785     PUSH32(esp, eax); /* 0x47014AA1: push eax */
   2786     ecx = edi; /* 0x47014AA2: mov ecx, edi */
   2787     RECOMP_ICALL(0x4703B080u); /* 0x47014AA4: call 0x4703b080 */ /* not lifted */
   2788     RECOMP_FLAGS_IN();
   2789     PUSH32(esp, eax); /* 0x47014AA9: push eax */
   2790     PUSH32(esp, ebp); /* 0x47014AAA: push ebp */
   2791     PUSH32(esp, 0xFFFFFFFFu); /* 0x47014AAB: push -1 */
   2792     PUSH32(esp, 0xBFu); /* 0x47014AAD: push 0xbf */
   2793     PUSH32(esp, 0x471051D0u); /* 0x47014AB2: push 0x471051d0 */
   2794     ecx = edi; /* 0x47014AB7: mov ecx, edi */
   2795     RECOMP_ICALL(0x4703A340u); /* 0x47014AB9: call 0x4703a340 */ /* not lifted */
   2796     RECOMP_FLAGS_IN();
   2797     PUSH32(esp, 0x471051C8u); /* 0x47014ABE: push 0x471051c8 */
   2798     PUSH32(esp, 0x80u); /* 0x47014AC3: push 0x80 */
   2799     PUSH32(esp, edi); /* 0x47014AC8: push edi */
   2800     RECOMP_ICALL(0x47039830u); /* 0x47014AC9: call 0x47039830 */ /* not lifted */
   2801     RECOMP_FLAGS_IN();
   2802     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2803     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2804     esp = esp + 0xCu; /* 0x47014ACE: add esp, 0xc */
   2805     _flag_k = FK_ADD;
   2806 L_47014AD1:
   2807     ecx = esi + 0x74; /* 0x47014AD1: lea ecx, [esi + 0x74] */
   2808     MEM8(esp + 0x24) = (uint8_t)(2); /* 0x47014AD4: mov byte ptr [esp + 0x24], 2 */
   2809     RECOMP_ICALL(0x47087480u); /* 0x47014AD9: call 0x47087480 */ /* not lifted */
   2810     RECOMP_FLAGS_IN();
   2811     ecx = esi + 0x44; /* 0x47014ADE: lea ecx, [esi + 0x44] */
   2812     MEM8(esp + 0x24) = (uint8_t)(1); /* 0x47014AE1: mov byte ptr [esp + 0x24], 1 */
   2813     RECOMP_ICALL(0x47087480u); /* 0x47014AE6: call 0x47087480 */ /* not lifted */
   2814     RECOMP_FLAGS_IN();
   2815     ecx = esi + 0x28; /* 0x47014AEB: lea ecx, [esi + 0x28] */
   2816     MEM8(esp + 0x24) = (uint8_t)(LO8(ebx)); /* 0x47014AEE: mov byte ptr [esp + 0x24], bl */
   2817     RECOMP_ICALL(0x47087E30u); /* 0x47014AF2: call 0x47087e30 */ /* not lifted */
   2818     RECOMP_FLAGS_IN();
   2819     ecx = MEM32(esp + 0x1C); /* 0x47014AF7: mov ecx, dword ptr [esp + 0x1c] */
   2820     edi = POP32_VAL(esp); /* 0x47014AFB: pop edi */
   2821     MEM32(esi) = 0x470ACA84u; /* 0x47014AFC: mov dword ptr [esi], 0x470aca84 */
   2822     esi = POP32_VAL(esp); /* 0x47014B02: pop esi */
   2823     ebp = POP32_VAL(esp); /* 0x47014B03: pop ebp */
   2824     ebx = POP32_VAL(esp); /* 0x47014B04: pop ebx */
   2825     MEM32(FS_BASE + (0)) = ecx; /* 0x47014B05: mov dword ptr fs:[0], ecx */
   2826     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2827     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2828     esp = esp + 0x18u; /* 0x47014B0C: add esp, 0x18 */
   2829     _flag_k = FK_ADD;
   2830     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014B0F: ret  */
   2831     RECOMP_REGS_OUT();
   2832 }
   2833 
   2834 void sub_47014B10(void) {
   2835     int _fpu_cmp = 0;
   2836     uint32_t _cf = 0;
   2837     int _df = 1;
   2838     uint32_t _flag_k = FK_NONE;
   2839     uint32_t _flag_a = 0, _flag_b = 0;
   2840     uint32_t _itail_tgt = 0;
   2841     RECOMP_REGS_LOCALS
   2842     RECOMP_ENTER(0x47014B10u);
   2843 
   2844     goto L_47014B10;
   2845 L_4700F7B0:
   2846     PUSH32(esp, ebx); /* 0x4700F7B0: push ebx */
   2847     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4700F7B1: mov bl, byte ptr [esp + 8] */
   2848     /* test LO8(ebx), 2 */ /* 0x4700F7B5: test bl, 2 */
   2849     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   2850     _cf = 0;
   2851     _flag_k = FK_NARROW(FK_TEST, 24);
   2852     PUSH32(esp, esi); /* 0x4700F7B8: push esi */
   2853     esi = ecx; /* 0x4700F7B9: mov esi, ecx */
   2854     if (TEST_Z(_flag_a, _flag_b)) goto L_4700F7E8; /* 0x4700F7BB: je 0x4700f7e8 */
   2855 L_4700F7BD:
   2856     eax = MEM32(esi + (-0x4)); /* 0x4700F7BD: mov eax, dword ptr [esi - 4] */
   2857     PUSH32(esp, edi); /* 0x4700F7C0: push edi */
   2858     PUSH32(esp, 0x47076DD0u); /* 0x4700F7C1: push 0x47076dd0 */
   2859     edi = esi + (-0x4); /* 0x4700F7C6: lea edi, [esi - 4] */
   2860     PUSH32(esp, eax); /* 0x4700F7C9: push eax */
   2861     PUSH32(esp, 0x10u); /* 0x4700F7CA: push 0x10 */
   2862     PUSH32(esp, esi); /* 0x4700F7CC: push esi */
   2863     RECOMP_ICALL(0x470A32EBu); /* 0x4700F7CD: call 0x470a32eb */ /* not lifted */
   2864     RECOMP_FLAGS_IN();
   2865     /* test LO8(ebx), 1 */ /* 0x4700F7D2: test bl, 1 */
   2866     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2867     _cf = 0;
   2868     _flag_k = FK_NARROW(FK_TEST, 24);
   2869     if (TEST_Z(_flag_a, _flag_b)) goto L_4700F7E0; /* 0x4700F7D5: je 0x4700f7e0 */
   2870 L_4700F7D7:
   2871     PUSH32(esp, edi); /* 0x4700F7D7: push edi */
   2872     RECOMP_ICALL(0x470A32A2u); /* 0x4700F7D8: call 0x470a32a2 */ /* not lifted */
   2873     RECOMP_FLAGS_IN();
   2874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2876     esp = esp + 4; /* 0x4700F7DD: add esp, 4 */
   2877     _flag_k = FK_ADD;
   2878 L_4700F7E0:
   2879     eax = edi; /* 0x4700F7E0: mov eax, edi */
   2880     edi = POP32_VAL(esp); /* 0x4700F7E2: pop edi */
   2881     esi = POP32_VAL(esp); /* 0x4700F7E3: pop esi */
   2882     ebx = POP32_VAL(esp); /* 0x4700F7E4: pop ebx */
   2883     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F7E5: ret 4 */
   2884 L_4700F7E8:
   2885     ecx = esi; /* 0x4700F7E8: mov ecx, esi */
   2886     RECOMP_ICALL(0x47076DD0u); /* 0x4700F7EA: call 0x47076dd0 */ /* not lifted */
   2887     RECOMP_FLAGS_IN();
   2888     /* test LO8(ebx), 1 */ /* 0x4700F7EF: test bl, 1 */
   2889     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2890     _cf = 0;
   2891     _flag_k = FK_NARROW(FK_TEST, 24);
   2892     if (TEST_Z(_flag_a, _flag_b)) goto L_4700F7FD; /* 0x4700F7F2: je 0x4700f7fd */
   2893 L_4700F7F4:
   2894     PUSH32(esp, esi); /* 0x4700F7F4: push esi */
   2895     RECOMP_ICALL(0x470A32A2u); /* 0x4700F7F5: call 0x470a32a2 */ /* not lifted */
   2896     RECOMP_FLAGS_IN();
   2897     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2898     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2899     esp = esp + 4; /* 0x4700F7FA: add esp, 4 */
   2900     _flag_k = FK_ADD;
   2901 L_4700F7FD:
   2902     eax = esi; /* 0x4700F7FD: mov eax, esi */
   2903     esi = POP32_VAL(esp); /* 0x4700F7FF: pop esi */
   2904     ebx = POP32_VAL(esp); /* 0x4700F800: pop ebx */
   2905     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4700F801: ret 4 */
   2906 L_47014B10:
   2907     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2909     ecx = ecx - 0xCu; /* 0x47014B10: sub ecx, 0xc */
   2910     _flag_k = FK_CMP;
   2911     RECOMP_BACKEDGE();
   2912     goto L_4700F7B0; /* 0x47014B13: jmp 0x4700f7b0 */
   2913     { RECOMP_REGS_OUT(); return; } /* end of function */
   2914     RECOMP_REGS_OUT();
   2915 }
   2916 
   2917 void sub_47014B20(void) {
   2918     int _fpu_cmp = 0;
   2919     uint32_t _cf = 0;
   2920     int _df = 1;
   2921     uint32_t _flag_k = FK_NONE;
   2922     uint32_t _flag_a = 0, _flag_b = 0;
   2923     uint32_t _itail_tgt = 0;
   2924     RECOMP_REGS_LOCALS
   2925     RECOMP_ENTER(0x47014B20u);
   2926 
   2927 L_47014B20:
   2928     ecx = 0x4710DEE1u; /* 0x47014B20: mov ecx, 0x4710dee1 */
   2929     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47014B25: call dword ptr [0x470ac1c8] */
   2930     RECOMP_FLAGS_IN();
   2931     PUSH32(esp, 0x47014B40u); /* 0x47014B2B: push 0x47014b40 */
   2932     RECOMP_ICALL(0x470A32D9u); /* 0x47014B30: call 0x470a32d9 */ /* not lifted */
   2933     RECOMP_FLAGS_IN();
   2934     ecx = POP32_VAL(esp); /* 0x47014B35: pop ecx */
   2935     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014B36: ret  */
   2936     RECOMP_REGS_OUT();
   2937 }
   2938 
   2939 void sub_47014B40(void) {
   2940     int _fpu_cmp = 0;
   2941     uint32_t _cf = 0;
   2942     int _df = 1;
   2943     uint32_t _flag_k = FK_NONE;
   2944     uint32_t _flag_a = 0, _flag_b = 0;
   2945     uint32_t _itail_tgt = 0;
   2946     RECOMP_REGS_LOCALS
   2947     RECOMP_ENTER(0x47014B40u);
   2948 
   2949 L_47014B40:
   2950     ecx = 0x4710DEE1u; /* 0x47014B40: mov ecx, 0x4710dee1 */
   2951 L_47014B45:
   2952     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   2953     { RECOMP_REGS_OUT(); return; } /* end of function */
   2954   _ljump:
   2955     switch (_itail_tgt) {
   2956       case 0x47014B40u: goto L_47014B40;
   2957       case 0x47014B45u: goto L_47014B45;
   2958       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2959     }
   2960     RECOMP_REGS_OUT();
   2961 }
   2962 
   2963 void sub_47014B50(void) {
   2964     int _fpu_cmp = 0;
   2965     uint32_t _cf = 0;
   2966     int _df = 1;
   2967     uint32_t _flag_k = FK_NONE;
   2968     uint32_t _flag_a = 0, _flag_b = 0;
   2969     uint32_t _itail_tgt = 0;
   2970     RECOMP_REGS_LOCALS
   2971     RECOMP_ENTER(0x47014B50u);
   2972 
   2973 L_47014B50:
   2974     ecx = 0x4710DEE0u; /* 0x47014B50: mov ecx, 0x4710dee0 */
   2975     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47014B55: call dword ptr [0x470ac1c4] */
   2976     RECOMP_FLAGS_IN();
   2977     PUSH32(esp, 0x47014B70u); /* 0x47014B5B: push 0x47014b70 */
   2978     RECOMP_ICALL(0x470A32D9u); /* 0x47014B60: call 0x470a32d9 */ /* not lifted */
   2979     RECOMP_FLAGS_IN();
   2980     ecx = POP32_VAL(esp); /* 0x47014B65: pop ecx */
   2981     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014B66: ret  */
   2982     RECOMP_REGS_OUT();
   2983 }
   2984 
   2985 void sub_47014B70(void) {
   2986     int _fpu_cmp = 0;
   2987     uint32_t _cf = 0;
   2988     int _df = 1;
   2989     uint32_t _flag_k = FK_NONE;
   2990     uint32_t _flag_a = 0, _flag_b = 0;
   2991     uint32_t _itail_tgt = 0;
   2992     RECOMP_REGS_LOCALS
   2993     RECOMP_ENTER(0x47014B70u);
   2994 
   2995 L_47014B70:
   2996     ecx = 0x4710DEE0u; /* 0x47014B70: mov ecx, 0x4710dee0 */
   2997 L_47014B75:
   2998     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   2999     { RECOMP_REGS_OUT(); return; } /* end of function */
   3000   _ljump:
   3001     switch (_itail_tgt) {
   3002       case 0x47014B70u: goto L_47014B70;
   3003       case 0x47014B75u: goto L_47014B75;
   3004       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3005     }
   3006     RECOMP_REGS_OUT();
   3007 }
   3008 
   3009 void sub_47014B80(void) {
   3010     int _fpu_cmp = 0;
   3011     uint32_t _cf = 0;
   3012     int _df = 1;
   3013     uint32_t _flag_k = FK_NONE;
   3014     uint32_t _flag_a = 0, _flag_b = 0;
   3015     uint32_t _itail_tgt = 0;
   3016     RECOMP_REGS_LOCALS
   3017     RECOMP_ENTER(0x47014B80u);
   3018 
   3019 L_47014B80:
   3020     eax = ecx; /* 0x47014B80: mov eax, ecx */
   3021     MEM32(eax) = 0xFFFFFFFFu; /* 0x47014B82: mov dword ptr [eax], 0xffffffff */
   3022     MEM32(eax + 0x4) = 0; /* 0x47014B88: mov dword ptr [eax + 4], 0 */
   3023     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014B8F: ret  */
   3024     RECOMP_REGS_OUT();
   3025 }
   3026 
   3027 void sub_47014B90(void) {
   3028     int _fpu_cmp = 0;
   3029     uint32_t _cf = 0;
   3030     int _df = 1;
   3031     uint32_t _flag_k = FK_NONE;
   3032     uint32_t _flag_a = 0, _flag_b = 0;
   3033     uint32_t _itail_tgt = 0;
   3034     RECOMP_REGS_LOCALS
   3035     RECOMP_ENTER(0x47014B90u);
   3036 
   3037 L_47014B90:
   3038     eax = MEM32(esp + 0x4); /* 0x47014B90: mov eax, dword ptr [esp + 4] */
   3039     edx = MEM32(ecx); /* 0x47014B94: mov edx, dword ptr [ecx] */
   3040     /* cmp edx, MEM32(eax) */ /* 0x47014B96: cmp edx, dword ptr [eax] */
   3041     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   3042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3043     _flag_k = FK_CMP;
   3044     if (CMP_NE(_flag_a, _flag_b)) goto L_47014BAA; /* 0x47014B98: jne 0x47014baa */
   3045 L_47014B9A:
   3046     ecx = MEM32(ecx + 0x4); /* 0x47014B9A: mov ecx, dword ptr [ecx + 4] */
   3047     /* cmp ecx, MEM32(eax + 0x4) */ /* 0x47014B9D: cmp ecx, dword ptr [eax + 4] */
   3048     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   3049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3050     _flag_k = FK_CMP;
   3051     if (CMP_NE(_flag_a, _flag_b)) goto L_47014BAA; /* 0x47014BA0: jne 0x47014baa */
   3052 L_47014BA2:
   3053     eax = 1; /* 0x47014BA2: mov eax, 1 */
   3054     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014BA7: ret 4 */
   3055 L_47014BAA:
   3056     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3057     eax = 0; /* 0x47014BAA: xor eax, eax */
   3058     _cf = 0;
   3059     _flag_k = FK_TEST;
   3060     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014BAC: ret 4 */
   3061     RECOMP_REGS_OUT();
   3062 }
   3063 
   3064 void sub_47014BB0(void) {
   3065     int _fpu_cmp = 0;
   3066     uint32_t _cf = 0;
   3067     int _df = 1;
   3068     uint32_t _flag_k = FK_NONE;
   3069     uint32_t _flag_a = 0, _flag_b = 0;
   3070     uint32_t _itail_tgt = 0;
   3071     RECOMP_REGS_LOCALS
   3072     RECOMP_ENTER(0x47014BB0u);
   3073 
   3074 L_47014BB0:
   3075     eax = MEM32(esp + 0x4); /* 0x47014BB0: mov eax, dword ptr [esp + 4] */
   3076     edx = MEM32(ecx); /* 0x47014BB4: mov edx, dword ptr [ecx] */
   3077     /* cmp edx, MEM32(eax) */ /* 0x47014BB6: cmp edx, dword ptr [eax] */
   3078     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   3079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3080     _flag_k = FK_CMP;
   3081     if (CMP_NE(_flag_a, _flag_b)) goto L_47014BD3; /* 0x47014BB8: jne 0x47014bd3 */
   3082 L_47014BBA:
   3083     ecx = MEM32(ecx + 0x4); /* 0x47014BBA: mov ecx, dword ptr [ecx + 4] */
   3084     /* cmp ecx, MEM32(eax + 0x4) */ /* 0x47014BBD: cmp ecx, dword ptr [eax + 4] */
   3085     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   3086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3087     _flag_k = FK_CMP;
   3088     if (CMP_NE(_flag_a, _flag_b)) goto L_47014BD3; /* 0x47014BC0: jne 0x47014bd3 */
   3089 L_47014BC2:
   3090     eax = 1; /* 0x47014BC2: mov eax, 1 */
   3091     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3092     edx = 0; /* 0x47014BC7: xor edx, edx */
   3093     _cf = 0;
   3094     _flag_k = FK_TEST;
   3095     /* test eax, eax */ /* 0x47014BC9: test eax, eax */
   3096     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3097     _cf = 0;
   3098     _flag_k = FK_TEST;
   3099     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47014BCB: sete dl */
   3100     eax = edx; /* 0x47014BCE: mov eax, edx */
   3101     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014BD0: ret 4 */
   3102 L_47014BD3:
   3103     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3104     eax = 0; /* 0x47014BD3: xor eax, eax */
   3105     _cf = 0;
   3106     _flag_k = FK_TEST;
   3107     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3108     edx = 0; /* 0x47014BD5: xor edx, edx */
   3109     _cf = 0;
   3110     _flag_k = FK_TEST;
   3111     /* test eax, eax */ /* 0x47014BD7: test eax, eax */
   3112     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3113     _cf = 0;
   3114     _flag_k = FK_TEST;
   3115     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47014BD9: sete dl */
   3116     eax = edx; /* 0x47014BDC: mov eax, edx */
   3117     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014BDE: ret 4 */
   3118     RECOMP_REGS_OUT();
   3119 }
   3120 
   3121 void sub_47014BF0(void) {
   3122     int _fpu_cmp = 0;
   3123     uint32_t _cf = 0;
   3124     int _df = 1;
   3125     uint32_t _flag_k = FK_NONE;
   3126     uint32_t _flag_a = 0, _flag_b = 0;
   3127     uint32_t _itail_tgt = 0;
   3128     RECOMP_REGS_LOCALS
   3129     RECOMP_ENTER(0x47014BF0u);
   3130 
   3131 L_47014BF0:
   3132     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(1);
   3133     MEM32(ecx + 0x4) = MEM32(ecx + 0x4) + 1; /* 0x47014BF0: inc dword ptr [ecx + 4] */
   3134     _flag_k = FK_INC;
   3135     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014BF3: ret  */
   3136     RECOMP_REGS_OUT();
   3137 }
   3138 
   3139 void sub_47014C00(void) {
   3140     int _fpu_cmp = 0;
   3141     uint32_t _cf = 0;
   3142     int _df = 1;
   3143     uint32_t _flag_k = FK_NONE;
   3144     uint32_t _flag_a = 0, _flag_b = 0;
   3145     uint32_t _itail_tgt = 0;
   3146     RECOMP_REGS_LOCALS
   3147     RECOMP_ENTER(0x47014C00u);
   3148 
   3149 L_47014C00:
   3150     eax = 8; /* 0x47014C00: mov eax, 8 */
   3151     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014C05: ret  */
   3152     RECOMP_REGS_OUT();
   3153 }
   3154 
   3155 void sub_47014C10(void) {
   3156     int _fpu_cmp = 0;
   3157     uint32_t _cf = 0;
   3158     int _df = 1;
   3159     uint32_t _flag_k = FK_NONE;
   3160     uint32_t _flag_a = 0, _flag_b = 0;
   3161     uint32_t _itail_tgt = 0;
   3162     RECOMP_REGS_LOCALS
   3163     RECOMP_ENTER(0x47014C10u);
   3164 
   3165 L_47014C10:
   3166     eax = MEM32(esp + 0x4); /* 0x47014C10: mov eax, dword ptr [esp + 4] */
   3167     edx = MEM32(eax); /* 0x47014C14: mov edx, dword ptr [eax] */
   3168     MEM32(ecx) = edx; /* 0x47014C16: mov dword ptr [ecx], edx */
   3169     eax = MEM32(eax + 0x4); /* 0x47014C18: mov eax, dword ptr [eax + 4] */
   3170     MEM32(ecx + 0x4) = eax; /* 0x47014C1B: mov dword ptr [ecx + 4], eax */
   3171     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014C1E: ret 4 */
   3172     RECOMP_REGS_OUT();
   3173 }
   3174 
   3175 void sub_47014C30(void) {
   3176     int _fpu_cmp = 0;
   3177     uint32_t _cf = 0;
   3178     int _df = 1;
   3179     uint32_t _flag_k = FK_NONE;
   3180     uint32_t _flag_a = 0, _flag_b = 0;
   3181     uint32_t _itail_tgt = 0;
   3182     RECOMP_REGS_LOCALS
   3183     RECOMP_ENTER(0x47014C30u);
   3184 
   3185 L_47014C30:
   3186     edx = MEM32(ecx); /* 0x47014C30: mov edx, dword ptr [ecx] */
   3187     eax = MEM32(esp + 0x4); /* 0x47014C32: mov eax, dword ptr [esp + 4] */
   3188     MEM32(eax) = edx; /* 0x47014C36: mov dword ptr [eax], edx */
   3189     ecx = MEM32(ecx + 0x4); /* 0x47014C38: mov ecx, dword ptr [ecx + 4] */
   3190     MEM32(eax + 0x4) = ecx; /* 0x47014C3B: mov dword ptr [eax + 4], ecx */
   3191     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47014C3E: ret 4 */
   3192     RECOMP_REGS_OUT();
   3193 }
   3194 
   3195 void sub_47014C50(void) {
   3196     int _fpu_cmp = 0;
   3197     uint32_t _cf = 0;
   3198     int _df = 1;
   3199     uint32_t _flag_k = FK_NONE;
   3200     uint32_t _flag_a = 0, _flag_b = 0;
   3201     uint32_t _itail_tgt = 0;
   3202     RECOMP_REGS_LOCALS
   3203     RECOMP_ENTER(0x47014C50u);
   3204 
   3205 L_47014C50:
   3206     MEM32(0x4710DED4) = 0x47104A3Cu; /* 0x47014C50: mov dword ptr [0x4710ded4], 0x47104a3c */
   3207     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014C5A: ret  */
   3208     RECOMP_REGS_OUT();
   3209 }
   3210 
   3211 void sub_47014C60(void) {
   3212     int _fpu_cmp = 0;
   3213     uint32_t _cf = 0;
   3214     int _df = 1;
   3215     uint32_t _flag_k = FK_NONE;
   3216     uint32_t _flag_a = 0, _flag_b = 0;
   3217     uint32_t _itail_tgt = 0;
   3218     RECOMP_REGS_LOCALS
   3219     RECOMP_ENTER(0x47014C60u);
   3220 
   3221 L_47014C60:
   3222     MEM32(0x4710DEE8) = 0x47104A00u; /* 0x47014C60: mov dword ptr [0x4710dee8], 0x47104a00 */
   3223     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014C6A: ret  */
   3224     RECOMP_REGS_OUT();
   3225 }
   3226 
   3227 void sub_47014C70(void) {
   3228     int _fpu_cmp = 0;
   3229     uint32_t _cf = 0;
   3230     int _df = 1;
   3231     uint32_t _flag_k = FK_NONE;
   3232     uint32_t _flag_a = 0, _flag_b = 0;
   3233     uint32_t _itail_tgt = 0;
   3234     RECOMP_REGS_LOCALS
   3235     RECOMP_ENTER(0x47014C70u);
   3236 
   3237 L_47014C70:
   3238     MEM32(0x4710DEE4) = 0x47104A70u; /* 0x47014C70: mov dword ptr [0x4710dee4], 0x47104a70 */
   3239     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014C7A: ret  */
   3240     RECOMP_REGS_OUT();
   3241 }
   3242 
   3243 void sub_47014C80(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(0x47014C80u);
   3252 
   3253 L_47014C80:
   3254     MEM32(0x4710DEFC) = 0x47104B6Cu; /* 0x47014C80: mov dword ptr [0x4710defc], 0x47104b6c */
   3255     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014C8A: ret  */
   3256     RECOMP_REGS_OUT();
   3257 }
   3258 
   3259 void sub_47014C90(void) {
   3260     int _fpu_cmp = 0;
   3261     uint32_t _cf = 0;
   3262     int _df = 1;
   3263     uint32_t _flag_k = FK_NONE;
   3264     uint32_t _flag_a = 0, _flag_b = 0;
   3265     uint32_t _itail_tgt = 0;
   3266     RECOMP_REGS_LOCALS
   3267     RECOMP_ENTER(0x47014C90u);
   3268 
   3269 L_47014C90:
   3270     MEM32(0x4710DED8) = 0x47104BA0u; /* 0x47014C90: mov dword ptr [0x4710ded8], 0x47104ba0 */
   3271     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014C9A: ret  */
   3272     RECOMP_REGS_OUT();
   3273 }
   3274 
   3275 void sub_47014CA0(void) {
   3276     int _fpu_cmp = 0;
   3277     uint32_t _cf = 0;
   3278     int _df = 1;
   3279     uint32_t _flag_k = FK_NONE;
   3280     uint32_t _flag_a = 0, _flag_b = 0;
   3281     uint32_t _itail_tgt = 0;
   3282     RECOMP_REGS_LOCALS
   3283     RECOMP_ENTER(0x47014CA0u);
   3284 
   3285 L_47014CA0:
   3286     MEM32(0x4710DEF8) = 0x47104BD4u; /* 0x47014CA0: mov dword ptr [0x4710def8], 0x47104bd4 */
   3287     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014CAA: ret  */
   3288     RECOMP_REGS_OUT();
   3289 }
   3290 
   3291 void sub_47014CB0(void) {
   3292     int _fpu_cmp = 0;
   3293     uint32_t _cf = 0;
   3294     int _df = 1;
   3295     uint32_t _flag_k = FK_NONE;
   3296     uint32_t _flag_a = 0, _flag_b = 0;
   3297     uint32_t _itail_tgt = 0;
   3298     RECOMP_REGS_LOCALS
   3299     RECOMP_ENTER(0x47014CB0u);
   3300 
   3301 L_47014CB0:
   3302     MEM32(0x4710DEEC) = 0x471050FCu; /* 0x47014CB0: mov dword ptr [0x4710deec], 0x471050fc */
   3303     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014CBA: ret  */
   3304     RECOMP_REGS_OUT();
   3305 }
   3306 
   3307 void sub_47014CC0(void) {
   3308     int _fpu_cmp = 0;
   3309     uint32_t _cf = 0;
   3310     int _df = 1;
   3311     uint32_t _flag_k = FK_NONE;
   3312     uint32_t _flag_a = 0, _flag_b = 0;
   3313     uint32_t _itail_tgt = 0;
   3314     RECOMP_REGS_LOCALS
   3315     RECOMP_ENTER(0x47014CC0u);
   3316 
   3317 L_47014CC0:
   3318     MEM32(0x4710DEF4) = 0x471053F0u; /* 0x47014CC0: mov dword ptr [0x4710def4], 0x471053f0 */
   3319     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014CCA: ret  */
   3320     RECOMP_REGS_OUT();
   3321 }
   3322 
   3323 void sub_47014CD0(void) {
   3324     int _fpu_cmp = 0;
   3325     uint32_t _cf = 0;
   3326     int _df = 1;
   3327     uint32_t _flag_k = FK_NONE;
   3328     uint32_t _flag_a = 0, _flag_b = 0;
   3329     uint32_t _itail_tgt = 0;
   3330     RECOMP_REGS_LOCALS
   3331     RECOMP_ENTER(0x47014CD0u);
   3332 
   3333 L_47014CD0:
   3334     MEM32(0x4710DEF0) = 0x47105428u; /* 0x47014CD0: mov dword ptr [0x4710def0], 0x47105428 */
   3335     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014CDA: ret  */
   3336     RECOMP_REGS_OUT();
   3337 }
   3338 
   3339 void sub_47014CE0(void) {
   3340     int _fpu_cmp = 0;
   3341     uint32_t _cf = 0;
   3342     int _df = 1;
   3343     uint32_t _flag_k = FK_NONE;
   3344     uint32_t _flag_a = 0, _flag_b = 0;
   3345     uint32_t _itail_tgt = 0;
   3346     RECOMP_REGS_LOCALS
   3347     RECOMP_ENTER(0x47014CE0u);
   3348 
   3349 L_47014CE0:
   3350     MEM32(0x4710DEDC) = 0x47105468u; /* 0x47014CE0: mov dword ptr [0x4710dedc], 0x47105468 */
   3351     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014CEA: ret  */
   3352     RECOMP_REGS_OUT();
   3353 }
   3354 
   3355 void sub_47014CF0(void) {
   3356     int _fpu_cmp = 0;
   3357     uint32_t _cf = 0;
   3358     int _df = 1;
   3359     uint32_t _flag_k = FK_NONE;
   3360     uint32_t _flag_a = 0, _flag_b = 0;
   3361     uint32_t _itail_tgt = 0;
   3362     RECOMP_REGS_LOCALS
   3363     RECOMP_ENTER(0x47014CF0u);
   3364 
   3365 L_47014CF0:
   3366     ecx = 0x4710DF15u; /* 0x47014CF0: mov ecx, 0x4710df15 */
   3367     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47014CF5: call dword ptr [0x470ac1c8] */
   3368     RECOMP_FLAGS_IN();
   3369     PUSH32(esp, 0x47014D10u); /* 0x47014CFB: push 0x47014d10 */
   3370     RECOMP_ICALL(0x470A32D9u); /* 0x47014D00: call 0x470a32d9 */ /* not lifted */
   3371     RECOMP_FLAGS_IN();
   3372     ecx = POP32_VAL(esp); /* 0x47014D05: pop ecx */
   3373     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014D06: ret  */
   3374     RECOMP_REGS_OUT();
   3375 }
   3376 
   3377 void sub_47014D00(void) {
   3378     int _fpu_cmp = 0;
   3379     uint32_t _cf = 0;
   3380     int _df = 1;
   3381     uint32_t _flag_k = FK_NONE;
   3382     uint32_t _flag_a = 0, _flag_b = 0;
   3383     uint32_t _itail_tgt = 0;
   3384     RECOMP_REGS_LOCALS
   3385     RECOMP_ENTER(0x47014D00u);
   3386 
   3387 L_47014D00:
   3388     RECOMP_ICALL(0x470A32D9u); /* 0x47014D00: call 0x470a32d9 */ /* not lifted */
   3389     RECOMP_FLAGS_IN();
   3390     ecx = POP32_VAL(esp); /* 0x47014D05: pop ecx */
   3391     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014D06: ret  */
   3392     RECOMP_REGS_OUT();
   3393 }
   3394 
   3395 void sub_47014D10(void) {
   3396     int _fpu_cmp = 0;
   3397     uint32_t _cf = 0;
   3398     int _df = 1;
   3399     uint32_t _flag_k = FK_NONE;
   3400     uint32_t _flag_a = 0, _flag_b = 0;
   3401     uint32_t _itail_tgt = 0;
   3402     RECOMP_REGS_LOCALS
   3403     RECOMP_ENTER(0x47014D10u);
   3404 
   3405 L_47014D10:
   3406     ecx = 0x4710DF15u; /* 0x47014D10: mov ecx, 0x4710df15 */
   3407 L_47014D15:
   3408     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3409     { RECOMP_REGS_OUT(); return; } /* end of function */
   3410   _ljump:
   3411     switch (_itail_tgt) {
   3412       case 0x47014D10u: goto L_47014D10;
   3413       case 0x47014D15u: goto L_47014D15;
   3414       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3415     }
   3416     RECOMP_REGS_OUT();
   3417 }
   3418 
   3419 void sub_47014D20(void) {
   3420     int _fpu_cmp = 0;
   3421     uint32_t _cf = 0;
   3422     int _df = 1;
   3423     uint32_t _flag_k = FK_NONE;
   3424     uint32_t _flag_a = 0, _flag_b = 0;
   3425     uint32_t _itail_tgt = 0;
   3426     RECOMP_REGS_LOCALS
   3427     RECOMP_ENTER(0x47014D20u);
   3428 
   3429 L_47014D20:
   3430     ecx = 0x4710DF14u; /* 0x47014D20: mov ecx, 0x4710df14 */
   3431     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47014D25: call dword ptr [0x470ac1c4] */
   3432     RECOMP_FLAGS_IN();
   3433     PUSH32(esp, 0x47014D40u); /* 0x47014D2B: push 0x47014d40 */
   3434     RECOMP_ICALL(0x470A32D9u); /* 0x47014D30: call 0x470a32d9 */ /* not lifted */
   3435     RECOMP_FLAGS_IN();
   3436     ecx = POP32_VAL(esp); /* 0x47014D35: pop ecx */
   3437     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014D36: ret  */
   3438     RECOMP_REGS_OUT();
   3439 }
   3440 
   3441 void sub_47014D40(void) {
   3442     int _fpu_cmp = 0;
   3443     uint32_t _cf = 0;
   3444     int _df = 1;
   3445     uint32_t _flag_k = FK_NONE;
   3446     uint32_t _flag_a = 0, _flag_b = 0;
   3447     uint32_t _itail_tgt = 0;
   3448     RECOMP_REGS_LOCALS
   3449     RECOMP_ENTER(0x47014D40u);
   3450 
   3451 L_47014D40:
   3452     ecx = 0x4710DF14u; /* 0x47014D40: mov ecx, 0x4710df14 */
   3453 L_47014D45:
   3454     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3455     { RECOMP_REGS_OUT(); return; } /* end of function */
   3456   _ljump:
   3457     switch (_itail_tgt) {
   3458       case 0x47014D40u: goto L_47014D40;
   3459       case 0x47014D45u: goto L_47014D45;
   3460       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3461     }
   3462     RECOMP_REGS_OUT();
   3463 }
   3464 
   3465 void sub_47014D50(void) {
   3466     int _fpu_cmp = 0;
   3467     uint32_t _cf = 0;
   3468     int _df = 1;
   3469     uint32_t _flag_k = FK_NONE;
   3470     uint32_t _flag_a = 0, _flag_b = 0;
   3471     uint32_t _itail_tgt = 0;
   3472     RECOMP_REGS_LOCALS
   3473     RECOMP_ENTER(0x47014D50u);
   3474 
   3475 L_47014D50:
   3476     MEM32(0x4710DF00) = 0x471054A4u; /* 0x47014D50: mov dword ptr [0x4710df00], 0x471054a4 */
   3477     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014D5A: ret  */
   3478     RECOMP_REGS_OUT();
   3479 }
   3480 
   3481 void sub_47014D60(void) {
   3482     int _fpu_cmp = 0;
   3483     uint32_t _cf = 0;
   3484     int _df = 1;
   3485     uint32_t _flag_k = FK_NONE;
   3486     uint32_t _flag_a = 0, _flag_b = 0;
   3487     uint32_t _itail_tgt = 0;
   3488     RECOMP_REGS_LOCALS
   3489     RECOMP_ENTER(0x47014D60u);
   3490 
   3491 L_47014D60:
   3492     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3493     eax = eax | 0xFFFFFFFFu; /* 0x47014D60: or eax, 0xffffffff */
   3494     _cf = 0;
   3495     _flag_k = FK_TEST;
   3496     PUSH32(esp, 0x47014D90u); /* 0x47014D63: push 0x47014d90 */
   3497     MEM32(0x4710DF08) = 0x470AC510u; /* 0x47014D68: mov dword ptr [0x4710df08], 0x470ac510 */
   3498     MEM32(0x4710DF0C) = eax; /* 0x47014D72: mov dword ptr [0x4710df0c], eax */
   3499     MEM32(0x4710DF10) = eax; /* 0x47014D77: mov dword ptr [0x4710df10], eax */
   3500     RECOMP_ICALL(0x470A32D9u); /* 0x47014D7C: call 0x470a32d9 */ /* not lifted */
   3501     RECOMP_FLAGS_IN();
   3502     ecx = POP32_VAL(esp); /* 0x47014D81: pop ecx */
   3503     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014D82: ret  */
   3504     RECOMP_REGS_OUT();
   3505 }
   3506 
   3507 void sub_47014D90(void) {
   3508     int _fpu_cmp = 0;
   3509     uint32_t _cf = 0;
   3510     int _df = 1;
   3511     uint32_t _flag_k = FK_NONE;
   3512     uint32_t _flag_a = 0, _flag_b = 0;
   3513     uint32_t _itail_tgt = 0;
   3514     RECOMP_REGS_LOCALS
   3515     RECOMP_ENTER(0x47014D90u);
   3516 
   3517 L_47014D90:
   3518     SET_LO8(ecx, MEM8(0x4710DF16)); /* 0x47014D90: mov cl, byte ptr [0x4710df16] */
   3519     SET_LO8(eax, 1); /* 0x47014D96: mov al, 1 */
   3520     /* test LO8(eax), LO8(ecx) */ /* 0x47014D98: test al, cl */
   3521     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3522     _cf = 0;
   3523     _flag_k = FK_NARROW(FK_TEST, 24);
   3524     if (TEST_NZ(_flag_a, _flag_b)) goto L_47014DAE; /* 0x47014D9A: jne 0x47014dae */
   3525 L_47014D9C:
   3526     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
   3527     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x47014D9C: or cl, al */
   3528     _cf = 0;
   3529     _flag_k = FK_NARROW(FK_TEST, 24);
   3530     MEM8(0x4710DF16) = (uint8_t)(LO8(ecx)); /* 0x47014D9E: mov byte ptr [0x4710df16], cl */
   3531     MEM32(0x4710DF08) = 0x470AC510u; /* 0x47014DA4: mov dword ptr [0x4710df08], 0x470ac510 */
   3532 L_47014DAE:
   3533     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014DAE: ret  */
   3534     RECOMP_REGS_OUT();
   3535 }
   3536 
   3537 void sub_47014DB0(void) {
   3538     int _fpu_cmp = 0;
   3539     uint32_t _cf = 0;
   3540     int _df = 1;
   3541     uint32_t _flag_k = FK_NONE;
   3542     uint32_t _flag_a = 0, _flag_b = 0;
   3543     uint32_t _itail_tgt = 0;
   3544     RECOMP_REGS_LOCALS
   3545     RECOMP_ENTER(0x47014DB0u);
   3546 
   3547 L_47014DB0:
   3548     PUSH32(esp, ecx); /* 0x47014DB0: push ecx */
   3549     PUSH32(esp, ebx); /* 0x47014DB1: push ebx */
   3550     ebx = MEM32(0x470AC150); /* 0x47014DB2: mov ebx, dword ptr [0x470ac150] */
   3551     PUSH32(esp, ebp); /* 0x47014DB8: push ebp */
   3552     PUSH32(esp, esi); /* 0x47014DB9: push esi */
   3553     PUSH32(esp, edi); /* 0x47014DBA: push edi */
   3554     edi = ecx; /* 0x47014DBB: mov edi, ecx */
   3555     RECOMP_ICALL(ebx); /* 0x47014DBD: call ebx */
   3556     RECOMP_FLAGS_IN();
   3557     ebp = MEM32(0x470AC3C8); /* 0x47014DBF: mov ebp, dword ptr [0x470ac3c8] */
   3558     esi = eax; /* 0x47014DC5: mov esi, eax */
   3559     RECOMP_ICALL(ebp); /* 0x47014DC7: call ebp */
   3560     RECOMP_FLAGS_IN();
   3561     eax = MEM32(eax); /* 0x47014DC9: mov eax, dword ptr [eax] */
   3562     /* test eax, eax */ /* 0x47014DCB: test eax, eax */
   3563     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3564     _cf = 0;
   3565     _flag_k = FK_TEST;
   3566     MEM32(esp + 0x10) = esi; /* 0x47014DCD: mov dword ptr [esp + 0x10], esi */
   3567     if (TEST_Z(_flag_a, _flag_b)) goto L_47014DD7; /* 0x47014DD1: je 0x47014dd7 */
   3568 L_47014DD3:
   3569     MEM32(esp + 0x10) = eax; /* 0x47014DD3: mov dword ptr [esp + 0x10], eax */
   3570 L_47014DD7:
   3571     RECOMP_ICALL(0x47039020u); /* 0x47014DD7: call 0x47039020 */ /* not lifted */
   3572     RECOMP_FLAGS_IN();
   3573     esi = eax; /* 0x47014DDC: mov esi, eax */
   3574     ecx = esi; /* 0x47014DDE: mov ecx, esi */
   3575     RECOMP_ICALL(0x4703B210u); /* 0x47014DE0: call 0x4703b210 */ /* not lifted */
   3576     RECOMP_FLAGS_IN();
   3577     PUSH32(esp, eax); /* 0x47014DE5: push eax */
   3578     ecx = esi; /* 0x47014DE6: mov ecx, esi */
   3579     RECOMP_ICALL(0x4703B240u); /* 0x47014DE8: call 0x4703b240 */ /* not lifted */
   3580     RECOMP_FLAGS_IN();
   3581     PUSH32(esp, eax); /* 0x47014DED: push eax */
   3582     ecx = esi; /* 0x47014DEE: mov ecx, esi */
   3583     RECOMP_ICALL(0x4703B080u); /* 0x47014DF0: call 0x4703b080 */ /* not lifted */
   3584     RECOMP_FLAGS_IN();
   3585     PUSH32(esp, eax); /* 0x47014DF5: push eax */
   3586     eax = MEM32(esp + 0x1C); /* 0x47014DF6: mov eax, dword ptr [esp + 0x1c] */
   3587     PUSH32(esp, eax); /* 0x47014DFA: push eax */
   3588     PUSH32(esp, 0); /* 0x47014DFB: push 0 */
   3589     PUSH32(esp, 0x28u); /* 0x47014DFD: push 0x28 */
   3590     PUSH32(esp, 0x471054F8u); /* 0x47014DFF: push 0x471054f8 */
   3591     ecx = esi; /* 0x47014E04: mov ecx, esi */
   3592     RECOMP_ICALL(0x4703A340u); /* 0x47014E06: call 0x4703a340 */ /* not lifted */
   3593     RECOMP_FLAGS_IN();
   3594     PUSH32(esp, edi); /* 0x47014E0B: push edi */
   3595     PUSH32(esp, 0x471052CCu); /* 0x47014E0C: push 0x471052cc */
   3596     PUSH32(esp, 4); /* 0x47014E11: push 4 */
   3597     PUSH32(esp, esi); /* 0x47014E13: push esi */
   3598     RECOMP_ICALL(0x47039830u); /* 0x47014E14: call 0x47039830 */ /* not lifted */
   3599     RECOMP_FLAGS_IN();
   3600     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3601     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3602     esp = esp + 0x10u; /* 0x47014E19: add esp, 0x10 */
   3603     _flag_k = FK_ADD;
   3604     RECOMP_ICALL(ebx); /* 0x47014E1C: call ebx */
   3605     RECOMP_FLAGS_IN();
   3606     esi = eax; /* 0x47014E1E: mov esi, eax */
   3607     RECOMP_ICALL(ebp); /* 0x47014E20: call ebp */
   3608     RECOMP_FLAGS_IN();
   3609     eax = MEM32(eax); /* 0x47014E22: mov eax, dword ptr [eax] */
   3610     /* test eax, eax */ /* 0x47014E24: test eax, eax */
   3611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3612     _cf = 0;
   3613     _flag_k = FK_TEST;
   3614     MEM32(esp + 0x10) = esi; /* 0x47014E26: mov dword ptr [esp + 0x10], esi */
   3615     if (TEST_Z(_flag_a, _flag_b)) goto L_47014E30; /* 0x47014E2A: je 0x47014e30 */
   3616 L_47014E2C:
   3617     MEM32(esp + 0x10) = eax; /* 0x47014E2C: mov dword ptr [esp + 0x10], eax */
   3618 L_47014E30:
   3619     RECOMP_ICALL(0x47039020u); /* 0x47014E30: call 0x47039020 */ /* not lifted */
   3620     RECOMP_FLAGS_IN();
   3621     esi = eax; /* 0x47014E35: mov esi, eax */
   3622     ecx = esi; /* 0x47014E37: mov ecx, esi */
   3623     RECOMP_ICALL(0x4703B210u); /* 0x47014E39: call 0x4703b210 */ /* not lifted */
   3624     RECOMP_FLAGS_IN();
   3625     PUSH32(esp, eax); /* 0x47014E3E: push eax */
   3626     ecx = esi; /* 0x47014E3F: mov ecx, esi */
   3627     RECOMP_ICALL(0x4703B240u); /* 0x47014E41: call 0x4703b240 */ /* not lifted */
   3628     RECOMP_FLAGS_IN();
   3629     PUSH32(esp, eax); /* 0x47014E46: push eax */
   3630     ecx = esi; /* 0x47014E47: mov ecx, esi */
   3631     RECOMP_ICALL(0x4703B080u); /* 0x47014E49: call 0x4703b080 */ /* not lifted */
   3632     RECOMP_FLAGS_IN();
   3633     ecx = MEM32(esp + 0x18); /* 0x47014E4E: mov ecx, dword ptr [esp + 0x18] */
   3634     PUSH32(esp, eax); /* 0x47014E52: push eax */
   3635     PUSH32(esp, ecx); /* 0x47014E53: push ecx */
   3636     PUSH32(esp, 0); /* 0x47014E54: push 0 */
   3637     PUSH32(esp, 0x29u); /* 0x47014E56: push 0x29 */
   3638     PUSH32(esp, 0x471054F8u); /* 0x47014E58: push 0x471054f8 */
   3639     ecx = esi; /* 0x47014E5D: mov ecx, esi */
   3640     RECOMP_ICALL(0x4703A340u); /* 0x47014E5F: call 0x4703a340 */ /* not lifted */
   3641     RECOMP_FLAGS_IN();
   3642     edx = MEM32(edi + 0x4); /* 0x47014E64: mov edx, dword ptr [edi + 4] */
   3643     PUSH32(esp, edx); /* 0x47014E67: push edx */
   3644     PUSH32(esp, 0x471054E8u); /* 0x47014E68: push 0x471054e8 */
   3645     PUSH32(esp, 4); /* 0x47014E6D: push 4 */
   3646     PUSH32(esp, esi); /* 0x47014E6F: push esi */
   3647     RECOMP_ICALL(0x47039830u); /* 0x47014E70: call 0x47039830 */ /* not lifted */
   3648     RECOMP_FLAGS_IN();
   3649     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3651     esp = esp + 0x10u; /* 0x47014E75: add esp, 0x10 */
   3652     _flag_k = FK_ADD;
   3653     RECOMP_ICALL(ebx); /* 0x47014E78: call ebx */
   3654     RECOMP_FLAGS_IN();
   3655     esi = eax; /* 0x47014E7A: mov esi, eax */
   3656     RECOMP_ICALL(ebp); /* 0x47014E7C: call ebp */
   3657     RECOMP_FLAGS_IN();
   3658     eax = MEM32(eax); /* 0x47014E7E: mov eax, dword ptr [eax] */
   3659     /* test eax, eax */ /* 0x47014E80: test eax, eax */
   3660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3661     _cf = 0;
   3662     _flag_k = FK_TEST;
   3663     MEM32(esp + 0x10) = esi; /* 0x47014E82: mov dword ptr [esp + 0x10], esi */
   3664     if (TEST_Z(_flag_a, _flag_b)) goto L_47014E8C; /* 0x47014E86: je 0x47014e8c */
   3665 L_47014E88:
   3666     MEM32(esp + 0x10) = eax; /* 0x47014E88: mov dword ptr [esp + 0x10], eax */
   3667 L_47014E8C:
   3668     RECOMP_ICALL(0x47039020u); /* 0x47014E8C: call 0x47039020 */ /* not lifted */
   3669     RECOMP_FLAGS_IN();
   3670     esi = eax; /* 0x47014E91: mov esi, eax */
   3671     ecx = esi; /* 0x47014E93: mov ecx, esi */
   3672     RECOMP_ICALL(0x4703B210u); /* 0x47014E95: call 0x4703b210 */ /* not lifted */
   3673     RECOMP_FLAGS_IN();
   3674     PUSH32(esp, eax); /* 0x47014E9A: push eax */
   3675     ecx = esi; /* 0x47014E9B: mov ecx, esi */
   3676     RECOMP_ICALL(0x4703B240u); /* 0x47014E9D: call 0x4703b240 */ /* not lifted */
   3677     RECOMP_FLAGS_IN();
   3678     PUSH32(esp, eax); /* 0x47014EA2: push eax */
   3679     ecx = esi; /* 0x47014EA3: mov ecx, esi */
   3680     RECOMP_ICALL(0x4703B080u); /* 0x47014EA5: call 0x4703b080 */ /* not lifted */
   3681     RECOMP_FLAGS_IN();
   3682     PUSH32(esp, eax); /* 0x47014EAA: push eax */
   3683     eax = MEM32(esp + 0x1C); /* 0x47014EAB: mov eax, dword ptr [esp + 0x1c] */
   3684     PUSH32(esp, eax); /* 0x47014EAF: push eax */
   3685     PUSH32(esp, 0); /* 0x47014EB0: push 0 */
   3686     PUSH32(esp, 0x2Au); /* 0x47014EB2: push 0x2a */
   3687     PUSH32(esp, 0x471054F8u); /* 0x47014EB4: push 0x471054f8 */
   3688     ecx = esi; /* 0x47014EB9: mov ecx, esi */
   3689     RECOMP_ICALL(0x4703A340u); /* 0x47014EBB: call 0x4703a340 */ /* not lifted */
   3690     RECOMP_FLAGS_IN();
   3691     ecx = MEM32(edi + 0x8); /* 0x47014EC0: mov ecx, dword ptr [edi + 8] */
   3692     PUSH32(esp, ecx); /* 0x47014EC3: push ecx */
   3693     PUSH32(esp, 0x471054D4u); /* 0x47014EC4: push 0x471054d4 */
   3694     PUSH32(esp, 4); /* 0x47014EC9: push 4 */
   3695     PUSH32(esp, esi); /* 0x47014ECB: push esi */
   3696     RECOMP_ICALL(0x47039830u); /* 0x47014ECC: call 0x47039830 */ /* not lifted */
   3697     RECOMP_FLAGS_IN();
   3698     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3699     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3700     esp = esp + 0x10u; /* 0x47014ED1: add esp, 0x10 */
   3701     _flag_k = FK_ADD;
   3702     RECOMP_ICALL(ebx); /* 0x47014ED4: call ebx */
   3703     RECOMP_FLAGS_IN();
   3704     esi = eax; /* 0x47014ED6: mov esi, eax */
   3705     RECOMP_ICALL(ebp); /* 0x47014ED8: call ebp */
   3706     RECOMP_FLAGS_IN();
   3707     eax = MEM32(eax); /* 0x47014EDA: mov eax, dword ptr [eax] */
   3708     /* test eax, eax */ /* 0x47014EDC: test eax, eax */
   3709     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3710     _cf = 0;
   3711     _flag_k = FK_TEST;
   3712     edi = esi; /* 0x47014EDE: mov edi, esi */
   3713     if (TEST_Z(_flag_a, _flag_b)) goto L_47014EE4; /* 0x47014EE0: je 0x47014ee4 */
   3714 L_47014EE2:
   3715     edi = eax; /* 0x47014EE2: mov edi, eax */
   3716 L_47014EE4:
   3717     RECOMP_ICALL(0x47039020u); /* 0x47014EE4: call 0x47039020 */ /* not lifted */
   3718     RECOMP_FLAGS_IN();
   3719     esi = eax; /* 0x47014EE9: mov esi, eax */
   3720     ecx = esi; /* 0x47014EEB: mov ecx, esi */
   3721     RECOMP_ICALL(0x4703B210u); /* 0x47014EED: call 0x4703b210 */ /* not lifted */
   3722     RECOMP_FLAGS_IN();
   3723     PUSH32(esp, eax); /* 0x47014EF2: push eax */
   3724     ecx = esi; /* 0x47014EF3: mov ecx, esi */
   3725     RECOMP_ICALL(0x4703B240u); /* 0x47014EF5: call 0x4703b240 */ /* not lifted */
   3726     RECOMP_FLAGS_IN();
   3727     PUSH32(esp, eax); /* 0x47014EFA: push eax */
   3728     ecx = esi; /* 0x47014EFB: mov ecx, esi */
   3729     RECOMP_ICALL(0x4703B080u); /* 0x47014EFD: call 0x4703b080 */ /* not lifted */
   3730     RECOMP_FLAGS_IN();
   3731     PUSH32(esp, eax); /* 0x47014F02: push eax */
   3732     PUSH32(esp, edi); /* 0x47014F03: push edi */
   3733     PUSH32(esp, 0); /* 0x47014F04: push 0 */
   3734     PUSH32(esp, 0x2Bu); /* 0x47014F06: push 0x2b */
   3735     PUSH32(esp, 0x471054F8u); /* 0x47014F08: push 0x471054f8 */
   3736     ecx = esi; /* 0x47014F0D: mov ecx, esi */
   3737     RECOMP_ICALL(0x4703A340u); /* 0x47014F0F: call 0x4703a340 */ /* not lifted */
   3738     RECOMP_FLAGS_IN();
   3739     PUSH32(esp, 0x4710529Cu); /* 0x47014F14: push 0x4710529c */
   3740     PUSH32(esp, 4); /* 0x47014F19: push 4 */
   3741     PUSH32(esp, esi); /* 0x47014F1B: push esi */
   3742     RECOMP_ICALL(0x47039830u); /* 0x47014F1C: call 0x47039830 */ /* not lifted */
   3743     RECOMP_FLAGS_IN();
   3744     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3745     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3746     esp = esp + 0xCu; /* 0x47014F21: add esp, 0xc */
   3747     _flag_k = FK_ADD;
   3748     edi = POP32_VAL(esp); /* 0x47014F24: pop edi */
   3749     esi = POP32_VAL(esp); /* 0x47014F25: pop esi */
   3750     ebp = POP32_VAL(esp); /* 0x47014F26: pop ebp */
   3751     ebx = POP32_VAL(esp); /* 0x47014F27: pop ebx */
   3752     ecx = POP32_VAL(esp); /* 0x47014F28: pop ecx */
   3753     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014F29: ret  */
   3754     RECOMP_REGS_OUT();
   3755 }
   3756 
   3757 void sub_47014F30(void) {
   3758     int _fpu_cmp = 0;
   3759     uint32_t _cf = 0;
   3760     int _df = 1;
   3761     uint32_t _flag_k = FK_NONE;
   3762     uint32_t _flag_a = 0, _flag_b = 0;
   3763     uint32_t _itail_tgt = 0;
   3764     RECOMP_REGS_LOCALS
   3765     RECOMP_ENTER(0x47014F30u);
   3766 
   3767 L_47014F30:
   3768     eax = MEM32(esp + 0x4); /* 0x47014F30: mov eax, dword ptr [esp + 4] */
   3769     edx = MEM32(esp + 0x8); /* 0x47014F34: mov edx, dword ptr [esp + 8] */
   3770     MEM32(ecx + 0x4) = eax; /* 0x47014F38: mov dword ptr [ecx + 4], eax */
   3771     MEM32(ecx + 0x8) = edx; /* 0x47014F3B: mov dword ptr [ecx + 8], edx */
   3772     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47014F3E: ret 8 */
   3773     RECOMP_REGS_OUT();
   3774 }
   3775 
   3776 void sub_47014F50(void) {
   3777     int _fpu_cmp = 0;
   3778     uint32_t _cf = 0;
   3779     int _df = 1;
   3780     uint32_t _flag_k = FK_NONE;
   3781     uint32_t _flag_a = 0, _flag_b = 0;
   3782     uint32_t _itail_tgt = 0;
   3783     RECOMP_REGS_LOCALS
   3784     RECOMP_ENTER(0x47014F50u);
   3785 
   3786 L_47014F50:
   3787     edx = MEM32(esp + 0x8); /* 0x47014F50: mov edx, dword ptr [esp + 8] */
   3788     eax = ecx; /* 0x47014F54: mov eax, ecx */
   3789     ecx = MEM32(esp + 0x4); /* 0x47014F56: mov ecx, dword ptr [esp + 4] */
   3790     MEM32(eax) = 0x470AC510u; /* 0x47014F5A: mov dword ptr [eax], 0x470ac510 */
   3791     MEM32(eax + 0x4) = ecx; /* 0x47014F60: mov dword ptr [eax + 4], ecx */
   3792     MEM32(eax + 0x8) = edx; /* 0x47014F63: mov dword ptr [eax + 8], edx */
   3793     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47014F66: ret 8 */
   3794     RECOMP_REGS_OUT();
   3795 }
   3796 
   3797 void sub_47014F70(void) {
   3798     int _fpu_cmp = 0;
   3799     uint32_t _cf = 0;
   3800     int _df = 1;
   3801     uint32_t _flag_k = FK_NONE;
   3802     uint32_t _flag_a = 0, _flag_b = 0;
   3803     uint32_t _itail_tgt = 0;
   3804     RECOMP_REGS_LOCALS
   3805     RECOMP_ENTER(0x47014F70u);
   3806 
   3807 L_47014F70:
   3808     MEM32(ecx) = 0x470AC510u; /* 0x47014F70: mov dword ptr [ecx], 0x470ac510 */
   3809     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014F76: ret  */
   3810     RECOMP_REGS_OUT();
   3811 }
   3812 
   3813 void sub_47014F80(void) {
   3814     int _fpu_cmp = 0;
   3815     uint32_t _cf = 0;
   3816     int _df = 1;
   3817     uint32_t _flag_k = FK_NONE;
   3818     uint32_t _flag_a = 0, _flag_b = 0;
   3819     uint32_t _itail_tgt = 0;
   3820     RECOMP_REGS_LOCALS
   3821     RECOMP_ENTER(0x47014F80u);
   3822 
   3823 L_47014F80:
   3824     ecx = 0x4710DF1Du; /* 0x47014F80: mov ecx, 0x4710df1d */
   3825     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47014F85: call dword ptr [0x470ac1c8] */
   3826     RECOMP_FLAGS_IN();
   3827     PUSH32(esp, 0x47014FA0u); /* 0x47014F8B: push 0x47014fa0 */
   3828     RECOMP_ICALL(0x470A32D9u); /* 0x47014F90: call 0x470a32d9 */ /* not lifted */
   3829     RECOMP_FLAGS_IN();
   3830     ecx = POP32_VAL(esp); /* 0x47014F95: pop ecx */
   3831     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014F96: ret  */
   3832     RECOMP_REGS_OUT();
   3833 }
   3834 
   3835 void sub_47014FA0(void) {
   3836     int _fpu_cmp = 0;
   3837     uint32_t _cf = 0;
   3838     int _df = 1;
   3839     uint32_t _flag_k = FK_NONE;
   3840     uint32_t _flag_a = 0, _flag_b = 0;
   3841     uint32_t _itail_tgt = 0;
   3842     RECOMP_REGS_LOCALS
   3843     RECOMP_ENTER(0x47014FA0u);
   3844 
   3845 L_47014FA0:
   3846     ecx = 0x4710DF1Du; /* 0x47014FA0: mov ecx, 0x4710df1d */
   3847 L_47014FA5:
   3848     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   3849     { RECOMP_REGS_OUT(); return; } /* end of function */
   3850   _ljump:
   3851     switch (_itail_tgt) {
   3852       case 0x47014FA0u: goto L_47014FA0;
   3853       case 0x47014FA5u: goto L_47014FA5;
   3854       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3855     }
   3856     RECOMP_REGS_OUT();
   3857 }
   3858 
   3859 void sub_47014FB0(void) {
   3860     int _fpu_cmp = 0;
   3861     uint32_t _cf = 0;
   3862     int _df = 1;
   3863     uint32_t _flag_k = FK_NONE;
   3864     uint32_t _flag_a = 0, _flag_b = 0;
   3865     uint32_t _itail_tgt = 0;
   3866     RECOMP_REGS_LOCALS
   3867     RECOMP_ENTER(0x47014FB0u);
   3868 
   3869 L_47014FB0:
   3870     ecx = 0x4710DF1Cu; /* 0x47014FB0: mov ecx, 0x4710df1c */
   3871     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47014FB5: call dword ptr [0x470ac1c4] */
   3872     RECOMP_FLAGS_IN();
   3873     PUSH32(esp, 0x47014FD0u); /* 0x47014FBB: push 0x47014fd0 */
   3874     RECOMP_ICALL(0x470A32D9u); /* 0x47014FC0: call 0x470a32d9 */ /* not lifted */
   3875     RECOMP_FLAGS_IN();
   3876     ecx = POP32_VAL(esp); /* 0x47014FC5: pop ecx */
   3877     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014FC6: ret  */
   3878     RECOMP_REGS_OUT();
   3879 }
   3880 
   3881 void sub_47014FD0(void) {
   3882     int _fpu_cmp = 0;
   3883     uint32_t _cf = 0;
   3884     int _df = 1;
   3885     uint32_t _flag_k = FK_NONE;
   3886     uint32_t _flag_a = 0, _flag_b = 0;
   3887     uint32_t _itail_tgt = 0;
   3888     RECOMP_REGS_LOCALS
   3889     RECOMP_ENTER(0x47014FD0u);
   3890 
   3891 L_47014FD0:
   3892     ecx = 0x4710DF1Cu; /* 0x47014FD0: mov ecx, 0x4710df1c */
   3893 L_47014FD5:
   3894     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   3895     { RECOMP_REGS_OUT(); return; } /* end of function */
   3896   _ljump:
   3897     switch (_itail_tgt) {
   3898       case 0x47014FD0u: goto L_47014FD0;
   3899       case 0x47014FD5u: goto L_47014FD5;
   3900       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3901     }
   3902     RECOMP_REGS_OUT();
   3903 }
   3904 
   3905 void sub_47014FE0(void) {
   3906     int _fpu_cmp = 0;
   3907     uint32_t _cf = 0;
   3908     int _df = 1;
   3909     uint32_t _flag_k = FK_NONE;
   3910     uint32_t _flag_a = 0, _flag_b = 0;
   3911     uint32_t _itail_tgt = 0;
   3912     RECOMP_REGS_LOCALS
   3913     RECOMP_ENTER(0x47014FE0u);
   3914 
   3915 L_47014FE0:
   3916     MEM32(0x4710DF18) = 0x4710552Cu; /* 0x47014FE0: mov dword ptr [0x4710df18], 0x4710552c */
   3917     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014FEA: ret  */
   3918     RECOMP_REGS_OUT();
   3919 }
   3920 
   3921 void sub_47014FF0(void) {
   3922     int _fpu_cmp = 0;
   3923     uint32_t _cf = 0;
   3924     int _df = 1;
   3925     uint32_t _flag_k = FK_NONE;
   3926     uint32_t _flag_a = 0, _flag_b = 0;
   3927     uint32_t _itail_tgt = 0;
   3928     RECOMP_REGS_LOCALS
   3929     RECOMP_ENTER(0x47014FF0u);
   3930 
   3931 L_47014FF0:
   3932     eax = MEM32(esp + 0x4); /* 0x47014FF0: mov eax, dword ptr [esp + 4] */
   3933     edx = MEM32(esp + 0x8); /* 0x47014FF4: mov edx, dword ptr [esp + 8] */
   3934     PUSH32(esp, esi); /* 0x47014FF8: push esi */
   3935     esi = ecx; /* 0x47014FF9: mov esi, ecx */
   3936     MEM32(esi) = eax; /* 0x47014FFB: mov dword ptr [esi], eax */
   3937     ecx = MEM32(eax); /* 0x47014FFD: mov ecx, dword ptr [eax] */
   3938     MEM32(esi + 0x4) = ecx; /* 0x47014FFF: mov dword ptr [esi + 4], ecx */
   3939     ecx = MEM32(esp + 0x10); /* 0x47015002: mov ecx, dword ptr [esp + 0x10] */
   3940     MEM32(esi + 0x8) = ecx; /* 0x47015006: mov dword ptr [esi + 8], ecx */
   3941     MEM32(esi + 0xC) = edx; /* 0x47015009: mov dword ptr [esi + 0xc], edx */
   3942     MEM32(esi + 0x10) = 0; /* 0x4701500C: mov dword ptr [esi + 0x10], 0 */
   3943     eax = MEM32(eax); /* 0x47015013: mov eax, dword ptr [eax] */
   3944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3945     eax = eax - 1; /* 0x47015015: dec eax */
   3946     _flag_k = FK_DEC;
   3947     /* test ecx, ecx */ /* 0x47015016: test ecx, ecx */
   3948     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3949     _cf = 0;
   3950     _flag_k = FK_TEST;
   3951     MEM32(esi + 0x14) = eax; /* 0x47015018: mov dword ptr [esi + 0x14], eax */
   3952     MEM32(esi + 0x18) = 0; /* 0x4701501B: mov dword ptr [esi + 0x18], 0 */
   3953     if (TEST_NZ(_flag_a, _flag_b)) goto L_4701504C; /* 0x47015022: jne 0x4701504c */
   3954 L_47015024:
   3955     ecx = MEM32(esi + 0x4); /* 0x47015024: mov ecx, dword ptr [esi + 4] */
   3956     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x47015027: shl ecx, 2 */
   3957     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3958     ecx = ecx << 2u; /* 0x47015027: shl ecx, 2 */
   3959     PUSH32(esp, ecx); /* 0x4701502A: push ecx */
   3960     RECOMP_ICALL(0x470A33F2u); /* 0x4701502B: call 0x470a33f2 */ /* not lifted */
   3961     RECOMP_FLAGS_IN();
   3962     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3963     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3964     esp = esp + 4; /* 0x47015030: add esp, 4 */
   3965     _flag_k = FK_ADD;
   3966     /* test eax, eax */ /* 0x47015033: test eax, eax */
   3967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3968     _cf = 0;
   3969     _flag_k = FK_TEST;
   3970     MEM32(esi + 0x8) = eax; /* 0x47015035: mov dword ptr [esi + 8], eax */
   3971     if (TEST_NZ(_flag_a, _flag_b)) goto L_4701504C; /* 0x47015038: jne 0x4701504c */
   3972 L_4701503A:
   3973     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4701503A: call dword ptr [0x470ac3c8] */
   3974     RECOMP_FLAGS_IN();
   3975     MEM32(eax) = 0xCu; /* 0x47015040: mov dword ptr [eax], 0xc */
   3976     eax = esi; /* 0x47015046: mov eax, esi */
   3977     esi = POP32_VAL(esp); /* 0x47015048: pop esi */
   3978     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47015049: ret 0xc */
   3979 L_4701504C:
   3980     eax = MEM32(esi + 0x8); /* 0x4701504C: mov eax, dword ptr [esi + 8] */
   3981     /* test eax, eax */ /* 0x4701504F: test eax, eax */
   3982     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3983     _cf = 0;
   3984     _flag_k = FK_TEST;
   3985     if (TEST_Z(_flag_a, _flag_b)) goto L_47015088; /* 0x47015051: je 0x47015088 */
   3986 L_47015053:
   3987     edx = MEM32(esi); /* 0x47015053: mov edx, dword ptr [esi] */
   3988     MEM32(edx) = 0; /* 0x47015055: mov dword ptr [edx], 0 */
   3989     ecx = MEM32(esi + 0x4); /* 0x4701505B: mov ecx, dword ptr [esi + 4] */
   3990     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3991     eax = 0; /* 0x4701505E: xor eax, eax */
   3992     _cf = 0;
   3993     _flag_k = FK_TEST;
   3994     /* test ecx, ecx */ /* 0x47015060: test ecx, ecx */
   3995     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3996     _cf = 0;
   3997     _flag_k = FK_TEST;
   3998     if (TEST_LE(_flag_a, _flag_b)) goto L_47015094; /* 0x47015062: jle 0x47015094 */
   3999 L_47015064:
   4000     ecx = MEM32(esi + 0xC); /* 0x47015064: mov ecx, dword ptr [esi + 0xc] */
   4001     ecx = MEM32(ecx + eax * 4); /* 0x47015067: mov ecx, dword ptr [ecx + eax*4] */
   4002     edx = MEM32(esi + 0x8); /* 0x4701506A: mov edx, dword ptr [esi + 8] */
   4003     MEM32(edx + eax * 4) = ecx; /* 0x4701506D: mov dword ptr [edx + eax*4], ecx */
   4004     edx = MEM32(esi + 0xC); /* 0x47015070: mov edx, dword ptr [esi + 0xc] */
   4005     MEM32(edx + eax * 4) = 0; /* 0x47015073: mov dword ptr [edx + eax*4], 0 */
   4006     ecx = MEM32(esi + 0x4); /* 0x4701507A: mov ecx, dword ptr [esi + 4] */
   4007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4008     eax = eax + 1; /* 0x4701507D: inc eax */
   4009     _flag_k = FK_INC;
   4010     /* cmp eax, ecx */ /* 0x4701507E: cmp eax, ecx */
   4011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4013     _flag_k = FK_CMP;
   4014     RECOMP_BACKEDGE();
   4015     if (CMP_L(_flag_a, _flag_b)) goto L_47015064; /* 0x47015080: jl 0x47015064 */
   4016 L_47015082:
   4017     eax = esi; /* 0x47015082: mov eax, esi */
   4018     esi = POP32_VAL(esp); /* 0x47015084: pop esi */
   4019     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47015085: ret 0xc */
   4020 L_47015088:
   4021     eax = MEM32(esi); /* 0x47015088: mov eax, dword ptr [esi] */
   4022     ecx = MEM32(eax); /* 0x4701508A: mov ecx, dword ptr [eax] */
   4023     MEM32(esi + 0x10) = ecx; /* 0x4701508C: mov dword ptr [esi + 0x10], ecx */
   4024     edx = MEM32(eax); /* 0x4701508F: mov edx, dword ptr [eax] */
   4025     MEM32(esi + 0x18) = edx; /* 0x47015091: mov dword ptr [esi + 0x18], edx */
   4026 L_47015094:
   4027     eax = esi; /* 0x47015094: mov eax, esi */
   4028     esi = POP32_VAL(esp); /* 0x47015096: pop esi */
   4029     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47015097: ret 0xc */
   4030     RECOMP_REGS_OUT();
   4031 }
   4032 
   4033 void sub_470150A0(void) {
   4034     int _fpu_cmp = 0;
   4035     uint32_t _cf = 0;
   4036     int _df = 1;
   4037     uint32_t _flag_k = FK_NONE;
   4038     uint32_t _flag_a = 0, _flag_b = 0;
   4039     uint32_t _itail_tgt = 0;
   4040     RECOMP_REGS_LOCALS
   4041     RECOMP_ENTER(0x470150A0u);
   4042 
   4043 L_470150A0:
   4044     eax = MEM32(ecx + 0x8); /* 0x470150A0: mov eax, dword ptr [ecx + 8] */
   4045     PUSH32(esp, eax); /* 0x470150A3: push eax */
   4046     RECOMP_ICALL(0x470A32A2u); /* 0x470150A4: call 0x470a32a2 */ /* not lifted */
   4047     RECOMP_FLAGS_IN();
   4048     ecx = POP32_VAL(esp); /* 0x470150A9: pop ecx */
   4049     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470150AA: ret  */
   4050     RECOMP_REGS_OUT();
   4051 }
   4052 
   4053 void sub_470150B0(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(0x470150B0u);
   4062 
   4063 L_470150B0:
   4064     edx = MEM32(ecx + 0x10); /* 0x470150B0: mov edx, dword ptr [ecx + 0x10] */
   4065     PUSH32(esp, esi); /* 0x470150B3: push esi */
   4066     esi = MEM32(ecx + 0x4); /* 0x470150B4: mov esi, dword ptr [ecx + 4] */
   4067     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4068     eax = 0; /* 0x470150B7: xor eax, eax */
   4069     _cf = 0;
   4070     _flag_k = FK_TEST;
   4071     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4072     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4073     esi = esi - edx; /* 0x470150B9: sub esi, edx */
   4074     _flag_k = FK_CMP;
   4075     esi = POP32_VAL(esp); /* 0x470150BB: pop esi */
   4076     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_470150C4; /* 0x470150BC: je 0x470150c4 */
   4077 L_470150BE:
   4078     eax = MEM32(ecx + 0x8); /* 0x470150BE: mov eax, dword ptr [ecx + 8] */
   4079     eax = MEM32(eax + edx * 4); /* 0x470150C1: mov eax, dword ptr [eax + edx*4] */
   4080 L_470150C4:
   4081     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470150C4: ret  */
   4082     RECOMP_REGS_OUT();
   4083 }
   4084 
   4085 void sub_470150D0(void) {
   4086     int _fpu_cmp = 0;
   4087     uint32_t _cf = 0;
   4088     int _df = 1;
   4089     uint32_t _flag_k = FK_NONE;
   4090     uint32_t _flag_a = 0, _flag_b = 0;
   4091     uint32_t _itail_tgt = 0;
   4092     RECOMP_REGS_LOCALS
   4093     RECOMP_ENTER(0x470150D0u);
   4094 
   4095 L_470150D0:
   4096     PUSH32(esp, ebx); /* 0x470150D0: push ebx */
   4097     PUSH32(esp, ebp); /* 0x470150D1: push ebp */
   4098     PUSH32(esp, esi); /* 0x470150D2: push esi */
   4099     esi = ecx; /* 0x470150D3: mov esi, ecx */
   4100     ebp = MEM32(esi + 0x10); /* 0x470150D5: mov ebp, dword ptr [esi + 0x10] */
   4101     eax = MEM32(esi + 0x4); /* 0x470150D8: mov eax, dword ptr [esi + 4] */
   4102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   4103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4104     eax = eax - ebp; /* 0x470150DB: sub eax, ebp */
   4105     _flag_k = FK_CMP;
   4106     PUSH32(esp, edi); /* 0x470150DD: push edi */
   4107     if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_470150E9; /* 0x470150DE: jne 0x470150e9 */
   4108 L_470150E0:
   4109     edi = POP32_VAL(esp); /* 0x470150E0: pop edi */
   4110     esi = POP32_VAL(esp); /* 0x470150E1: pop esi */
   4111     ebp = POP32_VAL(esp); /* 0x470150E2: pop ebp */
   4112     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4113     eax = 0; /* 0x470150E3: xor eax, eax */
   4114     _cf = 0;
   4115     _flag_k = FK_TEST;
   4116     ebx = POP32_VAL(esp); /* 0x470150E5: pop ebx */
   4117     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470150E6: ret 4 */
   4118 L_470150E9:
   4119     edx = MEM32(esp + 0x14); /* 0x470150E9: mov edx, dword ptr [esp + 0x14] */
   4120     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4121     ecx = ecx | 0xFFFFFFFFu; /* 0x470150ED: or ecx, 0xffffffff */
   4122     _cf = 0;
   4123     _flag_k = FK_TEST;
   4124     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4125     eax = 0; /* 0x470150F0: xor eax, eax */
   4126     _cf = 0;
   4127     _flag_k = FK_TEST;
   4128     edi = edx; /* 0x470150F2: mov edi, edx */
   4129     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470150F4: repne scasb al, byte ptr es:[edi] */
   4130     ecx = ~ecx; /* 0x470150F6: not ecx */
   4131     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4132     ecx = ecx - 1; /* 0x470150F8: dec ecx */
   4133     _flag_k = FK_DEC;
   4134     ebx = ecx; /* 0x470150F9: mov ebx, ecx */
   4135     ecx = MEM32(esi + 0x8); /* 0x470150FB: mov ecx, dword ptr [esi + 8] */
   4136     eax = MEM32(ecx + ebp * 4); /* 0x470150FE: mov eax, dword ptr [ecx + ebp*4] */
   4137     PUSH32(esp, ebx); /* 0x47015101: push ebx */
   4138     PUSH32(esp, edx); /* 0x47015102: push edx */
   4139     PUSH32(esp, eax); /* 0x47015103: push eax */
   4140     RECOMP_ICALL(MEM32(0x470AC2CC)); /* 0x47015104: call dword ptr [0x470ac2cc] */
   4141     RECOMP_FLAGS_IN();
   4142     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4143     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4144     esp = esp + 0xCu; /* 0x4701510A: add esp, 0xc */
   4145     _flag_k = FK_ADD;
   4146     /* test eax, eax */ /* 0x4701510D: test eax, eax */
   4147     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4148     _cf = 0;
   4149     _flag_k = FK_TEST;
   4150     if (TEST_NZ(_flag_a, _flag_b)) goto L_47015149; /* 0x4701510F: jne 0x47015149 */
   4151 L_47015111:
   4152     eax = MEM32(esi + 0x8); /* 0x47015111: mov eax, dword ptr [esi + 8] */
   4153     edx = MEM32(esi + 0x10); /* 0x47015114: mov edx, dword ptr [esi + 0x10] */
   4154     edx = MEM32(eax + edx * 4); /* 0x47015117: mov edx, dword ptr [eax + edx*4] */
   4155     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4156     ecx = ecx | 0xFFFFFFFFu; /* 0x4701511A: or ecx, 0xffffffff */
   4157     _cf = 0;
   4158     _flag_k = FK_TEST;
   4159     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4160     eax = 0; /* 0x4701511D: xor eax, eax */
   4161     _cf = 0;
   4162     _flag_k = FK_TEST;
   4163     edi = edx; /* 0x4701511F: mov edi, edx */
   4164     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47015121: repne scasb al, byte ptr es:[edi] */
   4165     ecx = ~ecx; /* 0x47015123: not ecx */
   4166     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4167     ecx = ecx - 1; /* 0x47015125: dec ecx */
   4168     _flag_k = FK_DEC;
   4169     /* cmp ecx, ebx */ /* 0x47015126: cmp ecx, ebx */
   4170     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4172     _flag_k = FK_CMP;
   4173     if (CMP_NE(_flag_a, _flag_b)) goto L_4701512E; /* 0x47015128: jne 0x4701512e */
   4174 L_4701512A:
   4175     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4176     ecx = 0; /* 0x4701512A: xor ecx, ecx */
   4177     _cf = 0;
   4178     _flag_k = FK_TEST;
   4179     goto L_47015156; /* 0x4701512C: jmp 0x47015156 */
   4180 L_4701512E:
   4181     eax = edx + ebx; /* 0x4701512E: lea eax, [edx + ebx] */
   4182     PUSH32(esp, 0x47104D64u); /* 0x47015131: push 0x47104d64 */
   4183     PUSH32(esp, eax); /* 0x47015136: push eax */
   4184     RECOMP_ICALL(MEM32(0x470AC384)); /* 0x47015137: call dword ptr [0x470ac384] */
   4185     RECOMP_FLAGS_IN();
   4186     ecx = eax; /* 0x4701513D: mov ecx, eax */
   4187     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4189     ecx = ecx + ebx; /* 0x4701513F: add ecx, ebx */
   4190     _flag_k = FK_ADD;
   4191     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4192     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4193     esp = esp + 8; /* 0x47015141: add esp, 8 */
   4194     _flag_k = FK_ADD;
   4195     /* cmp ecx, 0xFFFFFFFFu */ /* 0x47015144: cmp ecx, -1 */
   4196     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4198     _flag_k = FK_CMP;
   4199     if (CMP_NE(_flag_a, _flag_b)) goto L_47015152; /* 0x47015147: jne 0x47015152 */
   4200 L_47015149:
   4201     edi = POP32_VAL(esp); /* 0x47015149: pop edi */
   4202     esi = POP32_VAL(esp); /* 0x4701514A: pop esi */
   4203     ebp = POP32_VAL(esp); /* 0x4701514B: pop ebp */
   4204     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4205     eax = 0; /* 0x4701514C: xor eax, eax */
   4206     _cf = 0;
   4207     _flag_k = FK_TEST;
   4208     ebx = POP32_VAL(esp); /* 0x4701514E: pop ebx */
   4209     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701514F: ret 4 */
   4210 L_47015152:
   4211     /* test ecx, ecx */ /* 0x47015152: test ecx, ecx */
   4212     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4213     _cf = 0;
   4214     _flag_k = FK_TEST;
   4215     if (TEST_NZ(_flag_a, _flag_b)) goto L_4701519E; /* 0x47015154: jne 0x4701519e */
   4216 L_47015156:
   4217     eax = MEM32(esi + 0x10); /* 0x47015156: mov eax, dword ptr [esi + 0x10] */
   4218     edx = MEM32(esi + 0x4); /* 0x47015159: mov edx, dword ptr [esi + 4] */
   4219     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4221     edx = edx - eax; /* 0x4701515C: sub edx, eax */
   4222     _flag_k = FK_CMP;
   4223     /* cmp edx, 1 */ /* 0x4701515E: cmp edx, 1 */
   4224     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   4225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4226     _flag_k = FK_CMP;
   4227     if (CMP_L(_flag_a, _flag_b)) goto L_47015180; /* 0x47015161: jl 0x47015180 */
   4228 L_47015163:
   4229     edi = MEM32(esi + 0x8); /* 0x47015163: mov edi, dword ptr [esi + 8] */
   4230     eax = MEM32(edi + eax * 4); /* 0x47015166: mov eax, dword ptr [edi + eax*4] */
   4231     edx = MEM32(esi + 0x14); /* 0x47015169: mov edx, dword ptr [esi + 0x14] */
   4232     ebx = MEM32(esi + 0xC); /* 0x4701516C: mov ebx, dword ptr [esi + 0xc] */
   4233     MEM32(ebx + edx * 4) = eax; /* 0x4701516F: mov dword ptr [ebx + edx*4], eax */
   4234     edx = MEM32(esi + 0x10); /* 0x47015172: mov edx, dword ptr [esi + 0x10] */
   4235     eax = MEM32(esi + 0x14); /* 0x47015175: mov eax, dword ptr [esi + 0x14] */
   4236     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   4237     edx = edx + 1; /* 0x47015178: inc edx */
   4238     _flag_k = FK_INC;
   4239     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4240     eax = eax - 1; /* 0x47015179: dec eax */
   4241     _flag_k = FK_DEC;
   4242     MEM32(esi + 0x10) = edx; /* 0x4701517A: mov dword ptr [esi + 0x10], edx */
   4243     MEM32(esi + 0x14) = eax; /* 0x4701517D: mov dword ptr [esi + 0x14], eax */
   4244 L_47015180:
   4245     eax = MEM32(esi + 0x10); /* 0x47015180: mov eax, dword ptr [esi + 0x10] */
   4246     edx = MEM32(esi + 0x4); /* 0x47015183: mov edx, dword ptr [esi + 4] */
   4247     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4249     edx = edx - eax; /* 0x47015186: sub edx, eax */
   4250     _flag_k = FK_CMP;
   4251     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_47015195; /* 0x47015188: je 0x47015195 */
   4252 L_4701518A:
   4253     edx = MEM32(esi + 0x8); /* 0x4701518A: mov edx, dword ptr [esi + 8] */
   4254     eax = MEM32(edx + eax * 4); /* 0x4701518D: mov eax, dword ptr [edx + eax*4] */
   4255     /* cmp MEM8(eax), 0x2Du */ /* 0x47015190: cmp byte ptr [eax], 0x2d */
   4256     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x2Du) << 24;
   4257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4258     _flag_k = FK_NARROW(FK_CMP, 24);
   4259     if (CMP_NE(_flag_a, _flag_b)) goto L_4701519E; /* 0x47015193: jne 0x4701519e */
   4260 L_47015195:
   4261     edi = POP32_VAL(esp); /* 0x47015195: pop edi */
   4262     esi = POP32_VAL(esp); /* 0x47015196: pop esi */
   4263     ebp = POP32_VAL(esp); /* 0x47015197: pop ebp */
   4264     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4265     eax = 0; /* 0x47015198: xor eax, eax */
   4266     _cf = 0;
   4267     _flag_k = FK_TEST;
   4268     ebx = POP32_VAL(esp); /* 0x4701519A: pop ebx */
   4269     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701519B: ret 4 */
   4270 L_4701519E:
   4271     edx = MEM32(esi + 0x10); /* 0x4701519E: mov edx, dword ptr [esi + 0x10] */
   4272     eax = MEM32(esi + 0x8); /* 0x470151A1: mov eax, dword ptr [esi + 8] */
   4273     eax = MEM32(eax + edx * 4); /* 0x470151A4: mov eax, dword ptr [eax + edx*4] */
   4274     edi = POP32_VAL(esp); /* 0x470151A7: pop edi */
   4275     esi = POP32_VAL(esp); /* 0x470151A8: pop esi */
   4276     ebp = POP32_VAL(esp); /* 0x470151A9: pop ebp */
   4277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4278     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4279     eax = eax + ecx; /* 0x470151AA: add eax, ecx */
   4280     _flag_k = FK_ADD;
   4281     ebx = POP32_VAL(esp); /* 0x470151AC: pop ebx */
   4282     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470151AD: ret 4 */
   4283     RECOMP_REGS_OUT();
   4284 }
   4285 
   4286 void sub_470151B0(void) {
   4287     int _fpu_cmp = 0;
   4288     uint32_t _cf = 0;
   4289     int _df = 1;
   4290     uint32_t _flag_k = FK_NONE;
   4291     uint32_t _flag_a = 0, _flag_b = 0;
   4292     uint32_t _itail_tgt = 0;
   4293     RECOMP_REGS_LOCALS
   4294     RECOMP_ENTER(0x470151B0u);
   4295 
   4296 L_470151B0:
   4297     PUSH32(esp, ebx); /* 0x470151B0: push ebx */
   4298     PUSH32(esp, ebp); /* 0x470151B1: push ebp */
   4299     PUSH32(esp, esi); /* 0x470151B2: push esi */
   4300     esi = ecx; /* 0x470151B3: mov esi, ecx */
   4301     ebp = MEM32(esi + 0x10); /* 0x470151B5: mov ebp, dword ptr [esi + 0x10] */
   4302     eax = MEM32(esi + 0x4); /* 0x470151B8: mov eax, dword ptr [esi + 4] */
   4303     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   4304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4305     eax = eax - ebp; /* 0x470151BB: sub eax, ebp */
   4306     _flag_k = FK_CMP;
   4307     PUSH32(esp, edi); /* 0x470151BD: push edi */
   4308     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_47015223; /* 0x470151BE: je 0x47015223 */
   4309 L_470151C0:
   4310     edx = MEM32(esp + 0x14); /* 0x470151C0: mov edx, dword ptr [esp + 0x14] */
   4311     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4312     ecx = ecx | 0xFFFFFFFFu; /* 0x470151C4: or ecx, 0xffffffff */
   4313     _cf = 0;
   4314     _flag_k = FK_TEST;
   4315     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4316     eax = 0; /* 0x470151C7: xor eax, eax */
   4317     _cf = 0;
   4318     _flag_k = FK_TEST;
   4319     edi = edx; /* 0x470151C9: mov edi, edx */
   4320     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470151CB: repne scasb al, byte ptr es:[edi] */
   4321     ecx = ~ecx; /* 0x470151CD: not ecx */
   4322     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4323     ecx = ecx - 1; /* 0x470151CF: dec ecx */
   4324     _flag_k = FK_DEC;
   4325     ebx = ecx; /* 0x470151D0: mov ebx, ecx */
   4326     ecx = MEM32(esi + 0x8); /* 0x470151D2: mov ecx, dword ptr [esi + 8] */
   4327     eax = MEM32(ecx + ebp * 4); /* 0x470151D5: mov eax, dword ptr [ecx + ebp*4] */
   4328     PUSH32(esp, ebx); /* 0x470151D8: push ebx */
   4329     PUSH32(esp, edx); /* 0x470151D9: push edx */
   4330     PUSH32(esp, eax); /* 0x470151DA: push eax */
   4331     RECOMP_ICALL(MEM32(0x470AC2CC)); /* 0x470151DB: call dword ptr [0x470ac2cc] */
   4332     RECOMP_FLAGS_IN();
   4333     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4335     esp = esp + 0xCu; /* 0x470151E1: add esp, 0xc */
   4336     _flag_k = FK_ADD;
   4337     /* test eax, eax */ /* 0x470151E4: test eax, eax */
   4338     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4339     _cf = 0;
   4340     _flag_k = FK_TEST;
   4341     if (TEST_NZ(_flag_a, _flag_b)) goto L_47015223; /* 0x470151E6: jne 0x47015223 */
   4342 L_470151E8:
   4343     eax = MEM32(esi + 0x8); /* 0x470151E8: mov eax, dword ptr [esi + 8] */
   4344     edx = MEM32(esi + 0x10); /* 0x470151EB: mov edx, dword ptr [esi + 0x10] */
   4345     edx = MEM32(eax + edx * 4); /* 0x470151EE: mov edx, dword ptr [eax + edx*4] */
   4346     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4347     ecx = ecx | 0xFFFFFFFFu; /* 0x470151F1: or ecx, 0xffffffff */
   4348     _cf = 0;
   4349     _flag_k = FK_TEST;
   4350     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4351     eax = 0; /* 0x470151F4: xor eax, eax */
   4352     _cf = 0;
   4353     _flag_k = FK_TEST;
   4354     edi = edx; /* 0x470151F6: mov edi, edx */
   4355     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470151F8: repne scasb al, byte ptr es:[edi] */
   4356     ecx = ~ecx; /* 0x470151FA: not ecx */
   4357     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4358     ecx = ecx - 1; /* 0x470151FC: dec ecx */
   4359     _flag_k = FK_DEC;
   4360     /* cmp ecx, ebx */ /* 0x470151FD: cmp ecx, ebx */
   4361     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4363     _flag_k = FK_CMP;
   4364     if (CMP_NE(_flag_a, _flag_b)) goto L_47015208; /* 0x470151FF: jne 0x47015208 */
   4365 L_47015201:
   4366     edi = POP32_VAL(esp); /* 0x47015201: pop edi */
   4367     esi = POP32_VAL(esp); /* 0x47015202: pop esi */
   4368     ebp = POP32_VAL(esp); /* 0x47015203: pop ebp */
   4369     ebx = POP32_VAL(esp); /* 0x47015204: pop ebx */
   4370     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015205: ret 4 */
   4371 L_47015208:
   4372     eax = edx + ebx; /* 0x47015208: lea eax, [edx + ebx] */
   4373     PUSH32(esp, 0x47104D64u); /* 0x4701520B: push 0x47104d64 */
   4374     PUSH32(esp, eax); /* 0x47015210: push eax */
   4375     RECOMP_ICALL(MEM32(0x470AC384)); /* 0x47015211: call dword ptr [0x470ac384] */
   4376     RECOMP_FLAGS_IN();
   4377     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4378     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4379     esp = esp + 8; /* 0x47015217: add esp, 8 */
   4380     _flag_k = FK_ADD;
   4381     edi = POP32_VAL(esp); /* 0x4701521A: pop edi */
   4382     esi = POP32_VAL(esp); /* 0x4701521B: pop esi */
   4383     ebp = POP32_VAL(esp); /* 0x4701521C: pop ebp */
   4384     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4385     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4386     eax = eax + ebx; /* 0x4701521D: add eax, ebx */
   4387     _flag_k = FK_ADD;
   4388     ebx = POP32_VAL(esp); /* 0x4701521F: pop ebx */
   4389     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015220: ret 4 */
   4390 L_47015223:
   4391     edi = POP32_VAL(esp); /* 0x47015223: pop edi */
   4392     esi = POP32_VAL(esp); /* 0x47015224: pop esi */
   4393     ebp = POP32_VAL(esp); /* 0x47015225: pop ebp */
   4394     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4395     eax = eax | 0xFFFFFFFFu; /* 0x47015226: or eax, 0xffffffff */
   4396     _cf = 0;
   4397     _flag_k = FK_TEST;
   4398     ebx = POP32_VAL(esp); /* 0x47015229: pop ebx */
   4399     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701522A: ret 4 */
   4400     RECOMP_REGS_OUT();
   4401 }
   4402 
   4403 void sub_47015230(void) {
   4404     int _fpu_cmp = 0;
   4405     uint32_t _cf = 0;
   4406     int _df = 1;
   4407     uint32_t _flag_k = FK_NONE;
   4408     uint32_t _flag_a = 0, _flag_b = 0;
   4409     uint32_t _itail_tgt = 0;
   4410     RECOMP_REGS_LOCALS
   4411     RECOMP_ENTER(0x47015230u);
   4412 
   4413 L_47015230:
   4414     edx = MEM32(esp + 0x4); /* 0x47015230: mov edx, dword ptr [esp + 4] */
   4415     PUSH32(esp, ebx); /* 0x47015234: push ebx */
   4416     ebx = MEM32(ecx + 0x10); /* 0x47015235: mov ebx, dword ptr [ecx + 0x10] */
   4417     PUSH32(esp, esi); /* 0x47015238: push esi */
   4418     esi = MEM32(ecx + 0x4); /* 0x47015239: mov esi, dword ptr [ecx + 4] */
   4419     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4421     esi = esi - ebx; /* 0x4701523C: sub esi, ebx */
   4422     _flag_k = FK_CMP;
   4423     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4424     eax = 0; /* 0x4701523E: xor eax, eax */
   4425     _cf = 0;
   4426     _flag_k = FK_TEST;
   4427     /* cmp esi, edx */ /* 0x47015240: cmp esi, edx */
   4428     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4430     _flag_k = FK_CMP;
   4431     if (CMP_L(_flag_a, _flag_b)) goto L_4701527B; /* 0x47015242: jl 0x4701527b */
   4432 L_47015244:
   4433     eax = MEM32(ecx + 0x14); /* 0x47015244: mov eax, dword ptr [ecx + 0x14] */
   4434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4436     eax = eax - edx; /* 0x47015247: sub eax, edx */
   4437     _flag_k = FK_CMP;
   4438     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4439     eax = eax + 1; /* 0x47015249: inc eax */
   4440     _flag_k = FK_INC;
   4441     /* test edx, edx */ /* 0x4701524A: test edx, edx */
   4442     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4443     _cf = 0;
   4444     _flag_k = FK_TEST;
   4445     if (TEST_LE(_flag_a, _flag_b)) goto L_47015273; /* 0x4701524C: jle 0x47015273 */
   4446 L_4701524E:
   4447     PUSH32(esp, ebp); /* 0x4701524E: push ebp */
   4448     PUSH32(esp, edi); /* 0x4701524F: push edi */
   4449     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x47015250: shl eax, 2 */
   4450     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4451     eax = eax << 2u; /* 0x47015250: shl eax, 2 */
   4452     esi = edx; /* 0x47015253: mov esi, edx */
   4453 L_47015255:
   4454     edi = MEM32(ecx + 0x10); /* 0x47015255: mov edi, dword ptr [ecx + 0x10] */
   4455     ebx = MEM32(ecx + 0x8); /* 0x47015258: mov ebx, dword ptr [ecx + 8] */
   4456     edi = MEM32(ebx + edi * 4); /* 0x4701525B: mov edi, dword ptr [ebx + edi*4] */
   4457     ebp = MEM32(ecx + 0xC); /* 0x4701525E: mov ebp, dword ptr [ecx + 0xc] */
   4458     MEM32(eax + ebp) = edi; /* 0x47015261: mov dword ptr [eax + ebp], edi */
   4459     ebx = MEM32(ecx + 0x10); /* 0x47015264: mov ebx, dword ptr [ecx + 0x10] */
   4460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4461     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4462     eax = eax + 4; /* 0x47015267: add eax, 4 */
   4463     _flag_k = FK_ADD;
   4464     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   4465     ebx = ebx + 1; /* 0x4701526A: inc ebx */
   4466     _flag_k = FK_INC;
   4467     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4468     esi = esi - 1; /* 0x4701526B: dec esi */
   4469     _flag_k = FK_DEC;
   4470     MEM32(ecx + 0x10) = ebx; /* 0x4701526C: mov dword ptr [ecx + 0x10], ebx */
   4471     RECOMP_BACKEDGE();
   4472     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_47015255; /* 0x4701526F: jne 0x47015255 */
   4473 L_47015271:
   4474     edi = POP32_VAL(esp); /* 0x47015271: pop edi */
   4475     ebp = POP32_VAL(esp); /* 0x47015272: pop ebp */
   4476 L_47015273:
   4477     _flag_a = (uint32_t)(MEM32(ecx + 0x14)); _flag_b = (uint32_t)(edx);
   4478     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4479     MEM32(ecx + 0x14) = MEM32(ecx + 0x14) - edx; /* 0x47015273: sub dword ptr [ecx + 0x14], edx */
   4480     _flag_k = FK_CMP;
   4481     eax = 1; /* 0x47015276: mov eax, 1 */
   4482 L_4701527B:
   4483     esi = POP32_VAL(esp); /* 0x4701527B: pop esi */
   4484     ebx = POP32_VAL(esp); /* 0x4701527C: pop ebx */
   4485     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701527D: ret 4 */
   4486     RECOMP_REGS_OUT();
   4487 }
   4488 
   4489 void sub_47015280(void) {
   4490     int _fpu_cmp = 0;
   4491     uint32_t _cf = 0;
   4492     int _df = 1;
   4493     uint32_t _flag_k = FK_NONE;
   4494     uint32_t _flag_a = 0, _flag_b = 0;
   4495     uint32_t _itail_tgt = 0;
   4496     RECOMP_REGS_LOCALS
   4497     RECOMP_ENTER(0x47015280u);
   4498 
   4499 L_47015280:
   4500     edx = MEM32(esp + 0x4); /* 0x47015280: mov edx, dword ptr [esp + 4] */
   4501     PUSH32(esp, ebx); /* 0x47015284: push ebx */
   4502     ebx = MEM32(ecx + 0x10); /* 0x47015285: mov ebx, dword ptr [ecx + 0x10] */
   4503     PUSH32(esp, esi); /* 0x47015288: push esi */
   4504     esi = MEM32(ecx + 0x4); /* 0x47015289: mov esi, dword ptr [ecx + 4] */
   4505     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4507     esi = esi - ebx; /* 0x4701528C: sub esi, ebx */
   4508     _flag_k = FK_CMP;
   4509     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4510     eax = 0; /* 0x4701528E: xor eax, eax */
   4511     _cf = 0;
   4512     _flag_k = FK_TEST;
   4513     /* cmp esi, edx */ /* 0x47015290: cmp esi, edx */
   4514     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4515     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4516     _flag_k = FK_CMP;
   4517     if (CMP_L(_flag_a, _flag_b)) goto L_470152CF; /* 0x47015292: jl 0x470152cf */
   4518 L_47015294:
   4519     /* test edx, edx */ /* 0x47015294: test edx, edx */
   4520     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4521     _cf = 0;
   4522     _flag_k = FK_TEST;
   4523     if (TEST_LE(_flag_a, _flag_b)) goto L_470152C2; /* 0x47015296: jle 0x470152c2 */
   4524 L_47015298:
   4525     PUSH32(esp, ebp); /* 0x47015298: push ebp */
   4526     PUSH32(esp, edi); /* 0x47015299: push edi */
   4527     eax = edx; /* 0x4701529A: mov eax, edx */
   4528 L_4701529C:
   4529     esi = MEM32(ecx + 0x10); /* 0x4701529C: mov esi, dword ptr [ecx + 0x10] */
   4530     edi = MEM32(ecx + 0x8); /* 0x4701529F: mov edi, dword ptr [ecx + 8] */
   4531     esi = MEM32(edi + esi * 4); /* 0x470152A2: mov esi, dword ptr [edi + esi*4] */
   4532     ebx = MEM32(ecx + 0x18); /* 0x470152A5: mov ebx, dword ptr [ecx + 0x18] */
   4533     ebp = MEM32(ecx + 0xC); /* 0x470152A8: mov ebp, dword ptr [ecx + 0xc] */
   4534     MEM32(ebp + ebx * 4) = esi; /* 0x470152AB: mov dword ptr [ebp + ebx*4], esi */
   4535     ebx = MEM32(ecx + 0x10); /* 0x470152AF: mov ebx, dword ptr [ecx + 0x10] */
   4536     edi = MEM32(ecx + 0x18); /* 0x470152B2: mov edi, dword ptr [ecx + 0x18] */
   4537     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   4538     ebx = ebx + 1; /* 0x470152B5: inc ebx */
   4539     _flag_k = FK_INC;
   4540     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   4541     edi = edi + 1; /* 0x470152B6: inc edi */
   4542     _flag_k = FK_INC;
   4543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4544     eax = eax - 1; /* 0x470152B7: dec eax */
   4545     _flag_k = FK_DEC;
   4546     MEM32(ecx + 0x10) = ebx; /* 0x470152B8: mov dword ptr [ecx + 0x10], ebx */
   4547     MEM32(ecx + 0x18) = edi; /* 0x470152BB: mov dword ptr [ecx + 0x18], edi */
   4548     RECOMP_BACKEDGE();
   4549     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4701529C; /* 0x470152BE: jne 0x4701529c */
   4550 L_470152C0:
   4551     edi = POP32_VAL(esp); /* 0x470152C0: pop edi */
   4552     ebp = POP32_VAL(esp); /* 0x470152C1: pop ebp */
   4553 L_470152C2:
   4554     ecx = MEM32(ecx); /* 0x470152C2: mov ecx, dword ptr [ecx] */
   4555     esi = MEM32(ecx); /* 0x470152C4: mov esi, dword ptr [ecx] */
   4556     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4558     esi = esi + edx; /* 0x470152C6: add esi, edx */
   4559     _flag_k = FK_ADD;
   4560     eax = 1; /* 0x470152C8: mov eax, 1 */
   4561     MEM32(ecx) = esi; /* 0x470152CD: mov dword ptr [ecx], esi */
   4562 L_470152CF:
   4563     esi = POP32_VAL(esp); /* 0x470152CF: pop esi */
   4564     ebx = POP32_VAL(esp); /* 0x470152D0: pop ebx */
   4565     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470152D1: ret 4 */
   4566     RECOMP_REGS_OUT();
   4567 }
   4568 
   4569 void sub_470152E0(void) {
   4570     int _fpu_cmp = 0;
   4571     uint32_t _cf = 0;
   4572     int _df = 1;
   4573     uint32_t _flag_k = FK_NONE;
   4574     uint32_t _flag_a = 0, _flag_b = 0;
   4575     uint32_t _itail_tgt = 0;
   4576     RECOMP_REGS_LOCALS
   4577     RECOMP_ENTER(0x470152E0u);
   4578 
   4579 L_470152E0:
   4580     eax = MEM32(ecx + 0x4); /* 0x470152E0: mov eax, dword ptr [ecx + 4] */
   4581     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x10));
   4582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4583     eax = eax - MEM32(ecx + 0x10); /* 0x470152E3: sub eax, dword ptr [ecx + 0x10] */
   4584     _flag_k = FK_CMP;
   4585     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470152E6: ret  */
   4586     RECOMP_REGS_OUT();
   4587 }
   4588 
   4589 void sub_470152F0(void) {
   4590     int _fpu_cmp = 0;
   4591     uint32_t _cf = 0;
   4592     int _df = 1;
   4593     uint32_t _flag_k = FK_NONE;
   4594     uint32_t _flag_a = 0, _flag_b = 0;
   4595     uint32_t _itail_tgt = 0;
   4596     RECOMP_REGS_LOCALS
   4597     RECOMP_ENTER(0x470152F0u);
   4598 
   4599 L_470152F0:
   4600     eax = MEM32(ecx + 0x10); /* 0x470152F0: mov eax, dword ptr [ecx + 0x10] */
   4601     edx = MEM32(ecx + 0x4); /* 0x470152F3: mov edx, dword ptr [ecx + 4] */
   4602     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4604     edx = edx - eax; /* 0x470152F6: sub edx, eax */
   4605     _flag_k = FK_CMP;
   4606     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4701530B; /* 0x470152F8: je 0x4701530b */
   4607 L_470152FA:
   4608     ecx = MEM32(ecx + 0x8); /* 0x470152FA: mov ecx, dword ptr [ecx + 8] */
   4609     edx = MEM32(ecx + eax * 4); /* 0x470152FD: mov edx, dword ptr [ecx + eax*4] */
   4610     /* cmp MEM8(edx), 0x2Du */ /* 0x47015300: cmp byte ptr [edx], 0x2d */
   4611     _flag_a = (uint32_t)(MEM8(edx)) << 24; _flag_b = (uint32_t)(0x2Du) << 24;
   4612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4613     _flag_k = FK_NARROW(FK_CMP, 24);
   4614     if (CMP_NE(_flag_a, _flag_b)) goto L_4701530B; /* 0x47015303: jne 0x4701530b */
   4615 L_47015305:
   4616     eax = 1; /* 0x47015305: mov eax, 1 */
   4617     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701530A: ret  */
   4618 L_4701530B:
   4619     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4620     eax = 0; /* 0x4701530B: xor eax, eax */
   4621     _cf = 0;
   4622     _flag_k = FK_TEST;
   4623     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701530D: ret  */
   4624     RECOMP_REGS_OUT();
   4625 }
   4626 
   4627 void sub_47015310(void) {
   4628     int _fpu_cmp = 0;
   4629     uint32_t _cf = 0;
   4630     int _df = 1;
   4631     uint32_t _flag_k = FK_NONE;
   4632     uint32_t _flag_a = 0, _flag_b = 0;
   4633     uint32_t _itail_tgt = 0;
   4634     RECOMP_REGS_LOCALS
   4635     RECOMP_ENTER(0x47015310u);
   4636 
   4637 L_47015310:
   4638     eax = MEM32(ecx + 0x10); /* 0x47015310: mov eax, dword ptr [ecx + 0x10] */
   4639     edx = MEM32(ecx + 0x4); /* 0x47015313: mov edx, dword ptr [ecx + 4] */
   4640     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4642     edx = edx - eax; /* 0x47015316: sub edx, eax */
   4643     _flag_k = FK_CMP;
   4644     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4701532B; /* 0x47015318: je 0x4701532b */
   4645 L_4701531A:
   4646     ecx = MEM32(ecx + 0x8); /* 0x4701531A: mov ecx, dword ptr [ecx + 8] */
   4647     edx = MEM32(ecx + eax * 4); /* 0x4701531D: mov edx, dword ptr [ecx + eax*4] */
   4648     /* cmp MEM8(edx), 0x2Du */ /* 0x47015320: cmp byte ptr [edx], 0x2d */
   4649     _flag_a = (uint32_t)(MEM8(edx)) << 24; _flag_b = (uint32_t)(0x2Du) << 24;
   4650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4651     _flag_k = FK_NARROW(FK_CMP, 24);
   4652     if (CMP_EQ(_flag_a, _flag_b)) goto L_4701532B; /* 0x47015323: je 0x4701532b */
   4653 L_47015325:
   4654     eax = 1; /* 0x47015325: mov eax, 1 */
   4655     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701532A: ret  */
   4656 L_4701532B:
   4657     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4658     eax = 0; /* 0x4701532B: xor eax, eax */
   4659     _cf = 0;
   4660     _flag_k = FK_TEST;
   4661     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701532D: ret  */
   4662     RECOMP_REGS_OUT();
   4663 }
   4664 
   4665 void sub_47015330(void) {
   4666     int _fpu_cmp = 0;
   4667     uint32_t _cf = 0;
   4668     int _df = 1;
   4669     uint32_t _flag_k = FK_NONE;
   4670     uint32_t _flag_a = 0, _flag_b = 0;
   4671     uint32_t _itail_tgt = 0;
   4672     RECOMP_REGS_LOCALS
   4673     RECOMP_ENTER(0x47015330u);
   4674 
   4675 L_47015330:
   4676     eax = MEM32(ecx + 0x18); /* 0x47015330: mov eax, dword ptr [ecx + 0x18] */
   4677     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47015333: ret  */
   4678     RECOMP_REGS_OUT();
   4679 }
   4680 
   4681 void sub_47015340(void) {
   4682     int _fpu_cmp = 0;
   4683     uint32_t _cf = 0;
   4684     int _df = 1;
   4685     uint32_t _flag_k = FK_NONE;
   4686     uint32_t _flag_a = 0, _flag_b = 0;
   4687     uint32_t _itail_tgt = 0;
   4688     RECOMP_REGS_LOCALS
   4689     RECOMP_ENTER(0x47015340u);
   4690 
   4691 L_47015340:
   4692     ecx = 0x4710DF29u; /* 0x47015340: mov ecx, 0x4710df29 */
   4693     RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47015345: call dword ptr [0x470ac1c8] */
   4694     RECOMP_FLAGS_IN();
   4695     PUSH32(esp, 0x47015360u); /* 0x4701534B: push 0x47015360 */
   4696     RECOMP_ICALL(0x470A32D9u); /* 0x47015350: call 0x470a32d9 */ /* not lifted */
   4697     RECOMP_FLAGS_IN();
   4698     ecx = POP32_VAL(esp); /* 0x47015355: pop ecx */
   4699     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47015356: ret  */
   4700     RECOMP_REGS_OUT();
   4701 }
   4702 
   4703 void sub_47015360(void) {
   4704     int _fpu_cmp = 0;
   4705     uint32_t _cf = 0;
   4706     int _df = 1;
   4707     uint32_t _flag_k = FK_NONE;
   4708     uint32_t _flag_a = 0, _flag_b = 0;
   4709     uint32_t _itail_tgt = 0;
   4710     RECOMP_REGS_LOCALS
   4711     RECOMP_ENTER(0x47015360u);
   4712 
   4713 L_47015360:
   4714     ecx = 0x4710DF29u; /* 0x47015360: mov ecx, 0x4710df29 */
   4715 L_47015365:
   4716     { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; }
   4717     { RECOMP_REGS_OUT(); return; } /* end of function */
   4718   _ljump:
   4719     switch (_itail_tgt) {
   4720       case 0x47015360u: goto L_47015360;
   4721       case 0x47015365u: goto L_47015365;
   4722       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4723     }
   4724     RECOMP_REGS_OUT();
   4725 }
   4726 
   4727 void sub_47015370(void) {
   4728     int _fpu_cmp = 0;
   4729     uint32_t _cf = 0;
   4730     int _df = 1;
   4731     uint32_t _flag_k = FK_NONE;
   4732     uint32_t _flag_a = 0, _flag_b = 0;
   4733     uint32_t _itail_tgt = 0;
   4734     RECOMP_REGS_LOCALS
   4735     RECOMP_ENTER(0x47015370u);
   4736 
   4737 L_47015370:
   4738     ecx = 0x4710DF28u; /* 0x47015370: mov ecx, 0x4710df28 */
   4739     RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47015375: call dword ptr [0x470ac1c4] */
   4740     RECOMP_FLAGS_IN();
   4741     PUSH32(esp, 0x47015390u); /* 0x4701537B: push 0x47015390 */
   4742     RECOMP_ICALL(0x470A32D9u); /* 0x47015380: call 0x470a32d9 */ /* not lifted */
   4743     RECOMP_FLAGS_IN();
   4744     ecx = POP32_VAL(esp); /* 0x47015385: pop ecx */
   4745     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47015386: ret  */
   4746     RECOMP_REGS_OUT();
   4747 }
   4748 
   4749 void sub_47015390(void) {
   4750     int _fpu_cmp = 0;
   4751     uint32_t _cf = 0;
   4752     int _df = 1;
   4753     uint32_t _flag_k = FK_NONE;
   4754     uint32_t _flag_a = 0, _flag_b = 0;
   4755     uint32_t _itail_tgt = 0;
   4756     RECOMP_REGS_LOCALS
   4757     RECOMP_ENTER(0x47015390u);
   4758 
   4759 L_47015390:
   4760     ecx = 0x4710DF28u; /* 0x47015390: mov ecx, 0x4710df28 */
   4761 L_47015395:
   4762     { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; }
   4763     { RECOMP_REGS_OUT(); return; } /* end of function */
   4764   _ljump:
   4765     switch (_itail_tgt) {
   4766       case 0x47015390u: goto L_47015390;
   4767       case 0x47015395u: goto L_47015395;
   4768       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4769     }
   4770     RECOMP_REGS_OUT();
   4771 }
   4772 
   4773 void sub_470153A0(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(0x470153A0u);
   4782 
   4783 L_470153A0:
   4784     MEM32(0x4710DF20) = 0x47104A3Cu; /* 0x470153A0: mov dword ptr [0x4710df20], 0x47104a3c */
   4785     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470153AA: ret  */
   4786     RECOMP_REGS_OUT();
   4787 }
   4788 
   4789 void sub_470153B0(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(0x470153B0u);
   4798 
   4799 L_470153B0:
   4800     MEM32(0x4710DF30) = 0x47104A00u; /* 0x470153B0: mov dword ptr [0x4710df30], 0x47104a00 */
   4801     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470153BA: ret  */
   4802     RECOMP_REGS_OUT();
   4803 }
   4804 
   4805 void sub_470153C0(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(0x470153C0u);
   4814 
   4815 L_470153C0:
   4816     MEM32(0x4710DF2C) = 0x47104A70u; /* 0x470153C0: mov dword ptr [0x4710df2c], 0x47104a70 */
   4817     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470153CA: ret  */
   4818     RECOMP_REGS_OUT();
   4819 }
   4820 
   4821 void sub_470153D0(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(0x470153D0u);
   4830 
   4831 L_470153D0:
   4832     MEM32(0x4710DF38) = 0x47104B6Cu; /* 0x470153D0: mov dword ptr [0x4710df38], 0x47104b6c */
   4833     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470153DA: ret  */
   4834     RECOMP_REGS_OUT();
   4835 }
   4836 
   4837 void sub_470153E0(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(0x470153E0u);
   4846 
   4847 L_470153E0:
   4848     MEM32(0x4710DF24) = 0x47104BA0u; /* 0x470153E0: mov dword ptr [0x4710df24], 0x47104ba0 */
   4849     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470153EA: ret  */
   4850     RECOMP_REGS_OUT();
   4851 }