aorecomp

Anarchy Online classic in the browser

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


client/game/llr.dll/lifted-0020.c (1839854B)


      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_380312C0(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(0x380312C0u);
     17 
     18     goto L_380312C0;
     19 L_38030E4E:
     20     ecx = MEM32(esi + 0x80); /* 0x38030E4E: mov ecx, dword ptr [esi + 0x80] */
     21 L_38030E54:
     22     edi = MEM32(ebp + 0xC); /* 0x38030E54: mov edi, dword ptr [ebp + 0xc] */
     23 L_38030E57:
     24     eax = ecx + eax * 4; /* 0x38030E57: lea eax, [ecx + eax*4] */
     25 L_38030E5A:
     26     ecx = (int32_t)(int16_t)MEM16(eax); /* 0x38030E5A: movsx ecx, word ptr [eax] */
     27 L_38030E5D:
     28     /* cmp ecx, edi */ /* 0x38030E5D: cmp ecx, edi */
     29     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
     30     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     31     _flag_k = FK_CMP;
     32 L_38030E5F:
     33     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E5F: je 0x380316b7 */
     34 L_38030E65:
     35     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x38030E65: cmp ecx, dword ptr [esi + 0xc] */
     36     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
     37     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     38     _flag_k = FK_CMP;
     39 L_38030E68:
     40     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E68: je 0x380316b7 */
     41 L_38030E6E:
     42     ecx = MEM32(esi + 0xB0); /* 0x38030E6E: mov ecx, dword ptr [esi + 0xb0] */
     43 L_38030E74:
     44     /* cmp ecx, ebx */ /* 0x38030E74: cmp ecx, ebx */
     45     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
     46     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     47     _flag_k = FK_CMP;
     48 L_38030E76:
     49     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E76: je 0x380316b7 */
     50 L_38030E7C:
     51     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x38030E7C: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
     52     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
     53     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     54     _flag_k = FK_CMP;
     55 L_38030E84:
     56     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380310BB; /* 0x38030E84: je 0x380310bb */
     57 L_38030E8A:
     58     edx = MEM32(esi + 0x44); /* 0x38030E8A: mov edx, dword ptr [esi + 0x44] */
     59 L_38030E8D:
     60     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x38030E8D: mov ax, word ptr [eax + 2] */
     61 L_38030E91:
     62     MEM32(ebp + (-0xE4)) = edx; /* 0x38030E91: mov dword ptr [ebp - 0xe4], edx */
     63 L_38030E97:
     64     MEM32(ebp + (-0xE0)) = ebx; /* 0x38030E97: mov dword ptr [ebp - 0xe0], ebx */
     65 L_38030E9D:
     66     fp_push_i64((int64_t)MEM64(ebp + (-0xE4))); /* 0x38030E9D: fild qword ptr [ebp - 0xe4] */
     67 L_38030EA3:
     68     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38030EA3: fmul dword ptr [0x3804eac0] */
     69 L_38030EA9:
     70     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
     71     eax = eax & 3; /* 0x38030EA9: and eax, 3 */
     72     _cf = 0;
     73     _flag_k = FK_TEST;
     74 L_38030EAC:
     75     MEM32(ebp + (-0x14)) = eax; /* 0x38030EAC: mov dword ptr [ebp - 0x14], eax */
     76 L_38030EAF:
     77     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030EAF: fcom dword ptr [0x3804e8e4] */
     78 L_38030EB5:
     79     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EB5: fnstsw ax */
     80 L_38030EB7:
     81     /* test HI8(eax), 1 */ /* 0x38030EB7: test ah, 1 */
     82     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
     83     _cf = 0;
     84     _flag_k = FK_NARROW(FK_TEST, 24);
     85 L_38030EBA:
     86     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030ED1; /* 0x38030EBA: jne 0x38030ed1 */
     87 L_38030EBC:
     88     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030EBC: fcom qword ptr [0x3804e8f8] */
     89 L_38030EC2:
     90     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EC2: fnstsw ax */
     91 L_38030EC4:
     92     /* test HI8(eax), 1 */ /* 0x38030EC4: test ah, 1 */
     93     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
     94     _cf = 0;
     95     _flag_k = FK_NARROW(FK_TEST, 24);
     96 L_38030EC7:
     97     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030ED1; /* 0x38030EC7: je 0x38030ed1 */
     98 L_38030EC9:
     99     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030EC9: fmul dword ptr [0x3804e8bc] */
    100 L_38030ECF:
    101     goto L_38030EF2; /* 0x38030ECF: jmp 0x38030ef2 */
    102 L_38030ED1:
    103     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030ED1: fmul dword ptr [0x3804e8f4] */
    104 L_38030ED7:
    105     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    107     esp = esp - 8; /* 0x38030ED7: sub esp, 8 */
    108     _flag_k = FK_CMP;
    109 L_38030EDA:
    110     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EDA: fst dword ptr [ebp - 0x10] */
    111 L_38030EDD:
    112     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030EDD: fstp qword ptr [esp] */
    113 L_38030EE0:
    114     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030EE0: call dword ptr [0x3804e0ac] */
    115     RECOMP_FLAGS_IN();
    116 L_38030EE6:
    117     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030EE6: fsubr dword ptr [ebp - 0x10] */
    118 L_38030EE9:
    119     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    120     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    121     esp = esp + 8; /* 0x38030EE9: add esp, 8 */
    122     _flag_k = FK_ADD;
    123 L_38030EEC:
    124     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030EEC: fmul dword ptr [0x3804e8f0] */
    125 L_38030EF2:
    126     fp_push(_st[0]); /* 0x38030EF2: fld st(0) */
    127 L_38030EF4:
    128     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030EF4: fsin  */
    129 L_38030EF6:
    130     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030EF6: fld dword ptr [0x3804e8e4] */
    131 L_38030EFC:
    132     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EFC: fst dword ptr [ebp - 0x10] */
    133 L_38030EFF:
    134     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38030EFF: fstp dword ptr [ebp - 0x74] */
    135 L_38030F02:
    136     eax = MEM32(ebp + (-0x10)); /* 0x38030F02: mov eax, dword ptr [ebp - 0x10] */
    137 L_38030F05:
    138     MEM32(ebp + (-0x6C)) = eax; /* 0x38030F05: mov dword ptr [ebp - 0x6c], eax */
    139 L_38030F08:
    140     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x38030F08: fstp dword ptr [ebp - 0x70] */
    141 L_38030F0B:
    142     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F0B: fcos  */
    143 L_38030F0D:
    144     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38030F0D: fstp dword ptr [ebp - 0x68] */
    145 L_38030F10:
    146     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38030F10: fild dword ptr [ebp - 0x14] */
    147 L_38030F13:
    148     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38030F13: fmul qword ptr [0x3804f6a0] */
    149 L_38030F19:
    150     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38030F19: fadd qword ptr [0x3804f698] */
    151 L_38030F1F:
    152     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030F1F: fcom dword ptr [0x3804e8e4] */
    153 L_38030F25:
    154     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F25: fnstsw ax */
    155 L_38030F27:
    156     /* test HI8(eax), 1 */ /* 0x38030F27: test ah, 1 */
    157     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    158     _cf = 0;
    159     _flag_k = FK_NARROW(FK_TEST, 24);
    160 L_38030F2A:
    161     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030F41; /* 0x38030F2A: jne 0x38030f41 */
    162 L_38030F2C:
    163     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030F2C: fcom qword ptr [0x3804e8f8] */
    164 L_38030F32:
    165     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F32: fnstsw ax */
    166 L_38030F34:
    167     /* test HI8(eax), 1 */ /* 0x38030F34: test ah, 1 */
    168     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    169     _cf = 0;
    170     _flag_k = FK_NARROW(FK_TEST, 24);
    171 L_38030F37:
    172     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030F41; /* 0x38030F37: je 0x38030f41 */
    173 L_38030F39:
    174     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030F39: fmul dword ptr [0x3804e8bc] */
    175 L_38030F3F:
    176     goto L_38030F62; /* 0x38030F3F: jmp 0x38030f62 */
    177 L_38030F41:
    178     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030F41: fmul dword ptr [0x3804e8f4] */
    179 L_38030F47:
    180     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    182     esp = esp - 8; /* 0x38030F47: sub esp, 8 */
    183     _flag_k = FK_CMP;
    184 L_38030F4A:
    185     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030F4A: fst dword ptr [ebp - 0x10] */
    186 L_38030F4D:
    187     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030F4D: fstp qword ptr [esp] */
    188 L_38030F50:
    189     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030F50: call dword ptr [0x3804e0ac] */
    190     RECOMP_FLAGS_IN();
    191 L_38030F56:
    192     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030F56: fsubr dword ptr [ebp - 0x10] */
    193 L_38030F59:
    194     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    196     esp = esp + 8; /* 0x38030F59: add esp, 8 */
    197     _flag_k = FK_ADD;
    198 L_38030F5C:
    199     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030F5C: fmul dword ptr [0x3804e8f0] */
    200 L_38030F62:
    201     fp_push(_st[0]); /* 0x38030F62: fld st(0) */
    202 L_38030F64:
    203     PUSH32(esp, 0x3806CB10u); /* 0x38030F64: push 0x3806cb10 */
    204 L_38030F69:
    205     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030F69: fsin  */
    206 L_38030F6B:
    207     PUSH32(esp, 0x000F6951u); /* 0x38030F6B: push 0xf6951 */
    208 L_38030F70:
    209     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030F70: fld dword ptr [0x3804e8e4] */
    210 L_38030F76:
    211     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030F76: fst dword ptr [ebp - 0x14] */
    212 L_38030F79:
    213     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38030F79: fstp dword ptr [ebp - 0x64] */
    214 L_38030F7C:
    215     ecx = MEM32(ebp + (-0x14)); /* 0x38030F7C: mov ecx, dword ptr [ebp - 0x14] */
    216 L_38030F7F:
    217     MEM32(ebp + (-0x5C)) = ecx; /* 0x38030F7F: mov dword ptr [ebp - 0x5c], ecx */
    218 L_38030F82:
    219     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x38030F82: fstp dword ptr [ebp - 0x60] */
    220 L_38030F85:
    221     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F85: fcos  */
    222 L_38030F87:
    223     fp_push(_st[0]); /* 0x38030F87: fld st(0) */
    224 L_38030F89:
    225     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030F89: fmul dword ptr [ebp - 0x74] */
    226 L_38030F8C:
    227     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030F8C: fld dword ptr [ebp - 0x5c] */
    228 L_38030F8F:
    229     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030F8F: fmul dword ptr [ebp - 0x70] */
    230 L_38030F92:
    231     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030F92: faddp st(1) */
    232 L_38030F94:
    233     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030F94: fld dword ptr [ebp - 0x60] */
    234 L_38030F97:
    235     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030F97: fmul dword ptr [ebp - 0x6c] */
    236 L_38030F9A:
    237     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030F9A: fsubp st(1) */
    238 L_38030F9C:
    239     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x38030F9C: fld dword ptr [ebp - 0x68] */
    240 L_38030F9F:
    241     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030F9F: fmul dword ptr [ebp - 0x64] */
    242 L_38030FA2:
    243     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FA2: faddp st(1) */
    244 L_38030FA4:
    245     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FA4: fld dword ptr [ebp - 0x60] */
    246 L_38030FA7:
    247     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FA7: fmul dword ptr [ebp - 0x68] */
    248 L_38030FAA:
    249     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FAA: fld dword ptr [ebp - 0x5c] */
    250 L_38030FAD:
    251     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FAD: fmul dword ptr [ebp - 0x74] */
    252 L_38030FB0:
    253     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FB0: fsubp st(1) */
    254 L_38030FB2:
    255     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x38030FB2: fld dword ptr [ebp - 0x6c] */
    256 L_38030FB5:
    257     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FB5: fmul dword ptr [ebp - 0x64] */
    258 L_38030FB8:
    259     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FB8: faddp st(1) */
    260 L_38030FBA:
    261     fp_push(_st[2]); /* 0x38030FBA: fld st(2) */
    262 L_38030FBC:
    263     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030FBC: fmul dword ptr [ebp - 0x70] */
    264 L_38030FBF:
    265     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FBF: faddp st(1) */
    266 L_38030FC1:
    267     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030FC1: fstp dword ptr [ebp - 0x14] */
    268 L_38030FC4:
    269     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FC4: fld dword ptr [ebp - 0x60] */
    270 L_38030FC7:
    271     edx = MEM32(ebp + (-0x14)); /* 0x38030FC7: mov edx, dword ptr [ebp - 0x14] */
    272 L_38030FCA:
    273     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FCA: fmul dword ptr [ebp - 0x74] */
    274 L_38030FCD:
    275     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x38030FCD: fld dword ptr [ebp - 0x70] */
    276 L_38030FD0:
    277     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FD0: fmul dword ptr [ebp - 0x64] */
    278 L_38030FD3:
    279     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FD3: fsubp st(1) */
    280 L_38030FD5:
    281     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FD5: fld dword ptr [ebp - 0x5c] */
    282 L_38030FD8:
    283     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FD8: fmul dword ptr [ebp - 0x68] */
    284 L_38030FDB:
    285     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FDB: faddp st(1) */
    286 L_38030FDD:
    287     fp_push(_st[2]); /* 0x38030FDD: fld st(2) */
    288 L_38030FDF:
    289     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FDF: fmul dword ptr [ebp - 0x6c] */
    290 L_38030FE2:
    291     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FE2: faddp st(1) */
    292 L_38030FE4:
    293     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030FE4: fstp dword ptr [ebp - 0x10] */
    294 L_38030FE7:
    295     eax = MEM32(ebp + (-0x10)); /* 0x38030FE7: mov eax, dword ptr [ebp - 0x10] */
    296 L_38030FEA:
    297     fp_xch(1); /* 0x38030FEA: fxch st(1) */
    298 L_38030FEC:
    299     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FEC: fmul dword ptr [ebp - 0x68] */
    300 L_38030FEF:
    301     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x38030FEF: fld dword ptr [ebp - 0x64] */
    302 L_38030FF2:
    303     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FF2: fmul dword ptr [ebp - 0x74] */
    304 L_38030FF5:
    305     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FF5: fld dword ptr [ebp - 0x5c] */
    306 L_38030FF8:
    307     MEM32(ebp + (-0x5C)) = eax; /* 0x38030FF8: mov dword ptr [ebp - 0x5c], eax */
    308 L_38030FFB:
    309     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FFB: fmul dword ptr [ebp - 0x6c] */
    310 L_38030FFE:
    311     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FFE: faddp st(1) */
    312 L_38031000:
    313     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38031000: fld dword ptr [ebp - 0x60] */
    314 L_38031003:
    315     MEM32(ebp + (-0x60)) = edx; /* 0x38031003: mov dword ptr [ebp - 0x60], edx */
    316 L_38031006:
    317     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38031006: fmul dword ptr [ebp - 0x70] */
    318 L_38031009:
    319     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031009: faddp st(1) */
    320 L_3803100B:
    321     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803100B: fsubp st(1) */
    322 L_3803100D:
    323     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3803100D: fstp dword ptr [ebp - 0x58] */
    324 L_38031010:
    325     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38031010: fstp dword ptr [ebp - 0x64] */
    326 L_38031013:
    327     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x38031013: call dword ptr [0x3804e4b0] */
    328     RECOMP_FLAGS_IN();
    329 L_38031019:
    330     edi = eax; /* 0x38031019: mov edi, eax */
    331 L_3803101B:
    332     eax = MEM32(esi + 0x98); /* 0x3803101B: mov eax, dword ptr [esi + 0x98] */
    333 L_38031021:
    334     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    336     esp = esp + 8; /* 0x38031021: add esp, 8 */
    337     _flag_k = FK_ADD;
    338 L_38031024:
    339     /* cmp eax, ebx */ /* 0x38031024: cmp eax, ebx */
    340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    342     _flag_k = FK_CMP;
    343 L_38031026:
    344     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803104E; /* 0x38031026: jne 0x3803104e */
    345 L_38031028:
    346     PUSH32(esp, 0x10u); /* 0x38031028: push 0x10 */
    347 L_3803102A:
    348     RECOMP_ICALL(0x3804B676u); /* 0x3803102A: call 0x3804b676 */ /* not lifted */
    349     RECOMP_FLAGS_IN();
    350 L_3803102F:
    351     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    352     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    353     esp = esp + 4; /* 0x3803102F: add esp, 4 */
    354     _flag_k = FK_ADD;
    355 L_38031032:
    356     /* cmp eax, ebx */ /* 0x38031032: cmp eax, ebx */
    357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    359     _flag_k = FK_CMP;
    360 L_38031034:
    361     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031046; /* 0x38031034: je 0x38031046 */
    362 L_38031036:
    363     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031036: mov cl, byte ptr [ebp + 0xb] */
    364 L_38031039:
    365     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031039: mov byte ptr [eax], cl */
    366 L_3803103B:
    367     MEM32(eax + 0x4) = ebx; /* 0x3803103B: mov dword ptr [eax + 4], ebx */
    368 L_3803103E:
    369     MEM32(eax + 0x8) = ebx; /* 0x3803103E: mov dword ptr [eax + 8], ebx */
    370 L_38031041:
    371     MEM32(eax + 0xC) = ebx; /* 0x38031041: mov dword ptr [eax + 0xc], ebx */
    372 L_38031044:
    373     goto L_38031048; /* 0x38031044: jmp 0x38031048 */
    374 L_38031046:
    375     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    376     eax = 0; /* 0x38031046: xor eax, eax */
    377     _cf = 0;
    378     _flag_k = FK_TEST;
    379 L_38031048:
    380     MEM32(esi + 0x98) = eax; /* 0x38031048: mov dword ptr [esi + 0x98], eax */
    381 L_3803104E:
    382     PUSH32(esp, 0x58u); /* 0x3803104E: push 0x58 */
    383 L_38031050:
    384     RECOMP_ICALL(0x3804B676u); /* 0x38031050: call 0x3804b676 */ /* not lifted */
    385     RECOMP_FLAGS_IN();
    386 L_38031055:
    387     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    388     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    389     esp = esp + 4; /* 0x38031055: add esp, 4 */
    390     _flag_k = FK_ADD;
    391 L_38031058:
    392     MEM32(ebp + (-0x24)) = eax; /* 0x38031058: mov dword ptr [ebp - 0x24], eax */
    393 L_3803105B:
    394     /* cmp eax, ebx */ /* 0x3803105B: cmp eax, ebx */
    395     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    397     _flag_k = FK_CMP;
    398 L_3803105D:
    399     MEM32(ebp + (-0x4)) = ebx; /* 0x3803105D: mov dword ptr [ebp - 4], ebx */
    400 L_38031060:
    401     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031094; /* 0x38031060: je 0x38031094 */
    402 L_38031062:
    403     ecx = MEM32(ebp + (-0x78)); /* 0x38031062: mov ecx, dword ptr [ebp - 0x78] */
    404 L_38031065:
    405     edx = MEM32(esi + 0xB0); /* 0x38031065: mov edx, dword ptr [esi + 0xb0] */
    406 L_3803106B:
    407     fp_push(*(float*)&MEM32(edx + ecx + 0xC)); /* 0x3803106B: fld dword ptr [edx + ecx + 0xc] */
    408 L_3803106F:
    409     PUSH32(esp, ebx); /* 0x3803106F: push ebx */
    410 L_38031070:
    411     _st[0] *= (double)*(float*)ADDR(0x3804F694); /* 0x38031070: fmul dword ptr [0x3804f694] */
    412 L_38031076:
    413     PUSH32(esp, ebx); /* 0x38031076: push ebx */
    414 L_38031077:
    415     PUSH32(esp, ebx); /* 0x38031077: push ebx */
    416 L_38031078:
    417     PUSH32(esp, ebx); /* 0x38031078: push ebx */
    418 L_38031079:
    419     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    420     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    421     edx = edx + ecx; /* 0x38031079: add edx, ecx */
    422     _flag_k = FK_ADD;
    423 L_3803107B:
    424     PUSH32(esp, ebx); /* 0x3803107B: push ebx */
    425 L_3803107C:
    426     PUSH32(esp, edi); /* 0x3803107C: push edi */
    427 L_3803107D:
    428     PUSH32(esp, ecx); /* 0x3803107D: push ecx */
    429 L_3803107E:
    430     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3803107E: fstp dword ptr [esp] */
    431 L_38031081:
    432     PUSH32(esp, 0x00FFFFFFu); /* 0x38031081: push 0xffffff */
    433 L_38031086:
    434     ecx = ebp + (-0x64); /* 0x38031086: lea ecx, [ebp - 0x64] */
    435 L_38031089:
    436     PUSH32(esp, ecx); /* 0x38031089: push ecx */
    437 L_3803108A:
    438     PUSH32(esp, edx); /* 0x3803108A: push edx */
    439 L_3803108B:
    440     ecx = eax; /* 0x3803108B: mov ecx, eax */
    441 L_3803108D:
    442     RECOMP_ICALL(0x3800B350u); /* 0x3803108D: call 0x3800b350 */ /* not lifted */
    443     RECOMP_FLAGS_IN();
    444 L_38031092:
    445     goto L_38031096; /* 0x38031092: jmp 0x38031096 */
    446 L_38031094:
    447     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    448     eax = 0; /* 0x38031094: xor eax, eax */
    449     _cf = 0;
    450     _flag_k = FK_TEST;
    451 L_38031096:
    452     ecx = MEM32(esi + 0x98); /* 0x38031096: mov ecx, dword ptr [esi + 0x98] */
    453 L_3803109C:
    454     edx = ebp + (-0xB0); /* 0x3803109C: lea edx, [ebp - 0xb0] */
    455 L_380310A2:
    456     PUSH32(esp, edx); /* 0x380310A2: push edx */
    457 L_380310A3:
    458     MEM32(ebp + (-0xB0)) = eax; /* 0x380310A3: mov dword ptr [ebp - 0xb0], eax */
    459 L_380310A9:
    460     eax = MEM32(ecx + 0x8); /* 0x380310A9: mov eax, dword ptr [ecx + 8] */
    461 L_380310AC:
    462     PUSH32(esp, 1); /* 0x380310AC: push 1 */
    463 L_380310AE:
    464     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380310AE: mov dword ptr [ebp - 4], 0xffffffff */
    465 L_380310B5:
    466     PUSH32(esp, eax); /* 0x380310B5: push eax */
    467 L_380310B6:
    468     goto L_380316B2; /* 0x380310B6: jmp 0x380316b2 */
    469 L_380310BB:
    470     /* cmp ecx, ebx */ /* 0x380310BB: cmp ecx, ebx */
    471     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    473     _flag_k = FK_CMP;
    474 L_380310BD:
    475     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x380310BD: je 0x380316b7 */
    476 L_380310C3:
    477     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x380310C3: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
    478     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
    479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    480     _flag_k = FK_CMP;
    481 L_380310CB:
    482     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_380316B7; /* 0x380310CB: jne 0x380316b7 */
    483 L_380310D1:
    484     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x380310D1: mov ax, word ptr [eax + 2] */
    485 L_380310D5:
    486     MEM32(ebp + (-0x1C)) = 0; /* 0x380310D5: mov dword ptr [ebp - 0x1c], 0 */
    487 L_380310DC:
    488     MEM32(ebp + (-0x10)) = eax; /* 0x380310DC: mov dword ptr [ebp - 0x10], eax */
    489 L_380310DF:
    490     if (2u) _cf = (((MEM16(ebp + (-0x10))) >> 1) & 1u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
    491     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x10)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    492     MEM16(ebp + (-0x10)) = (uint16_t)(MEM16(ebp + (-0x10)) >> 2u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
    493 L_380310E4:
    494     ecx = MEM32(ebp + (-0x10)); /* 0x380310E4: mov ecx, dword ptr [ebp - 0x10] */
    495 L_380310E7:
    496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
    497     eax = eax & 3; /* 0x380310E7: and eax, 3 */
    498     _cf = 0;
    499     _flag_k = FK_TEST;
    500 L_380310EA:
    501     edi = eax; /* 0x380310EA: mov edi, eax */
    502 L_380310EC:
    503     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
    504     ecx = ecx & 0xFFFFu; /* 0x380310EC: and ecx, 0xffff */
    505     _cf = 0;
    506     _flag_k = FK_TEST;
    507 L_380310F2:
    508     eax = ecx; /* 0x380310F2: mov eax, ecx */
    509 L_380310F4:
    510     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x380310F4: cdq  */
    511 L_380310F5:
    512     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x380310F5: idiv dword ptr [ebp - 0x88] */
    513       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
    514       else { eax = 0; edx = 0; } }
    515 L_380310FB:
    516     eax = ecx; /* 0x380310FB: mov eax, ecx */
    517 L_380310FD:
    518     ecx = esi + 0x6C; /* 0x380310FD: lea ecx, [esi + 0x6c] */
    519 L_38031100:
    520     MEM32(ebp + (-0x24)) = edi; /* 0x38031100: mov dword ptr [ebp - 0x24], edi */
    521 L_38031103:
    522     MEM32(ebp + (-0x14)) = edx; /* 0x38031103: mov dword ptr [ebp - 0x14], edx */
    523 L_38031106:
    524     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031106: cdq  */
    525 L_38031107:
    526     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38031107: fild dword ptr [ebp - 0x14] */
    527 L_3803110A:
    528     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x3803110A: idiv dword ptr [ebp - 0x88] */
    529       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
    530       else { eax = 0; edx = 0; } }
    531 L_38031110:
    532     /* cmp edi, 3 */ /* 0x38031110: cmp edi, 3 */
    533     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
    534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    535     _flag_k = FK_CMP;
    536 L_38031113:
    537     edx = MEM32(ecx); /* 0x38031113: mov edx, dword ptr [ecx] */
    538 L_38031115:
    539     MEM32(ebp + (-0x84)) = edx; /* 0x38031115: mov dword ptr [ebp - 0x84], edx */
    540 L_3803111B:
    541     MEM32(ebp + (-0x10)) = eax; /* 0x3803111B: mov dword ptr [ebp - 0x10], eax */
    542 L_3803111E:
    543     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3803111E: fild dword ptr [ebp - 0x10] */
    544 L_38031121:
    545     eax = MEM32(ecx + 0x4); /* 0x38031121: mov eax, dword ptr [ecx + 4] */
    546 L_38031124:
    547     ecx = MEM32(ecx + 0x8); /* 0x38031124: mov ecx, dword ptr [ecx + 8] */
    548 L_38031127:
    549     MEM32(ebp + (-0x80)) = eax; /* 0x38031127: mov dword ptr [ebp - 0x80], eax */
    550 L_3803112A:
    551     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803112A: fstp dword ptr [ebp - 0x18] */
    552 L_3803112D:
    553     MEM32(ebp + (-0x7C)) = ecx; /* 0x3803112D: mov dword ptr [ebp - 0x7c], ecx */
    554 L_38031130:
    555     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031130: fmul dword ptr [ebp - 0x44] */
    556 L_38031133:
    557     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031133: fld dword ptr [ebp - 0x18] */
    558 L_38031136:
    559     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031136: fmul dword ptr [ebp - 0x44] */
    560 L_38031139:
    561     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031139: fstp dword ptr [ebp - 0x18] */
    562 L_3803113C:
    563     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x3803113C: fld dword ptr [ebp - 0x84] */
    564 L_38031142:
    565     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031142: fmul dword ptr [ebp - 0x44] */
    566 L_38031145:
    567     fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x38031145: fld dword ptr [ebp - 0x80] */
    568 L_38031148:
    569     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031148: fmul dword ptr [ebp - 0x44] */
    570 L_3803114B:
    571     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803114B: fstp dword ptr [ebp - 0x80] */
    572 L_3803114E:
    573     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3803114E: fld dword ptr [ebp - 0x7c] */
    574 L_38031151:
    575     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031151: fmul dword ptr [ebp - 0x44] */
    576 L_38031154:
    577     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38031154: fstp dword ptr [ebp - 0x7c] */
    578 L_38031157:
    579     fp_xch(1); /* 0x38031157: fxch st(1) */
    580 L_38031159:
    581     _st[0] -= _st[1]; /* 0x38031159: fsub st(1) */
    582 L_3803115B:
    583     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3803115B: fstp dword ptr [ebp - 0x20] */
    584 L_3803115E:
    585     edx = MEM32(ebp + (-0x20)); /* 0x3803115E: mov edx, dword ptr [ebp - 0x20] */
    586 L_38031161:
    587     MEM32(ebp + (-0x30)) = edx; /* 0x38031161: mov dword ptr [ebp - 0x30], edx */
    588 L_38031164:
    589     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031164: fstp st(0) */
    590 L_38031166:
    591     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38031166: fld dword ptr [ebp - 0x1c] */
    592 L_38031169:
    593     _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x38031169: fsub dword ptr [ebp - 0x80] */
    594 L_3803116C:
    595     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803116C: fstp dword ptr [ebp - 0x1c] */
    596 L_3803116F:
    597     eax = MEM32(ebp + (-0x1C)); /* 0x3803116F: mov eax, dword ptr [ebp - 0x1c] */
    598 L_38031172:
    599     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031172: fld dword ptr [ebp - 0x18] */
    600 L_38031175:
    601     MEM32(ebp + (-0x2C)) = eax; /* 0x38031175: mov dword ptr [ebp - 0x2c], eax */
    602 L_38031178:
    603     _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x38031178: fsub dword ptr [ebp - 0x7c] */
    604 L_3803117B:
    605     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803117B: fstp dword ptr [ebp - 0x18] */
    606 L_3803117E:
    607     ecx = MEM32(ebp + (-0x18)); /* 0x3803117E: mov ecx, dword ptr [ebp - 0x18] */
    608 L_38031181:
    609     MEM32(ebp + (-0x28)) = ecx; /* 0x38031181: mov dword ptr [ebp - 0x28], ecx */
    610 L_38031184:
    611     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_380311F0; /* 0x38031184: ja 0x380311f0 */
    612 L_38031186:
    613     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x380316F8)); goto _ljump; }
    614 L_3803118D:
    615     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803118D: fld dword ptr [ebp - 0x18] */
    616 L_38031190:
    617     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031190: fadd dword ptr [0x3804f690] */
    618 L_38031196:
    619     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031196: fstp dword ptr [ebp - 0x18] */
    620 L_38031199:
    621     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031199: fld dword ptr [ebp - 0x28] */
    622 L_3803119C:
    623     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x3803119C: fadd dword ptr [0x3804f68c] */
    624 L_380311A2:
    625     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311A2: fstp dword ptr [ebp - 0x28] */
    626 L_380311A5:
    627     goto L_380311F0; /* 0x380311A5: jmp 0x380311f0 */
    628 L_380311A7:
    629     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311A7: fld dword ptr [ebp - 0x20] */
    630 L_380311AA:
    631     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380311AA: fadd dword ptr [0x3804f690] */
    632 L_380311B0:
    633     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311B0: fstp dword ptr [ebp - 0x20] */
    634 L_380311B3:
    635     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311B3: fld dword ptr [ebp - 0x30] */
    636 L_380311B6:
    637     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x380311B6: fadd dword ptr [0x3804f68c] */
    638 L_380311BC:
    639     goto L_380311ED; /* 0x380311BC: jmp 0x380311ed */
    640 L_380311BE:
    641     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380311BE: fld dword ptr [ebp - 0x18] */
    642 L_380311C1:
    643     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311C1: fsub dword ptr [0x3804f690] */
    644 L_380311C7:
    645     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380311C7: fstp dword ptr [ebp - 0x18] */
    646 L_380311CA:
    647     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380311CA: fld dword ptr [ebp - 0x28] */
    648 L_380311CD:
    649     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311CD: fsub dword ptr [0x3804f68c] */
    650 L_380311D3:
    651     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311D3: fstp dword ptr [ebp - 0x28] */
    652 L_380311D6:
    653     goto L_380311F0; /* 0x380311D6: jmp 0x380311f0 */
    654 L_380311D8:
    655     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311D8: fld dword ptr [ebp - 0x20] */
    656 L_380311DB:
    657     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311DB: fsub dword ptr [0x3804f690] */
    658 L_380311E1:
    659     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311E1: fstp dword ptr [ebp - 0x20] */
    660 L_380311E4:
    661     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311E4: fld dword ptr [ebp - 0x30] */
    662 L_380311E7:
    663     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311E7: fsub dword ptr [0x3804f68c] */
    664 L_380311ED:
    665     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380311ED: fstp dword ptr [ebp - 0x30] */
    666 L_380311F0:
    667     edx = MEM32(esi + 0x44); /* 0x380311F0: mov edx, dword ptr [esi + 0x44] */
    668 L_380311F3:
    669     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    670     ebx = 0; /* 0x380311F3: xor ebx, ebx */
    671     _cf = 0;
    672     _flag_k = FK_TEST;
    673 L_380311F5:
    674     MEM32(ebp + (-0xDC)) = edx; /* 0x380311F5: mov dword ptr [ebp - 0xdc], edx */
    675 L_380311FB:
    676     MEM32(ebp + (-0xD8)) = ebx; /* 0x380311FB: mov dword ptr [ebp - 0xd8], ebx */
    677 L_38031201:
    678     fp_push_i64((int64_t)MEM64(ebp + (-0xDC))); /* 0x38031201: fild qword ptr [ebp - 0xdc] */
    679 L_38031207:
    680     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031207: fmul dword ptr [0x3804eac0] */
    681 L_3803120D:
    682     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803120D: fcom dword ptr [0x3804e8e4] */
    683 L_38031213:
    684     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031213: fnstsw ax */
    685 L_38031215:
    686     /* test HI8(eax), 1 */ /* 0x38031215: test ah, 1 */
    687     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    688     _cf = 0;
    689     _flag_k = FK_NARROW(FK_TEST, 24);
    690 L_38031218:
    691     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803122F; /* 0x38031218: jne 0x3803122f */
    692 L_3803121A:
    693     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803121A: fcom qword ptr [0x3804e8f8] */
    694 L_38031220:
    695     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031220: fnstsw ax */
    696 L_38031222:
    697     /* test HI8(eax), 1 */ /* 0x38031222: test ah, 1 */
    698     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    699     _cf = 0;
    700     _flag_k = FK_NARROW(FK_TEST, 24);
    701 L_38031225:
    702     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803122F; /* 0x38031225: je 0x3803122f */
    703 L_38031227:
    704     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031227: fmul dword ptr [0x3804e8bc] */
    705 L_3803122D:
    706     goto L_38031250; /* 0x3803122D: jmp 0x38031250 */
    707 L_3803122F:
    708     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803122F: fmul dword ptr [0x3804e8f4] */
    709 L_38031235:
    710     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    712     esp = esp - 8; /* 0x38031235: sub esp, 8 */
    713     _flag_k = FK_CMP;
    714 L_38031238:
    715     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031238: fst dword ptr [ebp - 0x10] */
    716 L_3803123B:
    717     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3803123B: fstp qword ptr [esp] */
    718 L_3803123E:
    719     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3803123E: call dword ptr [0x3804e0ac] */
    720     RECOMP_FLAGS_IN();
    721 L_38031244:
    722     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38031244: fsubr dword ptr [ebp - 0x10] */
    723 L_38031247:
    724     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    725     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    726     esp = esp + 8; /* 0x38031247: add esp, 8 */
    727     _flag_k = FK_ADD;
    728 L_3803124A:
    729     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3803124A: fmul dword ptr [0x3804e8f0] */
    730 L_38031250:
    731     fp_push(_st[0]); /* 0x38031250: fld st(0) */
    732 L_38031252:
    733     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031252: fsin  */
    734 L_38031254:
    735     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031254: fld dword ptr [0x3804e8e4] */
    736 L_3803125A:
    737     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803125A: fst dword ptr [ebp - 0x14] */
    738 L_3803125D:
    739     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3803125D: fstp dword ptr [ebp - 0x40] */
    740 L_38031260:
    741     eax = MEM32(ebp + (-0x14)); /* 0x38031260: mov eax, dword ptr [ebp - 0x14] */
    742 L_38031263:
    743     MEM32(ebp + (-0x38)) = eax; /* 0x38031263: mov dword ptr [ebp - 0x38], eax */
    744 L_38031266:
    745     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x38031266: fstp dword ptr [ebp - 0x3c] */
    746 L_38031269:
    747     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031269: fcos  */
    748 L_3803126B:
    749     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3803126B: fstp dword ptr [ebp - 0x34] */
    750 L_3803126E:
    751     fp_push((double)(int32_t)MEM32(ebp + (-0x24))); /* 0x3803126E: fild dword ptr [ebp - 0x24] */
    752 L_38031271:
    753     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38031271: fmul qword ptr [0x3804f6a0] */
    754 L_38031277:
    755     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38031277: fadd qword ptr [0x3804f698] */
    756 L_3803127D:
    757     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803127D: fcom dword ptr [0x3804e8e4] */
    758 L_38031283:
    759     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031283: fnstsw ax */
    760 L_38031285:
    761     /* test HI8(eax), 1 */ /* 0x38031285: test ah, 1 */
    762     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    763     _cf = 0;
    764     _flag_k = FK_NARROW(FK_TEST, 24);
    765 L_38031288:
    766     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803129F; /* 0x38031288: jne 0x3803129f */
    767 L_3803128A:
    768     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803128A: fcom qword ptr [0x3804e8f8] */
    769 L_38031290:
    770     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031290: fnstsw ax */
    771 L_38031292:
    772     /* test HI8(eax), 1 */ /* 0x38031292: test ah, 1 */
    773     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    774     _cf = 0;
    775     _flag_k = FK_NARROW(FK_TEST, 24);
    776 L_38031295:
    777     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803129F; /* 0x38031295: je 0x3803129f */
    778 L_38031297:
    779     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031297: fmul dword ptr [0x3804e8bc] */
    780 L_3803129D:
    781     goto L_380312C0; /* 0x3803129D: jmp 0x380312c0 */
    782 L_3803129F:
    783     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803129F: fmul dword ptr [0x3804e8f4] */
    784 L_380312A5:
    785     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    787     esp = esp - 8; /* 0x380312A5: sub esp, 8 */
    788     _flag_k = FK_CMP;
    789 L_380312A8:
    790     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380312A8: fst dword ptr [ebp - 0x10] */
    791 L_380312AB:
    792     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380312AB: fstp qword ptr [esp] */
    793 L_380312AE:
    794     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380312AE: call dword ptr [0x3804e0ac] */
    795     RECOMP_FLAGS_IN();
    796 L_380312B4:
    797     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x380312B4: fsubr dword ptr [ebp - 0x10] */
    798 L_380312B7:
    799     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    800     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    801     esp = esp + 8; /* 0x380312B7: add esp, 8 */
    802     _flag_k = FK_ADD;
    803 L_380312BA:
    804     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x380312BA: fmul dword ptr [0x3804e8f0] */
    805 L_380312C0:
    806     fp_push(_st[0]); /* 0x380312C0: fld st(0) */
    807 L_380312C2:
    808     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380312C2: fsin  */
    809 L_380312C4:
    810     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380312C4: fld dword ptr [0x3804e8e4] */
    811 L_380312CA:
    812     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380312CA: fst dword ptr [ebp - 0x24] */
    813 L_380312CD:
    814     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x380312CD: fstp dword ptr [ebp - 0x54] */
    815 L_380312D0:
    816     ecx = MEM32(ebp + (-0x24)); /* 0x380312D0: mov ecx, dword ptr [ebp - 0x24] */
    817 L_380312D3:
    818     MEM32(ebp + (-0x4C)) = ecx; /* 0x380312D3: mov dword ptr [ebp - 0x4c], ecx */
    819 L_380312D6:
    820     ecx = MEM32(ebp + (-0x40)); /* 0x380312D6: mov ecx, dword ptr [ebp - 0x40] */
    821 L_380312D9:
    822     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x380312D9: fstp dword ptr [ebp - 0x50] */
    823 L_380312DC:
    824     MEM32(ebp + (-0xFC)) = ecx; /* 0x380312DC: mov dword ptr [ebp - 0xfc], ecx */
    825 L_380312E2:
    826     ecx = ebp + (-0x20); /* 0x380312E2: lea ecx, [ebp - 0x20] */
    827 L_380312E5:
    828     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380312E5: fcos  */
    829 L_380312E7:
    830     PUSH32(esp, ecx); /* 0x380312E7: push ecx */
    831 L_380312E8:
    832     ecx = ebp + (-0xFC); /* 0x380312E8: lea ecx, [ebp - 0xfc] */
    833 L_380312EE:
    834     fp_push(_st[0]); /* 0x380312EE: fld st(0) */
    835 L_380312F0:
    836     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x380312F0: fmul dword ptr [ebp - 0x40] */
    837 L_380312F3:
    838     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x380312F3: fld dword ptr [ebp - 0x4c] */
    839 L_380312F6:
    840     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x380312F6: fmul dword ptr [ebp - 0x3c] */
    841 L_380312F9:
    842     { double _v = fp_pop(); _st[0] += _v; } /* 0x380312F9: faddp st(1) */
    843 L_380312FB:
    844     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x380312FB: fld dword ptr [ebp - 0x50] */
    845 L_380312FE:
    846     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x380312FE: fmul dword ptr [ebp - 0x38] */
    847 L_38031301:
    848     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031301: fsubp st(1) */
    849 L_38031303:
    850     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031303: fld dword ptr [ebp - 0x34] */
    851 L_38031306:
    852     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031306: fmul dword ptr [ebp - 0x54] */
    853 L_38031309:
    854     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031309: faddp st(1) */
    855 L_3803130B:
    856     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803130B: fld dword ptr [ebp - 0x50] */
    857 L_3803130E:
    858     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803130E: fmul dword ptr [ebp - 0x34] */
    859 L_38031311:
    860     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38031311: fld dword ptr [ebp - 0x4c] */
    861 L_38031314:
    862     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031314: fmul dword ptr [ebp - 0x40] */
    863 L_38031317:
    864     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031317: fsubp st(1) */
    865 L_38031319:
    866     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38031319: fld dword ptr [ebp - 0x38] */
    867 L_3803131C:
    868     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3803131C: fmul dword ptr [ebp - 0x54] */
    869 L_3803131F:
    870     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803131F: faddp st(1) */
    871 L_38031321:
    872     fp_push(_st[2]); /* 0x38031321: fld st(2) */
    873 L_38031323:
    874     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031323: fmul dword ptr [ebp - 0x3c] */
    875 L_38031326:
    876     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031326: faddp st(1) */
    877 L_38031328:
    878     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38031328: fstp dword ptr [ebp - 0x24] */
    879 L_3803132B:
    880     edx = MEM32(ebp + (-0x24)); /* 0x3803132B: mov edx, dword ptr [ebp - 0x24] */
    881 L_3803132E:
    882     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803132E: fld dword ptr [ebp - 0x50] */
    883 L_38031331:
    884     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031331: fmul dword ptr [ebp - 0x40] */
    885 L_38031334:
    886     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x38031334: fld dword ptr [ebp - 0x3c] */
    887 L_38031337:
    888     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031337: fmul dword ptr [ebp - 0x54] */
    889 L_3803133A:
    890     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803133A: fsubp st(1) */
    891 L_3803133C:
    892     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803133C: fld dword ptr [ebp - 0x4c] */
    893 L_3803133F:
    894     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803133F: fmul dword ptr [ebp - 0x34] */
    895 L_38031342:
    896     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031342: faddp st(1) */
    897 L_38031344:
    898     fp_push(_st[2]); /* 0x38031344: fld st(2) */
    899 L_38031346:
    900     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031346: fmul dword ptr [ebp - 0x38] */
    901 L_38031349:
    902     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031349: faddp st(1) */
    903 L_3803134B:
    904     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803134B: fstp dword ptr [ebp - 0x14] */
    905 L_3803134E:
    906     eax = MEM32(ebp + (-0x14)); /* 0x3803134E: mov eax, dword ptr [ebp - 0x14] */
    907 L_38031351:
    908     fp_xch(1); /* 0x38031351: fxch st(1) */
    909 L_38031353:
    910     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x38031353: fmul dword ptr [ebp - 0x34] */
    911 L_38031356:
    912     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x38031356: fld dword ptr [ebp - 0x54] */
    913 L_38031359:
    914     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031359: fmul dword ptr [ebp - 0x40] */
    915 L_3803135C:
    916     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803135C: fld dword ptr [ebp - 0x4c] */
    917 L_3803135F:
    918     MEM32(ebp + (-0x4C)) = eax; /* 0x3803135F: mov dword ptr [ebp - 0x4c], eax */
    919 L_38031362:
    920     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031362: fmul dword ptr [ebp - 0x38] */
    921 L_38031365:
    922     eax = MEM32(ebp + (-0x38)); /* 0x38031365: mov eax, dword ptr [ebp - 0x38] */
    923 L_38031368:
    924     MEM32(ebp + (-0xF4)) = eax; /* 0x38031368: mov dword ptr [ebp - 0xf4], eax */
    925 L_3803136E:
    926     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803136E: faddp st(1) */
    927 L_38031370:
    928     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38031370: fld dword ptr [ebp - 0x50] */
    929 L_38031373:
    930     MEM32(ebp + (-0x50)) = edx; /* 0x38031373: mov dword ptr [ebp - 0x50], edx */
    931 L_38031376:
    932     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031376: fmul dword ptr [ebp - 0x3c] */
    933 L_38031379:
    934     edx = MEM32(ebp + (-0x3C)); /* 0x38031379: mov edx, dword ptr [ebp - 0x3c] */
    935 L_3803137C:
    936     MEM32(ebp + (-0xF8)) = edx; /* 0x3803137C: mov dword ptr [ebp - 0xf8], edx */
    937 L_38031382:
    938     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031382: faddp st(1) */
    939 L_38031384:
    940     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031384: fsubp st(1) */
    941 L_38031386:
    942     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x38031386: fstp dword ptr [ebp - 0x48] */
    943 L_38031389:
    944     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x38031389: fstp dword ptr [ebp - 0x54] */
    945 L_3803138C:
    946     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3803138C: call dword ptr [0x3804e4c8] */
    947     RECOMP_FLAGS_IN();
    948 L_38031392:
    949     edx = MEM32(eax); /* 0x38031392: mov edx, dword ptr [eax] */
    950 L_38031394:
    951     MEM32(ebp + (-0xA8)) = edx; /* 0x38031394: mov dword ptr [ebp - 0xa8], edx */
    952 L_3803139A:
    953     ecx = MEM32(eax + 0x4); /* 0x3803139A: mov ecx, dword ptr [eax + 4] */
    954 L_3803139D:
    955     MEM32(ebp + (-0xA4)) = ecx; /* 0x3803139D: mov dword ptr [ebp - 0xa4], ecx */
    956 L_380313A3:
    957     edx = MEM32(eax + 0x8); /* 0x380313A3: mov edx, dword ptr [eax + 8] */
    958 L_380313A6:
    959     eax = ebp + (-0xA8); /* 0x380313A6: lea eax, [ebp - 0xa8] */
    960 L_380313AC:
    961     PUSH32(esp, eax); /* 0x380313AC: push eax */
    962 L_380313AD:
    963     ecx = ebp + (-0x114); /* 0x380313AD: lea ecx, [ebp - 0x114] */
    964 L_380313B3:
    965     MEM32(ebp + (-0xA0)) = edx; /* 0x380313B3: mov dword ptr [ebp - 0xa0], edx */
    966 L_380313B9:
    967     PUSH32(esp, ecx); /* 0x380313B9: push ecx */
    968 L_380313BA:
    969     ecx = ebp + (-0x40); /* 0x380313BA: lea ecx, [ebp - 0x40] */
    970 L_380313BD:
    971     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380313BD: call dword ptr [0x3804e4fc] */
    972     RECOMP_FLAGS_IN();
    973 L_380313C3:
    974     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x380313C3: fld dword ptr [ebp - 0x34] */
    975 L_380313C6:
    976     edx = MEM32(eax); /* 0x380313C6: mov edx, dword ptr [eax] */
    977 L_380313C8:
    978     _st[0] += _st[0]; /* 0x380313C8: fadd st(0), st(0) */
    979 L_380313CA:
    980     MEM32(ebp + (-0xD4)) = edx; /* 0x380313CA: mov dword ptr [ebp - 0xd4], edx */
    981 L_380313D0:
    982     ecx = MEM32(eax + 0x4); /* 0x380313D0: mov ecx, dword ptr [eax + 4] */
    983 L_380313D3:
    984     MEM32(ebp + (-0xD0)) = ecx; /* 0x380313D3: mov dword ptr [ebp - 0xd0], ecx */
    985 L_380313D9:
    986     edx = MEM32(eax + 0x8); /* 0x380313D9: mov edx, dword ptr [eax + 8] */
    987 L_380313DC:
    988     PUSH32(esp, ecx); /* 0x380313DC: push ecx */
    989 L_380313DD:
    990     ecx = ebp + (-0xA8); /* 0x380313DD: lea ecx, [ebp - 0xa8] */
    991 L_380313E3:
    992     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380313E3: fstp dword ptr [esp] */
    993 L_380313E6:
    994     MEM32(ebp + (-0xCC)) = edx; /* 0x380313E6: mov dword ptr [ebp - 0xcc], edx */
    995 L_380313EC:
    996     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313EC: call dword ptr [0x3804e4d4] */
    997     RECOMP_FLAGS_IN();
    998 L_380313F2:
    999     PUSH32(esp, 0x40000000u); /* 0x380313F2: push 0x40000000 */
   1000 L_380313F7:
   1001     ecx = ebp + (-0xD4); /* 0x380313F7: lea ecx, [ebp - 0xd4] */
   1002 L_380313FD:
   1003     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313FD: call dword ptr [0x3804e4d4] */
   1004     RECOMP_FLAGS_IN();
   1005 L_38031403:
   1006     eax = ebp + (-0xA8); /* 0x38031403: lea eax, [ebp - 0xa8] */
   1007 L_38031409:
   1008     PUSH32(esp, eax); /* 0x38031409: push eax */
   1009 L_3803140A:
   1010     ecx = ebp + (-0x20); /* 0x3803140A: lea ecx, [ebp - 0x20] */
   1011 L_3803140D:
   1012     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803140D: call dword ptr [0x3804e4e8] */
   1013     RECOMP_FLAGS_IN();
   1014 L_38031413:
   1015     ecx = ebp + (-0xD4); /* 0x38031413: lea ecx, [ebp - 0xd4] */
   1016 L_38031419:
   1017     PUSH32(esp, ecx); /* 0x38031419: push ecx */
   1018 L_3803141A:
   1019     ecx = ebp + (-0x20); /* 0x3803141A: lea ecx, [ebp - 0x20] */
   1020 L_3803141D:
   1021     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803141D: call dword ptr [0x3804e4e8] */
   1022     RECOMP_FLAGS_IN();
   1023 L_38031423:
   1024     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031423: fld dword ptr [ebp - 0x20] */
   1025 L_38031426:
   1026     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x38031426: fadd dword ptr [esi + 0x54] */
   1027 L_38031429:
   1028     edx = MEM32(ebp + (-0x40)); /* 0x38031429: mov edx, dword ptr [ebp - 0x40] */
   1029 L_3803142C:
   1030     ecx = MEM32(ebp + (-0x38)); /* 0x3803142C: mov ecx, dword ptr [ebp - 0x38] */
   1031 L_3803142F:
   1032     eax = MEM32(ebp + (-0x3C)); /* 0x3803142F: mov eax, dword ptr [ebp - 0x3c] */
   1033 L_38031432:
   1034     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031432: fstp dword ptr [ebp - 0x20] */
   1035 L_38031435:
   1036     MEM32(ebp + (-0xF0)) = edx; /* 0x38031435: mov dword ptr [ebp - 0xf0], edx */
   1037 L_3803143B:
   1038     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3803143B: fld dword ptr [ebp - 0x1c] */
   1039 L_3803143E:
   1040     edx = ebp + (-0x30); /* 0x3803143E: lea edx, [ebp - 0x30] */
   1041 L_38031441:
   1042     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031441: fadd dword ptr [esi + 0x58] */
   1043 L_38031444:
   1044     MEM32(ebp + (-0xE8)) = ecx; /* 0x38031444: mov dword ptr [ebp - 0xe8], ecx */
   1045 L_3803144A:
   1046     PUSH32(esp, edx); /* 0x3803144A: push edx */
   1047 L_3803144B:
   1048     ecx = ebp + (-0xF0); /* 0x3803144B: lea ecx, [ebp - 0xf0] */
   1049 L_38031451:
   1050     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38031451: fstp dword ptr [ebp - 0x1c] */
   1051 L_38031454:
   1052     MEM32(ebp + (-0xEC)) = eax; /* 0x38031454: mov dword ptr [ebp - 0xec], eax */
   1053 L_3803145A:
   1054     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803145A: fld dword ptr [ebp - 0x18] */
   1055 L_3803145D:
   1056     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x3803145D: fadd dword ptr [esi + 0x5c] */
   1057 L_38031460:
   1058     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031460: fstp dword ptr [ebp - 0x18] */
   1059 L_38031463:
   1060     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031463: call dword ptr [0x3804e4c8] */
   1061     RECOMP_FLAGS_IN();
   1062 L_38031469:
   1063     ecx = MEM32(eax); /* 0x38031469: mov ecx, dword ptr [eax] */
   1064 L_3803146B:
   1065     MEM32(ebp + (-0x98)) = ecx; /* 0x3803146B: mov dword ptr [ebp - 0x98], ecx */
   1066 L_38031471:
   1067     edx = MEM32(eax + 0x4); /* 0x38031471: mov edx, dword ptr [eax + 4] */
   1068 L_38031474:
   1069     MEM32(ebp + (-0x94)) = edx; /* 0x38031474: mov dword ptr [ebp - 0x94], edx */
   1070 L_3803147A:
   1071     eax = MEM32(eax + 0x8); /* 0x3803147A: mov eax, dword ptr [eax + 8] */
   1072 L_3803147D:
   1073     ecx = ebp + (-0x98); /* 0x3803147D: lea ecx, [ebp - 0x98] */
   1074 L_38031483:
   1075     PUSH32(esp, ecx); /* 0x38031483: push ecx */
   1076 L_38031484:
   1077     edx = ebp + (-0x108); /* 0x38031484: lea edx, [ebp - 0x108] */
   1078 L_3803148A:
   1079     PUSH32(esp, edx); /* 0x3803148A: push edx */
   1080 L_3803148B:
   1081     ecx = ebp + (-0x40); /* 0x3803148B: lea ecx, [ebp - 0x40] */
   1082 L_3803148E:
   1083     MEM32(ebp + (-0x90)) = eax; /* 0x3803148E: mov dword ptr [ebp - 0x90], eax */
   1084 L_38031494:
   1085     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x38031494: call dword ptr [0x3804e4fc] */
   1086     RECOMP_FLAGS_IN();
   1087 L_3803149A:
   1088     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3803149A: fld dword ptr [ebp - 0x34] */
   1089 L_3803149D:
   1090     ecx = MEM32(eax); /* 0x3803149D: mov ecx, dword ptr [eax] */
   1091 L_3803149F:
   1092     _st[0] += _st[0]; /* 0x3803149F: fadd st(0), st(0) */
   1093 L_380314A1:
   1094     MEM32(ebp + (-0xC8)) = ecx; /* 0x380314A1: mov dword ptr [ebp - 0xc8], ecx */
   1095 L_380314A7:
   1096     edx = MEM32(eax + 0x4); /* 0x380314A7: mov edx, dword ptr [eax + 4] */
   1097 L_380314AA:
   1098     MEM32(ebp + (-0xC4)) = edx; /* 0x380314AA: mov dword ptr [ebp - 0xc4], edx */
   1099 L_380314B0:
   1100     eax = MEM32(eax + 0x8); /* 0x380314B0: mov eax, dword ptr [eax + 8] */
   1101 L_380314B3:
   1102     PUSH32(esp, ecx); /* 0x380314B3: push ecx */
   1103 L_380314B4:
   1104     ecx = ebp + (-0x98); /* 0x380314B4: lea ecx, [ebp - 0x98] */
   1105 L_380314BA:
   1106     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380314BA: fstp dword ptr [esp] */
   1107 L_380314BD:
   1108     MEM32(ebp + (-0xC0)) = eax; /* 0x380314BD: mov dword ptr [ebp - 0xc0], eax */
   1109 L_380314C3:
   1110     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314C3: call dword ptr [0x3804e4d4] */
   1111     RECOMP_FLAGS_IN();
   1112 L_380314C9:
   1113     PUSH32(esp, 0x40000000u); /* 0x380314C9: push 0x40000000 */
   1114 L_380314CE:
   1115     ecx = ebp + (-0xC8); /* 0x380314CE: lea ecx, [ebp - 0xc8] */
   1116 L_380314D4:
   1117     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314D4: call dword ptr [0x3804e4d4] */
   1118     RECOMP_FLAGS_IN();
   1119 L_380314DA:
   1120     ecx = ebp + (-0x98); /* 0x380314DA: lea ecx, [ebp - 0x98] */
   1121 L_380314E0:
   1122     PUSH32(esp, ecx); /* 0x380314E0: push ecx */
   1123 L_380314E1:
   1124     ecx = ebp + (-0x30); /* 0x380314E1: lea ecx, [ebp - 0x30] */
   1125 L_380314E4:
   1126     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314E4: call dword ptr [0x3804e4e8] */
   1127     RECOMP_FLAGS_IN();
   1128 L_380314EA:
   1129     edx = ebp + (-0xC8); /* 0x380314EA: lea edx, [ebp - 0xc8] */
   1130 L_380314F0:
   1131     PUSH32(esp, edx); /* 0x380314F0: push edx */
   1132 L_380314F1:
   1133     ecx = ebp + (-0x30); /* 0x380314F1: lea ecx, [ebp - 0x30] */
   1134 L_380314F4:
   1135     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314F4: call dword ptr [0x3804e4e8] */
   1136     RECOMP_FLAGS_IN();
   1137 L_380314FA:
   1138     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380314FA: fld dword ptr [ebp - 0x30] */
   1139 L_380314FD:
   1140     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x380314FD: fadd dword ptr [esi + 0x54] */
   1141 L_38031500:
   1142     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031500: fstp dword ptr [ebp - 0x30] */
   1143 L_38031503:
   1144     PUSH32(esp, 0x3806CB10u); /* 0x38031503: push 0x3806cb10 */
   1145 L_38031508:
   1146     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031508: fld dword ptr [ebp - 0x2c] */
   1147 L_3803150B:
   1148     PUSH32(esp, 0x000F6951u); /* 0x3803150B: push 0xf6951 */
   1149 L_38031510:
   1150     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031510: fadd dword ptr [esi + 0x58] */
   1151 L_38031513:
   1152     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031513: fstp dword ptr [ebp - 0x2c] */
   1153 L_38031516:
   1154     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031516: fld dword ptr [ebp - 0x28] */
   1155 L_38031519:
   1156     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38031519: fadd dword ptr [esi + 0x5c] */
   1157 L_3803151C:
   1158     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3803151C: fstp dword ptr [ebp - 0x28] */
   1159 L_3803151F:
   1160     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x3803151F: call dword ptr [0x3804e4b0] */
   1161     RECOMP_FLAGS_IN();
   1162 L_38031525:
   1163     edi = eax; /* 0x38031525: mov edi, eax */
   1164 L_38031527:
   1165     eax = MEM32(esi + 0x98); /* 0x38031527: mov eax, dword ptr [esi + 0x98] */
   1166 L_3803152D:
   1167     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1168     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1169     esp = esp + 8; /* 0x3803152D: add esp, 8 */
   1170     _flag_k = FK_ADD;
   1171 L_38031530:
   1172     /* cmp eax, ebx */ /* 0x38031530: cmp eax, ebx */
   1173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1175     _flag_k = FK_CMP;
   1176 L_38031532:
   1177     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803155A; /* 0x38031532: jne 0x3803155a */
   1178 L_38031534:
   1179     PUSH32(esp, 0x10u); /* 0x38031534: push 0x10 */
   1180 L_38031536:
   1181     RECOMP_ICALL(0x3804B676u); /* 0x38031536: call 0x3804b676 */ /* not lifted */
   1182     RECOMP_FLAGS_IN();
   1183 L_3803153B:
   1184     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1185     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1186     esp = esp + 4; /* 0x3803153B: add esp, 4 */
   1187     _flag_k = FK_ADD;
   1188 L_3803153E:
   1189     /* cmp eax, ebx */ /* 0x3803153E: cmp eax, ebx */
   1190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1192     _flag_k = FK_CMP;
   1193 L_38031540:
   1194     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031552; /* 0x38031540: je 0x38031552 */
   1195 L_38031542:
   1196     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031542: mov cl, byte ptr [ebp + 0xb] */
   1197 L_38031545:
   1198     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031545: mov byte ptr [eax], cl */
   1199 L_38031547:
   1200     MEM32(eax + 0x4) = ebx; /* 0x38031547: mov dword ptr [eax + 4], ebx */
   1201 L_3803154A:
   1202     MEM32(eax + 0x8) = ebx; /* 0x3803154A: mov dword ptr [eax + 8], ebx */
   1203 L_3803154D:
   1204     MEM32(eax + 0xC) = ebx; /* 0x3803154D: mov dword ptr [eax + 0xc], ebx */
   1205 L_38031550:
   1206     goto L_38031554; /* 0x38031550: jmp 0x38031554 */
   1207 L_38031552:
   1208     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1209     eax = 0; /* 0x38031552: xor eax, eax */
   1210     _cf = 0;
   1211     _flag_k = FK_TEST;
   1212 L_38031554:
   1213     MEM32(esi + 0x98) = eax; /* 0x38031554: mov dword ptr [esi + 0x98], eax */
   1214 L_3803155A:
   1215     eax = MEM32(ebp + 0x8); /* 0x3803155A: mov eax, dword ptr [ebp + 8] */
   1216 L_3803155D:
   1217     edx = ebp + (-0x20); /* 0x3803155D: lea edx, [ebp - 0x20] */
   1218 L_38031560:
   1219     PUSH32(esp, edx); /* 0x38031560: push edx */
   1220 L_38031561:
   1221     PUSH32(esp, eax); /* 0x38031561: push eax */
   1222 L_38031562:
   1223     ecx = esi; /* 0x38031562: mov ecx, esi */
   1224 L_38031564:
   1225     RECOMP_ICALL(0x38032CE0u); /* 0x38031564: call 0x38032ce0 */ /* not lifted */
   1226     RECOMP_FLAGS_IN();
   1227 L_38031569:
   1228     ecx = MEM32(ebp + (-0x20)); /* 0x38031569: mov ecx, dword ptr [ebp - 0x20] */
   1229 L_3803156C:
   1230     edx = MEM32(ebp + (-0x1C)); /* 0x3803156C: mov edx, dword ptr [ebp - 0x1c] */
   1231 L_3803156F:
   1232     eax = MEM32(ebp + (-0x18)); /* 0x3803156F: mov eax, dword ptr [ebp - 0x18] */
   1233 L_38031572:
   1234     MEM32(ebp + (-0xBC)) = ecx; /* 0x38031572: mov dword ptr [ebp - 0xbc], ecx */
   1235 L_38031578:
   1236     ecx = ebp + (-0xBC); /* 0x38031578: lea ecx, [ebp - 0xbc] */
   1237 L_3803157E:
   1238     MEM32(ebp + (-0xB8)) = edx; /* 0x3803157E: mov dword ptr [ebp - 0xb8], edx */
   1239 L_38031584:
   1240     edx = MEM32(ebp + 0x8); /* 0x38031584: mov edx, dword ptr [ebp + 8] */
   1241 L_38031587:
   1242     PUSH32(esp, ecx); /* 0x38031587: push ecx */
   1243 L_38031588:
   1244     PUSH32(esp, edx); /* 0x38031588: push edx */
   1245 L_38031589:
   1246     ecx = esi; /* 0x38031589: mov ecx, esi */
   1247 L_3803158B:
   1248     MEM32(ebp + (-0xB4)) = eax; /* 0x3803158B: mov dword ptr [ebp - 0xb4], eax */
   1249 L_38031591:
   1250     RECOMP_ICALL(0x38032DE0u); /* 0x38031591: call 0x38032de0 */ /* not lifted */
   1251     RECOMP_FLAGS_IN();
   1252 L_38031596:
   1253     fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x38031596: fld dword ptr [ebp - 0xb8] */
   1254 L_3803159C:
   1255     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3803159C: fsub dword ptr [ebp - 0x1c] */
   1256 L_3803159F:
   1257     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803159F: fst dword ptr [ebp - 0x10] */
   1258 L_380315A2:
   1259     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x380315A2: fcomp dword ptr [0x3804f688] */
   1260     fp_pop();
   1261 L_380315A8:
   1262     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380315A8: fnstsw ax */
   1263 L_380315AA:
   1264     /* test HI8(eax), 0x41u */ /* 0x380315AA: test ah, 0x41 */
   1265     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1266     _cf = 0;
   1267     _flag_k = FK_NARROW(FK_TEST, 24);
   1268 L_380315AD:
   1269     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031657; /* 0x380315AD: jne 0x38031657 */
   1270 L_380315B3:
   1271     PUSH32(esp, 0x58u); /* 0x380315B3: push 0x58 */
   1272 L_380315B5:
   1273     RECOMP_ICALL(0x3804B676u); /* 0x380315B5: call 0x3804b676 */ /* not lifted */
   1274     RECOMP_FLAGS_IN();
   1275 L_380315BA:
   1276     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1277     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1278     esp = esp + 4; /* 0x380315BA: add esp, 4 */
   1279     _flag_k = FK_ADD;
   1280 L_380315BD:
   1281     MEM32(ebp + (-0x24)) = eax; /* 0x380315BD: mov dword ptr [ebp - 0x24], eax */
   1282 L_380315C0:
   1283     /* cmp eax, ebx */ /* 0x380315C0: cmp eax, ebx */
   1284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1286     _flag_k = FK_CMP;
   1287 L_380315C2:
   1288     MEM32(ebp + (-0x4)) = 1; /* 0x380315C2: mov dword ptr [ebp - 4], 1 */
   1289 L_380315C9:
   1290     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315EC; /* 0x380315C9: je 0x380315ec */
   1291 L_380315CB:
   1292     PUSH32(esp, ebx); /* 0x380315CB: push ebx */
   1293 L_380315CC:
   1294     PUSH32(esp, ebx); /* 0x380315CC: push ebx */
   1295 L_380315CD:
   1296     PUSH32(esp, ebx); /* 0x380315CD: push ebx */
   1297 L_380315CE:
   1298     PUSH32(esp, ebx); /* 0x380315CE: push ebx */
   1299 L_380315CF:
   1300     PUSH32(esp, ebx); /* 0x380315CF: push ebx */
   1301 L_380315D0:
   1302     PUSH32(esp, edi); /* 0x380315D0: push edi */
   1303 L_380315D1:
   1304     PUSH32(esp, 0x3FA00000u); /* 0x380315D1: push 0x3fa00000 */
   1305 L_380315D6:
   1306     PUSH32(esp, 0x00FFFFFFu); /* 0x380315D6: push 0xffffff */
   1307 L_380315DB:
   1308     ecx = ebp + (-0x54); /* 0x380315DB: lea ecx, [ebp - 0x54] */
   1309 L_380315DE:
   1310     PUSH32(esp, ecx); /* 0x380315DE: push ecx */
   1311 L_380315DF:
   1312     edx = ebp + (-0x30); /* 0x380315DF: lea edx, [ebp - 0x30] */
   1313 L_380315E2:
   1314     PUSH32(esp, edx); /* 0x380315E2: push edx */
   1315 L_380315E3:
   1316     ecx = eax; /* 0x380315E3: mov ecx, eax */
   1317 L_380315E5:
   1318     RECOMP_ICALL(0x3800B350u); /* 0x380315E5: call 0x3800b350 */ /* not lifted */
   1319     RECOMP_FLAGS_IN();
   1320 L_380315EA:
   1321     goto L_380315EE; /* 0x380315EA: jmp 0x380315ee */
   1322 L_380315EC:
   1323     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1324     eax = 0; /* 0x380315EC: xor eax, eax */
   1325     _cf = 0;
   1326     _flag_k = FK_TEST;
   1327 L_380315EE:
   1328     ecx = MEM32(esi + 0x98); /* 0x380315EE: mov ecx, dword ptr [esi + 0x98] */
   1329 L_380315F4:
   1330     edx = ebp + (-0xAC); /* 0x380315F4: lea edx, [ebp - 0xac] */
   1331 L_380315FA:
   1332     PUSH32(esp, edx); /* 0x380315FA: push edx */
   1333 L_380315FB:
   1334     MEM32(ebp + (-0xAC)) = eax; /* 0x380315FB: mov dword ptr [ebp - 0xac], eax */
   1335 L_38031601:
   1336     eax = MEM32(ecx + 0x8); /* 0x38031601: mov eax, dword ptr [ecx + 8] */
   1337 L_38031604:
   1338     PUSH32(esp, 1); /* 0x38031604: push 1 */
   1339 L_38031606:
   1340     PUSH32(esp, eax); /* 0x38031606: push eax */
   1341 L_38031607:
   1342     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38031607: mov dword ptr [ebp - 4], 0xffffffff */
   1343 L_3803160E:
   1344     RECOMP_ICALL(0x38009C60u); /* 0x3803160E: call 0x38009c60 */ /* not lifted */
   1345     RECOMP_FLAGS_IN();
   1346 L_38031613:
   1347     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031613: fld dword ptr [ebp - 0x2c] */
   1348 L_38031616:
   1349     _st[0] += (double)*(float*)ADDR(0x3804F684); /* 0x38031616: fadd dword ptr [0x3804f684] */
   1350 L_3803161C:
   1351     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3803161C: fstp dword ptr [ebp - 0x2c] */
   1352 L_3803161F:
   1353     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803161F: fld dword ptr [ebp - 0x10] */
   1354 L_38031622:
   1355     _st[0] -= (double)*(float*)ADDR(0x3804F684); /* 0x38031622: fsub dword ptr [0x3804f684] */
   1356 L_38031628:
   1357     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031628: fcom dword ptr [0x3804f688] */
   1358 L_3803162E:
   1359     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803162E: fst dword ptr [ebp - 0x10] */
   1360 L_38031631:
   1361     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031631: fnstsw ax */
   1362 L_38031633:
   1363     /* test HI8(eax), 1 */ /* 0x38031633: test ah, 1 */
   1364     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1365     _cf = 0;
   1366     _flag_k = FK_NARROW(FK_TEST, 24);
   1367 L_38031636:
   1368     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031646; /* 0x38031636: je 0x38031646 */
   1369 L_38031638:
   1370     fp_push(_st[0]); /* 0x38031638: fld st(0) */
   1371 L_3803163A:
   1372     _st[0] -= (double)*(float*)ADDR(0x3804F688); /* 0x3803163A: fsub dword ptr [0x3804f688] */
   1373 L_38031640:
   1374     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x38031640: fadd dword ptr [ebp - 0x2c] */
   1375 L_38031643:
   1376     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031643: fstp dword ptr [ebp - 0x2c] */
   1377 L_38031646:
   1378     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031646: fcomp dword ptr [0x3804f688] */
   1379     fp_pop();
   1380 L_3803164C:
   1381     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803164C: fnstsw ax */
   1382 L_3803164E:
   1383     /* test HI8(eax), 0x41u */ /* 0x3803164E: test ah, 0x41 */
   1384     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1385     _cf = 0;
   1386     _flag_k = FK_NARROW(FK_TEST, 24);
   1387 L_38031651:
   1388     RECOMP_BACKEDGE();
   1389     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315B3; /* 0x38031651: je 0x380315b3 */
   1390 L_38031657:
   1391     PUSH32(esp, 0x58u); /* 0x38031657: push 0x58 */
   1392 L_38031659:
   1393     RECOMP_ICALL(0x3804B676u); /* 0x38031659: call 0x3804b676 */ /* not lifted */
   1394     RECOMP_FLAGS_IN();
   1395 L_3803165E:
   1396     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1398     esp = esp + 4; /* 0x3803165E: add esp, 4 */
   1399     _flag_k = FK_ADD;
   1400 L_38031661:
   1401     MEM32(ebp + (-0x24)) = eax; /* 0x38031661: mov dword ptr [ebp - 0x24], eax */
   1402 L_38031664:
   1403     /* cmp eax, ebx */ /* 0x38031664: cmp eax, ebx */
   1404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1406     _flag_k = FK_CMP;
   1407 L_38031666:
   1408     MEM32(ebp + (-0x4)) = 2; /* 0x38031666: mov dword ptr [ebp - 4], 2 */
   1409 L_3803166D:
   1410     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031690; /* 0x3803166D: je 0x38031690 */
   1411 L_3803166F:
   1412     PUSH32(esp, ebx); /* 0x3803166F: push ebx */
   1413 L_38031670:
   1414     PUSH32(esp, ebx); /* 0x38031670: push ebx */
   1415 L_38031671:
   1416     PUSH32(esp, ebx); /* 0x38031671: push ebx */
   1417 L_38031672:
   1418     PUSH32(esp, ebx); /* 0x38031672: push ebx */
   1419 L_38031673:
   1420     PUSH32(esp, ebx); /* 0x38031673: push ebx */
   1421 L_38031674:
   1422     PUSH32(esp, edi); /* 0x38031674: push edi */
   1423 L_38031675:
   1424     PUSH32(esp, 0x3FA00000u); /* 0x38031675: push 0x3fa00000 */
   1425 L_3803167A:
   1426     PUSH32(esp, 0x00FFFFFFu); /* 0x3803167A: push 0xffffff */
   1427 L_3803167F:
   1428     ecx = ebp + (-0x54); /* 0x3803167F: lea ecx, [ebp - 0x54] */
   1429 L_38031682:
   1430     PUSH32(esp, ecx); /* 0x38031682: push ecx */
   1431 L_38031683:
   1432     edx = ebp + (-0x30); /* 0x38031683: lea edx, [ebp - 0x30] */
   1433 L_38031686:
   1434     PUSH32(esp, edx); /* 0x38031686: push edx */
   1435 L_38031687:
   1436     ecx = eax; /* 0x38031687: mov ecx, eax */
   1437 L_38031689:
   1438     RECOMP_ICALL(0x3800B350u); /* 0x38031689: call 0x3800b350 */ /* not lifted */
   1439     RECOMP_FLAGS_IN();
   1440 L_3803168E:
   1441     goto L_38031692; /* 0x3803168E: jmp 0x38031692 */
   1442 L_38031690:
   1443     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1444     eax = 0; /* 0x38031690: xor eax, eax */
   1445     _cf = 0;
   1446     _flag_k = FK_TEST;
   1447 L_38031692:
   1448     ecx = MEM32(esi + 0x98); /* 0x38031692: mov ecx, dword ptr [esi + 0x98] */
   1449 L_38031698:
   1450     MEM32(ebp + (-0x9C)) = eax; /* 0x38031698: mov dword ptr [ebp - 0x9c], eax */
   1451 L_3803169E:
   1452     edx = MEM32(ecx + 0x8); /* 0x3803169E: mov edx, dword ptr [ecx + 8] */
   1453 L_380316A1:
   1454     eax = ebp + (-0x9C); /* 0x380316A1: lea eax, [ebp - 0x9c] */
   1455 L_380316A7:
   1456     PUSH32(esp, eax); /* 0x380316A7: push eax */
   1457 L_380316A8:
   1458     PUSH32(esp, 1); /* 0x380316A8: push 1 */
   1459 L_380316AA:
   1460     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380316AA: mov dword ptr [ebp - 4], 0xffffffff */
   1461 L_380316B1:
   1462     PUSH32(esp, edx); /* 0x380316B1: push edx */
   1463 L_380316B2:
   1464     RECOMP_ICALL(0x38009C60u); /* 0x380316B2: call 0x38009c60 */ /* not lifted */
   1465     RECOMP_FLAGS_IN();
   1466 L_380316B7:
   1467     eax = MEM32(ebp + (-0x8C)); /* 0x380316B7: mov eax, dword ptr [ebp - 0x8c] */
   1468 L_380316BD:
   1469     edx = MEM32(ebp + (-0x78)); /* 0x380316BD: mov edx, dword ptr [ebp - 0x78] */
   1470 L_380316C0:
   1471     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1472     ecx = 0; /* 0x380316C0: xor ecx, ecx */
   1473     _cf = 0;
   1474     _flag_k = FK_TEST;
   1475 L_380316C2:
   1476     SET_LO16(ecx, MEM16(esi + 0x7C)); /* 0x380316C2: mov cx, word ptr [esi + 0x7c] */
   1477 L_380316C6:
   1478     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1479     eax = eax + 1; /* 0x380316C6: inc eax */
   1480     _flag_k = FK_INC;
   1481 L_380316C7:
   1482     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   1483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1484     edx = edx + 0x10u; /* 0x380316C7: add edx, 0x10 */
   1485     _flag_k = FK_ADD;
   1486 L_380316CA:
   1487     MEM32(ebp + (-0x8C)) = eax; /* 0x380316CA: mov dword ptr [ebp - 0x8c], eax */
   1488 L_380316D0:
   1489     MEM32(ebp + (-0x78)) = edx; /* 0x380316D0: mov dword ptr [ebp - 0x78], edx */
   1490 L_380316D3:
   1491     /* cmp eax, ecx */ /* 0x380316D3: cmp eax, ecx */
   1492     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1494     _flag_k = FK_CMP;
   1495 L_380316D5:
   1496     RECOMP_BACKEDGE();
   1497     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38030E4E; /* 0x380316D5: jl 0x38030e4e */
   1498 L_380316DB:
   1499     edi = POP32_VAL(esp); /* 0x380316DB: pop edi */
   1500 L_380316DC:
   1501     PUSH32(esp, ebx); /* 0x380316DC: push ebx */
   1502 L_380316DD:
   1503     ecx = esi; /* 0x380316DD: mov ecx, esi */
   1504 L_380316DF:
   1505     RECOMP_ICALL(0x38030440u); /* 0x380316DF: call 0x38030440 */ /* not lifted */
   1506     RECOMP_FLAGS_IN();
   1507 L_380316E4:
   1508     ecx = MEM32(ebp + (-0xC)); /* 0x380316E4: mov ecx, dword ptr [ebp - 0xc] */
   1509 L_380316E7:
   1510     esi = POP32_VAL(esp); /* 0x380316E7: pop esi */
   1511 L_380316E8:
   1512     ebx = POP32_VAL(esp); /* 0x380316E8: pop ebx */
   1513 L_380316E9:
   1514     MEM32(FS_BASE + (0)) = ecx; /* 0x380316E9: mov dword ptr fs:[0], ecx */
   1515 L_380316F0:
   1516     esp = ebp; /* 0x380316F0: mov esp, ebp */
   1517 L_380316F2:
   1518     ebp = POP32_VAL(esp); /* 0x380316F2: pop ebp */
   1519 L_380316F3:
   1520     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380316F3: ret 8 */
   1521   _ljump:
   1522     switch (_itail_tgt) {
   1523       case 0x38030E4Eu: goto L_38030E4E;
   1524       case 0x38030E54u: goto L_38030E54;
   1525       case 0x38030E57u: goto L_38030E57;
   1526       case 0x38030E5Au: goto L_38030E5A;
   1527       case 0x38030E5Du: goto L_38030E5D;
   1528       case 0x38030E5Fu: goto L_38030E5F;
   1529       case 0x38030E65u: goto L_38030E65;
   1530       case 0x38030E68u: goto L_38030E68;
   1531       case 0x38030E6Eu: goto L_38030E6E;
   1532       case 0x38030E74u: goto L_38030E74;
   1533       case 0x38030E76u: goto L_38030E76;
   1534       case 0x38030E7Cu: goto L_38030E7C;
   1535       case 0x38030E84u: goto L_38030E84;
   1536       case 0x38030E8Au: goto L_38030E8A;
   1537       case 0x38030E8Du: goto L_38030E8D;
   1538       case 0x38030E91u: goto L_38030E91;
   1539       case 0x38030E97u: goto L_38030E97;
   1540       case 0x38030E9Du: goto L_38030E9D;
   1541       case 0x38030EA3u: goto L_38030EA3;
   1542       case 0x38030EA9u: goto L_38030EA9;
   1543       case 0x38030EACu: goto L_38030EAC;
   1544       case 0x38030EAFu: goto L_38030EAF;
   1545       case 0x38030EB5u: goto L_38030EB5;
   1546       case 0x38030EB7u: goto L_38030EB7;
   1547       case 0x38030EBAu: goto L_38030EBA;
   1548       case 0x38030EBCu: goto L_38030EBC;
   1549       case 0x38030EC2u: goto L_38030EC2;
   1550       case 0x38030EC4u: goto L_38030EC4;
   1551       case 0x38030EC7u: goto L_38030EC7;
   1552       case 0x38030EC9u: goto L_38030EC9;
   1553       case 0x38030ECFu: goto L_38030ECF;
   1554       case 0x38030ED1u: goto L_38030ED1;
   1555       case 0x38030ED7u: goto L_38030ED7;
   1556       case 0x38030EDAu: goto L_38030EDA;
   1557       case 0x38030EDDu: goto L_38030EDD;
   1558       case 0x38030EE0u: goto L_38030EE0;
   1559       case 0x38030EE6u: goto L_38030EE6;
   1560       case 0x38030EE9u: goto L_38030EE9;
   1561       case 0x38030EECu: goto L_38030EEC;
   1562       case 0x38030EF2u: goto L_38030EF2;
   1563       case 0x38030EF4u: goto L_38030EF4;
   1564       case 0x38030EF6u: goto L_38030EF6;
   1565       case 0x38030EFCu: goto L_38030EFC;
   1566       case 0x38030EFFu: goto L_38030EFF;
   1567       case 0x38030F02u: goto L_38030F02;
   1568       case 0x38030F05u: goto L_38030F05;
   1569       case 0x38030F08u: goto L_38030F08;
   1570       case 0x38030F0Bu: goto L_38030F0B;
   1571       case 0x38030F0Du: goto L_38030F0D;
   1572       case 0x38030F10u: goto L_38030F10;
   1573       case 0x38030F13u: goto L_38030F13;
   1574       case 0x38030F19u: goto L_38030F19;
   1575       case 0x38030F1Fu: goto L_38030F1F;
   1576       case 0x38030F25u: goto L_38030F25;
   1577       case 0x38030F27u: goto L_38030F27;
   1578       case 0x38030F2Au: goto L_38030F2A;
   1579       case 0x38030F2Cu: goto L_38030F2C;
   1580       case 0x38030F32u: goto L_38030F32;
   1581       case 0x38030F34u: goto L_38030F34;
   1582       case 0x38030F37u: goto L_38030F37;
   1583       case 0x38030F39u: goto L_38030F39;
   1584       case 0x38030F3Fu: goto L_38030F3F;
   1585       case 0x38030F41u: goto L_38030F41;
   1586       case 0x38030F47u: goto L_38030F47;
   1587       case 0x38030F4Au: goto L_38030F4A;
   1588       case 0x38030F4Du: goto L_38030F4D;
   1589       case 0x38030F50u: goto L_38030F50;
   1590       case 0x38030F56u: goto L_38030F56;
   1591       case 0x38030F59u: goto L_38030F59;
   1592       case 0x38030F5Cu: goto L_38030F5C;
   1593       case 0x38030F62u: goto L_38030F62;
   1594       case 0x38030F64u: goto L_38030F64;
   1595       case 0x38030F69u: goto L_38030F69;
   1596       case 0x38030F6Bu: goto L_38030F6B;
   1597       case 0x38030F70u: goto L_38030F70;
   1598       case 0x38030F76u: goto L_38030F76;
   1599       case 0x38030F79u: goto L_38030F79;
   1600       case 0x38030F7Cu: goto L_38030F7C;
   1601       case 0x38030F7Fu: goto L_38030F7F;
   1602       case 0x38030F82u: goto L_38030F82;
   1603       case 0x38030F85u: goto L_38030F85;
   1604       case 0x38030F87u: goto L_38030F87;
   1605       case 0x38030F89u: goto L_38030F89;
   1606       case 0x38030F8Cu: goto L_38030F8C;
   1607       case 0x38030F8Fu: goto L_38030F8F;
   1608       case 0x38030F92u: goto L_38030F92;
   1609       case 0x38030F94u: goto L_38030F94;
   1610       case 0x38030F97u: goto L_38030F97;
   1611       case 0x38030F9Au: goto L_38030F9A;
   1612       case 0x38030F9Cu: goto L_38030F9C;
   1613       case 0x38030F9Fu: goto L_38030F9F;
   1614       case 0x38030FA2u: goto L_38030FA2;
   1615       case 0x38030FA4u: goto L_38030FA4;
   1616       case 0x38030FA7u: goto L_38030FA7;
   1617       case 0x38030FAAu: goto L_38030FAA;
   1618       case 0x38030FADu: goto L_38030FAD;
   1619       case 0x38030FB0u: goto L_38030FB0;
   1620       case 0x38030FB2u: goto L_38030FB2;
   1621       case 0x38030FB5u: goto L_38030FB5;
   1622       case 0x38030FB8u: goto L_38030FB8;
   1623       case 0x38030FBAu: goto L_38030FBA;
   1624       case 0x38030FBCu: goto L_38030FBC;
   1625       case 0x38030FBFu: goto L_38030FBF;
   1626       case 0x38030FC1u: goto L_38030FC1;
   1627       case 0x38030FC4u: goto L_38030FC4;
   1628       case 0x38030FC7u: goto L_38030FC7;
   1629       case 0x38030FCAu: goto L_38030FCA;
   1630       case 0x38030FCDu: goto L_38030FCD;
   1631       case 0x38030FD0u: goto L_38030FD0;
   1632       case 0x38030FD3u: goto L_38030FD3;
   1633       case 0x38030FD5u: goto L_38030FD5;
   1634       case 0x38030FD8u: goto L_38030FD8;
   1635       case 0x38030FDBu: goto L_38030FDB;
   1636       case 0x38030FDDu: goto L_38030FDD;
   1637       case 0x38030FDFu: goto L_38030FDF;
   1638       case 0x38030FE2u: goto L_38030FE2;
   1639       case 0x38030FE4u: goto L_38030FE4;
   1640       case 0x38030FE7u: goto L_38030FE7;
   1641       case 0x38030FEAu: goto L_38030FEA;
   1642       case 0x38030FECu: goto L_38030FEC;
   1643       case 0x38030FEFu: goto L_38030FEF;
   1644       case 0x38030FF2u: goto L_38030FF2;
   1645       case 0x38030FF5u: goto L_38030FF5;
   1646       case 0x38030FF8u: goto L_38030FF8;
   1647       case 0x38030FFBu: goto L_38030FFB;
   1648       case 0x38030FFEu: goto L_38030FFE;
   1649       case 0x38031000u: goto L_38031000;
   1650       case 0x38031003u: goto L_38031003;
   1651       case 0x38031006u: goto L_38031006;
   1652       case 0x38031009u: goto L_38031009;
   1653       case 0x3803100Bu: goto L_3803100B;
   1654       case 0x3803100Du: goto L_3803100D;
   1655       case 0x38031010u: goto L_38031010;
   1656       case 0x38031013u: goto L_38031013;
   1657       case 0x38031019u: goto L_38031019;
   1658       case 0x3803101Bu: goto L_3803101B;
   1659       case 0x38031021u: goto L_38031021;
   1660       case 0x38031024u: goto L_38031024;
   1661       case 0x38031026u: goto L_38031026;
   1662       case 0x38031028u: goto L_38031028;
   1663       case 0x3803102Au: goto L_3803102A;
   1664       case 0x3803102Fu: goto L_3803102F;
   1665       case 0x38031032u: goto L_38031032;
   1666       case 0x38031034u: goto L_38031034;
   1667       case 0x38031036u: goto L_38031036;
   1668       case 0x38031039u: goto L_38031039;
   1669       case 0x3803103Bu: goto L_3803103B;
   1670       case 0x3803103Eu: goto L_3803103E;
   1671       case 0x38031041u: goto L_38031041;
   1672       case 0x38031044u: goto L_38031044;
   1673       case 0x38031046u: goto L_38031046;
   1674       case 0x38031048u: goto L_38031048;
   1675       case 0x3803104Eu: goto L_3803104E;
   1676       case 0x38031050u: goto L_38031050;
   1677       case 0x38031055u: goto L_38031055;
   1678       case 0x38031058u: goto L_38031058;
   1679       case 0x3803105Bu: goto L_3803105B;
   1680       case 0x3803105Du: goto L_3803105D;
   1681       case 0x38031060u: goto L_38031060;
   1682       case 0x38031062u: goto L_38031062;
   1683       case 0x38031065u: goto L_38031065;
   1684       case 0x3803106Bu: goto L_3803106B;
   1685       case 0x3803106Fu: goto L_3803106F;
   1686       case 0x38031070u: goto L_38031070;
   1687       case 0x38031076u: goto L_38031076;
   1688       case 0x38031077u: goto L_38031077;
   1689       case 0x38031078u: goto L_38031078;
   1690       case 0x38031079u: goto L_38031079;
   1691       case 0x3803107Bu: goto L_3803107B;
   1692       case 0x3803107Cu: goto L_3803107C;
   1693       case 0x3803107Du: goto L_3803107D;
   1694       case 0x3803107Eu: goto L_3803107E;
   1695       case 0x38031081u: goto L_38031081;
   1696       case 0x38031086u: goto L_38031086;
   1697       case 0x38031089u: goto L_38031089;
   1698       case 0x3803108Au: goto L_3803108A;
   1699       case 0x3803108Bu: goto L_3803108B;
   1700       case 0x3803108Du: goto L_3803108D;
   1701       case 0x38031092u: goto L_38031092;
   1702       case 0x38031094u: goto L_38031094;
   1703       case 0x38031096u: goto L_38031096;
   1704       case 0x3803109Cu: goto L_3803109C;
   1705       case 0x380310A2u: goto L_380310A2;
   1706       case 0x380310A3u: goto L_380310A3;
   1707       case 0x380310A9u: goto L_380310A9;
   1708       case 0x380310ACu: goto L_380310AC;
   1709       case 0x380310AEu: goto L_380310AE;
   1710       case 0x380310B5u: goto L_380310B5;
   1711       case 0x380310B6u: goto L_380310B6;
   1712       case 0x380310BBu: goto L_380310BB;
   1713       case 0x380310BDu: goto L_380310BD;
   1714       case 0x380310C3u: goto L_380310C3;
   1715       case 0x380310CBu: goto L_380310CB;
   1716       case 0x380310D1u: goto L_380310D1;
   1717       case 0x380310D5u: goto L_380310D5;
   1718       case 0x380310DCu: goto L_380310DC;
   1719       case 0x380310DFu: goto L_380310DF;
   1720       case 0x380310E4u: goto L_380310E4;
   1721       case 0x380310E7u: goto L_380310E7;
   1722       case 0x380310EAu: goto L_380310EA;
   1723       case 0x380310ECu: goto L_380310EC;
   1724       case 0x380310F2u: goto L_380310F2;
   1725       case 0x380310F4u: goto L_380310F4;
   1726       case 0x380310F5u: goto L_380310F5;
   1727       case 0x380310FBu: goto L_380310FB;
   1728       case 0x380310FDu: goto L_380310FD;
   1729       case 0x38031100u: goto L_38031100;
   1730       case 0x38031103u: goto L_38031103;
   1731       case 0x38031106u: goto L_38031106;
   1732       case 0x38031107u: goto L_38031107;
   1733       case 0x3803110Au: goto L_3803110A;
   1734       case 0x38031110u: goto L_38031110;
   1735       case 0x38031113u: goto L_38031113;
   1736       case 0x38031115u: goto L_38031115;
   1737       case 0x3803111Bu: goto L_3803111B;
   1738       case 0x3803111Eu: goto L_3803111E;
   1739       case 0x38031121u: goto L_38031121;
   1740       case 0x38031124u: goto L_38031124;
   1741       case 0x38031127u: goto L_38031127;
   1742       case 0x3803112Au: goto L_3803112A;
   1743       case 0x3803112Du: goto L_3803112D;
   1744       case 0x38031130u: goto L_38031130;
   1745       case 0x38031133u: goto L_38031133;
   1746       case 0x38031136u: goto L_38031136;
   1747       case 0x38031139u: goto L_38031139;
   1748       case 0x3803113Cu: goto L_3803113C;
   1749       case 0x38031142u: goto L_38031142;
   1750       case 0x38031145u: goto L_38031145;
   1751       case 0x38031148u: goto L_38031148;
   1752       case 0x3803114Bu: goto L_3803114B;
   1753       case 0x3803114Eu: goto L_3803114E;
   1754       case 0x38031151u: goto L_38031151;
   1755       case 0x38031154u: goto L_38031154;
   1756       case 0x38031157u: goto L_38031157;
   1757       case 0x38031159u: goto L_38031159;
   1758       case 0x3803115Bu: goto L_3803115B;
   1759       case 0x3803115Eu: goto L_3803115E;
   1760       case 0x38031161u: goto L_38031161;
   1761       case 0x38031164u: goto L_38031164;
   1762       case 0x38031166u: goto L_38031166;
   1763       case 0x38031169u: goto L_38031169;
   1764       case 0x3803116Cu: goto L_3803116C;
   1765       case 0x3803116Fu: goto L_3803116F;
   1766       case 0x38031172u: goto L_38031172;
   1767       case 0x38031175u: goto L_38031175;
   1768       case 0x38031178u: goto L_38031178;
   1769       case 0x3803117Bu: goto L_3803117B;
   1770       case 0x3803117Eu: goto L_3803117E;
   1771       case 0x38031181u: goto L_38031181;
   1772       case 0x38031184u: goto L_38031184;
   1773       case 0x38031186u: goto L_38031186;
   1774       case 0x3803118Du: goto L_3803118D;
   1775       case 0x38031190u: goto L_38031190;
   1776       case 0x38031196u: goto L_38031196;
   1777       case 0x38031199u: goto L_38031199;
   1778       case 0x3803119Cu: goto L_3803119C;
   1779       case 0x380311A2u: goto L_380311A2;
   1780       case 0x380311A5u: goto L_380311A5;
   1781       case 0x380311A7u: goto L_380311A7;
   1782       case 0x380311AAu: goto L_380311AA;
   1783       case 0x380311B0u: goto L_380311B0;
   1784       case 0x380311B3u: goto L_380311B3;
   1785       case 0x380311B6u: goto L_380311B6;
   1786       case 0x380311BCu: goto L_380311BC;
   1787       case 0x380311BEu: goto L_380311BE;
   1788       case 0x380311C1u: goto L_380311C1;
   1789       case 0x380311C7u: goto L_380311C7;
   1790       case 0x380311CAu: goto L_380311CA;
   1791       case 0x380311CDu: goto L_380311CD;
   1792       case 0x380311D3u: goto L_380311D3;
   1793       case 0x380311D6u: goto L_380311D6;
   1794       case 0x380311D8u: goto L_380311D8;
   1795       case 0x380311DBu: goto L_380311DB;
   1796       case 0x380311E1u: goto L_380311E1;
   1797       case 0x380311E4u: goto L_380311E4;
   1798       case 0x380311E7u: goto L_380311E7;
   1799       case 0x380311EDu: goto L_380311ED;
   1800       case 0x380311F0u: goto L_380311F0;
   1801       case 0x380311F3u: goto L_380311F3;
   1802       case 0x380311F5u: goto L_380311F5;
   1803       case 0x380311FBu: goto L_380311FB;
   1804       case 0x38031201u: goto L_38031201;
   1805       case 0x38031207u: goto L_38031207;
   1806       case 0x3803120Du: goto L_3803120D;
   1807       case 0x38031213u: goto L_38031213;
   1808       case 0x38031215u: goto L_38031215;
   1809       case 0x38031218u: goto L_38031218;
   1810       case 0x3803121Au: goto L_3803121A;
   1811       case 0x38031220u: goto L_38031220;
   1812       case 0x38031222u: goto L_38031222;
   1813       case 0x38031225u: goto L_38031225;
   1814       case 0x38031227u: goto L_38031227;
   1815       case 0x3803122Du: goto L_3803122D;
   1816       case 0x3803122Fu: goto L_3803122F;
   1817       case 0x38031235u: goto L_38031235;
   1818       case 0x38031238u: goto L_38031238;
   1819       case 0x3803123Bu: goto L_3803123B;
   1820       case 0x3803123Eu: goto L_3803123E;
   1821       case 0x38031244u: goto L_38031244;
   1822       case 0x38031247u: goto L_38031247;
   1823       case 0x3803124Au: goto L_3803124A;
   1824       case 0x38031250u: goto L_38031250;
   1825       case 0x38031252u: goto L_38031252;
   1826       case 0x38031254u: goto L_38031254;
   1827       case 0x3803125Au: goto L_3803125A;
   1828       case 0x3803125Du: goto L_3803125D;
   1829       case 0x38031260u: goto L_38031260;
   1830       case 0x38031263u: goto L_38031263;
   1831       case 0x38031266u: goto L_38031266;
   1832       case 0x38031269u: goto L_38031269;
   1833       case 0x3803126Bu: goto L_3803126B;
   1834       case 0x3803126Eu: goto L_3803126E;
   1835       case 0x38031271u: goto L_38031271;
   1836       case 0x38031277u: goto L_38031277;
   1837       case 0x3803127Du: goto L_3803127D;
   1838       case 0x38031283u: goto L_38031283;
   1839       case 0x38031285u: goto L_38031285;
   1840       case 0x38031288u: goto L_38031288;
   1841       case 0x3803128Au: goto L_3803128A;
   1842       case 0x38031290u: goto L_38031290;
   1843       case 0x38031292u: goto L_38031292;
   1844       case 0x38031295u: goto L_38031295;
   1845       case 0x38031297u: goto L_38031297;
   1846       case 0x3803129Du: goto L_3803129D;
   1847       case 0x3803129Fu: goto L_3803129F;
   1848       case 0x380312A5u: goto L_380312A5;
   1849       case 0x380312A8u: goto L_380312A8;
   1850       case 0x380312ABu: goto L_380312AB;
   1851       case 0x380312AEu: goto L_380312AE;
   1852       case 0x380312B4u: goto L_380312B4;
   1853       case 0x380312B7u: goto L_380312B7;
   1854       case 0x380312BAu: goto L_380312BA;
   1855       case 0x380312C0u: goto L_380312C0;
   1856       case 0x380312C2u: goto L_380312C2;
   1857       case 0x380312C4u: goto L_380312C4;
   1858       case 0x380312CAu: goto L_380312CA;
   1859       case 0x380312CDu: goto L_380312CD;
   1860       case 0x380312D0u: goto L_380312D0;
   1861       case 0x380312D3u: goto L_380312D3;
   1862       case 0x380312D6u: goto L_380312D6;
   1863       case 0x380312D9u: goto L_380312D9;
   1864       case 0x380312DCu: goto L_380312DC;
   1865       case 0x380312E2u: goto L_380312E2;
   1866       case 0x380312E5u: goto L_380312E5;
   1867       case 0x380312E7u: goto L_380312E7;
   1868       case 0x380312E8u: goto L_380312E8;
   1869       case 0x380312EEu: goto L_380312EE;
   1870       case 0x380312F0u: goto L_380312F0;
   1871       case 0x380312F3u: goto L_380312F3;
   1872       case 0x380312F6u: goto L_380312F6;
   1873       case 0x380312F9u: goto L_380312F9;
   1874       case 0x380312FBu: goto L_380312FB;
   1875       case 0x380312FEu: goto L_380312FE;
   1876       case 0x38031301u: goto L_38031301;
   1877       case 0x38031303u: goto L_38031303;
   1878       case 0x38031306u: goto L_38031306;
   1879       case 0x38031309u: goto L_38031309;
   1880       case 0x3803130Bu: goto L_3803130B;
   1881       case 0x3803130Eu: goto L_3803130E;
   1882       case 0x38031311u: goto L_38031311;
   1883       case 0x38031314u: goto L_38031314;
   1884       case 0x38031317u: goto L_38031317;
   1885       case 0x38031319u: goto L_38031319;
   1886       case 0x3803131Cu: goto L_3803131C;
   1887       case 0x3803131Fu: goto L_3803131F;
   1888       case 0x38031321u: goto L_38031321;
   1889       case 0x38031323u: goto L_38031323;
   1890       case 0x38031326u: goto L_38031326;
   1891       case 0x38031328u: goto L_38031328;
   1892       case 0x3803132Bu: goto L_3803132B;
   1893       case 0x3803132Eu: goto L_3803132E;
   1894       case 0x38031331u: goto L_38031331;
   1895       case 0x38031334u: goto L_38031334;
   1896       case 0x38031337u: goto L_38031337;
   1897       case 0x3803133Au: goto L_3803133A;
   1898       case 0x3803133Cu: goto L_3803133C;
   1899       case 0x3803133Fu: goto L_3803133F;
   1900       case 0x38031342u: goto L_38031342;
   1901       case 0x38031344u: goto L_38031344;
   1902       case 0x38031346u: goto L_38031346;
   1903       case 0x38031349u: goto L_38031349;
   1904       case 0x3803134Bu: goto L_3803134B;
   1905       case 0x3803134Eu: goto L_3803134E;
   1906       case 0x38031351u: goto L_38031351;
   1907       case 0x38031353u: goto L_38031353;
   1908       case 0x38031356u: goto L_38031356;
   1909       case 0x38031359u: goto L_38031359;
   1910       case 0x3803135Cu: goto L_3803135C;
   1911       case 0x3803135Fu: goto L_3803135F;
   1912       case 0x38031362u: goto L_38031362;
   1913       case 0x38031365u: goto L_38031365;
   1914       case 0x38031368u: goto L_38031368;
   1915       case 0x3803136Eu: goto L_3803136E;
   1916       case 0x38031370u: goto L_38031370;
   1917       case 0x38031373u: goto L_38031373;
   1918       case 0x38031376u: goto L_38031376;
   1919       case 0x38031379u: goto L_38031379;
   1920       case 0x3803137Cu: goto L_3803137C;
   1921       case 0x38031382u: goto L_38031382;
   1922       case 0x38031384u: goto L_38031384;
   1923       case 0x38031386u: goto L_38031386;
   1924       case 0x38031389u: goto L_38031389;
   1925       case 0x3803138Cu: goto L_3803138C;
   1926       case 0x38031392u: goto L_38031392;
   1927       case 0x38031394u: goto L_38031394;
   1928       case 0x3803139Au: goto L_3803139A;
   1929       case 0x3803139Du: goto L_3803139D;
   1930       case 0x380313A3u: goto L_380313A3;
   1931       case 0x380313A6u: goto L_380313A6;
   1932       case 0x380313ACu: goto L_380313AC;
   1933       case 0x380313ADu: goto L_380313AD;
   1934       case 0x380313B3u: goto L_380313B3;
   1935       case 0x380313B9u: goto L_380313B9;
   1936       case 0x380313BAu: goto L_380313BA;
   1937       case 0x380313BDu: goto L_380313BD;
   1938       case 0x380313C3u: goto L_380313C3;
   1939       case 0x380313C6u: goto L_380313C6;
   1940       case 0x380313C8u: goto L_380313C8;
   1941       case 0x380313CAu: goto L_380313CA;
   1942       case 0x380313D0u: goto L_380313D0;
   1943       case 0x380313D3u: goto L_380313D3;
   1944       case 0x380313D9u: goto L_380313D9;
   1945       case 0x380313DCu: goto L_380313DC;
   1946       case 0x380313DDu: goto L_380313DD;
   1947       case 0x380313E3u: goto L_380313E3;
   1948       case 0x380313E6u: goto L_380313E6;
   1949       case 0x380313ECu: goto L_380313EC;
   1950       case 0x380313F2u: goto L_380313F2;
   1951       case 0x380313F7u: goto L_380313F7;
   1952       case 0x380313FDu: goto L_380313FD;
   1953       case 0x38031403u: goto L_38031403;
   1954       case 0x38031409u: goto L_38031409;
   1955       case 0x3803140Au: goto L_3803140A;
   1956       case 0x3803140Du: goto L_3803140D;
   1957       case 0x38031413u: goto L_38031413;
   1958       case 0x38031419u: goto L_38031419;
   1959       case 0x3803141Au: goto L_3803141A;
   1960       case 0x3803141Du: goto L_3803141D;
   1961       case 0x38031423u: goto L_38031423;
   1962       case 0x38031426u: goto L_38031426;
   1963       case 0x38031429u: goto L_38031429;
   1964       case 0x3803142Cu: goto L_3803142C;
   1965       case 0x3803142Fu: goto L_3803142F;
   1966       case 0x38031432u: goto L_38031432;
   1967       case 0x38031435u: goto L_38031435;
   1968       case 0x3803143Bu: goto L_3803143B;
   1969       case 0x3803143Eu: goto L_3803143E;
   1970       case 0x38031441u: goto L_38031441;
   1971       case 0x38031444u: goto L_38031444;
   1972       case 0x3803144Au: goto L_3803144A;
   1973       case 0x3803144Bu: goto L_3803144B;
   1974       case 0x38031451u: goto L_38031451;
   1975       case 0x38031454u: goto L_38031454;
   1976       case 0x3803145Au: goto L_3803145A;
   1977       case 0x3803145Du: goto L_3803145D;
   1978       case 0x38031460u: goto L_38031460;
   1979       case 0x38031463u: goto L_38031463;
   1980       case 0x38031469u: goto L_38031469;
   1981       case 0x3803146Bu: goto L_3803146B;
   1982       case 0x38031471u: goto L_38031471;
   1983       case 0x38031474u: goto L_38031474;
   1984       case 0x3803147Au: goto L_3803147A;
   1985       case 0x3803147Du: goto L_3803147D;
   1986       case 0x38031483u: goto L_38031483;
   1987       case 0x38031484u: goto L_38031484;
   1988       case 0x3803148Au: goto L_3803148A;
   1989       case 0x3803148Bu: goto L_3803148B;
   1990       case 0x3803148Eu: goto L_3803148E;
   1991       case 0x38031494u: goto L_38031494;
   1992       case 0x3803149Au: goto L_3803149A;
   1993       case 0x3803149Du: goto L_3803149D;
   1994       case 0x3803149Fu: goto L_3803149F;
   1995       case 0x380314A1u: goto L_380314A1;
   1996       case 0x380314A7u: goto L_380314A7;
   1997       case 0x380314AAu: goto L_380314AA;
   1998       case 0x380314B0u: goto L_380314B0;
   1999       case 0x380314B3u: goto L_380314B3;
   2000       case 0x380314B4u: goto L_380314B4;
   2001       case 0x380314BAu: goto L_380314BA;
   2002       case 0x380314BDu: goto L_380314BD;
   2003       case 0x380314C3u: goto L_380314C3;
   2004       case 0x380314C9u: goto L_380314C9;
   2005       case 0x380314CEu: goto L_380314CE;
   2006       case 0x380314D4u: goto L_380314D4;
   2007       case 0x380314DAu: goto L_380314DA;
   2008       case 0x380314E0u: goto L_380314E0;
   2009       case 0x380314E1u: goto L_380314E1;
   2010       case 0x380314E4u: goto L_380314E4;
   2011       case 0x380314EAu: goto L_380314EA;
   2012       case 0x380314F0u: goto L_380314F0;
   2013       case 0x380314F1u: goto L_380314F1;
   2014       case 0x380314F4u: goto L_380314F4;
   2015       case 0x380314FAu: goto L_380314FA;
   2016       case 0x380314FDu: goto L_380314FD;
   2017       case 0x38031500u: goto L_38031500;
   2018       case 0x38031503u: goto L_38031503;
   2019       case 0x38031508u: goto L_38031508;
   2020       case 0x3803150Bu: goto L_3803150B;
   2021       case 0x38031510u: goto L_38031510;
   2022       case 0x38031513u: goto L_38031513;
   2023       case 0x38031516u: goto L_38031516;
   2024       case 0x38031519u: goto L_38031519;
   2025       case 0x3803151Cu: goto L_3803151C;
   2026       case 0x3803151Fu: goto L_3803151F;
   2027       case 0x38031525u: goto L_38031525;
   2028       case 0x38031527u: goto L_38031527;
   2029       case 0x3803152Du: goto L_3803152D;
   2030       case 0x38031530u: goto L_38031530;
   2031       case 0x38031532u: goto L_38031532;
   2032       case 0x38031534u: goto L_38031534;
   2033       case 0x38031536u: goto L_38031536;
   2034       case 0x3803153Bu: goto L_3803153B;
   2035       case 0x3803153Eu: goto L_3803153E;
   2036       case 0x38031540u: goto L_38031540;
   2037       case 0x38031542u: goto L_38031542;
   2038       case 0x38031545u: goto L_38031545;
   2039       case 0x38031547u: goto L_38031547;
   2040       case 0x3803154Au: goto L_3803154A;
   2041       case 0x3803154Du: goto L_3803154D;
   2042       case 0x38031550u: goto L_38031550;
   2043       case 0x38031552u: goto L_38031552;
   2044       case 0x38031554u: goto L_38031554;
   2045       case 0x3803155Au: goto L_3803155A;
   2046       case 0x3803155Du: goto L_3803155D;
   2047       case 0x38031560u: goto L_38031560;
   2048       case 0x38031561u: goto L_38031561;
   2049       case 0x38031562u: goto L_38031562;
   2050       case 0x38031564u: goto L_38031564;
   2051       case 0x38031569u: goto L_38031569;
   2052       case 0x3803156Cu: goto L_3803156C;
   2053       case 0x3803156Fu: goto L_3803156F;
   2054       case 0x38031572u: goto L_38031572;
   2055       case 0x38031578u: goto L_38031578;
   2056       case 0x3803157Eu: goto L_3803157E;
   2057       case 0x38031584u: goto L_38031584;
   2058       case 0x38031587u: goto L_38031587;
   2059       case 0x38031588u: goto L_38031588;
   2060       case 0x38031589u: goto L_38031589;
   2061       case 0x3803158Bu: goto L_3803158B;
   2062       case 0x38031591u: goto L_38031591;
   2063       case 0x38031596u: goto L_38031596;
   2064       case 0x3803159Cu: goto L_3803159C;
   2065       case 0x3803159Fu: goto L_3803159F;
   2066       case 0x380315A2u: goto L_380315A2;
   2067       case 0x380315A8u: goto L_380315A8;
   2068       case 0x380315AAu: goto L_380315AA;
   2069       case 0x380315ADu: goto L_380315AD;
   2070       case 0x380315B3u: goto L_380315B3;
   2071       case 0x380315B5u: goto L_380315B5;
   2072       case 0x380315BAu: goto L_380315BA;
   2073       case 0x380315BDu: goto L_380315BD;
   2074       case 0x380315C0u: goto L_380315C0;
   2075       case 0x380315C2u: goto L_380315C2;
   2076       case 0x380315C9u: goto L_380315C9;
   2077       case 0x380315CBu: goto L_380315CB;
   2078       case 0x380315CCu: goto L_380315CC;
   2079       case 0x380315CDu: goto L_380315CD;
   2080       case 0x380315CEu: goto L_380315CE;
   2081       case 0x380315CFu: goto L_380315CF;
   2082       case 0x380315D0u: goto L_380315D0;
   2083       case 0x380315D1u: goto L_380315D1;
   2084       case 0x380315D6u: goto L_380315D6;
   2085       case 0x380315DBu: goto L_380315DB;
   2086       case 0x380315DEu: goto L_380315DE;
   2087       case 0x380315DFu: goto L_380315DF;
   2088       case 0x380315E2u: goto L_380315E2;
   2089       case 0x380315E3u: goto L_380315E3;
   2090       case 0x380315E5u: goto L_380315E5;
   2091       case 0x380315EAu: goto L_380315EA;
   2092       case 0x380315ECu: goto L_380315EC;
   2093       case 0x380315EEu: goto L_380315EE;
   2094       case 0x380315F4u: goto L_380315F4;
   2095       case 0x380315FAu: goto L_380315FA;
   2096       case 0x380315FBu: goto L_380315FB;
   2097       case 0x38031601u: goto L_38031601;
   2098       case 0x38031604u: goto L_38031604;
   2099       case 0x38031606u: goto L_38031606;
   2100       case 0x38031607u: goto L_38031607;
   2101       case 0x3803160Eu: goto L_3803160E;
   2102       case 0x38031613u: goto L_38031613;
   2103       case 0x38031616u: goto L_38031616;
   2104       case 0x3803161Cu: goto L_3803161C;
   2105       case 0x3803161Fu: goto L_3803161F;
   2106       case 0x38031622u: goto L_38031622;
   2107       case 0x38031628u: goto L_38031628;
   2108       case 0x3803162Eu: goto L_3803162E;
   2109       case 0x38031631u: goto L_38031631;
   2110       case 0x38031633u: goto L_38031633;
   2111       case 0x38031636u: goto L_38031636;
   2112       case 0x38031638u: goto L_38031638;
   2113       case 0x3803163Au: goto L_3803163A;
   2114       case 0x38031640u: goto L_38031640;
   2115       case 0x38031643u: goto L_38031643;
   2116       case 0x38031646u: goto L_38031646;
   2117       case 0x3803164Cu: goto L_3803164C;
   2118       case 0x3803164Eu: goto L_3803164E;
   2119       case 0x38031651u: goto L_38031651;
   2120       case 0x38031657u: goto L_38031657;
   2121       case 0x38031659u: goto L_38031659;
   2122       case 0x3803165Eu: goto L_3803165E;
   2123       case 0x38031661u: goto L_38031661;
   2124       case 0x38031664u: goto L_38031664;
   2125       case 0x38031666u: goto L_38031666;
   2126       case 0x3803166Du: goto L_3803166D;
   2127       case 0x3803166Fu: goto L_3803166F;
   2128       case 0x38031670u: goto L_38031670;
   2129       case 0x38031671u: goto L_38031671;
   2130       case 0x38031672u: goto L_38031672;
   2131       case 0x38031673u: goto L_38031673;
   2132       case 0x38031674u: goto L_38031674;
   2133       case 0x38031675u: goto L_38031675;
   2134       case 0x3803167Au: goto L_3803167A;
   2135       case 0x3803167Fu: goto L_3803167F;
   2136       case 0x38031682u: goto L_38031682;
   2137       case 0x38031683u: goto L_38031683;
   2138       case 0x38031686u: goto L_38031686;
   2139       case 0x38031687u: goto L_38031687;
   2140       case 0x38031689u: goto L_38031689;
   2141       case 0x3803168Eu: goto L_3803168E;
   2142       case 0x38031690u: goto L_38031690;
   2143       case 0x38031692u: goto L_38031692;
   2144       case 0x38031698u: goto L_38031698;
   2145       case 0x3803169Eu: goto L_3803169E;
   2146       case 0x380316A1u: goto L_380316A1;
   2147       case 0x380316A7u: goto L_380316A7;
   2148       case 0x380316A8u: goto L_380316A8;
   2149       case 0x380316AAu: goto L_380316AA;
   2150       case 0x380316B1u: goto L_380316B1;
   2151       case 0x380316B2u: goto L_380316B2;
   2152       case 0x380316B7u: goto L_380316B7;
   2153       case 0x380316BDu: goto L_380316BD;
   2154       case 0x380316C0u: goto L_380316C0;
   2155       case 0x380316C2u: goto L_380316C2;
   2156       case 0x380316C6u: goto L_380316C6;
   2157       case 0x380316C7u: goto L_380316C7;
   2158       case 0x380316CAu: goto L_380316CA;
   2159       case 0x380316D0u: goto L_380316D0;
   2160       case 0x380316D3u: goto L_380316D3;
   2161       case 0x380316D5u: goto L_380316D5;
   2162       case 0x380316DBu: goto L_380316DB;
   2163       case 0x380316DCu: goto L_380316DC;
   2164       case 0x380316DDu: goto L_380316DD;
   2165       case 0x380316DFu: goto L_380316DF;
   2166       case 0x380316E4u: goto L_380316E4;
   2167       case 0x380316E7u: goto L_380316E7;
   2168       case 0x380316E8u: goto L_380316E8;
   2169       case 0x380316E9u: goto L_380316E9;
   2170       case 0x380316F0u: goto L_380316F0;
   2171       case 0x380316F2u: goto L_380316F2;
   2172       case 0x380316F3u: goto L_380316F3;
   2173       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2174     }
   2175     RECOMP_REGS_OUT();
   2176 }
   2177 
   2178 void sub_38031554(void) {
   2179     int _fpu_cmp = 0;
   2180     uint32_t _cf = 0;
   2181     int _df = 1;
   2182     uint32_t _flag_k = FK_NONE;
   2183     uint32_t _flag_a = 0, _flag_b = 0;
   2184     uint32_t _itail_tgt = 0;
   2185     RECOMP_REGS_LOCALS
   2186     RECOMP_ENTER(0x38031554u);
   2187 
   2188     goto L_38031554;
   2189 L_38030E4E:
   2190     ecx = MEM32(esi + 0x80); /* 0x38030E4E: mov ecx, dword ptr [esi + 0x80] */
   2191 L_38030E54:
   2192     edi = MEM32(ebp + 0xC); /* 0x38030E54: mov edi, dword ptr [ebp + 0xc] */
   2193 L_38030E57:
   2194     eax = ecx + eax * 4; /* 0x38030E57: lea eax, [ecx + eax*4] */
   2195 L_38030E5A:
   2196     ecx = (int32_t)(int16_t)MEM16(eax); /* 0x38030E5A: movsx ecx, word ptr [eax] */
   2197 L_38030E5D:
   2198     /* cmp ecx, edi */ /* 0x38030E5D: cmp ecx, edi */
   2199     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2201     _flag_k = FK_CMP;
   2202 L_38030E5F:
   2203     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E5F: je 0x380316b7 */
   2204 L_38030E65:
   2205     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x38030E65: cmp ecx, dword ptr [esi + 0xc] */
   2206     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   2207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2208     _flag_k = FK_CMP;
   2209 L_38030E68:
   2210     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E68: je 0x380316b7 */
   2211 L_38030E6E:
   2212     ecx = MEM32(esi + 0xB0); /* 0x38030E6E: mov ecx, dword ptr [esi + 0xb0] */
   2213 L_38030E74:
   2214     /* cmp ecx, ebx */ /* 0x38030E74: cmp ecx, ebx */
   2215     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2217     _flag_k = FK_CMP;
   2218 L_38030E76:
   2219     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E76: je 0x380316b7 */
   2220 L_38030E7C:
   2221     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x38030E7C: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
   2222     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
   2223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2224     _flag_k = FK_CMP;
   2225 L_38030E84:
   2226     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380310BB; /* 0x38030E84: je 0x380310bb */
   2227 L_38030E8A:
   2228     edx = MEM32(esi + 0x44); /* 0x38030E8A: mov edx, dword ptr [esi + 0x44] */
   2229 L_38030E8D:
   2230     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x38030E8D: mov ax, word ptr [eax + 2] */
   2231 L_38030E91:
   2232     MEM32(ebp + (-0xE4)) = edx; /* 0x38030E91: mov dword ptr [ebp - 0xe4], edx */
   2233 L_38030E97:
   2234     MEM32(ebp + (-0xE0)) = ebx; /* 0x38030E97: mov dword ptr [ebp - 0xe0], ebx */
   2235 L_38030E9D:
   2236     fp_push_i64((int64_t)MEM64(ebp + (-0xE4))); /* 0x38030E9D: fild qword ptr [ebp - 0xe4] */
   2237 L_38030EA3:
   2238     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38030EA3: fmul dword ptr [0x3804eac0] */
   2239 L_38030EA9:
   2240     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2241     eax = eax & 3; /* 0x38030EA9: and eax, 3 */
   2242     _cf = 0;
   2243     _flag_k = FK_TEST;
   2244 L_38030EAC:
   2245     MEM32(ebp + (-0x14)) = eax; /* 0x38030EAC: mov dword ptr [ebp - 0x14], eax */
   2246 L_38030EAF:
   2247     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030EAF: fcom dword ptr [0x3804e8e4] */
   2248 L_38030EB5:
   2249     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EB5: fnstsw ax */
   2250 L_38030EB7:
   2251     /* test HI8(eax), 1 */ /* 0x38030EB7: test ah, 1 */
   2252     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2253     _cf = 0;
   2254     _flag_k = FK_NARROW(FK_TEST, 24);
   2255 L_38030EBA:
   2256     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030ED1; /* 0x38030EBA: jne 0x38030ed1 */
   2257 L_38030EBC:
   2258     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030EBC: fcom qword ptr [0x3804e8f8] */
   2259 L_38030EC2:
   2260     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EC2: fnstsw ax */
   2261 L_38030EC4:
   2262     /* test HI8(eax), 1 */ /* 0x38030EC4: test ah, 1 */
   2263     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2264     _cf = 0;
   2265     _flag_k = FK_NARROW(FK_TEST, 24);
   2266 L_38030EC7:
   2267     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030ED1; /* 0x38030EC7: je 0x38030ed1 */
   2268 L_38030EC9:
   2269     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030EC9: fmul dword ptr [0x3804e8bc] */
   2270 L_38030ECF:
   2271     goto L_38030EF2; /* 0x38030ECF: jmp 0x38030ef2 */
   2272 L_38030ED1:
   2273     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030ED1: fmul dword ptr [0x3804e8f4] */
   2274 L_38030ED7:
   2275     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2277     esp = esp - 8; /* 0x38030ED7: sub esp, 8 */
   2278     _flag_k = FK_CMP;
   2279 L_38030EDA:
   2280     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EDA: fst dword ptr [ebp - 0x10] */
   2281 L_38030EDD:
   2282     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030EDD: fstp qword ptr [esp] */
   2283 L_38030EE0:
   2284     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030EE0: call dword ptr [0x3804e0ac] */
   2285     RECOMP_FLAGS_IN();
   2286 L_38030EE6:
   2287     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030EE6: fsubr dword ptr [ebp - 0x10] */
   2288 L_38030EE9:
   2289     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2291     esp = esp + 8; /* 0x38030EE9: add esp, 8 */
   2292     _flag_k = FK_ADD;
   2293 L_38030EEC:
   2294     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030EEC: fmul dword ptr [0x3804e8f0] */
   2295 L_38030EF2:
   2296     fp_push(_st[0]); /* 0x38030EF2: fld st(0) */
   2297 L_38030EF4:
   2298     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030EF4: fsin  */
   2299 L_38030EF6:
   2300     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030EF6: fld dword ptr [0x3804e8e4] */
   2301 L_38030EFC:
   2302     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EFC: fst dword ptr [ebp - 0x10] */
   2303 L_38030EFF:
   2304     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38030EFF: fstp dword ptr [ebp - 0x74] */
   2305 L_38030F02:
   2306     eax = MEM32(ebp + (-0x10)); /* 0x38030F02: mov eax, dword ptr [ebp - 0x10] */
   2307 L_38030F05:
   2308     MEM32(ebp + (-0x6C)) = eax; /* 0x38030F05: mov dword ptr [ebp - 0x6c], eax */
   2309 L_38030F08:
   2310     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x38030F08: fstp dword ptr [ebp - 0x70] */
   2311 L_38030F0B:
   2312     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F0B: fcos  */
   2313 L_38030F0D:
   2314     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38030F0D: fstp dword ptr [ebp - 0x68] */
   2315 L_38030F10:
   2316     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38030F10: fild dword ptr [ebp - 0x14] */
   2317 L_38030F13:
   2318     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38030F13: fmul qword ptr [0x3804f6a0] */
   2319 L_38030F19:
   2320     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38030F19: fadd qword ptr [0x3804f698] */
   2321 L_38030F1F:
   2322     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030F1F: fcom dword ptr [0x3804e8e4] */
   2323 L_38030F25:
   2324     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F25: fnstsw ax */
   2325 L_38030F27:
   2326     /* test HI8(eax), 1 */ /* 0x38030F27: test ah, 1 */
   2327     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2328     _cf = 0;
   2329     _flag_k = FK_NARROW(FK_TEST, 24);
   2330 L_38030F2A:
   2331     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030F41; /* 0x38030F2A: jne 0x38030f41 */
   2332 L_38030F2C:
   2333     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030F2C: fcom qword ptr [0x3804e8f8] */
   2334 L_38030F32:
   2335     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F32: fnstsw ax */
   2336 L_38030F34:
   2337     /* test HI8(eax), 1 */ /* 0x38030F34: test ah, 1 */
   2338     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2339     _cf = 0;
   2340     _flag_k = FK_NARROW(FK_TEST, 24);
   2341 L_38030F37:
   2342     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030F41; /* 0x38030F37: je 0x38030f41 */
   2343 L_38030F39:
   2344     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030F39: fmul dword ptr [0x3804e8bc] */
   2345 L_38030F3F:
   2346     goto L_38030F62; /* 0x38030F3F: jmp 0x38030f62 */
   2347 L_38030F41:
   2348     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030F41: fmul dword ptr [0x3804e8f4] */
   2349 L_38030F47:
   2350     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2351     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2352     esp = esp - 8; /* 0x38030F47: sub esp, 8 */
   2353     _flag_k = FK_CMP;
   2354 L_38030F4A:
   2355     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030F4A: fst dword ptr [ebp - 0x10] */
   2356 L_38030F4D:
   2357     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030F4D: fstp qword ptr [esp] */
   2358 L_38030F50:
   2359     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030F50: call dword ptr [0x3804e0ac] */
   2360     RECOMP_FLAGS_IN();
   2361 L_38030F56:
   2362     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030F56: fsubr dword ptr [ebp - 0x10] */
   2363 L_38030F59:
   2364     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2365     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2366     esp = esp + 8; /* 0x38030F59: add esp, 8 */
   2367     _flag_k = FK_ADD;
   2368 L_38030F5C:
   2369     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030F5C: fmul dword ptr [0x3804e8f0] */
   2370 L_38030F62:
   2371     fp_push(_st[0]); /* 0x38030F62: fld st(0) */
   2372 L_38030F64:
   2373     PUSH32(esp, 0x3806CB10u); /* 0x38030F64: push 0x3806cb10 */
   2374 L_38030F69:
   2375     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030F69: fsin  */
   2376 L_38030F6B:
   2377     PUSH32(esp, 0x000F6951u); /* 0x38030F6B: push 0xf6951 */
   2378 L_38030F70:
   2379     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030F70: fld dword ptr [0x3804e8e4] */
   2380 L_38030F76:
   2381     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030F76: fst dword ptr [ebp - 0x14] */
   2382 L_38030F79:
   2383     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38030F79: fstp dword ptr [ebp - 0x64] */
   2384 L_38030F7C:
   2385     ecx = MEM32(ebp + (-0x14)); /* 0x38030F7C: mov ecx, dword ptr [ebp - 0x14] */
   2386 L_38030F7F:
   2387     MEM32(ebp + (-0x5C)) = ecx; /* 0x38030F7F: mov dword ptr [ebp - 0x5c], ecx */
   2388 L_38030F82:
   2389     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x38030F82: fstp dword ptr [ebp - 0x60] */
   2390 L_38030F85:
   2391     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F85: fcos  */
   2392 L_38030F87:
   2393     fp_push(_st[0]); /* 0x38030F87: fld st(0) */
   2394 L_38030F89:
   2395     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030F89: fmul dword ptr [ebp - 0x74] */
   2396 L_38030F8C:
   2397     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030F8C: fld dword ptr [ebp - 0x5c] */
   2398 L_38030F8F:
   2399     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030F8F: fmul dword ptr [ebp - 0x70] */
   2400 L_38030F92:
   2401     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030F92: faddp st(1) */
   2402 L_38030F94:
   2403     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030F94: fld dword ptr [ebp - 0x60] */
   2404 L_38030F97:
   2405     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030F97: fmul dword ptr [ebp - 0x6c] */
   2406 L_38030F9A:
   2407     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030F9A: fsubp st(1) */
   2408 L_38030F9C:
   2409     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x38030F9C: fld dword ptr [ebp - 0x68] */
   2410 L_38030F9F:
   2411     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030F9F: fmul dword ptr [ebp - 0x64] */
   2412 L_38030FA2:
   2413     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FA2: faddp st(1) */
   2414 L_38030FA4:
   2415     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FA4: fld dword ptr [ebp - 0x60] */
   2416 L_38030FA7:
   2417     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FA7: fmul dword ptr [ebp - 0x68] */
   2418 L_38030FAA:
   2419     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FAA: fld dword ptr [ebp - 0x5c] */
   2420 L_38030FAD:
   2421     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FAD: fmul dword ptr [ebp - 0x74] */
   2422 L_38030FB0:
   2423     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FB0: fsubp st(1) */
   2424 L_38030FB2:
   2425     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x38030FB2: fld dword ptr [ebp - 0x6c] */
   2426 L_38030FB5:
   2427     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FB5: fmul dword ptr [ebp - 0x64] */
   2428 L_38030FB8:
   2429     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FB8: faddp st(1) */
   2430 L_38030FBA:
   2431     fp_push(_st[2]); /* 0x38030FBA: fld st(2) */
   2432 L_38030FBC:
   2433     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030FBC: fmul dword ptr [ebp - 0x70] */
   2434 L_38030FBF:
   2435     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FBF: faddp st(1) */
   2436 L_38030FC1:
   2437     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030FC1: fstp dword ptr [ebp - 0x14] */
   2438 L_38030FC4:
   2439     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FC4: fld dword ptr [ebp - 0x60] */
   2440 L_38030FC7:
   2441     edx = MEM32(ebp + (-0x14)); /* 0x38030FC7: mov edx, dword ptr [ebp - 0x14] */
   2442 L_38030FCA:
   2443     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FCA: fmul dword ptr [ebp - 0x74] */
   2444 L_38030FCD:
   2445     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x38030FCD: fld dword ptr [ebp - 0x70] */
   2446 L_38030FD0:
   2447     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FD0: fmul dword ptr [ebp - 0x64] */
   2448 L_38030FD3:
   2449     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FD3: fsubp st(1) */
   2450 L_38030FD5:
   2451     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FD5: fld dword ptr [ebp - 0x5c] */
   2452 L_38030FD8:
   2453     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FD8: fmul dword ptr [ebp - 0x68] */
   2454 L_38030FDB:
   2455     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FDB: faddp st(1) */
   2456 L_38030FDD:
   2457     fp_push(_st[2]); /* 0x38030FDD: fld st(2) */
   2458 L_38030FDF:
   2459     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FDF: fmul dword ptr [ebp - 0x6c] */
   2460 L_38030FE2:
   2461     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FE2: faddp st(1) */
   2462 L_38030FE4:
   2463     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030FE4: fstp dword ptr [ebp - 0x10] */
   2464 L_38030FE7:
   2465     eax = MEM32(ebp + (-0x10)); /* 0x38030FE7: mov eax, dword ptr [ebp - 0x10] */
   2466 L_38030FEA:
   2467     fp_xch(1); /* 0x38030FEA: fxch st(1) */
   2468 L_38030FEC:
   2469     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FEC: fmul dword ptr [ebp - 0x68] */
   2470 L_38030FEF:
   2471     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x38030FEF: fld dword ptr [ebp - 0x64] */
   2472 L_38030FF2:
   2473     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FF2: fmul dword ptr [ebp - 0x74] */
   2474 L_38030FF5:
   2475     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FF5: fld dword ptr [ebp - 0x5c] */
   2476 L_38030FF8:
   2477     MEM32(ebp + (-0x5C)) = eax; /* 0x38030FF8: mov dword ptr [ebp - 0x5c], eax */
   2478 L_38030FFB:
   2479     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FFB: fmul dword ptr [ebp - 0x6c] */
   2480 L_38030FFE:
   2481     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FFE: faddp st(1) */
   2482 L_38031000:
   2483     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38031000: fld dword ptr [ebp - 0x60] */
   2484 L_38031003:
   2485     MEM32(ebp + (-0x60)) = edx; /* 0x38031003: mov dword ptr [ebp - 0x60], edx */
   2486 L_38031006:
   2487     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38031006: fmul dword ptr [ebp - 0x70] */
   2488 L_38031009:
   2489     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031009: faddp st(1) */
   2490 L_3803100B:
   2491     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803100B: fsubp st(1) */
   2492 L_3803100D:
   2493     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3803100D: fstp dword ptr [ebp - 0x58] */
   2494 L_38031010:
   2495     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38031010: fstp dword ptr [ebp - 0x64] */
   2496 L_38031013:
   2497     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x38031013: call dword ptr [0x3804e4b0] */
   2498     RECOMP_FLAGS_IN();
   2499 L_38031019:
   2500     edi = eax; /* 0x38031019: mov edi, eax */
   2501 L_3803101B:
   2502     eax = MEM32(esi + 0x98); /* 0x3803101B: mov eax, dword ptr [esi + 0x98] */
   2503 L_38031021:
   2504     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2505     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2506     esp = esp + 8; /* 0x38031021: add esp, 8 */
   2507     _flag_k = FK_ADD;
   2508 L_38031024:
   2509     /* cmp eax, ebx */ /* 0x38031024: cmp eax, ebx */
   2510     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2512     _flag_k = FK_CMP;
   2513 L_38031026:
   2514     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803104E; /* 0x38031026: jne 0x3803104e */
   2515 L_38031028:
   2516     PUSH32(esp, 0x10u); /* 0x38031028: push 0x10 */
   2517 L_3803102A:
   2518     RECOMP_ICALL(0x3804B676u); /* 0x3803102A: call 0x3804b676 */ /* not lifted */
   2519     RECOMP_FLAGS_IN();
   2520 L_3803102F:
   2521     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2522     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2523     esp = esp + 4; /* 0x3803102F: add esp, 4 */
   2524     _flag_k = FK_ADD;
   2525 L_38031032:
   2526     /* cmp eax, ebx */ /* 0x38031032: cmp eax, ebx */
   2527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2529     _flag_k = FK_CMP;
   2530 L_38031034:
   2531     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031046; /* 0x38031034: je 0x38031046 */
   2532 L_38031036:
   2533     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031036: mov cl, byte ptr [ebp + 0xb] */
   2534 L_38031039:
   2535     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031039: mov byte ptr [eax], cl */
   2536 L_3803103B:
   2537     MEM32(eax + 0x4) = ebx; /* 0x3803103B: mov dword ptr [eax + 4], ebx */
   2538 L_3803103E:
   2539     MEM32(eax + 0x8) = ebx; /* 0x3803103E: mov dword ptr [eax + 8], ebx */
   2540 L_38031041:
   2541     MEM32(eax + 0xC) = ebx; /* 0x38031041: mov dword ptr [eax + 0xc], ebx */
   2542 L_38031044:
   2543     goto L_38031048; /* 0x38031044: jmp 0x38031048 */
   2544 L_38031046:
   2545     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2546     eax = 0; /* 0x38031046: xor eax, eax */
   2547     _cf = 0;
   2548     _flag_k = FK_TEST;
   2549 L_38031048:
   2550     MEM32(esi + 0x98) = eax; /* 0x38031048: mov dword ptr [esi + 0x98], eax */
   2551 L_3803104E:
   2552     PUSH32(esp, 0x58u); /* 0x3803104E: push 0x58 */
   2553 L_38031050:
   2554     RECOMP_ICALL(0x3804B676u); /* 0x38031050: call 0x3804b676 */ /* not lifted */
   2555     RECOMP_FLAGS_IN();
   2556 L_38031055:
   2557     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2558     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2559     esp = esp + 4; /* 0x38031055: add esp, 4 */
   2560     _flag_k = FK_ADD;
   2561 L_38031058:
   2562     MEM32(ebp + (-0x24)) = eax; /* 0x38031058: mov dword ptr [ebp - 0x24], eax */
   2563 L_3803105B:
   2564     /* cmp eax, ebx */ /* 0x3803105B: cmp eax, ebx */
   2565     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2567     _flag_k = FK_CMP;
   2568 L_3803105D:
   2569     MEM32(ebp + (-0x4)) = ebx; /* 0x3803105D: mov dword ptr [ebp - 4], ebx */
   2570 L_38031060:
   2571     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031094; /* 0x38031060: je 0x38031094 */
   2572 L_38031062:
   2573     ecx = MEM32(ebp + (-0x78)); /* 0x38031062: mov ecx, dword ptr [ebp - 0x78] */
   2574 L_38031065:
   2575     edx = MEM32(esi + 0xB0); /* 0x38031065: mov edx, dword ptr [esi + 0xb0] */
   2576 L_3803106B:
   2577     fp_push(*(float*)&MEM32(edx + ecx + 0xC)); /* 0x3803106B: fld dword ptr [edx + ecx + 0xc] */
   2578 L_3803106F:
   2579     PUSH32(esp, ebx); /* 0x3803106F: push ebx */
   2580 L_38031070:
   2581     _st[0] *= (double)*(float*)ADDR(0x3804F694); /* 0x38031070: fmul dword ptr [0x3804f694] */
   2582 L_38031076:
   2583     PUSH32(esp, ebx); /* 0x38031076: push ebx */
   2584 L_38031077:
   2585     PUSH32(esp, ebx); /* 0x38031077: push ebx */
   2586 L_38031078:
   2587     PUSH32(esp, ebx); /* 0x38031078: push ebx */
   2588 L_38031079:
   2589     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2590     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2591     edx = edx + ecx; /* 0x38031079: add edx, ecx */
   2592     _flag_k = FK_ADD;
   2593 L_3803107B:
   2594     PUSH32(esp, ebx); /* 0x3803107B: push ebx */
   2595 L_3803107C:
   2596     PUSH32(esp, edi); /* 0x3803107C: push edi */
   2597 L_3803107D:
   2598     PUSH32(esp, ecx); /* 0x3803107D: push ecx */
   2599 L_3803107E:
   2600     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3803107E: fstp dword ptr [esp] */
   2601 L_38031081:
   2602     PUSH32(esp, 0x00FFFFFFu); /* 0x38031081: push 0xffffff */
   2603 L_38031086:
   2604     ecx = ebp + (-0x64); /* 0x38031086: lea ecx, [ebp - 0x64] */
   2605 L_38031089:
   2606     PUSH32(esp, ecx); /* 0x38031089: push ecx */
   2607 L_3803108A:
   2608     PUSH32(esp, edx); /* 0x3803108A: push edx */
   2609 L_3803108B:
   2610     ecx = eax; /* 0x3803108B: mov ecx, eax */
   2611 L_3803108D:
   2612     RECOMP_ICALL(0x3800B350u); /* 0x3803108D: call 0x3800b350 */ /* not lifted */
   2613     RECOMP_FLAGS_IN();
   2614 L_38031092:
   2615     goto L_38031096; /* 0x38031092: jmp 0x38031096 */
   2616 L_38031094:
   2617     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2618     eax = 0; /* 0x38031094: xor eax, eax */
   2619     _cf = 0;
   2620     _flag_k = FK_TEST;
   2621 L_38031096:
   2622     ecx = MEM32(esi + 0x98); /* 0x38031096: mov ecx, dword ptr [esi + 0x98] */
   2623 L_3803109C:
   2624     edx = ebp + (-0xB0); /* 0x3803109C: lea edx, [ebp - 0xb0] */
   2625 L_380310A2:
   2626     PUSH32(esp, edx); /* 0x380310A2: push edx */
   2627 L_380310A3:
   2628     MEM32(ebp + (-0xB0)) = eax; /* 0x380310A3: mov dword ptr [ebp - 0xb0], eax */
   2629 L_380310A9:
   2630     eax = MEM32(ecx + 0x8); /* 0x380310A9: mov eax, dword ptr [ecx + 8] */
   2631 L_380310AC:
   2632     PUSH32(esp, 1); /* 0x380310AC: push 1 */
   2633 L_380310AE:
   2634     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380310AE: mov dword ptr [ebp - 4], 0xffffffff */
   2635 L_380310B5:
   2636     PUSH32(esp, eax); /* 0x380310B5: push eax */
   2637 L_380310B6:
   2638     goto L_380316B2; /* 0x380310B6: jmp 0x380316b2 */
   2639 L_380310BB:
   2640     /* cmp ecx, ebx */ /* 0x380310BB: cmp ecx, ebx */
   2641     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2643     _flag_k = FK_CMP;
   2644 L_380310BD:
   2645     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x380310BD: je 0x380316b7 */
   2646 L_380310C3:
   2647     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x380310C3: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
   2648     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
   2649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2650     _flag_k = FK_CMP;
   2651 L_380310CB:
   2652     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_380316B7; /* 0x380310CB: jne 0x380316b7 */
   2653 L_380310D1:
   2654     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x380310D1: mov ax, word ptr [eax + 2] */
   2655 L_380310D5:
   2656     MEM32(ebp + (-0x1C)) = 0; /* 0x380310D5: mov dword ptr [ebp - 0x1c], 0 */
   2657 L_380310DC:
   2658     MEM32(ebp + (-0x10)) = eax; /* 0x380310DC: mov dword ptr [ebp - 0x10], eax */
   2659 L_380310DF:
   2660     if (2u) _cf = (((MEM16(ebp + (-0x10))) >> 1) & 1u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
   2661     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x10)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2662     MEM16(ebp + (-0x10)) = (uint16_t)(MEM16(ebp + (-0x10)) >> 2u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
   2663 L_380310E4:
   2664     ecx = MEM32(ebp + (-0x10)); /* 0x380310E4: mov ecx, dword ptr [ebp - 0x10] */
   2665 L_380310E7:
   2666     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2667     eax = eax & 3; /* 0x380310E7: and eax, 3 */
   2668     _cf = 0;
   2669     _flag_k = FK_TEST;
   2670 L_380310EA:
   2671     edi = eax; /* 0x380310EA: mov edi, eax */
   2672 L_380310EC:
   2673     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
   2674     ecx = ecx & 0xFFFFu; /* 0x380310EC: and ecx, 0xffff */
   2675     _cf = 0;
   2676     _flag_k = FK_TEST;
   2677 L_380310F2:
   2678     eax = ecx; /* 0x380310F2: mov eax, ecx */
   2679 L_380310F4:
   2680     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x380310F4: cdq  */
   2681 L_380310F5:
   2682     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x380310F5: idiv dword ptr [ebp - 0x88] */
   2683       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   2684       else { eax = 0; edx = 0; } }
   2685 L_380310FB:
   2686     eax = ecx; /* 0x380310FB: mov eax, ecx */
   2687 L_380310FD:
   2688     ecx = esi + 0x6C; /* 0x380310FD: lea ecx, [esi + 0x6c] */
   2689 L_38031100:
   2690     MEM32(ebp + (-0x24)) = edi; /* 0x38031100: mov dword ptr [ebp - 0x24], edi */
   2691 L_38031103:
   2692     MEM32(ebp + (-0x14)) = edx; /* 0x38031103: mov dword ptr [ebp - 0x14], edx */
   2693 L_38031106:
   2694     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031106: cdq  */
   2695 L_38031107:
   2696     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38031107: fild dword ptr [ebp - 0x14] */
   2697 L_3803110A:
   2698     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x3803110A: idiv dword ptr [ebp - 0x88] */
   2699       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   2700       else { eax = 0; edx = 0; } }
   2701 L_38031110:
   2702     /* cmp edi, 3 */ /* 0x38031110: cmp edi, 3 */
   2703     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   2704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2705     _flag_k = FK_CMP;
   2706 L_38031113:
   2707     edx = MEM32(ecx); /* 0x38031113: mov edx, dword ptr [ecx] */
   2708 L_38031115:
   2709     MEM32(ebp + (-0x84)) = edx; /* 0x38031115: mov dword ptr [ebp - 0x84], edx */
   2710 L_3803111B:
   2711     MEM32(ebp + (-0x10)) = eax; /* 0x3803111B: mov dword ptr [ebp - 0x10], eax */
   2712 L_3803111E:
   2713     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3803111E: fild dword ptr [ebp - 0x10] */
   2714 L_38031121:
   2715     eax = MEM32(ecx + 0x4); /* 0x38031121: mov eax, dword ptr [ecx + 4] */
   2716 L_38031124:
   2717     ecx = MEM32(ecx + 0x8); /* 0x38031124: mov ecx, dword ptr [ecx + 8] */
   2718 L_38031127:
   2719     MEM32(ebp + (-0x80)) = eax; /* 0x38031127: mov dword ptr [ebp - 0x80], eax */
   2720 L_3803112A:
   2721     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803112A: fstp dword ptr [ebp - 0x18] */
   2722 L_3803112D:
   2723     MEM32(ebp + (-0x7C)) = ecx; /* 0x3803112D: mov dword ptr [ebp - 0x7c], ecx */
   2724 L_38031130:
   2725     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031130: fmul dword ptr [ebp - 0x44] */
   2726 L_38031133:
   2727     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031133: fld dword ptr [ebp - 0x18] */
   2728 L_38031136:
   2729     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031136: fmul dword ptr [ebp - 0x44] */
   2730 L_38031139:
   2731     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031139: fstp dword ptr [ebp - 0x18] */
   2732 L_3803113C:
   2733     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x3803113C: fld dword ptr [ebp - 0x84] */
   2734 L_38031142:
   2735     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031142: fmul dword ptr [ebp - 0x44] */
   2736 L_38031145:
   2737     fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x38031145: fld dword ptr [ebp - 0x80] */
   2738 L_38031148:
   2739     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031148: fmul dword ptr [ebp - 0x44] */
   2740 L_3803114B:
   2741     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803114B: fstp dword ptr [ebp - 0x80] */
   2742 L_3803114E:
   2743     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3803114E: fld dword ptr [ebp - 0x7c] */
   2744 L_38031151:
   2745     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031151: fmul dword ptr [ebp - 0x44] */
   2746 L_38031154:
   2747     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38031154: fstp dword ptr [ebp - 0x7c] */
   2748 L_38031157:
   2749     fp_xch(1); /* 0x38031157: fxch st(1) */
   2750 L_38031159:
   2751     _st[0] -= _st[1]; /* 0x38031159: fsub st(1) */
   2752 L_3803115B:
   2753     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3803115B: fstp dword ptr [ebp - 0x20] */
   2754 L_3803115E:
   2755     edx = MEM32(ebp + (-0x20)); /* 0x3803115E: mov edx, dword ptr [ebp - 0x20] */
   2756 L_38031161:
   2757     MEM32(ebp + (-0x30)) = edx; /* 0x38031161: mov dword ptr [ebp - 0x30], edx */
   2758 L_38031164:
   2759     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031164: fstp st(0) */
   2760 L_38031166:
   2761     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38031166: fld dword ptr [ebp - 0x1c] */
   2762 L_38031169:
   2763     _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x38031169: fsub dword ptr [ebp - 0x80] */
   2764 L_3803116C:
   2765     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803116C: fstp dword ptr [ebp - 0x1c] */
   2766 L_3803116F:
   2767     eax = MEM32(ebp + (-0x1C)); /* 0x3803116F: mov eax, dword ptr [ebp - 0x1c] */
   2768 L_38031172:
   2769     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031172: fld dword ptr [ebp - 0x18] */
   2770 L_38031175:
   2771     MEM32(ebp + (-0x2C)) = eax; /* 0x38031175: mov dword ptr [ebp - 0x2c], eax */
   2772 L_38031178:
   2773     _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x38031178: fsub dword ptr [ebp - 0x7c] */
   2774 L_3803117B:
   2775     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803117B: fstp dword ptr [ebp - 0x18] */
   2776 L_3803117E:
   2777     ecx = MEM32(ebp + (-0x18)); /* 0x3803117E: mov ecx, dword ptr [ebp - 0x18] */
   2778 L_38031181:
   2779     MEM32(ebp + (-0x28)) = ecx; /* 0x38031181: mov dword ptr [ebp - 0x28], ecx */
   2780 L_38031184:
   2781     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_380311F0; /* 0x38031184: ja 0x380311f0 */
   2782 L_38031186:
   2783     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x380316F8)); goto _ljump; }
   2784 L_3803118D:
   2785     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803118D: fld dword ptr [ebp - 0x18] */
   2786 L_38031190:
   2787     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031190: fadd dword ptr [0x3804f690] */
   2788 L_38031196:
   2789     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031196: fstp dword ptr [ebp - 0x18] */
   2790 L_38031199:
   2791     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031199: fld dword ptr [ebp - 0x28] */
   2792 L_3803119C:
   2793     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x3803119C: fadd dword ptr [0x3804f68c] */
   2794 L_380311A2:
   2795     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311A2: fstp dword ptr [ebp - 0x28] */
   2796 L_380311A5:
   2797     goto L_380311F0; /* 0x380311A5: jmp 0x380311f0 */
   2798 L_380311A7:
   2799     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311A7: fld dword ptr [ebp - 0x20] */
   2800 L_380311AA:
   2801     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380311AA: fadd dword ptr [0x3804f690] */
   2802 L_380311B0:
   2803     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311B0: fstp dword ptr [ebp - 0x20] */
   2804 L_380311B3:
   2805     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311B3: fld dword ptr [ebp - 0x30] */
   2806 L_380311B6:
   2807     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x380311B6: fadd dword ptr [0x3804f68c] */
   2808 L_380311BC:
   2809     goto L_380311ED; /* 0x380311BC: jmp 0x380311ed */
   2810 L_380311BE:
   2811     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380311BE: fld dword ptr [ebp - 0x18] */
   2812 L_380311C1:
   2813     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311C1: fsub dword ptr [0x3804f690] */
   2814 L_380311C7:
   2815     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380311C7: fstp dword ptr [ebp - 0x18] */
   2816 L_380311CA:
   2817     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380311CA: fld dword ptr [ebp - 0x28] */
   2818 L_380311CD:
   2819     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311CD: fsub dword ptr [0x3804f68c] */
   2820 L_380311D3:
   2821     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311D3: fstp dword ptr [ebp - 0x28] */
   2822 L_380311D6:
   2823     goto L_380311F0; /* 0x380311D6: jmp 0x380311f0 */
   2824 L_380311D8:
   2825     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311D8: fld dword ptr [ebp - 0x20] */
   2826 L_380311DB:
   2827     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311DB: fsub dword ptr [0x3804f690] */
   2828 L_380311E1:
   2829     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311E1: fstp dword ptr [ebp - 0x20] */
   2830 L_380311E4:
   2831     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311E4: fld dword ptr [ebp - 0x30] */
   2832 L_380311E7:
   2833     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311E7: fsub dword ptr [0x3804f68c] */
   2834 L_380311ED:
   2835     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380311ED: fstp dword ptr [ebp - 0x30] */
   2836 L_380311F0:
   2837     edx = MEM32(esi + 0x44); /* 0x380311F0: mov edx, dword ptr [esi + 0x44] */
   2838 L_380311F3:
   2839     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2840     ebx = 0; /* 0x380311F3: xor ebx, ebx */
   2841     _cf = 0;
   2842     _flag_k = FK_TEST;
   2843 L_380311F5:
   2844     MEM32(ebp + (-0xDC)) = edx; /* 0x380311F5: mov dword ptr [ebp - 0xdc], edx */
   2845 L_380311FB:
   2846     MEM32(ebp + (-0xD8)) = ebx; /* 0x380311FB: mov dword ptr [ebp - 0xd8], ebx */
   2847 L_38031201:
   2848     fp_push_i64((int64_t)MEM64(ebp + (-0xDC))); /* 0x38031201: fild qword ptr [ebp - 0xdc] */
   2849 L_38031207:
   2850     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031207: fmul dword ptr [0x3804eac0] */
   2851 L_3803120D:
   2852     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803120D: fcom dword ptr [0x3804e8e4] */
   2853 L_38031213:
   2854     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031213: fnstsw ax */
   2855 L_38031215:
   2856     /* test HI8(eax), 1 */ /* 0x38031215: test ah, 1 */
   2857     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2858     _cf = 0;
   2859     _flag_k = FK_NARROW(FK_TEST, 24);
   2860 L_38031218:
   2861     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803122F; /* 0x38031218: jne 0x3803122f */
   2862 L_3803121A:
   2863     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803121A: fcom qword ptr [0x3804e8f8] */
   2864 L_38031220:
   2865     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031220: fnstsw ax */
   2866 L_38031222:
   2867     /* test HI8(eax), 1 */ /* 0x38031222: test ah, 1 */
   2868     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2869     _cf = 0;
   2870     _flag_k = FK_NARROW(FK_TEST, 24);
   2871 L_38031225:
   2872     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803122F; /* 0x38031225: je 0x3803122f */
   2873 L_38031227:
   2874     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031227: fmul dword ptr [0x3804e8bc] */
   2875 L_3803122D:
   2876     goto L_38031250; /* 0x3803122D: jmp 0x38031250 */
   2877 L_3803122F:
   2878     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803122F: fmul dword ptr [0x3804e8f4] */
   2879 L_38031235:
   2880     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2882     esp = esp - 8; /* 0x38031235: sub esp, 8 */
   2883     _flag_k = FK_CMP;
   2884 L_38031238:
   2885     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031238: fst dword ptr [ebp - 0x10] */
   2886 L_3803123B:
   2887     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3803123B: fstp qword ptr [esp] */
   2888 L_3803123E:
   2889     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3803123E: call dword ptr [0x3804e0ac] */
   2890     RECOMP_FLAGS_IN();
   2891 L_38031244:
   2892     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38031244: fsubr dword ptr [ebp - 0x10] */
   2893 L_38031247:
   2894     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2895     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2896     esp = esp + 8; /* 0x38031247: add esp, 8 */
   2897     _flag_k = FK_ADD;
   2898 L_3803124A:
   2899     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3803124A: fmul dword ptr [0x3804e8f0] */
   2900 L_38031250:
   2901     fp_push(_st[0]); /* 0x38031250: fld st(0) */
   2902 L_38031252:
   2903     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031252: fsin  */
   2904 L_38031254:
   2905     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031254: fld dword ptr [0x3804e8e4] */
   2906 L_3803125A:
   2907     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803125A: fst dword ptr [ebp - 0x14] */
   2908 L_3803125D:
   2909     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3803125D: fstp dword ptr [ebp - 0x40] */
   2910 L_38031260:
   2911     eax = MEM32(ebp + (-0x14)); /* 0x38031260: mov eax, dword ptr [ebp - 0x14] */
   2912 L_38031263:
   2913     MEM32(ebp + (-0x38)) = eax; /* 0x38031263: mov dword ptr [ebp - 0x38], eax */
   2914 L_38031266:
   2915     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x38031266: fstp dword ptr [ebp - 0x3c] */
   2916 L_38031269:
   2917     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031269: fcos  */
   2918 L_3803126B:
   2919     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3803126B: fstp dword ptr [ebp - 0x34] */
   2920 L_3803126E:
   2921     fp_push((double)(int32_t)MEM32(ebp + (-0x24))); /* 0x3803126E: fild dword ptr [ebp - 0x24] */
   2922 L_38031271:
   2923     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38031271: fmul qword ptr [0x3804f6a0] */
   2924 L_38031277:
   2925     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38031277: fadd qword ptr [0x3804f698] */
   2926 L_3803127D:
   2927     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803127D: fcom dword ptr [0x3804e8e4] */
   2928 L_38031283:
   2929     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031283: fnstsw ax */
   2930 L_38031285:
   2931     /* test HI8(eax), 1 */ /* 0x38031285: test ah, 1 */
   2932     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2933     _cf = 0;
   2934     _flag_k = FK_NARROW(FK_TEST, 24);
   2935 L_38031288:
   2936     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803129F; /* 0x38031288: jne 0x3803129f */
   2937 L_3803128A:
   2938     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803128A: fcom qword ptr [0x3804e8f8] */
   2939 L_38031290:
   2940     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031290: fnstsw ax */
   2941 L_38031292:
   2942     /* test HI8(eax), 1 */ /* 0x38031292: test ah, 1 */
   2943     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2944     _cf = 0;
   2945     _flag_k = FK_NARROW(FK_TEST, 24);
   2946 L_38031295:
   2947     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803129F; /* 0x38031295: je 0x3803129f */
   2948 L_38031297:
   2949     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031297: fmul dword ptr [0x3804e8bc] */
   2950 L_3803129D:
   2951     goto L_380312C0; /* 0x3803129D: jmp 0x380312c0 */
   2952 L_3803129F:
   2953     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803129F: fmul dword ptr [0x3804e8f4] */
   2954 L_380312A5:
   2955     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2957     esp = esp - 8; /* 0x380312A5: sub esp, 8 */
   2958     _flag_k = FK_CMP;
   2959 L_380312A8:
   2960     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380312A8: fst dword ptr [ebp - 0x10] */
   2961 L_380312AB:
   2962     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380312AB: fstp qword ptr [esp] */
   2963 L_380312AE:
   2964     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380312AE: call dword ptr [0x3804e0ac] */
   2965     RECOMP_FLAGS_IN();
   2966 L_380312B4:
   2967     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x380312B4: fsubr dword ptr [ebp - 0x10] */
   2968 L_380312B7:
   2969     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2971     esp = esp + 8; /* 0x380312B7: add esp, 8 */
   2972     _flag_k = FK_ADD;
   2973 L_380312BA:
   2974     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x380312BA: fmul dword ptr [0x3804e8f0] */
   2975 L_380312C0:
   2976     fp_push(_st[0]); /* 0x380312C0: fld st(0) */
   2977 L_380312C2:
   2978     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380312C2: fsin  */
   2979 L_380312C4:
   2980     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380312C4: fld dword ptr [0x3804e8e4] */
   2981 L_380312CA:
   2982     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380312CA: fst dword ptr [ebp - 0x24] */
   2983 L_380312CD:
   2984     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x380312CD: fstp dword ptr [ebp - 0x54] */
   2985 L_380312D0:
   2986     ecx = MEM32(ebp + (-0x24)); /* 0x380312D0: mov ecx, dword ptr [ebp - 0x24] */
   2987 L_380312D3:
   2988     MEM32(ebp + (-0x4C)) = ecx; /* 0x380312D3: mov dword ptr [ebp - 0x4c], ecx */
   2989 L_380312D6:
   2990     ecx = MEM32(ebp + (-0x40)); /* 0x380312D6: mov ecx, dword ptr [ebp - 0x40] */
   2991 L_380312D9:
   2992     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x380312D9: fstp dword ptr [ebp - 0x50] */
   2993 L_380312DC:
   2994     MEM32(ebp + (-0xFC)) = ecx; /* 0x380312DC: mov dword ptr [ebp - 0xfc], ecx */
   2995 L_380312E2:
   2996     ecx = ebp + (-0x20); /* 0x380312E2: lea ecx, [ebp - 0x20] */
   2997 L_380312E5:
   2998     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380312E5: fcos  */
   2999 L_380312E7:
   3000     PUSH32(esp, ecx); /* 0x380312E7: push ecx */
   3001 L_380312E8:
   3002     ecx = ebp + (-0xFC); /* 0x380312E8: lea ecx, [ebp - 0xfc] */
   3003 L_380312EE:
   3004     fp_push(_st[0]); /* 0x380312EE: fld st(0) */
   3005 L_380312F0:
   3006     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x380312F0: fmul dword ptr [ebp - 0x40] */
   3007 L_380312F3:
   3008     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x380312F3: fld dword ptr [ebp - 0x4c] */
   3009 L_380312F6:
   3010     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x380312F6: fmul dword ptr [ebp - 0x3c] */
   3011 L_380312F9:
   3012     { double _v = fp_pop(); _st[0] += _v; } /* 0x380312F9: faddp st(1) */
   3013 L_380312FB:
   3014     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x380312FB: fld dword ptr [ebp - 0x50] */
   3015 L_380312FE:
   3016     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x380312FE: fmul dword ptr [ebp - 0x38] */
   3017 L_38031301:
   3018     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031301: fsubp st(1) */
   3019 L_38031303:
   3020     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031303: fld dword ptr [ebp - 0x34] */
   3021 L_38031306:
   3022     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031306: fmul dword ptr [ebp - 0x54] */
   3023 L_38031309:
   3024     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031309: faddp st(1) */
   3025 L_3803130B:
   3026     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803130B: fld dword ptr [ebp - 0x50] */
   3027 L_3803130E:
   3028     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803130E: fmul dword ptr [ebp - 0x34] */
   3029 L_38031311:
   3030     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38031311: fld dword ptr [ebp - 0x4c] */
   3031 L_38031314:
   3032     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031314: fmul dword ptr [ebp - 0x40] */
   3033 L_38031317:
   3034     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031317: fsubp st(1) */
   3035 L_38031319:
   3036     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38031319: fld dword ptr [ebp - 0x38] */
   3037 L_3803131C:
   3038     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3803131C: fmul dword ptr [ebp - 0x54] */
   3039 L_3803131F:
   3040     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803131F: faddp st(1) */
   3041 L_38031321:
   3042     fp_push(_st[2]); /* 0x38031321: fld st(2) */
   3043 L_38031323:
   3044     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031323: fmul dword ptr [ebp - 0x3c] */
   3045 L_38031326:
   3046     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031326: faddp st(1) */
   3047 L_38031328:
   3048     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38031328: fstp dword ptr [ebp - 0x24] */
   3049 L_3803132B:
   3050     edx = MEM32(ebp + (-0x24)); /* 0x3803132B: mov edx, dword ptr [ebp - 0x24] */
   3051 L_3803132E:
   3052     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803132E: fld dword ptr [ebp - 0x50] */
   3053 L_38031331:
   3054     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031331: fmul dword ptr [ebp - 0x40] */
   3055 L_38031334:
   3056     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x38031334: fld dword ptr [ebp - 0x3c] */
   3057 L_38031337:
   3058     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031337: fmul dword ptr [ebp - 0x54] */
   3059 L_3803133A:
   3060     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803133A: fsubp st(1) */
   3061 L_3803133C:
   3062     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803133C: fld dword ptr [ebp - 0x4c] */
   3063 L_3803133F:
   3064     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803133F: fmul dword ptr [ebp - 0x34] */
   3065 L_38031342:
   3066     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031342: faddp st(1) */
   3067 L_38031344:
   3068     fp_push(_st[2]); /* 0x38031344: fld st(2) */
   3069 L_38031346:
   3070     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031346: fmul dword ptr [ebp - 0x38] */
   3071 L_38031349:
   3072     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031349: faddp st(1) */
   3073 L_3803134B:
   3074     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803134B: fstp dword ptr [ebp - 0x14] */
   3075 L_3803134E:
   3076     eax = MEM32(ebp + (-0x14)); /* 0x3803134E: mov eax, dword ptr [ebp - 0x14] */
   3077 L_38031351:
   3078     fp_xch(1); /* 0x38031351: fxch st(1) */
   3079 L_38031353:
   3080     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x38031353: fmul dword ptr [ebp - 0x34] */
   3081 L_38031356:
   3082     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x38031356: fld dword ptr [ebp - 0x54] */
   3083 L_38031359:
   3084     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031359: fmul dword ptr [ebp - 0x40] */
   3085 L_3803135C:
   3086     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803135C: fld dword ptr [ebp - 0x4c] */
   3087 L_3803135F:
   3088     MEM32(ebp + (-0x4C)) = eax; /* 0x3803135F: mov dword ptr [ebp - 0x4c], eax */
   3089 L_38031362:
   3090     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031362: fmul dword ptr [ebp - 0x38] */
   3091 L_38031365:
   3092     eax = MEM32(ebp + (-0x38)); /* 0x38031365: mov eax, dword ptr [ebp - 0x38] */
   3093 L_38031368:
   3094     MEM32(ebp + (-0xF4)) = eax; /* 0x38031368: mov dword ptr [ebp - 0xf4], eax */
   3095 L_3803136E:
   3096     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803136E: faddp st(1) */
   3097 L_38031370:
   3098     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38031370: fld dword ptr [ebp - 0x50] */
   3099 L_38031373:
   3100     MEM32(ebp + (-0x50)) = edx; /* 0x38031373: mov dword ptr [ebp - 0x50], edx */
   3101 L_38031376:
   3102     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031376: fmul dword ptr [ebp - 0x3c] */
   3103 L_38031379:
   3104     edx = MEM32(ebp + (-0x3C)); /* 0x38031379: mov edx, dword ptr [ebp - 0x3c] */
   3105 L_3803137C:
   3106     MEM32(ebp + (-0xF8)) = edx; /* 0x3803137C: mov dword ptr [ebp - 0xf8], edx */
   3107 L_38031382:
   3108     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031382: faddp st(1) */
   3109 L_38031384:
   3110     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031384: fsubp st(1) */
   3111 L_38031386:
   3112     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x38031386: fstp dword ptr [ebp - 0x48] */
   3113 L_38031389:
   3114     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x38031389: fstp dword ptr [ebp - 0x54] */
   3115 L_3803138C:
   3116     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3803138C: call dword ptr [0x3804e4c8] */
   3117     RECOMP_FLAGS_IN();
   3118 L_38031392:
   3119     edx = MEM32(eax); /* 0x38031392: mov edx, dword ptr [eax] */
   3120 L_38031394:
   3121     MEM32(ebp + (-0xA8)) = edx; /* 0x38031394: mov dword ptr [ebp - 0xa8], edx */
   3122 L_3803139A:
   3123     ecx = MEM32(eax + 0x4); /* 0x3803139A: mov ecx, dword ptr [eax + 4] */
   3124 L_3803139D:
   3125     MEM32(ebp + (-0xA4)) = ecx; /* 0x3803139D: mov dword ptr [ebp - 0xa4], ecx */
   3126 L_380313A3:
   3127     edx = MEM32(eax + 0x8); /* 0x380313A3: mov edx, dword ptr [eax + 8] */
   3128 L_380313A6:
   3129     eax = ebp + (-0xA8); /* 0x380313A6: lea eax, [ebp - 0xa8] */
   3130 L_380313AC:
   3131     PUSH32(esp, eax); /* 0x380313AC: push eax */
   3132 L_380313AD:
   3133     ecx = ebp + (-0x114); /* 0x380313AD: lea ecx, [ebp - 0x114] */
   3134 L_380313B3:
   3135     MEM32(ebp + (-0xA0)) = edx; /* 0x380313B3: mov dword ptr [ebp - 0xa0], edx */
   3136 L_380313B9:
   3137     PUSH32(esp, ecx); /* 0x380313B9: push ecx */
   3138 L_380313BA:
   3139     ecx = ebp + (-0x40); /* 0x380313BA: lea ecx, [ebp - 0x40] */
   3140 L_380313BD:
   3141     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380313BD: call dword ptr [0x3804e4fc] */
   3142     RECOMP_FLAGS_IN();
   3143 L_380313C3:
   3144     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x380313C3: fld dword ptr [ebp - 0x34] */
   3145 L_380313C6:
   3146     edx = MEM32(eax); /* 0x380313C6: mov edx, dword ptr [eax] */
   3147 L_380313C8:
   3148     _st[0] += _st[0]; /* 0x380313C8: fadd st(0), st(0) */
   3149 L_380313CA:
   3150     MEM32(ebp + (-0xD4)) = edx; /* 0x380313CA: mov dword ptr [ebp - 0xd4], edx */
   3151 L_380313D0:
   3152     ecx = MEM32(eax + 0x4); /* 0x380313D0: mov ecx, dword ptr [eax + 4] */
   3153 L_380313D3:
   3154     MEM32(ebp + (-0xD0)) = ecx; /* 0x380313D3: mov dword ptr [ebp - 0xd0], ecx */
   3155 L_380313D9:
   3156     edx = MEM32(eax + 0x8); /* 0x380313D9: mov edx, dword ptr [eax + 8] */
   3157 L_380313DC:
   3158     PUSH32(esp, ecx); /* 0x380313DC: push ecx */
   3159 L_380313DD:
   3160     ecx = ebp + (-0xA8); /* 0x380313DD: lea ecx, [ebp - 0xa8] */
   3161 L_380313E3:
   3162     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380313E3: fstp dword ptr [esp] */
   3163 L_380313E6:
   3164     MEM32(ebp + (-0xCC)) = edx; /* 0x380313E6: mov dword ptr [ebp - 0xcc], edx */
   3165 L_380313EC:
   3166     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313EC: call dword ptr [0x3804e4d4] */
   3167     RECOMP_FLAGS_IN();
   3168 L_380313F2:
   3169     PUSH32(esp, 0x40000000u); /* 0x380313F2: push 0x40000000 */
   3170 L_380313F7:
   3171     ecx = ebp + (-0xD4); /* 0x380313F7: lea ecx, [ebp - 0xd4] */
   3172 L_380313FD:
   3173     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313FD: call dword ptr [0x3804e4d4] */
   3174     RECOMP_FLAGS_IN();
   3175 L_38031403:
   3176     eax = ebp + (-0xA8); /* 0x38031403: lea eax, [ebp - 0xa8] */
   3177 L_38031409:
   3178     PUSH32(esp, eax); /* 0x38031409: push eax */
   3179 L_3803140A:
   3180     ecx = ebp + (-0x20); /* 0x3803140A: lea ecx, [ebp - 0x20] */
   3181 L_3803140D:
   3182     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803140D: call dword ptr [0x3804e4e8] */
   3183     RECOMP_FLAGS_IN();
   3184 L_38031413:
   3185     ecx = ebp + (-0xD4); /* 0x38031413: lea ecx, [ebp - 0xd4] */
   3186 L_38031419:
   3187     PUSH32(esp, ecx); /* 0x38031419: push ecx */
   3188 L_3803141A:
   3189     ecx = ebp + (-0x20); /* 0x3803141A: lea ecx, [ebp - 0x20] */
   3190 L_3803141D:
   3191     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803141D: call dword ptr [0x3804e4e8] */
   3192     RECOMP_FLAGS_IN();
   3193 L_38031423:
   3194     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031423: fld dword ptr [ebp - 0x20] */
   3195 L_38031426:
   3196     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x38031426: fadd dword ptr [esi + 0x54] */
   3197 L_38031429:
   3198     edx = MEM32(ebp + (-0x40)); /* 0x38031429: mov edx, dword ptr [ebp - 0x40] */
   3199 L_3803142C:
   3200     ecx = MEM32(ebp + (-0x38)); /* 0x3803142C: mov ecx, dword ptr [ebp - 0x38] */
   3201 L_3803142F:
   3202     eax = MEM32(ebp + (-0x3C)); /* 0x3803142F: mov eax, dword ptr [ebp - 0x3c] */
   3203 L_38031432:
   3204     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031432: fstp dword ptr [ebp - 0x20] */
   3205 L_38031435:
   3206     MEM32(ebp + (-0xF0)) = edx; /* 0x38031435: mov dword ptr [ebp - 0xf0], edx */
   3207 L_3803143B:
   3208     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3803143B: fld dword ptr [ebp - 0x1c] */
   3209 L_3803143E:
   3210     edx = ebp + (-0x30); /* 0x3803143E: lea edx, [ebp - 0x30] */
   3211 L_38031441:
   3212     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031441: fadd dword ptr [esi + 0x58] */
   3213 L_38031444:
   3214     MEM32(ebp + (-0xE8)) = ecx; /* 0x38031444: mov dword ptr [ebp - 0xe8], ecx */
   3215 L_3803144A:
   3216     PUSH32(esp, edx); /* 0x3803144A: push edx */
   3217 L_3803144B:
   3218     ecx = ebp + (-0xF0); /* 0x3803144B: lea ecx, [ebp - 0xf0] */
   3219 L_38031451:
   3220     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38031451: fstp dword ptr [ebp - 0x1c] */
   3221 L_38031454:
   3222     MEM32(ebp + (-0xEC)) = eax; /* 0x38031454: mov dword ptr [ebp - 0xec], eax */
   3223 L_3803145A:
   3224     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803145A: fld dword ptr [ebp - 0x18] */
   3225 L_3803145D:
   3226     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x3803145D: fadd dword ptr [esi + 0x5c] */
   3227 L_38031460:
   3228     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031460: fstp dword ptr [ebp - 0x18] */
   3229 L_38031463:
   3230     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031463: call dword ptr [0x3804e4c8] */
   3231     RECOMP_FLAGS_IN();
   3232 L_38031469:
   3233     ecx = MEM32(eax); /* 0x38031469: mov ecx, dword ptr [eax] */
   3234 L_3803146B:
   3235     MEM32(ebp + (-0x98)) = ecx; /* 0x3803146B: mov dword ptr [ebp - 0x98], ecx */
   3236 L_38031471:
   3237     edx = MEM32(eax + 0x4); /* 0x38031471: mov edx, dword ptr [eax + 4] */
   3238 L_38031474:
   3239     MEM32(ebp + (-0x94)) = edx; /* 0x38031474: mov dword ptr [ebp - 0x94], edx */
   3240 L_3803147A:
   3241     eax = MEM32(eax + 0x8); /* 0x3803147A: mov eax, dword ptr [eax + 8] */
   3242 L_3803147D:
   3243     ecx = ebp + (-0x98); /* 0x3803147D: lea ecx, [ebp - 0x98] */
   3244 L_38031483:
   3245     PUSH32(esp, ecx); /* 0x38031483: push ecx */
   3246 L_38031484:
   3247     edx = ebp + (-0x108); /* 0x38031484: lea edx, [ebp - 0x108] */
   3248 L_3803148A:
   3249     PUSH32(esp, edx); /* 0x3803148A: push edx */
   3250 L_3803148B:
   3251     ecx = ebp + (-0x40); /* 0x3803148B: lea ecx, [ebp - 0x40] */
   3252 L_3803148E:
   3253     MEM32(ebp + (-0x90)) = eax; /* 0x3803148E: mov dword ptr [ebp - 0x90], eax */
   3254 L_38031494:
   3255     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x38031494: call dword ptr [0x3804e4fc] */
   3256     RECOMP_FLAGS_IN();
   3257 L_3803149A:
   3258     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3803149A: fld dword ptr [ebp - 0x34] */
   3259 L_3803149D:
   3260     ecx = MEM32(eax); /* 0x3803149D: mov ecx, dword ptr [eax] */
   3261 L_3803149F:
   3262     _st[0] += _st[0]; /* 0x3803149F: fadd st(0), st(0) */
   3263 L_380314A1:
   3264     MEM32(ebp + (-0xC8)) = ecx; /* 0x380314A1: mov dword ptr [ebp - 0xc8], ecx */
   3265 L_380314A7:
   3266     edx = MEM32(eax + 0x4); /* 0x380314A7: mov edx, dword ptr [eax + 4] */
   3267 L_380314AA:
   3268     MEM32(ebp + (-0xC4)) = edx; /* 0x380314AA: mov dword ptr [ebp - 0xc4], edx */
   3269 L_380314B0:
   3270     eax = MEM32(eax + 0x8); /* 0x380314B0: mov eax, dword ptr [eax + 8] */
   3271 L_380314B3:
   3272     PUSH32(esp, ecx); /* 0x380314B3: push ecx */
   3273 L_380314B4:
   3274     ecx = ebp + (-0x98); /* 0x380314B4: lea ecx, [ebp - 0x98] */
   3275 L_380314BA:
   3276     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380314BA: fstp dword ptr [esp] */
   3277 L_380314BD:
   3278     MEM32(ebp + (-0xC0)) = eax; /* 0x380314BD: mov dword ptr [ebp - 0xc0], eax */
   3279 L_380314C3:
   3280     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314C3: call dword ptr [0x3804e4d4] */
   3281     RECOMP_FLAGS_IN();
   3282 L_380314C9:
   3283     PUSH32(esp, 0x40000000u); /* 0x380314C9: push 0x40000000 */
   3284 L_380314CE:
   3285     ecx = ebp + (-0xC8); /* 0x380314CE: lea ecx, [ebp - 0xc8] */
   3286 L_380314D4:
   3287     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314D4: call dword ptr [0x3804e4d4] */
   3288     RECOMP_FLAGS_IN();
   3289 L_380314DA:
   3290     ecx = ebp + (-0x98); /* 0x380314DA: lea ecx, [ebp - 0x98] */
   3291 L_380314E0:
   3292     PUSH32(esp, ecx); /* 0x380314E0: push ecx */
   3293 L_380314E1:
   3294     ecx = ebp + (-0x30); /* 0x380314E1: lea ecx, [ebp - 0x30] */
   3295 L_380314E4:
   3296     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314E4: call dword ptr [0x3804e4e8] */
   3297     RECOMP_FLAGS_IN();
   3298 L_380314EA:
   3299     edx = ebp + (-0xC8); /* 0x380314EA: lea edx, [ebp - 0xc8] */
   3300 L_380314F0:
   3301     PUSH32(esp, edx); /* 0x380314F0: push edx */
   3302 L_380314F1:
   3303     ecx = ebp + (-0x30); /* 0x380314F1: lea ecx, [ebp - 0x30] */
   3304 L_380314F4:
   3305     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314F4: call dword ptr [0x3804e4e8] */
   3306     RECOMP_FLAGS_IN();
   3307 L_380314FA:
   3308     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380314FA: fld dword ptr [ebp - 0x30] */
   3309 L_380314FD:
   3310     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x380314FD: fadd dword ptr [esi + 0x54] */
   3311 L_38031500:
   3312     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031500: fstp dword ptr [ebp - 0x30] */
   3313 L_38031503:
   3314     PUSH32(esp, 0x3806CB10u); /* 0x38031503: push 0x3806cb10 */
   3315 L_38031508:
   3316     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031508: fld dword ptr [ebp - 0x2c] */
   3317 L_3803150B:
   3318     PUSH32(esp, 0x000F6951u); /* 0x3803150B: push 0xf6951 */
   3319 L_38031510:
   3320     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031510: fadd dword ptr [esi + 0x58] */
   3321 L_38031513:
   3322     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031513: fstp dword ptr [ebp - 0x2c] */
   3323 L_38031516:
   3324     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031516: fld dword ptr [ebp - 0x28] */
   3325 L_38031519:
   3326     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38031519: fadd dword ptr [esi + 0x5c] */
   3327 L_3803151C:
   3328     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3803151C: fstp dword ptr [ebp - 0x28] */
   3329 L_3803151F:
   3330     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x3803151F: call dword ptr [0x3804e4b0] */
   3331     RECOMP_FLAGS_IN();
   3332 L_38031525:
   3333     edi = eax; /* 0x38031525: mov edi, eax */
   3334 L_38031527:
   3335     eax = MEM32(esi + 0x98); /* 0x38031527: mov eax, dword ptr [esi + 0x98] */
   3336 L_3803152D:
   3337     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3338     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3339     esp = esp + 8; /* 0x3803152D: add esp, 8 */
   3340     _flag_k = FK_ADD;
   3341 L_38031530:
   3342     /* cmp eax, ebx */ /* 0x38031530: cmp eax, ebx */
   3343     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3345     _flag_k = FK_CMP;
   3346 L_38031532:
   3347     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803155A; /* 0x38031532: jne 0x3803155a */
   3348 L_38031534:
   3349     PUSH32(esp, 0x10u); /* 0x38031534: push 0x10 */
   3350 L_38031536:
   3351     RECOMP_ICALL(0x3804B676u); /* 0x38031536: call 0x3804b676 */ /* not lifted */
   3352     RECOMP_FLAGS_IN();
   3353 L_3803153B:
   3354     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3356     esp = esp + 4; /* 0x3803153B: add esp, 4 */
   3357     _flag_k = FK_ADD;
   3358 L_3803153E:
   3359     /* cmp eax, ebx */ /* 0x3803153E: cmp eax, ebx */
   3360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3362     _flag_k = FK_CMP;
   3363 L_38031540:
   3364     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031552; /* 0x38031540: je 0x38031552 */
   3365 L_38031542:
   3366     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031542: mov cl, byte ptr [ebp + 0xb] */
   3367 L_38031545:
   3368     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031545: mov byte ptr [eax], cl */
   3369 L_38031547:
   3370     MEM32(eax + 0x4) = ebx; /* 0x38031547: mov dword ptr [eax + 4], ebx */
   3371 L_3803154A:
   3372     MEM32(eax + 0x8) = ebx; /* 0x3803154A: mov dword ptr [eax + 8], ebx */
   3373 L_3803154D:
   3374     MEM32(eax + 0xC) = ebx; /* 0x3803154D: mov dword ptr [eax + 0xc], ebx */
   3375 L_38031550:
   3376     goto L_38031554; /* 0x38031550: jmp 0x38031554 */
   3377 L_38031552:
   3378     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3379     eax = 0; /* 0x38031552: xor eax, eax */
   3380     _cf = 0;
   3381     _flag_k = FK_TEST;
   3382 L_38031554:
   3383     MEM32(esi + 0x98) = eax; /* 0x38031554: mov dword ptr [esi + 0x98], eax */
   3384 L_3803155A:
   3385     eax = MEM32(ebp + 0x8); /* 0x3803155A: mov eax, dword ptr [ebp + 8] */
   3386 L_3803155D:
   3387     edx = ebp + (-0x20); /* 0x3803155D: lea edx, [ebp - 0x20] */
   3388 L_38031560:
   3389     PUSH32(esp, edx); /* 0x38031560: push edx */
   3390 L_38031561:
   3391     PUSH32(esp, eax); /* 0x38031561: push eax */
   3392 L_38031562:
   3393     ecx = esi; /* 0x38031562: mov ecx, esi */
   3394 L_38031564:
   3395     RECOMP_ICALL(0x38032CE0u); /* 0x38031564: call 0x38032ce0 */ /* not lifted */
   3396     RECOMP_FLAGS_IN();
   3397 L_38031569:
   3398     ecx = MEM32(ebp + (-0x20)); /* 0x38031569: mov ecx, dword ptr [ebp - 0x20] */
   3399 L_3803156C:
   3400     edx = MEM32(ebp + (-0x1C)); /* 0x3803156C: mov edx, dword ptr [ebp - 0x1c] */
   3401 L_3803156F:
   3402     eax = MEM32(ebp + (-0x18)); /* 0x3803156F: mov eax, dword ptr [ebp - 0x18] */
   3403 L_38031572:
   3404     MEM32(ebp + (-0xBC)) = ecx; /* 0x38031572: mov dword ptr [ebp - 0xbc], ecx */
   3405 L_38031578:
   3406     ecx = ebp + (-0xBC); /* 0x38031578: lea ecx, [ebp - 0xbc] */
   3407 L_3803157E:
   3408     MEM32(ebp + (-0xB8)) = edx; /* 0x3803157E: mov dword ptr [ebp - 0xb8], edx */
   3409 L_38031584:
   3410     edx = MEM32(ebp + 0x8); /* 0x38031584: mov edx, dword ptr [ebp + 8] */
   3411 L_38031587:
   3412     PUSH32(esp, ecx); /* 0x38031587: push ecx */
   3413 L_38031588:
   3414     PUSH32(esp, edx); /* 0x38031588: push edx */
   3415 L_38031589:
   3416     ecx = esi; /* 0x38031589: mov ecx, esi */
   3417 L_3803158B:
   3418     MEM32(ebp + (-0xB4)) = eax; /* 0x3803158B: mov dword ptr [ebp - 0xb4], eax */
   3419 L_38031591:
   3420     RECOMP_ICALL(0x38032DE0u); /* 0x38031591: call 0x38032de0 */ /* not lifted */
   3421     RECOMP_FLAGS_IN();
   3422 L_38031596:
   3423     fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x38031596: fld dword ptr [ebp - 0xb8] */
   3424 L_3803159C:
   3425     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3803159C: fsub dword ptr [ebp - 0x1c] */
   3426 L_3803159F:
   3427     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803159F: fst dword ptr [ebp - 0x10] */
   3428 L_380315A2:
   3429     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x380315A2: fcomp dword ptr [0x3804f688] */
   3430     fp_pop();
   3431 L_380315A8:
   3432     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380315A8: fnstsw ax */
   3433 L_380315AA:
   3434     /* test HI8(eax), 0x41u */ /* 0x380315AA: test ah, 0x41 */
   3435     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3436     _cf = 0;
   3437     _flag_k = FK_NARROW(FK_TEST, 24);
   3438 L_380315AD:
   3439     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031657; /* 0x380315AD: jne 0x38031657 */
   3440 L_380315B3:
   3441     PUSH32(esp, 0x58u); /* 0x380315B3: push 0x58 */
   3442 L_380315B5:
   3443     RECOMP_ICALL(0x3804B676u); /* 0x380315B5: call 0x3804b676 */ /* not lifted */
   3444     RECOMP_FLAGS_IN();
   3445 L_380315BA:
   3446     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3447     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3448     esp = esp + 4; /* 0x380315BA: add esp, 4 */
   3449     _flag_k = FK_ADD;
   3450 L_380315BD:
   3451     MEM32(ebp + (-0x24)) = eax; /* 0x380315BD: mov dword ptr [ebp - 0x24], eax */
   3452 L_380315C0:
   3453     /* cmp eax, ebx */ /* 0x380315C0: cmp eax, ebx */
   3454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3456     _flag_k = FK_CMP;
   3457 L_380315C2:
   3458     MEM32(ebp + (-0x4)) = 1; /* 0x380315C2: mov dword ptr [ebp - 4], 1 */
   3459 L_380315C9:
   3460     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315EC; /* 0x380315C9: je 0x380315ec */
   3461 L_380315CB:
   3462     PUSH32(esp, ebx); /* 0x380315CB: push ebx */
   3463 L_380315CC:
   3464     PUSH32(esp, ebx); /* 0x380315CC: push ebx */
   3465 L_380315CD:
   3466     PUSH32(esp, ebx); /* 0x380315CD: push ebx */
   3467 L_380315CE:
   3468     PUSH32(esp, ebx); /* 0x380315CE: push ebx */
   3469 L_380315CF:
   3470     PUSH32(esp, ebx); /* 0x380315CF: push ebx */
   3471 L_380315D0:
   3472     PUSH32(esp, edi); /* 0x380315D0: push edi */
   3473 L_380315D1:
   3474     PUSH32(esp, 0x3FA00000u); /* 0x380315D1: push 0x3fa00000 */
   3475 L_380315D6:
   3476     PUSH32(esp, 0x00FFFFFFu); /* 0x380315D6: push 0xffffff */
   3477 L_380315DB:
   3478     ecx = ebp + (-0x54); /* 0x380315DB: lea ecx, [ebp - 0x54] */
   3479 L_380315DE:
   3480     PUSH32(esp, ecx); /* 0x380315DE: push ecx */
   3481 L_380315DF:
   3482     edx = ebp + (-0x30); /* 0x380315DF: lea edx, [ebp - 0x30] */
   3483 L_380315E2:
   3484     PUSH32(esp, edx); /* 0x380315E2: push edx */
   3485 L_380315E3:
   3486     ecx = eax; /* 0x380315E3: mov ecx, eax */
   3487 L_380315E5:
   3488     RECOMP_ICALL(0x3800B350u); /* 0x380315E5: call 0x3800b350 */ /* not lifted */
   3489     RECOMP_FLAGS_IN();
   3490 L_380315EA:
   3491     goto L_380315EE; /* 0x380315EA: jmp 0x380315ee */
   3492 L_380315EC:
   3493     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3494     eax = 0; /* 0x380315EC: xor eax, eax */
   3495     _cf = 0;
   3496     _flag_k = FK_TEST;
   3497 L_380315EE:
   3498     ecx = MEM32(esi + 0x98); /* 0x380315EE: mov ecx, dword ptr [esi + 0x98] */
   3499 L_380315F4:
   3500     edx = ebp + (-0xAC); /* 0x380315F4: lea edx, [ebp - 0xac] */
   3501 L_380315FA:
   3502     PUSH32(esp, edx); /* 0x380315FA: push edx */
   3503 L_380315FB:
   3504     MEM32(ebp + (-0xAC)) = eax; /* 0x380315FB: mov dword ptr [ebp - 0xac], eax */
   3505 L_38031601:
   3506     eax = MEM32(ecx + 0x8); /* 0x38031601: mov eax, dword ptr [ecx + 8] */
   3507 L_38031604:
   3508     PUSH32(esp, 1); /* 0x38031604: push 1 */
   3509 L_38031606:
   3510     PUSH32(esp, eax); /* 0x38031606: push eax */
   3511 L_38031607:
   3512     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38031607: mov dword ptr [ebp - 4], 0xffffffff */
   3513 L_3803160E:
   3514     RECOMP_ICALL(0x38009C60u); /* 0x3803160E: call 0x38009c60 */ /* not lifted */
   3515     RECOMP_FLAGS_IN();
   3516 L_38031613:
   3517     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031613: fld dword ptr [ebp - 0x2c] */
   3518 L_38031616:
   3519     _st[0] += (double)*(float*)ADDR(0x3804F684); /* 0x38031616: fadd dword ptr [0x3804f684] */
   3520 L_3803161C:
   3521     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3803161C: fstp dword ptr [ebp - 0x2c] */
   3522 L_3803161F:
   3523     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803161F: fld dword ptr [ebp - 0x10] */
   3524 L_38031622:
   3525     _st[0] -= (double)*(float*)ADDR(0x3804F684); /* 0x38031622: fsub dword ptr [0x3804f684] */
   3526 L_38031628:
   3527     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031628: fcom dword ptr [0x3804f688] */
   3528 L_3803162E:
   3529     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803162E: fst dword ptr [ebp - 0x10] */
   3530 L_38031631:
   3531     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031631: fnstsw ax */
   3532 L_38031633:
   3533     /* test HI8(eax), 1 */ /* 0x38031633: test ah, 1 */
   3534     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3535     _cf = 0;
   3536     _flag_k = FK_NARROW(FK_TEST, 24);
   3537 L_38031636:
   3538     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031646; /* 0x38031636: je 0x38031646 */
   3539 L_38031638:
   3540     fp_push(_st[0]); /* 0x38031638: fld st(0) */
   3541 L_3803163A:
   3542     _st[0] -= (double)*(float*)ADDR(0x3804F688); /* 0x3803163A: fsub dword ptr [0x3804f688] */
   3543 L_38031640:
   3544     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x38031640: fadd dword ptr [ebp - 0x2c] */
   3545 L_38031643:
   3546     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031643: fstp dword ptr [ebp - 0x2c] */
   3547 L_38031646:
   3548     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031646: fcomp dword ptr [0x3804f688] */
   3549     fp_pop();
   3550 L_3803164C:
   3551     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803164C: fnstsw ax */
   3552 L_3803164E:
   3553     /* test HI8(eax), 0x41u */ /* 0x3803164E: test ah, 0x41 */
   3554     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3555     _cf = 0;
   3556     _flag_k = FK_NARROW(FK_TEST, 24);
   3557 L_38031651:
   3558     RECOMP_BACKEDGE();
   3559     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315B3; /* 0x38031651: je 0x380315b3 */
   3560 L_38031657:
   3561     PUSH32(esp, 0x58u); /* 0x38031657: push 0x58 */
   3562 L_38031659:
   3563     RECOMP_ICALL(0x3804B676u); /* 0x38031659: call 0x3804b676 */ /* not lifted */
   3564     RECOMP_FLAGS_IN();
   3565 L_3803165E:
   3566     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3567     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3568     esp = esp + 4; /* 0x3803165E: add esp, 4 */
   3569     _flag_k = FK_ADD;
   3570 L_38031661:
   3571     MEM32(ebp + (-0x24)) = eax; /* 0x38031661: mov dword ptr [ebp - 0x24], eax */
   3572 L_38031664:
   3573     /* cmp eax, ebx */ /* 0x38031664: cmp eax, ebx */
   3574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3576     _flag_k = FK_CMP;
   3577 L_38031666:
   3578     MEM32(ebp + (-0x4)) = 2; /* 0x38031666: mov dword ptr [ebp - 4], 2 */
   3579 L_3803166D:
   3580     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031690; /* 0x3803166D: je 0x38031690 */
   3581 L_3803166F:
   3582     PUSH32(esp, ebx); /* 0x3803166F: push ebx */
   3583 L_38031670:
   3584     PUSH32(esp, ebx); /* 0x38031670: push ebx */
   3585 L_38031671:
   3586     PUSH32(esp, ebx); /* 0x38031671: push ebx */
   3587 L_38031672:
   3588     PUSH32(esp, ebx); /* 0x38031672: push ebx */
   3589 L_38031673:
   3590     PUSH32(esp, ebx); /* 0x38031673: push ebx */
   3591 L_38031674:
   3592     PUSH32(esp, edi); /* 0x38031674: push edi */
   3593 L_38031675:
   3594     PUSH32(esp, 0x3FA00000u); /* 0x38031675: push 0x3fa00000 */
   3595 L_3803167A:
   3596     PUSH32(esp, 0x00FFFFFFu); /* 0x3803167A: push 0xffffff */
   3597 L_3803167F:
   3598     ecx = ebp + (-0x54); /* 0x3803167F: lea ecx, [ebp - 0x54] */
   3599 L_38031682:
   3600     PUSH32(esp, ecx); /* 0x38031682: push ecx */
   3601 L_38031683:
   3602     edx = ebp + (-0x30); /* 0x38031683: lea edx, [ebp - 0x30] */
   3603 L_38031686:
   3604     PUSH32(esp, edx); /* 0x38031686: push edx */
   3605 L_38031687:
   3606     ecx = eax; /* 0x38031687: mov ecx, eax */
   3607 L_38031689:
   3608     RECOMP_ICALL(0x3800B350u); /* 0x38031689: call 0x3800b350 */ /* not lifted */
   3609     RECOMP_FLAGS_IN();
   3610 L_3803168E:
   3611     goto L_38031692; /* 0x3803168E: jmp 0x38031692 */
   3612 L_38031690:
   3613     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3614     eax = 0; /* 0x38031690: xor eax, eax */
   3615     _cf = 0;
   3616     _flag_k = FK_TEST;
   3617 L_38031692:
   3618     ecx = MEM32(esi + 0x98); /* 0x38031692: mov ecx, dword ptr [esi + 0x98] */
   3619 L_38031698:
   3620     MEM32(ebp + (-0x9C)) = eax; /* 0x38031698: mov dword ptr [ebp - 0x9c], eax */
   3621 L_3803169E:
   3622     edx = MEM32(ecx + 0x8); /* 0x3803169E: mov edx, dword ptr [ecx + 8] */
   3623 L_380316A1:
   3624     eax = ebp + (-0x9C); /* 0x380316A1: lea eax, [ebp - 0x9c] */
   3625 L_380316A7:
   3626     PUSH32(esp, eax); /* 0x380316A7: push eax */
   3627 L_380316A8:
   3628     PUSH32(esp, 1); /* 0x380316A8: push 1 */
   3629 L_380316AA:
   3630     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380316AA: mov dword ptr [ebp - 4], 0xffffffff */
   3631 L_380316B1:
   3632     PUSH32(esp, edx); /* 0x380316B1: push edx */
   3633 L_380316B2:
   3634     RECOMP_ICALL(0x38009C60u); /* 0x380316B2: call 0x38009c60 */ /* not lifted */
   3635     RECOMP_FLAGS_IN();
   3636 L_380316B7:
   3637     eax = MEM32(ebp + (-0x8C)); /* 0x380316B7: mov eax, dword ptr [ebp - 0x8c] */
   3638 L_380316BD:
   3639     edx = MEM32(ebp + (-0x78)); /* 0x380316BD: mov edx, dword ptr [ebp - 0x78] */
   3640 L_380316C0:
   3641     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3642     ecx = 0; /* 0x380316C0: xor ecx, ecx */
   3643     _cf = 0;
   3644     _flag_k = FK_TEST;
   3645 L_380316C2:
   3646     SET_LO16(ecx, MEM16(esi + 0x7C)); /* 0x380316C2: mov cx, word ptr [esi + 0x7c] */
   3647 L_380316C6:
   3648     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3649     eax = eax + 1; /* 0x380316C6: inc eax */
   3650     _flag_k = FK_INC;
   3651 L_380316C7:
   3652     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   3653     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3654     edx = edx + 0x10u; /* 0x380316C7: add edx, 0x10 */
   3655     _flag_k = FK_ADD;
   3656 L_380316CA:
   3657     MEM32(ebp + (-0x8C)) = eax; /* 0x380316CA: mov dword ptr [ebp - 0x8c], eax */
   3658 L_380316D0:
   3659     MEM32(ebp + (-0x78)) = edx; /* 0x380316D0: mov dword ptr [ebp - 0x78], edx */
   3660 L_380316D3:
   3661     /* cmp eax, ecx */ /* 0x380316D3: cmp eax, ecx */
   3662     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3664     _flag_k = FK_CMP;
   3665 L_380316D5:
   3666     RECOMP_BACKEDGE();
   3667     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38030E4E; /* 0x380316D5: jl 0x38030e4e */
   3668 L_380316DB:
   3669     edi = POP32_VAL(esp); /* 0x380316DB: pop edi */
   3670 L_380316DC:
   3671     PUSH32(esp, ebx); /* 0x380316DC: push ebx */
   3672 L_380316DD:
   3673     ecx = esi; /* 0x380316DD: mov ecx, esi */
   3674 L_380316DF:
   3675     RECOMP_ICALL(0x38030440u); /* 0x380316DF: call 0x38030440 */ /* not lifted */
   3676     RECOMP_FLAGS_IN();
   3677 L_380316E4:
   3678     ecx = MEM32(ebp + (-0xC)); /* 0x380316E4: mov ecx, dword ptr [ebp - 0xc] */
   3679 L_380316E7:
   3680     esi = POP32_VAL(esp); /* 0x380316E7: pop esi */
   3681 L_380316E8:
   3682     ebx = POP32_VAL(esp); /* 0x380316E8: pop ebx */
   3683 L_380316E9:
   3684     MEM32(FS_BASE + (0)) = ecx; /* 0x380316E9: mov dword ptr fs:[0], ecx */
   3685 L_380316F0:
   3686     esp = ebp; /* 0x380316F0: mov esp, ebp */
   3687 L_380316F2:
   3688     ebp = POP32_VAL(esp); /* 0x380316F2: pop ebp */
   3689 L_380316F3:
   3690     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380316F3: ret 8 */
   3691   _ljump:
   3692     switch (_itail_tgt) {
   3693       case 0x38030E4Eu: goto L_38030E4E;
   3694       case 0x38030E54u: goto L_38030E54;
   3695       case 0x38030E57u: goto L_38030E57;
   3696       case 0x38030E5Au: goto L_38030E5A;
   3697       case 0x38030E5Du: goto L_38030E5D;
   3698       case 0x38030E5Fu: goto L_38030E5F;
   3699       case 0x38030E65u: goto L_38030E65;
   3700       case 0x38030E68u: goto L_38030E68;
   3701       case 0x38030E6Eu: goto L_38030E6E;
   3702       case 0x38030E74u: goto L_38030E74;
   3703       case 0x38030E76u: goto L_38030E76;
   3704       case 0x38030E7Cu: goto L_38030E7C;
   3705       case 0x38030E84u: goto L_38030E84;
   3706       case 0x38030E8Au: goto L_38030E8A;
   3707       case 0x38030E8Du: goto L_38030E8D;
   3708       case 0x38030E91u: goto L_38030E91;
   3709       case 0x38030E97u: goto L_38030E97;
   3710       case 0x38030E9Du: goto L_38030E9D;
   3711       case 0x38030EA3u: goto L_38030EA3;
   3712       case 0x38030EA9u: goto L_38030EA9;
   3713       case 0x38030EACu: goto L_38030EAC;
   3714       case 0x38030EAFu: goto L_38030EAF;
   3715       case 0x38030EB5u: goto L_38030EB5;
   3716       case 0x38030EB7u: goto L_38030EB7;
   3717       case 0x38030EBAu: goto L_38030EBA;
   3718       case 0x38030EBCu: goto L_38030EBC;
   3719       case 0x38030EC2u: goto L_38030EC2;
   3720       case 0x38030EC4u: goto L_38030EC4;
   3721       case 0x38030EC7u: goto L_38030EC7;
   3722       case 0x38030EC9u: goto L_38030EC9;
   3723       case 0x38030ECFu: goto L_38030ECF;
   3724       case 0x38030ED1u: goto L_38030ED1;
   3725       case 0x38030ED7u: goto L_38030ED7;
   3726       case 0x38030EDAu: goto L_38030EDA;
   3727       case 0x38030EDDu: goto L_38030EDD;
   3728       case 0x38030EE0u: goto L_38030EE0;
   3729       case 0x38030EE6u: goto L_38030EE6;
   3730       case 0x38030EE9u: goto L_38030EE9;
   3731       case 0x38030EECu: goto L_38030EEC;
   3732       case 0x38030EF2u: goto L_38030EF2;
   3733       case 0x38030EF4u: goto L_38030EF4;
   3734       case 0x38030EF6u: goto L_38030EF6;
   3735       case 0x38030EFCu: goto L_38030EFC;
   3736       case 0x38030EFFu: goto L_38030EFF;
   3737       case 0x38030F02u: goto L_38030F02;
   3738       case 0x38030F05u: goto L_38030F05;
   3739       case 0x38030F08u: goto L_38030F08;
   3740       case 0x38030F0Bu: goto L_38030F0B;
   3741       case 0x38030F0Du: goto L_38030F0D;
   3742       case 0x38030F10u: goto L_38030F10;
   3743       case 0x38030F13u: goto L_38030F13;
   3744       case 0x38030F19u: goto L_38030F19;
   3745       case 0x38030F1Fu: goto L_38030F1F;
   3746       case 0x38030F25u: goto L_38030F25;
   3747       case 0x38030F27u: goto L_38030F27;
   3748       case 0x38030F2Au: goto L_38030F2A;
   3749       case 0x38030F2Cu: goto L_38030F2C;
   3750       case 0x38030F32u: goto L_38030F32;
   3751       case 0x38030F34u: goto L_38030F34;
   3752       case 0x38030F37u: goto L_38030F37;
   3753       case 0x38030F39u: goto L_38030F39;
   3754       case 0x38030F3Fu: goto L_38030F3F;
   3755       case 0x38030F41u: goto L_38030F41;
   3756       case 0x38030F47u: goto L_38030F47;
   3757       case 0x38030F4Au: goto L_38030F4A;
   3758       case 0x38030F4Du: goto L_38030F4D;
   3759       case 0x38030F50u: goto L_38030F50;
   3760       case 0x38030F56u: goto L_38030F56;
   3761       case 0x38030F59u: goto L_38030F59;
   3762       case 0x38030F5Cu: goto L_38030F5C;
   3763       case 0x38030F62u: goto L_38030F62;
   3764       case 0x38030F64u: goto L_38030F64;
   3765       case 0x38030F69u: goto L_38030F69;
   3766       case 0x38030F6Bu: goto L_38030F6B;
   3767       case 0x38030F70u: goto L_38030F70;
   3768       case 0x38030F76u: goto L_38030F76;
   3769       case 0x38030F79u: goto L_38030F79;
   3770       case 0x38030F7Cu: goto L_38030F7C;
   3771       case 0x38030F7Fu: goto L_38030F7F;
   3772       case 0x38030F82u: goto L_38030F82;
   3773       case 0x38030F85u: goto L_38030F85;
   3774       case 0x38030F87u: goto L_38030F87;
   3775       case 0x38030F89u: goto L_38030F89;
   3776       case 0x38030F8Cu: goto L_38030F8C;
   3777       case 0x38030F8Fu: goto L_38030F8F;
   3778       case 0x38030F92u: goto L_38030F92;
   3779       case 0x38030F94u: goto L_38030F94;
   3780       case 0x38030F97u: goto L_38030F97;
   3781       case 0x38030F9Au: goto L_38030F9A;
   3782       case 0x38030F9Cu: goto L_38030F9C;
   3783       case 0x38030F9Fu: goto L_38030F9F;
   3784       case 0x38030FA2u: goto L_38030FA2;
   3785       case 0x38030FA4u: goto L_38030FA4;
   3786       case 0x38030FA7u: goto L_38030FA7;
   3787       case 0x38030FAAu: goto L_38030FAA;
   3788       case 0x38030FADu: goto L_38030FAD;
   3789       case 0x38030FB0u: goto L_38030FB0;
   3790       case 0x38030FB2u: goto L_38030FB2;
   3791       case 0x38030FB5u: goto L_38030FB5;
   3792       case 0x38030FB8u: goto L_38030FB8;
   3793       case 0x38030FBAu: goto L_38030FBA;
   3794       case 0x38030FBCu: goto L_38030FBC;
   3795       case 0x38030FBFu: goto L_38030FBF;
   3796       case 0x38030FC1u: goto L_38030FC1;
   3797       case 0x38030FC4u: goto L_38030FC4;
   3798       case 0x38030FC7u: goto L_38030FC7;
   3799       case 0x38030FCAu: goto L_38030FCA;
   3800       case 0x38030FCDu: goto L_38030FCD;
   3801       case 0x38030FD0u: goto L_38030FD0;
   3802       case 0x38030FD3u: goto L_38030FD3;
   3803       case 0x38030FD5u: goto L_38030FD5;
   3804       case 0x38030FD8u: goto L_38030FD8;
   3805       case 0x38030FDBu: goto L_38030FDB;
   3806       case 0x38030FDDu: goto L_38030FDD;
   3807       case 0x38030FDFu: goto L_38030FDF;
   3808       case 0x38030FE2u: goto L_38030FE2;
   3809       case 0x38030FE4u: goto L_38030FE4;
   3810       case 0x38030FE7u: goto L_38030FE7;
   3811       case 0x38030FEAu: goto L_38030FEA;
   3812       case 0x38030FECu: goto L_38030FEC;
   3813       case 0x38030FEFu: goto L_38030FEF;
   3814       case 0x38030FF2u: goto L_38030FF2;
   3815       case 0x38030FF5u: goto L_38030FF5;
   3816       case 0x38030FF8u: goto L_38030FF8;
   3817       case 0x38030FFBu: goto L_38030FFB;
   3818       case 0x38030FFEu: goto L_38030FFE;
   3819       case 0x38031000u: goto L_38031000;
   3820       case 0x38031003u: goto L_38031003;
   3821       case 0x38031006u: goto L_38031006;
   3822       case 0x38031009u: goto L_38031009;
   3823       case 0x3803100Bu: goto L_3803100B;
   3824       case 0x3803100Du: goto L_3803100D;
   3825       case 0x38031010u: goto L_38031010;
   3826       case 0x38031013u: goto L_38031013;
   3827       case 0x38031019u: goto L_38031019;
   3828       case 0x3803101Bu: goto L_3803101B;
   3829       case 0x38031021u: goto L_38031021;
   3830       case 0x38031024u: goto L_38031024;
   3831       case 0x38031026u: goto L_38031026;
   3832       case 0x38031028u: goto L_38031028;
   3833       case 0x3803102Au: goto L_3803102A;
   3834       case 0x3803102Fu: goto L_3803102F;
   3835       case 0x38031032u: goto L_38031032;
   3836       case 0x38031034u: goto L_38031034;
   3837       case 0x38031036u: goto L_38031036;
   3838       case 0x38031039u: goto L_38031039;
   3839       case 0x3803103Bu: goto L_3803103B;
   3840       case 0x3803103Eu: goto L_3803103E;
   3841       case 0x38031041u: goto L_38031041;
   3842       case 0x38031044u: goto L_38031044;
   3843       case 0x38031046u: goto L_38031046;
   3844       case 0x38031048u: goto L_38031048;
   3845       case 0x3803104Eu: goto L_3803104E;
   3846       case 0x38031050u: goto L_38031050;
   3847       case 0x38031055u: goto L_38031055;
   3848       case 0x38031058u: goto L_38031058;
   3849       case 0x3803105Bu: goto L_3803105B;
   3850       case 0x3803105Du: goto L_3803105D;
   3851       case 0x38031060u: goto L_38031060;
   3852       case 0x38031062u: goto L_38031062;
   3853       case 0x38031065u: goto L_38031065;
   3854       case 0x3803106Bu: goto L_3803106B;
   3855       case 0x3803106Fu: goto L_3803106F;
   3856       case 0x38031070u: goto L_38031070;
   3857       case 0x38031076u: goto L_38031076;
   3858       case 0x38031077u: goto L_38031077;
   3859       case 0x38031078u: goto L_38031078;
   3860       case 0x38031079u: goto L_38031079;
   3861       case 0x3803107Bu: goto L_3803107B;
   3862       case 0x3803107Cu: goto L_3803107C;
   3863       case 0x3803107Du: goto L_3803107D;
   3864       case 0x3803107Eu: goto L_3803107E;
   3865       case 0x38031081u: goto L_38031081;
   3866       case 0x38031086u: goto L_38031086;
   3867       case 0x38031089u: goto L_38031089;
   3868       case 0x3803108Au: goto L_3803108A;
   3869       case 0x3803108Bu: goto L_3803108B;
   3870       case 0x3803108Du: goto L_3803108D;
   3871       case 0x38031092u: goto L_38031092;
   3872       case 0x38031094u: goto L_38031094;
   3873       case 0x38031096u: goto L_38031096;
   3874       case 0x3803109Cu: goto L_3803109C;
   3875       case 0x380310A2u: goto L_380310A2;
   3876       case 0x380310A3u: goto L_380310A3;
   3877       case 0x380310A9u: goto L_380310A9;
   3878       case 0x380310ACu: goto L_380310AC;
   3879       case 0x380310AEu: goto L_380310AE;
   3880       case 0x380310B5u: goto L_380310B5;
   3881       case 0x380310B6u: goto L_380310B6;
   3882       case 0x380310BBu: goto L_380310BB;
   3883       case 0x380310BDu: goto L_380310BD;
   3884       case 0x380310C3u: goto L_380310C3;
   3885       case 0x380310CBu: goto L_380310CB;
   3886       case 0x380310D1u: goto L_380310D1;
   3887       case 0x380310D5u: goto L_380310D5;
   3888       case 0x380310DCu: goto L_380310DC;
   3889       case 0x380310DFu: goto L_380310DF;
   3890       case 0x380310E4u: goto L_380310E4;
   3891       case 0x380310E7u: goto L_380310E7;
   3892       case 0x380310EAu: goto L_380310EA;
   3893       case 0x380310ECu: goto L_380310EC;
   3894       case 0x380310F2u: goto L_380310F2;
   3895       case 0x380310F4u: goto L_380310F4;
   3896       case 0x380310F5u: goto L_380310F5;
   3897       case 0x380310FBu: goto L_380310FB;
   3898       case 0x380310FDu: goto L_380310FD;
   3899       case 0x38031100u: goto L_38031100;
   3900       case 0x38031103u: goto L_38031103;
   3901       case 0x38031106u: goto L_38031106;
   3902       case 0x38031107u: goto L_38031107;
   3903       case 0x3803110Au: goto L_3803110A;
   3904       case 0x38031110u: goto L_38031110;
   3905       case 0x38031113u: goto L_38031113;
   3906       case 0x38031115u: goto L_38031115;
   3907       case 0x3803111Bu: goto L_3803111B;
   3908       case 0x3803111Eu: goto L_3803111E;
   3909       case 0x38031121u: goto L_38031121;
   3910       case 0x38031124u: goto L_38031124;
   3911       case 0x38031127u: goto L_38031127;
   3912       case 0x3803112Au: goto L_3803112A;
   3913       case 0x3803112Du: goto L_3803112D;
   3914       case 0x38031130u: goto L_38031130;
   3915       case 0x38031133u: goto L_38031133;
   3916       case 0x38031136u: goto L_38031136;
   3917       case 0x38031139u: goto L_38031139;
   3918       case 0x3803113Cu: goto L_3803113C;
   3919       case 0x38031142u: goto L_38031142;
   3920       case 0x38031145u: goto L_38031145;
   3921       case 0x38031148u: goto L_38031148;
   3922       case 0x3803114Bu: goto L_3803114B;
   3923       case 0x3803114Eu: goto L_3803114E;
   3924       case 0x38031151u: goto L_38031151;
   3925       case 0x38031154u: goto L_38031154;
   3926       case 0x38031157u: goto L_38031157;
   3927       case 0x38031159u: goto L_38031159;
   3928       case 0x3803115Bu: goto L_3803115B;
   3929       case 0x3803115Eu: goto L_3803115E;
   3930       case 0x38031161u: goto L_38031161;
   3931       case 0x38031164u: goto L_38031164;
   3932       case 0x38031166u: goto L_38031166;
   3933       case 0x38031169u: goto L_38031169;
   3934       case 0x3803116Cu: goto L_3803116C;
   3935       case 0x3803116Fu: goto L_3803116F;
   3936       case 0x38031172u: goto L_38031172;
   3937       case 0x38031175u: goto L_38031175;
   3938       case 0x38031178u: goto L_38031178;
   3939       case 0x3803117Bu: goto L_3803117B;
   3940       case 0x3803117Eu: goto L_3803117E;
   3941       case 0x38031181u: goto L_38031181;
   3942       case 0x38031184u: goto L_38031184;
   3943       case 0x38031186u: goto L_38031186;
   3944       case 0x3803118Du: goto L_3803118D;
   3945       case 0x38031190u: goto L_38031190;
   3946       case 0x38031196u: goto L_38031196;
   3947       case 0x38031199u: goto L_38031199;
   3948       case 0x3803119Cu: goto L_3803119C;
   3949       case 0x380311A2u: goto L_380311A2;
   3950       case 0x380311A5u: goto L_380311A5;
   3951       case 0x380311A7u: goto L_380311A7;
   3952       case 0x380311AAu: goto L_380311AA;
   3953       case 0x380311B0u: goto L_380311B0;
   3954       case 0x380311B3u: goto L_380311B3;
   3955       case 0x380311B6u: goto L_380311B6;
   3956       case 0x380311BCu: goto L_380311BC;
   3957       case 0x380311BEu: goto L_380311BE;
   3958       case 0x380311C1u: goto L_380311C1;
   3959       case 0x380311C7u: goto L_380311C7;
   3960       case 0x380311CAu: goto L_380311CA;
   3961       case 0x380311CDu: goto L_380311CD;
   3962       case 0x380311D3u: goto L_380311D3;
   3963       case 0x380311D6u: goto L_380311D6;
   3964       case 0x380311D8u: goto L_380311D8;
   3965       case 0x380311DBu: goto L_380311DB;
   3966       case 0x380311E1u: goto L_380311E1;
   3967       case 0x380311E4u: goto L_380311E4;
   3968       case 0x380311E7u: goto L_380311E7;
   3969       case 0x380311EDu: goto L_380311ED;
   3970       case 0x380311F0u: goto L_380311F0;
   3971       case 0x380311F3u: goto L_380311F3;
   3972       case 0x380311F5u: goto L_380311F5;
   3973       case 0x380311FBu: goto L_380311FB;
   3974       case 0x38031201u: goto L_38031201;
   3975       case 0x38031207u: goto L_38031207;
   3976       case 0x3803120Du: goto L_3803120D;
   3977       case 0x38031213u: goto L_38031213;
   3978       case 0x38031215u: goto L_38031215;
   3979       case 0x38031218u: goto L_38031218;
   3980       case 0x3803121Au: goto L_3803121A;
   3981       case 0x38031220u: goto L_38031220;
   3982       case 0x38031222u: goto L_38031222;
   3983       case 0x38031225u: goto L_38031225;
   3984       case 0x38031227u: goto L_38031227;
   3985       case 0x3803122Du: goto L_3803122D;
   3986       case 0x3803122Fu: goto L_3803122F;
   3987       case 0x38031235u: goto L_38031235;
   3988       case 0x38031238u: goto L_38031238;
   3989       case 0x3803123Bu: goto L_3803123B;
   3990       case 0x3803123Eu: goto L_3803123E;
   3991       case 0x38031244u: goto L_38031244;
   3992       case 0x38031247u: goto L_38031247;
   3993       case 0x3803124Au: goto L_3803124A;
   3994       case 0x38031250u: goto L_38031250;
   3995       case 0x38031252u: goto L_38031252;
   3996       case 0x38031254u: goto L_38031254;
   3997       case 0x3803125Au: goto L_3803125A;
   3998       case 0x3803125Du: goto L_3803125D;
   3999       case 0x38031260u: goto L_38031260;
   4000       case 0x38031263u: goto L_38031263;
   4001       case 0x38031266u: goto L_38031266;
   4002       case 0x38031269u: goto L_38031269;
   4003       case 0x3803126Bu: goto L_3803126B;
   4004       case 0x3803126Eu: goto L_3803126E;
   4005       case 0x38031271u: goto L_38031271;
   4006       case 0x38031277u: goto L_38031277;
   4007       case 0x3803127Du: goto L_3803127D;
   4008       case 0x38031283u: goto L_38031283;
   4009       case 0x38031285u: goto L_38031285;
   4010       case 0x38031288u: goto L_38031288;
   4011       case 0x3803128Au: goto L_3803128A;
   4012       case 0x38031290u: goto L_38031290;
   4013       case 0x38031292u: goto L_38031292;
   4014       case 0x38031295u: goto L_38031295;
   4015       case 0x38031297u: goto L_38031297;
   4016       case 0x3803129Du: goto L_3803129D;
   4017       case 0x3803129Fu: goto L_3803129F;
   4018       case 0x380312A5u: goto L_380312A5;
   4019       case 0x380312A8u: goto L_380312A8;
   4020       case 0x380312ABu: goto L_380312AB;
   4021       case 0x380312AEu: goto L_380312AE;
   4022       case 0x380312B4u: goto L_380312B4;
   4023       case 0x380312B7u: goto L_380312B7;
   4024       case 0x380312BAu: goto L_380312BA;
   4025       case 0x380312C0u: goto L_380312C0;
   4026       case 0x380312C2u: goto L_380312C2;
   4027       case 0x380312C4u: goto L_380312C4;
   4028       case 0x380312CAu: goto L_380312CA;
   4029       case 0x380312CDu: goto L_380312CD;
   4030       case 0x380312D0u: goto L_380312D0;
   4031       case 0x380312D3u: goto L_380312D3;
   4032       case 0x380312D6u: goto L_380312D6;
   4033       case 0x380312D9u: goto L_380312D9;
   4034       case 0x380312DCu: goto L_380312DC;
   4035       case 0x380312E2u: goto L_380312E2;
   4036       case 0x380312E5u: goto L_380312E5;
   4037       case 0x380312E7u: goto L_380312E7;
   4038       case 0x380312E8u: goto L_380312E8;
   4039       case 0x380312EEu: goto L_380312EE;
   4040       case 0x380312F0u: goto L_380312F0;
   4041       case 0x380312F3u: goto L_380312F3;
   4042       case 0x380312F6u: goto L_380312F6;
   4043       case 0x380312F9u: goto L_380312F9;
   4044       case 0x380312FBu: goto L_380312FB;
   4045       case 0x380312FEu: goto L_380312FE;
   4046       case 0x38031301u: goto L_38031301;
   4047       case 0x38031303u: goto L_38031303;
   4048       case 0x38031306u: goto L_38031306;
   4049       case 0x38031309u: goto L_38031309;
   4050       case 0x3803130Bu: goto L_3803130B;
   4051       case 0x3803130Eu: goto L_3803130E;
   4052       case 0x38031311u: goto L_38031311;
   4053       case 0x38031314u: goto L_38031314;
   4054       case 0x38031317u: goto L_38031317;
   4055       case 0x38031319u: goto L_38031319;
   4056       case 0x3803131Cu: goto L_3803131C;
   4057       case 0x3803131Fu: goto L_3803131F;
   4058       case 0x38031321u: goto L_38031321;
   4059       case 0x38031323u: goto L_38031323;
   4060       case 0x38031326u: goto L_38031326;
   4061       case 0x38031328u: goto L_38031328;
   4062       case 0x3803132Bu: goto L_3803132B;
   4063       case 0x3803132Eu: goto L_3803132E;
   4064       case 0x38031331u: goto L_38031331;
   4065       case 0x38031334u: goto L_38031334;
   4066       case 0x38031337u: goto L_38031337;
   4067       case 0x3803133Au: goto L_3803133A;
   4068       case 0x3803133Cu: goto L_3803133C;
   4069       case 0x3803133Fu: goto L_3803133F;
   4070       case 0x38031342u: goto L_38031342;
   4071       case 0x38031344u: goto L_38031344;
   4072       case 0x38031346u: goto L_38031346;
   4073       case 0x38031349u: goto L_38031349;
   4074       case 0x3803134Bu: goto L_3803134B;
   4075       case 0x3803134Eu: goto L_3803134E;
   4076       case 0x38031351u: goto L_38031351;
   4077       case 0x38031353u: goto L_38031353;
   4078       case 0x38031356u: goto L_38031356;
   4079       case 0x38031359u: goto L_38031359;
   4080       case 0x3803135Cu: goto L_3803135C;
   4081       case 0x3803135Fu: goto L_3803135F;
   4082       case 0x38031362u: goto L_38031362;
   4083       case 0x38031365u: goto L_38031365;
   4084       case 0x38031368u: goto L_38031368;
   4085       case 0x3803136Eu: goto L_3803136E;
   4086       case 0x38031370u: goto L_38031370;
   4087       case 0x38031373u: goto L_38031373;
   4088       case 0x38031376u: goto L_38031376;
   4089       case 0x38031379u: goto L_38031379;
   4090       case 0x3803137Cu: goto L_3803137C;
   4091       case 0x38031382u: goto L_38031382;
   4092       case 0x38031384u: goto L_38031384;
   4093       case 0x38031386u: goto L_38031386;
   4094       case 0x38031389u: goto L_38031389;
   4095       case 0x3803138Cu: goto L_3803138C;
   4096       case 0x38031392u: goto L_38031392;
   4097       case 0x38031394u: goto L_38031394;
   4098       case 0x3803139Au: goto L_3803139A;
   4099       case 0x3803139Du: goto L_3803139D;
   4100       case 0x380313A3u: goto L_380313A3;
   4101       case 0x380313A6u: goto L_380313A6;
   4102       case 0x380313ACu: goto L_380313AC;
   4103       case 0x380313ADu: goto L_380313AD;
   4104       case 0x380313B3u: goto L_380313B3;
   4105       case 0x380313B9u: goto L_380313B9;
   4106       case 0x380313BAu: goto L_380313BA;
   4107       case 0x380313BDu: goto L_380313BD;
   4108       case 0x380313C3u: goto L_380313C3;
   4109       case 0x380313C6u: goto L_380313C6;
   4110       case 0x380313C8u: goto L_380313C8;
   4111       case 0x380313CAu: goto L_380313CA;
   4112       case 0x380313D0u: goto L_380313D0;
   4113       case 0x380313D3u: goto L_380313D3;
   4114       case 0x380313D9u: goto L_380313D9;
   4115       case 0x380313DCu: goto L_380313DC;
   4116       case 0x380313DDu: goto L_380313DD;
   4117       case 0x380313E3u: goto L_380313E3;
   4118       case 0x380313E6u: goto L_380313E6;
   4119       case 0x380313ECu: goto L_380313EC;
   4120       case 0x380313F2u: goto L_380313F2;
   4121       case 0x380313F7u: goto L_380313F7;
   4122       case 0x380313FDu: goto L_380313FD;
   4123       case 0x38031403u: goto L_38031403;
   4124       case 0x38031409u: goto L_38031409;
   4125       case 0x3803140Au: goto L_3803140A;
   4126       case 0x3803140Du: goto L_3803140D;
   4127       case 0x38031413u: goto L_38031413;
   4128       case 0x38031419u: goto L_38031419;
   4129       case 0x3803141Au: goto L_3803141A;
   4130       case 0x3803141Du: goto L_3803141D;
   4131       case 0x38031423u: goto L_38031423;
   4132       case 0x38031426u: goto L_38031426;
   4133       case 0x38031429u: goto L_38031429;
   4134       case 0x3803142Cu: goto L_3803142C;
   4135       case 0x3803142Fu: goto L_3803142F;
   4136       case 0x38031432u: goto L_38031432;
   4137       case 0x38031435u: goto L_38031435;
   4138       case 0x3803143Bu: goto L_3803143B;
   4139       case 0x3803143Eu: goto L_3803143E;
   4140       case 0x38031441u: goto L_38031441;
   4141       case 0x38031444u: goto L_38031444;
   4142       case 0x3803144Au: goto L_3803144A;
   4143       case 0x3803144Bu: goto L_3803144B;
   4144       case 0x38031451u: goto L_38031451;
   4145       case 0x38031454u: goto L_38031454;
   4146       case 0x3803145Au: goto L_3803145A;
   4147       case 0x3803145Du: goto L_3803145D;
   4148       case 0x38031460u: goto L_38031460;
   4149       case 0x38031463u: goto L_38031463;
   4150       case 0x38031469u: goto L_38031469;
   4151       case 0x3803146Bu: goto L_3803146B;
   4152       case 0x38031471u: goto L_38031471;
   4153       case 0x38031474u: goto L_38031474;
   4154       case 0x3803147Au: goto L_3803147A;
   4155       case 0x3803147Du: goto L_3803147D;
   4156       case 0x38031483u: goto L_38031483;
   4157       case 0x38031484u: goto L_38031484;
   4158       case 0x3803148Au: goto L_3803148A;
   4159       case 0x3803148Bu: goto L_3803148B;
   4160       case 0x3803148Eu: goto L_3803148E;
   4161       case 0x38031494u: goto L_38031494;
   4162       case 0x3803149Au: goto L_3803149A;
   4163       case 0x3803149Du: goto L_3803149D;
   4164       case 0x3803149Fu: goto L_3803149F;
   4165       case 0x380314A1u: goto L_380314A1;
   4166       case 0x380314A7u: goto L_380314A7;
   4167       case 0x380314AAu: goto L_380314AA;
   4168       case 0x380314B0u: goto L_380314B0;
   4169       case 0x380314B3u: goto L_380314B3;
   4170       case 0x380314B4u: goto L_380314B4;
   4171       case 0x380314BAu: goto L_380314BA;
   4172       case 0x380314BDu: goto L_380314BD;
   4173       case 0x380314C3u: goto L_380314C3;
   4174       case 0x380314C9u: goto L_380314C9;
   4175       case 0x380314CEu: goto L_380314CE;
   4176       case 0x380314D4u: goto L_380314D4;
   4177       case 0x380314DAu: goto L_380314DA;
   4178       case 0x380314E0u: goto L_380314E0;
   4179       case 0x380314E1u: goto L_380314E1;
   4180       case 0x380314E4u: goto L_380314E4;
   4181       case 0x380314EAu: goto L_380314EA;
   4182       case 0x380314F0u: goto L_380314F0;
   4183       case 0x380314F1u: goto L_380314F1;
   4184       case 0x380314F4u: goto L_380314F4;
   4185       case 0x380314FAu: goto L_380314FA;
   4186       case 0x380314FDu: goto L_380314FD;
   4187       case 0x38031500u: goto L_38031500;
   4188       case 0x38031503u: goto L_38031503;
   4189       case 0x38031508u: goto L_38031508;
   4190       case 0x3803150Bu: goto L_3803150B;
   4191       case 0x38031510u: goto L_38031510;
   4192       case 0x38031513u: goto L_38031513;
   4193       case 0x38031516u: goto L_38031516;
   4194       case 0x38031519u: goto L_38031519;
   4195       case 0x3803151Cu: goto L_3803151C;
   4196       case 0x3803151Fu: goto L_3803151F;
   4197       case 0x38031525u: goto L_38031525;
   4198       case 0x38031527u: goto L_38031527;
   4199       case 0x3803152Du: goto L_3803152D;
   4200       case 0x38031530u: goto L_38031530;
   4201       case 0x38031532u: goto L_38031532;
   4202       case 0x38031534u: goto L_38031534;
   4203       case 0x38031536u: goto L_38031536;
   4204       case 0x3803153Bu: goto L_3803153B;
   4205       case 0x3803153Eu: goto L_3803153E;
   4206       case 0x38031540u: goto L_38031540;
   4207       case 0x38031542u: goto L_38031542;
   4208       case 0x38031545u: goto L_38031545;
   4209       case 0x38031547u: goto L_38031547;
   4210       case 0x3803154Au: goto L_3803154A;
   4211       case 0x3803154Du: goto L_3803154D;
   4212       case 0x38031550u: goto L_38031550;
   4213       case 0x38031552u: goto L_38031552;
   4214       case 0x38031554u: goto L_38031554;
   4215       case 0x3803155Au: goto L_3803155A;
   4216       case 0x3803155Du: goto L_3803155D;
   4217       case 0x38031560u: goto L_38031560;
   4218       case 0x38031561u: goto L_38031561;
   4219       case 0x38031562u: goto L_38031562;
   4220       case 0x38031564u: goto L_38031564;
   4221       case 0x38031569u: goto L_38031569;
   4222       case 0x3803156Cu: goto L_3803156C;
   4223       case 0x3803156Fu: goto L_3803156F;
   4224       case 0x38031572u: goto L_38031572;
   4225       case 0x38031578u: goto L_38031578;
   4226       case 0x3803157Eu: goto L_3803157E;
   4227       case 0x38031584u: goto L_38031584;
   4228       case 0x38031587u: goto L_38031587;
   4229       case 0x38031588u: goto L_38031588;
   4230       case 0x38031589u: goto L_38031589;
   4231       case 0x3803158Bu: goto L_3803158B;
   4232       case 0x38031591u: goto L_38031591;
   4233       case 0x38031596u: goto L_38031596;
   4234       case 0x3803159Cu: goto L_3803159C;
   4235       case 0x3803159Fu: goto L_3803159F;
   4236       case 0x380315A2u: goto L_380315A2;
   4237       case 0x380315A8u: goto L_380315A8;
   4238       case 0x380315AAu: goto L_380315AA;
   4239       case 0x380315ADu: goto L_380315AD;
   4240       case 0x380315B3u: goto L_380315B3;
   4241       case 0x380315B5u: goto L_380315B5;
   4242       case 0x380315BAu: goto L_380315BA;
   4243       case 0x380315BDu: goto L_380315BD;
   4244       case 0x380315C0u: goto L_380315C0;
   4245       case 0x380315C2u: goto L_380315C2;
   4246       case 0x380315C9u: goto L_380315C9;
   4247       case 0x380315CBu: goto L_380315CB;
   4248       case 0x380315CCu: goto L_380315CC;
   4249       case 0x380315CDu: goto L_380315CD;
   4250       case 0x380315CEu: goto L_380315CE;
   4251       case 0x380315CFu: goto L_380315CF;
   4252       case 0x380315D0u: goto L_380315D0;
   4253       case 0x380315D1u: goto L_380315D1;
   4254       case 0x380315D6u: goto L_380315D6;
   4255       case 0x380315DBu: goto L_380315DB;
   4256       case 0x380315DEu: goto L_380315DE;
   4257       case 0x380315DFu: goto L_380315DF;
   4258       case 0x380315E2u: goto L_380315E2;
   4259       case 0x380315E3u: goto L_380315E3;
   4260       case 0x380315E5u: goto L_380315E5;
   4261       case 0x380315EAu: goto L_380315EA;
   4262       case 0x380315ECu: goto L_380315EC;
   4263       case 0x380315EEu: goto L_380315EE;
   4264       case 0x380315F4u: goto L_380315F4;
   4265       case 0x380315FAu: goto L_380315FA;
   4266       case 0x380315FBu: goto L_380315FB;
   4267       case 0x38031601u: goto L_38031601;
   4268       case 0x38031604u: goto L_38031604;
   4269       case 0x38031606u: goto L_38031606;
   4270       case 0x38031607u: goto L_38031607;
   4271       case 0x3803160Eu: goto L_3803160E;
   4272       case 0x38031613u: goto L_38031613;
   4273       case 0x38031616u: goto L_38031616;
   4274       case 0x3803161Cu: goto L_3803161C;
   4275       case 0x3803161Fu: goto L_3803161F;
   4276       case 0x38031622u: goto L_38031622;
   4277       case 0x38031628u: goto L_38031628;
   4278       case 0x3803162Eu: goto L_3803162E;
   4279       case 0x38031631u: goto L_38031631;
   4280       case 0x38031633u: goto L_38031633;
   4281       case 0x38031636u: goto L_38031636;
   4282       case 0x38031638u: goto L_38031638;
   4283       case 0x3803163Au: goto L_3803163A;
   4284       case 0x38031640u: goto L_38031640;
   4285       case 0x38031643u: goto L_38031643;
   4286       case 0x38031646u: goto L_38031646;
   4287       case 0x3803164Cu: goto L_3803164C;
   4288       case 0x3803164Eu: goto L_3803164E;
   4289       case 0x38031651u: goto L_38031651;
   4290       case 0x38031657u: goto L_38031657;
   4291       case 0x38031659u: goto L_38031659;
   4292       case 0x3803165Eu: goto L_3803165E;
   4293       case 0x38031661u: goto L_38031661;
   4294       case 0x38031664u: goto L_38031664;
   4295       case 0x38031666u: goto L_38031666;
   4296       case 0x3803166Du: goto L_3803166D;
   4297       case 0x3803166Fu: goto L_3803166F;
   4298       case 0x38031670u: goto L_38031670;
   4299       case 0x38031671u: goto L_38031671;
   4300       case 0x38031672u: goto L_38031672;
   4301       case 0x38031673u: goto L_38031673;
   4302       case 0x38031674u: goto L_38031674;
   4303       case 0x38031675u: goto L_38031675;
   4304       case 0x3803167Au: goto L_3803167A;
   4305       case 0x3803167Fu: goto L_3803167F;
   4306       case 0x38031682u: goto L_38031682;
   4307       case 0x38031683u: goto L_38031683;
   4308       case 0x38031686u: goto L_38031686;
   4309       case 0x38031687u: goto L_38031687;
   4310       case 0x38031689u: goto L_38031689;
   4311       case 0x3803168Eu: goto L_3803168E;
   4312       case 0x38031690u: goto L_38031690;
   4313       case 0x38031692u: goto L_38031692;
   4314       case 0x38031698u: goto L_38031698;
   4315       case 0x3803169Eu: goto L_3803169E;
   4316       case 0x380316A1u: goto L_380316A1;
   4317       case 0x380316A7u: goto L_380316A7;
   4318       case 0x380316A8u: goto L_380316A8;
   4319       case 0x380316AAu: goto L_380316AA;
   4320       case 0x380316B1u: goto L_380316B1;
   4321       case 0x380316B2u: goto L_380316B2;
   4322       case 0x380316B7u: goto L_380316B7;
   4323       case 0x380316BDu: goto L_380316BD;
   4324       case 0x380316C0u: goto L_380316C0;
   4325       case 0x380316C2u: goto L_380316C2;
   4326       case 0x380316C6u: goto L_380316C6;
   4327       case 0x380316C7u: goto L_380316C7;
   4328       case 0x380316CAu: goto L_380316CA;
   4329       case 0x380316D0u: goto L_380316D0;
   4330       case 0x380316D3u: goto L_380316D3;
   4331       case 0x380316D5u: goto L_380316D5;
   4332       case 0x380316DBu: goto L_380316DB;
   4333       case 0x380316DCu: goto L_380316DC;
   4334       case 0x380316DDu: goto L_380316DD;
   4335       case 0x380316DFu: goto L_380316DF;
   4336       case 0x380316E4u: goto L_380316E4;
   4337       case 0x380316E7u: goto L_380316E7;
   4338       case 0x380316E8u: goto L_380316E8;
   4339       case 0x380316E9u: goto L_380316E9;
   4340       case 0x380316F0u: goto L_380316F0;
   4341       case 0x380316F2u: goto L_380316F2;
   4342       case 0x380316F3u: goto L_380316F3;
   4343       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4344     }
   4345     RECOMP_REGS_OUT();
   4346 }
   4347 
   4348 void sub_380315B3(void) {
   4349     int _fpu_cmp = 0;
   4350     uint32_t _cf = 0;
   4351     int _df = 1;
   4352     uint32_t _flag_k = FK_NONE;
   4353     uint32_t _flag_a = 0, _flag_b = 0;
   4354     uint32_t _itail_tgt = 0;
   4355     RECOMP_REGS_LOCALS
   4356     RECOMP_ENTER(0x380315B3u);
   4357 
   4358     goto L_380315B3;
   4359 L_38030E4E:
   4360     ecx = MEM32(esi + 0x80); /* 0x38030E4E: mov ecx, dword ptr [esi + 0x80] */
   4361 L_38030E54:
   4362     edi = MEM32(ebp + 0xC); /* 0x38030E54: mov edi, dword ptr [ebp + 0xc] */
   4363 L_38030E57:
   4364     eax = ecx + eax * 4; /* 0x38030E57: lea eax, [ecx + eax*4] */
   4365 L_38030E5A:
   4366     ecx = (int32_t)(int16_t)MEM16(eax); /* 0x38030E5A: movsx ecx, word ptr [eax] */
   4367 L_38030E5D:
   4368     /* cmp ecx, edi */ /* 0x38030E5D: cmp ecx, edi */
   4369     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   4370     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4371     _flag_k = FK_CMP;
   4372 L_38030E5F:
   4373     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E5F: je 0x380316b7 */
   4374 L_38030E65:
   4375     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x38030E65: cmp ecx, dword ptr [esi + 0xc] */
   4376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   4377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4378     _flag_k = FK_CMP;
   4379 L_38030E68:
   4380     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E68: je 0x380316b7 */
   4381 L_38030E6E:
   4382     ecx = MEM32(esi + 0xB0); /* 0x38030E6E: mov ecx, dword ptr [esi + 0xb0] */
   4383 L_38030E74:
   4384     /* cmp ecx, ebx */ /* 0x38030E74: cmp ecx, ebx */
   4385     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4387     _flag_k = FK_CMP;
   4388 L_38030E76:
   4389     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E76: je 0x380316b7 */
   4390 L_38030E7C:
   4391     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x38030E7C: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
   4392     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
   4393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4394     _flag_k = FK_CMP;
   4395 L_38030E84:
   4396     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380310BB; /* 0x38030E84: je 0x380310bb */
   4397 L_38030E8A:
   4398     edx = MEM32(esi + 0x44); /* 0x38030E8A: mov edx, dword ptr [esi + 0x44] */
   4399 L_38030E8D:
   4400     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x38030E8D: mov ax, word ptr [eax + 2] */
   4401 L_38030E91:
   4402     MEM32(ebp + (-0xE4)) = edx; /* 0x38030E91: mov dword ptr [ebp - 0xe4], edx */
   4403 L_38030E97:
   4404     MEM32(ebp + (-0xE0)) = ebx; /* 0x38030E97: mov dword ptr [ebp - 0xe0], ebx */
   4405 L_38030E9D:
   4406     fp_push_i64((int64_t)MEM64(ebp + (-0xE4))); /* 0x38030E9D: fild qword ptr [ebp - 0xe4] */
   4407 L_38030EA3:
   4408     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38030EA3: fmul dword ptr [0x3804eac0] */
   4409 L_38030EA9:
   4410     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4411     eax = eax & 3; /* 0x38030EA9: and eax, 3 */
   4412     _cf = 0;
   4413     _flag_k = FK_TEST;
   4414 L_38030EAC:
   4415     MEM32(ebp + (-0x14)) = eax; /* 0x38030EAC: mov dword ptr [ebp - 0x14], eax */
   4416 L_38030EAF:
   4417     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030EAF: fcom dword ptr [0x3804e8e4] */
   4418 L_38030EB5:
   4419     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EB5: fnstsw ax */
   4420 L_38030EB7:
   4421     /* test HI8(eax), 1 */ /* 0x38030EB7: test ah, 1 */
   4422     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4423     _cf = 0;
   4424     _flag_k = FK_NARROW(FK_TEST, 24);
   4425 L_38030EBA:
   4426     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030ED1; /* 0x38030EBA: jne 0x38030ed1 */
   4427 L_38030EBC:
   4428     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030EBC: fcom qword ptr [0x3804e8f8] */
   4429 L_38030EC2:
   4430     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EC2: fnstsw ax */
   4431 L_38030EC4:
   4432     /* test HI8(eax), 1 */ /* 0x38030EC4: test ah, 1 */
   4433     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4434     _cf = 0;
   4435     _flag_k = FK_NARROW(FK_TEST, 24);
   4436 L_38030EC7:
   4437     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030ED1; /* 0x38030EC7: je 0x38030ed1 */
   4438 L_38030EC9:
   4439     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030EC9: fmul dword ptr [0x3804e8bc] */
   4440 L_38030ECF:
   4441     goto L_38030EF2; /* 0x38030ECF: jmp 0x38030ef2 */
   4442 L_38030ED1:
   4443     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030ED1: fmul dword ptr [0x3804e8f4] */
   4444 L_38030ED7:
   4445     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4447     esp = esp - 8; /* 0x38030ED7: sub esp, 8 */
   4448     _flag_k = FK_CMP;
   4449 L_38030EDA:
   4450     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EDA: fst dword ptr [ebp - 0x10] */
   4451 L_38030EDD:
   4452     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030EDD: fstp qword ptr [esp] */
   4453 L_38030EE0:
   4454     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030EE0: call dword ptr [0x3804e0ac] */
   4455     RECOMP_FLAGS_IN();
   4456 L_38030EE6:
   4457     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030EE6: fsubr dword ptr [ebp - 0x10] */
   4458 L_38030EE9:
   4459     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4460     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4461     esp = esp + 8; /* 0x38030EE9: add esp, 8 */
   4462     _flag_k = FK_ADD;
   4463 L_38030EEC:
   4464     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030EEC: fmul dword ptr [0x3804e8f0] */
   4465 L_38030EF2:
   4466     fp_push(_st[0]); /* 0x38030EF2: fld st(0) */
   4467 L_38030EF4:
   4468     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030EF4: fsin  */
   4469 L_38030EF6:
   4470     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030EF6: fld dword ptr [0x3804e8e4] */
   4471 L_38030EFC:
   4472     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EFC: fst dword ptr [ebp - 0x10] */
   4473 L_38030EFF:
   4474     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38030EFF: fstp dword ptr [ebp - 0x74] */
   4475 L_38030F02:
   4476     eax = MEM32(ebp + (-0x10)); /* 0x38030F02: mov eax, dword ptr [ebp - 0x10] */
   4477 L_38030F05:
   4478     MEM32(ebp + (-0x6C)) = eax; /* 0x38030F05: mov dword ptr [ebp - 0x6c], eax */
   4479 L_38030F08:
   4480     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x38030F08: fstp dword ptr [ebp - 0x70] */
   4481 L_38030F0B:
   4482     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F0B: fcos  */
   4483 L_38030F0D:
   4484     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38030F0D: fstp dword ptr [ebp - 0x68] */
   4485 L_38030F10:
   4486     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38030F10: fild dword ptr [ebp - 0x14] */
   4487 L_38030F13:
   4488     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38030F13: fmul qword ptr [0x3804f6a0] */
   4489 L_38030F19:
   4490     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38030F19: fadd qword ptr [0x3804f698] */
   4491 L_38030F1F:
   4492     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030F1F: fcom dword ptr [0x3804e8e4] */
   4493 L_38030F25:
   4494     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F25: fnstsw ax */
   4495 L_38030F27:
   4496     /* test HI8(eax), 1 */ /* 0x38030F27: test ah, 1 */
   4497     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4498     _cf = 0;
   4499     _flag_k = FK_NARROW(FK_TEST, 24);
   4500 L_38030F2A:
   4501     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030F41; /* 0x38030F2A: jne 0x38030f41 */
   4502 L_38030F2C:
   4503     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030F2C: fcom qword ptr [0x3804e8f8] */
   4504 L_38030F32:
   4505     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F32: fnstsw ax */
   4506 L_38030F34:
   4507     /* test HI8(eax), 1 */ /* 0x38030F34: test ah, 1 */
   4508     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4509     _cf = 0;
   4510     _flag_k = FK_NARROW(FK_TEST, 24);
   4511 L_38030F37:
   4512     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030F41; /* 0x38030F37: je 0x38030f41 */
   4513 L_38030F39:
   4514     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030F39: fmul dword ptr [0x3804e8bc] */
   4515 L_38030F3F:
   4516     goto L_38030F62; /* 0x38030F3F: jmp 0x38030f62 */
   4517 L_38030F41:
   4518     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030F41: fmul dword ptr [0x3804e8f4] */
   4519 L_38030F47:
   4520     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4522     esp = esp - 8; /* 0x38030F47: sub esp, 8 */
   4523     _flag_k = FK_CMP;
   4524 L_38030F4A:
   4525     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030F4A: fst dword ptr [ebp - 0x10] */
   4526 L_38030F4D:
   4527     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030F4D: fstp qword ptr [esp] */
   4528 L_38030F50:
   4529     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030F50: call dword ptr [0x3804e0ac] */
   4530     RECOMP_FLAGS_IN();
   4531 L_38030F56:
   4532     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030F56: fsubr dword ptr [ebp - 0x10] */
   4533 L_38030F59:
   4534     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4535     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4536     esp = esp + 8; /* 0x38030F59: add esp, 8 */
   4537     _flag_k = FK_ADD;
   4538 L_38030F5C:
   4539     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030F5C: fmul dword ptr [0x3804e8f0] */
   4540 L_38030F62:
   4541     fp_push(_st[0]); /* 0x38030F62: fld st(0) */
   4542 L_38030F64:
   4543     PUSH32(esp, 0x3806CB10u); /* 0x38030F64: push 0x3806cb10 */
   4544 L_38030F69:
   4545     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030F69: fsin  */
   4546 L_38030F6B:
   4547     PUSH32(esp, 0x000F6951u); /* 0x38030F6B: push 0xf6951 */
   4548 L_38030F70:
   4549     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030F70: fld dword ptr [0x3804e8e4] */
   4550 L_38030F76:
   4551     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030F76: fst dword ptr [ebp - 0x14] */
   4552 L_38030F79:
   4553     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38030F79: fstp dword ptr [ebp - 0x64] */
   4554 L_38030F7C:
   4555     ecx = MEM32(ebp + (-0x14)); /* 0x38030F7C: mov ecx, dword ptr [ebp - 0x14] */
   4556 L_38030F7F:
   4557     MEM32(ebp + (-0x5C)) = ecx; /* 0x38030F7F: mov dword ptr [ebp - 0x5c], ecx */
   4558 L_38030F82:
   4559     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x38030F82: fstp dword ptr [ebp - 0x60] */
   4560 L_38030F85:
   4561     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F85: fcos  */
   4562 L_38030F87:
   4563     fp_push(_st[0]); /* 0x38030F87: fld st(0) */
   4564 L_38030F89:
   4565     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030F89: fmul dword ptr [ebp - 0x74] */
   4566 L_38030F8C:
   4567     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030F8C: fld dword ptr [ebp - 0x5c] */
   4568 L_38030F8F:
   4569     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030F8F: fmul dword ptr [ebp - 0x70] */
   4570 L_38030F92:
   4571     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030F92: faddp st(1) */
   4572 L_38030F94:
   4573     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030F94: fld dword ptr [ebp - 0x60] */
   4574 L_38030F97:
   4575     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030F97: fmul dword ptr [ebp - 0x6c] */
   4576 L_38030F9A:
   4577     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030F9A: fsubp st(1) */
   4578 L_38030F9C:
   4579     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x38030F9C: fld dword ptr [ebp - 0x68] */
   4580 L_38030F9F:
   4581     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030F9F: fmul dword ptr [ebp - 0x64] */
   4582 L_38030FA2:
   4583     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FA2: faddp st(1) */
   4584 L_38030FA4:
   4585     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FA4: fld dword ptr [ebp - 0x60] */
   4586 L_38030FA7:
   4587     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FA7: fmul dword ptr [ebp - 0x68] */
   4588 L_38030FAA:
   4589     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FAA: fld dword ptr [ebp - 0x5c] */
   4590 L_38030FAD:
   4591     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FAD: fmul dword ptr [ebp - 0x74] */
   4592 L_38030FB0:
   4593     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FB0: fsubp st(1) */
   4594 L_38030FB2:
   4595     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x38030FB2: fld dword ptr [ebp - 0x6c] */
   4596 L_38030FB5:
   4597     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FB5: fmul dword ptr [ebp - 0x64] */
   4598 L_38030FB8:
   4599     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FB8: faddp st(1) */
   4600 L_38030FBA:
   4601     fp_push(_st[2]); /* 0x38030FBA: fld st(2) */
   4602 L_38030FBC:
   4603     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030FBC: fmul dword ptr [ebp - 0x70] */
   4604 L_38030FBF:
   4605     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FBF: faddp st(1) */
   4606 L_38030FC1:
   4607     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030FC1: fstp dword ptr [ebp - 0x14] */
   4608 L_38030FC4:
   4609     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FC4: fld dword ptr [ebp - 0x60] */
   4610 L_38030FC7:
   4611     edx = MEM32(ebp + (-0x14)); /* 0x38030FC7: mov edx, dword ptr [ebp - 0x14] */
   4612 L_38030FCA:
   4613     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FCA: fmul dword ptr [ebp - 0x74] */
   4614 L_38030FCD:
   4615     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x38030FCD: fld dword ptr [ebp - 0x70] */
   4616 L_38030FD0:
   4617     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FD0: fmul dword ptr [ebp - 0x64] */
   4618 L_38030FD3:
   4619     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FD3: fsubp st(1) */
   4620 L_38030FD5:
   4621     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FD5: fld dword ptr [ebp - 0x5c] */
   4622 L_38030FD8:
   4623     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FD8: fmul dword ptr [ebp - 0x68] */
   4624 L_38030FDB:
   4625     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FDB: faddp st(1) */
   4626 L_38030FDD:
   4627     fp_push(_st[2]); /* 0x38030FDD: fld st(2) */
   4628 L_38030FDF:
   4629     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FDF: fmul dword ptr [ebp - 0x6c] */
   4630 L_38030FE2:
   4631     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FE2: faddp st(1) */
   4632 L_38030FE4:
   4633     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030FE4: fstp dword ptr [ebp - 0x10] */
   4634 L_38030FE7:
   4635     eax = MEM32(ebp + (-0x10)); /* 0x38030FE7: mov eax, dword ptr [ebp - 0x10] */
   4636 L_38030FEA:
   4637     fp_xch(1); /* 0x38030FEA: fxch st(1) */
   4638 L_38030FEC:
   4639     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FEC: fmul dword ptr [ebp - 0x68] */
   4640 L_38030FEF:
   4641     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x38030FEF: fld dword ptr [ebp - 0x64] */
   4642 L_38030FF2:
   4643     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FF2: fmul dword ptr [ebp - 0x74] */
   4644 L_38030FF5:
   4645     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FF5: fld dword ptr [ebp - 0x5c] */
   4646 L_38030FF8:
   4647     MEM32(ebp + (-0x5C)) = eax; /* 0x38030FF8: mov dword ptr [ebp - 0x5c], eax */
   4648 L_38030FFB:
   4649     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FFB: fmul dword ptr [ebp - 0x6c] */
   4650 L_38030FFE:
   4651     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FFE: faddp st(1) */
   4652 L_38031000:
   4653     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38031000: fld dword ptr [ebp - 0x60] */
   4654 L_38031003:
   4655     MEM32(ebp + (-0x60)) = edx; /* 0x38031003: mov dword ptr [ebp - 0x60], edx */
   4656 L_38031006:
   4657     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38031006: fmul dword ptr [ebp - 0x70] */
   4658 L_38031009:
   4659     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031009: faddp st(1) */
   4660 L_3803100B:
   4661     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803100B: fsubp st(1) */
   4662 L_3803100D:
   4663     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3803100D: fstp dword ptr [ebp - 0x58] */
   4664 L_38031010:
   4665     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38031010: fstp dword ptr [ebp - 0x64] */
   4666 L_38031013:
   4667     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x38031013: call dword ptr [0x3804e4b0] */
   4668     RECOMP_FLAGS_IN();
   4669 L_38031019:
   4670     edi = eax; /* 0x38031019: mov edi, eax */
   4671 L_3803101B:
   4672     eax = MEM32(esi + 0x98); /* 0x3803101B: mov eax, dword ptr [esi + 0x98] */
   4673 L_38031021:
   4674     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4675     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4676     esp = esp + 8; /* 0x38031021: add esp, 8 */
   4677     _flag_k = FK_ADD;
   4678 L_38031024:
   4679     /* cmp eax, ebx */ /* 0x38031024: cmp eax, ebx */
   4680     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4682     _flag_k = FK_CMP;
   4683 L_38031026:
   4684     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803104E; /* 0x38031026: jne 0x3803104e */
   4685 L_38031028:
   4686     PUSH32(esp, 0x10u); /* 0x38031028: push 0x10 */
   4687 L_3803102A:
   4688     RECOMP_ICALL(0x3804B676u); /* 0x3803102A: call 0x3804b676 */ /* not lifted */
   4689     RECOMP_FLAGS_IN();
   4690 L_3803102F:
   4691     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4692     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4693     esp = esp + 4; /* 0x3803102F: add esp, 4 */
   4694     _flag_k = FK_ADD;
   4695 L_38031032:
   4696     /* cmp eax, ebx */ /* 0x38031032: cmp eax, ebx */
   4697     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4698     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4699     _flag_k = FK_CMP;
   4700 L_38031034:
   4701     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031046; /* 0x38031034: je 0x38031046 */
   4702 L_38031036:
   4703     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031036: mov cl, byte ptr [ebp + 0xb] */
   4704 L_38031039:
   4705     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031039: mov byte ptr [eax], cl */
   4706 L_3803103B:
   4707     MEM32(eax + 0x4) = ebx; /* 0x3803103B: mov dword ptr [eax + 4], ebx */
   4708 L_3803103E:
   4709     MEM32(eax + 0x8) = ebx; /* 0x3803103E: mov dword ptr [eax + 8], ebx */
   4710 L_38031041:
   4711     MEM32(eax + 0xC) = ebx; /* 0x38031041: mov dword ptr [eax + 0xc], ebx */
   4712 L_38031044:
   4713     goto L_38031048; /* 0x38031044: jmp 0x38031048 */
   4714 L_38031046:
   4715     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4716     eax = 0; /* 0x38031046: xor eax, eax */
   4717     _cf = 0;
   4718     _flag_k = FK_TEST;
   4719 L_38031048:
   4720     MEM32(esi + 0x98) = eax; /* 0x38031048: mov dword ptr [esi + 0x98], eax */
   4721 L_3803104E:
   4722     PUSH32(esp, 0x58u); /* 0x3803104E: push 0x58 */
   4723 L_38031050:
   4724     RECOMP_ICALL(0x3804B676u); /* 0x38031050: call 0x3804b676 */ /* not lifted */
   4725     RECOMP_FLAGS_IN();
   4726 L_38031055:
   4727     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4729     esp = esp + 4; /* 0x38031055: add esp, 4 */
   4730     _flag_k = FK_ADD;
   4731 L_38031058:
   4732     MEM32(ebp + (-0x24)) = eax; /* 0x38031058: mov dword ptr [ebp - 0x24], eax */
   4733 L_3803105B:
   4734     /* cmp eax, ebx */ /* 0x3803105B: cmp eax, ebx */
   4735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4737     _flag_k = FK_CMP;
   4738 L_3803105D:
   4739     MEM32(ebp + (-0x4)) = ebx; /* 0x3803105D: mov dword ptr [ebp - 4], ebx */
   4740 L_38031060:
   4741     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031094; /* 0x38031060: je 0x38031094 */
   4742 L_38031062:
   4743     ecx = MEM32(ebp + (-0x78)); /* 0x38031062: mov ecx, dword ptr [ebp - 0x78] */
   4744 L_38031065:
   4745     edx = MEM32(esi + 0xB0); /* 0x38031065: mov edx, dword ptr [esi + 0xb0] */
   4746 L_3803106B:
   4747     fp_push(*(float*)&MEM32(edx + ecx + 0xC)); /* 0x3803106B: fld dword ptr [edx + ecx + 0xc] */
   4748 L_3803106F:
   4749     PUSH32(esp, ebx); /* 0x3803106F: push ebx */
   4750 L_38031070:
   4751     _st[0] *= (double)*(float*)ADDR(0x3804F694); /* 0x38031070: fmul dword ptr [0x3804f694] */
   4752 L_38031076:
   4753     PUSH32(esp, ebx); /* 0x38031076: push ebx */
   4754 L_38031077:
   4755     PUSH32(esp, ebx); /* 0x38031077: push ebx */
   4756 L_38031078:
   4757     PUSH32(esp, ebx); /* 0x38031078: push ebx */
   4758 L_38031079:
   4759     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4760     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4761     edx = edx + ecx; /* 0x38031079: add edx, ecx */
   4762     _flag_k = FK_ADD;
   4763 L_3803107B:
   4764     PUSH32(esp, ebx); /* 0x3803107B: push ebx */
   4765 L_3803107C:
   4766     PUSH32(esp, edi); /* 0x3803107C: push edi */
   4767 L_3803107D:
   4768     PUSH32(esp, ecx); /* 0x3803107D: push ecx */
   4769 L_3803107E:
   4770     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3803107E: fstp dword ptr [esp] */
   4771 L_38031081:
   4772     PUSH32(esp, 0x00FFFFFFu); /* 0x38031081: push 0xffffff */
   4773 L_38031086:
   4774     ecx = ebp + (-0x64); /* 0x38031086: lea ecx, [ebp - 0x64] */
   4775 L_38031089:
   4776     PUSH32(esp, ecx); /* 0x38031089: push ecx */
   4777 L_3803108A:
   4778     PUSH32(esp, edx); /* 0x3803108A: push edx */
   4779 L_3803108B:
   4780     ecx = eax; /* 0x3803108B: mov ecx, eax */
   4781 L_3803108D:
   4782     RECOMP_ICALL(0x3800B350u); /* 0x3803108D: call 0x3800b350 */ /* not lifted */
   4783     RECOMP_FLAGS_IN();
   4784 L_38031092:
   4785     goto L_38031096; /* 0x38031092: jmp 0x38031096 */
   4786 L_38031094:
   4787     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4788     eax = 0; /* 0x38031094: xor eax, eax */
   4789     _cf = 0;
   4790     _flag_k = FK_TEST;
   4791 L_38031096:
   4792     ecx = MEM32(esi + 0x98); /* 0x38031096: mov ecx, dword ptr [esi + 0x98] */
   4793 L_3803109C:
   4794     edx = ebp + (-0xB0); /* 0x3803109C: lea edx, [ebp - 0xb0] */
   4795 L_380310A2:
   4796     PUSH32(esp, edx); /* 0x380310A2: push edx */
   4797 L_380310A3:
   4798     MEM32(ebp + (-0xB0)) = eax; /* 0x380310A3: mov dword ptr [ebp - 0xb0], eax */
   4799 L_380310A9:
   4800     eax = MEM32(ecx + 0x8); /* 0x380310A9: mov eax, dword ptr [ecx + 8] */
   4801 L_380310AC:
   4802     PUSH32(esp, 1); /* 0x380310AC: push 1 */
   4803 L_380310AE:
   4804     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380310AE: mov dword ptr [ebp - 4], 0xffffffff */
   4805 L_380310B5:
   4806     PUSH32(esp, eax); /* 0x380310B5: push eax */
   4807 L_380310B6:
   4808     goto L_380316B2; /* 0x380310B6: jmp 0x380316b2 */
   4809 L_380310BB:
   4810     /* cmp ecx, ebx */ /* 0x380310BB: cmp ecx, ebx */
   4811     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4813     _flag_k = FK_CMP;
   4814 L_380310BD:
   4815     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x380310BD: je 0x380316b7 */
   4816 L_380310C3:
   4817     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x380310C3: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
   4818     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
   4819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4820     _flag_k = FK_CMP;
   4821 L_380310CB:
   4822     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_380316B7; /* 0x380310CB: jne 0x380316b7 */
   4823 L_380310D1:
   4824     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x380310D1: mov ax, word ptr [eax + 2] */
   4825 L_380310D5:
   4826     MEM32(ebp + (-0x1C)) = 0; /* 0x380310D5: mov dword ptr [ebp - 0x1c], 0 */
   4827 L_380310DC:
   4828     MEM32(ebp + (-0x10)) = eax; /* 0x380310DC: mov dword ptr [ebp - 0x10], eax */
   4829 L_380310DF:
   4830     if (2u) _cf = (((MEM16(ebp + (-0x10))) >> 1) & 1u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
   4831     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x10)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4832     MEM16(ebp + (-0x10)) = (uint16_t)(MEM16(ebp + (-0x10)) >> 2u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
   4833 L_380310E4:
   4834     ecx = MEM32(ebp + (-0x10)); /* 0x380310E4: mov ecx, dword ptr [ebp - 0x10] */
   4835 L_380310E7:
   4836     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4837     eax = eax & 3; /* 0x380310E7: and eax, 3 */
   4838     _cf = 0;
   4839     _flag_k = FK_TEST;
   4840 L_380310EA:
   4841     edi = eax; /* 0x380310EA: mov edi, eax */
   4842 L_380310EC:
   4843     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
   4844     ecx = ecx & 0xFFFFu; /* 0x380310EC: and ecx, 0xffff */
   4845     _cf = 0;
   4846     _flag_k = FK_TEST;
   4847 L_380310F2:
   4848     eax = ecx; /* 0x380310F2: mov eax, ecx */
   4849 L_380310F4:
   4850     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x380310F4: cdq  */
   4851 L_380310F5:
   4852     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x380310F5: idiv dword ptr [ebp - 0x88] */
   4853       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   4854       else { eax = 0; edx = 0; } }
   4855 L_380310FB:
   4856     eax = ecx; /* 0x380310FB: mov eax, ecx */
   4857 L_380310FD:
   4858     ecx = esi + 0x6C; /* 0x380310FD: lea ecx, [esi + 0x6c] */
   4859 L_38031100:
   4860     MEM32(ebp + (-0x24)) = edi; /* 0x38031100: mov dword ptr [ebp - 0x24], edi */
   4861 L_38031103:
   4862     MEM32(ebp + (-0x14)) = edx; /* 0x38031103: mov dword ptr [ebp - 0x14], edx */
   4863 L_38031106:
   4864     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031106: cdq  */
   4865 L_38031107:
   4866     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38031107: fild dword ptr [ebp - 0x14] */
   4867 L_3803110A:
   4868     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x3803110A: idiv dword ptr [ebp - 0x88] */
   4869       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   4870       else { eax = 0; edx = 0; } }
   4871 L_38031110:
   4872     /* cmp edi, 3 */ /* 0x38031110: cmp edi, 3 */
   4873     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   4874     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4875     _flag_k = FK_CMP;
   4876 L_38031113:
   4877     edx = MEM32(ecx); /* 0x38031113: mov edx, dword ptr [ecx] */
   4878 L_38031115:
   4879     MEM32(ebp + (-0x84)) = edx; /* 0x38031115: mov dword ptr [ebp - 0x84], edx */
   4880 L_3803111B:
   4881     MEM32(ebp + (-0x10)) = eax; /* 0x3803111B: mov dword ptr [ebp - 0x10], eax */
   4882 L_3803111E:
   4883     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3803111E: fild dword ptr [ebp - 0x10] */
   4884 L_38031121:
   4885     eax = MEM32(ecx + 0x4); /* 0x38031121: mov eax, dword ptr [ecx + 4] */
   4886 L_38031124:
   4887     ecx = MEM32(ecx + 0x8); /* 0x38031124: mov ecx, dword ptr [ecx + 8] */
   4888 L_38031127:
   4889     MEM32(ebp + (-0x80)) = eax; /* 0x38031127: mov dword ptr [ebp - 0x80], eax */
   4890 L_3803112A:
   4891     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803112A: fstp dword ptr [ebp - 0x18] */
   4892 L_3803112D:
   4893     MEM32(ebp + (-0x7C)) = ecx; /* 0x3803112D: mov dword ptr [ebp - 0x7c], ecx */
   4894 L_38031130:
   4895     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031130: fmul dword ptr [ebp - 0x44] */
   4896 L_38031133:
   4897     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031133: fld dword ptr [ebp - 0x18] */
   4898 L_38031136:
   4899     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031136: fmul dword ptr [ebp - 0x44] */
   4900 L_38031139:
   4901     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031139: fstp dword ptr [ebp - 0x18] */
   4902 L_3803113C:
   4903     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x3803113C: fld dword ptr [ebp - 0x84] */
   4904 L_38031142:
   4905     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031142: fmul dword ptr [ebp - 0x44] */
   4906 L_38031145:
   4907     fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x38031145: fld dword ptr [ebp - 0x80] */
   4908 L_38031148:
   4909     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031148: fmul dword ptr [ebp - 0x44] */
   4910 L_3803114B:
   4911     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803114B: fstp dword ptr [ebp - 0x80] */
   4912 L_3803114E:
   4913     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3803114E: fld dword ptr [ebp - 0x7c] */
   4914 L_38031151:
   4915     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031151: fmul dword ptr [ebp - 0x44] */
   4916 L_38031154:
   4917     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38031154: fstp dword ptr [ebp - 0x7c] */
   4918 L_38031157:
   4919     fp_xch(1); /* 0x38031157: fxch st(1) */
   4920 L_38031159:
   4921     _st[0] -= _st[1]; /* 0x38031159: fsub st(1) */
   4922 L_3803115B:
   4923     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3803115B: fstp dword ptr [ebp - 0x20] */
   4924 L_3803115E:
   4925     edx = MEM32(ebp + (-0x20)); /* 0x3803115E: mov edx, dword ptr [ebp - 0x20] */
   4926 L_38031161:
   4927     MEM32(ebp + (-0x30)) = edx; /* 0x38031161: mov dword ptr [ebp - 0x30], edx */
   4928 L_38031164:
   4929     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031164: fstp st(0) */
   4930 L_38031166:
   4931     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38031166: fld dword ptr [ebp - 0x1c] */
   4932 L_38031169:
   4933     _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x38031169: fsub dword ptr [ebp - 0x80] */
   4934 L_3803116C:
   4935     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803116C: fstp dword ptr [ebp - 0x1c] */
   4936 L_3803116F:
   4937     eax = MEM32(ebp + (-0x1C)); /* 0x3803116F: mov eax, dword ptr [ebp - 0x1c] */
   4938 L_38031172:
   4939     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031172: fld dword ptr [ebp - 0x18] */
   4940 L_38031175:
   4941     MEM32(ebp + (-0x2C)) = eax; /* 0x38031175: mov dword ptr [ebp - 0x2c], eax */
   4942 L_38031178:
   4943     _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x38031178: fsub dword ptr [ebp - 0x7c] */
   4944 L_3803117B:
   4945     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803117B: fstp dword ptr [ebp - 0x18] */
   4946 L_3803117E:
   4947     ecx = MEM32(ebp + (-0x18)); /* 0x3803117E: mov ecx, dword ptr [ebp - 0x18] */
   4948 L_38031181:
   4949     MEM32(ebp + (-0x28)) = ecx; /* 0x38031181: mov dword ptr [ebp - 0x28], ecx */
   4950 L_38031184:
   4951     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_380311F0; /* 0x38031184: ja 0x380311f0 */
   4952 L_38031186:
   4953     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x380316F8)); goto _ljump; }
   4954 L_3803118D:
   4955     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803118D: fld dword ptr [ebp - 0x18] */
   4956 L_38031190:
   4957     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031190: fadd dword ptr [0x3804f690] */
   4958 L_38031196:
   4959     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031196: fstp dword ptr [ebp - 0x18] */
   4960 L_38031199:
   4961     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031199: fld dword ptr [ebp - 0x28] */
   4962 L_3803119C:
   4963     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x3803119C: fadd dword ptr [0x3804f68c] */
   4964 L_380311A2:
   4965     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311A2: fstp dword ptr [ebp - 0x28] */
   4966 L_380311A5:
   4967     goto L_380311F0; /* 0x380311A5: jmp 0x380311f0 */
   4968 L_380311A7:
   4969     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311A7: fld dword ptr [ebp - 0x20] */
   4970 L_380311AA:
   4971     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380311AA: fadd dword ptr [0x3804f690] */
   4972 L_380311B0:
   4973     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311B0: fstp dword ptr [ebp - 0x20] */
   4974 L_380311B3:
   4975     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311B3: fld dword ptr [ebp - 0x30] */
   4976 L_380311B6:
   4977     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x380311B6: fadd dword ptr [0x3804f68c] */
   4978 L_380311BC:
   4979     goto L_380311ED; /* 0x380311BC: jmp 0x380311ed */
   4980 L_380311BE:
   4981     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380311BE: fld dword ptr [ebp - 0x18] */
   4982 L_380311C1:
   4983     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311C1: fsub dword ptr [0x3804f690] */
   4984 L_380311C7:
   4985     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380311C7: fstp dword ptr [ebp - 0x18] */
   4986 L_380311CA:
   4987     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380311CA: fld dword ptr [ebp - 0x28] */
   4988 L_380311CD:
   4989     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311CD: fsub dword ptr [0x3804f68c] */
   4990 L_380311D3:
   4991     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311D3: fstp dword ptr [ebp - 0x28] */
   4992 L_380311D6:
   4993     goto L_380311F0; /* 0x380311D6: jmp 0x380311f0 */
   4994 L_380311D8:
   4995     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311D8: fld dword ptr [ebp - 0x20] */
   4996 L_380311DB:
   4997     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311DB: fsub dword ptr [0x3804f690] */
   4998 L_380311E1:
   4999     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311E1: fstp dword ptr [ebp - 0x20] */
   5000 L_380311E4:
   5001     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311E4: fld dword ptr [ebp - 0x30] */
   5002 L_380311E7:
   5003     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311E7: fsub dword ptr [0x3804f68c] */
   5004 L_380311ED:
   5005     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380311ED: fstp dword ptr [ebp - 0x30] */
   5006 L_380311F0:
   5007     edx = MEM32(esi + 0x44); /* 0x380311F0: mov edx, dword ptr [esi + 0x44] */
   5008 L_380311F3:
   5009     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5010     ebx = 0; /* 0x380311F3: xor ebx, ebx */
   5011     _cf = 0;
   5012     _flag_k = FK_TEST;
   5013 L_380311F5:
   5014     MEM32(ebp + (-0xDC)) = edx; /* 0x380311F5: mov dword ptr [ebp - 0xdc], edx */
   5015 L_380311FB:
   5016     MEM32(ebp + (-0xD8)) = ebx; /* 0x380311FB: mov dword ptr [ebp - 0xd8], ebx */
   5017 L_38031201:
   5018     fp_push_i64((int64_t)MEM64(ebp + (-0xDC))); /* 0x38031201: fild qword ptr [ebp - 0xdc] */
   5019 L_38031207:
   5020     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031207: fmul dword ptr [0x3804eac0] */
   5021 L_3803120D:
   5022     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803120D: fcom dword ptr [0x3804e8e4] */
   5023 L_38031213:
   5024     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031213: fnstsw ax */
   5025 L_38031215:
   5026     /* test HI8(eax), 1 */ /* 0x38031215: test ah, 1 */
   5027     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5028     _cf = 0;
   5029     _flag_k = FK_NARROW(FK_TEST, 24);
   5030 L_38031218:
   5031     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803122F; /* 0x38031218: jne 0x3803122f */
   5032 L_3803121A:
   5033     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803121A: fcom qword ptr [0x3804e8f8] */
   5034 L_38031220:
   5035     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031220: fnstsw ax */
   5036 L_38031222:
   5037     /* test HI8(eax), 1 */ /* 0x38031222: test ah, 1 */
   5038     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5039     _cf = 0;
   5040     _flag_k = FK_NARROW(FK_TEST, 24);
   5041 L_38031225:
   5042     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803122F; /* 0x38031225: je 0x3803122f */
   5043 L_38031227:
   5044     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031227: fmul dword ptr [0x3804e8bc] */
   5045 L_3803122D:
   5046     goto L_38031250; /* 0x3803122D: jmp 0x38031250 */
   5047 L_3803122F:
   5048     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803122F: fmul dword ptr [0x3804e8f4] */
   5049 L_38031235:
   5050     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5052     esp = esp - 8; /* 0x38031235: sub esp, 8 */
   5053     _flag_k = FK_CMP;
   5054 L_38031238:
   5055     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031238: fst dword ptr [ebp - 0x10] */
   5056 L_3803123B:
   5057     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3803123B: fstp qword ptr [esp] */
   5058 L_3803123E:
   5059     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3803123E: call dword ptr [0x3804e0ac] */
   5060     RECOMP_FLAGS_IN();
   5061 L_38031244:
   5062     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38031244: fsubr dword ptr [ebp - 0x10] */
   5063 L_38031247:
   5064     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5065     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5066     esp = esp + 8; /* 0x38031247: add esp, 8 */
   5067     _flag_k = FK_ADD;
   5068 L_3803124A:
   5069     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3803124A: fmul dword ptr [0x3804e8f0] */
   5070 L_38031250:
   5071     fp_push(_st[0]); /* 0x38031250: fld st(0) */
   5072 L_38031252:
   5073     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031252: fsin  */
   5074 L_38031254:
   5075     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031254: fld dword ptr [0x3804e8e4] */
   5076 L_3803125A:
   5077     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803125A: fst dword ptr [ebp - 0x14] */
   5078 L_3803125D:
   5079     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3803125D: fstp dword ptr [ebp - 0x40] */
   5080 L_38031260:
   5081     eax = MEM32(ebp + (-0x14)); /* 0x38031260: mov eax, dword ptr [ebp - 0x14] */
   5082 L_38031263:
   5083     MEM32(ebp + (-0x38)) = eax; /* 0x38031263: mov dword ptr [ebp - 0x38], eax */
   5084 L_38031266:
   5085     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x38031266: fstp dword ptr [ebp - 0x3c] */
   5086 L_38031269:
   5087     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031269: fcos  */
   5088 L_3803126B:
   5089     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3803126B: fstp dword ptr [ebp - 0x34] */
   5090 L_3803126E:
   5091     fp_push((double)(int32_t)MEM32(ebp + (-0x24))); /* 0x3803126E: fild dword ptr [ebp - 0x24] */
   5092 L_38031271:
   5093     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38031271: fmul qword ptr [0x3804f6a0] */
   5094 L_38031277:
   5095     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38031277: fadd qword ptr [0x3804f698] */
   5096 L_3803127D:
   5097     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803127D: fcom dword ptr [0x3804e8e4] */
   5098 L_38031283:
   5099     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031283: fnstsw ax */
   5100 L_38031285:
   5101     /* test HI8(eax), 1 */ /* 0x38031285: test ah, 1 */
   5102     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5103     _cf = 0;
   5104     _flag_k = FK_NARROW(FK_TEST, 24);
   5105 L_38031288:
   5106     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803129F; /* 0x38031288: jne 0x3803129f */
   5107 L_3803128A:
   5108     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803128A: fcom qword ptr [0x3804e8f8] */
   5109 L_38031290:
   5110     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031290: fnstsw ax */
   5111 L_38031292:
   5112     /* test HI8(eax), 1 */ /* 0x38031292: test ah, 1 */
   5113     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5114     _cf = 0;
   5115     _flag_k = FK_NARROW(FK_TEST, 24);
   5116 L_38031295:
   5117     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803129F; /* 0x38031295: je 0x3803129f */
   5118 L_38031297:
   5119     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031297: fmul dword ptr [0x3804e8bc] */
   5120 L_3803129D:
   5121     goto L_380312C0; /* 0x3803129D: jmp 0x380312c0 */
   5122 L_3803129F:
   5123     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803129F: fmul dword ptr [0x3804e8f4] */
   5124 L_380312A5:
   5125     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5127     esp = esp - 8; /* 0x380312A5: sub esp, 8 */
   5128     _flag_k = FK_CMP;
   5129 L_380312A8:
   5130     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380312A8: fst dword ptr [ebp - 0x10] */
   5131 L_380312AB:
   5132     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380312AB: fstp qword ptr [esp] */
   5133 L_380312AE:
   5134     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380312AE: call dword ptr [0x3804e0ac] */
   5135     RECOMP_FLAGS_IN();
   5136 L_380312B4:
   5137     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x380312B4: fsubr dword ptr [ebp - 0x10] */
   5138 L_380312B7:
   5139     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5141     esp = esp + 8; /* 0x380312B7: add esp, 8 */
   5142     _flag_k = FK_ADD;
   5143 L_380312BA:
   5144     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x380312BA: fmul dword ptr [0x3804e8f0] */
   5145 L_380312C0:
   5146     fp_push(_st[0]); /* 0x380312C0: fld st(0) */
   5147 L_380312C2:
   5148     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380312C2: fsin  */
   5149 L_380312C4:
   5150     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380312C4: fld dword ptr [0x3804e8e4] */
   5151 L_380312CA:
   5152     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380312CA: fst dword ptr [ebp - 0x24] */
   5153 L_380312CD:
   5154     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x380312CD: fstp dword ptr [ebp - 0x54] */
   5155 L_380312D0:
   5156     ecx = MEM32(ebp + (-0x24)); /* 0x380312D0: mov ecx, dword ptr [ebp - 0x24] */
   5157 L_380312D3:
   5158     MEM32(ebp + (-0x4C)) = ecx; /* 0x380312D3: mov dword ptr [ebp - 0x4c], ecx */
   5159 L_380312D6:
   5160     ecx = MEM32(ebp + (-0x40)); /* 0x380312D6: mov ecx, dword ptr [ebp - 0x40] */
   5161 L_380312D9:
   5162     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x380312D9: fstp dword ptr [ebp - 0x50] */
   5163 L_380312DC:
   5164     MEM32(ebp + (-0xFC)) = ecx; /* 0x380312DC: mov dword ptr [ebp - 0xfc], ecx */
   5165 L_380312E2:
   5166     ecx = ebp + (-0x20); /* 0x380312E2: lea ecx, [ebp - 0x20] */
   5167 L_380312E5:
   5168     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380312E5: fcos  */
   5169 L_380312E7:
   5170     PUSH32(esp, ecx); /* 0x380312E7: push ecx */
   5171 L_380312E8:
   5172     ecx = ebp + (-0xFC); /* 0x380312E8: lea ecx, [ebp - 0xfc] */
   5173 L_380312EE:
   5174     fp_push(_st[0]); /* 0x380312EE: fld st(0) */
   5175 L_380312F0:
   5176     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x380312F0: fmul dword ptr [ebp - 0x40] */
   5177 L_380312F3:
   5178     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x380312F3: fld dword ptr [ebp - 0x4c] */
   5179 L_380312F6:
   5180     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x380312F6: fmul dword ptr [ebp - 0x3c] */
   5181 L_380312F9:
   5182     { double _v = fp_pop(); _st[0] += _v; } /* 0x380312F9: faddp st(1) */
   5183 L_380312FB:
   5184     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x380312FB: fld dword ptr [ebp - 0x50] */
   5185 L_380312FE:
   5186     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x380312FE: fmul dword ptr [ebp - 0x38] */
   5187 L_38031301:
   5188     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031301: fsubp st(1) */
   5189 L_38031303:
   5190     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031303: fld dword ptr [ebp - 0x34] */
   5191 L_38031306:
   5192     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031306: fmul dword ptr [ebp - 0x54] */
   5193 L_38031309:
   5194     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031309: faddp st(1) */
   5195 L_3803130B:
   5196     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803130B: fld dword ptr [ebp - 0x50] */
   5197 L_3803130E:
   5198     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803130E: fmul dword ptr [ebp - 0x34] */
   5199 L_38031311:
   5200     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38031311: fld dword ptr [ebp - 0x4c] */
   5201 L_38031314:
   5202     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031314: fmul dword ptr [ebp - 0x40] */
   5203 L_38031317:
   5204     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031317: fsubp st(1) */
   5205 L_38031319:
   5206     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38031319: fld dword ptr [ebp - 0x38] */
   5207 L_3803131C:
   5208     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3803131C: fmul dword ptr [ebp - 0x54] */
   5209 L_3803131F:
   5210     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803131F: faddp st(1) */
   5211 L_38031321:
   5212     fp_push(_st[2]); /* 0x38031321: fld st(2) */
   5213 L_38031323:
   5214     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031323: fmul dword ptr [ebp - 0x3c] */
   5215 L_38031326:
   5216     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031326: faddp st(1) */
   5217 L_38031328:
   5218     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38031328: fstp dword ptr [ebp - 0x24] */
   5219 L_3803132B:
   5220     edx = MEM32(ebp + (-0x24)); /* 0x3803132B: mov edx, dword ptr [ebp - 0x24] */
   5221 L_3803132E:
   5222     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803132E: fld dword ptr [ebp - 0x50] */
   5223 L_38031331:
   5224     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031331: fmul dword ptr [ebp - 0x40] */
   5225 L_38031334:
   5226     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x38031334: fld dword ptr [ebp - 0x3c] */
   5227 L_38031337:
   5228     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031337: fmul dword ptr [ebp - 0x54] */
   5229 L_3803133A:
   5230     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803133A: fsubp st(1) */
   5231 L_3803133C:
   5232     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803133C: fld dword ptr [ebp - 0x4c] */
   5233 L_3803133F:
   5234     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803133F: fmul dword ptr [ebp - 0x34] */
   5235 L_38031342:
   5236     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031342: faddp st(1) */
   5237 L_38031344:
   5238     fp_push(_st[2]); /* 0x38031344: fld st(2) */
   5239 L_38031346:
   5240     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031346: fmul dword ptr [ebp - 0x38] */
   5241 L_38031349:
   5242     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031349: faddp st(1) */
   5243 L_3803134B:
   5244     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803134B: fstp dword ptr [ebp - 0x14] */
   5245 L_3803134E:
   5246     eax = MEM32(ebp + (-0x14)); /* 0x3803134E: mov eax, dword ptr [ebp - 0x14] */
   5247 L_38031351:
   5248     fp_xch(1); /* 0x38031351: fxch st(1) */
   5249 L_38031353:
   5250     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x38031353: fmul dword ptr [ebp - 0x34] */
   5251 L_38031356:
   5252     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x38031356: fld dword ptr [ebp - 0x54] */
   5253 L_38031359:
   5254     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031359: fmul dword ptr [ebp - 0x40] */
   5255 L_3803135C:
   5256     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803135C: fld dword ptr [ebp - 0x4c] */
   5257 L_3803135F:
   5258     MEM32(ebp + (-0x4C)) = eax; /* 0x3803135F: mov dword ptr [ebp - 0x4c], eax */
   5259 L_38031362:
   5260     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031362: fmul dword ptr [ebp - 0x38] */
   5261 L_38031365:
   5262     eax = MEM32(ebp + (-0x38)); /* 0x38031365: mov eax, dword ptr [ebp - 0x38] */
   5263 L_38031368:
   5264     MEM32(ebp + (-0xF4)) = eax; /* 0x38031368: mov dword ptr [ebp - 0xf4], eax */
   5265 L_3803136E:
   5266     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803136E: faddp st(1) */
   5267 L_38031370:
   5268     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38031370: fld dword ptr [ebp - 0x50] */
   5269 L_38031373:
   5270     MEM32(ebp + (-0x50)) = edx; /* 0x38031373: mov dword ptr [ebp - 0x50], edx */
   5271 L_38031376:
   5272     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031376: fmul dword ptr [ebp - 0x3c] */
   5273 L_38031379:
   5274     edx = MEM32(ebp + (-0x3C)); /* 0x38031379: mov edx, dword ptr [ebp - 0x3c] */
   5275 L_3803137C:
   5276     MEM32(ebp + (-0xF8)) = edx; /* 0x3803137C: mov dword ptr [ebp - 0xf8], edx */
   5277 L_38031382:
   5278     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031382: faddp st(1) */
   5279 L_38031384:
   5280     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031384: fsubp st(1) */
   5281 L_38031386:
   5282     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x38031386: fstp dword ptr [ebp - 0x48] */
   5283 L_38031389:
   5284     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x38031389: fstp dword ptr [ebp - 0x54] */
   5285 L_3803138C:
   5286     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3803138C: call dword ptr [0x3804e4c8] */
   5287     RECOMP_FLAGS_IN();
   5288 L_38031392:
   5289     edx = MEM32(eax); /* 0x38031392: mov edx, dword ptr [eax] */
   5290 L_38031394:
   5291     MEM32(ebp + (-0xA8)) = edx; /* 0x38031394: mov dword ptr [ebp - 0xa8], edx */
   5292 L_3803139A:
   5293     ecx = MEM32(eax + 0x4); /* 0x3803139A: mov ecx, dword ptr [eax + 4] */
   5294 L_3803139D:
   5295     MEM32(ebp + (-0xA4)) = ecx; /* 0x3803139D: mov dword ptr [ebp - 0xa4], ecx */
   5296 L_380313A3:
   5297     edx = MEM32(eax + 0x8); /* 0x380313A3: mov edx, dword ptr [eax + 8] */
   5298 L_380313A6:
   5299     eax = ebp + (-0xA8); /* 0x380313A6: lea eax, [ebp - 0xa8] */
   5300 L_380313AC:
   5301     PUSH32(esp, eax); /* 0x380313AC: push eax */
   5302 L_380313AD:
   5303     ecx = ebp + (-0x114); /* 0x380313AD: lea ecx, [ebp - 0x114] */
   5304 L_380313B3:
   5305     MEM32(ebp + (-0xA0)) = edx; /* 0x380313B3: mov dword ptr [ebp - 0xa0], edx */
   5306 L_380313B9:
   5307     PUSH32(esp, ecx); /* 0x380313B9: push ecx */
   5308 L_380313BA:
   5309     ecx = ebp + (-0x40); /* 0x380313BA: lea ecx, [ebp - 0x40] */
   5310 L_380313BD:
   5311     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380313BD: call dword ptr [0x3804e4fc] */
   5312     RECOMP_FLAGS_IN();
   5313 L_380313C3:
   5314     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x380313C3: fld dword ptr [ebp - 0x34] */
   5315 L_380313C6:
   5316     edx = MEM32(eax); /* 0x380313C6: mov edx, dword ptr [eax] */
   5317 L_380313C8:
   5318     _st[0] += _st[0]; /* 0x380313C8: fadd st(0), st(0) */
   5319 L_380313CA:
   5320     MEM32(ebp + (-0xD4)) = edx; /* 0x380313CA: mov dword ptr [ebp - 0xd4], edx */
   5321 L_380313D0:
   5322     ecx = MEM32(eax + 0x4); /* 0x380313D0: mov ecx, dword ptr [eax + 4] */
   5323 L_380313D3:
   5324     MEM32(ebp + (-0xD0)) = ecx; /* 0x380313D3: mov dword ptr [ebp - 0xd0], ecx */
   5325 L_380313D9:
   5326     edx = MEM32(eax + 0x8); /* 0x380313D9: mov edx, dword ptr [eax + 8] */
   5327 L_380313DC:
   5328     PUSH32(esp, ecx); /* 0x380313DC: push ecx */
   5329 L_380313DD:
   5330     ecx = ebp + (-0xA8); /* 0x380313DD: lea ecx, [ebp - 0xa8] */
   5331 L_380313E3:
   5332     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380313E3: fstp dword ptr [esp] */
   5333 L_380313E6:
   5334     MEM32(ebp + (-0xCC)) = edx; /* 0x380313E6: mov dword ptr [ebp - 0xcc], edx */
   5335 L_380313EC:
   5336     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313EC: call dword ptr [0x3804e4d4] */
   5337     RECOMP_FLAGS_IN();
   5338 L_380313F2:
   5339     PUSH32(esp, 0x40000000u); /* 0x380313F2: push 0x40000000 */
   5340 L_380313F7:
   5341     ecx = ebp + (-0xD4); /* 0x380313F7: lea ecx, [ebp - 0xd4] */
   5342 L_380313FD:
   5343     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313FD: call dword ptr [0x3804e4d4] */
   5344     RECOMP_FLAGS_IN();
   5345 L_38031403:
   5346     eax = ebp + (-0xA8); /* 0x38031403: lea eax, [ebp - 0xa8] */
   5347 L_38031409:
   5348     PUSH32(esp, eax); /* 0x38031409: push eax */
   5349 L_3803140A:
   5350     ecx = ebp + (-0x20); /* 0x3803140A: lea ecx, [ebp - 0x20] */
   5351 L_3803140D:
   5352     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803140D: call dword ptr [0x3804e4e8] */
   5353     RECOMP_FLAGS_IN();
   5354 L_38031413:
   5355     ecx = ebp + (-0xD4); /* 0x38031413: lea ecx, [ebp - 0xd4] */
   5356 L_38031419:
   5357     PUSH32(esp, ecx); /* 0x38031419: push ecx */
   5358 L_3803141A:
   5359     ecx = ebp + (-0x20); /* 0x3803141A: lea ecx, [ebp - 0x20] */
   5360 L_3803141D:
   5361     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803141D: call dword ptr [0x3804e4e8] */
   5362     RECOMP_FLAGS_IN();
   5363 L_38031423:
   5364     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031423: fld dword ptr [ebp - 0x20] */
   5365 L_38031426:
   5366     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x38031426: fadd dword ptr [esi + 0x54] */
   5367 L_38031429:
   5368     edx = MEM32(ebp + (-0x40)); /* 0x38031429: mov edx, dword ptr [ebp - 0x40] */
   5369 L_3803142C:
   5370     ecx = MEM32(ebp + (-0x38)); /* 0x3803142C: mov ecx, dword ptr [ebp - 0x38] */
   5371 L_3803142F:
   5372     eax = MEM32(ebp + (-0x3C)); /* 0x3803142F: mov eax, dword ptr [ebp - 0x3c] */
   5373 L_38031432:
   5374     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031432: fstp dword ptr [ebp - 0x20] */
   5375 L_38031435:
   5376     MEM32(ebp + (-0xF0)) = edx; /* 0x38031435: mov dword ptr [ebp - 0xf0], edx */
   5377 L_3803143B:
   5378     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3803143B: fld dword ptr [ebp - 0x1c] */
   5379 L_3803143E:
   5380     edx = ebp + (-0x30); /* 0x3803143E: lea edx, [ebp - 0x30] */
   5381 L_38031441:
   5382     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031441: fadd dword ptr [esi + 0x58] */
   5383 L_38031444:
   5384     MEM32(ebp + (-0xE8)) = ecx; /* 0x38031444: mov dword ptr [ebp - 0xe8], ecx */
   5385 L_3803144A:
   5386     PUSH32(esp, edx); /* 0x3803144A: push edx */
   5387 L_3803144B:
   5388     ecx = ebp + (-0xF0); /* 0x3803144B: lea ecx, [ebp - 0xf0] */
   5389 L_38031451:
   5390     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38031451: fstp dword ptr [ebp - 0x1c] */
   5391 L_38031454:
   5392     MEM32(ebp + (-0xEC)) = eax; /* 0x38031454: mov dword ptr [ebp - 0xec], eax */
   5393 L_3803145A:
   5394     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803145A: fld dword ptr [ebp - 0x18] */
   5395 L_3803145D:
   5396     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x3803145D: fadd dword ptr [esi + 0x5c] */
   5397 L_38031460:
   5398     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031460: fstp dword ptr [ebp - 0x18] */
   5399 L_38031463:
   5400     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031463: call dword ptr [0x3804e4c8] */
   5401     RECOMP_FLAGS_IN();
   5402 L_38031469:
   5403     ecx = MEM32(eax); /* 0x38031469: mov ecx, dword ptr [eax] */
   5404 L_3803146B:
   5405     MEM32(ebp + (-0x98)) = ecx; /* 0x3803146B: mov dword ptr [ebp - 0x98], ecx */
   5406 L_38031471:
   5407     edx = MEM32(eax + 0x4); /* 0x38031471: mov edx, dword ptr [eax + 4] */
   5408 L_38031474:
   5409     MEM32(ebp + (-0x94)) = edx; /* 0x38031474: mov dword ptr [ebp - 0x94], edx */
   5410 L_3803147A:
   5411     eax = MEM32(eax + 0x8); /* 0x3803147A: mov eax, dword ptr [eax + 8] */
   5412 L_3803147D:
   5413     ecx = ebp + (-0x98); /* 0x3803147D: lea ecx, [ebp - 0x98] */
   5414 L_38031483:
   5415     PUSH32(esp, ecx); /* 0x38031483: push ecx */
   5416 L_38031484:
   5417     edx = ebp + (-0x108); /* 0x38031484: lea edx, [ebp - 0x108] */
   5418 L_3803148A:
   5419     PUSH32(esp, edx); /* 0x3803148A: push edx */
   5420 L_3803148B:
   5421     ecx = ebp + (-0x40); /* 0x3803148B: lea ecx, [ebp - 0x40] */
   5422 L_3803148E:
   5423     MEM32(ebp + (-0x90)) = eax; /* 0x3803148E: mov dword ptr [ebp - 0x90], eax */
   5424 L_38031494:
   5425     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x38031494: call dword ptr [0x3804e4fc] */
   5426     RECOMP_FLAGS_IN();
   5427 L_3803149A:
   5428     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3803149A: fld dword ptr [ebp - 0x34] */
   5429 L_3803149D:
   5430     ecx = MEM32(eax); /* 0x3803149D: mov ecx, dword ptr [eax] */
   5431 L_3803149F:
   5432     _st[0] += _st[0]; /* 0x3803149F: fadd st(0), st(0) */
   5433 L_380314A1:
   5434     MEM32(ebp + (-0xC8)) = ecx; /* 0x380314A1: mov dword ptr [ebp - 0xc8], ecx */
   5435 L_380314A7:
   5436     edx = MEM32(eax + 0x4); /* 0x380314A7: mov edx, dword ptr [eax + 4] */
   5437 L_380314AA:
   5438     MEM32(ebp + (-0xC4)) = edx; /* 0x380314AA: mov dword ptr [ebp - 0xc4], edx */
   5439 L_380314B0:
   5440     eax = MEM32(eax + 0x8); /* 0x380314B0: mov eax, dword ptr [eax + 8] */
   5441 L_380314B3:
   5442     PUSH32(esp, ecx); /* 0x380314B3: push ecx */
   5443 L_380314B4:
   5444     ecx = ebp + (-0x98); /* 0x380314B4: lea ecx, [ebp - 0x98] */
   5445 L_380314BA:
   5446     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380314BA: fstp dword ptr [esp] */
   5447 L_380314BD:
   5448     MEM32(ebp + (-0xC0)) = eax; /* 0x380314BD: mov dword ptr [ebp - 0xc0], eax */
   5449 L_380314C3:
   5450     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314C3: call dword ptr [0x3804e4d4] */
   5451     RECOMP_FLAGS_IN();
   5452 L_380314C9:
   5453     PUSH32(esp, 0x40000000u); /* 0x380314C9: push 0x40000000 */
   5454 L_380314CE:
   5455     ecx = ebp + (-0xC8); /* 0x380314CE: lea ecx, [ebp - 0xc8] */
   5456 L_380314D4:
   5457     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314D4: call dword ptr [0x3804e4d4] */
   5458     RECOMP_FLAGS_IN();
   5459 L_380314DA:
   5460     ecx = ebp + (-0x98); /* 0x380314DA: lea ecx, [ebp - 0x98] */
   5461 L_380314E0:
   5462     PUSH32(esp, ecx); /* 0x380314E0: push ecx */
   5463 L_380314E1:
   5464     ecx = ebp + (-0x30); /* 0x380314E1: lea ecx, [ebp - 0x30] */
   5465 L_380314E4:
   5466     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314E4: call dword ptr [0x3804e4e8] */
   5467     RECOMP_FLAGS_IN();
   5468 L_380314EA:
   5469     edx = ebp + (-0xC8); /* 0x380314EA: lea edx, [ebp - 0xc8] */
   5470 L_380314F0:
   5471     PUSH32(esp, edx); /* 0x380314F0: push edx */
   5472 L_380314F1:
   5473     ecx = ebp + (-0x30); /* 0x380314F1: lea ecx, [ebp - 0x30] */
   5474 L_380314F4:
   5475     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314F4: call dword ptr [0x3804e4e8] */
   5476     RECOMP_FLAGS_IN();
   5477 L_380314FA:
   5478     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380314FA: fld dword ptr [ebp - 0x30] */
   5479 L_380314FD:
   5480     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x380314FD: fadd dword ptr [esi + 0x54] */
   5481 L_38031500:
   5482     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031500: fstp dword ptr [ebp - 0x30] */
   5483 L_38031503:
   5484     PUSH32(esp, 0x3806CB10u); /* 0x38031503: push 0x3806cb10 */
   5485 L_38031508:
   5486     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031508: fld dword ptr [ebp - 0x2c] */
   5487 L_3803150B:
   5488     PUSH32(esp, 0x000F6951u); /* 0x3803150B: push 0xf6951 */
   5489 L_38031510:
   5490     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031510: fadd dword ptr [esi + 0x58] */
   5491 L_38031513:
   5492     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031513: fstp dword ptr [ebp - 0x2c] */
   5493 L_38031516:
   5494     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031516: fld dword ptr [ebp - 0x28] */
   5495 L_38031519:
   5496     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38031519: fadd dword ptr [esi + 0x5c] */
   5497 L_3803151C:
   5498     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3803151C: fstp dword ptr [ebp - 0x28] */
   5499 L_3803151F:
   5500     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x3803151F: call dword ptr [0x3804e4b0] */
   5501     RECOMP_FLAGS_IN();
   5502 L_38031525:
   5503     edi = eax; /* 0x38031525: mov edi, eax */
   5504 L_38031527:
   5505     eax = MEM32(esi + 0x98); /* 0x38031527: mov eax, dword ptr [esi + 0x98] */
   5506 L_3803152D:
   5507     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5508     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5509     esp = esp + 8; /* 0x3803152D: add esp, 8 */
   5510     _flag_k = FK_ADD;
   5511 L_38031530:
   5512     /* cmp eax, ebx */ /* 0x38031530: cmp eax, ebx */
   5513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5515     _flag_k = FK_CMP;
   5516 L_38031532:
   5517     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803155A; /* 0x38031532: jne 0x3803155a */
   5518 L_38031534:
   5519     PUSH32(esp, 0x10u); /* 0x38031534: push 0x10 */
   5520 L_38031536:
   5521     RECOMP_ICALL(0x3804B676u); /* 0x38031536: call 0x3804b676 */ /* not lifted */
   5522     RECOMP_FLAGS_IN();
   5523 L_3803153B:
   5524     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5525     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5526     esp = esp + 4; /* 0x3803153B: add esp, 4 */
   5527     _flag_k = FK_ADD;
   5528 L_3803153E:
   5529     /* cmp eax, ebx */ /* 0x3803153E: cmp eax, ebx */
   5530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5532     _flag_k = FK_CMP;
   5533 L_38031540:
   5534     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031552; /* 0x38031540: je 0x38031552 */
   5535 L_38031542:
   5536     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031542: mov cl, byte ptr [ebp + 0xb] */
   5537 L_38031545:
   5538     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031545: mov byte ptr [eax], cl */
   5539 L_38031547:
   5540     MEM32(eax + 0x4) = ebx; /* 0x38031547: mov dword ptr [eax + 4], ebx */
   5541 L_3803154A:
   5542     MEM32(eax + 0x8) = ebx; /* 0x3803154A: mov dword ptr [eax + 8], ebx */
   5543 L_3803154D:
   5544     MEM32(eax + 0xC) = ebx; /* 0x3803154D: mov dword ptr [eax + 0xc], ebx */
   5545 L_38031550:
   5546     goto L_38031554; /* 0x38031550: jmp 0x38031554 */
   5547 L_38031552:
   5548     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5549     eax = 0; /* 0x38031552: xor eax, eax */
   5550     _cf = 0;
   5551     _flag_k = FK_TEST;
   5552 L_38031554:
   5553     MEM32(esi + 0x98) = eax; /* 0x38031554: mov dword ptr [esi + 0x98], eax */
   5554 L_3803155A:
   5555     eax = MEM32(ebp + 0x8); /* 0x3803155A: mov eax, dword ptr [ebp + 8] */
   5556 L_3803155D:
   5557     edx = ebp + (-0x20); /* 0x3803155D: lea edx, [ebp - 0x20] */
   5558 L_38031560:
   5559     PUSH32(esp, edx); /* 0x38031560: push edx */
   5560 L_38031561:
   5561     PUSH32(esp, eax); /* 0x38031561: push eax */
   5562 L_38031562:
   5563     ecx = esi; /* 0x38031562: mov ecx, esi */
   5564 L_38031564:
   5565     RECOMP_ICALL(0x38032CE0u); /* 0x38031564: call 0x38032ce0 */ /* not lifted */
   5566     RECOMP_FLAGS_IN();
   5567 L_38031569:
   5568     ecx = MEM32(ebp + (-0x20)); /* 0x38031569: mov ecx, dword ptr [ebp - 0x20] */
   5569 L_3803156C:
   5570     edx = MEM32(ebp + (-0x1C)); /* 0x3803156C: mov edx, dword ptr [ebp - 0x1c] */
   5571 L_3803156F:
   5572     eax = MEM32(ebp + (-0x18)); /* 0x3803156F: mov eax, dword ptr [ebp - 0x18] */
   5573 L_38031572:
   5574     MEM32(ebp + (-0xBC)) = ecx; /* 0x38031572: mov dword ptr [ebp - 0xbc], ecx */
   5575 L_38031578:
   5576     ecx = ebp + (-0xBC); /* 0x38031578: lea ecx, [ebp - 0xbc] */
   5577 L_3803157E:
   5578     MEM32(ebp + (-0xB8)) = edx; /* 0x3803157E: mov dword ptr [ebp - 0xb8], edx */
   5579 L_38031584:
   5580     edx = MEM32(ebp + 0x8); /* 0x38031584: mov edx, dword ptr [ebp + 8] */
   5581 L_38031587:
   5582     PUSH32(esp, ecx); /* 0x38031587: push ecx */
   5583 L_38031588:
   5584     PUSH32(esp, edx); /* 0x38031588: push edx */
   5585 L_38031589:
   5586     ecx = esi; /* 0x38031589: mov ecx, esi */
   5587 L_3803158B:
   5588     MEM32(ebp + (-0xB4)) = eax; /* 0x3803158B: mov dword ptr [ebp - 0xb4], eax */
   5589 L_38031591:
   5590     RECOMP_ICALL(0x38032DE0u); /* 0x38031591: call 0x38032de0 */ /* not lifted */
   5591     RECOMP_FLAGS_IN();
   5592 L_38031596:
   5593     fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x38031596: fld dword ptr [ebp - 0xb8] */
   5594 L_3803159C:
   5595     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3803159C: fsub dword ptr [ebp - 0x1c] */
   5596 L_3803159F:
   5597     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803159F: fst dword ptr [ebp - 0x10] */
   5598 L_380315A2:
   5599     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x380315A2: fcomp dword ptr [0x3804f688] */
   5600     fp_pop();
   5601 L_380315A8:
   5602     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380315A8: fnstsw ax */
   5603 L_380315AA:
   5604     /* test HI8(eax), 0x41u */ /* 0x380315AA: test ah, 0x41 */
   5605     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5606     _cf = 0;
   5607     _flag_k = FK_NARROW(FK_TEST, 24);
   5608 L_380315AD:
   5609     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031657; /* 0x380315AD: jne 0x38031657 */
   5610 L_380315B3:
   5611     PUSH32(esp, 0x58u); /* 0x380315B3: push 0x58 */
   5612 L_380315B5:
   5613     RECOMP_ICALL(0x3804B676u); /* 0x380315B5: call 0x3804b676 */ /* not lifted */
   5614     RECOMP_FLAGS_IN();
   5615 L_380315BA:
   5616     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5617     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5618     esp = esp + 4; /* 0x380315BA: add esp, 4 */
   5619     _flag_k = FK_ADD;
   5620 L_380315BD:
   5621     MEM32(ebp + (-0x24)) = eax; /* 0x380315BD: mov dword ptr [ebp - 0x24], eax */
   5622 L_380315C0:
   5623     /* cmp eax, ebx */ /* 0x380315C0: cmp eax, ebx */
   5624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5626     _flag_k = FK_CMP;
   5627 L_380315C2:
   5628     MEM32(ebp + (-0x4)) = 1; /* 0x380315C2: mov dword ptr [ebp - 4], 1 */
   5629 L_380315C9:
   5630     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315EC; /* 0x380315C9: je 0x380315ec */
   5631 L_380315CB:
   5632     PUSH32(esp, ebx); /* 0x380315CB: push ebx */
   5633 L_380315CC:
   5634     PUSH32(esp, ebx); /* 0x380315CC: push ebx */
   5635 L_380315CD:
   5636     PUSH32(esp, ebx); /* 0x380315CD: push ebx */
   5637 L_380315CE:
   5638     PUSH32(esp, ebx); /* 0x380315CE: push ebx */
   5639 L_380315CF:
   5640     PUSH32(esp, ebx); /* 0x380315CF: push ebx */
   5641 L_380315D0:
   5642     PUSH32(esp, edi); /* 0x380315D0: push edi */
   5643 L_380315D1:
   5644     PUSH32(esp, 0x3FA00000u); /* 0x380315D1: push 0x3fa00000 */
   5645 L_380315D6:
   5646     PUSH32(esp, 0x00FFFFFFu); /* 0x380315D6: push 0xffffff */
   5647 L_380315DB:
   5648     ecx = ebp + (-0x54); /* 0x380315DB: lea ecx, [ebp - 0x54] */
   5649 L_380315DE:
   5650     PUSH32(esp, ecx); /* 0x380315DE: push ecx */
   5651 L_380315DF:
   5652     edx = ebp + (-0x30); /* 0x380315DF: lea edx, [ebp - 0x30] */
   5653 L_380315E2:
   5654     PUSH32(esp, edx); /* 0x380315E2: push edx */
   5655 L_380315E3:
   5656     ecx = eax; /* 0x380315E3: mov ecx, eax */
   5657 L_380315E5:
   5658     RECOMP_ICALL(0x3800B350u); /* 0x380315E5: call 0x3800b350 */ /* not lifted */
   5659     RECOMP_FLAGS_IN();
   5660 L_380315EA:
   5661     goto L_380315EE; /* 0x380315EA: jmp 0x380315ee */
   5662 L_380315EC:
   5663     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5664     eax = 0; /* 0x380315EC: xor eax, eax */
   5665     _cf = 0;
   5666     _flag_k = FK_TEST;
   5667 L_380315EE:
   5668     ecx = MEM32(esi + 0x98); /* 0x380315EE: mov ecx, dword ptr [esi + 0x98] */
   5669 L_380315F4:
   5670     edx = ebp + (-0xAC); /* 0x380315F4: lea edx, [ebp - 0xac] */
   5671 L_380315FA:
   5672     PUSH32(esp, edx); /* 0x380315FA: push edx */
   5673 L_380315FB:
   5674     MEM32(ebp + (-0xAC)) = eax; /* 0x380315FB: mov dword ptr [ebp - 0xac], eax */
   5675 L_38031601:
   5676     eax = MEM32(ecx + 0x8); /* 0x38031601: mov eax, dword ptr [ecx + 8] */
   5677 L_38031604:
   5678     PUSH32(esp, 1); /* 0x38031604: push 1 */
   5679 L_38031606:
   5680     PUSH32(esp, eax); /* 0x38031606: push eax */
   5681 L_38031607:
   5682     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38031607: mov dword ptr [ebp - 4], 0xffffffff */
   5683 L_3803160E:
   5684     RECOMP_ICALL(0x38009C60u); /* 0x3803160E: call 0x38009c60 */ /* not lifted */
   5685     RECOMP_FLAGS_IN();
   5686 L_38031613:
   5687     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031613: fld dword ptr [ebp - 0x2c] */
   5688 L_38031616:
   5689     _st[0] += (double)*(float*)ADDR(0x3804F684); /* 0x38031616: fadd dword ptr [0x3804f684] */
   5690 L_3803161C:
   5691     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3803161C: fstp dword ptr [ebp - 0x2c] */
   5692 L_3803161F:
   5693     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803161F: fld dword ptr [ebp - 0x10] */
   5694 L_38031622:
   5695     _st[0] -= (double)*(float*)ADDR(0x3804F684); /* 0x38031622: fsub dword ptr [0x3804f684] */
   5696 L_38031628:
   5697     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031628: fcom dword ptr [0x3804f688] */
   5698 L_3803162E:
   5699     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803162E: fst dword ptr [ebp - 0x10] */
   5700 L_38031631:
   5701     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031631: fnstsw ax */
   5702 L_38031633:
   5703     /* test HI8(eax), 1 */ /* 0x38031633: test ah, 1 */
   5704     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5705     _cf = 0;
   5706     _flag_k = FK_NARROW(FK_TEST, 24);
   5707 L_38031636:
   5708     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031646; /* 0x38031636: je 0x38031646 */
   5709 L_38031638:
   5710     fp_push(_st[0]); /* 0x38031638: fld st(0) */
   5711 L_3803163A:
   5712     _st[0] -= (double)*(float*)ADDR(0x3804F688); /* 0x3803163A: fsub dword ptr [0x3804f688] */
   5713 L_38031640:
   5714     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x38031640: fadd dword ptr [ebp - 0x2c] */
   5715 L_38031643:
   5716     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031643: fstp dword ptr [ebp - 0x2c] */
   5717 L_38031646:
   5718     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031646: fcomp dword ptr [0x3804f688] */
   5719     fp_pop();
   5720 L_3803164C:
   5721     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803164C: fnstsw ax */
   5722 L_3803164E:
   5723     /* test HI8(eax), 0x41u */ /* 0x3803164E: test ah, 0x41 */
   5724     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5725     _cf = 0;
   5726     _flag_k = FK_NARROW(FK_TEST, 24);
   5727 L_38031651:
   5728     RECOMP_BACKEDGE();
   5729     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315B3; /* 0x38031651: je 0x380315b3 */
   5730 L_38031657:
   5731     PUSH32(esp, 0x58u); /* 0x38031657: push 0x58 */
   5732 L_38031659:
   5733     RECOMP_ICALL(0x3804B676u); /* 0x38031659: call 0x3804b676 */ /* not lifted */
   5734     RECOMP_FLAGS_IN();
   5735 L_3803165E:
   5736     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5737     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5738     esp = esp + 4; /* 0x3803165E: add esp, 4 */
   5739     _flag_k = FK_ADD;
   5740 L_38031661:
   5741     MEM32(ebp + (-0x24)) = eax; /* 0x38031661: mov dword ptr [ebp - 0x24], eax */
   5742 L_38031664:
   5743     /* cmp eax, ebx */ /* 0x38031664: cmp eax, ebx */
   5744     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5746     _flag_k = FK_CMP;
   5747 L_38031666:
   5748     MEM32(ebp + (-0x4)) = 2; /* 0x38031666: mov dword ptr [ebp - 4], 2 */
   5749 L_3803166D:
   5750     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031690; /* 0x3803166D: je 0x38031690 */
   5751 L_3803166F:
   5752     PUSH32(esp, ebx); /* 0x3803166F: push ebx */
   5753 L_38031670:
   5754     PUSH32(esp, ebx); /* 0x38031670: push ebx */
   5755 L_38031671:
   5756     PUSH32(esp, ebx); /* 0x38031671: push ebx */
   5757 L_38031672:
   5758     PUSH32(esp, ebx); /* 0x38031672: push ebx */
   5759 L_38031673:
   5760     PUSH32(esp, ebx); /* 0x38031673: push ebx */
   5761 L_38031674:
   5762     PUSH32(esp, edi); /* 0x38031674: push edi */
   5763 L_38031675:
   5764     PUSH32(esp, 0x3FA00000u); /* 0x38031675: push 0x3fa00000 */
   5765 L_3803167A:
   5766     PUSH32(esp, 0x00FFFFFFu); /* 0x3803167A: push 0xffffff */
   5767 L_3803167F:
   5768     ecx = ebp + (-0x54); /* 0x3803167F: lea ecx, [ebp - 0x54] */
   5769 L_38031682:
   5770     PUSH32(esp, ecx); /* 0x38031682: push ecx */
   5771 L_38031683:
   5772     edx = ebp + (-0x30); /* 0x38031683: lea edx, [ebp - 0x30] */
   5773 L_38031686:
   5774     PUSH32(esp, edx); /* 0x38031686: push edx */
   5775 L_38031687:
   5776     ecx = eax; /* 0x38031687: mov ecx, eax */
   5777 L_38031689:
   5778     RECOMP_ICALL(0x3800B350u); /* 0x38031689: call 0x3800b350 */ /* not lifted */
   5779     RECOMP_FLAGS_IN();
   5780 L_3803168E:
   5781     goto L_38031692; /* 0x3803168E: jmp 0x38031692 */
   5782 L_38031690:
   5783     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5784     eax = 0; /* 0x38031690: xor eax, eax */
   5785     _cf = 0;
   5786     _flag_k = FK_TEST;
   5787 L_38031692:
   5788     ecx = MEM32(esi + 0x98); /* 0x38031692: mov ecx, dword ptr [esi + 0x98] */
   5789 L_38031698:
   5790     MEM32(ebp + (-0x9C)) = eax; /* 0x38031698: mov dword ptr [ebp - 0x9c], eax */
   5791 L_3803169E:
   5792     edx = MEM32(ecx + 0x8); /* 0x3803169E: mov edx, dword ptr [ecx + 8] */
   5793 L_380316A1:
   5794     eax = ebp + (-0x9C); /* 0x380316A1: lea eax, [ebp - 0x9c] */
   5795 L_380316A7:
   5796     PUSH32(esp, eax); /* 0x380316A7: push eax */
   5797 L_380316A8:
   5798     PUSH32(esp, 1); /* 0x380316A8: push 1 */
   5799 L_380316AA:
   5800     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380316AA: mov dword ptr [ebp - 4], 0xffffffff */
   5801 L_380316B1:
   5802     PUSH32(esp, edx); /* 0x380316B1: push edx */
   5803 L_380316B2:
   5804     RECOMP_ICALL(0x38009C60u); /* 0x380316B2: call 0x38009c60 */ /* not lifted */
   5805     RECOMP_FLAGS_IN();
   5806 L_380316B7:
   5807     eax = MEM32(ebp + (-0x8C)); /* 0x380316B7: mov eax, dword ptr [ebp - 0x8c] */
   5808 L_380316BD:
   5809     edx = MEM32(ebp + (-0x78)); /* 0x380316BD: mov edx, dword ptr [ebp - 0x78] */
   5810 L_380316C0:
   5811     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5812     ecx = 0; /* 0x380316C0: xor ecx, ecx */
   5813     _cf = 0;
   5814     _flag_k = FK_TEST;
   5815 L_380316C2:
   5816     SET_LO16(ecx, MEM16(esi + 0x7C)); /* 0x380316C2: mov cx, word ptr [esi + 0x7c] */
   5817 L_380316C6:
   5818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5819     eax = eax + 1; /* 0x380316C6: inc eax */
   5820     _flag_k = FK_INC;
   5821 L_380316C7:
   5822     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   5823     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5824     edx = edx + 0x10u; /* 0x380316C7: add edx, 0x10 */
   5825     _flag_k = FK_ADD;
   5826 L_380316CA:
   5827     MEM32(ebp + (-0x8C)) = eax; /* 0x380316CA: mov dword ptr [ebp - 0x8c], eax */
   5828 L_380316D0:
   5829     MEM32(ebp + (-0x78)) = edx; /* 0x380316D0: mov dword ptr [ebp - 0x78], edx */
   5830 L_380316D3:
   5831     /* cmp eax, ecx */ /* 0x380316D3: cmp eax, ecx */
   5832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5834     _flag_k = FK_CMP;
   5835 L_380316D5:
   5836     RECOMP_BACKEDGE();
   5837     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38030E4E; /* 0x380316D5: jl 0x38030e4e */
   5838 L_380316DB:
   5839     edi = POP32_VAL(esp); /* 0x380316DB: pop edi */
   5840 L_380316DC:
   5841     PUSH32(esp, ebx); /* 0x380316DC: push ebx */
   5842 L_380316DD:
   5843     ecx = esi; /* 0x380316DD: mov ecx, esi */
   5844 L_380316DF:
   5845     RECOMP_ICALL(0x38030440u); /* 0x380316DF: call 0x38030440 */ /* not lifted */
   5846     RECOMP_FLAGS_IN();
   5847 L_380316E4:
   5848     ecx = MEM32(ebp + (-0xC)); /* 0x380316E4: mov ecx, dword ptr [ebp - 0xc] */
   5849 L_380316E7:
   5850     esi = POP32_VAL(esp); /* 0x380316E7: pop esi */
   5851 L_380316E8:
   5852     ebx = POP32_VAL(esp); /* 0x380316E8: pop ebx */
   5853 L_380316E9:
   5854     MEM32(FS_BASE + (0)) = ecx; /* 0x380316E9: mov dword ptr fs:[0], ecx */
   5855 L_380316F0:
   5856     esp = ebp; /* 0x380316F0: mov esp, ebp */
   5857 L_380316F2:
   5858     ebp = POP32_VAL(esp); /* 0x380316F2: pop ebp */
   5859 L_380316F3:
   5860     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380316F3: ret 8 */
   5861   _ljump:
   5862     switch (_itail_tgt) {
   5863       case 0x38030E4Eu: goto L_38030E4E;
   5864       case 0x38030E54u: goto L_38030E54;
   5865       case 0x38030E57u: goto L_38030E57;
   5866       case 0x38030E5Au: goto L_38030E5A;
   5867       case 0x38030E5Du: goto L_38030E5D;
   5868       case 0x38030E5Fu: goto L_38030E5F;
   5869       case 0x38030E65u: goto L_38030E65;
   5870       case 0x38030E68u: goto L_38030E68;
   5871       case 0x38030E6Eu: goto L_38030E6E;
   5872       case 0x38030E74u: goto L_38030E74;
   5873       case 0x38030E76u: goto L_38030E76;
   5874       case 0x38030E7Cu: goto L_38030E7C;
   5875       case 0x38030E84u: goto L_38030E84;
   5876       case 0x38030E8Au: goto L_38030E8A;
   5877       case 0x38030E8Du: goto L_38030E8D;
   5878       case 0x38030E91u: goto L_38030E91;
   5879       case 0x38030E97u: goto L_38030E97;
   5880       case 0x38030E9Du: goto L_38030E9D;
   5881       case 0x38030EA3u: goto L_38030EA3;
   5882       case 0x38030EA9u: goto L_38030EA9;
   5883       case 0x38030EACu: goto L_38030EAC;
   5884       case 0x38030EAFu: goto L_38030EAF;
   5885       case 0x38030EB5u: goto L_38030EB5;
   5886       case 0x38030EB7u: goto L_38030EB7;
   5887       case 0x38030EBAu: goto L_38030EBA;
   5888       case 0x38030EBCu: goto L_38030EBC;
   5889       case 0x38030EC2u: goto L_38030EC2;
   5890       case 0x38030EC4u: goto L_38030EC4;
   5891       case 0x38030EC7u: goto L_38030EC7;
   5892       case 0x38030EC9u: goto L_38030EC9;
   5893       case 0x38030ECFu: goto L_38030ECF;
   5894       case 0x38030ED1u: goto L_38030ED1;
   5895       case 0x38030ED7u: goto L_38030ED7;
   5896       case 0x38030EDAu: goto L_38030EDA;
   5897       case 0x38030EDDu: goto L_38030EDD;
   5898       case 0x38030EE0u: goto L_38030EE0;
   5899       case 0x38030EE6u: goto L_38030EE6;
   5900       case 0x38030EE9u: goto L_38030EE9;
   5901       case 0x38030EECu: goto L_38030EEC;
   5902       case 0x38030EF2u: goto L_38030EF2;
   5903       case 0x38030EF4u: goto L_38030EF4;
   5904       case 0x38030EF6u: goto L_38030EF6;
   5905       case 0x38030EFCu: goto L_38030EFC;
   5906       case 0x38030EFFu: goto L_38030EFF;
   5907       case 0x38030F02u: goto L_38030F02;
   5908       case 0x38030F05u: goto L_38030F05;
   5909       case 0x38030F08u: goto L_38030F08;
   5910       case 0x38030F0Bu: goto L_38030F0B;
   5911       case 0x38030F0Du: goto L_38030F0D;
   5912       case 0x38030F10u: goto L_38030F10;
   5913       case 0x38030F13u: goto L_38030F13;
   5914       case 0x38030F19u: goto L_38030F19;
   5915       case 0x38030F1Fu: goto L_38030F1F;
   5916       case 0x38030F25u: goto L_38030F25;
   5917       case 0x38030F27u: goto L_38030F27;
   5918       case 0x38030F2Au: goto L_38030F2A;
   5919       case 0x38030F2Cu: goto L_38030F2C;
   5920       case 0x38030F32u: goto L_38030F32;
   5921       case 0x38030F34u: goto L_38030F34;
   5922       case 0x38030F37u: goto L_38030F37;
   5923       case 0x38030F39u: goto L_38030F39;
   5924       case 0x38030F3Fu: goto L_38030F3F;
   5925       case 0x38030F41u: goto L_38030F41;
   5926       case 0x38030F47u: goto L_38030F47;
   5927       case 0x38030F4Au: goto L_38030F4A;
   5928       case 0x38030F4Du: goto L_38030F4D;
   5929       case 0x38030F50u: goto L_38030F50;
   5930       case 0x38030F56u: goto L_38030F56;
   5931       case 0x38030F59u: goto L_38030F59;
   5932       case 0x38030F5Cu: goto L_38030F5C;
   5933       case 0x38030F62u: goto L_38030F62;
   5934       case 0x38030F64u: goto L_38030F64;
   5935       case 0x38030F69u: goto L_38030F69;
   5936       case 0x38030F6Bu: goto L_38030F6B;
   5937       case 0x38030F70u: goto L_38030F70;
   5938       case 0x38030F76u: goto L_38030F76;
   5939       case 0x38030F79u: goto L_38030F79;
   5940       case 0x38030F7Cu: goto L_38030F7C;
   5941       case 0x38030F7Fu: goto L_38030F7F;
   5942       case 0x38030F82u: goto L_38030F82;
   5943       case 0x38030F85u: goto L_38030F85;
   5944       case 0x38030F87u: goto L_38030F87;
   5945       case 0x38030F89u: goto L_38030F89;
   5946       case 0x38030F8Cu: goto L_38030F8C;
   5947       case 0x38030F8Fu: goto L_38030F8F;
   5948       case 0x38030F92u: goto L_38030F92;
   5949       case 0x38030F94u: goto L_38030F94;
   5950       case 0x38030F97u: goto L_38030F97;
   5951       case 0x38030F9Au: goto L_38030F9A;
   5952       case 0x38030F9Cu: goto L_38030F9C;
   5953       case 0x38030F9Fu: goto L_38030F9F;
   5954       case 0x38030FA2u: goto L_38030FA2;
   5955       case 0x38030FA4u: goto L_38030FA4;
   5956       case 0x38030FA7u: goto L_38030FA7;
   5957       case 0x38030FAAu: goto L_38030FAA;
   5958       case 0x38030FADu: goto L_38030FAD;
   5959       case 0x38030FB0u: goto L_38030FB0;
   5960       case 0x38030FB2u: goto L_38030FB2;
   5961       case 0x38030FB5u: goto L_38030FB5;
   5962       case 0x38030FB8u: goto L_38030FB8;
   5963       case 0x38030FBAu: goto L_38030FBA;
   5964       case 0x38030FBCu: goto L_38030FBC;
   5965       case 0x38030FBFu: goto L_38030FBF;
   5966       case 0x38030FC1u: goto L_38030FC1;
   5967       case 0x38030FC4u: goto L_38030FC4;
   5968       case 0x38030FC7u: goto L_38030FC7;
   5969       case 0x38030FCAu: goto L_38030FCA;
   5970       case 0x38030FCDu: goto L_38030FCD;
   5971       case 0x38030FD0u: goto L_38030FD0;
   5972       case 0x38030FD3u: goto L_38030FD3;
   5973       case 0x38030FD5u: goto L_38030FD5;
   5974       case 0x38030FD8u: goto L_38030FD8;
   5975       case 0x38030FDBu: goto L_38030FDB;
   5976       case 0x38030FDDu: goto L_38030FDD;
   5977       case 0x38030FDFu: goto L_38030FDF;
   5978       case 0x38030FE2u: goto L_38030FE2;
   5979       case 0x38030FE4u: goto L_38030FE4;
   5980       case 0x38030FE7u: goto L_38030FE7;
   5981       case 0x38030FEAu: goto L_38030FEA;
   5982       case 0x38030FECu: goto L_38030FEC;
   5983       case 0x38030FEFu: goto L_38030FEF;
   5984       case 0x38030FF2u: goto L_38030FF2;
   5985       case 0x38030FF5u: goto L_38030FF5;
   5986       case 0x38030FF8u: goto L_38030FF8;
   5987       case 0x38030FFBu: goto L_38030FFB;
   5988       case 0x38030FFEu: goto L_38030FFE;
   5989       case 0x38031000u: goto L_38031000;
   5990       case 0x38031003u: goto L_38031003;
   5991       case 0x38031006u: goto L_38031006;
   5992       case 0x38031009u: goto L_38031009;
   5993       case 0x3803100Bu: goto L_3803100B;
   5994       case 0x3803100Du: goto L_3803100D;
   5995       case 0x38031010u: goto L_38031010;
   5996       case 0x38031013u: goto L_38031013;
   5997       case 0x38031019u: goto L_38031019;
   5998       case 0x3803101Bu: goto L_3803101B;
   5999       case 0x38031021u: goto L_38031021;
   6000       case 0x38031024u: goto L_38031024;
   6001       case 0x38031026u: goto L_38031026;
   6002       case 0x38031028u: goto L_38031028;
   6003       case 0x3803102Au: goto L_3803102A;
   6004       case 0x3803102Fu: goto L_3803102F;
   6005       case 0x38031032u: goto L_38031032;
   6006       case 0x38031034u: goto L_38031034;
   6007       case 0x38031036u: goto L_38031036;
   6008       case 0x38031039u: goto L_38031039;
   6009       case 0x3803103Bu: goto L_3803103B;
   6010       case 0x3803103Eu: goto L_3803103E;
   6011       case 0x38031041u: goto L_38031041;
   6012       case 0x38031044u: goto L_38031044;
   6013       case 0x38031046u: goto L_38031046;
   6014       case 0x38031048u: goto L_38031048;
   6015       case 0x3803104Eu: goto L_3803104E;
   6016       case 0x38031050u: goto L_38031050;
   6017       case 0x38031055u: goto L_38031055;
   6018       case 0x38031058u: goto L_38031058;
   6019       case 0x3803105Bu: goto L_3803105B;
   6020       case 0x3803105Du: goto L_3803105D;
   6021       case 0x38031060u: goto L_38031060;
   6022       case 0x38031062u: goto L_38031062;
   6023       case 0x38031065u: goto L_38031065;
   6024       case 0x3803106Bu: goto L_3803106B;
   6025       case 0x3803106Fu: goto L_3803106F;
   6026       case 0x38031070u: goto L_38031070;
   6027       case 0x38031076u: goto L_38031076;
   6028       case 0x38031077u: goto L_38031077;
   6029       case 0x38031078u: goto L_38031078;
   6030       case 0x38031079u: goto L_38031079;
   6031       case 0x3803107Bu: goto L_3803107B;
   6032       case 0x3803107Cu: goto L_3803107C;
   6033       case 0x3803107Du: goto L_3803107D;
   6034       case 0x3803107Eu: goto L_3803107E;
   6035       case 0x38031081u: goto L_38031081;
   6036       case 0x38031086u: goto L_38031086;
   6037       case 0x38031089u: goto L_38031089;
   6038       case 0x3803108Au: goto L_3803108A;
   6039       case 0x3803108Bu: goto L_3803108B;
   6040       case 0x3803108Du: goto L_3803108D;
   6041       case 0x38031092u: goto L_38031092;
   6042       case 0x38031094u: goto L_38031094;
   6043       case 0x38031096u: goto L_38031096;
   6044       case 0x3803109Cu: goto L_3803109C;
   6045       case 0x380310A2u: goto L_380310A2;
   6046       case 0x380310A3u: goto L_380310A3;
   6047       case 0x380310A9u: goto L_380310A9;
   6048       case 0x380310ACu: goto L_380310AC;
   6049       case 0x380310AEu: goto L_380310AE;
   6050       case 0x380310B5u: goto L_380310B5;
   6051       case 0x380310B6u: goto L_380310B6;
   6052       case 0x380310BBu: goto L_380310BB;
   6053       case 0x380310BDu: goto L_380310BD;
   6054       case 0x380310C3u: goto L_380310C3;
   6055       case 0x380310CBu: goto L_380310CB;
   6056       case 0x380310D1u: goto L_380310D1;
   6057       case 0x380310D5u: goto L_380310D5;
   6058       case 0x380310DCu: goto L_380310DC;
   6059       case 0x380310DFu: goto L_380310DF;
   6060       case 0x380310E4u: goto L_380310E4;
   6061       case 0x380310E7u: goto L_380310E7;
   6062       case 0x380310EAu: goto L_380310EA;
   6063       case 0x380310ECu: goto L_380310EC;
   6064       case 0x380310F2u: goto L_380310F2;
   6065       case 0x380310F4u: goto L_380310F4;
   6066       case 0x380310F5u: goto L_380310F5;
   6067       case 0x380310FBu: goto L_380310FB;
   6068       case 0x380310FDu: goto L_380310FD;
   6069       case 0x38031100u: goto L_38031100;
   6070       case 0x38031103u: goto L_38031103;
   6071       case 0x38031106u: goto L_38031106;
   6072       case 0x38031107u: goto L_38031107;
   6073       case 0x3803110Au: goto L_3803110A;
   6074       case 0x38031110u: goto L_38031110;
   6075       case 0x38031113u: goto L_38031113;
   6076       case 0x38031115u: goto L_38031115;
   6077       case 0x3803111Bu: goto L_3803111B;
   6078       case 0x3803111Eu: goto L_3803111E;
   6079       case 0x38031121u: goto L_38031121;
   6080       case 0x38031124u: goto L_38031124;
   6081       case 0x38031127u: goto L_38031127;
   6082       case 0x3803112Au: goto L_3803112A;
   6083       case 0x3803112Du: goto L_3803112D;
   6084       case 0x38031130u: goto L_38031130;
   6085       case 0x38031133u: goto L_38031133;
   6086       case 0x38031136u: goto L_38031136;
   6087       case 0x38031139u: goto L_38031139;
   6088       case 0x3803113Cu: goto L_3803113C;
   6089       case 0x38031142u: goto L_38031142;
   6090       case 0x38031145u: goto L_38031145;
   6091       case 0x38031148u: goto L_38031148;
   6092       case 0x3803114Bu: goto L_3803114B;
   6093       case 0x3803114Eu: goto L_3803114E;
   6094       case 0x38031151u: goto L_38031151;
   6095       case 0x38031154u: goto L_38031154;
   6096       case 0x38031157u: goto L_38031157;
   6097       case 0x38031159u: goto L_38031159;
   6098       case 0x3803115Bu: goto L_3803115B;
   6099       case 0x3803115Eu: goto L_3803115E;
   6100       case 0x38031161u: goto L_38031161;
   6101       case 0x38031164u: goto L_38031164;
   6102       case 0x38031166u: goto L_38031166;
   6103       case 0x38031169u: goto L_38031169;
   6104       case 0x3803116Cu: goto L_3803116C;
   6105       case 0x3803116Fu: goto L_3803116F;
   6106       case 0x38031172u: goto L_38031172;
   6107       case 0x38031175u: goto L_38031175;
   6108       case 0x38031178u: goto L_38031178;
   6109       case 0x3803117Bu: goto L_3803117B;
   6110       case 0x3803117Eu: goto L_3803117E;
   6111       case 0x38031181u: goto L_38031181;
   6112       case 0x38031184u: goto L_38031184;
   6113       case 0x38031186u: goto L_38031186;
   6114       case 0x3803118Du: goto L_3803118D;
   6115       case 0x38031190u: goto L_38031190;
   6116       case 0x38031196u: goto L_38031196;
   6117       case 0x38031199u: goto L_38031199;
   6118       case 0x3803119Cu: goto L_3803119C;
   6119       case 0x380311A2u: goto L_380311A2;
   6120       case 0x380311A5u: goto L_380311A5;
   6121       case 0x380311A7u: goto L_380311A7;
   6122       case 0x380311AAu: goto L_380311AA;
   6123       case 0x380311B0u: goto L_380311B0;
   6124       case 0x380311B3u: goto L_380311B3;
   6125       case 0x380311B6u: goto L_380311B6;
   6126       case 0x380311BCu: goto L_380311BC;
   6127       case 0x380311BEu: goto L_380311BE;
   6128       case 0x380311C1u: goto L_380311C1;
   6129       case 0x380311C7u: goto L_380311C7;
   6130       case 0x380311CAu: goto L_380311CA;
   6131       case 0x380311CDu: goto L_380311CD;
   6132       case 0x380311D3u: goto L_380311D3;
   6133       case 0x380311D6u: goto L_380311D6;
   6134       case 0x380311D8u: goto L_380311D8;
   6135       case 0x380311DBu: goto L_380311DB;
   6136       case 0x380311E1u: goto L_380311E1;
   6137       case 0x380311E4u: goto L_380311E4;
   6138       case 0x380311E7u: goto L_380311E7;
   6139       case 0x380311EDu: goto L_380311ED;
   6140       case 0x380311F0u: goto L_380311F0;
   6141       case 0x380311F3u: goto L_380311F3;
   6142       case 0x380311F5u: goto L_380311F5;
   6143       case 0x380311FBu: goto L_380311FB;
   6144       case 0x38031201u: goto L_38031201;
   6145       case 0x38031207u: goto L_38031207;
   6146       case 0x3803120Du: goto L_3803120D;
   6147       case 0x38031213u: goto L_38031213;
   6148       case 0x38031215u: goto L_38031215;
   6149       case 0x38031218u: goto L_38031218;
   6150       case 0x3803121Au: goto L_3803121A;
   6151       case 0x38031220u: goto L_38031220;
   6152       case 0x38031222u: goto L_38031222;
   6153       case 0x38031225u: goto L_38031225;
   6154       case 0x38031227u: goto L_38031227;
   6155       case 0x3803122Du: goto L_3803122D;
   6156       case 0x3803122Fu: goto L_3803122F;
   6157       case 0x38031235u: goto L_38031235;
   6158       case 0x38031238u: goto L_38031238;
   6159       case 0x3803123Bu: goto L_3803123B;
   6160       case 0x3803123Eu: goto L_3803123E;
   6161       case 0x38031244u: goto L_38031244;
   6162       case 0x38031247u: goto L_38031247;
   6163       case 0x3803124Au: goto L_3803124A;
   6164       case 0x38031250u: goto L_38031250;
   6165       case 0x38031252u: goto L_38031252;
   6166       case 0x38031254u: goto L_38031254;
   6167       case 0x3803125Au: goto L_3803125A;
   6168       case 0x3803125Du: goto L_3803125D;
   6169       case 0x38031260u: goto L_38031260;
   6170       case 0x38031263u: goto L_38031263;
   6171       case 0x38031266u: goto L_38031266;
   6172       case 0x38031269u: goto L_38031269;
   6173       case 0x3803126Bu: goto L_3803126B;
   6174       case 0x3803126Eu: goto L_3803126E;
   6175       case 0x38031271u: goto L_38031271;
   6176       case 0x38031277u: goto L_38031277;
   6177       case 0x3803127Du: goto L_3803127D;
   6178       case 0x38031283u: goto L_38031283;
   6179       case 0x38031285u: goto L_38031285;
   6180       case 0x38031288u: goto L_38031288;
   6181       case 0x3803128Au: goto L_3803128A;
   6182       case 0x38031290u: goto L_38031290;
   6183       case 0x38031292u: goto L_38031292;
   6184       case 0x38031295u: goto L_38031295;
   6185       case 0x38031297u: goto L_38031297;
   6186       case 0x3803129Du: goto L_3803129D;
   6187       case 0x3803129Fu: goto L_3803129F;
   6188       case 0x380312A5u: goto L_380312A5;
   6189       case 0x380312A8u: goto L_380312A8;
   6190       case 0x380312ABu: goto L_380312AB;
   6191       case 0x380312AEu: goto L_380312AE;
   6192       case 0x380312B4u: goto L_380312B4;
   6193       case 0x380312B7u: goto L_380312B7;
   6194       case 0x380312BAu: goto L_380312BA;
   6195       case 0x380312C0u: goto L_380312C0;
   6196       case 0x380312C2u: goto L_380312C2;
   6197       case 0x380312C4u: goto L_380312C4;
   6198       case 0x380312CAu: goto L_380312CA;
   6199       case 0x380312CDu: goto L_380312CD;
   6200       case 0x380312D0u: goto L_380312D0;
   6201       case 0x380312D3u: goto L_380312D3;
   6202       case 0x380312D6u: goto L_380312D6;
   6203       case 0x380312D9u: goto L_380312D9;
   6204       case 0x380312DCu: goto L_380312DC;
   6205       case 0x380312E2u: goto L_380312E2;
   6206       case 0x380312E5u: goto L_380312E5;
   6207       case 0x380312E7u: goto L_380312E7;
   6208       case 0x380312E8u: goto L_380312E8;
   6209       case 0x380312EEu: goto L_380312EE;
   6210       case 0x380312F0u: goto L_380312F0;
   6211       case 0x380312F3u: goto L_380312F3;
   6212       case 0x380312F6u: goto L_380312F6;
   6213       case 0x380312F9u: goto L_380312F9;
   6214       case 0x380312FBu: goto L_380312FB;
   6215       case 0x380312FEu: goto L_380312FE;
   6216       case 0x38031301u: goto L_38031301;
   6217       case 0x38031303u: goto L_38031303;
   6218       case 0x38031306u: goto L_38031306;
   6219       case 0x38031309u: goto L_38031309;
   6220       case 0x3803130Bu: goto L_3803130B;
   6221       case 0x3803130Eu: goto L_3803130E;
   6222       case 0x38031311u: goto L_38031311;
   6223       case 0x38031314u: goto L_38031314;
   6224       case 0x38031317u: goto L_38031317;
   6225       case 0x38031319u: goto L_38031319;
   6226       case 0x3803131Cu: goto L_3803131C;
   6227       case 0x3803131Fu: goto L_3803131F;
   6228       case 0x38031321u: goto L_38031321;
   6229       case 0x38031323u: goto L_38031323;
   6230       case 0x38031326u: goto L_38031326;
   6231       case 0x38031328u: goto L_38031328;
   6232       case 0x3803132Bu: goto L_3803132B;
   6233       case 0x3803132Eu: goto L_3803132E;
   6234       case 0x38031331u: goto L_38031331;
   6235       case 0x38031334u: goto L_38031334;
   6236       case 0x38031337u: goto L_38031337;
   6237       case 0x3803133Au: goto L_3803133A;
   6238       case 0x3803133Cu: goto L_3803133C;
   6239       case 0x3803133Fu: goto L_3803133F;
   6240       case 0x38031342u: goto L_38031342;
   6241       case 0x38031344u: goto L_38031344;
   6242       case 0x38031346u: goto L_38031346;
   6243       case 0x38031349u: goto L_38031349;
   6244       case 0x3803134Bu: goto L_3803134B;
   6245       case 0x3803134Eu: goto L_3803134E;
   6246       case 0x38031351u: goto L_38031351;
   6247       case 0x38031353u: goto L_38031353;
   6248       case 0x38031356u: goto L_38031356;
   6249       case 0x38031359u: goto L_38031359;
   6250       case 0x3803135Cu: goto L_3803135C;
   6251       case 0x3803135Fu: goto L_3803135F;
   6252       case 0x38031362u: goto L_38031362;
   6253       case 0x38031365u: goto L_38031365;
   6254       case 0x38031368u: goto L_38031368;
   6255       case 0x3803136Eu: goto L_3803136E;
   6256       case 0x38031370u: goto L_38031370;
   6257       case 0x38031373u: goto L_38031373;
   6258       case 0x38031376u: goto L_38031376;
   6259       case 0x38031379u: goto L_38031379;
   6260       case 0x3803137Cu: goto L_3803137C;
   6261       case 0x38031382u: goto L_38031382;
   6262       case 0x38031384u: goto L_38031384;
   6263       case 0x38031386u: goto L_38031386;
   6264       case 0x38031389u: goto L_38031389;
   6265       case 0x3803138Cu: goto L_3803138C;
   6266       case 0x38031392u: goto L_38031392;
   6267       case 0x38031394u: goto L_38031394;
   6268       case 0x3803139Au: goto L_3803139A;
   6269       case 0x3803139Du: goto L_3803139D;
   6270       case 0x380313A3u: goto L_380313A3;
   6271       case 0x380313A6u: goto L_380313A6;
   6272       case 0x380313ACu: goto L_380313AC;
   6273       case 0x380313ADu: goto L_380313AD;
   6274       case 0x380313B3u: goto L_380313B3;
   6275       case 0x380313B9u: goto L_380313B9;
   6276       case 0x380313BAu: goto L_380313BA;
   6277       case 0x380313BDu: goto L_380313BD;
   6278       case 0x380313C3u: goto L_380313C3;
   6279       case 0x380313C6u: goto L_380313C6;
   6280       case 0x380313C8u: goto L_380313C8;
   6281       case 0x380313CAu: goto L_380313CA;
   6282       case 0x380313D0u: goto L_380313D0;
   6283       case 0x380313D3u: goto L_380313D3;
   6284       case 0x380313D9u: goto L_380313D9;
   6285       case 0x380313DCu: goto L_380313DC;
   6286       case 0x380313DDu: goto L_380313DD;
   6287       case 0x380313E3u: goto L_380313E3;
   6288       case 0x380313E6u: goto L_380313E6;
   6289       case 0x380313ECu: goto L_380313EC;
   6290       case 0x380313F2u: goto L_380313F2;
   6291       case 0x380313F7u: goto L_380313F7;
   6292       case 0x380313FDu: goto L_380313FD;
   6293       case 0x38031403u: goto L_38031403;
   6294       case 0x38031409u: goto L_38031409;
   6295       case 0x3803140Au: goto L_3803140A;
   6296       case 0x3803140Du: goto L_3803140D;
   6297       case 0x38031413u: goto L_38031413;
   6298       case 0x38031419u: goto L_38031419;
   6299       case 0x3803141Au: goto L_3803141A;
   6300       case 0x3803141Du: goto L_3803141D;
   6301       case 0x38031423u: goto L_38031423;
   6302       case 0x38031426u: goto L_38031426;
   6303       case 0x38031429u: goto L_38031429;
   6304       case 0x3803142Cu: goto L_3803142C;
   6305       case 0x3803142Fu: goto L_3803142F;
   6306       case 0x38031432u: goto L_38031432;
   6307       case 0x38031435u: goto L_38031435;
   6308       case 0x3803143Bu: goto L_3803143B;
   6309       case 0x3803143Eu: goto L_3803143E;
   6310       case 0x38031441u: goto L_38031441;
   6311       case 0x38031444u: goto L_38031444;
   6312       case 0x3803144Au: goto L_3803144A;
   6313       case 0x3803144Bu: goto L_3803144B;
   6314       case 0x38031451u: goto L_38031451;
   6315       case 0x38031454u: goto L_38031454;
   6316       case 0x3803145Au: goto L_3803145A;
   6317       case 0x3803145Du: goto L_3803145D;
   6318       case 0x38031460u: goto L_38031460;
   6319       case 0x38031463u: goto L_38031463;
   6320       case 0x38031469u: goto L_38031469;
   6321       case 0x3803146Bu: goto L_3803146B;
   6322       case 0x38031471u: goto L_38031471;
   6323       case 0x38031474u: goto L_38031474;
   6324       case 0x3803147Au: goto L_3803147A;
   6325       case 0x3803147Du: goto L_3803147D;
   6326       case 0x38031483u: goto L_38031483;
   6327       case 0x38031484u: goto L_38031484;
   6328       case 0x3803148Au: goto L_3803148A;
   6329       case 0x3803148Bu: goto L_3803148B;
   6330       case 0x3803148Eu: goto L_3803148E;
   6331       case 0x38031494u: goto L_38031494;
   6332       case 0x3803149Au: goto L_3803149A;
   6333       case 0x3803149Du: goto L_3803149D;
   6334       case 0x3803149Fu: goto L_3803149F;
   6335       case 0x380314A1u: goto L_380314A1;
   6336       case 0x380314A7u: goto L_380314A7;
   6337       case 0x380314AAu: goto L_380314AA;
   6338       case 0x380314B0u: goto L_380314B0;
   6339       case 0x380314B3u: goto L_380314B3;
   6340       case 0x380314B4u: goto L_380314B4;
   6341       case 0x380314BAu: goto L_380314BA;
   6342       case 0x380314BDu: goto L_380314BD;
   6343       case 0x380314C3u: goto L_380314C3;
   6344       case 0x380314C9u: goto L_380314C9;
   6345       case 0x380314CEu: goto L_380314CE;
   6346       case 0x380314D4u: goto L_380314D4;
   6347       case 0x380314DAu: goto L_380314DA;
   6348       case 0x380314E0u: goto L_380314E0;
   6349       case 0x380314E1u: goto L_380314E1;
   6350       case 0x380314E4u: goto L_380314E4;
   6351       case 0x380314EAu: goto L_380314EA;
   6352       case 0x380314F0u: goto L_380314F0;
   6353       case 0x380314F1u: goto L_380314F1;
   6354       case 0x380314F4u: goto L_380314F4;
   6355       case 0x380314FAu: goto L_380314FA;
   6356       case 0x380314FDu: goto L_380314FD;
   6357       case 0x38031500u: goto L_38031500;
   6358       case 0x38031503u: goto L_38031503;
   6359       case 0x38031508u: goto L_38031508;
   6360       case 0x3803150Bu: goto L_3803150B;
   6361       case 0x38031510u: goto L_38031510;
   6362       case 0x38031513u: goto L_38031513;
   6363       case 0x38031516u: goto L_38031516;
   6364       case 0x38031519u: goto L_38031519;
   6365       case 0x3803151Cu: goto L_3803151C;
   6366       case 0x3803151Fu: goto L_3803151F;
   6367       case 0x38031525u: goto L_38031525;
   6368       case 0x38031527u: goto L_38031527;
   6369       case 0x3803152Du: goto L_3803152D;
   6370       case 0x38031530u: goto L_38031530;
   6371       case 0x38031532u: goto L_38031532;
   6372       case 0x38031534u: goto L_38031534;
   6373       case 0x38031536u: goto L_38031536;
   6374       case 0x3803153Bu: goto L_3803153B;
   6375       case 0x3803153Eu: goto L_3803153E;
   6376       case 0x38031540u: goto L_38031540;
   6377       case 0x38031542u: goto L_38031542;
   6378       case 0x38031545u: goto L_38031545;
   6379       case 0x38031547u: goto L_38031547;
   6380       case 0x3803154Au: goto L_3803154A;
   6381       case 0x3803154Du: goto L_3803154D;
   6382       case 0x38031550u: goto L_38031550;
   6383       case 0x38031552u: goto L_38031552;
   6384       case 0x38031554u: goto L_38031554;
   6385       case 0x3803155Au: goto L_3803155A;
   6386       case 0x3803155Du: goto L_3803155D;
   6387       case 0x38031560u: goto L_38031560;
   6388       case 0x38031561u: goto L_38031561;
   6389       case 0x38031562u: goto L_38031562;
   6390       case 0x38031564u: goto L_38031564;
   6391       case 0x38031569u: goto L_38031569;
   6392       case 0x3803156Cu: goto L_3803156C;
   6393       case 0x3803156Fu: goto L_3803156F;
   6394       case 0x38031572u: goto L_38031572;
   6395       case 0x38031578u: goto L_38031578;
   6396       case 0x3803157Eu: goto L_3803157E;
   6397       case 0x38031584u: goto L_38031584;
   6398       case 0x38031587u: goto L_38031587;
   6399       case 0x38031588u: goto L_38031588;
   6400       case 0x38031589u: goto L_38031589;
   6401       case 0x3803158Bu: goto L_3803158B;
   6402       case 0x38031591u: goto L_38031591;
   6403       case 0x38031596u: goto L_38031596;
   6404       case 0x3803159Cu: goto L_3803159C;
   6405       case 0x3803159Fu: goto L_3803159F;
   6406       case 0x380315A2u: goto L_380315A2;
   6407       case 0x380315A8u: goto L_380315A8;
   6408       case 0x380315AAu: goto L_380315AA;
   6409       case 0x380315ADu: goto L_380315AD;
   6410       case 0x380315B3u: goto L_380315B3;
   6411       case 0x380315B5u: goto L_380315B5;
   6412       case 0x380315BAu: goto L_380315BA;
   6413       case 0x380315BDu: goto L_380315BD;
   6414       case 0x380315C0u: goto L_380315C0;
   6415       case 0x380315C2u: goto L_380315C2;
   6416       case 0x380315C9u: goto L_380315C9;
   6417       case 0x380315CBu: goto L_380315CB;
   6418       case 0x380315CCu: goto L_380315CC;
   6419       case 0x380315CDu: goto L_380315CD;
   6420       case 0x380315CEu: goto L_380315CE;
   6421       case 0x380315CFu: goto L_380315CF;
   6422       case 0x380315D0u: goto L_380315D0;
   6423       case 0x380315D1u: goto L_380315D1;
   6424       case 0x380315D6u: goto L_380315D6;
   6425       case 0x380315DBu: goto L_380315DB;
   6426       case 0x380315DEu: goto L_380315DE;
   6427       case 0x380315DFu: goto L_380315DF;
   6428       case 0x380315E2u: goto L_380315E2;
   6429       case 0x380315E3u: goto L_380315E3;
   6430       case 0x380315E5u: goto L_380315E5;
   6431       case 0x380315EAu: goto L_380315EA;
   6432       case 0x380315ECu: goto L_380315EC;
   6433       case 0x380315EEu: goto L_380315EE;
   6434       case 0x380315F4u: goto L_380315F4;
   6435       case 0x380315FAu: goto L_380315FA;
   6436       case 0x380315FBu: goto L_380315FB;
   6437       case 0x38031601u: goto L_38031601;
   6438       case 0x38031604u: goto L_38031604;
   6439       case 0x38031606u: goto L_38031606;
   6440       case 0x38031607u: goto L_38031607;
   6441       case 0x3803160Eu: goto L_3803160E;
   6442       case 0x38031613u: goto L_38031613;
   6443       case 0x38031616u: goto L_38031616;
   6444       case 0x3803161Cu: goto L_3803161C;
   6445       case 0x3803161Fu: goto L_3803161F;
   6446       case 0x38031622u: goto L_38031622;
   6447       case 0x38031628u: goto L_38031628;
   6448       case 0x3803162Eu: goto L_3803162E;
   6449       case 0x38031631u: goto L_38031631;
   6450       case 0x38031633u: goto L_38031633;
   6451       case 0x38031636u: goto L_38031636;
   6452       case 0x38031638u: goto L_38031638;
   6453       case 0x3803163Au: goto L_3803163A;
   6454       case 0x38031640u: goto L_38031640;
   6455       case 0x38031643u: goto L_38031643;
   6456       case 0x38031646u: goto L_38031646;
   6457       case 0x3803164Cu: goto L_3803164C;
   6458       case 0x3803164Eu: goto L_3803164E;
   6459       case 0x38031651u: goto L_38031651;
   6460       case 0x38031657u: goto L_38031657;
   6461       case 0x38031659u: goto L_38031659;
   6462       case 0x3803165Eu: goto L_3803165E;
   6463       case 0x38031661u: goto L_38031661;
   6464       case 0x38031664u: goto L_38031664;
   6465       case 0x38031666u: goto L_38031666;
   6466       case 0x3803166Du: goto L_3803166D;
   6467       case 0x3803166Fu: goto L_3803166F;
   6468       case 0x38031670u: goto L_38031670;
   6469       case 0x38031671u: goto L_38031671;
   6470       case 0x38031672u: goto L_38031672;
   6471       case 0x38031673u: goto L_38031673;
   6472       case 0x38031674u: goto L_38031674;
   6473       case 0x38031675u: goto L_38031675;
   6474       case 0x3803167Au: goto L_3803167A;
   6475       case 0x3803167Fu: goto L_3803167F;
   6476       case 0x38031682u: goto L_38031682;
   6477       case 0x38031683u: goto L_38031683;
   6478       case 0x38031686u: goto L_38031686;
   6479       case 0x38031687u: goto L_38031687;
   6480       case 0x38031689u: goto L_38031689;
   6481       case 0x3803168Eu: goto L_3803168E;
   6482       case 0x38031690u: goto L_38031690;
   6483       case 0x38031692u: goto L_38031692;
   6484       case 0x38031698u: goto L_38031698;
   6485       case 0x3803169Eu: goto L_3803169E;
   6486       case 0x380316A1u: goto L_380316A1;
   6487       case 0x380316A7u: goto L_380316A7;
   6488       case 0x380316A8u: goto L_380316A8;
   6489       case 0x380316AAu: goto L_380316AA;
   6490       case 0x380316B1u: goto L_380316B1;
   6491       case 0x380316B2u: goto L_380316B2;
   6492       case 0x380316B7u: goto L_380316B7;
   6493       case 0x380316BDu: goto L_380316BD;
   6494       case 0x380316C0u: goto L_380316C0;
   6495       case 0x380316C2u: goto L_380316C2;
   6496       case 0x380316C6u: goto L_380316C6;
   6497       case 0x380316C7u: goto L_380316C7;
   6498       case 0x380316CAu: goto L_380316CA;
   6499       case 0x380316D0u: goto L_380316D0;
   6500       case 0x380316D3u: goto L_380316D3;
   6501       case 0x380316D5u: goto L_380316D5;
   6502       case 0x380316DBu: goto L_380316DB;
   6503       case 0x380316DCu: goto L_380316DC;
   6504       case 0x380316DDu: goto L_380316DD;
   6505       case 0x380316DFu: goto L_380316DF;
   6506       case 0x380316E4u: goto L_380316E4;
   6507       case 0x380316E7u: goto L_380316E7;
   6508       case 0x380316E8u: goto L_380316E8;
   6509       case 0x380316E9u: goto L_380316E9;
   6510       case 0x380316F0u: goto L_380316F0;
   6511       case 0x380316F2u: goto L_380316F2;
   6512       case 0x380316F3u: goto L_380316F3;
   6513       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6514     }
   6515     RECOMP_REGS_OUT();
   6516 }
   6517 
   6518 void sub_380315EE(void) {
   6519     int _fpu_cmp = 0;
   6520     uint32_t _cf = 0;
   6521     int _df = 1;
   6522     uint32_t _flag_k = FK_NONE;
   6523     uint32_t _flag_a = 0, _flag_b = 0;
   6524     uint32_t _itail_tgt = 0;
   6525     RECOMP_REGS_LOCALS
   6526     RECOMP_ENTER(0x380315EEu);
   6527 
   6528     goto L_380315EE;
   6529 L_38030E4E:
   6530     ecx = MEM32(esi + 0x80); /* 0x38030E4E: mov ecx, dword ptr [esi + 0x80] */
   6531 L_38030E54:
   6532     edi = MEM32(ebp + 0xC); /* 0x38030E54: mov edi, dword ptr [ebp + 0xc] */
   6533 L_38030E57:
   6534     eax = ecx + eax * 4; /* 0x38030E57: lea eax, [ecx + eax*4] */
   6535 L_38030E5A:
   6536     ecx = (int32_t)(int16_t)MEM16(eax); /* 0x38030E5A: movsx ecx, word ptr [eax] */
   6537 L_38030E5D:
   6538     /* cmp ecx, edi */ /* 0x38030E5D: cmp ecx, edi */
   6539     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6541     _flag_k = FK_CMP;
   6542 L_38030E5F:
   6543     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E5F: je 0x380316b7 */
   6544 L_38030E65:
   6545     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x38030E65: cmp ecx, dword ptr [esi + 0xc] */
   6546     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   6547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6548     _flag_k = FK_CMP;
   6549 L_38030E68:
   6550     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E68: je 0x380316b7 */
   6551 L_38030E6E:
   6552     ecx = MEM32(esi + 0xB0); /* 0x38030E6E: mov ecx, dword ptr [esi + 0xb0] */
   6553 L_38030E74:
   6554     /* cmp ecx, ebx */ /* 0x38030E74: cmp ecx, ebx */
   6555     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   6556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6557     _flag_k = FK_CMP;
   6558 L_38030E76:
   6559     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E76: je 0x380316b7 */
   6560 L_38030E7C:
   6561     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x38030E7C: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
   6562     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
   6563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6564     _flag_k = FK_CMP;
   6565 L_38030E84:
   6566     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380310BB; /* 0x38030E84: je 0x380310bb */
   6567 L_38030E8A:
   6568     edx = MEM32(esi + 0x44); /* 0x38030E8A: mov edx, dword ptr [esi + 0x44] */
   6569 L_38030E8D:
   6570     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x38030E8D: mov ax, word ptr [eax + 2] */
   6571 L_38030E91:
   6572     MEM32(ebp + (-0xE4)) = edx; /* 0x38030E91: mov dword ptr [ebp - 0xe4], edx */
   6573 L_38030E97:
   6574     MEM32(ebp + (-0xE0)) = ebx; /* 0x38030E97: mov dword ptr [ebp - 0xe0], ebx */
   6575 L_38030E9D:
   6576     fp_push_i64((int64_t)MEM64(ebp + (-0xE4))); /* 0x38030E9D: fild qword ptr [ebp - 0xe4] */
   6577 L_38030EA3:
   6578     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38030EA3: fmul dword ptr [0x3804eac0] */
   6579 L_38030EA9:
   6580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   6581     eax = eax & 3; /* 0x38030EA9: and eax, 3 */
   6582     _cf = 0;
   6583     _flag_k = FK_TEST;
   6584 L_38030EAC:
   6585     MEM32(ebp + (-0x14)) = eax; /* 0x38030EAC: mov dword ptr [ebp - 0x14], eax */
   6586 L_38030EAF:
   6587     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030EAF: fcom dword ptr [0x3804e8e4] */
   6588 L_38030EB5:
   6589     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EB5: fnstsw ax */
   6590 L_38030EB7:
   6591     /* test HI8(eax), 1 */ /* 0x38030EB7: test ah, 1 */
   6592     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6593     _cf = 0;
   6594     _flag_k = FK_NARROW(FK_TEST, 24);
   6595 L_38030EBA:
   6596     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030ED1; /* 0x38030EBA: jne 0x38030ed1 */
   6597 L_38030EBC:
   6598     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030EBC: fcom qword ptr [0x3804e8f8] */
   6599 L_38030EC2:
   6600     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EC2: fnstsw ax */
   6601 L_38030EC4:
   6602     /* test HI8(eax), 1 */ /* 0x38030EC4: test ah, 1 */
   6603     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6604     _cf = 0;
   6605     _flag_k = FK_NARROW(FK_TEST, 24);
   6606 L_38030EC7:
   6607     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030ED1; /* 0x38030EC7: je 0x38030ed1 */
   6608 L_38030EC9:
   6609     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030EC9: fmul dword ptr [0x3804e8bc] */
   6610 L_38030ECF:
   6611     goto L_38030EF2; /* 0x38030ECF: jmp 0x38030ef2 */
   6612 L_38030ED1:
   6613     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030ED1: fmul dword ptr [0x3804e8f4] */
   6614 L_38030ED7:
   6615     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6616     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6617     esp = esp - 8; /* 0x38030ED7: sub esp, 8 */
   6618     _flag_k = FK_CMP;
   6619 L_38030EDA:
   6620     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EDA: fst dword ptr [ebp - 0x10] */
   6621 L_38030EDD:
   6622     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030EDD: fstp qword ptr [esp] */
   6623 L_38030EE0:
   6624     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030EE0: call dword ptr [0x3804e0ac] */
   6625     RECOMP_FLAGS_IN();
   6626 L_38030EE6:
   6627     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030EE6: fsubr dword ptr [ebp - 0x10] */
   6628 L_38030EE9:
   6629     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6631     esp = esp + 8; /* 0x38030EE9: add esp, 8 */
   6632     _flag_k = FK_ADD;
   6633 L_38030EEC:
   6634     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030EEC: fmul dword ptr [0x3804e8f0] */
   6635 L_38030EF2:
   6636     fp_push(_st[0]); /* 0x38030EF2: fld st(0) */
   6637 L_38030EF4:
   6638     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030EF4: fsin  */
   6639 L_38030EF6:
   6640     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030EF6: fld dword ptr [0x3804e8e4] */
   6641 L_38030EFC:
   6642     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EFC: fst dword ptr [ebp - 0x10] */
   6643 L_38030EFF:
   6644     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38030EFF: fstp dword ptr [ebp - 0x74] */
   6645 L_38030F02:
   6646     eax = MEM32(ebp + (-0x10)); /* 0x38030F02: mov eax, dword ptr [ebp - 0x10] */
   6647 L_38030F05:
   6648     MEM32(ebp + (-0x6C)) = eax; /* 0x38030F05: mov dword ptr [ebp - 0x6c], eax */
   6649 L_38030F08:
   6650     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x38030F08: fstp dword ptr [ebp - 0x70] */
   6651 L_38030F0B:
   6652     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F0B: fcos  */
   6653 L_38030F0D:
   6654     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38030F0D: fstp dword ptr [ebp - 0x68] */
   6655 L_38030F10:
   6656     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38030F10: fild dword ptr [ebp - 0x14] */
   6657 L_38030F13:
   6658     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38030F13: fmul qword ptr [0x3804f6a0] */
   6659 L_38030F19:
   6660     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38030F19: fadd qword ptr [0x3804f698] */
   6661 L_38030F1F:
   6662     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030F1F: fcom dword ptr [0x3804e8e4] */
   6663 L_38030F25:
   6664     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F25: fnstsw ax */
   6665 L_38030F27:
   6666     /* test HI8(eax), 1 */ /* 0x38030F27: test ah, 1 */
   6667     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6668     _cf = 0;
   6669     _flag_k = FK_NARROW(FK_TEST, 24);
   6670 L_38030F2A:
   6671     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030F41; /* 0x38030F2A: jne 0x38030f41 */
   6672 L_38030F2C:
   6673     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030F2C: fcom qword ptr [0x3804e8f8] */
   6674 L_38030F32:
   6675     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F32: fnstsw ax */
   6676 L_38030F34:
   6677     /* test HI8(eax), 1 */ /* 0x38030F34: test ah, 1 */
   6678     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6679     _cf = 0;
   6680     _flag_k = FK_NARROW(FK_TEST, 24);
   6681 L_38030F37:
   6682     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030F41; /* 0x38030F37: je 0x38030f41 */
   6683 L_38030F39:
   6684     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030F39: fmul dword ptr [0x3804e8bc] */
   6685 L_38030F3F:
   6686     goto L_38030F62; /* 0x38030F3F: jmp 0x38030f62 */
   6687 L_38030F41:
   6688     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030F41: fmul dword ptr [0x3804e8f4] */
   6689 L_38030F47:
   6690     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6691     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6692     esp = esp - 8; /* 0x38030F47: sub esp, 8 */
   6693     _flag_k = FK_CMP;
   6694 L_38030F4A:
   6695     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030F4A: fst dword ptr [ebp - 0x10] */
   6696 L_38030F4D:
   6697     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030F4D: fstp qword ptr [esp] */
   6698 L_38030F50:
   6699     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030F50: call dword ptr [0x3804e0ac] */
   6700     RECOMP_FLAGS_IN();
   6701 L_38030F56:
   6702     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030F56: fsubr dword ptr [ebp - 0x10] */
   6703 L_38030F59:
   6704     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6705     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6706     esp = esp + 8; /* 0x38030F59: add esp, 8 */
   6707     _flag_k = FK_ADD;
   6708 L_38030F5C:
   6709     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030F5C: fmul dword ptr [0x3804e8f0] */
   6710 L_38030F62:
   6711     fp_push(_st[0]); /* 0x38030F62: fld st(0) */
   6712 L_38030F64:
   6713     PUSH32(esp, 0x3806CB10u); /* 0x38030F64: push 0x3806cb10 */
   6714 L_38030F69:
   6715     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030F69: fsin  */
   6716 L_38030F6B:
   6717     PUSH32(esp, 0x000F6951u); /* 0x38030F6B: push 0xf6951 */
   6718 L_38030F70:
   6719     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030F70: fld dword ptr [0x3804e8e4] */
   6720 L_38030F76:
   6721     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030F76: fst dword ptr [ebp - 0x14] */
   6722 L_38030F79:
   6723     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38030F79: fstp dword ptr [ebp - 0x64] */
   6724 L_38030F7C:
   6725     ecx = MEM32(ebp + (-0x14)); /* 0x38030F7C: mov ecx, dword ptr [ebp - 0x14] */
   6726 L_38030F7F:
   6727     MEM32(ebp + (-0x5C)) = ecx; /* 0x38030F7F: mov dword ptr [ebp - 0x5c], ecx */
   6728 L_38030F82:
   6729     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x38030F82: fstp dword ptr [ebp - 0x60] */
   6730 L_38030F85:
   6731     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F85: fcos  */
   6732 L_38030F87:
   6733     fp_push(_st[0]); /* 0x38030F87: fld st(0) */
   6734 L_38030F89:
   6735     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030F89: fmul dword ptr [ebp - 0x74] */
   6736 L_38030F8C:
   6737     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030F8C: fld dword ptr [ebp - 0x5c] */
   6738 L_38030F8F:
   6739     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030F8F: fmul dword ptr [ebp - 0x70] */
   6740 L_38030F92:
   6741     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030F92: faddp st(1) */
   6742 L_38030F94:
   6743     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030F94: fld dword ptr [ebp - 0x60] */
   6744 L_38030F97:
   6745     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030F97: fmul dword ptr [ebp - 0x6c] */
   6746 L_38030F9A:
   6747     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030F9A: fsubp st(1) */
   6748 L_38030F9C:
   6749     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x38030F9C: fld dword ptr [ebp - 0x68] */
   6750 L_38030F9F:
   6751     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030F9F: fmul dword ptr [ebp - 0x64] */
   6752 L_38030FA2:
   6753     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FA2: faddp st(1) */
   6754 L_38030FA4:
   6755     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FA4: fld dword ptr [ebp - 0x60] */
   6756 L_38030FA7:
   6757     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FA7: fmul dword ptr [ebp - 0x68] */
   6758 L_38030FAA:
   6759     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FAA: fld dword ptr [ebp - 0x5c] */
   6760 L_38030FAD:
   6761     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FAD: fmul dword ptr [ebp - 0x74] */
   6762 L_38030FB0:
   6763     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FB0: fsubp st(1) */
   6764 L_38030FB2:
   6765     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x38030FB2: fld dword ptr [ebp - 0x6c] */
   6766 L_38030FB5:
   6767     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FB5: fmul dword ptr [ebp - 0x64] */
   6768 L_38030FB8:
   6769     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FB8: faddp st(1) */
   6770 L_38030FBA:
   6771     fp_push(_st[2]); /* 0x38030FBA: fld st(2) */
   6772 L_38030FBC:
   6773     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030FBC: fmul dword ptr [ebp - 0x70] */
   6774 L_38030FBF:
   6775     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FBF: faddp st(1) */
   6776 L_38030FC1:
   6777     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030FC1: fstp dword ptr [ebp - 0x14] */
   6778 L_38030FC4:
   6779     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FC4: fld dword ptr [ebp - 0x60] */
   6780 L_38030FC7:
   6781     edx = MEM32(ebp + (-0x14)); /* 0x38030FC7: mov edx, dword ptr [ebp - 0x14] */
   6782 L_38030FCA:
   6783     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FCA: fmul dword ptr [ebp - 0x74] */
   6784 L_38030FCD:
   6785     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x38030FCD: fld dword ptr [ebp - 0x70] */
   6786 L_38030FD0:
   6787     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FD0: fmul dword ptr [ebp - 0x64] */
   6788 L_38030FD3:
   6789     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FD3: fsubp st(1) */
   6790 L_38030FD5:
   6791     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FD5: fld dword ptr [ebp - 0x5c] */
   6792 L_38030FD8:
   6793     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FD8: fmul dword ptr [ebp - 0x68] */
   6794 L_38030FDB:
   6795     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FDB: faddp st(1) */
   6796 L_38030FDD:
   6797     fp_push(_st[2]); /* 0x38030FDD: fld st(2) */
   6798 L_38030FDF:
   6799     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FDF: fmul dword ptr [ebp - 0x6c] */
   6800 L_38030FE2:
   6801     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FE2: faddp st(1) */
   6802 L_38030FE4:
   6803     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030FE4: fstp dword ptr [ebp - 0x10] */
   6804 L_38030FE7:
   6805     eax = MEM32(ebp + (-0x10)); /* 0x38030FE7: mov eax, dword ptr [ebp - 0x10] */
   6806 L_38030FEA:
   6807     fp_xch(1); /* 0x38030FEA: fxch st(1) */
   6808 L_38030FEC:
   6809     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FEC: fmul dword ptr [ebp - 0x68] */
   6810 L_38030FEF:
   6811     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x38030FEF: fld dword ptr [ebp - 0x64] */
   6812 L_38030FF2:
   6813     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FF2: fmul dword ptr [ebp - 0x74] */
   6814 L_38030FF5:
   6815     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FF5: fld dword ptr [ebp - 0x5c] */
   6816 L_38030FF8:
   6817     MEM32(ebp + (-0x5C)) = eax; /* 0x38030FF8: mov dword ptr [ebp - 0x5c], eax */
   6818 L_38030FFB:
   6819     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FFB: fmul dword ptr [ebp - 0x6c] */
   6820 L_38030FFE:
   6821     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FFE: faddp st(1) */
   6822 L_38031000:
   6823     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38031000: fld dword ptr [ebp - 0x60] */
   6824 L_38031003:
   6825     MEM32(ebp + (-0x60)) = edx; /* 0x38031003: mov dword ptr [ebp - 0x60], edx */
   6826 L_38031006:
   6827     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38031006: fmul dword ptr [ebp - 0x70] */
   6828 L_38031009:
   6829     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031009: faddp st(1) */
   6830 L_3803100B:
   6831     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803100B: fsubp st(1) */
   6832 L_3803100D:
   6833     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3803100D: fstp dword ptr [ebp - 0x58] */
   6834 L_38031010:
   6835     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38031010: fstp dword ptr [ebp - 0x64] */
   6836 L_38031013:
   6837     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x38031013: call dword ptr [0x3804e4b0] */
   6838     RECOMP_FLAGS_IN();
   6839 L_38031019:
   6840     edi = eax; /* 0x38031019: mov edi, eax */
   6841 L_3803101B:
   6842     eax = MEM32(esi + 0x98); /* 0x3803101B: mov eax, dword ptr [esi + 0x98] */
   6843 L_38031021:
   6844     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6846     esp = esp + 8; /* 0x38031021: add esp, 8 */
   6847     _flag_k = FK_ADD;
   6848 L_38031024:
   6849     /* cmp eax, ebx */ /* 0x38031024: cmp eax, ebx */
   6850     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6851     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6852     _flag_k = FK_CMP;
   6853 L_38031026:
   6854     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803104E; /* 0x38031026: jne 0x3803104e */
   6855 L_38031028:
   6856     PUSH32(esp, 0x10u); /* 0x38031028: push 0x10 */
   6857 L_3803102A:
   6858     RECOMP_ICALL(0x3804B676u); /* 0x3803102A: call 0x3804b676 */ /* not lifted */
   6859     RECOMP_FLAGS_IN();
   6860 L_3803102F:
   6861     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6862     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6863     esp = esp + 4; /* 0x3803102F: add esp, 4 */
   6864     _flag_k = FK_ADD;
   6865 L_38031032:
   6866     /* cmp eax, ebx */ /* 0x38031032: cmp eax, ebx */
   6867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6869     _flag_k = FK_CMP;
   6870 L_38031034:
   6871     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031046; /* 0x38031034: je 0x38031046 */
   6872 L_38031036:
   6873     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031036: mov cl, byte ptr [ebp + 0xb] */
   6874 L_38031039:
   6875     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031039: mov byte ptr [eax], cl */
   6876 L_3803103B:
   6877     MEM32(eax + 0x4) = ebx; /* 0x3803103B: mov dword ptr [eax + 4], ebx */
   6878 L_3803103E:
   6879     MEM32(eax + 0x8) = ebx; /* 0x3803103E: mov dword ptr [eax + 8], ebx */
   6880 L_38031041:
   6881     MEM32(eax + 0xC) = ebx; /* 0x38031041: mov dword ptr [eax + 0xc], ebx */
   6882 L_38031044:
   6883     goto L_38031048; /* 0x38031044: jmp 0x38031048 */
   6884 L_38031046:
   6885     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6886     eax = 0; /* 0x38031046: xor eax, eax */
   6887     _cf = 0;
   6888     _flag_k = FK_TEST;
   6889 L_38031048:
   6890     MEM32(esi + 0x98) = eax; /* 0x38031048: mov dword ptr [esi + 0x98], eax */
   6891 L_3803104E:
   6892     PUSH32(esp, 0x58u); /* 0x3803104E: push 0x58 */
   6893 L_38031050:
   6894     RECOMP_ICALL(0x3804B676u); /* 0x38031050: call 0x3804b676 */ /* not lifted */
   6895     RECOMP_FLAGS_IN();
   6896 L_38031055:
   6897     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6898     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6899     esp = esp + 4; /* 0x38031055: add esp, 4 */
   6900     _flag_k = FK_ADD;
   6901 L_38031058:
   6902     MEM32(ebp + (-0x24)) = eax; /* 0x38031058: mov dword ptr [ebp - 0x24], eax */
   6903 L_3803105B:
   6904     /* cmp eax, ebx */ /* 0x3803105B: cmp eax, ebx */
   6905     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6906     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6907     _flag_k = FK_CMP;
   6908 L_3803105D:
   6909     MEM32(ebp + (-0x4)) = ebx; /* 0x3803105D: mov dword ptr [ebp - 4], ebx */
   6910 L_38031060:
   6911     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031094; /* 0x38031060: je 0x38031094 */
   6912 L_38031062:
   6913     ecx = MEM32(ebp + (-0x78)); /* 0x38031062: mov ecx, dword ptr [ebp - 0x78] */
   6914 L_38031065:
   6915     edx = MEM32(esi + 0xB0); /* 0x38031065: mov edx, dword ptr [esi + 0xb0] */
   6916 L_3803106B:
   6917     fp_push(*(float*)&MEM32(edx + ecx + 0xC)); /* 0x3803106B: fld dword ptr [edx + ecx + 0xc] */
   6918 L_3803106F:
   6919     PUSH32(esp, ebx); /* 0x3803106F: push ebx */
   6920 L_38031070:
   6921     _st[0] *= (double)*(float*)ADDR(0x3804F694); /* 0x38031070: fmul dword ptr [0x3804f694] */
   6922 L_38031076:
   6923     PUSH32(esp, ebx); /* 0x38031076: push ebx */
   6924 L_38031077:
   6925     PUSH32(esp, ebx); /* 0x38031077: push ebx */
   6926 L_38031078:
   6927     PUSH32(esp, ebx); /* 0x38031078: push ebx */
   6928 L_38031079:
   6929     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6930     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6931     edx = edx + ecx; /* 0x38031079: add edx, ecx */
   6932     _flag_k = FK_ADD;
   6933 L_3803107B:
   6934     PUSH32(esp, ebx); /* 0x3803107B: push ebx */
   6935 L_3803107C:
   6936     PUSH32(esp, edi); /* 0x3803107C: push edi */
   6937 L_3803107D:
   6938     PUSH32(esp, ecx); /* 0x3803107D: push ecx */
   6939 L_3803107E:
   6940     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3803107E: fstp dword ptr [esp] */
   6941 L_38031081:
   6942     PUSH32(esp, 0x00FFFFFFu); /* 0x38031081: push 0xffffff */
   6943 L_38031086:
   6944     ecx = ebp + (-0x64); /* 0x38031086: lea ecx, [ebp - 0x64] */
   6945 L_38031089:
   6946     PUSH32(esp, ecx); /* 0x38031089: push ecx */
   6947 L_3803108A:
   6948     PUSH32(esp, edx); /* 0x3803108A: push edx */
   6949 L_3803108B:
   6950     ecx = eax; /* 0x3803108B: mov ecx, eax */
   6951 L_3803108D:
   6952     RECOMP_ICALL(0x3800B350u); /* 0x3803108D: call 0x3800b350 */ /* not lifted */
   6953     RECOMP_FLAGS_IN();
   6954 L_38031092:
   6955     goto L_38031096; /* 0x38031092: jmp 0x38031096 */
   6956 L_38031094:
   6957     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6958     eax = 0; /* 0x38031094: xor eax, eax */
   6959     _cf = 0;
   6960     _flag_k = FK_TEST;
   6961 L_38031096:
   6962     ecx = MEM32(esi + 0x98); /* 0x38031096: mov ecx, dword ptr [esi + 0x98] */
   6963 L_3803109C:
   6964     edx = ebp + (-0xB0); /* 0x3803109C: lea edx, [ebp - 0xb0] */
   6965 L_380310A2:
   6966     PUSH32(esp, edx); /* 0x380310A2: push edx */
   6967 L_380310A3:
   6968     MEM32(ebp + (-0xB0)) = eax; /* 0x380310A3: mov dword ptr [ebp - 0xb0], eax */
   6969 L_380310A9:
   6970     eax = MEM32(ecx + 0x8); /* 0x380310A9: mov eax, dword ptr [ecx + 8] */
   6971 L_380310AC:
   6972     PUSH32(esp, 1); /* 0x380310AC: push 1 */
   6973 L_380310AE:
   6974     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380310AE: mov dword ptr [ebp - 4], 0xffffffff */
   6975 L_380310B5:
   6976     PUSH32(esp, eax); /* 0x380310B5: push eax */
   6977 L_380310B6:
   6978     goto L_380316B2; /* 0x380310B6: jmp 0x380316b2 */
   6979 L_380310BB:
   6980     /* cmp ecx, ebx */ /* 0x380310BB: cmp ecx, ebx */
   6981     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   6982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6983     _flag_k = FK_CMP;
   6984 L_380310BD:
   6985     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x380310BD: je 0x380316b7 */
   6986 L_380310C3:
   6987     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x380310C3: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
   6988     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
   6989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6990     _flag_k = FK_CMP;
   6991 L_380310CB:
   6992     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_380316B7; /* 0x380310CB: jne 0x380316b7 */
   6993 L_380310D1:
   6994     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x380310D1: mov ax, word ptr [eax + 2] */
   6995 L_380310D5:
   6996     MEM32(ebp + (-0x1C)) = 0; /* 0x380310D5: mov dword ptr [ebp - 0x1c], 0 */
   6997 L_380310DC:
   6998     MEM32(ebp + (-0x10)) = eax; /* 0x380310DC: mov dword ptr [ebp - 0x10], eax */
   6999 L_380310DF:
   7000     if (2u) _cf = (((MEM16(ebp + (-0x10))) >> 1) & 1u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
   7001     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x10)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7002     MEM16(ebp + (-0x10)) = (uint16_t)(MEM16(ebp + (-0x10)) >> 2u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
   7003 L_380310E4:
   7004     ecx = MEM32(ebp + (-0x10)); /* 0x380310E4: mov ecx, dword ptr [ebp - 0x10] */
   7005 L_380310E7:
   7006     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   7007     eax = eax & 3; /* 0x380310E7: and eax, 3 */
   7008     _cf = 0;
   7009     _flag_k = FK_TEST;
   7010 L_380310EA:
   7011     edi = eax; /* 0x380310EA: mov edi, eax */
   7012 L_380310EC:
   7013     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
   7014     ecx = ecx & 0xFFFFu; /* 0x380310EC: and ecx, 0xffff */
   7015     _cf = 0;
   7016     _flag_k = FK_TEST;
   7017 L_380310F2:
   7018     eax = ecx; /* 0x380310F2: mov eax, ecx */
   7019 L_380310F4:
   7020     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x380310F4: cdq  */
   7021 L_380310F5:
   7022     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x380310F5: idiv dword ptr [ebp - 0x88] */
   7023       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   7024       else { eax = 0; edx = 0; } }
   7025 L_380310FB:
   7026     eax = ecx; /* 0x380310FB: mov eax, ecx */
   7027 L_380310FD:
   7028     ecx = esi + 0x6C; /* 0x380310FD: lea ecx, [esi + 0x6c] */
   7029 L_38031100:
   7030     MEM32(ebp + (-0x24)) = edi; /* 0x38031100: mov dword ptr [ebp - 0x24], edi */
   7031 L_38031103:
   7032     MEM32(ebp + (-0x14)) = edx; /* 0x38031103: mov dword ptr [ebp - 0x14], edx */
   7033 L_38031106:
   7034     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031106: cdq  */
   7035 L_38031107:
   7036     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38031107: fild dword ptr [ebp - 0x14] */
   7037 L_3803110A:
   7038     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x3803110A: idiv dword ptr [ebp - 0x88] */
   7039       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   7040       else { eax = 0; edx = 0; } }
   7041 L_38031110:
   7042     /* cmp edi, 3 */ /* 0x38031110: cmp edi, 3 */
   7043     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   7044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7045     _flag_k = FK_CMP;
   7046 L_38031113:
   7047     edx = MEM32(ecx); /* 0x38031113: mov edx, dword ptr [ecx] */
   7048 L_38031115:
   7049     MEM32(ebp + (-0x84)) = edx; /* 0x38031115: mov dword ptr [ebp - 0x84], edx */
   7050 L_3803111B:
   7051     MEM32(ebp + (-0x10)) = eax; /* 0x3803111B: mov dword ptr [ebp - 0x10], eax */
   7052 L_3803111E:
   7053     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3803111E: fild dword ptr [ebp - 0x10] */
   7054 L_38031121:
   7055     eax = MEM32(ecx + 0x4); /* 0x38031121: mov eax, dword ptr [ecx + 4] */
   7056 L_38031124:
   7057     ecx = MEM32(ecx + 0x8); /* 0x38031124: mov ecx, dword ptr [ecx + 8] */
   7058 L_38031127:
   7059     MEM32(ebp + (-0x80)) = eax; /* 0x38031127: mov dword ptr [ebp - 0x80], eax */
   7060 L_3803112A:
   7061     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803112A: fstp dword ptr [ebp - 0x18] */
   7062 L_3803112D:
   7063     MEM32(ebp + (-0x7C)) = ecx; /* 0x3803112D: mov dword ptr [ebp - 0x7c], ecx */
   7064 L_38031130:
   7065     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031130: fmul dword ptr [ebp - 0x44] */
   7066 L_38031133:
   7067     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031133: fld dword ptr [ebp - 0x18] */
   7068 L_38031136:
   7069     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031136: fmul dword ptr [ebp - 0x44] */
   7070 L_38031139:
   7071     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031139: fstp dword ptr [ebp - 0x18] */
   7072 L_3803113C:
   7073     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x3803113C: fld dword ptr [ebp - 0x84] */
   7074 L_38031142:
   7075     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031142: fmul dword ptr [ebp - 0x44] */
   7076 L_38031145:
   7077     fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x38031145: fld dword ptr [ebp - 0x80] */
   7078 L_38031148:
   7079     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031148: fmul dword ptr [ebp - 0x44] */
   7080 L_3803114B:
   7081     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803114B: fstp dword ptr [ebp - 0x80] */
   7082 L_3803114E:
   7083     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3803114E: fld dword ptr [ebp - 0x7c] */
   7084 L_38031151:
   7085     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031151: fmul dword ptr [ebp - 0x44] */
   7086 L_38031154:
   7087     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38031154: fstp dword ptr [ebp - 0x7c] */
   7088 L_38031157:
   7089     fp_xch(1); /* 0x38031157: fxch st(1) */
   7090 L_38031159:
   7091     _st[0] -= _st[1]; /* 0x38031159: fsub st(1) */
   7092 L_3803115B:
   7093     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3803115B: fstp dword ptr [ebp - 0x20] */
   7094 L_3803115E:
   7095     edx = MEM32(ebp + (-0x20)); /* 0x3803115E: mov edx, dword ptr [ebp - 0x20] */
   7096 L_38031161:
   7097     MEM32(ebp + (-0x30)) = edx; /* 0x38031161: mov dword ptr [ebp - 0x30], edx */
   7098 L_38031164:
   7099     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031164: fstp st(0) */
   7100 L_38031166:
   7101     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38031166: fld dword ptr [ebp - 0x1c] */
   7102 L_38031169:
   7103     _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x38031169: fsub dword ptr [ebp - 0x80] */
   7104 L_3803116C:
   7105     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803116C: fstp dword ptr [ebp - 0x1c] */
   7106 L_3803116F:
   7107     eax = MEM32(ebp + (-0x1C)); /* 0x3803116F: mov eax, dword ptr [ebp - 0x1c] */
   7108 L_38031172:
   7109     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031172: fld dword ptr [ebp - 0x18] */
   7110 L_38031175:
   7111     MEM32(ebp + (-0x2C)) = eax; /* 0x38031175: mov dword ptr [ebp - 0x2c], eax */
   7112 L_38031178:
   7113     _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x38031178: fsub dword ptr [ebp - 0x7c] */
   7114 L_3803117B:
   7115     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803117B: fstp dword ptr [ebp - 0x18] */
   7116 L_3803117E:
   7117     ecx = MEM32(ebp + (-0x18)); /* 0x3803117E: mov ecx, dword ptr [ebp - 0x18] */
   7118 L_38031181:
   7119     MEM32(ebp + (-0x28)) = ecx; /* 0x38031181: mov dword ptr [ebp - 0x28], ecx */
   7120 L_38031184:
   7121     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_380311F0; /* 0x38031184: ja 0x380311f0 */
   7122 L_38031186:
   7123     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x380316F8)); goto _ljump; }
   7124 L_3803118D:
   7125     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803118D: fld dword ptr [ebp - 0x18] */
   7126 L_38031190:
   7127     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031190: fadd dword ptr [0x3804f690] */
   7128 L_38031196:
   7129     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031196: fstp dword ptr [ebp - 0x18] */
   7130 L_38031199:
   7131     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031199: fld dword ptr [ebp - 0x28] */
   7132 L_3803119C:
   7133     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x3803119C: fadd dword ptr [0x3804f68c] */
   7134 L_380311A2:
   7135     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311A2: fstp dword ptr [ebp - 0x28] */
   7136 L_380311A5:
   7137     goto L_380311F0; /* 0x380311A5: jmp 0x380311f0 */
   7138 L_380311A7:
   7139     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311A7: fld dword ptr [ebp - 0x20] */
   7140 L_380311AA:
   7141     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380311AA: fadd dword ptr [0x3804f690] */
   7142 L_380311B0:
   7143     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311B0: fstp dword ptr [ebp - 0x20] */
   7144 L_380311B3:
   7145     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311B3: fld dword ptr [ebp - 0x30] */
   7146 L_380311B6:
   7147     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x380311B6: fadd dword ptr [0x3804f68c] */
   7148 L_380311BC:
   7149     goto L_380311ED; /* 0x380311BC: jmp 0x380311ed */
   7150 L_380311BE:
   7151     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380311BE: fld dword ptr [ebp - 0x18] */
   7152 L_380311C1:
   7153     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311C1: fsub dword ptr [0x3804f690] */
   7154 L_380311C7:
   7155     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380311C7: fstp dword ptr [ebp - 0x18] */
   7156 L_380311CA:
   7157     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380311CA: fld dword ptr [ebp - 0x28] */
   7158 L_380311CD:
   7159     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311CD: fsub dword ptr [0x3804f68c] */
   7160 L_380311D3:
   7161     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311D3: fstp dword ptr [ebp - 0x28] */
   7162 L_380311D6:
   7163     goto L_380311F0; /* 0x380311D6: jmp 0x380311f0 */
   7164 L_380311D8:
   7165     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311D8: fld dword ptr [ebp - 0x20] */
   7166 L_380311DB:
   7167     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311DB: fsub dword ptr [0x3804f690] */
   7168 L_380311E1:
   7169     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311E1: fstp dword ptr [ebp - 0x20] */
   7170 L_380311E4:
   7171     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311E4: fld dword ptr [ebp - 0x30] */
   7172 L_380311E7:
   7173     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311E7: fsub dword ptr [0x3804f68c] */
   7174 L_380311ED:
   7175     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380311ED: fstp dword ptr [ebp - 0x30] */
   7176 L_380311F0:
   7177     edx = MEM32(esi + 0x44); /* 0x380311F0: mov edx, dword ptr [esi + 0x44] */
   7178 L_380311F3:
   7179     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7180     ebx = 0; /* 0x380311F3: xor ebx, ebx */
   7181     _cf = 0;
   7182     _flag_k = FK_TEST;
   7183 L_380311F5:
   7184     MEM32(ebp + (-0xDC)) = edx; /* 0x380311F5: mov dword ptr [ebp - 0xdc], edx */
   7185 L_380311FB:
   7186     MEM32(ebp + (-0xD8)) = ebx; /* 0x380311FB: mov dword ptr [ebp - 0xd8], ebx */
   7187 L_38031201:
   7188     fp_push_i64((int64_t)MEM64(ebp + (-0xDC))); /* 0x38031201: fild qword ptr [ebp - 0xdc] */
   7189 L_38031207:
   7190     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031207: fmul dword ptr [0x3804eac0] */
   7191 L_3803120D:
   7192     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803120D: fcom dword ptr [0x3804e8e4] */
   7193 L_38031213:
   7194     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031213: fnstsw ax */
   7195 L_38031215:
   7196     /* test HI8(eax), 1 */ /* 0x38031215: test ah, 1 */
   7197     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7198     _cf = 0;
   7199     _flag_k = FK_NARROW(FK_TEST, 24);
   7200 L_38031218:
   7201     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803122F; /* 0x38031218: jne 0x3803122f */
   7202 L_3803121A:
   7203     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803121A: fcom qword ptr [0x3804e8f8] */
   7204 L_38031220:
   7205     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031220: fnstsw ax */
   7206 L_38031222:
   7207     /* test HI8(eax), 1 */ /* 0x38031222: test ah, 1 */
   7208     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7209     _cf = 0;
   7210     _flag_k = FK_NARROW(FK_TEST, 24);
   7211 L_38031225:
   7212     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803122F; /* 0x38031225: je 0x3803122f */
   7213 L_38031227:
   7214     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031227: fmul dword ptr [0x3804e8bc] */
   7215 L_3803122D:
   7216     goto L_38031250; /* 0x3803122D: jmp 0x38031250 */
   7217 L_3803122F:
   7218     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803122F: fmul dword ptr [0x3804e8f4] */
   7219 L_38031235:
   7220     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7222     esp = esp - 8; /* 0x38031235: sub esp, 8 */
   7223     _flag_k = FK_CMP;
   7224 L_38031238:
   7225     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031238: fst dword ptr [ebp - 0x10] */
   7226 L_3803123B:
   7227     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3803123B: fstp qword ptr [esp] */
   7228 L_3803123E:
   7229     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3803123E: call dword ptr [0x3804e0ac] */
   7230     RECOMP_FLAGS_IN();
   7231 L_38031244:
   7232     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38031244: fsubr dword ptr [ebp - 0x10] */
   7233 L_38031247:
   7234     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7235     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7236     esp = esp + 8; /* 0x38031247: add esp, 8 */
   7237     _flag_k = FK_ADD;
   7238 L_3803124A:
   7239     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3803124A: fmul dword ptr [0x3804e8f0] */
   7240 L_38031250:
   7241     fp_push(_st[0]); /* 0x38031250: fld st(0) */
   7242 L_38031252:
   7243     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031252: fsin  */
   7244 L_38031254:
   7245     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031254: fld dword ptr [0x3804e8e4] */
   7246 L_3803125A:
   7247     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803125A: fst dword ptr [ebp - 0x14] */
   7248 L_3803125D:
   7249     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3803125D: fstp dword ptr [ebp - 0x40] */
   7250 L_38031260:
   7251     eax = MEM32(ebp + (-0x14)); /* 0x38031260: mov eax, dword ptr [ebp - 0x14] */
   7252 L_38031263:
   7253     MEM32(ebp + (-0x38)) = eax; /* 0x38031263: mov dword ptr [ebp - 0x38], eax */
   7254 L_38031266:
   7255     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x38031266: fstp dword ptr [ebp - 0x3c] */
   7256 L_38031269:
   7257     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031269: fcos  */
   7258 L_3803126B:
   7259     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3803126B: fstp dword ptr [ebp - 0x34] */
   7260 L_3803126E:
   7261     fp_push((double)(int32_t)MEM32(ebp + (-0x24))); /* 0x3803126E: fild dword ptr [ebp - 0x24] */
   7262 L_38031271:
   7263     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38031271: fmul qword ptr [0x3804f6a0] */
   7264 L_38031277:
   7265     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38031277: fadd qword ptr [0x3804f698] */
   7266 L_3803127D:
   7267     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803127D: fcom dword ptr [0x3804e8e4] */
   7268 L_38031283:
   7269     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031283: fnstsw ax */
   7270 L_38031285:
   7271     /* test HI8(eax), 1 */ /* 0x38031285: test ah, 1 */
   7272     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7273     _cf = 0;
   7274     _flag_k = FK_NARROW(FK_TEST, 24);
   7275 L_38031288:
   7276     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803129F; /* 0x38031288: jne 0x3803129f */
   7277 L_3803128A:
   7278     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803128A: fcom qword ptr [0x3804e8f8] */
   7279 L_38031290:
   7280     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031290: fnstsw ax */
   7281 L_38031292:
   7282     /* test HI8(eax), 1 */ /* 0x38031292: test ah, 1 */
   7283     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7284     _cf = 0;
   7285     _flag_k = FK_NARROW(FK_TEST, 24);
   7286 L_38031295:
   7287     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803129F; /* 0x38031295: je 0x3803129f */
   7288 L_38031297:
   7289     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031297: fmul dword ptr [0x3804e8bc] */
   7290 L_3803129D:
   7291     goto L_380312C0; /* 0x3803129D: jmp 0x380312c0 */
   7292 L_3803129F:
   7293     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803129F: fmul dword ptr [0x3804e8f4] */
   7294 L_380312A5:
   7295     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7297     esp = esp - 8; /* 0x380312A5: sub esp, 8 */
   7298     _flag_k = FK_CMP;
   7299 L_380312A8:
   7300     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380312A8: fst dword ptr [ebp - 0x10] */
   7301 L_380312AB:
   7302     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380312AB: fstp qword ptr [esp] */
   7303 L_380312AE:
   7304     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380312AE: call dword ptr [0x3804e0ac] */
   7305     RECOMP_FLAGS_IN();
   7306 L_380312B4:
   7307     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x380312B4: fsubr dword ptr [ebp - 0x10] */
   7308 L_380312B7:
   7309     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7311     esp = esp + 8; /* 0x380312B7: add esp, 8 */
   7312     _flag_k = FK_ADD;
   7313 L_380312BA:
   7314     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x380312BA: fmul dword ptr [0x3804e8f0] */
   7315 L_380312C0:
   7316     fp_push(_st[0]); /* 0x380312C0: fld st(0) */
   7317 L_380312C2:
   7318     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380312C2: fsin  */
   7319 L_380312C4:
   7320     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380312C4: fld dword ptr [0x3804e8e4] */
   7321 L_380312CA:
   7322     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380312CA: fst dword ptr [ebp - 0x24] */
   7323 L_380312CD:
   7324     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x380312CD: fstp dword ptr [ebp - 0x54] */
   7325 L_380312D0:
   7326     ecx = MEM32(ebp + (-0x24)); /* 0x380312D0: mov ecx, dword ptr [ebp - 0x24] */
   7327 L_380312D3:
   7328     MEM32(ebp + (-0x4C)) = ecx; /* 0x380312D3: mov dword ptr [ebp - 0x4c], ecx */
   7329 L_380312D6:
   7330     ecx = MEM32(ebp + (-0x40)); /* 0x380312D6: mov ecx, dword ptr [ebp - 0x40] */
   7331 L_380312D9:
   7332     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x380312D9: fstp dword ptr [ebp - 0x50] */
   7333 L_380312DC:
   7334     MEM32(ebp + (-0xFC)) = ecx; /* 0x380312DC: mov dword ptr [ebp - 0xfc], ecx */
   7335 L_380312E2:
   7336     ecx = ebp + (-0x20); /* 0x380312E2: lea ecx, [ebp - 0x20] */
   7337 L_380312E5:
   7338     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380312E5: fcos  */
   7339 L_380312E7:
   7340     PUSH32(esp, ecx); /* 0x380312E7: push ecx */
   7341 L_380312E8:
   7342     ecx = ebp + (-0xFC); /* 0x380312E8: lea ecx, [ebp - 0xfc] */
   7343 L_380312EE:
   7344     fp_push(_st[0]); /* 0x380312EE: fld st(0) */
   7345 L_380312F0:
   7346     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x380312F0: fmul dword ptr [ebp - 0x40] */
   7347 L_380312F3:
   7348     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x380312F3: fld dword ptr [ebp - 0x4c] */
   7349 L_380312F6:
   7350     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x380312F6: fmul dword ptr [ebp - 0x3c] */
   7351 L_380312F9:
   7352     { double _v = fp_pop(); _st[0] += _v; } /* 0x380312F9: faddp st(1) */
   7353 L_380312FB:
   7354     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x380312FB: fld dword ptr [ebp - 0x50] */
   7355 L_380312FE:
   7356     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x380312FE: fmul dword ptr [ebp - 0x38] */
   7357 L_38031301:
   7358     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031301: fsubp st(1) */
   7359 L_38031303:
   7360     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031303: fld dword ptr [ebp - 0x34] */
   7361 L_38031306:
   7362     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031306: fmul dword ptr [ebp - 0x54] */
   7363 L_38031309:
   7364     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031309: faddp st(1) */
   7365 L_3803130B:
   7366     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803130B: fld dword ptr [ebp - 0x50] */
   7367 L_3803130E:
   7368     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803130E: fmul dword ptr [ebp - 0x34] */
   7369 L_38031311:
   7370     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38031311: fld dword ptr [ebp - 0x4c] */
   7371 L_38031314:
   7372     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031314: fmul dword ptr [ebp - 0x40] */
   7373 L_38031317:
   7374     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031317: fsubp st(1) */
   7375 L_38031319:
   7376     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38031319: fld dword ptr [ebp - 0x38] */
   7377 L_3803131C:
   7378     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3803131C: fmul dword ptr [ebp - 0x54] */
   7379 L_3803131F:
   7380     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803131F: faddp st(1) */
   7381 L_38031321:
   7382     fp_push(_st[2]); /* 0x38031321: fld st(2) */
   7383 L_38031323:
   7384     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031323: fmul dword ptr [ebp - 0x3c] */
   7385 L_38031326:
   7386     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031326: faddp st(1) */
   7387 L_38031328:
   7388     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38031328: fstp dword ptr [ebp - 0x24] */
   7389 L_3803132B:
   7390     edx = MEM32(ebp + (-0x24)); /* 0x3803132B: mov edx, dword ptr [ebp - 0x24] */
   7391 L_3803132E:
   7392     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803132E: fld dword ptr [ebp - 0x50] */
   7393 L_38031331:
   7394     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031331: fmul dword ptr [ebp - 0x40] */
   7395 L_38031334:
   7396     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x38031334: fld dword ptr [ebp - 0x3c] */
   7397 L_38031337:
   7398     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031337: fmul dword ptr [ebp - 0x54] */
   7399 L_3803133A:
   7400     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803133A: fsubp st(1) */
   7401 L_3803133C:
   7402     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803133C: fld dword ptr [ebp - 0x4c] */
   7403 L_3803133F:
   7404     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803133F: fmul dword ptr [ebp - 0x34] */
   7405 L_38031342:
   7406     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031342: faddp st(1) */
   7407 L_38031344:
   7408     fp_push(_st[2]); /* 0x38031344: fld st(2) */
   7409 L_38031346:
   7410     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031346: fmul dword ptr [ebp - 0x38] */
   7411 L_38031349:
   7412     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031349: faddp st(1) */
   7413 L_3803134B:
   7414     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803134B: fstp dword ptr [ebp - 0x14] */
   7415 L_3803134E:
   7416     eax = MEM32(ebp + (-0x14)); /* 0x3803134E: mov eax, dword ptr [ebp - 0x14] */
   7417 L_38031351:
   7418     fp_xch(1); /* 0x38031351: fxch st(1) */
   7419 L_38031353:
   7420     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x38031353: fmul dword ptr [ebp - 0x34] */
   7421 L_38031356:
   7422     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x38031356: fld dword ptr [ebp - 0x54] */
   7423 L_38031359:
   7424     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031359: fmul dword ptr [ebp - 0x40] */
   7425 L_3803135C:
   7426     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803135C: fld dword ptr [ebp - 0x4c] */
   7427 L_3803135F:
   7428     MEM32(ebp + (-0x4C)) = eax; /* 0x3803135F: mov dword ptr [ebp - 0x4c], eax */
   7429 L_38031362:
   7430     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031362: fmul dword ptr [ebp - 0x38] */
   7431 L_38031365:
   7432     eax = MEM32(ebp + (-0x38)); /* 0x38031365: mov eax, dword ptr [ebp - 0x38] */
   7433 L_38031368:
   7434     MEM32(ebp + (-0xF4)) = eax; /* 0x38031368: mov dword ptr [ebp - 0xf4], eax */
   7435 L_3803136E:
   7436     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803136E: faddp st(1) */
   7437 L_38031370:
   7438     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38031370: fld dword ptr [ebp - 0x50] */
   7439 L_38031373:
   7440     MEM32(ebp + (-0x50)) = edx; /* 0x38031373: mov dword ptr [ebp - 0x50], edx */
   7441 L_38031376:
   7442     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031376: fmul dword ptr [ebp - 0x3c] */
   7443 L_38031379:
   7444     edx = MEM32(ebp + (-0x3C)); /* 0x38031379: mov edx, dword ptr [ebp - 0x3c] */
   7445 L_3803137C:
   7446     MEM32(ebp + (-0xF8)) = edx; /* 0x3803137C: mov dword ptr [ebp - 0xf8], edx */
   7447 L_38031382:
   7448     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031382: faddp st(1) */
   7449 L_38031384:
   7450     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031384: fsubp st(1) */
   7451 L_38031386:
   7452     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x38031386: fstp dword ptr [ebp - 0x48] */
   7453 L_38031389:
   7454     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x38031389: fstp dword ptr [ebp - 0x54] */
   7455 L_3803138C:
   7456     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3803138C: call dword ptr [0x3804e4c8] */
   7457     RECOMP_FLAGS_IN();
   7458 L_38031392:
   7459     edx = MEM32(eax); /* 0x38031392: mov edx, dword ptr [eax] */
   7460 L_38031394:
   7461     MEM32(ebp + (-0xA8)) = edx; /* 0x38031394: mov dword ptr [ebp - 0xa8], edx */
   7462 L_3803139A:
   7463     ecx = MEM32(eax + 0x4); /* 0x3803139A: mov ecx, dword ptr [eax + 4] */
   7464 L_3803139D:
   7465     MEM32(ebp + (-0xA4)) = ecx; /* 0x3803139D: mov dword ptr [ebp - 0xa4], ecx */
   7466 L_380313A3:
   7467     edx = MEM32(eax + 0x8); /* 0x380313A3: mov edx, dword ptr [eax + 8] */
   7468 L_380313A6:
   7469     eax = ebp + (-0xA8); /* 0x380313A6: lea eax, [ebp - 0xa8] */
   7470 L_380313AC:
   7471     PUSH32(esp, eax); /* 0x380313AC: push eax */
   7472 L_380313AD:
   7473     ecx = ebp + (-0x114); /* 0x380313AD: lea ecx, [ebp - 0x114] */
   7474 L_380313B3:
   7475     MEM32(ebp + (-0xA0)) = edx; /* 0x380313B3: mov dword ptr [ebp - 0xa0], edx */
   7476 L_380313B9:
   7477     PUSH32(esp, ecx); /* 0x380313B9: push ecx */
   7478 L_380313BA:
   7479     ecx = ebp + (-0x40); /* 0x380313BA: lea ecx, [ebp - 0x40] */
   7480 L_380313BD:
   7481     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380313BD: call dword ptr [0x3804e4fc] */
   7482     RECOMP_FLAGS_IN();
   7483 L_380313C3:
   7484     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x380313C3: fld dword ptr [ebp - 0x34] */
   7485 L_380313C6:
   7486     edx = MEM32(eax); /* 0x380313C6: mov edx, dword ptr [eax] */
   7487 L_380313C8:
   7488     _st[0] += _st[0]; /* 0x380313C8: fadd st(0), st(0) */
   7489 L_380313CA:
   7490     MEM32(ebp + (-0xD4)) = edx; /* 0x380313CA: mov dword ptr [ebp - 0xd4], edx */
   7491 L_380313D0:
   7492     ecx = MEM32(eax + 0x4); /* 0x380313D0: mov ecx, dword ptr [eax + 4] */
   7493 L_380313D3:
   7494     MEM32(ebp + (-0xD0)) = ecx; /* 0x380313D3: mov dword ptr [ebp - 0xd0], ecx */
   7495 L_380313D9:
   7496     edx = MEM32(eax + 0x8); /* 0x380313D9: mov edx, dword ptr [eax + 8] */
   7497 L_380313DC:
   7498     PUSH32(esp, ecx); /* 0x380313DC: push ecx */
   7499 L_380313DD:
   7500     ecx = ebp + (-0xA8); /* 0x380313DD: lea ecx, [ebp - 0xa8] */
   7501 L_380313E3:
   7502     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380313E3: fstp dword ptr [esp] */
   7503 L_380313E6:
   7504     MEM32(ebp + (-0xCC)) = edx; /* 0x380313E6: mov dword ptr [ebp - 0xcc], edx */
   7505 L_380313EC:
   7506     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313EC: call dword ptr [0x3804e4d4] */
   7507     RECOMP_FLAGS_IN();
   7508 L_380313F2:
   7509     PUSH32(esp, 0x40000000u); /* 0x380313F2: push 0x40000000 */
   7510 L_380313F7:
   7511     ecx = ebp + (-0xD4); /* 0x380313F7: lea ecx, [ebp - 0xd4] */
   7512 L_380313FD:
   7513     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313FD: call dword ptr [0x3804e4d4] */
   7514     RECOMP_FLAGS_IN();
   7515 L_38031403:
   7516     eax = ebp + (-0xA8); /* 0x38031403: lea eax, [ebp - 0xa8] */
   7517 L_38031409:
   7518     PUSH32(esp, eax); /* 0x38031409: push eax */
   7519 L_3803140A:
   7520     ecx = ebp + (-0x20); /* 0x3803140A: lea ecx, [ebp - 0x20] */
   7521 L_3803140D:
   7522     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803140D: call dword ptr [0x3804e4e8] */
   7523     RECOMP_FLAGS_IN();
   7524 L_38031413:
   7525     ecx = ebp + (-0xD4); /* 0x38031413: lea ecx, [ebp - 0xd4] */
   7526 L_38031419:
   7527     PUSH32(esp, ecx); /* 0x38031419: push ecx */
   7528 L_3803141A:
   7529     ecx = ebp + (-0x20); /* 0x3803141A: lea ecx, [ebp - 0x20] */
   7530 L_3803141D:
   7531     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803141D: call dword ptr [0x3804e4e8] */
   7532     RECOMP_FLAGS_IN();
   7533 L_38031423:
   7534     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031423: fld dword ptr [ebp - 0x20] */
   7535 L_38031426:
   7536     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x38031426: fadd dword ptr [esi + 0x54] */
   7537 L_38031429:
   7538     edx = MEM32(ebp + (-0x40)); /* 0x38031429: mov edx, dword ptr [ebp - 0x40] */
   7539 L_3803142C:
   7540     ecx = MEM32(ebp + (-0x38)); /* 0x3803142C: mov ecx, dword ptr [ebp - 0x38] */
   7541 L_3803142F:
   7542     eax = MEM32(ebp + (-0x3C)); /* 0x3803142F: mov eax, dword ptr [ebp - 0x3c] */
   7543 L_38031432:
   7544     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031432: fstp dword ptr [ebp - 0x20] */
   7545 L_38031435:
   7546     MEM32(ebp + (-0xF0)) = edx; /* 0x38031435: mov dword ptr [ebp - 0xf0], edx */
   7547 L_3803143B:
   7548     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3803143B: fld dword ptr [ebp - 0x1c] */
   7549 L_3803143E:
   7550     edx = ebp + (-0x30); /* 0x3803143E: lea edx, [ebp - 0x30] */
   7551 L_38031441:
   7552     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031441: fadd dword ptr [esi + 0x58] */
   7553 L_38031444:
   7554     MEM32(ebp + (-0xE8)) = ecx; /* 0x38031444: mov dword ptr [ebp - 0xe8], ecx */
   7555 L_3803144A:
   7556     PUSH32(esp, edx); /* 0x3803144A: push edx */
   7557 L_3803144B:
   7558     ecx = ebp + (-0xF0); /* 0x3803144B: lea ecx, [ebp - 0xf0] */
   7559 L_38031451:
   7560     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38031451: fstp dword ptr [ebp - 0x1c] */
   7561 L_38031454:
   7562     MEM32(ebp + (-0xEC)) = eax; /* 0x38031454: mov dword ptr [ebp - 0xec], eax */
   7563 L_3803145A:
   7564     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803145A: fld dword ptr [ebp - 0x18] */
   7565 L_3803145D:
   7566     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x3803145D: fadd dword ptr [esi + 0x5c] */
   7567 L_38031460:
   7568     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031460: fstp dword ptr [ebp - 0x18] */
   7569 L_38031463:
   7570     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031463: call dword ptr [0x3804e4c8] */
   7571     RECOMP_FLAGS_IN();
   7572 L_38031469:
   7573     ecx = MEM32(eax); /* 0x38031469: mov ecx, dword ptr [eax] */
   7574 L_3803146B:
   7575     MEM32(ebp + (-0x98)) = ecx; /* 0x3803146B: mov dword ptr [ebp - 0x98], ecx */
   7576 L_38031471:
   7577     edx = MEM32(eax + 0x4); /* 0x38031471: mov edx, dword ptr [eax + 4] */
   7578 L_38031474:
   7579     MEM32(ebp + (-0x94)) = edx; /* 0x38031474: mov dword ptr [ebp - 0x94], edx */
   7580 L_3803147A:
   7581     eax = MEM32(eax + 0x8); /* 0x3803147A: mov eax, dword ptr [eax + 8] */
   7582 L_3803147D:
   7583     ecx = ebp + (-0x98); /* 0x3803147D: lea ecx, [ebp - 0x98] */
   7584 L_38031483:
   7585     PUSH32(esp, ecx); /* 0x38031483: push ecx */
   7586 L_38031484:
   7587     edx = ebp + (-0x108); /* 0x38031484: lea edx, [ebp - 0x108] */
   7588 L_3803148A:
   7589     PUSH32(esp, edx); /* 0x3803148A: push edx */
   7590 L_3803148B:
   7591     ecx = ebp + (-0x40); /* 0x3803148B: lea ecx, [ebp - 0x40] */
   7592 L_3803148E:
   7593     MEM32(ebp + (-0x90)) = eax; /* 0x3803148E: mov dword ptr [ebp - 0x90], eax */
   7594 L_38031494:
   7595     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x38031494: call dword ptr [0x3804e4fc] */
   7596     RECOMP_FLAGS_IN();
   7597 L_3803149A:
   7598     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3803149A: fld dword ptr [ebp - 0x34] */
   7599 L_3803149D:
   7600     ecx = MEM32(eax); /* 0x3803149D: mov ecx, dword ptr [eax] */
   7601 L_3803149F:
   7602     _st[0] += _st[0]; /* 0x3803149F: fadd st(0), st(0) */
   7603 L_380314A1:
   7604     MEM32(ebp + (-0xC8)) = ecx; /* 0x380314A1: mov dword ptr [ebp - 0xc8], ecx */
   7605 L_380314A7:
   7606     edx = MEM32(eax + 0x4); /* 0x380314A7: mov edx, dword ptr [eax + 4] */
   7607 L_380314AA:
   7608     MEM32(ebp + (-0xC4)) = edx; /* 0x380314AA: mov dword ptr [ebp - 0xc4], edx */
   7609 L_380314B0:
   7610     eax = MEM32(eax + 0x8); /* 0x380314B0: mov eax, dword ptr [eax + 8] */
   7611 L_380314B3:
   7612     PUSH32(esp, ecx); /* 0x380314B3: push ecx */
   7613 L_380314B4:
   7614     ecx = ebp + (-0x98); /* 0x380314B4: lea ecx, [ebp - 0x98] */
   7615 L_380314BA:
   7616     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380314BA: fstp dword ptr [esp] */
   7617 L_380314BD:
   7618     MEM32(ebp + (-0xC0)) = eax; /* 0x380314BD: mov dword ptr [ebp - 0xc0], eax */
   7619 L_380314C3:
   7620     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314C3: call dword ptr [0x3804e4d4] */
   7621     RECOMP_FLAGS_IN();
   7622 L_380314C9:
   7623     PUSH32(esp, 0x40000000u); /* 0x380314C9: push 0x40000000 */
   7624 L_380314CE:
   7625     ecx = ebp + (-0xC8); /* 0x380314CE: lea ecx, [ebp - 0xc8] */
   7626 L_380314D4:
   7627     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314D4: call dword ptr [0x3804e4d4] */
   7628     RECOMP_FLAGS_IN();
   7629 L_380314DA:
   7630     ecx = ebp + (-0x98); /* 0x380314DA: lea ecx, [ebp - 0x98] */
   7631 L_380314E0:
   7632     PUSH32(esp, ecx); /* 0x380314E0: push ecx */
   7633 L_380314E1:
   7634     ecx = ebp + (-0x30); /* 0x380314E1: lea ecx, [ebp - 0x30] */
   7635 L_380314E4:
   7636     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314E4: call dword ptr [0x3804e4e8] */
   7637     RECOMP_FLAGS_IN();
   7638 L_380314EA:
   7639     edx = ebp + (-0xC8); /* 0x380314EA: lea edx, [ebp - 0xc8] */
   7640 L_380314F0:
   7641     PUSH32(esp, edx); /* 0x380314F0: push edx */
   7642 L_380314F1:
   7643     ecx = ebp + (-0x30); /* 0x380314F1: lea ecx, [ebp - 0x30] */
   7644 L_380314F4:
   7645     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314F4: call dword ptr [0x3804e4e8] */
   7646     RECOMP_FLAGS_IN();
   7647 L_380314FA:
   7648     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380314FA: fld dword ptr [ebp - 0x30] */
   7649 L_380314FD:
   7650     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x380314FD: fadd dword ptr [esi + 0x54] */
   7651 L_38031500:
   7652     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031500: fstp dword ptr [ebp - 0x30] */
   7653 L_38031503:
   7654     PUSH32(esp, 0x3806CB10u); /* 0x38031503: push 0x3806cb10 */
   7655 L_38031508:
   7656     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031508: fld dword ptr [ebp - 0x2c] */
   7657 L_3803150B:
   7658     PUSH32(esp, 0x000F6951u); /* 0x3803150B: push 0xf6951 */
   7659 L_38031510:
   7660     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031510: fadd dword ptr [esi + 0x58] */
   7661 L_38031513:
   7662     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031513: fstp dword ptr [ebp - 0x2c] */
   7663 L_38031516:
   7664     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031516: fld dword ptr [ebp - 0x28] */
   7665 L_38031519:
   7666     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38031519: fadd dword ptr [esi + 0x5c] */
   7667 L_3803151C:
   7668     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3803151C: fstp dword ptr [ebp - 0x28] */
   7669 L_3803151F:
   7670     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x3803151F: call dword ptr [0x3804e4b0] */
   7671     RECOMP_FLAGS_IN();
   7672 L_38031525:
   7673     edi = eax; /* 0x38031525: mov edi, eax */
   7674 L_38031527:
   7675     eax = MEM32(esi + 0x98); /* 0x38031527: mov eax, dword ptr [esi + 0x98] */
   7676 L_3803152D:
   7677     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7678     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7679     esp = esp + 8; /* 0x3803152D: add esp, 8 */
   7680     _flag_k = FK_ADD;
   7681 L_38031530:
   7682     /* cmp eax, ebx */ /* 0x38031530: cmp eax, ebx */
   7683     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7685     _flag_k = FK_CMP;
   7686 L_38031532:
   7687     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803155A; /* 0x38031532: jne 0x3803155a */
   7688 L_38031534:
   7689     PUSH32(esp, 0x10u); /* 0x38031534: push 0x10 */
   7690 L_38031536:
   7691     RECOMP_ICALL(0x3804B676u); /* 0x38031536: call 0x3804b676 */ /* not lifted */
   7692     RECOMP_FLAGS_IN();
   7693 L_3803153B:
   7694     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7695     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7696     esp = esp + 4; /* 0x3803153B: add esp, 4 */
   7697     _flag_k = FK_ADD;
   7698 L_3803153E:
   7699     /* cmp eax, ebx */ /* 0x3803153E: cmp eax, ebx */
   7700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7702     _flag_k = FK_CMP;
   7703 L_38031540:
   7704     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031552; /* 0x38031540: je 0x38031552 */
   7705 L_38031542:
   7706     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031542: mov cl, byte ptr [ebp + 0xb] */
   7707 L_38031545:
   7708     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031545: mov byte ptr [eax], cl */
   7709 L_38031547:
   7710     MEM32(eax + 0x4) = ebx; /* 0x38031547: mov dword ptr [eax + 4], ebx */
   7711 L_3803154A:
   7712     MEM32(eax + 0x8) = ebx; /* 0x3803154A: mov dword ptr [eax + 8], ebx */
   7713 L_3803154D:
   7714     MEM32(eax + 0xC) = ebx; /* 0x3803154D: mov dword ptr [eax + 0xc], ebx */
   7715 L_38031550:
   7716     goto L_38031554; /* 0x38031550: jmp 0x38031554 */
   7717 L_38031552:
   7718     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7719     eax = 0; /* 0x38031552: xor eax, eax */
   7720     _cf = 0;
   7721     _flag_k = FK_TEST;
   7722 L_38031554:
   7723     MEM32(esi + 0x98) = eax; /* 0x38031554: mov dword ptr [esi + 0x98], eax */
   7724 L_3803155A:
   7725     eax = MEM32(ebp + 0x8); /* 0x3803155A: mov eax, dword ptr [ebp + 8] */
   7726 L_3803155D:
   7727     edx = ebp + (-0x20); /* 0x3803155D: lea edx, [ebp - 0x20] */
   7728 L_38031560:
   7729     PUSH32(esp, edx); /* 0x38031560: push edx */
   7730 L_38031561:
   7731     PUSH32(esp, eax); /* 0x38031561: push eax */
   7732 L_38031562:
   7733     ecx = esi; /* 0x38031562: mov ecx, esi */
   7734 L_38031564:
   7735     RECOMP_ICALL(0x38032CE0u); /* 0x38031564: call 0x38032ce0 */ /* not lifted */
   7736     RECOMP_FLAGS_IN();
   7737 L_38031569:
   7738     ecx = MEM32(ebp + (-0x20)); /* 0x38031569: mov ecx, dword ptr [ebp - 0x20] */
   7739 L_3803156C:
   7740     edx = MEM32(ebp + (-0x1C)); /* 0x3803156C: mov edx, dword ptr [ebp - 0x1c] */
   7741 L_3803156F:
   7742     eax = MEM32(ebp + (-0x18)); /* 0x3803156F: mov eax, dword ptr [ebp - 0x18] */
   7743 L_38031572:
   7744     MEM32(ebp + (-0xBC)) = ecx; /* 0x38031572: mov dword ptr [ebp - 0xbc], ecx */
   7745 L_38031578:
   7746     ecx = ebp + (-0xBC); /* 0x38031578: lea ecx, [ebp - 0xbc] */
   7747 L_3803157E:
   7748     MEM32(ebp + (-0xB8)) = edx; /* 0x3803157E: mov dword ptr [ebp - 0xb8], edx */
   7749 L_38031584:
   7750     edx = MEM32(ebp + 0x8); /* 0x38031584: mov edx, dword ptr [ebp + 8] */
   7751 L_38031587:
   7752     PUSH32(esp, ecx); /* 0x38031587: push ecx */
   7753 L_38031588:
   7754     PUSH32(esp, edx); /* 0x38031588: push edx */
   7755 L_38031589:
   7756     ecx = esi; /* 0x38031589: mov ecx, esi */
   7757 L_3803158B:
   7758     MEM32(ebp + (-0xB4)) = eax; /* 0x3803158B: mov dword ptr [ebp - 0xb4], eax */
   7759 L_38031591:
   7760     RECOMP_ICALL(0x38032DE0u); /* 0x38031591: call 0x38032de0 */ /* not lifted */
   7761     RECOMP_FLAGS_IN();
   7762 L_38031596:
   7763     fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x38031596: fld dword ptr [ebp - 0xb8] */
   7764 L_3803159C:
   7765     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3803159C: fsub dword ptr [ebp - 0x1c] */
   7766 L_3803159F:
   7767     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803159F: fst dword ptr [ebp - 0x10] */
   7768 L_380315A2:
   7769     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x380315A2: fcomp dword ptr [0x3804f688] */
   7770     fp_pop();
   7771 L_380315A8:
   7772     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380315A8: fnstsw ax */
   7773 L_380315AA:
   7774     /* test HI8(eax), 0x41u */ /* 0x380315AA: test ah, 0x41 */
   7775     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7776     _cf = 0;
   7777     _flag_k = FK_NARROW(FK_TEST, 24);
   7778 L_380315AD:
   7779     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031657; /* 0x380315AD: jne 0x38031657 */
   7780 L_380315B3:
   7781     PUSH32(esp, 0x58u); /* 0x380315B3: push 0x58 */
   7782 L_380315B5:
   7783     RECOMP_ICALL(0x3804B676u); /* 0x380315B5: call 0x3804b676 */ /* not lifted */
   7784     RECOMP_FLAGS_IN();
   7785 L_380315BA:
   7786     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7787     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7788     esp = esp + 4; /* 0x380315BA: add esp, 4 */
   7789     _flag_k = FK_ADD;
   7790 L_380315BD:
   7791     MEM32(ebp + (-0x24)) = eax; /* 0x380315BD: mov dword ptr [ebp - 0x24], eax */
   7792 L_380315C0:
   7793     /* cmp eax, ebx */ /* 0x380315C0: cmp eax, ebx */
   7794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7796     _flag_k = FK_CMP;
   7797 L_380315C2:
   7798     MEM32(ebp + (-0x4)) = 1; /* 0x380315C2: mov dword ptr [ebp - 4], 1 */
   7799 L_380315C9:
   7800     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315EC; /* 0x380315C9: je 0x380315ec */
   7801 L_380315CB:
   7802     PUSH32(esp, ebx); /* 0x380315CB: push ebx */
   7803 L_380315CC:
   7804     PUSH32(esp, ebx); /* 0x380315CC: push ebx */
   7805 L_380315CD:
   7806     PUSH32(esp, ebx); /* 0x380315CD: push ebx */
   7807 L_380315CE:
   7808     PUSH32(esp, ebx); /* 0x380315CE: push ebx */
   7809 L_380315CF:
   7810     PUSH32(esp, ebx); /* 0x380315CF: push ebx */
   7811 L_380315D0:
   7812     PUSH32(esp, edi); /* 0x380315D0: push edi */
   7813 L_380315D1:
   7814     PUSH32(esp, 0x3FA00000u); /* 0x380315D1: push 0x3fa00000 */
   7815 L_380315D6:
   7816     PUSH32(esp, 0x00FFFFFFu); /* 0x380315D6: push 0xffffff */
   7817 L_380315DB:
   7818     ecx = ebp + (-0x54); /* 0x380315DB: lea ecx, [ebp - 0x54] */
   7819 L_380315DE:
   7820     PUSH32(esp, ecx); /* 0x380315DE: push ecx */
   7821 L_380315DF:
   7822     edx = ebp + (-0x30); /* 0x380315DF: lea edx, [ebp - 0x30] */
   7823 L_380315E2:
   7824     PUSH32(esp, edx); /* 0x380315E2: push edx */
   7825 L_380315E3:
   7826     ecx = eax; /* 0x380315E3: mov ecx, eax */
   7827 L_380315E5:
   7828     RECOMP_ICALL(0x3800B350u); /* 0x380315E5: call 0x3800b350 */ /* not lifted */
   7829     RECOMP_FLAGS_IN();
   7830 L_380315EA:
   7831     goto L_380315EE; /* 0x380315EA: jmp 0x380315ee */
   7832 L_380315EC:
   7833     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7834     eax = 0; /* 0x380315EC: xor eax, eax */
   7835     _cf = 0;
   7836     _flag_k = FK_TEST;
   7837 L_380315EE:
   7838     ecx = MEM32(esi + 0x98); /* 0x380315EE: mov ecx, dword ptr [esi + 0x98] */
   7839 L_380315F4:
   7840     edx = ebp + (-0xAC); /* 0x380315F4: lea edx, [ebp - 0xac] */
   7841 L_380315FA:
   7842     PUSH32(esp, edx); /* 0x380315FA: push edx */
   7843 L_380315FB:
   7844     MEM32(ebp + (-0xAC)) = eax; /* 0x380315FB: mov dword ptr [ebp - 0xac], eax */
   7845 L_38031601:
   7846     eax = MEM32(ecx + 0x8); /* 0x38031601: mov eax, dword ptr [ecx + 8] */
   7847 L_38031604:
   7848     PUSH32(esp, 1); /* 0x38031604: push 1 */
   7849 L_38031606:
   7850     PUSH32(esp, eax); /* 0x38031606: push eax */
   7851 L_38031607:
   7852     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38031607: mov dword ptr [ebp - 4], 0xffffffff */
   7853 L_3803160E:
   7854     RECOMP_ICALL(0x38009C60u); /* 0x3803160E: call 0x38009c60 */ /* not lifted */
   7855     RECOMP_FLAGS_IN();
   7856 L_38031613:
   7857     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031613: fld dword ptr [ebp - 0x2c] */
   7858 L_38031616:
   7859     _st[0] += (double)*(float*)ADDR(0x3804F684); /* 0x38031616: fadd dword ptr [0x3804f684] */
   7860 L_3803161C:
   7861     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3803161C: fstp dword ptr [ebp - 0x2c] */
   7862 L_3803161F:
   7863     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803161F: fld dword ptr [ebp - 0x10] */
   7864 L_38031622:
   7865     _st[0] -= (double)*(float*)ADDR(0x3804F684); /* 0x38031622: fsub dword ptr [0x3804f684] */
   7866 L_38031628:
   7867     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031628: fcom dword ptr [0x3804f688] */
   7868 L_3803162E:
   7869     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803162E: fst dword ptr [ebp - 0x10] */
   7870 L_38031631:
   7871     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031631: fnstsw ax */
   7872 L_38031633:
   7873     /* test HI8(eax), 1 */ /* 0x38031633: test ah, 1 */
   7874     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7875     _cf = 0;
   7876     _flag_k = FK_NARROW(FK_TEST, 24);
   7877 L_38031636:
   7878     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031646; /* 0x38031636: je 0x38031646 */
   7879 L_38031638:
   7880     fp_push(_st[0]); /* 0x38031638: fld st(0) */
   7881 L_3803163A:
   7882     _st[0] -= (double)*(float*)ADDR(0x3804F688); /* 0x3803163A: fsub dword ptr [0x3804f688] */
   7883 L_38031640:
   7884     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x38031640: fadd dword ptr [ebp - 0x2c] */
   7885 L_38031643:
   7886     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031643: fstp dword ptr [ebp - 0x2c] */
   7887 L_38031646:
   7888     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031646: fcomp dword ptr [0x3804f688] */
   7889     fp_pop();
   7890 L_3803164C:
   7891     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803164C: fnstsw ax */
   7892 L_3803164E:
   7893     /* test HI8(eax), 0x41u */ /* 0x3803164E: test ah, 0x41 */
   7894     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7895     _cf = 0;
   7896     _flag_k = FK_NARROW(FK_TEST, 24);
   7897 L_38031651:
   7898     RECOMP_BACKEDGE();
   7899     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315B3; /* 0x38031651: je 0x380315b3 */
   7900 L_38031657:
   7901     PUSH32(esp, 0x58u); /* 0x38031657: push 0x58 */
   7902 L_38031659:
   7903     RECOMP_ICALL(0x3804B676u); /* 0x38031659: call 0x3804b676 */ /* not lifted */
   7904     RECOMP_FLAGS_IN();
   7905 L_3803165E:
   7906     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7908     esp = esp + 4; /* 0x3803165E: add esp, 4 */
   7909     _flag_k = FK_ADD;
   7910 L_38031661:
   7911     MEM32(ebp + (-0x24)) = eax; /* 0x38031661: mov dword ptr [ebp - 0x24], eax */
   7912 L_38031664:
   7913     /* cmp eax, ebx */ /* 0x38031664: cmp eax, ebx */
   7914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7916     _flag_k = FK_CMP;
   7917 L_38031666:
   7918     MEM32(ebp + (-0x4)) = 2; /* 0x38031666: mov dword ptr [ebp - 4], 2 */
   7919 L_3803166D:
   7920     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031690; /* 0x3803166D: je 0x38031690 */
   7921 L_3803166F:
   7922     PUSH32(esp, ebx); /* 0x3803166F: push ebx */
   7923 L_38031670:
   7924     PUSH32(esp, ebx); /* 0x38031670: push ebx */
   7925 L_38031671:
   7926     PUSH32(esp, ebx); /* 0x38031671: push ebx */
   7927 L_38031672:
   7928     PUSH32(esp, ebx); /* 0x38031672: push ebx */
   7929 L_38031673:
   7930     PUSH32(esp, ebx); /* 0x38031673: push ebx */
   7931 L_38031674:
   7932     PUSH32(esp, edi); /* 0x38031674: push edi */
   7933 L_38031675:
   7934     PUSH32(esp, 0x3FA00000u); /* 0x38031675: push 0x3fa00000 */
   7935 L_3803167A:
   7936     PUSH32(esp, 0x00FFFFFFu); /* 0x3803167A: push 0xffffff */
   7937 L_3803167F:
   7938     ecx = ebp + (-0x54); /* 0x3803167F: lea ecx, [ebp - 0x54] */
   7939 L_38031682:
   7940     PUSH32(esp, ecx); /* 0x38031682: push ecx */
   7941 L_38031683:
   7942     edx = ebp + (-0x30); /* 0x38031683: lea edx, [ebp - 0x30] */
   7943 L_38031686:
   7944     PUSH32(esp, edx); /* 0x38031686: push edx */
   7945 L_38031687:
   7946     ecx = eax; /* 0x38031687: mov ecx, eax */
   7947 L_38031689:
   7948     RECOMP_ICALL(0x3800B350u); /* 0x38031689: call 0x3800b350 */ /* not lifted */
   7949     RECOMP_FLAGS_IN();
   7950 L_3803168E:
   7951     goto L_38031692; /* 0x3803168E: jmp 0x38031692 */
   7952 L_38031690:
   7953     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7954     eax = 0; /* 0x38031690: xor eax, eax */
   7955     _cf = 0;
   7956     _flag_k = FK_TEST;
   7957 L_38031692:
   7958     ecx = MEM32(esi + 0x98); /* 0x38031692: mov ecx, dword ptr [esi + 0x98] */
   7959 L_38031698:
   7960     MEM32(ebp + (-0x9C)) = eax; /* 0x38031698: mov dword ptr [ebp - 0x9c], eax */
   7961 L_3803169E:
   7962     edx = MEM32(ecx + 0x8); /* 0x3803169E: mov edx, dword ptr [ecx + 8] */
   7963 L_380316A1:
   7964     eax = ebp + (-0x9C); /* 0x380316A1: lea eax, [ebp - 0x9c] */
   7965 L_380316A7:
   7966     PUSH32(esp, eax); /* 0x380316A7: push eax */
   7967 L_380316A8:
   7968     PUSH32(esp, 1); /* 0x380316A8: push 1 */
   7969 L_380316AA:
   7970     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380316AA: mov dword ptr [ebp - 4], 0xffffffff */
   7971 L_380316B1:
   7972     PUSH32(esp, edx); /* 0x380316B1: push edx */
   7973 L_380316B2:
   7974     RECOMP_ICALL(0x38009C60u); /* 0x380316B2: call 0x38009c60 */ /* not lifted */
   7975     RECOMP_FLAGS_IN();
   7976 L_380316B7:
   7977     eax = MEM32(ebp + (-0x8C)); /* 0x380316B7: mov eax, dword ptr [ebp - 0x8c] */
   7978 L_380316BD:
   7979     edx = MEM32(ebp + (-0x78)); /* 0x380316BD: mov edx, dword ptr [ebp - 0x78] */
   7980 L_380316C0:
   7981     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7982     ecx = 0; /* 0x380316C0: xor ecx, ecx */
   7983     _cf = 0;
   7984     _flag_k = FK_TEST;
   7985 L_380316C2:
   7986     SET_LO16(ecx, MEM16(esi + 0x7C)); /* 0x380316C2: mov cx, word ptr [esi + 0x7c] */
   7987 L_380316C6:
   7988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7989     eax = eax + 1; /* 0x380316C6: inc eax */
   7990     _flag_k = FK_INC;
   7991 L_380316C7:
   7992     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   7993     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7994     edx = edx + 0x10u; /* 0x380316C7: add edx, 0x10 */
   7995     _flag_k = FK_ADD;
   7996 L_380316CA:
   7997     MEM32(ebp + (-0x8C)) = eax; /* 0x380316CA: mov dword ptr [ebp - 0x8c], eax */
   7998 L_380316D0:
   7999     MEM32(ebp + (-0x78)) = edx; /* 0x380316D0: mov dword ptr [ebp - 0x78], edx */
   8000 L_380316D3:
   8001     /* cmp eax, ecx */ /* 0x380316D3: cmp eax, ecx */
   8002     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8004     _flag_k = FK_CMP;
   8005 L_380316D5:
   8006     RECOMP_BACKEDGE();
   8007     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38030E4E; /* 0x380316D5: jl 0x38030e4e */
   8008 L_380316DB:
   8009     edi = POP32_VAL(esp); /* 0x380316DB: pop edi */
   8010 L_380316DC:
   8011     PUSH32(esp, ebx); /* 0x380316DC: push ebx */
   8012 L_380316DD:
   8013     ecx = esi; /* 0x380316DD: mov ecx, esi */
   8014 L_380316DF:
   8015     RECOMP_ICALL(0x38030440u); /* 0x380316DF: call 0x38030440 */ /* not lifted */
   8016     RECOMP_FLAGS_IN();
   8017 L_380316E4:
   8018     ecx = MEM32(ebp + (-0xC)); /* 0x380316E4: mov ecx, dword ptr [ebp - 0xc] */
   8019 L_380316E7:
   8020     esi = POP32_VAL(esp); /* 0x380316E7: pop esi */
   8021 L_380316E8:
   8022     ebx = POP32_VAL(esp); /* 0x380316E8: pop ebx */
   8023 L_380316E9:
   8024     MEM32(FS_BASE + (0)) = ecx; /* 0x380316E9: mov dword ptr fs:[0], ecx */
   8025 L_380316F0:
   8026     esp = ebp; /* 0x380316F0: mov esp, ebp */
   8027 L_380316F2:
   8028     ebp = POP32_VAL(esp); /* 0x380316F2: pop ebp */
   8029 L_380316F3:
   8030     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380316F3: ret 8 */
   8031   _ljump:
   8032     switch (_itail_tgt) {
   8033       case 0x38030E4Eu: goto L_38030E4E;
   8034       case 0x38030E54u: goto L_38030E54;
   8035       case 0x38030E57u: goto L_38030E57;
   8036       case 0x38030E5Au: goto L_38030E5A;
   8037       case 0x38030E5Du: goto L_38030E5D;
   8038       case 0x38030E5Fu: goto L_38030E5F;
   8039       case 0x38030E65u: goto L_38030E65;
   8040       case 0x38030E68u: goto L_38030E68;
   8041       case 0x38030E6Eu: goto L_38030E6E;
   8042       case 0x38030E74u: goto L_38030E74;
   8043       case 0x38030E76u: goto L_38030E76;
   8044       case 0x38030E7Cu: goto L_38030E7C;
   8045       case 0x38030E84u: goto L_38030E84;
   8046       case 0x38030E8Au: goto L_38030E8A;
   8047       case 0x38030E8Du: goto L_38030E8D;
   8048       case 0x38030E91u: goto L_38030E91;
   8049       case 0x38030E97u: goto L_38030E97;
   8050       case 0x38030E9Du: goto L_38030E9D;
   8051       case 0x38030EA3u: goto L_38030EA3;
   8052       case 0x38030EA9u: goto L_38030EA9;
   8053       case 0x38030EACu: goto L_38030EAC;
   8054       case 0x38030EAFu: goto L_38030EAF;
   8055       case 0x38030EB5u: goto L_38030EB5;
   8056       case 0x38030EB7u: goto L_38030EB7;
   8057       case 0x38030EBAu: goto L_38030EBA;
   8058       case 0x38030EBCu: goto L_38030EBC;
   8059       case 0x38030EC2u: goto L_38030EC2;
   8060       case 0x38030EC4u: goto L_38030EC4;
   8061       case 0x38030EC7u: goto L_38030EC7;
   8062       case 0x38030EC9u: goto L_38030EC9;
   8063       case 0x38030ECFu: goto L_38030ECF;
   8064       case 0x38030ED1u: goto L_38030ED1;
   8065       case 0x38030ED7u: goto L_38030ED7;
   8066       case 0x38030EDAu: goto L_38030EDA;
   8067       case 0x38030EDDu: goto L_38030EDD;
   8068       case 0x38030EE0u: goto L_38030EE0;
   8069       case 0x38030EE6u: goto L_38030EE6;
   8070       case 0x38030EE9u: goto L_38030EE9;
   8071       case 0x38030EECu: goto L_38030EEC;
   8072       case 0x38030EF2u: goto L_38030EF2;
   8073       case 0x38030EF4u: goto L_38030EF4;
   8074       case 0x38030EF6u: goto L_38030EF6;
   8075       case 0x38030EFCu: goto L_38030EFC;
   8076       case 0x38030EFFu: goto L_38030EFF;
   8077       case 0x38030F02u: goto L_38030F02;
   8078       case 0x38030F05u: goto L_38030F05;
   8079       case 0x38030F08u: goto L_38030F08;
   8080       case 0x38030F0Bu: goto L_38030F0B;
   8081       case 0x38030F0Du: goto L_38030F0D;
   8082       case 0x38030F10u: goto L_38030F10;
   8083       case 0x38030F13u: goto L_38030F13;
   8084       case 0x38030F19u: goto L_38030F19;
   8085       case 0x38030F1Fu: goto L_38030F1F;
   8086       case 0x38030F25u: goto L_38030F25;
   8087       case 0x38030F27u: goto L_38030F27;
   8088       case 0x38030F2Au: goto L_38030F2A;
   8089       case 0x38030F2Cu: goto L_38030F2C;
   8090       case 0x38030F32u: goto L_38030F32;
   8091       case 0x38030F34u: goto L_38030F34;
   8092       case 0x38030F37u: goto L_38030F37;
   8093       case 0x38030F39u: goto L_38030F39;
   8094       case 0x38030F3Fu: goto L_38030F3F;
   8095       case 0x38030F41u: goto L_38030F41;
   8096       case 0x38030F47u: goto L_38030F47;
   8097       case 0x38030F4Au: goto L_38030F4A;
   8098       case 0x38030F4Du: goto L_38030F4D;
   8099       case 0x38030F50u: goto L_38030F50;
   8100       case 0x38030F56u: goto L_38030F56;
   8101       case 0x38030F59u: goto L_38030F59;
   8102       case 0x38030F5Cu: goto L_38030F5C;
   8103       case 0x38030F62u: goto L_38030F62;
   8104       case 0x38030F64u: goto L_38030F64;
   8105       case 0x38030F69u: goto L_38030F69;
   8106       case 0x38030F6Bu: goto L_38030F6B;
   8107       case 0x38030F70u: goto L_38030F70;
   8108       case 0x38030F76u: goto L_38030F76;
   8109       case 0x38030F79u: goto L_38030F79;
   8110       case 0x38030F7Cu: goto L_38030F7C;
   8111       case 0x38030F7Fu: goto L_38030F7F;
   8112       case 0x38030F82u: goto L_38030F82;
   8113       case 0x38030F85u: goto L_38030F85;
   8114       case 0x38030F87u: goto L_38030F87;
   8115       case 0x38030F89u: goto L_38030F89;
   8116       case 0x38030F8Cu: goto L_38030F8C;
   8117       case 0x38030F8Fu: goto L_38030F8F;
   8118       case 0x38030F92u: goto L_38030F92;
   8119       case 0x38030F94u: goto L_38030F94;
   8120       case 0x38030F97u: goto L_38030F97;
   8121       case 0x38030F9Au: goto L_38030F9A;
   8122       case 0x38030F9Cu: goto L_38030F9C;
   8123       case 0x38030F9Fu: goto L_38030F9F;
   8124       case 0x38030FA2u: goto L_38030FA2;
   8125       case 0x38030FA4u: goto L_38030FA4;
   8126       case 0x38030FA7u: goto L_38030FA7;
   8127       case 0x38030FAAu: goto L_38030FAA;
   8128       case 0x38030FADu: goto L_38030FAD;
   8129       case 0x38030FB0u: goto L_38030FB0;
   8130       case 0x38030FB2u: goto L_38030FB2;
   8131       case 0x38030FB5u: goto L_38030FB5;
   8132       case 0x38030FB8u: goto L_38030FB8;
   8133       case 0x38030FBAu: goto L_38030FBA;
   8134       case 0x38030FBCu: goto L_38030FBC;
   8135       case 0x38030FBFu: goto L_38030FBF;
   8136       case 0x38030FC1u: goto L_38030FC1;
   8137       case 0x38030FC4u: goto L_38030FC4;
   8138       case 0x38030FC7u: goto L_38030FC7;
   8139       case 0x38030FCAu: goto L_38030FCA;
   8140       case 0x38030FCDu: goto L_38030FCD;
   8141       case 0x38030FD0u: goto L_38030FD0;
   8142       case 0x38030FD3u: goto L_38030FD3;
   8143       case 0x38030FD5u: goto L_38030FD5;
   8144       case 0x38030FD8u: goto L_38030FD8;
   8145       case 0x38030FDBu: goto L_38030FDB;
   8146       case 0x38030FDDu: goto L_38030FDD;
   8147       case 0x38030FDFu: goto L_38030FDF;
   8148       case 0x38030FE2u: goto L_38030FE2;
   8149       case 0x38030FE4u: goto L_38030FE4;
   8150       case 0x38030FE7u: goto L_38030FE7;
   8151       case 0x38030FEAu: goto L_38030FEA;
   8152       case 0x38030FECu: goto L_38030FEC;
   8153       case 0x38030FEFu: goto L_38030FEF;
   8154       case 0x38030FF2u: goto L_38030FF2;
   8155       case 0x38030FF5u: goto L_38030FF5;
   8156       case 0x38030FF8u: goto L_38030FF8;
   8157       case 0x38030FFBu: goto L_38030FFB;
   8158       case 0x38030FFEu: goto L_38030FFE;
   8159       case 0x38031000u: goto L_38031000;
   8160       case 0x38031003u: goto L_38031003;
   8161       case 0x38031006u: goto L_38031006;
   8162       case 0x38031009u: goto L_38031009;
   8163       case 0x3803100Bu: goto L_3803100B;
   8164       case 0x3803100Du: goto L_3803100D;
   8165       case 0x38031010u: goto L_38031010;
   8166       case 0x38031013u: goto L_38031013;
   8167       case 0x38031019u: goto L_38031019;
   8168       case 0x3803101Bu: goto L_3803101B;
   8169       case 0x38031021u: goto L_38031021;
   8170       case 0x38031024u: goto L_38031024;
   8171       case 0x38031026u: goto L_38031026;
   8172       case 0x38031028u: goto L_38031028;
   8173       case 0x3803102Au: goto L_3803102A;
   8174       case 0x3803102Fu: goto L_3803102F;
   8175       case 0x38031032u: goto L_38031032;
   8176       case 0x38031034u: goto L_38031034;
   8177       case 0x38031036u: goto L_38031036;
   8178       case 0x38031039u: goto L_38031039;
   8179       case 0x3803103Bu: goto L_3803103B;
   8180       case 0x3803103Eu: goto L_3803103E;
   8181       case 0x38031041u: goto L_38031041;
   8182       case 0x38031044u: goto L_38031044;
   8183       case 0x38031046u: goto L_38031046;
   8184       case 0x38031048u: goto L_38031048;
   8185       case 0x3803104Eu: goto L_3803104E;
   8186       case 0x38031050u: goto L_38031050;
   8187       case 0x38031055u: goto L_38031055;
   8188       case 0x38031058u: goto L_38031058;
   8189       case 0x3803105Bu: goto L_3803105B;
   8190       case 0x3803105Du: goto L_3803105D;
   8191       case 0x38031060u: goto L_38031060;
   8192       case 0x38031062u: goto L_38031062;
   8193       case 0x38031065u: goto L_38031065;
   8194       case 0x3803106Bu: goto L_3803106B;
   8195       case 0x3803106Fu: goto L_3803106F;
   8196       case 0x38031070u: goto L_38031070;
   8197       case 0x38031076u: goto L_38031076;
   8198       case 0x38031077u: goto L_38031077;
   8199       case 0x38031078u: goto L_38031078;
   8200       case 0x38031079u: goto L_38031079;
   8201       case 0x3803107Bu: goto L_3803107B;
   8202       case 0x3803107Cu: goto L_3803107C;
   8203       case 0x3803107Du: goto L_3803107D;
   8204       case 0x3803107Eu: goto L_3803107E;
   8205       case 0x38031081u: goto L_38031081;
   8206       case 0x38031086u: goto L_38031086;
   8207       case 0x38031089u: goto L_38031089;
   8208       case 0x3803108Au: goto L_3803108A;
   8209       case 0x3803108Bu: goto L_3803108B;
   8210       case 0x3803108Du: goto L_3803108D;
   8211       case 0x38031092u: goto L_38031092;
   8212       case 0x38031094u: goto L_38031094;
   8213       case 0x38031096u: goto L_38031096;
   8214       case 0x3803109Cu: goto L_3803109C;
   8215       case 0x380310A2u: goto L_380310A2;
   8216       case 0x380310A3u: goto L_380310A3;
   8217       case 0x380310A9u: goto L_380310A9;
   8218       case 0x380310ACu: goto L_380310AC;
   8219       case 0x380310AEu: goto L_380310AE;
   8220       case 0x380310B5u: goto L_380310B5;
   8221       case 0x380310B6u: goto L_380310B6;
   8222       case 0x380310BBu: goto L_380310BB;
   8223       case 0x380310BDu: goto L_380310BD;
   8224       case 0x380310C3u: goto L_380310C3;
   8225       case 0x380310CBu: goto L_380310CB;
   8226       case 0x380310D1u: goto L_380310D1;
   8227       case 0x380310D5u: goto L_380310D5;
   8228       case 0x380310DCu: goto L_380310DC;
   8229       case 0x380310DFu: goto L_380310DF;
   8230       case 0x380310E4u: goto L_380310E4;
   8231       case 0x380310E7u: goto L_380310E7;
   8232       case 0x380310EAu: goto L_380310EA;
   8233       case 0x380310ECu: goto L_380310EC;
   8234       case 0x380310F2u: goto L_380310F2;
   8235       case 0x380310F4u: goto L_380310F4;
   8236       case 0x380310F5u: goto L_380310F5;
   8237       case 0x380310FBu: goto L_380310FB;
   8238       case 0x380310FDu: goto L_380310FD;
   8239       case 0x38031100u: goto L_38031100;
   8240       case 0x38031103u: goto L_38031103;
   8241       case 0x38031106u: goto L_38031106;
   8242       case 0x38031107u: goto L_38031107;
   8243       case 0x3803110Au: goto L_3803110A;
   8244       case 0x38031110u: goto L_38031110;
   8245       case 0x38031113u: goto L_38031113;
   8246       case 0x38031115u: goto L_38031115;
   8247       case 0x3803111Bu: goto L_3803111B;
   8248       case 0x3803111Eu: goto L_3803111E;
   8249       case 0x38031121u: goto L_38031121;
   8250       case 0x38031124u: goto L_38031124;
   8251       case 0x38031127u: goto L_38031127;
   8252       case 0x3803112Au: goto L_3803112A;
   8253       case 0x3803112Du: goto L_3803112D;
   8254       case 0x38031130u: goto L_38031130;
   8255       case 0x38031133u: goto L_38031133;
   8256       case 0x38031136u: goto L_38031136;
   8257       case 0x38031139u: goto L_38031139;
   8258       case 0x3803113Cu: goto L_3803113C;
   8259       case 0x38031142u: goto L_38031142;
   8260       case 0x38031145u: goto L_38031145;
   8261       case 0x38031148u: goto L_38031148;
   8262       case 0x3803114Bu: goto L_3803114B;
   8263       case 0x3803114Eu: goto L_3803114E;
   8264       case 0x38031151u: goto L_38031151;
   8265       case 0x38031154u: goto L_38031154;
   8266       case 0x38031157u: goto L_38031157;
   8267       case 0x38031159u: goto L_38031159;
   8268       case 0x3803115Bu: goto L_3803115B;
   8269       case 0x3803115Eu: goto L_3803115E;
   8270       case 0x38031161u: goto L_38031161;
   8271       case 0x38031164u: goto L_38031164;
   8272       case 0x38031166u: goto L_38031166;
   8273       case 0x38031169u: goto L_38031169;
   8274       case 0x3803116Cu: goto L_3803116C;
   8275       case 0x3803116Fu: goto L_3803116F;
   8276       case 0x38031172u: goto L_38031172;
   8277       case 0x38031175u: goto L_38031175;
   8278       case 0x38031178u: goto L_38031178;
   8279       case 0x3803117Bu: goto L_3803117B;
   8280       case 0x3803117Eu: goto L_3803117E;
   8281       case 0x38031181u: goto L_38031181;
   8282       case 0x38031184u: goto L_38031184;
   8283       case 0x38031186u: goto L_38031186;
   8284       case 0x3803118Du: goto L_3803118D;
   8285       case 0x38031190u: goto L_38031190;
   8286       case 0x38031196u: goto L_38031196;
   8287       case 0x38031199u: goto L_38031199;
   8288       case 0x3803119Cu: goto L_3803119C;
   8289       case 0x380311A2u: goto L_380311A2;
   8290       case 0x380311A5u: goto L_380311A5;
   8291       case 0x380311A7u: goto L_380311A7;
   8292       case 0x380311AAu: goto L_380311AA;
   8293       case 0x380311B0u: goto L_380311B0;
   8294       case 0x380311B3u: goto L_380311B3;
   8295       case 0x380311B6u: goto L_380311B6;
   8296       case 0x380311BCu: goto L_380311BC;
   8297       case 0x380311BEu: goto L_380311BE;
   8298       case 0x380311C1u: goto L_380311C1;
   8299       case 0x380311C7u: goto L_380311C7;
   8300       case 0x380311CAu: goto L_380311CA;
   8301       case 0x380311CDu: goto L_380311CD;
   8302       case 0x380311D3u: goto L_380311D3;
   8303       case 0x380311D6u: goto L_380311D6;
   8304       case 0x380311D8u: goto L_380311D8;
   8305       case 0x380311DBu: goto L_380311DB;
   8306       case 0x380311E1u: goto L_380311E1;
   8307       case 0x380311E4u: goto L_380311E4;
   8308       case 0x380311E7u: goto L_380311E7;
   8309       case 0x380311EDu: goto L_380311ED;
   8310       case 0x380311F0u: goto L_380311F0;
   8311       case 0x380311F3u: goto L_380311F3;
   8312       case 0x380311F5u: goto L_380311F5;
   8313       case 0x380311FBu: goto L_380311FB;
   8314       case 0x38031201u: goto L_38031201;
   8315       case 0x38031207u: goto L_38031207;
   8316       case 0x3803120Du: goto L_3803120D;
   8317       case 0x38031213u: goto L_38031213;
   8318       case 0x38031215u: goto L_38031215;
   8319       case 0x38031218u: goto L_38031218;
   8320       case 0x3803121Au: goto L_3803121A;
   8321       case 0x38031220u: goto L_38031220;
   8322       case 0x38031222u: goto L_38031222;
   8323       case 0x38031225u: goto L_38031225;
   8324       case 0x38031227u: goto L_38031227;
   8325       case 0x3803122Du: goto L_3803122D;
   8326       case 0x3803122Fu: goto L_3803122F;
   8327       case 0x38031235u: goto L_38031235;
   8328       case 0x38031238u: goto L_38031238;
   8329       case 0x3803123Bu: goto L_3803123B;
   8330       case 0x3803123Eu: goto L_3803123E;
   8331       case 0x38031244u: goto L_38031244;
   8332       case 0x38031247u: goto L_38031247;
   8333       case 0x3803124Au: goto L_3803124A;
   8334       case 0x38031250u: goto L_38031250;
   8335       case 0x38031252u: goto L_38031252;
   8336       case 0x38031254u: goto L_38031254;
   8337       case 0x3803125Au: goto L_3803125A;
   8338       case 0x3803125Du: goto L_3803125D;
   8339       case 0x38031260u: goto L_38031260;
   8340       case 0x38031263u: goto L_38031263;
   8341       case 0x38031266u: goto L_38031266;
   8342       case 0x38031269u: goto L_38031269;
   8343       case 0x3803126Bu: goto L_3803126B;
   8344       case 0x3803126Eu: goto L_3803126E;
   8345       case 0x38031271u: goto L_38031271;
   8346       case 0x38031277u: goto L_38031277;
   8347       case 0x3803127Du: goto L_3803127D;
   8348       case 0x38031283u: goto L_38031283;
   8349       case 0x38031285u: goto L_38031285;
   8350       case 0x38031288u: goto L_38031288;
   8351       case 0x3803128Au: goto L_3803128A;
   8352       case 0x38031290u: goto L_38031290;
   8353       case 0x38031292u: goto L_38031292;
   8354       case 0x38031295u: goto L_38031295;
   8355       case 0x38031297u: goto L_38031297;
   8356       case 0x3803129Du: goto L_3803129D;
   8357       case 0x3803129Fu: goto L_3803129F;
   8358       case 0x380312A5u: goto L_380312A5;
   8359       case 0x380312A8u: goto L_380312A8;
   8360       case 0x380312ABu: goto L_380312AB;
   8361       case 0x380312AEu: goto L_380312AE;
   8362       case 0x380312B4u: goto L_380312B4;
   8363       case 0x380312B7u: goto L_380312B7;
   8364       case 0x380312BAu: goto L_380312BA;
   8365       case 0x380312C0u: goto L_380312C0;
   8366       case 0x380312C2u: goto L_380312C2;
   8367       case 0x380312C4u: goto L_380312C4;
   8368       case 0x380312CAu: goto L_380312CA;
   8369       case 0x380312CDu: goto L_380312CD;
   8370       case 0x380312D0u: goto L_380312D0;
   8371       case 0x380312D3u: goto L_380312D3;
   8372       case 0x380312D6u: goto L_380312D6;
   8373       case 0x380312D9u: goto L_380312D9;
   8374       case 0x380312DCu: goto L_380312DC;
   8375       case 0x380312E2u: goto L_380312E2;
   8376       case 0x380312E5u: goto L_380312E5;
   8377       case 0x380312E7u: goto L_380312E7;
   8378       case 0x380312E8u: goto L_380312E8;
   8379       case 0x380312EEu: goto L_380312EE;
   8380       case 0x380312F0u: goto L_380312F0;
   8381       case 0x380312F3u: goto L_380312F3;
   8382       case 0x380312F6u: goto L_380312F6;
   8383       case 0x380312F9u: goto L_380312F9;
   8384       case 0x380312FBu: goto L_380312FB;
   8385       case 0x380312FEu: goto L_380312FE;
   8386       case 0x38031301u: goto L_38031301;
   8387       case 0x38031303u: goto L_38031303;
   8388       case 0x38031306u: goto L_38031306;
   8389       case 0x38031309u: goto L_38031309;
   8390       case 0x3803130Bu: goto L_3803130B;
   8391       case 0x3803130Eu: goto L_3803130E;
   8392       case 0x38031311u: goto L_38031311;
   8393       case 0x38031314u: goto L_38031314;
   8394       case 0x38031317u: goto L_38031317;
   8395       case 0x38031319u: goto L_38031319;
   8396       case 0x3803131Cu: goto L_3803131C;
   8397       case 0x3803131Fu: goto L_3803131F;
   8398       case 0x38031321u: goto L_38031321;
   8399       case 0x38031323u: goto L_38031323;
   8400       case 0x38031326u: goto L_38031326;
   8401       case 0x38031328u: goto L_38031328;
   8402       case 0x3803132Bu: goto L_3803132B;
   8403       case 0x3803132Eu: goto L_3803132E;
   8404       case 0x38031331u: goto L_38031331;
   8405       case 0x38031334u: goto L_38031334;
   8406       case 0x38031337u: goto L_38031337;
   8407       case 0x3803133Au: goto L_3803133A;
   8408       case 0x3803133Cu: goto L_3803133C;
   8409       case 0x3803133Fu: goto L_3803133F;
   8410       case 0x38031342u: goto L_38031342;
   8411       case 0x38031344u: goto L_38031344;
   8412       case 0x38031346u: goto L_38031346;
   8413       case 0x38031349u: goto L_38031349;
   8414       case 0x3803134Bu: goto L_3803134B;
   8415       case 0x3803134Eu: goto L_3803134E;
   8416       case 0x38031351u: goto L_38031351;
   8417       case 0x38031353u: goto L_38031353;
   8418       case 0x38031356u: goto L_38031356;
   8419       case 0x38031359u: goto L_38031359;
   8420       case 0x3803135Cu: goto L_3803135C;
   8421       case 0x3803135Fu: goto L_3803135F;
   8422       case 0x38031362u: goto L_38031362;
   8423       case 0x38031365u: goto L_38031365;
   8424       case 0x38031368u: goto L_38031368;
   8425       case 0x3803136Eu: goto L_3803136E;
   8426       case 0x38031370u: goto L_38031370;
   8427       case 0x38031373u: goto L_38031373;
   8428       case 0x38031376u: goto L_38031376;
   8429       case 0x38031379u: goto L_38031379;
   8430       case 0x3803137Cu: goto L_3803137C;
   8431       case 0x38031382u: goto L_38031382;
   8432       case 0x38031384u: goto L_38031384;
   8433       case 0x38031386u: goto L_38031386;
   8434       case 0x38031389u: goto L_38031389;
   8435       case 0x3803138Cu: goto L_3803138C;
   8436       case 0x38031392u: goto L_38031392;
   8437       case 0x38031394u: goto L_38031394;
   8438       case 0x3803139Au: goto L_3803139A;
   8439       case 0x3803139Du: goto L_3803139D;
   8440       case 0x380313A3u: goto L_380313A3;
   8441       case 0x380313A6u: goto L_380313A6;
   8442       case 0x380313ACu: goto L_380313AC;
   8443       case 0x380313ADu: goto L_380313AD;
   8444       case 0x380313B3u: goto L_380313B3;
   8445       case 0x380313B9u: goto L_380313B9;
   8446       case 0x380313BAu: goto L_380313BA;
   8447       case 0x380313BDu: goto L_380313BD;
   8448       case 0x380313C3u: goto L_380313C3;
   8449       case 0x380313C6u: goto L_380313C6;
   8450       case 0x380313C8u: goto L_380313C8;
   8451       case 0x380313CAu: goto L_380313CA;
   8452       case 0x380313D0u: goto L_380313D0;
   8453       case 0x380313D3u: goto L_380313D3;
   8454       case 0x380313D9u: goto L_380313D9;
   8455       case 0x380313DCu: goto L_380313DC;
   8456       case 0x380313DDu: goto L_380313DD;
   8457       case 0x380313E3u: goto L_380313E3;
   8458       case 0x380313E6u: goto L_380313E6;
   8459       case 0x380313ECu: goto L_380313EC;
   8460       case 0x380313F2u: goto L_380313F2;
   8461       case 0x380313F7u: goto L_380313F7;
   8462       case 0x380313FDu: goto L_380313FD;
   8463       case 0x38031403u: goto L_38031403;
   8464       case 0x38031409u: goto L_38031409;
   8465       case 0x3803140Au: goto L_3803140A;
   8466       case 0x3803140Du: goto L_3803140D;
   8467       case 0x38031413u: goto L_38031413;
   8468       case 0x38031419u: goto L_38031419;
   8469       case 0x3803141Au: goto L_3803141A;
   8470       case 0x3803141Du: goto L_3803141D;
   8471       case 0x38031423u: goto L_38031423;
   8472       case 0x38031426u: goto L_38031426;
   8473       case 0x38031429u: goto L_38031429;
   8474       case 0x3803142Cu: goto L_3803142C;
   8475       case 0x3803142Fu: goto L_3803142F;
   8476       case 0x38031432u: goto L_38031432;
   8477       case 0x38031435u: goto L_38031435;
   8478       case 0x3803143Bu: goto L_3803143B;
   8479       case 0x3803143Eu: goto L_3803143E;
   8480       case 0x38031441u: goto L_38031441;
   8481       case 0x38031444u: goto L_38031444;
   8482       case 0x3803144Au: goto L_3803144A;
   8483       case 0x3803144Bu: goto L_3803144B;
   8484       case 0x38031451u: goto L_38031451;
   8485       case 0x38031454u: goto L_38031454;
   8486       case 0x3803145Au: goto L_3803145A;
   8487       case 0x3803145Du: goto L_3803145D;
   8488       case 0x38031460u: goto L_38031460;
   8489       case 0x38031463u: goto L_38031463;
   8490       case 0x38031469u: goto L_38031469;
   8491       case 0x3803146Bu: goto L_3803146B;
   8492       case 0x38031471u: goto L_38031471;
   8493       case 0x38031474u: goto L_38031474;
   8494       case 0x3803147Au: goto L_3803147A;
   8495       case 0x3803147Du: goto L_3803147D;
   8496       case 0x38031483u: goto L_38031483;
   8497       case 0x38031484u: goto L_38031484;
   8498       case 0x3803148Au: goto L_3803148A;
   8499       case 0x3803148Bu: goto L_3803148B;
   8500       case 0x3803148Eu: goto L_3803148E;
   8501       case 0x38031494u: goto L_38031494;
   8502       case 0x3803149Au: goto L_3803149A;
   8503       case 0x3803149Du: goto L_3803149D;
   8504       case 0x3803149Fu: goto L_3803149F;
   8505       case 0x380314A1u: goto L_380314A1;
   8506       case 0x380314A7u: goto L_380314A7;
   8507       case 0x380314AAu: goto L_380314AA;
   8508       case 0x380314B0u: goto L_380314B0;
   8509       case 0x380314B3u: goto L_380314B3;
   8510       case 0x380314B4u: goto L_380314B4;
   8511       case 0x380314BAu: goto L_380314BA;
   8512       case 0x380314BDu: goto L_380314BD;
   8513       case 0x380314C3u: goto L_380314C3;
   8514       case 0x380314C9u: goto L_380314C9;
   8515       case 0x380314CEu: goto L_380314CE;
   8516       case 0x380314D4u: goto L_380314D4;
   8517       case 0x380314DAu: goto L_380314DA;
   8518       case 0x380314E0u: goto L_380314E0;
   8519       case 0x380314E1u: goto L_380314E1;
   8520       case 0x380314E4u: goto L_380314E4;
   8521       case 0x380314EAu: goto L_380314EA;
   8522       case 0x380314F0u: goto L_380314F0;
   8523       case 0x380314F1u: goto L_380314F1;
   8524       case 0x380314F4u: goto L_380314F4;
   8525       case 0x380314FAu: goto L_380314FA;
   8526       case 0x380314FDu: goto L_380314FD;
   8527       case 0x38031500u: goto L_38031500;
   8528       case 0x38031503u: goto L_38031503;
   8529       case 0x38031508u: goto L_38031508;
   8530       case 0x3803150Bu: goto L_3803150B;
   8531       case 0x38031510u: goto L_38031510;
   8532       case 0x38031513u: goto L_38031513;
   8533       case 0x38031516u: goto L_38031516;
   8534       case 0x38031519u: goto L_38031519;
   8535       case 0x3803151Cu: goto L_3803151C;
   8536       case 0x3803151Fu: goto L_3803151F;
   8537       case 0x38031525u: goto L_38031525;
   8538       case 0x38031527u: goto L_38031527;
   8539       case 0x3803152Du: goto L_3803152D;
   8540       case 0x38031530u: goto L_38031530;
   8541       case 0x38031532u: goto L_38031532;
   8542       case 0x38031534u: goto L_38031534;
   8543       case 0x38031536u: goto L_38031536;
   8544       case 0x3803153Bu: goto L_3803153B;
   8545       case 0x3803153Eu: goto L_3803153E;
   8546       case 0x38031540u: goto L_38031540;
   8547       case 0x38031542u: goto L_38031542;
   8548       case 0x38031545u: goto L_38031545;
   8549       case 0x38031547u: goto L_38031547;
   8550       case 0x3803154Au: goto L_3803154A;
   8551       case 0x3803154Du: goto L_3803154D;
   8552       case 0x38031550u: goto L_38031550;
   8553       case 0x38031552u: goto L_38031552;
   8554       case 0x38031554u: goto L_38031554;
   8555       case 0x3803155Au: goto L_3803155A;
   8556       case 0x3803155Du: goto L_3803155D;
   8557       case 0x38031560u: goto L_38031560;
   8558       case 0x38031561u: goto L_38031561;
   8559       case 0x38031562u: goto L_38031562;
   8560       case 0x38031564u: goto L_38031564;
   8561       case 0x38031569u: goto L_38031569;
   8562       case 0x3803156Cu: goto L_3803156C;
   8563       case 0x3803156Fu: goto L_3803156F;
   8564       case 0x38031572u: goto L_38031572;
   8565       case 0x38031578u: goto L_38031578;
   8566       case 0x3803157Eu: goto L_3803157E;
   8567       case 0x38031584u: goto L_38031584;
   8568       case 0x38031587u: goto L_38031587;
   8569       case 0x38031588u: goto L_38031588;
   8570       case 0x38031589u: goto L_38031589;
   8571       case 0x3803158Bu: goto L_3803158B;
   8572       case 0x38031591u: goto L_38031591;
   8573       case 0x38031596u: goto L_38031596;
   8574       case 0x3803159Cu: goto L_3803159C;
   8575       case 0x3803159Fu: goto L_3803159F;
   8576       case 0x380315A2u: goto L_380315A2;
   8577       case 0x380315A8u: goto L_380315A8;
   8578       case 0x380315AAu: goto L_380315AA;
   8579       case 0x380315ADu: goto L_380315AD;
   8580       case 0x380315B3u: goto L_380315B3;
   8581       case 0x380315B5u: goto L_380315B5;
   8582       case 0x380315BAu: goto L_380315BA;
   8583       case 0x380315BDu: goto L_380315BD;
   8584       case 0x380315C0u: goto L_380315C0;
   8585       case 0x380315C2u: goto L_380315C2;
   8586       case 0x380315C9u: goto L_380315C9;
   8587       case 0x380315CBu: goto L_380315CB;
   8588       case 0x380315CCu: goto L_380315CC;
   8589       case 0x380315CDu: goto L_380315CD;
   8590       case 0x380315CEu: goto L_380315CE;
   8591       case 0x380315CFu: goto L_380315CF;
   8592       case 0x380315D0u: goto L_380315D0;
   8593       case 0x380315D1u: goto L_380315D1;
   8594       case 0x380315D6u: goto L_380315D6;
   8595       case 0x380315DBu: goto L_380315DB;
   8596       case 0x380315DEu: goto L_380315DE;
   8597       case 0x380315DFu: goto L_380315DF;
   8598       case 0x380315E2u: goto L_380315E2;
   8599       case 0x380315E3u: goto L_380315E3;
   8600       case 0x380315E5u: goto L_380315E5;
   8601       case 0x380315EAu: goto L_380315EA;
   8602       case 0x380315ECu: goto L_380315EC;
   8603       case 0x380315EEu: goto L_380315EE;
   8604       case 0x380315F4u: goto L_380315F4;
   8605       case 0x380315FAu: goto L_380315FA;
   8606       case 0x380315FBu: goto L_380315FB;
   8607       case 0x38031601u: goto L_38031601;
   8608       case 0x38031604u: goto L_38031604;
   8609       case 0x38031606u: goto L_38031606;
   8610       case 0x38031607u: goto L_38031607;
   8611       case 0x3803160Eu: goto L_3803160E;
   8612       case 0x38031613u: goto L_38031613;
   8613       case 0x38031616u: goto L_38031616;
   8614       case 0x3803161Cu: goto L_3803161C;
   8615       case 0x3803161Fu: goto L_3803161F;
   8616       case 0x38031622u: goto L_38031622;
   8617       case 0x38031628u: goto L_38031628;
   8618       case 0x3803162Eu: goto L_3803162E;
   8619       case 0x38031631u: goto L_38031631;
   8620       case 0x38031633u: goto L_38031633;
   8621       case 0x38031636u: goto L_38031636;
   8622       case 0x38031638u: goto L_38031638;
   8623       case 0x3803163Au: goto L_3803163A;
   8624       case 0x38031640u: goto L_38031640;
   8625       case 0x38031643u: goto L_38031643;
   8626       case 0x38031646u: goto L_38031646;
   8627       case 0x3803164Cu: goto L_3803164C;
   8628       case 0x3803164Eu: goto L_3803164E;
   8629       case 0x38031651u: goto L_38031651;
   8630       case 0x38031657u: goto L_38031657;
   8631       case 0x38031659u: goto L_38031659;
   8632       case 0x3803165Eu: goto L_3803165E;
   8633       case 0x38031661u: goto L_38031661;
   8634       case 0x38031664u: goto L_38031664;
   8635       case 0x38031666u: goto L_38031666;
   8636       case 0x3803166Du: goto L_3803166D;
   8637       case 0x3803166Fu: goto L_3803166F;
   8638       case 0x38031670u: goto L_38031670;
   8639       case 0x38031671u: goto L_38031671;
   8640       case 0x38031672u: goto L_38031672;
   8641       case 0x38031673u: goto L_38031673;
   8642       case 0x38031674u: goto L_38031674;
   8643       case 0x38031675u: goto L_38031675;
   8644       case 0x3803167Au: goto L_3803167A;
   8645       case 0x3803167Fu: goto L_3803167F;
   8646       case 0x38031682u: goto L_38031682;
   8647       case 0x38031683u: goto L_38031683;
   8648       case 0x38031686u: goto L_38031686;
   8649       case 0x38031687u: goto L_38031687;
   8650       case 0x38031689u: goto L_38031689;
   8651       case 0x3803168Eu: goto L_3803168E;
   8652       case 0x38031690u: goto L_38031690;
   8653       case 0x38031692u: goto L_38031692;
   8654       case 0x38031698u: goto L_38031698;
   8655       case 0x3803169Eu: goto L_3803169E;
   8656       case 0x380316A1u: goto L_380316A1;
   8657       case 0x380316A7u: goto L_380316A7;
   8658       case 0x380316A8u: goto L_380316A8;
   8659       case 0x380316AAu: goto L_380316AA;
   8660       case 0x380316B1u: goto L_380316B1;
   8661       case 0x380316B2u: goto L_380316B2;
   8662       case 0x380316B7u: goto L_380316B7;
   8663       case 0x380316BDu: goto L_380316BD;
   8664       case 0x380316C0u: goto L_380316C0;
   8665       case 0x380316C2u: goto L_380316C2;
   8666       case 0x380316C6u: goto L_380316C6;
   8667       case 0x380316C7u: goto L_380316C7;
   8668       case 0x380316CAu: goto L_380316CA;
   8669       case 0x380316D0u: goto L_380316D0;
   8670       case 0x380316D3u: goto L_380316D3;
   8671       case 0x380316D5u: goto L_380316D5;
   8672       case 0x380316DBu: goto L_380316DB;
   8673       case 0x380316DCu: goto L_380316DC;
   8674       case 0x380316DDu: goto L_380316DD;
   8675       case 0x380316DFu: goto L_380316DF;
   8676       case 0x380316E4u: goto L_380316E4;
   8677       case 0x380316E7u: goto L_380316E7;
   8678       case 0x380316E8u: goto L_380316E8;
   8679       case 0x380316E9u: goto L_380316E9;
   8680       case 0x380316F0u: goto L_380316F0;
   8681       case 0x380316F2u: goto L_380316F2;
   8682       case 0x380316F3u: goto L_380316F3;
   8683       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8684     }
   8685     RECOMP_REGS_OUT();
   8686 }
   8687 
   8688 void sub_38031692(void) {
   8689     int _fpu_cmp = 0;
   8690     uint32_t _cf = 0;
   8691     int _df = 1;
   8692     uint32_t _flag_k = FK_NONE;
   8693     uint32_t _flag_a = 0, _flag_b = 0;
   8694     uint32_t _itail_tgt = 0;
   8695     RECOMP_REGS_LOCALS
   8696     RECOMP_ENTER(0x38031692u);
   8697 
   8698     goto L_38031692;
   8699 L_38030E4E:
   8700     ecx = MEM32(esi + 0x80); /* 0x38030E4E: mov ecx, dword ptr [esi + 0x80] */
   8701 L_38030E54:
   8702     edi = MEM32(ebp + 0xC); /* 0x38030E54: mov edi, dword ptr [ebp + 0xc] */
   8703 L_38030E57:
   8704     eax = ecx + eax * 4; /* 0x38030E57: lea eax, [ecx + eax*4] */
   8705 L_38030E5A:
   8706     ecx = (int32_t)(int16_t)MEM16(eax); /* 0x38030E5A: movsx ecx, word ptr [eax] */
   8707 L_38030E5D:
   8708     /* cmp ecx, edi */ /* 0x38030E5D: cmp ecx, edi */
   8709     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   8710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8711     _flag_k = FK_CMP;
   8712 L_38030E5F:
   8713     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E5F: je 0x380316b7 */
   8714 L_38030E65:
   8715     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x38030E65: cmp ecx, dword ptr [esi + 0xc] */
   8716     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   8717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8718     _flag_k = FK_CMP;
   8719 L_38030E68:
   8720     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E68: je 0x380316b7 */
   8721 L_38030E6E:
   8722     ecx = MEM32(esi + 0xB0); /* 0x38030E6E: mov ecx, dword ptr [esi + 0xb0] */
   8723 L_38030E74:
   8724     /* cmp ecx, ebx */ /* 0x38030E74: cmp ecx, ebx */
   8725     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   8726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8727     _flag_k = FK_CMP;
   8728 L_38030E76:
   8729     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E76: je 0x380316b7 */
   8730 L_38030E7C:
   8731     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x38030E7C: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
   8732     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
   8733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8734     _flag_k = FK_CMP;
   8735 L_38030E84:
   8736     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380310BB; /* 0x38030E84: je 0x380310bb */
   8737 L_38030E8A:
   8738     edx = MEM32(esi + 0x44); /* 0x38030E8A: mov edx, dword ptr [esi + 0x44] */
   8739 L_38030E8D:
   8740     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x38030E8D: mov ax, word ptr [eax + 2] */
   8741 L_38030E91:
   8742     MEM32(ebp + (-0xE4)) = edx; /* 0x38030E91: mov dword ptr [ebp - 0xe4], edx */
   8743 L_38030E97:
   8744     MEM32(ebp + (-0xE0)) = ebx; /* 0x38030E97: mov dword ptr [ebp - 0xe0], ebx */
   8745 L_38030E9D:
   8746     fp_push_i64((int64_t)MEM64(ebp + (-0xE4))); /* 0x38030E9D: fild qword ptr [ebp - 0xe4] */
   8747 L_38030EA3:
   8748     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38030EA3: fmul dword ptr [0x3804eac0] */
   8749 L_38030EA9:
   8750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   8751     eax = eax & 3; /* 0x38030EA9: and eax, 3 */
   8752     _cf = 0;
   8753     _flag_k = FK_TEST;
   8754 L_38030EAC:
   8755     MEM32(ebp + (-0x14)) = eax; /* 0x38030EAC: mov dword ptr [ebp - 0x14], eax */
   8756 L_38030EAF:
   8757     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030EAF: fcom dword ptr [0x3804e8e4] */
   8758 L_38030EB5:
   8759     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EB5: fnstsw ax */
   8760 L_38030EB7:
   8761     /* test HI8(eax), 1 */ /* 0x38030EB7: test ah, 1 */
   8762     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8763     _cf = 0;
   8764     _flag_k = FK_NARROW(FK_TEST, 24);
   8765 L_38030EBA:
   8766     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030ED1; /* 0x38030EBA: jne 0x38030ed1 */
   8767 L_38030EBC:
   8768     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030EBC: fcom qword ptr [0x3804e8f8] */
   8769 L_38030EC2:
   8770     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EC2: fnstsw ax */
   8771 L_38030EC4:
   8772     /* test HI8(eax), 1 */ /* 0x38030EC4: test ah, 1 */
   8773     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8774     _cf = 0;
   8775     _flag_k = FK_NARROW(FK_TEST, 24);
   8776 L_38030EC7:
   8777     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030ED1; /* 0x38030EC7: je 0x38030ed1 */
   8778 L_38030EC9:
   8779     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030EC9: fmul dword ptr [0x3804e8bc] */
   8780 L_38030ECF:
   8781     goto L_38030EF2; /* 0x38030ECF: jmp 0x38030ef2 */
   8782 L_38030ED1:
   8783     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030ED1: fmul dword ptr [0x3804e8f4] */
   8784 L_38030ED7:
   8785     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8787     esp = esp - 8; /* 0x38030ED7: sub esp, 8 */
   8788     _flag_k = FK_CMP;
   8789 L_38030EDA:
   8790     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EDA: fst dword ptr [ebp - 0x10] */
   8791 L_38030EDD:
   8792     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030EDD: fstp qword ptr [esp] */
   8793 L_38030EE0:
   8794     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030EE0: call dword ptr [0x3804e0ac] */
   8795     RECOMP_FLAGS_IN();
   8796 L_38030EE6:
   8797     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030EE6: fsubr dword ptr [ebp - 0x10] */
   8798 L_38030EE9:
   8799     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8800     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8801     esp = esp + 8; /* 0x38030EE9: add esp, 8 */
   8802     _flag_k = FK_ADD;
   8803 L_38030EEC:
   8804     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030EEC: fmul dword ptr [0x3804e8f0] */
   8805 L_38030EF2:
   8806     fp_push(_st[0]); /* 0x38030EF2: fld st(0) */
   8807 L_38030EF4:
   8808     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030EF4: fsin  */
   8809 L_38030EF6:
   8810     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030EF6: fld dword ptr [0x3804e8e4] */
   8811 L_38030EFC:
   8812     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EFC: fst dword ptr [ebp - 0x10] */
   8813 L_38030EFF:
   8814     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38030EFF: fstp dword ptr [ebp - 0x74] */
   8815 L_38030F02:
   8816     eax = MEM32(ebp + (-0x10)); /* 0x38030F02: mov eax, dword ptr [ebp - 0x10] */
   8817 L_38030F05:
   8818     MEM32(ebp + (-0x6C)) = eax; /* 0x38030F05: mov dword ptr [ebp - 0x6c], eax */
   8819 L_38030F08:
   8820     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x38030F08: fstp dword ptr [ebp - 0x70] */
   8821 L_38030F0B:
   8822     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F0B: fcos  */
   8823 L_38030F0D:
   8824     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38030F0D: fstp dword ptr [ebp - 0x68] */
   8825 L_38030F10:
   8826     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38030F10: fild dword ptr [ebp - 0x14] */
   8827 L_38030F13:
   8828     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38030F13: fmul qword ptr [0x3804f6a0] */
   8829 L_38030F19:
   8830     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38030F19: fadd qword ptr [0x3804f698] */
   8831 L_38030F1F:
   8832     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030F1F: fcom dword ptr [0x3804e8e4] */
   8833 L_38030F25:
   8834     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F25: fnstsw ax */
   8835 L_38030F27:
   8836     /* test HI8(eax), 1 */ /* 0x38030F27: test ah, 1 */
   8837     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8838     _cf = 0;
   8839     _flag_k = FK_NARROW(FK_TEST, 24);
   8840 L_38030F2A:
   8841     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030F41; /* 0x38030F2A: jne 0x38030f41 */
   8842 L_38030F2C:
   8843     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030F2C: fcom qword ptr [0x3804e8f8] */
   8844 L_38030F32:
   8845     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F32: fnstsw ax */
   8846 L_38030F34:
   8847     /* test HI8(eax), 1 */ /* 0x38030F34: test ah, 1 */
   8848     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8849     _cf = 0;
   8850     _flag_k = FK_NARROW(FK_TEST, 24);
   8851 L_38030F37:
   8852     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030F41; /* 0x38030F37: je 0x38030f41 */
   8853 L_38030F39:
   8854     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030F39: fmul dword ptr [0x3804e8bc] */
   8855 L_38030F3F:
   8856     goto L_38030F62; /* 0x38030F3F: jmp 0x38030f62 */
   8857 L_38030F41:
   8858     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030F41: fmul dword ptr [0x3804e8f4] */
   8859 L_38030F47:
   8860     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8862     esp = esp - 8; /* 0x38030F47: sub esp, 8 */
   8863     _flag_k = FK_CMP;
   8864 L_38030F4A:
   8865     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030F4A: fst dword ptr [ebp - 0x10] */
   8866 L_38030F4D:
   8867     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030F4D: fstp qword ptr [esp] */
   8868 L_38030F50:
   8869     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030F50: call dword ptr [0x3804e0ac] */
   8870     RECOMP_FLAGS_IN();
   8871 L_38030F56:
   8872     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030F56: fsubr dword ptr [ebp - 0x10] */
   8873 L_38030F59:
   8874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8876     esp = esp + 8; /* 0x38030F59: add esp, 8 */
   8877     _flag_k = FK_ADD;
   8878 L_38030F5C:
   8879     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030F5C: fmul dword ptr [0x3804e8f0] */
   8880 L_38030F62:
   8881     fp_push(_st[0]); /* 0x38030F62: fld st(0) */
   8882 L_38030F64:
   8883     PUSH32(esp, 0x3806CB10u); /* 0x38030F64: push 0x3806cb10 */
   8884 L_38030F69:
   8885     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030F69: fsin  */
   8886 L_38030F6B:
   8887     PUSH32(esp, 0x000F6951u); /* 0x38030F6B: push 0xf6951 */
   8888 L_38030F70:
   8889     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030F70: fld dword ptr [0x3804e8e4] */
   8890 L_38030F76:
   8891     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030F76: fst dword ptr [ebp - 0x14] */
   8892 L_38030F79:
   8893     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38030F79: fstp dword ptr [ebp - 0x64] */
   8894 L_38030F7C:
   8895     ecx = MEM32(ebp + (-0x14)); /* 0x38030F7C: mov ecx, dword ptr [ebp - 0x14] */
   8896 L_38030F7F:
   8897     MEM32(ebp + (-0x5C)) = ecx; /* 0x38030F7F: mov dword ptr [ebp - 0x5c], ecx */
   8898 L_38030F82:
   8899     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x38030F82: fstp dword ptr [ebp - 0x60] */
   8900 L_38030F85:
   8901     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F85: fcos  */
   8902 L_38030F87:
   8903     fp_push(_st[0]); /* 0x38030F87: fld st(0) */
   8904 L_38030F89:
   8905     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030F89: fmul dword ptr [ebp - 0x74] */
   8906 L_38030F8C:
   8907     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030F8C: fld dword ptr [ebp - 0x5c] */
   8908 L_38030F8F:
   8909     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030F8F: fmul dword ptr [ebp - 0x70] */
   8910 L_38030F92:
   8911     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030F92: faddp st(1) */
   8912 L_38030F94:
   8913     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030F94: fld dword ptr [ebp - 0x60] */
   8914 L_38030F97:
   8915     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030F97: fmul dword ptr [ebp - 0x6c] */
   8916 L_38030F9A:
   8917     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030F9A: fsubp st(1) */
   8918 L_38030F9C:
   8919     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x38030F9C: fld dword ptr [ebp - 0x68] */
   8920 L_38030F9F:
   8921     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030F9F: fmul dword ptr [ebp - 0x64] */
   8922 L_38030FA2:
   8923     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FA2: faddp st(1) */
   8924 L_38030FA4:
   8925     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FA4: fld dword ptr [ebp - 0x60] */
   8926 L_38030FA7:
   8927     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FA7: fmul dword ptr [ebp - 0x68] */
   8928 L_38030FAA:
   8929     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FAA: fld dword ptr [ebp - 0x5c] */
   8930 L_38030FAD:
   8931     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FAD: fmul dword ptr [ebp - 0x74] */
   8932 L_38030FB0:
   8933     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FB0: fsubp st(1) */
   8934 L_38030FB2:
   8935     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x38030FB2: fld dword ptr [ebp - 0x6c] */
   8936 L_38030FB5:
   8937     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FB5: fmul dword ptr [ebp - 0x64] */
   8938 L_38030FB8:
   8939     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FB8: faddp st(1) */
   8940 L_38030FBA:
   8941     fp_push(_st[2]); /* 0x38030FBA: fld st(2) */
   8942 L_38030FBC:
   8943     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030FBC: fmul dword ptr [ebp - 0x70] */
   8944 L_38030FBF:
   8945     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FBF: faddp st(1) */
   8946 L_38030FC1:
   8947     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030FC1: fstp dword ptr [ebp - 0x14] */
   8948 L_38030FC4:
   8949     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FC4: fld dword ptr [ebp - 0x60] */
   8950 L_38030FC7:
   8951     edx = MEM32(ebp + (-0x14)); /* 0x38030FC7: mov edx, dword ptr [ebp - 0x14] */
   8952 L_38030FCA:
   8953     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FCA: fmul dword ptr [ebp - 0x74] */
   8954 L_38030FCD:
   8955     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x38030FCD: fld dword ptr [ebp - 0x70] */
   8956 L_38030FD0:
   8957     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FD0: fmul dword ptr [ebp - 0x64] */
   8958 L_38030FD3:
   8959     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FD3: fsubp st(1) */
   8960 L_38030FD5:
   8961     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FD5: fld dword ptr [ebp - 0x5c] */
   8962 L_38030FD8:
   8963     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FD8: fmul dword ptr [ebp - 0x68] */
   8964 L_38030FDB:
   8965     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FDB: faddp st(1) */
   8966 L_38030FDD:
   8967     fp_push(_st[2]); /* 0x38030FDD: fld st(2) */
   8968 L_38030FDF:
   8969     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FDF: fmul dword ptr [ebp - 0x6c] */
   8970 L_38030FE2:
   8971     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FE2: faddp st(1) */
   8972 L_38030FE4:
   8973     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030FE4: fstp dword ptr [ebp - 0x10] */
   8974 L_38030FE7:
   8975     eax = MEM32(ebp + (-0x10)); /* 0x38030FE7: mov eax, dword ptr [ebp - 0x10] */
   8976 L_38030FEA:
   8977     fp_xch(1); /* 0x38030FEA: fxch st(1) */
   8978 L_38030FEC:
   8979     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FEC: fmul dword ptr [ebp - 0x68] */
   8980 L_38030FEF:
   8981     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x38030FEF: fld dword ptr [ebp - 0x64] */
   8982 L_38030FF2:
   8983     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FF2: fmul dword ptr [ebp - 0x74] */
   8984 L_38030FF5:
   8985     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FF5: fld dword ptr [ebp - 0x5c] */
   8986 L_38030FF8:
   8987     MEM32(ebp + (-0x5C)) = eax; /* 0x38030FF8: mov dword ptr [ebp - 0x5c], eax */
   8988 L_38030FFB:
   8989     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FFB: fmul dword ptr [ebp - 0x6c] */
   8990 L_38030FFE:
   8991     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FFE: faddp st(1) */
   8992 L_38031000:
   8993     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38031000: fld dword ptr [ebp - 0x60] */
   8994 L_38031003:
   8995     MEM32(ebp + (-0x60)) = edx; /* 0x38031003: mov dword ptr [ebp - 0x60], edx */
   8996 L_38031006:
   8997     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38031006: fmul dword ptr [ebp - 0x70] */
   8998 L_38031009:
   8999     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031009: faddp st(1) */
   9000 L_3803100B:
   9001     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803100B: fsubp st(1) */
   9002 L_3803100D:
   9003     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3803100D: fstp dword ptr [ebp - 0x58] */
   9004 L_38031010:
   9005     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38031010: fstp dword ptr [ebp - 0x64] */
   9006 L_38031013:
   9007     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x38031013: call dword ptr [0x3804e4b0] */
   9008     RECOMP_FLAGS_IN();
   9009 L_38031019:
   9010     edi = eax; /* 0x38031019: mov edi, eax */
   9011 L_3803101B:
   9012     eax = MEM32(esi + 0x98); /* 0x3803101B: mov eax, dword ptr [esi + 0x98] */
   9013 L_38031021:
   9014     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9016     esp = esp + 8; /* 0x38031021: add esp, 8 */
   9017     _flag_k = FK_ADD;
   9018 L_38031024:
   9019     /* cmp eax, ebx */ /* 0x38031024: cmp eax, ebx */
   9020     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9022     _flag_k = FK_CMP;
   9023 L_38031026:
   9024     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803104E; /* 0x38031026: jne 0x3803104e */
   9025 L_38031028:
   9026     PUSH32(esp, 0x10u); /* 0x38031028: push 0x10 */
   9027 L_3803102A:
   9028     RECOMP_ICALL(0x3804B676u); /* 0x3803102A: call 0x3804b676 */ /* not lifted */
   9029     RECOMP_FLAGS_IN();
   9030 L_3803102F:
   9031     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9032     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9033     esp = esp + 4; /* 0x3803102F: add esp, 4 */
   9034     _flag_k = FK_ADD;
   9035 L_38031032:
   9036     /* cmp eax, ebx */ /* 0x38031032: cmp eax, ebx */
   9037     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9039     _flag_k = FK_CMP;
   9040 L_38031034:
   9041     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031046; /* 0x38031034: je 0x38031046 */
   9042 L_38031036:
   9043     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031036: mov cl, byte ptr [ebp + 0xb] */
   9044 L_38031039:
   9045     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031039: mov byte ptr [eax], cl */
   9046 L_3803103B:
   9047     MEM32(eax + 0x4) = ebx; /* 0x3803103B: mov dword ptr [eax + 4], ebx */
   9048 L_3803103E:
   9049     MEM32(eax + 0x8) = ebx; /* 0x3803103E: mov dword ptr [eax + 8], ebx */
   9050 L_38031041:
   9051     MEM32(eax + 0xC) = ebx; /* 0x38031041: mov dword ptr [eax + 0xc], ebx */
   9052 L_38031044:
   9053     goto L_38031048; /* 0x38031044: jmp 0x38031048 */
   9054 L_38031046:
   9055     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9056     eax = 0; /* 0x38031046: xor eax, eax */
   9057     _cf = 0;
   9058     _flag_k = FK_TEST;
   9059 L_38031048:
   9060     MEM32(esi + 0x98) = eax; /* 0x38031048: mov dword ptr [esi + 0x98], eax */
   9061 L_3803104E:
   9062     PUSH32(esp, 0x58u); /* 0x3803104E: push 0x58 */
   9063 L_38031050:
   9064     RECOMP_ICALL(0x3804B676u); /* 0x38031050: call 0x3804b676 */ /* not lifted */
   9065     RECOMP_FLAGS_IN();
   9066 L_38031055:
   9067     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9068     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9069     esp = esp + 4; /* 0x38031055: add esp, 4 */
   9070     _flag_k = FK_ADD;
   9071 L_38031058:
   9072     MEM32(ebp + (-0x24)) = eax; /* 0x38031058: mov dword ptr [ebp - 0x24], eax */
   9073 L_3803105B:
   9074     /* cmp eax, ebx */ /* 0x3803105B: cmp eax, ebx */
   9075     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9077     _flag_k = FK_CMP;
   9078 L_3803105D:
   9079     MEM32(ebp + (-0x4)) = ebx; /* 0x3803105D: mov dword ptr [ebp - 4], ebx */
   9080 L_38031060:
   9081     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031094; /* 0x38031060: je 0x38031094 */
   9082 L_38031062:
   9083     ecx = MEM32(ebp + (-0x78)); /* 0x38031062: mov ecx, dword ptr [ebp - 0x78] */
   9084 L_38031065:
   9085     edx = MEM32(esi + 0xB0); /* 0x38031065: mov edx, dword ptr [esi + 0xb0] */
   9086 L_3803106B:
   9087     fp_push(*(float*)&MEM32(edx + ecx + 0xC)); /* 0x3803106B: fld dword ptr [edx + ecx + 0xc] */
   9088 L_3803106F:
   9089     PUSH32(esp, ebx); /* 0x3803106F: push ebx */
   9090 L_38031070:
   9091     _st[0] *= (double)*(float*)ADDR(0x3804F694); /* 0x38031070: fmul dword ptr [0x3804f694] */
   9092 L_38031076:
   9093     PUSH32(esp, ebx); /* 0x38031076: push ebx */
   9094 L_38031077:
   9095     PUSH32(esp, ebx); /* 0x38031077: push ebx */
   9096 L_38031078:
   9097     PUSH32(esp, ebx); /* 0x38031078: push ebx */
   9098 L_38031079:
   9099     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   9100     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9101     edx = edx + ecx; /* 0x38031079: add edx, ecx */
   9102     _flag_k = FK_ADD;
   9103 L_3803107B:
   9104     PUSH32(esp, ebx); /* 0x3803107B: push ebx */
   9105 L_3803107C:
   9106     PUSH32(esp, edi); /* 0x3803107C: push edi */
   9107 L_3803107D:
   9108     PUSH32(esp, ecx); /* 0x3803107D: push ecx */
   9109 L_3803107E:
   9110     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3803107E: fstp dword ptr [esp] */
   9111 L_38031081:
   9112     PUSH32(esp, 0x00FFFFFFu); /* 0x38031081: push 0xffffff */
   9113 L_38031086:
   9114     ecx = ebp + (-0x64); /* 0x38031086: lea ecx, [ebp - 0x64] */
   9115 L_38031089:
   9116     PUSH32(esp, ecx); /* 0x38031089: push ecx */
   9117 L_3803108A:
   9118     PUSH32(esp, edx); /* 0x3803108A: push edx */
   9119 L_3803108B:
   9120     ecx = eax; /* 0x3803108B: mov ecx, eax */
   9121 L_3803108D:
   9122     RECOMP_ICALL(0x3800B350u); /* 0x3803108D: call 0x3800b350 */ /* not lifted */
   9123     RECOMP_FLAGS_IN();
   9124 L_38031092:
   9125     goto L_38031096; /* 0x38031092: jmp 0x38031096 */
   9126 L_38031094:
   9127     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9128     eax = 0; /* 0x38031094: xor eax, eax */
   9129     _cf = 0;
   9130     _flag_k = FK_TEST;
   9131 L_38031096:
   9132     ecx = MEM32(esi + 0x98); /* 0x38031096: mov ecx, dword ptr [esi + 0x98] */
   9133 L_3803109C:
   9134     edx = ebp + (-0xB0); /* 0x3803109C: lea edx, [ebp - 0xb0] */
   9135 L_380310A2:
   9136     PUSH32(esp, edx); /* 0x380310A2: push edx */
   9137 L_380310A3:
   9138     MEM32(ebp + (-0xB0)) = eax; /* 0x380310A3: mov dword ptr [ebp - 0xb0], eax */
   9139 L_380310A9:
   9140     eax = MEM32(ecx + 0x8); /* 0x380310A9: mov eax, dword ptr [ecx + 8] */
   9141 L_380310AC:
   9142     PUSH32(esp, 1); /* 0x380310AC: push 1 */
   9143 L_380310AE:
   9144     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380310AE: mov dword ptr [ebp - 4], 0xffffffff */
   9145 L_380310B5:
   9146     PUSH32(esp, eax); /* 0x380310B5: push eax */
   9147 L_380310B6:
   9148     goto L_380316B2; /* 0x380310B6: jmp 0x380316b2 */
   9149 L_380310BB:
   9150     /* cmp ecx, ebx */ /* 0x380310BB: cmp ecx, ebx */
   9151     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9153     _flag_k = FK_CMP;
   9154 L_380310BD:
   9155     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x380310BD: je 0x380316b7 */
   9156 L_380310C3:
   9157     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x380310C3: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
   9158     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
   9159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9160     _flag_k = FK_CMP;
   9161 L_380310CB:
   9162     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_380316B7; /* 0x380310CB: jne 0x380316b7 */
   9163 L_380310D1:
   9164     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x380310D1: mov ax, word ptr [eax + 2] */
   9165 L_380310D5:
   9166     MEM32(ebp + (-0x1C)) = 0; /* 0x380310D5: mov dword ptr [ebp - 0x1c], 0 */
   9167 L_380310DC:
   9168     MEM32(ebp + (-0x10)) = eax; /* 0x380310DC: mov dword ptr [ebp - 0x10], eax */
   9169 L_380310DF:
   9170     if (2u) _cf = (((MEM16(ebp + (-0x10))) >> 1) & 1u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
   9171     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x10)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9172     MEM16(ebp + (-0x10)) = (uint16_t)(MEM16(ebp + (-0x10)) >> 2u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
   9173 L_380310E4:
   9174     ecx = MEM32(ebp + (-0x10)); /* 0x380310E4: mov ecx, dword ptr [ebp - 0x10] */
   9175 L_380310E7:
   9176     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   9177     eax = eax & 3; /* 0x380310E7: and eax, 3 */
   9178     _cf = 0;
   9179     _flag_k = FK_TEST;
   9180 L_380310EA:
   9181     edi = eax; /* 0x380310EA: mov edi, eax */
   9182 L_380310EC:
   9183     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
   9184     ecx = ecx & 0xFFFFu; /* 0x380310EC: and ecx, 0xffff */
   9185     _cf = 0;
   9186     _flag_k = FK_TEST;
   9187 L_380310F2:
   9188     eax = ecx; /* 0x380310F2: mov eax, ecx */
   9189 L_380310F4:
   9190     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x380310F4: cdq  */
   9191 L_380310F5:
   9192     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x380310F5: idiv dword ptr [ebp - 0x88] */
   9193       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   9194       else { eax = 0; edx = 0; } }
   9195 L_380310FB:
   9196     eax = ecx; /* 0x380310FB: mov eax, ecx */
   9197 L_380310FD:
   9198     ecx = esi + 0x6C; /* 0x380310FD: lea ecx, [esi + 0x6c] */
   9199 L_38031100:
   9200     MEM32(ebp + (-0x24)) = edi; /* 0x38031100: mov dword ptr [ebp - 0x24], edi */
   9201 L_38031103:
   9202     MEM32(ebp + (-0x14)) = edx; /* 0x38031103: mov dword ptr [ebp - 0x14], edx */
   9203 L_38031106:
   9204     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031106: cdq  */
   9205 L_38031107:
   9206     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38031107: fild dword ptr [ebp - 0x14] */
   9207 L_3803110A:
   9208     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x3803110A: idiv dword ptr [ebp - 0x88] */
   9209       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   9210       else { eax = 0; edx = 0; } }
   9211 L_38031110:
   9212     /* cmp edi, 3 */ /* 0x38031110: cmp edi, 3 */
   9213     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   9214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9215     _flag_k = FK_CMP;
   9216 L_38031113:
   9217     edx = MEM32(ecx); /* 0x38031113: mov edx, dword ptr [ecx] */
   9218 L_38031115:
   9219     MEM32(ebp + (-0x84)) = edx; /* 0x38031115: mov dword ptr [ebp - 0x84], edx */
   9220 L_3803111B:
   9221     MEM32(ebp + (-0x10)) = eax; /* 0x3803111B: mov dword ptr [ebp - 0x10], eax */
   9222 L_3803111E:
   9223     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3803111E: fild dword ptr [ebp - 0x10] */
   9224 L_38031121:
   9225     eax = MEM32(ecx + 0x4); /* 0x38031121: mov eax, dword ptr [ecx + 4] */
   9226 L_38031124:
   9227     ecx = MEM32(ecx + 0x8); /* 0x38031124: mov ecx, dword ptr [ecx + 8] */
   9228 L_38031127:
   9229     MEM32(ebp + (-0x80)) = eax; /* 0x38031127: mov dword ptr [ebp - 0x80], eax */
   9230 L_3803112A:
   9231     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803112A: fstp dword ptr [ebp - 0x18] */
   9232 L_3803112D:
   9233     MEM32(ebp + (-0x7C)) = ecx; /* 0x3803112D: mov dword ptr [ebp - 0x7c], ecx */
   9234 L_38031130:
   9235     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031130: fmul dword ptr [ebp - 0x44] */
   9236 L_38031133:
   9237     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031133: fld dword ptr [ebp - 0x18] */
   9238 L_38031136:
   9239     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031136: fmul dword ptr [ebp - 0x44] */
   9240 L_38031139:
   9241     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031139: fstp dword ptr [ebp - 0x18] */
   9242 L_3803113C:
   9243     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x3803113C: fld dword ptr [ebp - 0x84] */
   9244 L_38031142:
   9245     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031142: fmul dword ptr [ebp - 0x44] */
   9246 L_38031145:
   9247     fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x38031145: fld dword ptr [ebp - 0x80] */
   9248 L_38031148:
   9249     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031148: fmul dword ptr [ebp - 0x44] */
   9250 L_3803114B:
   9251     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803114B: fstp dword ptr [ebp - 0x80] */
   9252 L_3803114E:
   9253     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3803114E: fld dword ptr [ebp - 0x7c] */
   9254 L_38031151:
   9255     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031151: fmul dword ptr [ebp - 0x44] */
   9256 L_38031154:
   9257     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38031154: fstp dword ptr [ebp - 0x7c] */
   9258 L_38031157:
   9259     fp_xch(1); /* 0x38031157: fxch st(1) */
   9260 L_38031159:
   9261     _st[0] -= _st[1]; /* 0x38031159: fsub st(1) */
   9262 L_3803115B:
   9263     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3803115B: fstp dword ptr [ebp - 0x20] */
   9264 L_3803115E:
   9265     edx = MEM32(ebp + (-0x20)); /* 0x3803115E: mov edx, dword ptr [ebp - 0x20] */
   9266 L_38031161:
   9267     MEM32(ebp + (-0x30)) = edx; /* 0x38031161: mov dword ptr [ebp - 0x30], edx */
   9268 L_38031164:
   9269     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031164: fstp st(0) */
   9270 L_38031166:
   9271     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38031166: fld dword ptr [ebp - 0x1c] */
   9272 L_38031169:
   9273     _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x38031169: fsub dword ptr [ebp - 0x80] */
   9274 L_3803116C:
   9275     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803116C: fstp dword ptr [ebp - 0x1c] */
   9276 L_3803116F:
   9277     eax = MEM32(ebp + (-0x1C)); /* 0x3803116F: mov eax, dword ptr [ebp - 0x1c] */
   9278 L_38031172:
   9279     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031172: fld dword ptr [ebp - 0x18] */
   9280 L_38031175:
   9281     MEM32(ebp + (-0x2C)) = eax; /* 0x38031175: mov dword ptr [ebp - 0x2c], eax */
   9282 L_38031178:
   9283     _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x38031178: fsub dword ptr [ebp - 0x7c] */
   9284 L_3803117B:
   9285     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803117B: fstp dword ptr [ebp - 0x18] */
   9286 L_3803117E:
   9287     ecx = MEM32(ebp + (-0x18)); /* 0x3803117E: mov ecx, dword ptr [ebp - 0x18] */
   9288 L_38031181:
   9289     MEM32(ebp + (-0x28)) = ecx; /* 0x38031181: mov dword ptr [ebp - 0x28], ecx */
   9290 L_38031184:
   9291     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_380311F0; /* 0x38031184: ja 0x380311f0 */
   9292 L_38031186:
   9293     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x380316F8)); goto _ljump; }
   9294 L_3803118D:
   9295     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803118D: fld dword ptr [ebp - 0x18] */
   9296 L_38031190:
   9297     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031190: fadd dword ptr [0x3804f690] */
   9298 L_38031196:
   9299     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031196: fstp dword ptr [ebp - 0x18] */
   9300 L_38031199:
   9301     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031199: fld dword ptr [ebp - 0x28] */
   9302 L_3803119C:
   9303     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x3803119C: fadd dword ptr [0x3804f68c] */
   9304 L_380311A2:
   9305     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311A2: fstp dword ptr [ebp - 0x28] */
   9306 L_380311A5:
   9307     goto L_380311F0; /* 0x380311A5: jmp 0x380311f0 */
   9308 L_380311A7:
   9309     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311A7: fld dword ptr [ebp - 0x20] */
   9310 L_380311AA:
   9311     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380311AA: fadd dword ptr [0x3804f690] */
   9312 L_380311B0:
   9313     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311B0: fstp dword ptr [ebp - 0x20] */
   9314 L_380311B3:
   9315     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311B3: fld dword ptr [ebp - 0x30] */
   9316 L_380311B6:
   9317     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x380311B6: fadd dword ptr [0x3804f68c] */
   9318 L_380311BC:
   9319     goto L_380311ED; /* 0x380311BC: jmp 0x380311ed */
   9320 L_380311BE:
   9321     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380311BE: fld dword ptr [ebp - 0x18] */
   9322 L_380311C1:
   9323     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311C1: fsub dword ptr [0x3804f690] */
   9324 L_380311C7:
   9325     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380311C7: fstp dword ptr [ebp - 0x18] */
   9326 L_380311CA:
   9327     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380311CA: fld dword ptr [ebp - 0x28] */
   9328 L_380311CD:
   9329     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311CD: fsub dword ptr [0x3804f68c] */
   9330 L_380311D3:
   9331     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311D3: fstp dword ptr [ebp - 0x28] */
   9332 L_380311D6:
   9333     goto L_380311F0; /* 0x380311D6: jmp 0x380311f0 */
   9334 L_380311D8:
   9335     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311D8: fld dword ptr [ebp - 0x20] */
   9336 L_380311DB:
   9337     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311DB: fsub dword ptr [0x3804f690] */
   9338 L_380311E1:
   9339     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311E1: fstp dword ptr [ebp - 0x20] */
   9340 L_380311E4:
   9341     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311E4: fld dword ptr [ebp - 0x30] */
   9342 L_380311E7:
   9343     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311E7: fsub dword ptr [0x3804f68c] */
   9344 L_380311ED:
   9345     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380311ED: fstp dword ptr [ebp - 0x30] */
   9346 L_380311F0:
   9347     edx = MEM32(esi + 0x44); /* 0x380311F0: mov edx, dword ptr [esi + 0x44] */
   9348 L_380311F3:
   9349     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9350     ebx = 0; /* 0x380311F3: xor ebx, ebx */
   9351     _cf = 0;
   9352     _flag_k = FK_TEST;
   9353 L_380311F5:
   9354     MEM32(ebp + (-0xDC)) = edx; /* 0x380311F5: mov dword ptr [ebp - 0xdc], edx */
   9355 L_380311FB:
   9356     MEM32(ebp + (-0xD8)) = ebx; /* 0x380311FB: mov dword ptr [ebp - 0xd8], ebx */
   9357 L_38031201:
   9358     fp_push_i64((int64_t)MEM64(ebp + (-0xDC))); /* 0x38031201: fild qword ptr [ebp - 0xdc] */
   9359 L_38031207:
   9360     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031207: fmul dword ptr [0x3804eac0] */
   9361 L_3803120D:
   9362     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803120D: fcom dword ptr [0x3804e8e4] */
   9363 L_38031213:
   9364     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031213: fnstsw ax */
   9365 L_38031215:
   9366     /* test HI8(eax), 1 */ /* 0x38031215: test ah, 1 */
   9367     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9368     _cf = 0;
   9369     _flag_k = FK_NARROW(FK_TEST, 24);
   9370 L_38031218:
   9371     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803122F; /* 0x38031218: jne 0x3803122f */
   9372 L_3803121A:
   9373     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803121A: fcom qword ptr [0x3804e8f8] */
   9374 L_38031220:
   9375     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031220: fnstsw ax */
   9376 L_38031222:
   9377     /* test HI8(eax), 1 */ /* 0x38031222: test ah, 1 */
   9378     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9379     _cf = 0;
   9380     _flag_k = FK_NARROW(FK_TEST, 24);
   9381 L_38031225:
   9382     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803122F; /* 0x38031225: je 0x3803122f */
   9383 L_38031227:
   9384     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031227: fmul dword ptr [0x3804e8bc] */
   9385 L_3803122D:
   9386     goto L_38031250; /* 0x3803122D: jmp 0x38031250 */
   9387 L_3803122F:
   9388     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803122F: fmul dword ptr [0x3804e8f4] */
   9389 L_38031235:
   9390     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9392     esp = esp - 8; /* 0x38031235: sub esp, 8 */
   9393     _flag_k = FK_CMP;
   9394 L_38031238:
   9395     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031238: fst dword ptr [ebp - 0x10] */
   9396 L_3803123B:
   9397     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3803123B: fstp qword ptr [esp] */
   9398 L_3803123E:
   9399     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3803123E: call dword ptr [0x3804e0ac] */
   9400     RECOMP_FLAGS_IN();
   9401 L_38031244:
   9402     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38031244: fsubr dword ptr [ebp - 0x10] */
   9403 L_38031247:
   9404     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9405     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9406     esp = esp + 8; /* 0x38031247: add esp, 8 */
   9407     _flag_k = FK_ADD;
   9408 L_3803124A:
   9409     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3803124A: fmul dword ptr [0x3804e8f0] */
   9410 L_38031250:
   9411     fp_push(_st[0]); /* 0x38031250: fld st(0) */
   9412 L_38031252:
   9413     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031252: fsin  */
   9414 L_38031254:
   9415     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031254: fld dword ptr [0x3804e8e4] */
   9416 L_3803125A:
   9417     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803125A: fst dword ptr [ebp - 0x14] */
   9418 L_3803125D:
   9419     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3803125D: fstp dword ptr [ebp - 0x40] */
   9420 L_38031260:
   9421     eax = MEM32(ebp + (-0x14)); /* 0x38031260: mov eax, dword ptr [ebp - 0x14] */
   9422 L_38031263:
   9423     MEM32(ebp + (-0x38)) = eax; /* 0x38031263: mov dword ptr [ebp - 0x38], eax */
   9424 L_38031266:
   9425     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x38031266: fstp dword ptr [ebp - 0x3c] */
   9426 L_38031269:
   9427     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031269: fcos  */
   9428 L_3803126B:
   9429     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3803126B: fstp dword ptr [ebp - 0x34] */
   9430 L_3803126E:
   9431     fp_push((double)(int32_t)MEM32(ebp + (-0x24))); /* 0x3803126E: fild dword ptr [ebp - 0x24] */
   9432 L_38031271:
   9433     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38031271: fmul qword ptr [0x3804f6a0] */
   9434 L_38031277:
   9435     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38031277: fadd qword ptr [0x3804f698] */
   9436 L_3803127D:
   9437     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803127D: fcom dword ptr [0x3804e8e4] */
   9438 L_38031283:
   9439     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031283: fnstsw ax */
   9440 L_38031285:
   9441     /* test HI8(eax), 1 */ /* 0x38031285: test ah, 1 */
   9442     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9443     _cf = 0;
   9444     _flag_k = FK_NARROW(FK_TEST, 24);
   9445 L_38031288:
   9446     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803129F; /* 0x38031288: jne 0x3803129f */
   9447 L_3803128A:
   9448     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803128A: fcom qword ptr [0x3804e8f8] */
   9449 L_38031290:
   9450     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031290: fnstsw ax */
   9451 L_38031292:
   9452     /* test HI8(eax), 1 */ /* 0x38031292: test ah, 1 */
   9453     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9454     _cf = 0;
   9455     _flag_k = FK_NARROW(FK_TEST, 24);
   9456 L_38031295:
   9457     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803129F; /* 0x38031295: je 0x3803129f */
   9458 L_38031297:
   9459     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031297: fmul dword ptr [0x3804e8bc] */
   9460 L_3803129D:
   9461     goto L_380312C0; /* 0x3803129D: jmp 0x380312c0 */
   9462 L_3803129F:
   9463     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803129F: fmul dword ptr [0x3804e8f4] */
   9464 L_380312A5:
   9465     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9467     esp = esp - 8; /* 0x380312A5: sub esp, 8 */
   9468     _flag_k = FK_CMP;
   9469 L_380312A8:
   9470     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380312A8: fst dword ptr [ebp - 0x10] */
   9471 L_380312AB:
   9472     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380312AB: fstp qword ptr [esp] */
   9473 L_380312AE:
   9474     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380312AE: call dword ptr [0x3804e0ac] */
   9475     RECOMP_FLAGS_IN();
   9476 L_380312B4:
   9477     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x380312B4: fsubr dword ptr [ebp - 0x10] */
   9478 L_380312B7:
   9479     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9481     esp = esp + 8; /* 0x380312B7: add esp, 8 */
   9482     _flag_k = FK_ADD;
   9483 L_380312BA:
   9484     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x380312BA: fmul dword ptr [0x3804e8f0] */
   9485 L_380312C0:
   9486     fp_push(_st[0]); /* 0x380312C0: fld st(0) */
   9487 L_380312C2:
   9488     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380312C2: fsin  */
   9489 L_380312C4:
   9490     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380312C4: fld dword ptr [0x3804e8e4] */
   9491 L_380312CA:
   9492     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380312CA: fst dword ptr [ebp - 0x24] */
   9493 L_380312CD:
   9494     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x380312CD: fstp dword ptr [ebp - 0x54] */
   9495 L_380312D0:
   9496     ecx = MEM32(ebp + (-0x24)); /* 0x380312D0: mov ecx, dword ptr [ebp - 0x24] */
   9497 L_380312D3:
   9498     MEM32(ebp + (-0x4C)) = ecx; /* 0x380312D3: mov dword ptr [ebp - 0x4c], ecx */
   9499 L_380312D6:
   9500     ecx = MEM32(ebp + (-0x40)); /* 0x380312D6: mov ecx, dword ptr [ebp - 0x40] */
   9501 L_380312D9:
   9502     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x380312D9: fstp dword ptr [ebp - 0x50] */
   9503 L_380312DC:
   9504     MEM32(ebp + (-0xFC)) = ecx; /* 0x380312DC: mov dword ptr [ebp - 0xfc], ecx */
   9505 L_380312E2:
   9506     ecx = ebp + (-0x20); /* 0x380312E2: lea ecx, [ebp - 0x20] */
   9507 L_380312E5:
   9508     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380312E5: fcos  */
   9509 L_380312E7:
   9510     PUSH32(esp, ecx); /* 0x380312E7: push ecx */
   9511 L_380312E8:
   9512     ecx = ebp + (-0xFC); /* 0x380312E8: lea ecx, [ebp - 0xfc] */
   9513 L_380312EE:
   9514     fp_push(_st[0]); /* 0x380312EE: fld st(0) */
   9515 L_380312F0:
   9516     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x380312F0: fmul dword ptr [ebp - 0x40] */
   9517 L_380312F3:
   9518     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x380312F3: fld dword ptr [ebp - 0x4c] */
   9519 L_380312F6:
   9520     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x380312F6: fmul dword ptr [ebp - 0x3c] */
   9521 L_380312F9:
   9522     { double _v = fp_pop(); _st[0] += _v; } /* 0x380312F9: faddp st(1) */
   9523 L_380312FB:
   9524     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x380312FB: fld dword ptr [ebp - 0x50] */
   9525 L_380312FE:
   9526     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x380312FE: fmul dword ptr [ebp - 0x38] */
   9527 L_38031301:
   9528     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031301: fsubp st(1) */
   9529 L_38031303:
   9530     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031303: fld dword ptr [ebp - 0x34] */
   9531 L_38031306:
   9532     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031306: fmul dword ptr [ebp - 0x54] */
   9533 L_38031309:
   9534     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031309: faddp st(1) */
   9535 L_3803130B:
   9536     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803130B: fld dword ptr [ebp - 0x50] */
   9537 L_3803130E:
   9538     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803130E: fmul dword ptr [ebp - 0x34] */
   9539 L_38031311:
   9540     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38031311: fld dword ptr [ebp - 0x4c] */
   9541 L_38031314:
   9542     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031314: fmul dword ptr [ebp - 0x40] */
   9543 L_38031317:
   9544     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031317: fsubp st(1) */
   9545 L_38031319:
   9546     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38031319: fld dword ptr [ebp - 0x38] */
   9547 L_3803131C:
   9548     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3803131C: fmul dword ptr [ebp - 0x54] */
   9549 L_3803131F:
   9550     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803131F: faddp st(1) */
   9551 L_38031321:
   9552     fp_push(_st[2]); /* 0x38031321: fld st(2) */
   9553 L_38031323:
   9554     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031323: fmul dword ptr [ebp - 0x3c] */
   9555 L_38031326:
   9556     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031326: faddp st(1) */
   9557 L_38031328:
   9558     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38031328: fstp dword ptr [ebp - 0x24] */
   9559 L_3803132B:
   9560     edx = MEM32(ebp + (-0x24)); /* 0x3803132B: mov edx, dword ptr [ebp - 0x24] */
   9561 L_3803132E:
   9562     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803132E: fld dword ptr [ebp - 0x50] */
   9563 L_38031331:
   9564     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031331: fmul dword ptr [ebp - 0x40] */
   9565 L_38031334:
   9566     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x38031334: fld dword ptr [ebp - 0x3c] */
   9567 L_38031337:
   9568     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031337: fmul dword ptr [ebp - 0x54] */
   9569 L_3803133A:
   9570     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803133A: fsubp st(1) */
   9571 L_3803133C:
   9572     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803133C: fld dword ptr [ebp - 0x4c] */
   9573 L_3803133F:
   9574     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803133F: fmul dword ptr [ebp - 0x34] */
   9575 L_38031342:
   9576     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031342: faddp st(1) */
   9577 L_38031344:
   9578     fp_push(_st[2]); /* 0x38031344: fld st(2) */
   9579 L_38031346:
   9580     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031346: fmul dword ptr [ebp - 0x38] */
   9581 L_38031349:
   9582     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031349: faddp st(1) */
   9583 L_3803134B:
   9584     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803134B: fstp dword ptr [ebp - 0x14] */
   9585 L_3803134E:
   9586     eax = MEM32(ebp + (-0x14)); /* 0x3803134E: mov eax, dword ptr [ebp - 0x14] */
   9587 L_38031351:
   9588     fp_xch(1); /* 0x38031351: fxch st(1) */
   9589 L_38031353:
   9590     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x38031353: fmul dword ptr [ebp - 0x34] */
   9591 L_38031356:
   9592     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x38031356: fld dword ptr [ebp - 0x54] */
   9593 L_38031359:
   9594     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031359: fmul dword ptr [ebp - 0x40] */
   9595 L_3803135C:
   9596     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803135C: fld dword ptr [ebp - 0x4c] */
   9597 L_3803135F:
   9598     MEM32(ebp + (-0x4C)) = eax; /* 0x3803135F: mov dword ptr [ebp - 0x4c], eax */
   9599 L_38031362:
   9600     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031362: fmul dword ptr [ebp - 0x38] */
   9601 L_38031365:
   9602     eax = MEM32(ebp + (-0x38)); /* 0x38031365: mov eax, dword ptr [ebp - 0x38] */
   9603 L_38031368:
   9604     MEM32(ebp + (-0xF4)) = eax; /* 0x38031368: mov dword ptr [ebp - 0xf4], eax */
   9605 L_3803136E:
   9606     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803136E: faddp st(1) */
   9607 L_38031370:
   9608     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38031370: fld dword ptr [ebp - 0x50] */
   9609 L_38031373:
   9610     MEM32(ebp + (-0x50)) = edx; /* 0x38031373: mov dword ptr [ebp - 0x50], edx */
   9611 L_38031376:
   9612     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031376: fmul dword ptr [ebp - 0x3c] */
   9613 L_38031379:
   9614     edx = MEM32(ebp + (-0x3C)); /* 0x38031379: mov edx, dword ptr [ebp - 0x3c] */
   9615 L_3803137C:
   9616     MEM32(ebp + (-0xF8)) = edx; /* 0x3803137C: mov dword ptr [ebp - 0xf8], edx */
   9617 L_38031382:
   9618     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031382: faddp st(1) */
   9619 L_38031384:
   9620     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031384: fsubp st(1) */
   9621 L_38031386:
   9622     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x38031386: fstp dword ptr [ebp - 0x48] */
   9623 L_38031389:
   9624     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x38031389: fstp dword ptr [ebp - 0x54] */
   9625 L_3803138C:
   9626     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3803138C: call dword ptr [0x3804e4c8] */
   9627     RECOMP_FLAGS_IN();
   9628 L_38031392:
   9629     edx = MEM32(eax); /* 0x38031392: mov edx, dword ptr [eax] */
   9630 L_38031394:
   9631     MEM32(ebp + (-0xA8)) = edx; /* 0x38031394: mov dword ptr [ebp - 0xa8], edx */
   9632 L_3803139A:
   9633     ecx = MEM32(eax + 0x4); /* 0x3803139A: mov ecx, dword ptr [eax + 4] */
   9634 L_3803139D:
   9635     MEM32(ebp + (-0xA4)) = ecx; /* 0x3803139D: mov dword ptr [ebp - 0xa4], ecx */
   9636 L_380313A3:
   9637     edx = MEM32(eax + 0x8); /* 0x380313A3: mov edx, dword ptr [eax + 8] */
   9638 L_380313A6:
   9639     eax = ebp + (-0xA8); /* 0x380313A6: lea eax, [ebp - 0xa8] */
   9640 L_380313AC:
   9641     PUSH32(esp, eax); /* 0x380313AC: push eax */
   9642 L_380313AD:
   9643     ecx = ebp + (-0x114); /* 0x380313AD: lea ecx, [ebp - 0x114] */
   9644 L_380313B3:
   9645     MEM32(ebp + (-0xA0)) = edx; /* 0x380313B3: mov dword ptr [ebp - 0xa0], edx */
   9646 L_380313B9:
   9647     PUSH32(esp, ecx); /* 0x380313B9: push ecx */
   9648 L_380313BA:
   9649     ecx = ebp + (-0x40); /* 0x380313BA: lea ecx, [ebp - 0x40] */
   9650 L_380313BD:
   9651     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380313BD: call dword ptr [0x3804e4fc] */
   9652     RECOMP_FLAGS_IN();
   9653 L_380313C3:
   9654     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x380313C3: fld dword ptr [ebp - 0x34] */
   9655 L_380313C6:
   9656     edx = MEM32(eax); /* 0x380313C6: mov edx, dword ptr [eax] */
   9657 L_380313C8:
   9658     _st[0] += _st[0]; /* 0x380313C8: fadd st(0), st(0) */
   9659 L_380313CA:
   9660     MEM32(ebp + (-0xD4)) = edx; /* 0x380313CA: mov dword ptr [ebp - 0xd4], edx */
   9661 L_380313D0:
   9662     ecx = MEM32(eax + 0x4); /* 0x380313D0: mov ecx, dword ptr [eax + 4] */
   9663 L_380313D3:
   9664     MEM32(ebp + (-0xD0)) = ecx; /* 0x380313D3: mov dword ptr [ebp - 0xd0], ecx */
   9665 L_380313D9:
   9666     edx = MEM32(eax + 0x8); /* 0x380313D9: mov edx, dword ptr [eax + 8] */
   9667 L_380313DC:
   9668     PUSH32(esp, ecx); /* 0x380313DC: push ecx */
   9669 L_380313DD:
   9670     ecx = ebp + (-0xA8); /* 0x380313DD: lea ecx, [ebp - 0xa8] */
   9671 L_380313E3:
   9672     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380313E3: fstp dword ptr [esp] */
   9673 L_380313E6:
   9674     MEM32(ebp + (-0xCC)) = edx; /* 0x380313E6: mov dword ptr [ebp - 0xcc], edx */
   9675 L_380313EC:
   9676     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313EC: call dword ptr [0x3804e4d4] */
   9677     RECOMP_FLAGS_IN();
   9678 L_380313F2:
   9679     PUSH32(esp, 0x40000000u); /* 0x380313F2: push 0x40000000 */
   9680 L_380313F7:
   9681     ecx = ebp + (-0xD4); /* 0x380313F7: lea ecx, [ebp - 0xd4] */
   9682 L_380313FD:
   9683     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313FD: call dword ptr [0x3804e4d4] */
   9684     RECOMP_FLAGS_IN();
   9685 L_38031403:
   9686     eax = ebp + (-0xA8); /* 0x38031403: lea eax, [ebp - 0xa8] */
   9687 L_38031409:
   9688     PUSH32(esp, eax); /* 0x38031409: push eax */
   9689 L_3803140A:
   9690     ecx = ebp + (-0x20); /* 0x3803140A: lea ecx, [ebp - 0x20] */
   9691 L_3803140D:
   9692     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803140D: call dword ptr [0x3804e4e8] */
   9693     RECOMP_FLAGS_IN();
   9694 L_38031413:
   9695     ecx = ebp + (-0xD4); /* 0x38031413: lea ecx, [ebp - 0xd4] */
   9696 L_38031419:
   9697     PUSH32(esp, ecx); /* 0x38031419: push ecx */
   9698 L_3803141A:
   9699     ecx = ebp + (-0x20); /* 0x3803141A: lea ecx, [ebp - 0x20] */
   9700 L_3803141D:
   9701     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803141D: call dword ptr [0x3804e4e8] */
   9702     RECOMP_FLAGS_IN();
   9703 L_38031423:
   9704     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031423: fld dword ptr [ebp - 0x20] */
   9705 L_38031426:
   9706     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x38031426: fadd dword ptr [esi + 0x54] */
   9707 L_38031429:
   9708     edx = MEM32(ebp + (-0x40)); /* 0x38031429: mov edx, dword ptr [ebp - 0x40] */
   9709 L_3803142C:
   9710     ecx = MEM32(ebp + (-0x38)); /* 0x3803142C: mov ecx, dword ptr [ebp - 0x38] */
   9711 L_3803142F:
   9712     eax = MEM32(ebp + (-0x3C)); /* 0x3803142F: mov eax, dword ptr [ebp - 0x3c] */
   9713 L_38031432:
   9714     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031432: fstp dword ptr [ebp - 0x20] */
   9715 L_38031435:
   9716     MEM32(ebp + (-0xF0)) = edx; /* 0x38031435: mov dword ptr [ebp - 0xf0], edx */
   9717 L_3803143B:
   9718     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3803143B: fld dword ptr [ebp - 0x1c] */
   9719 L_3803143E:
   9720     edx = ebp + (-0x30); /* 0x3803143E: lea edx, [ebp - 0x30] */
   9721 L_38031441:
   9722     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031441: fadd dword ptr [esi + 0x58] */
   9723 L_38031444:
   9724     MEM32(ebp + (-0xE8)) = ecx; /* 0x38031444: mov dword ptr [ebp - 0xe8], ecx */
   9725 L_3803144A:
   9726     PUSH32(esp, edx); /* 0x3803144A: push edx */
   9727 L_3803144B:
   9728     ecx = ebp + (-0xF0); /* 0x3803144B: lea ecx, [ebp - 0xf0] */
   9729 L_38031451:
   9730     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38031451: fstp dword ptr [ebp - 0x1c] */
   9731 L_38031454:
   9732     MEM32(ebp + (-0xEC)) = eax; /* 0x38031454: mov dword ptr [ebp - 0xec], eax */
   9733 L_3803145A:
   9734     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803145A: fld dword ptr [ebp - 0x18] */
   9735 L_3803145D:
   9736     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x3803145D: fadd dword ptr [esi + 0x5c] */
   9737 L_38031460:
   9738     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031460: fstp dword ptr [ebp - 0x18] */
   9739 L_38031463:
   9740     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031463: call dword ptr [0x3804e4c8] */
   9741     RECOMP_FLAGS_IN();
   9742 L_38031469:
   9743     ecx = MEM32(eax); /* 0x38031469: mov ecx, dword ptr [eax] */
   9744 L_3803146B:
   9745     MEM32(ebp + (-0x98)) = ecx; /* 0x3803146B: mov dword ptr [ebp - 0x98], ecx */
   9746 L_38031471:
   9747     edx = MEM32(eax + 0x4); /* 0x38031471: mov edx, dword ptr [eax + 4] */
   9748 L_38031474:
   9749     MEM32(ebp + (-0x94)) = edx; /* 0x38031474: mov dword ptr [ebp - 0x94], edx */
   9750 L_3803147A:
   9751     eax = MEM32(eax + 0x8); /* 0x3803147A: mov eax, dword ptr [eax + 8] */
   9752 L_3803147D:
   9753     ecx = ebp + (-0x98); /* 0x3803147D: lea ecx, [ebp - 0x98] */
   9754 L_38031483:
   9755     PUSH32(esp, ecx); /* 0x38031483: push ecx */
   9756 L_38031484:
   9757     edx = ebp + (-0x108); /* 0x38031484: lea edx, [ebp - 0x108] */
   9758 L_3803148A:
   9759     PUSH32(esp, edx); /* 0x3803148A: push edx */
   9760 L_3803148B:
   9761     ecx = ebp + (-0x40); /* 0x3803148B: lea ecx, [ebp - 0x40] */
   9762 L_3803148E:
   9763     MEM32(ebp + (-0x90)) = eax; /* 0x3803148E: mov dword ptr [ebp - 0x90], eax */
   9764 L_38031494:
   9765     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x38031494: call dword ptr [0x3804e4fc] */
   9766     RECOMP_FLAGS_IN();
   9767 L_3803149A:
   9768     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3803149A: fld dword ptr [ebp - 0x34] */
   9769 L_3803149D:
   9770     ecx = MEM32(eax); /* 0x3803149D: mov ecx, dword ptr [eax] */
   9771 L_3803149F:
   9772     _st[0] += _st[0]; /* 0x3803149F: fadd st(0), st(0) */
   9773 L_380314A1:
   9774     MEM32(ebp + (-0xC8)) = ecx; /* 0x380314A1: mov dword ptr [ebp - 0xc8], ecx */
   9775 L_380314A7:
   9776     edx = MEM32(eax + 0x4); /* 0x380314A7: mov edx, dword ptr [eax + 4] */
   9777 L_380314AA:
   9778     MEM32(ebp + (-0xC4)) = edx; /* 0x380314AA: mov dword ptr [ebp - 0xc4], edx */
   9779 L_380314B0:
   9780     eax = MEM32(eax + 0x8); /* 0x380314B0: mov eax, dword ptr [eax + 8] */
   9781 L_380314B3:
   9782     PUSH32(esp, ecx); /* 0x380314B3: push ecx */
   9783 L_380314B4:
   9784     ecx = ebp + (-0x98); /* 0x380314B4: lea ecx, [ebp - 0x98] */
   9785 L_380314BA:
   9786     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380314BA: fstp dword ptr [esp] */
   9787 L_380314BD:
   9788     MEM32(ebp + (-0xC0)) = eax; /* 0x380314BD: mov dword ptr [ebp - 0xc0], eax */
   9789 L_380314C3:
   9790     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314C3: call dword ptr [0x3804e4d4] */
   9791     RECOMP_FLAGS_IN();
   9792 L_380314C9:
   9793     PUSH32(esp, 0x40000000u); /* 0x380314C9: push 0x40000000 */
   9794 L_380314CE:
   9795     ecx = ebp + (-0xC8); /* 0x380314CE: lea ecx, [ebp - 0xc8] */
   9796 L_380314D4:
   9797     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314D4: call dword ptr [0x3804e4d4] */
   9798     RECOMP_FLAGS_IN();
   9799 L_380314DA:
   9800     ecx = ebp + (-0x98); /* 0x380314DA: lea ecx, [ebp - 0x98] */
   9801 L_380314E0:
   9802     PUSH32(esp, ecx); /* 0x380314E0: push ecx */
   9803 L_380314E1:
   9804     ecx = ebp + (-0x30); /* 0x380314E1: lea ecx, [ebp - 0x30] */
   9805 L_380314E4:
   9806     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314E4: call dword ptr [0x3804e4e8] */
   9807     RECOMP_FLAGS_IN();
   9808 L_380314EA:
   9809     edx = ebp + (-0xC8); /* 0x380314EA: lea edx, [ebp - 0xc8] */
   9810 L_380314F0:
   9811     PUSH32(esp, edx); /* 0x380314F0: push edx */
   9812 L_380314F1:
   9813     ecx = ebp + (-0x30); /* 0x380314F1: lea ecx, [ebp - 0x30] */
   9814 L_380314F4:
   9815     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314F4: call dword ptr [0x3804e4e8] */
   9816     RECOMP_FLAGS_IN();
   9817 L_380314FA:
   9818     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380314FA: fld dword ptr [ebp - 0x30] */
   9819 L_380314FD:
   9820     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x380314FD: fadd dword ptr [esi + 0x54] */
   9821 L_38031500:
   9822     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031500: fstp dword ptr [ebp - 0x30] */
   9823 L_38031503:
   9824     PUSH32(esp, 0x3806CB10u); /* 0x38031503: push 0x3806cb10 */
   9825 L_38031508:
   9826     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031508: fld dword ptr [ebp - 0x2c] */
   9827 L_3803150B:
   9828     PUSH32(esp, 0x000F6951u); /* 0x3803150B: push 0xf6951 */
   9829 L_38031510:
   9830     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031510: fadd dword ptr [esi + 0x58] */
   9831 L_38031513:
   9832     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031513: fstp dword ptr [ebp - 0x2c] */
   9833 L_38031516:
   9834     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031516: fld dword ptr [ebp - 0x28] */
   9835 L_38031519:
   9836     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38031519: fadd dword ptr [esi + 0x5c] */
   9837 L_3803151C:
   9838     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3803151C: fstp dword ptr [ebp - 0x28] */
   9839 L_3803151F:
   9840     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x3803151F: call dword ptr [0x3804e4b0] */
   9841     RECOMP_FLAGS_IN();
   9842 L_38031525:
   9843     edi = eax; /* 0x38031525: mov edi, eax */
   9844 L_38031527:
   9845     eax = MEM32(esi + 0x98); /* 0x38031527: mov eax, dword ptr [esi + 0x98] */
   9846 L_3803152D:
   9847     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9848     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9849     esp = esp + 8; /* 0x3803152D: add esp, 8 */
   9850     _flag_k = FK_ADD;
   9851 L_38031530:
   9852     /* cmp eax, ebx */ /* 0x38031530: cmp eax, ebx */
   9853     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9855     _flag_k = FK_CMP;
   9856 L_38031532:
   9857     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803155A; /* 0x38031532: jne 0x3803155a */
   9858 L_38031534:
   9859     PUSH32(esp, 0x10u); /* 0x38031534: push 0x10 */
   9860 L_38031536:
   9861     RECOMP_ICALL(0x3804B676u); /* 0x38031536: call 0x3804b676 */ /* not lifted */
   9862     RECOMP_FLAGS_IN();
   9863 L_3803153B:
   9864     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9865     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9866     esp = esp + 4; /* 0x3803153B: add esp, 4 */
   9867     _flag_k = FK_ADD;
   9868 L_3803153E:
   9869     /* cmp eax, ebx */ /* 0x3803153E: cmp eax, ebx */
   9870     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9872     _flag_k = FK_CMP;
   9873 L_38031540:
   9874     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031552; /* 0x38031540: je 0x38031552 */
   9875 L_38031542:
   9876     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031542: mov cl, byte ptr [ebp + 0xb] */
   9877 L_38031545:
   9878     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031545: mov byte ptr [eax], cl */
   9879 L_38031547:
   9880     MEM32(eax + 0x4) = ebx; /* 0x38031547: mov dword ptr [eax + 4], ebx */
   9881 L_3803154A:
   9882     MEM32(eax + 0x8) = ebx; /* 0x3803154A: mov dword ptr [eax + 8], ebx */
   9883 L_3803154D:
   9884     MEM32(eax + 0xC) = ebx; /* 0x3803154D: mov dword ptr [eax + 0xc], ebx */
   9885 L_38031550:
   9886     goto L_38031554; /* 0x38031550: jmp 0x38031554 */
   9887 L_38031552:
   9888     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9889     eax = 0; /* 0x38031552: xor eax, eax */
   9890     _cf = 0;
   9891     _flag_k = FK_TEST;
   9892 L_38031554:
   9893     MEM32(esi + 0x98) = eax; /* 0x38031554: mov dword ptr [esi + 0x98], eax */
   9894 L_3803155A:
   9895     eax = MEM32(ebp + 0x8); /* 0x3803155A: mov eax, dword ptr [ebp + 8] */
   9896 L_3803155D:
   9897     edx = ebp + (-0x20); /* 0x3803155D: lea edx, [ebp - 0x20] */
   9898 L_38031560:
   9899     PUSH32(esp, edx); /* 0x38031560: push edx */
   9900 L_38031561:
   9901     PUSH32(esp, eax); /* 0x38031561: push eax */
   9902 L_38031562:
   9903     ecx = esi; /* 0x38031562: mov ecx, esi */
   9904 L_38031564:
   9905     RECOMP_ICALL(0x38032CE0u); /* 0x38031564: call 0x38032ce0 */ /* not lifted */
   9906     RECOMP_FLAGS_IN();
   9907 L_38031569:
   9908     ecx = MEM32(ebp + (-0x20)); /* 0x38031569: mov ecx, dword ptr [ebp - 0x20] */
   9909 L_3803156C:
   9910     edx = MEM32(ebp + (-0x1C)); /* 0x3803156C: mov edx, dword ptr [ebp - 0x1c] */
   9911 L_3803156F:
   9912     eax = MEM32(ebp + (-0x18)); /* 0x3803156F: mov eax, dword ptr [ebp - 0x18] */
   9913 L_38031572:
   9914     MEM32(ebp + (-0xBC)) = ecx; /* 0x38031572: mov dword ptr [ebp - 0xbc], ecx */
   9915 L_38031578:
   9916     ecx = ebp + (-0xBC); /* 0x38031578: lea ecx, [ebp - 0xbc] */
   9917 L_3803157E:
   9918     MEM32(ebp + (-0xB8)) = edx; /* 0x3803157E: mov dword ptr [ebp - 0xb8], edx */
   9919 L_38031584:
   9920     edx = MEM32(ebp + 0x8); /* 0x38031584: mov edx, dword ptr [ebp + 8] */
   9921 L_38031587:
   9922     PUSH32(esp, ecx); /* 0x38031587: push ecx */
   9923 L_38031588:
   9924     PUSH32(esp, edx); /* 0x38031588: push edx */
   9925 L_38031589:
   9926     ecx = esi; /* 0x38031589: mov ecx, esi */
   9927 L_3803158B:
   9928     MEM32(ebp + (-0xB4)) = eax; /* 0x3803158B: mov dword ptr [ebp - 0xb4], eax */
   9929 L_38031591:
   9930     RECOMP_ICALL(0x38032DE0u); /* 0x38031591: call 0x38032de0 */ /* not lifted */
   9931     RECOMP_FLAGS_IN();
   9932 L_38031596:
   9933     fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x38031596: fld dword ptr [ebp - 0xb8] */
   9934 L_3803159C:
   9935     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3803159C: fsub dword ptr [ebp - 0x1c] */
   9936 L_3803159F:
   9937     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803159F: fst dword ptr [ebp - 0x10] */
   9938 L_380315A2:
   9939     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x380315A2: fcomp dword ptr [0x3804f688] */
   9940     fp_pop();
   9941 L_380315A8:
   9942     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380315A8: fnstsw ax */
   9943 L_380315AA:
   9944     /* test HI8(eax), 0x41u */ /* 0x380315AA: test ah, 0x41 */
   9945     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   9946     _cf = 0;
   9947     _flag_k = FK_NARROW(FK_TEST, 24);
   9948 L_380315AD:
   9949     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031657; /* 0x380315AD: jne 0x38031657 */
   9950 L_380315B3:
   9951     PUSH32(esp, 0x58u); /* 0x380315B3: push 0x58 */
   9952 L_380315B5:
   9953     RECOMP_ICALL(0x3804B676u); /* 0x380315B5: call 0x3804b676 */ /* not lifted */
   9954     RECOMP_FLAGS_IN();
   9955 L_380315BA:
   9956     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9958     esp = esp + 4; /* 0x380315BA: add esp, 4 */
   9959     _flag_k = FK_ADD;
   9960 L_380315BD:
   9961     MEM32(ebp + (-0x24)) = eax; /* 0x380315BD: mov dword ptr [ebp - 0x24], eax */
   9962 L_380315C0:
   9963     /* cmp eax, ebx */ /* 0x380315C0: cmp eax, ebx */
   9964     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9966     _flag_k = FK_CMP;
   9967 L_380315C2:
   9968     MEM32(ebp + (-0x4)) = 1; /* 0x380315C2: mov dword ptr [ebp - 4], 1 */
   9969 L_380315C9:
   9970     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315EC; /* 0x380315C9: je 0x380315ec */
   9971 L_380315CB:
   9972     PUSH32(esp, ebx); /* 0x380315CB: push ebx */
   9973 L_380315CC:
   9974     PUSH32(esp, ebx); /* 0x380315CC: push ebx */
   9975 L_380315CD:
   9976     PUSH32(esp, ebx); /* 0x380315CD: push ebx */
   9977 L_380315CE:
   9978     PUSH32(esp, ebx); /* 0x380315CE: push ebx */
   9979 L_380315CF:
   9980     PUSH32(esp, ebx); /* 0x380315CF: push ebx */
   9981 L_380315D0:
   9982     PUSH32(esp, edi); /* 0x380315D0: push edi */
   9983 L_380315D1:
   9984     PUSH32(esp, 0x3FA00000u); /* 0x380315D1: push 0x3fa00000 */
   9985 L_380315D6:
   9986     PUSH32(esp, 0x00FFFFFFu); /* 0x380315D6: push 0xffffff */
   9987 L_380315DB:
   9988     ecx = ebp + (-0x54); /* 0x380315DB: lea ecx, [ebp - 0x54] */
   9989 L_380315DE:
   9990     PUSH32(esp, ecx); /* 0x380315DE: push ecx */
   9991 L_380315DF:
   9992     edx = ebp + (-0x30); /* 0x380315DF: lea edx, [ebp - 0x30] */
   9993 L_380315E2:
   9994     PUSH32(esp, edx); /* 0x380315E2: push edx */
   9995 L_380315E3:
   9996     ecx = eax; /* 0x380315E3: mov ecx, eax */
   9997 L_380315E5:
   9998     RECOMP_ICALL(0x3800B350u); /* 0x380315E5: call 0x3800b350 */ /* not lifted */
   9999     RECOMP_FLAGS_IN();
  10000 L_380315EA:
  10001     goto L_380315EE; /* 0x380315EA: jmp 0x380315ee */
  10002 L_380315EC:
  10003     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10004     eax = 0; /* 0x380315EC: xor eax, eax */
  10005     _cf = 0;
  10006     _flag_k = FK_TEST;
  10007 L_380315EE:
  10008     ecx = MEM32(esi + 0x98); /* 0x380315EE: mov ecx, dword ptr [esi + 0x98] */
  10009 L_380315F4:
  10010     edx = ebp + (-0xAC); /* 0x380315F4: lea edx, [ebp - 0xac] */
  10011 L_380315FA:
  10012     PUSH32(esp, edx); /* 0x380315FA: push edx */
  10013 L_380315FB:
  10014     MEM32(ebp + (-0xAC)) = eax; /* 0x380315FB: mov dword ptr [ebp - 0xac], eax */
  10015 L_38031601:
  10016     eax = MEM32(ecx + 0x8); /* 0x38031601: mov eax, dword ptr [ecx + 8] */
  10017 L_38031604:
  10018     PUSH32(esp, 1); /* 0x38031604: push 1 */
  10019 L_38031606:
  10020     PUSH32(esp, eax); /* 0x38031606: push eax */
  10021 L_38031607:
  10022     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38031607: mov dword ptr [ebp - 4], 0xffffffff */
  10023 L_3803160E:
  10024     RECOMP_ICALL(0x38009C60u); /* 0x3803160E: call 0x38009c60 */ /* not lifted */
  10025     RECOMP_FLAGS_IN();
  10026 L_38031613:
  10027     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031613: fld dword ptr [ebp - 0x2c] */
  10028 L_38031616:
  10029     _st[0] += (double)*(float*)ADDR(0x3804F684); /* 0x38031616: fadd dword ptr [0x3804f684] */
  10030 L_3803161C:
  10031     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3803161C: fstp dword ptr [ebp - 0x2c] */
  10032 L_3803161F:
  10033     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803161F: fld dword ptr [ebp - 0x10] */
  10034 L_38031622:
  10035     _st[0] -= (double)*(float*)ADDR(0x3804F684); /* 0x38031622: fsub dword ptr [0x3804f684] */
  10036 L_38031628:
  10037     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031628: fcom dword ptr [0x3804f688] */
  10038 L_3803162E:
  10039     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803162E: fst dword ptr [ebp - 0x10] */
  10040 L_38031631:
  10041     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031631: fnstsw ax */
  10042 L_38031633:
  10043     /* test HI8(eax), 1 */ /* 0x38031633: test ah, 1 */
  10044     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10045     _cf = 0;
  10046     _flag_k = FK_NARROW(FK_TEST, 24);
  10047 L_38031636:
  10048     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031646; /* 0x38031636: je 0x38031646 */
  10049 L_38031638:
  10050     fp_push(_st[0]); /* 0x38031638: fld st(0) */
  10051 L_3803163A:
  10052     _st[0] -= (double)*(float*)ADDR(0x3804F688); /* 0x3803163A: fsub dword ptr [0x3804f688] */
  10053 L_38031640:
  10054     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x38031640: fadd dword ptr [ebp - 0x2c] */
  10055 L_38031643:
  10056     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031643: fstp dword ptr [ebp - 0x2c] */
  10057 L_38031646:
  10058     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031646: fcomp dword ptr [0x3804f688] */
  10059     fp_pop();
  10060 L_3803164C:
  10061     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803164C: fnstsw ax */
  10062 L_3803164E:
  10063     /* test HI8(eax), 0x41u */ /* 0x3803164E: test ah, 0x41 */
  10064     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  10065     _cf = 0;
  10066     _flag_k = FK_NARROW(FK_TEST, 24);
  10067 L_38031651:
  10068     RECOMP_BACKEDGE();
  10069     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315B3; /* 0x38031651: je 0x380315b3 */
  10070 L_38031657:
  10071     PUSH32(esp, 0x58u); /* 0x38031657: push 0x58 */
  10072 L_38031659:
  10073     RECOMP_ICALL(0x3804B676u); /* 0x38031659: call 0x3804b676 */ /* not lifted */
  10074     RECOMP_FLAGS_IN();
  10075 L_3803165E:
  10076     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10078     esp = esp + 4; /* 0x3803165E: add esp, 4 */
  10079     _flag_k = FK_ADD;
  10080 L_38031661:
  10081     MEM32(ebp + (-0x24)) = eax; /* 0x38031661: mov dword ptr [ebp - 0x24], eax */
  10082 L_38031664:
  10083     /* cmp eax, ebx */ /* 0x38031664: cmp eax, ebx */
  10084     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  10085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10086     _flag_k = FK_CMP;
  10087 L_38031666:
  10088     MEM32(ebp + (-0x4)) = 2; /* 0x38031666: mov dword ptr [ebp - 4], 2 */
  10089 L_3803166D:
  10090     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031690; /* 0x3803166D: je 0x38031690 */
  10091 L_3803166F:
  10092     PUSH32(esp, ebx); /* 0x3803166F: push ebx */
  10093 L_38031670:
  10094     PUSH32(esp, ebx); /* 0x38031670: push ebx */
  10095 L_38031671:
  10096     PUSH32(esp, ebx); /* 0x38031671: push ebx */
  10097 L_38031672:
  10098     PUSH32(esp, ebx); /* 0x38031672: push ebx */
  10099 L_38031673:
  10100     PUSH32(esp, ebx); /* 0x38031673: push ebx */
  10101 L_38031674:
  10102     PUSH32(esp, edi); /* 0x38031674: push edi */
  10103 L_38031675:
  10104     PUSH32(esp, 0x3FA00000u); /* 0x38031675: push 0x3fa00000 */
  10105 L_3803167A:
  10106     PUSH32(esp, 0x00FFFFFFu); /* 0x3803167A: push 0xffffff */
  10107 L_3803167F:
  10108     ecx = ebp + (-0x54); /* 0x3803167F: lea ecx, [ebp - 0x54] */
  10109 L_38031682:
  10110     PUSH32(esp, ecx); /* 0x38031682: push ecx */
  10111 L_38031683:
  10112     edx = ebp + (-0x30); /* 0x38031683: lea edx, [ebp - 0x30] */
  10113 L_38031686:
  10114     PUSH32(esp, edx); /* 0x38031686: push edx */
  10115 L_38031687:
  10116     ecx = eax; /* 0x38031687: mov ecx, eax */
  10117 L_38031689:
  10118     RECOMP_ICALL(0x3800B350u); /* 0x38031689: call 0x3800b350 */ /* not lifted */
  10119     RECOMP_FLAGS_IN();
  10120 L_3803168E:
  10121     goto L_38031692; /* 0x3803168E: jmp 0x38031692 */
  10122 L_38031690:
  10123     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10124     eax = 0; /* 0x38031690: xor eax, eax */
  10125     _cf = 0;
  10126     _flag_k = FK_TEST;
  10127 L_38031692:
  10128     ecx = MEM32(esi + 0x98); /* 0x38031692: mov ecx, dword ptr [esi + 0x98] */
  10129 L_38031698:
  10130     MEM32(ebp + (-0x9C)) = eax; /* 0x38031698: mov dword ptr [ebp - 0x9c], eax */
  10131 L_3803169E:
  10132     edx = MEM32(ecx + 0x8); /* 0x3803169E: mov edx, dword ptr [ecx + 8] */
  10133 L_380316A1:
  10134     eax = ebp + (-0x9C); /* 0x380316A1: lea eax, [ebp - 0x9c] */
  10135 L_380316A7:
  10136     PUSH32(esp, eax); /* 0x380316A7: push eax */
  10137 L_380316A8:
  10138     PUSH32(esp, 1); /* 0x380316A8: push 1 */
  10139 L_380316AA:
  10140     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380316AA: mov dword ptr [ebp - 4], 0xffffffff */
  10141 L_380316B1:
  10142     PUSH32(esp, edx); /* 0x380316B1: push edx */
  10143 L_380316B2:
  10144     RECOMP_ICALL(0x38009C60u); /* 0x380316B2: call 0x38009c60 */ /* not lifted */
  10145     RECOMP_FLAGS_IN();
  10146 L_380316B7:
  10147     eax = MEM32(ebp + (-0x8C)); /* 0x380316B7: mov eax, dword ptr [ebp - 0x8c] */
  10148 L_380316BD:
  10149     edx = MEM32(ebp + (-0x78)); /* 0x380316BD: mov edx, dword ptr [ebp - 0x78] */
  10150 L_380316C0:
  10151     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10152     ecx = 0; /* 0x380316C0: xor ecx, ecx */
  10153     _cf = 0;
  10154     _flag_k = FK_TEST;
  10155 L_380316C2:
  10156     SET_LO16(ecx, MEM16(esi + 0x7C)); /* 0x380316C2: mov cx, word ptr [esi + 0x7c] */
  10157 L_380316C6:
  10158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10159     eax = eax + 1; /* 0x380316C6: inc eax */
  10160     _flag_k = FK_INC;
  10161 L_380316C7:
  10162     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
  10163     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10164     edx = edx + 0x10u; /* 0x380316C7: add edx, 0x10 */
  10165     _flag_k = FK_ADD;
  10166 L_380316CA:
  10167     MEM32(ebp + (-0x8C)) = eax; /* 0x380316CA: mov dword ptr [ebp - 0x8c], eax */
  10168 L_380316D0:
  10169     MEM32(ebp + (-0x78)) = edx; /* 0x380316D0: mov dword ptr [ebp - 0x78], edx */
  10170 L_380316D3:
  10171     /* cmp eax, ecx */ /* 0x380316D3: cmp eax, ecx */
  10172     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10174     _flag_k = FK_CMP;
  10175 L_380316D5:
  10176     RECOMP_BACKEDGE();
  10177     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38030E4E; /* 0x380316D5: jl 0x38030e4e */
  10178 L_380316DB:
  10179     edi = POP32_VAL(esp); /* 0x380316DB: pop edi */
  10180 L_380316DC:
  10181     PUSH32(esp, ebx); /* 0x380316DC: push ebx */
  10182 L_380316DD:
  10183     ecx = esi; /* 0x380316DD: mov ecx, esi */
  10184 L_380316DF:
  10185     RECOMP_ICALL(0x38030440u); /* 0x380316DF: call 0x38030440 */ /* not lifted */
  10186     RECOMP_FLAGS_IN();
  10187 L_380316E4:
  10188     ecx = MEM32(ebp + (-0xC)); /* 0x380316E4: mov ecx, dword ptr [ebp - 0xc] */
  10189 L_380316E7:
  10190     esi = POP32_VAL(esp); /* 0x380316E7: pop esi */
  10191 L_380316E8:
  10192     ebx = POP32_VAL(esp); /* 0x380316E8: pop ebx */
  10193 L_380316E9:
  10194     MEM32(FS_BASE + (0)) = ecx; /* 0x380316E9: mov dword ptr fs:[0], ecx */
  10195 L_380316F0:
  10196     esp = ebp; /* 0x380316F0: mov esp, ebp */
  10197 L_380316F2:
  10198     ebp = POP32_VAL(esp); /* 0x380316F2: pop ebp */
  10199 L_380316F3:
  10200     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380316F3: ret 8 */
  10201   _ljump:
  10202     switch (_itail_tgt) {
  10203       case 0x38030E4Eu: goto L_38030E4E;
  10204       case 0x38030E54u: goto L_38030E54;
  10205       case 0x38030E57u: goto L_38030E57;
  10206       case 0x38030E5Au: goto L_38030E5A;
  10207       case 0x38030E5Du: goto L_38030E5D;
  10208       case 0x38030E5Fu: goto L_38030E5F;
  10209       case 0x38030E65u: goto L_38030E65;
  10210       case 0x38030E68u: goto L_38030E68;
  10211       case 0x38030E6Eu: goto L_38030E6E;
  10212       case 0x38030E74u: goto L_38030E74;
  10213       case 0x38030E76u: goto L_38030E76;
  10214       case 0x38030E7Cu: goto L_38030E7C;
  10215       case 0x38030E84u: goto L_38030E84;
  10216       case 0x38030E8Au: goto L_38030E8A;
  10217       case 0x38030E8Du: goto L_38030E8D;
  10218       case 0x38030E91u: goto L_38030E91;
  10219       case 0x38030E97u: goto L_38030E97;
  10220       case 0x38030E9Du: goto L_38030E9D;
  10221       case 0x38030EA3u: goto L_38030EA3;
  10222       case 0x38030EA9u: goto L_38030EA9;
  10223       case 0x38030EACu: goto L_38030EAC;
  10224       case 0x38030EAFu: goto L_38030EAF;
  10225       case 0x38030EB5u: goto L_38030EB5;
  10226       case 0x38030EB7u: goto L_38030EB7;
  10227       case 0x38030EBAu: goto L_38030EBA;
  10228       case 0x38030EBCu: goto L_38030EBC;
  10229       case 0x38030EC2u: goto L_38030EC2;
  10230       case 0x38030EC4u: goto L_38030EC4;
  10231       case 0x38030EC7u: goto L_38030EC7;
  10232       case 0x38030EC9u: goto L_38030EC9;
  10233       case 0x38030ECFu: goto L_38030ECF;
  10234       case 0x38030ED1u: goto L_38030ED1;
  10235       case 0x38030ED7u: goto L_38030ED7;
  10236       case 0x38030EDAu: goto L_38030EDA;
  10237       case 0x38030EDDu: goto L_38030EDD;
  10238       case 0x38030EE0u: goto L_38030EE0;
  10239       case 0x38030EE6u: goto L_38030EE6;
  10240       case 0x38030EE9u: goto L_38030EE9;
  10241       case 0x38030EECu: goto L_38030EEC;
  10242       case 0x38030EF2u: goto L_38030EF2;
  10243       case 0x38030EF4u: goto L_38030EF4;
  10244       case 0x38030EF6u: goto L_38030EF6;
  10245       case 0x38030EFCu: goto L_38030EFC;
  10246       case 0x38030EFFu: goto L_38030EFF;
  10247       case 0x38030F02u: goto L_38030F02;
  10248       case 0x38030F05u: goto L_38030F05;
  10249       case 0x38030F08u: goto L_38030F08;
  10250       case 0x38030F0Bu: goto L_38030F0B;
  10251       case 0x38030F0Du: goto L_38030F0D;
  10252       case 0x38030F10u: goto L_38030F10;
  10253       case 0x38030F13u: goto L_38030F13;
  10254       case 0x38030F19u: goto L_38030F19;
  10255       case 0x38030F1Fu: goto L_38030F1F;
  10256       case 0x38030F25u: goto L_38030F25;
  10257       case 0x38030F27u: goto L_38030F27;
  10258       case 0x38030F2Au: goto L_38030F2A;
  10259       case 0x38030F2Cu: goto L_38030F2C;
  10260       case 0x38030F32u: goto L_38030F32;
  10261       case 0x38030F34u: goto L_38030F34;
  10262       case 0x38030F37u: goto L_38030F37;
  10263       case 0x38030F39u: goto L_38030F39;
  10264       case 0x38030F3Fu: goto L_38030F3F;
  10265       case 0x38030F41u: goto L_38030F41;
  10266       case 0x38030F47u: goto L_38030F47;
  10267       case 0x38030F4Au: goto L_38030F4A;
  10268       case 0x38030F4Du: goto L_38030F4D;
  10269       case 0x38030F50u: goto L_38030F50;
  10270       case 0x38030F56u: goto L_38030F56;
  10271       case 0x38030F59u: goto L_38030F59;
  10272       case 0x38030F5Cu: goto L_38030F5C;
  10273       case 0x38030F62u: goto L_38030F62;
  10274       case 0x38030F64u: goto L_38030F64;
  10275       case 0x38030F69u: goto L_38030F69;
  10276       case 0x38030F6Bu: goto L_38030F6B;
  10277       case 0x38030F70u: goto L_38030F70;
  10278       case 0x38030F76u: goto L_38030F76;
  10279       case 0x38030F79u: goto L_38030F79;
  10280       case 0x38030F7Cu: goto L_38030F7C;
  10281       case 0x38030F7Fu: goto L_38030F7F;
  10282       case 0x38030F82u: goto L_38030F82;
  10283       case 0x38030F85u: goto L_38030F85;
  10284       case 0x38030F87u: goto L_38030F87;
  10285       case 0x38030F89u: goto L_38030F89;
  10286       case 0x38030F8Cu: goto L_38030F8C;
  10287       case 0x38030F8Fu: goto L_38030F8F;
  10288       case 0x38030F92u: goto L_38030F92;
  10289       case 0x38030F94u: goto L_38030F94;
  10290       case 0x38030F97u: goto L_38030F97;
  10291       case 0x38030F9Au: goto L_38030F9A;
  10292       case 0x38030F9Cu: goto L_38030F9C;
  10293       case 0x38030F9Fu: goto L_38030F9F;
  10294       case 0x38030FA2u: goto L_38030FA2;
  10295       case 0x38030FA4u: goto L_38030FA4;
  10296       case 0x38030FA7u: goto L_38030FA7;
  10297       case 0x38030FAAu: goto L_38030FAA;
  10298       case 0x38030FADu: goto L_38030FAD;
  10299       case 0x38030FB0u: goto L_38030FB0;
  10300       case 0x38030FB2u: goto L_38030FB2;
  10301       case 0x38030FB5u: goto L_38030FB5;
  10302       case 0x38030FB8u: goto L_38030FB8;
  10303       case 0x38030FBAu: goto L_38030FBA;
  10304       case 0x38030FBCu: goto L_38030FBC;
  10305       case 0x38030FBFu: goto L_38030FBF;
  10306       case 0x38030FC1u: goto L_38030FC1;
  10307       case 0x38030FC4u: goto L_38030FC4;
  10308       case 0x38030FC7u: goto L_38030FC7;
  10309       case 0x38030FCAu: goto L_38030FCA;
  10310       case 0x38030FCDu: goto L_38030FCD;
  10311       case 0x38030FD0u: goto L_38030FD0;
  10312       case 0x38030FD3u: goto L_38030FD3;
  10313       case 0x38030FD5u: goto L_38030FD5;
  10314       case 0x38030FD8u: goto L_38030FD8;
  10315       case 0x38030FDBu: goto L_38030FDB;
  10316       case 0x38030FDDu: goto L_38030FDD;
  10317       case 0x38030FDFu: goto L_38030FDF;
  10318       case 0x38030FE2u: goto L_38030FE2;
  10319       case 0x38030FE4u: goto L_38030FE4;
  10320       case 0x38030FE7u: goto L_38030FE7;
  10321       case 0x38030FEAu: goto L_38030FEA;
  10322       case 0x38030FECu: goto L_38030FEC;
  10323       case 0x38030FEFu: goto L_38030FEF;
  10324       case 0x38030FF2u: goto L_38030FF2;
  10325       case 0x38030FF5u: goto L_38030FF5;
  10326       case 0x38030FF8u: goto L_38030FF8;
  10327       case 0x38030FFBu: goto L_38030FFB;
  10328       case 0x38030FFEu: goto L_38030FFE;
  10329       case 0x38031000u: goto L_38031000;
  10330       case 0x38031003u: goto L_38031003;
  10331       case 0x38031006u: goto L_38031006;
  10332       case 0x38031009u: goto L_38031009;
  10333       case 0x3803100Bu: goto L_3803100B;
  10334       case 0x3803100Du: goto L_3803100D;
  10335       case 0x38031010u: goto L_38031010;
  10336       case 0x38031013u: goto L_38031013;
  10337       case 0x38031019u: goto L_38031019;
  10338       case 0x3803101Bu: goto L_3803101B;
  10339       case 0x38031021u: goto L_38031021;
  10340       case 0x38031024u: goto L_38031024;
  10341       case 0x38031026u: goto L_38031026;
  10342       case 0x38031028u: goto L_38031028;
  10343       case 0x3803102Au: goto L_3803102A;
  10344       case 0x3803102Fu: goto L_3803102F;
  10345       case 0x38031032u: goto L_38031032;
  10346       case 0x38031034u: goto L_38031034;
  10347       case 0x38031036u: goto L_38031036;
  10348       case 0x38031039u: goto L_38031039;
  10349       case 0x3803103Bu: goto L_3803103B;
  10350       case 0x3803103Eu: goto L_3803103E;
  10351       case 0x38031041u: goto L_38031041;
  10352       case 0x38031044u: goto L_38031044;
  10353       case 0x38031046u: goto L_38031046;
  10354       case 0x38031048u: goto L_38031048;
  10355       case 0x3803104Eu: goto L_3803104E;
  10356       case 0x38031050u: goto L_38031050;
  10357       case 0x38031055u: goto L_38031055;
  10358       case 0x38031058u: goto L_38031058;
  10359       case 0x3803105Bu: goto L_3803105B;
  10360       case 0x3803105Du: goto L_3803105D;
  10361       case 0x38031060u: goto L_38031060;
  10362       case 0x38031062u: goto L_38031062;
  10363       case 0x38031065u: goto L_38031065;
  10364       case 0x3803106Bu: goto L_3803106B;
  10365       case 0x3803106Fu: goto L_3803106F;
  10366       case 0x38031070u: goto L_38031070;
  10367       case 0x38031076u: goto L_38031076;
  10368       case 0x38031077u: goto L_38031077;
  10369       case 0x38031078u: goto L_38031078;
  10370       case 0x38031079u: goto L_38031079;
  10371       case 0x3803107Bu: goto L_3803107B;
  10372       case 0x3803107Cu: goto L_3803107C;
  10373       case 0x3803107Du: goto L_3803107D;
  10374       case 0x3803107Eu: goto L_3803107E;
  10375       case 0x38031081u: goto L_38031081;
  10376       case 0x38031086u: goto L_38031086;
  10377       case 0x38031089u: goto L_38031089;
  10378       case 0x3803108Au: goto L_3803108A;
  10379       case 0x3803108Bu: goto L_3803108B;
  10380       case 0x3803108Du: goto L_3803108D;
  10381       case 0x38031092u: goto L_38031092;
  10382       case 0x38031094u: goto L_38031094;
  10383       case 0x38031096u: goto L_38031096;
  10384       case 0x3803109Cu: goto L_3803109C;
  10385       case 0x380310A2u: goto L_380310A2;
  10386       case 0x380310A3u: goto L_380310A3;
  10387       case 0x380310A9u: goto L_380310A9;
  10388       case 0x380310ACu: goto L_380310AC;
  10389       case 0x380310AEu: goto L_380310AE;
  10390       case 0x380310B5u: goto L_380310B5;
  10391       case 0x380310B6u: goto L_380310B6;
  10392       case 0x380310BBu: goto L_380310BB;
  10393       case 0x380310BDu: goto L_380310BD;
  10394       case 0x380310C3u: goto L_380310C3;
  10395       case 0x380310CBu: goto L_380310CB;
  10396       case 0x380310D1u: goto L_380310D1;
  10397       case 0x380310D5u: goto L_380310D5;
  10398       case 0x380310DCu: goto L_380310DC;
  10399       case 0x380310DFu: goto L_380310DF;
  10400       case 0x380310E4u: goto L_380310E4;
  10401       case 0x380310E7u: goto L_380310E7;
  10402       case 0x380310EAu: goto L_380310EA;
  10403       case 0x380310ECu: goto L_380310EC;
  10404       case 0x380310F2u: goto L_380310F2;
  10405       case 0x380310F4u: goto L_380310F4;
  10406       case 0x380310F5u: goto L_380310F5;
  10407       case 0x380310FBu: goto L_380310FB;
  10408       case 0x380310FDu: goto L_380310FD;
  10409       case 0x38031100u: goto L_38031100;
  10410       case 0x38031103u: goto L_38031103;
  10411       case 0x38031106u: goto L_38031106;
  10412       case 0x38031107u: goto L_38031107;
  10413       case 0x3803110Au: goto L_3803110A;
  10414       case 0x38031110u: goto L_38031110;
  10415       case 0x38031113u: goto L_38031113;
  10416       case 0x38031115u: goto L_38031115;
  10417       case 0x3803111Bu: goto L_3803111B;
  10418       case 0x3803111Eu: goto L_3803111E;
  10419       case 0x38031121u: goto L_38031121;
  10420       case 0x38031124u: goto L_38031124;
  10421       case 0x38031127u: goto L_38031127;
  10422       case 0x3803112Au: goto L_3803112A;
  10423       case 0x3803112Du: goto L_3803112D;
  10424       case 0x38031130u: goto L_38031130;
  10425       case 0x38031133u: goto L_38031133;
  10426       case 0x38031136u: goto L_38031136;
  10427       case 0x38031139u: goto L_38031139;
  10428       case 0x3803113Cu: goto L_3803113C;
  10429       case 0x38031142u: goto L_38031142;
  10430       case 0x38031145u: goto L_38031145;
  10431       case 0x38031148u: goto L_38031148;
  10432       case 0x3803114Bu: goto L_3803114B;
  10433       case 0x3803114Eu: goto L_3803114E;
  10434       case 0x38031151u: goto L_38031151;
  10435       case 0x38031154u: goto L_38031154;
  10436       case 0x38031157u: goto L_38031157;
  10437       case 0x38031159u: goto L_38031159;
  10438       case 0x3803115Bu: goto L_3803115B;
  10439       case 0x3803115Eu: goto L_3803115E;
  10440       case 0x38031161u: goto L_38031161;
  10441       case 0x38031164u: goto L_38031164;
  10442       case 0x38031166u: goto L_38031166;
  10443       case 0x38031169u: goto L_38031169;
  10444       case 0x3803116Cu: goto L_3803116C;
  10445       case 0x3803116Fu: goto L_3803116F;
  10446       case 0x38031172u: goto L_38031172;
  10447       case 0x38031175u: goto L_38031175;
  10448       case 0x38031178u: goto L_38031178;
  10449       case 0x3803117Bu: goto L_3803117B;
  10450       case 0x3803117Eu: goto L_3803117E;
  10451       case 0x38031181u: goto L_38031181;
  10452       case 0x38031184u: goto L_38031184;
  10453       case 0x38031186u: goto L_38031186;
  10454       case 0x3803118Du: goto L_3803118D;
  10455       case 0x38031190u: goto L_38031190;
  10456       case 0x38031196u: goto L_38031196;
  10457       case 0x38031199u: goto L_38031199;
  10458       case 0x3803119Cu: goto L_3803119C;
  10459       case 0x380311A2u: goto L_380311A2;
  10460       case 0x380311A5u: goto L_380311A5;
  10461       case 0x380311A7u: goto L_380311A7;
  10462       case 0x380311AAu: goto L_380311AA;
  10463       case 0x380311B0u: goto L_380311B0;
  10464       case 0x380311B3u: goto L_380311B3;
  10465       case 0x380311B6u: goto L_380311B6;
  10466       case 0x380311BCu: goto L_380311BC;
  10467       case 0x380311BEu: goto L_380311BE;
  10468       case 0x380311C1u: goto L_380311C1;
  10469       case 0x380311C7u: goto L_380311C7;
  10470       case 0x380311CAu: goto L_380311CA;
  10471       case 0x380311CDu: goto L_380311CD;
  10472       case 0x380311D3u: goto L_380311D3;
  10473       case 0x380311D6u: goto L_380311D6;
  10474       case 0x380311D8u: goto L_380311D8;
  10475       case 0x380311DBu: goto L_380311DB;
  10476       case 0x380311E1u: goto L_380311E1;
  10477       case 0x380311E4u: goto L_380311E4;
  10478       case 0x380311E7u: goto L_380311E7;
  10479       case 0x380311EDu: goto L_380311ED;
  10480       case 0x380311F0u: goto L_380311F0;
  10481       case 0x380311F3u: goto L_380311F3;
  10482       case 0x380311F5u: goto L_380311F5;
  10483       case 0x380311FBu: goto L_380311FB;
  10484       case 0x38031201u: goto L_38031201;
  10485       case 0x38031207u: goto L_38031207;
  10486       case 0x3803120Du: goto L_3803120D;
  10487       case 0x38031213u: goto L_38031213;
  10488       case 0x38031215u: goto L_38031215;
  10489       case 0x38031218u: goto L_38031218;
  10490       case 0x3803121Au: goto L_3803121A;
  10491       case 0x38031220u: goto L_38031220;
  10492       case 0x38031222u: goto L_38031222;
  10493       case 0x38031225u: goto L_38031225;
  10494       case 0x38031227u: goto L_38031227;
  10495       case 0x3803122Du: goto L_3803122D;
  10496       case 0x3803122Fu: goto L_3803122F;
  10497       case 0x38031235u: goto L_38031235;
  10498       case 0x38031238u: goto L_38031238;
  10499       case 0x3803123Bu: goto L_3803123B;
  10500       case 0x3803123Eu: goto L_3803123E;
  10501       case 0x38031244u: goto L_38031244;
  10502       case 0x38031247u: goto L_38031247;
  10503       case 0x3803124Au: goto L_3803124A;
  10504       case 0x38031250u: goto L_38031250;
  10505       case 0x38031252u: goto L_38031252;
  10506       case 0x38031254u: goto L_38031254;
  10507       case 0x3803125Au: goto L_3803125A;
  10508       case 0x3803125Du: goto L_3803125D;
  10509       case 0x38031260u: goto L_38031260;
  10510       case 0x38031263u: goto L_38031263;
  10511       case 0x38031266u: goto L_38031266;
  10512       case 0x38031269u: goto L_38031269;
  10513       case 0x3803126Bu: goto L_3803126B;
  10514       case 0x3803126Eu: goto L_3803126E;
  10515       case 0x38031271u: goto L_38031271;
  10516       case 0x38031277u: goto L_38031277;
  10517       case 0x3803127Du: goto L_3803127D;
  10518       case 0x38031283u: goto L_38031283;
  10519       case 0x38031285u: goto L_38031285;
  10520       case 0x38031288u: goto L_38031288;
  10521       case 0x3803128Au: goto L_3803128A;
  10522       case 0x38031290u: goto L_38031290;
  10523       case 0x38031292u: goto L_38031292;
  10524       case 0x38031295u: goto L_38031295;
  10525       case 0x38031297u: goto L_38031297;
  10526       case 0x3803129Du: goto L_3803129D;
  10527       case 0x3803129Fu: goto L_3803129F;
  10528       case 0x380312A5u: goto L_380312A5;
  10529       case 0x380312A8u: goto L_380312A8;
  10530       case 0x380312ABu: goto L_380312AB;
  10531       case 0x380312AEu: goto L_380312AE;
  10532       case 0x380312B4u: goto L_380312B4;
  10533       case 0x380312B7u: goto L_380312B7;
  10534       case 0x380312BAu: goto L_380312BA;
  10535       case 0x380312C0u: goto L_380312C0;
  10536       case 0x380312C2u: goto L_380312C2;
  10537       case 0x380312C4u: goto L_380312C4;
  10538       case 0x380312CAu: goto L_380312CA;
  10539       case 0x380312CDu: goto L_380312CD;
  10540       case 0x380312D0u: goto L_380312D0;
  10541       case 0x380312D3u: goto L_380312D3;
  10542       case 0x380312D6u: goto L_380312D6;
  10543       case 0x380312D9u: goto L_380312D9;
  10544       case 0x380312DCu: goto L_380312DC;
  10545       case 0x380312E2u: goto L_380312E2;
  10546       case 0x380312E5u: goto L_380312E5;
  10547       case 0x380312E7u: goto L_380312E7;
  10548       case 0x380312E8u: goto L_380312E8;
  10549       case 0x380312EEu: goto L_380312EE;
  10550       case 0x380312F0u: goto L_380312F0;
  10551       case 0x380312F3u: goto L_380312F3;
  10552       case 0x380312F6u: goto L_380312F6;
  10553       case 0x380312F9u: goto L_380312F9;
  10554       case 0x380312FBu: goto L_380312FB;
  10555       case 0x380312FEu: goto L_380312FE;
  10556       case 0x38031301u: goto L_38031301;
  10557       case 0x38031303u: goto L_38031303;
  10558       case 0x38031306u: goto L_38031306;
  10559       case 0x38031309u: goto L_38031309;
  10560       case 0x3803130Bu: goto L_3803130B;
  10561       case 0x3803130Eu: goto L_3803130E;
  10562       case 0x38031311u: goto L_38031311;
  10563       case 0x38031314u: goto L_38031314;
  10564       case 0x38031317u: goto L_38031317;
  10565       case 0x38031319u: goto L_38031319;
  10566       case 0x3803131Cu: goto L_3803131C;
  10567       case 0x3803131Fu: goto L_3803131F;
  10568       case 0x38031321u: goto L_38031321;
  10569       case 0x38031323u: goto L_38031323;
  10570       case 0x38031326u: goto L_38031326;
  10571       case 0x38031328u: goto L_38031328;
  10572       case 0x3803132Bu: goto L_3803132B;
  10573       case 0x3803132Eu: goto L_3803132E;
  10574       case 0x38031331u: goto L_38031331;
  10575       case 0x38031334u: goto L_38031334;
  10576       case 0x38031337u: goto L_38031337;
  10577       case 0x3803133Au: goto L_3803133A;
  10578       case 0x3803133Cu: goto L_3803133C;
  10579       case 0x3803133Fu: goto L_3803133F;
  10580       case 0x38031342u: goto L_38031342;
  10581       case 0x38031344u: goto L_38031344;
  10582       case 0x38031346u: goto L_38031346;
  10583       case 0x38031349u: goto L_38031349;
  10584       case 0x3803134Bu: goto L_3803134B;
  10585       case 0x3803134Eu: goto L_3803134E;
  10586       case 0x38031351u: goto L_38031351;
  10587       case 0x38031353u: goto L_38031353;
  10588       case 0x38031356u: goto L_38031356;
  10589       case 0x38031359u: goto L_38031359;
  10590       case 0x3803135Cu: goto L_3803135C;
  10591       case 0x3803135Fu: goto L_3803135F;
  10592       case 0x38031362u: goto L_38031362;
  10593       case 0x38031365u: goto L_38031365;
  10594       case 0x38031368u: goto L_38031368;
  10595       case 0x3803136Eu: goto L_3803136E;
  10596       case 0x38031370u: goto L_38031370;
  10597       case 0x38031373u: goto L_38031373;
  10598       case 0x38031376u: goto L_38031376;
  10599       case 0x38031379u: goto L_38031379;
  10600       case 0x3803137Cu: goto L_3803137C;
  10601       case 0x38031382u: goto L_38031382;
  10602       case 0x38031384u: goto L_38031384;
  10603       case 0x38031386u: goto L_38031386;
  10604       case 0x38031389u: goto L_38031389;
  10605       case 0x3803138Cu: goto L_3803138C;
  10606       case 0x38031392u: goto L_38031392;
  10607       case 0x38031394u: goto L_38031394;
  10608       case 0x3803139Au: goto L_3803139A;
  10609       case 0x3803139Du: goto L_3803139D;
  10610       case 0x380313A3u: goto L_380313A3;
  10611       case 0x380313A6u: goto L_380313A6;
  10612       case 0x380313ACu: goto L_380313AC;
  10613       case 0x380313ADu: goto L_380313AD;
  10614       case 0x380313B3u: goto L_380313B3;
  10615       case 0x380313B9u: goto L_380313B9;
  10616       case 0x380313BAu: goto L_380313BA;
  10617       case 0x380313BDu: goto L_380313BD;
  10618       case 0x380313C3u: goto L_380313C3;
  10619       case 0x380313C6u: goto L_380313C6;
  10620       case 0x380313C8u: goto L_380313C8;
  10621       case 0x380313CAu: goto L_380313CA;
  10622       case 0x380313D0u: goto L_380313D0;
  10623       case 0x380313D3u: goto L_380313D3;
  10624       case 0x380313D9u: goto L_380313D9;
  10625       case 0x380313DCu: goto L_380313DC;
  10626       case 0x380313DDu: goto L_380313DD;
  10627       case 0x380313E3u: goto L_380313E3;
  10628       case 0x380313E6u: goto L_380313E6;
  10629       case 0x380313ECu: goto L_380313EC;
  10630       case 0x380313F2u: goto L_380313F2;
  10631       case 0x380313F7u: goto L_380313F7;
  10632       case 0x380313FDu: goto L_380313FD;
  10633       case 0x38031403u: goto L_38031403;
  10634       case 0x38031409u: goto L_38031409;
  10635       case 0x3803140Au: goto L_3803140A;
  10636       case 0x3803140Du: goto L_3803140D;
  10637       case 0x38031413u: goto L_38031413;
  10638       case 0x38031419u: goto L_38031419;
  10639       case 0x3803141Au: goto L_3803141A;
  10640       case 0x3803141Du: goto L_3803141D;
  10641       case 0x38031423u: goto L_38031423;
  10642       case 0x38031426u: goto L_38031426;
  10643       case 0x38031429u: goto L_38031429;
  10644       case 0x3803142Cu: goto L_3803142C;
  10645       case 0x3803142Fu: goto L_3803142F;
  10646       case 0x38031432u: goto L_38031432;
  10647       case 0x38031435u: goto L_38031435;
  10648       case 0x3803143Bu: goto L_3803143B;
  10649       case 0x3803143Eu: goto L_3803143E;
  10650       case 0x38031441u: goto L_38031441;
  10651       case 0x38031444u: goto L_38031444;
  10652       case 0x3803144Au: goto L_3803144A;
  10653       case 0x3803144Bu: goto L_3803144B;
  10654       case 0x38031451u: goto L_38031451;
  10655       case 0x38031454u: goto L_38031454;
  10656       case 0x3803145Au: goto L_3803145A;
  10657       case 0x3803145Du: goto L_3803145D;
  10658       case 0x38031460u: goto L_38031460;
  10659       case 0x38031463u: goto L_38031463;
  10660       case 0x38031469u: goto L_38031469;
  10661       case 0x3803146Bu: goto L_3803146B;
  10662       case 0x38031471u: goto L_38031471;
  10663       case 0x38031474u: goto L_38031474;
  10664       case 0x3803147Au: goto L_3803147A;
  10665       case 0x3803147Du: goto L_3803147D;
  10666       case 0x38031483u: goto L_38031483;
  10667       case 0x38031484u: goto L_38031484;
  10668       case 0x3803148Au: goto L_3803148A;
  10669       case 0x3803148Bu: goto L_3803148B;
  10670       case 0x3803148Eu: goto L_3803148E;
  10671       case 0x38031494u: goto L_38031494;
  10672       case 0x3803149Au: goto L_3803149A;
  10673       case 0x3803149Du: goto L_3803149D;
  10674       case 0x3803149Fu: goto L_3803149F;
  10675       case 0x380314A1u: goto L_380314A1;
  10676       case 0x380314A7u: goto L_380314A7;
  10677       case 0x380314AAu: goto L_380314AA;
  10678       case 0x380314B0u: goto L_380314B0;
  10679       case 0x380314B3u: goto L_380314B3;
  10680       case 0x380314B4u: goto L_380314B4;
  10681       case 0x380314BAu: goto L_380314BA;
  10682       case 0x380314BDu: goto L_380314BD;
  10683       case 0x380314C3u: goto L_380314C3;
  10684       case 0x380314C9u: goto L_380314C9;
  10685       case 0x380314CEu: goto L_380314CE;
  10686       case 0x380314D4u: goto L_380314D4;
  10687       case 0x380314DAu: goto L_380314DA;
  10688       case 0x380314E0u: goto L_380314E0;
  10689       case 0x380314E1u: goto L_380314E1;
  10690       case 0x380314E4u: goto L_380314E4;
  10691       case 0x380314EAu: goto L_380314EA;
  10692       case 0x380314F0u: goto L_380314F0;
  10693       case 0x380314F1u: goto L_380314F1;
  10694       case 0x380314F4u: goto L_380314F4;
  10695       case 0x380314FAu: goto L_380314FA;
  10696       case 0x380314FDu: goto L_380314FD;
  10697       case 0x38031500u: goto L_38031500;
  10698       case 0x38031503u: goto L_38031503;
  10699       case 0x38031508u: goto L_38031508;
  10700       case 0x3803150Bu: goto L_3803150B;
  10701       case 0x38031510u: goto L_38031510;
  10702       case 0x38031513u: goto L_38031513;
  10703       case 0x38031516u: goto L_38031516;
  10704       case 0x38031519u: goto L_38031519;
  10705       case 0x3803151Cu: goto L_3803151C;
  10706       case 0x3803151Fu: goto L_3803151F;
  10707       case 0x38031525u: goto L_38031525;
  10708       case 0x38031527u: goto L_38031527;
  10709       case 0x3803152Du: goto L_3803152D;
  10710       case 0x38031530u: goto L_38031530;
  10711       case 0x38031532u: goto L_38031532;
  10712       case 0x38031534u: goto L_38031534;
  10713       case 0x38031536u: goto L_38031536;
  10714       case 0x3803153Bu: goto L_3803153B;
  10715       case 0x3803153Eu: goto L_3803153E;
  10716       case 0x38031540u: goto L_38031540;
  10717       case 0x38031542u: goto L_38031542;
  10718       case 0x38031545u: goto L_38031545;
  10719       case 0x38031547u: goto L_38031547;
  10720       case 0x3803154Au: goto L_3803154A;
  10721       case 0x3803154Du: goto L_3803154D;
  10722       case 0x38031550u: goto L_38031550;
  10723       case 0x38031552u: goto L_38031552;
  10724       case 0x38031554u: goto L_38031554;
  10725       case 0x3803155Au: goto L_3803155A;
  10726       case 0x3803155Du: goto L_3803155D;
  10727       case 0x38031560u: goto L_38031560;
  10728       case 0x38031561u: goto L_38031561;
  10729       case 0x38031562u: goto L_38031562;
  10730       case 0x38031564u: goto L_38031564;
  10731       case 0x38031569u: goto L_38031569;
  10732       case 0x3803156Cu: goto L_3803156C;
  10733       case 0x3803156Fu: goto L_3803156F;
  10734       case 0x38031572u: goto L_38031572;
  10735       case 0x38031578u: goto L_38031578;
  10736       case 0x3803157Eu: goto L_3803157E;
  10737       case 0x38031584u: goto L_38031584;
  10738       case 0x38031587u: goto L_38031587;
  10739       case 0x38031588u: goto L_38031588;
  10740       case 0x38031589u: goto L_38031589;
  10741       case 0x3803158Bu: goto L_3803158B;
  10742       case 0x38031591u: goto L_38031591;
  10743       case 0x38031596u: goto L_38031596;
  10744       case 0x3803159Cu: goto L_3803159C;
  10745       case 0x3803159Fu: goto L_3803159F;
  10746       case 0x380315A2u: goto L_380315A2;
  10747       case 0x380315A8u: goto L_380315A8;
  10748       case 0x380315AAu: goto L_380315AA;
  10749       case 0x380315ADu: goto L_380315AD;
  10750       case 0x380315B3u: goto L_380315B3;
  10751       case 0x380315B5u: goto L_380315B5;
  10752       case 0x380315BAu: goto L_380315BA;
  10753       case 0x380315BDu: goto L_380315BD;
  10754       case 0x380315C0u: goto L_380315C0;
  10755       case 0x380315C2u: goto L_380315C2;
  10756       case 0x380315C9u: goto L_380315C9;
  10757       case 0x380315CBu: goto L_380315CB;
  10758       case 0x380315CCu: goto L_380315CC;
  10759       case 0x380315CDu: goto L_380315CD;
  10760       case 0x380315CEu: goto L_380315CE;
  10761       case 0x380315CFu: goto L_380315CF;
  10762       case 0x380315D0u: goto L_380315D0;
  10763       case 0x380315D1u: goto L_380315D1;
  10764       case 0x380315D6u: goto L_380315D6;
  10765       case 0x380315DBu: goto L_380315DB;
  10766       case 0x380315DEu: goto L_380315DE;
  10767       case 0x380315DFu: goto L_380315DF;
  10768       case 0x380315E2u: goto L_380315E2;
  10769       case 0x380315E3u: goto L_380315E3;
  10770       case 0x380315E5u: goto L_380315E5;
  10771       case 0x380315EAu: goto L_380315EA;
  10772       case 0x380315ECu: goto L_380315EC;
  10773       case 0x380315EEu: goto L_380315EE;
  10774       case 0x380315F4u: goto L_380315F4;
  10775       case 0x380315FAu: goto L_380315FA;
  10776       case 0x380315FBu: goto L_380315FB;
  10777       case 0x38031601u: goto L_38031601;
  10778       case 0x38031604u: goto L_38031604;
  10779       case 0x38031606u: goto L_38031606;
  10780       case 0x38031607u: goto L_38031607;
  10781       case 0x3803160Eu: goto L_3803160E;
  10782       case 0x38031613u: goto L_38031613;
  10783       case 0x38031616u: goto L_38031616;
  10784       case 0x3803161Cu: goto L_3803161C;
  10785       case 0x3803161Fu: goto L_3803161F;
  10786       case 0x38031622u: goto L_38031622;
  10787       case 0x38031628u: goto L_38031628;
  10788       case 0x3803162Eu: goto L_3803162E;
  10789       case 0x38031631u: goto L_38031631;
  10790       case 0x38031633u: goto L_38031633;
  10791       case 0x38031636u: goto L_38031636;
  10792       case 0x38031638u: goto L_38031638;
  10793       case 0x3803163Au: goto L_3803163A;
  10794       case 0x38031640u: goto L_38031640;
  10795       case 0x38031643u: goto L_38031643;
  10796       case 0x38031646u: goto L_38031646;
  10797       case 0x3803164Cu: goto L_3803164C;
  10798       case 0x3803164Eu: goto L_3803164E;
  10799       case 0x38031651u: goto L_38031651;
  10800       case 0x38031657u: goto L_38031657;
  10801       case 0x38031659u: goto L_38031659;
  10802       case 0x3803165Eu: goto L_3803165E;
  10803       case 0x38031661u: goto L_38031661;
  10804       case 0x38031664u: goto L_38031664;
  10805       case 0x38031666u: goto L_38031666;
  10806       case 0x3803166Du: goto L_3803166D;
  10807       case 0x3803166Fu: goto L_3803166F;
  10808       case 0x38031670u: goto L_38031670;
  10809       case 0x38031671u: goto L_38031671;
  10810       case 0x38031672u: goto L_38031672;
  10811       case 0x38031673u: goto L_38031673;
  10812       case 0x38031674u: goto L_38031674;
  10813       case 0x38031675u: goto L_38031675;
  10814       case 0x3803167Au: goto L_3803167A;
  10815       case 0x3803167Fu: goto L_3803167F;
  10816       case 0x38031682u: goto L_38031682;
  10817       case 0x38031683u: goto L_38031683;
  10818       case 0x38031686u: goto L_38031686;
  10819       case 0x38031687u: goto L_38031687;
  10820       case 0x38031689u: goto L_38031689;
  10821       case 0x3803168Eu: goto L_3803168E;
  10822       case 0x38031690u: goto L_38031690;
  10823       case 0x38031692u: goto L_38031692;
  10824       case 0x38031698u: goto L_38031698;
  10825       case 0x3803169Eu: goto L_3803169E;
  10826       case 0x380316A1u: goto L_380316A1;
  10827       case 0x380316A7u: goto L_380316A7;
  10828       case 0x380316A8u: goto L_380316A8;
  10829       case 0x380316AAu: goto L_380316AA;
  10830       case 0x380316B1u: goto L_380316B1;
  10831       case 0x380316B2u: goto L_380316B2;
  10832       case 0x380316B7u: goto L_380316B7;
  10833       case 0x380316BDu: goto L_380316BD;
  10834       case 0x380316C0u: goto L_380316C0;
  10835       case 0x380316C2u: goto L_380316C2;
  10836       case 0x380316C6u: goto L_380316C6;
  10837       case 0x380316C7u: goto L_380316C7;
  10838       case 0x380316CAu: goto L_380316CA;
  10839       case 0x380316D0u: goto L_380316D0;
  10840       case 0x380316D3u: goto L_380316D3;
  10841       case 0x380316D5u: goto L_380316D5;
  10842       case 0x380316DBu: goto L_380316DB;
  10843       case 0x380316DCu: goto L_380316DC;
  10844       case 0x380316DDu: goto L_380316DD;
  10845       case 0x380316DFu: goto L_380316DF;
  10846       case 0x380316E4u: goto L_380316E4;
  10847       case 0x380316E7u: goto L_380316E7;
  10848       case 0x380316E8u: goto L_380316E8;
  10849       case 0x380316E9u: goto L_380316E9;
  10850       case 0x380316F0u: goto L_380316F0;
  10851       case 0x380316F2u: goto L_380316F2;
  10852       case 0x380316F3u: goto L_380316F3;
  10853       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  10854     }
  10855     RECOMP_REGS_OUT();
  10856 }
  10857 
  10858 void sub_380316B2(void) {
  10859     int _fpu_cmp = 0;
  10860     uint32_t _cf = 0;
  10861     int _df = 1;
  10862     uint32_t _flag_k = FK_NONE;
  10863     uint32_t _flag_a = 0, _flag_b = 0;
  10864     uint32_t _itail_tgt = 0;
  10865     RECOMP_REGS_LOCALS
  10866     RECOMP_ENTER(0x380316B2u);
  10867 
  10868     goto L_380316B2;
  10869 L_38030E4E:
  10870     ecx = MEM32(esi + 0x80); /* 0x38030E4E: mov ecx, dword ptr [esi + 0x80] */
  10871 L_38030E54:
  10872     edi = MEM32(ebp + 0xC); /* 0x38030E54: mov edi, dword ptr [ebp + 0xc] */
  10873 L_38030E57:
  10874     eax = ecx + eax * 4; /* 0x38030E57: lea eax, [ecx + eax*4] */
  10875 L_38030E5A:
  10876     ecx = (int32_t)(int16_t)MEM16(eax); /* 0x38030E5A: movsx ecx, word ptr [eax] */
  10877 L_38030E5D:
  10878     /* cmp ecx, edi */ /* 0x38030E5D: cmp ecx, edi */
  10879     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  10880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10881     _flag_k = FK_CMP;
  10882 L_38030E5F:
  10883     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E5F: je 0x380316b7 */
  10884 L_38030E65:
  10885     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x38030E65: cmp ecx, dword ptr [esi + 0xc] */
  10886     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
  10887     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10888     _flag_k = FK_CMP;
  10889 L_38030E68:
  10890     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E68: je 0x380316b7 */
  10891 L_38030E6E:
  10892     ecx = MEM32(esi + 0xB0); /* 0x38030E6E: mov ecx, dword ptr [esi + 0xb0] */
  10893 L_38030E74:
  10894     /* cmp ecx, ebx */ /* 0x38030E74: cmp ecx, ebx */
  10895     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  10896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10897     _flag_k = FK_CMP;
  10898 L_38030E76:
  10899     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E76: je 0x380316b7 */
  10900 L_38030E7C:
  10901     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x38030E7C: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
  10902     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
  10903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10904     _flag_k = FK_CMP;
  10905 L_38030E84:
  10906     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380310BB; /* 0x38030E84: je 0x380310bb */
  10907 L_38030E8A:
  10908     edx = MEM32(esi + 0x44); /* 0x38030E8A: mov edx, dword ptr [esi + 0x44] */
  10909 L_38030E8D:
  10910     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x38030E8D: mov ax, word ptr [eax + 2] */
  10911 L_38030E91:
  10912     MEM32(ebp + (-0xE4)) = edx; /* 0x38030E91: mov dword ptr [ebp - 0xe4], edx */
  10913 L_38030E97:
  10914     MEM32(ebp + (-0xE0)) = ebx; /* 0x38030E97: mov dword ptr [ebp - 0xe0], ebx */
  10915 L_38030E9D:
  10916     fp_push_i64((int64_t)MEM64(ebp + (-0xE4))); /* 0x38030E9D: fild qword ptr [ebp - 0xe4] */
  10917 L_38030EA3:
  10918     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38030EA3: fmul dword ptr [0x3804eac0] */
  10919 L_38030EA9:
  10920     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  10921     eax = eax & 3; /* 0x38030EA9: and eax, 3 */
  10922     _cf = 0;
  10923     _flag_k = FK_TEST;
  10924 L_38030EAC:
  10925     MEM32(ebp + (-0x14)) = eax; /* 0x38030EAC: mov dword ptr [ebp - 0x14], eax */
  10926 L_38030EAF:
  10927     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030EAF: fcom dword ptr [0x3804e8e4] */
  10928 L_38030EB5:
  10929     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EB5: fnstsw ax */
  10930 L_38030EB7:
  10931     /* test HI8(eax), 1 */ /* 0x38030EB7: test ah, 1 */
  10932     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10933     _cf = 0;
  10934     _flag_k = FK_NARROW(FK_TEST, 24);
  10935 L_38030EBA:
  10936     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030ED1; /* 0x38030EBA: jne 0x38030ed1 */
  10937 L_38030EBC:
  10938     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030EBC: fcom qword ptr [0x3804e8f8] */
  10939 L_38030EC2:
  10940     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EC2: fnstsw ax */
  10941 L_38030EC4:
  10942     /* test HI8(eax), 1 */ /* 0x38030EC4: test ah, 1 */
  10943     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10944     _cf = 0;
  10945     _flag_k = FK_NARROW(FK_TEST, 24);
  10946 L_38030EC7:
  10947     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030ED1; /* 0x38030EC7: je 0x38030ed1 */
  10948 L_38030EC9:
  10949     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030EC9: fmul dword ptr [0x3804e8bc] */
  10950 L_38030ECF:
  10951     goto L_38030EF2; /* 0x38030ECF: jmp 0x38030ef2 */
  10952 L_38030ED1:
  10953     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030ED1: fmul dword ptr [0x3804e8f4] */
  10954 L_38030ED7:
  10955     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10957     esp = esp - 8; /* 0x38030ED7: sub esp, 8 */
  10958     _flag_k = FK_CMP;
  10959 L_38030EDA:
  10960     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EDA: fst dword ptr [ebp - 0x10] */
  10961 L_38030EDD:
  10962     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030EDD: fstp qword ptr [esp] */
  10963 L_38030EE0:
  10964     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030EE0: call dword ptr [0x3804e0ac] */
  10965     RECOMP_FLAGS_IN();
  10966 L_38030EE6:
  10967     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030EE6: fsubr dword ptr [ebp - 0x10] */
  10968 L_38030EE9:
  10969     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10971     esp = esp + 8; /* 0x38030EE9: add esp, 8 */
  10972     _flag_k = FK_ADD;
  10973 L_38030EEC:
  10974     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030EEC: fmul dword ptr [0x3804e8f0] */
  10975 L_38030EF2:
  10976     fp_push(_st[0]); /* 0x38030EF2: fld st(0) */
  10977 L_38030EF4:
  10978     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030EF4: fsin  */
  10979 L_38030EF6:
  10980     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030EF6: fld dword ptr [0x3804e8e4] */
  10981 L_38030EFC:
  10982     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EFC: fst dword ptr [ebp - 0x10] */
  10983 L_38030EFF:
  10984     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38030EFF: fstp dword ptr [ebp - 0x74] */
  10985 L_38030F02:
  10986     eax = MEM32(ebp + (-0x10)); /* 0x38030F02: mov eax, dword ptr [ebp - 0x10] */
  10987 L_38030F05:
  10988     MEM32(ebp + (-0x6C)) = eax; /* 0x38030F05: mov dword ptr [ebp - 0x6c], eax */
  10989 L_38030F08:
  10990     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x38030F08: fstp dword ptr [ebp - 0x70] */
  10991 L_38030F0B:
  10992     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F0B: fcos  */
  10993 L_38030F0D:
  10994     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38030F0D: fstp dword ptr [ebp - 0x68] */
  10995 L_38030F10:
  10996     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38030F10: fild dword ptr [ebp - 0x14] */
  10997 L_38030F13:
  10998     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38030F13: fmul qword ptr [0x3804f6a0] */
  10999 L_38030F19:
  11000     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38030F19: fadd qword ptr [0x3804f698] */
  11001 L_38030F1F:
  11002     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030F1F: fcom dword ptr [0x3804e8e4] */
  11003 L_38030F25:
  11004     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F25: fnstsw ax */
  11005 L_38030F27:
  11006     /* test HI8(eax), 1 */ /* 0x38030F27: test ah, 1 */
  11007     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11008     _cf = 0;
  11009     _flag_k = FK_NARROW(FK_TEST, 24);
  11010 L_38030F2A:
  11011     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030F41; /* 0x38030F2A: jne 0x38030f41 */
  11012 L_38030F2C:
  11013     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030F2C: fcom qword ptr [0x3804e8f8] */
  11014 L_38030F32:
  11015     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F32: fnstsw ax */
  11016 L_38030F34:
  11017     /* test HI8(eax), 1 */ /* 0x38030F34: test ah, 1 */
  11018     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11019     _cf = 0;
  11020     _flag_k = FK_NARROW(FK_TEST, 24);
  11021 L_38030F37:
  11022     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030F41; /* 0x38030F37: je 0x38030f41 */
  11023 L_38030F39:
  11024     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030F39: fmul dword ptr [0x3804e8bc] */
  11025 L_38030F3F:
  11026     goto L_38030F62; /* 0x38030F3F: jmp 0x38030f62 */
  11027 L_38030F41:
  11028     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030F41: fmul dword ptr [0x3804e8f4] */
  11029 L_38030F47:
  11030     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11032     esp = esp - 8; /* 0x38030F47: sub esp, 8 */
  11033     _flag_k = FK_CMP;
  11034 L_38030F4A:
  11035     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030F4A: fst dword ptr [ebp - 0x10] */
  11036 L_38030F4D:
  11037     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030F4D: fstp qword ptr [esp] */
  11038 L_38030F50:
  11039     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030F50: call dword ptr [0x3804e0ac] */
  11040     RECOMP_FLAGS_IN();
  11041 L_38030F56:
  11042     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030F56: fsubr dword ptr [ebp - 0x10] */
  11043 L_38030F59:
  11044     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11045     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11046     esp = esp + 8; /* 0x38030F59: add esp, 8 */
  11047     _flag_k = FK_ADD;
  11048 L_38030F5C:
  11049     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030F5C: fmul dword ptr [0x3804e8f0] */
  11050 L_38030F62:
  11051     fp_push(_st[0]); /* 0x38030F62: fld st(0) */
  11052 L_38030F64:
  11053     PUSH32(esp, 0x3806CB10u); /* 0x38030F64: push 0x3806cb10 */
  11054 L_38030F69:
  11055     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030F69: fsin  */
  11056 L_38030F6B:
  11057     PUSH32(esp, 0x000F6951u); /* 0x38030F6B: push 0xf6951 */
  11058 L_38030F70:
  11059     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030F70: fld dword ptr [0x3804e8e4] */
  11060 L_38030F76:
  11061     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030F76: fst dword ptr [ebp - 0x14] */
  11062 L_38030F79:
  11063     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38030F79: fstp dword ptr [ebp - 0x64] */
  11064 L_38030F7C:
  11065     ecx = MEM32(ebp + (-0x14)); /* 0x38030F7C: mov ecx, dword ptr [ebp - 0x14] */
  11066 L_38030F7F:
  11067     MEM32(ebp + (-0x5C)) = ecx; /* 0x38030F7F: mov dword ptr [ebp - 0x5c], ecx */
  11068 L_38030F82:
  11069     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x38030F82: fstp dword ptr [ebp - 0x60] */
  11070 L_38030F85:
  11071     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F85: fcos  */
  11072 L_38030F87:
  11073     fp_push(_st[0]); /* 0x38030F87: fld st(0) */
  11074 L_38030F89:
  11075     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030F89: fmul dword ptr [ebp - 0x74] */
  11076 L_38030F8C:
  11077     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030F8C: fld dword ptr [ebp - 0x5c] */
  11078 L_38030F8F:
  11079     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030F8F: fmul dword ptr [ebp - 0x70] */
  11080 L_38030F92:
  11081     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030F92: faddp st(1) */
  11082 L_38030F94:
  11083     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030F94: fld dword ptr [ebp - 0x60] */
  11084 L_38030F97:
  11085     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030F97: fmul dword ptr [ebp - 0x6c] */
  11086 L_38030F9A:
  11087     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030F9A: fsubp st(1) */
  11088 L_38030F9C:
  11089     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x38030F9C: fld dword ptr [ebp - 0x68] */
  11090 L_38030F9F:
  11091     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030F9F: fmul dword ptr [ebp - 0x64] */
  11092 L_38030FA2:
  11093     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FA2: faddp st(1) */
  11094 L_38030FA4:
  11095     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FA4: fld dword ptr [ebp - 0x60] */
  11096 L_38030FA7:
  11097     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FA7: fmul dword ptr [ebp - 0x68] */
  11098 L_38030FAA:
  11099     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FAA: fld dword ptr [ebp - 0x5c] */
  11100 L_38030FAD:
  11101     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FAD: fmul dword ptr [ebp - 0x74] */
  11102 L_38030FB0:
  11103     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FB0: fsubp st(1) */
  11104 L_38030FB2:
  11105     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x38030FB2: fld dword ptr [ebp - 0x6c] */
  11106 L_38030FB5:
  11107     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FB5: fmul dword ptr [ebp - 0x64] */
  11108 L_38030FB8:
  11109     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FB8: faddp st(1) */
  11110 L_38030FBA:
  11111     fp_push(_st[2]); /* 0x38030FBA: fld st(2) */
  11112 L_38030FBC:
  11113     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030FBC: fmul dword ptr [ebp - 0x70] */
  11114 L_38030FBF:
  11115     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FBF: faddp st(1) */
  11116 L_38030FC1:
  11117     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030FC1: fstp dword ptr [ebp - 0x14] */
  11118 L_38030FC4:
  11119     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FC4: fld dword ptr [ebp - 0x60] */
  11120 L_38030FC7:
  11121     edx = MEM32(ebp + (-0x14)); /* 0x38030FC7: mov edx, dword ptr [ebp - 0x14] */
  11122 L_38030FCA:
  11123     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FCA: fmul dword ptr [ebp - 0x74] */
  11124 L_38030FCD:
  11125     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x38030FCD: fld dword ptr [ebp - 0x70] */
  11126 L_38030FD0:
  11127     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FD0: fmul dword ptr [ebp - 0x64] */
  11128 L_38030FD3:
  11129     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FD3: fsubp st(1) */
  11130 L_38030FD5:
  11131     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FD5: fld dword ptr [ebp - 0x5c] */
  11132 L_38030FD8:
  11133     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FD8: fmul dword ptr [ebp - 0x68] */
  11134 L_38030FDB:
  11135     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FDB: faddp st(1) */
  11136 L_38030FDD:
  11137     fp_push(_st[2]); /* 0x38030FDD: fld st(2) */
  11138 L_38030FDF:
  11139     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FDF: fmul dword ptr [ebp - 0x6c] */
  11140 L_38030FE2:
  11141     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FE2: faddp st(1) */
  11142 L_38030FE4:
  11143     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030FE4: fstp dword ptr [ebp - 0x10] */
  11144 L_38030FE7:
  11145     eax = MEM32(ebp + (-0x10)); /* 0x38030FE7: mov eax, dword ptr [ebp - 0x10] */
  11146 L_38030FEA:
  11147     fp_xch(1); /* 0x38030FEA: fxch st(1) */
  11148 L_38030FEC:
  11149     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FEC: fmul dword ptr [ebp - 0x68] */
  11150 L_38030FEF:
  11151     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x38030FEF: fld dword ptr [ebp - 0x64] */
  11152 L_38030FF2:
  11153     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FF2: fmul dword ptr [ebp - 0x74] */
  11154 L_38030FF5:
  11155     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FF5: fld dword ptr [ebp - 0x5c] */
  11156 L_38030FF8:
  11157     MEM32(ebp + (-0x5C)) = eax; /* 0x38030FF8: mov dword ptr [ebp - 0x5c], eax */
  11158 L_38030FFB:
  11159     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FFB: fmul dword ptr [ebp - 0x6c] */
  11160 L_38030FFE:
  11161     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FFE: faddp st(1) */
  11162 L_38031000:
  11163     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38031000: fld dword ptr [ebp - 0x60] */
  11164 L_38031003:
  11165     MEM32(ebp + (-0x60)) = edx; /* 0x38031003: mov dword ptr [ebp - 0x60], edx */
  11166 L_38031006:
  11167     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38031006: fmul dword ptr [ebp - 0x70] */
  11168 L_38031009:
  11169     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031009: faddp st(1) */
  11170 L_3803100B:
  11171     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803100B: fsubp st(1) */
  11172 L_3803100D:
  11173     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3803100D: fstp dword ptr [ebp - 0x58] */
  11174 L_38031010:
  11175     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38031010: fstp dword ptr [ebp - 0x64] */
  11176 L_38031013:
  11177     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x38031013: call dword ptr [0x3804e4b0] */
  11178     RECOMP_FLAGS_IN();
  11179 L_38031019:
  11180     edi = eax; /* 0x38031019: mov edi, eax */
  11181 L_3803101B:
  11182     eax = MEM32(esi + 0x98); /* 0x3803101B: mov eax, dword ptr [esi + 0x98] */
  11183 L_38031021:
  11184     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11185     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11186     esp = esp + 8; /* 0x38031021: add esp, 8 */
  11187     _flag_k = FK_ADD;
  11188 L_38031024:
  11189     /* cmp eax, ebx */ /* 0x38031024: cmp eax, ebx */
  11190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  11191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11192     _flag_k = FK_CMP;
  11193 L_38031026:
  11194     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803104E; /* 0x38031026: jne 0x3803104e */
  11195 L_38031028:
  11196     PUSH32(esp, 0x10u); /* 0x38031028: push 0x10 */
  11197 L_3803102A:
  11198     RECOMP_ICALL(0x3804B676u); /* 0x3803102A: call 0x3804b676 */ /* not lifted */
  11199     RECOMP_FLAGS_IN();
  11200 L_3803102F:
  11201     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11202     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11203     esp = esp + 4; /* 0x3803102F: add esp, 4 */
  11204     _flag_k = FK_ADD;
  11205 L_38031032:
  11206     /* cmp eax, ebx */ /* 0x38031032: cmp eax, ebx */
  11207     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  11208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11209     _flag_k = FK_CMP;
  11210 L_38031034:
  11211     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031046; /* 0x38031034: je 0x38031046 */
  11212 L_38031036:
  11213     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031036: mov cl, byte ptr [ebp + 0xb] */
  11214 L_38031039:
  11215     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031039: mov byte ptr [eax], cl */
  11216 L_3803103B:
  11217     MEM32(eax + 0x4) = ebx; /* 0x3803103B: mov dword ptr [eax + 4], ebx */
  11218 L_3803103E:
  11219     MEM32(eax + 0x8) = ebx; /* 0x3803103E: mov dword ptr [eax + 8], ebx */
  11220 L_38031041:
  11221     MEM32(eax + 0xC) = ebx; /* 0x38031041: mov dword ptr [eax + 0xc], ebx */
  11222 L_38031044:
  11223     goto L_38031048; /* 0x38031044: jmp 0x38031048 */
  11224 L_38031046:
  11225     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11226     eax = 0; /* 0x38031046: xor eax, eax */
  11227     _cf = 0;
  11228     _flag_k = FK_TEST;
  11229 L_38031048:
  11230     MEM32(esi + 0x98) = eax; /* 0x38031048: mov dword ptr [esi + 0x98], eax */
  11231 L_3803104E:
  11232     PUSH32(esp, 0x58u); /* 0x3803104E: push 0x58 */
  11233 L_38031050:
  11234     RECOMP_ICALL(0x3804B676u); /* 0x38031050: call 0x3804b676 */ /* not lifted */
  11235     RECOMP_FLAGS_IN();
  11236 L_38031055:
  11237     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11239     esp = esp + 4; /* 0x38031055: add esp, 4 */
  11240     _flag_k = FK_ADD;
  11241 L_38031058:
  11242     MEM32(ebp + (-0x24)) = eax; /* 0x38031058: mov dword ptr [ebp - 0x24], eax */
  11243 L_3803105B:
  11244     /* cmp eax, ebx */ /* 0x3803105B: cmp eax, ebx */
  11245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  11246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11247     _flag_k = FK_CMP;
  11248 L_3803105D:
  11249     MEM32(ebp + (-0x4)) = ebx; /* 0x3803105D: mov dword ptr [ebp - 4], ebx */
  11250 L_38031060:
  11251     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031094; /* 0x38031060: je 0x38031094 */
  11252 L_38031062:
  11253     ecx = MEM32(ebp + (-0x78)); /* 0x38031062: mov ecx, dword ptr [ebp - 0x78] */
  11254 L_38031065:
  11255     edx = MEM32(esi + 0xB0); /* 0x38031065: mov edx, dword ptr [esi + 0xb0] */
  11256 L_3803106B:
  11257     fp_push(*(float*)&MEM32(edx + ecx + 0xC)); /* 0x3803106B: fld dword ptr [edx + ecx + 0xc] */
  11258 L_3803106F:
  11259     PUSH32(esp, ebx); /* 0x3803106F: push ebx */
  11260 L_38031070:
  11261     _st[0] *= (double)*(float*)ADDR(0x3804F694); /* 0x38031070: fmul dword ptr [0x3804f694] */
  11262 L_38031076:
  11263     PUSH32(esp, ebx); /* 0x38031076: push ebx */
  11264 L_38031077:
  11265     PUSH32(esp, ebx); /* 0x38031077: push ebx */
  11266 L_38031078:
  11267     PUSH32(esp, ebx); /* 0x38031078: push ebx */
  11268 L_38031079:
  11269     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  11270     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11271     edx = edx + ecx; /* 0x38031079: add edx, ecx */
  11272     _flag_k = FK_ADD;
  11273 L_3803107B:
  11274     PUSH32(esp, ebx); /* 0x3803107B: push ebx */
  11275 L_3803107C:
  11276     PUSH32(esp, edi); /* 0x3803107C: push edi */
  11277 L_3803107D:
  11278     PUSH32(esp, ecx); /* 0x3803107D: push ecx */
  11279 L_3803107E:
  11280     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3803107E: fstp dword ptr [esp] */
  11281 L_38031081:
  11282     PUSH32(esp, 0x00FFFFFFu); /* 0x38031081: push 0xffffff */
  11283 L_38031086:
  11284     ecx = ebp + (-0x64); /* 0x38031086: lea ecx, [ebp - 0x64] */
  11285 L_38031089:
  11286     PUSH32(esp, ecx); /* 0x38031089: push ecx */
  11287 L_3803108A:
  11288     PUSH32(esp, edx); /* 0x3803108A: push edx */
  11289 L_3803108B:
  11290     ecx = eax; /* 0x3803108B: mov ecx, eax */
  11291 L_3803108D:
  11292     RECOMP_ICALL(0x3800B350u); /* 0x3803108D: call 0x3800b350 */ /* not lifted */
  11293     RECOMP_FLAGS_IN();
  11294 L_38031092:
  11295     goto L_38031096; /* 0x38031092: jmp 0x38031096 */
  11296 L_38031094:
  11297     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11298     eax = 0; /* 0x38031094: xor eax, eax */
  11299     _cf = 0;
  11300     _flag_k = FK_TEST;
  11301 L_38031096:
  11302     ecx = MEM32(esi + 0x98); /* 0x38031096: mov ecx, dword ptr [esi + 0x98] */
  11303 L_3803109C:
  11304     edx = ebp + (-0xB0); /* 0x3803109C: lea edx, [ebp - 0xb0] */
  11305 L_380310A2:
  11306     PUSH32(esp, edx); /* 0x380310A2: push edx */
  11307 L_380310A3:
  11308     MEM32(ebp + (-0xB0)) = eax; /* 0x380310A3: mov dword ptr [ebp - 0xb0], eax */
  11309 L_380310A9:
  11310     eax = MEM32(ecx + 0x8); /* 0x380310A9: mov eax, dword ptr [ecx + 8] */
  11311 L_380310AC:
  11312     PUSH32(esp, 1); /* 0x380310AC: push 1 */
  11313 L_380310AE:
  11314     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380310AE: mov dword ptr [ebp - 4], 0xffffffff */
  11315 L_380310B5:
  11316     PUSH32(esp, eax); /* 0x380310B5: push eax */
  11317 L_380310B6:
  11318     goto L_380316B2; /* 0x380310B6: jmp 0x380316b2 */
  11319 L_380310BB:
  11320     /* cmp ecx, ebx */ /* 0x380310BB: cmp ecx, ebx */
  11321     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  11322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11323     _flag_k = FK_CMP;
  11324 L_380310BD:
  11325     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x380310BD: je 0x380316b7 */
  11326 L_380310C3:
  11327     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x380310C3: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
  11328     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
  11329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11330     _flag_k = FK_CMP;
  11331 L_380310CB:
  11332     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_380316B7; /* 0x380310CB: jne 0x380316b7 */
  11333 L_380310D1:
  11334     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x380310D1: mov ax, word ptr [eax + 2] */
  11335 L_380310D5:
  11336     MEM32(ebp + (-0x1C)) = 0; /* 0x380310D5: mov dword ptr [ebp - 0x1c], 0 */
  11337 L_380310DC:
  11338     MEM32(ebp + (-0x10)) = eax; /* 0x380310DC: mov dword ptr [ebp - 0x10], eax */
  11339 L_380310DF:
  11340     if (2u) _cf = (((MEM16(ebp + (-0x10))) >> 1) & 1u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
  11341     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x10)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  11342     MEM16(ebp + (-0x10)) = (uint16_t)(MEM16(ebp + (-0x10)) >> 2u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
  11343 L_380310E4:
  11344     ecx = MEM32(ebp + (-0x10)); /* 0x380310E4: mov ecx, dword ptr [ebp - 0x10] */
  11345 L_380310E7:
  11346     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  11347     eax = eax & 3; /* 0x380310E7: and eax, 3 */
  11348     _cf = 0;
  11349     _flag_k = FK_TEST;
  11350 L_380310EA:
  11351     edi = eax; /* 0x380310EA: mov edi, eax */
  11352 L_380310EC:
  11353     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
  11354     ecx = ecx & 0xFFFFu; /* 0x380310EC: and ecx, 0xffff */
  11355     _cf = 0;
  11356     _flag_k = FK_TEST;
  11357 L_380310F2:
  11358     eax = ecx; /* 0x380310F2: mov eax, ecx */
  11359 L_380310F4:
  11360     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x380310F4: cdq  */
  11361 L_380310F5:
  11362     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x380310F5: idiv dword ptr [ebp - 0x88] */
  11363       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  11364       else { eax = 0; edx = 0; } }
  11365 L_380310FB:
  11366     eax = ecx; /* 0x380310FB: mov eax, ecx */
  11367 L_380310FD:
  11368     ecx = esi + 0x6C; /* 0x380310FD: lea ecx, [esi + 0x6c] */
  11369 L_38031100:
  11370     MEM32(ebp + (-0x24)) = edi; /* 0x38031100: mov dword ptr [ebp - 0x24], edi */
  11371 L_38031103:
  11372     MEM32(ebp + (-0x14)) = edx; /* 0x38031103: mov dword ptr [ebp - 0x14], edx */
  11373 L_38031106:
  11374     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031106: cdq  */
  11375 L_38031107:
  11376     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38031107: fild dword ptr [ebp - 0x14] */
  11377 L_3803110A:
  11378     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x3803110A: idiv dword ptr [ebp - 0x88] */
  11379       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  11380       else { eax = 0; edx = 0; } }
  11381 L_38031110:
  11382     /* cmp edi, 3 */ /* 0x38031110: cmp edi, 3 */
  11383     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
  11384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11385     _flag_k = FK_CMP;
  11386 L_38031113:
  11387     edx = MEM32(ecx); /* 0x38031113: mov edx, dword ptr [ecx] */
  11388 L_38031115:
  11389     MEM32(ebp + (-0x84)) = edx; /* 0x38031115: mov dword ptr [ebp - 0x84], edx */
  11390 L_3803111B:
  11391     MEM32(ebp + (-0x10)) = eax; /* 0x3803111B: mov dword ptr [ebp - 0x10], eax */
  11392 L_3803111E:
  11393     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3803111E: fild dword ptr [ebp - 0x10] */
  11394 L_38031121:
  11395     eax = MEM32(ecx + 0x4); /* 0x38031121: mov eax, dword ptr [ecx + 4] */
  11396 L_38031124:
  11397     ecx = MEM32(ecx + 0x8); /* 0x38031124: mov ecx, dword ptr [ecx + 8] */
  11398 L_38031127:
  11399     MEM32(ebp + (-0x80)) = eax; /* 0x38031127: mov dword ptr [ebp - 0x80], eax */
  11400 L_3803112A:
  11401     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803112A: fstp dword ptr [ebp - 0x18] */
  11402 L_3803112D:
  11403     MEM32(ebp + (-0x7C)) = ecx; /* 0x3803112D: mov dword ptr [ebp - 0x7c], ecx */
  11404 L_38031130:
  11405     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031130: fmul dword ptr [ebp - 0x44] */
  11406 L_38031133:
  11407     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031133: fld dword ptr [ebp - 0x18] */
  11408 L_38031136:
  11409     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031136: fmul dword ptr [ebp - 0x44] */
  11410 L_38031139:
  11411     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031139: fstp dword ptr [ebp - 0x18] */
  11412 L_3803113C:
  11413     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x3803113C: fld dword ptr [ebp - 0x84] */
  11414 L_38031142:
  11415     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031142: fmul dword ptr [ebp - 0x44] */
  11416 L_38031145:
  11417     fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x38031145: fld dword ptr [ebp - 0x80] */
  11418 L_38031148:
  11419     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031148: fmul dword ptr [ebp - 0x44] */
  11420 L_3803114B:
  11421     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803114B: fstp dword ptr [ebp - 0x80] */
  11422 L_3803114E:
  11423     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3803114E: fld dword ptr [ebp - 0x7c] */
  11424 L_38031151:
  11425     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031151: fmul dword ptr [ebp - 0x44] */
  11426 L_38031154:
  11427     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38031154: fstp dword ptr [ebp - 0x7c] */
  11428 L_38031157:
  11429     fp_xch(1); /* 0x38031157: fxch st(1) */
  11430 L_38031159:
  11431     _st[0] -= _st[1]; /* 0x38031159: fsub st(1) */
  11432 L_3803115B:
  11433     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3803115B: fstp dword ptr [ebp - 0x20] */
  11434 L_3803115E:
  11435     edx = MEM32(ebp + (-0x20)); /* 0x3803115E: mov edx, dword ptr [ebp - 0x20] */
  11436 L_38031161:
  11437     MEM32(ebp + (-0x30)) = edx; /* 0x38031161: mov dword ptr [ebp - 0x30], edx */
  11438 L_38031164:
  11439     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031164: fstp st(0) */
  11440 L_38031166:
  11441     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38031166: fld dword ptr [ebp - 0x1c] */
  11442 L_38031169:
  11443     _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x38031169: fsub dword ptr [ebp - 0x80] */
  11444 L_3803116C:
  11445     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803116C: fstp dword ptr [ebp - 0x1c] */
  11446 L_3803116F:
  11447     eax = MEM32(ebp + (-0x1C)); /* 0x3803116F: mov eax, dword ptr [ebp - 0x1c] */
  11448 L_38031172:
  11449     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031172: fld dword ptr [ebp - 0x18] */
  11450 L_38031175:
  11451     MEM32(ebp + (-0x2C)) = eax; /* 0x38031175: mov dword ptr [ebp - 0x2c], eax */
  11452 L_38031178:
  11453     _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x38031178: fsub dword ptr [ebp - 0x7c] */
  11454 L_3803117B:
  11455     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803117B: fstp dword ptr [ebp - 0x18] */
  11456 L_3803117E:
  11457     ecx = MEM32(ebp + (-0x18)); /* 0x3803117E: mov ecx, dword ptr [ebp - 0x18] */
  11458 L_38031181:
  11459     MEM32(ebp + (-0x28)) = ecx; /* 0x38031181: mov dword ptr [ebp - 0x28], ecx */
  11460 L_38031184:
  11461     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_380311F0; /* 0x38031184: ja 0x380311f0 */
  11462 L_38031186:
  11463     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x380316F8)); goto _ljump; }
  11464 L_3803118D:
  11465     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803118D: fld dword ptr [ebp - 0x18] */
  11466 L_38031190:
  11467     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031190: fadd dword ptr [0x3804f690] */
  11468 L_38031196:
  11469     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031196: fstp dword ptr [ebp - 0x18] */
  11470 L_38031199:
  11471     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031199: fld dword ptr [ebp - 0x28] */
  11472 L_3803119C:
  11473     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x3803119C: fadd dword ptr [0x3804f68c] */
  11474 L_380311A2:
  11475     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311A2: fstp dword ptr [ebp - 0x28] */
  11476 L_380311A5:
  11477     goto L_380311F0; /* 0x380311A5: jmp 0x380311f0 */
  11478 L_380311A7:
  11479     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311A7: fld dword ptr [ebp - 0x20] */
  11480 L_380311AA:
  11481     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380311AA: fadd dword ptr [0x3804f690] */
  11482 L_380311B0:
  11483     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311B0: fstp dword ptr [ebp - 0x20] */
  11484 L_380311B3:
  11485     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311B3: fld dword ptr [ebp - 0x30] */
  11486 L_380311B6:
  11487     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x380311B6: fadd dword ptr [0x3804f68c] */
  11488 L_380311BC:
  11489     goto L_380311ED; /* 0x380311BC: jmp 0x380311ed */
  11490 L_380311BE:
  11491     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380311BE: fld dword ptr [ebp - 0x18] */
  11492 L_380311C1:
  11493     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311C1: fsub dword ptr [0x3804f690] */
  11494 L_380311C7:
  11495     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380311C7: fstp dword ptr [ebp - 0x18] */
  11496 L_380311CA:
  11497     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380311CA: fld dword ptr [ebp - 0x28] */
  11498 L_380311CD:
  11499     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311CD: fsub dword ptr [0x3804f68c] */
  11500 L_380311D3:
  11501     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311D3: fstp dword ptr [ebp - 0x28] */
  11502 L_380311D6:
  11503     goto L_380311F0; /* 0x380311D6: jmp 0x380311f0 */
  11504 L_380311D8:
  11505     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311D8: fld dword ptr [ebp - 0x20] */
  11506 L_380311DB:
  11507     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311DB: fsub dword ptr [0x3804f690] */
  11508 L_380311E1:
  11509     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311E1: fstp dword ptr [ebp - 0x20] */
  11510 L_380311E4:
  11511     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311E4: fld dword ptr [ebp - 0x30] */
  11512 L_380311E7:
  11513     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311E7: fsub dword ptr [0x3804f68c] */
  11514 L_380311ED:
  11515     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380311ED: fstp dword ptr [ebp - 0x30] */
  11516 L_380311F0:
  11517     edx = MEM32(esi + 0x44); /* 0x380311F0: mov edx, dword ptr [esi + 0x44] */
  11518 L_380311F3:
  11519     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11520     ebx = 0; /* 0x380311F3: xor ebx, ebx */
  11521     _cf = 0;
  11522     _flag_k = FK_TEST;
  11523 L_380311F5:
  11524     MEM32(ebp + (-0xDC)) = edx; /* 0x380311F5: mov dword ptr [ebp - 0xdc], edx */
  11525 L_380311FB:
  11526     MEM32(ebp + (-0xD8)) = ebx; /* 0x380311FB: mov dword ptr [ebp - 0xd8], ebx */
  11527 L_38031201:
  11528     fp_push_i64((int64_t)MEM64(ebp + (-0xDC))); /* 0x38031201: fild qword ptr [ebp - 0xdc] */
  11529 L_38031207:
  11530     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031207: fmul dword ptr [0x3804eac0] */
  11531 L_3803120D:
  11532     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803120D: fcom dword ptr [0x3804e8e4] */
  11533 L_38031213:
  11534     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031213: fnstsw ax */
  11535 L_38031215:
  11536     /* test HI8(eax), 1 */ /* 0x38031215: test ah, 1 */
  11537     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11538     _cf = 0;
  11539     _flag_k = FK_NARROW(FK_TEST, 24);
  11540 L_38031218:
  11541     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803122F; /* 0x38031218: jne 0x3803122f */
  11542 L_3803121A:
  11543     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803121A: fcom qword ptr [0x3804e8f8] */
  11544 L_38031220:
  11545     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031220: fnstsw ax */
  11546 L_38031222:
  11547     /* test HI8(eax), 1 */ /* 0x38031222: test ah, 1 */
  11548     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11549     _cf = 0;
  11550     _flag_k = FK_NARROW(FK_TEST, 24);
  11551 L_38031225:
  11552     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803122F; /* 0x38031225: je 0x3803122f */
  11553 L_38031227:
  11554     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031227: fmul dword ptr [0x3804e8bc] */
  11555 L_3803122D:
  11556     goto L_38031250; /* 0x3803122D: jmp 0x38031250 */
  11557 L_3803122F:
  11558     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803122F: fmul dword ptr [0x3804e8f4] */
  11559 L_38031235:
  11560     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11561     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11562     esp = esp - 8; /* 0x38031235: sub esp, 8 */
  11563     _flag_k = FK_CMP;
  11564 L_38031238:
  11565     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031238: fst dword ptr [ebp - 0x10] */
  11566 L_3803123B:
  11567     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3803123B: fstp qword ptr [esp] */
  11568 L_3803123E:
  11569     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3803123E: call dword ptr [0x3804e0ac] */
  11570     RECOMP_FLAGS_IN();
  11571 L_38031244:
  11572     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38031244: fsubr dword ptr [ebp - 0x10] */
  11573 L_38031247:
  11574     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11576     esp = esp + 8; /* 0x38031247: add esp, 8 */
  11577     _flag_k = FK_ADD;
  11578 L_3803124A:
  11579     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3803124A: fmul dword ptr [0x3804e8f0] */
  11580 L_38031250:
  11581     fp_push(_st[0]); /* 0x38031250: fld st(0) */
  11582 L_38031252:
  11583     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031252: fsin  */
  11584 L_38031254:
  11585     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031254: fld dword ptr [0x3804e8e4] */
  11586 L_3803125A:
  11587     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803125A: fst dword ptr [ebp - 0x14] */
  11588 L_3803125D:
  11589     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3803125D: fstp dword ptr [ebp - 0x40] */
  11590 L_38031260:
  11591     eax = MEM32(ebp + (-0x14)); /* 0x38031260: mov eax, dword ptr [ebp - 0x14] */
  11592 L_38031263:
  11593     MEM32(ebp + (-0x38)) = eax; /* 0x38031263: mov dword ptr [ebp - 0x38], eax */
  11594 L_38031266:
  11595     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x38031266: fstp dword ptr [ebp - 0x3c] */
  11596 L_38031269:
  11597     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031269: fcos  */
  11598 L_3803126B:
  11599     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3803126B: fstp dword ptr [ebp - 0x34] */
  11600 L_3803126E:
  11601     fp_push((double)(int32_t)MEM32(ebp + (-0x24))); /* 0x3803126E: fild dword ptr [ebp - 0x24] */
  11602 L_38031271:
  11603     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38031271: fmul qword ptr [0x3804f6a0] */
  11604 L_38031277:
  11605     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38031277: fadd qword ptr [0x3804f698] */
  11606 L_3803127D:
  11607     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803127D: fcom dword ptr [0x3804e8e4] */
  11608 L_38031283:
  11609     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031283: fnstsw ax */
  11610 L_38031285:
  11611     /* test HI8(eax), 1 */ /* 0x38031285: test ah, 1 */
  11612     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11613     _cf = 0;
  11614     _flag_k = FK_NARROW(FK_TEST, 24);
  11615 L_38031288:
  11616     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803129F; /* 0x38031288: jne 0x3803129f */
  11617 L_3803128A:
  11618     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803128A: fcom qword ptr [0x3804e8f8] */
  11619 L_38031290:
  11620     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031290: fnstsw ax */
  11621 L_38031292:
  11622     /* test HI8(eax), 1 */ /* 0x38031292: test ah, 1 */
  11623     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11624     _cf = 0;
  11625     _flag_k = FK_NARROW(FK_TEST, 24);
  11626 L_38031295:
  11627     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803129F; /* 0x38031295: je 0x3803129f */
  11628 L_38031297:
  11629     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031297: fmul dword ptr [0x3804e8bc] */
  11630 L_3803129D:
  11631     goto L_380312C0; /* 0x3803129D: jmp 0x380312c0 */
  11632 L_3803129F:
  11633     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803129F: fmul dword ptr [0x3804e8f4] */
  11634 L_380312A5:
  11635     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11637     esp = esp - 8; /* 0x380312A5: sub esp, 8 */
  11638     _flag_k = FK_CMP;
  11639 L_380312A8:
  11640     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380312A8: fst dword ptr [ebp - 0x10] */
  11641 L_380312AB:
  11642     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380312AB: fstp qword ptr [esp] */
  11643 L_380312AE:
  11644     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380312AE: call dword ptr [0x3804e0ac] */
  11645     RECOMP_FLAGS_IN();
  11646 L_380312B4:
  11647     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x380312B4: fsubr dword ptr [ebp - 0x10] */
  11648 L_380312B7:
  11649     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11651     esp = esp + 8; /* 0x380312B7: add esp, 8 */
  11652     _flag_k = FK_ADD;
  11653 L_380312BA:
  11654     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x380312BA: fmul dword ptr [0x3804e8f0] */
  11655 L_380312C0:
  11656     fp_push(_st[0]); /* 0x380312C0: fld st(0) */
  11657 L_380312C2:
  11658     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380312C2: fsin  */
  11659 L_380312C4:
  11660     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380312C4: fld dword ptr [0x3804e8e4] */
  11661 L_380312CA:
  11662     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380312CA: fst dword ptr [ebp - 0x24] */
  11663 L_380312CD:
  11664     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x380312CD: fstp dword ptr [ebp - 0x54] */
  11665 L_380312D0:
  11666     ecx = MEM32(ebp + (-0x24)); /* 0x380312D0: mov ecx, dword ptr [ebp - 0x24] */
  11667 L_380312D3:
  11668     MEM32(ebp + (-0x4C)) = ecx; /* 0x380312D3: mov dword ptr [ebp - 0x4c], ecx */
  11669 L_380312D6:
  11670     ecx = MEM32(ebp + (-0x40)); /* 0x380312D6: mov ecx, dword ptr [ebp - 0x40] */
  11671 L_380312D9:
  11672     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x380312D9: fstp dword ptr [ebp - 0x50] */
  11673 L_380312DC:
  11674     MEM32(ebp + (-0xFC)) = ecx; /* 0x380312DC: mov dword ptr [ebp - 0xfc], ecx */
  11675 L_380312E2:
  11676     ecx = ebp + (-0x20); /* 0x380312E2: lea ecx, [ebp - 0x20] */
  11677 L_380312E5:
  11678     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380312E5: fcos  */
  11679 L_380312E7:
  11680     PUSH32(esp, ecx); /* 0x380312E7: push ecx */
  11681 L_380312E8:
  11682     ecx = ebp + (-0xFC); /* 0x380312E8: lea ecx, [ebp - 0xfc] */
  11683 L_380312EE:
  11684     fp_push(_st[0]); /* 0x380312EE: fld st(0) */
  11685 L_380312F0:
  11686     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x380312F0: fmul dword ptr [ebp - 0x40] */
  11687 L_380312F3:
  11688     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x380312F3: fld dword ptr [ebp - 0x4c] */
  11689 L_380312F6:
  11690     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x380312F6: fmul dword ptr [ebp - 0x3c] */
  11691 L_380312F9:
  11692     { double _v = fp_pop(); _st[0] += _v; } /* 0x380312F9: faddp st(1) */
  11693 L_380312FB:
  11694     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x380312FB: fld dword ptr [ebp - 0x50] */
  11695 L_380312FE:
  11696     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x380312FE: fmul dword ptr [ebp - 0x38] */
  11697 L_38031301:
  11698     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031301: fsubp st(1) */
  11699 L_38031303:
  11700     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031303: fld dword ptr [ebp - 0x34] */
  11701 L_38031306:
  11702     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031306: fmul dword ptr [ebp - 0x54] */
  11703 L_38031309:
  11704     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031309: faddp st(1) */
  11705 L_3803130B:
  11706     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803130B: fld dword ptr [ebp - 0x50] */
  11707 L_3803130E:
  11708     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803130E: fmul dword ptr [ebp - 0x34] */
  11709 L_38031311:
  11710     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38031311: fld dword ptr [ebp - 0x4c] */
  11711 L_38031314:
  11712     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031314: fmul dword ptr [ebp - 0x40] */
  11713 L_38031317:
  11714     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031317: fsubp st(1) */
  11715 L_38031319:
  11716     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38031319: fld dword ptr [ebp - 0x38] */
  11717 L_3803131C:
  11718     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3803131C: fmul dword ptr [ebp - 0x54] */
  11719 L_3803131F:
  11720     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803131F: faddp st(1) */
  11721 L_38031321:
  11722     fp_push(_st[2]); /* 0x38031321: fld st(2) */
  11723 L_38031323:
  11724     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031323: fmul dword ptr [ebp - 0x3c] */
  11725 L_38031326:
  11726     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031326: faddp st(1) */
  11727 L_38031328:
  11728     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38031328: fstp dword ptr [ebp - 0x24] */
  11729 L_3803132B:
  11730     edx = MEM32(ebp + (-0x24)); /* 0x3803132B: mov edx, dword ptr [ebp - 0x24] */
  11731 L_3803132E:
  11732     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803132E: fld dword ptr [ebp - 0x50] */
  11733 L_38031331:
  11734     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031331: fmul dword ptr [ebp - 0x40] */
  11735 L_38031334:
  11736     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x38031334: fld dword ptr [ebp - 0x3c] */
  11737 L_38031337:
  11738     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031337: fmul dword ptr [ebp - 0x54] */
  11739 L_3803133A:
  11740     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803133A: fsubp st(1) */
  11741 L_3803133C:
  11742     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803133C: fld dword ptr [ebp - 0x4c] */
  11743 L_3803133F:
  11744     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803133F: fmul dword ptr [ebp - 0x34] */
  11745 L_38031342:
  11746     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031342: faddp st(1) */
  11747 L_38031344:
  11748     fp_push(_st[2]); /* 0x38031344: fld st(2) */
  11749 L_38031346:
  11750     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031346: fmul dword ptr [ebp - 0x38] */
  11751 L_38031349:
  11752     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031349: faddp st(1) */
  11753 L_3803134B:
  11754     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803134B: fstp dword ptr [ebp - 0x14] */
  11755 L_3803134E:
  11756     eax = MEM32(ebp + (-0x14)); /* 0x3803134E: mov eax, dword ptr [ebp - 0x14] */
  11757 L_38031351:
  11758     fp_xch(1); /* 0x38031351: fxch st(1) */
  11759 L_38031353:
  11760     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x38031353: fmul dword ptr [ebp - 0x34] */
  11761 L_38031356:
  11762     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x38031356: fld dword ptr [ebp - 0x54] */
  11763 L_38031359:
  11764     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031359: fmul dword ptr [ebp - 0x40] */
  11765 L_3803135C:
  11766     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803135C: fld dword ptr [ebp - 0x4c] */
  11767 L_3803135F:
  11768     MEM32(ebp + (-0x4C)) = eax; /* 0x3803135F: mov dword ptr [ebp - 0x4c], eax */
  11769 L_38031362:
  11770     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031362: fmul dword ptr [ebp - 0x38] */
  11771 L_38031365:
  11772     eax = MEM32(ebp + (-0x38)); /* 0x38031365: mov eax, dword ptr [ebp - 0x38] */
  11773 L_38031368:
  11774     MEM32(ebp + (-0xF4)) = eax; /* 0x38031368: mov dword ptr [ebp - 0xf4], eax */
  11775 L_3803136E:
  11776     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803136E: faddp st(1) */
  11777 L_38031370:
  11778     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38031370: fld dword ptr [ebp - 0x50] */
  11779 L_38031373:
  11780     MEM32(ebp + (-0x50)) = edx; /* 0x38031373: mov dword ptr [ebp - 0x50], edx */
  11781 L_38031376:
  11782     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031376: fmul dword ptr [ebp - 0x3c] */
  11783 L_38031379:
  11784     edx = MEM32(ebp + (-0x3C)); /* 0x38031379: mov edx, dword ptr [ebp - 0x3c] */
  11785 L_3803137C:
  11786     MEM32(ebp + (-0xF8)) = edx; /* 0x3803137C: mov dword ptr [ebp - 0xf8], edx */
  11787 L_38031382:
  11788     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031382: faddp st(1) */
  11789 L_38031384:
  11790     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031384: fsubp st(1) */
  11791 L_38031386:
  11792     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x38031386: fstp dword ptr [ebp - 0x48] */
  11793 L_38031389:
  11794     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x38031389: fstp dword ptr [ebp - 0x54] */
  11795 L_3803138C:
  11796     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3803138C: call dword ptr [0x3804e4c8] */
  11797     RECOMP_FLAGS_IN();
  11798 L_38031392:
  11799     edx = MEM32(eax); /* 0x38031392: mov edx, dword ptr [eax] */
  11800 L_38031394:
  11801     MEM32(ebp + (-0xA8)) = edx; /* 0x38031394: mov dword ptr [ebp - 0xa8], edx */
  11802 L_3803139A:
  11803     ecx = MEM32(eax + 0x4); /* 0x3803139A: mov ecx, dword ptr [eax + 4] */
  11804 L_3803139D:
  11805     MEM32(ebp + (-0xA4)) = ecx; /* 0x3803139D: mov dword ptr [ebp - 0xa4], ecx */
  11806 L_380313A3:
  11807     edx = MEM32(eax + 0x8); /* 0x380313A3: mov edx, dword ptr [eax + 8] */
  11808 L_380313A6:
  11809     eax = ebp + (-0xA8); /* 0x380313A6: lea eax, [ebp - 0xa8] */
  11810 L_380313AC:
  11811     PUSH32(esp, eax); /* 0x380313AC: push eax */
  11812 L_380313AD:
  11813     ecx = ebp + (-0x114); /* 0x380313AD: lea ecx, [ebp - 0x114] */
  11814 L_380313B3:
  11815     MEM32(ebp + (-0xA0)) = edx; /* 0x380313B3: mov dword ptr [ebp - 0xa0], edx */
  11816 L_380313B9:
  11817     PUSH32(esp, ecx); /* 0x380313B9: push ecx */
  11818 L_380313BA:
  11819     ecx = ebp + (-0x40); /* 0x380313BA: lea ecx, [ebp - 0x40] */
  11820 L_380313BD:
  11821     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380313BD: call dword ptr [0x3804e4fc] */
  11822     RECOMP_FLAGS_IN();
  11823 L_380313C3:
  11824     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x380313C3: fld dword ptr [ebp - 0x34] */
  11825 L_380313C6:
  11826     edx = MEM32(eax); /* 0x380313C6: mov edx, dword ptr [eax] */
  11827 L_380313C8:
  11828     _st[0] += _st[0]; /* 0x380313C8: fadd st(0), st(0) */
  11829 L_380313CA:
  11830     MEM32(ebp + (-0xD4)) = edx; /* 0x380313CA: mov dword ptr [ebp - 0xd4], edx */
  11831 L_380313D0:
  11832     ecx = MEM32(eax + 0x4); /* 0x380313D0: mov ecx, dword ptr [eax + 4] */
  11833 L_380313D3:
  11834     MEM32(ebp + (-0xD0)) = ecx; /* 0x380313D3: mov dword ptr [ebp - 0xd0], ecx */
  11835 L_380313D9:
  11836     edx = MEM32(eax + 0x8); /* 0x380313D9: mov edx, dword ptr [eax + 8] */
  11837 L_380313DC:
  11838     PUSH32(esp, ecx); /* 0x380313DC: push ecx */
  11839 L_380313DD:
  11840     ecx = ebp + (-0xA8); /* 0x380313DD: lea ecx, [ebp - 0xa8] */
  11841 L_380313E3:
  11842     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380313E3: fstp dword ptr [esp] */
  11843 L_380313E6:
  11844     MEM32(ebp + (-0xCC)) = edx; /* 0x380313E6: mov dword ptr [ebp - 0xcc], edx */
  11845 L_380313EC:
  11846     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313EC: call dword ptr [0x3804e4d4] */
  11847     RECOMP_FLAGS_IN();
  11848 L_380313F2:
  11849     PUSH32(esp, 0x40000000u); /* 0x380313F2: push 0x40000000 */
  11850 L_380313F7:
  11851     ecx = ebp + (-0xD4); /* 0x380313F7: lea ecx, [ebp - 0xd4] */
  11852 L_380313FD:
  11853     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313FD: call dword ptr [0x3804e4d4] */
  11854     RECOMP_FLAGS_IN();
  11855 L_38031403:
  11856     eax = ebp + (-0xA8); /* 0x38031403: lea eax, [ebp - 0xa8] */
  11857 L_38031409:
  11858     PUSH32(esp, eax); /* 0x38031409: push eax */
  11859 L_3803140A:
  11860     ecx = ebp + (-0x20); /* 0x3803140A: lea ecx, [ebp - 0x20] */
  11861 L_3803140D:
  11862     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803140D: call dword ptr [0x3804e4e8] */
  11863     RECOMP_FLAGS_IN();
  11864 L_38031413:
  11865     ecx = ebp + (-0xD4); /* 0x38031413: lea ecx, [ebp - 0xd4] */
  11866 L_38031419:
  11867     PUSH32(esp, ecx); /* 0x38031419: push ecx */
  11868 L_3803141A:
  11869     ecx = ebp + (-0x20); /* 0x3803141A: lea ecx, [ebp - 0x20] */
  11870 L_3803141D:
  11871     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803141D: call dword ptr [0x3804e4e8] */
  11872     RECOMP_FLAGS_IN();
  11873 L_38031423:
  11874     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031423: fld dword ptr [ebp - 0x20] */
  11875 L_38031426:
  11876     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x38031426: fadd dword ptr [esi + 0x54] */
  11877 L_38031429:
  11878     edx = MEM32(ebp + (-0x40)); /* 0x38031429: mov edx, dword ptr [ebp - 0x40] */
  11879 L_3803142C:
  11880     ecx = MEM32(ebp + (-0x38)); /* 0x3803142C: mov ecx, dword ptr [ebp - 0x38] */
  11881 L_3803142F:
  11882     eax = MEM32(ebp + (-0x3C)); /* 0x3803142F: mov eax, dword ptr [ebp - 0x3c] */
  11883 L_38031432:
  11884     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031432: fstp dword ptr [ebp - 0x20] */
  11885 L_38031435:
  11886     MEM32(ebp + (-0xF0)) = edx; /* 0x38031435: mov dword ptr [ebp - 0xf0], edx */
  11887 L_3803143B:
  11888     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3803143B: fld dword ptr [ebp - 0x1c] */
  11889 L_3803143E:
  11890     edx = ebp + (-0x30); /* 0x3803143E: lea edx, [ebp - 0x30] */
  11891 L_38031441:
  11892     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031441: fadd dword ptr [esi + 0x58] */
  11893 L_38031444:
  11894     MEM32(ebp + (-0xE8)) = ecx; /* 0x38031444: mov dword ptr [ebp - 0xe8], ecx */
  11895 L_3803144A:
  11896     PUSH32(esp, edx); /* 0x3803144A: push edx */
  11897 L_3803144B:
  11898     ecx = ebp + (-0xF0); /* 0x3803144B: lea ecx, [ebp - 0xf0] */
  11899 L_38031451:
  11900     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38031451: fstp dword ptr [ebp - 0x1c] */
  11901 L_38031454:
  11902     MEM32(ebp + (-0xEC)) = eax; /* 0x38031454: mov dword ptr [ebp - 0xec], eax */
  11903 L_3803145A:
  11904     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803145A: fld dword ptr [ebp - 0x18] */
  11905 L_3803145D:
  11906     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x3803145D: fadd dword ptr [esi + 0x5c] */
  11907 L_38031460:
  11908     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031460: fstp dword ptr [ebp - 0x18] */
  11909 L_38031463:
  11910     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031463: call dword ptr [0x3804e4c8] */
  11911     RECOMP_FLAGS_IN();
  11912 L_38031469:
  11913     ecx = MEM32(eax); /* 0x38031469: mov ecx, dword ptr [eax] */
  11914 L_3803146B:
  11915     MEM32(ebp + (-0x98)) = ecx; /* 0x3803146B: mov dword ptr [ebp - 0x98], ecx */
  11916 L_38031471:
  11917     edx = MEM32(eax + 0x4); /* 0x38031471: mov edx, dword ptr [eax + 4] */
  11918 L_38031474:
  11919     MEM32(ebp + (-0x94)) = edx; /* 0x38031474: mov dword ptr [ebp - 0x94], edx */
  11920 L_3803147A:
  11921     eax = MEM32(eax + 0x8); /* 0x3803147A: mov eax, dword ptr [eax + 8] */
  11922 L_3803147D:
  11923     ecx = ebp + (-0x98); /* 0x3803147D: lea ecx, [ebp - 0x98] */
  11924 L_38031483:
  11925     PUSH32(esp, ecx); /* 0x38031483: push ecx */
  11926 L_38031484:
  11927     edx = ebp + (-0x108); /* 0x38031484: lea edx, [ebp - 0x108] */
  11928 L_3803148A:
  11929     PUSH32(esp, edx); /* 0x3803148A: push edx */
  11930 L_3803148B:
  11931     ecx = ebp + (-0x40); /* 0x3803148B: lea ecx, [ebp - 0x40] */
  11932 L_3803148E:
  11933     MEM32(ebp + (-0x90)) = eax; /* 0x3803148E: mov dword ptr [ebp - 0x90], eax */
  11934 L_38031494:
  11935     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x38031494: call dword ptr [0x3804e4fc] */
  11936     RECOMP_FLAGS_IN();
  11937 L_3803149A:
  11938     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3803149A: fld dword ptr [ebp - 0x34] */
  11939 L_3803149D:
  11940     ecx = MEM32(eax); /* 0x3803149D: mov ecx, dword ptr [eax] */
  11941 L_3803149F:
  11942     _st[0] += _st[0]; /* 0x3803149F: fadd st(0), st(0) */
  11943 L_380314A1:
  11944     MEM32(ebp + (-0xC8)) = ecx; /* 0x380314A1: mov dword ptr [ebp - 0xc8], ecx */
  11945 L_380314A7:
  11946     edx = MEM32(eax + 0x4); /* 0x380314A7: mov edx, dword ptr [eax + 4] */
  11947 L_380314AA:
  11948     MEM32(ebp + (-0xC4)) = edx; /* 0x380314AA: mov dword ptr [ebp - 0xc4], edx */
  11949 L_380314B0:
  11950     eax = MEM32(eax + 0x8); /* 0x380314B0: mov eax, dword ptr [eax + 8] */
  11951 L_380314B3:
  11952     PUSH32(esp, ecx); /* 0x380314B3: push ecx */
  11953 L_380314B4:
  11954     ecx = ebp + (-0x98); /* 0x380314B4: lea ecx, [ebp - 0x98] */
  11955 L_380314BA:
  11956     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380314BA: fstp dword ptr [esp] */
  11957 L_380314BD:
  11958     MEM32(ebp + (-0xC0)) = eax; /* 0x380314BD: mov dword ptr [ebp - 0xc0], eax */
  11959 L_380314C3:
  11960     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314C3: call dword ptr [0x3804e4d4] */
  11961     RECOMP_FLAGS_IN();
  11962 L_380314C9:
  11963     PUSH32(esp, 0x40000000u); /* 0x380314C9: push 0x40000000 */
  11964 L_380314CE:
  11965     ecx = ebp + (-0xC8); /* 0x380314CE: lea ecx, [ebp - 0xc8] */
  11966 L_380314D4:
  11967     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314D4: call dword ptr [0x3804e4d4] */
  11968     RECOMP_FLAGS_IN();
  11969 L_380314DA:
  11970     ecx = ebp + (-0x98); /* 0x380314DA: lea ecx, [ebp - 0x98] */
  11971 L_380314E0:
  11972     PUSH32(esp, ecx); /* 0x380314E0: push ecx */
  11973 L_380314E1:
  11974     ecx = ebp + (-0x30); /* 0x380314E1: lea ecx, [ebp - 0x30] */
  11975 L_380314E4:
  11976     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314E4: call dword ptr [0x3804e4e8] */
  11977     RECOMP_FLAGS_IN();
  11978 L_380314EA:
  11979     edx = ebp + (-0xC8); /* 0x380314EA: lea edx, [ebp - 0xc8] */
  11980 L_380314F0:
  11981     PUSH32(esp, edx); /* 0x380314F0: push edx */
  11982 L_380314F1:
  11983     ecx = ebp + (-0x30); /* 0x380314F1: lea ecx, [ebp - 0x30] */
  11984 L_380314F4:
  11985     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314F4: call dword ptr [0x3804e4e8] */
  11986     RECOMP_FLAGS_IN();
  11987 L_380314FA:
  11988     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380314FA: fld dword ptr [ebp - 0x30] */
  11989 L_380314FD:
  11990     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x380314FD: fadd dword ptr [esi + 0x54] */
  11991 L_38031500:
  11992     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031500: fstp dword ptr [ebp - 0x30] */
  11993 L_38031503:
  11994     PUSH32(esp, 0x3806CB10u); /* 0x38031503: push 0x3806cb10 */
  11995 L_38031508:
  11996     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031508: fld dword ptr [ebp - 0x2c] */
  11997 L_3803150B:
  11998     PUSH32(esp, 0x000F6951u); /* 0x3803150B: push 0xf6951 */
  11999 L_38031510:
  12000     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031510: fadd dword ptr [esi + 0x58] */
  12001 L_38031513:
  12002     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031513: fstp dword ptr [ebp - 0x2c] */
  12003 L_38031516:
  12004     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031516: fld dword ptr [ebp - 0x28] */
  12005 L_38031519:
  12006     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38031519: fadd dword ptr [esi + 0x5c] */
  12007 L_3803151C:
  12008     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3803151C: fstp dword ptr [ebp - 0x28] */
  12009 L_3803151F:
  12010     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x3803151F: call dword ptr [0x3804e4b0] */
  12011     RECOMP_FLAGS_IN();
  12012 L_38031525:
  12013     edi = eax; /* 0x38031525: mov edi, eax */
  12014 L_38031527:
  12015     eax = MEM32(esi + 0x98); /* 0x38031527: mov eax, dword ptr [esi + 0x98] */
  12016 L_3803152D:
  12017     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12018     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12019     esp = esp + 8; /* 0x3803152D: add esp, 8 */
  12020     _flag_k = FK_ADD;
  12021 L_38031530:
  12022     /* cmp eax, ebx */ /* 0x38031530: cmp eax, ebx */
  12023     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  12024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12025     _flag_k = FK_CMP;
  12026 L_38031532:
  12027     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803155A; /* 0x38031532: jne 0x3803155a */
  12028 L_38031534:
  12029     PUSH32(esp, 0x10u); /* 0x38031534: push 0x10 */
  12030 L_38031536:
  12031     RECOMP_ICALL(0x3804B676u); /* 0x38031536: call 0x3804b676 */ /* not lifted */
  12032     RECOMP_FLAGS_IN();
  12033 L_3803153B:
  12034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12036     esp = esp + 4; /* 0x3803153B: add esp, 4 */
  12037     _flag_k = FK_ADD;
  12038 L_3803153E:
  12039     /* cmp eax, ebx */ /* 0x3803153E: cmp eax, ebx */
  12040     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  12041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12042     _flag_k = FK_CMP;
  12043 L_38031540:
  12044     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031552; /* 0x38031540: je 0x38031552 */
  12045 L_38031542:
  12046     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031542: mov cl, byte ptr [ebp + 0xb] */
  12047 L_38031545:
  12048     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031545: mov byte ptr [eax], cl */
  12049 L_38031547:
  12050     MEM32(eax + 0x4) = ebx; /* 0x38031547: mov dword ptr [eax + 4], ebx */
  12051 L_3803154A:
  12052     MEM32(eax + 0x8) = ebx; /* 0x3803154A: mov dword ptr [eax + 8], ebx */
  12053 L_3803154D:
  12054     MEM32(eax + 0xC) = ebx; /* 0x3803154D: mov dword ptr [eax + 0xc], ebx */
  12055 L_38031550:
  12056     goto L_38031554; /* 0x38031550: jmp 0x38031554 */
  12057 L_38031552:
  12058     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12059     eax = 0; /* 0x38031552: xor eax, eax */
  12060     _cf = 0;
  12061     _flag_k = FK_TEST;
  12062 L_38031554:
  12063     MEM32(esi + 0x98) = eax; /* 0x38031554: mov dword ptr [esi + 0x98], eax */
  12064 L_3803155A:
  12065     eax = MEM32(ebp + 0x8); /* 0x3803155A: mov eax, dword ptr [ebp + 8] */
  12066 L_3803155D:
  12067     edx = ebp + (-0x20); /* 0x3803155D: lea edx, [ebp - 0x20] */
  12068 L_38031560:
  12069     PUSH32(esp, edx); /* 0x38031560: push edx */
  12070 L_38031561:
  12071     PUSH32(esp, eax); /* 0x38031561: push eax */
  12072 L_38031562:
  12073     ecx = esi; /* 0x38031562: mov ecx, esi */
  12074 L_38031564:
  12075     RECOMP_ICALL(0x38032CE0u); /* 0x38031564: call 0x38032ce0 */ /* not lifted */
  12076     RECOMP_FLAGS_IN();
  12077 L_38031569:
  12078     ecx = MEM32(ebp + (-0x20)); /* 0x38031569: mov ecx, dword ptr [ebp - 0x20] */
  12079 L_3803156C:
  12080     edx = MEM32(ebp + (-0x1C)); /* 0x3803156C: mov edx, dword ptr [ebp - 0x1c] */
  12081 L_3803156F:
  12082     eax = MEM32(ebp + (-0x18)); /* 0x3803156F: mov eax, dword ptr [ebp - 0x18] */
  12083 L_38031572:
  12084     MEM32(ebp + (-0xBC)) = ecx; /* 0x38031572: mov dword ptr [ebp - 0xbc], ecx */
  12085 L_38031578:
  12086     ecx = ebp + (-0xBC); /* 0x38031578: lea ecx, [ebp - 0xbc] */
  12087 L_3803157E:
  12088     MEM32(ebp + (-0xB8)) = edx; /* 0x3803157E: mov dword ptr [ebp - 0xb8], edx */
  12089 L_38031584:
  12090     edx = MEM32(ebp + 0x8); /* 0x38031584: mov edx, dword ptr [ebp + 8] */
  12091 L_38031587:
  12092     PUSH32(esp, ecx); /* 0x38031587: push ecx */
  12093 L_38031588:
  12094     PUSH32(esp, edx); /* 0x38031588: push edx */
  12095 L_38031589:
  12096     ecx = esi; /* 0x38031589: mov ecx, esi */
  12097 L_3803158B:
  12098     MEM32(ebp + (-0xB4)) = eax; /* 0x3803158B: mov dword ptr [ebp - 0xb4], eax */
  12099 L_38031591:
  12100     RECOMP_ICALL(0x38032DE0u); /* 0x38031591: call 0x38032de0 */ /* not lifted */
  12101     RECOMP_FLAGS_IN();
  12102 L_38031596:
  12103     fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x38031596: fld dword ptr [ebp - 0xb8] */
  12104 L_3803159C:
  12105     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3803159C: fsub dword ptr [ebp - 0x1c] */
  12106 L_3803159F:
  12107     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803159F: fst dword ptr [ebp - 0x10] */
  12108 L_380315A2:
  12109     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x380315A2: fcomp dword ptr [0x3804f688] */
  12110     fp_pop();
  12111 L_380315A8:
  12112     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380315A8: fnstsw ax */
  12113 L_380315AA:
  12114     /* test HI8(eax), 0x41u */ /* 0x380315AA: test ah, 0x41 */
  12115     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  12116     _cf = 0;
  12117     _flag_k = FK_NARROW(FK_TEST, 24);
  12118 L_380315AD:
  12119     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031657; /* 0x380315AD: jne 0x38031657 */
  12120 L_380315B3:
  12121     PUSH32(esp, 0x58u); /* 0x380315B3: push 0x58 */
  12122 L_380315B5:
  12123     RECOMP_ICALL(0x3804B676u); /* 0x380315B5: call 0x3804b676 */ /* not lifted */
  12124     RECOMP_FLAGS_IN();
  12125 L_380315BA:
  12126     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12127     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12128     esp = esp + 4; /* 0x380315BA: add esp, 4 */
  12129     _flag_k = FK_ADD;
  12130 L_380315BD:
  12131     MEM32(ebp + (-0x24)) = eax; /* 0x380315BD: mov dword ptr [ebp - 0x24], eax */
  12132 L_380315C0:
  12133     /* cmp eax, ebx */ /* 0x380315C0: cmp eax, ebx */
  12134     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  12135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12136     _flag_k = FK_CMP;
  12137 L_380315C2:
  12138     MEM32(ebp + (-0x4)) = 1; /* 0x380315C2: mov dword ptr [ebp - 4], 1 */
  12139 L_380315C9:
  12140     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315EC; /* 0x380315C9: je 0x380315ec */
  12141 L_380315CB:
  12142     PUSH32(esp, ebx); /* 0x380315CB: push ebx */
  12143 L_380315CC:
  12144     PUSH32(esp, ebx); /* 0x380315CC: push ebx */
  12145 L_380315CD:
  12146     PUSH32(esp, ebx); /* 0x380315CD: push ebx */
  12147 L_380315CE:
  12148     PUSH32(esp, ebx); /* 0x380315CE: push ebx */
  12149 L_380315CF:
  12150     PUSH32(esp, ebx); /* 0x380315CF: push ebx */
  12151 L_380315D0:
  12152     PUSH32(esp, edi); /* 0x380315D0: push edi */
  12153 L_380315D1:
  12154     PUSH32(esp, 0x3FA00000u); /* 0x380315D1: push 0x3fa00000 */
  12155 L_380315D6:
  12156     PUSH32(esp, 0x00FFFFFFu); /* 0x380315D6: push 0xffffff */
  12157 L_380315DB:
  12158     ecx = ebp + (-0x54); /* 0x380315DB: lea ecx, [ebp - 0x54] */
  12159 L_380315DE:
  12160     PUSH32(esp, ecx); /* 0x380315DE: push ecx */
  12161 L_380315DF:
  12162     edx = ebp + (-0x30); /* 0x380315DF: lea edx, [ebp - 0x30] */
  12163 L_380315E2:
  12164     PUSH32(esp, edx); /* 0x380315E2: push edx */
  12165 L_380315E3:
  12166     ecx = eax; /* 0x380315E3: mov ecx, eax */
  12167 L_380315E5:
  12168     RECOMP_ICALL(0x3800B350u); /* 0x380315E5: call 0x3800b350 */ /* not lifted */
  12169     RECOMP_FLAGS_IN();
  12170 L_380315EA:
  12171     goto L_380315EE; /* 0x380315EA: jmp 0x380315ee */
  12172 L_380315EC:
  12173     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12174     eax = 0; /* 0x380315EC: xor eax, eax */
  12175     _cf = 0;
  12176     _flag_k = FK_TEST;
  12177 L_380315EE:
  12178     ecx = MEM32(esi + 0x98); /* 0x380315EE: mov ecx, dword ptr [esi + 0x98] */
  12179 L_380315F4:
  12180     edx = ebp + (-0xAC); /* 0x380315F4: lea edx, [ebp - 0xac] */
  12181 L_380315FA:
  12182     PUSH32(esp, edx); /* 0x380315FA: push edx */
  12183 L_380315FB:
  12184     MEM32(ebp + (-0xAC)) = eax; /* 0x380315FB: mov dword ptr [ebp - 0xac], eax */
  12185 L_38031601:
  12186     eax = MEM32(ecx + 0x8); /* 0x38031601: mov eax, dword ptr [ecx + 8] */
  12187 L_38031604:
  12188     PUSH32(esp, 1); /* 0x38031604: push 1 */
  12189 L_38031606:
  12190     PUSH32(esp, eax); /* 0x38031606: push eax */
  12191 L_38031607:
  12192     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38031607: mov dword ptr [ebp - 4], 0xffffffff */
  12193 L_3803160E:
  12194     RECOMP_ICALL(0x38009C60u); /* 0x3803160E: call 0x38009c60 */ /* not lifted */
  12195     RECOMP_FLAGS_IN();
  12196 L_38031613:
  12197     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031613: fld dword ptr [ebp - 0x2c] */
  12198 L_38031616:
  12199     _st[0] += (double)*(float*)ADDR(0x3804F684); /* 0x38031616: fadd dword ptr [0x3804f684] */
  12200 L_3803161C:
  12201     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3803161C: fstp dword ptr [ebp - 0x2c] */
  12202 L_3803161F:
  12203     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803161F: fld dword ptr [ebp - 0x10] */
  12204 L_38031622:
  12205     _st[0] -= (double)*(float*)ADDR(0x3804F684); /* 0x38031622: fsub dword ptr [0x3804f684] */
  12206 L_38031628:
  12207     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031628: fcom dword ptr [0x3804f688] */
  12208 L_3803162E:
  12209     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803162E: fst dword ptr [ebp - 0x10] */
  12210 L_38031631:
  12211     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031631: fnstsw ax */
  12212 L_38031633:
  12213     /* test HI8(eax), 1 */ /* 0x38031633: test ah, 1 */
  12214     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  12215     _cf = 0;
  12216     _flag_k = FK_NARROW(FK_TEST, 24);
  12217 L_38031636:
  12218     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031646; /* 0x38031636: je 0x38031646 */
  12219 L_38031638:
  12220     fp_push(_st[0]); /* 0x38031638: fld st(0) */
  12221 L_3803163A:
  12222     _st[0] -= (double)*(float*)ADDR(0x3804F688); /* 0x3803163A: fsub dword ptr [0x3804f688] */
  12223 L_38031640:
  12224     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x38031640: fadd dword ptr [ebp - 0x2c] */
  12225 L_38031643:
  12226     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031643: fstp dword ptr [ebp - 0x2c] */
  12227 L_38031646:
  12228     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031646: fcomp dword ptr [0x3804f688] */
  12229     fp_pop();
  12230 L_3803164C:
  12231     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803164C: fnstsw ax */
  12232 L_3803164E:
  12233     /* test HI8(eax), 0x41u */ /* 0x3803164E: test ah, 0x41 */
  12234     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  12235     _cf = 0;
  12236     _flag_k = FK_NARROW(FK_TEST, 24);
  12237 L_38031651:
  12238     RECOMP_BACKEDGE();
  12239     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315B3; /* 0x38031651: je 0x380315b3 */
  12240 L_38031657:
  12241     PUSH32(esp, 0x58u); /* 0x38031657: push 0x58 */
  12242 L_38031659:
  12243     RECOMP_ICALL(0x3804B676u); /* 0x38031659: call 0x3804b676 */ /* not lifted */
  12244     RECOMP_FLAGS_IN();
  12245 L_3803165E:
  12246     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12247     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12248     esp = esp + 4; /* 0x3803165E: add esp, 4 */
  12249     _flag_k = FK_ADD;
  12250 L_38031661:
  12251     MEM32(ebp + (-0x24)) = eax; /* 0x38031661: mov dword ptr [ebp - 0x24], eax */
  12252 L_38031664:
  12253     /* cmp eax, ebx */ /* 0x38031664: cmp eax, ebx */
  12254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  12255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12256     _flag_k = FK_CMP;
  12257 L_38031666:
  12258     MEM32(ebp + (-0x4)) = 2; /* 0x38031666: mov dword ptr [ebp - 4], 2 */
  12259 L_3803166D:
  12260     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031690; /* 0x3803166D: je 0x38031690 */
  12261 L_3803166F:
  12262     PUSH32(esp, ebx); /* 0x3803166F: push ebx */
  12263 L_38031670:
  12264     PUSH32(esp, ebx); /* 0x38031670: push ebx */
  12265 L_38031671:
  12266     PUSH32(esp, ebx); /* 0x38031671: push ebx */
  12267 L_38031672:
  12268     PUSH32(esp, ebx); /* 0x38031672: push ebx */
  12269 L_38031673:
  12270     PUSH32(esp, ebx); /* 0x38031673: push ebx */
  12271 L_38031674:
  12272     PUSH32(esp, edi); /* 0x38031674: push edi */
  12273 L_38031675:
  12274     PUSH32(esp, 0x3FA00000u); /* 0x38031675: push 0x3fa00000 */
  12275 L_3803167A:
  12276     PUSH32(esp, 0x00FFFFFFu); /* 0x3803167A: push 0xffffff */
  12277 L_3803167F:
  12278     ecx = ebp + (-0x54); /* 0x3803167F: lea ecx, [ebp - 0x54] */
  12279 L_38031682:
  12280     PUSH32(esp, ecx); /* 0x38031682: push ecx */
  12281 L_38031683:
  12282     edx = ebp + (-0x30); /* 0x38031683: lea edx, [ebp - 0x30] */
  12283 L_38031686:
  12284     PUSH32(esp, edx); /* 0x38031686: push edx */
  12285 L_38031687:
  12286     ecx = eax; /* 0x38031687: mov ecx, eax */
  12287 L_38031689:
  12288     RECOMP_ICALL(0x3800B350u); /* 0x38031689: call 0x3800b350 */ /* not lifted */
  12289     RECOMP_FLAGS_IN();
  12290 L_3803168E:
  12291     goto L_38031692; /* 0x3803168E: jmp 0x38031692 */
  12292 L_38031690:
  12293     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12294     eax = 0; /* 0x38031690: xor eax, eax */
  12295     _cf = 0;
  12296     _flag_k = FK_TEST;
  12297 L_38031692:
  12298     ecx = MEM32(esi + 0x98); /* 0x38031692: mov ecx, dword ptr [esi + 0x98] */
  12299 L_38031698:
  12300     MEM32(ebp + (-0x9C)) = eax; /* 0x38031698: mov dword ptr [ebp - 0x9c], eax */
  12301 L_3803169E:
  12302     edx = MEM32(ecx + 0x8); /* 0x3803169E: mov edx, dword ptr [ecx + 8] */
  12303 L_380316A1:
  12304     eax = ebp + (-0x9C); /* 0x380316A1: lea eax, [ebp - 0x9c] */
  12305 L_380316A7:
  12306     PUSH32(esp, eax); /* 0x380316A7: push eax */
  12307 L_380316A8:
  12308     PUSH32(esp, 1); /* 0x380316A8: push 1 */
  12309 L_380316AA:
  12310     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380316AA: mov dword ptr [ebp - 4], 0xffffffff */
  12311 L_380316B1:
  12312     PUSH32(esp, edx); /* 0x380316B1: push edx */
  12313 L_380316B2:
  12314     RECOMP_ICALL(0x38009C60u); /* 0x380316B2: call 0x38009c60 */ /* not lifted */
  12315     RECOMP_FLAGS_IN();
  12316 L_380316B7:
  12317     eax = MEM32(ebp + (-0x8C)); /* 0x380316B7: mov eax, dword ptr [ebp - 0x8c] */
  12318 L_380316BD:
  12319     edx = MEM32(ebp + (-0x78)); /* 0x380316BD: mov edx, dword ptr [ebp - 0x78] */
  12320 L_380316C0:
  12321     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12322     ecx = 0; /* 0x380316C0: xor ecx, ecx */
  12323     _cf = 0;
  12324     _flag_k = FK_TEST;
  12325 L_380316C2:
  12326     SET_LO16(ecx, MEM16(esi + 0x7C)); /* 0x380316C2: mov cx, word ptr [esi + 0x7c] */
  12327 L_380316C6:
  12328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  12329     eax = eax + 1; /* 0x380316C6: inc eax */
  12330     _flag_k = FK_INC;
  12331 L_380316C7:
  12332     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
  12333     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12334     edx = edx + 0x10u; /* 0x380316C7: add edx, 0x10 */
  12335     _flag_k = FK_ADD;
  12336 L_380316CA:
  12337     MEM32(ebp + (-0x8C)) = eax; /* 0x380316CA: mov dword ptr [ebp - 0x8c], eax */
  12338 L_380316D0:
  12339     MEM32(ebp + (-0x78)) = edx; /* 0x380316D0: mov dword ptr [ebp - 0x78], edx */
  12340 L_380316D3:
  12341     /* cmp eax, ecx */ /* 0x380316D3: cmp eax, ecx */
  12342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  12343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12344     _flag_k = FK_CMP;
  12345 L_380316D5:
  12346     RECOMP_BACKEDGE();
  12347     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38030E4E; /* 0x380316D5: jl 0x38030e4e */
  12348 L_380316DB:
  12349     edi = POP32_VAL(esp); /* 0x380316DB: pop edi */
  12350 L_380316DC:
  12351     PUSH32(esp, ebx); /* 0x380316DC: push ebx */
  12352 L_380316DD:
  12353     ecx = esi; /* 0x380316DD: mov ecx, esi */
  12354 L_380316DF:
  12355     RECOMP_ICALL(0x38030440u); /* 0x380316DF: call 0x38030440 */ /* not lifted */
  12356     RECOMP_FLAGS_IN();
  12357 L_380316E4:
  12358     ecx = MEM32(ebp + (-0xC)); /* 0x380316E4: mov ecx, dword ptr [ebp - 0xc] */
  12359 L_380316E7:
  12360     esi = POP32_VAL(esp); /* 0x380316E7: pop esi */
  12361 L_380316E8:
  12362     ebx = POP32_VAL(esp); /* 0x380316E8: pop ebx */
  12363 L_380316E9:
  12364     MEM32(FS_BASE + (0)) = ecx; /* 0x380316E9: mov dword ptr fs:[0], ecx */
  12365 L_380316F0:
  12366     esp = ebp; /* 0x380316F0: mov esp, ebp */
  12367 L_380316F2:
  12368     ebp = POP32_VAL(esp); /* 0x380316F2: pop ebp */
  12369 L_380316F3:
  12370     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380316F3: ret 8 */
  12371   _ljump:
  12372     switch (_itail_tgt) {
  12373       case 0x38030E4Eu: goto L_38030E4E;
  12374       case 0x38030E54u: goto L_38030E54;
  12375       case 0x38030E57u: goto L_38030E57;
  12376       case 0x38030E5Au: goto L_38030E5A;
  12377       case 0x38030E5Du: goto L_38030E5D;
  12378       case 0x38030E5Fu: goto L_38030E5F;
  12379       case 0x38030E65u: goto L_38030E65;
  12380       case 0x38030E68u: goto L_38030E68;
  12381       case 0x38030E6Eu: goto L_38030E6E;
  12382       case 0x38030E74u: goto L_38030E74;
  12383       case 0x38030E76u: goto L_38030E76;
  12384       case 0x38030E7Cu: goto L_38030E7C;
  12385       case 0x38030E84u: goto L_38030E84;
  12386       case 0x38030E8Au: goto L_38030E8A;
  12387       case 0x38030E8Du: goto L_38030E8D;
  12388       case 0x38030E91u: goto L_38030E91;
  12389       case 0x38030E97u: goto L_38030E97;
  12390       case 0x38030E9Du: goto L_38030E9D;
  12391       case 0x38030EA3u: goto L_38030EA3;
  12392       case 0x38030EA9u: goto L_38030EA9;
  12393       case 0x38030EACu: goto L_38030EAC;
  12394       case 0x38030EAFu: goto L_38030EAF;
  12395       case 0x38030EB5u: goto L_38030EB5;
  12396       case 0x38030EB7u: goto L_38030EB7;
  12397       case 0x38030EBAu: goto L_38030EBA;
  12398       case 0x38030EBCu: goto L_38030EBC;
  12399       case 0x38030EC2u: goto L_38030EC2;
  12400       case 0x38030EC4u: goto L_38030EC4;
  12401       case 0x38030EC7u: goto L_38030EC7;
  12402       case 0x38030EC9u: goto L_38030EC9;
  12403       case 0x38030ECFu: goto L_38030ECF;
  12404       case 0x38030ED1u: goto L_38030ED1;
  12405       case 0x38030ED7u: goto L_38030ED7;
  12406       case 0x38030EDAu: goto L_38030EDA;
  12407       case 0x38030EDDu: goto L_38030EDD;
  12408       case 0x38030EE0u: goto L_38030EE0;
  12409       case 0x38030EE6u: goto L_38030EE6;
  12410       case 0x38030EE9u: goto L_38030EE9;
  12411       case 0x38030EECu: goto L_38030EEC;
  12412       case 0x38030EF2u: goto L_38030EF2;
  12413       case 0x38030EF4u: goto L_38030EF4;
  12414       case 0x38030EF6u: goto L_38030EF6;
  12415       case 0x38030EFCu: goto L_38030EFC;
  12416       case 0x38030EFFu: goto L_38030EFF;
  12417       case 0x38030F02u: goto L_38030F02;
  12418       case 0x38030F05u: goto L_38030F05;
  12419       case 0x38030F08u: goto L_38030F08;
  12420       case 0x38030F0Bu: goto L_38030F0B;
  12421       case 0x38030F0Du: goto L_38030F0D;
  12422       case 0x38030F10u: goto L_38030F10;
  12423       case 0x38030F13u: goto L_38030F13;
  12424       case 0x38030F19u: goto L_38030F19;
  12425       case 0x38030F1Fu: goto L_38030F1F;
  12426       case 0x38030F25u: goto L_38030F25;
  12427       case 0x38030F27u: goto L_38030F27;
  12428       case 0x38030F2Au: goto L_38030F2A;
  12429       case 0x38030F2Cu: goto L_38030F2C;
  12430       case 0x38030F32u: goto L_38030F32;
  12431       case 0x38030F34u: goto L_38030F34;
  12432       case 0x38030F37u: goto L_38030F37;
  12433       case 0x38030F39u: goto L_38030F39;
  12434       case 0x38030F3Fu: goto L_38030F3F;
  12435       case 0x38030F41u: goto L_38030F41;
  12436       case 0x38030F47u: goto L_38030F47;
  12437       case 0x38030F4Au: goto L_38030F4A;
  12438       case 0x38030F4Du: goto L_38030F4D;
  12439       case 0x38030F50u: goto L_38030F50;
  12440       case 0x38030F56u: goto L_38030F56;
  12441       case 0x38030F59u: goto L_38030F59;
  12442       case 0x38030F5Cu: goto L_38030F5C;
  12443       case 0x38030F62u: goto L_38030F62;
  12444       case 0x38030F64u: goto L_38030F64;
  12445       case 0x38030F69u: goto L_38030F69;
  12446       case 0x38030F6Bu: goto L_38030F6B;
  12447       case 0x38030F70u: goto L_38030F70;
  12448       case 0x38030F76u: goto L_38030F76;
  12449       case 0x38030F79u: goto L_38030F79;
  12450       case 0x38030F7Cu: goto L_38030F7C;
  12451       case 0x38030F7Fu: goto L_38030F7F;
  12452       case 0x38030F82u: goto L_38030F82;
  12453       case 0x38030F85u: goto L_38030F85;
  12454       case 0x38030F87u: goto L_38030F87;
  12455       case 0x38030F89u: goto L_38030F89;
  12456       case 0x38030F8Cu: goto L_38030F8C;
  12457       case 0x38030F8Fu: goto L_38030F8F;
  12458       case 0x38030F92u: goto L_38030F92;
  12459       case 0x38030F94u: goto L_38030F94;
  12460       case 0x38030F97u: goto L_38030F97;
  12461       case 0x38030F9Au: goto L_38030F9A;
  12462       case 0x38030F9Cu: goto L_38030F9C;
  12463       case 0x38030F9Fu: goto L_38030F9F;
  12464       case 0x38030FA2u: goto L_38030FA2;
  12465       case 0x38030FA4u: goto L_38030FA4;
  12466       case 0x38030FA7u: goto L_38030FA7;
  12467       case 0x38030FAAu: goto L_38030FAA;
  12468       case 0x38030FADu: goto L_38030FAD;
  12469       case 0x38030FB0u: goto L_38030FB0;
  12470       case 0x38030FB2u: goto L_38030FB2;
  12471       case 0x38030FB5u: goto L_38030FB5;
  12472       case 0x38030FB8u: goto L_38030FB8;
  12473       case 0x38030FBAu: goto L_38030FBA;
  12474       case 0x38030FBCu: goto L_38030FBC;
  12475       case 0x38030FBFu: goto L_38030FBF;
  12476       case 0x38030FC1u: goto L_38030FC1;
  12477       case 0x38030FC4u: goto L_38030FC4;
  12478       case 0x38030FC7u: goto L_38030FC7;
  12479       case 0x38030FCAu: goto L_38030FCA;
  12480       case 0x38030FCDu: goto L_38030FCD;
  12481       case 0x38030FD0u: goto L_38030FD0;
  12482       case 0x38030FD3u: goto L_38030FD3;
  12483       case 0x38030FD5u: goto L_38030FD5;
  12484       case 0x38030FD8u: goto L_38030FD8;
  12485       case 0x38030FDBu: goto L_38030FDB;
  12486       case 0x38030FDDu: goto L_38030FDD;
  12487       case 0x38030FDFu: goto L_38030FDF;
  12488       case 0x38030FE2u: goto L_38030FE2;
  12489       case 0x38030FE4u: goto L_38030FE4;
  12490       case 0x38030FE7u: goto L_38030FE7;
  12491       case 0x38030FEAu: goto L_38030FEA;
  12492       case 0x38030FECu: goto L_38030FEC;
  12493       case 0x38030FEFu: goto L_38030FEF;
  12494       case 0x38030FF2u: goto L_38030FF2;
  12495       case 0x38030FF5u: goto L_38030FF5;
  12496       case 0x38030FF8u: goto L_38030FF8;
  12497       case 0x38030FFBu: goto L_38030FFB;
  12498       case 0x38030FFEu: goto L_38030FFE;
  12499       case 0x38031000u: goto L_38031000;
  12500       case 0x38031003u: goto L_38031003;
  12501       case 0x38031006u: goto L_38031006;
  12502       case 0x38031009u: goto L_38031009;
  12503       case 0x3803100Bu: goto L_3803100B;
  12504       case 0x3803100Du: goto L_3803100D;
  12505       case 0x38031010u: goto L_38031010;
  12506       case 0x38031013u: goto L_38031013;
  12507       case 0x38031019u: goto L_38031019;
  12508       case 0x3803101Bu: goto L_3803101B;
  12509       case 0x38031021u: goto L_38031021;
  12510       case 0x38031024u: goto L_38031024;
  12511       case 0x38031026u: goto L_38031026;
  12512       case 0x38031028u: goto L_38031028;
  12513       case 0x3803102Au: goto L_3803102A;
  12514       case 0x3803102Fu: goto L_3803102F;
  12515       case 0x38031032u: goto L_38031032;
  12516       case 0x38031034u: goto L_38031034;
  12517       case 0x38031036u: goto L_38031036;
  12518       case 0x38031039u: goto L_38031039;
  12519       case 0x3803103Bu: goto L_3803103B;
  12520       case 0x3803103Eu: goto L_3803103E;
  12521       case 0x38031041u: goto L_38031041;
  12522       case 0x38031044u: goto L_38031044;
  12523       case 0x38031046u: goto L_38031046;
  12524       case 0x38031048u: goto L_38031048;
  12525       case 0x3803104Eu: goto L_3803104E;
  12526       case 0x38031050u: goto L_38031050;
  12527       case 0x38031055u: goto L_38031055;
  12528       case 0x38031058u: goto L_38031058;
  12529       case 0x3803105Bu: goto L_3803105B;
  12530       case 0x3803105Du: goto L_3803105D;
  12531       case 0x38031060u: goto L_38031060;
  12532       case 0x38031062u: goto L_38031062;
  12533       case 0x38031065u: goto L_38031065;
  12534       case 0x3803106Bu: goto L_3803106B;
  12535       case 0x3803106Fu: goto L_3803106F;
  12536       case 0x38031070u: goto L_38031070;
  12537       case 0x38031076u: goto L_38031076;
  12538       case 0x38031077u: goto L_38031077;
  12539       case 0x38031078u: goto L_38031078;
  12540       case 0x38031079u: goto L_38031079;
  12541       case 0x3803107Bu: goto L_3803107B;
  12542       case 0x3803107Cu: goto L_3803107C;
  12543       case 0x3803107Du: goto L_3803107D;
  12544       case 0x3803107Eu: goto L_3803107E;
  12545       case 0x38031081u: goto L_38031081;
  12546       case 0x38031086u: goto L_38031086;
  12547       case 0x38031089u: goto L_38031089;
  12548       case 0x3803108Au: goto L_3803108A;
  12549       case 0x3803108Bu: goto L_3803108B;
  12550       case 0x3803108Du: goto L_3803108D;
  12551       case 0x38031092u: goto L_38031092;
  12552       case 0x38031094u: goto L_38031094;
  12553       case 0x38031096u: goto L_38031096;
  12554       case 0x3803109Cu: goto L_3803109C;
  12555       case 0x380310A2u: goto L_380310A2;
  12556       case 0x380310A3u: goto L_380310A3;
  12557       case 0x380310A9u: goto L_380310A9;
  12558       case 0x380310ACu: goto L_380310AC;
  12559       case 0x380310AEu: goto L_380310AE;
  12560       case 0x380310B5u: goto L_380310B5;
  12561       case 0x380310B6u: goto L_380310B6;
  12562       case 0x380310BBu: goto L_380310BB;
  12563       case 0x380310BDu: goto L_380310BD;
  12564       case 0x380310C3u: goto L_380310C3;
  12565       case 0x380310CBu: goto L_380310CB;
  12566       case 0x380310D1u: goto L_380310D1;
  12567       case 0x380310D5u: goto L_380310D5;
  12568       case 0x380310DCu: goto L_380310DC;
  12569       case 0x380310DFu: goto L_380310DF;
  12570       case 0x380310E4u: goto L_380310E4;
  12571       case 0x380310E7u: goto L_380310E7;
  12572       case 0x380310EAu: goto L_380310EA;
  12573       case 0x380310ECu: goto L_380310EC;
  12574       case 0x380310F2u: goto L_380310F2;
  12575       case 0x380310F4u: goto L_380310F4;
  12576       case 0x380310F5u: goto L_380310F5;
  12577       case 0x380310FBu: goto L_380310FB;
  12578       case 0x380310FDu: goto L_380310FD;
  12579       case 0x38031100u: goto L_38031100;
  12580       case 0x38031103u: goto L_38031103;
  12581       case 0x38031106u: goto L_38031106;
  12582       case 0x38031107u: goto L_38031107;
  12583       case 0x3803110Au: goto L_3803110A;
  12584       case 0x38031110u: goto L_38031110;
  12585       case 0x38031113u: goto L_38031113;
  12586       case 0x38031115u: goto L_38031115;
  12587       case 0x3803111Bu: goto L_3803111B;
  12588       case 0x3803111Eu: goto L_3803111E;
  12589       case 0x38031121u: goto L_38031121;
  12590       case 0x38031124u: goto L_38031124;
  12591       case 0x38031127u: goto L_38031127;
  12592       case 0x3803112Au: goto L_3803112A;
  12593       case 0x3803112Du: goto L_3803112D;
  12594       case 0x38031130u: goto L_38031130;
  12595       case 0x38031133u: goto L_38031133;
  12596       case 0x38031136u: goto L_38031136;
  12597       case 0x38031139u: goto L_38031139;
  12598       case 0x3803113Cu: goto L_3803113C;
  12599       case 0x38031142u: goto L_38031142;
  12600       case 0x38031145u: goto L_38031145;
  12601       case 0x38031148u: goto L_38031148;
  12602       case 0x3803114Bu: goto L_3803114B;
  12603       case 0x3803114Eu: goto L_3803114E;
  12604       case 0x38031151u: goto L_38031151;
  12605       case 0x38031154u: goto L_38031154;
  12606       case 0x38031157u: goto L_38031157;
  12607       case 0x38031159u: goto L_38031159;
  12608       case 0x3803115Bu: goto L_3803115B;
  12609       case 0x3803115Eu: goto L_3803115E;
  12610       case 0x38031161u: goto L_38031161;
  12611       case 0x38031164u: goto L_38031164;
  12612       case 0x38031166u: goto L_38031166;
  12613       case 0x38031169u: goto L_38031169;
  12614       case 0x3803116Cu: goto L_3803116C;
  12615       case 0x3803116Fu: goto L_3803116F;
  12616       case 0x38031172u: goto L_38031172;
  12617       case 0x38031175u: goto L_38031175;
  12618       case 0x38031178u: goto L_38031178;
  12619       case 0x3803117Bu: goto L_3803117B;
  12620       case 0x3803117Eu: goto L_3803117E;
  12621       case 0x38031181u: goto L_38031181;
  12622       case 0x38031184u: goto L_38031184;
  12623       case 0x38031186u: goto L_38031186;
  12624       case 0x3803118Du: goto L_3803118D;
  12625       case 0x38031190u: goto L_38031190;
  12626       case 0x38031196u: goto L_38031196;
  12627       case 0x38031199u: goto L_38031199;
  12628       case 0x3803119Cu: goto L_3803119C;
  12629       case 0x380311A2u: goto L_380311A2;
  12630       case 0x380311A5u: goto L_380311A5;
  12631       case 0x380311A7u: goto L_380311A7;
  12632       case 0x380311AAu: goto L_380311AA;
  12633       case 0x380311B0u: goto L_380311B0;
  12634       case 0x380311B3u: goto L_380311B3;
  12635       case 0x380311B6u: goto L_380311B6;
  12636       case 0x380311BCu: goto L_380311BC;
  12637       case 0x380311BEu: goto L_380311BE;
  12638       case 0x380311C1u: goto L_380311C1;
  12639       case 0x380311C7u: goto L_380311C7;
  12640       case 0x380311CAu: goto L_380311CA;
  12641       case 0x380311CDu: goto L_380311CD;
  12642       case 0x380311D3u: goto L_380311D3;
  12643       case 0x380311D6u: goto L_380311D6;
  12644       case 0x380311D8u: goto L_380311D8;
  12645       case 0x380311DBu: goto L_380311DB;
  12646       case 0x380311E1u: goto L_380311E1;
  12647       case 0x380311E4u: goto L_380311E4;
  12648       case 0x380311E7u: goto L_380311E7;
  12649       case 0x380311EDu: goto L_380311ED;
  12650       case 0x380311F0u: goto L_380311F0;
  12651       case 0x380311F3u: goto L_380311F3;
  12652       case 0x380311F5u: goto L_380311F5;
  12653       case 0x380311FBu: goto L_380311FB;
  12654       case 0x38031201u: goto L_38031201;
  12655       case 0x38031207u: goto L_38031207;
  12656       case 0x3803120Du: goto L_3803120D;
  12657       case 0x38031213u: goto L_38031213;
  12658       case 0x38031215u: goto L_38031215;
  12659       case 0x38031218u: goto L_38031218;
  12660       case 0x3803121Au: goto L_3803121A;
  12661       case 0x38031220u: goto L_38031220;
  12662       case 0x38031222u: goto L_38031222;
  12663       case 0x38031225u: goto L_38031225;
  12664       case 0x38031227u: goto L_38031227;
  12665       case 0x3803122Du: goto L_3803122D;
  12666       case 0x3803122Fu: goto L_3803122F;
  12667       case 0x38031235u: goto L_38031235;
  12668       case 0x38031238u: goto L_38031238;
  12669       case 0x3803123Bu: goto L_3803123B;
  12670       case 0x3803123Eu: goto L_3803123E;
  12671       case 0x38031244u: goto L_38031244;
  12672       case 0x38031247u: goto L_38031247;
  12673       case 0x3803124Au: goto L_3803124A;
  12674       case 0x38031250u: goto L_38031250;
  12675       case 0x38031252u: goto L_38031252;
  12676       case 0x38031254u: goto L_38031254;
  12677       case 0x3803125Au: goto L_3803125A;
  12678       case 0x3803125Du: goto L_3803125D;
  12679       case 0x38031260u: goto L_38031260;
  12680       case 0x38031263u: goto L_38031263;
  12681       case 0x38031266u: goto L_38031266;
  12682       case 0x38031269u: goto L_38031269;
  12683       case 0x3803126Bu: goto L_3803126B;
  12684       case 0x3803126Eu: goto L_3803126E;
  12685       case 0x38031271u: goto L_38031271;
  12686       case 0x38031277u: goto L_38031277;
  12687       case 0x3803127Du: goto L_3803127D;
  12688       case 0x38031283u: goto L_38031283;
  12689       case 0x38031285u: goto L_38031285;
  12690       case 0x38031288u: goto L_38031288;
  12691       case 0x3803128Au: goto L_3803128A;
  12692       case 0x38031290u: goto L_38031290;
  12693       case 0x38031292u: goto L_38031292;
  12694       case 0x38031295u: goto L_38031295;
  12695       case 0x38031297u: goto L_38031297;
  12696       case 0x3803129Du: goto L_3803129D;
  12697       case 0x3803129Fu: goto L_3803129F;
  12698       case 0x380312A5u: goto L_380312A5;
  12699       case 0x380312A8u: goto L_380312A8;
  12700       case 0x380312ABu: goto L_380312AB;
  12701       case 0x380312AEu: goto L_380312AE;
  12702       case 0x380312B4u: goto L_380312B4;
  12703       case 0x380312B7u: goto L_380312B7;
  12704       case 0x380312BAu: goto L_380312BA;
  12705       case 0x380312C0u: goto L_380312C0;
  12706       case 0x380312C2u: goto L_380312C2;
  12707       case 0x380312C4u: goto L_380312C4;
  12708       case 0x380312CAu: goto L_380312CA;
  12709       case 0x380312CDu: goto L_380312CD;
  12710       case 0x380312D0u: goto L_380312D0;
  12711       case 0x380312D3u: goto L_380312D3;
  12712       case 0x380312D6u: goto L_380312D6;
  12713       case 0x380312D9u: goto L_380312D9;
  12714       case 0x380312DCu: goto L_380312DC;
  12715       case 0x380312E2u: goto L_380312E2;
  12716       case 0x380312E5u: goto L_380312E5;
  12717       case 0x380312E7u: goto L_380312E7;
  12718       case 0x380312E8u: goto L_380312E8;
  12719       case 0x380312EEu: goto L_380312EE;
  12720       case 0x380312F0u: goto L_380312F0;
  12721       case 0x380312F3u: goto L_380312F3;
  12722       case 0x380312F6u: goto L_380312F6;
  12723       case 0x380312F9u: goto L_380312F9;
  12724       case 0x380312FBu: goto L_380312FB;
  12725       case 0x380312FEu: goto L_380312FE;
  12726       case 0x38031301u: goto L_38031301;
  12727       case 0x38031303u: goto L_38031303;
  12728       case 0x38031306u: goto L_38031306;
  12729       case 0x38031309u: goto L_38031309;
  12730       case 0x3803130Bu: goto L_3803130B;
  12731       case 0x3803130Eu: goto L_3803130E;
  12732       case 0x38031311u: goto L_38031311;
  12733       case 0x38031314u: goto L_38031314;
  12734       case 0x38031317u: goto L_38031317;
  12735       case 0x38031319u: goto L_38031319;
  12736       case 0x3803131Cu: goto L_3803131C;
  12737       case 0x3803131Fu: goto L_3803131F;
  12738       case 0x38031321u: goto L_38031321;
  12739       case 0x38031323u: goto L_38031323;
  12740       case 0x38031326u: goto L_38031326;
  12741       case 0x38031328u: goto L_38031328;
  12742       case 0x3803132Bu: goto L_3803132B;
  12743       case 0x3803132Eu: goto L_3803132E;
  12744       case 0x38031331u: goto L_38031331;
  12745       case 0x38031334u: goto L_38031334;
  12746       case 0x38031337u: goto L_38031337;
  12747       case 0x3803133Au: goto L_3803133A;
  12748       case 0x3803133Cu: goto L_3803133C;
  12749       case 0x3803133Fu: goto L_3803133F;
  12750       case 0x38031342u: goto L_38031342;
  12751       case 0x38031344u: goto L_38031344;
  12752       case 0x38031346u: goto L_38031346;
  12753       case 0x38031349u: goto L_38031349;
  12754       case 0x3803134Bu: goto L_3803134B;
  12755       case 0x3803134Eu: goto L_3803134E;
  12756       case 0x38031351u: goto L_38031351;
  12757       case 0x38031353u: goto L_38031353;
  12758       case 0x38031356u: goto L_38031356;
  12759       case 0x38031359u: goto L_38031359;
  12760       case 0x3803135Cu: goto L_3803135C;
  12761       case 0x3803135Fu: goto L_3803135F;
  12762       case 0x38031362u: goto L_38031362;
  12763       case 0x38031365u: goto L_38031365;
  12764       case 0x38031368u: goto L_38031368;
  12765       case 0x3803136Eu: goto L_3803136E;
  12766       case 0x38031370u: goto L_38031370;
  12767       case 0x38031373u: goto L_38031373;
  12768       case 0x38031376u: goto L_38031376;
  12769       case 0x38031379u: goto L_38031379;
  12770       case 0x3803137Cu: goto L_3803137C;
  12771       case 0x38031382u: goto L_38031382;
  12772       case 0x38031384u: goto L_38031384;
  12773       case 0x38031386u: goto L_38031386;
  12774       case 0x38031389u: goto L_38031389;
  12775       case 0x3803138Cu: goto L_3803138C;
  12776       case 0x38031392u: goto L_38031392;
  12777       case 0x38031394u: goto L_38031394;
  12778       case 0x3803139Au: goto L_3803139A;
  12779       case 0x3803139Du: goto L_3803139D;
  12780       case 0x380313A3u: goto L_380313A3;
  12781       case 0x380313A6u: goto L_380313A6;
  12782       case 0x380313ACu: goto L_380313AC;
  12783       case 0x380313ADu: goto L_380313AD;
  12784       case 0x380313B3u: goto L_380313B3;
  12785       case 0x380313B9u: goto L_380313B9;
  12786       case 0x380313BAu: goto L_380313BA;
  12787       case 0x380313BDu: goto L_380313BD;
  12788       case 0x380313C3u: goto L_380313C3;
  12789       case 0x380313C6u: goto L_380313C6;
  12790       case 0x380313C8u: goto L_380313C8;
  12791       case 0x380313CAu: goto L_380313CA;
  12792       case 0x380313D0u: goto L_380313D0;
  12793       case 0x380313D3u: goto L_380313D3;
  12794       case 0x380313D9u: goto L_380313D9;
  12795       case 0x380313DCu: goto L_380313DC;
  12796       case 0x380313DDu: goto L_380313DD;
  12797       case 0x380313E3u: goto L_380313E3;
  12798       case 0x380313E6u: goto L_380313E6;
  12799       case 0x380313ECu: goto L_380313EC;
  12800       case 0x380313F2u: goto L_380313F2;
  12801       case 0x380313F7u: goto L_380313F7;
  12802       case 0x380313FDu: goto L_380313FD;
  12803       case 0x38031403u: goto L_38031403;
  12804       case 0x38031409u: goto L_38031409;
  12805       case 0x3803140Au: goto L_3803140A;
  12806       case 0x3803140Du: goto L_3803140D;
  12807       case 0x38031413u: goto L_38031413;
  12808       case 0x38031419u: goto L_38031419;
  12809       case 0x3803141Au: goto L_3803141A;
  12810       case 0x3803141Du: goto L_3803141D;
  12811       case 0x38031423u: goto L_38031423;
  12812       case 0x38031426u: goto L_38031426;
  12813       case 0x38031429u: goto L_38031429;
  12814       case 0x3803142Cu: goto L_3803142C;
  12815       case 0x3803142Fu: goto L_3803142F;
  12816       case 0x38031432u: goto L_38031432;
  12817       case 0x38031435u: goto L_38031435;
  12818       case 0x3803143Bu: goto L_3803143B;
  12819       case 0x3803143Eu: goto L_3803143E;
  12820       case 0x38031441u: goto L_38031441;
  12821       case 0x38031444u: goto L_38031444;
  12822       case 0x3803144Au: goto L_3803144A;
  12823       case 0x3803144Bu: goto L_3803144B;
  12824       case 0x38031451u: goto L_38031451;
  12825       case 0x38031454u: goto L_38031454;
  12826       case 0x3803145Au: goto L_3803145A;
  12827       case 0x3803145Du: goto L_3803145D;
  12828       case 0x38031460u: goto L_38031460;
  12829       case 0x38031463u: goto L_38031463;
  12830       case 0x38031469u: goto L_38031469;
  12831       case 0x3803146Bu: goto L_3803146B;
  12832       case 0x38031471u: goto L_38031471;
  12833       case 0x38031474u: goto L_38031474;
  12834       case 0x3803147Au: goto L_3803147A;
  12835       case 0x3803147Du: goto L_3803147D;
  12836       case 0x38031483u: goto L_38031483;
  12837       case 0x38031484u: goto L_38031484;
  12838       case 0x3803148Au: goto L_3803148A;
  12839       case 0x3803148Bu: goto L_3803148B;
  12840       case 0x3803148Eu: goto L_3803148E;
  12841       case 0x38031494u: goto L_38031494;
  12842       case 0x3803149Au: goto L_3803149A;
  12843       case 0x3803149Du: goto L_3803149D;
  12844       case 0x3803149Fu: goto L_3803149F;
  12845       case 0x380314A1u: goto L_380314A1;
  12846       case 0x380314A7u: goto L_380314A7;
  12847       case 0x380314AAu: goto L_380314AA;
  12848       case 0x380314B0u: goto L_380314B0;
  12849       case 0x380314B3u: goto L_380314B3;
  12850       case 0x380314B4u: goto L_380314B4;
  12851       case 0x380314BAu: goto L_380314BA;
  12852       case 0x380314BDu: goto L_380314BD;
  12853       case 0x380314C3u: goto L_380314C3;
  12854       case 0x380314C9u: goto L_380314C9;
  12855       case 0x380314CEu: goto L_380314CE;
  12856       case 0x380314D4u: goto L_380314D4;
  12857       case 0x380314DAu: goto L_380314DA;
  12858       case 0x380314E0u: goto L_380314E0;
  12859       case 0x380314E1u: goto L_380314E1;
  12860       case 0x380314E4u: goto L_380314E4;
  12861       case 0x380314EAu: goto L_380314EA;
  12862       case 0x380314F0u: goto L_380314F0;
  12863       case 0x380314F1u: goto L_380314F1;
  12864       case 0x380314F4u: goto L_380314F4;
  12865       case 0x380314FAu: goto L_380314FA;
  12866       case 0x380314FDu: goto L_380314FD;
  12867       case 0x38031500u: goto L_38031500;
  12868       case 0x38031503u: goto L_38031503;
  12869       case 0x38031508u: goto L_38031508;
  12870       case 0x3803150Bu: goto L_3803150B;
  12871       case 0x38031510u: goto L_38031510;
  12872       case 0x38031513u: goto L_38031513;
  12873       case 0x38031516u: goto L_38031516;
  12874       case 0x38031519u: goto L_38031519;
  12875       case 0x3803151Cu: goto L_3803151C;
  12876       case 0x3803151Fu: goto L_3803151F;
  12877       case 0x38031525u: goto L_38031525;
  12878       case 0x38031527u: goto L_38031527;
  12879       case 0x3803152Du: goto L_3803152D;
  12880       case 0x38031530u: goto L_38031530;
  12881       case 0x38031532u: goto L_38031532;
  12882       case 0x38031534u: goto L_38031534;
  12883       case 0x38031536u: goto L_38031536;
  12884       case 0x3803153Bu: goto L_3803153B;
  12885       case 0x3803153Eu: goto L_3803153E;
  12886       case 0x38031540u: goto L_38031540;
  12887       case 0x38031542u: goto L_38031542;
  12888       case 0x38031545u: goto L_38031545;
  12889       case 0x38031547u: goto L_38031547;
  12890       case 0x3803154Au: goto L_3803154A;
  12891       case 0x3803154Du: goto L_3803154D;
  12892       case 0x38031550u: goto L_38031550;
  12893       case 0x38031552u: goto L_38031552;
  12894       case 0x38031554u: goto L_38031554;
  12895       case 0x3803155Au: goto L_3803155A;
  12896       case 0x3803155Du: goto L_3803155D;
  12897       case 0x38031560u: goto L_38031560;
  12898       case 0x38031561u: goto L_38031561;
  12899       case 0x38031562u: goto L_38031562;
  12900       case 0x38031564u: goto L_38031564;
  12901       case 0x38031569u: goto L_38031569;
  12902       case 0x3803156Cu: goto L_3803156C;
  12903       case 0x3803156Fu: goto L_3803156F;
  12904       case 0x38031572u: goto L_38031572;
  12905       case 0x38031578u: goto L_38031578;
  12906       case 0x3803157Eu: goto L_3803157E;
  12907       case 0x38031584u: goto L_38031584;
  12908       case 0x38031587u: goto L_38031587;
  12909       case 0x38031588u: goto L_38031588;
  12910       case 0x38031589u: goto L_38031589;
  12911       case 0x3803158Bu: goto L_3803158B;
  12912       case 0x38031591u: goto L_38031591;
  12913       case 0x38031596u: goto L_38031596;
  12914       case 0x3803159Cu: goto L_3803159C;
  12915       case 0x3803159Fu: goto L_3803159F;
  12916       case 0x380315A2u: goto L_380315A2;
  12917       case 0x380315A8u: goto L_380315A8;
  12918       case 0x380315AAu: goto L_380315AA;
  12919       case 0x380315ADu: goto L_380315AD;
  12920       case 0x380315B3u: goto L_380315B3;
  12921       case 0x380315B5u: goto L_380315B5;
  12922       case 0x380315BAu: goto L_380315BA;
  12923       case 0x380315BDu: goto L_380315BD;
  12924       case 0x380315C0u: goto L_380315C0;
  12925       case 0x380315C2u: goto L_380315C2;
  12926       case 0x380315C9u: goto L_380315C9;
  12927       case 0x380315CBu: goto L_380315CB;
  12928       case 0x380315CCu: goto L_380315CC;
  12929       case 0x380315CDu: goto L_380315CD;
  12930       case 0x380315CEu: goto L_380315CE;
  12931       case 0x380315CFu: goto L_380315CF;
  12932       case 0x380315D0u: goto L_380315D0;
  12933       case 0x380315D1u: goto L_380315D1;
  12934       case 0x380315D6u: goto L_380315D6;
  12935       case 0x380315DBu: goto L_380315DB;
  12936       case 0x380315DEu: goto L_380315DE;
  12937       case 0x380315DFu: goto L_380315DF;
  12938       case 0x380315E2u: goto L_380315E2;
  12939       case 0x380315E3u: goto L_380315E3;
  12940       case 0x380315E5u: goto L_380315E5;
  12941       case 0x380315EAu: goto L_380315EA;
  12942       case 0x380315ECu: goto L_380315EC;
  12943       case 0x380315EEu: goto L_380315EE;
  12944       case 0x380315F4u: goto L_380315F4;
  12945       case 0x380315FAu: goto L_380315FA;
  12946       case 0x380315FBu: goto L_380315FB;
  12947       case 0x38031601u: goto L_38031601;
  12948       case 0x38031604u: goto L_38031604;
  12949       case 0x38031606u: goto L_38031606;
  12950       case 0x38031607u: goto L_38031607;
  12951       case 0x3803160Eu: goto L_3803160E;
  12952       case 0x38031613u: goto L_38031613;
  12953       case 0x38031616u: goto L_38031616;
  12954       case 0x3803161Cu: goto L_3803161C;
  12955       case 0x3803161Fu: goto L_3803161F;
  12956       case 0x38031622u: goto L_38031622;
  12957       case 0x38031628u: goto L_38031628;
  12958       case 0x3803162Eu: goto L_3803162E;
  12959       case 0x38031631u: goto L_38031631;
  12960       case 0x38031633u: goto L_38031633;
  12961       case 0x38031636u: goto L_38031636;
  12962       case 0x38031638u: goto L_38031638;
  12963       case 0x3803163Au: goto L_3803163A;
  12964       case 0x38031640u: goto L_38031640;
  12965       case 0x38031643u: goto L_38031643;
  12966       case 0x38031646u: goto L_38031646;
  12967       case 0x3803164Cu: goto L_3803164C;
  12968       case 0x3803164Eu: goto L_3803164E;
  12969       case 0x38031651u: goto L_38031651;
  12970       case 0x38031657u: goto L_38031657;
  12971       case 0x38031659u: goto L_38031659;
  12972       case 0x3803165Eu: goto L_3803165E;
  12973       case 0x38031661u: goto L_38031661;
  12974       case 0x38031664u: goto L_38031664;
  12975       case 0x38031666u: goto L_38031666;
  12976       case 0x3803166Du: goto L_3803166D;
  12977       case 0x3803166Fu: goto L_3803166F;
  12978       case 0x38031670u: goto L_38031670;
  12979       case 0x38031671u: goto L_38031671;
  12980       case 0x38031672u: goto L_38031672;
  12981       case 0x38031673u: goto L_38031673;
  12982       case 0x38031674u: goto L_38031674;
  12983       case 0x38031675u: goto L_38031675;
  12984       case 0x3803167Au: goto L_3803167A;
  12985       case 0x3803167Fu: goto L_3803167F;
  12986       case 0x38031682u: goto L_38031682;
  12987       case 0x38031683u: goto L_38031683;
  12988       case 0x38031686u: goto L_38031686;
  12989       case 0x38031687u: goto L_38031687;
  12990       case 0x38031689u: goto L_38031689;
  12991       case 0x3803168Eu: goto L_3803168E;
  12992       case 0x38031690u: goto L_38031690;
  12993       case 0x38031692u: goto L_38031692;
  12994       case 0x38031698u: goto L_38031698;
  12995       case 0x3803169Eu: goto L_3803169E;
  12996       case 0x380316A1u: goto L_380316A1;
  12997       case 0x380316A7u: goto L_380316A7;
  12998       case 0x380316A8u: goto L_380316A8;
  12999       case 0x380316AAu: goto L_380316AA;
  13000       case 0x380316B1u: goto L_380316B1;
  13001       case 0x380316B2u: goto L_380316B2;
  13002       case 0x380316B7u: goto L_380316B7;
  13003       case 0x380316BDu: goto L_380316BD;
  13004       case 0x380316C0u: goto L_380316C0;
  13005       case 0x380316C2u: goto L_380316C2;
  13006       case 0x380316C6u: goto L_380316C6;
  13007       case 0x380316C7u: goto L_380316C7;
  13008       case 0x380316CAu: goto L_380316CA;
  13009       case 0x380316D0u: goto L_380316D0;
  13010       case 0x380316D3u: goto L_380316D3;
  13011       case 0x380316D5u: goto L_380316D5;
  13012       case 0x380316DBu: goto L_380316DB;
  13013       case 0x380316DCu: goto L_380316DC;
  13014       case 0x380316DDu: goto L_380316DD;
  13015       case 0x380316DFu: goto L_380316DF;
  13016       case 0x380316E4u: goto L_380316E4;
  13017       case 0x380316E7u: goto L_380316E7;
  13018       case 0x380316E8u: goto L_380316E8;
  13019       case 0x380316E9u: goto L_380316E9;
  13020       case 0x380316F0u: goto L_380316F0;
  13021       case 0x380316F2u: goto L_380316F2;
  13022       case 0x380316F3u: goto L_380316F3;
  13023       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  13024     }
  13025     RECOMP_REGS_OUT();
  13026 }
  13027 
  13028 void sub_380316B7(void) {
  13029     int _fpu_cmp = 0;
  13030     uint32_t _cf = 0;
  13031     int _df = 1;
  13032     uint32_t _flag_k = FK_NONE;
  13033     uint32_t _flag_a = 0, _flag_b = 0;
  13034     uint32_t _itail_tgt = 0;
  13035     RECOMP_REGS_LOCALS
  13036     RECOMP_ENTER(0x380316B7u);
  13037 
  13038     goto L_380316B7;
  13039 L_38030E4E:
  13040     ecx = MEM32(esi + 0x80); /* 0x38030E4E: mov ecx, dword ptr [esi + 0x80] */
  13041 L_38030E54:
  13042     edi = MEM32(ebp + 0xC); /* 0x38030E54: mov edi, dword ptr [ebp + 0xc] */
  13043 L_38030E57:
  13044     eax = ecx + eax * 4; /* 0x38030E57: lea eax, [ecx + eax*4] */
  13045 L_38030E5A:
  13046     ecx = (int32_t)(int16_t)MEM16(eax); /* 0x38030E5A: movsx ecx, word ptr [eax] */
  13047 L_38030E5D:
  13048     /* cmp ecx, edi */ /* 0x38030E5D: cmp ecx, edi */
  13049     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  13050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13051     _flag_k = FK_CMP;
  13052 L_38030E5F:
  13053     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E5F: je 0x380316b7 */
  13054 L_38030E65:
  13055     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x38030E65: cmp ecx, dword ptr [esi + 0xc] */
  13056     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
  13057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13058     _flag_k = FK_CMP;
  13059 L_38030E68:
  13060     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E68: je 0x380316b7 */
  13061 L_38030E6E:
  13062     ecx = MEM32(esi + 0xB0); /* 0x38030E6E: mov ecx, dword ptr [esi + 0xb0] */
  13063 L_38030E74:
  13064     /* cmp ecx, ebx */ /* 0x38030E74: cmp ecx, ebx */
  13065     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  13066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13067     _flag_k = FK_CMP;
  13068 L_38030E76:
  13069     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x38030E76: je 0x380316b7 */
  13070 L_38030E7C:
  13071     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x38030E7C: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
  13072     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
  13073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13074     _flag_k = FK_CMP;
  13075 L_38030E84:
  13076     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380310BB; /* 0x38030E84: je 0x380310bb */
  13077 L_38030E8A:
  13078     edx = MEM32(esi + 0x44); /* 0x38030E8A: mov edx, dword ptr [esi + 0x44] */
  13079 L_38030E8D:
  13080     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x38030E8D: mov ax, word ptr [eax + 2] */
  13081 L_38030E91:
  13082     MEM32(ebp + (-0xE4)) = edx; /* 0x38030E91: mov dword ptr [ebp - 0xe4], edx */
  13083 L_38030E97:
  13084     MEM32(ebp + (-0xE0)) = ebx; /* 0x38030E97: mov dword ptr [ebp - 0xe0], ebx */
  13085 L_38030E9D:
  13086     fp_push_i64((int64_t)MEM64(ebp + (-0xE4))); /* 0x38030E9D: fild qword ptr [ebp - 0xe4] */
  13087 L_38030EA3:
  13088     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38030EA3: fmul dword ptr [0x3804eac0] */
  13089 L_38030EA9:
  13090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  13091     eax = eax & 3; /* 0x38030EA9: and eax, 3 */
  13092     _cf = 0;
  13093     _flag_k = FK_TEST;
  13094 L_38030EAC:
  13095     MEM32(ebp + (-0x14)) = eax; /* 0x38030EAC: mov dword ptr [ebp - 0x14], eax */
  13096 L_38030EAF:
  13097     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030EAF: fcom dword ptr [0x3804e8e4] */
  13098 L_38030EB5:
  13099     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EB5: fnstsw ax */
  13100 L_38030EB7:
  13101     /* test HI8(eax), 1 */ /* 0x38030EB7: test ah, 1 */
  13102     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13103     _cf = 0;
  13104     _flag_k = FK_NARROW(FK_TEST, 24);
  13105 L_38030EBA:
  13106     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030ED1; /* 0x38030EBA: jne 0x38030ed1 */
  13107 L_38030EBC:
  13108     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030EBC: fcom qword ptr [0x3804e8f8] */
  13109 L_38030EC2:
  13110     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030EC2: fnstsw ax */
  13111 L_38030EC4:
  13112     /* test HI8(eax), 1 */ /* 0x38030EC4: test ah, 1 */
  13113     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13114     _cf = 0;
  13115     _flag_k = FK_NARROW(FK_TEST, 24);
  13116 L_38030EC7:
  13117     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030ED1; /* 0x38030EC7: je 0x38030ed1 */
  13118 L_38030EC9:
  13119     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030EC9: fmul dword ptr [0x3804e8bc] */
  13120 L_38030ECF:
  13121     goto L_38030EF2; /* 0x38030ECF: jmp 0x38030ef2 */
  13122 L_38030ED1:
  13123     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030ED1: fmul dword ptr [0x3804e8f4] */
  13124 L_38030ED7:
  13125     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13127     esp = esp - 8; /* 0x38030ED7: sub esp, 8 */
  13128     _flag_k = FK_CMP;
  13129 L_38030EDA:
  13130     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EDA: fst dword ptr [ebp - 0x10] */
  13131 L_38030EDD:
  13132     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030EDD: fstp qword ptr [esp] */
  13133 L_38030EE0:
  13134     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030EE0: call dword ptr [0x3804e0ac] */
  13135     RECOMP_FLAGS_IN();
  13136 L_38030EE6:
  13137     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030EE6: fsubr dword ptr [ebp - 0x10] */
  13138 L_38030EE9:
  13139     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13141     esp = esp + 8; /* 0x38030EE9: add esp, 8 */
  13142     _flag_k = FK_ADD;
  13143 L_38030EEC:
  13144     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030EEC: fmul dword ptr [0x3804e8f0] */
  13145 L_38030EF2:
  13146     fp_push(_st[0]); /* 0x38030EF2: fld st(0) */
  13147 L_38030EF4:
  13148     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030EF4: fsin  */
  13149 L_38030EF6:
  13150     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030EF6: fld dword ptr [0x3804e8e4] */
  13151 L_38030EFC:
  13152     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030EFC: fst dword ptr [ebp - 0x10] */
  13153 L_38030EFF:
  13154     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38030EFF: fstp dword ptr [ebp - 0x74] */
  13155 L_38030F02:
  13156     eax = MEM32(ebp + (-0x10)); /* 0x38030F02: mov eax, dword ptr [ebp - 0x10] */
  13157 L_38030F05:
  13158     MEM32(ebp + (-0x6C)) = eax; /* 0x38030F05: mov dword ptr [ebp - 0x6c], eax */
  13159 L_38030F08:
  13160     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x38030F08: fstp dword ptr [ebp - 0x70] */
  13161 L_38030F0B:
  13162     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F0B: fcos  */
  13163 L_38030F0D:
  13164     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38030F0D: fstp dword ptr [ebp - 0x68] */
  13165 L_38030F10:
  13166     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38030F10: fild dword ptr [ebp - 0x14] */
  13167 L_38030F13:
  13168     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38030F13: fmul qword ptr [0x3804f6a0] */
  13169 L_38030F19:
  13170     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38030F19: fadd qword ptr [0x3804f698] */
  13171 L_38030F1F:
  13172     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38030F1F: fcom dword ptr [0x3804e8e4] */
  13173 L_38030F25:
  13174     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F25: fnstsw ax */
  13175 L_38030F27:
  13176     /* test HI8(eax), 1 */ /* 0x38030F27: test ah, 1 */
  13177     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13178     _cf = 0;
  13179     _flag_k = FK_NARROW(FK_TEST, 24);
  13180 L_38030F2A:
  13181     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38030F41; /* 0x38030F2A: jne 0x38030f41 */
  13182 L_38030F2C:
  13183     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38030F2C: fcom qword ptr [0x3804e8f8] */
  13184 L_38030F32:
  13185     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38030F32: fnstsw ax */
  13186 L_38030F34:
  13187     /* test HI8(eax), 1 */ /* 0x38030F34: test ah, 1 */
  13188     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13189     _cf = 0;
  13190     _flag_k = FK_NARROW(FK_TEST, 24);
  13191 L_38030F37:
  13192     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38030F41; /* 0x38030F37: je 0x38030f41 */
  13193 L_38030F39:
  13194     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38030F39: fmul dword ptr [0x3804e8bc] */
  13195 L_38030F3F:
  13196     goto L_38030F62; /* 0x38030F3F: jmp 0x38030f62 */
  13197 L_38030F41:
  13198     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38030F41: fmul dword ptr [0x3804e8f4] */
  13199 L_38030F47:
  13200     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13202     esp = esp - 8; /* 0x38030F47: sub esp, 8 */
  13203     _flag_k = FK_CMP;
  13204 L_38030F4A:
  13205     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030F4A: fst dword ptr [ebp - 0x10] */
  13206 L_38030F4D:
  13207     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38030F4D: fstp qword ptr [esp] */
  13208 L_38030F50:
  13209     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38030F50: call dword ptr [0x3804e0ac] */
  13210     RECOMP_FLAGS_IN();
  13211 L_38030F56:
  13212     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38030F56: fsubr dword ptr [ebp - 0x10] */
  13213 L_38030F59:
  13214     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13215     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13216     esp = esp + 8; /* 0x38030F59: add esp, 8 */
  13217     _flag_k = FK_ADD;
  13218 L_38030F5C:
  13219     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38030F5C: fmul dword ptr [0x3804e8f0] */
  13220 L_38030F62:
  13221     fp_push(_st[0]); /* 0x38030F62: fld st(0) */
  13222 L_38030F64:
  13223     PUSH32(esp, 0x3806CB10u); /* 0x38030F64: push 0x3806cb10 */
  13224 L_38030F69:
  13225     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38030F69: fsin  */
  13226 L_38030F6B:
  13227     PUSH32(esp, 0x000F6951u); /* 0x38030F6B: push 0xf6951 */
  13228 L_38030F70:
  13229     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38030F70: fld dword ptr [0x3804e8e4] */
  13230 L_38030F76:
  13231     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030F76: fst dword ptr [ebp - 0x14] */
  13232 L_38030F79:
  13233     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38030F79: fstp dword ptr [ebp - 0x64] */
  13234 L_38030F7C:
  13235     ecx = MEM32(ebp + (-0x14)); /* 0x38030F7C: mov ecx, dword ptr [ebp - 0x14] */
  13236 L_38030F7F:
  13237     MEM32(ebp + (-0x5C)) = ecx; /* 0x38030F7F: mov dword ptr [ebp - 0x5c], ecx */
  13238 L_38030F82:
  13239     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x38030F82: fstp dword ptr [ebp - 0x60] */
  13240 L_38030F85:
  13241     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38030F85: fcos  */
  13242 L_38030F87:
  13243     fp_push(_st[0]); /* 0x38030F87: fld st(0) */
  13244 L_38030F89:
  13245     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030F89: fmul dword ptr [ebp - 0x74] */
  13246 L_38030F8C:
  13247     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030F8C: fld dword ptr [ebp - 0x5c] */
  13248 L_38030F8F:
  13249     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030F8F: fmul dword ptr [ebp - 0x70] */
  13250 L_38030F92:
  13251     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030F92: faddp st(1) */
  13252 L_38030F94:
  13253     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030F94: fld dword ptr [ebp - 0x60] */
  13254 L_38030F97:
  13255     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030F97: fmul dword ptr [ebp - 0x6c] */
  13256 L_38030F9A:
  13257     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030F9A: fsubp st(1) */
  13258 L_38030F9C:
  13259     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x38030F9C: fld dword ptr [ebp - 0x68] */
  13260 L_38030F9F:
  13261     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030F9F: fmul dword ptr [ebp - 0x64] */
  13262 L_38030FA2:
  13263     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FA2: faddp st(1) */
  13264 L_38030FA4:
  13265     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FA4: fld dword ptr [ebp - 0x60] */
  13266 L_38030FA7:
  13267     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FA7: fmul dword ptr [ebp - 0x68] */
  13268 L_38030FAA:
  13269     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FAA: fld dword ptr [ebp - 0x5c] */
  13270 L_38030FAD:
  13271     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FAD: fmul dword ptr [ebp - 0x74] */
  13272 L_38030FB0:
  13273     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FB0: fsubp st(1) */
  13274 L_38030FB2:
  13275     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x38030FB2: fld dword ptr [ebp - 0x6c] */
  13276 L_38030FB5:
  13277     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FB5: fmul dword ptr [ebp - 0x64] */
  13278 L_38030FB8:
  13279     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FB8: faddp st(1) */
  13280 L_38030FBA:
  13281     fp_push(_st[2]); /* 0x38030FBA: fld st(2) */
  13282 L_38030FBC:
  13283     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38030FBC: fmul dword ptr [ebp - 0x70] */
  13284 L_38030FBF:
  13285     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FBF: faddp st(1) */
  13286 L_38030FC1:
  13287     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38030FC1: fstp dword ptr [ebp - 0x14] */
  13288 L_38030FC4:
  13289     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38030FC4: fld dword ptr [ebp - 0x60] */
  13290 L_38030FC7:
  13291     edx = MEM32(ebp + (-0x14)); /* 0x38030FC7: mov edx, dword ptr [ebp - 0x14] */
  13292 L_38030FCA:
  13293     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FCA: fmul dword ptr [ebp - 0x74] */
  13294 L_38030FCD:
  13295     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x38030FCD: fld dword ptr [ebp - 0x70] */
  13296 L_38030FD0:
  13297     _st[0] *= (double)*(float*)ADDR(ebp + (-0x64)); /* 0x38030FD0: fmul dword ptr [ebp - 0x64] */
  13298 L_38030FD3:
  13299     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38030FD3: fsubp st(1) */
  13300 L_38030FD5:
  13301     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FD5: fld dword ptr [ebp - 0x5c] */
  13302 L_38030FD8:
  13303     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FD8: fmul dword ptr [ebp - 0x68] */
  13304 L_38030FDB:
  13305     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FDB: faddp st(1) */
  13306 L_38030FDD:
  13307     fp_push(_st[2]); /* 0x38030FDD: fld st(2) */
  13308 L_38030FDF:
  13309     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FDF: fmul dword ptr [ebp - 0x6c] */
  13310 L_38030FE2:
  13311     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FE2: faddp st(1) */
  13312 L_38030FE4:
  13313     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38030FE4: fstp dword ptr [ebp - 0x10] */
  13314 L_38030FE7:
  13315     eax = MEM32(ebp + (-0x10)); /* 0x38030FE7: mov eax, dword ptr [ebp - 0x10] */
  13316 L_38030FEA:
  13317     fp_xch(1); /* 0x38030FEA: fxch st(1) */
  13318 L_38030FEC:
  13319     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x38030FEC: fmul dword ptr [ebp - 0x68] */
  13320 L_38030FEF:
  13321     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x38030FEF: fld dword ptr [ebp - 0x64] */
  13322 L_38030FF2:
  13323     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x38030FF2: fmul dword ptr [ebp - 0x74] */
  13324 L_38030FF5:
  13325     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x38030FF5: fld dword ptr [ebp - 0x5c] */
  13326 L_38030FF8:
  13327     MEM32(ebp + (-0x5C)) = eax; /* 0x38030FF8: mov dword ptr [ebp - 0x5c], eax */
  13328 L_38030FFB:
  13329     _st[0] *= (double)*(float*)ADDR(ebp + (-0x6C)); /* 0x38030FFB: fmul dword ptr [ebp - 0x6c] */
  13330 L_38030FFE:
  13331     { double _v = fp_pop(); _st[0] += _v; } /* 0x38030FFE: faddp st(1) */
  13332 L_38031000:
  13333     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38031000: fld dword ptr [ebp - 0x60] */
  13334 L_38031003:
  13335     MEM32(ebp + (-0x60)) = edx; /* 0x38031003: mov dword ptr [ebp - 0x60], edx */
  13336 L_38031006:
  13337     _st[0] *= (double)*(float*)ADDR(ebp + (-0x70)); /* 0x38031006: fmul dword ptr [ebp - 0x70] */
  13338 L_38031009:
  13339     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031009: faddp st(1) */
  13340 L_3803100B:
  13341     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803100B: fsubp st(1) */
  13342 L_3803100D:
  13343     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x3803100D: fstp dword ptr [ebp - 0x58] */
  13344 L_38031010:
  13345     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38031010: fstp dword ptr [ebp - 0x64] */
  13346 L_38031013:
  13347     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x38031013: call dword ptr [0x3804e4b0] */
  13348     RECOMP_FLAGS_IN();
  13349 L_38031019:
  13350     edi = eax; /* 0x38031019: mov edi, eax */
  13351 L_3803101B:
  13352     eax = MEM32(esi + 0x98); /* 0x3803101B: mov eax, dword ptr [esi + 0x98] */
  13353 L_38031021:
  13354     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13356     esp = esp + 8; /* 0x38031021: add esp, 8 */
  13357     _flag_k = FK_ADD;
  13358 L_38031024:
  13359     /* cmp eax, ebx */ /* 0x38031024: cmp eax, ebx */
  13360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  13361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13362     _flag_k = FK_CMP;
  13363 L_38031026:
  13364     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803104E; /* 0x38031026: jne 0x3803104e */
  13365 L_38031028:
  13366     PUSH32(esp, 0x10u); /* 0x38031028: push 0x10 */
  13367 L_3803102A:
  13368     RECOMP_ICALL(0x3804B676u); /* 0x3803102A: call 0x3804b676 */ /* not lifted */
  13369     RECOMP_FLAGS_IN();
  13370 L_3803102F:
  13371     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13372     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13373     esp = esp + 4; /* 0x3803102F: add esp, 4 */
  13374     _flag_k = FK_ADD;
  13375 L_38031032:
  13376     /* cmp eax, ebx */ /* 0x38031032: cmp eax, ebx */
  13377     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  13378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13379     _flag_k = FK_CMP;
  13380 L_38031034:
  13381     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031046; /* 0x38031034: je 0x38031046 */
  13382 L_38031036:
  13383     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031036: mov cl, byte ptr [ebp + 0xb] */
  13384 L_38031039:
  13385     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031039: mov byte ptr [eax], cl */
  13386 L_3803103B:
  13387     MEM32(eax + 0x4) = ebx; /* 0x3803103B: mov dword ptr [eax + 4], ebx */
  13388 L_3803103E:
  13389     MEM32(eax + 0x8) = ebx; /* 0x3803103E: mov dword ptr [eax + 8], ebx */
  13390 L_38031041:
  13391     MEM32(eax + 0xC) = ebx; /* 0x38031041: mov dword ptr [eax + 0xc], ebx */
  13392 L_38031044:
  13393     goto L_38031048; /* 0x38031044: jmp 0x38031048 */
  13394 L_38031046:
  13395     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13396     eax = 0; /* 0x38031046: xor eax, eax */
  13397     _cf = 0;
  13398     _flag_k = FK_TEST;
  13399 L_38031048:
  13400     MEM32(esi + 0x98) = eax; /* 0x38031048: mov dword ptr [esi + 0x98], eax */
  13401 L_3803104E:
  13402     PUSH32(esp, 0x58u); /* 0x3803104E: push 0x58 */
  13403 L_38031050:
  13404     RECOMP_ICALL(0x3804B676u); /* 0x38031050: call 0x3804b676 */ /* not lifted */
  13405     RECOMP_FLAGS_IN();
  13406 L_38031055:
  13407     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13408     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13409     esp = esp + 4; /* 0x38031055: add esp, 4 */
  13410     _flag_k = FK_ADD;
  13411 L_38031058:
  13412     MEM32(ebp + (-0x24)) = eax; /* 0x38031058: mov dword ptr [ebp - 0x24], eax */
  13413 L_3803105B:
  13414     /* cmp eax, ebx */ /* 0x3803105B: cmp eax, ebx */
  13415     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  13416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13417     _flag_k = FK_CMP;
  13418 L_3803105D:
  13419     MEM32(ebp + (-0x4)) = ebx; /* 0x3803105D: mov dword ptr [ebp - 4], ebx */
  13420 L_38031060:
  13421     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031094; /* 0x38031060: je 0x38031094 */
  13422 L_38031062:
  13423     ecx = MEM32(ebp + (-0x78)); /* 0x38031062: mov ecx, dword ptr [ebp - 0x78] */
  13424 L_38031065:
  13425     edx = MEM32(esi + 0xB0); /* 0x38031065: mov edx, dword ptr [esi + 0xb0] */
  13426 L_3803106B:
  13427     fp_push(*(float*)&MEM32(edx + ecx + 0xC)); /* 0x3803106B: fld dword ptr [edx + ecx + 0xc] */
  13428 L_3803106F:
  13429     PUSH32(esp, ebx); /* 0x3803106F: push ebx */
  13430 L_38031070:
  13431     _st[0] *= (double)*(float*)ADDR(0x3804F694); /* 0x38031070: fmul dword ptr [0x3804f694] */
  13432 L_38031076:
  13433     PUSH32(esp, ebx); /* 0x38031076: push ebx */
  13434 L_38031077:
  13435     PUSH32(esp, ebx); /* 0x38031077: push ebx */
  13436 L_38031078:
  13437     PUSH32(esp, ebx); /* 0x38031078: push ebx */
  13438 L_38031079:
  13439     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  13440     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13441     edx = edx + ecx; /* 0x38031079: add edx, ecx */
  13442     _flag_k = FK_ADD;
  13443 L_3803107B:
  13444     PUSH32(esp, ebx); /* 0x3803107B: push ebx */
  13445 L_3803107C:
  13446     PUSH32(esp, edi); /* 0x3803107C: push edi */
  13447 L_3803107D:
  13448     PUSH32(esp, ecx); /* 0x3803107D: push ecx */
  13449 L_3803107E:
  13450     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3803107E: fstp dword ptr [esp] */
  13451 L_38031081:
  13452     PUSH32(esp, 0x00FFFFFFu); /* 0x38031081: push 0xffffff */
  13453 L_38031086:
  13454     ecx = ebp + (-0x64); /* 0x38031086: lea ecx, [ebp - 0x64] */
  13455 L_38031089:
  13456     PUSH32(esp, ecx); /* 0x38031089: push ecx */
  13457 L_3803108A:
  13458     PUSH32(esp, edx); /* 0x3803108A: push edx */
  13459 L_3803108B:
  13460     ecx = eax; /* 0x3803108B: mov ecx, eax */
  13461 L_3803108D:
  13462     RECOMP_ICALL(0x3800B350u); /* 0x3803108D: call 0x3800b350 */ /* not lifted */
  13463     RECOMP_FLAGS_IN();
  13464 L_38031092:
  13465     goto L_38031096; /* 0x38031092: jmp 0x38031096 */
  13466 L_38031094:
  13467     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13468     eax = 0; /* 0x38031094: xor eax, eax */
  13469     _cf = 0;
  13470     _flag_k = FK_TEST;
  13471 L_38031096:
  13472     ecx = MEM32(esi + 0x98); /* 0x38031096: mov ecx, dword ptr [esi + 0x98] */
  13473 L_3803109C:
  13474     edx = ebp + (-0xB0); /* 0x3803109C: lea edx, [ebp - 0xb0] */
  13475 L_380310A2:
  13476     PUSH32(esp, edx); /* 0x380310A2: push edx */
  13477 L_380310A3:
  13478     MEM32(ebp + (-0xB0)) = eax; /* 0x380310A3: mov dword ptr [ebp - 0xb0], eax */
  13479 L_380310A9:
  13480     eax = MEM32(ecx + 0x8); /* 0x380310A9: mov eax, dword ptr [ecx + 8] */
  13481 L_380310AC:
  13482     PUSH32(esp, 1); /* 0x380310AC: push 1 */
  13483 L_380310AE:
  13484     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380310AE: mov dword ptr [ebp - 4], 0xffffffff */
  13485 L_380310B5:
  13486     PUSH32(esp, eax); /* 0x380310B5: push eax */
  13487 L_380310B6:
  13488     goto L_380316B2; /* 0x380310B6: jmp 0x380316b2 */
  13489 L_380310BB:
  13490     /* cmp ecx, ebx */ /* 0x380310BB: cmp ecx, ebx */
  13491     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  13492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13493     _flag_k = FK_CMP;
  13494 L_380310BD:
  13495     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380316B7; /* 0x380310BD: je 0x380316b7 */
  13496 L_380310C3:
  13497     /* cmp MEM32(ecx + edx + 0x4), 0xBF800000u */ /* 0x380310C3: cmp dword ptr [ecx + edx + 4], 0xbf800000 */
  13498     _flag_a = (uint32_t)(MEM32(ecx + edx + 0x4)); _flag_b = (uint32_t)(0xBF800000u);
  13499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13500     _flag_k = FK_CMP;
  13501 L_380310CB:
  13502     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_380316B7; /* 0x380310CB: jne 0x380316b7 */
  13503 L_380310D1:
  13504     SET_LO16(eax, MEM16(eax + 0x2)); /* 0x380310D1: mov ax, word ptr [eax + 2] */
  13505 L_380310D5:
  13506     MEM32(ebp + (-0x1C)) = 0; /* 0x380310D5: mov dword ptr [ebp - 0x1c], 0 */
  13507 L_380310DC:
  13508     MEM32(ebp + (-0x10)) = eax; /* 0x380310DC: mov dword ptr [ebp - 0x10], eax */
  13509 L_380310DF:
  13510     if (2u) _cf = (((MEM16(ebp + (-0x10))) >> 1) & 1u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
  13511     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x10)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  13512     MEM16(ebp + (-0x10)) = (uint16_t)(MEM16(ebp + (-0x10)) >> 2u); /* 0x380310DF: shr word ptr [ebp - 0x10], 2 */
  13513 L_380310E4:
  13514     ecx = MEM32(ebp + (-0x10)); /* 0x380310E4: mov ecx, dword ptr [ebp - 0x10] */
  13515 L_380310E7:
  13516     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  13517     eax = eax & 3; /* 0x380310E7: and eax, 3 */
  13518     _cf = 0;
  13519     _flag_k = FK_TEST;
  13520 L_380310EA:
  13521     edi = eax; /* 0x380310EA: mov edi, eax */
  13522 L_380310EC:
  13523     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
  13524     ecx = ecx & 0xFFFFu; /* 0x380310EC: and ecx, 0xffff */
  13525     _cf = 0;
  13526     _flag_k = FK_TEST;
  13527 L_380310F2:
  13528     eax = ecx; /* 0x380310F2: mov eax, ecx */
  13529 L_380310F4:
  13530     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x380310F4: cdq  */
  13531 L_380310F5:
  13532     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x380310F5: idiv dword ptr [ebp - 0x88] */
  13533       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  13534       else { eax = 0; edx = 0; } }
  13535 L_380310FB:
  13536     eax = ecx; /* 0x380310FB: mov eax, ecx */
  13537 L_380310FD:
  13538     ecx = esi + 0x6C; /* 0x380310FD: lea ecx, [esi + 0x6c] */
  13539 L_38031100:
  13540     MEM32(ebp + (-0x24)) = edi; /* 0x38031100: mov dword ptr [ebp - 0x24], edi */
  13541 L_38031103:
  13542     MEM32(ebp + (-0x14)) = edx; /* 0x38031103: mov dword ptr [ebp - 0x14], edx */
  13543 L_38031106:
  13544     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031106: cdq  */
  13545 L_38031107:
  13546     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x38031107: fild dword ptr [ebp - 0x14] */
  13547 L_3803110A:
  13548     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x88)); /* 0x3803110A: idiv dword ptr [ebp - 0x88] */
  13549       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  13550       else { eax = 0; edx = 0; } }
  13551 L_38031110:
  13552     /* cmp edi, 3 */ /* 0x38031110: cmp edi, 3 */
  13553     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
  13554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13555     _flag_k = FK_CMP;
  13556 L_38031113:
  13557     edx = MEM32(ecx); /* 0x38031113: mov edx, dword ptr [ecx] */
  13558 L_38031115:
  13559     MEM32(ebp + (-0x84)) = edx; /* 0x38031115: mov dword ptr [ebp - 0x84], edx */
  13560 L_3803111B:
  13561     MEM32(ebp + (-0x10)) = eax; /* 0x3803111B: mov dword ptr [ebp - 0x10], eax */
  13562 L_3803111E:
  13563     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3803111E: fild dword ptr [ebp - 0x10] */
  13564 L_38031121:
  13565     eax = MEM32(ecx + 0x4); /* 0x38031121: mov eax, dword ptr [ecx + 4] */
  13566 L_38031124:
  13567     ecx = MEM32(ecx + 0x8); /* 0x38031124: mov ecx, dword ptr [ecx + 8] */
  13568 L_38031127:
  13569     MEM32(ebp + (-0x80)) = eax; /* 0x38031127: mov dword ptr [ebp - 0x80], eax */
  13570 L_3803112A:
  13571     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803112A: fstp dword ptr [ebp - 0x18] */
  13572 L_3803112D:
  13573     MEM32(ebp + (-0x7C)) = ecx; /* 0x3803112D: mov dword ptr [ebp - 0x7c], ecx */
  13574 L_38031130:
  13575     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031130: fmul dword ptr [ebp - 0x44] */
  13576 L_38031133:
  13577     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031133: fld dword ptr [ebp - 0x18] */
  13578 L_38031136:
  13579     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031136: fmul dword ptr [ebp - 0x44] */
  13580 L_38031139:
  13581     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031139: fstp dword ptr [ebp - 0x18] */
  13582 L_3803113C:
  13583     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x3803113C: fld dword ptr [ebp - 0x84] */
  13584 L_38031142:
  13585     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031142: fmul dword ptr [ebp - 0x44] */
  13586 L_38031145:
  13587     fp_push(*(float*)&MEM32(ebp + (-0x80))); /* 0x38031145: fld dword ptr [ebp - 0x80] */
  13588 L_38031148:
  13589     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031148: fmul dword ptr [ebp - 0x44] */
  13590 L_3803114B:
  13591     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803114B: fstp dword ptr [ebp - 0x80] */
  13592 L_3803114E:
  13593     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3803114E: fld dword ptr [ebp - 0x7c] */
  13594 L_38031151:
  13595     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x38031151: fmul dword ptr [ebp - 0x44] */
  13596 L_38031154:
  13597     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38031154: fstp dword ptr [ebp - 0x7c] */
  13598 L_38031157:
  13599     fp_xch(1); /* 0x38031157: fxch st(1) */
  13600 L_38031159:
  13601     _st[0] -= _st[1]; /* 0x38031159: fsub st(1) */
  13602 L_3803115B:
  13603     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3803115B: fstp dword ptr [ebp - 0x20] */
  13604 L_3803115E:
  13605     edx = MEM32(ebp + (-0x20)); /* 0x3803115E: mov edx, dword ptr [ebp - 0x20] */
  13606 L_38031161:
  13607     MEM32(ebp + (-0x30)) = edx; /* 0x38031161: mov dword ptr [ebp - 0x30], edx */
  13608 L_38031164:
  13609     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031164: fstp st(0) */
  13610 L_38031166:
  13611     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38031166: fld dword ptr [ebp - 0x1c] */
  13612 L_38031169:
  13613     _st[0] -= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x38031169: fsub dword ptr [ebp - 0x80] */
  13614 L_3803116C:
  13615     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803116C: fstp dword ptr [ebp - 0x1c] */
  13616 L_3803116F:
  13617     eax = MEM32(ebp + (-0x1C)); /* 0x3803116F: mov eax, dword ptr [ebp - 0x1c] */
  13618 L_38031172:
  13619     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031172: fld dword ptr [ebp - 0x18] */
  13620 L_38031175:
  13621     MEM32(ebp + (-0x2C)) = eax; /* 0x38031175: mov dword ptr [ebp - 0x2c], eax */
  13622 L_38031178:
  13623     _st[0] -= (double)*(float*)ADDR(ebp + (-0x7C)); /* 0x38031178: fsub dword ptr [ebp - 0x7c] */
  13624 L_3803117B:
  13625     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803117B: fstp dword ptr [ebp - 0x18] */
  13626 L_3803117E:
  13627     ecx = MEM32(ebp + (-0x18)); /* 0x3803117E: mov ecx, dword ptr [ebp - 0x18] */
  13628 L_38031181:
  13629     MEM32(ebp + (-0x28)) = ecx; /* 0x38031181: mov dword ptr [ebp - 0x28], ecx */
  13630 L_38031184:
  13631     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_380311F0; /* 0x38031184: ja 0x380311f0 */
  13632 L_38031186:
  13633     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x380316F8)); goto _ljump; }
  13634 L_3803118D:
  13635     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803118D: fld dword ptr [ebp - 0x18] */
  13636 L_38031190:
  13637     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031190: fadd dword ptr [0x3804f690] */
  13638 L_38031196:
  13639     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031196: fstp dword ptr [ebp - 0x18] */
  13640 L_38031199:
  13641     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031199: fld dword ptr [ebp - 0x28] */
  13642 L_3803119C:
  13643     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x3803119C: fadd dword ptr [0x3804f68c] */
  13644 L_380311A2:
  13645     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311A2: fstp dword ptr [ebp - 0x28] */
  13646 L_380311A5:
  13647     goto L_380311F0; /* 0x380311A5: jmp 0x380311f0 */
  13648 L_380311A7:
  13649     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311A7: fld dword ptr [ebp - 0x20] */
  13650 L_380311AA:
  13651     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380311AA: fadd dword ptr [0x3804f690] */
  13652 L_380311B0:
  13653     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311B0: fstp dword ptr [ebp - 0x20] */
  13654 L_380311B3:
  13655     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311B3: fld dword ptr [ebp - 0x30] */
  13656 L_380311B6:
  13657     _st[0] += (double)*(float*)ADDR(0x3804F68C); /* 0x380311B6: fadd dword ptr [0x3804f68c] */
  13658 L_380311BC:
  13659     goto L_380311ED; /* 0x380311BC: jmp 0x380311ed */
  13660 L_380311BE:
  13661     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380311BE: fld dword ptr [ebp - 0x18] */
  13662 L_380311C1:
  13663     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311C1: fsub dword ptr [0x3804f690] */
  13664 L_380311C7:
  13665     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380311C7: fstp dword ptr [ebp - 0x18] */
  13666 L_380311CA:
  13667     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380311CA: fld dword ptr [ebp - 0x28] */
  13668 L_380311CD:
  13669     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311CD: fsub dword ptr [0x3804f68c] */
  13670 L_380311D3:
  13671     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380311D3: fstp dword ptr [ebp - 0x28] */
  13672 L_380311D6:
  13673     goto L_380311F0; /* 0x380311D6: jmp 0x380311f0 */
  13674 L_380311D8:
  13675     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380311D8: fld dword ptr [ebp - 0x20] */
  13676 L_380311DB:
  13677     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380311DB: fsub dword ptr [0x3804f690] */
  13678 L_380311E1:
  13679     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380311E1: fstp dword ptr [ebp - 0x20] */
  13680 L_380311E4:
  13681     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380311E4: fld dword ptr [ebp - 0x30] */
  13682 L_380311E7:
  13683     _st[0] -= (double)*(float*)ADDR(0x3804F68C); /* 0x380311E7: fsub dword ptr [0x3804f68c] */
  13684 L_380311ED:
  13685     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380311ED: fstp dword ptr [ebp - 0x30] */
  13686 L_380311F0:
  13687     edx = MEM32(esi + 0x44); /* 0x380311F0: mov edx, dword ptr [esi + 0x44] */
  13688 L_380311F3:
  13689     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13690     ebx = 0; /* 0x380311F3: xor ebx, ebx */
  13691     _cf = 0;
  13692     _flag_k = FK_TEST;
  13693 L_380311F5:
  13694     MEM32(ebp + (-0xDC)) = edx; /* 0x380311F5: mov dword ptr [ebp - 0xdc], edx */
  13695 L_380311FB:
  13696     MEM32(ebp + (-0xD8)) = ebx; /* 0x380311FB: mov dword ptr [ebp - 0xd8], ebx */
  13697 L_38031201:
  13698     fp_push_i64((int64_t)MEM64(ebp + (-0xDC))); /* 0x38031201: fild qword ptr [ebp - 0xdc] */
  13699 L_38031207:
  13700     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031207: fmul dword ptr [0x3804eac0] */
  13701 L_3803120D:
  13702     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803120D: fcom dword ptr [0x3804e8e4] */
  13703 L_38031213:
  13704     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031213: fnstsw ax */
  13705 L_38031215:
  13706     /* test HI8(eax), 1 */ /* 0x38031215: test ah, 1 */
  13707     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13708     _cf = 0;
  13709     _flag_k = FK_NARROW(FK_TEST, 24);
  13710 L_38031218:
  13711     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803122F; /* 0x38031218: jne 0x3803122f */
  13712 L_3803121A:
  13713     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803121A: fcom qword ptr [0x3804e8f8] */
  13714 L_38031220:
  13715     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031220: fnstsw ax */
  13716 L_38031222:
  13717     /* test HI8(eax), 1 */ /* 0x38031222: test ah, 1 */
  13718     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13719     _cf = 0;
  13720     _flag_k = FK_NARROW(FK_TEST, 24);
  13721 L_38031225:
  13722     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803122F; /* 0x38031225: je 0x3803122f */
  13723 L_38031227:
  13724     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031227: fmul dword ptr [0x3804e8bc] */
  13725 L_3803122D:
  13726     goto L_38031250; /* 0x3803122D: jmp 0x38031250 */
  13727 L_3803122F:
  13728     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803122F: fmul dword ptr [0x3804e8f4] */
  13729 L_38031235:
  13730     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13731     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13732     esp = esp - 8; /* 0x38031235: sub esp, 8 */
  13733     _flag_k = FK_CMP;
  13734 L_38031238:
  13735     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031238: fst dword ptr [ebp - 0x10] */
  13736 L_3803123B:
  13737     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3803123B: fstp qword ptr [esp] */
  13738 L_3803123E:
  13739     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3803123E: call dword ptr [0x3804e0ac] */
  13740     RECOMP_FLAGS_IN();
  13741 L_38031244:
  13742     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x38031244: fsubr dword ptr [ebp - 0x10] */
  13743 L_38031247:
  13744     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13745     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13746     esp = esp + 8; /* 0x38031247: add esp, 8 */
  13747     _flag_k = FK_ADD;
  13748 L_3803124A:
  13749     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3803124A: fmul dword ptr [0x3804e8f0] */
  13750 L_38031250:
  13751     fp_push(_st[0]); /* 0x38031250: fld st(0) */
  13752 L_38031252:
  13753     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031252: fsin  */
  13754 L_38031254:
  13755     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031254: fld dword ptr [0x3804e8e4] */
  13756 L_3803125A:
  13757     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803125A: fst dword ptr [ebp - 0x14] */
  13758 L_3803125D:
  13759     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3803125D: fstp dword ptr [ebp - 0x40] */
  13760 L_38031260:
  13761     eax = MEM32(ebp + (-0x14)); /* 0x38031260: mov eax, dword ptr [ebp - 0x14] */
  13762 L_38031263:
  13763     MEM32(ebp + (-0x38)) = eax; /* 0x38031263: mov dword ptr [ebp - 0x38], eax */
  13764 L_38031266:
  13765     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x38031266: fstp dword ptr [ebp - 0x3c] */
  13766 L_38031269:
  13767     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031269: fcos  */
  13768 L_3803126B:
  13769     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3803126B: fstp dword ptr [ebp - 0x34] */
  13770 L_3803126E:
  13771     fp_push((double)(int32_t)MEM32(ebp + (-0x24))); /* 0x3803126E: fild dword ptr [ebp - 0x24] */
  13772 L_38031271:
  13773     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38031271: fmul qword ptr [0x3804f6a0] */
  13774 L_38031277:
  13775     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38031277: fadd qword ptr [0x3804f698] */
  13776 L_3803127D:
  13777     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803127D: fcom dword ptr [0x3804e8e4] */
  13778 L_38031283:
  13779     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031283: fnstsw ax */
  13780 L_38031285:
  13781     /* test HI8(eax), 1 */ /* 0x38031285: test ah, 1 */
  13782     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13783     _cf = 0;
  13784     _flag_k = FK_NARROW(FK_TEST, 24);
  13785 L_38031288:
  13786     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803129F; /* 0x38031288: jne 0x3803129f */
  13787 L_3803128A:
  13788     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3803128A: fcom qword ptr [0x3804e8f8] */
  13789 L_38031290:
  13790     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031290: fnstsw ax */
  13791 L_38031292:
  13792     /* test HI8(eax), 1 */ /* 0x38031292: test ah, 1 */
  13793     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13794     _cf = 0;
  13795     _flag_k = FK_NARROW(FK_TEST, 24);
  13796 L_38031295:
  13797     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803129F; /* 0x38031295: je 0x3803129f */
  13798 L_38031297:
  13799     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031297: fmul dword ptr [0x3804e8bc] */
  13800 L_3803129D:
  13801     goto L_380312C0; /* 0x3803129D: jmp 0x380312c0 */
  13802 L_3803129F:
  13803     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803129F: fmul dword ptr [0x3804e8f4] */
  13804 L_380312A5:
  13805     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13807     esp = esp - 8; /* 0x380312A5: sub esp, 8 */
  13808     _flag_k = FK_CMP;
  13809 L_380312A8:
  13810     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380312A8: fst dword ptr [ebp - 0x10] */
  13811 L_380312AB:
  13812     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380312AB: fstp qword ptr [esp] */
  13813 L_380312AE:
  13814     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380312AE: call dword ptr [0x3804e0ac] */
  13815     RECOMP_FLAGS_IN();
  13816 L_380312B4:
  13817     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x380312B4: fsubr dword ptr [ebp - 0x10] */
  13818 L_380312B7:
  13819     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13820     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13821     esp = esp + 8; /* 0x380312B7: add esp, 8 */
  13822     _flag_k = FK_ADD;
  13823 L_380312BA:
  13824     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x380312BA: fmul dword ptr [0x3804e8f0] */
  13825 L_380312C0:
  13826     fp_push(_st[0]); /* 0x380312C0: fld st(0) */
  13827 L_380312C2:
  13828     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380312C2: fsin  */
  13829 L_380312C4:
  13830     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380312C4: fld dword ptr [0x3804e8e4] */
  13831 L_380312CA:
  13832     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380312CA: fst dword ptr [ebp - 0x24] */
  13833 L_380312CD:
  13834     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x380312CD: fstp dword ptr [ebp - 0x54] */
  13835 L_380312D0:
  13836     ecx = MEM32(ebp + (-0x24)); /* 0x380312D0: mov ecx, dword ptr [ebp - 0x24] */
  13837 L_380312D3:
  13838     MEM32(ebp + (-0x4C)) = ecx; /* 0x380312D3: mov dword ptr [ebp - 0x4c], ecx */
  13839 L_380312D6:
  13840     ecx = MEM32(ebp + (-0x40)); /* 0x380312D6: mov ecx, dword ptr [ebp - 0x40] */
  13841 L_380312D9:
  13842     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x380312D9: fstp dword ptr [ebp - 0x50] */
  13843 L_380312DC:
  13844     MEM32(ebp + (-0xFC)) = ecx; /* 0x380312DC: mov dword ptr [ebp - 0xfc], ecx */
  13845 L_380312E2:
  13846     ecx = ebp + (-0x20); /* 0x380312E2: lea ecx, [ebp - 0x20] */
  13847 L_380312E5:
  13848     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380312E5: fcos  */
  13849 L_380312E7:
  13850     PUSH32(esp, ecx); /* 0x380312E7: push ecx */
  13851 L_380312E8:
  13852     ecx = ebp + (-0xFC); /* 0x380312E8: lea ecx, [ebp - 0xfc] */
  13853 L_380312EE:
  13854     fp_push(_st[0]); /* 0x380312EE: fld st(0) */
  13855 L_380312F0:
  13856     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x380312F0: fmul dword ptr [ebp - 0x40] */
  13857 L_380312F3:
  13858     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x380312F3: fld dword ptr [ebp - 0x4c] */
  13859 L_380312F6:
  13860     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x380312F6: fmul dword ptr [ebp - 0x3c] */
  13861 L_380312F9:
  13862     { double _v = fp_pop(); _st[0] += _v; } /* 0x380312F9: faddp st(1) */
  13863 L_380312FB:
  13864     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x380312FB: fld dword ptr [ebp - 0x50] */
  13865 L_380312FE:
  13866     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x380312FE: fmul dword ptr [ebp - 0x38] */
  13867 L_38031301:
  13868     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031301: fsubp st(1) */
  13869 L_38031303:
  13870     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031303: fld dword ptr [ebp - 0x34] */
  13871 L_38031306:
  13872     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031306: fmul dword ptr [ebp - 0x54] */
  13873 L_38031309:
  13874     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031309: faddp st(1) */
  13875 L_3803130B:
  13876     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803130B: fld dword ptr [ebp - 0x50] */
  13877 L_3803130E:
  13878     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803130E: fmul dword ptr [ebp - 0x34] */
  13879 L_38031311:
  13880     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38031311: fld dword ptr [ebp - 0x4c] */
  13881 L_38031314:
  13882     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031314: fmul dword ptr [ebp - 0x40] */
  13883 L_38031317:
  13884     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031317: fsubp st(1) */
  13885 L_38031319:
  13886     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38031319: fld dword ptr [ebp - 0x38] */
  13887 L_3803131C:
  13888     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3803131C: fmul dword ptr [ebp - 0x54] */
  13889 L_3803131F:
  13890     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803131F: faddp st(1) */
  13891 L_38031321:
  13892     fp_push(_st[2]); /* 0x38031321: fld st(2) */
  13893 L_38031323:
  13894     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031323: fmul dword ptr [ebp - 0x3c] */
  13895 L_38031326:
  13896     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031326: faddp st(1) */
  13897 L_38031328:
  13898     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38031328: fstp dword ptr [ebp - 0x24] */
  13899 L_3803132B:
  13900     edx = MEM32(ebp + (-0x24)); /* 0x3803132B: mov edx, dword ptr [ebp - 0x24] */
  13901 L_3803132E:
  13902     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803132E: fld dword ptr [ebp - 0x50] */
  13903 L_38031331:
  13904     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031331: fmul dword ptr [ebp - 0x40] */
  13905 L_38031334:
  13906     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x38031334: fld dword ptr [ebp - 0x3c] */
  13907 L_38031337:
  13908     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x38031337: fmul dword ptr [ebp - 0x54] */
  13909 L_3803133A:
  13910     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803133A: fsubp st(1) */
  13911 L_3803133C:
  13912     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803133C: fld dword ptr [ebp - 0x4c] */
  13913 L_3803133F:
  13914     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3803133F: fmul dword ptr [ebp - 0x34] */
  13915 L_38031342:
  13916     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031342: faddp st(1) */
  13917 L_38031344:
  13918     fp_push(_st[2]); /* 0x38031344: fld st(2) */
  13919 L_38031346:
  13920     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031346: fmul dword ptr [ebp - 0x38] */
  13921 L_38031349:
  13922     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031349: faddp st(1) */
  13923 L_3803134B:
  13924     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803134B: fstp dword ptr [ebp - 0x14] */
  13925 L_3803134E:
  13926     eax = MEM32(ebp + (-0x14)); /* 0x3803134E: mov eax, dword ptr [ebp - 0x14] */
  13927 L_38031351:
  13928     fp_xch(1); /* 0x38031351: fxch st(1) */
  13929 L_38031353:
  13930     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x38031353: fmul dword ptr [ebp - 0x34] */
  13931 L_38031356:
  13932     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x38031356: fld dword ptr [ebp - 0x54] */
  13933 L_38031359:
  13934     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x38031359: fmul dword ptr [ebp - 0x40] */
  13935 L_3803135C:
  13936     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3803135C: fld dword ptr [ebp - 0x4c] */
  13937 L_3803135F:
  13938     MEM32(ebp + (-0x4C)) = eax; /* 0x3803135F: mov dword ptr [ebp - 0x4c], eax */
  13939 L_38031362:
  13940     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x38031362: fmul dword ptr [ebp - 0x38] */
  13941 L_38031365:
  13942     eax = MEM32(ebp + (-0x38)); /* 0x38031365: mov eax, dword ptr [ebp - 0x38] */
  13943 L_38031368:
  13944     MEM32(ebp + (-0xF4)) = eax; /* 0x38031368: mov dword ptr [ebp - 0xf4], eax */
  13945 L_3803136E:
  13946     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803136E: faddp st(1) */
  13947 L_38031370:
  13948     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38031370: fld dword ptr [ebp - 0x50] */
  13949 L_38031373:
  13950     MEM32(ebp + (-0x50)) = edx; /* 0x38031373: mov dword ptr [ebp - 0x50], edx */
  13951 L_38031376:
  13952     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x38031376: fmul dword ptr [ebp - 0x3c] */
  13953 L_38031379:
  13954     edx = MEM32(ebp + (-0x3C)); /* 0x38031379: mov edx, dword ptr [ebp - 0x3c] */
  13955 L_3803137C:
  13956     MEM32(ebp + (-0xF8)) = edx; /* 0x3803137C: mov dword ptr [ebp - 0xf8], edx */
  13957 L_38031382:
  13958     { double _v = fp_pop(); _st[0] += _v; } /* 0x38031382: faddp st(1) */
  13959 L_38031384:
  13960     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38031384: fsubp st(1) */
  13961 L_38031386:
  13962     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x38031386: fstp dword ptr [ebp - 0x48] */
  13963 L_38031389:
  13964     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x38031389: fstp dword ptr [ebp - 0x54] */
  13965 L_3803138C:
  13966     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3803138C: call dword ptr [0x3804e4c8] */
  13967     RECOMP_FLAGS_IN();
  13968 L_38031392:
  13969     edx = MEM32(eax); /* 0x38031392: mov edx, dword ptr [eax] */
  13970 L_38031394:
  13971     MEM32(ebp + (-0xA8)) = edx; /* 0x38031394: mov dword ptr [ebp - 0xa8], edx */
  13972 L_3803139A:
  13973     ecx = MEM32(eax + 0x4); /* 0x3803139A: mov ecx, dword ptr [eax + 4] */
  13974 L_3803139D:
  13975     MEM32(ebp + (-0xA4)) = ecx; /* 0x3803139D: mov dword ptr [ebp - 0xa4], ecx */
  13976 L_380313A3:
  13977     edx = MEM32(eax + 0x8); /* 0x380313A3: mov edx, dword ptr [eax + 8] */
  13978 L_380313A6:
  13979     eax = ebp + (-0xA8); /* 0x380313A6: lea eax, [ebp - 0xa8] */
  13980 L_380313AC:
  13981     PUSH32(esp, eax); /* 0x380313AC: push eax */
  13982 L_380313AD:
  13983     ecx = ebp + (-0x114); /* 0x380313AD: lea ecx, [ebp - 0x114] */
  13984 L_380313B3:
  13985     MEM32(ebp + (-0xA0)) = edx; /* 0x380313B3: mov dword ptr [ebp - 0xa0], edx */
  13986 L_380313B9:
  13987     PUSH32(esp, ecx); /* 0x380313B9: push ecx */
  13988 L_380313BA:
  13989     ecx = ebp + (-0x40); /* 0x380313BA: lea ecx, [ebp - 0x40] */
  13990 L_380313BD:
  13991     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380313BD: call dword ptr [0x3804e4fc] */
  13992     RECOMP_FLAGS_IN();
  13993 L_380313C3:
  13994     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x380313C3: fld dword ptr [ebp - 0x34] */
  13995 L_380313C6:
  13996     edx = MEM32(eax); /* 0x380313C6: mov edx, dword ptr [eax] */
  13997 L_380313C8:
  13998     _st[0] += _st[0]; /* 0x380313C8: fadd st(0), st(0) */
  13999 L_380313CA:
  14000     MEM32(ebp + (-0xD4)) = edx; /* 0x380313CA: mov dword ptr [ebp - 0xd4], edx */
  14001 L_380313D0:
  14002     ecx = MEM32(eax + 0x4); /* 0x380313D0: mov ecx, dword ptr [eax + 4] */
  14003 L_380313D3:
  14004     MEM32(ebp + (-0xD0)) = ecx; /* 0x380313D3: mov dword ptr [ebp - 0xd0], ecx */
  14005 L_380313D9:
  14006     edx = MEM32(eax + 0x8); /* 0x380313D9: mov edx, dword ptr [eax + 8] */
  14007 L_380313DC:
  14008     PUSH32(esp, ecx); /* 0x380313DC: push ecx */
  14009 L_380313DD:
  14010     ecx = ebp + (-0xA8); /* 0x380313DD: lea ecx, [ebp - 0xa8] */
  14011 L_380313E3:
  14012     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380313E3: fstp dword ptr [esp] */
  14013 L_380313E6:
  14014     MEM32(ebp + (-0xCC)) = edx; /* 0x380313E6: mov dword ptr [ebp - 0xcc], edx */
  14015 L_380313EC:
  14016     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313EC: call dword ptr [0x3804e4d4] */
  14017     RECOMP_FLAGS_IN();
  14018 L_380313F2:
  14019     PUSH32(esp, 0x40000000u); /* 0x380313F2: push 0x40000000 */
  14020 L_380313F7:
  14021     ecx = ebp + (-0xD4); /* 0x380313F7: lea ecx, [ebp - 0xd4] */
  14022 L_380313FD:
  14023     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380313FD: call dword ptr [0x3804e4d4] */
  14024     RECOMP_FLAGS_IN();
  14025 L_38031403:
  14026     eax = ebp + (-0xA8); /* 0x38031403: lea eax, [ebp - 0xa8] */
  14027 L_38031409:
  14028     PUSH32(esp, eax); /* 0x38031409: push eax */
  14029 L_3803140A:
  14030     ecx = ebp + (-0x20); /* 0x3803140A: lea ecx, [ebp - 0x20] */
  14031 L_3803140D:
  14032     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803140D: call dword ptr [0x3804e4e8] */
  14033     RECOMP_FLAGS_IN();
  14034 L_38031413:
  14035     ecx = ebp + (-0xD4); /* 0x38031413: lea ecx, [ebp - 0xd4] */
  14036 L_38031419:
  14037     PUSH32(esp, ecx); /* 0x38031419: push ecx */
  14038 L_3803141A:
  14039     ecx = ebp + (-0x20); /* 0x3803141A: lea ecx, [ebp - 0x20] */
  14040 L_3803141D:
  14041     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803141D: call dword ptr [0x3804e4e8] */
  14042     RECOMP_FLAGS_IN();
  14043 L_38031423:
  14044     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031423: fld dword ptr [ebp - 0x20] */
  14045 L_38031426:
  14046     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x38031426: fadd dword ptr [esi + 0x54] */
  14047 L_38031429:
  14048     edx = MEM32(ebp + (-0x40)); /* 0x38031429: mov edx, dword ptr [ebp - 0x40] */
  14049 L_3803142C:
  14050     ecx = MEM32(ebp + (-0x38)); /* 0x3803142C: mov ecx, dword ptr [ebp - 0x38] */
  14051 L_3803142F:
  14052     eax = MEM32(ebp + (-0x3C)); /* 0x3803142F: mov eax, dword ptr [ebp - 0x3c] */
  14053 L_38031432:
  14054     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031432: fstp dword ptr [ebp - 0x20] */
  14055 L_38031435:
  14056     MEM32(ebp + (-0xF0)) = edx; /* 0x38031435: mov dword ptr [ebp - 0xf0], edx */
  14057 L_3803143B:
  14058     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3803143B: fld dword ptr [ebp - 0x1c] */
  14059 L_3803143E:
  14060     edx = ebp + (-0x30); /* 0x3803143E: lea edx, [ebp - 0x30] */
  14061 L_38031441:
  14062     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031441: fadd dword ptr [esi + 0x58] */
  14063 L_38031444:
  14064     MEM32(ebp + (-0xE8)) = ecx; /* 0x38031444: mov dword ptr [ebp - 0xe8], ecx */
  14065 L_3803144A:
  14066     PUSH32(esp, edx); /* 0x3803144A: push edx */
  14067 L_3803144B:
  14068     ecx = ebp + (-0xF0); /* 0x3803144B: lea ecx, [ebp - 0xf0] */
  14069 L_38031451:
  14070     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38031451: fstp dword ptr [ebp - 0x1c] */
  14071 L_38031454:
  14072     MEM32(ebp + (-0xEC)) = eax; /* 0x38031454: mov dword ptr [ebp - 0xec], eax */
  14073 L_3803145A:
  14074     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803145A: fld dword ptr [ebp - 0x18] */
  14075 L_3803145D:
  14076     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x3803145D: fadd dword ptr [esi + 0x5c] */
  14077 L_38031460:
  14078     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031460: fstp dword ptr [ebp - 0x18] */
  14079 L_38031463:
  14080     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031463: call dword ptr [0x3804e4c8] */
  14081     RECOMP_FLAGS_IN();
  14082 L_38031469:
  14083     ecx = MEM32(eax); /* 0x38031469: mov ecx, dword ptr [eax] */
  14084 L_3803146B:
  14085     MEM32(ebp + (-0x98)) = ecx; /* 0x3803146B: mov dword ptr [ebp - 0x98], ecx */
  14086 L_38031471:
  14087     edx = MEM32(eax + 0x4); /* 0x38031471: mov edx, dword ptr [eax + 4] */
  14088 L_38031474:
  14089     MEM32(ebp + (-0x94)) = edx; /* 0x38031474: mov dword ptr [ebp - 0x94], edx */
  14090 L_3803147A:
  14091     eax = MEM32(eax + 0x8); /* 0x3803147A: mov eax, dword ptr [eax + 8] */
  14092 L_3803147D:
  14093     ecx = ebp + (-0x98); /* 0x3803147D: lea ecx, [ebp - 0x98] */
  14094 L_38031483:
  14095     PUSH32(esp, ecx); /* 0x38031483: push ecx */
  14096 L_38031484:
  14097     edx = ebp + (-0x108); /* 0x38031484: lea edx, [ebp - 0x108] */
  14098 L_3803148A:
  14099     PUSH32(esp, edx); /* 0x3803148A: push edx */
  14100 L_3803148B:
  14101     ecx = ebp + (-0x40); /* 0x3803148B: lea ecx, [ebp - 0x40] */
  14102 L_3803148E:
  14103     MEM32(ebp + (-0x90)) = eax; /* 0x3803148E: mov dword ptr [ebp - 0x90], eax */
  14104 L_38031494:
  14105     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x38031494: call dword ptr [0x3804e4fc] */
  14106     RECOMP_FLAGS_IN();
  14107 L_3803149A:
  14108     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3803149A: fld dword ptr [ebp - 0x34] */
  14109 L_3803149D:
  14110     ecx = MEM32(eax); /* 0x3803149D: mov ecx, dword ptr [eax] */
  14111 L_3803149F:
  14112     _st[0] += _st[0]; /* 0x3803149F: fadd st(0), st(0) */
  14113 L_380314A1:
  14114     MEM32(ebp + (-0xC8)) = ecx; /* 0x380314A1: mov dword ptr [ebp - 0xc8], ecx */
  14115 L_380314A7:
  14116     edx = MEM32(eax + 0x4); /* 0x380314A7: mov edx, dword ptr [eax + 4] */
  14117 L_380314AA:
  14118     MEM32(ebp + (-0xC4)) = edx; /* 0x380314AA: mov dword ptr [ebp - 0xc4], edx */
  14119 L_380314B0:
  14120     eax = MEM32(eax + 0x8); /* 0x380314B0: mov eax, dword ptr [eax + 8] */
  14121 L_380314B3:
  14122     PUSH32(esp, ecx); /* 0x380314B3: push ecx */
  14123 L_380314B4:
  14124     ecx = ebp + (-0x98); /* 0x380314B4: lea ecx, [ebp - 0x98] */
  14125 L_380314BA:
  14126     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380314BA: fstp dword ptr [esp] */
  14127 L_380314BD:
  14128     MEM32(ebp + (-0xC0)) = eax; /* 0x380314BD: mov dword ptr [ebp - 0xc0], eax */
  14129 L_380314C3:
  14130     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314C3: call dword ptr [0x3804e4d4] */
  14131     RECOMP_FLAGS_IN();
  14132 L_380314C9:
  14133     PUSH32(esp, 0x40000000u); /* 0x380314C9: push 0x40000000 */
  14134 L_380314CE:
  14135     ecx = ebp + (-0xC8); /* 0x380314CE: lea ecx, [ebp - 0xc8] */
  14136 L_380314D4:
  14137     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380314D4: call dword ptr [0x3804e4d4] */
  14138     RECOMP_FLAGS_IN();
  14139 L_380314DA:
  14140     ecx = ebp + (-0x98); /* 0x380314DA: lea ecx, [ebp - 0x98] */
  14141 L_380314E0:
  14142     PUSH32(esp, ecx); /* 0x380314E0: push ecx */
  14143 L_380314E1:
  14144     ecx = ebp + (-0x30); /* 0x380314E1: lea ecx, [ebp - 0x30] */
  14145 L_380314E4:
  14146     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314E4: call dword ptr [0x3804e4e8] */
  14147     RECOMP_FLAGS_IN();
  14148 L_380314EA:
  14149     edx = ebp + (-0xC8); /* 0x380314EA: lea edx, [ebp - 0xc8] */
  14150 L_380314F0:
  14151     PUSH32(esp, edx); /* 0x380314F0: push edx */
  14152 L_380314F1:
  14153     ecx = ebp + (-0x30); /* 0x380314F1: lea ecx, [ebp - 0x30] */
  14154 L_380314F4:
  14155     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380314F4: call dword ptr [0x3804e4e8] */
  14156     RECOMP_FLAGS_IN();
  14157 L_380314FA:
  14158     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380314FA: fld dword ptr [ebp - 0x30] */
  14159 L_380314FD:
  14160     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x380314FD: fadd dword ptr [esi + 0x54] */
  14161 L_38031500:
  14162     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031500: fstp dword ptr [ebp - 0x30] */
  14163 L_38031503:
  14164     PUSH32(esp, 0x3806CB10u); /* 0x38031503: push 0x3806cb10 */
  14165 L_38031508:
  14166     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031508: fld dword ptr [ebp - 0x2c] */
  14167 L_3803150B:
  14168     PUSH32(esp, 0x000F6951u); /* 0x3803150B: push 0xf6951 */
  14169 L_38031510:
  14170     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38031510: fadd dword ptr [esi + 0x58] */
  14171 L_38031513:
  14172     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031513: fstp dword ptr [ebp - 0x2c] */
  14173 L_38031516:
  14174     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031516: fld dword ptr [ebp - 0x28] */
  14175 L_38031519:
  14176     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38031519: fadd dword ptr [esi + 0x5c] */
  14177 L_3803151C:
  14178     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3803151C: fstp dword ptr [ebp - 0x28] */
  14179 L_3803151F:
  14180     RECOMP_ICALL(MEM32(0x3804E4B0)); /* 0x3803151F: call dword ptr [0x3804e4b0] */
  14181     RECOMP_FLAGS_IN();
  14182 L_38031525:
  14183     edi = eax; /* 0x38031525: mov edi, eax */
  14184 L_38031527:
  14185     eax = MEM32(esi + 0x98); /* 0x38031527: mov eax, dword ptr [esi + 0x98] */
  14186 L_3803152D:
  14187     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  14188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14189     esp = esp + 8; /* 0x3803152D: add esp, 8 */
  14190     _flag_k = FK_ADD;
  14191 L_38031530:
  14192     /* cmp eax, ebx */ /* 0x38031530: cmp eax, ebx */
  14193     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  14194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14195     _flag_k = FK_CMP;
  14196 L_38031532:
  14197     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803155A; /* 0x38031532: jne 0x3803155a */
  14198 L_38031534:
  14199     PUSH32(esp, 0x10u); /* 0x38031534: push 0x10 */
  14200 L_38031536:
  14201     RECOMP_ICALL(0x3804B676u); /* 0x38031536: call 0x3804b676 */ /* not lifted */
  14202     RECOMP_FLAGS_IN();
  14203 L_3803153B:
  14204     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14205     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14206     esp = esp + 4; /* 0x3803153B: add esp, 4 */
  14207     _flag_k = FK_ADD;
  14208 L_3803153E:
  14209     /* cmp eax, ebx */ /* 0x3803153E: cmp eax, ebx */
  14210     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  14211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14212     _flag_k = FK_CMP;
  14213 L_38031540:
  14214     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031552; /* 0x38031540: je 0x38031552 */
  14215 L_38031542:
  14216     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38031542: mov cl, byte ptr [ebp + 0xb] */
  14217 L_38031545:
  14218     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x38031545: mov byte ptr [eax], cl */
  14219 L_38031547:
  14220     MEM32(eax + 0x4) = ebx; /* 0x38031547: mov dword ptr [eax + 4], ebx */
  14221 L_3803154A:
  14222     MEM32(eax + 0x8) = ebx; /* 0x3803154A: mov dword ptr [eax + 8], ebx */
  14223 L_3803154D:
  14224     MEM32(eax + 0xC) = ebx; /* 0x3803154D: mov dword ptr [eax + 0xc], ebx */
  14225 L_38031550:
  14226     goto L_38031554; /* 0x38031550: jmp 0x38031554 */
  14227 L_38031552:
  14228     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14229     eax = 0; /* 0x38031552: xor eax, eax */
  14230     _cf = 0;
  14231     _flag_k = FK_TEST;
  14232 L_38031554:
  14233     MEM32(esi + 0x98) = eax; /* 0x38031554: mov dword ptr [esi + 0x98], eax */
  14234 L_3803155A:
  14235     eax = MEM32(ebp + 0x8); /* 0x3803155A: mov eax, dword ptr [ebp + 8] */
  14236 L_3803155D:
  14237     edx = ebp + (-0x20); /* 0x3803155D: lea edx, [ebp - 0x20] */
  14238 L_38031560:
  14239     PUSH32(esp, edx); /* 0x38031560: push edx */
  14240 L_38031561:
  14241     PUSH32(esp, eax); /* 0x38031561: push eax */
  14242 L_38031562:
  14243     ecx = esi; /* 0x38031562: mov ecx, esi */
  14244 L_38031564:
  14245     RECOMP_ICALL(0x38032CE0u); /* 0x38031564: call 0x38032ce0 */ /* not lifted */
  14246     RECOMP_FLAGS_IN();
  14247 L_38031569:
  14248     ecx = MEM32(ebp + (-0x20)); /* 0x38031569: mov ecx, dword ptr [ebp - 0x20] */
  14249 L_3803156C:
  14250     edx = MEM32(ebp + (-0x1C)); /* 0x3803156C: mov edx, dword ptr [ebp - 0x1c] */
  14251 L_3803156F:
  14252     eax = MEM32(ebp + (-0x18)); /* 0x3803156F: mov eax, dword ptr [ebp - 0x18] */
  14253 L_38031572:
  14254     MEM32(ebp + (-0xBC)) = ecx; /* 0x38031572: mov dword ptr [ebp - 0xbc], ecx */
  14255 L_38031578:
  14256     ecx = ebp + (-0xBC); /* 0x38031578: lea ecx, [ebp - 0xbc] */
  14257 L_3803157E:
  14258     MEM32(ebp + (-0xB8)) = edx; /* 0x3803157E: mov dword ptr [ebp - 0xb8], edx */
  14259 L_38031584:
  14260     edx = MEM32(ebp + 0x8); /* 0x38031584: mov edx, dword ptr [ebp + 8] */
  14261 L_38031587:
  14262     PUSH32(esp, ecx); /* 0x38031587: push ecx */
  14263 L_38031588:
  14264     PUSH32(esp, edx); /* 0x38031588: push edx */
  14265 L_38031589:
  14266     ecx = esi; /* 0x38031589: mov ecx, esi */
  14267 L_3803158B:
  14268     MEM32(ebp + (-0xB4)) = eax; /* 0x3803158B: mov dword ptr [ebp - 0xb4], eax */
  14269 L_38031591:
  14270     RECOMP_ICALL(0x38032DE0u); /* 0x38031591: call 0x38032de0 */ /* not lifted */
  14271     RECOMP_FLAGS_IN();
  14272 L_38031596:
  14273     fp_push(*(float*)&MEM32(ebp + (-0xB8))); /* 0x38031596: fld dword ptr [ebp - 0xb8] */
  14274 L_3803159C:
  14275     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3803159C: fsub dword ptr [ebp - 0x1c] */
  14276 L_3803159F:
  14277     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803159F: fst dword ptr [ebp - 0x10] */
  14278 L_380315A2:
  14279     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x380315A2: fcomp dword ptr [0x3804f688] */
  14280     fp_pop();
  14281 L_380315A8:
  14282     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380315A8: fnstsw ax */
  14283 L_380315AA:
  14284     /* test HI8(eax), 0x41u */ /* 0x380315AA: test ah, 0x41 */
  14285     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  14286     _cf = 0;
  14287     _flag_k = FK_NARROW(FK_TEST, 24);
  14288 L_380315AD:
  14289     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031657; /* 0x380315AD: jne 0x38031657 */
  14290 L_380315B3:
  14291     PUSH32(esp, 0x58u); /* 0x380315B3: push 0x58 */
  14292 L_380315B5:
  14293     RECOMP_ICALL(0x3804B676u); /* 0x380315B5: call 0x3804b676 */ /* not lifted */
  14294     RECOMP_FLAGS_IN();
  14295 L_380315BA:
  14296     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14297     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14298     esp = esp + 4; /* 0x380315BA: add esp, 4 */
  14299     _flag_k = FK_ADD;
  14300 L_380315BD:
  14301     MEM32(ebp + (-0x24)) = eax; /* 0x380315BD: mov dword ptr [ebp - 0x24], eax */
  14302 L_380315C0:
  14303     /* cmp eax, ebx */ /* 0x380315C0: cmp eax, ebx */
  14304     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  14305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14306     _flag_k = FK_CMP;
  14307 L_380315C2:
  14308     MEM32(ebp + (-0x4)) = 1; /* 0x380315C2: mov dword ptr [ebp - 4], 1 */
  14309 L_380315C9:
  14310     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315EC; /* 0x380315C9: je 0x380315ec */
  14311 L_380315CB:
  14312     PUSH32(esp, ebx); /* 0x380315CB: push ebx */
  14313 L_380315CC:
  14314     PUSH32(esp, ebx); /* 0x380315CC: push ebx */
  14315 L_380315CD:
  14316     PUSH32(esp, ebx); /* 0x380315CD: push ebx */
  14317 L_380315CE:
  14318     PUSH32(esp, ebx); /* 0x380315CE: push ebx */
  14319 L_380315CF:
  14320     PUSH32(esp, ebx); /* 0x380315CF: push ebx */
  14321 L_380315D0:
  14322     PUSH32(esp, edi); /* 0x380315D0: push edi */
  14323 L_380315D1:
  14324     PUSH32(esp, 0x3FA00000u); /* 0x380315D1: push 0x3fa00000 */
  14325 L_380315D6:
  14326     PUSH32(esp, 0x00FFFFFFu); /* 0x380315D6: push 0xffffff */
  14327 L_380315DB:
  14328     ecx = ebp + (-0x54); /* 0x380315DB: lea ecx, [ebp - 0x54] */
  14329 L_380315DE:
  14330     PUSH32(esp, ecx); /* 0x380315DE: push ecx */
  14331 L_380315DF:
  14332     edx = ebp + (-0x30); /* 0x380315DF: lea edx, [ebp - 0x30] */
  14333 L_380315E2:
  14334     PUSH32(esp, edx); /* 0x380315E2: push edx */
  14335 L_380315E3:
  14336     ecx = eax; /* 0x380315E3: mov ecx, eax */
  14337 L_380315E5:
  14338     RECOMP_ICALL(0x3800B350u); /* 0x380315E5: call 0x3800b350 */ /* not lifted */
  14339     RECOMP_FLAGS_IN();
  14340 L_380315EA:
  14341     goto L_380315EE; /* 0x380315EA: jmp 0x380315ee */
  14342 L_380315EC:
  14343     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14344     eax = 0; /* 0x380315EC: xor eax, eax */
  14345     _cf = 0;
  14346     _flag_k = FK_TEST;
  14347 L_380315EE:
  14348     ecx = MEM32(esi + 0x98); /* 0x380315EE: mov ecx, dword ptr [esi + 0x98] */
  14349 L_380315F4:
  14350     edx = ebp + (-0xAC); /* 0x380315F4: lea edx, [ebp - 0xac] */
  14351 L_380315FA:
  14352     PUSH32(esp, edx); /* 0x380315FA: push edx */
  14353 L_380315FB:
  14354     MEM32(ebp + (-0xAC)) = eax; /* 0x380315FB: mov dword ptr [ebp - 0xac], eax */
  14355 L_38031601:
  14356     eax = MEM32(ecx + 0x8); /* 0x38031601: mov eax, dword ptr [ecx + 8] */
  14357 L_38031604:
  14358     PUSH32(esp, 1); /* 0x38031604: push 1 */
  14359 L_38031606:
  14360     PUSH32(esp, eax); /* 0x38031606: push eax */
  14361 L_38031607:
  14362     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38031607: mov dword ptr [ebp - 4], 0xffffffff */
  14363 L_3803160E:
  14364     RECOMP_ICALL(0x38009C60u); /* 0x3803160E: call 0x38009c60 */ /* not lifted */
  14365     RECOMP_FLAGS_IN();
  14366 L_38031613:
  14367     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031613: fld dword ptr [ebp - 0x2c] */
  14368 L_38031616:
  14369     _st[0] += (double)*(float*)ADDR(0x3804F684); /* 0x38031616: fadd dword ptr [0x3804f684] */
  14370 L_3803161C:
  14371     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3803161C: fstp dword ptr [ebp - 0x2c] */
  14372 L_3803161F:
  14373     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803161F: fld dword ptr [ebp - 0x10] */
  14374 L_38031622:
  14375     _st[0] -= (double)*(float*)ADDR(0x3804F684); /* 0x38031622: fsub dword ptr [0x3804f684] */
  14376 L_38031628:
  14377     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031628: fcom dword ptr [0x3804f688] */
  14378 L_3803162E:
  14379     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803162E: fst dword ptr [ebp - 0x10] */
  14380 L_38031631:
  14381     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031631: fnstsw ax */
  14382 L_38031633:
  14383     /* test HI8(eax), 1 */ /* 0x38031633: test ah, 1 */
  14384     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  14385     _cf = 0;
  14386     _flag_k = FK_NARROW(FK_TEST, 24);
  14387 L_38031636:
  14388     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031646; /* 0x38031636: je 0x38031646 */
  14389 L_38031638:
  14390     fp_push(_st[0]); /* 0x38031638: fld st(0) */
  14391 L_3803163A:
  14392     _st[0] -= (double)*(float*)ADDR(0x3804F688); /* 0x3803163A: fsub dword ptr [0x3804f688] */
  14393 L_38031640:
  14394     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x38031640: fadd dword ptr [ebp - 0x2c] */
  14395 L_38031643:
  14396     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031643: fstp dword ptr [ebp - 0x2c] */
  14397 L_38031646:
  14398     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804F688)); /* 0x38031646: fcomp dword ptr [0x3804f688] */
  14399     fp_pop();
  14400 L_3803164C:
  14401     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803164C: fnstsw ax */
  14402 L_3803164E:
  14403     /* test HI8(eax), 0x41u */ /* 0x3803164E: test ah, 0x41 */
  14404     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  14405     _cf = 0;
  14406     _flag_k = FK_NARROW(FK_TEST, 24);
  14407 L_38031651:
  14408     RECOMP_BACKEDGE();
  14409     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380315B3; /* 0x38031651: je 0x380315b3 */
  14410 L_38031657:
  14411     PUSH32(esp, 0x58u); /* 0x38031657: push 0x58 */
  14412 L_38031659:
  14413     RECOMP_ICALL(0x3804B676u); /* 0x38031659: call 0x3804b676 */ /* not lifted */
  14414     RECOMP_FLAGS_IN();
  14415 L_3803165E:
  14416     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14417     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14418     esp = esp + 4; /* 0x3803165E: add esp, 4 */
  14419     _flag_k = FK_ADD;
  14420 L_38031661:
  14421     MEM32(ebp + (-0x24)) = eax; /* 0x38031661: mov dword ptr [ebp - 0x24], eax */
  14422 L_38031664:
  14423     /* cmp eax, ebx */ /* 0x38031664: cmp eax, ebx */
  14424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  14425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14426     _flag_k = FK_CMP;
  14427 L_38031666:
  14428     MEM32(ebp + (-0x4)) = 2; /* 0x38031666: mov dword ptr [ebp - 4], 2 */
  14429 L_3803166D:
  14430     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031690; /* 0x3803166D: je 0x38031690 */
  14431 L_3803166F:
  14432     PUSH32(esp, ebx); /* 0x3803166F: push ebx */
  14433 L_38031670:
  14434     PUSH32(esp, ebx); /* 0x38031670: push ebx */
  14435 L_38031671:
  14436     PUSH32(esp, ebx); /* 0x38031671: push ebx */
  14437 L_38031672:
  14438     PUSH32(esp, ebx); /* 0x38031672: push ebx */
  14439 L_38031673:
  14440     PUSH32(esp, ebx); /* 0x38031673: push ebx */
  14441 L_38031674:
  14442     PUSH32(esp, edi); /* 0x38031674: push edi */
  14443 L_38031675:
  14444     PUSH32(esp, 0x3FA00000u); /* 0x38031675: push 0x3fa00000 */
  14445 L_3803167A:
  14446     PUSH32(esp, 0x00FFFFFFu); /* 0x3803167A: push 0xffffff */
  14447 L_3803167F:
  14448     ecx = ebp + (-0x54); /* 0x3803167F: lea ecx, [ebp - 0x54] */
  14449 L_38031682:
  14450     PUSH32(esp, ecx); /* 0x38031682: push ecx */
  14451 L_38031683:
  14452     edx = ebp + (-0x30); /* 0x38031683: lea edx, [ebp - 0x30] */
  14453 L_38031686:
  14454     PUSH32(esp, edx); /* 0x38031686: push edx */
  14455 L_38031687:
  14456     ecx = eax; /* 0x38031687: mov ecx, eax */
  14457 L_38031689:
  14458     RECOMP_ICALL(0x3800B350u); /* 0x38031689: call 0x3800b350 */ /* not lifted */
  14459     RECOMP_FLAGS_IN();
  14460 L_3803168E:
  14461     goto L_38031692; /* 0x3803168E: jmp 0x38031692 */
  14462 L_38031690:
  14463     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14464     eax = 0; /* 0x38031690: xor eax, eax */
  14465     _cf = 0;
  14466     _flag_k = FK_TEST;
  14467 L_38031692:
  14468     ecx = MEM32(esi + 0x98); /* 0x38031692: mov ecx, dword ptr [esi + 0x98] */
  14469 L_38031698:
  14470     MEM32(ebp + (-0x9C)) = eax; /* 0x38031698: mov dword ptr [ebp - 0x9c], eax */
  14471 L_3803169E:
  14472     edx = MEM32(ecx + 0x8); /* 0x3803169E: mov edx, dword ptr [ecx + 8] */
  14473 L_380316A1:
  14474     eax = ebp + (-0x9C); /* 0x380316A1: lea eax, [ebp - 0x9c] */
  14475 L_380316A7:
  14476     PUSH32(esp, eax); /* 0x380316A7: push eax */
  14477 L_380316A8:
  14478     PUSH32(esp, 1); /* 0x380316A8: push 1 */
  14479 L_380316AA:
  14480     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380316AA: mov dword ptr [ebp - 4], 0xffffffff */
  14481 L_380316B1:
  14482     PUSH32(esp, edx); /* 0x380316B1: push edx */
  14483 L_380316B2:
  14484     RECOMP_ICALL(0x38009C60u); /* 0x380316B2: call 0x38009c60 */ /* not lifted */
  14485     RECOMP_FLAGS_IN();
  14486 L_380316B7:
  14487     eax = MEM32(ebp + (-0x8C)); /* 0x380316B7: mov eax, dword ptr [ebp - 0x8c] */
  14488 L_380316BD:
  14489     edx = MEM32(ebp + (-0x78)); /* 0x380316BD: mov edx, dword ptr [ebp - 0x78] */
  14490 L_380316C0:
  14491     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14492     ecx = 0; /* 0x380316C0: xor ecx, ecx */
  14493     _cf = 0;
  14494     _flag_k = FK_TEST;
  14495 L_380316C2:
  14496     SET_LO16(ecx, MEM16(esi + 0x7C)); /* 0x380316C2: mov cx, word ptr [esi + 0x7c] */
  14497 L_380316C6:
  14498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  14499     eax = eax + 1; /* 0x380316C6: inc eax */
  14500     _flag_k = FK_INC;
  14501 L_380316C7:
  14502     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
  14503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14504     edx = edx + 0x10u; /* 0x380316C7: add edx, 0x10 */
  14505     _flag_k = FK_ADD;
  14506 L_380316CA:
  14507     MEM32(ebp + (-0x8C)) = eax; /* 0x380316CA: mov dword ptr [ebp - 0x8c], eax */
  14508 L_380316D0:
  14509     MEM32(ebp + (-0x78)) = edx; /* 0x380316D0: mov dword ptr [ebp - 0x78], edx */
  14510 L_380316D3:
  14511     /* cmp eax, ecx */ /* 0x380316D3: cmp eax, ecx */
  14512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  14513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14514     _flag_k = FK_CMP;
  14515 L_380316D5:
  14516     RECOMP_BACKEDGE();
  14517     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38030E4E; /* 0x380316D5: jl 0x38030e4e */
  14518 L_380316DB:
  14519     edi = POP32_VAL(esp); /* 0x380316DB: pop edi */
  14520 L_380316DC:
  14521     PUSH32(esp, ebx); /* 0x380316DC: push ebx */
  14522 L_380316DD:
  14523     ecx = esi; /* 0x380316DD: mov ecx, esi */
  14524 L_380316DF:
  14525     RECOMP_ICALL(0x38030440u); /* 0x380316DF: call 0x38030440 */ /* not lifted */
  14526     RECOMP_FLAGS_IN();
  14527 L_380316E4:
  14528     ecx = MEM32(ebp + (-0xC)); /* 0x380316E4: mov ecx, dword ptr [ebp - 0xc] */
  14529 L_380316E7:
  14530     esi = POP32_VAL(esp); /* 0x380316E7: pop esi */
  14531 L_380316E8:
  14532     ebx = POP32_VAL(esp); /* 0x380316E8: pop ebx */
  14533 L_380316E9:
  14534     MEM32(FS_BASE + (0)) = ecx; /* 0x380316E9: mov dword ptr fs:[0], ecx */
  14535 L_380316F0:
  14536     esp = ebp; /* 0x380316F0: mov esp, ebp */
  14537 L_380316F2:
  14538     ebp = POP32_VAL(esp); /* 0x380316F2: pop ebp */
  14539 L_380316F3:
  14540     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380316F3: ret 8 */
  14541   _ljump:
  14542     switch (_itail_tgt) {
  14543       case 0x38030E4Eu: goto L_38030E4E;
  14544       case 0x38030E54u: goto L_38030E54;
  14545       case 0x38030E57u: goto L_38030E57;
  14546       case 0x38030E5Au: goto L_38030E5A;
  14547       case 0x38030E5Du: goto L_38030E5D;
  14548       case 0x38030E5Fu: goto L_38030E5F;
  14549       case 0x38030E65u: goto L_38030E65;
  14550       case 0x38030E68u: goto L_38030E68;
  14551       case 0x38030E6Eu: goto L_38030E6E;
  14552       case 0x38030E74u: goto L_38030E74;
  14553       case 0x38030E76u: goto L_38030E76;
  14554       case 0x38030E7Cu: goto L_38030E7C;
  14555       case 0x38030E84u: goto L_38030E84;
  14556       case 0x38030E8Au: goto L_38030E8A;
  14557       case 0x38030E8Du: goto L_38030E8D;
  14558       case 0x38030E91u: goto L_38030E91;
  14559       case 0x38030E97u: goto L_38030E97;
  14560       case 0x38030E9Du: goto L_38030E9D;
  14561       case 0x38030EA3u: goto L_38030EA3;
  14562       case 0x38030EA9u: goto L_38030EA9;
  14563       case 0x38030EACu: goto L_38030EAC;
  14564       case 0x38030EAFu: goto L_38030EAF;
  14565       case 0x38030EB5u: goto L_38030EB5;
  14566       case 0x38030EB7u: goto L_38030EB7;
  14567       case 0x38030EBAu: goto L_38030EBA;
  14568       case 0x38030EBCu: goto L_38030EBC;
  14569       case 0x38030EC2u: goto L_38030EC2;
  14570       case 0x38030EC4u: goto L_38030EC4;
  14571       case 0x38030EC7u: goto L_38030EC7;
  14572       case 0x38030EC9u: goto L_38030EC9;
  14573       case 0x38030ECFu: goto L_38030ECF;
  14574       case 0x38030ED1u: goto L_38030ED1;
  14575       case 0x38030ED7u: goto L_38030ED7;
  14576       case 0x38030EDAu: goto L_38030EDA;
  14577       case 0x38030EDDu: goto L_38030EDD;
  14578       case 0x38030EE0u: goto L_38030EE0;
  14579       case 0x38030EE6u: goto L_38030EE6;
  14580       case 0x38030EE9u: goto L_38030EE9;
  14581       case 0x38030EECu: goto L_38030EEC;
  14582       case 0x38030EF2u: goto L_38030EF2;
  14583       case 0x38030EF4u: goto L_38030EF4;
  14584       case 0x38030EF6u: goto L_38030EF6;
  14585       case 0x38030EFCu: goto L_38030EFC;
  14586       case 0x38030EFFu: goto L_38030EFF;
  14587       case 0x38030F02u: goto L_38030F02;
  14588       case 0x38030F05u: goto L_38030F05;
  14589       case 0x38030F08u: goto L_38030F08;
  14590       case 0x38030F0Bu: goto L_38030F0B;
  14591       case 0x38030F0Du: goto L_38030F0D;
  14592       case 0x38030F10u: goto L_38030F10;
  14593       case 0x38030F13u: goto L_38030F13;
  14594       case 0x38030F19u: goto L_38030F19;
  14595       case 0x38030F1Fu: goto L_38030F1F;
  14596       case 0x38030F25u: goto L_38030F25;
  14597       case 0x38030F27u: goto L_38030F27;
  14598       case 0x38030F2Au: goto L_38030F2A;
  14599       case 0x38030F2Cu: goto L_38030F2C;
  14600       case 0x38030F32u: goto L_38030F32;
  14601       case 0x38030F34u: goto L_38030F34;
  14602       case 0x38030F37u: goto L_38030F37;
  14603       case 0x38030F39u: goto L_38030F39;
  14604       case 0x38030F3Fu: goto L_38030F3F;
  14605       case 0x38030F41u: goto L_38030F41;
  14606       case 0x38030F47u: goto L_38030F47;
  14607       case 0x38030F4Au: goto L_38030F4A;
  14608       case 0x38030F4Du: goto L_38030F4D;
  14609       case 0x38030F50u: goto L_38030F50;
  14610       case 0x38030F56u: goto L_38030F56;
  14611       case 0x38030F59u: goto L_38030F59;
  14612       case 0x38030F5Cu: goto L_38030F5C;
  14613       case 0x38030F62u: goto L_38030F62;
  14614       case 0x38030F64u: goto L_38030F64;
  14615       case 0x38030F69u: goto L_38030F69;
  14616       case 0x38030F6Bu: goto L_38030F6B;
  14617       case 0x38030F70u: goto L_38030F70;
  14618       case 0x38030F76u: goto L_38030F76;
  14619       case 0x38030F79u: goto L_38030F79;
  14620       case 0x38030F7Cu: goto L_38030F7C;
  14621       case 0x38030F7Fu: goto L_38030F7F;
  14622       case 0x38030F82u: goto L_38030F82;
  14623       case 0x38030F85u: goto L_38030F85;
  14624       case 0x38030F87u: goto L_38030F87;
  14625       case 0x38030F89u: goto L_38030F89;
  14626       case 0x38030F8Cu: goto L_38030F8C;
  14627       case 0x38030F8Fu: goto L_38030F8F;
  14628       case 0x38030F92u: goto L_38030F92;
  14629       case 0x38030F94u: goto L_38030F94;
  14630       case 0x38030F97u: goto L_38030F97;
  14631       case 0x38030F9Au: goto L_38030F9A;
  14632       case 0x38030F9Cu: goto L_38030F9C;
  14633       case 0x38030F9Fu: goto L_38030F9F;
  14634       case 0x38030FA2u: goto L_38030FA2;
  14635       case 0x38030FA4u: goto L_38030FA4;
  14636       case 0x38030FA7u: goto L_38030FA7;
  14637       case 0x38030FAAu: goto L_38030FAA;
  14638       case 0x38030FADu: goto L_38030FAD;
  14639       case 0x38030FB0u: goto L_38030FB0;
  14640       case 0x38030FB2u: goto L_38030FB2;
  14641       case 0x38030FB5u: goto L_38030FB5;
  14642       case 0x38030FB8u: goto L_38030FB8;
  14643       case 0x38030FBAu: goto L_38030FBA;
  14644       case 0x38030FBCu: goto L_38030FBC;
  14645       case 0x38030FBFu: goto L_38030FBF;
  14646       case 0x38030FC1u: goto L_38030FC1;
  14647       case 0x38030FC4u: goto L_38030FC4;
  14648       case 0x38030FC7u: goto L_38030FC7;
  14649       case 0x38030FCAu: goto L_38030FCA;
  14650       case 0x38030FCDu: goto L_38030FCD;
  14651       case 0x38030FD0u: goto L_38030FD0;
  14652       case 0x38030FD3u: goto L_38030FD3;
  14653       case 0x38030FD5u: goto L_38030FD5;
  14654       case 0x38030FD8u: goto L_38030FD8;
  14655       case 0x38030FDBu: goto L_38030FDB;
  14656       case 0x38030FDDu: goto L_38030FDD;
  14657       case 0x38030FDFu: goto L_38030FDF;
  14658       case 0x38030FE2u: goto L_38030FE2;
  14659       case 0x38030FE4u: goto L_38030FE4;
  14660       case 0x38030FE7u: goto L_38030FE7;
  14661       case 0x38030FEAu: goto L_38030FEA;
  14662       case 0x38030FECu: goto L_38030FEC;
  14663       case 0x38030FEFu: goto L_38030FEF;
  14664       case 0x38030FF2u: goto L_38030FF2;
  14665       case 0x38030FF5u: goto L_38030FF5;
  14666       case 0x38030FF8u: goto L_38030FF8;
  14667       case 0x38030FFBu: goto L_38030FFB;
  14668       case 0x38030FFEu: goto L_38030FFE;
  14669       case 0x38031000u: goto L_38031000;
  14670       case 0x38031003u: goto L_38031003;
  14671       case 0x38031006u: goto L_38031006;
  14672       case 0x38031009u: goto L_38031009;
  14673       case 0x3803100Bu: goto L_3803100B;
  14674       case 0x3803100Du: goto L_3803100D;
  14675       case 0x38031010u: goto L_38031010;
  14676       case 0x38031013u: goto L_38031013;
  14677       case 0x38031019u: goto L_38031019;
  14678       case 0x3803101Bu: goto L_3803101B;
  14679       case 0x38031021u: goto L_38031021;
  14680       case 0x38031024u: goto L_38031024;
  14681       case 0x38031026u: goto L_38031026;
  14682       case 0x38031028u: goto L_38031028;
  14683       case 0x3803102Au: goto L_3803102A;
  14684       case 0x3803102Fu: goto L_3803102F;
  14685       case 0x38031032u: goto L_38031032;
  14686       case 0x38031034u: goto L_38031034;
  14687       case 0x38031036u: goto L_38031036;
  14688       case 0x38031039u: goto L_38031039;
  14689       case 0x3803103Bu: goto L_3803103B;
  14690       case 0x3803103Eu: goto L_3803103E;
  14691       case 0x38031041u: goto L_38031041;
  14692       case 0x38031044u: goto L_38031044;
  14693       case 0x38031046u: goto L_38031046;
  14694       case 0x38031048u: goto L_38031048;
  14695       case 0x3803104Eu: goto L_3803104E;
  14696       case 0x38031050u: goto L_38031050;
  14697       case 0x38031055u: goto L_38031055;
  14698       case 0x38031058u: goto L_38031058;
  14699       case 0x3803105Bu: goto L_3803105B;
  14700       case 0x3803105Du: goto L_3803105D;
  14701       case 0x38031060u: goto L_38031060;
  14702       case 0x38031062u: goto L_38031062;
  14703       case 0x38031065u: goto L_38031065;
  14704       case 0x3803106Bu: goto L_3803106B;
  14705       case 0x3803106Fu: goto L_3803106F;
  14706       case 0x38031070u: goto L_38031070;
  14707       case 0x38031076u: goto L_38031076;
  14708       case 0x38031077u: goto L_38031077;
  14709       case 0x38031078u: goto L_38031078;
  14710       case 0x38031079u: goto L_38031079;
  14711       case 0x3803107Bu: goto L_3803107B;
  14712       case 0x3803107Cu: goto L_3803107C;
  14713       case 0x3803107Du: goto L_3803107D;
  14714       case 0x3803107Eu: goto L_3803107E;
  14715       case 0x38031081u: goto L_38031081;
  14716       case 0x38031086u: goto L_38031086;
  14717       case 0x38031089u: goto L_38031089;
  14718       case 0x3803108Au: goto L_3803108A;
  14719       case 0x3803108Bu: goto L_3803108B;
  14720       case 0x3803108Du: goto L_3803108D;
  14721       case 0x38031092u: goto L_38031092;
  14722       case 0x38031094u: goto L_38031094;
  14723       case 0x38031096u: goto L_38031096;
  14724       case 0x3803109Cu: goto L_3803109C;
  14725       case 0x380310A2u: goto L_380310A2;
  14726       case 0x380310A3u: goto L_380310A3;
  14727       case 0x380310A9u: goto L_380310A9;
  14728       case 0x380310ACu: goto L_380310AC;
  14729       case 0x380310AEu: goto L_380310AE;
  14730       case 0x380310B5u: goto L_380310B5;
  14731       case 0x380310B6u: goto L_380310B6;
  14732       case 0x380310BBu: goto L_380310BB;
  14733       case 0x380310BDu: goto L_380310BD;
  14734       case 0x380310C3u: goto L_380310C3;
  14735       case 0x380310CBu: goto L_380310CB;
  14736       case 0x380310D1u: goto L_380310D1;
  14737       case 0x380310D5u: goto L_380310D5;
  14738       case 0x380310DCu: goto L_380310DC;
  14739       case 0x380310DFu: goto L_380310DF;
  14740       case 0x380310E4u: goto L_380310E4;
  14741       case 0x380310E7u: goto L_380310E7;
  14742       case 0x380310EAu: goto L_380310EA;
  14743       case 0x380310ECu: goto L_380310EC;
  14744       case 0x380310F2u: goto L_380310F2;
  14745       case 0x380310F4u: goto L_380310F4;
  14746       case 0x380310F5u: goto L_380310F5;
  14747       case 0x380310FBu: goto L_380310FB;
  14748       case 0x380310FDu: goto L_380310FD;
  14749       case 0x38031100u: goto L_38031100;
  14750       case 0x38031103u: goto L_38031103;
  14751       case 0x38031106u: goto L_38031106;
  14752       case 0x38031107u: goto L_38031107;
  14753       case 0x3803110Au: goto L_3803110A;
  14754       case 0x38031110u: goto L_38031110;
  14755       case 0x38031113u: goto L_38031113;
  14756       case 0x38031115u: goto L_38031115;
  14757       case 0x3803111Bu: goto L_3803111B;
  14758       case 0x3803111Eu: goto L_3803111E;
  14759       case 0x38031121u: goto L_38031121;
  14760       case 0x38031124u: goto L_38031124;
  14761       case 0x38031127u: goto L_38031127;
  14762       case 0x3803112Au: goto L_3803112A;
  14763       case 0x3803112Du: goto L_3803112D;
  14764       case 0x38031130u: goto L_38031130;
  14765       case 0x38031133u: goto L_38031133;
  14766       case 0x38031136u: goto L_38031136;
  14767       case 0x38031139u: goto L_38031139;
  14768       case 0x3803113Cu: goto L_3803113C;
  14769       case 0x38031142u: goto L_38031142;
  14770       case 0x38031145u: goto L_38031145;
  14771       case 0x38031148u: goto L_38031148;
  14772       case 0x3803114Bu: goto L_3803114B;
  14773       case 0x3803114Eu: goto L_3803114E;
  14774       case 0x38031151u: goto L_38031151;
  14775       case 0x38031154u: goto L_38031154;
  14776       case 0x38031157u: goto L_38031157;
  14777       case 0x38031159u: goto L_38031159;
  14778       case 0x3803115Bu: goto L_3803115B;
  14779       case 0x3803115Eu: goto L_3803115E;
  14780       case 0x38031161u: goto L_38031161;
  14781       case 0x38031164u: goto L_38031164;
  14782       case 0x38031166u: goto L_38031166;
  14783       case 0x38031169u: goto L_38031169;
  14784       case 0x3803116Cu: goto L_3803116C;
  14785       case 0x3803116Fu: goto L_3803116F;
  14786       case 0x38031172u: goto L_38031172;
  14787       case 0x38031175u: goto L_38031175;
  14788       case 0x38031178u: goto L_38031178;
  14789       case 0x3803117Bu: goto L_3803117B;
  14790       case 0x3803117Eu: goto L_3803117E;
  14791       case 0x38031181u: goto L_38031181;
  14792       case 0x38031184u: goto L_38031184;
  14793       case 0x38031186u: goto L_38031186;
  14794       case 0x3803118Du: goto L_3803118D;
  14795       case 0x38031190u: goto L_38031190;
  14796       case 0x38031196u: goto L_38031196;
  14797       case 0x38031199u: goto L_38031199;
  14798       case 0x3803119Cu: goto L_3803119C;
  14799       case 0x380311A2u: goto L_380311A2;
  14800       case 0x380311A5u: goto L_380311A5;
  14801       case 0x380311A7u: goto L_380311A7;
  14802       case 0x380311AAu: goto L_380311AA;
  14803       case 0x380311B0u: goto L_380311B0;
  14804       case 0x380311B3u: goto L_380311B3;
  14805       case 0x380311B6u: goto L_380311B6;
  14806       case 0x380311BCu: goto L_380311BC;
  14807       case 0x380311BEu: goto L_380311BE;
  14808       case 0x380311C1u: goto L_380311C1;
  14809       case 0x380311C7u: goto L_380311C7;
  14810       case 0x380311CAu: goto L_380311CA;
  14811       case 0x380311CDu: goto L_380311CD;
  14812       case 0x380311D3u: goto L_380311D3;
  14813       case 0x380311D6u: goto L_380311D6;
  14814       case 0x380311D8u: goto L_380311D8;
  14815       case 0x380311DBu: goto L_380311DB;
  14816       case 0x380311E1u: goto L_380311E1;
  14817       case 0x380311E4u: goto L_380311E4;
  14818       case 0x380311E7u: goto L_380311E7;
  14819       case 0x380311EDu: goto L_380311ED;
  14820       case 0x380311F0u: goto L_380311F0;
  14821       case 0x380311F3u: goto L_380311F3;
  14822       case 0x380311F5u: goto L_380311F5;
  14823       case 0x380311FBu: goto L_380311FB;
  14824       case 0x38031201u: goto L_38031201;
  14825       case 0x38031207u: goto L_38031207;
  14826       case 0x3803120Du: goto L_3803120D;
  14827       case 0x38031213u: goto L_38031213;
  14828       case 0x38031215u: goto L_38031215;
  14829       case 0x38031218u: goto L_38031218;
  14830       case 0x3803121Au: goto L_3803121A;
  14831       case 0x38031220u: goto L_38031220;
  14832       case 0x38031222u: goto L_38031222;
  14833       case 0x38031225u: goto L_38031225;
  14834       case 0x38031227u: goto L_38031227;
  14835       case 0x3803122Du: goto L_3803122D;
  14836       case 0x3803122Fu: goto L_3803122F;
  14837       case 0x38031235u: goto L_38031235;
  14838       case 0x38031238u: goto L_38031238;
  14839       case 0x3803123Bu: goto L_3803123B;
  14840       case 0x3803123Eu: goto L_3803123E;
  14841       case 0x38031244u: goto L_38031244;
  14842       case 0x38031247u: goto L_38031247;
  14843       case 0x3803124Au: goto L_3803124A;
  14844       case 0x38031250u: goto L_38031250;
  14845       case 0x38031252u: goto L_38031252;
  14846       case 0x38031254u: goto L_38031254;
  14847       case 0x3803125Au: goto L_3803125A;
  14848       case 0x3803125Du: goto L_3803125D;
  14849       case 0x38031260u: goto L_38031260;
  14850       case 0x38031263u: goto L_38031263;
  14851       case 0x38031266u: goto L_38031266;
  14852       case 0x38031269u: goto L_38031269;
  14853       case 0x3803126Bu: goto L_3803126B;
  14854       case 0x3803126Eu: goto L_3803126E;
  14855       case 0x38031271u: goto L_38031271;
  14856       case 0x38031277u: goto L_38031277;
  14857       case 0x3803127Du: goto L_3803127D;
  14858       case 0x38031283u: goto L_38031283;
  14859       case 0x38031285u: goto L_38031285;
  14860       case 0x38031288u: goto L_38031288;
  14861       case 0x3803128Au: goto L_3803128A;
  14862       case 0x38031290u: goto L_38031290;
  14863       case 0x38031292u: goto L_38031292;
  14864       case 0x38031295u: goto L_38031295;
  14865       case 0x38031297u: goto L_38031297;
  14866       case 0x3803129Du: goto L_3803129D;
  14867       case 0x3803129Fu: goto L_3803129F;
  14868       case 0x380312A5u: goto L_380312A5;
  14869       case 0x380312A8u: goto L_380312A8;
  14870       case 0x380312ABu: goto L_380312AB;
  14871       case 0x380312AEu: goto L_380312AE;
  14872       case 0x380312B4u: goto L_380312B4;
  14873       case 0x380312B7u: goto L_380312B7;
  14874       case 0x380312BAu: goto L_380312BA;
  14875       case 0x380312C0u: goto L_380312C0;
  14876       case 0x380312C2u: goto L_380312C2;
  14877       case 0x380312C4u: goto L_380312C4;
  14878       case 0x380312CAu: goto L_380312CA;
  14879       case 0x380312CDu: goto L_380312CD;
  14880       case 0x380312D0u: goto L_380312D0;
  14881       case 0x380312D3u: goto L_380312D3;
  14882       case 0x380312D6u: goto L_380312D6;
  14883       case 0x380312D9u: goto L_380312D9;
  14884       case 0x380312DCu: goto L_380312DC;
  14885       case 0x380312E2u: goto L_380312E2;
  14886       case 0x380312E5u: goto L_380312E5;
  14887       case 0x380312E7u: goto L_380312E7;
  14888       case 0x380312E8u: goto L_380312E8;
  14889       case 0x380312EEu: goto L_380312EE;
  14890       case 0x380312F0u: goto L_380312F0;
  14891       case 0x380312F3u: goto L_380312F3;
  14892       case 0x380312F6u: goto L_380312F6;
  14893       case 0x380312F9u: goto L_380312F9;
  14894       case 0x380312FBu: goto L_380312FB;
  14895       case 0x380312FEu: goto L_380312FE;
  14896       case 0x38031301u: goto L_38031301;
  14897       case 0x38031303u: goto L_38031303;
  14898       case 0x38031306u: goto L_38031306;
  14899       case 0x38031309u: goto L_38031309;
  14900       case 0x3803130Bu: goto L_3803130B;
  14901       case 0x3803130Eu: goto L_3803130E;
  14902       case 0x38031311u: goto L_38031311;
  14903       case 0x38031314u: goto L_38031314;
  14904       case 0x38031317u: goto L_38031317;
  14905       case 0x38031319u: goto L_38031319;
  14906       case 0x3803131Cu: goto L_3803131C;
  14907       case 0x3803131Fu: goto L_3803131F;
  14908       case 0x38031321u: goto L_38031321;
  14909       case 0x38031323u: goto L_38031323;
  14910       case 0x38031326u: goto L_38031326;
  14911       case 0x38031328u: goto L_38031328;
  14912       case 0x3803132Bu: goto L_3803132B;
  14913       case 0x3803132Eu: goto L_3803132E;
  14914       case 0x38031331u: goto L_38031331;
  14915       case 0x38031334u: goto L_38031334;
  14916       case 0x38031337u: goto L_38031337;
  14917       case 0x3803133Au: goto L_3803133A;
  14918       case 0x3803133Cu: goto L_3803133C;
  14919       case 0x3803133Fu: goto L_3803133F;
  14920       case 0x38031342u: goto L_38031342;
  14921       case 0x38031344u: goto L_38031344;
  14922       case 0x38031346u: goto L_38031346;
  14923       case 0x38031349u: goto L_38031349;
  14924       case 0x3803134Bu: goto L_3803134B;
  14925       case 0x3803134Eu: goto L_3803134E;
  14926       case 0x38031351u: goto L_38031351;
  14927       case 0x38031353u: goto L_38031353;
  14928       case 0x38031356u: goto L_38031356;
  14929       case 0x38031359u: goto L_38031359;
  14930       case 0x3803135Cu: goto L_3803135C;
  14931       case 0x3803135Fu: goto L_3803135F;
  14932       case 0x38031362u: goto L_38031362;
  14933       case 0x38031365u: goto L_38031365;
  14934       case 0x38031368u: goto L_38031368;
  14935       case 0x3803136Eu: goto L_3803136E;
  14936       case 0x38031370u: goto L_38031370;
  14937       case 0x38031373u: goto L_38031373;
  14938       case 0x38031376u: goto L_38031376;
  14939       case 0x38031379u: goto L_38031379;
  14940       case 0x3803137Cu: goto L_3803137C;
  14941       case 0x38031382u: goto L_38031382;
  14942       case 0x38031384u: goto L_38031384;
  14943       case 0x38031386u: goto L_38031386;
  14944       case 0x38031389u: goto L_38031389;
  14945       case 0x3803138Cu: goto L_3803138C;
  14946       case 0x38031392u: goto L_38031392;
  14947       case 0x38031394u: goto L_38031394;
  14948       case 0x3803139Au: goto L_3803139A;
  14949       case 0x3803139Du: goto L_3803139D;
  14950       case 0x380313A3u: goto L_380313A3;
  14951       case 0x380313A6u: goto L_380313A6;
  14952       case 0x380313ACu: goto L_380313AC;
  14953       case 0x380313ADu: goto L_380313AD;
  14954       case 0x380313B3u: goto L_380313B3;
  14955       case 0x380313B9u: goto L_380313B9;
  14956       case 0x380313BAu: goto L_380313BA;
  14957       case 0x380313BDu: goto L_380313BD;
  14958       case 0x380313C3u: goto L_380313C3;
  14959       case 0x380313C6u: goto L_380313C6;
  14960       case 0x380313C8u: goto L_380313C8;
  14961       case 0x380313CAu: goto L_380313CA;
  14962       case 0x380313D0u: goto L_380313D0;
  14963       case 0x380313D3u: goto L_380313D3;
  14964       case 0x380313D9u: goto L_380313D9;
  14965       case 0x380313DCu: goto L_380313DC;
  14966       case 0x380313DDu: goto L_380313DD;
  14967       case 0x380313E3u: goto L_380313E3;
  14968       case 0x380313E6u: goto L_380313E6;
  14969       case 0x380313ECu: goto L_380313EC;
  14970       case 0x380313F2u: goto L_380313F2;
  14971       case 0x380313F7u: goto L_380313F7;
  14972       case 0x380313FDu: goto L_380313FD;
  14973       case 0x38031403u: goto L_38031403;
  14974       case 0x38031409u: goto L_38031409;
  14975       case 0x3803140Au: goto L_3803140A;
  14976       case 0x3803140Du: goto L_3803140D;
  14977       case 0x38031413u: goto L_38031413;
  14978       case 0x38031419u: goto L_38031419;
  14979       case 0x3803141Au: goto L_3803141A;
  14980       case 0x3803141Du: goto L_3803141D;
  14981       case 0x38031423u: goto L_38031423;
  14982       case 0x38031426u: goto L_38031426;
  14983       case 0x38031429u: goto L_38031429;
  14984       case 0x3803142Cu: goto L_3803142C;
  14985       case 0x3803142Fu: goto L_3803142F;
  14986       case 0x38031432u: goto L_38031432;
  14987       case 0x38031435u: goto L_38031435;
  14988       case 0x3803143Bu: goto L_3803143B;
  14989       case 0x3803143Eu: goto L_3803143E;
  14990       case 0x38031441u: goto L_38031441;
  14991       case 0x38031444u: goto L_38031444;
  14992       case 0x3803144Au: goto L_3803144A;
  14993       case 0x3803144Bu: goto L_3803144B;
  14994       case 0x38031451u: goto L_38031451;
  14995       case 0x38031454u: goto L_38031454;
  14996       case 0x3803145Au: goto L_3803145A;
  14997       case 0x3803145Du: goto L_3803145D;
  14998       case 0x38031460u: goto L_38031460;
  14999       case 0x38031463u: goto L_38031463;
  15000       case 0x38031469u: goto L_38031469;
  15001       case 0x3803146Bu: goto L_3803146B;
  15002       case 0x38031471u: goto L_38031471;
  15003       case 0x38031474u: goto L_38031474;
  15004       case 0x3803147Au: goto L_3803147A;
  15005       case 0x3803147Du: goto L_3803147D;
  15006       case 0x38031483u: goto L_38031483;
  15007       case 0x38031484u: goto L_38031484;
  15008       case 0x3803148Au: goto L_3803148A;
  15009       case 0x3803148Bu: goto L_3803148B;
  15010       case 0x3803148Eu: goto L_3803148E;
  15011       case 0x38031494u: goto L_38031494;
  15012       case 0x3803149Au: goto L_3803149A;
  15013       case 0x3803149Du: goto L_3803149D;
  15014       case 0x3803149Fu: goto L_3803149F;
  15015       case 0x380314A1u: goto L_380314A1;
  15016       case 0x380314A7u: goto L_380314A7;
  15017       case 0x380314AAu: goto L_380314AA;
  15018       case 0x380314B0u: goto L_380314B0;
  15019       case 0x380314B3u: goto L_380314B3;
  15020       case 0x380314B4u: goto L_380314B4;
  15021       case 0x380314BAu: goto L_380314BA;
  15022       case 0x380314BDu: goto L_380314BD;
  15023       case 0x380314C3u: goto L_380314C3;
  15024       case 0x380314C9u: goto L_380314C9;
  15025       case 0x380314CEu: goto L_380314CE;
  15026       case 0x380314D4u: goto L_380314D4;
  15027       case 0x380314DAu: goto L_380314DA;
  15028       case 0x380314E0u: goto L_380314E0;
  15029       case 0x380314E1u: goto L_380314E1;
  15030       case 0x380314E4u: goto L_380314E4;
  15031       case 0x380314EAu: goto L_380314EA;
  15032       case 0x380314F0u: goto L_380314F0;
  15033       case 0x380314F1u: goto L_380314F1;
  15034       case 0x380314F4u: goto L_380314F4;
  15035       case 0x380314FAu: goto L_380314FA;
  15036       case 0x380314FDu: goto L_380314FD;
  15037       case 0x38031500u: goto L_38031500;
  15038       case 0x38031503u: goto L_38031503;
  15039       case 0x38031508u: goto L_38031508;
  15040       case 0x3803150Bu: goto L_3803150B;
  15041       case 0x38031510u: goto L_38031510;
  15042       case 0x38031513u: goto L_38031513;
  15043       case 0x38031516u: goto L_38031516;
  15044       case 0x38031519u: goto L_38031519;
  15045       case 0x3803151Cu: goto L_3803151C;
  15046       case 0x3803151Fu: goto L_3803151F;
  15047       case 0x38031525u: goto L_38031525;
  15048       case 0x38031527u: goto L_38031527;
  15049       case 0x3803152Du: goto L_3803152D;
  15050       case 0x38031530u: goto L_38031530;
  15051       case 0x38031532u: goto L_38031532;
  15052       case 0x38031534u: goto L_38031534;
  15053       case 0x38031536u: goto L_38031536;
  15054       case 0x3803153Bu: goto L_3803153B;
  15055       case 0x3803153Eu: goto L_3803153E;
  15056       case 0x38031540u: goto L_38031540;
  15057       case 0x38031542u: goto L_38031542;
  15058       case 0x38031545u: goto L_38031545;
  15059       case 0x38031547u: goto L_38031547;
  15060       case 0x3803154Au: goto L_3803154A;
  15061       case 0x3803154Du: goto L_3803154D;
  15062       case 0x38031550u: goto L_38031550;
  15063       case 0x38031552u: goto L_38031552;
  15064       case 0x38031554u: goto L_38031554;
  15065       case 0x3803155Au: goto L_3803155A;
  15066       case 0x3803155Du: goto L_3803155D;
  15067       case 0x38031560u: goto L_38031560;
  15068       case 0x38031561u: goto L_38031561;
  15069       case 0x38031562u: goto L_38031562;
  15070       case 0x38031564u: goto L_38031564;
  15071       case 0x38031569u: goto L_38031569;
  15072       case 0x3803156Cu: goto L_3803156C;
  15073       case 0x3803156Fu: goto L_3803156F;
  15074       case 0x38031572u: goto L_38031572;
  15075       case 0x38031578u: goto L_38031578;
  15076       case 0x3803157Eu: goto L_3803157E;
  15077       case 0x38031584u: goto L_38031584;
  15078       case 0x38031587u: goto L_38031587;
  15079       case 0x38031588u: goto L_38031588;
  15080       case 0x38031589u: goto L_38031589;
  15081       case 0x3803158Bu: goto L_3803158B;
  15082       case 0x38031591u: goto L_38031591;
  15083       case 0x38031596u: goto L_38031596;
  15084       case 0x3803159Cu: goto L_3803159C;
  15085       case 0x3803159Fu: goto L_3803159F;
  15086       case 0x380315A2u: goto L_380315A2;
  15087       case 0x380315A8u: goto L_380315A8;
  15088       case 0x380315AAu: goto L_380315AA;
  15089       case 0x380315ADu: goto L_380315AD;
  15090       case 0x380315B3u: goto L_380315B3;
  15091       case 0x380315B5u: goto L_380315B5;
  15092       case 0x380315BAu: goto L_380315BA;
  15093       case 0x380315BDu: goto L_380315BD;
  15094       case 0x380315C0u: goto L_380315C0;
  15095       case 0x380315C2u: goto L_380315C2;
  15096       case 0x380315C9u: goto L_380315C9;
  15097       case 0x380315CBu: goto L_380315CB;
  15098       case 0x380315CCu: goto L_380315CC;
  15099       case 0x380315CDu: goto L_380315CD;
  15100       case 0x380315CEu: goto L_380315CE;
  15101       case 0x380315CFu: goto L_380315CF;
  15102       case 0x380315D0u: goto L_380315D0;
  15103       case 0x380315D1u: goto L_380315D1;
  15104       case 0x380315D6u: goto L_380315D6;
  15105       case 0x380315DBu: goto L_380315DB;
  15106       case 0x380315DEu: goto L_380315DE;
  15107       case 0x380315DFu: goto L_380315DF;
  15108       case 0x380315E2u: goto L_380315E2;
  15109       case 0x380315E3u: goto L_380315E3;
  15110       case 0x380315E5u: goto L_380315E5;
  15111       case 0x380315EAu: goto L_380315EA;
  15112       case 0x380315ECu: goto L_380315EC;
  15113       case 0x380315EEu: goto L_380315EE;
  15114       case 0x380315F4u: goto L_380315F4;
  15115       case 0x380315FAu: goto L_380315FA;
  15116       case 0x380315FBu: goto L_380315FB;
  15117       case 0x38031601u: goto L_38031601;
  15118       case 0x38031604u: goto L_38031604;
  15119       case 0x38031606u: goto L_38031606;
  15120       case 0x38031607u: goto L_38031607;
  15121       case 0x3803160Eu: goto L_3803160E;
  15122       case 0x38031613u: goto L_38031613;
  15123       case 0x38031616u: goto L_38031616;
  15124       case 0x3803161Cu: goto L_3803161C;
  15125       case 0x3803161Fu: goto L_3803161F;
  15126       case 0x38031622u: goto L_38031622;
  15127       case 0x38031628u: goto L_38031628;
  15128       case 0x3803162Eu: goto L_3803162E;
  15129       case 0x38031631u: goto L_38031631;
  15130       case 0x38031633u: goto L_38031633;
  15131       case 0x38031636u: goto L_38031636;
  15132       case 0x38031638u: goto L_38031638;
  15133       case 0x3803163Au: goto L_3803163A;
  15134       case 0x38031640u: goto L_38031640;
  15135       case 0x38031643u: goto L_38031643;
  15136       case 0x38031646u: goto L_38031646;
  15137       case 0x3803164Cu: goto L_3803164C;
  15138       case 0x3803164Eu: goto L_3803164E;
  15139       case 0x38031651u: goto L_38031651;
  15140       case 0x38031657u: goto L_38031657;
  15141       case 0x38031659u: goto L_38031659;
  15142       case 0x3803165Eu: goto L_3803165E;
  15143       case 0x38031661u: goto L_38031661;
  15144       case 0x38031664u: goto L_38031664;
  15145       case 0x38031666u: goto L_38031666;
  15146       case 0x3803166Du: goto L_3803166D;
  15147       case 0x3803166Fu: goto L_3803166F;
  15148       case 0x38031670u: goto L_38031670;
  15149       case 0x38031671u: goto L_38031671;
  15150       case 0x38031672u: goto L_38031672;
  15151       case 0x38031673u: goto L_38031673;
  15152       case 0x38031674u: goto L_38031674;
  15153       case 0x38031675u: goto L_38031675;
  15154       case 0x3803167Au: goto L_3803167A;
  15155       case 0x3803167Fu: goto L_3803167F;
  15156       case 0x38031682u: goto L_38031682;
  15157       case 0x38031683u: goto L_38031683;
  15158       case 0x38031686u: goto L_38031686;
  15159       case 0x38031687u: goto L_38031687;
  15160       case 0x38031689u: goto L_38031689;
  15161       case 0x3803168Eu: goto L_3803168E;
  15162       case 0x38031690u: goto L_38031690;
  15163       case 0x38031692u: goto L_38031692;
  15164       case 0x38031698u: goto L_38031698;
  15165       case 0x3803169Eu: goto L_3803169E;
  15166       case 0x380316A1u: goto L_380316A1;
  15167       case 0x380316A7u: goto L_380316A7;
  15168       case 0x380316A8u: goto L_380316A8;
  15169       case 0x380316AAu: goto L_380316AA;
  15170       case 0x380316B1u: goto L_380316B1;
  15171       case 0x380316B2u: goto L_380316B2;
  15172       case 0x380316B7u: goto L_380316B7;
  15173       case 0x380316BDu: goto L_380316BD;
  15174       case 0x380316C0u: goto L_380316C0;
  15175       case 0x380316C2u: goto L_380316C2;
  15176       case 0x380316C6u: goto L_380316C6;
  15177       case 0x380316C7u: goto L_380316C7;
  15178       case 0x380316CAu: goto L_380316CA;
  15179       case 0x380316D0u: goto L_380316D0;
  15180       case 0x380316D3u: goto L_380316D3;
  15181       case 0x380316D5u: goto L_380316D5;
  15182       case 0x380316DBu: goto L_380316DB;
  15183       case 0x380316DCu: goto L_380316DC;
  15184       case 0x380316DDu: goto L_380316DD;
  15185       case 0x380316DFu: goto L_380316DF;
  15186       case 0x380316E4u: goto L_380316E4;
  15187       case 0x380316E7u: goto L_380316E7;
  15188       case 0x380316E8u: goto L_380316E8;
  15189       case 0x380316E9u: goto L_380316E9;
  15190       case 0x380316F0u: goto L_380316F0;
  15191       case 0x380316F2u: goto L_380316F2;
  15192       case 0x380316F3u: goto L_380316F3;
  15193       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  15194     }
  15195     RECOMP_REGS_OUT();
  15196 }
  15197 
  15198 void sub_38031710(void) {
  15199     int _fpu_cmp = 0;
  15200     uint32_t _cf = 0;
  15201     int _df = 1;
  15202     uint32_t _flag_k = FK_NONE;
  15203     uint32_t _flag_a = 0, _flag_b = 0;
  15204     uint32_t _itail_tgt = 0;
  15205     RECOMP_REGS_LOCALS
  15206     RECOMP_ENTER(0x38031710u);
  15207 
  15208 L_38031710:
  15209     PUSH32(esp, ebp); /* 0x38031710: push ebp */
  15210     ebp = esp; /* 0x38031711: mov ebp, esp */
  15211     PUSH32(esp, ecx); /* 0x38031713: push ecx */
  15212     PUSH32(esp, ebx); /* 0x38031714: push ebx */
  15213     PUSH32(esp, esi); /* 0x38031715: push esi */
  15214     PUSH32(esp, edi); /* 0x38031716: push edi */
  15215     edi = ecx; /* 0x38031717: mov edi, ecx */
  15216     RECOMP_ICALL(0x38030490u); /* 0x38031719: call 0x38030490 */ /* not lifted */
  15217     RECOMP_FLAGS_IN();
  15218     eax = MEM32(edi + 0x98); /* 0x3803171E: mov eax, dword ptr [edi + 0x98] */
  15219     /* test eax, eax */ /* 0x38031724: test eax, eax */
  15220     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  15221     _cf = 0;
  15222     _flag_k = FK_TEST;
  15223     if (TEST_Z(_flag_a, _flag_b)) goto L_380317BB; /* 0x38031726: je 0x380317bb */
  15224 L_3803172C:
  15225     ecx = MEM32(eax + 0x4); /* 0x3803172C: mov ecx, dword ptr [eax + 4] */
  15226     /* test ecx, ecx */ /* 0x3803172F: test ecx, ecx */
  15227     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  15228     _cf = 0;
  15229     _flag_k = FK_TEST;
  15230     if (TEST_NZ(_flag_a, _flag_b)) goto L_38031738; /* 0x38031731: jne 0x38031738 */
  15231 L_38031733:
  15232     MEM32(ebp + (-0x4)) = ecx; /* 0x38031733: mov dword ptr [ebp - 4], ecx */
  15233     goto L_38031743; /* 0x38031736: jmp 0x38031743 */
  15234 L_38031738:
  15235     eax = MEM32(eax + 0x8); /* 0x38031738: mov eax, dword ptr [eax + 8] */
  15236     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15238     eax = eax - ecx; /* 0x3803173B: sub eax, ecx */
  15239     _flag_k = FK_CMP;
  15240     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3803173D: sar eax, 2 */
  15241     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15242     eax = (uint32_t)((int32_t)eax >> 2u);
  15243     MEM32(ebp + (-0x4)) = eax; /* 0x38031740: mov dword ptr [ebp - 4], eax */
  15244 L_38031743:
  15245     eax = MEM32(ebp + (-0x4)); /* 0x38031743: mov eax, dword ptr [ebp - 4] */
  15246     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15247     esi = 0; /* 0x38031746: xor esi, esi */
  15248     _cf = 0;
  15249     _flag_k = FK_TEST;
  15250     /* test eax, eax */ /* 0x38031748: test eax, eax */
  15251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  15252     _cf = 0;
  15253     _flag_k = FK_TEST;
  15254     if (TEST_Z(_flag_a, _flag_b)) goto L_38031784; /* 0x3803174A: jbe 0x38031784 */
  15255 L_3803174C:
  15256     eax = MEM32(edi + 0x98); /* 0x3803174C: mov eax, dword ptr [edi + 0x98] */
  15257     ecx = MEM32(eax + 0x4); /* 0x38031752: mov ecx, dword ptr [eax + 4] */
  15258     ebx = MEM32(ecx + esi * 4); /* 0x38031755: mov ebx, dword ptr [ecx + esi*4] */
  15259     /* test ebx, ebx */ /* 0x38031758: test ebx, ebx */
  15260     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  15261     _cf = 0;
  15262     _flag_k = FK_TEST;
  15263     if (TEST_Z(_flag_a, _flag_b)) goto L_3803176C; /* 0x3803175A: je 0x3803176c */
  15264 L_3803175C:
  15265     ecx = ebx; /* 0x3803175C: mov ecx, ebx */
  15266     RECOMP_ICALL(0x3800B6E0u); /* 0x3803175E: call 0x3800b6e0 */ /* not lifted */
  15267     RECOMP_FLAGS_IN();
  15268     PUSH32(esp, ebx); /* 0x38031763: push ebx */
  15269     RECOMP_ICALL(0x3804B4F6u); /* 0x38031764: call 0x3804b4f6 */ /* not lifted */
  15270     RECOMP_FLAGS_IN();
  15271     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15272     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15273     esp = esp + 4; /* 0x38031769: add esp, 4 */
  15274     _flag_k = FK_ADD;
  15275 L_3803176C:
  15276     edx = MEM32(edi + 0x98); /* 0x3803176C: mov edx, dword ptr [edi + 0x98] */
  15277     eax = MEM32(edx + 0x4); /* 0x38031772: mov eax, dword ptr [edx + 4] */
  15278     MEM32(eax + esi * 4) = 0; /* 0x38031775: mov dword ptr [eax + esi*4], 0 */
  15279     eax = MEM32(ebp + (-0x4)); /* 0x3803177C: mov eax, dword ptr [ebp - 4] */
  15280     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  15281     esi = esi + 1; /* 0x3803177F: inc esi */
  15282     _flag_k = FK_INC;
  15283     /* cmp esi, eax */ /* 0x38031780: cmp esi, eax */
  15284     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  15285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15286     _flag_k = FK_CMP;
  15287     RECOMP_BACKEDGE();
  15288     if (CMP_B(_flag_a, _flag_b)) goto L_3803174C; /* 0x38031782: jb 0x3803174c */
  15289 L_38031784:
  15290     esi = MEM32(edi + 0x98); /* 0x38031784: mov esi, dword ptr [edi + 0x98] */
  15291     /* test esi, esi */ /* 0x3803178A: test esi, esi */
  15292     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  15293     _cf = 0;
  15294     _flag_k = FK_TEST;
  15295     if (TEST_Z(_flag_a, _flag_b)) goto L_380317BB; /* 0x3803178C: je 0x380317bb */
  15296 L_3803178E:
  15297     eax = MEM32(esi + 0x4); /* 0x3803178E: mov eax, dword ptr [esi + 4] */
  15298     PUSH32(esp, eax); /* 0x38031791: push eax */
  15299     MEM32(ebp + (-0x4)) = eax; /* 0x38031792: mov dword ptr [ebp - 4], eax */
  15300     RECOMP_ICALL(0x3804B4F6u); /* 0x38031795: call 0x3804b4f6 */ /* not lifted */
  15301     RECOMP_FLAGS_IN();
  15302     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15303     ebx = 0; /* 0x3803179A: xor ebx, ebx */
  15304     _cf = 0;
  15305     _flag_k = FK_TEST;
  15306     PUSH32(esp, esi); /* 0x3803179C: push esi */
  15307     MEM32(esi + 0x4) = ebx; /* 0x3803179D: mov dword ptr [esi + 4], ebx */
  15308     MEM32(esi + 0x8) = ebx; /* 0x380317A0: mov dword ptr [esi + 8], ebx */
  15309     MEM32(esi + 0xC) = ebx; /* 0x380317A3: mov dword ptr [esi + 0xc], ebx */
  15310     RECOMP_ICALL(0x3804B4F6u); /* 0x380317A6: call 0x3804b4f6 */ /* not lifted */
  15311     RECOMP_FLAGS_IN();
  15312     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  15313     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15314     esp = esp + 8; /* 0x380317AB: add esp, 8 */
  15315     _flag_k = FK_ADD;
  15316     MEM32(edi + 0x98) = ebx; /* 0x380317AE: mov dword ptr [edi + 0x98], ebx */
  15317     edi = POP32_VAL(esp); /* 0x380317B4: pop edi */
  15318     esi = POP32_VAL(esp); /* 0x380317B5: pop esi */
  15319     ebx = POP32_VAL(esp); /* 0x380317B6: pop ebx */
  15320     esp = ebp; /* 0x380317B7: mov esp, ebp */
  15321     ebp = POP32_VAL(esp); /* 0x380317B9: pop ebp */
  15322     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380317BA: ret  */
  15323 L_380317BB:
  15324     MEM32(edi + 0x98) = 0; /* 0x380317BB: mov dword ptr [edi + 0x98], 0 */
  15325     edi = POP32_VAL(esp); /* 0x380317C5: pop edi */
  15326     esi = POP32_VAL(esp); /* 0x380317C6: pop esi */
  15327     ebx = POP32_VAL(esp); /* 0x380317C7: pop ebx */
  15328     esp = ebp; /* 0x380317C8: mov esp, ebp */
  15329     ebp = POP32_VAL(esp); /* 0x380317CA: pop ebp */
  15330     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380317CB: ret  */
  15331     RECOMP_REGS_OUT();
  15332 }
  15333 
  15334 void sub_380317D0(void) {
  15335     int _fpu_cmp = 0;
  15336     uint32_t _cf = 0;
  15337     int _df = 1;
  15338     uint32_t _flag_k = FK_NONE;
  15339     uint32_t _flag_a = 0, _flag_b = 0;
  15340     uint32_t _itail_tgt = 0;
  15341     RECOMP_REGS_LOCALS
  15342     RECOMP_ENTER(0x380317D0u);
  15343 
  15344 L_380317D0:
  15345     goto L_380317E0; /* 0x380317D0: jmp 0x380317e0 */
  15346 L_380317E0:
  15347     PUSH32(esp, ebp); /* 0x380317E0: push ebp */
  15348     ebp = esp; /* 0x380317E1: mov ebp, esp */
  15349     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  15350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15351     esp = esp - 0x14u; /* 0x380317E3: sub esp, 0x14 */
  15352     _flag_k = FK_CMP;
  15353     fp_push(*(double*)ADDR(0x3804E928)); /* 0x380317E6: fld qword ptr [0x3804e928] */
  15354     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380317EC: fsin  */
  15355     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380317EE: fld dword ptr [0x3804e8e4] */
  15356     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x380317F4: fst dword ptr [ebp - 4] */
  15357     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380317F7: fstp dword ptr [ebp - 0x14] */
  15358     eax = MEM32(ebp + (-0x4)); /* 0x380317FA: mov eax, dword ptr [ebp - 4] */
  15359     ecx = MEM32(ebp + (-0x14)); /* 0x380317FD: mov ecx, dword ptr [ebp - 0x14] */
  15360     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031800: fstp dword ptr [ebp - 0x10] */
  15361     edx = MEM32(ebp + (-0x10)); /* 0x38031803: mov edx, dword ptr [ebp - 0x10] */
  15362     fp_push(*(double*)ADDR(0x3804E928)); /* 0x38031806: fld qword ptr [0x3804e928] */
  15363     MEM32(0x3806EEA0) = ecx; /* 0x3803180C: mov dword ptr [0x3806eea0], ecx */
  15364     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031812: fcos  */
  15365     MEM32(ebp + (-0xC)) = eax; /* 0x38031814: mov dword ptr [ebp - 0xc], eax */
  15366     MEM32(0x3806EEA4) = edx; /* 0x38031817: mov dword ptr [0x3806eea4], edx */
  15367     MEM32(0x3806EEA8) = eax; /* 0x3803181D: mov dword ptr [0x3806eea8], eax */
  15368     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38031822: fstp dword ptr [ebp - 8] */
  15369     fp_push(*(double*)ADDR(0x3804EBD8)); /* 0x38031825: fld qword ptr [0x3804ebd8] */
  15370     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3803182B: fsin  */
  15371     ecx = MEM32(ebp + (-0x8)); /* 0x3803182D: mov ecx, dword ptr [ebp - 8] */
  15372     MEM32(0x3806EEAC) = ecx; /* 0x38031830: mov dword ptr [0x3806eeac], ecx */
  15373     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031836: fld dword ptr [0x3804e8e4] */
  15374     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803183C: fst dword ptr [ebp - 4] */
  15375     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803183F: fstp dword ptr [ebp - 0x14] */
  15376     edx = MEM32(ebp + (-0x4)); /* 0x38031842: mov edx, dword ptr [ebp - 4] */
  15377     eax = MEM32(ebp + (-0x14)); /* 0x38031845: mov eax, dword ptr [ebp - 0x14] */
  15378     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031848: fstp dword ptr [ebp - 0x10] */
  15379     ecx = MEM32(ebp + (-0x10)); /* 0x3803184B: mov ecx, dword ptr [ebp - 0x10] */
  15380     fp_push(*(double*)ADDR(0x3804EBD8)); /* 0x3803184E: fld qword ptr [0x3804ebd8] */
  15381     MEM32(0x3806EEB0) = eax; /* 0x38031854: mov dword ptr [0x3806eeb0], eax */
  15382     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031859: fcos  */
  15383     MEM32(ebp + (-0xC)) = edx; /* 0x3803185B: mov dword ptr [ebp - 0xc], edx */
  15384     MEM32(0x3806EEB4) = ecx; /* 0x3803185E: mov dword ptr [0x3806eeb4], ecx */
  15385     MEM32(0x3806EEB8) = edx; /* 0x38031864: mov dword ptr [0x3806eeb8], edx */
  15386     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803186A: fstp dword ptr [ebp - 8] */
  15387     fp_push(*(double*)ADDR(0x3804EBD0)); /* 0x3803186D: fld qword ptr [0x3804ebd0] */
  15388     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031873: fsin  */
  15389     eax = MEM32(ebp + (-0x8)); /* 0x38031875: mov eax, dword ptr [ebp - 8] */
  15390     MEM32(0x3806EEBC) = eax; /* 0x38031878: mov dword ptr [0x3806eebc], eax */
  15391     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x3803187D: fld dword ptr [0x3804e8e4] */
  15392     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38031883: fst dword ptr [ebp - 4] */
  15393     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38031886: fstp dword ptr [ebp - 0x14] */
  15394     ecx = MEM32(ebp + (-0x4)); /* 0x38031889: mov ecx, dword ptr [ebp - 4] */
  15395     edx = MEM32(ebp + (-0x14)); /* 0x3803188C: mov edx, dword ptr [ebp - 0x14] */
  15396     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803188F: fstp dword ptr [ebp - 0x10] */
  15397     eax = MEM32(ebp + (-0x10)); /* 0x38031892: mov eax, dword ptr [ebp - 0x10] */
  15398     fp_push(*(double*)ADDR(0x3804EBD0)); /* 0x38031895: fld qword ptr [0x3804ebd0] */
  15399     MEM32(ebp + (-0xC)) = ecx; /* 0x3803189B: mov dword ptr [ebp - 0xc], ecx */
  15400     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3803189E: fcos  */
  15401     MEM32(0x3806EEC0) = edx; /* 0x380318A0: mov dword ptr [0x3806eec0], edx */
  15402     MEM32(0x3806EEC8) = ecx; /* 0x380318A6: mov dword ptr [0x3806eec8], ecx */
  15403     MEM32(0x3806EEC4) = eax; /* 0x380318AC: mov dword ptr [0x3806eec4], eax */
  15404     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380318B1: fstp dword ptr [ebp - 8] */
  15405     fp_push(*(double*)ADDR(0x3804EBC8)); /* 0x380318B4: fld qword ptr [0x3804ebc8] */
  15406     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380318BA: fsin  */
  15407     edx = MEM32(ebp + (-0x8)); /* 0x380318BC: mov edx, dword ptr [ebp - 8] */
  15408     MEM32(0x3806EECC) = edx; /* 0x380318BF: mov dword ptr [0x3806eecc], edx */
  15409     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380318C5: fld dword ptr [0x3804e8e4] */
  15410     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x380318CB: fst dword ptr [ebp - 4] */
  15411     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380318CE: fstp dword ptr [ebp - 0x14] */
  15412     ecx = MEM32(ebp + (-0x14)); /* 0x380318D1: mov ecx, dword ptr [ebp - 0x14] */
  15413     eax = MEM32(ebp + (-0x4)); /* 0x380318D4: mov eax, dword ptr [ebp - 4] */
  15414     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380318D7: fstp dword ptr [ebp - 0x10] */
  15415     edx = MEM32(ebp + (-0x10)); /* 0x380318DA: mov edx, dword ptr [ebp - 0x10] */
  15416     fp_push(*(double*)ADDR(0x3804EBC8)); /* 0x380318DD: fld qword ptr [0x3804ebc8] */
  15417     MEM32(0x3806EED0) = ecx; /* 0x380318E3: mov dword ptr [0x3806eed0], ecx */
  15418     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380318E9: fcos  */
  15419     MEM32(ebp + (-0xC)) = eax; /* 0x380318EB: mov dword ptr [ebp - 0xc], eax */
  15420     MEM32(0x3806EED4) = edx; /* 0x380318EE: mov dword ptr [0x3806eed4], edx */
  15421     MEM32(0x3806EED8) = eax; /* 0x380318F4: mov dword ptr [0x3806eed8], eax */
  15422     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380318F9: fstp dword ptr [ebp - 8] */
  15423     ecx = MEM32(ebp + (-0x8)); /* 0x380318FC: mov ecx, dword ptr [ebp - 8] */
  15424     MEM32(0x3806EEDC) = ecx; /* 0x380318FF: mov dword ptr [0x3806eedc], ecx */
  15425     esp = ebp; /* 0x38031905: mov esp, ebp */
  15426     ebp = POP32_VAL(esp); /* 0x38031907: pop ebp */
  15427     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38031908: ret  */
  15428     RECOMP_REGS_OUT();
  15429 }
  15430 
  15431 void sub_380317E0(void) {
  15432     int _fpu_cmp = 0;
  15433     uint32_t _cf = 0;
  15434     int _df = 1;
  15435     uint32_t _flag_k = FK_NONE;
  15436     uint32_t _flag_a = 0, _flag_b = 0;
  15437     uint32_t _itail_tgt = 0;
  15438     RECOMP_REGS_LOCALS
  15439     RECOMP_ENTER(0x380317E0u);
  15440 
  15441 L_380317E0:
  15442     PUSH32(esp, ebp); /* 0x380317E0: push ebp */
  15443     ebp = esp; /* 0x380317E1: mov ebp, esp */
  15444     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  15445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15446     esp = esp - 0x14u; /* 0x380317E3: sub esp, 0x14 */
  15447     _flag_k = FK_CMP;
  15448     fp_push(*(double*)ADDR(0x3804E928)); /* 0x380317E6: fld qword ptr [0x3804e928] */
  15449     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380317EC: fsin  */
  15450     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380317EE: fld dword ptr [0x3804e8e4] */
  15451     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x380317F4: fst dword ptr [ebp - 4] */
  15452     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380317F7: fstp dword ptr [ebp - 0x14] */
  15453     eax = MEM32(ebp + (-0x4)); /* 0x380317FA: mov eax, dword ptr [ebp - 4] */
  15454     ecx = MEM32(ebp + (-0x14)); /* 0x380317FD: mov ecx, dword ptr [ebp - 0x14] */
  15455     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031800: fstp dword ptr [ebp - 0x10] */
  15456     edx = MEM32(ebp + (-0x10)); /* 0x38031803: mov edx, dword ptr [ebp - 0x10] */
  15457     fp_push(*(double*)ADDR(0x3804E928)); /* 0x38031806: fld qword ptr [0x3804e928] */
  15458     MEM32(0x3806EEA0) = ecx; /* 0x3803180C: mov dword ptr [0x3806eea0], ecx */
  15459     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031812: fcos  */
  15460     MEM32(ebp + (-0xC)) = eax; /* 0x38031814: mov dword ptr [ebp - 0xc], eax */
  15461     MEM32(0x3806EEA4) = edx; /* 0x38031817: mov dword ptr [0x3806eea4], edx */
  15462     MEM32(0x3806EEA8) = eax; /* 0x3803181D: mov dword ptr [0x3806eea8], eax */
  15463     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38031822: fstp dword ptr [ebp - 8] */
  15464     fp_push(*(double*)ADDR(0x3804EBD8)); /* 0x38031825: fld qword ptr [0x3804ebd8] */
  15465     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3803182B: fsin  */
  15466     ecx = MEM32(ebp + (-0x8)); /* 0x3803182D: mov ecx, dword ptr [ebp - 8] */
  15467     MEM32(0x3806EEAC) = ecx; /* 0x38031830: mov dword ptr [0x3806eeac], ecx */
  15468     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031836: fld dword ptr [0x3804e8e4] */
  15469     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803183C: fst dword ptr [ebp - 4] */
  15470     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803183F: fstp dword ptr [ebp - 0x14] */
  15471     edx = MEM32(ebp + (-0x4)); /* 0x38031842: mov edx, dword ptr [ebp - 4] */
  15472     eax = MEM32(ebp + (-0x14)); /* 0x38031845: mov eax, dword ptr [ebp - 0x14] */
  15473     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031848: fstp dword ptr [ebp - 0x10] */
  15474     ecx = MEM32(ebp + (-0x10)); /* 0x3803184B: mov ecx, dword ptr [ebp - 0x10] */
  15475     fp_push(*(double*)ADDR(0x3804EBD8)); /* 0x3803184E: fld qword ptr [0x3804ebd8] */
  15476     MEM32(0x3806EEB0) = eax; /* 0x38031854: mov dword ptr [0x3806eeb0], eax */
  15477     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031859: fcos  */
  15478     MEM32(ebp + (-0xC)) = edx; /* 0x3803185B: mov dword ptr [ebp - 0xc], edx */
  15479     MEM32(0x3806EEB4) = ecx; /* 0x3803185E: mov dword ptr [0x3806eeb4], ecx */
  15480     MEM32(0x3806EEB8) = edx; /* 0x38031864: mov dword ptr [0x3806eeb8], edx */
  15481     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803186A: fstp dword ptr [ebp - 8] */
  15482     fp_push(*(double*)ADDR(0x3804EBD0)); /* 0x3803186D: fld qword ptr [0x3804ebd0] */
  15483     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031873: fsin  */
  15484     eax = MEM32(ebp + (-0x8)); /* 0x38031875: mov eax, dword ptr [ebp - 8] */
  15485     MEM32(0x3806EEBC) = eax; /* 0x38031878: mov dword ptr [0x3806eebc], eax */
  15486     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x3803187D: fld dword ptr [0x3804e8e4] */
  15487     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38031883: fst dword ptr [ebp - 4] */
  15488     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38031886: fstp dword ptr [ebp - 0x14] */
  15489     ecx = MEM32(ebp + (-0x4)); /* 0x38031889: mov ecx, dword ptr [ebp - 4] */
  15490     edx = MEM32(ebp + (-0x14)); /* 0x3803188C: mov edx, dword ptr [ebp - 0x14] */
  15491     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803188F: fstp dword ptr [ebp - 0x10] */
  15492     eax = MEM32(ebp + (-0x10)); /* 0x38031892: mov eax, dword ptr [ebp - 0x10] */
  15493     fp_push(*(double*)ADDR(0x3804EBD0)); /* 0x38031895: fld qword ptr [0x3804ebd0] */
  15494     MEM32(ebp + (-0xC)) = ecx; /* 0x3803189B: mov dword ptr [ebp - 0xc], ecx */
  15495     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3803189E: fcos  */
  15496     MEM32(0x3806EEC0) = edx; /* 0x380318A0: mov dword ptr [0x3806eec0], edx */
  15497     MEM32(0x3806EEC8) = ecx; /* 0x380318A6: mov dword ptr [0x3806eec8], ecx */
  15498     MEM32(0x3806EEC4) = eax; /* 0x380318AC: mov dword ptr [0x3806eec4], eax */
  15499     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380318B1: fstp dword ptr [ebp - 8] */
  15500     fp_push(*(double*)ADDR(0x3804EBC8)); /* 0x380318B4: fld qword ptr [0x3804ebc8] */
  15501     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x380318BA: fsin  */
  15502     edx = MEM32(ebp + (-0x8)); /* 0x380318BC: mov edx, dword ptr [ebp - 8] */
  15503     MEM32(0x3806EECC) = edx; /* 0x380318BF: mov dword ptr [0x3806eecc], edx */
  15504     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x380318C5: fld dword ptr [0x3804e8e4] */
  15505     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x380318CB: fst dword ptr [ebp - 4] */
  15506     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380318CE: fstp dword ptr [ebp - 0x14] */
  15507     ecx = MEM32(ebp + (-0x14)); /* 0x380318D1: mov ecx, dword ptr [ebp - 0x14] */
  15508     eax = MEM32(ebp + (-0x4)); /* 0x380318D4: mov eax, dword ptr [ebp - 4] */
  15509     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380318D7: fstp dword ptr [ebp - 0x10] */
  15510     edx = MEM32(ebp + (-0x10)); /* 0x380318DA: mov edx, dword ptr [ebp - 0x10] */
  15511     fp_push(*(double*)ADDR(0x3804EBC8)); /* 0x380318DD: fld qword ptr [0x3804ebc8] */
  15512     MEM32(0x3806EED0) = ecx; /* 0x380318E3: mov dword ptr [0x3806eed0], ecx */
  15513     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x380318E9: fcos  */
  15514     MEM32(ebp + (-0xC)) = eax; /* 0x380318EB: mov dword ptr [ebp - 0xc], eax */
  15515     MEM32(0x3806EED4) = edx; /* 0x380318EE: mov dword ptr [0x3806eed4], edx */
  15516     MEM32(0x3806EED8) = eax; /* 0x380318F4: mov dword ptr [0x3806eed8], eax */
  15517     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380318F9: fstp dword ptr [ebp - 8] */
  15518     ecx = MEM32(ebp + (-0x8)); /* 0x380318FC: mov ecx, dword ptr [ebp - 8] */
  15519     MEM32(0x3806EEDC) = ecx; /* 0x380318FF: mov dword ptr [0x3806eedc], ecx */
  15520     esp = ebp; /* 0x38031905: mov esp, ebp */
  15521     ebp = POP32_VAL(esp); /* 0x38031907: pop ebp */
  15522     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38031908: ret  */
  15523     RECOMP_REGS_OUT();
  15524 }
  15525 
  15526 void sub_38031910(void) {
  15527     int _fpu_cmp = 0;
  15528     uint32_t _cf = 0;
  15529     int _df = 1;
  15530     uint32_t _flag_k = FK_NONE;
  15531     uint32_t _flag_a = 0, _flag_b = 0;
  15532     uint32_t _itail_tgt = 0;
  15533     RECOMP_REGS_LOCALS
  15534     RECOMP_ENTER(0x38031910u);
  15535 
  15536 L_38031910:
  15537     PUSH32(esp, ebp); /* 0x38031910: push ebp */
  15538     ebp = esp; /* 0x38031911: mov ebp, esp */
  15539     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
  15540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15541     esp = esp - 0x10u; /* 0x38031913: sub esp, 0x10 */
  15542     _flag_k = FK_CMP;
  15543     PUSH32(esp, esi); /* 0x38031916: push esi */
  15544     esi = MEM32(ebp + 0xC); /* 0x38031917: mov esi, dword ptr [ebp + 0xc] */
  15545     eax = ebp + 0xC; /* 0x3803191A: lea eax, [ebp + 0xc] */
  15546     PUSH32(esp, eax); /* 0x3803191D: push eax */
  15547     eax = MEM32(ebp + 0x8); /* 0x3803191E: mov eax, dword ptr [ebp + 8] */
  15548     edx = ebp + (-0x4); /* 0x38031921: lea edx, [ebp - 4] */
  15549     PUSH32(esp, edx); /* 0x38031924: push edx */
  15550     PUSH32(esp, esi); /* 0x38031925: push esi */
  15551     PUSH32(esp, eax); /* 0x38031926: push eax */
  15552     MEM32(ebp + (-0xC)) = ecx; /* 0x38031927: mov dword ptr [ebp - 0xc], ecx */
  15553     RECOMP_ICALL(0x380326E0u); /* 0x3803192A: call 0x380326e0 */ /* not lifted */
  15554     RECOMP_FLAGS_IN();
  15555     /* test LO8(eax), LO8(eax) */ /* 0x3803192F: test al, al */
  15556     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  15557     _cf = 0;
  15558     _flag_k = FK_NARROW(FK_TEST, 24);
  15559     if (TEST_Z(_flag_a, _flag_b)) goto L_38031A76; /* 0x38031931: je 0x38031a76 */
  15560 L_38031937:
  15561     ecx = MEM32(ebp + 0xC); /* 0x38031937: mov ecx, dword ptr [ebp + 0xc] */
  15562     edx = MEM32(ebp + (-0x4)); /* 0x3803193A: mov edx, dword ptr [ebp - 4] */
  15563     PUSH32(esp, ecx); /* 0x3803193D: push ecx */
  15564     PUSH32(esp, edx); /* 0x3803193E: push edx */
  15565     ecx = esi; /* 0x3803193F: mov ecx, esi */
  15566     RECOMP_ICALL(0x3803A140u); /* 0x38031941: call 0x3803a140 */ /* not lifted */
  15567     RECOMP_FLAGS_IN();
  15568     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu);
  15569     eax = eax & 0xFFu; /* 0x38031946: and eax, 0xff */
  15570     _cf = 0;
  15571     _flag_k = FK_TEST;
  15572     if (TEST_Z(_flag_a, _flag_b)) goto L_38031A76; /* 0x3803194B: je 0x38031a76 */
  15573 L_38031951:
  15574     PUSH32(esp, ebx); /* 0x38031951: push ebx */
  15575     PUSH32(esp, edi); /* 0x38031952: push edi */
  15576     PUSH32(esp, eax); /* 0x38031953: push eax */
  15577     ecx = esi; /* 0x38031954: mov ecx, esi */
  15578     RECOMP_ICALL(0x38039E80u); /* 0x38031956: call 0x38039e80 */ /* not lifted */
  15579     RECOMP_FLAGS_IN();
  15580     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3803195B: fstp dword ptr [ebp - 0x10] */
  15581     eax = MEM32(ebp + (-0x4)); /* 0x3803195E: mov eax, dword ptr [ebp - 4] */
  15582     /* test eax, eax */ /* 0x38031961: test eax, eax */
  15583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  15584     _cf = 0;
  15585     _flag_k = FK_TEST;
  15586     edi = 1; /* 0x38031963: mov edi, 1 */
  15587     ebx = edi; /* 0x38031968: mov ebx, edi */
  15588     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803196E; /* 0x3803196A: jne 0x3803196e */
  15589 L_3803196C:
  15590     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15591     edi = 0; /* 0x3803196C: xor edi, edi */
  15592     _cf = 0;
  15593     _flag_k = FK_TEST;
  15594 L_3803196E:
  15595     ecx = MEM32(ebp + 0xC); /* 0x3803196E: mov ecx, dword ptr [ebp + 0xc] */
  15596     /* test ecx, ecx */ /* 0x38031971: test ecx, ecx */
  15597     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  15598     _cf = 0;
  15599     _flag_k = FK_TEST;
  15600     if (TEST_NZ(_flag_a, _flag_b)) goto L_38031977; /* 0x38031973: jne 0x38031977 */
  15601 L_38031975:
  15602     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15603     ebx = 0; /* 0x38031975: xor ebx, ebx */
  15604     _cf = 0;
  15605     _flag_k = FK_TEST;
  15606 L_38031977:
  15607     PUSH32(esp, ecx); /* 0x38031977: push ecx */
  15608     PUSH32(esp, eax); /* 0x38031978: push eax */
  15609     ecx = esi; /* 0x38031979: mov ecx, esi */
  15610     RECOMP_ICALL(0x38039EC0u); /* 0x3803197B: call 0x38039ec0 */ /* not lifted */
  15611     RECOMP_FLAGS_IN();
  15612     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38031980: fstp dword ptr [ebp - 8] */
  15613     eax = MEM32(ebp + 0xC); /* 0x38031983: mov eax, dword ptr [ebp + 0xc] */
  15614     ecx = MEM32(ebp + (-0x4)); /* 0x38031986: mov ecx, dword ptr [ebp - 4] */
  15615     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  15616     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15617     ecx = ecx - edi; /* 0x38031989: sub ecx, edi */
  15618     _flag_k = FK_CMP;
  15619     PUSH32(esp, eax); /* 0x3803198B: push eax */
  15620     PUSH32(esp, ecx); /* 0x3803198C: push ecx */
  15621     ecx = esi; /* 0x3803198D: mov ecx, esi */
  15622     RECOMP_ICALL(0x38039EC0u); /* 0x3803198F: call 0x38039ec0 */ /* not lifted */
  15623     RECOMP_FLAGS_IN();
  15624     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x38031994: fcomp dword ptr [ebp - 8] */
  15625     fp_pop();
  15626     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031997: fnstsw ax */
  15627     /* test HI8(eax), 1 */ /* 0x38031999: test ah, 1 */
  15628     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15629     _cf = 0;
  15630     _flag_k = FK_NARROW(FK_TEST, 24);
  15631     if (TEST_Z(_flag_a, _flag_b)) goto L_380319B2; /* 0x3803199C: je 0x380319b2 */
  15632 L_3803199E:
  15633     edx = MEM32(ebp + 0xC); /* 0x3803199E: mov edx, dword ptr [ebp + 0xc] */
  15634     eax = MEM32(ebp + (-0x4)); /* 0x380319A1: mov eax, dword ptr [ebp - 4] */
  15635     PUSH32(esp, edx); /* 0x380319A4: push edx */
  15636     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  15637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15638     eax = eax - edi; /* 0x380319A5: sub eax, edi */
  15639     _flag_k = FK_CMP;
  15640     PUSH32(esp, eax); /* 0x380319A7: push eax */
  15641     ecx = esi; /* 0x380319A8: mov ecx, esi */
  15642     RECOMP_ICALL(0x38039EC0u); /* 0x380319AA: call 0x38039ec0 */ /* not lifted */
  15643     RECOMP_FLAGS_IN();
  15644     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380319AF: fstp dword ptr [ebp - 8] */
  15645 L_380319B2:
  15646     ecx = MEM32(ebp + 0xC); /* 0x380319B2: mov ecx, dword ptr [ebp + 0xc] */
  15647     edx = MEM32(ebp + (-0x4)); /* 0x380319B5: mov edx, dword ptr [ebp - 4] */
  15648     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  15649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15650     ecx = ecx - ebx; /* 0x380319B8: sub ecx, ebx */
  15651     _flag_k = FK_CMP;
  15652     PUSH32(esp, ecx); /* 0x380319BA: push ecx */
  15653     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  15654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15655     edx = edx - edi; /* 0x380319BB: sub edx, edi */
  15656     _flag_k = FK_CMP;
  15657     PUSH32(esp, edx); /* 0x380319BD: push edx */
  15658     ecx = esi; /* 0x380319BE: mov ecx, esi */
  15659     RECOMP_ICALL(0x38039EC0u); /* 0x380319C0: call 0x38039ec0 */ /* not lifted */
  15660     RECOMP_FLAGS_IN();
  15661     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x380319C5: fcomp dword ptr [ebp - 8] */
  15662     fp_pop();
  15663     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380319C8: fnstsw ax */
  15664     /* test HI8(eax), 1 */ /* 0x380319CA: test ah, 1 */
  15665     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15666     _cf = 0;
  15667     _flag_k = FK_NARROW(FK_TEST, 24);
  15668     if (TEST_Z(_flag_a, _flag_b)) goto L_380319E5; /* 0x380319CD: je 0x380319e5 */
  15669 L_380319CF:
  15670     eax = MEM32(ebp + 0xC); /* 0x380319CF: mov eax, dword ptr [ebp + 0xc] */
  15671     ecx = MEM32(ebp + (-0x4)); /* 0x380319D2: mov ecx, dword ptr [ebp - 4] */
  15672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  15673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15674     eax = eax - ebx; /* 0x380319D5: sub eax, ebx */
  15675     _flag_k = FK_CMP;
  15676     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  15677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15678     ecx = ecx - edi; /* 0x380319D7: sub ecx, edi */
  15679     _flag_k = FK_CMP;
  15680     PUSH32(esp, eax); /* 0x380319D9: push eax */
  15681     PUSH32(esp, ecx); /* 0x380319DA: push ecx */
  15682     ecx = esi; /* 0x380319DB: mov ecx, esi */
  15683     RECOMP_ICALL(0x38039EC0u); /* 0x380319DD: call 0x38039ec0 */ /* not lifted */
  15684     RECOMP_FLAGS_IN();
  15685     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380319E2: fstp dword ptr [ebp - 8] */
  15686 L_380319E5:
  15687     edx = MEM32(ebp + 0xC); /* 0x380319E5: mov edx, dword ptr [ebp + 0xc] */
  15688     eax = MEM32(ebp + (-0x4)); /* 0x380319E8: mov eax, dword ptr [ebp - 4] */
  15689     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  15690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15691     edx = edx - ebx; /* 0x380319EB: sub edx, ebx */
  15692     _flag_k = FK_CMP;
  15693     PUSH32(esp, edx); /* 0x380319ED: push edx */
  15694     PUSH32(esp, eax); /* 0x380319EE: push eax */
  15695     ecx = esi; /* 0x380319EF: mov ecx, esi */
  15696     RECOMP_ICALL(0x38039EC0u); /* 0x380319F1: call 0x38039ec0 */ /* not lifted */
  15697     RECOMP_FLAGS_IN();
  15698     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x380319F6: fcomp dword ptr [ebp - 8] */
  15699     fp_pop();
  15700     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380319F9: fnstsw ax */
  15701     /* test HI8(eax), 1 */ /* 0x380319FB: test ah, 1 */
  15702     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15703     _cf = 0;
  15704     _flag_k = FK_NARROW(FK_TEST, 24);
  15705     if (TEST_Z(_flag_a, _flag_b)) goto L_38031A13; /* 0x380319FE: je 0x38031a13 */
  15706 L_38031A00:
  15707     ecx = MEM32(ebp + 0xC); /* 0x38031A00: mov ecx, dword ptr [ebp + 0xc] */
  15708     edx = MEM32(ebp + (-0x4)); /* 0x38031A03: mov edx, dword ptr [ebp - 4] */
  15709     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  15710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15711     ecx = ecx - ebx; /* 0x38031A06: sub ecx, ebx */
  15712     _flag_k = FK_CMP;
  15713     PUSH32(esp, ecx); /* 0x38031A08: push ecx */
  15714     PUSH32(esp, edx); /* 0x38031A09: push edx */
  15715     ecx = esi; /* 0x38031A0A: mov ecx, esi */
  15716     RECOMP_ICALL(0x38039EC0u); /* 0x38031A0C: call 0x38039ec0 */ /* not lifted */
  15717     RECOMP_FLAGS_IN();
  15718     goto L_38031A16; /* 0x38031A11: jmp 0x38031a16 */
  15719 L_38031A13:
  15720     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38031A13: fld dword ptr [ebp - 8] */
  15721 L_38031A16:
  15722     eax = MEM32(ebp + (-0xC)); /* 0x38031A16: mov eax, dword ptr [ebp - 0xc] */
  15723     _st[0] -= (double)*(float*)ADDR(eax + 0x3C); /* 0x38031A19: fsub dword ptr [eax + 0x3c] */
  15724     ecx = MEM32(ebp + (-0x4)); /* 0x38031A1C: mov ecx, dword ptr [ebp - 4] */
  15725     _st[0] += (double)*(float*)ADDR(eax + 0x58); /* 0x38031A1F: fadd dword ptr [eax + 0x58] */
  15726     eax = MEM32(ebp + 0xC); /* 0x38031A22: mov eax, dword ptr [ebp + 0xc] */
  15727     PUSH32(esp, eax); /* 0x38031A25: push eax */
  15728     PUSH32(esp, ecx); /* 0x38031A26: push ecx */
  15729     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38031A27: fstp dword ptr [ebp - 8] */
  15730     ecx = esi; /* 0x38031A2A: mov ecx, esi */
  15731     RECOMP_ICALL(0x38039F00u); /* 0x38031A2C: call 0x38039f00 */ /* not lifted */
  15732     RECOMP_FLAGS_IN();
  15733     ecx = MEM32(ebp + 0x8); /* 0x38031A31: mov ecx, dword ptr [ebp + 8] */
  15734     _st[0] *= (double)*(float*)ADDR(0x3804EC08); /* 0x38031A34: fmul dword ptr [0x3804ec08] */
  15735     edi = POP32_VAL(esp); /* 0x38031A3A: pop edi */
  15736     ebx = POP32_VAL(esp); /* 0x38031A3B: pop ebx */
  15737     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38031A3C: fadd dword ptr [0x3804e8cc] */
  15738     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x38031A42: fmul dword ptr [ebp - 0x10] */
  15739     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x38031A45: fadd dword ptr [ebp - 8] */
  15740     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38031A48: fld dword ptr [ebp - 8] */
  15741     _st[0] -= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031A4B: fsub dword ptr [0x3804e8bc] */
  15742     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x4)); /* 0x38031A51: fcomp dword ptr [ecx + 4] */
  15743     fp_pop();
  15744     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031A54: fnstsw ax */
  15745     /* test HI8(eax), 0x41u */ /* 0x38031A56: test ah, 0x41 */
  15746     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  15747     _cf = 0;
  15748     _flag_k = FK_NARROW(FK_TEST, 24);
  15749     if (TEST_Z(_flag_a, _flag_b)) goto L_38031A74; /* 0x38031A59: je 0x38031a74 */
  15750 L_38031A5B:
  15751     _st[0] += (double)*(float*)ADDR(0x3804E8BC); /* 0x38031A5B: fadd dword ptr [0x3804e8bc] */
  15752     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x4)); /* 0x38031A61: fcomp dword ptr [ecx + 4] */
  15753     fp_pop();
  15754     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031A64: fnstsw ax */
  15755     /* test HI8(eax), 1 */ /* 0x38031A66: test ah, 1 */
  15756     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15757     _cf = 0;
  15758     _flag_k = FK_NARROW(FK_TEST, 24);
  15759     if (TEST_NZ(_flag_a, _flag_b)) goto L_38031A76; /* 0x38031A69: jne 0x38031a76 */
  15760 L_38031A6B:
  15761     SET_LO8(eax, 1); /* 0x38031A6B: mov al, 1 */
  15762     esi = POP32_VAL(esp); /* 0x38031A6D: pop esi */
  15763     esp = ebp; /* 0x38031A6E: mov esp, ebp */
  15764     ebp = POP32_VAL(esp); /* 0x38031A70: pop ebp */
  15765     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38031A71: ret 8 */
  15766 L_38031A74:
  15767     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031A74: fstp st(0) */
  15768 L_38031A76:
  15769     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  15770     SET_LO8(eax, 0); /* 0x38031A76: xor al, al */
  15771     _cf = 0;
  15772     _flag_k = FK_NARROW(FK_TEST, 24);
  15773     esi = POP32_VAL(esp); /* 0x38031A78: pop esi */
  15774     esp = ebp; /* 0x38031A79: mov esp, ebp */
  15775     ebp = POP32_VAL(esp); /* 0x38031A7B: pop ebp */
  15776     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38031A7C: ret 8 */
  15777     RECOMP_REGS_OUT();
  15778 }
  15779 
  15780 void sub_38031A80(void) {
  15781     int _fpu_cmp = 0;
  15782     uint32_t _cf = 0;
  15783     int _df = 1;
  15784     uint32_t _flag_k = FK_NONE;
  15785     uint32_t _flag_a = 0, _flag_b = 0;
  15786     uint32_t _itail_tgt = 0;
  15787     RECOMP_REGS_LOCALS
  15788     RECOMP_ENTER(0x38031A80u);
  15789 
  15790 L_38031A80:
  15791     PUSH32(esp, ebp); /* 0x38031A80: push ebp */
  15792     ebp = esp; /* 0x38031A81: mov ebp, esp */
  15793     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u);
  15794     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15795     esp = esp - 0x50u; /* 0x38031A83: sub esp, 0x50 */
  15796     _flag_k = FK_CMP;
  15797     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15798     eax = 0; /* 0x38031A86: xor eax, eax */
  15799     _cf = 0;
  15800     _flag_k = FK_TEST;
  15801     PUSH32(esp, esi); /* 0x38031A88: push esi */
  15802     esi = ecx; /* 0x38031A89: mov esi, ecx */
  15803     SET_LO16(eax, MEM16(esi + 0x50)); /* 0x38031A8B: mov ax, word ptr [esi + 0x50] */
  15804     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15805     ecx = 0; /* 0x38031A8F: xor ecx, ecx */
  15806     _cf = 0;
  15807     _flag_k = FK_TEST;
  15808     SET_LO16(ecx, MEM16(esi + 0x4C)); /* 0x38031A91: mov cx, word ptr [esi + 0x4c] */
  15809     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15810     edx = 0; /* 0x38031A95: xor edx, edx */
  15811     _cf = 0;
  15812     _flag_k = FK_TEST;
  15813     SET_LO16(edx, MEM16(esi + 0x52)); /* 0x38031A97: mov dx, word ptr [esi + 0x52] */
  15814     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15816     eax = eax - ecx; /* 0x38031A9B: sub eax, ecx */
  15817     _flag_k = FK_CMP;
  15818     MEM32(ebp + (-0x1C)) = eax; /* 0x38031A9D: mov dword ptr [ebp - 0x1c], eax */
  15819     fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x38031AA0: fild dword ptr [ebp - 0x1c] */
  15820     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15821     eax = 0; /* 0x38031AA3: xor eax, eax */
  15822     _cf = 0;
  15823     _flag_k = FK_TEST;
  15824     SET_LO16(eax, MEM16(esi + 0x4E)); /* 0x38031AA5: mov ax, word ptr [esi + 0x4e] */
  15825     _st[0] += _st[0]; /* 0x38031AA9: fadd st(0), st(0) */
  15826     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38031AAB: fstp dword ptr [ebp - 4] */
  15827     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  15828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15829     edx = edx - eax; /* 0x38031AAE: sub edx, eax */
  15830     _flag_k = FK_CMP;
  15831     eax = MEM32(esi + 0x44); /* 0x38031AB0: mov eax, dword ptr [esi + 0x44] */
  15832     MEM32(ebp + (-0x1C)) = edx; /* 0x38031AB3: mov dword ptr [ebp - 0x1c], edx */
  15833     fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x38031AB6: fild dword ptr [ebp - 0x1c] */
  15834     ecx = eax; /* 0x38031AB9: mov ecx, eax */
  15835     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  15836     ecx = ecx & 1; /* 0x38031ABB: and ecx, 1 */
  15837     _cf = 0;
  15838     _flag_k = FK_TEST;
  15839     _st[0] += _st[0]; /* 0x38031ABE: fadd st(0), st(0) */
  15840     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38031AC0: fstp dword ptr [ebp - 8] */
  15841     edx = MEM32(ebp + (-0x8)); /* 0x38031AC3: mov edx, dword ptr [ebp - 8] */
  15842     if (TEST_NZ(_flag_a, _flag_b)) goto L_38031ACB; /* 0x38031AC6: jne 0x38031acb */
  15843 L_38031AC8:
  15844     edx = MEM32(ebp + (-0x4)); /* 0x38031AC8: mov edx, dword ptr [ebp - 4] */
  15845 L_38031ACB:
  15846     /* test ecx, ecx */ /* 0x38031ACB: test ecx, ecx */
  15847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  15848     _cf = 0;
  15849     _flag_k = FK_TEST;
  15850     MEM32(ebp + (-0x18)) = edx; /* 0x38031ACD: mov dword ptr [ebp - 0x18], edx */
  15851     if (TEST_Z(_flag_a, _flag_b)) goto L_38031ADA; /* 0x38031AD0: je 0x38031ada */
  15852 L_38031AD2:
  15853     ecx = MEM32(ebp + (-0x4)); /* 0x38031AD2: mov ecx, dword ptr [ebp - 4] */
  15854     MEM32(ebp + (-0x1C)) = ecx; /* 0x38031AD5: mov dword ptr [ebp - 0x1c], ecx */
  15855     goto L_38031AE0; /* 0x38031AD8: jmp 0x38031ae0 */
  15856 L_38031ADA:
  15857     edx = MEM32(ebp + (-0x8)); /* 0x38031ADA: mov edx, dword ptr [ebp - 8] */
  15858     MEM32(ebp + (-0x1C)) = edx; /* 0x38031ADD: mov dword ptr [ebp - 0x1c], edx */
  15859 L_38031AE0:
  15860     ecx = esi + 0x6C; /* 0x38031AE0: lea ecx, [esi + 0x6c] */
  15861     edx = MEM32(ecx); /* 0x38031AE3: mov edx, dword ptr [ecx] */
  15862     MEM32(ebp + (-0x14)) = edx; /* 0x38031AE5: mov dword ptr [ebp - 0x14], edx */
  15863     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38031AE8: fld dword ptr [ebp - 0x14] */
  15864     edx = MEM32(ecx + 0x4); /* 0x38031AEB: mov edx, dword ptr [ecx + 4] */
  15865     _st[0] += _st[0]; /* 0x38031AEE: fadd st(0), st(0) */
  15866     ecx = MEM32(ecx + 0x8); /* 0x38031AF0: mov ecx, dword ptr [ecx + 8] */
  15867     MEM32(ebp + (-0x10)) = edx; /* 0x38031AF3: mov dword ptr [ebp - 0x10], edx */
  15868     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38031AF6: fstp dword ptr [ebp - 0x14] */
  15869     edx = MEM32(ebp + (-0x14)); /* 0x38031AF9: mov edx, dword ptr [ebp - 0x14] */
  15870     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x38031AFC: fld dword ptr [ebp - 0x10] */
  15871     MEM32(ebp + (-0xC)) = ecx; /* 0x38031AFF: mov dword ptr [ebp - 0xc], ecx */
  15872     _st[0] += _st[0]; /* 0x38031B02: fadd st(0), st(0) */
  15873     MEM32(ebp + (-0x28)) = edx; /* 0x38031B04: mov dword ptr [ebp - 0x28], edx */
  15874     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031B07: fstp dword ptr [ebp - 0x10] */
  15875     ecx = MEM32(ebp + (-0x10)); /* 0x38031B0A: mov ecx, dword ptr [ebp - 0x10] */
  15876     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38031B0D: fld dword ptr [ebp - 0xc] */
  15877     MEM32(ebp + (-0x10)) = eax; /* 0x38031B10: mov dword ptr [ebp - 0x10], eax */
  15878     _st[0] += _st[0]; /* 0x38031B13: fadd st(0), st(0) */
  15879     MEM32(ebp + (-0x24)) = ecx; /* 0x38031B15: mov dword ptr [ebp - 0x24], ecx */
  15880     MEM32(ebp + (-0x24)) = ecx; /* 0x38031B18: mov dword ptr [ebp - 0x24], ecx */
  15881     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38031B1B: fstp dword ptr [ebp - 0xc] */
  15882     edx = MEM32(ebp + (-0xC)); /* 0x38031B1E: mov edx, dword ptr [ebp - 0xc] */
  15883     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38031B21: fld dword ptr [ebp - 0x14] */
  15884     MEM32(ebp + (-0x20)) = edx; /* 0x38031B24: mov dword ptr [ebp - 0x20], edx */
  15885     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38031B27: fadd dword ptr [0x3804e8cc] */
  15886     MEM32(ebp + (-0xC)) = 0; /* 0x38031B2D: mov dword ptr [ebp - 0xc], 0 */
  15887     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x38031B34: fstp dword ptr [ebp - 0x28] */
  15888     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031B37: fld dword ptr [ebp - 0x20] */
  15889     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38031B3A: fadd dword ptr [0x3804e8cc] */
  15890     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031B40: fstp dword ptr [ebp - 0x20] */
  15891     fp_push_i64((int64_t)MEM64(ebp + (-0x10))); /* 0x38031B43: fild qword ptr [ebp - 0x10] */
  15892     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031B46: fmul dword ptr [0x3804eac0] */
  15893     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38031B4C: fcom dword ptr [0x3804e8e4] */
  15894     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031B52: fnstsw ax */
  15895     /* test HI8(eax), 1 */ /* 0x38031B54: test ah, 1 */
  15896     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15897     _cf = 0;
  15898     _flag_k = FK_NARROW(FK_TEST, 24);
  15899     if (TEST_NZ(_flag_a, _flag_b)) goto L_38031B6E; /* 0x38031B57: jne 0x38031b6e */
  15900 L_38031B59:
  15901     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38031B59: fcom qword ptr [0x3804e8f8] */
  15902     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031B5F: fnstsw ax */
  15903     /* test HI8(eax), 1 */ /* 0x38031B61: test ah, 1 */
  15904     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15905     _cf = 0;
  15906     _flag_k = FK_NARROW(FK_TEST, 24);
  15907     if (TEST_Z(_flag_a, _flag_b)) goto L_38031B6E; /* 0x38031B64: je 0x38031b6e */
  15908 L_38031B66:
  15909     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031B66: fmul dword ptr [0x3804e8bc] */
  15910     goto L_38031B8F; /* 0x38031B6C: jmp 0x38031b8f */
  15911 L_38031B6E:
  15912     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38031B6E: fmul dword ptr [0x3804e8f4] */
  15913     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  15914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15915     esp = esp - 8; /* 0x38031B74: sub esp, 8 */
  15916     _flag_k = FK_CMP;
  15917     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38031B77: fst dword ptr [ebp - 0xc] */
  15918     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38031B7A: fstp qword ptr [esp] */
  15919     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38031B7D: call dword ptr [0x3804e0ac] */
  15920     RECOMP_FLAGS_IN();
  15921     _st[0] = (double)*(float*)ADDR(ebp + (-0xC)) - _st[0]; /* 0x38031B83: fsubr dword ptr [ebp - 0xc] */
  15922     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  15923     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15924     esp = esp + 8; /* 0x38031B86: add esp, 8 */
  15925     _flag_k = FK_ADD;
  15926     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38031B89: fmul dword ptr [0x3804e8f0] */
  15927 L_38031B8F:
  15928     fp_push(_st[0]); /* 0x38031B8F: fld st(0) */
  15929     PUSH32(esp, ebx); /* 0x38031B91: push ebx */
  15930     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38031B92: fsin  */
  15931     PUSH32(esp, edi); /* 0x38031B94: push edi */
  15932     ecx = ebp + (-0x28); /* 0x38031B95: lea ecx, [ebp - 0x28] */
  15933     PUSH32(esp, ecx); /* 0x38031B98: push ecx */
  15934     ecx = ebp + (-0x40); /* 0x38031B99: lea ecx, [ebp - 0x40] */
  15935     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38031B9C: fld dword ptr [0x3804e8e4] */
  15936     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38031BA2: fst dword ptr [ebp - 0xc] */
  15937     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x38031BA5: fstp dword ptr [ebp - 0x50] */
  15938     edx = MEM32(ebp + (-0xC)); /* 0x38031BA8: mov edx, dword ptr [ebp - 0xc] */
  15939     edi = MEM32(ebp + (-0x50)); /* 0x38031BAB: mov edi, dword ptr [ebp - 0x50] */
  15940     eax = edx; /* 0x38031BAE: mov eax, edx */
  15941     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x38031BB0: fstp dword ptr [ebp - 0x4c] */
  15942     ebx = MEM32(ebp + (-0x4C)); /* 0x38031BB3: mov ebx, dword ptr [ebp - 0x4c] */
  15943     MEM32(ebp + (-0x48)) = edx; /* 0x38031BB6: mov dword ptr [ebp - 0x48], edx */
  15944     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38031BB9: fcos  */
  15945     MEM32(ebp + (-0x40)) = edi; /* 0x38031BBB: mov dword ptr [ebp - 0x40], edi */
  15946     MEM32(ebp + (-0x3C)) = ebx; /* 0x38031BBE: mov dword ptr [ebp - 0x3c], ebx */
  15947     MEM32(ebp + (-0x38)) = eax; /* 0x38031BC1: mov dword ptr [ebp - 0x38], eax */
  15948     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x38031BC4: fstp dword ptr [ebp - 0x44] */
  15949     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031BC7: call dword ptr [0x3804e4c8] */
  15950     RECOMP_FLAGS_IN();
  15951     edx = MEM32(eax); /* 0x38031BCD: mov edx, dword ptr [eax] */
  15952     MEM32(ebp + (-0x14)) = edx; /* 0x38031BCF: mov dword ptr [ebp - 0x14], edx */
  15953     ecx = MEM32(eax + 0x4); /* 0x38031BD2: mov ecx, dword ptr [eax + 4] */
  15954     MEM32(ebp + (-0x10)) = ecx; /* 0x38031BD5: mov dword ptr [ebp - 0x10], ecx */
  15955     edx = MEM32(eax + 0x8); /* 0x38031BD8: mov edx, dword ptr [eax + 8] */
  15956     eax = MEM32(ebp + (-0x48)); /* 0x38031BDB: mov eax, dword ptr [ebp - 0x48] */
  15957     ecx = ebp + (-0x14); /* 0x38031BDE: lea ecx, [ebp - 0x14] */
  15958     PUSH32(esp, ecx); /* 0x38031BE1: push ecx */
  15959     ecx = ebp + (-0x40); /* 0x38031BE2: lea ecx, [ebp - 0x40] */
  15960     MEM32(ebp + (-0xC)) = edx; /* 0x38031BE5: mov dword ptr [ebp - 0xc], edx */
  15961     MEM32(ebp + (-0x40)) = edi; /* 0x38031BE8: mov dword ptr [ebp - 0x40], edi */
  15962     MEM32(ebp + (-0x3C)) = ebx; /* 0x38031BEB: mov dword ptr [ebp - 0x3c], ebx */
  15963     MEM32(ebp + (-0x38)) = eax; /* 0x38031BEE: mov dword ptr [ebp - 0x38], eax */
  15964     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38031BF1: call dword ptr [0x3804e4c8] */
  15965     RECOMP_FLAGS_IN();
  15966     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x38031BF7: fld dword ptr [ebp - 0x44] */
  15967     edx = MEM32(eax); /* 0x38031BFA: mov edx, dword ptr [eax] */
  15968     _st[0] += _st[0]; /* 0x38031BFC: fadd st(0), st(0) */
  15969     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38031BFE: fld dword ptr [ebp - 0x14] */
  15970     MEM32(ebp + (-0x34)) = edx; /* 0x38031C01: mov dword ptr [ebp - 0x34], edx */
  15971     ecx = MEM32(eax + 0x4); /* 0x38031C04: mov ecx, dword ptr [eax + 4] */
  15972     _st[0] *= _st[1]; /* 0x38031C07: fmul st(1) */
  15973     MEM32(ebp + (-0x30)) = ecx; /* 0x38031C09: mov dword ptr [ebp - 0x30], ecx */
  15974     edx = MEM32(eax + 0x8); /* 0x38031C0C: mov edx, dword ptr [eax + 8] */
  15975     MEM32(ebp + (-0x2C)) = edx; /* 0x38031C0F: mov dword ptr [ebp - 0x2c], edx */
  15976     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38031C12: fstp dword ptr [ebp - 0x14] */
  15977     eax = ebp + (-0x34); /* 0x38031C15: lea eax, [ebp - 0x34] */
  15978     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x38031C18: fld dword ptr [ebp - 0x10] */
  15979     PUSH32(esp, eax); /* 0x38031C1B: push eax */
  15980     _st[0] *= _st[1]; /* 0x38031C1C: fmul st(1) */
  15981     ecx = ebp + (-0x28); /* 0x38031C1E: lea ecx, [ebp - 0x28] */
  15982     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38031C21: fstp dword ptr [ebp - 0x10] */
  15983     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38031C24: fld dword ptr [ebp - 0xc] */
  15984     _st[0] *= _st[1]; /* 0x38031C27: fmul st(1) */
  15985     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38031C29: fstp dword ptr [ebp - 0xc] */
  15986     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031C2C: fstp st(0) */
  15987     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031C2E: fld dword ptr [ebp - 0x34] */
  15988     _st[0] += _st[0]; /* 0x38031C31: fadd st(0), st(0) */
  15989     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x38031C33: fstp dword ptr [ebp - 0x34] */
  15990     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x38031C36: fld dword ptr [ebp - 0x30] */
  15991     _st[0] += _st[0]; /* 0x38031C39: fadd st(0), st(0) */
  15992     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031C3B: fstp dword ptr [ebp - 0x30] */
  15993     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031C3E: fld dword ptr [ebp - 0x2c] */
  15994     _st[0] += _st[0]; /* 0x38031C41: fadd st(0), st(0) */
  15995     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031C43: fstp dword ptr [ebp - 0x2c] */
  15996     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38031C46: fld dword ptr [ebp - 0x14] */
  15997     _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x38031C49: fadd dword ptr [ebp - 0x28] */
  15998     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x38031C4C: fstp dword ptr [ebp - 0x28] */
  15999     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38031C4F: fld dword ptr [ebp - 0x24] */
  16000     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x38031C52: fadd dword ptr [ebp - 0x10] */
  16001     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38031C55: fstp dword ptr [ebp - 0x24] */
  16002     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38031C58: fld dword ptr [ebp - 0xc] */
  16003     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x38031C5B: fadd dword ptr [ebp - 0x20] */
  16004     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031C5E: fstp dword ptr [ebp - 0x20] */
  16005     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38031C61: call dword ptr [0x3804e4e8] */
  16006     RECOMP_FLAGS_IN();
  16007     eax = MEM32(esi + 0x44); /* 0x38031C67: mov eax, dword ptr [esi + 0x44] */
  16008     /* cmp eax, 1 */ /* 0x38031C6A: cmp eax, 1 */
  16009     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16010     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16011     _flag_k = FK_CMP;
  16012     edi = POP32_VAL(esp); /* 0x38031C6D: pop edi */
  16013     ebx = POP32_VAL(esp); /* 0x38031C6E: pop ebx */
  16014     if (CMP_NE(_flag_a, _flag_b)) goto L_38031CC6; /* 0x38031C6F: jne 0x38031cc6 */
  16015 L_38031C71:
  16016     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031C71: fld dword ptr [ebp - 0x20] */
  16017     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x38031C74: fadd dword ptr [ebp - 4] */
  16018     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031C77: fstp dword ptr [ebp - 0x20] */
  16019 L_38031C7A:
  16020     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031C7A: fld dword ptr [ebp - 0x28] */
  16021 L_38031C7D:
  16022     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x54u);
  16023     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16024     esi = esi + 0x54u; /* 0x38031C7D: add esi, 0x54 */
  16025     _flag_k = FK_ADD;
  16026     ecx = MEM32(esi); /* 0x38031C80: mov ecx, dword ptr [esi] */
  16027     edx = MEM32(esi + 0x4); /* 0x38031C82: mov edx, dword ptr [esi + 4] */
  16028     eax = MEM32(esi + 0x8); /* 0x38031C85: mov eax, dword ptr [esi + 8] */
  16029     MEM32(ebp + (-0x34)) = ecx; /* 0x38031C88: mov dword ptr [ebp - 0x34], ecx */
  16030     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x38031C8B: fsubr dword ptr [ebp - 0x34] */
  16031     ecx = MEM32(ebp + 0x8); /* 0x38031C8E: mov ecx, dword ptr [ebp + 8] */
  16032     MEM32(ebp + (-0x2C)) = eax; /* 0x38031C91: mov dword ptr [ebp - 0x2c], eax */
  16033     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031C94: fld dword ptr [ebp - 0x2c] */
  16034     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x38031C97: fsub dword ptr [ebp - 0x20] */
  16035     eax = MEM32(ebp + 0x10); /* 0x38031C9A: mov eax, dword ptr [ebp + 0x10] */
  16036     MEM32(ebp + (-0x30)) = edx; /* 0x38031C9D: mov dword ptr [ebp - 0x30], edx */
  16037     edx = MEM32(ebp + 0xC); /* 0x38031CA0: mov edx, dword ptr [ebp + 0xc] */
  16038     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38031CA3: fstp dword ptr [ebp - 0x2c] */
  16039     esi = POP32_VAL(esp); /* 0x38031CA6: pop esi */
  16040     fp_push(_st[0]); /* 0x38031CA7: fld st(0) */
  16041     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x38031CA9: fstp dword ptr [ecx] */
  16042     ecx = MEM32(ebp + 0x14); /* 0x38031CAB: mov ecx, dword ptr [ebp + 0x14] */
  16043     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x38031CAE: fadd dword ptr [ebp - 0x18] */
  16044     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x38031CB1: fstp dword ptr [edx] */
  16045     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031CB3: fld dword ptr [ebp - 0x2c] */
  16046     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x38031CB6: fstp dword ptr [eax] */
  16047     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38031CB8: fld dword ptr [ebp - 0x2c] */
  16048     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x38031CBB: fadd dword ptr [ebp - 0x1c] */
  16049     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x38031CBE: fstp dword ptr [ecx] */
  16050     esp = ebp; /* 0x38031CC0: mov esp, ebp */
  16051     ebp = POP32_VAL(esp); /* 0x38031CC2: pop ebp */
  16052     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38031CC3: ret 0x10 */
  16053 L_38031CC6:
  16054     /* cmp eax, 2 */ /* 0x38031CC6: cmp eax, 2 */
  16055     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
  16056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16057     _flag_k = FK_CMP;
  16058     if (CMP_NE(_flag_a, _flag_b)) goto L_38031CDC; /* 0x38031CC9: jne 0x38031cdc */
  16059 L_38031CCB:
  16060     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031CCB: fld dword ptr [ebp - 0x28] */
  16061     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x38031CCE: fadd dword ptr [ebp - 4] */
  16062     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031CD1: fld dword ptr [ebp - 0x20] */
  16063     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x38031CD4: fadd dword ptr [ebp - 8] */
  16064     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031CD7: fstp dword ptr [ebp - 0x20] */
  16065     RECOMP_BACKEDGE();
  16066     goto L_38031C7D; /* 0x38031CDA: jmp 0x38031c7d */
  16067 L_38031CDC:
  16068     /* cmp eax, 3 */ /* 0x38031CDC: cmp eax, 3 */
  16069     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  16070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16071     _flag_k = FK_CMP;
  16072     RECOMP_BACKEDGE();
  16073     if (CMP_NE(_flag_a, _flag_b)) goto L_38031C7A; /* 0x38031CDF: jne 0x38031c7a */
  16074 L_38031CE1:
  16075     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38031CE1: fld dword ptr [ebp - 0x28] */
  16076     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x38031CE4: fadd dword ptr [ebp - 8] */
  16077     RECOMP_BACKEDGE();
  16078     goto L_38031C7D; /* 0x38031CE7: jmp 0x38031c7d */
  16079     { RECOMP_REGS_OUT(); return; } /* end of function */
  16080     RECOMP_REGS_OUT();
  16081 }
  16082 
  16083 void sub_38031CF0(void) {
  16084     int _fpu_cmp = 0;
  16085     uint32_t _cf = 0;
  16086     int _df = 1;
  16087     uint32_t _flag_k = FK_NONE;
  16088     uint32_t _flag_a = 0, _flag_b = 0;
  16089     uint32_t _itail_tgt = 0;
  16090     RECOMP_REGS_LOCALS
  16091     RECOMP_ENTER(0x38031CF0u);
  16092 
  16093 L_38031CF0:
  16094     PUSH32(esp, ebp); /* 0x38031CF0: push ebp */
  16095     ebp = esp; /* 0x38031CF1: mov ebp, esp */
  16096     PUSH32(esp, ebx); /* 0x38031CF3: push ebx */
  16097     ebx = MEM32(ebp + 0xC); /* 0x38031CF4: mov ebx, dword ptr [ebp + 0xc] */
  16098     PUSH32(esp, esi); /* 0x38031CF7: push esi */
  16099     esi = ecx; /* 0x38031CF8: mov esi, ecx */
  16100     PUSH32(esp, edi); /* 0x38031CFA: push edi */
  16101     edi = MEM32(ebp + 0x8); /* 0x38031CFB: mov edi, dword ptr [ebp + 8] */
  16102     eax = esi + 0x54; /* 0x38031CFE: lea eax, [esi + 0x54] */
  16103     edx = MEM32(eax); /* 0x38031D01: mov edx, dword ptr [eax] */
  16104     ecx = edi; /* 0x38031D03: mov ecx, edi */
  16105     MEM32(ecx) = edx; /* 0x38031D05: mov dword ptr [ecx], edx */
  16106     edx = MEM32(eax + 0x4); /* 0x38031D07: mov edx, dword ptr [eax + 4] */
  16107     MEM32(ecx + 0x4) = edx; /* 0x38031D0A: mov dword ptr [ecx + 4], edx */
  16108     eax = MEM32(eax + 0x8); /* 0x38031D0D: mov eax, dword ptr [eax + 8] */
  16109     MEM32(ecx + 0x8) = eax; /* 0x38031D10: mov dword ptr [ecx + 8], eax */
  16110     ecx = ebp + 0x8; /* 0x38031D13: lea ecx, [ebp + 8] */
  16111     PUSH32(esp, ecx); /* 0x38031D16: push ecx */
  16112     edx = ebp + 0xC; /* 0x38031D17: lea edx, [ebp + 0xc] */
  16113     PUSH32(esp, edx); /* 0x38031D1A: push edx */
  16114     PUSH32(esp, ebx); /* 0x38031D1B: push ebx */
  16115     PUSH32(esp, edi); /* 0x38031D1C: push edi */
  16116     ecx = esi; /* 0x38031D1D: mov ecx, esi */
  16117     RECOMP_ICALL(0x380326E0u); /* 0x38031D1F: call 0x380326e0 */ /* not lifted */
  16118     RECOMP_FLAGS_IN();
  16119     /* cmp LO8(eax), 1 */ /* 0x38031D24: cmp al, 1 */
  16120     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16122     _flag_k = FK_NARROW(FK_CMP, 24);
  16123     if (CMP_NE(_flag_a, _flag_b)) goto L_38031D3D; /* 0x38031D26: jne 0x38031d3d */
  16124 L_38031D28:
  16125     eax = MEM32(ebp + 0x8); /* 0x38031D28: mov eax, dword ptr [ebp + 8] */
  16126     ecx = MEM32(ebp + 0xC); /* 0x38031D2B: mov ecx, dword ptr [ebp + 0xc] */
  16127     PUSH32(esp, eax); /* 0x38031D2E: push eax */
  16128     PUSH32(esp, ecx); /* 0x38031D2F: push ecx */
  16129     ecx = ebx; /* 0x38031D30: mov ecx, ebx */
  16130     RECOMP_ICALL(0x38039EC0u); /* 0x38031D32: call 0x38039ec0 */ /* not lifted */
  16131     RECOMP_FLAGS_IN();
  16132     _st[0] -= (double)*(float*)ADDR(esi + 0x3C); /* 0x38031D37: fsub dword ptr [esi + 0x3c] */
  16133     { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x38031D3A: fstp dword ptr [edi + 4] */
  16134 L_38031D3D:
  16135     edi = POP32_VAL(esp); /* 0x38031D3D: pop edi */
  16136     esi = POP32_VAL(esp); /* 0x38031D3E: pop esi */
  16137     ebx = POP32_VAL(esp); /* 0x38031D3F: pop ebx */
  16138     ebp = POP32_VAL(esp); /* 0x38031D40: pop ebp */
  16139     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38031D41: ret 8 */
  16140     RECOMP_REGS_OUT();
  16141 }
  16142 
  16143 void sub_38031D50(void) {
  16144     int _fpu_cmp = 0;
  16145     uint32_t _cf = 0;
  16146     int _df = 1;
  16147     uint32_t _flag_k = FK_NONE;
  16148     uint32_t _flag_a = 0, _flag_b = 0;
  16149     uint32_t _itail_tgt = 0;
  16150     RECOMP_REGS_LOCALS
  16151     RECOMP_ENTER(0x38031D50u);
  16152 
  16153 L_38031D50:
  16154     eax = ecx + 0x54; /* 0x38031D50: lea eax, [ecx + 0x54] */
  16155     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38031D53: ret  */
  16156     RECOMP_REGS_OUT();
  16157 }
  16158 
  16159 void sub_38031D60(void) {
  16160     int _fpu_cmp = 0;
  16161     uint32_t _cf = 0;
  16162     int _df = 1;
  16163     uint32_t _flag_k = FK_NONE;
  16164     uint32_t _flag_a = 0, _flag_b = 0;
  16165     uint32_t _itail_tgt = 0;
  16166     RECOMP_REGS_LOCALS
  16167     RECOMP_ENTER(0x38031D60u);
  16168 
  16169 L_38031D60:
  16170     PUSH32(esp, ebp); /* 0x38031D60: push ebp */
  16171     ebp = esp; /* 0x38031D61: mov ebp, esp */
  16172     eax = MEM32(ebp + 0x8); /* 0x38031D63: mov eax, dword ptr [ebp + 8] */
  16173     edx = MEM32(eax); /* 0x38031D66: mov edx, dword ptr [eax] */
  16174     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
  16175     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16176     ecx = ecx + 0x54u; /* 0x38031D68: add ecx, 0x54 */
  16177     _flag_k = FK_ADD;
  16178     MEM32(ecx) = edx; /* 0x38031D6B: mov dword ptr [ecx], edx */
  16179     edx = MEM32(eax + 0x4); /* 0x38031D6D: mov edx, dword ptr [eax + 4] */
  16180     MEM32(ecx + 0x4) = edx; /* 0x38031D70: mov dword ptr [ecx + 4], edx */
  16181     eax = MEM32(eax + 0x8); /* 0x38031D73: mov eax, dword ptr [eax + 8] */
  16182     MEM32(ecx + 0x8) = eax; /* 0x38031D76: mov dword ptr [ecx + 8], eax */
  16183     ebp = POP32_VAL(esp); /* 0x38031D79: pop ebp */
  16184     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38031D7A: ret 4 */
  16185     RECOMP_REGS_OUT();
  16186 }
  16187 
  16188 void sub_38031D80(void) {
  16189     int _fpu_cmp = 0;
  16190     uint32_t _cf = 0;
  16191     int _df = 1;
  16192     uint32_t _flag_k = FK_NONE;
  16193     uint32_t _flag_a = 0, _flag_b = 0;
  16194     uint32_t _itail_tgt = 0;
  16195     RECOMP_REGS_LOCALS
  16196     RECOMP_ENTER(0x38031D80u);
  16197 
  16198 L_38031D80:
  16199     eax = ecx + 0x6C; /* 0x38031D80: lea eax, [ecx + 0x6c] */
  16200     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38031D83: ret  */
  16201     RECOMP_REGS_OUT();
  16202 }
  16203 
  16204 void sub_38031D90(void) {
  16205     int _fpu_cmp = 0;
  16206     uint32_t _cf = 0;
  16207     int _df = 1;
  16208     uint32_t _flag_k = FK_NONE;
  16209     uint32_t _flag_a = 0, _flag_b = 0;
  16210     uint32_t _itail_tgt = 0;
  16211     RECOMP_REGS_LOCALS
  16212     RECOMP_ENTER(0x38031D90u);
  16213 
  16214 L_38031D90:
  16215     eax = MEM32(ecx + 0x44); /* 0x38031D90: mov eax, dword ptr [ecx + 0x44] */
  16216     eax = eax + eax * 4; /* 0x38031D93: lea eax, [eax + eax*4] */
  16217     eax = eax + eax * 8; /* 0x38031D96: lea eax, [eax + eax*8] */
  16218     if (1u) _cf = (((eax) >> 31) & 1u); /* 0x38031D99: shl eax, 1 */
  16219     if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16220     eax = eax << 1u; /* 0x38031D99: shl eax, 1 */
  16221     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38031D9B: ret  */
  16222     RECOMP_REGS_OUT();
  16223 }
  16224 
  16225 void sub_38031DA0(void) {
  16226     int _fpu_cmp = 0;
  16227     uint32_t _cf = 0;
  16228     int _df = 1;
  16229     uint32_t _flag_k = FK_NONE;
  16230     uint32_t _flag_a = 0, _flag_b = 0;
  16231     uint32_t _itail_tgt = 0;
  16232     RECOMP_REGS_LOCALS
  16233     RECOMP_ENTER(0x38031DA0u);
  16234 
  16235 L_38031DA0:
  16236     PUSH32(esp, ebp); /* 0x38031DA0: push ebp */
  16237     ebp = esp; /* 0x38031DA1: mov ebp, esp */
  16238     PUSH32(esp, esi); /* 0x38031DA3: push esi */
  16239     esi = MEM32(ebp + 0x8); /* 0x38031DA4: mov esi, dword ptr [ebp + 8] */
  16240     /* test esi, esi */ /* 0x38031DA7: test esi, esi */
  16241     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  16242     _cf = 0;
  16243     _flag_k = FK_TEST;
  16244     if (TEST_Z(_flag_a, _flag_b)) goto L_38031DC0; /* 0x38031DA9: je 0x38031dc0 */
  16245 L_38031DAB:
  16246     /* cmp esi, 0x5Au */ /* 0x38031DAB: cmp esi, 0x5a */
  16247     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x5Au);
  16248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16249     _flag_k = FK_CMP;
  16250     if (CMP_EQ(_flag_a, _flag_b)) goto L_38031DC0; /* 0x38031DAE: je 0x38031dc0 */
  16251 L_38031DB0:
  16252     /* cmp esi, 0xB4u */ /* 0x38031DB0: cmp esi, 0xb4 */
  16253     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB4u);
  16254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16255     _flag_k = FK_CMP;
  16256     if (CMP_EQ(_flag_a, _flag_b)) goto L_38031DC0; /* 0x38031DB6: je 0x38031dc0 */
  16257 L_38031DB8:
  16258     /* cmp esi, 0x10Eu */ /* 0x38031DB8: cmp esi, 0x10e */
  16259     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10Eu);
  16260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16261     _flag_k = FK_CMP;
  16262     if (CMP_NE(_flag_a, _flag_b)) goto L_38031DD6; /* 0x38031DBE: jne 0x38031dd6 */
  16263 L_38031DC0:
  16264     eax = 0xB60B60B7u; /* 0x38031DC0: mov eax, 0xb60b60b7 */
  16265     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(esi); /* 0x38031DC5: imul esi */
  16266       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  16267       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  16268     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  16269     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16270     edx = edx + esi; /* 0x38031DC7: add edx, esi */
  16271     _flag_k = FK_ADD;
  16272     if (6u) _cf = (((edx) >> 5) & 1u); /* 0x38031DC9: sar edx, 6 */
  16273     if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16274     edx = (uint32_t)((int32_t)edx >> 6u);
  16275     eax = edx; /* 0x38031DCC: mov eax, edx */
  16276     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x38031DCE: shr eax, 0x1f */
  16277     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16278     eax = eax >> 31u; /* 0x38031DCE: shr eax, 0x1f */
  16279     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  16280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16281     edx = edx + eax; /* 0x38031DD1: add edx, eax */
  16282     _flag_k = FK_ADD;
  16283     MEM32(ecx + 0x44) = edx; /* 0x38031DD3: mov dword ptr [ecx + 0x44], edx */
  16284 L_38031DD6:
  16285     esi = POP32_VAL(esp); /* 0x38031DD6: pop esi */
  16286     ebp = POP32_VAL(esp); /* 0x38031DD7: pop ebp */
  16287     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38031DD8: ret 4 */
  16288     RECOMP_REGS_OUT();
  16289 }
  16290 
  16291 void sub_38031DE0(void) {
  16292     int _fpu_cmp = 0;
  16293     uint32_t _cf = 0;
  16294     int _df = 1;
  16295     uint32_t _flag_k = FK_NONE;
  16296     uint32_t _flag_a = 0, _flag_b = 0;
  16297     uint32_t _itail_tgt = 0;
  16298     RECOMP_REGS_LOCALS
  16299     RECOMP_ENTER(0x38031DE0u);
  16300 
  16301 L_38031DE0:
  16302     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16303     eax = 0; /* 0x38031DE0: xor eax, eax */
  16304     _cf = 0;
  16305     _flag_k = FK_TEST;
  16306     SET_LO16(eax, MEM16(ecx + 0x50)); /* 0x38031DE2: mov ax, word ptr [ecx + 0x50] */
  16307     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16308     edx = 0; /* 0x38031DE6: xor edx, edx */
  16309     _cf = 0;
  16310     _flag_k = FK_TEST;
  16311     SET_LO16(edx, MEM16(ecx + 0x4C)); /* 0x38031DE8: mov dx, word ptr [ecx + 0x4c] */
  16312     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  16313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16314     eax = eax - edx; /* 0x38031DEC: sub eax, edx */
  16315     _flag_k = FK_CMP;
  16316     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38031DEE: ret  */
  16317     RECOMP_REGS_OUT();
  16318 }
  16319 
  16320 void sub_38031DF0(void) {
  16321     int _fpu_cmp = 0;
  16322     uint32_t _cf = 0;
  16323     int _df = 1;
  16324     uint32_t _flag_k = FK_NONE;
  16325     uint32_t _flag_a = 0, _flag_b = 0;
  16326     uint32_t _itail_tgt = 0;
  16327     RECOMP_REGS_LOCALS
  16328     RECOMP_ENTER(0x38031DF0u);
  16329 
  16330 L_38031DF0:
  16331     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16332     eax = 0; /* 0x38031DF0: xor eax, eax */
  16333     _cf = 0;
  16334     _flag_k = FK_TEST;
  16335     SET_LO16(eax, MEM16(ecx + 0x52)); /* 0x38031DF2: mov ax, word ptr [ecx + 0x52] */
  16336     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16337     edx = 0; /* 0x38031DF6: xor edx, edx */
  16338     _cf = 0;
  16339     _flag_k = FK_TEST;
  16340     SET_LO16(edx, MEM16(ecx + 0x4E)); /* 0x38031DF8: mov dx, word ptr [ecx + 0x4e] */
  16341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  16342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16343     eax = eax - edx; /* 0x38031DFC: sub eax, edx */
  16344     _flag_k = FK_CMP;
  16345     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38031DFE: ret  */
  16346     RECOMP_REGS_OUT();
  16347 }
  16348 
  16349 void sub_38031E00(void) {
  16350     int _fpu_cmp = 0;
  16351     uint32_t _cf = 0;
  16352     int _df = 1;
  16353     uint32_t _flag_k = FK_NONE;
  16354     uint32_t _flag_a = 0, _flag_b = 0;
  16355     uint32_t _itail_tgt = 0;
  16356     RECOMP_REGS_LOCALS
  16357     RECOMP_ENTER(0x38031E00u);
  16358 
  16359 L_38031E00:
  16360     eax = MEM32(ecx + 0x94); /* 0x38031E00: mov eax, dword ptr [ecx + 0x94] */
  16361     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38031E06: ret  */
  16362     RECOMP_REGS_OUT();
  16363 }
  16364 
  16365 void sub_38031E10(void) {
  16366     int _fpu_cmp = 0;
  16367     uint32_t _cf = 0;
  16368     int _df = 1;
  16369     uint32_t _flag_k = FK_NONE;
  16370     uint32_t _flag_a = 0, _flag_b = 0;
  16371     uint32_t _itail_tgt = 0;
  16372     RECOMP_REGS_LOCALS
  16373     RECOMP_ENTER(0x38031E10u);
  16374 
  16375 L_38031E10:
  16376     PUSH32(esp, ebp); /* 0x38031E10: push ebp */
  16377 L_38031E11:
  16378     ebp = esp; /* 0x38031E11: mov ebp, esp */
  16379 L_38031E13:
  16380     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x6Cu);
  16381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16382     esp = esp - 0x6Cu; /* 0x38031E13: sub esp, 0x6c */
  16383     _flag_k = FK_CMP;
  16384 L_38031E16:
  16385     edx = MEM32(ebp + 0x8); /* 0x38031E16: mov edx, dword ptr [ebp + 8] */
  16386 L_38031E19:
  16387     PUSH32(esp, ebx); /* 0x38031E19: push ebx */
  16388 L_38031E1A:
  16389     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16390     eax = 0; /* 0x38031E1A: xor eax, eax */
  16391     _cf = 0;
  16392     _flag_k = FK_TEST;
  16393 L_38031E1C:
  16394     PUSH32(esp, esi); /* 0x38031E1C: push esi */
  16395 L_38031E1D:
  16396     esi = ecx; /* 0x38031E1D: mov esi, ecx */
  16397 L_38031E1F:
  16398     SET_LO16(eax, MEM16(esi + 0x50)); /* 0x38031E1F: mov ax, word ptr [esi + 0x50] */
  16399 L_38031E23:
  16400     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16401     ecx = 0; /* 0x38031E23: xor ecx, ecx */
  16402     _cf = 0;
  16403     _flag_k = FK_TEST;
  16404 L_38031E25:
  16405     SET_LO16(ecx, MEM16(esi + 0x4C)); /* 0x38031E25: mov cx, word ptr [esi + 0x4c] */
  16406 L_38031E29:
  16407     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16408     ebx = 0; /* 0x38031E29: xor ebx, ebx */
  16409     _cf = 0;
  16410     _flag_k = FK_TEST;
  16411 L_38031E2B:
  16412     PUSH32(esp, edi); /* 0x38031E2B: push edi */
  16413 L_38031E2C:
  16414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  16415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16416     eax = eax - ecx; /* 0x38031E2C: sub eax, ecx */
  16417     _flag_k = FK_CMP;
  16418 L_38031E2E:
  16419     MEM32(ebp + (-0xC)) = eax; /* 0x38031E2E: mov dword ptr [ebp - 0xc], eax */
  16420 L_38031E31:
  16421     eax = MEM32(edx + 0xC); /* 0x38031E31: mov eax, dword ptr [edx + 0xc] */
  16422 L_38031E34:
  16423     fp_push(*(float*)&MEM32(eax + 0x8264)); /* 0x38031E34: fld dword ptr [eax + 0x8264] */
  16424 L_38031E3A:
  16425     eax = MEM32(esi + 0xB0); /* 0x38031E3A: mov eax, dword ptr [esi + 0xb0] */
  16426 L_38031E40:
  16427     /* cmp eax, ebx */ /* 0x38031E40: cmp eax, ebx */
  16428     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  16429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16430     _flag_k = FK_CMP;
  16431 L_38031E42:
  16432     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x38031E42: fstp dword ptr [ebp + 8] */
  16433 L_38031E45:
  16434     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031ED6; /* 0x38031E45: jne 0x38031ed6 */
  16435 L_38031E4B:
  16436     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16437     edi = 0; /* 0x38031E4B: xor edi, edi */
  16438     _cf = 0;
  16439     _flag_k = FK_TEST;
  16440 L_38031E4D:
  16441     SET_LO16(edi, MEM16(esi + 0x7C)); /* 0x38031E4D: mov di, word ptr [esi + 0x7c] */
  16442 L_38031E51:
  16443     ecx = edi; /* 0x38031E51: mov ecx, edi */
  16444 L_38031E53:
  16445     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x38031E53: shl ecx, 4 */
  16446     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16447     ecx = ecx << 4u; /* 0x38031E53: shl ecx, 4 */
  16448 L_38031E56:
  16449     PUSH32(esp, ecx); /* 0x38031E56: push ecx */
  16450 L_38031E57:
  16451     RECOMP_ICALL(0x3804B676u); /* 0x38031E57: call 0x3804b676 */ /* not lifted */
  16452     RECOMP_FLAGS_IN();
  16453 L_38031E5C:
  16454     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16456     esp = esp + 4; /* 0x38031E5C: add esp, 4 */
  16457     _flag_k = FK_ADD;
  16458 L_38031E5F:
  16459     /* cmp eax, ebx */ /* 0x38031E5F: cmp eax, ebx */
  16460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  16461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16462     _flag_k = FK_CMP;
  16463 L_38031E61:
  16464     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031E7E; /* 0x38031E61: je 0x38031e7e */
  16465 L_38031E63:
  16466     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  16467     edi = edi - 1; /* 0x38031E63: dec edi */
  16468     _flag_k = FK_DEC;
  16469 L_38031E64:
  16470     /* cmp edi, ebx */ /* 0x38031E64: cmp edi, ebx */
  16471     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  16472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16473     _flag_k = FK_CMP;
  16474 L_38031E66:
  16475     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38031E80; /* 0x38031E66: jl 0x38031e80 */
  16476 L_38031E68:
  16477     ecx = eax + 0x8; /* 0x38031E68: lea ecx, [eax + 8] */
  16478 L_38031E6B:
  16479     edx = edi + 0x1; /* 0x38031E6B: lea edx, [edi + 1] */
  16480 L_38031E6E:
  16481     MEM32(ecx + (-0x8)) = ebx; /* 0x38031E6E: mov dword ptr [ecx - 8], ebx */
  16482 L_38031E71:
  16483     MEM32(ecx + (-0x4)) = ebx; /* 0x38031E71: mov dword ptr [ecx - 4], ebx */
  16484 L_38031E74:
  16485     MEM32(ecx) = ebx; /* 0x38031E74: mov dword ptr [ecx], ebx */
  16486 L_38031E76:
  16487     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
  16488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16489     ecx = ecx + 0x10u; /* 0x38031E76: add ecx, 0x10 */
  16490     _flag_k = FK_ADD;
  16491 L_38031E79:
  16492     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  16493     edx = edx - 1; /* 0x38031E79: dec edx */
  16494     _flag_k = FK_DEC;
  16495 L_38031E7A:
  16496     RECOMP_BACKEDGE();
  16497     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031E6E; /* 0x38031E7A: jne 0x38031e6e */
  16498 L_38031E7C:
  16499     goto L_38031E80; /* 0x38031E7C: jmp 0x38031e80 */
  16500 L_38031E7E:
  16501     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16502     eax = 0; /* 0x38031E7E: xor eax, eax */
  16503     _cf = 0;
  16504     _flag_k = FK_TEST;
  16505 L_38031E80:
  16506     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16507     ecx = 0; /* 0x38031E80: xor ecx, ecx */
  16508     _cf = 0;
  16509     _flag_k = FK_TEST;
  16510 L_38031E82:
  16511     /* cmp MEM16(esi + 0x7C), LO16(ebx) */ /* 0x38031E82: cmp word ptr [esi + 0x7c], bx */
  16512     _flag_a = (uint32_t)(MEM16(esi + 0x7C)) << 16; _flag_b = (uint32_t)(LO16(ebx)) << 16;
  16513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16514     _flag_k = FK_NARROW(FK_CMP, 16);
  16515 L_38031E86:
  16516     MEM32(esi + 0xB0) = eax; /* 0x38031E86: mov dword ptr [esi + 0xb0], eax */
  16517 L_38031E8C:
  16518     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_38031ED6; /* 0x38031E8C: jbe 0x38031ed6 */
  16519 L_38031E8E:
  16520     MEM32(ebp + (-0x34)) = 0xBF800000u; /* 0x38031E8E: mov dword ptr [ebp - 0x34], 0xbf800000 */
  16521 L_38031E95:
  16522     edx = MEM32(ebp + (-0x34)); /* 0x38031E95: mov edx, dword ptr [ebp - 0x34] */
  16523 L_38031E98:
  16524     MEM32(ebp + (-0x38)) = ecx; /* 0x38031E98: mov dword ptr [ebp - 0x38], ecx */
  16525 L_38031E9B:
  16526     MEM32(ebp + (-0x30)) = ecx; /* 0x38031E9B: mov dword ptr [ebp - 0x30], ecx */
  16527 L_38031E9E:
  16528     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16529     eax = 0; /* 0x38031E9E: xor eax, eax */
  16530     _cf = 0;
  16531     _flag_k = FK_TEST;
  16532 L_38031EA0:
  16533     ebx = MEM32(esi + 0xB0); /* 0x38031EA0: mov ebx, dword ptr [esi + 0xb0] */
  16534 L_38031EA6:
  16535     edi = eax; /* 0x38031EA6: mov edi, eax */
  16536 L_38031EA8:
  16537     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  16538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16539     edi = edi + ebx; /* 0x38031EA8: add edi, ebx */
  16540     _flag_k = FK_ADD;
  16541 L_38031EAA:
  16542     ebx = MEM32(ebp + (-0x38)); /* 0x38031EAA: mov ebx, dword ptr [ebp - 0x38] */
  16543 L_38031EAD:
  16544     MEM32(edi) = ebx; /* 0x38031EAD: mov dword ptr [edi], ebx */
  16545 L_38031EAF:
  16546     ebx = MEM32(ebp + (-0x30)); /* 0x38031EAF: mov ebx, dword ptr [ebp - 0x30] */
  16547 L_38031EB2:
  16548     MEM32(edi + 0x4) = edx; /* 0x38031EB2: mov dword ptr [edi + 4], edx */
  16549 L_38031EB5:
  16550     MEM32(edi + 0x8) = ebx; /* 0x38031EB5: mov dword ptr [edi + 8], ebx */
  16551 L_38031EB8:
  16552     edi = MEM32(esi + 0xB0); /* 0x38031EB8: mov edi, dword ptr [esi + 0xb0] */
  16553 L_38031EBE:
  16554     MEM32(eax + edi + 0xC) = 0x3F800000u; /* 0x38031EBE: mov dword ptr [eax + edi + 0xc], 0x3f800000 */
  16555 L_38031EC6:
  16556     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16557     edi = 0; /* 0x38031EC6: xor edi, edi */
  16558     _cf = 0;
  16559     _flag_k = FK_TEST;
  16560 L_38031EC8:
  16561     SET_LO16(edi, MEM16(esi + 0x7C)); /* 0x38031EC8: mov di, word ptr [esi + 0x7c] */
  16562 L_38031ECC:
  16563     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  16564     ecx = ecx + 1; /* 0x38031ECC: inc ecx */
  16565     _flag_k = FK_INC;
  16566 L_38031ECD:
  16567     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
  16568     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16569     eax = eax + 0x10u; /* 0x38031ECD: add eax, 0x10 */
  16570     _flag_k = FK_ADD;
  16571 L_38031ED0:
  16572     /* cmp ecx, edi */ /* 0x38031ED0: cmp ecx, edi */
  16573     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  16574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16575     _flag_k = FK_CMP;
  16576 L_38031ED2:
  16577     RECOMP_BACKEDGE();
  16578     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38031EA0; /* 0x38031ED2: jl 0x38031ea0 */
  16579 L_38031ED4:
  16580     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16581     ebx = 0; /* 0x38031ED4: xor ebx, ebx */
  16582     _cf = 0;
  16583     _flag_k = FK_TEST;
  16584 L_38031ED6:
  16585     /* cmp MEM16(esi + 0x7C), LO16(ebx) */ /* 0x38031ED6: cmp word ptr [esi + 0x7c], bx */
  16586     _flag_a = (uint32_t)(MEM16(esi + 0x7C)) << 16; _flag_b = (uint32_t)(LO16(ebx)) << 16;
  16587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16588     _flag_k = FK_NARROW(FK_CMP, 16);
  16589 L_38031EDA:
  16590     MEM32(ebp + (-0x8)) = ebx; /* 0x38031EDA: mov dword ptr [ebp - 8], ebx */
  16591 L_38031EDD:
  16592     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_38032147; /* 0x38031EDD: jbe 0x38032147 */
  16593 L_38031EE3:
  16594     eax = MEM32(ebp + (-0x8)); /* 0x38031EE3: mov eax, dword ptr [ebp - 8] */
  16595 L_38031EE6:
  16596     edx = MEM32(esi + 0x80); /* 0x38031EE6: mov edx, dword ptr [esi + 0x80] */
  16597 L_38031EEC:
  16598     SET_LO16(eax, MEM16(edx + eax * 4 + 0x2)); /* 0x38031EEC: mov ax, word ptr [edx + eax*4 + 2] */
  16599 L_38031EF1:
  16600     MEM32(ebp + (-0x4)) = eax; /* 0x38031EF1: mov dword ptr [ebp - 4], eax */
  16601 L_38031EF4:
  16602     if (2u) _cf = (((MEM16(ebp + (-0x4))) >> 1) & 1u); /* 0x38031EF4: shr word ptr [ebp - 4], 2 */
  16603     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x4)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16604     MEM16(ebp + (-0x4)) = (uint16_t)(MEM16(ebp + (-0x4)) >> 2u); /* 0x38031EF4: shr word ptr [ebp - 4], 2 */
  16605 L_38031EF9:
  16606     ecx = MEM32(ebp + (-0x4)); /* 0x38031EF9: mov ecx, dword ptr [ebp - 4] */
  16607 L_38031EFC:
  16608     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  16609     eax = eax & 3; /* 0x38031EFC: and eax, 3 */
  16610     _cf = 0;
  16611     _flag_k = FK_TEST;
  16612 L_38031EFF:
  16613     edi = eax; /* 0x38031EFF: mov edi, eax */
  16614 L_38031F01:
  16615     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
  16616     ecx = ecx & 0xFFFFu; /* 0x38031F01: and ecx, 0xffff */
  16617     _cf = 0;
  16618     _flag_k = FK_TEST;
  16619 L_38031F07:
  16620     eax = ecx; /* 0x38031F07: mov eax, ecx */
  16621 L_38031F09:
  16622     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031F09: cdq  */
  16623 L_38031F0A:
  16624     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0xC)); /* 0x38031F0A: idiv dword ptr [ebp - 0xc] */
  16625       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  16626       else { eax = 0; edx = 0; } }
  16627 L_38031F0D:
  16628     eax = ecx; /* 0x38031F0D: mov eax, ecx */
  16629 L_38031F0F:
  16630     MEM32(ebp + (-0x4)) = edx; /* 0x38031F0F: mov dword ptr [ebp - 4], edx */
  16631 L_38031F12:
  16632     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38031F12: cdq  */
  16633 L_38031F13:
  16634     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x38031F13: fild dword ptr [ebp - 4] */
  16635 L_38031F16:
  16636     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0xC)); /* 0x38031F16: idiv dword ptr [ebp - 0xc] */
  16637       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  16638       else { eax = 0; edx = 0; } }
  16639 L_38031F19:
  16640     /* cmp edi, 3 */ /* 0x38031F19: cmp edi, 3 */
  16641     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
  16642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16643     _flag_k = FK_CMP;
  16644 L_38031F1C:
  16645     MEM32(ebp + (-0x4)) = eax; /* 0x38031F1C: mov dword ptr [ebp - 4], eax */
  16646 L_38031F1F:
  16647     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x38031F1F: fild dword ptr [ebp - 4] */
  16648 L_38031F22:
  16649     eax = esi + 0x6C; /* 0x38031F22: lea eax, [esi + 0x6c] */
  16650 L_38031F25:
  16651     ecx = MEM32(eax); /* 0x38031F25: mov ecx, dword ptr [eax] */
  16652 L_38031F27:
  16653     edx = MEM32(eax + 0x4); /* 0x38031F27: mov edx, dword ptr [eax + 4] */
  16654 L_38031F2A:
  16655     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031F2A: fstp dword ptr [ebp - 0x18] */
  16656 L_38031F2D:
  16657     eax = MEM32(eax + 0x8); /* 0x38031F2D: mov eax, dword ptr [eax + 8] */
  16658 L_38031F30:
  16659     MEM32(ebp + (-0x38)) = ecx; /* 0x38031F30: mov dword ptr [ebp - 0x38], ecx */
  16660 L_38031F33:
  16661     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38031F33: fmul dword ptr [ebp + 8] */
  16662 L_38031F36:
  16663     MEM32(ebp + (-0x34)) = edx; /* 0x38031F36: mov dword ptr [ebp - 0x34], edx */
  16664 L_38031F39:
  16665     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031F39: fld dword ptr [ebp - 0x18] */
  16666 L_38031F3C:
  16667     MEM32(ebp + (-0x30)) = eax; /* 0x38031F3C: mov dword ptr [ebp - 0x30], eax */
  16668 L_38031F3F:
  16669     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38031F3F: fmul dword ptr [ebp + 8] */
  16670 L_38031F42:
  16671     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031F42: fstp dword ptr [ebp - 0x18] */
  16672 L_38031F45:
  16673     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38031F45: fld dword ptr [ebp - 0x38] */
  16674 L_38031F48:
  16675     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38031F48: fmul dword ptr [ebp + 8] */
  16676 L_38031F4B:
  16677     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031F4B: fld dword ptr [ebp - 0x34] */
  16678 L_38031F4E:
  16679     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38031F4E: fmul dword ptr [ebp + 8] */
  16680 L_38031F51:
  16681     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x38031F51: fstp dword ptr [ebp - 0x34] */
  16682 L_38031F54:
  16683     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x38031F54: fld dword ptr [ebp - 0x30] */
  16684 L_38031F57:
  16685     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38031F57: fmul dword ptr [ebp + 8] */
  16686 L_38031F5A:
  16687     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38031F5A: fstp dword ptr [ebp - 0x30] */
  16688 L_38031F5D:
  16689     fp_xch(1); /* 0x38031F5D: fxch st(1) */
  16690 L_38031F5F:
  16691     _st[0] -= _st[1]; /* 0x38031F5F: fsub st(1) */
  16692 L_38031F61:
  16693     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031F61: fstp dword ptr [ebp - 0x20] */
  16694 L_38031F64:
  16695     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38031F64: fstp st(0) */
  16696 L_38031F66:
  16697     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38031F66: fld dword ptr [ebp - 0x34] */
  16698 L_38031F69:
  16699     _st[0] = -_st[0]; /* 0x38031F69: fchs  */
  16700 L_38031F6B:
  16701     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38031F6B: fstp dword ptr [ebp - 0x1c] */
  16702 L_38031F6E:
  16703     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031F6E: fld dword ptr [ebp - 0x18] */
  16704 L_38031F71:
  16705     _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x38031F71: fsub dword ptr [ebp - 0x30] */
  16706 L_38031F74:
  16707     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031F74: fstp dword ptr [ebp - 0x18] */
  16708 L_38031F77:
  16709     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_38031FB3; /* 0x38031F77: ja 0x38031fb3 */
  16710 L_38031F79:
  16711     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x38032150)); goto _ljump; }
  16712 L_38031F80:
  16713     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031F80: fld dword ptr [ebp - 0x18] */
  16714 L_38031F83:
  16715     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031F83: fadd dword ptr [0x3804f690] */
  16716 L_38031F89:
  16717     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031F89: fstp dword ptr [ebp - 0x18] */
  16718 L_38031F8C:
  16719     goto L_38031FB3; /* 0x38031F8C: jmp 0x38031fb3 */
  16720 L_38031F8E:
  16721     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031F8E: fld dword ptr [ebp - 0x20] */
  16722 L_38031F91:
  16723     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x38031F91: fadd dword ptr [0x3804f690] */
  16724 L_38031F97:
  16725     goto L_38031FB0; /* 0x38031F97: jmp 0x38031fb0 */
  16726 L_38031F99:
  16727     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38031F99: fld dword ptr [ebp - 0x18] */
  16728 L_38031F9C:
  16729     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x38031F9C: fsub dword ptr [0x3804f690] */
  16730 L_38031FA2:
  16731     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38031FA2: fstp dword ptr [ebp - 0x18] */
  16732 L_38031FA5:
  16733     goto L_38031FB3; /* 0x38031FA5: jmp 0x38031fb3 */
  16734 L_38031FA7:
  16735     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38031FA7: fld dword ptr [ebp - 0x20] */
  16736 L_38031FAA:
  16737     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x38031FAA: fsub dword ptr [0x3804f690] */
  16738 L_38031FB0:
  16739     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38031FB0: fstp dword ptr [ebp - 0x20] */
  16740 L_38031FB3:
  16741     ecx = MEM32(esi + 0x44); /* 0x38031FB3: mov ecx, dword ptr [esi + 0x44] */
  16742 L_38031FB6:
  16743     MEM32(ebp + (-0x14)) = ecx; /* 0x38031FB6: mov dword ptr [ebp - 0x14], ecx */
  16744 L_38031FB9:
  16745     MEM32(ebp + (-0x10)) = 0; /* 0x38031FB9: mov dword ptr [ebp - 0x10], 0 */
  16746 L_38031FC0:
  16747     fp_push_i64((int64_t)MEM64(ebp + (-0x14))); /* 0x38031FC0: fild qword ptr [ebp - 0x14] */
  16748 L_38031FC3:
  16749     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38031FC3: fmul dword ptr [0x3804eac0] */
  16750 L_38031FC9:
  16751     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38031FC9: fcom dword ptr [0x3804e8e4] */
  16752 L_38031FCF:
  16753     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031FCF: fnstsw ax */
  16754 L_38031FD1:
  16755     /* test HI8(eax), 1 */ /* 0x38031FD1: test ah, 1 */
  16756     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16757     _cf = 0;
  16758     _flag_k = FK_NARROW(FK_TEST, 24);
  16759 L_38031FD4:
  16760     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38031FEB; /* 0x38031FD4: jne 0x38031feb */
  16761 L_38031FD6:
  16762     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38031FD6: fcom qword ptr [0x3804e8f8] */
  16763 L_38031FDC:
  16764     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38031FDC: fnstsw ax */
  16765 L_38031FDE:
  16766     /* test HI8(eax), 1 */ /* 0x38031FDE: test ah, 1 */
  16767     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16768     _cf = 0;
  16769     _flag_k = FK_NARROW(FK_TEST, 24);
  16770 L_38031FE1:
  16771     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38031FEB; /* 0x38031FE1: je 0x38031feb */
  16772 L_38031FE3:
  16773     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38031FE3: fmul dword ptr [0x3804e8bc] */
  16774 L_38031FE9:
  16775     goto L_3803200C; /* 0x38031FE9: jmp 0x3803200c */
  16776 L_38031FEB:
  16777     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38031FEB: fmul dword ptr [0x3804e8f4] */
  16778 L_38031FF1:
  16779     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  16780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16781     esp = esp - 8; /* 0x38031FF1: sub esp, 8 */
  16782     _flag_k = FK_CMP;
  16783 L_38031FF4:
  16784     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38031FF4: fst dword ptr [ebp - 4] */
  16785 L_38031FF7:
  16786     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38031FF7: fstp qword ptr [esp] */
  16787 L_38031FFA:
  16788     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38031FFA: call dword ptr [0x3804e0ac] */
  16789     RECOMP_FLAGS_IN();
  16790 L_38032000:
  16791     _st[0] = (double)*(float*)ADDR(ebp + (-0x4)) - _st[0]; /* 0x38032000: fsubr dword ptr [ebp - 4] */
  16792 L_38032003:
  16793     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  16794     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16795     esp = esp + 8; /* 0x38032003: add esp, 8 */
  16796     _flag_k = FK_ADD;
  16797 L_38032006:
  16798     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38032006: fmul dword ptr [0x3804e8f0] */
  16799 L_3803200C:
  16800     fp_push(_st[0]); /* 0x3803200C: fld st(0) */
  16801 L_3803200E:
  16802     ecx = ebp + (-0x20); /* 0x3803200E: lea ecx, [ebp - 0x20] */
  16803 L_38032011:
  16804     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38032011: fsin  */
  16805 L_38032013:
  16806     PUSH32(esp, ecx); /* 0x38032013: push ecx */
  16807 L_38032014:
  16808     ecx = ebp + (-0x50); /* 0x38032014: lea ecx, [ebp - 0x50] */
  16809 L_38032017:
  16810     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38032017: fld dword ptr [0x3804e8e4] */
  16811 L_3803201D:
  16812     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803201D: fst dword ptr [ebp - 4] */
  16813 L_38032020:
  16814     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x38032020: fstp dword ptr [ebp - 0x6c] */
  16815 L_38032023:
  16816     edx = MEM32(ebp + (-0x4)); /* 0x38032023: mov edx, dword ptr [ebp - 4] */
  16817 L_38032026:
  16818     edi = MEM32(ebp + (-0x6C)); /* 0x38032026: mov edi, dword ptr [ebp - 0x6c] */
  16819 L_38032029:
  16820     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38032029: fstp dword ptr [ebp - 0x68] */
  16821 L_3803202C:
  16822     ebx = MEM32(ebp + (-0x68)); /* 0x3803202C: mov ebx, dword ptr [ebp - 0x68] */
  16823 L_3803202F:
  16824     eax = edx; /* 0x3803202F: mov eax, edx */
  16825 L_38032031:
  16826     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38032031: fcos  */
  16827 L_38032033:
  16828     MEM32(ebp + (-0x64)) = edx; /* 0x38032033: mov dword ptr [ebp - 0x64], edx */
  16829 L_38032036:
  16830     MEM32(ebp + (-0x50)) = edi; /* 0x38032036: mov dword ptr [ebp - 0x50], edi */
  16831 L_38032039:
  16832     MEM32(ebp + (-0x4C)) = ebx; /* 0x38032039: mov dword ptr [ebp - 0x4c], ebx */
  16833 L_3803203C:
  16834     MEM32(ebp + (-0x48)) = eax; /* 0x3803203C: mov dword ptr [ebp - 0x48], eax */
  16835 L_3803203F:
  16836     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3803203F: fstp dword ptr [ebp - 0x60] */
  16837 L_38032042:
  16838     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38032042: call dword ptr [0x3804e4c8] */
  16839     RECOMP_FLAGS_IN();
  16840 L_38032048:
  16841     edx = MEM32(eax); /* 0x38032048: mov edx, dword ptr [eax] */
  16842 L_3803204A:
  16843     MEM32(ebp + (-0x2C)) = edx; /* 0x3803204A: mov dword ptr [ebp - 0x2c], edx */
  16844 L_3803204D:
  16845     ecx = MEM32(eax + 0x4); /* 0x3803204D: mov ecx, dword ptr [eax + 4] */
  16846 L_38032050:
  16847     MEM32(ebp + (-0x28)) = ecx; /* 0x38032050: mov dword ptr [ebp - 0x28], ecx */
  16848 L_38032053:
  16849     edx = MEM32(eax + 0x8); /* 0x38032053: mov edx, dword ptr [eax + 8] */
  16850 L_38032056:
  16851     eax = MEM32(ebp + (-0x64)); /* 0x38032056: mov eax, dword ptr [ebp - 0x64] */
  16852 L_38032059:
  16853     ecx = ebp + (-0x2C); /* 0x38032059: lea ecx, [ebp - 0x2c] */
  16854 L_3803205C:
  16855     PUSH32(esp, ecx); /* 0x3803205C: push ecx */
  16856 L_3803205D:
  16857     ecx = ebp + (-0x5C); /* 0x3803205D: lea ecx, [ebp - 0x5c] */
  16858 L_38032060:
  16859     MEM32(ebp + (-0x24)) = edx; /* 0x38032060: mov dword ptr [ebp - 0x24], edx */
  16860 L_38032063:
  16861     MEM32(ebp + (-0x5C)) = edi; /* 0x38032063: mov dword ptr [ebp - 0x5c], edi */
  16862 L_38032066:
  16863     MEM32(ebp + (-0x58)) = ebx; /* 0x38032066: mov dword ptr [ebp - 0x58], ebx */
  16864 L_38032069:
  16865     MEM32(ebp + (-0x54)) = eax; /* 0x38032069: mov dword ptr [ebp - 0x54], eax */
  16866 L_3803206C:
  16867     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3803206C: call dword ptr [0x3804e4c8] */
  16868     RECOMP_FLAGS_IN();
  16869 L_38032072:
  16870     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38032072: fld dword ptr [ebp - 0x60] */
  16871 L_38032075:
  16872     edx = MEM32(eax); /* 0x38032075: mov edx, dword ptr [eax] */
  16873 L_38032077:
  16874     _st[0] += _st[0]; /* 0x38032077: fadd st(0), st(0) */
  16875 L_38032079:
  16876     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38032079: fld dword ptr [ebp - 0x2c] */
  16877 L_3803207C:
  16878     MEM32(ebp + (-0x44)) = edx; /* 0x3803207C: mov dword ptr [ebp - 0x44], edx */
  16879 L_3803207F:
  16880     ecx = MEM32(eax + 0x4); /* 0x3803207F: mov ecx, dword ptr [eax + 4] */
  16881 L_38032082:
  16882     _st[0] *= _st[1]; /* 0x38032082: fmul st(1) */
  16883 L_38032084:
  16884     MEM32(ebp + (-0x40)) = ecx; /* 0x38032084: mov dword ptr [ebp - 0x40], ecx */
  16885 L_38032087:
  16886     edx = MEM32(eax + 0x8); /* 0x38032087: mov edx, dword ptr [eax + 8] */
  16887 L_3803208A:
  16888     PUSH32(esp, 0x40000000u); /* 0x3803208A: push 0x40000000 */
  16889 L_3803208F:
  16890     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3803208F: fstp dword ptr [ebp - 0x2c] */
  16891 L_38032092:
  16892     ecx = ebp + (-0x44); /* 0x38032092: lea ecx, [ebp - 0x44] */
  16893 L_38032095:
  16894     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38032095: fld dword ptr [ebp - 0x28] */
  16895 L_38032098:
  16896     MEM32(ebp + (-0x3C)) = edx; /* 0x38032098: mov dword ptr [ebp - 0x3c], edx */
  16897 L_3803209B:
  16898     _st[0] *= _st[1]; /* 0x3803209B: fmul st(1) */
  16899 L_3803209D:
  16900     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3803209D: fstp dword ptr [ebp - 0x28] */
  16901 L_380320A0:
  16902     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x380320A0: fld dword ptr [ebp - 0x24] */
  16903 L_380320A3:
  16904     _st[0] *= _st[1]; /* 0x380320A3: fmul st(1) */
  16905 L_380320A5:
  16906     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380320A5: fstp dword ptr [ebp - 0x24] */
  16907 L_380320A8:
  16908     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380320A8: fstp st(0) */
  16909 L_380320AA:
  16910     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380320AA: call dword ptr [0x3804e4d4] */
  16911     RECOMP_FLAGS_IN();
  16912 L_380320B0:
  16913     eax = ebp + (-0x2C); /* 0x380320B0: lea eax, [ebp - 0x2c] */
  16914 L_380320B3:
  16915     PUSH32(esp, eax); /* 0x380320B3: push eax */
  16916 L_380320B4:
  16917     ecx = ebp + (-0x20); /* 0x380320B4: lea ecx, [ebp - 0x20] */
  16918 L_380320B7:
  16919     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380320B7: call dword ptr [0x3804e4e8] */
  16920     RECOMP_FLAGS_IN();
  16921 L_380320BD:
  16922     ecx = ebp + (-0x44); /* 0x380320BD: lea ecx, [ebp - 0x44] */
  16923 L_380320C0:
  16924     PUSH32(esp, ecx); /* 0x380320C0: push ecx */
  16925 L_380320C1:
  16926     ecx = ebp + (-0x20); /* 0x380320C1: lea ecx, [ebp - 0x20] */
  16927 L_380320C4:
  16928     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380320C4: call dword ptr [0x3804e4e8] */
  16929     RECOMP_FLAGS_IN();
  16930 L_380320CA:
  16931     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380320CA: fld dword ptr [ebp - 0x20] */
  16932 L_380320CD:
  16933     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x380320CD: fadd dword ptr [esi + 0x54] */
  16934 L_380320D0:
  16935     ecx = MEM32(ebp + 0xC); /* 0x380320D0: mov ecx, dword ptr [ebp + 0xc] */
  16936 L_380320D3:
  16937     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380320D3: fstp dword ptr [ebp - 0x20] */
  16938 L_380320D6:
  16939     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x380320D6: fld dword ptr [ebp - 0x1c] */
  16940 L_380320D9:
  16941     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x380320D9: fadd dword ptr [esi + 0x58] */
  16942 L_380320DC:
  16943     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x380320DC: fstp dword ptr [ebp - 0x1c] */
  16944 L_380320DF:
  16945     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380320DF: fld dword ptr [ebp - 0x18] */
  16946 L_380320E2:
  16947     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x380320E2: fadd dword ptr [esi + 0x5c] */
  16948 L_380320E5:
  16949     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380320E5: fstp dword ptr [ebp - 0x18] */
  16950 L_380320E8:
  16951     fp_push(*(float*)&MEM32(ecx)); /* 0x380320E8: fld dword ptr [ecx] */
  16952 L_380320EA:
  16953     _st[0] -= (double)*(float*)ADDR(0x3804F6A8); /* 0x380320EA: fsub dword ptr [0x3804f6a8] */
  16954 L_380320F0:
  16955     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x20))); /* 0x380320F0: fcomp dword ptr [ebp - 0x20] */
  16956     fp_pop();
  16957 L_380320F3:
  16958     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380320F3: fnstsw ax */
  16959 L_380320F5:
  16960     /* test HI8(eax), 0x41u */ /* 0x380320F5: test ah, 0x41 */
  16961     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  16962     _cf = 0;
  16963     _flag_k = FK_NARROW(FK_TEST, 24);
  16964 L_380320F8:
  16965     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38032132; /* 0x380320F8: je 0x38032132 */
  16966 L_380320FA:
  16967     fp_push(*(float*)&MEM32(ecx)); /* 0x380320FA: fld dword ptr [ecx] */
  16968 L_380320FC:
  16969     _st[0] += (double)*(float*)ADDR(0x3804F6A8); /* 0x380320FC: fadd dword ptr [0x3804f6a8] */
  16970 L_38032102:
  16971     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x20))); /* 0x38032102: fcomp dword ptr [ebp - 0x20] */
  16972     fp_pop();
  16973 L_38032105:
  16974     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032105: fnstsw ax */
  16975 L_38032107:
  16976     /* test HI8(eax), 0x41u */ /* 0x38032107: test ah, 0x41 */
  16977     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  16978     _cf = 0;
  16979     _flag_k = FK_NARROW(FK_TEST, 24);
  16980 L_3803210A:
  16981     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38032132; /* 0x3803210A: jne 0x38032132 */
  16982 L_3803210C:
  16983     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x3803210C: fld dword ptr [ecx + 8] */
  16984 L_3803210F:
  16985     _st[0] -= (double)*(float*)ADDR(0x3804F6A8); /* 0x3803210F: fsub dword ptr [0x3804f6a8] */
  16986 L_38032115:
  16987     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x38032115: fcomp dword ptr [ebp - 0x18] */
  16988     fp_pop();
  16989 L_38032118:
  16990     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032118: fnstsw ax */
  16991 L_3803211A:
  16992     /* test HI8(eax), 0x41u */ /* 0x3803211A: test ah, 0x41 */
  16993     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  16994     _cf = 0;
  16995     _flag_k = FK_NARROW(FK_TEST, 24);
  16996 L_3803211D:
  16997     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38032132; /* 0x3803211D: je 0x38032132 */
  16998 L_3803211F:
  16999     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x3803211F: fld dword ptr [ecx + 8] */
  17000 L_38032122:
  17001     _st[0] += (double)*(float*)ADDR(0x3804F6A8); /* 0x38032122: fadd dword ptr [0x3804f6a8] */
  17002 L_38032128:
  17003     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x38032128: fcomp dword ptr [ebp - 0x18] */
  17004     fp_pop();
  17005 L_3803212B:
  17006     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803212B: fnstsw ax */
  17007 L_3803212D:
  17008     /* test HI8(eax), 0x41u */ /* 0x3803212D: test ah, 0x41 */
  17009     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  17010     _cf = 0;
  17011     _flag_k = FK_NARROW(FK_TEST, 24);
  17012 L_38032130:
  17013     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38032147; /* 0x38032130: je 0x38032147 */
  17014 L_38032132:
  17015     eax = MEM32(ebp + (-0x8)); /* 0x38032132: mov eax, dword ptr [ebp - 8] */
  17016 L_38032135:
  17017     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17018     edx = 0; /* 0x38032135: xor edx, edx */
  17019     _cf = 0;
  17020     _flag_k = FK_TEST;
  17021 L_38032137:
  17022     SET_LO16(edx, MEM16(esi + 0x7C)); /* 0x38032137: mov dx, word ptr [esi + 0x7c] */
  17023 L_3803213B:
  17024     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  17025     eax = eax + 1; /* 0x3803213B: inc eax */
  17026     _flag_k = FK_INC;
  17027 L_3803213C:
  17028     MEM32(ebp + (-0x8)) = eax; /* 0x3803213C: mov dword ptr [ebp - 8], eax */
  17029 L_3803213F:
  17030     /* cmp eax, edx */ /* 0x3803213F: cmp eax, edx */
  17031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  17032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17033     _flag_k = FK_CMP;
  17034 L_38032141:
  17035     RECOMP_BACKEDGE();
  17036     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38031EE3; /* 0x38032141: jl 0x38031ee3 */
  17037 L_38032147:
  17038     edi = POP32_VAL(esp); /* 0x38032147: pop edi */
  17039 L_38032148:
  17040     esi = POP32_VAL(esp); /* 0x38032148: pop esi */
  17041 L_38032149:
  17042     ebx = POP32_VAL(esp); /* 0x38032149: pop ebx */
  17043 L_3803214A:
  17044     esp = ebp; /* 0x3803214A: mov esp, ebp */
  17045 L_3803214C:
  17046     ebp = POP32_VAL(esp); /* 0x3803214C: pop ebp */
  17047 L_3803214D:
  17048     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3803214D: ret 0xc */
  17049   _ljump:
  17050     switch (_itail_tgt) {
  17051       case 0x38031E10u: goto L_38031E10;
  17052       case 0x38031E11u: goto L_38031E11;
  17053       case 0x38031E13u: goto L_38031E13;
  17054       case 0x38031E16u: goto L_38031E16;
  17055       case 0x38031E19u: goto L_38031E19;
  17056       case 0x38031E1Au: goto L_38031E1A;
  17057       case 0x38031E1Cu: goto L_38031E1C;
  17058       case 0x38031E1Du: goto L_38031E1D;
  17059       case 0x38031E1Fu: goto L_38031E1F;
  17060       case 0x38031E23u: goto L_38031E23;
  17061       case 0x38031E25u: goto L_38031E25;
  17062       case 0x38031E29u: goto L_38031E29;
  17063       case 0x38031E2Bu: goto L_38031E2B;
  17064       case 0x38031E2Cu: goto L_38031E2C;
  17065       case 0x38031E2Eu: goto L_38031E2E;
  17066       case 0x38031E31u: goto L_38031E31;
  17067       case 0x38031E34u: goto L_38031E34;
  17068       case 0x38031E3Au: goto L_38031E3A;
  17069       case 0x38031E40u: goto L_38031E40;
  17070       case 0x38031E42u: goto L_38031E42;
  17071       case 0x38031E45u: goto L_38031E45;
  17072       case 0x38031E4Bu: goto L_38031E4B;
  17073       case 0x38031E4Du: goto L_38031E4D;
  17074       case 0x38031E51u: goto L_38031E51;
  17075       case 0x38031E53u: goto L_38031E53;
  17076       case 0x38031E56u: goto L_38031E56;
  17077       case 0x38031E57u: goto L_38031E57;
  17078       case 0x38031E5Cu: goto L_38031E5C;
  17079       case 0x38031E5Fu: goto L_38031E5F;
  17080       case 0x38031E61u: goto L_38031E61;
  17081       case 0x38031E63u: goto L_38031E63;
  17082       case 0x38031E64u: goto L_38031E64;
  17083       case 0x38031E66u: goto L_38031E66;
  17084       case 0x38031E68u: goto L_38031E68;
  17085       case 0x38031E6Bu: goto L_38031E6B;
  17086       case 0x38031E6Eu: goto L_38031E6E;
  17087       case 0x38031E71u: goto L_38031E71;
  17088       case 0x38031E74u: goto L_38031E74;
  17089       case 0x38031E76u: goto L_38031E76;
  17090       case 0x38031E79u: goto L_38031E79;
  17091       case 0x38031E7Au: goto L_38031E7A;
  17092       case 0x38031E7Cu: goto L_38031E7C;
  17093       case 0x38031E7Eu: goto L_38031E7E;
  17094       case 0x38031E80u: goto L_38031E80;
  17095       case 0x38031E82u: goto L_38031E82;
  17096       case 0x38031E86u: goto L_38031E86;
  17097       case 0x38031E8Cu: goto L_38031E8C;
  17098       case 0x38031E8Eu: goto L_38031E8E;
  17099       case 0x38031E95u: goto L_38031E95;
  17100       case 0x38031E98u: goto L_38031E98;
  17101       case 0x38031E9Bu: goto L_38031E9B;
  17102       case 0x38031E9Eu: goto L_38031E9E;
  17103       case 0x38031EA0u: goto L_38031EA0;
  17104       case 0x38031EA6u: goto L_38031EA6;
  17105       case 0x38031EA8u: goto L_38031EA8;
  17106       case 0x38031EAAu: goto L_38031EAA;
  17107       case 0x38031EADu: goto L_38031EAD;
  17108       case 0x38031EAFu: goto L_38031EAF;
  17109       case 0x38031EB2u: goto L_38031EB2;
  17110       case 0x38031EB5u: goto L_38031EB5;
  17111       case 0x38031EB8u: goto L_38031EB8;
  17112       case 0x38031EBEu: goto L_38031EBE;
  17113       case 0x38031EC6u: goto L_38031EC6;
  17114       case 0x38031EC8u: goto L_38031EC8;
  17115       case 0x38031ECCu: goto L_38031ECC;
  17116       case 0x38031ECDu: goto L_38031ECD;
  17117       case 0x38031ED0u: goto L_38031ED0;
  17118       case 0x38031ED2u: goto L_38031ED2;
  17119       case 0x38031ED4u: goto L_38031ED4;
  17120       case 0x38031ED6u: goto L_38031ED6;
  17121       case 0x38031EDAu: goto L_38031EDA;
  17122       case 0x38031EDDu: goto L_38031EDD;
  17123       case 0x38031EE3u: goto L_38031EE3;
  17124       case 0x38031EE6u: goto L_38031EE6;
  17125       case 0x38031EECu: goto L_38031EEC;
  17126       case 0x38031EF1u: goto L_38031EF1;
  17127       case 0x38031EF4u: goto L_38031EF4;
  17128       case 0x38031EF9u: goto L_38031EF9;
  17129       case 0x38031EFCu: goto L_38031EFC;
  17130       case 0x38031EFFu: goto L_38031EFF;
  17131       case 0x38031F01u: goto L_38031F01;
  17132       case 0x38031F07u: goto L_38031F07;
  17133       case 0x38031F09u: goto L_38031F09;
  17134       case 0x38031F0Au: goto L_38031F0A;
  17135       case 0x38031F0Du: goto L_38031F0D;
  17136       case 0x38031F0Fu: goto L_38031F0F;
  17137       case 0x38031F12u: goto L_38031F12;
  17138       case 0x38031F13u: goto L_38031F13;
  17139       case 0x38031F16u: goto L_38031F16;
  17140       case 0x38031F19u: goto L_38031F19;
  17141       case 0x38031F1Cu: goto L_38031F1C;
  17142       case 0x38031F1Fu: goto L_38031F1F;
  17143       case 0x38031F22u: goto L_38031F22;
  17144       case 0x38031F25u: goto L_38031F25;
  17145       case 0x38031F27u: goto L_38031F27;
  17146       case 0x38031F2Au: goto L_38031F2A;
  17147       case 0x38031F2Du: goto L_38031F2D;
  17148       case 0x38031F30u: goto L_38031F30;
  17149       case 0x38031F33u: goto L_38031F33;
  17150       case 0x38031F36u: goto L_38031F36;
  17151       case 0x38031F39u: goto L_38031F39;
  17152       case 0x38031F3Cu: goto L_38031F3C;
  17153       case 0x38031F3Fu: goto L_38031F3F;
  17154       case 0x38031F42u: goto L_38031F42;
  17155       case 0x38031F45u: goto L_38031F45;
  17156       case 0x38031F48u: goto L_38031F48;
  17157       case 0x38031F4Bu: goto L_38031F4B;
  17158       case 0x38031F4Eu: goto L_38031F4E;
  17159       case 0x38031F51u: goto L_38031F51;
  17160       case 0x38031F54u: goto L_38031F54;
  17161       case 0x38031F57u: goto L_38031F57;
  17162       case 0x38031F5Au: goto L_38031F5A;
  17163       case 0x38031F5Du: goto L_38031F5D;
  17164       case 0x38031F5Fu: goto L_38031F5F;
  17165       case 0x38031F61u: goto L_38031F61;
  17166       case 0x38031F64u: goto L_38031F64;
  17167       case 0x38031F66u: goto L_38031F66;
  17168       case 0x38031F69u: goto L_38031F69;
  17169       case 0x38031F6Bu: goto L_38031F6B;
  17170       case 0x38031F6Eu: goto L_38031F6E;
  17171       case 0x38031F71u: goto L_38031F71;
  17172       case 0x38031F74u: goto L_38031F74;
  17173       case 0x38031F77u: goto L_38031F77;
  17174       case 0x38031F79u: goto L_38031F79;
  17175       case 0x38031F80u: goto L_38031F80;
  17176       case 0x38031F83u: goto L_38031F83;
  17177       case 0x38031F89u: goto L_38031F89;
  17178       case 0x38031F8Cu: goto L_38031F8C;
  17179       case 0x38031F8Eu: goto L_38031F8E;
  17180       case 0x38031F91u: goto L_38031F91;
  17181       case 0x38031F97u: goto L_38031F97;
  17182       case 0x38031F99u: goto L_38031F99;
  17183       case 0x38031F9Cu: goto L_38031F9C;
  17184       case 0x38031FA2u: goto L_38031FA2;
  17185       case 0x38031FA5u: goto L_38031FA5;
  17186       case 0x38031FA7u: goto L_38031FA7;
  17187       case 0x38031FAAu: goto L_38031FAA;
  17188       case 0x38031FB0u: goto L_38031FB0;
  17189       case 0x38031FB3u: goto L_38031FB3;
  17190       case 0x38031FB6u: goto L_38031FB6;
  17191       case 0x38031FB9u: goto L_38031FB9;
  17192       case 0x38031FC0u: goto L_38031FC0;
  17193       case 0x38031FC3u: goto L_38031FC3;
  17194       case 0x38031FC9u: goto L_38031FC9;
  17195       case 0x38031FCFu: goto L_38031FCF;
  17196       case 0x38031FD1u: goto L_38031FD1;
  17197       case 0x38031FD4u: goto L_38031FD4;
  17198       case 0x38031FD6u: goto L_38031FD6;
  17199       case 0x38031FDCu: goto L_38031FDC;
  17200       case 0x38031FDEu: goto L_38031FDE;
  17201       case 0x38031FE1u: goto L_38031FE1;
  17202       case 0x38031FE3u: goto L_38031FE3;
  17203       case 0x38031FE9u: goto L_38031FE9;
  17204       case 0x38031FEBu: goto L_38031FEB;
  17205       case 0x38031FF1u: goto L_38031FF1;
  17206       case 0x38031FF4u: goto L_38031FF4;
  17207       case 0x38031FF7u: goto L_38031FF7;
  17208       case 0x38031FFAu: goto L_38031FFA;
  17209       case 0x38032000u: goto L_38032000;
  17210       case 0x38032003u: goto L_38032003;
  17211       case 0x38032006u: goto L_38032006;
  17212       case 0x3803200Cu: goto L_3803200C;
  17213       case 0x3803200Eu: goto L_3803200E;
  17214       case 0x38032011u: goto L_38032011;
  17215       case 0x38032013u: goto L_38032013;
  17216       case 0x38032014u: goto L_38032014;
  17217       case 0x38032017u: goto L_38032017;
  17218       case 0x3803201Du: goto L_3803201D;
  17219       case 0x38032020u: goto L_38032020;
  17220       case 0x38032023u: goto L_38032023;
  17221       case 0x38032026u: goto L_38032026;
  17222       case 0x38032029u: goto L_38032029;
  17223       case 0x3803202Cu: goto L_3803202C;
  17224       case 0x3803202Fu: goto L_3803202F;
  17225       case 0x38032031u: goto L_38032031;
  17226       case 0x38032033u: goto L_38032033;
  17227       case 0x38032036u: goto L_38032036;
  17228       case 0x38032039u: goto L_38032039;
  17229       case 0x3803203Cu: goto L_3803203C;
  17230       case 0x3803203Fu: goto L_3803203F;
  17231       case 0x38032042u: goto L_38032042;
  17232       case 0x38032048u: goto L_38032048;
  17233       case 0x3803204Au: goto L_3803204A;
  17234       case 0x3803204Du: goto L_3803204D;
  17235       case 0x38032050u: goto L_38032050;
  17236       case 0x38032053u: goto L_38032053;
  17237       case 0x38032056u: goto L_38032056;
  17238       case 0x38032059u: goto L_38032059;
  17239       case 0x3803205Cu: goto L_3803205C;
  17240       case 0x3803205Du: goto L_3803205D;
  17241       case 0x38032060u: goto L_38032060;
  17242       case 0x38032063u: goto L_38032063;
  17243       case 0x38032066u: goto L_38032066;
  17244       case 0x38032069u: goto L_38032069;
  17245       case 0x3803206Cu: goto L_3803206C;
  17246       case 0x38032072u: goto L_38032072;
  17247       case 0x38032075u: goto L_38032075;
  17248       case 0x38032077u: goto L_38032077;
  17249       case 0x38032079u: goto L_38032079;
  17250       case 0x3803207Cu: goto L_3803207C;
  17251       case 0x3803207Fu: goto L_3803207F;
  17252       case 0x38032082u: goto L_38032082;
  17253       case 0x38032084u: goto L_38032084;
  17254       case 0x38032087u: goto L_38032087;
  17255       case 0x3803208Au: goto L_3803208A;
  17256       case 0x3803208Fu: goto L_3803208F;
  17257       case 0x38032092u: goto L_38032092;
  17258       case 0x38032095u: goto L_38032095;
  17259       case 0x38032098u: goto L_38032098;
  17260       case 0x3803209Bu: goto L_3803209B;
  17261       case 0x3803209Du: goto L_3803209D;
  17262       case 0x380320A0u: goto L_380320A0;
  17263       case 0x380320A3u: goto L_380320A3;
  17264       case 0x380320A5u: goto L_380320A5;
  17265       case 0x380320A8u: goto L_380320A8;
  17266       case 0x380320AAu: goto L_380320AA;
  17267       case 0x380320B0u: goto L_380320B0;
  17268       case 0x380320B3u: goto L_380320B3;
  17269       case 0x380320B4u: goto L_380320B4;
  17270       case 0x380320B7u: goto L_380320B7;
  17271       case 0x380320BDu: goto L_380320BD;
  17272       case 0x380320C0u: goto L_380320C0;
  17273       case 0x380320C1u: goto L_380320C1;
  17274       case 0x380320C4u: goto L_380320C4;
  17275       case 0x380320CAu: goto L_380320CA;
  17276       case 0x380320CDu: goto L_380320CD;
  17277       case 0x380320D0u: goto L_380320D0;
  17278       case 0x380320D3u: goto L_380320D3;
  17279       case 0x380320D6u: goto L_380320D6;
  17280       case 0x380320D9u: goto L_380320D9;
  17281       case 0x380320DCu: goto L_380320DC;
  17282       case 0x380320DFu: goto L_380320DF;
  17283       case 0x380320E2u: goto L_380320E2;
  17284       case 0x380320E5u: goto L_380320E5;
  17285       case 0x380320E8u: goto L_380320E8;
  17286       case 0x380320EAu: goto L_380320EA;
  17287       case 0x380320F0u: goto L_380320F0;
  17288       case 0x380320F3u: goto L_380320F3;
  17289       case 0x380320F5u: goto L_380320F5;
  17290       case 0x380320F8u: goto L_380320F8;
  17291       case 0x380320FAu: goto L_380320FA;
  17292       case 0x380320FCu: goto L_380320FC;
  17293       case 0x38032102u: goto L_38032102;
  17294       case 0x38032105u: goto L_38032105;
  17295       case 0x38032107u: goto L_38032107;
  17296       case 0x3803210Au: goto L_3803210A;
  17297       case 0x3803210Cu: goto L_3803210C;
  17298       case 0x3803210Fu: goto L_3803210F;
  17299       case 0x38032115u: goto L_38032115;
  17300       case 0x38032118u: goto L_38032118;
  17301       case 0x3803211Au: goto L_3803211A;
  17302       case 0x3803211Du: goto L_3803211D;
  17303       case 0x3803211Fu: goto L_3803211F;
  17304       case 0x38032122u: goto L_38032122;
  17305       case 0x38032128u: goto L_38032128;
  17306       case 0x3803212Bu: goto L_3803212B;
  17307       case 0x3803212Du: goto L_3803212D;
  17308       case 0x38032130u: goto L_38032130;
  17309       case 0x38032132u: goto L_38032132;
  17310       case 0x38032135u: goto L_38032135;
  17311       case 0x38032137u: goto L_38032137;
  17312       case 0x3803213Bu: goto L_3803213B;
  17313       case 0x3803213Cu: goto L_3803213C;
  17314       case 0x3803213Fu: goto L_3803213F;
  17315       case 0x38032141u: goto L_38032141;
  17316       case 0x38032147u: goto L_38032147;
  17317       case 0x38032148u: goto L_38032148;
  17318       case 0x38032149u: goto L_38032149;
  17319       case 0x3803214Au: goto L_3803214A;
  17320       case 0x3803214Cu: goto L_3803214C;
  17321       case 0x3803214Du: goto L_3803214D;
  17322       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  17323     }
  17324     RECOMP_REGS_OUT();
  17325 }
  17326 
  17327 void sub_38032160(void) {
  17328     int _fpu_cmp = 0;
  17329     uint32_t _cf = 0;
  17330     int _df = 1;
  17331     uint32_t _flag_k = FK_NONE;
  17332     uint32_t _flag_a = 0, _flag_b = 0;
  17333     uint32_t _itail_tgt = 0;
  17334     RECOMP_REGS_LOCALS
  17335     RECOMP_ENTER(0x38032160u);
  17336 
  17337 L_38032160:
  17338     PUSH32(esp, ebp); /* 0x38032160: push ebp */
  17339 L_38032161:
  17340     ebp = esp; /* 0x38032161: mov ebp, esp */
  17341 L_38032163:
  17342     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x6Cu);
  17343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17344     esp = esp - 0x6Cu; /* 0x38032163: sub esp, 0x6c */
  17345     _flag_k = FK_CMP;
  17346 L_38032166:
  17347     edx = MEM32(ebp + 0x8); /* 0x38032166: mov edx, dword ptr [ebp + 8] */
  17348 L_38032169:
  17349     PUSH32(esp, ebx); /* 0x38032169: push ebx */
  17350 L_3803216A:
  17351     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17352     eax = 0; /* 0x3803216A: xor eax, eax */
  17353     _cf = 0;
  17354     _flag_k = FK_TEST;
  17355 L_3803216C:
  17356     PUSH32(esp, esi); /* 0x3803216C: push esi */
  17357 L_3803216D:
  17358     esi = ecx; /* 0x3803216D: mov esi, ecx */
  17359 L_3803216F:
  17360     SET_LO16(eax, MEM16(esi + 0x50)); /* 0x3803216F: mov ax, word ptr [esi + 0x50] */
  17361 L_38032173:
  17362     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17363     ecx = 0; /* 0x38032173: xor ecx, ecx */
  17364     _cf = 0;
  17365     _flag_k = FK_TEST;
  17366 L_38032175:
  17367     SET_LO16(ecx, MEM16(esi + 0x4C)); /* 0x38032175: mov cx, word ptr [esi + 0x4c] */
  17368 L_38032179:
  17369     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17370     ebx = 0; /* 0x38032179: xor ebx, ebx */
  17371     _cf = 0;
  17372     _flag_k = FK_TEST;
  17373 L_3803217B:
  17374     PUSH32(esp, edi); /* 0x3803217B: push edi */
  17375 L_3803217C:
  17376     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  17377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17378     eax = eax - ecx; /* 0x3803217C: sub eax, ecx */
  17379     _flag_k = FK_CMP;
  17380 L_3803217E:
  17381     MEM32(ebp + (-0xC)) = eax; /* 0x3803217E: mov dword ptr [ebp - 0xc], eax */
  17382 L_38032181:
  17383     eax = MEM32(edx + 0xC); /* 0x38032181: mov eax, dword ptr [edx + 0xc] */
  17384 L_38032184:
  17385     fp_push(*(float*)&MEM32(eax + 0x8264)); /* 0x38032184: fld dword ptr [eax + 0x8264] */
  17386 L_3803218A:
  17387     eax = MEM32(esi + 0xB0); /* 0x3803218A: mov eax, dword ptr [esi + 0xb0] */
  17388 L_38032190:
  17389     /* cmp eax, ebx */ /* 0x38032190: cmp eax, ebx */
  17390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  17391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17392     _flag_k = FK_CMP;
  17393 L_38032192:
  17394     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x38032192: fstp dword ptr [ebp + 8] */
  17395 L_38032195:
  17396     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38032226; /* 0x38032195: jne 0x38032226 */
  17397 L_3803219B:
  17398     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17399     edi = 0; /* 0x3803219B: xor edi, edi */
  17400     _cf = 0;
  17401     _flag_k = FK_TEST;
  17402 L_3803219D:
  17403     SET_LO16(edi, MEM16(esi + 0x7C)); /* 0x3803219D: mov di, word ptr [esi + 0x7c] */
  17404 L_380321A1:
  17405     ecx = edi; /* 0x380321A1: mov ecx, edi */
  17406 L_380321A3:
  17407     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x380321A3: shl ecx, 4 */
  17408     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17409     ecx = ecx << 4u; /* 0x380321A3: shl ecx, 4 */
  17410 L_380321A6:
  17411     PUSH32(esp, ecx); /* 0x380321A6: push ecx */
  17412 L_380321A7:
  17413     RECOMP_ICALL(0x3804B676u); /* 0x380321A7: call 0x3804b676 */ /* not lifted */
  17414     RECOMP_FLAGS_IN();
  17415 L_380321AC:
  17416     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17417     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17418     esp = esp + 4; /* 0x380321AC: add esp, 4 */
  17419     _flag_k = FK_ADD;
  17420 L_380321AF:
  17421     /* cmp eax, ebx */ /* 0x380321AF: cmp eax, ebx */
  17422     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  17423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17424     _flag_k = FK_CMP;
  17425 L_380321B1:
  17426     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380321CE; /* 0x380321B1: je 0x380321ce */
  17427 L_380321B3:
  17428     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  17429     edi = edi - 1; /* 0x380321B3: dec edi */
  17430     _flag_k = FK_DEC;
  17431 L_380321B4:
  17432     /* cmp edi, ebx */ /* 0x380321B4: cmp edi, ebx */
  17433     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  17434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17435     _flag_k = FK_CMP;
  17436 L_380321B6:
  17437     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_380321D0; /* 0x380321B6: jl 0x380321d0 */
  17438 L_380321B8:
  17439     ecx = eax + 0x8; /* 0x380321B8: lea ecx, [eax + 8] */
  17440 L_380321BB:
  17441     edx = edi + 0x1; /* 0x380321BB: lea edx, [edi + 1] */
  17442 L_380321BE:
  17443     MEM32(ecx + (-0x8)) = ebx; /* 0x380321BE: mov dword ptr [ecx - 8], ebx */
  17444 L_380321C1:
  17445     MEM32(ecx + (-0x4)) = ebx; /* 0x380321C1: mov dword ptr [ecx - 4], ebx */
  17446 L_380321C4:
  17447     MEM32(ecx) = ebx; /* 0x380321C4: mov dword ptr [ecx], ebx */
  17448 L_380321C6:
  17449     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
  17450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17451     ecx = ecx + 0x10u; /* 0x380321C6: add ecx, 0x10 */
  17452     _flag_k = FK_ADD;
  17453 L_380321C9:
  17454     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  17455     edx = edx - 1; /* 0x380321C9: dec edx */
  17456     _flag_k = FK_DEC;
  17457 L_380321CA:
  17458     RECOMP_BACKEDGE();
  17459     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_380321BE; /* 0x380321CA: jne 0x380321be */
  17460 L_380321CC:
  17461     goto L_380321D0; /* 0x380321CC: jmp 0x380321d0 */
  17462 L_380321CE:
  17463     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17464     eax = 0; /* 0x380321CE: xor eax, eax */
  17465     _cf = 0;
  17466     _flag_k = FK_TEST;
  17467 L_380321D0:
  17468     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17469     ecx = 0; /* 0x380321D0: xor ecx, ecx */
  17470     _cf = 0;
  17471     _flag_k = FK_TEST;
  17472 L_380321D2:
  17473     /* cmp MEM16(esi + 0x7C), LO16(ebx) */ /* 0x380321D2: cmp word ptr [esi + 0x7c], bx */
  17474     _flag_a = (uint32_t)(MEM16(esi + 0x7C)) << 16; _flag_b = (uint32_t)(LO16(ebx)) << 16;
  17475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17476     _flag_k = FK_NARROW(FK_CMP, 16);
  17477 L_380321D6:
  17478     MEM32(esi + 0xB0) = eax; /* 0x380321D6: mov dword ptr [esi + 0xb0], eax */
  17479 L_380321DC:
  17480     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_38032226; /* 0x380321DC: jbe 0x38032226 */
  17481 L_380321DE:
  17482     MEM32(ebp + (-0x34)) = 0xBF800000u; /* 0x380321DE: mov dword ptr [ebp - 0x34], 0xbf800000 */
  17483 L_380321E5:
  17484     edx = MEM32(ebp + (-0x34)); /* 0x380321E5: mov edx, dword ptr [ebp - 0x34] */
  17485 L_380321E8:
  17486     MEM32(ebp + (-0x38)) = ecx; /* 0x380321E8: mov dword ptr [ebp - 0x38], ecx */
  17487 L_380321EB:
  17488     MEM32(ebp + (-0x30)) = ecx; /* 0x380321EB: mov dword ptr [ebp - 0x30], ecx */
  17489 L_380321EE:
  17490     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17491     eax = 0; /* 0x380321EE: xor eax, eax */
  17492     _cf = 0;
  17493     _flag_k = FK_TEST;
  17494 L_380321F0:
  17495     ebx = MEM32(esi + 0xB0); /* 0x380321F0: mov ebx, dword ptr [esi + 0xb0] */
  17496 L_380321F6:
  17497     edi = eax; /* 0x380321F6: mov edi, eax */
  17498 L_380321F8:
  17499     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  17500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17501     edi = edi + ebx; /* 0x380321F8: add edi, ebx */
  17502     _flag_k = FK_ADD;
  17503 L_380321FA:
  17504     ebx = MEM32(ebp + (-0x38)); /* 0x380321FA: mov ebx, dword ptr [ebp - 0x38] */
  17505 L_380321FD:
  17506     MEM32(edi) = ebx; /* 0x380321FD: mov dword ptr [edi], ebx */
  17507 L_380321FF:
  17508     ebx = MEM32(ebp + (-0x30)); /* 0x380321FF: mov ebx, dword ptr [ebp - 0x30] */
  17509 L_38032202:
  17510     MEM32(edi + 0x4) = edx; /* 0x38032202: mov dword ptr [edi + 4], edx */
  17511 L_38032205:
  17512     MEM32(edi + 0x8) = ebx; /* 0x38032205: mov dword ptr [edi + 8], ebx */
  17513 L_38032208:
  17514     edi = MEM32(esi + 0xB0); /* 0x38032208: mov edi, dword ptr [esi + 0xb0] */
  17515 L_3803220E:
  17516     MEM32(eax + edi + 0xC) = 0x3F800000u; /* 0x3803220E: mov dword ptr [eax + edi + 0xc], 0x3f800000 */
  17517 L_38032216:
  17518     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17519     edi = 0; /* 0x38032216: xor edi, edi */
  17520     _cf = 0;
  17521     _flag_k = FK_TEST;
  17522 L_38032218:
  17523     SET_LO16(edi, MEM16(esi + 0x7C)); /* 0x38032218: mov di, word ptr [esi + 0x7c] */
  17524 L_3803221C:
  17525     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  17526     ecx = ecx + 1; /* 0x3803221C: inc ecx */
  17527     _flag_k = FK_INC;
  17528 L_3803221D:
  17529     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
  17530     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17531     eax = eax + 0x10u; /* 0x3803221D: add eax, 0x10 */
  17532     _flag_k = FK_ADD;
  17533 L_38032220:
  17534     /* cmp ecx, edi */ /* 0x38032220: cmp ecx, edi */
  17535     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  17536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17537     _flag_k = FK_CMP;
  17538 L_38032222:
  17539     RECOMP_BACKEDGE();
  17540     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_380321F0; /* 0x38032222: jl 0x380321f0 */
  17541 L_38032224:
  17542     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17543     ebx = 0; /* 0x38032224: xor ebx, ebx */
  17544     _cf = 0;
  17545     _flag_k = FK_TEST;
  17546 L_38032226:
  17547     /* cmp MEM16(esi + 0x7C), LO16(ebx) */ /* 0x38032226: cmp word ptr [esi + 0x7c], bx */
  17548     _flag_a = (uint32_t)(MEM16(esi + 0x7C)) << 16; _flag_b = (uint32_t)(LO16(ebx)) << 16;
  17549     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17550     _flag_k = FK_NARROW(FK_CMP, 16);
  17551 L_3803222A:
  17552     MEM32(ebp + (-0x4)) = ebx; /* 0x3803222A: mov dword ptr [ebp - 4], ebx */
  17553 L_3803222D:
  17554     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_38032497; /* 0x3803222D: jbe 0x38032497 */
  17555 L_38032233:
  17556     eax = MEM32(ebp + (-0x4)); /* 0x38032233: mov eax, dword ptr [ebp - 4] */
  17557 L_38032236:
  17558     edx = MEM32(esi + 0x80); /* 0x38032236: mov edx, dword ptr [esi + 0x80] */
  17559 L_3803223C:
  17560     SET_LO16(eax, MEM16(edx + eax * 4 + 0x2)); /* 0x3803223C: mov ax, word ptr [edx + eax*4 + 2] */
  17561 L_38032241:
  17562     MEM32(ebp + (-0x8)) = eax; /* 0x38032241: mov dword ptr [ebp - 8], eax */
  17563 L_38032244:
  17564     if (2u) _cf = (((MEM16(ebp + (-0x8))) >> 1) & 1u); /* 0x38032244: shr word ptr [ebp - 8], 2 */
  17565     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((MEM16(ebp + (-0x8)) >> 2u)) << 16), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17566     MEM16(ebp + (-0x8)) = (uint16_t)(MEM16(ebp + (-0x8)) >> 2u); /* 0x38032244: shr word ptr [ebp - 8], 2 */
  17567 L_38032249:
  17568     ecx = MEM32(ebp + (-0x8)); /* 0x38032249: mov ecx, dword ptr [ebp - 8] */
  17569 L_3803224C:
  17570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  17571     eax = eax & 3; /* 0x3803224C: and eax, 3 */
  17572     _cf = 0;
  17573     _flag_k = FK_TEST;
  17574 L_3803224F:
  17575     edi = eax; /* 0x3803224F: mov edi, eax */
  17576 L_38032251:
  17577     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
  17578     ecx = ecx & 0xFFFFu; /* 0x38032251: and ecx, 0xffff */
  17579     _cf = 0;
  17580     _flag_k = FK_TEST;
  17581 L_38032257:
  17582     eax = ecx; /* 0x38032257: mov eax, ecx */
  17583 L_38032259:
  17584     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38032259: cdq  */
  17585 L_3803225A:
  17586     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0xC)); /* 0x3803225A: idiv dword ptr [ebp - 0xc] */
  17587       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  17588       else { eax = 0; edx = 0; } }
  17589 L_3803225D:
  17590     eax = ecx; /* 0x3803225D: mov eax, ecx */
  17591 L_3803225F:
  17592     MEM32(ebp + (-0x8)) = edx; /* 0x3803225F: mov dword ptr [ebp - 8], edx */
  17593 L_38032262:
  17594     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38032262: cdq  */
  17595 L_38032263:
  17596     fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x38032263: fild dword ptr [ebp - 8] */
  17597 L_38032266:
  17598     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0xC)); /* 0x38032266: idiv dword ptr [ebp - 0xc] */
  17599       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  17600       else { eax = 0; edx = 0; } }
  17601 L_38032269:
  17602     /* cmp edi, 3 */ /* 0x38032269: cmp edi, 3 */
  17603     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
  17604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17605     _flag_k = FK_CMP;
  17606 L_3803226C:
  17607     MEM32(ebp + (-0x8)) = eax; /* 0x3803226C: mov dword ptr [ebp - 8], eax */
  17608 L_3803226F:
  17609     fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x3803226F: fild dword ptr [ebp - 8] */
  17610 L_38032272:
  17611     eax = esi + 0x6C; /* 0x38032272: lea eax, [esi + 0x6c] */
  17612 L_38032275:
  17613     ecx = MEM32(eax); /* 0x38032275: mov ecx, dword ptr [eax] */
  17614 L_38032277:
  17615     edx = MEM32(eax + 0x4); /* 0x38032277: mov edx, dword ptr [eax + 4] */
  17616 L_3803227A:
  17617     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803227A: fstp dword ptr [ebp - 0x18] */
  17618 L_3803227D:
  17619     eax = MEM32(eax + 0x8); /* 0x3803227D: mov eax, dword ptr [eax + 8] */
  17620 L_38032280:
  17621     MEM32(ebp + (-0x38)) = ecx; /* 0x38032280: mov dword ptr [ebp - 0x38], ecx */
  17622 L_38032283:
  17623     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38032283: fmul dword ptr [ebp + 8] */
  17624 L_38032286:
  17625     MEM32(ebp + (-0x34)) = edx; /* 0x38032286: mov dword ptr [ebp - 0x34], edx */
  17626 L_38032289:
  17627     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38032289: fld dword ptr [ebp - 0x18] */
  17628 L_3803228C:
  17629     MEM32(ebp + (-0x30)) = eax; /* 0x3803228C: mov dword ptr [ebp - 0x30], eax */
  17630 L_3803228F:
  17631     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3803228F: fmul dword ptr [ebp + 8] */
  17632 L_38032292:
  17633     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38032292: fstp dword ptr [ebp - 0x18] */
  17634 L_38032295:
  17635     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38032295: fld dword ptr [ebp - 0x38] */
  17636 L_38032298:
  17637     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38032298: fmul dword ptr [ebp + 8] */
  17638 L_3803229B:
  17639     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3803229B: fld dword ptr [ebp - 0x34] */
  17640 L_3803229E:
  17641     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3803229E: fmul dword ptr [ebp + 8] */
  17642 L_380322A1:
  17643     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x380322A1: fstp dword ptr [ebp - 0x34] */
  17644 L_380322A4:
  17645     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380322A4: fld dword ptr [ebp - 0x30] */
  17646 L_380322A7:
  17647     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x380322A7: fmul dword ptr [ebp + 8] */
  17648 L_380322AA:
  17649     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380322AA: fstp dword ptr [ebp - 0x30] */
  17650 L_380322AD:
  17651     fp_xch(1); /* 0x380322AD: fxch st(1) */
  17652 L_380322AF:
  17653     _st[0] -= _st[1]; /* 0x380322AF: fsub st(1) */
  17654 L_380322B1:
  17655     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380322B1: fstp dword ptr [ebp - 0x20] */
  17656 L_380322B4:
  17657     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380322B4: fstp st(0) */
  17658 L_380322B6:
  17659     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x380322B6: fld dword ptr [ebp - 0x34] */
  17660 L_380322B9:
  17661     _st[0] = -_st[0]; /* 0x380322B9: fchs  */
  17662 L_380322BB:
  17663     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x380322BB: fstp dword ptr [ebp - 0x1c] */
  17664 L_380322BE:
  17665     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380322BE: fld dword ptr [ebp - 0x18] */
  17666 L_380322C1:
  17667     _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x380322C1: fsub dword ptr [ebp - 0x30] */
  17668 L_380322C4:
  17669     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380322C4: fstp dword ptr [ebp - 0x18] */
  17670 L_380322C7:
  17671     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_38032303; /* 0x380322C7: ja 0x38032303 */
  17672 L_380322C9:
  17673     { _itail_tgt = (uint32_t)(MEM32(edi * 4 + 0x380324D8)); goto _ljump; }
  17674 L_380322D0:
  17675     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380322D0: fld dword ptr [ebp - 0x18] */
  17676 L_380322D3:
  17677     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380322D3: fadd dword ptr [0x3804f690] */
  17678 L_380322D9:
  17679     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380322D9: fstp dword ptr [ebp - 0x18] */
  17680 L_380322DC:
  17681     goto L_38032303; /* 0x380322DC: jmp 0x38032303 */
  17682 L_380322DE:
  17683     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380322DE: fld dword ptr [ebp - 0x20] */
  17684 L_380322E1:
  17685     _st[0] += (double)*(float*)ADDR(0x3804F690); /* 0x380322E1: fadd dword ptr [0x3804f690] */
  17686 L_380322E7:
  17687     goto L_38032300; /* 0x380322E7: jmp 0x38032300 */
  17688 L_380322E9:
  17689     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380322E9: fld dword ptr [ebp - 0x18] */
  17690 L_380322EC:
  17691     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380322EC: fsub dword ptr [0x3804f690] */
  17692 L_380322F2:
  17693     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380322F2: fstp dword ptr [ebp - 0x18] */
  17694 L_380322F5:
  17695     goto L_38032303; /* 0x380322F5: jmp 0x38032303 */
  17696 L_380322F7:
  17697     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x380322F7: fld dword ptr [ebp - 0x20] */
  17698 L_380322FA:
  17699     _st[0] -= (double)*(float*)ADDR(0x3804F690); /* 0x380322FA: fsub dword ptr [0x3804f690] */
  17700 L_38032300:
  17701     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38032300: fstp dword ptr [ebp - 0x20] */
  17702 L_38032303:
  17703     ecx = MEM32(esi + 0x44); /* 0x38032303: mov ecx, dword ptr [esi + 0x44] */
  17704 L_38032306:
  17705     MEM32(ebp + (-0x14)) = ecx; /* 0x38032306: mov dword ptr [ebp - 0x14], ecx */
  17706 L_38032309:
  17707     MEM32(ebp + (-0x10)) = 0; /* 0x38032309: mov dword ptr [ebp - 0x10], 0 */
  17708 L_38032310:
  17709     fp_push_i64((int64_t)MEM64(ebp + (-0x14))); /* 0x38032310: fild qword ptr [ebp - 0x14] */
  17710 L_38032313:
  17711     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38032313: fmul dword ptr [0x3804eac0] */
  17712 L_38032319:
  17713     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38032319: fcom dword ptr [0x3804e8e4] */
  17714 L_3803231F:
  17715     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803231F: fnstsw ax */
  17716 L_38032321:
  17717     /* test HI8(eax), 1 */ /* 0x38032321: test ah, 1 */
  17718     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  17719     _cf = 0;
  17720     _flag_k = FK_NARROW(FK_TEST, 24);
  17721 L_38032324:
  17722     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3803233B; /* 0x38032324: jne 0x3803233b */
  17723 L_38032326:
  17724     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38032326: fcom qword ptr [0x3804e8f8] */
  17725 L_3803232C:
  17726     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803232C: fnstsw ax */
  17727 L_3803232E:
  17728     /* test HI8(eax), 1 */ /* 0x3803232E: test ah, 1 */
  17729     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  17730     _cf = 0;
  17731     _flag_k = FK_NARROW(FK_TEST, 24);
  17732 L_38032331:
  17733     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3803233B; /* 0x38032331: je 0x3803233b */
  17734 L_38032333:
  17735     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38032333: fmul dword ptr [0x3804e8bc] */
  17736 L_38032339:
  17737     goto L_3803235C; /* 0x38032339: jmp 0x3803235c */
  17738 L_3803233B:
  17739     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3803233B: fmul dword ptr [0x3804e8f4] */
  17740 L_38032341:
  17741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  17742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17743     esp = esp - 8; /* 0x38032341: sub esp, 8 */
  17744     _flag_k = FK_CMP;
  17745 L_38032344:
  17746     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032344: fst dword ptr [ebp - 8] */
  17747 L_38032347:
  17748     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38032347: fstp qword ptr [esp] */
  17749 L_3803234A:
  17750     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3803234A: call dword ptr [0x3804e0ac] */
  17751     RECOMP_FLAGS_IN();
  17752 L_38032350:
  17753     _st[0] = (double)*(float*)ADDR(ebp + (-0x8)) - _st[0]; /* 0x38032350: fsubr dword ptr [ebp - 8] */
  17754 L_38032353:
  17755     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  17756     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17757     esp = esp + 8; /* 0x38032353: add esp, 8 */
  17758     _flag_k = FK_ADD;
  17759 L_38032356:
  17760     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38032356: fmul dword ptr [0x3804e8f0] */
  17761 L_3803235C:
  17762     fp_push(_st[0]); /* 0x3803235C: fld st(0) */
  17763 L_3803235E:
  17764     ecx = ebp + (-0x20); /* 0x3803235E: lea ecx, [ebp - 0x20] */
  17765 L_38032361:
  17766     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38032361: fsin  */
  17767 L_38032363:
  17768     PUSH32(esp, ecx); /* 0x38032363: push ecx */
  17769 L_38032364:
  17770     ecx = ebp + (-0x50); /* 0x38032364: lea ecx, [ebp - 0x50] */
  17771 L_38032367:
  17772     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38032367: fld dword ptr [0x3804e8e4] */
  17773 L_3803236D:
  17774     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803236D: fst dword ptr [ebp - 8] */
  17775 L_38032370:
  17776     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x38032370: fstp dword ptr [ebp - 0x6c] */
  17777 L_38032373:
  17778     edx = MEM32(ebp + (-0x8)); /* 0x38032373: mov edx, dword ptr [ebp - 8] */
  17779 L_38032376:
  17780     edi = MEM32(ebp + (-0x6C)); /* 0x38032376: mov edi, dword ptr [ebp - 0x6c] */
  17781 L_38032379:
  17782     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38032379: fstp dword ptr [ebp - 0x68] */
  17783 L_3803237C:
  17784     ebx = MEM32(ebp + (-0x68)); /* 0x3803237C: mov ebx, dword ptr [ebp - 0x68] */
  17785 L_3803237F:
  17786     eax = edx; /* 0x3803237F: mov eax, edx */
  17787 L_38032381:
  17788     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38032381: fcos  */
  17789 L_38032383:
  17790     MEM32(ebp + (-0x64)) = edx; /* 0x38032383: mov dword ptr [ebp - 0x64], edx */
  17791 L_38032386:
  17792     MEM32(ebp + (-0x50)) = edi; /* 0x38032386: mov dword ptr [ebp - 0x50], edi */
  17793 L_38032389:
  17794     MEM32(ebp + (-0x4C)) = ebx; /* 0x38032389: mov dword ptr [ebp - 0x4c], ebx */
  17795 L_3803238C:
  17796     MEM32(ebp + (-0x48)) = eax; /* 0x3803238C: mov dword ptr [ebp - 0x48], eax */
  17797 L_3803238F:
  17798     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3803238F: fstp dword ptr [ebp - 0x60] */
  17799 L_38032392:
  17800     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38032392: call dword ptr [0x3804e4c8] */
  17801     RECOMP_FLAGS_IN();
  17802 L_38032398:
  17803     edx = MEM32(eax); /* 0x38032398: mov edx, dword ptr [eax] */
  17804 L_3803239A:
  17805     MEM32(ebp + (-0x2C)) = edx; /* 0x3803239A: mov dword ptr [ebp - 0x2c], edx */
  17806 L_3803239D:
  17807     ecx = MEM32(eax + 0x4); /* 0x3803239D: mov ecx, dword ptr [eax + 4] */
  17808 L_380323A0:
  17809     MEM32(ebp + (-0x28)) = ecx; /* 0x380323A0: mov dword ptr [ebp - 0x28], ecx */
  17810 L_380323A3:
  17811     edx = MEM32(eax + 0x8); /* 0x380323A3: mov edx, dword ptr [eax + 8] */
  17812 L_380323A6:
  17813     eax = MEM32(ebp + (-0x64)); /* 0x380323A6: mov eax, dword ptr [ebp - 0x64] */
  17814 L_380323A9:
  17815     ecx = ebp + (-0x2C); /* 0x380323A9: lea ecx, [ebp - 0x2c] */
  17816 L_380323AC:
  17817     PUSH32(esp, ecx); /* 0x380323AC: push ecx */
  17818 L_380323AD:
  17819     ecx = ebp + (-0x5C); /* 0x380323AD: lea ecx, [ebp - 0x5c] */
  17820 L_380323B0:
  17821     MEM32(ebp + (-0x24)) = edx; /* 0x380323B0: mov dword ptr [ebp - 0x24], edx */
  17822 L_380323B3:
  17823     MEM32(ebp + (-0x5C)) = edi; /* 0x380323B3: mov dword ptr [ebp - 0x5c], edi */
  17824 L_380323B6:
  17825     MEM32(ebp + (-0x58)) = ebx; /* 0x380323B6: mov dword ptr [ebp - 0x58], ebx */
  17826 L_380323B9:
  17827     MEM32(ebp + (-0x54)) = eax; /* 0x380323B9: mov dword ptr [ebp - 0x54], eax */
  17828 L_380323BC:
  17829     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x380323BC: call dword ptr [0x3804e4c8] */
  17830     RECOMP_FLAGS_IN();
  17831 L_380323C2:
  17832     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x380323C2: fld dword ptr [ebp - 0x60] */
  17833 L_380323C5:
  17834     edx = MEM32(eax); /* 0x380323C5: mov edx, dword ptr [eax] */
  17835 L_380323C7:
  17836     _st[0] += _st[0]; /* 0x380323C7: fadd st(0), st(0) */
  17837 L_380323C9:
  17838     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x380323C9: fld dword ptr [ebp - 0x2c] */
  17839 L_380323CC:
  17840     MEM32(ebp + (-0x44)) = edx; /* 0x380323CC: mov dword ptr [ebp - 0x44], edx */
  17841 L_380323CF:
  17842     ecx = MEM32(eax + 0x4); /* 0x380323CF: mov ecx, dword ptr [eax + 4] */
  17843 L_380323D2:
  17844     _st[0] *= _st[1]; /* 0x380323D2: fmul st(1) */
  17845 L_380323D4:
  17846     MEM32(ebp + (-0x40)) = ecx; /* 0x380323D4: mov dword ptr [ebp - 0x40], ecx */
  17847 L_380323D7:
  17848     edx = MEM32(eax + 0x8); /* 0x380323D7: mov edx, dword ptr [eax + 8] */
  17849 L_380323DA:
  17850     PUSH32(esp, 0x40000000u); /* 0x380323DA: push 0x40000000 */
  17851 L_380323DF:
  17852     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x380323DF: fstp dword ptr [ebp - 0x2c] */
  17853 L_380323E2:
  17854     ecx = ebp + (-0x44); /* 0x380323E2: lea ecx, [ebp - 0x44] */
  17855 L_380323E5:
  17856     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380323E5: fld dword ptr [ebp - 0x28] */
  17857 L_380323E8:
  17858     MEM32(ebp + (-0x3C)) = edx; /* 0x380323E8: mov dword ptr [ebp - 0x3c], edx */
  17859 L_380323EB:
  17860     _st[0] *= _st[1]; /* 0x380323EB: fmul st(1) */
  17861 L_380323ED:
  17862     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380323ED: fstp dword ptr [ebp - 0x28] */
  17863 L_380323F0:
  17864     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x380323F0: fld dword ptr [ebp - 0x24] */
  17865 L_380323F3:
  17866     _st[0] *= _st[1]; /* 0x380323F3: fmul st(1) */
  17867 L_380323F5:
  17868     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380323F5: fstp dword ptr [ebp - 0x24] */
  17869 L_380323F8:
  17870     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380323F8: fstp st(0) */
  17871 L_380323FA:
  17872     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380323FA: call dword ptr [0x3804e4d4] */
  17873     RECOMP_FLAGS_IN();
  17874 L_38032400:
  17875     eax = ebp + (-0x2C); /* 0x38032400: lea eax, [ebp - 0x2c] */
  17876 L_38032403:
  17877     PUSH32(esp, eax); /* 0x38032403: push eax */
  17878 L_38032404:
  17879     ecx = ebp + (-0x20); /* 0x38032404: lea ecx, [ebp - 0x20] */
  17880 L_38032407:
  17881     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38032407: call dword ptr [0x3804e4e8] */
  17882     RECOMP_FLAGS_IN();
  17883 L_3803240D:
  17884     ecx = ebp + (-0x44); /* 0x3803240D: lea ecx, [ebp - 0x44] */
  17885 L_38032410:
  17886     PUSH32(esp, ecx); /* 0x38032410: push ecx */
  17887 L_38032411:
  17888     ecx = ebp + (-0x20); /* 0x38032411: lea ecx, [ebp - 0x20] */
  17889 L_38032414:
  17890     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38032414: call dword ptr [0x3804e4e8] */
  17891     RECOMP_FLAGS_IN();
  17892 L_3803241A:
  17893     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3803241A: fld dword ptr [ebp - 0x20] */
  17894 L_3803241D:
  17895     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x3803241D: fadd dword ptr [esi + 0x54] */
  17896 L_38032420:
  17897     ecx = MEM32(ebp + 0xC); /* 0x38032420: mov ecx, dword ptr [ebp + 0xc] */
  17898 L_38032423:
  17899     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38032423: fstp dword ptr [ebp - 0x20] */
  17900 L_38032426:
  17901     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38032426: fld dword ptr [ebp - 0x1c] */
  17902 L_38032429:
  17903     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38032429: fadd dword ptr [esi + 0x58] */
  17904 L_3803242C:
  17905     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803242C: fstp dword ptr [ebp - 0x1c] */
  17906 L_3803242F:
  17907     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803242F: fld dword ptr [ebp - 0x18] */
  17908 L_38032432:
  17909     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38032432: fadd dword ptr [esi + 0x5c] */
  17910 L_38032435:
  17911     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38032435: fstp dword ptr [ebp - 0x18] */
  17912 L_38032438:
  17913     fp_push(*(float*)&MEM32(ecx)); /* 0x38032438: fld dword ptr [ecx] */
  17914 L_3803243A:
  17915     _st[0] -= (double)*(float*)ADDR(0x3804F6A8); /* 0x3803243A: fsub dword ptr [0x3804f6a8] */
  17916 L_38032440:
  17917     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x20))); /* 0x38032440: fcomp dword ptr [ebp - 0x20] */
  17918     fp_pop();
  17919 L_38032443:
  17920     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032443: fnstsw ax */
  17921 L_38032445:
  17922     /* test HI8(eax), 0x41u */ /* 0x38032445: test ah, 0x41 */
  17923     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  17924     _cf = 0;
  17925     _flag_k = FK_NARROW(FK_TEST, 24);
  17926 L_38032448:
  17927     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38032482; /* 0x38032448: je 0x38032482 */
  17928 L_3803244A:
  17929     fp_push(*(float*)&MEM32(ecx)); /* 0x3803244A: fld dword ptr [ecx] */
  17930 L_3803244C:
  17931     _st[0] += (double)*(float*)ADDR(0x3804F6A8); /* 0x3803244C: fadd dword ptr [0x3804f6a8] */
  17932 L_38032452:
  17933     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x20))); /* 0x38032452: fcomp dword ptr [ebp - 0x20] */
  17934     fp_pop();
  17935 L_38032455:
  17936     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032455: fnstsw ax */
  17937 L_38032457:
  17938     /* test HI8(eax), 0x41u */ /* 0x38032457: test ah, 0x41 */
  17939     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  17940     _cf = 0;
  17941     _flag_k = FK_NARROW(FK_TEST, 24);
  17942 L_3803245A:
  17943     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_38032482; /* 0x3803245A: jne 0x38032482 */
  17944 L_3803245C:
  17945     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x3803245C: fld dword ptr [ecx + 8] */
  17946 L_3803245F:
  17947     _st[0] -= (double)*(float*)ADDR(0x3804F6A8); /* 0x3803245F: fsub dword ptr [0x3804f6a8] */
  17948 L_38032465:
  17949     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x38032465: fcomp dword ptr [ebp - 0x18] */
  17950     fp_pop();
  17951 L_38032468:
  17952     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032468: fnstsw ax */
  17953 L_3803246A:
  17954     /* test HI8(eax), 0x41u */ /* 0x3803246A: test ah, 0x41 */
  17955     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  17956     _cf = 0;
  17957     _flag_k = FK_NARROW(FK_TEST, 24);
  17958 L_3803246D:
  17959     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_38032482; /* 0x3803246D: je 0x38032482 */
  17960 L_3803246F:
  17961     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x3803246F: fld dword ptr [ecx + 8] */
  17962 L_38032472:
  17963     _st[0] += (double)*(float*)ADDR(0x3804F6A8); /* 0x38032472: fadd dword ptr [0x3804f6a8] */
  17964 L_38032478:
  17965     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x38032478: fcomp dword ptr [ebp - 0x18] */
  17966     fp_pop();
  17967 L_3803247B:
  17968     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803247B: fnstsw ax */
  17969 L_3803247D:
  17970     /* test HI8(eax), 0x41u */ /* 0x3803247D: test ah, 0x41 */
  17971     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  17972     _cf = 0;
  17973     _flag_k = FK_NARROW(FK_TEST, 24);
  17974 L_38032480:
  17975     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_380324B1; /* 0x38032480: je 0x380324b1 */
  17976 L_38032482:
  17977     eax = MEM32(ebp + (-0x4)); /* 0x38032482: mov eax, dword ptr [ebp - 4] */
  17978 L_38032485:
  17979     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17980     edx = 0; /* 0x38032485: xor edx, edx */
  17981     _cf = 0;
  17982     _flag_k = FK_TEST;
  17983 L_38032487:
  17984     SET_LO16(edx, MEM16(esi + 0x7C)); /* 0x38032487: mov dx, word ptr [esi + 0x7c] */
  17985 L_3803248B:
  17986     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  17987     eax = eax + 1; /* 0x3803248B: inc eax */
  17988     _flag_k = FK_INC;
  17989 L_3803248C:
  17990     MEM32(ebp + (-0x4)) = eax; /* 0x3803248C: mov dword ptr [ebp - 4], eax */
  17991 L_3803248F:
  17992     /* cmp eax, edx */ /* 0x3803248F: cmp eax, edx */
  17993     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  17994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17995     _flag_k = FK_CMP;
  17996 L_38032491:
  17997     RECOMP_BACKEDGE();
  17998     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_38032233; /* 0x38032491: jl 0x38032233 */
  17999 L_38032497:
  18000     eax = MEM32(ebp + 0x14); /* 0x38032497: mov eax, dword ptr [ebp + 0x14] */
  18001 L_3803249A:
  18002     ecx = MEM32(ebp + 0x18); /* 0x3803249A: mov ecx, dword ptr [ebp + 0x18] */
  18003 L_3803249D:
  18004     edi = POP32_VAL(esp); /* 0x3803249D: pop edi */
  18005 L_3803249E:
  18006     esi = POP32_VAL(esp); /* 0x3803249E: pop esi */
  18007 L_3803249F:
  18008     MEM32(eax) = 0xFFFFFFFFu; /* 0x3803249F: mov dword ptr [eax], 0xffffffff */
  18009 L_380324A5:
  18010     MEM16(ecx) = (uint16_t)(0xFFFFu); /* 0x380324A5: mov word ptr [ecx], 0xffff */
  18011 L_380324AA:
  18012     ebx = POP32_VAL(esp); /* 0x380324AA: pop ebx */
  18013 L_380324AB:
  18014     esp = ebp; /* 0x380324AB: mov esp, ebp */
  18015 L_380324AD:
  18016     ebp = POP32_VAL(esp); /* 0x380324AD: pop ebp */
  18017 L_380324AE:
  18018     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x380324AE: ret 0x14 */
  18019 L_380324B1:
  18020     eax = MEM32(esi + 0xC); /* 0x380324B1: mov eax, dword ptr [esi + 0xc] */
  18021 L_380324B4:
  18022     ecx = MEM32(ebp + 0x14); /* 0x380324B4: mov ecx, dword ptr [ebp + 0x14] */
  18023 L_380324B7:
  18024     MEM32(ecx) = eax; /* 0x380324B7: mov dword ptr [ecx], eax */
  18025 L_380324B9:
  18026     edx = MEM32(esi + 0x80); /* 0x380324B9: mov edx, dword ptr [esi + 0x80] */
  18027 L_380324BF:
  18028     eax = MEM32(ebp + (-0x4)); /* 0x380324BF: mov eax, dword ptr [ebp - 4] */
  18029 L_380324C2:
  18030     SET_LO16(ecx, MEM16(edx + eax * 4)); /* 0x380324C2: mov cx, word ptr [edx + eax*4] */
  18031 L_380324C6:
  18032     edx = MEM32(ebp + 0x18); /* 0x380324C6: mov edx, dword ptr [ebp + 0x18] */
  18033 L_380324C9:
  18034     edi = POP32_VAL(esp); /* 0x380324C9: pop edi */
  18035 L_380324CA:
  18036     esi = POP32_VAL(esp); /* 0x380324CA: pop esi */
  18037 L_380324CB:
  18038     MEM16(edx) = (uint16_t)(LO16(ecx)); /* 0x380324CB: mov word ptr [edx], cx */
  18039 L_380324CE:
  18040     ebx = POP32_VAL(esp); /* 0x380324CE: pop ebx */
  18041 L_380324CF:
  18042     esp = ebp; /* 0x380324CF: mov esp, ebp */
  18043 L_380324D1:
  18044     ebp = POP32_VAL(esp); /* 0x380324D1: pop ebp */
  18045 L_380324D2:
  18046     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x380324D2: ret 0x14 */
  18047   _ljump:
  18048     switch (_itail_tgt) {
  18049       case 0x38032160u: goto L_38032160;
  18050       case 0x38032161u: goto L_38032161;
  18051       case 0x38032163u: goto L_38032163;
  18052       case 0x38032166u: goto L_38032166;
  18053       case 0x38032169u: goto L_38032169;
  18054       case 0x3803216Au: goto L_3803216A;
  18055       case 0x3803216Cu: goto L_3803216C;
  18056       case 0x3803216Du: goto L_3803216D;
  18057       case 0x3803216Fu: goto L_3803216F;
  18058       case 0x38032173u: goto L_38032173;
  18059       case 0x38032175u: goto L_38032175;
  18060       case 0x38032179u: goto L_38032179;
  18061       case 0x3803217Bu: goto L_3803217B;
  18062       case 0x3803217Cu: goto L_3803217C;
  18063       case 0x3803217Eu: goto L_3803217E;
  18064       case 0x38032181u: goto L_38032181;
  18065       case 0x38032184u: goto L_38032184;
  18066       case 0x3803218Au: goto L_3803218A;
  18067       case 0x38032190u: goto L_38032190;
  18068       case 0x38032192u: goto L_38032192;
  18069       case 0x38032195u: goto L_38032195;
  18070       case 0x3803219Bu: goto L_3803219B;
  18071       case 0x3803219Du: goto L_3803219D;
  18072       case 0x380321A1u: goto L_380321A1;
  18073       case 0x380321A3u: goto L_380321A3;
  18074       case 0x380321A6u: goto L_380321A6;
  18075       case 0x380321A7u: goto L_380321A7;
  18076       case 0x380321ACu: goto L_380321AC;
  18077       case 0x380321AFu: goto L_380321AF;
  18078       case 0x380321B1u: goto L_380321B1;
  18079       case 0x380321B3u: goto L_380321B3;
  18080       case 0x380321B4u: goto L_380321B4;
  18081       case 0x380321B6u: goto L_380321B6;
  18082       case 0x380321B8u: goto L_380321B8;
  18083       case 0x380321BBu: goto L_380321BB;
  18084       case 0x380321BEu: goto L_380321BE;
  18085       case 0x380321C1u: goto L_380321C1;
  18086       case 0x380321C4u: goto L_380321C4;
  18087       case 0x380321C6u: goto L_380321C6;
  18088       case 0x380321C9u: goto L_380321C9;
  18089       case 0x380321CAu: goto L_380321CA;
  18090       case 0x380321CCu: goto L_380321CC;
  18091       case 0x380321CEu: goto L_380321CE;
  18092       case 0x380321D0u: goto L_380321D0;
  18093       case 0x380321D2u: goto L_380321D2;
  18094       case 0x380321D6u: goto L_380321D6;
  18095       case 0x380321DCu: goto L_380321DC;
  18096       case 0x380321DEu: goto L_380321DE;
  18097       case 0x380321E5u: goto L_380321E5;
  18098       case 0x380321E8u: goto L_380321E8;
  18099       case 0x380321EBu: goto L_380321EB;
  18100       case 0x380321EEu: goto L_380321EE;
  18101       case 0x380321F0u: goto L_380321F0;
  18102       case 0x380321F6u: goto L_380321F6;
  18103       case 0x380321F8u: goto L_380321F8;
  18104       case 0x380321FAu: goto L_380321FA;
  18105       case 0x380321FDu: goto L_380321FD;
  18106       case 0x380321FFu: goto L_380321FF;
  18107       case 0x38032202u: goto L_38032202;
  18108       case 0x38032205u: goto L_38032205;
  18109       case 0x38032208u: goto L_38032208;
  18110       case 0x3803220Eu: goto L_3803220E;
  18111       case 0x38032216u: goto L_38032216;
  18112       case 0x38032218u: goto L_38032218;
  18113       case 0x3803221Cu: goto L_3803221C;
  18114       case 0x3803221Du: goto L_3803221D;
  18115       case 0x38032220u: goto L_38032220;
  18116       case 0x38032222u: goto L_38032222;
  18117       case 0x38032224u: goto L_38032224;
  18118       case 0x38032226u: goto L_38032226;
  18119       case 0x3803222Au: goto L_3803222A;
  18120       case 0x3803222Du: goto L_3803222D;
  18121       case 0x38032233u: goto L_38032233;
  18122       case 0x38032236u: goto L_38032236;
  18123       case 0x3803223Cu: goto L_3803223C;
  18124       case 0x38032241u: goto L_38032241;
  18125       case 0x38032244u: goto L_38032244;
  18126       case 0x38032249u: goto L_38032249;
  18127       case 0x3803224Cu: goto L_3803224C;
  18128       case 0x3803224Fu: goto L_3803224F;
  18129       case 0x38032251u: goto L_38032251;
  18130       case 0x38032257u: goto L_38032257;
  18131       case 0x38032259u: goto L_38032259;
  18132       case 0x3803225Au: goto L_3803225A;
  18133       case 0x3803225Du: goto L_3803225D;
  18134       case 0x3803225Fu: goto L_3803225F;
  18135       case 0x38032262u: goto L_38032262;
  18136       case 0x38032263u: goto L_38032263;
  18137       case 0x38032266u: goto L_38032266;
  18138       case 0x38032269u: goto L_38032269;
  18139       case 0x3803226Cu: goto L_3803226C;
  18140       case 0x3803226Fu: goto L_3803226F;
  18141       case 0x38032272u: goto L_38032272;
  18142       case 0x38032275u: goto L_38032275;
  18143       case 0x38032277u: goto L_38032277;
  18144       case 0x3803227Au: goto L_3803227A;
  18145       case 0x3803227Du: goto L_3803227D;
  18146       case 0x38032280u: goto L_38032280;
  18147       case 0x38032283u: goto L_38032283;
  18148       case 0x38032286u: goto L_38032286;
  18149       case 0x38032289u: goto L_38032289;
  18150       case 0x3803228Cu: goto L_3803228C;
  18151       case 0x3803228Fu: goto L_3803228F;
  18152       case 0x38032292u: goto L_38032292;
  18153       case 0x38032295u: goto L_38032295;
  18154       case 0x38032298u: goto L_38032298;
  18155       case 0x3803229Bu: goto L_3803229B;
  18156       case 0x3803229Eu: goto L_3803229E;
  18157       case 0x380322A1u: goto L_380322A1;
  18158       case 0x380322A4u: goto L_380322A4;
  18159       case 0x380322A7u: goto L_380322A7;
  18160       case 0x380322AAu: goto L_380322AA;
  18161       case 0x380322ADu: goto L_380322AD;
  18162       case 0x380322AFu: goto L_380322AF;
  18163       case 0x380322B1u: goto L_380322B1;
  18164       case 0x380322B4u: goto L_380322B4;
  18165       case 0x380322B6u: goto L_380322B6;
  18166       case 0x380322B9u: goto L_380322B9;
  18167       case 0x380322BBu: goto L_380322BB;
  18168       case 0x380322BEu: goto L_380322BE;
  18169       case 0x380322C1u: goto L_380322C1;
  18170       case 0x380322C4u: goto L_380322C4;
  18171       case 0x380322C7u: goto L_380322C7;
  18172       case 0x380322C9u: goto L_380322C9;
  18173       case 0x380322D0u: goto L_380322D0;
  18174       case 0x380322D3u: goto L_380322D3;
  18175       case 0x380322D9u: goto L_380322D9;
  18176       case 0x380322DCu: goto L_380322DC;
  18177       case 0x380322DEu: goto L_380322DE;
  18178       case 0x380322E1u: goto L_380322E1;
  18179       case 0x380322E7u: goto L_380322E7;
  18180       case 0x380322E9u: goto L_380322E9;
  18181       case 0x380322ECu: goto L_380322EC;
  18182       case 0x380322F2u: goto L_380322F2;
  18183       case 0x380322F5u: goto L_380322F5;
  18184       case 0x380322F7u: goto L_380322F7;
  18185       case 0x380322FAu: goto L_380322FA;
  18186       case 0x38032300u: goto L_38032300;
  18187       case 0x38032303u: goto L_38032303;
  18188       case 0x38032306u: goto L_38032306;
  18189       case 0x38032309u: goto L_38032309;
  18190       case 0x38032310u: goto L_38032310;
  18191       case 0x38032313u: goto L_38032313;
  18192       case 0x38032319u: goto L_38032319;
  18193       case 0x3803231Fu: goto L_3803231F;
  18194       case 0x38032321u: goto L_38032321;
  18195       case 0x38032324u: goto L_38032324;
  18196       case 0x38032326u: goto L_38032326;
  18197       case 0x3803232Cu: goto L_3803232C;
  18198       case 0x3803232Eu: goto L_3803232E;
  18199       case 0x38032331u: goto L_38032331;
  18200       case 0x38032333u: goto L_38032333;
  18201       case 0x38032339u: goto L_38032339;
  18202       case 0x3803233Bu: goto L_3803233B;
  18203       case 0x38032341u: goto L_38032341;
  18204       case 0x38032344u: goto L_38032344;
  18205       case 0x38032347u: goto L_38032347;
  18206       case 0x3803234Au: goto L_3803234A;
  18207       case 0x38032350u: goto L_38032350;
  18208       case 0x38032353u: goto L_38032353;
  18209       case 0x38032356u: goto L_38032356;
  18210       case 0x3803235Cu: goto L_3803235C;
  18211       case 0x3803235Eu: goto L_3803235E;
  18212       case 0x38032361u: goto L_38032361;
  18213       case 0x38032363u: goto L_38032363;
  18214       case 0x38032364u: goto L_38032364;
  18215       case 0x38032367u: goto L_38032367;
  18216       case 0x3803236Du: goto L_3803236D;
  18217       case 0x38032370u: goto L_38032370;
  18218       case 0x38032373u: goto L_38032373;
  18219       case 0x38032376u: goto L_38032376;
  18220       case 0x38032379u: goto L_38032379;
  18221       case 0x3803237Cu: goto L_3803237C;
  18222       case 0x3803237Fu: goto L_3803237F;
  18223       case 0x38032381u: goto L_38032381;
  18224       case 0x38032383u: goto L_38032383;
  18225       case 0x38032386u: goto L_38032386;
  18226       case 0x38032389u: goto L_38032389;
  18227       case 0x3803238Cu: goto L_3803238C;
  18228       case 0x3803238Fu: goto L_3803238F;
  18229       case 0x38032392u: goto L_38032392;
  18230       case 0x38032398u: goto L_38032398;
  18231       case 0x3803239Au: goto L_3803239A;
  18232       case 0x3803239Du: goto L_3803239D;
  18233       case 0x380323A0u: goto L_380323A0;
  18234       case 0x380323A3u: goto L_380323A3;
  18235       case 0x380323A6u: goto L_380323A6;
  18236       case 0x380323A9u: goto L_380323A9;
  18237       case 0x380323ACu: goto L_380323AC;
  18238       case 0x380323ADu: goto L_380323AD;
  18239       case 0x380323B0u: goto L_380323B0;
  18240       case 0x380323B3u: goto L_380323B3;
  18241       case 0x380323B6u: goto L_380323B6;
  18242       case 0x380323B9u: goto L_380323B9;
  18243       case 0x380323BCu: goto L_380323BC;
  18244       case 0x380323C2u: goto L_380323C2;
  18245       case 0x380323C5u: goto L_380323C5;
  18246       case 0x380323C7u: goto L_380323C7;
  18247       case 0x380323C9u: goto L_380323C9;
  18248       case 0x380323CCu: goto L_380323CC;
  18249       case 0x380323CFu: goto L_380323CF;
  18250       case 0x380323D2u: goto L_380323D2;
  18251       case 0x380323D4u: goto L_380323D4;
  18252       case 0x380323D7u: goto L_380323D7;
  18253       case 0x380323DAu: goto L_380323DA;
  18254       case 0x380323DFu: goto L_380323DF;
  18255       case 0x380323E2u: goto L_380323E2;
  18256       case 0x380323E5u: goto L_380323E5;
  18257       case 0x380323E8u: goto L_380323E8;
  18258       case 0x380323EBu: goto L_380323EB;
  18259       case 0x380323EDu: goto L_380323ED;
  18260       case 0x380323F0u: goto L_380323F0;
  18261       case 0x380323F3u: goto L_380323F3;
  18262       case 0x380323F5u: goto L_380323F5;
  18263       case 0x380323F8u: goto L_380323F8;
  18264       case 0x380323FAu: goto L_380323FA;
  18265       case 0x38032400u: goto L_38032400;
  18266       case 0x38032403u: goto L_38032403;
  18267       case 0x38032404u: goto L_38032404;
  18268       case 0x38032407u: goto L_38032407;
  18269       case 0x3803240Du: goto L_3803240D;
  18270       case 0x38032410u: goto L_38032410;
  18271       case 0x38032411u: goto L_38032411;
  18272       case 0x38032414u: goto L_38032414;
  18273       case 0x3803241Au: goto L_3803241A;
  18274       case 0x3803241Du: goto L_3803241D;
  18275       case 0x38032420u: goto L_38032420;
  18276       case 0x38032423u: goto L_38032423;
  18277       case 0x38032426u: goto L_38032426;
  18278       case 0x38032429u: goto L_38032429;
  18279       case 0x3803242Cu: goto L_3803242C;
  18280       case 0x3803242Fu: goto L_3803242F;
  18281       case 0x38032432u: goto L_38032432;
  18282       case 0x38032435u: goto L_38032435;
  18283       case 0x38032438u: goto L_38032438;
  18284       case 0x3803243Au: goto L_3803243A;
  18285       case 0x38032440u: goto L_38032440;
  18286       case 0x38032443u: goto L_38032443;
  18287       case 0x38032445u: goto L_38032445;
  18288       case 0x38032448u: goto L_38032448;
  18289       case 0x3803244Au: goto L_3803244A;
  18290       case 0x3803244Cu: goto L_3803244C;
  18291       case 0x38032452u: goto L_38032452;
  18292       case 0x38032455u: goto L_38032455;
  18293       case 0x38032457u: goto L_38032457;
  18294       case 0x3803245Au: goto L_3803245A;
  18295       case 0x3803245Cu: goto L_3803245C;
  18296       case 0x3803245Fu: goto L_3803245F;
  18297       case 0x38032465u: goto L_38032465;
  18298       case 0x38032468u: goto L_38032468;
  18299       case 0x3803246Au: goto L_3803246A;
  18300       case 0x3803246Du: goto L_3803246D;
  18301       case 0x3803246Fu: goto L_3803246F;
  18302       case 0x38032472u: goto L_38032472;
  18303       case 0x38032478u: goto L_38032478;
  18304       case 0x3803247Bu: goto L_3803247B;
  18305       case 0x3803247Du: goto L_3803247D;
  18306       case 0x38032480u: goto L_38032480;
  18307       case 0x38032482u: goto L_38032482;
  18308       case 0x38032485u: goto L_38032485;
  18309       case 0x38032487u: goto L_38032487;
  18310       case 0x3803248Bu: goto L_3803248B;
  18311       case 0x3803248Cu: goto L_3803248C;
  18312       case 0x3803248Fu: goto L_3803248F;
  18313       case 0x38032491u: goto L_38032491;
  18314       case 0x38032497u: goto L_38032497;
  18315       case 0x3803249Au: goto L_3803249A;
  18316       case 0x3803249Du: goto L_3803249D;
  18317       case 0x3803249Eu: goto L_3803249E;
  18318       case 0x3803249Fu: goto L_3803249F;
  18319       case 0x380324A5u: goto L_380324A5;
  18320       case 0x380324AAu: goto L_380324AA;
  18321       case 0x380324ABu: goto L_380324AB;
  18322       case 0x380324ADu: goto L_380324AD;
  18323       case 0x380324AEu: goto L_380324AE;
  18324       case 0x380324B1u: goto L_380324B1;
  18325       case 0x380324B4u: goto L_380324B4;
  18326       case 0x380324B7u: goto L_380324B7;
  18327       case 0x380324B9u: goto L_380324B9;
  18328       case 0x380324BFu: goto L_380324BF;
  18329       case 0x380324C2u: goto L_380324C2;
  18330       case 0x380324C6u: goto L_380324C6;
  18331       case 0x380324C9u: goto L_380324C9;
  18332       case 0x380324CAu: goto L_380324CA;
  18333       case 0x380324CBu: goto L_380324CB;
  18334       case 0x380324CEu: goto L_380324CE;
  18335       case 0x380324CFu: goto L_380324CF;
  18336       case 0x380324D1u: goto L_380324D1;
  18337       case 0x380324D2u: goto L_380324D2;
  18338       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  18339     }
  18340     RECOMP_REGS_OUT();
  18341 }
  18342 
  18343 void sub_380324F0(void) {
  18344     int _fpu_cmp = 0;
  18345     uint32_t _cf = 0;
  18346     int _df = 1;
  18347     uint32_t _flag_k = FK_NONE;
  18348     uint32_t _flag_a = 0, _flag_b = 0;
  18349     uint32_t _itail_tgt = 0;
  18350     RECOMP_REGS_LOCALS
  18351     RECOMP_ENTER(0x380324F0u);
  18352 
  18353 L_380324F0:
  18354     PUSH32(esp, ebp); /* 0x380324F0: push ebp */
  18355     ebp = esp; /* 0x380324F1: mov ebp, esp */
  18356     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu);
  18357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18358     esp = esp - 0x5Cu; /* 0x380324F3: sub esp, 0x5c */
  18359     _flag_k = FK_CMP;
  18360     eax = MEM32(ebp + 0x8); /* 0x380324F6: mov eax, dword ptr [ebp + 8] */
  18361     edx = MEM32(ebp + 0xC); /* 0x380324F9: mov edx, dword ptr [ebp + 0xc] */
  18362     PUSH32(esp, esi); /* 0x380324FC: push esi */
  18363     esi = ecx; /* 0x380324FD: mov esi, ecx */
  18364     ecx = MEM32(eax + 0xC); /* 0x380324FF: mov ecx, dword ptr [eax + 0xc] */
  18365     fp_push(*(float*)&MEM32(ecx + 0x8264)); /* 0x38032502: fld dword ptr [ecx + 0x8264] */
  18366     eax = MEM32(edx); /* 0x38032508: mov eax, dword ptr [edx] */
  18367     ecx = MEM32(edx + 0x4); /* 0x3803250A: mov ecx, dword ptr [edx + 4] */
  18368     edx = MEM32(edx + 0x8); /* 0x3803250D: mov edx, dword ptr [edx + 8] */
  18369     MEM32(ebp + (-0xC)) = eax; /* 0x38032510: mov dword ptr [ebp - 0xc], eax */
  18370     eax = MEM32(esi + 0x44); /* 0x38032513: mov eax, dword ptr [esi + 0x44] */
  18371     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x38032516: fstp dword ptr [ebp + 8] */
  18372     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032519: fld dword ptr [ebp - 0xc] */
  18373     MEM32(ebp + (-0x8)) = ecx; /* 0x3803251C: mov dword ptr [ebp - 8], ecx */
  18374     _st[0] -= (double)*(float*)ADDR(esi + 0x54); /* 0x3803251F: fsub dword ptr [esi + 0x54] */
  18375     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x38032522: shl eax, 4 */
  18376     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18377     eax = eax << 4u; /* 0x38032522: shl eax, 4 */
  18378     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3806EEA0u);
  18379     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18380     eax = eax + 0x3806EEA0u; /* 0x38032525: add eax, 0x3806eea0 */
  18381     _flag_k = FK_ADD;
  18382     ecx = MEM32(eax); /* 0x3803252A: mov ecx, dword ptr [eax] */
  18383     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3803252C: fstp dword ptr [ebp - 0xc] */
  18384     MEM32(ebp + (-0x4)) = edx; /* 0x3803252F: mov dword ptr [ebp - 4], edx */
  18385     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38032532: fld dword ptr [ebp - 8] */
  18386     edx = MEM32(eax + 0x4); /* 0x38032535: mov edx, dword ptr [eax + 4] */
  18387     _st[0] -= (double)*(float*)ADDR(esi + 0x58); /* 0x38032538: fsub dword ptr [esi + 0x58] */
  18388     MEM32(ebp + (-0x4C)) = ecx; /* 0x3803253B: mov dword ptr [ebp - 0x4c], ecx */
  18389     ecx = MEM32(eax + 0x8); /* 0x3803253E: mov ecx, dword ptr [eax + 8] */
  18390     MEM32(ebp + (-0x48)) = edx; /* 0x38032541: mov dword ptr [ebp - 0x48], edx */
  18391     edx = MEM32(eax + 0xC); /* 0x38032544: mov edx, dword ptr [eax + 0xc] */
  18392     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032547: fstp dword ptr [ebp - 8] */
  18393     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3803254A: fld dword ptr [ebp - 4] */
  18394     MEM32(ebp + (-0x44)) = ecx; /* 0x3803254D: mov dword ptr [ebp - 0x44], ecx */
  18395     _st[0] -= (double)*(float*)ADDR(esi + 0x5C); /* 0x38032550: fsub dword ptr [esi + 0x5c] */
  18396     ecx = ebp + (-0x4C); /* 0x38032553: lea ecx, [ebp - 0x4c] */
  18397     MEM32(ebp + (-0x40)) = edx; /* 0x38032556: mov dword ptr [ebp - 0x40], edx */
  18398     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38032559: fstp dword ptr [ebp - 4] */
  18399     RECOMP_ICALL(MEM32(0x3804E4CC)); /* 0x3803255C: call dword ptr [0x3804e4cc] */
  18400     RECOMP_FLAGS_IN();
  18401     _st[0] = (double)*(float*)ADDR(0x3804E8CC) / _st[0]; /* 0x38032562: fdivr dword ptr [0x3804e8cc] */
  18402     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38032568: fld dword ptr [ebp - 0x4c] */
  18403     _st[0] *= _st[1]; /* 0x3803256B: fmul st(1) */
  18404     _st[0] = -_st[0]; /* 0x3803256D: fchs  */
  18405     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x3803256F: fstp dword ptr [ebp - 0x4c] */
  18406     eax = MEM32(ebp + (-0x4C)); /* 0x38032572: mov eax, dword ptr [ebp - 0x4c] */
  18407     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x38032575: fld dword ptr [ebp - 0x48] */
  18408     MEM32(ebp + (-0x5C)) = eax; /* 0x38032578: mov dword ptr [ebp - 0x5c], eax */
  18409     _st[0] *= _st[1]; /* 0x3803257B: fmul st(1) */
  18410     _st[0] = -_st[0]; /* 0x3803257D: fchs  */
  18411     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3803257F: fstp dword ptr [ebp - 0x48] */
  18412     ecx = MEM32(ebp + (-0x48)); /* 0x38032582: mov ecx, dword ptr [ebp - 0x48] */
  18413     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x38032585: fld dword ptr [ebp - 0x44] */
  18414     MEM32(ebp + (-0x58)) = ecx; /* 0x38032588: mov dword ptr [ebp - 0x58], ecx */
  18415     ecx = MEM32(ebp + (-0xC)); /* 0x3803258B: mov ecx, dword ptr [ebp - 0xc] */
  18416     _st[0] *= _st[1]; /* 0x3803258E: fmul st(1) */
  18417     MEM32(ebp + (-0x18)) = ecx; /* 0x38032590: mov dword ptr [ebp - 0x18], ecx */
  18418     ecx = ebp + (-0x18); /* 0x38032593: lea ecx, [ebp - 0x18] */
  18419     _st[0] = -_st[0]; /* 0x38032596: fchs  */
  18420     PUSH32(esp, ecx); /* 0x38032598: push ecx */
  18421     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x38032599: fstp dword ptr [ebp - 0x44] */
  18422     edx = MEM32(ebp + (-0x44)); /* 0x3803259C: mov edx, dword ptr [ebp - 0x44] */
  18423     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3803259F: fld dword ptr [ebp - 0x40] */
  18424     MEM32(ebp + (-0x54)) = edx; /* 0x380325A2: mov dword ptr [ebp - 0x54], edx */
  18425     edx = MEM32(ebp + (-0x8)); /* 0x380325A5: mov edx, dword ptr [ebp - 8] */
  18426     _st[0] *= _st[1]; /* 0x380325A8: fmul st(1) */
  18427     MEM32(ebp + (-0x14)) = edx; /* 0x380325AA: mov dword ptr [ebp - 0x14], edx */
  18428     edx = ebp + (-0x30); /* 0x380325AD: lea edx, [ebp - 0x30] */
  18429     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x380325B0: fstp dword ptr [ebp - 0x40] */
  18430     eax = MEM32(ebp + (-0x40)); /* 0x380325B3: mov eax, dword ptr [ebp - 0x40] */
  18431     MEM32(ebp + (-0x50)) = eax; /* 0x380325B6: mov dword ptr [ebp - 0x50], eax */
  18432     eax = MEM32(ebp + (-0x4)); /* 0x380325B9: mov eax, dword ptr [ebp - 4] */
  18433     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380325BC: fstp st(0) */
  18434     PUSH32(esp, edx); /* 0x380325BE: push edx */
  18435     ecx = ebp + (-0x5C); /* 0x380325BF: lea ecx, [ebp - 0x5c] */
  18436     MEM32(ebp + (-0x10)) = eax; /* 0x380325C2: mov dword ptr [ebp - 0x10], eax */
  18437     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380325C5: call dword ptr [0x3804e4fc] */
  18438     RECOMP_FLAGS_IN();
  18439     ecx = MEM32(eax); /* 0x380325CB: mov ecx, dword ptr [eax] */
  18440     MEM32(ebp + (-0xC)) = ecx; /* 0x380325CD: mov dword ptr [ebp - 0xc], ecx */
  18441     edx = MEM32(eax + 0x4); /* 0x380325D0: mov edx, dword ptr [eax + 4] */
  18442     MEM32(ebp + (-0x8)) = edx; /* 0x380325D3: mov dword ptr [ebp - 8], edx */
  18443     eax = MEM32(eax + 0x8); /* 0x380325D6: mov eax, dword ptr [eax + 8] */
  18444     ecx = ebp + (-0xC); /* 0x380325D9: lea ecx, [ebp - 0xc] */
  18445     MEM32(ebp + (-0x4)) = eax; /* 0x380325DC: mov dword ptr [ebp - 4], eax */
  18446     PUSH32(esp, ecx); /* 0x380325DF: push ecx */
  18447     edx = ebp + (-0x3C); /* 0x380325E0: lea edx, [ebp - 0x3c] */
  18448     PUSH32(esp, edx); /* 0x380325E3: push edx */
  18449     ecx = ebp + (-0x5C); /* 0x380325E4: lea ecx, [ebp - 0x5c] */
  18450     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380325E7: call dword ptr [0x3804e4fc] */
  18451     RECOMP_FLAGS_IN();
  18452     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x380325ED: fld dword ptr [ebp - 0x50] */
  18453     ecx = MEM32(eax); /* 0x380325F0: mov ecx, dword ptr [eax] */
  18454     _st[0] += _st[0]; /* 0x380325F2: fadd st(0), st(0) */
  18455     MEM32(ebp + (-0x24)) = ecx; /* 0x380325F4: mov dword ptr [ebp - 0x24], ecx */
  18456     edx = MEM32(eax + 0x4); /* 0x380325F7: mov edx, dword ptr [eax + 4] */
  18457     MEM32(ebp + (-0x20)) = edx; /* 0x380325FA: mov dword ptr [ebp - 0x20], edx */
  18458     eax = MEM32(eax + 0x8); /* 0x380325FD: mov eax, dword ptr [eax + 8] */
  18459     PUSH32(esp, ecx); /* 0x38032600: push ecx */
  18460     ecx = ebp + (-0xC); /* 0x38032601: lea ecx, [ebp - 0xc] */
  18461     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x38032604: fstp dword ptr [esp] */
  18462     MEM32(ebp + (-0x1C)) = eax; /* 0x38032607: mov dword ptr [ebp - 0x1c], eax */
  18463     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x3803260A: call dword ptr [0x3804e4d4] */
  18464     RECOMP_FLAGS_IN();
  18465     PUSH32(esp, 0x40000000u); /* 0x38032610: push 0x40000000 */
  18466     ecx = ebp + (-0x24); /* 0x38032615: lea ecx, [ebp - 0x24] */
  18467     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x38032618: call dword ptr [0x3804e4d4] */
  18468     RECOMP_FLAGS_IN();
  18469     ecx = ebp + (-0xC); /* 0x3803261E: lea ecx, [ebp - 0xc] */
  18470     PUSH32(esp, ecx); /* 0x38032621: push ecx */
  18471     ecx = ebp + (-0x18); /* 0x38032622: lea ecx, [ebp - 0x18] */
  18472     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38032625: call dword ptr [0x3804e4e8] */
  18473     RECOMP_FLAGS_IN();
  18474     edx = ebp + (-0x24); /* 0x3803262B: lea edx, [ebp - 0x24] */
  18475     PUSH32(esp, edx); /* 0x3803262E: push edx */
  18476     ecx = ebp + (-0x18); /* 0x3803262F: lea ecx, [ebp - 0x18] */
  18477     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38032632: call dword ptr [0x3804e4e8] */
  18478     RECOMP_FLAGS_IN();
  18479     eax = MEM32(ebp + 0x10); /* 0x38032638: mov eax, dword ptr [ebp + 0x10] */
  18480     edx = MEM32(ebp + (-0x18)); /* 0x3803263B: mov edx, dword ptr [ebp - 0x18] */
  18481     ecx = eax; /* 0x3803263E: mov ecx, eax */
  18482     MEM32(ecx) = edx; /* 0x38032640: mov dword ptr [ecx], edx */
  18483     edx = MEM32(ebp + (-0x14)); /* 0x38032642: mov edx, dword ptr [ebp - 0x14] */
  18484     MEM32(ecx + 0x4) = edx; /* 0x38032645: mov dword ptr [ecx + 4], edx */
  18485     edx = MEM32(ebp + (-0x10)); /* 0x38032648: mov edx, dword ptr [ebp - 0x10] */
  18486     MEM32(ecx + 0x8) = edx; /* 0x3803264B: mov dword ptr [ecx + 8], edx */
  18487     ecx = esi + 0x6C; /* 0x3803264E: lea ecx, [esi + 0x6c] */
  18488     edx = MEM32(ecx); /* 0x38032651: mov edx, dword ptr [ecx] */
  18489     MEM32(ebp + (-0xC)) = edx; /* 0x38032653: mov dword ptr [ebp - 0xc], edx */
  18490     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032656: fld dword ptr [ebp - 0xc] */
  18491     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38032659: fmul dword ptr [ebp + 8] */
  18492     edx = MEM32(ecx + 0x4); /* 0x3803265C: mov edx, dword ptr [ecx + 4] */
  18493     ecx = MEM32(ecx + 0x8); /* 0x3803265F: mov ecx, dword ptr [ecx + 8] */
  18494     MEM32(ebp + (-0x8)) = edx; /* 0x38032662: mov dword ptr [ebp - 8], edx */
  18495     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38032665: fstp dword ptr [ebp - 0xc] */
  18496     edx = MEM32(ebp + (-0xC)); /* 0x38032668: mov edx, dword ptr [ebp - 0xc] */
  18497     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3803266B: fld dword ptr [ebp - 8] */
  18498     MEM32(ebp + (-0x4)) = ecx; /* 0x3803266E: mov dword ptr [ebp - 4], ecx */
  18499     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38032671: fmul dword ptr [ebp + 8] */
  18500     MEM32(ebp + (-0x18)) = edx; /* 0x38032674: mov dword ptr [ebp - 0x18], edx */
  18501     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032677: fstp dword ptr [ebp - 8] */
  18502     ecx = MEM32(ebp + (-0x8)); /* 0x3803267A: mov ecx, dword ptr [ebp - 8] */
  18503     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3803267D: fld dword ptr [ebp - 4] */
  18504     MEM32(ebp + (-0x14)) = ecx; /* 0x38032680: mov dword ptr [ebp - 0x14], ecx */
  18505     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x38032683: fmul dword ptr [ebp + 8] */
  18506     MEM32(ebp + (-0x14)) = ecx; /* 0x38032686: mov dword ptr [ebp - 0x14], ecx */
  18507     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38032689: fstp dword ptr [ebp - 4] */
  18508     edx = MEM32(ebp + (-0x4)); /* 0x3803268C: mov edx, dword ptr [ebp - 4] */
  18509     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3803268F: fld dword ptr [ebp - 0xc] */
  18510     MEM32(ebp + (-0x10)) = edx; /* 0x38032692: mov dword ptr [ebp - 0x10], edx */
  18511     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38032695: fadd dword ptr [0x3804e8cc] */
  18512     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803269B: fld dword ptr [ebp - 0x10] */
  18513     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x3803269E: fadd dword ptr [0x3804e8cc] */
  18514     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380326A4: fstp dword ptr [ebp - 0x10] */
  18515     _st[0] += (double)*(float*)ADDR(eax); /* 0x380326A7: fadd dword ptr [eax] */
  18516     { float _v = (float)_st[0]; *(float*)ADDR(eax) = _v; } /* 0x380326A9: fst dword ptr [eax] */
  18517     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x380326AB: fld dword ptr [ebp - 0x14] */
  18518     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x380326AE: fadd dword ptr [eax + 4] */
  18519     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x4) = _v; } /* 0x380326B1: fst dword ptr [eax + 4] */
  18520     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380326B4: fld dword ptr [ebp - 0x10] */
  18521     _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x380326B7: fadd dword ptr [eax + 8] */
  18522     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x380326BA: fst dword ptr [ebp + 0xc] */
  18523     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x380326BD: fstp dword ptr [eax + 8] */
  18524     _st[0] += (double)*(float*)ADDR(esi + 0x3C); /* 0x380326C0: fadd dword ptr [esi + 0x3c] */
  18525     esi = POP32_VAL(esp); /* 0x380326C3: pop esi */
  18526     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x380326C4: fstp dword ptr [eax + 4] */
  18527     _st[0] /= (double)*(float*)ADDR(ebp + 0x8); /* 0x380326C7: fdiv dword ptr [ebp + 8] */
  18528     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x380326CA: fstp dword ptr [eax] */
  18529     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x380326CC: fld dword ptr [ebp + 0xc] */
  18530     _st[0] /= (double)*(float*)ADDR(ebp + 0x8); /* 0x380326CF: fdiv dword ptr [ebp + 8] */
  18531     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x380326D2: fstp dword ptr [eax + 8] */
  18532     esp = ebp; /* 0x380326D5: mov esp, ebp */
  18533     ebp = POP32_VAL(esp); /* 0x380326D7: pop ebp */
  18534     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x380326D8: ret 0xc */
  18535     RECOMP_REGS_OUT();
  18536 }
  18537 
  18538 void sub_380326E0(void) {
  18539     int _fpu_cmp = 0;
  18540     uint32_t _cf = 0;
  18541     int _df = 1;
  18542     uint32_t _flag_k = FK_NONE;
  18543     uint32_t _flag_a = 0, _flag_b = 0;
  18544     uint32_t _itail_tgt = 0;
  18545     RECOMP_REGS_LOCALS
  18546     RECOMP_ENTER(0x380326E0u);
  18547 
  18548 L_380326E0:
  18549     PUSH32(esp, ebp); /* 0x380326E0: push ebp */
  18550     ebp = esp; /* 0x380326E1: mov ebp, esp */
  18551     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu);
  18552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18553     esp = esp - 0x5Cu; /* 0x380326E3: sub esp, 0x5c */
  18554     _flag_k = FK_CMP;
  18555     eax = MEM32(ebp + 0xC); /* 0x380326E6: mov eax, dword ptr [ebp + 0xc] */
  18556     /* test eax, eax */ /* 0x380326E9: test eax, eax */
  18557     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  18558     _cf = 0;
  18559     _flag_k = FK_TEST;
  18560     PUSH32(esp, esi); /* 0x380326EB: push esi */
  18561     PUSH32(esp, edi); /* 0x380326EC: push edi */
  18562     esi = ecx; /* 0x380326ED: mov esi, ecx */
  18563     if (TEST_Z(_flag_a, _flag_b)) goto L_38032930; /* 0x380326EF: je 0x38032930 */
  18564 L_380326F5:
  18565     eax = MEM32(eax + 0xC); /* 0x380326F5: mov eax, dword ptr [eax + 0xc] */
  18566     fp_push(*(float*)&MEM32(eax + 0x8264)); /* 0x380326F8: fld dword ptr [eax + 0x8264] */
  18567     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x380326FE: fst dword ptr [ebp + 0xc] */
  18568     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38032701: fcomp dword ptr [0x3804e8e4] */
  18569     fp_pop();
  18570     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032707: fnstsw ax */
  18571     /* test HI8(eax), 0x41u */ /* 0x38032709: test ah, 0x41 */
  18572     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  18573     _cf = 0;
  18574     _flag_k = FK_NARROW(FK_TEST, 24);
  18575     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032930; /* 0x3803270C: jne 0x38032930 */
  18576 L_38032712:
  18577     ecx = MEM32(ebp + 0x8); /* 0x38032712: mov ecx, dword ptr [ebp + 8] */
  18578     edx = MEM32(ecx); /* 0x38032715: mov edx, dword ptr [ecx] */
  18579     eax = MEM32(ecx + 0x4); /* 0x38032717: mov eax, dword ptr [ecx + 4] */
  18580     ecx = MEM32(ecx + 0x8); /* 0x3803271A: mov ecx, dword ptr [ecx + 8] */
  18581     MEM32(ebp + (-0xC)) = edx; /* 0x3803271D: mov dword ptr [ebp - 0xc], edx */
  18582     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032720: fld dword ptr [ebp - 0xc] */
  18583     _st[0] -= (double)*(float*)ADDR(esi + 0x54); /* 0x38032723: fsub dword ptr [esi + 0x54] */
  18584     edx = MEM32(esi + 0x44); /* 0x38032726: mov edx, dword ptr [esi + 0x44] */
  18585     MEM32(ebp + (-0x8)) = eax; /* 0x38032729: mov dword ptr [ebp - 8], eax */
  18586     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x3803272C: shl edx, 4 */
  18587     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18588     edx = edx << 4u; /* 0x3803272C: shl edx, 4 */
  18589     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3803272F: fstp dword ptr [ebp - 0xc] */
  18590     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3806EEA0u);
  18591     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18592     edx = edx + 0x3806EEA0u; /* 0x38032732: add edx, 0x3806eea0 */
  18593     _flag_k = FK_ADD;
  18594     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38032738: fld dword ptr [ebp - 8] */
  18595     eax = MEM32(edx); /* 0x3803273B: mov eax, dword ptr [edx] */
  18596     _st[0] -= (double)*(float*)ADDR(esi + 0x58); /* 0x3803273D: fsub dword ptr [esi + 0x58] */
  18597     MEM32(ebp + (-0x4)) = ecx; /* 0x38032740: mov dword ptr [ebp - 4], ecx */
  18598     ecx = MEM32(edx + 0x4); /* 0x38032743: mov ecx, dword ptr [edx + 4] */
  18599     MEM32(ebp + (-0x4C)) = eax; /* 0x38032746: mov dword ptr [ebp - 0x4c], eax */
  18600     eax = MEM32(edx + 0x8); /* 0x38032749: mov eax, dword ptr [edx + 8] */
  18601     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803274C: fstp dword ptr [ebp - 8] */
  18602     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3803274F: fld dword ptr [ebp - 4] */
  18603     MEM32(ebp + (-0x48)) = ecx; /* 0x38032752: mov dword ptr [ebp - 0x48], ecx */
  18604     ecx = MEM32(edx + 0xC); /* 0x38032755: mov ecx, dword ptr [edx + 0xc] */
  18605     _st[0] -= (double)*(float*)ADDR(esi + 0x5C); /* 0x38032758: fsub dword ptr [esi + 0x5c] */
  18606     MEM32(ebp + (-0x40)) = ecx; /* 0x3803275B: mov dword ptr [ebp - 0x40], ecx */
  18607     ecx = ebp + (-0x4C); /* 0x3803275E: lea ecx, [ebp - 0x4c] */
  18608     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38032761: fstp dword ptr [ebp - 4] */
  18609     MEM32(ebp + (-0x44)) = eax; /* 0x38032764: mov dword ptr [ebp - 0x44], eax */
  18610     RECOMP_ICALL(MEM32(0x3804E4CC)); /* 0x38032767: call dword ptr [0x3804e4cc] */
  18611     RECOMP_FLAGS_IN();
  18612     _st[0] = (double)*(float*)ADDR(0x3804E8CC) / _st[0]; /* 0x3803276D: fdivr dword ptr [0x3804e8cc] */
  18613     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38032773: fld dword ptr [ebp - 0x4c] */
  18614     _st[0] *= _st[1]; /* 0x38032776: fmul st(1) */
  18615     _st[0] = -_st[0]; /* 0x38032778: fchs  */
  18616     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x3803277A: fstp dword ptr [ebp - 0x4c] */
  18617     edx = MEM32(ebp + (-0x4C)); /* 0x3803277D: mov edx, dword ptr [ebp - 0x4c] */
  18618     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x38032780: fld dword ptr [ebp - 0x48] */
  18619     MEM32(ebp + (-0x5C)) = edx; /* 0x38032783: mov dword ptr [ebp - 0x5c], edx */
  18620     _st[0] *= _st[1]; /* 0x38032786: fmul st(1) */
  18621     _st[0] = -_st[0]; /* 0x38032788: fchs  */
  18622     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3803278A: fstp dword ptr [ebp - 0x48] */
  18623     eax = MEM32(ebp + (-0x48)); /* 0x3803278D: mov eax, dword ptr [ebp - 0x48] */
  18624     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x38032790: fld dword ptr [ebp - 0x44] */
  18625     MEM32(ebp + (-0x58)) = eax; /* 0x38032793: mov dword ptr [ebp - 0x58], eax */
  18626     eax = MEM32(ebp + (-0xC)); /* 0x38032796: mov eax, dword ptr [ebp - 0xc] */
  18627     _st[0] *= _st[1]; /* 0x38032799: fmul st(1) */
  18628     MEM32(ebp + (-0x18)) = eax; /* 0x3803279B: mov dword ptr [ebp - 0x18], eax */
  18629     eax = ebp + (-0x18); /* 0x3803279E: lea eax, [ebp - 0x18] */
  18630     _st[0] = -_st[0]; /* 0x380327A1: fchs  */
  18631     PUSH32(esp, eax); /* 0x380327A3: push eax */
  18632     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x380327A4: fstp dword ptr [ebp - 0x44] */
  18633     ecx = MEM32(ebp + (-0x44)); /* 0x380327A7: mov ecx, dword ptr [ebp - 0x44] */
  18634     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x380327AA: fld dword ptr [ebp - 0x40] */
  18635     MEM32(ebp + (-0x54)) = ecx; /* 0x380327AD: mov dword ptr [ebp - 0x54], ecx */
  18636     ecx = MEM32(ebp + (-0x8)); /* 0x380327B0: mov ecx, dword ptr [ebp - 8] */
  18637     _st[0] *= _st[1]; /* 0x380327B3: fmul st(1) */
  18638     MEM32(ebp + (-0x14)) = ecx; /* 0x380327B5: mov dword ptr [ebp - 0x14], ecx */
  18639     ecx = ebp + (-0x24); /* 0x380327B8: lea ecx, [ebp - 0x24] */
  18640     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x380327BB: fstp dword ptr [ebp - 0x40] */
  18641     edx = MEM32(ebp + (-0x40)); /* 0x380327BE: mov edx, dword ptr [ebp - 0x40] */
  18642     MEM32(ebp + (-0x50)) = edx; /* 0x380327C1: mov dword ptr [ebp - 0x50], edx */
  18643     edx = MEM32(ebp + (-0x4)); /* 0x380327C4: mov edx, dword ptr [ebp - 4] */
  18644     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380327C7: fstp st(0) */
  18645     PUSH32(esp, ecx); /* 0x380327C9: push ecx */
  18646     ecx = ebp + (-0x5C); /* 0x380327CA: lea ecx, [ebp - 0x5c] */
  18647     MEM32(ebp + (-0x10)) = edx; /* 0x380327CD: mov dword ptr [ebp - 0x10], edx */
  18648     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380327D0: call dword ptr [0x3804e4fc] */
  18649     RECOMP_FLAGS_IN();
  18650     edx = MEM32(eax); /* 0x380327D6: mov edx, dword ptr [eax] */
  18651     MEM32(ebp + (-0xC)) = edx; /* 0x380327D8: mov dword ptr [ebp - 0xc], edx */
  18652     ecx = MEM32(eax + 0x4); /* 0x380327DB: mov ecx, dword ptr [eax + 4] */
  18653     MEM32(ebp + (-0x8)) = ecx; /* 0x380327DE: mov dword ptr [ebp - 8], ecx */
  18654     edx = MEM32(eax + 0x8); /* 0x380327E1: mov edx, dword ptr [eax + 8] */
  18655     eax = ebp + (-0xC); /* 0x380327E4: lea eax, [ebp - 0xc] */
  18656     PUSH32(esp, eax); /* 0x380327E7: push eax */
  18657     ecx = ebp + (-0x3C); /* 0x380327E8: lea ecx, [ebp - 0x3c] */
  18658     PUSH32(esp, ecx); /* 0x380327EB: push ecx */
  18659     ecx = ebp + (-0x5C); /* 0x380327EC: lea ecx, [ebp - 0x5c] */
  18660     MEM32(ebp + (-0x4)) = edx; /* 0x380327EF: mov dword ptr [ebp - 4], edx */
  18661     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x380327F2: call dword ptr [0x3804e4fc] */
  18662     RECOMP_FLAGS_IN();
  18663     edx = MEM32(eax); /* 0x380327F8: mov edx, dword ptr [eax] */
  18664     MEM32(ebp + (-0x30)) = edx; /* 0x380327FA: mov dword ptr [ebp - 0x30], edx */
  18665     ecx = MEM32(eax + 0x4); /* 0x380327FD: mov ecx, dword ptr [eax + 4] */
  18666     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38032800: fld dword ptr [ebp - 0x50] */
  18667     MEM32(ebp + (-0x2C)) = ecx; /* 0x38032803: mov dword ptr [ebp - 0x2c], ecx */
  18668     edx = MEM32(eax + 0x8); /* 0x38032806: mov edx, dword ptr [eax + 8] */
  18669     _st[0] += _st[0]; /* 0x38032809: fadd st(0), st(0) */
  18670     PUSH32(esp, ecx); /* 0x3803280B: push ecx */
  18671     ecx = ebp + (-0xC); /* 0x3803280C: lea ecx, [ebp - 0xc] */
  18672     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3803280F: fstp dword ptr [esp] */
  18673     MEM32(ebp + (-0x28)) = edx; /* 0x38032812: mov dword ptr [ebp - 0x28], edx */
  18674     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x38032815: call dword ptr [0x3804e4d4] */
  18675     RECOMP_FLAGS_IN();
  18676     PUSH32(esp, 0x40000000u); /* 0x3803281B: push 0x40000000 */
  18677     ecx = ebp + (-0x30); /* 0x38032820: lea ecx, [ebp - 0x30] */
  18678     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x38032823: call dword ptr [0x3804e4d4] */
  18679     RECOMP_FLAGS_IN();
  18680     eax = ebp + (-0xC); /* 0x38032829: lea eax, [ebp - 0xc] */
  18681     PUSH32(esp, eax); /* 0x3803282C: push eax */
  18682     ecx = ebp + (-0x18); /* 0x3803282D: lea ecx, [ebp - 0x18] */
  18683     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38032830: call dword ptr [0x3804e4e8] */
  18684     RECOMP_FLAGS_IN();
  18685     ecx = ebp + (-0x30); /* 0x38032836: lea ecx, [ebp - 0x30] */
  18686     PUSH32(esp, ecx); /* 0x38032839: push ecx */
  18687     ecx = ebp + (-0x18); /* 0x3803283A: lea ecx, [ebp - 0x18] */
  18688     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3803283D: call dword ptr [0x3804e4e8] */
  18689     RECOMP_FLAGS_IN();
  18690     edx = MEM32(ebp + (-0x18)); /* 0x38032843: mov edx, dword ptr [ebp - 0x18] */
  18691     eax = MEM32(ebp + (-0x14)); /* 0x38032846: mov eax, dword ptr [ebp - 0x14] */
  18692     ecx = MEM32(ebp + (-0x10)); /* 0x38032849: mov ecx, dword ptr [ebp - 0x10] */
  18693     MEM32(ebp + (-0x30)) = edx; /* 0x3803284C: mov dword ptr [ebp - 0x30], edx */
  18694     MEM32(ebp + (-0x2C)) = eax; /* 0x3803284F: mov dword ptr [ebp - 0x2c], eax */
  18695     edx = esi + 0x6C; /* 0x38032852: lea edx, [esi + 0x6c] */
  18696     eax = MEM32(edx); /* 0x38032855: mov eax, dword ptr [edx] */
  18697     MEM32(ebp + (-0xC)) = eax; /* 0x38032857: mov dword ptr [ebp - 0xc], eax */
  18698     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3803285A: fld dword ptr [ebp - 0xc] */
  18699     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x3803285D: fmul dword ptr [ebp + 0xc] */
  18700     MEM32(ebp + (-0x28)) = ecx; /* 0x38032860: mov dword ptr [ebp - 0x28], ecx */
  18701     ecx = MEM32(edx + 0x4); /* 0x38032863: mov ecx, dword ptr [edx + 4] */
  18702     edx = MEM32(edx + 0x8); /* 0x38032866: mov edx, dword ptr [edx + 8] */
  18703     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38032869: fstp dword ptr [ebp - 0xc] */
  18704     MEM32(ebp + (-0x8)) = ecx; /* 0x3803286C: mov dword ptr [ebp - 8], ecx */
  18705     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3803286F: fld dword ptr [ebp - 8] */
  18706     MEM32(ebp + (-0x4)) = edx; /* 0x38032872: mov dword ptr [ebp - 4], edx */
  18707     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x38032875: fmul dword ptr [ebp + 0xc] */
  18708     eax = MEM32(ebp + (-0xC)); /* 0x38032878: mov eax, dword ptr [ebp - 0xc] */
  18709     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  18710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18711     esp = esp - 8; /* 0x3803287B: sub esp, 8 */
  18712     _flag_k = FK_CMP;
  18713     MEM32(ebp + (-0x24)) = eax; /* 0x3803287E: mov dword ptr [ebp - 0x24], eax */
  18714     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032881: fstp dword ptr [ebp - 8] */
  18715     ecx = MEM32(ebp + (-0x8)); /* 0x38032884: mov ecx, dword ptr [ebp - 8] */
  18716     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x38032887: fld dword ptr [ebp - 4] */
  18717     MEM32(ebp + (-0x20)) = ecx; /* 0x3803288A: mov dword ptr [ebp - 0x20], ecx */
  18718     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x3803288D: fmul dword ptr [ebp + 0xc] */
  18719     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38032890: fstp dword ptr [ebp - 4] */
  18720     edx = MEM32(ebp + (-0x4)); /* 0x38032893: mov edx, dword ptr [ebp - 4] */
  18721     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032896: fld dword ptr [ebp - 0xc] */
  18722     MEM32(ebp + (-0x1C)) = edx; /* 0x38032899: mov dword ptr [ebp - 0x1c], edx */
  18723     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x3803289C: fadd dword ptr [0x3804e8cc] */
  18724     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x380328A2: fld dword ptr [ebp - 0x1c] */
  18725     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x380328A5: fadd dword ptr [0x3804e8cc] */
  18726     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x380328AB: fstp dword ptr [ebp - 0x1c] */
  18727     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x380328AE: fadd dword ptr [ebp - 0x18] */
  18728     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x380328B1: fld dword ptr [ebp - 0x1c] */
  18729     _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x380328B4: fadd dword ptr [ebp - 0x28] */
  18730     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380328B7: fstp dword ptr [ebp - 0x28] */
  18731     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x380328BA: fdiv dword ptr [ebp + 0xc] */
  18732     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380328BD: fstp qword ptr [esp] */
  18733     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380328C0: call dword ptr [0x3804e0ac] */
  18734     RECOMP_FLAGS_IN();
  18735     RECOMP_ICALL(0x3804B688u); /* 0x380328C6: call 0x3804b688 */ /* not lifted */
  18736     RECOMP_FLAGS_IN();
  18737     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380328CB: fld dword ptr [ebp - 0x28] */
  18738     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x380328CE: fdiv dword ptr [ebp + 0xc] */
  18739     edi = eax; /* 0x380328D1: mov edi, eax */
  18740     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x380328D3: fstp qword ptr [esp] */
  18741     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x380328D6: call dword ptr [0x3804e0ac] */
  18742     RECOMP_FLAGS_IN();
  18743     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  18744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18745     esp = esp + 8; /* 0x380328DC: add esp, 8 */
  18746     _flag_k = FK_ADD;
  18747     RECOMP_ICALL(0x3804B688u); /* 0x380328DF: call 0x3804b688 */ /* not lifted */
  18748     RECOMP_FLAGS_IN();
  18749     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18750     ecx = 0; /* 0x380328E4: xor ecx, ecx */
  18751     _cf = 0;
  18752     _flag_k = FK_TEST;
  18753     SET_LO16(ecx, MEM16(esi + 0x4C)); /* 0x380328E6: mov cx, word ptr [esi + 0x4c] */
  18754     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18755     edx = 0; /* 0x380328EA: xor edx, edx */
  18756     _cf = 0;
  18757     _flag_k = FK_TEST;
  18758     SET_LO16(edx, MEM16(esi + 0x50)); /* 0x380328EC: mov dx, word ptr [esi + 0x50] */
  18759     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  18760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18761     edx = edx - ecx; /* 0x380328F0: sub edx, ecx */
  18762     _flag_k = FK_CMP;
  18763     /* cmp edi, edx */ /* 0x380328F2: cmp edi, edx */
  18764     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  18765     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18766     _flag_k = FK_CMP;
  18767     if (CMP_GE(_flag_a, _flag_b)) goto L_38032930; /* 0x380328F4: jge 0x38032930 */
  18768 L_380328F6:
  18769     PUSH32(esp, ebx); /* 0x380328F6: push ebx */
  18770     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18771     ebx = 0; /* 0x380328F7: xor ebx, ebx */
  18772     _cf = 0;
  18773     _flag_k = FK_TEST;
  18774     SET_LO16(ebx, MEM16(esi + 0x4E)); /* 0x380328F9: mov bx, word ptr [esi + 0x4e] */
  18775     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18776     edx = 0; /* 0x380328FD: xor edx, edx */
  18777     _cf = 0;
  18778     _flag_k = FK_TEST;
  18779     SET_LO16(edx, MEM16(esi + 0x52)); /* 0x380328FF: mov dx, word ptr [esi + 0x52] */
  18780     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  18781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18782     edx = edx - ebx; /* 0x38032903: sub edx, ebx */
  18783     _flag_k = FK_CMP;
  18784     /* cmp eax, edx */ /* 0x38032905: cmp eax, edx */
  18785     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  18786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18787     _flag_k = FK_CMP;
  18788     ebx = POP32_VAL(esp); /* 0x38032907: pop ebx */
  18789     if (CMP_GE(_flag_a, _flag_b)) goto L_38032930; /* 0x38032908: jge 0x38032930 */
  18790 L_3803290A:
  18791     /* test edi, edi */ /* 0x3803290A: test edi, edi */
  18792     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  18793     _cf = 0;
  18794     _flag_k = FK_TEST;
  18795     if (TEST_S(_flag_a, _flag_b)) goto L_38032930; /* 0x3803290C: jl 0x38032930 */
  18796 L_3803290E:
  18797     /* test eax, eax */ /* 0x3803290E: test eax, eax */
  18798     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  18799     _cf = 0;
  18800     _flag_k = FK_TEST;
  18801     if (TEST_S(_flag_a, _flag_b)) goto L_38032930; /* 0x38032910: jl 0x38032930 */
  18802 L_38032912:
  18803     edx = MEM32(ebp + 0x10); /* 0x38032912: mov edx, dword ptr [ebp + 0x10] */
  18804     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  18805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18806     ecx = ecx + edi; /* 0x38032915: add ecx, edi */
  18807     _flag_k = FK_ADD;
  18808     MEM32(edx) = ecx; /* 0x38032917: mov dword ptr [edx], ecx */
  18809     edx = MEM32(ebp + 0x14); /* 0x38032919: mov edx, dword ptr [ebp + 0x14] */
  18810     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18811     ecx = 0; /* 0x3803291C: xor ecx, ecx */
  18812     _cf = 0;
  18813     _flag_k = FK_TEST;
  18814     SET_LO16(ecx, MEM16(esi + 0x4E)); /* 0x3803291E: mov cx, word ptr [esi + 0x4e] */
  18815     edi = POP32_VAL(esp); /* 0x38032922: pop edi */
  18816     esi = POP32_VAL(esp); /* 0x38032923: pop esi */
  18817     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  18818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18819     ecx = ecx + eax; /* 0x38032924: add ecx, eax */
  18820     _flag_k = FK_ADD;
  18821     MEM32(edx) = ecx; /* 0x38032926: mov dword ptr [edx], ecx */
  18822     SET_LO8(eax, 1); /* 0x38032928: mov al, 1 */
  18823     esp = ebp; /* 0x3803292A: mov esp, ebp */
  18824     ebp = POP32_VAL(esp); /* 0x3803292C: pop ebp */
  18825     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3803292D: ret 0x10 */
  18826 L_38032930:
  18827     edi = POP32_VAL(esp); /* 0x38032930: pop edi */
  18828     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  18829     SET_LO8(eax, 0); /* 0x38032931: xor al, al */
  18830     _cf = 0;
  18831     _flag_k = FK_NARROW(FK_TEST, 24);
  18832     esi = POP32_VAL(esp); /* 0x38032933: pop esi */
  18833     esp = ebp; /* 0x38032934: mov esp, ebp */
  18834     ebp = POP32_VAL(esp); /* 0x38032936: pop ebp */
  18835     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38032937: ret 0x10 */
  18836     RECOMP_REGS_OUT();
  18837 }
  18838 
  18839 void sub_38032940(void) {
  18840     int _fpu_cmp = 0;
  18841     uint32_t _cf = 0;
  18842     int _df = 1;
  18843     uint32_t _flag_k = FK_NONE;
  18844     uint32_t _flag_a = 0, _flag_b = 0;
  18845     uint32_t _itail_tgt = 0;
  18846     RECOMP_REGS_LOCALS
  18847     RECOMP_ENTER(0x38032940u);
  18848 
  18849 L_38032940:
  18850     PUSH32(esp, ebp); /* 0x38032940: push ebp */
  18851     ebp = esp; /* 0x38032941: mov ebp, esp */
  18852     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  18853     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18854     esp = esp - 0x14u; /* 0x38032943: sub esp, 0x14 */
  18855     _flag_k = FK_CMP;
  18856     PUSH32(esp, ebx); /* 0x38032946: push ebx */
  18857     PUSH32(esp, esi); /* 0x38032947: push esi */
  18858     esi = ecx; /* 0x38032948: mov esi, ecx */
  18859     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18860     ecx = 0; /* 0x3803294A: xor ecx, ecx */
  18861     _cf = 0;
  18862     _flag_k = FK_TEST;
  18863     SET_LO16(ecx, MEM16(esi + 0x4C)); /* 0x3803294C: mov cx, word ptr [esi + 0x4c] */
  18864     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18865     eax = 0; /* 0x38032950: xor eax, eax */
  18866     _cf = 0;
  18867     _flag_k = FK_TEST;
  18868     SET_LO16(eax, MEM16(esi + 0x50)); /* 0x38032952: mov ax, word ptr [esi + 0x50] */
  18869     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18870     edx = 0; /* 0x38032956: xor edx, edx */
  18871     _cf = 0;
  18872     _flag_k = FK_TEST;
  18873     SET_LO16(edx, MEM16(esi + 0x4E)); /* 0x38032958: mov dx, word ptr [esi + 0x4e] */
  18874     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18875     ebx = 0; /* 0x3803295C: xor ebx, ebx */
  18876     _cf = 0;
  18877     _flag_k = FK_TEST;
  18878     PUSH32(esp, edi); /* 0x3803295E: push edi */
  18879     MEM32(ebp + (-0x14)) = 0; /* 0x3803295F: mov dword ptr [ebp - 0x14], 0 */
  18880     MEM32(ebp + (-0x10)) = 0; /* 0x38032966: mov dword ptr [ebp - 0x10], 0 */
  18881     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  18882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18883     eax = eax - ecx; /* 0x3803296D: sub eax, ecx */
  18884     _flag_k = FK_CMP;
  18885     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18886     ecx = 0; /* 0x3803296F: xor ecx, ecx */
  18887     _cf = 0;
  18888     _flag_k = FK_TEST;
  18889     SET_LO16(ecx, MEM16(esi + 0x52)); /* 0x38032971: mov cx, word ptr [esi + 0x52] */
  18890     MEM32(ebp + (-0x8)) = eax; /* 0x38032975: mov dword ptr [ebp - 8], eax */
  18891     MEM32(ebp + (-0xC)) = 0; /* 0x38032978: mov dword ptr [ebp - 0xc], 0 */
  18892     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  18893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18894     ecx = ecx - edx; /* 0x3803297F: sub ecx, edx */
  18895     _flag_k = FK_CMP;
  18896     /* test eax, eax */ /* 0x38032981: test eax, eax */
  18897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  18898     _cf = 0;
  18899     _flag_k = FK_TEST;
  18900     MEM32(ebp + (-0x4)) = ecx; /* 0x38032983: mov dword ptr [ebp - 4], ecx */
  18901     if (TEST_LE(_flag_a, _flag_b)) goto L_380329BE; /* 0x38032986: jle 0x380329be */
  18902 L_38032988:
  18903     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18904     edi = 0; /* 0x38032988: xor edi, edi */
  18905     _cf = 0;
  18906     _flag_k = FK_TEST;
  18907     /* test ecx, ecx */ /* 0x3803298A: test ecx, ecx */
  18908     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  18909     _cf = 0;
  18910     _flag_k = FK_TEST;
  18911     if (TEST_LE(_flag_a, _flag_b)) goto L_380329B9; /* 0x3803298C: jle 0x380329b9 */
  18912 L_3803298E:
  18913     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18914     eax = 0; /* 0x3803298E: xor eax, eax */
  18915     _cf = 0;
  18916     _flag_k = FK_TEST;
  18917     SET_LO16(eax, MEM16(esi + 0x4E)); /* 0x38032990: mov ax, word ptr [esi + 0x4e] */
  18918     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18919     ecx = 0; /* 0x38032994: xor ecx, ecx */
  18920     _cf = 0;
  18921     _flag_k = FK_TEST;
  18922     SET_LO16(ecx, MEM16(esi + 0x4C)); /* 0x38032996: mov cx, word ptr [esi + 0x4c] */
  18923     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  18924     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18925     eax = eax + edi; /* 0x3803299A: add eax, edi */
  18926     _flag_k = FK_ADD;
  18927     PUSH32(esp, eax); /* 0x3803299C: push eax */
  18928     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  18929     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18930     ecx = ecx + ebx; /* 0x3803299D: add ecx, ebx */
  18931     _flag_k = FK_ADD;
  18932     PUSH32(esp, ecx); /* 0x3803299F: push ecx */
  18933     ecx = MEM32(ebp + 0xC); /* 0x380329A0: mov ecx, dword ptr [ebp + 0xc] */
  18934     RECOMP_ICALL(0x3803A140u); /* 0x380329A3: call 0x3803a140 */ /* not lifted */
  18935     RECOMP_FLAGS_IN();
  18936     /* test LO8(eax), LO8(eax) */ /* 0x380329A8: test al, al */
  18937     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18938     _cf = 0;
  18939     _flag_k = FK_NARROW(FK_TEST, 24);
  18940     if (TEST_NZ(_flag_a, _flag_b)) goto L_380329DD; /* 0x380329AA: jne 0x380329dd */
  18941 L_380329AC:
  18942     eax = MEM32(ebp + (-0x4)); /* 0x380329AC: mov eax, dword ptr [ebp - 4] */
  18943     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  18944     edi = edi + 1; /* 0x380329AF: inc edi */
  18945     _flag_k = FK_INC;
  18946     /* cmp edi, eax */ /* 0x380329B0: cmp edi, eax */
  18947     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  18948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18949     _flag_k = FK_CMP;
  18950     RECOMP_BACKEDGE();
  18951     if (CMP_L(_flag_a, _flag_b)) goto L_3803298E; /* 0x380329B2: jl 0x3803298e */
  18952 L_380329B4:
  18953     ecx = eax; /* 0x380329B4: mov ecx, eax */
  18954     eax = MEM32(ebp + (-0x8)); /* 0x380329B6: mov eax, dword ptr [ebp - 8] */
  18955 L_380329B9:
  18956     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  18957     ebx = ebx + 1; /* 0x380329B9: inc ebx */
  18958     _flag_k = FK_INC;
  18959     /* cmp ebx, eax */ /* 0x380329BA: cmp ebx, eax */
  18960     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  18961     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18962     _flag_k = FK_CMP;
  18963     RECOMP_BACKEDGE();
  18964     if (CMP_L(_flag_a, _flag_b)) goto L_38032988; /* 0x380329BC: jl 0x38032988 */
  18965 L_380329BE:
  18966     eax = MEM32(ebp + 0x8); /* 0x380329BE: mov eax, dword ptr [ebp + 8] */
  18967     edx = MEM32(ebp + (-0x14)); /* 0x380329C1: mov edx, dword ptr [ebp - 0x14] */
  18968     ecx = eax; /* 0x380329C4: mov ecx, eax */
  18969     MEM32(ecx) = edx; /* 0x380329C6: mov dword ptr [ecx], edx */
  18970     edx = MEM32(ebp + (-0x10)); /* 0x380329C8: mov edx, dword ptr [ebp - 0x10] */
  18971     edi = POP32_VAL(esp); /* 0x380329CB: pop edi */
  18972     MEM32(ecx + 0x4) = edx; /* 0x380329CC: mov dword ptr [ecx + 4], edx */
  18973     edx = MEM32(ebp + (-0xC)); /* 0x380329CF: mov edx, dword ptr [ebp - 0xc] */
  18974     esi = POP32_VAL(esp); /* 0x380329D2: pop esi */
  18975     MEM32(ecx + 0x8) = edx; /* 0x380329D3: mov dword ptr [ecx + 8], edx */
  18976     ebx = POP32_VAL(esp); /* 0x380329D6: pop ebx */
  18977     esp = ebp; /* 0x380329D7: mov esp, ebp */
  18978     ebp = POP32_VAL(esp); /* 0x380329D9: pop ebp */
  18979     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380329DA: ret 8 */
  18980 L_380329DD:
  18981     edx = MEM32(ebp + 0xC); /* 0x380329DD: mov edx, dword ptr [ebp + 0xc] */
  18982     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18983     eax = 0; /* 0x380329E0: xor eax, eax */
  18984     _cf = 0;
  18985     _flag_k = FK_TEST;
  18986     SET_LO16(eax, MEM16(esi + 0x4E)); /* 0x380329E2: mov ax, word ptr [esi + 0x4e] */
  18987     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18988     ecx = 0; /* 0x380329E6: xor ecx, ecx */
  18989     _cf = 0;
  18990     _flag_k = FK_TEST;
  18991     SET_LO16(ecx, MEM16(esi + 0x4C)); /* 0x380329E8: mov cx, word ptr [esi + 0x4c] */
  18992     PUSH32(esp, edx); /* 0x380329EC: push edx */
  18993     edx = ebp + (-0x14); /* 0x380329ED: lea edx, [ebp - 0x14] */
  18994     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  18995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18996     eax = eax + edi; /* 0x380329F0: add eax, edi */
  18997     _flag_k = FK_ADD;
  18998     PUSH32(esp, eax); /* 0x380329F2: push eax */
  18999     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  19000     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19001     ecx = ecx + ebx; /* 0x380329F3: add ecx, ebx */
  19002     _flag_k = FK_ADD;
  19003     PUSH32(esp, ecx); /* 0x380329F5: push ecx */
  19004     PUSH32(esp, edx); /* 0x380329F6: push edx */
  19005     ecx = esi; /* 0x380329F7: mov ecx, esi */
  19006     RECOMP_ICALL(0x38032A20u); /* 0x380329F9: call 0x38032a20 */ /* not lifted */
  19007     RECOMP_FLAGS_IN();
  19008     ecx = MEM32(eax); /* 0x380329FE: mov ecx, dword ptr [eax] */
  19009     edx = MEM32(eax + 0x4); /* 0x38032A00: mov edx, dword ptr [eax + 4] */
  19010     esi = MEM32(eax + 0x8); /* 0x38032A03: mov esi, dword ptr [eax + 8] */
  19011     eax = MEM32(ebp + 0x8); /* 0x38032A06: mov eax, dword ptr [ebp + 8] */
  19012     edi = eax; /* 0x38032A09: mov edi, eax */
  19013     MEM32(edi) = ecx; /* 0x38032A0B: mov dword ptr [edi], ecx */
  19014     MEM32(edi + 0x4) = edx; /* 0x38032A0D: mov dword ptr [edi + 4], edx */
  19015     MEM32(edi + 0x8) = esi; /* 0x38032A10: mov dword ptr [edi + 8], esi */
  19016     edi = POP32_VAL(esp); /* 0x38032A13: pop edi */
  19017     esi = POP32_VAL(esp); /* 0x38032A14: pop esi */
  19018     ebx = POP32_VAL(esp); /* 0x38032A15: pop ebx */
  19019     esp = ebp; /* 0x38032A16: mov esp, ebp */
  19020     ebp = POP32_VAL(esp); /* 0x38032A18: pop ebp */
  19021     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38032A19: ret 8 */
  19022     RECOMP_REGS_OUT();
  19023 }
  19024 
  19025 void sub_38032A20(void) {
  19026     int _fpu_cmp = 0;
  19027     uint32_t _cf = 0;
  19028     int _df = 1;
  19029     uint32_t _flag_k = FK_NONE;
  19030     uint32_t _flag_a = 0, _flag_b = 0;
  19031     uint32_t _itail_tgt = 0;
  19032     RECOMP_REGS_LOCALS
  19033     RECOMP_ENTER(0x38032A20u);
  19034 
  19035 L_38032A20:
  19036     PUSH32(esp, ebp); /* 0x38032A20: push ebp */
  19037     ebp = esp; /* 0x38032A21: mov ebp, esp */
  19038     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
  19039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19040     esp = esp - 0x34u; /* 0x38032A23: sub esp, 0x34 */
  19041     _flag_k = FK_CMP;
  19042     PUSH32(esp, esi); /* 0x38032A26: push esi */
  19043     esi = ecx; /* 0x38032A27: mov esi, ecx */
  19044     ecx = MEM32(ebp + 0x14); /* 0x38032A29: mov ecx, dword ptr [ebp + 0x14] */
  19045     eax = MEM32(ecx + 0xC); /* 0x38032A2C: mov eax, dword ptr [ecx + 0xc] */
  19046     fp_push(*(float*)&MEM32(eax + 0x8264)); /* 0x38032A2F: fld dword ptr [eax + 0x8264] */
  19047     eax = MEM32(ebp + 0x10); /* 0x38032A35: mov eax, dword ptr [ebp + 0x10] */
  19048     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19049     edx = 0; /* 0x38032A38: xor edx, edx */
  19050     _cf = 0;
  19051     _flag_k = FK_TEST;
  19052     SET_LO16(edx, MEM16(esi + 0x4E)); /* 0x38032A3A: mov dx, word ptr [esi + 0x4e] */
  19053     PUSH32(esp, edi); /* 0x38032A3E: push edi */
  19054     edi = eax; /* 0x38032A3F: mov edi, eax */
  19055     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x38032A41: fstp dword ptr [ebp + 0x14] */
  19056     PUSH32(esp, eax); /* 0x38032A44: push eax */
  19057     MEM32(ebp + (-0x10)) = 0; /* 0x38032A45: mov dword ptr [ebp - 0x10], 0 */
  19058     MEM32(ebp + (-0xC)) = 0; /* 0x38032A4C: mov dword ptr [ebp - 0xc], 0 */
  19059     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  19060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19061     edi = edi - edx; /* 0x38032A53: sub edi, edx */
  19062     _flag_k = FK_CMP;
  19063     MEM32(ebp + 0x10) = edi; /* 0x38032A55: mov dword ptr [ebp + 0x10], edi */
  19064     fp_push((double)(int32_t)MEM32(ebp + 0x10)); /* 0x38032A58: fild dword ptr [ebp + 0x10] */
  19065     edi = MEM32(ebp + 0xC); /* 0x38032A5B: mov edi, dword ptr [ebp + 0xc] */
  19066     PUSH32(esp, edi); /* 0x38032A5E: push edi */
  19067     MEM32(ebp + (-0x8)) = 0; /* 0x38032A5F: mov dword ptr [ebp - 8], 0 */
  19068     _st[0] += (double)*(float*)ADDR(0x3804E8BC); /* 0x38032A66: fadd dword ptr [0x3804e8bc] */
  19069     _st[0] *= (double)*(float*)ADDR(ebp + 0x14); /* 0x38032A6C: fmul dword ptr [ebp + 0x14] */
  19070     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38032A6F: fstp dword ptr [ebp - 4] */
  19071     RECOMP_ICALL(0x38039EC0u); /* 0x38032A72: call 0x38039ec0 */ /* not lifted */
  19072     RECOMP_FLAGS_IN();
  19073     _st[0] -= (double)*(float*)ADDR(esi + 0x3C); /* 0x38032A77: fsub dword ptr [esi + 0x3c] */
  19074     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19075     eax = 0; /* 0x38032A7A: xor eax, eax */
  19076     _cf = 0;
  19077     _flag_k = FK_TEST;
  19078     SET_LO16(eax, MEM16(esi + 0x4C)); /* 0x38032A7C: mov ax, word ptr [esi + 0x4c] */
  19079     ecx = MEM32(ebp + (-0x4)); /* 0x38032A80: mov ecx, dword ptr [ebp - 4] */
  19080     MEM32(ebp + (-0x2C)) = ecx; /* 0x38032A83: mov dword ptr [ebp - 0x2c], ecx */
  19081     MEM32(ebp + (-0x8)) = ecx; /* 0x38032A86: mov dword ptr [ebp - 8], ecx */
  19082     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  19083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19084     edi = edi - eax; /* 0x38032A89: sub edi, eax */
  19085     _flag_k = FK_CMP;
  19086     MEM32(ebp + 0x10) = edi; /* 0x38032A8B: mov dword ptr [ebp + 0x10], edi */
  19087     fp_push((double)(int32_t)MEM32(ebp + 0x10)); /* 0x38032A8E: fild dword ptr [ebp + 0x10] */
  19088     _st[0] += (double)*(float*)ADDR(0x3804E8BC); /* 0x38032A91: fadd dword ptr [0x3804e8bc] */
  19089     _st[0] *= (double)*(float*)ADDR(ebp + 0x14); /* 0x38032A97: fmul dword ptr [ebp + 0x14] */
  19090     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x38032A9A: fstp dword ptr [ebp - 0x34] */
  19091     edx = MEM32(ebp + (-0x34)); /* 0x38032A9D: mov edx, dword ptr [ebp - 0x34] */
  19092     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38032AA0: fstp dword ptr [ebp - 0x30] */
  19093     eax = MEM32(ebp + (-0x30)); /* 0x38032AA3: mov eax, dword ptr [ebp - 0x30] */
  19094     MEM32(ebp + (-0x10)) = edx; /* 0x38032AA6: mov dword ptr [ebp - 0x10], edx */
  19095     MEM32(ebp + (-0xC)) = eax; /* 0x38032AA9: mov dword ptr [ebp - 0xc], eax */
  19096     edx = esi + 0x6C; /* 0x38032AAC: lea edx, [esi + 0x6c] */
  19097     eax = MEM32(edx); /* 0x38032AAF: mov eax, dword ptr [edx] */
  19098     ecx = MEM32(edx + 0x4); /* 0x38032AB1: mov ecx, dword ptr [edx + 4] */
  19099     edx = MEM32(edx + 0x8); /* 0x38032AB4: mov edx, dword ptr [edx + 8] */
  19100     MEM32(ebp + (-0x1C)) = eax; /* 0x38032AB7: mov dword ptr [ebp - 0x1c], eax */
  19101     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38032ABA: fld dword ptr [ebp - 0x1c] */
  19102     _st[0] *= (double)*(float*)ADDR(ebp + 0x14); /* 0x38032ABD: fmul dword ptr [ebp + 0x14] */
  19103     MEM32(ebp + (-0x18)) = ecx; /* 0x38032AC0: mov dword ptr [ebp - 0x18], ecx */
  19104     MEM32(ebp + (-0x14)) = edx; /* 0x38032AC3: mov dword ptr [ebp - 0x14], edx */
  19105     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38032AC6: fstp dword ptr [ebp - 0x1c] */
  19106     eax = MEM32(ebp + (-0x1C)); /* 0x38032AC9: mov eax, dword ptr [ebp - 0x1c] */
  19107     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38032ACC: fld dword ptr [ebp - 0x18] */
  19108     MEM32(ebp + (-0x28)) = eax; /* 0x38032ACF: mov dword ptr [ebp - 0x28], eax */
  19109     _st[0] *= (double)*(float*)ADDR(ebp + 0x14); /* 0x38032AD2: fmul dword ptr [ebp + 0x14] */
  19110     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38032AD5: fstp dword ptr [ebp - 0x18] */
  19111     ecx = MEM32(ebp + (-0x18)); /* 0x38032AD8: mov ecx, dword ptr [ebp - 0x18] */
  19112     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38032ADB: fld dword ptr [ebp - 0x14] */
  19113     eax = ecx; /* 0x38032ADE: mov eax, ecx */
  19114     _st[0] *= (double)*(float*)ADDR(ebp + 0x14); /* 0x38032AE0: fmul dword ptr [ebp + 0x14] */
  19115     MEM32(ebp + (-0x24)) = ecx; /* 0x38032AE3: mov dword ptr [ebp - 0x24], ecx */
  19116     MEM32(ebp + (-0x24)) = eax; /* 0x38032AE6: mov dword ptr [ebp - 0x24], eax */
  19117     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38032AE9: fstp dword ptr [ebp - 0x14] */
  19118     edx = MEM32(ebp + (-0x14)); /* 0x38032AEC: mov edx, dword ptr [ebp - 0x14] */
  19119     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38032AEF: fld dword ptr [ebp - 0x1c] */
  19120     MEM32(ebp + (-0x20)) = edx; /* 0x38032AF2: mov dword ptr [ebp - 0x20], edx */
  19121     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38032AF5: fadd dword ptr [0x3804e8cc] */
  19122     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38032AFB: fld dword ptr [ebp - 0x20] */
  19123     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38032AFE: fadd dword ptr [0x3804e8cc] */
  19124     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38032B04: fstp dword ptr [ebp - 0x20] */
  19125     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38032B07: fld dword ptr [ebp - 0x34] */
  19126     _st[0] -= _st[1]; /* 0x38032B0A: fsub st(1) */
  19127     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38032B0C: fstp dword ptr [ebp - 0x10] */
  19128     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38032B0F: fstp st(0) */
  19129     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032B11: fld dword ptr [ebp - 0xc] */
  19130     _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x38032B14: fsub dword ptr [ebp - 0x24] */
  19131     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38032B17: fstp dword ptr [ebp - 0xc] */
  19132     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38032B1A: fld dword ptr [ebp - 8] */
  19133     edi = MEM32(esi + 0x44); /* 0x38032B1D: mov edi, dword ptr [esi + 0x44] */
  19134     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x38032B20: fsub dword ptr [ebp - 0x20] */
  19135     if (4u) _cf = (((edi) >> 28) & 1u); /* 0x38032B23: shl edi, 4 */
  19136     if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19137     edi = edi << 4u; /* 0x38032B23: shl edi, 4 */
  19138     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3806EEA0u);
  19139     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19140     edi = edi + 0x3806EEA0u; /* 0x38032B26: add edi, 0x3806eea0 */
  19141     _flag_k = FK_ADD;
  19142     ecx = edi; /* 0x38032B2C: mov ecx, edi */
  19143     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032B2E: fstp dword ptr [ebp - 8] */
  19144     edx = MEM32(ecx); /* 0x38032B31: mov edx, dword ptr [ecx] */
  19145     eax = MEM32(ecx + 0x4); /* 0x38032B33: mov eax, dword ptr [ecx + 4] */
  19146     ecx = MEM32(ecx + 0x8); /* 0x38032B36: mov ecx, dword ptr [ecx + 8] */
  19147     MEM32(ebp + (-0x34)) = edx; /* 0x38032B39: mov dword ptr [ebp - 0x34], edx */
  19148     edx = ebp + (-0x10); /* 0x38032B3C: lea edx, [ebp - 0x10] */
  19149     MEM32(ebp + (-0x2C)) = ecx; /* 0x38032B3F: mov dword ptr [ebp - 0x2c], ecx */
  19150     PUSH32(esp, edx); /* 0x38032B42: push edx */
  19151     ecx = ebp + (-0x34); /* 0x38032B43: lea ecx, [ebp - 0x34] */
  19152     MEM32(ebp + (-0x30)) = eax; /* 0x38032B46: mov dword ptr [ebp - 0x30], eax */
  19153     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38032B49: call dword ptr [0x3804e4c8] */
  19154     RECOMP_FLAGS_IN();
  19155     ecx = MEM32(eax); /* 0x38032B4F: mov ecx, dword ptr [eax] */
  19156     MEM32(ebp + (-0x1C)) = ecx; /* 0x38032B51: mov dword ptr [ebp - 0x1c], ecx */
  19157     edx = MEM32(eax + 0x4); /* 0x38032B54: mov edx, dword ptr [eax + 4] */
  19158     MEM32(ebp + (-0x18)) = edx; /* 0x38032B57: mov dword ptr [ebp - 0x18], edx */
  19159     eax = MEM32(eax + 0x8); /* 0x38032B5A: mov eax, dword ptr [eax + 8] */
  19160     ecx = edi; /* 0x38032B5D: mov ecx, edi */
  19161     edx = MEM32(ecx); /* 0x38032B5F: mov edx, dword ptr [ecx] */
  19162     MEM32(ebp + (-0x14)) = eax; /* 0x38032B61: mov dword ptr [ebp - 0x14], eax */
  19163     eax = MEM32(ecx + 0x4); /* 0x38032B64: mov eax, dword ptr [ecx + 4] */
  19164     ecx = MEM32(ecx + 0x8); /* 0x38032B67: mov ecx, dword ptr [ecx + 8] */
  19165     MEM32(ebp + (-0x34)) = edx; /* 0x38032B6A: mov dword ptr [ebp - 0x34], edx */
  19166     edx = ebp + (-0x1C); /* 0x38032B6D: lea edx, [ebp - 0x1c] */
  19167     MEM32(ebp + (-0x2C)) = ecx; /* 0x38032B70: mov dword ptr [ebp - 0x2c], ecx */
  19168     PUSH32(esp, edx); /* 0x38032B73: push edx */
  19169     ecx = ebp + (-0x34); /* 0x38032B74: lea ecx, [ebp - 0x34] */
  19170     MEM32(ebp + (-0x30)) = eax; /* 0x38032B77: mov dword ptr [ebp - 0x30], eax */
  19171     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38032B7A: call dword ptr [0x3804e4c8] */
  19172     RECOMP_FLAGS_IN();
  19173     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x38032B80: fld dword ptr [edi + 0xc] */
  19174     ecx = MEM32(eax); /* 0x38032B83: mov ecx, dword ptr [eax] */
  19175     _st[0] += _st[0]; /* 0x38032B85: fadd st(0), st(0) */
  19176     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38032B87: fld dword ptr [ebp - 0x1c] */
  19177     MEM32(ebp + (-0x28)) = ecx; /* 0x38032B8A: mov dword ptr [ebp - 0x28], ecx */
  19178     edx = MEM32(eax + 0x4); /* 0x38032B8D: mov edx, dword ptr [eax + 4] */
  19179     _st[0] *= _st[1]; /* 0x38032B90: fmul st(1) */
  19180     MEM32(ebp + (-0x24)) = edx; /* 0x38032B92: mov dword ptr [ebp - 0x24], edx */
  19181     eax = MEM32(eax + 0x8); /* 0x38032B95: mov eax, dword ptr [eax + 8] */
  19182     MEM32(ebp + (-0x20)) = eax; /* 0x38032B98: mov dword ptr [ebp - 0x20], eax */
  19183     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38032B9B: fstp dword ptr [ebp - 0x1c] */
  19184     ecx = ebp + (-0x28); /* 0x38032B9E: lea ecx, [ebp - 0x28] */
  19185     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x38032BA1: fld dword ptr [ebp - 0x18] */
  19186     PUSH32(esp, ecx); /* 0x38032BA4: push ecx */
  19187     _st[0] *= _st[1]; /* 0x38032BA5: fmul st(1) */
  19188     ecx = ebp + (-0x10); /* 0x38032BA7: lea ecx, [ebp - 0x10] */
  19189     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38032BAA: fstp dword ptr [ebp - 0x18] */
  19190     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38032BAD: fld dword ptr [ebp - 0x14] */
  19191     _st[0] *= _st[1]; /* 0x38032BB0: fmul st(1) */
  19192     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38032BB2: fstp dword ptr [ebp - 0x14] */
  19193     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38032BB5: fstp st(0) */
  19194     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38032BB7: fld dword ptr [ebp - 0x28] */
  19195     _st[0] += _st[0]; /* 0x38032BBA: fadd st(0), st(0) */
  19196     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x38032BBC: fstp dword ptr [ebp - 0x28] */
  19197     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38032BBF: fld dword ptr [ebp - 0x24] */
  19198     _st[0] += _st[0]; /* 0x38032BC2: fadd st(0), st(0) */
  19199     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38032BC4: fstp dword ptr [ebp - 0x24] */
  19200     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38032BC7: fld dword ptr [ebp - 0x20] */
  19201     _st[0] += _st[0]; /* 0x38032BCA: fadd st(0), st(0) */
  19202     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38032BCC: fstp dword ptr [ebp - 0x20] */
  19203     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38032BCF: fld dword ptr [ebp - 0x1c] */
  19204     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x38032BD2: fadd dword ptr [ebp - 0x10] */
  19205     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38032BD5: fstp dword ptr [ebp - 0x10] */
  19206     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032BD8: fld dword ptr [ebp - 0xc] */
  19207     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x38032BDB: fadd dword ptr [ebp - 0x18] */
  19208     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38032BDE: fstp dword ptr [ebp - 0xc] */
  19209     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38032BE1: fld dword ptr [ebp - 8] */
  19210     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x38032BE4: fadd dword ptr [ebp - 0x14] */
  19211     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032BE7: fstp dword ptr [ebp - 8] */
  19212     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38032BEA: call dword ptr [0x3804e4e8] */
  19213     RECOMP_FLAGS_IN();
  19214     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x38032BF0: fld dword ptr [ebp - 0x10] */
  19215     _st[0] += (double)*(float*)ADDR(esi + 0x54); /* 0x38032BF3: fadd dword ptr [esi + 0x54] */
  19216     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38032BF6: fstp dword ptr [ebp - 0x10] */
  19217     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032BF9: fld dword ptr [ebp - 0xc] */
  19218     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38032BFC: fadd dword ptr [esi + 0x58] */
  19219     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38032BFF: fstp dword ptr [ebp - 0xc] */
  19220     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38032C02: fld dword ptr [ebp - 8] */
  19221     _st[0] += (double)*(float*)ADDR(esi + 0x5C); /* 0x38032C05: fadd dword ptr [esi + 0x5c] */
  19222     eax = MEM32(ebp + 0x8); /* 0x38032C08: mov eax, dword ptr [ebp + 8] */
  19223     ecx = MEM32(ebp + (-0x10)); /* 0x38032C0B: mov ecx, dword ptr [ebp - 0x10] */
  19224     edx = eax; /* 0x38032C0E: mov edx, eax */
  19225     MEM32(edx) = ecx; /* 0x38032C10: mov dword ptr [edx], ecx */
  19226     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032C12: fstp dword ptr [ebp - 8] */
  19227     ecx = MEM32(ebp + (-0xC)); /* 0x38032C15: mov ecx, dword ptr [ebp - 0xc] */
  19228     MEM32(edx + 0x4) = ecx; /* 0x38032C18: mov dword ptr [edx + 4], ecx */
  19229     ecx = MEM32(ebp + (-0x8)); /* 0x38032C1B: mov ecx, dword ptr [ebp - 8] */
  19230     edi = POP32_VAL(esp); /* 0x38032C1E: pop edi */
  19231     MEM32(edx + 0x8) = ecx; /* 0x38032C1F: mov dword ptr [edx + 8], ecx */
  19232     esi = POP32_VAL(esp); /* 0x38032C22: pop esi */
  19233     esp = ebp; /* 0x38032C23: mov esp, ebp */
  19234     ebp = POP32_VAL(esp); /* 0x38032C25: pop ebp */
  19235     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38032C26: ret 0x10 */
  19236     RECOMP_REGS_OUT();
  19237 }
  19238 
  19239 void sub_38032C30(void) {
  19240     int _fpu_cmp = 0;
  19241     uint32_t _cf = 0;
  19242     int _df = 1;
  19243     uint32_t _flag_k = FK_NONE;
  19244     uint32_t _flag_a = 0, _flag_b = 0;
  19245     uint32_t _itail_tgt = 0;
  19246     RECOMP_REGS_LOCALS
  19247     RECOMP_ENTER(0x38032C30u);
  19248 
  19249 L_38032C30:
  19250     PUSH32(esp, ebp); /* 0x38032C30: push ebp */
  19251     ebp = esp; /* 0x38032C31: mov ebp, esp */
  19252     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
  19253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19254     esp = esp - 0x1Cu; /* 0x38032C33: sub esp, 0x1c */
  19255     _flag_k = FK_CMP;
  19256     PUSH32(esp, esi); /* 0x38032C36: push esi */
  19257     esi = ecx; /* 0x38032C37: mov esi, ecx */
  19258     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19259     eax = 0; /* 0x38032C39: xor eax, eax */
  19260     _cf = 0;
  19261     _flag_k = FK_TEST;
  19262     SET_LO16(eax, MEM16(esi + 0x4E)); /* 0x38032C3B: mov ax, word ptr [esi + 0x4e] */
  19263     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19264     ecx = 0; /* 0x38032C3F: xor ecx, ecx */
  19265     _cf = 0;
  19266     _flag_k = FK_TEST;
  19267     SET_LO16(ecx, MEM16(esi + 0x4C)); /* 0x38032C41: mov cx, word ptr [esi + 0x4c] */
  19268     PUSH32(esp, edi); /* 0x38032C45: push edi */
  19269     edi = MEM32(ebp + 0x8); /* 0x38032C46: mov edi, dword ptr [ebp + 8] */
  19270     PUSH32(esp, edi); /* 0x38032C49: push edi */
  19271     edx = ebp + (-0x1C); /* 0x38032C4A: lea edx, [ebp - 0x1c] */
  19272     PUSH32(esp, eax); /* 0x38032C4D: push eax */
  19273     PUSH32(esp, ecx); /* 0x38032C4E: push ecx */
  19274     PUSH32(esp, edx); /* 0x38032C4F: push edx */
  19275     ecx = esi; /* 0x38032C50: mov ecx, esi */
  19276     RECOMP_ICALL(0x38032A20u); /* 0x38032C52: call 0x38032a20 */ /* not lifted */
  19277     RECOMP_FLAGS_IN();
  19278     ecx = MEM32(eax); /* 0x38032C57: mov ecx, dword ptr [eax] */
  19279     MEM32(ebp + (-0x10)) = ecx; /* 0x38032C59: mov dword ptr [ebp - 0x10], ecx */
  19280     edx = MEM32(eax + 0x4); /* 0x38032C5C: mov edx, dword ptr [eax + 4] */
  19281     MEM32(ebp + (-0xC)) = edx; /* 0x38032C5F: mov dword ptr [ebp - 0xc], edx */
  19282     eax = MEM32(eax + 0x8); /* 0x38032C62: mov eax, dword ptr [eax + 8] */
  19283     ecx = ebp + 0x8; /* 0x38032C65: lea ecx, [ebp + 8] */
  19284     PUSH32(esp, ecx); /* 0x38032C68: push ecx */
  19285     edx = ebp + (-0x4); /* 0x38032C69: lea edx, [ebp - 4] */
  19286     PUSH32(esp, edx); /* 0x38032C6C: push edx */
  19287     MEM32(ebp + (-0x8)) = eax; /* 0x38032C6D: mov dword ptr [ebp - 8], eax */
  19288     PUSH32(esp, edi); /* 0x38032C70: push edi */
  19289     eax = ebp + (-0x10); /* 0x38032C71: lea eax, [ebp - 0x10] */
  19290     PUSH32(esp, eax); /* 0x38032C74: push eax */
  19291     ecx = esi; /* 0x38032C75: mov ecx, esi */
  19292     RECOMP_ICALL(0x380326E0u); /* 0x38032C77: call 0x380326e0 */ /* not lifted */
  19293     RECOMP_FLAGS_IN();
  19294 L_38032C7C:
  19295     ecx = MEM32(ebp + (-0x4)); /* 0x38032C7C: mov ecx, dword ptr [ebp - 4] */
  19296     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19297     eax = 0; /* 0x38032C7F: xor eax, eax */
  19298     _cf = 0;
  19299     _flag_k = FK_TEST;
  19300     SET_LO16(eax, MEM16(esi + 0x4C)); /* 0x38032C81: mov ax, word ptr [esi + 0x4c] */
  19301     /* cmp ecx, eax */ /* 0x38032C85: cmp ecx, eax */
  19302     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  19303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19304     _flag_k = FK_CMP;
  19305     if (CMP_NE(_flag_a, _flag_b)) goto L_38032C96; /* 0x38032C87: jne 0x38032c96 */
  19306 L_38032C89:
  19307     edx = MEM32(ebp + 0x8); /* 0x38032C89: mov edx, dword ptr [ebp + 8] */
  19308     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19309     ecx = 0; /* 0x38032C8C: xor ecx, ecx */
  19310     _cf = 0;
  19311     _flag_k = FK_TEST;
  19312     SET_LO16(ecx, MEM16(esi + 0x4E)); /* 0x38032C8E: mov cx, word ptr [esi + 0x4e] */
  19313     /* cmp edx, ecx */ /* 0x38032C92: cmp edx, ecx */
  19314     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  19315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19316     _flag_k = FK_CMP;
  19317     if (CMP_EQ(_flag_a, _flag_b)) goto L_38032CD7; /* 0x38032C94: je 0x38032cd7 */
  19318 L_38032C96:
  19319     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19320     edx = 0; /* 0x38032C96: xor edx, edx */
  19321     _cf = 0;
  19322     _flag_k = FK_TEST;
  19323     SET_LO16(edx, MEM16(esi + 0x4E)); /* 0x38032C98: mov dx, word ptr [esi + 0x4e] */
  19324     PUSH32(esp, edi); /* 0x38032C9C: push edi */
  19325     ecx = esi; /* 0x38032C9D: mov ecx, esi */
  19326     PUSH32(esp, edx); /* 0x38032C9F: push edx */
  19327     PUSH32(esp, eax); /* 0x38032CA0: push eax */
  19328     eax = ebp + (-0x1C); /* 0x38032CA1: lea eax, [ebp - 0x1c] */
  19329     PUSH32(esp, eax); /* 0x38032CA4: push eax */
  19330     RECOMP_ICALL(0x38032A20u); /* 0x38032CA5: call 0x38032a20 */ /* not lifted */
  19331     RECOMP_FLAGS_IN();
  19332     ecx = MEM32(eax); /* 0x38032CAA: mov ecx, dword ptr [eax] */
  19333     MEM32(ebp + (-0x10)) = ecx; /* 0x38032CAC: mov dword ptr [ebp - 0x10], ecx */
  19334     edx = MEM32(eax + 0x4); /* 0x38032CAF: mov edx, dword ptr [eax + 4] */
  19335     MEM32(ebp + (-0xC)) = edx; /* 0x38032CB2: mov dword ptr [ebp - 0xc], edx */
  19336     eax = MEM32(eax + 0x8); /* 0x38032CB5: mov eax, dword ptr [eax + 8] */
  19337     ecx = ebp + 0x8; /* 0x38032CB8: lea ecx, [ebp + 8] */
  19338     PUSH32(esp, ecx); /* 0x38032CBB: push ecx */
  19339     edx = ebp + (-0x4); /* 0x38032CBC: lea edx, [ebp - 4] */
  19340     PUSH32(esp, edx); /* 0x38032CBF: push edx */
  19341     MEM32(ebp + (-0x8)) = eax; /* 0x38032CC0: mov dword ptr [ebp - 8], eax */
  19342     PUSH32(esp, edi); /* 0x38032CC3: push edi */
  19343     eax = ebp + (-0x10); /* 0x38032CC4: lea eax, [ebp - 0x10] */
  19344     PUSH32(esp, eax); /* 0x38032CC7: push eax */
  19345     ecx = esi; /* 0x38032CC8: mov ecx, esi */
  19346     RECOMP_ICALL(0x380326E0u); /* 0x38032CCA: call 0x380326e0 */ /* not lifted */
  19347     RECOMP_FLAGS_IN();
  19348     _flag_a = (uint32_t)(MEM32(0x3806CADC)); _flag_b = (uint32_t)(1);
  19349     MEM32(0x3806CADC) = MEM32(0x3806CADC) - 1; /* 0x38032CCF: dec dword ptr [0x3806cadc] */
  19350     _flag_k = FK_DEC;
  19351     RECOMP_BACKEDGE();
  19352     if (/* dec result */ CMP_NS(_flag_a, _flag_b)) goto L_38032C7C; /* 0x38032CD5: jns 0x38032c7c */
  19353 L_38032CD7:
  19354     edi = POP32_VAL(esp); /* 0x38032CD7: pop edi */
  19355     esi = POP32_VAL(esp); /* 0x38032CD8: pop esi */
  19356     esp = ebp; /* 0x38032CD9: mov esp, ebp */
  19357     ebp = POP32_VAL(esp); /* 0x38032CDB: pop ebp */
  19358     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38032CDC: ret 4 */
  19359     RECOMP_REGS_OUT();
  19360 }
  19361 
  19362 void sub_38032CE0(void) {
  19363     int _fpu_cmp = 0;
  19364     uint32_t _cf = 0;
  19365     int _df = 1;
  19366     uint32_t _flag_k = FK_NONE;
  19367     uint32_t _flag_a = 0, _flag_b = 0;
  19368     uint32_t _itail_tgt = 0;
  19369     RECOMP_REGS_LOCALS
  19370     RECOMP_ENTER(0x38032CE0u);
  19371 
  19372 L_38032CE0:
  19373     PUSH32(esp, ebp); /* 0x38032CE0: push ebp */
  19374     ebp = esp; /* 0x38032CE1: mov ebp, esp */
  19375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  19376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19377     esp = esp - 0xCu; /* 0x38032CE3: sub esp, 0xc */
  19378     _flag_k = FK_CMP;
  19379     PUSH32(esp, esi); /* 0x38032CE6: push esi */
  19380     esi = MEM32(ebp + 0x8); /* 0x38032CE7: mov esi, dword ptr [ebp + 8] */
  19381     eax = ebp + 0x8; /* 0x38032CEA: lea eax, [ebp + 8] */
  19382     PUSH32(esp, eax); /* 0x38032CED: push eax */
  19383     eax = MEM32(ebp + 0xC); /* 0x38032CEE: mov eax, dword ptr [ebp + 0xc] */
  19384     edx = ebp + (-0x4); /* 0x38032CF1: lea edx, [ebp - 4] */
  19385     PUSH32(esp, edx); /* 0x38032CF4: push edx */
  19386     PUSH32(esp, esi); /* 0x38032CF5: push esi */
  19387     PUSH32(esp, eax); /* 0x38032CF6: push eax */
  19388     MEM32(ebp + (-0xC)) = ecx; /* 0x38032CF7: mov dword ptr [ebp - 0xc], ecx */
  19389     RECOMP_ICALL(0x380326E0u); /* 0x38032CFA: call 0x380326e0 */ /* not lifted */
  19390     RECOMP_FLAGS_IN();
  19391     /* test LO8(eax), LO8(eax) */ /* 0x38032CFF: test al, al */
  19392     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19393     _cf = 0;
  19394     _flag_k = FK_NARROW(FK_TEST, 24);
  19395     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032D0A; /* 0x38032D01: jne 0x38032d0a */
  19396 L_38032D03:
  19397     esi = POP32_VAL(esp); /* 0x38032D03: pop esi */
  19398     esp = ebp; /* 0x38032D04: mov esp, ebp */
  19399     ebp = POP32_VAL(esp); /* 0x38032D06: pop ebp */
  19400     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38032D07: ret 8 */
  19401 L_38032D0A:
  19402     eax = MEM32(ebp + (-0x4)); /* 0x38032D0A: mov eax, dword ptr [ebp - 4] */
  19403     /* test eax, eax */ /* 0x38032D0D: test eax, eax */
  19404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  19405     _cf = 0;
  19406     _flag_k = FK_TEST;
  19407     PUSH32(esp, ebx); /* 0x38032D0F: push ebx */
  19408     PUSH32(esp, edi); /* 0x38032D10: push edi */
  19409     edi = 1; /* 0x38032D11: mov edi, 1 */
  19410     ebx = edi; /* 0x38032D16: mov ebx, edi */
  19411     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032D1C; /* 0x38032D18: jne 0x38032d1c */
  19412 L_38032D1A:
  19413     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19414     edi = 0; /* 0x38032D1A: xor edi, edi */
  19415     _cf = 0;
  19416     _flag_k = FK_TEST;
  19417 L_38032D1C:
  19418     ecx = MEM32(ebp + 0x8); /* 0x38032D1C: mov ecx, dword ptr [ebp + 8] */
  19419     /* test ecx, ecx */ /* 0x38032D1F: test ecx, ecx */
  19420     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  19421     _cf = 0;
  19422     _flag_k = FK_TEST;
  19423     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032D25; /* 0x38032D21: jne 0x38032d25 */
  19424 L_38032D23:
  19425     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19426     ebx = 0; /* 0x38032D23: xor ebx, ebx */
  19427     _cf = 0;
  19428     _flag_k = FK_TEST;
  19429 L_38032D25:
  19430     PUSH32(esp, ecx); /* 0x38032D25: push ecx */
  19431     PUSH32(esp, eax); /* 0x38032D26: push eax */
  19432     ecx = esi; /* 0x38032D27: mov ecx, esi */
  19433     RECOMP_ICALL(0x38039EC0u); /* 0x38032D29: call 0x38039ec0 */ /* not lifted */
  19434     RECOMP_FLAGS_IN();
  19435     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032D2E: fstp dword ptr [ebp - 8] */
  19436     ecx = MEM32(ebp + 0x8); /* 0x38032D31: mov ecx, dword ptr [ebp + 8] */
  19437     edx = MEM32(ebp + (-0x4)); /* 0x38032D34: mov edx, dword ptr [ebp - 4] */
  19438     PUSH32(esp, ecx); /* 0x38032D37: push ecx */
  19439     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  19440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19441     edx = edx - edi; /* 0x38032D38: sub edx, edi */
  19442     _flag_k = FK_CMP;
  19443     PUSH32(esp, edx); /* 0x38032D3A: push edx */
  19444     ecx = esi; /* 0x38032D3B: mov ecx, esi */
  19445     RECOMP_ICALL(0x38039EC0u); /* 0x38032D3D: call 0x38039ec0 */ /* not lifted */
  19446     RECOMP_FLAGS_IN();
  19447     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x38032D42: fcomp dword ptr [ebp - 8] */
  19448     fp_pop();
  19449     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032D45: fnstsw ax */
  19450     /* test HI8(eax), 0x41u */ /* 0x38032D47: test ah, 0x41 */
  19451     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  19452     _cf = 0;
  19453     _flag_k = FK_NARROW(FK_TEST, 24);
  19454     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032D60; /* 0x38032D4A: jne 0x38032d60 */
  19455 L_38032D4C:
  19456     eax = MEM32(ebp + 0x8); /* 0x38032D4C: mov eax, dword ptr [ebp + 8] */
  19457     ecx = MEM32(ebp + (-0x4)); /* 0x38032D4F: mov ecx, dword ptr [ebp - 4] */
  19458     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  19459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19460     ecx = ecx - edi; /* 0x38032D52: sub ecx, edi */
  19461     _flag_k = FK_CMP;
  19462     PUSH32(esp, eax); /* 0x38032D54: push eax */
  19463     PUSH32(esp, ecx); /* 0x38032D55: push ecx */
  19464     ecx = esi; /* 0x38032D56: mov ecx, esi */
  19465     RECOMP_ICALL(0x38039EC0u); /* 0x38032D58: call 0x38039ec0 */ /* not lifted */
  19466     RECOMP_FLAGS_IN();
  19467     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032D5D: fstp dword ptr [ebp - 8] */
  19468 L_38032D60:
  19469     edx = MEM32(ebp + 0x8); /* 0x38032D60: mov edx, dword ptr [ebp + 8] */
  19470     eax = MEM32(ebp + (-0x4)); /* 0x38032D63: mov eax, dword ptr [ebp - 4] */
  19471     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  19472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19473     edx = edx - ebx; /* 0x38032D66: sub edx, ebx */
  19474     _flag_k = FK_CMP;
  19475     PUSH32(esp, edx); /* 0x38032D68: push edx */
  19476     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  19477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19478     eax = eax - edi; /* 0x38032D69: sub eax, edi */
  19479     _flag_k = FK_CMP;
  19480     PUSH32(esp, eax); /* 0x38032D6B: push eax */
  19481     ecx = esi; /* 0x38032D6C: mov ecx, esi */
  19482     RECOMP_ICALL(0x38039EC0u); /* 0x38032D6E: call 0x38039ec0 */ /* not lifted */
  19483     RECOMP_FLAGS_IN();
  19484     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x38032D73: fcomp dword ptr [ebp - 8] */
  19485     fp_pop();
  19486     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032D76: fnstsw ax */
  19487     /* test HI8(eax), 0x41u */ /* 0x38032D78: test ah, 0x41 */
  19488     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  19489     _cf = 0;
  19490     _flag_k = FK_NARROW(FK_TEST, 24);
  19491     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032D93; /* 0x38032D7B: jne 0x38032d93 */
  19492 L_38032D7D:
  19493     ecx = MEM32(ebp + 0x8); /* 0x38032D7D: mov ecx, dword ptr [ebp + 8] */
  19494     edx = MEM32(ebp + (-0x4)); /* 0x38032D80: mov edx, dword ptr [ebp - 4] */
  19495     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  19496     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19497     ecx = ecx - ebx; /* 0x38032D83: sub ecx, ebx */
  19498     _flag_k = FK_CMP;
  19499     PUSH32(esp, ecx); /* 0x38032D85: push ecx */
  19500     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  19501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19502     edx = edx - edi; /* 0x38032D86: sub edx, edi */
  19503     _flag_k = FK_CMP;
  19504     PUSH32(esp, edx); /* 0x38032D88: push edx */
  19505     ecx = esi; /* 0x38032D89: mov ecx, esi */
  19506     RECOMP_ICALL(0x38039EC0u); /* 0x38032D8B: call 0x38039ec0 */ /* not lifted */
  19507     RECOMP_FLAGS_IN();
  19508     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032D90: fstp dword ptr [ebp - 8] */
  19509 L_38032D93:
  19510     eax = MEM32(ebp + 0x8); /* 0x38032D93: mov eax, dword ptr [ebp + 8] */
  19511     ecx = MEM32(ebp + (-0x4)); /* 0x38032D96: mov ecx, dword ptr [ebp - 4] */
  19512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  19513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19514     eax = eax - ebx; /* 0x38032D99: sub eax, ebx */
  19515     _flag_k = FK_CMP;
  19516     PUSH32(esp, eax); /* 0x38032D9B: push eax */
  19517     PUSH32(esp, ecx); /* 0x38032D9C: push ecx */
  19518     ecx = esi; /* 0x38032D9D: mov ecx, esi */
  19519     RECOMP_ICALL(0x38039EC0u); /* 0x38032D9F: call 0x38039ec0 */ /* not lifted */
  19520     RECOMP_FLAGS_IN();
  19521     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x38032DA4: fcomp dword ptr [ebp - 8] */
  19522     fp_pop();
  19523     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032DA7: fnstsw ax */
  19524     /* test HI8(eax), 0x41u */ /* 0x38032DA9: test ah, 0x41 */
  19525     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  19526     _cf = 0;
  19527     _flag_k = FK_NARROW(FK_TEST, 24);
  19528     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032DC1; /* 0x38032DAC: jne 0x38032dc1 */
  19529 L_38032DAE:
  19530     edx = MEM32(ebp + 0x8); /* 0x38032DAE: mov edx, dword ptr [ebp + 8] */
  19531     eax = MEM32(ebp + (-0x4)); /* 0x38032DB1: mov eax, dword ptr [ebp - 4] */
  19532     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  19533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19534     edx = edx - ebx; /* 0x38032DB4: sub edx, ebx */
  19535     _flag_k = FK_CMP;
  19536     PUSH32(esp, edx); /* 0x38032DB6: push edx */
  19537     PUSH32(esp, eax); /* 0x38032DB7: push eax */
  19538     ecx = esi; /* 0x38032DB8: mov ecx, esi */
  19539     RECOMP_ICALL(0x38039EC0u); /* 0x38032DBA: call 0x38039ec0 */ /* not lifted */
  19540     RECOMP_FLAGS_IN();
  19541     goto L_38032DC4; /* 0x38032DBF: jmp 0x38032dc4 */
  19542 L_38032DC1:
  19543     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38032DC1: fld dword ptr [ebp - 8] */
  19544 L_38032DC4:
  19545     eax = MEM32(ebp + (-0xC)); /* 0x38032DC4: mov eax, dword ptr [ebp - 0xc] */
  19546     _st[0] -= (double)*(float*)ADDR(eax + 0x3C); /* 0x38032DC7: fsub dword ptr [eax + 0x3c] */
  19547     ecx = MEM32(ebp + 0xC); /* 0x38032DCA: mov ecx, dword ptr [ebp + 0xc] */
  19548     edi = POP32_VAL(esp); /* 0x38032DCD: pop edi */
  19549     ebx = POP32_VAL(esp); /* 0x38032DCE: pop ebx */
  19550     _st[0] += (double)*(float*)ADDR(eax + 0x58); /* 0x38032DCF: fadd dword ptr [eax + 0x58] */
  19551     SET_LO8(eax, 1); /* 0x38032DD2: mov al, 1 */
  19552     esi = POP32_VAL(esp); /* 0x38032DD4: pop esi */
  19553     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x4) = _v; } /* 0x38032DD5: fstp dword ptr [ecx + 4] */
  19554     esp = ebp; /* 0x38032DD8: mov esp, ebp */
  19555     ebp = POP32_VAL(esp); /* 0x38032DDA: pop ebp */
  19556     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38032DDB: ret 8 */
  19557     RECOMP_REGS_OUT();
  19558 }
  19559 
  19560 void sub_38032DE0(void) {
  19561     int _fpu_cmp = 0;
  19562     uint32_t _cf = 0;
  19563     int _df = 1;
  19564     uint32_t _flag_k = FK_NONE;
  19565     uint32_t _flag_a = 0, _flag_b = 0;
  19566     uint32_t _itail_tgt = 0;
  19567     RECOMP_REGS_LOCALS
  19568     RECOMP_ENTER(0x38032DE0u);
  19569 
  19570 L_38032DE0:
  19571     PUSH32(esp, ebp); /* 0x38032DE0: push ebp */
  19572     ebp = esp; /* 0x38032DE1: mov ebp, esp */
  19573     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  19574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19575     esp = esp - 8; /* 0x38032DE3: sub esp, 8 */
  19576     _flag_k = FK_CMP;
  19577     PUSH32(esp, esi); /* 0x38032DE6: push esi */
  19578     esi = MEM32(ebp + 0x8); /* 0x38032DE7: mov esi, dword ptr [ebp + 8] */
  19579     eax = ebp + 0x8; /* 0x38032DEA: lea eax, [ebp + 8] */
  19580     PUSH32(esp, eax); /* 0x38032DED: push eax */
  19581     eax = MEM32(ebp + 0xC); /* 0x38032DEE: mov eax, dword ptr [ebp + 0xc] */
  19582     edx = ebp + (-0x4); /* 0x38032DF1: lea edx, [ebp - 4] */
  19583     PUSH32(esp, edx); /* 0x38032DF4: push edx */
  19584     PUSH32(esp, esi); /* 0x38032DF5: push esi */
  19585     PUSH32(esp, eax); /* 0x38032DF6: push eax */
  19586     RECOMP_ICALL(0x380326E0u); /* 0x38032DF7: call 0x380326e0 */ /* not lifted */
  19587     RECOMP_FLAGS_IN();
  19588     /* test LO8(eax), LO8(eax) */ /* 0x38032DFC: test al, al */
  19589     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19590     _cf = 0;
  19591     _flag_k = FK_NARROW(FK_TEST, 24);
  19592     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032E07; /* 0x38032DFE: jne 0x38032e07 */
  19593 L_38032E00:
  19594     esi = POP32_VAL(esp); /* 0x38032E00: pop esi */
  19595     esp = ebp; /* 0x38032E01: mov esp, ebp */
  19596     ebp = POP32_VAL(esp); /* 0x38032E03: pop ebp */
  19597     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38032E04: ret 8 */
  19598 L_38032E07:
  19599     eax = MEM32(ebp + (-0x4)); /* 0x38032E07: mov eax, dword ptr [ebp - 4] */
  19600     /* test eax, eax */ /* 0x38032E0A: test eax, eax */
  19601     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  19602     _cf = 0;
  19603     _flag_k = FK_TEST;
  19604     PUSH32(esp, ebx); /* 0x38032E0C: push ebx */
  19605     PUSH32(esp, edi); /* 0x38032E0D: push edi */
  19606     edi = 1; /* 0x38032E0E: mov edi, 1 */
  19607     ebx = edi; /* 0x38032E13: mov ebx, edi */
  19608     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032E19; /* 0x38032E15: jne 0x38032e19 */
  19609 L_38032E17:
  19610     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19611     edi = 0; /* 0x38032E17: xor edi, edi */
  19612     _cf = 0;
  19613     _flag_k = FK_TEST;
  19614 L_38032E19:
  19615     ecx = MEM32(ebp + 0x8); /* 0x38032E19: mov ecx, dword ptr [ebp + 8] */
  19616     /* test ecx, ecx */ /* 0x38032E1C: test ecx, ecx */
  19617     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  19618     _cf = 0;
  19619     _flag_k = FK_TEST;
  19620     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032E22; /* 0x38032E1E: jne 0x38032e22 */
  19621 L_38032E20:
  19622     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19623     ebx = 0; /* 0x38032E20: xor ebx, ebx */
  19624     _cf = 0;
  19625     _flag_k = FK_TEST;
  19626 L_38032E22:
  19627     PUSH32(esp, ecx); /* 0x38032E22: push ecx */
  19628     PUSH32(esp, eax); /* 0x38032E23: push eax */
  19629     ecx = esi; /* 0x38032E24: mov ecx, esi */
  19630     RECOMP_ICALL(0x38039F00u); /* 0x38032E26: call 0x38039f00 */ /* not lifted */
  19631     RECOMP_FLAGS_IN();
  19632     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032E2B: fstp dword ptr [ebp - 8] */
  19633     ecx = MEM32(ebp + 0x8); /* 0x38032E2E: mov ecx, dword ptr [ebp + 8] */
  19634     edx = MEM32(ebp + (-0x4)); /* 0x38032E31: mov edx, dword ptr [ebp - 4] */
  19635     PUSH32(esp, ecx); /* 0x38032E34: push ecx */
  19636     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  19637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19638     edx = edx - edi; /* 0x38032E35: sub edx, edi */
  19639     _flag_k = FK_CMP;
  19640     PUSH32(esp, edx); /* 0x38032E37: push edx */
  19641     ecx = esi; /* 0x38032E38: mov ecx, esi */
  19642     RECOMP_ICALL(0x38039F00u); /* 0x38032E3A: call 0x38039f00 */ /* not lifted */
  19643     RECOMP_FLAGS_IN();
  19644     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x38032E3F: fcomp dword ptr [ebp - 8] */
  19645     fp_pop();
  19646     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032E42: fnstsw ax */
  19647     /* test HI8(eax), 1 */ /* 0x38032E44: test ah, 1 */
  19648     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19649     _cf = 0;
  19650     _flag_k = FK_NARROW(FK_TEST, 24);
  19651     if (TEST_Z(_flag_a, _flag_b)) goto L_38032E5D; /* 0x38032E47: je 0x38032e5d */
  19652 L_38032E49:
  19653     eax = MEM32(ebp + 0x8); /* 0x38032E49: mov eax, dword ptr [ebp + 8] */
  19654     ecx = MEM32(ebp + (-0x4)); /* 0x38032E4C: mov ecx, dword ptr [ebp - 4] */
  19655     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  19656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19657     ecx = ecx - edi; /* 0x38032E4F: sub ecx, edi */
  19658     _flag_k = FK_CMP;
  19659     PUSH32(esp, eax); /* 0x38032E51: push eax */
  19660     PUSH32(esp, ecx); /* 0x38032E52: push ecx */
  19661     ecx = esi; /* 0x38032E53: mov ecx, esi */
  19662     RECOMP_ICALL(0x38039F00u); /* 0x38032E55: call 0x38039f00 */ /* not lifted */
  19663     RECOMP_FLAGS_IN();
  19664     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032E5A: fstp dword ptr [ebp - 8] */
  19665 L_38032E5D:
  19666     edx = MEM32(ebp + 0x8); /* 0x38032E5D: mov edx, dword ptr [ebp + 8] */
  19667     eax = MEM32(ebp + (-0x4)); /* 0x38032E60: mov eax, dword ptr [ebp - 4] */
  19668     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  19669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19670     edx = edx - ebx; /* 0x38032E63: sub edx, ebx */
  19671     _flag_k = FK_CMP;
  19672     PUSH32(esp, edx); /* 0x38032E65: push edx */
  19673     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  19674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19675     eax = eax - edi; /* 0x38032E66: sub eax, edi */
  19676     _flag_k = FK_CMP;
  19677     PUSH32(esp, eax); /* 0x38032E68: push eax */
  19678     ecx = esi; /* 0x38032E69: mov ecx, esi */
  19679     RECOMP_ICALL(0x38039F00u); /* 0x38032E6B: call 0x38039f00 */ /* not lifted */
  19680     RECOMP_FLAGS_IN();
  19681     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x38032E70: fcomp dword ptr [ebp - 8] */
  19682     fp_pop();
  19683     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032E73: fnstsw ax */
  19684     /* test HI8(eax), 1 */ /* 0x38032E75: test ah, 1 */
  19685     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19686     _cf = 0;
  19687     _flag_k = FK_NARROW(FK_TEST, 24);
  19688     if (TEST_Z(_flag_a, _flag_b)) goto L_38032E90; /* 0x38032E78: je 0x38032e90 */
  19689 L_38032E7A:
  19690     ecx = MEM32(ebp + 0x8); /* 0x38032E7A: mov ecx, dword ptr [ebp + 8] */
  19691     edx = MEM32(ebp + (-0x4)); /* 0x38032E7D: mov edx, dword ptr [ebp - 4] */
  19692     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  19693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19694     ecx = ecx - ebx; /* 0x38032E80: sub ecx, ebx */
  19695     _flag_k = FK_CMP;
  19696     PUSH32(esp, ecx); /* 0x38032E82: push ecx */
  19697     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  19698     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19699     edx = edx - edi; /* 0x38032E83: sub edx, edi */
  19700     _flag_k = FK_CMP;
  19701     PUSH32(esp, edx); /* 0x38032E85: push edx */
  19702     ecx = esi; /* 0x38032E86: mov ecx, esi */
  19703     RECOMP_ICALL(0x38039F00u); /* 0x38032E88: call 0x38039f00 */ /* not lifted */
  19704     RECOMP_FLAGS_IN();
  19705     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032E8D: fstp dword ptr [ebp - 8] */
  19706 L_38032E90:
  19707     eax = MEM32(ebp + 0x8); /* 0x38032E90: mov eax, dword ptr [ebp + 8] */
  19708     ecx = MEM32(ebp + (-0x4)); /* 0x38032E93: mov ecx, dword ptr [ebp - 4] */
  19709     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  19710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19711     eax = eax - ebx; /* 0x38032E96: sub eax, ebx */
  19712     _flag_k = FK_CMP;
  19713     PUSH32(esp, eax); /* 0x38032E98: push eax */
  19714     PUSH32(esp, ecx); /* 0x38032E99: push ecx */
  19715     ecx = esi; /* 0x38032E9A: mov ecx, esi */
  19716     RECOMP_ICALL(0x38039F00u); /* 0x38032E9C: call 0x38039f00 */ /* not lifted */
  19717     RECOMP_FLAGS_IN();
  19718     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x38032EA1: fcomp dword ptr [ebp - 8] */
  19719     fp_pop();
  19720     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38032EA4: fnstsw ax */
  19721     /* test HI8(eax), 1 */ /* 0x38032EA6: test ah, 1 */
  19722     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19723     _cf = 0;
  19724     _flag_k = FK_NARROW(FK_TEST, 24);
  19725     if (TEST_Z(_flag_a, _flag_b)) goto L_38032EBF; /* 0x38032EA9: je 0x38032ebf */
  19726 L_38032EAB:
  19727     edx = MEM32(ebp + 0x8); /* 0x38032EAB: mov edx, dword ptr [ebp + 8] */
  19728     eax = MEM32(ebp + (-0x4)); /* 0x38032EAE: mov eax, dword ptr [ebp - 4] */
  19729     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  19730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19731     edx = edx - ebx; /* 0x38032EB1: sub edx, ebx */
  19732     _flag_k = FK_CMP;
  19733     PUSH32(esp, edx); /* 0x38032EB3: push edx */
  19734     PUSH32(esp, eax); /* 0x38032EB4: push eax */
  19735     ecx = esi; /* 0x38032EB5: mov ecx, esi */
  19736     RECOMP_ICALL(0x38039F00u); /* 0x38032EB7: call 0x38039f00 */ /* not lifted */
  19737     RECOMP_FLAGS_IN();
  19738     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032EBC: fstp dword ptr [ebp - 8] */
  19739 L_38032EBF:
  19740     ecx = MEM32(ebp + 0x8); /* 0x38032EBF: mov ecx, dword ptr [ebp + 8] */
  19741     edx = MEM32(ebp + (-0x4)); /* 0x38032EC2: mov edx, dword ptr [ebp - 4] */
  19742     PUSH32(esp, ecx); /* 0x38032EC5: push ecx */
  19743     PUSH32(esp, edx); /* 0x38032EC6: push edx */
  19744     ecx = esi; /* 0x38032EC7: mov ecx, esi */
  19745     RECOMP_ICALL(0x3803A140u); /* 0x38032EC9: call 0x3803a140 */ /* not lifted */
  19746     RECOMP_FLAGS_IN();
  19747     edi = POP32_VAL(esp); /* 0x38032ECE: pop edi */
  19748     ebx = POP32_VAL(esp); /* 0x38032ECF: pop ebx */
  19749     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu);
  19750     eax = eax & 0xFFu; /* 0x38032ED0: and eax, 0xff */
  19751     _cf = 0;
  19752     _flag_k = FK_TEST;
  19753     if (TEST_NZ(_flag_a, _flag_b)) goto L_38032EE0; /* 0x38032ED5: jne 0x38032ee0 */
  19754 L_38032ED7:
  19755     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  19756     SET_LO8(eax, 0); /* 0x38032ED7: xor al, al */
  19757     _cf = 0;
  19758     _flag_k = FK_NARROW(FK_TEST, 24);
  19759     esi = POP32_VAL(esp); /* 0x38032ED9: pop esi */
  19760     esp = ebp; /* 0x38032EDA: mov esp, ebp */
  19761     ebp = POP32_VAL(esp); /* 0x38032EDC: pop ebp */
  19762     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38032EDD: ret 8 */
  19763 L_38032EE0:
  19764     PUSH32(esp, eax); /* 0x38032EE0: push eax */
  19765     ecx = esi; /* 0x38032EE1: mov ecx, esi */
  19766     RECOMP_ICALL(0x38039E80u); /* 0x38032EE3: call 0x38039e80 */ /* not lifted */
  19767     RECOMP_FLAGS_IN();
  19768     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38032EE8: fld dword ptr [ebp - 8] */
  19769     _st[0] *= (double)*(float*)ADDR(0x3804EC08); /* 0x38032EEB: fmul dword ptr [0x3804ec08] */
  19770     eax = MEM32(ebp + 0xC); /* 0x38032EF1: mov eax, dword ptr [ebp + 0xc] */
  19771     esi = POP32_VAL(esp); /* 0x38032EF4: pop esi */
  19772     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38032EF5: fadd dword ptr [0x3804e8cc] */
  19773     _st[0] *= _st[1]; /* 0x38032EFB: fmul st(1) */
  19774     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x38032EFD: fadd dword ptr [eax + 4] */
  19775     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x38032F00: fstp dword ptr [eax + 4] */
  19776     SET_LO8(eax, 1); /* 0x38032F03: mov al, 1 */
  19777     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38032F05: fstp st(0) */
  19778     esp = ebp; /* 0x38032F07: mov esp, ebp */
  19779     ebp = POP32_VAL(esp); /* 0x38032F09: pop ebp */
  19780     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38032F0A: ret 8 */
  19781     RECOMP_REGS_OUT();
  19782 }
  19783 
  19784 void sub_38032F10(void) {
  19785     int _fpu_cmp = 0;
  19786     uint32_t _cf = 0;
  19787     int _df = 1;
  19788     uint32_t _flag_k = FK_NONE;
  19789     uint32_t _flag_a = 0, _flag_b = 0;
  19790     uint32_t _itail_tgt = 0;
  19791     RECOMP_REGS_LOCALS
  19792     RECOMP_ENTER(0x38032F10u);
  19793 
  19794 L_38032F10:
  19795     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19796     eax = 0; /* 0x38032F10: xor eax, eax */
  19797     _cf = 0;
  19798     _flag_k = FK_TEST;
  19799     SET_LO16(eax, MEM16(ecx + 0x7C)); /* 0x38032F12: mov ax, word ptr [ecx + 0x7c] */
  19800     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38032F16: ret  */
  19801     RECOMP_REGS_OUT();
  19802 }
  19803 
  19804 void sub_38032F20(void) {
  19805     int _fpu_cmp = 0;
  19806     uint32_t _cf = 0;
  19807     int _df = 1;
  19808     uint32_t _flag_k = FK_NONE;
  19809     uint32_t _flag_a = 0, _flag_b = 0;
  19810     uint32_t _itail_tgt = 0;
  19811     RECOMP_REGS_LOCALS
  19812     RECOMP_ENTER(0x38032F20u);
  19813 
  19814 L_38032F20:
  19815     PUSH32(esp, ebp); /* 0x38032F20: push ebp */
  19816     ebp = esp; /* 0x38032F21: mov ebp, esp */
  19817     eax = MEM32(ecx + 0x80); /* 0x38032F23: mov eax, dword ptr [ecx + 0x80] */
  19818     ecx = MEM32(ebp + 0x8); /* 0x38032F29: mov ecx, dword ptr [ebp + 8] */
  19819     eax = (int32_t)(int16_t)MEM16(eax + ecx * 4); /* 0x38032F2C: movsx eax, word ptr [eax + ecx*4] */
  19820     ebp = POP32_VAL(esp); /* 0x38032F30: pop ebp */
  19821     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38032F31: ret 4 */
  19822     RECOMP_REGS_OUT();
  19823 }
  19824 
  19825 void sub_38032F40(void) {
  19826     int _fpu_cmp = 0;
  19827     uint32_t _cf = 0;
  19828     int _df = 1;
  19829     uint32_t _flag_k = FK_NONE;
  19830     uint32_t _flag_a = 0, _flag_b = 0;
  19831     uint32_t _itail_tgt = 0;
  19832     RECOMP_REGS_LOCALS
  19833     RECOMP_ENTER(0x38032F40u);
  19834 
  19835 L_38032F40:
  19836     PUSH32(esp, ebp); /* 0x38032F40: push ebp */
  19837     ebp = esp; /* 0x38032F41: mov ebp, esp */
  19838     eax = MEM32(ecx + 0x80); /* 0x38032F43: mov eax, dword ptr [ecx + 0x80] */
  19839     SET_LO16(ecx, MEM16(ebp + 0xC)); /* 0x38032F49: mov cx, word ptr [ebp + 0xc] */
  19840     edx = MEM32(ebp + 0x8); /* 0x38032F4D: mov edx, dword ptr [ebp + 8] */
  19841     MEM16(eax + edx * 4) = (uint16_t)(LO16(ecx)); /* 0x38032F50: mov word ptr [eax + edx*4], cx */
  19842     ebp = POP32_VAL(esp); /* 0x38032F54: pop ebp */
  19843     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38032F55: ret 8 */
  19844     RECOMP_REGS_OUT();
  19845 }
  19846 
  19847 void sub_38032F60(void) {
  19848     int _fpu_cmp = 0;
  19849     uint32_t _cf = 0;
  19850     int _df = 1;
  19851     uint32_t _flag_k = FK_NONE;
  19852     uint32_t _flag_a = 0, _flag_b = 0;
  19853     uint32_t _itail_tgt = 0;
  19854     RECOMP_REGS_LOCALS
  19855     RECOMP_ENTER(0x38032F60u);
  19856 
  19857 L_38032F60:
  19858     PUSH32(esp, ebp); /* 0x38032F60: push ebp */
  19859     ebp = esp; /* 0x38032F61: mov ebp, esp */
  19860     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u);
  19861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19862     esp = esp - 0x58u; /* 0x38032F63: sub esp, 0x58 */
  19863     _flag_k = FK_CMP;
  19864     eax = MEM32(ebp + 0x10); /* 0x38032F66: mov eax, dword ptr [ebp + 0x10] */
  19865     edx = MEM32(eax + 0xC); /* 0x38032F69: mov edx, dword ptr [eax + 0xc] */
  19866     fp_push(*(float*)&MEM32(edx + 0x8264)); /* 0x38032F6C: fld dword ptr [edx + 0x8264] */
  19867     eax = ecx + 0x6C; /* 0x38032F72: lea eax, [ecx + 0x6c] */
  19868     edx = MEM32(eax); /* 0x38032F75: mov edx, dword ptr [eax] */
  19869     MEM32(ebp + (-0xC)) = edx; /* 0x38032F77: mov dword ptr [ebp - 0xc], edx */
  19870     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032F7A: fld dword ptr [ebp - 0xc] */
  19871     edx = MEM32(eax + 0x4); /* 0x38032F7D: mov edx, dword ptr [eax + 4] */
  19872     eax = MEM32(eax + 0x8); /* 0x38032F80: mov eax, dword ptr [eax + 8] */
  19873     MEM32(ebp + (-0x8)) = edx; /* 0x38032F83: mov dword ptr [ebp - 8], edx */
  19874     _st[0] *= _st[1]; /* 0x38032F86: fmul st(1) */
  19875     MEM32(ebp + (-0x4)) = eax; /* 0x38032F88: mov dword ptr [ebp - 4], eax */
  19876     PUSH32(esp, ebx); /* 0x38032F8B: push ebx */
  19877     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38032F8C: fstp dword ptr [ebp - 0xc] */
  19878     edx = MEM32(ebp + (-0xC)); /* 0x38032F8F: mov edx, dword ptr [ebp - 0xc] */
  19879     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38032F92: fld dword ptr [ebp - 8] */
  19880     ebx = MEM32(ecx + 0x48); /* 0x38032F95: mov ebx, dword ptr [ecx + 0x48] */
  19881     _st[0] *= _st[1]; /* 0x38032F98: fmul st(1) */
  19882     MEM32(ebp + (-0x18)) = edx; /* 0x38032F9A: mov dword ptr [ebp - 0x18], edx */
  19883     PUSH32(esp, esi); /* 0x38032F9D: push esi */
  19884     PUSH32(esp, edi); /* 0x38032F9E: push edi */
  19885     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38032F9F: fstp dword ptr [ebp - 8] */
  19886     eax = MEM32(ebp + (-0x8)); /* 0x38032FA2: mov eax, dword ptr [ebp - 8] */
  19887     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x38032FA5: fld dword ptr [ebp - 4] */
  19888     MEM32(ebp + (-0x14)) = eax; /* 0x38032FA8: mov dword ptr [ebp - 0x14], eax */
  19889     _st[0] *= _st[1]; /* 0x38032FAB: fmul st(1) */
  19890     MEM32(ebp + (-0x14)) = eax; /* 0x38032FAD: mov dword ptr [ebp - 0x14], eax */
  19891     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38032FB0: fstp dword ptr [ebp - 4] */
  19892     edx = MEM32(ebp + (-0x4)); /* 0x38032FB3: mov edx, dword ptr [ebp - 4] */
  19893     MEM32(ebp + (-0x10)) = edx; /* 0x38032FB6: mov dword ptr [ebp - 0x10], edx */
  19894     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38032FB9: fstp st(0) */
  19895     edx = MEM32(ebp + 0x8); /* 0x38032FBB: mov edx, dword ptr [ebp + 8] */
  19896     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032FBE: fld dword ptr [ebp - 0xc] */
  19897     eax = MEM32(edx); /* 0x38032FC1: mov eax, dword ptr [edx] */
  19898     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38032FC3: fadd dword ptr [0x3804e8cc] */
  19899     MEM32(ebp + (-0xC)) = eax; /* 0x38032FC9: mov dword ptr [ebp - 0xc], eax */
  19900     eax = MEM32(edx + 0x4); /* 0x38032FCC: mov eax, dword ptr [edx + 4] */
  19901     edx = MEM32(edx + 0x8); /* 0x38032FCF: mov edx, dword ptr [edx + 8] */
  19902     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38032FD2: fstp dword ptr [ebp - 0x18] */
  19903     MEM32(ebp + (-0x8)) = eax; /* 0x38032FD5: mov dword ptr [ebp - 8], eax */
  19904     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x38032FD8: fld dword ptr [ebp - 0x10] */
  19905     eax = MEM32(ecx + 0x44); /* 0x38032FDB: mov eax, dword ptr [ecx + 0x44] */
  19906     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38032FDE: fadd dword ptr [0x3804e8cc] */
  19907     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  19908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19909     eax = eax - ebx; /* 0x38032FE4: sub eax, ebx */
  19910     _flag_k = FK_CMP;
  19911     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  19912     eax = eax & 3; /* 0x38032FE6: and eax, 3 */
  19913     _cf = 0;
  19914     _flag_k = FK_TEST;
  19915     MEM32(ebp + (-0x4)) = edx; /* 0x38032FE9: mov dword ptr [ebp - 4], edx */
  19916     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38032FEC: fstp dword ptr [ebp - 0x10] */
  19917     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x38032FEF: shl eax, 4 */
  19918     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19919     eax = eax << 4u; /* 0x38032FEF: shl eax, 4 */
  19920     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38032FF2: fld dword ptr [ebp - 0xc] */
  19921     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3806EEA0u);
  19922     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19923     eax = eax + 0x3806EEA0u; /* 0x38032FF5: add eax, 0x3806eea0 */
  19924     _flag_k = FK_ADD;
  19925     _st[0] -= (double)*(float*)ADDR(ecx + 0x54); /* 0x38032FFA: fsub dword ptr [ecx + 0x54] */
  19926     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38032FFD: fstp dword ptr [ebp - 0xc] */
  19927     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38033000: fld dword ptr [ebp - 8] */
  19928     _st[0] -= (double)*(float*)ADDR(ecx + 0x58); /* 0x38033003: fsub dword ptr [ecx + 0x58] */
  19929     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38033006: fstp dword ptr [ebp - 8] */
  19930     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x38033009: fld dword ptr [ebp - 4] */
  19931     _st[0] -= (double)*(float*)ADDR(ecx + 0x5C); /* 0x3803300C: fsub dword ptr [ecx + 0x5c] */
  19932     ecx = MEM32(eax); /* 0x3803300F: mov ecx, dword ptr [eax] */
  19933     edx = MEM32(eax + 0x4); /* 0x38033011: mov edx, dword ptr [eax + 4] */
  19934     MEM32(ebp + (-0x58)) = ecx; /* 0x38033014: mov dword ptr [ebp - 0x58], ecx */
  19935     ecx = MEM32(eax + 0x8); /* 0x38033017: mov ecx, dword ptr [eax + 8] */
  19936     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803301A: fstp dword ptr [ebp - 4] */
  19937     MEM32(ebp + (-0x54)) = edx; /* 0x3803301D: mov dword ptr [ebp - 0x54], edx */
  19938     edx = MEM32(eax + 0xC); /* 0x38033020: mov edx, dword ptr [eax + 0xc] */
  19939     MEM32(ebp + (-0x4C)) = edx; /* 0x38033023: mov dword ptr [ebp - 0x4c], edx */
  19940     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38033026: fld dword ptr [ebp - 0x4c] */
  19941     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x38033029: fmul dword ptr [ebp - 0x4c] */
  19942     MEM32(ebp + (-0x50)) = ecx; /* 0x3803302C: mov dword ptr [ebp - 0x50], ecx */
  19943     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x3803302F: fld dword ptr [ebp - 0x50] */
  19944     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x38033032: fmul dword ptr [ebp - 0x50] */
  19945     { double _v = fp_pop(); _st[0] += _v; } /* 0x38033035: faddp st(1) */
  19946     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x38033037: fld dword ptr [ebp - 0x54] */
  19947     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x3803303A: fmul dword ptr [ebp - 0x54] */
  19948     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803303D: faddp st(1) */
  19949     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x3803303F: fld dword ptr [ebp - 0x58] */
  19950     _st[0] *= (double)*(float*)ADDR(ebp + (-0x58)); /* 0x38033042: fmul dword ptr [ebp - 0x58] */
  19951     { double _v = fp_pop(); _st[0] += _v; } /* 0x38033045: faddp st(1) */
  19952     _st[0] = (double)*(float*)ADDR(0x3804E8CC) / _st[0]; /* 0x38033047: fdivr dword ptr [0x3804e8cc] */
  19953     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x3803304D: fld dword ptr [ebp - 0x58] */
  19954     _st[0] *= _st[1]; /* 0x38033050: fmul st(1) */
  19955     _st[0] = -_st[0]; /* 0x38033052: fchs  */
  19956     eax = MEM32(ebp + (-0xC)); /* 0x38033054: mov eax, dword ptr [ebp - 0xc] */
  19957     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x38033057: fstp dword ptr [ebp - 0x58] */
  19958     ecx = MEM32(ebp + (-0x8)); /* 0x3803305A: mov ecx, dword ptr [ebp - 8] */
  19959     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x3803305D: fld dword ptr [ebp - 0x54] */
  19960     edx = MEM32(ebp + (-0x4)); /* 0x38033060: mov edx, dword ptr [ebp - 4] */
  19961     _st[0] *= _st[1]; /* 0x38033063: fmul st(1) */
  19962     esi = MEM32(ebp + (-0x58)); /* 0x38033065: mov esi, dword ptr [ebp - 0x58] */
  19963     MEM32(ebp + (-0x24)) = eax; /* 0x38033068: mov dword ptr [ebp - 0x24], eax */
  19964     eax = ebp + (-0x24); /* 0x3803306B: lea eax, [ebp - 0x24] */
  19965     _st[0] = -_st[0]; /* 0x3803306E: fchs  */
  19966     MEM32(ebp + (-0x20)) = ecx; /* 0x38033070: mov dword ptr [ebp - 0x20], ecx */
  19967     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x38033073: fstp dword ptr [ebp - 0x54] */
  19968     edi = MEM32(ebp + (-0x54)); /* 0x38033076: mov edi, dword ptr [ebp - 0x54] */
  19969     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x38033079: fld dword ptr [ebp - 0x50] */
  19970     PUSH32(esp, eax); /* 0x3803307C: push eax */
  19971     _st[0] *= _st[1]; /* 0x3803307D: fmul st(1) */
  19972     ecx = ebp + (-0x3C); /* 0x3803307F: lea ecx, [ebp - 0x3c] */
  19973     MEM32(ebp + (-0x1C)) = edx; /* 0x38033082: mov dword ptr [ebp - 0x1c], edx */
  19974     MEM32(ebp + (-0x3C)) = esi; /* 0x38033085: mov dword ptr [ebp - 0x3c], esi */
  19975     _st[0] = -_st[0]; /* 0x38033088: fchs  */
  19976     MEM32(ebp + (-0x38)) = edi; /* 0x3803308A: mov dword ptr [ebp - 0x38], edi */
  19977     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3803308D: fstp dword ptr [ebp - 0x50] */
  19978     ebx = MEM32(ebp + (-0x50)); /* 0x38033090: mov ebx, dword ptr [ebp - 0x50] */
  19979     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38033093: fld dword ptr [ebp - 0x4c] */
  19980     MEM32(ebp + (-0x34)) = ebx; /* 0x38033096: mov dword ptr [ebp - 0x34], ebx */
  19981     _st[0] *= _st[1]; /* 0x38033099: fmul st(1) */
  19982     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x3803309B: fstp dword ptr [ebp - 0x4c] */
  19983     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803309E: fstp st(0) */
  19984     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x380330A0: call dword ptr [0x3804e4c8] */
  19985     RECOMP_FLAGS_IN();
  19986     ecx = MEM32(eax); /* 0x380330A6: mov ecx, dword ptr [eax] */
  19987     MEM32(ebp + (-0xC)) = ecx; /* 0x380330A8: mov dword ptr [ebp - 0xc], ecx */
  19988     edx = MEM32(eax + 0x4); /* 0x380330AB: mov edx, dword ptr [eax + 4] */
  19989     ecx = ebp + (-0xC); /* 0x380330AE: lea ecx, [ebp - 0xc] */
  19990     MEM32(ebp + (-0x8)) = edx; /* 0x380330B1: mov dword ptr [ebp - 8], edx */
  19991     eax = MEM32(eax + 0x8); /* 0x380330B4: mov eax, dword ptr [eax + 8] */
  19992     PUSH32(esp, ecx); /* 0x380330B7: push ecx */
  19993     ecx = ebp + (-0x48); /* 0x380330B8: lea ecx, [ebp - 0x48] */
  19994     MEM32(ebp + (-0x4)) = eax; /* 0x380330BB: mov dword ptr [ebp - 4], eax */
  19995     MEM32(ebp + (-0x48)) = esi; /* 0x380330BE: mov dword ptr [ebp - 0x48], esi */
  19996     MEM32(ebp + (-0x44)) = edi; /* 0x380330C1: mov dword ptr [ebp - 0x44], edi */
  19997     MEM32(ebp + (-0x40)) = ebx; /* 0x380330C4: mov dword ptr [ebp - 0x40], ebx */
  19998     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x380330C7: call dword ptr [0x3804e4c8] */
  19999     RECOMP_FLAGS_IN();
  20000     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x380330CD: fld dword ptr [ebp - 0x4c] */
  20001     edx = MEM32(eax); /* 0x380330D0: mov edx, dword ptr [eax] */
  20002     _st[0] += _st[0]; /* 0x380330D2: fadd st(0), st(0) */
  20003     MEM32(ebp + (-0x30)) = edx; /* 0x380330D4: mov dword ptr [ebp - 0x30], edx */
  20004     ecx = MEM32(eax + 0x4); /* 0x380330D7: mov ecx, dword ptr [eax + 4] */
  20005     MEM32(ebp + (-0x2C)) = ecx; /* 0x380330DA: mov dword ptr [ebp - 0x2c], ecx */
  20006     edx = MEM32(eax + 0x8); /* 0x380330DD: mov edx, dword ptr [eax + 8] */
  20007     PUSH32(esp, ecx); /* 0x380330E0: push ecx */
  20008     ecx = ebp + (-0xC); /* 0x380330E1: lea ecx, [ebp - 0xc] */
  20009     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x380330E4: fstp dword ptr [esp] */
  20010     MEM32(ebp + (-0x28)) = edx; /* 0x380330E7: mov dword ptr [ebp - 0x28], edx */
  20011     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380330EA: call dword ptr [0x3804e4d4] */
  20012     RECOMP_FLAGS_IN();
  20013     PUSH32(esp, 0x40000000u); /* 0x380330F0: push 0x40000000 */
  20014     ecx = ebp + (-0x30); /* 0x380330F5: lea ecx, [ebp - 0x30] */
  20015     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x380330F8: call dword ptr [0x3804e4d4] */
  20016     RECOMP_FLAGS_IN();
  20017     eax = ebp + (-0xC); /* 0x380330FE: lea eax, [ebp - 0xc] */
  20018     PUSH32(esp, eax); /* 0x38033101: push eax */
  20019     ecx = ebp + (-0x24); /* 0x38033102: lea ecx, [ebp - 0x24] */
  20020     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38033105: call dword ptr [0x3804e4e8] */
  20021     RECOMP_FLAGS_IN();
  20022     ecx = ebp + (-0x30); /* 0x3803310B: lea ecx, [ebp - 0x30] */
  20023     PUSH32(esp, ecx); /* 0x3803310E: push ecx */
  20024     ecx = ebp + (-0x24); /* 0x3803310F: lea ecx, [ebp - 0x24] */
  20025     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38033112: call dword ptr [0x3804e4e8] */
  20026     RECOMP_FLAGS_IN();
  20027     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38033118: fld dword ptr [ebp - 0x24] */
  20028     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3803311B: fadd dword ptr [ebp - 0x18] */
  20029     edx = MEM32(ebp + (-0x24)); /* 0x3803311E: mov edx, dword ptr [ebp - 0x24] */
  20030     eax = MEM32(ebp + (-0x20)); /* 0x38033121: mov eax, dword ptr [ebp - 0x20] */
  20031     ecx = MEM32(ebp + (-0x1C)); /* 0x38033124: mov ecx, dword ptr [ebp - 0x1c] */
  20032     MEM32(ebp + (-0xC)) = edx; /* 0x38033127: mov dword ptr [ebp - 0xc], edx */
  20033     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3803312A: fstp dword ptr [ebp - 0xc] */
  20034     MEM32(ebp + (-0x8)) = eax; /* 0x3803312D: mov dword ptr [ebp - 8], eax */
  20035     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38033130: fld dword ptr [ebp - 8] */
  20036     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x38033133: fadd dword ptr [ebp - 0x14] */
  20037     MEM32(ebp + (-0x4)) = ecx; /* 0x38033136: mov dword ptr [ebp - 4], ecx */
  20038     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38033139: fstp dword ptr [ebp - 8] */
  20039     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3803313C: fld dword ptr [ebp - 4] */
  20040     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3803313F: fadd dword ptr [ebp - 0x10] */
  20041     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38033142: fstp dword ptr [ebp - 4] */
  20042     eax = MEM32(ebp + (-0xC)); /* 0x38033145: mov eax, dword ptr [ebp - 0xc] */
  20043     edx = MEM32(ebp + 0xC); /* 0x38033148: mov edx, dword ptr [ebp + 0xc] */
  20044     ecx = MEM32(ebp + (-0x8)); /* 0x3803314B: mov ecx, dword ptr [ebp - 8] */
  20045     MEM32(edx) = eax; /* 0x3803314E: mov dword ptr [edx], eax */
  20046     eax = MEM32(ebp + (-0x4)); /* 0x38033150: mov eax, dword ptr [ebp - 4] */
  20047     edi = POP32_VAL(esp); /* 0x38033153: pop edi */
  20048     MEM32(edx + 0x4) = ecx; /* 0x38033154: mov dword ptr [edx + 4], ecx */
  20049     esi = POP32_VAL(esp); /* 0x38033157: pop esi */
  20050     MEM32(edx + 0x8) = eax; /* 0x38033158: mov dword ptr [edx + 8], eax */
  20051     ebx = POP32_VAL(esp); /* 0x3803315B: pop ebx */
  20052     esp = ebp; /* 0x3803315C: mov esp, ebp */
  20053     ebp = POP32_VAL(esp); /* 0x3803315E: pop ebp */
  20054     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3803315F: ret 0xc */
  20055     RECOMP_REGS_OUT();
  20056 }
  20057 
  20058 void sub_38033170(void) {
  20059     int _fpu_cmp = 0;
  20060     uint32_t _cf = 0;
  20061     int _df = 1;
  20062     uint32_t _flag_k = FK_NONE;
  20063     uint32_t _flag_a = 0, _flag_b = 0;
  20064     uint32_t _itail_tgt = 0;
  20065     RECOMP_REGS_LOCALS
  20066     RECOMP_ENTER(0x38033170u);
  20067 
  20068 L_38033170:
  20069     PUSH32(esp, ebp); /* 0x38033170: push ebp */
  20070     ebp = esp; /* 0x38033171: mov ebp, esp */
  20071     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
  20072     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20073     esp = esp - 0x24u; /* 0x38033173: sub esp, 0x24 */
  20074     _flag_k = FK_CMP;
  20075     eax = MEM32(ebp + 0x10); /* 0x38033176: mov eax, dword ptr [ebp + 0x10] */
  20076     PUSH32(esp, ebx); /* 0x38033179: push ebx */
  20077     ebx = ecx; /* 0x3803317A: mov ebx, ecx */
  20078     ecx = MEM32(eax + 0xC); /* 0x3803317C: mov ecx, dword ptr [eax + 0xc] */
  20079     fp_push(*(float*)&MEM32(ecx + 0x8264)); /* 0x3803317F: fld dword ptr [ecx + 0x8264] */
  20080     edx = ebx + 0x6C; /* 0x38033185: lea edx, [ebx + 0x6c] */
  20081     eax = MEM32(edx); /* 0x38033188: mov eax, dword ptr [edx] */
  20082     ecx = MEM32(edx + 0x4); /* 0x3803318A: mov ecx, dword ptr [edx + 4] */
  20083     edx = MEM32(edx + 0x8); /* 0x3803318D: mov edx, dword ptr [edx + 8] */
  20084     MEM32(ebp + (-0xC)) = eax; /* 0x38033190: mov dword ptr [ebp - 0xc], eax */
  20085     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38033193: fld dword ptr [ebp - 0xc] */
  20086     MEM32(ebp + (-0x8)) = ecx; /* 0x38033196: mov dword ptr [ebp - 8], ecx */
  20087     _st[0] *= _st[1]; /* 0x38033199: fmul st(1) */
  20088     MEM32(ebp + (-0x4)) = edx; /* 0x3803319B: mov dword ptr [ebp - 4], edx */
  20089     PUSH32(esp, esi); /* 0x3803319E: push esi */
  20090     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3803319F: fstp dword ptr [ebp - 0xc] */
  20091     eax = MEM32(ebp + (-0xC)); /* 0x380331A2: mov eax, dword ptr [ebp - 0xc] */
  20092     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x380331A5: fld dword ptr [ebp - 8] */
  20093     esi = MEM32(ebp + 0xC); /* 0x380331A8: mov esi, dword ptr [ebp + 0xc] */
  20094     _st[0] *= _st[1]; /* 0x380331AB: fmul st(1) */
  20095     MEM32(ebp + (-0x18)) = eax; /* 0x380331AD: mov dword ptr [ebp - 0x18], eax */
  20096     PUSH32(esp, edi); /* 0x380331B0: push edi */
  20097     PUSH32(esp, esi); /* 0x380331B1: push esi */
  20098     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380331B2: fstp dword ptr [ebp - 8] */
  20099     ecx = MEM32(ebp + (-0x8)); /* 0x380331B5: mov ecx, dword ptr [ebp - 8] */
  20100     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x380331B8: fld dword ptr [ebp - 4] */
  20101     MEM32(ebp + (-0x14)) = ecx; /* 0x380331BB: mov dword ptr [ebp - 0x14], ecx */
  20102     _st[0] *= _st[1]; /* 0x380331BE: fmul st(1) */
  20103     eax = ecx; /* 0x380331C0: mov eax, ecx */
  20104     ecx = MEM32(ebp + 0x8); /* 0x380331C2: mov ecx, dword ptr [ebp + 8] */
  20105     MEM32(ebp + (-0x14)) = eax; /* 0x380331C5: mov dword ptr [ebp - 0x14], eax */
  20106     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x380331C8: fstp dword ptr [ebp - 4] */
  20107     edx = MEM32(ebp + (-0x4)); /* 0x380331CB: mov edx, dword ptr [ebp - 4] */
  20108     MEM32(ebp + (-0x10)) = edx; /* 0x380331CE: mov dword ptr [ebp - 0x10], edx */
  20109     edx = MEM32(ecx); /* 0x380331D1: mov edx, dword ptr [ecx] */
  20110     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380331D3: fstp st(0) */
  20111     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x380331D5: fld dword ptr [ebp - 0xc] */
  20112     eax = MEM32(ecx + 0x4); /* 0x380331D8: mov eax, dword ptr [ecx + 4] */
  20113     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x380331DB: fadd dword ptr [0x3804e8cc] */
  20114     ecx = MEM32(ecx + 0x8); /* 0x380331E1: mov ecx, dword ptr [ecx + 8] */
  20115     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380331E4: fld dword ptr [ebp - 0x10] */
  20116     MEM32(ebp + (-0xC)) = edx; /* 0x380331E7: mov dword ptr [ebp - 0xc], edx */
  20117     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x380331EA: fadd dword ptr [0x3804e8cc] */
  20118     MEM32(ebp + (-0x8)) = eax; /* 0x380331F0: mov dword ptr [ebp - 8], eax */
  20119     MEM32(ebp + (-0x4)) = ecx; /* 0x380331F3: mov dword ptr [ebp - 4], ecx */
  20120     edx = esi; /* 0x380331F6: mov edx, esi */
  20121     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380331F8: fstp dword ptr [ebp - 0x10] */
  20122     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x380331FB: fld dword ptr [ebp - 0xc] */
  20123     _st[0] -= _st[1]; /* 0x380331FE: fsub st(1) */
  20124     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38033200: fstp dword ptr [ebp - 0xc] */
  20125     eax = MEM32(ebp + (-0xC)); /* 0x38033203: mov eax, dword ptr [ebp - 0xc] */
  20126     MEM32(edx) = eax; /* 0x38033206: mov dword ptr [edx], eax */
  20127     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38033208: fstp st(0) */
  20128     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3803320A: fld dword ptr [ebp - 8] */
  20129     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803320D: fsub dword ptr [ebp - 0x14] */
  20130     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38033210: fstp dword ptr [ebp - 8] */
  20131     ecx = MEM32(ebp + (-0x8)); /* 0x38033213: mov ecx, dword ptr [ebp - 8] */
  20132     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x38033216: fld dword ptr [ebp - 4] */
  20133     MEM32(edx + 0x4) = ecx; /* 0x38033219: mov dword ptr [edx + 4], ecx */
  20134     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3803321C: fsub dword ptr [ebp - 0x10] */
  20135     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803321F: fstp dword ptr [ebp - 4] */
  20136     eax = MEM32(ebp + (-0x4)); /* 0x38033222: mov eax, dword ptr [ebp - 4] */
  20137     MEM32(edx + 0x8) = eax; /* 0x38033225: mov dword ptr [edx + 8], eax */
  20138     ecx = MEM32(ebx + 0x48); /* 0x38033228: mov ecx, dword ptr [ebx + 0x48] */
  20139     edi = MEM32(ebx + 0x44); /* 0x3803322B: mov edi, dword ptr [ebx + 0x44] */
  20140     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
  20141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20142     edi = edi - ecx; /* 0x3803322E: sub edi, ecx */
  20143     _flag_k = FK_CMP;
  20144     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
  20145     edi = edi & 3; /* 0x38033230: and edi, 3 */
  20146     _cf = 0;
  20147     _flag_k = FK_TEST;
  20148     if (4u) _cf = (((edi) >> 28) & 1u); /* 0x38033233: shl edi, 4 */
  20149     if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20150     edi = edi << 4u; /* 0x38033233: shl edi, 4 */
  20151     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3806EEA0u);
  20152     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20153     edi = edi + 0x3806EEA0u; /* 0x38033236: add edi, 0x3806eea0 */
  20154     _flag_k = FK_ADD;
  20155     ecx = edi; /* 0x3803323C: mov ecx, edi */
  20156     edx = MEM32(ecx); /* 0x3803323E: mov edx, dword ptr [ecx] */
  20157     eax = MEM32(ecx + 0x4); /* 0x38033240: mov eax, dword ptr [ecx + 4] */
  20158     ecx = MEM32(ecx + 0x8); /* 0x38033243: mov ecx, dword ptr [ecx + 8] */
  20159     MEM32(ebp + (-0x1C)) = ecx; /* 0x38033246: mov dword ptr [ebp - 0x1c], ecx */
  20160     ecx = ebp + (-0x24); /* 0x38033249: lea ecx, [ebp - 0x24] */
  20161     MEM32(ebp + (-0x24)) = edx; /* 0x3803324C: mov dword ptr [ebp - 0x24], edx */
  20162     MEM32(ebp + (-0x20)) = eax; /* 0x3803324F: mov dword ptr [ebp - 0x20], eax */
  20163     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38033252: call dword ptr [0x3804e4c8] */
  20164     RECOMP_FLAGS_IN();
  20165     edx = MEM32(eax); /* 0x38033258: mov edx, dword ptr [eax] */
  20166     MEM32(ebp + (-0xC)) = edx; /* 0x3803325A: mov dword ptr [ebp - 0xc], edx */
  20167     ecx = MEM32(eax + 0x4); /* 0x3803325D: mov ecx, dword ptr [eax + 4] */
  20168     MEM32(ebp + (-0x8)) = ecx; /* 0x38033260: mov dword ptr [ebp - 8], ecx */
  20169     edx = MEM32(eax + 0x8); /* 0x38033263: mov edx, dword ptr [eax + 8] */
  20170     eax = edi; /* 0x38033266: mov eax, edi */
  20171     ecx = MEM32(eax); /* 0x38033268: mov ecx, dword ptr [eax] */
  20172     MEM32(ebp + (-0x24)) = ecx; /* 0x3803326A: mov dword ptr [ebp - 0x24], ecx */
  20173     MEM32(ebp + (-0x4)) = edx; /* 0x3803326D: mov dword ptr [ebp - 4], edx */
  20174     edx = MEM32(eax + 0x4); /* 0x38033270: mov edx, dword ptr [eax + 4] */
  20175     eax = MEM32(eax + 0x8); /* 0x38033273: mov eax, dword ptr [eax + 8] */
  20176     ecx = ebp + (-0xC); /* 0x38033276: lea ecx, [ebp - 0xc] */
  20177     PUSH32(esp, ecx); /* 0x38033279: push ecx */
  20178     ecx = ebp + (-0x24); /* 0x3803327A: lea ecx, [ebp - 0x24] */
  20179     MEM32(ebp + (-0x20)) = edx; /* 0x3803327D: mov dword ptr [ebp - 0x20], edx */
  20180     MEM32(ebp + (-0x1C)) = eax; /* 0x38033280: mov dword ptr [ebp - 0x1c], eax */
  20181     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38033283: call dword ptr [0x3804e4c8] */
  20182     RECOMP_FLAGS_IN();
  20183     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x38033289: fld dword ptr [edi + 0xc] */
  20184     edx = MEM32(eax); /* 0x3803328C: mov edx, dword ptr [eax] */
  20185     _st[0] += _st[0]; /* 0x3803328E: fadd st(0), st(0) */
  20186     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38033290: fld dword ptr [ebp - 0xc] */
  20187     MEM32(ebp + (-0x18)) = edx; /* 0x38033293: mov dword ptr [ebp - 0x18], edx */
  20188     ecx = MEM32(eax + 0x4); /* 0x38033296: mov ecx, dword ptr [eax + 4] */
  20189     _st[0] *= _st[1]; /* 0x38033299: fmul st(1) */
  20190     MEM32(ebp + (-0x14)) = ecx; /* 0x3803329B: mov dword ptr [ebp - 0x14], ecx */
  20191     edx = MEM32(eax + 0x8); /* 0x3803329E: mov edx, dword ptr [eax + 8] */
  20192     MEM32(ebp + (-0x10)) = edx; /* 0x380332A1: mov dword ptr [ebp - 0x10], edx */
  20193     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x380332A4: fstp dword ptr [ebp - 0xc] */
  20194     eax = ebp + (-0x18); /* 0x380332A7: lea eax, [ebp - 0x18] */
  20195     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x380332AA: fld dword ptr [ebp - 8] */
  20196     PUSH32(esp, eax); /* 0x380332AD: push eax */
  20197     _st[0] *= _st[1]; /* 0x380332AE: fmul st(1) */
  20198     ecx = esi; /* 0x380332B0: mov ecx, esi */
  20199     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380332B2: fstp dword ptr [ebp - 8] */
  20200     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x380332B5: fld dword ptr [ebp - 4] */
  20201     _st[0] *= _st[1]; /* 0x380332B8: fmul st(1) */
  20202     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x380332BA: fstp dword ptr [ebp - 4] */
  20203     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380332BD: fstp st(0) */
  20204     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380332BF: fld dword ptr [ebp - 0x18] */
  20205     _st[0] += _st[0]; /* 0x380332C2: fadd st(0), st(0) */
  20206     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380332C4: fstp dword ptr [ebp - 0x18] */
  20207     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x380332C7: fld dword ptr [ebp - 0x14] */
  20208     _st[0] += _st[0]; /* 0x380332CA: fadd st(0), st(0) */
  20209     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380332CC: fstp dword ptr [ebp - 0x14] */
  20210     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380332CF: fld dword ptr [ebp - 0x10] */
  20211     _st[0] += _st[0]; /* 0x380332D2: fadd st(0), st(0) */
  20212     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380332D4: fstp dword ptr [ebp - 0x10] */
  20213     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x380332D7: fld dword ptr [ebp - 0xc] */
  20214     _st[0] += (double)*(float*)ADDR(esi); /* 0x380332DA: fadd dword ptr [esi] */
  20215     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x380332DC: fstp dword ptr [esi] */
  20216     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x380332DE: fld dword ptr [ebp - 8] */
  20217     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x380332E1: fadd dword ptr [esi + 4] */
  20218     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x380332E4: fstp dword ptr [esi + 4] */
  20219     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x380332E7: fld dword ptr [ebp - 4] */
  20220     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x380332EA: fadd dword ptr [esi + 8] */
  20221     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x380332ED: fstp dword ptr [esi + 8] */
  20222     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x380332F0: call dword ptr [0x3804e4e8] */
  20223     RECOMP_FLAGS_IN();
  20224     fp_push(*(float*)&MEM32(ebx + 0x54)); /* 0x380332F6: fld dword ptr [ebx + 0x54] */
  20225     edi = POP32_VAL(esp); /* 0x380332F9: pop edi */
  20226     _st[0] += (double)*(float*)ADDR(esi); /* 0x380332FA: fadd dword ptr [esi] */
  20227     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x380332FC: fstp dword ptr [esi] */
  20228     fp_push(*(float*)&MEM32(ebx + 0x58)); /* 0x380332FE: fld dword ptr [ebx + 0x58] */
  20229     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x38033301: fadd dword ptr [esi + 4] */
  20230     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x38033304: fstp dword ptr [esi + 4] */
  20231     fp_push(*(float*)&MEM32(ebx + 0x5C)); /* 0x38033307: fld dword ptr [ebx + 0x5c] */
  20232     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3803330A: fadd dword ptr [esi + 8] */
  20233     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3803330D: fstp dword ptr [esi + 8] */
  20234     esi = POP32_VAL(esp); /* 0x38033310: pop esi */
  20235     ebx = POP32_VAL(esp); /* 0x38033311: pop ebx */
  20236     esp = ebp; /* 0x38033312: mov esp, ebp */
  20237     ebp = POP32_VAL(esp); /* 0x38033314: pop ebp */
  20238     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38033315: ret 0xc */
  20239     RECOMP_REGS_OUT();
  20240 }
  20241 
  20242 void sub_38033320(void) {
  20243     int _fpu_cmp = 0;
  20244     uint32_t _cf = 0;
  20245     int _df = 1;
  20246     uint32_t _flag_k = FK_NONE;
  20247     uint32_t _flag_a = 0, _flag_b = 0;
  20248     uint32_t _itail_tgt = 0;
  20249     RECOMP_REGS_LOCALS
  20250     RECOMP_ENTER(0x38033320u);
  20251 
  20252 L_38033320:
  20253     PUSH32(esp, ebp); /* 0x38033320: push ebp */
  20254     ebp = esp; /* 0x38033321: mov ebp, esp */
  20255     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  20256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20257     esp = esp - 0x18u; /* 0x38033323: sub esp, 0x18 */
  20258     _flag_k = FK_CMP;
  20259     eax = MEM32(ebp + 0x10); /* 0x38033326: mov eax, dword ptr [ebp + 0x10] */
  20260     edx = MEM32(ebp + 0x8); /* 0x38033329: mov edx, dword ptr [ebp + 8] */
  20261     PUSH32(esp, esi); /* 0x3803332C: push esi */
  20262     esi = MEM32(ebp + 0xC); /* 0x3803332D: mov esi, dword ptr [ebp + 0xc] */
  20263     PUSH32(esp, edi); /* 0x38033330: push edi */
  20264     edi = ecx; /* 0x38033331: mov edi, ecx */
  20265     ecx = MEM32(eax + 0xC); /* 0x38033333: mov ecx, dword ptr [eax + 0xc] */
  20266     fp_push(*(float*)&MEM32(ecx + 0x8264)); /* 0x38033336: fld dword ptr [ecx + 0x8264] */
  20267     PUSH32(esp, eax); /* 0x3803333C: push eax */
  20268     PUSH32(esp, esi); /* 0x3803333D: push esi */
  20269     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x3803333E: fstp dword ptr [ebp + 0x10] */
  20270     PUSH32(esp, edx); /* 0x38033341: push edx */
  20271     ecx = edi; /* 0x38033342: mov ecx, edi */
  20272     RECOMP_ICALL(0x38032F60u); /* 0x38033344: call 0x38032f60 */ /* not lifted */
  20273     RECOMP_FLAGS_IN();
  20274     eax = edi + 0x6C; /* 0x38033349: lea eax, [edi + 0x6c] */
  20275     ecx = MEM32(eax); /* 0x3803334C: mov ecx, dword ptr [eax] */
  20276     edx = MEM32(eax + 0x4); /* 0x3803334E: mov edx, dword ptr [eax + 4] */
  20277     eax = MEM32(eax + 0x8); /* 0x38033351: mov eax, dword ptr [eax + 8] */
  20278     MEM32(ebp + (-0xC)) = ecx; /* 0x38033354: mov dword ptr [ebp - 0xc], ecx */
  20279     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38033357: fld dword ptr [ebp - 0xc] */
  20280     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x3803335A: fmul dword ptr [ebp + 0x10] */
  20281     MEM32(ebp + (-0x8)) = edx; /* 0x3803335D: mov dword ptr [ebp - 8], edx */
  20282     MEM32(ebp + (-0x4)) = eax; /* 0x38033360: mov dword ptr [ebp - 4], eax */
  20283     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x60u);
  20284     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20285     edi = edi + 0x60u; /* 0x38033363: add edi, 0x60 */
  20286     _flag_k = FK_ADD;
  20287     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38033366: fstp dword ptr [ebp - 0xc] */
  20288     ecx = MEM32(ebp + (-0xC)); /* 0x38033369: mov ecx, dword ptr [ebp - 0xc] */
  20289     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3803336C: fld dword ptr [ebp - 8] */
  20290     MEM32(ebp + (-0x18)) = ecx; /* 0x3803336F: mov dword ptr [ebp - 0x18], ecx */
  20291     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x38033372: fmul dword ptr [ebp + 0x10] */
  20292     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38033375: fstp dword ptr [ebp - 8] */
  20293     edx = MEM32(ebp + (-0x8)); /* 0x38033378: mov edx, dword ptr [ebp - 8] */
  20294     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3803337B: fld dword ptr [ebp - 4] */
  20295     ecx = edx; /* 0x3803337E: mov ecx, edx */
  20296     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x38033380: fmul dword ptr [ebp + 0x10] */
  20297     MEM32(ebp + (-0x14)) = edx; /* 0x38033383: mov dword ptr [ebp - 0x14], edx */
  20298     edx = MEM32(edi); /* 0x38033386: mov edx, dword ptr [edi] */
  20299     MEM32(ebp + (-0x14)) = ecx; /* 0x38033388: mov dword ptr [ebp - 0x14], ecx */
  20300     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803338B: fstp dword ptr [ebp - 4] */
  20301     eax = MEM32(ebp + (-0x4)); /* 0x3803338E: mov eax, dword ptr [ebp - 4] */
  20302     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38033391: fld dword ptr [ebp - 0xc] */
  20303     MEM32(ebp + (-0x10)) = eax; /* 0x38033394: mov dword ptr [ebp - 0x10], eax */
  20304     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38033397: fadd dword ptr [0x3804e8cc] */
  20305     eax = MEM32(edi + 0x4); /* 0x3803339D: mov eax, dword ptr [edi + 4] */
  20306     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380333A0: fld dword ptr [ebp - 0x10] */
  20307     ecx = MEM32(edi + 0x8); /* 0x380333A3: mov ecx, dword ptr [edi + 8] */
  20308     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x380333A6: fadd dword ptr [0x3804e8cc] */
  20309     MEM32(ebp + (-0xC)) = edx; /* 0x380333AC: mov dword ptr [ebp - 0xc], edx */
  20310     MEM32(ebp + (-0x8)) = eax; /* 0x380333AF: mov dword ptr [ebp - 8], eax */
  20311     MEM32(ebp + (-0x4)) = ecx; /* 0x380333B2: mov dword ptr [ebp - 4], ecx */
  20312     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380333B5: fstp dword ptr [ebp - 0x10] */
  20313     edi = POP32_VAL(esp); /* 0x380333B8: pop edi */
  20314     _st[0] = (double)*(float*)ADDR(ebp + (-0xC)) - _st[0]; /* 0x380333B9: fsubr dword ptr [ebp - 0xc] */
  20315     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x380333BC: fld dword ptr [ebp - 8] */
  20316     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x380333BF: fsub dword ptr [ebp - 0x14] */
  20317     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380333C2: fstp dword ptr [ebp - 8] */
  20318     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x380333C5: fld dword ptr [ebp - 4] */
  20319     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x380333C8: fsub dword ptr [ebp - 0x10] */
  20320     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x380333CB: fstp dword ptr [ebp - 4] */
  20321     _st[0] += (double)*(float*)ADDR(esi); /* 0x380333CE: fadd dword ptr [esi] */
  20322     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x380333D0: fstp dword ptr [esi] */
  20323     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x380333D2: fld dword ptr [ebp - 8] */
  20324     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x380333D5: fadd dword ptr [esi + 4] */
  20325     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x380333D8: fstp dword ptr [esi + 4] */
  20326     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x380333DB: fld dword ptr [ebp - 4] */
  20327     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x380333DE: fadd dword ptr [esi + 8] */
  20328     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x380333E1: fstp dword ptr [esi + 8] */
  20329     esi = POP32_VAL(esp); /* 0x380333E4: pop esi */
  20330     esp = ebp; /* 0x380333E5: mov esp, ebp */
  20331     ebp = POP32_VAL(esp); /* 0x380333E7: pop ebp */
  20332     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x380333E8: ret 0xc */
  20333     RECOMP_REGS_OUT();
  20334 }
  20335 
  20336 void sub_380333F0(void) {
  20337     int _fpu_cmp = 0;
  20338     uint32_t _cf = 0;
  20339     int _df = 1;
  20340     uint32_t _flag_k = FK_NONE;
  20341     uint32_t _flag_a = 0, _flag_b = 0;
  20342     uint32_t _itail_tgt = 0;
  20343     RECOMP_REGS_LOCALS
  20344     RECOMP_ENTER(0x380333F0u);
  20345 
  20346 L_380333F0:
  20347     PUSH32(esp, ebp); /* 0x380333F0: push ebp */
  20348     ebp = esp; /* 0x380333F1: mov ebp, esp */
  20349     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
  20350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20351     esp = esp - 0x24u; /* 0x380333F3: sub esp, 0x24 */
  20352     _flag_k = FK_CMP;
  20353     edx = MEM32(ebp + 0x10); /* 0x380333F6: mov edx, dword ptr [ebp + 0x10] */
  20354     eax = MEM32(edx + 0xC); /* 0x380333F9: mov eax, dword ptr [edx + 0xc] */
  20355     fp_push(*(float*)&MEM32(eax + 0x8264)); /* 0x380333FC: fld dword ptr [eax + 0x8264] */
  20356     PUSH32(esp, esi); /* 0x38033402: push esi */
  20357     eax = ecx + 0x6C; /* 0x38033403: lea eax, [ecx + 0x6c] */
  20358     esi = MEM32(eax); /* 0x38033406: mov esi, dword ptr [eax] */
  20359     MEM32(ebp + (-0xC)) = esi; /* 0x38033408: mov dword ptr [ebp - 0xc], esi */
  20360     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3803340B: fld dword ptr [ebp - 0xc] */
  20361     esi = MEM32(eax + 0x4); /* 0x3803340E: mov esi, dword ptr [eax + 4] */
  20362     eax = MEM32(eax + 0x8); /* 0x38033411: mov eax, dword ptr [eax + 8] */
  20363     _st[0] *= _st[1]; /* 0x38033414: fmul st(1) */
  20364     MEM32(ebp + (-0x8)) = esi; /* 0x38033416: mov dword ptr [ebp - 8], esi */
  20365     MEM32(ebp + (-0x4)) = eax; /* 0x38033419: mov dword ptr [ebp - 4], eax */
  20366     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3803341C: fstp dword ptr [ebp - 0xc] */
  20367     eax = MEM32(ebp + (-0xC)); /* 0x3803341F: mov eax, dword ptr [ebp - 0xc] */
  20368     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38033422: fld dword ptr [ebp - 8] */
  20369     MEM32(ebp + (-0x24)) = eax; /* 0x38033425: mov dword ptr [ebp - 0x24], eax */
  20370     _st[0] *= _st[1]; /* 0x38033428: fmul st(1) */
  20371     PUSH32(esp, edi); /* 0x3803342A: push edi */
  20372     PUSH32(esp, edx); /* 0x3803342B: push edx */
  20373     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803342C: fstp dword ptr [ebp - 8] */
  20374     eax = MEM32(ebp + (-0x8)); /* 0x3803342F: mov eax, dword ptr [ebp - 8] */
  20375     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x38033432: fld dword ptr [ebp - 4] */
  20376     MEM32(ebp + (-0x20)) = eax; /* 0x38033435: mov dword ptr [ebp - 0x20], eax */
  20377     _st[0] *= _st[1]; /* 0x38033438: fmul st(1) */
  20378     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803343A: fstp dword ptr [ebp - 4] */
  20379     eax = MEM32(ebp + (-0x4)); /* 0x3803343D: mov eax, dword ptr [ebp - 4] */
  20380     MEM32(ebp + (-0x1C)) = eax; /* 0x38033440: mov dword ptr [ebp - 0x1c], eax */
  20381     eax = MEM32(ebp + (-0x20)); /* 0x38033443: mov eax, dword ptr [ebp - 0x20] */
  20382     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38033446: fstp st(0) */
  20383     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38033448: fld dword ptr [ebp - 0xc] */
  20384     MEM32(ebp + (-0x20)) = eax; /* 0x3803344B: mov dword ptr [ebp - 0x20], eax */
  20385     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x3803344E: fadd dword ptr [0x3804e8cc] */
  20386     eax = ecx + 0x60; /* 0x38033454: lea eax, [ecx + 0x60] */
  20387     esi = MEM32(eax); /* 0x38033457: mov esi, dword ptr [eax] */
  20388     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38033459: fld dword ptr [ebp - 0x1c] */
  20389     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x3803345C: fadd dword ptr [0x3804e8cc] */
  20390     MEM32(ebp + (-0x18)) = esi; /* 0x38033462: mov dword ptr [ebp - 0x18], esi */
  20391     esi = MEM32(eax + 0x4); /* 0x38033465: mov esi, dword ptr [eax + 4] */
  20392     eax = MEM32(eax + 0x8); /* 0x38033468: mov eax, dword ptr [eax + 8] */
  20393     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803346B: fstp dword ptr [ebp - 0x1c] */
  20394     MEM32(ebp + (-0x14)) = esi; /* 0x3803346E: mov dword ptr [ebp - 0x14], esi */
  20395     MEM32(ebp + (-0x10)) = eax; /* 0x38033471: mov dword ptr [ebp - 0x10], eax */
  20396     _st[0] = (double)*(float*)ADDR(ebp + (-0x18)) - _st[0]; /* 0x38033474: fsubr dword ptr [ebp - 0x18] */
  20397     eax = MEM32(ebp + 0x8); /* 0x38033477: mov eax, dword ptr [ebp + 8] */
  20398     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803347A: fld dword ptr [ebp - 0x14] */
  20399     esi = MEM32(eax); /* 0x3803347D: mov esi, dword ptr [eax] */
  20400     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3803347F: fsub dword ptr [ebp - 0x20] */
  20401     MEM32(ebp + (-0xC)) = esi; /* 0x38033482: mov dword ptr [ebp - 0xc], esi */
  20402     esi = MEM32(eax + 0x4); /* 0x38033485: mov esi, dword ptr [eax + 4] */
  20403     eax = MEM32(eax + 0x8); /* 0x38033488: mov eax, dword ptr [eax + 8] */
  20404     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803348B: fstp dword ptr [ebp - 0x14] */
  20405     MEM32(ebp + (-0x8)) = esi; /* 0x3803348E: mov dword ptr [ebp - 8], esi */
  20406     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x38033491: fld dword ptr [ebp - 0x10] */
  20407     MEM32(ebp + (-0x4)) = eax; /* 0x38033494: mov dword ptr [ebp - 4], eax */
  20408     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x38033497: fsub dword ptr [ebp - 0x1c] */
  20409     eax = MEM32(ebp + 0xC); /* 0x3803349A: mov eax, dword ptr [ebp + 0xc] */
  20410     esi = eax; /* 0x3803349D: mov esi, eax */
  20411     PUSH32(esp, eax); /* 0x3803349F: push eax */
  20412     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380334A0: fstp dword ptr [ebp - 0x10] */
  20413     PUSH32(esp, eax); /* 0x380334A3: push eax */
  20414     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x380334A4: fld dword ptr [ebp - 0xc] */
  20415     _st[0] -= _st[1]; /* 0x380334A7: fsub st(1) */
  20416     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x380334A9: fstp dword ptr [ebp - 0xc] */
  20417     edi = MEM32(ebp + (-0xC)); /* 0x380334AC: mov edi, dword ptr [ebp - 0xc] */
  20418     MEM32(esi) = edi; /* 0x380334AF: mov dword ptr [esi], edi */
  20419     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380334B1: fstp st(0) */
  20420     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x380334B3: fld dword ptr [ebp - 8] */
  20421     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x380334B6: fsub dword ptr [ebp - 0x14] */
  20422     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x380334B9: fstp dword ptr [ebp - 8] */
  20423     edi = MEM32(ebp + (-0x8)); /* 0x380334BC: mov edi, dword ptr [ebp - 8] */
  20424     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x380334BF: fld dword ptr [ebp - 4] */
  20425     MEM32(esi + 0x4) = edi; /* 0x380334C2: mov dword ptr [esi + 4], edi */
  20426     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x380334C5: fsub dword ptr [ebp - 0x10] */
  20427     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x380334C8: fstp dword ptr [ebp - 4] */
  20428     edi = MEM32(ebp + (-0x4)); /* 0x380334CB: mov edi, dword ptr [ebp - 4] */
  20429     MEM32(esi + 0x8) = edi; /* 0x380334CE: mov dword ptr [esi + 8], edi */
  20430     RECOMP_ICALL(0x38033170u); /* 0x380334D1: call 0x38033170 */ /* not lifted */
  20431     RECOMP_FLAGS_IN();
  20432     edi = POP32_VAL(esp); /* 0x380334D6: pop edi */
  20433     esi = POP32_VAL(esp); /* 0x380334D7: pop esi */
  20434     esp = ebp; /* 0x380334D8: mov esp, ebp */
  20435     ebp = POP32_VAL(esp); /* 0x380334DA: pop ebp */
  20436     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x380334DB: ret 0xc */
  20437     RECOMP_REGS_OUT();
  20438 }
  20439 
  20440 void sub_380334E0(void) {
  20441     int _fpu_cmp = 0;
  20442     uint32_t _cf = 0;
  20443     int _df = 1;
  20444     uint32_t _flag_k = FK_NONE;
  20445     uint32_t _flag_a = 0, _flag_b = 0;
  20446     uint32_t _itail_tgt = 0;
  20447     RECOMP_REGS_LOCALS
  20448     RECOMP_ENTER(0x380334E0u);
  20449 
  20450 L_380334E0:
  20451     PUSH32(esp, ebp); /* 0x380334E0: push ebp */
  20452     ebp = esp; /* 0x380334E1: mov ebp, esp */
  20453     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
  20454     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20455     esp = esp - 0x34u; /* 0x380334E3: sub esp, 0x34 */
  20456     _flag_k = FK_CMP;
  20457     eax = MEM32(ecx + 0x44); /* 0x380334E6: mov eax, dword ptr [ecx + 0x44] */
  20458     edx = MEM32(ecx + 0x48); /* 0x380334E9: mov edx, dword ptr [ecx + 0x48] */
  20459     ecx = MEM32(ebp + 0x8); /* 0x380334EC: mov ecx, dword ptr [ebp + 8] */
  20460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  20461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20462     eax = eax - edx; /* 0x380334EF: sub eax, edx */
  20463     _flag_k = FK_CMP;
  20464     edx = MEM32(ecx); /* 0x380334F1: mov edx, dword ptr [ecx] */
  20465     MEM32(ebp + (-0x10)) = edx; /* 0x380334F3: mov dword ptr [ebp - 0x10], edx */
  20466     edx = MEM32(ecx + 0x4); /* 0x380334F6: mov edx, dword ptr [ecx + 4] */
  20467     ecx = MEM32(ecx + 0x8); /* 0x380334F9: mov ecx, dword ptr [ecx + 8] */
  20468     MEM32(ebp + (-0xC)) = edx; /* 0x380334FC: mov dword ptr [ebp - 0xc], edx */
  20469     MEM32(ebp + (-0x8)) = ecx; /* 0x380334FF: mov dword ptr [ebp - 8], ecx */
  20470     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x38033502: fld dword ptr [ebp - 8] */
  20471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  20472     eax = eax & 3; /* 0x38033505: and eax, 3 */
  20473     _cf = 0;
  20474     _flag_k = FK_TEST;
  20475     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x38033508: shl eax, 4 */
  20476     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20477     eax = eax << 4u; /* 0x38033508: shl eax, 4 */
  20478     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3806EEA0u);
  20479     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20480     eax = eax + 0x3806EEA0u; /* 0x3803350B: add eax, 0x3806eea0 */
  20481     _flag_k = FK_ADD;
  20482     edx = eax; /* 0x38033510: mov edx, eax */
  20483     ecx = MEM32(edx); /* 0x38033512: mov ecx, dword ptr [edx] */
  20484     MEM32(ebp + (-0x1C)) = ecx; /* 0x38033514: mov dword ptr [ebp - 0x1c], ecx */
  20485     ecx = MEM32(edx + 0x4); /* 0x38033517: mov ecx, dword ptr [edx + 4] */
  20486     edx = MEM32(edx + 0x8); /* 0x3803351A: mov edx, dword ptr [edx + 8] */
  20487     MEM32(ebp + (-0x18)) = ecx; /* 0x3803351D: mov dword ptr [ebp - 0x18], ecx */
  20488     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x38033520: fmul dword ptr [ebp - 0x18] */
  20489     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x38033523: fld dword ptr [ebp - 0xc] */
  20490     MEM32(ebp + (-0x14)) = edx; /* 0x38033526: mov dword ptr [ebp - 0x14], edx */
  20491     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x38033529: fmul dword ptr [ebp - 0x14] */
  20492     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803352C: fsubp st(1) */
  20493     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3803352E: fld dword ptr [ebp - 0x10] */
  20494     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x38033531: fmul dword ptr [ebp - 0x14] */
  20495     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38033534: fld dword ptr [ebp - 0x1c] */
  20496     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x38033537: fmul dword ptr [ebp - 8] */
  20497     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803353A: fsubp st(1) */
  20498     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3803353C: fld dword ptr [ebp - 0xc] */
  20499     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3803353F: fmul dword ptr [ebp - 0x1c] */
  20500     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x38033542: fld dword ptr [ebp - 0x10] */
  20501     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x38033545: fmul dword ptr [ebp - 0x18] */
  20502     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38033548: fsubp st(1) */
  20503     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803354A: fstp dword ptr [ebp - 0x14] */
  20504     fp_push(_st[1]); /* 0x3803354D: fld st(1) */
  20505     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803354F: fstp dword ptr [ebp - 0x1c] */
  20506     ecx = MEM32(ebp + (-0x1C)); /* 0x38033552: mov ecx, dword ptr [ebp - 0x1c] */
  20507     MEM32(ebp + (-0x34)) = ecx; /* 0x38033555: mov dword ptr [ebp - 0x34], ecx */
  20508     ecx = MEM32(ebp + (-0x14)); /* 0x38033558: mov ecx, dword ptr [ebp - 0x14] */
  20509     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803355B: fst dword ptr [ebp - 0x18] */
  20510     edx = MEM32(ebp + (-0x18)); /* 0x3803355E: mov edx, dword ptr [ebp - 0x18] */
  20511     MEM32(ebp + (-0x30)) = edx; /* 0x38033561: mov dword ptr [ebp - 0x30], edx */
  20512     MEM32(ebp + (-0x2C)) = ecx; /* 0x38033564: mov dword ptr [ebp - 0x2c], ecx */
  20513     edx = eax; /* 0x38033567: mov edx, eax */
  20514     ecx = MEM32(edx); /* 0x38033569: mov ecx, dword ptr [edx] */
  20515     MEM32(ebp + (-0x28)) = ecx; /* 0x3803356B: mov dword ptr [ebp - 0x28], ecx */
  20516     ecx = MEM32(edx + 0x4); /* 0x3803356E: mov ecx, dword ptr [edx + 4] */
  20517     edx = MEM32(edx + 0x8); /* 0x38033571: mov edx, dword ptr [edx + 8] */
  20518     MEM32(ebp + (-0x24)) = ecx; /* 0x38033574: mov dword ptr [ebp - 0x24], ecx */
  20519     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38033577: fld dword ptr [ebp - 0x24] */
  20520     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803357A: fmul dword ptr [ebp - 0x14] */
  20521     MEM32(ebp + (-0x20)) = edx; /* 0x3803357D: mov dword ptr [ebp - 0x20], edx */
  20522     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38033580: fld dword ptr [ebp - 0x20] */
  20523     _st[0] *= _st[2]; /* 0x38033583: fmul st(2) */
  20524     { double _v = fp_pop(); _st[0] -= _v; } /* 0x38033585: fsubp st(1) */
  20525     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x38033587: fstp dword ptr [ebp - 4] */
  20526     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3803358A: fld dword ptr [ebp - 0x20] */
  20527     ecx = MEM32(ebp + (-0x4)); /* 0x3803358D: mov ecx, dword ptr [ebp - 4] */
  20528     _st[0] *= _st[2]; /* 0x38033590: fmul st(2) */
  20529     edx = ecx; /* 0x38033592: mov edx, ecx */
  20530     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38033594: fld dword ptr [ebp - 0x28] */
  20531     MEM32(ebp + (-0x1C)) = edx; /* 0x38033597: mov dword ptr [ebp - 0x1c], edx */
  20532     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803359A: fmul dword ptr [ebp - 0x14] */
  20533     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803359D: fsubp st(1) */
  20534     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3803359F: fld dword ptr [ebp - 0x28] */
  20535     MEM32(ebp + (-0x28)) = ecx; /* 0x380335A2: mov dword ptr [ebp - 0x28], ecx */
  20536     _st[0] *= _st[2]; /* 0x380335A5: fmul st(2) */
  20537     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x380335A7: fld dword ptr [ebp - 0x24] */
  20538     _st[0] *= _st[4]; /* 0x380335AA: fmul st(4) */
  20539     { double _v = fp_pop(); _st[0] -= _v; } /* 0x380335AC: fsubp st(1) */
  20540     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x380335AE: fstp dword ptr [ebp - 0x20] */
  20541     edx = MEM32(ebp + (-0x20)); /* 0x380335B1: mov edx, dword ptr [ebp - 0x20] */
  20542     MEM32(ebp + (-0x14)) = edx; /* 0x380335B4: mov dword ptr [ebp - 0x14], edx */
  20543     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380335B7: fstp dword ptr [ebp - 0x24] */
  20544     ecx = MEM32(ebp + (-0x24)); /* 0x380335BA: mov ecx, dword ptr [ebp - 0x24] */
  20545     MEM32(ebp + (-0x18)) = ecx; /* 0x380335BD: mov dword ptr [ebp - 0x18], ecx */
  20546     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380335C0: fstp st(0) */
  20547     fp_push(*(float*)&MEM32(eax + 0xC)); /* 0x380335C2: fld dword ptr [eax + 0xc] */
  20548     _st[0] += _st[0]; /* 0x380335C5: fadd st(0), st(0) */
  20549     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x380335C7: fstp dword ptr [ebp + 8] */
  20550     eax = MEM32(ebp + 0xC); /* 0x380335CA: mov eax, dword ptr [ebp + 0xc] */
  20551     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x380335CD: fmul dword ptr [ebp + 8] */
  20552     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380335D0: fld dword ptr [ebp - 0x30] */
  20553     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x380335D3: fmul dword ptr [ebp + 8] */
  20554     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380335D6: fstp dword ptr [ebp - 0x30] */
  20555     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x380335D9: fld dword ptr [ebp - 0x2c] */
  20556     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x380335DC: fmul dword ptr [ebp + 8] */
  20557     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x380335DF: fstp dword ptr [ebp - 0x2c] */
  20558     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x380335E2: fld dword ptr [ebp - 4] */
  20559     _st[0] += _st[0]; /* 0x380335E5: fadd st(0), st(0) */
  20560     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x380335E7: fstp dword ptr [ebp - 0x1c] */
  20561     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x380335EA: fld dword ptr [ebp - 0x18] */
  20562     _st[0] += _st[0]; /* 0x380335ED: fadd st(0), st(0) */
  20563     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380335EF: fstp dword ptr [ebp - 0x18] */
  20564     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x380335F2: fld dword ptr [ebp - 0x14] */
  20565     _st[0] += _st[0]; /* 0x380335F5: fadd st(0), st(0) */
  20566     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380335F7: fstp dword ptr [ebp - 0x14] */
  20567     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x380335FA: fadd dword ptr [ebp - 0x10] */
  20568     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x380335FD: fld dword ptr [ebp - 0x30] */
  20569     _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x38033600: fadd dword ptr [ebp - 0xc] */
  20570     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38033603: fstp dword ptr [ebp - 0xc] */
  20571     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38033606: fld dword ptr [ebp - 0x2c] */
  20572     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x38033609: fadd dword ptr [ebp - 8] */
  20573     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803360C: fstp dword ptr [ebp - 8] */
  20574     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3803360F: fld dword ptr [ebp - 0x1c] */
  20575     _st[0] += _st[1]; /* 0x38033612: fadd st(1) */
  20576     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38033614: fstp dword ptr [ebp - 0x10] */
  20577     ecx = MEM32(ebp + (-0x10)); /* 0x38033617: mov ecx, dword ptr [ebp - 0x10] */
  20578     MEM32(eax) = ecx; /* 0x3803361A: mov dword ptr [eax], ecx */
  20579     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803361C: fstp st(0) */
  20580     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803361E: fld dword ptr [ebp - 0x18] */
  20581     _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x38033621: fadd dword ptr [ebp - 0xc] */
  20582     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x38033624: fstp dword ptr [ebp - 0xc] */
  20583     edx = MEM32(ebp + (-0xC)); /* 0x38033627: mov edx, dword ptr [ebp - 0xc] */
  20584     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803362A: fld dword ptr [ebp - 0x14] */
  20585     MEM32(eax + 0x4) = edx; /* 0x3803362D: mov dword ptr [eax + 4], edx */
  20586     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x38033630: fadd dword ptr [ebp - 8] */
  20587     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x38033633: fstp dword ptr [ebp - 8] */
  20588     ecx = MEM32(ebp + (-0x8)); /* 0x38033636: mov ecx, dword ptr [ebp - 8] */
  20589     MEM32(eax + 0x8) = ecx; /* 0x38033639: mov dword ptr [eax + 8], ecx */
  20590     esp = ebp; /* 0x3803363C: mov esp, ebp */
  20591     ebp = POP32_VAL(esp); /* 0x3803363E: pop ebp */
  20592     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3803363F: ret 0xc */
  20593     RECOMP_REGS_OUT();
  20594 }
  20595 
  20596 void sub_38033650(void) {
  20597     int _fpu_cmp = 0;
  20598     uint32_t _cf = 0;
  20599     int _df = 1;
  20600     uint32_t _flag_k = FK_NONE;
  20601     uint32_t _flag_a = 0, _flag_b = 0;
  20602     uint32_t _itail_tgt = 0;
  20603     RECOMP_REGS_LOCALS
  20604     RECOMP_ENTER(0x38033650u);
  20605 
  20606 L_38033650:
  20607     PUSH32(esp, ebp); /* 0x38033650: push ebp */
  20608     ebp = esp; /* 0x38033651: mov ebp, esp */
  20609     PUSH32(esp, 0xFFFFFFFFu); /* 0x38033653: push -1 */
  20610     PUSH32(esp, 0x3804CBB6u); /* 0x38033655: push 0x3804cbb6 */
  20611     eax = MEM32(FS_BASE + (0)); /* 0x3803365A: mov eax, dword ptr fs:[0] */
  20612     PUSH32(esp, eax); /* 0x38033660: push eax */
  20613     MEM32(FS_BASE + (0)) = esp; /* 0x38033661: mov dword ptr fs:[0], esp */
  20614     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x60u);
  20615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20616     esp = esp - 0x60u; /* 0x38033668: sub esp, 0x60 */
  20617     _flag_k = FK_CMP;
  20618     PUSH32(esp, ebx); /* 0x3803366B: push ebx */
  20619     ebx = MEM32(ebp + 0x8); /* 0x3803366C: mov ebx, dword ptr [ebp + 8] */
  20620     /* test ebx, ebx */ /* 0x3803366F: test ebx, ebx */
  20621     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  20622     _cf = 0;
  20623     _flag_k = FK_TEST;
  20624     PUSH32(esp, esi); /* 0x38033671: push esi */
  20625     PUSH32(esp, edi); /* 0x38033672: push edi */
  20626     edi = ecx; /* 0x38033673: mov edi, ecx */
  20627     if (TEST_S(_flag_a, _flag_b)) goto L_38033B87; /* 0x38033675: jl 0x38033b87 */
  20628 L_3803367B:
  20629     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20630     esi = 0; /* 0x3803367B: xor esi, esi */
  20631     _cf = 0;
  20632     _flag_k = FK_TEST;
  20633     SET_LO16(esi, MEM16(edi + 0x7C)); /* 0x3803367D: mov si, word ptr [edi + 0x7c] */
  20634     /* cmp ebx, esi */ /* 0x38033681: cmp ebx, esi */
  20635     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
  20636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20637     _flag_k = FK_CMP;
  20638     if (CMP_GE(_flag_a, _flag_b)) goto L_38033B87; /* 0x38033683: jge 0x38033b87 */
  20639 L_38033689:
  20640     eax = MEM32(edi + 0x9C); /* 0x38033689: mov eax, dword ptr [edi + 0x9c] */
  20641     /* test eax, eax */ /* 0x3803368F: test eax, eax */
  20642     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20643     _cf = 0;
  20644     _flag_k = FK_TEST;
  20645     if (TEST_NZ(_flag_a, _flag_b)) goto L_380336DD; /* 0x38033691: jne 0x380336dd */
  20646 L_38033693:
  20647     eax = esi + esi * 2; /* 0x38033693: lea eax, [esi + esi*2] */
  20648     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38033696: shl eax, 2 */
  20649     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20650     eax = eax << 2u; /* 0x38033696: shl eax, 2 */
  20651     PUSH32(esp, eax); /* 0x38033699: push eax */
  20652     RECOMP_ICALL(0x3804B676u); /* 0x3803369A: call 0x3804b676 */ /* not lifted */
  20653     RECOMP_FLAGS_IN();
  20654     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  20655     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20656     esp = esp + 4; /* 0x3803369F: add esp, 4 */
  20657     _flag_k = FK_ADD;
  20658     MEM32(ebp + (-0x14)) = eax; /* 0x380336A2: mov dword ptr [ebp - 0x14], eax */
  20659     /* test eax, eax */ /* 0x380336A5: test eax, eax */
  20660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20661     _cf = 0;
  20662     _flag_k = FK_TEST;
  20663     MEM32(ebp + (-0x4)) = 0; /* 0x380336A7: mov dword ptr [ebp - 4], 0 */
  20664     if (TEST_Z(_flag_a, _flag_b)) goto L_380336CE; /* 0x380336AE: je 0x380336ce */
  20665 L_380336B0:
  20666     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  20667     esi = esi - 1; /* 0x380336B0: dec esi */
  20668     _flag_k = FK_DEC;
  20669     /* test esi, esi */ /* 0x380336B1: test esi, esi */
  20670     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  20671     _cf = 0;
  20672     _flag_k = FK_TEST;
  20673     ebx = eax; /* 0x380336B3: mov ebx, eax */
  20674     if (TEST_S(_flag_a, _flag_b)) goto L_380336C9; /* 0x380336B5: jl 0x380336c9 */
  20675 L_380336B7:
  20676     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  20677     esi = esi + 1; /* 0x380336B7: inc esi */
  20678     _flag_k = FK_INC;
  20679 L_380336B8:
  20680     ecx = ebx; /* 0x380336B8: mov ecx, ebx */
  20681     RECOMP_ICALL(MEM32(0x3804E51C)); /* 0x380336BA: call dword ptr [0x3804e51c] */
  20682     RECOMP_FLAGS_IN();
  20683     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
  20684     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20685     ebx = ebx + 0xCu; /* 0x380336C0: add ebx, 0xc */
  20686     _flag_k = FK_ADD;
  20687     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  20688     esi = esi - 1; /* 0x380336C3: dec esi */
  20689     _flag_k = FK_DEC;
  20690     RECOMP_BACKEDGE();
  20691     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_380336B8; /* 0x380336C4: jne 0x380336b8 */
  20692 L_380336C6:
  20693     eax = MEM32(ebp + (-0x14)); /* 0x380336C6: mov eax, dword ptr [ebp - 0x14] */
  20694 L_380336C9:
  20695     ebx = MEM32(ebp + 0x8); /* 0x380336C9: mov ebx, dword ptr [ebp + 8] */
  20696     goto L_380336D0; /* 0x380336CC: jmp 0x380336d0 */
  20697 L_380336CE:
  20698     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20699     eax = 0; /* 0x380336CE: xor eax, eax */
  20700     _cf = 0;
  20701     _flag_k = FK_TEST;
  20702 L_380336D0:
  20703     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380336D0: mov dword ptr [ebp - 4], 0xffffffff */
  20704     MEM32(edi + 0x9C) = eax; /* 0x380336D7: mov dword ptr [edi + 0x9c], eax */
  20705 L_380336DD:
  20706     eax = MEM32(edi + 0xA0); /* 0x380336DD: mov eax, dword ptr [edi + 0xa0] */
  20707     /* test eax, eax */ /* 0x380336E3: test eax, eax */
  20708     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20709     _cf = 0;
  20710     _flag_k = FK_TEST;
  20711     if (TEST_NZ(_flag_a, _flag_b)) goto L_38033736; /* 0x380336E5: jne 0x38033736 */
  20712 L_380336E7:
  20713     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20714     esi = 0; /* 0x380336E7: xor esi, esi */
  20715     _cf = 0;
  20716     _flag_k = FK_TEST;
  20717     SET_LO16(esi, MEM16(edi + 0x7C)); /* 0x380336E9: mov si, word ptr [edi + 0x7c] */
  20718     ecx = esi; /* 0x380336ED: mov ecx, esi */
  20719     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x380336EF: shl ecx, 4 */
  20720     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20721     ecx = ecx << 4u; /* 0x380336EF: shl ecx, 4 */
  20722     PUSH32(esp, ecx); /* 0x380336F2: push ecx */
  20723     RECOMP_ICALL(0x3804B676u); /* 0x380336F3: call 0x3804b676 */ /* not lifted */
  20724     RECOMP_FLAGS_IN();
  20725     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  20726     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20727     esp = esp + 4; /* 0x380336F8: add esp, 4 */
  20728     _flag_k = FK_ADD;
  20729     MEM32(ebp + (-0x14)) = eax; /* 0x380336FB: mov dword ptr [ebp - 0x14], eax */
  20730     /* test eax, eax */ /* 0x380336FE: test eax, eax */
  20731     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20732     _cf = 0;
  20733     _flag_k = FK_TEST;
  20734     MEM32(ebp + (-0x4)) = 1; /* 0x38033700: mov dword ptr [ebp - 4], 1 */
  20735     if (TEST_Z(_flag_a, _flag_b)) goto L_38033727; /* 0x38033707: je 0x38033727 */
  20736 L_38033709:
  20737     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  20738     esi = esi - 1; /* 0x38033709: dec esi */
  20739     _flag_k = FK_DEC;
  20740     /* test esi, esi */ /* 0x3803370A: test esi, esi */
  20741     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  20742     _cf = 0;
  20743     _flag_k = FK_TEST;
  20744     ebx = eax; /* 0x3803370C: mov ebx, eax */
  20745     if (TEST_S(_flag_a, _flag_b)) goto L_38033722; /* 0x3803370E: jl 0x38033722 */
  20746 L_38033710:
  20747     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  20748     esi = esi + 1; /* 0x38033710: inc esi */
  20749     _flag_k = FK_INC;
  20750 L_38033711:
  20751     ecx = ebx; /* 0x38033711: mov ecx, ebx */
  20752     RECOMP_ICALL(MEM32(0x3804E520)); /* 0x38033713: call dword ptr [0x3804e520] */
  20753     RECOMP_FLAGS_IN();
  20754     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u);
  20755     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20756     ebx = ebx + 0x10u; /* 0x38033719: add ebx, 0x10 */
  20757     _flag_k = FK_ADD;
  20758     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  20759     esi = esi - 1; /* 0x3803371C: dec esi */
  20760     _flag_k = FK_DEC;
  20761     RECOMP_BACKEDGE();
  20762     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38033711; /* 0x3803371D: jne 0x38033711 */
  20763 L_3803371F:
  20764     eax = MEM32(ebp + (-0x14)); /* 0x3803371F: mov eax, dword ptr [ebp - 0x14] */
  20765 L_38033722:
  20766     ebx = MEM32(ebp + 0x8); /* 0x38033722: mov ebx, dword ptr [ebp + 8] */
  20767     goto L_38033729; /* 0x38033725: jmp 0x38033729 */
  20768 L_38033727:
  20769     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20770     eax = 0; /* 0x38033727: xor eax, eax */
  20771     _cf = 0;
  20772     _flag_k = FK_TEST;
  20773 L_38033729:
  20774     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38033729: mov dword ptr [ebp - 4], 0xffffffff */
  20775     MEM32(edi + 0xA0) = eax; /* 0x38033730: mov dword ptr [edi + 0xa0], eax */
  20776 L_38033736:
  20777     eax = MEM32(edi + 0x9C); /* 0x38033736: mov eax, dword ptr [edi + 0x9c] */
  20778     edx = ebx + ebx * 2; /* 0x3803373C: lea edx, [ebx + ebx*2] */
  20779     fp_push(*(float*)&MEM32(eax + edx * 4)); /* 0x3803373F: fld dword ptr [eax + edx*4] */
  20780     esi = eax + edx * 4; /* 0x38033742: lea esi, [eax + edx*4] */
  20781     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033745: fcomp dword ptr [0x3804e8e4] */
  20782     fp_pop();
  20783     eax = MEM32(edi + 0xA0); /* 0x3803374B: mov eax, dword ptr [edi + 0xa0] */
  20784     ecx = ebx; /* 0x38033751: mov ecx, ebx */
  20785     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x38033753: shl ecx, 4 */
  20786     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20787     ecx = ecx << 4u; /* 0x38033753: shl ecx, 4 */
  20788     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  20789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20790     ecx = ecx + eax; /* 0x38033756: add ecx, eax */
  20791     _flag_k = FK_ADD;
  20792     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033758: fnstsw ax */
  20793     MEM32(ebp + (-0x20)) = ecx; /* 0x3803375A: mov dword ptr [ebp - 0x20], ecx */
  20794     /* test HI8(eax), 0x40u */ /* 0x3803375D: test ah, 0x40 */
  20795     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  20796     _cf = 0;
  20797     _flag_k = FK_NARROW(FK_TEST, 24);
  20798     if (TEST_Z(_flag_a, _flag_b)) goto L_38033782; /* 0x38033760: je 0x38033782 */
  20799 L_38033762:
  20800     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x38033762: fld dword ptr [esi + 4] */
  20801     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033765: fcomp dword ptr [0x3804e8e4] */
  20802     fp_pop();
  20803     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803376B: fnstsw ax */
  20804     /* test HI8(eax), 0x40u */ /* 0x3803376D: test ah, 0x40 */
  20805     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  20806     _cf = 0;
  20807     _flag_k = FK_NARROW(FK_TEST, 24);
  20808     if (TEST_Z(_flag_a, _flag_b)) goto L_38033782; /* 0x38033770: je 0x38033782 */
  20809 L_38033772:
  20810     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x38033772: fld dword ptr [esi + 8] */
  20811     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033775: fcomp dword ptr [0x3804e8e4] */
  20812     fp_pop();
  20813     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803377B: fnstsw ax */
  20814     /* test HI8(eax), 0x40u */ /* 0x3803377D: test ah, 0x40 */
  20815     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  20816     _cf = 0;
  20817     _flag_k = FK_NARROW(FK_TEST, 24);
  20818     if (TEST_NZ(_flag_a, _flag_b)) goto L_380337C1; /* 0x38033780: jne 0x380337c1 */
  20819 L_38033782:
  20820     eax = MEM32(esi); /* 0x38033782: mov eax, dword ptr [esi] */
  20821     edx = MEM32(ebp + 0x10); /* 0x38033784: mov edx, dword ptr [ebp + 0x10] */
  20822     MEM32(edx) = eax; /* 0x38033787: mov dword ptr [edx], eax */
  20823     eax = MEM32(esi + 0x4); /* 0x38033789: mov eax, dword ptr [esi + 4] */
  20824     MEM32(edx + 0x4) = eax; /* 0x3803378C: mov dword ptr [edx + 4], eax */
  20825     eax = MEM32(esi + 0x8); /* 0x3803378F: mov eax, dword ptr [esi + 8] */
  20826     MEM32(edx + 0x8) = eax; /* 0x38033792: mov dword ptr [edx + 8], eax */
  20827     eax = MEM32(ecx); /* 0x38033795: mov eax, dword ptr [ecx] */
  20828     edx = MEM32(ebp + 0x14); /* 0x38033797: mov edx, dword ptr [ebp + 0x14] */
  20829     MEM32(edx) = eax; /* 0x3803379A: mov dword ptr [edx], eax */
  20830     eax = MEM32(ecx + 0x4); /* 0x3803379C: mov eax, dword ptr [ecx + 4] */
  20831     MEM32(edx + 0x4) = eax; /* 0x3803379F: mov dword ptr [edx + 4], eax */
  20832     eax = MEM32(ecx + 0x8); /* 0x380337A2: mov eax, dword ptr [ecx + 8] */
  20833     edi = POP32_VAL(esp); /* 0x380337A5: pop edi */
  20834     MEM32(edx + 0x8) = eax; /* 0x380337A6: mov dword ptr [edx + 8], eax */
  20835     ecx = MEM32(ecx + 0xC); /* 0x380337A9: mov ecx, dword ptr [ecx + 0xc] */
  20836     esi = POP32_VAL(esp); /* 0x380337AC: pop esi */
  20837     MEM32(edx + 0xC) = ecx; /* 0x380337AD: mov dword ptr [edx + 0xc], ecx */
  20838     ebx = POP32_VAL(esp); /* 0x380337B0: pop ebx */
  20839     ecx = MEM32(ebp + (-0xC)); /* 0x380337B1: mov ecx, dword ptr [ebp - 0xc] */
  20840     MEM32(FS_BASE + (0)) = ecx; /* 0x380337B4: mov dword ptr fs:[0], ecx */
  20841     esp = ebp; /* 0x380337BB: mov esp, ebp */
  20842     ebp = POP32_VAL(esp); /* 0x380337BD: pop ebp */
  20843     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x380337BE: ret 0x10 */
  20844 L_380337C1:
  20845     edx = MEM32(ebp + 0xC); /* 0x380337C1: mov edx, dword ptr [ebp + 0xc] */
  20846     eax = MEM32(edx + 0xC); /* 0x380337C4: mov eax, dword ptr [edx + 0xc] */
  20847     fp_push(*(float*)&MEM32(eax + 0x8264)); /* 0x380337C7: fld dword ptr [eax + 0x8264] */
  20848     edx = MEM32(ebp + 0x8); /* 0x380337CD: mov edx, dword ptr [ebp + 8] */
  20849     ecx = MEM32(edi + 0x80); /* 0x380337D0: mov ecx, dword ptr [edi + 0x80] */
  20850     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20851     eax = 0; /* 0x380337D6: xor eax, eax */
  20852     _cf = 0;
  20853     _flag_k = FK_TEST;
  20854     SET_LO16(eax, MEM16(edi + 0x4C)); /* 0x380337D8: mov ax, word ptr [edi + 0x4c] */
  20855     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20856     ebx = 0; /* 0x380337DC: xor ebx, ebx */
  20857     _cf = 0;
  20858     _flag_k = FK_TEST;
  20859     SET_LO16(ebx, MEM16(edi + 0x50)); /* 0x380337DE: mov bx, word ptr [edi + 0x50] */
  20860     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380337E2: fstp dword ptr [ebp - 0x10] */
  20861     MEM32(ebp + (-0x18)) = eax; /* 0x380337E5: mov dword ptr [ebp - 0x18], eax */
  20862     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  20863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20864     ebx = ebx - eax; /* 0x380337E8: sub ebx, eax */
  20865     _flag_k = FK_CMP;
  20866     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20867     eax = 0; /* 0x380337EA: xor eax, eax */
  20868     _cf = 0;
  20869     _flag_k = FK_TEST;
  20870     SET_LO16(eax, MEM16(ecx + edx * 4 + 0x2)); /* 0x380337EC: mov ax, word ptr [ecx + edx*4 + 2] */
  20871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
  20872     eax = eax & 0xFFFFu; /* 0x380337F1: and eax, 0xffff */
  20873     _cf = 0;
  20874     _flag_k = FK_TEST;
  20875     ecx = eax; /* 0x380337F6: mov ecx, eax */
  20876     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  20877     ecx = ecx & 3; /* 0x380337F8: and ecx, 3 */
  20878     _cf = 0;
  20879     _flag_k = FK_TEST;
  20880     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380337FB: shr eax, 2 */
  20881     if (2u) { _flag_a = recomp_flags_pack((eax >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20882     eax = eax >> 2u; /* 0x380337FB: shr eax, 2 */
  20883     edx = ecx; /* 0x380337FE: mov edx, ecx */
  20884     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(edi + 0x44));
  20885     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20886     edx = edx + MEM32(edi + 0x44); /* 0x38033800: add edx, dword ptr [edi + 0x44] */
  20887     _flag_k = FK_ADD;
  20888     MEM32(ebp + (-0x14)) = eax; /* 0x38033803: mov dword ptr [ebp - 0x14], eax */
  20889     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3);
  20890     edx = edx & 3; /* 0x38033806: and edx, 3 */
  20891     _cf = 0;
  20892     _flag_k = FK_TEST;
  20893     MEM32(ebp + (-0x1C)) = edx; /* 0x38033809: mov dword ptr [ebp - 0x1c], edx */
  20894     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3803380C: cdq  */
  20895     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x3803380D: idiv ebx */
  20896       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  20897       else { eax = 0; edx = 0; } }
  20898     eax = MEM32(ebp + (-0x14)); /* 0x3803380F: mov eax, dword ptr [ebp - 0x14] */
  20899     MEM32(ebp + 0x8) = edx; /* 0x38033812: mov dword ptr [ebp + 8], edx */
  20900     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x38033815: cdq  */
  20901     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x38033816: fild dword ptr [ebp + 8] */
  20902     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x38033819: idiv ebx */
  20903       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  20904       else { eax = 0; edx = 0; } }
  20905     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3803381B: fmul dword ptr [ebp - 0x10] */
  20906     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x3803381E: fadd dword ptr [0x3804e8cc] */
  20907     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x38033824: fstp dword ptr [ebp + 8] */
  20908     /* test ecx, ecx */ /* 0x38033827: test ecx, ecx */
  20909     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  20910     _cf = 0;
  20911     _flag_k = FK_TEST;
  20912     MEM32(ebp + (-0x14)) = eax; /* 0x38033829: mov dword ptr [ebp - 0x14], eax */
  20913     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x3803382C: fild dword ptr [ebp - 0x14] */
  20914     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3803382F: fmul dword ptr [ebp - 0x10] */
  20915     _st[0] += (double)*(float*)ADDR(0x3804E8CC); /* 0x38033832: fadd dword ptr [0x3804e8cc] */
  20916     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38033838: fstp dword ptr [ebp - 0x14] */
  20917     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803384B; /* 0x3803383B: jne 0x3803384b */
  20918 L_3803383D:
  20919     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803383D: fld dword ptr [ebp - 0x14] */
  20920     _st[0] += (double)*(float*)ADDR(0x3804EBF8); /* 0x38033840: fadd dword ptr [0x3804ebf8] */
  20921     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38033846: fstp dword ptr [ebp - 0x14] */
  20922     goto L_3803387A; /* 0x38033849: jmp 0x3803387a */
  20923 L_3803384B:
  20924     /* cmp ecx, 1 */ /* 0x3803384B: cmp ecx, 1 */
  20925     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  20926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20927     _flag_k = FK_CMP;
  20928     if (CMP_NE(_flag_a, _flag_b)) goto L_3803385B; /* 0x3803384E: jne 0x3803385b */
  20929 L_38033850:
  20930     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x38033850: fld dword ptr [ebp + 8] */
  20931     _st[0] += (double)*(float*)ADDR(0x3804EBF8); /* 0x38033853: fadd dword ptr [0x3804ebf8] */
  20932     goto L_38033877; /* 0x38033859: jmp 0x38033877 */
  20933 L_3803385B:
  20934     /* cmp ecx, 2 */ /* 0x3803385B: cmp ecx, 2 */
  20935     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2);
  20936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20937     _flag_k = FK_CMP;
  20938     if (CMP_NE(_flag_a, _flag_b)) goto L_3803386E; /* 0x3803385E: jne 0x3803386e */
  20939 L_38033860:
  20940     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38033860: fld dword ptr [ebp - 0x14] */
  20941     _st[0] -= (double)*(float*)ADDR(0x3804EBF8); /* 0x38033863: fsub dword ptr [0x3804ebf8] */
  20942     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38033869: fstp dword ptr [ebp - 0x14] */
  20943     goto L_3803387A; /* 0x3803386C: jmp 0x3803387a */
  20944 L_3803386E:
  20945     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3803386E: fld dword ptr [ebp + 8] */
  20946     _st[0] -= (double)*(float*)ADDR(0x3804EBF8); /* 0x38033871: fsub dword ptr [0x3804ebf8] */
  20947 L_38033877:
  20948     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x38033877: fstp dword ptr [ebp + 8] */
  20949 L_3803387A:
  20950     fp_push((double)(int32_t)MEM32(ebp + (-0x18))); /* 0x3803387A: fild dword ptr [ebp - 0x18] */
  20951     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20952     eax = 0; /* 0x3803387D: xor eax, eax */
  20953     _cf = 0;
  20954     _flag_k = FK_TEST;
  20955     SET_LO16(eax, MEM16(edi + 0x4E)); /* 0x3803387F: mov ax, word ptr [edi + 0x4e] */
  20956     ecx = ebp + (-0x44); /* 0x38033883: lea ecx, [ebp - 0x44] */
  20957     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x38033886: fmul dword ptr [ebp - 0x10] */
  20958     PUSH32(esp, ecx); /* 0x38033889: push ecx */
  20959     ecx = MEM32(ebp + 0xC); /* 0x3803388A: mov ecx, dword ptr [ebp + 0xc] */
  20960     edx = ebp + (-0x50); /* 0x3803388D: lea edx, [ebp - 0x50] */
  20961     _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x38033890: fadd dword ptr [ebp + 8] */
  20962     PUSH32(esp, edx); /* 0x38033893: push edx */
  20963     MEM32(ebp + (-0x44)) = 0; /* 0x38033894: mov dword ptr [ebp - 0x44], 0 */
  20964     MEM32(ebp + (-0x18)) = eax; /* 0x3803389B: mov dword ptr [ebp - 0x18], eax */
  20965     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3803389E: fstp dword ptr [ebp - 0x50] */
  20966     fp_push((double)(int32_t)MEM32(ebp + (-0x18))); /* 0x380338A1: fild dword ptr [ebp - 0x18] */
  20967     MEM32(ebp + (-0x40)) = 0; /* 0x380338A4: mov dword ptr [ebp - 0x40], 0 */
  20968     MEM32(ebp + (-0x3C)) = 0; /* 0x380338AB: mov dword ptr [ebp - 0x3c], 0 */
  20969     MEM32(ebp + (-0x4C)) = 0; /* 0x380338B2: mov dword ptr [ebp - 0x4c], 0 */
  20970     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x380338B9: fmul dword ptr [ebp - 0x10] */
  20971     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x380338BC: fadd dword ptr [ebp - 0x14] */
  20972     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x380338BF: fstp dword ptr [ebp - 0x48] */
  20973     RECOMP_ICALL(0x380385E0u); /* 0x380338C2: call 0x380385e0 */ /* not lifted */
  20974     RECOMP_FLAGS_IN();
  20975     _st[0] -= (double)*(float*)ADDR(edi + 0x3C); /* 0x380338C7: fsub dword ptr [edi + 0x3c] */
  20976     SET_LO8(ecx, MEM8(0x3806EE9C)); /* 0x380338CA: mov cl, byte ptr [0x3806ee9c] */
  20977     SET_LO8(eax, 1); /* 0x380338D0: mov al, 1 */
  20978     /* test LO8(eax), LO8(ecx) */ /* 0x380338D2: test al, cl */
  20979     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  20980     _cf = 0;
  20981     _flag_k = FK_NARROW(FK_TEST, 24);
  20982     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x380338D4: fstp dword ptr [ebp - 0x18] */
  20983     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803390E; /* 0x380338D7: jne 0x3803390e */
  20984 L_380338D9:
  20985     SET_LO8(edx, LO8(ecx)); /* 0x380338D9: mov dl, cl */
  20986     _flag_a = (uint32_t)((LO8(edx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(eax))) << 24;
  20987     SET_LO8(edx, LO8(edx) | LO8(eax)); /* 0x380338DB: or dl, al */
  20988     _cf = 0;
  20989     _flag_k = FK_NARROW(FK_TEST, 24);
  20990     PUSH32(esp, 0x38033BA0u); /* 0x380338DD: push 0x38033ba0 */
  20991     MEM8(0x3806EE9C) = (uint8_t)(LO8(edx)); /* 0x380338E2: mov byte ptr [0x3806ee9c], dl */
  20992     MEM32(0x3806EE90) = 0; /* 0x380338E8: mov dword ptr [0x3806ee90], 0 */
  20993     MEM32(0x3806EE94) = 0x3F800000u; /* 0x380338F2: mov dword ptr [0x3806ee94], 0x3f800000 */
  20994     MEM32(0x3806EE98) = 0; /* 0x380338FC: mov dword ptr [0x3806ee98], 0 */
  20995     RECOMP_ICALL(0x3804B54Cu); /* 0x38033906: call 0x3804b54c */ /* not lifted */
  20996     RECOMP_FLAGS_IN();
  20997     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  20998     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20999     esp = esp + 4; /* 0x3803390B: add esp, 4 */
  21000     _flag_k = FK_ADD;
  21001 L_3803390E:
  21002     eax = MEM32(edi + 0x44); /* 0x3803390E: mov eax, dword ptr [edi + 0x44] */
  21003     MEM32(ebp + (-0x28)) = eax; /* 0x38033911: mov dword ptr [ebp - 0x28], eax */
  21004     MEM32(ebp + (-0x24)) = 0; /* 0x38033914: mov dword ptr [ebp - 0x24], 0 */
  21005     fp_push_i64((int64_t)MEM64(ebp + (-0x28))); /* 0x3803391B: fild qword ptr [ebp - 0x28] */
  21006     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x3803391E: fmul qword ptr [0x3804f6a0] */
  21007     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033924: fcom dword ptr [0x3804e8e4] */
  21008     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803392A: fnstsw ax */
  21009     /* test HI8(eax), 1 */ /* 0x3803392C: test ah, 1 */
  21010     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21011     _cf = 0;
  21012     _flag_k = FK_NARROW(FK_TEST, 24);
  21013     if (TEST_NZ(_flag_a, _flag_b)) goto L_38033946; /* 0x3803392F: jne 0x38033946 */
  21014 L_38033931:
  21015     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38033931: fcom qword ptr [0x3804e8f8] */
  21016     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033937: fnstsw ax */
  21017     /* test HI8(eax), 1 */ /* 0x38033939: test ah, 1 */
  21018     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21019     _cf = 0;
  21020     _flag_k = FK_NARROW(FK_TEST, 24);
  21021     if (TEST_Z(_flag_a, _flag_b)) goto L_38033946; /* 0x3803393C: je 0x38033946 */
  21022 L_3803393E:
  21023     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x3803393E: fmul dword ptr [0x3804e8bc] */
  21024     goto L_38033967; /* 0x38033944: jmp 0x38033967 */
  21025 L_38033946:
  21026     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38033946: fmul dword ptr [0x3804e8f4] */
  21027     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21028     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21029     esp = esp - 8; /* 0x3803394C: sub esp, 8 */
  21030     _flag_k = FK_CMP;
  21031     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3803394F: fst dword ptr [ebp + 0xc] */
  21032     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38033952: fstp qword ptr [esp] */
  21033     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38033955: call dword ptr [0x3804e0ac] */
  21034     RECOMP_FLAGS_IN();
  21035     _st[0] = (double)*(float*)ADDR(ebp + 0xC) - _st[0]; /* 0x3803395B: fsubr dword ptr [ebp + 0xc] */
  21036     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21037     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21038     esp = esp + 8; /* 0x3803395E: add esp, 8 */
  21039     _flag_k = FK_ADD;
  21040     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38033961: fmul dword ptr [0x3804e8f0] */
  21041 L_38033967:
  21042     fp_push(_st[0]); /* 0x38033967: fld st(0) */
  21043     ecx = MEM32(ebp + (-0x18)); /* 0x38033969: mov ecx, dword ptr [ebp - 0x18] */
  21044     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3803396C: fsin  */
  21045     MEM32(ebp + (-0x34)) = ecx; /* 0x3803396E: mov dword ptr [ebp - 0x34], ecx */
  21046     edx = esi; /* 0x38033971: mov edx, esi */
  21047     PUSH32(esp, esi); /* 0x38033973: push esi */
  21048     fp_push(_st[0]); /* 0x38033974: fld st(0) */
  21049     _st[0] *= (double)*(float*)ADDR(0x3806EE90); /* 0x38033976: fmul dword ptr [0x3806ee90] */
  21050     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x3803397C: fstp dword ptr [ebp - 0x6c] */
  21051     ebx = MEM32(ebp + (-0x6C)); /* 0x3803397F: mov ebx, dword ptr [ebp - 0x6c] */
  21052     MEM32(ebp + (-0x5C)) = ebx; /* 0x38033982: mov dword ptr [ebp - 0x5c], ebx */
  21053     fp_push(_st[0]); /* 0x38033985: fld st(0) */
  21054     _st[0] *= (double)*(float*)ADDR(0x3806EE94); /* 0x38033987: fmul dword ptr [0x3806ee94] */
  21055     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x3803398D: fstp dword ptr [ebp - 0x68] */
  21056     _st[0] *= (double)*(float*)ADDR(0x3806EE98); /* 0x38033990: fmul dword ptr [0x3806ee98] */
  21057     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38033996: fstp dword ptr [ebp - 0x64] */
  21058     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38033999: fcos  */
  21059     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3803399B: fstp dword ptr [ebp - 0x60] */
  21060     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3803399E: fld dword ptr [ebp + 8] */
  21061     _st[0] -= (double)*(float*)ADDR(0x3804E8CC); /* 0x380339A1: fsub dword ptr [0x3804e8cc] */
  21062     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x380339A7: fstp dword ptr [ebp - 0x38] */
  21063     eax = MEM32(ebp + (-0x38)); /* 0x380339AA: mov eax, dword ptr [ebp - 0x38] */
  21064     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x380339AD: fld dword ptr [ebp - 0x14] */
  21065     MEM32(edx) = eax; /* 0x380339B0: mov dword ptr [edx], eax */
  21066     _st[0] -= (double)*(float*)ADDR(0x3804E8CC); /* 0x380339B2: fsub dword ptr [0x3804e8cc] */
  21067     MEM32(edx + 0x4) = ecx; /* 0x380339B8: mov dword ptr [edx + 4], ecx */
  21068     ecx = edi + 0x6C; /* 0x380339BB: lea ecx, [edi + 0x6c] */
  21069     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x380339BE: fstp dword ptr [ebp - 0x30] */
  21070     eax = MEM32(ebp + (-0x30)); /* 0x380339C1: mov eax, dword ptr [ebp - 0x30] */
  21071     MEM32(edx + 0x8) = eax; /* 0x380339C4: mov dword ptr [edx + 8], eax */
  21072     edx = MEM32(ecx); /* 0x380339C7: mov edx, dword ptr [ecx] */
  21073     eax = MEM32(ecx + 0x4); /* 0x380339C9: mov eax, dword ptr [ecx + 4] */
  21074     ecx = MEM32(ecx + 0x8); /* 0x380339CC: mov ecx, dword ptr [ecx + 8] */
  21075     MEM32(ebp + (-0x2C)) = edx; /* 0x380339CF: mov dword ptr [ebp - 0x2c], edx */
  21076     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x380339D2: fld dword ptr [ebp - 0x2c] */
  21077     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x380339D5: fmul dword ptr [ebp - 0x10] */
  21078     MEM32(ebp + (-0x28)) = eax; /* 0x380339D8: mov dword ptr [ebp - 0x28], eax */
  21079     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x380339DB: fld dword ptr [ebp - 0x28] */
  21080     edx = MEM32(ebp + (-0x68)); /* 0x380339DE: mov edx, dword ptr [ebp - 0x68] */
  21081     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x380339E1: fmul dword ptr [ebp - 0x10] */
  21082     eax = MEM32(ebp + (-0x64)); /* 0x380339E4: mov eax, dword ptr [ebp - 0x64] */
  21083     MEM32(ebp + (-0x24)) = ecx; /* 0x380339E7: mov dword ptr [ebp - 0x24], ecx */
  21084     ecx = ebp + (-0x5C); /* 0x380339EA: lea ecx, [ebp - 0x5c] */
  21085     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x380339ED: fstp dword ptr [ebp - 0x28] */
  21086     MEM32(ebp + (-0x58)) = edx; /* 0x380339F0: mov dword ptr [ebp - 0x58], edx */
  21087     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x380339F3: fld dword ptr [ebp - 0x24] */
  21088     MEM32(ebp + (-0x54)) = eax; /* 0x380339F6: mov dword ptr [ebp - 0x54], eax */
  21089     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x380339F9: fmul dword ptr [ebp - 0x10] */
  21090     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x380339FC: fstp dword ptr [ebp - 0x24] */
  21091     fp_push(*(float*)&MEM32(esi)); /* 0x380339FF: fld dword ptr [esi] */
  21092     _st[0] -= _st[1]; /* 0x38033A01: fsub st(1) */
  21093     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x38033A03: fstp dword ptr [esi] */
  21094     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38033A05: fstp st(0) */
  21095     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x38033A07: fld dword ptr [esi + 4] */
  21096     _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x38033A0A: fsub dword ptr [ebp - 0x28] */
  21097     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x38033A0D: fstp dword ptr [esi + 4] */
  21098     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x38033A10: fld dword ptr [esi + 8] */
  21099     _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x38033A13: fsub dword ptr [ebp - 0x24] */
  21100     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x38033A16: fstp dword ptr [esi + 8] */
  21101     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38033A19: call dword ptr [0x3804e4c8] */
  21102     RECOMP_FLAGS_IN();
  21103     ecx = MEM32(eax); /* 0x38033A1F: mov ecx, dword ptr [eax] */
  21104     MEM32(ebp + (-0x2C)) = ecx; /* 0x38033A21: mov dword ptr [ebp - 0x2c], ecx */
  21105     edx = MEM32(eax + 0x4); /* 0x38033A24: mov edx, dword ptr [eax + 4] */
  21106     ecx = MEM32(ebp + (-0x68)); /* 0x38033A27: mov ecx, dword ptr [ebp - 0x68] */
  21107     MEM32(ebp + (-0x28)) = edx; /* 0x38033A2A: mov dword ptr [ebp - 0x28], edx */
  21108     eax = MEM32(eax + 0x8); /* 0x38033A2D: mov eax, dword ptr [eax + 8] */
  21109     edx = MEM32(ebp + (-0x64)); /* 0x38033A30: mov edx, dword ptr [ebp - 0x64] */
  21110     MEM32(ebp + (-0x24)) = eax; /* 0x38033A33: mov dword ptr [ebp - 0x24], eax */
  21111     eax = ebp + (-0x2C); /* 0x38033A36: lea eax, [ebp - 0x2c] */
  21112     MEM32(ebp + (-0x58)) = ecx; /* 0x38033A39: mov dword ptr [ebp - 0x58], ecx */
  21113     PUSH32(esp, eax); /* 0x38033A3C: push eax */
  21114     ecx = ebp + (-0x5C); /* 0x38033A3D: lea ecx, [ebp - 0x5c] */
  21115     MEM32(ebp + (-0x5C)) = ebx; /* 0x38033A40: mov dword ptr [ebp - 0x5c], ebx */
  21116     MEM32(ebp + (-0x54)) = edx; /* 0x38033A43: mov dword ptr [ebp - 0x54], edx */
  21117     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x38033A46: call dword ptr [0x3804e4c8] */
  21118     RECOMP_FLAGS_IN();
  21119     ecx = MEM32(eax); /* 0x38033A4C: mov ecx, dword ptr [eax] */
  21120     MEM32(ebp + (-0x38)) = ecx; /* 0x38033A4E: mov dword ptr [ebp - 0x38], ecx */
  21121     edx = MEM32(eax + 0x4); /* 0x38033A51: mov edx, dword ptr [eax + 4] */
  21122     MEM32(ebp + (-0x34)) = edx; /* 0x38033A54: mov dword ptr [ebp - 0x34], edx */
  21123     eax = MEM32(eax + 0x8); /* 0x38033A57: mov eax, dword ptr [eax + 8] */
  21124     MEM32(ebp + (-0x30)) = eax; /* 0x38033A5A: mov dword ptr [ebp - 0x30], eax */
  21125     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x38033A5D: fld dword ptr [ebp - 0x60] */
  21126     ecx = ebp + (-0x2C); /* 0x38033A60: lea ecx, [ebp - 0x2c] */
  21127     _st[0] += _st[0]; /* 0x38033A63: fadd st(0), st(0) */
  21128     PUSH32(esp, ecx); /* 0x38033A65: push ecx */
  21129     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38033A66: fld dword ptr [ebp - 0x2c] */
  21130     ecx = esi; /* 0x38033A69: mov ecx, esi */
  21131     _st[0] *= _st[1]; /* 0x38033A6B: fmul st(1) */
  21132     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x38033A6D: fstp dword ptr [ebp - 0x2c] */
  21133     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38033A70: fld dword ptr [ebp - 0x28] */
  21134     _st[0] *= _st[1]; /* 0x38033A73: fmul st(1) */
  21135     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x38033A75: fstp dword ptr [ebp - 0x28] */
  21136     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38033A78: fld dword ptr [ebp - 0x24] */
  21137     _st[0] *= _st[1]; /* 0x38033A7B: fmul st(1) */
  21138     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38033A7D: fstp dword ptr [ebp - 0x24] */
  21139     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38033A80: fstp st(0) */
  21140     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x38033A82: fld dword ptr [ebp - 0x38] */
  21141     _st[0] += _st[0]; /* 0x38033A85: fadd st(0), st(0) */
  21142     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x38033A87: fstp dword ptr [ebp - 0x38] */
  21143     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x38033A8A: fld dword ptr [ebp - 0x34] */
  21144     _st[0] += _st[0]; /* 0x38033A8D: fadd st(0), st(0) */
  21145     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x38033A8F: fstp dword ptr [ebp - 0x34] */
  21146     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x38033A92: fld dword ptr [ebp - 0x30] */
  21147     _st[0] += _st[0]; /* 0x38033A95: fadd st(0), st(0) */
  21148     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x38033A97: fstp dword ptr [ebp - 0x30] */
  21149     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38033A9A: call dword ptr [0x3804e4e8] */
  21150     RECOMP_FLAGS_IN();
  21151     edx = ebp + (-0x38); /* 0x38033AA0: lea edx, [ebp - 0x38] */
  21152     PUSH32(esp, edx); /* 0x38033AA3: push edx */
  21153     ecx = esi; /* 0x38033AA4: mov ecx, esi */
  21154     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x38033AA6: call dword ptr [0x3804e4e8] */
  21155     RECOMP_FLAGS_IN();
  21156     fp_push(*(float*)&MEM32(esi)); /* 0x38033AAC: fld dword ptr [esi] */
  21157     _st[0] += (double)*(float*)ADDR(edi + 0x54); /* 0x38033AAE: fadd dword ptr [edi + 0x54] */
  21158     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x38033AB1: fstp dword ptr [esi] */
  21159     fp_push(*(float*)&MEM32(edi + 0x58)); /* 0x38033AB3: fld dword ptr [edi + 0x58] */
  21160     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x38033AB6: fadd dword ptr [esi + 4] */
  21161     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x38033AB9: fstp dword ptr [esi + 4] */
  21162     fp_push(*(float*)&MEM32(edi + 0x5C)); /* 0x38033ABC: fld dword ptr [edi + 0x5c] */
  21163     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x38033ABF: fadd dword ptr [esi + 8] */
  21164     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x38033AC2: fstp dword ptr [esi + 8] */
  21165     fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x38033AC5: fild dword ptr [ebp - 0x1c] */
  21166     _st[0] *= *(double*)ADDR(0x3804F6A0); /* 0x38033AC8: fmul qword ptr [0x3804f6a0] */
  21167     _st[0] += *(double*)ADDR(0x3804F698); /* 0x38033ACE: fadd qword ptr [0x3804f698] */
  21168     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033AD4: fcom dword ptr [0x3804e8e4] */
  21169     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033ADA: fnstsw ax */
  21170     /* test HI8(eax), 1 */ /* 0x38033ADC: test ah, 1 */
  21171     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21172     _cf = 0;
  21173     _flag_k = FK_NARROW(FK_TEST, 24);
  21174     if (TEST_NZ(_flag_a, _flag_b)) goto L_38033AF6; /* 0x38033ADF: jne 0x38033af6 */
  21175 L_38033AE1:
  21176     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38033AE1: fcom qword ptr [0x3804e8f8] */
  21177     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033AE7: fnstsw ax */
  21178     /* test HI8(eax), 1 */ /* 0x38033AE9: test ah, 1 */
  21179     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21180     _cf = 0;
  21181     _flag_k = FK_NARROW(FK_TEST, 24);
  21182     if (TEST_Z(_flag_a, _flag_b)) goto L_38033AF6; /* 0x38033AEC: je 0x38033af6 */
  21183 L_38033AEE:
  21184     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38033AEE: fmul dword ptr [0x3804e8bc] */
  21185     goto L_38033B17; /* 0x38033AF4: jmp 0x38033b17 */
  21186 L_38033AF6:
  21187     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38033AF6: fmul dword ptr [0x3804e8f4] */
  21188     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21190     esp = esp - 8; /* 0x38033AFC: sub esp, 8 */
  21191     _flag_k = FK_CMP;
  21192     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x38033AFF: fst dword ptr [ebp + 8] */
  21193     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38033B02: fstp qword ptr [esp] */
  21194     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38033B05: call dword ptr [0x3804e0ac] */
  21195     RECOMP_FLAGS_IN();
  21196     _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x38033B0B: fsubr dword ptr [ebp + 8] */
  21197     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21198     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21199     esp = esp + 8; /* 0x38033B0E: add esp, 8 */
  21200     _flag_k = FK_ADD;
  21201     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38033B11: fmul dword ptr [0x3804e8f0] */
  21202 L_38033B17:
  21203     fp_push(_st[0]); /* 0x38033B17: fld st(0) */
  21204     eax = MEM32(ebp + (-0x20)); /* 0x38033B19: mov eax, dword ptr [ebp - 0x20] */
  21205     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38033B1C: fsin  */
  21206     ecx = eax; /* 0x38033B1E: mov ecx, eax */
  21207     fp_push(_st[0]); /* 0x38033B20: fld st(0) */
  21208     _st[0] *= (double)*(float*)ADDR(0x3806EE90); /* 0x38033B22: fmul dword ptr [0x3806ee90] */
  21209     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x38033B28: fstp dword ptr [ebp - 0x6c] */
  21210     edx = MEM32(ebp + (-0x6C)); /* 0x38033B2B: mov edx, dword ptr [ebp - 0x6c] */
  21211     fp_push(_st[0]); /* 0x38033B2E: fld st(0) */
  21212     _st[0] *= (double)*(float*)ADDR(0x3806EE94); /* 0x38033B30: fmul dword ptr [0x3806ee94] */
  21213     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x38033B36: fstp dword ptr [ebp - 0x68] */
  21214     _st[0] *= (double)*(float*)ADDR(0x3806EE98); /* 0x38033B39: fmul dword ptr [0x3806ee98] */
  21215     MEM32(ecx) = edx; /* 0x38033B3F: mov dword ptr [ecx], edx */
  21216     edx = MEM32(ebp + (-0x68)); /* 0x38033B41: mov edx, dword ptr [ebp - 0x68] */
  21217     MEM32(ecx + 0x4) = edx; /* 0x38033B44: mov dword ptr [ecx + 4], edx */
  21218     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x38033B47: fstp dword ptr [ebp - 0x64] */
  21219     edx = MEM32(ebp + (-0x64)); /* 0x38033B4A: mov edx, dword ptr [ebp - 0x64] */
  21220     MEM32(ecx + 0x8) = edx; /* 0x38033B4D: mov dword ptr [ecx + 8], edx */
  21221     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38033B50: fcos  */
  21222     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x38033B52: fstp dword ptr [ebp - 0x60] */
  21223     edx = MEM32(ebp + (-0x60)); /* 0x38033B55: mov edx, dword ptr [ebp - 0x60] */
  21224     MEM32(ecx + 0xC) = edx; /* 0x38033B58: mov dword ptr [ecx + 0xc], edx */
  21225     edx = MEM32(esi); /* 0x38033B5B: mov edx, dword ptr [esi] */
  21226     ecx = MEM32(ebp + 0x10); /* 0x38033B5D: mov ecx, dword ptr [ebp + 0x10] */
  21227     MEM32(ecx) = edx; /* 0x38033B60: mov dword ptr [ecx], edx */
  21228     edx = MEM32(esi + 0x4); /* 0x38033B62: mov edx, dword ptr [esi + 4] */
  21229     MEM32(ecx + 0x4) = edx; /* 0x38033B65: mov dword ptr [ecx + 4], edx */
  21230     edx = MEM32(esi + 0x8); /* 0x38033B68: mov edx, dword ptr [esi + 8] */
  21231     MEM32(ecx + 0x8) = edx; /* 0x38033B6B: mov dword ptr [ecx + 8], edx */
  21232     edx = MEM32(eax); /* 0x38033B6E: mov edx, dword ptr [eax] */
  21233     ecx = MEM32(ebp + 0x14); /* 0x38033B70: mov ecx, dword ptr [ebp + 0x14] */
  21234     MEM32(ecx) = edx; /* 0x38033B73: mov dword ptr [ecx], edx */
  21235     edx = MEM32(eax + 0x4); /* 0x38033B75: mov edx, dword ptr [eax + 4] */
  21236     MEM32(ecx + 0x4) = edx; /* 0x38033B78: mov dword ptr [ecx + 4], edx */
  21237     edx = MEM32(eax + 0x8); /* 0x38033B7B: mov edx, dword ptr [eax + 8] */
  21238     MEM32(ecx + 0x8) = edx; /* 0x38033B7E: mov dword ptr [ecx + 8], edx */
  21239     eax = MEM32(eax + 0xC); /* 0x38033B81: mov eax, dword ptr [eax + 0xc] */
  21240     MEM32(ecx + 0xC) = eax; /* 0x38033B84: mov dword ptr [ecx + 0xc], eax */
  21241 L_38033B87:
  21242     ecx = MEM32(ebp + (-0xC)); /* 0x38033B87: mov ecx, dword ptr [ebp - 0xc] */
  21243     edi = POP32_VAL(esp); /* 0x38033B8A: pop edi */
  21244     esi = POP32_VAL(esp); /* 0x38033B8B: pop esi */
  21245     ebx = POP32_VAL(esp); /* 0x38033B8C: pop ebx */
  21246     MEM32(FS_BASE + (0)) = ecx; /* 0x38033B8D: mov dword ptr fs:[0], ecx */
  21247     esp = ebp; /* 0x38033B94: mov esp, ebp */
  21248     ebp = POP32_VAL(esp); /* 0x38033B96: pop ebp */
  21249     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38033B97: ret 0x10 */
  21250     RECOMP_REGS_OUT();
  21251 }
  21252 
  21253 void sub_38033BA0(void) {
  21254     int _fpu_cmp = 0;
  21255     uint32_t _cf = 0;
  21256     int _df = 1;
  21257     uint32_t _flag_k = FK_NONE;
  21258     uint32_t _flag_a = 0, _flag_b = 0;
  21259     uint32_t _itail_tgt = 0;
  21260     RECOMP_REGS_LOCALS
  21261     RECOMP_ENTER(0x38033BA0u);
  21262 
  21263 L_38033BA0:
  21264     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38033BA0: ret  */
  21265     RECOMP_REGS_OUT();
  21266 }
  21267 
  21268 void sub_38033BB0(void) {
  21269     int _fpu_cmp = 0;
  21270     uint32_t _cf = 0;
  21271     int _df = 1;
  21272     uint32_t _flag_k = FK_NONE;
  21273     uint32_t _flag_a = 0, _flag_b = 0;
  21274     uint32_t _itail_tgt = 0;
  21275     RECOMP_REGS_LOCALS
  21276     RECOMP_ENTER(0x38033BB0u);
  21277 
  21278 L_38033BB0:
  21279     PUSH32(esp, ebp); /* 0x38033BB0: push ebp */
  21280     ebp = esp; /* 0x38033BB1: mov ebp, esp */
  21281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu);
  21282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21283     esp = esp - 0x4Cu; /* 0x38033BB3: sub esp, 0x4c */
  21284     _flag_k = FK_CMP;
  21285     PUSH32(esp, esi); /* 0x38033BB6: push esi */
  21286     PUSH32(esp, edi); /* 0x38033BB7: push edi */
  21287     esi = ecx; /* 0x38033BB8: mov esi, ecx */
  21288     eax = ebp + (-0x10); /* 0x38033BBA: lea eax, [ebp - 0x10] */
  21289     PUSH32(esp, eax); /* 0x38033BBD: push eax */
  21290     ecx = ebp + (-0x8); /* 0x38033BBE: lea ecx, [ebp - 8] */
  21291     PUSH32(esp, ecx); /* 0x38033BC1: push ecx */
  21292     edx = ebp + (-0xC); /* 0x38033BC2: lea edx, [ebp - 0xc] */
  21293     PUSH32(esp, edx); /* 0x38033BC5: push edx */
  21294     eax = ebp + (-0x4); /* 0x38033BC6: lea eax, [ebp - 4] */
  21295     PUSH32(esp, eax); /* 0x38033BC9: push eax */
  21296     ecx = esi; /* 0x38033BCA: mov ecx, esi */
  21297     RECOMP_ICALL(0x38031A80u); /* 0x38033BCC: call 0x38031a80 */ /* not lifted */
  21298     RECOMP_FLAGS_IN();
  21299     edi = MEM32(ebp + 0x8); /* 0x38033BD1: mov edi, dword ptr [ebp + 8] */
  21300     fp_push(*(float*)&MEM32(edi)); /* 0x38033BD4: fld dword ptr [edi] */
  21301     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x38033BD6: fcomp dword ptr [ebp - 4] */
  21302     fp_pop();
  21303     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033BD9: fnstsw ax */
  21304     /* test HI8(eax), 1 */ /* 0x38033BDB: test ah, 1 */
  21305     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21306     _cf = 0;
  21307     _flag_k = FK_NARROW(FK_TEST, 24);
  21308     if (TEST_NZ(_flag_a, _flag_b)) goto L_38033CCD; /* 0x38033BDE: jne 0x38033ccd */
  21309 L_38033BE4:
  21310     fp_push(*(float*)&MEM32(edi)); /* 0x38033BE4: fld dword ptr [edi] */
  21311     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0xC))); /* 0x38033BE6: fcomp dword ptr [ebp - 0xc] */
  21312     fp_pop();
  21313     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033BE9: fnstsw ax */
  21314     /* test HI8(eax), 0x41u */ /* 0x38033BEB: test ah, 0x41 */
  21315     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21316     _cf = 0;
  21317     _flag_k = FK_NARROW(FK_TEST, 24);
  21318     if (TEST_Z(_flag_a, _flag_b)) goto L_38033CCD; /* 0x38033BEE: je 0x38033ccd */
  21319 L_38033BF4:
  21320     fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x38033BF4: fld dword ptr [edi + 8] */
  21321     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x38033BF7: fcomp dword ptr [ebp - 8] */
  21322     fp_pop();
  21323     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033BFA: fnstsw ax */
  21324     /* test HI8(eax), 1 */ /* 0x38033BFC: test ah, 1 */
  21325     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21326     _cf = 0;
  21327     _flag_k = FK_NARROW(FK_TEST, 24);
  21328     if (TEST_NZ(_flag_a, _flag_b)) goto L_38033CCD; /* 0x38033BFF: jne 0x38033ccd */
  21329 L_38033C05:
  21330     fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x38033C05: fld dword ptr [edi + 8] */
  21331     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x10))); /* 0x38033C08: fcomp dword ptr [ebp - 0x10] */
  21332     fp_pop();
  21333     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033C0B: fnstsw ax */
  21334     /* test HI8(eax), 0x41u */ /* 0x38033C0D: test ah, 0x41 */
  21335     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21336     _cf = 0;
  21337     _flag_k = FK_NARROW(FK_TEST, 24);
  21338     if (TEST_Z(_flag_a, _flag_b)) goto L_38033CCD; /* 0x38033C10: je 0x38033ccd */
  21339 L_38033C16:
  21340     ecx = edi; /* 0x38033C16: mov ecx, edi */
  21341     edx = MEM32(ecx); /* 0x38033C18: mov edx, dword ptr [ecx] */
  21342     eax = MEM32(ecx + 0x4); /* 0x38033C1A: mov eax, dword ptr [ecx + 4] */
  21343     ecx = MEM32(ecx + 0x8); /* 0x38033C1D: mov ecx, dword ptr [ecx + 8] */
  21344     MEM32(ebp + (-0x28)) = edx; /* 0x38033C20: mov dword ptr [ebp - 0x28], edx */
  21345     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38033C23: fld dword ptr [ebp - 0x28] */
  21346     _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x38033C26: fsub dword ptr [ebp - 4] */
  21347     MEM32(ebp + (-0x20)) = ecx; /* 0x38033C29: mov dword ptr [ebp - 0x20], ecx */
  21348     ecx = MEM32(ebp + 0xC); /* 0x38033C2C: mov ecx, dword ptr [ebp + 0xc] */
  21349     edx = MEM32(ecx + 0xC); /* 0x38033C2F: mov edx, dword ptr [ecx + 0xc] */
  21350     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x38033C32: fstp dword ptr [ebp - 0x28] */
  21351     MEM32(ebp + (-0x18)) = eax; /* 0x38033C35: mov dword ptr [ebp - 0x18], eax */
  21352     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38033C38: fld dword ptr [ebp - 0x20] */
  21353     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x38033C3B: fsub dword ptr [ebp - 8] */
  21354     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38033C3E: fstp dword ptr [ebp - 0x20] */
  21355     eax = MEM32(ebp + (-0x20)); /* 0x38033C41: mov eax, dword ptr [ebp - 0x20] */
  21356     fp_push(*(float*)&MEM32(edx + 0x8264)); /* 0x38033C44: fld dword ptr [edx + 0x8264] */
  21357     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21358     edx = 0; /* 0x38033C4A: xor edx, edx */
  21359     _cf = 0;
  21360     _flag_k = FK_TEST;
  21361     SET_LO16(edx, MEM16(esi + 0x4C)); /* 0x38033C4C: mov dx, word ptr [esi + 0x4c] */
  21362     MEM32(ebp + (-0x14)) = eax; /* 0x38033C50: mov dword ptr [ebp - 0x14], eax */
  21363     MEM32(ebp + (-0x34)) = 0; /* 0x38033C53: mov dword ptr [ebp - 0x34], 0 */
  21364     MEM32(ebp + (-0x30)) = 0; /* 0x38033C5A: mov dword ptr [ebp - 0x30], 0 */
  21365     MEM32(ebp + (-0x2C)) = 0; /* 0x38033C61: mov dword ptr [ebp - 0x2c], 0 */
  21366     MEM32(ebp + 0x8) = edx; /* 0x38033C68: mov dword ptr [ebp + 8], edx */
  21367     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x38033C6B: fild dword ptr [ebp + 8] */
  21368     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21369     edx = 0; /* 0x38033C6E: xor edx, edx */
  21370     _cf = 0;
  21371     _flag_k = FK_TEST;
  21372     SET_LO16(edx, MEM16(esi + 0x4E)); /* 0x38033C70: mov dx, word ptr [esi + 0x4e] */
  21373     _st[0] *= _st[1]; /* 0x38033C74: fmul st(1) */
  21374     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x38033C76: fstp dword ptr [ebp - 0x4c] */
  21375     MEM32(ebp + 0x8) = edx; /* 0x38033C79: mov dword ptr [ebp + 8], edx */
  21376     _st[0] = _st[0] * (double)(int32_t)MEM32(ebp + 0x8); /* 0x38033C7C: fimul dword ptr [ebp + 8] */
  21377     edx = MEM32(ebp + (-0x28)); /* 0x38033C7F: mov edx, dword ptr [ebp - 0x28] */
  21378     MEM32(ebp + (-0x1C)) = edx; /* 0x38033C82: mov dword ptr [ebp - 0x1c], edx */
  21379     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x38033C85: fld dword ptr [ebp - 0x4c] */
  21380     edx = MEM32(ebp + (-0x18)); /* 0x38033C88: mov edx, dword ptr [ebp - 0x18] */
  21381     _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x38033C8B: fadd dword ptr [ebp - 0x28] */
  21382     MEM32(ebp + (-0x18)) = edx; /* 0x38033C8E: mov dword ptr [ebp - 0x18], edx */
  21383     MEM32(ebp + (-0x3C)) = edx; /* 0x38033C91: mov dword ptr [ebp - 0x3c], edx */
  21384     edx = ebp + (-0x34); /* 0x38033C94: lea edx, [ebp - 0x34] */
  21385     PUSH32(esp, edx); /* 0x38033C97: push edx */
  21386     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38033C98: fstp dword ptr [ebp - 0x1c] */
  21387     eax = MEM32(ebp + (-0x1C)); /* 0x38033C9B: mov eax, dword ptr [ebp - 0x1c] */
  21388     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38033C9E: fld dword ptr [ebp - 0x14] */
  21389     MEM32(ebp + (-0x40)) = eax; /* 0x38033CA1: mov dword ptr [ebp - 0x40], eax */
  21390     _st[0] += _st[1]; /* 0x38033CA4: fadd st(1) */
  21391     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38033CA6: fstp dword ptr [ebp - 0x14] */
  21392     eax = MEM32(ebp + (-0x14)); /* 0x38033CA9: mov eax, dword ptr [ebp - 0x14] */
  21393     MEM32(ebp + (-0x38)) = eax; /* 0x38033CAC: mov dword ptr [ebp - 0x38], eax */
  21394     eax = ebp + (-0x40); /* 0x38033CAF: lea eax, [ebp - 0x40] */
  21395     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38033CB2: fstp st(0) */
  21396     PUSH32(esp, eax); /* 0x38033CB4: push eax */
  21397     RECOMP_ICALL(0x380385E0u); /* 0x38033CB5: call 0x380385e0 */ /* not lifted */
  21398     RECOMP_FLAGS_IN();
  21399     _st[0] -= (double)*(float*)ADDR(esi + 0x3C); /* 0x38033CBA: fsub dword ptr [esi + 0x3c] */
  21400     SET_LO8(eax, 1); /* 0x38033CBD: mov al, 1 */
  21401     _st[0] += (double)*(float*)ADDR(esi + 0x58); /* 0x38033CBF: fadd dword ptr [esi + 0x58] */
  21402     { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x38033CC2: fstp dword ptr [edi + 4] */
  21403     edi = POP32_VAL(esp); /* 0x38033CC5: pop edi */
  21404     esi = POP32_VAL(esp); /* 0x38033CC6: pop esi */
  21405     esp = ebp; /* 0x38033CC7: mov esp, ebp */
  21406     ebp = POP32_VAL(esp); /* 0x38033CC9: pop ebp */
  21407     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38033CCA: ret 8 */
  21408 L_38033CCD:
  21409     edi = POP32_VAL(esp); /* 0x38033CCD: pop edi */
  21410     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  21411     SET_LO8(eax, 0); /* 0x38033CCE: xor al, al */
  21412     _cf = 0;
  21413     _flag_k = FK_NARROW(FK_TEST, 24);
  21414     esi = POP32_VAL(esp); /* 0x38033CD0: pop esi */
  21415     esp = ebp; /* 0x38033CD1: mov esp, ebp */
  21416     ebp = POP32_VAL(esp); /* 0x38033CD3: pop ebp */
  21417     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38033CD4: ret 8 */
  21418     RECOMP_REGS_OUT();
  21419 }
  21420 
  21421 void sub_38033CE0(void) {
  21422     int _fpu_cmp = 0;
  21423     uint32_t _cf = 0;
  21424     int _df = 1;
  21425     uint32_t _flag_k = FK_NONE;
  21426     uint32_t _flag_a = 0, _flag_b = 0;
  21427     uint32_t _itail_tgt = 0;
  21428     RECOMP_REGS_LOCALS
  21429     RECOMP_ENTER(0x38033CE0u);
  21430 
  21431 L_38033CE0:
  21432     PUSH32(esp, ebp); /* 0x38033CE0: push ebp */
  21433     ebp = esp; /* 0x38033CE1: mov ebp, esp */
  21434     SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x38033CE3: mov al, byte ptr [ebp + 0xc] */
  21435     PUSH32(esp, esi); /* 0x38033CE6: push esi */
  21436     /* test LO8(eax), LO8(eax) */ /* 0x38033CE7: test al, al */
  21437     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  21438     _cf = 0;
  21439     _flag_k = FK_NARROW(FK_TEST, 24);
  21440     eax = MEM32(ebp + 0x8); /* 0x38033CE9: mov eax, dword ptr [ebp + 8] */
  21441     PUSH32(esp, edi); /* 0x38033CEC: push edi */
  21442     esi = ecx; /* 0x38033CED: mov esi, ecx */
  21443     if (TEST_Z(_flag_a, _flag_b)) goto L_38033CF5; /* 0x38033CEF: je 0x38033cf5 */
  21444 L_38033CF1:
  21445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21446     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21447     eax = eax + eax; /* 0x38033CF1: add eax, eax */
  21448     _flag_k = FK_ADD;
  21449     goto L_38033CFA; /* 0x38033CF3: jmp 0x38033cfa */
  21450 L_38033CF5:
  21451     eax = eax + eax * 2; /* 0x38033CF5: lea eax, [eax + eax*2] */
  21452     if (1u) _cf = (((eax) >> 31) & 1u); /* 0x38033CF8: shl eax, 1 */
  21453     if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  21454     eax = eax << 1u; /* 0x38033CF8: shl eax, 1 */
  21455 L_38033CFA:
  21456     PUSH32(esp, eax); /* 0x38033CFA: push eax */
  21457     MEM32(ebp + 0xC) = eax; /* 0x38033CFB: mov dword ptr [ebp + 0xc], eax */
  21458     RECOMP_ICALL(0x3804B676u); /* 0x38033CFE: call 0x3804b676 */ /* not lifted */
  21459     RECOMP_FLAGS_IN();
  21460     ecx = MEM32(esi + 0x84); /* 0x38033D03: mov ecx, dword ptr [esi + 0x84] */
  21461     edx = MEM32(esi + 0x88); /* 0x38033D09: mov edx, dword ptr [esi + 0x88] */
  21462     PUSH32(esp, ecx); /* 0x38033D0F: push ecx */
  21463     edi = eax; /* 0x38033D10: mov edi, eax */
  21464     PUSH32(esp, edx); /* 0x38033D12: push edx */
  21465     eax = ebp + 0xC; /* 0x38033D13: lea eax, [ebp + 0xc] */
  21466     PUSH32(esp, eax); /* 0x38033D16: push eax */
  21467     PUSH32(esp, edi); /* 0x38033D17: push edi */
  21468     RECOMP_ICALL(0x380480B0u); /* 0x38033D18: call 0x380480b0 */ /* not lifted */
  21469     RECOMP_FLAGS_IN();
  21470     edx = MEM32(esi + 0x88); /* 0x38033D1D: mov edx, dword ptr [esi + 0x88] */
  21471     ecx = MEM32(ebp + 0xC); /* 0x38033D23: mov ecx, dword ptr [ebp + 0xc] */
  21472     PUSH32(esp, edx); /* 0x38033D26: push edx */
  21473     MEM32(esi + 0x84) = ecx; /* 0x38033D27: mov dword ptr [esi + 0x84], ecx */
  21474     RECOMP_ICALL(0x3804B4F6u); /* 0x38033D2D: call 0x3804b4f6 */ /* not lifted */
  21475     RECOMP_FLAGS_IN();
  21476     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  21477     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21478     esp = esp + 0x18u; /* 0x38033D32: add esp, 0x18 */
  21479     _flag_k = FK_ADD;
  21480     MEM32(esi + 0x88) = edi; /* 0x38033D35: mov dword ptr [esi + 0x88], edi */
  21481     edi = POP32_VAL(esp); /* 0x38033D3B: pop edi */
  21482     esi = POP32_VAL(esp); /* 0x38033D3C: pop esi */
  21483     ebp = POP32_VAL(esp); /* 0x38033D3D: pop ebp */
  21484     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38033D3E: ret 8 */
  21485     RECOMP_REGS_OUT();
  21486 }
  21487 
  21488 void sub_38033D50(void) {
  21489     int _fpu_cmp = 0;
  21490     uint32_t _cf = 0;
  21491     int _df = 1;
  21492     uint32_t _flag_k = FK_NONE;
  21493     uint32_t _flag_a = 0, _flag_b = 0;
  21494     uint32_t _itail_tgt = 0;
  21495     RECOMP_REGS_LOCALS
  21496     RECOMP_ENTER(0x38033D50u);
  21497 
  21498 L_38033D50:
  21499     PUSH32(esp, ebp); /* 0x38033D50: push ebp */
  21500     ebp = esp; /* 0x38033D51: mov ebp, esp */
  21501     PUSH32(esp, 0xFFFFFFFFu); /* 0x38033D53: push -1 */
  21502     PUSH32(esp, 0x3804CBCBu); /* 0x38033D55: push 0x3804cbcb */
  21503     eax = MEM32(FS_BASE + (0)); /* 0x38033D5A: mov eax, dword ptr fs:[0] */
  21504     PUSH32(esp, eax); /* 0x38033D60: push eax */
  21505     MEM32(FS_BASE + (0)) = esp; /* 0x38033D61: mov dword ptr fs:[0], esp */
  21506     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u);
  21507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21508     esp = esp - 0x94u; /* 0x38033D68: sub esp, 0x94 */
  21509     _flag_k = FK_CMP;
  21510     PUSH32(esp, ebx); /* 0x38033D6E: push ebx */
  21511     PUSH32(esp, esi); /* 0x38033D6F: push esi */
  21512     esi = MEM32(ebp + 0x8); /* 0x38033D70: mov esi, dword ptr [ebp + 8] */
  21513     PUSH32(esp, edi); /* 0x38033D73: push edi */
  21514     edi = MEM32(0x3804E38C); /* 0x38033D74: mov edi, dword ptr [0x3804e38c] */
  21515     eax = ebp + (-0x5C); /* 0x38033D7A: lea eax, [ebp - 0x5c] */
  21516     PUSH32(esp, eax); /* 0x38033D7D: push eax */
  21517     ecx = esi; /* 0x38033D7E: mov ecx, esi */
  21518     RECOMP_ICALL(edi); /* 0x38033D80: call edi */
  21519     RECOMP_FLAGS_IN();
  21520     ecx = ebp + (-0x45); /* 0x38033D82: lea ecx, [ebp - 0x45] */
  21521     PUSH32(esp, ecx); /* 0x38033D85: push ecx */
  21522     ecx = eax; /* 0x38033D86: mov ecx, eax */
  21523     RECOMP_ICALL(edi); /* 0x38033D88: call edi */
  21524     RECOMP_FLAGS_IN();
  21525     edi = MEM32(ebp + 0xC); /* 0x38033D8A: mov edi, dword ptr [ebp + 0xc] */
  21526     ebx = MEM32(0x3804E37C); /* 0x38033D8D: mov ebx, dword ptr [0x3804e37c] */
  21527     eax = edi + 0x4C; /* 0x38033D93: lea eax, [edi + 0x4c] */
  21528     PUSH32(esp, eax); /* 0x38033D96: push eax */
  21529     ecx = esi; /* 0x38033D97: mov ecx, esi */
  21530     RECOMP_ICALL(ebx); /* 0x38033D99: call ebx */
  21531     RECOMP_FLAGS_IN();
  21532     edx = edi + 0x4E; /* 0x38033D9B: lea edx, [edi + 0x4e] */
  21533     PUSH32(esp, edx); /* 0x38033D9E: push edx */
  21534     ecx = eax; /* 0x38033D9F: mov ecx, eax */
  21535     RECOMP_ICALL(ebx); /* 0x38033DA1: call ebx */
  21536     RECOMP_FLAGS_IN();
  21537     edx = edi + 0x50; /* 0x38033DA3: lea edx, [edi + 0x50] */
  21538     PUSH32(esp, edx); /* 0x38033DA6: push edx */
  21539     ecx = eax; /* 0x38033DA7: mov ecx, eax */
  21540     RECOMP_ICALL(ebx); /* 0x38033DA9: call ebx */
  21541     RECOMP_FLAGS_IN();
  21542     edx = edi + 0x52; /* 0x38033DAB: lea edx, [edi + 0x52] */
  21543     PUSH32(esp, edx); /* 0x38033DAE: push edx */
  21544     ecx = eax; /* 0x38033DAF: mov ecx, eax */
  21545     esi = edi + 0x54; /* 0x38033DB1: lea esi, [edi + 0x54] */
  21546     RECOMP_ICALL(ebx); /* 0x38033DB4: call ebx */
  21547     RECOMP_FLAGS_IN();
  21548     ebx = MEM32(0x3804E390); /* 0x38033DB6: mov ebx, dword ptr [0x3804e390] */
  21549     edx = esi + 0x8; /* 0x38033DBC: lea edx, [esi + 8] */
  21550     PUSH32(esp, edx); /* 0x38033DBF: push edx */
  21551     ecx = esi + 0x4; /* 0x38033DC0: lea ecx, [esi + 4] */
  21552     PUSH32(esp, ecx); /* 0x38033DC3: push ecx */
  21553     PUSH32(esp, esi); /* 0x38033DC4: push esi */
  21554     ecx = eax; /* 0x38033DC5: mov ecx, eax */
  21555     RECOMP_ICALL(ebx); /* 0x38033DC7: call ebx */
  21556     RECOMP_FLAGS_IN();
  21557     ecx = eax; /* 0x38033DC9: mov ecx, eax */
  21558     RECOMP_ICALL(ebx); /* 0x38033DCB: call ebx */
  21559     RECOMP_FLAGS_IN();
  21560     ecx = eax; /* 0x38033DCD: mov ecx, eax */
  21561     RECOMP_ICALL(ebx); /* 0x38033DCF: call ebx */
  21562     RECOMP_FLAGS_IN();
  21563     SET_LO16(ecx, MEM16(edi + 0x50)); /* 0x38033DD1: mov cx, word ptr [edi + 0x50] */
  21564     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21565     eax = 0; /* 0x38033DD5: xor eax, eax */
  21566     _cf = 0;
  21567     _flag_k = FK_TEST;
  21568     SET_LO16(eax, MEM16(edi + 0x4C)); /* 0x38033DD7: mov ax, word ptr [edi + 0x4c] */
  21569     /* cmp LO16(eax), LO16(ecx) */ /* 0x38033DDB: cmp ax, cx */
  21570     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16;
  21571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21572     _flag_k = FK_NARROW(FK_CMP, 16);
  21573     MEM32(ebp + 0xC) = eax; /* 0x38033DDE: mov dword ptr [ebp + 0xc], eax */
  21574     if (CMP_AE(_flag_a, _flag_b)) goto L_380349D7; /* 0x38033DE1: jae 0x380349d7 */
  21575 L_38033DE7:
  21576     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21577     eax = 0; /* 0x38033DE7: xor eax, eax */
  21578     _cf = 0;
  21579     _flag_k = FK_TEST;
  21580     SET_LO16(eax, MEM16(edi + 0x4E)); /* 0x38033DE9: mov ax, word ptr [edi + 0x4e] */
  21581     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21582     edx = 0; /* 0x38033DED: xor edx, edx */
  21583     _cf = 0;
  21584     _flag_k = FK_TEST;
  21585     SET_LO16(edx, MEM16(edi + 0x52)); /* 0x38033DEF: mov dx, word ptr [edi + 0x52] */
  21586     /* cmp LO16(eax), LO16(edx) */ /* 0x38033DF3: cmp ax, dx */
  21587     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(edx)) << 16;
  21588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21589     _flag_k = FK_NARROW(FK_CMP, 16);
  21590     MEM32(ebp + (-0x34)) = eax; /* 0x38033DF6: mov dword ptr [ebp - 0x34], eax */
  21591     MEM32(ebp + (-0x3C)) = edx; /* 0x38033DF9: mov dword ptr [ebp - 0x3c], edx */
  21592     if (CMP_AE(_flag_a, _flag_b)) goto L_380349D7; /* 0x38033DFC: jae 0x380349d7 */
  21593 L_38033E02:
  21594     fp_push(*(float*)&MEM32(esi)); /* 0x38033E02: fld dword ptr [esi] */
  21595     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033E04: fcomp dword ptr [0x3804e8e4] */
  21596     fp_pop();
  21597     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033E0A: fnstsw ax */
  21598     /* test HI8(eax), 0x41u */ /* 0x38033E0C: test ah, 0x41 */
  21599     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21600     _cf = 0;
  21601     _flag_k = FK_NARROW(FK_TEST, 24);
  21602     if (TEST_NZ(_flag_a, _flag_b)) goto L_380349D7; /* 0x38033E0F: jne 0x380349d7 */
  21603 L_38033E15:
  21604     fp_push(*(float*)&MEM32(edi + 0x58)); /* 0x38033E15: fld dword ptr [edi + 0x58] */
  21605     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033E18: fcomp dword ptr [0x3804e8e4] */
  21606     fp_pop();
  21607     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033E1E: fnstsw ax */
  21608     /* test HI8(eax), 1 */ /* 0x38033E20: test ah, 1 */
  21609     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21610     _cf = 0;
  21611     _flag_k = FK_NARROW(FK_TEST, 24);
  21612     if (TEST_NZ(_flag_a, _flag_b)) goto L_380349D7; /* 0x38033E23: jne 0x380349d7 */
  21613 L_38033E29:
  21614     fp_push(*(float*)&MEM32(edi + 0x5C)); /* 0x38033E29: fld dword ptr [edi + 0x5c] */
  21615     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033E2C: fcomp dword ptr [0x3804e8e4] */
  21616     fp_pop();
  21617     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033E32: fnstsw ax */
  21618     /* test HI8(eax), 0x41u */ /* 0x38033E34: test ah, 0x41 */
  21619     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21620     _cf = 0;
  21621     _flag_k = FK_NARROW(FK_TEST, 24);
  21622     if (TEST_NZ(_flag_a, _flag_b)) goto L_380349D7; /* 0x38033E37: jne 0x380349d7 */
  21623 L_38033E3D:
  21624     eax = MEM32(ebp + (-0x5C)); /* 0x38033E3D: mov eax, dword ptr [ebp - 0x5c] */
  21625     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  21626     eax = eax & 3; /* 0x38033E40: and eax, 3 */
  21627     _cf = 0;
  21628     _flag_k = FK_TEST;
  21629     MEM32(edi + 0x44) = eax; /* 0x38033E43: mov dword ptr [edi + 0x44], eax */
  21630     MEM32(edi + 0x48) = eax; /* 0x38033E46: mov dword ptr [edi + 0x48], eax */
  21631     eax = esi; /* 0x38033E49: mov eax, esi */
  21632     ebx = MEM32(eax); /* 0x38033E4B: mov ebx, dword ptr [eax] */
  21633     edx = edi + 0x60; /* 0x38033E4D: lea edx, [edi + 0x60] */
  21634     MEM32(edx) = ebx; /* 0x38033E50: mov dword ptr [edx], ebx */
  21635     ebx = MEM32(eax + 0x4); /* 0x38033E52: mov ebx, dword ptr [eax + 4] */
  21636     eax = MEM32(eax + 0x8); /* 0x38033E55: mov eax, dword ptr [eax + 8] */
  21637     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
  21638     ecx = ecx & 0xFFFFu; /* 0x38033E58: and ecx, 0xffff */
  21639     _cf = 0;
  21640     _flag_k = FK_TEST;
  21641     MEM32(edx + 0x4) = ebx; /* 0x38033E5E: mov dword ptr [edx + 4], ebx */
  21642     MEM32(edx + 0x8) = eax; /* 0x38033E61: mov dword ptr [edx + 8], eax */
  21643     eax = MEM32(ebp + 0xC); /* 0x38033E64: mov eax, dword ptr [ebp + 0xc] */
  21644     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
  21645     eax = eax & 0xFFFFu; /* 0x38033E67: and eax, 0xffff */
  21646     _cf = 0;
  21647     _flag_k = FK_TEST;
  21648     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  21649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21650     ecx = ecx - eax; /* 0x38033E6C: sub ecx, eax */
  21651     _flag_k = FK_CMP;
  21652     eax = MEM32(ebp + (-0x3C)); /* 0x38033E6E: mov eax, dword ptr [ebp - 0x3c] */
  21653     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  21654     ecx = ecx - 1; /* 0x38033E71: dec ecx */
  21655     _flag_k = FK_DEC;
  21656     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFEu);
  21657     ecx = ecx & 0xFFFFFFFEu; /* 0x38033E72: and ecx, 0xfffffffe */
  21658     _cf = 0;
  21659     _flag_k = FK_TEST;
  21660     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  21661     ecx = ecx + 1; /* 0x38033E75: inc ecx */
  21662     _flag_k = FK_INC;
  21663     MEM32(ebp + 0xC) = ecx; /* 0x38033E76: mov dword ptr [ebp + 0xc], ecx */
  21664     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x38033E79: fild dword ptr [ebp + 0xc] */
  21665     ecx = MEM32(ebp + (-0x34)); /* 0x38033E7C: mov ecx, dword ptr [ebp - 0x34] */
  21666     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
  21667     eax = eax & 0xFFFFu; /* 0x38033E7F: and eax, 0xffff */
  21668     _cf = 0;
  21669     _flag_k = FK_TEST;
  21670     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38033E84: fmul dword ptr [0x3804e8bc] */
  21671     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
  21672     ecx = ecx & 0xFFFFu; /* 0x38033E8A: and ecx, 0xffff */
  21673     _cf = 0;
  21674     _flag_k = FK_TEST;
  21675     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  21676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21677     eax = eax - ecx; /* 0x38033E90: sub eax, ecx */
  21678     _flag_k = FK_CMP;
  21679     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  21680     eax = eax - 1; /* 0x38033E92: dec eax */
  21681     _flag_k = FK_DEC;
  21682     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
  21683     eax = eax & 0xFFFFFFFEu; /* 0x38033E93: and eax, 0xfffffffe */
  21684     _cf = 0;
  21685     _flag_k = FK_TEST;
  21686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  21687     eax = eax + 1; /* 0x38033E96: inc eax */
  21688     _flag_k = FK_INC;
  21689     MEM32(ebp + 0xC) = eax; /* 0x38033E97: mov dword ptr [ebp + 0xc], eax */
  21690     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x38033E9A: fild dword ptr [ebp + 0xc] */
  21691     ecx = edi + 0x6C; /* 0x38033E9D: lea ecx, [edi + 0x6c] */
  21692     ebx = ecx; /* 0x38033EA0: mov ebx, ecx */
  21693     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38033EA2: fmul dword ptr [0x3804e8bc] */
  21694     MEM32(ebp + (-0x14)) = 0; /* 0x38033EA8: mov dword ptr [ebp - 0x14], 0 */
  21695     ecx = MEM32(ebp + (-0x14)); /* 0x38033EAF: mov ecx, dword ptr [ebp - 0x14] */
  21696     fp_push(_st[1]); /* 0x38033EB2: fld st(1) */
  21697     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38033EB4: fstp dword ptr [ebp - 0x18] */
  21698     eax = MEM32(ebp + (-0x18)); /* 0x38033EB7: mov eax, dword ptr [ebp - 0x18] */
  21699     MEM32(ebp + (-0x20)) = ecx; /* 0x38033EBA: mov dword ptr [ebp - 0x20], ecx */
  21700     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38033EBD: fstp dword ptr [ebp - 0x10] */
  21701     edx = MEM32(ebp + (-0x10)); /* 0x38033EC0: mov edx, dword ptr [ebp - 0x10] */
  21702     MEM32(ebp + (-0x1C)) = edx; /* 0x38033EC3: mov dword ptr [ebp - 0x1c], edx */
  21703     _st[0] += _st[0]; /* 0x38033EC6: fadd st(0), st(0) */
  21704     MEM32(ebx) = eax; /* 0x38033EC8: mov dword ptr [ebx], eax */
  21705     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38033ECA: fld dword ptr [ebp - 0x20] */
  21706     MEM32(ebx + 0x4) = ecx; /* 0x38033ECD: mov dword ptr [ebx + 4], ecx */
  21707     ecx = MEM32(esi + 0x8); /* 0x38033ED0: mov ecx, dword ptr [esi + 8] */
  21708     _st[0] += _st[0]; /* 0x38033ED3: fadd st(0), st(0) */
  21709     MEM32(ebx + 0x8) = edx; /* 0x38033ED5: mov dword ptr [ebx + 8], edx */
  21710     edx = MEM32(esi); /* 0x38033ED8: mov edx, dword ptr [esi] */
  21711     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38033EDA: fstp dword ptr [ebp - 0x20] */
  21712     MEM32(ebp + (-0x24)) = eax; /* 0x38033EDD: mov dword ptr [ebp - 0x24], eax */
  21713     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38033EE0: fld dword ptr [ebp - 0x1c] */
  21714     eax = MEM32(esi + 0x4); /* 0x38033EE3: mov eax, dword ptr [esi + 4] */
  21715     _st[0] += _st[0]; /* 0x38033EE6: fadd st(0), st(0) */
  21716     MEM32(ebp + (-0x14)) = eax; /* 0x38033EE8: mov dword ptr [ebp - 0x14], eax */
  21717     MEM32(ebp + (-0x18)) = edx; /* 0x38033EEB: mov dword ptr [ebp - 0x18], edx */
  21718     MEM32(ebp + (-0x10)) = ecx; /* 0x38033EEE: mov dword ptr [ebp - 0x10], ecx */
  21719     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38033EF1: fstp dword ptr [ebp - 0x1c] */
  21720     _st[0] = (double)*(float*)ADDR(ebp + (-0x18)) - _st[0]; /* 0x38033EF4: fsubr dword ptr [ebp - 0x18] */
  21721     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38033EF7: fld dword ptr [ebp - 0x14] */
  21722     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x38033EFA: fsub dword ptr [ebp - 0x20] */
  21723     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38033EFD: fstp dword ptr [ebp - 0x14] */
  21724     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x38033F00: fld dword ptr [ebp - 0x10] */
  21725     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x38033F03: fsub dword ptr [ebp - 0x1c] */
  21726     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x38033F06: fstp dword ptr [ebp - 0x10] */
  21727     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033F09: fcomp dword ptr [0x3804e8e4] */
  21728     fp_pop();
  21729     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033F0F: fnstsw ax */
  21730     /* test HI8(eax), 1 */ /* 0x38033F11: test ah, 1 */
  21731     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21732     _cf = 0;
  21733     _flag_k = FK_NARROW(FK_TEST, 24);
  21734     if (TEST_NZ(_flag_a, _flag_b)) goto L_380349BC; /* 0x38033F14: jne 0x380349bc */
  21735 L_38033F1A:
  21736     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x38033F1A: fld dword ptr [ebp - 0x14] */
  21737     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033F1D: fcomp dword ptr [0x3804e8e4] */
  21738     fp_pop();
  21739     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033F23: fnstsw ax */
  21740     /* test HI8(eax), 1 */ /* 0x38033F25: test ah, 1 */
  21741     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21742     _cf = 0;
  21743     _flag_k = FK_NARROW(FK_TEST, 24);
  21744     if (TEST_NZ(_flag_a, _flag_b)) goto L_380349BC; /* 0x38033F28: jne 0x380349bc */
  21745 L_38033F2E:
  21746     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x38033F2E: fld dword ptr [ebp - 0x10] */
  21747     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38033F31: fcomp dword ptr [0x3804e8e4] */
  21748     fp_pop();
  21749     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38033F37: fnstsw ax */
  21750     /* test HI8(eax), 1 */ /* 0x38033F39: test ah, 1 */
  21751     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21752     _cf = 0;
  21753     _flag_k = FK_NARROW(FK_TEST, 24);
  21754     if (TEST_NZ(_flag_a, _flag_b)) goto L_380349BC; /* 0x38033F3C: jne 0x380349bc */
  21755 L_38033F42:
  21756     ebx = MEM32(ebp + 0x8); /* 0x38033F42: mov ebx, dword ptr [ebp + 8] */
  21757     esi = edi + 0x7C; /* 0x38033F45: lea esi, [edi + 0x7c] */
  21758     PUSH32(esp, esi); /* 0x38033F48: push esi */
  21759     ecx = ebx; /* 0x38033F49: mov ecx, ebx */
  21760     RECOMP_ICALL(MEM32(0x3804E37C)); /* 0x38033F4B: call dword ptr [0x3804e37c] */
  21761     RECOMP_FLAGS_IN();
  21762     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21763     eax = 0; /* 0x38033F51: xor eax, eax */
  21764     _cf = 0;
  21765     _flag_k = FK_TEST;
  21766     SET_LO16(eax, MEM16(esi)); /* 0x38033F53: mov ax, word ptr [esi] */
  21767     /* test LO16(eax), LO16(eax) */ /* 0x38033F56: test ax, ax */
  21768     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16;
  21769     _cf = 0;
  21770     _flag_k = FK_NARROW(FK_TEST, 16);
  21771     if (TEST_Z(_flag_a, _flag_b)) goto L_38033FBA; /* 0x38033F59: je 0x38033fba */
  21772 L_38033F5B:
  21773     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
  21774     eax = eax & 0xFFFFu; /* 0x38033F5B: and eax, 0xffff */
  21775     _cf = 0;
  21776     _flag_k = FK_TEST;
  21777     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38033F60: shl eax, 2 */
  21778     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  21779     eax = eax << 2u; /* 0x38033F60: shl eax, 2 */
  21780     PUSH32(esp, eax); /* 0x38033F63: push eax */
  21781     RECOMP_ICALL(0x3804B676u); /* 0x38033F64: call 0x3804b676 */ /* not lifted */
  21782     RECOMP_FLAGS_IN();
  21783     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21784     esi = 0; /* 0x38033F69: xor esi, esi */
  21785     _cf = 0;
  21786     _flag_k = FK_TEST;
  21787     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21789     esp = esp + 4; /* 0x38033F6B: add esp, 4 */
  21790     _flag_k = FK_ADD;
  21791     /* cmp MEM16(edi + 0x7C), LO16(esi) */ /* 0x38033F6E: cmp word ptr [edi + 0x7c], si */
  21792     _flag_a = (uint32_t)(MEM16(edi + 0x7C)) << 16; _flag_b = (uint32_t)(LO16(esi)) << 16;
  21793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21794     _flag_k = FK_NARROW(FK_CMP, 16);
  21795     MEM32(edi + 0x80) = eax; /* 0x38033F72: mov dword ptr [edi + 0x80], eax */
  21796     if (CMP_BE(_flag_a, _flag_b)) goto L_38033FC4; /* 0x38033F78: jbe 0x38033fc4 */
  21797 L_38033F7A:
  21798     edx = ebp + 0xE; /* 0x38033F7A: lea edx, [ebp + 0xe] */
  21799     PUSH32(esp, edx); /* 0x38033F7D: push edx */
  21800     ecx = ebx; /* 0x38033F7E: mov ecx, ebx */
  21801     RECOMP_ICALL(MEM32(0x3804E37C)); /* 0x38033F80: call dword ptr [0x3804e37c] */
  21802     RECOMP_FLAGS_IN();
  21803     eax = MEM32(edi + 0xC); /* 0x38033F86: mov eax, dword ptr [edi + 0xc] */
  21804     ecx = MEM32(edi + 0x80); /* 0x38033F89: mov ecx, dword ptr [edi + 0x80] */
  21805     SET_LO16(edx, MEM16(ebp + 0xE)); /* 0x38033F8F: mov dx, word ptr [ebp + 0xe] */
  21806     MEM32(ebp + (-0x40)) = eax; /* 0x38033F93: mov dword ptr [ebp - 0x40], eax */
  21807     MEM16(ecx + esi * 4) = (uint16_t)(LO16(edx)); /* 0x38033F96: mov word ptr [ecx + esi*4], dx */
  21808     eax = MEM32(edi + 0x80); /* 0x38033F9A: mov eax, dword ptr [edi + 0x80] */
  21809     eax = eax + esi * 4 + 0x2; /* 0x38033FA0: lea eax, [eax + esi*4 + 2] */
  21810     PUSH32(esp, eax); /* 0x38033FA4: push eax */
  21811     ecx = ebx; /* 0x38033FA5: mov ecx, ebx */
  21812     RECOMP_ICALL(MEM32(0x3804E37C)); /* 0x38033FA7: call dword ptr [0x3804e37c] */
  21813     RECOMP_FLAGS_IN();
  21814     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21815     ecx = 0; /* 0x38033FAD: xor ecx, ecx */
  21816     _cf = 0;
  21817     _flag_k = FK_TEST;
  21818     SET_LO16(ecx, MEM16(edi + 0x7C)); /* 0x38033FAF: mov cx, word ptr [edi + 0x7c] */
  21819     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  21820     esi = esi + 1; /* 0x38033FB3: inc esi */
  21821     _flag_k = FK_INC;
  21822     /* cmp esi, ecx */ /* 0x38033FB4: cmp esi, ecx */
  21823     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  21824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21825     _flag_k = FK_CMP;
  21826     RECOMP_BACKEDGE();
  21827     if (CMP_L(_flag_a, _flag_b)) goto L_38033F7A; /* 0x38033FB6: jl 0x38033f7a */
  21828 L_38033FB8:
  21829     goto L_38033FC4; /* 0x38033FB8: jmp 0x38033fc4 */
  21830 L_38033FBA:
  21831     MEM32(edi + 0x80) = 0; /* 0x38033FBA: mov dword ptr [edi + 0x80], 0 */
  21832 L_38033FC4:
  21833     /* test MEM8(ebp + (-0x5C)), 0x80u */ /* 0x38033FC4: test byte ptr [ebp - 0x5c], 0x80 */
  21834     _flag_a = (uint32_t)(MEM8(ebp + (-0x5C))) << 24; _flag_b = (uint32_t)(0x80u) << 24;
  21835     _cf = 0;
  21836     _flag_k = FK_NARROW(FK_TEST, 24);
  21837     if (TEST_Z(_flag_a, _flag_b)) goto L_38033FEF; /* 0x38033FC8: je 0x38033fef */
  21838 L_38033FCA:
  21839     PUSH32(esp, 0x20u); /* 0x38033FCA: push 0x20 */
  21840     RECOMP_ICALL(0x3804B676u); /* 0x38033FCC: call 0x3804b676 */ /* not lifted */
  21841     RECOMP_FLAGS_IN();
  21842     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21844     esp = esp + 4; /* 0x38033FD1: add esp, 4 */
  21845     _flag_k = FK_ADD;
  21846     PUSH32(esp, 0x20u); /* 0x38033FD4: push 0x20 */
  21847     PUSH32(esp, eax); /* 0x38033FD6: push eax */
  21848     ecx = ebx; /* 0x38033FD7: mov ecx, ebx */
  21849     MEM32(edi + 0x94) = eax; /* 0x38033FD9: mov dword ptr [edi + 0x94], eax */
  21850     RECOMP_ICALL(MEM32(0x3804E36C)); /* 0x38033FDF: call dword ptr [0x3804e36c] */
  21851     RECOMP_FLAGS_IN();
  21852     edx = MEM32(edi + 0x94); /* 0x38033FE5: mov edx, dword ptr [edi + 0x94] */
  21853     MEM8(edx + 0x1F) = (uint8_t)(0); /* 0x38033FEB: mov byte ptr [edx + 0x1f], 0 */
  21854 L_38033FEF:
  21855     esi = edi + 0x84; /* 0x38033FEF: lea esi, [edi + 0x84] */
  21856     PUSH32(esp, esi); /* 0x38033FF5: push esi */
  21857     ecx = ebx; /* 0x38033FF6: mov ecx, ebx */
  21858     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x38033FF8: call dword ptr [0x3804e388] */
  21859     RECOMP_FLAGS_IN();
  21860     edx = MEM32(esi); /* 0x38033FFE: mov edx, dword ptr [esi] */
  21861     eax = ebp + (-0x60); /* 0x38034000: lea eax, [ebp - 0x60] */
  21862     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu);
  21863     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21864     edx = edx + 0xFFFFFFFCu; /* 0x38034003: add edx, -4 */
  21865     _flag_k = FK_ADD;
  21866     PUSH32(esp, eax); /* 0x38034006: push eax */
  21867     ecx = ebx; /* 0x38034007: mov ecx, ebx */
  21868     MEM32(esi) = edx; /* 0x38034009: mov dword ptr [esi], edx */
  21869     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803400B: call dword ptr [0x3804e388] */
  21870     RECOMP_FLAGS_IN();
  21871     eax = MEM32(ebp + (-0x60)); /* 0x38034011: mov eax, dword ptr [ebp - 0x60] */
  21872     /* test eax, eax */ /* 0x38034014: test eax, eax */
  21873     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21874     _cf = 0;
  21875     _flag_k = FK_TEST;
  21876     if (TEST_Z(_flag_a, _flag_b)) goto L_38034053; /* 0x38034016: je 0x38034053 */
  21877 L_38034018:
  21878     ecx = MEM32(esi); /* 0x38034018: mov ecx, dword ptr [esi] */
  21879     PUSH32(esp, ecx); /* 0x3803401A: push ecx */
  21880     RECOMP_ICALL(0x3804B676u); /* 0x3803401B: call 0x3804b676 */ /* not lifted */
  21881     RECOMP_FLAGS_IN();
  21882     esi = MEM32(esi); /* 0x38034020: mov esi, dword ptr [esi] */
  21883     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21885     esp = esp + 4; /* 0x38034022: add esp, 4 */
  21886     _flag_k = FK_ADD;
  21887     PUSH32(esp, esi); /* 0x38034025: push esi */
  21888     PUSH32(esp, eax); /* 0x38034026: push eax */
  21889     ecx = ebx; /* 0x38034027: mov ecx, ebx */
  21890     MEM32(edi + 0x88) = eax; /* 0x38034029: mov dword ptr [edi + 0x88], eax */
  21891     RECOMP_ICALL(MEM32(0x3804E36C)); /* 0x3803402F: call dword ptr [0x3804e36c] */
  21892     RECOMP_FLAGS_IN();
  21893     edx = MEM32(edi + 0xAC); /* 0x38034035: mov edx, dword ptr [edi + 0xac] */
  21894     ecx = MEM32(ebp + (-0x60)); /* 0x3803403B: mov ecx, dword ptr [ebp - 0x60] */
  21895     /* cmp edx, 8 */ /* 0x3803403E: cmp edx, 8 */
  21896     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
  21897     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21898     _flag_k = FK_CMP;
  21899     SET_LO8(edx, (CMP_GE(_flag_a, _flag_b)) ? 1 : 0); /* 0x38034041: setge dl */
  21900     MEM8(ebp + 0xC) = (uint8_t)(LO8(edx)); /* 0x38034044: mov byte ptr [ebp + 0xc], dl */
  21901     eax = MEM32(ebp + 0xC); /* 0x38034047: mov eax, dword ptr [ebp + 0xc] */
  21902     PUSH32(esp, eax); /* 0x3803404A: push eax */
  21903     PUSH32(esp, ecx); /* 0x3803404B: push ecx */
  21904     ecx = edi; /* 0x3803404C: mov ecx, edi */
  21905     RECOMP_ICALL(0x38033CE0u); /* 0x3803404E: call 0x38033ce0 */ /* not lifted */
  21906     RECOMP_FLAGS_IN();
  21907 L_38034053:
  21908     edx = ebp + (-0x30); /* 0x38034053: lea edx, [ebp - 0x30] */
  21909     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21910     esi = 0; /* 0x38034056: xor esi, esi */
  21911     _cf = 0;
  21912     _flag_k = FK_TEST;
  21913     PUSH32(esp, edx); /* 0x38034058: push edx */
  21914     ecx = ebx; /* 0x38034059: mov ecx, ebx */
  21915     MEM32(edi + 0x8C) = esi; /* 0x3803405B: mov dword ptr [edi + 0x8c], esi */
  21916     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x38034061: call dword ptr [0x3804e388] */
  21917     RECOMP_FLAGS_IN();
  21918     ecx = MEM32(ebp + (-0x30)); /* 0x38034067: mov ecx, dword ptr [ebp - 0x30] */
  21919     /* cmp ecx, esi */ /* 0x3803406A: cmp ecx, esi */
  21920     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  21921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21922     _flag_k = FK_CMP;
  21923     if (CMP_BE(_flag_a, _flag_b)) goto L_380349A1; /* 0x3803406C: jbe 0x380349a1 */
  21924 L_38034072:
  21925     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21926     edx = 0; /* 0x38034072: xor edx, edx */
  21927     _cf = 0;
  21928     _flag_k = FK_TEST;
  21929     eax = ecx; /* 0x38034074: mov eax, ecx */
  21930     ebx = 0x3F1u; /* 0x38034076: mov ebx, 0x3f1 */
  21931     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ebx; /* 0x3803407B: div ebx */
  21932       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
  21933       else { eax = 0; edx = 0; } }
  21934     /* test edx, edx */ /* 0x3803407D: test edx, edx */
  21935     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  21936     _cf = 0;
  21937     _flag_k = FK_TEST;
  21938     if (TEST_NZ(_flag_a, _flag_b)) goto L_380349A1; /* 0x3803407F: jne 0x380349a1 */
  21939 L_38034085:
  21940     eax = 0x03CE4585u; /* 0x38034085: mov eax, 0x3ce4585 */
  21941     { uint64_t _r = (uint64_t)eax * (uint32_t)(ecx); /* 0x3803408A: mul ecx */
  21942       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
  21943       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  21944     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  21945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21946     ecx = ecx - edx; /* 0x3803408C: sub ecx, edx */
  21947     _flag_k = FK_CMP;
  21948     if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x3803408E: shr ecx, 1 */
  21949     if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  21950     ecx = ecx >> 1u; /* 0x3803408E: shr ecx, 1 */
  21951     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  21952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21953     ecx = ecx + edx; /* 0x38034090: add ecx, edx */
  21954     _flag_k = FK_ADD;
  21955     if (9u) _cf = (((ecx) >> 8) & 1u); /* 0x38034092: shr ecx, 9 */
  21956     if (9u) { _flag_a = recomp_flags_pack((ecx >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  21957     ecx = ecx >> 9u; /* 0x38034092: shr ecx, 9 */
  21958     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  21959     ecx = ecx - 1; /* 0x38034095: dec ecx */
  21960     _flag_k = FK_DEC;
  21961     MEM32(ebp + (-0x30)) = ecx; /* 0x38034096: mov dword ptr [ebp - 0x30], ecx */
  21962     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034671; /* 0x38034099: je 0x38034671 */
  21963 L_3803409F:
  21964     eax = ecx + ecx * 8; /* 0x3803409F: lea eax, [ecx + ecx*8] */
  21965     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x380340A2: shl eax, 2 */
  21966     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  21967     eax = eax << 2u; /* 0x380340A2: shl eax, 2 */
  21968     PUSH32(esp, eax); /* 0x380340A5: push eax */
  21969     RECOMP_ICALL(0x3804B676u); /* 0x380340A6: call 0x3804b676 */ /* not lifted */
  21970     RECOMP_FLAGS_IN();
  21971     ecx = MEM32(ebp + (-0x30)); /* 0x380340AB: mov ecx, dword ptr [ebp - 0x30] */
  21972     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21973     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21974     esp = esp + 4; /* 0x380340AE: add esp, 4 */
  21975     _flag_k = FK_ADD;
  21976     /* cmp ecx, esi */ /* 0x380340B1: cmp ecx, esi */
  21977     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  21978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21979     _flag_k = FK_CMP;
  21980     MEM32(ebp + (-0x38)) = eax; /* 0x380340B3: mov dword ptr [ebp - 0x38], eax */
  21981     MEM32(ebp + (-0x2C)) = esi; /* 0x380340B6: mov dword ptr [ebp - 0x2c], esi */
  21982     if (CMP_BE(_flag_a, _flag_b)) goto L_38034267; /* 0x380340B9: jbe 0x38034267 */
  21983 L_380340BF:
  21984     esi = eax + 0x4; /* 0x380340BF: lea esi, [eax + 4] */
  21985 L_380340C2:
  21986     ecx = MEM32(ebp + 0x8); /* 0x380340C2: mov ecx, dword ptr [ebp + 8] */
  21987     ebx = esi + (-0x4); /* 0x380340C5: lea ebx, [esi - 4] */
  21988     PUSH32(esp, ebx); /* 0x380340C8: push ebx */
  21989     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x380340C9: call dword ptr [0x3804e388] */
  21990     RECOMP_FLAGS_IN();
  21991     PUSH32(esp, esi); /* 0x380340CF: push esi */
  21992     ecx = eax; /* 0x380340D0: mov ecx, eax */
  21993     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x380340D2: call dword ptr [0x3804e388] */
  21994     RECOMP_FLAGS_IN();
  21995     ecx = MEM32(ebx); /* 0x380340D8: mov ecx, dword ptr [ebx] */
  21996     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  21997     ecx = ecx & 1; /* 0x380340DA: and ecx, 1 */
  21998     _cf = 0;
  21999     _flag_k = FK_TEST;
  22000     /* cmp LO8(ecx), 1 */ /* 0x380340DD: cmp cl, 1 */
  22001     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  22002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22003     _flag_k = FK_NARROW(FK_CMP, 24);
  22004     if (CMP_NE(_flag_a, _flag_b)) goto L_380340F7; /* 0x380340E0: jne 0x380340f7 */
  22005 L_380340E2:
  22006     edx = MEM32(esi); /* 0x380340E2: mov edx, dword ptr [esi] */
  22007     eax = MEM32(edi + 0x8C); /* 0x380340E4: mov eax, dword ptr [edi + 0x8c] */
  22008     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2);
  22009     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22010     edx = edx - 2; /* 0x380340EA: sub edx, 2 */
  22011     _flag_k = FK_CMP;
  22012     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  22013     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22014     eax = eax + edx; /* 0x380340ED: add eax, edx */
  22015     _flag_k = FK_ADD;
  22016     MEM32(edi + 0x8C) = eax; /* 0x380340EF: mov dword ptr [edi + 0x8c], eax */
  22017     goto L_380340FF; /* 0x380340F5: jmp 0x380340ff */
  22018 L_380340F7:
  22019     eax = MEM32(esi); /* 0x380340F7: mov eax, dword ptr [esi] */
  22020     _flag_a = (uint32_t)(MEM32(edi + 0x8C)); _flag_b = (uint32_t)(eax);
  22021     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22022     MEM32(edi + 0x8C) = MEM32(edi + 0x8C) + eax; /* 0x380340F9: add dword ptr [edi + 0x8c], eax */
  22023     _flag_k = FK_ADD;
  22024 L_380340FF:
  22025     eax = MEM32(esi); /* 0x380340FF: mov eax, dword ptr [esi] */
  22026     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22027     ebx = 0; /* 0x38034101: xor ebx, ebx */
  22028     _cf = 0;
  22029     _flag_k = FK_TEST;
  22030     /* cmp eax, ebx */ /* 0x38034103: cmp eax, ebx */
  22031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  22032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22033     _flag_k = FK_CMP;
  22034     if (CMP_EQ(_flag_a, _flag_b)) goto L_380341B4; /* 0x38034105: je 0x380341b4 */
  22035 L_3803410B:
  22036     ecx = eax * 4; /* 0x3803410B: lea ecx, [eax*4] */
  22037     PUSH32(esp, ecx); /* 0x38034112: push ecx */
  22038     RECOMP_ICALL(0x3804B676u); /* 0x38034113: call 0x3804b676 */ /* not lifted */
  22039     RECOMP_FLAGS_IN();
  22040     MEM32(esi + 0x4) = eax; /* 0x38034118: mov dword ptr [esi + 4], eax */
  22041     edx = MEM32(esi); /* 0x3803411B: mov edx, dword ptr [esi] */
  22042     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3803411D: shl edx, 2 */
  22043     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22044     edx = edx << 2u; /* 0x3803411D: shl edx, 2 */
  22045     PUSH32(esp, edx); /* 0x38034120: push edx */
  22046     RECOMP_ICALL(0x3804B676u); /* 0x38034121: call 0x3804b676 */ /* not lifted */
  22047     RECOMP_FLAGS_IN();
  22048     MEM32(esi + 0x8) = eax; /* 0x38034126: mov dword ptr [esi + 8], eax */
  22049     eax = MEM32(esi); /* 0x38034129: mov eax, dword ptr [esi] */
  22050     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3803412B: shl eax, 2 */
  22051     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22052     eax = eax << 2u; /* 0x3803412B: shl eax, 2 */
  22053     PUSH32(esp, eax); /* 0x3803412E: push eax */
  22054     RECOMP_ICALL(0x3804B676u); /* 0x3803412F: call 0x3804b676 */ /* not lifted */
  22055     RECOMP_FLAGS_IN();
  22056     MEM32(esi + 0xC) = eax; /* 0x38034134: mov dword ptr [esi + 0xc], eax */
  22057     eax = MEM32(esi); /* 0x38034137: mov eax, dword ptr [esi] */
  22058     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  22059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22060     esp = esp + 0xCu; /* 0x38034139: add esp, 0xc */
  22061     _flag_k = FK_ADD;
  22062     /* cmp eax, ebx */ /* 0x3803413C: cmp eax, ebx */
  22063     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  22064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22065     _flag_k = FK_CMP;
  22066     MEM32(ebp + 0xC) = ebx; /* 0x3803413E: mov dword ptr [ebp + 0xc], ebx */
  22067     if (CMP_BE(_flag_a, _flag_b)) goto L_380341BD; /* 0x38034141: jbe 0x380341bd */
  22068 L_38034143:
  22069     ecx = MEM32(ebp + 0xC); /* 0x38034143: mov ecx, dword ptr [ebp + 0xc] */
  22070     edx = MEM32(esi + 0xC); /* 0x38034146: mov edx, dword ptr [esi + 0xc] */
  22071     eax = MEM32(esi + 0x8); /* 0x38034149: mov eax, dword ptr [esi + 8] */
  22072     ebx = ecx * 4; /* 0x3803414C: lea ebx, [ecx*4] */
  22073     ecx = MEM32(esi + 0x4); /* 0x38034153: mov ecx, dword ptr [esi + 4] */
  22074     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  22075     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22076     edx = edx + ebx; /* 0x38034156: add edx, ebx */
  22077     _flag_k = FK_ADD;
  22078     PUSH32(esp, edx); /* 0x38034158: push edx */
  22079     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  22080     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22081     eax = eax + ebx; /* 0x38034159: add eax, ebx */
  22082     _flag_k = FK_ADD;
  22083     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  22084     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22085     ecx = ecx + ebx; /* 0x3803415B: add ecx, ebx */
  22086     _flag_k = FK_ADD;
  22087     PUSH32(esp, eax); /* 0x3803415D: push eax */
  22088     PUSH32(esp, ecx); /* 0x3803415E: push ecx */
  22089     ecx = MEM32(ebp + 0x8); /* 0x3803415F: mov ecx, dword ptr [ebp + 8] */
  22090     RECOMP_ICALL(MEM32(0x3804E390)); /* 0x38034162: call dword ptr [0x3804e390] */
  22091     RECOMP_FLAGS_IN();
  22092     ecx = eax; /* 0x38034168: mov ecx, eax */
  22093     RECOMP_ICALL(MEM32(0x3804E390)); /* 0x3803416A: call dword ptr [0x3804e390] */
  22094     RECOMP_FLAGS_IN();
  22095     ecx = eax; /* 0x38034170: mov ecx, eax */
  22096     RECOMP_ICALL(MEM32(0x3804E390)); /* 0x38034172: call dword ptr [0x3804e390] */
  22097     RECOMP_FLAGS_IN();
  22098     edx = MEM32(esi + 0x8); /* 0x38034178: mov edx, dword ptr [esi + 8] */
  22099     fp_push(*(float*)&MEM32(edx + ebx)); /* 0x3803417B: fld dword ptr [edx + ebx] */
  22100     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  22101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22102     esp = esp - 8; /* 0x3803417E: sub esp, 8 */
  22103     _flag_k = FK_CMP;
  22104     _st[0] *= (double)*(float*)ADDR(0x3804EABC); /* 0x38034181: fmul dword ptr [0x3804eabc] */
  22105     _st[0] += (double)*(float*)ADDR(0x3804E8BC); /* 0x38034187: fadd dword ptr [0x3804e8bc] */
  22106     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3803418D: fstp qword ptr [esp] */
  22107     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38034190: call dword ptr [0x3804e0ac] */
  22108     RECOMP_FLAGS_IN();
  22109     eax = MEM32(esi + 0x8); /* 0x38034196: mov eax, dword ptr [esi + 8] */
  22110     _st[0] *= (double)*(float*)ADDR(0x3804ED64); /* 0x38034199: fmul dword ptr [0x3804ed64] */
  22111     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  22112     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22113     esp = esp + 8; /* 0x3803419F: add esp, 8 */
  22114     _flag_k = FK_ADD;
  22115     { float _v = (float)fp_pop(); *(float*)ADDR(eax + ebx) = _v; } /* 0x380341A2: fstp dword ptr [eax + ebx] */
  22116     eax = MEM32(ebp + 0xC); /* 0x380341A5: mov eax, dword ptr [ebp + 0xc] */
  22117     ecx = MEM32(esi); /* 0x380341A8: mov ecx, dword ptr [esi] */
  22118     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  22119     eax = eax + 1; /* 0x380341AA: inc eax */
  22120     _flag_k = FK_INC;
  22121     /* cmp eax, ecx */ /* 0x380341AB: cmp eax, ecx */
  22122     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  22123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22124     _flag_k = FK_CMP;
  22125     MEM32(ebp + 0xC) = eax; /* 0x380341AD: mov dword ptr [ebp + 0xc], eax */
  22126     RECOMP_BACKEDGE();
  22127     if (CMP_B(_flag_a, _flag_b)) goto L_38034143; /* 0x380341B0: jb 0x38034143 */
  22128 L_380341B2:
  22129     goto L_380341BD; /* 0x380341B2: jmp 0x380341bd */
  22130 L_380341B4:
  22131     MEM32(esi + 0x4) = ebx; /* 0x380341B4: mov dword ptr [esi + 4], ebx */
  22132     MEM32(esi + 0x8) = ebx; /* 0x380341B7: mov dword ptr [esi + 8], ebx */
  22133     MEM32(esi + 0xC) = ebx; /* 0x380341BA: mov dword ptr [esi + 0xc], ebx */
  22134 L_380341BD:
  22135     ecx = MEM32(ebp + 0x8); /* 0x380341BD: mov ecx, dword ptr [ebp + 8] */
  22136     ebx = esi + 0x10; /* 0x380341C0: lea ebx, [esi + 0x10] */
  22137     PUSH32(esp, ebx); /* 0x380341C3: push ebx */
  22138     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x380341C4: call dword ptr [0x3804e388] */
  22139     RECOMP_FLAGS_IN();
  22140     eax = MEM32(ebx); /* 0x380341CA: mov eax, dword ptr [ebx] */
  22141     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22142     ecx = 0; /* 0x380341CC: xor ecx, ecx */
  22143     _cf = 0;
  22144     _flag_k = FK_TEST;
  22145     /* cmp eax, ecx */ /* 0x380341CE: cmp eax, ecx */
  22146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  22147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22148     _flag_k = FK_CMP;
  22149     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034249; /* 0x380341D0: je 0x38034249 */
  22150 L_380341D2:
  22151     ecx = eax + eax; /* 0x380341D2: lea ecx, [eax + eax] */
  22152     PUSH32(esp, ecx); /* 0x380341D5: push ecx */
  22153     RECOMP_ICALL(0x3804B676u); /* 0x380341D6: call 0x3804b676 */ /* not lifted */
  22154     RECOMP_FLAGS_IN();
  22155     MEM32(esi + 0x14) = eax; /* 0x380341DB: mov dword ptr [esi + 0x14], eax */
  22156     edx = MEM32(ebx); /* 0x380341DE: mov edx, dword ptr [ebx] */
  22157     if (1u) _cf = (((edx) >> 31) & 1u); /* 0x380341E0: shl edx, 1 */
  22158     if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22159     edx = edx << 1u; /* 0x380341E0: shl edx, 1 */
  22160     PUSH32(esp, edx); /* 0x380341E2: push edx */
  22161     RECOMP_ICALL(0x3804B676u); /* 0x380341E3: call 0x3804b676 */ /* not lifted */
  22162     RECOMP_FLAGS_IN();
  22163     MEM32(esi + 0x18) = eax; /* 0x380341E8: mov dword ptr [esi + 0x18], eax */
  22164     eax = MEM32(ebx); /* 0x380341EB: mov eax, dword ptr [ebx] */
  22165     if (1u) _cf = (((eax) >> 31) & 1u); /* 0x380341ED: shl eax, 1 */
  22166     if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22167     eax = eax << 1u; /* 0x380341ED: shl eax, 1 */
  22168     PUSH32(esp, eax); /* 0x380341EF: push eax */
  22169     RECOMP_ICALL(0x3804B676u); /* 0x380341F0: call 0x3804b676 */ /* not lifted */
  22170     RECOMP_FLAGS_IN();
  22171     MEM32(esi + 0x1C) = eax; /* 0x380341F5: mov dword ptr [esi + 0x1c], eax */
  22172     eax = MEM32(ebx); /* 0x380341F8: mov eax, dword ptr [ebx] */
  22173     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  22174     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22175     esp = esp + 0xCu; /* 0x380341FA: add esp, 0xc */
  22176     _flag_k = FK_ADD;
  22177     /* test eax, eax */ /* 0x380341FD: test eax, eax */
  22178     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22179     _cf = 0;
  22180     _flag_k = FK_TEST;
  22181     MEM32(ebp + 0xC) = 0; /* 0x380341FF: mov dword ptr [ebp + 0xc], 0 */
  22182     if (TEST_Z(_flag_a, _flag_b)) goto L_38034252; /* 0x38034206: jbe 0x38034252 */
  22183 L_38034208:
  22184     ecx = MEM32(ebp + 0xC); /* 0x38034208: mov ecx, dword ptr [ebp + 0xc] */
  22185     eax = MEM32(esi + 0x14); /* 0x3803420B: mov eax, dword ptr [esi + 0x14] */
  22186     ebx = ecx + ecx; /* 0x3803420E: lea ebx, [ecx + ecx] */
  22187     ecx = MEM32(ebp + 0x8); /* 0x38034211: mov ecx, dword ptr [ebp + 8] */
  22188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  22189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22190     eax = eax + ebx; /* 0x38034214: add eax, ebx */
  22191     _flag_k = FK_ADD;
  22192     PUSH32(esp, eax); /* 0x38034216: push eax */
  22193     RECOMP_ICALL(MEM32(0x3804E37C)); /* 0x38034217: call dword ptr [0x3804e37c] */
  22194     RECOMP_FLAGS_IN();
  22195     edx = MEM32(esi + 0x18); /* 0x3803421D: mov edx, dword ptr [esi + 0x18] */
  22196     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  22197     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22198     edx = edx + ebx; /* 0x38034220: add edx, ebx */
  22199     _flag_k = FK_ADD;
  22200     PUSH32(esp, edx); /* 0x38034222: push edx */
  22201     ecx = eax; /* 0x38034223: mov ecx, eax */
  22202     RECOMP_ICALL(MEM32(0x3804E37C)); /* 0x38034225: call dword ptr [0x3804e37c] */
  22203     RECOMP_FLAGS_IN();
  22204     edx = MEM32(esi + 0x1C); /* 0x3803422B: mov edx, dword ptr [esi + 0x1c] */
  22205     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  22206     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22207     edx = edx + ebx; /* 0x3803422E: add edx, ebx */
  22208     _flag_k = FK_ADD;
  22209     PUSH32(esp, edx); /* 0x38034230: push edx */
  22210     ecx = eax; /* 0x38034231: mov ecx, eax */
  22211     RECOMP_ICALL(MEM32(0x3804E37C)); /* 0x38034233: call dword ptr [0x3804e37c] */
  22212     RECOMP_FLAGS_IN();
  22213     eax = MEM32(ebp + 0xC); /* 0x38034239: mov eax, dword ptr [ebp + 0xc] */
  22214     ecx = MEM32(esi + 0x10); /* 0x3803423C: mov ecx, dword ptr [esi + 0x10] */
  22215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  22216     eax = eax + 1; /* 0x3803423F: inc eax */
  22217     _flag_k = FK_INC;
  22218     /* cmp eax, ecx */ /* 0x38034240: cmp eax, ecx */
  22219     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  22220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22221     _flag_k = FK_CMP;
  22222     MEM32(ebp + 0xC) = eax; /* 0x38034242: mov dword ptr [ebp + 0xc], eax */
  22223     RECOMP_BACKEDGE();
  22224     if (CMP_B(_flag_a, _flag_b)) goto L_38034208; /* 0x38034245: jb 0x38034208 */
  22225 L_38034247:
  22226     goto L_38034252; /* 0x38034247: jmp 0x38034252 */
  22227 L_38034249:
  22228     MEM32(esi + 0x14) = ecx; /* 0x38034249: mov dword ptr [esi + 0x14], ecx */
  22229     MEM32(esi + 0x18) = ecx; /* 0x3803424C: mov dword ptr [esi + 0x18], ecx */
  22230     MEM32(esi + 0x1C) = ecx; /* 0x3803424F: mov dword ptr [esi + 0x1c], ecx */
  22231 L_38034252:
  22232     eax = MEM32(ebp + (-0x2C)); /* 0x38034252: mov eax, dword ptr [ebp - 0x2c] */
  22233     ecx = MEM32(ebp + (-0x30)); /* 0x38034255: mov ecx, dword ptr [ebp - 0x30] */
  22234     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  22235     eax = eax + 1; /* 0x38034258: inc eax */
  22236     _flag_k = FK_INC;
  22237     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
  22238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22239     esi = esi + 0x24u; /* 0x38034259: add esi, 0x24 */
  22240     _flag_k = FK_ADD;
  22241     /* cmp eax, ecx */ /* 0x3803425C: cmp eax, ecx */
  22242     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  22243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22244     _flag_k = FK_CMP;
  22245     MEM32(ebp + (-0x2C)) = eax; /* 0x3803425E: mov dword ptr [ebp - 0x2c], eax */
  22246     RECOMP_BACKEDGE();
  22247     if (CMP_B(_flag_a, _flag_b)) goto L_380340C2; /* 0x38034261: jb 0x380340c2 */
  22248 L_38034267:
  22249     esi = MEM32(edi + 0x8C); /* 0x38034267: mov esi, dword ptr [edi + 0x8c] */
  22250     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22251     ebx = 0; /* 0x3803426D: xor ebx, ebx */
  22252     _cf = 0;
  22253     _flag_k = FK_TEST;
  22254     /* cmp esi, ebx */ /* 0x3803426F: cmp esi, ebx */
  22255     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  22256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22257     _flag_k = FK_CMP;
  22258     if (CMP_BE(_flag_a, _flag_b)) goto L_380345C7; /* 0x38034271: jbe 0x380345c7 */
  22259 L_38034277:
  22260     edx = esi + esi * 4; /* 0x38034277: lea edx, [esi + esi*4] */
  22261     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x3803427A: shl edx, 3 */
  22262     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22263     edx = edx << 3u; /* 0x3803427A: shl edx, 3 */
  22264     PUSH32(esp, edx); /* 0x3803427D: push edx */
  22265     MEM32(ebp + 0xC) = ebx; /* 0x3803427E: mov dword ptr [ebp + 0xc], ebx */
  22266     RECOMP_ICALL(0x3804B676u); /* 0x38034281: call 0x3804b676 */ /* not lifted */
  22267     RECOMP_FLAGS_IN();
  22268     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22269     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22270     esp = esp + 4; /* 0x38034286: add esp, 4 */
  22271     _flag_k = FK_ADD;
  22272     /* cmp eax, ebx */ /* 0x38034289: cmp eax, ebx */
  22273     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  22274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22275     _flag_k = FK_CMP;
  22276     if (CMP_EQ(_flag_a, _flag_b)) goto L_380342BA; /* 0x3803428B: je 0x380342ba */
  22277 L_3803428D:
  22278     edx = esi + (-0x1); /* 0x3803428D: lea edx, [esi - 1] */
  22279     /* cmp edx, ebx */ /* 0x38034290: cmp edx, ebx */
  22280     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  22281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22282     _flag_k = FK_CMP;
  22283     if (CMP_L(_flag_a, _flag_b)) goto L_380342BC; /* 0x38034292: jl 0x380342bc */
  22284 L_38034294:
  22285     ecx = eax + 0x14; /* 0x38034294: lea ecx, [eax + 0x14] */
  22286     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  22287     edx = edx + 1; /* 0x38034297: inc edx */
  22288     _flag_k = FK_INC;
  22289 L_38034298:
  22290     MEM32(ecx + (-0x14)) = ebx; /* 0x38034298: mov dword ptr [ecx - 0x14], ebx */
  22291     MEM32(ecx + (-0x10)) = ebx; /* 0x3803429B: mov dword ptr [ecx - 0x10], ebx */
  22292     MEM32(ecx + (-0xC)) = ebx; /* 0x3803429E: mov dword ptr [ecx - 0xc], ebx */
  22293     MEM32(ecx + (-0x8)) = ebx; /* 0x380342A1: mov dword ptr [ecx - 8], ebx */
  22294     MEM32(ecx + (-0x4)) = ebx; /* 0x380342A4: mov dword ptr [ecx - 4], ebx */
  22295     MEM32(ecx) = ebx; /* 0x380342A7: mov dword ptr [ecx], ebx */
  22296     MEM32(ecx + 0x4) = ebx; /* 0x380342A9: mov dword ptr [ecx + 4], ebx */
  22297     MEM32(ecx + 0x8) = ebx; /* 0x380342AC: mov dword ptr [ecx + 8], ebx */
  22298     MEM32(ecx + 0xC) = ebx; /* 0x380342AF: mov dword ptr [ecx + 0xc], ebx */
  22299     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u);
  22300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22301     ecx = ecx + 0x28u; /* 0x380342B2: add ecx, 0x28 */
  22302     _flag_k = FK_ADD;
  22303     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  22304     edx = edx - 1; /* 0x380342B5: dec edx */
  22305     _flag_k = FK_DEC;
  22306     RECOMP_BACKEDGE();
  22307     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034298; /* 0x380342B6: jne 0x38034298 */
  22308 L_380342B8:
  22309     goto L_380342BC; /* 0x380342B8: jmp 0x380342bc */
  22310 L_380342BA:
  22311     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22312     eax = 0; /* 0x380342BA: xor eax, eax */
  22313     _cf = 0;
  22314     _flag_k = FK_TEST;
  22315 L_380342BC:
  22316     MEM32(edi + 0x90) = eax; /* 0x380342BC: mov dword ptr [edi + 0x90], eax */
  22317     /* cmp MEM32(ebp + (-0x30)), ebx */ /* 0x380342C2: cmp dword ptr [ebp - 0x30], ebx */
  22318     _flag_a = (uint32_t)(MEM32(ebp + (-0x30))); _flag_b = (uint32_t)(ebx);
  22319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22320     _flag_k = FK_CMP;
  22321     MEM32(ebp + (-0x2C)) = ebx; /* 0x380342C5: mov dword ptr [ebp - 0x2c], ebx */
  22322     if (CMP_BE(_flag_a, _flag_b)) goto L_380345B4; /* 0x380342C8: jbe 0x380345b4 */
  22323 L_380342CE:
  22324     eax = MEM32(ebp + (-0x38)); /* 0x380342CE: mov eax, dword ptr [ebp - 0x38] */
  22325     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  22326     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22327     eax = eax + 4; /* 0x380342D1: add eax, 4 */
  22328     _flag_k = FK_ADD;
  22329 L_380342D4:
  22330     ecx = MEM32(eax + (-0x4)); /* 0x380342D4: mov ecx, dword ptr [eax - 4] */
  22331     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  22332     ecx = ecx & 1; /* 0x380342D7: and ecx, 1 */
  22333     _cf = 0;
  22334     _flag_k = FK_TEST;
  22335     /* cmp LO8(ecx), 1 */ /* 0x380342DA: cmp cl, 1 */
  22336     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  22337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22338     _flag_k = FK_NARROW(FK_CMP, 24);
  22339     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342DD: je 0x38034490 */
  22340 L_380342E3:
  22341     edx = MEM32(eax); /* 0x380342E3: mov edx, dword ptr [eax] */
  22342     /* cmp edx, 3 */ /* 0x380342E5: cmp edx, 3 */
  22343     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3);
  22344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22345     _flag_k = FK_CMP;
  22346     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342E8: je 0x38034490 */
  22347 L_380342EE:
  22348     /* test edx, edx */ /* 0x380342EE: test edx, edx */
  22349     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  22350     _cf = 0;
  22351     _flag_k = FK_TEST;
  22352     MEM32(ebp + (-0xA0)) = 0; /* 0x380342F0: mov dword ptr [ebp - 0xa0], 0 */
  22353     ecx = MEM32(ebp + (-0xA0)); /* 0x380342FA: mov ecx, dword ptr [ebp - 0xa0] */
  22354     MEM32(ebp + (-0x24)) = ecx; /* 0x38034300: mov dword ptr [ebp - 0x24], ecx */
  22355     MEM32(ebp + (-0x9C)) = 0; /* 0x38034303: mov dword ptr [ebp - 0x9c], 0 */
  22356     ecx = MEM32(ebp + (-0x9C)); /* 0x3803430D: mov ecx, dword ptr [ebp - 0x9c] */
  22357     MEM32(ebp + (-0x98)) = 0; /* 0x38034313: mov dword ptr [ebp - 0x98], 0 */
  22358     MEM32(ebp + (-0x20)) = ecx; /* 0x3803431D: mov dword ptr [ebp - 0x20], ecx */
  22359     ecx = MEM32(ebp + (-0x98)); /* 0x38034320: mov ecx, dword ptr [ebp - 0x98] */
  22360     MEM32(ebp + (-0x1C)) = ecx; /* 0x38034326: mov dword ptr [ebp - 0x1c], ecx */
  22361     if (TEST_Z(_flag_a, _flag_b)) goto L_38034374; /* 0x38034329: jbe 0x38034374 */
  22362 L_3803432B:
  22363     ecx = MEM32(eax + 0x8); /* 0x3803432B: mov ecx, dword ptr [eax + 8] */
  22364     esi = MEM32(eax + 0xC); /* 0x3803432E: mov esi, dword ptr [eax + 0xc] */
  22365     ebx = MEM32(eax + 0x4); /* 0x38034331: mov ebx, dword ptr [eax + 4] */
  22366     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  22367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22368     esi = esi - ecx; /* 0x38034334: sub esi, ecx */
  22369     _flag_k = FK_CMP;
  22370     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
  22371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22372     ebx = ebx - ecx; /* 0x38034336: sub ebx, ecx */
  22373     _flag_k = FK_CMP;
  22374     MEM32(ebp + (-0x3C)) = ebx; /* 0x38034338: mov dword ptr [ebp - 0x3c], ebx */
  22375     MEM32(ebp + (-0x28)) = edx; /* 0x3803433B: mov dword ptr [ebp - 0x28], edx */
  22376 L_3803433E:
  22377     fp_push(*(float*)&MEM32(esi + ecx)); /* 0x3803433E: fld dword ptr [esi + ecx] */
  22378     ebx = MEM32(ebp + (-0x3C)); /* 0x38034341: mov ebx, dword ptr [ebp - 0x3c] */
  22379     fp_push(*(float*)&MEM32(ecx)); /* 0x38034344: fld dword ptr [ecx] */
  22380     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  22381     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22382     ecx = ecx + 4; /* 0x38034346: add ecx, 4 */
  22383     _flag_k = FK_ADD;
  22384     fp_push(*(float*)&MEM32(ebx + ecx + (-0x4))); /* 0x38034349: fld dword ptr [ebx + ecx - 4] */
  22385     ebx = MEM32(ebp + (-0x28)); /* 0x3803434D: mov ebx, dword ptr [ebp - 0x28] */
  22386     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034350: fld dword ptr [ebp - 0x24] */
  22387     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  22388     ebx = ebx - 1; /* 0x38034353: dec ebx */
  22389     _flag_k = FK_DEC;
  22390     _st[0] += _st[1]; /* 0x38034354: fadd st(1) */
  22391     MEM32(ebp + (-0x28)) = ebx; /* 0x38034356: mov dword ptr [ebp - 0x28], ebx */
  22392     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38034359: fstp dword ptr [ebp - 0x24] */
  22393     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803435C: fstp st(0) */
  22394     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3803435E: fld dword ptr [ebp - 0x20] */
  22395     _st[0] += _st[1]; /* 0x38034361: fadd st(1) */
  22396     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38034363: fstp dword ptr [ebp - 0x20] */
  22397     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034366: fstp st(0) */
  22398     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38034368: fld dword ptr [ebp - 0x1c] */
  22399     _st[0] += _st[1]; /* 0x3803436B: fadd st(1) */
  22400     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803436D: fstp dword ptr [ebp - 0x1c] */
  22401     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034370: fstp st(0) */
  22402     RECOMP_BACKEDGE();
  22403     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3803433E; /* 0x38034372: jne 0x3803433e */
  22404 L_38034374:
  22405     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22406     ecx = 0; /* 0x38034374: xor ecx, ecx */
  22407     _cf = 0;
  22408     _flag_k = FK_TEST;
  22409     /* cmp edx, ecx */ /* 0x38034376: cmp edx, ecx */
  22410     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  22411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22412     _flag_k = FK_CMP;
  22413     MEM32(ebp + (-0x44)) = edx; /* 0x38034378: mov dword ptr [ebp - 0x44], edx */
  22414     MEM32(ebp + (-0x40)) = ecx; /* 0x3803437B: mov dword ptr [ebp - 0x40], ecx */
  22415     fp_push_i64((int64_t)MEM64(ebp + (-0x44))); /* 0x3803437E: fild qword ptr [ebp - 0x44] */
  22416     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034381: fld dword ptr [ebp - 0x24] */
  22417     esi = MEM32(ebp + (-0x24)); /* 0x38034384: mov esi, dword ptr [ebp - 0x24] */
  22418     MEM32(ebp + (-0x18)) = esi; /* 0x38034387: mov dword ptr [ebp - 0x18], esi */
  22419     _st[0] /= _st[1]; /* 0x3803438A: fdiv st(1) */
  22420     esi = MEM32(ebp + (-0x20)); /* 0x3803438C: mov esi, dword ptr [ebp - 0x20] */
  22421     MEM32(ebp + (-0x14)) = esi; /* 0x3803438F: mov dword ptr [ebp - 0x14], esi */
  22422     esi = MEM32(ebp + (-0x1C)); /* 0x38034392: mov esi, dword ptr [ebp - 0x1c] */
  22423     MEM32(ebp + (-0x10)) = esi; /* 0x38034395: mov dword ptr [ebp - 0x10], esi */
  22424     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38034398: fstp dword ptr [ebp - 0x18] */
  22425     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803439B: fld dword ptr [ebp - 0x14] */
  22426     _st[0] /= _st[1]; /* 0x3803439E: fdiv st(1) */
  22427     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380343A0: fstp dword ptr [ebp - 0x14] */
  22428     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380343A3: fld dword ptr [ebp - 0x10] */
  22429     _st[0] /= _st[1]; /* 0x380343A6: fdiv st(1) */
  22430     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380343A8: fstp dword ptr [ebp - 0x10] */
  22431     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380343AB: fstp st(0) */
  22432     if (CMP_BE(_flag_a, _flag_b)) goto L_3803459F; /* 0x380343AD: jbe 0x3803459f */
  22433 L_380343B3:
  22434     edx = MEM32(ebp + 0xC); /* 0x380343B3: mov edx, dword ptr [ebp + 0xc] */
  22435     edx = edx + edx * 4; /* 0x380343B6: lea edx, [edx + edx*4] */
  22436     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380343B9: shl edx, 3 */
  22437     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22438     edx = edx << 3u; /* 0x380343B9: shl edx, 3 */
  22439 L_380343BC:
  22440     ebx = MEM32(edi + 0x90); /* 0x380343BC: mov ebx, dword ptr [edi + 0x90] */
  22441     esi = eax + (-0x4); /* 0x380343C2: lea esi, [eax - 4] */
  22442     esi = MEM32(esi); /* 0x380343C5: mov esi, dword ptr [esi] */
  22443     MEM32(ebx + edx + 0x24) = esi; /* 0x380343C7: mov dword ptr [ebx + edx + 0x24], esi */
  22444     esi = MEM32(edi + 0x90); /* 0x380343CB: mov esi, dword ptr [edi + 0x90] */
  22445     ebx = MEM32(ebp + (-0x18)); /* 0x380343D1: mov ebx, dword ptr [ebp - 0x18] */
  22446     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  22447     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22448     esi = esi + edx; /* 0x380343D4: add esi, edx */
  22449     _flag_k = FK_ADD;
  22450     /* test ecx, ecx */ /* 0x380343D6: test ecx, ecx */
  22451     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  22452     _cf = 0;
  22453     _flag_k = FK_TEST;
  22454     MEM32(esi) = ebx; /* 0x380343D8: mov dword ptr [esi], ebx */
  22455     ebx = MEM32(ebp + (-0x14)); /* 0x380343DA: mov ebx, dword ptr [ebp - 0x14] */
  22456     MEM32(esi + 0x4) = ebx; /* 0x380343DD: mov dword ptr [esi + 4], ebx */
  22457     ebx = MEM32(ebp + (-0x10)); /* 0x380343E0: mov ebx, dword ptr [ebp - 0x10] */
  22458     MEM32(esi + 0x8) = ebx; /* 0x380343E3: mov dword ptr [esi + 8], ebx */
  22459     if (TEST_NZ(_flag_a, _flag_b)) goto L_380343ED; /* 0x380343E6: jne 0x380343ed */
  22460 L_380343E8:
  22461     esi = MEM32(eax); /* 0x380343E8: mov esi, dword ptr [eax] */
  22462     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  22463     esi = esi - 1; /* 0x380343EA: dec esi */
  22464     _flag_k = FK_DEC;
  22465     goto L_380343F0; /* 0x380343EB: jmp 0x380343f0 */
  22466 L_380343ED:
  22467     esi = ecx + (-0x1); /* 0x380343ED: lea esi, [ecx - 1] */
  22468 L_380343F0:
  22469     ebx = MEM32(eax + 0xC); /* 0x380343F0: mov ebx, dword ptr [eax + 0xc] */
  22470     fp_push(*(float*)&MEM32(ebx + esi * 4)); /* 0x380343F3: fld dword ptr [ebx + esi*4] */
  22471     ebx = esi; /* 0x380343F6: mov ebx, esi */
  22472     MEM32(ebp + (-0x34)) = esi; /* 0x380343F8: mov dword ptr [ebp - 0x34], esi */
  22473     esi = MEM32(eax + 0x8); /* 0x380343FB: mov esi, dword ptr [eax + 8] */
  22474     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x380343FE: fld dword ptr [esi + ebx*4] */
  22475     esi = MEM32(eax + 0x4); /* 0x38034401: mov esi, dword ptr [eax + 4] */
  22476     ebx = MEM32(ebp + (-0x34)); /* 0x38034404: mov ebx, dword ptr [ebp - 0x34] */
  22477     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x38034407: fld dword ptr [esi + ebx*4] */
  22478     esi = MEM32(edi + 0x90); /* 0x3803440A: mov esi, dword ptr [edi + 0x90] */
  22479     esi = esi + edx + 0xC; /* 0x38034410: lea esi, [esi + edx + 0xc] */
  22480     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38034414: fstp dword ptr [ebp - 0x7c] */
  22481     ebx = MEM32(ebp + (-0x7C)); /* 0x38034417: mov ebx, dword ptr [ebp - 0x7c] */
  22482     MEM32(esi) = ebx; /* 0x3803441A: mov dword ptr [esi], ebx */
  22483     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x3803441C: fstp dword ptr [ebp - 0x78] */
  22484     ebx = MEM32(ebp + (-0x78)); /* 0x3803441F: mov ebx, dword ptr [ebp - 0x78] */
  22485     MEM32(esi + 0x4) = ebx; /* 0x38034422: mov dword ptr [esi + 4], ebx */
  22486     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38034425: fstp dword ptr [ebp - 0x74] */
  22487     ebx = MEM32(ebp + (-0x74)); /* 0x38034428: mov ebx, dword ptr [ebp - 0x74] */
  22488     MEM32(esi + 0x8) = ebx; /* 0x3803442B: mov dword ptr [esi + 8], ebx */
  22489     esi = MEM32(eax + 0xC); /* 0x3803442E: mov esi, dword ptr [eax + 0xc] */
  22490     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034431: fld dword ptr [esi + ecx*4] */
  22491     esi = MEM32(eax + 0x8); /* 0x38034434: mov esi, dword ptr [eax + 8] */
  22492     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034437: fld dword ptr [esi + ecx*4] */
  22493     esi = MEM32(eax + 0x4); /* 0x3803443A: mov esi, dword ptr [eax + 4] */
  22494     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x3803443D: fld dword ptr [esi + ecx*4] */
  22495     esi = MEM32(edi + 0x90); /* 0x38034440: mov esi, dword ptr [edi + 0x90] */
  22496     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x38034446: fstp dword ptr [ebp - 0x94] */
  22497     ebx = MEM32(ebp + (-0x94)); /* 0x3803444C: mov ebx, dword ptr [ebp - 0x94] */
  22498     esi = esi + edx + 0x18; /* 0x38034452: lea esi, [esi + edx + 0x18] */
  22499     MEM32(esi) = ebx; /* 0x38034456: mov dword ptr [esi], ebx */
  22500     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x38034458: fstp dword ptr [ebp - 0x90] */
  22501     ebx = MEM32(ebp + (-0x90)); /* 0x3803445E: mov ebx, dword ptr [ebp - 0x90] */
  22502     MEM32(esi + 0x4) = ebx; /* 0x38034464: mov dword ptr [esi + 4], ebx */
  22503     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x38034467: fstp dword ptr [ebp - 0x8c] */
  22504     ebx = MEM32(ebp + (-0x8C)); /* 0x3803446D: mov ebx, dword ptr [ebp - 0x8c] */
  22505     MEM32(esi + 0x8) = ebx; /* 0x38034473: mov dword ptr [esi + 8], ebx */
  22506     ebx = MEM32(ebp + 0xC); /* 0x38034476: mov ebx, dword ptr [ebp + 0xc] */
  22507     esi = MEM32(eax); /* 0x38034479: mov esi, dword ptr [eax] */
  22508     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  22509     ebx = ebx + 1; /* 0x3803447B: inc ebx */
  22510     _flag_k = FK_INC;
  22511     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  22512     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22513     edx = edx + 0x28u; /* 0x3803447C: add edx, 0x28 */
  22514     _flag_k = FK_ADD;
  22515     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  22516     ecx = ecx + 1; /* 0x3803447F: inc ecx */
  22517     _flag_k = FK_INC;
  22518     /* cmp ecx, esi */ /* 0x38034480: cmp ecx, esi */
  22519     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  22520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22521     _flag_k = FK_CMP;
  22522     MEM32(ebp + 0xC) = ebx; /* 0x38034482: mov dword ptr [ebp + 0xc], ebx */
  22523     RECOMP_BACKEDGE();
  22524     if (CMP_B(_flag_a, _flag_b)) goto L_380343BC; /* 0x38034485: jb 0x380343bc */
  22525 L_3803448B:
  22526     goto L_3803459F; /* 0x3803448B: jmp 0x3803459f */
  22527 L_38034490:
  22528     ecx = MEM32(eax + 0x10); /* 0x38034490: mov ecx, dword ptr [eax + 0x10] */
  22529     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22530     esi = 0; /* 0x38034493: xor esi, esi */
  22531     _cf = 0;
  22532     _flag_k = FK_TEST;
  22533     /* test ecx, ecx */ /* 0x38034495: test ecx, ecx */
  22534     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  22535     _cf = 0;
  22536     _flag_k = FK_TEST;
  22537     if (TEST_Z(_flag_a, _flag_b)) goto L_3803459F; /* 0x38034497: jbe 0x3803459f */
  22538 L_3803449D:
  22539     edx = MEM32(ebp + 0xC); /* 0x3803449D: mov edx, dword ptr [ebp + 0xc] */
  22540     edx = edx + edx * 4; /* 0x380344A0: lea edx, [edx + edx*4] */
  22541     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380344A3: shl edx, 3 */
  22542     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22543     edx = edx << 3u; /* 0x380344A3: shl edx, 3 */
  22544 L_380344A6:
  22545     ecx = MEM32(edi + 0x90); /* 0x380344A6: mov ecx, dword ptr [edi + 0x90] */
  22546     ebx = MEM32(eax + (-0x4)); /* 0x380344AC: mov ebx, dword ptr [eax - 4] */
  22547     MEM32(ecx + edx + 0x24) = ebx; /* 0x380344AF: mov dword ptr [ecx + edx + 0x24], ebx */
  22548     ecx = MEM32(eax + 0x14); /* 0x380344B3: mov ecx, dword ptr [eax + 0x14] */
  22549     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22550     ebx = 0; /* 0x380344B6: xor ebx, ebx */
  22551     _cf = 0;
  22552     _flag_k = FK_TEST;
  22553     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344B8: mov bx, word ptr [ecx + esi*2] */
  22554     ecx = ebx; /* 0x380344BC: mov ecx, ebx */
  22555     ebx = MEM32(eax + 0xC); /* 0x380344BE: mov ebx, dword ptr [eax + 0xc] */
  22556     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x380344C1: shl ecx, 2 */
  22557     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22558     ecx = ecx << 2u; /* 0x380344C1: shl ecx, 2 */
  22559     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344C4: fld dword ptr [ecx + ebx] */
  22560     ebx = MEM32(eax + 0x8); /* 0x380344C7: mov ebx, dword ptr [eax + 8] */
  22561     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344CA: fld dword ptr [ecx + ebx] */
  22562     ebx = MEM32(eax + 0x4); /* 0x380344CD: mov ebx, dword ptr [eax + 4] */
  22563     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344D0: fld dword ptr [ecx + ebx] */
  22564     ecx = MEM32(edi + 0x90); /* 0x380344D3: mov ecx, dword ptr [edi + 0x90] */
  22565     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  22566     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22567     ecx = ecx + edx; /* 0x380344D9: add ecx, edx */
  22568     _flag_k = FK_ADD;
  22569     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x380344DB: fstp dword ptr [ebp - 0x70] */
  22570     ebx = MEM32(ebp + (-0x70)); /* 0x380344DE: mov ebx, dword ptr [ebp - 0x70] */
  22571     MEM32(ecx) = ebx; /* 0x380344E1: mov dword ptr [ecx], ebx */
  22572     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x380344E3: fstp dword ptr [ebp - 0x6c] */
  22573     ebx = MEM32(ebp + (-0x6C)); /* 0x380344E6: mov ebx, dword ptr [ebp - 0x6c] */
  22574     MEM32(ecx + 0x4) = ebx; /* 0x380344E9: mov dword ptr [ecx + 4], ebx */
  22575     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x380344EC: fstp dword ptr [ebp - 0x68] */
  22576     ebx = MEM32(ebp + (-0x68)); /* 0x380344EF: mov ebx, dword ptr [ebp - 0x68] */
  22577     MEM32(ecx + 0x8) = ebx; /* 0x380344F2: mov dword ptr [ecx + 8], ebx */
  22578     ecx = MEM32(eax + 0x18); /* 0x380344F5: mov ecx, dword ptr [eax + 0x18] */
  22579     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22580     ebx = 0; /* 0x380344F8: xor ebx, ebx */
  22581     _cf = 0;
  22582     _flag_k = FK_TEST;
  22583     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344FA: mov bx, word ptr [ecx + esi*2] */
  22584     ecx = ebx; /* 0x380344FE: mov ecx, ebx */
  22585     ebx = MEM32(eax + 0xC); /* 0x38034500: mov ebx, dword ptr [eax + 0xc] */
  22586     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034503: shl ecx, 2 */
  22587     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22588     ecx = ecx << 2u; /* 0x38034503: shl ecx, 2 */
  22589     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034506: fld dword ptr [ecx + ebx] */
  22590     ebx = MEM32(eax + 0x8); /* 0x38034509: mov ebx, dword ptr [eax + 8] */
  22591     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803450C: fld dword ptr [ecx + ebx] */
  22592     ebx = MEM32(eax + 0x4); /* 0x3803450F: mov ebx, dword ptr [eax + 4] */
  22593     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034512: fld dword ptr [ecx + ebx] */
  22594     ecx = MEM32(edi + 0x90); /* 0x38034515: mov ecx, dword ptr [edi + 0x90] */
  22595     ecx = ecx + edx + 0xC; /* 0x3803451B: lea ecx, [ecx + edx + 0xc] */
  22596     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x3803451F: fstp dword ptr [ebp - 0x88] */
  22597     ebx = MEM32(ebp + (-0x88)); /* 0x38034525: mov ebx, dword ptr [ebp - 0x88] */
  22598     MEM32(ecx) = ebx; /* 0x3803452B: mov dword ptr [ecx], ebx */
  22599     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3803452D: fstp dword ptr [ebp - 0x84] */
  22600     ebx = MEM32(ebp + (-0x84)); /* 0x38034533: mov ebx, dword ptr [ebp - 0x84] */
  22601     MEM32(ecx + 0x4) = ebx; /* 0x38034539: mov dword ptr [ecx + 4], ebx */
  22602     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803453C: fstp dword ptr [ebp - 0x80] */
  22603     ebx = MEM32(ebp + (-0x80)); /* 0x3803453F: mov ebx, dword ptr [ebp - 0x80] */
  22604     MEM32(ecx + 0x8) = ebx; /* 0x38034542: mov dword ptr [ecx + 8], ebx */
  22605     ecx = MEM32(eax + 0x1C); /* 0x38034545: mov ecx, dword ptr [eax + 0x1c] */
  22606     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22607     ebx = 0; /* 0x38034548: xor ebx, ebx */
  22608     _cf = 0;
  22609     _flag_k = FK_TEST;
  22610     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x3803454A: mov bx, word ptr [ecx + esi*2] */
  22611     ecx = ebx; /* 0x3803454E: mov ecx, ebx */
  22612     ebx = MEM32(eax + 0xC); /* 0x38034550: mov ebx, dword ptr [eax + 0xc] */
  22613     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034553: shl ecx, 2 */
  22614     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22615     ecx = ecx << 2u; /* 0x38034553: shl ecx, 2 */
  22616     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034556: fld dword ptr [ecx + ebx] */
  22617     ebx = MEM32(eax + 0x8); /* 0x38034559: mov ebx, dword ptr [eax + 8] */
  22618     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803455C: fld dword ptr [ecx + ebx] */
  22619     ebx = MEM32(eax + 0x4); /* 0x3803455F: mov ebx, dword ptr [eax + 4] */
  22620     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034562: fld dword ptr [ecx + ebx] */
  22621     ecx = MEM32(edi + 0x90); /* 0x38034565: mov ecx, dword ptr [edi + 0x90] */
  22622     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3803456B: fstp dword ptr [ebp - 0x54] */
  22623     ebx = MEM32(ebp + (-0x54)); /* 0x3803456E: mov ebx, dword ptr [ebp - 0x54] */
  22624     ecx = ecx + edx + 0x18; /* 0x38034571: lea ecx, [ecx + edx + 0x18] */
  22625     MEM32(ecx) = ebx; /* 0x38034575: mov dword ptr [ecx], ebx */
  22626     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x38034577: fstp dword ptr [ebp - 0x50] */
  22627     ebx = MEM32(ebp + (-0x50)); /* 0x3803457A: mov ebx, dword ptr [ebp - 0x50] */
  22628     MEM32(ecx + 0x4) = ebx; /* 0x3803457D: mov dword ptr [ecx + 4], ebx */
  22629     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x38034580: fstp dword ptr [ebp - 0x4c] */
  22630     ebx = MEM32(ebp + (-0x4C)); /* 0x38034583: mov ebx, dword ptr [ebp - 0x4c] */
  22631     MEM32(ecx + 0x8) = ebx; /* 0x38034586: mov dword ptr [ecx + 8], ebx */
  22632     ebx = MEM32(ebp + 0xC); /* 0x38034589: mov ebx, dword ptr [ebp + 0xc] */
  22633     ecx = MEM32(eax + 0x10); /* 0x3803458C: mov ecx, dword ptr [eax + 0x10] */
  22634     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  22635     ebx = ebx + 1; /* 0x3803458F: inc ebx */
  22636     _flag_k = FK_INC;
  22637     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  22638     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22639     edx = edx + 0x28u; /* 0x38034590: add edx, 0x28 */
  22640     _flag_k = FK_ADD;
  22641     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  22642     esi = esi + 1; /* 0x38034593: inc esi */
  22643     _flag_k = FK_INC;
  22644     /* cmp esi, ecx */ /* 0x38034594: cmp esi, ecx */
  22645     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  22646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22647     _flag_k = FK_CMP;
  22648     MEM32(ebp + 0xC) = ebx; /* 0x38034596: mov dword ptr [ebp + 0xc], ebx */
  22649     RECOMP_BACKEDGE();
  22650     if (CMP_B(_flag_a, _flag_b)) goto L_380344A6; /* 0x38034599: jb 0x380344a6 */
  22651 L_3803459F:
  22652     ecx = MEM32(ebp + (-0x2C)); /* 0x3803459F: mov ecx, dword ptr [ebp - 0x2c] */
  22653     edx = MEM32(ebp + (-0x30)); /* 0x380345A2: mov edx, dword ptr [ebp - 0x30] */
  22654     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  22655     ecx = ecx + 1; /* 0x380345A5: inc ecx */
  22656     _flag_k = FK_INC;
  22657     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  22658     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22659     eax = eax + 0x24u; /* 0x380345A6: add eax, 0x24 */
  22660     _flag_k = FK_ADD;
  22661     /* cmp ecx, edx */ /* 0x380345A9: cmp ecx, edx */
  22662     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  22663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22664     _flag_k = FK_CMP;
  22665     MEM32(ebp + (-0x2C)) = ecx; /* 0x380345AB: mov dword ptr [ebp - 0x2c], ecx */
  22666     RECOMP_BACKEDGE();
  22667     if (CMP_B(_flag_a, _flag_b)) goto L_380342D4; /* 0x380345AE: jb 0x380342d4 */
  22668 L_380345B4:
  22669     eax = MEM32(ebp + 0xC); /* 0x380345B4: mov eax, dword ptr [ebp + 0xc] */
  22670     /* cmp eax, MEM32(edi + 0x8C) */ /* 0x380345B7: cmp eax, dword ptr [edi + 0x8c] */
  22671     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8C));
  22672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22673     _flag_k = FK_CMP;
  22674     if (CMP_AE(_flag_a, _flag_b)) goto L_380345CD; /* 0x380345BD: jae 0x380345cd */
  22675 L_380345BF:
  22676     MEM32(edi + 0x8C) = eax; /* 0x380345BF: mov dword ptr [edi + 0x8c], eax */
  22677     goto L_380345CD; /* 0x380345C5: jmp 0x380345cd */
  22678 L_380345C7:
  22679     MEM32(edi + 0x8C) = ebx; /* 0x380345C7: mov dword ptr [edi + 0x8c], ebx */
  22680 L_380345CD:
  22681     eax = MEM32(edi + 0x8C); /* 0x380345CD: mov eax, dword ptr [edi + 0x8c] */
  22682     /* test eax, eax */ /* 0x380345D3: test eax, eax */
  22683     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22684     _cf = 0;
  22685     _flag_k = FK_TEST;
  22686     if (TEST_Z(_flag_a, _flag_b)) goto L_380345EA; /* 0x380345D5: je 0x380345ea */
  22687 L_380345D7:
  22688     edx = MEM32(edi + 0x90); /* 0x380345D7: mov edx, dword ptr [edi + 0x90] */
  22689     PUSH32(esp, edx); /* 0x380345DD: push edx */
  22690     PUSH32(esp, eax); /* 0x380345DE: push eax */
  22691     eax = MEM32(edi + 0x44); /* 0x380345DF: mov eax, dword ptr [edi + 0x44] */
  22692     PUSH32(esp, eax); /* 0x380345E2: push eax */
  22693     ecx = edi; /* 0x380345E3: mov ecx, edi */
  22694     RECOMP_ICALL(0x3803F2F0u); /* 0x380345E5: call 0x3803f2f0 */ /* not lifted */
  22695     RECOMP_FLAGS_IN();
  22696 L_380345EA:
  22697     eax = MEM32(ebp + (-0x30)); /* 0x380345EA: mov eax, dword ptr [ebp - 0x30] */
  22698     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22699     esi = 0; /* 0x380345ED: xor esi, esi */
  22700     _cf = 0;
  22701     _flag_k = FK_TEST;
  22702     /* test eax, eax */ /* 0x380345EF: test eax, eax */
  22703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22704     _cf = 0;
  22705     _flag_k = FK_TEST;
  22706     if (TEST_Z(_flag_a, _flag_b)) goto L_38034663; /* 0x380345F1: jbe 0x38034663 */
  22707 L_380345F3:
  22708     ecx = MEM32(ebp + (-0x38)); /* 0x380345F3: mov ecx, dword ptr [ebp - 0x38] */
  22709     ebx = ecx + 0xC; /* 0x380345F6: lea ebx, [ecx + 0xc] */
  22710 L_380345F9:
  22711     eax = MEM32(ebx + (-0x4)); /* 0x380345F9: mov eax, dword ptr [ebx - 4] */
  22712     /* test eax, eax */ /* 0x380345FC: test eax, eax */
  22713     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22714     _cf = 0;
  22715     _flag_k = FK_TEST;
  22716     if (TEST_Z(_flag_a, _flag_b)) goto L_38034609; /* 0x380345FE: je 0x38034609 */
  22717 L_38034600:
  22718     PUSH32(esp, eax); /* 0x38034600: push eax */
  22719     RECOMP_ICALL(0x3804B4F6u); /* 0x38034601: call 0x3804b4f6 */ /* not lifted */
  22720     RECOMP_FLAGS_IN();
  22721     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22722     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22723     esp = esp + 4; /* 0x38034606: add esp, 4 */
  22724     _flag_k = FK_ADD;
  22725 L_38034609:
  22726     eax = MEM32(ebx); /* 0x38034609: mov eax, dword ptr [ebx] */
  22727     /* test eax, eax */ /* 0x3803460B: test eax, eax */
  22728     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22729     _cf = 0;
  22730     _flag_k = FK_TEST;
  22731     if (TEST_Z(_flag_a, _flag_b)) goto L_38034618; /* 0x3803460D: je 0x38034618 */
  22732 L_3803460F:
  22733     PUSH32(esp, eax); /* 0x3803460F: push eax */
  22734     RECOMP_ICALL(0x3804B4F6u); /* 0x38034610: call 0x3804b4f6 */ /* not lifted */
  22735     RECOMP_FLAGS_IN();
  22736     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22737     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22738     esp = esp + 4; /* 0x38034615: add esp, 4 */
  22739     _flag_k = FK_ADD;
  22740 L_38034618:
  22741     eax = MEM32(ebx + 0x4); /* 0x38034618: mov eax, dword ptr [ebx + 4] */
  22742     /* test eax, eax */ /* 0x3803461B: test eax, eax */
  22743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22744     _cf = 0;
  22745     _flag_k = FK_TEST;
  22746     if (TEST_Z(_flag_a, _flag_b)) goto L_38034628; /* 0x3803461D: je 0x38034628 */
  22747 L_3803461F:
  22748     PUSH32(esp, eax); /* 0x3803461F: push eax */
  22749     RECOMP_ICALL(0x3804B4F6u); /* 0x38034620: call 0x3804b4f6 */ /* not lifted */
  22750     RECOMP_FLAGS_IN();
  22751     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22753     esp = esp + 4; /* 0x38034625: add esp, 4 */
  22754     _flag_k = FK_ADD;
  22755 L_38034628:
  22756     eax = MEM32(ebx + 0xC); /* 0x38034628: mov eax, dword ptr [ebx + 0xc] */
  22757     /* test eax, eax */ /* 0x3803462B: test eax, eax */
  22758     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22759     _cf = 0;
  22760     _flag_k = FK_TEST;
  22761     if (TEST_Z(_flag_a, _flag_b)) goto L_38034638; /* 0x3803462D: je 0x38034638 */
  22762 L_3803462F:
  22763     PUSH32(esp, eax); /* 0x3803462F: push eax */
  22764     RECOMP_ICALL(0x3804B4F6u); /* 0x38034630: call 0x3804b4f6 */ /* not lifted */
  22765     RECOMP_FLAGS_IN();
  22766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22768     esp = esp + 4; /* 0x38034635: add esp, 4 */
  22769     _flag_k = FK_ADD;
  22770 L_38034638:
  22771     eax = MEM32(ebx + 0x10); /* 0x38034638: mov eax, dword ptr [ebx + 0x10] */
  22772     /* test eax, eax */ /* 0x3803463B: test eax, eax */
  22773     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22774     _cf = 0;
  22775     _flag_k = FK_TEST;
  22776     if (TEST_Z(_flag_a, _flag_b)) goto L_38034648; /* 0x3803463D: je 0x38034648 */
  22777 L_3803463F:
  22778     PUSH32(esp, eax); /* 0x3803463F: push eax */
  22779     RECOMP_ICALL(0x3804B4F6u); /* 0x38034640: call 0x3804b4f6 */ /* not lifted */
  22780     RECOMP_FLAGS_IN();
  22781     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22782     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22783     esp = esp + 4; /* 0x38034645: add esp, 4 */
  22784     _flag_k = FK_ADD;
  22785 L_38034648:
  22786     eax = MEM32(ebx + 0x14); /* 0x38034648: mov eax, dword ptr [ebx + 0x14] */
  22787     /* test eax, eax */ /* 0x3803464B: test eax, eax */
  22788     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22789     _cf = 0;
  22790     _flag_k = FK_TEST;
  22791     if (TEST_Z(_flag_a, _flag_b)) goto L_38034658; /* 0x3803464D: je 0x38034658 */
  22792 L_3803464F:
  22793     PUSH32(esp, eax); /* 0x3803464F: push eax */
  22794     RECOMP_ICALL(0x3804B4F6u); /* 0x38034650: call 0x3804b4f6 */ /* not lifted */
  22795     RECOMP_FLAGS_IN();
  22796     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22797     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22798     esp = esp + 4; /* 0x38034655: add esp, 4 */
  22799     _flag_k = FK_ADD;
  22800 L_38034658:
  22801     eax = MEM32(ebp + (-0x30)); /* 0x38034658: mov eax, dword ptr [ebp - 0x30] */
  22802     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  22803     esi = esi + 1; /* 0x3803465B: inc esi */
  22804     _flag_k = FK_INC;
  22805     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
  22806     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22807     ebx = ebx + 0x24u; /* 0x3803465C: add ebx, 0x24 */
  22808     _flag_k = FK_ADD;
  22809     /* cmp esi, eax */ /* 0x3803465F: cmp esi, eax */
  22810     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  22811     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22812     _flag_k = FK_CMP;
  22813     RECOMP_BACKEDGE();
  22814     if (CMP_B(_flag_a, _flag_b)) goto L_380345F9; /* 0x38034661: jb 0x380345f9 */
  22815 L_38034663:
  22816     edx = MEM32(ebp + (-0x38)); /* 0x38034663: mov edx, dword ptr [ebp - 0x38] */
  22817     PUSH32(esp, edx); /* 0x38034666: push edx */
  22818     RECOMP_ICALL(0x3804B4F6u); /* 0x38034667: call 0x3804b4f6 */ /* not lifted */
  22819     RECOMP_FLAGS_IN();
  22820     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22821     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22822     esp = esp + 4; /* 0x3803466C: add esp, 4 */
  22823     _flag_k = FK_ADD;
  22824     goto L_38034677; /* 0x3803466F: jmp 0x38034677 */
  22825 L_38034671:
  22826     MEM32(edi + 0x8C) = esi; /* 0x38034671: mov dword ptr [edi + 0x8c], esi */
  22827 L_38034677:
  22828     esi = MEM32(edi + 0xC); /* 0x38034677: mov esi, dword ptr [edi + 0xc] */
  22829     ecx = edi; /* 0x3803467A: mov ecx, edi */
  22830     RECOMP_ICALL(0x380303E0u); /* 0x3803467C: call 0x380303e0 */ /* not lifted */
  22831     RECOMP_FLAGS_IN();
  22832     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x38034681: shl eax, 0x10 */
  22833     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  22834     eax = eax << 16u; /* 0x38034681: shl eax, 0x10 */
  22835     _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi));
  22836     eax = eax | esi; /* 0x38034684: or eax, esi */
  22837     _cf = 0;
  22838     _flag_k = FK_TEST;
  22839     MEM32(edi + 0x4) = eax; /* 0x38034686: mov dword ptr [edi + 4], eax */
  22840     /* cmp MEM32(edi + 0xAC), 4 */ /* 0x38034689: cmp dword ptr [edi + 0xac], 4 */
  22841     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(4);
  22842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22843     _flag_k = FK_CMP;
  22844     if (CMP_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x38034690: jle 0x3803498d */
  22845 L_38034696:
  22846     ecx = MEM32(ebp + 0x8); /* 0x38034696: mov ecx, dword ptr [ebp + 8] */
  22847     eax = ebp + (-0x3C); /* 0x38034699: lea eax, [ebp - 0x3c] */
  22848     PUSH32(esp, eax); /* 0x3803469C: push eax */
  22849     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803469D: call dword ptr [0x3804e388] */
  22850     RECOMP_FLAGS_IN();
  22851     eax = MEM32(ebp + (-0x3C)); /* 0x380346A3: mov eax, dword ptr [ebp - 0x3c] */
  22852     /* test eax, eax */ /* 0x380346A6: test eax, eax */
  22853     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22854     _cf = 0;
  22855     _flag_k = FK_TEST;
  22856     MEM32(ebp + (-0x2C)) = 0; /* 0x380346A8: mov dword ptr [ebp - 0x2c], 0 */
  22857     if (TEST_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x380346AF: jle 0x3803498d */
  22858 L_380346B5:
  22859     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  22860     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  22861     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  22862     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  22863     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  22864     PUSH32(esp, edx); /* 0x380346C5: push edx */
  22865     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  22866     PUSH32(esp, eax); /* 0x380346C9: push eax */
  22867     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  22868     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  22869     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  22870     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  22871     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  22872     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  22873     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  22874     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  22875     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  22876     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  22877     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  22878     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  22879     RECOMP_FLAGS_IN();
  22880     ecx = eax; /* 0x38034714: mov ecx, eax */
  22881     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  22882     RECOMP_FLAGS_IN();
  22883     ecx = eax; /* 0x38034718: mov ecx, eax */
  22884     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  22885     RECOMP_FLAGS_IN();
  22886     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  22887     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  22888     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  22889     PUSH32(esp, edx); /* 0x38034723: push edx */
  22890     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  22891     PUSH32(esp, eax); /* 0x38034727: push eax */
  22892     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  22893     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  22894     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  22895     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  22896     RECOMP_FLAGS_IN();
  22897     ecx = eax; /* 0x38034730: mov ecx, eax */
  22898     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  22899     RECOMP_FLAGS_IN();
  22900     ecx = eax; /* 0x38034734: mov ecx, eax */
  22901     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  22902     RECOMP_FLAGS_IN();
  22903     ecx = eax; /* 0x38034738: mov ecx, eax */
  22904     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  22905     RECOMP_FLAGS_IN();
  22906     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  22907     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  22908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22909     _flag_k = FK_CMP;
  22910     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  22911 L_38034745:
  22912     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  22913     PUSH32(esp, edx); /* 0x38034748: push edx */
  22914     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  22915     PUSH32(esp, eax); /* 0x3803474C: push eax */
  22916     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  22917     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  22918     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  22919     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  22920     RECOMP_FLAGS_IN();
  22921     ecx = eax; /* 0x38034755: mov ecx, eax */
  22922     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  22923     RECOMP_FLAGS_IN();
  22924     ecx = eax; /* 0x38034759: mov ecx, eax */
  22925     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  22926     RECOMP_FLAGS_IN();
  22927     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  22928 L_3803475F:
  22929     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  22930     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  22931     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  22932     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  22933     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  22934     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  22935 L_38034771:
  22936     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  22937     PUSH32(esp, edx); /* 0x38034774: push edx */
  22938     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  22939     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  22940     RECOMP_FLAGS_IN();
  22941     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  22942     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  22943     fp_pop();
  22944     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  22945     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  22946     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  22947     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  22948     _cf = 0;
  22949     _flag_k = FK_NARROW(FK_TEST, 24);
  22950     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  22951 L_3803478D:
  22952     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  22953 L_38034791:
  22954     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  22955     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  22956     RECOMP_FLAGS_IN();
  22957     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22958     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22959     esp = esp + 4; /* 0x38034798: add esp, 4 */
  22960     _flag_k = FK_ADD;
  22961     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  22962     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22963     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  22964     _cf = 0;
  22965     _flag_k = FK_TEST;
  22966     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  22967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  22968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22969     _flag_k = FK_CMP;
  22970     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  22971     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  22972 L_380347A7:
  22973     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  22974     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  22975     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  22976     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  22977     PUSH32(esp, edx); /* 0x380347B0: push edx */
  22978     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  22979     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  22980     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  22981     PUSH32(esp, edx); /* 0x380347B8: push edx */
  22982     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  22983     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  22984     ecx = eax; /* 0x380347BD: mov ecx, eax */
  22985     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  22986     RECOMP_FLAGS_IN();
  22987     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  22988     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  22989 L_380347C9:
  22990     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  22991 L_380347CC:
  22992     ecx = edi; /* 0x380347CC: mov ecx, edi */
  22993     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  22994     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  22995     RECOMP_FLAGS_IN();
  22996     ebx = eax; /* 0x380347DA: mov ebx, eax */
  22997     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  22998     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  22999     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  23000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23001     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  23002     _flag_k = FK_CMP;
  23003     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  23004     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23005     edx = (uint32_t)((int32_t)edx >> 2u);
  23006     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  23007     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  23008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23009     _flag_k = FK_CMP;
  23010     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  23011     esi = eax; /* 0x380347ED: mov esi, eax */
  23012     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  23013 L_380347F5:
  23014     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  23015     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  23016     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  23017     _cf = 0;
  23018     _flag_k = FK_TEST;
  23019     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  23020 L_380347FC:
  23021     ecx = eax; /* 0x380347FC: mov ecx, eax */
  23022     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  23023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23024     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  23025     _flag_k = FK_CMP;
  23026     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  23027     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23028     ecx = (uint32_t)((int32_t)ecx >> 2u);
  23029     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  23030     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  23031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23032     _flag_k = FK_CMP;
  23033     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  23034 L_38034808:
  23035     ecx = 1; /* 0x38034808: mov ecx, 1 */
  23036 L_3803480D:
  23037     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  23038     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  23039     _cf = 0;
  23040     _flag_k = FK_TEST;
  23041     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  23042 L_38034811:
  23043     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23044     eax = 0; /* 0x38034811: xor eax, eax */
  23045     _cf = 0;
  23046     _flag_k = FK_TEST;
  23047     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  23048 L_38034815:
  23049     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  23050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23051     eax = eax - edx; /* 0x38034815: sub eax, edx */
  23052     _flag_k = FK_CMP;
  23053     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  23054     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23055     eax = (uint32_t)((int32_t)eax >> 2u);
  23056 L_3803481A:
  23057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  23058     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23059     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  23060     _flag_k = FK_ADD;
  23061     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  23062     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23063     _cf = 0;
  23064     _flag_k = FK_TEST;
  23065     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  23066     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  23067 L_38034823:
  23068     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23069     eax = 0; /* 0x38034823: xor eax, eax */
  23070     _cf = 0;
  23071     _flag_k = FK_TEST;
  23072 L_38034825:
  23073     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  23074     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23075     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  23076     PUSH32(esp, eax); /* 0x38034828: push eax */
  23077     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  23078     RECOMP_FLAGS_IN();
  23079     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  23080     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23081     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23082     esp = esp + 4; /* 0x38034831: add esp, 4 */
  23083     _flag_k = FK_ADD;
  23084     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  23085     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  23086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23087     _flag_k = FK_CMP;
  23088     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  23089     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  23090 L_3803483B:
  23091     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  23092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23093     _cf = 0;
  23094     _flag_k = FK_TEST;
  23095     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  23096 L_3803483F:
  23097     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  23098     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  23099 L_38034843:
  23100     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23101     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23102     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  23103     _flag_k = FK_ADD;
  23104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  23105     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23106     eax = eax + 4; /* 0x38034846: add eax, 4 */
  23107     _flag_k = FK_ADD;
  23108     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  23109     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  23110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23111     _flag_k = FK_CMP;
  23112     RECOMP_BACKEDGE();
  23113     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  23114 L_3803484D:
  23115     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  23116     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23117     _cf = 0;
  23118     _flag_k = FK_TEST;
  23119     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  23120 L_38034851:
  23121     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  23122     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  23123 L_38034856:
  23124     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  23125     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  23126     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  23127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23128     _flag_k = FK_CMP;
  23129     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  23130     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  23131 L_38034860:
  23132     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  23133     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  23134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23135     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  23136     _flag_k = FK_CMP;
  23137     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  23138 L_38034868:
  23139     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  23140     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  23141     _cf = 0;
  23142     _flag_k = FK_TEST;
  23143     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  23144 L_3803486C:
  23145     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  23146     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  23147 L_38034870:
  23148     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  23149     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23150     esi = esi + 4; /* 0x38034870: add esi, 4 */
  23151     _flag_k = FK_ADD;
  23152     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23153     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23154     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  23155     _flag_k = FK_ADD;
  23156     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  23157     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  23158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23159     _flag_k = FK_CMP;
  23160     RECOMP_BACKEDGE();
  23161     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  23162 L_3803487A:
  23163     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  23164 L_3803487D:
  23165     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  23166     PUSH32(esp, eax); /* 0x38034880: push eax */
  23167     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  23168     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  23169     RECOMP_FLAGS_IN();
  23170     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  23171     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  23172     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  23173     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  23174     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23175     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23176     esp = esp + 4; /* 0x38034895: add esp, 4 */
  23177     _flag_k = FK_ADD;
  23178     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  23179     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  23180     _cf = 0;
  23181     _flag_k = FK_TEST;
  23182     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  23183     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  23184 L_3803489F:
  23185     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23186     eax = 0; /* 0x3803489F: xor eax, eax */
  23187     _cf = 0;
  23188     _flag_k = FK_TEST;
  23189     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  23190     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  23191     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  23192     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  23193 L_380348B0:
  23194     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  23195     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  23196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23197     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  23198     _flag_k = FK_CMP;
  23199     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  23200     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23201     eax = (uint32_t)((int32_t)eax >> 2u);
  23202     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  23203     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  23204     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  23205     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  23206 L_380348C7:
  23207     ecx = eax; /* 0x380348C7: mov ecx, eax */
  23208     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  23209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23210     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  23211     _flag_k = FK_CMP;
  23212     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  23213     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23214     ecx = (uint32_t)((int32_t)ecx >> 2u);
  23215     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  23216     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  23217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23218     _flag_k = FK_CMP;
  23219     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  23220 L_380348D3:
  23221     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  23222     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  23223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23224     _flag_k = FK_CMP;
  23225     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  23226     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  23227 L_380348DA:
  23228     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  23229 L_380348DD:
  23230     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  23231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  23232     _cf = 0;
  23233     _flag_k = FK_TEST;
  23234     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  23235 L_380348E1:
  23236     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  23237     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  23238     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  23239 L_380348E8:
  23240     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  23241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23242     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  23243     _flag_k = FK_ADD;
  23244     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23245     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23246     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  23247     _flag_k = FK_ADD;
  23248     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  23249     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  23250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23251     _flag_k = FK_CMP;
  23252     RECOMP_BACKEDGE();
  23253     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  23254 L_380348F2:
  23255     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  23256     edx = ecx; /* 0x380348F5: mov edx, ecx */
  23257     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  23258     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23259     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  23260     _flag_k = FK_CMP;
  23261     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  23262     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23263     edx = (uint32_t)((int32_t)edx >> 2u);
  23264     eax = 1; /* 0x380348FC: mov eax, 1 */
  23265     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  23266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23267     eax = eax - edx; /* 0x38034901: sub eax, edx */
  23268     _flag_k = FK_CMP;
  23269     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  23270     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  23271 L_38034908:
  23272     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  23273     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  23274     _cf = 0;
  23275     _flag_k = FK_TEST;
  23276     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  23277 L_3803490C:
  23278     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  23279 L_3803490E:
  23280     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23281     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23282     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  23283     _flag_k = FK_ADD;
  23284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  23285     eax = eax - 1; /* 0x38034911: dec eax */
  23286     _flag_k = FK_DEC;
  23287     RECOMP_BACKEDGE();
  23288     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  23289 L_38034914:
  23290     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  23291     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  23292     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  23293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23294     _flag_k = FK_CMP;
  23295     eax = esi; /* 0x38034919: mov eax, esi */
  23296     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  23297 L_3803491D:
  23298     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  23299     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  23300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23301     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  23302     _flag_k = FK_ADD;
  23303     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  23304     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  23305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23306     _flag_k = FK_CMP;
  23307     RECOMP_BACKEDGE();
  23308     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  23309 L_38034926:
  23310     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  23311 L_38034928:
  23312     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  23313     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  23314     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  23315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23316     _flag_k = FK_CMP;
  23317     edx = eax; /* 0x3803492D: mov edx, eax */
  23318     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  23319     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  23320 L_38034934:
  23321     /* test edx, edx */ /* 0x38034934: test edx, edx */
  23322     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  23323     _cf = 0;
  23324     _flag_k = FK_TEST;
  23325     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  23326 L_38034938:
  23327     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  23328     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  23329     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  23330 L_3803493F:
  23331     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23333     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  23334     _flag_k = FK_ADD;
  23335     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  23336     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23337     edx = edx + 4; /* 0x38034942: add edx, 4 */
  23338     _flag_k = FK_ADD;
  23339     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  23340     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  23341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23342     _flag_k = FK_CMP;
  23343     RECOMP_BACKEDGE();
  23344     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  23345 L_38034949:
  23346     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  23347     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  23348     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  23349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  23350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23351     _flag_k = FK_CMP;
  23352     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  23353 L_38034953:
  23354     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  23355     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  23356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23357     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  23358     _flag_k = FK_CMP;
  23359     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23361     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  23362     _flag_k = FK_CMP;
  23363     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  23364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  23365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23366     _flag_k = FK_CMP;
  23367     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  23368     RECOMP_BACKEDGE();
  23369     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  23370 L_38034962:
  23371     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  23372     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  23373     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  23374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23375     _flag_k = FK_CMP;
  23376     eax = esi; /* 0x38034967: mov eax, esi */
  23377     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  23378 L_3803496B:
  23379     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  23380 L_3803496E:
  23381     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  23382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  23383     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23384     eax = eax + 4; /* 0x38034970: add eax, 4 */
  23385     _flag_k = FK_ADD;
  23386     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  23387     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  23388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23389     _flag_k = FK_CMP;
  23390     RECOMP_BACKEDGE();
  23391     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  23392 L_38034977:
  23393     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  23394     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23395     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  23396     _flag_k = FK_ADD;
  23397 L_3803497B:
  23398     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  23399     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  23400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  23401     eax = eax + 1; /* 0x38034981: inc eax */
  23402     _flag_k = FK_INC;
  23403     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  23404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  23405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23406     _flag_k = FK_CMP;
  23407     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  23408     RECOMP_BACKEDGE();
  23409     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  23410 L_3803498D:
  23411     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  23412     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  23413     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  23414     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  23415     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  23416     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  23417     esp = ebp; /* 0x3803499D: mov esp, ebp */
  23418     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  23419     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  23420 L_380349A1:
  23421     PUSH32(esp, 0x3806CB8Cu); /* 0x380349A1: push 0x3806cb8c */
  23422     ecx = ebp + (-0x44); /* 0x380349A6: lea ecx, [ebp - 0x44] */
  23423     RECOMP_ICALL(0x38014060u); /* 0x380349A9: call 0x38014060 */ /* not lifted */
  23424     RECOMP_FLAGS_IN();
  23425     PUSH32(esp, 0x38052D38u); /* 0x380349AE: push 0x38052d38 */
  23426     eax = ebp + (-0x44); /* 0x380349B3: lea eax, [ebp - 0x44] */
  23427     PUSH32(esp, eax); /* 0x380349B6: push eax */
  23428     RECOMP_ICALL(0x3804B68Eu); /* 0x380349B7: call 0x3804b68e */ /* not lifted */
  23429     RECOMP_FLAGS_IN();
  23430 L_380349BC:
  23431     PUSH32(esp, 0x3806CB5Cu); /* 0x380349BC: push 0x3806cb5c */
  23432     ecx = ebp + (-0x44); /* 0x380349C1: lea ecx, [ebp - 0x44] */
  23433     RECOMP_ICALL(0x38014060u); /* 0x380349C4: call 0x38014060 */ /* not lifted */
  23434     RECOMP_FLAGS_IN();
  23435     PUSH32(esp, 0x38052D38u); /* 0x380349C9: push 0x38052d38 */
  23436     ecx = ebp + (-0x44); /* 0x380349CE: lea ecx, [ebp - 0x44] */
  23437     PUSH32(esp, ecx); /* 0x380349D1: push ecx */
  23438     RECOMP_ICALL(0x3804B68Eu); /* 0x380349D2: call 0x3804b68e */ /* not lifted */
  23439     RECOMP_FLAGS_IN();
  23440 L_380349D7:
  23441     PUSH32(esp, 0x3806CB28u); /* 0x380349D7: push 0x3806cb28 */
  23442     ecx = ebp + (-0x44); /* 0x380349DC: lea ecx, [ebp - 0x44] */
  23443     RECOMP_ICALL(0x38014060u); /* 0x380349DF: call 0x38014060 */ /* not lifted */
  23444     RECOMP_FLAGS_IN();
  23445     PUSH32(esp, 0x38052D38u); /* 0x380349E4: push 0x38052d38 */
  23446     edx = ebp + (-0x44); /* 0x380349E9: lea edx, [ebp - 0x44] */
  23447     PUSH32(esp, edx); /* 0x380349EC: push edx */
  23448     RECOMP_ICALL(0x3804B68Eu); /* 0x380349ED: call 0x3804b68e */ /* not lifted */
  23449     RECOMP_FLAGS_IN();
  23450     /* nop */ /* 0x380349F2: nop  */
  23451     /* nop */ /* 0x380349F3: nop  */
  23452     /* nop */ /* 0x380349F4: nop  */
  23453     /* nop */ /* 0x380349F5: nop  */
  23454     /* nop */ /* 0x380349F6: nop  */
  23455     /* nop */ /* 0x380349F7: nop  */
  23456     /* nop */ /* 0x380349F8: nop  */
  23457     /* nop */ /* 0x380349F9: nop  */
  23458     /* nop */ /* 0x380349FA: nop  */
  23459     /* nop */ /* 0x380349FB: nop  */
  23460     /* nop */ /* 0x380349FC: nop  */
  23461     /* nop */ /* 0x380349FD: nop  */
  23462     /* nop */ /* 0x380349FE: nop  */
  23463     /* nop */ /* 0x380349FF: nop  */
  23464     ecx = 0x3806EEE8u; /* 0x38034A00: mov ecx, 0x3806eee8 */
  23465     goto L_38046510; /* 0x38034A05: jmp 0x38046510 */
  23466 L_38046510:
  23467     PUSH32(esp, ebp); /* 0x38046510: push ebp */
  23468     ebp = esp; /* 0x38046511: mov ebp, esp */
  23469     PUSH32(esp, 0xFFFFFFFFu); /* 0x38046513: push -1 */
  23470     PUSH32(esp, 0x3804D2CBu); /* 0x38046515: push 0x3804d2cb */
  23471     eax = MEM32(FS_BASE + (0)); /* 0x3804651A: mov eax, dword ptr fs:[0] */
  23472     PUSH32(esp, eax); /* 0x38046520: push eax */
  23473     MEM32(FS_BASE + (0)) = esp; /* 0x38046521: mov dword ptr fs:[0], esp */
  23474     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  23475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23476     esp = esp - 8; /* 0x38046528: sub esp, 8 */
  23477     _flag_k = FK_CMP;
  23478     PUSH32(esp, esi); /* 0x3804652B: push esi */
  23479     esi = ecx; /* 0x3804652C: mov esi, ecx */
  23480     PUSH32(esp, edi); /* 0x3804652E: push edi */
  23481     eax = MEM32(esi + 0x18); /* 0x3804652F: mov eax, dword ptr [esi + 0x18] */
  23482     /* test eax, eax */ /* 0x38046532: test eax, eax */
  23483     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23484     _cf = 0;
  23485     _flag_k = FK_TEST;
  23486     if (TEST_NZ(_flag_a, _flag_b)) goto L_3804658F; /* 0x38046534: jne 0x3804658f */
  23487 L_38046536:
  23488     PUSH32(esp, 0x1Cu); /* 0x38046536: push 0x1c */
  23489     RECOMP_ICALL(0x3804B676u); /* 0x38046538: call 0x3804b676 */ /* not lifted */
  23490     RECOMP_FLAGS_IN();
  23491     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23492     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23493     esp = esp + 4; /* 0x3804653D: add esp, 4 */
  23494     _flag_k = FK_ADD;
  23495     MEM32(ebp + (-0x14)) = eax; /* 0x38046540: mov dword ptr [ebp - 0x14], eax */
  23496     /* test eax, eax */ /* 0x38046543: test eax, eax */
  23497     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23498     _cf = 0;
  23499     _flag_k = FK_TEST;
  23500     MEM32(ebp + (-0x4)) = 0; /* 0x38046545: mov dword ptr [ebp - 4], 0 */
  23501     if (TEST_Z(_flag_a, _flag_b)) goto L_38046560; /* 0x3804654C: je 0x38046560 */
  23502 L_3804654E:
  23503     ecx = MEM32(esi + 0x4); /* 0x3804654E: mov ecx, dword ptr [esi + 4] */
  23504     edx = MEM32(esi); /* 0x38046551: mov edx, dword ptr [esi] */
  23505     PUSH32(esp, ecx); /* 0x38046553: push ecx */
  23506     PUSH32(esp, edx); /* 0x38046554: push edx */
  23507     ecx = eax; /* 0x38046555: mov ecx, eax */
  23508     RECOMP_ICALL(0x380463B0u); /* 0x38046557: call 0x380463b0 */ /* not lifted */
  23509     RECOMP_FLAGS_IN();
  23510     edi = eax; /* 0x3804655C: mov edi, eax */
  23511     goto L_38046562; /* 0x3804655E: jmp 0x38046562 */
  23512 L_38046560:
  23513     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23514     edi = 0; /* 0x38046560: xor edi, edi */
  23515     _cf = 0;
  23516     _flag_k = FK_TEST;
  23517 L_38046562:
  23518     /* test edi, edi */ /* 0x38046562: test edi, edi */
  23519     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  23520     _cf = 0;
  23521     _flag_k = FK_TEST;
  23522     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38046564: mov dword ptr [ebp - 4], 0xffffffff */
  23523     MEM32(ebp + (-0x10)) = edi; /* 0x3804656B: mov dword ptr [ebp - 0x10], edi */
  23524     if (TEST_Z(_flag_a, _flag_b)) goto L_380465EB; /* 0x3804656E: je 0x380465eb */
  23525 L_38046570:
  23526     eax = MEM32(edi + 0x4); /* 0x38046570: mov eax, dword ptr [edi + 4] */
  23527     /* test eax, eax */ /* 0x38046573: test eax, eax */
  23528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23529     _cf = 0;
  23530     _flag_k = FK_TEST;
  23531     if (TEST_Z(_flag_a, _flag_b)) goto L_380465DB; /* 0x38046575: je 0x380465db */
  23532 L_38046577:
  23533     edx = MEM32(esi + 0x10); /* 0x38046577: mov edx, dword ptr [esi + 0x10] */
  23534     ecx = esi + 0x8; /* 0x3804657A: lea ecx, [esi + 8] */
  23535     eax = ebp + (-0x10); /* 0x3804657D: lea eax, [ebp - 0x10] */
  23536     PUSH32(esp, eax); /* 0x38046580: push eax */
  23537     PUSH32(esp, 1); /* 0x38046581: push 1 */
  23538     PUSH32(esp, edx); /* 0x38046583: push edx */
  23539     RECOMP_ICALL(0x38046650u); /* 0x38046584: call 0x38046650 */ /* not lifted */
  23540     RECOMP_FLAGS_IN();
  23541     eax = MEM32(ebp + (-0x10)); /* 0x38046589: mov eax, dword ptr [ebp - 0x10] */
  23542     MEM32(esi + 0x18) = eax; /* 0x3804658C: mov dword ptr [esi + 0x18], eax */
  23543 L_3804658F:
  23544     eax = MEM32(esi + 0x18); /* 0x3804658F: mov eax, dword ptr [esi + 0x18] */
  23545     edx = MEM32(eax + 0x4); /* 0x38046592: mov edx, dword ptr [eax + 4] */
  23546     ecx = MEM32(edx); /* 0x38046595: mov ecx, dword ptr [edx] */
  23547     MEM32(eax + 0x4) = ecx; /* 0x38046597: mov dword ptr [eax + 4], ecx */
  23548     ecx = MEM32(eax + 0x14); /* 0x3804659A: mov ecx, dword ptr [eax + 0x14] */
  23549     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  23550     ecx = ecx - 1; /* 0x3804659D: dec ecx */
  23551     _flag_k = FK_DEC;
  23552     MEM32(eax + 0x14) = ecx; /* 0x3804659E: mov dword ptr [eax + 0x14], ecx */
  23553     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_380465C8; /* 0x380465A1: jne 0x380465c8 */
  23554 L_380465A3:
  23555     MEM32(esi + 0x18) = 0; /* 0x380465A3: mov dword ptr [esi + 0x18], 0 */
  23556     eax = MEM32(esi + 0xC); /* 0x380465AA: mov eax, dword ptr [esi + 0xc] */
  23557     /* cmp eax, MEM32(esi + 0x10) */ /* 0x380465AD: cmp eax, dword ptr [esi + 0x10] */
  23558     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x10));
  23559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23560     _flag_k = FK_CMP;
  23561     if (CMP_EQ(_flag_a, _flag_b)) goto L_380465C8; /* 0x380465B0: je 0x380465c8 */
  23562 L_380465B2:
  23563     ecx = MEM32(eax); /* 0x380465B2: mov ecx, dword ptr [eax] */
  23564     edi = MEM32(ecx + 0x14); /* 0x380465B4: mov edi, dword ptr [ecx + 0x14] */
  23565     /* test edi, edi */ /* 0x380465B7: test edi, edi */
  23566     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  23567     _cf = 0;
  23568     _flag_k = FK_TEST;
  23569     if (TEST_Z(_flag_a, _flag_b)) goto L_380465BE; /* 0x380465B9: je 0x380465be */
  23570 L_380465BB:
  23571     MEM32(esi + 0x18) = ecx; /* 0x380465BB: mov dword ptr [esi + 0x18], ecx */
  23572 L_380465BE:
  23573     ecx = MEM32(esi + 0x10); /* 0x380465BE: mov ecx, dword ptr [esi + 0x10] */
  23574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  23575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23576     eax = eax + 4; /* 0x380465C1: add eax, 4 */
  23577     _flag_k = FK_ADD;
  23578     /* cmp eax, ecx */ /* 0x380465C4: cmp eax, ecx */
  23579     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  23580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23581     _flag_k = FK_CMP;
  23582     RECOMP_BACKEDGE();
  23583     if (CMP_NE(_flag_a, _flag_b)) goto L_380465B2; /* 0x380465C6: jne 0x380465b2 */
  23584 L_380465C8:
  23585     edi = POP32_VAL(esp); /* 0x380465C8: pop edi */
  23586     eax = edx + 0x4; /* 0x380465C9: lea eax, [edx + 4] */
  23587     esi = POP32_VAL(esp); /* 0x380465CC: pop esi */
  23588     ecx = MEM32(ebp + (-0xC)); /* 0x380465CD: mov ecx, dword ptr [ebp - 0xc] */
  23589     MEM32(FS_BASE + (0)) = ecx; /* 0x380465D0: mov dword ptr fs:[0], ecx */
  23590     esp = ebp; /* 0x380465D7: mov esp, ebp */
  23591     ebp = POP32_VAL(esp); /* 0x380465D9: pop ebp */
  23592     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380465DA: ret  */
  23593 L_380465DB:
  23594     ecx = edi; /* 0x380465DB: mov ecx, edi */
  23595     RECOMP_ICALL(0x38046460u); /* 0x380465DD: call 0x38046460 */ /* not lifted */
  23596     RECOMP_FLAGS_IN();
  23597     PUSH32(esp, edi); /* 0x380465E2: push edi */
  23598     RECOMP_ICALL(0x3804B4F6u); /* 0x380465E3: call 0x3804b4f6 */ /* not lifted */
  23599     RECOMP_FLAGS_IN();
  23600     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23601     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23602     esp = esp + 4; /* 0x380465E8: add esp, 4 */
  23603     _flag_k = FK_ADD;
  23604 L_380465EB:
  23605     ecx = MEM32(ebp + (-0xC)); /* 0x380465EB: mov ecx, dword ptr [ebp - 0xc] */
  23606     edi = POP32_VAL(esp); /* 0x380465EE: pop edi */
  23607     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23608     eax = 0; /* 0x380465EF: xor eax, eax */
  23609     _cf = 0;
  23610     _flag_k = FK_TEST;
  23611     esi = POP32_VAL(esp); /* 0x380465F1: pop esi */
  23612     MEM32(FS_BASE + (0)) = ecx; /* 0x380465F2: mov dword ptr fs:[0], ecx */
  23613     esp = ebp; /* 0x380465F9: mov esp, ebp */
  23614     ebp = POP32_VAL(esp); /* 0x380465FB: pop ebp */
  23615     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380465FC: ret  */
  23616     RECOMP_REGS_OUT();
  23617 }
  23618 
  23619 void sub_380342D4(void) {
  23620     int _fpu_cmp = 0;
  23621     uint32_t _cf = 0;
  23622     int _df = 1;
  23623     uint32_t _flag_k = FK_NONE;
  23624     uint32_t _flag_a = 0, _flag_b = 0;
  23625     uint32_t _itail_tgt = 0;
  23626     RECOMP_REGS_LOCALS
  23627     RECOMP_ENTER(0x380342D4u);
  23628 
  23629 L_380342D4:
  23630     ecx = MEM32(eax + (-0x4)); /* 0x380342D4: mov ecx, dword ptr [eax - 4] */
  23631     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  23632     ecx = ecx & 1; /* 0x380342D7: and ecx, 1 */
  23633     _cf = 0;
  23634     _flag_k = FK_TEST;
  23635     /* cmp LO8(ecx), 1 */ /* 0x380342DA: cmp cl, 1 */
  23636     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  23637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23638     _flag_k = FK_NARROW(FK_CMP, 24);
  23639     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342DD: je 0x38034490 */
  23640 L_380342E3:
  23641     edx = MEM32(eax); /* 0x380342E3: mov edx, dword ptr [eax] */
  23642     /* cmp edx, 3 */ /* 0x380342E5: cmp edx, 3 */
  23643     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3);
  23644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23645     _flag_k = FK_CMP;
  23646     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342E8: je 0x38034490 */
  23647 L_380342EE:
  23648     /* test edx, edx */ /* 0x380342EE: test edx, edx */
  23649     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  23650     _cf = 0;
  23651     _flag_k = FK_TEST;
  23652     MEM32(ebp + (-0xA0)) = 0; /* 0x380342F0: mov dword ptr [ebp - 0xa0], 0 */
  23653     ecx = MEM32(ebp + (-0xA0)); /* 0x380342FA: mov ecx, dword ptr [ebp - 0xa0] */
  23654     MEM32(ebp + (-0x24)) = ecx; /* 0x38034300: mov dword ptr [ebp - 0x24], ecx */
  23655     MEM32(ebp + (-0x9C)) = 0; /* 0x38034303: mov dword ptr [ebp - 0x9c], 0 */
  23656     ecx = MEM32(ebp + (-0x9C)); /* 0x3803430D: mov ecx, dword ptr [ebp - 0x9c] */
  23657     MEM32(ebp + (-0x98)) = 0; /* 0x38034313: mov dword ptr [ebp - 0x98], 0 */
  23658     MEM32(ebp + (-0x20)) = ecx; /* 0x3803431D: mov dword ptr [ebp - 0x20], ecx */
  23659     ecx = MEM32(ebp + (-0x98)); /* 0x38034320: mov ecx, dword ptr [ebp - 0x98] */
  23660     MEM32(ebp + (-0x1C)) = ecx; /* 0x38034326: mov dword ptr [ebp - 0x1c], ecx */
  23661     if (TEST_Z(_flag_a, _flag_b)) goto L_38034374; /* 0x38034329: jbe 0x38034374 */
  23662 L_3803432B:
  23663     ecx = MEM32(eax + 0x8); /* 0x3803432B: mov ecx, dword ptr [eax + 8] */
  23664     esi = MEM32(eax + 0xC); /* 0x3803432E: mov esi, dword ptr [eax + 0xc] */
  23665     ebx = MEM32(eax + 0x4); /* 0x38034331: mov ebx, dword ptr [eax + 4] */
  23666     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  23667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23668     esi = esi - ecx; /* 0x38034334: sub esi, ecx */
  23669     _flag_k = FK_CMP;
  23670     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
  23671     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23672     ebx = ebx - ecx; /* 0x38034336: sub ebx, ecx */
  23673     _flag_k = FK_CMP;
  23674     MEM32(ebp + (-0x3C)) = ebx; /* 0x38034338: mov dword ptr [ebp - 0x3c], ebx */
  23675     MEM32(ebp + (-0x28)) = edx; /* 0x3803433B: mov dword ptr [ebp - 0x28], edx */
  23676 L_3803433E:
  23677     fp_push(*(float*)&MEM32(esi + ecx)); /* 0x3803433E: fld dword ptr [esi + ecx] */
  23678     ebx = MEM32(ebp + (-0x3C)); /* 0x38034341: mov ebx, dword ptr [ebp - 0x3c] */
  23679     fp_push(*(float*)&MEM32(ecx)); /* 0x38034344: fld dword ptr [ecx] */
  23680     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23682     ecx = ecx + 4; /* 0x38034346: add ecx, 4 */
  23683     _flag_k = FK_ADD;
  23684     fp_push(*(float*)&MEM32(ebx + ecx + (-0x4))); /* 0x38034349: fld dword ptr [ebx + ecx - 4] */
  23685     ebx = MEM32(ebp + (-0x28)); /* 0x3803434D: mov ebx, dword ptr [ebp - 0x28] */
  23686     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034350: fld dword ptr [ebp - 0x24] */
  23687     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  23688     ebx = ebx - 1; /* 0x38034353: dec ebx */
  23689     _flag_k = FK_DEC;
  23690     _st[0] += _st[1]; /* 0x38034354: fadd st(1) */
  23691     MEM32(ebp + (-0x28)) = ebx; /* 0x38034356: mov dword ptr [ebp - 0x28], ebx */
  23692     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38034359: fstp dword ptr [ebp - 0x24] */
  23693     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803435C: fstp st(0) */
  23694     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3803435E: fld dword ptr [ebp - 0x20] */
  23695     _st[0] += _st[1]; /* 0x38034361: fadd st(1) */
  23696     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38034363: fstp dword ptr [ebp - 0x20] */
  23697     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034366: fstp st(0) */
  23698     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38034368: fld dword ptr [ebp - 0x1c] */
  23699     _st[0] += _st[1]; /* 0x3803436B: fadd st(1) */
  23700     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803436D: fstp dword ptr [ebp - 0x1c] */
  23701     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034370: fstp st(0) */
  23702     RECOMP_BACKEDGE();
  23703     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3803433E; /* 0x38034372: jne 0x3803433e */
  23704 L_38034374:
  23705     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23706     ecx = 0; /* 0x38034374: xor ecx, ecx */
  23707     _cf = 0;
  23708     _flag_k = FK_TEST;
  23709     /* cmp edx, ecx */ /* 0x38034376: cmp edx, ecx */
  23710     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  23711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23712     _flag_k = FK_CMP;
  23713     MEM32(ebp + (-0x44)) = edx; /* 0x38034378: mov dword ptr [ebp - 0x44], edx */
  23714     MEM32(ebp + (-0x40)) = ecx; /* 0x3803437B: mov dword ptr [ebp - 0x40], ecx */
  23715     fp_push_i64((int64_t)MEM64(ebp + (-0x44))); /* 0x3803437E: fild qword ptr [ebp - 0x44] */
  23716     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034381: fld dword ptr [ebp - 0x24] */
  23717     esi = MEM32(ebp + (-0x24)); /* 0x38034384: mov esi, dword ptr [ebp - 0x24] */
  23718     MEM32(ebp + (-0x18)) = esi; /* 0x38034387: mov dword ptr [ebp - 0x18], esi */
  23719     _st[0] /= _st[1]; /* 0x3803438A: fdiv st(1) */
  23720     esi = MEM32(ebp + (-0x20)); /* 0x3803438C: mov esi, dword ptr [ebp - 0x20] */
  23721     MEM32(ebp + (-0x14)) = esi; /* 0x3803438F: mov dword ptr [ebp - 0x14], esi */
  23722     esi = MEM32(ebp + (-0x1C)); /* 0x38034392: mov esi, dword ptr [ebp - 0x1c] */
  23723     MEM32(ebp + (-0x10)) = esi; /* 0x38034395: mov dword ptr [ebp - 0x10], esi */
  23724     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38034398: fstp dword ptr [ebp - 0x18] */
  23725     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803439B: fld dword ptr [ebp - 0x14] */
  23726     _st[0] /= _st[1]; /* 0x3803439E: fdiv st(1) */
  23727     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380343A0: fstp dword ptr [ebp - 0x14] */
  23728     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380343A3: fld dword ptr [ebp - 0x10] */
  23729     _st[0] /= _st[1]; /* 0x380343A6: fdiv st(1) */
  23730     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380343A8: fstp dword ptr [ebp - 0x10] */
  23731     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380343AB: fstp st(0) */
  23732     if (CMP_BE(_flag_a, _flag_b)) goto L_3803459F; /* 0x380343AD: jbe 0x3803459f */
  23733 L_380343B3:
  23734     edx = MEM32(ebp + 0xC); /* 0x380343B3: mov edx, dword ptr [ebp + 0xc] */
  23735     edx = edx + edx * 4; /* 0x380343B6: lea edx, [edx + edx*4] */
  23736     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380343B9: shl edx, 3 */
  23737     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23738     edx = edx << 3u; /* 0x380343B9: shl edx, 3 */
  23739 L_380343BC:
  23740     ebx = MEM32(edi + 0x90); /* 0x380343BC: mov ebx, dword ptr [edi + 0x90] */
  23741     esi = eax + (-0x4); /* 0x380343C2: lea esi, [eax - 4] */
  23742     esi = MEM32(esi); /* 0x380343C5: mov esi, dword ptr [esi] */
  23743     MEM32(ebx + edx + 0x24) = esi; /* 0x380343C7: mov dword ptr [ebx + edx + 0x24], esi */
  23744     esi = MEM32(edi + 0x90); /* 0x380343CB: mov esi, dword ptr [edi + 0x90] */
  23745     ebx = MEM32(ebp + (-0x18)); /* 0x380343D1: mov ebx, dword ptr [ebp - 0x18] */
  23746     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  23747     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23748     esi = esi + edx; /* 0x380343D4: add esi, edx */
  23749     _flag_k = FK_ADD;
  23750     /* test ecx, ecx */ /* 0x380343D6: test ecx, ecx */
  23751     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  23752     _cf = 0;
  23753     _flag_k = FK_TEST;
  23754     MEM32(esi) = ebx; /* 0x380343D8: mov dword ptr [esi], ebx */
  23755     ebx = MEM32(ebp + (-0x14)); /* 0x380343DA: mov ebx, dword ptr [ebp - 0x14] */
  23756     MEM32(esi + 0x4) = ebx; /* 0x380343DD: mov dword ptr [esi + 4], ebx */
  23757     ebx = MEM32(ebp + (-0x10)); /* 0x380343E0: mov ebx, dword ptr [ebp - 0x10] */
  23758     MEM32(esi + 0x8) = ebx; /* 0x380343E3: mov dword ptr [esi + 8], ebx */
  23759     if (TEST_NZ(_flag_a, _flag_b)) goto L_380343ED; /* 0x380343E6: jne 0x380343ed */
  23760 L_380343E8:
  23761     esi = MEM32(eax); /* 0x380343E8: mov esi, dword ptr [eax] */
  23762     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  23763     esi = esi - 1; /* 0x380343EA: dec esi */
  23764     _flag_k = FK_DEC;
  23765     goto L_380343F0; /* 0x380343EB: jmp 0x380343f0 */
  23766 L_380343ED:
  23767     esi = ecx + (-0x1); /* 0x380343ED: lea esi, [ecx - 1] */
  23768 L_380343F0:
  23769     ebx = MEM32(eax + 0xC); /* 0x380343F0: mov ebx, dword ptr [eax + 0xc] */
  23770     fp_push(*(float*)&MEM32(ebx + esi * 4)); /* 0x380343F3: fld dword ptr [ebx + esi*4] */
  23771     ebx = esi; /* 0x380343F6: mov ebx, esi */
  23772     MEM32(ebp + (-0x34)) = esi; /* 0x380343F8: mov dword ptr [ebp - 0x34], esi */
  23773     esi = MEM32(eax + 0x8); /* 0x380343FB: mov esi, dword ptr [eax + 8] */
  23774     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x380343FE: fld dword ptr [esi + ebx*4] */
  23775     esi = MEM32(eax + 0x4); /* 0x38034401: mov esi, dword ptr [eax + 4] */
  23776     ebx = MEM32(ebp + (-0x34)); /* 0x38034404: mov ebx, dword ptr [ebp - 0x34] */
  23777     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x38034407: fld dword ptr [esi + ebx*4] */
  23778     esi = MEM32(edi + 0x90); /* 0x3803440A: mov esi, dword ptr [edi + 0x90] */
  23779     esi = esi + edx + 0xC; /* 0x38034410: lea esi, [esi + edx + 0xc] */
  23780     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38034414: fstp dword ptr [ebp - 0x7c] */
  23781     ebx = MEM32(ebp + (-0x7C)); /* 0x38034417: mov ebx, dword ptr [ebp - 0x7c] */
  23782     MEM32(esi) = ebx; /* 0x3803441A: mov dword ptr [esi], ebx */
  23783     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x3803441C: fstp dword ptr [ebp - 0x78] */
  23784     ebx = MEM32(ebp + (-0x78)); /* 0x3803441F: mov ebx, dword ptr [ebp - 0x78] */
  23785     MEM32(esi + 0x4) = ebx; /* 0x38034422: mov dword ptr [esi + 4], ebx */
  23786     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38034425: fstp dword ptr [ebp - 0x74] */
  23787     ebx = MEM32(ebp + (-0x74)); /* 0x38034428: mov ebx, dword ptr [ebp - 0x74] */
  23788     MEM32(esi + 0x8) = ebx; /* 0x3803442B: mov dword ptr [esi + 8], ebx */
  23789     esi = MEM32(eax + 0xC); /* 0x3803442E: mov esi, dword ptr [eax + 0xc] */
  23790     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034431: fld dword ptr [esi + ecx*4] */
  23791     esi = MEM32(eax + 0x8); /* 0x38034434: mov esi, dword ptr [eax + 8] */
  23792     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034437: fld dword ptr [esi + ecx*4] */
  23793     esi = MEM32(eax + 0x4); /* 0x3803443A: mov esi, dword ptr [eax + 4] */
  23794     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x3803443D: fld dword ptr [esi + ecx*4] */
  23795     esi = MEM32(edi + 0x90); /* 0x38034440: mov esi, dword ptr [edi + 0x90] */
  23796     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x38034446: fstp dword ptr [ebp - 0x94] */
  23797     ebx = MEM32(ebp + (-0x94)); /* 0x3803444C: mov ebx, dword ptr [ebp - 0x94] */
  23798     esi = esi + edx + 0x18; /* 0x38034452: lea esi, [esi + edx + 0x18] */
  23799     MEM32(esi) = ebx; /* 0x38034456: mov dword ptr [esi], ebx */
  23800     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x38034458: fstp dword ptr [ebp - 0x90] */
  23801     ebx = MEM32(ebp + (-0x90)); /* 0x3803445E: mov ebx, dword ptr [ebp - 0x90] */
  23802     MEM32(esi + 0x4) = ebx; /* 0x38034464: mov dword ptr [esi + 4], ebx */
  23803     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x38034467: fstp dword ptr [ebp - 0x8c] */
  23804     ebx = MEM32(ebp + (-0x8C)); /* 0x3803446D: mov ebx, dword ptr [ebp - 0x8c] */
  23805     MEM32(esi + 0x8) = ebx; /* 0x38034473: mov dword ptr [esi + 8], ebx */
  23806     ebx = MEM32(ebp + 0xC); /* 0x38034476: mov ebx, dword ptr [ebp + 0xc] */
  23807     esi = MEM32(eax); /* 0x38034479: mov esi, dword ptr [eax] */
  23808     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  23809     ebx = ebx + 1; /* 0x3803447B: inc ebx */
  23810     _flag_k = FK_INC;
  23811     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  23812     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23813     edx = edx + 0x28u; /* 0x3803447C: add edx, 0x28 */
  23814     _flag_k = FK_ADD;
  23815     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  23816     ecx = ecx + 1; /* 0x3803447F: inc ecx */
  23817     _flag_k = FK_INC;
  23818     /* cmp ecx, esi */ /* 0x38034480: cmp ecx, esi */
  23819     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  23820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23821     _flag_k = FK_CMP;
  23822     MEM32(ebp + 0xC) = ebx; /* 0x38034482: mov dword ptr [ebp + 0xc], ebx */
  23823     RECOMP_BACKEDGE();
  23824     if (CMP_B(_flag_a, _flag_b)) goto L_380343BC; /* 0x38034485: jb 0x380343bc */
  23825 L_3803448B:
  23826     goto L_3803459F; /* 0x3803448B: jmp 0x3803459f */
  23827 L_38034490:
  23828     ecx = MEM32(eax + 0x10); /* 0x38034490: mov ecx, dword ptr [eax + 0x10] */
  23829     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23830     esi = 0; /* 0x38034493: xor esi, esi */
  23831     _cf = 0;
  23832     _flag_k = FK_TEST;
  23833     /* test ecx, ecx */ /* 0x38034495: test ecx, ecx */
  23834     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  23835     _cf = 0;
  23836     _flag_k = FK_TEST;
  23837     if (TEST_Z(_flag_a, _flag_b)) goto L_3803459F; /* 0x38034497: jbe 0x3803459f */
  23838 L_3803449D:
  23839     edx = MEM32(ebp + 0xC); /* 0x3803449D: mov edx, dword ptr [ebp + 0xc] */
  23840     edx = edx + edx * 4; /* 0x380344A0: lea edx, [edx + edx*4] */
  23841     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380344A3: shl edx, 3 */
  23842     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23843     edx = edx << 3u; /* 0x380344A3: shl edx, 3 */
  23844 L_380344A6:
  23845     ecx = MEM32(edi + 0x90); /* 0x380344A6: mov ecx, dword ptr [edi + 0x90] */
  23846     ebx = MEM32(eax + (-0x4)); /* 0x380344AC: mov ebx, dword ptr [eax - 4] */
  23847     MEM32(ecx + edx + 0x24) = ebx; /* 0x380344AF: mov dword ptr [ecx + edx + 0x24], ebx */
  23848     ecx = MEM32(eax + 0x14); /* 0x380344B3: mov ecx, dword ptr [eax + 0x14] */
  23849     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23850     ebx = 0; /* 0x380344B6: xor ebx, ebx */
  23851     _cf = 0;
  23852     _flag_k = FK_TEST;
  23853     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344B8: mov bx, word ptr [ecx + esi*2] */
  23854     ecx = ebx; /* 0x380344BC: mov ecx, ebx */
  23855     ebx = MEM32(eax + 0xC); /* 0x380344BE: mov ebx, dword ptr [eax + 0xc] */
  23856     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x380344C1: shl ecx, 2 */
  23857     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23858     ecx = ecx << 2u; /* 0x380344C1: shl ecx, 2 */
  23859     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344C4: fld dword ptr [ecx + ebx] */
  23860     ebx = MEM32(eax + 0x8); /* 0x380344C7: mov ebx, dword ptr [eax + 8] */
  23861     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344CA: fld dword ptr [ecx + ebx] */
  23862     ebx = MEM32(eax + 0x4); /* 0x380344CD: mov ebx, dword ptr [eax + 4] */
  23863     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344D0: fld dword ptr [ecx + ebx] */
  23864     ecx = MEM32(edi + 0x90); /* 0x380344D3: mov ecx, dword ptr [edi + 0x90] */
  23865     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  23866     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23867     ecx = ecx + edx; /* 0x380344D9: add ecx, edx */
  23868     _flag_k = FK_ADD;
  23869     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x380344DB: fstp dword ptr [ebp - 0x70] */
  23870     ebx = MEM32(ebp + (-0x70)); /* 0x380344DE: mov ebx, dword ptr [ebp - 0x70] */
  23871     MEM32(ecx) = ebx; /* 0x380344E1: mov dword ptr [ecx], ebx */
  23872     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x380344E3: fstp dword ptr [ebp - 0x6c] */
  23873     ebx = MEM32(ebp + (-0x6C)); /* 0x380344E6: mov ebx, dword ptr [ebp - 0x6c] */
  23874     MEM32(ecx + 0x4) = ebx; /* 0x380344E9: mov dword ptr [ecx + 4], ebx */
  23875     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x380344EC: fstp dword ptr [ebp - 0x68] */
  23876     ebx = MEM32(ebp + (-0x68)); /* 0x380344EF: mov ebx, dword ptr [ebp - 0x68] */
  23877     MEM32(ecx + 0x8) = ebx; /* 0x380344F2: mov dword ptr [ecx + 8], ebx */
  23878     ecx = MEM32(eax + 0x18); /* 0x380344F5: mov ecx, dword ptr [eax + 0x18] */
  23879     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23880     ebx = 0; /* 0x380344F8: xor ebx, ebx */
  23881     _cf = 0;
  23882     _flag_k = FK_TEST;
  23883     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344FA: mov bx, word ptr [ecx + esi*2] */
  23884     ecx = ebx; /* 0x380344FE: mov ecx, ebx */
  23885     ebx = MEM32(eax + 0xC); /* 0x38034500: mov ebx, dword ptr [eax + 0xc] */
  23886     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034503: shl ecx, 2 */
  23887     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23888     ecx = ecx << 2u; /* 0x38034503: shl ecx, 2 */
  23889     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034506: fld dword ptr [ecx + ebx] */
  23890     ebx = MEM32(eax + 0x8); /* 0x38034509: mov ebx, dword ptr [eax + 8] */
  23891     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803450C: fld dword ptr [ecx + ebx] */
  23892     ebx = MEM32(eax + 0x4); /* 0x3803450F: mov ebx, dword ptr [eax + 4] */
  23893     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034512: fld dword ptr [ecx + ebx] */
  23894     ecx = MEM32(edi + 0x90); /* 0x38034515: mov ecx, dword ptr [edi + 0x90] */
  23895     ecx = ecx + edx + 0xC; /* 0x3803451B: lea ecx, [ecx + edx + 0xc] */
  23896     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x3803451F: fstp dword ptr [ebp - 0x88] */
  23897     ebx = MEM32(ebp + (-0x88)); /* 0x38034525: mov ebx, dword ptr [ebp - 0x88] */
  23898     MEM32(ecx) = ebx; /* 0x3803452B: mov dword ptr [ecx], ebx */
  23899     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3803452D: fstp dword ptr [ebp - 0x84] */
  23900     ebx = MEM32(ebp + (-0x84)); /* 0x38034533: mov ebx, dword ptr [ebp - 0x84] */
  23901     MEM32(ecx + 0x4) = ebx; /* 0x38034539: mov dword ptr [ecx + 4], ebx */
  23902     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803453C: fstp dword ptr [ebp - 0x80] */
  23903     ebx = MEM32(ebp + (-0x80)); /* 0x3803453F: mov ebx, dword ptr [ebp - 0x80] */
  23904     MEM32(ecx + 0x8) = ebx; /* 0x38034542: mov dword ptr [ecx + 8], ebx */
  23905     ecx = MEM32(eax + 0x1C); /* 0x38034545: mov ecx, dword ptr [eax + 0x1c] */
  23906     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23907     ebx = 0; /* 0x38034548: xor ebx, ebx */
  23908     _cf = 0;
  23909     _flag_k = FK_TEST;
  23910     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x3803454A: mov bx, word ptr [ecx + esi*2] */
  23911     ecx = ebx; /* 0x3803454E: mov ecx, ebx */
  23912     ebx = MEM32(eax + 0xC); /* 0x38034550: mov ebx, dword ptr [eax + 0xc] */
  23913     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034553: shl ecx, 2 */
  23914     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23915     ecx = ecx << 2u; /* 0x38034553: shl ecx, 2 */
  23916     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034556: fld dword ptr [ecx + ebx] */
  23917     ebx = MEM32(eax + 0x8); /* 0x38034559: mov ebx, dword ptr [eax + 8] */
  23918     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803455C: fld dword ptr [ecx + ebx] */
  23919     ebx = MEM32(eax + 0x4); /* 0x3803455F: mov ebx, dword ptr [eax + 4] */
  23920     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034562: fld dword ptr [ecx + ebx] */
  23921     ecx = MEM32(edi + 0x90); /* 0x38034565: mov ecx, dword ptr [edi + 0x90] */
  23922     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3803456B: fstp dword ptr [ebp - 0x54] */
  23923     ebx = MEM32(ebp + (-0x54)); /* 0x3803456E: mov ebx, dword ptr [ebp - 0x54] */
  23924     ecx = ecx + edx + 0x18; /* 0x38034571: lea ecx, [ecx + edx + 0x18] */
  23925     MEM32(ecx) = ebx; /* 0x38034575: mov dword ptr [ecx], ebx */
  23926     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x38034577: fstp dword ptr [ebp - 0x50] */
  23927     ebx = MEM32(ebp + (-0x50)); /* 0x3803457A: mov ebx, dword ptr [ebp - 0x50] */
  23928     MEM32(ecx + 0x4) = ebx; /* 0x3803457D: mov dword ptr [ecx + 4], ebx */
  23929     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x38034580: fstp dword ptr [ebp - 0x4c] */
  23930     ebx = MEM32(ebp + (-0x4C)); /* 0x38034583: mov ebx, dword ptr [ebp - 0x4c] */
  23931     MEM32(ecx + 0x8) = ebx; /* 0x38034586: mov dword ptr [ecx + 8], ebx */
  23932     ebx = MEM32(ebp + 0xC); /* 0x38034589: mov ebx, dword ptr [ebp + 0xc] */
  23933     ecx = MEM32(eax + 0x10); /* 0x3803458C: mov ecx, dword ptr [eax + 0x10] */
  23934     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  23935     ebx = ebx + 1; /* 0x3803458F: inc ebx */
  23936     _flag_k = FK_INC;
  23937     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  23938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23939     edx = edx + 0x28u; /* 0x38034590: add edx, 0x28 */
  23940     _flag_k = FK_ADD;
  23941     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  23942     esi = esi + 1; /* 0x38034593: inc esi */
  23943     _flag_k = FK_INC;
  23944     /* cmp esi, ecx */ /* 0x38034594: cmp esi, ecx */
  23945     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  23946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23947     _flag_k = FK_CMP;
  23948     MEM32(ebp + 0xC) = ebx; /* 0x38034596: mov dword ptr [ebp + 0xc], ebx */
  23949     RECOMP_BACKEDGE();
  23950     if (CMP_B(_flag_a, _flag_b)) goto L_380344A6; /* 0x38034599: jb 0x380344a6 */
  23951 L_3803459F:
  23952     ecx = MEM32(ebp + (-0x2C)); /* 0x3803459F: mov ecx, dword ptr [ebp - 0x2c] */
  23953     edx = MEM32(ebp + (-0x30)); /* 0x380345A2: mov edx, dword ptr [ebp - 0x30] */
  23954     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  23955     ecx = ecx + 1; /* 0x380345A5: inc ecx */
  23956     _flag_k = FK_INC;
  23957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  23958     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23959     eax = eax + 0x24u; /* 0x380345A6: add eax, 0x24 */
  23960     _flag_k = FK_ADD;
  23961     /* cmp ecx, edx */ /* 0x380345A9: cmp ecx, edx */
  23962     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  23963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23964     _flag_k = FK_CMP;
  23965     MEM32(ebp + (-0x2C)) = ecx; /* 0x380345AB: mov dword ptr [ebp - 0x2c], ecx */
  23966     RECOMP_BACKEDGE();
  23967     if (CMP_B(_flag_a, _flag_b)) goto L_380342D4; /* 0x380345AE: jb 0x380342d4 */
  23968 L_380345B4:
  23969     eax = MEM32(ebp + 0xC); /* 0x380345B4: mov eax, dword ptr [ebp + 0xc] */
  23970     /* cmp eax, MEM32(edi + 0x8C) */ /* 0x380345B7: cmp eax, dword ptr [edi + 0x8c] */
  23971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8C));
  23972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23973     _flag_k = FK_CMP;
  23974     if (CMP_AE(_flag_a, _flag_b)) goto L_380345CD; /* 0x380345BD: jae 0x380345cd */
  23975 L_380345BF:
  23976     MEM32(edi + 0x8C) = eax; /* 0x380345BF: mov dword ptr [edi + 0x8c], eax */
  23977     goto L_380345CD; /* 0x380345C5: jmp 0x380345cd */
  23978 L_380345CD:
  23979     eax = MEM32(edi + 0x8C); /* 0x380345CD: mov eax, dword ptr [edi + 0x8c] */
  23980     /* test eax, eax */ /* 0x380345D3: test eax, eax */
  23981     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23982     _cf = 0;
  23983     _flag_k = FK_TEST;
  23984     if (TEST_Z(_flag_a, _flag_b)) goto L_380345EA; /* 0x380345D5: je 0x380345ea */
  23985 L_380345D7:
  23986     edx = MEM32(edi + 0x90); /* 0x380345D7: mov edx, dword ptr [edi + 0x90] */
  23987     PUSH32(esp, edx); /* 0x380345DD: push edx */
  23988     PUSH32(esp, eax); /* 0x380345DE: push eax */
  23989     eax = MEM32(edi + 0x44); /* 0x380345DF: mov eax, dword ptr [edi + 0x44] */
  23990     PUSH32(esp, eax); /* 0x380345E2: push eax */
  23991     ecx = edi; /* 0x380345E3: mov ecx, edi */
  23992     RECOMP_ICALL(0x3803F2F0u); /* 0x380345E5: call 0x3803f2f0 */ /* not lifted */
  23993     RECOMP_FLAGS_IN();
  23994 L_380345EA:
  23995     eax = MEM32(ebp + (-0x30)); /* 0x380345EA: mov eax, dword ptr [ebp - 0x30] */
  23996     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23997     esi = 0; /* 0x380345ED: xor esi, esi */
  23998     _cf = 0;
  23999     _flag_k = FK_TEST;
  24000     /* test eax, eax */ /* 0x380345EF: test eax, eax */
  24001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24002     _cf = 0;
  24003     _flag_k = FK_TEST;
  24004     if (TEST_Z(_flag_a, _flag_b)) goto L_38034663; /* 0x380345F1: jbe 0x38034663 */
  24005 L_380345F3:
  24006     ecx = MEM32(ebp + (-0x38)); /* 0x380345F3: mov ecx, dword ptr [ebp - 0x38] */
  24007     ebx = ecx + 0xC; /* 0x380345F6: lea ebx, [ecx + 0xc] */
  24008 L_380345F9:
  24009     eax = MEM32(ebx + (-0x4)); /* 0x380345F9: mov eax, dword ptr [ebx - 4] */
  24010     /* test eax, eax */ /* 0x380345FC: test eax, eax */
  24011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24012     _cf = 0;
  24013     _flag_k = FK_TEST;
  24014     if (TEST_Z(_flag_a, _flag_b)) goto L_38034609; /* 0x380345FE: je 0x38034609 */
  24015 L_38034600:
  24016     PUSH32(esp, eax); /* 0x38034600: push eax */
  24017     RECOMP_ICALL(0x3804B4F6u); /* 0x38034601: call 0x3804b4f6 */ /* not lifted */
  24018     RECOMP_FLAGS_IN();
  24019     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24020     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24021     esp = esp + 4; /* 0x38034606: add esp, 4 */
  24022     _flag_k = FK_ADD;
  24023 L_38034609:
  24024     eax = MEM32(ebx); /* 0x38034609: mov eax, dword ptr [ebx] */
  24025     /* test eax, eax */ /* 0x3803460B: test eax, eax */
  24026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24027     _cf = 0;
  24028     _flag_k = FK_TEST;
  24029     if (TEST_Z(_flag_a, _flag_b)) goto L_38034618; /* 0x3803460D: je 0x38034618 */
  24030 L_3803460F:
  24031     PUSH32(esp, eax); /* 0x3803460F: push eax */
  24032     RECOMP_ICALL(0x3804B4F6u); /* 0x38034610: call 0x3804b4f6 */ /* not lifted */
  24033     RECOMP_FLAGS_IN();
  24034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24036     esp = esp + 4; /* 0x38034615: add esp, 4 */
  24037     _flag_k = FK_ADD;
  24038 L_38034618:
  24039     eax = MEM32(ebx + 0x4); /* 0x38034618: mov eax, dword ptr [ebx + 4] */
  24040     /* test eax, eax */ /* 0x3803461B: test eax, eax */
  24041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24042     _cf = 0;
  24043     _flag_k = FK_TEST;
  24044     if (TEST_Z(_flag_a, _flag_b)) goto L_38034628; /* 0x3803461D: je 0x38034628 */
  24045 L_3803461F:
  24046     PUSH32(esp, eax); /* 0x3803461F: push eax */
  24047     RECOMP_ICALL(0x3804B4F6u); /* 0x38034620: call 0x3804b4f6 */ /* not lifted */
  24048     RECOMP_FLAGS_IN();
  24049     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24050     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24051     esp = esp + 4; /* 0x38034625: add esp, 4 */
  24052     _flag_k = FK_ADD;
  24053 L_38034628:
  24054     eax = MEM32(ebx + 0xC); /* 0x38034628: mov eax, dword ptr [ebx + 0xc] */
  24055     /* test eax, eax */ /* 0x3803462B: test eax, eax */
  24056     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24057     _cf = 0;
  24058     _flag_k = FK_TEST;
  24059     if (TEST_Z(_flag_a, _flag_b)) goto L_38034638; /* 0x3803462D: je 0x38034638 */
  24060 L_3803462F:
  24061     PUSH32(esp, eax); /* 0x3803462F: push eax */
  24062     RECOMP_ICALL(0x3804B4F6u); /* 0x38034630: call 0x3804b4f6 */ /* not lifted */
  24063     RECOMP_FLAGS_IN();
  24064     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24065     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24066     esp = esp + 4; /* 0x38034635: add esp, 4 */
  24067     _flag_k = FK_ADD;
  24068 L_38034638:
  24069     eax = MEM32(ebx + 0x10); /* 0x38034638: mov eax, dword ptr [ebx + 0x10] */
  24070     /* test eax, eax */ /* 0x3803463B: test eax, eax */
  24071     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24072     _cf = 0;
  24073     _flag_k = FK_TEST;
  24074     if (TEST_Z(_flag_a, _flag_b)) goto L_38034648; /* 0x3803463D: je 0x38034648 */
  24075 L_3803463F:
  24076     PUSH32(esp, eax); /* 0x3803463F: push eax */
  24077     RECOMP_ICALL(0x3804B4F6u); /* 0x38034640: call 0x3804b4f6 */ /* not lifted */
  24078     RECOMP_FLAGS_IN();
  24079     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24080     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24081     esp = esp + 4; /* 0x38034645: add esp, 4 */
  24082     _flag_k = FK_ADD;
  24083 L_38034648:
  24084     eax = MEM32(ebx + 0x14); /* 0x38034648: mov eax, dword ptr [ebx + 0x14] */
  24085     /* test eax, eax */ /* 0x3803464B: test eax, eax */
  24086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24087     _cf = 0;
  24088     _flag_k = FK_TEST;
  24089     if (TEST_Z(_flag_a, _flag_b)) goto L_38034658; /* 0x3803464D: je 0x38034658 */
  24090 L_3803464F:
  24091     PUSH32(esp, eax); /* 0x3803464F: push eax */
  24092     RECOMP_ICALL(0x3804B4F6u); /* 0x38034650: call 0x3804b4f6 */ /* not lifted */
  24093     RECOMP_FLAGS_IN();
  24094     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24095     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24096     esp = esp + 4; /* 0x38034655: add esp, 4 */
  24097     _flag_k = FK_ADD;
  24098 L_38034658:
  24099     eax = MEM32(ebp + (-0x30)); /* 0x38034658: mov eax, dword ptr [ebp - 0x30] */
  24100     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  24101     esi = esi + 1; /* 0x3803465B: inc esi */
  24102     _flag_k = FK_INC;
  24103     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
  24104     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24105     ebx = ebx + 0x24u; /* 0x3803465C: add ebx, 0x24 */
  24106     _flag_k = FK_ADD;
  24107     /* cmp esi, eax */ /* 0x3803465F: cmp esi, eax */
  24108     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  24109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24110     _flag_k = FK_CMP;
  24111     RECOMP_BACKEDGE();
  24112     if (CMP_B(_flag_a, _flag_b)) goto L_380345F9; /* 0x38034661: jb 0x380345f9 */
  24113 L_38034663:
  24114     edx = MEM32(ebp + (-0x38)); /* 0x38034663: mov edx, dword ptr [ebp - 0x38] */
  24115     PUSH32(esp, edx); /* 0x38034666: push edx */
  24116     RECOMP_ICALL(0x3804B4F6u); /* 0x38034667: call 0x3804b4f6 */ /* not lifted */
  24117     RECOMP_FLAGS_IN();
  24118     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24119     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24120     esp = esp + 4; /* 0x3803466C: add esp, 4 */
  24121     _flag_k = FK_ADD;
  24122     goto L_38034677; /* 0x3803466F: jmp 0x38034677 */
  24123 L_38034677:
  24124     esi = MEM32(edi + 0xC); /* 0x38034677: mov esi, dword ptr [edi + 0xc] */
  24125     ecx = edi; /* 0x3803467A: mov ecx, edi */
  24126     RECOMP_ICALL(0x380303E0u); /* 0x3803467C: call 0x380303e0 */ /* not lifted */
  24127     RECOMP_FLAGS_IN();
  24128     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x38034681: shl eax, 0x10 */
  24129     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24130     eax = eax << 16u; /* 0x38034681: shl eax, 0x10 */
  24131     _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi));
  24132     eax = eax | esi; /* 0x38034684: or eax, esi */
  24133     _cf = 0;
  24134     _flag_k = FK_TEST;
  24135     MEM32(edi + 0x4) = eax; /* 0x38034686: mov dword ptr [edi + 4], eax */
  24136     /* cmp MEM32(edi + 0xAC), 4 */ /* 0x38034689: cmp dword ptr [edi + 0xac], 4 */
  24137     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(4);
  24138     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24139     _flag_k = FK_CMP;
  24140     if (CMP_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x38034690: jle 0x3803498d */
  24141 L_38034696:
  24142     ecx = MEM32(ebp + 0x8); /* 0x38034696: mov ecx, dword ptr [ebp + 8] */
  24143     eax = ebp + (-0x3C); /* 0x38034699: lea eax, [ebp - 0x3c] */
  24144     PUSH32(esp, eax); /* 0x3803469C: push eax */
  24145     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803469D: call dword ptr [0x3804e388] */
  24146     RECOMP_FLAGS_IN();
  24147     eax = MEM32(ebp + (-0x3C)); /* 0x380346A3: mov eax, dword ptr [ebp - 0x3c] */
  24148     /* test eax, eax */ /* 0x380346A6: test eax, eax */
  24149     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24150     _cf = 0;
  24151     _flag_k = FK_TEST;
  24152     MEM32(ebp + (-0x2C)) = 0; /* 0x380346A8: mov dword ptr [ebp - 0x2c], 0 */
  24153     if (TEST_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x380346AF: jle 0x3803498d */
  24154 L_380346B5:
  24155     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  24156     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  24157     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  24158     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  24159     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  24160     PUSH32(esp, edx); /* 0x380346C5: push edx */
  24161     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  24162     PUSH32(esp, eax); /* 0x380346C9: push eax */
  24163     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  24164     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  24165     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  24166     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  24167     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  24168     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  24169     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  24170     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  24171     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  24172     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  24173     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  24174     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  24175     RECOMP_FLAGS_IN();
  24176     ecx = eax; /* 0x38034714: mov ecx, eax */
  24177     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  24178     RECOMP_FLAGS_IN();
  24179     ecx = eax; /* 0x38034718: mov ecx, eax */
  24180     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  24181     RECOMP_FLAGS_IN();
  24182     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  24183     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  24184     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  24185     PUSH32(esp, edx); /* 0x38034723: push edx */
  24186     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  24187     PUSH32(esp, eax); /* 0x38034727: push eax */
  24188     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  24189     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  24190     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  24191     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  24192     RECOMP_FLAGS_IN();
  24193     ecx = eax; /* 0x38034730: mov ecx, eax */
  24194     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  24195     RECOMP_FLAGS_IN();
  24196     ecx = eax; /* 0x38034734: mov ecx, eax */
  24197     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  24198     RECOMP_FLAGS_IN();
  24199     ecx = eax; /* 0x38034738: mov ecx, eax */
  24200     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  24201     RECOMP_FLAGS_IN();
  24202     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  24203     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  24204     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24205     _flag_k = FK_CMP;
  24206     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  24207 L_38034745:
  24208     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  24209     PUSH32(esp, edx); /* 0x38034748: push edx */
  24210     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  24211     PUSH32(esp, eax); /* 0x3803474C: push eax */
  24212     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  24213     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  24214     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  24215     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  24216     RECOMP_FLAGS_IN();
  24217     ecx = eax; /* 0x38034755: mov ecx, eax */
  24218     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  24219     RECOMP_FLAGS_IN();
  24220     ecx = eax; /* 0x38034759: mov ecx, eax */
  24221     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  24222     RECOMP_FLAGS_IN();
  24223     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  24224 L_3803475F:
  24225     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  24226     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  24227     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  24228     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  24229     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  24230     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  24231 L_38034771:
  24232     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  24233     PUSH32(esp, edx); /* 0x38034774: push edx */
  24234     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  24235     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  24236     RECOMP_FLAGS_IN();
  24237     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  24238     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  24239     fp_pop();
  24240     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  24241     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  24242     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  24243     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  24244     _cf = 0;
  24245     _flag_k = FK_NARROW(FK_TEST, 24);
  24246     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  24247 L_3803478D:
  24248     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  24249 L_38034791:
  24250     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  24251     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  24252     RECOMP_FLAGS_IN();
  24253     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24254     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24255     esp = esp + 4; /* 0x38034798: add esp, 4 */
  24256     _flag_k = FK_ADD;
  24257     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  24258     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  24259     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  24260     _cf = 0;
  24261     _flag_k = FK_TEST;
  24262     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  24263     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  24264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24265     _flag_k = FK_CMP;
  24266     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  24267     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  24268 L_380347A7:
  24269     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  24270     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  24271     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  24272     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  24273     PUSH32(esp, edx); /* 0x380347B0: push edx */
  24274     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  24275     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  24276     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  24277     PUSH32(esp, edx); /* 0x380347B8: push edx */
  24278     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  24279     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  24280     ecx = eax; /* 0x380347BD: mov ecx, eax */
  24281     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  24282     RECOMP_FLAGS_IN();
  24283     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  24284     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  24285 L_380347C9:
  24286     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  24287 L_380347CC:
  24288     ecx = edi; /* 0x380347CC: mov ecx, edi */
  24289     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  24290     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  24291     RECOMP_FLAGS_IN();
  24292     ebx = eax; /* 0x380347DA: mov ebx, eax */
  24293     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  24294     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  24295     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  24296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24297     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  24298     _flag_k = FK_CMP;
  24299     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  24300     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24301     edx = (uint32_t)((int32_t)edx >> 2u);
  24302     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  24303     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  24304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24305     _flag_k = FK_CMP;
  24306     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  24307     esi = eax; /* 0x380347ED: mov esi, eax */
  24308     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  24309 L_380347F5:
  24310     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  24311     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  24312     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  24313     _cf = 0;
  24314     _flag_k = FK_TEST;
  24315     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  24316 L_380347FC:
  24317     ecx = eax; /* 0x380347FC: mov ecx, eax */
  24318     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  24319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24320     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  24321     _flag_k = FK_CMP;
  24322     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  24323     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24324     ecx = (uint32_t)((int32_t)ecx >> 2u);
  24325     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  24326     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  24327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24328     _flag_k = FK_CMP;
  24329     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  24330 L_38034808:
  24331     ecx = 1; /* 0x38034808: mov ecx, 1 */
  24332 L_3803480D:
  24333     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  24334     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  24335     _cf = 0;
  24336     _flag_k = FK_TEST;
  24337     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  24338 L_38034811:
  24339     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  24340     eax = 0; /* 0x38034811: xor eax, eax */
  24341     _cf = 0;
  24342     _flag_k = FK_TEST;
  24343     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  24344 L_38034815:
  24345     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  24346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24347     eax = eax - edx; /* 0x38034815: sub eax, edx */
  24348     _flag_k = FK_CMP;
  24349     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  24350     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24351     eax = (uint32_t)((int32_t)eax >> 2u);
  24352 L_3803481A:
  24353     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  24354     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24355     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  24356     _flag_k = FK_ADD;
  24357     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  24358     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24359     _cf = 0;
  24360     _flag_k = FK_TEST;
  24361     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  24362     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  24363 L_38034823:
  24364     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  24365     eax = 0; /* 0x38034823: xor eax, eax */
  24366     _cf = 0;
  24367     _flag_k = FK_TEST;
  24368 L_38034825:
  24369     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  24370     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24371     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  24372     PUSH32(esp, eax); /* 0x38034828: push eax */
  24373     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  24374     RECOMP_FLAGS_IN();
  24375     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  24376     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24377     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24378     esp = esp + 4; /* 0x38034831: add esp, 4 */
  24379     _flag_k = FK_ADD;
  24380     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  24381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  24382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24383     _flag_k = FK_CMP;
  24384     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  24385     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  24386 L_3803483B:
  24387     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  24388     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24389     _cf = 0;
  24390     _flag_k = FK_TEST;
  24391     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  24392 L_3803483F:
  24393     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  24394     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  24395 L_38034843:
  24396     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  24397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24398     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  24399     _flag_k = FK_ADD;
  24400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  24401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24402     eax = eax + 4; /* 0x38034846: add eax, 4 */
  24403     _flag_k = FK_ADD;
  24404     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  24405     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  24406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24407     _flag_k = FK_CMP;
  24408     RECOMP_BACKEDGE();
  24409     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  24410 L_3803484D:
  24411     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  24412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  24413     _cf = 0;
  24414     _flag_k = FK_TEST;
  24415     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  24416 L_38034851:
  24417     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  24418     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  24419 L_38034856:
  24420     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  24421     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  24422     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  24423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24424     _flag_k = FK_CMP;
  24425     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  24426     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  24427 L_38034860:
  24428     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  24429     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  24430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24431     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  24432     _flag_k = FK_CMP;
  24433     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  24434 L_38034868:
  24435     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  24436     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  24437     _cf = 0;
  24438     _flag_k = FK_TEST;
  24439     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  24440 L_3803486C:
  24441     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  24442     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  24443 L_38034870:
  24444     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  24445     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24446     esi = esi + 4; /* 0x38034870: add esi, 4 */
  24447     _flag_k = FK_ADD;
  24448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  24449     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24450     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  24451     _flag_k = FK_ADD;
  24452     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  24453     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  24454     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24455     _flag_k = FK_CMP;
  24456     RECOMP_BACKEDGE();
  24457     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  24458 L_3803487A:
  24459     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  24460 L_3803487D:
  24461     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  24462     PUSH32(esp, eax); /* 0x38034880: push eax */
  24463     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  24464     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  24465     RECOMP_FLAGS_IN();
  24466     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  24467     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  24468     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  24469     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  24470     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  24471     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24472     esp = esp + 4; /* 0x38034895: add esp, 4 */
  24473     _flag_k = FK_ADD;
  24474     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  24475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  24476     _cf = 0;
  24477     _flag_k = FK_TEST;
  24478     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  24479     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  24480 L_3803489F:
  24481     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  24482     eax = 0; /* 0x3803489F: xor eax, eax */
  24483     _cf = 0;
  24484     _flag_k = FK_TEST;
  24485     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  24486     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  24487     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  24488     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  24489 L_380348B0:
  24490     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  24491     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  24492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24493     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  24494     _flag_k = FK_CMP;
  24495     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  24496     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24497     eax = (uint32_t)((int32_t)eax >> 2u);
  24498     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  24499     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  24500     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  24501     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  24502 L_380348C7:
  24503     ecx = eax; /* 0x380348C7: mov ecx, eax */
  24504     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  24505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24506     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  24507     _flag_k = FK_CMP;
  24508     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  24509     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24510     ecx = (uint32_t)((int32_t)ecx >> 2u);
  24511     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  24512     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  24513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24514     _flag_k = FK_CMP;
  24515     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  24516 L_380348D3:
  24517     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  24518     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  24519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24520     _flag_k = FK_CMP;
  24521     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  24522     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  24523 L_380348DA:
  24524     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  24525 L_380348DD:
  24526     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  24527     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  24528     _cf = 0;
  24529     _flag_k = FK_TEST;
  24530     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  24531 L_380348E1:
  24532     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  24533     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  24534     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  24535 L_380348E8:
  24536     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  24537     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24538     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  24539     _flag_k = FK_ADD;
  24540     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  24541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24542     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  24543     _flag_k = FK_ADD;
  24544     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  24545     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  24546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24547     _flag_k = FK_CMP;
  24548     RECOMP_BACKEDGE();
  24549     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  24550 L_380348F2:
  24551     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  24552     edx = ecx; /* 0x380348F5: mov edx, ecx */
  24553     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  24554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24555     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  24556     _flag_k = FK_CMP;
  24557     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  24558     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24559     edx = (uint32_t)((int32_t)edx >> 2u);
  24560     eax = 1; /* 0x380348FC: mov eax, 1 */
  24561     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  24562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24563     eax = eax - edx; /* 0x38034901: sub eax, edx */
  24564     _flag_k = FK_CMP;
  24565     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  24566     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  24567 L_38034908:
  24568     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  24569     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  24570     _cf = 0;
  24571     _flag_k = FK_TEST;
  24572     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  24573 L_3803490C:
  24574     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  24575 L_3803490E:
  24576     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  24577     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24578     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  24579     _flag_k = FK_ADD;
  24580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  24581     eax = eax - 1; /* 0x38034911: dec eax */
  24582     _flag_k = FK_DEC;
  24583     RECOMP_BACKEDGE();
  24584     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  24585 L_38034914:
  24586     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  24587     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  24588     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  24589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24590     _flag_k = FK_CMP;
  24591     eax = esi; /* 0x38034919: mov eax, esi */
  24592     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  24593 L_3803491D:
  24594     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  24595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  24596     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24597     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  24598     _flag_k = FK_ADD;
  24599     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  24600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  24601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24602     _flag_k = FK_CMP;
  24603     RECOMP_BACKEDGE();
  24604     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  24605 L_38034926:
  24606     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  24607 L_38034928:
  24608     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  24609     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  24610     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  24611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24612     _flag_k = FK_CMP;
  24613     edx = eax; /* 0x3803492D: mov edx, eax */
  24614     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  24615     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  24616 L_38034934:
  24617     /* test edx, edx */ /* 0x38034934: test edx, edx */
  24618     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  24619     _cf = 0;
  24620     _flag_k = FK_TEST;
  24621     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  24622 L_38034938:
  24623     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  24624     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  24625     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  24626 L_3803493F:
  24627     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  24628     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24629     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  24630     _flag_k = FK_ADD;
  24631     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  24632     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24633     edx = edx + 4; /* 0x38034942: add edx, 4 */
  24634     _flag_k = FK_ADD;
  24635     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  24636     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  24637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24638     _flag_k = FK_CMP;
  24639     RECOMP_BACKEDGE();
  24640     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  24641 L_38034949:
  24642     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  24643     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  24644     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  24645     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  24646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24647     _flag_k = FK_CMP;
  24648     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  24649 L_38034953:
  24650     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  24651     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  24652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24653     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  24654     _flag_k = FK_CMP;
  24655     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  24656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24657     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  24658     _flag_k = FK_CMP;
  24659     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  24660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  24661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24662     _flag_k = FK_CMP;
  24663     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  24664     RECOMP_BACKEDGE();
  24665     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  24666 L_38034962:
  24667     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  24668     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  24669     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  24670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24671     _flag_k = FK_CMP;
  24672     eax = esi; /* 0x38034967: mov eax, esi */
  24673     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  24674 L_3803496B:
  24675     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  24676 L_3803496E:
  24677     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  24678     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  24679     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24680     eax = eax + 4; /* 0x38034970: add eax, 4 */
  24681     _flag_k = FK_ADD;
  24682     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  24683     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  24684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24685     _flag_k = FK_CMP;
  24686     RECOMP_BACKEDGE();
  24687     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  24688 L_38034977:
  24689     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  24690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24691     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  24692     _flag_k = FK_ADD;
  24693 L_3803497B:
  24694     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  24695     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  24696     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  24697     eax = eax + 1; /* 0x38034981: inc eax */
  24698     _flag_k = FK_INC;
  24699     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  24700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  24701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24702     _flag_k = FK_CMP;
  24703     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  24704     RECOMP_BACKEDGE();
  24705     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  24706 L_3803498D:
  24707     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  24708     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  24709     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  24710     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  24711     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  24712     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  24713     esp = ebp; /* 0x3803499D: mov esp, ebp */
  24714     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  24715     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  24716     RECOMP_REGS_OUT();
  24717 }
  24718 
  24719 void sub_380343BC(void) {
  24720     int _fpu_cmp = 0;
  24721     uint32_t _cf = 0;
  24722     int _df = 1;
  24723     uint32_t _flag_k = FK_NONE;
  24724     uint32_t _flag_a = 0, _flag_b = 0;
  24725     uint32_t _itail_tgt = 0;
  24726     RECOMP_REGS_LOCALS
  24727     RECOMP_ENTER(0x380343BCu);
  24728 
  24729     goto L_380343BC;
  24730 L_380342D4:
  24731     ecx = MEM32(eax + (-0x4)); /* 0x380342D4: mov ecx, dword ptr [eax - 4] */
  24732     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  24733     ecx = ecx & 1; /* 0x380342D7: and ecx, 1 */
  24734     _cf = 0;
  24735     _flag_k = FK_TEST;
  24736     /* cmp LO8(ecx), 1 */ /* 0x380342DA: cmp cl, 1 */
  24737     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  24738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24739     _flag_k = FK_NARROW(FK_CMP, 24);
  24740     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342DD: je 0x38034490 */
  24741 L_380342E3:
  24742     edx = MEM32(eax); /* 0x380342E3: mov edx, dword ptr [eax] */
  24743     /* cmp edx, 3 */ /* 0x380342E5: cmp edx, 3 */
  24744     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3);
  24745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24746     _flag_k = FK_CMP;
  24747     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342E8: je 0x38034490 */
  24748 L_380342EE:
  24749     /* test edx, edx */ /* 0x380342EE: test edx, edx */
  24750     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  24751     _cf = 0;
  24752     _flag_k = FK_TEST;
  24753     MEM32(ebp + (-0xA0)) = 0; /* 0x380342F0: mov dword ptr [ebp - 0xa0], 0 */
  24754     ecx = MEM32(ebp + (-0xA0)); /* 0x380342FA: mov ecx, dword ptr [ebp - 0xa0] */
  24755     MEM32(ebp + (-0x24)) = ecx; /* 0x38034300: mov dword ptr [ebp - 0x24], ecx */
  24756     MEM32(ebp + (-0x9C)) = 0; /* 0x38034303: mov dword ptr [ebp - 0x9c], 0 */
  24757     ecx = MEM32(ebp + (-0x9C)); /* 0x3803430D: mov ecx, dword ptr [ebp - 0x9c] */
  24758     MEM32(ebp + (-0x98)) = 0; /* 0x38034313: mov dword ptr [ebp - 0x98], 0 */
  24759     MEM32(ebp + (-0x20)) = ecx; /* 0x3803431D: mov dword ptr [ebp - 0x20], ecx */
  24760     ecx = MEM32(ebp + (-0x98)); /* 0x38034320: mov ecx, dword ptr [ebp - 0x98] */
  24761     MEM32(ebp + (-0x1C)) = ecx; /* 0x38034326: mov dword ptr [ebp - 0x1c], ecx */
  24762     if (TEST_Z(_flag_a, _flag_b)) goto L_38034374; /* 0x38034329: jbe 0x38034374 */
  24763 L_3803432B:
  24764     ecx = MEM32(eax + 0x8); /* 0x3803432B: mov ecx, dword ptr [eax + 8] */
  24765     esi = MEM32(eax + 0xC); /* 0x3803432E: mov esi, dword ptr [eax + 0xc] */
  24766     ebx = MEM32(eax + 0x4); /* 0x38034331: mov ebx, dword ptr [eax + 4] */
  24767     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  24768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24769     esi = esi - ecx; /* 0x38034334: sub esi, ecx */
  24770     _flag_k = FK_CMP;
  24771     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
  24772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24773     ebx = ebx - ecx; /* 0x38034336: sub ebx, ecx */
  24774     _flag_k = FK_CMP;
  24775     MEM32(ebp + (-0x3C)) = ebx; /* 0x38034338: mov dword ptr [ebp - 0x3c], ebx */
  24776     MEM32(ebp + (-0x28)) = edx; /* 0x3803433B: mov dword ptr [ebp - 0x28], edx */
  24777 L_3803433E:
  24778     fp_push(*(float*)&MEM32(esi + ecx)); /* 0x3803433E: fld dword ptr [esi + ecx] */
  24779     ebx = MEM32(ebp + (-0x3C)); /* 0x38034341: mov ebx, dword ptr [ebp - 0x3c] */
  24780     fp_push(*(float*)&MEM32(ecx)); /* 0x38034344: fld dword ptr [ecx] */
  24781     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  24782     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24783     ecx = ecx + 4; /* 0x38034346: add ecx, 4 */
  24784     _flag_k = FK_ADD;
  24785     fp_push(*(float*)&MEM32(ebx + ecx + (-0x4))); /* 0x38034349: fld dword ptr [ebx + ecx - 4] */
  24786     ebx = MEM32(ebp + (-0x28)); /* 0x3803434D: mov ebx, dword ptr [ebp - 0x28] */
  24787     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034350: fld dword ptr [ebp - 0x24] */
  24788     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  24789     ebx = ebx - 1; /* 0x38034353: dec ebx */
  24790     _flag_k = FK_DEC;
  24791     _st[0] += _st[1]; /* 0x38034354: fadd st(1) */
  24792     MEM32(ebp + (-0x28)) = ebx; /* 0x38034356: mov dword ptr [ebp - 0x28], ebx */
  24793     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38034359: fstp dword ptr [ebp - 0x24] */
  24794     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803435C: fstp st(0) */
  24795     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3803435E: fld dword ptr [ebp - 0x20] */
  24796     _st[0] += _st[1]; /* 0x38034361: fadd st(1) */
  24797     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38034363: fstp dword ptr [ebp - 0x20] */
  24798     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034366: fstp st(0) */
  24799     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38034368: fld dword ptr [ebp - 0x1c] */
  24800     _st[0] += _st[1]; /* 0x3803436B: fadd st(1) */
  24801     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803436D: fstp dword ptr [ebp - 0x1c] */
  24802     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034370: fstp st(0) */
  24803     RECOMP_BACKEDGE();
  24804     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3803433E; /* 0x38034372: jne 0x3803433e */
  24805 L_38034374:
  24806     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  24807     ecx = 0; /* 0x38034374: xor ecx, ecx */
  24808     _cf = 0;
  24809     _flag_k = FK_TEST;
  24810     /* cmp edx, ecx */ /* 0x38034376: cmp edx, ecx */
  24811     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  24812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24813     _flag_k = FK_CMP;
  24814     MEM32(ebp + (-0x44)) = edx; /* 0x38034378: mov dword ptr [ebp - 0x44], edx */
  24815     MEM32(ebp + (-0x40)) = ecx; /* 0x3803437B: mov dword ptr [ebp - 0x40], ecx */
  24816     fp_push_i64((int64_t)MEM64(ebp + (-0x44))); /* 0x3803437E: fild qword ptr [ebp - 0x44] */
  24817     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034381: fld dword ptr [ebp - 0x24] */
  24818     esi = MEM32(ebp + (-0x24)); /* 0x38034384: mov esi, dword ptr [ebp - 0x24] */
  24819     MEM32(ebp + (-0x18)) = esi; /* 0x38034387: mov dword ptr [ebp - 0x18], esi */
  24820     _st[0] /= _st[1]; /* 0x3803438A: fdiv st(1) */
  24821     esi = MEM32(ebp + (-0x20)); /* 0x3803438C: mov esi, dword ptr [ebp - 0x20] */
  24822     MEM32(ebp + (-0x14)) = esi; /* 0x3803438F: mov dword ptr [ebp - 0x14], esi */
  24823     esi = MEM32(ebp + (-0x1C)); /* 0x38034392: mov esi, dword ptr [ebp - 0x1c] */
  24824     MEM32(ebp + (-0x10)) = esi; /* 0x38034395: mov dword ptr [ebp - 0x10], esi */
  24825     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38034398: fstp dword ptr [ebp - 0x18] */
  24826     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803439B: fld dword ptr [ebp - 0x14] */
  24827     _st[0] /= _st[1]; /* 0x3803439E: fdiv st(1) */
  24828     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380343A0: fstp dword ptr [ebp - 0x14] */
  24829     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380343A3: fld dword ptr [ebp - 0x10] */
  24830     _st[0] /= _st[1]; /* 0x380343A6: fdiv st(1) */
  24831     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380343A8: fstp dword ptr [ebp - 0x10] */
  24832     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380343AB: fstp st(0) */
  24833     if (CMP_BE(_flag_a, _flag_b)) goto L_3803459F; /* 0x380343AD: jbe 0x3803459f */
  24834 L_380343B3:
  24835     edx = MEM32(ebp + 0xC); /* 0x380343B3: mov edx, dword ptr [ebp + 0xc] */
  24836     edx = edx + edx * 4; /* 0x380343B6: lea edx, [edx + edx*4] */
  24837     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380343B9: shl edx, 3 */
  24838     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24839     edx = edx << 3u; /* 0x380343B9: shl edx, 3 */
  24840 L_380343BC:
  24841     ebx = MEM32(edi + 0x90); /* 0x380343BC: mov ebx, dword ptr [edi + 0x90] */
  24842     esi = eax + (-0x4); /* 0x380343C2: lea esi, [eax - 4] */
  24843     esi = MEM32(esi); /* 0x380343C5: mov esi, dword ptr [esi] */
  24844     MEM32(ebx + edx + 0x24) = esi; /* 0x380343C7: mov dword ptr [ebx + edx + 0x24], esi */
  24845     esi = MEM32(edi + 0x90); /* 0x380343CB: mov esi, dword ptr [edi + 0x90] */
  24846     ebx = MEM32(ebp + (-0x18)); /* 0x380343D1: mov ebx, dword ptr [ebp - 0x18] */
  24847     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  24848     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24849     esi = esi + edx; /* 0x380343D4: add esi, edx */
  24850     _flag_k = FK_ADD;
  24851     /* test ecx, ecx */ /* 0x380343D6: test ecx, ecx */
  24852     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  24853     _cf = 0;
  24854     _flag_k = FK_TEST;
  24855     MEM32(esi) = ebx; /* 0x380343D8: mov dword ptr [esi], ebx */
  24856     ebx = MEM32(ebp + (-0x14)); /* 0x380343DA: mov ebx, dword ptr [ebp - 0x14] */
  24857     MEM32(esi + 0x4) = ebx; /* 0x380343DD: mov dword ptr [esi + 4], ebx */
  24858     ebx = MEM32(ebp + (-0x10)); /* 0x380343E0: mov ebx, dword ptr [ebp - 0x10] */
  24859     MEM32(esi + 0x8) = ebx; /* 0x380343E3: mov dword ptr [esi + 8], ebx */
  24860     if (TEST_NZ(_flag_a, _flag_b)) goto L_380343ED; /* 0x380343E6: jne 0x380343ed */
  24861 L_380343E8:
  24862     esi = MEM32(eax); /* 0x380343E8: mov esi, dword ptr [eax] */
  24863     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  24864     esi = esi - 1; /* 0x380343EA: dec esi */
  24865     _flag_k = FK_DEC;
  24866     goto L_380343F0; /* 0x380343EB: jmp 0x380343f0 */
  24867 L_380343ED:
  24868     esi = ecx + (-0x1); /* 0x380343ED: lea esi, [ecx - 1] */
  24869 L_380343F0:
  24870     ebx = MEM32(eax + 0xC); /* 0x380343F0: mov ebx, dword ptr [eax + 0xc] */
  24871     fp_push(*(float*)&MEM32(ebx + esi * 4)); /* 0x380343F3: fld dword ptr [ebx + esi*4] */
  24872     ebx = esi; /* 0x380343F6: mov ebx, esi */
  24873     MEM32(ebp + (-0x34)) = esi; /* 0x380343F8: mov dword ptr [ebp - 0x34], esi */
  24874     esi = MEM32(eax + 0x8); /* 0x380343FB: mov esi, dword ptr [eax + 8] */
  24875     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x380343FE: fld dword ptr [esi + ebx*4] */
  24876     esi = MEM32(eax + 0x4); /* 0x38034401: mov esi, dword ptr [eax + 4] */
  24877     ebx = MEM32(ebp + (-0x34)); /* 0x38034404: mov ebx, dword ptr [ebp - 0x34] */
  24878     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x38034407: fld dword ptr [esi + ebx*4] */
  24879     esi = MEM32(edi + 0x90); /* 0x3803440A: mov esi, dword ptr [edi + 0x90] */
  24880     esi = esi + edx + 0xC; /* 0x38034410: lea esi, [esi + edx + 0xc] */
  24881     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38034414: fstp dword ptr [ebp - 0x7c] */
  24882     ebx = MEM32(ebp + (-0x7C)); /* 0x38034417: mov ebx, dword ptr [ebp - 0x7c] */
  24883     MEM32(esi) = ebx; /* 0x3803441A: mov dword ptr [esi], ebx */
  24884     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x3803441C: fstp dword ptr [ebp - 0x78] */
  24885     ebx = MEM32(ebp + (-0x78)); /* 0x3803441F: mov ebx, dword ptr [ebp - 0x78] */
  24886     MEM32(esi + 0x4) = ebx; /* 0x38034422: mov dword ptr [esi + 4], ebx */
  24887     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38034425: fstp dword ptr [ebp - 0x74] */
  24888     ebx = MEM32(ebp + (-0x74)); /* 0x38034428: mov ebx, dword ptr [ebp - 0x74] */
  24889     MEM32(esi + 0x8) = ebx; /* 0x3803442B: mov dword ptr [esi + 8], ebx */
  24890     esi = MEM32(eax + 0xC); /* 0x3803442E: mov esi, dword ptr [eax + 0xc] */
  24891     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034431: fld dword ptr [esi + ecx*4] */
  24892     esi = MEM32(eax + 0x8); /* 0x38034434: mov esi, dword ptr [eax + 8] */
  24893     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034437: fld dword ptr [esi + ecx*4] */
  24894     esi = MEM32(eax + 0x4); /* 0x3803443A: mov esi, dword ptr [eax + 4] */
  24895     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x3803443D: fld dword ptr [esi + ecx*4] */
  24896     esi = MEM32(edi + 0x90); /* 0x38034440: mov esi, dword ptr [edi + 0x90] */
  24897     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x38034446: fstp dword ptr [ebp - 0x94] */
  24898     ebx = MEM32(ebp + (-0x94)); /* 0x3803444C: mov ebx, dword ptr [ebp - 0x94] */
  24899     esi = esi + edx + 0x18; /* 0x38034452: lea esi, [esi + edx + 0x18] */
  24900     MEM32(esi) = ebx; /* 0x38034456: mov dword ptr [esi], ebx */
  24901     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x38034458: fstp dword ptr [ebp - 0x90] */
  24902     ebx = MEM32(ebp + (-0x90)); /* 0x3803445E: mov ebx, dword ptr [ebp - 0x90] */
  24903     MEM32(esi + 0x4) = ebx; /* 0x38034464: mov dword ptr [esi + 4], ebx */
  24904     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x38034467: fstp dword ptr [ebp - 0x8c] */
  24905     ebx = MEM32(ebp + (-0x8C)); /* 0x3803446D: mov ebx, dword ptr [ebp - 0x8c] */
  24906     MEM32(esi + 0x8) = ebx; /* 0x38034473: mov dword ptr [esi + 8], ebx */
  24907     ebx = MEM32(ebp + 0xC); /* 0x38034476: mov ebx, dword ptr [ebp + 0xc] */
  24908     esi = MEM32(eax); /* 0x38034479: mov esi, dword ptr [eax] */
  24909     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  24910     ebx = ebx + 1; /* 0x3803447B: inc ebx */
  24911     _flag_k = FK_INC;
  24912     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  24913     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24914     edx = edx + 0x28u; /* 0x3803447C: add edx, 0x28 */
  24915     _flag_k = FK_ADD;
  24916     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  24917     ecx = ecx + 1; /* 0x3803447F: inc ecx */
  24918     _flag_k = FK_INC;
  24919     /* cmp ecx, esi */ /* 0x38034480: cmp ecx, esi */
  24920     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  24921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  24922     _flag_k = FK_CMP;
  24923     MEM32(ebp + 0xC) = ebx; /* 0x38034482: mov dword ptr [ebp + 0xc], ebx */
  24924     RECOMP_BACKEDGE();
  24925     if (CMP_B(_flag_a, _flag_b)) goto L_380343BC; /* 0x38034485: jb 0x380343bc */
  24926 L_3803448B:
  24927     goto L_3803459F; /* 0x3803448B: jmp 0x3803459f */
  24928 L_38034490:
  24929     ecx = MEM32(eax + 0x10); /* 0x38034490: mov ecx, dword ptr [eax + 0x10] */
  24930     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  24931     esi = 0; /* 0x38034493: xor esi, esi */
  24932     _cf = 0;
  24933     _flag_k = FK_TEST;
  24934     /* test ecx, ecx */ /* 0x38034495: test ecx, ecx */
  24935     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  24936     _cf = 0;
  24937     _flag_k = FK_TEST;
  24938     if (TEST_Z(_flag_a, _flag_b)) goto L_3803459F; /* 0x38034497: jbe 0x3803459f */
  24939 L_3803449D:
  24940     edx = MEM32(ebp + 0xC); /* 0x3803449D: mov edx, dword ptr [ebp + 0xc] */
  24941     edx = edx + edx * 4; /* 0x380344A0: lea edx, [edx + edx*4] */
  24942     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380344A3: shl edx, 3 */
  24943     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24944     edx = edx << 3u; /* 0x380344A3: shl edx, 3 */
  24945 L_380344A6:
  24946     ecx = MEM32(edi + 0x90); /* 0x380344A6: mov ecx, dword ptr [edi + 0x90] */
  24947     ebx = MEM32(eax + (-0x4)); /* 0x380344AC: mov ebx, dword ptr [eax - 4] */
  24948     MEM32(ecx + edx + 0x24) = ebx; /* 0x380344AF: mov dword ptr [ecx + edx + 0x24], ebx */
  24949     ecx = MEM32(eax + 0x14); /* 0x380344B3: mov ecx, dword ptr [eax + 0x14] */
  24950     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  24951     ebx = 0; /* 0x380344B6: xor ebx, ebx */
  24952     _cf = 0;
  24953     _flag_k = FK_TEST;
  24954     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344B8: mov bx, word ptr [ecx + esi*2] */
  24955     ecx = ebx; /* 0x380344BC: mov ecx, ebx */
  24956     ebx = MEM32(eax + 0xC); /* 0x380344BE: mov ebx, dword ptr [eax + 0xc] */
  24957     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x380344C1: shl ecx, 2 */
  24958     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24959     ecx = ecx << 2u; /* 0x380344C1: shl ecx, 2 */
  24960     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344C4: fld dword ptr [ecx + ebx] */
  24961     ebx = MEM32(eax + 0x8); /* 0x380344C7: mov ebx, dword ptr [eax + 8] */
  24962     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344CA: fld dword ptr [ecx + ebx] */
  24963     ebx = MEM32(eax + 0x4); /* 0x380344CD: mov ebx, dword ptr [eax + 4] */
  24964     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344D0: fld dword ptr [ecx + ebx] */
  24965     ecx = MEM32(edi + 0x90); /* 0x380344D3: mov ecx, dword ptr [edi + 0x90] */
  24966     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  24967     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  24968     ecx = ecx + edx; /* 0x380344D9: add ecx, edx */
  24969     _flag_k = FK_ADD;
  24970     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x380344DB: fstp dword ptr [ebp - 0x70] */
  24971     ebx = MEM32(ebp + (-0x70)); /* 0x380344DE: mov ebx, dword ptr [ebp - 0x70] */
  24972     MEM32(ecx) = ebx; /* 0x380344E1: mov dword ptr [ecx], ebx */
  24973     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x380344E3: fstp dword ptr [ebp - 0x6c] */
  24974     ebx = MEM32(ebp + (-0x6C)); /* 0x380344E6: mov ebx, dword ptr [ebp - 0x6c] */
  24975     MEM32(ecx + 0x4) = ebx; /* 0x380344E9: mov dword ptr [ecx + 4], ebx */
  24976     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x380344EC: fstp dword ptr [ebp - 0x68] */
  24977     ebx = MEM32(ebp + (-0x68)); /* 0x380344EF: mov ebx, dword ptr [ebp - 0x68] */
  24978     MEM32(ecx + 0x8) = ebx; /* 0x380344F2: mov dword ptr [ecx + 8], ebx */
  24979     ecx = MEM32(eax + 0x18); /* 0x380344F5: mov ecx, dword ptr [eax + 0x18] */
  24980     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  24981     ebx = 0; /* 0x380344F8: xor ebx, ebx */
  24982     _cf = 0;
  24983     _flag_k = FK_TEST;
  24984     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344FA: mov bx, word ptr [ecx + esi*2] */
  24985     ecx = ebx; /* 0x380344FE: mov ecx, ebx */
  24986     ebx = MEM32(eax + 0xC); /* 0x38034500: mov ebx, dword ptr [eax + 0xc] */
  24987     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034503: shl ecx, 2 */
  24988     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  24989     ecx = ecx << 2u; /* 0x38034503: shl ecx, 2 */
  24990     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034506: fld dword ptr [ecx + ebx] */
  24991     ebx = MEM32(eax + 0x8); /* 0x38034509: mov ebx, dword ptr [eax + 8] */
  24992     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803450C: fld dword ptr [ecx + ebx] */
  24993     ebx = MEM32(eax + 0x4); /* 0x3803450F: mov ebx, dword ptr [eax + 4] */
  24994     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034512: fld dword ptr [ecx + ebx] */
  24995     ecx = MEM32(edi + 0x90); /* 0x38034515: mov ecx, dword ptr [edi + 0x90] */
  24996     ecx = ecx + edx + 0xC; /* 0x3803451B: lea ecx, [ecx + edx + 0xc] */
  24997     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x3803451F: fstp dword ptr [ebp - 0x88] */
  24998     ebx = MEM32(ebp + (-0x88)); /* 0x38034525: mov ebx, dword ptr [ebp - 0x88] */
  24999     MEM32(ecx) = ebx; /* 0x3803452B: mov dword ptr [ecx], ebx */
  25000     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3803452D: fstp dword ptr [ebp - 0x84] */
  25001     ebx = MEM32(ebp + (-0x84)); /* 0x38034533: mov ebx, dword ptr [ebp - 0x84] */
  25002     MEM32(ecx + 0x4) = ebx; /* 0x38034539: mov dword ptr [ecx + 4], ebx */
  25003     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803453C: fstp dword ptr [ebp - 0x80] */
  25004     ebx = MEM32(ebp + (-0x80)); /* 0x3803453F: mov ebx, dword ptr [ebp - 0x80] */
  25005     MEM32(ecx + 0x8) = ebx; /* 0x38034542: mov dword ptr [ecx + 8], ebx */
  25006     ecx = MEM32(eax + 0x1C); /* 0x38034545: mov ecx, dword ptr [eax + 0x1c] */
  25007     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  25008     ebx = 0; /* 0x38034548: xor ebx, ebx */
  25009     _cf = 0;
  25010     _flag_k = FK_TEST;
  25011     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x3803454A: mov bx, word ptr [ecx + esi*2] */
  25012     ecx = ebx; /* 0x3803454E: mov ecx, ebx */
  25013     ebx = MEM32(eax + 0xC); /* 0x38034550: mov ebx, dword ptr [eax + 0xc] */
  25014     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034553: shl ecx, 2 */
  25015     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25016     ecx = ecx << 2u; /* 0x38034553: shl ecx, 2 */
  25017     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034556: fld dword ptr [ecx + ebx] */
  25018     ebx = MEM32(eax + 0x8); /* 0x38034559: mov ebx, dword ptr [eax + 8] */
  25019     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803455C: fld dword ptr [ecx + ebx] */
  25020     ebx = MEM32(eax + 0x4); /* 0x3803455F: mov ebx, dword ptr [eax + 4] */
  25021     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034562: fld dword ptr [ecx + ebx] */
  25022     ecx = MEM32(edi + 0x90); /* 0x38034565: mov ecx, dword ptr [edi + 0x90] */
  25023     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3803456B: fstp dword ptr [ebp - 0x54] */
  25024     ebx = MEM32(ebp + (-0x54)); /* 0x3803456E: mov ebx, dword ptr [ebp - 0x54] */
  25025     ecx = ecx + edx + 0x18; /* 0x38034571: lea ecx, [ecx + edx + 0x18] */
  25026     MEM32(ecx) = ebx; /* 0x38034575: mov dword ptr [ecx], ebx */
  25027     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x38034577: fstp dword ptr [ebp - 0x50] */
  25028     ebx = MEM32(ebp + (-0x50)); /* 0x3803457A: mov ebx, dword ptr [ebp - 0x50] */
  25029     MEM32(ecx + 0x4) = ebx; /* 0x3803457D: mov dword ptr [ecx + 4], ebx */
  25030     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x38034580: fstp dword ptr [ebp - 0x4c] */
  25031     ebx = MEM32(ebp + (-0x4C)); /* 0x38034583: mov ebx, dword ptr [ebp - 0x4c] */
  25032     MEM32(ecx + 0x8) = ebx; /* 0x38034586: mov dword ptr [ecx + 8], ebx */
  25033     ebx = MEM32(ebp + 0xC); /* 0x38034589: mov ebx, dword ptr [ebp + 0xc] */
  25034     ecx = MEM32(eax + 0x10); /* 0x3803458C: mov ecx, dword ptr [eax + 0x10] */
  25035     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  25036     ebx = ebx + 1; /* 0x3803458F: inc ebx */
  25037     _flag_k = FK_INC;
  25038     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  25039     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25040     edx = edx + 0x28u; /* 0x38034590: add edx, 0x28 */
  25041     _flag_k = FK_ADD;
  25042     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  25043     esi = esi + 1; /* 0x38034593: inc esi */
  25044     _flag_k = FK_INC;
  25045     /* cmp esi, ecx */ /* 0x38034594: cmp esi, ecx */
  25046     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  25047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25048     _flag_k = FK_CMP;
  25049     MEM32(ebp + 0xC) = ebx; /* 0x38034596: mov dword ptr [ebp + 0xc], ebx */
  25050     RECOMP_BACKEDGE();
  25051     if (CMP_B(_flag_a, _flag_b)) goto L_380344A6; /* 0x38034599: jb 0x380344a6 */
  25052 L_3803459F:
  25053     ecx = MEM32(ebp + (-0x2C)); /* 0x3803459F: mov ecx, dword ptr [ebp - 0x2c] */
  25054     edx = MEM32(ebp + (-0x30)); /* 0x380345A2: mov edx, dword ptr [ebp - 0x30] */
  25055     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  25056     ecx = ecx + 1; /* 0x380345A5: inc ecx */
  25057     _flag_k = FK_INC;
  25058     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  25059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25060     eax = eax + 0x24u; /* 0x380345A6: add eax, 0x24 */
  25061     _flag_k = FK_ADD;
  25062     /* cmp ecx, edx */ /* 0x380345A9: cmp ecx, edx */
  25063     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  25064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25065     _flag_k = FK_CMP;
  25066     MEM32(ebp + (-0x2C)) = ecx; /* 0x380345AB: mov dword ptr [ebp - 0x2c], ecx */
  25067     RECOMP_BACKEDGE();
  25068     if (CMP_B(_flag_a, _flag_b)) goto L_380342D4; /* 0x380345AE: jb 0x380342d4 */
  25069 L_380345B4:
  25070     eax = MEM32(ebp + 0xC); /* 0x380345B4: mov eax, dword ptr [ebp + 0xc] */
  25071     /* cmp eax, MEM32(edi + 0x8C) */ /* 0x380345B7: cmp eax, dword ptr [edi + 0x8c] */
  25072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8C));
  25073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25074     _flag_k = FK_CMP;
  25075     if (CMP_AE(_flag_a, _flag_b)) goto L_380345CD; /* 0x380345BD: jae 0x380345cd */
  25076 L_380345BF:
  25077     MEM32(edi + 0x8C) = eax; /* 0x380345BF: mov dword ptr [edi + 0x8c], eax */
  25078     goto L_380345CD; /* 0x380345C5: jmp 0x380345cd */
  25079 L_380345CD:
  25080     eax = MEM32(edi + 0x8C); /* 0x380345CD: mov eax, dword ptr [edi + 0x8c] */
  25081     /* test eax, eax */ /* 0x380345D3: test eax, eax */
  25082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25083     _cf = 0;
  25084     _flag_k = FK_TEST;
  25085     if (TEST_Z(_flag_a, _flag_b)) goto L_380345EA; /* 0x380345D5: je 0x380345ea */
  25086 L_380345D7:
  25087     edx = MEM32(edi + 0x90); /* 0x380345D7: mov edx, dword ptr [edi + 0x90] */
  25088     PUSH32(esp, edx); /* 0x380345DD: push edx */
  25089     PUSH32(esp, eax); /* 0x380345DE: push eax */
  25090     eax = MEM32(edi + 0x44); /* 0x380345DF: mov eax, dword ptr [edi + 0x44] */
  25091     PUSH32(esp, eax); /* 0x380345E2: push eax */
  25092     ecx = edi; /* 0x380345E3: mov ecx, edi */
  25093     RECOMP_ICALL(0x3803F2F0u); /* 0x380345E5: call 0x3803f2f0 */ /* not lifted */
  25094     RECOMP_FLAGS_IN();
  25095 L_380345EA:
  25096     eax = MEM32(ebp + (-0x30)); /* 0x380345EA: mov eax, dword ptr [ebp - 0x30] */
  25097     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  25098     esi = 0; /* 0x380345ED: xor esi, esi */
  25099     _cf = 0;
  25100     _flag_k = FK_TEST;
  25101     /* test eax, eax */ /* 0x380345EF: test eax, eax */
  25102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25103     _cf = 0;
  25104     _flag_k = FK_TEST;
  25105     if (TEST_Z(_flag_a, _flag_b)) goto L_38034663; /* 0x380345F1: jbe 0x38034663 */
  25106 L_380345F3:
  25107     ecx = MEM32(ebp + (-0x38)); /* 0x380345F3: mov ecx, dword ptr [ebp - 0x38] */
  25108     ebx = ecx + 0xC; /* 0x380345F6: lea ebx, [ecx + 0xc] */
  25109 L_380345F9:
  25110     eax = MEM32(ebx + (-0x4)); /* 0x380345F9: mov eax, dword ptr [ebx - 4] */
  25111     /* test eax, eax */ /* 0x380345FC: test eax, eax */
  25112     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25113     _cf = 0;
  25114     _flag_k = FK_TEST;
  25115     if (TEST_Z(_flag_a, _flag_b)) goto L_38034609; /* 0x380345FE: je 0x38034609 */
  25116 L_38034600:
  25117     PUSH32(esp, eax); /* 0x38034600: push eax */
  25118     RECOMP_ICALL(0x3804B4F6u); /* 0x38034601: call 0x3804b4f6 */ /* not lifted */
  25119     RECOMP_FLAGS_IN();
  25120     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25122     esp = esp + 4; /* 0x38034606: add esp, 4 */
  25123     _flag_k = FK_ADD;
  25124 L_38034609:
  25125     eax = MEM32(ebx); /* 0x38034609: mov eax, dword ptr [ebx] */
  25126     /* test eax, eax */ /* 0x3803460B: test eax, eax */
  25127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25128     _cf = 0;
  25129     _flag_k = FK_TEST;
  25130     if (TEST_Z(_flag_a, _flag_b)) goto L_38034618; /* 0x3803460D: je 0x38034618 */
  25131 L_3803460F:
  25132     PUSH32(esp, eax); /* 0x3803460F: push eax */
  25133     RECOMP_ICALL(0x3804B4F6u); /* 0x38034610: call 0x3804b4f6 */ /* not lifted */
  25134     RECOMP_FLAGS_IN();
  25135     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25137     esp = esp + 4; /* 0x38034615: add esp, 4 */
  25138     _flag_k = FK_ADD;
  25139 L_38034618:
  25140     eax = MEM32(ebx + 0x4); /* 0x38034618: mov eax, dword ptr [ebx + 4] */
  25141     /* test eax, eax */ /* 0x3803461B: test eax, eax */
  25142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25143     _cf = 0;
  25144     _flag_k = FK_TEST;
  25145     if (TEST_Z(_flag_a, _flag_b)) goto L_38034628; /* 0x3803461D: je 0x38034628 */
  25146 L_3803461F:
  25147     PUSH32(esp, eax); /* 0x3803461F: push eax */
  25148     RECOMP_ICALL(0x3804B4F6u); /* 0x38034620: call 0x3804b4f6 */ /* not lifted */
  25149     RECOMP_FLAGS_IN();
  25150     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25151     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25152     esp = esp + 4; /* 0x38034625: add esp, 4 */
  25153     _flag_k = FK_ADD;
  25154 L_38034628:
  25155     eax = MEM32(ebx + 0xC); /* 0x38034628: mov eax, dword ptr [ebx + 0xc] */
  25156     /* test eax, eax */ /* 0x3803462B: test eax, eax */
  25157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25158     _cf = 0;
  25159     _flag_k = FK_TEST;
  25160     if (TEST_Z(_flag_a, _flag_b)) goto L_38034638; /* 0x3803462D: je 0x38034638 */
  25161 L_3803462F:
  25162     PUSH32(esp, eax); /* 0x3803462F: push eax */
  25163     RECOMP_ICALL(0x3804B4F6u); /* 0x38034630: call 0x3804b4f6 */ /* not lifted */
  25164     RECOMP_FLAGS_IN();
  25165     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25166     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25167     esp = esp + 4; /* 0x38034635: add esp, 4 */
  25168     _flag_k = FK_ADD;
  25169 L_38034638:
  25170     eax = MEM32(ebx + 0x10); /* 0x38034638: mov eax, dword ptr [ebx + 0x10] */
  25171     /* test eax, eax */ /* 0x3803463B: test eax, eax */
  25172     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25173     _cf = 0;
  25174     _flag_k = FK_TEST;
  25175     if (TEST_Z(_flag_a, _flag_b)) goto L_38034648; /* 0x3803463D: je 0x38034648 */
  25176 L_3803463F:
  25177     PUSH32(esp, eax); /* 0x3803463F: push eax */
  25178     RECOMP_ICALL(0x3804B4F6u); /* 0x38034640: call 0x3804b4f6 */ /* not lifted */
  25179     RECOMP_FLAGS_IN();
  25180     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25181     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25182     esp = esp + 4; /* 0x38034645: add esp, 4 */
  25183     _flag_k = FK_ADD;
  25184 L_38034648:
  25185     eax = MEM32(ebx + 0x14); /* 0x38034648: mov eax, dword ptr [ebx + 0x14] */
  25186     /* test eax, eax */ /* 0x3803464B: test eax, eax */
  25187     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25188     _cf = 0;
  25189     _flag_k = FK_TEST;
  25190     if (TEST_Z(_flag_a, _flag_b)) goto L_38034658; /* 0x3803464D: je 0x38034658 */
  25191 L_3803464F:
  25192     PUSH32(esp, eax); /* 0x3803464F: push eax */
  25193     RECOMP_ICALL(0x3804B4F6u); /* 0x38034650: call 0x3804b4f6 */ /* not lifted */
  25194     RECOMP_FLAGS_IN();
  25195     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25196     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25197     esp = esp + 4; /* 0x38034655: add esp, 4 */
  25198     _flag_k = FK_ADD;
  25199 L_38034658:
  25200     eax = MEM32(ebp + (-0x30)); /* 0x38034658: mov eax, dword ptr [ebp - 0x30] */
  25201     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  25202     esi = esi + 1; /* 0x3803465B: inc esi */
  25203     _flag_k = FK_INC;
  25204     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
  25205     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25206     ebx = ebx + 0x24u; /* 0x3803465C: add ebx, 0x24 */
  25207     _flag_k = FK_ADD;
  25208     /* cmp esi, eax */ /* 0x3803465F: cmp esi, eax */
  25209     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  25210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25211     _flag_k = FK_CMP;
  25212     RECOMP_BACKEDGE();
  25213     if (CMP_B(_flag_a, _flag_b)) goto L_380345F9; /* 0x38034661: jb 0x380345f9 */
  25214 L_38034663:
  25215     edx = MEM32(ebp + (-0x38)); /* 0x38034663: mov edx, dword ptr [ebp - 0x38] */
  25216     PUSH32(esp, edx); /* 0x38034666: push edx */
  25217     RECOMP_ICALL(0x3804B4F6u); /* 0x38034667: call 0x3804b4f6 */ /* not lifted */
  25218     RECOMP_FLAGS_IN();
  25219     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25220     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25221     esp = esp + 4; /* 0x3803466C: add esp, 4 */
  25222     _flag_k = FK_ADD;
  25223     goto L_38034677; /* 0x3803466F: jmp 0x38034677 */
  25224 L_38034677:
  25225     esi = MEM32(edi + 0xC); /* 0x38034677: mov esi, dword ptr [edi + 0xc] */
  25226     ecx = edi; /* 0x3803467A: mov ecx, edi */
  25227     RECOMP_ICALL(0x380303E0u); /* 0x3803467C: call 0x380303e0 */ /* not lifted */
  25228     RECOMP_FLAGS_IN();
  25229     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x38034681: shl eax, 0x10 */
  25230     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25231     eax = eax << 16u; /* 0x38034681: shl eax, 0x10 */
  25232     _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi));
  25233     eax = eax | esi; /* 0x38034684: or eax, esi */
  25234     _cf = 0;
  25235     _flag_k = FK_TEST;
  25236     MEM32(edi + 0x4) = eax; /* 0x38034686: mov dword ptr [edi + 4], eax */
  25237     /* cmp MEM32(edi + 0xAC), 4 */ /* 0x38034689: cmp dword ptr [edi + 0xac], 4 */
  25238     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(4);
  25239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25240     _flag_k = FK_CMP;
  25241     if (CMP_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x38034690: jle 0x3803498d */
  25242 L_38034696:
  25243     ecx = MEM32(ebp + 0x8); /* 0x38034696: mov ecx, dword ptr [ebp + 8] */
  25244     eax = ebp + (-0x3C); /* 0x38034699: lea eax, [ebp - 0x3c] */
  25245     PUSH32(esp, eax); /* 0x3803469C: push eax */
  25246     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803469D: call dword ptr [0x3804e388] */
  25247     RECOMP_FLAGS_IN();
  25248     eax = MEM32(ebp + (-0x3C)); /* 0x380346A3: mov eax, dword ptr [ebp - 0x3c] */
  25249     /* test eax, eax */ /* 0x380346A6: test eax, eax */
  25250     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25251     _cf = 0;
  25252     _flag_k = FK_TEST;
  25253     MEM32(ebp + (-0x2C)) = 0; /* 0x380346A8: mov dword ptr [ebp - 0x2c], 0 */
  25254     if (TEST_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x380346AF: jle 0x3803498d */
  25255 L_380346B5:
  25256     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  25257     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  25258     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  25259     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  25260     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  25261     PUSH32(esp, edx); /* 0x380346C5: push edx */
  25262     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  25263     PUSH32(esp, eax); /* 0x380346C9: push eax */
  25264     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  25265     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  25266     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  25267     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  25268     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  25269     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  25270     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  25271     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  25272     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  25273     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  25274     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  25275     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  25276     RECOMP_FLAGS_IN();
  25277     ecx = eax; /* 0x38034714: mov ecx, eax */
  25278     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  25279     RECOMP_FLAGS_IN();
  25280     ecx = eax; /* 0x38034718: mov ecx, eax */
  25281     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  25282     RECOMP_FLAGS_IN();
  25283     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  25284     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  25285     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  25286     PUSH32(esp, edx); /* 0x38034723: push edx */
  25287     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  25288     PUSH32(esp, eax); /* 0x38034727: push eax */
  25289     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  25290     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  25291     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  25292     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  25293     RECOMP_FLAGS_IN();
  25294     ecx = eax; /* 0x38034730: mov ecx, eax */
  25295     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  25296     RECOMP_FLAGS_IN();
  25297     ecx = eax; /* 0x38034734: mov ecx, eax */
  25298     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  25299     RECOMP_FLAGS_IN();
  25300     ecx = eax; /* 0x38034738: mov ecx, eax */
  25301     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  25302     RECOMP_FLAGS_IN();
  25303     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  25304     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  25305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25306     _flag_k = FK_CMP;
  25307     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  25308 L_38034745:
  25309     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  25310     PUSH32(esp, edx); /* 0x38034748: push edx */
  25311     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  25312     PUSH32(esp, eax); /* 0x3803474C: push eax */
  25313     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  25314     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  25315     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  25316     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  25317     RECOMP_FLAGS_IN();
  25318     ecx = eax; /* 0x38034755: mov ecx, eax */
  25319     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  25320     RECOMP_FLAGS_IN();
  25321     ecx = eax; /* 0x38034759: mov ecx, eax */
  25322     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  25323     RECOMP_FLAGS_IN();
  25324     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  25325 L_3803475F:
  25326     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  25327     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  25328     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  25329     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  25330     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  25331     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  25332 L_38034771:
  25333     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  25334     PUSH32(esp, edx); /* 0x38034774: push edx */
  25335     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  25336     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  25337     RECOMP_FLAGS_IN();
  25338     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  25339     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  25340     fp_pop();
  25341     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  25342     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  25343     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  25344     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  25345     _cf = 0;
  25346     _flag_k = FK_NARROW(FK_TEST, 24);
  25347     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  25348 L_3803478D:
  25349     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  25350 L_38034791:
  25351     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  25352     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  25353     RECOMP_FLAGS_IN();
  25354     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25356     esp = esp + 4; /* 0x38034798: add esp, 4 */
  25357     _flag_k = FK_ADD;
  25358     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  25359     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  25360     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  25361     _cf = 0;
  25362     _flag_k = FK_TEST;
  25363     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  25364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  25365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25366     _flag_k = FK_CMP;
  25367     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  25368     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  25369 L_380347A7:
  25370     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  25371     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  25372     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  25373     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  25374     PUSH32(esp, edx); /* 0x380347B0: push edx */
  25375     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  25376     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  25377     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  25378     PUSH32(esp, edx); /* 0x380347B8: push edx */
  25379     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  25380     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  25381     ecx = eax; /* 0x380347BD: mov ecx, eax */
  25382     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  25383     RECOMP_FLAGS_IN();
  25384     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  25385     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  25386 L_380347C9:
  25387     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  25388 L_380347CC:
  25389     ecx = edi; /* 0x380347CC: mov ecx, edi */
  25390     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  25391     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  25392     RECOMP_FLAGS_IN();
  25393     ebx = eax; /* 0x380347DA: mov ebx, eax */
  25394     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  25395     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  25396     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  25397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25398     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  25399     _flag_k = FK_CMP;
  25400     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  25401     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25402     edx = (uint32_t)((int32_t)edx >> 2u);
  25403     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  25404     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  25405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25406     _flag_k = FK_CMP;
  25407     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  25408     esi = eax; /* 0x380347ED: mov esi, eax */
  25409     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  25410 L_380347F5:
  25411     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  25412     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  25413     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  25414     _cf = 0;
  25415     _flag_k = FK_TEST;
  25416     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  25417 L_380347FC:
  25418     ecx = eax; /* 0x380347FC: mov ecx, eax */
  25419     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  25420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25421     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  25422     _flag_k = FK_CMP;
  25423     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  25424     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25425     ecx = (uint32_t)((int32_t)ecx >> 2u);
  25426     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  25427     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  25428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25429     _flag_k = FK_CMP;
  25430     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  25431 L_38034808:
  25432     ecx = 1; /* 0x38034808: mov ecx, 1 */
  25433 L_3803480D:
  25434     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  25435     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  25436     _cf = 0;
  25437     _flag_k = FK_TEST;
  25438     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  25439 L_38034811:
  25440     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  25441     eax = 0; /* 0x38034811: xor eax, eax */
  25442     _cf = 0;
  25443     _flag_k = FK_TEST;
  25444     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  25445 L_38034815:
  25446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  25447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25448     eax = eax - edx; /* 0x38034815: sub eax, edx */
  25449     _flag_k = FK_CMP;
  25450     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  25451     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25452     eax = (uint32_t)((int32_t)eax >> 2u);
  25453 L_3803481A:
  25454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  25455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25456     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  25457     _flag_k = FK_ADD;
  25458     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  25459     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25460     _cf = 0;
  25461     _flag_k = FK_TEST;
  25462     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  25463     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  25464 L_38034823:
  25465     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  25466     eax = 0; /* 0x38034823: xor eax, eax */
  25467     _cf = 0;
  25468     _flag_k = FK_TEST;
  25469 L_38034825:
  25470     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  25471     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25472     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  25473     PUSH32(esp, eax); /* 0x38034828: push eax */
  25474     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  25475     RECOMP_FLAGS_IN();
  25476     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  25477     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25478     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25479     esp = esp + 4; /* 0x38034831: add esp, 4 */
  25480     _flag_k = FK_ADD;
  25481     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  25482     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  25483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25484     _flag_k = FK_CMP;
  25485     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  25486     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  25487 L_3803483B:
  25488     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  25489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25490     _cf = 0;
  25491     _flag_k = FK_TEST;
  25492     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  25493 L_3803483F:
  25494     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  25495     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  25496 L_38034843:
  25497     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  25498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25499     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  25500     _flag_k = FK_ADD;
  25501     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  25502     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25503     eax = eax + 4; /* 0x38034846: add eax, 4 */
  25504     _flag_k = FK_ADD;
  25505     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  25506     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  25507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25508     _flag_k = FK_CMP;
  25509     RECOMP_BACKEDGE();
  25510     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  25511 L_3803484D:
  25512     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  25513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  25514     _cf = 0;
  25515     _flag_k = FK_TEST;
  25516     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  25517 L_38034851:
  25518     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  25519     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  25520 L_38034856:
  25521     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  25522     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  25523     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  25524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25525     _flag_k = FK_CMP;
  25526     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  25527     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  25528 L_38034860:
  25529     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  25530     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  25531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25532     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  25533     _flag_k = FK_CMP;
  25534     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  25535 L_38034868:
  25536     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  25537     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  25538     _cf = 0;
  25539     _flag_k = FK_TEST;
  25540     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  25541 L_3803486C:
  25542     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  25543     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  25544 L_38034870:
  25545     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  25546     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25547     esi = esi + 4; /* 0x38034870: add esi, 4 */
  25548     _flag_k = FK_ADD;
  25549     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  25550     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25551     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  25552     _flag_k = FK_ADD;
  25553     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  25554     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  25555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25556     _flag_k = FK_CMP;
  25557     RECOMP_BACKEDGE();
  25558     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  25559 L_3803487A:
  25560     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  25561 L_3803487D:
  25562     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  25563     PUSH32(esp, eax); /* 0x38034880: push eax */
  25564     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  25565     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  25566     RECOMP_FLAGS_IN();
  25567     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  25568     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  25569     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  25570     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  25571     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  25572     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25573     esp = esp + 4; /* 0x38034895: add esp, 4 */
  25574     _flag_k = FK_ADD;
  25575     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  25576     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  25577     _cf = 0;
  25578     _flag_k = FK_TEST;
  25579     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  25580     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  25581 L_3803489F:
  25582     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  25583     eax = 0; /* 0x3803489F: xor eax, eax */
  25584     _cf = 0;
  25585     _flag_k = FK_TEST;
  25586     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  25587     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  25588     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  25589     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  25590 L_380348B0:
  25591     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  25592     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  25593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25594     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  25595     _flag_k = FK_CMP;
  25596     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  25597     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25598     eax = (uint32_t)((int32_t)eax >> 2u);
  25599     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  25600     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  25601     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  25602     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  25603 L_380348C7:
  25604     ecx = eax; /* 0x380348C7: mov ecx, eax */
  25605     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  25606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25607     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  25608     _flag_k = FK_CMP;
  25609     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  25610     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25611     ecx = (uint32_t)((int32_t)ecx >> 2u);
  25612     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  25613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  25614     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25615     _flag_k = FK_CMP;
  25616     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  25617 L_380348D3:
  25618     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  25619     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  25620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25621     _flag_k = FK_CMP;
  25622     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  25623     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  25624 L_380348DA:
  25625     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  25626 L_380348DD:
  25627     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  25628     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  25629     _cf = 0;
  25630     _flag_k = FK_TEST;
  25631     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  25632 L_380348E1:
  25633     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  25634     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  25635     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  25636 L_380348E8:
  25637     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  25638     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25639     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  25640     _flag_k = FK_ADD;
  25641     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  25642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25643     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  25644     _flag_k = FK_ADD;
  25645     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  25646     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  25647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25648     _flag_k = FK_CMP;
  25649     RECOMP_BACKEDGE();
  25650     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  25651 L_380348F2:
  25652     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  25653     edx = ecx; /* 0x380348F5: mov edx, ecx */
  25654     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  25655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25656     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  25657     _flag_k = FK_CMP;
  25658     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  25659     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25660     edx = (uint32_t)((int32_t)edx >> 2u);
  25661     eax = 1; /* 0x380348FC: mov eax, 1 */
  25662     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  25663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25664     eax = eax - edx; /* 0x38034901: sub eax, edx */
  25665     _flag_k = FK_CMP;
  25666     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  25667     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  25668 L_38034908:
  25669     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  25670     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  25671     _cf = 0;
  25672     _flag_k = FK_TEST;
  25673     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  25674 L_3803490C:
  25675     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  25676 L_3803490E:
  25677     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  25678     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25679     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  25680     _flag_k = FK_ADD;
  25681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  25682     eax = eax - 1; /* 0x38034911: dec eax */
  25683     _flag_k = FK_DEC;
  25684     RECOMP_BACKEDGE();
  25685     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  25686 L_38034914:
  25687     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  25688     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  25689     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  25690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25691     _flag_k = FK_CMP;
  25692     eax = esi; /* 0x38034919: mov eax, esi */
  25693     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  25694 L_3803491D:
  25695     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  25696     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  25697     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25698     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  25699     _flag_k = FK_ADD;
  25700     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  25701     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  25702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25703     _flag_k = FK_CMP;
  25704     RECOMP_BACKEDGE();
  25705     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  25706 L_38034926:
  25707     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  25708 L_38034928:
  25709     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  25710     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  25711     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  25712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25713     _flag_k = FK_CMP;
  25714     edx = eax; /* 0x3803492D: mov edx, eax */
  25715     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  25716     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  25717 L_38034934:
  25718     /* test edx, edx */ /* 0x38034934: test edx, edx */
  25719     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  25720     _cf = 0;
  25721     _flag_k = FK_TEST;
  25722     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  25723 L_38034938:
  25724     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  25725     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  25726     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  25727 L_3803493F:
  25728     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  25729     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25730     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  25731     _flag_k = FK_ADD;
  25732     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  25733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25734     edx = edx + 4; /* 0x38034942: add edx, 4 */
  25735     _flag_k = FK_ADD;
  25736     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  25737     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  25738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25739     _flag_k = FK_CMP;
  25740     RECOMP_BACKEDGE();
  25741     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  25742 L_38034949:
  25743     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  25744     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  25745     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  25746     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  25747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25748     _flag_k = FK_CMP;
  25749     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  25750 L_38034953:
  25751     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  25752     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  25753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25754     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  25755     _flag_k = FK_CMP;
  25756     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  25757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25758     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  25759     _flag_k = FK_CMP;
  25760     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  25761     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  25762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25763     _flag_k = FK_CMP;
  25764     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  25765     RECOMP_BACKEDGE();
  25766     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  25767 L_38034962:
  25768     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  25769     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  25770     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  25771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25772     _flag_k = FK_CMP;
  25773     eax = esi; /* 0x38034967: mov eax, esi */
  25774     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  25775 L_3803496B:
  25776     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  25777 L_3803496E:
  25778     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  25779     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  25780     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25781     eax = eax + 4; /* 0x38034970: add eax, 4 */
  25782     _flag_k = FK_ADD;
  25783     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  25784     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  25785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25786     _flag_k = FK_CMP;
  25787     RECOMP_BACKEDGE();
  25788     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  25789 L_38034977:
  25790     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  25791     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25792     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  25793     _flag_k = FK_ADD;
  25794 L_3803497B:
  25795     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  25796     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  25797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  25798     eax = eax + 1; /* 0x38034981: inc eax */
  25799     _flag_k = FK_INC;
  25800     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  25801     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  25802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25803     _flag_k = FK_CMP;
  25804     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  25805     RECOMP_BACKEDGE();
  25806     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  25807 L_3803498D:
  25808     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  25809     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  25810     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  25811     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  25812     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  25813     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  25814     esp = ebp; /* 0x3803499D: mov esp, ebp */
  25815     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  25816     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  25817     RECOMP_REGS_OUT();
  25818 }
  25819 
  25820 void sub_380343F0(void) {
  25821     int _fpu_cmp = 0;
  25822     uint32_t _cf = 0;
  25823     int _df = 1;
  25824     uint32_t _flag_k = FK_NONE;
  25825     uint32_t _flag_a = 0, _flag_b = 0;
  25826     uint32_t _itail_tgt = 0;
  25827     RECOMP_REGS_LOCALS
  25828     RECOMP_ENTER(0x380343F0u);
  25829 
  25830     goto L_380343F0;
  25831 L_380342D4:
  25832     ecx = MEM32(eax + (-0x4)); /* 0x380342D4: mov ecx, dword ptr [eax - 4] */
  25833     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  25834     ecx = ecx & 1; /* 0x380342D7: and ecx, 1 */
  25835     _cf = 0;
  25836     _flag_k = FK_TEST;
  25837     /* cmp LO8(ecx), 1 */ /* 0x380342DA: cmp cl, 1 */
  25838     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  25839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25840     _flag_k = FK_NARROW(FK_CMP, 24);
  25841     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342DD: je 0x38034490 */
  25842 L_380342E3:
  25843     edx = MEM32(eax); /* 0x380342E3: mov edx, dword ptr [eax] */
  25844     /* cmp edx, 3 */ /* 0x380342E5: cmp edx, 3 */
  25845     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3);
  25846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25847     _flag_k = FK_CMP;
  25848     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342E8: je 0x38034490 */
  25849 L_380342EE:
  25850     /* test edx, edx */ /* 0x380342EE: test edx, edx */
  25851     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  25852     _cf = 0;
  25853     _flag_k = FK_TEST;
  25854     MEM32(ebp + (-0xA0)) = 0; /* 0x380342F0: mov dword ptr [ebp - 0xa0], 0 */
  25855     ecx = MEM32(ebp + (-0xA0)); /* 0x380342FA: mov ecx, dword ptr [ebp - 0xa0] */
  25856     MEM32(ebp + (-0x24)) = ecx; /* 0x38034300: mov dword ptr [ebp - 0x24], ecx */
  25857     MEM32(ebp + (-0x9C)) = 0; /* 0x38034303: mov dword ptr [ebp - 0x9c], 0 */
  25858     ecx = MEM32(ebp + (-0x9C)); /* 0x3803430D: mov ecx, dword ptr [ebp - 0x9c] */
  25859     MEM32(ebp + (-0x98)) = 0; /* 0x38034313: mov dword ptr [ebp - 0x98], 0 */
  25860     MEM32(ebp + (-0x20)) = ecx; /* 0x3803431D: mov dword ptr [ebp - 0x20], ecx */
  25861     ecx = MEM32(ebp + (-0x98)); /* 0x38034320: mov ecx, dword ptr [ebp - 0x98] */
  25862     MEM32(ebp + (-0x1C)) = ecx; /* 0x38034326: mov dword ptr [ebp - 0x1c], ecx */
  25863     if (TEST_Z(_flag_a, _flag_b)) goto L_38034374; /* 0x38034329: jbe 0x38034374 */
  25864 L_3803432B:
  25865     ecx = MEM32(eax + 0x8); /* 0x3803432B: mov ecx, dword ptr [eax + 8] */
  25866     esi = MEM32(eax + 0xC); /* 0x3803432E: mov esi, dword ptr [eax + 0xc] */
  25867     ebx = MEM32(eax + 0x4); /* 0x38034331: mov ebx, dword ptr [eax + 4] */
  25868     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  25869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25870     esi = esi - ecx; /* 0x38034334: sub esi, ecx */
  25871     _flag_k = FK_CMP;
  25872     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
  25873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25874     ebx = ebx - ecx; /* 0x38034336: sub ebx, ecx */
  25875     _flag_k = FK_CMP;
  25876     MEM32(ebp + (-0x3C)) = ebx; /* 0x38034338: mov dword ptr [ebp - 0x3c], ebx */
  25877     MEM32(ebp + (-0x28)) = edx; /* 0x3803433B: mov dword ptr [ebp - 0x28], edx */
  25878 L_3803433E:
  25879     fp_push(*(float*)&MEM32(esi + ecx)); /* 0x3803433E: fld dword ptr [esi + ecx] */
  25880     ebx = MEM32(ebp + (-0x3C)); /* 0x38034341: mov ebx, dword ptr [ebp - 0x3c] */
  25881     fp_push(*(float*)&MEM32(ecx)); /* 0x38034344: fld dword ptr [ecx] */
  25882     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  25883     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25884     ecx = ecx + 4; /* 0x38034346: add ecx, 4 */
  25885     _flag_k = FK_ADD;
  25886     fp_push(*(float*)&MEM32(ebx + ecx + (-0x4))); /* 0x38034349: fld dword ptr [ebx + ecx - 4] */
  25887     ebx = MEM32(ebp + (-0x28)); /* 0x3803434D: mov ebx, dword ptr [ebp - 0x28] */
  25888     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034350: fld dword ptr [ebp - 0x24] */
  25889     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  25890     ebx = ebx - 1; /* 0x38034353: dec ebx */
  25891     _flag_k = FK_DEC;
  25892     _st[0] += _st[1]; /* 0x38034354: fadd st(1) */
  25893     MEM32(ebp + (-0x28)) = ebx; /* 0x38034356: mov dword ptr [ebp - 0x28], ebx */
  25894     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38034359: fstp dword ptr [ebp - 0x24] */
  25895     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803435C: fstp st(0) */
  25896     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3803435E: fld dword ptr [ebp - 0x20] */
  25897     _st[0] += _st[1]; /* 0x38034361: fadd st(1) */
  25898     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38034363: fstp dword ptr [ebp - 0x20] */
  25899     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034366: fstp st(0) */
  25900     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38034368: fld dword ptr [ebp - 0x1c] */
  25901     _st[0] += _st[1]; /* 0x3803436B: fadd st(1) */
  25902     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803436D: fstp dword ptr [ebp - 0x1c] */
  25903     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034370: fstp st(0) */
  25904     RECOMP_BACKEDGE();
  25905     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3803433E; /* 0x38034372: jne 0x3803433e */
  25906 L_38034374:
  25907     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  25908     ecx = 0; /* 0x38034374: xor ecx, ecx */
  25909     _cf = 0;
  25910     _flag_k = FK_TEST;
  25911     /* cmp edx, ecx */ /* 0x38034376: cmp edx, ecx */
  25912     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  25913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  25914     _flag_k = FK_CMP;
  25915     MEM32(ebp + (-0x44)) = edx; /* 0x38034378: mov dword ptr [ebp - 0x44], edx */
  25916     MEM32(ebp + (-0x40)) = ecx; /* 0x3803437B: mov dword ptr [ebp - 0x40], ecx */
  25917     fp_push_i64((int64_t)MEM64(ebp + (-0x44))); /* 0x3803437E: fild qword ptr [ebp - 0x44] */
  25918     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034381: fld dword ptr [ebp - 0x24] */
  25919     esi = MEM32(ebp + (-0x24)); /* 0x38034384: mov esi, dword ptr [ebp - 0x24] */
  25920     MEM32(ebp + (-0x18)) = esi; /* 0x38034387: mov dword ptr [ebp - 0x18], esi */
  25921     _st[0] /= _st[1]; /* 0x3803438A: fdiv st(1) */
  25922     esi = MEM32(ebp + (-0x20)); /* 0x3803438C: mov esi, dword ptr [ebp - 0x20] */
  25923     MEM32(ebp + (-0x14)) = esi; /* 0x3803438F: mov dword ptr [ebp - 0x14], esi */
  25924     esi = MEM32(ebp + (-0x1C)); /* 0x38034392: mov esi, dword ptr [ebp - 0x1c] */
  25925     MEM32(ebp + (-0x10)) = esi; /* 0x38034395: mov dword ptr [ebp - 0x10], esi */
  25926     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38034398: fstp dword ptr [ebp - 0x18] */
  25927     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803439B: fld dword ptr [ebp - 0x14] */
  25928     _st[0] /= _st[1]; /* 0x3803439E: fdiv st(1) */
  25929     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380343A0: fstp dword ptr [ebp - 0x14] */
  25930     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380343A3: fld dword ptr [ebp - 0x10] */
  25931     _st[0] /= _st[1]; /* 0x380343A6: fdiv st(1) */
  25932     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380343A8: fstp dword ptr [ebp - 0x10] */
  25933     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380343AB: fstp st(0) */
  25934     if (CMP_BE(_flag_a, _flag_b)) goto L_3803459F; /* 0x380343AD: jbe 0x3803459f */
  25935 L_380343B3:
  25936     edx = MEM32(ebp + 0xC); /* 0x380343B3: mov edx, dword ptr [ebp + 0xc] */
  25937     edx = edx + edx * 4; /* 0x380343B6: lea edx, [edx + edx*4] */
  25938     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380343B9: shl edx, 3 */
  25939     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  25940     edx = edx << 3u; /* 0x380343B9: shl edx, 3 */
  25941 L_380343BC:
  25942     ebx = MEM32(edi + 0x90); /* 0x380343BC: mov ebx, dword ptr [edi + 0x90] */
  25943     esi = eax + (-0x4); /* 0x380343C2: lea esi, [eax - 4] */
  25944     esi = MEM32(esi); /* 0x380343C5: mov esi, dword ptr [esi] */
  25945     MEM32(ebx + edx + 0x24) = esi; /* 0x380343C7: mov dword ptr [ebx + edx + 0x24], esi */
  25946     esi = MEM32(edi + 0x90); /* 0x380343CB: mov esi, dword ptr [edi + 0x90] */
  25947     ebx = MEM32(ebp + (-0x18)); /* 0x380343D1: mov ebx, dword ptr [ebp - 0x18] */
  25948     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  25949     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  25950     esi = esi + edx; /* 0x380343D4: add esi, edx */
  25951     _flag_k = FK_ADD;
  25952     /* test ecx, ecx */ /* 0x380343D6: test ecx, ecx */
  25953     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  25954     _cf = 0;
  25955     _flag_k = FK_TEST;
  25956     MEM32(esi) = ebx; /* 0x380343D8: mov dword ptr [esi], ebx */
  25957     ebx = MEM32(ebp + (-0x14)); /* 0x380343DA: mov ebx, dword ptr [ebp - 0x14] */
  25958     MEM32(esi + 0x4) = ebx; /* 0x380343DD: mov dword ptr [esi + 4], ebx */
  25959     ebx = MEM32(ebp + (-0x10)); /* 0x380343E0: mov ebx, dword ptr [ebp - 0x10] */
  25960     MEM32(esi + 0x8) = ebx; /* 0x380343E3: mov dword ptr [esi + 8], ebx */
  25961     if (TEST_NZ(_flag_a, _flag_b)) goto L_380343ED; /* 0x380343E6: jne 0x380343ed */
  25962 L_380343E8:
  25963     esi = MEM32(eax); /* 0x380343E8: mov esi, dword ptr [eax] */
  25964     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  25965     esi = esi - 1; /* 0x380343EA: dec esi */
  25966     _flag_k = FK_DEC;
  25967     goto L_380343F0; /* 0x380343EB: jmp 0x380343f0 */
  25968 L_380343ED:
  25969     esi = ecx + (-0x1); /* 0x380343ED: lea esi, [ecx - 1] */
  25970 L_380343F0:
  25971     ebx = MEM32(eax + 0xC); /* 0x380343F0: mov ebx, dword ptr [eax + 0xc] */
  25972     fp_push(*(float*)&MEM32(ebx + esi * 4)); /* 0x380343F3: fld dword ptr [ebx + esi*4] */
  25973     ebx = esi; /* 0x380343F6: mov ebx, esi */
  25974     MEM32(ebp + (-0x34)) = esi; /* 0x380343F8: mov dword ptr [ebp - 0x34], esi */
  25975     esi = MEM32(eax + 0x8); /* 0x380343FB: mov esi, dword ptr [eax + 8] */
  25976     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x380343FE: fld dword ptr [esi + ebx*4] */
  25977     esi = MEM32(eax + 0x4); /* 0x38034401: mov esi, dword ptr [eax + 4] */
  25978     ebx = MEM32(ebp + (-0x34)); /* 0x38034404: mov ebx, dword ptr [ebp - 0x34] */
  25979     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x38034407: fld dword ptr [esi + ebx*4] */
  25980     esi = MEM32(edi + 0x90); /* 0x3803440A: mov esi, dword ptr [edi + 0x90] */
  25981     esi = esi + edx + 0xC; /* 0x38034410: lea esi, [esi + edx + 0xc] */
  25982     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38034414: fstp dword ptr [ebp - 0x7c] */
  25983     ebx = MEM32(ebp + (-0x7C)); /* 0x38034417: mov ebx, dword ptr [ebp - 0x7c] */
  25984     MEM32(esi) = ebx; /* 0x3803441A: mov dword ptr [esi], ebx */
  25985     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x3803441C: fstp dword ptr [ebp - 0x78] */
  25986     ebx = MEM32(ebp + (-0x78)); /* 0x3803441F: mov ebx, dword ptr [ebp - 0x78] */
  25987     MEM32(esi + 0x4) = ebx; /* 0x38034422: mov dword ptr [esi + 4], ebx */
  25988     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38034425: fstp dword ptr [ebp - 0x74] */
  25989     ebx = MEM32(ebp + (-0x74)); /* 0x38034428: mov ebx, dword ptr [ebp - 0x74] */
  25990     MEM32(esi + 0x8) = ebx; /* 0x3803442B: mov dword ptr [esi + 8], ebx */
  25991     esi = MEM32(eax + 0xC); /* 0x3803442E: mov esi, dword ptr [eax + 0xc] */
  25992     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034431: fld dword ptr [esi + ecx*4] */
  25993     esi = MEM32(eax + 0x8); /* 0x38034434: mov esi, dword ptr [eax + 8] */
  25994     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034437: fld dword ptr [esi + ecx*4] */
  25995     esi = MEM32(eax + 0x4); /* 0x3803443A: mov esi, dword ptr [eax + 4] */
  25996     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x3803443D: fld dword ptr [esi + ecx*4] */
  25997     esi = MEM32(edi + 0x90); /* 0x38034440: mov esi, dword ptr [edi + 0x90] */
  25998     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x38034446: fstp dword ptr [ebp - 0x94] */
  25999     ebx = MEM32(ebp + (-0x94)); /* 0x3803444C: mov ebx, dword ptr [ebp - 0x94] */
  26000     esi = esi + edx + 0x18; /* 0x38034452: lea esi, [esi + edx + 0x18] */
  26001     MEM32(esi) = ebx; /* 0x38034456: mov dword ptr [esi], ebx */
  26002     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x38034458: fstp dword ptr [ebp - 0x90] */
  26003     ebx = MEM32(ebp + (-0x90)); /* 0x3803445E: mov ebx, dword ptr [ebp - 0x90] */
  26004     MEM32(esi + 0x4) = ebx; /* 0x38034464: mov dword ptr [esi + 4], ebx */
  26005     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x38034467: fstp dword ptr [ebp - 0x8c] */
  26006     ebx = MEM32(ebp + (-0x8C)); /* 0x3803446D: mov ebx, dword ptr [ebp - 0x8c] */
  26007     MEM32(esi + 0x8) = ebx; /* 0x38034473: mov dword ptr [esi + 8], ebx */
  26008     ebx = MEM32(ebp + 0xC); /* 0x38034476: mov ebx, dword ptr [ebp + 0xc] */
  26009     esi = MEM32(eax); /* 0x38034479: mov esi, dword ptr [eax] */
  26010     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  26011     ebx = ebx + 1; /* 0x3803447B: inc ebx */
  26012     _flag_k = FK_INC;
  26013     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  26014     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26015     edx = edx + 0x28u; /* 0x3803447C: add edx, 0x28 */
  26016     _flag_k = FK_ADD;
  26017     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  26018     ecx = ecx + 1; /* 0x3803447F: inc ecx */
  26019     _flag_k = FK_INC;
  26020     /* cmp ecx, esi */ /* 0x38034480: cmp ecx, esi */
  26021     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  26022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26023     _flag_k = FK_CMP;
  26024     MEM32(ebp + 0xC) = ebx; /* 0x38034482: mov dword ptr [ebp + 0xc], ebx */
  26025     RECOMP_BACKEDGE();
  26026     if (CMP_B(_flag_a, _flag_b)) goto L_380343BC; /* 0x38034485: jb 0x380343bc */
  26027 L_3803448B:
  26028     goto L_3803459F; /* 0x3803448B: jmp 0x3803459f */
  26029 L_38034490:
  26030     ecx = MEM32(eax + 0x10); /* 0x38034490: mov ecx, dword ptr [eax + 0x10] */
  26031     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26032     esi = 0; /* 0x38034493: xor esi, esi */
  26033     _cf = 0;
  26034     _flag_k = FK_TEST;
  26035     /* test ecx, ecx */ /* 0x38034495: test ecx, ecx */
  26036     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  26037     _cf = 0;
  26038     _flag_k = FK_TEST;
  26039     if (TEST_Z(_flag_a, _flag_b)) goto L_3803459F; /* 0x38034497: jbe 0x3803459f */
  26040 L_3803449D:
  26041     edx = MEM32(ebp + 0xC); /* 0x3803449D: mov edx, dword ptr [ebp + 0xc] */
  26042     edx = edx + edx * 4; /* 0x380344A0: lea edx, [edx + edx*4] */
  26043     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380344A3: shl edx, 3 */
  26044     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26045     edx = edx << 3u; /* 0x380344A3: shl edx, 3 */
  26046 L_380344A6:
  26047     ecx = MEM32(edi + 0x90); /* 0x380344A6: mov ecx, dword ptr [edi + 0x90] */
  26048     ebx = MEM32(eax + (-0x4)); /* 0x380344AC: mov ebx, dword ptr [eax - 4] */
  26049     MEM32(ecx + edx + 0x24) = ebx; /* 0x380344AF: mov dword ptr [ecx + edx + 0x24], ebx */
  26050     ecx = MEM32(eax + 0x14); /* 0x380344B3: mov ecx, dword ptr [eax + 0x14] */
  26051     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26052     ebx = 0; /* 0x380344B6: xor ebx, ebx */
  26053     _cf = 0;
  26054     _flag_k = FK_TEST;
  26055     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344B8: mov bx, word ptr [ecx + esi*2] */
  26056     ecx = ebx; /* 0x380344BC: mov ecx, ebx */
  26057     ebx = MEM32(eax + 0xC); /* 0x380344BE: mov ebx, dword ptr [eax + 0xc] */
  26058     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x380344C1: shl ecx, 2 */
  26059     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26060     ecx = ecx << 2u; /* 0x380344C1: shl ecx, 2 */
  26061     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344C4: fld dword ptr [ecx + ebx] */
  26062     ebx = MEM32(eax + 0x8); /* 0x380344C7: mov ebx, dword ptr [eax + 8] */
  26063     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344CA: fld dword ptr [ecx + ebx] */
  26064     ebx = MEM32(eax + 0x4); /* 0x380344CD: mov ebx, dword ptr [eax + 4] */
  26065     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344D0: fld dword ptr [ecx + ebx] */
  26066     ecx = MEM32(edi + 0x90); /* 0x380344D3: mov ecx, dword ptr [edi + 0x90] */
  26067     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  26068     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26069     ecx = ecx + edx; /* 0x380344D9: add ecx, edx */
  26070     _flag_k = FK_ADD;
  26071     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x380344DB: fstp dword ptr [ebp - 0x70] */
  26072     ebx = MEM32(ebp + (-0x70)); /* 0x380344DE: mov ebx, dword ptr [ebp - 0x70] */
  26073     MEM32(ecx) = ebx; /* 0x380344E1: mov dword ptr [ecx], ebx */
  26074     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x380344E3: fstp dword ptr [ebp - 0x6c] */
  26075     ebx = MEM32(ebp + (-0x6C)); /* 0x380344E6: mov ebx, dword ptr [ebp - 0x6c] */
  26076     MEM32(ecx + 0x4) = ebx; /* 0x380344E9: mov dword ptr [ecx + 4], ebx */
  26077     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x380344EC: fstp dword ptr [ebp - 0x68] */
  26078     ebx = MEM32(ebp + (-0x68)); /* 0x380344EF: mov ebx, dword ptr [ebp - 0x68] */
  26079     MEM32(ecx + 0x8) = ebx; /* 0x380344F2: mov dword ptr [ecx + 8], ebx */
  26080     ecx = MEM32(eax + 0x18); /* 0x380344F5: mov ecx, dword ptr [eax + 0x18] */
  26081     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26082     ebx = 0; /* 0x380344F8: xor ebx, ebx */
  26083     _cf = 0;
  26084     _flag_k = FK_TEST;
  26085     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344FA: mov bx, word ptr [ecx + esi*2] */
  26086     ecx = ebx; /* 0x380344FE: mov ecx, ebx */
  26087     ebx = MEM32(eax + 0xC); /* 0x38034500: mov ebx, dword ptr [eax + 0xc] */
  26088     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034503: shl ecx, 2 */
  26089     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26090     ecx = ecx << 2u; /* 0x38034503: shl ecx, 2 */
  26091     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034506: fld dword ptr [ecx + ebx] */
  26092     ebx = MEM32(eax + 0x8); /* 0x38034509: mov ebx, dword ptr [eax + 8] */
  26093     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803450C: fld dword ptr [ecx + ebx] */
  26094     ebx = MEM32(eax + 0x4); /* 0x3803450F: mov ebx, dword ptr [eax + 4] */
  26095     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034512: fld dword ptr [ecx + ebx] */
  26096     ecx = MEM32(edi + 0x90); /* 0x38034515: mov ecx, dword ptr [edi + 0x90] */
  26097     ecx = ecx + edx + 0xC; /* 0x3803451B: lea ecx, [ecx + edx + 0xc] */
  26098     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x3803451F: fstp dword ptr [ebp - 0x88] */
  26099     ebx = MEM32(ebp + (-0x88)); /* 0x38034525: mov ebx, dword ptr [ebp - 0x88] */
  26100     MEM32(ecx) = ebx; /* 0x3803452B: mov dword ptr [ecx], ebx */
  26101     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3803452D: fstp dword ptr [ebp - 0x84] */
  26102     ebx = MEM32(ebp + (-0x84)); /* 0x38034533: mov ebx, dword ptr [ebp - 0x84] */
  26103     MEM32(ecx + 0x4) = ebx; /* 0x38034539: mov dword ptr [ecx + 4], ebx */
  26104     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803453C: fstp dword ptr [ebp - 0x80] */
  26105     ebx = MEM32(ebp + (-0x80)); /* 0x3803453F: mov ebx, dword ptr [ebp - 0x80] */
  26106     MEM32(ecx + 0x8) = ebx; /* 0x38034542: mov dword ptr [ecx + 8], ebx */
  26107     ecx = MEM32(eax + 0x1C); /* 0x38034545: mov ecx, dword ptr [eax + 0x1c] */
  26108     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26109     ebx = 0; /* 0x38034548: xor ebx, ebx */
  26110     _cf = 0;
  26111     _flag_k = FK_TEST;
  26112     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x3803454A: mov bx, word ptr [ecx + esi*2] */
  26113     ecx = ebx; /* 0x3803454E: mov ecx, ebx */
  26114     ebx = MEM32(eax + 0xC); /* 0x38034550: mov ebx, dword ptr [eax + 0xc] */
  26115     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034553: shl ecx, 2 */
  26116     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26117     ecx = ecx << 2u; /* 0x38034553: shl ecx, 2 */
  26118     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034556: fld dword ptr [ecx + ebx] */
  26119     ebx = MEM32(eax + 0x8); /* 0x38034559: mov ebx, dword ptr [eax + 8] */
  26120     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803455C: fld dword ptr [ecx + ebx] */
  26121     ebx = MEM32(eax + 0x4); /* 0x3803455F: mov ebx, dword ptr [eax + 4] */
  26122     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034562: fld dword ptr [ecx + ebx] */
  26123     ecx = MEM32(edi + 0x90); /* 0x38034565: mov ecx, dword ptr [edi + 0x90] */
  26124     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3803456B: fstp dword ptr [ebp - 0x54] */
  26125     ebx = MEM32(ebp + (-0x54)); /* 0x3803456E: mov ebx, dword ptr [ebp - 0x54] */
  26126     ecx = ecx + edx + 0x18; /* 0x38034571: lea ecx, [ecx + edx + 0x18] */
  26127     MEM32(ecx) = ebx; /* 0x38034575: mov dword ptr [ecx], ebx */
  26128     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x38034577: fstp dword ptr [ebp - 0x50] */
  26129     ebx = MEM32(ebp + (-0x50)); /* 0x3803457A: mov ebx, dword ptr [ebp - 0x50] */
  26130     MEM32(ecx + 0x4) = ebx; /* 0x3803457D: mov dword ptr [ecx + 4], ebx */
  26131     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x38034580: fstp dword ptr [ebp - 0x4c] */
  26132     ebx = MEM32(ebp + (-0x4C)); /* 0x38034583: mov ebx, dword ptr [ebp - 0x4c] */
  26133     MEM32(ecx + 0x8) = ebx; /* 0x38034586: mov dword ptr [ecx + 8], ebx */
  26134     ebx = MEM32(ebp + 0xC); /* 0x38034589: mov ebx, dword ptr [ebp + 0xc] */
  26135     ecx = MEM32(eax + 0x10); /* 0x3803458C: mov ecx, dword ptr [eax + 0x10] */
  26136     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  26137     ebx = ebx + 1; /* 0x3803458F: inc ebx */
  26138     _flag_k = FK_INC;
  26139     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  26140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26141     edx = edx + 0x28u; /* 0x38034590: add edx, 0x28 */
  26142     _flag_k = FK_ADD;
  26143     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  26144     esi = esi + 1; /* 0x38034593: inc esi */
  26145     _flag_k = FK_INC;
  26146     /* cmp esi, ecx */ /* 0x38034594: cmp esi, ecx */
  26147     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  26148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26149     _flag_k = FK_CMP;
  26150     MEM32(ebp + 0xC) = ebx; /* 0x38034596: mov dword ptr [ebp + 0xc], ebx */
  26151     RECOMP_BACKEDGE();
  26152     if (CMP_B(_flag_a, _flag_b)) goto L_380344A6; /* 0x38034599: jb 0x380344a6 */
  26153 L_3803459F:
  26154     ecx = MEM32(ebp + (-0x2C)); /* 0x3803459F: mov ecx, dword ptr [ebp - 0x2c] */
  26155     edx = MEM32(ebp + (-0x30)); /* 0x380345A2: mov edx, dword ptr [ebp - 0x30] */
  26156     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  26157     ecx = ecx + 1; /* 0x380345A5: inc ecx */
  26158     _flag_k = FK_INC;
  26159     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  26160     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26161     eax = eax + 0x24u; /* 0x380345A6: add eax, 0x24 */
  26162     _flag_k = FK_ADD;
  26163     /* cmp ecx, edx */ /* 0x380345A9: cmp ecx, edx */
  26164     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  26165     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26166     _flag_k = FK_CMP;
  26167     MEM32(ebp + (-0x2C)) = ecx; /* 0x380345AB: mov dword ptr [ebp - 0x2c], ecx */
  26168     RECOMP_BACKEDGE();
  26169     if (CMP_B(_flag_a, _flag_b)) goto L_380342D4; /* 0x380345AE: jb 0x380342d4 */
  26170 L_380345B4:
  26171     eax = MEM32(ebp + 0xC); /* 0x380345B4: mov eax, dword ptr [ebp + 0xc] */
  26172     /* cmp eax, MEM32(edi + 0x8C) */ /* 0x380345B7: cmp eax, dword ptr [edi + 0x8c] */
  26173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8C));
  26174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26175     _flag_k = FK_CMP;
  26176     if (CMP_AE(_flag_a, _flag_b)) goto L_380345CD; /* 0x380345BD: jae 0x380345cd */
  26177 L_380345BF:
  26178     MEM32(edi + 0x8C) = eax; /* 0x380345BF: mov dword ptr [edi + 0x8c], eax */
  26179     goto L_380345CD; /* 0x380345C5: jmp 0x380345cd */
  26180 L_380345CD:
  26181     eax = MEM32(edi + 0x8C); /* 0x380345CD: mov eax, dword ptr [edi + 0x8c] */
  26182     /* test eax, eax */ /* 0x380345D3: test eax, eax */
  26183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26184     _cf = 0;
  26185     _flag_k = FK_TEST;
  26186     if (TEST_Z(_flag_a, _flag_b)) goto L_380345EA; /* 0x380345D5: je 0x380345ea */
  26187 L_380345D7:
  26188     edx = MEM32(edi + 0x90); /* 0x380345D7: mov edx, dword ptr [edi + 0x90] */
  26189     PUSH32(esp, edx); /* 0x380345DD: push edx */
  26190     PUSH32(esp, eax); /* 0x380345DE: push eax */
  26191     eax = MEM32(edi + 0x44); /* 0x380345DF: mov eax, dword ptr [edi + 0x44] */
  26192     PUSH32(esp, eax); /* 0x380345E2: push eax */
  26193     ecx = edi; /* 0x380345E3: mov ecx, edi */
  26194     RECOMP_ICALL(0x3803F2F0u); /* 0x380345E5: call 0x3803f2f0 */ /* not lifted */
  26195     RECOMP_FLAGS_IN();
  26196 L_380345EA:
  26197     eax = MEM32(ebp + (-0x30)); /* 0x380345EA: mov eax, dword ptr [ebp - 0x30] */
  26198     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26199     esi = 0; /* 0x380345ED: xor esi, esi */
  26200     _cf = 0;
  26201     _flag_k = FK_TEST;
  26202     /* test eax, eax */ /* 0x380345EF: test eax, eax */
  26203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26204     _cf = 0;
  26205     _flag_k = FK_TEST;
  26206     if (TEST_Z(_flag_a, _flag_b)) goto L_38034663; /* 0x380345F1: jbe 0x38034663 */
  26207 L_380345F3:
  26208     ecx = MEM32(ebp + (-0x38)); /* 0x380345F3: mov ecx, dword ptr [ebp - 0x38] */
  26209     ebx = ecx + 0xC; /* 0x380345F6: lea ebx, [ecx + 0xc] */
  26210 L_380345F9:
  26211     eax = MEM32(ebx + (-0x4)); /* 0x380345F9: mov eax, dword ptr [ebx - 4] */
  26212     /* test eax, eax */ /* 0x380345FC: test eax, eax */
  26213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26214     _cf = 0;
  26215     _flag_k = FK_TEST;
  26216     if (TEST_Z(_flag_a, _flag_b)) goto L_38034609; /* 0x380345FE: je 0x38034609 */
  26217 L_38034600:
  26218     PUSH32(esp, eax); /* 0x38034600: push eax */
  26219     RECOMP_ICALL(0x3804B4F6u); /* 0x38034601: call 0x3804b4f6 */ /* not lifted */
  26220     RECOMP_FLAGS_IN();
  26221     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26222     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26223     esp = esp + 4; /* 0x38034606: add esp, 4 */
  26224     _flag_k = FK_ADD;
  26225 L_38034609:
  26226     eax = MEM32(ebx); /* 0x38034609: mov eax, dword ptr [ebx] */
  26227     /* test eax, eax */ /* 0x3803460B: test eax, eax */
  26228     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26229     _cf = 0;
  26230     _flag_k = FK_TEST;
  26231     if (TEST_Z(_flag_a, _flag_b)) goto L_38034618; /* 0x3803460D: je 0x38034618 */
  26232 L_3803460F:
  26233     PUSH32(esp, eax); /* 0x3803460F: push eax */
  26234     RECOMP_ICALL(0x3804B4F6u); /* 0x38034610: call 0x3804b4f6 */ /* not lifted */
  26235     RECOMP_FLAGS_IN();
  26236     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26237     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26238     esp = esp + 4; /* 0x38034615: add esp, 4 */
  26239     _flag_k = FK_ADD;
  26240 L_38034618:
  26241     eax = MEM32(ebx + 0x4); /* 0x38034618: mov eax, dword ptr [ebx + 4] */
  26242     /* test eax, eax */ /* 0x3803461B: test eax, eax */
  26243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26244     _cf = 0;
  26245     _flag_k = FK_TEST;
  26246     if (TEST_Z(_flag_a, _flag_b)) goto L_38034628; /* 0x3803461D: je 0x38034628 */
  26247 L_3803461F:
  26248     PUSH32(esp, eax); /* 0x3803461F: push eax */
  26249     RECOMP_ICALL(0x3804B4F6u); /* 0x38034620: call 0x3804b4f6 */ /* not lifted */
  26250     RECOMP_FLAGS_IN();
  26251     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26253     esp = esp + 4; /* 0x38034625: add esp, 4 */
  26254     _flag_k = FK_ADD;
  26255 L_38034628:
  26256     eax = MEM32(ebx + 0xC); /* 0x38034628: mov eax, dword ptr [ebx + 0xc] */
  26257     /* test eax, eax */ /* 0x3803462B: test eax, eax */
  26258     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26259     _cf = 0;
  26260     _flag_k = FK_TEST;
  26261     if (TEST_Z(_flag_a, _flag_b)) goto L_38034638; /* 0x3803462D: je 0x38034638 */
  26262 L_3803462F:
  26263     PUSH32(esp, eax); /* 0x3803462F: push eax */
  26264     RECOMP_ICALL(0x3804B4F6u); /* 0x38034630: call 0x3804b4f6 */ /* not lifted */
  26265     RECOMP_FLAGS_IN();
  26266     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26267     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26268     esp = esp + 4; /* 0x38034635: add esp, 4 */
  26269     _flag_k = FK_ADD;
  26270 L_38034638:
  26271     eax = MEM32(ebx + 0x10); /* 0x38034638: mov eax, dword ptr [ebx + 0x10] */
  26272     /* test eax, eax */ /* 0x3803463B: test eax, eax */
  26273     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26274     _cf = 0;
  26275     _flag_k = FK_TEST;
  26276     if (TEST_Z(_flag_a, _flag_b)) goto L_38034648; /* 0x3803463D: je 0x38034648 */
  26277 L_3803463F:
  26278     PUSH32(esp, eax); /* 0x3803463F: push eax */
  26279     RECOMP_ICALL(0x3804B4F6u); /* 0x38034640: call 0x3804b4f6 */ /* not lifted */
  26280     RECOMP_FLAGS_IN();
  26281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26283     esp = esp + 4; /* 0x38034645: add esp, 4 */
  26284     _flag_k = FK_ADD;
  26285 L_38034648:
  26286     eax = MEM32(ebx + 0x14); /* 0x38034648: mov eax, dword ptr [ebx + 0x14] */
  26287     /* test eax, eax */ /* 0x3803464B: test eax, eax */
  26288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26289     _cf = 0;
  26290     _flag_k = FK_TEST;
  26291     if (TEST_Z(_flag_a, _flag_b)) goto L_38034658; /* 0x3803464D: je 0x38034658 */
  26292 L_3803464F:
  26293     PUSH32(esp, eax); /* 0x3803464F: push eax */
  26294     RECOMP_ICALL(0x3804B4F6u); /* 0x38034650: call 0x3804b4f6 */ /* not lifted */
  26295     RECOMP_FLAGS_IN();
  26296     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26297     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26298     esp = esp + 4; /* 0x38034655: add esp, 4 */
  26299     _flag_k = FK_ADD;
  26300 L_38034658:
  26301     eax = MEM32(ebp + (-0x30)); /* 0x38034658: mov eax, dword ptr [ebp - 0x30] */
  26302     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  26303     esi = esi + 1; /* 0x3803465B: inc esi */
  26304     _flag_k = FK_INC;
  26305     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
  26306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26307     ebx = ebx + 0x24u; /* 0x3803465C: add ebx, 0x24 */
  26308     _flag_k = FK_ADD;
  26309     /* cmp esi, eax */ /* 0x3803465F: cmp esi, eax */
  26310     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  26311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26312     _flag_k = FK_CMP;
  26313     RECOMP_BACKEDGE();
  26314     if (CMP_B(_flag_a, _flag_b)) goto L_380345F9; /* 0x38034661: jb 0x380345f9 */
  26315 L_38034663:
  26316     edx = MEM32(ebp + (-0x38)); /* 0x38034663: mov edx, dword ptr [ebp - 0x38] */
  26317     PUSH32(esp, edx); /* 0x38034666: push edx */
  26318     RECOMP_ICALL(0x3804B4F6u); /* 0x38034667: call 0x3804b4f6 */ /* not lifted */
  26319     RECOMP_FLAGS_IN();
  26320     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26321     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26322     esp = esp + 4; /* 0x3803466C: add esp, 4 */
  26323     _flag_k = FK_ADD;
  26324     goto L_38034677; /* 0x3803466F: jmp 0x38034677 */
  26325 L_38034677:
  26326     esi = MEM32(edi + 0xC); /* 0x38034677: mov esi, dword ptr [edi + 0xc] */
  26327     ecx = edi; /* 0x3803467A: mov ecx, edi */
  26328     RECOMP_ICALL(0x380303E0u); /* 0x3803467C: call 0x380303e0 */ /* not lifted */
  26329     RECOMP_FLAGS_IN();
  26330     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x38034681: shl eax, 0x10 */
  26331     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26332     eax = eax << 16u; /* 0x38034681: shl eax, 0x10 */
  26333     _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi));
  26334     eax = eax | esi; /* 0x38034684: or eax, esi */
  26335     _cf = 0;
  26336     _flag_k = FK_TEST;
  26337     MEM32(edi + 0x4) = eax; /* 0x38034686: mov dword ptr [edi + 4], eax */
  26338     /* cmp MEM32(edi + 0xAC), 4 */ /* 0x38034689: cmp dword ptr [edi + 0xac], 4 */
  26339     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(4);
  26340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26341     _flag_k = FK_CMP;
  26342     if (CMP_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x38034690: jle 0x3803498d */
  26343 L_38034696:
  26344     ecx = MEM32(ebp + 0x8); /* 0x38034696: mov ecx, dword ptr [ebp + 8] */
  26345     eax = ebp + (-0x3C); /* 0x38034699: lea eax, [ebp - 0x3c] */
  26346     PUSH32(esp, eax); /* 0x3803469C: push eax */
  26347     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803469D: call dword ptr [0x3804e388] */
  26348     RECOMP_FLAGS_IN();
  26349     eax = MEM32(ebp + (-0x3C)); /* 0x380346A3: mov eax, dword ptr [ebp - 0x3c] */
  26350     /* test eax, eax */ /* 0x380346A6: test eax, eax */
  26351     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26352     _cf = 0;
  26353     _flag_k = FK_TEST;
  26354     MEM32(ebp + (-0x2C)) = 0; /* 0x380346A8: mov dword ptr [ebp - 0x2c], 0 */
  26355     if (TEST_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x380346AF: jle 0x3803498d */
  26356 L_380346B5:
  26357     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  26358     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  26359     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  26360     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  26361     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  26362     PUSH32(esp, edx); /* 0x380346C5: push edx */
  26363     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  26364     PUSH32(esp, eax); /* 0x380346C9: push eax */
  26365     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  26366     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  26367     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  26368     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  26369     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  26370     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  26371     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  26372     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  26373     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  26374     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  26375     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  26376     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  26377     RECOMP_FLAGS_IN();
  26378     ecx = eax; /* 0x38034714: mov ecx, eax */
  26379     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  26380     RECOMP_FLAGS_IN();
  26381     ecx = eax; /* 0x38034718: mov ecx, eax */
  26382     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  26383     RECOMP_FLAGS_IN();
  26384     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  26385     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  26386     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  26387     PUSH32(esp, edx); /* 0x38034723: push edx */
  26388     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  26389     PUSH32(esp, eax); /* 0x38034727: push eax */
  26390     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  26391     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  26392     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  26393     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  26394     RECOMP_FLAGS_IN();
  26395     ecx = eax; /* 0x38034730: mov ecx, eax */
  26396     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  26397     RECOMP_FLAGS_IN();
  26398     ecx = eax; /* 0x38034734: mov ecx, eax */
  26399     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  26400     RECOMP_FLAGS_IN();
  26401     ecx = eax; /* 0x38034738: mov ecx, eax */
  26402     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  26403     RECOMP_FLAGS_IN();
  26404     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  26405     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  26406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26407     _flag_k = FK_CMP;
  26408     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  26409 L_38034745:
  26410     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  26411     PUSH32(esp, edx); /* 0x38034748: push edx */
  26412     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  26413     PUSH32(esp, eax); /* 0x3803474C: push eax */
  26414     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  26415     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  26416     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  26417     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  26418     RECOMP_FLAGS_IN();
  26419     ecx = eax; /* 0x38034755: mov ecx, eax */
  26420     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  26421     RECOMP_FLAGS_IN();
  26422     ecx = eax; /* 0x38034759: mov ecx, eax */
  26423     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  26424     RECOMP_FLAGS_IN();
  26425     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  26426 L_3803475F:
  26427     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  26428     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  26429     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  26430     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  26431     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  26432     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  26433 L_38034771:
  26434     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  26435     PUSH32(esp, edx); /* 0x38034774: push edx */
  26436     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  26437     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  26438     RECOMP_FLAGS_IN();
  26439     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  26440     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  26441     fp_pop();
  26442     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  26443     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  26444     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  26445     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  26446     _cf = 0;
  26447     _flag_k = FK_NARROW(FK_TEST, 24);
  26448     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  26449 L_3803478D:
  26450     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  26451 L_38034791:
  26452     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  26453     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  26454     RECOMP_FLAGS_IN();
  26455     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26456     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26457     esp = esp + 4; /* 0x38034798: add esp, 4 */
  26458     _flag_k = FK_ADD;
  26459     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  26460     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26461     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  26462     _cf = 0;
  26463     _flag_k = FK_TEST;
  26464     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  26465     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  26466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26467     _flag_k = FK_CMP;
  26468     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  26469     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  26470 L_380347A7:
  26471     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  26472     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  26473     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  26474     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  26475     PUSH32(esp, edx); /* 0x380347B0: push edx */
  26476     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  26477     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  26478     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  26479     PUSH32(esp, edx); /* 0x380347B8: push edx */
  26480     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  26481     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  26482     ecx = eax; /* 0x380347BD: mov ecx, eax */
  26483     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  26484     RECOMP_FLAGS_IN();
  26485     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  26486     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  26487 L_380347C9:
  26488     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  26489 L_380347CC:
  26490     ecx = edi; /* 0x380347CC: mov ecx, edi */
  26491     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  26492     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  26493     RECOMP_FLAGS_IN();
  26494     ebx = eax; /* 0x380347DA: mov ebx, eax */
  26495     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  26496     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  26497     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  26498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26499     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  26500     _flag_k = FK_CMP;
  26501     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  26502     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26503     edx = (uint32_t)((int32_t)edx >> 2u);
  26504     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  26505     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  26506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26507     _flag_k = FK_CMP;
  26508     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  26509     esi = eax; /* 0x380347ED: mov esi, eax */
  26510     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  26511 L_380347F5:
  26512     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  26513     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  26514     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  26515     _cf = 0;
  26516     _flag_k = FK_TEST;
  26517     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  26518 L_380347FC:
  26519     ecx = eax; /* 0x380347FC: mov ecx, eax */
  26520     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  26521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26522     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  26523     _flag_k = FK_CMP;
  26524     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  26525     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26526     ecx = (uint32_t)((int32_t)ecx >> 2u);
  26527     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  26528     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  26529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26530     _flag_k = FK_CMP;
  26531     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  26532 L_38034808:
  26533     ecx = 1; /* 0x38034808: mov ecx, 1 */
  26534 L_3803480D:
  26535     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  26536     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  26537     _cf = 0;
  26538     _flag_k = FK_TEST;
  26539     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  26540 L_38034811:
  26541     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26542     eax = 0; /* 0x38034811: xor eax, eax */
  26543     _cf = 0;
  26544     _flag_k = FK_TEST;
  26545     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  26546 L_38034815:
  26547     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  26548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26549     eax = eax - edx; /* 0x38034815: sub eax, edx */
  26550     _flag_k = FK_CMP;
  26551     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  26552     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26553     eax = (uint32_t)((int32_t)eax >> 2u);
  26554 L_3803481A:
  26555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  26556     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26557     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  26558     _flag_k = FK_ADD;
  26559     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  26560     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26561     _cf = 0;
  26562     _flag_k = FK_TEST;
  26563     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  26564     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  26565 L_38034823:
  26566     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26567     eax = 0; /* 0x38034823: xor eax, eax */
  26568     _cf = 0;
  26569     _flag_k = FK_TEST;
  26570 L_38034825:
  26571     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  26572     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26573     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  26574     PUSH32(esp, eax); /* 0x38034828: push eax */
  26575     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  26576     RECOMP_FLAGS_IN();
  26577     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  26578     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26579     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26580     esp = esp + 4; /* 0x38034831: add esp, 4 */
  26581     _flag_k = FK_ADD;
  26582     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  26583     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  26584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26585     _flag_k = FK_CMP;
  26586     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  26587     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  26588 L_3803483B:
  26589     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  26590     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26591     _cf = 0;
  26592     _flag_k = FK_TEST;
  26593     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  26594 L_3803483F:
  26595     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  26596     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  26597 L_38034843:
  26598     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  26599     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26600     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  26601     _flag_k = FK_ADD;
  26602     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  26603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26604     eax = eax + 4; /* 0x38034846: add eax, 4 */
  26605     _flag_k = FK_ADD;
  26606     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  26607     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  26608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26609     _flag_k = FK_CMP;
  26610     RECOMP_BACKEDGE();
  26611     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  26612 L_3803484D:
  26613     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  26614     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  26615     _cf = 0;
  26616     _flag_k = FK_TEST;
  26617     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  26618 L_38034851:
  26619     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  26620     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  26621 L_38034856:
  26622     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  26623     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  26624     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  26625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26626     _flag_k = FK_CMP;
  26627     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  26628     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  26629 L_38034860:
  26630     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  26631     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  26632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26633     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  26634     _flag_k = FK_CMP;
  26635     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  26636 L_38034868:
  26637     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  26638     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  26639     _cf = 0;
  26640     _flag_k = FK_TEST;
  26641     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  26642 L_3803486C:
  26643     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  26644     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  26645 L_38034870:
  26646     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  26647     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26648     esi = esi + 4; /* 0x38034870: add esi, 4 */
  26649     _flag_k = FK_ADD;
  26650     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  26651     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26652     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  26653     _flag_k = FK_ADD;
  26654     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  26655     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  26656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26657     _flag_k = FK_CMP;
  26658     RECOMP_BACKEDGE();
  26659     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  26660 L_3803487A:
  26661     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  26662 L_3803487D:
  26663     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  26664     PUSH32(esp, eax); /* 0x38034880: push eax */
  26665     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  26666     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  26667     RECOMP_FLAGS_IN();
  26668     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  26669     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  26670     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  26671     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  26672     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  26673     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26674     esp = esp + 4; /* 0x38034895: add esp, 4 */
  26675     _flag_k = FK_ADD;
  26676     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  26677     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  26678     _cf = 0;
  26679     _flag_k = FK_TEST;
  26680     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  26681     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  26682 L_3803489F:
  26683     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  26684     eax = 0; /* 0x3803489F: xor eax, eax */
  26685     _cf = 0;
  26686     _flag_k = FK_TEST;
  26687     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  26688     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  26689     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  26690     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  26691 L_380348B0:
  26692     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  26693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  26694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26695     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  26696     _flag_k = FK_CMP;
  26697     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  26698     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26699     eax = (uint32_t)((int32_t)eax >> 2u);
  26700     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  26701     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  26702     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  26703     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  26704 L_380348C7:
  26705     ecx = eax; /* 0x380348C7: mov ecx, eax */
  26706     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  26707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26708     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  26709     _flag_k = FK_CMP;
  26710     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  26711     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26712     ecx = (uint32_t)((int32_t)ecx >> 2u);
  26713     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  26714     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  26715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26716     _flag_k = FK_CMP;
  26717     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  26718 L_380348D3:
  26719     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  26720     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  26721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26722     _flag_k = FK_CMP;
  26723     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  26724     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  26725 L_380348DA:
  26726     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  26727 L_380348DD:
  26728     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  26729     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  26730     _cf = 0;
  26731     _flag_k = FK_TEST;
  26732     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  26733 L_380348E1:
  26734     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  26735     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  26736     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  26737 L_380348E8:
  26738     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  26739     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26740     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  26741     _flag_k = FK_ADD;
  26742     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  26743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26744     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  26745     _flag_k = FK_ADD;
  26746     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  26747     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  26748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26749     _flag_k = FK_CMP;
  26750     RECOMP_BACKEDGE();
  26751     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  26752 L_380348F2:
  26753     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  26754     edx = ecx; /* 0x380348F5: mov edx, ecx */
  26755     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  26756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26757     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  26758     _flag_k = FK_CMP;
  26759     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  26760     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  26761     edx = (uint32_t)((int32_t)edx >> 2u);
  26762     eax = 1; /* 0x380348FC: mov eax, 1 */
  26763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  26764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26765     eax = eax - edx; /* 0x38034901: sub eax, edx */
  26766     _flag_k = FK_CMP;
  26767     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  26768     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  26769 L_38034908:
  26770     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  26771     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  26772     _cf = 0;
  26773     _flag_k = FK_TEST;
  26774     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  26775 L_3803490C:
  26776     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  26777 L_3803490E:
  26778     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  26779     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26780     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  26781     _flag_k = FK_ADD;
  26782     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  26783     eax = eax - 1; /* 0x38034911: dec eax */
  26784     _flag_k = FK_DEC;
  26785     RECOMP_BACKEDGE();
  26786     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  26787 L_38034914:
  26788     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  26789     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  26790     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  26791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26792     _flag_k = FK_CMP;
  26793     eax = esi; /* 0x38034919: mov eax, esi */
  26794     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  26795 L_3803491D:
  26796     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  26797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  26798     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26799     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  26800     _flag_k = FK_ADD;
  26801     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  26802     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  26803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26804     _flag_k = FK_CMP;
  26805     RECOMP_BACKEDGE();
  26806     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  26807 L_38034926:
  26808     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  26809 L_38034928:
  26810     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  26811     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  26812     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  26813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26814     _flag_k = FK_CMP;
  26815     edx = eax; /* 0x3803492D: mov edx, eax */
  26816     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  26817     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  26818 L_38034934:
  26819     /* test edx, edx */ /* 0x38034934: test edx, edx */
  26820     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  26821     _cf = 0;
  26822     _flag_k = FK_TEST;
  26823     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  26824 L_38034938:
  26825     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  26826     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  26827     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  26828 L_3803493F:
  26829     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  26830     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26831     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  26832     _flag_k = FK_ADD;
  26833     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  26834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26835     edx = edx + 4; /* 0x38034942: add edx, 4 */
  26836     _flag_k = FK_ADD;
  26837     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  26838     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  26839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26840     _flag_k = FK_CMP;
  26841     RECOMP_BACKEDGE();
  26842     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  26843 L_38034949:
  26844     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  26845     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  26846     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  26847     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  26848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26849     _flag_k = FK_CMP;
  26850     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  26851 L_38034953:
  26852     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  26853     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  26854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26855     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  26856     _flag_k = FK_CMP;
  26857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  26858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26859     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  26860     _flag_k = FK_CMP;
  26861     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  26862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  26863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26864     _flag_k = FK_CMP;
  26865     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  26866     RECOMP_BACKEDGE();
  26867     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  26868 L_38034962:
  26869     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  26870     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  26871     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  26872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26873     _flag_k = FK_CMP;
  26874     eax = esi; /* 0x38034967: mov eax, esi */
  26875     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  26876 L_3803496B:
  26877     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  26878 L_3803496E:
  26879     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  26880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  26881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26882     eax = eax + 4; /* 0x38034970: add eax, 4 */
  26883     _flag_k = FK_ADD;
  26884     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  26885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  26886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26887     _flag_k = FK_CMP;
  26888     RECOMP_BACKEDGE();
  26889     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  26890 L_38034977:
  26891     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  26892     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26893     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  26894     _flag_k = FK_ADD;
  26895 L_3803497B:
  26896     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  26897     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  26898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  26899     eax = eax + 1; /* 0x38034981: inc eax */
  26900     _flag_k = FK_INC;
  26901     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  26902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  26903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26904     _flag_k = FK_CMP;
  26905     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  26906     RECOMP_BACKEDGE();
  26907     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  26908 L_3803498D:
  26909     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  26910     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  26911     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  26912     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  26913     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  26914     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  26915     esp = ebp; /* 0x3803499D: mov esp, ebp */
  26916     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  26917     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  26918     RECOMP_REGS_OUT();
  26919 }
  26920 
  26921 void sub_38034490(void) {
  26922     int _fpu_cmp = 0;
  26923     uint32_t _cf = 0;
  26924     int _df = 1;
  26925     uint32_t _flag_k = FK_NONE;
  26926     uint32_t _flag_a = 0, _flag_b = 0;
  26927     uint32_t _itail_tgt = 0;
  26928     RECOMP_REGS_LOCALS
  26929     RECOMP_ENTER(0x38034490u);
  26930 
  26931     goto L_38034490;
  26932 L_380342D4:
  26933     ecx = MEM32(eax + (-0x4)); /* 0x380342D4: mov ecx, dword ptr [eax - 4] */
  26934     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  26935     ecx = ecx & 1; /* 0x380342D7: and ecx, 1 */
  26936     _cf = 0;
  26937     _flag_k = FK_TEST;
  26938     /* cmp LO8(ecx), 1 */ /* 0x380342DA: cmp cl, 1 */
  26939     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  26940     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26941     _flag_k = FK_NARROW(FK_CMP, 24);
  26942     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342DD: je 0x38034490 */
  26943 L_380342E3:
  26944     edx = MEM32(eax); /* 0x380342E3: mov edx, dword ptr [eax] */
  26945     /* cmp edx, 3 */ /* 0x380342E5: cmp edx, 3 */
  26946     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3);
  26947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26948     _flag_k = FK_CMP;
  26949     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342E8: je 0x38034490 */
  26950 L_380342EE:
  26951     /* test edx, edx */ /* 0x380342EE: test edx, edx */
  26952     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  26953     _cf = 0;
  26954     _flag_k = FK_TEST;
  26955     MEM32(ebp + (-0xA0)) = 0; /* 0x380342F0: mov dword ptr [ebp - 0xa0], 0 */
  26956     ecx = MEM32(ebp + (-0xA0)); /* 0x380342FA: mov ecx, dword ptr [ebp - 0xa0] */
  26957     MEM32(ebp + (-0x24)) = ecx; /* 0x38034300: mov dword ptr [ebp - 0x24], ecx */
  26958     MEM32(ebp + (-0x9C)) = 0; /* 0x38034303: mov dword ptr [ebp - 0x9c], 0 */
  26959     ecx = MEM32(ebp + (-0x9C)); /* 0x3803430D: mov ecx, dword ptr [ebp - 0x9c] */
  26960     MEM32(ebp + (-0x98)) = 0; /* 0x38034313: mov dword ptr [ebp - 0x98], 0 */
  26961     MEM32(ebp + (-0x20)) = ecx; /* 0x3803431D: mov dword ptr [ebp - 0x20], ecx */
  26962     ecx = MEM32(ebp + (-0x98)); /* 0x38034320: mov ecx, dword ptr [ebp - 0x98] */
  26963     MEM32(ebp + (-0x1C)) = ecx; /* 0x38034326: mov dword ptr [ebp - 0x1c], ecx */
  26964     if (TEST_Z(_flag_a, _flag_b)) goto L_38034374; /* 0x38034329: jbe 0x38034374 */
  26965 L_3803432B:
  26966     ecx = MEM32(eax + 0x8); /* 0x3803432B: mov ecx, dword ptr [eax + 8] */
  26967     esi = MEM32(eax + 0xC); /* 0x3803432E: mov esi, dword ptr [eax + 0xc] */
  26968     ebx = MEM32(eax + 0x4); /* 0x38034331: mov ebx, dword ptr [eax + 4] */
  26969     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  26970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26971     esi = esi - ecx; /* 0x38034334: sub esi, ecx */
  26972     _flag_k = FK_CMP;
  26973     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
  26974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  26975     ebx = ebx - ecx; /* 0x38034336: sub ebx, ecx */
  26976     _flag_k = FK_CMP;
  26977     MEM32(ebp + (-0x3C)) = ebx; /* 0x38034338: mov dword ptr [ebp - 0x3c], ebx */
  26978     MEM32(ebp + (-0x28)) = edx; /* 0x3803433B: mov dword ptr [ebp - 0x28], edx */
  26979 L_3803433E:
  26980     fp_push(*(float*)&MEM32(esi + ecx)); /* 0x3803433E: fld dword ptr [esi + ecx] */
  26981     ebx = MEM32(ebp + (-0x3C)); /* 0x38034341: mov ebx, dword ptr [ebp - 0x3c] */
  26982     fp_push(*(float*)&MEM32(ecx)); /* 0x38034344: fld dword ptr [ecx] */
  26983     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  26984     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  26985     ecx = ecx + 4; /* 0x38034346: add ecx, 4 */
  26986     _flag_k = FK_ADD;
  26987     fp_push(*(float*)&MEM32(ebx + ecx + (-0x4))); /* 0x38034349: fld dword ptr [ebx + ecx - 4] */
  26988     ebx = MEM32(ebp + (-0x28)); /* 0x3803434D: mov ebx, dword ptr [ebp - 0x28] */
  26989     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034350: fld dword ptr [ebp - 0x24] */
  26990     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  26991     ebx = ebx - 1; /* 0x38034353: dec ebx */
  26992     _flag_k = FK_DEC;
  26993     _st[0] += _st[1]; /* 0x38034354: fadd st(1) */
  26994     MEM32(ebp + (-0x28)) = ebx; /* 0x38034356: mov dword ptr [ebp - 0x28], ebx */
  26995     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38034359: fstp dword ptr [ebp - 0x24] */
  26996     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803435C: fstp st(0) */
  26997     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3803435E: fld dword ptr [ebp - 0x20] */
  26998     _st[0] += _st[1]; /* 0x38034361: fadd st(1) */
  26999     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38034363: fstp dword ptr [ebp - 0x20] */
  27000     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034366: fstp st(0) */
  27001     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38034368: fld dword ptr [ebp - 0x1c] */
  27002     _st[0] += _st[1]; /* 0x3803436B: fadd st(1) */
  27003     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803436D: fstp dword ptr [ebp - 0x1c] */
  27004     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034370: fstp st(0) */
  27005     RECOMP_BACKEDGE();
  27006     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3803433E; /* 0x38034372: jne 0x3803433e */
  27007 L_38034374:
  27008     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27009     ecx = 0; /* 0x38034374: xor ecx, ecx */
  27010     _cf = 0;
  27011     _flag_k = FK_TEST;
  27012     /* cmp edx, ecx */ /* 0x38034376: cmp edx, ecx */
  27013     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  27014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27015     _flag_k = FK_CMP;
  27016     MEM32(ebp + (-0x44)) = edx; /* 0x38034378: mov dword ptr [ebp - 0x44], edx */
  27017     MEM32(ebp + (-0x40)) = ecx; /* 0x3803437B: mov dword ptr [ebp - 0x40], ecx */
  27018     fp_push_i64((int64_t)MEM64(ebp + (-0x44))); /* 0x3803437E: fild qword ptr [ebp - 0x44] */
  27019     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034381: fld dword ptr [ebp - 0x24] */
  27020     esi = MEM32(ebp + (-0x24)); /* 0x38034384: mov esi, dword ptr [ebp - 0x24] */
  27021     MEM32(ebp + (-0x18)) = esi; /* 0x38034387: mov dword ptr [ebp - 0x18], esi */
  27022     _st[0] /= _st[1]; /* 0x3803438A: fdiv st(1) */
  27023     esi = MEM32(ebp + (-0x20)); /* 0x3803438C: mov esi, dword ptr [ebp - 0x20] */
  27024     MEM32(ebp + (-0x14)) = esi; /* 0x3803438F: mov dword ptr [ebp - 0x14], esi */
  27025     esi = MEM32(ebp + (-0x1C)); /* 0x38034392: mov esi, dword ptr [ebp - 0x1c] */
  27026     MEM32(ebp + (-0x10)) = esi; /* 0x38034395: mov dword ptr [ebp - 0x10], esi */
  27027     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38034398: fstp dword ptr [ebp - 0x18] */
  27028     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803439B: fld dword ptr [ebp - 0x14] */
  27029     _st[0] /= _st[1]; /* 0x3803439E: fdiv st(1) */
  27030     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380343A0: fstp dword ptr [ebp - 0x14] */
  27031     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380343A3: fld dword ptr [ebp - 0x10] */
  27032     _st[0] /= _st[1]; /* 0x380343A6: fdiv st(1) */
  27033     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380343A8: fstp dword ptr [ebp - 0x10] */
  27034     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380343AB: fstp st(0) */
  27035     if (CMP_BE(_flag_a, _flag_b)) goto L_3803459F; /* 0x380343AD: jbe 0x3803459f */
  27036 L_380343B3:
  27037     edx = MEM32(ebp + 0xC); /* 0x380343B3: mov edx, dword ptr [ebp + 0xc] */
  27038     edx = edx + edx * 4; /* 0x380343B6: lea edx, [edx + edx*4] */
  27039     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380343B9: shl edx, 3 */
  27040     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27041     edx = edx << 3u; /* 0x380343B9: shl edx, 3 */
  27042 L_380343BC:
  27043     ebx = MEM32(edi + 0x90); /* 0x380343BC: mov ebx, dword ptr [edi + 0x90] */
  27044     esi = eax + (-0x4); /* 0x380343C2: lea esi, [eax - 4] */
  27045     esi = MEM32(esi); /* 0x380343C5: mov esi, dword ptr [esi] */
  27046     MEM32(ebx + edx + 0x24) = esi; /* 0x380343C7: mov dword ptr [ebx + edx + 0x24], esi */
  27047     esi = MEM32(edi + 0x90); /* 0x380343CB: mov esi, dword ptr [edi + 0x90] */
  27048     ebx = MEM32(ebp + (-0x18)); /* 0x380343D1: mov ebx, dword ptr [ebp - 0x18] */
  27049     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  27050     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27051     esi = esi + edx; /* 0x380343D4: add esi, edx */
  27052     _flag_k = FK_ADD;
  27053     /* test ecx, ecx */ /* 0x380343D6: test ecx, ecx */
  27054     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  27055     _cf = 0;
  27056     _flag_k = FK_TEST;
  27057     MEM32(esi) = ebx; /* 0x380343D8: mov dword ptr [esi], ebx */
  27058     ebx = MEM32(ebp + (-0x14)); /* 0x380343DA: mov ebx, dword ptr [ebp - 0x14] */
  27059     MEM32(esi + 0x4) = ebx; /* 0x380343DD: mov dword ptr [esi + 4], ebx */
  27060     ebx = MEM32(ebp + (-0x10)); /* 0x380343E0: mov ebx, dword ptr [ebp - 0x10] */
  27061     MEM32(esi + 0x8) = ebx; /* 0x380343E3: mov dword ptr [esi + 8], ebx */
  27062     if (TEST_NZ(_flag_a, _flag_b)) goto L_380343ED; /* 0x380343E6: jne 0x380343ed */
  27063 L_380343E8:
  27064     esi = MEM32(eax); /* 0x380343E8: mov esi, dword ptr [eax] */
  27065     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  27066     esi = esi - 1; /* 0x380343EA: dec esi */
  27067     _flag_k = FK_DEC;
  27068     goto L_380343F0; /* 0x380343EB: jmp 0x380343f0 */
  27069 L_380343ED:
  27070     esi = ecx + (-0x1); /* 0x380343ED: lea esi, [ecx - 1] */
  27071 L_380343F0:
  27072     ebx = MEM32(eax + 0xC); /* 0x380343F0: mov ebx, dword ptr [eax + 0xc] */
  27073     fp_push(*(float*)&MEM32(ebx + esi * 4)); /* 0x380343F3: fld dword ptr [ebx + esi*4] */
  27074     ebx = esi; /* 0x380343F6: mov ebx, esi */
  27075     MEM32(ebp + (-0x34)) = esi; /* 0x380343F8: mov dword ptr [ebp - 0x34], esi */
  27076     esi = MEM32(eax + 0x8); /* 0x380343FB: mov esi, dword ptr [eax + 8] */
  27077     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x380343FE: fld dword ptr [esi + ebx*4] */
  27078     esi = MEM32(eax + 0x4); /* 0x38034401: mov esi, dword ptr [eax + 4] */
  27079     ebx = MEM32(ebp + (-0x34)); /* 0x38034404: mov ebx, dword ptr [ebp - 0x34] */
  27080     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x38034407: fld dword ptr [esi + ebx*4] */
  27081     esi = MEM32(edi + 0x90); /* 0x3803440A: mov esi, dword ptr [edi + 0x90] */
  27082     esi = esi + edx + 0xC; /* 0x38034410: lea esi, [esi + edx + 0xc] */
  27083     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38034414: fstp dword ptr [ebp - 0x7c] */
  27084     ebx = MEM32(ebp + (-0x7C)); /* 0x38034417: mov ebx, dword ptr [ebp - 0x7c] */
  27085     MEM32(esi) = ebx; /* 0x3803441A: mov dword ptr [esi], ebx */
  27086     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x3803441C: fstp dword ptr [ebp - 0x78] */
  27087     ebx = MEM32(ebp + (-0x78)); /* 0x3803441F: mov ebx, dword ptr [ebp - 0x78] */
  27088     MEM32(esi + 0x4) = ebx; /* 0x38034422: mov dword ptr [esi + 4], ebx */
  27089     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38034425: fstp dword ptr [ebp - 0x74] */
  27090     ebx = MEM32(ebp + (-0x74)); /* 0x38034428: mov ebx, dword ptr [ebp - 0x74] */
  27091     MEM32(esi + 0x8) = ebx; /* 0x3803442B: mov dword ptr [esi + 8], ebx */
  27092     esi = MEM32(eax + 0xC); /* 0x3803442E: mov esi, dword ptr [eax + 0xc] */
  27093     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034431: fld dword ptr [esi + ecx*4] */
  27094     esi = MEM32(eax + 0x8); /* 0x38034434: mov esi, dword ptr [eax + 8] */
  27095     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034437: fld dword ptr [esi + ecx*4] */
  27096     esi = MEM32(eax + 0x4); /* 0x3803443A: mov esi, dword ptr [eax + 4] */
  27097     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x3803443D: fld dword ptr [esi + ecx*4] */
  27098     esi = MEM32(edi + 0x90); /* 0x38034440: mov esi, dword ptr [edi + 0x90] */
  27099     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x38034446: fstp dword ptr [ebp - 0x94] */
  27100     ebx = MEM32(ebp + (-0x94)); /* 0x3803444C: mov ebx, dword ptr [ebp - 0x94] */
  27101     esi = esi + edx + 0x18; /* 0x38034452: lea esi, [esi + edx + 0x18] */
  27102     MEM32(esi) = ebx; /* 0x38034456: mov dword ptr [esi], ebx */
  27103     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x38034458: fstp dword ptr [ebp - 0x90] */
  27104     ebx = MEM32(ebp + (-0x90)); /* 0x3803445E: mov ebx, dword ptr [ebp - 0x90] */
  27105     MEM32(esi + 0x4) = ebx; /* 0x38034464: mov dword ptr [esi + 4], ebx */
  27106     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x38034467: fstp dword ptr [ebp - 0x8c] */
  27107     ebx = MEM32(ebp + (-0x8C)); /* 0x3803446D: mov ebx, dword ptr [ebp - 0x8c] */
  27108     MEM32(esi + 0x8) = ebx; /* 0x38034473: mov dword ptr [esi + 8], ebx */
  27109     ebx = MEM32(ebp + 0xC); /* 0x38034476: mov ebx, dword ptr [ebp + 0xc] */
  27110     esi = MEM32(eax); /* 0x38034479: mov esi, dword ptr [eax] */
  27111     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  27112     ebx = ebx + 1; /* 0x3803447B: inc ebx */
  27113     _flag_k = FK_INC;
  27114     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  27115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27116     edx = edx + 0x28u; /* 0x3803447C: add edx, 0x28 */
  27117     _flag_k = FK_ADD;
  27118     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  27119     ecx = ecx + 1; /* 0x3803447F: inc ecx */
  27120     _flag_k = FK_INC;
  27121     /* cmp ecx, esi */ /* 0x38034480: cmp ecx, esi */
  27122     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  27123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27124     _flag_k = FK_CMP;
  27125     MEM32(ebp + 0xC) = ebx; /* 0x38034482: mov dword ptr [ebp + 0xc], ebx */
  27126     RECOMP_BACKEDGE();
  27127     if (CMP_B(_flag_a, _flag_b)) goto L_380343BC; /* 0x38034485: jb 0x380343bc */
  27128 L_3803448B:
  27129     goto L_3803459F; /* 0x3803448B: jmp 0x3803459f */
  27130 L_38034490:
  27131     ecx = MEM32(eax + 0x10); /* 0x38034490: mov ecx, dword ptr [eax + 0x10] */
  27132     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27133     esi = 0; /* 0x38034493: xor esi, esi */
  27134     _cf = 0;
  27135     _flag_k = FK_TEST;
  27136     /* test ecx, ecx */ /* 0x38034495: test ecx, ecx */
  27137     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  27138     _cf = 0;
  27139     _flag_k = FK_TEST;
  27140     if (TEST_Z(_flag_a, _flag_b)) goto L_3803459F; /* 0x38034497: jbe 0x3803459f */
  27141 L_3803449D:
  27142     edx = MEM32(ebp + 0xC); /* 0x3803449D: mov edx, dword ptr [ebp + 0xc] */
  27143     edx = edx + edx * 4; /* 0x380344A0: lea edx, [edx + edx*4] */
  27144     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380344A3: shl edx, 3 */
  27145     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27146     edx = edx << 3u; /* 0x380344A3: shl edx, 3 */
  27147 L_380344A6:
  27148     ecx = MEM32(edi + 0x90); /* 0x380344A6: mov ecx, dword ptr [edi + 0x90] */
  27149     ebx = MEM32(eax + (-0x4)); /* 0x380344AC: mov ebx, dword ptr [eax - 4] */
  27150     MEM32(ecx + edx + 0x24) = ebx; /* 0x380344AF: mov dword ptr [ecx + edx + 0x24], ebx */
  27151     ecx = MEM32(eax + 0x14); /* 0x380344B3: mov ecx, dword ptr [eax + 0x14] */
  27152     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27153     ebx = 0; /* 0x380344B6: xor ebx, ebx */
  27154     _cf = 0;
  27155     _flag_k = FK_TEST;
  27156     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344B8: mov bx, word ptr [ecx + esi*2] */
  27157     ecx = ebx; /* 0x380344BC: mov ecx, ebx */
  27158     ebx = MEM32(eax + 0xC); /* 0x380344BE: mov ebx, dword ptr [eax + 0xc] */
  27159     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x380344C1: shl ecx, 2 */
  27160     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27161     ecx = ecx << 2u; /* 0x380344C1: shl ecx, 2 */
  27162     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344C4: fld dword ptr [ecx + ebx] */
  27163     ebx = MEM32(eax + 0x8); /* 0x380344C7: mov ebx, dword ptr [eax + 8] */
  27164     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344CA: fld dword ptr [ecx + ebx] */
  27165     ebx = MEM32(eax + 0x4); /* 0x380344CD: mov ebx, dword ptr [eax + 4] */
  27166     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344D0: fld dword ptr [ecx + ebx] */
  27167     ecx = MEM32(edi + 0x90); /* 0x380344D3: mov ecx, dword ptr [edi + 0x90] */
  27168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  27169     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27170     ecx = ecx + edx; /* 0x380344D9: add ecx, edx */
  27171     _flag_k = FK_ADD;
  27172     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x380344DB: fstp dword ptr [ebp - 0x70] */
  27173     ebx = MEM32(ebp + (-0x70)); /* 0x380344DE: mov ebx, dword ptr [ebp - 0x70] */
  27174     MEM32(ecx) = ebx; /* 0x380344E1: mov dword ptr [ecx], ebx */
  27175     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x380344E3: fstp dword ptr [ebp - 0x6c] */
  27176     ebx = MEM32(ebp + (-0x6C)); /* 0x380344E6: mov ebx, dword ptr [ebp - 0x6c] */
  27177     MEM32(ecx + 0x4) = ebx; /* 0x380344E9: mov dword ptr [ecx + 4], ebx */
  27178     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x380344EC: fstp dword ptr [ebp - 0x68] */
  27179     ebx = MEM32(ebp + (-0x68)); /* 0x380344EF: mov ebx, dword ptr [ebp - 0x68] */
  27180     MEM32(ecx + 0x8) = ebx; /* 0x380344F2: mov dword ptr [ecx + 8], ebx */
  27181     ecx = MEM32(eax + 0x18); /* 0x380344F5: mov ecx, dword ptr [eax + 0x18] */
  27182     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27183     ebx = 0; /* 0x380344F8: xor ebx, ebx */
  27184     _cf = 0;
  27185     _flag_k = FK_TEST;
  27186     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344FA: mov bx, word ptr [ecx + esi*2] */
  27187     ecx = ebx; /* 0x380344FE: mov ecx, ebx */
  27188     ebx = MEM32(eax + 0xC); /* 0x38034500: mov ebx, dword ptr [eax + 0xc] */
  27189     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034503: shl ecx, 2 */
  27190     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27191     ecx = ecx << 2u; /* 0x38034503: shl ecx, 2 */
  27192     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034506: fld dword ptr [ecx + ebx] */
  27193     ebx = MEM32(eax + 0x8); /* 0x38034509: mov ebx, dword ptr [eax + 8] */
  27194     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803450C: fld dword ptr [ecx + ebx] */
  27195     ebx = MEM32(eax + 0x4); /* 0x3803450F: mov ebx, dword ptr [eax + 4] */
  27196     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034512: fld dword ptr [ecx + ebx] */
  27197     ecx = MEM32(edi + 0x90); /* 0x38034515: mov ecx, dword ptr [edi + 0x90] */
  27198     ecx = ecx + edx + 0xC; /* 0x3803451B: lea ecx, [ecx + edx + 0xc] */
  27199     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x3803451F: fstp dword ptr [ebp - 0x88] */
  27200     ebx = MEM32(ebp + (-0x88)); /* 0x38034525: mov ebx, dword ptr [ebp - 0x88] */
  27201     MEM32(ecx) = ebx; /* 0x3803452B: mov dword ptr [ecx], ebx */
  27202     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3803452D: fstp dword ptr [ebp - 0x84] */
  27203     ebx = MEM32(ebp + (-0x84)); /* 0x38034533: mov ebx, dword ptr [ebp - 0x84] */
  27204     MEM32(ecx + 0x4) = ebx; /* 0x38034539: mov dword ptr [ecx + 4], ebx */
  27205     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803453C: fstp dword ptr [ebp - 0x80] */
  27206     ebx = MEM32(ebp + (-0x80)); /* 0x3803453F: mov ebx, dword ptr [ebp - 0x80] */
  27207     MEM32(ecx + 0x8) = ebx; /* 0x38034542: mov dword ptr [ecx + 8], ebx */
  27208     ecx = MEM32(eax + 0x1C); /* 0x38034545: mov ecx, dword ptr [eax + 0x1c] */
  27209     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27210     ebx = 0; /* 0x38034548: xor ebx, ebx */
  27211     _cf = 0;
  27212     _flag_k = FK_TEST;
  27213     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x3803454A: mov bx, word ptr [ecx + esi*2] */
  27214     ecx = ebx; /* 0x3803454E: mov ecx, ebx */
  27215     ebx = MEM32(eax + 0xC); /* 0x38034550: mov ebx, dword ptr [eax + 0xc] */
  27216     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034553: shl ecx, 2 */
  27217     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27218     ecx = ecx << 2u; /* 0x38034553: shl ecx, 2 */
  27219     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034556: fld dword ptr [ecx + ebx] */
  27220     ebx = MEM32(eax + 0x8); /* 0x38034559: mov ebx, dword ptr [eax + 8] */
  27221     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803455C: fld dword ptr [ecx + ebx] */
  27222     ebx = MEM32(eax + 0x4); /* 0x3803455F: mov ebx, dword ptr [eax + 4] */
  27223     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034562: fld dword ptr [ecx + ebx] */
  27224     ecx = MEM32(edi + 0x90); /* 0x38034565: mov ecx, dword ptr [edi + 0x90] */
  27225     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3803456B: fstp dword ptr [ebp - 0x54] */
  27226     ebx = MEM32(ebp + (-0x54)); /* 0x3803456E: mov ebx, dword ptr [ebp - 0x54] */
  27227     ecx = ecx + edx + 0x18; /* 0x38034571: lea ecx, [ecx + edx + 0x18] */
  27228     MEM32(ecx) = ebx; /* 0x38034575: mov dword ptr [ecx], ebx */
  27229     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x38034577: fstp dword ptr [ebp - 0x50] */
  27230     ebx = MEM32(ebp + (-0x50)); /* 0x3803457A: mov ebx, dword ptr [ebp - 0x50] */
  27231     MEM32(ecx + 0x4) = ebx; /* 0x3803457D: mov dword ptr [ecx + 4], ebx */
  27232     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x38034580: fstp dword ptr [ebp - 0x4c] */
  27233     ebx = MEM32(ebp + (-0x4C)); /* 0x38034583: mov ebx, dword ptr [ebp - 0x4c] */
  27234     MEM32(ecx + 0x8) = ebx; /* 0x38034586: mov dword ptr [ecx + 8], ebx */
  27235     ebx = MEM32(ebp + 0xC); /* 0x38034589: mov ebx, dword ptr [ebp + 0xc] */
  27236     ecx = MEM32(eax + 0x10); /* 0x3803458C: mov ecx, dword ptr [eax + 0x10] */
  27237     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  27238     ebx = ebx + 1; /* 0x3803458F: inc ebx */
  27239     _flag_k = FK_INC;
  27240     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  27241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27242     edx = edx + 0x28u; /* 0x38034590: add edx, 0x28 */
  27243     _flag_k = FK_ADD;
  27244     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  27245     esi = esi + 1; /* 0x38034593: inc esi */
  27246     _flag_k = FK_INC;
  27247     /* cmp esi, ecx */ /* 0x38034594: cmp esi, ecx */
  27248     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  27249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27250     _flag_k = FK_CMP;
  27251     MEM32(ebp + 0xC) = ebx; /* 0x38034596: mov dword ptr [ebp + 0xc], ebx */
  27252     RECOMP_BACKEDGE();
  27253     if (CMP_B(_flag_a, _flag_b)) goto L_380344A6; /* 0x38034599: jb 0x380344a6 */
  27254 L_3803459F:
  27255     ecx = MEM32(ebp + (-0x2C)); /* 0x3803459F: mov ecx, dword ptr [ebp - 0x2c] */
  27256     edx = MEM32(ebp + (-0x30)); /* 0x380345A2: mov edx, dword ptr [ebp - 0x30] */
  27257     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  27258     ecx = ecx + 1; /* 0x380345A5: inc ecx */
  27259     _flag_k = FK_INC;
  27260     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  27261     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27262     eax = eax + 0x24u; /* 0x380345A6: add eax, 0x24 */
  27263     _flag_k = FK_ADD;
  27264     /* cmp ecx, edx */ /* 0x380345A9: cmp ecx, edx */
  27265     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  27266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27267     _flag_k = FK_CMP;
  27268     MEM32(ebp + (-0x2C)) = ecx; /* 0x380345AB: mov dword ptr [ebp - 0x2c], ecx */
  27269     RECOMP_BACKEDGE();
  27270     if (CMP_B(_flag_a, _flag_b)) goto L_380342D4; /* 0x380345AE: jb 0x380342d4 */
  27271 L_380345B4:
  27272     eax = MEM32(ebp + 0xC); /* 0x380345B4: mov eax, dword ptr [ebp + 0xc] */
  27273     /* cmp eax, MEM32(edi + 0x8C) */ /* 0x380345B7: cmp eax, dword ptr [edi + 0x8c] */
  27274     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8C));
  27275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27276     _flag_k = FK_CMP;
  27277     if (CMP_AE(_flag_a, _flag_b)) goto L_380345CD; /* 0x380345BD: jae 0x380345cd */
  27278 L_380345BF:
  27279     MEM32(edi + 0x8C) = eax; /* 0x380345BF: mov dword ptr [edi + 0x8c], eax */
  27280     goto L_380345CD; /* 0x380345C5: jmp 0x380345cd */
  27281 L_380345CD:
  27282     eax = MEM32(edi + 0x8C); /* 0x380345CD: mov eax, dword ptr [edi + 0x8c] */
  27283     /* test eax, eax */ /* 0x380345D3: test eax, eax */
  27284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27285     _cf = 0;
  27286     _flag_k = FK_TEST;
  27287     if (TEST_Z(_flag_a, _flag_b)) goto L_380345EA; /* 0x380345D5: je 0x380345ea */
  27288 L_380345D7:
  27289     edx = MEM32(edi + 0x90); /* 0x380345D7: mov edx, dword ptr [edi + 0x90] */
  27290     PUSH32(esp, edx); /* 0x380345DD: push edx */
  27291     PUSH32(esp, eax); /* 0x380345DE: push eax */
  27292     eax = MEM32(edi + 0x44); /* 0x380345DF: mov eax, dword ptr [edi + 0x44] */
  27293     PUSH32(esp, eax); /* 0x380345E2: push eax */
  27294     ecx = edi; /* 0x380345E3: mov ecx, edi */
  27295     RECOMP_ICALL(0x3803F2F0u); /* 0x380345E5: call 0x3803f2f0 */ /* not lifted */
  27296     RECOMP_FLAGS_IN();
  27297 L_380345EA:
  27298     eax = MEM32(ebp + (-0x30)); /* 0x380345EA: mov eax, dword ptr [ebp - 0x30] */
  27299     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27300     esi = 0; /* 0x380345ED: xor esi, esi */
  27301     _cf = 0;
  27302     _flag_k = FK_TEST;
  27303     /* test eax, eax */ /* 0x380345EF: test eax, eax */
  27304     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27305     _cf = 0;
  27306     _flag_k = FK_TEST;
  27307     if (TEST_Z(_flag_a, _flag_b)) goto L_38034663; /* 0x380345F1: jbe 0x38034663 */
  27308 L_380345F3:
  27309     ecx = MEM32(ebp + (-0x38)); /* 0x380345F3: mov ecx, dword ptr [ebp - 0x38] */
  27310     ebx = ecx + 0xC; /* 0x380345F6: lea ebx, [ecx + 0xc] */
  27311 L_380345F9:
  27312     eax = MEM32(ebx + (-0x4)); /* 0x380345F9: mov eax, dword ptr [ebx - 4] */
  27313     /* test eax, eax */ /* 0x380345FC: test eax, eax */
  27314     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27315     _cf = 0;
  27316     _flag_k = FK_TEST;
  27317     if (TEST_Z(_flag_a, _flag_b)) goto L_38034609; /* 0x380345FE: je 0x38034609 */
  27318 L_38034600:
  27319     PUSH32(esp, eax); /* 0x38034600: push eax */
  27320     RECOMP_ICALL(0x3804B4F6u); /* 0x38034601: call 0x3804b4f6 */ /* not lifted */
  27321     RECOMP_FLAGS_IN();
  27322     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27323     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27324     esp = esp + 4; /* 0x38034606: add esp, 4 */
  27325     _flag_k = FK_ADD;
  27326 L_38034609:
  27327     eax = MEM32(ebx); /* 0x38034609: mov eax, dword ptr [ebx] */
  27328     /* test eax, eax */ /* 0x3803460B: test eax, eax */
  27329     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27330     _cf = 0;
  27331     _flag_k = FK_TEST;
  27332     if (TEST_Z(_flag_a, _flag_b)) goto L_38034618; /* 0x3803460D: je 0x38034618 */
  27333 L_3803460F:
  27334     PUSH32(esp, eax); /* 0x3803460F: push eax */
  27335     RECOMP_ICALL(0x3804B4F6u); /* 0x38034610: call 0x3804b4f6 */ /* not lifted */
  27336     RECOMP_FLAGS_IN();
  27337     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27338     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27339     esp = esp + 4; /* 0x38034615: add esp, 4 */
  27340     _flag_k = FK_ADD;
  27341 L_38034618:
  27342     eax = MEM32(ebx + 0x4); /* 0x38034618: mov eax, dword ptr [ebx + 4] */
  27343     /* test eax, eax */ /* 0x3803461B: test eax, eax */
  27344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27345     _cf = 0;
  27346     _flag_k = FK_TEST;
  27347     if (TEST_Z(_flag_a, _flag_b)) goto L_38034628; /* 0x3803461D: je 0x38034628 */
  27348 L_3803461F:
  27349     PUSH32(esp, eax); /* 0x3803461F: push eax */
  27350     RECOMP_ICALL(0x3804B4F6u); /* 0x38034620: call 0x3804b4f6 */ /* not lifted */
  27351     RECOMP_FLAGS_IN();
  27352     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27353     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27354     esp = esp + 4; /* 0x38034625: add esp, 4 */
  27355     _flag_k = FK_ADD;
  27356 L_38034628:
  27357     eax = MEM32(ebx + 0xC); /* 0x38034628: mov eax, dword ptr [ebx + 0xc] */
  27358     /* test eax, eax */ /* 0x3803462B: test eax, eax */
  27359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27360     _cf = 0;
  27361     _flag_k = FK_TEST;
  27362     if (TEST_Z(_flag_a, _flag_b)) goto L_38034638; /* 0x3803462D: je 0x38034638 */
  27363 L_3803462F:
  27364     PUSH32(esp, eax); /* 0x3803462F: push eax */
  27365     RECOMP_ICALL(0x3804B4F6u); /* 0x38034630: call 0x3804b4f6 */ /* not lifted */
  27366     RECOMP_FLAGS_IN();
  27367     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27368     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27369     esp = esp + 4; /* 0x38034635: add esp, 4 */
  27370     _flag_k = FK_ADD;
  27371 L_38034638:
  27372     eax = MEM32(ebx + 0x10); /* 0x38034638: mov eax, dword ptr [ebx + 0x10] */
  27373     /* test eax, eax */ /* 0x3803463B: test eax, eax */
  27374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27375     _cf = 0;
  27376     _flag_k = FK_TEST;
  27377     if (TEST_Z(_flag_a, _flag_b)) goto L_38034648; /* 0x3803463D: je 0x38034648 */
  27378 L_3803463F:
  27379     PUSH32(esp, eax); /* 0x3803463F: push eax */
  27380     RECOMP_ICALL(0x3804B4F6u); /* 0x38034640: call 0x3804b4f6 */ /* not lifted */
  27381     RECOMP_FLAGS_IN();
  27382     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27383     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27384     esp = esp + 4; /* 0x38034645: add esp, 4 */
  27385     _flag_k = FK_ADD;
  27386 L_38034648:
  27387     eax = MEM32(ebx + 0x14); /* 0x38034648: mov eax, dword ptr [ebx + 0x14] */
  27388     /* test eax, eax */ /* 0x3803464B: test eax, eax */
  27389     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27390     _cf = 0;
  27391     _flag_k = FK_TEST;
  27392     if (TEST_Z(_flag_a, _flag_b)) goto L_38034658; /* 0x3803464D: je 0x38034658 */
  27393 L_3803464F:
  27394     PUSH32(esp, eax); /* 0x3803464F: push eax */
  27395     RECOMP_ICALL(0x3804B4F6u); /* 0x38034650: call 0x3804b4f6 */ /* not lifted */
  27396     RECOMP_FLAGS_IN();
  27397     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27398     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27399     esp = esp + 4; /* 0x38034655: add esp, 4 */
  27400     _flag_k = FK_ADD;
  27401 L_38034658:
  27402     eax = MEM32(ebp + (-0x30)); /* 0x38034658: mov eax, dword ptr [ebp - 0x30] */
  27403     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  27404     esi = esi + 1; /* 0x3803465B: inc esi */
  27405     _flag_k = FK_INC;
  27406     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
  27407     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27408     ebx = ebx + 0x24u; /* 0x3803465C: add ebx, 0x24 */
  27409     _flag_k = FK_ADD;
  27410     /* cmp esi, eax */ /* 0x3803465F: cmp esi, eax */
  27411     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  27412     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27413     _flag_k = FK_CMP;
  27414     RECOMP_BACKEDGE();
  27415     if (CMP_B(_flag_a, _flag_b)) goto L_380345F9; /* 0x38034661: jb 0x380345f9 */
  27416 L_38034663:
  27417     edx = MEM32(ebp + (-0x38)); /* 0x38034663: mov edx, dword ptr [ebp - 0x38] */
  27418     PUSH32(esp, edx); /* 0x38034666: push edx */
  27419     RECOMP_ICALL(0x3804B4F6u); /* 0x38034667: call 0x3804b4f6 */ /* not lifted */
  27420     RECOMP_FLAGS_IN();
  27421     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27423     esp = esp + 4; /* 0x3803466C: add esp, 4 */
  27424     _flag_k = FK_ADD;
  27425     goto L_38034677; /* 0x3803466F: jmp 0x38034677 */
  27426 L_38034677:
  27427     esi = MEM32(edi + 0xC); /* 0x38034677: mov esi, dword ptr [edi + 0xc] */
  27428     ecx = edi; /* 0x3803467A: mov ecx, edi */
  27429     RECOMP_ICALL(0x380303E0u); /* 0x3803467C: call 0x380303e0 */ /* not lifted */
  27430     RECOMP_FLAGS_IN();
  27431     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x38034681: shl eax, 0x10 */
  27432     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27433     eax = eax << 16u; /* 0x38034681: shl eax, 0x10 */
  27434     _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi));
  27435     eax = eax | esi; /* 0x38034684: or eax, esi */
  27436     _cf = 0;
  27437     _flag_k = FK_TEST;
  27438     MEM32(edi + 0x4) = eax; /* 0x38034686: mov dword ptr [edi + 4], eax */
  27439     /* cmp MEM32(edi + 0xAC), 4 */ /* 0x38034689: cmp dword ptr [edi + 0xac], 4 */
  27440     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(4);
  27441     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27442     _flag_k = FK_CMP;
  27443     if (CMP_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x38034690: jle 0x3803498d */
  27444 L_38034696:
  27445     ecx = MEM32(ebp + 0x8); /* 0x38034696: mov ecx, dword ptr [ebp + 8] */
  27446     eax = ebp + (-0x3C); /* 0x38034699: lea eax, [ebp - 0x3c] */
  27447     PUSH32(esp, eax); /* 0x3803469C: push eax */
  27448     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803469D: call dword ptr [0x3804e388] */
  27449     RECOMP_FLAGS_IN();
  27450     eax = MEM32(ebp + (-0x3C)); /* 0x380346A3: mov eax, dword ptr [ebp - 0x3c] */
  27451     /* test eax, eax */ /* 0x380346A6: test eax, eax */
  27452     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27453     _cf = 0;
  27454     _flag_k = FK_TEST;
  27455     MEM32(ebp + (-0x2C)) = 0; /* 0x380346A8: mov dword ptr [ebp - 0x2c], 0 */
  27456     if (TEST_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x380346AF: jle 0x3803498d */
  27457 L_380346B5:
  27458     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  27459     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  27460     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  27461     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  27462     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  27463     PUSH32(esp, edx); /* 0x380346C5: push edx */
  27464     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  27465     PUSH32(esp, eax); /* 0x380346C9: push eax */
  27466     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  27467     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  27468     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  27469     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  27470     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  27471     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  27472     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  27473     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  27474     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  27475     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  27476     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  27477     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  27478     RECOMP_FLAGS_IN();
  27479     ecx = eax; /* 0x38034714: mov ecx, eax */
  27480     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  27481     RECOMP_FLAGS_IN();
  27482     ecx = eax; /* 0x38034718: mov ecx, eax */
  27483     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  27484     RECOMP_FLAGS_IN();
  27485     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  27486     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  27487     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  27488     PUSH32(esp, edx); /* 0x38034723: push edx */
  27489     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  27490     PUSH32(esp, eax); /* 0x38034727: push eax */
  27491     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  27492     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  27493     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  27494     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  27495     RECOMP_FLAGS_IN();
  27496     ecx = eax; /* 0x38034730: mov ecx, eax */
  27497     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  27498     RECOMP_FLAGS_IN();
  27499     ecx = eax; /* 0x38034734: mov ecx, eax */
  27500     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  27501     RECOMP_FLAGS_IN();
  27502     ecx = eax; /* 0x38034738: mov ecx, eax */
  27503     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  27504     RECOMP_FLAGS_IN();
  27505     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  27506     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  27507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27508     _flag_k = FK_CMP;
  27509     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  27510 L_38034745:
  27511     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  27512     PUSH32(esp, edx); /* 0x38034748: push edx */
  27513     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  27514     PUSH32(esp, eax); /* 0x3803474C: push eax */
  27515     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  27516     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  27517     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  27518     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  27519     RECOMP_FLAGS_IN();
  27520     ecx = eax; /* 0x38034755: mov ecx, eax */
  27521     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  27522     RECOMP_FLAGS_IN();
  27523     ecx = eax; /* 0x38034759: mov ecx, eax */
  27524     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  27525     RECOMP_FLAGS_IN();
  27526     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  27527 L_3803475F:
  27528     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  27529     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  27530     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  27531     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  27532     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  27533     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  27534 L_38034771:
  27535     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  27536     PUSH32(esp, edx); /* 0x38034774: push edx */
  27537     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  27538     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  27539     RECOMP_FLAGS_IN();
  27540     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  27541     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  27542     fp_pop();
  27543     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  27544     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  27545     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  27546     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  27547     _cf = 0;
  27548     _flag_k = FK_NARROW(FK_TEST, 24);
  27549     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  27550 L_3803478D:
  27551     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  27552 L_38034791:
  27553     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  27554     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  27555     RECOMP_FLAGS_IN();
  27556     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27558     esp = esp + 4; /* 0x38034798: add esp, 4 */
  27559     _flag_k = FK_ADD;
  27560     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  27561     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27562     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  27563     _cf = 0;
  27564     _flag_k = FK_TEST;
  27565     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  27566     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  27567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27568     _flag_k = FK_CMP;
  27569     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  27570     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  27571 L_380347A7:
  27572     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  27573     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  27574     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  27575     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  27576     PUSH32(esp, edx); /* 0x380347B0: push edx */
  27577     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  27578     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  27579     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  27580     PUSH32(esp, edx); /* 0x380347B8: push edx */
  27581     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  27582     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  27583     ecx = eax; /* 0x380347BD: mov ecx, eax */
  27584     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  27585     RECOMP_FLAGS_IN();
  27586     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  27587     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  27588 L_380347C9:
  27589     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  27590 L_380347CC:
  27591     ecx = edi; /* 0x380347CC: mov ecx, edi */
  27592     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  27593     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  27594     RECOMP_FLAGS_IN();
  27595     ebx = eax; /* 0x380347DA: mov ebx, eax */
  27596     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  27597     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  27598     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  27599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27600     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  27601     _flag_k = FK_CMP;
  27602     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  27603     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27604     edx = (uint32_t)((int32_t)edx >> 2u);
  27605     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  27606     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  27607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27608     _flag_k = FK_CMP;
  27609     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  27610     esi = eax; /* 0x380347ED: mov esi, eax */
  27611     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  27612 L_380347F5:
  27613     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  27614     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  27615     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  27616     _cf = 0;
  27617     _flag_k = FK_TEST;
  27618     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  27619 L_380347FC:
  27620     ecx = eax; /* 0x380347FC: mov ecx, eax */
  27621     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  27622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27623     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  27624     _flag_k = FK_CMP;
  27625     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  27626     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27627     ecx = (uint32_t)((int32_t)ecx >> 2u);
  27628     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  27629     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  27630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27631     _flag_k = FK_CMP;
  27632     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  27633 L_38034808:
  27634     ecx = 1; /* 0x38034808: mov ecx, 1 */
  27635 L_3803480D:
  27636     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  27637     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  27638     _cf = 0;
  27639     _flag_k = FK_TEST;
  27640     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  27641 L_38034811:
  27642     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27643     eax = 0; /* 0x38034811: xor eax, eax */
  27644     _cf = 0;
  27645     _flag_k = FK_TEST;
  27646     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  27647 L_38034815:
  27648     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  27649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27650     eax = eax - edx; /* 0x38034815: sub eax, edx */
  27651     _flag_k = FK_CMP;
  27652     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  27653     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27654     eax = (uint32_t)((int32_t)eax >> 2u);
  27655 L_3803481A:
  27656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  27657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27658     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  27659     _flag_k = FK_ADD;
  27660     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  27661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27662     _cf = 0;
  27663     _flag_k = FK_TEST;
  27664     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  27665     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  27666 L_38034823:
  27667     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27668     eax = 0; /* 0x38034823: xor eax, eax */
  27669     _cf = 0;
  27670     _flag_k = FK_TEST;
  27671 L_38034825:
  27672     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  27673     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27674     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  27675     PUSH32(esp, eax); /* 0x38034828: push eax */
  27676     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  27677     RECOMP_FLAGS_IN();
  27678     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  27679     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27680     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27681     esp = esp + 4; /* 0x38034831: add esp, 4 */
  27682     _flag_k = FK_ADD;
  27683     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  27684     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  27685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27686     _flag_k = FK_CMP;
  27687     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  27688     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  27689 L_3803483B:
  27690     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  27691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27692     _cf = 0;
  27693     _flag_k = FK_TEST;
  27694     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  27695 L_3803483F:
  27696     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  27697     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  27698 L_38034843:
  27699     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  27700     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27701     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  27702     _flag_k = FK_ADD;
  27703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  27704     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27705     eax = eax + 4; /* 0x38034846: add eax, 4 */
  27706     _flag_k = FK_ADD;
  27707     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  27708     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  27709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27710     _flag_k = FK_CMP;
  27711     RECOMP_BACKEDGE();
  27712     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  27713 L_3803484D:
  27714     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  27715     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  27716     _cf = 0;
  27717     _flag_k = FK_TEST;
  27718     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  27719 L_38034851:
  27720     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  27721     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  27722 L_38034856:
  27723     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  27724     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  27725     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  27726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27727     _flag_k = FK_CMP;
  27728     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  27729     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  27730 L_38034860:
  27731     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  27732     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  27733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27734     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  27735     _flag_k = FK_CMP;
  27736     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  27737 L_38034868:
  27738     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  27739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  27740     _cf = 0;
  27741     _flag_k = FK_TEST;
  27742     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  27743 L_3803486C:
  27744     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  27745     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  27746 L_38034870:
  27747     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  27748     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27749     esi = esi + 4; /* 0x38034870: add esi, 4 */
  27750     _flag_k = FK_ADD;
  27751     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  27752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27753     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  27754     _flag_k = FK_ADD;
  27755     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  27756     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  27757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27758     _flag_k = FK_CMP;
  27759     RECOMP_BACKEDGE();
  27760     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  27761 L_3803487A:
  27762     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  27763 L_3803487D:
  27764     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  27765     PUSH32(esp, eax); /* 0x38034880: push eax */
  27766     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  27767     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  27768     RECOMP_FLAGS_IN();
  27769     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  27770     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  27771     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  27772     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  27773     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  27774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27775     esp = esp + 4; /* 0x38034895: add esp, 4 */
  27776     _flag_k = FK_ADD;
  27777     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  27778     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  27779     _cf = 0;
  27780     _flag_k = FK_TEST;
  27781     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  27782     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  27783 L_3803489F:
  27784     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  27785     eax = 0; /* 0x3803489F: xor eax, eax */
  27786     _cf = 0;
  27787     _flag_k = FK_TEST;
  27788     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  27789     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  27790     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  27791     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  27792 L_380348B0:
  27793     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  27794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  27795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27796     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  27797     _flag_k = FK_CMP;
  27798     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  27799     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27800     eax = (uint32_t)((int32_t)eax >> 2u);
  27801     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  27802     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  27803     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  27804     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  27805 L_380348C7:
  27806     ecx = eax; /* 0x380348C7: mov ecx, eax */
  27807     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  27808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27809     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  27810     _flag_k = FK_CMP;
  27811     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  27812     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27813     ecx = (uint32_t)((int32_t)ecx >> 2u);
  27814     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  27815     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  27816     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27817     _flag_k = FK_CMP;
  27818     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  27819 L_380348D3:
  27820     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  27821     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  27822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27823     _flag_k = FK_CMP;
  27824     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  27825     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  27826 L_380348DA:
  27827     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  27828 L_380348DD:
  27829     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  27830     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  27831     _cf = 0;
  27832     _flag_k = FK_TEST;
  27833     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  27834 L_380348E1:
  27835     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  27836     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  27837     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  27838 L_380348E8:
  27839     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  27840     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27841     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  27842     _flag_k = FK_ADD;
  27843     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  27844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27845     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  27846     _flag_k = FK_ADD;
  27847     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  27848     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  27849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27850     _flag_k = FK_CMP;
  27851     RECOMP_BACKEDGE();
  27852     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  27853 L_380348F2:
  27854     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  27855     edx = ecx; /* 0x380348F5: mov edx, ecx */
  27856     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  27857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27858     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  27859     _flag_k = FK_CMP;
  27860     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  27861     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  27862     edx = (uint32_t)((int32_t)edx >> 2u);
  27863     eax = 1; /* 0x380348FC: mov eax, 1 */
  27864     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  27865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27866     eax = eax - edx; /* 0x38034901: sub eax, edx */
  27867     _flag_k = FK_CMP;
  27868     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  27869     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  27870 L_38034908:
  27871     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  27872     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  27873     _cf = 0;
  27874     _flag_k = FK_TEST;
  27875     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  27876 L_3803490C:
  27877     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  27878 L_3803490E:
  27879     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  27880     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27881     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  27882     _flag_k = FK_ADD;
  27883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  27884     eax = eax - 1; /* 0x38034911: dec eax */
  27885     _flag_k = FK_DEC;
  27886     RECOMP_BACKEDGE();
  27887     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  27888 L_38034914:
  27889     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  27890     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  27891     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  27892     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27893     _flag_k = FK_CMP;
  27894     eax = esi; /* 0x38034919: mov eax, esi */
  27895     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  27896 L_3803491D:
  27897     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  27898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  27899     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27900     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  27901     _flag_k = FK_ADD;
  27902     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  27903     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  27904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27905     _flag_k = FK_CMP;
  27906     RECOMP_BACKEDGE();
  27907     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  27908 L_38034926:
  27909     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  27910 L_38034928:
  27911     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  27912     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  27913     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  27914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27915     _flag_k = FK_CMP;
  27916     edx = eax; /* 0x3803492D: mov edx, eax */
  27917     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  27918     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  27919 L_38034934:
  27920     /* test edx, edx */ /* 0x38034934: test edx, edx */
  27921     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  27922     _cf = 0;
  27923     _flag_k = FK_TEST;
  27924     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  27925 L_38034938:
  27926     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  27927     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  27928     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  27929 L_3803493F:
  27930     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  27931     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27932     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  27933     _flag_k = FK_ADD;
  27934     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  27935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27936     edx = edx + 4; /* 0x38034942: add edx, 4 */
  27937     _flag_k = FK_ADD;
  27938     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  27939     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  27940     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27941     _flag_k = FK_CMP;
  27942     RECOMP_BACKEDGE();
  27943     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  27944 L_38034949:
  27945     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  27946     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  27947     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  27948     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  27949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27950     _flag_k = FK_CMP;
  27951     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  27952 L_38034953:
  27953     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  27954     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  27955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27956     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  27957     _flag_k = FK_CMP;
  27958     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  27959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27960     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  27961     _flag_k = FK_CMP;
  27962     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  27963     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  27964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27965     _flag_k = FK_CMP;
  27966     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  27967     RECOMP_BACKEDGE();
  27968     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  27969 L_38034962:
  27970     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  27971     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  27972     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  27973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27974     _flag_k = FK_CMP;
  27975     eax = esi; /* 0x38034967: mov eax, esi */
  27976     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  27977 L_3803496B:
  27978     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  27979 L_3803496E:
  27980     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  27981     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  27982     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27983     eax = eax + 4; /* 0x38034970: add eax, 4 */
  27984     _flag_k = FK_ADD;
  27985     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  27986     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  27987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  27988     _flag_k = FK_CMP;
  27989     RECOMP_BACKEDGE();
  27990     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  27991 L_38034977:
  27992     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  27993     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  27994     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  27995     _flag_k = FK_ADD;
  27996 L_3803497B:
  27997     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  27998     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  27999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  28000     eax = eax + 1; /* 0x38034981: inc eax */
  28001     _flag_k = FK_INC;
  28002     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  28003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  28004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28005     _flag_k = FK_CMP;
  28006     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  28007     RECOMP_BACKEDGE();
  28008     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  28009 L_3803498D:
  28010     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  28011     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  28012     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  28013     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  28014     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  28015     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  28016     esp = ebp; /* 0x3803499D: mov esp, ebp */
  28017     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  28018     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  28019     RECOMP_REGS_OUT();
  28020 }
  28021 
  28022 void sub_3803459F(void) {
  28023     int _fpu_cmp = 0;
  28024     uint32_t _cf = 0;
  28025     int _df = 1;
  28026     uint32_t _flag_k = FK_NONE;
  28027     uint32_t _flag_a = 0, _flag_b = 0;
  28028     uint32_t _itail_tgt = 0;
  28029     RECOMP_REGS_LOCALS
  28030     RECOMP_ENTER(0x3803459Fu);
  28031 
  28032     goto L_3803459F;
  28033 L_380342D4:
  28034     ecx = MEM32(eax + (-0x4)); /* 0x380342D4: mov ecx, dword ptr [eax - 4] */
  28035     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  28036     ecx = ecx & 1; /* 0x380342D7: and ecx, 1 */
  28037     _cf = 0;
  28038     _flag_k = FK_TEST;
  28039     /* cmp LO8(ecx), 1 */ /* 0x380342DA: cmp cl, 1 */
  28040     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  28041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28042     _flag_k = FK_NARROW(FK_CMP, 24);
  28043     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342DD: je 0x38034490 */
  28044 L_380342E3:
  28045     edx = MEM32(eax); /* 0x380342E3: mov edx, dword ptr [eax] */
  28046     /* cmp edx, 3 */ /* 0x380342E5: cmp edx, 3 */
  28047     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3);
  28048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28049     _flag_k = FK_CMP;
  28050     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034490; /* 0x380342E8: je 0x38034490 */
  28051 L_380342EE:
  28052     /* test edx, edx */ /* 0x380342EE: test edx, edx */
  28053     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  28054     _cf = 0;
  28055     _flag_k = FK_TEST;
  28056     MEM32(ebp + (-0xA0)) = 0; /* 0x380342F0: mov dword ptr [ebp - 0xa0], 0 */
  28057     ecx = MEM32(ebp + (-0xA0)); /* 0x380342FA: mov ecx, dword ptr [ebp - 0xa0] */
  28058     MEM32(ebp + (-0x24)) = ecx; /* 0x38034300: mov dword ptr [ebp - 0x24], ecx */
  28059     MEM32(ebp + (-0x9C)) = 0; /* 0x38034303: mov dword ptr [ebp - 0x9c], 0 */
  28060     ecx = MEM32(ebp + (-0x9C)); /* 0x3803430D: mov ecx, dword ptr [ebp - 0x9c] */
  28061     MEM32(ebp + (-0x98)) = 0; /* 0x38034313: mov dword ptr [ebp - 0x98], 0 */
  28062     MEM32(ebp + (-0x20)) = ecx; /* 0x3803431D: mov dword ptr [ebp - 0x20], ecx */
  28063     ecx = MEM32(ebp + (-0x98)); /* 0x38034320: mov ecx, dword ptr [ebp - 0x98] */
  28064     MEM32(ebp + (-0x1C)) = ecx; /* 0x38034326: mov dword ptr [ebp - 0x1c], ecx */
  28065     if (TEST_Z(_flag_a, _flag_b)) goto L_38034374; /* 0x38034329: jbe 0x38034374 */
  28066 L_3803432B:
  28067     ecx = MEM32(eax + 0x8); /* 0x3803432B: mov ecx, dword ptr [eax + 8] */
  28068     esi = MEM32(eax + 0xC); /* 0x3803432E: mov esi, dword ptr [eax + 0xc] */
  28069     ebx = MEM32(eax + 0x4); /* 0x38034331: mov ebx, dword ptr [eax + 4] */
  28070     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  28071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28072     esi = esi - ecx; /* 0x38034334: sub esi, ecx */
  28073     _flag_k = FK_CMP;
  28074     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
  28075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28076     ebx = ebx - ecx; /* 0x38034336: sub ebx, ecx */
  28077     _flag_k = FK_CMP;
  28078     MEM32(ebp + (-0x3C)) = ebx; /* 0x38034338: mov dword ptr [ebp - 0x3c], ebx */
  28079     MEM32(ebp + (-0x28)) = edx; /* 0x3803433B: mov dword ptr [ebp - 0x28], edx */
  28080 L_3803433E:
  28081     fp_push(*(float*)&MEM32(esi + ecx)); /* 0x3803433E: fld dword ptr [esi + ecx] */
  28082     ebx = MEM32(ebp + (-0x3C)); /* 0x38034341: mov ebx, dword ptr [ebp - 0x3c] */
  28083     fp_push(*(float*)&MEM32(ecx)); /* 0x38034344: fld dword ptr [ecx] */
  28084     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  28085     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28086     ecx = ecx + 4; /* 0x38034346: add ecx, 4 */
  28087     _flag_k = FK_ADD;
  28088     fp_push(*(float*)&MEM32(ebx + ecx + (-0x4))); /* 0x38034349: fld dword ptr [ebx + ecx - 4] */
  28089     ebx = MEM32(ebp + (-0x28)); /* 0x3803434D: mov ebx, dword ptr [ebp - 0x28] */
  28090     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034350: fld dword ptr [ebp - 0x24] */
  28091     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  28092     ebx = ebx - 1; /* 0x38034353: dec ebx */
  28093     _flag_k = FK_DEC;
  28094     _st[0] += _st[1]; /* 0x38034354: fadd st(1) */
  28095     MEM32(ebp + (-0x28)) = ebx; /* 0x38034356: mov dword ptr [ebp - 0x28], ebx */
  28096     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x38034359: fstp dword ptr [ebp - 0x24] */
  28097     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803435C: fstp st(0) */
  28098     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3803435E: fld dword ptr [ebp - 0x20] */
  28099     _st[0] += _st[1]; /* 0x38034361: fadd st(1) */
  28100     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38034363: fstp dword ptr [ebp - 0x20] */
  28101     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034366: fstp st(0) */
  28102     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x38034368: fld dword ptr [ebp - 0x1c] */
  28103     _st[0] += _st[1]; /* 0x3803436B: fadd st(1) */
  28104     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3803436D: fstp dword ptr [ebp - 0x1c] */
  28105     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38034370: fstp st(0) */
  28106     RECOMP_BACKEDGE();
  28107     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3803433E; /* 0x38034372: jne 0x3803433e */
  28108 L_38034374:
  28109     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28110     ecx = 0; /* 0x38034374: xor ecx, ecx */
  28111     _cf = 0;
  28112     _flag_k = FK_TEST;
  28113     /* cmp edx, ecx */ /* 0x38034376: cmp edx, ecx */
  28114     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  28115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28116     _flag_k = FK_CMP;
  28117     MEM32(ebp + (-0x44)) = edx; /* 0x38034378: mov dword ptr [ebp - 0x44], edx */
  28118     MEM32(ebp + (-0x40)) = ecx; /* 0x3803437B: mov dword ptr [ebp - 0x40], ecx */
  28119     fp_push_i64((int64_t)MEM64(ebp + (-0x44))); /* 0x3803437E: fild qword ptr [ebp - 0x44] */
  28120     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38034381: fld dword ptr [ebp - 0x24] */
  28121     esi = MEM32(ebp + (-0x24)); /* 0x38034384: mov esi, dword ptr [ebp - 0x24] */
  28122     MEM32(ebp + (-0x18)) = esi; /* 0x38034387: mov dword ptr [ebp - 0x18], esi */
  28123     _st[0] /= _st[1]; /* 0x3803438A: fdiv st(1) */
  28124     esi = MEM32(ebp + (-0x20)); /* 0x3803438C: mov esi, dword ptr [ebp - 0x20] */
  28125     MEM32(ebp + (-0x14)) = esi; /* 0x3803438F: mov dword ptr [ebp - 0x14], esi */
  28126     esi = MEM32(ebp + (-0x1C)); /* 0x38034392: mov esi, dword ptr [ebp - 0x1c] */
  28127     MEM32(ebp + (-0x10)) = esi; /* 0x38034395: mov dword ptr [ebp - 0x10], esi */
  28128     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x38034398: fstp dword ptr [ebp - 0x18] */
  28129     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3803439B: fld dword ptr [ebp - 0x14] */
  28130     _st[0] /= _st[1]; /* 0x3803439E: fdiv st(1) */
  28131     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x380343A0: fstp dword ptr [ebp - 0x14] */
  28132     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x380343A3: fld dword ptr [ebp - 0x10] */
  28133     _st[0] /= _st[1]; /* 0x380343A6: fdiv st(1) */
  28134     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x380343A8: fstp dword ptr [ebp - 0x10] */
  28135     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380343AB: fstp st(0) */
  28136     if (CMP_BE(_flag_a, _flag_b)) goto L_3803459F; /* 0x380343AD: jbe 0x3803459f */
  28137 L_380343B3:
  28138     edx = MEM32(ebp + 0xC); /* 0x380343B3: mov edx, dword ptr [ebp + 0xc] */
  28139     edx = edx + edx * 4; /* 0x380343B6: lea edx, [edx + edx*4] */
  28140     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380343B9: shl edx, 3 */
  28141     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28142     edx = edx << 3u; /* 0x380343B9: shl edx, 3 */
  28143 L_380343BC:
  28144     ebx = MEM32(edi + 0x90); /* 0x380343BC: mov ebx, dword ptr [edi + 0x90] */
  28145     esi = eax + (-0x4); /* 0x380343C2: lea esi, [eax - 4] */
  28146     esi = MEM32(esi); /* 0x380343C5: mov esi, dword ptr [esi] */
  28147     MEM32(ebx + edx + 0x24) = esi; /* 0x380343C7: mov dword ptr [ebx + edx + 0x24], esi */
  28148     esi = MEM32(edi + 0x90); /* 0x380343CB: mov esi, dword ptr [edi + 0x90] */
  28149     ebx = MEM32(ebp + (-0x18)); /* 0x380343D1: mov ebx, dword ptr [ebp - 0x18] */
  28150     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  28151     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28152     esi = esi + edx; /* 0x380343D4: add esi, edx */
  28153     _flag_k = FK_ADD;
  28154     /* test ecx, ecx */ /* 0x380343D6: test ecx, ecx */
  28155     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  28156     _cf = 0;
  28157     _flag_k = FK_TEST;
  28158     MEM32(esi) = ebx; /* 0x380343D8: mov dword ptr [esi], ebx */
  28159     ebx = MEM32(ebp + (-0x14)); /* 0x380343DA: mov ebx, dword ptr [ebp - 0x14] */
  28160     MEM32(esi + 0x4) = ebx; /* 0x380343DD: mov dword ptr [esi + 4], ebx */
  28161     ebx = MEM32(ebp + (-0x10)); /* 0x380343E0: mov ebx, dword ptr [ebp - 0x10] */
  28162     MEM32(esi + 0x8) = ebx; /* 0x380343E3: mov dword ptr [esi + 8], ebx */
  28163     if (TEST_NZ(_flag_a, _flag_b)) goto L_380343ED; /* 0x380343E6: jne 0x380343ed */
  28164 L_380343E8:
  28165     esi = MEM32(eax); /* 0x380343E8: mov esi, dword ptr [eax] */
  28166     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  28167     esi = esi - 1; /* 0x380343EA: dec esi */
  28168     _flag_k = FK_DEC;
  28169     goto L_380343F0; /* 0x380343EB: jmp 0x380343f0 */
  28170 L_380343ED:
  28171     esi = ecx + (-0x1); /* 0x380343ED: lea esi, [ecx - 1] */
  28172 L_380343F0:
  28173     ebx = MEM32(eax + 0xC); /* 0x380343F0: mov ebx, dword ptr [eax + 0xc] */
  28174     fp_push(*(float*)&MEM32(ebx + esi * 4)); /* 0x380343F3: fld dword ptr [ebx + esi*4] */
  28175     ebx = esi; /* 0x380343F6: mov ebx, esi */
  28176     MEM32(ebp + (-0x34)) = esi; /* 0x380343F8: mov dword ptr [ebp - 0x34], esi */
  28177     esi = MEM32(eax + 0x8); /* 0x380343FB: mov esi, dword ptr [eax + 8] */
  28178     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x380343FE: fld dword ptr [esi + ebx*4] */
  28179     esi = MEM32(eax + 0x4); /* 0x38034401: mov esi, dword ptr [eax + 4] */
  28180     ebx = MEM32(ebp + (-0x34)); /* 0x38034404: mov ebx, dword ptr [ebp - 0x34] */
  28181     fp_push(*(float*)&MEM32(esi + ebx * 4)); /* 0x38034407: fld dword ptr [esi + ebx*4] */
  28182     esi = MEM32(edi + 0x90); /* 0x3803440A: mov esi, dword ptr [edi + 0x90] */
  28183     esi = esi + edx + 0xC; /* 0x38034410: lea esi, [esi + edx + 0xc] */
  28184     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x38034414: fstp dword ptr [ebp - 0x7c] */
  28185     ebx = MEM32(ebp + (-0x7C)); /* 0x38034417: mov ebx, dword ptr [ebp - 0x7c] */
  28186     MEM32(esi) = ebx; /* 0x3803441A: mov dword ptr [esi], ebx */
  28187     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x3803441C: fstp dword ptr [ebp - 0x78] */
  28188     ebx = MEM32(ebp + (-0x78)); /* 0x3803441F: mov ebx, dword ptr [ebp - 0x78] */
  28189     MEM32(esi + 0x4) = ebx; /* 0x38034422: mov dword ptr [esi + 4], ebx */
  28190     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x38034425: fstp dword ptr [ebp - 0x74] */
  28191     ebx = MEM32(ebp + (-0x74)); /* 0x38034428: mov ebx, dword ptr [ebp - 0x74] */
  28192     MEM32(esi + 0x8) = ebx; /* 0x3803442B: mov dword ptr [esi + 8], ebx */
  28193     esi = MEM32(eax + 0xC); /* 0x3803442E: mov esi, dword ptr [eax + 0xc] */
  28194     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034431: fld dword ptr [esi + ecx*4] */
  28195     esi = MEM32(eax + 0x8); /* 0x38034434: mov esi, dword ptr [eax + 8] */
  28196     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x38034437: fld dword ptr [esi + ecx*4] */
  28197     esi = MEM32(eax + 0x4); /* 0x3803443A: mov esi, dword ptr [eax + 4] */
  28198     fp_push(*(float*)&MEM32(esi + ecx * 4)); /* 0x3803443D: fld dword ptr [esi + ecx*4] */
  28199     esi = MEM32(edi + 0x90); /* 0x38034440: mov esi, dword ptr [edi + 0x90] */
  28200     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x38034446: fstp dword ptr [ebp - 0x94] */
  28201     ebx = MEM32(ebp + (-0x94)); /* 0x3803444C: mov ebx, dword ptr [ebp - 0x94] */
  28202     esi = esi + edx + 0x18; /* 0x38034452: lea esi, [esi + edx + 0x18] */
  28203     MEM32(esi) = ebx; /* 0x38034456: mov dword ptr [esi], ebx */
  28204     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x38034458: fstp dword ptr [ebp - 0x90] */
  28205     ebx = MEM32(ebp + (-0x90)); /* 0x3803445E: mov ebx, dword ptr [ebp - 0x90] */
  28206     MEM32(esi + 0x4) = ebx; /* 0x38034464: mov dword ptr [esi + 4], ebx */
  28207     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x38034467: fstp dword ptr [ebp - 0x8c] */
  28208     ebx = MEM32(ebp + (-0x8C)); /* 0x3803446D: mov ebx, dword ptr [ebp - 0x8c] */
  28209     MEM32(esi + 0x8) = ebx; /* 0x38034473: mov dword ptr [esi + 8], ebx */
  28210     ebx = MEM32(ebp + 0xC); /* 0x38034476: mov ebx, dword ptr [ebp + 0xc] */
  28211     esi = MEM32(eax); /* 0x38034479: mov esi, dword ptr [eax] */
  28212     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  28213     ebx = ebx + 1; /* 0x3803447B: inc ebx */
  28214     _flag_k = FK_INC;
  28215     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  28216     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28217     edx = edx + 0x28u; /* 0x3803447C: add edx, 0x28 */
  28218     _flag_k = FK_ADD;
  28219     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  28220     ecx = ecx + 1; /* 0x3803447F: inc ecx */
  28221     _flag_k = FK_INC;
  28222     /* cmp ecx, esi */ /* 0x38034480: cmp ecx, esi */
  28223     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  28224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28225     _flag_k = FK_CMP;
  28226     MEM32(ebp + 0xC) = ebx; /* 0x38034482: mov dword ptr [ebp + 0xc], ebx */
  28227     RECOMP_BACKEDGE();
  28228     if (CMP_B(_flag_a, _flag_b)) goto L_380343BC; /* 0x38034485: jb 0x380343bc */
  28229 L_3803448B:
  28230     goto L_3803459F; /* 0x3803448B: jmp 0x3803459f */
  28231 L_38034490:
  28232     ecx = MEM32(eax + 0x10); /* 0x38034490: mov ecx, dword ptr [eax + 0x10] */
  28233     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28234     esi = 0; /* 0x38034493: xor esi, esi */
  28235     _cf = 0;
  28236     _flag_k = FK_TEST;
  28237     /* test ecx, ecx */ /* 0x38034495: test ecx, ecx */
  28238     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  28239     _cf = 0;
  28240     _flag_k = FK_TEST;
  28241     if (TEST_Z(_flag_a, _flag_b)) goto L_3803459F; /* 0x38034497: jbe 0x3803459f */
  28242 L_3803449D:
  28243     edx = MEM32(ebp + 0xC); /* 0x3803449D: mov edx, dword ptr [ebp + 0xc] */
  28244     edx = edx + edx * 4; /* 0x380344A0: lea edx, [edx + edx*4] */
  28245     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x380344A3: shl edx, 3 */
  28246     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28247     edx = edx << 3u; /* 0x380344A3: shl edx, 3 */
  28248 L_380344A6:
  28249     ecx = MEM32(edi + 0x90); /* 0x380344A6: mov ecx, dword ptr [edi + 0x90] */
  28250     ebx = MEM32(eax + (-0x4)); /* 0x380344AC: mov ebx, dword ptr [eax - 4] */
  28251     MEM32(ecx + edx + 0x24) = ebx; /* 0x380344AF: mov dword ptr [ecx + edx + 0x24], ebx */
  28252     ecx = MEM32(eax + 0x14); /* 0x380344B3: mov ecx, dword ptr [eax + 0x14] */
  28253     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28254     ebx = 0; /* 0x380344B6: xor ebx, ebx */
  28255     _cf = 0;
  28256     _flag_k = FK_TEST;
  28257     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344B8: mov bx, word ptr [ecx + esi*2] */
  28258     ecx = ebx; /* 0x380344BC: mov ecx, ebx */
  28259     ebx = MEM32(eax + 0xC); /* 0x380344BE: mov ebx, dword ptr [eax + 0xc] */
  28260     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x380344C1: shl ecx, 2 */
  28261     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28262     ecx = ecx << 2u; /* 0x380344C1: shl ecx, 2 */
  28263     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344C4: fld dword ptr [ecx + ebx] */
  28264     ebx = MEM32(eax + 0x8); /* 0x380344C7: mov ebx, dword ptr [eax + 8] */
  28265     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344CA: fld dword ptr [ecx + ebx] */
  28266     ebx = MEM32(eax + 0x4); /* 0x380344CD: mov ebx, dword ptr [eax + 4] */
  28267     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x380344D0: fld dword ptr [ecx + ebx] */
  28268     ecx = MEM32(edi + 0x90); /* 0x380344D3: mov ecx, dword ptr [edi + 0x90] */
  28269     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  28270     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28271     ecx = ecx + edx; /* 0x380344D9: add ecx, edx */
  28272     _flag_k = FK_ADD;
  28273     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x380344DB: fstp dword ptr [ebp - 0x70] */
  28274     ebx = MEM32(ebp + (-0x70)); /* 0x380344DE: mov ebx, dword ptr [ebp - 0x70] */
  28275     MEM32(ecx) = ebx; /* 0x380344E1: mov dword ptr [ecx], ebx */
  28276     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x380344E3: fstp dword ptr [ebp - 0x6c] */
  28277     ebx = MEM32(ebp + (-0x6C)); /* 0x380344E6: mov ebx, dword ptr [ebp - 0x6c] */
  28278     MEM32(ecx + 0x4) = ebx; /* 0x380344E9: mov dword ptr [ecx + 4], ebx */
  28279     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x380344EC: fstp dword ptr [ebp - 0x68] */
  28280     ebx = MEM32(ebp + (-0x68)); /* 0x380344EF: mov ebx, dword ptr [ebp - 0x68] */
  28281     MEM32(ecx + 0x8) = ebx; /* 0x380344F2: mov dword ptr [ecx + 8], ebx */
  28282     ecx = MEM32(eax + 0x18); /* 0x380344F5: mov ecx, dword ptr [eax + 0x18] */
  28283     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28284     ebx = 0; /* 0x380344F8: xor ebx, ebx */
  28285     _cf = 0;
  28286     _flag_k = FK_TEST;
  28287     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x380344FA: mov bx, word ptr [ecx + esi*2] */
  28288     ecx = ebx; /* 0x380344FE: mov ecx, ebx */
  28289     ebx = MEM32(eax + 0xC); /* 0x38034500: mov ebx, dword ptr [eax + 0xc] */
  28290     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034503: shl ecx, 2 */
  28291     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28292     ecx = ecx << 2u; /* 0x38034503: shl ecx, 2 */
  28293     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034506: fld dword ptr [ecx + ebx] */
  28294     ebx = MEM32(eax + 0x8); /* 0x38034509: mov ebx, dword ptr [eax + 8] */
  28295     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803450C: fld dword ptr [ecx + ebx] */
  28296     ebx = MEM32(eax + 0x4); /* 0x3803450F: mov ebx, dword ptr [eax + 4] */
  28297     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034512: fld dword ptr [ecx + ebx] */
  28298     ecx = MEM32(edi + 0x90); /* 0x38034515: mov ecx, dword ptr [edi + 0x90] */
  28299     ecx = ecx + edx + 0xC; /* 0x3803451B: lea ecx, [ecx + edx + 0xc] */
  28300     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x3803451F: fstp dword ptr [ebp - 0x88] */
  28301     ebx = MEM32(ebp + (-0x88)); /* 0x38034525: mov ebx, dword ptr [ebp - 0x88] */
  28302     MEM32(ecx) = ebx; /* 0x3803452B: mov dword ptr [ecx], ebx */
  28303     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3803452D: fstp dword ptr [ebp - 0x84] */
  28304     ebx = MEM32(ebp + (-0x84)); /* 0x38034533: mov ebx, dword ptr [ebp - 0x84] */
  28305     MEM32(ecx + 0x4) = ebx; /* 0x38034539: mov dword ptr [ecx + 4], ebx */
  28306     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x3803453C: fstp dword ptr [ebp - 0x80] */
  28307     ebx = MEM32(ebp + (-0x80)); /* 0x3803453F: mov ebx, dword ptr [ebp - 0x80] */
  28308     MEM32(ecx + 0x8) = ebx; /* 0x38034542: mov dword ptr [ecx + 8], ebx */
  28309     ecx = MEM32(eax + 0x1C); /* 0x38034545: mov ecx, dword ptr [eax + 0x1c] */
  28310     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28311     ebx = 0; /* 0x38034548: xor ebx, ebx */
  28312     _cf = 0;
  28313     _flag_k = FK_TEST;
  28314     SET_LO16(ebx, MEM16(ecx + esi * 2)); /* 0x3803454A: mov bx, word ptr [ecx + esi*2] */
  28315     ecx = ebx; /* 0x3803454E: mov ecx, ebx */
  28316     ebx = MEM32(eax + 0xC); /* 0x38034550: mov ebx, dword ptr [eax + 0xc] */
  28317     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38034553: shl ecx, 2 */
  28318     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28319     ecx = ecx << 2u; /* 0x38034553: shl ecx, 2 */
  28320     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034556: fld dword ptr [ecx + ebx] */
  28321     ebx = MEM32(eax + 0x8); /* 0x38034559: mov ebx, dword ptr [eax + 8] */
  28322     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x3803455C: fld dword ptr [ecx + ebx] */
  28323     ebx = MEM32(eax + 0x4); /* 0x3803455F: mov ebx, dword ptr [eax + 4] */
  28324     fp_push(*(float*)&MEM32(ecx + ebx)); /* 0x38034562: fld dword ptr [ecx + ebx] */
  28325     ecx = MEM32(edi + 0x90); /* 0x38034565: mov ecx, dword ptr [edi + 0x90] */
  28326     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3803456B: fstp dword ptr [ebp - 0x54] */
  28327     ebx = MEM32(ebp + (-0x54)); /* 0x3803456E: mov ebx, dword ptr [ebp - 0x54] */
  28328     ecx = ecx + edx + 0x18; /* 0x38034571: lea ecx, [ecx + edx + 0x18] */
  28329     MEM32(ecx) = ebx; /* 0x38034575: mov dword ptr [ecx], ebx */
  28330     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x38034577: fstp dword ptr [ebp - 0x50] */
  28331     ebx = MEM32(ebp + (-0x50)); /* 0x3803457A: mov ebx, dword ptr [ebp - 0x50] */
  28332     MEM32(ecx + 0x4) = ebx; /* 0x3803457D: mov dword ptr [ecx + 4], ebx */
  28333     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x38034580: fstp dword ptr [ebp - 0x4c] */
  28334     ebx = MEM32(ebp + (-0x4C)); /* 0x38034583: mov ebx, dword ptr [ebp - 0x4c] */
  28335     MEM32(ecx + 0x8) = ebx; /* 0x38034586: mov dword ptr [ecx + 8], ebx */
  28336     ebx = MEM32(ebp + 0xC); /* 0x38034589: mov ebx, dword ptr [ebp + 0xc] */
  28337     ecx = MEM32(eax + 0x10); /* 0x3803458C: mov ecx, dword ptr [eax + 0x10] */
  28338     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  28339     ebx = ebx + 1; /* 0x3803458F: inc ebx */
  28340     _flag_k = FK_INC;
  28341     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x28u);
  28342     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28343     edx = edx + 0x28u; /* 0x38034590: add edx, 0x28 */
  28344     _flag_k = FK_ADD;
  28345     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  28346     esi = esi + 1; /* 0x38034593: inc esi */
  28347     _flag_k = FK_INC;
  28348     /* cmp esi, ecx */ /* 0x38034594: cmp esi, ecx */
  28349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  28350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28351     _flag_k = FK_CMP;
  28352     MEM32(ebp + 0xC) = ebx; /* 0x38034596: mov dword ptr [ebp + 0xc], ebx */
  28353     RECOMP_BACKEDGE();
  28354     if (CMP_B(_flag_a, _flag_b)) goto L_380344A6; /* 0x38034599: jb 0x380344a6 */
  28355 L_3803459F:
  28356     ecx = MEM32(ebp + (-0x2C)); /* 0x3803459F: mov ecx, dword ptr [ebp - 0x2c] */
  28357     edx = MEM32(ebp + (-0x30)); /* 0x380345A2: mov edx, dword ptr [ebp - 0x30] */
  28358     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  28359     ecx = ecx + 1; /* 0x380345A5: inc ecx */
  28360     _flag_k = FK_INC;
  28361     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  28362     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28363     eax = eax + 0x24u; /* 0x380345A6: add eax, 0x24 */
  28364     _flag_k = FK_ADD;
  28365     /* cmp ecx, edx */ /* 0x380345A9: cmp ecx, edx */
  28366     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  28367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28368     _flag_k = FK_CMP;
  28369     MEM32(ebp + (-0x2C)) = ecx; /* 0x380345AB: mov dword ptr [ebp - 0x2c], ecx */
  28370     RECOMP_BACKEDGE();
  28371     if (CMP_B(_flag_a, _flag_b)) goto L_380342D4; /* 0x380345AE: jb 0x380342d4 */
  28372 L_380345B4:
  28373     eax = MEM32(ebp + 0xC); /* 0x380345B4: mov eax, dword ptr [ebp + 0xc] */
  28374     /* cmp eax, MEM32(edi + 0x8C) */ /* 0x380345B7: cmp eax, dword ptr [edi + 0x8c] */
  28375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8C));
  28376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28377     _flag_k = FK_CMP;
  28378     if (CMP_AE(_flag_a, _flag_b)) goto L_380345CD; /* 0x380345BD: jae 0x380345cd */
  28379 L_380345BF:
  28380     MEM32(edi + 0x8C) = eax; /* 0x380345BF: mov dword ptr [edi + 0x8c], eax */
  28381     goto L_380345CD; /* 0x380345C5: jmp 0x380345cd */
  28382 L_380345CD:
  28383     eax = MEM32(edi + 0x8C); /* 0x380345CD: mov eax, dword ptr [edi + 0x8c] */
  28384     /* test eax, eax */ /* 0x380345D3: test eax, eax */
  28385     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28386     _cf = 0;
  28387     _flag_k = FK_TEST;
  28388     if (TEST_Z(_flag_a, _flag_b)) goto L_380345EA; /* 0x380345D5: je 0x380345ea */
  28389 L_380345D7:
  28390     edx = MEM32(edi + 0x90); /* 0x380345D7: mov edx, dword ptr [edi + 0x90] */
  28391     PUSH32(esp, edx); /* 0x380345DD: push edx */
  28392     PUSH32(esp, eax); /* 0x380345DE: push eax */
  28393     eax = MEM32(edi + 0x44); /* 0x380345DF: mov eax, dword ptr [edi + 0x44] */
  28394     PUSH32(esp, eax); /* 0x380345E2: push eax */
  28395     ecx = edi; /* 0x380345E3: mov ecx, edi */
  28396     RECOMP_ICALL(0x3803F2F0u); /* 0x380345E5: call 0x3803f2f0 */ /* not lifted */
  28397     RECOMP_FLAGS_IN();
  28398 L_380345EA:
  28399     eax = MEM32(ebp + (-0x30)); /* 0x380345EA: mov eax, dword ptr [ebp - 0x30] */
  28400     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28401     esi = 0; /* 0x380345ED: xor esi, esi */
  28402     _cf = 0;
  28403     _flag_k = FK_TEST;
  28404     /* test eax, eax */ /* 0x380345EF: test eax, eax */
  28405     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28406     _cf = 0;
  28407     _flag_k = FK_TEST;
  28408     if (TEST_Z(_flag_a, _flag_b)) goto L_38034663; /* 0x380345F1: jbe 0x38034663 */
  28409 L_380345F3:
  28410     ecx = MEM32(ebp + (-0x38)); /* 0x380345F3: mov ecx, dword ptr [ebp - 0x38] */
  28411     ebx = ecx + 0xC; /* 0x380345F6: lea ebx, [ecx + 0xc] */
  28412 L_380345F9:
  28413     eax = MEM32(ebx + (-0x4)); /* 0x380345F9: mov eax, dword ptr [ebx - 4] */
  28414     /* test eax, eax */ /* 0x380345FC: test eax, eax */
  28415     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28416     _cf = 0;
  28417     _flag_k = FK_TEST;
  28418     if (TEST_Z(_flag_a, _flag_b)) goto L_38034609; /* 0x380345FE: je 0x38034609 */
  28419 L_38034600:
  28420     PUSH32(esp, eax); /* 0x38034600: push eax */
  28421     RECOMP_ICALL(0x3804B4F6u); /* 0x38034601: call 0x3804b4f6 */ /* not lifted */
  28422     RECOMP_FLAGS_IN();
  28423     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28424     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28425     esp = esp + 4; /* 0x38034606: add esp, 4 */
  28426     _flag_k = FK_ADD;
  28427 L_38034609:
  28428     eax = MEM32(ebx); /* 0x38034609: mov eax, dword ptr [ebx] */
  28429     /* test eax, eax */ /* 0x3803460B: test eax, eax */
  28430     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28431     _cf = 0;
  28432     _flag_k = FK_TEST;
  28433     if (TEST_Z(_flag_a, _flag_b)) goto L_38034618; /* 0x3803460D: je 0x38034618 */
  28434 L_3803460F:
  28435     PUSH32(esp, eax); /* 0x3803460F: push eax */
  28436     RECOMP_ICALL(0x3804B4F6u); /* 0x38034610: call 0x3804b4f6 */ /* not lifted */
  28437     RECOMP_FLAGS_IN();
  28438     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28439     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28440     esp = esp + 4; /* 0x38034615: add esp, 4 */
  28441     _flag_k = FK_ADD;
  28442 L_38034618:
  28443     eax = MEM32(ebx + 0x4); /* 0x38034618: mov eax, dword ptr [ebx + 4] */
  28444     /* test eax, eax */ /* 0x3803461B: test eax, eax */
  28445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28446     _cf = 0;
  28447     _flag_k = FK_TEST;
  28448     if (TEST_Z(_flag_a, _flag_b)) goto L_38034628; /* 0x3803461D: je 0x38034628 */
  28449 L_3803461F:
  28450     PUSH32(esp, eax); /* 0x3803461F: push eax */
  28451     RECOMP_ICALL(0x3804B4F6u); /* 0x38034620: call 0x3804b4f6 */ /* not lifted */
  28452     RECOMP_FLAGS_IN();
  28453     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28454     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28455     esp = esp + 4; /* 0x38034625: add esp, 4 */
  28456     _flag_k = FK_ADD;
  28457 L_38034628:
  28458     eax = MEM32(ebx + 0xC); /* 0x38034628: mov eax, dword ptr [ebx + 0xc] */
  28459     /* test eax, eax */ /* 0x3803462B: test eax, eax */
  28460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28461     _cf = 0;
  28462     _flag_k = FK_TEST;
  28463     if (TEST_Z(_flag_a, _flag_b)) goto L_38034638; /* 0x3803462D: je 0x38034638 */
  28464 L_3803462F:
  28465     PUSH32(esp, eax); /* 0x3803462F: push eax */
  28466     RECOMP_ICALL(0x3804B4F6u); /* 0x38034630: call 0x3804b4f6 */ /* not lifted */
  28467     RECOMP_FLAGS_IN();
  28468     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28469     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28470     esp = esp + 4; /* 0x38034635: add esp, 4 */
  28471     _flag_k = FK_ADD;
  28472 L_38034638:
  28473     eax = MEM32(ebx + 0x10); /* 0x38034638: mov eax, dword ptr [ebx + 0x10] */
  28474     /* test eax, eax */ /* 0x3803463B: test eax, eax */
  28475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28476     _cf = 0;
  28477     _flag_k = FK_TEST;
  28478     if (TEST_Z(_flag_a, _flag_b)) goto L_38034648; /* 0x3803463D: je 0x38034648 */
  28479 L_3803463F:
  28480     PUSH32(esp, eax); /* 0x3803463F: push eax */
  28481     RECOMP_ICALL(0x3804B4F6u); /* 0x38034640: call 0x3804b4f6 */ /* not lifted */
  28482     RECOMP_FLAGS_IN();
  28483     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28484     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28485     esp = esp + 4; /* 0x38034645: add esp, 4 */
  28486     _flag_k = FK_ADD;
  28487 L_38034648:
  28488     eax = MEM32(ebx + 0x14); /* 0x38034648: mov eax, dword ptr [ebx + 0x14] */
  28489     /* test eax, eax */ /* 0x3803464B: test eax, eax */
  28490     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28491     _cf = 0;
  28492     _flag_k = FK_TEST;
  28493     if (TEST_Z(_flag_a, _flag_b)) goto L_38034658; /* 0x3803464D: je 0x38034658 */
  28494 L_3803464F:
  28495     PUSH32(esp, eax); /* 0x3803464F: push eax */
  28496     RECOMP_ICALL(0x3804B4F6u); /* 0x38034650: call 0x3804b4f6 */ /* not lifted */
  28497     RECOMP_FLAGS_IN();
  28498     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28499     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28500     esp = esp + 4; /* 0x38034655: add esp, 4 */
  28501     _flag_k = FK_ADD;
  28502 L_38034658:
  28503     eax = MEM32(ebp + (-0x30)); /* 0x38034658: mov eax, dword ptr [ebp - 0x30] */
  28504     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  28505     esi = esi + 1; /* 0x3803465B: inc esi */
  28506     _flag_k = FK_INC;
  28507     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
  28508     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28509     ebx = ebx + 0x24u; /* 0x3803465C: add ebx, 0x24 */
  28510     _flag_k = FK_ADD;
  28511     /* cmp esi, eax */ /* 0x3803465F: cmp esi, eax */
  28512     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  28513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28514     _flag_k = FK_CMP;
  28515     RECOMP_BACKEDGE();
  28516     if (CMP_B(_flag_a, _flag_b)) goto L_380345F9; /* 0x38034661: jb 0x380345f9 */
  28517 L_38034663:
  28518     edx = MEM32(ebp + (-0x38)); /* 0x38034663: mov edx, dword ptr [ebp - 0x38] */
  28519     PUSH32(esp, edx); /* 0x38034666: push edx */
  28520     RECOMP_ICALL(0x3804B4F6u); /* 0x38034667: call 0x3804b4f6 */ /* not lifted */
  28521     RECOMP_FLAGS_IN();
  28522     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28524     esp = esp + 4; /* 0x3803466C: add esp, 4 */
  28525     _flag_k = FK_ADD;
  28526     goto L_38034677; /* 0x3803466F: jmp 0x38034677 */
  28527 L_38034677:
  28528     esi = MEM32(edi + 0xC); /* 0x38034677: mov esi, dword ptr [edi + 0xc] */
  28529     ecx = edi; /* 0x3803467A: mov ecx, edi */
  28530     RECOMP_ICALL(0x380303E0u); /* 0x3803467C: call 0x380303e0 */ /* not lifted */
  28531     RECOMP_FLAGS_IN();
  28532     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x38034681: shl eax, 0x10 */
  28533     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28534     eax = eax << 16u; /* 0x38034681: shl eax, 0x10 */
  28535     _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi));
  28536     eax = eax | esi; /* 0x38034684: or eax, esi */
  28537     _cf = 0;
  28538     _flag_k = FK_TEST;
  28539     MEM32(edi + 0x4) = eax; /* 0x38034686: mov dword ptr [edi + 4], eax */
  28540     /* cmp MEM32(edi + 0xAC), 4 */ /* 0x38034689: cmp dword ptr [edi + 0xac], 4 */
  28541     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(4);
  28542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28543     _flag_k = FK_CMP;
  28544     if (CMP_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x38034690: jle 0x3803498d */
  28545 L_38034696:
  28546     ecx = MEM32(ebp + 0x8); /* 0x38034696: mov ecx, dword ptr [ebp + 8] */
  28547     eax = ebp + (-0x3C); /* 0x38034699: lea eax, [ebp - 0x3c] */
  28548     PUSH32(esp, eax); /* 0x3803469C: push eax */
  28549     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803469D: call dword ptr [0x3804e388] */
  28550     RECOMP_FLAGS_IN();
  28551     eax = MEM32(ebp + (-0x3C)); /* 0x380346A3: mov eax, dword ptr [ebp - 0x3c] */
  28552     /* test eax, eax */ /* 0x380346A6: test eax, eax */
  28553     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28554     _cf = 0;
  28555     _flag_k = FK_TEST;
  28556     MEM32(ebp + (-0x2C)) = 0; /* 0x380346A8: mov dword ptr [ebp - 0x2c], 0 */
  28557     if (TEST_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x380346AF: jle 0x3803498d */
  28558 L_380346B5:
  28559     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  28560     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  28561     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  28562     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  28563     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  28564     PUSH32(esp, edx); /* 0x380346C5: push edx */
  28565     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  28566     PUSH32(esp, eax); /* 0x380346C9: push eax */
  28567     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  28568     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  28569     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  28570     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  28571     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  28572     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  28573     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  28574     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  28575     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  28576     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  28577     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  28578     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  28579     RECOMP_FLAGS_IN();
  28580     ecx = eax; /* 0x38034714: mov ecx, eax */
  28581     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  28582     RECOMP_FLAGS_IN();
  28583     ecx = eax; /* 0x38034718: mov ecx, eax */
  28584     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  28585     RECOMP_FLAGS_IN();
  28586     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  28587     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  28588     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  28589     PUSH32(esp, edx); /* 0x38034723: push edx */
  28590     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  28591     PUSH32(esp, eax); /* 0x38034727: push eax */
  28592     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  28593     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  28594     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  28595     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  28596     RECOMP_FLAGS_IN();
  28597     ecx = eax; /* 0x38034730: mov ecx, eax */
  28598     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  28599     RECOMP_FLAGS_IN();
  28600     ecx = eax; /* 0x38034734: mov ecx, eax */
  28601     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  28602     RECOMP_FLAGS_IN();
  28603     ecx = eax; /* 0x38034738: mov ecx, eax */
  28604     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  28605     RECOMP_FLAGS_IN();
  28606     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  28607     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  28608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28609     _flag_k = FK_CMP;
  28610     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  28611 L_38034745:
  28612     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  28613     PUSH32(esp, edx); /* 0x38034748: push edx */
  28614     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  28615     PUSH32(esp, eax); /* 0x3803474C: push eax */
  28616     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  28617     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  28618     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  28619     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  28620     RECOMP_FLAGS_IN();
  28621     ecx = eax; /* 0x38034755: mov ecx, eax */
  28622     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  28623     RECOMP_FLAGS_IN();
  28624     ecx = eax; /* 0x38034759: mov ecx, eax */
  28625     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  28626     RECOMP_FLAGS_IN();
  28627     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  28628 L_3803475F:
  28629     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  28630     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  28631     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  28632     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  28633     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  28634     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  28635 L_38034771:
  28636     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  28637     PUSH32(esp, edx); /* 0x38034774: push edx */
  28638     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  28639     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  28640     RECOMP_FLAGS_IN();
  28641     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  28642     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  28643     fp_pop();
  28644     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  28645     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  28646     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  28647     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  28648     _cf = 0;
  28649     _flag_k = FK_NARROW(FK_TEST, 24);
  28650     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  28651 L_3803478D:
  28652     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  28653 L_38034791:
  28654     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  28655     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  28656     RECOMP_FLAGS_IN();
  28657     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28658     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28659     esp = esp + 4; /* 0x38034798: add esp, 4 */
  28660     _flag_k = FK_ADD;
  28661     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  28662     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28663     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  28664     _cf = 0;
  28665     _flag_k = FK_TEST;
  28666     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  28667     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  28668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28669     _flag_k = FK_CMP;
  28670     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  28671     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  28672 L_380347A7:
  28673     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  28674     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  28675     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  28676     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  28677     PUSH32(esp, edx); /* 0x380347B0: push edx */
  28678     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  28679     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  28680     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  28681     PUSH32(esp, edx); /* 0x380347B8: push edx */
  28682     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  28683     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  28684     ecx = eax; /* 0x380347BD: mov ecx, eax */
  28685     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  28686     RECOMP_FLAGS_IN();
  28687     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  28688     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  28689 L_380347C9:
  28690     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  28691 L_380347CC:
  28692     ecx = edi; /* 0x380347CC: mov ecx, edi */
  28693     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  28694     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  28695     RECOMP_FLAGS_IN();
  28696     ebx = eax; /* 0x380347DA: mov ebx, eax */
  28697     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  28698     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  28699     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  28700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28701     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  28702     _flag_k = FK_CMP;
  28703     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  28704     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28705     edx = (uint32_t)((int32_t)edx >> 2u);
  28706     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  28707     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  28708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28709     _flag_k = FK_CMP;
  28710     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  28711     esi = eax; /* 0x380347ED: mov esi, eax */
  28712     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  28713 L_380347F5:
  28714     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  28715     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  28716     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  28717     _cf = 0;
  28718     _flag_k = FK_TEST;
  28719     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  28720 L_380347FC:
  28721     ecx = eax; /* 0x380347FC: mov ecx, eax */
  28722     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  28723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28724     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  28725     _flag_k = FK_CMP;
  28726     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  28727     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28728     ecx = (uint32_t)((int32_t)ecx >> 2u);
  28729     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  28730     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  28731     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28732     _flag_k = FK_CMP;
  28733     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  28734 L_38034808:
  28735     ecx = 1; /* 0x38034808: mov ecx, 1 */
  28736 L_3803480D:
  28737     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  28738     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  28739     _cf = 0;
  28740     _flag_k = FK_TEST;
  28741     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  28742 L_38034811:
  28743     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28744     eax = 0; /* 0x38034811: xor eax, eax */
  28745     _cf = 0;
  28746     _flag_k = FK_TEST;
  28747     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  28748 L_38034815:
  28749     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  28750     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28751     eax = eax - edx; /* 0x38034815: sub eax, edx */
  28752     _flag_k = FK_CMP;
  28753     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  28754     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28755     eax = (uint32_t)((int32_t)eax >> 2u);
  28756 L_3803481A:
  28757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  28758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28759     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  28760     _flag_k = FK_ADD;
  28761     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  28762     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28763     _cf = 0;
  28764     _flag_k = FK_TEST;
  28765     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  28766     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  28767 L_38034823:
  28768     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28769     eax = 0; /* 0x38034823: xor eax, eax */
  28770     _cf = 0;
  28771     _flag_k = FK_TEST;
  28772 L_38034825:
  28773     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  28774     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28775     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  28776     PUSH32(esp, eax); /* 0x38034828: push eax */
  28777     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  28778     RECOMP_FLAGS_IN();
  28779     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  28780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28782     esp = esp + 4; /* 0x38034831: add esp, 4 */
  28783     _flag_k = FK_ADD;
  28784     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  28785     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  28786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28787     _flag_k = FK_CMP;
  28788     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  28789     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  28790 L_3803483B:
  28791     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  28792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28793     _cf = 0;
  28794     _flag_k = FK_TEST;
  28795     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  28796 L_3803483F:
  28797     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  28798     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  28799 L_38034843:
  28800     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  28801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28802     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  28803     _flag_k = FK_ADD;
  28804     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  28805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28806     eax = eax + 4; /* 0x38034846: add eax, 4 */
  28807     _flag_k = FK_ADD;
  28808     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  28809     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  28810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28811     _flag_k = FK_CMP;
  28812     RECOMP_BACKEDGE();
  28813     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  28814 L_3803484D:
  28815     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  28816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  28817     _cf = 0;
  28818     _flag_k = FK_TEST;
  28819     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  28820 L_38034851:
  28821     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  28822     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  28823 L_38034856:
  28824     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  28825     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  28826     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  28827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28828     _flag_k = FK_CMP;
  28829     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  28830     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  28831 L_38034860:
  28832     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  28833     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  28834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28835     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  28836     _flag_k = FK_CMP;
  28837     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  28838 L_38034868:
  28839     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  28840     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  28841     _cf = 0;
  28842     _flag_k = FK_TEST;
  28843     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  28844 L_3803486C:
  28845     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  28846     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  28847 L_38034870:
  28848     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  28849     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28850     esi = esi + 4; /* 0x38034870: add esi, 4 */
  28851     _flag_k = FK_ADD;
  28852     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  28853     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28854     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  28855     _flag_k = FK_ADD;
  28856     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  28857     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  28858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28859     _flag_k = FK_CMP;
  28860     RECOMP_BACKEDGE();
  28861     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  28862 L_3803487A:
  28863     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  28864 L_3803487D:
  28865     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  28866     PUSH32(esp, eax); /* 0x38034880: push eax */
  28867     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  28868     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  28869     RECOMP_FLAGS_IN();
  28870     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  28871     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  28872     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  28873     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  28874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  28875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28876     esp = esp + 4; /* 0x38034895: add esp, 4 */
  28877     _flag_k = FK_ADD;
  28878     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  28879     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  28880     _cf = 0;
  28881     _flag_k = FK_TEST;
  28882     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  28883     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  28884 L_3803489F:
  28885     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  28886     eax = 0; /* 0x3803489F: xor eax, eax */
  28887     _cf = 0;
  28888     _flag_k = FK_TEST;
  28889     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  28890     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  28891     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  28892     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  28893 L_380348B0:
  28894     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  28895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  28896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28897     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  28898     _flag_k = FK_CMP;
  28899     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  28900     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28901     eax = (uint32_t)((int32_t)eax >> 2u);
  28902     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  28903     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  28904     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  28905     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  28906 L_380348C7:
  28907     ecx = eax; /* 0x380348C7: mov ecx, eax */
  28908     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  28909     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28910     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  28911     _flag_k = FK_CMP;
  28912     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  28913     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28914     ecx = (uint32_t)((int32_t)ecx >> 2u);
  28915     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  28916     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  28917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28918     _flag_k = FK_CMP;
  28919     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  28920 L_380348D3:
  28921     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  28922     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  28923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28924     _flag_k = FK_CMP;
  28925     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  28926     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  28927 L_380348DA:
  28928     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  28929 L_380348DD:
  28930     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  28931     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  28932     _cf = 0;
  28933     _flag_k = FK_TEST;
  28934     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  28935 L_380348E1:
  28936     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  28937     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  28938     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  28939 L_380348E8:
  28940     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  28941     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28942     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  28943     _flag_k = FK_ADD;
  28944     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  28945     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28946     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  28947     _flag_k = FK_ADD;
  28948     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  28949     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  28950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28951     _flag_k = FK_CMP;
  28952     RECOMP_BACKEDGE();
  28953     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  28954 L_380348F2:
  28955     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  28956     edx = ecx; /* 0x380348F5: mov edx, ecx */
  28957     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  28958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28959     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  28960     _flag_k = FK_CMP;
  28961     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  28962     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  28963     edx = (uint32_t)((int32_t)edx >> 2u);
  28964     eax = 1; /* 0x380348FC: mov eax, 1 */
  28965     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  28966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28967     eax = eax - edx; /* 0x38034901: sub eax, edx */
  28968     _flag_k = FK_CMP;
  28969     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  28970     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  28971 L_38034908:
  28972     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  28973     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  28974     _cf = 0;
  28975     _flag_k = FK_TEST;
  28976     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  28977 L_3803490C:
  28978     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  28979 L_3803490E:
  28980     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  28981     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  28982     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  28983     _flag_k = FK_ADD;
  28984     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  28985     eax = eax - 1; /* 0x38034911: dec eax */
  28986     _flag_k = FK_DEC;
  28987     RECOMP_BACKEDGE();
  28988     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  28989 L_38034914:
  28990     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  28991     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  28992     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  28993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  28994     _flag_k = FK_CMP;
  28995     eax = esi; /* 0x38034919: mov eax, esi */
  28996     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  28997 L_3803491D:
  28998     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  28999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  29000     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29001     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  29002     _flag_k = FK_ADD;
  29003     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  29004     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29006     _flag_k = FK_CMP;
  29007     RECOMP_BACKEDGE();
  29008     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  29009 L_38034926:
  29010     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  29011 L_38034928:
  29012     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  29013     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  29014     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  29015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29016     _flag_k = FK_CMP;
  29017     edx = eax; /* 0x3803492D: mov edx, eax */
  29018     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  29019     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  29020 L_38034934:
  29021     /* test edx, edx */ /* 0x38034934: test edx, edx */
  29022     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  29023     _cf = 0;
  29024     _flag_k = FK_TEST;
  29025     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  29026 L_38034938:
  29027     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  29028     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  29029     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  29030 L_3803493F:
  29031     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  29032     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29033     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  29034     _flag_k = FK_ADD;
  29035     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  29036     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29037     edx = edx + 4; /* 0x38034942: add edx, 4 */
  29038     _flag_k = FK_ADD;
  29039     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  29040     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  29041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29042     _flag_k = FK_CMP;
  29043     RECOMP_BACKEDGE();
  29044     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  29045 L_38034949:
  29046     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  29047     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  29048     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  29049     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  29050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29051     _flag_k = FK_CMP;
  29052     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  29053 L_38034953:
  29054     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  29055     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  29056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29057     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  29058     _flag_k = FK_CMP;
  29059     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  29060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29061     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  29062     _flag_k = FK_CMP;
  29063     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  29064     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  29065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29066     _flag_k = FK_CMP;
  29067     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  29068     RECOMP_BACKEDGE();
  29069     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  29070 L_38034962:
  29071     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  29072     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  29073     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  29074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29075     _flag_k = FK_CMP;
  29076     eax = esi; /* 0x38034967: mov eax, esi */
  29077     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  29078 L_3803496B:
  29079     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  29080 L_3803496E:
  29081     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  29082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  29083     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29084     eax = eax + 4; /* 0x38034970: add eax, 4 */
  29085     _flag_k = FK_ADD;
  29086     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  29087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29089     _flag_k = FK_CMP;
  29090     RECOMP_BACKEDGE();
  29091     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  29092 L_38034977:
  29093     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  29094     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29095     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  29096     _flag_k = FK_ADD;
  29097 L_3803497B:
  29098     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  29099     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  29100     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  29101     eax = eax + 1; /* 0x38034981: inc eax */
  29102     _flag_k = FK_INC;
  29103     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  29104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29106     _flag_k = FK_CMP;
  29107     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  29108     RECOMP_BACKEDGE();
  29109     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  29110 L_3803498D:
  29111     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  29112     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  29113     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  29114     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  29115     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  29116     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  29117     esp = ebp; /* 0x3803499D: mov esp, ebp */
  29118     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  29119     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  29120     RECOMP_REGS_OUT();
  29121 }
  29122 
  29123 void sub_380345CD(void) {
  29124     int _fpu_cmp = 0;
  29125     uint32_t _cf = 0;
  29126     int _df = 1;
  29127     uint32_t _flag_k = FK_NONE;
  29128     uint32_t _flag_a = 0, _flag_b = 0;
  29129     uint32_t _itail_tgt = 0;
  29130     RECOMP_REGS_LOCALS
  29131     RECOMP_ENTER(0x380345CDu);
  29132 
  29133 L_380345CD:
  29134     eax = MEM32(edi + 0x8C); /* 0x380345CD: mov eax, dword ptr [edi + 0x8c] */
  29135     /* test eax, eax */ /* 0x380345D3: test eax, eax */
  29136     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29137     _cf = 0;
  29138     _flag_k = FK_TEST;
  29139     if (TEST_Z(_flag_a, _flag_b)) goto L_380345EA; /* 0x380345D5: je 0x380345ea */
  29140 L_380345D7:
  29141     edx = MEM32(edi + 0x90); /* 0x380345D7: mov edx, dword ptr [edi + 0x90] */
  29142     PUSH32(esp, edx); /* 0x380345DD: push edx */
  29143     PUSH32(esp, eax); /* 0x380345DE: push eax */
  29144     eax = MEM32(edi + 0x44); /* 0x380345DF: mov eax, dword ptr [edi + 0x44] */
  29145     PUSH32(esp, eax); /* 0x380345E2: push eax */
  29146     ecx = edi; /* 0x380345E3: mov ecx, edi */
  29147     RECOMP_ICALL(0x3803F2F0u); /* 0x380345E5: call 0x3803f2f0 */ /* not lifted */
  29148     RECOMP_FLAGS_IN();
  29149 L_380345EA:
  29150     eax = MEM32(ebp + (-0x30)); /* 0x380345EA: mov eax, dword ptr [ebp - 0x30] */
  29151     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  29152     esi = 0; /* 0x380345ED: xor esi, esi */
  29153     _cf = 0;
  29154     _flag_k = FK_TEST;
  29155     /* test eax, eax */ /* 0x380345EF: test eax, eax */
  29156     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29157     _cf = 0;
  29158     _flag_k = FK_TEST;
  29159     if (TEST_Z(_flag_a, _flag_b)) goto L_38034663; /* 0x380345F1: jbe 0x38034663 */
  29160 L_380345F3:
  29161     ecx = MEM32(ebp + (-0x38)); /* 0x380345F3: mov ecx, dword ptr [ebp - 0x38] */
  29162     ebx = ecx + 0xC; /* 0x380345F6: lea ebx, [ecx + 0xc] */
  29163 L_380345F9:
  29164     eax = MEM32(ebx + (-0x4)); /* 0x380345F9: mov eax, dword ptr [ebx - 4] */
  29165     /* test eax, eax */ /* 0x380345FC: test eax, eax */
  29166     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29167     _cf = 0;
  29168     _flag_k = FK_TEST;
  29169     if (TEST_Z(_flag_a, _flag_b)) goto L_38034609; /* 0x380345FE: je 0x38034609 */
  29170 L_38034600:
  29171     PUSH32(esp, eax); /* 0x38034600: push eax */
  29172     RECOMP_ICALL(0x3804B4F6u); /* 0x38034601: call 0x3804b4f6 */ /* not lifted */
  29173     RECOMP_FLAGS_IN();
  29174     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29175     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29176     esp = esp + 4; /* 0x38034606: add esp, 4 */
  29177     _flag_k = FK_ADD;
  29178 L_38034609:
  29179     eax = MEM32(ebx); /* 0x38034609: mov eax, dword ptr [ebx] */
  29180     /* test eax, eax */ /* 0x3803460B: test eax, eax */
  29181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29182     _cf = 0;
  29183     _flag_k = FK_TEST;
  29184     if (TEST_Z(_flag_a, _flag_b)) goto L_38034618; /* 0x3803460D: je 0x38034618 */
  29185 L_3803460F:
  29186     PUSH32(esp, eax); /* 0x3803460F: push eax */
  29187     RECOMP_ICALL(0x3804B4F6u); /* 0x38034610: call 0x3804b4f6 */ /* not lifted */
  29188     RECOMP_FLAGS_IN();
  29189     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29191     esp = esp + 4; /* 0x38034615: add esp, 4 */
  29192     _flag_k = FK_ADD;
  29193 L_38034618:
  29194     eax = MEM32(ebx + 0x4); /* 0x38034618: mov eax, dword ptr [ebx + 4] */
  29195     /* test eax, eax */ /* 0x3803461B: test eax, eax */
  29196     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29197     _cf = 0;
  29198     _flag_k = FK_TEST;
  29199     if (TEST_Z(_flag_a, _flag_b)) goto L_38034628; /* 0x3803461D: je 0x38034628 */
  29200 L_3803461F:
  29201     PUSH32(esp, eax); /* 0x3803461F: push eax */
  29202     RECOMP_ICALL(0x3804B4F6u); /* 0x38034620: call 0x3804b4f6 */ /* not lifted */
  29203     RECOMP_FLAGS_IN();
  29204     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29205     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29206     esp = esp + 4; /* 0x38034625: add esp, 4 */
  29207     _flag_k = FK_ADD;
  29208 L_38034628:
  29209     eax = MEM32(ebx + 0xC); /* 0x38034628: mov eax, dword ptr [ebx + 0xc] */
  29210     /* test eax, eax */ /* 0x3803462B: test eax, eax */
  29211     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29212     _cf = 0;
  29213     _flag_k = FK_TEST;
  29214     if (TEST_Z(_flag_a, _flag_b)) goto L_38034638; /* 0x3803462D: je 0x38034638 */
  29215 L_3803462F:
  29216     PUSH32(esp, eax); /* 0x3803462F: push eax */
  29217     RECOMP_ICALL(0x3804B4F6u); /* 0x38034630: call 0x3804b4f6 */ /* not lifted */
  29218     RECOMP_FLAGS_IN();
  29219     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29220     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29221     esp = esp + 4; /* 0x38034635: add esp, 4 */
  29222     _flag_k = FK_ADD;
  29223 L_38034638:
  29224     eax = MEM32(ebx + 0x10); /* 0x38034638: mov eax, dword ptr [ebx + 0x10] */
  29225     /* test eax, eax */ /* 0x3803463B: test eax, eax */
  29226     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29227     _cf = 0;
  29228     _flag_k = FK_TEST;
  29229     if (TEST_Z(_flag_a, _flag_b)) goto L_38034648; /* 0x3803463D: je 0x38034648 */
  29230 L_3803463F:
  29231     PUSH32(esp, eax); /* 0x3803463F: push eax */
  29232     RECOMP_ICALL(0x3804B4F6u); /* 0x38034640: call 0x3804b4f6 */ /* not lifted */
  29233     RECOMP_FLAGS_IN();
  29234     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29235     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29236     esp = esp + 4; /* 0x38034645: add esp, 4 */
  29237     _flag_k = FK_ADD;
  29238 L_38034648:
  29239     eax = MEM32(ebx + 0x14); /* 0x38034648: mov eax, dword ptr [ebx + 0x14] */
  29240     /* test eax, eax */ /* 0x3803464B: test eax, eax */
  29241     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29242     _cf = 0;
  29243     _flag_k = FK_TEST;
  29244     if (TEST_Z(_flag_a, _flag_b)) goto L_38034658; /* 0x3803464D: je 0x38034658 */
  29245 L_3803464F:
  29246     PUSH32(esp, eax); /* 0x3803464F: push eax */
  29247     RECOMP_ICALL(0x3804B4F6u); /* 0x38034650: call 0x3804b4f6 */ /* not lifted */
  29248     RECOMP_FLAGS_IN();
  29249     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29251     esp = esp + 4; /* 0x38034655: add esp, 4 */
  29252     _flag_k = FK_ADD;
  29253 L_38034658:
  29254     eax = MEM32(ebp + (-0x30)); /* 0x38034658: mov eax, dword ptr [ebp - 0x30] */
  29255     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  29256     esi = esi + 1; /* 0x3803465B: inc esi */
  29257     _flag_k = FK_INC;
  29258     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
  29259     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29260     ebx = ebx + 0x24u; /* 0x3803465C: add ebx, 0x24 */
  29261     _flag_k = FK_ADD;
  29262     /* cmp esi, eax */ /* 0x3803465F: cmp esi, eax */
  29263     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  29264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29265     _flag_k = FK_CMP;
  29266     RECOMP_BACKEDGE();
  29267     if (CMP_B(_flag_a, _flag_b)) goto L_380345F9; /* 0x38034661: jb 0x380345f9 */
  29268 L_38034663:
  29269     edx = MEM32(ebp + (-0x38)); /* 0x38034663: mov edx, dword ptr [ebp - 0x38] */
  29270     PUSH32(esp, edx); /* 0x38034666: push edx */
  29271     RECOMP_ICALL(0x3804B4F6u); /* 0x38034667: call 0x3804b4f6 */ /* not lifted */
  29272     RECOMP_FLAGS_IN();
  29273     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29274     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29275     esp = esp + 4; /* 0x3803466C: add esp, 4 */
  29276     _flag_k = FK_ADD;
  29277     goto L_38034677; /* 0x3803466F: jmp 0x38034677 */
  29278 L_38034677:
  29279     esi = MEM32(edi + 0xC); /* 0x38034677: mov esi, dword ptr [edi + 0xc] */
  29280     ecx = edi; /* 0x3803467A: mov ecx, edi */
  29281     RECOMP_ICALL(0x380303E0u); /* 0x3803467C: call 0x380303e0 */ /* not lifted */
  29282     RECOMP_FLAGS_IN();
  29283     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x38034681: shl eax, 0x10 */
  29284     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29285     eax = eax << 16u; /* 0x38034681: shl eax, 0x10 */
  29286     _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi));
  29287     eax = eax | esi; /* 0x38034684: or eax, esi */
  29288     _cf = 0;
  29289     _flag_k = FK_TEST;
  29290     MEM32(edi + 0x4) = eax; /* 0x38034686: mov dword ptr [edi + 4], eax */
  29291     /* cmp MEM32(edi + 0xAC), 4 */ /* 0x38034689: cmp dword ptr [edi + 0xac], 4 */
  29292     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(4);
  29293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29294     _flag_k = FK_CMP;
  29295     if (CMP_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x38034690: jle 0x3803498d */
  29296 L_38034696:
  29297     ecx = MEM32(ebp + 0x8); /* 0x38034696: mov ecx, dword ptr [ebp + 8] */
  29298     eax = ebp + (-0x3C); /* 0x38034699: lea eax, [ebp - 0x3c] */
  29299     PUSH32(esp, eax); /* 0x3803469C: push eax */
  29300     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803469D: call dword ptr [0x3804e388] */
  29301     RECOMP_FLAGS_IN();
  29302     eax = MEM32(ebp + (-0x3C)); /* 0x380346A3: mov eax, dword ptr [ebp - 0x3c] */
  29303     /* test eax, eax */ /* 0x380346A6: test eax, eax */
  29304     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29305     _cf = 0;
  29306     _flag_k = FK_TEST;
  29307     MEM32(ebp + (-0x2C)) = 0; /* 0x380346A8: mov dword ptr [ebp - 0x2c], 0 */
  29308     if (TEST_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x380346AF: jle 0x3803498d */
  29309 L_380346B5:
  29310     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  29311     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  29312     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  29313     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  29314     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  29315     PUSH32(esp, edx); /* 0x380346C5: push edx */
  29316     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  29317     PUSH32(esp, eax); /* 0x380346C9: push eax */
  29318     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  29319     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  29320     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  29321     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  29322     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  29323     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  29324     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  29325     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  29326     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  29327     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  29328     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  29329     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  29330     RECOMP_FLAGS_IN();
  29331     ecx = eax; /* 0x38034714: mov ecx, eax */
  29332     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  29333     RECOMP_FLAGS_IN();
  29334     ecx = eax; /* 0x38034718: mov ecx, eax */
  29335     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  29336     RECOMP_FLAGS_IN();
  29337     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  29338     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  29339     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  29340     PUSH32(esp, edx); /* 0x38034723: push edx */
  29341     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  29342     PUSH32(esp, eax); /* 0x38034727: push eax */
  29343     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  29344     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  29345     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  29346     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  29347     RECOMP_FLAGS_IN();
  29348     ecx = eax; /* 0x38034730: mov ecx, eax */
  29349     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  29350     RECOMP_FLAGS_IN();
  29351     ecx = eax; /* 0x38034734: mov ecx, eax */
  29352     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  29353     RECOMP_FLAGS_IN();
  29354     ecx = eax; /* 0x38034738: mov ecx, eax */
  29355     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  29356     RECOMP_FLAGS_IN();
  29357     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  29358     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  29359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29360     _flag_k = FK_CMP;
  29361     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  29362 L_38034745:
  29363     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  29364     PUSH32(esp, edx); /* 0x38034748: push edx */
  29365     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  29366     PUSH32(esp, eax); /* 0x3803474C: push eax */
  29367     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  29368     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  29369     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  29370     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  29371     RECOMP_FLAGS_IN();
  29372     ecx = eax; /* 0x38034755: mov ecx, eax */
  29373     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  29374     RECOMP_FLAGS_IN();
  29375     ecx = eax; /* 0x38034759: mov ecx, eax */
  29376     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  29377     RECOMP_FLAGS_IN();
  29378     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  29379 L_3803475F:
  29380     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  29381     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  29382     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  29383     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  29384     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  29385     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  29386 L_38034771:
  29387     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  29388     PUSH32(esp, edx); /* 0x38034774: push edx */
  29389     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  29390     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  29391     RECOMP_FLAGS_IN();
  29392     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  29393     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  29394     fp_pop();
  29395     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  29396     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  29397     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  29398     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  29399     _cf = 0;
  29400     _flag_k = FK_NARROW(FK_TEST, 24);
  29401     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  29402 L_3803478D:
  29403     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  29404 L_38034791:
  29405     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  29406     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  29407     RECOMP_FLAGS_IN();
  29408     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29409     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29410     esp = esp + 4; /* 0x38034798: add esp, 4 */
  29411     _flag_k = FK_ADD;
  29412     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  29413     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  29414     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  29415     _cf = 0;
  29416     _flag_k = FK_TEST;
  29417     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  29418     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29419     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29420     _flag_k = FK_CMP;
  29421     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  29422     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  29423 L_380347A7:
  29424     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  29425     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  29426     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  29427     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  29428     PUSH32(esp, edx); /* 0x380347B0: push edx */
  29429     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  29430     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  29431     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  29432     PUSH32(esp, edx); /* 0x380347B8: push edx */
  29433     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  29434     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  29435     ecx = eax; /* 0x380347BD: mov ecx, eax */
  29436     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  29437     RECOMP_FLAGS_IN();
  29438     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  29439     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  29440 L_380347C9:
  29441     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  29442 L_380347CC:
  29443     ecx = edi; /* 0x380347CC: mov ecx, edi */
  29444     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  29445     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  29446     RECOMP_FLAGS_IN();
  29447     ebx = eax; /* 0x380347DA: mov ebx, eax */
  29448     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  29449     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  29450     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  29451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29452     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  29453     _flag_k = FK_CMP;
  29454     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  29455     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29456     edx = (uint32_t)((int32_t)edx >> 2u);
  29457     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  29458     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  29459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29460     _flag_k = FK_CMP;
  29461     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  29462     esi = eax; /* 0x380347ED: mov esi, eax */
  29463     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  29464 L_380347F5:
  29465     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  29466     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  29467     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  29468     _cf = 0;
  29469     _flag_k = FK_TEST;
  29470     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  29471 L_380347FC:
  29472     ecx = eax; /* 0x380347FC: mov ecx, eax */
  29473     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  29474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29475     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  29476     _flag_k = FK_CMP;
  29477     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  29478     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29479     ecx = (uint32_t)((int32_t)ecx >> 2u);
  29480     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  29481     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  29482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29483     _flag_k = FK_CMP;
  29484     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  29485 L_38034808:
  29486     ecx = 1; /* 0x38034808: mov ecx, 1 */
  29487 L_3803480D:
  29488     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  29489     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  29490     _cf = 0;
  29491     _flag_k = FK_TEST;
  29492     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  29493 L_38034811:
  29494     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  29495     eax = 0; /* 0x38034811: xor eax, eax */
  29496     _cf = 0;
  29497     _flag_k = FK_TEST;
  29498     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  29499 L_38034815:
  29500     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  29501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29502     eax = eax - edx; /* 0x38034815: sub eax, edx */
  29503     _flag_k = FK_CMP;
  29504     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  29505     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29506     eax = (uint32_t)((int32_t)eax >> 2u);
  29507 L_3803481A:
  29508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29509     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29510     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  29511     _flag_k = FK_ADD;
  29512     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  29513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29514     _cf = 0;
  29515     _flag_k = FK_TEST;
  29516     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  29517     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  29518 L_38034823:
  29519     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  29520     eax = 0; /* 0x38034823: xor eax, eax */
  29521     _cf = 0;
  29522     _flag_k = FK_TEST;
  29523 L_38034825:
  29524     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  29525     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29526     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  29527     PUSH32(esp, eax); /* 0x38034828: push eax */
  29528     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  29529     RECOMP_FLAGS_IN();
  29530     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  29531     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29532     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29533     esp = esp + 4; /* 0x38034831: add esp, 4 */
  29534     _flag_k = FK_ADD;
  29535     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  29536     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  29537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29538     _flag_k = FK_CMP;
  29539     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  29540     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  29541 L_3803483B:
  29542     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  29543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29544     _cf = 0;
  29545     _flag_k = FK_TEST;
  29546     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  29547 L_3803483F:
  29548     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  29549     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  29550 L_38034843:
  29551     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  29552     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29553     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  29554     _flag_k = FK_ADD;
  29555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  29556     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29557     eax = eax + 4; /* 0x38034846: add eax, 4 */
  29558     _flag_k = FK_ADD;
  29559     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  29560     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  29561     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29562     _flag_k = FK_CMP;
  29563     RECOMP_BACKEDGE();
  29564     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  29565 L_3803484D:
  29566     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  29567     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29568     _cf = 0;
  29569     _flag_k = FK_TEST;
  29570     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  29571 L_38034851:
  29572     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  29573     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  29574 L_38034856:
  29575     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  29576     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  29577     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  29578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29579     _flag_k = FK_CMP;
  29580     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  29581     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  29582 L_38034860:
  29583     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  29584     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  29585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29586     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  29587     _flag_k = FK_CMP;
  29588     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  29589 L_38034868:
  29590     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  29591     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  29592     _cf = 0;
  29593     _flag_k = FK_TEST;
  29594     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  29595 L_3803486C:
  29596     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  29597     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  29598 L_38034870:
  29599     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  29600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29601     esi = esi + 4; /* 0x38034870: add esi, 4 */
  29602     _flag_k = FK_ADD;
  29603     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  29604     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29605     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  29606     _flag_k = FK_ADD;
  29607     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  29608     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  29609     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29610     _flag_k = FK_CMP;
  29611     RECOMP_BACKEDGE();
  29612     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  29613 L_3803487A:
  29614     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  29615 L_3803487D:
  29616     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  29617     PUSH32(esp, eax); /* 0x38034880: push eax */
  29618     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  29619     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  29620     RECOMP_FLAGS_IN();
  29621     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  29622     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  29623     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  29624     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  29625     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  29626     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29627     esp = esp + 4; /* 0x38034895: add esp, 4 */
  29628     _flag_k = FK_ADD;
  29629     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  29630     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  29631     _cf = 0;
  29632     _flag_k = FK_TEST;
  29633     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  29634     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  29635 L_3803489F:
  29636     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  29637     eax = 0; /* 0x3803489F: xor eax, eax */
  29638     _cf = 0;
  29639     _flag_k = FK_TEST;
  29640     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  29641     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  29642     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  29643     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  29644 L_380348B0:
  29645     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  29646     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29648     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  29649     _flag_k = FK_CMP;
  29650     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  29651     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29652     eax = (uint32_t)((int32_t)eax >> 2u);
  29653     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  29654     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  29655     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  29656     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  29657 L_380348C7:
  29658     ecx = eax; /* 0x380348C7: mov ecx, eax */
  29659     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  29660     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29661     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  29662     _flag_k = FK_CMP;
  29663     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  29664     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29665     ecx = (uint32_t)((int32_t)ecx >> 2u);
  29666     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  29667     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  29668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29669     _flag_k = FK_CMP;
  29670     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  29671 L_380348D3:
  29672     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  29673     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  29674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29675     _flag_k = FK_CMP;
  29676     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  29677     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  29678 L_380348DA:
  29679     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  29680 L_380348DD:
  29681     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  29682     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  29683     _cf = 0;
  29684     _flag_k = FK_TEST;
  29685     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  29686 L_380348E1:
  29687     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  29688     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  29689     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  29690 L_380348E8:
  29691     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  29692     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29693     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  29694     _flag_k = FK_ADD;
  29695     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  29696     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29697     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  29698     _flag_k = FK_ADD;
  29699     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  29700     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  29701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29702     _flag_k = FK_CMP;
  29703     RECOMP_BACKEDGE();
  29704     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  29705 L_380348F2:
  29706     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  29707     edx = ecx; /* 0x380348F5: mov edx, ecx */
  29708     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  29709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29710     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  29711     _flag_k = FK_CMP;
  29712     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  29713     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29714     edx = (uint32_t)((int32_t)edx >> 2u);
  29715     eax = 1; /* 0x380348FC: mov eax, 1 */
  29716     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  29717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29718     eax = eax - edx; /* 0x38034901: sub eax, edx */
  29719     _flag_k = FK_CMP;
  29720     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  29721     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  29722 L_38034908:
  29723     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  29724     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  29725     _cf = 0;
  29726     _flag_k = FK_TEST;
  29727     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  29728 L_3803490C:
  29729     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  29730 L_3803490E:
  29731     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  29732     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29733     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  29734     _flag_k = FK_ADD;
  29735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  29736     eax = eax - 1; /* 0x38034911: dec eax */
  29737     _flag_k = FK_DEC;
  29738     RECOMP_BACKEDGE();
  29739     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  29740 L_38034914:
  29741     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  29742     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  29743     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  29744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29745     _flag_k = FK_CMP;
  29746     eax = esi; /* 0x38034919: mov eax, esi */
  29747     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  29748 L_3803491D:
  29749     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  29750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  29751     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29752     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  29753     _flag_k = FK_ADD;
  29754     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  29755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29757     _flag_k = FK_CMP;
  29758     RECOMP_BACKEDGE();
  29759     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  29760 L_38034926:
  29761     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  29762 L_38034928:
  29763     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  29764     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  29765     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  29766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29767     _flag_k = FK_CMP;
  29768     edx = eax; /* 0x3803492D: mov edx, eax */
  29769     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  29770     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  29771 L_38034934:
  29772     /* test edx, edx */ /* 0x38034934: test edx, edx */
  29773     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  29774     _cf = 0;
  29775     _flag_k = FK_TEST;
  29776     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  29777 L_38034938:
  29778     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  29779     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  29780     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  29781 L_3803493F:
  29782     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  29783     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29784     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  29785     _flag_k = FK_ADD;
  29786     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  29787     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29788     edx = edx + 4; /* 0x38034942: add edx, 4 */
  29789     _flag_k = FK_ADD;
  29790     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  29791     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  29792     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29793     _flag_k = FK_CMP;
  29794     RECOMP_BACKEDGE();
  29795     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  29796 L_38034949:
  29797     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  29798     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  29799     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  29800     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  29801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29802     _flag_k = FK_CMP;
  29803     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  29804 L_38034953:
  29805     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  29806     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  29807     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29808     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  29809     _flag_k = FK_CMP;
  29810     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  29811     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29812     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  29813     _flag_k = FK_CMP;
  29814     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  29815     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  29816     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29817     _flag_k = FK_CMP;
  29818     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  29819     RECOMP_BACKEDGE();
  29820     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  29821 L_38034962:
  29822     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  29823     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  29824     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  29825     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29826     _flag_k = FK_CMP;
  29827     eax = esi; /* 0x38034967: mov eax, esi */
  29828     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  29829 L_3803496B:
  29830     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  29831 L_3803496E:
  29832     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  29833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  29834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29835     eax = eax + 4; /* 0x38034970: add eax, 4 */
  29836     _flag_k = FK_ADD;
  29837     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  29838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29840     _flag_k = FK_CMP;
  29841     RECOMP_BACKEDGE();
  29842     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  29843 L_38034977:
  29844     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  29845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  29846     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  29847     _flag_k = FK_ADD;
  29848 L_3803497B:
  29849     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  29850     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  29851     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  29852     eax = eax + 1; /* 0x38034981: inc eax */
  29853     _flag_k = FK_INC;
  29854     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  29855     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  29856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29857     _flag_k = FK_CMP;
  29858     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  29859     RECOMP_BACKEDGE();
  29860     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  29861 L_3803498D:
  29862     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  29863     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  29864     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  29865     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  29866     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  29867     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  29868     esp = ebp; /* 0x3803499D: mov esp, ebp */
  29869     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  29870     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  29871     RECOMP_REGS_OUT();
  29872 }
  29873 
  29874 void sub_38034677(void) {
  29875     int _fpu_cmp = 0;
  29876     uint32_t _cf = 0;
  29877     int _df = 1;
  29878     uint32_t _flag_k = FK_NONE;
  29879     uint32_t _flag_a = 0, _flag_b = 0;
  29880     uint32_t _itail_tgt = 0;
  29881     RECOMP_REGS_LOCALS
  29882     RECOMP_ENTER(0x38034677u);
  29883 
  29884 L_38034677:
  29885     esi = MEM32(edi + 0xC); /* 0x38034677: mov esi, dword ptr [edi + 0xc] */
  29886     ecx = edi; /* 0x3803467A: mov ecx, edi */
  29887     RECOMP_ICALL(0x380303E0u); /* 0x3803467C: call 0x380303e0 */ /* not lifted */
  29888     RECOMP_FLAGS_IN();
  29889     if (16u) _cf = (((eax) >> 16) & 1u); /* 0x38034681: shl eax, 0x10 */
  29890     if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  29891     eax = eax << 16u; /* 0x38034681: shl eax, 0x10 */
  29892     _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi));
  29893     eax = eax | esi; /* 0x38034684: or eax, esi */
  29894     _cf = 0;
  29895     _flag_k = FK_TEST;
  29896     MEM32(edi + 0x4) = eax; /* 0x38034686: mov dword ptr [edi + 4], eax */
  29897     /* cmp MEM32(edi + 0xAC), 4 */ /* 0x38034689: cmp dword ptr [edi + 0xac], 4 */
  29898     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(4);
  29899     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29900     _flag_k = FK_CMP;
  29901     if (CMP_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x38034690: jle 0x3803498d */
  29902 L_38034696:
  29903     ecx = MEM32(ebp + 0x8); /* 0x38034696: mov ecx, dword ptr [ebp + 8] */
  29904     eax = ebp + (-0x3C); /* 0x38034699: lea eax, [ebp - 0x3c] */
  29905     PUSH32(esp, eax); /* 0x3803469C: push eax */
  29906     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803469D: call dword ptr [0x3804e388] */
  29907     RECOMP_FLAGS_IN();
  29908     eax = MEM32(ebp + (-0x3C)); /* 0x380346A3: mov eax, dword ptr [ebp - 0x3c] */
  29909     /* test eax, eax */ /* 0x380346A6: test eax, eax */
  29910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  29911     _cf = 0;
  29912     _flag_k = FK_TEST;
  29913     MEM32(ebp + (-0x2C)) = 0; /* 0x380346A8: mov dword ptr [ebp - 0x2c], 0 */
  29914     if (TEST_LE(_flag_a, _flag_b)) goto L_3803498D; /* 0x380346AF: jle 0x3803498d */
  29915 L_380346B5:
  29916     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  29917     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  29918     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  29919     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  29920     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  29921     PUSH32(esp, edx); /* 0x380346C5: push edx */
  29922     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  29923     PUSH32(esp, eax); /* 0x380346C9: push eax */
  29924     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  29925     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  29926     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  29927     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  29928     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  29929     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  29930     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  29931     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  29932     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  29933     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  29934     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  29935     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  29936     RECOMP_FLAGS_IN();
  29937     ecx = eax; /* 0x38034714: mov ecx, eax */
  29938     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  29939     RECOMP_FLAGS_IN();
  29940     ecx = eax; /* 0x38034718: mov ecx, eax */
  29941     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  29942     RECOMP_FLAGS_IN();
  29943     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  29944     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  29945     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  29946     PUSH32(esp, edx); /* 0x38034723: push edx */
  29947     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  29948     PUSH32(esp, eax); /* 0x38034727: push eax */
  29949     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  29950     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  29951     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  29952     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  29953     RECOMP_FLAGS_IN();
  29954     ecx = eax; /* 0x38034730: mov ecx, eax */
  29955     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  29956     RECOMP_FLAGS_IN();
  29957     ecx = eax; /* 0x38034734: mov ecx, eax */
  29958     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  29959     RECOMP_FLAGS_IN();
  29960     ecx = eax; /* 0x38034738: mov ecx, eax */
  29961     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  29962     RECOMP_FLAGS_IN();
  29963     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  29964     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  29965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  29966     _flag_k = FK_CMP;
  29967     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  29968 L_38034745:
  29969     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  29970     PUSH32(esp, edx); /* 0x38034748: push edx */
  29971     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  29972     PUSH32(esp, eax); /* 0x3803474C: push eax */
  29973     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  29974     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  29975     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  29976     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  29977     RECOMP_FLAGS_IN();
  29978     ecx = eax; /* 0x38034755: mov ecx, eax */
  29979     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  29980     RECOMP_FLAGS_IN();
  29981     ecx = eax; /* 0x38034759: mov ecx, eax */
  29982     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  29983     RECOMP_FLAGS_IN();
  29984     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  29985 L_3803475F:
  29986     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  29987     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  29988     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  29989     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  29990     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  29991     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  29992 L_38034771:
  29993     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  29994     PUSH32(esp, edx); /* 0x38034774: push edx */
  29995     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  29996     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  29997     RECOMP_FLAGS_IN();
  29998     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  29999     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  30000     fp_pop();
  30001     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  30002     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  30003     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  30004     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  30005     _cf = 0;
  30006     _flag_k = FK_NARROW(FK_TEST, 24);
  30007     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  30008 L_3803478D:
  30009     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  30010 L_38034791:
  30011     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  30012     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  30013     RECOMP_FLAGS_IN();
  30014     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  30015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30016     esp = esp + 4; /* 0x38034798: add esp, 4 */
  30017     _flag_k = FK_ADD;
  30018     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  30019     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  30020     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  30021     _cf = 0;
  30022     _flag_k = FK_TEST;
  30023     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  30024     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30026     _flag_k = FK_CMP;
  30027     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  30028     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  30029 L_380347A7:
  30030     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  30031     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  30032     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  30033     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  30034     PUSH32(esp, edx); /* 0x380347B0: push edx */
  30035     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  30036     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  30037     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  30038     PUSH32(esp, edx); /* 0x380347B8: push edx */
  30039     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  30040     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  30041     ecx = eax; /* 0x380347BD: mov ecx, eax */
  30042     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  30043     RECOMP_FLAGS_IN();
  30044     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  30045     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  30046 L_380347C9:
  30047     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  30048 L_380347CC:
  30049     ecx = edi; /* 0x380347CC: mov ecx, edi */
  30050     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  30051     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  30052     RECOMP_FLAGS_IN();
  30053     ebx = eax; /* 0x380347DA: mov ebx, eax */
  30054     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  30055     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  30056     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  30057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30058     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  30059     _flag_k = FK_CMP;
  30060     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  30061     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30062     edx = (uint32_t)((int32_t)edx >> 2u);
  30063     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  30064     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  30065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30066     _flag_k = FK_CMP;
  30067     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  30068     esi = eax; /* 0x380347ED: mov esi, eax */
  30069     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  30070 L_380347F5:
  30071     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  30072     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  30073     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  30074     _cf = 0;
  30075     _flag_k = FK_TEST;
  30076     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  30077 L_380347FC:
  30078     ecx = eax; /* 0x380347FC: mov ecx, eax */
  30079     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  30080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30081     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  30082     _flag_k = FK_CMP;
  30083     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  30084     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30085     ecx = (uint32_t)((int32_t)ecx >> 2u);
  30086     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  30087     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  30088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30089     _flag_k = FK_CMP;
  30090     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  30091 L_38034808:
  30092     ecx = 1; /* 0x38034808: mov ecx, 1 */
  30093 L_3803480D:
  30094     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  30095     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  30096     _cf = 0;
  30097     _flag_k = FK_TEST;
  30098     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  30099 L_38034811:
  30100     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  30101     eax = 0; /* 0x38034811: xor eax, eax */
  30102     _cf = 0;
  30103     _flag_k = FK_TEST;
  30104     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  30105 L_38034815:
  30106     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  30107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30108     eax = eax - edx; /* 0x38034815: sub eax, edx */
  30109     _flag_k = FK_CMP;
  30110     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  30111     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30112     eax = (uint32_t)((int32_t)eax >> 2u);
  30113 L_3803481A:
  30114     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30116     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  30117     _flag_k = FK_ADD;
  30118     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  30119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  30120     _cf = 0;
  30121     _flag_k = FK_TEST;
  30122     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  30123     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  30124 L_38034823:
  30125     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  30126     eax = 0; /* 0x38034823: xor eax, eax */
  30127     _cf = 0;
  30128     _flag_k = FK_TEST;
  30129 L_38034825:
  30130     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  30131     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30132     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  30133     PUSH32(esp, eax); /* 0x38034828: push eax */
  30134     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  30135     RECOMP_FLAGS_IN();
  30136     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  30137     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  30138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30139     esp = esp + 4; /* 0x38034831: add esp, 4 */
  30140     _flag_k = FK_ADD;
  30141     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  30142     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  30143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30144     _flag_k = FK_CMP;
  30145     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  30146     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  30147 L_3803483B:
  30148     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  30149     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  30150     _cf = 0;
  30151     _flag_k = FK_TEST;
  30152     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  30153 L_3803483F:
  30154     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  30155     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  30156 L_38034843:
  30157     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30159     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  30160     _flag_k = FK_ADD;
  30161     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  30162     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30163     eax = eax + 4; /* 0x38034846: add eax, 4 */
  30164     _flag_k = FK_ADD;
  30165     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  30166     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  30167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30168     _flag_k = FK_CMP;
  30169     RECOMP_BACKEDGE();
  30170     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  30171 L_3803484D:
  30172     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  30173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  30174     _cf = 0;
  30175     _flag_k = FK_TEST;
  30176     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  30177 L_38034851:
  30178     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  30179     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  30180 L_38034856:
  30181     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  30182     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  30183     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  30184     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30185     _flag_k = FK_CMP;
  30186     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  30187     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  30188 L_38034860:
  30189     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  30190     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  30191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30192     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  30193     _flag_k = FK_CMP;
  30194     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  30195 L_38034868:
  30196     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  30197     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  30198     _cf = 0;
  30199     _flag_k = FK_TEST;
  30200     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  30201 L_3803486C:
  30202     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  30203     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  30204 L_38034870:
  30205     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  30206     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30207     esi = esi + 4; /* 0x38034870: add esi, 4 */
  30208     _flag_k = FK_ADD;
  30209     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30210     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30211     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  30212     _flag_k = FK_ADD;
  30213     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  30214     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  30215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30216     _flag_k = FK_CMP;
  30217     RECOMP_BACKEDGE();
  30218     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  30219 L_3803487A:
  30220     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  30221 L_3803487D:
  30222     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  30223     PUSH32(esp, eax); /* 0x38034880: push eax */
  30224     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  30225     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  30226     RECOMP_FLAGS_IN();
  30227     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  30228     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  30229     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  30230     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  30231     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  30232     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30233     esp = esp + 4; /* 0x38034895: add esp, 4 */
  30234     _flag_k = FK_ADD;
  30235     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  30236     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  30237     _cf = 0;
  30238     _flag_k = FK_TEST;
  30239     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  30240     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  30241 L_3803489F:
  30242     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  30243     eax = 0; /* 0x3803489F: xor eax, eax */
  30244     _cf = 0;
  30245     _flag_k = FK_TEST;
  30246     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  30247     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  30248     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  30249     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  30250 L_380348B0:
  30251     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  30252     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30254     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  30255     _flag_k = FK_CMP;
  30256     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  30257     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30258     eax = (uint32_t)((int32_t)eax >> 2u);
  30259     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  30260     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  30261     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  30262     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  30263 L_380348C7:
  30264     ecx = eax; /* 0x380348C7: mov ecx, eax */
  30265     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  30266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30267     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  30268     _flag_k = FK_CMP;
  30269     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  30270     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30271     ecx = (uint32_t)((int32_t)ecx >> 2u);
  30272     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  30273     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  30274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30275     _flag_k = FK_CMP;
  30276     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  30277 L_380348D3:
  30278     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  30279     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  30280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30281     _flag_k = FK_CMP;
  30282     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  30283     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  30284 L_380348DA:
  30285     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  30286 L_380348DD:
  30287     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  30288     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  30289     _cf = 0;
  30290     _flag_k = FK_TEST;
  30291     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  30292 L_380348E1:
  30293     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  30294     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  30295     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  30296 L_380348E8:
  30297     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  30298     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30299     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  30300     _flag_k = FK_ADD;
  30301     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30302     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30303     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  30304     _flag_k = FK_ADD;
  30305     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  30306     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  30307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30308     _flag_k = FK_CMP;
  30309     RECOMP_BACKEDGE();
  30310     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  30311 L_380348F2:
  30312     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  30313     edx = ecx; /* 0x380348F5: mov edx, ecx */
  30314     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  30315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30316     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  30317     _flag_k = FK_CMP;
  30318     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  30319     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30320     edx = (uint32_t)((int32_t)edx >> 2u);
  30321     eax = 1; /* 0x380348FC: mov eax, 1 */
  30322     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  30323     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30324     eax = eax - edx; /* 0x38034901: sub eax, edx */
  30325     _flag_k = FK_CMP;
  30326     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  30327     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  30328 L_38034908:
  30329     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  30330     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  30331     _cf = 0;
  30332     _flag_k = FK_TEST;
  30333     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  30334 L_3803490C:
  30335     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  30336 L_3803490E:
  30337     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30338     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30339     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  30340     _flag_k = FK_ADD;
  30341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  30342     eax = eax - 1; /* 0x38034911: dec eax */
  30343     _flag_k = FK_DEC;
  30344     RECOMP_BACKEDGE();
  30345     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  30346 L_38034914:
  30347     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  30348     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  30349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  30350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30351     _flag_k = FK_CMP;
  30352     eax = esi; /* 0x38034919: mov eax, esi */
  30353     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  30354 L_3803491D:
  30355     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  30356     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  30357     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30358     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  30359     _flag_k = FK_ADD;
  30360     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  30361     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30363     _flag_k = FK_CMP;
  30364     RECOMP_BACKEDGE();
  30365     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  30366 L_38034926:
  30367     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  30368 L_38034928:
  30369     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  30370     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  30371     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  30372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30373     _flag_k = FK_CMP;
  30374     edx = eax; /* 0x3803492D: mov edx, eax */
  30375     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  30376     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  30377 L_38034934:
  30378     /* test edx, edx */ /* 0x38034934: test edx, edx */
  30379     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  30380     _cf = 0;
  30381     _flag_k = FK_TEST;
  30382     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  30383 L_38034938:
  30384     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  30385     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  30386     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  30387 L_3803493F:
  30388     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30390     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  30391     _flag_k = FK_ADD;
  30392     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  30393     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30394     edx = edx + 4; /* 0x38034942: add edx, 4 */
  30395     _flag_k = FK_ADD;
  30396     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  30397     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  30398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30399     _flag_k = FK_CMP;
  30400     RECOMP_BACKEDGE();
  30401     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  30402 L_38034949:
  30403     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  30404     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  30405     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  30406     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  30407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30408     _flag_k = FK_CMP;
  30409     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  30410 L_38034953:
  30411     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  30412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  30413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30414     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  30415     _flag_k = FK_CMP;
  30416     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30418     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  30419     _flag_k = FK_CMP;
  30420     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  30421     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  30422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30423     _flag_k = FK_CMP;
  30424     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  30425     RECOMP_BACKEDGE();
  30426     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  30427 L_38034962:
  30428     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  30429     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  30430     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  30431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30432     _flag_k = FK_CMP;
  30433     eax = esi; /* 0x38034967: mov eax, esi */
  30434     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  30435 L_3803496B:
  30436     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  30437 L_3803496E:
  30438     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  30439     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  30440     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30441     eax = eax + 4; /* 0x38034970: add eax, 4 */
  30442     _flag_k = FK_ADD;
  30443     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  30444     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30446     _flag_k = FK_CMP;
  30447     RECOMP_BACKEDGE();
  30448     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  30449 L_38034977:
  30450     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  30451     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30452     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  30453     _flag_k = FK_ADD;
  30454 L_3803497B:
  30455     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  30456     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  30457     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  30458     eax = eax + 1; /* 0x38034981: inc eax */
  30459     _flag_k = FK_INC;
  30460     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  30461     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30463     _flag_k = FK_CMP;
  30464     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  30465     RECOMP_BACKEDGE();
  30466     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  30467 L_3803498D:
  30468     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  30469     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  30470     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  30471     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  30472     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  30473     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  30474     esp = ebp; /* 0x3803499D: mov esp, ebp */
  30475     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  30476     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  30477     RECOMP_REGS_OUT();
  30478 }
  30479 
  30480 void sub_380346B5(void) {
  30481     int _fpu_cmp = 0;
  30482     uint32_t _cf = 0;
  30483     int _df = 1;
  30484     uint32_t _flag_k = FK_NONE;
  30485     uint32_t _flag_a = 0, _flag_b = 0;
  30486     uint32_t _itail_tgt = 0;
  30487     RECOMP_REGS_LOCALS
  30488     RECOMP_ENTER(0x380346B5u);
  30489 
  30490 L_380346B5:
  30491     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  30492     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  30493     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  30494     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  30495     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  30496     PUSH32(esp, edx); /* 0x380346C5: push edx */
  30497     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  30498     PUSH32(esp, eax); /* 0x380346C9: push eax */
  30499     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  30500     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  30501     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  30502     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  30503     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  30504     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  30505     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  30506     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  30507     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  30508     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  30509     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  30510     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  30511     RECOMP_FLAGS_IN();
  30512     ecx = eax; /* 0x38034714: mov ecx, eax */
  30513     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  30514     RECOMP_FLAGS_IN();
  30515     ecx = eax; /* 0x38034718: mov ecx, eax */
  30516     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  30517     RECOMP_FLAGS_IN();
  30518     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  30519     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  30520     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  30521     PUSH32(esp, edx); /* 0x38034723: push edx */
  30522     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  30523     PUSH32(esp, eax); /* 0x38034727: push eax */
  30524     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  30525     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  30526     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  30527     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  30528     RECOMP_FLAGS_IN();
  30529     ecx = eax; /* 0x38034730: mov ecx, eax */
  30530     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  30531     RECOMP_FLAGS_IN();
  30532     ecx = eax; /* 0x38034734: mov ecx, eax */
  30533     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  30534     RECOMP_FLAGS_IN();
  30535     ecx = eax; /* 0x38034738: mov ecx, eax */
  30536     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  30537     RECOMP_FLAGS_IN();
  30538     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  30539     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  30540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30541     _flag_k = FK_CMP;
  30542     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  30543 L_38034745:
  30544     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  30545     PUSH32(esp, edx); /* 0x38034748: push edx */
  30546     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  30547     PUSH32(esp, eax); /* 0x3803474C: push eax */
  30548     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  30549     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  30550     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  30551     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  30552     RECOMP_FLAGS_IN();
  30553     ecx = eax; /* 0x38034755: mov ecx, eax */
  30554     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  30555     RECOMP_FLAGS_IN();
  30556     ecx = eax; /* 0x38034759: mov ecx, eax */
  30557     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  30558     RECOMP_FLAGS_IN();
  30559     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  30560 L_3803475F:
  30561     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  30562     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  30563     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  30564     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  30565     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  30566     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  30567 L_38034771:
  30568     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  30569     PUSH32(esp, edx); /* 0x38034774: push edx */
  30570     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  30571     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  30572     RECOMP_FLAGS_IN();
  30573     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  30574     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  30575     fp_pop();
  30576     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  30577     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  30578     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  30579     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  30580     _cf = 0;
  30581     _flag_k = FK_NARROW(FK_TEST, 24);
  30582     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  30583 L_3803478D:
  30584     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  30585 L_38034791:
  30586     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  30587     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  30588     RECOMP_FLAGS_IN();
  30589     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  30590     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30591     esp = esp + 4; /* 0x38034798: add esp, 4 */
  30592     _flag_k = FK_ADD;
  30593     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  30594     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  30595     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  30596     _cf = 0;
  30597     _flag_k = FK_TEST;
  30598     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  30599     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30601     _flag_k = FK_CMP;
  30602     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  30603     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  30604 L_380347A7:
  30605     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  30606     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  30607     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  30608     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  30609     PUSH32(esp, edx); /* 0x380347B0: push edx */
  30610     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  30611     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  30612     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  30613     PUSH32(esp, edx); /* 0x380347B8: push edx */
  30614     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  30615     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  30616     ecx = eax; /* 0x380347BD: mov ecx, eax */
  30617     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  30618     RECOMP_FLAGS_IN();
  30619     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  30620     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  30621 L_380347C9:
  30622     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  30623 L_380347CC:
  30624     ecx = edi; /* 0x380347CC: mov ecx, edi */
  30625     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  30626     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  30627     RECOMP_FLAGS_IN();
  30628     ebx = eax; /* 0x380347DA: mov ebx, eax */
  30629     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  30630     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  30631     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  30632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30633     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  30634     _flag_k = FK_CMP;
  30635     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  30636     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30637     edx = (uint32_t)((int32_t)edx >> 2u);
  30638     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  30639     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  30640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30641     _flag_k = FK_CMP;
  30642     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  30643     esi = eax; /* 0x380347ED: mov esi, eax */
  30644     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  30645 L_380347F5:
  30646     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  30647     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  30648     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  30649     _cf = 0;
  30650     _flag_k = FK_TEST;
  30651     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  30652 L_380347FC:
  30653     ecx = eax; /* 0x380347FC: mov ecx, eax */
  30654     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  30655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30656     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  30657     _flag_k = FK_CMP;
  30658     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  30659     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30660     ecx = (uint32_t)((int32_t)ecx >> 2u);
  30661     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  30662     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  30663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30664     _flag_k = FK_CMP;
  30665     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  30666 L_38034808:
  30667     ecx = 1; /* 0x38034808: mov ecx, 1 */
  30668 L_3803480D:
  30669     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  30670     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  30671     _cf = 0;
  30672     _flag_k = FK_TEST;
  30673     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  30674 L_38034811:
  30675     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  30676     eax = 0; /* 0x38034811: xor eax, eax */
  30677     _cf = 0;
  30678     _flag_k = FK_TEST;
  30679     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  30680 L_38034815:
  30681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  30682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30683     eax = eax - edx; /* 0x38034815: sub eax, edx */
  30684     _flag_k = FK_CMP;
  30685     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  30686     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30687     eax = (uint32_t)((int32_t)eax >> 2u);
  30688 L_3803481A:
  30689     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30691     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  30692     _flag_k = FK_ADD;
  30693     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  30694     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  30695     _cf = 0;
  30696     _flag_k = FK_TEST;
  30697     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  30698     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  30699 L_38034823:
  30700     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  30701     eax = 0; /* 0x38034823: xor eax, eax */
  30702     _cf = 0;
  30703     _flag_k = FK_TEST;
  30704 L_38034825:
  30705     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  30706     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30707     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  30708     PUSH32(esp, eax); /* 0x38034828: push eax */
  30709     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  30710     RECOMP_FLAGS_IN();
  30711     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  30712     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  30713     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30714     esp = esp + 4; /* 0x38034831: add esp, 4 */
  30715     _flag_k = FK_ADD;
  30716     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  30717     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  30718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30719     _flag_k = FK_CMP;
  30720     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  30721     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  30722 L_3803483B:
  30723     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  30724     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  30725     _cf = 0;
  30726     _flag_k = FK_TEST;
  30727     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  30728 L_3803483F:
  30729     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  30730     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  30731 L_38034843:
  30732     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30734     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  30735     _flag_k = FK_ADD;
  30736     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  30737     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30738     eax = eax + 4; /* 0x38034846: add eax, 4 */
  30739     _flag_k = FK_ADD;
  30740     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  30741     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  30742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30743     _flag_k = FK_CMP;
  30744     RECOMP_BACKEDGE();
  30745     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  30746 L_3803484D:
  30747     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  30748     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  30749     _cf = 0;
  30750     _flag_k = FK_TEST;
  30751     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  30752 L_38034851:
  30753     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  30754     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  30755 L_38034856:
  30756     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  30757     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  30758     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  30759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30760     _flag_k = FK_CMP;
  30761     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  30762     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  30763 L_38034860:
  30764     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  30765     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  30766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30767     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  30768     _flag_k = FK_CMP;
  30769     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  30770 L_38034868:
  30771     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  30772     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  30773     _cf = 0;
  30774     _flag_k = FK_TEST;
  30775     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  30776 L_3803486C:
  30777     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  30778     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  30779 L_38034870:
  30780     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  30781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30782     esi = esi + 4; /* 0x38034870: add esi, 4 */
  30783     _flag_k = FK_ADD;
  30784     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30785     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30786     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  30787     _flag_k = FK_ADD;
  30788     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  30789     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  30790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30791     _flag_k = FK_CMP;
  30792     RECOMP_BACKEDGE();
  30793     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  30794 L_3803487A:
  30795     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  30796 L_3803487D:
  30797     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  30798     PUSH32(esp, eax); /* 0x38034880: push eax */
  30799     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  30800     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  30801     RECOMP_FLAGS_IN();
  30802     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  30803     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  30804     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  30805     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  30806     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  30807     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30808     esp = esp + 4; /* 0x38034895: add esp, 4 */
  30809     _flag_k = FK_ADD;
  30810     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  30811     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  30812     _cf = 0;
  30813     _flag_k = FK_TEST;
  30814     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  30815     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  30816 L_3803489F:
  30817     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  30818     eax = 0; /* 0x3803489F: xor eax, eax */
  30819     _cf = 0;
  30820     _flag_k = FK_TEST;
  30821     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  30822     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  30823     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  30824     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  30825 L_380348B0:
  30826     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  30827     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30829     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  30830     _flag_k = FK_CMP;
  30831     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  30832     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30833     eax = (uint32_t)((int32_t)eax >> 2u);
  30834     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  30835     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  30836     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  30837     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  30838 L_380348C7:
  30839     ecx = eax; /* 0x380348C7: mov ecx, eax */
  30840     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  30841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30842     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  30843     _flag_k = FK_CMP;
  30844     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  30845     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30846     ecx = (uint32_t)((int32_t)ecx >> 2u);
  30847     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  30848     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  30849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30850     _flag_k = FK_CMP;
  30851     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  30852 L_380348D3:
  30853     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  30854     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  30855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30856     _flag_k = FK_CMP;
  30857     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  30858     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  30859 L_380348DA:
  30860     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  30861 L_380348DD:
  30862     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  30863     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  30864     _cf = 0;
  30865     _flag_k = FK_TEST;
  30866     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  30867 L_380348E1:
  30868     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  30869     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  30870     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  30871 L_380348E8:
  30872     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  30873     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30874     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  30875     _flag_k = FK_ADD;
  30876     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30877     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30878     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  30879     _flag_k = FK_ADD;
  30880     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  30881     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  30882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30883     _flag_k = FK_CMP;
  30884     RECOMP_BACKEDGE();
  30885     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  30886 L_380348F2:
  30887     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  30888     edx = ecx; /* 0x380348F5: mov edx, ecx */
  30889     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  30890     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30891     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  30892     _flag_k = FK_CMP;
  30893     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  30894     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  30895     edx = (uint32_t)((int32_t)edx >> 2u);
  30896     eax = 1; /* 0x380348FC: mov eax, 1 */
  30897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  30898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30899     eax = eax - edx; /* 0x38034901: sub eax, edx */
  30900     _flag_k = FK_CMP;
  30901     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  30902     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  30903 L_38034908:
  30904     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  30905     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  30906     _cf = 0;
  30907     _flag_k = FK_TEST;
  30908     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  30909 L_3803490C:
  30910     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  30911 L_3803490E:
  30912     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30913     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30914     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  30915     _flag_k = FK_ADD;
  30916     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  30917     eax = eax - 1; /* 0x38034911: dec eax */
  30918     _flag_k = FK_DEC;
  30919     RECOMP_BACKEDGE();
  30920     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  30921 L_38034914:
  30922     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  30923     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  30924     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  30925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30926     _flag_k = FK_CMP;
  30927     eax = esi; /* 0x38034919: mov eax, esi */
  30928     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  30929 L_3803491D:
  30930     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  30931     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  30932     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30933     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  30934     _flag_k = FK_ADD;
  30935     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  30936     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  30937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30938     _flag_k = FK_CMP;
  30939     RECOMP_BACKEDGE();
  30940     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  30941 L_38034926:
  30942     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  30943 L_38034928:
  30944     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  30945     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  30946     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  30947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30948     _flag_k = FK_CMP;
  30949     edx = eax; /* 0x3803492D: mov edx, eax */
  30950     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  30951     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  30952 L_38034934:
  30953     /* test edx, edx */ /* 0x38034934: test edx, edx */
  30954     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  30955     _cf = 0;
  30956     _flag_k = FK_TEST;
  30957     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  30958 L_38034938:
  30959     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  30960     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  30961     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  30962 L_3803493F:
  30963     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30965     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  30966     _flag_k = FK_ADD;
  30967     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  30968     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  30969     edx = edx + 4; /* 0x38034942: add edx, 4 */
  30970     _flag_k = FK_ADD;
  30971     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  30972     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  30973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30974     _flag_k = FK_CMP;
  30975     RECOMP_BACKEDGE();
  30976     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  30977 L_38034949:
  30978     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  30979     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  30980     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  30981     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  30982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30983     _flag_k = FK_CMP;
  30984     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  30985 L_38034953:
  30986     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  30987     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  30988     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30989     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  30990     _flag_k = FK_CMP;
  30991     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  30992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30993     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  30994     _flag_k = FK_CMP;
  30995     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  30996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  30997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  30998     _flag_k = FK_CMP;
  30999     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  31000     RECOMP_BACKEDGE();
  31001     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  31002 L_38034962:
  31003     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  31004     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  31005     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  31006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31007     _flag_k = FK_CMP;
  31008     eax = esi; /* 0x38034967: mov eax, esi */
  31009     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  31010 L_3803496B:
  31011     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  31012 L_3803496E:
  31013     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  31014     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  31015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31016     eax = eax + 4; /* 0x38034970: add eax, 4 */
  31017     _flag_k = FK_ADD;
  31018     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  31019     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31021     _flag_k = FK_CMP;
  31022     RECOMP_BACKEDGE();
  31023     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  31024 L_38034977:
  31025     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  31026     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31027     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  31028     _flag_k = FK_ADD;
  31029 L_3803497B:
  31030     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  31031     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  31032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  31033     eax = eax + 1; /* 0x38034981: inc eax */
  31034     _flag_k = FK_INC;
  31035     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  31036     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31038     _flag_k = FK_CMP;
  31039     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  31040     RECOMP_BACKEDGE();
  31041     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  31042 L_3803498D:
  31043     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  31044     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  31045     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  31046     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  31047     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  31048     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  31049     esp = ebp; /* 0x3803499D: mov esp, ebp */
  31050     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  31051     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  31052     RECOMP_REGS_OUT();
  31053 }
  31054 
  31055 void sub_38034704(void) {
  31056     int _fpu_cmp = 0;
  31057     uint32_t _cf = 0;
  31058     int _df = 1;
  31059     uint32_t _flag_k = FK_NONE;
  31060     uint32_t _flag_a = 0, _flag_b = 0;
  31061     uint32_t _itail_tgt = 0;
  31062     RECOMP_REGS_LOCALS
  31063     RECOMP_ENTER(0x38034704u);
  31064 
  31065     goto L_38034704;
  31066 L_380346B5:
  31067     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  31068     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  31069     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  31070     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  31071     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  31072     PUSH32(esp, edx); /* 0x380346C5: push edx */
  31073     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  31074     PUSH32(esp, eax); /* 0x380346C9: push eax */
  31075     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  31076     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  31077     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  31078     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  31079     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  31080     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  31081     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  31082     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  31083     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  31084 L_38034704:
  31085     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  31086     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  31087     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  31088     RECOMP_FLAGS_IN();
  31089     ecx = eax; /* 0x38034714: mov ecx, eax */
  31090     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  31091     RECOMP_FLAGS_IN();
  31092     ecx = eax; /* 0x38034718: mov ecx, eax */
  31093     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  31094     RECOMP_FLAGS_IN();
  31095     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  31096     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  31097     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  31098     PUSH32(esp, edx); /* 0x38034723: push edx */
  31099     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  31100     PUSH32(esp, eax); /* 0x38034727: push eax */
  31101     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  31102     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  31103     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  31104     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  31105     RECOMP_FLAGS_IN();
  31106     ecx = eax; /* 0x38034730: mov ecx, eax */
  31107     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  31108     RECOMP_FLAGS_IN();
  31109     ecx = eax; /* 0x38034734: mov ecx, eax */
  31110     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  31111     RECOMP_FLAGS_IN();
  31112     ecx = eax; /* 0x38034738: mov ecx, eax */
  31113     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  31114     RECOMP_FLAGS_IN();
  31115     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  31116     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  31117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31118     _flag_k = FK_CMP;
  31119     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  31120 L_38034745:
  31121     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  31122     PUSH32(esp, edx); /* 0x38034748: push edx */
  31123     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  31124     PUSH32(esp, eax); /* 0x3803474C: push eax */
  31125     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  31126     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  31127     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  31128     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  31129     RECOMP_FLAGS_IN();
  31130     ecx = eax; /* 0x38034755: mov ecx, eax */
  31131     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  31132     RECOMP_FLAGS_IN();
  31133     ecx = eax; /* 0x38034759: mov ecx, eax */
  31134     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  31135     RECOMP_FLAGS_IN();
  31136     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  31137 L_3803475F:
  31138     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  31139     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  31140     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  31141     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  31142     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  31143     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  31144 L_38034771:
  31145     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  31146     PUSH32(esp, edx); /* 0x38034774: push edx */
  31147     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  31148     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  31149     RECOMP_FLAGS_IN();
  31150     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  31151     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  31152     fp_pop();
  31153     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  31154     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  31155     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  31156     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  31157     _cf = 0;
  31158     _flag_k = FK_NARROW(FK_TEST, 24);
  31159     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  31160 L_3803478D:
  31161     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  31162 L_38034791:
  31163     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  31164     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  31165     RECOMP_FLAGS_IN();
  31166     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  31167     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31168     esp = esp + 4; /* 0x38034798: add esp, 4 */
  31169     _flag_k = FK_ADD;
  31170     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  31171     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  31172     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  31173     _cf = 0;
  31174     _flag_k = FK_TEST;
  31175     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  31176     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31178     _flag_k = FK_CMP;
  31179     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  31180     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  31181 L_380347A7:
  31182     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  31183     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  31184     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  31185     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  31186     PUSH32(esp, edx); /* 0x380347B0: push edx */
  31187     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  31188     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  31189     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  31190     PUSH32(esp, edx); /* 0x380347B8: push edx */
  31191     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  31192     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  31193     ecx = eax; /* 0x380347BD: mov ecx, eax */
  31194     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  31195     RECOMP_FLAGS_IN();
  31196     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  31197     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  31198 L_380347C9:
  31199     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  31200 L_380347CC:
  31201     ecx = edi; /* 0x380347CC: mov ecx, edi */
  31202     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  31203     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  31204     RECOMP_FLAGS_IN();
  31205     ebx = eax; /* 0x380347DA: mov ebx, eax */
  31206     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  31207     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  31208     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  31209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31210     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  31211     _flag_k = FK_CMP;
  31212     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  31213     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31214     edx = (uint32_t)((int32_t)edx >> 2u);
  31215     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  31216     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  31217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31218     _flag_k = FK_CMP;
  31219     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  31220     esi = eax; /* 0x380347ED: mov esi, eax */
  31221     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  31222 L_380347F5:
  31223     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  31224     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  31225     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  31226     _cf = 0;
  31227     _flag_k = FK_TEST;
  31228     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  31229 L_380347FC:
  31230     ecx = eax; /* 0x380347FC: mov ecx, eax */
  31231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  31232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31233     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  31234     _flag_k = FK_CMP;
  31235     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  31236     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31237     ecx = (uint32_t)((int32_t)ecx >> 2u);
  31238     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  31239     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  31240     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31241     _flag_k = FK_CMP;
  31242     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  31243 L_38034808:
  31244     ecx = 1; /* 0x38034808: mov ecx, 1 */
  31245 L_3803480D:
  31246     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  31247     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  31248     _cf = 0;
  31249     _flag_k = FK_TEST;
  31250     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  31251 L_38034811:
  31252     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  31253     eax = 0; /* 0x38034811: xor eax, eax */
  31254     _cf = 0;
  31255     _flag_k = FK_TEST;
  31256     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  31257 L_38034815:
  31258     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  31259     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31260     eax = eax - edx; /* 0x38034815: sub eax, edx */
  31261     _flag_k = FK_CMP;
  31262     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  31263     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31264     eax = (uint32_t)((int32_t)eax >> 2u);
  31265 L_3803481A:
  31266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31267     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31268     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  31269     _flag_k = FK_ADD;
  31270     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  31271     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  31272     _cf = 0;
  31273     _flag_k = FK_TEST;
  31274     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  31275     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  31276 L_38034823:
  31277     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  31278     eax = 0; /* 0x38034823: xor eax, eax */
  31279     _cf = 0;
  31280     _flag_k = FK_TEST;
  31281 L_38034825:
  31282     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  31283     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31284     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  31285     PUSH32(esp, eax); /* 0x38034828: push eax */
  31286     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  31287     RECOMP_FLAGS_IN();
  31288     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  31289     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  31290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31291     esp = esp + 4; /* 0x38034831: add esp, 4 */
  31292     _flag_k = FK_ADD;
  31293     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  31294     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  31295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31296     _flag_k = FK_CMP;
  31297     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  31298     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  31299 L_3803483B:
  31300     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  31301     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  31302     _cf = 0;
  31303     _flag_k = FK_TEST;
  31304     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  31305 L_3803483F:
  31306     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  31307     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  31308 L_38034843:
  31309     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  31310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31311     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  31312     _flag_k = FK_ADD;
  31313     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  31314     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31315     eax = eax + 4; /* 0x38034846: add eax, 4 */
  31316     _flag_k = FK_ADD;
  31317     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  31318     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  31319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31320     _flag_k = FK_CMP;
  31321     RECOMP_BACKEDGE();
  31322     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  31323 L_3803484D:
  31324     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  31325     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  31326     _cf = 0;
  31327     _flag_k = FK_TEST;
  31328     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  31329 L_38034851:
  31330     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  31331     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  31332 L_38034856:
  31333     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  31334     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  31335     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  31336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31337     _flag_k = FK_CMP;
  31338     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  31339     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  31340 L_38034860:
  31341     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  31342     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  31343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31344     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  31345     _flag_k = FK_CMP;
  31346     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  31347 L_38034868:
  31348     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  31349     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  31350     _cf = 0;
  31351     _flag_k = FK_TEST;
  31352     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  31353 L_3803486C:
  31354     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  31355     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  31356 L_38034870:
  31357     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  31358     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31359     esi = esi + 4; /* 0x38034870: add esi, 4 */
  31360     _flag_k = FK_ADD;
  31361     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  31362     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31363     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  31364     _flag_k = FK_ADD;
  31365     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  31366     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  31367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31368     _flag_k = FK_CMP;
  31369     RECOMP_BACKEDGE();
  31370     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  31371 L_3803487A:
  31372     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  31373 L_3803487D:
  31374     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  31375     PUSH32(esp, eax); /* 0x38034880: push eax */
  31376     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  31377     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  31378     RECOMP_FLAGS_IN();
  31379     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  31380     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  31381     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  31382     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  31383     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  31384     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31385     esp = esp + 4; /* 0x38034895: add esp, 4 */
  31386     _flag_k = FK_ADD;
  31387     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  31388     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  31389     _cf = 0;
  31390     _flag_k = FK_TEST;
  31391     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  31392     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  31393 L_3803489F:
  31394     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  31395     eax = 0; /* 0x3803489F: xor eax, eax */
  31396     _cf = 0;
  31397     _flag_k = FK_TEST;
  31398     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  31399     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  31400     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  31401     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  31402 L_380348B0:
  31403     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  31404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31406     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  31407     _flag_k = FK_CMP;
  31408     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  31409     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31410     eax = (uint32_t)((int32_t)eax >> 2u);
  31411     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  31412     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  31413     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  31414     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  31415 L_380348C7:
  31416     ecx = eax; /* 0x380348C7: mov ecx, eax */
  31417     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  31418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31419     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  31420     _flag_k = FK_CMP;
  31421     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  31422     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31423     ecx = (uint32_t)((int32_t)ecx >> 2u);
  31424     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  31425     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  31426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31427     _flag_k = FK_CMP;
  31428     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  31429 L_380348D3:
  31430     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  31431     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  31432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31433     _flag_k = FK_CMP;
  31434     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  31435     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  31436 L_380348DA:
  31437     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  31438 L_380348DD:
  31439     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  31440     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  31441     _cf = 0;
  31442     _flag_k = FK_TEST;
  31443     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  31444 L_380348E1:
  31445     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  31446     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  31447     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  31448 L_380348E8:
  31449     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  31450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31451     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  31452     _flag_k = FK_ADD;
  31453     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  31454     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31455     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  31456     _flag_k = FK_ADD;
  31457     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  31458     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  31459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31460     _flag_k = FK_CMP;
  31461     RECOMP_BACKEDGE();
  31462     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  31463 L_380348F2:
  31464     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  31465     edx = ecx; /* 0x380348F5: mov edx, ecx */
  31466     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  31467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31468     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  31469     _flag_k = FK_CMP;
  31470     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  31471     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31472     edx = (uint32_t)((int32_t)edx >> 2u);
  31473     eax = 1; /* 0x380348FC: mov eax, 1 */
  31474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  31475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31476     eax = eax - edx; /* 0x38034901: sub eax, edx */
  31477     _flag_k = FK_CMP;
  31478     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  31479     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  31480 L_38034908:
  31481     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  31482     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  31483     _cf = 0;
  31484     _flag_k = FK_TEST;
  31485     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  31486 L_3803490C:
  31487     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  31488 L_3803490E:
  31489     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  31490     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31491     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  31492     _flag_k = FK_ADD;
  31493     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  31494     eax = eax - 1; /* 0x38034911: dec eax */
  31495     _flag_k = FK_DEC;
  31496     RECOMP_BACKEDGE();
  31497     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  31498 L_38034914:
  31499     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  31500     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  31501     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  31502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31503     _flag_k = FK_CMP;
  31504     eax = esi; /* 0x38034919: mov eax, esi */
  31505     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  31506 L_3803491D:
  31507     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  31508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  31509     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31510     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  31511     _flag_k = FK_ADD;
  31512     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  31513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31515     _flag_k = FK_CMP;
  31516     RECOMP_BACKEDGE();
  31517     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  31518 L_38034926:
  31519     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  31520 L_38034928:
  31521     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  31522     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  31523     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  31524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31525     _flag_k = FK_CMP;
  31526     edx = eax; /* 0x3803492D: mov edx, eax */
  31527     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  31528     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  31529 L_38034934:
  31530     /* test edx, edx */ /* 0x38034934: test edx, edx */
  31531     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  31532     _cf = 0;
  31533     _flag_k = FK_TEST;
  31534     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  31535 L_38034938:
  31536     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  31537     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  31538     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  31539 L_3803493F:
  31540     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  31541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31542     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  31543     _flag_k = FK_ADD;
  31544     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  31545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31546     edx = edx + 4; /* 0x38034942: add edx, 4 */
  31547     _flag_k = FK_ADD;
  31548     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  31549     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  31550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31551     _flag_k = FK_CMP;
  31552     RECOMP_BACKEDGE();
  31553     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  31554 L_38034949:
  31555     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  31556     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  31557     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  31558     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  31559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31560     _flag_k = FK_CMP;
  31561     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  31562 L_38034953:
  31563     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  31564     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  31565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31566     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  31567     _flag_k = FK_CMP;
  31568     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  31569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31570     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  31571     _flag_k = FK_CMP;
  31572     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  31573     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  31574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31575     _flag_k = FK_CMP;
  31576     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  31577     RECOMP_BACKEDGE();
  31578     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  31579 L_38034962:
  31580     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  31581     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  31582     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  31583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31584     _flag_k = FK_CMP;
  31585     eax = esi; /* 0x38034967: mov eax, esi */
  31586     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  31587 L_3803496B:
  31588     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  31589 L_3803496E:
  31590     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  31591     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  31592     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31593     eax = eax + 4; /* 0x38034970: add eax, 4 */
  31594     _flag_k = FK_ADD;
  31595     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  31596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31598     _flag_k = FK_CMP;
  31599     RECOMP_BACKEDGE();
  31600     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  31601 L_38034977:
  31602     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  31603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31604     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  31605     _flag_k = FK_ADD;
  31606 L_3803497B:
  31607     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  31608     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  31609     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  31610     eax = eax + 1; /* 0x38034981: inc eax */
  31611     _flag_k = FK_INC;
  31612     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  31613     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31614     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31615     _flag_k = FK_CMP;
  31616     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  31617     RECOMP_BACKEDGE();
  31618     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  31619 L_3803498D:
  31620     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  31621     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  31622     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  31623     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  31624     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  31625     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  31626     esp = ebp; /* 0x3803499D: mov esp, ebp */
  31627     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  31628     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  31629     RECOMP_REGS_OUT();
  31630 }
  31631 
  31632 void sub_38034771(void) {
  31633     int _fpu_cmp = 0;
  31634     uint32_t _cf = 0;
  31635     int _df = 1;
  31636     uint32_t _flag_k = FK_NONE;
  31637     uint32_t _flag_a = 0, _flag_b = 0;
  31638     uint32_t _itail_tgt = 0;
  31639     RECOMP_REGS_LOCALS
  31640     RECOMP_ENTER(0x38034771u);
  31641 
  31642     goto L_38034771;
  31643 L_380346B5:
  31644     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  31645     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  31646     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  31647     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  31648     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  31649     PUSH32(esp, edx); /* 0x380346C5: push edx */
  31650     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  31651     PUSH32(esp, eax); /* 0x380346C9: push eax */
  31652     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  31653     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  31654     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  31655     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  31656     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  31657     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  31658     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  31659     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  31660     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  31661     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  31662     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  31663     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  31664     RECOMP_FLAGS_IN();
  31665     ecx = eax; /* 0x38034714: mov ecx, eax */
  31666     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  31667     RECOMP_FLAGS_IN();
  31668     ecx = eax; /* 0x38034718: mov ecx, eax */
  31669     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  31670     RECOMP_FLAGS_IN();
  31671     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  31672     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  31673     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  31674     PUSH32(esp, edx); /* 0x38034723: push edx */
  31675     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  31676     PUSH32(esp, eax); /* 0x38034727: push eax */
  31677     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  31678     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  31679     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  31680     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  31681     RECOMP_FLAGS_IN();
  31682     ecx = eax; /* 0x38034730: mov ecx, eax */
  31683     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  31684     RECOMP_FLAGS_IN();
  31685     ecx = eax; /* 0x38034734: mov ecx, eax */
  31686     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  31687     RECOMP_FLAGS_IN();
  31688     ecx = eax; /* 0x38034738: mov ecx, eax */
  31689     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  31690     RECOMP_FLAGS_IN();
  31691     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  31692     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  31693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31694     _flag_k = FK_CMP;
  31695     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  31696 L_38034745:
  31697     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  31698     PUSH32(esp, edx); /* 0x38034748: push edx */
  31699     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  31700     PUSH32(esp, eax); /* 0x3803474C: push eax */
  31701     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  31702     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  31703     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  31704     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  31705     RECOMP_FLAGS_IN();
  31706     ecx = eax; /* 0x38034755: mov ecx, eax */
  31707     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  31708     RECOMP_FLAGS_IN();
  31709     ecx = eax; /* 0x38034759: mov ecx, eax */
  31710     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  31711     RECOMP_FLAGS_IN();
  31712     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  31713 L_3803475F:
  31714     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  31715     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  31716     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  31717     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  31718     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  31719     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  31720 L_38034771:
  31721     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  31722     PUSH32(esp, edx); /* 0x38034774: push edx */
  31723     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  31724     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  31725     RECOMP_FLAGS_IN();
  31726     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  31727     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  31728     fp_pop();
  31729     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  31730     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  31731     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  31732     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  31733     _cf = 0;
  31734     _flag_k = FK_NARROW(FK_TEST, 24);
  31735     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  31736 L_3803478D:
  31737     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  31738 L_38034791:
  31739     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  31740     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  31741     RECOMP_FLAGS_IN();
  31742     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  31743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31744     esp = esp + 4; /* 0x38034798: add esp, 4 */
  31745     _flag_k = FK_ADD;
  31746     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  31747     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  31748     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  31749     _cf = 0;
  31750     _flag_k = FK_TEST;
  31751     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  31752     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31754     _flag_k = FK_CMP;
  31755     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  31756     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  31757 L_380347A7:
  31758     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  31759     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  31760     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  31761     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  31762     PUSH32(esp, edx); /* 0x380347B0: push edx */
  31763     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  31764     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  31765     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  31766     PUSH32(esp, edx); /* 0x380347B8: push edx */
  31767     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  31768     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  31769     ecx = eax; /* 0x380347BD: mov ecx, eax */
  31770     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  31771     RECOMP_FLAGS_IN();
  31772     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  31773     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  31774 L_380347C9:
  31775     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  31776 L_380347CC:
  31777     ecx = edi; /* 0x380347CC: mov ecx, edi */
  31778     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  31779     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  31780     RECOMP_FLAGS_IN();
  31781     ebx = eax; /* 0x380347DA: mov ebx, eax */
  31782     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  31783     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  31784     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  31785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31786     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  31787     _flag_k = FK_CMP;
  31788     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  31789     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31790     edx = (uint32_t)((int32_t)edx >> 2u);
  31791     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  31792     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  31793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31794     _flag_k = FK_CMP;
  31795     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  31796     esi = eax; /* 0x380347ED: mov esi, eax */
  31797     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  31798 L_380347F5:
  31799     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  31800     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  31801     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  31802     _cf = 0;
  31803     _flag_k = FK_TEST;
  31804     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  31805 L_380347FC:
  31806     ecx = eax; /* 0x380347FC: mov ecx, eax */
  31807     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  31808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31809     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  31810     _flag_k = FK_CMP;
  31811     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  31812     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31813     ecx = (uint32_t)((int32_t)ecx >> 2u);
  31814     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  31815     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  31816     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31817     _flag_k = FK_CMP;
  31818     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  31819 L_38034808:
  31820     ecx = 1; /* 0x38034808: mov ecx, 1 */
  31821 L_3803480D:
  31822     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  31823     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  31824     _cf = 0;
  31825     _flag_k = FK_TEST;
  31826     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  31827 L_38034811:
  31828     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  31829     eax = 0; /* 0x38034811: xor eax, eax */
  31830     _cf = 0;
  31831     _flag_k = FK_TEST;
  31832     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  31833 L_38034815:
  31834     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  31835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31836     eax = eax - edx; /* 0x38034815: sub eax, edx */
  31837     _flag_k = FK_CMP;
  31838     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  31839     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31840     eax = (uint32_t)((int32_t)eax >> 2u);
  31841 L_3803481A:
  31842     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31844     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  31845     _flag_k = FK_ADD;
  31846     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  31847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  31848     _cf = 0;
  31849     _flag_k = FK_TEST;
  31850     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  31851     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  31852 L_38034823:
  31853     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  31854     eax = 0; /* 0x38034823: xor eax, eax */
  31855     _cf = 0;
  31856     _flag_k = FK_TEST;
  31857 L_38034825:
  31858     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  31859     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31860     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  31861     PUSH32(esp, eax); /* 0x38034828: push eax */
  31862     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  31863     RECOMP_FLAGS_IN();
  31864     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  31865     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  31866     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31867     esp = esp + 4; /* 0x38034831: add esp, 4 */
  31868     _flag_k = FK_ADD;
  31869     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  31870     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  31871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31872     _flag_k = FK_CMP;
  31873     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  31874     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  31875 L_3803483B:
  31876     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  31877     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  31878     _cf = 0;
  31879     _flag_k = FK_TEST;
  31880     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  31881 L_3803483F:
  31882     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  31883     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  31884 L_38034843:
  31885     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  31886     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31887     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  31888     _flag_k = FK_ADD;
  31889     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  31890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31891     eax = eax + 4; /* 0x38034846: add eax, 4 */
  31892     _flag_k = FK_ADD;
  31893     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  31894     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  31895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31896     _flag_k = FK_CMP;
  31897     RECOMP_BACKEDGE();
  31898     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  31899 L_3803484D:
  31900     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  31901     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  31902     _cf = 0;
  31903     _flag_k = FK_TEST;
  31904     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  31905 L_38034851:
  31906     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  31907     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  31908 L_38034856:
  31909     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  31910     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  31911     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  31912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31913     _flag_k = FK_CMP;
  31914     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  31915     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  31916 L_38034860:
  31917     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  31918     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  31919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31920     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  31921     _flag_k = FK_CMP;
  31922     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  31923 L_38034868:
  31924     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  31925     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  31926     _cf = 0;
  31927     _flag_k = FK_TEST;
  31928     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  31929 L_3803486C:
  31930     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  31931     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  31932 L_38034870:
  31933     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  31934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31935     esi = esi + 4; /* 0x38034870: add esi, 4 */
  31936     _flag_k = FK_ADD;
  31937     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  31938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31939     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  31940     _flag_k = FK_ADD;
  31941     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  31942     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  31943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31944     _flag_k = FK_CMP;
  31945     RECOMP_BACKEDGE();
  31946     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  31947 L_3803487A:
  31948     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  31949 L_3803487D:
  31950     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  31951     PUSH32(esp, eax); /* 0x38034880: push eax */
  31952     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  31953     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  31954     RECOMP_FLAGS_IN();
  31955     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  31956     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  31957     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  31958     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  31959     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  31960     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  31961     esp = esp + 4; /* 0x38034895: add esp, 4 */
  31962     _flag_k = FK_ADD;
  31963     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  31964     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  31965     _cf = 0;
  31966     _flag_k = FK_TEST;
  31967     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  31968     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  31969 L_3803489F:
  31970     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  31971     eax = 0; /* 0x3803489F: xor eax, eax */
  31972     _cf = 0;
  31973     _flag_k = FK_TEST;
  31974     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  31975     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  31976     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  31977     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  31978 L_380348B0:
  31979     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  31980     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  31981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31982     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  31983     _flag_k = FK_CMP;
  31984     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  31985     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31986     eax = (uint32_t)((int32_t)eax >> 2u);
  31987     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  31988     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  31989     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  31990     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  31991 L_380348C7:
  31992     ecx = eax; /* 0x380348C7: mov ecx, eax */
  31993     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  31994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  31995     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  31996     _flag_k = FK_CMP;
  31997     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  31998     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  31999     ecx = (uint32_t)((int32_t)ecx >> 2u);
  32000     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  32001     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  32002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32003     _flag_k = FK_CMP;
  32004     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  32005 L_380348D3:
  32006     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  32007     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  32008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32009     _flag_k = FK_CMP;
  32010     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  32011     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  32012 L_380348DA:
  32013     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  32014 L_380348DD:
  32015     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  32016     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  32017     _cf = 0;
  32018     _flag_k = FK_TEST;
  32019     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  32020 L_380348E1:
  32021     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  32022     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  32023     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  32024 L_380348E8:
  32025     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  32026     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32027     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  32028     _flag_k = FK_ADD;
  32029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32030     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32031     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  32032     _flag_k = FK_ADD;
  32033     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  32034     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  32035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32036     _flag_k = FK_CMP;
  32037     RECOMP_BACKEDGE();
  32038     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  32039 L_380348F2:
  32040     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  32041     edx = ecx; /* 0x380348F5: mov edx, ecx */
  32042     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  32043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32044     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  32045     _flag_k = FK_CMP;
  32046     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  32047     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32048     edx = (uint32_t)((int32_t)edx >> 2u);
  32049     eax = 1; /* 0x380348FC: mov eax, 1 */
  32050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  32051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32052     eax = eax - edx; /* 0x38034901: sub eax, edx */
  32053     _flag_k = FK_CMP;
  32054     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  32055     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  32056 L_38034908:
  32057     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  32058     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  32059     _cf = 0;
  32060     _flag_k = FK_TEST;
  32061     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  32062 L_3803490C:
  32063     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  32064 L_3803490E:
  32065     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32066     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32067     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  32068     _flag_k = FK_ADD;
  32069     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  32070     eax = eax - 1; /* 0x38034911: dec eax */
  32071     _flag_k = FK_DEC;
  32072     RECOMP_BACKEDGE();
  32073     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  32074 L_38034914:
  32075     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  32076     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  32077     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  32078     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32079     _flag_k = FK_CMP;
  32080     eax = esi; /* 0x38034919: mov eax, esi */
  32081     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  32082 L_3803491D:
  32083     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  32084     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  32085     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32086     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  32087     _flag_k = FK_ADD;
  32088     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  32089     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32091     _flag_k = FK_CMP;
  32092     RECOMP_BACKEDGE();
  32093     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  32094 L_38034926:
  32095     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  32096 L_38034928:
  32097     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  32098     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  32099     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  32100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32101     _flag_k = FK_CMP;
  32102     edx = eax; /* 0x3803492D: mov edx, eax */
  32103     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  32104     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  32105 L_38034934:
  32106     /* test edx, edx */ /* 0x38034934: test edx, edx */
  32107     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  32108     _cf = 0;
  32109     _flag_k = FK_TEST;
  32110     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  32111 L_38034938:
  32112     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  32113     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  32114     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  32115 L_3803493F:
  32116     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32117     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32118     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  32119     _flag_k = FK_ADD;
  32120     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  32121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32122     edx = edx + 4; /* 0x38034942: add edx, 4 */
  32123     _flag_k = FK_ADD;
  32124     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  32125     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  32126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32127     _flag_k = FK_CMP;
  32128     RECOMP_BACKEDGE();
  32129     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  32130 L_38034949:
  32131     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  32132     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  32133     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  32134     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  32135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32136     _flag_k = FK_CMP;
  32137     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  32138 L_38034953:
  32139     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  32140     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  32141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32142     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  32143     _flag_k = FK_CMP;
  32144     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32146     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  32147     _flag_k = FK_CMP;
  32148     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  32149     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  32150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32151     _flag_k = FK_CMP;
  32152     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  32153     RECOMP_BACKEDGE();
  32154     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  32155 L_38034962:
  32156     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  32157     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  32158     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  32159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32160     _flag_k = FK_CMP;
  32161     eax = esi; /* 0x38034967: mov eax, esi */
  32162     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  32163 L_3803496B:
  32164     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  32165 L_3803496E:
  32166     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  32167     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  32168     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32169     eax = eax + 4; /* 0x38034970: add eax, 4 */
  32170     _flag_k = FK_ADD;
  32171     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  32172     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32174     _flag_k = FK_CMP;
  32175     RECOMP_BACKEDGE();
  32176     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  32177 L_38034977:
  32178     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  32179     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32180     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  32181     _flag_k = FK_ADD;
  32182 L_3803497B:
  32183     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  32184     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  32185     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  32186     eax = eax + 1; /* 0x38034981: inc eax */
  32187     _flag_k = FK_INC;
  32188     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  32189     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32191     _flag_k = FK_CMP;
  32192     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  32193     RECOMP_BACKEDGE();
  32194     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  32195 L_3803498D:
  32196     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  32197     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  32198     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  32199     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  32200     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  32201     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  32202     esp = ebp; /* 0x3803499D: mov esp, ebp */
  32203     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  32204     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  32205     RECOMP_REGS_OUT();
  32206 }
  32207 
  32208 void sub_380347CC(void) {
  32209     int _fpu_cmp = 0;
  32210     uint32_t _cf = 0;
  32211     int _df = 1;
  32212     uint32_t _flag_k = FK_NONE;
  32213     uint32_t _flag_a = 0, _flag_b = 0;
  32214     uint32_t _itail_tgt = 0;
  32215     RECOMP_REGS_LOCALS
  32216     RECOMP_ENTER(0x380347CCu);
  32217 
  32218     goto L_380347CC;
  32219 L_380346B5:
  32220     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  32221     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  32222     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  32223     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  32224     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  32225     PUSH32(esp, edx); /* 0x380346C5: push edx */
  32226     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  32227     PUSH32(esp, eax); /* 0x380346C9: push eax */
  32228     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  32229     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  32230     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  32231     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  32232     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  32233     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  32234     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  32235     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  32236     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  32237     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  32238     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  32239     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  32240     RECOMP_FLAGS_IN();
  32241     ecx = eax; /* 0x38034714: mov ecx, eax */
  32242     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  32243     RECOMP_FLAGS_IN();
  32244     ecx = eax; /* 0x38034718: mov ecx, eax */
  32245     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  32246     RECOMP_FLAGS_IN();
  32247     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  32248     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  32249     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  32250     PUSH32(esp, edx); /* 0x38034723: push edx */
  32251     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  32252     PUSH32(esp, eax); /* 0x38034727: push eax */
  32253     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  32254     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  32255     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  32256     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  32257     RECOMP_FLAGS_IN();
  32258     ecx = eax; /* 0x38034730: mov ecx, eax */
  32259     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  32260     RECOMP_FLAGS_IN();
  32261     ecx = eax; /* 0x38034734: mov ecx, eax */
  32262     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  32263     RECOMP_FLAGS_IN();
  32264     ecx = eax; /* 0x38034738: mov ecx, eax */
  32265     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  32266     RECOMP_FLAGS_IN();
  32267     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  32268     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  32269     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32270     _flag_k = FK_CMP;
  32271     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  32272 L_38034745:
  32273     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  32274     PUSH32(esp, edx); /* 0x38034748: push edx */
  32275     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  32276     PUSH32(esp, eax); /* 0x3803474C: push eax */
  32277     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  32278     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  32279     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  32280     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  32281     RECOMP_FLAGS_IN();
  32282     ecx = eax; /* 0x38034755: mov ecx, eax */
  32283     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  32284     RECOMP_FLAGS_IN();
  32285     ecx = eax; /* 0x38034759: mov ecx, eax */
  32286     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  32287     RECOMP_FLAGS_IN();
  32288     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  32289 L_3803475F:
  32290     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  32291     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  32292     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  32293     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  32294     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  32295     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  32296 L_38034771:
  32297     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  32298     PUSH32(esp, edx); /* 0x38034774: push edx */
  32299     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  32300     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  32301     RECOMP_FLAGS_IN();
  32302     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  32303     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  32304     fp_pop();
  32305     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  32306     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  32307     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  32308     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  32309     _cf = 0;
  32310     _flag_k = FK_NARROW(FK_TEST, 24);
  32311     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  32312 L_3803478D:
  32313     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  32314 L_38034791:
  32315     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  32316     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  32317     RECOMP_FLAGS_IN();
  32318     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  32319     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32320     esp = esp + 4; /* 0x38034798: add esp, 4 */
  32321     _flag_k = FK_ADD;
  32322     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  32323     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  32324     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  32325     _cf = 0;
  32326     _flag_k = FK_TEST;
  32327     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  32328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32330     _flag_k = FK_CMP;
  32331     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  32332     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  32333 L_380347A7:
  32334     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  32335     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  32336     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  32337     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  32338     PUSH32(esp, edx); /* 0x380347B0: push edx */
  32339     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  32340     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  32341     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  32342     PUSH32(esp, edx); /* 0x380347B8: push edx */
  32343     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  32344     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  32345     ecx = eax; /* 0x380347BD: mov ecx, eax */
  32346     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  32347     RECOMP_FLAGS_IN();
  32348     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  32349     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  32350 L_380347C9:
  32351     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  32352 L_380347CC:
  32353     ecx = edi; /* 0x380347CC: mov ecx, edi */
  32354     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  32355     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  32356     RECOMP_FLAGS_IN();
  32357     ebx = eax; /* 0x380347DA: mov ebx, eax */
  32358     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  32359     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  32360     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  32361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32362     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  32363     _flag_k = FK_CMP;
  32364     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  32365     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32366     edx = (uint32_t)((int32_t)edx >> 2u);
  32367     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  32368     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  32369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32370     _flag_k = FK_CMP;
  32371     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  32372     esi = eax; /* 0x380347ED: mov esi, eax */
  32373     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  32374 L_380347F5:
  32375     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  32376     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  32377     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  32378     _cf = 0;
  32379     _flag_k = FK_TEST;
  32380     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  32381 L_380347FC:
  32382     ecx = eax; /* 0x380347FC: mov ecx, eax */
  32383     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  32384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32385     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  32386     _flag_k = FK_CMP;
  32387     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  32388     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32389     ecx = (uint32_t)((int32_t)ecx >> 2u);
  32390     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  32391     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  32392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32393     _flag_k = FK_CMP;
  32394     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  32395 L_38034808:
  32396     ecx = 1; /* 0x38034808: mov ecx, 1 */
  32397 L_3803480D:
  32398     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  32399     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  32400     _cf = 0;
  32401     _flag_k = FK_TEST;
  32402     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  32403 L_38034811:
  32404     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  32405     eax = 0; /* 0x38034811: xor eax, eax */
  32406     _cf = 0;
  32407     _flag_k = FK_TEST;
  32408     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  32409 L_38034815:
  32410     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  32411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32412     eax = eax - edx; /* 0x38034815: sub eax, edx */
  32413     _flag_k = FK_CMP;
  32414     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  32415     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32416     eax = (uint32_t)((int32_t)eax >> 2u);
  32417 L_3803481A:
  32418     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32420     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  32421     _flag_k = FK_ADD;
  32422     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  32423     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  32424     _cf = 0;
  32425     _flag_k = FK_TEST;
  32426     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  32427     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  32428 L_38034823:
  32429     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  32430     eax = 0; /* 0x38034823: xor eax, eax */
  32431     _cf = 0;
  32432     _flag_k = FK_TEST;
  32433 L_38034825:
  32434     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  32435     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32436     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  32437     PUSH32(esp, eax); /* 0x38034828: push eax */
  32438     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  32439     RECOMP_FLAGS_IN();
  32440     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  32441     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  32442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32443     esp = esp + 4; /* 0x38034831: add esp, 4 */
  32444     _flag_k = FK_ADD;
  32445     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  32446     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  32447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32448     _flag_k = FK_CMP;
  32449     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  32450     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  32451 L_3803483B:
  32452     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  32453     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  32454     _cf = 0;
  32455     _flag_k = FK_TEST;
  32456     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  32457 L_3803483F:
  32458     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  32459     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  32460 L_38034843:
  32461     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32462     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32463     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  32464     _flag_k = FK_ADD;
  32465     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  32466     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32467     eax = eax + 4; /* 0x38034846: add eax, 4 */
  32468     _flag_k = FK_ADD;
  32469     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  32470     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  32471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32472     _flag_k = FK_CMP;
  32473     RECOMP_BACKEDGE();
  32474     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  32475 L_3803484D:
  32476     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  32477     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  32478     _cf = 0;
  32479     _flag_k = FK_TEST;
  32480     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  32481 L_38034851:
  32482     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  32483     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  32484 L_38034856:
  32485     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  32486     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  32487     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  32488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32489     _flag_k = FK_CMP;
  32490     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  32491     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  32492 L_38034860:
  32493     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  32494     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  32495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32496     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  32497     _flag_k = FK_CMP;
  32498     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  32499 L_38034868:
  32500     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  32501     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  32502     _cf = 0;
  32503     _flag_k = FK_TEST;
  32504     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  32505 L_3803486C:
  32506     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  32507     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  32508 L_38034870:
  32509     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  32510     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32511     esi = esi + 4; /* 0x38034870: add esi, 4 */
  32512     _flag_k = FK_ADD;
  32513     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32514     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32515     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  32516     _flag_k = FK_ADD;
  32517     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  32518     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  32519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32520     _flag_k = FK_CMP;
  32521     RECOMP_BACKEDGE();
  32522     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  32523 L_3803487A:
  32524     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  32525 L_3803487D:
  32526     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  32527     PUSH32(esp, eax); /* 0x38034880: push eax */
  32528     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  32529     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  32530     RECOMP_FLAGS_IN();
  32531     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  32532     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  32533     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  32534     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  32535     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  32536     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32537     esp = esp + 4; /* 0x38034895: add esp, 4 */
  32538     _flag_k = FK_ADD;
  32539     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  32540     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  32541     _cf = 0;
  32542     _flag_k = FK_TEST;
  32543     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  32544     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  32545 L_3803489F:
  32546     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  32547     eax = 0; /* 0x3803489F: xor eax, eax */
  32548     _cf = 0;
  32549     _flag_k = FK_TEST;
  32550     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  32551     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  32552     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  32553     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  32554 L_380348B0:
  32555     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  32556     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32558     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  32559     _flag_k = FK_CMP;
  32560     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  32561     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32562     eax = (uint32_t)((int32_t)eax >> 2u);
  32563     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  32564     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  32565     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  32566     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  32567 L_380348C7:
  32568     ecx = eax; /* 0x380348C7: mov ecx, eax */
  32569     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  32570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32571     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  32572     _flag_k = FK_CMP;
  32573     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  32574     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32575     ecx = (uint32_t)((int32_t)ecx >> 2u);
  32576     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  32577     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  32578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32579     _flag_k = FK_CMP;
  32580     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  32581 L_380348D3:
  32582     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  32583     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  32584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32585     _flag_k = FK_CMP;
  32586     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  32587     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  32588 L_380348DA:
  32589     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  32590 L_380348DD:
  32591     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  32592     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  32593     _cf = 0;
  32594     _flag_k = FK_TEST;
  32595     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  32596 L_380348E1:
  32597     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  32598     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  32599     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  32600 L_380348E8:
  32601     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  32602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32603     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  32604     _flag_k = FK_ADD;
  32605     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32606     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32607     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  32608     _flag_k = FK_ADD;
  32609     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  32610     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  32611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32612     _flag_k = FK_CMP;
  32613     RECOMP_BACKEDGE();
  32614     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  32615 L_380348F2:
  32616     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  32617     edx = ecx; /* 0x380348F5: mov edx, ecx */
  32618     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  32619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32620     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  32621     _flag_k = FK_CMP;
  32622     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  32623     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32624     edx = (uint32_t)((int32_t)edx >> 2u);
  32625     eax = 1; /* 0x380348FC: mov eax, 1 */
  32626     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  32627     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32628     eax = eax - edx; /* 0x38034901: sub eax, edx */
  32629     _flag_k = FK_CMP;
  32630     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  32631     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  32632 L_38034908:
  32633     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  32634     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  32635     _cf = 0;
  32636     _flag_k = FK_TEST;
  32637     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  32638 L_3803490C:
  32639     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  32640 L_3803490E:
  32641     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32643     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  32644     _flag_k = FK_ADD;
  32645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  32646     eax = eax - 1; /* 0x38034911: dec eax */
  32647     _flag_k = FK_DEC;
  32648     RECOMP_BACKEDGE();
  32649     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  32650 L_38034914:
  32651     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  32652     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  32653     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  32654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32655     _flag_k = FK_CMP;
  32656     eax = esi; /* 0x38034919: mov eax, esi */
  32657     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  32658 L_3803491D:
  32659     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  32660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  32661     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32662     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  32663     _flag_k = FK_ADD;
  32664     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  32665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32667     _flag_k = FK_CMP;
  32668     RECOMP_BACKEDGE();
  32669     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  32670 L_38034926:
  32671     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  32672 L_38034928:
  32673     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  32674     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  32675     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  32676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32677     _flag_k = FK_CMP;
  32678     edx = eax; /* 0x3803492D: mov edx, eax */
  32679     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  32680     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  32681 L_38034934:
  32682     /* test edx, edx */ /* 0x38034934: test edx, edx */
  32683     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  32684     _cf = 0;
  32685     _flag_k = FK_TEST;
  32686     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  32687 L_38034938:
  32688     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  32689     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  32690     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  32691 L_3803493F:
  32692     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32693     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32694     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  32695     _flag_k = FK_ADD;
  32696     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  32697     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32698     edx = edx + 4; /* 0x38034942: add edx, 4 */
  32699     _flag_k = FK_ADD;
  32700     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  32701     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  32702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32703     _flag_k = FK_CMP;
  32704     RECOMP_BACKEDGE();
  32705     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  32706 L_38034949:
  32707     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  32708     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  32709     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  32710     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  32711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32712     _flag_k = FK_CMP;
  32713     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  32714 L_38034953:
  32715     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  32716     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  32717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32718     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  32719     _flag_k = FK_CMP;
  32720     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  32721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32722     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  32723     _flag_k = FK_CMP;
  32724     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  32725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  32726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32727     _flag_k = FK_CMP;
  32728     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  32729     RECOMP_BACKEDGE();
  32730     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  32731 L_38034962:
  32732     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  32733     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  32734     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  32735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32736     _flag_k = FK_CMP;
  32737     eax = esi; /* 0x38034967: mov eax, esi */
  32738     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  32739 L_3803496B:
  32740     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  32741 L_3803496E:
  32742     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  32743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  32744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32745     eax = eax + 4; /* 0x38034970: add eax, 4 */
  32746     _flag_k = FK_ADD;
  32747     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  32748     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32750     _flag_k = FK_CMP;
  32751     RECOMP_BACKEDGE();
  32752     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  32753 L_38034977:
  32754     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  32755     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32756     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  32757     _flag_k = FK_ADD;
  32758 L_3803497B:
  32759     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  32760     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  32761     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  32762     eax = eax + 1; /* 0x38034981: inc eax */
  32763     _flag_k = FK_INC;
  32764     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  32765     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32767     _flag_k = FK_CMP;
  32768     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  32769     RECOMP_BACKEDGE();
  32770     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  32771 L_3803498D:
  32772     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  32773     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  32774     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  32775     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  32776     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  32777     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  32778     esp = ebp; /* 0x3803499D: mov esp, ebp */
  32779     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  32780     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  32781     RECOMP_REGS_OUT();
  32782 }
  32783 
  32784 void sub_3803481A(void) {
  32785     int _fpu_cmp = 0;
  32786     uint32_t _cf = 0;
  32787     int _df = 1;
  32788     uint32_t _flag_k = FK_NONE;
  32789     uint32_t _flag_a = 0, _flag_b = 0;
  32790     uint32_t _itail_tgt = 0;
  32791     RECOMP_REGS_LOCALS
  32792     RECOMP_ENTER(0x3803481Au);
  32793 
  32794     goto L_3803481A;
  32795 L_380346B5:
  32796     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  32797     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  32798     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  32799     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  32800     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  32801     PUSH32(esp, edx); /* 0x380346C5: push edx */
  32802     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  32803     PUSH32(esp, eax); /* 0x380346C9: push eax */
  32804     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  32805     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  32806     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  32807     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  32808     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  32809     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  32810     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  32811     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  32812     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  32813     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  32814     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  32815     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  32816     RECOMP_FLAGS_IN();
  32817     ecx = eax; /* 0x38034714: mov ecx, eax */
  32818     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  32819     RECOMP_FLAGS_IN();
  32820     ecx = eax; /* 0x38034718: mov ecx, eax */
  32821     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  32822     RECOMP_FLAGS_IN();
  32823     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  32824     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  32825     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  32826     PUSH32(esp, edx); /* 0x38034723: push edx */
  32827     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  32828     PUSH32(esp, eax); /* 0x38034727: push eax */
  32829     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  32830     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  32831     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  32832     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  32833     RECOMP_FLAGS_IN();
  32834     ecx = eax; /* 0x38034730: mov ecx, eax */
  32835     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  32836     RECOMP_FLAGS_IN();
  32837     ecx = eax; /* 0x38034734: mov ecx, eax */
  32838     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  32839     RECOMP_FLAGS_IN();
  32840     ecx = eax; /* 0x38034738: mov ecx, eax */
  32841     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  32842     RECOMP_FLAGS_IN();
  32843     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  32844     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  32845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32846     _flag_k = FK_CMP;
  32847     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  32848 L_38034745:
  32849     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  32850     PUSH32(esp, edx); /* 0x38034748: push edx */
  32851     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  32852     PUSH32(esp, eax); /* 0x3803474C: push eax */
  32853     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  32854     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  32855     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  32856     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  32857     RECOMP_FLAGS_IN();
  32858     ecx = eax; /* 0x38034755: mov ecx, eax */
  32859     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  32860     RECOMP_FLAGS_IN();
  32861     ecx = eax; /* 0x38034759: mov ecx, eax */
  32862     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  32863     RECOMP_FLAGS_IN();
  32864     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  32865 L_3803475F:
  32866     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  32867     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  32868     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  32869     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  32870     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  32871     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  32872 L_38034771:
  32873     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  32874     PUSH32(esp, edx); /* 0x38034774: push edx */
  32875     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  32876     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  32877     RECOMP_FLAGS_IN();
  32878     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  32879     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  32880     fp_pop();
  32881     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  32882     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  32883     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  32884     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  32885     _cf = 0;
  32886     _flag_k = FK_NARROW(FK_TEST, 24);
  32887     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  32888 L_3803478D:
  32889     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  32890 L_38034791:
  32891     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  32892     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  32893     RECOMP_FLAGS_IN();
  32894     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  32895     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32896     esp = esp + 4; /* 0x38034798: add esp, 4 */
  32897     _flag_k = FK_ADD;
  32898     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  32899     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  32900     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  32901     _cf = 0;
  32902     _flag_k = FK_TEST;
  32903     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  32904     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32906     _flag_k = FK_CMP;
  32907     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  32908     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  32909 L_380347A7:
  32910     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  32911     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  32912     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  32913     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  32914     PUSH32(esp, edx); /* 0x380347B0: push edx */
  32915     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  32916     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  32917     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  32918     PUSH32(esp, edx); /* 0x380347B8: push edx */
  32919     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  32920     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  32921     ecx = eax; /* 0x380347BD: mov ecx, eax */
  32922     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  32923     RECOMP_FLAGS_IN();
  32924     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  32925     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  32926 L_380347C9:
  32927     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  32928 L_380347CC:
  32929     ecx = edi; /* 0x380347CC: mov ecx, edi */
  32930     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  32931     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  32932     RECOMP_FLAGS_IN();
  32933     ebx = eax; /* 0x380347DA: mov ebx, eax */
  32934     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  32935     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  32936     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  32937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32938     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  32939     _flag_k = FK_CMP;
  32940     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  32941     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32942     edx = (uint32_t)((int32_t)edx >> 2u);
  32943     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  32944     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  32945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32946     _flag_k = FK_CMP;
  32947     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  32948     esi = eax; /* 0x380347ED: mov esi, eax */
  32949     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  32950 L_380347F5:
  32951     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  32952     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  32953     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  32954     _cf = 0;
  32955     _flag_k = FK_TEST;
  32956     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  32957 L_380347FC:
  32958     ecx = eax; /* 0x380347FC: mov ecx, eax */
  32959     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  32960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32961     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  32962     _flag_k = FK_CMP;
  32963     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  32964     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32965     ecx = (uint32_t)((int32_t)ecx >> 2u);
  32966     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  32967     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  32968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32969     _flag_k = FK_CMP;
  32970     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  32971 L_38034808:
  32972     ecx = 1; /* 0x38034808: mov ecx, 1 */
  32973 L_3803480D:
  32974     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  32975     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  32976     _cf = 0;
  32977     _flag_k = FK_TEST;
  32978     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  32979 L_38034811:
  32980     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  32981     eax = 0; /* 0x38034811: xor eax, eax */
  32982     _cf = 0;
  32983     _flag_k = FK_TEST;
  32984     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  32985 L_38034815:
  32986     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  32987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  32988     eax = eax - edx; /* 0x38034815: sub eax, edx */
  32989     _flag_k = FK_CMP;
  32990     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  32991     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  32992     eax = (uint32_t)((int32_t)eax >> 2u);
  32993 L_3803481A:
  32994     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  32995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  32996     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  32997     _flag_k = FK_ADD;
  32998     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  32999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  33000     _cf = 0;
  33001     _flag_k = FK_TEST;
  33002     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  33003     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  33004 L_38034823:
  33005     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  33006     eax = 0; /* 0x38034823: xor eax, eax */
  33007     _cf = 0;
  33008     _flag_k = FK_TEST;
  33009 L_38034825:
  33010     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  33011     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33012     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  33013     PUSH32(esp, eax); /* 0x38034828: push eax */
  33014     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  33015     RECOMP_FLAGS_IN();
  33016     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  33017     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  33018     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33019     esp = esp + 4; /* 0x38034831: add esp, 4 */
  33020     _flag_k = FK_ADD;
  33021     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  33022     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  33023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33024     _flag_k = FK_CMP;
  33025     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  33026     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  33027 L_3803483B:
  33028     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  33029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  33030     _cf = 0;
  33031     _flag_k = FK_TEST;
  33032     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  33033 L_3803483F:
  33034     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  33035     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  33036 L_38034843:
  33037     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33038     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33039     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  33040     _flag_k = FK_ADD;
  33041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  33042     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33043     eax = eax + 4; /* 0x38034846: add eax, 4 */
  33044     _flag_k = FK_ADD;
  33045     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  33046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  33047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33048     _flag_k = FK_CMP;
  33049     RECOMP_BACKEDGE();
  33050     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  33051 L_3803484D:
  33052     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  33053     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  33054     _cf = 0;
  33055     _flag_k = FK_TEST;
  33056     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  33057 L_38034851:
  33058     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  33059     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  33060 L_38034856:
  33061     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  33062     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  33063     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  33064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33065     _flag_k = FK_CMP;
  33066     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  33067     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  33068 L_38034860:
  33069     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  33070     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  33071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33072     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  33073     _flag_k = FK_CMP;
  33074     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  33075 L_38034868:
  33076     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  33077     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  33078     _cf = 0;
  33079     _flag_k = FK_TEST;
  33080     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  33081 L_3803486C:
  33082     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  33083     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  33084 L_38034870:
  33085     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  33086     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33087     esi = esi + 4; /* 0x38034870: add esi, 4 */
  33088     _flag_k = FK_ADD;
  33089     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33090     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33091     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  33092     _flag_k = FK_ADD;
  33093     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  33094     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  33095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33096     _flag_k = FK_CMP;
  33097     RECOMP_BACKEDGE();
  33098     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  33099 L_3803487A:
  33100     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  33101 L_3803487D:
  33102     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  33103     PUSH32(esp, eax); /* 0x38034880: push eax */
  33104     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  33105     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  33106     RECOMP_FLAGS_IN();
  33107     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  33108     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  33109     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  33110     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  33111     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  33112     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33113     esp = esp + 4; /* 0x38034895: add esp, 4 */
  33114     _flag_k = FK_ADD;
  33115     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  33116     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  33117     _cf = 0;
  33118     _flag_k = FK_TEST;
  33119     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  33120     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  33121 L_3803489F:
  33122     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  33123     eax = 0; /* 0x3803489F: xor eax, eax */
  33124     _cf = 0;
  33125     _flag_k = FK_TEST;
  33126     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  33127     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  33128     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  33129     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  33130 L_380348B0:
  33131     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  33132     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33134     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  33135     _flag_k = FK_CMP;
  33136     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  33137     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33138     eax = (uint32_t)((int32_t)eax >> 2u);
  33139     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  33140     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  33141     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  33142     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  33143 L_380348C7:
  33144     ecx = eax; /* 0x380348C7: mov ecx, eax */
  33145     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  33146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33147     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  33148     _flag_k = FK_CMP;
  33149     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  33150     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33151     ecx = (uint32_t)((int32_t)ecx >> 2u);
  33152     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  33153     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  33154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33155     _flag_k = FK_CMP;
  33156     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  33157 L_380348D3:
  33158     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  33159     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  33160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33161     _flag_k = FK_CMP;
  33162     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  33163     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  33164 L_380348DA:
  33165     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  33166 L_380348DD:
  33167     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  33168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  33169     _cf = 0;
  33170     _flag_k = FK_TEST;
  33171     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  33172 L_380348E1:
  33173     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  33174     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  33175     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  33176 L_380348E8:
  33177     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  33178     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33179     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  33180     _flag_k = FK_ADD;
  33181     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33182     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33183     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  33184     _flag_k = FK_ADD;
  33185     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  33186     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  33187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33188     _flag_k = FK_CMP;
  33189     RECOMP_BACKEDGE();
  33190     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  33191 L_380348F2:
  33192     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  33193     edx = ecx; /* 0x380348F5: mov edx, ecx */
  33194     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  33195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33196     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  33197     _flag_k = FK_CMP;
  33198     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  33199     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33200     edx = (uint32_t)((int32_t)edx >> 2u);
  33201     eax = 1; /* 0x380348FC: mov eax, 1 */
  33202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  33203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33204     eax = eax - edx; /* 0x38034901: sub eax, edx */
  33205     _flag_k = FK_CMP;
  33206     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  33207     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  33208 L_38034908:
  33209     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  33210     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  33211     _cf = 0;
  33212     _flag_k = FK_TEST;
  33213     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  33214 L_3803490C:
  33215     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  33216 L_3803490E:
  33217     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33218     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33219     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  33220     _flag_k = FK_ADD;
  33221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  33222     eax = eax - 1; /* 0x38034911: dec eax */
  33223     _flag_k = FK_DEC;
  33224     RECOMP_BACKEDGE();
  33225     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  33226 L_38034914:
  33227     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  33228     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  33229     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  33230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33231     _flag_k = FK_CMP;
  33232     eax = esi; /* 0x38034919: mov eax, esi */
  33233     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  33234 L_3803491D:
  33235     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  33236     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  33237     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33238     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  33239     _flag_k = FK_ADD;
  33240     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  33241     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33243     _flag_k = FK_CMP;
  33244     RECOMP_BACKEDGE();
  33245     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  33246 L_38034926:
  33247     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  33248 L_38034928:
  33249     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  33250     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  33251     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  33252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33253     _flag_k = FK_CMP;
  33254     edx = eax; /* 0x3803492D: mov edx, eax */
  33255     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  33256     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  33257 L_38034934:
  33258     /* test edx, edx */ /* 0x38034934: test edx, edx */
  33259     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  33260     _cf = 0;
  33261     _flag_k = FK_TEST;
  33262     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  33263 L_38034938:
  33264     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  33265     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  33266     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  33267 L_3803493F:
  33268     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33269     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33270     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  33271     _flag_k = FK_ADD;
  33272     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  33273     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33274     edx = edx + 4; /* 0x38034942: add edx, 4 */
  33275     _flag_k = FK_ADD;
  33276     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  33277     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  33278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33279     _flag_k = FK_CMP;
  33280     RECOMP_BACKEDGE();
  33281     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  33282 L_38034949:
  33283     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  33284     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  33285     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  33286     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  33287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33288     _flag_k = FK_CMP;
  33289     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  33290 L_38034953:
  33291     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  33292     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  33293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33294     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  33295     _flag_k = FK_CMP;
  33296     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33298     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  33299     _flag_k = FK_CMP;
  33300     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  33301     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  33302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33303     _flag_k = FK_CMP;
  33304     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  33305     RECOMP_BACKEDGE();
  33306     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  33307 L_38034962:
  33308     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  33309     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  33310     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  33311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33312     _flag_k = FK_CMP;
  33313     eax = esi; /* 0x38034967: mov eax, esi */
  33314     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  33315 L_3803496B:
  33316     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  33317 L_3803496E:
  33318     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  33319     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  33320     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33321     eax = eax + 4; /* 0x38034970: add eax, 4 */
  33322     _flag_k = FK_ADD;
  33323     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  33324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33326     _flag_k = FK_CMP;
  33327     RECOMP_BACKEDGE();
  33328     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  33329 L_38034977:
  33330     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  33331     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33332     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  33333     _flag_k = FK_ADD;
  33334 L_3803497B:
  33335     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  33336     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  33337     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  33338     eax = eax + 1; /* 0x38034981: inc eax */
  33339     _flag_k = FK_INC;
  33340     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  33341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33343     _flag_k = FK_CMP;
  33344     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  33345     RECOMP_BACKEDGE();
  33346     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  33347 L_3803498D:
  33348     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  33349     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  33350     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  33351     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  33352     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  33353     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  33354     esp = ebp; /* 0x3803499D: mov esp, ebp */
  33355     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  33356     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  33357     RECOMP_REGS_OUT();
  33358 }
  33359 
  33360 void sub_38034977(void) {
  33361     int _fpu_cmp = 0;
  33362     uint32_t _cf = 0;
  33363     int _df = 1;
  33364     uint32_t _flag_k = FK_NONE;
  33365     uint32_t _flag_a = 0, _flag_b = 0;
  33366     uint32_t _itail_tgt = 0;
  33367     RECOMP_REGS_LOCALS
  33368     RECOMP_ENTER(0x38034977u);
  33369 
  33370     goto L_38034977;
  33371 L_380346B5:
  33372     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  33373     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  33374     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  33375     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  33376     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  33377     PUSH32(esp, edx); /* 0x380346C5: push edx */
  33378     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  33379     PUSH32(esp, eax); /* 0x380346C9: push eax */
  33380     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  33381     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  33382     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  33383     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  33384     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  33385     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  33386     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  33387     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  33388     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  33389     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  33390     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  33391     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  33392     RECOMP_FLAGS_IN();
  33393     ecx = eax; /* 0x38034714: mov ecx, eax */
  33394     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  33395     RECOMP_FLAGS_IN();
  33396     ecx = eax; /* 0x38034718: mov ecx, eax */
  33397     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  33398     RECOMP_FLAGS_IN();
  33399     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  33400     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  33401     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  33402     PUSH32(esp, edx); /* 0x38034723: push edx */
  33403     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  33404     PUSH32(esp, eax); /* 0x38034727: push eax */
  33405     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  33406     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  33407     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  33408     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  33409     RECOMP_FLAGS_IN();
  33410     ecx = eax; /* 0x38034730: mov ecx, eax */
  33411     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  33412     RECOMP_FLAGS_IN();
  33413     ecx = eax; /* 0x38034734: mov ecx, eax */
  33414     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  33415     RECOMP_FLAGS_IN();
  33416     ecx = eax; /* 0x38034738: mov ecx, eax */
  33417     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  33418     RECOMP_FLAGS_IN();
  33419     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  33420     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  33421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33422     _flag_k = FK_CMP;
  33423     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  33424 L_38034745:
  33425     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  33426     PUSH32(esp, edx); /* 0x38034748: push edx */
  33427     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  33428     PUSH32(esp, eax); /* 0x3803474C: push eax */
  33429     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  33430     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  33431     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  33432     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  33433     RECOMP_FLAGS_IN();
  33434     ecx = eax; /* 0x38034755: mov ecx, eax */
  33435     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  33436     RECOMP_FLAGS_IN();
  33437     ecx = eax; /* 0x38034759: mov ecx, eax */
  33438     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  33439     RECOMP_FLAGS_IN();
  33440     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  33441 L_3803475F:
  33442     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  33443     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  33444     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  33445     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  33446     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  33447     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  33448 L_38034771:
  33449     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  33450     PUSH32(esp, edx); /* 0x38034774: push edx */
  33451     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  33452     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  33453     RECOMP_FLAGS_IN();
  33454     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  33455     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  33456     fp_pop();
  33457     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  33458     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  33459     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  33460     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  33461     _cf = 0;
  33462     _flag_k = FK_NARROW(FK_TEST, 24);
  33463     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  33464 L_3803478D:
  33465     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  33466 L_38034791:
  33467     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  33468     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  33469     RECOMP_FLAGS_IN();
  33470     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  33471     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33472     esp = esp + 4; /* 0x38034798: add esp, 4 */
  33473     _flag_k = FK_ADD;
  33474     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  33475     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  33476     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  33477     _cf = 0;
  33478     _flag_k = FK_TEST;
  33479     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  33480     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33481     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33482     _flag_k = FK_CMP;
  33483     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  33484     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  33485 L_380347A7:
  33486     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  33487     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  33488     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  33489     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  33490     PUSH32(esp, edx); /* 0x380347B0: push edx */
  33491     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  33492     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  33493     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  33494     PUSH32(esp, edx); /* 0x380347B8: push edx */
  33495     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  33496     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  33497     ecx = eax; /* 0x380347BD: mov ecx, eax */
  33498     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  33499     RECOMP_FLAGS_IN();
  33500     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  33501     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  33502 L_380347C9:
  33503     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  33504 L_380347CC:
  33505     ecx = edi; /* 0x380347CC: mov ecx, edi */
  33506     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  33507     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  33508     RECOMP_FLAGS_IN();
  33509     ebx = eax; /* 0x380347DA: mov ebx, eax */
  33510     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  33511     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  33512     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  33513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33514     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  33515     _flag_k = FK_CMP;
  33516     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  33517     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33518     edx = (uint32_t)((int32_t)edx >> 2u);
  33519     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  33520     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  33521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33522     _flag_k = FK_CMP;
  33523     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  33524     esi = eax; /* 0x380347ED: mov esi, eax */
  33525     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  33526 L_380347F5:
  33527     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  33528     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  33529     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  33530     _cf = 0;
  33531     _flag_k = FK_TEST;
  33532     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  33533 L_380347FC:
  33534     ecx = eax; /* 0x380347FC: mov ecx, eax */
  33535     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  33536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33537     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  33538     _flag_k = FK_CMP;
  33539     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  33540     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33541     ecx = (uint32_t)((int32_t)ecx >> 2u);
  33542     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  33543     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  33544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33545     _flag_k = FK_CMP;
  33546     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  33547 L_38034808:
  33548     ecx = 1; /* 0x38034808: mov ecx, 1 */
  33549 L_3803480D:
  33550     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  33551     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  33552     _cf = 0;
  33553     _flag_k = FK_TEST;
  33554     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  33555 L_38034811:
  33556     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  33557     eax = 0; /* 0x38034811: xor eax, eax */
  33558     _cf = 0;
  33559     _flag_k = FK_TEST;
  33560     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  33561 L_38034815:
  33562     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  33563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33564     eax = eax - edx; /* 0x38034815: sub eax, edx */
  33565     _flag_k = FK_CMP;
  33566     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  33567     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33568     eax = (uint32_t)((int32_t)eax >> 2u);
  33569 L_3803481A:
  33570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33572     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  33573     _flag_k = FK_ADD;
  33574     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  33575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  33576     _cf = 0;
  33577     _flag_k = FK_TEST;
  33578     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  33579     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  33580 L_38034823:
  33581     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  33582     eax = 0; /* 0x38034823: xor eax, eax */
  33583     _cf = 0;
  33584     _flag_k = FK_TEST;
  33585 L_38034825:
  33586     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  33587     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33588     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  33589     PUSH32(esp, eax); /* 0x38034828: push eax */
  33590     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  33591     RECOMP_FLAGS_IN();
  33592     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  33593     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  33594     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33595     esp = esp + 4; /* 0x38034831: add esp, 4 */
  33596     _flag_k = FK_ADD;
  33597     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  33598     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  33599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33600     _flag_k = FK_CMP;
  33601     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  33602     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  33603 L_3803483B:
  33604     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  33605     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  33606     _cf = 0;
  33607     _flag_k = FK_TEST;
  33608     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  33609 L_3803483F:
  33610     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  33611     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  33612 L_38034843:
  33613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33614     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33615     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  33616     _flag_k = FK_ADD;
  33617     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  33618     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33619     eax = eax + 4; /* 0x38034846: add eax, 4 */
  33620     _flag_k = FK_ADD;
  33621     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  33622     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  33623     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33624     _flag_k = FK_CMP;
  33625     RECOMP_BACKEDGE();
  33626     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  33627 L_3803484D:
  33628     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  33629     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  33630     _cf = 0;
  33631     _flag_k = FK_TEST;
  33632     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  33633 L_38034851:
  33634     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  33635     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  33636 L_38034856:
  33637     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  33638     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  33639     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  33640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33641     _flag_k = FK_CMP;
  33642     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  33643     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  33644 L_38034860:
  33645     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  33646     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  33647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33648     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  33649     _flag_k = FK_CMP;
  33650     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  33651 L_38034868:
  33652     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  33653     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  33654     _cf = 0;
  33655     _flag_k = FK_TEST;
  33656     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  33657 L_3803486C:
  33658     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  33659     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  33660 L_38034870:
  33661     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  33662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33663     esi = esi + 4; /* 0x38034870: add esi, 4 */
  33664     _flag_k = FK_ADD;
  33665     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33666     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33667     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  33668     _flag_k = FK_ADD;
  33669     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  33670     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  33671     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33672     _flag_k = FK_CMP;
  33673     RECOMP_BACKEDGE();
  33674     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  33675 L_3803487A:
  33676     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  33677 L_3803487D:
  33678     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  33679     PUSH32(esp, eax); /* 0x38034880: push eax */
  33680     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  33681     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  33682     RECOMP_FLAGS_IN();
  33683     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  33684     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  33685     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  33686     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  33687     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  33688     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33689     esp = esp + 4; /* 0x38034895: add esp, 4 */
  33690     _flag_k = FK_ADD;
  33691     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  33692     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  33693     _cf = 0;
  33694     _flag_k = FK_TEST;
  33695     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  33696     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  33697 L_3803489F:
  33698     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  33699     eax = 0; /* 0x3803489F: xor eax, eax */
  33700     _cf = 0;
  33701     _flag_k = FK_TEST;
  33702     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  33703     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  33704     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  33705     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  33706 L_380348B0:
  33707     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  33708     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33710     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  33711     _flag_k = FK_CMP;
  33712     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  33713     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33714     eax = (uint32_t)((int32_t)eax >> 2u);
  33715     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  33716     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  33717     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  33718     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  33719 L_380348C7:
  33720     ecx = eax; /* 0x380348C7: mov ecx, eax */
  33721     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  33722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33723     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  33724     _flag_k = FK_CMP;
  33725     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  33726     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33727     ecx = (uint32_t)((int32_t)ecx >> 2u);
  33728     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  33729     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  33730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33731     _flag_k = FK_CMP;
  33732     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  33733 L_380348D3:
  33734     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  33735     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  33736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33737     _flag_k = FK_CMP;
  33738     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  33739     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  33740 L_380348DA:
  33741     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  33742 L_380348DD:
  33743     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  33744     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  33745     _cf = 0;
  33746     _flag_k = FK_TEST;
  33747     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  33748 L_380348E1:
  33749     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  33750     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  33751     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  33752 L_380348E8:
  33753     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  33754     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33755     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  33756     _flag_k = FK_ADD;
  33757     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33759     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  33760     _flag_k = FK_ADD;
  33761     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  33762     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  33763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33764     _flag_k = FK_CMP;
  33765     RECOMP_BACKEDGE();
  33766     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  33767 L_380348F2:
  33768     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  33769     edx = ecx; /* 0x380348F5: mov edx, ecx */
  33770     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  33771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33772     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  33773     _flag_k = FK_CMP;
  33774     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  33775     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  33776     edx = (uint32_t)((int32_t)edx >> 2u);
  33777     eax = 1; /* 0x380348FC: mov eax, 1 */
  33778     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  33779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33780     eax = eax - edx; /* 0x38034901: sub eax, edx */
  33781     _flag_k = FK_CMP;
  33782     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  33783     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  33784 L_38034908:
  33785     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  33786     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  33787     _cf = 0;
  33788     _flag_k = FK_TEST;
  33789     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  33790 L_3803490C:
  33791     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  33792 L_3803490E:
  33793     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33794     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33795     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  33796     _flag_k = FK_ADD;
  33797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  33798     eax = eax - 1; /* 0x38034911: dec eax */
  33799     _flag_k = FK_DEC;
  33800     RECOMP_BACKEDGE();
  33801     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  33802 L_38034914:
  33803     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  33804     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  33805     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  33806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33807     _flag_k = FK_CMP;
  33808     eax = esi; /* 0x38034919: mov eax, esi */
  33809     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  33810 L_3803491D:
  33811     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  33812     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  33813     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33814     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  33815     _flag_k = FK_ADD;
  33816     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  33817     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33818     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33819     _flag_k = FK_CMP;
  33820     RECOMP_BACKEDGE();
  33821     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  33822 L_38034926:
  33823     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  33824 L_38034928:
  33825     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  33826     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  33827     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  33828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33829     _flag_k = FK_CMP;
  33830     edx = eax; /* 0x3803492D: mov edx, eax */
  33831     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  33832     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  33833 L_38034934:
  33834     /* test edx, edx */ /* 0x38034934: test edx, edx */
  33835     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  33836     _cf = 0;
  33837     _flag_k = FK_TEST;
  33838     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  33839 L_38034938:
  33840     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  33841     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  33842     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  33843 L_3803493F:
  33844     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33846     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  33847     _flag_k = FK_ADD;
  33848     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  33849     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33850     edx = edx + 4; /* 0x38034942: add edx, 4 */
  33851     _flag_k = FK_ADD;
  33852     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  33853     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  33854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33855     _flag_k = FK_CMP;
  33856     RECOMP_BACKEDGE();
  33857     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  33858 L_38034949:
  33859     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  33860     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  33861     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  33862     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  33863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33864     _flag_k = FK_CMP;
  33865     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  33866 L_38034953:
  33867     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  33868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  33869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33870     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  33871     _flag_k = FK_CMP;
  33872     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  33873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33874     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  33875     _flag_k = FK_CMP;
  33876     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  33877     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  33878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33879     _flag_k = FK_CMP;
  33880     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  33881     RECOMP_BACKEDGE();
  33882     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  33883 L_38034962:
  33884     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  33885     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  33886     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  33887     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33888     _flag_k = FK_CMP;
  33889     eax = esi; /* 0x38034967: mov eax, esi */
  33890     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  33891 L_3803496B:
  33892     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  33893 L_3803496E:
  33894     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  33895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  33896     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33897     eax = eax + 4; /* 0x38034970: add eax, 4 */
  33898     _flag_k = FK_ADD;
  33899     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  33900     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33902     _flag_k = FK_CMP;
  33903     RECOMP_BACKEDGE();
  33904     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  33905 L_38034977:
  33906     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  33907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  33908     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  33909     _flag_k = FK_ADD;
  33910 L_3803497B:
  33911     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  33912     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  33913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  33914     eax = eax + 1; /* 0x38034981: inc eax */
  33915     _flag_k = FK_INC;
  33916     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  33917     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  33918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33919     _flag_k = FK_CMP;
  33920     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  33921     RECOMP_BACKEDGE();
  33922     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  33923 L_3803498D:
  33924     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  33925     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  33926     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  33927     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  33928     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  33929     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  33930     esp = ebp; /* 0x3803499D: mov esp, ebp */
  33931     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  33932     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  33933     RECOMP_REGS_OUT();
  33934 }
  33935 
  33936 void sub_3803497B(void) {
  33937     int _fpu_cmp = 0;
  33938     uint32_t _cf = 0;
  33939     int _df = 1;
  33940     uint32_t _flag_k = FK_NONE;
  33941     uint32_t _flag_a = 0, _flag_b = 0;
  33942     uint32_t _itail_tgt = 0;
  33943     RECOMP_REGS_LOCALS
  33944     RECOMP_ENTER(0x3803497Bu);
  33945 
  33946     goto L_3803497B;
  33947 L_380346B5:
  33948     ebx = MEM32(ebp + 0x8); /* 0x380346B5: mov ebx, dword ptr [ebp + 8] */
  33949     esi = MEM32(0x3804E390); /* 0x380346B8: mov esi, dword ptr [0x3804e390] */
  33950     ecx = ebp + (-0x1C); /* 0x380346BE: lea ecx, [ebp - 0x1c] */
  33951     PUSH32(esp, ecx); /* 0x380346C1: push ecx */
  33952     edx = ebp + (-0x20); /* 0x380346C2: lea edx, [ebp - 0x20] */
  33953     PUSH32(esp, edx); /* 0x380346C5: push edx */
  33954     eax = ebp + (-0x24); /* 0x380346C6: lea eax, [ebp - 0x24] */
  33955     PUSH32(esp, eax); /* 0x380346C9: push eax */
  33956     ecx = ebx; /* 0x380346CA: mov ecx, ebx */
  33957     MEM32(ebp + (-0x24)) = 0; /* 0x380346CC: mov dword ptr [ebp - 0x24], 0 */
  33958     MEM32(ebp + (-0x20)) = 0; /* 0x380346D3: mov dword ptr [ebp - 0x20], 0 */
  33959     MEM32(ebp + (-0x1C)) = 0; /* 0x380346DA: mov dword ptr [ebp - 0x1c], 0 */
  33960     MEM32(ebp + (-0x58)) = 0; /* 0x380346E1: mov dword ptr [ebp - 0x58], 0 */
  33961     MEM32(ebp + (-0x54)) = 0; /* 0x380346E8: mov dword ptr [ebp - 0x54], 0 */
  33962     MEM32(ebp + (-0x50)) = 0; /* 0x380346EF: mov dword ptr [ebp - 0x50], 0 */
  33963     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x380346F6: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  33964     MEM32(ebp + (-0x18)) = 0; /* 0x380346FD: mov dword ptr [ebp - 0x18], 0 */
  33965     MEM32(ebp + (-0x14)) = 0; /* 0x38034704: mov dword ptr [ebp - 0x14], 0 */
  33966     MEM32(ebp + (-0x10)) = 0; /* 0x3803470B: mov dword ptr [ebp - 0x10], 0 */
  33967     RECOMP_ICALL(esi); /* 0x38034712: call esi */
  33968     RECOMP_FLAGS_IN();
  33969     ecx = eax; /* 0x38034714: mov ecx, eax */
  33970     RECOMP_ICALL(esi); /* 0x38034716: call esi */
  33971     RECOMP_FLAGS_IN();
  33972     ecx = eax; /* 0x38034718: mov ecx, eax */
  33973     RECOMP_ICALL(esi); /* 0x3803471A: call esi */
  33974     RECOMP_FLAGS_IN();
  33975     ecx = ebp + (-0x4C); /* 0x3803471C: lea ecx, [ebp - 0x4c] */
  33976     PUSH32(esp, ecx); /* 0x3803471F: push ecx */
  33977     edx = ebp + (-0x50); /* 0x38034720: lea edx, [ebp - 0x50] */
  33978     PUSH32(esp, edx); /* 0x38034723: push edx */
  33979     eax = ebp + (-0x54); /* 0x38034724: lea eax, [ebp - 0x54] */
  33980     PUSH32(esp, eax); /* 0x38034727: push eax */
  33981     ecx = ebp + (-0x58); /* 0x38034728: lea ecx, [ebp - 0x58] */
  33982     PUSH32(esp, ecx); /* 0x3803472B: push ecx */
  33983     ecx = ebx; /* 0x3803472C: mov ecx, ebx */
  33984     RECOMP_ICALL(esi); /* 0x3803472E: call esi */
  33985     RECOMP_FLAGS_IN();
  33986     ecx = eax; /* 0x38034730: mov ecx, eax */
  33987     RECOMP_ICALL(esi); /* 0x38034732: call esi */
  33988     RECOMP_FLAGS_IN();
  33989     ecx = eax; /* 0x38034734: mov ecx, eax */
  33990     RECOMP_ICALL(esi); /* 0x38034736: call esi */
  33991     RECOMP_FLAGS_IN();
  33992     ecx = eax; /* 0x38034738: mov ecx, eax */
  33993     RECOMP_ICALL(esi); /* 0x3803473A: call esi */
  33994     RECOMP_FLAGS_IN();
  33995     /* cmp MEM32(edi + 0xAC), 5 */ /* 0x3803473C: cmp dword ptr [edi + 0xac], 5 */
  33996     _flag_a = (uint32_t)(MEM32(edi + 0xAC)); _flag_b = (uint32_t)(5);
  33997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  33998     _flag_k = FK_CMP;
  33999     if (CMP_LE(_flag_a, _flag_b)) goto L_3803475F; /* 0x38034743: jle 0x3803475f */
  34000 L_38034745:
  34001     edx = ebp + (-0x10); /* 0x38034745: lea edx, [ebp - 0x10] */
  34002     PUSH32(esp, edx); /* 0x38034748: push edx */
  34003     eax = ebp + (-0x14); /* 0x38034749: lea eax, [ebp - 0x14] */
  34004     PUSH32(esp, eax); /* 0x3803474C: push eax */
  34005     ecx = ebp + (-0x18); /* 0x3803474D: lea ecx, [ebp - 0x18] */
  34006     PUSH32(esp, ecx); /* 0x38034750: push ecx */
  34007     ecx = ebx; /* 0x38034751: mov ecx, ebx */
  34008     RECOMP_ICALL(esi); /* 0x38034753: call esi */
  34009     RECOMP_FLAGS_IN();
  34010     ecx = eax; /* 0x38034755: mov ecx, eax */
  34011     RECOMP_ICALL(esi); /* 0x38034757: call esi */
  34012     RECOMP_FLAGS_IN();
  34013     ecx = eax; /* 0x38034759: mov ecx, eax */
  34014     RECOMP_ICALL(esi); /* 0x3803475B: call esi */
  34015     RECOMP_FLAGS_IN();
  34016     goto L_38034771; /* 0x3803475D: jmp 0x38034771 */
  34017 L_3803475F:
  34018     edx = MEM32(ebp + (-0x24)); /* 0x3803475F: mov edx, dword ptr [ebp - 0x24] */
  34019     eax = MEM32(ebp + (-0x20)); /* 0x38034762: mov eax, dword ptr [ebp - 0x20] */
  34020     ecx = MEM32(ebp + (-0x1C)); /* 0x38034765: mov ecx, dword ptr [ebp - 0x1c] */
  34021     MEM32(ebp + (-0x18)) = edx; /* 0x38034768: mov dword ptr [ebp - 0x18], edx */
  34022     MEM32(ebp + (-0x14)) = eax; /* 0x3803476B: mov dword ptr [ebp - 0x14], eax */
  34023     MEM32(ebp + (-0x10)) = ecx; /* 0x3803476E: mov dword ptr [ebp - 0x10], ecx */
  34024 L_38034771:
  34025     edx = ebp + (-0x28); /* 0x38034771: lea edx, [ebp - 0x28] */
  34026     PUSH32(esp, edx); /* 0x38034774: push edx */
  34027     ecx = ebx; /* 0x38034775: mov ecx, ebx */
  34028     RECOMP_ICALL(esi); /* 0x38034777: call esi */
  34029     RECOMP_FLAGS_IN();
  34030     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38034779: fld dword ptr [ebp - 0x28] */
  34031     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8CC)); /* 0x3803477C: fcomp dword ptr [0x3804e8cc] */
  34032     fp_pop();
  34033     MEM8(ebp + (-0x34)) = (uint8_t)(1); /* 0x38034782: mov byte ptr [ebp - 0x34], 1 */
  34034     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034786: fnstsw ax */
  34035     /* test HI8(eax), 1 */ /* 0x38034788: test ah, 1 */
  34036     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  34037     _cf = 0;
  34038     _flag_k = FK_NARROW(FK_TEST, 24);
  34039     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034791; /* 0x3803478B: jne 0x38034791 */
  34040 L_3803478D:
  34041     MEM8(ebp + (-0x34)) = (uint8_t)(0); /* 0x3803478D: mov byte ptr [ebp - 0x34], 0 */
  34042 L_38034791:
  34043     PUSH32(esp, 0x34u); /* 0x38034791: push 0x34 */
  34044     RECOMP_ICALL(0x3804B676u); /* 0x38034793: call 0x3804b676 */ /* not lifted */
  34045     RECOMP_FLAGS_IN();
  34046     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  34047     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34048     esp = esp + 4; /* 0x38034798: add esp, 4 */
  34049     _flag_k = FK_ADD;
  34050     MEM32(ebp + 0xC) = eax; /* 0x3803479B: mov dword ptr [ebp + 0xc], eax */
  34051     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  34052     ecx = 0; /* 0x3803479E: xor ecx, ecx */
  34053     _cf = 0;
  34054     _flag_k = FK_TEST;
  34055     /* cmp eax, ecx */ /* 0x380347A0: cmp eax, ecx */
  34056     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  34057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34058     _flag_k = FK_CMP;
  34059     MEM32(ebp + (-0x4)) = ecx; /* 0x380347A2: mov dword ptr [ebp - 4], ecx */
  34060     if (CMP_EQ(_flag_a, _flag_b)) goto L_380347C9; /* 0x380347A5: je 0x380347c9 */
  34061 L_380347A7:
  34062     ecx = MEM32(ebp + (-0x34)); /* 0x380347A7: mov ecx, dword ptr [ebp - 0x34] */
  34063     edx = MEM32(ebp + (-0x28)); /* 0x380347AA: mov edx, dword ptr [ebp - 0x28] */
  34064     PUSH32(esp, 1); /* 0x380347AD: push 1 */
  34065     PUSH32(esp, ecx); /* 0x380347AF: push ecx */
  34066     PUSH32(esp, edx); /* 0x380347B0: push edx */
  34067     ecx = ebp + (-0x18); /* 0x380347B1: lea ecx, [ebp - 0x18] */
  34068     PUSH32(esp, ecx); /* 0x380347B4: push ecx */
  34069     edx = ebp + (-0x58); /* 0x380347B5: lea edx, [ebp - 0x58] */
  34070     PUSH32(esp, edx); /* 0x380347B8: push edx */
  34071     ecx = ebp + (-0x24); /* 0x380347B9: lea ecx, [ebp - 0x24] */
  34072     PUSH32(esp, ecx); /* 0x380347BC: push ecx */
  34073     ecx = eax; /* 0x380347BD: mov ecx, eax */
  34074     RECOMP_ICALL(0x3800AA50u); /* 0x380347BF: call 0x3800aa50 */ /* not lifted */
  34075     RECOMP_FLAGS_IN();
  34076     MEM32(ebp + 0xC) = eax; /* 0x380347C4: mov dword ptr [ebp + 0xc], eax */
  34077     goto L_380347CC; /* 0x380347C7: jmp 0x380347cc */
  34078 L_380347C9:
  34079     MEM32(ebp + 0xC) = ecx; /* 0x380347C9: mov dword ptr [ebp + 0xc], ecx */
  34080 L_380347CC:
  34081     ecx = edi; /* 0x380347CC: mov ecx, edi */
  34082     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380347CE: mov dword ptr [ebp - 4], 0xffffffff */
  34083     RECOMP_ICALL(0x3803EC10u); /* 0x380347D5: call 0x3803ec10 */ /* not lifted */
  34084     RECOMP_FLAGS_IN();
  34085     ebx = eax; /* 0x380347DA: mov ebx, eax */
  34086     eax = MEM32(ebx + 0x8); /* 0x380347DC: mov eax, dword ptr [ebx + 8] */
  34087     edx = MEM32(ebx + 0xC); /* 0x380347DF: mov edx, dword ptr [ebx + 0xc] */
  34088     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  34089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34090     edx = edx - eax; /* 0x380347E2: sub edx, eax */
  34091     _flag_k = FK_CMP;
  34092     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380347E4: sar edx, 2 */
  34093     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  34094     edx = (uint32_t)((int32_t)edx >> 2u);
  34095     /* cmp edx, 1 */ /* 0x380347E7: cmp edx, 1 */
  34096     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  34097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34098     _flag_k = FK_CMP;
  34099     MEM32(ebp + (-0x38)) = ebx; /* 0x380347EA: mov dword ptr [ebp - 0x38], ebx */
  34100     esi = eax; /* 0x380347ED: mov esi, eax */
  34101     if (CMP_AE(_flag_a, _flag_b)) goto L_380348C7; /* 0x380347EF: jae 0x380348c7 */
  34102 L_380347F5:
  34103     edx = MEM32(ebx + 0x4); /* 0x380347F5: mov edx, dword ptr [ebx + 4] */
  34104     /* test edx, edx */ /* 0x380347F8: test edx, edx */
  34105     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  34106     _cf = 0;
  34107     _flag_k = FK_TEST;
  34108     if (TEST_Z(_flag_a, _flag_b)) goto L_38034808; /* 0x380347FA: je 0x38034808 */
  34109 L_380347FC:
  34110     ecx = eax; /* 0x380347FC: mov ecx, eax */
  34111     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  34112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34113     ecx = ecx - edx; /* 0x380347FE: sub ecx, edx */
  34114     _flag_k = FK_CMP;
  34115     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38034800: sar ecx, 2 */
  34116     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  34117     ecx = (uint32_t)((int32_t)ecx >> 2u);
  34118     /* cmp ecx, 1 */ /* 0x38034803: cmp ecx, 1 */
  34119     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  34120     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34121     _flag_k = FK_CMP;
  34122     if (CMP_A(_flag_a, _flag_b)) goto L_3803480D; /* 0x38034806: ja 0x3803480d */
  34123 L_38034808:
  34124     ecx = 1; /* 0x38034808: mov ecx, 1 */
  34125 L_3803480D:
  34126     /* test edx, edx */ /* 0x3803480D: test edx, edx */
  34127     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  34128     _cf = 0;
  34129     _flag_k = FK_TEST;
  34130     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034815; /* 0x3803480F: jne 0x38034815 */
  34131 L_38034811:
  34132     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  34133     eax = 0; /* 0x38034811: xor eax, eax */
  34134     _cf = 0;
  34135     _flag_k = FK_TEST;
  34136     goto L_3803481A; /* 0x38034813: jmp 0x3803481a */
  34137 L_38034815:
  34138     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  34139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34140     eax = eax - edx; /* 0x38034815: sub eax, edx */
  34141     _flag_k = FK_CMP;
  34142     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38034817: sar eax, 2 */
  34143     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  34144     eax = (uint32_t)((int32_t)eax >> 2u);
  34145 L_3803481A:
  34146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  34147     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34148     eax = eax + ecx; /* 0x3803481A: add eax, ecx */
  34149     _flag_k = FK_ADD;
  34150     /* test eax, eax */ /* 0x3803481C: test eax, eax */
  34151     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  34152     _cf = 0;
  34153     _flag_k = FK_TEST;
  34154     MEM32(ebp + (-0x40)) = eax; /* 0x3803481E: mov dword ptr [ebp - 0x40], eax */
  34155     if (TEST_NS(_flag_a, _flag_b)) goto L_38034825; /* 0x38034821: jge 0x38034825 */
  34156 L_38034823:
  34157     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  34158     eax = 0; /* 0x38034823: xor eax, eax */
  34159     _cf = 0;
  34160     _flag_k = FK_TEST;
  34161 L_38034825:
  34162     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x38034825: shl eax, 2 */
  34163     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  34164     eax = eax << 2u; /* 0x38034825: shl eax, 2 */
  34165     PUSH32(esp, eax); /* 0x38034828: push eax */
  34166     RECOMP_ICALL(0x3804B676u); /* 0x38034829: call 0x3804b676 */ /* not lifted */
  34167     RECOMP_FLAGS_IN();
  34168     ecx = MEM32(ebx + 0x4); /* 0x3803482E: mov ecx, dword ptr [ebx + 4] */
  34169     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  34170     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34171     esp = esp + 4; /* 0x38034831: add esp, 4 */
  34172     _flag_k = FK_ADD;
  34173     /* cmp ecx, esi */ /* 0x38034834: cmp ecx, esi */
  34174     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  34175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34176     _flag_k = FK_CMP;
  34177     MEM32(ebp + (-0x64)) = eax; /* 0x38034836: mov dword ptr [ebp - 0x64], eax */
  34178     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803484D; /* 0x38034839: je 0x3803484d */
  34179 L_3803483B:
  34180     /* test eax, eax */ /* 0x3803483B: test eax, eax */
  34181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  34182     _cf = 0;
  34183     _flag_k = FK_TEST;
  34184     if (TEST_Z(_flag_a, _flag_b)) goto L_38034843; /* 0x3803483D: je 0x38034843 */
  34185 L_3803483F:
  34186     edx = MEM32(ecx); /* 0x3803483F: mov edx, dword ptr [ecx] */
  34187     MEM32(eax) = edx; /* 0x38034841: mov dword ptr [eax], edx */
  34188 L_38034843:
  34189     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  34190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34191     ecx = ecx + 4; /* 0x38034843: add ecx, 4 */
  34192     _flag_k = FK_ADD;
  34193     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  34194     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34195     eax = eax + 4; /* 0x38034846: add eax, 4 */
  34196     _flag_k = FK_ADD;
  34197     /* cmp ecx, esi */ /* 0x38034849: cmp ecx, esi */
  34198     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  34199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34200     _flag_k = FK_CMP;
  34201     RECOMP_BACKEDGE();
  34202     if (CMP_NE(_flag_a, _flag_b)) goto L_3803483B; /* 0x3803484B: jne 0x3803483b */
  34203 L_3803484D:
  34204     /* test eax, eax */ /* 0x3803484D: test eax, eax */
  34205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  34206     _cf = 0;
  34207     _flag_k = FK_TEST;
  34208     if (TEST_Z(_flag_a, _flag_b)) goto L_38034856; /* 0x3803484F: je 0x38034856 */
  34209 L_38034851:
  34210     ecx = MEM32(ebp + 0xC); /* 0x38034851: mov ecx, dword ptr [ebp + 0xc] */
  34211     MEM32(eax) = ecx; /* 0x38034854: mov dword ptr [eax], ecx */
  34212 L_38034856:
  34213     edx = MEM32(ebx + 0x8); /* 0x38034856: mov edx, dword ptr [ebx + 8] */
  34214     /* cmp esi, edx */ /* 0x38034859: cmp esi, edx */
  34215     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  34216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34217     _flag_k = FK_CMP;
  34218     ecx = eax + 0x4; /* 0x3803485B: lea ecx, [eax + 4] */
  34219     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803487D; /* 0x3803485E: je 0x3803487d */
  34220 L_38034860:
  34221     ebx = ecx; /* 0x38034860: mov ebx, ecx */
  34222     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  34223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34224     ebx = ebx - eax; /* 0x38034862: sub ebx, eax */
  34225     _flag_k = FK_CMP;
  34226     esi = ebx + esi + (-0x4); /* 0x38034864: lea esi, [ebx + esi - 4] */
  34227 L_38034868:
  34228     /* test ecx, ecx */ /* 0x38034868: test ecx, ecx */
  34229     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  34230     _cf = 0;
  34231     _flag_k = FK_TEST;
  34232     if (TEST_Z(_flag_a, _flag_b)) goto L_38034870; /* 0x3803486A: je 0x38034870 */
  34233 L_3803486C:
  34234     eax = MEM32(esi); /* 0x3803486C: mov eax, dword ptr [esi] */
  34235     MEM32(ecx) = eax; /* 0x3803486E: mov dword ptr [ecx], eax */
  34236 L_38034870:
  34237     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  34238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34239     esi = esi + 4; /* 0x38034870: add esi, 4 */
  34240     _flag_k = FK_ADD;
  34241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  34242     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34243     ecx = ecx + 4; /* 0x38034873: add ecx, 4 */
  34244     _flag_k = FK_ADD;
  34245     /* cmp esi, edx */ /* 0x38034876: cmp esi, edx */
  34246     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  34247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34248     _flag_k = FK_CMP;
  34249     RECOMP_BACKEDGE();
  34250     if (CMP_NE(_flag_a, _flag_b)) goto L_38034868; /* 0x38034878: jne 0x38034868 */
  34251 L_3803487A:
  34252     ebx = MEM32(ebp + (-0x38)); /* 0x3803487A: mov ebx, dword ptr [ebp - 0x38] */
  34253 L_3803487D:
  34254     eax = MEM32(ebx + 0x4); /* 0x3803487D: mov eax, dword ptr [ebx + 4] */
  34255     PUSH32(esp, eax); /* 0x38034880: push eax */
  34256     MEM32(ebp + 0xC) = eax; /* 0x38034881: mov dword ptr [ebp + 0xc], eax */
  34257     RECOMP_ICALL(0x3804B4F6u); /* 0x38034884: call 0x3804b4f6 */ /* not lifted */
  34258     RECOMP_FLAGS_IN();
  34259     ecx = MEM32(ebp + (-0x40)); /* 0x38034889: mov ecx, dword ptr [ebp - 0x40] */
  34260     edx = MEM32(ebp + (-0x64)); /* 0x3803488C: mov edx, dword ptr [ebp - 0x64] */
  34261     eax = edx + ecx * 4; /* 0x3803488F: lea eax, [edx + ecx*4] */
  34262     ecx = MEM32(ebx + 0x4); /* 0x38034892: mov ecx, dword ptr [ebx + 4] */
  34263     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  34264     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34265     esp = esp + 4; /* 0x38034895: add esp, 4 */
  34266     _flag_k = FK_ADD;
  34267     /* test ecx, ecx */ /* 0x38034898: test ecx, ecx */
  34268     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  34269     _cf = 0;
  34270     _flag_k = FK_TEST;
  34271     MEM32(ebx + 0xC) = eax; /* 0x3803489A: mov dword ptr [ebx + 0xc], eax */
  34272     if (TEST_NZ(_flag_a, _flag_b)) goto L_380348B0; /* 0x3803489D: jne 0x380348b0 */
  34273 L_3803489F:
  34274     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  34275     eax = 0; /* 0x3803489F: xor eax, eax */
  34276     _cf = 0;
  34277     _flag_k = FK_TEST;
  34278     ecx = edx + eax * 4 + 0x4; /* 0x380348A1: lea ecx, [edx + eax*4 + 4] */
  34279     MEM32(ebx + 0x8) = ecx; /* 0x380348A5: mov dword ptr [ebx + 8], ecx */
  34280     MEM32(ebx + 0x4) = edx; /* 0x380348A8: mov dword ptr [ebx + 4], edx */
  34281     goto L_3803497B; /* 0x380348AB: jmp 0x3803497b */
  34282 L_380348B0:
  34283     eax = MEM32(ebx + 0x8); /* 0x380348B0: mov eax, dword ptr [ebx + 8] */
  34284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  34285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34286     eax = eax - ecx; /* 0x380348B3: sub eax, ecx */
  34287     _flag_k = FK_CMP;
  34288     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380348B5: sar eax, 2 */
  34289     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  34290     eax = (uint32_t)((int32_t)eax >> 2u);
  34291     ecx = edx + eax * 4 + 0x4; /* 0x380348B8: lea ecx, [edx + eax*4 + 4] */
  34292     MEM32(ebx + 0x8) = ecx; /* 0x380348BC: mov dword ptr [ebx + 8], ecx */
  34293     MEM32(ebx + 0x4) = edx; /* 0x380348BF: mov dword ptr [ebx + 4], edx */
  34294     goto L_3803497B; /* 0x380348C2: jmp 0x3803497b */
  34295 L_380348C7:
  34296     ecx = eax; /* 0x380348C7: mov ecx, eax */
  34297     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  34298     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34299     ecx = ecx - esi; /* 0x380348C9: sub ecx, esi */
  34300     _flag_k = FK_CMP;
  34301     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380348CB: sar ecx, 2 */
  34302     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  34303     ecx = (uint32_t)((int32_t)ecx >> 2u);
  34304     /* cmp ecx, 1 */ /* 0x380348CE: cmp ecx, 1 */
  34305     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  34306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34307     _flag_k = FK_CMP;
  34308     if (CMP_AE(_flag_a, _flag_b)) goto L_38034928; /* 0x380348D1: jae 0x38034928 */
  34309 L_380348D3:
  34310     /* cmp esi, eax */ /* 0x380348D3: cmp esi, eax */
  34311     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  34312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34313     _flag_k = FK_CMP;
  34314     ecx = esi + 0x4; /* 0x380348D5: lea ecx, [esi + 4] */
  34315     if (CMP_EQ(_flag_a, _flag_b)) goto L_380348F2; /* 0x380348D8: je 0x380348f2 */
  34316 L_380348DA:
  34317     edx = ecx + (-0x4); /* 0x380348DA: lea edx, [ecx - 4] */
  34318 L_380348DD:
  34319     /* test ecx, ecx */ /* 0x380348DD: test ecx, ecx */
  34320     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  34321     _cf = 0;
  34322     _flag_k = FK_TEST;
  34323     if (TEST_Z(_flag_a, _flag_b)) goto L_380348E8; /* 0x380348DF: je 0x380348e8 */
  34324 L_380348E1:
  34325     ebx = MEM32(edx); /* 0x380348E1: mov ebx, dword ptr [edx] */
  34326     MEM32(ecx) = ebx; /* 0x380348E3: mov dword ptr [ecx], ebx */
  34327     ebx = MEM32(ebp + (-0x38)); /* 0x380348E5: mov ebx, dword ptr [ebp - 0x38] */
  34328 L_380348E8:
  34329     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  34330     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34331     edx = edx + 4; /* 0x380348E8: add edx, 4 */
  34332     _flag_k = FK_ADD;
  34333     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  34334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34335     ecx = ecx + 4; /* 0x380348EB: add ecx, 4 */
  34336     _flag_k = FK_ADD;
  34337     /* cmp edx, eax */ /* 0x380348EE: cmp edx, eax */
  34338     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  34339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34340     _flag_k = FK_CMP;
  34341     RECOMP_BACKEDGE();
  34342     if (CMP_NE(_flag_a, _flag_b)) goto L_380348DD; /* 0x380348F0: jne 0x380348dd */
  34343 L_380348F2:
  34344     ecx = MEM32(ebx + 0x8); /* 0x380348F2: mov ecx, dword ptr [ebx + 8] */
  34345     edx = ecx; /* 0x380348F5: mov edx, ecx */
  34346     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  34347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34348     edx = edx - esi; /* 0x380348F7: sub edx, esi */
  34349     _flag_k = FK_CMP;
  34350     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x380348F9: sar edx, 2 */
  34351     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  34352     edx = (uint32_t)((int32_t)edx >> 2u);
  34353     eax = 1; /* 0x380348FC: mov eax, 1 */
  34354     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  34355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34356     eax = eax - edx; /* 0x38034901: sub eax, edx */
  34357     _flag_k = FK_CMP;
  34358     edx = MEM32(ebp + 0xC); /* 0x38034903: mov edx, dword ptr [ebp + 0xc] */
  34359     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38034914; /* 0x38034906: je 0x38034914 */
  34360 L_38034908:
  34361     /* test ecx, ecx */ /* 0x38034908: test ecx, ecx */
  34362     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  34363     _cf = 0;
  34364     _flag_k = FK_TEST;
  34365     if (TEST_Z(_flag_a, _flag_b)) goto L_3803490E; /* 0x3803490A: je 0x3803490e */
  34366 L_3803490C:
  34367     MEM32(ecx) = edx; /* 0x3803490C: mov dword ptr [ecx], edx */
  34368 L_3803490E:
  34369     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  34370     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34371     ecx = ecx + 4; /* 0x3803490E: add ecx, 4 */
  34372     _flag_k = FK_ADD;
  34373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  34374     eax = eax - 1; /* 0x38034911: dec eax */
  34375     _flag_k = FK_DEC;
  34376     RECOMP_BACKEDGE();
  34377     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38034908; /* 0x38034912: jne 0x38034908 */
  34378 L_38034914:
  34379     ecx = MEM32(ebx + 0x8); /* 0x38034914: mov ecx, dword ptr [ebx + 8] */
  34380     /* cmp esi, ecx */ /* 0x38034917: cmp esi, ecx */
  34381     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  34382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34383     _flag_k = FK_CMP;
  34384     eax = esi; /* 0x38034919: mov eax, esi */
  34385     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x3803491B: je 0x38034977 */
  34386 L_3803491D:
  34387     MEM32(eax) = edx; /* 0x3803491D: mov dword ptr [eax], edx */
  34388     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  34389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34390     eax = eax + 4; /* 0x3803491F: add eax, 4 */
  34391     _flag_k = FK_ADD;
  34392     /* cmp eax, ecx */ /* 0x38034922: cmp eax, ecx */
  34393     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  34394     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34395     _flag_k = FK_CMP;
  34396     RECOMP_BACKEDGE();
  34397     if (CMP_NE(_flag_a, _flag_b)) goto L_3803491D; /* 0x38034924: jne 0x3803491d */
  34398 L_38034926:
  34399     goto L_38034977; /* 0x38034926: jmp 0x38034977 */
  34400 L_38034928:
  34401     ecx = eax + (-0x4); /* 0x38034928: lea ecx, [eax - 4] */
  34402     /* cmp ecx, eax */ /* 0x3803492B: cmp ecx, eax */
  34403     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  34404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34405     _flag_k = FK_CMP;
  34406     edx = eax; /* 0x3803492D: mov edx, eax */
  34407     MEM32(ebp + (-0x40)) = ecx; /* 0x3803492F: mov dword ptr [ebp - 0x40], ecx */
  34408     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034949; /* 0x38034932: je 0x38034949 */
  34409 L_38034934:
  34410     /* test edx, edx */ /* 0x38034934: test edx, edx */
  34411     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  34412     _cf = 0;
  34413     _flag_k = FK_TEST;
  34414     if (TEST_Z(_flag_a, _flag_b)) goto L_3803493F; /* 0x38034936: je 0x3803493f */
  34415 L_38034938:
  34416     ebx = MEM32(ecx); /* 0x38034938: mov ebx, dword ptr [ecx] */
  34417     MEM32(edx) = ebx; /* 0x3803493A: mov dword ptr [edx], ebx */
  34418     ebx = MEM32(ebp + (-0x38)); /* 0x3803493C: mov ebx, dword ptr [ebp - 0x38] */
  34419 L_3803493F:
  34420     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  34421     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34422     ecx = ecx + 4; /* 0x3803493F: add ecx, 4 */
  34423     _flag_k = FK_ADD;
  34424     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  34425     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34426     edx = edx + 4; /* 0x38034942: add edx, 4 */
  34427     _flag_k = FK_ADD;
  34428     /* cmp ecx, eax */ /* 0x38034945: cmp ecx, eax */
  34429     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  34430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34431     _flag_k = FK_CMP;
  34432     RECOMP_BACKEDGE();
  34433     if (CMP_NE(_flag_a, _flag_b)) goto L_38034934; /* 0x38034947: jne 0x38034934 */
  34434 L_38034949:
  34435     ecx = MEM32(ebx + 0x8); /* 0x38034949: mov ecx, dword ptr [ebx + 8] */
  34436     eax = ecx + (-0x4); /* 0x3803494C: lea eax, [ecx - 4] */
  34437     /* cmp esi, eax */ /* 0x3803494F: cmp esi, eax */
  34438     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  34439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34440     _flag_k = FK_CMP;
  34441     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034962; /* 0x38034951: je 0x38034962 */
  34442 L_38034953:
  34443     edx = MEM32(eax + (-0x4)); /* 0x38034953: mov edx, dword ptr [eax - 4] */
  34444     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  34445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34446     eax = eax - 4; /* 0x38034956: sub eax, 4 */
  34447     _flag_k = FK_CMP;
  34448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  34449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34450     ecx = ecx - 4; /* 0x38034959: sub ecx, 4 */
  34451     _flag_k = FK_CMP;
  34452     /* cmp eax, esi */ /* 0x3803495C: cmp eax, esi */
  34453     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  34454     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34455     _flag_k = FK_CMP;
  34456     MEM32(ecx) = edx; /* 0x3803495E: mov dword ptr [ecx], edx */
  34457     RECOMP_BACKEDGE();
  34458     if (CMP_NE(_flag_a, _flag_b)) goto L_38034953; /* 0x38034960: jne 0x38034953 */
  34459 L_38034962:
  34460     ecx = esi + 0x4; /* 0x38034962: lea ecx, [esi + 4] */
  34461     /* cmp esi, ecx */ /* 0x38034965: cmp esi, ecx */
  34462     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  34463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34464     _flag_k = FK_CMP;
  34465     eax = esi; /* 0x38034967: mov eax, esi */
  34466     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034977; /* 0x38034969: je 0x38034977 */
  34467 L_3803496B:
  34468     edx = MEM32(ebp + 0xC); /* 0x3803496B: mov edx, dword ptr [ebp + 0xc] */
  34469 L_3803496E:
  34470     MEM32(eax) = edx; /* 0x3803496E: mov dword ptr [eax], edx */
  34471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  34472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34473     eax = eax + 4; /* 0x38034970: add eax, 4 */
  34474     _flag_k = FK_ADD;
  34475     /* cmp eax, ecx */ /* 0x38034973: cmp eax, ecx */
  34476     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  34477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34478     _flag_k = FK_CMP;
  34479     RECOMP_BACKEDGE();
  34480     if (CMP_NE(_flag_a, _flag_b)) goto L_3803496E; /* 0x38034975: jne 0x3803496e */
  34481 L_38034977:
  34482     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(4);
  34483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34484     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 4; /* 0x38034977: add dword ptr [ebx + 8], 4 */
  34485     _flag_k = FK_ADD;
  34486 L_3803497B:
  34487     eax = MEM32(ebp + (-0x2C)); /* 0x3803497B: mov eax, dword ptr [ebp - 0x2c] */
  34488     ecx = MEM32(ebp + (-0x3C)); /* 0x3803497E: mov ecx, dword ptr [ebp - 0x3c] */
  34489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  34490     eax = eax + 1; /* 0x38034981: inc eax */
  34491     _flag_k = FK_INC;
  34492     /* cmp eax, ecx */ /* 0x38034982: cmp eax, ecx */
  34493     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  34494     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34495     _flag_k = FK_CMP;
  34496     MEM32(ebp + (-0x2C)) = eax; /* 0x38034984: mov dword ptr [ebp - 0x2c], eax */
  34497     RECOMP_BACKEDGE();
  34498     if (CMP_L(_flag_a, _flag_b)) goto L_380346B5; /* 0x38034987: jl 0x380346b5 */
  34499 L_3803498D:
  34500     ecx = MEM32(ebp + (-0xC)); /* 0x3803498D: mov ecx, dword ptr [ebp - 0xc] */
  34501     eax = MEM32(ebp + 0x8); /* 0x38034990: mov eax, dword ptr [ebp + 8] */
  34502     edi = POP32_VAL(esp); /* 0x38034993: pop edi */
  34503     esi = POP32_VAL(esp); /* 0x38034994: pop esi */
  34504     ebx = POP32_VAL(esp); /* 0x38034995: pop ebx */
  34505     MEM32(FS_BASE + (0)) = ecx; /* 0x38034996: mov dword ptr fs:[0], ecx */
  34506     esp = ebp; /* 0x3803499D: mov esp, ebp */
  34507     ebp = POP32_VAL(esp); /* 0x3803499F: pop ebp */
  34508     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380349A0: ret  */
  34509     RECOMP_REGS_OUT();
  34510 }
  34511 
  34512 void sub_38034A00(void) {
  34513     int _fpu_cmp = 0;
  34514     uint32_t _cf = 0;
  34515     int _df = 1;
  34516     uint32_t _flag_k = FK_NONE;
  34517     uint32_t _flag_a = 0, _flag_b = 0;
  34518     uint32_t _itail_tgt = 0;
  34519     RECOMP_REGS_LOCALS
  34520     RECOMP_ENTER(0x38034A00u);
  34521 
  34522 L_38034A00:
  34523     ecx = 0x3806EEE8u; /* 0x38034A00: mov ecx, 0x3806eee8 */
  34524     goto L_38046510; /* 0x38034A05: jmp 0x38046510 */
  34525 L_38046510:
  34526     PUSH32(esp, ebp); /* 0x38046510: push ebp */
  34527     ebp = esp; /* 0x38046511: mov ebp, esp */
  34528     PUSH32(esp, 0xFFFFFFFFu); /* 0x38046513: push -1 */
  34529     PUSH32(esp, 0x3804D2CBu); /* 0x38046515: push 0x3804d2cb */
  34530     eax = MEM32(FS_BASE + (0)); /* 0x3804651A: mov eax, dword ptr fs:[0] */
  34531     PUSH32(esp, eax); /* 0x38046520: push eax */
  34532     MEM32(FS_BASE + (0)) = esp; /* 0x38046521: mov dword ptr fs:[0], esp */
  34533     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  34534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34535     esp = esp - 8; /* 0x38046528: sub esp, 8 */
  34536     _flag_k = FK_CMP;
  34537     PUSH32(esp, esi); /* 0x3804652B: push esi */
  34538     esi = ecx; /* 0x3804652C: mov esi, ecx */
  34539     PUSH32(esp, edi); /* 0x3804652E: push edi */
  34540     eax = MEM32(esi + 0x18); /* 0x3804652F: mov eax, dword ptr [esi + 0x18] */
  34541     /* test eax, eax */ /* 0x38046532: test eax, eax */
  34542     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  34543     _cf = 0;
  34544     _flag_k = FK_TEST;
  34545     if (TEST_NZ(_flag_a, _flag_b)) goto L_3804658F; /* 0x38046534: jne 0x3804658f */
  34546 L_38046536:
  34547     PUSH32(esp, 0x1Cu); /* 0x38046536: push 0x1c */
  34548     RECOMP_ICALL(0x3804B676u); /* 0x38046538: call 0x3804b676 */ /* not lifted */
  34549     RECOMP_FLAGS_IN();
  34550     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  34551     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34552     esp = esp + 4; /* 0x3804653D: add esp, 4 */
  34553     _flag_k = FK_ADD;
  34554     MEM32(ebp + (-0x14)) = eax; /* 0x38046540: mov dword ptr [ebp - 0x14], eax */
  34555     /* test eax, eax */ /* 0x38046543: test eax, eax */
  34556     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  34557     _cf = 0;
  34558     _flag_k = FK_TEST;
  34559     MEM32(ebp + (-0x4)) = 0; /* 0x38046545: mov dword ptr [ebp - 4], 0 */
  34560     if (TEST_Z(_flag_a, _flag_b)) goto L_38046560; /* 0x3804654C: je 0x38046560 */
  34561 L_3804654E:
  34562     ecx = MEM32(esi + 0x4); /* 0x3804654E: mov ecx, dword ptr [esi + 4] */
  34563     edx = MEM32(esi); /* 0x38046551: mov edx, dword ptr [esi] */
  34564     PUSH32(esp, ecx); /* 0x38046553: push ecx */
  34565     PUSH32(esp, edx); /* 0x38046554: push edx */
  34566     ecx = eax; /* 0x38046555: mov ecx, eax */
  34567     RECOMP_ICALL(0x380463B0u); /* 0x38046557: call 0x380463b0 */ /* not lifted */
  34568     RECOMP_FLAGS_IN();
  34569     edi = eax; /* 0x3804655C: mov edi, eax */
  34570     goto L_38046562; /* 0x3804655E: jmp 0x38046562 */
  34571 L_38046560:
  34572     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  34573     edi = 0; /* 0x38046560: xor edi, edi */
  34574     _cf = 0;
  34575     _flag_k = FK_TEST;
  34576 L_38046562:
  34577     /* test edi, edi */ /* 0x38046562: test edi, edi */
  34578     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  34579     _cf = 0;
  34580     _flag_k = FK_TEST;
  34581     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38046564: mov dword ptr [ebp - 4], 0xffffffff */
  34582     MEM32(ebp + (-0x10)) = edi; /* 0x3804656B: mov dword ptr [ebp - 0x10], edi */
  34583     if (TEST_Z(_flag_a, _flag_b)) goto L_380465EB; /* 0x3804656E: je 0x380465eb */
  34584 L_38046570:
  34585     eax = MEM32(edi + 0x4); /* 0x38046570: mov eax, dword ptr [edi + 4] */
  34586     /* test eax, eax */ /* 0x38046573: test eax, eax */
  34587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  34588     _cf = 0;
  34589     _flag_k = FK_TEST;
  34590     if (TEST_Z(_flag_a, _flag_b)) goto L_380465DB; /* 0x38046575: je 0x380465db */
  34591 L_38046577:
  34592     edx = MEM32(esi + 0x10); /* 0x38046577: mov edx, dword ptr [esi + 0x10] */
  34593     ecx = esi + 0x8; /* 0x3804657A: lea ecx, [esi + 8] */
  34594     eax = ebp + (-0x10); /* 0x3804657D: lea eax, [ebp - 0x10] */
  34595     PUSH32(esp, eax); /* 0x38046580: push eax */
  34596     PUSH32(esp, 1); /* 0x38046581: push 1 */
  34597     PUSH32(esp, edx); /* 0x38046583: push edx */
  34598     RECOMP_ICALL(0x38046650u); /* 0x38046584: call 0x38046650 */ /* not lifted */
  34599     RECOMP_FLAGS_IN();
  34600     eax = MEM32(ebp + (-0x10)); /* 0x38046589: mov eax, dword ptr [ebp - 0x10] */
  34601     MEM32(esi + 0x18) = eax; /* 0x3804658C: mov dword ptr [esi + 0x18], eax */
  34602 L_3804658F:
  34603     eax = MEM32(esi + 0x18); /* 0x3804658F: mov eax, dword ptr [esi + 0x18] */
  34604     edx = MEM32(eax + 0x4); /* 0x38046592: mov edx, dword ptr [eax + 4] */
  34605     ecx = MEM32(edx); /* 0x38046595: mov ecx, dword ptr [edx] */
  34606     MEM32(eax + 0x4) = ecx; /* 0x38046597: mov dword ptr [eax + 4], ecx */
  34607     ecx = MEM32(eax + 0x14); /* 0x3804659A: mov ecx, dword ptr [eax + 0x14] */
  34608     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  34609     ecx = ecx - 1; /* 0x3804659D: dec ecx */
  34610     _flag_k = FK_DEC;
  34611     MEM32(eax + 0x14) = ecx; /* 0x3804659E: mov dword ptr [eax + 0x14], ecx */
  34612     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_380465C8; /* 0x380465A1: jne 0x380465c8 */
  34613 L_380465A3:
  34614     MEM32(esi + 0x18) = 0; /* 0x380465A3: mov dword ptr [esi + 0x18], 0 */
  34615     eax = MEM32(esi + 0xC); /* 0x380465AA: mov eax, dword ptr [esi + 0xc] */
  34616     /* cmp eax, MEM32(esi + 0x10) */ /* 0x380465AD: cmp eax, dword ptr [esi + 0x10] */
  34617     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x10));
  34618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34619     _flag_k = FK_CMP;
  34620     if (CMP_EQ(_flag_a, _flag_b)) goto L_380465C8; /* 0x380465B0: je 0x380465c8 */
  34621 L_380465B2:
  34622     ecx = MEM32(eax); /* 0x380465B2: mov ecx, dword ptr [eax] */
  34623     edi = MEM32(ecx + 0x14); /* 0x380465B4: mov edi, dword ptr [ecx + 0x14] */
  34624     /* test edi, edi */ /* 0x380465B7: test edi, edi */
  34625     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  34626     _cf = 0;
  34627     _flag_k = FK_TEST;
  34628     if (TEST_Z(_flag_a, _flag_b)) goto L_380465BE; /* 0x380465B9: je 0x380465be */
  34629 L_380465BB:
  34630     MEM32(esi + 0x18) = ecx; /* 0x380465BB: mov dword ptr [esi + 0x18], ecx */
  34631 L_380465BE:
  34632     ecx = MEM32(esi + 0x10); /* 0x380465BE: mov ecx, dword ptr [esi + 0x10] */
  34633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  34634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34635     eax = eax + 4; /* 0x380465C1: add eax, 4 */
  34636     _flag_k = FK_ADD;
  34637     /* cmp eax, ecx */ /* 0x380465C4: cmp eax, ecx */
  34638     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  34639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34640     _flag_k = FK_CMP;
  34641     RECOMP_BACKEDGE();
  34642     if (CMP_NE(_flag_a, _flag_b)) goto L_380465B2; /* 0x380465C6: jne 0x380465b2 */
  34643 L_380465C8:
  34644     edi = POP32_VAL(esp); /* 0x380465C8: pop edi */
  34645     eax = edx + 0x4; /* 0x380465C9: lea eax, [edx + 4] */
  34646     esi = POP32_VAL(esp); /* 0x380465CC: pop esi */
  34647     ecx = MEM32(ebp + (-0xC)); /* 0x380465CD: mov ecx, dword ptr [ebp - 0xc] */
  34648     MEM32(FS_BASE + (0)) = ecx; /* 0x380465D0: mov dword ptr fs:[0], ecx */
  34649     esp = ebp; /* 0x380465D7: mov esp, ebp */
  34650     ebp = POP32_VAL(esp); /* 0x380465D9: pop ebp */
  34651     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380465DA: ret  */
  34652 L_380465DB:
  34653     ecx = edi; /* 0x380465DB: mov ecx, edi */
  34654     RECOMP_ICALL(0x38046460u); /* 0x380465DD: call 0x38046460 */ /* not lifted */
  34655     RECOMP_FLAGS_IN();
  34656     PUSH32(esp, edi); /* 0x380465E2: push edi */
  34657     RECOMP_ICALL(0x3804B4F6u); /* 0x380465E3: call 0x3804b4f6 */ /* not lifted */
  34658     RECOMP_FLAGS_IN();
  34659     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  34660     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34661     esp = esp + 4; /* 0x380465E8: add esp, 4 */
  34662     _flag_k = FK_ADD;
  34663 L_380465EB:
  34664     ecx = MEM32(ebp + (-0xC)); /* 0x380465EB: mov ecx, dword ptr [ebp - 0xc] */
  34665     edi = POP32_VAL(esp); /* 0x380465EE: pop edi */
  34666     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  34667     eax = 0; /* 0x380465EF: xor eax, eax */
  34668     _cf = 0;
  34669     _flag_k = FK_TEST;
  34670     esi = POP32_VAL(esp); /* 0x380465F1: pop esi */
  34671     MEM32(FS_BASE + (0)) = ecx; /* 0x380465F2: mov dword ptr fs:[0], ecx */
  34672     esp = ebp; /* 0x380465F9: mov esp, ebp */
  34673     ebp = POP32_VAL(esp); /* 0x380465FB: pop ebp */
  34674     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380465FC: ret  */
  34675     RECOMP_REGS_OUT();
  34676 }
  34677 
  34678 void sub_38034A10(void) {
  34679     int _fpu_cmp = 0;
  34680     uint32_t _cf = 0;
  34681     int _df = 1;
  34682     uint32_t _flag_k = FK_NONE;
  34683     uint32_t _flag_a = 0, _flag_b = 0;
  34684     uint32_t _itail_tgt = 0;
  34685     RECOMP_REGS_LOCALS
  34686     RECOMP_ENTER(0x38034A10u);
  34687 
  34688 L_38034A10:
  34689     PUSH32(esp, ebp); /* 0x38034A10: push ebp */
  34690     ebp = esp; /* 0x38034A11: mov ebp, esp */
  34691     eax = MEM32(ebp + 0x8); /* 0x38034A13: mov eax, dword ptr [ebp + 8] */
  34692     PUSH32(esp, eax); /* 0x38034A16: push eax */
  34693     ecx = 0x3806EEE8u; /* 0x38034A17: mov ecx, 0x3806eee8 */
  34694     RECOMP_ICALL(0x38046600u); /* 0x38034A1C: call 0x38046600 */ /* not lifted */
  34695     RECOMP_FLAGS_IN();
  34696     ebp = POP32_VAL(esp); /* 0x38034A21: pop ebp */
  34697     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38034A22: ret  */
  34698     RECOMP_REGS_OUT();
  34699 }
  34700 
  34701 void sub_38034A30(void) {
  34702     int _fpu_cmp = 0;
  34703     uint32_t _cf = 0;
  34704     int _df = 1;
  34705     uint32_t _flag_k = FK_NONE;
  34706     uint32_t _flag_a = 0, _flag_b = 0;
  34707     uint32_t _itail_tgt = 0;
  34708     RECOMP_REGS_LOCALS
  34709     RECOMP_ENTER(0x38034A30u);
  34710 
  34711 L_38034A30:
  34712     RECOMP_ICALL(0x38034A40u); /* 0x38034A30: call 0x38034a40 */ /* not lifted */
  34713     RECOMP_FLAGS_IN();
  34714     goto L_38034A50; /* 0x38034A35: jmp 0x38034a50 */
  34715 L_38034A50:
  34716     PUSH32(esp, 0x38034A60u); /* 0x38034A50: push 0x38034a60 */
  34717     RECOMP_ICALL(0x3804B54Cu); /* 0x38034A55: call 0x3804b54c */ /* not lifted */
  34718     RECOMP_FLAGS_IN();
  34719     ecx = POP32_VAL(esp); /* 0x38034A5A: pop ecx */
  34720     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38034A5B: ret  */
  34721     RECOMP_REGS_OUT();
  34722 }
  34723 
  34724 void sub_38034A40(void) {
  34725     int _fpu_cmp = 0;
  34726     uint32_t _cf = 0;
  34727     int _df = 1;
  34728     uint32_t _flag_k = FK_NONE;
  34729     uint32_t _flag_a = 0, _flag_b = 0;
  34730     uint32_t _itail_tgt = 0;
  34731     RECOMP_REGS_LOCALS
  34732     RECOMP_ENTER(0x38034A40u);
  34733 
  34734 L_38034A40:
  34735     ecx = 0x3806EF09u; /* 0x38034A40: mov ecx, 0x3806ef09 */
  34736 L_38034A45:
  34737     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
  34738     { RECOMP_REGS_OUT(); return; } /* end of function */
  34739   _ljump:
  34740     switch (_itail_tgt) {
  34741       case 0x38034A40u: goto L_38034A40;
  34742       case 0x38034A45u: goto L_38034A45;
  34743       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  34744     }
  34745     RECOMP_REGS_OUT();
  34746 }
  34747 
  34748 void sub_38034A50(void) {
  34749     int _fpu_cmp = 0;
  34750     uint32_t _cf = 0;
  34751     int _df = 1;
  34752     uint32_t _flag_k = FK_NONE;
  34753     uint32_t _flag_a = 0, _flag_b = 0;
  34754     uint32_t _itail_tgt = 0;
  34755     RECOMP_REGS_LOCALS
  34756     RECOMP_ENTER(0x38034A50u);
  34757 
  34758 L_38034A50:
  34759     PUSH32(esp, 0x38034A60u); /* 0x38034A50: push 0x38034a60 */
  34760     RECOMP_ICALL(0x3804B54Cu); /* 0x38034A55: call 0x3804b54c */ /* not lifted */
  34761     RECOMP_FLAGS_IN();
  34762     ecx = POP32_VAL(esp); /* 0x38034A5A: pop ecx */
  34763     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38034A5B: ret  */
  34764     RECOMP_REGS_OUT();
  34765 }
  34766 
  34767 void sub_38034A60(void) {
  34768     int _fpu_cmp = 0;
  34769     uint32_t _cf = 0;
  34770     int _df = 1;
  34771     uint32_t _flag_k = FK_NONE;
  34772     uint32_t _flag_a = 0, _flag_b = 0;
  34773     uint32_t _itail_tgt = 0;
  34774     RECOMP_REGS_LOCALS
  34775     RECOMP_ENTER(0x38034A60u);
  34776 
  34777 L_38034A60:
  34778     ecx = 0x3806EF09u; /* 0x38034A60: mov ecx, 0x3806ef09 */
  34779 L_38034A65:
  34780     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
  34781     { RECOMP_REGS_OUT(); return; } /* end of function */
  34782   _ljump:
  34783     switch (_itail_tgt) {
  34784       case 0x38034A60u: goto L_38034A60;
  34785       case 0x38034A65u: goto L_38034A65;
  34786       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  34787     }
  34788     RECOMP_REGS_OUT();
  34789 }
  34790 
  34791 void sub_38034A70(void) {
  34792     int _fpu_cmp = 0;
  34793     uint32_t _cf = 0;
  34794     int _df = 1;
  34795     uint32_t _flag_k = FK_NONE;
  34796     uint32_t _flag_a = 0, _flag_b = 0;
  34797     uint32_t _itail_tgt = 0;
  34798     RECOMP_REGS_LOCALS
  34799     RECOMP_ENTER(0x38034A70u);
  34800 
  34801 L_38034A70:
  34802     RECOMP_ICALL(0x38034A80u); /* 0x38034A70: call 0x38034a80 */ /* not lifted */
  34803     RECOMP_FLAGS_IN();
  34804     goto L_38034A90; /* 0x38034A75: jmp 0x38034a90 */
  34805 L_38034A90:
  34806     PUSH32(esp, 0x38034AA0u); /* 0x38034A90: push 0x38034aa0 */
  34807     RECOMP_ICALL(0x3804B54Cu); /* 0x38034A95: call 0x3804b54c */ /* not lifted */
  34808     RECOMP_FLAGS_IN();
  34809     ecx = POP32_VAL(esp); /* 0x38034A9A: pop ecx */
  34810     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38034A9B: ret  */
  34811     RECOMP_REGS_OUT();
  34812 }
  34813 
  34814 void sub_38034A80(void) {
  34815     int _fpu_cmp = 0;
  34816     uint32_t _cf = 0;
  34817     int _df = 1;
  34818     uint32_t _flag_k = FK_NONE;
  34819     uint32_t _flag_a = 0, _flag_b = 0;
  34820     uint32_t _itail_tgt = 0;
  34821     RECOMP_REGS_LOCALS
  34822     RECOMP_ENTER(0x38034A80u);
  34823 
  34824 L_38034A80:
  34825     ecx = 0x3806EF08u; /* 0x38034A80: mov ecx, 0x3806ef08 */
  34826 L_38034A85:
  34827     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
  34828     { RECOMP_REGS_OUT(); return; } /* end of function */
  34829   _ljump:
  34830     switch (_itail_tgt) {
  34831       case 0x38034A80u: goto L_38034A80;
  34832       case 0x38034A85u: goto L_38034A85;
  34833       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  34834     }
  34835     RECOMP_REGS_OUT();
  34836 }
  34837 
  34838 void sub_38034A90(void) {
  34839     int _fpu_cmp = 0;
  34840     uint32_t _cf = 0;
  34841     int _df = 1;
  34842     uint32_t _flag_k = FK_NONE;
  34843     uint32_t _flag_a = 0, _flag_b = 0;
  34844     uint32_t _itail_tgt = 0;
  34845     RECOMP_REGS_LOCALS
  34846     RECOMP_ENTER(0x38034A90u);
  34847 
  34848 L_38034A90:
  34849     PUSH32(esp, 0x38034AA0u); /* 0x38034A90: push 0x38034aa0 */
  34850     RECOMP_ICALL(0x3804B54Cu); /* 0x38034A95: call 0x3804b54c */ /* not lifted */
  34851     RECOMP_FLAGS_IN();
  34852     ecx = POP32_VAL(esp); /* 0x38034A9A: pop ecx */
  34853     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38034A9B: ret  */
  34854     RECOMP_REGS_OUT();
  34855 }
  34856 
  34857 void sub_38034AA0(void) {
  34858     int _fpu_cmp = 0;
  34859     uint32_t _cf = 0;
  34860     int _df = 1;
  34861     uint32_t _flag_k = FK_NONE;
  34862     uint32_t _flag_a = 0, _flag_b = 0;
  34863     uint32_t _itail_tgt = 0;
  34864     RECOMP_REGS_LOCALS
  34865     RECOMP_ENTER(0x38034AA0u);
  34866 
  34867 L_38034AA0:
  34868     ecx = 0x3806EF08u; /* 0x38034AA0: mov ecx, 0x3806ef08 */
  34869 L_38034AA5:
  34870     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
  34871     { RECOMP_REGS_OUT(); return; } /* end of function */
  34872   _ljump:
  34873     switch (_itail_tgt) {
  34874       case 0x38034AA0u: goto L_38034AA0;
  34875       case 0x38034AA5u: goto L_38034AA5;
  34876       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  34877     }
  34878     RECOMP_REGS_OUT();
  34879 }
  34880 
  34881 void sub_38034AB0(void) {
  34882     int _fpu_cmp = 0;
  34883     uint32_t _cf = 0;
  34884     int _df = 1;
  34885     uint32_t _flag_k = FK_NONE;
  34886     uint32_t _flag_a = 0, _flag_b = 0;
  34887     uint32_t _itail_tgt = 0;
  34888     RECOMP_REGS_LOCALS
  34889     RECOMP_ENTER(0x38034AB0u);
  34890 
  34891 L_38034AB0:
  34892     eax = MEM32(ecx + 0x34); /* 0x38034AB0: mov eax, dword ptr [ecx + 0x34] */
  34893     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38034AB3: ret  */
  34894     RECOMP_REGS_OUT();
  34895 }
  34896 
  34897 void sub_38034AC0(void) {
  34898     int _fpu_cmp = 0;
  34899     uint32_t _cf = 0;
  34900     int _df = 1;
  34901     uint32_t _flag_k = FK_NONE;
  34902     uint32_t _flag_a = 0, _flag_b = 0;
  34903     uint32_t _itail_tgt = 0;
  34904     RECOMP_REGS_LOCALS
  34905     RECOMP_ENTER(0x38034AC0u);
  34906 
  34907 L_38034AC0:
  34908     PUSH32(esp, ebp); /* 0x38034AC0: push ebp */
  34909     ebp = esp; /* 0x38034AC1: mov ebp, esp */
  34910     PUSH32(esp, 0xFFFFFFFFu); /* 0x38034AC3: push -1 */
  34911     PUSH32(esp, 0x3804CBFEu); /* 0x38034AC5: push 0x3804cbfe */
  34912     eax = MEM32(FS_BASE + (0)); /* 0x38034ACA: mov eax, dword ptr fs:[0] */
  34913     PUSH32(esp, eax); /* 0x38034AD0: push eax */
  34914     MEM32(FS_BASE + (0)) = esp; /* 0x38034AD1: mov dword ptr fs:[0], esp */
  34915     PUSH32(esp, ecx); /* 0x38034AD8: push ecx */
  34916     PUSH32(esp, ebx); /* 0x38034AD9: push ebx */
  34917     PUSH32(esp, esi); /* 0x38034ADA: push esi */
  34918     esi = MEM32(ebp + 0x8); /* 0x38034ADB: mov esi, dword ptr [ebp + 8] */
  34919     PUSH32(esp, edi); /* 0x38034ADE: push edi */
  34920     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  34921     ebx = 0; /* 0x38034ADF: xor ebx, ebx */
  34922     _cf = 0;
  34923     _flag_k = FK_TEST;
  34924     /* cmp esi, ebx */ /* 0x38034AE1: cmp esi, ebx */
  34925     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  34926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34927     _flag_k = FK_CMP;
  34928     edi = ecx; /* 0x38034AE3: mov edi, ecx */
  34929     MEM32(ebp + (-0x10)) = edi; /* 0x38034AE5: mov dword ptr [ebp - 0x10], edi */
  34930     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034AEF; /* 0x38034AE8: je 0x38034aef */
  34931 L_38034AEA:
  34932     eax = MEM32(esi + 0x8); /* 0x38034AEA: mov eax, dword ptr [esi + 8] */
  34933     goto L_38034AF1; /* 0x38034AED: jmp 0x38034af1 */
  34934 L_38034AEF:
  34935     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  34936     eax = 0; /* 0x38034AEF: xor eax, eax */
  34937     _cf = 0;
  34938     _flag_k = FK_TEST;
  34939 L_38034AF1:
  34940     PUSH32(esp, eax); /* 0x38034AF1: push eax */
  34941     ecx = edi; /* 0x38034AF2: mov ecx, edi */
  34942     RECOMP_ICALL(0x38016210u); /* 0x38034AF4: call 0x38016210 */ /* not lifted */
  34943     RECOMP_FLAGS_IN();
  34944     eax = MEM32(ebp + 0xC); /* 0x38034AF9: mov eax, dword ptr [ebp + 0xc] */
  34945     PUSH32(esp, 0x14u); /* 0x38034AFC: push 0x14 */
  34946     MEM32(ebp + (-0x4)) = ebx; /* 0x38034AFE: mov dword ptr [ebp - 4], ebx */
  34947     MEM32(edi + 0x3C) = eax; /* 0x38034B01: mov dword ptr [edi + 0x3c], eax */
  34948     MEM32(edi) = 0x3804F6B8u; /* 0x38034B04: mov dword ptr [edi], 0x3804f6b8 */
  34949     MEM32(edi + 0x20) = 0x3804F6B0u; /* 0x38034B0A: mov dword ptr [edi + 0x20], 0x3804f6b0 */
  34950     MEM32(edi + 0x38) = esi; /* 0x38034B11: mov dword ptr [edi + 0x38], esi */
  34951     RECOMP_ICALL(0x3804B676u); /* 0x38034B14: call 0x3804b676 */ /* not lifted */
  34952     RECOMP_FLAGS_IN();
  34953     esi = eax; /* 0x38034B19: mov esi, eax */
  34954     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  34955     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34956     esp = esp + 4; /* 0x38034B1B: add esp, 4 */
  34957     _flag_k = FK_ADD;
  34958     MEM32(ebp + 0xC) = esi; /* 0x38034B1E: mov dword ptr [ebp + 0xc], esi */
  34959     /* cmp esi, ebx */ /* 0x38034B21: cmp esi, ebx */
  34960     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  34961     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  34962     _flag_k = FK_CMP;
  34963     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x38034B23: mov byte ptr [ebp - 4], 1 */
  34964     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034B86; /* 0x38034B27: je 0x38034b86 */
  34965 L_38034B29:
  34966     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38034B29: mov cl, byte ptr [ebp + 0xb] */
  34967     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x38034B2C: mov dl, byte ptr [ebp + 0xb] */
  34968     PUSH32(esp, 0x18u); /* 0x38034B2F: push 0x18 */
  34969     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x38034B31: mov byte ptr [esi], cl */
  34970     MEM8(esi + 0x1) = (uint8_t)(LO8(edx)); /* 0x38034B33: mov byte ptr [esi + 1], dl */
  34971     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x38034B36: mov byte ptr [esi + 0xc], bl */
  34972     RECOMP_ICALL(0x3804B676u); /* 0x38034B39: call 0x3804b676 */ /* not lifted */
  34973     RECOMP_FLAGS_IN();
  34974     MEM32(eax + 0x4) = ebx; /* 0x38034B3E: mov dword ptr [eax + 4], ebx */
  34975     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x38034B41: mov byte ptr [eax + 0x14], 1 */
  34976     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x38034B45: mov byte ptr [eax + 0x15], bl */
  34977     MEM32(esi + 0x8) = eax; /* 0x38034B48: mov dword ptr [esi + 8], eax */
  34978     MEM8(eax + 0x15) = (uint8_t)(1); /* 0x38034B4B: mov byte ptr [eax + 0x15], 1 */
  34979     eax = MEM32(esi + 0x8); /* 0x38034B4F: mov eax, dword ptr [esi + 8] */
  34980     MEM32(eax) = ebx; /* 0x38034B52: mov dword ptr [eax], ebx */
  34981     eax = MEM32(esi + 0x8); /* 0x38034B54: mov eax, dword ptr [esi + 8] */
  34982     MEM32(eax + 0x8) = ebx; /* 0x38034B57: mov dword ptr [eax + 8], ebx */
  34983     ecx = MEM32(esi + 0x8); /* 0x38034B5A: mov ecx, dword ptr [esi + 8] */
  34984     PUSH32(esp, 0x18u); /* 0x38034B5D: push 0x18 */
  34985     MEM32(ebp + 0x8) = ecx; /* 0x38034B5F: mov dword ptr [ebp + 8], ecx */
  34986     RECOMP_ICALL(0x3804B676u); /* 0x38034B62: call 0x3804b676 */ /* not lifted */
  34987     RECOMP_FLAGS_IN();
  34988     edx = MEM32(ebp + 0x8); /* 0x38034B67: mov edx, dword ptr [ebp + 8] */
  34989     MEM32(eax + 0x4) = edx; /* 0x38034B6A: mov dword ptr [eax + 4], edx */
  34990     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38034B6D: mov byte ptr [eax + 0x14], bl */
  34991     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x38034B70: mov byte ptr [eax + 0x15], bl */
  34992     MEM32(esi + 0x4) = eax; /* 0x38034B73: mov dword ptr [esi + 4], eax */
  34993     MEM32(eax) = eax; /* 0x38034B76: mov dword ptr [eax], eax */
  34994     eax = MEM32(esi + 0x4); /* 0x38034B78: mov eax, dword ptr [esi + 4] */
  34995     MEM32(eax + 0x8) = eax; /* 0x38034B7B: mov dword ptr [eax + 8], eax */
  34996     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  34997     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  34998     esp = esp + 8; /* 0x38034B7E: add esp, 8 */
  34999     _flag_k = FK_ADD;
  35000     MEM32(esi + 0x10) = ebx; /* 0x38034B81: mov dword ptr [esi + 0x10], ebx */
  35001     goto L_38034B88; /* 0x38034B84: jmp 0x38034b88 */
  35002 L_38034B86:
  35003     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  35004     esi = 0; /* 0x38034B86: xor esi, esi */
  35005     _cf = 0;
  35006     _flag_k = FK_TEST;
  35007 L_38034B88:
  35008     PUSH32(esp, 0x14u); /* 0x38034B88: push 0x14 */
  35009     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x38034B8A: mov byte ptr [ebp - 4], bl */
  35010     MEM32(edi + 0x34) = esi; /* 0x38034B8D: mov dword ptr [edi + 0x34], esi */
  35011     RECOMP_ICALL(0x3804B676u); /* 0x38034B90: call 0x3804b676 */ /* not lifted */
  35012     RECOMP_FLAGS_IN();
  35013     esi = eax; /* 0x38034B95: mov esi, eax */
  35014     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  35015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35016     esp = esp + 4; /* 0x38034B97: add esp, 4 */
  35017     _flag_k = FK_ADD;
  35018     MEM32(ebp + 0xC) = esi; /* 0x38034B9A: mov dword ptr [ebp + 0xc], esi */
  35019     /* cmp esi, ebx */ /* 0x38034B9D: cmp esi, ebx */
  35020     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  35021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35022     _flag_k = FK_CMP;
  35023     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x38034B9F: mov byte ptr [ebp - 4], 2 */
  35024     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034C05; /* 0x38034BA3: je 0x38034c05 */
  35025 L_38034BA5:
  35026     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x38034BA5: mov al, byte ptr [ebp + 0xb] */
  35027     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38034BA8: mov cl, byte ptr [ebp + 0xb] */
  35028     PUSH32(esp, 0x18u); /* 0x38034BAB: push 0x18 */
  35029     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x38034BAD: mov byte ptr [esi], al */
  35030     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x38034BAF: mov byte ptr [esi + 1], cl */
  35031     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x38034BB2: mov byte ptr [esi + 0xc], bl */
  35032     RECOMP_ICALL(0x3804B676u); /* 0x38034BB5: call 0x3804b676 */ /* not lifted */
  35033     RECOMP_FLAGS_IN();
  35034     MEM32(eax + 0x4) = ebx; /* 0x38034BBA: mov dword ptr [eax + 4], ebx */
  35035     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x38034BBD: mov byte ptr [eax + 0x14], 1 */
  35036     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x38034BC1: mov byte ptr [eax + 0x15], bl */
  35037     MEM32(esi + 0x8) = eax; /* 0x38034BC4: mov dword ptr [esi + 8], eax */
  35038     MEM8(eax + 0x15) = (uint8_t)(1); /* 0x38034BC7: mov byte ptr [eax + 0x15], 1 */
  35039     edx = MEM32(esi + 0x8); /* 0x38034BCB: mov edx, dword ptr [esi + 8] */
  35040     MEM32(edx) = ebx; /* 0x38034BCE: mov dword ptr [edx], ebx */
  35041     eax = MEM32(esi + 0x8); /* 0x38034BD0: mov eax, dword ptr [esi + 8] */
  35042     MEM32(eax + 0x8) = ebx; /* 0x38034BD3: mov dword ptr [eax + 8], ebx */
  35043     ecx = MEM32(esi + 0x8); /* 0x38034BD6: mov ecx, dword ptr [esi + 8] */
  35044     PUSH32(esp, 0x18u); /* 0x38034BD9: push 0x18 */
  35045     MEM32(ebp + 0x8) = ecx; /* 0x38034BDB: mov dword ptr [ebp + 8], ecx */
  35046     RECOMP_ICALL(0x3804B676u); /* 0x38034BDE: call 0x3804b676 */ /* not lifted */
  35047     RECOMP_FLAGS_IN();
  35048     edx = MEM32(ebp + 0x8); /* 0x38034BE3: mov edx, dword ptr [ebp + 8] */
  35049     MEM32(eax + 0x4) = edx; /* 0x38034BE6: mov dword ptr [eax + 4], edx */
  35050     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38034BE9: mov byte ptr [eax + 0x14], bl */
  35051     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x38034BEC: mov byte ptr [eax + 0x15], bl */
  35052     MEM32(esi + 0x4) = eax; /* 0x38034BEF: mov dword ptr [esi + 4], eax */
  35053     MEM32(eax) = eax; /* 0x38034BF2: mov dword ptr [eax], eax */
  35054     eax = MEM32(esi + 0x4); /* 0x38034BF4: mov eax, dword ptr [esi + 4] */
  35055     MEM32(eax + 0x8) = eax; /* 0x38034BF7: mov dword ptr [eax + 8], eax */
  35056     MEM32(esi + 0x10) = ebx; /* 0x38034BFA: mov dword ptr [esi + 0x10], ebx */
  35057     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  35058     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35059     esp = esp + 8; /* 0x38034BFD: add esp, 8 */
  35060     _flag_k = FK_ADD;
  35061     MEM32(edi + 0x40) = esi; /* 0x38034C00: mov dword ptr [edi + 0x40], esi */
  35062     goto L_38034C08; /* 0x38034C03: jmp 0x38034c08 */
  35063 L_38034C05:
  35064     MEM32(edi + 0x40) = ebx; /* 0x38034C05: mov dword ptr [edi + 0x40], ebx */
  35065 L_38034C08:
  35066     ecx = MEM32(ebp + (-0xC)); /* 0x38034C08: mov ecx, dword ptr [ebp - 0xc] */
  35067     eax = edi; /* 0x38034C0B: mov eax, edi */
  35068     edi = POP32_VAL(esp); /* 0x38034C0D: pop edi */
  35069     esi = POP32_VAL(esp); /* 0x38034C0E: pop esi */
  35070     ebx = POP32_VAL(esp); /* 0x38034C0F: pop ebx */
  35071     MEM32(FS_BASE + (0)) = ecx; /* 0x38034C10: mov dword ptr fs:[0], ecx */
  35072     esp = ebp; /* 0x38034C17: mov esp, ebp */
  35073     ebp = POP32_VAL(esp); /* 0x38034C19: pop ebp */
  35074     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38034C1A: ret 8 */
  35075     RECOMP_REGS_OUT();
  35076 }
  35077 
  35078 void sub_38034C20(void) {
  35079     int _fpu_cmp = 0;
  35080     uint32_t _cf = 0;
  35081     int _df = 1;
  35082     uint32_t _flag_k = FK_NONE;
  35083     uint32_t _flag_a = 0, _flag_b = 0;
  35084     uint32_t _itail_tgt = 0;
  35085     RECOMP_REGS_LOCALS
  35086     RECOMP_ENTER(0x38034C20u);
  35087 
  35088 L_38034C20:
  35089     PUSH32(esp, ebp); /* 0x38034C20: push ebp */
  35090     ebp = esp; /* 0x38034C21: mov ebp, esp */
  35091     PUSH32(esp, ebx); /* 0x38034C23: push ebx */
  35092     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x38034C24: mov bl, byte ptr [ebp + 8] */
  35093     /* test LO8(ebx), 2 */ /* 0x38034C27: test bl, 2 */
  35094     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
  35095     _cf = 0;
  35096     _flag_k = FK_NARROW(FK_TEST, 24);
  35097     PUSH32(esp, esi); /* 0x38034C2A: push esi */
  35098     esi = ecx; /* 0x38034C2B: mov esi, ecx */
  35099     if (TEST_Z(_flag_a, _flag_b)) goto L_38034C5B; /* 0x38034C2D: je 0x38034c5b */
  35100 L_38034C2F:
  35101     eax = MEM32(esi + (-0x4)); /* 0x38034C2F: mov eax, dword ptr [esi - 4] */
  35102     PUSH32(esp, edi); /* 0x38034C32: push edi */
  35103     PUSH32(esp, 0x38034C80u); /* 0x38034C33: push 0x38034c80 */
  35104     edi = esi + (-0x4); /* 0x38034C38: lea edi, [esi - 4] */
  35105     PUSH32(esp, eax); /* 0x38034C3B: push eax */
  35106     PUSH32(esp, 0x44u); /* 0x38034C3C: push 0x44 */
  35107     PUSH32(esp, esi); /* 0x38034C3E: push esi */
  35108     RECOMP_ICALL(0x3804B582u); /* 0x38034C3F: call 0x3804b582 */ /* not lifted */
  35109     RECOMP_FLAGS_IN();
  35110     /* test LO8(ebx), 1 */ /* 0x38034C44: test bl, 1 */
  35111     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  35112     _cf = 0;
  35113     _flag_k = FK_NARROW(FK_TEST, 24);
  35114     if (TEST_Z(_flag_a, _flag_b)) goto L_38034C52; /* 0x38034C47: je 0x38034c52 */
  35115 L_38034C49:
  35116     PUSH32(esp, edi); /* 0x38034C49: push edi */
  35117     RECOMP_ICALL(0x3804B4F6u); /* 0x38034C4A: call 0x3804b4f6 */ /* not lifted */
  35118     RECOMP_FLAGS_IN();
  35119     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  35120     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35121     esp = esp + 4; /* 0x38034C4F: add esp, 4 */
  35122     _flag_k = FK_ADD;
  35123 L_38034C52:
  35124     eax = edi; /* 0x38034C52: mov eax, edi */
  35125     edi = POP32_VAL(esp); /* 0x38034C54: pop edi */
  35126     esi = POP32_VAL(esp); /* 0x38034C55: pop esi */
  35127     ebx = POP32_VAL(esp); /* 0x38034C56: pop ebx */
  35128     ebp = POP32_VAL(esp); /* 0x38034C57: pop ebp */
  35129     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38034C58: ret 4 */
  35130 L_38034C5B:
  35131     ecx = esi; /* 0x38034C5B: mov ecx, esi */
  35132     RECOMP_ICALL(0x38034C80u); /* 0x38034C5D: call 0x38034c80 */ /* not lifted */
  35133     RECOMP_FLAGS_IN();
  35134     /* test LO8(ebx), 1 */ /* 0x38034C62: test bl, 1 */
  35135     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  35136     _cf = 0;
  35137     _flag_k = FK_NARROW(FK_TEST, 24);
  35138     if (TEST_Z(_flag_a, _flag_b)) goto L_38034C70; /* 0x38034C65: je 0x38034c70 */
  35139 L_38034C67:
  35140     PUSH32(esp, esi); /* 0x38034C67: push esi */
  35141     RECOMP_ICALL(0x3804B4F6u); /* 0x38034C68: call 0x3804b4f6 */ /* not lifted */
  35142     RECOMP_FLAGS_IN();
  35143     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  35144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35145     esp = esp + 4; /* 0x38034C6D: add esp, 4 */
  35146     _flag_k = FK_ADD;
  35147 L_38034C70:
  35148     eax = esi; /* 0x38034C70: mov eax, esi */
  35149     esi = POP32_VAL(esp); /* 0x38034C72: pop esi */
  35150     ebx = POP32_VAL(esp); /* 0x38034C73: pop ebx */
  35151     ebp = POP32_VAL(esp); /* 0x38034C74: pop ebp */
  35152     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38034C75: ret 4 */
  35153     RECOMP_REGS_OUT();
  35154 }
  35155 
  35156 void sub_38034C80(void) {
  35157     int _fpu_cmp = 0;
  35158     uint32_t _cf = 0;
  35159     int _df = 1;
  35160     uint32_t _flag_k = FK_NONE;
  35161     uint32_t _flag_a = 0, _flag_b = 0;
  35162     uint32_t _itail_tgt = 0;
  35163     RECOMP_REGS_LOCALS
  35164     RECOMP_ENTER(0x38034C80u);
  35165 
  35166 L_38034C80:
  35167     PUSH32(esp, ebp); /* 0x38034C80: push ebp */
  35168     ebp = esp; /* 0x38034C81: mov ebp, esp */
  35169     PUSH32(esp, 0xFFFFFFFFu); /* 0x38034C83: push -1 */
  35170     PUSH32(esp, 0x3804CC18u); /* 0x38034C85: push 0x3804cc18 */
  35171     eax = MEM32(FS_BASE + (0)); /* 0x38034C8A: mov eax, dword ptr fs:[0] */
  35172     PUSH32(esp, eax); /* 0x38034C90: push eax */
  35173     MEM32(FS_BASE + (0)) = esp; /* 0x38034C91: mov dword ptr fs:[0], esp */
  35174     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  35175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35176     esp = esp - 8; /* 0x38034C98: sub esp, 8 */
  35177     _flag_k = FK_CMP;
  35178     PUSH32(esp, ebx); /* 0x38034C9B: push ebx */
  35179     PUSH32(esp, esi); /* 0x38034C9C: push esi */
  35180     PUSH32(esp, edi); /* 0x38034C9D: push edi */
  35181     edi = ecx; /* 0x38034C9E: mov edi, ecx */
  35182     MEM32(ebp + (-0x10)) = edi; /* 0x38034CA0: mov dword ptr [ebp - 0x10], edi */
  35183     MEM32(edi) = 0x3804F6B8u; /* 0x38034CA3: mov dword ptr [edi], 0x3804f6b8 */
  35184     MEM32(edi + 0x20) = 0x3804F6B0u; /* 0x38034CA9: mov dword ptr [edi + 0x20], 0x3804f6b0 */
  35185     eax = MEM32(edi + 0x34); /* 0x38034CB0: mov eax, dword ptr [edi + 0x34] */
  35186     ecx = MEM32(eax + 0x4); /* 0x38034CB3: mov ecx, dword ptr [eax + 4] */
  35187     esi = MEM32(ecx); /* 0x38034CB6: mov esi, dword ptr [ecx] */
  35188     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  35189     ebx = 0; /* 0x38034CB8: xor ebx, ebx */
  35190     _cf = 0;
  35191     _flag_k = FK_TEST;
  35192     /* cmp esi, ecx */ /* 0x38034CBA: cmp esi, ecx */
  35193     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  35194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35195     _flag_k = FK_CMP;
  35196     MEM32(ebp + (-0x4)) = ebx; /* 0x38034CBC: mov dword ptr [ebp - 4], ebx */
  35197     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034D02; /* 0x38034CBF: je 0x38034d02 */
  35198 L_38034CC1:
  35199     ecx = MEM32(esi + 0x10); /* 0x38034CC1: mov ecx, dword ptr [esi + 0x10] */
  35200     /* cmp ecx, ebx */ /* 0x38034CC4: cmp ecx, ebx */
  35201     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  35202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35203     _flag_k = FK_CMP;
  35204     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034CCE; /* 0x38034CC6: je 0x38034cce */
  35205 L_38034CC8:
  35206     eax = MEM32(ecx); /* 0x38034CC8: mov eax, dword ptr [ecx] */
  35207     PUSH32(esp, 1); /* 0x38034CCA: push 1 */
  35208     RECOMP_ICALL(MEM32(eax)); /* 0x38034CCC: call dword ptr [eax] */
  35209     RECOMP_FLAGS_IN();
  35210 L_38034CCE:
  35211     eax = MEM32(esi + 0x8); /* 0x38034CCE: mov eax, dword ptr [esi + 8] */
  35212     /* cmp MEM8(eax + 0x15), LO8(ebx) */ /* 0x38034CD1: cmp byte ptr [eax + 0x15], bl */
  35213     _flag_a = (uint32_t)(MEM8(eax + 0x15)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  35214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35215     _flag_k = FK_NARROW(FK_CMP, 24);
  35216     if (CMP_NE(_flag_a, _flag_b)) goto L_38034CE1; /* 0x38034CD4: jne 0x38034ce1 */
  35217 L_38034CD6:
  35218     PUSH32(esp, eax); /* 0x38034CD6: push eax */
  35219     RECOMP_ICALL(0x38035620u); /* 0x38034CD7: call 0x38035620 */ /* not lifted */
  35220     RECOMP_FLAGS_IN();
  35221     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  35222     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35223     esp = esp + 4; /* 0x38034CDC: add esp, 4 */
  35224     _flag_k = FK_ADD;
  35225     goto L_38034CF8; /* 0x38034CDF: jmp 0x38034cf8 */
  35226 L_38034CE1:
  35227     eax = MEM32(esi + 0x4); /* 0x38034CE1: mov eax, dword ptr [esi + 4] */
  35228     /* cmp esi, MEM32(eax + 0x8) */ /* 0x38034CE4: cmp esi, dword ptr [eax + 8] */
  35229     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  35230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35231     _flag_k = FK_CMP;
  35232     if (CMP_NE(_flag_a, _flag_b)) goto L_38034CF3; /* 0x38034CE7: jne 0x38034cf3 */
  35233 L_38034CE9:
  35234     esi = eax; /* 0x38034CE9: mov esi, eax */
  35235     eax = MEM32(eax + 0x4); /* 0x38034CEB: mov eax, dword ptr [eax + 4] */
  35236     /* cmp esi, MEM32(eax + 0x8) */ /* 0x38034CEE: cmp esi, dword ptr [eax + 8] */
  35237     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  35238     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35239     _flag_k = FK_CMP;
  35240     RECOMP_BACKEDGE();
  35241     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034CE9; /* 0x38034CF1: je 0x38034ce9 */
  35242 L_38034CF3:
  35243     /* cmp MEM32(esi + 0x8), eax */ /* 0x38034CF3: cmp dword ptr [esi + 8], eax */
  35244     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  35245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35246     _flag_k = FK_CMP;
  35247     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034CFA; /* 0x38034CF6: je 0x38034cfa */
  35248 L_38034CF8:
  35249     esi = eax; /* 0x38034CF8: mov esi, eax */
  35250 L_38034CFA:
  35251     eax = MEM32(edi + 0x34); /* 0x38034CFA: mov eax, dword ptr [edi + 0x34] */
  35252     /* cmp esi, MEM32(eax + 0x4) */ /* 0x38034CFD: cmp esi, dword ptr [eax + 4] */
  35253     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
  35254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35255     _flag_k = FK_CMP;
  35256     RECOMP_BACKEDGE();
  35257     if (CMP_NE(_flag_a, _flag_b)) goto L_38034CC1; /* 0x38034D00: jne 0x38034cc1 */
  35258 L_38034D02:
  35259     esi = MEM32(edi + 0x34); /* 0x38034D02: mov esi, dword ptr [edi + 0x34] */
  35260     /* cmp esi, ebx */ /* 0x38034D05: cmp esi, ebx */
  35261     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  35262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35263     _flag_k = FK_CMP;
  35264     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034D3F; /* 0x38034D07: je 0x38034d3f */
  35265 L_38034D09:
  35266     eax = MEM32(esi + 0x4); /* 0x38034D09: mov eax, dword ptr [esi + 4] */
  35267     ecx = MEM32(eax); /* 0x38034D0C: mov ecx, dword ptr [eax] */
  35268     PUSH32(esp, eax); /* 0x38034D0E: push eax */
  35269     PUSH32(esp, ecx); /* 0x38034D0F: push ecx */
  35270     ecx = ebp + (-0x14); /* 0x38034D10: lea ecx, [ebp - 0x14] */
  35271     PUSH32(esp, ecx); /* 0x38034D13: push ecx */
  35272     ecx = esi; /* 0x38034D14: mov ecx, esi */
  35273     RECOMP_ICALL(0x38035410u); /* 0x38034D16: call 0x38035410 */ /* not lifted */
  35274     RECOMP_FLAGS_IN();
  35275     eax = MEM32(esi + 0x4); /* 0x38034D1B: mov eax, dword ptr [esi + 4] */
  35276     PUSH32(esp, eax); /* 0x38034D1E: push eax */
  35277     RECOMP_ICALL(0x3804B4F6u); /* 0x38034D1F: call 0x3804b4f6 */ /* not lifted */
  35278     RECOMP_FLAGS_IN();
  35279     eax = MEM32(esi + 0x8); /* 0x38034D24: mov eax, dword ptr [esi + 8] */
  35280     PUSH32(esp, eax); /* 0x38034D27: push eax */
  35281     MEM32(esi + 0x4) = ebx; /* 0x38034D28: mov dword ptr [esi + 4], ebx */
  35282     MEM32(esi + 0x10) = ebx; /* 0x38034D2B: mov dword ptr [esi + 0x10], ebx */
  35283     RECOMP_ICALL(0x3804B4F6u); /* 0x38034D2E: call 0x3804b4f6 */ /* not lifted */
  35284     RECOMP_FLAGS_IN();
  35285     PUSH32(esp, esi); /* 0x38034D33: push esi */
  35286     MEM32(esi + 0x8) = ebx; /* 0x38034D34: mov dword ptr [esi + 8], ebx */
  35287     RECOMP_ICALL(0x3804B4F6u); /* 0x38034D37: call 0x3804b4f6 */ /* not lifted */
  35288     RECOMP_FLAGS_IN();
  35289     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  35290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35291     esp = esp + 0xCu; /* 0x38034D3C: add esp, 0xc */
  35292     _flag_k = FK_ADD;
  35293 L_38034D3F:
  35294     esi = MEM32(edi + 0x40); /* 0x38034D3F: mov esi, dword ptr [edi + 0x40] */
  35295     /* cmp esi, ebx */ /* 0x38034D42: cmp esi, ebx */
  35296     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  35297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35298     _flag_k = FK_CMP;
  35299     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034D7C; /* 0x38034D44: je 0x38034d7c */
  35300 L_38034D46:
  35301     eax = MEM32(esi + 0x4); /* 0x38034D46: mov eax, dword ptr [esi + 4] */
  35302     ecx = MEM32(eax); /* 0x38034D49: mov ecx, dword ptr [eax] */
  35303     PUSH32(esp, eax); /* 0x38034D4B: push eax */
  35304     PUSH32(esp, ecx); /* 0x38034D4C: push ecx */
  35305     edx = ebp + (-0x14); /* 0x38034D4D: lea edx, [ebp - 0x14] */
  35306     PUSH32(esp, edx); /* 0x38034D50: push edx */
  35307     ecx = esi; /* 0x38034D51: mov ecx, esi */
  35308     RECOMP_ICALL(0x380354E0u); /* 0x38034D53: call 0x380354e0 */ /* not lifted */
  35309     RECOMP_FLAGS_IN();
  35310     eax = MEM32(esi + 0x4); /* 0x38034D58: mov eax, dword ptr [esi + 4] */
  35311     PUSH32(esp, eax); /* 0x38034D5B: push eax */
  35312     RECOMP_ICALL(0x3804B4F6u); /* 0x38034D5C: call 0x3804b4f6 */ /* not lifted */
  35313     RECOMP_FLAGS_IN();
  35314     eax = MEM32(esi + 0x8); /* 0x38034D61: mov eax, dword ptr [esi + 8] */
  35315     PUSH32(esp, eax); /* 0x38034D64: push eax */
  35316     MEM32(esi + 0x4) = ebx; /* 0x38034D65: mov dword ptr [esi + 4], ebx */
  35317     MEM32(esi + 0x10) = ebx; /* 0x38034D68: mov dword ptr [esi + 0x10], ebx */
  35318     RECOMP_ICALL(0x3804B4F6u); /* 0x38034D6B: call 0x3804b4f6 */ /* not lifted */
  35319     RECOMP_FLAGS_IN();
  35320     PUSH32(esp, esi); /* 0x38034D70: push esi */
  35321     MEM32(esi + 0x8) = ebx; /* 0x38034D71: mov dword ptr [esi + 8], ebx */
  35322     RECOMP_ICALL(0x3804B4F6u); /* 0x38034D74: call 0x3804b4f6 */ /* not lifted */
  35323     RECOMP_FLAGS_IN();
  35324     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  35325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35326     esp = esp + 0xCu; /* 0x38034D79: add esp, 0xc */
  35327     _flag_k = FK_ADD;
  35328 L_38034D7C:
  35329     MEM32(edi + 0x40) = ebx; /* 0x38034D7C: mov dword ptr [edi + 0x40], ebx */
  35330     eax = MEM32(0x3804E7B0); /* 0x38034D7F: mov eax, dword ptr [0x3804e7b0] */
  35331     ecx = edi; /* 0x38034D84: mov ecx, edi */
  35332     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38034D86: mov dword ptr [ebp - 4], 0xffffffff */
  35333     MEM32(edi) = eax; /* 0x38034D8D: mov dword ptr [edi], eax */
  35334     RECOMP_ICALL(MEM32(0x3804E7B4)); /* 0x38034D8F: call dword ptr [0x3804e7b4] */
  35335     RECOMP_FLAGS_IN();
  35336     ecx = MEM32(ebp + (-0xC)); /* 0x38034D95: mov ecx, dword ptr [ebp - 0xc] */
  35337     edi = POP32_VAL(esp); /* 0x38034D98: pop edi */
  35338     esi = POP32_VAL(esp); /* 0x38034D99: pop esi */
  35339     ebx = POP32_VAL(esp); /* 0x38034D9A: pop ebx */
  35340     MEM32(FS_BASE + (0)) = ecx; /* 0x38034D9B: mov dword ptr fs:[0], ecx */
  35341     esp = ebp; /* 0x38034DA2: mov esp, ebp */
  35342     ebp = POP32_VAL(esp); /* 0x38034DA4: pop ebp */
  35343     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38034DA5: ret  */
  35344     RECOMP_REGS_OUT();
  35345 }
  35346 
  35347 void sub_38034DB0(void) {
  35348     int _fpu_cmp = 0;
  35349     uint32_t _cf = 0;
  35350     int _df = 1;
  35351     uint32_t _flag_k = FK_NONE;
  35352     uint32_t _flag_a = 0, _flag_b = 0;
  35353     uint32_t _itail_tgt = 0;
  35354     RECOMP_REGS_LOCALS
  35355     RECOMP_ENTER(0x38034DB0u);
  35356 
  35357 L_38034DB0:
  35358     PUSH32(esp, ebp); /* 0x38034DB0: push ebp */
  35359     ebp = esp; /* 0x38034DB1: mov ebp, esp */
  35360     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  35361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35362     esp = esp - 8; /* 0x38034DB3: sub esp, 8 */
  35363     _flag_k = FK_CMP;
  35364     eax = MEM32(ebp + 0x8); /* 0x38034DB6: mov eax, dword ptr [ebp + 8] */
  35365     PUSH32(esp, esi); /* 0x38034DB9: push esi */
  35366     PUSH32(esp, edi); /* 0x38034DBA: push edi */
  35367     esi = ecx; /* 0x38034DBB: mov esi, ecx */
  35368     PUSH32(esp, eax); /* 0x38034DBD: push eax */
  35369     RECOMP_ICALL(0x38035110u); /* 0x38034DBE: call 0x38035110 */ /* not lifted */
  35370     RECOMP_FLAGS_IN();
  35371     edi = MEM32(esi + 0x34); /* 0x38034DC3: mov edi, dword ptr [esi + 0x34] */
  35372     ecx = ebp + 0x8; /* 0x38034DC6: lea ecx, [ebp + 8] */
  35373     PUSH32(esp, ecx); /* 0x38034DC9: push ecx */
  35374     ecx = edi; /* 0x38034DCA: mov ecx, edi */
  35375     RECOMP_ICALL(0x3800FE80u); /* 0x38034DCC: call 0x3800fe80 */ /* not lifted */
  35376     RECOMP_FLAGS_IN();
  35377     edi = MEM32(edi + 0x4); /* 0x38034DD1: mov edi, dword ptr [edi + 4] */
  35378     /* cmp eax, edi */ /* 0x38034DD4: cmp eax, edi */
  35379     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  35380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35381     _flag_k = FK_CMP;
  35382     MEM32(ebp + (-0x4)) = eax; /* 0x38034DD6: mov dword ptr [ebp - 4], eax */
  35383     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034DE8; /* 0x38034DD9: je 0x38034de8 */
  35384 L_38034DDB:
  35385     edx = MEM32(ebp + 0x8); /* 0x38034DDB: mov edx, dword ptr [ebp + 8] */
  35386     /* cmp edx, MEM32(eax + 0xC) */ /* 0x38034DDE: cmp edx, dword ptr [eax + 0xc] */
  35387     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
  35388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35389     _flag_k = FK_CMP;
  35390     if (CMP_L(_flag_a, _flag_b)) goto L_38034DE8; /* 0x38034DE1: jl 0x38034de8 */
  35391 L_38034DE3:
  35392     eax = ebp + (-0x4); /* 0x38034DE3: lea eax, [ebp - 4] */
  35393     goto L_38034DEE; /* 0x38034DE6: jmp 0x38034dee */
  35394 L_38034DE8:
  35395     MEM32(ebp + (-0x8)) = edi; /* 0x38034DE8: mov dword ptr [ebp - 8], edi */
  35396     eax = ebp + (-0x8); /* 0x38034DEB: lea eax, [ebp - 8] */
  35397 L_38034DEE:
  35398     edi = MEM32(eax); /* 0x38034DEE: mov edi, dword ptr [eax] */
  35399     ecx = MEM32(edi + 0x10); /* 0x38034DF0: mov ecx, dword ptr [edi + 0x10] */
  35400     /* test ecx, ecx */ /* 0x38034DF3: test ecx, ecx */
  35401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  35402     _cf = 0;
  35403     _flag_k = FK_TEST;
  35404     if (TEST_Z(_flag_a, _flag_b)) goto L_38034DFD; /* 0x38034DF5: je 0x38034dfd */
  35405 L_38034DF7:
  35406     eax = MEM32(ecx); /* 0x38034DF7: mov eax, dword ptr [ecx] */
  35407     PUSH32(esp, 1); /* 0x38034DF9: push 1 */
  35408     RECOMP_ICALL(MEM32(eax)); /* 0x38034DFB: call dword ptr [eax] */
  35409     RECOMP_FLAGS_IN();
  35410 L_38034DFD:
  35411     PUSH32(esp, edi); /* 0x38034DFD: push edi */
  35412     ecx = ebp + (-0x8); /* 0x38034DFE: lea ecx, [ebp - 8] */
  35413     PUSH32(esp, ecx); /* 0x38034E01: push ecx */
  35414     ecx = MEM32(esi + 0x34); /* 0x38034E02: mov ecx, dword ptr [esi + 0x34] */
  35415     RECOMP_ICALL(0x3800F9D0u); /* 0x38034E05: call 0x3800f9d0 */ /* not lifted */
  35416     RECOMP_FLAGS_IN();
  35417     edx = MEM32(ebp + 0x8); /* 0x38034E0A: mov edx, dword ptr [ebp + 8] */
  35418     ecx = MEM32(esi + 0x38); /* 0x38034E0D: mov ecx, dword ptr [esi + 0x38] */
  35419     PUSH32(esp, edx); /* 0x38034E10: push edx */
  35420     RECOMP_ICALL(0x3802A000u); /* 0x38034E11: call 0x3802a000 */ /* not lifted */
  35421     RECOMP_FLAGS_IN();
  35422     PUSH32(esp, 0); /* 0x38034E16: push 0 */
  35423     ecx = eax; /* 0x38034E18: mov ecx, eax */
  35424     RECOMP_ICALL(0x3803EE20u); /* 0x38034E1A: call 0x3803ee20 */ /* not lifted */
  35425     RECOMP_FLAGS_IN();
  35426     eax = MEM32(ebp + 0x8); /* 0x38034E1F: mov eax, dword ptr [ebp + 8] */
  35427     ecx = MEM32(esi + 0x3C); /* 0x38034E22: mov ecx, dword ptr [esi + 0x3c] */
  35428     PUSH32(esp, eax); /* 0x38034E25: push eax */
  35429     RECOMP_ICALL(0x3800EBE0u); /* 0x38034E26: call 0x3800ebe0 */ /* not lifted */
  35430     RECOMP_FLAGS_IN();
  35431     ecx = MEM32(esi + 0x38); /* 0x38034E2B: mov ecx, dword ptr [esi + 0x38] */
  35432     eax = MEM32(ebp + 0x8); /* 0x38034E2E: mov eax, dword ptr [ebp + 8] */
  35433     edx = MEM32(ecx); /* 0x38034E31: mov edx, dword ptr [ecx] */
  35434     PUSH32(esp, eax); /* 0x38034E33: push eax */
  35435     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x38034E34: call dword ptr [edx + 0x40] */
  35436     RECOMP_FLAGS_IN();
  35437     edi = POP32_VAL(esp); /* 0x38034E37: pop edi */
  35438     esi = POP32_VAL(esp); /* 0x38034E38: pop esi */
  35439     esp = ebp; /* 0x38034E39: mov esp, ebp */
  35440     ebp = POP32_VAL(esp); /* 0x38034E3B: pop ebp */
  35441     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38034E3C: ret 4 */
  35442     RECOMP_REGS_OUT();
  35443 }
  35444 
  35445 void sub_38034E40(void) {
  35446     int _fpu_cmp = 0;
  35447     uint32_t _cf = 0;
  35448     int _df = 1;
  35449     uint32_t _flag_k = FK_NONE;
  35450     uint32_t _flag_a = 0, _flag_b = 0;
  35451     uint32_t _itail_tgt = 0;
  35452     RECOMP_REGS_LOCALS
  35453     RECOMP_ENTER(0x38034E40u);
  35454 
  35455 L_38034E40:
  35456     PUSH32(esp, ebp); /* 0x38034E40: push ebp */
  35457     ebp = esp; /* 0x38034E41: mov ebp, esp */
  35458     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
  35459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35460     esp = esp - 0x20u; /* 0x38034E43: sub esp, 0x20 */
  35461     _flag_k = FK_CMP;
  35462     PUSH32(esp, ebx); /* 0x38034E46: push ebx */
  35463     PUSH32(esp, esi); /* 0x38034E47: push esi */
  35464     esi = ecx; /* 0x38034E48: mov esi, ecx */
  35465     ecx = MEM32(esi + 0x38); /* 0x38034E4A: mov ecx, dword ptr [esi + 0x38] */
  35466     PUSH32(esp, edi); /* 0x38034E4D: push edi */
  35467     RECOMP_ICALL(0x38029E80u); /* 0x38034E4E: call 0x38029e80 */ /* not lifted */
  35468     RECOMP_FLAGS_IN();
  35469     ebx = MEM32(ebp + 0x8); /* 0x38034E53: mov ebx, dword ptr [ebp + 8] */
  35470     ecx = MEM32(esi + 0x38); /* 0x38034E56: mov ecx, dword ptr [esi + 0x38] */
  35471     PUSH32(esp, ebx); /* 0x38034E59: push ebx */
  35472     RECOMP_ICALL(0x3802B990u); /* 0x38034E5A: call 0x3802b990 */ /* not lifted */
  35473     RECOMP_FLAGS_IN();
  35474     ecx = MEM32(esi + 0x38); /* 0x38034E5F: mov ecx, dword ptr [esi + 0x38] */
  35475     PUSH32(esp, eax); /* 0x38034E62: push eax */
  35476     MEM32(ebp + (-0x4)) = eax; /* 0x38034E63: mov dword ptr [ebp - 4], eax */
  35477     RECOMP_ICALL(0x38029E80u); /* 0x38034E66: call 0x38029e80 */ /* not lifted */
  35478     RECOMP_FLAGS_IN();
  35479     PUSH32(esp, eax); /* 0x38034E6B: push eax */
  35480     RECOMP_ICALL(0x3801FA00u); /* 0x38034E6C: call 0x3801fa00 */ /* not lifted */
  35481     RECOMP_FLAGS_IN();
  35482     edi = eax; /* 0x38034E71: mov edi, eax */
  35483     eax = MEM32(ebp + (-0x4)); /* 0x38034E73: mov eax, dword ptr [ebp - 4] */
  35484     ecx = MEM32(eax + 0x44); /* 0x38034E76: mov ecx, dword ptr [eax + 0x44] */
  35485     MEM32(ebp + (-0x10)) = ecx; /* 0x38034E79: mov dword ptr [ebp - 0x10], ecx */
  35486     MEM32(ebp + (-0xC)) = 0; /* 0x38034E7C: mov dword ptr [ebp - 0xc], 0 */
  35487     fp_push_i64((int64_t)MEM64(ebp + (-0x10))); /* 0x38034E83: fild qword ptr [ebp - 0x10] */
  35488     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  35489     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35490     esp = esp + 8; /* 0x38034E86: add esp, 8 */
  35491     _flag_k = FK_ADD;
  35492     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x38034E89: fmul dword ptr [0x3804eac0] */
  35493     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x38034E8F: fcom dword ptr [0x3804e8e4] */
  35494     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034E95: fnstsw ax */
  35495     /* test HI8(eax), 1 */ /* 0x38034E97: test ah, 1 */
  35496     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  35497     _cf = 0;
  35498     _flag_k = FK_NARROW(FK_TEST, 24);
  35499     if (TEST_NZ(_flag_a, _flag_b)) goto L_38034EB1; /* 0x38034E9A: jne 0x38034eb1 */
  35500 L_38034E9C:
  35501     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x38034E9C: fcom qword ptr [0x3804e8f8] */
  35502     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38034EA2: fnstsw ax */
  35503     /* test HI8(eax), 1 */ /* 0x38034EA4: test ah, 1 */
  35504     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  35505     _cf = 0;
  35506     _flag_k = FK_NARROW(FK_TEST, 24);
  35507     if (TEST_Z(_flag_a, _flag_b)) goto L_38034EB1; /* 0x38034EA7: je 0x38034eb1 */
  35508 L_38034EA9:
  35509     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x38034EA9: fmul dword ptr [0x3804e8bc] */
  35510     goto L_38034ED2; /* 0x38034EAF: jmp 0x38034ed2 */
  35511 L_38034EB1:
  35512     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x38034EB1: fmul dword ptr [0x3804e8f4] */
  35513     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  35514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35515     esp = esp - 8; /* 0x38034EB7: sub esp, 8 */
  35516     _flag_k = FK_CMP;
  35517     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x38034EBA: fst dword ptr [ebp + 8] */
  35518     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x38034EBD: fstp qword ptr [esp] */
  35519     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x38034EC0: call dword ptr [0x3804e0ac] */
  35520     RECOMP_FLAGS_IN();
  35521     _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x38034EC6: fsubr dword ptr [ebp + 8] */
  35522     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  35523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35524     esp = esp + 8; /* 0x38034EC9: add esp, 8 */
  35525     _flag_k = FK_ADD;
  35526     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x38034ECC: fmul dword ptr [0x3804e8f0] */
  35527 L_38034ED2:
  35528     fp_push(_st[0]); /* 0x38034ED2: fld st(0) */
  35529     eax = MEM32(ebp + (-0x4)); /* 0x38034ED4: mov eax, dword ptr [ebp - 4] */
  35530     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x38034ED7: fsin  */
  35531     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u);
  35532     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35533     eax = eax + 0x54u; /* 0x38034ED9: add eax, 0x54 */
  35534     _flag_k = FK_ADD;
  35535     ecx = edi + 0x78; /* 0x38034EDC: lea ecx, [edi + 0x78] */
  35536     PUSH32(esp, 1); /* 0x38034EDF: push 1 */
  35537     PUSH32(esp, 1); /* 0x38034EE1: push 1 */
  35538     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38034EE3: fld dword ptr [0x3804e8e4] */
  35539     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x38034EE9: fst dword ptr [ebp + 8] */
  35540     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x38034EEC: fstp dword ptr [ebp - 0x20] */
  35541     edx = MEM32(ebp + 0x8); /* 0x38034EEF: mov edx, dword ptr [ebp + 8] */
  35542     MEM32(ebp + (-0x18)) = edx; /* 0x38034EF2: mov dword ptr [ebp - 0x18], edx */
  35543     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x38034EF5: fstp dword ptr [ebp - 0x1c] */
  35544     edx = MEM32(eax); /* 0x38034EF8: mov edx, dword ptr [eax] */
  35545     MEM32(ecx) = edx; /* 0x38034EFA: mov dword ptr [ecx], edx */
  35546     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x38034EFC: fcos  */
  35547     edx = MEM32(eax + 0x4); /* 0x38034EFE: mov edx, dword ptr [eax + 4] */
  35548     MEM32(ecx + 0x4) = edx; /* 0x38034F01: mov dword ptr [ecx + 4], edx */
  35549     eax = MEM32(eax + 0x8); /* 0x38034F04: mov eax, dword ptr [eax + 8] */
  35550     edx = MEM32(edi); /* 0x38034F07: mov edx, dword ptr [edi] */
  35551     MEM32(ecx + 0x8) = eax; /* 0x38034F09: mov dword ptr [ecx + 8], eax */
  35552     ecx = edi; /* 0x38034F0C: mov ecx, edi */
  35553     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x38034F0E: fstp dword ptr [ebp - 0x14] */
  35554     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x38034F11: call dword ptr [edx + 0x2c] */
  35555     RECOMP_FLAGS_IN();
  35556     ecx = MEM32(ebp + (-0x20)); /* 0x38034F14: mov ecx, dword ptr [ebp - 0x20] */
  35557     edx = MEM32(ebp + (-0x1C)); /* 0x38034F17: mov edx, dword ptr [ebp - 0x1c] */
  35558     eax = edi + 0x84; /* 0x38034F1A: lea eax, [edi + 0x84] */
  35559     MEM32(eax) = ecx; /* 0x38034F20: mov dword ptr [eax], ecx */
  35560     ecx = MEM32(ebp + (-0x18)); /* 0x38034F22: mov ecx, dword ptr [ebp - 0x18] */
  35561     MEM32(eax + 0x4) = edx; /* 0x38034F25: mov dword ptr [eax + 4], edx */
  35562     edx = MEM32(ebp + (-0x14)); /* 0x38034F28: mov edx, dword ptr [ebp - 0x14] */
  35563     MEM32(eax + 0x8) = ecx; /* 0x38034F2B: mov dword ptr [eax + 8], ecx */
  35564     PUSH32(esp, 1); /* 0x38034F2E: push 1 */
  35565     MEM32(eax + 0xC) = edx; /* 0x38034F30: mov dword ptr [eax + 0xc], edx */
  35566     eax = MEM32(edi); /* 0x38034F33: mov eax, dword ptr [edi] */
  35567     PUSH32(esp, 2); /* 0x38034F35: push 2 */
  35568     ecx = edi; /* 0x38034F37: mov ecx, edi */
  35569     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x38034F39: call dword ptr [eax + 0x2c] */
  35570     RECOMP_FLAGS_IN();
  35571     ecx = edi; /* 0x38034F3C: mov ecx, edi */
  35572     RECOMP_ICALL(MEM32(0x3804E238)); /* 0x38034F3E: call dword ptr [0x3804e238] */
  35573     RECOMP_FLAGS_IN();
  35574     ecx = MEM32(esi + 0x34); /* 0x38034F44: mov ecx, dword ptr [esi + 0x34] */
  35575     edx = ebp + (-0x10); /* 0x38034F47: lea edx, [ebp - 0x10] */
  35576     PUSH32(esp, edx); /* 0x38034F4A: push edx */
  35577     eax = ebp + (-0x8); /* 0x38034F4B: lea eax, [ebp - 8] */
  35578     PUSH32(esp, eax); /* 0x38034F4E: push eax */
  35579     MEM32(ebp + (-0x10)) = ebx; /* 0x38034F4F: mov dword ptr [ebp - 0x10], ebx */
  35580     MEM32(ebp + (-0xC)) = 0; /* 0x38034F52: mov dword ptr [ebp - 0xc], 0 */
  35581     RECOMP_ICALL(0x3802DA60u); /* 0x38034F59: call 0x3802da60 */ /* not lifted */
  35582     RECOMP_FLAGS_IN();
  35583     ecx = eax; /* 0x38034F5E: mov ecx, eax */
  35584     eax = MEM32(ecx); /* 0x38034F60: mov eax, dword ptr [ecx] */
  35585     edx = MEM32(ecx + 0x4); /* 0x38034F62: mov edx, dword ptr [ecx + 4] */
  35586     MEM32(eax + 0x10) = edi; /* 0x38034F65: mov dword ptr [eax + 0x10], edi */
  35587     ecx = MEM32(esi + 0x38); /* 0x38034F68: mov ecx, dword ptr [esi + 0x38] */
  35588     PUSH32(esp, ebx); /* 0x38034F6B: push ebx */
  35589     MEM32(ebp + (-0x14)) = edx; /* 0x38034F6C: mov dword ptr [ebp - 0x14], edx */
  35590     RECOMP_ICALL(0x3802A000u); /* 0x38034F6F: call 0x3802a000 */ /* not lifted */
  35591     RECOMP_FLAGS_IN();
  35592     edi = eax; /* 0x38034F74: mov edi, eax */
  35593     PUSH32(esp, 0); /* 0x38034F76: push 0 */
  35594     ecx = edi; /* 0x38034F78: mov ecx, edi */
  35595     RECOMP_ICALL(0x3803EDD0u); /* 0x38034F7A: call 0x3803edd0 */ /* not lifted */
  35596     RECOMP_FLAGS_IN();
  35597     eax = MEM32(esi); /* 0x38034F7F: mov eax, dword ptr [esi] */
  35598     ecx = esi; /* 0x38034F81: mov ecx, esi */
  35599     MEM8(ebp + 0x8) = (uint8_t)(0); /* 0x38034F83: mov byte ptr [ebp + 8], 0 */
  35600     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x38034F87: call dword ptr [eax + 4] */
  35601     RECOMP_FLAGS_IN();
  35602     edx = MEM32(esi); /* 0x38034F8A: mov edx, dword ptr [esi] */
  35603     PUSH32(esp, eax); /* 0x38034F8C: push eax */
  35604     ecx = esi; /* 0x38034F8D: mov ecx, esi */
  35605     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x38034F8F: call dword ptr [edx + 0xc] */
  35606     RECOMP_FLAGS_IN();
  35607     ecx = MEM32(esi + 0x38); /* 0x38034F92: mov ecx, dword ptr [esi + 0x38] */
  35608     PUSH32(esp, eax); /* 0x38034F95: push eax */
  35609     RECOMP_ICALL(0x3802B820u); /* 0x38034F96: call 0x3802b820 */ /* not lifted */
  35610     RECOMP_FLAGS_IN();
  35611     /* cmp eax, edi */ /* 0x38034F9B: cmp eax, edi */
  35612     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  35613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35614     _flag_k = FK_CMP;
  35615     if (CMP_NE(_flag_a, _flag_b)) goto L_38034FA3; /* 0x38034F9D: jne 0x38034fa3 */
  35616 L_38034F9F:
  35617     MEM8(ebp + 0x8) = (uint8_t)(1); /* 0x38034F9F: mov byte ptr [ebp + 8], 1 */
  35618 L_38034FA3:
  35619     eax = MEM32(ebp + 0x8); /* 0x38034FA3: mov eax, dword ptr [ebp + 8] */
  35620     ecx = MEM32(esi + 0x3C); /* 0x38034FA6: mov ecx, dword ptr [esi + 0x3c] */
  35621     PUSH32(esp, eax); /* 0x38034FA9: push eax */
  35622     PUSH32(esp, ebx); /* 0x38034FAA: push ebx */
  35623     RECOMP_ICALL(0x3800E9B0u); /* 0x38034FAB: call 0x3800e9b0 */ /* not lifted */
  35624     RECOMP_FLAGS_IN();
  35625     ecx = MEM32(esi + 0x38); /* 0x38034FB0: mov ecx, dword ptr [esi + 0x38] */
  35626     edx = MEM32(ecx); /* 0x38034FB3: mov edx, dword ptr [ecx] */
  35627     PUSH32(esp, ebx); /* 0x38034FB5: push ebx */
  35628     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x38034FB6: call dword ptr [edx + 0x3c] */
  35629     RECOMP_FLAGS_IN();
  35630     edi = POP32_VAL(esp); /* 0x38034FB9: pop edi */
  35631     esi = POP32_VAL(esp); /* 0x38034FBA: pop esi */
  35632     ebx = POP32_VAL(esp); /* 0x38034FBB: pop ebx */
  35633     esp = ebp; /* 0x38034FBC: mov esp, ebp */
  35634     ebp = POP32_VAL(esp); /* 0x38034FBE: pop ebp */
  35635     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38034FBF: ret 4 */
  35636     RECOMP_REGS_OUT();
  35637 }
  35638 
  35639 void sub_38034FD0(void) {
  35640     int _fpu_cmp = 0;
  35641     uint32_t _cf = 0;
  35642     int _df = 1;
  35643     uint32_t _flag_k = FK_NONE;
  35644     uint32_t _flag_a = 0, _flag_b = 0;
  35645     uint32_t _itail_tgt = 0;
  35646     RECOMP_REGS_LOCALS
  35647     RECOMP_ENTER(0x38034FD0u);
  35648 
  35649 L_38034FD0:
  35650     PUSH32(esp, ebp); /* 0x38034FD0: push ebp */
  35651     ebp = esp; /* 0x38034FD1: mov ebp, esp */
  35652     PUSH32(esp, esi); /* 0x38034FD3: push esi */
  35653     PUSH32(esp, edi); /* 0x38034FD4: push edi */
  35654     edi = MEM32(ebp + 0x8); /* 0x38034FD5: mov edi, dword ptr [ebp + 8] */
  35655     /* cmp edi, 0xFFFFFFFFu */ /* 0x38034FD8: cmp edi, -1 */
  35656     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
  35657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35658     _flag_k = FK_CMP;
  35659     esi = ecx; /* 0x38034FDB: mov esi, ecx */
  35660     if (CMP_EQ(_flag_a, _flag_b)) goto L_38034FF0; /* 0x38034FDD: je 0x38034ff0 */
  35661 L_38034FDF:
  35662     PUSH32(esp, edi); /* 0x38034FDF: push edi */
  35663     RECOMP_ICALL(0x38035000u); /* 0x38034FE0: call 0x38035000 */ /* not lifted */
  35664     RECOMP_FLAGS_IN();
  35665     ecx = MEM32(esi + 0x3C); /* 0x38034FE5: mov ecx, dword ptr [esi + 0x3c] */
  35666     PUSH32(esp, 1); /* 0x38034FE8: push 1 */
  35667     PUSH32(esp, edi); /* 0x38034FEA: push edi */
  35668     RECOMP_ICALL(0x3800E9B0u); /* 0x38034FEB: call 0x3800e9b0 */ /* not lifted */
  35669     RECOMP_FLAGS_IN();
  35670 L_38034FF0:
  35671     edi = POP32_VAL(esp); /* 0x38034FF0: pop edi */
  35672     esi = POP32_VAL(esp); /* 0x38034FF1: pop esi */
  35673     ebp = POP32_VAL(esp); /* 0x38034FF2: pop ebp */
  35674     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38034FF3: ret 4 */
  35675     RECOMP_REGS_OUT();
  35676 }
  35677 
  35678 void sub_38035000(void) {
  35679     int _fpu_cmp = 0;
  35680     uint32_t _cf = 0;
  35681     int _df = 1;
  35682     uint32_t _flag_k = FK_NONE;
  35683     uint32_t _flag_a = 0, _flag_b = 0;
  35684     uint32_t _itail_tgt = 0;
  35685     RECOMP_REGS_LOCALS
  35686     RECOMP_ENTER(0x38035000u);
  35687 
  35688 L_38035000:
  35689     PUSH32(esp, ebp); /* 0x38035000: push ebp */
  35690     ebp = esp; /* 0x38035001: mov ebp, esp */
  35691     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  35692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35693     esp = esp - 8; /* 0x38035003: sub esp, 8 */
  35694     _flag_k = FK_CMP;
  35695     PUSH32(esp, ebx); /* 0x38035006: push ebx */
  35696     PUSH32(esp, esi); /* 0x38035007: push esi */
  35697     esi = ecx; /* 0x38035008: mov esi, ecx */
  35698     PUSH32(esp, edi); /* 0x3803500A: push edi */
  35699     edi = MEM32(esi + 0x34); /* 0x3803500B: mov edi, dword ptr [esi + 0x34] */
  35700     eax = ebp + 0x8; /* 0x3803500E: lea eax, [ebp + 8] */
  35701     PUSH32(esp, eax); /* 0x38035011: push eax */
  35702     ecx = edi; /* 0x38035012: mov ecx, edi */
  35703     RECOMP_ICALL(0x3800FE80u); /* 0x38035014: call 0x3800fe80 */ /* not lifted */
  35704     RECOMP_FLAGS_IN();
  35705     edi = MEM32(edi + 0x4); /* 0x38035019: mov edi, dword ptr [edi + 4] */
  35706     /* cmp eax, edi */ /* 0x3803501C: cmp eax, edi */
  35707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  35708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35709     _flag_k = FK_CMP;
  35710     MEM32(ebp + (-0x4)) = eax; /* 0x3803501E: mov dword ptr [ebp - 4], eax */
  35711     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035030; /* 0x38035021: je 0x38035030 */
  35712 L_38035023:
  35713     ecx = MEM32(ebp + 0x8); /* 0x38035023: mov ecx, dword ptr [ebp + 8] */
  35714     /* cmp ecx, MEM32(eax + 0xC) */ /* 0x38035026: cmp ecx, dword ptr [eax + 0xc] */
  35715     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
  35716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35717     _flag_k = FK_CMP;
  35718     if (CMP_L(_flag_a, _flag_b)) goto L_38035030; /* 0x38035029: jl 0x38035030 */
  35719 L_3803502B:
  35720     eax = ebp + (-0x4); /* 0x3803502B: lea eax, [ebp - 4] */
  35721     goto L_38035036; /* 0x3803502E: jmp 0x38035036 */
  35722 L_38035030:
  35723     MEM32(ebp + (-0x8)) = edi; /* 0x38035030: mov dword ptr [ebp - 8], edi */
  35724     eax = ebp + (-0x8); /* 0x38035033: lea eax, [ebp - 8] */
  35725 L_38035036:
  35726     edx = MEM32(esi + 0x34); /* 0x38035036: mov edx, dword ptr [esi + 0x34] */
  35727     eax = MEM32(eax); /* 0x38035039: mov eax, dword ptr [eax] */
  35728     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3803503B: cmp eax, dword ptr [edx + 4] */
  35729     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  35730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35731     _flag_k = FK_CMP;
  35732     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035104; /* 0x3803503E: je 0x38035104 */
  35733 L_38035044:
  35734     ecx = MEM32(eax + 0x10); /* 0x38035044: mov ecx, dword ptr [eax + 0x10] */
  35735     RECOMP_ICALL(MEM32(0x3804E23C)); /* 0x38035047: call dword ptr [0x3804e23c] */
  35736     RECOMP_FLAGS_IN();
  35737     /* cmp LO8(eax), 1 */ /* 0x3803504D: cmp al, 1 */
  35738     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  35739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35740     _flag_k = FK_NARROW(FK_CMP, 24);
  35741     if (CMP_NE(_flag_a, _flag_b)) goto L_38035104; /* 0x3803504F: jne 0x38035104 */
  35742 L_38035055:
  35743     eax = MEM32(ebp + 0x8); /* 0x38035055: mov eax, dword ptr [ebp + 8] */
  35744     ecx = MEM32(esi + 0x38); /* 0x38035058: mov ecx, dword ptr [esi + 0x38] */
  35745     PUSH32(esp, 1); /* 0x3803505B: push 1 */
  35746     PUSH32(esp, eax); /* 0x3803505D: push eax */
  35747     RECOMP_ICALL(0x3802B990u); /* 0x3803505E: call 0x3802b990 */ /* not lifted */
  35748     RECOMP_FLAGS_IN();
  35749     ecx = eax; /* 0x38035063: mov ecx, eax */
  35750     RECOMP_ICALL(0x38030440u); /* 0x38035065: call 0x38030440 */ /* not lifted */
  35751     RECOMP_FLAGS_IN();
  35752     ecx = MEM32(ebp + 0x8); /* 0x3803506A: mov ecx, dword ptr [ebp + 8] */
  35753     PUSH32(esp, 1); /* 0x3803506D: push 1 */
  35754     PUSH32(esp, ecx); /* 0x3803506F: push ecx */
  35755     ecx = MEM32(esi + 0x3C); /* 0x38035070: mov ecx, dword ptr [esi + 0x3c] */
  35756     RECOMP_ICALL(0x3800E9B0u); /* 0x38035073: call 0x3800e9b0 */ /* not lifted */
  35757     RECOMP_FLAGS_IN();
  35758     edx = MEM32(ebp + 0x8); /* 0x38035078: mov edx, dword ptr [ebp + 8] */
  35759     ecx = MEM32(esi + 0x38); /* 0x3803507B: mov ecx, dword ptr [esi + 0x38] */
  35760     PUSH32(esp, edx); /* 0x3803507E: push edx */
  35761     RECOMP_ICALL(0x3802B990u); /* 0x3803507F: call 0x3802b990 */ /* not lifted */
  35762     RECOMP_FLAGS_IN();
  35763     edi = eax; /* 0x38035084: mov edi, eax */
  35764     eax = MEM32(edi + 0x8C); /* 0x38035086: mov eax, dword ptr [edi + 0x8c] */
  35765     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  35766     ebx = 0; /* 0x3803508C: xor ebx, ebx */
  35767     _cf = 0;
  35768     _flag_k = FK_TEST;
  35769     /* cmp eax, ebx */ /* 0x3803508E: cmp eax, ebx */
  35770     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  35771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35772     _flag_k = FK_CMP;
  35773     MEM32(ebp + (-0x4)) = ebx; /* 0x38035090: mov dword ptr [ebp - 4], ebx */
  35774     if (CMP_BE(_flag_a, _flag_b)) goto L_38035104; /* 0x38035093: jbe 0x38035104 */
  35775 L_38035095:
  35776     esi = MEM32(0x3804E118); /* 0x38035095: mov esi, dword ptr [0x3804e118] */
  35777 L_3803509B:
  35778     PUSH32(esp, 0x42u); /* 0x3803509B: push 0x42 */
  35779     RECOMP_ICALL(esi); /* 0x3803509D: call esi */
  35780     RECOMP_FLAGS_IN();
  35781     ecx = eax; /* 0x3803509F: mov ecx, eax */
  35782     RECOMP_ICALL(MEM32(0x3804E124)); /* 0x380350A1: call dword ptr [0x3804e124] */
  35783     RECOMP_FLAGS_IN();
  35784     eax = edi + 0x54; /* 0x380350A7: lea eax, [edi + 0x54] */
  35785     PUSH32(esp, eax); /* 0x380350AA: push eax */
  35786     PUSH32(esp, 0x27Cu); /* 0x380350AB: push 0x27c */
  35787     PUSH32(esp, 0x42u); /* 0x380350B0: push 0x42 */
  35788     RECOMP_ICALL(esi); /* 0x380350B2: call esi */
  35789     RECOMP_FLAGS_IN();
  35790     ecx = eax; /* 0x380350B4: mov ecx, eax */
  35791     RECOMP_ICALL(MEM32(0x3804E110)); /* 0x380350B6: call dword ptr [0x3804e110] */
  35792     RECOMP_FLAGS_IN();
  35793     eax = MEM32(edi + 0x44); /* 0x380350BC: mov eax, dword ptr [edi + 0x44] */
  35794     PUSH32(esp, eax); /* 0x380350BF: push eax */
  35795     RECOMP_ICALL(esi); /* 0x380350C0: call esi */
  35796     RECOMP_FLAGS_IN();
  35797     ecx = eax; /* 0x380350C2: mov ecx, eax */
  35798     RECOMP_ICALL(MEM32(0x3804E10C)); /* 0x380350C4: call dword ptr [0x3804e10c] */
  35799     RECOMP_FLAGS_IN();
  35800     ecx = MEM32(edi + 0x90); /* 0x380350CA: mov ecx, dword ptr [edi + 0x90] */
  35801     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  35802     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35803     ecx = ecx + ebx; /* 0x380350D0: add ecx, ebx */
  35804     _flag_k = FK_ADD;
  35805     PUSH32(esp, ecx); /* 0x380350D2: push ecx */
  35806     PUSH32(esp, 0x27Au); /* 0x380350D3: push 0x27a */
  35807     PUSH32(esp, 0x42u); /* 0x380350D8: push 0x42 */
  35808     RECOMP_ICALL(esi); /* 0x380350DA: call esi */
  35809     RECOMP_FLAGS_IN();
  35810     ecx = eax; /* 0x380350DC: mov ecx, eax */
  35811     RECOMP_ICALL(MEM32(0x3804E120)); /* 0x380350DE: call dword ptr [0x3804e120] */
  35812     RECOMP_FLAGS_IN();
  35813     PUSH32(esp, 0x42u); /* 0x380350E4: push 0x42 */
  35814     RECOMP_ICALL(esi); /* 0x380350E6: call esi */
  35815     RECOMP_FLAGS_IN();
  35816     ecx = eax; /* 0x380350E8: mov ecx, eax */
  35817     RECOMP_ICALL(MEM32(0x3804E11C)); /* 0x380350EA: call dword ptr [0x3804e11c] */
  35818     RECOMP_FLAGS_IN();
  35819     eax = MEM32(ebp + (-0x4)); /* 0x380350F0: mov eax, dword ptr [ebp - 4] */
  35820     ecx = MEM32(edi + 0x8C); /* 0x380350F3: mov ecx, dword ptr [edi + 0x8c] */
  35821     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  35822     eax = eax + 1; /* 0x380350F9: inc eax */
  35823     _flag_k = FK_INC;
  35824     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x28u);
  35825     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35826     ebx = ebx + 0x28u; /* 0x380350FA: add ebx, 0x28 */
  35827     _flag_k = FK_ADD;
  35828     /* cmp eax, ecx */ /* 0x380350FD: cmp eax, ecx */
  35829     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  35830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35831     _flag_k = FK_CMP;
  35832     MEM32(ebp + (-0x4)) = eax; /* 0x380350FF: mov dword ptr [ebp - 4], eax */
  35833     RECOMP_BACKEDGE();
  35834     if (CMP_B(_flag_a, _flag_b)) goto L_3803509B; /* 0x38035102: jb 0x3803509b */
  35835 L_38035104:
  35836     edi = POP32_VAL(esp); /* 0x38035104: pop edi */
  35837     esi = POP32_VAL(esp); /* 0x38035105: pop esi */
  35838     ebx = POP32_VAL(esp); /* 0x38035106: pop ebx */
  35839     esp = ebp; /* 0x38035107: mov esp, ebp */
  35840     ebp = POP32_VAL(esp); /* 0x38035109: pop ebp */
  35841     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3803510A: ret 4 */
  35842     RECOMP_REGS_OUT();
  35843 }
  35844 
  35845 void sub_38035110(void) {
  35846     int _fpu_cmp = 0;
  35847     uint32_t _cf = 0;
  35848     int _df = 1;
  35849     uint32_t _flag_k = FK_NONE;
  35850     uint32_t _flag_a = 0, _flag_b = 0;
  35851     uint32_t _itail_tgt = 0;
  35852     RECOMP_REGS_LOCALS
  35853     RECOMP_ENTER(0x38035110u);
  35854 
  35855 L_38035110:
  35856     PUSH32(esp, ebp); /* 0x38035110: push ebp */
  35857     ebp = esp; /* 0x38035111: mov ebp, esp */
  35858     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  35859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35860     esp = esp - 8; /* 0x38035113: sub esp, 8 */
  35861     _flag_k = FK_CMP;
  35862     PUSH32(esp, esi); /* 0x38035116: push esi */
  35863     esi = ecx; /* 0x38035117: mov esi, ecx */
  35864     PUSH32(esp, edi); /* 0x38035119: push edi */
  35865     edi = MEM32(esi + 0x34); /* 0x3803511A: mov edi, dword ptr [esi + 0x34] */
  35866     eax = ebp + 0x8; /* 0x3803511D: lea eax, [ebp + 8] */
  35867     PUSH32(esp, eax); /* 0x38035120: push eax */
  35868     ecx = edi; /* 0x38035121: mov ecx, edi */
  35869     RECOMP_ICALL(0x3800FE80u); /* 0x38035123: call 0x3800fe80 */ /* not lifted */
  35870     RECOMP_FLAGS_IN();
  35871     edi = MEM32(edi + 0x4); /* 0x38035128: mov edi, dword ptr [edi + 4] */
  35872     /* cmp eax, edi */ /* 0x3803512B: cmp eax, edi */
  35873     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  35874     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35875     _flag_k = FK_CMP;
  35876     MEM32(ebp + (-0x4)) = eax; /* 0x3803512D: mov dword ptr [ebp - 4], eax */
  35877     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803513F; /* 0x38035130: je 0x3803513f */
  35878 L_38035132:
  35879     ecx = MEM32(ebp + 0x8); /* 0x38035132: mov ecx, dword ptr [ebp + 8] */
  35880     /* cmp ecx, MEM32(eax + 0xC) */ /* 0x38035135: cmp ecx, dword ptr [eax + 0xc] */
  35881     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
  35882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35883     _flag_k = FK_CMP;
  35884     if (CMP_L(_flag_a, _flag_b)) goto L_3803513F; /* 0x38035138: jl 0x3803513f */
  35885 L_3803513A:
  35886     eax = ebp + (-0x4); /* 0x3803513A: lea eax, [ebp - 4] */
  35887     goto L_38035145; /* 0x3803513D: jmp 0x38035145 */
  35888 L_3803513F:
  35889     MEM32(ebp + (-0x8)) = edi; /* 0x3803513F: mov dword ptr [ebp - 8], edi */
  35890     eax = ebp + (-0x8); /* 0x38035142: lea eax, [ebp - 8] */
  35891 L_38035145:
  35892     edx = MEM32(esi + 0x34); /* 0x38035145: mov edx, dword ptr [esi + 0x34] */
  35893     eax = MEM32(eax); /* 0x38035148: mov eax, dword ptr [eax] */
  35894     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3803514A: cmp eax, dword ptr [edx + 4] */
  35895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  35896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35897     _flag_k = FK_CMP;
  35898     if (CMP_EQ(_flag_a, _flag_b)) goto L_380351C5; /* 0x3803514D: je 0x380351c5 */
  35899 L_3803514F:
  35900     ecx = MEM32(eax + 0x10); /* 0x3803514F: mov ecx, dword ptr [eax + 0x10] */
  35901     RECOMP_ICALL(MEM32(0x3804E238)); /* 0x38035152: call dword ptr [0x3804e238] */
  35902     RECOMP_FLAGS_IN();
  35903     /* cmp LO8(eax), 1 */ /* 0x38035158: cmp al, 1 */
  35904     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  35905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35906     _flag_k = FK_NARROW(FK_CMP, 24);
  35907     if (CMP_NE(_flag_a, _flag_b)) goto L_380351C5; /* 0x3803515A: jne 0x380351c5 */
  35908 L_3803515C:
  35909     eax = MEM32(ebp + 0x8); /* 0x3803515C: mov eax, dword ptr [ebp + 8] */
  35910     ecx = MEM32(esi + 0x38); /* 0x3803515F: mov ecx, dword ptr [esi + 0x38] */
  35911     PUSH32(esp, eax); /* 0x38035162: push eax */
  35912     RECOMP_ICALL(0x3802B990u); /* 0x38035163: call 0x3802b990 */ /* not lifted */
  35913     RECOMP_FLAGS_IN();
  35914     ecx = eax; /* 0x38035168: mov ecx, eax */
  35915     RECOMP_ICALL(0x38030490u); /* 0x3803516A: call 0x38030490 */ /* not lifted */
  35916     RECOMP_FLAGS_IN();
  35917     ecx = MEM32(ebp + 0x8); /* 0x3803516F: mov ecx, dword ptr [ebp + 8] */
  35918     PUSH32(esp, ecx); /* 0x38035172: push ecx */
  35919     ecx = MEM32(esi + 0x3C); /* 0x38035173: mov ecx, dword ptr [esi + 0x3c] */
  35920     RECOMP_ICALL(0x3800EBE0u); /* 0x38035176: call 0x3800ebe0 */ /* not lifted */
  35921     RECOMP_FLAGS_IN();
  35922     edx = MEM32(ebp + 0x8); /* 0x3803517B: mov edx, dword ptr [ebp + 8] */
  35923     ecx = MEM32(esi + 0x38); /* 0x3803517E: mov ecx, dword ptr [esi + 0x38] */
  35924     PUSH32(esp, edx); /* 0x38035181: push edx */
  35925     RECOMP_ICALL(0x3802B990u); /* 0x38035182: call 0x3802b990 */ /* not lifted */
  35926     RECOMP_FLAGS_IN();
  35927     esi = eax; /* 0x38035187: mov esi, eax */
  35928     eax = MEM32(esi + 0x8C); /* 0x38035189: mov eax, dword ptr [esi + 0x8c] */
  35929     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  35930     edi = 0; /* 0x3803518F: xor edi, edi */
  35931     _cf = 0;
  35932     _flag_k = FK_TEST;
  35933     /* test eax, eax */ /* 0x38035191: test eax, eax */
  35934     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  35935     _cf = 0;
  35936     _flag_k = FK_TEST;
  35937     if (TEST_Z(_flag_a, _flag_b)) goto L_380351C5; /* 0x38035193: jbe 0x380351c5 */
  35938 L_38035195:
  35939     PUSH32(esp, ebx); /* 0x38035195: push ebx */
  35940     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  35941     ebx = 0; /* 0x38035196: xor ebx, ebx */
  35942     _cf = 0;
  35943     _flag_k = FK_TEST;
  35944 L_38035198:
  35945     eax = MEM32(esi + 0x90); /* 0x38035198: mov eax, dword ptr [esi + 0x90] */
  35946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  35947     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35948     eax = eax + ebx; /* 0x3803519E: add eax, ebx */
  35949     _flag_k = FK_ADD;
  35950     PUSH32(esp, eax); /* 0x380351A0: push eax */
  35951     PUSH32(esp, 0x27Bu); /* 0x380351A1: push 0x27b */
  35952     PUSH32(esp, 0x42u); /* 0x380351A6: push 0x42 */
  35953     RECOMP_ICALL(MEM32(0x3804E118)); /* 0x380351A8: call dword ptr [0x3804e118] */
  35954     RECOMP_FLAGS_IN();
  35955     ecx = eax; /* 0x380351AE: mov ecx, eax */
  35956     RECOMP_ICALL(MEM32(0x3804E120)); /* 0x380351B0: call dword ptr [0x3804e120] */
  35957     RECOMP_FLAGS_IN();
  35958     eax = MEM32(esi + 0x8C); /* 0x380351B6: mov eax, dword ptr [esi + 0x8c] */
  35959     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  35960     edi = edi + 1; /* 0x380351BC: inc edi */
  35961     _flag_k = FK_INC;
  35962     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x28u);
  35963     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  35964     ebx = ebx + 0x28u; /* 0x380351BD: add ebx, 0x28 */
  35965     _flag_k = FK_ADD;
  35966     /* cmp edi, eax */ /* 0x380351C0: cmp edi, eax */
  35967     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  35968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  35969     _flag_k = FK_CMP;
  35970     RECOMP_BACKEDGE();
  35971     if (CMP_B(_flag_a, _flag_b)) goto L_38035198; /* 0x380351C2: jb 0x38035198 */
  35972 L_380351C4:
  35973     ebx = POP32_VAL(esp); /* 0x380351C4: pop ebx */
  35974 L_380351C5:
  35975     edi = POP32_VAL(esp); /* 0x380351C5: pop edi */
  35976     esi = POP32_VAL(esp); /* 0x380351C6: pop esi */
  35977     esp = ebp; /* 0x380351C7: mov esp, ebp */
  35978     ebp = POP32_VAL(esp); /* 0x380351C9: pop ebp */
  35979     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380351CA: ret 4 */
  35980     RECOMP_REGS_OUT();
  35981 }
  35982 
  35983 void sub_380351D0(void) {
  35984     int _fpu_cmp = 0;
  35985     uint32_t _cf = 0;
  35986     int _df = 1;
  35987     uint32_t _flag_k = FK_NONE;
  35988     uint32_t _flag_a = 0, _flag_b = 0;
  35989     uint32_t _itail_tgt = 0;
  35990     RECOMP_REGS_LOCALS
  35991     RECOMP_ENTER(0x380351D0u);
  35992 
  35993 L_380351D0:
  35994     PUSH32(esp, ebp); /* 0x380351D0: push ebp */
  35995     ebp = esp; /* 0x380351D1: mov ebp, esp */
  35996     PUSH32(esp, ebx); /* 0x380351D3: push ebx */
  35997     ebx = MEM32(ebp + 0xC); /* 0x380351D4: mov ebx, dword ptr [ebp + 0xc] */
  35998     PUSH32(esp, esi); /* 0x380351D7: push esi */
  35999     esi = ecx; /* 0x380351D8: mov esi, ecx */
  36000     ecx = MEM32(esi + 0x38); /* 0x380351DA: mov ecx, dword ptr [esi + 0x38] */
  36001     eax = MEM32(ecx); /* 0x380351DD: mov eax, dword ptr [ecx] */
  36002     PUSH32(esp, edi); /* 0x380351DF: push edi */
  36003     PUSH32(esp, ebx); /* 0x380351E0: push ebx */
  36004     RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x380351E1: call dword ptr [eax + 0x50] */
  36005     RECOMP_FLAGS_IN();
  36006     ecx = MEM32(esi + 0x40); /* 0x380351E4: mov ecx, dword ptr [esi + 0x40] */
  36007     edi = MEM32(ecx + 0x4); /* 0x380351E7: mov edi, dword ptr [ecx + 4] */
  36008     eax = MEM32(edi); /* 0x380351EA: mov eax, dword ptr [edi] */
  36009     /* cmp eax, edi */ /* 0x380351EC: cmp eax, edi */
  36010     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  36011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36012     _flag_k = FK_CMP;
  36013     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035242; /* 0x380351EE: je 0x38035242 */
  36014 L_380351F0:
  36015     /* cmp MEM32(eax + 0xC), ebx */ /* 0x380351F0: cmp dword ptr [eax + 0xc], ebx */
  36016     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(ebx);
  36017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36018     _flag_k = FK_CMP;
  36019     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035238; /* 0x380351F3: je 0x38035238 */
  36020 L_380351F5:
  36021     edx = MEM32(eax + 0x8); /* 0x380351F5: mov edx, dword ptr [eax + 8] */
  36022     /* cmp MEM8(edx + 0x15), 0 */ /* 0x380351F8: cmp byte ptr [edx + 0x15], 0 */
  36023     _flag_a = (uint32_t)(MEM8(edx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
  36024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36025     _flag_k = FK_NARROW(FK_CMP, 24);
  36026     if (CMP_NE(_flag_a, _flag_b)) goto L_38035214; /* 0x380351FC: jne 0x38035214 */
  36027 L_380351FE:
  36028     eax = edx; /* 0x380351FE: mov eax, edx */
  36029     edx = MEM32(eax); /* 0x38035200: mov edx, dword ptr [eax] */
  36030     /* cmp MEM8(edx + 0x15), 0 */ /* 0x38035202: cmp byte ptr [edx + 0x15], 0 */
  36031     _flag_a = (uint32_t)(MEM8(edx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
  36032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36033     _flag_k = FK_NARROW(FK_CMP, 24);
  36034     if (CMP_NE(_flag_a, _flag_b)) goto L_3803522D; /* 0x38035206: jne 0x3803522d */
  36035 L_38035208:
  36036     eax = edx; /* 0x38035208: mov eax, edx */
  36037     edx = MEM32(eax); /* 0x3803520A: mov edx, dword ptr [eax] */
  36038     /* cmp MEM8(edx + 0x15), 0 */ /* 0x3803520C: cmp byte ptr [edx + 0x15], 0 */
  36039     _flag_a = (uint32_t)(MEM8(edx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
  36040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36041     _flag_k = FK_NARROW(FK_CMP, 24);
  36042     RECOMP_BACKEDGE();
  36043     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035208; /* 0x38035210: je 0x38035208 */
  36044 L_38035212:
  36045     goto L_3803522D; /* 0x38035212: jmp 0x3803522d */
  36046 L_38035214:
  36047     edx = MEM32(eax + 0x4); /* 0x38035214: mov edx, dword ptr [eax + 4] */
  36048     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38035217: cmp eax, dword ptr [edx + 8] */
  36049     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  36050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36051     _flag_k = FK_CMP;
  36052     if (CMP_NE(_flag_a, _flag_b)) goto L_38035226; /* 0x3803521A: jne 0x38035226 */
  36053 L_3803521C:
  36054     eax = edx; /* 0x3803521C: mov eax, edx */
  36055     edx = MEM32(edx + 0x4); /* 0x3803521E: mov edx, dword ptr [edx + 4] */
  36056     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38035221: cmp eax, dword ptr [edx + 8] */
  36057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  36058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36059     _flag_k = FK_CMP;
  36060     RECOMP_BACKEDGE();
  36061     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803521C; /* 0x38035224: je 0x3803521c */
  36062 L_38035226:
  36063     /* cmp MEM32(eax + 0x8), edx */ /* 0x38035226: cmp dword ptr [eax + 8], edx */
  36064     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edx);
  36065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36066     _flag_k = FK_CMP;
  36067     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803522D; /* 0x38035229: je 0x3803522d */
  36068 L_3803522B:
  36069     eax = edx; /* 0x3803522B: mov eax, edx */
  36070 L_3803522D:
  36071     /* cmp eax, edi */ /* 0x3803522D: cmp eax, edi */
  36072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  36073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36074     _flag_k = FK_CMP;
  36075     RECOMP_BACKEDGE();
  36076     if (CMP_NE(_flag_a, _flag_b)) goto L_380351F0; /* 0x3803522F: jne 0x380351f0 */
  36077 L_38035231:
  36078     edi = POP32_VAL(esp); /* 0x38035231: pop edi */
  36079     esi = POP32_VAL(esp); /* 0x38035232: pop esi */
  36080     ebx = POP32_VAL(esp); /* 0x38035233: pop ebx */
  36081     ebp = POP32_VAL(esp); /* 0x38035234: pop ebp */
  36082     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38035235: ret 8 */
  36083 L_38035238:
  36084     PUSH32(esp, eax); /* 0x38035238: push eax */
  36085     edx = ebp + 0xC; /* 0x38035239: lea edx, [ebp + 0xc] */
  36086     PUSH32(esp, edx); /* 0x3803523C: push edx */
  36087     RECOMP_ICALL(0x3800F9D0u); /* 0x3803523D: call 0x3800f9d0 */ /* not lifted */
  36088     RECOMP_FLAGS_IN();
  36089 L_38035242:
  36090     edi = POP32_VAL(esp); /* 0x38035242: pop edi */
  36091     esi = POP32_VAL(esp); /* 0x38035243: pop esi */
  36092     ebx = POP32_VAL(esp); /* 0x38035244: pop ebx */
  36093     ebp = POP32_VAL(esp); /* 0x38035245: pop ebp */
  36094     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38035246: ret 8 */
  36095     RECOMP_REGS_OUT();
  36096 }
  36097 
  36098 void sub_38035250(void) {
  36099     int _fpu_cmp = 0;
  36100     uint32_t _cf = 0;
  36101     int _df = 1;
  36102     uint32_t _flag_k = FK_NONE;
  36103     uint32_t _flag_a = 0, _flag_b = 0;
  36104     uint32_t _itail_tgt = 0;
  36105     RECOMP_REGS_LOCALS
  36106     RECOMP_ENTER(0x38035250u);
  36107 
  36108 L_38035250:
  36109     PUSH32(esp, ebp); /* 0x38035250: push ebp */
  36110     ebp = esp; /* 0x38035251: mov ebp, esp */
  36111     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u);
  36112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36113     esp = esp - 0x58u; /* 0x38035253: sub esp, 0x58 */
  36114     _flag_k = FK_CMP;
  36115     edx = MEM32(ebp + 0xC); /* 0x38035256: mov edx, dword ptr [ebp + 0xc] */
  36116     PUSH32(esp, ebx); /* 0x38035259: push ebx */
  36117     PUSH32(esp, esi); /* 0x3803525A: push esi */
  36118     PUSH32(esp, edi); /* 0x3803525B: push edi */
  36119     edi = MEM32(ecx + 0x40); /* 0x3803525C: mov edi, dword ptr [ecx + 0x40] */
  36120     ebx = MEM32(edi + 0x4); /* 0x3803525F: mov ebx, dword ptr [edi + 4] */
  36121     ecx = MEM32(edi + 0x8); /* 0x38035262: mov ecx, dword ptr [edi + 8] */
  36122     MEM32(ebp + (-0x20)) = edx; /* 0x38035265: mov dword ptr [ebp - 0x20], edx */
  36123     MEM32(ebp + (-0x1C)) = 0; /* 0x38035268: mov dword ptr [ebp - 0x1c], 0 */
  36124     esi = MEM32(ebx + 0x4); /* 0x3803526F: mov esi, dword ptr [ebx + 4] */
  36125     /* cmp esi, ecx */ /* 0x38035272: cmp esi, ecx */
  36126     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  36127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36128     _flag_k = FK_CMP;
  36129     SET_LO8(eax, 1); /* 0x38035274: mov al, 1 */
  36130     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803528F; /* 0x38035276: je 0x3803528f */
  36131 L_38035278:
  36132     /* cmp edx, MEM32(esi + 0xC) */ /* 0x38035278: cmp edx, dword ptr [esi + 0xc] */
  36133     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
  36134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36135     _flag_k = FK_CMP;
  36136     SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x3803527B: setl al */
  36137     /* test LO8(eax), LO8(eax) */ /* 0x3803527E: test al, al */
  36138     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  36139     _cf = 0;
  36140     _flag_k = FK_NARROW(FK_TEST, 24);
  36141     ebx = esi; /* 0x38035280: mov ebx, esi */
  36142     if (TEST_Z(_flag_a, _flag_b)) goto L_38035288; /* 0x38035282: je 0x38035288 */
  36143 L_38035284:
  36144     esi = MEM32(esi); /* 0x38035284: mov esi, dword ptr [esi] */
  36145     goto L_3803528B; /* 0x38035286: jmp 0x3803528b */
  36146 L_38035288:
  36147     esi = MEM32(esi + 0x8); /* 0x38035288: mov esi, dword ptr [esi + 8] */
  36148 L_3803528B:
  36149     /* cmp esi, ecx */ /* 0x3803528B: cmp esi, ecx */
  36150     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  36151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36152     _flag_k = FK_CMP;
  36153     RECOMP_BACKEDGE();
  36154     if (CMP_NE(_flag_a, _flag_b)) goto L_38035278; /* 0x3803528D: jne 0x38035278 */
  36155 L_3803528F:
  36156     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x3803528F: mov cl, byte ptr [edi + 0xc] */
  36157     /* test LO8(ecx), LO8(ecx) */ /* 0x38035292: test cl, cl */
  36158     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  36159     _cf = 0;
  36160     _flag_k = FK_NARROW(FK_TEST, 24);
  36161     if (TEST_Z(_flag_a, _flag_b)) goto L_380352C4; /* 0x38035294: je 0x380352c4 */
  36162 L_38035296:
  36163     eax = ebp + 0xF; /* 0x38035296: lea eax, [ebp + 0xf] */
  36164     PUSH32(esp, eax); /* 0x38035299: push eax */
  36165     ecx = ebp + (-0x20); /* 0x3803529A: lea ecx, [ebp - 0x20] */
  36166     PUSH32(esp, ecx); /* 0x3803529D: push ecx */
  36167     PUSH32(esp, ebx); /* 0x3803529E: push ebx */
  36168     PUSH32(esp, esi); /* 0x3803529F: push esi */
  36169     edx = ebp + (-0xC); /* 0x380352A0: lea edx, [ebp - 0xc] */
  36170     PUSH32(esp, edx); /* 0x380352A3: push edx */
  36171     ecx = edi; /* 0x380352A4: mov ecx, edi */
  36172     MEM8(ebp + 0xF) = (uint8_t)(1); /* 0x380352A6: mov byte ptr [ebp + 0xf], 1 */
  36173     RECOMP_ICALL(0x38024A00u); /* 0x380352AA: call 0x38024a00 */ /* not lifted */
  36174     RECOMP_FLAGS_IN();
  36175     PUSH32(esp, eax); /* 0x380352AF: push eax */
  36176     ecx = ebp + (-0x30); /* 0x380352B0: lea ecx, [ebp - 0x30] */
  36177     RECOMP_ICALL(0x38035680u); /* 0x380352B3: call 0x38035680 */ /* not lifted */
  36178     RECOMP_FLAGS_IN();
  36179     ecx = eax; /* 0x380352B8: mov ecx, eax */
  36180     eax = MEM32(ecx); /* 0x380352BA: mov eax, dword ptr [ecx] */
  36181     ecx = MEM32(ecx + 0x4); /* 0x380352BC: mov ecx, dword ptr [ecx + 4] */
  36182     goto L_38035349; /* 0x380352BF: jmp 0x38035349 */
  36183 L_380352C4:
  36184     /* test LO8(eax), LO8(eax) */ /* 0x380352C4: test al, al */
  36185     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  36186     _cf = 0;
  36187     _flag_k = FK_NARROW(FK_TEST, 24);
  36188     MEM32(ebp + (-0x8)) = ebx; /* 0x380352C6: mov dword ptr [ebp - 8], ebx */
  36189     if (TEST_Z(_flag_a, _flag_b)) goto L_38035304; /* 0x380352C9: je 0x38035304 */
  36190 L_380352CB:
  36191     edx = ebp + (-0x10); /* 0x380352CB: lea edx, [ebp - 0x10] */
  36192     PUSH32(esp, edx); /* 0x380352CE: push edx */
  36193     ecx = edi; /* 0x380352CF: mov ecx, edi */
  36194     RECOMP_ICALL(0x380354C0u); /* 0x380352D1: call 0x380354c0 */ /* not lifted */
  36195     RECOMP_FLAGS_IN();
  36196     ecx = MEM32(ebp + (-0x8)); /* 0x380352D6: mov ecx, dword ptr [ebp - 8] */
  36197     /* cmp ecx, MEM32(eax) */ /* 0x380352D9: cmp ecx, dword ptr [eax] */
  36198     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
  36199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36200     _flag_k = FK_CMP;
  36201     if (CMP_NE(_flag_a, _flag_b)) goto L_380352FC; /* 0x380352DB: jne 0x380352fc */
  36202 L_380352DD:
  36203     edx = ebp + (-0x1); /* 0x380352DD: lea edx, [ebp - 1] */
  36204     PUSH32(esp, edx); /* 0x380352E0: push edx */
  36205     eax = ebp + (-0x20); /* 0x380352E1: lea eax, [ebp - 0x20] */
  36206     PUSH32(esp, eax); /* 0x380352E4: push eax */
  36207     PUSH32(esp, ebx); /* 0x380352E5: push ebx */
  36208     PUSH32(esp, esi); /* 0x380352E6: push esi */
  36209     ecx = ebp + (-0x14); /* 0x380352E7: lea ecx, [ebp - 0x14] */
  36210     PUSH32(esp, ecx); /* 0x380352EA: push ecx */
  36211     ecx = edi; /* 0x380352EB: mov ecx, edi */
  36212     MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x380352ED: mov byte ptr [ebp - 1], 1 */
  36213     RECOMP_ICALL(0x38024A00u); /* 0x380352F1: call 0x38024a00 */ /* not lifted */
  36214     RECOMP_FLAGS_IN();
  36215     PUSH32(esp, eax); /* 0x380352F6: push eax */
  36216     ecx = ebp + (-0x38); /* 0x380352F7: lea ecx, [ebp - 0x38] */
  36217     goto L_3803533D; /* 0x380352FA: jmp 0x3803533d */
  36218 L_380352FC:
  36219     ecx = ebp + (-0x8); /* 0x380352FC: lea ecx, [ebp - 8] */
  36220     RECOMP_ICALL(0x38013690u); /* 0x380352FF: call 0x38013690 */ /* not lifted */
  36221     RECOMP_FLAGS_IN();
  36222 L_38035304:
  36223     eax = MEM32(ebp + (-0x8)); /* 0x38035304: mov eax, dword ptr [ebp - 8] */
  36224     ecx = MEM32(eax + 0xC); /* 0x38035307: mov ecx, dword ptr [eax + 0xc] */
  36225     /* cmp ecx, MEM32(ebp + (-0x20)) */ /* 0x3803530A: cmp ecx, dword ptr [ebp - 0x20] */
  36226     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20)));
  36227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36228     _flag_k = FK_CMP;
  36229     if (CMP_GE(_flag_a, _flag_b)) goto L_3803532E; /* 0x3803530D: jge 0x3803532e */
  36230 L_3803530F:
  36231     edx = ebp + (-0x2); /* 0x3803530F: lea edx, [ebp - 2] */
  36232     PUSH32(esp, edx); /* 0x38035312: push edx */
  36233     eax = ebp + (-0x20); /* 0x38035313: lea eax, [ebp - 0x20] */
  36234     PUSH32(esp, eax); /* 0x38035316: push eax */
  36235     PUSH32(esp, ebx); /* 0x38035317: push ebx */
  36236     PUSH32(esp, esi); /* 0x38035318: push esi */
  36237     ecx = ebp + (-0x18); /* 0x38035319: lea ecx, [ebp - 0x18] */
  36238     PUSH32(esp, ecx); /* 0x3803531C: push ecx */
  36239     ecx = edi; /* 0x3803531D: mov ecx, edi */
  36240     MEM8(ebp + (-0x2)) = (uint8_t)(1); /* 0x3803531F: mov byte ptr [ebp - 2], 1 */
  36241     RECOMP_ICALL(0x38024A00u); /* 0x38035323: call 0x38024a00 */ /* not lifted */
  36242     RECOMP_FLAGS_IN();
  36243     PUSH32(esp, eax); /* 0x38035328: push eax */
  36244     ecx = ebp + (-0x40); /* 0x38035329: lea ecx, [ebp - 0x40] */
  36245     goto L_3803533D; /* 0x3803532C: jmp 0x3803533d */
  36246 L_3803532E:
  36247     eax = ebp + (-0x3); /* 0x3803532E: lea eax, [ebp - 3] */
  36248     ecx = ebp + (-0x8); /* 0x38035331: lea ecx, [ebp - 8] */
  36249     PUSH32(esp, eax); /* 0x38035334: push eax */
  36250     PUSH32(esp, ecx); /* 0x38035335: push ecx */
  36251     MEM8(ebp + (-0x3)) = (uint8_t)(0); /* 0x38035336: mov byte ptr [ebp - 3], 0 */
  36252     ecx = ebp + (-0x48); /* 0x3803533A: lea ecx, [ebp - 0x48] */
  36253 L_3803533D:
  36254     RECOMP_ICALL(0x38035680u); /* 0x3803533D: call 0x38035680 */ /* not lifted */
  36255     RECOMP_FLAGS_IN();
  36256     edx = eax; /* 0x38035342: mov edx, eax */
  36257     eax = MEM32(edx); /* 0x38035344: mov eax, dword ptr [edx] */
  36258     ecx = MEM32(edx + 0x4); /* 0x38035346: mov ecx, dword ptr [edx + 4] */
  36259 L_38035349:
  36260     MEM32(ebp + (-0x28)) = eax; /* 0x38035349: mov dword ptr [ebp - 0x28], eax */
  36261     MEM32(ebp + (-0x24)) = ecx; /* 0x3803534C: mov dword ptr [ebp - 0x24], ecx */
  36262     eax = ebp + (-0x24); /* 0x3803534F: lea eax, [ebp - 0x24] */
  36263     PUSH32(esp, eax); /* 0x38035352: push eax */
  36264     ecx = ebp + (-0x28); /* 0x38035353: lea ecx, [ebp - 0x28] */
  36265     PUSH32(esp, ecx); /* 0x38035356: push ecx */
  36266     ecx = ebp + (-0x50); /* 0x38035357: lea ecx, [ebp - 0x50] */
  36267     RECOMP_ICALL(0x38035680u); /* 0x3803535A: call 0x38035680 */ /* not lifted */
  36268     RECOMP_FLAGS_IN();
  36269     edx = eax; /* 0x3803535F: mov edx, eax */
  36270     eax = MEM32(edx); /* 0x38035361: mov eax, dword ptr [edx] */
  36271     ecx = MEM32(edx + 0x4); /* 0x38035363: mov ecx, dword ptr [edx + 4] */
  36272     edi = POP32_VAL(esp); /* 0x38035366: pop edi */
  36273     esi = POP32_VAL(esp); /* 0x38035367: pop esi */
  36274     MEM32(ebp + (-0x54)) = ecx; /* 0x38035368: mov dword ptr [ebp - 0x54], ecx */
  36275     MEM32(eax + 0x10) = 0; /* 0x3803536B: mov dword ptr [eax + 0x10], 0 */
  36276     ebx = POP32_VAL(esp); /* 0x38035372: pop ebx */
  36277     esp = ebp; /* 0x38035373: mov esp, ebp */
  36278     ebp = POP32_VAL(esp); /* 0x38035375: pop ebp */
  36279     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38035376: ret 8 */
  36280     RECOMP_REGS_OUT();
  36281 }
  36282 
  36283 void sub_38035349(void) {
  36284     int _fpu_cmp = 0;
  36285     uint32_t _cf = 0;
  36286     int _df = 1;
  36287     uint32_t _flag_k = FK_NONE;
  36288     uint32_t _flag_a = 0, _flag_b = 0;
  36289     uint32_t _itail_tgt = 0;
  36290     RECOMP_REGS_LOCALS
  36291     RECOMP_ENTER(0x38035349u);
  36292 
  36293 L_38035349:
  36294     MEM32(ebp + (-0x28)) = eax; /* 0x38035349: mov dword ptr [ebp - 0x28], eax */
  36295     MEM32(ebp + (-0x24)) = ecx; /* 0x3803534C: mov dword ptr [ebp - 0x24], ecx */
  36296     eax = ebp + (-0x24); /* 0x3803534F: lea eax, [ebp - 0x24] */
  36297     PUSH32(esp, eax); /* 0x38035352: push eax */
  36298     ecx = ebp + (-0x28); /* 0x38035353: lea ecx, [ebp - 0x28] */
  36299     PUSH32(esp, ecx); /* 0x38035356: push ecx */
  36300     ecx = ebp + (-0x50); /* 0x38035357: lea ecx, [ebp - 0x50] */
  36301     RECOMP_ICALL(0x38035680u); /* 0x3803535A: call 0x38035680 */ /* not lifted */
  36302     RECOMP_FLAGS_IN();
  36303     edx = eax; /* 0x3803535F: mov edx, eax */
  36304     eax = MEM32(edx); /* 0x38035361: mov eax, dword ptr [edx] */
  36305     ecx = MEM32(edx + 0x4); /* 0x38035363: mov ecx, dword ptr [edx + 4] */
  36306     edi = POP32_VAL(esp); /* 0x38035366: pop edi */
  36307     esi = POP32_VAL(esp); /* 0x38035367: pop esi */
  36308     MEM32(ebp + (-0x54)) = ecx; /* 0x38035368: mov dword ptr [ebp - 0x54], ecx */
  36309     MEM32(eax + 0x10) = 0; /* 0x3803536B: mov dword ptr [eax + 0x10], 0 */
  36310     ebx = POP32_VAL(esp); /* 0x38035372: pop ebx */
  36311     esp = ebp; /* 0x38035373: mov esp, ebp */
  36312     ebp = POP32_VAL(esp); /* 0x38035375: pop ebp */
  36313     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38035376: ret 8 */
  36314     RECOMP_REGS_OUT();
  36315 }
  36316 
  36317 void sub_38035380(void) {
  36318     int _fpu_cmp = 0;
  36319     uint32_t _cf = 0;
  36320     int _df = 1;
  36321     uint32_t _flag_k = FK_NONE;
  36322     uint32_t _flag_a = 0, _flag_b = 0;
  36323     uint32_t _itail_tgt = 0;
  36324     RECOMP_REGS_LOCALS
  36325     RECOMP_ENTER(0x38035380u);
  36326 
  36327 L_38035380:
  36328     PUSH32(esp, ebp); /* 0x38035380: push ebp */
  36329     ebp = esp; /* 0x38035381: mov ebp, esp */
  36330     PUSH32(esp, esi); /* 0x38035383: push esi */
  36331     PUSH32(esp, edi); /* 0x38035384: push edi */
  36332     edi = ecx; /* 0x38035385: mov edi, ecx */
  36333     eax = MEM32(edi + 0x40); /* 0x38035387: mov eax, dword ptr [edi + 0x40] */
  36334     eax = MEM32(eax + 0x4); /* 0x3803538A: mov eax, dword ptr [eax + 4] */
  36335     esi = MEM32(eax); /* 0x3803538D: mov esi, dword ptr [eax] */
  36336     /* cmp esi, eax */ /* 0x3803538F: cmp esi, eax */
  36337     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  36338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36339     _flag_k = FK_CMP;
  36340     if (CMP_EQ(_flag_a, _flag_b)) goto L_380353FE; /* 0x38035391: je 0x380353fe */
  36341 L_38035393:
  36342     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x38035393: fld dword ptr [ebp + 8] */
  36343     _st[0] += (double)*(float*)ADDR(esi + 0x10); /* 0x38035396: fadd dword ptr [esi + 0x10] */
  36344     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x10) = _v; } /* 0x38035399: fst dword ptr [esi + 0x10] */
  36345     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8C4)); /* 0x3803539C: fcomp dword ptr [0x3804e8c4] */
  36346     fp_pop();
  36347     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380353A2: fnstsw ax */
  36348     /* test HI8(eax), 0x41u */ /* 0x380353A4: test ah, 0x41 */
  36349     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  36350     _cf = 0;
  36351     _flag_k = FK_NARROW(FK_TEST, 24);
  36352     if (TEST_Z(_flag_a, _flag_b)) goto L_380353E5; /* 0x380353A7: je 0x380353e5 */
  36353 L_380353A9:
  36354     eax = MEM32(esi + 0x8); /* 0x380353A9: mov eax, dword ptr [esi + 8] */
  36355     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x380353AC: mov cl, byte ptr [eax + 0x15] */
  36356     /* test LO8(ecx), LO8(ecx) */ /* 0x380353AF: test cl, cl */
  36357     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  36358     _cf = 0;
  36359     _flag_k = FK_NARROW(FK_TEST, 24);
  36360     if (TEST_NZ(_flag_a, _flag_b)) goto L_380353BE; /* 0x380353B1: jne 0x380353be */
  36361 L_380353B3:
  36362     PUSH32(esp, eax); /* 0x380353B3: push eax */
  36363     RECOMP_ICALL(0x38035620u); /* 0x380353B4: call 0x38035620 */ /* not lifted */
  36364     RECOMP_FLAGS_IN();
  36365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  36366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  36367     esp = esp + 4; /* 0x380353B9: add esp, 4 */
  36368     _flag_k = FK_ADD;
  36369     goto L_380353D5; /* 0x380353BC: jmp 0x380353d5 */
  36370 L_380353BE:
  36371     eax = MEM32(esi + 0x4); /* 0x380353BE: mov eax, dword ptr [esi + 4] */
  36372     /* cmp esi, MEM32(eax + 0x8) */ /* 0x380353C1: cmp esi, dword ptr [eax + 8] */
  36373     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  36374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36375     _flag_k = FK_CMP;
  36376     if (CMP_NE(_flag_a, _flag_b)) goto L_380353D0; /* 0x380353C4: jne 0x380353d0 */
  36377 L_380353C6:
  36378     esi = eax; /* 0x380353C6: mov esi, eax */
  36379     eax = MEM32(eax + 0x4); /* 0x380353C8: mov eax, dword ptr [eax + 4] */
  36380     /* cmp esi, MEM32(eax + 0x8) */ /* 0x380353CB: cmp esi, dword ptr [eax + 8] */
  36381     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  36382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36383     _flag_k = FK_CMP;
  36384     RECOMP_BACKEDGE();
  36385     if (CMP_EQ(_flag_a, _flag_b)) goto L_380353C6; /* 0x380353CE: je 0x380353c6 */
  36386 L_380353D0:
  36387     /* cmp MEM32(esi + 0x8), eax */ /* 0x380353D0: cmp dword ptr [esi + 8], eax */
  36388     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  36389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36390     _flag_k = FK_CMP;
  36391     if (CMP_EQ(_flag_a, _flag_b)) goto L_380353D7; /* 0x380353D3: je 0x380353d7 */
  36392 L_380353D5:
  36393     esi = eax; /* 0x380353D5: mov esi, eax */
  36394 L_380353D7:
  36395     ecx = MEM32(edi + 0x40); /* 0x380353D7: mov ecx, dword ptr [edi + 0x40] */
  36396     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x380353DA: cmp esi, dword ptr [ecx + 4] */
  36397     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  36398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36399     _flag_k = FK_CMP;
  36400     RECOMP_BACKEDGE();
  36401     if (CMP_NE(_flag_a, _flag_b)) goto L_38035393; /* 0x380353DD: jne 0x38035393 */
  36402 L_380353DF:
  36403     edi = POP32_VAL(esp); /* 0x380353DF: pop edi */
  36404     esi = POP32_VAL(esp); /* 0x380353E0: pop esi */
  36405     ebp = POP32_VAL(esp); /* 0x380353E1: pop ebp */
  36406     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380353E2: ret 4 */
  36407 L_380353E5:
  36408     ecx = MEM32(edi + 0x38); /* 0x380353E5: mov ecx, dword ptr [edi + 0x38] */
  36409     eax = MEM32(esi + 0xC); /* 0x380353E8: mov eax, dword ptr [esi + 0xc] */
  36410     edx = MEM32(ecx); /* 0x380353EB: mov edx, dword ptr [ecx] */
  36411     PUSH32(esp, eax); /* 0x380353ED: push eax */
  36412     RECOMP_ICALL(MEM32(edx + 0x54)); /* 0x380353EE: call dword ptr [edx + 0x54] */
  36413     RECOMP_FLAGS_IN();
  36414     PUSH32(esp, esi); /* 0x380353F1: push esi */
  36415     ecx = ebp + 0x8; /* 0x380353F2: lea ecx, [ebp + 8] */
  36416     PUSH32(esp, ecx); /* 0x380353F5: push ecx */
  36417     ecx = MEM32(edi + 0x40); /* 0x380353F6: mov ecx, dword ptr [edi + 0x40] */
  36418     RECOMP_ICALL(0x3800F9D0u); /* 0x380353F9: call 0x3800f9d0 */ /* not lifted */
  36419     RECOMP_FLAGS_IN();
  36420 L_380353FE:
  36421     edi = POP32_VAL(esp); /* 0x380353FE: pop edi */
  36422     esi = POP32_VAL(esp); /* 0x380353FF: pop esi */
  36423     ebp = POP32_VAL(esp); /* 0x38035400: pop ebp */
  36424     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38035401: ret 4 */
  36425     RECOMP_REGS_OUT();
  36426 }
  36427 
  36428 void sub_38035410(void) {
  36429     int _fpu_cmp = 0;
  36430     uint32_t _cf = 0;
  36431     int _df = 1;
  36432     uint32_t _flag_k = FK_NONE;
  36433     uint32_t _flag_a = 0, _flag_b = 0;
  36434     uint32_t _itail_tgt = 0;
  36435     RECOMP_REGS_LOCALS
  36436     RECOMP_ENTER(0x38035410u);
  36437 
  36438 L_38035410:
  36439     PUSH32(esp, ebp); /* 0x38035410: push ebp */
  36440     ebp = esp; /* 0x38035411: mov ebp, esp */
  36441     PUSH32(esp, ebx); /* 0x38035413: push ebx */
  36442     ebx = MEM32(ebp + 0x10); /* 0x38035414: mov ebx, dword ptr [ebp + 0x10] */
  36443     PUSH32(esp, esi); /* 0x38035417: push esi */
  36444     esi = ecx; /* 0x38035418: mov esi, ecx */
  36445     eax = MEM32(esi + 0x10); /* 0x3803541A: mov eax, dword ptr [esi + 0x10] */
  36446     /* test eax, eax */ /* 0x3803541D: test eax, eax */
  36447     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  36448     _cf = 0;
  36449     _flag_k = FK_TEST;
  36450     ecx = MEM32(ebp + 0xC); /* 0x3803541F: mov ecx, dword ptr [ebp + 0xc] */
  36451     PUSH32(esp, edi); /* 0x38035422: push edi */
  36452     if (TEST_Z(_flag_a, _flag_b)) goto L_38035485; /* 0x38035423: je 0x38035485 */
  36453 L_38035425:
  36454     eax = MEM32(esi + 0x4); /* 0x38035425: mov eax, dword ptr [esi + 4] */
  36455     /* cmp ecx, MEM32(eax) */ /* 0x38035428: cmp ecx, dword ptr [eax] */
  36456     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
  36457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36458     _flag_k = FK_CMP;
  36459     if (CMP_NE(_flag_a, _flag_b)) goto L_38035485; /* 0x3803542A: jne 0x38035485 */
  36460 L_3803542C:
  36461     /* cmp ebx, eax */ /* 0x3803542C: cmp ebx, eax */
  36462     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  36463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36464     _flag_k = FK_CMP;
  36465     if (CMP_NE(_flag_a, _flag_b)) goto L_38035485; /* 0x3803542E: jne 0x38035485 */
  36466 L_38035430:
  36467     ebx = MEM32(eax + 0x4); /* 0x38035430: mov ebx, dword ptr [eax + 4] */
  36468     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x38035433: cmp ebx, dword ptr [esi + 8] */
  36469     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  36470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36471     _flag_k = FK_CMP;
  36472     edi = ebx; /* 0x38035436: mov edi, ebx */
  36473     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035459; /* 0x38035438: je 0x38035459 */
  36474 L_3803543A:
  36475     eax = MEM32(edi + 0x8); /* 0x3803543A: mov eax, dword ptr [edi + 8] */
  36476     PUSH32(esp, eax); /* 0x3803543D: push eax */
  36477     ecx = esi; /* 0x3803543E: mov ecx, esi */
  36478     RECOMP_ICALL(0x380355E0u); /* 0x38035440: call 0x380355e0 */ /* not lifted */
  36479     RECOMP_FLAGS_IN();
  36480     edi = MEM32(edi); /* 0x38035445: mov edi, dword ptr [edi] */
  36481     PUSH32(esp, ebx); /* 0x38035447: push ebx */
  36482     RECOMP_ICALL(0x3804B4F6u); /* 0x38035448: call 0x3804b4f6 */ /* not lifted */
  36483     RECOMP_FLAGS_IN();
  36484     eax = MEM32(esi + 0x8); /* 0x3803544D: mov eax, dword ptr [esi + 8] */
  36485     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  36486     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  36487     esp = esp + 4; /* 0x38035450: add esp, 4 */
  36488     _flag_k = FK_ADD;
  36489     /* cmp edi, eax */ /* 0x38035453: cmp edi, eax */
  36490     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  36491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36492     _flag_k = FK_CMP;
  36493     ebx = edi; /* 0x38035455: mov ebx, edi */
  36494     RECOMP_BACKEDGE();
  36495     if (CMP_NE(_flag_a, _flag_b)) goto L_3803543A; /* 0x38035457: jne 0x3803543a */
  36496 L_38035459:
  36497     ecx = MEM32(esi + 0x4); /* 0x38035459: mov ecx, dword ptr [esi + 4] */
  36498     edx = MEM32(esi + 0x8); /* 0x3803545C: mov edx, dword ptr [esi + 8] */
  36499     MEM32(ecx + 0x4) = edx; /* 0x3803545F: mov dword ptr [ecx + 4], edx */
  36500     eax = MEM32(esi + 0x4); /* 0x38035462: mov eax, dword ptr [esi + 4] */
  36501     MEM32(esi + 0x10) = 0; /* 0x38035465: mov dword ptr [esi + 0x10], 0 */
  36502     MEM32(eax) = eax; /* 0x3803546C: mov dword ptr [eax], eax */
  36503     eax = MEM32(esi + 0x4); /* 0x3803546E: mov eax, dword ptr [esi + 4] */
  36504     MEM32(eax + 0x8) = eax; /* 0x38035471: mov dword ptr [eax + 8], eax */
  36505     eax = MEM32(esi + 0x4); /* 0x38035474: mov eax, dword ptr [esi + 4] */
  36506     ecx = MEM32(eax); /* 0x38035477: mov ecx, dword ptr [eax] */
  36507     eax = MEM32(ebp + 0x8); /* 0x38035479: mov eax, dword ptr [ebp + 8] */
  36508     edi = POP32_VAL(esp); /* 0x3803547C: pop edi */
  36509     esi = POP32_VAL(esp); /* 0x3803547D: pop esi */
  36510     MEM32(eax) = ecx; /* 0x3803547E: mov dword ptr [eax], ecx */
  36511     ebx = POP32_VAL(esp); /* 0x38035480: pop ebx */
  36512     ebp = POP32_VAL(esp); /* 0x38035481: pop ebp */
  36513     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38035482: ret 0xc */
  36514 L_38035485:
  36515     /* cmp ecx, ebx */ /* 0x38035485: cmp ecx, ebx */
  36516     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  36517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36518     _flag_k = FK_CMP;
  36519     if (CMP_EQ(_flag_a, _flag_b)) goto L_380354A6; /* 0x38035487: je 0x380354a6 */
  36520 L_38035489:
  36521     edi = ecx; /* 0x38035489: mov edi, ecx */
  36522     ecx = ebp + 0xC; /* 0x3803548B: lea ecx, [ebp + 0xc] */
  36523     RECOMP_ICALL(0x38035590u); /* 0x3803548E: call 0x38035590 */ /* not lifted */
  36524     RECOMP_FLAGS_IN();
  36525     PUSH32(esp, edi); /* 0x38035493: push edi */
  36526     ecx = ebp + 0x10; /* 0x38035494: lea ecx, [ebp + 0x10] */
  36527     PUSH32(esp, ecx); /* 0x38035497: push ecx */
  36528     ecx = esi; /* 0x38035498: mov ecx, esi */
  36529     RECOMP_ICALL(0x3800F9D0u); /* 0x3803549A: call 0x3800f9d0 */ /* not lifted */
  36530     RECOMP_FLAGS_IN();
  36531     ecx = MEM32(ebp + 0xC); /* 0x3803549F: mov ecx, dword ptr [ebp + 0xc] */
  36532     /* cmp ecx, ebx */ /* 0x380354A2: cmp ecx, ebx */
  36533     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  36534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36535     _flag_k = FK_CMP;
  36536     RECOMP_BACKEDGE();
  36537     if (CMP_NE(_flag_a, _flag_b)) goto L_38035489; /* 0x380354A4: jne 0x38035489 */
  36538 L_380354A6:
  36539     eax = MEM32(ebp + 0x8); /* 0x380354A6: mov eax, dword ptr [ebp + 8] */
  36540     edi = POP32_VAL(esp); /* 0x380354A9: pop edi */
  36541     esi = POP32_VAL(esp); /* 0x380354AA: pop esi */
  36542     MEM32(eax) = ecx; /* 0x380354AB: mov dword ptr [eax], ecx */
  36543     ebx = POP32_VAL(esp); /* 0x380354AD: pop ebx */
  36544     ebp = POP32_VAL(esp); /* 0x380354AE: pop ebp */
  36545     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x380354AF: ret 0xc */
  36546     RECOMP_REGS_OUT();
  36547 }
  36548 
  36549 void sub_380354C0(void) {
  36550     int _fpu_cmp = 0;
  36551     uint32_t _cf = 0;
  36552     int _df = 1;
  36553     uint32_t _flag_k = FK_NONE;
  36554     uint32_t _flag_a = 0, _flag_b = 0;
  36555     uint32_t _itail_tgt = 0;
  36556     RECOMP_REGS_LOCALS
  36557     RECOMP_ENTER(0x380354C0u);
  36558 
  36559 L_380354C0:
  36560     PUSH32(esp, ebp); /* 0x380354C0: push ebp */
  36561     ebp = esp; /* 0x380354C1: mov ebp, esp */
  36562     eax = MEM32(ecx + 0x4); /* 0x380354C3: mov eax, dword ptr [ecx + 4] */
  36563     ecx = MEM32(eax); /* 0x380354C6: mov ecx, dword ptr [eax] */
  36564     eax = MEM32(ebp + 0x8); /* 0x380354C8: mov eax, dword ptr [ebp + 8] */
  36565     MEM32(eax) = ecx; /* 0x380354CB: mov dword ptr [eax], ecx */
  36566     ebp = POP32_VAL(esp); /* 0x380354CD: pop ebp */
  36567     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380354CE: ret 4 */
  36568     RECOMP_REGS_OUT();
  36569 }
  36570 
  36571 void sub_380354E0(void) {
  36572     int _fpu_cmp = 0;
  36573     uint32_t _cf = 0;
  36574     int _df = 1;
  36575     uint32_t _flag_k = FK_NONE;
  36576     uint32_t _flag_a = 0, _flag_b = 0;
  36577     uint32_t _itail_tgt = 0;
  36578     RECOMP_REGS_LOCALS
  36579     RECOMP_ENTER(0x380354E0u);
  36580 
  36581 L_380354E0:
  36582     PUSH32(esp, ebp); /* 0x380354E0: push ebp */
  36583     ebp = esp; /* 0x380354E1: mov ebp, esp */
  36584     PUSH32(esp, ebx); /* 0x380354E3: push ebx */
  36585     ebx = MEM32(ebp + 0x10); /* 0x380354E4: mov ebx, dword ptr [ebp + 0x10] */
  36586     PUSH32(esp, esi); /* 0x380354E7: push esi */
  36587     esi = ecx; /* 0x380354E8: mov esi, ecx */
  36588     eax = MEM32(esi + 0x10); /* 0x380354EA: mov eax, dword ptr [esi + 0x10] */
  36589     /* test eax, eax */ /* 0x380354ED: test eax, eax */
  36590     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  36591     _cf = 0;
  36592     _flag_k = FK_TEST;
  36593     ecx = MEM32(ebp + 0xC); /* 0x380354EF: mov ecx, dword ptr [ebp + 0xc] */
  36594     PUSH32(esp, edi); /* 0x380354F2: push edi */
  36595     if (TEST_Z(_flag_a, _flag_b)) goto L_38035555; /* 0x380354F3: je 0x38035555 */
  36596 L_380354F5:
  36597     eax = MEM32(esi + 0x4); /* 0x380354F5: mov eax, dword ptr [esi + 4] */
  36598     /* cmp ecx, MEM32(eax) */ /* 0x380354F8: cmp ecx, dword ptr [eax] */
  36599     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
  36600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36601     _flag_k = FK_CMP;
  36602     if (CMP_NE(_flag_a, _flag_b)) goto L_38035555; /* 0x380354FA: jne 0x38035555 */
  36603 L_380354FC:
  36604     /* cmp ebx, eax */ /* 0x380354FC: cmp ebx, eax */
  36605     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  36606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36607     _flag_k = FK_CMP;
  36608     if (CMP_NE(_flag_a, _flag_b)) goto L_38035555; /* 0x380354FE: jne 0x38035555 */
  36609 L_38035500:
  36610     ebx = MEM32(eax + 0x4); /* 0x38035500: mov ebx, dword ptr [eax + 4] */
  36611     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x38035503: cmp ebx, dword ptr [esi + 8] */
  36612     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  36613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36614     _flag_k = FK_CMP;
  36615     edi = ebx; /* 0x38035506: mov edi, ebx */
  36616     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035529; /* 0x38035508: je 0x38035529 */
  36617 L_3803550A:
  36618     eax = MEM32(edi + 0x8); /* 0x3803550A: mov eax, dword ptr [edi + 8] */
  36619     PUSH32(esp, eax); /* 0x3803550D: push eax */
  36620     ecx = esi; /* 0x3803550E: mov ecx, esi */
  36621     RECOMP_ICALL(0x38035640u); /* 0x38035510: call 0x38035640 */ /* not lifted */
  36622     RECOMP_FLAGS_IN();
  36623     edi = MEM32(edi); /* 0x38035515: mov edi, dword ptr [edi] */
  36624     PUSH32(esp, ebx); /* 0x38035517: push ebx */
  36625     RECOMP_ICALL(0x3804B4F6u); /* 0x38035518: call 0x3804b4f6 */ /* not lifted */
  36626     RECOMP_FLAGS_IN();
  36627     eax = MEM32(esi + 0x8); /* 0x3803551D: mov eax, dword ptr [esi + 8] */
  36628     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  36629     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  36630     esp = esp + 4; /* 0x38035520: add esp, 4 */
  36631     _flag_k = FK_ADD;
  36632     /* cmp edi, eax */ /* 0x38035523: cmp edi, eax */
  36633     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  36634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36635     _flag_k = FK_CMP;
  36636     ebx = edi; /* 0x38035525: mov ebx, edi */
  36637     RECOMP_BACKEDGE();
  36638     if (CMP_NE(_flag_a, _flag_b)) goto L_3803550A; /* 0x38035527: jne 0x3803550a */
  36639 L_38035529:
  36640     ecx = MEM32(esi + 0x4); /* 0x38035529: mov ecx, dword ptr [esi + 4] */
  36641     edx = MEM32(esi + 0x8); /* 0x3803552C: mov edx, dword ptr [esi + 8] */
  36642     MEM32(ecx + 0x4) = edx; /* 0x3803552F: mov dword ptr [ecx + 4], edx */
  36643     eax = MEM32(esi + 0x4); /* 0x38035532: mov eax, dword ptr [esi + 4] */
  36644     MEM32(esi + 0x10) = 0; /* 0x38035535: mov dword ptr [esi + 0x10], 0 */
  36645     MEM32(eax) = eax; /* 0x3803553C: mov dword ptr [eax], eax */
  36646     eax = MEM32(esi + 0x4); /* 0x3803553E: mov eax, dword ptr [esi + 4] */
  36647     MEM32(eax + 0x8) = eax; /* 0x38035541: mov dword ptr [eax + 8], eax */
  36648     eax = MEM32(esi + 0x4); /* 0x38035544: mov eax, dword ptr [esi + 4] */
  36649     ecx = MEM32(eax); /* 0x38035547: mov ecx, dword ptr [eax] */
  36650     eax = MEM32(ebp + 0x8); /* 0x38035549: mov eax, dword ptr [ebp + 8] */
  36651     edi = POP32_VAL(esp); /* 0x3803554C: pop edi */
  36652     esi = POP32_VAL(esp); /* 0x3803554D: pop esi */
  36653     MEM32(eax) = ecx; /* 0x3803554E: mov dword ptr [eax], ecx */
  36654     ebx = POP32_VAL(esp); /* 0x38035550: pop ebx */
  36655     ebp = POP32_VAL(esp); /* 0x38035551: pop ebp */
  36656     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38035552: ret 0xc */
  36657 L_38035555:
  36658     /* cmp ecx, ebx */ /* 0x38035555: cmp ecx, ebx */
  36659     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  36660     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36661     _flag_k = FK_CMP;
  36662     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035576; /* 0x38035557: je 0x38035576 */
  36663 L_38035559:
  36664     edi = ecx; /* 0x38035559: mov edi, ecx */
  36665     ecx = ebp + 0xC; /* 0x3803555B: lea ecx, [ebp + 0xc] */
  36666     RECOMP_ICALL(0x38035590u); /* 0x3803555E: call 0x38035590 */ /* not lifted */
  36667     RECOMP_FLAGS_IN();
  36668     PUSH32(esp, edi); /* 0x38035563: push edi */
  36669     ecx = ebp + 0x10; /* 0x38035564: lea ecx, [ebp + 0x10] */
  36670     PUSH32(esp, ecx); /* 0x38035567: push ecx */
  36671     ecx = esi; /* 0x38035568: mov ecx, esi */
  36672     RECOMP_ICALL(0x3800F9D0u); /* 0x3803556A: call 0x3800f9d0 */ /* not lifted */
  36673     RECOMP_FLAGS_IN();
  36674     ecx = MEM32(ebp + 0xC); /* 0x3803556F: mov ecx, dword ptr [ebp + 0xc] */
  36675     /* cmp ecx, ebx */ /* 0x38035572: cmp ecx, ebx */
  36676     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  36677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36678     _flag_k = FK_CMP;
  36679     RECOMP_BACKEDGE();
  36680     if (CMP_NE(_flag_a, _flag_b)) goto L_38035559; /* 0x38035574: jne 0x38035559 */
  36681 L_38035576:
  36682     eax = MEM32(ebp + 0x8); /* 0x38035576: mov eax, dword ptr [ebp + 8] */
  36683     edi = POP32_VAL(esp); /* 0x38035579: pop edi */
  36684     esi = POP32_VAL(esp); /* 0x3803557A: pop esi */
  36685     MEM32(eax) = ecx; /* 0x3803557B: mov dword ptr [eax], ecx */
  36686     ebx = POP32_VAL(esp); /* 0x3803557D: pop ebx */
  36687     ebp = POP32_VAL(esp); /* 0x3803557E: pop ebp */
  36688     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3803557F: ret 0xc */
  36689     RECOMP_REGS_OUT();
  36690 }
  36691 
  36692 void sub_38035590(void) {
  36693     int _fpu_cmp = 0;
  36694     uint32_t _cf = 0;
  36695     int _df = 1;
  36696     uint32_t _flag_k = FK_NONE;
  36697     uint32_t _flag_a = 0, _flag_b = 0;
  36698     uint32_t _itail_tgt = 0;
  36699     RECOMP_REGS_LOCALS
  36700     RECOMP_ENTER(0x38035590u);
  36701 
  36702 L_38035590:
  36703     eax = MEM32(ecx); /* 0x38035590: mov eax, dword ptr [ecx] */
  36704     edx = MEM32(eax + 0x8); /* 0x38035592: mov edx, dword ptr [eax + 8] */
  36705     PUSH32(esp, ebx); /* 0x38035595: push ebx */
  36706     SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x38035596: mov bl, byte ptr [edx + 0x15] */
  36707     /* test LO8(ebx), LO8(ebx) */ /* 0x38035599: test bl, bl */
  36708     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  36709     _cf = 0;
  36710     _flag_k = FK_NARROW(FK_TEST, 24);
  36711     if (TEST_NZ(_flag_a, _flag_b)) goto L_380355B5; /* 0x3803559B: jne 0x380355b5 */
  36712 L_3803559D:
  36713     eax = MEM32(edx); /* 0x3803559D: mov eax, dword ptr [edx] */
  36714     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3803559F: mov bl, byte ptr [eax + 0x15] */
  36715     /* test LO8(ebx), LO8(ebx) */ /* 0x380355A2: test bl, bl */
  36716     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  36717     _cf = 0;
  36718     _flag_k = FK_NARROW(FK_TEST, 24);
  36719     if (TEST_NZ(_flag_a, _flag_b)) goto L_380355B1; /* 0x380355A4: jne 0x380355b1 */
  36720 L_380355A6:
  36721     edx = eax; /* 0x380355A6: mov edx, eax */
  36722     eax = MEM32(edx); /* 0x380355A8: mov eax, dword ptr [edx] */
  36723     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x380355AA: mov bl, byte ptr [eax + 0x15] */
  36724     /* test LO8(ebx), LO8(ebx) */ /* 0x380355AD: test bl, bl */
  36725     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  36726     _cf = 0;
  36727     _flag_k = FK_NARROW(FK_TEST, 24);
  36728     RECOMP_BACKEDGE();
  36729     if (TEST_Z(_flag_a, _flag_b)) goto L_380355A6; /* 0x380355AF: je 0x380355a6 */
  36730 L_380355B1:
  36731     MEM32(ecx) = edx; /* 0x380355B1: mov dword ptr [ecx], edx */
  36732     ebx = POP32_VAL(esp); /* 0x380355B3: pop ebx */
  36733     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380355B4: ret  */
  36734 L_380355B5:
  36735     eax = MEM32(eax + 0x4); /* 0x380355B5: mov eax, dword ptr [eax + 4] */
  36736     edx = MEM32(ecx); /* 0x380355B8: mov edx, dword ptr [ecx] */
  36737     /* cmp edx, MEM32(eax + 0x8) */ /* 0x380355BA: cmp edx, dword ptr [eax + 8] */
  36738     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  36739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36740     _flag_k = FK_CMP;
  36741     if (CMP_NE(_flag_a, _flag_b)) goto L_380355CB; /* 0x380355BD: jne 0x380355cb */
  36742 L_380355BF:
  36743     MEM32(ecx) = eax; /* 0x380355BF: mov dword ptr [ecx], eax */
  36744     eax = MEM32(eax + 0x4); /* 0x380355C1: mov eax, dword ptr [eax + 4] */
  36745     edx = MEM32(ecx); /* 0x380355C4: mov edx, dword ptr [ecx] */
  36746     /* cmp edx, MEM32(eax + 0x8) */ /* 0x380355C6: cmp edx, dword ptr [eax + 8] */
  36747     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  36748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36749     _flag_k = FK_CMP;
  36750     RECOMP_BACKEDGE();
  36751     if (CMP_EQ(_flag_a, _flag_b)) goto L_380355BF; /* 0x380355C9: je 0x380355bf */
  36752 L_380355CB:
  36753     edx = MEM32(ecx); /* 0x380355CB: mov edx, dword ptr [ecx] */
  36754     /* cmp MEM32(edx + 0x8), eax */ /* 0x380355CD: cmp dword ptr [edx + 8], eax */
  36755     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
  36756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36757     _flag_k = FK_CMP;
  36758     if (CMP_EQ(_flag_a, _flag_b)) goto L_380355D4; /* 0x380355D0: je 0x380355d4 */
  36759 L_380355D2:
  36760     MEM32(ecx) = eax; /* 0x380355D2: mov dword ptr [ecx], eax */
  36761 L_380355D4:
  36762     ebx = POP32_VAL(esp); /* 0x380355D4: pop ebx */
  36763     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380355D5: ret  */
  36764     RECOMP_REGS_OUT();
  36765 }
  36766 
  36767 void sub_380355E0(void) {
  36768     int _fpu_cmp = 0;
  36769     uint32_t _cf = 0;
  36770     int _df = 1;
  36771     uint32_t _flag_k = FK_NONE;
  36772     uint32_t _flag_a = 0, _flag_b = 0;
  36773     uint32_t _itail_tgt = 0;
  36774     RECOMP_REGS_LOCALS
  36775     RECOMP_ENTER(0x380355E0u);
  36776 
  36777 L_380355E0:
  36778     PUSH32(esp, ebp); /* 0x380355E0: push ebp */
  36779     ebp = esp; /* 0x380355E1: mov ebp, esp */
  36780     PUSH32(esp, ebx); /* 0x380355E3: push ebx */
  36781     PUSH32(esp, esi); /* 0x380355E4: push esi */
  36782     ebx = ecx; /* 0x380355E5: mov ebx, ecx */
  36783     eax = MEM32(ebx + 0x8); /* 0x380355E7: mov eax, dword ptr [ebx + 8] */
  36784     PUSH32(esp, edi); /* 0x380355EA: push edi */
  36785     edi = MEM32(ebp + 0x8); /* 0x380355EB: mov edi, dword ptr [ebp + 8] */
  36786     /* cmp edi, eax */ /* 0x380355EE: cmp edi, eax */
  36787     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  36788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36789     _flag_k = FK_CMP;
  36790     esi = edi; /* 0x380355F0: mov esi, edi */
  36791     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035613; /* 0x380355F2: je 0x38035613 */
  36792 L_380355F4:
  36793     eax = MEM32(esi + 0x8); /* 0x380355F4: mov eax, dword ptr [esi + 8] */
  36794     PUSH32(esp, eax); /* 0x380355F7: push eax */
  36795     ecx = ebx; /* 0x380355F8: mov ecx, ebx */
  36796     RECOMP_ICALL(0x380355E0u); /* 0x380355FA: call 0x380355e0 */ /* not lifted */
  36797     RECOMP_FLAGS_IN();
  36798     esi = MEM32(esi); /* 0x380355FF: mov esi, dword ptr [esi] */
  36799     PUSH32(esp, edi); /* 0x38035601: push edi */
  36800     RECOMP_ICALL(0x3804B4F6u); /* 0x38035602: call 0x3804b4f6 */ /* not lifted */
  36801     RECOMP_FLAGS_IN();
  36802     eax = MEM32(ebx + 0x8); /* 0x38035607: mov eax, dword ptr [ebx + 8] */
  36803     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  36804     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  36805     esp = esp + 4; /* 0x3803560A: add esp, 4 */
  36806     _flag_k = FK_ADD;
  36807     /* cmp esi, eax */ /* 0x3803560D: cmp esi, eax */
  36808     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  36809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36810     _flag_k = FK_CMP;
  36811     edi = esi; /* 0x3803560F: mov edi, esi */
  36812     RECOMP_BACKEDGE();
  36813     if (CMP_NE(_flag_a, _flag_b)) goto L_380355F4; /* 0x38035611: jne 0x380355f4 */
  36814 L_38035613:
  36815     edi = POP32_VAL(esp); /* 0x38035613: pop edi */
  36816     esi = POP32_VAL(esp); /* 0x38035614: pop esi */
  36817     ebx = POP32_VAL(esp); /* 0x38035615: pop ebx */
  36818     ebp = POP32_VAL(esp); /* 0x38035616: pop ebp */
  36819     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38035617: ret 4 */
  36820     RECOMP_REGS_OUT();
  36821 }
  36822 
  36823 void sub_38035620(void) {
  36824     int _fpu_cmp = 0;
  36825     uint32_t _cf = 0;
  36826     int _df = 1;
  36827     uint32_t _flag_k = FK_NONE;
  36828     uint32_t _flag_a = 0, _flag_b = 0;
  36829     uint32_t _itail_tgt = 0;
  36830     RECOMP_REGS_LOCALS
  36831     RECOMP_ENTER(0x38035620u);
  36832 
  36833 L_38035620:
  36834     PUSH32(esp, ebp); /* 0x38035620: push ebp */
  36835     ebp = esp; /* 0x38035621: mov ebp, esp */
  36836     eax = MEM32(ebp + 0x8); /* 0x38035623: mov eax, dword ptr [ebp + 8] */
  36837     ecx = MEM32(eax); /* 0x38035626: mov ecx, dword ptr [eax] */
  36838     SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x38035628: mov dl, byte ptr [ecx + 0x15] */
  36839     /* test LO8(edx), LO8(edx) */ /* 0x3803562B: test dl, dl */
  36840     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  36841     _cf = 0;
  36842     _flag_k = FK_NARROW(FK_TEST, 24);
  36843     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803563A; /* 0x3803562D: jne 0x3803563a */
  36844 L_3803562F:
  36845     eax = ecx; /* 0x3803562F: mov eax, ecx */
  36846     ecx = MEM32(eax); /* 0x38035631: mov ecx, dword ptr [eax] */
  36847     SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x38035633: mov dl, byte ptr [ecx + 0x15] */
  36848     /* test LO8(edx), LO8(edx) */ /* 0x38035636: test dl, dl */
  36849     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  36850     _cf = 0;
  36851     _flag_k = FK_NARROW(FK_TEST, 24);
  36852     RECOMP_BACKEDGE();
  36853     if (TEST_Z(_flag_a, _flag_b)) goto L_3803562F; /* 0x38035638: je 0x3803562f */
  36854 L_3803563A:
  36855     ebp = POP32_VAL(esp); /* 0x3803563A: pop ebp */
  36856     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803563B: ret  */
  36857     RECOMP_REGS_OUT();
  36858 }
  36859 
  36860 void sub_38035640(void) {
  36861     int _fpu_cmp = 0;
  36862     uint32_t _cf = 0;
  36863     int _df = 1;
  36864     uint32_t _flag_k = FK_NONE;
  36865     uint32_t _flag_a = 0, _flag_b = 0;
  36866     uint32_t _itail_tgt = 0;
  36867     RECOMP_REGS_LOCALS
  36868     RECOMP_ENTER(0x38035640u);
  36869 
  36870 L_38035640:
  36871     PUSH32(esp, ebp); /* 0x38035640: push ebp */
  36872     ebp = esp; /* 0x38035641: mov ebp, esp */
  36873     PUSH32(esp, ebx); /* 0x38035643: push ebx */
  36874     PUSH32(esp, esi); /* 0x38035644: push esi */
  36875     ebx = ecx; /* 0x38035645: mov ebx, ecx */
  36876     eax = MEM32(ebx + 0x8); /* 0x38035647: mov eax, dword ptr [ebx + 8] */
  36877     PUSH32(esp, edi); /* 0x3803564A: push edi */
  36878     edi = MEM32(ebp + 0x8); /* 0x3803564B: mov edi, dword ptr [ebp + 8] */
  36879     /* cmp edi, eax */ /* 0x3803564E: cmp edi, eax */
  36880     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  36881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36882     _flag_k = FK_CMP;
  36883     esi = edi; /* 0x38035650: mov esi, edi */
  36884     if (CMP_EQ(_flag_a, _flag_b)) goto L_38035673; /* 0x38035652: je 0x38035673 */
  36885 L_38035654:
  36886     eax = MEM32(esi + 0x8); /* 0x38035654: mov eax, dword ptr [esi + 8] */
  36887     PUSH32(esp, eax); /* 0x38035657: push eax */
  36888     ecx = ebx; /* 0x38035658: mov ecx, ebx */
  36889     RECOMP_ICALL(0x38035640u); /* 0x3803565A: call 0x38035640 */ /* not lifted */
  36890     RECOMP_FLAGS_IN();
  36891     esi = MEM32(esi); /* 0x3803565F: mov esi, dword ptr [esi] */
  36892     PUSH32(esp, edi); /* 0x38035661: push edi */
  36893     RECOMP_ICALL(0x3804B4F6u); /* 0x38035662: call 0x3804b4f6 */ /* not lifted */
  36894     RECOMP_FLAGS_IN();
  36895     eax = MEM32(ebx + 0x8); /* 0x38035667: mov eax, dword ptr [ebx + 8] */
  36896     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  36897     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  36898     esp = esp + 4; /* 0x3803566A: add esp, 4 */
  36899     _flag_k = FK_ADD;
  36900     /* cmp esi, eax */ /* 0x3803566D: cmp esi, eax */
  36901     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  36902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  36903     _flag_k = FK_CMP;
  36904     edi = esi; /* 0x3803566F: mov edi, esi */
  36905     RECOMP_BACKEDGE();
  36906     if (CMP_NE(_flag_a, _flag_b)) goto L_38035654; /* 0x38035671: jne 0x38035654 */
  36907 L_38035673:
  36908     edi = POP32_VAL(esp); /* 0x38035673: pop edi */
  36909     esi = POP32_VAL(esp); /* 0x38035674: pop esi */
  36910     ebx = POP32_VAL(esp); /* 0x38035675: pop ebx */
  36911     ebp = POP32_VAL(esp); /* 0x38035676: pop ebp */
  36912     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38035677: ret 4 */
  36913     RECOMP_REGS_OUT();
  36914 }
  36915 
  36916 void sub_38035680(void) {
  36917     int _fpu_cmp = 0;
  36918     uint32_t _cf = 0;
  36919     int _df = 1;
  36920     uint32_t _flag_k = FK_NONE;
  36921     uint32_t _flag_a = 0, _flag_b = 0;
  36922     uint32_t _itail_tgt = 0;
  36923     RECOMP_REGS_LOCALS
  36924     RECOMP_ENTER(0x38035680u);
  36925 
  36926 L_38035680:
  36927     PUSH32(esp, ebp); /* 0x38035680: push ebp */
  36928     ebp = esp; /* 0x38035681: mov ebp, esp */
  36929     eax = ecx; /* 0x38035683: mov eax, ecx */
  36930     ecx = MEM32(ebp + 0x8); /* 0x38035685: mov ecx, dword ptr [ebp + 8] */
  36931     edx = MEM32(ecx); /* 0x38035688: mov edx, dword ptr [ecx] */
  36932     ecx = MEM32(ebp + 0xC); /* 0x3803568A: mov ecx, dword ptr [ebp + 0xc] */
  36933     MEM32(eax) = edx; /* 0x3803568D: mov dword ptr [eax], edx */
  36934     SET_LO8(edx, MEM8(ecx)); /* 0x3803568F: mov dl, byte ptr [ecx] */
  36935     MEM8(eax + 0x4) = (uint8_t)(LO8(edx)); /* 0x38035691: mov byte ptr [eax + 4], dl */
  36936     ebp = POP32_VAL(esp); /* 0x38035694: pop ebp */
  36937     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38035695: ret 8 */
  36938     RECOMP_REGS_OUT();
  36939 }
  36940 
  36941 void sub_380356A0(void) {
  36942     int _fpu_cmp = 0;
  36943     uint32_t _cf = 0;
  36944     int _df = 1;
  36945     uint32_t _flag_k = FK_NONE;
  36946     uint32_t _flag_a = 0, _flag_b = 0;
  36947     uint32_t _itail_tgt = 0;
  36948     RECOMP_REGS_LOCALS
  36949     RECOMP_ENTER(0x380356A0u);
  36950 
  36951 L_380356A0:
  36952     RECOMP_ICALL(0x380356B0u); /* 0x380356A0: call 0x380356b0 */ /* not lifted */
  36953     RECOMP_FLAGS_IN();
  36954     goto L_380356C0; /* 0x380356A5: jmp 0x380356c0 */
  36955 L_380356C0:
  36956     PUSH32(esp, 0x380356D0u); /* 0x380356C0: push 0x380356d0 */
  36957     RECOMP_ICALL(0x3804B54Cu); /* 0x380356C5: call 0x3804b54c */ /* not lifted */
  36958     RECOMP_FLAGS_IN();
  36959     ecx = POP32_VAL(esp); /* 0x380356CA: pop ecx */
  36960     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380356CB: ret  */
  36961     RECOMP_REGS_OUT();
  36962 }
  36963 
  36964 void sub_380356B0(void) {
  36965     int _fpu_cmp = 0;
  36966     uint32_t _cf = 0;
  36967     int _df = 1;
  36968     uint32_t _flag_k = FK_NONE;
  36969     uint32_t _flag_a = 0, _flag_b = 0;
  36970     uint32_t _itail_tgt = 0;
  36971     RECOMP_REGS_LOCALS
  36972     RECOMP_ENTER(0x380356B0u);
  36973 
  36974 L_380356B0:
  36975     ecx = 0x3806EF0Du; /* 0x380356B0: mov ecx, 0x3806ef0d */
  36976 L_380356B5:
  36977     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
  36978     { RECOMP_REGS_OUT(); return; } /* end of function */
  36979   _ljump:
  36980     switch (_itail_tgt) {
  36981       case 0x380356B0u: goto L_380356B0;
  36982       case 0x380356B5u: goto L_380356B5;
  36983       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  36984     }
  36985     RECOMP_REGS_OUT();
  36986 }
  36987 
  36988 void sub_380356C0(void) {
  36989     int _fpu_cmp = 0;
  36990     uint32_t _cf = 0;
  36991     int _df = 1;
  36992     uint32_t _flag_k = FK_NONE;
  36993     uint32_t _flag_a = 0, _flag_b = 0;
  36994     uint32_t _itail_tgt = 0;
  36995     RECOMP_REGS_LOCALS
  36996     RECOMP_ENTER(0x380356C0u);
  36997 
  36998 L_380356C0:
  36999     PUSH32(esp, 0x380356D0u); /* 0x380356C0: push 0x380356d0 */
  37000     RECOMP_ICALL(0x3804B54Cu); /* 0x380356C5: call 0x3804b54c */ /* not lifted */
  37001     RECOMP_FLAGS_IN();
  37002     ecx = POP32_VAL(esp); /* 0x380356CA: pop ecx */
  37003     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380356CB: ret  */
  37004     RECOMP_REGS_OUT();
  37005 }
  37006 
  37007 void sub_380356D0(void) {
  37008     int _fpu_cmp = 0;
  37009     uint32_t _cf = 0;
  37010     int _df = 1;
  37011     uint32_t _flag_k = FK_NONE;
  37012     uint32_t _flag_a = 0, _flag_b = 0;
  37013     uint32_t _itail_tgt = 0;
  37014     RECOMP_REGS_LOCALS
  37015     RECOMP_ENTER(0x380356D0u);
  37016 
  37017 L_380356D0:
  37018     ecx = 0x3806EF0Du; /* 0x380356D0: mov ecx, 0x3806ef0d */
  37019 L_380356D5:
  37020     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
  37021     { RECOMP_REGS_OUT(); return; } /* end of function */
  37022   _ljump:
  37023     switch (_itail_tgt) {
  37024       case 0x380356D0u: goto L_380356D0;
  37025       case 0x380356D5u: goto L_380356D5;
  37026       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  37027     }
  37028     RECOMP_REGS_OUT();
  37029 }
  37030 
  37031 void sub_380356E0(void) {
  37032     int _fpu_cmp = 0;
  37033     uint32_t _cf = 0;
  37034     int _df = 1;
  37035     uint32_t _flag_k = FK_NONE;
  37036     uint32_t _flag_a = 0, _flag_b = 0;
  37037     uint32_t _itail_tgt = 0;
  37038     RECOMP_REGS_LOCALS
  37039     RECOMP_ENTER(0x380356E0u);
  37040 
  37041 L_380356E0:
  37042     RECOMP_ICALL(0x380356F0u); /* 0x380356E0: call 0x380356f0 */ /* not lifted */
  37043     RECOMP_FLAGS_IN();
  37044     goto L_38035700; /* 0x380356E5: jmp 0x38035700 */
  37045 L_38035700:
  37046     PUSH32(esp, 0x38035710u); /* 0x38035700: push 0x38035710 */
  37047     RECOMP_ICALL(0x3804B54Cu); /* 0x38035705: call 0x3804b54c */ /* not lifted */
  37048     RECOMP_FLAGS_IN();
  37049     ecx = POP32_VAL(esp); /* 0x3803570A: pop ecx */
  37050     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803570B: ret  */
  37051     RECOMP_REGS_OUT();
  37052 }
  37053 
  37054 void sub_380356F0(void) {
  37055     int _fpu_cmp = 0;
  37056     uint32_t _cf = 0;
  37057     int _df = 1;
  37058     uint32_t _flag_k = FK_NONE;
  37059     uint32_t _flag_a = 0, _flag_b = 0;
  37060     uint32_t _itail_tgt = 0;
  37061     RECOMP_REGS_LOCALS
  37062     RECOMP_ENTER(0x380356F0u);
  37063 
  37064 L_380356F0:
  37065     ecx = 0x3806EF0Cu; /* 0x380356F0: mov ecx, 0x3806ef0c */
  37066 L_380356F5:
  37067     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
  37068     { RECOMP_REGS_OUT(); return; } /* end of function */
  37069   _ljump:
  37070     switch (_itail_tgt) {
  37071       case 0x380356F0u: goto L_380356F0;
  37072       case 0x380356F5u: goto L_380356F5;
  37073       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  37074     }
  37075     RECOMP_REGS_OUT();
  37076 }
  37077 
  37078 void sub_38035700(void) {
  37079     int _fpu_cmp = 0;
  37080     uint32_t _cf = 0;
  37081     int _df = 1;
  37082     uint32_t _flag_k = FK_NONE;
  37083     uint32_t _flag_a = 0, _flag_b = 0;
  37084     uint32_t _itail_tgt = 0;
  37085     RECOMP_REGS_LOCALS
  37086     RECOMP_ENTER(0x38035700u);
  37087 
  37088 L_38035700:
  37089     PUSH32(esp, 0x38035710u); /* 0x38035700: push 0x38035710 */
  37090     RECOMP_ICALL(0x3804B54Cu); /* 0x38035705: call 0x3804b54c */ /* not lifted */
  37091     RECOMP_FLAGS_IN();
  37092     ecx = POP32_VAL(esp); /* 0x3803570A: pop ecx */
  37093     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803570B: ret  */
  37094     RECOMP_REGS_OUT();
  37095 }
  37096 
  37097 void sub_38035710(void) {
  37098     int _fpu_cmp = 0;
  37099     uint32_t _cf = 0;
  37100     int _df = 1;
  37101     uint32_t _flag_k = FK_NONE;
  37102     uint32_t _flag_a = 0, _flag_b = 0;
  37103     uint32_t _itail_tgt = 0;
  37104     RECOMP_REGS_LOCALS
  37105     RECOMP_ENTER(0x38035710u);
  37106 
  37107 L_38035710:
  37108     ecx = 0x3806EF0Cu; /* 0x38035710: mov ecx, 0x3806ef0c */
  37109 L_38035715:
  37110     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
  37111     { RECOMP_REGS_OUT(); return; } /* end of function */
  37112   _ljump:
  37113     switch (_itail_tgt) {
  37114       case 0x38035710u: goto L_38035710;
  37115       case 0x38035715u: goto L_38035715;
  37116       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  37117     }
  37118     RECOMP_REGS_OUT();
  37119 }
  37120 
  37121 void sub_38035720(void) {
  37122     int _fpu_cmp = 0;
  37123     uint32_t _cf = 0;
  37124     int _df = 1;
  37125     uint32_t _flag_k = FK_NONE;
  37126     uint32_t _flag_a = 0, _flag_b = 0;
  37127     uint32_t _itail_tgt = 0;
  37128     RECOMP_REGS_LOCALS
  37129     RECOMP_ENTER(0x38035720u);
  37130 
  37131 L_38035720:
  37132     PUSH32(esp, ebp); /* 0x38035720: push ebp */
  37133     ebp = esp; /* 0x38035721: mov ebp, esp */
  37134     eax = MEM32(ebp + 0x8); /* 0x38035723: mov eax, dword ptr [ebp + 8] */
  37135     edx = MEM32(ebp + 0xC); /* 0x38035726: mov edx, dword ptr [ebp + 0xc] */
  37136     ecx = MEM32(ecx + 0x54); /* 0x38035729: mov ecx, dword ptr [ecx + 0x54] */
  37137     PUSH32(esp, eax); /* 0x3803572C: push eax */
  37138     PUSH32(esp, edx); /* 0x3803572D: push edx */
  37139     RECOMP_ICALL(0x3802B820u); /* 0x3803572E: call 0x3802b820 */ /* not lifted */
  37140     RECOMP_FLAGS_IN();
  37141     /* test eax, eax */ /* 0x38035733: test eax, eax */
  37142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  37143     _cf = 0;
  37144     _flag_k = FK_TEST;
  37145     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803573E; /* 0x38035735: jne 0x3803573e */
  37146 L_38035737:
  37147     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  37148     eax = eax | 0xFFFFFFFFu; /* 0x38035737: or eax, 0xffffffff */
  37149     _cf = 0;
  37150     _flag_k = FK_TEST;
  37151     ebp = POP32_VAL(esp); /* 0x3803573A: pop ebp */
  37152     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3803573B: ret 8 */
  37153 L_3803573E:
  37154     eax = MEM32(eax + 0xC); /* 0x3803573E: mov eax, dword ptr [eax + 0xc] */
  37155     ebp = POP32_VAL(esp); /* 0x38035741: pop ebp */
  37156     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38035742: ret 8 */
  37157     RECOMP_REGS_OUT();
  37158 }
  37159 
  37160 void sub_38035750(void) {
  37161     int _fpu_cmp = 0;
  37162     uint32_t _cf = 0;
  37163     int _df = 1;
  37164     uint32_t _flag_k = FK_NONE;
  37165     uint32_t _flag_a = 0, _flag_b = 0;
  37166     uint32_t _itail_tgt = 0;
  37167     RECOMP_REGS_LOCALS
  37168     RECOMP_ENTER(0x38035750u);
  37169 
  37170 L_38035750:
  37171     PUSH32(esp, ebp); /* 0x38035750: push ebp */
  37172     ebp = esp; /* 0x38035751: mov ebp, esp */
  37173     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  37174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  37175     esp = esp - 8; /* 0x38035753: sub esp, 8 */
  37176     _flag_k = FK_CMP;
  37177     edx = MEM32(ebp + 0x8); /* 0x38035756: mov edx, dword ptr [ebp + 8] */
  37178     fp_push(*(float*)&MEM32(edx)); /* 0x38035759: fld dword ptr [edx] */
  37179     PUSH32(esp, ebx); /* 0x3803575B: push ebx */
  37180     ebx = ecx; /* 0x3803575C: mov ebx, ecx */
  37181     ecx = MEM32(ebx + 0x24); /* 0x3803575E: mov ecx, dword ptr [ebx + 0x24] */
  37182     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x8)); /* 0x38035761: fcom dword ptr [ecx + 8] */
  37183     PUSH32(esp, esi); /* 0x38035764: push esi */
  37184     PUSH32(esp, edi); /* 0x38035765: push edi */
  37185     MEM32(ebp + (-0x4)) = ebx; /* 0x38035766: mov dword ptr [ebp - 4], ebx */
  37186     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38035769: fnstsw ax */
  37187     /* test HI8(eax), 1 */ /* 0x3803576B: test ah, 1 */
  37188     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  37189     _cf = 0;
  37190     _flag_k = FK_NARROW(FK_TEST, 24);
  37191     if (TEST_NZ(_flag_a, _flag_b)) goto L_380357B4; /* 0x3803576E: jne 0x380357b4 */
  37192 L_38035770:
  37193     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0xC)); /* 0x38035770: fcomp dword ptr [ecx + 0xc] */
  37194     fp_pop();
  37195     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38035773: fnstsw ax */
  37196     /* test HI8(eax), 1 */ /* 0x38035775: test ah, 1 */
  37197     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  37198     _cf = 0;
  37199     _flag_k = FK_NARROW(FK_TEST, 24);
  37200     if (TEST_Z(_flag_a, _flag_b)) goto L_380357A8; /* 0x38035778: je 0x380357a8 */
  37201 L_3803577A:
  37202     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x3803577A: fld dword ptr [edx + 4] */
  37203     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x14)); /* 0x3803577D: fcom dword ptr [ecx + 0x14] */
  37204     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38035780: fnstsw ax */
  37205     /* test HI8(eax), 1 */ /* 0x38035782: test ah, 1 */
  37206     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  37207     _cf = 0;
  37208     _flag_k = FK_NARROW(FK_TEST, 24);
  37209     if (TEST_NZ(_flag_a, _flag_b)) goto L_380357B4; /* 0x38035785: jne 0x380357b4 */
  37210 L_38035787:
  37211     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x18)); /* 0x38035787: fcomp dword ptr [ecx + 0x18] */
  37212     fp_pop();
  37213     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803578A: fnstsw ax */
  37214     /* test HI8(eax), 1 */ /* 0x3803578C: test ah, 1 */
  37215     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  37216     _cf = 0;
  37217     _flag_k = FK_NARROW(FK_TEST, 24);
  37218     if (TEST_Z(_flag_a, _flag_b)) goto L_380357A8; /* 0x3803578F: je 0x380357a8 */
  37219 L_38035791:
  37220     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x38035791: fld dword ptr [edx + 8] */
  37221     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x20)); /* 0x38035794: fcom dword ptr [ecx + 0x20] */
  37222     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x38035797: fnstsw ax */
  37223     /* test HI8(eax), 1 */ /* 0x38035799: test ah, 1 */
  37224     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  37225     _cf = 0;
  37226     _flag_k = FK_NARROW(FK_TEST, 24);
  37227     if (TEST_NZ(_flag_a, _flag_b)) goto L_380357B4; /* 0x3803579C: jne 0x380357b4 */
  37228 L_3803579E:
  37229     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x24)); /* 0x3803579E: fcomp dword ptr [ecx + 0x24] */
  37230     fp_pop();
  37231     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x380357A1: fnstsw ax */
  37232     /* test HI8(eax), 1 */ /* 0x380357A3: test ah, 1 */
  37233     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  37234     _cf = 0;
  37235     _flag_k = FK_NARROW(FK_TEST, 24);
  37236     if (TEST_NZ(_flag_a, _flag_b)) goto L_380357C2; /* 0x380357A6: jne 0x380357c2 */
  37237 L_380357A8:
  37238     edi = POP32_VAL(esp); /* 0x380357A8: pop edi */
  37239     esi = POP32_VAL(esp); /* 0x380357A9: pop esi */
  37240     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  37241     eax = eax | 0xFFFFFFFFu; /* 0x380357AA: or eax, 0xffffffff */
  37242     _cf = 0;
  37243     _flag_k = FK_TEST;
  37244     ebx = POP32_VAL(esp); /* 0x380357AD: pop ebx */
  37245     esp = ebp; /* 0x380357AE: mov esp, ebp */
  37246     ebp = POP32_VAL(esp); /* 0x380357B0: pop ebp */
  37247     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380357B1: ret 4 */
  37248 L_380357B4:
  37249     edi = POP32_VAL(esp); /* 0x380357B4: pop edi */
  37250     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x380357B5: fstp st(0) */
  37251     esi = POP32_VAL(esp); /* 0x380357B7: pop esi */
  37252     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  37253     eax = eax | 0xFFFFFFFFu; /* 0x380357B8: or eax, 0xffffffff */
  37254     _cf = 0;
  37255     _flag_k = FK_TEST;
  37256     ebx = POP32_VAL(esp); /* 0x380357BB: pop ebx */
  37257     esp = ebp; /* 0x380357BC: mov esp, ebp */
  37258     ebp = POP32_VAL(esp); /* 0x380357BE: pop ebp */
  37259     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380357BF: ret 4 */
  37260 L_380357C2:
  37261     PUSH32(esp, edx); /* 0x380357C2: push edx */
  37262     RECOMP_ICALL(MEM32(0x3804E794)); /* 0x380357C3: call dword ptr [0x3804e794] */
  37263     RECOMP_FLAGS_IN();
  37264     esi = MEM32(eax + 0x4); /* 0x380357C9: mov esi, dword ptr [eax + 4] */
  37265     /* cmp esi, MEM32(eax + 0x8) */ /* 0x380357CC: cmp esi, dword ptr [eax + 8] */
  37266     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  37267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  37268     _flag_k = FK_CMP;
  37269     MEM32(ebp + (-0x8)) = eax; /* 0x380357CF: mov dword ptr [ebp - 8], eax */
  37270     RECOMP_BACKEDGE();
  37271     if (CMP_EQ(_flag_a, _flag_b)) goto L_380357A8; /* 0x380357D2: je 0x380357a8 */
  37272 L_380357D4:
  37273     goto L_380357D9; /* 0x380357D4: jmp 0x380357d9 */
  37274 L_380357D6:
  37275     ebx = MEM32(ebp + (-0x4)); /* 0x380357D6: mov ebx, dword ptr [ebp - 4] */
  37276 L_380357D9:
  37277     eax = MEM32(esi); /* 0x380357D9: mov eax, dword ptr [esi] */
  37278     edi = MEM32(eax); /* 0x380357DB: mov edi, dword ptr [eax] */
  37279     ecx = MEM32(ebx + 0x54); /* 0x380357DD: mov ecx, dword ptr [ebx + 0x54] */
  37280     PUSH32(esp, edi); /* 0x380357E0: push edi */
  37281     RECOMP_ICALL(0x3802B990u); /* 0x380357E1: call 0x3802b990 */ /* not lifted */
  37282     RECOMP_FLAGS_IN();
  37283     ecx = MEM32(ebp + (-0x4)); /* 0x380357E6: mov ecx, dword ptr [ebp - 4] */
  37284     ecx = MEM32(ecx + 0x54); /* 0x380357E9: mov ecx, dword ptr [ecx + 0x54] */
  37285     ebx = eax; /* 0x380357EC: mov ebx, eax */
  37286     RECOMP_ICALL(0x38029E80u); /* 0x380357EE: call 0x38029e80 */ /* not lifted */
  37287     RECOMP_FLAGS_IN();
  37288     edx = MEM32(ebp + 0x8); /* 0x380357F3: mov edx, dword ptr [ebp + 8] */
  37289     PUSH32(esp, eax); /* 0x380357F6: push eax */
  37290     PUSH32(esp, edx); /* 0x380357F7: push edx */
  37291     ecx = ebx; /* 0x380357F8: mov ecx, ebx */
  37292     RECOMP_ICALL(0x38031910u); /* 0x380357FA: call 0x38031910 */ /* not lifted */
  37293     RECOMP_FLAGS_IN();
  37294     /* test LO8(eax), LO8(eax) */ /* 0x380357FF: test al, al */
  37295     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  37296     _cf = 0;
  37297     _flag_k = FK_NARROW(FK_TEST, 24);
  37298     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803581C; /* 0x38035801: jne 0x3803581c */
  37299 L_38035803:
  37300     eax = MEM32(ebp + (-0x8)); /* 0x38035803: mov eax, dword ptr [ebp - 8] */
  37301     ecx = MEM32(eax + 0x8); /* 0x38035806: mov ecx, dword ptr [eax + 8] */
  37302     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  37303     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  37304     esi = esi + 4; /* 0x38035809: add esi, 4 */
  37305     _flag_k = FK_ADD;
  37306     /* cmp esi, ecx */ /* 0x3803580C: cmp esi, ecx */
  37307     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  37308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  37309     _flag_k = FK_CMP;
  37310     RECOMP_BACKEDGE();
  37311     if (CMP_NE(_flag_a, _flag_b)) goto L_380357D6; /* 0x3803580E: jne 0x380357d6 */
  37312 L_38035810:
  37313     edi = POP32_VAL(esp); /* 0x38035810: pop edi */
  37314     esi = POP32_VAL(esp); /* 0x38035811: pop esi */
  37315     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
  37316     eax = eax | 0xFFFFFFFFu; /* 0x38035812: or eax, 0xffffffff */
  37317     _cf = 0;
  37318     _flag_k = FK_TEST;
  37319     ebx = POP32_VAL(esp); /* 0x38035815: pop ebx */
  37320     esp = ebp; /* 0x38035816: mov esp, ebp */
  37321     ebp = POP32_VAL(esp); /* 0x38035818: pop ebp */
  37322     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38035819: ret 4 */
  37323 L_3803581C:
  37324     eax = edi; /* 0x3803581C: mov eax, edi */
  37325     edi = POP32_VAL(esp); /* 0x3803581E: pop edi */
  37326     esi = POP32_VAL(esp); /* 0x3803581F: pop esi */
  37327     ebx = POP32_VAL(esp); /* 0x38035820: pop ebx */
  37328     esp = ebp; /* 0x38035821: mov esp, ebp */
  37329     ebp = POP32_VAL(esp); /* 0x38035823: pop ebp */
  37330     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38035824: ret 4 */
  37331     RECOMP_REGS_OUT();
  37332 }
  37333 
  37334 void sub_38035830(void) {
  37335     int _fpu_cmp = 0;
  37336     uint32_t _cf = 0;
  37337     int _df = 1;
  37338     uint32_t _flag_k = FK_NONE;
  37339     uint32_t _flag_a = 0, _flag_b = 0;
  37340     uint32_t _itail_tgt = 0;
  37341     RECOMP_REGS_LOCALS
  37342     RECOMP_ENTER(0x38035830u);
  37343 
  37344 L_38035830:
  37345     PUSH32(esp, ebp); /* 0x38035830: push ebp */
  37346     ebp = esp; /* 0x38035831: mov ebp, esp */
  37347     PUSH32(esp, esi); /* 0x38035833: push esi */
  37348     PUSH32(esp, edi); /* 0x38035834: push edi */
  37349     edi = MEM32(ebp + 0x8); /* 0x38035835: mov edi, dword ptr [ebp + 8] */
  37350     esi = ecx; /* 0x38035838: mov esi, ecx */
  37351     PUSH32(esp, edi); /* 0x3803583A: push edi */
  37352     RECOMP_ICALL(MEM32(0x3804E798)); /* 0x3803583B: call dword ptr [0x3804e798] */
  37353     RECOMP_FLAGS_IN();
  37354     eax = MEM32(edi + 0x50); /* 0x38035841: mov eax, dword ptr [edi + 0x50] */
  37355     MEM32(esi + 0x50) = eax; /* 0x38035844: mov dword ptr [esi + 0x50], eax */
  37356     ecx = MEM32(edi + 0x54); /* 0x38035847: mov ecx, dword ptr [edi + 0x54] */
  37357     edi = POP32_VAL(esp); /* 0x3803584A: pop edi */
  37358     MEM32(esi + 0x54) = ecx; /* 0x3803584B: mov dword ptr [esi + 0x54], ecx */
  37359     MEM32(esi) = 0x3804F4C4u; /* 0x3803584E: mov dword ptr [esi], 0x3804f4c4 */
  37360     MEM32(esi + 0x4) = 0x3804F4BCu; /* 0x38035854: mov dword ptr [esi + 4], 0x3804f4bc */
  37361     eax = esi; /* 0x3803585B: mov eax, esi */
  37362     esi = POP32_VAL(esp); /* 0x3803585D: pop esi */
  37363     ebp = POP32_VAL(esp); /* 0x3803585E: pop ebp */
  37364     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3803585F: ret 4 */
  37365     RECOMP_REGS_OUT();
  37366 }
  37367 
  37368 void sub_38035870(void) {
  37369     int _fpu_cmp = 0;
  37370     uint32_t _cf = 0;
  37371     int _df = 1;
  37372     uint32_t _flag_k = FK_NONE;
  37373     uint32_t _flag_a = 0, _flag_b = 0;
  37374     uint32_t _itail_tgt = 0;
  37375     RECOMP_REGS_LOCALS
  37376     RECOMP_ENTER(0x38035870u);
  37377 
  37378 L_38035870:
  37379     PUSH32(esp, ebp); /* 0x38035870: push ebp */
  37380     ebp = esp; /* 0x38035871: mov ebp, esp */
  37381     PUSH32(esp, 0xFFFFFFFFu); /* 0x38035873: push -1 */
  37382     PUSH32(esp, 0x3804CC3Bu); /* 0x38035875: push 0x3804cc3b */
  37383     eax = MEM32(FS_BASE + (0)); /* 0x3803587A: mov eax, dword ptr fs:[0] */
  37384     PUSH32(esp, eax); /* 0x38035880: push eax */
  37385     MEM32(FS_BASE + (0)) = esp; /* 0x38035881: mov dword ptr fs:[0], esp */
  37386     PUSH32(esp, ecx); /* 0x38035888: push ecx */
  37387     PUSH32(esp, esi); /* 0x38035889: push esi */
  37388     PUSH32(esp, 0x58u); /* 0x3803588A: push 0x58 */
  37389     esi = ecx; /* 0x3803588C: mov esi, ecx */
  37390     RECOMP_ICALL(0x3804B676u); /* 0x3803588E: call 0x3804b676 */ /* not lifted */
  37391     RECOMP_FLAGS_IN();
  37392     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  37393     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  37394     esp = esp + 4; /* 0x38035893: add esp, 4 */
  37395     _flag_k = FK_ADD;
  37396     MEM32(ebp + (-0x10)) = eax; /* 0x38035896: mov dword ptr [ebp - 0x10], eax */
  37397     /* test eax, eax */ /* 0x38035899: test eax, eax */
  37398     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  37399     _cf = 0;
  37400     _flag_k = FK_TEST;
  37401     MEM32(ebp + (-0x4)) = 0; /* 0x3803589B: mov dword ptr [ebp - 4], 0 */
  37402     if (TEST_Z(_flag_a, _flag_b)) goto L_380358BB; /* 0x380358A2: je 0x380358bb */
  37403 L_380358A4:
  37404     PUSH32(esp, esi); /* 0x380358A4: push esi */
  37405     ecx = eax; /* 0x380358A5: mov ecx, eax */
  37406     RECOMP_ICALL(0x38035830u); /* 0x380358A7: call 0x38035830 */ /* not lifted */
  37407     RECOMP_FLAGS_IN();
  37408     esi = POP32_VAL(esp); /* 0x380358AC: pop esi */
  37409     ecx = MEM32(ebp + (-0xC)); /* 0x380358AD: mov ecx, dword ptr [ebp - 0xc] */
  37410     MEM32(FS_BASE + (0)) = ecx; /* 0x380358B0: mov dword ptr fs:[0], ecx */
  37411     esp = ebp; /* 0x380358B7: mov esp, ebp */
  37412     ebp = POP32_VAL(esp); /* 0x380358B9: pop ebp */
  37413     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380358BA: ret  */
  37414 L_380358BB:
  37415     ecx = MEM32(ebp + (-0xC)); /* 0x380358BB: mov ecx, dword ptr [ebp - 0xc] */
  37416     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  37417     eax = 0; /* 0x380358BE: xor eax, eax */
  37418     _cf = 0;
  37419     _flag_k = FK_TEST;
  37420     esi = POP32_VAL(esp); /* 0x380358C0: pop esi */
  37421     MEM32(FS_BASE + (0)) = ecx; /* 0x380358C1: mov dword ptr fs:[0], ecx */
  37422     esp = ebp; /* 0x380358C8: mov esp, ebp */
  37423     ebp = POP32_VAL(esp); /* 0x380358CA: pop ebp */
  37424     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380358CB: ret  */
  37425     RECOMP_REGS_OUT();
  37426 }