aorecomp

Anarchy Online classic in the browser

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


client/game/qqr.dll/lifted-0007.c (273421B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 #include <math.h>
      4 #include <stdio.h>
      5 #include <stdlib.h>
      6 #include <string.h>
      7 
      8 void sub_42015CB0(void) {
      9     int _fpu_cmp = 0;
     10     uint32_t _cf = 0;
     11     int _df = 1;
     12     uint32_t _flag_k = FK_NONE;
     13     uint32_t _flag_a = 0, _flag_b = 0;
     14     uint32_t _itail_tgt = 0;
     15     RECOMP_REGS_LOCALS
     16     RECOMP_ENTER(0x42015CB0u);
     17 
     18 L_42015CB0:
     19     PUSH32(esp, ebp); /* 0x42015CB0: push ebp */
     20     ebp = esp; /* 0x42015CB1: mov ebp, esp */
     21     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
     22     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     23     esp = esp - 0xCu; /* 0x42015CB3: sub esp, 0xc */
     24     _flag_k = FK_CMP;
     25     PUSH32(esp, ebx); /* 0x42015CB6: push ebx */
     26     ebx = MEM32(ebp + 0x8); /* 0x42015CB7: mov ebx, dword ptr [ebp + 8] */
     27     PUSH32(esp, esi); /* 0x42015CBA: push esi */
     28     esi = MEM32(ebp + 0x10); /* 0x42015CBB: mov esi, dword ptr [ebp + 0x10] */
     29     PUSH32(esp, edi); /* 0x42015CBE: push edi */
     30     edi = ecx; /* 0x42015CBF: mov edi, ecx */
     31     eax = ebx; /* 0x42015CC1: mov eax, ebx */
     32     edx = MEM32(eax); /* 0x42015CC3: mov edx, dword ptr [eax] */
     33     ecx = esi; /* 0x42015CC5: mov ecx, esi */
     34     MEM32(ecx) = edx; /* 0x42015CC7: mov dword ptr [ecx], edx */
     35     edx = MEM32(eax + 0x4); /* 0x42015CC9: mov edx, dword ptr [eax + 4] */
     36     MEM32(ecx + 0x4) = edx; /* 0x42015CCC: mov dword ptr [ecx + 4], edx */
     37     eax = MEM32(eax + 0x8); /* 0x42015CCF: mov eax, dword ptr [eax + 8] */
     38     MEM32(ecx + 0x8) = eax; /* 0x42015CD2: mov dword ptr [ecx + 8], eax */
     39     PUSH32(esp, esi); /* 0x42015CD5: push esi */
     40     ecx = edi; /* 0x42015CD6: mov ecx, edi */
     41     RECOMP_ICALL(0x42011880u); /* 0x42015CD8: call 0x42011880 */ /* not lifted */
     42     RECOMP_FLAGS_IN();
     43     fp_push(*(float*)&MEM32(esi)); /* 0x42015CDD: fld dword ptr [esi] */
     44     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42015CDF: fcomp qword ptr [0x420180d8] */
     45     fp_pop();
     46     ecx = esi; /* 0x42015CE5: mov ecx, esi */
     47     edx = MEM32(ecx); /* 0x42015CE7: mov edx, dword ptr [ecx] */
     48     eax = MEM32(ecx + 0x4); /* 0x42015CE9: mov eax, dword ptr [ecx + 4] */
     49     ecx = MEM32(ecx + 0x8); /* 0x42015CEC: mov ecx, dword ptr [ecx + 8] */
     50     MEM32(ebp + (-0x8)) = eax; /* 0x42015CEF: mov dword ptr [ebp - 8], eax */
     51     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015CF2: fnstsw ax */
     52     MEM32(ebp + (-0xC)) = edx; /* 0x42015CF4: mov dword ptr [ebp - 0xc], edx */
     53     /* test HI8(eax), 0x41u */ /* 0x42015CF7: test ah, 0x41 */
     54     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
     55     _cf = 0;
     56     _flag_k = FK_NARROW(FK_TEST, 24);
     57     MEM32(ebp + (-0x4)) = ecx; /* 0x42015CFA: mov dword ptr [ebp - 4], ecx */
     58     if (TEST_NZ(_flag_a, _flag_b)) goto L_42015D94; /* 0x42015CFD: jne 0x42015d94 */
     59 L_42015D03:
     60     MEM32(esi) = 0; /* 0x42015D03: mov dword ptr [esi], 0 */
     61     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x42015D09: fld dword ptr [esi + 8] */
     62     fp_push(_st[0]); /* 0x42015D0C: fld st(0) */
     63     { double _v = fp_pop(); _st[0] *= _v; } /* 0x42015D0E: fmulp st(1) */
     64     _st[0] = sqrt(_st[0]); /* 0x42015D10: fsqrt  */
     65     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42015D12: fcom qword ptr [0x420180d8] */
     66     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015D18: fnstsw ax */
     67     /* test HI8(eax), 0x40u */ /* 0x42015D1A: test ah, 0x40 */
     68     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
     69     _cf = 0;
     70     _flag_k = FK_NARROW(FK_TEST, 24);
     71     if (TEST_Z(_flag_a, _flag_b)) goto L_42015D5A; /* 0x42015D1D: je 0x42015d5a */
     72 L_42015D1F:
     73     eax = MEM32(ebx); /* 0x42015D1F: mov eax, dword ptr [ebx] */
     74     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42015D21: fstp st(0) */
     75     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x42015D23: fld dword ptr [ebp + 0xc] */
     76     edx = esi; /* 0x42015D26: mov edx, esi */
     77     MEM32(edx) = eax; /* 0x42015D28: mov dword ptr [edx], eax */
     78     ecx = MEM32(ebx + 0x4); /* 0x42015D2A: mov ecx, dword ptr [ebx + 4] */
     79     MEM32(edx + 0x4) = ecx; /* 0x42015D2D: mov dword ptr [edx + 4], ecx */
     80     eax = MEM32(ebx + 0x8); /* 0x42015D30: mov eax, dword ptr [ebx + 8] */
     81     MEM32(edx + 0x8) = eax; /* 0x42015D33: mov dword ptr [edx + 8], eax */
     82     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x42015D36: fadd dword ptr [esi + 4] */
     83     ecx = MEM32(esi); /* 0x42015D39: mov ecx, dword ptr [esi] */
     84     edx = MEM32(esi + 0x8); /* 0x42015D3B: mov edx, dword ptr [esi + 8] */
     85     PUSH32(esp, 0); /* 0x42015D3E: push 0 */
     86     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x42015D40: fstp dword ptr [esi + 4] */
     87     PUSH32(esp, esi); /* 0x42015D43: push esi */
     88     MEM32(esi) = ecx; /* 0x42015D44: mov dword ptr [esi], ecx */
     89     PUSH32(esp, esi); /* 0x42015D46: push esi */
     90     ecx = edi; /* 0x42015D47: mov ecx, edi */
     91     MEM32(esi + 0x8) = edx; /* 0x42015D49: mov dword ptr [esi + 8], edx */
     92     RECOMP_ICALL(0x42015E90u); /* 0x42015D4C: call 0x42015e90 */ /* not lifted */
     93     RECOMP_FLAGS_IN();
     94     edi = POP32_VAL(esp); /* 0x42015D51: pop edi */
     95     esi = POP32_VAL(esp); /* 0x42015D52: pop esi */
     96     ebx = POP32_VAL(esp); /* 0x42015D53: pop ebx */
     97     esp = ebp; /* 0x42015D54: mov esp, ebp */
     98     ebp = POP32_VAL(esp); /* 0x42015D56: pop ebp */
     99     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42015D57: ret 0xc */
    100 L_42015D5A:
    101     _st[0] = (double)*(float*)ADDR(ebp + 0xC) / _st[0]; /* 0x42015D5A: fdivr dword ptr [ebp + 0xc] */
    102     eax = MEM32(ebp + (-0xC)); /* 0x42015D5D: mov eax, dword ptr [ebp - 0xc] */
    103     PUSH32(esp, esi); /* 0x42015D60: push esi */
    104     ecx = edi; /* 0x42015D61: mov ecx, edi */
    105     MEM32(esi) = eax; /* 0x42015D63: mov dword ptr [esi], eax */
    106     _st[0] = -_st[0]; /* 0x42015D65: fchs  */
    107     fp_push(_st[0]); /* 0x42015D67: fld st(0) */
    108     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42015D69: fmul dword ptr [esi + 4] */
    109     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x42015D6C: fadd dword ptr [ebp - 8] */
    110     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x42015D6F: fstp dword ptr [esi + 4] */
    111     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42015D72: fmul dword ptr [esi + 8] */
    112     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x42015D75: fadd dword ptr [ebp - 4] */
    113     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x42015D78: fstp dword ptr [esi + 8] */
    114     RECOMP_ICALL(0x42011A00u); /* 0x42015D7B: call 0x42011a00 */ /* not lifted */
    115     RECOMP_FLAGS_IN();
    116     PUSH32(esp, 0); /* 0x42015D80: push 0 */
    117     PUSH32(esp, esi); /* 0x42015D82: push esi */
    118     PUSH32(esp, esi); /* 0x42015D83: push esi */
    119     ecx = edi; /* 0x42015D84: mov ecx, edi */
    120     RECOMP_ICALL(0x42015E90u); /* 0x42015D86: call 0x42015e90 */ /* not lifted */
    121     RECOMP_FLAGS_IN();
    122     edi = POP32_VAL(esp); /* 0x42015D8B: pop edi */
    123     esi = POP32_VAL(esp); /* 0x42015D8C: pop esi */
    124     ebx = POP32_VAL(esp); /* 0x42015D8D: pop ebx */
    125     esp = ebp; /* 0x42015D8E: mov esp, ebp */
    126     ebp = POP32_VAL(esp); /* 0x42015D90: pop ebp */
    127     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42015D91: ret 0xc */
    128 L_42015D94:
    129     edi = POP32_VAL(esp); /* 0x42015D94: pop edi */
    130     esi = POP32_VAL(esp); /* 0x42015D95: pop esi */
    131     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    132     eax = 0; /* 0x42015D96: xor eax, eax */
    133     _cf = 0;
    134     _flag_k = FK_TEST;
    135     ebx = POP32_VAL(esp); /* 0x42015D98: pop ebx */
    136     esp = ebp; /* 0x42015D99: mov esp, ebp */
    137     ebp = POP32_VAL(esp); /* 0x42015D9B: pop ebp */
    138     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42015D9C: ret 0xc */
    139     RECOMP_REGS_OUT();
    140 }
    141 
    142 void sub_42015DA0(void) {
    143     int _fpu_cmp = 0;
    144     uint32_t _cf = 0;
    145     int _df = 1;
    146     uint32_t _flag_k = FK_NONE;
    147     uint32_t _flag_a = 0, _flag_b = 0;
    148     uint32_t _itail_tgt = 0;
    149     RECOMP_REGS_LOCALS
    150     RECOMP_ENTER(0x42015DA0u);
    151 
    152 L_42015DA0:
    153     PUSH32(esp, ebp); /* 0x42015DA0: push ebp */
    154     ebp = esp; /* 0x42015DA1: mov ebp, esp */
    155     edx = MEM32(ebp + 0xC); /* 0x42015DA3: mov edx, dword ptr [ebp + 0xc] */
    156     eax = MEM32(ebp + 0x8); /* 0x42015DA6: mov eax, dword ptr [ebp + 8] */
    157     PUSH32(esp, esi); /* 0x42015DA9: push esi */
    158     PUSH32(esp, edi); /* 0x42015DAA: push edi */
    159     edi = MEM32(eax); /* 0x42015DAB: mov edi, dword ptr [eax] */
    160     esi = edx; /* 0x42015DAD: mov esi, edx */
    161     MEM32(esi) = edi; /* 0x42015DAF: mov dword ptr [esi], edi */
    162     edi = MEM32(eax + 0x4); /* 0x42015DB1: mov edi, dword ptr [eax + 4] */
    163     MEM32(esi + 0x4) = edi; /* 0x42015DB4: mov dword ptr [esi + 4], edi */
    164     eax = MEM32(eax + 0x8); /* 0x42015DB7: mov eax, dword ptr [eax + 8] */
    165     MEM32(esi + 0x8) = eax; /* 0x42015DBA: mov dword ptr [esi + 8], eax */
    166     fp_push(*(float*)&MEM32(edx)); /* 0x42015DBD: fld dword ptr [edx] */
    167     _st[0] -= (double)*(float*)ADDR(ecx + 0x54); /* 0x42015DBF: fsub dword ptr [ecx + 0x54] */
    168     edi = POP32_VAL(esp); /* 0x42015DC2: pop edi */
    169     esi = POP32_VAL(esp); /* 0x42015DC3: pop esi */
    170     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42015DC4: fstp dword ptr [edx] */
    171     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x42015DC6: fld dword ptr [edx + 4] */
    172     _st[0] -= (double)*(float*)ADDR(ecx + 0x58); /* 0x42015DC9: fsub dword ptr [ecx + 0x58] */
    173     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x42015DCC: fstp dword ptr [edx + 4] */
    174     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x42015DCF: fld dword ptr [edx + 8] */
    175     _st[0] -= (double)*(float*)ADDR(ecx + 0x5C); /* 0x42015DD2: fsub dword ptr [ecx + 0x5c] */
    176     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x8) = _v; } /* 0x42015DD5: fstp dword ptr [edx + 8] */
    177     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x42015DD8: fld dword ptr [edx + 8] */
    178     fp_push(*(float*)&MEM32(edx)); /* 0x42015DDB: fld dword ptr [edx] */
    179     fp_push(_st[0]); /* 0x42015DDD: fld st(0) */
    180     _st[0] *= _st[1]; /* 0x42015DDF: fmul st(1) */
    181     fp_push(_st[2]); /* 0x42015DE1: fld st(2) */
    182     _st[0] *= _st[3]; /* 0x42015DE3: fmul st(3) */
    183     { double _v = fp_pop(); _st[0] += _v; } /* 0x42015DE5: faddp st(1) */
    184     _st[0] = sqrt(_st[0]); /* 0x42015DE7: fsqrt  */
    185     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42015DE9: fstp dword ptr [ebp + 8] */
    186     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42015DEC: fstp st(0) */
    187     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42015DEE: fstp st(0) */
    188     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42015DF0: fld dword ptr [ebp + 8] */
    189     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x44)); /* 0x42015DF3: fcomp dword ptr [ecx + 0x44] */
    190     fp_pop();
    191     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015DF6: fnstsw ax */
    192     /* test HI8(eax), 1 */ /* 0x42015DF8: test ah, 1 */
    193     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    194     _cf = 0;
    195     _flag_k = FK_NARROW(FK_TEST, 24);
    196     if (TEST_NZ(_flag_a, _flag_b)) goto L_42015E79; /* 0x42015DFB: jne 0x42015e79 */
    197 L_42015DFD:
    198     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42015DFD: fld dword ptr [ebp + 8] */
    199     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x4201841C)); /* 0x42015E00: fcomp dword ptr [0x4201841c] */
    200     fp_pop();
    201     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015E06: fnstsw ax */
    202     /* test HI8(eax), 1 */ /* 0x42015E08: test ah, 1 */
    203     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    204     _cf = 0;
    205     _flag_k = FK_NARROW(FK_TEST, 24);
    206     if (TEST_NZ(_flag_a, _flag_b)) goto L_42015E79; /* 0x42015E0B: jne 0x42015e79 */
    207 L_42015E0D:
    208     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42015E0D: fld dword ptr [ebp + 8] */
    209     _st[0] /= (double)*(float*)ADDR(ecx + 0x3C); /* 0x42015E10: fdiv dword ptr [ecx + 0x3c] */
    210     _st[0] *= (double)*(float*)ADDR(ecx + 0x38); /* 0x42015E13: fmul dword ptr [ecx + 0x38] */
    211     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x38)); /* 0x42015E16: fcom dword ptr [ecx + 0x38] */
    212     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015E19: fnstsw ax */
    213     /* test HI8(eax), 1 */ /* 0x42015E1B: test ah, 1 */
    214     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    215     _cf = 0;
    216     _flag_k = FK_NARROW(FK_TEST, 24);
    217     if (TEST_NZ(_flag_a, _flag_b)) goto L_42015E25; /* 0x42015E1E: jne 0x42015e25 */
    218 L_42015E20:
    219     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42015E20: fstp st(0) */
    220     fp_push(*(float*)&MEM32(ecx + 0x38)); /* 0x42015E22: fld dword ptr [ecx + 0x38] */
    221 L_42015E25:
    222     _st[0] /= (double)*(float*)ADDR(ebp + 0x8); /* 0x42015E25: fdiv dword ptr [ebp + 8] */
    223     eax = 2; /* 0x42015E28: mov eax, 2 */
    224     fp_push(_st[0]); /* 0x42015E2D: fld st(0) */
    225     _st[0] *= (double)*(float*)ADDR(edx); /* 0x42015E2F: fmul dword ptr [edx] */
    226     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42015E31: fst dword ptr [ebp + 8] */
    227     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42015E34: fstp dword ptr [edx] */
    228     fp_push(_st[0]); /* 0x42015E36: fld st(0) */
    229     _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x42015E38: fmul dword ptr [edx + 4] */
    230     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x42015E3B: fst dword ptr [ebp + 0xc] */
    231     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x42015E3E: fstp dword ptr [edx + 4] */
    232     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x42015E41: fmul dword ptr [edx + 8] */
    233     { float _v = (float)_st[0]; *(float*)ADDR(edx + 0x8) = _v; } /* 0x42015E44: fst dword ptr [edx + 8] */
    234     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42015E47: fld dword ptr [ebp + 8] */
    235     _st[0] -= (double)*(float*)ADDR(ecx + 0x60); /* 0x42015E4A: fsub dword ptr [ecx + 0x60] */
    236     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42015E4D: fstp dword ptr [edx] */
    237     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x42015E4F: fld dword ptr [ebp + 0xc] */
    238     _st[0] -= (double)*(float*)ADDR(ecx + 0x64); /* 0x42015E52: fsub dword ptr [ecx + 0x64] */
    239     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x42015E55: fstp dword ptr [edx + 4] */
    240     _st[0] -= (double)*(float*)ADDR(ecx + 0x68); /* 0x42015E58: fsub dword ptr [ecx + 0x68] */
    241     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x8) = _v; } /* 0x42015E5B: fstp dword ptr [edx + 8] */
    242     fp_push(*(float*)&MEM32(ecx + 0x34)); /* 0x42015E5E: fld dword ptr [ecx + 0x34] */
    243     fp_push(_st[0]); /* 0x42015E61: fld st(0) */
    244     _st[0] *= (double)*(float*)ADDR(edx); /* 0x42015E63: fmul dword ptr [edx] */
    245     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42015E65: fstp dword ptr [edx] */
    246     fp_push(_st[0]); /* 0x42015E67: fld st(0) */
    247     _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x42015E69: fmul dword ptr [edx + 4] */
    248     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x42015E6C: fstp dword ptr [edx + 4] */
    249     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x42015E6F: fmul dword ptr [edx + 8] */
    250     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x8) = _v; } /* 0x42015E72: fstp dword ptr [edx + 8] */
    251     ebp = POP32_VAL(esp); /* 0x42015E75: pop ebp */
    252     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42015E76: ret 8 */
    253 L_42015E79:
    254     PUSH32(esp, edx); /* 0x42015E79: push edx */
    255     RECOMP_ICALL(0x42015980u); /* 0x42015E7A: call 0x42015980 */ /* not lifted */
    256     RECOMP_FLAGS_IN();
    257     ebp = POP32_VAL(esp); /* 0x42015E7F: pop ebp */
    258     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42015E80: ret 8 */
    259     RECOMP_REGS_OUT();
    260 }
    261 
    262 void sub_42015E90(void) {
    263     int _fpu_cmp = 0;
    264     uint32_t _cf = 0;
    265     int _df = 1;
    266     uint32_t _flag_k = FK_NONE;
    267     uint32_t _flag_a = 0, _flag_b = 0;
    268     uint32_t _itail_tgt = 0;
    269     RECOMP_REGS_LOCALS
    270     RECOMP_ENTER(0x42015E90u);
    271 
    272 L_42015E90:
    273     PUSH32(esp, ebp); /* 0x42015E90: push ebp */
    274     ebp = esp; /* 0x42015E91: mov ebp, esp */
    275     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x42015E93: fld dword ptr [ebp + 0x10] */
    276     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42015E96: fcomp qword ptr [0x420180d8] */
    277     fp_pop();
    278     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015E9C: fnstsw ax */
    279     /* test HI8(eax), 0x40u */ /* 0x42015E9E: test ah, 0x40 */
    280     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
    281     _cf = 0;
    282     _flag_k = FK_NARROW(FK_TEST, 24);
    283     if (TEST_Z(_flag_a, _flag_b)) goto L_42015EA9; /* 0x42015EA1: je 0x42015ea9 */
    284 L_42015EA3:
    285     eax = MEM32(ecx + 0x44); /* 0x42015EA3: mov eax, dword ptr [ecx + 0x44] */
    286     MEM32(ebp + 0x10) = eax; /* 0x42015EA6: mov dword ptr [ebp + 0x10], eax */
    287 L_42015EA9:
    288     edx = MEM32(ebp + 0xC); /* 0x42015EA9: mov edx, dword ptr [ebp + 0xc] */
    289     eax = MEM32(ebp + 0x8); /* 0x42015EAC: mov eax, dword ptr [ebp + 8] */
    290     PUSH32(esp, esi); /* 0x42015EAF: push esi */
    291     PUSH32(esp, edi); /* 0x42015EB0: push edi */
    292     edi = MEM32(eax); /* 0x42015EB1: mov edi, dword ptr [eax] */
    293     esi = edx; /* 0x42015EB3: mov esi, edx */
    294     MEM32(esi) = edi; /* 0x42015EB5: mov dword ptr [esi], edi */
    295     edi = MEM32(eax + 0x4); /* 0x42015EB7: mov edi, dword ptr [eax + 4] */
    296     MEM32(esi + 0x4) = edi; /* 0x42015EBA: mov dword ptr [esi + 4], edi */
    297     eax = MEM32(eax + 0x8); /* 0x42015EBD: mov eax, dword ptr [eax + 8] */
    298     MEM32(esi + 0x8) = eax; /* 0x42015EC0: mov dword ptr [esi + 8], eax */
    299     fp_push(*(float*)&MEM32(edx)); /* 0x42015EC3: fld dword ptr [edx] */
    300     _st[0] -= (double)*(float*)ADDR(ecx + 0x54); /* 0x42015EC5: fsub dword ptr [ecx + 0x54] */
    301     edi = POP32_VAL(esp); /* 0x42015EC8: pop edi */
    302     esi = POP32_VAL(esp); /* 0x42015EC9: pop esi */
    303     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42015ECA: fstp dword ptr [edx] */
    304     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x42015ECC: fld dword ptr [edx + 4] */
    305     _st[0] -= (double)*(float*)ADDR(ecx + 0x58); /* 0x42015ECF: fsub dword ptr [ecx + 0x58] */
    306     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x42015ED2: fstp dword ptr [edx + 4] */
    307     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x42015ED5: fld dword ptr [edx + 8] */
    308     _st[0] -= (double)*(float*)ADDR(ecx + 0x5C); /* 0x42015ED8: fsub dword ptr [ecx + 0x5c] */
    309     { float _v = (float)_st[0]; *(float*)ADDR(edx + 0x8) = _v; } /* 0x42015EDB: fst dword ptr [edx + 8] */
    310     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x42015EDE: fld dword ptr [edx + 4] */
    311     fp_push(*(float*)&MEM32(edx)); /* 0x42015EE1: fld dword ptr [edx] */
    312     fp_push(_st[2]); /* 0x42015EE3: fld st(2) */
    313     _st[0] *= _st[3]; /* 0x42015EE5: fmul st(3) */
    314     fp_push(_st[2]); /* 0x42015EE7: fld st(2) */
    315     _st[0] *= _st[3]; /* 0x42015EE9: fmul st(3) */
    316     { double _v = fp_pop(); _st[0] += _v; } /* 0x42015EEB: faddp st(1) */
    317     fp_push(_st[1]); /* 0x42015EED: fld st(1) */
    318     _st[0] *= _st[2]; /* 0x42015EEF: fmul st(2) */
    319     { double _v = fp_pop(); _st[0] += _v; } /* 0x42015EF1: faddp st(1) */
    320     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42015EF3: fstp dword ptr [ebp + 8] */
    321     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42015EF6: fstp st(0) */
    322     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42015EF8: fstp st(0) */
    323     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42015EFA: fstp st(0) */
    324     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x42015EFC: fld dword ptr [ebp + 0x10] */
    325     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x42015EFF: fmul dword ptr [ebp + 0x10] */
    326     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x42015F02: fcomp dword ptr [ebp + 8] */
    327     fp_pop();
    328     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015F05: fnstsw ax */
    329     /* test HI8(eax), 0x41u */ /* 0x42015F07: test ah, 0x41 */
    330     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    331     _cf = 0;
    332     _flag_k = FK_NARROW(FK_TEST, 24);
    333     if (TEST_Z(_flag_a, _flag_b)) goto L_42015FCB; /* 0x42015F0A: je 0x42015fcb */
    334 L_42015F10:
    335     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42015F10: fld dword ptr [ebp + 8] */
    336     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x4201841C)); /* 0x42015F13: fcomp dword ptr [0x4201841c] */
    337     fp_pop();
    338     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015F19: fnstsw ax */
    339     /* test HI8(eax), 1 */ /* 0x42015F1B: test ah, 1 */
    340     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    341     _cf = 0;
    342     _flag_k = FK_NARROW(FK_TEST, 24);
    343     if (TEST_NZ(_flag_a, _flag_b)) goto L_42015FCB; /* 0x42015F1E: jne 0x42015fcb */
    344 L_42015F24:
    345     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42015F24: fld dword ptr [ebp + 8] */
    346     _st[0] = sqrt(_st[0]); /* 0x42015F27: fsqrt  */
    347     fp_push(_st[0]); /* 0x42015F29: fld st(0) */
    348     _st[0] /= (double)*(float*)ADDR(ecx + 0x3C); /* 0x42015F2B: fdiv dword ptr [ecx + 0x3c] */
    349     _st[0] *= (double)*(float*)ADDR(ecx + 0x38); /* 0x42015F2E: fmul dword ptr [ecx + 0x38] */
    350     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x38)); /* 0x42015F31: fcom dword ptr [ecx + 0x38] */
    351     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015F34: fnstsw ax */
    352     /* test HI8(eax), 1 */ /* 0x42015F36: test ah, 1 */
    353     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    354     _cf = 0;
    355     _flag_k = FK_NARROW(FK_TEST, 24);
    356     if (TEST_NZ(_flag_a, _flag_b)) goto L_42015F40; /* 0x42015F39: jne 0x42015f40 */
    357 L_42015F3B:
    358     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42015F3B: fstp st(0) */
    359     fp_push(*(float*)&MEM32(ecx + 0x38)); /* 0x42015F3D: fld dword ptr [ecx + 0x38] */
    360 L_42015F40:
    361     { double _v = fp_pop(); _st[0] = _st[0] == 0.0 ? _v : _v / _st[0]; } /* 0x42015F40: fdivrp st(1) */
    362     fp_push(_st[0]); /* 0x42015F42: fld st(0) */
    363     _st[0] *= (double)*(float*)ADDR(edx); /* 0x42015F44: fmul dword ptr [edx] */
    364     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x10) = _v; } /* 0x42015F46: fst dword ptr [ebp + 0x10] */
    365     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42015F49: fstp dword ptr [edx] */
    366     fp_push(_st[0]); /* 0x42015F4B: fld st(0) */
    367     _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x42015F4D: fmul dword ptr [edx + 4] */
    368     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42015F50: fst dword ptr [ebp + 8] */
    369     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x42015F53: fstp dword ptr [edx + 4] */
    370     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x42015F56: fmul dword ptr [edx + 8] */
    371     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x8) = _v; } /* 0x42015F59: fstp dword ptr [edx + 8] */
    372     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x42015F5C: fld dword ptr [ebp + 0x10] */
    373     _st[0] -= (double)*(float*)ADDR(ecx + 0x60); /* 0x42015F5F: fsub dword ptr [ecx + 0x60] */
    374     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42015F62: fstp dword ptr [edx] */
    375     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42015F64: fld dword ptr [ebp + 8] */
    376     _st[0] -= (double)*(float*)ADDR(ecx + 0x64); /* 0x42015F67: fsub dword ptr [ecx + 0x64] */
    377     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x42015F6A: fstp dword ptr [edx + 4] */
    378     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x42015F6D: fld dword ptr [edx + 8] */
    379     _st[0] -= (double)*(float*)ADDR(ecx + 0x68); /* 0x42015F70: fsub dword ptr [ecx + 0x68] */
    380     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x8) = _v; } /* 0x42015F73: fstp dword ptr [edx + 8] */
    381     fp_push(*(float*)&MEM32(ecx + 0x30)); /* 0x42015F76: fld dword ptr [ecx + 0x30] */
    382     _st[0] *= (double)*(float*)ADDR(0x420186E4); /* 0x42015F79: fmul dword ptr [0x420186e4] */
    383     fp_push(_st[0]); /* 0x42015F7F: fld st(0) */
    384     _st[0] *= (double)*(float*)ADDR(edx); /* 0x42015F81: fmul dword ptr [edx] */
    385     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42015F83: fst dword ptr [ebp + 8] */
    386     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42015F86: fstp dword ptr [edx] */
    387     fp_push(_st[0]); /* 0x42015F88: fld st(0) */
    388     _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x42015F8A: fmul dword ptr [edx + 4] */
    389     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x10) = _v; } /* 0x42015F8D: fst dword ptr [ebp + 0x10] */
    390     { float _v = (float)fp_pop(); *(float*)ADDR(edx + 0x4) = _v; } /* 0x42015F90: fstp dword ptr [edx + 4] */
    391     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x42015F93: fmul dword ptr [edx + 8] */
    392     { float _v = (float)_st[0]; *(float*)ADDR(edx + 0x8) = _v; } /* 0x42015F96: fst dword ptr [edx + 8] */
    393     fp_push(_st[0]); /* 0x42015F99: fld st(0) */
    394     { double _v = fp_pop(); _st[0] *= _v; } /* 0x42015F9B: fmulp st(1) */
    395     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x42015F9D: fld dword ptr [ebp + 0x10] */
    396     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x42015FA0: fmul dword ptr [ebp + 0x10] */
    397     { double _v = fp_pop(); _st[0] += _v; } /* 0x42015FA3: faddp st(1) */
    398     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42015FA5: fld dword ptr [ebp + 8] */
    399     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42015FA8: fmul dword ptr [ebp + 8] */
    400     { double _v = fp_pop(); _st[0] += _v; } /* 0x42015FAB: faddp st(1) */
    401     _st[0] = sqrt(_st[0]); /* 0x42015FAD: fsqrt  */
    402     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420186E0)); /* 0x42015FAF: fcomp dword ptr [0x420186e0] */
    403     fp_pop();
    404     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42015FB5: fnstsw ax */
    405     /* test HI8(eax), 0x41u */ /* 0x42015FB7: test ah, 0x41 */
    406     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    407     _cf = 0;
    408     _flag_k = FK_NARROW(FK_TEST, 24);
    409     if (TEST_NZ(_flag_a, _flag_b)) goto L_42015FC2; /* 0x42015FBA: jne 0x42015fc2 */
    410 L_42015FBC:
    411     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    412     eax = 0; /* 0x42015FBC: xor eax, eax */
    413     _cf = 0;
    414     _flag_k = FK_TEST;
    415     ebp = POP32_VAL(esp); /* 0x42015FBE: pop ebp */
    416     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42015FBF: ret 0xc */
    417 L_42015FC2:
    418     eax = 2; /* 0x42015FC2: mov eax, 2 */
    419     ebp = POP32_VAL(esp); /* 0x42015FC7: pop ebp */
    420     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42015FC8: ret 0xc */
    421 L_42015FCB:
    422     PUSH32(esp, edx); /* 0x42015FCB: push edx */
    423     RECOMP_ICALL(0x42015980u); /* 0x42015FCC: call 0x42015980 */ /* not lifted */
    424     RECOMP_FLAGS_IN();
    425     ebp = POP32_VAL(esp); /* 0x42015FD1: pop ebp */
    426     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42015FD2: ret 0xc */
    427     RECOMP_REGS_OUT();
    428 }
    429 
    430 void sub_42015FE0(void) {
    431     int _fpu_cmp = 0;
    432     uint32_t _cf = 0;
    433     int _df = 1;
    434     uint32_t _flag_k = FK_NONE;
    435     uint32_t _flag_a = 0, _flag_b = 0;
    436     uint32_t _itail_tgt = 0;
    437     RECOMP_REGS_LOCALS
    438     RECOMP_ENTER(0x42015FE0u);
    439 
    440 L_42015FE0:
    441     PUSH32(esp, ebp); /* 0x42015FE0: push ebp */
    442     ebp = esp; /* 0x42015FE1: mov ebp, esp */
    443     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    445     esp = esp - 0xCu; /* 0x42015FE3: sub esp, 0xc */
    446     _flag_k = FK_CMP;
    447     edx = MEM32(ebp + 0x8); /* 0x42015FE6: mov edx, dword ptr [ebp + 8] */
    448     PUSH32(esp, esi); /* 0x42015FE9: push esi */
    449     eax = edx; /* 0x42015FEA: mov eax, edx */
    450     esi = MEM32(eax); /* 0x42015FEC: mov esi, dword ptr [eax] */
    451     MEM32(ebp + (-0xC)) = esi; /* 0x42015FEE: mov dword ptr [ebp - 0xc], esi */
    452     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42015FF1: fld dword ptr [ebp - 0xc] */
    453     esi = MEM32(eax + 0x4); /* 0x42015FF4: mov esi, dword ptr [eax + 4] */
    454     _st[0] -= (double)*(float*)ADDR(ecx + 0x54); /* 0x42015FF7: fsub dword ptr [ecx + 0x54] */
    455     eax = MEM32(eax + 0x8); /* 0x42015FFA: mov eax, dword ptr [eax + 8] */
    456     MEM32(ebp + (-0x4)) = eax; /* 0x42015FFD: mov dword ptr [ebp - 4], eax */
    457     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42016000: fld dword ptr [ebp - 4] */
    458     _st[0] -= (double)*(float*)ADDR(ecx + 0x5C); /* 0x42016003: fsub dword ptr [ecx + 0x5c] */
    459     MEM32(ebp + (-0x8)) = esi; /* 0x42016006: mov dword ptr [ebp - 8], esi */
    460     eax = edx; /* 0x42016009: mov eax, edx */
    461     esi = MEM32(eax); /* 0x4201600B: mov esi, dword ptr [eax] */
    462     MEM32(ebp + (-0xC)) = esi; /* 0x4201600D: mov dword ptr [ebp - 0xc], esi */
    463     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42016010: fld dword ptr [ebp - 0xc] */
    464     _st[0] -= (double)*(float*)ADDR(ecx + 0xDC); /* 0x42016013: fsub dword ptr [ecx + 0xdc] */
    465     esi = MEM32(eax + 0x4); /* 0x42016019: mov esi, dword ptr [eax + 4] */
    466     eax = MEM32(eax + 0x8); /* 0x4201601C: mov eax, dword ptr [eax + 8] */
    467     MEM32(ebp + (-0x4)) = eax; /* 0x4201601F: mov dword ptr [ebp - 4], eax */
    468     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42016022: fld dword ptr [ebp - 4] */
    469     _st[0] -= (double)*(float*)ADDR(ecx + 0xE4); /* 0x42016025: fsub dword ptr [ecx + 0xe4] */
    470     MEM32(ebp + (-0x8)) = esi; /* 0x4201602B: mov dword ptr [ebp - 8], esi */
    471     esi = POP32_VAL(esp); /* 0x4201602E: pop esi */
    472     _st[0] *= _st[2]; /* 0x4201602F: fmul st(2) */
    473     fp_xch(1); /* 0x42016031: fxch st(1) */
    474     _st[0] *= _st[3]; /* 0x42016033: fmul st(3) */
    475     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016035: faddp st(1) */
    476     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42016037: fcomp dword ptr [0x420180f8] */
    477     fp_pop();
    478     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201603D: fnstsw ax */
    479     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201603F: fstp st(0) */
    480     /* test HI8(eax), 1 */ /* 0x42016041: test ah, 1 */
    481     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    482     _cf = 0;
    483     _flag_k = FK_NARROW(FK_TEST, 24);
    484     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016044: fstp st(0) */
    485     if (TEST_Z(_flag_a, _flag_b)) goto L_42016057; /* 0x42016046: je 0x42016057 */
    486 L_42016048:
    487     edx = MEM32(ebp + 0xC); /* 0x42016048: mov edx, dword ptr [ebp + 0xc] */
    488     PUSH32(esp, edx); /* 0x4201604B: push edx */
    489     RECOMP_ICALL(0x42015980u); /* 0x4201604C: call 0x42015980 */ /* not lifted */
    490     RECOMP_FLAGS_IN();
    491     esp = ebp; /* 0x42016051: mov esp, ebp */
    492     ebp = POP32_VAL(esp); /* 0x42016053: pop ebp */
    493     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016054: ret 8 */
    494 L_42016057:
    495     eax = MEM32(ebp + 0xC); /* 0x42016057: mov eax, dword ptr [ebp + 0xc] */
    496     PUSH32(esp, 0x3E4CCCCDu); /* 0x4201605A: push 0x3e4ccccd */
    497     PUSH32(esp, eax); /* 0x4201605F: push eax */
    498     PUSH32(esp, edx); /* 0x42016060: push edx */
    499     RECOMP_ICALL(0x42015E90u); /* 0x42016061: call 0x42015e90 */ /* not lifted */
    500     RECOMP_FLAGS_IN();
    501     esp = ebp; /* 0x42016066: mov esp, ebp */
    502     ebp = POP32_VAL(esp); /* 0x42016068: pop ebp */
    503     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016069: ret 8 */
    504     RECOMP_REGS_OUT();
    505 }
    506 
    507 void sub_42016070(void) {
    508     int _fpu_cmp = 0;
    509     uint32_t _cf = 0;
    510     int _df = 1;
    511     uint32_t _flag_k = FK_NONE;
    512     uint32_t _flag_a = 0, _flag_b = 0;
    513     uint32_t _itail_tgt = 0;
    514     RECOMP_REGS_LOCALS
    515     RECOMP_ENTER(0x42016070u);
    516 
    517 L_42016070:
    518     PUSH32(esp, ebp); /* 0x42016070: push ebp */
    519     ebp = esp; /* 0x42016071: mov ebp, esp */
    520     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    522     esp = esp - 0xCu; /* 0x42016073: sub esp, 0xc */
    523     _flag_k = FK_CMP;
    524     edx = MEM32(ebp + 0x8); /* 0x42016076: mov edx, dword ptr [ebp + 8] */
    525     PUSH32(esp, esi); /* 0x42016079: push esi */
    526     eax = edx; /* 0x4201607A: mov eax, edx */
    527     esi = MEM32(eax); /* 0x4201607C: mov esi, dword ptr [eax] */
    528     MEM32(ebp + (-0xC)) = esi; /* 0x4201607E: mov dword ptr [ebp - 0xc], esi */
    529     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42016081: fld dword ptr [ebp - 0xc] */
    530     _st[0] -= (double)*(float*)ADDR(ecx + 0xDC); /* 0x42016084: fsub dword ptr [ecx + 0xdc] */
    531     esi = MEM32(eax + 0x4); /* 0x4201608A: mov esi, dword ptr [eax + 4] */
    532     eax = MEM32(eax + 0x8); /* 0x4201608D: mov eax, dword ptr [eax + 8] */
    533     MEM32(ebp + (-0x4)) = eax; /* 0x42016090: mov dword ptr [ebp - 4], eax */
    534     MEM32(ebp + (-0x8)) = esi; /* 0x42016093: mov dword ptr [ebp - 8], esi */
    535     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42016096: fld dword ptr [ebp - 8] */
    536     _st[0] -= (double)*(float*)ADDR(ecx + 0xE0); /* 0x42016099: fsub dword ptr [ecx + 0xe0] */
    537     eax = edx; /* 0x4201609F: mov eax, edx */
    538     esi = MEM32(eax); /* 0x420160A1: mov esi, dword ptr [eax] */
    539     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x420160A3: fld dword ptr [ebp - 4] */
    540     _st[0] -= (double)*(float*)ADDR(ecx + 0xE4); /* 0x420160A6: fsub dword ptr [ecx + 0xe4] */
    541     MEM32(ebp + (-0xC)) = esi; /* 0x420160AC: mov dword ptr [ebp - 0xc], esi */
    542     esi = MEM32(eax + 0x4); /* 0x420160AF: mov esi, dword ptr [eax + 4] */
    543     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x420160B2: fld dword ptr [ebp - 0xc] */
    544     _st[0] -= (double)*(float*)ADDR(ecx + 0x54); /* 0x420160B5: fsub dword ptr [ecx + 0x54] */
    545     eax = MEM32(eax + 0x8); /* 0x420160B8: mov eax, dword ptr [eax + 8] */
    546     MEM32(ebp + (-0x8)) = esi; /* 0x420160BB: mov dword ptr [ebp - 8], esi */
    547     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x420160BE: fld dword ptr [ebp - 8] */
    548     _st[0] -= (double)*(float*)ADDR(ecx + 0x58); /* 0x420160C1: fsub dword ptr [ecx + 0x58] */
    549     MEM32(ebp + (-0x4)) = eax; /* 0x420160C4: mov dword ptr [ebp - 4], eax */
    550     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x420160C7: fld dword ptr [ebp - 4] */
    551     esi = POP32_VAL(esp); /* 0x420160CA: pop esi */
    552     _st[0] -= (double)*(float*)ADDR(ecx + 0x5C); /* 0x420160CB: fsub dword ptr [ecx + 0x5c] */
    553     _st[0] *= _st[3]; /* 0x420160CE: fmul st(3) */
    554     fp_xch(1); /* 0x420160D0: fxch st(1) */
    555     _st[0] *= _st[4]; /* 0x420160D2: fmul st(4) */
    556     { double _v = fp_pop(); _st[0] += _v; } /* 0x420160D4: faddp st(1) */
    557     fp_xch(1); /* 0x420160D6: fxch st(1) */
    558     _st[0] *= _st[4]; /* 0x420160D8: fmul st(4) */
    559     { double _v = fp_pop(); _st[0] += _v; } /* 0x420160DA: faddp st(1) */
    560     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x420160DC: fcomp dword ptr [0x420180f8] */
    561     fp_pop();
    562     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420160E2: fstp st(0) */
    563     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420160E4: fnstsw ax */
    564     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420160E6: fstp st(0) */
    565     /* test HI8(eax), 1 */ /* 0x420160E8: test ah, 1 */
    566     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    567     _cf = 0;
    568     _flag_k = FK_NARROW(FK_TEST, 24);
    569     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420160EB: fstp st(0) */
    570     if (TEST_Z(_flag_a, _flag_b)) goto L_420160FE; /* 0x420160ED: je 0x420160fe */
    571 L_420160EF:
    572     edx = MEM32(ebp + 0xC); /* 0x420160EF: mov edx, dword ptr [ebp + 0xc] */
    573     PUSH32(esp, edx); /* 0x420160F2: push edx */
    574     RECOMP_ICALL(0x42015980u); /* 0x420160F3: call 0x42015980 */ /* not lifted */
    575     RECOMP_FLAGS_IN();
    576     esp = ebp; /* 0x420160F8: mov esp, ebp */
    577     ebp = POP32_VAL(esp); /* 0x420160FA: pop ebp */
    578     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420160FB: ret 8 */
    579 L_420160FE:
    580     eax = MEM32(ebp + 0xC); /* 0x420160FE: mov eax, dword ptr [ebp + 0xc] */
    581     PUSH32(esp, eax); /* 0x42016101: push eax */
    582     PUSH32(esp, edx); /* 0x42016102: push edx */
    583     RECOMP_ICALL(0x42015DA0u); /* 0x42016103: call 0x42015da0 */ /* not lifted */
    584     RECOMP_FLAGS_IN();
    585     esp = ebp; /* 0x42016108: mov esp, ebp */
    586     ebp = POP32_VAL(esp); /* 0x4201610A: pop ebp */
    587     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4201610B: ret 8 */
    588     RECOMP_REGS_OUT();
    589 }
    590 
    591 void sub_42016110(void) {
    592     int _fpu_cmp = 0;
    593     uint32_t _cf = 0;
    594     int _df = 1;
    595     uint32_t _flag_k = FK_NONE;
    596     uint32_t _flag_a = 0, _flag_b = 0;
    597     uint32_t _itail_tgt = 0;
    598     RECOMP_REGS_LOCALS
    599     RECOMP_ENTER(0x42016110u);
    600 
    601 L_42016110:
    602     PUSH32(esp, ebp); /* 0x42016110: push ebp */
    603     ebp = esp; /* 0x42016111: mov ebp, esp */
    604     eax = MEM32(ebp + 0xC); /* 0x42016113: mov eax, dword ptr [ebp + 0xc] */
    605     edx = MEM32(ebp + 0x8); /* 0x42016116: mov edx, dword ptr [ebp + 8] */
    606     PUSH32(esp, esi); /* 0x42016119: push esi */
    607     PUSH32(esp, edi); /* 0x4201611A: push edi */
    608     edi = MEM32(edx); /* 0x4201611B: mov edi, dword ptr [edx] */
    609     esi = eax; /* 0x4201611D: mov esi, eax */
    610     MEM32(esi) = edi; /* 0x4201611F: mov dword ptr [esi], edi */
    611     edi = MEM32(edx + 0x4); /* 0x42016121: mov edi, dword ptr [edx + 4] */
    612     MEM32(esi + 0x4) = edi; /* 0x42016124: mov dword ptr [esi + 4], edi */
    613     edx = MEM32(edx + 0x8); /* 0x42016127: mov edx, dword ptr [edx + 8] */
    614     MEM32(esi + 0x8) = edx; /* 0x4201612A: mov dword ptr [esi + 8], edx */
    615     fp_push(*(float*)&MEM32(eax)); /* 0x4201612D: fld dword ptr [eax] */
    616     _st[0] -= (double)*(float*)ADDR(ecx + 0x54); /* 0x4201612F: fsub dword ptr [ecx + 0x54] */
    617     edi = POP32_VAL(esp); /* 0x42016132: pop edi */
    618     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42016133: fstp dword ptr [eax] */
    619     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x42016135: fld dword ptr [eax + 4] */
    620     _st[0] -= (double)*(float*)ADDR(ecx + 0x58); /* 0x42016138: fsub dword ptr [ecx + 0x58] */
    621     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x4201613B: fstp dword ptr [eax + 4] */
    622     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x4201613E: fld dword ptr [eax + 8] */
    623     _st[0] -= (double)*(float*)ADDR(ecx + 0x5C); /* 0x42016141: fsub dword ptr [ecx + 0x5c] */
    624     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x42016144: fst dword ptr [eax + 8] */
    625     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x42016147: fld dword ptr [eax + 4] */
    626     fp_push(*(float*)&MEM32(eax)); /* 0x4201614A: fld dword ptr [eax] */
    627     fp_push(_st[2]); /* 0x4201614C: fld st(2) */
    628     { double _v = fp_pop(); _st[2] *= _v; } /* 0x4201614E: fmulp st(3) */
    629     fp_push(_st[1]); /* 0x42016150: fld st(1) */
    630     _st[0] *= _st[2]; /* 0x42016152: fmul st(2) */
    631     { double _v = fp_pop(); _st[2] += _v; } /* 0x42016154: faddp st(3) */
    632     fp_push(_st[0]); /* 0x42016156: fld st(0) */
    633     _st[0] *= _st[1]; /* 0x42016158: fmul st(1) */
    634     { double _v = fp_pop(); _st[2] += _v; } /* 0x4201615A: faddp st(3) */
    635     fp_xch(2); /* 0x4201615C: fxch st(2) */
    636     _st[0] = sqrt(_st[0]); /* 0x4201615E: fsqrt  */
    637     fp_xch(2); /* 0x42016160: fxch st(2) */
    638     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016162: fstp st(0) */
    639     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016164: fstp st(0) */
    640     _st[0] = (double)*(float*)ADDR(0x42018118) / _st[0]; /* 0x42016166: fdivr dword ptr [0x42018118] */
    641     fp_push(_st[0]); /* 0x4201616C: fld st(0) */
    642     _st[0] *= (double)*(float*)ADDR(eax); /* 0x4201616E: fmul dword ptr [eax] */
    643     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42016170: fst dword ptr [ebp + 8] */
    644     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42016173: fstp dword ptr [eax] */
    645     fp_push(_st[0]); /* 0x42016175: fld st(0) */
    646     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x42016177: fmul dword ptr [eax + 4] */
    647     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x4201617A: fst dword ptr [ebp + 0xc] */
    648     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x4201617D: fstp dword ptr [eax + 4] */
    649     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x42016180: fmul dword ptr [eax + 8] */
    650     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x42016183: fst dword ptr [eax + 8] */
    651     fp_push(*(float*)&MEM32(ecx + 0x38)); /* 0x42016186: fld dword ptr [ecx + 0x38] */
    652     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016189: fld dword ptr [ebp + 8] */
    653     _st[0] *= _st[1]; /* 0x4201618C: fmul st(1) */
    654     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x4201618E: fst dword ptr [ebp + 8] */
    655     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42016191: fstp dword ptr [eax] */
    656     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x42016193: fld dword ptr [ebp + 0xc] */
    657     _st[0] *= _st[1]; /* 0x42016196: fmul st(1) */
    658     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x42016198: fst dword ptr [ebp + 0xc] */
    659     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x4201619B: fstp dword ptr [eax + 4] */
    660     fp_xch(1); /* 0x4201619E: fxch st(1) */
    661     _st[0] *= _st[1]; /* 0x420161A0: fmul st(1) */
    662     fp_xch(1); /* 0x420161A2: fxch st(1) */
    663     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420161A4: fstp st(0) */
    664     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x420161A6: fst dword ptr [eax + 8] */
    665     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420161A9: fld dword ptr [ebp + 8] */
    666     _st[0] -= (double)*(float*)ADDR(ecx + 0x60); /* 0x420161AC: fsub dword ptr [ecx + 0x60] */
    667     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x420161AF: fstp dword ptr [eax] */
    668     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420161B1: fld dword ptr [ebp + 0xc] */
    669     _st[0] -= (double)*(float*)ADDR(ecx + 0x64); /* 0x420161B4: fsub dword ptr [ecx + 0x64] */
    670     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x420161B7: fstp dword ptr [eax + 4] */
    671     _st[0] -= (double)*(float*)ADDR(ecx + 0x68); /* 0x420161BA: fsub dword ptr [ecx + 0x68] */
    672     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x420161BD: fstp dword ptr [eax + 8] */
    673     fp_push(*(float*)&MEM32(eax)); /* 0x420161C0: fld dword ptr [eax] */
    674     _st[0] *= (double)*(float*)ADDR(0x420186B0); /* 0x420161C2: fmul dword ptr [0x420186b0] */
    675     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x420161C8: fstp dword ptr [eax] */
    676     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x420161CA: fld dword ptr [eax + 4] */
    677     _st[0] *= (double)*(float*)ADDR(0x420186B0); /* 0x420161CD: fmul dword ptr [0x420186b0] */
    678     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x420161D3: fstp dword ptr [eax + 4] */
    679     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x420161D6: fld dword ptr [eax + 8] */
    680     _st[0] *= (double)*(float*)ADDR(0x420186B0); /* 0x420161D9: fmul dword ptr [0x420186b0] */
    681     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x420161DF: fstp dword ptr [eax + 8] */
    682     eax = 2; /* 0x420161E2: mov eax, 2 */
    683     esi = POP32_VAL(esp); /* 0x420161E7: pop esi */
    684     ebp = POP32_VAL(esp); /* 0x420161E8: pop ebp */
    685     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420161E9: ret 8 */
    686     RECOMP_REGS_OUT();
    687 }
    688 
    689 void sub_420161F0(void) {
    690     int _fpu_cmp = 0;
    691     uint32_t _cf = 0;
    692     int _df = 1;
    693     uint32_t _flag_k = FK_NONE;
    694     uint32_t _flag_a = 0, _flag_b = 0;
    695     uint32_t _itail_tgt = 0;
    696     RECOMP_REGS_LOCALS
    697     RECOMP_ENTER(0x420161F0u);
    698 
    699 L_420161F0:
    700     PUSH32(esp, ebp); /* 0x420161F0: push ebp */
    701     ebp = esp; /* 0x420161F1: mov ebp, esp */
    702     edx = MEM32(ebp + 0x8); /* 0x420161F3: mov edx, dword ptr [ebp + 8] */
    703     PUSH32(esp, ebx); /* 0x420161F6: push ebx */
    704     PUSH32(esp, esi); /* 0x420161F7: push esi */
    705     PUSH32(esp, edi); /* 0x420161F8: push edi */
    706     eax = edx + 0x60; /* 0x420161F9: lea eax, [edx + 0x60] */
    707     esi = eax; /* 0x420161FC: mov esi, eax */
    708     eax = MEM32(ebp + 0xC); /* 0x420161FE: mov eax, dword ptr [ebp + 0xc] */
    709     ebx = MEM32(esi); /* 0x42016201: mov ebx, dword ptr [esi] */
    710     edi = eax; /* 0x42016203: mov edi, eax */
    711     MEM32(edi) = ebx; /* 0x42016205: mov dword ptr [edi], ebx */
    712     ebx = MEM32(esi + 0x4); /* 0x42016207: mov ebx, dword ptr [esi + 4] */
    713     MEM32(edi + 0x4) = ebx; /* 0x4201620A: mov dword ptr [edi + 4], ebx */
    714     esi = MEM32(esi + 0x8); /* 0x4201620D: mov esi, dword ptr [esi + 8] */
    715     MEM32(edi + 0x8) = esi; /* 0x42016210: mov dword ptr [edi + 8], esi */
    716     fp_push(*(float*)&MEM32(eax)); /* 0x42016213: fld dword ptr [eax] */
    717     _st[0] *= (double)*(float*)ADDR(0x4201867C); /* 0x42016215: fmul dword ptr [0x4201867c] */
    718     PUSH32(esp, 0); /* 0x4201621B: push 0 */
    719     PUSH32(esp, eax); /* 0x4201621D: push eax */
    720     PUSH32(esp, eax); /* 0x4201621E: push eax */
    721     { float _v = (float)_st[0]; *(float*)ADDR(eax) = _v; } /* 0x4201621F: fst dword ptr [eax] */
    722     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x42016221: fld dword ptr [eax + 4] */
    723     _st[0] *= (double)*(float*)ADDR(0x4201867C); /* 0x42016224: fmul dword ptr [0x4201867c] */
    724     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x4201622A: fst dword ptr [ebp + 8] */
    725     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x4201622D: fstp dword ptr [eax + 4] */
    726     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x42016230: fld dword ptr [eax + 8] */
    727     _st[0] *= (double)*(float*)ADDR(0x4201867C); /* 0x42016233: fmul dword ptr [0x4201867c] */
    728     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x42016239: fst dword ptr [ebp + 0xc] */
    729     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x4201623C: fstp dword ptr [eax + 8] */
    730     _st[0] += (double)*(float*)ADDR(edx + 0x54); /* 0x4201623F: fadd dword ptr [edx + 0x54] */
    731     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42016242: fstp dword ptr [eax] */
    732     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016244: fld dword ptr [ebp + 8] */
    733     _st[0] += (double)*(float*)ADDR(edx + 0x58); /* 0x42016247: fadd dword ptr [edx + 0x58] */
    734     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x4201624A: fstp dword ptr [eax + 4] */
    735     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x4201624D: fld dword ptr [ebp + 0xc] */
    736     _st[0] += (double)*(float*)ADDR(edx + 0x5C); /* 0x42016250: fadd dword ptr [edx + 0x5c] */
    737     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x42016253: fstp dword ptr [eax + 8] */
    738     RECOMP_ICALL(0x42015E90u); /* 0x42016256: call 0x42015e90 */ /* not lifted */
    739     RECOMP_FLAGS_IN();
    740     edi = POP32_VAL(esp); /* 0x4201625B: pop edi */
    741     esi = POP32_VAL(esp); /* 0x4201625C: pop esi */
    742     ebx = POP32_VAL(esp); /* 0x4201625D: pop ebx */
    743     ebp = POP32_VAL(esp); /* 0x4201625E: pop ebp */
    744     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4201625F: ret 8 */
    745     RECOMP_REGS_OUT();
    746 }
    747 
    748 void sub_42016270(void) {
    749     int _fpu_cmp = 0;
    750     uint32_t _cf = 0;
    751     int _df = 1;
    752     uint32_t _flag_k = FK_NONE;
    753     uint32_t _flag_a = 0, _flag_b = 0;
    754     uint32_t _itail_tgt = 0;
    755     RECOMP_REGS_LOCALS
    756     RECOMP_ENTER(0x42016270u);
    757 
    758 L_42016270:
    759     PUSH32(esp, ebp); /* 0x42016270: push ebp */
    760     ebp = esp; /* 0x42016271: mov ebp, esp */
    761     edx = MEM32(ebp + 0x8); /* 0x42016273: mov edx, dword ptr [ebp + 8] */
    762     PUSH32(esp, ebx); /* 0x42016276: push ebx */
    763     PUSH32(esp, esi); /* 0x42016277: push esi */
    764     eax = edx + 0x60; /* 0x42016278: lea eax, [edx + 0x60] */
    765     PUSH32(esp, edi); /* 0x4201627B: push edi */
    766     esi = eax; /* 0x4201627C: mov esi, eax */
    767     eax = MEM32(ebp + 0xC); /* 0x4201627E: mov eax, dword ptr [ebp + 0xc] */
    768     ebx = MEM32(esi); /* 0x42016281: mov ebx, dword ptr [esi] */
    769     edi = eax; /* 0x42016283: mov edi, eax */
    770     MEM32(edi) = ebx; /* 0x42016285: mov dword ptr [edi], ebx */
    771     ebx = MEM32(esi + 0x4); /* 0x42016287: mov ebx, dword ptr [esi + 4] */
    772     MEM32(edi + 0x4) = ebx; /* 0x4201628A: mov dword ptr [edi + 4], ebx */
    773     esi = MEM32(esi + 0x8); /* 0x4201628D: mov esi, dword ptr [esi + 8] */
    774     MEM32(edi + 0x8) = esi; /* 0x42016290: mov dword ptr [edi + 8], esi */
    775     fp_push(*(float*)&MEM32(eax)); /* 0x42016293: fld dword ptr [eax] */
    776     _st[0] *= (double)*(float*)ADDR(0x42018434); /* 0x42016295: fmul dword ptr [0x42018434] */
    777     PUSH32(esp, eax); /* 0x4201629B: push eax */
    778     PUSH32(esp, eax); /* 0x4201629C: push eax */
    779     { float _v = (float)_st[0]; *(float*)ADDR(eax) = _v; } /* 0x4201629D: fst dword ptr [eax] */
    780     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x4201629F: fld dword ptr [eax + 4] */
    781     _st[0] *= (double)*(float*)ADDR(0x42018434); /* 0x420162A2: fmul dword ptr [0x42018434] */
    782     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420162A8: fst dword ptr [ebp + 8] */
    783     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x420162AB: fstp dword ptr [eax + 4] */
    784     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x420162AE: fld dword ptr [eax + 8] */
    785     _st[0] *= (double)*(float*)ADDR(0x42018434); /* 0x420162B1: fmul dword ptr [0x42018434] */
    786     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x420162B7: fst dword ptr [ebp + 0xc] */
    787     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x420162BA: fstp dword ptr [eax + 8] */
    788     _st[0] += (double)*(float*)ADDR(edx + 0x54); /* 0x420162BD: fadd dword ptr [edx + 0x54] */
    789     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x420162C0: fstp dword ptr [eax] */
    790     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420162C2: fld dword ptr [ebp + 8] */
    791     _st[0] += (double)*(float*)ADDR(edx + 0x58); /* 0x420162C5: fadd dword ptr [edx + 0x58] */
    792     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x420162C8: fstp dword ptr [eax + 4] */
    793     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420162CB: fld dword ptr [ebp + 0xc] */
    794     _st[0] += (double)*(float*)ADDR(edx + 0x5C); /* 0x420162CE: fadd dword ptr [edx + 0x5c] */
    795     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x420162D1: fstp dword ptr [eax + 8] */
    796     RECOMP_ICALL(0x42016110u); /* 0x420162D4: call 0x42016110 */ /* not lifted */
    797     RECOMP_FLAGS_IN();
    798     edi = POP32_VAL(esp); /* 0x420162D9: pop edi */
    799     esi = POP32_VAL(esp); /* 0x420162DA: pop esi */
    800     ebx = POP32_VAL(esp); /* 0x420162DB: pop ebx */
    801     ebp = POP32_VAL(esp); /* 0x420162DC: pop ebp */
    802     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420162DD: ret 8 */
    803     RECOMP_REGS_OUT();
    804 }
    805 
    806 void sub_420162E0(void) {
    807     int _fpu_cmp = 0;
    808     uint32_t _cf = 0;
    809     int _df = 1;
    810     uint32_t _flag_k = FK_NONE;
    811     uint32_t _flag_a = 0, _flag_b = 0;
    812     uint32_t _itail_tgt = 0;
    813     RECOMP_REGS_LOCALS
    814     RECOMP_ENTER(0x420162E0u);
    815 
    816 L_420162E0:
    817     PUSH32(esp, ebp); /* 0x420162E0: push ebp */
    818     ebp = esp; /* 0x420162E1: mov ebp, esp */
    819     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u);
    820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    821     esp = esp - 0x44u; /* 0x420162E3: sub esp, 0x44 */
    822     _flag_k = FK_CMP;
    823     PUSH32(esp, ebx); /* 0x420162E6: push ebx */
    824     PUSH32(esp, esi); /* 0x420162E7: push esi */
    825     esi = MEM32(ebp + 0x10); /* 0x420162E8: mov esi, dword ptr [ebp + 0x10] */
    826     PUSH32(esp, edi); /* 0x420162EB: push edi */
    827     edi = ecx; /* 0x420162EC: mov edi, ecx */
    828     eax = edi + 0x90; /* 0x420162EE: lea eax, [edi + 0x90] */
    829     edx = MEM32(eax); /* 0x420162F4: mov edx, dword ptr [eax] */
    830     ecx = esi; /* 0x420162F6: mov ecx, esi */
    831     MEM32(ecx) = edx; /* 0x420162F8: mov dword ptr [ecx], edx */
    832     edx = MEM32(eax + 0x4); /* 0x420162FA: mov edx, dword ptr [eax + 4] */
    833     MEM32(ecx + 0x4) = edx; /* 0x420162FD: mov dword ptr [ecx + 4], edx */
    834     eax = MEM32(eax + 0x8); /* 0x42016300: mov eax, dword ptr [eax + 8] */
    835     MEM32(ecx + 0x8) = eax; /* 0x42016303: mov dword ptr [ecx + 8], eax */
    836     RECOMP_ICALL(0x4200FD10u); /* 0x42016306: call 0x4200fd10 */ /* not lifted */
    837     RECOMP_FLAGS_IN();
    838     _st[0] -= (double)*(float*)ADDR(0x420180D0); /* 0x4201630B: fsub dword ptr [0x420180d0] */
    839     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x42016311: fstp dword ptr [ebp + 0x10] */
    840     RECOMP_ICALL(0x4200FD10u); /* 0x42016314: call 0x4200fd10 */ /* not lifted */
    841     RECOMP_FLAGS_IN();
    842     _st[0] -= (double)*(float*)ADDR(0x420180D0); /* 0x42016319: fsub dword ptr [0x420180d0] */
    843     ecx = MEM32(ebp + 0x10); /* 0x4201631F: mov ecx, dword ptr [ebp + 0x10] */
    844     fp_push(_st[0]); /* 0x42016322: fld st(0) */
    845     MEM32(ebp + (-0x14)) = 0; /* 0x42016324: mov dword ptr [ebp - 0x14], 0 */
    846     _st[0] *= _st[1]; /* 0x4201632B: fmul st(1) */
    847     MEM32(ebp + (-0x10)) = ecx; /* 0x4201632D: mov dword ptr [ebp - 0x10], ecx */
    848     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x42016330: fld dword ptr [ebp + 0x10] */
    849     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x42016333: fmul dword ptr [ebp + 0x10] */
    850     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016336: faddp st(1) */
    851     _st[0] = sqrt(_st[0]); /* 0x42016338: fsqrt  */
    852     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x4201633A: fcom qword ptr [0x420180d8] */
    853     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016340: fnstsw ax */
    854     /* test HI8(eax), 0x40u */ /* 0x42016342: test ah, 0x40 */
    855     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
    856     _cf = 0;
    857     _flag_k = FK_NARROW(FK_TEST, 24);
    858     if (TEST_NZ(_flag_a, _flag_b)) goto L_4201635D; /* 0x42016345: jne 0x4201635d */
    859 L_42016347:
    860     _st[0] = (double)*(float*)ADDR(ebp + 0xC) / _st[0]; /* 0x42016347: fdivr dword ptr [ebp + 0xc] */
    861     MEM32(ebp + (-0x14)) = 0; /* 0x4201634A: mov dword ptr [ebp - 0x14], 0 */
    862     fp_push(_st[0]); /* 0x42016351: fld st(0) */
    863     { double _v = fp_pop(); _st[1] *= _v; } /* 0x42016353: fmulp st(2) */
    864     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x42016355: fmul dword ptr [ebp + 0x10] */
    865     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42016358: fstp dword ptr [ebp - 0x10] */
    866     goto L_4201635F; /* 0x4201635B: jmp 0x4201635f */
    867 L_4201635D:
    868     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201635D: fstp st(0) */
    869 L_4201635F:
    870     _st[0] += (double)*(float*)ADDR(esi); /* 0x4201635F: fadd dword ptr [esi] */
    871     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x6Cu);
    872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    873     edi = edi + 0x6Cu; /* 0x42016361: add edi, 0x6c */
    874     _flag_k = FK_ADD;
    875     edx = edi; /* 0x42016364: mov edx, edi */
    876     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x42016366: fstp dword ptr [esi] */
    877     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42016368: fld dword ptr [ebp - 0x14] */
    878     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x4201636B: fadd dword ptr [esi + 4] */
    879     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x4201636E: fstp dword ptr [esi + 4] */
    880     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42016371: fld dword ptr [ebp - 0x10] */
    881     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x42016374: fadd dword ptr [esi + 8] */
    882     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x42016377: fstp dword ptr [esi + 8] */
    883     eax = MEM32(edx); /* 0x4201637A: mov eax, dword ptr [edx] */
    884     ecx = MEM32(edx + 0x4); /* 0x4201637C: mov ecx, dword ptr [edx + 4] */
    885     MEM32(ebp + (-0x44)) = eax; /* 0x4201637F: mov dword ptr [ebp - 0x44], eax */
    886     eax = MEM32(edx + 0x8); /* 0x42016382: mov eax, dword ptr [edx + 8] */
    887     MEM32(ebp + (-0x40)) = ecx; /* 0x42016385: mov dword ptr [ebp - 0x40], ecx */
    888     ecx = MEM32(edx + 0xC); /* 0x42016388: mov ecx, dword ptr [edx + 0xc] */
    889     MEM32(ebp + (-0x38)) = ecx; /* 0x4201638B: mov dword ptr [ebp - 0x38], ecx */
    890     ecx = ebp + (-0x44); /* 0x4201638E: lea ecx, [ebp - 0x44] */
    891     MEM32(ebp + (-0x3C)) = eax; /* 0x42016391: mov dword ptr [ebp - 0x3c], eax */
    892     RECOMP_ICALL(MEM32(0x42018068)); /* 0x42016394: call dword ptr [0x42018068] */
    893     RECOMP_FLAGS_IN();
    894     ebx = eax; /* 0x4201639A: mov ebx, eax */
    895     eax = MEM32(ebx); /* 0x4201639C: mov eax, dword ptr [ebx] */
    896     MEM32(ebp + (-0x34)) = eax; /* 0x4201639E: mov dword ptr [ebp - 0x34], eax */
    897     ecx = MEM32(ebx + 0x4); /* 0x420163A1: mov ecx, dword ptr [ebx + 4] */
    898     MEM32(ebp + (-0x30)) = ecx; /* 0x420163A4: mov dword ptr [ebp - 0x30], ecx */
    899     edx = MEM32(ebx + 0x8); /* 0x420163A7: mov edx, dword ptr [ebx + 8] */
    900     MEM32(ebp + (-0x2C)) = edx; /* 0x420163AA: mov dword ptr [ebp - 0x2c], edx */
    901     ebx = MEM32(ebx + 0xC); /* 0x420163AD: mov ebx, dword ptr [ebx + 0xc] */
    902     MEM32(ebp + (-0x20)) = ecx; /* 0x420163B0: mov dword ptr [ebp - 0x20], ecx */
    903     PUSH32(esp, esi); /* 0x420163B3: push esi */
    904     ecx = ebp + (-0x24); /* 0x420163B4: lea ecx, [ebp - 0x24] */
    905     MEM32(ebp + (-0x28)) = ebx; /* 0x420163B7: mov dword ptr [ebp - 0x28], ebx */
    906     MEM32(ebp + (-0x24)) = eax; /* 0x420163BA: mov dword ptr [ebp - 0x24], eax */
    907     MEM32(ebp + (-0x1C)) = edx; /* 0x420163BD: mov dword ptr [ebp - 0x1c], edx */
    908     RECOMP_ICALL(MEM32(0x420180A4)); /* 0x420163C0: call dword ptr [0x420180a4] */
    909     RECOMP_FLAGS_IN();
    910     edx = MEM32(eax); /* 0x420163C6: mov edx, dword ptr [eax] */
    911     MEM32(ebp + (-0x18)) = edx; /* 0x420163C8: mov dword ptr [ebp - 0x18], edx */
    912     ecx = MEM32(eax + 0x4); /* 0x420163CB: mov ecx, dword ptr [eax + 4] */
    913     MEM32(ebp + (-0x14)) = ecx; /* 0x420163CE: mov dword ptr [ebp - 0x14], ecx */
    914     edx = MEM32(eax + 0x8); /* 0x420163D1: mov edx, dword ptr [eax + 8] */
    915     eax = ebp + (-0x18); /* 0x420163D4: lea eax, [ebp - 0x18] */
    916     PUSH32(esp, eax); /* 0x420163D7: push eax */
    917     ecx = ebp + (-0x24); /* 0x420163D8: lea ecx, [ebp - 0x24] */
    918     PUSH32(esp, ecx); /* 0x420163DB: push ecx */
    919     ecx = ebp + (-0x34); /* 0x420163DC: lea ecx, [ebp - 0x34] */
    920     MEM32(ebp + (-0x10)) = edx; /* 0x420163DF: mov dword ptr [ebp - 0x10], edx */
    921     RECOMP_ICALL(MEM32(0x420180B0)); /* 0x420163E2: call dword ptr [0x420180b0] */
    922     RECOMP_FLAGS_IN();
    923     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420163E8: fld dword ptr [ebp - 0x28] */
    924     edx = MEM32(eax); /* 0x420163EB: mov edx, dword ptr [eax] */
    925     _st[0] += _st[0]; /* 0x420163ED: fadd st(0), st(0) */
    926     MEM32(ebp + (-0xC)) = edx; /* 0x420163EF: mov dword ptr [ebp - 0xc], edx */
    927     ecx = MEM32(eax + 0x4); /* 0x420163F2: mov ecx, dword ptr [eax + 4] */
    928     MEM32(ebp + (-0x8)) = ecx; /* 0x420163F5: mov dword ptr [ebp - 8], ecx */
    929     edx = MEM32(eax + 0x8); /* 0x420163F8: mov edx, dword ptr [eax + 8] */
    930     PUSH32(esp, ecx); /* 0x420163FB: push ecx */
    931     ecx = ebp + (-0x18); /* 0x420163FC: lea ecx, [ebp - 0x18] */
    932     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x420163FF: fstp dword ptr [esp] */
    933     MEM32(ebp + (-0x4)) = edx; /* 0x42016402: mov dword ptr [ebp - 4], edx */
    934     RECOMP_ICALL(MEM32(0x42018084)); /* 0x42016405: call dword ptr [0x42018084] */
    935     RECOMP_FLAGS_IN();
    936     PUSH32(esp, 0x40000000u); /* 0x4201640B: push 0x40000000 */
    937     ecx = ebp + (-0xC); /* 0x42016410: lea ecx, [ebp - 0xc] */
    938     RECOMP_ICALL(MEM32(0x42018084)); /* 0x42016413: call dword ptr [0x42018084] */
    939     RECOMP_FLAGS_IN();
    940     eax = ebp + (-0x18); /* 0x42016419: lea eax, [ebp - 0x18] */
    941     PUSH32(esp, eax); /* 0x4201641C: push eax */
    942     ecx = esi; /* 0x4201641D: mov ecx, esi */
    943     RECOMP_ICALL(MEM32(0x4201808C)); /* 0x4201641F: call dword ptr [0x4201808c] */
    944     RECOMP_FLAGS_IN();
    945     ecx = ebp + (-0xC); /* 0x42016425: lea ecx, [ebp - 0xc] */
    946     PUSH32(esp, ecx); /* 0x42016428: push ecx */
    947     ecx = esi; /* 0x42016429: mov ecx, esi */
    948     RECOMP_ICALL(MEM32(0x4201808C)); /* 0x4201642B: call dword ptr [0x4201808c] */
    949     RECOMP_FLAGS_IN();
    950     edx = MEM32(0x42023218); /* 0x42016431: mov edx, dword ptr [0x42023218] */
    951     eax = MEM32(0x4202321C); /* 0x42016437: mov eax, dword ptr [0x4202321c] */
    952     ecx = MEM32(0x42023220); /* 0x4201643C: mov ecx, dword ptr [0x42023220] */
    953     MEM32(ebp + (-0x18)) = edx; /* 0x42016442: mov dword ptr [ebp - 0x18], edx */
    954     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42016445: fld dword ptr [ebp - 0x18] */
    955     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016448: fmul dword ptr [ebp + 8] */
    956     MEM32(ebp + (-0x14)) = eax; /* 0x4201644B: mov dword ptr [ebp - 0x14], eax */
    957     MEM32(ebp + (-0x10)) = ecx; /* 0x4201644E: mov dword ptr [ebp - 0x10], ecx */
    958     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42016451: fstp dword ptr [ebp - 0x18] */
    959     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42016454: fld dword ptr [ebp - 0x14] */
    960     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016457: fmul dword ptr [ebp + 8] */
    961     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x4201645A: fstp dword ptr [ebp - 0x14] */
    962     edx = MEM32(ebp + (-0x18)); /* 0x4201645D: mov edx, dword ptr [ebp - 0x18] */
    963     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42016460: fld dword ptr [ebp - 0x10] */
    964     eax = MEM32(ebp + (-0x14)); /* 0x42016463: mov eax, dword ptr [ebp - 0x14] */
    965     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016466: fmul dword ptr [ebp + 8] */
    966     MEM32(ebp + (-0xC)) = edx; /* 0x42016469: mov dword ptr [ebp - 0xc], edx */
    967     MEM32(ebp + (-0x8)) = eax; /* 0x4201646C: mov dword ptr [ebp - 8], eax */
    968     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x4201646F: fstp dword ptr [ebp - 0x10] */
    969     ecx = MEM32(ebp + (-0x10)); /* 0x42016472: mov ecx, dword ptr [ebp - 0x10] */
    970     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42016475: fld dword ptr [ebp - 0x18] */
    971     MEM32(ebp + (-0x4)) = ecx; /* 0x42016478: mov dword ptr [ebp - 4], ecx */
    972     _st[0] *= (double)*(float*)ADDR(0x420186E8); /* 0x4201647B: fmul dword ptr [0x420186e8] */
    973     PUSH32(esp, ecx); /* 0x42016481: push ecx */
    974     ecx = esi; /* 0x42016482: mov ecx, esi */
    975     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42016484: fstp dword ptr [ebp - 0xc] */
    976     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42016487: fld dword ptr [ebp - 8] */
    977     _st[0] *= (double)*(float*)ADDR(0x420186E8); /* 0x4201648A: fmul dword ptr [0x420186e8] */
    978     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42016490: fstp dword ptr [ebp - 8] */
    979     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42016493: fld dword ptr [ebp - 4] */
    980     _st[0] *= (double)*(float*)ADDR(0x420186E8); /* 0x42016496: fmul dword ptr [0x420186e8] */
    981     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x4201649C: fstp dword ptr [ebp - 4] */
    982     fp_push(*(float*)&MEM32(esi)); /* 0x4201649F: fld dword ptr [esi] */
    983     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x420164A1: fsub dword ptr [ebp - 0xc] */
    984     { float _v = (float)_st[0]; *(float*)ADDR(esi) = _v; } /* 0x420164A4: fst dword ptr [esi] */
    985     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x420164A6: fld dword ptr [esi + 4] */
    986     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x420164A9: fsub dword ptr [ebp - 8] */
    987     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x4) = _v; } /* 0x420164AC: fst dword ptr [esi + 4] */
    988     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x420164AF: fld dword ptr [esi + 8] */
    989     _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x420164B2: fsub dword ptr [ebp - 4] */
    990     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x420164B5: fst dword ptr [esi + 8] */
    991     fp_push(_st[0]); /* 0x420164B8: fld st(0) */
    992     _st[0] *= _st[1]; /* 0x420164BA: fmul st(1) */
    993     fp_push(_st[2]); /* 0x420164BC: fld st(2) */
    994     _st[0] *= _st[3]; /* 0x420164BE: fmul st(3) */
    995     { double _v = fp_pop(); _st[0] += _v; } /* 0x420164C0: faddp st(1) */
    996     fp_push(_st[3]); /* 0x420164C2: fld st(3) */
    997     _st[0] *= _st[4]; /* 0x420164C4: fmul st(4) */
    998     { double _v = fp_pop(); _st[0] += _v; } /* 0x420164C6: faddp st(1) */
    999     _st[0] = sqrt(_st[0]); /* 0x420164C8: fsqrt  */
   1000     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x420164CA: fstp st(3) */
   1001     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420164CC: fstp st(0) */
   1002     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420164CE: fstp st(0) */
   1003     _st[0] = (double)*(float*)ADDR(0x42018118) / _st[0]; /* 0x420164D0: fdivr dword ptr [0x42018118] */
   1004     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x420164D6: fstp dword ptr [esp] */
   1005     RECOMP_ICALL(MEM32(0x42018084)); /* 0x420164D9: call dword ptr [0x42018084] */
   1006     RECOMP_FLAGS_IN();
   1007     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420164DF: fld dword ptr [ebp + 8] */
   1008     _st[0] *= (double)*(float*)ADDR(esi); /* 0x420164E2: fmul dword ptr [esi] */
   1009     edx = edi; /* 0x420164E4: mov edx, edi */
   1010     PUSH32(esp, esi); /* 0x420164E6: push esi */
   1011     _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x420164E7: fadd dword ptr [ebp - 0xc] */
   1012     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420164EA: fstp dword ptr [esi] */
   1013     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420164EC: fld dword ptr [ebp + 8] */
   1014     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x420164EF: fmul dword ptr [esi + 4] */
   1015     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x420164F2: fadd dword ptr [ebp - 8] */
   1016     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420164F5: fstp dword ptr [esi + 4] */
   1017     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420164F8: fld dword ptr [ebp + 8] */
   1018     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x420164FB: fmul dword ptr [esi + 8] */
   1019     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x420164FE: fadd dword ptr [ebp - 4] */
   1020     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x42016501: fstp dword ptr [esi + 8] */
   1021     eax = MEM32(edx); /* 0x42016504: mov eax, dword ptr [edx] */
   1022     ecx = MEM32(edx + 0x4); /* 0x42016506: mov ecx, dword ptr [edx + 4] */
   1023     edx = MEM32(edx + 0x8); /* 0x42016509: mov edx, dword ptr [edx + 8] */
   1024     MEM32(ebp + (-0x20)) = ecx; /* 0x4201650C: mov dword ptr [ebp - 0x20], ecx */
   1025     ecx = ebp + (-0x24); /* 0x4201650F: lea ecx, [ebp - 0x24] */
   1026     MEM32(ebp + (-0x24)) = eax; /* 0x42016512: mov dword ptr [ebp - 0x24], eax */
   1027     MEM32(ebp + (-0x1C)) = edx; /* 0x42016515: mov dword ptr [ebp - 0x1c], edx */
   1028     RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42016518: call dword ptr [0x420180a4] */
   1029     RECOMP_FLAGS_IN();
   1030     ecx = MEM32(eax); /* 0x4201651E: mov ecx, dword ptr [eax] */
   1031     MEM32(ebp + (-0x18)) = ecx; /* 0x42016520: mov dword ptr [ebp - 0x18], ecx */
   1032     edx = MEM32(eax + 0x4); /* 0x42016523: mov edx, dword ptr [eax + 4] */
   1033     MEM32(ebp + (-0x14)) = edx; /* 0x42016526: mov dword ptr [ebp - 0x14], edx */
   1034     eax = MEM32(eax + 0x8); /* 0x42016529: mov eax, dword ptr [eax + 8] */
   1035     ecx = edi; /* 0x4201652C: mov ecx, edi */
   1036     edx = MEM32(ecx); /* 0x4201652E: mov edx, dword ptr [ecx] */
   1037     MEM32(ebp + (-0x10)) = eax; /* 0x42016530: mov dword ptr [ebp - 0x10], eax */
   1038     eax = MEM32(ecx + 0x4); /* 0x42016533: mov eax, dword ptr [ecx + 4] */
   1039     ecx = MEM32(ecx + 0x8); /* 0x42016536: mov ecx, dword ptr [ecx + 8] */
   1040     MEM32(ebp + (-0x24)) = edx; /* 0x42016539: mov dword ptr [ebp - 0x24], edx */
   1041     MEM32(ebp + (-0x20)) = eax; /* 0x4201653C: mov dword ptr [ebp - 0x20], eax */
   1042     edx = ebp + (-0x18); /* 0x4201653F: lea edx, [ebp - 0x18] */
   1043     MEM32(ebp + (-0x1C)) = ecx; /* 0x42016542: mov dword ptr [ebp - 0x1c], ecx */
   1044     PUSH32(esp, edx); /* 0x42016545: push edx */
   1045     ecx = ebp + (-0x24); /* 0x42016546: lea ecx, [ebp - 0x24] */
   1046     RECOMP_ICALL(MEM32(0x420180A4)); /* 0x42016549: call dword ptr [0x420180a4] */
   1047     RECOMP_FLAGS_IN();
   1048     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x4201654F: fld dword ptr [edi + 0xc] */
   1049     ecx = MEM32(eax); /* 0x42016552: mov ecx, dword ptr [eax] */
   1050     _st[0] += _st[0]; /* 0x42016554: fadd st(0), st(0) */
   1051     MEM32(ebp + (-0xC)) = ecx; /* 0x42016556: mov dword ptr [ebp - 0xc], ecx */
   1052     edx = MEM32(eax + 0x4); /* 0x42016559: mov edx, dword ptr [eax + 4] */
   1053     MEM32(ebp + (-0x8)) = edx; /* 0x4201655C: mov dword ptr [ebp - 8], edx */
   1054     eax = MEM32(eax + 0x8); /* 0x4201655F: mov eax, dword ptr [eax + 8] */
   1055     PUSH32(esp, ecx); /* 0x42016562: push ecx */
   1056     ecx = ebp + (-0x18); /* 0x42016563: lea ecx, [ebp - 0x18] */
   1057     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x42016566: fstp dword ptr [esp] */
   1058     MEM32(ebp + (-0x4)) = eax; /* 0x42016569: mov dword ptr [ebp - 4], eax */
   1059     RECOMP_ICALL(MEM32(0x42018084)); /* 0x4201656C: call dword ptr [0x42018084] */
   1060     RECOMP_FLAGS_IN();
   1061     PUSH32(esp, 0x40000000u); /* 0x42016572: push 0x40000000 */
   1062     ecx = ebp + (-0xC); /* 0x42016577: lea ecx, [ebp - 0xc] */
   1063     RECOMP_ICALL(MEM32(0x42018084)); /* 0x4201657A: call dword ptr [0x42018084] */
   1064     RECOMP_FLAGS_IN();
   1065     ecx = ebp + (-0x18); /* 0x42016580: lea ecx, [ebp - 0x18] */
   1066     PUSH32(esp, ecx); /* 0x42016583: push ecx */
   1067     ecx = esi; /* 0x42016584: mov ecx, esi */
   1068     RECOMP_ICALL(MEM32(0x4201808C)); /* 0x42016586: call dword ptr [0x4201808c] */
   1069     RECOMP_FLAGS_IN();
   1070     edx = ebp + (-0xC); /* 0x4201658C: lea edx, [ebp - 0xc] */
   1071     PUSH32(esp, edx); /* 0x4201658F: push edx */
   1072     ecx = esi; /* 0x42016590: mov ecx, esi */
   1073     RECOMP_ICALL(MEM32(0x4201808C)); /* 0x42016592: call dword ptr [0x4201808c] */
   1074     RECOMP_FLAGS_IN();
   1075     edi = POP32_VAL(esp); /* 0x42016598: pop edi */
   1076     esi = POP32_VAL(esp); /* 0x42016599: pop esi */
   1077     eax = 2; /* 0x4201659A: mov eax, 2 */
   1078     ebx = POP32_VAL(esp); /* 0x4201659F: pop ebx */
   1079     esp = ebp; /* 0x420165A0: mov esp, ebp */
   1080     ebp = POP32_VAL(esp); /* 0x420165A2: pop ebp */
   1081     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x420165A3: ret 0xc */
   1082     RECOMP_REGS_OUT();
   1083 }
   1084 
   1085 void sub_420165B0(void) {
   1086     int _fpu_cmp = 0;
   1087     uint32_t _cf = 0;
   1088     int _df = 1;
   1089     uint32_t _flag_k = FK_NONE;
   1090     uint32_t _flag_a = 0, _flag_b = 0;
   1091     uint32_t _itail_tgt = 0;
   1092     RECOMP_REGS_LOCALS
   1093     RECOMP_ENTER(0x420165B0u);
   1094 
   1095 L_420165B0:
   1096     PUSH32(esp, ebp); /* 0x420165B0: push ebp */
   1097     ebp = esp; /* 0x420165B1: mov ebp, esp */
   1098     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1099     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1100     esp = esp - 0xCu; /* 0x420165B3: sub esp, 0xc */
   1101     _flag_k = FK_CMP;
   1102     eax = MEM32(ebp + 0x8); /* 0x420165B6: mov eax, dword ptr [ebp + 8] */
   1103     edx = MEM32(eax); /* 0x420165B9: mov edx, dword ptr [eax] */
   1104     PUSH32(esp, esi); /* 0x420165BB: push esi */
   1105     esi = MEM32(ebp + 0x10); /* 0x420165BC: mov esi, dword ptr [ebp + 0x10] */
   1106     PUSH32(esp, edi); /* 0x420165BF: push edi */
   1107     edi = ecx; /* 0x420165C0: mov edi, ecx */
   1108     ecx = esi; /* 0x420165C2: mov ecx, esi */
   1109     MEM32(ecx) = edx; /* 0x420165C4: mov dword ptr [ecx], edx */
   1110     edx = MEM32(eax + 0x4); /* 0x420165C6: mov edx, dword ptr [eax + 4] */
   1111     MEM32(ecx + 0x4) = edx; /* 0x420165C9: mov dword ptr [ecx + 4], edx */
   1112     eax = MEM32(eax + 0x8); /* 0x420165CC: mov eax, dword ptr [eax + 8] */
   1113     MEM32(ecx + 0x8) = eax; /* 0x420165CF: mov dword ptr [ecx + 8], eax */
   1114     PUSH32(esp, esi); /* 0x420165D2: push esi */
   1115     ecx = edi; /* 0x420165D3: mov ecx, edi */
   1116     RECOMP_ICALL(0x42011880u); /* 0x420165D5: call 0x42011880 */ /* not lifted */
   1117     RECOMP_FLAGS_IN();
   1118     fp_push(*(float*)&MEM32(esi)); /* 0x420165DA: fld dword ptr [esi] */
   1119     _st[0] -= (double)*(float*)ADDR(ebp + 0xC); /* 0x420165DC: fsub dword ptr [ebp + 0xc] */
   1120     fp_push(*(float*)&MEM32(edi + 0x68)); /* 0x420165DF: fld dword ptr [edi + 0x68] */
   1121     fp_push(*(float*)&MEM32(edi + 0x64)); /* 0x420165E2: fld dword ptr [edi + 0x64] */
   1122     fp_push(*(float*)&MEM32(edi + 0x60)); /* 0x420165E5: fld dword ptr [edi + 0x60] */
   1123     fp_push(_st[3]); /* 0x420165E8: fld st(3) */
   1124     _st[0] *= _st[4]; /* 0x420165EA: fmul st(4) */
   1125     fp_push(_st[1]); /* 0x420165EC: fld st(1) */
   1126     _st[0] *= _st[2]; /* 0x420165EE: fmul st(2) */
   1127     fp_push(_st[3]); /* 0x420165F0: fld st(3) */
   1128     _st[0] *= _st[4]; /* 0x420165F2: fmul st(4) */
   1129     { double _v = fp_pop(); _st[0] += _v; } /* 0x420165F4: faddp st(1) */
   1130     fp_push(_st[4]); /* 0x420165F6: fld st(4) */
   1131     _st[0] *= _st[5]; /* 0x420165F8: fmul st(5) */
   1132     { double _v = fp_pop(); _st[0] += _v; } /* 0x420165FA: faddp st(1) */
   1133     _st[0] *= (double)*(float*)ADDR(0x420186EC); /* 0x420165FC: fmul dword ptr [0x420186ec] */
   1134     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42016602: fcompp  */
   1135     fp_pop(); fp_pop();
   1136     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016604: fstp st(0) */
   1137     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016606: fstp st(0) */
   1138     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016608: fnstsw ax */
   1139     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201660A: fstp st(0) */
   1140     /* test HI8(eax), 1 */ /* 0x4201660C: test ah, 1 */
   1141     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1142     _cf = 0;
   1143     _flag_k = FK_NARROW(FK_TEST, 24);
   1144     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201660F: fstp st(0) */
   1145     if (TEST_NZ(_flag_a, _flag_b)) goto L_420166F0; /* 0x42016611: jne 0x420166f0 */
   1146 L_42016617:
   1147     fp_push(*(float*)&MEM32(esi)); /* 0x42016617: fld dword ptr [esi] */
   1148     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42016619: fcomp dword ptr [0x420180f8] */
   1149     fp_pop();
   1150     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201661F: fnstsw ax */
   1151     /* test HI8(eax), 1 */ /* 0x42016621: test ah, 1 */
   1152     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1153     _cf = 0;
   1154     _flag_k = FK_NARROW(FK_TEST, 24);
   1155     if (TEST_NZ(_flag_a, _flag_b)) goto L_420166F0; /* 0x42016624: jne 0x420166f0 */
   1156 L_4201662A:
   1157     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x4201662A: fld dword ptr [ebp + 0xc] */
   1158     _st[0] += (double)*(float*)ADDR(edi + 0x48); /* 0x4201662D: fadd dword ptr [edi + 0x48] */
   1159     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42016630: fstp dword ptr [ebp + 8] */
   1160     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x42016633: fld dword ptr [esi + 4] */
   1161     _st[0] = fabs(_st[0]); /* 0x42016636: fabs  */
   1162     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016638: fld dword ptr [ebp + 8] */
   1163     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x4201663B: fcompp  */
   1164     fp_pop(); fp_pop();
   1165     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201663D: fnstsw ax */
   1166     /* test HI8(eax), 1 */ /* 0x4201663F: test ah, 1 */
   1167     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1168     _cf = 0;
   1169     _flag_k = FK_NARROW(FK_TEST, 24);
   1170     if (TEST_NZ(_flag_a, _flag_b)) goto L_420166F0; /* 0x42016642: jne 0x420166f0 */
   1171 L_42016648:
   1172     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x42016648: fld dword ptr [esi + 8] */
   1173     _st[0] = fabs(_st[0]); /* 0x4201664B: fabs  */
   1174     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x4201664D: fld dword ptr [ebp + 8] */
   1175     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42016650: fcompp  */
   1176     fp_pop(); fp_pop();
   1177     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016652: fnstsw ax */
   1178     /* test HI8(eax), 1 */ /* 0x42016654: test ah, 1 */
   1179     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1180     _cf = 0;
   1181     _flag_k = FK_NARROW(FK_TEST, 24);
   1182     if (TEST_NZ(_flag_a, _flag_b)) goto L_420166F0; /* 0x42016657: jne 0x420166f0 */
   1183 L_4201665D:
   1184     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x4201665D: fld dword ptr [esi + 8] */
   1185     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x42016660: fld dword ptr [esi + 4] */
   1186     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016663: fld dword ptr [ebp + 8] */
   1187     fp_push(_st[2]); /* 0x42016666: fld st(2) */
   1188     _st[0] *= _st[3]; /* 0x42016668: fmul st(3) */
   1189     fp_push(_st[2]); /* 0x4201666A: fld st(2) */
   1190     _st[0] *= _st[3]; /* 0x4201666C: fmul st(3) */
   1191     { double _v = fp_pop(); _st[0] += _v; } /* 0x4201666E: faddp st(1) */
   1192     fp_push(_st[1]); /* 0x42016670: fld st(1) */
   1193     _st[0] *= _st[2]; /* 0x42016672: fmul st(2) */
   1194     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42016674: fcompp  */
   1195     fp_pop(); fp_pop();
   1196     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016676: fstp st(0) */
   1197     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016678: fnstsw ax */
   1198     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201667A: fstp st(0) */
   1199     /* test HI8(eax), 1 */ /* 0x4201667C: test ah, 1 */
   1200     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1201     _cf = 0;
   1202     _flag_k = FK_NARROW(FK_TEST, 24);
   1203     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201667F: fstp st(0) */
   1204     if (TEST_NZ(_flag_a, _flag_b)) goto L_420166F0; /* 0x42016681: jne 0x420166f0 */
   1205 L_42016683:
   1206     MEM32(esi) = 0; /* 0x42016683: mov dword ptr [esi], 0 */
   1207     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x42016689: fld dword ptr [esi + 8] */
   1208     fp_push(_st[0]); /* 0x4201668C: fld st(0) */
   1209     PUSH32(esp, esi); /* 0x4201668E: push esi */
   1210     { double _v = fp_pop(); _st[0] *= _v; } /* 0x4201668F: fmulp st(1) */
   1211     ecx = edi; /* 0x42016691: mov ecx, edi */
   1212     MEM32(esi) = 0; /* 0x42016693: mov dword ptr [esi], 0 */
   1213     _st[0] = sqrt(_st[0]); /* 0x42016699: fsqrt  */
   1214     _st[0] = (double)*(float*)ADDR(ebp + 0xC) / _st[0]; /* 0x4201669B: fdivr dword ptr [ebp + 0xc] */
   1215     _st[0] = -_st[0]; /* 0x4201669E: fchs  */
   1216     fp_push(_st[0]); /* 0x420166A0: fld st(0) */
   1217     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x420166A2: fmul dword ptr [esi + 4] */
   1218     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420166A5: fstp dword ptr [esi + 4] */
   1219     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x420166A8: fmul dword ptr [esi + 8] */
   1220     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x420166AB: fstp dword ptr [esi + 8] */
   1221     RECOMP_ICALL(0x42011A00u); /* 0x420166AE: call 0x42011a00 */ /* not lifted */
   1222     RECOMP_FLAGS_IN();
   1223     fp_push(*(float*)&MEM32(esi)); /* 0x420166B3: fld dword ptr [esi] */
   1224     eax = 2; /* 0x420166B5: mov eax, 2 */
   1225     _st[0] -= (double)*(float*)ADDR(edi + 0x54); /* 0x420166BA: fsub dword ptr [edi + 0x54] */
   1226     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420166BD: fstp dword ptr [esi] */
   1227     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x420166BF: fld dword ptr [esi + 4] */
   1228     _st[0] -= (double)*(float*)ADDR(edi + 0x58); /* 0x420166C2: fsub dword ptr [edi + 0x58] */
   1229     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420166C5: fstp dword ptr [esi + 4] */
   1230     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x420166C8: fld dword ptr [esi + 8] */
   1231     _st[0] -= (double)*(float*)ADDR(edi + 0x5C); /* 0x420166CB: fsub dword ptr [edi + 0x5c] */
   1232     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x420166CE: fstp dword ptr [esi + 8] */
   1233     fp_push(*(float*)&MEM32(edi + 0x38)); /* 0x420166D1: fld dword ptr [edi + 0x38] */
   1234     edi = POP32_VAL(esp); /* 0x420166D4: pop edi */
   1235     fp_push(_st[0]); /* 0x420166D5: fld st(0) */
   1236     _st[0] *= (double)*(float*)ADDR(esi); /* 0x420166D7: fmul dword ptr [esi] */
   1237     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420166D9: fstp dword ptr [esi] */
   1238     fp_push(_st[0]); /* 0x420166DB: fld st(0) */
   1239     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x420166DD: fmul dword ptr [esi + 4] */
   1240     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420166E0: fstp dword ptr [esi + 4] */
   1241     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x420166E3: fmul dword ptr [esi + 8] */
   1242     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x420166E6: fstp dword ptr [esi + 8] */
   1243     esi = POP32_VAL(esp); /* 0x420166E9: pop esi */
   1244     esp = ebp; /* 0x420166EA: mov esp, ebp */
   1245     ebp = POP32_VAL(esp); /* 0x420166EC: pop ebp */
   1246     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x420166ED: ret 0xc */
   1247 L_420166F0:
   1248     MEM32(ebp + (-0xC)) = 0; /* 0x420166F0: mov dword ptr [ebp - 0xc], 0 */
   1249     ecx = MEM32(ebp + (-0xC)); /* 0x420166F7: mov ecx, dword ptr [ebp - 0xc] */
   1250     MEM32(ebp + (-0x8)) = 0; /* 0x420166FA: mov dword ptr [ebp - 8], 0 */
   1251     edx = MEM32(ebp + (-0x8)); /* 0x42016701: mov edx, dword ptr [ebp - 8] */
   1252     MEM32(esi) = ecx; /* 0x42016704: mov dword ptr [esi], ecx */
   1253     MEM32(ebp + (-0x4)) = 0; /* 0x42016706: mov dword ptr [ebp - 4], 0 */
   1254     eax = MEM32(ebp + (-0x4)); /* 0x4201670D: mov eax, dword ptr [ebp - 4] */
   1255     MEM32(esi + 0x4) = edx; /* 0x42016710: mov dword ptr [esi + 4], edx */
   1256     MEM32(esi + 0x8) = eax; /* 0x42016713: mov dword ptr [esi + 8], eax */
   1257     edi = POP32_VAL(esp); /* 0x42016716: pop edi */
   1258     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1259     eax = 0; /* 0x42016717: xor eax, eax */
   1260     _cf = 0;
   1261     _flag_k = FK_TEST;
   1262     esi = POP32_VAL(esp); /* 0x42016719: pop esi */
   1263     esp = ebp; /* 0x4201671A: mov esp, ebp */
   1264     ebp = POP32_VAL(esp); /* 0x4201671C: pop ebp */
   1265     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4201671D: ret 0xc */
   1266     RECOMP_REGS_OUT();
   1267 }
   1268 
   1269 void sub_42016720(void) {
   1270     int _fpu_cmp = 0;
   1271     uint32_t _cf = 0;
   1272     int _df = 1;
   1273     uint32_t _flag_k = FK_NONE;
   1274     uint32_t _flag_a = 0, _flag_b = 0;
   1275     uint32_t _itail_tgt = 0;
   1276     RECOMP_REGS_LOCALS
   1277     RECOMP_ENTER(0x42016720u);
   1278 
   1279 L_42016720:
   1280     PUSH32(esp, ebp); /* 0x42016720: push ebp */
   1281     ebp = esp; /* 0x42016721: mov ebp, esp */
   1282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1284     esp = esp - 0x18u; /* 0x42016723: sub esp, 0x18 */
   1285     _flag_k = FK_CMP;
   1286     PUSH32(esp, esi); /* 0x42016726: push esi */
   1287     PUSH32(esp, edi); /* 0x42016727: push edi */
   1288     edi = ecx; /* 0x42016728: mov edi, ecx */
   1289     ecx = MEM32(ebp + 0x8); /* 0x4201672A: mov ecx, dword ptr [ebp + 8] */
   1290     eax = MEM32(ecx + 0x8); /* 0x4201672D: mov eax, dword ptr [ecx + 8] */
   1291     /* test eax, eax */ /* 0x42016730: test eax, eax */
   1292     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1293     _cf = 0;
   1294     _flag_k = FK_TEST;
   1295     if (TEST_Z(_flag_a, _flag_b)) goto L_4201674B; /* 0x42016732: je 0x4201674b */
   1296 L_42016734:
   1297     edx = MEM32(ecx + 0xC); /* 0x42016734: mov edx, dword ptr [ecx + 0xc] */
   1298     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1300     edx = edx - eax; /* 0x42016737: sub edx, eax */
   1301     _flag_k = FK_CMP;
   1302     eax = 0x2AAAAAABu; /* 0x42016739: mov eax, 0x2aaaaaab */
   1303     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x4201673E: imul edx */
   1304       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1305       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1306     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42016740: sar edx, 1 */
   1307     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1308     edx = (uint32_t)((int32_t)edx >> 1u);
   1309     eax = edx; /* 0x42016742: mov eax, edx */
   1310     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42016744: shr eax, 0x1f */
   1311     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1312     eax = eax >> 31u; /* 0x42016744: shr eax, 0x1f */
   1313     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1314     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1315     edx = edx + eax; /* 0x42016747: add edx, eax */
   1316     _flag_k = FK_ADD;
   1317     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NE)) goto L_42016755; /* 0x42016749: jne 0x42016755 */
   1318 L_4201674B:
   1319     edi = POP32_VAL(esp); /* 0x4201674B: pop edi */
   1320     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1321     eax = 0; /* 0x4201674C: xor eax, eax */
   1322     _cf = 0;
   1323     _flag_k = FK_TEST;
   1324     esi = POP32_VAL(esp); /* 0x4201674E: pop esi */
   1325     esp = ebp; /* 0x4201674F: mov esp, ebp */
   1326     ebp = POP32_VAL(esp); /* 0x42016751: pop ebp */
   1327     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016752: ret 8 */
   1328 L_42016755:
   1329     esi = MEM32(ebp + 0xC); /* 0x42016755: mov esi, dword ptr [ebp + 0xc] */
   1330     PUSH32(esp, ebx); /* 0x42016758: push ebx */
   1331     edx = edi + 0x60; /* 0x42016759: lea edx, [edi + 0x60] */
   1332     ebx = MEM32(edx); /* 0x4201675C: mov ebx, dword ptr [edx] */
   1333     eax = esi; /* 0x4201675E: mov eax, esi */
   1334     MEM32(eax) = ebx; /* 0x42016760: mov dword ptr [eax], ebx */
   1335     ebx = MEM32(edx + 0x4); /* 0x42016762: mov ebx, dword ptr [edx + 4] */
   1336     MEM32(eax + 0x4) = ebx; /* 0x42016765: mov dword ptr [eax + 4], ebx */
   1337     edx = MEM32(edx + 0x8); /* 0x42016768: mov edx, dword ptr [edx + 8] */
   1338     MEM32(eax + 0x8) = edx; /* 0x4201676B: mov dword ptr [eax + 8], edx */
   1339     fp_push(*(float*)&MEM32(edi + 0x40)); /* 0x4201676E: fld dword ptr [edi + 0x40] */
   1340     fp_push(_st[0]); /* 0x42016771: fld st(0) */
   1341     eax = ebp + (-0x18); /* 0x42016773: lea eax, [ebp - 0x18] */
   1342     _st[0] *= (double)*(float*)ADDR(esi); /* 0x42016776: fmul dword ptr [esi] */
   1343     PUSH32(esp, eax); /* 0x42016778: push eax */
   1344     edx = ebp + (-0xC); /* 0x42016779: lea edx, [ebp - 0xc] */
   1345     PUSH32(esp, edx); /* 0x4201677C: push edx */
   1346     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x4201677D: fst dword ptr [ebp + 8] */
   1347     PUSH32(esp, esi); /* 0x42016780: push esi */
   1348     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x42016781: fstp dword ptr [esi] */
   1349     MEM32(ebp + (-0xC)) = 0; /* 0x42016783: mov dword ptr [ebp - 0xc], 0 */
   1350     MEM32(ebp + (-0x8)) = 0; /* 0x4201678A: mov dword ptr [ebp - 8], 0 */
   1351     fp_push(_st[0]); /* 0x42016791: fld st(0) */
   1352     MEM32(ebp + (-0x4)) = 0; /* 0x42016793: mov dword ptr [ebp - 4], 0 */
   1353     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x4201679A: fmul dword ptr [esi + 4] */
   1354     MEM32(ebp + (-0x18)) = 0; /* 0x4201679D: mov dword ptr [ebp - 0x18], 0 */
   1355     MEM32(ebp + (-0x14)) = 0; /* 0x420167A4: mov dword ptr [ebp - 0x14], 0 */
   1356     MEM32(ebp + (-0x10)) = 0; /* 0x420167AB: mov dword ptr [ebp - 0x10], 0 */
   1357     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x420167B2: fst dword ptr [ebp + 0xc] */
   1358     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420167B5: fstp dword ptr [esi + 4] */
   1359     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x420167B8: fmul dword ptr [esi + 8] */
   1360     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x420167BB: fst dword ptr [esi + 8] */
   1361     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420167BE: fld dword ptr [ebp + 8] */
   1362     _st[0] += (double)*(float*)ADDR(edi + 0x54); /* 0x420167C1: fadd dword ptr [edi + 0x54] */
   1363     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420167C4: fstp dword ptr [esi] */
   1364     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420167C6: fld dword ptr [ebp + 0xc] */
   1365     _st[0] += (double)*(float*)ADDR(edi + 0x58); /* 0x420167C9: fadd dword ptr [edi + 0x58] */
   1366     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420167CC: fstp dword ptr [esi + 4] */
   1367     _st[0] += (double)*(float*)ADDR(edi + 0x5C); /* 0x420167CF: fadd dword ptr [edi + 0x5c] */
   1368     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x420167D2: fstp dword ptr [esi + 8] */
   1369     RECOMP_ICALL(0x42008620u); /* 0x420167D5: call 0x42008620 */ /* not lifted */
   1370     RECOMP_FLAGS_IN();
   1371     /* test LO8(eax), LO8(eax) */ /* 0x420167DA: test al, al */
   1372     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1373     _cf = 0;
   1374     _flag_k = FK_NARROW(FK_TEST, 24);
   1375     ebx = POP32_VAL(esp); /* 0x420167DC: pop ebx */
   1376     PUSH32(esp, esi); /* 0x420167DD: push esi */
   1377     if (TEST_NZ(_flag_a, _flag_b)) goto L_420167F3; /* 0x420167DE: jne 0x420167f3 */
   1378 L_420167E0:
   1379     eax = ebp + (-0xC); /* 0x420167E0: lea eax, [ebp - 0xc] */
   1380     PUSH32(esp, eax); /* 0x420167E3: push eax */
   1381     ecx = edi; /* 0x420167E4: mov ecx, edi */
   1382     RECOMP_ICALL(0x42015A40u); /* 0x420167E6: call 0x42015a40 */ /* not lifted */
   1383     RECOMP_FLAGS_IN();
   1384     edi = POP32_VAL(esp); /* 0x420167EB: pop edi */
   1385     esi = POP32_VAL(esp); /* 0x420167EC: pop esi */
   1386     esp = ebp; /* 0x420167ED: mov esp, ebp */
   1387     ebp = POP32_VAL(esp); /* 0x420167EF: pop ebp */
   1388     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420167F0: ret 8 */
   1389 L_420167F3:
   1390     ecx = edi; /* 0x420167F3: mov ecx, edi */
   1391     RECOMP_ICALL(0x420159A0u); /* 0x420167F5: call 0x420159a0 */ /* not lifted */
   1392     RECOMP_FLAGS_IN();
   1393     edi = POP32_VAL(esp); /* 0x420167FA: pop edi */
   1394     esi = POP32_VAL(esp); /* 0x420167FB: pop esi */
   1395     esp = ebp; /* 0x420167FC: mov esp, ebp */
   1396     ebp = POP32_VAL(esp); /* 0x420167FE: pop ebp */
   1397     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420167FF: ret 8 */
   1398     RECOMP_REGS_OUT();
   1399 }
   1400 
   1401 void sub_420167A4(void) {
   1402     int _fpu_cmp = 0;
   1403     uint32_t _cf = 0;
   1404     int _df = 1;
   1405     uint32_t _flag_k = FK_NONE;
   1406     uint32_t _flag_a = 0, _flag_b = 0;
   1407     uint32_t _itail_tgt = 0;
   1408     RECOMP_REGS_LOCALS
   1409     RECOMP_ENTER(0x420167A4u);
   1410 
   1411 L_420167A4:
   1412     MEM32(ebp + (-0x14)) = 0; /* 0x420167A4: mov dword ptr [ebp - 0x14], 0 */
   1413     MEM32(ebp + (-0x10)) = 0; /* 0x420167AB: mov dword ptr [ebp - 0x10], 0 */
   1414     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x420167B2: fst dword ptr [ebp + 0xc] */
   1415     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420167B5: fstp dword ptr [esi + 4] */
   1416     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x420167B8: fmul dword ptr [esi + 8] */
   1417     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x420167BB: fst dword ptr [esi + 8] */
   1418     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420167BE: fld dword ptr [ebp + 8] */
   1419     _st[0] += (double)*(float*)ADDR(edi + 0x54); /* 0x420167C1: fadd dword ptr [edi + 0x54] */
   1420     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420167C4: fstp dword ptr [esi] */
   1421     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420167C6: fld dword ptr [ebp + 0xc] */
   1422     _st[0] += (double)*(float*)ADDR(edi + 0x58); /* 0x420167C9: fadd dword ptr [edi + 0x58] */
   1423     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420167CC: fstp dword ptr [esi + 4] */
   1424     _st[0] += (double)*(float*)ADDR(edi + 0x5C); /* 0x420167CF: fadd dword ptr [edi + 0x5c] */
   1425     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x420167D2: fstp dword ptr [esi + 8] */
   1426     RECOMP_ICALL(0x42008620u); /* 0x420167D5: call 0x42008620 */ /* not lifted */
   1427     RECOMP_FLAGS_IN();
   1428     /* test LO8(eax), LO8(eax) */ /* 0x420167DA: test al, al */
   1429     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1430     _cf = 0;
   1431     _flag_k = FK_NARROW(FK_TEST, 24);
   1432     ebx = POP32_VAL(esp); /* 0x420167DC: pop ebx */
   1433     PUSH32(esp, esi); /* 0x420167DD: push esi */
   1434     if (TEST_NZ(_flag_a, _flag_b)) goto L_420167F3; /* 0x420167DE: jne 0x420167f3 */
   1435 L_420167E0:
   1436     eax = ebp + (-0xC); /* 0x420167E0: lea eax, [ebp - 0xc] */
   1437     PUSH32(esp, eax); /* 0x420167E3: push eax */
   1438     ecx = edi; /* 0x420167E4: mov ecx, edi */
   1439     RECOMP_ICALL(0x42015A40u); /* 0x420167E6: call 0x42015a40 */ /* not lifted */
   1440     RECOMP_FLAGS_IN();
   1441     edi = POP32_VAL(esp); /* 0x420167EB: pop edi */
   1442     esi = POP32_VAL(esp); /* 0x420167EC: pop esi */
   1443     esp = ebp; /* 0x420167ED: mov esp, ebp */
   1444     ebp = POP32_VAL(esp); /* 0x420167EF: pop ebp */
   1445     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420167F0: ret 8 */
   1446 L_420167F3:
   1447     ecx = edi; /* 0x420167F3: mov ecx, edi */
   1448     RECOMP_ICALL(0x420159A0u); /* 0x420167F5: call 0x420159a0 */ /* not lifted */
   1449     RECOMP_FLAGS_IN();
   1450     edi = POP32_VAL(esp); /* 0x420167FA: pop edi */
   1451     esi = POP32_VAL(esp); /* 0x420167FB: pop esi */
   1452     esp = ebp; /* 0x420167FC: mov esp, ebp */
   1453     ebp = POP32_VAL(esp); /* 0x420167FE: pop ebp */
   1454     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420167FF: ret 8 */
   1455     RECOMP_REGS_OUT();
   1456 }
   1457 
   1458 void sub_42016810(void) {
   1459     int _fpu_cmp = 0;
   1460     uint32_t _cf = 0;
   1461     int _df = 1;
   1462     uint32_t _flag_k = FK_NONE;
   1463     uint32_t _flag_a = 0, _flag_b = 0;
   1464     uint32_t _itail_tgt = 0;
   1465     RECOMP_REGS_LOCALS
   1466     RECOMP_ENTER(0x42016810u);
   1467 
   1468 L_42016810:
   1469     PUSH32(esp, ebp); /* 0x42016810: push ebp */
   1470     ebp = esp; /* 0x42016811: mov ebp, esp */
   1471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1473     esp = esp - 0x1Cu; /* 0x42016813: sub esp, 0x1c */
   1474     _flag_k = FK_CMP;
   1475     PUSH32(esp, ebx); /* 0x42016816: push ebx */
   1476     ebx = MEM32(ebp + 0x8); /* 0x42016817: mov ebx, dword ptr [ebp + 8] */
   1477     PUSH32(esp, esi); /* 0x4201681A: push esi */
   1478     esi = MEM32(ebp + 0xC); /* 0x4201681B: mov esi, dword ptr [ebp + 0xc] */
   1479     PUSH32(esp, edi); /* 0x4201681E: push edi */
   1480     edi = ecx; /* 0x4201681F: mov edi, ecx */
   1481     eax = edi + 0x60; /* 0x42016821: lea eax, [edi + 0x60] */
   1482     edx = MEM32(eax); /* 0x42016824: mov edx, dword ptr [eax] */
   1483     ecx = esi; /* 0x42016826: mov ecx, esi */
   1484     MEM32(ecx) = edx; /* 0x42016828: mov dword ptr [ecx], edx */
   1485     edx = MEM32(eax + 0x4); /* 0x4201682A: mov edx, dword ptr [eax + 4] */
   1486     MEM32(ecx + 0x4) = edx; /* 0x4201682D: mov dword ptr [ecx + 4], edx */
   1487     eax = MEM32(eax + 0x8); /* 0x42016830: mov eax, dword ptr [eax + 8] */
   1488     MEM32(ecx + 0x8) = eax; /* 0x42016833: mov dword ptr [ecx + 8], eax */
   1489     ecx = edi + 0x54; /* 0x42016836: lea ecx, [edi + 0x54] */
   1490     edx = MEM32(ecx); /* 0x42016839: mov edx, dword ptr [ecx] */
   1491     eax = MEM32(ecx + 0x4); /* 0x4201683B: mov eax, dword ptr [ecx + 4] */
   1492     ecx = MEM32(ecx + 0x8); /* 0x4201683E: mov ecx, dword ptr [ecx + 8] */
   1493     MEM32(ebp + (-0xC)) = eax; /* 0x42016841: mov dword ptr [ebp - 0xc], eax */
   1494     eax = MEM32(ebx + 0xC); /* 0x42016844: mov eax, dword ptr [ebx + 0xc] */
   1495     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1496     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1497     eax = eax - 0xCu; /* 0x42016847: sub eax, 0xc */
   1498     _flag_k = FK_CMP;
   1499     MEM32(ebp + (-0x1C)) = 0; /* 0x4201684A: mov dword ptr [ebp - 0x1c], 0 */
   1500     MEM32(ebp + (-0x18)) = 0; /* 0x42016851: mov dword ptr [ebp - 0x18], 0 */
   1501     MEM32(ebp + (-0x14)) = 0; /* 0x42016858: mov dword ptr [ebp - 0x14], 0 */
   1502     fp_push(*(float*)&MEM32(eax)); /* 0x4201685F: fld dword ptr [eax] */
   1503     MEM32(ebp + (-0x10)) = edx; /* 0x42016861: mov dword ptr [ebp - 0x10], edx */
   1504     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x42016864: fsub dword ptr [ebp - 0x10] */
   1505     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x42016867: fld dword ptr [eax + 8] */
   1506     MEM32(ebp + (-0x8)) = ecx; /* 0x4201686A: mov dword ptr [ebp - 8], ecx */
   1507     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x4201686D: fsub dword ptr [ebp - 8] */
   1508     MEM32(ebp + 0x8) = eax; /* 0x42016870: mov dword ptr [ebp + 8], eax */
   1509     fp_push(_st[0]); /* 0x42016873: fld st(0) */
   1510     _st[0] *= _st[1]; /* 0x42016875: fmul st(1) */
   1511     fp_push(_st[2]); /* 0x42016877: fld st(2) */
   1512     _st[0] *= _st[3]; /* 0x42016879: fmul st(3) */
   1513     { double _v = fp_pop(); _st[0] += _v; } /* 0x4201687B: faddp st(1) */
   1514     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420186F0)); /* 0x4201687D: fcomp dword ptr [0x420186f0] */
   1515     fp_pop();
   1516     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016883: fnstsw ax */
   1517     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016885: fstp st(0) */
   1518     /* test HI8(eax), 1 */ /* 0x42016887: test ah, 1 */
   1519     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1520     _cf = 0;
   1521     _flag_k = FK_NARROW(FK_TEST, 24);
   1522     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201688A: fstp st(0) */
   1523     if (TEST_Z(_flag_a, _flag_b)) goto L_4201689F; /* 0x4201688C: je 0x4201689f */
   1524 L_4201688E:
   1525     PUSH32(esp, esi); /* 0x4201688E: push esi */
   1526     ecx = edi; /* 0x4201688F: mov ecx, edi */
   1527     RECOMP_ICALL(0x42015980u); /* 0x42016891: call 0x42015980 */ /* not lifted */
   1528     RECOMP_FLAGS_IN();
   1529     edi = POP32_VAL(esp); /* 0x42016896: pop edi */
   1530     esi = POP32_VAL(esp); /* 0x42016897: pop esi */
   1531     ebx = POP32_VAL(esp); /* 0x42016898: pop ebx */
   1532     esp = ebp; /* 0x42016899: mov esp, ebp */
   1533     ebp = POP32_VAL(esp); /* 0x4201689B: pop ebp */
   1534     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4201689C: ret 8 */
   1535 L_4201689F:
   1536     fp_push(*(float*)&MEM32(edi + 0x40)); /* 0x4201689F: fld dword ptr [edi + 0x40] */
   1537     eax = edi + 0x104; /* 0x420168A2: lea eax, [edi + 0x104] */
   1538     fp_push(_st[0]); /* 0x420168A8: fld st(0) */
   1539     PUSH32(esp, eax); /* 0x420168AA: push eax */
   1540     _st[0] *= (double)*(float*)ADDR(esi); /* 0x420168AB: fmul dword ptr [esi] */
   1541     edx = ebp + 0xC; /* 0x420168AD: lea edx, [ebp + 0xc] */
   1542     PUSH32(esp, edx); /* 0x420168B0: push edx */
   1543     eax = ebp + (-0x1C); /* 0x420168B1: lea eax, [ebp - 0x1c] */
   1544     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x420168B4: fadd dword ptr [ebp - 0x10] */
   1545     PUSH32(esp, eax); /* 0x420168B7: push eax */
   1546     PUSH32(esp, esi); /* 0x420168B8: push esi */
   1547     ecx = ebx; /* 0x420168B9: mov ecx, ebx */
   1548     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420168BB: fstp dword ptr [esi] */
   1549     MEM32(ebp + 0xC) = 0; /* 0x420168BD: mov dword ptr [ebp + 0xc], 0 */
   1550     fp_push(_st[0]); /* 0x420168C4: fld st(0) */
   1551     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x420168C6: fmul dword ptr [esi + 4] */
   1552     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420168C9: fstp dword ptr [esi + 4] */
   1553     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x420168CC: fmul dword ptr [esi + 8] */
   1554     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x420168CF: fadd dword ptr [ebp - 8] */
   1555     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x420168D2: fstp dword ptr [esi + 8] */
   1556     RECOMP_ICALL(0x42007F50u); /* 0x420168D5: call 0x42007f50 */ /* not lifted */
   1557     RECOMP_FLAGS_IN();
   1558     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420168DA: fld dword ptr [ebp + 0xc] */
   1559     edx = MEM32(ebx + 0x1C); /* 0x420168DD: mov edx, dword ptr [ebx + 0x1c] */
   1560     _st[0] += (double)*(float*)ADDR(edi + 0x3C); /* 0x420168E0: fadd dword ptr [edi + 0x3c] */
   1561     SET_LO8(ecx, LO8(eax)); /* 0x420168E3: mov cl, al */
   1562     fp_push(*(float*)&MEM32(edx + (-0x4))); /* 0x420168E5: fld dword ptr [edx - 4] */
   1563     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x420168E8: fcompp  */
   1564     fp_pop(); fp_pop();
   1565     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420168EA: fnstsw ax */
   1566     /* test HI8(eax), 1 */ /* 0x420168EC: test ah, 1 */
   1567     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1568     _cf = 0;
   1569     _flag_k = FK_NARROW(FK_TEST, 24);
   1570     if (TEST_Z(_flag_a, _flag_b)) goto L_4201694B; /* 0x420168EF: je 0x4201694b */
   1571 L_420168F1:
   1572     eax = MEM32(ebx + 0x8); /* 0x420168F1: mov eax, dword ptr [ebx + 8] */
   1573     /* test eax, eax */ /* 0x420168F4: test eax, eax */
   1574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1575     _cf = 0;
   1576     _flag_k = FK_TEST;
   1577     if (TEST_NZ(_flag_a, _flag_b)) goto L_420168FC; /* 0x420168F6: jne 0x420168fc */
   1578 L_420168F8:
   1579     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1580     edx = 0; /* 0x420168F8: xor edx, edx */
   1581     _cf = 0;
   1582     _flag_k = FK_TEST;
   1583     goto L_42016911; /* 0x420168FA: jmp 0x42016911 */
   1584 L_420168FC:
   1585     edx = MEM32(ebx + 0xC); /* 0x420168FC: mov edx, dword ptr [ebx + 0xc] */
   1586     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1588     edx = edx - eax; /* 0x420168FF: sub edx, eax */
   1589     _flag_k = FK_CMP;
   1590     eax = 0x2AAAAAABu; /* 0x42016901: mov eax, 0x2aaaaaab */
   1591     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42016906: imul edx */
   1592       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1593       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1594     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42016908: sar edx, 1 */
   1595     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1596     edx = (uint32_t)((int32_t)edx >> 1u);
   1597     eax = edx; /* 0x4201690A: mov eax, edx */
   1598     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4201690C: shr eax, 0x1f */
   1599     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1600     eax = eax >> 31u; /* 0x4201690C: shr eax, 0x1f */
   1601     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1603     edx = edx + eax; /* 0x4201690F: add edx, eax */
   1604     _flag_k = FK_ADD;
   1605 L_42016911:
   1606     eax = MEM32(edi + 0x104); /* 0x42016911: mov eax, dword ptr [edi + 0x104] */
   1607     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1609     edx = edx + 0xFFFFFFFEu; /* 0x42016917: add edx, -2 */
   1610     _flag_k = FK_ADD;
   1611     /* cmp eax, edx */ /* 0x4201691A: cmp eax, edx */
   1612     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1614     _flag_k = FK_CMP;
   1615     if (CMP_NE(_flag_a, _flag_b)) goto L_4201694B; /* 0x4201691C: jne 0x4201694b */
   1616 L_4201691E:
   1617     eax = MEM32(ebp + 0x8); /* 0x4201691E: mov eax, dword ptr [ebp + 8] */
   1618     edx = MEM32(eax); /* 0x42016921: mov edx, dword ptr [eax] */
   1619     ecx = esi; /* 0x42016923: mov ecx, esi */
   1620     MEM32(ecx) = edx; /* 0x42016925: mov dword ptr [ecx], edx */
   1621     edx = MEM32(eax + 0x4); /* 0x42016927: mov edx, dword ptr [eax + 4] */
   1622     MEM32(ecx + 0x4) = edx; /* 0x4201692A: mov dword ptr [ecx + 4], edx */
   1623     eax = MEM32(eax + 0x8); /* 0x4201692D: mov eax, dword ptr [eax + 8] */
   1624     MEM32(ecx + 0x8) = eax; /* 0x42016930: mov dword ptr [ecx + 8], eax */
   1625     ecx = MEM32(edi + 0x58); /* 0x42016933: mov ecx, dword ptr [edi + 0x58] */
   1626     PUSH32(esp, esi); /* 0x42016936: push esi */
   1627     MEM32(esi + 0x4) = ecx; /* 0x42016937: mov dword ptr [esi + 4], ecx */
   1628     PUSH32(esp, esi); /* 0x4201693A: push esi */
   1629     ecx = edi; /* 0x4201693B: mov ecx, edi */
   1630     RECOMP_ICALL(0x42015FE0u); /* 0x4201693D: call 0x42015fe0 */ /* not lifted */
   1631     RECOMP_FLAGS_IN();
   1632     edi = POP32_VAL(esp); /* 0x42016942: pop edi */
   1633     esi = POP32_VAL(esp); /* 0x42016943: pop esi */
   1634     ebx = POP32_VAL(esp); /* 0x42016944: pop ebx */
   1635     esp = ebp; /* 0x42016945: mov esp, ebp */
   1636     ebp = POP32_VAL(esp); /* 0x42016947: pop ebp */
   1637     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016948: ret 8 */
   1638 L_4201694B:
   1639     /* test LO8(ecx), LO8(ecx) */ /* 0x4201694B: test cl, cl */
   1640     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1641     _cf = 0;
   1642     _flag_k = FK_NARROW(FK_TEST, 24);
   1643     if (TEST_Z(_flag_a, _flag_b)) goto L_42016983; /* 0x4201694D: je 0x42016983 */
   1644 L_4201694F:
   1645     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4201694F: fld dword ptr [ebp - 0x14] */
   1646     _st[0] *= (double)*(float*)ADDR(edi + 0x68); /* 0x42016952: fmul dword ptr [edi + 0x68] */
   1647     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42016955: fld dword ptr [ebp - 0x18] */
   1648     _st[0] *= (double)*(float*)ADDR(edi + 0x64); /* 0x42016958: fmul dword ptr [edi + 0x64] */
   1649     { double _v = fp_pop(); _st[0] += _v; } /* 0x4201695B: faddp st(1) */
   1650     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x4201695D: fld dword ptr [ebp - 0x1c] */
   1651     _st[0] *= (double)*(float*)ADDR(edi + 0x60); /* 0x42016960: fmul dword ptr [edi + 0x60] */
   1652     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016963: faddp st(1) */
   1653     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42016965: fcomp dword ptr [0x420180f8] */
   1654     fp_pop();
   1655     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201696B: fnstsw ax */
   1656     /* test HI8(eax), 0x41u */ /* 0x4201696D: test ah, 0x41 */
   1657     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1658     _cf = 0;
   1659     _flag_k = FK_NARROW(FK_TEST, 24);
   1660     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016983; /* 0x42016970: jne 0x42016983 */
   1661 L_42016972:
   1662     PUSH32(esp, esi); /* 0x42016972: push esi */
   1663     ecx = edi; /* 0x42016973: mov ecx, edi */
   1664     RECOMP_ICALL(0x420159A0u); /* 0x42016975: call 0x420159a0 */ /* not lifted */
   1665     RECOMP_FLAGS_IN();
   1666     edi = POP32_VAL(esp); /* 0x4201697A: pop edi */
   1667     esi = POP32_VAL(esp); /* 0x4201697B: pop esi */
   1668     ebx = POP32_VAL(esp); /* 0x4201697C: pop ebx */
   1669     esp = ebp; /* 0x4201697D: mov esp, ebp */
   1670     ebp = POP32_VAL(esp); /* 0x4201697F: pop ebp */
   1671     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016980: ret 8 */
   1672 L_42016983:
   1673     fp_push(*(float*)&MEM32(edi + 0xD8)); /* 0x42016983: fld dword ptr [edi + 0xd8] */
   1674     MEM32(ebp + (-0x4)) = 0x3F000000u; /* 0x42016989: mov dword ptr [ebp - 4], 0x3f000000 */
   1675     _st[0] *= (double)*(float*)ADDR(edi + 0x40); /* 0x42016990: fmul dword ptr [edi + 0x40] */
   1676     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42016993: fst dword ptr [ebp + 8] */
   1677     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180D0)); /* 0x42016996: fcomp dword ptr [0x420180d0] */
   1678     fp_pop();
   1679     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201699C: fnstsw ax */
   1680     /* test HI8(eax), 0x41u */ /* 0x4201699E: test ah, 0x41 */
   1681     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1682     _cf = 0;
   1683     _flag_k = FK_NARROW(FK_TEST, 24);
   1684     eax = ebp + 0x8; /* 0x420169A1: lea eax, [ebp + 8] */
   1685     if (TEST_Z(_flag_a, _flag_b)) goto L_420169A9; /* 0x420169A4: je 0x420169a9 */
   1686 L_420169A6:
   1687     eax = ebp + (-0x4); /* 0x420169A6: lea eax, [ebp - 4] */
   1688 L_420169A9:
   1689     fp_push(*(float*)&MEM32(eax)); /* 0x420169A9: fld dword ptr [eax] */
   1690     edx = MEM32(edi + 0x104); /* 0x420169AB: mov edx, dword ptr [edi + 0x104] */
   1691     PUSH32(esp, esi); /* 0x420169B1: push esi */
   1692     _st[0] += (double)*(float*)ADDR(ebp + 0xC); /* 0x420169B2: fadd dword ptr [ebp + 0xc] */
   1693     PUSH32(esp, ecx); /* 0x420169B5: push ecx */
   1694     ecx = ebx; /* 0x420169B6: mov ecx, ebx */
   1695     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x420169B8: fstp dword ptr [esp] */
   1696     PUSH32(esp, edx); /* 0x420169BB: push edx */
   1697     RECOMP_ICALL(0x42007E70u); /* 0x420169BC: call 0x42007e70 */ /* not lifted */
   1698     RECOMP_FLAGS_IN();
   1699     eax = MEM32(edi + 0x58); /* 0x420169C1: mov eax, dword ptr [edi + 0x58] */
   1700     PUSH32(esp, esi); /* 0x420169C4: push esi */
   1701     PUSH32(esp, esi); /* 0x420169C5: push esi */
   1702     ecx = edi; /* 0x420169C6: mov ecx, edi */
   1703     MEM32(esi + 0x4) = eax; /* 0x420169C8: mov dword ptr [esi + 4], eax */
   1704     RECOMP_ICALL(0x42015A40u); /* 0x420169CB: call 0x42015a40 */ /* not lifted */
   1705     RECOMP_FLAGS_IN();
   1706     edi = POP32_VAL(esp); /* 0x420169D0: pop edi */
   1707     esi = POP32_VAL(esp); /* 0x420169D1: pop esi */
   1708     ebx = POP32_VAL(esp); /* 0x420169D2: pop ebx */
   1709     esp = ebp; /* 0x420169D3: mov esp, ebp */
   1710     ebp = POP32_VAL(esp); /* 0x420169D5: pop ebp */
   1711     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420169D6: ret 8 */
   1712     RECOMP_REGS_OUT();
   1713 }
   1714 
   1715 void sub_42016858(void) {
   1716     int _fpu_cmp = 0;
   1717     uint32_t _cf = 0;
   1718     int _df = 1;
   1719     uint32_t _flag_k = FK_NONE;
   1720     uint32_t _flag_a = 0, _flag_b = 0;
   1721     uint32_t _itail_tgt = 0;
   1722     RECOMP_REGS_LOCALS
   1723     RECOMP_ENTER(0x42016858u);
   1724 
   1725 L_42016858:
   1726     MEM32(ebp + (-0x14)) = 0; /* 0x42016858: mov dword ptr [ebp - 0x14], 0 */
   1727     fp_push(*(float*)&MEM32(eax)); /* 0x4201685F: fld dword ptr [eax] */
   1728     MEM32(ebp + (-0x10)) = edx; /* 0x42016861: mov dword ptr [ebp - 0x10], edx */
   1729     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x42016864: fsub dword ptr [ebp - 0x10] */
   1730     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x42016867: fld dword ptr [eax + 8] */
   1731     MEM32(ebp + (-0x8)) = ecx; /* 0x4201686A: mov dword ptr [ebp - 8], ecx */
   1732     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x4201686D: fsub dword ptr [ebp - 8] */
   1733     MEM32(ebp + 0x8) = eax; /* 0x42016870: mov dword ptr [ebp + 8], eax */
   1734     fp_push(_st[0]); /* 0x42016873: fld st(0) */
   1735     _st[0] *= _st[1]; /* 0x42016875: fmul st(1) */
   1736     fp_push(_st[2]); /* 0x42016877: fld st(2) */
   1737     _st[0] *= _st[3]; /* 0x42016879: fmul st(3) */
   1738     { double _v = fp_pop(); _st[0] += _v; } /* 0x4201687B: faddp st(1) */
   1739     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420186F0)); /* 0x4201687D: fcomp dword ptr [0x420186f0] */
   1740     fp_pop();
   1741     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016883: fnstsw ax */
   1742     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016885: fstp st(0) */
   1743     /* test HI8(eax), 1 */ /* 0x42016887: test ah, 1 */
   1744     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1745     _cf = 0;
   1746     _flag_k = FK_NARROW(FK_TEST, 24);
   1747     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4201688A: fstp st(0) */
   1748     if (TEST_Z(_flag_a, _flag_b)) goto L_4201689F; /* 0x4201688C: je 0x4201689f */
   1749 L_4201688E:
   1750     PUSH32(esp, esi); /* 0x4201688E: push esi */
   1751     ecx = edi; /* 0x4201688F: mov ecx, edi */
   1752     RECOMP_ICALL(0x42015980u); /* 0x42016891: call 0x42015980 */ /* not lifted */
   1753     RECOMP_FLAGS_IN();
   1754     edi = POP32_VAL(esp); /* 0x42016896: pop edi */
   1755     esi = POP32_VAL(esp); /* 0x42016897: pop esi */
   1756     ebx = POP32_VAL(esp); /* 0x42016898: pop ebx */
   1757     esp = ebp; /* 0x42016899: mov esp, ebp */
   1758     ebp = POP32_VAL(esp); /* 0x4201689B: pop ebp */
   1759     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4201689C: ret 8 */
   1760 L_4201689F:
   1761     fp_push(*(float*)&MEM32(edi + 0x40)); /* 0x4201689F: fld dword ptr [edi + 0x40] */
   1762     eax = edi + 0x104; /* 0x420168A2: lea eax, [edi + 0x104] */
   1763     fp_push(_st[0]); /* 0x420168A8: fld st(0) */
   1764     PUSH32(esp, eax); /* 0x420168AA: push eax */
   1765     _st[0] *= (double)*(float*)ADDR(esi); /* 0x420168AB: fmul dword ptr [esi] */
   1766     edx = ebp + 0xC; /* 0x420168AD: lea edx, [ebp + 0xc] */
   1767     PUSH32(esp, edx); /* 0x420168B0: push edx */
   1768     eax = ebp + (-0x1C); /* 0x420168B1: lea eax, [ebp - 0x1c] */
   1769     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x420168B4: fadd dword ptr [ebp - 0x10] */
   1770     PUSH32(esp, eax); /* 0x420168B7: push eax */
   1771     PUSH32(esp, esi); /* 0x420168B8: push esi */
   1772     ecx = ebx; /* 0x420168B9: mov ecx, ebx */
   1773     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420168BB: fstp dword ptr [esi] */
   1774     MEM32(ebp + 0xC) = 0; /* 0x420168BD: mov dword ptr [ebp + 0xc], 0 */
   1775     fp_push(_st[0]); /* 0x420168C4: fld st(0) */
   1776     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x420168C6: fmul dword ptr [esi + 4] */
   1777     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x420168C9: fstp dword ptr [esi + 4] */
   1778     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x420168CC: fmul dword ptr [esi + 8] */
   1779     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x420168CF: fadd dword ptr [ebp - 8] */
   1780     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x420168D2: fstp dword ptr [esi + 8] */
   1781     RECOMP_ICALL(0x42007F50u); /* 0x420168D5: call 0x42007f50 */ /* not lifted */
   1782     RECOMP_FLAGS_IN();
   1783     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420168DA: fld dword ptr [ebp + 0xc] */
   1784     edx = MEM32(ebx + 0x1C); /* 0x420168DD: mov edx, dword ptr [ebx + 0x1c] */
   1785     _st[0] += (double)*(float*)ADDR(edi + 0x3C); /* 0x420168E0: fadd dword ptr [edi + 0x3c] */
   1786     SET_LO8(ecx, LO8(eax)); /* 0x420168E3: mov cl, al */
   1787     fp_push(*(float*)&MEM32(edx + (-0x4))); /* 0x420168E5: fld dword ptr [edx - 4] */
   1788     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x420168E8: fcompp  */
   1789     fp_pop(); fp_pop();
   1790     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420168EA: fnstsw ax */
   1791     /* test HI8(eax), 1 */ /* 0x420168EC: test ah, 1 */
   1792     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1793     _cf = 0;
   1794     _flag_k = FK_NARROW(FK_TEST, 24);
   1795     if (TEST_Z(_flag_a, _flag_b)) goto L_4201694B; /* 0x420168EF: je 0x4201694b */
   1796 L_420168F1:
   1797     eax = MEM32(ebx + 0x8); /* 0x420168F1: mov eax, dword ptr [ebx + 8] */
   1798     /* test eax, eax */ /* 0x420168F4: test eax, eax */
   1799     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1800     _cf = 0;
   1801     _flag_k = FK_TEST;
   1802     if (TEST_NZ(_flag_a, _flag_b)) goto L_420168FC; /* 0x420168F6: jne 0x420168fc */
   1803 L_420168F8:
   1804     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1805     edx = 0; /* 0x420168F8: xor edx, edx */
   1806     _cf = 0;
   1807     _flag_k = FK_TEST;
   1808     goto L_42016911; /* 0x420168FA: jmp 0x42016911 */
   1809 L_420168FC:
   1810     edx = MEM32(ebx + 0xC); /* 0x420168FC: mov edx, dword ptr [ebx + 0xc] */
   1811     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1813     edx = edx - eax; /* 0x420168FF: sub edx, eax */
   1814     _flag_k = FK_CMP;
   1815     eax = 0x2AAAAAABu; /* 0x42016901: mov eax, 0x2aaaaaab */
   1816     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42016906: imul edx */
   1817       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1818       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1819     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42016908: sar edx, 1 */
   1820     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1821     edx = (uint32_t)((int32_t)edx >> 1u);
   1822     eax = edx; /* 0x4201690A: mov eax, edx */
   1823     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4201690C: shr eax, 0x1f */
   1824     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1825     eax = eax >> 31u; /* 0x4201690C: shr eax, 0x1f */
   1826     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1827     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1828     edx = edx + eax; /* 0x4201690F: add edx, eax */
   1829     _flag_k = FK_ADD;
   1830 L_42016911:
   1831     eax = MEM32(edi + 0x104); /* 0x42016911: mov eax, dword ptr [edi + 0x104] */
   1832     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1833     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1834     edx = edx + 0xFFFFFFFEu; /* 0x42016917: add edx, -2 */
   1835     _flag_k = FK_ADD;
   1836     /* cmp eax, edx */ /* 0x4201691A: cmp eax, edx */
   1837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1838     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1839     _flag_k = FK_CMP;
   1840     if (CMP_NE(_flag_a, _flag_b)) goto L_4201694B; /* 0x4201691C: jne 0x4201694b */
   1841 L_4201691E:
   1842     eax = MEM32(ebp + 0x8); /* 0x4201691E: mov eax, dword ptr [ebp + 8] */
   1843     edx = MEM32(eax); /* 0x42016921: mov edx, dword ptr [eax] */
   1844     ecx = esi; /* 0x42016923: mov ecx, esi */
   1845     MEM32(ecx) = edx; /* 0x42016925: mov dword ptr [ecx], edx */
   1846     edx = MEM32(eax + 0x4); /* 0x42016927: mov edx, dword ptr [eax + 4] */
   1847     MEM32(ecx + 0x4) = edx; /* 0x4201692A: mov dword ptr [ecx + 4], edx */
   1848     eax = MEM32(eax + 0x8); /* 0x4201692D: mov eax, dword ptr [eax + 8] */
   1849     MEM32(ecx + 0x8) = eax; /* 0x42016930: mov dword ptr [ecx + 8], eax */
   1850     ecx = MEM32(edi + 0x58); /* 0x42016933: mov ecx, dword ptr [edi + 0x58] */
   1851     PUSH32(esp, esi); /* 0x42016936: push esi */
   1852     MEM32(esi + 0x4) = ecx; /* 0x42016937: mov dword ptr [esi + 4], ecx */
   1853     PUSH32(esp, esi); /* 0x4201693A: push esi */
   1854     ecx = edi; /* 0x4201693B: mov ecx, edi */
   1855     RECOMP_ICALL(0x42015FE0u); /* 0x4201693D: call 0x42015fe0 */ /* not lifted */
   1856     RECOMP_FLAGS_IN();
   1857     edi = POP32_VAL(esp); /* 0x42016942: pop edi */
   1858     esi = POP32_VAL(esp); /* 0x42016943: pop esi */
   1859     ebx = POP32_VAL(esp); /* 0x42016944: pop ebx */
   1860     esp = ebp; /* 0x42016945: mov esp, ebp */
   1861     ebp = POP32_VAL(esp); /* 0x42016947: pop ebp */
   1862     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016948: ret 8 */
   1863 L_4201694B:
   1864     /* test LO8(ecx), LO8(ecx) */ /* 0x4201694B: test cl, cl */
   1865     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1866     _cf = 0;
   1867     _flag_k = FK_NARROW(FK_TEST, 24);
   1868     if (TEST_Z(_flag_a, _flag_b)) goto L_42016983; /* 0x4201694D: je 0x42016983 */
   1869 L_4201694F:
   1870     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4201694F: fld dword ptr [ebp - 0x14] */
   1871     _st[0] *= (double)*(float*)ADDR(edi + 0x68); /* 0x42016952: fmul dword ptr [edi + 0x68] */
   1872     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42016955: fld dword ptr [ebp - 0x18] */
   1873     _st[0] *= (double)*(float*)ADDR(edi + 0x64); /* 0x42016958: fmul dword ptr [edi + 0x64] */
   1874     { double _v = fp_pop(); _st[0] += _v; } /* 0x4201695B: faddp st(1) */
   1875     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x4201695D: fld dword ptr [ebp - 0x1c] */
   1876     _st[0] *= (double)*(float*)ADDR(edi + 0x60); /* 0x42016960: fmul dword ptr [edi + 0x60] */
   1877     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016963: faddp st(1) */
   1878     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42016965: fcomp dword ptr [0x420180f8] */
   1879     fp_pop();
   1880     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201696B: fnstsw ax */
   1881     /* test HI8(eax), 0x41u */ /* 0x4201696D: test ah, 0x41 */
   1882     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1883     _cf = 0;
   1884     _flag_k = FK_NARROW(FK_TEST, 24);
   1885     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016983; /* 0x42016970: jne 0x42016983 */
   1886 L_42016972:
   1887     PUSH32(esp, esi); /* 0x42016972: push esi */
   1888     ecx = edi; /* 0x42016973: mov ecx, edi */
   1889     RECOMP_ICALL(0x420159A0u); /* 0x42016975: call 0x420159a0 */ /* not lifted */
   1890     RECOMP_FLAGS_IN();
   1891     edi = POP32_VAL(esp); /* 0x4201697A: pop edi */
   1892     esi = POP32_VAL(esp); /* 0x4201697B: pop esi */
   1893     ebx = POP32_VAL(esp); /* 0x4201697C: pop ebx */
   1894     esp = ebp; /* 0x4201697D: mov esp, ebp */
   1895     ebp = POP32_VAL(esp); /* 0x4201697F: pop ebp */
   1896     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016980: ret 8 */
   1897 L_42016983:
   1898     fp_push(*(float*)&MEM32(edi + 0xD8)); /* 0x42016983: fld dword ptr [edi + 0xd8] */
   1899     MEM32(ebp + (-0x4)) = 0x3F000000u; /* 0x42016989: mov dword ptr [ebp - 4], 0x3f000000 */
   1900     _st[0] *= (double)*(float*)ADDR(edi + 0x40); /* 0x42016990: fmul dword ptr [edi + 0x40] */
   1901     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42016993: fst dword ptr [ebp + 8] */
   1902     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180D0)); /* 0x42016996: fcomp dword ptr [0x420180d0] */
   1903     fp_pop();
   1904     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201699C: fnstsw ax */
   1905     /* test HI8(eax), 0x41u */ /* 0x4201699E: test ah, 0x41 */
   1906     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1907     _cf = 0;
   1908     _flag_k = FK_NARROW(FK_TEST, 24);
   1909     eax = ebp + 0x8; /* 0x420169A1: lea eax, [ebp + 8] */
   1910     if (TEST_Z(_flag_a, _flag_b)) goto L_420169A9; /* 0x420169A4: je 0x420169a9 */
   1911 L_420169A6:
   1912     eax = ebp + (-0x4); /* 0x420169A6: lea eax, [ebp - 4] */
   1913 L_420169A9:
   1914     fp_push(*(float*)&MEM32(eax)); /* 0x420169A9: fld dword ptr [eax] */
   1915     edx = MEM32(edi + 0x104); /* 0x420169AB: mov edx, dword ptr [edi + 0x104] */
   1916     PUSH32(esp, esi); /* 0x420169B1: push esi */
   1917     _st[0] += (double)*(float*)ADDR(ebp + 0xC); /* 0x420169B2: fadd dword ptr [ebp + 0xc] */
   1918     PUSH32(esp, ecx); /* 0x420169B5: push ecx */
   1919     ecx = ebx; /* 0x420169B6: mov ecx, ebx */
   1920     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x420169B8: fstp dword ptr [esp] */
   1921     PUSH32(esp, edx); /* 0x420169BB: push edx */
   1922     RECOMP_ICALL(0x42007E70u); /* 0x420169BC: call 0x42007e70 */ /* not lifted */
   1923     RECOMP_FLAGS_IN();
   1924     eax = MEM32(edi + 0x58); /* 0x420169C1: mov eax, dword ptr [edi + 0x58] */
   1925     PUSH32(esp, esi); /* 0x420169C4: push esi */
   1926     PUSH32(esp, esi); /* 0x420169C5: push esi */
   1927     ecx = edi; /* 0x420169C6: mov ecx, edi */
   1928     MEM32(esi + 0x4) = eax; /* 0x420169C8: mov dword ptr [esi + 4], eax */
   1929     RECOMP_ICALL(0x42015A40u); /* 0x420169CB: call 0x42015a40 */ /* not lifted */
   1930     RECOMP_FLAGS_IN();
   1931     edi = POP32_VAL(esp); /* 0x420169D0: pop edi */
   1932     esi = POP32_VAL(esp); /* 0x420169D1: pop esi */
   1933     ebx = POP32_VAL(esp); /* 0x420169D2: pop ebx */
   1934     esp = ebp; /* 0x420169D3: mov esp, ebp */
   1935     ebp = POP32_VAL(esp); /* 0x420169D5: pop ebp */
   1936     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420169D6: ret 8 */
   1937     RECOMP_REGS_OUT();
   1938 }
   1939 
   1940 void sub_42016911(void) {
   1941     int _fpu_cmp = 0;
   1942     uint32_t _cf = 0;
   1943     int _df = 1;
   1944     uint32_t _flag_k = FK_NONE;
   1945     uint32_t _flag_a = 0, _flag_b = 0;
   1946     uint32_t _itail_tgt = 0;
   1947     RECOMP_REGS_LOCALS
   1948     RECOMP_ENTER(0x42016911u);
   1949 
   1950 L_42016911:
   1951     eax = MEM32(edi + 0x104); /* 0x42016911: mov eax, dword ptr [edi + 0x104] */
   1952     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1953     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1954     edx = edx + 0xFFFFFFFEu; /* 0x42016917: add edx, -2 */
   1955     _flag_k = FK_ADD;
   1956     /* cmp eax, edx */ /* 0x4201691A: cmp eax, edx */
   1957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1959     _flag_k = FK_CMP;
   1960     if (CMP_NE(_flag_a, _flag_b)) goto L_4201694B; /* 0x4201691C: jne 0x4201694b */
   1961 L_4201691E:
   1962     eax = MEM32(ebp + 0x8); /* 0x4201691E: mov eax, dword ptr [ebp + 8] */
   1963     edx = MEM32(eax); /* 0x42016921: mov edx, dword ptr [eax] */
   1964     ecx = esi; /* 0x42016923: mov ecx, esi */
   1965     MEM32(ecx) = edx; /* 0x42016925: mov dword ptr [ecx], edx */
   1966     edx = MEM32(eax + 0x4); /* 0x42016927: mov edx, dword ptr [eax + 4] */
   1967     MEM32(ecx + 0x4) = edx; /* 0x4201692A: mov dword ptr [ecx + 4], edx */
   1968     eax = MEM32(eax + 0x8); /* 0x4201692D: mov eax, dword ptr [eax + 8] */
   1969     MEM32(ecx + 0x8) = eax; /* 0x42016930: mov dword ptr [ecx + 8], eax */
   1970     ecx = MEM32(edi + 0x58); /* 0x42016933: mov ecx, dword ptr [edi + 0x58] */
   1971     PUSH32(esp, esi); /* 0x42016936: push esi */
   1972     MEM32(esi + 0x4) = ecx; /* 0x42016937: mov dword ptr [esi + 4], ecx */
   1973     PUSH32(esp, esi); /* 0x4201693A: push esi */
   1974     ecx = edi; /* 0x4201693B: mov ecx, edi */
   1975     RECOMP_ICALL(0x42015FE0u); /* 0x4201693D: call 0x42015fe0 */ /* not lifted */
   1976     RECOMP_FLAGS_IN();
   1977     edi = POP32_VAL(esp); /* 0x42016942: pop edi */
   1978     esi = POP32_VAL(esp); /* 0x42016943: pop esi */
   1979     ebx = POP32_VAL(esp); /* 0x42016944: pop ebx */
   1980     esp = ebp; /* 0x42016945: mov esp, ebp */
   1981     ebp = POP32_VAL(esp); /* 0x42016947: pop ebp */
   1982     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016948: ret 8 */
   1983 L_4201694B:
   1984     /* test LO8(ecx), LO8(ecx) */ /* 0x4201694B: test cl, cl */
   1985     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1986     _cf = 0;
   1987     _flag_k = FK_NARROW(FK_TEST, 24);
   1988     if (TEST_Z(_flag_a, _flag_b)) goto L_42016983; /* 0x4201694D: je 0x42016983 */
   1989 L_4201694F:
   1990     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4201694F: fld dword ptr [ebp - 0x14] */
   1991     _st[0] *= (double)*(float*)ADDR(edi + 0x68); /* 0x42016952: fmul dword ptr [edi + 0x68] */
   1992     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42016955: fld dword ptr [ebp - 0x18] */
   1993     _st[0] *= (double)*(float*)ADDR(edi + 0x64); /* 0x42016958: fmul dword ptr [edi + 0x64] */
   1994     { double _v = fp_pop(); _st[0] += _v; } /* 0x4201695B: faddp st(1) */
   1995     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x4201695D: fld dword ptr [ebp - 0x1c] */
   1996     _st[0] *= (double)*(float*)ADDR(edi + 0x60); /* 0x42016960: fmul dword ptr [edi + 0x60] */
   1997     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016963: faddp st(1) */
   1998     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42016965: fcomp dword ptr [0x420180f8] */
   1999     fp_pop();
   2000     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201696B: fnstsw ax */
   2001     /* test HI8(eax), 0x41u */ /* 0x4201696D: test ah, 0x41 */
   2002     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2003     _cf = 0;
   2004     _flag_k = FK_NARROW(FK_TEST, 24);
   2005     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016983; /* 0x42016970: jne 0x42016983 */
   2006 L_42016972:
   2007     PUSH32(esp, esi); /* 0x42016972: push esi */
   2008     ecx = edi; /* 0x42016973: mov ecx, edi */
   2009     RECOMP_ICALL(0x420159A0u); /* 0x42016975: call 0x420159a0 */ /* not lifted */
   2010     RECOMP_FLAGS_IN();
   2011     edi = POP32_VAL(esp); /* 0x4201697A: pop edi */
   2012     esi = POP32_VAL(esp); /* 0x4201697B: pop esi */
   2013     ebx = POP32_VAL(esp); /* 0x4201697C: pop ebx */
   2014     esp = ebp; /* 0x4201697D: mov esp, ebp */
   2015     ebp = POP32_VAL(esp); /* 0x4201697F: pop ebp */
   2016     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016980: ret 8 */
   2017 L_42016983:
   2018     fp_push(*(float*)&MEM32(edi + 0xD8)); /* 0x42016983: fld dword ptr [edi + 0xd8] */
   2019     MEM32(ebp + (-0x4)) = 0x3F000000u; /* 0x42016989: mov dword ptr [ebp - 4], 0x3f000000 */
   2020     _st[0] *= (double)*(float*)ADDR(edi + 0x40); /* 0x42016990: fmul dword ptr [edi + 0x40] */
   2021     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42016993: fst dword ptr [ebp + 8] */
   2022     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180D0)); /* 0x42016996: fcomp dword ptr [0x420180d0] */
   2023     fp_pop();
   2024     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4201699C: fnstsw ax */
   2025     /* test HI8(eax), 0x41u */ /* 0x4201699E: test ah, 0x41 */
   2026     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2027     _cf = 0;
   2028     _flag_k = FK_NARROW(FK_TEST, 24);
   2029     eax = ebp + 0x8; /* 0x420169A1: lea eax, [ebp + 8] */
   2030     if (TEST_Z(_flag_a, _flag_b)) goto L_420169A9; /* 0x420169A4: je 0x420169a9 */
   2031 L_420169A6:
   2032     eax = ebp + (-0x4); /* 0x420169A6: lea eax, [ebp - 4] */
   2033 L_420169A9:
   2034     fp_push(*(float*)&MEM32(eax)); /* 0x420169A9: fld dword ptr [eax] */
   2035     edx = MEM32(edi + 0x104); /* 0x420169AB: mov edx, dword ptr [edi + 0x104] */
   2036     PUSH32(esp, esi); /* 0x420169B1: push esi */
   2037     _st[0] += (double)*(float*)ADDR(ebp + 0xC); /* 0x420169B2: fadd dword ptr [ebp + 0xc] */
   2038     PUSH32(esp, ecx); /* 0x420169B5: push ecx */
   2039     ecx = ebx; /* 0x420169B6: mov ecx, ebx */
   2040     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x420169B8: fstp dword ptr [esp] */
   2041     PUSH32(esp, edx); /* 0x420169BB: push edx */
   2042     RECOMP_ICALL(0x42007E70u); /* 0x420169BC: call 0x42007e70 */ /* not lifted */
   2043     RECOMP_FLAGS_IN();
   2044     eax = MEM32(edi + 0x58); /* 0x420169C1: mov eax, dword ptr [edi + 0x58] */
   2045     PUSH32(esp, esi); /* 0x420169C4: push esi */
   2046     PUSH32(esp, esi); /* 0x420169C5: push esi */
   2047     ecx = edi; /* 0x420169C6: mov ecx, edi */
   2048     MEM32(esi + 0x4) = eax; /* 0x420169C8: mov dword ptr [esi + 4], eax */
   2049     RECOMP_ICALL(0x42015A40u); /* 0x420169CB: call 0x42015a40 */ /* not lifted */
   2050     RECOMP_FLAGS_IN();
   2051     edi = POP32_VAL(esp); /* 0x420169D0: pop edi */
   2052     esi = POP32_VAL(esp); /* 0x420169D1: pop esi */
   2053     ebx = POP32_VAL(esp); /* 0x420169D2: pop ebx */
   2054     esp = ebp; /* 0x420169D3: mov esp, ebp */
   2055     ebp = POP32_VAL(esp); /* 0x420169D5: pop ebp */
   2056     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420169D6: ret 8 */
   2057     RECOMP_REGS_OUT();
   2058 }
   2059 
   2060 void sub_420169E0(void) {
   2061     int _fpu_cmp = 0;
   2062     uint32_t _cf = 0;
   2063     int _df = 1;
   2064     uint32_t _flag_k = FK_NONE;
   2065     uint32_t _flag_a = 0, _flag_b = 0;
   2066     uint32_t _itail_tgt = 0;
   2067     RECOMP_REGS_LOCALS
   2068     RECOMP_ENTER(0x420169E0u);
   2069 
   2070 L_420169E0:
   2071     PUSH32(esp, ebp); /* 0x420169E0: push ebp */
   2072     ebp = esp; /* 0x420169E1: mov ebp, esp */
   2073     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   2074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2075     esp = esp - 0x24u; /* 0x420169E3: sub esp, 0x24 */
   2076     _flag_k = FK_CMP;
   2077     PUSH32(esp, esi); /* 0x420169E6: push esi */
   2078     PUSH32(esp, edi); /* 0x420169E7: push edi */
   2079     edi = MEM32(ebp + 0x8); /* 0x420169E8: mov edi, dword ptr [ebp + 8] */
   2080     esi = ecx; /* 0x420169EB: mov esi, ecx */
   2081     PUSH32(esp, edi); /* 0x420169ED: push edi */
   2082     RECOMP_ICALL(0x42011AF0u); /* 0x420169EE: call 0x42011af0 */ /* not lifted */
   2083     RECOMP_FLAGS_IN();
   2084     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420169F3: fst dword ptr [ebp + 8] */
   2085     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x420169F6: fcomp dword ptr [0x420180f8] */
   2086     fp_pop();
   2087     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420169FC: fnstsw ax */
   2088     /* test HI8(eax), 1 */ /* 0x420169FE: test ah, 1 */
   2089     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2090     _cf = 0;
   2091     _flag_k = FK_NARROW(FK_TEST, 24);
   2092     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016B58; /* 0x42016A01: jne 0x42016b58 */
   2093 L_42016A07:
   2094     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016A07: fld dword ptr [ebp + 8] */
   2095     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x42018430)); /* 0x42016A0A: fcomp dword ptr [0x42018430] */
   2096     fp_pop();
   2097     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016A10: fnstsw ax */
   2098     /* test HI8(eax), 0x41u */ /* 0x42016A12: test ah, 0x41 */
   2099     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2100     _cf = 0;
   2101     _flag_k = FK_NARROW(FK_TEST, 24);
   2102     if (TEST_Z(_flag_a, _flag_b)) goto L_42016B58; /* 0x42016A15: je 0x42016b58 */
   2103 L_42016A1B:
   2104     eax = esi + 0x54; /* 0x42016A1B: lea eax, [esi + 0x54] */
   2105     ecx = MEM32(eax); /* 0x42016A1E: mov ecx, dword ptr [eax] */
   2106     edx = MEM32(eax + 0x4); /* 0x42016A20: mov edx, dword ptr [eax + 4] */
   2107     eax = MEM32(eax + 0x8); /* 0x42016A23: mov eax, dword ptr [eax + 8] */
   2108     MEM32(ebp + (-0x8)) = edx; /* 0x42016A26: mov dword ptr [ebp - 8], edx */
   2109     MEM32(ebp + (-0xC)) = ecx; /* 0x42016A29: mov dword ptr [ebp - 0xc], ecx */
   2110     MEM32(ebp + (-0x4)) = eax; /* 0x42016A2C: mov dword ptr [ebp - 4], eax */
   2111     ecx = esi + 0x60; /* 0x42016A2F: lea ecx, [esi + 0x60] */
   2112     edx = MEM32(ecx); /* 0x42016A32: mov edx, dword ptr [ecx] */
   2113     eax = MEM32(ecx + 0x4); /* 0x42016A34: mov eax, dword ptr [ecx + 4] */
   2114     ecx = MEM32(ecx + 0x8); /* 0x42016A37: mov ecx, dword ptr [ecx + 8] */
   2115     MEM32(ebp + (-0x18)) = edx; /* 0x42016A3A: mov dword ptr [ebp - 0x18], edx */
   2116     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42016A3D: fld dword ptr [ebp - 0x18] */
   2117     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016A40: fmul dword ptr [ebp + 8] */
   2118     MEM32(ebp + (-0x14)) = eax; /* 0x42016A43: mov dword ptr [ebp - 0x14], eax */
   2119     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42016A46: fld dword ptr [ebp - 0x14] */
   2120     MEM32(ebp + (-0x10)) = ecx; /* 0x42016A49: mov dword ptr [ebp - 0x10], ecx */
   2121     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016A4C: fmul dword ptr [ebp + 8] */
   2122     edx = edi + 0x54; /* 0x42016A4F: lea edx, [edi + 0x54] */
   2123     eax = MEM32(edx); /* 0x42016A52: mov eax, dword ptr [edx] */
   2124     ecx = MEM32(edx + 0x4); /* 0x42016A54: mov ecx, dword ptr [edx + 4] */
   2125     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42016A57: fstp dword ptr [ebp - 0x14] */
   2126     edx = MEM32(edx + 0x8); /* 0x42016A5A: mov edx, dword ptr [edx + 8] */
   2127     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42016A5D: fld dword ptr [ebp - 0x10] */
   2128     MEM32(ebp + (-0x24)) = eax; /* 0x42016A60: mov dword ptr [ebp - 0x24], eax */
   2129     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016A63: fmul dword ptr [ebp + 8] */
   2130     MEM32(ebp + (-0x20)) = ecx; /* 0x42016A66: mov dword ptr [ebp - 0x20], ecx */
   2131     MEM32(ebp + (-0x1C)) = edx; /* 0x42016A69: mov dword ptr [ebp - 0x1c], edx */
   2132     eax = edi + 0x60; /* 0x42016A6C: lea eax, [edi + 0x60] */
   2133     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42016A6F: fstp dword ptr [ebp - 0x10] */
   2134     ecx = MEM32(eax); /* 0x42016A72: mov ecx, dword ptr [eax] */
   2135     edx = MEM32(eax + 0x4); /* 0x42016A74: mov edx, dword ptr [eax + 4] */
   2136     _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x42016A77: fadd dword ptr [ebp - 0xc] */
   2137     eax = MEM32(eax + 0x8); /* 0x42016A7A: mov eax, dword ptr [eax + 8] */
   2138     MEM32(ebp + (-0x18)) = ecx; /* 0x42016A7D: mov dword ptr [ebp - 0x18], ecx */
   2139     ecx = MEM32(ebp + 0xC); /* 0x42016A80: mov ecx, dword ptr [ebp + 0xc] */
   2140     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42016A83: fstp dword ptr [ebp - 0xc] */
   2141     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42016A86: fld dword ptr [ebp - 8] */
   2142     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x42016A89: fadd dword ptr [ebp - 0x14] */
   2143     MEM32(ebp + (-0x14)) = edx; /* 0x42016A8C: mov dword ptr [ebp - 0x14], edx */
   2144     edx = ecx; /* 0x42016A8F: mov edx, ecx */
   2145     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42016A91: fstp dword ptr [ebp - 8] */
   2146     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42016A94: fld dword ptr [ebp - 4] */
   2147     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x42016A97: fadd dword ptr [ebp - 0x10] */
   2148     MEM32(ebp + (-0x10)) = eax; /* 0x42016A9A: mov dword ptr [ebp - 0x10], eax */
   2149     eax = MEM32(ebp + (-0xC)); /* 0x42016A9D: mov eax, dword ptr [ebp - 0xc] */
   2150     MEM32(edx) = eax; /* 0x42016AA0: mov dword ptr [edx], eax */
   2151     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42016AA2: fstp dword ptr [ebp - 4] */
   2152     eax = MEM32(ebp + (-0x8)); /* 0x42016AA5: mov eax, dword ptr [ebp - 8] */
   2153     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42016AA8: fld dword ptr [ebp - 0x18] */
   2154     MEM32(edx + 0x4) = eax; /* 0x42016AAB: mov dword ptr [edx + 4], eax */
   2155     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016AAE: fmul dword ptr [ebp + 8] */
   2156     eax = MEM32(ebp + (-0x4)); /* 0x42016AB1: mov eax, dword ptr [ebp - 4] */
   2157     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42016AB4: fld dword ptr [ebp - 0x14] */
   2158     MEM32(edx + 0x8) = eax; /* 0x42016AB7: mov dword ptr [edx + 8], eax */
   2159     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016ABA: fmul dword ptr [ebp + 8] */
   2160     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42016ABD: fstp dword ptr [ebp - 0x14] */
   2161     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42016AC0: fld dword ptr [ebp - 0x10] */
   2162     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016AC3: fmul dword ptr [ebp + 8] */
   2163     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42016AC6: fstp dword ptr [ebp - 0x10] */
   2164     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x42016AC9: fadd dword ptr [ebp - 0x24] */
   2165     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x42016ACC: fld dword ptr [ebp - 0x20] */
   2166     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x42016ACF: fadd dword ptr [ebp - 0x14] */
   2167     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x42016AD2: fstp dword ptr [ebp - 0x20] */
   2168     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42016AD5: fld dword ptr [ebp - 0x1c] */
   2169     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x42016AD8: fadd dword ptr [ebp - 0x10] */
   2170     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42016ADB: fstp dword ptr [ebp - 0x1c] */
   2171     _st[0] = (double)*(float*)ADDR(ecx) - _st[0]; /* 0x42016ADE: fsubr dword ptr [ecx] */
   2172     { float _v = (float)_st[0]; *(float*)ADDR(ecx) = _v; } /* 0x42016AE0: fst dword ptr [ecx] */
   2173     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x42016AE2: fld dword ptr [ecx + 4] */
   2174     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x42016AE5: fsub dword ptr [ebp - 0x20] */
   2175     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42016AE8: fstp dword ptr [ebp + 8] */
   2176     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x42016AEB: fld dword ptr [ecx + 8] */
   2177     edx = MEM32(ebp + 0x8); /* 0x42016AEE: mov edx, dword ptr [ebp + 8] */
   2178     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42016AF1: fsub dword ptr [ebp - 0x1c] */
   2179     MEM32(ecx + 0x4) = edx; /* 0x42016AF4: mov dword ptr [ecx + 4], edx */
   2180     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x42016AF7: fstp dword ptr [ebp + 0xc] */
   2181     eax = MEM32(ebp + 0xC); /* 0x42016AFA: mov eax, dword ptr [ebp + 0xc] */
   2182     MEM32(ecx + 0x8) = eax; /* 0x42016AFD: mov dword ptr [ecx + 8], eax */
   2183     fp_push(*(float*)&MEM32(edi + 0x48)); /* 0x42016B00: fld dword ptr [edi + 0x48] */
   2184     _st[0] += (double)*(float*)ADDR(esi + 0x48); /* 0x42016B03: fadd dword ptr [esi + 0x48] */
   2185     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x42016B06: fld dword ptr [ebp + 0xc] */
   2186     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x42016B09: fmul dword ptr [ebp + 0xc] */
   2187     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016B0C: fld dword ptr [ebp + 8] */
   2188     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x42016B0F: fmul dword ptr [ebp + 8] */
   2189     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016B12: faddp st(1) */
   2190     fp_push(_st[2]); /* 0x42016B14: fld st(2) */
   2191     _st[0] *= _st[3]; /* 0x42016B16: fmul st(3) */
   2192     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016B18: faddp st(1) */
   2193     fp_push(_st[1]); /* 0x42016B1A: fld st(1) */
   2194     _st[0] *= _st[2]; /* 0x42016B1C: fmul st(2) */
   2195     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42016B1E: fcompp  */
   2196     fp_pop(); fp_pop();
   2197     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016B20: fnstsw ax */
   2198     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016B22: fstp st(0) */
   2199     /* test HI8(eax), 0x41u */ /* 0x42016B24: test ah, 0x41 */
   2200     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2201     _cf = 0;
   2202     _flag_k = FK_NARROW(FK_TEST, 24);
   2203     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016B56; /* 0x42016B27: jne 0x42016b56 */
   2204 L_42016B29:
   2205     _st[0] *= (double)*(float*)ADDR(0x420186E4); /* 0x42016B29: fmul dword ptr [0x420186e4] */
   2206     edi = POP32_VAL(esp); /* 0x42016B2F: pop edi */
   2207     eax = 2; /* 0x42016B30: mov eax, 2 */
   2208     esi = POP32_VAL(esp); /* 0x42016B35: pop esi */
   2209     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x42016B36: fstp dword ptr [ecx] */
   2210     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016B38: fld dword ptr [ebp + 8] */
   2211     _st[0] *= (double)*(float*)ADDR(0x420186E4); /* 0x42016B3B: fmul dword ptr [0x420186e4] */
   2212     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x4) = _v; } /* 0x42016B41: fstp dword ptr [ecx + 4] */
   2213     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x42016B44: fld dword ptr [ebp + 0xc] */
   2214     _st[0] *= (double)*(float*)ADDR(0x420186E4); /* 0x42016B47: fmul dword ptr [0x420186e4] */
   2215     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x8) = _v; } /* 0x42016B4D: fstp dword ptr [ecx + 8] */
   2216     esp = ebp; /* 0x42016B50: mov esp, ebp */
   2217     ebp = POP32_VAL(esp); /* 0x42016B52: pop ebp */
   2218     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016B53: ret 8 */
   2219 L_42016B56:
   2220     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016B56: fstp st(0) */
   2221 L_42016B58:
   2222     edi = POP32_VAL(esp); /* 0x42016B58: pop edi */
   2223     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2224     eax = 0; /* 0x42016B59: xor eax, eax */
   2225     _cf = 0;
   2226     _flag_k = FK_TEST;
   2227     esi = POP32_VAL(esp); /* 0x42016B5B: pop esi */
   2228     esp = ebp; /* 0x42016B5C: mov esp, ebp */
   2229     ebp = POP32_VAL(esp); /* 0x42016B5E: pop ebp */
   2230     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016B5F: ret 8 */
   2231     RECOMP_REGS_OUT();
   2232 }
   2233 
   2234 void sub_42016B70(void) {
   2235     int _fpu_cmp = 0;
   2236     uint32_t _cf = 0;
   2237     int _df = 1;
   2238     uint32_t _flag_k = FK_NONE;
   2239     uint32_t _flag_a = 0, _flag_b = 0;
   2240     uint32_t _itail_tgt = 0;
   2241     RECOMP_REGS_LOCALS
   2242     RECOMP_ENTER(0x42016B70u);
   2243 
   2244 L_42016B70:
   2245     PUSH32(esp, ebp); /* 0x42016B70: push ebp */
   2246     ebp = esp; /* 0x42016B71: mov ebp, esp */
   2247     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   2248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2249     esp = esp - 0x24u; /* 0x42016B73: sub esp, 0x24 */
   2250     _flag_k = FK_CMP;
   2251     PUSH32(esp, esi); /* 0x42016B76: push esi */
   2252     esi = ecx; /* 0x42016B77: mov esi, ecx */
   2253     fp_push(*(float*)&MEM32(esi + 0xD8)); /* 0x42016B79: fld dword ptr [esi + 0xd8] */
   2254     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x4201841C)); /* 0x42016B7F: fcomp dword ptr [0x4201841c] */
   2255     fp_pop();
   2256     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016B85: fnstsw ax */
   2257     /* test HI8(eax), 0x41u */ /* 0x42016B87: test ah, 0x41 */
   2258     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2259     _cf = 0;
   2260     _flag_k = FK_NARROW(FK_TEST, 24);
   2261     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016B95; /* 0x42016B8A: jne 0x42016b95 */
   2262 L_42016B8C:
   2263     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2264     eax = 0; /* 0x42016B8C: xor eax, eax */
   2265     _cf = 0;
   2266     _flag_k = FK_TEST;
   2267     esi = POP32_VAL(esp); /* 0x42016B8E: pop esi */
   2268     esp = ebp; /* 0x42016B8F: mov esp, ebp */
   2269     ebp = POP32_VAL(esp); /* 0x42016B91: pop ebp */
   2270     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016B92: ret 8 */
   2271 L_42016B95:
   2272     ecx = esi; /* 0x42016B95: mov ecx, esi */
   2273     RECOMP_ICALL(0x42011260u); /* 0x42016B97: call 0x42011260 */ /* not lifted */
   2274     RECOMP_FLAGS_IN();
   2275     ecx = MEM32(eax); /* 0x42016B9C: mov ecx, dword ptr [eax] */
   2276     edx = MEM32(eax + 0x4); /* 0x42016B9E: mov edx, dword ptr [eax + 4] */
   2277     eax = MEM32(eax + 0x8); /* 0x42016BA1: mov eax, dword ptr [eax + 8] */
   2278     MEM32(ebp + (-0x24)) = ecx; /* 0x42016BA4: mov dword ptr [ebp - 0x24], ecx */
   2279     ecx = MEM32(ebp + 0x8); /* 0x42016BA7: mov ecx, dword ptr [ebp + 8] */
   2280     MEM32(ebp + (-0x20)) = edx; /* 0x42016BAA: mov dword ptr [ebp - 0x20], edx */
   2281     edx = MEM32(ecx); /* 0x42016BAD: mov edx, dword ptr [ecx] */
   2282     MEM32(ebp + (-0xC)) = edx; /* 0x42016BAF: mov dword ptr [ebp - 0xc], edx */
   2283     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42016BB2: fld dword ptr [ebp - 0xc] */
   2284     _st[0] -= (double)*(float*)ADDR(esi + 0x54); /* 0x42016BB5: fsub dword ptr [esi + 0x54] */
   2285     MEM32(ebp + (-0x1C)) = eax; /* 0x42016BB8: mov dword ptr [ebp - 0x1c], eax */
   2286     eax = MEM32(ecx + 0x4); /* 0x42016BBB: mov eax, dword ptr [ecx + 4] */
   2287     ecx = MEM32(ecx + 0x8); /* 0x42016BBE: mov ecx, dword ptr [ecx + 8] */
   2288     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42016BC1: fstp dword ptr [ebp - 0xc] */
   2289     MEM32(ebp + (-0x8)) = eax; /* 0x42016BC4: mov dword ptr [ebp - 8], eax */
   2290     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42016BC7: fld dword ptr [ebp - 8] */
   2291     MEM32(ebp + (-0x4)) = ecx; /* 0x42016BCA: mov dword ptr [ebp - 4], ecx */
   2292     _st[0] -= (double)*(float*)ADDR(esi + 0x58); /* 0x42016BCD: fsub dword ptr [esi + 0x58] */
   2293     edx = MEM32(ebp + (-0xC)); /* 0x42016BD0: mov edx, dword ptr [ebp - 0xc] */
   2294     MEM32(ebp + (-0x18)) = edx; /* 0x42016BD3: mov dword ptr [ebp - 0x18], edx */
   2295     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42016BD6: fstp dword ptr [ebp - 8] */
   2296     eax = MEM32(ebp + (-0x8)); /* 0x42016BD9: mov eax, dword ptr [ebp - 8] */
   2297     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42016BDC: fld dword ptr [ebp - 4] */
   2298     MEM32(ebp + (-0x14)) = eax; /* 0x42016BDF: mov dword ptr [ebp - 0x14], eax */
   2299     _st[0] -= (double)*(float*)ADDR(esi + 0x5C); /* 0x42016BE2: fsub dword ptr [esi + 0x5c] */
   2300     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42016BE5: fstp dword ptr [ebp - 4] */
   2301     ecx = MEM32(ebp + (-0x4)); /* 0x42016BE8: mov ecx, dword ptr [ebp - 4] */
   2302     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42016BEB: fld dword ptr [ebp - 0xc] */
   2303     MEM32(ebp + (-0x10)) = ecx; /* 0x42016BEE: mov dword ptr [ebp - 0x10], ecx */
   2304     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x42016BF1: fmul dword ptr [ebp - 0xc] */
   2305     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42016BF4: fld dword ptr [ebp - 4] */
   2306     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x42016BF7: fmul dword ptr [ebp - 4] */
   2307     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016BFA: faddp st(1) */
   2308     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42016BFC: fld dword ptr [ebp - 8] */
   2309     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x42016BFF: fmul dword ptr [ebp - 8] */
   2310     { double _v = fp_pop(); _st[0] += _v; } /* 0x42016C02: faddp st(1) */
   2311     _st[0] = sqrt(_st[0]); /* 0x42016C04: fsqrt  */
   2312     _st[0] = (double)*(float*)ADDR(0x42018118) / _st[0]; /* 0x42016C06: fdivr dword ptr [0x42018118] */
   2313     fp_push(_st[0]); /* 0x42016C0C: fld st(0) */
   2314     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x42016C0E: fmul dword ptr [ebp - 0xc] */
   2315     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42016C11: fstp dword ptr [ebp - 0x18] */
   2316     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x42016C14: fmul dword ptr [ebp - 0x10] */
   2317     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42016C17: fld dword ptr [ebp - 0x1c] */
   2318     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x42016C1A: fmul dword ptr [ebp - 0x18] */
   2319     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x42016C1D: fld dword ptr [ebp - 0x24] */
   2320     _st[0] *= _st[2]; /* 0x42016C20: fmul st(2) */
   2321     { double _v = fp_pop(); _st[0] -= _v; } /* 0x42016C22: fsubp st(1) */
   2322     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42016C24: fst dword ptr [ebp + 8] */
   2323     { _st[1] = _st[0]; g_st_i64[1] = g_st_i64[0]; fp_pop(); } /* 0x42016C27: fstp st(1) */
   2324     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016C29: fld dword ptr [ebp + 8] */
   2325     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420186F4)); /* 0x42016C2C: fcomp dword ptr [0x420186f4] */
   2326     fp_pop();
   2327     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016C32: fnstsw ax */
   2328     /* test HI8(eax), 1 */ /* 0x42016C34: test ah, 1 */
   2329     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2330     _cf = 0;
   2331     _flag_k = FK_NARROW(FK_TEST, 24);
   2332     if (TEST_Z(_flag_a, _flag_b)) goto L_42016C43; /* 0x42016C37: je 0x42016c43 */
   2333 L_42016C39:
   2334     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016C39: fstp st(0) */
   2335     fp_push(*(float*)&MEM32(0x420186F4)); /* 0x42016C3B: fld dword ptr [0x420186f4] */
   2336     goto L_42016C5B; /* 0x42016C41: jmp 0x42016c5b */
   2337 L_42016C43:
   2338     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42016C43: fld dword ptr [ebp + 8] */
   2339     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180D0)); /* 0x42016C46: fcomp dword ptr [0x420180d0] */
   2340     fp_pop();
   2341     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42016C4C: fnstsw ax */
   2342     /* test HI8(eax), 0x41u */ /* 0x42016C4E: test ah, 0x41 */
   2343     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2344     _cf = 0;
   2345     _flag_k = FK_NARROW(FK_TEST, 24);
   2346     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016C5B; /* 0x42016C51: jne 0x42016c5b */
   2347 L_42016C53:
   2348     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42016C53: fstp st(0) */
   2349     fp_push(*(float*)&MEM32(0x420180D0)); /* 0x42016C55: fld dword ptr [0x420180d0] */
   2350 L_42016C5B:
   2351     edx = MEM32(ebp + 0xC); /* 0x42016C5B: mov edx, dword ptr [ebp + 0xc] */
   2352     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42016C5E: fstp dword ptr [ebp - 0x14] */
   2353     ecx = MEM32(ebp + (-0x14)); /* 0x42016C61: mov ecx, dword ptr [ebp - 0x14] */
   2354     MEM32(ebp + (-0x18)) = 0; /* 0x42016C64: mov dword ptr [ebp - 0x18], 0 */
   2355     eax = MEM32(ebp + (-0x18)); /* 0x42016C6B: mov eax, dword ptr [ebp - 0x18] */
   2356     MEM32(edx) = eax; /* 0x42016C6E: mov dword ptr [edx], eax */
   2357     MEM32(ebp + (-0x10)) = 0; /* 0x42016C70: mov dword ptr [ebp - 0x10], 0 */
   2358     eax = MEM32(ebp + (-0x10)); /* 0x42016C77: mov eax, dword ptr [ebp - 0x10] */
   2359     MEM32(edx + 0x4) = ecx; /* 0x42016C7A: mov dword ptr [edx + 4], ecx */
   2360     MEM32(edx + 0x8) = eax; /* 0x42016C7D: mov dword ptr [edx + 8], eax */
   2361     eax = 4; /* 0x42016C80: mov eax, 4 */
   2362     esi = POP32_VAL(esp); /* 0x42016C85: pop esi */
   2363     esp = ebp; /* 0x42016C86: mov esp, ebp */
   2364     ebp = POP32_VAL(esp); /* 0x42016C88: pop ebp */
   2365     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016C89: ret 8 */
   2366     RECOMP_REGS_OUT();
   2367 }
   2368 
   2369 void sub_42016C6B(void) {
   2370     int _fpu_cmp = 0;
   2371     uint32_t _cf = 0;
   2372     int _df = 1;
   2373     uint32_t _flag_k = FK_NONE;
   2374     uint32_t _flag_a = 0, _flag_b = 0;
   2375     uint32_t _itail_tgt = 0;
   2376     RECOMP_REGS_LOCALS
   2377     RECOMP_ENTER(0x42016C6Bu);
   2378 
   2379 L_42016C6B:
   2380     eax = MEM32(ebp + (-0x18)); /* 0x42016C6B: mov eax, dword ptr [ebp - 0x18] */
   2381     MEM32(edx) = eax; /* 0x42016C6E: mov dword ptr [edx], eax */
   2382     MEM32(ebp + (-0x10)) = 0; /* 0x42016C70: mov dword ptr [ebp - 0x10], 0 */
   2383     eax = MEM32(ebp + (-0x10)); /* 0x42016C77: mov eax, dword ptr [ebp - 0x10] */
   2384     MEM32(edx + 0x4) = ecx; /* 0x42016C7A: mov dword ptr [edx + 4], ecx */
   2385     MEM32(edx + 0x8) = eax; /* 0x42016C7D: mov dword ptr [edx + 8], eax */
   2386     eax = 4; /* 0x42016C80: mov eax, 4 */
   2387     esi = POP32_VAL(esp); /* 0x42016C85: pop esi */
   2388     esp = ebp; /* 0x42016C86: mov esp, ebp */
   2389     ebp = POP32_VAL(esp); /* 0x42016C88: pop ebp */
   2390     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42016C89: ret 8 */
   2391     RECOMP_REGS_OUT();
   2392 }
   2393 
   2394 void sub_42016C90(void) {
   2395     int _fpu_cmp = 0;
   2396     uint32_t _cf = 0;
   2397     int _df = 1;
   2398     uint32_t _flag_k = FK_NONE;
   2399     uint32_t _flag_a = 0, _flag_b = 0;
   2400     uint32_t _itail_tgt = 0;
   2401     RECOMP_REGS_LOCALS
   2402     RECOMP_ENTER(0x42016C90u);
   2403 
   2404 L_42016C90:
   2405     eax = ecx; /* 0x42016C90: mov eax, ecx */
   2406     MEM32(eax) = 0x420185B4u; /* 0x42016C92: mov dword ptr [eax], 0x420185b4 */
   2407     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016C98: ret  */
   2408     RECOMP_REGS_OUT();
   2409 }
   2410 
   2411 void sub_42016CA0(void) {
   2412     int _fpu_cmp = 0;
   2413     uint32_t _cf = 0;
   2414     int _df = 1;
   2415     uint32_t _flag_k = FK_NONE;
   2416     uint32_t _flag_a = 0, _flag_b = 0;
   2417     uint32_t _itail_tgt = 0;
   2418     RECOMP_REGS_LOCALS
   2419     RECOMP_ENTER(0x42016CA0u);
   2420 
   2421 L_42016CA0:
   2422     RECOMP_ICALL(0x42016CB0u); /* 0x42016CA0: call 0x42016cb0 */ /* not lifted */
   2423     RECOMP_FLAGS_IN();
   2424     goto L_42016CC0; /* 0x42016CA5: jmp 0x42016cc0 */
   2425 L_42016CC0:
   2426     PUSH32(esp, 0x42016CD0u); /* 0x42016CC0: push 0x42016cd0 */
   2427     RECOMP_ICALL(0x42016E07u); /* 0x42016CC5: call 0x42016e07 */ /* not lifted */
   2428     RECOMP_FLAGS_IN();
   2429     ecx = POP32_VAL(esp); /* 0x42016CCA: pop ecx */
   2430     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016CCB: ret  */
   2431     RECOMP_REGS_OUT();
   2432 }
   2433 
   2434 void sub_42016CB0(void) {
   2435     int _fpu_cmp = 0;
   2436     uint32_t _cf = 0;
   2437     int _df = 1;
   2438     uint32_t _flag_k = FK_NONE;
   2439     uint32_t _flag_a = 0, _flag_b = 0;
   2440     uint32_t _itail_tgt = 0;
   2441     RECOMP_REGS_LOCALS
   2442     RECOMP_ENTER(0x42016CB0u);
   2443 
   2444 L_42016CB0:
   2445     PUSH32(esp, 0xE6F1u); /* 0x42016CB0: push 0xe6f1 */
   2446     ecx = 0x42023270u; /* 0x42016CB5: mov ecx, 0x42023270 */
   2447     RECOMP_ICALL(0x42016CF0u); /* 0x42016CBA: call 0x42016cf0 */ /* not lifted */
   2448     RECOMP_FLAGS_IN();
   2449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016CBF: ret  */
   2450     RECOMP_REGS_OUT();
   2451 }
   2452 
   2453 void sub_42016CC0(void) {
   2454     int _fpu_cmp = 0;
   2455     uint32_t _cf = 0;
   2456     int _df = 1;
   2457     uint32_t _flag_k = FK_NONE;
   2458     uint32_t _flag_a = 0, _flag_b = 0;
   2459     uint32_t _itail_tgt = 0;
   2460     RECOMP_REGS_LOCALS
   2461     RECOMP_ENTER(0x42016CC0u);
   2462 
   2463 L_42016CC0:
   2464     PUSH32(esp, 0x42016CD0u); /* 0x42016CC0: push 0x42016cd0 */
   2465     RECOMP_ICALL(0x42016E07u); /* 0x42016CC5: call 0x42016e07 */ /* not lifted */
   2466     RECOMP_FLAGS_IN();
   2467     ecx = POP32_VAL(esp); /* 0x42016CCA: pop ecx */
   2468     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016CCB: ret  */
   2469     RECOMP_REGS_OUT();
   2470 }
   2471 
   2472 void sub_42016CD0(void) {
   2473     int _fpu_cmp = 0;
   2474     uint32_t _cf = 0;
   2475     int _df = 1;
   2476     uint32_t _flag_k = FK_NONE;
   2477     uint32_t _flag_a = 0, _flag_b = 0;
   2478     uint32_t _itail_tgt = 0;
   2479     RECOMP_REGS_LOCALS
   2480     RECOMP_ENTER(0x42016CD0u);
   2481 
   2482 L_42016CD0:
   2483     SET_LO8(ecx, MEM8(0x4202365C)); /* 0x42016CD0: mov cl, byte ptr [0x4202365c] */
   2484     SET_LO8(eax, 1); /* 0x42016CD6: mov al, 1 */
   2485     /* test LO8(eax), LO8(ecx) */ /* 0x42016CD8: test al, cl */
   2486     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2487     _cf = 0;
   2488     _flag_k = FK_NARROW(FK_TEST, 24);
   2489     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016CE4; /* 0x42016CDA: jne 0x42016ce4 */
   2490 L_42016CDC:
   2491     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
   2492     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x42016CDC: or cl, al */
   2493     _cf = 0;
   2494     _flag_k = FK_NARROW(FK_TEST, 24);
   2495     MEM8(0x4202365C) = (uint8_t)(LO8(ecx)); /* 0x42016CDE: mov byte ptr [0x4202365c], cl */
   2496 L_42016CE4:
   2497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016CE4: ret  */
   2498     RECOMP_REGS_OUT();
   2499 }
   2500 
   2501 void sub_42016CF0(void) {
   2502     int _fpu_cmp = 0;
   2503     uint32_t _cf = 0;
   2504     int _df = 1;
   2505     uint32_t _flag_k = FK_NONE;
   2506     uint32_t _flag_a = 0, _flag_b = 0;
   2507     uint32_t _itail_tgt = 0;
   2508     RECOMP_REGS_LOCALS
   2509     RECOMP_ENTER(0x42016CF0u);
   2510 
   2511 L_42016CF0:
   2512     PUSH32(esp, ebp); /* 0x42016CF0: push ebp */
   2513     ebp = esp; /* 0x42016CF1: mov ebp, esp */
   2514     eax = MEM32(ebp + 0x8); /* 0x42016CF3: mov eax, dword ptr [ebp + 8] */
   2515     PUSH32(esp, esi); /* 0x42016CF6: push esi */
   2516     esi = ecx; /* 0x42016CF7: mov esi, ecx */
   2517     PUSH32(esp, eax); /* 0x42016CF9: push eax */
   2518     RECOMP_ICALL(0x42016D10u); /* 0x42016CFA: call 0x42016d10 */ /* not lifted */
   2519     RECOMP_FLAGS_IN();
   2520     eax = esi; /* 0x42016CFF: mov eax, esi */
   2521     esi = POP32_VAL(esp); /* 0x42016D01: pop esi */
   2522     ebp = POP32_VAL(esp); /* 0x42016D02: pop ebp */
   2523     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42016D03: ret 4 */
   2524     RECOMP_REGS_OUT();
   2525 }
   2526 
   2527 void sub_42016D10(void) {
   2528     int _fpu_cmp = 0;
   2529     uint32_t _cf = 0;
   2530     int _df = 1;
   2531     uint32_t _flag_k = FK_NONE;
   2532     uint32_t _flag_a = 0, _flag_b = 0;
   2533     uint32_t _itail_tgt = 0;
   2534     RECOMP_REGS_LOCALS
   2535     RECOMP_ENTER(0x42016D10u);
   2536 
   2537 L_42016D10:
   2538     PUSH32(esp, ebp); /* 0x42016D10: push ebp */
   2539     ebp = esp; /* 0x42016D11: mov ebp, esp */
   2540     edx = MEM32(ebp + 0x8); /* 0x42016D13: mov edx, dword ptr [ebp + 8] */
   2541     PUSH32(esp, esi); /* 0x42016D16: push esi */
   2542     eax = ecx; /* 0x42016D17: mov eax, ecx */
   2543     PUSH32(esp, edi); /* 0x42016D19: push edi */
   2544     ecx = 0xFAu; /* 0x42016D1A: mov ecx, 0xfa */
   2545     esi = 0x420186FCu; /* 0x42016D1F: mov esi, 0x420186fc */
   2546     edi = eax; /* 0x42016D24: mov edi, eax */
   2547     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x42016D26: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   2548     ecx = edx; /* 0x42016D28: mov ecx, edx */
   2549     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu);
   2550     ecx = ecx & 0xFFu; /* 0x42016D2A: and ecx, 0xff */
   2551     _cf = 0;
   2552     _flag_k = FK_TEST;
   2553     /* cmp ecx, 0xF9u */ /* 0x42016D30: cmp ecx, 0xf9 */
   2554     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xF9u);
   2555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2556     _flag_k = FK_CMP;
   2557     MEM32(eax + 0x3E8) = ecx; /* 0x42016D36: mov dword ptr [eax + 0x3e8], ecx */
   2558     if (CMP_LE(_flag_a, _flag_b)) goto L_42016D43; /* 0x42016D3C: jle 0x42016d43 */
   2559 L_42016D3E:
   2560     ecx = 0xF9u; /* 0x42016D3E: mov ecx, 0xf9 */
   2561 L_42016D43:
   2562     MEM32(eax + 0x3E8) = ecx; /* 0x42016D43: mov dword ptr [eax + 0x3e8], ecx */
   2563     esi = MEM32(eax + ecx * 4); /* 0x42016D49: mov esi, dword ptr [eax + ecx*4] */
   2564     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2565     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2566     esi = esi + edx; /* 0x42016D4C: add esi, edx */
   2567     _flag_k = FK_ADD;
   2568     edi = POP32_VAL(esp); /* 0x42016D4E: pop edi */
   2569     MEM32(eax + ecx * 4) = esi; /* 0x42016D4F: mov dword ptr [eax + ecx*4], esi */
   2570     esi = POP32_VAL(esp); /* 0x42016D52: pop esi */
   2571     ebp = POP32_VAL(esp); /* 0x42016D53: pop ebp */
   2572     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42016D54: ret 4 */
   2573     RECOMP_REGS_OUT();
   2574 }
   2575 
   2576 void sub_42016D60(void) {
   2577     int _fpu_cmp = 0;
   2578     uint32_t _cf = 0;
   2579     int _df = 1;
   2580     uint32_t _flag_k = FK_NONE;
   2581     uint32_t _flag_a = 0, _flag_b = 0;
   2582     uint32_t _itail_tgt = 0;
   2583     RECOMP_REGS_LOCALS
   2584     RECOMP_ENTER(0x42016D60u);
   2585 
   2586 L_42016D60:
   2587     PUSH32(esp, ebp); /* 0x42016D60: push ebp */
   2588     ebp = esp; /* 0x42016D61: mov ebp, esp */
   2589     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2590     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2591     esp = esp - 8; /* 0x42016D63: sub esp, 8 */
   2592     _flag_k = FK_CMP;
   2593     edx = MEM32(ecx + 0x3E8); /* 0x42016D66: mov edx, dword ptr [ecx + 0x3e8] */
   2594     /* cmp edx, 0x93u */ /* 0x42016D6C: cmp edx, 0x93 */
   2595     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x93u);
   2596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2597     _flag_k = FK_CMP;
   2598     eax = edx + (-0x93); /* 0x42016D72: lea eax, [edx - 0x93] */
   2599     if (CMP_GE(_flag_a, _flag_b)) goto L_42016D7D; /* 0x42016D78: jge 0x42016d7d */
   2600 L_42016D7A:
   2601     eax = edx + 0x67; /* 0x42016D7A: lea eax, [edx + 0x67] */
   2602 L_42016D7D:
   2603     eax = MEM32(ecx + eax * 4); /* 0x42016D7D: mov eax, dword ptr [ecx + eax*4] */
   2604     PUSH32(esp, edi); /* 0x42016D80: push edi */
   2605     edi = MEM32(ecx + edx * 4); /* 0x42016D81: mov edi, dword ptr [ecx + edx*4] */
   2606     _flag_a = (uint32_t)((eax ^ edi)); _flag_b = (uint32_t)((eax ^ edi));
   2607     eax = eax ^ edi; /* 0x42016D84: xor eax, edi */
   2608     _cf = 0;
   2609     _flag_k = FK_TEST;
   2610     edi = POP32_VAL(esp); /* 0x42016D86: pop edi */
   2611     MEM32(ecx + edx * 4) = eax; /* 0x42016D87: mov dword ptr [ecx + edx*4], eax */
   2612     edx = MEM32(ecx + 0x3E8); /* 0x42016D8A: mov edx, dword ptr [ecx + 0x3e8] */
   2613     /* cmp edx, 0xF9u */ /* 0x42016D90: cmp edx, 0xf9 */
   2614     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xF9u);
   2615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2616     _flag_k = FK_CMP;
   2617     if (CMP_L(_flag_a, _flag_b)) goto L_42016DA4; /* 0x42016D96: jl 0x42016da4 */
   2618 L_42016D98:
   2619     MEM32(ecx + 0x3E8) = 0; /* 0x42016D98: mov dword ptr [ecx + 0x3e8], 0 */
   2620     goto L_42016DAB; /* 0x42016DA2: jmp 0x42016dab */
   2621 L_42016DA4:
   2622     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2623     edx = edx + 1; /* 0x42016DA4: inc edx */
   2624     _flag_k = FK_INC;
   2625     MEM32(ecx + 0x3E8) = edx; /* 0x42016DA5: mov dword ptr [ecx + 0x3e8], edx */
   2626 L_42016DAB:
   2627     MEM32(ebp + (-0x8)) = eax; /* 0x42016DAB: mov dword ptr [ebp - 8], eax */
   2628     MEM32(ebp + (-0x4)) = 0; /* 0x42016DAE: mov dword ptr [ebp - 4], 0 */
   2629     fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x42016DB5: fild qword ptr [ebp - 8] */
   2630     _st[0] *= (double)*(float*)ADDR(0x42018AE4); /* 0x42016DB8: fmul dword ptr [0x42018ae4] */
   2631     esp = ebp; /* 0x42016DBE: mov esp, ebp */
   2632     ebp = POP32_VAL(esp); /* 0x42016DC0: pop ebp */
   2633     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016DC1: ret  */
   2634     RECOMP_REGS_OUT();
   2635 }
   2636 
   2637 void sub_42016DA2(void) {
   2638     int _fpu_cmp = 0;
   2639     uint32_t _cf = 0;
   2640     int _df = 1;
   2641     uint32_t _flag_k = FK_NONE;
   2642     uint32_t _flag_a = 0, _flag_b = 0;
   2643     uint32_t _itail_tgt = 0;
   2644     RECOMP_REGS_LOCALS
   2645     RECOMP_ENTER(0x42016DA2u);
   2646 
   2647 L_42016DA2:
   2648     goto L_42016DAB; /* 0x42016DA2: jmp 0x42016dab */
   2649 L_42016DAB:
   2650     MEM32(ebp + (-0x8)) = eax; /* 0x42016DAB: mov dword ptr [ebp - 8], eax */
   2651     MEM32(ebp + (-0x4)) = 0; /* 0x42016DAE: mov dword ptr [ebp - 4], 0 */
   2652     fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x42016DB5: fild qword ptr [ebp - 8] */
   2653     _st[0] *= (double)*(float*)ADDR(0x42018AE4); /* 0x42016DB8: fmul dword ptr [0x42018ae4] */
   2654     esp = ebp; /* 0x42016DBE: mov esp, ebp */
   2655     ebp = POP32_VAL(esp); /* 0x42016DC0: pop ebp */
   2656     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016DC1: ret  */
   2657     RECOMP_REGS_OUT();
   2658 }
   2659 
   2660 void sub_42016DAB(void) {
   2661     int _fpu_cmp = 0;
   2662     uint32_t _cf = 0;
   2663     int _df = 1;
   2664     uint32_t _flag_k = FK_NONE;
   2665     uint32_t _flag_a = 0, _flag_b = 0;
   2666     uint32_t _itail_tgt = 0;
   2667     RECOMP_REGS_LOCALS
   2668     RECOMP_ENTER(0x42016DABu);
   2669 
   2670 L_42016DAB:
   2671     MEM32(ebp + (-0x8)) = eax; /* 0x42016DAB: mov dword ptr [ebp - 8], eax */
   2672     MEM32(ebp + (-0x4)) = 0; /* 0x42016DAE: mov dword ptr [ebp - 4], 0 */
   2673     fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x42016DB5: fild qword ptr [ebp - 8] */
   2674     _st[0] *= (double)*(float*)ADDR(0x42018AE4); /* 0x42016DB8: fmul dword ptr [0x42018ae4] */
   2675     esp = ebp; /* 0x42016DBE: mov esp, ebp */
   2676     ebp = POP32_VAL(esp); /* 0x42016DC0: pop ebp */
   2677     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016DC1: ret  */
   2678     RECOMP_REGS_OUT();
   2679 }
   2680 
   2681 void sub_42016DD0(void) {
   2682     int _fpu_cmp = 0;
   2683     uint32_t _cf = 0;
   2684     int _df = 1;
   2685     uint32_t _flag_k = FK_NONE;
   2686     uint32_t _flag_a = 0, _flag_b = 0;
   2687     uint32_t _itail_tgt = 0;
   2688     RECOMP_REGS_LOCALS
   2689     RECOMP_ENTER(0x42016DD0u);
   2690 
   2691 L_42016DD0:
   2692     PUSH32(esp, MEM32(esp + 0x4)); /* 0x42016DD0: push dword ptr [esp + 4] */
   2693     RECOMP_ICALL(0x42017112u); /* 0x42016DD4: call 0x42017112 */ /* not lifted */
   2694     RECOMP_FLAGS_IN();
   2695     ecx = POP32_VAL(esp); /* 0x42016DD9: pop ecx */
   2696     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016DDA: ret  */
   2697     RECOMP_REGS_OUT();
   2698 }
   2699 
   2700 void sub_42016DDB(void) {
   2701     int _fpu_cmp = 0;
   2702     uint32_t _cf = 0;
   2703     int _df = 1;
   2704     uint32_t _flag_k = FK_NONE;
   2705     uint32_t _flag_a = 0, _flag_b = 0;
   2706     uint32_t _itail_tgt = 0;
   2707     RECOMP_REGS_LOCALS
   2708     RECOMP_ENTER(0x42016DDBu);
   2709 
   2710 L_42016DDB:
   2711     /* cmp MEM32(0x42023670), 0xFFFFFFFFu */ /* 0x42016DDB: cmp dword ptr [0x42023670], -1 */
   2712     _flag_a = (uint32_t)(MEM32(0x42023670)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2714     _flag_k = FK_CMP;
   2715     if (CMP_NE(_flag_a, _flag_b)) goto L_42016DF0; /* 0x42016DE2: jne 0x42016df0 */
   2716 L_42016DE4:
   2717     PUSH32(esp, MEM32(esp + 0x4)); /* 0x42016DE4: push dword ptr [esp + 4] */
   2718     RECOMP_ICALL(MEM32(0x42018030)); /* 0x42016DE8: call dword ptr [0x42018030] */
   2719     RECOMP_FLAGS_IN();
   2720     ecx = POP32_VAL(esp); /* 0x42016DEE: pop ecx */
   2721     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016DEF: ret  */
   2722 L_42016DF0:
   2723     PUSH32(esp, 0x4202366Cu); /* 0x42016DF0: push 0x4202366c */
   2724     PUSH32(esp, 0x42023670u); /* 0x42016DF5: push 0x42023670 */
   2725     PUSH32(esp, MEM32(esp + 0xC)); /* 0x42016DFA: push dword ptr [esp + 0xc] */
   2726     RECOMP_ICALL(0x42017118u); /* 0x42016DFE: call 0x42017118 */ /* not lifted */
   2727     RECOMP_FLAGS_IN();
   2728     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2729     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2730     esp = esp + 0xCu; /* 0x42016E03: add esp, 0xc */
   2731     _flag_k = FK_ADD;
   2732     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016E06: ret  */
   2733     RECOMP_REGS_OUT();
   2734 }
   2735 
   2736 void sub_42016E07(void) {
   2737     int _fpu_cmp = 0;
   2738     uint32_t _cf = 0;
   2739     int _df = 1;
   2740     uint32_t _flag_k = FK_NONE;
   2741     uint32_t _flag_a = 0, _flag_b = 0;
   2742     uint32_t _itail_tgt = 0;
   2743     RECOMP_REGS_LOCALS
   2744     RECOMP_ENTER(0x42016E07u);
   2745 
   2746 L_42016E07:
   2747     PUSH32(esp, MEM32(esp + 0x4)); /* 0x42016E07: push dword ptr [esp + 4] */
   2748     RECOMP_ICALL(0x42016DDBu); /* 0x42016E0B: call 0x42016ddb */ /* not lifted */
   2749     RECOMP_FLAGS_IN();
   2750     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2751     _cf = (eax) != 0;
   2752     eax = (uint32_t)(-(int32_t)eax); /* 0x42016E10: neg eax */
   2753     _flag_k = FK_CMP;
   2754     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x42016E12: sbb eax, eax */
   2755       eax = _sc ? 0xFFFFFFFFu : 0;
   2756       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2757       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2758     ecx = POP32_VAL(esp); /* 0x42016E14: pop ecx */
   2759     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2760     _cf = (eax) != 0;
   2761     eax = (uint32_t)(-(int32_t)eax); /* 0x42016E15: neg eax */
   2762     _flag_k = FK_CMP;
   2763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2764     eax = eax - 1; /* 0x42016E17: dec eax */
   2765     _flag_k = FK_DEC;
   2766     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016E18: ret  */
   2767     RECOMP_REGS_OUT();
   2768 }
   2769 
   2770 void sub_42016E1A(void) {
   2771     int _fpu_cmp = 0;
   2772     uint32_t _cf = 0;
   2773     int _df = 1;
   2774     uint32_t _flag_k = FK_NONE;
   2775     uint32_t _flag_a = 0, _flag_b = 0;
   2776     uint32_t _itail_tgt = 0;
   2777     RECOMP_REGS_LOCALS
   2778     RECOMP_ENTER(0x42016E1Au);
   2779 
   2780 L_42016E1A:
   2781     { _itail_tgt = (uint32_t)(MEM32(0x4201804C)); goto _ljump; }
   2782     { RECOMP_REGS_OUT(); return; } /* end of function */
   2783   _ljump:
   2784     switch (_itail_tgt) {
   2785       case 0x42016E1Au: goto L_42016E1A;
   2786       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2787     }
   2788     RECOMP_REGS_OUT();
   2789 }
   2790 
   2791 void sub_42016E20(void) {
   2792     int _fpu_cmp = 0;
   2793     uint32_t _cf = 0;
   2794     int _df = 1;
   2795     uint32_t _flag_k = FK_NONE;
   2796     uint32_t _flag_a = 0, _flag_b = 0;
   2797     uint32_t _itail_tgt = 0;
   2798     RECOMP_REGS_LOCALS
   2799     RECOMP_ENTER(0x42016E20u);
   2800 
   2801 L_42016E20:
   2802     PUSH32(esp, esi); /* 0x42016E20: push esi */
   2803     esi = ecx; /* 0x42016E21: mov esi, ecx */
   2804     RECOMP_ICALL(0x4201711Eu); /* 0x42016E23: call 0x4201711e */ /* not lifted */
   2805     RECOMP_FLAGS_IN();
   2806     /* test MEM8(esp + 0x8), 1 */ /* 0x42016E28: test byte ptr [esp + 8], 1 */
   2807     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2808     _cf = 0;
   2809     _flag_k = FK_NARROW(FK_TEST, 24);
   2810     if (TEST_Z(_flag_a, _flag_b)) goto L_42016E36; /* 0x42016E2D: je 0x42016e36 */
   2811 L_42016E2F:
   2812     PUSH32(esp, esi); /* 0x42016E2F: push esi */
   2813     RECOMP_ICALL(0x42016DD0u); /* 0x42016E30: call 0x42016dd0 */ /* not lifted */
   2814     RECOMP_FLAGS_IN();
   2815     ecx = POP32_VAL(esp); /* 0x42016E35: pop ecx */
   2816 L_42016E36:
   2817     eax = esi; /* 0x42016E36: mov eax, esi */
   2818     esi = POP32_VAL(esp); /* 0x42016E38: pop esi */
   2819     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42016E39: ret 4 */
   2820     RECOMP_REGS_OUT();
   2821 }
   2822 
   2823 void sub_42016E3C(void) {
   2824     int _fpu_cmp = 0;
   2825     uint32_t _cf = 0;
   2826     int _df = 1;
   2827     uint32_t _flag_k = FK_NONE;
   2828     uint32_t _flag_a = 0, _flag_b = 0;
   2829     uint32_t _itail_tgt = 0;
   2830     RECOMP_REGS_LOCALS
   2831     RECOMP_ENTER(0x42016E3Cu);
   2832 
   2833 L_42016E3C:
   2834     PUSH32(esp, ebp); /* 0x42016E3C: push ebp */
   2835     ebp = esp; /* 0x42016E3D: mov ebp, esp */
   2836     PUSH32(esp, 0xFFFFFFFFu); /* 0x42016E3F: push -1 */
   2837     PUSH32(esp, 0x42018AF0u); /* 0x42016E41: push 0x42018af0 */
   2838     PUSH32(esp, 0x42017124u); /* 0x42016E46: push 0x42017124 */
   2839     eax = MEM32(FS_BASE + (0)); /* 0x42016E4B: mov eax, dword ptr fs:[0] */
   2840     PUSH32(esp, eax); /* 0x42016E51: push eax */
   2841     MEM32(FS_BASE + (0)) = esp; /* 0x42016E52: mov dword ptr fs:[0], esp */
   2842     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2844     esp = esp - 0xCu; /* 0x42016E59: sub esp, 0xc */
   2845     _flag_k = FK_CMP;
   2846     PUSH32(esp, ebx); /* 0x42016E5C: push ebx */
   2847     PUSH32(esp, esi); /* 0x42016E5D: push esi */
   2848     PUSH32(esp, edi); /* 0x42016E5E: push edi */
   2849     _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(0);
   2850     MEM32(ebp + (-0x1C)) = MEM32(ebp + (-0x1C)) & 0; /* 0x42016E5F: and dword ptr [ebp - 0x1c], 0 */
   2851     _cf = 0;
   2852     _flag_k = FK_TEST;
   2853     esi = MEM32(ebp + 0xC); /* 0x42016E63: mov esi, dword ptr [ebp + 0xc] */
   2854     eax = esi; /* 0x42016E66: mov eax, esi */
   2855     eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(ebp + 0x10)); /* 0x42016E68: imul eax, dword ptr [ebp + 0x10] */
   2856     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(eax);
   2857     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2858     MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + eax; /* 0x42016E6C: add dword ptr [ebp + 8], eax */
   2859     _flag_k = FK_ADD;
   2860     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   2861     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x42016E6F: and dword ptr [ebp - 4], 0 */
   2862     _cf = 0;
   2863     _flag_k = FK_TEST;
   2864 L_42016E73:
   2865     _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1);
   2866     MEM32(ebp + 0x10) = MEM32(ebp + 0x10) - 1; /* 0x42016E73: dec dword ptr [ebp + 0x10] */
   2867     _flag_k = FK_DEC;
   2868     if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_42016E83; /* 0x42016E76: js 0x42016e83 */
   2869 L_42016E78:
   2870     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(esi);
   2871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2872     MEM32(ebp + 0x8) = MEM32(ebp + 0x8) - esi; /* 0x42016E78: sub dword ptr [ebp + 8], esi */
   2873     _flag_k = FK_CMP;
   2874     ecx = MEM32(ebp + 0x8); /* 0x42016E7B: mov ecx, dword ptr [ebp + 8] */
   2875     RECOMP_ICALL(MEM32(ebp + 0x14)); /* 0x42016E7E: call dword ptr [ebp + 0x14] */
   2876     RECOMP_FLAGS_IN();
   2877     RECOMP_BACKEDGE();
   2878     goto L_42016E73; /* 0x42016E81: jmp 0x42016e73 */
   2879 L_42016E83:
   2880     MEM32(ebp + (-0x1C)) = 1; /* 0x42016E83: mov dword ptr [ebp - 0x1c], 1 */
   2881     _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu));
   2882     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x42016E8A: or dword ptr [ebp - 4], 0xffffffff */
   2883     _cf = 0;
   2884     _flag_k = FK_TEST;
   2885     RECOMP_ICALL(0x42016EA4u); /* 0x42016E8E: call 0x42016ea4 */ /* not lifted */
   2886     RECOMP_FLAGS_IN();
   2887     ecx = MEM32(ebp + (-0x10)); /* 0x42016E93: mov ecx, dword ptr [ebp - 0x10] */
   2888     MEM32(FS_BASE + (0)) = ecx; /* 0x42016E96: mov dword ptr fs:[0], ecx */
   2889     edi = POP32_VAL(esp); /* 0x42016E9D: pop edi */
   2890     esi = POP32_VAL(esp); /* 0x42016E9E: pop esi */
   2891     ebx = POP32_VAL(esp); /* 0x42016E9F: pop ebx */
   2892     esp = ebp; ebp = POP32_VAL(esp); /* 0x42016EA0: leave  */
   2893     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42016EA1: ret 0x10 */
   2894     RECOMP_REGS_OUT();
   2895 }
   2896 
   2897 void sub_42016EA4(void) {
   2898     int _fpu_cmp = 0;
   2899     uint32_t _cf = 0;
   2900     int _df = 1;
   2901     uint32_t _flag_k = FK_NONE;
   2902     uint32_t _flag_a = 0, _flag_b = 0;
   2903     uint32_t _itail_tgt = 0;
   2904     RECOMP_REGS_LOCALS
   2905     RECOMP_ENTER(0x42016EA4u);
   2906 
   2907 L_42016EA4:
   2908     /* cmp MEM32(ebp + (-0x1C)), 0 */ /* 0x42016EA4: cmp dword ptr [ebp - 0x1c], 0 */
   2909     _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(0);
   2910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2911     _flag_k = FK_CMP;
   2912     if (CMP_NE(_flag_a, _flag_b)) goto L_42016EBB; /* 0x42016EA8: jne 0x42016ebb */
   2913 L_42016EAA:
   2914     PUSH32(esp, MEM32(ebp + 0x14)); /* 0x42016EAA: push dword ptr [ebp + 0x14] */
   2915     PUSH32(esp, MEM32(ebp + 0x10)); /* 0x42016EAD: push dword ptr [ebp + 0x10] */
   2916     PUSH32(esp, MEM32(ebp + 0xC)); /* 0x42016EB0: push dword ptr [ebp + 0xc] */
   2917     PUSH32(esp, MEM32(ebp + 0x8)); /* 0x42016EB3: push dword ptr [ebp + 8] */
   2918     RECOMP_ICALL(0x42016EBCu); /* 0x42016EB6: call 0x42016ebc */ /* not lifted */
   2919     RECOMP_FLAGS_IN();
   2920 L_42016EBB:
   2921     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016EBB: ret  */
   2922     RECOMP_REGS_OUT();
   2923 }
   2924 
   2925 void sub_42016EBC(void) {
   2926     int _fpu_cmp = 0;
   2927     uint32_t _cf = 0;
   2928     int _df = 1;
   2929     uint32_t _flag_k = FK_NONE;
   2930     uint32_t _flag_a = 0, _flag_b = 0;
   2931     uint32_t _itail_tgt = 0;
   2932     RECOMP_REGS_LOCALS
   2933     RECOMP_ENTER(0x42016EBCu);
   2934 
   2935 L_42016EBC:
   2936     PUSH32(esp, ebp); /* 0x42016EBC: push ebp */
   2937     ebp = esp; /* 0x42016EBD: mov ebp, esp */
   2938     PUSH32(esp, 0xFFFFFFFFu); /* 0x42016EBF: push -1 */
   2939     PUSH32(esp, 0x42018B00u); /* 0x42016EC1: push 0x42018b00 */
   2940     PUSH32(esp, 0x42017124u); /* 0x42016EC6: push 0x42017124 */
   2941     eax = MEM32(FS_BASE + (0)); /* 0x42016ECB: mov eax, dword ptr fs:[0] */
   2942     PUSH32(esp, eax); /* 0x42016ED1: push eax */
   2943     MEM32(FS_BASE + (0)) = esp; /* 0x42016ED2: mov dword ptr fs:[0], esp */
   2944     PUSH32(esp, ecx); /* 0x42016ED9: push ecx */
   2945     PUSH32(esp, ecx); /* 0x42016EDA: push ecx */
   2946     PUSH32(esp, ebx); /* 0x42016EDB: push ebx */
   2947     PUSH32(esp, esi); /* 0x42016EDC: push esi */
   2948     PUSH32(esp, edi); /* 0x42016EDD: push edi */
   2949     MEM32(ebp + (-0x18)) = esp; /* 0x42016EDE: mov dword ptr [ebp - 0x18], esp */
   2950     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   2951     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x42016EE1: and dword ptr [ebp - 4], 0 */
   2952     _cf = 0;
   2953     _flag_k = FK_TEST;
   2954 L_42016EE5:
   2955     _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1);
   2956     MEM32(ebp + 0x10) = MEM32(ebp + 0x10) - 1; /* 0x42016EE5: dec dword ptr [ebp + 0x10] */
   2957     _flag_k = FK_DEC;
   2958     if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_42016F05; /* 0x42016EE8: js 0x42016f05 */
   2959 L_42016EEA:
   2960     ecx = MEM32(ebp + 0x8); /* 0x42016EEA: mov ecx, dword ptr [ebp + 8] */
   2961     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   2962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2963     ecx = ecx - MEM32(ebp + 0xC); /* 0x42016EED: sub ecx, dword ptr [ebp + 0xc] */
   2964     _flag_k = FK_CMP;
   2965     MEM32(ebp + 0x8) = ecx; /* 0x42016EF0: mov dword ptr [ebp + 8], ecx */
   2966     RECOMP_ICALL(MEM32(ebp + 0x14)); /* 0x42016EF3: call dword ptr [ebp + 0x14] */
   2967     RECOMP_FLAGS_IN();
   2968     RECOMP_BACKEDGE();
   2969     goto L_42016EE5; /* 0x42016EF6: jmp 0x42016ee5 */
   2970 L_42016F05:
   2971     _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu));
   2972     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x42016F05: or dword ptr [ebp - 4], 0xffffffff */
   2973     _cf = 0;
   2974     _flag_k = FK_TEST;
   2975     ecx = MEM32(ebp + (-0x10)); /* 0x42016F09: mov ecx, dword ptr [ebp - 0x10] */
   2976     MEM32(FS_BASE + (0)) = ecx; /* 0x42016F0C: mov dword ptr fs:[0], ecx */
   2977     edi = POP32_VAL(esp); /* 0x42016F13: pop edi */
   2978     esi = POP32_VAL(esp); /* 0x42016F14: pop esi */
   2979     ebx = POP32_VAL(esp); /* 0x42016F15: pop ebx */
   2980     esp = ebp; ebp = POP32_VAL(esp); /* 0x42016F16: leave  */
   2981     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42016F17: ret 0x10 */
   2982     RECOMP_REGS_OUT();
   2983 }
   2984 
   2985 void sub_42016EF8(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(0x42016EF8u);
   2994 
   2995 L_42016EF8:
   2996     PUSH32(esp, MEM32(ebp + (-0x14))); /* 0x42016EF8: push dword ptr [ebp - 0x14] */
   2997     RECOMP_ICALL(0x42016F1Au); /* 0x42016EFB: call 0x42016f1a */ /* not lifted */
   2998     RECOMP_FLAGS_IN();
   2999     ecx = POP32_VAL(esp); /* 0x42016F00: pop ecx */
   3000     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016F01: ret  */
   3001     RECOMP_REGS_OUT();
   3002 }
   3003 
   3004 void sub_42016F02(void) {
   3005     int _fpu_cmp = 0;
   3006     uint32_t _cf = 0;
   3007     int _df = 1;
   3008     uint32_t _flag_k = FK_NONE;
   3009     uint32_t _flag_a = 0, _flag_b = 0;
   3010     uint32_t _itail_tgt = 0;
   3011     RECOMP_REGS_LOCALS
   3012     RECOMP_ENTER(0x42016F02u);
   3013 
   3014 L_42016F02:
   3015     esp = MEM32(ebp + (-0x18)); /* 0x42016F02: mov esp, dword ptr [ebp - 0x18] */
   3016     _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu));
   3017     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x42016F05: or dword ptr [ebp - 4], 0xffffffff */
   3018     _cf = 0;
   3019     _flag_k = FK_TEST;
   3020     ecx = MEM32(ebp + (-0x10)); /* 0x42016F09: mov ecx, dword ptr [ebp - 0x10] */
   3021     MEM32(FS_BASE + (0)) = ecx; /* 0x42016F0C: mov dword ptr fs:[0], ecx */
   3022     edi = POP32_VAL(esp); /* 0x42016F13: pop edi */
   3023     esi = POP32_VAL(esp); /* 0x42016F14: pop esi */
   3024     ebx = POP32_VAL(esp); /* 0x42016F15: pop ebx */
   3025     esp = ebp; ebp = POP32_VAL(esp); /* 0x42016F16: leave  */
   3026     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42016F17: ret 0x10 */
   3027     RECOMP_REGS_OUT();
   3028 }
   3029 
   3030 void sub_42016F05(void) {
   3031     int _fpu_cmp = 0;
   3032     uint32_t _cf = 0;
   3033     int _df = 1;
   3034     uint32_t _flag_k = FK_NONE;
   3035     uint32_t _flag_a = 0, _flag_b = 0;
   3036     uint32_t _itail_tgt = 0;
   3037     RECOMP_REGS_LOCALS
   3038     RECOMP_ENTER(0x42016F05u);
   3039 
   3040 L_42016F05:
   3041     _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu));
   3042     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x42016F05: or dword ptr [ebp - 4], 0xffffffff */
   3043     _cf = 0;
   3044     _flag_k = FK_TEST;
   3045     ecx = MEM32(ebp + (-0x10)); /* 0x42016F09: mov ecx, dword ptr [ebp - 0x10] */
   3046     MEM32(FS_BASE + (0)) = ecx; /* 0x42016F0C: mov dword ptr fs:[0], ecx */
   3047     edi = POP32_VAL(esp); /* 0x42016F13: pop edi */
   3048     esi = POP32_VAL(esp); /* 0x42016F14: pop esi */
   3049     ebx = POP32_VAL(esp); /* 0x42016F15: pop ebx */
   3050     esp = ebp; ebp = POP32_VAL(esp); /* 0x42016F16: leave  */
   3051     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42016F17: ret 0x10 */
   3052     RECOMP_REGS_OUT();
   3053 }
   3054 
   3055 void sub_42016F1A(void) {
   3056     int _fpu_cmp = 0;
   3057     uint32_t _cf = 0;
   3058     int _df = 1;
   3059     uint32_t _flag_k = FK_NONE;
   3060     uint32_t _flag_a = 0, _flag_b = 0;
   3061     uint32_t _itail_tgt = 0;
   3062     RECOMP_REGS_LOCALS
   3063     RECOMP_ENTER(0x42016F1Au);
   3064 
   3065 L_42016F1A:
   3066     eax = MEM32(esp + 0x4); /* 0x42016F1A: mov eax, dword ptr [esp + 4] */
   3067 L_42016F1E:
   3068     eax = MEM32(eax); /* 0x42016F1E: mov eax, dword ptr [eax] */
   3069 L_42016F20:
   3070     /* cmp MEM32(eax), 0xE06D7363u */ /* 0x42016F20: cmp dword ptr [eax], 0xe06d7363 */
   3071     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xE06D7363u);
   3072     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3073     _flag_k = FK_CMP;
   3074 L_42016F26:
   3075     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_42016F2B; /* 0x42016F26: je 0x42016f2b */
   3076 L_42016F28:
   3077     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3078     eax = 0; /* 0x42016F28: xor eax, eax */
   3079     _cf = 0;
   3080     _flag_k = FK_TEST;
   3081 L_42016F2A:
   3082     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016F2A: ret  */
   3083 L_42016F2B:
   3084     goto L_4201712A; /* 0x42016F2B: jmp 0x4201712a */
   3085 L_4201712A:
   3086     { _itail_tgt = (uint32_t)(MEM32(0x42018024)); goto _ljump; }
   3087     { RECOMP_REGS_OUT(); return; } /* end of function */
   3088   _ljump:
   3089     switch (_itail_tgt) {
   3090       case 0x42016F1Au: goto L_42016F1A;
   3091       case 0x42016F1Eu: goto L_42016F1E;
   3092       case 0x42016F20u: goto L_42016F20;
   3093       case 0x42016F26u: goto L_42016F26;
   3094       case 0x42016F28u: goto L_42016F28;
   3095       case 0x42016F2Au: goto L_42016F2A;
   3096       case 0x42016F2Bu: goto L_42016F2B;
   3097       case 0x4201712Au: goto L_4201712A;
   3098       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3099     }
   3100     RECOMP_REGS_OUT();
   3101 }
   3102 
   3103 void sub_42016F30(void) {
   3104     int _fpu_cmp = 0;
   3105     uint32_t _cf = 0;
   3106     int _df = 1;
   3107     uint32_t _flag_k = FK_NONE;
   3108     uint32_t _flag_a = 0, _flag_b = 0;
   3109     uint32_t _itail_tgt = 0;
   3110     RECOMP_REGS_LOCALS
   3111     RECOMP_ENTER(0x42016F30u);
   3112 
   3113 L_42016F30:
   3114     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   3115     { RECOMP_REGS_OUT(); return; } /* end of function */
   3116   _ljump:
   3117     switch (_itail_tgt) {
   3118       case 0x42016F30u: goto L_42016F30;
   3119       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3120     }
   3121     RECOMP_REGS_OUT();
   3122 }
   3123 
   3124 void sub_42016F36(void) {
   3125     int _fpu_cmp = 0;
   3126     uint32_t _cf = 0;
   3127     int _df = 1;
   3128     uint32_t _flag_k = FK_NONE;
   3129     uint32_t _flag_a = 0, _flag_b = 0;
   3130     uint32_t _itail_tgt = 0;
   3131     RECOMP_REGS_LOCALS
   3132     RECOMP_ENTER(0x42016F36u);
   3133 
   3134 L_42016F36:
   3135     { _itail_tgt = (uint32_t)(MEM32(0x42018058)); goto _ljump; }
   3136     { RECOMP_REGS_OUT(); return; } /* end of function */
   3137   _ljump:
   3138     switch (_itail_tgt) {
   3139       case 0x42016F36u: goto L_42016F36;
   3140       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3141     }
   3142     RECOMP_REGS_OUT();
   3143 }
   3144 
   3145 void sub_42016F3C(void) {
   3146     int _fpu_cmp = 0;
   3147     uint32_t _cf = 0;
   3148     int _df = 1;
   3149     uint32_t _flag_k = FK_NONE;
   3150     uint32_t _flag_a = 0, _flag_b = 0;
   3151     uint32_t _itail_tgt = 0;
   3152     RECOMP_REGS_LOCALS
   3153     RECOMP_ENTER(0x42016F3Cu);
   3154 
   3155 L_42016F3C:
   3156     { _itail_tgt = (uint32_t)(MEM32(0x42018040)); goto _ljump; }
   3157     { RECOMP_REGS_OUT(); return; } /* end of function */
   3158   _ljump:
   3159     switch (_itail_tgt) {
   3160       case 0x42016F3Cu: goto L_42016F3C;
   3161       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3162     }
   3163     RECOMP_REGS_OUT();
   3164 }
   3165 
   3166 void sub_42016F42(void) {
   3167     int _fpu_cmp = 0;
   3168     uint32_t _cf = 0;
   3169     int _df = 1;
   3170     uint32_t _flag_k = FK_NONE;
   3171     uint32_t _flag_a = 0, _flag_b = 0;
   3172     uint32_t _itail_tgt = 0;
   3173     RECOMP_REGS_LOCALS
   3174     RECOMP_ENTER(0x42016F42u);
   3175 
   3176 L_42016F42:
   3177     { _itail_tgt = (uint32_t)(MEM32(0x4201803C)); goto _ljump; }
   3178     { RECOMP_REGS_OUT(); return; } /* end of function */
   3179   _ljump:
   3180     switch (_itail_tgt) {
   3181       case 0x42016F42u: goto L_42016F42;
   3182       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3183     }
   3184     RECOMP_REGS_OUT();
   3185 }
   3186 
   3187 void sub_42016F48(void) {
   3188     int _fpu_cmp = 0;
   3189     uint32_t _cf = 0;
   3190     int _df = 1;
   3191     uint32_t _flag_k = FK_NONE;
   3192     uint32_t _flag_a = 0, _flag_b = 0;
   3193     uint32_t _itail_tgt = 0;
   3194     RECOMP_REGS_LOCALS
   3195     RECOMP_ENTER(0x42016F48u);
   3196 
   3197 L_42016F48:
   3198     PUSH32(esp, ebp); /* 0x42016F48: push ebp */
   3199     ebp = esp; /* 0x42016F49: mov ebp, esp */
   3200     PUSH32(esp, 0xFFFFFFFFu); /* 0x42016F4B: push -1 */
   3201     PUSH32(esp, 0x42018B10u); /* 0x42016F4D: push 0x42018b10 */
   3202     PUSH32(esp, 0x42017124u); /* 0x42016F52: push 0x42017124 */
   3203     eax = MEM32(FS_BASE + (0)); /* 0x42016F57: mov eax, dword ptr fs:[0] */
   3204     PUSH32(esp, eax); /* 0x42016F5D: push eax */
   3205     MEM32(FS_BASE + (0)) = esp; /* 0x42016F5E: mov dword ptr fs:[0], esp */
   3206     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3208     esp = esp - 0x10u; /* 0x42016F65: sub esp, 0x10 */
   3209     _flag_k = FK_CMP;
   3210     PUSH32(esp, ebx); /* 0x42016F68: push ebx */
   3211     PUSH32(esp, esi); /* 0x42016F69: push esi */
   3212     PUSH32(esp, edi); /* 0x42016F6A: push edi */
   3213     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3214     eax = 0; /* 0x42016F6B: xor eax, eax */
   3215     _cf = 0;
   3216     _flag_k = FK_TEST;
   3217     MEM32(ebp + (-0x20)) = eax; /* 0x42016F6D: mov dword ptr [ebp - 0x20], eax */
   3218     MEM32(ebp + (-0x4)) = eax; /* 0x42016F70: mov dword ptr [ebp - 4], eax */
   3219     MEM32(ebp + (-0x1C)) = eax; /* 0x42016F73: mov dword ptr [ebp - 0x1c], eax */
   3220 L_42016F76:
   3221     eax = MEM32(ebp + (-0x1C)); /* 0x42016F76: mov eax, dword ptr [ebp - 0x1c] */
   3222     /* cmp eax, MEM32(ebp + 0x10) */ /* 0x42016F79: cmp eax, dword ptr [ebp + 0x10] */
   3223     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x10));
   3224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3225     _flag_k = FK_CMP;
   3226     if (CMP_GE(_flag_a, _flag_b)) goto L_42016F91; /* 0x42016F7C: jge 0x42016f91 */
   3227 L_42016F7E:
   3228     esi = MEM32(ebp + 0x8); /* 0x42016F7E: mov esi, dword ptr [ebp + 8] */
   3229     ecx = esi; /* 0x42016F81: mov ecx, esi */
   3230     RECOMP_ICALL(MEM32(ebp + 0x14)); /* 0x42016F83: call dword ptr [ebp + 0x14] */
   3231     RECOMP_FLAGS_IN();
   3232     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   3233     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3234     esi = esi + MEM32(ebp + 0xC); /* 0x42016F86: add esi, dword ptr [ebp + 0xc] */
   3235     _flag_k = FK_ADD;
   3236     MEM32(ebp + 0x8) = esi; /* 0x42016F89: mov dword ptr [ebp + 8], esi */
   3237     _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(1);
   3238     MEM32(ebp + (-0x1C)) = MEM32(ebp + (-0x1C)) + 1; /* 0x42016F8C: inc dword ptr [ebp - 0x1c] */
   3239     _flag_k = FK_INC;
   3240     RECOMP_BACKEDGE();
   3241     goto L_42016F76; /* 0x42016F8F: jmp 0x42016f76 */
   3242 L_42016F91:
   3243     MEM32(ebp + (-0x20)) = 1; /* 0x42016F91: mov dword ptr [ebp - 0x20], 1 */
   3244     _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu));
   3245     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x42016F98: or dword ptr [ebp - 4], 0xffffffff */
   3246     _cf = 0;
   3247     _flag_k = FK_TEST;
   3248     RECOMP_ICALL(0x42016FB2u); /* 0x42016F9C: call 0x42016fb2 */ /* not lifted */
   3249     RECOMP_FLAGS_IN();
   3250     ecx = MEM32(ebp + (-0x10)); /* 0x42016FA1: mov ecx, dword ptr [ebp - 0x10] */
   3251     MEM32(FS_BASE + (0)) = ecx; /* 0x42016FA4: mov dword ptr fs:[0], ecx */
   3252     edi = POP32_VAL(esp); /* 0x42016FAB: pop edi */
   3253     esi = POP32_VAL(esp); /* 0x42016FAC: pop esi */
   3254     ebx = POP32_VAL(esp); /* 0x42016FAD: pop ebx */
   3255     esp = ebp; ebp = POP32_VAL(esp); /* 0x42016FAE: leave  */
   3256     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x42016FAF: ret 0x14 */
   3257     RECOMP_REGS_OUT();
   3258 }
   3259 
   3260 void sub_42016FB2(void) {
   3261     int _fpu_cmp = 0;
   3262     uint32_t _cf = 0;
   3263     int _df = 1;
   3264     uint32_t _flag_k = FK_NONE;
   3265     uint32_t _flag_a = 0, _flag_b = 0;
   3266     uint32_t _itail_tgt = 0;
   3267     RECOMP_REGS_LOCALS
   3268     RECOMP_ENTER(0x42016FB2u);
   3269 
   3270 L_42016FB2:
   3271     /* cmp MEM32(ebp + (-0x20)), 0 */ /* 0x42016FB2: cmp dword ptr [ebp - 0x20], 0 */
   3272     _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(0);
   3273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3274     _flag_k = FK_CMP;
   3275     if (CMP_NE(_flag_a, _flag_b)) goto L_42016FC9; /* 0x42016FB6: jne 0x42016fc9 */
   3276 L_42016FB8:
   3277     PUSH32(esp, MEM32(ebp + 0x18)); /* 0x42016FB8: push dword ptr [ebp + 0x18] */
   3278     PUSH32(esp, MEM32(ebp + (-0x1C))); /* 0x42016FBB: push dword ptr [ebp - 0x1c] */
   3279     PUSH32(esp, MEM32(ebp + 0xC)); /* 0x42016FBE: push dword ptr [ebp + 0xc] */
   3280     PUSH32(esp, MEM32(ebp + 0x8)); /* 0x42016FC1: push dword ptr [ebp + 8] */
   3281     RECOMP_ICALL(0x42016EBCu); /* 0x42016FC4: call 0x42016ebc */ /* not lifted */
   3282     RECOMP_FLAGS_IN();
   3283 L_42016FC9:
   3284     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42016FC9: ret  */
   3285     RECOMP_REGS_OUT();
   3286 }
   3287 
   3288 void sub_42016FCA(void) {
   3289     int _fpu_cmp = 0;
   3290     uint32_t _cf = 0;
   3291     int _df = 1;
   3292     uint32_t _flag_k = FK_NONE;
   3293     uint32_t _flag_a = 0, _flag_b = 0;
   3294     uint32_t _itail_tgt = 0;
   3295     RECOMP_REGS_LOCALS
   3296     RECOMP_ENTER(0x42016FCAu);
   3297 
   3298 L_42016FCA:
   3299     eax = MEM32(esp + 0x8); /* 0x42016FCA: mov eax, dword ptr [esp + 8] */
   3300     /* test eax, eax */ /* 0x42016FCE: test eax, eax */
   3301     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3302     _cf = 0;
   3303     _flag_k = FK_TEST;
   3304     if (TEST_NZ(_flag_a, _flag_b)) goto L_42016FE0; /* 0x42016FD0: jne 0x42016fe0 */
   3305 L_42016FD2:
   3306     /* cmp MEM32(0x42023660), eax */ /* 0x42016FD2: cmp dword ptr [0x42023660], eax */
   3307     _flag_a = (uint32_t)(MEM32(0x42023660)); _flag_b = (uint32_t)(eax);
   3308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3309     _flag_k = FK_CMP;
   3310     if (CMP_LE(_flag_a, _flag_b)) goto L_42017008; /* 0x42016FD8: jle 0x42017008 */
   3311 L_42016FDA:
   3312     _flag_a = (uint32_t)(MEM32(0x42023660)); _flag_b = (uint32_t)(1);
   3313     MEM32(0x42023660) = MEM32(0x42023660) - 1; /* 0x42016FDA: dec dword ptr [0x42023660] */
   3314     _flag_k = FK_DEC;
   3315 L_42016FE0:
   3316     ecx = MEM32(0x4201801C); /* 0x42016FE0: mov ecx, dword ptr [0x4201801c] */
   3317     /* cmp eax, 1 */ /* 0x42016FE6: cmp eax, 1 */
   3318     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3320     _flag_k = FK_CMP;
   3321     ecx = MEM32(ecx); /* 0x42016FE9: mov ecx, dword ptr [ecx] */
   3322     MEM32(0x42023664) = ecx; /* 0x42016FEB: mov dword ptr [0x42023664], ecx */
   3323     if (CMP_NE(_flag_a, _flag_b)) goto L_42017032; /* 0x42016FF1: jne 0x42017032 */
   3324 L_42016FF3:
   3325     PUSH32(esp, 0x80u); /* 0x42016FF3: push 0x80 */
   3326     RECOMP_ICALL(MEM32(0x42018050)); /* 0x42016FF8: call dword ptr [0x42018050] */
   3327     RECOMP_FLAGS_IN();
   3328     /* test eax, eax */ /* 0x42016FFE: test eax, eax */
   3329     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3330     _cf = 0;
   3331     _flag_k = FK_TEST;
   3332     ecx = POP32_VAL(esp); /* 0x42017000: pop ecx */
   3333     MEM32(0x42023670) = eax; /* 0x42017001: mov dword ptr [0x42023670], eax */
   3334     if (TEST_NZ(_flag_a, _flag_b)) goto L_4201700C; /* 0x42017006: jne 0x4201700c */
   3335 L_42017008:
   3336     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3337     eax = 0; /* 0x42017008: xor eax, eax */
   3338     _cf = 0;
   3339     _flag_k = FK_TEST;
   3340     goto L_42017072; /* 0x4201700A: jmp 0x42017072 */
   3341 L_4201700C:
   3342     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
   3343     MEM32(eax) = MEM32(eax) & 0; /* 0x4201700C: and dword ptr [eax], 0 */
   3344     _cf = 0;
   3345     _flag_k = FK_TEST;
   3346     eax = MEM32(0x42023670); /* 0x4201700F: mov eax, dword ptr [0x42023670] */
   3347     PUSH32(esp, 0x42022078u); /* 0x42017014: push 0x42022078 */
   3348     PUSH32(esp, 0x42022000u); /* 0x42017019: push 0x42022000 */
   3349     MEM32(0x4202366C) = eax; /* 0x4201701E: mov dword ptr [0x4202366c], eax */
   3350     RECOMP_ICALL(0x42017130u); /* 0x42017023: call 0x42017130 */ /* not lifted */
   3351     RECOMP_FLAGS_IN();
   3352     _flag_a = (uint32_t)(MEM32(0x42023660)); _flag_b = (uint32_t)(1);
   3353     MEM32(0x42023660) = MEM32(0x42023660) + 1; /* 0x42017028: inc dword ptr [0x42023660] */
   3354     _flag_k = FK_INC;
   3355     ecx = POP32_VAL(esp); /* 0x4201702E: pop ecx */
   3356     ecx = POP32_VAL(esp); /* 0x4201702F: pop ecx */
   3357     goto L_4201706F; /* 0x42017030: jmp 0x4201706f */
   3358 L_42017032:
   3359     /* test eax, eax */ /* 0x42017032: test eax, eax */
   3360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3361     _cf = 0;
   3362     _flag_k = FK_TEST;
   3363     if (TEST_NZ(_flag_a, _flag_b)) goto L_4201706F; /* 0x42017034: jne 0x4201706f */
   3364 L_42017036:
   3365     eax = MEM32(0x42023670); /* 0x42017036: mov eax, dword ptr [0x42023670] */
   3366     /* test eax, eax */ /* 0x4201703B: test eax, eax */
   3367     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3368     _cf = 0;
   3369     _flag_k = FK_TEST;
   3370     if (TEST_Z(_flag_a, _flag_b)) goto L_4201706F; /* 0x4201703D: je 0x4201706f */
   3371 L_4201703F:
   3372     ecx = MEM32(0x4202366C); /* 0x4201703F: mov ecx, dword ptr [0x4202366c] */
   3373     PUSH32(esp, esi); /* 0x42017045: push esi */
   3374     esi = ecx + (-0x4); /* 0x42017046: lea esi, [ecx - 4] */
   3375 L_42017049:
   3376     /* cmp esi, eax */ /* 0x42017049: cmp esi, eax */
   3377     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3379     _flag_k = FK_CMP;
   3380     if (CMP_B(_flag_a, _flag_b)) goto L_4201705F; /* 0x4201704B: jb 0x4201705f */
   3381 L_4201704D:
   3382     ecx = MEM32(esi); /* 0x4201704D: mov ecx, dword ptr [esi] */
   3383     /* test ecx, ecx */ /* 0x4201704F: test ecx, ecx */
   3384     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3385     _cf = 0;
   3386     _flag_k = FK_TEST;
   3387     if (TEST_Z(_flag_a, _flag_b)) goto L_4201705A; /* 0x42017051: je 0x4201705a */
   3388 L_42017053:
   3389     RECOMP_ICALL(ecx); /* 0x42017053: call ecx */
   3390     RECOMP_FLAGS_IN();
   3391     eax = MEM32(0x42023670); /* 0x42017055: mov eax, dword ptr [0x42023670] */
   3392 L_4201705A:
   3393     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   3394     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3395     esi = esi - 4; /* 0x4201705A: sub esi, 4 */
   3396     _flag_k = FK_CMP;
   3397     RECOMP_BACKEDGE();
   3398     goto L_42017049; /* 0x4201705D: jmp 0x42017049 */
   3399 L_4201705F:
   3400     PUSH32(esp, eax); /* 0x4201705F: push eax */
   3401     RECOMP_ICALL(MEM32(0x42018038)); /* 0x42017060: call dword ptr [0x42018038] */
   3402     RECOMP_FLAGS_IN();
   3403     _flag_a = (uint32_t)(MEM32(0x42023670)); _flag_b = (uint32_t)(0);
   3404     MEM32(0x42023670) = MEM32(0x42023670) & 0; /* 0x42017066: and dword ptr [0x42023670], 0 */
   3405     _cf = 0;
   3406     _flag_k = FK_TEST;
   3407     ecx = POP32_VAL(esp); /* 0x4201706D: pop ecx */
   3408     esi = POP32_VAL(esp); /* 0x4201706E: pop esi */
   3409 L_4201706F:
   3410     PUSH32(esp, 1); /* 0x4201706F: push 1 */
   3411     eax = POP32_VAL(esp); /* 0x42017071: pop eax */
   3412 L_42017072:
   3413     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42017072: ret 0xc */
   3414     RECOMP_REGS_OUT();
   3415 }
   3416 
   3417 void sub_42017075(void) {
   3418     int _fpu_cmp = 0;
   3419     uint32_t _cf = 0;
   3420     int _df = 1;
   3421     uint32_t _flag_k = FK_NONE;
   3422     uint32_t _flag_a = 0, _flag_b = 0;
   3423     uint32_t _itail_tgt = 0;
   3424     RECOMP_REGS_LOCALS
   3425     RECOMP_ENTER(0x42017075u);
   3426 
   3427 L_42017075:
   3428     PUSH32(esp, ebp); /* 0x42017075: push ebp */
   3429     ebp = esp; /* 0x42017076: mov ebp, esp */
   3430     PUSH32(esp, ebx); /* 0x42017078: push ebx */
   3431     ebx = MEM32(ebp + 0x8); /* 0x42017079: mov ebx, dword ptr [ebp + 8] */
   3432     PUSH32(esp, esi); /* 0x4201707C: push esi */
   3433     esi = MEM32(ebp + 0xC); /* 0x4201707D: mov esi, dword ptr [ebp + 0xc] */
   3434     PUSH32(esp, edi); /* 0x42017080: push edi */
   3435     edi = MEM32(ebp + 0x10); /* 0x42017081: mov edi, dword ptr [ebp + 0x10] */
   3436     /* test esi, esi */ /* 0x42017084: test esi, esi */
   3437     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3438     _cf = 0;
   3439     _flag_k = FK_TEST;
   3440     if (TEST_NZ(_flag_a, _flag_b)) goto L_42017091; /* 0x42017086: jne 0x42017091 */
   3441 L_42017088:
   3442     /* cmp MEM32(0x42023660), 0 */ /* 0x42017088: cmp dword ptr [0x42023660], 0 */
   3443     _flag_a = (uint32_t)(MEM32(0x42023660)); _flag_b = (uint32_t)(0);
   3444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3445     _flag_k = FK_CMP;
   3446     goto L_420170B7; /* 0x4201708F: jmp 0x420170b7 */
   3447 L_42017091:
   3448     /* cmp esi, 1 */ /* 0x42017091: cmp esi, 1 */
   3449     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3451     _flag_k = FK_CMP;
   3452     if (CMP_EQ(_flag_a, _flag_b)) goto L_4201709B; /* 0x42017094: je 0x4201709b */
   3453 L_42017096:
   3454     /* cmp esi, 2 */ /* 0x42017096: cmp esi, 2 */
   3455     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   3456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3457     _flag_k = FK_CMP;
   3458     if (CMP_NE(_flag_a, _flag_b)) goto L_420170BD; /* 0x42017099: jne 0x420170bd */
   3459 L_4201709B:
   3460     eax = MEM32(0x42023668); /* 0x4201709B: mov eax, dword ptr [0x42023668] */
   3461     /* test eax, eax */ /* 0x420170A0: test eax, eax */
   3462     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3463     _cf = 0;
   3464     _flag_k = FK_TEST;
   3465     if (TEST_Z(_flag_a, _flag_b)) goto L_420170AD; /* 0x420170A2: je 0x420170ad */
   3466 L_420170A4:
   3467     PUSH32(esp, edi); /* 0x420170A4: push edi */
   3468     PUSH32(esp, esi); /* 0x420170A5: push esi */
   3469     PUSH32(esp, ebx); /* 0x420170A6: push ebx */
   3470     RECOMP_ICALL(eax); /* 0x420170A7: call eax */
   3471     RECOMP_FLAGS_IN();
   3472     /* test eax, eax */ /* 0x420170A9: test eax, eax */
   3473     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3474     _cf = 0;
   3475     _flag_k = FK_TEST;
   3476     if (TEST_Z(_flag_a, _flag_b)) goto L_420170B9; /* 0x420170AB: je 0x420170b9 */
   3477 L_420170AD:
   3478     PUSH32(esp, edi); /* 0x420170AD: push edi */
   3479     PUSH32(esp, esi); /* 0x420170AE: push esi */
   3480     PUSH32(esp, ebx); /* 0x420170AF: push ebx */
   3481     RECOMP_ICALL(0x42016FCAu); /* 0x420170B0: call 0x42016fca */ /* not lifted */
   3482     RECOMP_FLAGS_IN();
   3483     /* test eax, eax */ /* 0x420170B5: test eax, eax */
   3484     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3485     _cf = 0;
   3486     _flag_k = FK_TEST;
   3487 L_420170B7:
   3488     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_420170BD; /* 0x420170B7: jne 0x420170bd */
   3489 L_420170B9:
   3490     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3491     eax = 0; /* 0x420170B9: xor eax, eax */
   3492     _cf = 0;
   3493     _flag_k = FK_TEST;
   3494     goto L_4201710B; /* 0x420170BB: jmp 0x4201710b */
   3495 L_420170BD:
   3496     PUSH32(esp, edi); /* 0x420170BD: push edi */
   3497     PUSH32(esp, esi); /* 0x420170BE: push esi */
   3498     PUSH32(esp, ebx); /* 0x420170BF: push ebx */
   3499     RECOMP_ICALL(0x42017136u); /* 0x420170C0: call 0x42017136 */ /* not lifted */
   3500     RECOMP_FLAGS_IN();
   3501     /* cmp esi, 1 */ /* 0x420170C5: cmp esi, 1 */
   3502     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3504     _flag_k = FK_CMP;
   3505     MEM32(ebp + 0xC) = eax; /* 0x420170C8: mov dword ptr [ebp + 0xc], eax */
   3506     if (CMP_NE(_flag_a, _flag_b)) goto L_420170D9; /* 0x420170CB: jne 0x420170d9 */
   3507 L_420170CD:
   3508     /* test eax, eax */ /* 0x420170CD: test eax, eax */
   3509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3510     _cf = 0;
   3511     _flag_k = FK_TEST;
   3512     if (TEST_NZ(_flag_a, _flag_b)) goto L_42017108; /* 0x420170CF: jne 0x42017108 */
   3513 L_420170D1:
   3514     PUSH32(esp, edi); /* 0x420170D1: push edi */
   3515     PUSH32(esp, eax); /* 0x420170D2: push eax */
   3516     PUSH32(esp, ebx); /* 0x420170D3: push ebx */
   3517     RECOMP_ICALL(0x42016FCAu); /* 0x420170D4: call 0x42016fca */ /* not lifted */
   3518     RECOMP_FLAGS_IN();
   3519 L_420170D9:
   3520     /* test esi, esi */ /* 0x420170D9: test esi, esi */
   3521     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3522     _cf = 0;
   3523     _flag_k = FK_TEST;
   3524     if (TEST_Z(_flag_a, _flag_b)) goto L_420170E2; /* 0x420170DB: je 0x420170e2 */
   3525 L_420170DD:
   3526     /* cmp esi, 3 */ /* 0x420170DD: cmp esi, 3 */
   3527     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
   3528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3529     _flag_k = FK_CMP;
   3530     if (CMP_NE(_flag_a, _flag_b)) goto L_42017108; /* 0x420170E0: jne 0x42017108 */
   3531 L_420170E2:
   3532     PUSH32(esp, edi); /* 0x420170E2: push edi */
   3533     PUSH32(esp, esi); /* 0x420170E3: push esi */
   3534     PUSH32(esp, ebx); /* 0x420170E4: push ebx */
   3535     RECOMP_ICALL(0x42016FCAu); /* 0x420170E5: call 0x42016fca */ /* not lifted */
   3536     RECOMP_FLAGS_IN();
   3537     /* test eax, eax */ /* 0x420170EA: test eax, eax */
   3538     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3539     _cf = 0;
   3540     _flag_k = FK_TEST;
   3541     if (TEST_NZ(_flag_a, _flag_b)) goto L_420170F1; /* 0x420170EC: jne 0x420170f1 */
   3542 L_420170EE:
   3543     _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax);
   3544     MEM32(ebp + 0xC) = MEM32(ebp + 0xC) & eax; /* 0x420170EE: and dword ptr [ebp + 0xc], eax */
   3545     _cf = 0;
   3546     _flag_k = FK_TEST;
   3547 L_420170F1:
   3548     /* cmp MEM32(ebp + 0xC), 0 */ /* 0x420170F1: cmp dword ptr [ebp + 0xc], 0 */
   3549     _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0);
   3550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3551     _flag_k = FK_CMP;
   3552     if (CMP_EQ(_flag_a, _flag_b)) goto L_42017108; /* 0x420170F5: je 0x42017108 */
   3553 L_420170F7:
   3554     eax = MEM32(0x42023668); /* 0x420170F7: mov eax, dword ptr [0x42023668] */
   3555     /* test eax, eax */ /* 0x420170FC: test eax, eax */
   3556     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3557     _cf = 0;
   3558     _flag_k = FK_TEST;
   3559     if (TEST_Z(_flag_a, _flag_b)) goto L_42017108; /* 0x420170FE: je 0x42017108 */
   3560 L_42017100:
   3561     PUSH32(esp, edi); /* 0x42017100: push edi */
   3562     PUSH32(esp, esi); /* 0x42017101: push esi */
   3563     PUSH32(esp, ebx); /* 0x42017102: push ebx */
   3564     RECOMP_ICALL(eax); /* 0x42017103: call eax */
   3565     RECOMP_FLAGS_IN();
   3566     MEM32(ebp + 0xC) = eax; /* 0x42017105: mov dword ptr [ebp + 0xc], eax */
   3567 L_42017108:
   3568     eax = MEM32(ebp + 0xC); /* 0x42017108: mov eax, dword ptr [ebp + 0xc] */
   3569 L_4201710B:
   3570     edi = POP32_VAL(esp); /* 0x4201710B: pop edi */
   3571     esi = POP32_VAL(esp); /* 0x4201710C: pop esi */
   3572     ebx = POP32_VAL(esp); /* 0x4201710D: pop ebx */
   3573     ebp = POP32_VAL(esp); /* 0x4201710E: pop ebp */
   3574     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4201710F: ret 0xc */
   3575     RECOMP_REGS_OUT();
   3576 }
   3577 
   3578 void sub_42017112(void) {
   3579     int _fpu_cmp = 0;
   3580     uint32_t _cf = 0;
   3581     int _df = 1;
   3582     uint32_t _flag_k = FK_NONE;
   3583     uint32_t _flag_a = 0, _flag_b = 0;
   3584     uint32_t _itail_tgt = 0;
   3585     RECOMP_REGS_LOCALS
   3586     RECOMP_ENTER(0x42017112u);
   3587 
   3588 L_42017112:
   3589     { _itail_tgt = (uint32_t)(MEM32(0x42018038)); goto _ljump; }
   3590     { RECOMP_REGS_OUT(); return; } /* end of function */
   3591   _ljump:
   3592     switch (_itail_tgt) {
   3593       case 0x42017112u: goto L_42017112;
   3594       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3595     }
   3596     RECOMP_REGS_OUT();
   3597 }
   3598 
   3599 void sub_42017118(void) {
   3600     int _fpu_cmp = 0;
   3601     uint32_t _cf = 0;
   3602     int _df = 1;
   3603     uint32_t _flag_k = FK_NONE;
   3604     uint32_t _flag_a = 0, _flag_b = 0;
   3605     uint32_t _itail_tgt = 0;
   3606     RECOMP_REGS_LOCALS
   3607     RECOMP_ENTER(0x42017118u);
   3608 
   3609 L_42017118:
   3610     { _itail_tgt = (uint32_t)(MEM32(0x42018034)); goto _ljump; }
   3611     { RECOMP_REGS_OUT(); return; } /* end of function */
   3612   _ljump:
   3613     switch (_itail_tgt) {
   3614       case 0x42017118u: goto L_42017118;
   3615       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3616     }
   3617     RECOMP_REGS_OUT();
   3618 }
   3619 
   3620 void sub_4201711E(void) {
   3621     int _fpu_cmp = 0;
   3622     uint32_t _cf = 0;
   3623     int _df = 1;
   3624     uint32_t _flag_k = FK_NONE;
   3625     uint32_t _flag_a = 0, _flag_b = 0;
   3626     uint32_t _itail_tgt = 0;
   3627     RECOMP_REGS_LOCALS
   3628     RECOMP_ENTER(0x4201711Eu);
   3629 
   3630 L_4201711E:
   3631     { _itail_tgt = (uint32_t)(MEM32(0x4201802C)); goto _ljump; }
   3632     { RECOMP_REGS_OUT(); return; } /* end of function */
   3633   _ljump:
   3634     switch (_itail_tgt) {
   3635       case 0x4201711Eu: goto L_4201711E;
   3636       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3637     }
   3638     RECOMP_REGS_OUT();
   3639 }
   3640 
   3641 void sub_42017124(void) {
   3642     int _fpu_cmp = 0;
   3643     uint32_t _cf = 0;
   3644     int _df = 1;
   3645     uint32_t _flag_k = FK_NONE;
   3646     uint32_t _flag_a = 0, _flag_b = 0;
   3647     uint32_t _itail_tgt = 0;
   3648     RECOMP_REGS_LOCALS
   3649     RECOMP_ENTER(0x42017124u);
   3650 
   3651 L_42017124:
   3652     { _itail_tgt = (uint32_t)(MEM32(0x42018028)); goto _ljump; }
   3653     { RECOMP_REGS_OUT(); return; } /* end of function */
   3654   _ljump:
   3655     switch (_itail_tgt) {
   3656       case 0x42017124u: goto L_42017124;
   3657       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3658     }
   3659     RECOMP_REGS_OUT();
   3660 }
   3661 
   3662 void sub_4201712A(void) {
   3663     int _fpu_cmp = 0;
   3664     uint32_t _cf = 0;
   3665     int _df = 1;
   3666     uint32_t _flag_k = FK_NONE;
   3667     uint32_t _flag_a = 0, _flag_b = 0;
   3668     uint32_t _itail_tgt = 0;
   3669     RECOMP_REGS_LOCALS
   3670     RECOMP_ENTER(0x4201712Au);
   3671 
   3672 L_4201712A:
   3673     { _itail_tgt = (uint32_t)(MEM32(0x42018024)); goto _ljump; }
   3674     { RECOMP_REGS_OUT(); return; } /* end of function */
   3675   _ljump:
   3676     switch (_itail_tgt) {
   3677       case 0x4201712Au: goto L_4201712A;
   3678       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3679     }
   3680     RECOMP_REGS_OUT();
   3681 }
   3682 
   3683 void sub_42017130(void) {
   3684     int _fpu_cmp = 0;
   3685     uint32_t _cf = 0;
   3686     int _df = 1;
   3687     uint32_t _flag_k = FK_NONE;
   3688     uint32_t _flag_a = 0, _flag_b = 0;
   3689     uint32_t _itail_tgt = 0;
   3690     RECOMP_REGS_LOCALS
   3691     RECOMP_ENTER(0x42017130u);
   3692 
   3693 L_42017130:
   3694     { _itail_tgt = (uint32_t)(MEM32(0x42018020)); goto _ljump; }
   3695     { RECOMP_REGS_OUT(); return; } /* end of function */
   3696   _ljump:
   3697     switch (_itail_tgt) {
   3698       case 0x42017130u: goto L_42017130;
   3699       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3700     }
   3701     RECOMP_REGS_OUT();
   3702 }
   3703 
   3704 void sub_42017136(void) {
   3705     int _fpu_cmp = 0;
   3706     uint32_t _cf = 0;
   3707     int _df = 1;
   3708     uint32_t _flag_k = FK_NONE;
   3709     uint32_t _flag_a = 0, _flag_b = 0;
   3710     uint32_t _itail_tgt = 0;
   3711     RECOMP_REGS_LOCALS
   3712     RECOMP_ENTER(0x42017136u);
   3713 
   3714 L_42017136:
   3715     /* cmp MEM32(esp + 0x8), 1 */ /* 0x42017136: cmp dword ptr [esp + 8], 1 */
   3716     _flag_a = (uint32_t)(MEM32(esp + 0x8)); _flag_b = (uint32_t)(1);
   3717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3718     _flag_k = FK_CMP;
   3719     if (CMP_NE(_flag_a, _flag_b)) goto L_42017150; /* 0x4201713B: jne 0x42017150 */
   3720 L_4201713D:
   3721     /* cmp MEM32(0x42023668), 0 */ /* 0x4201713D: cmp dword ptr [0x42023668], 0 */
   3722     _flag_a = (uint32_t)(MEM32(0x42023668)); _flag_b = (uint32_t)(0);
   3723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3724     _flag_k = FK_CMP;
   3725     if (CMP_NE(_flag_a, _flag_b)) goto L_42017150; /* 0x42017144: jne 0x42017150 */
   3726 L_42017146:
   3727     PUSH32(esp, MEM32(esp + 0x4)); /* 0x42017146: push dword ptr [esp + 4] */
   3728     RECOMP_ICALL(MEM32(0x42018000)); /* 0x4201714A: call dword ptr [0x42018000] */
   3729     RECOMP_FLAGS_IN();
   3730 L_42017150:
   3731     PUSH32(esp, 1); /* 0x42017150: push 1 */
   3732     eax = POP32_VAL(esp); /* 0x42017152: pop eax */
   3733     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42017153: ret 0xc */
   3734     RECOMP_REGS_OUT();
   3735 }
   3736 
   3737 void sub_42017160(void) {
   3738     int _fpu_cmp = 0;
   3739     uint32_t _cf = 0;
   3740     int _df = 1;
   3741     uint32_t _flag_k = FK_NONE;
   3742     uint32_t _flag_a = 0, _flag_b = 0;
   3743     uint32_t _itail_tgt = 0;
   3744     RECOMP_REGS_LOCALS
   3745     RECOMP_ENTER(0x42017160u);
   3746 
   3747     goto L_42017160;
   3748 L_4200A0C0:
   3749     PUSH32(esp, ebp); /* 0x4200A0C0: push ebp */
   3750     ebp = esp; /* 0x4200A0C1: mov ebp, esp */
   3751     PUSH32(esp, ecx); /* 0x4200A0C3: push ecx */
   3752     PUSH32(esp, esi); /* 0x4200A0C4: push esi */
   3753     esi = ecx; /* 0x4200A0C5: mov esi, ecx */
   3754     eax = MEM32(esi + 0x4); /* 0x4200A0C7: mov eax, dword ptr [esi + 4] */
   3755     PUSH32(esp, eax); /* 0x4200A0CA: push eax */
   3756     MEM32(ebp + (-0x4)) = eax; /* 0x4200A0CB: mov dword ptr [ebp - 4], eax */
   3757     RECOMP_ICALL(0x42016DD0u); /* 0x4200A0CE: call 0x42016dd0 */ /* not lifted */
   3758     RECOMP_FLAGS_IN();
   3759     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3760     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3761     esp = esp + 4; /* 0x4200A0D3: add esp, 4 */
   3762     _flag_k = FK_ADD;
   3763     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3764     eax = 0; /* 0x4200A0D6: xor eax, eax */
   3765     _cf = 0;
   3766     _flag_k = FK_TEST;
   3767     MEM32(esi + 0x4) = eax; /* 0x4200A0D8: mov dword ptr [esi + 4], eax */
   3768     MEM32(esi + 0x8) = eax; /* 0x4200A0DB: mov dword ptr [esi + 8], eax */
   3769     MEM32(esi + 0xC) = eax; /* 0x4200A0DE: mov dword ptr [esi + 0xc], eax */
   3770     esi = POP32_VAL(esp); /* 0x4200A0E1: pop esi */
   3771     esp = ebp; /* 0x4200A0E2: mov esp, ebp */
   3772     ebp = POP32_VAL(esp); /* 0x4200A0E4: pop ebp */
   3773     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200A0E5: ret  */
   3774 L_42017160:
   3775     ecx = ebp + (-0x80); /* 0x42017160: lea ecx, [ebp - 0x80] */
   3776     RECOMP_BACKEDGE();
   3777     goto L_4200A0C0; /* 0x42017163: jmp 0x4200a0c0 */
   3778     { RECOMP_REGS_OUT(); return; } /* end of function */
   3779     RECOMP_REGS_OUT();
   3780 }
   3781 
   3782 void sub_42017168(void) {
   3783     int _fpu_cmp = 0;
   3784     uint32_t _cf = 0;
   3785     int _df = 1;
   3786     uint32_t _flag_k = FK_NONE;
   3787     uint32_t _flag_a = 0, _flag_b = 0;
   3788     uint32_t _itail_tgt = 0;
   3789     RECOMP_REGS_LOCALS
   3790     RECOMP_ENTER(0x42017168u);
   3791 
   3792     goto L_42017168;
   3793 L_4200A0C0:
   3794     PUSH32(esp, ebp); /* 0x4200A0C0: push ebp */
   3795     ebp = esp; /* 0x4200A0C1: mov ebp, esp */
   3796     PUSH32(esp, ecx); /* 0x4200A0C3: push ecx */
   3797     PUSH32(esp, esi); /* 0x4200A0C4: push esi */
   3798     esi = ecx; /* 0x4200A0C5: mov esi, ecx */
   3799     eax = MEM32(esi + 0x4); /* 0x4200A0C7: mov eax, dword ptr [esi + 4] */
   3800     PUSH32(esp, eax); /* 0x4200A0CA: push eax */
   3801     MEM32(ebp + (-0x4)) = eax; /* 0x4200A0CB: mov dword ptr [ebp - 4], eax */
   3802     RECOMP_ICALL(0x42016DD0u); /* 0x4200A0CE: call 0x42016dd0 */ /* not lifted */
   3803     RECOMP_FLAGS_IN();
   3804     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3806     esp = esp + 4; /* 0x4200A0D3: add esp, 4 */
   3807     _flag_k = FK_ADD;
   3808     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3809     eax = 0; /* 0x4200A0D6: xor eax, eax */
   3810     _cf = 0;
   3811     _flag_k = FK_TEST;
   3812     MEM32(esi + 0x4) = eax; /* 0x4200A0D8: mov dword ptr [esi + 4], eax */
   3813     MEM32(esi + 0x8) = eax; /* 0x4200A0DB: mov dword ptr [esi + 8], eax */
   3814     MEM32(esi + 0xC) = eax; /* 0x4200A0DE: mov dword ptr [esi + 0xc], eax */
   3815     esi = POP32_VAL(esp); /* 0x4200A0E1: pop esi */
   3816     esp = ebp; /* 0x4200A0E2: mov esp, ebp */
   3817     ebp = POP32_VAL(esp); /* 0x4200A0E4: pop ebp */
   3818     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200A0E5: ret  */
   3819 L_42017168:
   3820     ecx = ebp + (-0x70); /* 0x42017168: lea ecx, [ebp - 0x70] */
   3821     RECOMP_BACKEDGE();
   3822     goto L_4200A0C0; /* 0x4201716B: jmp 0x4200a0c0 */
   3823     { RECOMP_REGS_OUT(); return; } /* end of function */
   3824     RECOMP_REGS_OUT();
   3825 }
   3826 
   3827 void sub_42017170(void) {
   3828     int _fpu_cmp = 0;
   3829     uint32_t _cf = 0;
   3830     int _df = 1;
   3831     uint32_t _flag_k = FK_NONE;
   3832     uint32_t _flag_a = 0, _flag_b = 0;
   3833     uint32_t _itail_tgt = 0;
   3834     RECOMP_REGS_LOCALS
   3835     RECOMP_ENTER(0x42017170u);
   3836 
   3837     goto L_42017170;
   3838 L_42016F30:
   3839     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   3840 L_42017170:
   3841     eax = 0x420193C0u; /* 0x42017170: mov eax, 0x420193c0 */
   3842 L_42017175:
   3843     RECOMP_BACKEDGE();
   3844     goto L_42016F30; /* 0x42017175: jmp 0x42016f30 */
   3845     { RECOMP_REGS_OUT(); return; } /* end of function */
   3846   _ljump:
   3847     switch (_itail_tgt) {
   3848       case 0x42016F30u: goto L_42016F30;
   3849       case 0x42017170u: goto L_42017170;
   3850       case 0x42017175u: goto L_42017175;
   3851       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3852     }
   3853     RECOMP_REGS_OUT();
   3854 }
   3855 
   3856 void sub_42017180(void) {
   3857     int _fpu_cmp = 0;
   3858     uint32_t _cf = 0;
   3859     int _df = 1;
   3860     uint32_t _flag_k = FK_NONE;
   3861     uint32_t _flag_a = 0, _flag_b = 0;
   3862     uint32_t _itail_tgt = 0;
   3863     RECOMP_REGS_LOCALS
   3864     RECOMP_ENTER(0x42017180u);
   3865 
   3866     goto L_42017180;
   3867 L_420037E0:
   3868     PUSH32(esp, ebx); /* 0x420037E0: push ebx */
   3869     PUSH32(esp, esi); /* 0x420037E1: push esi */
   3870     PUSH32(esp, edi); /* 0x420037E2: push edi */
   3871     edi = ecx; /* 0x420037E3: mov edi, ecx */
   3872     ebx = MEM32(edi + 0x4); /* 0x420037E5: mov ebx, dword ptr [edi + 4] */
   3873     esi = MEM32(ebx); /* 0x420037E8: mov esi, dword ptr [ebx] */
   3874     /* cmp esi, ebx */ /* 0x420037EA: cmp esi, ebx */
   3875     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3877     _flag_k = FK_CMP;
   3878     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003815; /* 0x420037EC: je 0x42003815 */
   3879 L_420037EE:
   3880     eax = esi; /* 0x420037EE: mov eax, esi */
   3881     ecx = MEM32(eax + 0x4); /* 0x420037F0: mov ecx, dword ptr [eax + 4] */
   3882     edx = MEM32(eax); /* 0x420037F3: mov edx, dword ptr [eax] */
   3883     esi = MEM32(esi); /* 0x420037F5: mov esi, dword ptr [esi] */
   3884     MEM32(ecx) = edx; /* 0x420037F7: mov dword ptr [ecx], edx */
   3885     ecx = MEM32(eax); /* 0x420037F9: mov ecx, dword ptr [eax] */
   3886     edx = MEM32(eax + 0x4); /* 0x420037FB: mov edx, dword ptr [eax + 4] */
   3887     PUSH32(esp, eax); /* 0x420037FE: push eax */
   3888     MEM32(ecx + 0x4) = edx; /* 0x420037FF: mov dword ptr [ecx + 4], edx */
   3889     RECOMP_ICALL(0x42016DD0u); /* 0x42003802: call 0x42016dd0 */ /* not lifted */
   3890     RECOMP_FLAGS_IN();
   3891     ecx = MEM32(edi + 0x8); /* 0x42003807: mov ecx, dword ptr [edi + 8] */
   3892     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3893     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3894     esp = esp + 4; /* 0x4200380A: add esp, 4 */
   3895     _flag_k = FK_ADD;
   3896     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3897     ecx = ecx - 1; /* 0x4200380D: dec ecx */
   3898     _flag_k = FK_DEC;
   3899     /* cmp esi, ebx */ /* 0x4200380E: cmp esi, ebx */
   3900     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3902     _flag_k = FK_CMP;
   3903     MEM32(edi + 0x8) = ecx; /* 0x42003810: mov dword ptr [edi + 8], ecx */
   3904     RECOMP_BACKEDGE();
   3905     if (CMP_NE(_flag_a, _flag_b)) goto L_420037EE; /* 0x42003813: jne 0x420037ee */
   3906 L_42003815:
   3907     eax = MEM32(edi + 0x4); /* 0x42003815: mov eax, dword ptr [edi + 4] */
   3908     PUSH32(esp, eax); /* 0x42003818: push eax */
   3909     RECOMP_ICALL(0x42016DD0u); /* 0x42003819: call 0x42016dd0 */ /* not lifted */
   3910     RECOMP_FLAGS_IN();
   3911     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3912     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3913     esp = esp + 4; /* 0x4200381E: add esp, 4 */
   3914     _flag_k = FK_ADD;
   3915     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3916     eax = 0; /* 0x42003821: xor eax, eax */
   3917     _cf = 0;
   3918     _flag_k = FK_TEST;
   3919     MEM32(edi + 0x4) = eax; /* 0x42003823: mov dword ptr [edi + 4], eax */
   3920     MEM32(edi + 0x8) = eax; /* 0x42003826: mov dword ptr [edi + 8], eax */
   3921     edi = POP32_VAL(esp); /* 0x42003829: pop edi */
   3922     esi = POP32_VAL(esp); /* 0x4200382A: pop esi */
   3923     ebx = POP32_VAL(esp); /* 0x4200382B: pop ebx */
   3924     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200382C: ret  */
   3925 L_42017180:
   3926     ecx = MEM32(ebp + (-0x14)); /* 0x42017180: mov ecx, dword ptr [ebp - 0x14] */
   3927     RECOMP_BACKEDGE();
   3928     goto L_420037E0; /* 0x42017183: jmp 0x420037e0 */
   3929     { RECOMP_REGS_OUT(); return; } /* end of function */
   3930     RECOMP_REGS_OUT();
   3931 }
   3932 
   3933 void sub_42017188(void) {
   3934     int _fpu_cmp = 0;
   3935     uint32_t _cf = 0;
   3936     int _df = 1;
   3937     uint32_t _flag_k = FK_NONE;
   3938     uint32_t _flag_a = 0, _flag_b = 0;
   3939     uint32_t _itail_tgt = 0;
   3940     RECOMP_REGS_LOCALS
   3941     RECOMP_ENTER(0x42017188u);
   3942 
   3943     goto L_42017188;
   3944 L_42016F30:
   3945     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   3946 L_42017188:
   3947     eax = 0x420193F0u; /* 0x42017188: mov eax, 0x420193f0 */
   3948 L_4201718D:
   3949     RECOMP_BACKEDGE();
   3950     goto L_42016F30; /* 0x4201718D: jmp 0x42016f30 */
   3951     { RECOMP_REGS_OUT(); return; } /* end of function */
   3952   _ljump:
   3953     switch (_itail_tgt) {
   3954       case 0x42016F30u: goto L_42016F30;
   3955       case 0x42017188u: goto L_42017188;
   3956       case 0x4201718Du: goto L_4201718D;
   3957       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3958     }
   3959     RECOMP_REGS_OUT();
   3960 }
   3961 
   3962 void sub_420171A0(void) {
   3963     int _fpu_cmp = 0;
   3964     uint32_t _cf = 0;
   3965     int _df = 1;
   3966     uint32_t _flag_k = FK_NONE;
   3967     uint32_t _flag_a = 0, _flag_b = 0;
   3968     uint32_t _itail_tgt = 0;
   3969     RECOMP_REGS_LOCALS
   3970     RECOMP_ENTER(0x420171A0u);
   3971 
   3972     goto L_420171A0;
   3973 L_42003830:
   3974     MEM32(ecx) = 0x4201822Cu; /* 0x42003830: mov dword ptr [ecx], 0x4201822c */
   3975     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003836: ret  */
   3976 L_420171A0:
   3977     ecx = MEM32(ebp + (-0x10)); /* 0x420171A0: mov ecx, dword ptr [ebp - 0x10] */
   3978     RECOMP_BACKEDGE();
   3979     goto L_42003830; /* 0x420171A3: jmp 0x42003830 */
   3980     { RECOMP_REGS_OUT(); return; } /* end of function */
   3981     RECOMP_REGS_OUT();
   3982 }
   3983 
   3984 void sub_420171A8(void) {
   3985     int _fpu_cmp = 0;
   3986     uint32_t _cf = 0;
   3987     int _df = 1;
   3988     uint32_t _flag_k = FK_NONE;
   3989     uint32_t _flag_a = 0, _flag_b = 0;
   3990     uint32_t _itail_tgt = 0;
   3991     RECOMP_REGS_LOCALS
   3992     RECOMP_ENTER(0x420171A8u);
   3993 
   3994     goto L_420171A8;
   3995 L_420037E0:
   3996     PUSH32(esp, ebx); /* 0x420037E0: push ebx */
   3997     PUSH32(esp, esi); /* 0x420037E1: push esi */
   3998     PUSH32(esp, edi); /* 0x420037E2: push edi */
   3999     edi = ecx; /* 0x420037E3: mov edi, ecx */
   4000     ebx = MEM32(edi + 0x4); /* 0x420037E5: mov ebx, dword ptr [edi + 4] */
   4001     esi = MEM32(ebx); /* 0x420037E8: mov esi, dword ptr [ebx] */
   4002     /* cmp esi, ebx */ /* 0x420037EA: cmp esi, ebx */
   4003     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4005     _flag_k = FK_CMP;
   4006     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003815; /* 0x420037EC: je 0x42003815 */
   4007 L_420037EE:
   4008     eax = esi; /* 0x420037EE: mov eax, esi */
   4009     ecx = MEM32(eax + 0x4); /* 0x420037F0: mov ecx, dword ptr [eax + 4] */
   4010     edx = MEM32(eax); /* 0x420037F3: mov edx, dword ptr [eax] */
   4011     esi = MEM32(esi); /* 0x420037F5: mov esi, dword ptr [esi] */
   4012     MEM32(ecx) = edx; /* 0x420037F7: mov dword ptr [ecx], edx */
   4013     ecx = MEM32(eax); /* 0x420037F9: mov ecx, dword ptr [eax] */
   4014     edx = MEM32(eax + 0x4); /* 0x420037FB: mov edx, dword ptr [eax + 4] */
   4015     PUSH32(esp, eax); /* 0x420037FE: push eax */
   4016     MEM32(ecx + 0x4) = edx; /* 0x420037FF: mov dword ptr [ecx + 4], edx */
   4017     RECOMP_ICALL(0x42016DD0u); /* 0x42003802: call 0x42016dd0 */ /* not lifted */
   4018     RECOMP_FLAGS_IN();
   4019     ecx = MEM32(edi + 0x8); /* 0x42003807: mov ecx, dword ptr [edi + 8] */
   4020     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4021     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4022     esp = esp + 4; /* 0x4200380A: add esp, 4 */
   4023     _flag_k = FK_ADD;
   4024     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4025     ecx = ecx - 1; /* 0x4200380D: dec ecx */
   4026     _flag_k = FK_DEC;
   4027     /* cmp esi, ebx */ /* 0x4200380E: cmp esi, ebx */
   4028     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4030     _flag_k = FK_CMP;
   4031     MEM32(edi + 0x8) = ecx; /* 0x42003810: mov dword ptr [edi + 8], ecx */
   4032     RECOMP_BACKEDGE();
   4033     if (CMP_NE(_flag_a, _flag_b)) goto L_420037EE; /* 0x42003813: jne 0x420037ee */
   4034 L_42003815:
   4035     eax = MEM32(edi + 0x4); /* 0x42003815: mov eax, dword ptr [edi + 4] */
   4036     PUSH32(esp, eax); /* 0x42003818: push eax */
   4037     RECOMP_ICALL(0x42016DD0u); /* 0x42003819: call 0x42016dd0 */ /* not lifted */
   4038     RECOMP_FLAGS_IN();
   4039     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4040     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4041     esp = esp + 4; /* 0x4200381E: add esp, 4 */
   4042     _flag_k = FK_ADD;
   4043     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4044     eax = 0; /* 0x42003821: xor eax, eax */
   4045     _cf = 0;
   4046     _flag_k = FK_TEST;
   4047     MEM32(edi + 0x4) = eax; /* 0x42003823: mov dword ptr [edi + 4], eax */
   4048     MEM32(edi + 0x8) = eax; /* 0x42003826: mov dword ptr [edi + 8], eax */
   4049     edi = POP32_VAL(esp); /* 0x42003829: pop edi */
   4050     esi = POP32_VAL(esp); /* 0x4200382A: pop esi */
   4051     ebx = POP32_VAL(esp); /* 0x4200382B: pop ebx */
   4052     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200382C: ret  */
   4053 L_420171A8:
   4054     ecx = MEM32(ebp + (-0x10)); /* 0x420171A8: mov ecx, dword ptr [ebp - 0x10] */
   4055     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   4056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4057     ecx = ecx + 0xCu; /* 0x420171AB: add ecx, 0xc */
   4058     _flag_k = FK_ADD;
   4059     RECOMP_BACKEDGE();
   4060     goto L_420037E0; /* 0x420171AE: jmp 0x420037e0 */
   4061     { RECOMP_REGS_OUT(); return; } /* end of function */
   4062     RECOMP_REGS_OUT();
   4063 }
   4064 
   4065 void sub_420171B3(void) {
   4066     int _fpu_cmp = 0;
   4067     uint32_t _cf = 0;
   4068     int _df = 1;
   4069     uint32_t _flag_k = FK_NONE;
   4070     uint32_t _flag_a = 0, _flag_b = 0;
   4071     uint32_t _itail_tgt = 0;
   4072     RECOMP_REGS_LOCALS
   4073     RECOMP_ENTER(0x420171B3u);
   4074 
   4075     goto L_420171B3;
   4076 L_42016F30:
   4077     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4078 L_420171B3:
   4079     eax = 0x42019418u; /* 0x420171B3: mov eax, 0x42019418 */
   4080 L_420171B8:
   4081     RECOMP_BACKEDGE();
   4082     goto L_42016F30; /* 0x420171B8: jmp 0x42016f30 */
   4083     { RECOMP_REGS_OUT(); return; } /* end of function */
   4084   _ljump:
   4085     switch (_itail_tgt) {
   4086       case 0x42016F30u: goto L_42016F30;
   4087       case 0x420171B3u: goto L_420171B3;
   4088       case 0x420171B8u: goto L_420171B8;
   4089       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4090     }
   4091     RECOMP_REGS_OUT();
   4092 }
   4093 
   4094 void sub_420171C0(void) {
   4095     int _fpu_cmp = 0;
   4096     uint32_t _cf = 0;
   4097     int _df = 1;
   4098     uint32_t _flag_k = FK_NONE;
   4099     uint32_t _flag_a = 0, _flag_b = 0;
   4100     uint32_t _itail_tgt = 0;
   4101     RECOMP_REGS_LOCALS
   4102     RECOMP_ENTER(0x420171C0u);
   4103 
   4104     goto L_420171C0;
   4105 L_42003830:
   4106     MEM32(ecx) = 0x4201822Cu; /* 0x42003830: mov dword ptr [ecx], 0x4201822c */
   4107     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003836: ret  */
   4108 L_420171C0:
   4109     ecx = MEM32(ebp + (-0x10)); /* 0x420171C0: mov ecx, dword ptr [ebp - 0x10] */
   4110     RECOMP_BACKEDGE();
   4111     goto L_42003830; /* 0x420171C3: jmp 0x42003830 */
   4112     { RECOMP_REGS_OUT(); return; } /* end of function */
   4113     RECOMP_REGS_OUT();
   4114 }
   4115 
   4116 void sub_420171C8(void) {
   4117     int _fpu_cmp = 0;
   4118     uint32_t _cf = 0;
   4119     int _df = 1;
   4120     uint32_t _flag_k = FK_NONE;
   4121     uint32_t _flag_a = 0, _flag_b = 0;
   4122     uint32_t _itail_tgt = 0;
   4123     RECOMP_REGS_LOCALS
   4124     RECOMP_ENTER(0x420171C8u);
   4125 
   4126     goto L_420171C8;
   4127 L_420037E0:
   4128     PUSH32(esp, ebx); /* 0x420037E0: push ebx */
   4129     PUSH32(esp, esi); /* 0x420037E1: push esi */
   4130     PUSH32(esp, edi); /* 0x420037E2: push edi */
   4131     edi = ecx; /* 0x420037E3: mov edi, ecx */
   4132     ebx = MEM32(edi + 0x4); /* 0x420037E5: mov ebx, dword ptr [edi + 4] */
   4133     esi = MEM32(ebx); /* 0x420037E8: mov esi, dword ptr [ebx] */
   4134     /* cmp esi, ebx */ /* 0x420037EA: cmp esi, ebx */
   4135     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4137     _flag_k = FK_CMP;
   4138     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003815; /* 0x420037EC: je 0x42003815 */
   4139 L_420037EE:
   4140     eax = esi; /* 0x420037EE: mov eax, esi */
   4141     ecx = MEM32(eax + 0x4); /* 0x420037F0: mov ecx, dword ptr [eax + 4] */
   4142     edx = MEM32(eax); /* 0x420037F3: mov edx, dword ptr [eax] */
   4143     esi = MEM32(esi); /* 0x420037F5: mov esi, dword ptr [esi] */
   4144     MEM32(ecx) = edx; /* 0x420037F7: mov dword ptr [ecx], edx */
   4145     ecx = MEM32(eax); /* 0x420037F9: mov ecx, dword ptr [eax] */
   4146     edx = MEM32(eax + 0x4); /* 0x420037FB: mov edx, dword ptr [eax + 4] */
   4147     PUSH32(esp, eax); /* 0x420037FE: push eax */
   4148     MEM32(ecx + 0x4) = edx; /* 0x420037FF: mov dword ptr [ecx + 4], edx */
   4149     RECOMP_ICALL(0x42016DD0u); /* 0x42003802: call 0x42016dd0 */ /* not lifted */
   4150     RECOMP_FLAGS_IN();
   4151     ecx = MEM32(edi + 0x8); /* 0x42003807: mov ecx, dword ptr [edi + 8] */
   4152     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4153     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4154     esp = esp + 4; /* 0x4200380A: add esp, 4 */
   4155     _flag_k = FK_ADD;
   4156     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4157     ecx = ecx - 1; /* 0x4200380D: dec ecx */
   4158     _flag_k = FK_DEC;
   4159     /* cmp esi, ebx */ /* 0x4200380E: cmp esi, ebx */
   4160     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4162     _flag_k = FK_CMP;
   4163     MEM32(edi + 0x8) = ecx; /* 0x42003810: mov dword ptr [edi + 8], ecx */
   4164     RECOMP_BACKEDGE();
   4165     if (CMP_NE(_flag_a, _flag_b)) goto L_420037EE; /* 0x42003813: jne 0x420037ee */
   4166 L_42003815:
   4167     eax = MEM32(edi + 0x4); /* 0x42003815: mov eax, dword ptr [edi + 4] */
   4168     PUSH32(esp, eax); /* 0x42003818: push eax */
   4169     RECOMP_ICALL(0x42016DD0u); /* 0x42003819: call 0x42016dd0 */ /* not lifted */
   4170     RECOMP_FLAGS_IN();
   4171     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4172     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4173     esp = esp + 4; /* 0x4200381E: add esp, 4 */
   4174     _flag_k = FK_ADD;
   4175     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4176     eax = 0; /* 0x42003821: xor eax, eax */
   4177     _cf = 0;
   4178     _flag_k = FK_TEST;
   4179     MEM32(edi + 0x4) = eax; /* 0x42003823: mov dword ptr [edi + 4], eax */
   4180     MEM32(edi + 0x8) = eax; /* 0x42003826: mov dword ptr [edi + 8], eax */
   4181     edi = POP32_VAL(esp); /* 0x42003829: pop edi */
   4182     esi = POP32_VAL(esp); /* 0x4200382A: pop esi */
   4183     ebx = POP32_VAL(esp); /* 0x4200382B: pop ebx */
   4184     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200382C: ret  */
   4185 L_420171C8:
   4186     ecx = MEM32(ebp + (-0x10)); /* 0x420171C8: mov ecx, dword ptr [ebp - 0x10] */
   4187     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   4188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4189     ecx = ecx + 0xCu; /* 0x420171CB: add ecx, 0xc */
   4190     _flag_k = FK_ADD;
   4191     RECOMP_BACKEDGE();
   4192     goto L_420037E0; /* 0x420171CE: jmp 0x420037e0 */
   4193     { RECOMP_REGS_OUT(); return; } /* end of function */
   4194     RECOMP_REGS_OUT();
   4195 }
   4196 
   4197 void sub_420171D3(void) {
   4198     int _fpu_cmp = 0;
   4199     uint32_t _cf = 0;
   4200     int _df = 1;
   4201     uint32_t _flag_k = FK_NONE;
   4202     uint32_t _flag_a = 0, _flag_b = 0;
   4203     uint32_t _itail_tgt = 0;
   4204     RECOMP_REGS_LOCALS
   4205     RECOMP_ENTER(0x420171D3u);
   4206 
   4207     goto L_420171D3;
   4208 L_42016F30:
   4209     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4210 L_420171D3:
   4211     eax = 0x42019448u; /* 0x420171D3: mov eax, 0x42019448 */
   4212 L_420171D8:
   4213     RECOMP_BACKEDGE();
   4214     goto L_42016F30; /* 0x420171D8: jmp 0x42016f30 */
   4215     { RECOMP_REGS_OUT(); return; } /* end of function */
   4216   _ljump:
   4217     switch (_itail_tgt) {
   4218       case 0x42016F30u: goto L_42016F30;
   4219       case 0x420171D3u: goto L_420171D3;
   4220       case 0x420171D8u: goto L_420171D8;
   4221       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4222     }
   4223     RECOMP_REGS_OUT();
   4224 }
   4225 
   4226 void sub_420171E0(void) {
   4227     int _fpu_cmp = 0;
   4228     uint32_t _cf = 0;
   4229     int _df = 1;
   4230     uint32_t _flag_k = FK_NONE;
   4231     uint32_t _flag_a = 0, _flag_b = 0;
   4232     uint32_t _itail_tgt = 0;
   4233     RECOMP_REGS_LOCALS
   4234     RECOMP_ENTER(0x420171E0u);
   4235 
   4236     goto L_420171E0;
   4237 L_42003830:
   4238     MEM32(ecx) = 0x4201822Cu; /* 0x42003830: mov dword ptr [ecx], 0x4201822c */
   4239     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003836: ret  */
   4240 L_420171E0:
   4241     ecx = MEM32(ebp + (-0x10)); /* 0x420171E0: mov ecx, dword ptr [ebp - 0x10] */
   4242     RECOMP_BACKEDGE();
   4243     goto L_42003830; /* 0x420171E3: jmp 0x42003830 */
   4244     { RECOMP_REGS_OUT(); return; } /* end of function */
   4245     RECOMP_REGS_OUT();
   4246 }
   4247 
   4248 void sub_420171E8(void) {
   4249     int _fpu_cmp = 0;
   4250     uint32_t _cf = 0;
   4251     int _df = 1;
   4252     uint32_t _flag_k = FK_NONE;
   4253     uint32_t _flag_a = 0, _flag_b = 0;
   4254     uint32_t _itail_tgt = 0;
   4255     RECOMP_REGS_LOCALS
   4256     RECOMP_ENTER(0x420171E8u);
   4257 
   4258     goto L_420171E8;
   4259 L_42016F30:
   4260     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4261 L_420171E8:
   4262     eax = 0x42019478u; /* 0x420171E8: mov eax, 0x42019478 */
   4263 L_420171ED:
   4264     RECOMP_BACKEDGE();
   4265     goto L_42016F30; /* 0x420171ED: jmp 0x42016f30 */
   4266     { RECOMP_REGS_OUT(); return; } /* end of function */
   4267   _ljump:
   4268     switch (_itail_tgt) {
   4269       case 0x42016F30u: goto L_42016F30;
   4270       case 0x420171E8u: goto L_420171E8;
   4271       case 0x420171EDu: goto L_420171ED;
   4272       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4273     }
   4274     RECOMP_REGS_OUT();
   4275 }
   4276 
   4277 void sub_42017200(void) {
   4278     int _fpu_cmp = 0;
   4279     uint32_t _cf = 0;
   4280     int _df = 1;
   4281     uint32_t _flag_k = FK_NONE;
   4282     uint32_t _flag_a = 0, _flag_b = 0;
   4283     uint32_t _itail_tgt = 0;
   4284     RECOMP_REGS_LOCALS
   4285     RECOMP_ENTER(0x42017200u);
   4286 
   4287     goto L_42017200;
   4288 L_42004390:
   4289     PUSH32(esp, esi); /* 0x42004390: push esi */
   4290     esi = ecx; /* 0x42004391: mov esi, ecx */
   4291     ecx = MEM32(esi); /* 0x42004393: mov ecx, dword ptr [esi] */
   4292     RECOMP_ICALL(0x42004870u); /* 0x42004395: call 0x42004870 */ /* not lifted */
   4293     RECOMP_FLAGS_IN();
   4294     ecx = MEM32(esi); /* 0x4200439A: mov ecx, dword ptr [esi] */
   4295     RECOMP_ICALL(0x420048E0u); /* 0x4200439C: call 0x420048e0 */ /* not lifted */
   4296     RECOMP_FLAGS_IN();
   4297     esi = POP32_VAL(esp); /* 0x420043A1: pop esi */
   4298     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420043A2: ret  */
   4299 L_42017200:
   4300     ecx = ebp + (-0x14); /* 0x42017200: lea ecx, [ebp - 0x14] */
   4301     RECOMP_BACKEDGE();
   4302     goto L_42004390; /* 0x42017203: jmp 0x42004390 */
   4303     { RECOMP_REGS_OUT(); return; } /* end of function */
   4304     RECOMP_REGS_OUT();
   4305 }
   4306 
   4307 void sub_42017208(void) {
   4308     int _fpu_cmp = 0;
   4309     uint32_t _cf = 0;
   4310     int _df = 1;
   4311     uint32_t _flag_k = FK_NONE;
   4312     uint32_t _flag_a = 0, _flag_b = 0;
   4313     uint32_t _itail_tgt = 0;
   4314     RECOMP_REGS_LOCALS
   4315     RECOMP_ENTER(0x42017208u);
   4316 
   4317     goto L_42017208;
   4318 L_42016F30:
   4319     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4320 L_42017208:
   4321     eax = 0x420194A0u; /* 0x42017208: mov eax, 0x420194a0 */
   4322 L_4201720D:
   4323     RECOMP_BACKEDGE();
   4324     goto L_42016F30; /* 0x4201720D: jmp 0x42016f30 */
   4325     { RECOMP_REGS_OUT(); return; } /* end of function */
   4326   _ljump:
   4327     switch (_itail_tgt) {
   4328       case 0x42016F30u: goto L_42016F30;
   4329       case 0x42017208u: goto L_42017208;
   4330       case 0x4201720Du: goto L_4201720D;
   4331       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4332     }
   4333     RECOMP_REGS_OUT();
   4334 }
   4335 
   4336 void sub_42017220(void) {
   4337     int _fpu_cmp = 0;
   4338     uint32_t _cf = 0;
   4339     int _df = 1;
   4340     uint32_t _flag_k = FK_NONE;
   4341     uint32_t _flag_a = 0, _flag_b = 0;
   4342     uint32_t _itail_tgt = 0;
   4343     RECOMP_REGS_LOCALS
   4344     RECOMP_ENTER(0x42017220u);
   4345 
   4346     goto L_42017220;
   4347 L_420037E0:
   4348     PUSH32(esp, ebx); /* 0x420037E0: push ebx */
   4349     PUSH32(esp, esi); /* 0x420037E1: push esi */
   4350     PUSH32(esp, edi); /* 0x420037E2: push edi */
   4351     edi = ecx; /* 0x420037E3: mov edi, ecx */
   4352     ebx = MEM32(edi + 0x4); /* 0x420037E5: mov ebx, dword ptr [edi + 4] */
   4353     esi = MEM32(ebx); /* 0x420037E8: mov esi, dword ptr [ebx] */
   4354     /* cmp esi, ebx */ /* 0x420037EA: cmp esi, ebx */
   4355     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4357     _flag_k = FK_CMP;
   4358     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003815; /* 0x420037EC: je 0x42003815 */
   4359 L_420037EE:
   4360     eax = esi; /* 0x420037EE: mov eax, esi */
   4361     ecx = MEM32(eax + 0x4); /* 0x420037F0: mov ecx, dword ptr [eax + 4] */
   4362     edx = MEM32(eax); /* 0x420037F3: mov edx, dword ptr [eax] */
   4363     esi = MEM32(esi); /* 0x420037F5: mov esi, dword ptr [esi] */
   4364     MEM32(ecx) = edx; /* 0x420037F7: mov dword ptr [ecx], edx */
   4365     ecx = MEM32(eax); /* 0x420037F9: mov ecx, dword ptr [eax] */
   4366     edx = MEM32(eax + 0x4); /* 0x420037FB: mov edx, dword ptr [eax + 4] */
   4367     PUSH32(esp, eax); /* 0x420037FE: push eax */
   4368     MEM32(ecx + 0x4) = edx; /* 0x420037FF: mov dword ptr [ecx + 4], edx */
   4369     RECOMP_ICALL(0x42016DD0u); /* 0x42003802: call 0x42016dd0 */ /* not lifted */
   4370     RECOMP_FLAGS_IN();
   4371     ecx = MEM32(edi + 0x8); /* 0x42003807: mov ecx, dword ptr [edi + 8] */
   4372     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4373     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4374     esp = esp + 4; /* 0x4200380A: add esp, 4 */
   4375     _flag_k = FK_ADD;
   4376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4377     ecx = ecx - 1; /* 0x4200380D: dec ecx */
   4378     _flag_k = FK_DEC;
   4379     /* cmp esi, ebx */ /* 0x4200380E: cmp esi, ebx */
   4380     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4382     _flag_k = FK_CMP;
   4383     MEM32(edi + 0x8) = ecx; /* 0x42003810: mov dword ptr [edi + 8], ecx */
   4384     RECOMP_BACKEDGE();
   4385     if (CMP_NE(_flag_a, _flag_b)) goto L_420037EE; /* 0x42003813: jne 0x420037ee */
   4386 L_42003815:
   4387     eax = MEM32(edi + 0x4); /* 0x42003815: mov eax, dword ptr [edi + 4] */
   4388     PUSH32(esp, eax); /* 0x42003818: push eax */
   4389     RECOMP_ICALL(0x42016DD0u); /* 0x42003819: call 0x42016dd0 */ /* not lifted */
   4390     RECOMP_FLAGS_IN();
   4391     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4392     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4393     esp = esp + 4; /* 0x4200381E: add esp, 4 */
   4394     _flag_k = FK_ADD;
   4395     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4396     eax = 0; /* 0x42003821: xor eax, eax */
   4397     _cf = 0;
   4398     _flag_k = FK_TEST;
   4399     MEM32(edi + 0x4) = eax; /* 0x42003823: mov dword ptr [edi + 4], eax */
   4400     MEM32(edi + 0x8) = eax; /* 0x42003826: mov dword ptr [edi + 8], eax */
   4401     edi = POP32_VAL(esp); /* 0x42003829: pop edi */
   4402     esi = POP32_VAL(esp); /* 0x4200382A: pop esi */
   4403     ebx = POP32_VAL(esp); /* 0x4200382B: pop ebx */
   4404     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200382C: ret  */
   4405 L_42017220:
   4406     ecx = ebp + (-0x1C); /* 0x42017220: lea ecx, [ebp - 0x1c] */
   4407     RECOMP_BACKEDGE();
   4408     goto L_420037E0; /* 0x42017223: jmp 0x420037e0 */
   4409     { RECOMP_REGS_OUT(); return; } /* end of function */
   4410     RECOMP_REGS_OUT();
   4411 }
   4412 
   4413 void sub_42017228(void) {
   4414     int _fpu_cmp = 0;
   4415     uint32_t _cf = 0;
   4416     int _df = 1;
   4417     uint32_t _flag_k = FK_NONE;
   4418     uint32_t _flag_a = 0, _flag_b = 0;
   4419     uint32_t _itail_tgt = 0;
   4420     RECOMP_REGS_LOCALS
   4421     RECOMP_ENTER(0x42017228u);
   4422 
   4423     goto L_42017228;
   4424 L_42016F30:
   4425     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4426 L_42017228:
   4427     eax = 0x420194C8u; /* 0x42017228: mov eax, 0x420194c8 */
   4428 L_4201722D:
   4429     RECOMP_BACKEDGE();
   4430     goto L_42016F30; /* 0x4201722D: jmp 0x42016f30 */
   4431     { RECOMP_REGS_OUT(); return; } /* end of function */
   4432   _ljump:
   4433     switch (_itail_tgt) {
   4434       case 0x42016F30u: goto L_42016F30;
   4435       case 0x42017228u: goto L_42017228;
   4436       case 0x4201722Du: goto L_4201722D;
   4437       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4438     }
   4439     RECOMP_REGS_OUT();
   4440 }
   4441 
   4442 void sub_42017240(void) {
   4443     int _fpu_cmp = 0;
   4444     uint32_t _cf = 0;
   4445     int _df = 1;
   4446     uint32_t _flag_k = FK_NONE;
   4447     uint32_t _flag_a = 0, _flag_b = 0;
   4448     uint32_t _itail_tgt = 0;
   4449     RECOMP_REGS_LOCALS
   4450     RECOMP_ENTER(0x42017240u);
   4451 
   4452     goto L_42017240;
   4453 L_42003DA0:
   4454     PUSH32(esp, ebp); /* 0x42003DA0: push ebp */
   4455     ebp = esp; /* 0x42003DA1: mov ebp, esp */
   4456     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003DA3: push -1 */
   4457     PUSH32(esp, 0x420171E8u); /* 0x42003DA5: push 0x420171e8 */
   4458     eax = MEM32(FS_BASE + (0)); /* 0x42003DAA: mov eax, dword ptr fs:[0] */
   4459     PUSH32(esp, eax); /* 0x42003DB0: push eax */
   4460     MEM32(FS_BASE + (0)) = esp; /* 0x42003DB1: mov dword ptr fs:[0], esp */
   4461     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4463     esp = esp - 8; /* 0x42003DB8: sub esp, 8 */
   4464     _flag_k = FK_CMP;
   4465     PUSH32(esp, ebx); /* 0x42003DBB: push ebx */
   4466     PUSH32(esp, esi); /* 0x42003DBC: push esi */
   4467     PUSH32(esp, edi); /* 0x42003DBD: push edi */
   4468     MEM32(ebp + (-0x10)) = ecx; /* 0x42003DBE: mov dword ptr [ebp - 0x10], ecx */
   4469     MEM32(ecx) = 0x420182ECu; /* 0x42003DC1: mov dword ptr [ecx], 0x420182ec */
   4470     MEM32(ecx + 0x4) = 0x420182E4u; /* 0x42003DC7: mov dword ptr [ecx + 4], 0x420182e4 */
   4471     ebx = MEM32(ecx + 0x10); /* 0x42003DCE: mov ebx, dword ptr [ecx + 0x10] */
   4472     esi = MEM32(ebx); /* 0x42003DD1: mov esi, dword ptr [ebx] */
   4473     /* cmp esi, ebx */ /* 0x42003DD3: cmp esi, ebx */
   4474     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4476     _flag_k = FK_CMP;
   4477     edi = ecx + 0xC; /* 0x42003DD5: lea edi, [ecx + 0xc] */
   4478     MEM32(ebp + (-0x4)) = 0; /* 0x42003DD8: mov dword ptr [ebp - 4], 0 */
   4479     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003DF5; /* 0x42003DDF: je 0x42003df5 */
   4480 L_42003DE1:
   4481     eax = esi; /* 0x42003DE1: mov eax, esi */
   4482     esi = MEM32(esi); /* 0x42003DE3: mov esi, dword ptr [esi] */
   4483     PUSH32(esp, eax); /* 0x42003DE5: push eax */
   4484     eax = ebp + (-0x14); /* 0x42003DE6: lea eax, [ebp - 0x14] */
   4485     PUSH32(esp, eax); /* 0x42003DE9: push eax */
   4486     ecx = edi; /* 0x42003DEA: mov ecx, edi */
   4487     RECOMP_ICALL(0x42005C70u); /* 0x42003DEC: call 0x42005c70 */ /* not lifted */
   4488     RECOMP_FLAGS_IN();
   4489     /* cmp esi, ebx */ /* 0x42003DF1: cmp esi, ebx */
   4490     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4492     _flag_k = FK_CMP;
   4493     RECOMP_BACKEDGE();
   4494     if (CMP_NE(_flag_a, _flag_b)) goto L_42003DE1; /* 0x42003DF3: jne 0x42003de1 */
   4495 L_42003DF5:
   4496     ecx = MEM32(edi + 0x4); /* 0x42003DF5: mov ecx, dword ptr [edi + 4] */
   4497     PUSH32(esp, ecx); /* 0x42003DF8: push ecx */
   4498     RECOMP_ICALL(0x42016DD0u); /* 0x42003DF9: call 0x42016dd0 */ /* not lifted */
   4499     RECOMP_FLAGS_IN();
   4500     edx = MEM32(ebp + (-0x10)); /* 0x42003DFE: mov edx, dword ptr [ebp - 0x10] */
   4501     ecx = MEM32(ebp + (-0xC)); /* 0x42003E01: mov ecx, dword ptr [ebp - 0xc] */
   4502     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4504     esp = esp + 4; /* 0x42003E04: add esp, 4 */
   4505     _flag_k = FK_ADD;
   4506     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4507     eax = 0; /* 0x42003E07: xor eax, eax */
   4508     _cf = 0;
   4509     _flag_k = FK_TEST;
   4510     MEM32(edi + 0x4) = eax; /* 0x42003E09: mov dword ptr [edi + 4], eax */
   4511     MEM32(edi + 0x8) = eax; /* 0x42003E0C: mov dword ptr [edi + 8], eax */
   4512     edi = POP32_VAL(esp); /* 0x42003E0F: pop edi */
   4513     esi = POP32_VAL(esp); /* 0x42003E10: pop esi */
   4514     MEM32(edx) = 0x4201822Cu; /* 0x42003E11: mov dword ptr [edx], 0x4201822c */
   4515     ebx = POP32_VAL(esp); /* 0x42003E17: pop ebx */
   4516     MEM32(FS_BASE + (0)) = ecx; /* 0x42003E18: mov dword ptr fs:[0], ecx */
   4517     esp = ebp; /* 0x42003E1F: mov esp, ebp */
   4518     ebp = POP32_VAL(esp); /* 0x42003E21: pop ebp */
   4519     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003E22: ret  */
   4520 L_42017240:
   4521     ecx = MEM32(ebp + (-0x10)); /* 0x42017240: mov ecx, dword ptr [ebp - 0x10] */
   4522     RECOMP_BACKEDGE();
   4523     goto L_42003DA0; /* 0x42017243: jmp 0x42003da0 */
   4524     { RECOMP_REGS_OUT(); return; } /* end of function */
   4525     RECOMP_REGS_OUT();
   4526 }
   4527 
   4528 void sub_42017248(void) {
   4529     int _fpu_cmp = 0;
   4530     uint32_t _cf = 0;
   4531     int _df = 1;
   4532     uint32_t _flag_k = FK_NONE;
   4533     uint32_t _flag_a = 0, _flag_b = 0;
   4534     uint32_t _itail_tgt = 0;
   4535     RECOMP_REGS_LOCALS
   4536     RECOMP_ENTER(0x42017248u);
   4537 
   4538     goto L_42017248;
   4539 L_42016F30:
   4540     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4541 L_42017248:
   4542     eax = 0x420194F0u; /* 0x42017248: mov eax, 0x420194f0 */
   4543 L_4201724D:
   4544     RECOMP_BACKEDGE();
   4545     goto L_42016F30; /* 0x4201724D: jmp 0x42016f30 */
   4546     { RECOMP_REGS_OUT(); return; } /* end of function */
   4547   _ljump:
   4548     switch (_itail_tgt) {
   4549       case 0x42016F30u: goto L_42016F30;
   4550       case 0x42017248u: goto L_42017248;
   4551       case 0x4201724Du: goto L_4201724D;
   4552       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4553     }
   4554     RECOMP_REGS_OUT();
   4555 }
   4556 
   4557 void sub_42017260(void) {
   4558     int _fpu_cmp = 0;
   4559     uint32_t _cf = 0;
   4560     int _df = 1;
   4561     uint32_t _flag_k = FK_NONE;
   4562     uint32_t _flag_a = 0, _flag_b = 0;
   4563     uint32_t _itail_tgt = 0;
   4564     RECOMP_REGS_LOCALS
   4565     RECOMP_ENTER(0x42017260u);
   4566 
   4567 L_42017260:
   4568     eax = MEM32(ebp + (-0x14)); /* 0x42017260: mov eax, dword ptr [ebp - 0x14] */
   4569     PUSH32(esp, eax); /* 0x42017263: push eax */
   4570     RECOMP_ICALL(0x42016DD0u); /* 0x42017264: call 0x42016dd0 */ /* not lifted */
   4571     RECOMP_FLAGS_IN();
   4572     ecx = POP32_VAL(esp); /* 0x42017269: pop ecx */
   4573     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4201726A: ret  */
   4574     RECOMP_REGS_OUT();
   4575 }
   4576 
   4577 void sub_4201726B(void) {
   4578     int _fpu_cmp = 0;
   4579     uint32_t _cf = 0;
   4580     int _df = 1;
   4581     uint32_t _flag_k = FK_NONE;
   4582     uint32_t _flag_a = 0, _flag_b = 0;
   4583     uint32_t _itail_tgt = 0;
   4584     RECOMP_REGS_LOCALS
   4585     RECOMP_ENTER(0x4201726Bu);
   4586 
   4587 L_4201726B:
   4588     eax = MEM32(ebp + (-0x18)); /* 0x4201726B: mov eax, dword ptr [ebp - 0x18] */
   4589     PUSH32(esp, eax); /* 0x4201726E: push eax */
   4590     RECOMP_ICALL(0x42016DD0u); /* 0x4201726F: call 0x42016dd0 */ /* not lifted */
   4591     RECOMP_FLAGS_IN();
   4592     ecx = POP32_VAL(esp); /* 0x42017274: pop ecx */
   4593     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42017275: ret  */
   4594     RECOMP_REGS_OUT();
   4595 }
   4596 
   4597 void sub_42017276(void) {
   4598     int _fpu_cmp = 0;
   4599     uint32_t _cf = 0;
   4600     int _df = 1;
   4601     uint32_t _flag_k = FK_NONE;
   4602     uint32_t _flag_a = 0, _flag_b = 0;
   4603     uint32_t _itail_tgt = 0;
   4604     RECOMP_REGS_LOCALS
   4605     RECOMP_ENTER(0x42017276u);
   4606 
   4607     goto L_42017276;
   4608 L_420037E0:
   4609     PUSH32(esp, ebx); /* 0x420037E0: push ebx */
   4610     PUSH32(esp, esi); /* 0x420037E1: push esi */
   4611     PUSH32(esp, edi); /* 0x420037E2: push edi */
   4612     edi = ecx; /* 0x420037E3: mov edi, ecx */
   4613     ebx = MEM32(edi + 0x4); /* 0x420037E5: mov ebx, dword ptr [edi + 4] */
   4614     esi = MEM32(ebx); /* 0x420037E8: mov esi, dword ptr [ebx] */
   4615     /* cmp esi, ebx */ /* 0x420037EA: cmp esi, ebx */
   4616     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4618     _flag_k = FK_CMP;
   4619     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003815; /* 0x420037EC: je 0x42003815 */
   4620 L_420037EE:
   4621     eax = esi; /* 0x420037EE: mov eax, esi */
   4622     ecx = MEM32(eax + 0x4); /* 0x420037F0: mov ecx, dword ptr [eax + 4] */
   4623     edx = MEM32(eax); /* 0x420037F3: mov edx, dword ptr [eax] */
   4624     esi = MEM32(esi); /* 0x420037F5: mov esi, dword ptr [esi] */
   4625     MEM32(ecx) = edx; /* 0x420037F7: mov dword ptr [ecx], edx */
   4626     ecx = MEM32(eax); /* 0x420037F9: mov ecx, dword ptr [eax] */
   4627     edx = MEM32(eax + 0x4); /* 0x420037FB: mov edx, dword ptr [eax + 4] */
   4628     PUSH32(esp, eax); /* 0x420037FE: push eax */
   4629     MEM32(ecx + 0x4) = edx; /* 0x420037FF: mov dword ptr [ecx + 4], edx */
   4630     RECOMP_ICALL(0x42016DD0u); /* 0x42003802: call 0x42016dd0 */ /* not lifted */
   4631     RECOMP_FLAGS_IN();
   4632     ecx = MEM32(edi + 0x8); /* 0x42003807: mov ecx, dword ptr [edi + 8] */
   4633     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4635     esp = esp + 4; /* 0x4200380A: add esp, 4 */
   4636     _flag_k = FK_ADD;
   4637     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4638     ecx = ecx - 1; /* 0x4200380D: dec ecx */
   4639     _flag_k = FK_DEC;
   4640     /* cmp esi, ebx */ /* 0x4200380E: cmp esi, ebx */
   4641     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4643     _flag_k = FK_CMP;
   4644     MEM32(edi + 0x8) = ecx; /* 0x42003810: mov dword ptr [edi + 8], ecx */
   4645     RECOMP_BACKEDGE();
   4646     if (CMP_NE(_flag_a, _flag_b)) goto L_420037EE; /* 0x42003813: jne 0x420037ee */
   4647 L_42003815:
   4648     eax = MEM32(edi + 0x4); /* 0x42003815: mov eax, dword ptr [edi + 4] */
   4649     PUSH32(esp, eax); /* 0x42003818: push eax */
   4650     RECOMP_ICALL(0x42016DD0u); /* 0x42003819: call 0x42016dd0 */ /* not lifted */
   4651     RECOMP_FLAGS_IN();
   4652     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4653     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4654     esp = esp + 4; /* 0x4200381E: add esp, 4 */
   4655     _flag_k = FK_ADD;
   4656     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4657     eax = 0; /* 0x42003821: xor eax, eax */
   4658     _cf = 0;
   4659     _flag_k = FK_TEST;
   4660     MEM32(edi + 0x4) = eax; /* 0x42003823: mov dword ptr [edi + 4], eax */
   4661     MEM32(edi + 0x8) = eax; /* 0x42003826: mov dword ptr [edi + 8], eax */
   4662     edi = POP32_VAL(esp); /* 0x42003829: pop edi */
   4663     esi = POP32_VAL(esp); /* 0x4200382A: pop esi */
   4664     ebx = POP32_VAL(esp); /* 0x4200382B: pop ebx */
   4665     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200382C: ret  */
   4666 L_42017276:
   4667     ecx = MEM32(ebp + (-0x18)); /* 0x42017276: mov ecx, dword ptr [ebp - 0x18] */
   4668     RECOMP_BACKEDGE();
   4669     goto L_420037E0; /* 0x42017279: jmp 0x420037e0 */
   4670     { RECOMP_REGS_OUT(); return; } /* end of function */
   4671     RECOMP_REGS_OUT();
   4672 }
   4673 
   4674 void sub_4201727E(void) {
   4675     int _fpu_cmp = 0;
   4676     uint32_t _cf = 0;
   4677     int _df = 1;
   4678     uint32_t _flag_k = FK_NONE;
   4679     uint32_t _flag_a = 0, _flag_b = 0;
   4680     uint32_t _itail_tgt = 0;
   4681     RECOMP_REGS_LOCALS
   4682     RECOMP_ENTER(0x4201727Eu);
   4683 
   4684     goto L_4201727E;
   4685 L_42016F30:
   4686     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4687 L_4201727E:
   4688     eax = 0x42019518u; /* 0x4201727E: mov eax, 0x42019518 */
   4689 L_42017283:
   4690     RECOMP_BACKEDGE();
   4691     goto L_42016F30; /* 0x42017283: jmp 0x42016f30 */
   4692     { RECOMP_REGS_OUT(); return; } /* end of function */
   4693   _ljump:
   4694     switch (_itail_tgt) {
   4695       case 0x42016F30u: goto L_42016F30;
   4696       case 0x4201727Eu: goto L_4201727E;
   4697       case 0x42017283u: goto L_42017283;
   4698       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4699     }
   4700     RECOMP_REGS_OUT();
   4701 }
   4702 
   4703 void sub_42017290(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(0x42017290u);
   4712 
   4713     goto L_42017290;
   4714 L_42003DA0:
   4715     PUSH32(esp, ebp); /* 0x42003DA0: push ebp */
   4716     ebp = esp; /* 0x42003DA1: mov ebp, esp */
   4717     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003DA3: push -1 */
   4718     PUSH32(esp, 0x420171E8u); /* 0x42003DA5: push 0x420171e8 */
   4719     eax = MEM32(FS_BASE + (0)); /* 0x42003DAA: mov eax, dword ptr fs:[0] */
   4720     PUSH32(esp, eax); /* 0x42003DB0: push eax */
   4721     MEM32(FS_BASE + (0)) = esp; /* 0x42003DB1: mov dword ptr fs:[0], esp */
   4722     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4724     esp = esp - 8; /* 0x42003DB8: sub esp, 8 */
   4725     _flag_k = FK_CMP;
   4726     PUSH32(esp, ebx); /* 0x42003DBB: push ebx */
   4727     PUSH32(esp, esi); /* 0x42003DBC: push esi */
   4728     PUSH32(esp, edi); /* 0x42003DBD: push edi */
   4729     MEM32(ebp + (-0x10)) = ecx; /* 0x42003DBE: mov dword ptr [ebp - 0x10], ecx */
   4730     MEM32(ecx) = 0x420182ECu; /* 0x42003DC1: mov dword ptr [ecx], 0x420182ec */
   4731     MEM32(ecx + 0x4) = 0x420182E4u; /* 0x42003DC7: mov dword ptr [ecx + 4], 0x420182e4 */
   4732     ebx = MEM32(ecx + 0x10); /* 0x42003DCE: mov ebx, dword ptr [ecx + 0x10] */
   4733     esi = MEM32(ebx); /* 0x42003DD1: mov esi, dword ptr [ebx] */
   4734     /* cmp esi, ebx */ /* 0x42003DD3: cmp esi, ebx */
   4735     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4737     _flag_k = FK_CMP;
   4738     edi = ecx + 0xC; /* 0x42003DD5: lea edi, [ecx + 0xc] */
   4739     MEM32(ebp + (-0x4)) = 0; /* 0x42003DD8: mov dword ptr [ebp - 4], 0 */
   4740     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003DF5; /* 0x42003DDF: je 0x42003df5 */
   4741 L_42003DE1:
   4742     eax = esi; /* 0x42003DE1: mov eax, esi */
   4743     esi = MEM32(esi); /* 0x42003DE3: mov esi, dword ptr [esi] */
   4744     PUSH32(esp, eax); /* 0x42003DE5: push eax */
   4745     eax = ebp + (-0x14); /* 0x42003DE6: lea eax, [ebp - 0x14] */
   4746     PUSH32(esp, eax); /* 0x42003DE9: push eax */
   4747     ecx = edi; /* 0x42003DEA: mov ecx, edi */
   4748     RECOMP_ICALL(0x42005C70u); /* 0x42003DEC: call 0x42005c70 */ /* not lifted */
   4749     RECOMP_FLAGS_IN();
   4750     /* cmp esi, ebx */ /* 0x42003DF1: cmp esi, ebx */
   4751     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4753     _flag_k = FK_CMP;
   4754     RECOMP_BACKEDGE();
   4755     if (CMP_NE(_flag_a, _flag_b)) goto L_42003DE1; /* 0x42003DF3: jne 0x42003de1 */
   4756 L_42003DF5:
   4757     ecx = MEM32(edi + 0x4); /* 0x42003DF5: mov ecx, dword ptr [edi + 4] */
   4758     PUSH32(esp, ecx); /* 0x42003DF8: push ecx */
   4759     RECOMP_ICALL(0x42016DD0u); /* 0x42003DF9: call 0x42016dd0 */ /* not lifted */
   4760     RECOMP_FLAGS_IN();
   4761     edx = MEM32(ebp + (-0x10)); /* 0x42003DFE: mov edx, dword ptr [ebp - 0x10] */
   4762     ecx = MEM32(ebp + (-0xC)); /* 0x42003E01: mov ecx, dword ptr [ebp - 0xc] */
   4763     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4764     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4765     esp = esp + 4; /* 0x42003E04: add esp, 4 */
   4766     _flag_k = FK_ADD;
   4767     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4768     eax = 0; /* 0x42003E07: xor eax, eax */
   4769     _cf = 0;
   4770     _flag_k = FK_TEST;
   4771     MEM32(edi + 0x4) = eax; /* 0x42003E09: mov dword ptr [edi + 4], eax */
   4772     MEM32(edi + 0x8) = eax; /* 0x42003E0C: mov dword ptr [edi + 8], eax */
   4773     edi = POP32_VAL(esp); /* 0x42003E0F: pop edi */
   4774     esi = POP32_VAL(esp); /* 0x42003E10: pop esi */
   4775     MEM32(edx) = 0x4201822Cu; /* 0x42003E11: mov dword ptr [edx], 0x4201822c */
   4776     ebx = POP32_VAL(esp); /* 0x42003E17: pop ebx */
   4777     MEM32(FS_BASE + (0)) = ecx; /* 0x42003E18: mov dword ptr fs:[0], ecx */
   4778     esp = ebp; /* 0x42003E1F: mov esp, ebp */
   4779     ebp = POP32_VAL(esp); /* 0x42003E21: pop ebp */
   4780     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003E22: ret  */
   4781 L_42017290:
   4782     ecx = MEM32(ebp + (-0x1C)); /* 0x42017290: mov ecx, dword ptr [ebp - 0x1c] */
   4783     RECOMP_BACKEDGE();
   4784     goto L_42003DA0; /* 0x42017293: jmp 0x42003da0 */
   4785     { RECOMP_REGS_OUT(); return; } /* end of function */
   4786     RECOMP_REGS_OUT();
   4787 }
   4788 
   4789 void sub_42017298(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(0x42017298u);
   4798 
   4799     goto L_42017298;
   4800 L_42016F30:
   4801     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4802 L_42017298:
   4803     eax = 0x42019550u; /* 0x42017298: mov eax, 0x42019550 */
   4804 L_4201729D:
   4805     RECOMP_BACKEDGE();
   4806     goto L_42016F30; /* 0x4201729D: jmp 0x42016f30 */
   4807     { RECOMP_REGS_OUT(); return; } /* end of function */
   4808   _ljump:
   4809     switch (_itail_tgt) {
   4810       case 0x42016F30u: goto L_42016F30;
   4811       case 0x42017298u: goto L_42017298;
   4812       case 0x4201729Du: goto L_4201729D;
   4813       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4814     }
   4815     RECOMP_REGS_OUT();
   4816 }
   4817 
   4818 void sub_420172B0(void) {
   4819     int _fpu_cmp = 0;
   4820     uint32_t _cf = 0;
   4821     int _df = 1;
   4822     uint32_t _flag_k = FK_NONE;
   4823     uint32_t _flag_a = 0, _flag_b = 0;
   4824     uint32_t _itail_tgt = 0;
   4825     RECOMP_REGS_LOCALS
   4826     RECOMP_ENTER(0x420172B0u);
   4827 
   4828     goto L_420172B0;
   4829 L_42004390:
   4830     PUSH32(esp, esi); /* 0x42004390: push esi */
   4831     esi = ecx; /* 0x42004391: mov esi, ecx */
   4832     ecx = MEM32(esi); /* 0x42004393: mov ecx, dword ptr [esi] */
   4833     RECOMP_ICALL(0x42004870u); /* 0x42004395: call 0x42004870 */ /* not lifted */
   4834     RECOMP_FLAGS_IN();
   4835     ecx = MEM32(esi); /* 0x4200439A: mov ecx, dword ptr [esi] */
   4836     RECOMP_ICALL(0x420048E0u); /* 0x4200439C: call 0x420048e0 */ /* not lifted */
   4837     RECOMP_FLAGS_IN();
   4838     esi = POP32_VAL(esp); /* 0x420043A1: pop esi */
   4839     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420043A2: ret  */
   4840 L_420172B0:
   4841     ecx = ebp + (-0x34); /* 0x420172B0: lea ecx, [ebp - 0x34] */
   4842     RECOMP_BACKEDGE();
   4843     goto L_42004390; /* 0x420172B3: jmp 0x42004390 */
   4844     { RECOMP_REGS_OUT(); return; } /* end of function */
   4845     RECOMP_REGS_OUT();
   4846 }
   4847 
   4848 void sub_420172B8(void) {
   4849     int _fpu_cmp = 0;
   4850     uint32_t _cf = 0;
   4851     int _df = 1;
   4852     uint32_t _flag_k = FK_NONE;
   4853     uint32_t _flag_a = 0, _flag_b = 0;
   4854     uint32_t _itail_tgt = 0;
   4855     RECOMP_REGS_LOCALS
   4856     RECOMP_ENTER(0x420172B8u);
   4857 
   4858     goto L_420172B8;
   4859 L_42016F30:
   4860     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4861 L_420172B8:
   4862     eax = 0x42019578u; /* 0x420172B8: mov eax, 0x42019578 */
   4863 L_420172BD:
   4864     RECOMP_BACKEDGE();
   4865     goto L_42016F30; /* 0x420172BD: jmp 0x42016f30 */
   4866     { RECOMP_REGS_OUT(); return; } /* end of function */
   4867   _ljump:
   4868     switch (_itail_tgt) {
   4869       case 0x42016F30u: goto L_42016F30;
   4870       case 0x420172B8u: goto L_420172B8;
   4871       case 0x420172BDu: goto L_420172BD;
   4872       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4873     }
   4874     RECOMP_REGS_OUT();
   4875 }
   4876 
   4877 void sub_420172D0(void) {
   4878     int _fpu_cmp = 0;
   4879     uint32_t _cf = 0;
   4880     int _df = 1;
   4881     uint32_t _flag_k = FK_NONE;
   4882     uint32_t _flag_a = 0, _flag_b = 0;
   4883     uint32_t _itail_tgt = 0;
   4884     RECOMP_REGS_LOCALS
   4885     RECOMP_ENTER(0x420172D0u);
   4886 
   4887     goto L_420172D0;
   4888 L_42004390:
   4889     PUSH32(esp, esi); /* 0x42004390: push esi */
   4890     esi = ecx; /* 0x42004391: mov esi, ecx */
   4891     ecx = MEM32(esi); /* 0x42004393: mov ecx, dword ptr [esi] */
   4892     RECOMP_ICALL(0x42004870u); /* 0x42004395: call 0x42004870 */ /* not lifted */
   4893     RECOMP_FLAGS_IN();
   4894     ecx = MEM32(esi); /* 0x4200439A: mov ecx, dword ptr [esi] */
   4895     RECOMP_ICALL(0x420048E0u); /* 0x4200439C: call 0x420048e0 */ /* not lifted */
   4896     RECOMP_FLAGS_IN();
   4897     esi = POP32_VAL(esp); /* 0x420043A1: pop esi */
   4898     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420043A2: ret  */
   4899 L_420172D0:
   4900     ecx = ebp + (-0x18); /* 0x420172D0: lea ecx, [ebp - 0x18] */
   4901     RECOMP_BACKEDGE();
   4902     goto L_42004390; /* 0x420172D3: jmp 0x42004390 */
   4903     { RECOMP_REGS_OUT(); return; } /* end of function */
   4904     RECOMP_REGS_OUT();
   4905 }
   4906 
   4907 void sub_420172D8(void) {
   4908     int _fpu_cmp = 0;
   4909     uint32_t _cf = 0;
   4910     int _df = 1;
   4911     uint32_t _flag_k = FK_NONE;
   4912     uint32_t _flag_a = 0, _flag_b = 0;
   4913     uint32_t _itail_tgt = 0;
   4914     RECOMP_REGS_LOCALS
   4915     RECOMP_ENTER(0x420172D8u);
   4916 
   4917     goto L_420172D8;
   4918 L_42016F30:
   4919     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4920 L_420172D8:
   4921     eax = 0x420195A0u; /* 0x420172D8: mov eax, 0x420195a0 */
   4922 L_420172DD:
   4923     RECOMP_BACKEDGE();
   4924     goto L_42016F30; /* 0x420172DD: jmp 0x42016f30 */
   4925     { RECOMP_REGS_OUT(); return; } /* end of function */
   4926   _ljump:
   4927     switch (_itail_tgt) {
   4928       case 0x42016F30u: goto L_42016F30;
   4929       case 0x420172D8u: goto L_420172D8;
   4930       case 0x420172DDu: goto L_420172DD;
   4931       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4932     }
   4933     RECOMP_REGS_OUT();
   4934 }
   4935 
   4936 void sub_420172F0(void) {
   4937     int _fpu_cmp = 0;
   4938     uint32_t _cf = 0;
   4939     int _df = 1;
   4940     uint32_t _flag_k = FK_NONE;
   4941     uint32_t _flag_a = 0, _flag_b = 0;
   4942     uint32_t _itail_tgt = 0;
   4943     RECOMP_REGS_LOCALS
   4944     RECOMP_ENTER(0x420172F0u);
   4945 
   4946     goto L_420172F0;
   4947 L_42004390:
   4948     PUSH32(esp, esi); /* 0x42004390: push esi */
   4949     esi = ecx; /* 0x42004391: mov esi, ecx */
   4950     ecx = MEM32(esi); /* 0x42004393: mov ecx, dword ptr [esi] */
   4951     RECOMP_ICALL(0x42004870u); /* 0x42004395: call 0x42004870 */ /* not lifted */
   4952     RECOMP_FLAGS_IN();
   4953     ecx = MEM32(esi); /* 0x4200439A: mov ecx, dword ptr [esi] */
   4954     RECOMP_ICALL(0x420048E0u); /* 0x4200439C: call 0x420048e0 */ /* not lifted */
   4955     RECOMP_FLAGS_IN();
   4956     esi = POP32_VAL(esp); /* 0x420043A1: pop esi */
   4957     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420043A2: ret  */
   4958 L_420172F0:
   4959     ecx = ebp + (-0x10); /* 0x420172F0: lea ecx, [ebp - 0x10] */
   4960     RECOMP_BACKEDGE();
   4961     goto L_42004390; /* 0x420172F3: jmp 0x42004390 */
   4962     { RECOMP_REGS_OUT(); return; } /* end of function */
   4963     RECOMP_REGS_OUT();
   4964 }
   4965 
   4966 void sub_420172F8(void) {
   4967     int _fpu_cmp = 0;
   4968     uint32_t _cf = 0;
   4969     int _df = 1;
   4970     uint32_t _flag_k = FK_NONE;
   4971     uint32_t _flag_a = 0, _flag_b = 0;
   4972     uint32_t _itail_tgt = 0;
   4973     RECOMP_REGS_LOCALS
   4974     RECOMP_ENTER(0x420172F8u);
   4975 
   4976     goto L_420172F8;
   4977 L_42016F30:
   4978     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   4979 L_420172F8:
   4980     eax = 0x420195C8u; /* 0x420172F8: mov eax, 0x420195c8 */
   4981 L_420172FD:
   4982     RECOMP_BACKEDGE();
   4983     goto L_42016F30; /* 0x420172FD: jmp 0x42016f30 */
   4984     { RECOMP_REGS_OUT(); return; } /* end of function */
   4985   _ljump:
   4986     switch (_itail_tgt) {
   4987       case 0x42016F30u: goto L_42016F30;
   4988       case 0x420172F8u: goto L_420172F8;
   4989       case 0x420172FDu: goto L_420172FD;
   4990       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4991     }
   4992     RECOMP_REGS_OUT();
   4993 }
   4994 
   4995 void sub_42017310(void) {
   4996     int _fpu_cmp = 0;
   4997     uint32_t _cf = 0;
   4998     int _df = 1;
   4999     uint32_t _flag_k = FK_NONE;
   5000     uint32_t _flag_a = 0, _flag_b = 0;
   5001     uint32_t _itail_tgt = 0;
   5002     RECOMP_REGS_LOCALS
   5003     RECOMP_ENTER(0x42017310u);
   5004 
   5005     goto L_42017310;
   5006 L_42004390:
   5007     PUSH32(esp, esi); /* 0x42004390: push esi */
   5008     esi = ecx; /* 0x42004391: mov esi, ecx */
   5009     ecx = MEM32(esi); /* 0x42004393: mov ecx, dword ptr [esi] */
   5010     RECOMP_ICALL(0x42004870u); /* 0x42004395: call 0x42004870 */ /* not lifted */
   5011     RECOMP_FLAGS_IN();
   5012     ecx = MEM32(esi); /* 0x4200439A: mov ecx, dword ptr [esi] */
   5013     RECOMP_ICALL(0x420048E0u); /* 0x4200439C: call 0x420048e0 */ /* not lifted */
   5014     RECOMP_FLAGS_IN();
   5015     esi = POP32_VAL(esp); /* 0x420043A1: pop esi */
   5016     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420043A2: ret  */
   5017 L_42017310:
   5018     ecx = ebp + (-0x20); /* 0x42017310: lea ecx, [ebp - 0x20] */
   5019     RECOMP_BACKEDGE();
   5020     goto L_42004390; /* 0x42017313: jmp 0x42004390 */
   5021     { RECOMP_REGS_OUT(); return; } /* end of function */
   5022     RECOMP_REGS_OUT();
   5023 }
   5024 
   5025 void sub_42017318(void) {
   5026     int _fpu_cmp = 0;
   5027     uint32_t _cf = 0;
   5028     int _df = 1;
   5029     uint32_t _flag_k = FK_NONE;
   5030     uint32_t _flag_a = 0, _flag_b = 0;
   5031     uint32_t _itail_tgt = 0;
   5032     RECOMP_REGS_LOCALS
   5033     RECOMP_ENTER(0x42017318u);
   5034 
   5035     goto L_42017318;
   5036 L_42016F30:
   5037     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   5038 L_42017318:
   5039     eax = 0x420195F0u; /* 0x42017318: mov eax, 0x420195f0 */
   5040 L_4201731D:
   5041     RECOMP_BACKEDGE();
   5042     goto L_42016F30; /* 0x4201731D: jmp 0x42016f30 */
   5043     { RECOMP_REGS_OUT(); return; } /* end of function */
   5044   _ljump:
   5045     switch (_itail_tgt) {
   5046       case 0x42016F30u: goto L_42016F30;
   5047       case 0x42017318u: goto L_42017318;
   5048       case 0x4201731Du: goto L_4201731D;
   5049       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5050     }
   5051     RECOMP_REGS_OUT();
   5052 }
   5053 
   5054 void sub_42017330(void) {
   5055     int _fpu_cmp = 0;
   5056     uint32_t _cf = 0;
   5057     int _df = 1;
   5058     uint32_t _flag_k = FK_NONE;
   5059     uint32_t _flag_a = 0, _flag_b = 0;
   5060     uint32_t _itail_tgt = 0;
   5061     RECOMP_REGS_LOCALS
   5062     RECOMP_ENTER(0x42017330u);
   5063 
   5064     goto L_42017330;
   5065 L_42004390:
   5066     PUSH32(esp, esi); /* 0x42004390: push esi */
   5067     esi = ecx; /* 0x42004391: mov esi, ecx */
   5068     ecx = MEM32(esi); /* 0x42004393: mov ecx, dword ptr [esi] */
   5069     RECOMP_ICALL(0x42004870u); /* 0x42004395: call 0x42004870 */ /* not lifted */
   5070     RECOMP_FLAGS_IN();
   5071     ecx = MEM32(esi); /* 0x4200439A: mov ecx, dword ptr [esi] */
   5072     RECOMP_ICALL(0x420048E0u); /* 0x4200439C: call 0x420048e0 */ /* not lifted */
   5073     RECOMP_FLAGS_IN();
   5074     esi = POP32_VAL(esp); /* 0x420043A1: pop esi */
   5075     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420043A2: ret  */
   5076 L_42017330:
   5077     ecx = ebp + (-0x18); /* 0x42017330: lea ecx, [ebp - 0x18] */
   5078     RECOMP_BACKEDGE();
   5079     goto L_42004390; /* 0x42017333: jmp 0x42004390 */
   5080     { RECOMP_REGS_OUT(); return; } /* end of function */
   5081     RECOMP_REGS_OUT();
   5082 }
   5083 
   5084 void sub_42017338(void) {
   5085     int _fpu_cmp = 0;
   5086     uint32_t _cf = 0;
   5087     int _df = 1;
   5088     uint32_t _flag_k = FK_NONE;
   5089     uint32_t _flag_a = 0, _flag_b = 0;
   5090     uint32_t _itail_tgt = 0;
   5091     RECOMP_REGS_LOCALS
   5092     RECOMP_ENTER(0x42017338u);
   5093 
   5094     goto L_42017338;
   5095 L_42016F30:
   5096     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   5097 L_42017338:
   5098     eax = 0x42019618u; /* 0x42017338: mov eax, 0x42019618 */
   5099 L_4201733D:
   5100     RECOMP_BACKEDGE();
   5101     goto L_42016F30; /* 0x4201733D: jmp 0x42016f30 */
   5102     { RECOMP_REGS_OUT(); return; } /* end of function */
   5103   _ljump:
   5104     switch (_itail_tgt) {
   5105       case 0x42016F30u: goto L_42016F30;
   5106       case 0x42017338u: goto L_42017338;
   5107       case 0x4201733Du: goto L_4201733D;
   5108       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5109     }
   5110     RECOMP_REGS_OUT();
   5111 }
   5112 
   5113 void sub_42017350(void) {
   5114     int _fpu_cmp = 0;
   5115     uint32_t _cf = 0;
   5116     int _df = 1;
   5117     uint32_t _flag_k = FK_NONE;
   5118     uint32_t _flag_a = 0, _flag_b = 0;
   5119     uint32_t _itail_tgt = 0;
   5120     RECOMP_REGS_LOCALS
   5121     RECOMP_ENTER(0x42017350u);
   5122 
   5123     goto L_42017350;
   5124 L_42004390:
   5125     PUSH32(esp, esi); /* 0x42004390: push esi */
   5126     esi = ecx; /* 0x42004391: mov esi, ecx */
   5127     ecx = MEM32(esi); /* 0x42004393: mov ecx, dword ptr [esi] */
   5128     RECOMP_ICALL(0x42004870u); /* 0x42004395: call 0x42004870 */ /* not lifted */
   5129     RECOMP_FLAGS_IN();
   5130     ecx = MEM32(esi); /* 0x4200439A: mov ecx, dword ptr [esi] */
   5131     RECOMP_ICALL(0x420048E0u); /* 0x4200439C: call 0x420048e0 */ /* not lifted */
   5132     RECOMP_FLAGS_IN();
   5133     esi = POP32_VAL(esp); /* 0x420043A1: pop esi */
   5134     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420043A2: ret  */
   5135 L_42017350:
   5136     ecx = ebp + (-0x34); /* 0x42017350: lea ecx, [ebp - 0x34] */
   5137     RECOMP_BACKEDGE();
   5138     goto L_42004390; /* 0x42017353: jmp 0x42004390 */
   5139     { RECOMP_REGS_OUT(); return; } /* end of function */
   5140     RECOMP_REGS_OUT();
   5141 }
   5142 
   5143 void sub_42017358(void) {
   5144     int _fpu_cmp = 0;
   5145     uint32_t _cf = 0;
   5146     int _df = 1;
   5147     uint32_t _flag_k = FK_NONE;
   5148     uint32_t _flag_a = 0, _flag_b = 0;
   5149     uint32_t _itail_tgt = 0;
   5150     RECOMP_REGS_LOCALS
   5151     RECOMP_ENTER(0x42017358u);
   5152 
   5153     goto L_42017358;
   5154 L_42016F30:
   5155     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   5156 L_42017358:
   5157     eax = 0x42019640u; /* 0x42017358: mov eax, 0x42019640 */
   5158 L_4201735D:
   5159     RECOMP_BACKEDGE();
   5160     goto L_42016F30; /* 0x4201735D: jmp 0x42016f30 */
   5161     { RECOMP_REGS_OUT(); return; } /* end of function */
   5162   _ljump:
   5163     switch (_itail_tgt) {
   5164       case 0x42016F30u: goto L_42016F30;
   5165       case 0x42017358u: goto L_42017358;
   5166       case 0x4201735Du: goto L_4201735D;
   5167       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5168     }
   5169     RECOMP_REGS_OUT();
   5170 }
   5171 
   5172 void sub_42017370(void) {
   5173     int _fpu_cmp = 0;
   5174     uint32_t _cf = 0;
   5175     int _df = 1;
   5176     uint32_t _flag_k = FK_NONE;
   5177     uint32_t _flag_a = 0, _flag_b = 0;
   5178     uint32_t _itail_tgt = 0;
   5179     RECOMP_REGS_LOCALS
   5180     RECOMP_ENTER(0x42017370u);
   5181 
   5182     goto L_42017370;
   5183 L_4200A0C0:
   5184     PUSH32(esp, ebp); /* 0x4200A0C0: push ebp */
   5185     ebp = esp; /* 0x4200A0C1: mov ebp, esp */
   5186     PUSH32(esp, ecx); /* 0x4200A0C3: push ecx */
   5187     PUSH32(esp, esi); /* 0x4200A0C4: push esi */
   5188     esi = ecx; /* 0x4200A0C5: mov esi, ecx */
   5189     eax = MEM32(esi + 0x4); /* 0x4200A0C7: mov eax, dword ptr [esi + 4] */
   5190     PUSH32(esp, eax); /* 0x4200A0CA: push eax */
   5191     MEM32(ebp + (-0x4)) = eax; /* 0x4200A0CB: mov dword ptr [ebp - 4], eax */
   5192     RECOMP_ICALL(0x42016DD0u); /* 0x4200A0CE: call 0x42016dd0 */ /* not lifted */
   5193     RECOMP_FLAGS_IN();
   5194     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5196     esp = esp + 4; /* 0x4200A0D3: add esp, 4 */
   5197     _flag_k = FK_ADD;
   5198     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5199     eax = 0; /* 0x4200A0D6: xor eax, eax */
   5200     _cf = 0;
   5201     _flag_k = FK_TEST;
   5202     MEM32(esi + 0x4) = eax; /* 0x4200A0D8: mov dword ptr [esi + 4], eax */
   5203     MEM32(esi + 0x8) = eax; /* 0x4200A0DB: mov dword ptr [esi + 8], eax */
   5204     MEM32(esi + 0xC) = eax; /* 0x4200A0DE: mov dword ptr [esi + 0xc], eax */
   5205     esi = POP32_VAL(esp); /* 0x4200A0E1: pop esi */
   5206     esp = ebp; /* 0x4200A0E2: mov esp, ebp */
   5207     ebp = POP32_VAL(esp); /* 0x4200A0E4: pop ebp */
   5208     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200A0E5: ret  */
   5209 L_42017370:
   5210     ecx = MEM32(ebp + (-0x14)); /* 0x42017370: mov ecx, dword ptr [ebp - 0x14] */
   5211     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   5212     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5213     ecx = ecx + 4; /* 0x42017373: add ecx, 4 */
   5214     _flag_k = FK_ADD;
   5215     RECOMP_BACKEDGE();
   5216     goto L_4200A0C0; /* 0x42017376: jmp 0x4200a0c0 */
   5217     { RECOMP_REGS_OUT(); return; } /* end of function */
   5218     RECOMP_REGS_OUT();
   5219 }
   5220 
   5221 void sub_4201737B(void) {
   5222     int _fpu_cmp = 0;
   5223     uint32_t _cf = 0;
   5224     int _df = 1;
   5225     uint32_t _flag_k = FK_NONE;
   5226     uint32_t _flag_a = 0, _flag_b = 0;
   5227     uint32_t _itail_tgt = 0;
   5228     RECOMP_REGS_LOCALS
   5229     RECOMP_ENTER(0x4201737Bu);
   5230 
   5231     goto L_4201737B;
   5232 L_42016F30:
   5233     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   5234 L_4201737B:
   5235     eax = 0x42019668u; /* 0x4201737B: mov eax, 0x42019668 */
   5236 L_42017380:
   5237     RECOMP_BACKEDGE();
   5238     goto L_42016F30; /* 0x42017380: jmp 0x42016f30 */
   5239     { RECOMP_REGS_OUT(); return; } /* end of function */
   5240   _ljump:
   5241     switch (_itail_tgt) {
   5242       case 0x42016F30u: goto L_42016F30;
   5243       case 0x4201737Bu: goto L_4201737B;
   5244       case 0x42017380u: goto L_42017380;
   5245       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5246     }
   5247     RECOMP_REGS_OUT();
   5248 }
   5249 
   5250 void sub_42017390(void) {
   5251     int _fpu_cmp = 0;
   5252     uint32_t _cf = 0;
   5253     int _df = 1;
   5254     uint32_t _flag_k = FK_NONE;
   5255     uint32_t _flag_a = 0, _flag_b = 0;
   5256     uint32_t _itail_tgt = 0;
   5257     RECOMP_REGS_LOCALS
   5258     RECOMP_ENTER(0x42017390u);
   5259 
   5260 L_42017390:
   5261     eax = MEM32(ebp + 0x8); /* 0x42017390: mov eax, dword ptr [ebp + 8] */
   5262     PUSH32(esp, eax); /* 0x42017393: push eax */
   5263     ecx = MEM32(ebp + (-0x14)); /* 0x42017394: mov ecx, dword ptr [ebp - 0x14] */
   5264     PUSH32(esp, ecx); /* 0x42017397: push ecx */
   5265     RECOMP_ICALL(0x42002DA0u); /* 0x42017398: call 0x42002da0 */ /* not lifted */
   5266     RECOMP_FLAGS_IN();
   5267     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5268     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5269     esp = esp + 8; /* 0x4201739D: add esp, 8 */
   5270     _flag_k = FK_ADD;
   5271     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420173A0: ret  */
   5272     RECOMP_REGS_OUT();
   5273 }
   5274 
   5275 void sub_420173A1(void) {
   5276     int _fpu_cmp = 0;
   5277     uint32_t _cf = 0;
   5278     int _df = 1;
   5279     uint32_t _flag_k = FK_NONE;
   5280     uint32_t _flag_a = 0, _flag_b = 0;
   5281     uint32_t _itail_tgt = 0;
   5282     RECOMP_REGS_LOCALS
   5283     RECOMP_ENTER(0x420173A1u);
   5284 
   5285     goto L_420173A1;
   5286 L_4200A0C0:
   5287     PUSH32(esp, ebp); /* 0x4200A0C0: push ebp */
   5288     ebp = esp; /* 0x4200A0C1: mov ebp, esp */
   5289     PUSH32(esp, ecx); /* 0x4200A0C3: push ecx */
   5290     PUSH32(esp, esi); /* 0x4200A0C4: push esi */
   5291     esi = ecx; /* 0x4200A0C5: mov esi, ecx */
   5292     eax = MEM32(esi + 0x4); /* 0x4200A0C7: mov eax, dword ptr [esi + 4] */
   5293     PUSH32(esp, eax); /* 0x4200A0CA: push eax */
   5294     MEM32(ebp + (-0x4)) = eax; /* 0x4200A0CB: mov dword ptr [ebp - 4], eax */
   5295     RECOMP_ICALL(0x42016DD0u); /* 0x4200A0CE: call 0x42016dd0 */ /* not lifted */
   5296     RECOMP_FLAGS_IN();
   5297     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5298     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5299     esp = esp + 4; /* 0x4200A0D3: add esp, 4 */
   5300     _flag_k = FK_ADD;
   5301     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5302     eax = 0; /* 0x4200A0D6: xor eax, eax */
   5303     _cf = 0;
   5304     _flag_k = FK_TEST;
   5305     MEM32(esi + 0x4) = eax; /* 0x4200A0D8: mov dword ptr [esi + 4], eax */
   5306     MEM32(esi + 0x8) = eax; /* 0x4200A0DB: mov dword ptr [esi + 8], eax */
   5307     MEM32(esi + 0xC) = eax; /* 0x4200A0DE: mov dword ptr [esi + 0xc], eax */
   5308     esi = POP32_VAL(esp); /* 0x4200A0E1: pop esi */
   5309     esp = ebp; /* 0x4200A0E2: mov esp, ebp */
   5310     ebp = POP32_VAL(esp); /* 0x4200A0E4: pop ebp */
   5311     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200A0E5: ret  */
   5312 L_420173A1:
   5313     ecx = MEM32(ebp + 0xC); /* 0x420173A1: mov ecx, dword ptr [ebp + 0xc] */
   5314     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   5315     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5316     ecx = ecx + 4; /* 0x420173A4: add ecx, 4 */
   5317     _flag_k = FK_ADD;
   5318     RECOMP_BACKEDGE();
   5319     goto L_4200A0C0; /* 0x420173A7: jmp 0x4200a0c0 */
   5320     { RECOMP_REGS_OUT(); return; } /* end of function */
   5321     RECOMP_REGS_OUT();
   5322 }
   5323 
   5324 void sub_420173AC(void) {
   5325     int _fpu_cmp = 0;
   5326     uint32_t _cf = 0;
   5327     int _df = 1;
   5328     uint32_t _flag_k = FK_NONE;
   5329     uint32_t _flag_a = 0, _flag_b = 0;
   5330     uint32_t _itail_tgt = 0;
   5331     RECOMP_REGS_LOCALS
   5332     RECOMP_ENTER(0x420173ACu);
   5333 
   5334     goto L_420173AC;
   5335 L_4200A0C0:
   5336     PUSH32(esp, ebp); /* 0x4200A0C0: push ebp */
   5337     ebp = esp; /* 0x4200A0C1: mov ebp, esp */
   5338     PUSH32(esp, ecx); /* 0x4200A0C3: push ecx */
   5339     PUSH32(esp, esi); /* 0x4200A0C4: push esi */
   5340     esi = ecx; /* 0x4200A0C5: mov esi, ecx */
   5341     eax = MEM32(esi + 0x4); /* 0x4200A0C7: mov eax, dword ptr [esi + 4] */
   5342     PUSH32(esp, eax); /* 0x4200A0CA: push eax */
   5343     MEM32(ebp + (-0x4)) = eax; /* 0x4200A0CB: mov dword ptr [ebp - 4], eax */
   5344     RECOMP_ICALL(0x42016DD0u); /* 0x4200A0CE: call 0x42016dd0 */ /* not lifted */
   5345     RECOMP_FLAGS_IN();
   5346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5348     esp = esp + 4; /* 0x4200A0D3: add esp, 4 */
   5349     _flag_k = FK_ADD;
   5350     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5351     eax = 0; /* 0x4200A0D6: xor eax, eax */
   5352     _cf = 0;
   5353     _flag_k = FK_TEST;
   5354     MEM32(esi + 0x4) = eax; /* 0x4200A0D8: mov dword ptr [esi + 4], eax */
   5355     MEM32(esi + 0x8) = eax; /* 0x4200A0DB: mov dword ptr [esi + 8], eax */
   5356     MEM32(esi + 0xC) = eax; /* 0x4200A0DE: mov dword ptr [esi + 0xc], eax */
   5357     esi = POP32_VAL(esp); /* 0x4200A0E1: pop esi */
   5358     esp = ebp; /* 0x4200A0E2: mov esp, ebp */
   5359     ebp = POP32_VAL(esp); /* 0x4200A0E4: pop ebp */
   5360     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200A0E5: ret  */
   5361 L_420173AC:
   5362     ecx = MEM32(ebp + 0xC); /* 0x420173AC: mov ecx, dword ptr [ebp + 0xc] */
   5363     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
   5364     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5365     ecx = ecx + 0x14u; /* 0x420173AF: add ecx, 0x14 */
   5366     _flag_k = FK_ADD;
   5367     RECOMP_BACKEDGE();
   5368     goto L_4200A0C0; /* 0x420173B2: jmp 0x4200a0c0 */
   5369     { RECOMP_REGS_OUT(); return; } /* end of function */
   5370     RECOMP_REGS_OUT();
   5371 }
   5372 
   5373 void sub_420173B7(void) {
   5374     int _fpu_cmp = 0;
   5375     uint32_t _cf = 0;
   5376     int _df = 1;
   5377     uint32_t _flag_k = FK_NONE;
   5378     uint32_t _flag_a = 0, _flag_b = 0;
   5379     uint32_t _itail_tgt = 0;
   5380     RECOMP_REGS_LOCALS
   5381     RECOMP_ENTER(0x420173B7u);
   5382 
   5383     goto L_420173B7;
   5384 L_4200A0C0:
   5385     PUSH32(esp, ebp); /* 0x4200A0C0: push ebp */
   5386     ebp = esp; /* 0x4200A0C1: mov ebp, esp */
   5387     PUSH32(esp, ecx); /* 0x4200A0C3: push ecx */
   5388     PUSH32(esp, esi); /* 0x4200A0C4: push esi */
   5389     esi = ecx; /* 0x4200A0C5: mov esi, ecx */
   5390     eax = MEM32(esi + 0x4); /* 0x4200A0C7: mov eax, dword ptr [esi + 4] */
   5391     PUSH32(esp, eax); /* 0x4200A0CA: push eax */
   5392     MEM32(ebp + (-0x4)) = eax; /* 0x4200A0CB: mov dword ptr [ebp - 4], eax */
   5393     RECOMP_ICALL(0x42016DD0u); /* 0x4200A0CE: call 0x42016dd0 */ /* not lifted */
   5394     RECOMP_FLAGS_IN();
   5395     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5396     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5397     esp = esp + 4; /* 0x4200A0D3: add esp, 4 */
   5398     _flag_k = FK_ADD;
   5399     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5400     eax = 0; /* 0x4200A0D6: xor eax, eax */
   5401     _cf = 0;
   5402     _flag_k = FK_TEST;
   5403     MEM32(esi + 0x4) = eax; /* 0x4200A0D8: mov dword ptr [esi + 4], eax */
   5404     MEM32(esi + 0x8) = eax; /* 0x4200A0DB: mov dword ptr [esi + 8], eax */
   5405     MEM32(esi + 0xC) = eax; /* 0x4200A0DE: mov dword ptr [esi + 0xc], eax */
   5406     esi = POP32_VAL(esp); /* 0x4200A0E1: pop esi */
   5407     esp = ebp; /* 0x4200A0E2: mov esp, ebp */
   5408     ebp = POP32_VAL(esp); /* 0x4200A0E4: pop ebp */
   5409     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200A0E5: ret  */
   5410 L_420173B7:
   5411     ecx = MEM32(ebp + (-0x10)); /* 0x420173B7: mov ecx, dword ptr [ebp - 0x10] */
   5412     RECOMP_BACKEDGE();
   5413     goto L_4200A0C0; /* 0x420173BA: jmp 0x4200a0c0 */
   5414     { RECOMP_REGS_OUT(); return; } /* end of function */
   5415     RECOMP_REGS_OUT();
   5416 }
   5417 
   5418 void sub_420173BF(void) {
   5419     int _fpu_cmp = 0;
   5420     uint32_t _cf = 0;
   5421     int _df = 1;
   5422     uint32_t _flag_k = FK_NONE;
   5423     uint32_t _flag_a = 0, _flag_b = 0;
   5424     uint32_t _itail_tgt = 0;
   5425     RECOMP_REGS_LOCALS
   5426     RECOMP_ENTER(0x420173BFu);
   5427 
   5428     goto L_420173BF;
   5429 L_42016F30:
   5430     { _itail_tgt = (uint32_t)(MEM32(0x42018048)); goto _ljump; }
   5431 L_420173BF:
   5432     eax = 0x42019690u; /* 0x420173BF: mov eax, 0x42019690 */
   5433 L_420173C4:
   5434     RECOMP_BACKEDGE();
   5435     goto L_42016F30; /* 0x420173C4: jmp 0x42016f30 */
   5436     { RECOMP_REGS_OUT(); return; } /* end of function */
   5437   _ljump:
   5438     switch (_itail_tgt) {
   5439       case 0x42016F30u: goto L_42016F30;
   5440       case 0x420173BFu: goto L_420173BF;
   5441       case 0x420173C4u: goto L_420173C4;
   5442       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5443     }
   5444     RECOMP_REGS_OUT();
   5445 }
   5446 
   5447 void sub_420173D0(void) {
   5448     int _fpu_cmp = 0;
   5449     uint32_t _cf = 0;
   5450     int _df = 1;
   5451     uint32_t _flag_k = FK_NONE;
   5452     uint32_t _flag_a = 0, _flag_b = 0;
   5453     uint32_t _itail_tgt = 0;
   5454     RECOMP_REGS_LOCALS
   5455     RECOMP_ENTER(0x420173D0u);
   5456 
   5457     goto L_420173D0;
   5458 L_42003DA0:
   5459     PUSH32(esp, ebp); /* 0x42003DA0: push ebp */
   5460     ebp = esp; /* 0x42003DA1: mov ebp, esp */
   5461     PUSH32(esp, 0xFFFFFFFFu); /* 0x42003DA3: push -1 */
   5462     PUSH32(esp, 0x420171E8u); /* 0x42003DA5: push 0x420171e8 */
   5463     eax = MEM32(FS_BASE + (0)); /* 0x42003DAA: mov eax, dword ptr fs:[0] */
   5464     PUSH32(esp, eax); /* 0x42003DB0: push eax */
   5465     MEM32(FS_BASE + (0)) = esp; /* 0x42003DB1: mov dword ptr fs:[0], esp */
   5466     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5468     esp = esp - 8; /* 0x42003DB8: sub esp, 8 */
   5469     _flag_k = FK_CMP;
   5470     PUSH32(esp, ebx); /* 0x42003DBB: push ebx */
   5471     PUSH32(esp, esi); /* 0x42003DBC: push esi */
   5472     PUSH32(esp, edi); /* 0x42003DBD: push edi */
   5473     MEM32(ebp + (-0x10)) = ecx; /* 0x42003DBE: mov dword ptr [ebp - 0x10], ecx */
   5474     MEM32(ecx) = 0x420182ECu; /* 0x42003DC1: mov dword ptr [ecx], 0x420182ec */
   5475     MEM32(ecx + 0x4) = 0x420182E4u; /* 0x42003DC7: mov dword ptr [ecx + 4], 0x420182e4 */
   5476     ebx = MEM32(ecx + 0x10); /* 0x42003DCE: mov ebx, dword ptr [ecx + 0x10] */
   5477     esi = MEM32(ebx); /* 0x42003DD1: mov esi, dword ptr [ebx] */
   5478     /* cmp esi, ebx */ /* 0x42003DD3: cmp esi, ebx */
   5479     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5481     _flag_k = FK_CMP;
   5482     edi = ecx + 0xC; /* 0x42003DD5: lea edi, [ecx + 0xc] */
   5483     MEM32(ebp + (-0x4)) = 0; /* 0x42003DD8: mov dword ptr [ebp - 4], 0 */
   5484     if (CMP_EQ(_flag_a, _flag_b)) goto L_42003DF5; /* 0x42003DDF: je 0x42003df5 */
   5485 L_42003DE1:
   5486     eax = esi; /* 0x42003DE1: mov eax, esi */
   5487     esi = MEM32(esi); /* 0x42003DE3: mov esi, dword ptr [esi] */
   5488     PUSH32(esp, eax); /* 0x42003DE5: push eax */
   5489     eax = ebp + (-0x14); /* 0x42003DE6: lea eax, [ebp - 0x14] */
   5490     PUSH32(esp, eax); /* 0x42003DE9: push eax */
   5491     ecx = edi; /* 0x42003DEA: mov ecx, edi */
   5492     RECOMP_ICALL(0x42005C70u); /* 0x42003DEC: call 0x42005c70 */ /* not lifted */
   5493     RECOMP_FLAGS_IN();
   5494     /* cmp esi, ebx */ /* 0x42003DF1: cmp esi, ebx */
   5495     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5496     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5497     _flag_k = FK_CMP;
   5498     RECOMP_BACKEDGE();
   5499     if (CMP_NE(_flag_a, _flag_b)) goto L_42003DE1; /* 0x42003DF3: jne 0x42003de1 */
   5500 L_42003DF5:
   5501     ecx = MEM32(edi + 0x4); /* 0x42003DF5: mov ecx, dword ptr [edi + 4] */
   5502     PUSH32(esp, ecx); /* 0x42003DF8: push ecx */
   5503     RECOMP_ICALL(0x42016DD0u); /* 0x42003DF9: call 0x42016dd0 */ /* not lifted */
   5504     RECOMP_FLAGS_IN();
   5505     edx = MEM32(ebp + (-0x10)); /* 0x42003DFE: mov edx, dword ptr [ebp - 0x10] */
   5506     ecx = MEM32(ebp + (-0xC)); /* 0x42003E01: mov ecx, dword ptr [ebp - 0xc] */
   5507     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5508     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5509     esp = esp + 4; /* 0x42003E04: add esp, 4 */
   5510     _flag_k = FK_ADD;
   5511     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5512     eax = 0; /* 0x42003E07: xor eax, eax */
   5513     _cf = 0;
   5514     _flag_k = FK_TEST;
   5515     MEM32(edi + 0x4) = eax; /* 0x42003E09: mov dword ptr [edi + 4], eax */
   5516     MEM32(edi + 0x8) = eax; /* 0x42003E0C: mov dword ptr [edi + 8], eax */
   5517     edi = POP32_VAL(esp); /* 0x42003E0F: pop edi */
   5518     esi = POP32_VAL(esp); /* 0x42003E10: pop esi */
   5519     MEM32(edx) = 0x4201822Cu; /* 0x42003E11: mov dword ptr [edx], 0x4201822c */
   5520     ebx = POP32_VAL(esp); /* 0x42003E17: pop ebx */
   5521     MEM32(FS_BASE + (0)) = ecx; /* 0x42003E18: mov dword ptr fs:[0], ecx */
   5522     esp = ebp; /* 0x42003E1F: mov esp, ebp */
   5523     ebp = POP32_VAL(esp); /* 0x42003E21: pop ebp */
   5524     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42003E22: ret  */
   5525 L_420173D0:
   5526     ecx = MEM32(ebp + (-0x10)); /* 0x420173D0: mov ecx, dword ptr [ebp - 0x10] */
   5527     RECOMP_BACKEDGE();
   5528     goto L_42003DA0; /* 0x420173D3: jmp 0x42003da0 */
   5529     { RECOMP_REGS_OUT(); return; } /* end of function */
   5530     RECOMP_REGS_OUT();
   5531 }