aorecomp

Anarchy Online classic in the browser

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


client/game/ggr.dll/lifted-0004.c (1241568B)


      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_30009870(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(0x30009870u);
     17 
     18 L_30009870:
     19     PUSH32(esp, ebp); /* 0x30009870: push ebp */
     20     ebp = esp; /* 0x30009871: mov ebp, esp */
     21     eax = MEM32(ebp + 0x8); /* 0x30009873: mov eax, dword ptr [ebp + 8] */
     22     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x30009876: fld dword ptr [eax + 8] */
     23     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x30009879: fmul dword ptr [ecx + 8] */
     24     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x3000987C: fld dword ptr [eax + 4] */
     25     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x3000987F: fmul dword ptr [ecx + 4] */
     26     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009882: faddp st(1) */
     27     fp_push(*(float*)&MEM32(eax)); /* 0x30009884: fld dword ptr [eax] */
     28     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x30009886: fmul dword ptr [ecx] */
     29     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009888: faddp st(1) */
     30     _st[0] -= (double)*(float*)ADDR(ecx + 0xC); /* 0x3000988A: fsub dword ptr [ecx + 0xc] */
     31     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001E27C)); /* 0x3000988D: fcom dword ptr [0x3001e27c] */
     32     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30009893: fnstsw ax */
     33     /* test HI8(eax), 0x41u */ /* 0x30009895: test ah, 0x41 */
     34     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
     35     _cf = 0;
     36     _flag_k = FK_NARROW(FK_TEST, 24);
     37     if (TEST_NZ(_flag_a, _flag_b)) goto L_300098A5; /* 0x30009898: jne 0x300098a5 */
     38 L_3000989A:
     39     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000989A: fstp st(0) */
     40     eax = 1; /* 0x3000989C: mov eax, 1 */
     41     ebp = POP32_VAL(esp); /* 0x300098A1: pop ebp */
     42     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300098A2: ret 4 */
     43 L_300098A5:
     44     fp_push(*(float*)&MEM32(0x3001E27C)); /* 0x300098A5: fld dword ptr [0x3001e27c] */
     45     _st[0] = -_st[0]; /* 0x300098AB: fchs  */
     46     fp_xch(1); /* 0x300098AD: fxch st(1) */
     47     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300098AF: fcompp  */
     48     fp_pop(); fp_pop();
     49     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300098B1: fnstsw ax */
     50     /* test HI8(eax), 1 */ /* 0x300098B3: test ah, 1 */
     51     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
     52     _cf = 0;
     53     _flag_k = FK_NARROW(FK_TEST, 24);
     54     if (TEST_Z(_flag_a, _flag_b)) goto L_300098BF; /* 0x300098B6: je 0x300098bf */
     55 L_300098B8:
     56     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
     57     eax = eax | 0xFFFFFFFFu; /* 0x300098B8: or eax, 0xffffffff */
     58     _cf = 0;
     59     _flag_k = FK_TEST;
     60     ebp = POP32_VAL(esp); /* 0x300098BB: pop ebp */
     61     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300098BC: ret 4 */
     62 L_300098BF:
     63     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     64     eax = 0; /* 0x300098BF: xor eax, eax */
     65     _cf = 0;
     66     _flag_k = FK_TEST;
     67     ebp = POP32_VAL(esp); /* 0x300098C1: pop ebp */
     68     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300098C2: ret 4 */
     69     RECOMP_REGS_OUT();
     70 }
     71 
     72 void sub_300098D0(void) {
     73     int _fpu_cmp = 0;
     74     uint32_t _cf = 0;
     75     int _df = 1;
     76     uint32_t _flag_k = FK_NONE;
     77     uint32_t _flag_a = 0, _flag_b = 0;
     78     uint32_t _itail_tgt = 0;
     79     RECOMP_REGS_LOCALS
     80     RECOMP_ENTER(0x300098D0u);
     81 
     82 L_300098D0:
     83     PUSH32(esp, ebp); /* 0x300098D0: push ebp */
     84     ebp = esp; /* 0x300098D1: mov ebp, esp */
     85     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u);
     86     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     87     esp = esp - 0x30u; /* 0x300098D3: sub esp, 0x30 */
     88     _flag_k = FK_CMP;
     89     eax = MEM32(0x3001E27C); /* 0x300098D6: mov eax, dword ptr [0x3001e27c] */
     90     PUSH32(esp, ebx); /* 0x300098DB: push ebx */
     91     PUSH32(esp, esi); /* 0x300098DC: push esi */
     92     ebx = ecx; /* 0x300098DD: mov ebx, ecx */
     93     ecx = MEM32(ebp + 0x8); /* 0x300098DF: mov ecx, dword ptr [ebp + 8] */
     94     PUSH32(esp, edi); /* 0x300098E2: push edi */
     95     MEM32(ebp + (-0x8)) = eax; /* 0x300098E3: mov dword ptr [ebp - 8], eax */
     96     eax = MEM32(ecx + 0x4); /* 0x300098E6: mov eax, dword ptr [ecx + 4] */
     97     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     98     edi = 0; /* 0x300098E9: xor edi, edi */
     99     _cf = 0;
    100     _flag_k = FK_TEST;
    101     /* cmp eax, edi */ /* 0x300098EB: cmp eax, edi */
    102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    104     _flag_k = FK_CMP;
    105     esi = 2; /* 0x300098ED: mov esi, 2 */
    106     MEM32(ebp + (-0xC)) = eax; /* 0x300098F2: mov dword ptr [ebp - 0xc], eax */
    107     MEM32(ebp + (-0x4)) = edi; /* 0x300098F5: mov dword ptr [ebp - 4], edi */
    108     if (CMP_LE(_flag_a, _flag_b)) goto L_3000993E; /* 0x300098F8: jle 0x3000993e */
    109 L_300098FA:
    110     edx = MEM32(ebp + (-0x8)); /* 0x300098FA: mov edx, dword ptr [ebp - 8] */
    111     ecx = MEM32(ebp + 0x8); /* 0x300098FD: mov ecx, dword ptr [ebp + 8] */
    112     PUSH32(esp, edx); /* 0x30009900: push edx */
    113     edx = MEM32(ecx); /* 0x30009901: mov edx, dword ptr [ecx] */
    114     eax = edi; /* 0x30009903: mov eax, edi */
    115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    117     eax = eax + edx; /* 0x30009905: add eax, edx */
    118     _flag_k = FK_ADD;
    119     PUSH32(esp, eax); /* 0x30009907: push eax */
    120     ecx = ebx; /* 0x30009908: mov ecx, ebx */
    121     RECOMP_ICALL(0x30009820u); /* 0x3000990A: call 0x30009820 */ /* not lifted */
    122     RECOMP_FLAGS_IN();
    123     edx = eax + esi; /* 0x3000990F: lea edx, [eax + esi] */
    124     /* test edx, edx */ /* 0x30009912: test edx, edx */
    125     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    126     _cf = 0;
    127     _flag_k = FK_TEST;
    128     if (TEST_Z(_flag_a, _flag_b)) goto L_30009AAA; /* 0x30009914: je 0x30009aaa */
    129 L_3000991A:
    130     /* test eax, eax */ /* 0x3000991A: test eax, eax */
    131     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    132     _cf = 0;
    133     _flag_k = FK_TEST;
    134     if (TEST_Z(_flag_a, _flag_b)) goto L_30009922; /* 0x3000991C: je 0x30009922 */
    135 L_3000991E:
    136     esi = eax; /* 0x3000991E: mov esi, eax */
    137     goto L_30009924; /* 0x30009920: jmp 0x30009924 */
    138 L_30009922:
    139     eax = esi; /* 0x30009922: mov eax, esi */
    140 L_30009924:
    141     ecx = MEM32(ebp + (-0x4)); /* 0x30009924: mov ecx, dword ptr [ebp - 4] */
    142     edx = MEM32(ebp + (-0xC)); /* 0x30009927: mov edx, dword ptr [ebp - 0xc] */
    143     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    144     ecx = ecx + 1; /* 0x3000992A: inc ecx */
    145     _flag_k = FK_INC;
    146     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
    147     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    148     edi = edi + 0xCu; /* 0x3000992B: add edi, 0xc */
    149     _flag_k = FK_ADD;
    150     /* cmp ecx, edx */ /* 0x3000992E: cmp ecx, edx */
    151     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    153     _flag_k = FK_CMP;
    154     MEM32(ebp + (-0x4)) = ecx; /* 0x30009930: mov dword ptr [ebp - 4], ecx */
    155     RECOMP_BACKEDGE();
    156     if (CMP_L(_flag_a, _flag_b)) goto L_300098FA; /* 0x30009933: jl 0x300098fa */
    157 L_30009935:
    158     /* cmp esi, 2 */ /* 0x30009935: cmp esi, 2 */
    159     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
    160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    161     _flag_k = FK_CMP;
    162     if (CMP_NE(_flag_a, _flag_b)) goto L_30009AAF; /* 0x30009938: jne 0x30009aaf */
    163 L_3000993E:
    164     eax = ebx; /* 0x3000993E: mov eax, ebx */
    165     ecx = MEM32(eax); /* 0x30009940: mov ecx, dword ptr [eax] */
    166     edx = MEM32(eax + 0x4); /* 0x30009942: mov edx, dword ptr [eax + 4] */
    167     eax = MEM32(eax + 0x8); /* 0x30009945: mov eax, dword ptr [eax + 8] */
    168     MEM32(ebp + (-0x1C)) = eax; /* 0x30009948: mov dword ptr [ebp - 0x1c], eax */
    169     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3000994B: fld dword ptr [ebp - 0x1c] */
    170     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000994E: fmul dword ptr [ebp - 0x1c] */
    171     MEM32(ebp + (-0x20)) = edx; /* 0x30009951: mov dword ptr [ebp - 0x20], edx */
    172     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30009954: fld dword ptr [ebp - 0x20] */
    173     MEM32(ebp + (-0x24)) = ecx; /* 0x30009957: mov dword ptr [ebp - 0x24], ecx */
    174     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3000995A: fmul dword ptr [ebp - 0x20] */
    175     PUSH32(esp, ecx); /* 0x3000995D: push ecx */
    176     ecx = ebp + (-0x24); /* 0x3000995E: lea ecx, [ebp - 0x24] */
    177     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009961: faddp st(1) */
    178     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x30009963: fld dword ptr [ebp - 0x24] */
    179     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x30009966: fmul dword ptr [ebp - 0x24] */
    180     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009969: faddp st(1) */
    181     _st[0] = sqrt(_st[0]); /* 0x3000996B: fsqrt  */
    182     _st[0] = (double)*(float*)ADDR(0x300191B8) / _st[0]; /* 0x3000996D: fdivr dword ptr [0x300191b8] */
    183     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x30009973: fstp dword ptr [esp] */
    184     RECOMP_ICALL(MEM32(0x300190D0)); /* 0x30009976: call dword ptr [0x300190d0] */
    185     RECOMP_FLAGS_IN();
    186     ecx = MEM32(ebp + (-0x24)); /* 0x3000997C: mov ecx, dword ptr [ebp - 0x24] */
    187     edx = MEM32(ebp + (-0x20)); /* 0x3000997F: mov edx, dword ptr [ebp - 0x20] */
    188     eax = MEM32(ebp + (-0x1C)); /* 0x30009982: mov eax, dword ptr [ebp - 0x1c] */
    189     MEM32(ebp + (-0x30)) = ecx; /* 0x30009985: mov dword ptr [ebp - 0x30], ecx */
    190     ecx = MEM32(ebp + 0x8); /* 0x30009988: mov ecx, dword ptr [ebp + 8] */
    191     MEM32(ebp + (-0x2C)) = edx; /* 0x3000998B: mov dword ptr [ebp - 0x2c], edx */
    192     esi = ecx + 0x8; /* 0x3000998E: lea esi, [ecx + 8] */
    193     MEM32(ebp + (-0x28)) = eax; /* 0x30009991: mov dword ptr [ebp - 0x28], eax */
    194     edx = esi; /* 0x30009994: mov edx, esi */
    195     eax = MEM32(edx); /* 0x30009996: mov eax, dword ptr [edx] */
    196     ecx = MEM32(edx + 0x4); /* 0x30009998: mov ecx, dword ptr [edx + 4] */
    197     edx = MEM32(edx + 0x8); /* 0x3000999B: mov edx, dword ptr [edx + 8] */
    198     MEM32(ebp + (-0x10)) = edx; /* 0x3000999E: mov dword ptr [ebp - 0x10], edx */
    199     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x300099A1: fld dword ptr [ebp - 0x10] */
    200     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300099A4: fmul dword ptr [ebp - 0x10] */
    201     MEM32(ebp + (-0x14)) = ecx; /* 0x300099A7: mov dword ptr [ebp - 0x14], ecx */
    202     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x300099AA: fld dword ptr [ebp - 0x14] */
    203     MEM32(ebp + (-0x18)) = eax; /* 0x300099AD: mov dword ptr [ebp - 0x18], eax */
    204     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300099B0: fmul dword ptr [ebp - 0x14] */
    205     PUSH32(esp, ecx); /* 0x300099B3: push ecx */
    206     ecx = ebp + (-0x18); /* 0x300099B4: lea ecx, [ebp - 0x18] */
    207     { double _v = fp_pop(); _st[0] += _v; } /* 0x300099B7: faddp st(1) */
    208     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300099B9: fld dword ptr [ebp - 0x18] */
    209     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300099BC: fmul dword ptr [ebp - 0x18] */
    210     { double _v = fp_pop(); _st[0] += _v; } /* 0x300099BF: faddp st(1) */
    211     _st[0] = sqrt(_st[0]); /* 0x300099C1: fsqrt  */
    212     _st[0] = (double)*(float*)ADDR(0x300191B8) / _st[0]; /* 0x300099C3: fdivr dword ptr [0x300191b8] */
    213     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x300099C9: fstp dword ptr [esp] */
    214     RECOMP_ICALL(MEM32(0x300190D0)); /* 0x300099CC: call dword ptr [0x300190d0] */
    215     RECOMP_FLAGS_IN();
    216     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x300099D2: fld dword ptr [ebp - 0x28] */
    217     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300099D5: fmul dword ptr [ebp - 0x10] */
    218     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x300099D8: fld dword ptr [ebp - 0x2c] */
    219     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300099DB: fmul dword ptr [ebp - 0x14] */
    220     { double _v = fp_pop(); _st[0] += _v; } /* 0x300099DE: faddp st(1) */
    221     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300099E0: fld dword ptr [ebp - 0x18] */
    222     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x300099E3: fmul dword ptr [ebp - 0x30] */
    223     { double _v = fp_pop(); _st[0] += _v; } /* 0x300099E6: faddp st(1) */
    224     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x30019284)); /* 0x300099E8: fcomp dword ptr [0x30019284] */
    225     fp_pop();
    226     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300099EE: fnstsw ax */
    227     /* test HI8(eax), 0x41u */ /* 0x300099F0: test ah, 0x41 */
    228     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    229     _cf = 0;
    230     _flag_k = FK_NARROW(FK_TEST, 24);
    231     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009A00; /* 0x300099F3: jne 0x30009a00 */
    232 L_300099F5:
    233     edi = POP32_VAL(esp); /* 0x300099F5: pop edi */
    234     esi = POP32_VAL(esp); /* 0x300099F6: pop esi */
    235     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    236     eax = 0; /* 0x300099F7: xor eax, eax */
    237     _cf = 0;
    238     _flag_k = FK_TEST;
    239     ebx = POP32_VAL(esp); /* 0x300099F9: pop ebx */
    240     esp = ebp; /* 0x300099FA: mov esp, ebp */
    241     ebp = POP32_VAL(esp); /* 0x300099FC: pop ebp */
    242     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300099FD: ret 4 */
    243 L_30009A00:
    244     edx = MEM32(ebx + 0x8); /* 0x30009A00: mov edx, dword ptr [ebx + 8] */
    245     ecx = MEM32(ebx + 0x4); /* 0x30009A03: mov ecx, dword ptr [ebx + 4] */
    246     eax = MEM32(ebx); /* 0x30009A06: mov eax, dword ptr [ebx] */
    247     MEM32(ebp + (-0x1C)) = edx; /* 0x30009A08: mov dword ptr [ebp - 0x1c], edx */
    248     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30009A0B: fld dword ptr [ebp - 0x1c] */
    249     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x30009A0E: fmul dword ptr [ebp - 0x1c] */
    250     MEM32(ebp + (-0x20)) = ecx; /* 0x30009A11: mov dword ptr [ebp - 0x20], ecx */
    251     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30009A14: fld dword ptr [ebp - 0x20] */
    252     MEM32(ebp + (-0x24)) = eax; /* 0x30009A17: mov dword ptr [ebp - 0x24], eax */
    253     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30009A1A: fmul dword ptr [ebp - 0x20] */
    254     edx = MEM32(esi + 0x8); /* 0x30009A1D: mov edx, dword ptr [esi + 8] */
    255     ecx = MEM32(esi + 0x4); /* 0x30009A20: mov ecx, dword ptr [esi + 4] */
    256     eax = MEM32(esi); /* 0x30009A23: mov eax, dword ptr [esi] */
    257     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009A25: faddp st(1) */
    258     MEM32(ebp + (-0x10)) = edx; /* 0x30009A27: mov dword ptr [ebp - 0x10], edx */
    259     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x30009A2A: fld dword ptr [ebp - 0x24] */
    260     MEM32(ebp + (-0x14)) = ecx; /* 0x30009A2D: mov dword ptr [ebp - 0x14], ecx */
    261     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x30009A30: fmul dword ptr [ebp - 0x24] */
    262     MEM32(ebp + (-0x18)) = eax; /* 0x30009A33: mov dword ptr [ebp - 0x18], eax */
    263     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009A36: faddp st(1) */
    264     _st[0] = sqrt(_st[0]); /* 0x30009A38: fsqrt  */
    265     _st[0] = (double)*(float*)ADDR(0x300191B8) / _st[0]; /* 0x30009A3A: fdivr dword ptr [0x300191b8] */
    266     fp_push(_st[0]); /* 0x30009A40: fld st(0) */
    267     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x30009A42: fmul dword ptr [ebp - 0x24] */
    268     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x30009A45: fstp dword ptr [ebp - 0x24] */
    269     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30009A48: fld dword ptr [ebp - 0x20] */
    270     _st[0] *= _st[1]; /* 0x30009A4B: fmul st(1) */
    271     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x30009A4D: fstp dword ptr [ebp - 0x20] */
    272     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x30009A50: fmul dword ptr [ebp - 0x1c] */
    273     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x30009A53: fld dword ptr [ebp - 0x10] */
    274     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x30009A56: fmul dword ptr [ebp - 0x10] */
    275     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x30009A59: fld dword ptr [ebp - 0x14] */
    276     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x30009A5C: fmul dword ptr [ebp - 0x14] */
    277     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009A5F: faddp st(1) */
    278     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x30009A61: fld dword ptr [ebp - 0x18] */
    279     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30009A64: fmul dword ptr [ebp - 0x18] */
    280     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009A67: faddp st(1) */
    281     _st[0] = sqrt(_st[0]); /* 0x30009A69: fsqrt  */
    282     _st[0] = (double)*(float*)ADDR(0x300191B8) / _st[0]; /* 0x30009A6B: fdivr dword ptr [0x300191b8] */
    283     fp_push(_st[0]); /* 0x30009A71: fld st(0) */
    284     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30009A73: fmul dword ptr [ebp - 0x18] */
    285     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x30009A76: fstp dword ptr [ebp - 0x18] */
    286     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x30009A79: fld dword ptr [ebp - 0x14] */
    287     _st[0] *= _st[1]; /* 0x30009A7C: fmul st(1) */
    288     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x30009A7E: fstp dword ptr [ebp - 0x14] */
    289     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x30009A81: fmul dword ptr [ebp - 0x10] */
    290     _st[0] *= _st[1]; /* 0x30009A84: fmul st(1) */
    291     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x30009A86: fld dword ptr [ebp - 0x14] */
    292     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30009A89: fmul dword ptr [ebp - 0x20] */
    293     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009A8C: faddp st(1) */
    294     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x30009A8E: fld dword ptr [ebp - 0x18] */
    295     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x30009A91: fmul dword ptr [ebp - 0x24] */
    296     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009A94: faddp st(1) */
    297     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x30019280)); /* 0x30009A96: fcomp dword ptr [0x30019280] */
    298     fp_pop();
    299     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30009A9C: fnstsw ax */
    300     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009A9E: fstp st(0) */
    301     /* test HI8(eax), 1 */ /* 0x30009AA0: test ah, 1 */
    302     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    303     _cf = 0;
    304     _flag_k = FK_NARROW(FK_TEST, 24);
    305     eax = 3; /* 0x30009AA3: mov eax, 3 */
    306     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009AAF; /* 0x30009AA8: jne 0x30009aaf */
    307 L_30009AAA:
    308     eax = 2; /* 0x30009AAA: mov eax, 2 */
    309 L_30009AAF:
    310     edi = POP32_VAL(esp); /* 0x30009AAF: pop edi */
    311     esi = POP32_VAL(esp); /* 0x30009AB0: pop esi */
    312     ebx = POP32_VAL(esp); /* 0x30009AB1: pop ebx */
    313     esp = ebp; /* 0x30009AB2: mov esp, ebp */
    314     ebp = POP32_VAL(esp); /* 0x30009AB4: pop ebp */
    315     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30009AB5: ret 4 */
    316     RECOMP_REGS_OUT();
    317 }
    318 
    319 void sub_30009AC0(void) {
    320     int _fpu_cmp = 0;
    321     uint32_t _cf = 0;
    322     int _df = 1;
    323     uint32_t _flag_k = FK_NONE;
    324     uint32_t _flag_a = 0, _flag_b = 0;
    325     uint32_t _itail_tgt = 0;
    326     RECOMP_REGS_LOCALS
    327     RECOMP_ENTER(0x30009AC0u);
    328 
    329 L_30009AC0:
    330     PUSH32(esp, ebp); /* 0x30009AC0: push ebp */
    331     ebp = esp; /* 0x30009AC1: mov ebp, esp */
    332     PUSH32(esp, 0xFFFFFFFFu); /* 0x30009AC3: push -1 */
    333     PUSH32(esp, 0x30018833u); /* 0x30009AC5: push 0x30018833 */
    334     eax = MEM32(FS_BASE + (0)); /* 0x30009ACA: mov eax, dword ptr fs:[0] */
    335     PUSH32(esp, eax); /* 0x30009AD0: push eax */
    336     MEM32(FS_BASE + (0)) = esp; /* 0x30009AD1: mov dword ptr fs:[0], esp */
    337     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u);
    338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    339     esp = esp - 0x78u; /* 0x30009AD8: sub esp, 0x78 */
    340     _flag_k = FK_CMP;
    341     eax = MEM32(ebp + 0x8); /* 0x30009ADB: mov eax, dword ptr [ebp + 8] */
    342     PUSH32(esp, ebx); /* 0x30009ADE: push ebx */
    343     PUSH32(esp, esi); /* 0x30009ADF: push esi */
    344     esi = ecx; /* 0x30009AE0: mov esi, ecx */
    345     ecx = MEM32(eax + 0x4); /* 0x30009AE2: mov ecx, dword ptr [eax + 4] */
    346     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    347     eax = 0; /* 0x30009AE5: xor eax, eax */
    348     _cf = 0;
    349     _flag_k = FK_TEST;
    350     MEM32(ebp + (-0x18)) = eax; /* 0x30009AE7: mov dword ptr [ebp - 0x18], eax */
    351     MEM32(ebp + (-0x1C)) = eax; /* 0x30009AEA: mov dword ptr [ebp - 0x1c], eax */
    352     SET_LO8(eax, MEM8(0x3001E3EA)); /* 0x30009AED: mov al, byte ptr [0x3001e3ea] */
    353     /* test LO8(eax), 1 */ /* 0x30009AF2: test al, 1 */
    354     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    355     _cf = 0;
    356     _flag_k = FK_NARROW(FK_TEST, 24);
    357     PUSH32(esp, edi); /* 0x30009AF4: push edi */
    358     MEM32(ebp + (-0x24)) = ecx; /* 0x30009AF5: mov dword ptr [ebp - 0x24], ecx */
    359     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009B30; /* 0x30009AF8: jne 0x30009b30 */
    360 L_30009AFA:
    361     SET_LO8(edx, LO8(eax)); /* 0x30009AFA: mov dl, al */
    362     _flag_a = (uint32_t)((LO8(edx) | 1)) << 24; _flag_b = (uint32_t)((LO8(edx) | 1)) << 24;
    363     SET_LO8(edx, LO8(edx) | 1); /* 0x30009AFC: or dl, 1 */
    364     _cf = 0;
    365     _flag_k = FK_NARROW(FK_TEST, 24);
    366     PUSH32(esp, 0x3000A0C0u); /* 0x30009AFF: push 0x3000a0c0 */
    367     MEM8(0x3001E3EA) = (uint8_t)(LO8(edx)); /* 0x30009B04: mov byte ptr [0x3001e3ea], dl */
    368     MEM32(0x3001FC00) = 0; /* 0x30009B0A: mov dword ptr [0x3001fc00], 0 */
    369     MEM32(0x3001FC04) = 0; /* 0x30009B14: mov dword ptr [0x3001fc04], 0 */
    370     MEM32(0x3001FC08) = 0; /* 0x30009B1E: mov dword ptr [0x3001fc08], 0 */
    371     RECOMP_ICALL(0x300180ECu); /* 0x30009B28: call 0x300180ec */ /* not lifted */
    372     RECOMP_FLAGS_IN();
    373     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    374     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    375     esp = esp + 4; /* 0x30009B2D: add esp, 4 */
    376     _flag_k = FK_ADD;
    377 L_30009B30:
    378     SET_LO8(eax, MEM8(0x3001E3EA)); /* 0x30009B30: mov al, byte ptr [0x3001e3ea] */
    379     /* test LO8(eax), 2 */ /* 0x30009B35: test al, 2 */
    380     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
    381     _cf = 0;
    382     _flag_k = FK_NARROW(FK_TEST, 24);
    383     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009B6F; /* 0x30009B37: jne 0x30009b6f */
    384 L_30009B39:
    385     SET_LO8(edx, LO8(eax)); /* 0x30009B39: mov dl, al */
    386     _flag_a = (uint32_t)((LO8(edx) | 2)) << 24; _flag_b = (uint32_t)((LO8(edx) | 2)) << 24;
    387     SET_LO8(edx, LO8(edx) | 2); /* 0x30009B3B: or dl, 2 */
    388     _cf = 0;
    389     _flag_k = FK_NARROW(FK_TEST, 24);
    390     PUSH32(esp, 0x3000A0B0u); /* 0x30009B3E: push 0x3000a0b0 */
    391     MEM8(0x3001E3EA) = (uint8_t)(LO8(edx)); /* 0x30009B43: mov byte ptr [0x3001e3ea], dl */
    392     MEM32(0x3001E3F0) = 0; /* 0x30009B49: mov dword ptr [0x3001e3f0], 0 */
    393     MEM32(0x3001E3F4) = 0; /* 0x30009B53: mov dword ptr [0x3001e3f4], 0 */
    394     MEM32(0x3001E3F8) = 0; /* 0x30009B5D: mov dword ptr [0x3001e3f8], 0 */
    395     RECOMP_ICALL(0x300180ECu); /* 0x30009B67: call 0x300180ec */ /* not lifted */
    396     RECOMP_FLAGS_IN();
    397     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    398     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    399     esp = esp + 4; /* 0x30009B6C: add esp, 4 */
    400     _flag_k = FK_ADD;
    401 L_30009B6F:
    402     SET_LO8(ecx, MEM8(0x3001E3EA)); /* 0x30009B6F: mov cl, byte ptr [0x3001e3ea] */
    403     SET_LO8(eax, 4); /* 0x30009B75: mov al, 4 */
    404     /* test LO8(eax), LO8(ecx) */ /* 0x30009B77: test al, cl */
    405     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    406     _cf = 0;
    407     _flag_k = FK_NARROW(FK_TEST, 24);
    408     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009BA8; /* 0x30009B79: jne 0x30009ba8 */
    409 L_30009B7B:
    410     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
    411     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x30009B7B: or cl, al */
    412     _cf = 0;
    413     _flag_k = FK_NARROW(FK_TEST, 24);
    414     MEM8(0x3001E3EA) = (uint8_t)(LO8(ecx)); /* 0x30009B7D: mov byte ptr [0x3001e3ea], cl */
    415     ebx = 0x3001E400u; /* 0x30009B83: mov ebx, 0x3001e400 */
    416     edi = 0x100u; /* 0x30009B88: mov edi, 0x100 */
    417 L_30009B8D:
    418     ecx = ebx; /* 0x30009B8D: mov ecx, ebx */
    419     RECOMP_ICALL(MEM32(0x300190E4)); /* 0x30009B8F: call dword ptr [0x300190e4] */
    420     RECOMP_FLAGS_IN();
    421     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
    422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    423     ebx = ebx + 0xCu; /* 0x30009B95: add ebx, 0xc */
    424     _flag_k = FK_ADD;
    425     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
    426     edi = edi - 1; /* 0x30009B98: dec edi */
    427     _flag_k = FK_DEC;
    428     RECOMP_BACKEDGE();
    429     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30009B8D; /* 0x30009B99: jne 0x30009b8d */
    430 L_30009B9B:
    431     PUSH32(esp, 0x3000A0A0u); /* 0x30009B9B: push 0x3000a0a0 */
    432     RECOMP_ICALL(0x300180ECu); /* 0x30009BA0: call 0x300180ec */ /* not lifted */
    433     RECOMP_FLAGS_IN();
    434     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    435     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    436     esp = esp + 4; /* 0x30009BA5: add esp, 4 */
    437     _flag_k = FK_ADD;
    438 L_30009BA8:
    439     SET_LO8(ecx, MEM8(0x3001E3EA)); /* 0x30009BA8: mov cl, byte ptr [0x3001e3ea] */
    440     SET_LO8(eax, 8); /* 0x30009BAE: mov al, 8 */
    441     /* test LO8(eax), LO8(ecx) */ /* 0x30009BB0: test al, cl */
    442     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    443     _cf = 0;
    444     _flag_k = FK_NARROW(FK_TEST, 24);
    445     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009BE1; /* 0x30009BB2: jne 0x30009be1 */
    446 L_30009BB4:
    447     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
    448     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x30009BB4: or cl, al */
    449     _cf = 0;
    450     _flag_k = FK_NARROW(FK_TEST, 24);
    451     MEM8(0x3001E3EA) = (uint8_t)(LO8(ecx)); /* 0x30009BB6: mov byte ptr [0x3001e3ea], cl */
    452     ebx = 0x3001F000u; /* 0x30009BBC: mov ebx, 0x3001f000 */
    453     edi = 0x100u; /* 0x30009BC1: mov edi, 0x100 */
    454 L_30009BC6:
    455     ecx = ebx; /* 0x30009BC6: mov ecx, ebx */
    456     RECOMP_ICALL(MEM32(0x300190E4)); /* 0x30009BC8: call dword ptr [0x300190e4] */
    457     RECOMP_FLAGS_IN();
    458     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
    459     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    460     ebx = ebx + 0xCu; /* 0x30009BCE: add ebx, 0xc */
    461     _flag_k = FK_ADD;
    462     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
    463     edi = edi - 1; /* 0x30009BD1: dec edi */
    464     _flag_k = FK_DEC;
    465     RECOMP_BACKEDGE();
    466     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30009BC6; /* 0x30009BD2: jne 0x30009bc6 */
    467 L_30009BD4:
    468     PUSH32(esp, 0x3000A090u); /* 0x30009BD4: push 0x3000a090 */
    469     RECOMP_ICALL(0x300180ECu); /* 0x30009BD9: call 0x300180ec */ /* not lifted */
    470     RECOMP_FLAGS_IN();
    471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    473     esp = esp + 4; /* 0x30009BDE: add esp, 4 */
    474     _flag_k = FK_ADD;
    475 L_30009BE1:
    476     eax = MEM32(ebp + (-0x24)); /* 0x30009BE1: mov eax, dword ptr [ebp - 0x24] */
    477     edx = eax + eax * 2; /* 0x30009BE4: lea edx, [eax + eax*2] */
    478     eax = MEM32(ebp + 0x8); /* 0x30009BE7: mov eax, dword ptr [ebp + 8] */
    479     ecx = MEM32(eax); /* 0x30009BEA: mov ecx, dword ptr [eax] */
    480     edx = ecx + edx * 4 + (-0xC); /* 0x30009BEC: lea edx, [ecx + edx*4 - 0xc] */
    481     eax = MEM32(edx); /* 0x30009BF0: mov eax, dword ptr [edx] */
    482     MEM32(0x3001FC00) = eax; /* 0x30009BF2: mov dword ptr [0x3001fc00], eax */
    483     ecx = MEM32(edx + 0x4); /* 0x30009BF7: mov ecx, dword ptr [edx + 4] */
    484     MEM32(0x3001FC04) = ecx; /* 0x30009BFA: mov dword ptr [0x3001fc04], ecx */
    485     edx = MEM32(edx + 0x8); /* 0x30009C00: mov edx, dword ptr [edx + 8] */
    486     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    487     ebx = 0; /* 0x30009C03: xor ebx, ebx */
    488     _cf = 0;
    489     _flag_k = FK_TEST;
    490     PUSH32(esp, 0x3001FC00u); /* 0x30009C05: push 0x3001fc00 */
    491     ecx = esi; /* 0x30009C0A: mov ecx, esi */
    492     MEM32(ebp + (-0x14)) = ebx; /* 0x30009C0C: mov dword ptr [ebp - 0x14], ebx */
    493     MEM32(0x3001FC08) = edx; /* 0x30009C0F: mov dword ptr [0x3001fc08], edx */
    494     RECOMP_ICALL(0x30009870u); /* 0x30009C15: call 0x30009870 */ /* not lifted */
    495     RECOMP_FLAGS_IN();
    496     ecx = MEM32(ebp + (-0x24)); /* 0x30009C1A: mov ecx, dword ptr [ebp - 0x24] */
    497     edi = eax; /* 0x30009C1D: mov edi, eax */
    498     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    499     eax = 0; /* 0x30009C1F: xor eax, eax */
    500     _cf = 0;
    501     _flag_k = FK_TEST;
    502     /* cmp ecx, eax */ /* 0x30009C21: cmp ecx, eax */
    503     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    504     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    505     _flag_k = FK_CMP;
    506     MEM32(ebp + (-0x28)) = eax; /* 0x30009C23: mov dword ptr [ebp - 0x28], eax */
    507     if (CMP_LE(_flag_a, _flag_b)) goto L_3000A070; /* 0x30009C26: jle 0x3000a070 */
    508 L_30009C2C:
    509     ebx = 0x3001F000u; /* 0x30009C2C: mov ebx, 0x3001f000 */
    510     MEM32(ebp + (-0x10)) = 0x3001E400u; /* 0x30009C31: mov dword ptr [ebp - 0x10], 0x3001e400 */
    511     MEM32(ebp + (-0x20)) = ebx; /* 0x30009C38: mov dword ptr [ebp - 0x20], ebx */
    512 L_30009C3B:
    513     ecx = MEM32(ebp + 0x8); /* 0x30009C3B: mov ecx, dword ptr [ebp + 8] */
    514     edx = MEM32(ecx); /* 0x30009C3E: mov edx, dword ptr [ecx] */
    515     eax = eax + eax * 2; /* 0x30009C40: lea eax, [eax + eax*2] */
    516     eax = edx + eax * 4; /* 0x30009C43: lea eax, [edx + eax*4] */
    517     ecx = MEM32(eax); /* 0x30009C46: mov ecx, dword ptr [eax] */
    518     MEM32(0x3001E3F0) = ecx; /* 0x30009C48: mov dword ptr [0x3001e3f0], ecx */
    519     edx = MEM32(eax + 0x4); /* 0x30009C4E: mov edx, dword ptr [eax + 4] */
    520     MEM32(0x3001E3F4) = edx; /* 0x30009C51: mov dword ptr [0x3001e3f4], edx */
    521     eax = MEM32(eax + 0x8); /* 0x30009C57: mov eax, dword ptr [eax + 8] */
    522     PUSH32(esp, 0x3001E3F0u); /* 0x30009C5A: push 0x3001e3f0 */
    523     ecx = esi; /* 0x30009C5F: mov ecx, esi */
    524     MEM32(0x3001E3F8) = eax; /* 0x30009C61: mov dword ptr [0x3001e3f8], eax */
    525     RECOMP_ICALL(0x30009870u); /* 0x30009C66: call 0x30009870 */ /* not lifted */
    526     RECOMP_FLAGS_IN();
    527     /* cmp eax, 1 */ /* 0x30009C6B: cmp eax, 1 */
    528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    530     _flag_k = FK_CMP;
    531     MEM32(ebp + (-0x2C)) = eax; /* 0x30009C6E: mov dword ptr [ebp - 0x2c], eax */
    532     if (CMP_NE(_flag_a, _flag_b)) goto L_30009DC5; /* 0x30009C71: jne 0x30009dc5 */
    533 L_30009C77:
    534     eax = MEM32(ebp + (-0x14)); /* 0x30009C77: mov eax, dword ptr [ebp - 0x14] */
    535     /* test eax, eax */ /* 0x30009C7A: test eax, eax */
    536     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    537     _cf = 0;
    538     _flag_k = FK_TEST;
    539     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009C87; /* 0x30009C7C: jne 0x30009c87 */
    540 L_30009C7E:
    541     MEM32(ebp + (-0x14)) = 1; /* 0x30009C7E: mov dword ptr [ebp - 0x14], 1 */
    542     goto L_30009C93; /* 0x30009C85: jmp 0x30009c93 */
    543 L_30009C87:
    544     /* cmp eax, 1 */ /* 0x30009C87: cmp eax, 1 */
    545     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    547     _flag_k = FK_CMP;
    548     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009C93; /* 0x30009C8A: je 0x30009c93 */
    549 L_30009C8C:
    550     MEM32(ebp + (-0x14)) = 2; /* 0x30009C8C: mov dword ptr [ebp - 0x14], 2 */
    551 L_30009C93:
    552     edx = MEM32(0x3001E3F4); /* 0x30009C93: mov edx, dword ptr [0x3001e3f4] */
    553     ecx = MEM32(0x3001E3F0); /* 0x30009C99: mov ecx, dword ptr [0x3001e3f0] */
    554     /* cmp edi, 0xFFFFFFFFu */ /* 0x30009C9F: cmp edi, -1 */
    555     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
    556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    557     _flag_k = FK_CMP;
    558     edi = MEM32(0x3001E3F8); /* 0x30009CA2: mov edi, dword ptr [0x3001e3f8] */
    559     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F59; /* 0x30009CA8: jne 0x30009f59 */
    560 L_30009CAE:
    561     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009CAE: fld dword ptr [0x3001e3f0] */
    562     MEM32(ebp + (-0x38)) = ecx; /* 0x30009CB4: mov dword ptr [ebp - 0x38], ecx */
    563     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009CB7: fsub dword ptr [0x3001fc00] */
    564     MEM32(ebp + (-0x34)) = edx; /* 0x30009CBD: mov dword ptr [ebp - 0x34], edx */
    565     MEM32(ebp + (-0x30)) = edi; /* 0x30009CC0: mov dword ptr [ebp - 0x30], edi */
    566     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x30009CC3: fstp dword ptr [ebp - 0x38] */
    567     eax = MEM32(ebp + (-0x38)); /* 0x30009CC6: mov eax, dword ptr [ebp - 0x38] */
    568     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009CC9: fld dword ptr [ebp - 0x34] */
    569     MEM32(ebp + (-0x68)) = eax; /* 0x30009CCC: mov dword ptr [ebp - 0x68], eax */
    570     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009CCF: fsub dword ptr [0x3001fc04] */
    571     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x30009CD5: fstp dword ptr [ebp - 0x34] */
    572     eax = MEM32(ebp + (-0x34)); /* 0x30009CD8: mov eax, dword ptr [ebp - 0x34] */
    573     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009CDB: fld dword ptr [ebp - 0x30] */
    574     MEM32(ebp + (-0x64)) = eax; /* 0x30009CDE: mov dword ptr [ebp - 0x64], eax */
    575     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009CE1: fsub dword ptr [0x3001fc08] */
    576     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x30009CE7: fstp dword ptr [ebp - 0x30] */
    577     eax = MEM32(ebp + (-0x30)); /* 0x30009CEA: mov eax, dword ptr [ebp - 0x30] */
    578     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009CED: fld dword ptr [0x3001fc08] */
    579     MEM32(ebp + (-0x60)) = eax; /* 0x30009CF3: mov dword ptr [ebp - 0x60], eax */
    580     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009CF6: fmul dword ptr [esi + 8] */
    581     eax = MEM32(0x3001FC00); /* 0x30009CF9: mov eax, dword ptr [0x3001fc00] */
    582     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009CFE: fld dword ptr [0x3001fc04] */
    583     MEM32(ebp + (-0x50)) = eax; /* 0x30009D04: mov dword ptr [ebp - 0x50], eax */
    584     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D07: fmul dword ptr [esi + 4] */
    585     eax = MEM32(0x3001FC04); /* 0x30009D0A: mov eax, dword ptr [0x3001fc04] */
    586     MEM32(ebp + (-0x4C)) = eax; /* 0x30009D0F: mov dword ptr [ebp - 0x4c], eax */
    587     eax = MEM32(0x3001FC08); /* 0x30009D12: mov eax, dword ptr [0x3001fc08] */
    588     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D17: faddp st(1) */
    589     MEM32(ebp + (-0x48)) = eax; /* 0x30009D19: mov dword ptr [ebp - 0x48], eax */
    590     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009D1C: fld dword ptr [0x3001fc00] */
    591     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D22: fmul dword ptr [esi] */
    592     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D24: faddp st(1) */
    593     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009D26: fsub dword ptr [esi + 0xc] */
    594     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009D29: fld dword ptr [ebp - 0x30] */
    595     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009D2C: fmul dword ptr [esi + 8] */
    596     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009D2F: fld dword ptr [ebp - 0x34] */
    597     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D32: fmul dword ptr [esi + 4] */
    598     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D35: faddp st(1) */
    599     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D37: fld dword ptr [ebp - 0x38] */
    600     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D3A: fmul dword ptr [esi] */
    601     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D3C: faddp st(1) */
    602     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009D3E: fdivp st(1) */
    603     _st[0] = -_st[0]; /* 0x30009D40: fchs  */
    604     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D42: fld dword ptr [ebp - 0x38] */
    605     _st[0] *= _st[1]; /* 0x30009D45: fmul st(1) */
    606     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x30009D47: fstp dword ptr [ebp - 0x68] */
    607     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30009D4A: fld dword ptr [ebp - 0x64] */
    608     _st[0] *= _st[1]; /* 0x30009D4D: fmul st(1) */
    609     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x30009D4F: fstp dword ptr [ebp - 0x64] */
    610     _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x30009D52: fmul dword ptr [ebp - 0x60] */
    611     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x30009D55: fld dword ptr [ebp - 0x68] */
    612     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009D58: fadd dword ptr [0x3001fc00] */
    613     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x30009D5E: fstp dword ptr [ebp - 0x50] */
    614     eax = MEM32(ebp + (-0x50)); /* 0x30009D61: mov eax, dword ptr [ebp - 0x50] */
    615     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x30009D64: fld dword ptr [ebp - 0x4c] */
    616     MEM32(ebx) = eax; /* 0x30009D67: mov dword ptr [ebx], eax */
    617     _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x30009D69: fadd dword ptr [ebp - 0x64] */
    618     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x30009D6C: fstp dword ptr [ebp - 0x4c] */
    619     eax = MEM32(ebp + (-0x4C)); /* 0x30009D6F: mov eax, dword ptr [ebp - 0x4c] */
    620     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x30009D72: fld dword ptr [ebp - 0x48] */
    621     MEM32(ebx + 0x4) = eax; /* 0x30009D75: mov dword ptr [ebx + 4], eax */
    622     _st[0] += _st[1]; /* 0x30009D78: fadd st(1) */
    623     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x30009D7A: fstp dword ptr [ebp - 0x48] */
    624     eax = MEM32(ebp + (-0x48)); /* 0x30009D7D: mov eax, dword ptr [ebp - 0x48] */
    625     MEM32(ebx + 0x8) = eax; /* 0x30009D80: mov dword ptr [ebx + 8], eax */
    626     ebx = MEM32(ebp + (-0x1C)); /* 0x30009D83: mov ebx, dword ptr [ebp - 0x1c] */
    627     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009D86: fstp st(0) */
    628     eax = MEM32(ebp + (-0x20)); /* 0x30009D88: mov eax, dword ptr [ebp - 0x20] */
    629     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    630     ebx = ebx + 1; /* 0x30009D8B: inc ebx */
    631     _flag_k = FK_INC;
    632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    633     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    634     eax = eax + 0xCu; /* 0x30009D8C: add eax, 0xc */
    635     _flag_k = FK_ADD;
    636     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009D8F: mov dword ptr [ebp - 0x1c], ebx */
    637     ebx = MEM32(ebp + (-0x50)); /* 0x30009D92: mov ebx, dword ptr [ebp - 0x50] */
    638     MEM32(ebp + (-0x20)) = eax; /* 0x30009D95: mov dword ptr [ebp - 0x20], eax */
    639     eax = MEM32(ebp + (-0x10)); /* 0x30009D98: mov eax, dword ptr [ebp - 0x10] */
    640     MEM32(eax) = ebx; /* 0x30009D9B: mov dword ptr [eax], ebx */
    641     ebx = MEM32(ebp + (-0x4C)); /* 0x30009D9D: mov ebx, dword ptr [ebp - 0x4c] */
    642     MEM32(eax + 0x4) = ebx; /* 0x30009DA0: mov dword ptr [eax + 4], ebx */
    643     ebx = MEM32(ebp + (-0x48)); /* 0x30009DA3: mov ebx, dword ptr [ebp - 0x48] */
    644     MEM32(eax + 0x8) = ebx; /* 0x30009DA6: mov dword ptr [eax + 8], ebx */
    645     ebx = MEM32(ebp + (-0x18)); /* 0x30009DA9: mov ebx, dword ptr [ebp - 0x18] */
    646     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    647     ebx = ebx + 1; /* 0x30009DAC: inc ebx */
    648     _flag_k = FK_INC;
    649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    651     eax = eax + 0xCu; /* 0x30009DAD: add eax, 0xc */
    652     _flag_k = FK_ADD;
    653     MEM32(ebp + (-0x18)) = ebx; /* 0x30009DB0: mov dword ptr [ebp - 0x18], ebx */
    654     ebx = MEM32(ebp + (-0x20)); /* 0x30009DB3: mov ebx, dword ptr [ebp - 0x20] */
    655     MEM32(ebp + (-0x10)) = eax; /* 0x30009DB6: mov dword ptr [ebp - 0x10], eax */
    656     MEM32(ebp + (-0x14)) = 2; /* 0x30009DB9: mov dword ptr [ebp - 0x14], 2 */
    657     goto L_30009F59; /* 0x30009DC0: jmp 0x30009f59 */
    658 L_30009DC5:
    659     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DC5: cmp eax, -1 */
    660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    662     _flag_k = FK_CMP;
    663     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F30; /* 0x30009DC8: jne 0x30009f30 */
    664 L_30009DCE:
    665     eax = MEM32(ebp + (-0x14)); /* 0x30009DCE: mov eax, dword ptr [ebp - 0x14] */
    666     /* test eax, eax */ /* 0x30009DD1: test eax, eax */
    667     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    668     _cf = 0;
    669     _flag_k = FK_TEST;
    670     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009DDE; /* 0x30009DD3: jne 0x30009dde */
    671 L_30009DD5:
    672     MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x30009DD5: mov dword ptr [ebp - 0x14], 0xffffffff */
    673     goto L_30009DEA; /* 0x30009DDC: jmp 0x30009dea */
    674 L_30009DDE:
    675     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DDE: cmp eax, -1 */
    676     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    678     _flag_k = FK_CMP;
    679     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009DEA; /* 0x30009DE1: je 0x30009dea */
    680 L_30009DE3:
    681     MEM32(ebp + (-0x14)) = 2; /* 0x30009DE3: mov dword ptr [ebp - 0x14], 2 */
    682 L_30009DEA:
    683     edx = MEM32(0x3001E3F4); /* 0x30009DEA: mov edx, dword ptr [0x3001e3f4] */
    684     ecx = MEM32(0x3001E3F0); /* 0x30009DF0: mov ecx, dword ptr [0x3001e3f0] */
    685     /* cmp edi, 1 */ /* 0x30009DF6: cmp edi, 1 */
    686     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
    687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    688     _flag_k = FK_CMP;
    689     edi = MEM32(0x3001E3F8); /* 0x30009DF9: mov edi, dword ptr [0x3001e3f8] */
    690     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F17; /* 0x30009DFF: jne 0x30009f17 */
    691 L_30009E05:
    692     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009E05: fld dword ptr [0x3001e3f0] */
    693     MEM32(ebp + (-0x44)) = ecx; /* 0x30009E0B: mov dword ptr [ebp - 0x44], ecx */
    694     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009E0E: fsub dword ptr [0x3001fc00] */
    695     MEM32(ebp + (-0x40)) = edx; /* 0x30009E14: mov dword ptr [ebp - 0x40], edx */
    696     MEM32(ebp + (-0x3C)) = edi; /* 0x30009E17: mov dword ptr [ebp - 0x3c], edi */
    697     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x30009E1A: fstp dword ptr [ebp - 0x44] */
    698     eax = MEM32(ebp + (-0x44)); /* 0x30009E1D: mov eax, dword ptr [ebp - 0x44] */
    699     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E20: fld dword ptr [ebp - 0x40] */
    700     MEM32(ebp + (-0x7C)) = eax; /* 0x30009E23: mov dword ptr [ebp - 0x7c], eax */
    701     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009E26: fsub dword ptr [0x3001fc04] */
    702     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x30009E2C: fstp dword ptr [ebp - 0x40] */
    703     eax = MEM32(ebp + (-0x40)); /* 0x30009E2F: mov eax, dword ptr [ebp - 0x40] */
    704     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E32: fld dword ptr [ebp - 0x3c] */
    705     MEM32(ebp + (-0x78)) = eax; /* 0x30009E35: mov dword ptr [ebp - 0x78], eax */
    706     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009E38: fsub dword ptr [0x3001fc08] */
    707     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x30009E3E: fstp dword ptr [ebp - 0x3c] */
    708     eax = MEM32(ebp + (-0x3C)); /* 0x30009E41: mov eax, dword ptr [ebp - 0x3c] */
    709     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009E44: fld dword ptr [0x3001fc08] */
    710     MEM32(ebp + (-0x74)) = eax; /* 0x30009E4A: mov dword ptr [ebp - 0x74], eax */
    711     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E4D: fmul dword ptr [esi + 8] */
    712     eax = MEM32(0x3001FC00); /* 0x30009E50: mov eax, dword ptr [0x3001fc00] */
    713     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009E55: fld dword ptr [0x3001fc04] */
    714     MEM32(ebp + (-0x5C)) = eax; /* 0x30009E5B: mov dword ptr [ebp - 0x5c], eax */
    715     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E5E: fmul dword ptr [esi + 4] */
    716     eax = MEM32(0x3001FC04); /* 0x30009E61: mov eax, dword ptr [0x3001fc04] */
    717     MEM32(ebp + (-0x58)) = eax; /* 0x30009E66: mov dword ptr [ebp - 0x58], eax */
    718     eax = MEM32(0x3001FC08); /* 0x30009E69: mov eax, dword ptr [0x3001fc08] */
    719     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E6E: faddp st(1) */
    720     MEM32(ebp + (-0x54)) = eax; /* 0x30009E70: mov dword ptr [ebp - 0x54], eax */
    721     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009E73: fld dword ptr [0x3001fc00] */
    722     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E79: fmul dword ptr [esi] */
    723     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E7B: faddp st(1) */
    724     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009E7D: fsub dword ptr [esi + 0xc] */
    725     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E80: fld dword ptr [ebp - 0x3c] */
    726     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E83: fmul dword ptr [esi + 8] */
    727     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E86: fld dword ptr [ebp - 0x40] */
    728     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E89: fmul dword ptr [esi + 4] */
    729     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E8C: faddp st(1) */
    730     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E8E: fld dword ptr [ebp - 0x44] */
    731     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E91: fmul dword ptr [esi] */
    732     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E93: faddp st(1) */
    733     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009E95: fdivp st(1) */
    734     _st[0] = -_st[0]; /* 0x30009E97: fchs  */
    735     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E99: fld dword ptr [ebp - 0x44] */
    736     _st[0] *= _st[1]; /* 0x30009E9C: fmul st(1) */
    737     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x30009E9E: fstp dword ptr [ebp - 0x7c] */
    738     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30009EA1: fld dword ptr [ebp - 0x78] */
    739     _st[0] *= _st[1]; /* 0x30009EA4: fmul st(1) */
    740     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x30009EA6: fstp dword ptr [ebp - 0x78] */
    741     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x30009EA9: fmul dword ptr [ebp - 0x74] */
    742     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x30009EAC: fld dword ptr [ebp - 0x7c] */
    743     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009EAF: fadd dword ptr [0x3001fc00] */
    744     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x30009EB5: fstp dword ptr [ebp - 0x5c] */
    745     eax = MEM32(ebp + (-0x5C)); /* 0x30009EB8: mov eax, dword ptr [ebp - 0x5c] */
    746     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x30009EBB: fld dword ptr [ebp - 0x58] */
    747     MEM32(ebx) = eax; /* 0x30009EBE: mov dword ptr [ebx], eax */
    748     _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x30009EC0: fadd dword ptr [ebp - 0x78] */
    749     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x30009EC3: fstp dword ptr [ebp - 0x58] */
    750     eax = MEM32(ebp + (-0x58)); /* 0x30009EC6: mov eax, dword ptr [ebp - 0x58] */
    751     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30009EC9: fld dword ptr [ebp - 0x54] */
    752     MEM32(ebx + 0x4) = eax; /* 0x30009ECC: mov dword ptr [ebx + 4], eax */
    753     _st[0] += _st[1]; /* 0x30009ECF: fadd st(1) */
    754     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x30009ED1: fstp dword ptr [ebp - 0x54] */
    755     eax = MEM32(ebp + (-0x54)); /* 0x30009ED4: mov eax, dword ptr [ebp - 0x54] */
    756     MEM32(ebx + 0x8) = eax; /* 0x30009ED7: mov dword ptr [ebx + 8], eax */
    757     ebx = MEM32(ebp + (-0x1C)); /* 0x30009EDA: mov ebx, dword ptr [ebp - 0x1c] */
    758     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009EDD: fstp st(0) */
    759     eax = MEM32(ebp + (-0x20)); /* 0x30009EDF: mov eax, dword ptr [ebp - 0x20] */
    760     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    761     ebx = ebx + 1; /* 0x30009EE2: inc ebx */
    762     _flag_k = FK_INC;
    763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    764     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    765     eax = eax + 0xCu; /* 0x30009EE3: add eax, 0xc */
    766     _flag_k = FK_ADD;
    767     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009EE6: mov dword ptr [ebp - 0x1c], ebx */
    768     ebx = MEM32(ebp + (-0x5C)); /* 0x30009EE9: mov ebx, dword ptr [ebp - 0x5c] */
    769     MEM32(ebp + (-0x20)) = eax; /* 0x30009EEC: mov dword ptr [ebp - 0x20], eax */
    770     eax = MEM32(ebp + (-0x10)); /* 0x30009EEF: mov eax, dword ptr [ebp - 0x10] */
    771     MEM32(eax) = ebx; /* 0x30009EF2: mov dword ptr [eax], ebx */
    772     ebx = MEM32(ebp + (-0x58)); /* 0x30009EF4: mov ebx, dword ptr [ebp - 0x58] */
    773     MEM32(eax + 0x4) = ebx; /* 0x30009EF7: mov dword ptr [eax + 4], ebx */
    774     ebx = MEM32(ebp + (-0x54)); /* 0x30009EFA: mov ebx, dword ptr [ebp - 0x54] */
    775     MEM32(eax + 0x8) = ebx; /* 0x30009EFD: mov dword ptr [eax + 8], ebx */
    776     ebx = MEM32(ebp + (-0x18)); /* 0x30009F00: mov ebx, dword ptr [ebp - 0x18] */
    777     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
    778     ebx = ebx + 1; /* 0x30009F03: inc ebx */
    779     _flag_k = FK_INC;
    780     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    782     eax = eax + 0xCu; /* 0x30009F04: add eax, 0xc */
    783     _flag_k = FK_ADD;
    784     MEM32(ebp + (-0x18)) = ebx; /* 0x30009F07: mov dword ptr [ebp - 0x18], ebx */
    785     ebx = MEM32(ebp + (-0x20)); /* 0x30009F0A: mov ebx, dword ptr [ebp - 0x20] */
    786     MEM32(ebp + (-0x10)) = eax; /* 0x30009F0D: mov dword ptr [ebp - 0x10], eax */
    787     MEM32(ebp + (-0x14)) = 2; /* 0x30009F10: mov dword ptr [ebp - 0x14], 2 */
    788 L_30009F17:
    789     eax = ebx; /* 0x30009F17: mov eax, ebx */
    790     MEM32(eax) = ecx; /* 0x30009F19: mov dword ptr [eax], ecx */
    791     MEM32(eax + 0x4) = edx; /* 0x30009F1B: mov dword ptr [eax + 4], edx */
    792     MEM32(eax + 0x8) = edi; /* 0x30009F1E: mov dword ptr [eax + 8], edi */
    793     eax = MEM32(ebp + (-0x1C)); /* 0x30009F21: mov eax, dword ptr [ebp - 0x1c] */
    794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    795     eax = eax + 1; /* 0x30009F24: inc eax */
    796     _flag_k = FK_INC;
    797     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
    798     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    799     ebx = ebx + 0xCu; /* 0x30009F25: add ebx, 0xc */
    800     _flag_k = FK_ADD;
    801     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F28: mov dword ptr [ebp - 0x1c], eax */
    802     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F2B: mov dword ptr [ebp - 0x20], ebx */
    803     goto L_30009F6B; /* 0x30009F2E: jmp 0x30009f6b */
    804 L_30009F30:
    805     ecx = MEM32(0x3001E3F0); /* 0x30009F30: mov ecx, dword ptr [0x3001e3f0] */
    806     edx = MEM32(0x3001E3F4); /* 0x30009F36: mov edx, dword ptr [0x3001e3f4] */
    807     edi = MEM32(0x3001E3F8); /* 0x30009F3C: mov edi, dword ptr [0x3001e3f8] */
    808     eax = ebx; /* 0x30009F42: mov eax, ebx */
    809     MEM32(eax) = ecx; /* 0x30009F44: mov dword ptr [eax], ecx */
    810     MEM32(eax + 0x4) = edx; /* 0x30009F46: mov dword ptr [eax + 4], edx */
    811     MEM32(eax + 0x8) = edi; /* 0x30009F49: mov dword ptr [eax + 8], edi */
    812     eax = MEM32(ebp + (-0x1C)); /* 0x30009F4C: mov eax, dword ptr [ebp - 0x1c] */
    813     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    814     eax = eax + 1; /* 0x30009F4F: inc eax */
    815     _flag_k = FK_INC;
    816     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
    817     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    818     ebx = ebx + 0xCu; /* 0x30009F50: add ebx, 0xc */
    819     _flag_k = FK_ADD;
    820     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F53: mov dword ptr [ebp - 0x1c], eax */
    821     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F56: mov dword ptr [ebp - 0x20], ebx */
    822 L_30009F59:
    823     eax = MEM32(ebp + (-0x10)); /* 0x30009F59: mov eax, dword ptr [ebp - 0x10] */
    824     MEM32(eax) = ecx; /* 0x30009F5C: mov dword ptr [eax], ecx */
    825     MEM32(eax + 0x4) = edx; /* 0x30009F5E: mov dword ptr [eax + 4], edx */
    826     MEM32(eax + 0x8) = edi; /* 0x30009F61: mov dword ptr [eax + 8], edi */
    827     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1);
    828     MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x30009F64: inc dword ptr [ebp - 0x18] */
    829     _flag_k = FK_INC;
    830     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xCu);
    831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    832     MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xCu; /* 0x30009F67: add dword ptr [ebp - 0x10], 0xc */
    833     _flag_k = FK_ADD;
    834 L_30009F6B:
    835     eax = MEM32(ebp + (-0x28)); /* 0x30009F6B: mov eax, dword ptr [ebp - 0x28] */
    836     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    837     eax = eax + 1; /* 0x30009F6E: inc eax */
    838     _flag_k = FK_INC;
    839     MEM32(ebp + (-0x28)) = eax; /* 0x30009F6F: mov dword ptr [ebp - 0x28], eax */
    840     eax = (int32_t)(int16_t)LO16(eax); /* 0x30009F72: movsx eax, ax */
    841     MEM32(0x3001FC00) = ecx; /* 0x30009F75: mov dword ptr [0x3001fc00], ecx */
    842     /* cmp eax, MEM32(ebp + (-0x24)) */ /* 0x30009F7B: cmp eax, dword ptr [ebp - 0x24] */
    843     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x24)));
    844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    845     _flag_k = FK_CMP;
    846     MEM32(0x3001FC08) = edi; /* 0x30009F7E: mov dword ptr [0x3001fc08], edi */
    847     edi = MEM32(ebp + (-0x2C)); /* 0x30009F84: mov edi, dword ptr [ebp - 0x2c] */
    848     MEM32(0x3001FC04) = edx; /* 0x30009F87: mov dword ptr [0x3001fc04], edx */
    849     RECOMP_BACKEDGE();
    850     if (CMP_L(_flag_a, _flag_b)) goto L_30009C3B; /* 0x30009F8D: jl 0x30009c3b */
    851 L_30009F93:
    852     edi = MEM32(ebp + (-0x14)); /* 0x30009F93: mov edi, dword ptr [ebp - 0x14] */
    853     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
    854     ebx = ebx | 0xFFFFFFFFu; /* 0x30009F96: or ebx, 0xffffffff */
    855     _cf = 0;
    856     _flag_k = FK_TEST;
    857     /* cmp edi, ebx */ /* 0x30009F99: cmp edi, ebx */
    858     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    860     _flag_k = FK_CMP;
    861     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A04F; /* 0x30009F9B: je 0x3000a04f */
    862 L_30009FA1:
    863     /* cmp edi, 1 */ /* 0x30009FA1: cmp edi, 1 */
    864     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
    865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    866     _flag_k = FK_CMP;
    867     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A02E; /* 0x30009FA4: je 0x3000a02e */
    868 L_30009FAA:
    869     /* cmp edi, 2 */ /* 0x30009FAA: cmp edi, 2 */
    870     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
    871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    872     _flag_k = FK_CMP;
    873     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A05B; /* 0x30009FAD: jne 0x3000a05b */
    874 L_30009FB3:
    875     ecx = MEM32(ebp + 0x8); /* 0x30009FB3: mov ecx, dword ptr [ebp + 8] */
    876     edx = MEM32(ebp + (-0x18)); /* 0x30009FB6: mov edx, dword ptr [ebp - 0x18] */
    877     esi = ecx + 0x8; /* 0x30009FB9: lea esi, [ecx + 8] */
    878     PUSH32(esp, esi); /* 0x30009FBC: push esi */
    879     PUSH32(esp, edx); /* 0x30009FBD: push edx */
    880     PUSH32(esp, 0x3001E400u); /* 0x30009FBE: push 0x3001e400 */
    881     ecx = ebp + (-0x84); /* 0x30009FC3: lea ecx, [ebp - 0x84] */
    882     RECOMP_ICALL(0x30007A10u); /* 0x30009FC9: call 0x30007a10 */ /* not lifted */
    883     RECOMP_FLAGS_IN();
    884     ecx = MEM32(ebp + 0x10); /* 0x30009FCE: mov ecx, dword ptr [ebp + 0x10] */
    885     PUSH32(esp, eax); /* 0x30009FD1: push eax */
    886     MEM32(ebp + (-0x4)) = 0; /* 0x30009FD2: mov dword ptr [ebp - 4], 0 */
    887     RECOMP_ICALL(0x300080D0u); /* 0x30009FD9: call 0x300080d0 */ /* not lifted */
    888     RECOMP_FLAGS_IN();
    889     ecx = ebp + (-0x84); /* 0x30009FDE: lea ecx, [ebp - 0x84] */
    890     MEM32(ebp + (-0x4)) = ebx; /* 0x30009FE4: mov dword ptr [ebp - 4], ebx */
    891     RECOMP_ICALL(0x30007AB0u); /* 0x30009FE7: call 0x30007ab0 */ /* not lifted */
    892     RECOMP_FLAGS_IN();
    893     eax = MEM32(ebp + (-0x1C)); /* 0x30009FEC: mov eax, dword ptr [ebp - 0x1c] */
    894     PUSH32(esp, esi); /* 0x30009FEF: push esi */
    895     PUSH32(esp, eax); /* 0x30009FF0: push eax */
    896     PUSH32(esp, 0x3001F000u); /* 0x30009FF1: push 0x3001f000 */
    897     ecx = ebp + (-0x70); /* 0x30009FF6: lea ecx, [ebp - 0x70] */
    898     RECOMP_ICALL(0x30007A10u); /* 0x30009FF9: call 0x30007a10 */ /* not lifted */
    899     RECOMP_FLAGS_IN();
    900     ecx = MEM32(ebp + 0xC); /* 0x30009FFE: mov ecx, dword ptr [ebp + 0xc] */
    901     PUSH32(esp, eax); /* 0x3000A001: push eax */
    902     MEM32(ebp + (-0x4)) = 1; /* 0x3000A002: mov dword ptr [ebp - 4], 1 */
    903     RECOMP_ICALL(0x300080D0u); /* 0x3000A009: call 0x300080d0 */ /* not lifted */
    904     RECOMP_FLAGS_IN();
    905     ecx = ebp + (-0x70); /* 0x3000A00E: lea ecx, [ebp - 0x70] */
    906     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A011: mov dword ptr [ebp - 4], ebx */
    907     RECOMP_ICALL(0x30007AB0u); /* 0x3000A014: call 0x30007ab0 */ /* not lifted */
    908     RECOMP_FLAGS_IN();
    909     eax = edi; /* 0x3000A019: mov eax, edi */
    910     edi = POP32_VAL(esp); /* 0x3000A01B: pop edi */
    911     esi = POP32_VAL(esp); /* 0x3000A01C: pop esi */
    912     ebx = POP32_VAL(esp); /* 0x3000A01D: pop ebx */
    913     ecx = MEM32(ebp + (-0xC)); /* 0x3000A01E: mov ecx, dword ptr [ebp - 0xc] */
    914     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A021: mov dword ptr fs:[0], ecx */
    915     esp = ebp; /* 0x3000A028: mov esp, ebp */
    916     ebp = POP32_VAL(esp); /* 0x3000A02A: pop ebp */
    917     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A02B: ret 0xc */
    918 L_3000A02E:
    919     ecx = MEM32(ebp + 0x8); /* 0x3000A02E: mov ecx, dword ptr [ebp + 8] */
    920     PUSH32(esp, ecx); /* 0x3000A031: push ecx */
    921     ecx = MEM32(ebp + 0x10); /* 0x3000A032: mov ecx, dword ptr [ebp + 0x10] */
    922     RECOMP_ICALL(0x300080D0u); /* 0x3000A035: call 0x300080d0 */ /* not lifted */
    923     RECOMP_FLAGS_IN();
    924     eax = edi; /* 0x3000A03A: mov eax, edi */
    925     edi = POP32_VAL(esp); /* 0x3000A03C: pop edi */
    926     esi = POP32_VAL(esp); /* 0x3000A03D: pop esi */
    927     ebx = POP32_VAL(esp); /* 0x3000A03E: pop ebx */
    928     ecx = MEM32(ebp + (-0xC)); /* 0x3000A03F: mov ecx, dword ptr [ebp - 0xc] */
    929     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A042: mov dword ptr fs:[0], ecx */
    930     esp = ebp; /* 0x3000A049: mov esp, ebp */
    931     ebp = POP32_VAL(esp); /* 0x3000A04B: pop ebp */
    932     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A04C: ret 0xc */
    933 L_3000A04F:
    934     edx = MEM32(ebp + 0x8); /* 0x3000A04F: mov edx, dword ptr [ebp + 8] */
    935     ecx = MEM32(ebp + 0xC); /* 0x3000A052: mov ecx, dword ptr [ebp + 0xc] */
    936     PUSH32(esp, edx); /* 0x3000A055: push edx */
    937     RECOMP_ICALL(0x300080D0u); /* 0x3000A056: call 0x300080d0 */ /* not lifted */
    938     RECOMP_FLAGS_IN();
    939 L_3000A05B:
    940     eax = edi; /* 0x3000A05B: mov eax, edi */
    941     edi = POP32_VAL(esp); /* 0x3000A05D: pop edi */
    942     esi = POP32_VAL(esp); /* 0x3000A05E: pop esi */
    943     ebx = POP32_VAL(esp); /* 0x3000A05F: pop ebx */
    944     ecx = MEM32(ebp + (-0xC)); /* 0x3000A060: mov ecx, dword ptr [ebp - 0xc] */
    945     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A063: mov dword ptr fs:[0], ecx */
    946     esp = ebp; /* 0x3000A06A: mov esp, ebp */
    947     ebp = POP32_VAL(esp); /* 0x3000A06C: pop ebp */
    948     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A06D: ret 0xc */
    949 L_3000A070:
    950     ecx = MEM32(ebp + (-0xC)); /* 0x3000A070: mov ecx, dword ptr [ebp - 0xc] */
    951     edi = POP32_VAL(esp); /* 0x3000A073: pop edi */
    952     esi = POP32_VAL(esp); /* 0x3000A074: pop esi */
    953     eax = ebx; /* 0x3000A075: mov eax, ebx */
    954     ebx = POP32_VAL(esp); /* 0x3000A077: pop ebx */
    955     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A078: mov dword ptr fs:[0], ecx */
    956     esp = ebp; /* 0x3000A07F: mov esp, ebp */
    957     ebp = POP32_VAL(esp); /* 0x3000A081: pop ebp */
    958     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A082: ret 0xc */
    959     RECOMP_REGS_OUT();
    960 }
    961 
    962 void sub_30009C3B(void) {
    963     int _fpu_cmp = 0;
    964     uint32_t _cf = 0;
    965     int _df = 1;
    966     uint32_t _flag_k = FK_NONE;
    967     uint32_t _flag_a = 0, _flag_b = 0;
    968     uint32_t _itail_tgt = 0;
    969     RECOMP_REGS_LOCALS
    970     RECOMP_ENTER(0x30009C3Bu);
    971 
    972 L_30009C3B:
    973     ecx = MEM32(ebp + 0x8); /* 0x30009C3B: mov ecx, dword ptr [ebp + 8] */
    974     edx = MEM32(ecx); /* 0x30009C3E: mov edx, dword ptr [ecx] */
    975     eax = eax + eax * 2; /* 0x30009C40: lea eax, [eax + eax*2] */
    976     eax = edx + eax * 4; /* 0x30009C43: lea eax, [edx + eax*4] */
    977     ecx = MEM32(eax); /* 0x30009C46: mov ecx, dword ptr [eax] */
    978     MEM32(0x3001E3F0) = ecx; /* 0x30009C48: mov dword ptr [0x3001e3f0], ecx */
    979     edx = MEM32(eax + 0x4); /* 0x30009C4E: mov edx, dword ptr [eax + 4] */
    980     MEM32(0x3001E3F4) = edx; /* 0x30009C51: mov dword ptr [0x3001e3f4], edx */
    981     eax = MEM32(eax + 0x8); /* 0x30009C57: mov eax, dword ptr [eax + 8] */
    982     PUSH32(esp, 0x3001E3F0u); /* 0x30009C5A: push 0x3001e3f0 */
    983     ecx = esi; /* 0x30009C5F: mov ecx, esi */
    984     MEM32(0x3001E3F8) = eax; /* 0x30009C61: mov dword ptr [0x3001e3f8], eax */
    985     RECOMP_ICALL(0x30009870u); /* 0x30009C66: call 0x30009870 */ /* not lifted */
    986     RECOMP_FLAGS_IN();
    987     /* cmp eax, 1 */ /* 0x30009C6B: cmp eax, 1 */
    988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    990     _flag_k = FK_CMP;
    991     MEM32(ebp + (-0x2C)) = eax; /* 0x30009C6E: mov dword ptr [ebp - 0x2c], eax */
    992     if (CMP_NE(_flag_a, _flag_b)) goto L_30009DC5; /* 0x30009C71: jne 0x30009dc5 */
    993 L_30009C77:
    994     eax = MEM32(ebp + (-0x14)); /* 0x30009C77: mov eax, dword ptr [ebp - 0x14] */
    995     /* test eax, eax */ /* 0x30009C7A: test eax, eax */
    996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    997     _cf = 0;
    998     _flag_k = FK_TEST;
    999     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009C87; /* 0x30009C7C: jne 0x30009c87 */
   1000 L_30009C7E:
   1001     MEM32(ebp + (-0x14)) = 1; /* 0x30009C7E: mov dword ptr [ebp - 0x14], 1 */
   1002     goto L_30009C93; /* 0x30009C85: jmp 0x30009c93 */
   1003 L_30009C87:
   1004     /* cmp eax, 1 */ /* 0x30009C87: cmp eax, 1 */
   1005     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1007     _flag_k = FK_CMP;
   1008     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009C93; /* 0x30009C8A: je 0x30009c93 */
   1009 L_30009C8C:
   1010     MEM32(ebp + (-0x14)) = 2; /* 0x30009C8C: mov dword ptr [ebp - 0x14], 2 */
   1011 L_30009C93:
   1012     edx = MEM32(0x3001E3F4); /* 0x30009C93: mov edx, dword ptr [0x3001e3f4] */
   1013     ecx = MEM32(0x3001E3F0); /* 0x30009C99: mov ecx, dword ptr [0x3001e3f0] */
   1014     /* cmp edi, 0xFFFFFFFFu */ /* 0x30009C9F: cmp edi, -1 */
   1015     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1017     _flag_k = FK_CMP;
   1018     edi = MEM32(0x3001E3F8); /* 0x30009CA2: mov edi, dword ptr [0x3001e3f8] */
   1019     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F59; /* 0x30009CA8: jne 0x30009f59 */
   1020 L_30009CAE:
   1021     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009CAE: fld dword ptr [0x3001e3f0] */
   1022     MEM32(ebp + (-0x38)) = ecx; /* 0x30009CB4: mov dword ptr [ebp - 0x38], ecx */
   1023     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009CB7: fsub dword ptr [0x3001fc00] */
   1024     MEM32(ebp + (-0x34)) = edx; /* 0x30009CBD: mov dword ptr [ebp - 0x34], edx */
   1025     MEM32(ebp + (-0x30)) = edi; /* 0x30009CC0: mov dword ptr [ebp - 0x30], edi */
   1026     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x30009CC3: fstp dword ptr [ebp - 0x38] */
   1027     eax = MEM32(ebp + (-0x38)); /* 0x30009CC6: mov eax, dword ptr [ebp - 0x38] */
   1028     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009CC9: fld dword ptr [ebp - 0x34] */
   1029     MEM32(ebp + (-0x68)) = eax; /* 0x30009CCC: mov dword ptr [ebp - 0x68], eax */
   1030     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009CCF: fsub dword ptr [0x3001fc04] */
   1031     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x30009CD5: fstp dword ptr [ebp - 0x34] */
   1032     eax = MEM32(ebp + (-0x34)); /* 0x30009CD8: mov eax, dword ptr [ebp - 0x34] */
   1033     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009CDB: fld dword ptr [ebp - 0x30] */
   1034     MEM32(ebp + (-0x64)) = eax; /* 0x30009CDE: mov dword ptr [ebp - 0x64], eax */
   1035     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009CE1: fsub dword ptr [0x3001fc08] */
   1036     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x30009CE7: fstp dword ptr [ebp - 0x30] */
   1037     eax = MEM32(ebp + (-0x30)); /* 0x30009CEA: mov eax, dword ptr [ebp - 0x30] */
   1038     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009CED: fld dword ptr [0x3001fc08] */
   1039     MEM32(ebp + (-0x60)) = eax; /* 0x30009CF3: mov dword ptr [ebp - 0x60], eax */
   1040     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009CF6: fmul dword ptr [esi + 8] */
   1041     eax = MEM32(0x3001FC00); /* 0x30009CF9: mov eax, dword ptr [0x3001fc00] */
   1042     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009CFE: fld dword ptr [0x3001fc04] */
   1043     MEM32(ebp + (-0x50)) = eax; /* 0x30009D04: mov dword ptr [ebp - 0x50], eax */
   1044     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D07: fmul dword ptr [esi + 4] */
   1045     eax = MEM32(0x3001FC04); /* 0x30009D0A: mov eax, dword ptr [0x3001fc04] */
   1046     MEM32(ebp + (-0x4C)) = eax; /* 0x30009D0F: mov dword ptr [ebp - 0x4c], eax */
   1047     eax = MEM32(0x3001FC08); /* 0x30009D12: mov eax, dword ptr [0x3001fc08] */
   1048     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D17: faddp st(1) */
   1049     MEM32(ebp + (-0x48)) = eax; /* 0x30009D19: mov dword ptr [ebp - 0x48], eax */
   1050     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009D1C: fld dword ptr [0x3001fc00] */
   1051     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D22: fmul dword ptr [esi] */
   1052     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D24: faddp st(1) */
   1053     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009D26: fsub dword ptr [esi + 0xc] */
   1054     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009D29: fld dword ptr [ebp - 0x30] */
   1055     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009D2C: fmul dword ptr [esi + 8] */
   1056     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009D2F: fld dword ptr [ebp - 0x34] */
   1057     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D32: fmul dword ptr [esi + 4] */
   1058     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D35: faddp st(1) */
   1059     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D37: fld dword ptr [ebp - 0x38] */
   1060     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D3A: fmul dword ptr [esi] */
   1061     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D3C: faddp st(1) */
   1062     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009D3E: fdivp st(1) */
   1063     _st[0] = -_st[0]; /* 0x30009D40: fchs  */
   1064     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D42: fld dword ptr [ebp - 0x38] */
   1065     _st[0] *= _st[1]; /* 0x30009D45: fmul st(1) */
   1066     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x30009D47: fstp dword ptr [ebp - 0x68] */
   1067     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30009D4A: fld dword ptr [ebp - 0x64] */
   1068     _st[0] *= _st[1]; /* 0x30009D4D: fmul st(1) */
   1069     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x30009D4F: fstp dword ptr [ebp - 0x64] */
   1070     _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x30009D52: fmul dword ptr [ebp - 0x60] */
   1071     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x30009D55: fld dword ptr [ebp - 0x68] */
   1072     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009D58: fadd dword ptr [0x3001fc00] */
   1073     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x30009D5E: fstp dword ptr [ebp - 0x50] */
   1074     eax = MEM32(ebp + (-0x50)); /* 0x30009D61: mov eax, dword ptr [ebp - 0x50] */
   1075     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x30009D64: fld dword ptr [ebp - 0x4c] */
   1076     MEM32(ebx) = eax; /* 0x30009D67: mov dword ptr [ebx], eax */
   1077     _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x30009D69: fadd dword ptr [ebp - 0x64] */
   1078     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x30009D6C: fstp dword ptr [ebp - 0x4c] */
   1079     eax = MEM32(ebp + (-0x4C)); /* 0x30009D6F: mov eax, dword ptr [ebp - 0x4c] */
   1080     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x30009D72: fld dword ptr [ebp - 0x48] */
   1081     MEM32(ebx + 0x4) = eax; /* 0x30009D75: mov dword ptr [ebx + 4], eax */
   1082     _st[0] += _st[1]; /* 0x30009D78: fadd st(1) */
   1083     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x30009D7A: fstp dword ptr [ebp - 0x48] */
   1084     eax = MEM32(ebp + (-0x48)); /* 0x30009D7D: mov eax, dword ptr [ebp - 0x48] */
   1085     MEM32(ebx + 0x8) = eax; /* 0x30009D80: mov dword ptr [ebx + 8], eax */
   1086     ebx = MEM32(ebp + (-0x1C)); /* 0x30009D83: mov ebx, dword ptr [ebp - 0x1c] */
   1087     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009D86: fstp st(0) */
   1088     eax = MEM32(ebp + (-0x20)); /* 0x30009D88: mov eax, dword ptr [ebp - 0x20] */
   1089     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1090     ebx = ebx + 1; /* 0x30009D8B: inc ebx */
   1091     _flag_k = FK_INC;
   1092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1094     eax = eax + 0xCu; /* 0x30009D8C: add eax, 0xc */
   1095     _flag_k = FK_ADD;
   1096     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009D8F: mov dword ptr [ebp - 0x1c], ebx */
   1097     ebx = MEM32(ebp + (-0x50)); /* 0x30009D92: mov ebx, dword ptr [ebp - 0x50] */
   1098     MEM32(ebp + (-0x20)) = eax; /* 0x30009D95: mov dword ptr [ebp - 0x20], eax */
   1099     eax = MEM32(ebp + (-0x10)); /* 0x30009D98: mov eax, dword ptr [ebp - 0x10] */
   1100     MEM32(eax) = ebx; /* 0x30009D9B: mov dword ptr [eax], ebx */
   1101     ebx = MEM32(ebp + (-0x4C)); /* 0x30009D9D: mov ebx, dword ptr [ebp - 0x4c] */
   1102     MEM32(eax + 0x4) = ebx; /* 0x30009DA0: mov dword ptr [eax + 4], ebx */
   1103     ebx = MEM32(ebp + (-0x48)); /* 0x30009DA3: mov ebx, dword ptr [ebp - 0x48] */
   1104     MEM32(eax + 0x8) = ebx; /* 0x30009DA6: mov dword ptr [eax + 8], ebx */
   1105     ebx = MEM32(ebp + (-0x18)); /* 0x30009DA9: mov ebx, dword ptr [ebp - 0x18] */
   1106     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1107     ebx = ebx + 1; /* 0x30009DAC: inc ebx */
   1108     _flag_k = FK_INC;
   1109     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1110     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1111     eax = eax + 0xCu; /* 0x30009DAD: add eax, 0xc */
   1112     _flag_k = FK_ADD;
   1113     MEM32(ebp + (-0x18)) = ebx; /* 0x30009DB0: mov dword ptr [ebp - 0x18], ebx */
   1114     ebx = MEM32(ebp + (-0x20)); /* 0x30009DB3: mov ebx, dword ptr [ebp - 0x20] */
   1115     MEM32(ebp + (-0x10)) = eax; /* 0x30009DB6: mov dword ptr [ebp - 0x10], eax */
   1116     MEM32(ebp + (-0x14)) = 2; /* 0x30009DB9: mov dword ptr [ebp - 0x14], 2 */
   1117     goto L_30009F59; /* 0x30009DC0: jmp 0x30009f59 */
   1118 L_30009DC5:
   1119     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DC5: cmp eax, -1 */
   1120     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1122     _flag_k = FK_CMP;
   1123     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F30; /* 0x30009DC8: jne 0x30009f30 */
   1124 L_30009DCE:
   1125     eax = MEM32(ebp + (-0x14)); /* 0x30009DCE: mov eax, dword ptr [ebp - 0x14] */
   1126     /* test eax, eax */ /* 0x30009DD1: test eax, eax */
   1127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1128     _cf = 0;
   1129     _flag_k = FK_TEST;
   1130     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009DDE; /* 0x30009DD3: jne 0x30009dde */
   1131 L_30009DD5:
   1132     MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x30009DD5: mov dword ptr [ebp - 0x14], 0xffffffff */
   1133     goto L_30009DEA; /* 0x30009DDC: jmp 0x30009dea */
   1134 L_30009DDE:
   1135     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DDE: cmp eax, -1 */
   1136     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1138     _flag_k = FK_CMP;
   1139     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009DEA; /* 0x30009DE1: je 0x30009dea */
   1140 L_30009DE3:
   1141     MEM32(ebp + (-0x14)) = 2; /* 0x30009DE3: mov dword ptr [ebp - 0x14], 2 */
   1142 L_30009DEA:
   1143     edx = MEM32(0x3001E3F4); /* 0x30009DEA: mov edx, dword ptr [0x3001e3f4] */
   1144     ecx = MEM32(0x3001E3F0); /* 0x30009DF0: mov ecx, dword ptr [0x3001e3f0] */
   1145     /* cmp edi, 1 */ /* 0x30009DF6: cmp edi, 1 */
   1146     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1148     _flag_k = FK_CMP;
   1149     edi = MEM32(0x3001E3F8); /* 0x30009DF9: mov edi, dword ptr [0x3001e3f8] */
   1150     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F17; /* 0x30009DFF: jne 0x30009f17 */
   1151 L_30009E05:
   1152     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009E05: fld dword ptr [0x3001e3f0] */
   1153     MEM32(ebp + (-0x44)) = ecx; /* 0x30009E0B: mov dword ptr [ebp - 0x44], ecx */
   1154     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009E0E: fsub dword ptr [0x3001fc00] */
   1155     MEM32(ebp + (-0x40)) = edx; /* 0x30009E14: mov dword ptr [ebp - 0x40], edx */
   1156     MEM32(ebp + (-0x3C)) = edi; /* 0x30009E17: mov dword ptr [ebp - 0x3c], edi */
   1157     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x30009E1A: fstp dword ptr [ebp - 0x44] */
   1158     eax = MEM32(ebp + (-0x44)); /* 0x30009E1D: mov eax, dword ptr [ebp - 0x44] */
   1159     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E20: fld dword ptr [ebp - 0x40] */
   1160     MEM32(ebp + (-0x7C)) = eax; /* 0x30009E23: mov dword ptr [ebp - 0x7c], eax */
   1161     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009E26: fsub dword ptr [0x3001fc04] */
   1162     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x30009E2C: fstp dword ptr [ebp - 0x40] */
   1163     eax = MEM32(ebp + (-0x40)); /* 0x30009E2F: mov eax, dword ptr [ebp - 0x40] */
   1164     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E32: fld dword ptr [ebp - 0x3c] */
   1165     MEM32(ebp + (-0x78)) = eax; /* 0x30009E35: mov dword ptr [ebp - 0x78], eax */
   1166     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009E38: fsub dword ptr [0x3001fc08] */
   1167     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x30009E3E: fstp dword ptr [ebp - 0x3c] */
   1168     eax = MEM32(ebp + (-0x3C)); /* 0x30009E41: mov eax, dword ptr [ebp - 0x3c] */
   1169     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009E44: fld dword ptr [0x3001fc08] */
   1170     MEM32(ebp + (-0x74)) = eax; /* 0x30009E4A: mov dword ptr [ebp - 0x74], eax */
   1171     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E4D: fmul dword ptr [esi + 8] */
   1172     eax = MEM32(0x3001FC00); /* 0x30009E50: mov eax, dword ptr [0x3001fc00] */
   1173     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009E55: fld dword ptr [0x3001fc04] */
   1174     MEM32(ebp + (-0x5C)) = eax; /* 0x30009E5B: mov dword ptr [ebp - 0x5c], eax */
   1175     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E5E: fmul dword ptr [esi + 4] */
   1176     eax = MEM32(0x3001FC04); /* 0x30009E61: mov eax, dword ptr [0x3001fc04] */
   1177     MEM32(ebp + (-0x58)) = eax; /* 0x30009E66: mov dword ptr [ebp - 0x58], eax */
   1178     eax = MEM32(0x3001FC08); /* 0x30009E69: mov eax, dword ptr [0x3001fc08] */
   1179     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E6E: faddp st(1) */
   1180     MEM32(ebp + (-0x54)) = eax; /* 0x30009E70: mov dword ptr [ebp - 0x54], eax */
   1181     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009E73: fld dword ptr [0x3001fc00] */
   1182     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E79: fmul dword ptr [esi] */
   1183     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E7B: faddp st(1) */
   1184     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009E7D: fsub dword ptr [esi + 0xc] */
   1185     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E80: fld dword ptr [ebp - 0x3c] */
   1186     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E83: fmul dword ptr [esi + 8] */
   1187     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E86: fld dword ptr [ebp - 0x40] */
   1188     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E89: fmul dword ptr [esi + 4] */
   1189     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E8C: faddp st(1) */
   1190     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E8E: fld dword ptr [ebp - 0x44] */
   1191     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E91: fmul dword ptr [esi] */
   1192     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E93: faddp st(1) */
   1193     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009E95: fdivp st(1) */
   1194     _st[0] = -_st[0]; /* 0x30009E97: fchs  */
   1195     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E99: fld dword ptr [ebp - 0x44] */
   1196     _st[0] *= _st[1]; /* 0x30009E9C: fmul st(1) */
   1197     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x30009E9E: fstp dword ptr [ebp - 0x7c] */
   1198     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30009EA1: fld dword ptr [ebp - 0x78] */
   1199     _st[0] *= _st[1]; /* 0x30009EA4: fmul st(1) */
   1200     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x30009EA6: fstp dword ptr [ebp - 0x78] */
   1201     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x30009EA9: fmul dword ptr [ebp - 0x74] */
   1202     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x30009EAC: fld dword ptr [ebp - 0x7c] */
   1203     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009EAF: fadd dword ptr [0x3001fc00] */
   1204     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x30009EB5: fstp dword ptr [ebp - 0x5c] */
   1205     eax = MEM32(ebp + (-0x5C)); /* 0x30009EB8: mov eax, dword ptr [ebp - 0x5c] */
   1206     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x30009EBB: fld dword ptr [ebp - 0x58] */
   1207     MEM32(ebx) = eax; /* 0x30009EBE: mov dword ptr [ebx], eax */
   1208     _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x30009EC0: fadd dword ptr [ebp - 0x78] */
   1209     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x30009EC3: fstp dword ptr [ebp - 0x58] */
   1210     eax = MEM32(ebp + (-0x58)); /* 0x30009EC6: mov eax, dword ptr [ebp - 0x58] */
   1211     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30009EC9: fld dword ptr [ebp - 0x54] */
   1212     MEM32(ebx + 0x4) = eax; /* 0x30009ECC: mov dword ptr [ebx + 4], eax */
   1213     _st[0] += _st[1]; /* 0x30009ECF: fadd st(1) */
   1214     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x30009ED1: fstp dword ptr [ebp - 0x54] */
   1215     eax = MEM32(ebp + (-0x54)); /* 0x30009ED4: mov eax, dword ptr [ebp - 0x54] */
   1216     MEM32(ebx + 0x8) = eax; /* 0x30009ED7: mov dword ptr [ebx + 8], eax */
   1217     ebx = MEM32(ebp + (-0x1C)); /* 0x30009EDA: mov ebx, dword ptr [ebp - 0x1c] */
   1218     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009EDD: fstp st(0) */
   1219     eax = MEM32(ebp + (-0x20)); /* 0x30009EDF: mov eax, dword ptr [ebp - 0x20] */
   1220     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1221     ebx = ebx + 1; /* 0x30009EE2: inc ebx */
   1222     _flag_k = FK_INC;
   1223     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1224     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1225     eax = eax + 0xCu; /* 0x30009EE3: add eax, 0xc */
   1226     _flag_k = FK_ADD;
   1227     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009EE6: mov dword ptr [ebp - 0x1c], ebx */
   1228     ebx = MEM32(ebp + (-0x5C)); /* 0x30009EE9: mov ebx, dword ptr [ebp - 0x5c] */
   1229     MEM32(ebp + (-0x20)) = eax; /* 0x30009EEC: mov dword ptr [ebp - 0x20], eax */
   1230     eax = MEM32(ebp + (-0x10)); /* 0x30009EEF: mov eax, dword ptr [ebp - 0x10] */
   1231     MEM32(eax) = ebx; /* 0x30009EF2: mov dword ptr [eax], ebx */
   1232     ebx = MEM32(ebp + (-0x58)); /* 0x30009EF4: mov ebx, dword ptr [ebp - 0x58] */
   1233     MEM32(eax + 0x4) = ebx; /* 0x30009EF7: mov dword ptr [eax + 4], ebx */
   1234     ebx = MEM32(ebp + (-0x54)); /* 0x30009EFA: mov ebx, dword ptr [ebp - 0x54] */
   1235     MEM32(eax + 0x8) = ebx; /* 0x30009EFD: mov dword ptr [eax + 8], ebx */
   1236     ebx = MEM32(ebp + (-0x18)); /* 0x30009F00: mov ebx, dword ptr [ebp - 0x18] */
   1237     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1238     ebx = ebx + 1; /* 0x30009F03: inc ebx */
   1239     _flag_k = FK_INC;
   1240     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1242     eax = eax + 0xCu; /* 0x30009F04: add eax, 0xc */
   1243     _flag_k = FK_ADD;
   1244     MEM32(ebp + (-0x18)) = ebx; /* 0x30009F07: mov dword ptr [ebp - 0x18], ebx */
   1245     ebx = MEM32(ebp + (-0x20)); /* 0x30009F0A: mov ebx, dword ptr [ebp - 0x20] */
   1246     MEM32(ebp + (-0x10)) = eax; /* 0x30009F0D: mov dword ptr [ebp - 0x10], eax */
   1247     MEM32(ebp + (-0x14)) = 2; /* 0x30009F10: mov dword ptr [ebp - 0x14], 2 */
   1248 L_30009F17:
   1249     eax = ebx; /* 0x30009F17: mov eax, ebx */
   1250     MEM32(eax) = ecx; /* 0x30009F19: mov dword ptr [eax], ecx */
   1251     MEM32(eax + 0x4) = edx; /* 0x30009F1B: mov dword ptr [eax + 4], edx */
   1252     MEM32(eax + 0x8) = edi; /* 0x30009F1E: mov dword ptr [eax + 8], edi */
   1253     eax = MEM32(ebp + (-0x1C)); /* 0x30009F21: mov eax, dword ptr [ebp - 0x1c] */
   1254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1255     eax = eax + 1; /* 0x30009F24: inc eax */
   1256     _flag_k = FK_INC;
   1257     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1258     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1259     ebx = ebx + 0xCu; /* 0x30009F25: add ebx, 0xc */
   1260     _flag_k = FK_ADD;
   1261     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F28: mov dword ptr [ebp - 0x1c], eax */
   1262     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F2B: mov dword ptr [ebp - 0x20], ebx */
   1263     goto L_30009F6B; /* 0x30009F2E: jmp 0x30009f6b */
   1264 L_30009F30:
   1265     ecx = MEM32(0x3001E3F0); /* 0x30009F30: mov ecx, dword ptr [0x3001e3f0] */
   1266     edx = MEM32(0x3001E3F4); /* 0x30009F36: mov edx, dword ptr [0x3001e3f4] */
   1267     edi = MEM32(0x3001E3F8); /* 0x30009F3C: mov edi, dword ptr [0x3001e3f8] */
   1268     eax = ebx; /* 0x30009F42: mov eax, ebx */
   1269     MEM32(eax) = ecx; /* 0x30009F44: mov dword ptr [eax], ecx */
   1270     MEM32(eax + 0x4) = edx; /* 0x30009F46: mov dword ptr [eax + 4], edx */
   1271     MEM32(eax + 0x8) = edi; /* 0x30009F49: mov dword ptr [eax + 8], edi */
   1272     eax = MEM32(ebp + (-0x1C)); /* 0x30009F4C: mov eax, dword ptr [ebp - 0x1c] */
   1273     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1274     eax = eax + 1; /* 0x30009F4F: inc eax */
   1275     _flag_k = FK_INC;
   1276     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1277     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1278     ebx = ebx + 0xCu; /* 0x30009F50: add ebx, 0xc */
   1279     _flag_k = FK_ADD;
   1280     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F53: mov dword ptr [ebp - 0x1c], eax */
   1281     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F56: mov dword ptr [ebp - 0x20], ebx */
   1282 L_30009F59:
   1283     eax = MEM32(ebp + (-0x10)); /* 0x30009F59: mov eax, dword ptr [ebp - 0x10] */
   1284     MEM32(eax) = ecx; /* 0x30009F5C: mov dword ptr [eax], ecx */
   1285     MEM32(eax + 0x4) = edx; /* 0x30009F5E: mov dword ptr [eax + 4], edx */
   1286     MEM32(eax + 0x8) = edi; /* 0x30009F61: mov dword ptr [eax + 8], edi */
   1287     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1);
   1288     MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x30009F64: inc dword ptr [ebp - 0x18] */
   1289     _flag_k = FK_INC;
   1290     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xCu);
   1291     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1292     MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xCu; /* 0x30009F67: add dword ptr [ebp - 0x10], 0xc */
   1293     _flag_k = FK_ADD;
   1294 L_30009F6B:
   1295     eax = MEM32(ebp + (-0x28)); /* 0x30009F6B: mov eax, dword ptr [ebp - 0x28] */
   1296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1297     eax = eax + 1; /* 0x30009F6E: inc eax */
   1298     _flag_k = FK_INC;
   1299     MEM32(ebp + (-0x28)) = eax; /* 0x30009F6F: mov dword ptr [ebp - 0x28], eax */
   1300     eax = (int32_t)(int16_t)LO16(eax); /* 0x30009F72: movsx eax, ax */
   1301     MEM32(0x3001FC00) = ecx; /* 0x30009F75: mov dword ptr [0x3001fc00], ecx */
   1302     /* cmp eax, MEM32(ebp + (-0x24)) */ /* 0x30009F7B: cmp eax, dword ptr [ebp - 0x24] */
   1303     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x24)));
   1304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1305     _flag_k = FK_CMP;
   1306     MEM32(0x3001FC08) = edi; /* 0x30009F7E: mov dword ptr [0x3001fc08], edi */
   1307     edi = MEM32(ebp + (-0x2C)); /* 0x30009F84: mov edi, dword ptr [ebp - 0x2c] */
   1308     MEM32(0x3001FC04) = edx; /* 0x30009F87: mov dword ptr [0x3001fc04], edx */
   1309     RECOMP_BACKEDGE();
   1310     if (CMP_L(_flag_a, _flag_b)) goto L_30009C3B; /* 0x30009F8D: jl 0x30009c3b */
   1311 L_30009F93:
   1312     edi = MEM32(ebp + (-0x14)); /* 0x30009F93: mov edi, dword ptr [ebp - 0x14] */
   1313     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   1314     ebx = ebx | 0xFFFFFFFFu; /* 0x30009F96: or ebx, 0xffffffff */
   1315     _cf = 0;
   1316     _flag_k = FK_TEST;
   1317     /* cmp edi, ebx */ /* 0x30009F99: cmp edi, ebx */
   1318     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1320     _flag_k = FK_CMP;
   1321     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A04F; /* 0x30009F9B: je 0x3000a04f */
   1322 L_30009FA1:
   1323     /* cmp edi, 1 */ /* 0x30009FA1: cmp edi, 1 */
   1324     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1326     _flag_k = FK_CMP;
   1327     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A02E; /* 0x30009FA4: je 0x3000a02e */
   1328 L_30009FAA:
   1329     /* cmp edi, 2 */ /* 0x30009FAA: cmp edi, 2 */
   1330     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   1331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1332     _flag_k = FK_CMP;
   1333     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A05B; /* 0x30009FAD: jne 0x3000a05b */
   1334 L_30009FB3:
   1335     ecx = MEM32(ebp + 0x8); /* 0x30009FB3: mov ecx, dword ptr [ebp + 8] */
   1336     edx = MEM32(ebp + (-0x18)); /* 0x30009FB6: mov edx, dword ptr [ebp - 0x18] */
   1337     esi = ecx + 0x8; /* 0x30009FB9: lea esi, [ecx + 8] */
   1338     PUSH32(esp, esi); /* 0x30009FBC: push esi */
   1339     PUSH32(esp, edx); /* 0x30009FBD: push edx */
   1340     PUSH32(esp, 0x3001E400u); /* 0x30009FBE: push 0x3001e400 */
   1341     ecx = ebp + (-0x84); /* 0x30009FC3: lea ecx, [ebp - 0x84] */
   1342     RECOMP_ICALL(0x30007A10u); /* 0x30009FC9: call 0x30007a10 */ /* not lifted */
   1343     RECOMP_FLAGS_IN();
   1344     ecx = MEM32(ebp + 0x10); /* 0x30009FCE: mov ecx, dword ptr [ebp + 0x10] */
   1345     PUSH32(esp, eax); /* 0x30009FD1: push eax */
   1346     MEM32(ebp + (-0x4)) = 0; /* 0x30009FD2: mov dword ptr [ebp - 4], 0 */
   1347     RECOMP_ICALL(0x300080D0u); /* 0x30009FD9: call 0x300080d0 */ /* not lifted */
   1348     RECOMP_FLAGS_IN();
   1349     ecx = ebp + (-0x84); /* 0x30009FDE: lea ecx, [ebp - 0x84] */
   1350     MEM32(ebp + (-0x4)) = ebx; /* 0x30009FE4: mov dword ptr [ebp - 4], ebx */
   1351     RECOMP_ICALL(0x30007AB0u); /* 0x30009FE7: call 0x30007ab0 */ /* not lifted */
   1352     RECOMP_FLAGS_IN();
   1353     eax = MEM32(ebp + (-0x1C)); /* 0x30009FEC: mov eax, dword ptr [ebp - 0x1c] */
   1354     PUSH32(esp, esi); /* 0x30009FEF: push esi */
   1355     PUSH32(esp, eax); /* 0x30009FF0: push eax */
   1356     PUSH32(esp, 0x3001F000u); /* 0x30009FF1: push 0x3001f000 */
   1357     ecx = ebp + (-0x70); /* 0x30009FF6: lea ecx, [ebp - 0x70] */
   1358     RECOMP_ICALL(0x30007A10u); /* 0x30009FF9: call 0x30007a10 */ /* not lifted */
   1359     RECOMP_FLAGS_IN();
   1360     ecx = MEM32(ebp + 0xC); /* 0x30009FFE: mov ecx, dword ptr [ebp + 0xc] */
   1361     PUSH32(esp, eax); /* 0x3000A001: push eax */
   1362     MEM32(ebp + (-0x4)) = 1; /* 0x3000A002: mov dword ptr [ebp - 4], 1 */
   1363     RECOMP_ICALL(0x300080D0u); /* 0x3000A009: call 0x300080d0 */ /* not lifted */
   1364     RECOMP_FLAGS_IN();
   1365     ecx = ebp + (-0x70); /* 0x3000A00E: lea ecx, [ebp - 0x70] */
   1366     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A011: mov dword ptr [ebp - 4], ebx */
   1367     RECOMP_ICALL(0x30007AB0u); /* 0x3000A014: call 0x30007ab0 */ /* not lifted */
   1368     RECOMP_FLAGS_IN();
   1369     eax = edi; /* 0x3000A019: mov eax, edi */
   1370     edi = POP32_VAL(esp); /* 0x3000A01B: pop edi */
   1371     esi = POP32_VAL(esp); /* 0x3000A01C: pop esi */
   1372     ebx = POP32_VAL(esp); /* 0x3000A01D: pop ebx */
   1373     ecx = MEM32(ebp + (-0xC)); /* 0x3000A01E: mov ecx, dword ptr [ebp - 0xc] */
   1374     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A021: mov dword ptr fs:[0], ecx */
   1375     esp = ebp; /* 0x3000A028: mov esp, ebp */
   1376     ebp = POP32_VAL(esp); /* 0x3000A02A: pop ebp */
   1377     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A02B: ret 0xc */
   1378 L_3000A02E:
   1379     ecx = MEM32(ebp + 0x8); /* 0x3000A02E: mov ecx, dword ptr [ebp + 8] */
   1380     PUSH32(esp, ecx); /* 0x3000A031: push ecx */
   1381     ecx = MEM32(ebp + 0x10); /* 0x3000A032: mov ecx, dword ptr [ebp + 0x10] */
   1382     RECOMP_ICALL(0x300080D0u); /* 0x3000A035: call 0x300080d0 */ /* not lifted */
   1383     RECOMP_FLAGS_IN();
   1384     eax = edi; /* 0x3000A03A: mov eax, edi */
   1385     edi = POP32_VAL(esp); /* 0x3000A03C: pop edi */
   1386     esi = POP32_VAL(esp); /* 0x3000A03D: pop esi */
   1387     ebx = POP32_VAL(esp); /* 0x3000A03E: pop ebx */
   1388     ecx = MEM32(ebp + (-0xC)); /* 0x3000A03F: mov ecx, dword ptr [ebp - 0xc] */
   1389     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A042: mov dword ptr fs:[0], ecx */
   1390     esp = ebp; /* 0x3000A049: mov esp, ebp */
   1391     ebp = POP32_VAL(esp); /* 0x3000A04B: pop ebp */
   1392     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A04C: ret 0xc */
   1393 L_3000A04F:
   1394     edx = MEM32(ebp + 0x8); /* 0x3000A04F: mov edx, dword ptr [ebp + 8] */
   1395     ecx = MEM32(ebp + 0xC); /* 0x3000A052: mov ecx, dword ptr [ebp + 0xc] */
   1396     PUSH32(esp, edx); /* 0x3000A055: push edx */
   1397     RECOMP_ICALL(0x300080D0u); /* 0x3000A056: call 0x300080d0 */ /* not lifted */
   1398     RECOMP_FLAGS_IN();
   1399 L_3000A05B:
   1400     eax = edi; /* 0x3000A05B: mov eax, edi */
   1401     edi = POP32_VAL(esp); /* 0x3000A05D: pop edi */
   1402     esi = POP32_VAL(esp); /* 0x3000A05E: pop esi */
   1403     ebx = POP32_VAL(esp); /* 0x3000A05F: pop ebx */
   1404     ecx = MEM32(ebp + (-0xC)); /* 0x3000A060: mov ecx, dword ptr [ebp - 0xc] */
   1405     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A063: mov dword ptr fs:[0], ecx */
   1406     esp = ebp; /* 0x3000A06A: mov esp, ebp */
   1407     ebp = POP32_VAL(esp); /* 0x3000A06C: pop ebp */
   1408     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A06D: ret 0xc */
   1409     RECOMP_REGS_OUT();
   1410 }
   1411 
   1412 void sub_30009C93(void) {
   1413     int _fpu_cmp = 0;
   1414     uint32_t _cf = 0;
   1415     int _df = 1;
   1416     uint32_t _flag_k = FK_NONE;
   1417     uint32_t _flag_a = 0, _flag_b = 0;
   1418     uint32_t _itail_tgt = 0;
   1419     RECOMP_REGS_LOCALS
   1420     RECOMP_ENTER(0x30009C93u);
   1421 
   1422     goto L_30009C93;
   1423 L_30009C3B:
   1424     ecx = MEM32(ebp + 0x8); /* 0x30009C3B: mov ecx, dword ptr [ebp + 8] */
   1425     edx = MEM32(ecx); /* 0x30009C3E: mov edx, dword ptr [ecx] */
   1426     eax = eax + eax * 2; /* 0x30009C40: lea eax, [eax + eax*2] */
   1427     eax = edx + eax * 4; /* 0x30009C43: lea eax, [edx + eax*4] */
   1428     ecx = MEM32(eax); /* 0x30009C46: mov ecx, dword ptr [eax] */
   1429     MEM32(0x3001E3F0) = ecx; /* 0x30009C48: mov dword ptr [0x3001e3f0], ecx */
   1430     edx = MEM32(eax + 0x4); /* 0x30009C4E: mov edx, dword ptr [eax + 4] */
   1431     MEM32(0x3001E3F4) = edx; /* 0x30009C51: mov dword ptr [0x3001e3f4], edx */
   1432     eax = MEM32(eax + 0x8); /* 0x30009C57: mov eax, dword ptr [eax + 8] */
   1433     PUSH32(esp, 0x3001E3F0u); /* 0x30009C5A: push 0x3001e3f0 */
   1434     ecx = esi; /* 0x30009C5F: mov ecx, esi */
   1435     MEM32(0x3001E3F8) = eax; /* 0x30009C61: mov dword ptr [0x3001e3f8], eax */
   1436     RECOMP_ICALL(0x30009870u); /* 0x30009C66: call 0x30009870 */ /* not lifted */
   1437     RECOMP_FLAGS_IN();
   1438     /* cmp eax, 1 */ /* 0x30009C6B: cmp eax, 1 */
   1439     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1441     _flag_k = FK_CMP;
   1442     MEM32(ebp + (-0x2C)) = eax; /* 0x30009C6E: mov dword ptr [ebp - 0x2c], eax */
   1443     if (CMP_NE(_flag_a, _flag_b)) goto L_30009DC5; /* 0x30009C71: jne 0x30009dc5 */
   1444 L_30009C77:
   1445     eax = MEM32(ebp + (-0x14)); /* 0x30009C77: mov eax, dword ptr [ebp - 0x14] */
   1446     /* test eax, eax */ /* 0x30009C7A: test eax, eax */
   1447     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1448     _cf = 0;
   1449     _flag_k = FK_TEST;
   1450     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009C87; /* 0x30009C7C: jne 0x30009c87 */
   1451 L_30009C7E:
   1452     MEM32(ebp + (-0x14)) = 1; /* 0x30009C7E: mov dword ptr [ebp - 0x14], 1 */
   1453     goto L_30009C93; /* 0x30009C85: jmp 0x30009c93 */
   1454 L_30009C87:
   1455     /* cmp eax, 1 */ /* 0x30009C87: cmp eax, 1 */
   1456     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1458     _flag_k = FK_CMP;
   1459     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009C93; /* 0x30009C8A: je 0x30009c93 */
   1460 L_30009C8C:
   1461     MEM32(ebp + (-0x14)) = 2; /* 0x30009C8C: mov dword ptr [ebp - 0x14], 2 */
   1462 L_30009C93:
   1463     edx = MEM32(0x3001E3F4); /* 0x30009C93: mov edx, dword ptr [0x3001e3f4] */
   1464     ecx = MEM32(0x3001E3F0); /* 0x30009C99: mov ecx, dword ptr [0x3001e3f0] */
   1465     /* cmp edi, 0xFFFFFFFFu */ /* 0x30009C9F: cmp edi, -1 */
   1466     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1468     _flag_k = FK_CMP;
   1469     edi = MEM32(0x3001E3F8); /* 0x30009CA2: mov edi, dword ptr [0x3001e3f8] */
   1470     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F59; /* 0x30009CA8: jne 0x30009f59 */
   1471 L_30009CAE:
   1472     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009CAE: fld dword ptr [0x3001e3f0] */
   1473     MEM32(ebp + (-0x38)) = ecx; /* 0x30009CB4: mov dword ptr [ebp - 0x38], ecx */
   1474     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009CB7: fsub dword ptr [0x3001fc00] */
   1475     MEM32(ebp + (-0x34)) = edx; /* 0x30009CBD: mov dword ptr [ebp - 0x34], edx */
   1476     MEM32(ebp + (-0x30)) = edi; /* 0x30009CC0: mov dword ptr [ebp - 0x30], edi */
   1477     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x30009CC3: fstp dword ptr [ebp - 0x38] */
   1478     eax = MEM32(ebp + (-0x38)); /* 0x30009CC6: mov eax, dword ptr [ebp - 0x38] */
   1479     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009CC9: fld dword ptr [ebp - 0x34] */
   1480     MEM32(ebp + (-0x68)) = eax; /* 0x30009CCC: mov dword ptr [ebp - 0x68], eax */
   1481     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009CCF: fsub dword ptr [0x3001fc04] */
   1482     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x30009CD5: fstp dword ptr [ebp - 0x34] */
   1483     eax = MEM32(ebp + (-0x34)); /* 0x30009CD8: mov eax, dword ptr [ebp - 0x34] */
   1484     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009CDB: fld dword ptr [ebp - 0x30] */
   1485     MEM32(ebp + (-0x64)) = eax; /* 0x30009CDE: mov dword ptr [ebp - 0x64], eax */
   1486     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009CE1: fsub dword ptr [0x3001fc08] */
   1487     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x30009CE7: fstp dword ptr [ebp - 0x30] */
   1488     eax = MEM32(ebp + (-0x30)); /* 0x30009CEA: mov eax, dword ptr [ebp - 0x30] */
   1489     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009CED: fld dword ptr [0x3001fc08] */
   1490     MEM32(ebp + (-0x60)) = eax; /* 0x30009CF3: mov dword ptr [ebp - 0x60], eax */
   1491     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009CF6: fmul dword ptr [esi + 8] */
   1492     eax = MEM32(0x3001FC00); /* 0x30009CF9: mov eax, dword ptr [0x3001fc00] */
   1493     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009CFE: fld dword ptr [0x3001fc04] */
   1494     MEM32(ebp + (-0x50)) = eax; /* 0x30009D04: mov dword ptr [ebp - 0x50], eax */
   1495     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D07: fmul dword ptr [esi + 4] */
   1496     eax = MEM32(0x3001FC04); /* 0x30009D0A: mov eax, dword ptr [0x3001fc04] */
   1497     MEM32(ebp + (-0x4C)) = eax; /* 0x30009D0F: mov dword ptr [ebp - 0x4c], eax */
   1498     eax = MEM32(0x3001FC08); /* 0x30009D12: mov eax, dword ptr [0x3001fc08] */
   1499     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D17: faddp st(1) */
   1500     MEM32(ebp + (-0x48)) = eax; /* 0x30009D19: mov dword ptr [ebp - 0x48], eax */
   1501     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009D1C: fld dword ptr [0x3001fc00] */
   1502     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D22: fmul dword ptr [esi] */
   1503     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D24: faddp st(1) */
   1504     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009D26: fsub dword ptr [esi + 0xc] */
   1505     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009D29: fld dword ptr [ebp - 0x30] */
   1506     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009D2C: fmul dword ptr [esi + 8] */
   1507     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009D2F: fld dword ptr [ebp - 0x34] */
   1508     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D32: fmul dword ptr [esi + 4] */
   1509     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D35: faddp st(1) */
   1510     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D37: fld dword ptr [ebp - 0x38] */
   1511     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D3A: fmul dword ptr [esi] */
   1512     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D3C: faddp st(1) */
   1513     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009D3E: fdivp st(1) */
   1514     _st[0] = -_st[0]; /* 0x30009D40: fchs  */
   1515     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D42: fld dword ptr [ebp - 0x38] */
   1516     _st[0] *= _st[1]; /* 0x30009D45: fmul st(1) */
   1517     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x30009D47: fstp dword ptr [ebp - 0x68] */
   1518     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30009D4A: fld dword ptr [ebp - 0x64] */
   1519     _st[0] *= _st[1]; /* 0x30009D4D: fmul st(1) */
   1520     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x30009D4F: fstp dword ptr [ebp - 0x64] */
   1521     _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x30009D52: fmul dword ptr [ebp - 0x60] */
   1522     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x30009D55: fld dword ptr [ebp - 0x68] */
   1523     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009D58: fadd dword ptr [0x3001fc00] */
   1524     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x30009D5E: fstp dword ptr [ebp - 0x50] */
   1525     eax = MEM32(ebp + (-0x50)); /* 0x30009D61: mov eax, dword ptr [ebp - 0x50] */
   1526     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x30009D64: fld dword ptr [ebp - 0x4c] */
   1527     MEM32(ebx) = eax; /* 0x30009D67: mov dword ptr [ebx], eax */
   1528     _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x30009D69: fadd dword ptr [ebp - 0x64] */
   1529     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x30009D6C: fstp dword ptr [ebp - 0x4c] */
   1530     eax = MEM32(ebp + (-0x4C)); /* 0x30009D6F: mov eax, dword ptr [ebp - 0x4c] */
   1531     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x30009D72: fld dword ptr [ebp - 0x48] */
   1532     MEM32(ebx + 0x4) = eax; /* 0x30009D75: mov dword ptr [ebx + 4], eax */
   1533     _st[0] += _st[1]; /* 0x30009D78: fadd st(1) */
   1534     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x30009D7A: fstp dword ptr [ebp - 0x48] */
   1535     eax = MEM32(ebp + (-0x48)); /* 0x30009D7D: mov eax, dword ptr [ebp - 0x48] */
   1536     MEM32(ebx + 0x8) = eax; /* 0x30009D80: mov dword ptr [ebx + 8], eax */
   1537     ebx = MEM32(ebp + (-0x1C)); /* 0x30009D83: mov ebx, dword ptr [ebp - 0x1c] */
   1538     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009D86: fstp st(0) */
   1539     eax = MEM32(ebp + (-0x20)); /* 0x30009D88: mov eax, dword ptr [ebp - 0x20] */
   1540     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1541     ebx = ebx + 1; /* 0x30009D8B: inc ebx */
   1542     _flag_k = FK_INC;
   1543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1544     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1545     eax = eax + 0xCu; /* 0x30009D8C: add eax, 0xc */
   1546     _flag_k = FK_ADD;
   1547     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009D8F: mov dword ptr [ebp - 0x1c], ebx */
   1548     ebx = MEM32(ebp + (-0x50)); /* 0x30009D92: mov ebx, dword ptr [ebp - 0x50] */
   1549     MEM32(ebp + (-0x20)) = eax; /* 0x30009D95: mov dword ptr [ebp - 0x20], eax */
   1550     eax = MEM32(ebp + (-0x10)); /* 0x30009D98: mov eax, dword ptr [ebp - 0x10] */
   1551     MEM32(eax) = ebx; /* 0x30009D9B: mov dword ptr [eax], ebx */
   1552     ebx = MEM32(ebp + (-0x4C)); /* 0x30009D9D: mov ebx, dword ptr [ebp - 0x4c] */
   1553     MEM32(eax + 0x4) = ebx; /* 0x30009DA0: mov dword ptr [eax + 4], ebx */
   1554     ebx = MEM32(ebp + (-0x48)); /* 0x30009DA3: mov ebx, dword ptr [ebp - 0x48] */
   1555     MEM32(eax + 0x8) = ebx; /* 0x30009DA6: mov dword ptr [eax + 8], ebx */
   1556     ebx = MEM32(ebp + (-0x18)); /* 0x30009DA9: mov ebx, dword ptr [ebp - 0x18] */
   1557     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1558     ebx = ebx + 1; /* 0x30009DAC: inc ebx */
   1559     _flag_k = FK_INC;
   1560     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1561     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1562     eax = eax + 0xCu; /* 0x30009DAD: add eax, 0xc */
   1563     _flag_k = FK_ADD;
   1564     MEM32(ebp + (-0x18)) = ebx; /* 0x30009DB0: mov dword ptr [ebp - 0x18], ebx */
   1565     ebx = MEM32(ebp + (-0x20)); /* 0x30009DB3: mov ebx, dword ptr [ebp - 0x20] */
   1566     MEM32(ebp + (-0x10)) = eax; /* 0x30009DB6: mov dword ptr [ebp - 0x10], eax */
   1567     MEM32(ebp + (-0x14)) = 2; /* 0x30009DB9: mov dword ptr [ebp - 0x14], 2 */
   1568     goto L_30009F59; /* 0x30009DC0: jmp 0x30009f59 */
   1569 L_30009DC5:
   1570     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DC5: cmp eax, -1 */
   1571     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1572     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1573     _flag_k = FK_CMP;
   1574     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F30; /* 0x30009DC8: jne 0x30009f30 */
   1575 L_30009DCE:
   1576     eax = MEM32(ebp + (-0x14)); /* 0x30009DCE: mov eax, dword ptr [ebp - 0x14] */
   1577     /* test eax, eax */ /* 0x30009DD1: test eax, eax */
   1578     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1579     _cf = 0;
   1580     _flag_k = FK_TEST;
   1581     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009DDE; /* 0x30009DD3: jne 0x30009dde */
   1582 L_30009DD5:
   1583     MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x30009DD5: mov dword ptr [ebp - 0x14], 0xffffffff */
   1584     goto L_30009DEA; /* 0x30009DDC: jmp 0x30009dea */
   1585 L_30009DDE:
   1586     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DDE: cmp eax, -1 */
   1587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1589     _flag_k = FK_CMP;
   1590     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009DEA; /* 0x30009DE1: je 0x30009dea */
   1591 L_30009DE3:
   1592     MEM32(ebp + (-0x14)) = 2; /* 0x30009DE3: mov dword ptr [ebp - 0x14], 2 */
   1593 L_30009DEA:
   1594     edx = MEM32(0x3001E3F4); /* 0x30009DEA: mov edx, dword ptr [0x3001e3f4] */
   1595     ecx = MEM32(0x3001E3F0); /* 0x30009DF0: mov ecx, dword ptr [0x3001e3f0] */
   1596     /* cmp edi, 1 */ /* 0x30009DF6: cmp edi, 1 */
   1597     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1599     _flag_k = FK_CMP;
   1600     edi = MEM32(0x3001E3F8); /* 0x30009DF9: mov edi, dword ptr [0x3001e3f8] */
   1601     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F17; /* 0x30009DFF: jne 0x30009f17 */
   1602 L_30009E05:
   1603     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009E05: fld dword ptr [0x3001e3f0] */
   1604     MEM32(ebp + (-0x44)) = ecx; /* 0x30009E0B: mov dword ptr [ebp - 0x44], ecx */
   1605     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009E0E: fsub dword ptr [0x3001fc00] */
   1606     MEM32(ebp + (-0x40)) = edx; /* 0x30009E14: mov dword ptr [ebp - 0x40], edx */
   1607     MEM32(ebp + (-0x3C)) = edi; /* 0x30009E17: mov dword ptr [ebp - 0x3c], edi */
   1608     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x30009E1A: fstp dword ptr [ebp - 0x44] */
   1609     eax = MEM32(ebp + (-0x44)); /* 0x30009E1D: mov eax, dword ptr [ebp - 0x44] */
   1610     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E20: fld dword ptr [ebp - 0x40] */
   1611     MEM32(ebp + (-0x7C)) = eax; /* 0x30009E23: mov dword ptr [ebp - 0x7c], eax */
   1612     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009E26: fsub dword ptr [0x3001fc04] */
   1613     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x30009E2C: fstp dword ptr [ebp - 0x40] */
   1614     eax = MEM32(ebp + (-0x40)); /* 0x30009E2F: mov eax, dword ptr [ebp - 0x40] */
   1615     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E32: fld dword ptr [ebp - 0x3c] */
   1616     MEM32(ebp + (-0x78)) = eax; /* 0x30009E35: mov dword ptr [ebp - 0x78], eax */
   1617     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009E38: fsub dword ptr [0x3001fc08] */
   1618     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x30009E3E: fstp dword ptr [ebp - 0x3c] */
   1619     eax = MEM32(ebp + (-0x3C)); /* 0x30009E41: mov eax, dword ptr [ebp - 0x3c] */
   1620     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009E44: fld dword ptr [0x3001fc08] */
   1621     MEM32(ebp + (-0x74)) = eax; /* 0x30009E4A: mov dword ptr [ebp - 0x74], eax */
   1622     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E4D: fmul dword ptr [esi + 8] */
   1623     eax = MEM32(0x3001FC00); /* 0x30009E50: mov eax, dword ptr [0x3001fc00] */
   1624     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009E55: fld dword ptr [0x3001fc04] */
   1625     MEM32(ebp + (-0x5C)) = eax; /* 0x30009E5B: mov dword ptr [ebp - 0x5c], eax */
   1626     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E5E: fmul dword ptr [esi + 4] */
   1627     eax = MEM32(0x3001FC04); /* 0x30009E61: mov eax, dword ptr [0x3001fc04] */
   1628     MEM32(ebp + (-0x58)) = eax; /* 0x30009E66: mov dword ptr [ebp - 0x58], eax */
   1629     eax = MEM32(0x3001FC08); /* 0x30009E69: mov eax, dword ptr [0x3001fc08] */
   1630     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E6E: faddp st(1) */
   1631     MEM32(ebp + (-0x54)) = eax; /* 0x30009E70: mov dword ptr [ebp - 0x54], eax */
   1632     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009E73: fld dword ptr [0x3001fc00] */
   1633     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E79: fmul dword ptr [esi] */
   1634     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E7B: faddp st(1) */
   1635     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009E7D: fsub dword ptr [esi + 0xc] */
   1636     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E80: fld dword ptr [ebp - 0x3c] */
   1637     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E83: fmul dword ptr [esi + 8] */
   1638     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E86: fld dword ptr [ebp - 0x40] */
   1639     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E89: fmul dword ptr [esi + 4] */
   1640     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E8C: faddp st(1) */
   1641     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E8E: fld dword ptr [ebp - 0x44] */
   1642     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E91: fmul dword ptr [esi] */
   1643     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E93: faddp st(1) */
   1644     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009E95: fdivp st(1) */
   1645     _st[0] = -_st[0]; /* 0x30009E97: fchs  */
   1646     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E99: fld dword ptr [ebp - 0x44] */
   1647     _st[0] *= _st[1]; /* 0x30009E9C: fmul st(1) */
   1648     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x30009E9E: fstp dword ptr [ebp - 0x7c] */
   1649     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30009EA1: fld dword ptr [ebp - 0x78] */
   1650     _st[0] *= _st[1]; /* 0x30009EA4: fmul st(1) */
   1651     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x30009EA6: fstp dword ptr [ebp - 0x78] */
   1652     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x30009EA9: fmul dword ptr [ebp - 0x74] */
   1653     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x30009EAC: fld dword ptr [ebp - 0x7c] */
   1654     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009EAF: fadd dword ptr [0x3001fc00] */
   1655     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x30009EB5: fstp dword ptr [ebp - 0x5c] */
   1656     eax = MEM32(ebp + (-0x5C)); /* 0x30009EB8: mov eax, dword ptr [ebp - 0x5c] */
   1657     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x30009EBB: fld dword ptr [ebp - 0x58] */
   1658     MEM32(ebx) = eax; /* 0x30009EBE: mov dword ptr [ebx], eax */
   1659     _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x30009EC0: fadd dword ptr [ebp - 0x78] */
   1660     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x30009EC3: fstp dword ptr [ebp - 0x58] */
   1661     eax = MEM32(ebp + (-0x58)); /* 0x30009EC6: mov eax, dword ptr [ebp - 0x58] */
   1662     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30009EC9: fld dword ptr [ebp - 0x54] */
   1663     MEM32(ebx + 0x4) = eax; /* 0x30009ECC: mov dword ptr [ebx + 4], eax */
   1664     _st[0] += _st[1]; /* 0x30009ECF: fadd st(1) */
   1665     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x30009ED1: fstp dword ptr [ebp - 0x54] */
   1666     eax = MEM32(ebp + (-0x54)); /* 0x30009ED4: mov eax, dword ptr [ebp - 0x54] */
   1667     MEM32(ebx + 0x8) = eax; /* 0x30009ED7: mov dword ptr [ebx + 8], eax */
   1668     ebx = MEM32(ebp + (-0x1C)); /* 0x30009EDA: mov ebx, dword ptr [ebp - 0x1c] */
   1669     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009EDD: fstp st(0) */
   1670     eax = MEM32(ebp + (-0x20)); /* 0x30009EDF: mov eax, dword ptr [ebp - 0x20] */
   1671     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1672     ebx = ebx + 1; /* 0x30009EE2: inc ebx */
   1673     _flag_k = FK_INC;
   1674     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1675     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1676     eax = eax + 0xCu; /* 0x30009EE3: add eax, 0xc */
   1677     _flag_k = FK_ADD;
   1678     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009EE6: mov dword ptr [ebp - 0x1c], ebx */
   1679     ebx = MEM32(ebp + (-0x5C)); /* 0x30009EE9: mov ebx, dword ptr [ebp - 0x5c] */
   1680     MEM32(ebp + (-0x20)) = eax; /* 0x30009EEC: mov dword ptr [ebp - 0x20], eax */
   1681     eax = MEM32(ebp + (-0x10)); /* 0x30009EEF: mov eax, dword ptr [ebp - 0x10] */
   1682     MEM32(eax) = ebx; /* 0x30009EF2: mov dword ptr [eax], ebx */
   1683     ebx = MEM32(ebp + (-0x58)); /* 0x30009EF4: mov ebx, dword ptr [ebp - 0x58] */
   1684     MEM32(eax + 0x4) = ebx; /* 0x30009EF7: mov dword ptr [eax + 4], ebx */
   1685     ebx = MEM32(ebp + (-0x54)); /* 0x30009EFA: mov ebx, dword ptr [ebp - 0x54] */
   1686     MEM32(eax + 0x8) = ebx; /* 0x30009EFD: mov dword ptr [eax + 8], ebx */
   1687     ebx = MEM32(ebp + (-0x18)); /* 0x30009F00: mov ebx, dword ptr [ebp - 0x18] */
   1688     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1689     ebx = ebx + 1; /* 0x30009F03: inc ebx */
   1690     _flag_k = FK_INC;
   1691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1692     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1693     eax = eax + 0xCu; /* 0x30009F04: add eax, 0xc */
   1694     _flag_k = FK_ADD;
   1695     MEM32(ebp + (-0x18)) = ebx; /* 0x30009F07: mov dword ptr [ebp - 0x18], ebx */
   1696     ebx = MEM32(ebp + (-0x20)); /* 0x30009F0A: mov ebx, dword ptr [ebp - 0x20] */
   1697     MEM32(ebp + (-0x10)) = eax; /* 0x30009F0D: mov dword ptr [ebp - 0x10], eax */
   1698     MEM32(ebp + (-0x14)) = 2; /* 0x30009F10: mov dword ptr [ebp - 0x14], 2 */
   1699 L_30009F17:
   1700     eax = ebx; /* 0x30009F17: mov eax, ebx */
   1701     MEM32(eax) = ecx; /* 0x30009F19: mov dword ptr [eax], ecx */
   1702     MEM32(eax + 0x4) = edx; /* 0x30009F1B: mov dword ptr [eax + 4], edx */
   1703     MEM32(eax + 0x8) = edi; /* 0x30009F1E: mov dword ptr [eax + 8], edi */
   1704     eax = MEM32(ebp + (-0x1C)); /* 0x30009F21: mov eax, dword ptr [ebp - 0x1c] */
   1705     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1706     eax = eax + 1; /* 0x30009F24: inc eax */
   1707     _flag_k = FK_INC;
   1708     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1709     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1710     ebx = ebx + 0xCu; /* 0x30009F25: add ebx, 0xc */
   1711     _flag_k = FK_ADD;
   1712     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F28: mov dword ptr [ebp - 0x1c], eax */
   1713     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F2B: mov dword ptr [ebp - 0x20], ebx */
   1714     goto L_30009F6B; /* 0x30009F2E: jmp 0x30009f6b */
   1715 L_30009F30:
   1716     ecx = MEM32(0x3001E3F0); /* 0x30009F30: mov ecx, dword ptr [0x3001e3f0] */
   1717     edx = MEM32(0x3001E3F4); /* 0x30009F36: mov edx, dword ptr [0x3001e3f4] */
   1718     edi = MEM32(0x3001E3F8); /* 0x30009F3C: mov edi, dword ptr [0x3001e3f8] */
   1719     eax = ebx; /* 0x30009F42: mov eax, ebx */
   1720     MEM32(eax) = ecx; /* 0x30009F44: mov dword ptr [eax], ecx */
   1721     MEM32(eax + 0x4) = edx; /* 0x30009F46: mov dword ptr [eax + 4], edx */
   1722     MEM32(eax + 0x8) = edi; /* 0x30009F49: mov dword ptr [eax + 8], edi */
   1723     eax = MEM32(ebp + (-0x1C)); /* 0x30009F4C: mov eax, dword ptr [ebp - 0x1c] */
   1724     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1725     eax = eax + 1; /* 0x30009F4F: inc eax */
   1726     _flag_k = FK_INC;
   1727     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1729     ebx = ebx + 0xCu; /* 0x30009F50: add ebx, 0xc */
   1730     _flag_k = FK_ADD;
   1731     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F53: mov dword ptr [ebp - 0x1c], eax */
   1732     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F56: mov dword ptr [ebp - 0x20], ebx */
   1733 L_30009F59:
   1734     eax = MEM32(ebp + (-0x10)); /* 0x30009F59: mov eax, dword ptr [ebp - 0x10] */
   1735     MEM32(eax) = ecx; /* 0x30009F5C: mov dword ptr [eax], ecx */
   1736     MEM32(eax + 0x4) = edx; /* 0x30009F5E: mov dword ptr [eax + 4], edx */
   1737     MEM32(eax + 0x8) = edi; /* 0x30009F61: mov dword ptr [eax + 8], edi */
   1738     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1);
   1739     MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x30009F64: inc dword ptr [ebp - 0x18] */
   1740     _flag_k = FK_INC;
   1741     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xCu);
   1742     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1743     MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xCu; /* 0x30009F67: add dword ptr [ebp - 0x10], 0xc */
   1744     _flag_k = FK_ADD;
   1745 L_30009F6B:
   1746     eax = MEM32(ebp + (-0x28)); /* 0x30009F6B: mov eax, dword ptr [ebp - 0x28] */
   1747     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1748     eax = eax + 1; /* 0x30009F6E: inc eax */
   1749     _flag_k = FK_INC;
   1750     MEM32(ebp + (-0x28)) = eax; /* 0x30009F6F: mov dword ptr [ebp - 0x28], eax */
   1751     eax = (int32_t)(int16_t)LO16(eax); /* 0x30009F72: movsx eax, ax */
   1752     MEM32(0x3001FC00) = ecx; /* 0x30009F75: mov dword ptr [0x3001fc00], ecx */
   1753     /* cmp eax, MEM32(ebp + (-0x24)) */ /* 0x30009F7B: cmp eax, dword ptr [ebp - 0x24] */
   1754     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x24)));
   1755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1756     _flag_k = FK_CMP;
   1757     MEM32(0x3001FC08) = edi; /* 0x30009F7E: mov dword ptr [0x3001fc08], edi */
   1758     edi = MEM32(ebp + (-0x2C)); /* 0x30009F84: mov edi, dword ptr [ebp - 0x2c] */
   1759     MEM32(0x3001FC04) = edx; /* 0x30009F87: mov dword ptr [0x3001fc04], edx */
   1760     RECOMP_BACKEDGE();
   1761     if (CMP_L(_flag_a, _flag_b)) goto L_30009C3B; /* 0x30009F8D: jl 0x30009c3b */
   1762 L_30009F93:
   1763     edi = MEM32(ebp + (-0x14)); /* 0x30009F93: mov edi, dword ptr [ebp - 0x14] */
   1764     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   1765     ebx = ebx | 0xFFFFFFFFu; /* 0x30009F96: or ebx, 0xffffffff */
   1766     _cf = 0;
   1767     _flag_k = FK_TEST;
   1768     /* cmp edi, ebx */ /* 0x30009F99: cmp edi, ebx */
   1769     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1771     _flag_k = FK_CMP;
   1772     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A04F; /* 0x30009F9B: je 0x3000a04f */
   1773 L_30009FA1:
   1774     /* cmp edi, 1 */ /* 0x30009FA1: cmp edi, 1 */
   1775     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1777     _flag_k = FK_CMP;
   1778     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A02E; /* 0x30009FA4: je 0x3000a02e */
   1779 L_30009FAA:
   1780     /* cmp edi, 2 */ /* 0x30009FAA: cmp edi, 2 */
   1781     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   1782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1783     _flag_k = FK_CMP;
   1784     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A05B; /* 0x30009FAD: jne 0x3000a05b */
   1785 L_30009FB3:
   1786     ecx = MEM32(ebp + 0x8); /* 0x30009FB3: mov ecx, dword ptr [ebp + 8] */
   1787     edx = MEM32(ebp + (-0x18)); /* 0x30009FB6: mov edx, dword ptr [ebp - 0x18] */
   1788     esi = ecx + 0x8; /* 0x30009FB9: lea esi, [ecx + 8] */
   1789     PUSH32(esp, esi); /* 0x30009FBC: push esi */
   1790     PUSH32(esp, edx); /* 0x30009FBD: push edx */
   1791     PUSH32(esp, 0x3001E400u); /* 0x30009FBE: push 0x3001e400 */
   1792     ecx = ebp + (-0x84); /* 0x30009FC3: lea ecx, [ebp - 0x84] */
   1793     RECOMP_ICALL(0x30007A10u); /* 0x30009FC9: call 0x30007a10 */ /* not lifted */
   1794     RECOMP_FLAGS_IN();
   1795     ecx = MEM32(ebp + 0x10); /* 0x30009FCE: mov ecx, dword ptr [ebp + 0x10] */
   1796     PUSH32(esp, eax); /* 0x30009FD1: push eax */
   1797     MEM32(ebp + (-0x4)) = 0; /* 0x30009FD2: mov dword ptr [ebp - 4], 0 */
   1798     RECOMP_ICALL(0x300080D0u); /* 0x30009FD9: call 0x300080d0 */ /* not lifted */
   1799     RECOMP_FLAGS_IN();
   1800     ecx = ebp + (-0x84); /* 0x30009FDE: lea ecx, [ebp - 0x84] */
   1801     MEM32(ebp + (-0x4)) = ebx; /* 0x30009FE4: mov dword ptr [ebp - 4], ebx */
   1802     RECOMP_ICALL(0x30007AB0u); /* 0x30009FE7: call 0x30007ab0 */ /* not lifted */
   1803     RECOMP_FLAGS_IN();
   1804     eax = MEM32(ebp + (-0x1C)); /* 0x30009FEC: mov eax, dword ptr [ebp - 0x1c] */
   1805     PUSH32(esp, esi); /* 0x30009FEF: push esi */
   1806     PUSH32(esp, eax); /* 0x30009FF0: push eax */
   1807     PUSH32(esp, 0x3001F000u); /* 0x30009FF1: push 0x3001f000 */
   1808     ecx = ebp + (-0x70); /* 0x30009FF6: lea ecx, [ebp - 0x70] */
   1809     RECOMP_ICALL(0x30007A10u); /* 0x30009FF9: call 0x30007a10 */ /* not lifted */
   1810     RECOMP_FLAGS_IN();
   1811     ecx = MEM32(ebp + 0xC); /* 0x30009FFE: mov ecx, dword ptr [ebp + 0xc] */
   1812     PUSH32(esp, eax); /* 0x3000A001: push eax */
   1813     MEM32(ebp + (-0x4)) = 1; /* 0x3000A002: mov dword ptr [ebp - 4], 1 */
   1814     RECOMP_ICALL(0x300080D0u); /* 0x3000A009: call 0x300080d0 */ /* not lifted */
   1815     RECOMP_FLAGS_IN();
   1816     ecx = ebp + (-0x70); /* 0x3000A00E: lea ecx, [ebp - 0x70] */
   1817     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A011: mov dword ptr [ebp - 4], ebx */
   1818     RECOMP_ICALL(0x30007AB0u); /* 0x3000A014: call 0x30007ab0 */ /* not lifted */
   1819     RECOMP_FLAGS_IN();
   1820     eax = edi; /* 0x3000A019: mov eax, edi */
   1821     edi = POP32_VAL(esp); /* 0x3000A01B: pop edi */
   1822     esi = POP32_VAL(esp); /* 0x3000A01C: pop esi */
   1823     ebx = POP32_VAL(esp); /* 0x3000A01D: pop ebx */
   1824     ecx = MEM32(ebp + (-0xC)); /* 0x3000A01E: mov ecx, dword ptr [ebp - 0xc] */
   1825     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A021: mov dword ptr fs:[0], ecx */
   1826     esp = ebp; /* 0x3000A028: mov esp, ebp */
   1827     ebp = POP32_VAL(esp); /* 0x3000A02A: pop ebp */
   1828     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A02B: ret 0xc */
   1829 L_3000A02E:
   1830     ecx = MEM32(ebp + 0x8); /* 0x3000A02E: mov ecx, dword ptr [ebp + 8] */
   1831     PUSH32(esp, ecx); /* 0x3000A031: push ecx */
   1832     ecx = MEM32(ebp + 0x10); /* 0x3000A032: mov ecx, dword ptr [ebp + 0x10] */
   1833     RECOMP_ICALL(0x300080D0u); /* 0x3000A035: call 0x300080d0 */ /* not lifted */
   1834     RECOMP_FLAGS_IN();
   1835     eax = edi; /* 0x3000A03A: mov eax, edi */
   1836     edi = POP32_VAL(esp); /* 0x3000A03C: pop edi */
   1837     esi = POP32_VAL(esp); /* 0x3000A03D: pop esi */
   1838     ebx = POP32_VAL(esp); /* 0x3000A03E: pop ebx */
   1839     ecx = MEM32(ebp + (-0xC)); /* 0x3000A03F: mov ecx, dword ptr [ebp - 0xc] */
   1840     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A042: mov dword ptr fs:[0], ecx */
   1841     esp = ebp; /* 0x3000A049: mov esp, ebp */
   1842     ebp = POP32_VAL(esp); /* 0x3000A04B: pop ebp */
   1843     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A04C: ret 0xc */
   1844 L_3000A04F:
   1845     edx = MEM32(ebp + 0x8); /* 0x3000A04F: mov edx, dword ptr [ebp + 8] */
   1846     ecx = MEM32(ebp + 0xC); /* 0x3000A052: mov ecx, dword ptr [ebp + 0xc] */
   1847     PUSH32(esp, edx); /* 0x3000A055: push edx */
   1848     RECOMP_ICALL(0x300080D0u); /* 0x3000A056: call 0x300080d0 */ /* not lifted */
   1849     RECOMP_FLAGS_IN();
   1850 L_3000A05B:
   1851     eax = edi; /* 0x3000A05B: mov eax, edi */
   1852     edi = POP32_VAL(esp); /* 0x3000A05D: pop edi */
   1853     esi = POP32_VAL(esp); /* 0x3000A05E: pop esi */
   1854     ebx = POP32_VAL(esp); /* 0x3000A05F: pop ebx */
   1855     ecx = MEM32(ebp + (-0xC)); /* 0x3000A060: mov ecx, dword ptr [ebp - 0xc] */
   1856     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A063: mov dword ptr fs:[0], ecx */
   1857     esp = ebp; /* 0x3000A06A: mov esp, ebp */
   1858     ebp = POP32_VAL(esp); /* 0x3000A06C: pop ebp */
   1859     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A06D: ret 0xc */
   1860     RECOMP_REGS_OUT();
   1861 }
   1862 
   1863 void sub_30009DC5(void) {
   1864     int _fpu_cmp = 0;
   1865     uint32_t _cf = 0;
   1866     int _df = 1;
   1867     uint32_t _flag_k = FK_NONE;
   1868     uint32_t _flag_a = 0, _flag_b = 0;
   1869     uint32_t _itail_tgt = 0;
   1870     RECOMP_REGS_LOCALS
   1871     RECOMP_ENTER(0x30009DC5u);
   1872 
   1873     goto L_30009DC5;
   1874 L_30009C3B:
   1875     ecx = MEM32(ebp + 0x8); /* 0x30009C3B: mov ecx, dword ptr [ebp + 8] */
   1876     edx = MEM32(ecx); /* 0x30009C3E: mov edx, dword ptr [ecx] */
   1877     eax = eax + eax * 2; /* 0x30009C40: lea eax, [eax + eax*2] */
   1878     eax = edx + eax * 4; /* 0x30009C43: lea eax, [edx + eax*4] */
   1879     ecx = MEM32(eax); /* 0x30009C46: mov ecx, dword ptr [eax] */
   1880     MEM32(0x3001E3F0) = ecx; /* 0x30009C48: mov dword ptr [0x3001e3f0], ecx */
   1881     edx = MEM32(eax + 0x4); /* 0x30009C4E: mov edx, dword ptr [eax + 4] */
   1882     MEM32(0x3001E3F4) = edx; /* 0x30009C51: mov dword ptr [0x3001e3f4], edx */
   1883     eax = MEM32(eax + 0x8); /* 0x30009C57: mov eax, dword ptr [eax + 8] */
   1884     PUSH32(esp, 0x3001E3F0u); /* 0x30009C5A: push 0x3001e3f0 */
   1885     ecx = esi; /* 0x30009C5F: mov ecx, esi */
   1886     MEM32(0x3001E3F8) = eax; /* 0x30009C61: mov dword ptr [0x3001e3f8], eax */
   1887     RECOMP_ICALL(0x30009870u); /* 0x30009C66: call 0x30009870 */ /* not lifted */
   1888     RECOMP_FLAGS_IN();
   1889     /* cmp eax, 1 */ /* 0x30009C6B: cmp eax, 1 */
   1890     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1892     _flag_k = FK_CMP;
   1893     MEM32(ebp + (-0x2C)) = eax; /* 0x30009C6E: mov dword ptr [ebp - 0x2c], eax */
   1894     if (CMP_NE(_flag_a, _flag_b)) goto L_30009DC5; /* 0x30009C71: jne 0x30009dc5 */
   1895 L_30009C77:
   1896     eax = MEM32(ebp + (-0x14)); /* 0x30009C77: mov eax, dword ptr [ebp - 0x14] */
   1897     /* test eax, eax */ /* 0x30009C7A: test eax, eax */
   1898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1899     _cf = 0;
   1900     _flag_k = FK_TEST;
   1901     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009C87; /* 0x30009C7C: jne 0x30009c87 */
   1902 L_30009C7E:
   1903     MEM32(ebp + (-0x14)) = 1; /* 0x30009C7E: mov dword ptr [ebp - 0x14], 1 */
   1904     goto L_30009C93; /* 0x30009C85: jmp 0x30009c93 */
   1905 L_30009C87:
   1906     /* cmp eax, 1 */ /* 0x30009C87: cmp eax, 1 */
   1907     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1909     _flag_k = FK_CMP;
   1910     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009C93; /* 0x30009C8A: je 0x30009c93 */
   1911 L_30009C8C:
   1912     MEM32(ebp + (-0x14)) = 2; /* 0x30009C8C: mov dword ptr [ebp - 0x14], 2 */
   1913 L_30009C93:
   1914     edx = MEM32(0x3001E3F4); /* 0x30009C93: mov edx, dword ptr [0x3001e3f4] */
   1915     ecx = MEM32(0x3001E3F0); /* 0x30009C99: mov ecx, dword ptr [0x3001e3f0] */
   1916     /* cmp edi, 0xFFFFFFFFu */ /* 0x30009C9F: cmp edi, -1 */
   1917     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1919     _flag_k = FK_CMP;
   1920     edi = MEM32(0x3001E3F8); /* 0x30009CA2: mov edi, dword ptr [0x3001e3f8] */
   1921     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F59; /* 0x30009CA8: jne 0x30009f59 */
   1922 L_30009CAE:
   1923     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009CAE: fld dword ptr [0x3001e3f0] */
   1924     MEM32(ebp + (-0x38)) = ecx; /* 0x30009CB4: mov dword ptr [ebp - 0x38], ecx */
   1925     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009CB7: fsub dword ptr [0x3001fc00] */
   1926     MEM32(ebp + (-0x34)) = edx; /* 0x30009CBD: mov dword ptr [ebp - 0x34], edx */
   1927     MEM32(ebp + (-0x30)) = edi; /* 0x30009CC0: mov dword ptr [ebp - 0x30], edi */
   1928     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x30009CC3: fstp dword ptr [ebp - 0x38] */
   1929     eax = MEM32(ebp + (-0x38)); /* 0x30009CC6: mov eax, dword ptr [ebp - 0x38] */
   1930     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009CC9: fld dword ptr [ebp - 0x34] */
   1931     MEM32(ebp + (-0x68)) = eax; /* 0x30009CCC: mov dword ptr [ebp - 0x68], eax */
   1932     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009CCF: fsub dword ptr [0x3001fc04] */
   1933     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x30009CD5: fstp dword ptr [ebp - 0x34] */
   1934     eax = MEM32(ebp + (-0x34)); /* 0x30009CD8: mov eax, dword ptr [ebp - 0x34] */
   1935     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009CDB: fld dword ptr [ebp - 0x30] */
   1936     MEM32(ebp + (-0x64)) = eax; /* 0x30009CDE: mov dword ptr [ebp - 0x64], eax */
   1937     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009CE1: fsub dword ptr [0x3001fc08] */
   1938     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x30009CE7: fstp dword ptr [ebp - 0x30] */
   1939     eax = MEM32(ebp + (-0x30)); /* 0x30009CEA: mov eax, dword ptr [ebp - 0x30] */
   1940     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009CED: fld dword ptr [0x3001fc08] */
   1941     MEM32(ebp + (-0x60)) = eax; /* 0x30009CF3: mov dword ptr [ebp - 0x60], eax */
   1942     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009CF6: fmul dword ptr [esi + 8] */
   1943     eax = MEM32(0x3001FC00); /* 0x30009CF9: mov eax, dword ptr [0x3001fc00] */
   1944     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009CFE: fld dword ptr [0x3001fc04] */
   1945     MEM32(ebp + (-0x50)) = eax; /* 0x30009D04: mov dword ptr [ebp - 0x50], eax */
   1946     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D07: fmul dword ptr [esi + 4] */
   1947     eax = MEM32(0x3001FC04); /* 0x30009D0A: mov eax, dword ptr [0x3001fc04] */
   1948     MEM32(ebp + (-0x4C)) = eax; /* 0x30009D0F: mov dword ptr [ebp - 0x4c], eax */
   1949     eax = MEM32(0x3001FC08); /* 0x30009D12: mov eax, dword ptr [0x3001fc08] */
   1950     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D17: faddp st(1) */
   1951     MEM32(ebp + (-0x48)) = eax; /* 0x30009D19: mov dword ptr [ebp - 0x48], eax */
   1952     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009D1C: fld dword ptr [0x3001fc00] */
   1953     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D22: fmul dword ptr [esi] */
   1954     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D24: faddp st(1) */
   1955     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009D26: fsub dword ptr [esi + 0xc] */
   1956     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009D29: fld dword ptr [ebp - 0x30] */
   1957     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009D2C: fmul dword ptr [esi + 8] */
   1958     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009D2F: fld dword ptr [ebp - 0x34] */
   1959     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D32: fmul dword ptr [esi + 4] */
   1960     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D35: faddp st(1) */
   1961     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D37: fld dword ptr [ebp - 0x38] */
   1962     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D3A: fmul dword ptr [esi] */
   1963     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D3C: faddp st(1) */
   1964     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009D3E: fdivp st(1) */
   1965     _st[0] = -_st[0]; /* 0x30009D40: fchs  */
   1966     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D42: fld dword ptr [ebp - 0x38] */
   1967     _st[0] *= _st[1]; /* 0x30009D45: fmul st(1) */
   1968     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x30009D47: fstp dword ptr [ebp - 0x68] */
   1969     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30009D4A: fld dword ptr [ebp - 0x64] */
   1970     _st[0] *= _st[1]; /* 0x30009D4D: fmul st(1) */
   1971     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x30009D4F: fstp dword ptr [ebp - 0x64] */
   1972     _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x30009D52: fmul dword ptr [ebp - 0x60] */
   1973     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x30009D55: fld dword ptr [ebp - 0x68] */
   1974     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009D58: fadd dword ptr [0x3001fc00] */
   1975     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x30009D5E: fstp dword ptr [ebp - 0x50] */
   1976     eax = MEM32(ebp + (-0x50)); /* 0x30009D61: mov eax, dword ptr [ebp - 0x50] */
   1977     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x30009D64: fld dword ptr [ebp - 0x4c] */
   1978     MEM32(ebx) = eax; /* 0x30009D67: mov dword ptr [ebx], eax */
   1979     _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x30009D69: fadd dword ptr [ebp - 0x64] */
   1980     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x30009D6C: fstp dword ptr [ebp - 0x4c] */
   1981     eax = MEM32(ebp + (-0x4C)); /* 0x30009D6F: mov eax, dword ptr [ebp - 0x4c] */
   1982     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x30009D72: fld dword ptr [ebp - 0x48] */
   1983     MEM32(ebx + 0x4) = eax; /* 0x30009D75: mov dword ptr [ebx + 4], eax */
   1984     _st[0] += _st[1]; /* 0x30009D78: fadd st(1) */
   1985     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x30009D7A: fstp dword ptr [ebp - 0x48] */
   1986     eax = MEM32(ebp + (-0x48)); /* 0x30009D7D: mov eax, dword ptr [ebp - 0x48] */
   1987     MEM32(ebx + 0x8) = eax; /* 0x30009D80: mov dword ptr [ebx + 8], eax */
   1988     ebx = MEM32(ebp + (-0x1C)); /* 0x30009D83: mov ebx, dword ptr [ebp - 0x1c] */
   1989     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009D86: fstp st(0) */
   1990     eax = MEM32(ebp + (-0x20)); /* 0x30009D88: mov eax, dword ptr [ebp - 0x20] */
   1991     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1992     ebx = ebx + 1; /* 0x30009D8B: inc ebx */
   1993     _flag_k = FK_INC;
   1994     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1996     eax = eax + 0xCu; /* 0x30009D8C: add eax, 0xc */
   1997     _flag_k = FK_ADD;
   1998     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009D8F: mov dword ptr [ebp - 0x1c], ebx */
   1999     ebx = MEM32(ebp + (-0x50)); /* 0x30009D92: mov ebx, dword ptr [ebp - 0x50] */
   2000     MEM32(ebp + (-0x20)) = eax; /* 0x30009D95: mov dword ptr [ebp - 0x20], eax */
   2001     eax = MEM32(ebp + (-0x10)); /* 0x30009D98: mov eax, dword ptr [ebp - 0x10] */
   2002     MEM32(eax) = ebx; /* 0x30009D9B: mov dword ptr [eax], ebx */
   2003     ebx = MEM32(ebp + (-0x4C)); /* 0x30009D9D: mov ebx, dword ptr [ebp - 0x4c] */
   2004     MEM32(eax + 0x4) = ebx; /* 0x30009DA0: mov dword ptr [eax + 4], ebx */
   2005     ebx = MEM32(ebp + (-0x48)); /* 0x30009DA3: mov ebx, dword ptr [ebp - 0x48] */
   2006     MEM32(eax + 0x8) = ebx; /* 0x30009DA6: mov dword ptr [eax + 8], ebx */
   2007     ebx = MEM32(ebp + (-0x18)); /* 0x30009DA9: mov ebx, dword ptr [ebp - 0x18] */
   2008     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2009     ebx = ebx + 1; /* 0x30009DAC: inc ebx */
   2010     _flag_k = FK_INC;
   2011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2012     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2013     eax = eax + 0xCu; /* 0x30009DAD: add eax, 0xc */
   2014     _flag_k = FK_ADD;
   2015     MEM32(ebp + (-0x18)) = ebx; /* 0x30009DB0: mov dword ptr [ebp - 0x18], ebx */
   2016     ebx = MEM32(ebp + (-0x20)); /* 0x30009DB3: mov ebx, dword ptr [ebp - 0x20] */
   2017     MEM32(ebp + (-0x10)) = eax; /* 0x30009DB6: mov dword ptr [ebp - 0x10], eax */
   2018     MEM32(ebp + (-0x14)) = 2; /* 0x30009DB9: mov dword ptr [ebp - 0x14], 2 */
   2019     goto L_30009F59; /* 0x30009DC0: jmp 0x30009f59 */
   2020 L_30009DC5:
   2021     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DC5: cmp eax, -1 */
   2022     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2024     _flag_k = FK_CMP;
   2025     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F30; /* 0x30009DC8: jne 0x30009f30 */
   2026 L_30009DCE:
   2027     eax = MEM32(ebp + (-0x14)); /* 0x30009DCE: mov eax, dword ptr [ebp - 0x14] */
   2028     /* test eax, eax */ /* 0x30009DD1: test eax, eax */
   2029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2030     _cf = 0;
   2031     _flag_k = FK_TEST;
   2032     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009DDE; /* 0x30009DD3: jne 0x30009dde */
   2033 L_30009DD5:
   2034     MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x30009DD5: mov dword ptr [ebp - 0x14], 0xffffffff */
   2035     goto L_30009DEA; /* 0x30009DDC: jmp 0x30009dea */
   2036 L_30009DDE:
   2037     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DDE: cmp eax, -1 */
   2038     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2040     _flag_k = FK_CMP;
   2041     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009DEA; /* 0x30009DE1: je 0x30009dea */
   2042 L_30009DE3:
   2043     MEM32(ebp + (-0x14)) = 2; /* 0x30009DE3: mov dword ptr [ebp - 0x14], 2 */
   2044 L_30009DEA:
   2045     edx = MEM32(0x3001E3F4); /* 0x30009DEA: mov edx, dword ptr [0x3001e3f4] */
   2046     ecx = MEM32(0x3001E3F0); /* 0x30009DF0: mov ecx, dword ptr [0x3001e3f0] */
   2047     /* cmp edi, 1 */ /* 0x30009DF6: cmp edi, 1 */
   2048     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2050     _flag_k = FK_CMP;
   2051     edi = MEM32(0x3001E3F8); /* 0x30009DF9: mov edi, dword ptr [0x3001e3f8] */
   2052     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F17; /* 0x30009DFF: jne 0x30009f17 */
   2053 L_30009E05:
   2054     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009E05: fld dword ptr [0x3001e3f0] */
   2055     MEM32(ebp + (-0x44)) = ecx; /* 0x30009E0B: mov dword ptr [ebp - 0x44], ecx */
   2056     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009E0E: fsub dword ptr [0x3001fc00] */
   2057     MEM32(ebp + (-0x40)) = edx; /* 0x30009E14: mov dword ptr [ebp - 0x40], edx */
   2058     MEM32(ebp + (-0x3C)) = edi; /* 0x30009E17: mov dword ptr [ebp - 0x3c], edi */
   2059     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x30009E1A: fstp dword ptr [ebp - 0x44] */
   2060     eax = MEM32(ebp + (-0x44)); /* 0x30009E1D: mov eax, dword ptr [ebp - 0x44] */
   2061     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E20: fld dword ptr [ebp - 0x40] */
   2062     MEM32(ebp + (-0x7C)) = eax; /* 0x30009E23: mov dword ptr [ebp - 0x7c], eax */
   2063     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009E26: fsub dword ptr [0x3001fc04] */
   2064     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x30009E2C: fstp dword ptr [ebp - 0x40] */
   2065     eax = MEM32(ebp + (-0x40)); /* 0x30009E2F: mov eax, dword ptr [ebp - 0x40] */
   2066     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E32: fld dword ptr [ebp - 0x3c] */
   2067     MEM32(ebp + (-0x78)) = eax; /* 0x30009E35: mov dword ptr [ebp - 0x78], eax */
   2068     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009E38: fsub dword ptr [0x3001fc08] */
   2069     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x30009E3E: fstp dword ptr [ebp - 0x3c] */
   2070     eax = MEM32(ebp + (-0x3C)); /* 0x30009E41: mov eax, dword ptr [ebp - 0x3c] */
   2071     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009E44: fld dword ptr [0x3001fc08] */
   2072     MEM32(ebp + (-0x74)) = eax; /* 0x30009E4A: mov dword ptr [ebp - 0x74], eax */
   2073     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E4D: fmul dword ptr [esi + 8] */
   2074     eax = MEM32(0x3001FC00); /* 0x30009E50: mov eax, dword ptr [0x3001fc00] */
   2075     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009E55: fld dword ptr [0x3001fc04] */
   2076     MEM32(ebp + (-0x5C)) = eax; /* 0x30009E5B: mov dword ptr [ebp - 0x5c], eax */
   2077     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E5E: fmul dword ptr [esi + 4] */
   2078     eax = MEM32(0x3001FC04); /* 0x30009E61: mov eax, dword ptr [0x3001fc04] */
   2079     MEM32(ebp + (-0x58)) = eax; /* 0x30009E66: mov dword ptr [ebp - 0x58], eax */
   2080     eax = MEM32(0x3001FC08); /* 0x30009E69: mov eax, dword ptr [0x3001fc08] */
   2081     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E6E: faddp st(1) */
   2082     MEM32(ebp + (-0x54)) = eax; /* 0x30009E70: mov dword ptr [ebp - 0x54], eax */
   2083     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009E73: fld dword ptr [0x3001fc00] */
   2084     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E79: fmul dword ptr [esi] */
   2085     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E7B: faddp st(1) */
   2086     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009E7D: fsub dword ptr [esi + 0xc] */
   2087     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E80: fld dword ptr [ebp - 0x3c] */
   2088     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E83: fmul dword ptr [esi + 8] */
   2089     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E86: fld dword ptr [ebp - 0x40] */
   2090     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E89: fmul dword ptr [esi + 4] */
   2091     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E8C: faddp st(1) */
   2092     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E8E: fld dword ptr [ebp - 0x44] */
   2093     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E91: fmul dword ptr [esi] */
   2094     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E93: faddp st(1) */
   2095     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009E95: fdivp st(1) */
   2096     _st[0] = -_st[0]; /* 0x30009E97: fchs  */
   2097     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E99: fld dword ptr [ebp - 0x44] */
   2098     _st[0] *= _st[1]; /* 0x30009E9C: fmul st(1) */
   2099     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x30009E9E: fstp dword ptr [ebp - 0x7c] */
   2100     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30009EA1: fld dword ptr [ebp - 0x78] */
   2101     _st[0] *= _st[1]; /* 0x30009EA4: fmul st(1) */
   2102     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x30009EA6: fstp dword ptr [ebp - 0x78] */
   2103     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x30009EA9: fmul dword ptr [ebp - 0x74] */
   2104     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x30009EAC: fld dword ptr [ebp - 0x7c] */
   2105     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009EAF: fadd dword ptr [0x3001fc00] */
   2106     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x30009EB5: fstp dword ptr [ebp - 0x5c] */
   2107     eax = MEM32(ebp + (-0x5C)); /* 0x30009EB8: mov eax, dword ptr [ebp - 0x5c] */
   2108     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x30009EBB: fld dword ptr [ebp - 0x58] */
   2109     MEM32(ebx) = eax; /* 0x30009EBE: mov dword ptr [ebx], eax */
   2110     _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x30009EC0: fadd dword ptr [ebp - 0x78] */
   2111     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x30009EC3: fstp dword ptr [ebp - 0x58] */
   2112     eax = MEM32(ebp + (-0x58)); /* 0x30009EC6: mov eax, dword ptr [ebp - 0x58] */
   2113     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30009EC9: fld dword ptr [ebp - 0x54] */
   2114     MEM32(ebx + 0x4) = eax; /* 0x30009ECC: mov dword ptr [ebx + 4], eax */
   2115     _st[0] += _st[1]; /* 0x30009ECF: fadd st(1) */
   2116     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x30009ED1: fstp dword ptr [ebp - 0x54] */
   2117     eax = MEM32(ebp + (-0x54)); /* 0x30009ED4: mov eax, dword ptr [ebp - 0x54] */
   2118     MEM32(ebx + 0x8) = eax; /* 0x30009ED7: mov dword ptr [ebx + 8], eax */
   2119     ebx = MEM32(ebp + (-0x1C)); /* 0x30009EDA: mov ebx, dword ptr [ebp - 0x1c] */
   2120     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009EDD: fstp st(0) */
   2121     eax = MEM32(ebp + (-0x20)); /* 0x30009EDF: mov eax, dword ptr [ebp - 0x20] */
   2122     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2123     ebx = ebx + 1; /* 0x30009EE2: inc ebx */
   2124     _flag_k = FK_INC;
   2125     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2126     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2127     eax = eax + 0xCu; /* 0x30009EE3: add eax, 0xc */
   2128     _flag_k = FK_ADD;
   2129     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009EE6: mov dword ptr [ebp - 0x1c], ebx */
   2130     ebx = MEM32(ebp + (-0x5C)); /* 0x30009EE9: mov ebx, dword ptr [ebp - 0x5c] */
   2131     MEM32(ebp + (-0x20)) = eax; /* 0x30009EEC: mov dword ptr [ebp - 0x20], eax */
   2132     eax = MEM32(ebp + (-0x10)); /* 0x30009EEF: mov eax, dword ptr [ebp - 0x10] */
   2133     MEM32(eax) = ebx; /* 0x30009EF2: mov dword ptr [eax], ebx */
   2134     ebx = MEM32(ebp + (-0x58)); /* 0x30009EF4: mov ebx, dword ptr [ebp - 0x58] */
   2135     MEM32(eax + 0x4) = ebx; /* 0x30009EF7: mov dword ptr [eax + 4], ebx */
   2136     ebx = MEM32(ebp + (-0x54)); /* 0x30009EFA: mov ebx, dword ptr [ebp - 0x54] */
   2137     MEM32(eax + 0x8) = ebx; /* 0x30009EFD: mov dword ptr [eax + 8], ebx */
   2138     ebx = MEM32(ebp + (-0x18)); /* 0x30009F00: mov ebx, dword ptr [ebp - 0x18] */
   2139     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2140     ebx = ebx + 1; /* 0x30009F03: inc ebx */
   2141     _flag_k = FK_INC;
   2142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2143     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2144     eax = eax + 0xCu; /* 0x30009F04: add eax, 0xc */
   2145     _flag_k = FK_ADD;
   2146     MEM32(ebp + (-0x18)) = ebx; /* 0x30009F07: mov dword ptr [ebp - 0x18], ebx */
   2147     ebx = MEM32(ebp + (-0x20)); /* 0x30009F0A: mov ebx, dword ptr [ebp - 0x20] */
   2148     MEM32(ebp + (-0x10)) = eax; /* 0x30009F0D: mov dword ptr [ebp - 0x10], eax */
   2149     MEM32(ebp + (-0x14)) = 2; /* 0x30009F10: mov dword ptr [ebp - 0x14], 2 */
   2150 L_30009F17:
   2151     eax = ebx; /* 0x30009F17: mov eax, ebx */
   2152     MEM32(eax) = ecx; /* 0x30009F19: mov dword ptr [eax], ecx */
   2153     MEM32(eax + 0x4) = edx; /* 0x30009F1B: mov dword ptr [eax + 4], edx */
   2154     MEM32(eax + 0x8) = edi; /* 0x30009F1E: mov dword ptr [eax + 8], edi */
   2155     eax = MEM32(ebp + (-0x1C)); /* 0x30009F21: mov eax, dword ptr [ebp - 0x1c] */
   2156     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2157     eax = eax + 1; /* 0x30009F24: inc eax */
   2158     _flag_k = FK_INC;
   2159     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   2160     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2161     ebx = ebx + 0xCu; /* 0x30009F25: add ebx, 0xc */
   2162     _flag_k = FK_ADD;
   2163     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F28: mov dword ptr [ebp - 0x1c], eax */
   2164     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F2B: mov dword ptr [ebp - 0x20], ebx */
   2165     goto L_30009F6B; /* 0x30009F2E: jmp 0x30009f6b */
   2166 L_30009F30:
   2167     ecx = MEM32(0x3001E3F0); /* 0x30009F30: mov ecx, dword ptr [0x3001e3f0] */
   2168     edx = MEM32(0x3001E3F4); /* 0x30009F36: mov edx, dword ptr [0x3001e3f4] */
   2169     edi = MEM32(0x3001E3F8); /* 0x30009F3C: mov edi, dword ptr [0x3001e3f8] */
   2170     eax = ebx; /* 0x30009F42: mov eax, ebx */
   2171     MEM32(eax) = ecx; /* 0x30009F44: mov dword ptr [eax], ecx */
   2172     MEM32(eax + 0x4) = edx; /* 0x30009F46: mov dword ptr [eax + 4], edx */
   2173     MEM32(eax + 0x8) = edi; /* 0x30009F49: mov dword ptr [eax + 8], edi */
   2174     eax = MEM32(ebp + (-0x1C)); /* 0x30009F4C: mov eax, dword ptr [ebp - 0x1c] */
   2175     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2176     eax = eax + 1; /* 0x30009F4F: inc eax */
   2177     _flag_k = FK_INC;
   2178     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   2179     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2180     ebx = ebx + 0xCu; /* 0x30009F50: add ebx, 0xc */
   2181     _flag_k = FK_ADD;
   2182     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F53: mov dword ptr [ebp - 0x1c], eax */
   2183     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F56: mov dword ptr [ebp - 0x20], ebx */
   2184 L_30009F59:
   2185     eax = MEM32(ebp + (-0x10)); /* 0x30009F59: mov eax, dword ptr [ebp - 0x10] */
   2186     MEM32(eax) = ecx; /* 0x30009F5C: mov dword ptr [eax], ecx */
   2187     MEM32(eax + 0x4) = edx; /* 0x30009F5E: mov dword ptr [eax + 4], edx */
   2188     MEM32(eax + 0x8) = edi; /* 0x30009F61: mov dword ptr [eax + 8], edi */
   2189     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1);
   2190     MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x30009F64: inc dword ptr [ebp - 0x18] */
   2191     _flag_k = FK_INC;
   2192     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xCu);
   2193     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2194     MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xCu; /* 0x30009F67: add dword ptr [ebp - 0x10], 0xc */
   2195     _flag_k = FK_ADD;
   2196 L_30009F6B:
   2197     eax = MEM32(ebp + (-0x28)); /* 0x30009F6B: mov eax, dword ptr [ebp - 0x28] */
   2198     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2199     eax = eax + 1; /* 0x30009F6E: inc eax */
   2200     _flag_k = FK_INC;
   2201     MEM32(ebp + (-0x28)) = eax; /* 0x30009F6F: mov dword ptr [ebp - 0x28], eax */
   2202     eax = (int32_t)(int16_t)LO16(eax); /* 0x30009F72: movsx eax, ax */
   2203     MEM32(0x3001FC00) = ecx; /* 0x30009F75: mov dword ptr [0x3001fc00], ecx */
   2204     /* cmp eax, MEM32(ebp + (-0x24)) */ /* 0x30009F7B: cmp eax, dword ptr [ebp - 0x24] */
   2205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x24)));
   2206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2207     _flag_k = FK_CMP;
   2208     MEM32(0x3001FC08) = edi; /* 0x30009F7E: mov dword ptr [0x3001fc08], edi */
   2209     edi = MEM32(ebp + (-0x2C)); /* 0x30009F84: mov edi, dword ptr [ebp - 0x2c] */
   2210     MEM32(0x3001FC04) = edx; /* 0x30009F87: mov dword ptr [0x3001fc04], edx */
   2211     RECOMP_BACKEDGE();
   2212     if (CMP_L(_flag_a, _flag_b)) goto L_30009C3B; /* 0x30009F8D: jl 0x30009c3b */
   2213 L_30009F93:
   2214     edi = MEM32(ebp + (-0x14)); /* 0x30009F93: mov edi, dword ptr [ebp - 0x14] */
   2215     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   2216     ebx = ebx | 0xFFFFFFFFu; /* 0x30009F96: or ebx, 0xffffffff */
   2217     _cf = 0;
   2218     _flag_k = FK_TEST;
   2219     /* cmp edi, ebx */ /* 0x30009F99: cmp edi, ebx */
   2220     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2222     _flag_k = FK_CMP;
   2223     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A04F; /* 0x30009F9B: je 0x3000a04f */
   2224 L_30009FA1:
   2225     /* cmp edi, 1 */ /* 0x30009FA1: cmp edi, 1 */
   2226     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2228     _flag_k = FK_CMP;
   2229     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A02E; /* 0x30009FA4: je 0x3000a02e */
   2230 L_30009FAA:
   2231     /* cmp edi, 2 */ /* 0x30009FAA: cmp edi, 2 */
   2232     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   2233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2234     _flag_k = FK_CMP;
   2235     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A05B; /* 0x30009FAD: jne 0x3000a05b */
   2236 L_30009FB3:
   2237     ecx = MEM32(ebp + 0x8); /* 0x30009FB3: mov ecx, dword ptr [ebp + 8] */
   2238     edx = MEM32(ebp + (-0x18)); /* 0x30009FB6: mov edx, dword ptr [ebp - 0x18] */
   2239     esi = ecx + 0x8; /* 0x30009FB9: lea esi, [ecx + 8] */
   2240     PUSH32(esp, esi); /* 0x30009FBC: push esi */
   2241     PUSH32(esp, edx); /* 0x30009FBD: push edx */
   2242     PUSH32(esp, 0x3001E400u); /* 0x30009FBE: push 0x3001e400 */
   2243     ecx = ebp + (-0x84); /* 0x30009FC3: lea ecx, [ebp - 0x84] */
   2244     RECOMP_ICALL(0x30007A10u); /* 0x30009FC9: call 0x30007a10 */ /* not lifted */
   2245     RECOMP_FLAGS_IN();
   2246     ecx = MEM32(ebp + 0x10); /* 0x30009FCE: mov ecx, dword ptr [ebp + 0x10] */
   2247     PUSH32(esp, eax); /* 0x30009FD1: push eax */
   2248     MEM32(ebp + (-0x4)) = 0; /* 0x30009FD2: mov dword ptr [ebp - 4], 0 */
   2249     RECOMP_ICALL(0x300080D0u); /* 0x30009FD9: call 0x300080d0 */ /* not lifted */
   2250     RECOMP_FLAGS_IN();
   2251     ecx = ebp + (-0x84); /* 0x30009FDE: lea ecx, [ebp - 0x84] */
   2252     MEM32(ebp + (-0x4)) = ebx; /* 0x30009FE4: mov dword ptr [ebp - 4], ebx */
   2253     RECOMP_ICALL(0x30007AB0u); /* 0x30009FE7: call 0x30007ab0 */ /* not lifted */
   2254     RECOMP_FLAGS_IN();
   2255     eax = MEM32(ebp + (-0x1C)); /* 0x30009FEC: mov eax, dword ptr [ebp - 0x1c] */
   2256     PUSH32(esp, esi); /* 0x30009FEF: push esi */
   2257     PUSH32(esp, eax); /* 0x30009FF0: push eax */
   2258     PUSH32(esp, 0x3001F000u); /* 0x30009FF1: push 0x3001f000 */
   2259     ecx = ebp + (-0x70); /* 0x30009FF6: lea ecx, [ebp - 0x70] */
   2260     RECOMP_ICALL(0x30007A10u); /* 0x30009FF9: call 0x30007a10 */ /* not lifted */
   2261     RECOMP_FLAGS_IN();
   2262     ecx = MEM32(ebp + 0xC); /* 0x30009FFE: mov ecx, dword ptr [ebp + 0xc] */
   2263     PUSH32(esp, eax); /* 0x3000A001: push eax */
   2264     MEM32(ebp + (-0x4)) = 1; /* 0x3000A002: mov dword ptr [ebp - 4], 1 */
   2265     RECOMP_ICALL(0x300080D0u); /* 0x3000A009: call 0x300080d0 */ /* not lifted */
   2266     RECOMP_FLAGS_IN();
   2267     ecx = ebp + (-0x70); /* 0x3000A00E: lea ecx, [ebp - 0x70] */
   2268     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A011: mov dword ptr [ebp - 4], ebx */
   2269     RECOMP_ICALL(0x30007AB0u); /* 0x3000A014: call 0x30007ab0 */ /* not lifted */
   2270     RECOMP_FLAGS_IN();
   2271     eax = edi; /* 0x3000A019: mov eax, edi */
   2272     edi = POP32_VAL(esp); /* 0x3000A01B: pop edi */
   2273     esi = POP32_VAL(esp); /* 0x3000A01C: pop esi */
   2274     ebx = POP32_VAL(esp); /* 0x3000A01D: pop ebx */
   2275     ecx = MEM32(ebp + (-0xC)); /* 0x3000A01E: mov ecx, dword ptr [ebp - 0xc] */
   2276     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A021: mov dword ptr fs:[0], ecx */
   2277     esp = ebp; /* 0x3000A028: mov esp, ebp */
   2278     ebp = POP32_VAL(esp); /* 0x3000A02A: pop ebp */
   2279     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A02B: ret 0xc */
   2280 L_3000A02E:
   2281     ecx = MEM32(ebp + 0x8); /* 0x3000A02E: mov ecx, dword ptr [ebp + 8] */
   2282     PUSH32(esp, ecx); /* 0x3000A031: push ecx */
   2283     ecx = MEM32(ebp + 0x10); /* 0x3000A032: mov ecx, dword ptr [ebp + 0x10] */
   2284     RECOMP_ICALL(0x300080D0u); /* 0x3000A035: call 0x300080d0 */ /* not lifted */
   2285     RECOMP_FLAGS_IN();
   2286     eax = edi; /* 0x3000A03A: mov eax, edi */
   2287     edi = POP32_VAL(esp); /* 0x3000A03C: pop edi */
   2288     esi = POP32_VAL(esp); /* 0x3000A03D: pop esi */
   2289     ebx = POP32_VAL(esp); /* 0x3000A03E: pop ebx */
   2290     ecx = MEM32(ebp + (-0xC)); /* 0x3000A03F: mov ecx, dword ptr [ebp - 0xc] */
   2291     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A042: mov dword ptr fs:[0], ecx */
   2292     esp = ebp; /* 0x3000A049: mov esp, ebp */
   2293     ebp = POP32_VAL(esp); /* 0x3000A04B: pop ebp */
   2294     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A04C: ret 0xc */
   2295 L_3000A04F:
   2296     edx = MEM32(ebp + 0x8); /* 0x3000A04F: mov edx, dword ptr [ebp + 8] */
   2297     ecx = MEM32(ebp + 0xC); /* 0x3000A052: mov ecx, dword ptr [ebp + 0xc] */
   2298     PUSH32(esp, edx); /* 0x3000A055: push edx */
   2299     RECOMP_ICALL(0x300080D0u); /* 0x3000A056: call 0x300080d0 */ /* not lifted */
   2300     RECOMP_FLAGS_IN();
   2301 L_3000A05B:
   2302     eax = edi; /* 0x3000A05B: mov eax, edi */
   2303     edi = POP32_VAL(esp); /* 0x3000A05D: pop edi */
   2304     esi = POP32_VAL(esp); /* 0x3000A05E: pop esi */
   2305     ebx = POP32_VAL(esp); /* 0x3000A05F: pop ebx */
   2306     ecx = MEM32(ebp + (-0xC)); /* 0x3000A060: mov ecx, dword ptr [ebp - 0xc] */
   2307     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A063: mov dword ptr fs:[0], ecx */
   2308     esp = ebp; /* 0x3000A06A: mov esp, ebp */
   2309     ebp = POP32_VAL(esp); /* 0x3000A06C: pop ebp */
   2310     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A06D: ret 0xc */
   2311     RECOMP_REGS_OUT();
   2312 }
   2313 
   2314 void sub_30009DEA(void) {
   2315     int _fpu_cmp = 0;
   2316     uint32_t _cf = 0;
   2317     int _df = 1;
   2318     uint32_t _flag_k = FK_NONE;
   2319     uint32_t _flag_a = 0, _flag_b = 0;
   2320     uint32_t _itail_tgt = 0;
   2321     RECOMP_REGS_LOCALS
   2322     RECOMP_ENTER(0x30009DEAu);
   2323 
   2324     goto L_30009DEA;
   2325 L_30009C3B:
   2326     ecx = MEM32(ebp + 0x8); /* 0x30009C3B: mov ecx, dword ptr [ebp + 8] */
   2327     edx = MEM32(ecx); /* 0x30009C3E: mov edx, dword ptr [ecx] */
   2328     eax = eax + eax * 2; /* 0x30009C40: lea eax, [eax + eax*2] */
   2329     eax = edx + eax * 4; /* 0x30009C43: lea eax, [edx + eax*4] */
   2330     ecx = MEM32(eax); /* 0x30009C46: mov ecx, dword ptr [eax] */
   2331     MEM32(0x3001E3F0) = ecx; /* 0x30009C48: mov dword ptr [0x3001e3f0], ecx */
   2332     edx = MEM32(eax + 0x4); /* 0x30009C4E: mov edx, dword ptr [eax + 4] */
   2333     MEM32(0x3001E3F4) = edx; /* 0x30009C51: mov dword ptr [0x3001e3f4], edx */
   2334     eax = MEM32(eax + 0x8); /* 0x30009C57: mov eax, dword ptr [eax + 8] */
   2335     PUSH32(esp, 0x3001E3F0u); /* 0x30009C5A: push 0x3001e3f0 */
   2336     ecx = esi; /* 0x30009C5F: mov ecx, esi */
   2337     MEM32(0x3001E3F8) = eax; /* 0x30009C61: mov dword ptr [0x3001e3f8], eax */
   2338     RECOMP_ICALL(0x30009870u); /* 0x30009C66: call 0x30009870 */ /* not lifted */
   2339     RECOMP_FLAGS_IN();
   2340     /* cmp eax, 1 */ /* 0x30009C6B: cmp eax, 1 */
   2341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2343     _flag_k = FK_CMP;
   2344     MEM32(ebp + (-0x2C)) = eax; /* 0x30009C6E: mov dword ptr [ebp - 0x2c], eax */
   2345     if (CMP_NE(_flag_a, _flag_b)) goto L_30009DC5; /* 0x30009C71: jne 0x30009dc5 */
   2346 L_30009C77:
   2347     eax = MEM32(ebp + (-0x14)); /* 0x30009C77: mov eax, dword ptr [ebp - 0x14] */
   2348     /* test eax, eax */ /* 0x30009C7A: test eax, eax */
   2349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2350     _cf = 0;
   2351     _flag_k = FK_TEST;
   2352     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009C87; /* 0x30009C7C: jne 0x30009c87 */
   2353 L_30009C7E:
   2354     MEM32(ebp + (-0x14)) = 1; /* 0x30009C7E: mov dword ptr [ebp - 0x14], 1 */
   2355     goto L_30009C93; /* 0x30009C85: jmp 0x30009c93 */
   2356 L_30009C87:
   2357     /* cmp eax, 1 */ /* 0x30009C87: cmp eax, 1 */
   2358     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2360     _flag_k = FK_CMP;
   2361     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009C93; /* 0x30009C8A: je 0x30009c93 */
   2362 L_30009C8C:
   2363     MEM32(ebp + (-0x14)) = 2; /* 0x30009C8C: mov dword ptr [ebp - 0x14], 2 */
   2364 L_30009C93:
   2365     edx = MEM32(0x3001E3F4); /* 0x30009C93: mov edx, dword ptr [0x3001e3f4] */
   2366     ecx = MEM32(0x3001E3F0); /* 0x30009C99: mov ecx, dword ptr [0x3001e3f0] */
   2367     /* cmp edi, 0xFFFFFFFFu */ /* 0x30009C9F: cmp edi, -1 */
   2368     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2370     _flag_k = FK_CMP;
   2371     edi = MEM32(0x3001E3F8); /* 0x30009CA2: mov edi, dword ptr [0x3001e3f8] */
   2372     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F59; /* 0x30009CA8: jne 0x30009f59 */
   2373 L_30009CAE:
   2374     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009CAE: fld dword ptr [0x3001e3f0] */
   2375     MEM32(ebp + (-0x38)) = ecx; /* 0x30009CB4: mov dword ptr [ebp - 0x38], ecx */
   2376     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009CB7: fsub dword ptr [0x3001fc00] */
   2377     MEM32(ebp + (-0x34)) = edx; /* 0x30009CBD: mov dword ptr [ebp - 0x34], edx */
   2378     MEM32(ebp + (-0x30)) = edi; /* 0x30009CC0: mov dword ptr [ebp - 0x30], edi */
   2379     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x30009CC3: fstp dword ptr [ebp - 0x38] */
   2380     eax = MEM32(ebp + (-0x38)); /* 0x30009CC6: mov eax, dword ptr [ebp - 0x38] */
   2381     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009CC9: fld dword ptr [ebp - 0x34] */
   2382     MEM32(ebp + (-0x68)) = eax; /* 0x30009CCC: mov dword ptr [ebp - 0x68], eax */
   2383     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009CCF: fsub dword ptr [0x3001fc04] */
   2384     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x30009CD5: fstp dword ptr [ebp - 0x34] */
   2385     eax = MEM32(ebp + (-0x34)); /* 0x30009CD8: mov eax, dword ptr [ebp - 0x34] */
   2386     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009CDB: fld dword ptr [ebp - 0x30] */
   2387     MEM32(ebp + (-0x64)) = eax; /* 0x30009CDE: mov dword ptr [ebp - 0x64], eax */
   2388     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009CE1: fsub dword ptr [0x3001fc08] */
   2389     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x30009CE7: fstp dword ptr [ebp - 0x30] */
   2390     eax = MEM32(ebp + (-0x30)); /* 0x30009CEA: mov eax, dword ptr [ebp - 0x30] */
   2391     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009CED: fld dword ptr [0x3001fc08] */
   2392     MEM32(ebp + (-0x60)) = eax; /* 0x30009CF3: mov dword ptr [ebp - 0x60], eax */
   2393     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009CF6: fmul dword ptr [esi + 8] */
   2394     eax = MEM32(0x3001FC00); /* 0x30009CF9: mov eax, dword ptr [0x3001fc00] */
   2395     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009CFE: fld dword ptr [0x3001fc04] */
   2396     MEM32(ebp + (-0x50)) = eax; /* 0x30009D04: mov dword ptr [ebp - 0x50], eax */
   2397     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D07: fmul dword ptr [esi + 4] */
   2398     eax = MEM32(0x3001FC04); /* 0x30009D0A: mov eax, dword ptr [0x3001fc04] */
   2399     MEM32(ebp + (-0x4C)) = eax; /* 0x30009D0F: mov dword ptr [ebp - 0x4c], eax */
   2400     eax = MEM32(0x3001FC08); /* 0x30009D12: mov eax, dword ptr [0x3001fc08] */
   2401     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D17: faddp st(1) */
   2402     MEM32(ebp + (-0x48)) = eax; /* 0x30009D19: mov dword ptr [ebp - 0x48], eax */
   2403     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009D1C: fld dword ptr [0x3001fc00] */
   2404     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D22: fmul dword ptr [esi] */
   2405     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D24: faddp st(1) */
   2406     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009D26: fsub dword ptr [esi + 0xc] */
   2407     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009D29: fld dword ptr [ebp - 0x30] */
   2408     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009D2C: fmul dword ptr [esi + 8] */
   2409     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009D2F: fld dword ptr [ebp - 0x34] */
   2410     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D32: fmul dword ptr [esi + 4] */
   2411     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D35: faddp st(1) */
   2412     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D37: fld dword ptr [ebp - 0x38] */
   2413     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D3A: fmul dword ptr [esi] */
   2414     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D3C: faddp st(1) */
   2415     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009D3E: fdivp st(1) */
   2416     _st[0] = -_st[0]; /* 0x30009D40: fchs  */
   2417     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D42: fld dword ptr [ebp - 0x38] */
   2418     _st[0] *= _st[1]; /* 0x30009D45: fmul st(1) */
   2419     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x30009D47: fstp dword ptr [ebp - 0x68] */
   2420     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30009D4A: fld dword ptr [ebp - 0x64] */
   2421     _st[0] *= _st[1]; /* 0x30009D4D: fmul st(1) */
   2422     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x30009D4F: fstp dword ptr [ebp - 0x64] */
   2423     _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x30009D52: fmul dword ptr [ebp - 0x60] */
   2424     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x30009D55: fld dword ptr [ebp - 0x68] */
   2425     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009D58: fadd dword ptr [0x3001fc00] */
   2426     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x30009D5E: fstp dword ptr [ebp - 0x50] */
   2427     eax = MEM32(ebp + (-0x50)); /* 0x30009D61: mov eax, dword ptr [ebp - 0x50] */
   2428     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x30009D64: fld dword ptr [ebp - 0x4c] */
   2429     MEM32(ebx) = eax; /* 0x30009D67: mov dword ptr [ebx], eax */
   2430     _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x30009D69: fadd dword ptr [ebp - 0x64] */
   2431     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x30009D6C: fstp dword ptr [ebp - 0x4c] */
   2432     eax = MEM32(ebp + (-0x4C)); /* 0x30009D6F: mov eax, dword ptr [ebp - 0x4c] */
   2433     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x30009D72: fld dword ptr [ebp - 0x48] */
   2434     MEM32(ebx + 0x4) = eax; /* 0x30009D75: mov dword ptr [ebx + 4], eax */
   2435     _st[0] += _st[1]; /* 0x30009D78: fadd st(1) */
   2436     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x30009D7A: fstp dword ptr [ebp - 0x48] */
   2437     eax = MEM32(ebp + (-0x48)); /* 0x30009D7D: mov eax, dword ptr [ebp - 0x48] */
   2438     MEM32(ebx + 0x8) = eax; /* 0x30009D80: mov dword ptr [ebx + 8], eax */
   2439     ebx = MEM32(ebp + (-0x1C)); /* 0x30009D83: mov ebx, dword ptr [ebp - 0x1c] */
   2440     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009D86: fstp st(0) */
   2441     eax = MEM32(ebp + (-0x20)); /* 0x30009D88: mov eax, dword ptr [ebp - 0x20] */
   2442     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2443     ebx = ebx + 1; /* 0x30009D8B: inc ebx */
   2444     _flag_k = FK_INC;
   2445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2446     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2447     eax = eax + 0xCu; /* 0x30009D8C: add eax, 0xc */
   2448     _flag_k = FK_ADD;
   2449     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009D8F: mov dword ptr [ebp - 0x1c], ebx */
   2450     ebx = MEM32(ebp + (-0x50)); /* 0x30009D92: mov ebx, dword ptr [ebp - 0x50] */
   2451     MEM32(ebp + (-0x20)) = eax; /* 0x30009D95: mov dword ptr [ebp - 0x20], eax */
   2452     eax = MEM32(ebp + (-0x10)); /* 0x30009D98: mov eax, dword ptr [ebp - 0x10] */
   2453     MEM32(eax) = ebx; /* 0x30009D9B: mov dword ptr [eax], ebx */
   2454     ebx = MEM32(ebp + (-0x4C)); /* 0x30009D9D: mov ebx, dword ptr [ebp - 0x4c] */
   2455     MEM32(eax + 0x4) = ebx; /* 0x30009DA0: mov dword ptr [eax + 4], ebx */
   2456     ebx = MEM32(ebp + (-0x48)); /* 0x30009DA3: mov ebx, dword ptr [ebp - 0x48] */
   2457     MEM32(eax + 0x8) = ebx; /* 0x30009DA6: mov dword ptr [eax + 8], ebx */
   2458     ebx = MEM32(ebp + (-0x18)); /* 0x30009DA9: mov ebx, dword ptr [ebp - 0x18] */
   2459     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2460     ebx = ebx + 1; /* 0x30009DAC: inc ebx */
   2461     _flag_k = FK_INC;
   2462     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2463     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2464     eax = eax + 0xCu; /* 0x30009DAD: add eax, 0xc */
   2465     _flag_k = FK_ADD;
   2466     MEM32(ebp + (-0x18)) = ebx; /* 0x30009DB0: mov dword ptr [ebp - 0x18], ebx */
   2467     ebx = MEM32(ebp + (-0x20)); /* 0x30009DB3: mov ebx, dword ptr [ebp - 0x20] */
   2468     MEM32(ebp + (-0x10)) = eax; /* 0x30009DB6: mov dword ptr [ebp - 0x10], eax */
   2469     MEM32(ebp + (-0x14)) = 2; /* 0x30009DB9: mov dword ptr [ebp - 0x14], 2 */
   2470     goto L_30009F59; /* 0x30009DC0: jmp 0x30009f59 */
   2471 L_30009DC5:
   2472     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DC5: cmp eax, -1 */
   2473     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2475     _flag_k = FK_CMP;
   2476     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F30; /* 0x30009DC8: jne 0x30009f30 */
   2477 L_30009DCE:
   2478     eax = MEM32(ebp + (-0x14)); /* 0x30009DCE: mov eax, dword ptr [ebp - 0x14] */
   2479     /* test eax, eax */ /* 0x30009DD1: test eax, eax */
   2480     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2481     _cf = 0;
   2482     _flag_k = FK_TEST;
   2483     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009DDE; /* 0x30009DD3: jne 0x30009dde */
   2484 L_30009DD5:
   2485     MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x30009DD5: mov dword ptr [ebp - 0x14], 0xffffffff */
   2486     goto L_30009DEA; /* 0x30009DDC: jmp 0x30009dea */
   2487 L_30009DDE:
   2488     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DDE: cmp eax, -1 */
   2489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2491     _flag_k = FK_CMP;
   2492     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009DEA; /* 0x30009DE1: je 0x30009dea */
   2493 L_30009DE3:
   2494     MEM32(ebp + (-0x14)) = 2; /* 0x30009DE3: mov dword ptr [ebp - 0x14], 2 */
   2495 L_30009DEA:
   2496     edx = MEM32(0x3001E3F4); /* 0x30009DEA: mov edx, dword ptr [0x3001e3f4] */
   2497     ecx = MEM32(0x3001E3F0); /* 0x30009DF0: mov ecx, dword ptr [0x3001e3f0] */
   2498     /* cmp edi, 1 */ /* 0x30009DF6: cmp edi, 1 */
   2499     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2500     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2501     _flag_k = FK_CMP;
   2502     edi = MEM32(0x3001E3F8); /* 0x30009DF9: mov edi, dword ptr [0x3001e3f8] */
   2503     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F17; /* 0x30009DFF: jne 0x30009f17 */
   2504 L_30009E05:
   2505     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009E05: fld dword ptr [0x3001e3f0] */
   2506     MEM32(ebp + (-0x44)) = ecx; /* 0x30009E0B: mov dword ptr [ebp - 0x44], ecx */
   2507     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009E0E: fsub dword ptr [0x3001fc00] */
   2508     MEM32(ebp + (-0x40)) = edx; /* 0x30009E14: mov dword ptr [ebp - 0x40], edx */
   2509     MEM32(ebp + (-0x3C)) = edi; /* 0x30009E17: mov dword ptr [ebp - 0x3c], edi */
   2510     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x30009E1A: fstp dword ptr [ebp - 0x44] */
   2511     eax = MEM32(ebp + (-0x44)); /* 0x30009E1D: mov eax, dword ptr [ebp - 0x44] */
   2512     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E20: fld dword ptr [ebp - 0x40] */
   2513     MEM32(ebp + (-0x7C)) = eax; /* 0x30009E23: mov dword ptr [ebp - 0x7c], eax */
   2514     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009E26: fsub dword ptr [0x3001fc04] */
   2515     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x30009E2C: fstp dword ptr [ebp - 0x40] */
   2516     eax = MEM32(ebp + (-0x40)); /* 0x30009E2F: mov eax, dword ptr [ebp - 0x40] */
   2517     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E32: fld dword ptr [ebp - 0x3c] */
   2518     MEM32(ebp + (-0x78)) = eax; /* 0x30009E35: mov dword ptr [ebp - 0x78], eax */
   2519     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009E38: fsub dword ptr [0x3001fc08] */
   2520     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x30009E3E: fstp dword ptr [ebp - 0x3c] */
   2521     eax = MEM32(ebp + (-0x3C)); /* 0x30009E41: mov eax, dword ptr [ebp - 0x3c] */
   2522     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009E44: fld dword ptr [0x3001fc08] */
   2523     MEM32(ebp + (-0x74)) = eax; /* 0x30009E4A: mov dword ptr [ebp - 0x74], eax */
   2524     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E4D: fmul dword ptr [esi + 8] */
   2525     eax = MEM32(0x3001FC00); /* 0x30009E50: mov eax, dword ptr [0x3001fc00] */
   2526     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009E55: fld dword ptr [0x3001fc04] */
   2527     MEM32(ebp + (-0x5C)) = eax; /* 0x30009E5B: mov dword ptr [ebp - 0x5c], eax */
   2528     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E5E: fmul dword ptr [esi + 4] */
   2529     eax = MEM32(0x3001FC04); /* 0x30009E61: mov eax, dword ptr [0x3001fc04] */
   2530     MEM32(ebp + (-0x58)) = eax; /* 0x30009E66: mov dword ptr [ebp - 0x58], eax */
   2531     eax = MEM32(0x3001FC08); /* 0x30009E69: mov eax, dword ptr [0x3001fc08] */
   2532     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E6E: faddp st(1) */
   2533     MEM32(ebp + (-0x54)) = eax; /* 0x30009E70: mov dword ptr [ebp - 0x54], eax */
   2534     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009E73: fld dword ptr [0x3001fc00] */
   2535     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E79: fmul dword ptr [esi] */
   2536     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E7B: faddp st(1) */
   2537     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009E7D: fsub dword ptr [esi + 0xc] */
   2538     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E80: fld dword ptr [ebp - 0x3c] */
   2539     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E83: fmul dword ptr [esi + 8] */
   2540     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E86: fld dword ptr [ebp - 0x40] */
   2541     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E89: fmul dword ptr [esi + 4] */
   2542     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E8C: faddp st(1) */
   2543     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E8E: fld dword ptr [ebp - 0x44] */
   2544     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E91: fmul dword ptr [esi] */
   2545     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E93: faddp st(1) */
   2546     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009E95: fdivp st(1) */
   2547     _st[0] = -_st[0]; /* 0x30009E97: fchs  */
   2548     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E99: fld dword ptr [ebp - 0x44] */
   2549     _st[0] *= _st[1]; /* 0x30009E9C: fmul st(1) */
   2550     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x30009E9E: fstp dword ptr [ebp - 0x7c] */
   2551     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30009EA1: fld dword ptr [ebp - 0x78] */
   2552     _st[0] *= _st[1]; /* 0x30009EA4: fmul st(1) */
   2553     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x30009EA6: fstp dword ptr [ebp - 0x78] */
   2554     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x30009EA9: fmul dword ptr [ebp - 0x74] */
   2555     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x30009EAC: fld dword ptr [ebp - 0x7c] */
   2556     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009EAF: fadd dword ptr [0x3001fc00] */
   2557     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x30009EB5: fstp dword ptr [ebp - 0x5c] */
   2558     eax = MEM32(ebp + (-0x5C)); /* 0x30009EB8: mov eax, dword ptr [ebp - 0x5c] */
   2559     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x30009EBB: fld dword ptr [ebp - 0x58] */
   2560     MEM32(ebx) = eax; /* 0x30009EBE: mov dword ptr [ebx], eax */
   2561     _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x30009EC0: fadd dword ptr [ebp - 0x78] */
   2562     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x30009EC3: fstp dword ptr [ebp - 0x58] */
   2563     eax = MEM32(ebp + (-0x58)); /* 0x30009EC6: mov eax, dword ptr [ebp - 0x58] */
   2564     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30009EC9: fld dword ptr [ebp - 0x54] */
   2565     MEM32(ebx + 0x4) = eax; /* 0x30009ECC: mov dword ptr [ebx + 4], eax */
   2566     _st[0] += _st[1]; /* 0x30009ECF: fadd st(1) */
   2567     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x30009ED1: fstp dword ptr [ebp - 0x54] */
   2568     eax = MEM32(ebp + (-0x54)); /* 0x30009ED4: mov eax, dword ptr [ebp - 0x54] */
   2569     MEM32(ebx + 0x8) = eax; /* 0x30009ED7: mov dword ptr [ebx + 8], eax */
   2570     ebx = MEM32(ebp + (-0x1C)); /* 0x30009EDA: mov ebx, dword ptr [ebp - 0x1c] */
   2571     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009EDD: fstp st(0) */
   2572     eax = MEM32(ebp + (-0x20)); /* 0x30009EDF: mov eax, dword ptr [ebp - 0x20] */
   2573     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2574     ebx = ebx + 1; /* 0x30009EE2: inc ebx */
   2575     _flag_k = FK_INC;
   2576     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2577     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2578     eax = eax + 0xCu; /* 0x30009EE3: add eax, 0xc */
   2579     _flag_k = FK_ADD;
   2580     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009EE6: mov dword ptr [ebp - 0x1c], ebx */
   2581     ebx = MEM32(ebp + (-0x5C)); /* 0x30009EE9: mov ebx, dword ptr [ebp - 0x5c] */
   2582     MEM32(ebp + (-0x20)) = eax; /* 0x30009EEC: mov dword ptr [ebp - 0x20], eax */
   2583     eax = MEM32(ebp + (-0x10)); /* 0x30009EEF: mov eax, dword ptr [ebp - 0x10] */
   2584     MEM32(eax) = ebx; /* 0x30009EF2: mov dword ptr [eax], ebx */
   2585     ebx = MEM32(ebp + (-0x58)); /* 0x30009EF4: mov ebx, dword ptr [ebp - 0x58] */
   2586     MEM32(eax + 0x4) = ebx; /* 0x30009EF7: mov dword ptr [eax + 4], ebx */
   2587     ebx = MEM32(ebp + (-0x54)); /* 0x30009EFA: mov ebx, dword ptr [ebp - 0x54] */
   2588     MEM32(eax + 0x8) = ebx; /* 0x30009EFD: mov dword ptr [eax + 8], ebx */
   2589     ebx = MEM32(ebp + (-0x18)); /* 0x30009F00: mov ebx, dword ptr [ebp - 0x18] */
   2590     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2591     ebx = ebx + 1; /* 0x30009F03: inc ebx */
   2592     _flag_k = FK_INC;
   2593     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2594     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2595     eax = eax + 0xCu; /* 0x30009F04: add eax, 0xc */
   2596     _flag_k = FK_ADD;
   2597     MEM32(ebp + (-0x18)) = ebx; /* 0x30009F07: mov dword ptr [ebp - 0x18], ebx */
   2598     ebx = MEM32(ebp + (-0x20)); /* 0x30009F0A: mov ebx, dword ptr [ebp - 0x20] */
   2599     MEM32(ebp + (-0x10)) = eax; /* 0x30009F0D: mov dword ptr [ebp - 0x10], eax */
   2600     MEM32(ebp + (-0x14)) = 2; /* 0x30009F10: mov dword ptr [ebp - 0x14], 2 */
   2601 L_30009F17:
   2602     eax = ebx; /* 0x30009F17: mov eax, ebx */
   2603     MEM32(eax) = ecx; /* 0x30009F19: mov dword ptr [eax], ecx */
   2604     MEM32(eax + 0x4) = edx; /* 0x30009F1B: mov dword ptr [eax + 4], edx */
   2605     MEM32(eax + 0x8) = edi; /* 0x30009F1E: mov dword ptr [eax + 8], edi */
   2606     eax = MEM32(ebp + (-0x1C)); /* 0x30009F21: mov eax, dword ptr [ebp - 0x1c] */
   2607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2608     eax = eax + 1; /* 0x30009F24: inc eax */
   2609     _flag_k = FK_INC;
   2610     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   2611     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2612     ebx = ebx + 0xCu; /* 0x30009F25: add ebx, 0xc */
   2613     _flag_k = FK_ADD;
   2614     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F28: mov dword ptr [ebp - 0x1c], eax */
   2615     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F2B: mov dword ptr [ebp - 0x20], ebx */
   2616     goto L_30009F6B; /* 0x30009F2E: jmp 0x30009f6b */
   2617 L_30009F30:
   2618     ecx = MEM32(0x3001E3F0); /* 0x30009F30: mov ecx, dword ptr [0x3001e3f0] */
   2619     edx = MEM32(0x3001E3F4); /* 0x30009F36: mov edx, dword ptr [0x3001e3f4] */
   2620     edi = MEM32(0x3001E3F8); /* 0x30009F3C: mov edi, dword ptr [0x3001e3f8] */
   2621     eax = ebx; /* 0x30009F42: mov eax, ebx */
   2622     MEM32(eax) = ecx; /* 0x30009F44: mov dword ptr [eax], ecx */
   2623     MEM32(eax + 0x4) = edx; /* 0x30009F46: mov dword ptr [eax + 4], edx */
   2624     MEM32(eax + 0x8) = edi; /* 0x30009F49: mov dword ptr [eax + 8], edi */
   2625     eax = MEM32(ebp + (-0x1C)); /* 0x30009F4C: mov eax, dword ptr [ebp - 0x1c] */
   2626     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2627     eax = eax + 1; /* 0x30009F4F: inc eax */
   2628     _flag_k = FK_INC;
   2629     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   2630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2631     ebx = ebx + 0xCu; /* 0x30009F50: add ebx, 0xc */
   2632     _flag_k = FK_ADD;
   2633     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F53: mov dword ptr [ebp - 0x1c], eax */
   2634     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F56: mov dword ptr [ebp - 0x20], ebx */
   2635 L_30009F59:
   2636     eax = MEM32(ebp + (-0x10)); /* 0x30009F59: mov eax, dword ptr [ebp - 0x10] */
   2637     MEM32(eax) = ecx; /* 0x30009F5C: mov dword ptr [eax], ecx */
   2638     MEM32(eax + 0x4) = edx; /* 0x30009F5E: mov dword ptr [eax + 4], edx */
   2639     MEM32(eax + 0x8) = edi; /* 0x30009F61: mov dword ptr [eax + 8], edi */
   2640     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1);
   2641     MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x30009F64: inc dword ptr [ebp - 0x18] */
   2642     _flag_k = FK_INC;
   2643     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xCu);
   2644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2645     MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xCu; /* 0x30009F67: add dword ptr [ebp - 0x10], 0xc */
   2646     _flag_k = FK_ADD;
   2647 L_30009F6B:
   2648     eax = MEM32(ebp + (-0x28)); /* 0x30009F6B: mov eax, dword ptr [ebp - 0x28] */
   2649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2650     eax = eax + 1; /* 0x30009F6E: inc eax */
   2651     _flag_k = FK_INC;
   2652     MEM32(ebp + (-0x28)) = eax; /* 0x30009F6F: mov dword ptr [ebp - 0x28], eax */
   2653     eax = (int32_t)(int16_t)LO16(eax); /* 0x30009F72: movsx eax, ax */
   2654     MEM32(0x3001FC00) = ecx; /* 0x30009F75: mov dword ptr [0x3001fc00], ecx */
   2655     /* cmp eax, MEM32(ebp + (-0x24)) */ /* 0x30009F7B: cmp eax, dword ptr [ebp - 0x24] */
   2656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x24)));
   2657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2658     _flag_k = FK_CMP;
   2659     MEM32(0x3001FC08) = edi; /* 0x30009F7E: mov dword ptr [0x3001fc08], edi */
   2660     edi = MEM32(ebp + (-0x2C)); /* 0x30009F84: mov edi, dword ptr [ebp - 0x2c] */
   2661     MEM32(0x3001FC04) = edx; /* 0x30009F87: mov dword ptr [0x3001fc04], edx */
   2662     RECOMP_BACKEDGE();
   2663     if (CMP_L(_flag_a, _flag_b)) goto L_30009C3B; /* 0x30009F8D: jl 0x30009c3b */
   2664 L_30009F93:
   2665     edi = MEM32(ebp + (-0x14)); /* 0x30009F93: mov edi, dword ptr [ebp - 0x14] */
   2666     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   2667     ebx = ebx | 0xFFFFFFFFu; /* 0x30009F96: or ebx, 0xffffffff */
   2668     _cf = 0;
   2669     _flag_k = FK_TEST;
   2670     /* cmp edi, ebx */ /* 0x30009F99: cmp edi, ebx */
   2671     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2673     _flag_k = FK_CMP;
   2674     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A04F; /* 0x30009F9B: je 0x3000a04f */
   2675 L_30009FA1:
   2676     /* cmp edi, 1 */ /* 0x30009FA1: cmp edi, 1 */
   2677     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2679     _flag_k = FK_CMP;
   2680     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A02E; /* 0x30009FA4: je 0x3000a02e */
   2681 L_30009FAA:
   2682     /* cmp edi, 2 */ /* 0x30009FAA: cmp edi, 2 */
   2683     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   2684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2685     _flag_k = FK_CMP;
   2686     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A05B; /* 0x30009FAD: jne 0x3000a05b */
   2687 L_30009FB3:
   2688     ecx = MEM32(ebp + 0x8); /* 0x30009FB3: mov ecx, dword ptr [ebp + 8] */
   2689     edx = MEM32(ebp + (-0x18)); /* 0x30009FB6: mov edx, dword ptr [ebp - 0x18] */
   2690     esi = ecx + 0x8; /* 0x30009FB9: lea esi, [ecx + 8] */
   2691     PUSH32(esp, esi); /* 0x30009FBC: push esi */
   2692     PUSH32(esp, edx); /* 0x30009FBD: push edx */
   2693     PUSH32(esp, 0x3001E400u); /* 0x30009FBE: push 0x3001e400 */
   2694     ecx = ebp + (-0x84); /* 0x30009FC3: lea ecx, [ebp - 0x84] */
   2695     RECOMP_ICALL(0x30007A10u); /* 0x30009FC9: call 0x30007a10 */ /* not lifted */
   2696     RECOMP_FLAGS_IN();
   2697     ecx = MEM32(ebp + 0x10); /* 0x30009FCE: mov ecx, dword ptr [ebp + 0x10] */
   2698     PUSH32(esp, eax); /* 0x30009FD1: push eax */
   2699     MEM32(ebp + (-0x4)) = 0; /* 0x30009FD2: mov dword ptr [ebp - 4], 0 */
   2700     RECOMP_ICALL(0x300080D0u); /* 0x30009FD9: call 0x300080d0 */ /* not lifted */
   2701     RECOMP_FLAGS_IN();
   2702     ecx = ebp + (-0x84); /* 0x30009FDE: lea ecx, [ebp - 0x84] */
   2703     MEM32(ebp + (-0x4)) = ebx; /* 0x30009FE4: mov dword ptr [ebp - 4], ebx */
   2704     RECOMP_ICALL(0x30007AB0u); /* 0x30009FE7: call 0x30007ab0 */ /* not lifted */
   2705     RECOMP_FLAGS_IN();
   2706     eax = MEM32(ebp + (-0x1C)); /* 0x30009FEC: mov eax, dword ptr [ebp - 0x1c] */
   2707     PUSH32(esp, esi); /* 0x30009FEF: push esi */
   2708     PUSH32(esp, eax); /* 0x30009FF0: push eax */
   2709     PUSH32(esp, 0x3001F000u); /* 0x30009FF1: push 0x3001f000 */
   2710     ecx = ebp + (-0x70); /* 0x30009FF6: lea ecx, [ebp - 0x70] */
   2711     RECOMP_ICALL(0x30007A10u); /* 0x30009FF9: call 0x30007a10 */ /* not lifted */
   2712     RECOMP_FLAGS_IN();
   2713     ecx = MEM32(ebp + 0xC); /* 0x30009FFE: mov ecx, dword ptr [ebp + 0xc] */
   2714     PUSH32(esp, eax); /* 0x3000A001: push eax */
   2715     MEM32(ebp + (-0x4)) = 1; /* 0x3000A002: mov dword ptr [ebp - 4], 1 */
   2716     RECOMP_ICALL(0x300080D0u); /* 0x3000A009: call 0x300080d0 */ /* not lifted */
   2717     RECOMP_FLAGS_IN();
   2718     ecx = ebp + (-0x70); /* 0x3000A00E: lea ecx, [ebp - 0x70] */
   2719     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A011: mov dword ptr [ebp - 4], ebx */
   2720     RECOMP_ICALL(0x30007AB0u); /* 0x3000A014: call 0x30007ab0 */ /* not lifted */
   2721     RECOMP_FLAGS_IN();
   2722     eax = edi; /* 0x3000A019: mov eax, edi */
   2723     edi = POP32_VAL(esp); /* 0x3000A01B: pop edi */
   2724     esi = POP32_VAL(esp); /* 0x3000A01C: pop esi */
   2725     ebx = POP32_VAL(esp); /* 0x3000A01D: pop ebx */
   2726     ecx = MEM32(ebp + (-0xC)); /* 0x3000A01E: mov ecx, dword ptr [ebp - 0xc] */
   2727     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A021: mov dword ptr fs:[0], ecx */
   2728     esp = ebp; /* 0x3000A028: mov esp, ebp */
   2729     ebp = POP32_VAL(esp); /* 0x3000A02A: pop ebp */
   2730     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A02B: ret 0xc */
   2731 L_3000A02E:
   2732     ecx = MEM32(ebp + 0x8); /* 0x3000A02E: mov ecx, dword ptr [ebp + 8] */
   2733     PUSH32(esp, ecx); /* 0x3000A031: push ecx */
   2734     ecx = MEM32(ebp + 0x10); /* 0x3000A032: mov ecx, dword ptr [ebp + 0x10] */
   2735     RECOMP_ICALL(0x300080D0u); /* 0x3000A035: call 0x300080d0 */ /* not lifted */
   2736     RECOMP_FLAGS_IN();
   2737     eax = edi; /* 0x3000A03A: mov eax, edi */
   2738     edi = POP32_VAL(esp); /* 0x3000A03C: pop edi */
   2739     esi = POP32_VAL(esp); /* 0x3000A03D: pop esi */
   2740     ebx = POP32_VAL(esp); /* 0x3000A03E: pop ebx */
   2741     ecx = MEM32(ebp + (-0xC)); /* 0x3000A03F: mov ecx, dword ptr [ebp - 0xc] */
   2742     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A042: mov dword ptr fs:[0], ecx */
   2743     esp = ebp; /* 0x3000A049: mov esp, ebp */
   2744     ebp = POP32_VAL(esp); /* 0x3000A04B: pop ebp */
   2745     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A04C: ret 0xc */
   2746 L_3000A04F:
   2747     edx = MEM32(ebp + 0x8); /* 0x3000A04F: mov edx, dword ptr [ebp + 8] */
   2748     ecx = MEM32(ebp + 0xC); /* 0x3000A052: mov ecx, dword ptr [ebp + 0xc] */
   2749     PUSH32(esp, edx); /* 0x3000A055: push edx */
   2750     RECOMP_ICALL(0x300080D0u); /* 0x3000A056: call 0x300080d0 */ /* not lifted */
   2751     RECOMP_FLAGS_IN();
   2752 L_3000A05B:
   2753     eax = edi; /* 0x3000A05B: mov eax, edi */
   2754     edi = POP32_VAL(esp); /* 0x3000A05D: pop edi */
   2755     esi = POP32_VAL(esp); /* 0x3000A05E: pop esi */
   2756     ebx = POP32_VAL(esp); /* 0x3000A05F: pop ebx */
   2757     ecx = MEM32(ebp + (-0xC)); /* 0x3000A060: mov ecx, dword ptr [ebp - 0xc] */
   2758     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A063: mov dword ptr fs:[0], ecx */
   2759     esp = ebp; /* 0x3000A06A: mov esp, ebp */
   2760     ebp = POP32_VAL(esp); /* 0x3000A06C: pop ebp */
   2761     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A06D: ret 0xc */
   2762     RECOMP_REGS_OUT();
   2763 }
   2764 
   2765 void sub_30009F30(void) {
   2766     int _fpu_cmp = 0;
   2767     uint32_t _cf = 0;
   2768     int _df = 1;
   2769     uint32_t _flag_k = FK_NONE;
   2770     uint32_t _flag_a = 0, _flag_b = 0;
   2771     uint32_t _itail_tgt = 0;
   2772     RECOMP_REGS_LOCALS
   2773     RECOMP_ENTER(0x30009F30u);
   2774 
   2775     goto L_30009F30;
   2776 L_30009C3B:
   2777     ecx = MEM32(ebp + 0x8); /* 0x30009C3B: mov ecx, dword ptr [ebp + 8] */
   2778     edx = MEM32(ecx); /* 0x30009C3E: mov edx, dword ptr [ecx] */
   2779     eax = eax + eax * 2; /* 0x30009C40: lea eax, [eax + eax*2] */
   2780     eax = edx + eax * 4; /* 0x30009C43: lea eax, [edx + eax*4] */
   2781     ecx = MEM32(eax); /* 0x30009C46: mov ecx, dword ptr [eax] */
   2782     MEM32(0x3001E3F0) = ecx; /* 0x30009C48: mov dword ptr [0x3001e3f0], ecx */
   2783     edx = MEM32(eax + 0x4); /* 0x30009C4E: mov edx, dword ptr [eax + 4] */
   2784     MEM32(0x3001E3F4) = edx; /* 0x30009C51: mov dword ptr [0x3001e3f4], edx */
   2785     eax = MEM32(eax + 0x8); /* 0x30009C57: mov eax, dword ptr [eax + 8] */
   2786     PUSH32(esp, 0x3001E3F0u); /* 0x30009C5A: push 0x3001e3f0 */
   2787     ecx = esi; /* 0x30009C5F: mov ecx, esi */
   2788     MEM32(0x3001E3F8) = eax; /* 0x30009C61: mov dword ptr [0x3001e3f8], eax */
   2789     RECOMP_ICALL(0x30009870u); /* 0x30009C66: call 0x30009870 */ /* not lifted */
   2790     RECOMP_FLAGS_IN();
   2791     /* cmp eax, 1 */ /* 0x30009C6B: cmp eax, 1 */
   2792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2794     _flag_k = FK_CMP;
   2795     MEM32(ebp + (-0x2C)) = eax; /* 0x30009C6E: mov dword ptr [ebp - 0x2c], eax */
   2796     if (CMP_NE(_flag_a, _flag_b)) goto L_30009DC5; /* 0x30009C71: jne 0x30009dc5 */
   2797 L_30009C77:
   2798     eax = MEM32(ebp + (-0x14)); /* 0x30009C77: mov eax, dword ptr [ebp - 0x14] */
   2799     /* test eax, eax */ /* 0x30009C7A: test eax, eax */
   2800     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2801     _cf = 0;
   2802     _flag_k = FK_TEST;
   2803     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009C87; /* 0x30009C7C: jne 0x30009c87 */
   2804 L_30009C7E:
   2805     MEM32(ebp + (-0x14)) = 1; /* 0x30009C7E: mov dword ptr [ebp - 0x14], 1 */
   2806     goto L_30009C93; /* 0x30009C85: jmp 0x30009c93 */
   2807 L_30009C87:
   2808     /* cmp eax, 1 */ /* 0x30009C87: cmp eax, 1 */
   2809     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2811     _flag_k = FK_CMP;
   2812     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009C93; /* 0x30009C8A: je 0x30009c93 */
   2813 L_30009C8C:
   2814     MEM32(ebp + (-0x14)) = 2; /* 0x30009C8C: mov dword ptr [ebp - 0x14], 2 */
   2815 L_30009C93:
   2816     edx = MEM32(0x3001E3F4); /* 0x30009C93: mov edx, dword ptr [0x3001e3f4] */
   2817     ecx = MEM32(0x3001E3F0); /* 0x30009C99: mov ecx, dword ptr [0x3001e3f0] */
   2818     /* cmp edi, 0xFFFFFFFFu */ /* 0x30009C9F: cmp edi, -1 */
   2819     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2821     _flag_k = FK_CMP;
   2822     edi = MEM32(0x3001E3F8); /* 0x30009CA2: mov edi, dword ptr [0x3001e3f8] */
   2823     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F59; /* 0x30009CA8: jne 0x30009f59 */
   2824 L_30009CAE:
   2825     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009CAE: fld dword ptr [0x3001e3f0] */
   2826     MEM32(ebp + (-0x38)) = ecx; /* 0x30009CB4: mov dword ptr [ebp - 0x38], ecx */
   2827     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009CB7: fsub dword ptr [0x3001fc00] */
   2828     MEM32(ebp + (-0x34)) = edx; /* 0x30009CBD: mov dword ptr [ebp - 0x34], edx */
   2829     MEM32(ebp + (-0x30)) = edi; /* 0x30009CC0: mov dword ptr [ebp - 0x30], edi */
   2830     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x30009CC3: fstp dword ptr [ebp - 0x38] */
   2831     eax = MEM32(ebp + (-0x38)); /* 0x30009CC6: mov eax, dword ptr [ebp - 0x38] */
   2832     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009CC9: fld dword ptr [ebp - 0x34] */
   2833     MEM32(ebp + (-0x68)) = eax; /* 0x30009CCC: mov dword ptr [ebp - 0x68], eax */
   2834     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009CCF: fsub dword ptr [0x3001fc04] */
   2835     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x30009CD5: fstp dword ptr [ebp - 0x34] */
   2836     eax = MEM32(ebp + (-0x34)); /* 0x30009CD8: mov eax, dword ptr [ebp - 0x34] */
   2837     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009CDB: fld dword ptr [ebp - 0x30] */
   2838     MEM32(ebp + (-0x64)) = eax; /* 0x30009CDE: mov dword ptr [ebp - 0x64], eax */
   2839     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009CE1: fsub dword ptr [0x3001fc08] */
   2840     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x30009CE7: fstp dword ptr [ebp - 0x30] */
   2841     eax = MEM32(ebp + (-0x30)); /* 0x30009CEA: mov eax, dword ptr [ebp - 0x30] */
   2842     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009CED: fld dword ptr [0x3001fc08] */
   2843     MEM32(ebp + (-0x60)) = eax; /* 0x30009CF3: mov dword ptr [ebp - 0x60], eax */
   2844     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009CF6: fmul dword ptr [esi + 8] */
   2845     eax = MEM32(0x3001FC00); /* 0x30009CF9: mov eax, dword ptr [0x3001fc00] */
   2846     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009CFE: fld dword ptr [0x3001fc04] */
   2847     MEM32(ebp + (-0x50)) = eax; /* 0x30009D04: mov dword ptr [ebp - 0x50], eax */
   2848     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D07: fmul dword ptr [esi + 4] */
   2849     eax = MEM32(0x3001FC04); /* 0x30009D0A: mov eax, dword ptr [0x3001fc04] */
   2850     MEM32(ebp + (-0x4C)) = eax; /* 0x30009D0F: mov dword ptr [ebp - 0x4c], eax */
   2851     eax = MEM32(0x3001FC08); /* 0x30009D12: mov eax, dword ptr [0x3001fc08] */
   2852     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D17: faddp st(1) */
   2853     MEM32(ebp + (-0x48)) = eax; /* 0x30009D19: mov dword ptr [ebp - 0x48], eax */
   2854     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009D1C: fld dword ptr [0x3001fc00] */
   2855     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D22: fmul dword ptr [esi] */
   2856     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D24: faddp st(1) */
   2857     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009D26: fsub dword ptr [esi + 0xc] */
   2858     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009D29: fld dword ptr [ebp - 0x30] */
   2859     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009D2C: fmul dword ptr [esi + 8] */
   2860     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009D2F: fld dword ptr [ebp - 0x34] */
   2861     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D32: fmul dword ptr [esi + 4] */
   2862     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D35: faddp st(1) */
   2863     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D37: fld dword ptr [ebp - 0x38] */
   2864     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D3A: fmul dword ptr [esi] */
   2865     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D3C: faddp st(1) */
   2866     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009D3E: fdivp st(1) */
   2867     _st[0] = -_st[0]; /* 0x30009D40: fchs  */
   2868     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D42: fld dword ptr [ebp - 0x38] */
   2869     _st[0] *= _st[1]; /* 0x30009D45: fmul st(1) */
   2870     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x30009D47: fstp dword ptr [ebp - 0x68] */
   2871     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30009D4A: fld dword ptr [ebp - 0x64] */
   2872     _st[0] *= _st[1]; /* 0x30009D4D: fmul st(1) */
   2873     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x30009D4F: fstp dword ptr [ebp - 0x64] */
   2874     _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x30009D52: fmul dword ptr [ebp - 0x60] */
   2875     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x30009D55: fld dword ptr [ebp - 0x68] */
   2876     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009D58: fadd dword ptr [0x3001fc00] */
   2877     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x30009D5E: fstp dword ptr [ebp - 0x50] */
   2878     eax = MEM32(ebp + (-0x50)); /* 0x30009D61: mov eax, dword ptr [ebp - 0x50] */
   2879     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x30009D64: fld dword ptr [ebp - 0x4c] */
   2880     MEM32(ebx) = eax; /* 0x30009D67: mov dword ptr [ebx], eax */
   2881     _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x30009D69: fadd dword ptr [ebp - 0x64] */
   2882     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x30009D6C: fstp dword ptr [ebp - 0x4c] */
   2883     eax = MEM32(ebp + (-0x4C)); /* 0x30009D6F: mov eax, dword ptr [ebp - 0x4c] */
   2884     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x30009D72: fld dword ptr [ebp - 0x48] */
   2885     MEM32(ebx + 0x4) = eax; /* 0x30009D75: mov dword ptr [ebx + 4], eax */
   2886     _st[0] += _st[1]; /* 0x30009D78: fadd st(1) */
   2887     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x30009D7A: fstp dword ptr [ebp - 0x48] */
   2888     eax = MEM32(ebp + (-0x48)); /* 0x30009D7D: mov eax, dword ptr [ebp - 0x48] */
   2889     MEM32(ebx + 0x8) = eax; /* 0x30009D80: mov dword ptr [ebx + 8], eax */
   2890     ebx = MEM32(ebp + (-0x1C)); /* 0x30009D83: mov ebx, dword ptr [ebp - 0x1c] */
   2891     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009D86: fstp st(0) */
   2892     eax = MEM32(ebp + (-0x20)); /* 0x30009D88: mov eax, dword ptr [ebp - 0x20] */
   2893     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2894     ebx = ebx + 1; /* 0x30009D8B: inc ebx */
   2895     _flag_k = FK_INC;
   2896     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2897     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2898     eax = eax + 0xCu; /* 0x30009D8C: add eax, 0xc */
   2899     _flag_k = FK_ADD;
   2900     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009D8F: mov dword ptr [ebp - 0x1c], ebx */
   2901     ebx = MEM32(ebp + (-0x50)); /* 0x30009D92: mov ebx, dword ptr [ebp - 0x50] */
   2902     MEM32(ebp + (-0x20)) = eax; /* 0x30009D95: mov dword ptr [ebp - 0x20], eax */
   2903     eax = MEM32(ebp + (-0x10)); /* 0x30009D98: mov eax, dword ptr [ebp - 0x10] */
   2904     MEM32(eax) = ebx; /* 0x30009D9B: mov dword ptr [eax], ebx */
   2905     ebx = MEM32(ebp + (-0x4C)); /* 0x30009D9D: mov ebx, dword ptr [ebp - 0x4c] */
   2906     MEM32(eax + 0x4) = ebx; /* 0x30009DA0: mov dword ptr [eax + 4], ebx */
   2907     ebx = MEM32(ebp + (-0x48)); /* 0x30009DA3: mov ebx, dword ptr [ebp - 0x48] */
   2908     MEM32(eax + 0x8) = ebx; /* 0x30009DA6: mov dword ptr [eax + 8], ebx */
   2909     ebx = MEM32(ebp + (-0x18)); /* 0x30009DA9: mov ebx, dword ptr [ebp - 0x18] */
   2910     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2911     ebx = ebx + 1; /* 0x30009DAC: inc ebx */
   2912     _flag_k = FK_INC;
   2913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2915     eax = eax + 0xCu; /* 0x30009DAD: add eax, 0xc */
   2916     _flag_k = FK_ADD;
   2917     MEM32(ebp + (-0x18)) = ebx; /* 0x30009DB0: mov dword ptr [ebp - 0x18], ebx */
   2918     ebx = MEM32(ebp + (-0x20)); /* 0x30009DB3: mov ebx, dword ptr [ebp - 0x20] */
   2919     MEM32(ebp + (-0x10)) = eax; /* 0x30009DB6: mov dword ptr [ebp - 0x10], eax */
   2920     MEM32(ebp + (-0x14)) = 2; /* 0x30009DB9: mov dword ptr [ebp - 0x14], 2 */
   2921     goto L_30009F59; /* 0x30009DC0: jmp 0x30009f59 */
   2922 L_30009DC5:
   2923     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DC5: cmp eax, -1 */
   2924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2926     _flag_k = FK_CMP;
   2927     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F30; /* 0x30009DC8: jne 0x30009f30 */
   2928 L_30009DCE:
   2929     eax = MEM32(ebp + (-0x14)); /* 0x30009DCE: mov eax, dword ptr [ebp - 0x14] */
   2930     /* test eax, eax */ /* 0x30009DD1: test eax, eax */
   2931     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2932     _cf = 0;
   2933     _flag_k = FK_TEST;
   2934     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009DDE; /* 0x30009DD3: jne 0x30009dde */
   2935 L_30009DD5:
   2936     MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x30009DD5: mov dword ptr [ebp - 0x14], 0xffffffff */
   2937     goto L_30009DEA; /* 0x30009DDC: jmp 0x30009dea */
   2938 L_30009DDE:
   2939     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DDE: cmp eax, -1 */
   2940     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2942     _flag_k = FK_CMP;
   2943     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009DEA; /* 0x30009DE1: je 0x30009dea */
   2944 L_30009DE3:
   2945     MEM32(ebp + (-0x14)) = 2; /* 0x30009DE3: mov dword ptr [ebp - 0x14], 2 */
   2946 L_30009DEA:
   2947     edx = MEM32(0x3001E3F4); /* 0x30009DEA: mov edx, dword ptr [0x3001e3f4] */
   2948     ecx = MEM32(0x3001E3F0); /* 0x30009DF0: mov ecx, dword ptr [0x3001e3f0] */
   2949     /* cmp edi, 1 */ /* 0x30009DF6: cmp edi, 1 */
   2950     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2952     _flag_k = FK_CMP;
   2953     edi = MEM32(0x3001E3F8); /* 0x30009DF9: mov edi, dword ptr [0x3001e3f8] */
   2954     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F17; /* 0x30009DFF: jne 0x30009f17 */
   2955 L_30009E05:
   2956     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009E05: fld dword ptr [0x3001e3f0] */
   2957     MEM32(ebp + (-0x44)) = ecx; /* 0x30009E0B: mov dword ptr [ebp - 0x44], ecx */
   2958     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009E0E: fsub dword ptr [0x3001fc00] */
   2959     MEM32(ebp + (-0x40)) = edx; /* 0x30009E14: mov dword ptr [ebp - 0x40], edx */
   2960     MEM32(ebp + (-0x3C)) = edi; /* 0x30009E17: mov dword ptr [ebp - 0x3c], edi */
   2961     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x30009E1A: fstp dword ptr [ebp - 0x44] */
   2962     eax = MEM32(ebp + (-0x44)); /* 0x30009E1D: mov eax, dword ptr [ebp - 0x44] */
   2963     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E20: fld dword ptr [ebp - 0x40] */
   2964     MEM32(ebp + (-0x7C)) = eax; /* 0x30009E23: mov dword ptr [ebp - 0x7c], eax */
   2965     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009E26: fsub dword ptr [0x3001fc04] */
   2966     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x30009E2C: fstp dword ptr [ebp - 0x40] */
   2967     eax = MEM32(ebp + (-0x40)); /* 0x30009E2F: mov eax, dword ptr [ebp - 0x40] */
   2968     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E32: fld dword ptr [ebp - 0x3c] */
   2969     MEM32(ebp + (-0x78)) = eax; /* 0x30009E35: mov dword ptr [ebp - 0x78], eax */
   2970     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009E38: fsub dword ptr [0x3001fc08] */
   2971     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x30009E3E: fstp dword ptr [ebp - 0x3c] */
   2972     eax = MEM32(ebp + (-0x3C)); /* 0x30009E41: mov eax, dword ptr [ebp - 0x3c] */
   2973     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009E44: fld dword ptr [0x3001fc08] */
   2974     MEM32(ebp + (-0x74)) = eax; /* 0x30009E4A: mov dword ptr [ebp - 0x74], eax */
   2975     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E4D: fmul dword ptr [esi + 8] */
   2976     eax = MEM32(0x3001FC00); /* 0x30009E50: mov eax, dword ptr [0x3001fc00] */
   2977     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009E55: fld dword ptr [0x3001fc04] */
   2978     MEM32(ebp + (-0x5C)) = eax; /* 0x30009E5B: mov dword ptr [ebp - 0x5c], eax */
   2979     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E5E: fmul dword ptr [esi + 4] */
   2980     eax = MEM32(0x3001FC04); /* 0x30009E61: mov eax, dword ptr [0x3001fc04] */
   2981     MEM32(ebp + (-0x58)) = eax; /* 0x30009E66: mov dword ptr [ebp - 0x58], eax */
   2982     eax = MEM32(0x3001FC08); /* 0x30009E69: mov eax, dword ptr [0x3001fc08] */
   2983     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E6E: faddp st(1) */
   2984     MEM32(ebp + (-0x54)) = eax; /* 0x30009E70: mov dword ptr [ebp - 0x54], eax */
   2985     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009E73: fld dword ptr [0x3001fc00] */
   2986     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E79: fmul dword ptr [esi] */
   2987     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E7B: faddp st(1) */
   2988     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009E7D: fsub dword ptr [esi + 0xc] */
   2989     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E80: fld dword ptr [ebp - 0x3c] */
   2990     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E83: fmul dword ptr [esi + 8] */
   2991     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E86: fld dword ptr [ebp - 0x40] */
   2992     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E89: fmul dword ptr [esi + 4] */
   2993     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E8C: faddp st(1) */
   2994     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E8E: fld dword ptr [ebp - 0x44] */
   2995     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E91: fmul dword ptr [esi] */
   2996     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E93: faddp st(1) */
   2997     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009E95: fdivp st(1) */
   2998     _st[0] = -_st[0]; /* 0x30009E97: fchs  */
   2999     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E99: fld dword ptr [ebp - 0x44] */
   3000     _st[0] *= _st[1]; /* 0x30009E9C: fmul st(1) */
   3001     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x30009E9E: fstp dword ptr [ebp - 0x7c] */
   3002     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30009EA1: fld dword ptr [ebp - 0x78] */
   3003     _st[0] *= _st[1]; /* 0x30009EA4: fmul st(1) */
   3004     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x30009EA6: fstp dword ptr [ebp - 0x78] */
   3005     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x30009EA9: fmul dword ptr [ebp - 0x74] */
   3006     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x30009EAC: fld dword ptr [ebp - 0x7c] */
   3007     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009EAF: fadd dword ptr [0x3001fc00] */
   3008     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x30009EB5: fstp dword ptr [ebp - 0x5c] */
   3009     eax = MEM32(ebp + (-0x5C)); /* 0x30009EB8: mov eax, dword ptr [ebp - 0x5c] */
   3010     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x30009EBB: fld dword ptr [ebp - 0x58] */
   3011     MEM32(ebx) = eax; /* 0x30009EBE: mov dword ptr [ebx], eax */
   3012     _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x30009EC0: fadd dword ptr [ebp - 0x78] */
   3013     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x30009EC3: fstp dword ptr [ebp - 0x58] */
   3014     eax = MEM32(ebp + (-0x58)); /* 0x30009EC6: mov eax, dword ptr [ebp - 0x58] */
   3015     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30009EC9: fld dword ptr [ebp - 0x54] */
   3016     MEM32(ebx + 0x4) = eax; /* 0x30009ECC: mov dword ptr [ebx + 4], eax */
   3017     _st[0] += _st[1]; /* 0x30009ECF: fadd st(1) */
   3018     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x30009ED1: fstp dword ptr [ebp - 0x54] */
   3019     eax = MEM32(ebp + (-0x54)); /* 0x30009ED4: mov eax, dword ptr [ebp - 0x54] */
   3020     MEM32(ebx + 0x8) = eax; /* 0x30009ED7: mov dword ptr [ebx + 8], eax */
   3021     ebx = MEM32(ebp + (-0x1C)); /* 0x30009EDA: mov ebx, dword ptr [ebp - 0x1c] */
   3022     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009EDD: fstp st(0) */
   3023     eax = MEM32(ebp + (-0x20)); /* 0x30009EDF: mov eax, dword ptr [ebp - 0x20] */
   3024     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3025     ebx = ebx + 1; /* 0x30009EE2: inc ebx */
   3026     _flag_k = FK_INC;
   3027     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3028     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3029     eax = eax + 0xCu; /* 0x30009EE3: add eax, 0xc */
   3030     _flag_k = FK_ADD;
   3031     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009EE6: mov dword ptr [ebp - 0x1c], ebx */
   3032     ebx = MEM32(ebp + (-0x5C)); /* 0x30009EE9: mov ebx, dword ptr [ebp - 0x5c] */
   3033     MEM32(ebp + (-0x20)) = eax; /* 0x30009EEC: mov dword ptr [ebp - 0x20], eax */
   3034     eax = MEM32(ebp + (-0x10)); /* 0x30009EEF: mov eax, dword ptr [ebp - 0x10] */
   3035     MEM32(eax) = ebx; /* 0x30009EF2: mov dword ptr [eax], ebx */
   3036     ebx = MEM32(ebp + (-0x58)); /* 0x30009EF4: mov ebx, dword ptr [ebp - 0x58] */
   3037     MEM32(eax + 0x4) = ebx; /* 0x30009EF7: mov dword ptr [eax + 4], ebx */
   3038     ebx = MEM32(ebp + (-0x54)); /* 0x30009EFA: mov ebx, dword ptr [ebp - 0x54] */
   3039     MEM32(eax + 0x8) = ebx; /* 0x30009EFD: mov dword ptr [eax + 8], ebx */
   3040     ebx = MEM32(ebp + (-0x18)); /* 0x30009F00: mov ebx, dword ptr [ebp - 0x18] */
   3041     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3042     ebx = ebx + 1; /* 0x30009F03: inc ebx */
   3043     _flag_k = FK_INC;
   3044     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3045     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3046     eax = eax + 0xCu; /* 0x30009F04: add eax, 0xc */
   3047     _flag_k = FK_ADD;
   3048     MEM32(ebp + (-0x18)) = ebx; /* 0x30009F07: mov dword ptr [ebp - 0x18], ebx */
   3049     ebx = MEM32(ebp + (-0x20)); /* 0x30009F0A: mov ebx, dword ptr [ebp - 0x20] */
   3050     MEM32(ebp + (-0x10)) = eax; /* 0x30009F0D: mov dword ptr [ebp - 0x10], eax */
   3051     MEM32(ebp + (-0x14)) = 2; /* 0x30009F10: mov dword ptr [ebp - 0x14], 2 */
   3052 L_30009F17:
   3053     eax = ebx; /* 0x30009F17: mov eax, ebx */
   3054     MEM32(eax) = ecx; /* 0x30009F19: mov dword ptr [eax], ecx */
   3055     MEM32(eax + 0x4) = edx; /* 0x30009F1B: mov dword ptr [eax + 4], edx */
   3056     MEM32(eax + 0x8) = edi; /* 0x30009F1E: mov dword ptr [eax + 8], edi */
   3057     eax = MEM32(ebp + (-0x1C)); /* 0x30009F21: mov eax, dword ptr [ebp - 0x1c] */
   3058     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3059     eax = eax + 1; /* 0x30009F24: inc eax */
   3060     _flag_k = FK_INC;
   3061     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   3062     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3063     ebx = ebx + 0xCu; /* 0x30009F25: add ebx, 0xc */
   3064     _flag_k = FK_ADD;
   3065     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F28: mov dword ptr [ebp - 0x1c], eax */
   3066     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F2B: mov dword ptr [ebp - 0x20], ebx */
   3067     goto L_30009F6B; /* 0x30009F2E: jmp 0x30009f6b */
   3068 L_30009F30:
   3069     ecx = MEM32(0x3001E3F0); /* 0x30009F30: mov ecx, dword ptr [0x3001e3f0] */
   3070     edx = MEM32(0x3001E3F4); /* 0x30009F36: mov edx, dword ptr [0x3001e3f4] */
   3071     edi = MEM32(0x3001E3F8); /* 0x30009F3C: mov edi, dword ptr [0x3001e3f8] */
   3072     eax = ebx; /* 0x30009F42: mov eax, ebx */
   3073     MEM32(eax) = ecx; /* 0x30009F44: mov dword ptr [eax], ecx */
   3074     MEM32(eax + 0x4) = edx; /* 0x30009F46: mov dword ptr [eax + 4], edx */
   3075     MEM32(eax + 0x8) = edi; /* 0x30009F49: mov dword ptr [eax + 8], edi */
   3076     eax = MEM32(ebp + (-0x1C)); /* 0x30009F4C: mov eax, dword ptr [ebp - 0x1c] */
   3077     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3078     eax = eax + 1; /* 0x30009F4F: inc eax */
   3079     _flag_k = FK_INC;
   3080     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   3081     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3082     ebx = ebx + 0xCu; /* 0x30009F50: add ebx, 0xc */
   3083     _flag_k = FK_ADD;
   3084     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F53: mov dword ptr [ebp - 0x1c], eax */
   3085     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F56: mov dword ptr [ebp - 0x20], ebx */
   3086 L_30009F59:
   3087     eax = MEM32(ebp + (-0x10)); /* 0x30009F59: mov eax, dword ptr [ebp - 0x10] */
   3088     MEM32(eax) = ecx; /* 0x30009F5C: mov dword ptr [eax], ecx */
   3089     MEM32(eax + 0x4) = edx; /* 0x30009F5E: mov dword ptr [eax + 4], edx */
   3090     MEM32(eax + 0x8) = edi; /* 0x30009F61: mov dword ptr [eax + 8], edi */
   3091     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1);
   3092     MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x30009F64: inc dword ptr [ebp - 0x18] */
   3093     _flag_k = FK_INC;
   3094     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xCu);
   3095     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3096     MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xCu; /* 0x30009F67: add dword ptr [ebp - 0x10], 0xc */
   3097     _flag_k = FK_ADD;
   3098 L_30009F6B:
   3099     eax = MEM32(ebp + (-0x28)); /* 0x30009F6B: mov eax, dword ptr [ebp - 0x28] */
   3100     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3101     eax = eax + 1; /* 0x30009F6E: inc eax */
   3102     _flag_k = FK_INC;
   3103     MEM32(ebp + (-0x28)) = eax; /* 0x30009F6F: mov dword ptr [ebp - 0x28], eax */
   3104     eax = (int32_t)(int16_t)LO16(eax); /* 0x30009F72: movsx eax, ax */
   3105     MEM32(0x3001FC00) = ecx; /* 0x30009F75: mov dword ptr [0x3001fc00], ecx */
   3106     /* cmp eax, MEM32(ebp + (-0x24)) */ /* 0x30009F7B: cmp eax, dword ptr [ebp - 0x24] */
   3107     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x24)));
   3108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3109     _flag_k = FK_CMP;
   3110     MEM32(0x3001FC08) = edi; /* 0x30009F7E: mov dword ptr [0x3001fc08], edi */
   3111     edi = MEM32(ebp + (-0x2C)); /* 0x30009F84: mov edi, dword ptr [ebp - 0x2c] */
   3112     MEM32(0x3001FC04) = edx; /* 0x30009F87: mov dword ptr [0x3001fc04], edx */
   3113     RECOMP_BACKEDGE();
   3114     if (CMP_L(_flag_a, _flag_b)) goto L_30009C3B; /* 0x30009F8D: jl 0x30009c3b */
   3115 L_30009F93:
   3116     edi = MEM32(ebp + (-0x14)); /* 0x30009F93: mov edi, dword ptr [ebp - 0x14] */
   3117     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   3118     ebx = ebx | 0xFFFFFFFFu; /* 0x30009F96: or ebx, 0xffffffff */
   3119     _cf = 0;
   3120     _flag_k = FK_TEST;
   3121     /* cmp edi, ebx */ /* 0x30009F99: cmp edi, ebx */
   3122     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3124     _flag_k = FK_CMP;
   3125     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A04F; /* 0x30009F9B: je 0x3000a04f */
   3126 L_30009FA1:
   3127     /* cmp edi, 1 */ /* 0x30009FA1: cmp edi, 1 */
   3128     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   3129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3130     _flag_k = FK_CMP;
   3131     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A02E; /* 0x30009FA4: je 0x3000a02e */
   3132 L_30009FAA:
   3133     /* cmp edi, 2 */ /* 0x30009FAA: cmp edi, 2 */
   3134     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   3135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3136     _flag_k = FK_CMP;
   3137     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A05B; /* 0x30009FAD: jne 0x3000a05b */
   3138 L_30009FB3:
   3139     ecx = MEM32(ebp + 0x8); /* 0x30009FB3: mov ecx, dword ptr [ebp + 8] */
   3140     edx = MEM32(ebp + (-0x18)); /* 0x30009FB6: mov edx, dword ptr [ebp - 0x18] */
   3141     esi = ecx + 0x8; /* 0x30009FB9: lea esi, [ecx + 8] */
   3142     PUSH32(esp, esi); /* 0x30009FBC: push esi */
   3143     PUSH32(esp, edx); /* 0x30009FBD: push edx */
   3144     PUSH32(esp, 0x3001E400u); /* 0x30009FBE: push 0x3001e400 */
   3145     ecx = ebp + (-0x84); /* 0x30009FC3: lea ecx, [ebp - 0x84] */
   3146     RECOMP_ICALL(0x30007A10u); /* 0x30009FC9: call 0x30007a10 */ /* not lifted */
   3147     RECOMP_FLAGS_IN();
   3148     ecx = MEM32(ebp + 0x10); /* 0x30009FCE: mov ecx, dword ptr [ebp + 0x10] */
   3149     PUSH32(esp, eax); /* 0x30009FD1: push eax */
   3150     MEM32(ebp + (-0x4)) = 0; /* 0x30009FD2: mov dword ptr [ebp - 4], 0 */
   3151     RECOMP_ICALL(0x300080D0u); /* 0x30009FD9: call 0x300080d0 */ /* not lifted */
   3152     RECOMP_FLAGS_IN();
   3153     ecx = ebp + (-0x84); /* 0x30009FDE: lea ecx, [ebp - 0x84] */
   3154     MEM32(ebp + (-0x4)) = ebx; /* 0x30009FE4: mov dword ptr [ebp - 4], ebx */
   3155     RECOMP_ICALL(0x30007AB0u); /* 0x30009FE7: call 0x30007ab0 */ /* not lifted */
   3156     RECOMP_FLAGS_IN();
   3157     eax = MEM32(ebp + (-0x1C)); /* 0x30009FEC: mov eax, dword ptr [ebp - 0x1c] */
   3158     PUSH32(esp, esi); /* 0x30009FEF: push esi */
   3159     PUSH32(esp, eax); /* 0x30009FF0: push eax */
   3160     PUSH32(esp, 0x3001F000u); /* 0x30009FF1: push 0x3001f000 */
   3161     ecx = ebp + (-0x70); /* 0x30009FF6: lea ecx, [ebp - 0x70] */
   3162     RECOMP_ICALL(0x30007A10u); /* 0x30009FF9: call 0x30007a10 */ /* not lifted */
   3163     RECOMP_FLAGS_IN();
   3164     ecx = MEM32(ebp + 0xC); /* 0x30009FFE: mov ecx, dword ptr [ebp + 0xc] */
   3165     PUSH32(esp, eax); /* 0x3000A001: push eax */
   3166     MEM32(ebp + (-0x4)) = 1; /* 0x3000A002: mov dword ptr [ebp - 4], 1 */
   3167     RECOMP_ICALL(0x300080D0u); /* 0x3000A009: call 0x300080d0 */ /* not lifted */
   3168     RECOMP_FLAGS_IN();
   3169     ecx = ebp + (-0x70); /* 0x3000A00E: lea ecx, [ebp - 0x70] */
   3170     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A011: mov dword ptr [ebp - 4], ebx */
   3171     RECOMP_ICALL(0x30007AB0u); /* 0x3000A014: call 0x30007ab0 */ /* not lifted */
   3172     RECOMP_FLAGS_IN();
   3173     eax = edi; /* 0x3000A019: mov eax, edi */
   3174     edi = POP32_VAL(esp); /* 0x3000A01B: pop edi */
   3175     esi = POP32_VAL(esp); /* 0x3000A01C: pop esi */
   3176     ebx = POP32_VAL(esp); /* 0x3000A01D: pop ebx */
   3177     ecx = MEM32(ebp + (-0xC)); /* 0x3000A01E: mov ecx, dword ptr [ebp - 0xc] */
   3178     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A021: mov dword ptr fs:[0], ecx */
   3179     esp = ebp; /* 0x3000A028: mov esp, ebp */
   3180     ebp = POP32_VAL(esp); /* 0x3000A02A: pop ebp */
   3181     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A02B: ret 0xc */
   3182 L_3000A02E:
   3183     ecx = MEM32(ebp + 0x8); /* 0x3000A02E: mov ecx, dword ptr [ebp + 8] */
   3184     PUSH32(esp, ecx); /* 0x3000A031: push ecx */
   3185     ecx = MEM32(ebp + 0x10); /* 0x3000A032: mov ecx, dword ptr [ebp + 0x10] */
   3186     RECOMP_ICALL(0x300080D0u); /* 0x3000A035: call 0x300080d0 */ /* not lifted */
   3187     RECOMP_FLAGS_IN();
   3188     eax = edi; /* 0x3000A03A: mov eax, edi */
   3189     edi = POP32_VAL(esp); /* 0x3000A03C: pop edi */
   3190     esi = POP32_VAL(esp); /* 0x3000A03D: pop esi */
   3191     ebx = POP32_VAL(esp); /* 0x3000A03E: pop ebx */
   3192     ecx = MEM32(ebp + (-0xC)); /* 0x3000A03F: mov ecx, dword ptr [ebp - 0xc] */
   3193     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A042: mov dword ptr fs:[0], ecx */
   3194     esp = ebp; /* 0x3000A049: mov esp, ebp */
   3195     ebp = POP32_VAL(esp); /* 0x3000A04B: pop ebp */
   3196     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A04C: ret 0xc */
   3197 L_3000A04F:
   3198     edx = MEM32(ebp + 0x8); /* 0x3000A04F: mov edx, dword ptr [ebp + 8] */
   3199     ecx = MEM32(ebp + 0xC); /* 0x3000A052: mov ecx, dword ptr [ebp + 0xc] */
   3200     PUSH32(esp, edx); /* 0x3000A055: push edx */
   3201     RECOMP_ICALL(0x300080D0u); /* 0x3000A056: call 0x300080d0 */ /* not lifted */
   3202     RECOMP_FLAGS_IN();
   3203 L_3000A05B:
   3204     eax = edi; /* 0x3000A05B: mov eax, edi */
   3205     edi = POP32_VAL(esp); /* 0x3000A05D: pop edi */
   3206     esi = POP32_VAL(esp); /* 0x3000A05E: pop esi */
   3207     ebx = POP32_VAL(esp); /* 0x3000A05F: pop ebx */
   3208     ecx = MEM32(ebp + (-0xC)); /* 0x3000A060: mov ecx, dword ptr [ebp - 0xc] */
   3209     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A063: mov dword ptr fs:[0], ecx */
   3210     esp = ebp; /* 0x3000A06A: mov esp, ebp */
   3211     ebp = POP32_VAL(esp); /* 0x3000A06C: pop ebp */
   3212     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A06D: ret 0xc */
   3213     RECOMP_REGS_OUT();
   3214 }
   3215 
   3216 void sub_30009F59(void) {
   3217     int _fpu_cmp = 0;
   3218     uint32_t _cf = 0;
   3219     int _df = 1;
   3220     uint32_t _flag_k = FK_NONE;
   3221     uint32_t _flag_a = 0, _flag_b = 0;
   3222     uint32_t _itail_tgt = 0;
   3223     RECOMP_REGS_LOCALS
   3224     RECOMP_ENTER(0x30009F59u);
   3225 
   3226     goto L_30009F59;
   3227 L_30009C3B:
   3228     ecx = MEM32(ebp + 0x8); /* 0x30009C3B: mov ecx, dword ptr [ebp + 8] */
   3229     edx = MEM32(ecx); /* 0x30009C3E: mov edx, dword ptr [ecx] */
   3230     eax = eax + eax * 2; /* 0x30009C40: lea eax, [eax + eax*2] */
   3231     eax = edx + eax * 4; /* 0x30009C43: lea eax, [edx + eax*4] */
   3232     ecx = MEM32(eax); /* 0x30009C46: mov ecx, dword ptr [eax] */
   3233     MEM32(0x3001E3F0) = ecx; /* 0x30009C48: mov dword ptr [0x3001e3f0], ecx */
   3234     edx = MEM32(eax + 0x4); /* 0x30009C4E: mov edx, dword ptr [eax + 4] */
   3235     MEM32(0x3001E3F4) = edx; /* 0x30009C51: mov dword ptr [0x3001e3f4], edx */
   3236     eax = MEM32(eax + 0x8); /* 0x30009C57: mov eax, dword ptr [eax + 8] */
   3237     PUSH32(esp, 0x3001E3F0u); /* 0x30009C5A: push 0x3001e3f0 */
   3238     ecx = esi; /* 0x30009C5F: mov ecx, esi */
   3239     MEM32(0x3001E3F8) = eax; /* 0x30009C61: mov dword ptr [0x3001e3f8], eax */
   3240     RECOMP_ICALL(0x30009870u); /* 0x30009C66: call 0x30009870 */ /* not lifted */
   3241     RECOMP_FLAGS_IN();
   3242     /* cmp eax, 1 */ /* 0x30009C6B: cmp eax, 1 */
   3243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3245     _flag_k = FK_CMP;
   3246     MEM32(ebp + (-0x2C)) = eax; /* 0x30009C6E: mov dword ptr [ebp - 0x2c], eax */
   3247     if (CMP_NE(_flag_a, _flag_b)) goto L_30009DC5; /* 0x30009C71: jne 0x30009dc5 */
   3248 L_30009C77:
   3249     eax = MEM32(ebp + (-0x14)); /* 0x30009C77: mov eax, dword ptr [ebp - 0x14] */
   3250     /* test eax, eax */ /* 0x30009C7A: test eax, eax */
   3251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3252     _cf = 0;
   3253     _flag_k = FK_TEST;
   3254     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009C87; /* 0x30009C7C: jne 0x30009c87 */
   3255 L_30009C7E:
   3256     MEM32(ebp + (-0x14)) = 1; /* 0x30009C7E: mov dword ptr [ebp - 0x14], 1 */
   3257     goto L_30009C93; /* 0x30009C85: jmp 0x30009c93 */
   3258 L_30009C87:
   3259     /* cmp eax, 1 */ /* 0x30009C87: cmp eax, 1 */
   3260     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3261     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3262     _flag_k = FK_CMP;
   3263     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009C93; /* 0x30009C8A: je 0x30009c93 */
   3264 L_30009C8C:
   3265     MEM32(ebp + (-0x14)) = 2; /* 0x30009C8C: mov dword ptr [ebp - 0x14], 2 */
   3266 L_30009C93:
   3267     edx = MEM32(0x3001E3F4); /* 0x30009C93: mov edx, dword ptr [0x3001e3f4] */
   3268     ecx = MEM32(0x3001E3F0); /* 0x30009C99: mov ecx, dword ptr [0x3001e3f0] */
   3269     /* cmp edi, 0xFFFFFFFFu */ /* 0x30009C9F: cmp edi, -1 */
   3270     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3272     _flag_k = FK_CMP;
   3273     edi = MEM32(0x3001E3F8); /* 0x30009CA2: mov edi, dword ptr [0x3001e3f8] */
   3274     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F59; /* 0x30009CA8: jne 0x30009f59 */
   3275 L_30009CAE:
   3276     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009CAE: fld dword ptr [0x3001e3f0] */
   3277     MEM32(ebp + (-0x38)) = ecx; /* 0x30009CB4: mov dword ptr [ebp - 0x38], ecx */
   3278     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009CB7: fsub dword ptr [0x3001fc00] */
   3279     MEM32(ebp + (-0x34)) = edx; /* 0x30009CBD: mov dword ptr [ebp - 0x34], edx */
   3280     MEM32(ebp + (-0x30)) = edi; /* 0x30009CC0: mov dword ptr [ebp - 0x30], edi */
   3281     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x30009CC3: fstp dword ptr [ebp - 0x38] */
   3282     eax = MEM32(ebp + (-0x38)); /* 0x30009CC6: mov eax, dword ptr [ebp - 0x38] */
   3283     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009CC9: fld dword ptr [ebp - 0x34] */
   3284     MEM32(ebp + (-0x68)) = eax; /* 0x30009CCC: mov dword ptr [ebp - 0x68], eax */
   3285     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009CCF: fsub dword ptr [0x3001fc04] */
   3286     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x30009CD5: fstp dword ptr [ebp - 0x34] */
   3287     eax = MEM32(ebp + (-0x34)); /* 0x30009CD8: mov eax, dword ptr [ebp - 0x34] */
   3288     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009CDB: fld dword ptr [ebp - 0x30] */
   3289     MEM32(ebp + (-0x64)) = eax; /* 0x30009CDE: mov dword ptr [ebp - 0x64], eax */
   3290     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009CE1: fsub dword ptr [0x3001fc08] */
   3291     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x30009CE7: fstp dword ptr [ebp - 0x30] */
   3292     eax = MEM32(ebp + (-0x30)); /* 0x30009CEA: mov eax, dword ptr [ebp - 0x30] */
   3293     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009CED: fld dword ptr [0x3001fc08] */
   3294     MEM32(ebp + (-0x60)) = eax; /* 0x30009CF3: mov dword ptr [ebp - 0x60], eax */
   3295     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009CF6: fmul dword ptr [esi + 8] */
   3296     eax = MEM32(0x3001FC00); /* 0x30009CF9: mov eax, dword ptr [0x3001fc00] */
   3297     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009CFE: fld dword ptr [0x3001fc04] */
   3298     MEM32(ebp + (-0x50)) = eax; /* 0x30009D04: mov dword ptr [ebp - 0x50], eax */
   3299     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D07: fmul dword ptr [esi + 4] */
   3300     eax = MEM32(0x3001FC04); /* 0x30009D0A: mov eax, dword ptr [0x3001fc04] */
   3301     MEM32(ebp + (-0x4C)) = eax; /* 0x30009D0F: mov dword ptr [ebp - 0x4c], eax */
   3302     eax = MEM32(0x3001FC08); /* 0x30009D12: mov eax, dword ptr [0x3001fc08] */
   3303     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D17: faddp st(1) */
   3304     MEM32(ebp + (-0x48)) = eax; /* 0x30009D19: mov dword ptr [ebp - 0x48], eax */
   3305     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009D1C: fld dword ptr [0x3001fc00] */
   3306     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D22: fmul dword ptr [esi] */
   3307     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D24: faddp st(1) */
   3308     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009D26: fsub dword ptr [esi + 0xc] */
   3309     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009D29: fld dword ptr [ebp - 0x30] */
   3310     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009D2C: fmul dword ptr [esi + 8] */
   3311     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009D2F: fld dword ptr [ebp - 0x34] */
   3312     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D32: fmul dword ptr [esi + 4] */
   3313     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D35: faddp st(1) */
   3314     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D37: fld dword ptr [ebp - 0x38] */
   3315     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D3A: fmul dword ptr [esi] */
   3316     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D3C: faddp st(1) */
   3317     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009D3E: fdivp st(1) */
   3318     _st[0] = -_st[0]; /* 0x30009D40: fchs  */
   3319     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D42: fld dword ptr [ebp - 0x38] */
   3320     _st[0] *= _st[1]; /* 0x30009D45: fmul st(1) */
   3321     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x30009D47: fstp dword ptr [ebp - 0x68] */
   3322     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30009D4A: fld dword ptr [ebp - 0x64] */
   3323     _st[0] *= _st[1]; /* 0x30009D4D: fmul st(1) */
   3324     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x30009D4F: fstp dword ptr [ebp - 0x64] */
   3325     _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x30009D52: fmul dword ptr [ebp - 0x60] */
   3326     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x30009D55: fld dword ptr [ebp - 0x68] */
   3327     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009D58: fadd dword ptr [0x3001fc00] */
   3328     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x30009D5E: fstp dword ptr [ebp - 0x50] */
   3329     eax = MEM32(ebp + (-0x50)); /* 0x30009D61: mov eax, dword ptr [ebp - 0x50] */
   3330     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x30009D64: fld dword ptr [ebp - 0x4c] */
   3331     MEM32(ebx) = eax; /* 0x30009D67: mov dword ptr [ebx], eax */
   3332     _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x30009D69: fadd dword ptr [ebp - 0x64] */
   3333     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x30009D6C: fstp dword ptr [ebp - 0x4c] */
   3334     eax = MEM32(ebp + (-0x4C)); /* 0x30009D6F: mov eax, dword ptr [ebp - 0x4c] */
   3335     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x30009D72: fld dword ptr [ebp - 0x48] */
   3336     MEM32(ebx + 0x4) = eax; /* 0x30009D75: mov dword ptr [ebx + 4], eax */
   3337     _st[0] += _st[1]; /* 0x30009D78: fadd st(1) */
   3338     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x30009D7A: fstp dword ptr [ebp - 0x48] */
   3339     eax = MEM32(ebp + (-0x48)); /* 0x30009D7D: mov eax, dword ptr [ebp - 0x48] */
   3340     MEM32(ebx + 0x8) = eax; /* 0x30009D80: mov dword ptr [ebx + 8], eax */
   3341     ebx = MEM32(ebp + (-0x1C)); /* 0x30009D83: mov ebx, dword ptr [ebp - 0x1c] */
   3342     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009D86: fstp st(0) */
   3343     eax = MEM32(ebp + (-0x20)); /* 0x30009D88: mov eax, dword ptr [ebp - 0x20] */
   3344     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3345     ebx = ebx + 1; /* 0x30009D8B: inc ebx */
   3346     _flag_k = FK_INC;
   3347     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3348     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3349     eax = eax + 0xCu; /* 0x30009D8C: add eax, 0xc */
   3350     _flag_k = FK_ADD;
   3351     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009D8F: mov dword ptr [ebp - 0x1c], ebx */
   3352     ebx = MEM32(ebp + (-0x50)); /* 0x30009D92: mov ebx, dword ptr [ebp - 0x50] */
   3353     MEM32(ebp + (-0x20)) = eax; /* 0x30009D95: mov dword ptr [ebp - 0x20], eax */
   3354     eax = MEM32(ebp + (-0x10)); /* 0x30009D98: mov eax, dword ptr [ebp - 0x10] */
   3355     MEM32(eax) = ebx; /* 0x30009D9B: mov dword ptr [eax], ebx */
   3356     ebx = MEM32(ebp + (-0x4C)); /* 0x30009D9D: mov ebx, dword ptr [ebp - 0x4c] */
   3357     MEM32(eax + 0x4) = ebx; /* 0x30009DA0: mov dword ptr [eax + 4], ebx */
   3358     ebx = MEM32(ebp + (-0x48)); /* 0x30009DA3: mov ebx, dword ptr [ebp - 0x48] */
   3359     MEM32(eax + 0x8) = ebx; /* 0x30009DA6: mov dword ptr [eax + 8], ebx */
   3360     ebx = MEM32(ebp + (-0x18)); /* 0x30009DA9: mov ebx, dword ptr [ebp - 0x18] */
   3361     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3362     ebx = ebx + 1; /* 0x30009DAC: inc ebx */
   3363     _flag_k = FK_INC;
   3364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3365     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3366     eax = eax + 0xCu; /* 0x30009DAD: add eax, 0xc */
   3367     _flag_k = FK_ADD;
   3368     MEM32(ebp + (-0x18)) = ebx; /* 0x30009DB0: mov dword ptr [ebp - 0x18], ebx */
   3369     ebx = MEM32(ebp + (-0x20)); /* 0x30009DB3: mov ebx, dword ptr [ebp - 0x20] */
   3370     MEM32(ebp + (-0x10)) = eax; /* 0x30009DB6: mov dword ptr [ebp - 0x10], eax */
   3371     MEM32(ebp + (-0x14)) = 2; /* 0x30009DB9: mov dword ptr [ebp - 0x14], 2 */
   3372     goto L_30009F59; /* 0x30009DC0: jmp 0x30009f59 */
   3373 L_30009DC5:
   3374     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DC5: cmp eax, -1 */
   3375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3377     _flag_k = FK_CMP;
   3378     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F30; /* 0x30009DC8: jne 0x30009f30 */
   3379 L_30009DCE:
   3380     eax = MEM32(ebp + (-0x14)); /* 0x30009DCE: mov eax, dword ptr [ebp - 0x14] */
   3381     /* test eax, eax */ /* 0x30009DD1: test eax, eax */
   3382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3383     _cf = 0;
   3384     _flag_k = FK_TEST;
   3385     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009DDE; /* 0x30009DD3: jne 0x30009dde */
   3386 L_30009DD5:
   3387     MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x30009DD5: mov dword ptr [ebp - 0x14], 0xffffffff */
   3388     goto L_30009DEA; /* 0x30009DDC: jmp 0x30009dea */
   3389 L_30009DDE:
   3390     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DDE: cmp eax, -1 */
   3391     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3393     _flag_k = FK_CMP;
   3394     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009DEA; /* 0x30009DE1: je 0x30009dea */
   3395 L_30009DE3:
   3396     MEM32(ebp + (-0x14)) = 2; /* 0x30009DE3: mov dword ptr [ebp - 0x14], 2 */
   3397 L_30009DEA:
   3398     edx = MEM32(0x3001E3F4); /* 0x30009DEA: mov edx, dword ptr [0x3001e3f4] */
   3399     ecx = MEM32(0x3001E3F0); /* 0x30009DF0: mov ecx, dword ptr [0x3001e3f0] */
   3400     /* cmp edi, 1 */ /* 0x30009DF6: cmp edi, 1 */
   3401     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   3402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3403     _flag_k = FK_CMP;
   3404     edi = MEM32(0x3001E3F8); /* 0x30009DF9: mov edi, dword ptr [0x3001e3f8] */
   3405     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F17; /* 0x30009DFF: jne 0x30009f17 */
   3406 L_30009E05:
   3407     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009E05: fld dword ptr [0x3001e3f0] */
   3408     MEM32(ebp + (-0x44)) = ecx; /* 0x30009E0B: mov dword ptr [ebp - 0x44], ecx */
   3409     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009E0E: fsub dword ptr [0x3001fc00] */
   3410     MEM32(ebp + (-0x40)) = edx; /* 0x30009E14: mov dword ptr [ebp - 0x40], edx */
   3411     MEM32(ebp + (-0x3C)) = edi; /* 0x30009E17: mov dword ptr [ebp - 0x3c], edi */
   3412     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x30009E1A: fstp dword ptr [ebp - 0x44] */
   3413     eax = MEM32(ebp + (-0x44)); /* 0x30009E1D: mov eax, dword ptr [ebp - 0x44] */
   3414     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E20: fld dword ptr [ebp - 0x40] */
   3415     MEM32(ebp + (-0x7C)) = eax; /* 0x30009E23: mov dword ptr [ebp - 0x7c], eax */
   3416     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009E26: fsub dword ptr [0x3001fc04] */
   3417     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x30009E2C: fstp dword ptr [ebp - 0x40] */
   3418     eax = MEM32(ebp + (-0x40)); /* 0x30009E2F: mov eax, dword ptr [ebp - 0x40] */
   3419     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E32: fld dword ptr [ebp - 0x3c] */
   3420     MEM32(ebp + (-0x78)) = eax; /* 0x30009E35: mov dword ptr [ebp - 0x78], eax */
   3421     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009E38: fsub dword ptr [0x3001fc08] */
   3422     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x30009E3E: fstp dword ptr [ebp - 0x3c] */
   3423     eax = MEM32(ebp + (-0x3C)); /* 0x30009E41: mov eax, dword ptr [ebp - 0x3c] */
   3424     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009E44: fld dword ptr [0x3001fc08] */
   3425     MEM32(ebp + (-0x74)) = eax; /* 0x30009E4A: mov dword ptr [ebp - 0x74], eax */
   3426     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E4D: fmul dword ptr [esi + 8] */
   3427     eax = MEM32(0x3001FC00); /* 0x30009E50: mov eax, dword ptr [0x3001fc00] */
   3428     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009E55: fld dword ptr [0x3001fc04] */
   3429     MEM32(ebp + (-0x5C)) = eax; /* 0x30009E5B: mov dword ptr [ebp - 0x5c], eax */
   3430     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E5E: fmul dword ptr [esi + 4] */
   3431     eax = MEM32(0x3001FC04); /* 0x30009E61: mov eax, dword ptr [0x3001fc04] */
   3432     MEM32(ebp + (-0x58)) = eax; /* 0x30009E66: mov dword ptr [ebp - 0x58], eax */
   3433     eax = MEM32(0x3001FC08); /* 0x30009E69: mov eax, dword ptr [0x3001fc08] */
   3434     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E6E: faddp st(1) */
   3435     MEM32(ebp + (-0x54)) = eax; /* 0x30009E70: mov dword ptr [ebp - 0x54], eax */
   3436     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009E73: fld dword ptr [0x3001fc00] */
   3437     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E79: fmul dword ptr [esi] */
   3438     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E7B: faddp st(1) */
   3439     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009E7D: fsub dword ptr [esi + 0xc] */
   3440     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E80: fld dword ptr [ebp - 0x3c] */
   3441     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E83: fmul dword ptr [esi + 8] */
   3442     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E86: fld dword ptr [ebp - 0x40] */
   3443     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E89: fmul dword ptr [esi + 4] */
   3444     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E8C: faddp st(1) */
   3445     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E8E: fld dword ptr [ebp - 0x44] */
   3446     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E91: fmul dword ptr [esi] */
   3447     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E93: faddp st(1) */
   3448     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009E95: fdivp st(1) */
   3449     _st[0] = -_st[0]; /* 0x30009E97: fchs  */
   3450     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E99: fld dword ptr [ebp - 0x44] */
   3451     _st[0] *= _st[1]; /* 0x30009E9C: fmul st(1) */
   3452     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x30009E9E: fstp dword ptr [ebp - 0x7c] */
   3453     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30009EA1: fld dword ptr [ebp - 0x78] */
   3454     _st[0] *= _st[1]; /* 0x30009EA4: fmul st(1) */
   3455     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x30009EA6: fstp dword ptr [ebp - 0x78] */
   3456     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x30009EA9: fmul dword ptr [ebp - 0x74] */
   3457     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x30009EAC: fld dword ptr [ebp - 0x7c] */
   3458     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009EAF: fadd dword ptr [0x3001fc00] */
   3459     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x30009EB5: fstp dword ptr [ebp - 0x5c] */
   3460     eax = MEM32(ebp + (-0x5C)); /* 0x30009EB8: mov eax, dword ptr [ebp - 0x5c] */
   3461     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x30009EBB: fld dword ptr [ebp - 0x58] */
   3462     MEM32(ebx) = eax; /* 0x30009EBE: mov dword ptr [ebx], eax */
   3463     _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x30009EC0: fadd dword ptr [ebp - 0x78] */
   3464     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x30009EC3: fstp dword ptr [ebp - 0x58] */
   3465     eax = MEM32(ebp + (-0x58)); /* 0x30009EC6: mov eax, dword ptr [ebp - 0x58] */
   3466     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30009EC9: fld dword ptr [ebp - 0x54] */
   3467     MEM32(ebx + 0x4) = eax; /* 0x30009ECC: mov dword ptr [ebx + 4], eax */
   3468     _st[0] += _st[1]; /* 0x30009ECF: fadd st(1) */
   3469     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x30009ED1: fstp dword ptr [ebp - 0x54] */
   3470     eax = MEM32(ebp + (-0x54)); /* 0x30009ED4: mov eax, dword ptr [ebp - 0x54] */
   3471     MEM32(ebx + 0x8) = eax; /* 0x30009ED7: mov dword ptr [ebx + 8], eax */
   3472     ebx = MEM32(ebp + (-0x1C)); /* 0x30009EDA: mov ebx, dword ptr [ebp - 0x1c] */
   3473     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009EDD: fstp st(0) */
   3474     eax = MEM32(ebp + (-0x20)); /* 0x30009EDF: mov eax, dword ptr [ebp - 0x20] */
   3475     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3476     ebx = ebx + 1; /* 0x30009EE2: inc ebx */
   3477     _flag_k = FK_INC;
   3478     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3479     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3480     eax = eax + 0xCu; /* 0x30009EE3: add eax, 0xc */
   3481     _flag_k = FK_ADD;
   3482     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009EE6: mov dword ptr [ebp - 0x1c], ebx */
   3483     ebx = MEM32(ebp + (-0x5C)); /* 0x30009EE9: mov ebx, dword ptr [ebp - 0x5c] */
   3484     MEM32(ebp + (-0x20)) = eax; /* 0x30009EEC: mov dword ptr [ebp - 0x20], eax */
   3485     eax = MEM32(ebp + (-0x10)); /* 0x30009EEF: mov eax, dword ptr [ebp - 0x10] */
   3486     MEM32(eax) = ebx; /* 0x30009EF2: mov dword ptr [eax], ebx */
   3487     ebx = MEM32(ebp + (-0x58)); /* 0x30009EF4: mov ebx, dword ptr [ebp - 0x58] */
   3488     MEM32(eax + 0x4) = ebx; /* 0x30009EF7: mov dword ptr [eax + 4], ebx */
   3489     ebx = MEM32(ebp + (-0x54)); /* 0x30009EFA: mov ebx, dword ptr [ebp - 0x54] */
   3490     MEM32(eax + 0x8) = ebx; /* 0x30009EFD: mov dword ptr [eax + 8], ebx */
   3491     ebx = MEM32(ebp + (-0x18)); /* 0x30009F00: mov ebx, dword ptr [ebp - 0x18] */
   3492     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3493     ebx = ebx + 1; /* 0x30009F03: inc ebx */
   3494     _flag_k = FK_INC;
   3495     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3496     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3497     eax = eax + 0xCu; /* 0x30009F04: add eax, 0xc */
   3498     _flag_k = FK_ADD;
   3499     MEM32(ebp + (-0x18)) = ebx; /* 0x30009F07: mov dword ptr [ebp - 0x18], ebx */
   3500     ebx = MEM32(ebp + (-0x20)); /* 0x30009F0A: mov ebx, dword ptr [ebp - 0x20] */
   3501     MEM32(ebp + (-0x10)) = eax; /* 0x30009F0D: mov dword ptr [ebp - 0x10], eax */
   3502     MEM32(ebp + (-0x14)) = 2; /* 0x30009F10: mov dword ptr [ebp - 0x14], 2 */
   3503 L_30009F17:
   3504     eax = ebx; /* 0x30009F17: mov eax, ebx */
   3505     MEM32(eax) = ecx; /* 0x30009F19: mov dword ptr [eax], ecx */
   3506     MEM32(eax + 0x4) = edx; /* 0x30009F1B: mov dword ptr [eax + 4], edx */
   3507     MEM32(eax + 0x8) = edi; /* 0x30009F1E: mov dword ptr [eax + 8], edi */
   3508     eax = MEM32(ebp + (-0x1C)); /* 0x30009F21: mov eax, dword ptr [ebp - 0x1c] */
   3509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3510     eax = eax + 1; /* 0x30009F24: inc eax */
   3511     _flag_k = FK_INC;
   3512     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   3513     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3514     ebx = ebx + 0xCu; /* 0x30009F25: add ebx, 0xc */
   3515     _flag_k = FK_ADD;
   3516     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F28: mov dword ptr [ebp - 0x1c], eax */
   3517     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F2B: mov dword ptr [ebp - 0x20], ebx */
   3518     goto L_30009F6B; /* 0x30009F2E: jmp 0x30009f6b */
   3519 L_30009F30:
   3520     ecx = MEM32(0x3001E3F0); /* 0x30009F30: mov ecx, dword ptr [0x3001e3f0] */
   3521     edx = MEM32(0x3001E3F4); /* 0x30009F36: mov edx, dword ptr [0x3001e3f4] */
   3522     edi = MEM32(0x3001E3F8); /* 0x30009F3C: mov edi, dword ptr [0x3001e3f8] */
   3523     eax = ebx; /* 0x30009F42: mov eax, ebx */
   3524     MEM32(eax) = ecx; /* 0x30009F44: mov dword ptr [eax], ecx */
   3525     MEM32(eax + 0x4) = edx; /* 0x30009F46: mov dword ptr [eax + 4], edx */
   3526     MEM32(eax + 0x8) = edi; /* 0x30009F49: mov dword ptr [eax + 8], edi */
   3527     eax = MEM32(ebp + (-0x1C)); /* 0x30009F4C: mov eax, dword ptr [ebp - 0x1c] */
   3528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3529     eax = eax + 1; /* 0x30009F4F: inc eax */
   3530     _flag_k = FK_INC;
   3531     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   3532     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3533     ebx = ebx + 0xCu; /* 0x30009F50: add ebx, 0xc */
   3534     _flag_k = FK_ADD;
   3535     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F53: mov dword ptr [ebp - 0x1c], eax */
   3536     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F56: mov dword ptr [ebp - 0x20], ebx */
   3537 L_30009F59:
   3538     eax = MEM32(ebp + (-0x10)); /* 0x30009F59: mov eax, dword ptr [ebp - 0x10] */
   3539     MEM32(eax) = ecx; /* 0x30009F5C: mov dword ptr [eax], ecx */
   3540     MEM32(eax + 0x4) = edx; /* 0x30009F5E: mov dword ptr [eax + 4], edx */
   3541     MEM32(eax + 0x8) = edi; /* 0x30009F61: mov dword ptr [eax + 8], edi */
   3542     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1);
   3543     MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x30009F64: inc dword ptr [ebp - 0x18] */
   3544     _flag_k = FK_INC;
   3545     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xCu);
   3546     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3547     MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xCu; /* 0x30009F67: add dword ptr [ebp - 0x10], 0xc */
   3548     _flag_k = FK_ADD;
   3549 L_30009F6B:
   3550     eax = MEM32(ebp + (-0x28)); /* 0x30009F6B: mov eax, dword ptr [ebp - 0x28] */
   3551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3552     eax = eax + 1; /* 0x30009F6E: inc eax */
   3553     _flag_k = FK_INC;
   3554     MEM32(ebp + (-0x28)) = eax; /* 0x30009F6F: mov dword ptr [ebp - 0x28], eax */
   3555     eax = (int32_t)(int16_t)LO16(eax); /* 0x30009F72: movsx eax, ax */
   3556     MEM32(0x3001FC00) = ecx; /* 0x30009F75: mov dword ptr [0x3001fc00], ecx */
   3557     /* cmp eax, MEM32(ebp + (-0x24)) */ /* 0x30009F7B: cmp eax, dword ptr [ebp - 0x24] */
   3558     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x24)));
   3559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3560     _flag_k = FK_CMP;
   3561     MEM32(0x3001FC08) = edi; /* 0x30009F7E: mov dword ptr [0x3001fc08], edi */
   3562     edi = MEM32(ebp + (-0x2C)); /* 0x30009F84: mov edi, dword ptr [ebp - 0x2c] */
   3563     MEM32(0x3001FC04) = edx; /* 0x30009F87: mov dword ptr [0x3001fc04], edx */
   3564     RECOMP_BACKEDGE();
   3565     if (CMP_L(_flag_a, _flag_b)) goto L_30009C3B; /* 0x30009F8D: jl 0x30009c3b */
   3566 L_30009F93:
   3567     edi = MEM32(ebp + (-0x14)); /* 0x30009F93: mov edi, dword ptr [ebp - 0x14] */
   3568     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   3569     ebx = ebx | 0xFFFFFFFFu; /* 0x30009F96: or ebx, 0xffffffff */
   3570     _cf = 0;
   3571     _flag_k = FK_TEST;
   3572     /* cmp edi, ebx */ /* 0x30009F99: cmp edi, ebx */
   3573     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3575     _flag_k = FK_CMP;
   3576     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A04F; /* 0x30009F9B: je 0x3000a04f */
   3577 L_30009FA1:
   3578     /* cmp edi, 1 */ /* 0x30009FA1: cmp edi, 1 */
   3579     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   3580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3581     _flag_k = FK_CMP;
   3582     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A02E; /* 0x30009FA4: je 0x3000a02e */
   3583 L_30009FAA:
   3584     /* cmp edi, 2 */ /* 0x30009FAA: cmp edi, 2 */
   3585     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   3586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3587     _flag_k = FK_CMP;
   3588     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A05B; /* 0x30009FAD: jne 0x3000a05b */
   3589 L_30009FB3:
   3590     ecx = MEM32(ebp + 0x8); /* 0x30009FB3: mov ecx, dword ptr [ebp + 8] */
   3591     edx = MEM32(ebp + (-0x18)); /* 0x30009FB6: mov edx, dword ptr [ebp - 0x18] */
   3592     esi = ecx + 0x8; /* 0x30009FB9: lea esi, [ecx + 8] */
   3593     PUSH32(esp, esi); /* 0x30009FBC: push esi */
   3594     PUSH32(esp, edx); /* 0x30009FBD: push edx */
   3595     PUSH32(esp, 0x3001E400u); /* 0x30009FBE: push 0x3001e400 */
   3596     ecx = ebp + (-0x84); /* 0x30009FC3: lea ecx, [ebp - 0x84] */
   3597     RECOMP_ICALL(0x30007A10u); /* 0x30009FC9: call 0x30007a10 */ /* not lifted */
   3598     RECOMP_FLAGS_IN();
   3599     ecx = MEM32(ebp + 0x10); /* 0x30009FCE: mov ecx, dword ptr [ebp + 0x10] */
   3600     PUSH32(esp, eax); /* 0x30009FD1: push eax */
   3601     MEM32(ebp + (-0x4)) = 0; /* 0x30009FD2: mov dword ptr [ebp - 4], 0 */
   3602     RECOMP_ICALL(0x300080D0u); /* 0x30009FD9: call 0x300080d0 */ /* not lifted */
   3603     RECOMP_FLAGS_IN();
   3604     ecx = ebp + (-0x84); /* 0x30009FDE: lea ecx, [ebp - 0x84] */
   3605     MEM32(ebp + (-0x4)) = ebx; /* 0x30009FE4: mov dword ptr [ebp - 4], ebx */
   3606     RECOMP_ICALL(0x30007AB0u); /* 0x30009FE7: call 0x30007ab0 */ /* not lifted */
   3607     RECOMP_FLAGS_IN();
   3608     eax = MEM32(ebp + (-0x1C)); /* 0x30009FEC: mov eax, dword ptr [ebp - 0x1c] */
   3609     PUSH32(esp, esi); /* 0x30009FEF: push esi */
   3610     PUSH32(esp, eax); /* 0x30009FF0: push eax */
   3611     PUSH32(esp, 0x3001F000u); /* 0x30009FF1: push 0x3001f000 */
   3612     ecx = ebp + (-0x70); /* 0x30009FF6: lea ecx, [ebp - 0x70] */
   3613     RECOMP_ICALL(0x30007A10u); /* 0x30009FF9: call 0x30007a10 */ /* not lifted */
   3614     RECOMP_FLAGS_IN();
   3615     ecx = MEM32(ebp + 0xC); /* 0x30009FFE: mov ecx, dword ptr [ebp + 0xc] */
   3616     PUSH32(esp, eax); /* 0x3000A001: push eax */
   3617     MEM32(ebp + (-0x4)) = 1; /* 0x3000A002: mov dword ptr [ebp - 4], 1 */
   3618     RECOMP_ICALL(0x300080D0u); /* 0x3000A009: call 0x300080d0 */ /* not lifted */
   3619     RECOMP_FLAGS_IN();
   3620     ecx = ebp + (-0x70); /* 0x3000A00E: lea ecx, [ebp - 0x70] */
   3621     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A011: mov dword ptr [ebp - 4], ebx */
   3622     RECOMP_ICALL(0x30007AB0u); /* 0x3000A014: call 0x30007ab0 */ /* not lifted */
   3623     RECOMP_FLAGS_IN();
   3624     eax = edi; /* 0x3000A019: mov eax, edi */
   3625     edi = POP32_VAL(esp); /* 0x3000A01B: pop edi */
   3626     esi = POP32_VAL(esp); /* 0x3000A01C: pop esi */
   3627     ebx = POP32_VAL(esp); /* 0x3000A01D: pop ebx */
   3628     ecx = MEM32(ebp + (-0xC)); /* 0x3000A01E: mov ecx, dword ptr [ebp - 0xc] */
   3629     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A021: mov dword ptr fs:[0], ecx */
   3630     esp = ebp; /* 0x3000A028: mov esp, ebp */
   3631     ebp = POP32_VAL(esp); /* 0x3000A02A: pop ebp */
   3632     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A02B: ret 0xc */
   3633 L_3000A02E:
   3634     ecx = MEM32(ebp + 0x8); /* 0x3000A02E: mov ecx, dword ptr [ebp + 8] */
   3635     PUSH32(esp, ecx); /* 0x3000A031: push ecx */
   3636     ecx = MEM32(ebp + 0x10); /* 0x3000A032: mov ecx, dword ptr [ebp + 0x10] */
   3637     RECOMP_ICALL(0x300080D0u); /* 0x3000A035: call 0x300080d0 */ /* not lifted */
   3638     RECOMP_FLAGS_IN();
   3639     eax = edi; /* 0x3000A03A: mov eax, edi */
   3640     edi = POP32_VAL(esp); /* 0x3000A03C: pop edi */
   3641     esi = POP32_VAL(esp); /* 0x3000A03D: pop esi */
   3642     ebx = POP32_VAL(esp); /* 0x3000A03E: pop ebx */
   3643     ecx = MEM32(ebp + (-0xC)); /* 0x3000A03F: mov ecx, dword ptr [ebp - 0xc] */
   3644     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A042: mov dword ptr fs:[0], ecx */
   3645     esp = ebp; /* 0x3000A049: mov esp, ebp */
   3646     ebp = POP32_VAL(esp); /* 0x3000A04B: pop ebp */
   3647     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A04C: ret 0xc */
   3648 L_3000A04F:
   3649     edx = MEM32(ebp + 0x8); /* 0x3000A04F: mov edx, dword ptr [ebp + 8] */
   3650     ecx = MEM32(ebp + 0xC); /* 0x3000A052: mov ecx, dword ptr [ebp + 0xc] */
   3651     PUSH32(esp, edx); /* 0x3000A055: push edx */
   3652     RECOMP_ICALL(0x300080D0u); /* 0x3000A056: call 0x300080d0 */ /* not lifted */
   3653     RECOMP_FLAGS_IN();
   3654 L_3000A05B:
   3655     eax = edi; /* 0x3000A05B: mov eax, edi */
   3656     edi = POP32_VAL(esp); /* 0x3000A05D: pop edi */
   3657     esi = POP32_VAL(esp); /* 0x3000A05E: pop esi */
   3658     ebx = POP32_VAL(esp); /* 0x3000A05F: pop ebx */
   3659     ecx = MEM32(ebp + (-0xC)); /* 0x3000A060: mov ecx, dword ptr [ebp - 0xc] */
   3660     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A063: mov dword ptr fs:[0], ecx */
   3661     esp = ebp; /* 0x3000A06A: mov esp, ebp */
   3662     ebp = POP32_VAL(esp); /* 0x3000A06C: pop ebp */
   3663     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A06D: ret 0xc */
   3664     RECOMP_REGS_OUT();
   3665 }
   3666 
   3667 void sub_30009F6B(void) {
   3668     int _fpu_cmp = 0;
   3669     uint32_t _cf = 0;
   3670     int _df = 1;
   3671     uint32_t _flag_k = FK_NONE;
   3672     uint32_t _flag_a = 0, _flag_b = 0;
   3673     uint32_t _itail_tgt = 0;
   3674     RECOMP_REGS_LOCALS
   3675     RECOMP_ENTER(0x30009F6Bu);
   3676 
   3677     goto L_30009F6B;
   3678 L_30009C3B:
   3679     ecx = MEM32(ebp + 0x8); /* 0x30009C3B: mov ecx, dword ptr [ebp + 8] */
   3680     edx = MEM32(ecx); /* 0x30009C3E: mov edx, dword ptr [ecx] */
   3681     eax = eax + eax * 2; /* 0x30009C40: lea eax, [eax + eax*2] */
   3682     eax = edx + eax * 4; /* 0x30009C43: lea eax, [edx + eax*4] */
   3683     ecx = MEM32(eax); /* 0x30009C46: mov ecx, dword ptr [eax] */
   3684     MEM32(0x3001E3F0) = ecx; /* 0x30009C48: mov dword ptr [0x3001e3f0], ecx */
   3685     edx = MEM32(eax + 0x4); /* 0x30009C4E: mov edx, dword ptr [eax + 4] */
   3686     MEM32(0x3001E3F4) = edx; /* 0x30009C51: mov dword ptr [0x3001e3f4], edx */
   3687     eax = MEM32(eax + 0x8); /* 0x30009C57: mov eax, dword ptr [eax + 8] */
   3688     PUSH32(esp, 0x3001E3F0u); /* 0x30009C5A: push 0x3001e3f0 */
   3689     ecx = esi; /* 0x30009C5F: mov ecx, esi */
   3690     MEM32(0x3001E3F8) = eax; /* 0x30009C61: mov dword ptr [0x3001e3f8], eax */
   3691     RECOMP_ICALL(0x30009870u); /* 0x30009C66: call 0x30009870 */ /* not lifted */
   3692     RECOMP_FLAGS_IN();
   3693     /* cmp eax, 1 */ /* 0x30009C6B: cmp eax, 1 */
   3694     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3696     _flag_k = FK_CMP;
   3697     MEM32(ebp + (-0x2C)) = eax; /* 0x30009C6E: mov dword ptr [ebp - 0x2c], eax */
   3698     if (CMP_NE(_flag_a, _flag_b)) goto L_30009DC5; /* 0x30009C71: jne 0x30009dc5 */
   3699 L_30009C77:
   3700     eax = MEM32(ebp + (-0x14)); /* 0x30009C77: mov eax, dword ptr [ebp - 0x14] */
   3701     /* test eax, eax */ /* 0x30009C7A: test eax, eax */
   3702     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3703     _cf = 0;
   3704     _flag_k = FK_TEST;
   3705     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009C87; /* 0x30009C7C: jne 0x30009c87 */
   3706 L_30009C7E:
   3707     MEM32(ebp + (-0x14)) = 1; /* 0x30009C7E: mov dword ptr [ebp - 0x14], 1 */
   3708     goto L_30009C93; /* 0x30009C85: jmp 0x30009c93 */
   3709 L_30009C87:
   3710     /* cmp eax, 1 */ /* 0x30009C87: cmp eax, 1 */
   3711     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3713     _flag_k = FK_CMP;
   3714     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009C93; /* 0x30009C8A: je 0x30009c93 */
   3715 L_30009C8C:
   3716     MEM32(ebp + (-0x14)) = 2; /* 0x30009C8C: mov dword ptr [ebp - 0x14], 2 */
   3717 L_30009C93:
   3718     edx = MEM32(0x3001E3F4); /* 0x30009C93: mov edx, dword ptr [0x3001e3f4] */
   3719     ecx = MEM32(0x3001E3F0); /* 0x30009C99: mov ecx, dword ptr [0x3001e3f0] */
   3720     /* cmp edi, 0xFFFFFFFFu */ /* 0x30009C9F: cmp edi, -1 */
   3721     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3723     _flag_k = FK_CMP;
   3724     edi = MEM32(0x3001E3F8); /* 0x30009CA2: mov edi, dword ptr [0x3001e3f8] */
   3725     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F59; /* 0x30009CA8: jne 0x30009f59 */
   3726 L_30009CAE:
   3727     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009CAE: fld dword ptr [0x3001e3f0] */
   3728     MEM32(ebp + (-0x38)) = ecx; /* 0x30009CB4: mov dword ptr [ebp - 0x38], ecx */
   3729     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009CB7: fsub dword ptr [0x3001fc00] */
   3730     MEM32(ebp + (-0x34)) = edx; /* 0x30009CBD: mov dword ptr [ebp - 0x34], edx */
   3731     MEM32(ebp + (-0x30)) = edi; /* 0x30009CC0: mov dword ptr [ebp - 0x30], edi */
   3732     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x30009CC3: fstp dword ptr [ebp - 0x38] */
   3733     eax = MEM32(ebp + (-0x38)); /* 0x30009CC6: mov eax, dword ptr [ebp - 0x38] */
   3734     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009CC9: fld dword ptr [ebp - 0x34] */
   3735     MEM32(ebp + (-0x68)) = eax; /* 0x30009CCC: mov dword ptr [ebp - 0x68], eax */
   3736     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009CCF: fsub dword ptr [0x3001fc04] */
   3737     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x30009CD5: fstp dword ptr [ebp - 0x34] */
   3738     eax = MEM32(ebp + (-0x34)); /* 0x30009CD8: mov eax, dword ptr [ebp - 0x34] */
   3739     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009CDB: fld dword ptr [ebp - 0x30] */
   3740     MEM32(ebp + (-0x64)) = eax; /* 0x30009CDE: mov dword ptr [ebp - 0x64], eax */
   3741     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009CE1: fsub dword ptr [0x3001fc08] */
   3742     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x30009CE7: fstp dword ptr [ebp - 0x30] */
   3743     eax = MEM32(ebp + (-0x30)); /* 0x30009CEA: mov eax, dword ptr [ebp - 0x30] */
   3744     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009CED: fld dword ptr [0x3001fc08] */
   3745     MEM32(ebp + (-0x60)) = eax; /* 0x30009CF3: mov dword ptr [ebp - 0x60], eax */
   3746     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009CF6: fmul dword ptr [esi + 8] */
   3747     eax = MEM32(0x3001FC00); /* 0x30009CF9: mov eax, dword ptr [0x3001fc00] */
   3748     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009CFE: fld dword ptr [0x3001fc04] */
   3749     MEM32(ebp + (-0x50)) = eax; /* 0x30009D04: mov dword ptr [ebp - 0x50], eax */
   3750     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D07: fmul dword ptr [esi + 4] */
   3751     eax = MEM32(0x3001FC04); /* 0x30009D0A: mov eax, dword ptr [0x3001fc04] */
   3752     MEM32(ebp + (-0x4C)) = eax; /* 0x30009D0F: mov dword ptr [ebp - 0x4c], eax */
   3753     eax = MEM32(0x3001FC08); /* 0x30009D12: mov eax, dword ptr [0x3001fc08] */
   3754     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D17: faddp st(1) */
   3755     MEM32(ebp + (-0x48)) = eax; /* 0x30009D19: mov dword ptr [ebp - 0x48], eax */
   3756     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009D1C: fld dword ptr [0x3001fc00] */
   3757     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D22: fmul dword ptr [esi] */
   3758     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D24: faddp st(1) */
   3759     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009D26: fsub dword ptr [esi + 0xc] */
   3760     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x30009D29: fld dword ptr [ebp - 0x30] */
   3761     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009D2C: fmul dword ptr [esi + 8] */
   3762     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30009D2F: fld dword ptr [ebp - 0x34] */
   3763     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009D32: fmul dword ptr [esi + 4] */
   3764     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D35: faddp st(1) */
   3765     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D37: fld dword ptr [ebp - 0x38] */
   3766     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009D3A: fmul dword ptr [esi] */
   3767     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009D3C: faddp st(1) */
   3768     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009D3E: fdivp st(1) */
   3769     _st[0] = -_st[0]; /* 0x30009D40: fchs  */
   3770     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x30009D42: fld dword ptr [ebp - 0x38] */
   3771     _st[0] *= _st[1]; /* 0x30009D45: fmul st(1) */
   3772     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x30009D47: fstp dword ptr [ebp - 0x68] */
   3773     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30009D4A: fld dword ptr [ebp - 0x64] */
   3774     _st[0] *= _st[1]; /* 0x30009D4D: fmul st(1) */
   3775     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x30009D4F: fstp dword ptr [ebp - 0x64] */
   3776     _st[0] *= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x30009D52: fmul dword ptr [ebp - 0x60] */
   3777     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x30009D55: fld dword ptr [ebp - 0x68] */
   3778     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009D58: fadd dword ptr [0x3001fc00] */
   3779     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x30009D5E: fstp dword ptr [ebp - 0x50] */
   3780     eax = MEM32(ebp + (-0x50)); /* 0x30009D61: mov eax, dword ptr [ebp - 0x50] */
   3781     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x30009D64: fld dword ptr [ebp - 0x4c] */
   3782     MEM32(ebx) = eax; /* 0x30009D67: mov dword ptr [ebx], eax */
   3783     _st[0] += (double)*(float*)ADDR(ebp + (-0x64)); /* 0x30009D69: fadd dword ptr [ebp - 0x64] */
   3784     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x30009D6C: fstp dword ptr [ebp - 0x4c] */
   3785     eax = MEM32(ebp + (-0x4C)); /* 0x30009D6F: mov eax, dword ptr [ebp - 0x4c] */
   3786     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x30009D72: fld dword ptr [ebp - 0x48] */
   3787     MEM32(ebx + 0x4) = eax; /* 0x30009D75: mov dword ptr [ebx + 4], eax */
   3788     _st[0] += _st[1]; /* 0x30009D78: fadd st(1) */
   3789     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x30009D7A: fstp dword ptr [ebp - 0x48] */
   3790     eax = MEM32(ebp + (-0x48)); /* 0x30009D7D: mov eax, dword ptr [ebp - 0x48] */
   3791     MEM32(ebx + 0x8) = eax; /* 0x30009D80: mov dword ptr [ebx + 8], eax */
   3792     ebx = MEM32(ebp + (-0x1C)); /* 0x30009D83: mov ebx, dword ptr [ebp - 0x1c] */
   3793     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009D86: fstp st(0) */
   3794     eax = MEM32(ebp + (-0x20)); /* 0x30009D88: mov eax, dword ptr [ebp - 0x20] */
   3795     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3796     ebx = ebx + 1; /* 0x30009D8B: inc ebx */
   3797     _flag_k = FK_INC;
   3798     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3800     eax = eax + 0xCu; /* 0x30009D8C: add eax, 0xc */
   3801     _flag_k = FK_ADD;
   3802     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009D8F: mov dword ptr [ebp - 0x1c], ebx */
   3803     ebx = MEM32(ebp + (-0x50)); /* 0x30009D92: mov ebx, dword ptr [ebp - 0x50] */
   3804     MEM32(ebp + (-0x20)) = eax; /* 0x30009D95: mov dword ptr [ebp - 0x20], eax */
   3805     eax = MEM32(ebp + (-0x10)); /* 0x30009D98: mov eax, dword ptr [ebp - 0x10] */
   3806     MEM32(eax) = ebx; /* 0x30009D9B: mov dword ptr [eax], ebx */
   3807     ebx = MEM32(ebp + (-0x4C)); /* 0x30009D9D: mov ebx, dword ptr [ebp - 0x4c] */
   3808     MEM32(eax + 0x4) = ebx; /* 0x30009DA0: mov dword ptr [eax + 4], ebx */
   3809     ebx = MEM32(ebp + (-0x48)); /* 0x30009DA3: mov ebx, dword ptr [ebp - 0x48] */
   3810     MEM32(eax + 0x8) = ebx; /* 0x30009DA6: mov dword ptr [eax + 8], ebx */
   3811     ebx = MEM32(ebp + (-0x18)); /* 0x30009DA9: mov ebx, dword ptr [ebp - 0x18] */
   3812     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3813     ebx = ebx + 1; /* 0x30009DAC: inc ebx */
   3814     _flag_k = FK_INC;
   3815     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3816     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3817     eax = eax + 0xCu; /* 0x30009DAD: add eax, 0xc */
   3818     _flag_k = FK_ADD;
   3819     MEM32(ebp + (-0x18)) = ebx; /* 0x30009DB0: mov dword ptr [ebp - 0x18], ebx */
   3820     ebx = MEM32(ebp + (-0x20)); /* 0x30009DB3: mov ebx, dword ptr [ebp - 0x20] */
   3821     MEM32(ebp + (-0x10)) = eax; /* 0x30009DB6: mov dword ptr [ebp - 0x10], eax */
   3822     MEM32(ebp + (-0x14)) = 2; /* 0x30009DB9: mov dword ptr [ebp - 0x14], 2 */
   3823     goto L_30009F59; /* 0x30009DC0: jmp 0x30009f59 */
   3824 L_30009DC5:
   3825     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DC5: cmp eax, -1 */
   3826     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3828     _flag_k = FK_CMP;
   3829     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F30; /* 0x30009DC8: jne 0x30009f30 */
   3830 L_30009DCE:
   3831     eax = MEM32(ebp + (-0x14)); /* 0x30009DCE: mov eax, dword ptr [ebp - 0x14] */
   3832     /* test eax, eax */ /* 0x30009DD1: test eax, eax */
   3833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3834     _cf = 0;
   3835     _flag_k = FK_TEST;
   3836     if (TEST_NZ(_flag_a, _flag_b)) goto L_30009DDE; /* 0x30009DD3: jne 0x30009dde */
   3837 L_30009DD5:
   3838     MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x30009DD5: mov dword ptr [ebp - 0x14], 0xffffffff */
   3839     goto L_30009DEA; /* 0x30009DDC: jmp 0x30009dea */
   3840 L_30009DDE:
   3841     /* cmp eax, 0xFFFFFFFFu */ /* 0x30009DDE: cmp eax, -1 */
   3842     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   3843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3844     _flag_k = FK_CMP;
   3845     if (CMP_EQ(_flag_a, _flag_b)) goto L_30009DEA; /* 0x30009DE1: je 0x30009dea */
   3846 L_30009DE3:
   3847     MEM32(ebp + (-0x14)) = 2; /* 0x30009DE3: mov dword ptr [ebp - 0x14], 2 */
   3848 L_30009DEA:
   3849     edx = MEM32(0x3001E3F4); /* 0x30009DEA: mov edx, dword ptr [0x3001e3f4] */
   3850     ecx = MEM32(0x3001E3F0); /* 0x30009DF0: mov ecx, dword ptr [0x3001e3f0] */
   3851     /* cmp edi, 1 */ /* 0x30009DF6: cmp edi, 1 */
   3852     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   3853     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3854     _flag_k = FK_CMP;
   3855     edi = MEM32(0x3001E3F8); /* 0x30009DF9: mov edi, dword ptr [0x3001e3f8] */
   3856     if (CMP_NE(_flag_a, _flag_b)) goto L_30009F17; /* 0x30009DFF: jne 0x30009f17 */
   3857 L_30009E05:
   3858     fp_push(*(float*)&MEM32(0x3001E3F0)); /* 0x30009E05: fld dword ptr [0x3001e3f0] */
   3859     MEM32(ebp + (-0x44)) = ecx; /* 0x30009E0B: mov dword ptr [ebp - 0x44], ecx */
   3860     _st[0] -= (double)*(float*)ADDR(0x3001FC00); /* 0x30009E0E: fsub dword ptr [0x3001fc00] */
   3861     MEM32(ebp + (-0x40)) = edx; /* 0x30009E14: mov dword ptr [ebp - 0x40], edx */
   3862     MEM32(ebp + (-0x3C)) = edi; /* 0x30009E17: mov dword ptr [ebp - 0x3c], edi */
   3863     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x30009E1A: fstp dword ptr [ebp - 0x44] */
   3864     eax = MEM32(ebp + (-0x44)); /* 0x30009E1D: mov eax, dword ptr [ebp - 0x44] */
   3865     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E20: fld dword ptr [ebp - 0x40] */
   3866     MEM32(ebp + (-0x7C)) = eax; /* 0x30009E23: mov dword ptr [ebp - 0x7c], eax */
   3867     _st[0] -= (double)*(float*)ADDR(0x3001FC04); /* 0x30009E26: fsub dword ptr [0x3001fc04] */
   3868     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x30009E2C: fstp dword ptr [ebp - 0x40] */
   3869     eax = MEM32(ebp + (-0x40)); /* 0x30009E2F: mov eax, dword ptr [ebp - 0x40] */
   3870     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E32: fld dword ptr [ebp - 0x3c] */
   3871     MEM32(ebp + (-0x78)) = eax; /* 0x30009E35: mov dword ptr [ebp - 0x78], eax */
   3872     _st[0] -= (double)*(float*)ADDR(0x3001FC08); /* 0x30009E38: fsub dword ptr [0x3001fc08] */
   3873     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x30009E3E: fstp dword ptr [ebp - 0x3c] */
   3874     eax = MEM32(ebp + (-0x3C)); /* 0x30009E41: mov eax, dword ptr [ebp - 0x3c] */
   3875     fp_push(*(float*)&MEM32(0x3001FC08)); /* 0x30009E44: fld dword ptr [0x3001fc08] */
   3876     MEM32(ebp + (-0x74)) = eax; /* 0x30009E4A: mov dword ptr [ebp - 0x74], eax */
   3877     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E4D: fmul dword ptr [esi + 8] */
   3878     eax = MEM32(0x3001FC00); /* 0x30009E50: mov eax, dword ptr [0x3001fc00] */
   3879     fp_push(*(float*)&MEM32(0x3001FC04)); /* 0x30009E55: fld dword ptr [0x3001fc04] */
   3880     MEM32(ebp + (-0x5C)) = eax; /* 0x30009E5B: mov dword ptr [ebp - 0x5c], eax */
   3881     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E5E: fmul dword ptr [esi + 4] */
   3882     eax = MEM32(0x3001FC04); /* 0x30009E61: mov eax, dword ptr [0x3001fc04] */
   3883     MEM32(ebp + (-0x58)) = eax; /* 0x30009E66: mov dword ptr [ebp - 0x58], eax */
   3884     eax = MEM32(0x3001FC08); /* 0x30009E69: mov eax, dword ptr [0x3001fc08] */
   3885     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E6E: faddp st(1) */
   3886     MEM32(ebp + (-0x54)) = eax; /* 0x30009E70: mov dword ptr [ebp - 0x54], eax */
   3887     fp_push(*(float*)&MEM32(0x3001FC00)); /* 0x30009E73: fld dword ptr [0x3001fc00] */
   3888     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E79: fmul dword ptr [esi] */
   3889     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E7B: faddp st(1) */
   3890     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x30009E7D: fsub dword ptr [esi + 0xc] */
   3891     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x30009E80: fld dword ptr [ebp - 0x3c] */
   3892     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30009E83: fmul dword ptr [esi + 8] */
   3893     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x30009E86: fld dword ptr [ebp - 0x40] */
   3894     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x30009E89: fmul dword ptr [esi + 4] */
   3895     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E8C: faddp st(1) */
   3896     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E8E: fld dword ptr [ebp - 0x44] */
   3897     _st[0] *= (double)*(float*)ADDR(esi); /* 0x30009E91: fmul dword ptr [esi] */
   3898     { double _v = fp_pop(); _st[0] += _v; } /* 0x30009E93: faddp st(1) */
   3899     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30009E95: fdivp st(1) */
   3900     _st[0] = -_st[0]; /* 0x30009E97: fchs  */
   3901     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x30009E99: fld dword ptr [ebp - 0x44] */
   3902     _st[0] *= _st[1]; /* 0x30009E9C: fmul st(1) */
   3903     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x30009E9E: fstp dword ptr [ebp - 0x7c] */
   3904     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30009EA1: fld dword ptr [ebp - 0x78] */
   3905     _st[0] *= _st[1]; /* 0x30009EA4: fmul st(1) */
   3906     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x30009EA6: fstp dword ptr [ebp - 0x78] */
   3907     _st[0] *= (double)*(float*)ADDR(ebp + (-0x74)); /* 0x30009EA9: fmul dword ptr [ebp - 0x74] */
   3908     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x30009EAC: fld dword ptr [ebp - 0x7c] */
   3909     _st[0] += (double)*(float*)ADDR(0x3001FC00); /* 0x30009EAF: fadd dword ptr [0x3001fc00] */
   3910     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x30009EB5: fstp dword ptr [ebp - 0x5c] */
   3911     eax = MEM32(ebp + (-0x5C)); /* 0x30009EB8: mov eax, dword ptr [ebp - 0x5c] */
   3912     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x30009EBB: fld dword ptr [ebp - 0x58] */
   3913     MEM32(ebx) = eax; /* 0x30009EBE: mov dword ptr [ebx], eax */
   3914     _st[0] += (double)*(float*)ADDR(ebp + (-0x78)); /* 0x30009EC0: fadd dword ptr [ebp - 0x78] */
   3915     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x30009EC3: fstp dword ptr [ebp - 0x58] */
   3916     eax = MEM32(ebp + (-0x58)); /* 0x30009EC6: mov eax, dword ptr [ebp - 0x58] */
   3917     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30009EC9: fld dword ptr [ebp - 0x54] */
   3918     MEM32(ebx + 0x4) = eax; /* 0x30009ECC: mov dword ptr [ebx + 4], eax */
   3919     _st[0] += _st[1]; /* 0x30009ECF: fadd st(1) */
   3920     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x30009ED1: fstp dword ptr [ebp - 0x54] */
   3921     eax = MEM32(ebp + (-0x54)); /* 0x30009ED4: mov eax, dword ptr [ebp - 0x54] */
   3922     MEM32(ebx + 0x8) = eax; /* 0x30009ED7: mov dword ptr [ebx + 8], eax */
   3923     ebx = MEM32(ebp + (-0x1C)); /* 0x30009EDA: mov ebx, dword ptr [ebp - 0x1c] */
   3924     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30009EDD: fstp st(0) */
   3925     eax = MEM32(ebp + (-0x20)); /* 0x30009EDF: mov eax, dword ptr [ebp - 0x20] */
   3926     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3927     ebx = ebx + 1; /* 0x30009EE2: inc ebx */
   3928     _flag_k = FK_INC;
   3929     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3930     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3931     eax = eax + 0xCu; /* 0x30009EE3: add eax, 0xc */
   3932     _flag_k = FK_ADD;
   3933     MEM32(ebp + (-0x1C)) = ebx; /* 0x30009EE6: mov dword ptr [ebp - 0x1c], ebx */
   3934     ebx = MEM32(ebp + (-0x5C)); /* 0x30009EE9: mov ebx, dword ptr [ebp - 0x5c] */
   3935     MEM32(ebp + (-0x20)) = eax; /* 0x30009EEC: mov dword ptr [ebp - 0x20], eax */
   3936     eax = MEM32(ebp + (-0x10)); /* 0x30009EEF: mov eax, dword ptr [ebp - 0x10] */
   3937     MEM32(eax) = ebx; /* 0x30009EF2: mov dword ptr [eax], ebx */
   3938     ebx = MEM32(ebp + (-0x58)); /* 0x30009EF4: mov ebx, dword ptr [ebp - 0x58] */
   3939     MEM32(eax + 0x4) = ebx; /* 0x30009EF7: mov dword ptr [eax + 4], ebx */
   3940     ebx = MEM32(ebp + (-0x54)); /* 0x30009EFA: mov ebx, dword ptr [ebp - 0x54] */
   3941     MEM32(eax + 0x8) = ebx; /* 0x30009EFD: mov dword ptr [eax + 8], ebx */
   3942     ebx = MEM32(ebp + (-0x18)); /* 0x30009F00: mov ebx, dword ptr [ebp - 0x18] */
   3943     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   3944     ebx = ebx + 1; /* 0x30009F03: inc ebx */
   3945     _flag_k = FK_INC;
   3946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3947     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3948     eax = eax + 0xCu; /* 0x30009F04: add eax, 0xc */
   3949     _flag_k = FK_ADD;
   3950     MEM32(ebp + (-0x18)) = ebx; /* 0x30009F07: mov dword ptr [ebp - 0x18], ebx */
   3951     ebx = MEM32(ebp + (-0x20)); /* 0x30009F0A: mov ebx, dword ptr [ebp - 0x20] */
   3952     MEM32(ebp + (-0x10)) = eax; /* 0x30009F0D: mov dword ptr [ebp - 0x10], eax */
   3953     MEM32(ebp + (-0x14)) = 2; /* 0x30009F10: mov dword ptr [ebp - 0x14], 2 */
   3954 L_30009F17:
   3955     eax = ebx; /* 0x30009F17: mov eax, ebx */
   3956     MEM32(eax) = ecx; /* 0x30009F19: mov dword ptr [eax], ecx */
   3957     MEM32(eax + 0x4) = edx; /* 0x30009F1B: mov dword ptr [eax + 4], edx */
   3958     MEM32(eax + 0x8) = edi; /* 0x30009F1E: mov dword ptr [eax + 8], edi */
   3959     eax = MEM32(ebp + (-0x1C)); /* 0x30009F21: mov eax, dword ptr [ebp - 0x1c] */
   3960     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3961     eax = eax + 1; /* 0x30009F24: inc eax */
   3962     _flag_k = FK_INC;
   3963     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   3964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3965     ebx = ebx + 0xCu; /* 0x30009F25: add ebx, 0xc */
   3966     _flag_k = FK_ADD;
   3967     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F28: mov dword ptr [ebp - 0x1c], eax */
   3968     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F2B: mov dword ptr [ebp - 0x20], ebx */
   3969     goto L_30009F6B; /* 0x30009F2E: jmp 0x30009f6b */
   3970 L_30009F30:
   3971     ecx = MEM32(0x3001E3F0); /* 0x30009F30: mov ecx, dword ptr [0x3001e3f0] */
   3972     edx = MEM32(0x3001E3F4); /* 0x30009F36: mov edx, dword ptr [0x3001e3f4] */
   3973     edi = MEM32(0x3001E3F8); /* 0x30009F3C: mov edi, dword ptr [0x3001e3f8] */
   3974     eax = ebx; /* 0x30009F42: mov eax, ebx */
   3975     MEM32(eax) = ecx; /* 0x30009F44: mov dword ptr [eax], ecx */
   3976     MEM32(eax + 0x4) = edx; /* 0x30009F46: mov dword ptr [eax + 4], edx */
   3977     MEM32(eax + 0x8) = edi; /* 0x30009F49: mov dword ptr [eax + 8], edi */
   3978     eax = MEM32(ebp + (-0x1C)); /* 0x30009F4C: mov eax, dword ptr [ebp - 0x1c] */
   3979     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3980     eax = eax + 1; /* 0x30009F4F: inc eax */
   3981     _flag_k = FK_INC;
   3982     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   3983     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3984     ebx = ebx + 0xCu; /* 0x30009F50: add ebx, 0xc */
   3985     _flag_k = FK_ADD;
   3986     MEM32(ebp + (-0x1C)) = eax; /* 0x30009F53: mov dword ptr [ebp - 0x1c], eax */
   3987     MEM32(ebp + (-0x20)) = ebx; /* 0x30009F56: mov dword ptr [ebp - 0x20], ebx */
   3988 L_30009F59:
   3989     eax = MEM32(ebp + (-0x10)); /* 0x30009F59: mov eax, dword ptr [ebp - 0x10] */
   3990     MEM32(eax) = ecx; /* 0x30009F5C: mov dword ptr [eax], ecx */
   3991     MEM32(eax + 0x4) = edx; /* 0x30009F5E: mov dword ptr [eax + 4], edx */
   3992     MEM32(eax + 0x8) = edi; /* 0x30009F61: mov dword ptr [eax + 8], edi */
   3993     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(1);
   3994     MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) + 1; /* 0x30009F64: inc dword ptr [ebp - 0x18] */
   3995     _flag_k = FK_INC;
   3996     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xCu);
   3997     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3998     MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xCu; /* 0x30009F67: add dword ptr [ebp - 0x10], 0xc */
   3999     _flag_k = FK_ADD;
   4000 L_30009F6B:
   4001     eax = MEM32(ebp + (-0x28)); /* 0x30009F6B: mov eax, dword ptr [ebp - 0x28] */
   4002     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4003     eax = eax + 1; /* 0x30009F6E: inc eax */
   4004     _flag_k = FK_INC;
   4005     MEM32(ebp + (-0x28)) = eax; /* 0x30009F6F: mov dword ptr [ebp - 0x28], eax */
   4006     eax = (int32_t)(int16_t)LO16(eax); /* 0x30009F72: movsx eax, ax */
   4007     MEM32(0x3001FC00) = ecx; /* 0x30009F75: mov dword ptr [0x3001fc00], ecx */
   4008     /* cmp eax, MEM32(ebp + (-0x24)) */ /* 0x30009F7B: cmp eax, dword ptr [ebp - 0x24] */
   4009     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x24)));
   4010     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4011     _flag_k = FK_CMP;
   4012     MEM32(0x3001FC08) = edi; /* 0x30009F7E: mov dword ptr [0x3001fc08], edi */
   4013     edi = MEM32(ebp + (-0x2C)); /* 0x30009F84: mov edi, dword ptr [ebp - 0x2c] */
   4014     MEM32(0x3001FC04) = edx; /* 0x30009F87: mov dword ptr [0x3001fc04], edx */
   4015     RECOMP_BACKEDGE();
   4016     if (CMP_L(_flag_a, _flag_b)) goto L_30009C3B; /* 0x30009F8D: jl 0x30009c3b */
   4017 L_30009F93:
   4018     edi = MEM32(ebp + (-0x14)); /* 0x30009F93: mov edi, dword ptr [ebp - 0x14] */
   4019     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   4020     ebx = ebx | 0xFFFFFFFFu; /* 0x30009F96: or ebx, 0xffffffff */
   4021     _cf = 0;
   4022     _flag_k = FK_TEST;
   4023     /* cmp edi, ebx */ /* 0x30009F99: cmp edi, ebx */
   4024     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   4025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4026     _flag_k = FK_CMP;
   4027     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A04F; /* 0x30009F9B: je 0x3000a04f */
   4028 L_30009FA1:
   4029     /* cmp edi, 1 */ /* 0x30009FA1: cmp edi, 1 */
   4030     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   4031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4032     _flag_k = FK_CMP;
   4033     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A02E; /* 0x30009FA4: je 0x3000a02e */
   4034 L_30009FAA:
   4035     /* cmp edi, 2 */ /* 0x30009FAA: cmp edi, 2 */
   4036     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   4037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4038     _flag_k = FK_CMP;
   4039     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A05B; /* 0x30009FAD: jne 0x3000a05b */
   4040 L_30009FB3:
   4041     ecx = MEM32(ebp + 0x8); /* 0x30009FB3: mov ecx, dword ptr [ebp + 8] */
   4042     edx = MEM32(ebp + (-0x18)); /* 0x30009FB6: mov edx, dword ptr [ebp - 0x18] */
   4043     esi = ecx + 0x8; /* 0x30009FB9: lea esi, [ecx + 8] */
   4044     PUSH32(esp, esi); /* 0x30009FBC: push esi */
   4045     PUSH32(esp, edx); /* 0x30009FBD: push edx */
   4046     PUSH32(esp, 0x3001E400u); /* 0x30009FBE: push 0x3001e400 */
   4047     ecx = ebp + (-0x84); /* 0x30009FC3: lea ecx, [ebp - 0x84] */
   4048     RECOMP_ICALL(0x30007A10u); /* 0x30009FC9: call 0x30007a10 */ /* not lifted */
   4049     RECOMP_FLAGS_IN();
   4050     ecx = MEM32(ebp + 0x10); /* 0x30009FCE: mov ecx, dword ptr [ebp + 0x10] */
   4051     PUSH32(esp, eax); /* 0x30009FD1: push eax */
   4052     MEM32(ebp + (-0x4)) = 0; /* 0x30009FD2: mov dword ptr [ebp - 4], 0 */
   4053     RECOMP_ICALL(0x300080D0u); /* 0x30009FD9: call 0x300080d0 */ /* not lifted */
   4054     RECOMP_FLAGS_IN();
   4055     ecx = ebp + (-0x84); /* 0x30009FDE: lea ecx, [ebp - 0x84] */
   4056     MEM32(ebp + (-0x4)) = ebx; /* 0x30009FE4: mov dword ptr [ebp - 4], ebx */
   4057     RECOMP_ICALL(0x30007AB0u); /* 0x30009FE7: call 0x30007ab0 */ /* not lifted */
   4058     RECOMP_FLAGS_IN();
   4059     eax = MEM32(ebp + (-0x1C)); /* 0x30009FEC: mov eax, dword ptr [ebp - 0x1c] */
   4060     PUSH32(esp, esi); /* 0x30009FEF: push esi */
   4061     PUSH32(esp, eax); /* 0x30009FF0: push eax */
   4062     PUSH32(esp, 0x3001F000u); /* 0x30009FF1: push 0x3001f000 */
   4063     ecx = ebp + (-0x70); /* 0x30009FF6: lea ecx, [ebp - 0x70] */
   4064     RECOMP_ICALL(0x30007A10u); /* 0x30009FF9: call 0x30007a10 */ /* not lifted */
   4065     RECOMP_FLAGS_IN();
   4066     ecx = MEM32(ebp + 0xC); /* 0x30009FFE: mov ecx, dword ptr [ebp + 0xc] */
   4067     PUSH32(esp, eax); /* 0x3000A001: push eax */
   4068     MEM32(ebp + (-0x4)) = 1; /* 0x3000A002: mov dword ptr [ebp - 4], 1 */
   4069     RECOMP_ICALL(0x300080D0u); /* 0x3000A009: call 0x300080d0 */ /* not lifted */
   4070     RECOMP_FLAGS_IN();
   4071     ecx = ebp + (-0x70); /* 0x3000A00E: lea ecx, [ebp - 0x70] */
   4072     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A011: mov dword ptr [ebp - 4], ebx */
   4073     RECOMP_ICALL(0x30007AB0u); /* 0x3000A014: call 0x30007ab0 */ /* not lifted */
   4074     RECOMP_FLAGS_IN();
   4075     eax = edi; /* 0x3000A019: mov eax, edi */
   4076     edi = POP32_VAL(esp); /* 0x3000A01B: pop edi */
   4077     esi = POP32_VAL(esp); /* 0x3000A01C: pop esi */
   4078     ebx = POP32_VAL(esp); /* 0x3000A01D: pop ebx */
   4079     ecx = MEM32(ebp + (-0xC)); /* 0x3000A01E: mov ecx, dword ptr [ebp - 0xc] */
   4080     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A021: mov dword ptr fs:[0], ecx */
   4081     esp = ebp; /* 0x3000A028: mov esp, ebp */
   4082     ebp = POP32_VAL(esp); /* 0x3000A02A: pop ebp */
   4083     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A02B: ret 0xc */
   4084 L_3000A02E:
   4085     ecx = MEM32(ebp + 0x8); /* 0x3000A02E: mov ecx, dword ptr [ebp + 8] */
   4086     PUSH32(esp, ecx); /* 0x3000A031: push ecx */
   4087     ecx = MEM32(ebp + 0x10); /* 0x3000A032: mov ecx, dword ptr [ebp + 0x10] */
   4088     RECOMP_ICALL(0x300080D0u); /* 0x3000A035: call 0x300080d0 */ /* not lifted */
   4089     RECOMP_FLAGS_IN();
   4090     eax = edi; /* 0x3000A03A: mov eax, edi */
   4091     edi = POP32_VAL(esp); /* 0x3000A03C: pop edi */
   4092     esi = POP32_VAL(esp); /* 0x3000A03D: pop esi */
   4093     ebx = POP32_VAL(esp); /* 0x3000A03E: pop ebx */
   4094     ecx = MEM32(ebp + (-0xC)); /* 0x3000A03F: mov ecx, dword ptr [ebp - 0xc] */
   4095     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A042: mov dword ptr fs:[0], ecx */
   4096     esp = ebp; /* 0x3000A049: mov esp, ebp */
   4097     ebp = POP32_VAL(esp); /* 0x3000A04B: pop ebp */
   4098     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A04C: ret 0xc */
   4099 L_3000A04F:
   4100     edx = MEM32(ebp + 0x8); /* 0x3000A04F: mov edx, dword ptr [ebp + 8] */
   4101     ecx = MEM32(ebp + 0xC); /* 0x3000A052: mov ecx, dword ptr [ebp + 0xc] */
   4102     PUSH32(esp, edx); /* 0x3000A055: push edx */
   4103     RECOMP_ICALL(0x300080D0u); /* 0x3000A056: call 0x300080d0 */ /* not lifted */
   4104     RECOMP_FLAGS_IN();
   4105 L_3000A05B:
   4106     eax = edi; /* 0x3000A05B: mov eax, edi */
   4107     edi = POP32_VAL(esp); /* 0x3000A05D: pop edi */
   4108     esi = POP32_VAL(esp); /* 0x3000A05E: pop esi */
   4109     ebx = POP32_VAL(esp); /* 0x3000A05F: pop ebx */
   4110     ecx = MEM32(ebp + (-0xC)); /* 0x3000A060: mov ecx, dword ptr [ebp - 0xc] */
   4111     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A063: mov dword ptr fs:[0], ecx */
   4112     esp = ebp; /* 0x3000A06A: mov esp, ebp */
   4113     ebp = POP32_VAL(esp); /* 0x3000A06C: pop ebp */
   4114     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A06D: ret 0xc */
   4115     RECOMP_REGS_OUT();
   4116 }
   4117 
   4118 void sub_3000A090(void) {
   4119     int _fpu_cmp = 0;
   4120     uint32_t _cf = 0;
   4121     int _df = 1;
   4122     uint32_t _flag_k = FK_NONE;
   4123     uint32_t _flag_a = 0, _flag_b = 0;
   4124     uint32_t _itail_tgt = 0;
   4125     RECOMP_REGS_LOCALS
   4126     RECOMP_ENTER(0x3000A090u);
   4127 
   4128 L_3000A090:
   4129     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A090: ret  */
   4130     RECOMP_REGS_OUT();
   4131 }
   4132 
   4133 void sub_3000A0A0(void) {
   4134     int _fpu_cmp = 0;
   4135     uint32_t _cf = 0;
   4136     int _df = 1;
   4137     uint32_t _flag_k = FK_NONE;
   4138     uint32_t _flag_a = 0, _flag_b = 0;
   4139     uint32_t _itail_tgt = 0;
   4140     RECOMP_REGS_LOCALS
   4141     RECOMP_ENTER(0x3000A0A0u);
   4142 
   4143 L_3000A0A0:
   4144     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A0A0: ret  */
   4145     RECOMP_REGS_OUT();
   4146 }
   4147 
   4148 void sub_3000A0B0(void) {
   4149     int _fpu_cmp = 0;
   4150     uint32_t _cf = 0;
   4151     int _df = 1;
   4152     uint32_t _flag_k = FK_NONE;
   4153     uint32_t _flag_a = 0, _flag_b = 0;
   4154     uint32_t _itail_tgt = 0;
   4155     RECOMP_REGS_LOCALS
   4156     RECOMP_ENTER(0x3000A0B0u);
   4157 
   4158 L_3000A0B0:
   4159     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A0B0: ret  */
   4160     RECOMP_REGS_OUT();
   4161 }
   4162 
   4163 void sub_3000A0C0(void) {
   4164     int _fpu_cmp = 0;
   4165     uint32_t _cf = 0;
   4166     int _df = 1;
   4167     uint32_t _flag_k = FK_NONE;
   4168     uint32_t _flag_a = 0, _flag_b = 0;
   4169     uint32_t _itail_tgt = 0;
   4170     RECOMP_REGS_LOCALS
   4171     RECOMP_ENTER(0x3000A0C0u);
   4172 
   4173 L_3000A0C0:
   4174     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A0C0: ret  */
   4175     RECOMP_REGS_OUT();
   4176 }
   4177 
   4178 void sub_3000A0D0(void) {
   4179     int _fpu_cmp = 0;
   4180     uint32_t _cf = 0;
   4181     int _df = 1;
   4182     uint32_t _flag_k = FK_NONE;
   4183     uint32_t _flag_a = 0, _flag_b = 0;
   4184     uint32_t _itail_tgt = 0;
   4185     RECOMP_REGS_LOCALS
   4186     RECOMP_ENTER(0x3000A0D0u);
   4187 
   4188 L_3000A0D0:
   4189     PUSH32(esp, ebp); /* 0x3000A0D0: push ebp */
   4190     ebp = esp; /* 0x3000A0D1: mov ebp, esp */
   4191     eax = MEM32(ebp + 0x8); /* 0x3000A0D3: mov eax, dword ptr [ebp + 8] */
   4192     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x3000A0D6: fld dword ptr [eax + 4] */
   4193     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x3000A0D9: fmul dword ptr [ecx + 4] */
   4194     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x3000A0DC: fld dword ptr [eax + 8] */
   4195     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x3000A0DF: fmul dword ptr [ecx + 8] */
   4196     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000A0E2: faddp st(1) */
   4197     fp_push(*(float*)&MEM32(eax)); /* 0x3000A0E4: fld dword ptr [eax] */
   4198     eax = MEM32(ebp + 0xC); /* 0x3000A0E6: mov eax, dword ptr [ebp + 0xc] */
   4199     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x3000A0E9: fmul dword ptr [ecx] */
   4200     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000A0EB: faddp st(1) */
   4201     _st[0] = (double)*(float*)ADDR(ecx + 0xC) - _st[0]; /* 0x3000A0ED: fsubr dword ptr [ecx + 0xc] */
   4202     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x3000A0F0: fld dword ptr [eax + 4] */
   4203     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x3000A0F3: fmul dword ptr [ecx + 4] */
   4204     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x3000A0F6: fld dword ptr [eax + 8] */
   4205     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x3000A0F9: fmul dword ptr [ecx + 8] */
   4206     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000A0FC: faddp st(1) */
   4207     fp_push(*(float*)&MEM32(eax)); /* 0x3000A0FE: fld dword ptr [eax] */
   4208     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x3000A100: fmul dword ptr [ecx] */
   4209     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000A102: faddp st(1) */
   4210     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x3000A104: fdivp st(1) */
   4211     ebp = POP32_VAL(esp); /* 0x3000A106: pop ebp */
   4212     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3000A107: ret 8 */
   4213     RECOMP_REGS_OUT();
   4214 }
   4215 
   4216 void sub_3000A110(void) {
   4217     int _fpu_cmp = 0;
   4218     uint32_t _cf = 0;
   4219     int _df = 1;
   4220     uint32_t _flag_k = FK_NONE;
   4221     uint32_t _flag_a = 0, _flag_b = 0;
   4222     uint32_t _itail_tgt = 0;
   4223     RECOMP_REGS_LOCALS
   4224     RECOMP_ENTER(0x3000A110u);
   4225 
   4226 L_3000A110:
   4227     PUSH32(esp, ebp); /* 0x3000A110: push ebp */
   4228     ebp = esp; /* 0x3000A111: mov ebp, esp */
   4229     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4231     esp = esp - 0xCu; /* 0x3000A113: sub esp, 0xc */
   4232     _flag_k = FK_CMP;
   4233     eax = MEM32(ebp + 0xC); /* 0x3000A116: mov eax, dword ptr [ebp + 0xc] */
   4234     edx = MEM32(eax); /* 0x3000A119: mov edx, dword ptr [eax] */
   4235     MEM32(ebp + (-0xC)) = edx; /* 0x3000A11B: mov dword ptr [ebp - 0xc], edx */
   4236     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000A11E: fld dword ptr [ebp - 0xc] */
   4237     edx = MEM32(eax + 0x4); /* 0x3000A121: mov edx, dword ptr [eax + 4] */
   4238     eax = MEM32(eax + 0x8); /* 0x3000A124: mov eax, dword ptr [eax + 8] */
   4239     PUSH32(esp, esi); /* 0x3000A127: push esi */
   4240     esi = MEM32(ebp + 0x10); /* 0x3000A128: mov esi, dword ptr [ebp + 0x10] */
   4241     PUSH32(esp, edi); /* 0x3000A12B: push edi */
   4242     edi = MEM32(ebp + 0x8); /* 0x3000A12C: mov edi, dword ptr [ebp + 8] */
   4243     _st[0] -= (double)*(float*)ADDR(edi); /* 0x3000A12F: fsub dword ptr [edi] */
   4244     MEM32(ebp + (-0x8)) = edx; /* 0x3000A131: mov dword ptr [ebp - 8], edx */
   4245     MEM32(ebp + (-0x4)) = eax; /* 0x3000A134: mov dword ptr [ebp - 4], eax */
   4246     edx = esi; /* 0x3000A137: mov edx, esi */
   4247     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3000A139: fstp dword ptr [ebp - 0xc] */
   4248     eax = MEM32(ebp + (-0xC)); /* 0x3000A13C: mov eax, dword ptr [ebp - 0xc] */
   4249     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3000A13F: fld dword ptr [ebp - 8] */
   4250     _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3000A142: fsub dword ptr [edi + 4] */
   4251     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3000A145: fstp dword ptr [ebp - 8] */
   4252     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3000A148: fld dword ptr [ebp - 4] */
   4253     _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x3000A14B: fsub dword ptr [edi + 8] */
   4254     MEM32(edx) = eax; /* 0x3000A14E: mov dword ptr [edx], eax */
   4255     eax = MEM32(ebp + (-0x8)); /* 0x3000A150: mov eax, dword ptr [ebp - 8] */
   4256     MEM32(edx + 0x4) = eax; /* 0x3000A153: mov dword ptr [edx + 4], eax */
   4257     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3000A156: fstp dword ptr [ebp - 4] */
   4258     eax = MEM32(ebp + (-0x4)); /* 0x3000A159: mov eax, dword ptr [ebp - 4] */
   4259     MEM32(edx + 0x8) = eax; /* 0x3000A15C: mov dword ptr [edx + 8], eax */
   4260     edx = ebp + (-0xC); /* 0x3000A15F: lea edx, [ebp - 0xc] */
   4261     PUSH32(esp, edx); /* 0x3000A162: push edx */
   4262     PUSH32(esp, edi); /* 0x3000A163: push edi */
   4263     RECOMP_ICALL(0x3000A0D0u); /* 0x3000A164: call 0x3000a0d0 */ /* not lifted */
   4264     RECOMP_FLAGS_IN();
   4265     fp_push(_st[0]); /* 0x3000A169: fld st(0) */
   4266     _st[0] *= (double)*(float*)ADDR(esi); /* 0x3000A16B: fmul dword ptr [esi] */
   4267     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3000A16D: fst dword ptr [ebp + 0xc] */
   4268     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3000A170: fstp dword ptr [esi] */
   4269     fp_push(_st[0]); /* 0x3000A172: fld st(0) */
   4270     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x3000A174: fmul dword ptr [esi + 4] */
   4271     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3000A177: fst dword ptr [ebp + 8] */
   4272     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x3000A17A: fstp dword ptr [esi + 4] */
   4273     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x3000A17D: fmul dword ptr [esi + 8] */
   4274     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x8) = _v; } /* 0x3000A180: fst dword ptr [esi + 8] */
   4275     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3000A183: fld dword ptr [ebp + 0xc] */
   4276     _st[0] += (double)*(float*)ADDR(edi); /* 0x3000A186: fadd dword ptr [edi] */
   4277     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3000A188: fstp dword ptr [esi] */
   4278     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000A18A: fld dword ptr [ebp + 8] */
   4279     _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x3000A18D: fadd dword ptr [edi + 4] */
   4280     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x3000A190: fstp dword ptr [esi + 4] */
   4281     _st[0] += (double)*(float*)ADDR(edi + 0x8); /* 0x3000A193: fadd dword ptr [edi + 8] */
   4282     edi = POP32_VAL(esp); /* 0x3000A196: pop edi */
   4283     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3000A197: fstp dword ptr [esi + 8] */
   4284     esi = POP32_VAL(esp); /* 0x3000A19A: pop esi */
   4285     esp = ebp; /* 0x3000A19B: mov esp, ebp */
   4286     ebp = POP32_VAL(esp); /* 0x3000A19D: pop ebp */
   4287     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000A19E: ret 0xc */
   4288     RECOMP_REGS_OUT();
   4289 }
   4290 
   4291 void sub_3000A1B0(void) {
   4292     int _fpu_cmp = 0;
   4293     uint32_t _cf = 0;
   4294     int _df = 1;
   4295     uint32_t _flag_k = FK_NONE;
   4296     uint32_t _flag_a = 0, _flag_b = 0;
   4297     uint32_t _itail_tgt = 0;
   4298     RECOMP_REGS_LOCALS
   4299     RECOMP_ENTER(0x3000A1B0u);
   4300 
   4301 L_3000A1B0:
   4302     RECOMP_ICALL(0x3000A1C0u); /* 0x3000A1B0: call 0x3000a1c0 */ /* not lifted */
   4303     RECOMP_FLAGS_IN();
   4304     goto L_3000A1D0; /* 0x3000A1B5: jmp 0x3000a1d0 */
   4305 L_3000A1D0:
   4306     PUSH32(esp, 0x3000A1E0u); /* 0x3000A1D0: push 0x3000a1e0 */
   4307     RECOMP_ICALL(0x300180ECu); /* 0x3000A1D5: call 0x300180ec */ /* not lifted */
   4308     RECOMP_FLAGS_IN();
   4309     ecx = POP32_VAL(esp); /* 0x3000A1DA: pop ecx */
   4310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A1DB: ret  */
   4311     RECOMP_REGS_OUT();
   4312 }
   4313 
   4314 void sub_3000A1C0(void) {
   4315     int _fpu_cmp = 0;
   4316     uint32_t _cf = 0;
   4317     int _df = 1;
   4318     uint32_t _flag_k = FK_NONE;
   4319     uint32_t _flag_a = 0, _flag_b = 0;
   4320     uint32_t _itail_tgt = 0;
   4321     RECOMP_REGS_LOCALS
   4322     RECOMP_ENTER(0x3000A1C0u);
   4323 
   4324 L_3000A1C0:
   4325     ecx = 0x3001FC0Du; /* 0x3000A1C0: mov ecx, 0x3001fc0d */
   4326 L_3000A1C5:
   4327     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
   4328     { RECOMP_REGS_OUT(); return; } /* end of function */
   4329   _ljump:
   4330     switch (_itail_tgt) {
   4331       case 0x3000A1C0u: goto L_3000A1C0;
   4332       case 0x3000A1C5u: goto L_3000A1C5;
   4333       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4334     }
   4335     RECOMP_REGS_OUT();
   4336 }
   4337 
   4338 void sub_3000A1D0(void) {
   4339     int _fpu_cmp = 0;
   4340     uint32_t _cf = 0;
   4341     int _df = 1;
   4342     uint32_t _flag_k = FK_NONE;
   4343     uint32_t _flag_a = 0, _flag_b = 0;
   4344     uint32_t _itail_tgt = 0;
   4345     RECOMP_REGS_LOCALS
   4346     RECOMP_ENTER(0x3000A1D0u);
   4347 
   4348 L_3000A1D0:
   4349     PUSH32(esp, 0x3000A1E0u); /* 0x3000A1D0: push 0x3000a1e0 */
   4350     RECOMP_ICALL(0x300180ECu); /* 0x3000A1D5: call 0x300180ec */ /* not lifted */
   4351     RECOMP_FLAGS_IN();
   4352     ecx = POP32_VAL(esp); /* 0x3000A1DA: pop ecx */
   4353     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A1DB: ret  */
   4354     RECOMP_REGS_OUT();
   4355 }
   4356 
   4357 void sub_3000A1E0(void) {
   4358     int _fpu_cmp = 0;
   4359     uint32_t _cf = 0;
   4360     int _df = 1;
   4361     uint32_t _flag_k = FK_NONE;
   4362     uint32_t _flag_a = 0, _flag_b = 0;
   4363     uint32_t _itail_tgt = 0;
   4364     RECOMP_REGS_LOCALS
   4365     RECOMP_ENTER(0x3000A1E0u);
   4366 
   4367 L_3000A1E0:
   4368     ecx = 0x3001FC0Du; /* 0x3000A1E0: mov ecx, 0x3001fc0d */
   4369 L_3000A1E5:
   4370     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
   4371     { RECOMP_REGS_OUT(); return; } /* end of function */
   4372   _ljump:
   4373     switch (_itail_tgt) {
   4374       case 0x3000A1E0u: goto L_3000A1E0;
   4375       case 0x3000A1E5u: goto L_3000A1E5;
   4376       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4377     }
   4378     RECOMP_REGS_OUT();
   4379 }
   4380 
   4381 void sub_3000A1F0(void) {
   4382     int _fpu_cmp = 0;
   4383     uint32_t _cf = 0;
   4384     int _df = 1;
   4385     uint32_t _flag_k = FK_NONE;
   4386     uint32_t _flag_a = 0, _flag_b = 0;
   4387     uint32_t _itail_tgt = 0;
   4388     RECOMP_REGS_LOCALS
   4389     RECOMP_ENTER(0x3000A1F0u);
   4390 
   4391 L_3000A1F0:
   4392     RECOMP_ICALL(0x3000A200u); /* 0x3000A1F0: call 0x3000a200 */ /* not lifted */
   4393     RECOMP_FLAGS_IN();
   4394     goto L_3000A210; /* 0x3000A1F5: jmp 0x3000a210 */
   4395 L_3000A210:
   4396     PUSH32(esp, 0x3000A220u); /* 0x3000A210: push 0x3000a220 */
   4397     RECOMP_ICALL(0x300180ECu); /* 0x3000A215: call 0x300180ec */ /* not lifted */
   4398     RECOMP_FLAGS_IN();
   4399     ecx = POP32_VAL(esp); /* 0x3000A21A: pop ecx */
   4400     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A21B: ret  */
   4401     RECOMP_REGS_OUT();
   4402 }
   4403 
   4404 void sub_3000A200(void) {
   4405     int _fpu_cmp = 0;
   4406     uint32_t _cf = 0;
   4407     int _df = 1;
   4408     uint32_t _flag_k = FK_NONE;
   4409     uint32_t _flag_a = 0, _flag_b = 0;
   4410     uint32_t _itail_tgt = 0;
   4411     RECOMP_REGS_LOCALS
   4412     RECOMP_ENTER(0x3000A200u);
   4413 
   4414 L_3000A200:
   4415     ecx = 0x3001FC0Cu; /* 0x3000A200: mov ecx, 0x3001fc0c */
   4416 L_3000A205:
   4417     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
   4418     { RECOMP_REGS_OUT(); return; } /* end of function */
   4419   _ljump:
   4420     switch (_itail_tgt) {
   4421       case 0x3000A200u: goto L_3000A200;
   4422       case 0x3000A205u: goto L_3000A205;
   4423       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4424     }
   4425     RECOMP_REGS_OUT();
   4426 }
   4427 
   4428 void sub_3000A210(void) {
   4429     int _fpu_cmp = 0;
   4430     uint32_t _cf = 0;
   4431     int _df = 1;
   4432     uint32_t _flag_k = FK_NONE;
   4433     uint32_t _flag_a = 0, _flag_b = 0;
   4434     uint32_t _itail_tgt = 0;
   4435     RECOMP_REGS_LOCALS
   4436     RECOMP_ENTER(0x3000A210u);
   4437 
   4438 L_3000A210:
   4439     PUSH32(esp, 0x3000A220u); /* 0x3000A210: push 0x3000a220 */
   4440     RECOMP_ICALL(0x300180ECu); /* 0x3000A215: call 0x300180ec */ /* not lifted */
   4441     RECOMP_FLAGS_IN();
   4442     ecx = POP32_VAL(esp); /* 0x3000A21A: pop ecx */
   4443     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A21B: ret  */
   4444     RECOMP_REGS_OUT();
   4445 }
   4446 
   4447 void sub_3000A220(void) {
   4448     int _fpu_cmp = 0;
   4449     uint32_t _cf = 0;
   4450     int _df = 1;
   4451     uint32_t _flag_k = FK_NONE;
   4452     uint32_t _flag_a = 0, _flag_b = 0;
   4453     uint32_t _itail_tgt = 0;
   4454     RECOMP_REGS_LOCALS
   4455     RECOMP_ENTER(0x3000A220u);
   4456 
   4457 L_3000A220:
   4458     ecx = 0x3001FC0Cu; /* 0x3000A220: mov ecx, 0x3001fc0c */
   4459 L_3000A225:
   4460     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
   4461     { RECOMP_REGS_OUT(); return; } /* end of function */
   4462   _ljump:
   4463     switch (_itail_tgt) {
   4464       case 0x3000A220u: goto L_3000A220;
   4465       case 0x3000A225u: goto L_3000A225;
   4466       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4467     }
   4468     RECOMP_REGS_OUT();
   4469 }
   4470 
   4471 void sub_3000A230(void) {
   4472     int _fpu_cmp = 0;
   4473     uint32_t _cf = 0;
   4474     int _df = 1;
   4475     uint32_t _flag_k = FK_NONE;
   4476     uint32_t _flag_a = 0, _flag_b = 0;
   4477     uint32_t _itail_tgt = 0;
   4478     RECOMP_REGS_LOCALS
   4479     RECOMP_ENTER(0x3000A230u);
   4480 
   4481 L_3000A230:
   4482     RECOMP_ICALL(0x3000A240u); /* 0x3000A230: call 0x3000a240 */ /* not lifted */
   4483     RECOMP_FLAGS_IN();
   4484     goto L_3000A250; /* 0x3000A235: jmp 0x3000a250 */
   4485 L_3000A250:
   4486     PUSH32(esp, 0x3000A260u); /* 0x3000A250: push 0x3000a260 */
   4487     RECOMP_ICALL(0x300180ECu); /* 0x3000A255: call 0x300180ec */ /* not lifted */
   4488     RECOMP_FLAGS_IN();
   4489     ecx = POP32_VAL(esp); /* 0x3000A25A: pop ecx */
   4490     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A25B: ret  */
   4491     RECOMP_REGS_OUT();
   4492 }
   4493 
   4494 void sub_3000A240(void) {
   4495     int _fpu_cmp = 0;
   4496     uint32_t _cf = 0;
   4497     int _df = 1;
   4498     uint32_t _flag_k = FK_NONE;
   4499     uint32_t _flag_a = 0, _flag_b = 0;
   4500     uint32_t _itail_tgt = 0;
   4501     RECOMP_REGS_LOCALS
   4502     RECOMP_ENTER(0x3000A240u);
   4503 
   4504 L_3000A240:
   4505     ecx = 0x3001FC11u; /* 0x3000A240: mov ecx, 0x3001fc11 */
   4506 L_3000A245:
   4507     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
   4508     { RECOMP_REGS_OUT(); return; } /* end of function */
   4509   _ljump:
   4510     switch (_itail_tgt) {
   4511       case 0x3000A240u: goto L_3000A240;
   4512       case 0x3000A245u: goto L_3000A245;
   4513       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4514     }
   4515     RECOMP_REGS_OUT();
   4516 }
   4517 
   4518 void sub_3000A250(void) {
   4519     int _fpu_cmp = 0;
   4520     uint32_t _cf = 0;
   4521     int _df = 1;
   4522     uint32_t _flag_k = FK_NONE;
   4523     uint32_t _flag_a = 0, _flag_b = 0;
   4524     uint32_t _itail_tgt = 0;
   4525     RECOMP_REGS_LOCALS
   4526     RECOMP_ENTER(0x3000A250u);
   4527 
   4528 L_3000A250:
   4529     PUSH32(esp, 0x3000A260u); /* 0x3000A250: push 0x3000a260 */
   4530     RECOMP_ICALL(0x300180ECu); /* 0x3000A255: call 0x300180ec */ /* not lifted */
   4531     RECOMP_FLAGS_IN();
   4532     ecx = POP32_VAL(esp); /* 0x3000A25A: pop ecx */
   4533     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A25B: ret  */
   4534     RECOMP_REGS_OUT();
   4535 }
   4536 
   4537 void sub_3000A260(void) {
   4538     int _fpu_cmp = 0;
   4539     uint32_t _cf = 0;
   4540     int _df = 1;
   4541     uint32_t _flag_k = FK_NONE;
   4542     uint32_t _flag_a = 0, _flag_b = 0;
   4543     uint32_t _itail_tgt = 0;
   4544     RECOMP_REGS_LOCALS
   4545     RECOMP_ENTER(0x3000A260u);
   4546 
   4547 L_3000A260:
   4548     ecx = 0x3001FC11u; /* 0x3000A260: mov ecx, 0x3001fc11 */
   4549 L_3000A265:
   4550     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
   4551     { RECOMP_REGS_OUT(); return; } /* end of function */
   4552   _ljump:
   4553     switch (_itail_tgt) {
   4554       case 0x3000A260u: goto L_3000A260;
   4555       case 0x3000A265u: goto L_3000A265;
   4556       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4557     }
   4558     RECOMP_REGS_OUT();
   4559 }
   4560 
   4561 void sub_3000A270(void) {
   4562     int _fpu_cmp = 0;
   4563     uint32_t _cf = 0;
   4564     int _df = 1;
   4565     uint32_t _flag_k = FK_NONE;
   4566     uint32_t _flag_a = 0, _flag_b = 0;
   4567     uint32_t _itail_tgt = 0;
   4568     RECOMP_REGS_LOCALS
   4569     RECOMP_ENTER(0x3000A270u);
   4570 
   4571 L_3000A270:
   4572     RECOMP_ICALL(0x3000A280u); /* 0x3000A270: call 0x3000a280 */ /* not lifted */
   4573     RECOMP_FLAGS_IN();
   4574     goto L_3000A290; /* 0x3000A275: jmp 0x3000a290 */
   4575 L_3000A290:
   4576     PUSH32(esp, 0x3000A2A0u); /* 0x3000A290: push 0x3000a2a0 */
   4577     RECOMP_ICALL(0x300180ECu); /* 0x3000A295: call 0x300180ec */ /* not lifted */
   4578     RECOMP_FLAGS_IN();
   4579     ecx = POP32_VAL(esp); /* 0x3000A29A: pop ecx */
   4580     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A29B: ret  */
   4581     RECOMP_REGS_OUT();
   4582 }
   4583 
   4584 void sub_3000A280(void) {
   4585     int _fpu_cmp = 0;
   4586     uint32_t _cf = 0;
   4587     int _df = 1;
   4588     uint32_t _flag_k = FK_NONE;
   4589     uint32_t _flag_a = 0, _flag_b = 0;
   4590     uint32_t _itail_tgt = 0;
   4591     RECOMP_REGS_LOCALS
   4592     RECOMP_ENTER(0x3000A280u);
   4593 
   4594 L_3000A280:
   4595     ecx = 0x3001FC10u; /* 0x3000A280: mov ecx, 0x3001fc10 */
   4596 L_3000A285:
   4597     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
   4598     { RECOMP_REGS_OUT(); return; } /* end of function */
   4599   _ljump:
   4600     switch (_itail_tgt) {
   4601       case 0x3000A280u: goto L_3000A280;
   4602       case 0x3000A285u: goto L_3000A285;
   4603       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4604     }
   4605     RECOMP_REGS_OUT();
   4606 }
   4607 
   4608 void sub_3000A290(void) {
   4609     int _fpu_cmp = 0;
   4610     uint32_t _cf = 0;
   4611     int _df = 1;
   4612     uint32_t _flag_k = FK_NONE;
   4613     uint32_t _flag_a = 0, _flag_b = 0;
   4614     uint32_t _itail_tgt = 0;
   4615     RECOMP_REGS_LOCALS
   4616     RECOMP_ENTER(0x3000A290u);
   4617 
   4618 L_3000A290:
   4619     PUSH32(esp, 0x3000A2A0u); /* 0x3000A290: push 0x3000a2a0 */
   4620     RECOMP_ICALL(0x300180ECu); /* 0x3000A295: call 0x300180ec */ /* not lifted */
   4621     RECOMP_FLAGS_IN();
   4622     ecx = POP32_VAL(esp); /* 0x3000A29A: pop ecx */
   4623     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A29B: ret  */
   4624     RECOMP_REGS_OUT();
   4625 }
   4626 
   4627 void sub_3000A2A0(void) {
   4628     int _fpu_cmp = 0;
   4629     uint32_t _cf = 0;
   4630     int _df = 1;
   4631     uint32_t _flag_k = FK_NONE;
   4632     uint32_t _flag_a = 0, _flag_b = 0;
   4633     uint32_t _itail_tgt = 0;
   4634     RECOMP_REGS_LOCALS
   4635     RECOMP_ENTER(0x3000A2A0u);
   4636 
   4637 L_3000A2A0:
   4638     ecx = 0x3001FC10u; /* 0x3000A2A0: mov ecx, 0x3001fc10 */
   4639 L_3000A2A5:
   4640     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
   4641     { RECOMP_REGS_OUT(); return; } /* end of function */
   4642   _ljump:
   4643     switch (_itail_tgt) {
   4644       case 0x3000A2A0u: goto L_3000A2A0;
   4645       case 0x3000A2A5u: goto L_3000A2A5;
   4646       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4647     }
   4648     RECOMP_REGS_OUT();
   4649 }
   4650 
   4651 void sub_3000A2B0(void) {
   4652     int _fpu_cmp = 0;
   4653     uint32_t _cf = 0;
   4654     int _df = 1;
   4655     uint32_t _flag_k = FK_NONE;
   4656     uint32_t _flag_a = 0, _flag_b = 0;
   4657     uint32_t _itail_tgt = 0;
   4658     RECOMP_REGS_LOCALS
   4659     RECOMP_ENTER(0x3000A2B0u);
   4660 
   4661 L_3000A2B0:
   4662     PUSH32(esp, ebp); /* 0x3000A2B0: push ebp */
   4663     ebp = esp; /* 0x3000A2B1: mov ebp, esp */
   4664     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000A2B3: push -1 */
   4665     PUSH32(esp, 0x30018848u); /* 0x3000A2B5: push 0x30018848 */
   4666     eax = MEM32(FS_BASE + (0)); /* 0x3000A2BA: mov eax, dword ptr fs:[0] */
   4667     PUSH32(esp, eax); /* 0x3000A2C0: push eax */
   4668     MEM32(FS_BASE + (0)) = esp; /* 0x3000A2C1: mov dword ptr fs:[0], esp */
   4669     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4671     esp = esp - 8; /* 0x3000A2C8: sub esp, 8 */
   4672     _flag_k = FK_CMP;
   4673     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3000A2CB: mov al, byte ptr [ebp - 0xd] */
   4674     PUSH32(esp, esi); /* 0x3000A2CE: push esi */
   4675     esi = ecx; /* 0x3000A2CF: mov esi, ecx */
   4676     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3000A2D1: mov byte ptr [esi], al */
   4677     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4678     eax = 0; /* 0x3000A2D3: xor eax, eax */
   4679     _cf = 0;
   4680     _flag_k = FK_TEST;
   4681     MEM32(ebp + (-0x14)) = esi; /* 0x3000A2D5: mov dword ptr [ebp - 0x14], esi */
   4682     MEM32(esi + 0x4) = eax; /* 0x3000A2D8: mov dword ptr [esi + 4], eax */
   4683     MEM32(esi + 0x8) = eax; /* 0x3000A2DB: mov dword ptr [esi + 8], eax */
   4684     MEM32(esi + 0xC) = eax; /* 0x3000A2DE: mov dword ptr [esi + 0xc], eax */
   4685     MEM32(esi + 0x18) = eax; /* 0x3000A2E1: mov dword ptr [esi + 0x18], eax */
   4686     MEM32(esi + 0x1C) = eax; /* 0x3000A2E4: mov dword ptr [esi + 0x1c], eax */
   4687     MEM32(esi + 0x20) = eax; /* 0x3000A2E7: mov dword ptr [esi + 0x20], eax */
   4688     MEM32(ebp + (-0x4)) = eax; /* 0x3000A2EA: mov dword ptr [ebp - 4], eax */
   4689     MEM32(esi + 0x24) = eax; /* 0x3000A2ED: mov dword ptr [esi + 0x24], eax */
   4690     MEM32(esi + 0x28) = eax; /* 0x3000A2F0: mov dword ptr [esi + 0x28], eax */
   4691     MEM32(esi + 0x2C) = eax; /* 0x3000A2F3: mov dword ptr [esi + 0x2c], eax */
   4692     RECOMP_ICALL(0x3000A920u); /* 0x3000A2F6: call 0x3000a920 */ /* not lifted */
   4693     RECOMP_FLAGS_IN();
   4694     ecx = MEM32(ebp + (-0xC)); /* 0x3000A2FB: mov ecx, dword ptr [ebp - 0xc] */
   4695     eax = esi; /* 0x3000A2FE: mov eax, esi */
   4696     esi = POP32_VAL(esp); /* 0x3000A300: pop esi */
   4697     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A301: mov dword ptr fs:[0], ecx */
   4698     esp = ebp; /* 0x3000A308: mov esp, ebp */
   4699     ebp = POP32_VAL(esp); /* 0x3000A30A: pop ebp */
   4700     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A30B: ret  */
   4701     RECOMP_REGS_OUT();
   4702 }
   4703 
   4704 void sub_3000A310(void) {
   4705     int _fpu_cmp = 0;
   4706     uint32_t _cf = 0;
   4707     int _df = 1;
   4708     uint32_t _flag_k = FK_NONE;
   4709     uint32_t _flag_a = 0, _flag_b = 0;
   4710     uint32_t _itail_tgt = 0;
   4711     RECOMP_REGS_LOCALS
   4712     RECOMP_ENTER(0x3000A310u);
   4713 
   4714 L_3000A310:
   4715     PUSH32(esp, ebp); /* 0x3000A310: push ebp */
   4716     ebp = esp; /* 0x3000A311: mov ebp, esp */
   4717     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000A313: push -1 */
   4718     PUSH32(esp, 0x30018868u); /* 0x3000A315: push 0x30018868 */
   4719     eax = MEM32(FS_BASE + (0)); /* 0x3000A31A: mov eax, dword ptr fs:[0] */
   4720     PUSH32(esp, eax); /* 0x3000A320: push eax */
   4721     MEM32(FS_BASE + (0)) = esp; /* 0x3000A321: mov dword ptr fs:[0], esp */
   4722     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4724     esp = esp - 8; /* 0x3000A328: sub esp, 8 */
   4725     _flag_k = FK_CMP;
   4726     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3000A32B: mov al, byte ptr [ebp + 0xb] */
   4727     PUSH32(esp, ebx); /* 0x3000A32E: push ebx */
   4728     PUSH32(esp, esi); /* 0x3000A32F: push esi */
   4729     esi = ecx; /* 0x3000A330: mov esi, ecx */
   4730     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3000A332: mov byte ptr [esi], al */
   4731     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4732     eax = 0; /* 0x3000A334: xor eax, eax */
   4733     _cf = 0;
   4734     _flag_k = FK_TEST;
   4735     PUSH32(esp, edi); /* 0x3000A336: push edi */
   4736     MEM32(ebp + (-0x14)) = esi; /* 0x3000A337: mov dword ptr [ebp - 0x14], esi */
   4737     MEM32(esi + 0x4) = eax; /* 0x3000A33A: mov dword ptr [esi + 4], eax */
   4738     MEM32(esi + 0x8) = eax; /* 0x3000A33D: mov dword ptr [esi + 8], eax */
   4739     MEM32(esi + 0xC) = eax; /* 0x3000A340: mov dword ptr [esi + 0xc], eax */
   4740     ebx = MEM32(ebp + 0x8); /* 0x3000A343: mov ebx, dword ptr [ebp + 8] */
   4741     /* cmp esi, ebx */ /* 0x3000A346: cmp esi, ebx */
   4742     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4744     _flag_k = FK_CMP;
   4745     MEM32(esi + 0x18) = eax; /* 0x3000A348: mov dword ptr [esi + 0x18], eax */
   4746     MEM32(esi + 0x1C) = eax; /* 0x3000A34B: mov dword ptr [esi + 0x1c], eax */
   4747     MEM32(esi + 0x20) = eax; /* 0x3000A34E: mov dword ptr [esi + 0x20], eax */
   4748     MEM32(ebp + (-0x4)) = eax; /* 0x3000A351: mov dword ptr [ebp - 4], eax */
   4749     MEM32(esi + 0x24) = eax; /* 0x3000A354: mov dword ptr [esi + 0x24], eax */
   4750     MEM32(esi + 0x28) = eax; /* 0x3000A357: mov dword ptr [esi + 0x28], eax */
   4751     MEM32(esi + 0x2C) = eax; /* 0x3000A35A: mov dword ptr [esi + 0x2c], eax */
   4752     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A543; /* 0x3000A35D: je 0x3000a543 */
   4753 L_3000A363:
   4754     edi = MEM32(ebx + 0x4); /* 0x3000A363: mov edi, dword ptr [ebx + 4] */
   4755     /* cmp edi, eax */ /* 0x3000A366: cmp edi, eax */
   4756     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4758     _flag_k = FK_CMP;
   4759     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A36F; /* 0x3000A368: jne 0x3000a36f */
   4760 L_3000A36A:
   4761     MEM32(ebp + (-0x10)) = eax; /* 0x3000A36A: mov dword ptr [ebp - 0x10], eax */
   4762     goto L_3000A38A; /* 0x3000A36D: jmp 0x3000a38a */
   4763 L_3000A36F:
   4764     ecx = MEM32(ebx + 0x8); /* 0x3000A36F: mov ecx, dword ptr [ebx + 8] */
   4765     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   4766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4767     ecx = ecx - edi; /* 0x3000A372: sub ecx, edi */
   4768     _flag_k = FK_CMP;
   4769     eax = 0x66666667u; /* 0x3000A374: mov eax, 0x66666667 */
   4770     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A379: imul ecx */
   4771       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4772       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4773     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A37B: sar edx, 3 */
   4774     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4775     edx = (uint32_t)((int32_t)edx >> 3u);
   4776     ecx = edx; /* 0x3000A37E: mov ecx, edx */
   4777     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A380: shr ecx, 0x1f */
   4778     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4779     ecx = ecx >> 31u; /* 0x3000A380: shr ecx, 0x1f */
   4780     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4782     edx = edx + ecx; /* 0x3000A383: add edx, ecx */
   4783     _flag_k = FK_ADD;
   4784     MEM32(ebp + (-0x10)) = edx; /* 0x3000A385: mov dword ptr [ebp - 0x10], edx */
   4785     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4786     eax = 0; /* 0x3000A388: xor eax, eax */
   4787     _cf = 0;
   4788     _flag_k = FK_TEST;
   4789 L_3000A38A:
   4790     ecx = MEM32(esi + 0x4); /* 0x3000A38A: mov ecx, dword ptr [esi + 4] */
   4791     /* cmp ecx, eax */ /* 0x3000A38D: cmp ecx, eax */
   4792     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4794     _flag_k = FK_CMP;
   4795     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A395; /* 0x3000A38F: jne 0x3000a395 */
   4796 L_3000A391:
   4797     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4798     edx = 0; /* 0x3000A391: xor edx, edx */
   4799     _cf = 0;
   4800     _flag_k = FK_TEST;
   4801     goto L_3000A3AB; /* 0x3000A393: jmp 0x3000a3ab */
   4802 L_3000A395:
   4803     edx = MEM32(esi + 0x8); /* 0x3000A395: mov edx, dword ptr [esi + 8] */
   4804     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4806     edx = edx - ecx; /* 0x3000A398: sub edx, ecx */
   4807     _flag_k = FK_CMP;
   4808     eax = 0x66666667u; /* 0x3000A39A: mov eax, 0x66666667 */
   4809     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A39F: imul edx */
   4810       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4811       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4812     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A3A1: sar edx, 3 */
   4813     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4814     edx = (uint32_t)((int32_t)edx >> 3u);
   4815     eax = edx; /* 0x3000A3A4: mov eax, edx */
   4816     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A3A6: shr eax, 0x1f */
   4817     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4818     eax = eax >> 31u; /* 0x3000A3A6: shr eax, 0x1f */
   4819     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4820     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4821     edx = edx + eax; /* 0x3000A3A9: add edx, eax */
   4822     _flag_k = FK_ADD;
   4823 L_3000A3AB:
   4824     /* cmp MEM32(ebp + (-0x10)), edx */ /* 0x3000A3AB: cmp dword ptr [ebp - 0x10], edx */
   4825     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edx);
   4826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4827     _flag_k = FK_CMP;
   4828     if (CMP_A(_flag_a, _flag_b)) goto L_3000A42C; /* 0x3000A3AE: ja 0x3000a42c */
   4829 L_3000A3B0:
   4830     eax = MEM32(ebx + 0x8); /* 0x3000A3B0: mov eax, dword ptr [ebx + 8] */
   4831     /* cmp edi, eax */ /* 0x3000A3B3: cmp edi, eax */
   4832     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4834     _flag_k = FK_CMP;
   4835     MEM32(ebp + (-0x10)) = eax; /* 0x3000A3B5: mov dword ptr [ebp - 0x10], eax */
   4836     ebx = ecx; /* 0x3000A3B8: mov ebx, ecx */
   4837     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A3D1; /* 0x3000A3BA: je 0x3000a3d1 */
   4838 L_3000A3BC:
   4839     PUSH32(esp, edi); /* 0x3000A3BC: push edi */
   4840     ecx = ebx; /* 0x3000A3BD: mov ecx, ebx */
   4841     RECOMP_ICALL(0x300080D0u); /* 0x3000A3BF: call 0x300080d0 */ /* not lifted */
   4842     RECOMP_FLAGS_IN();
   4843     eax = MEM32(ebp + (-0x10)); /* 0x3000A3C4: mov eax, dword ptr [ebp - 0x10] */
   4844     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   4845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4846     edi = edi + 0x14u; /* 0x3000A3C7: add edi, 0x14 */
   4847     _flag_k = FK_ADD;
   4848     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   4849     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4850     ebx = ebx + 0x14u; /* 0x3000A3CA: add ebx, 0x14 */
   4851     _flag_k = FK_ADD;
   4852     /* cmp edi, eax */ /* 0x3000A3CD: cmp edi, eax */
   4853     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4855     _flag_k = FK_CMP;
   4856     RECOMP_BACKEDGE();
   4857     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A3BC; /* 0x3000A3CF: jne 0x3000a3bc */
   4858 L_3000A3D1:
   4859     edi = MEM32(esi + 0x8); /* 0x3000A3D1: mov edi, dword ptr [esi + 8] */
   4860     /* cmp ebx, edi */ /* 0x3000A3D4: cmp ebx, edi */
   4861     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   4862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4863     _flag_k = FK_CMP;
   4864     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A3E8; /* 0x3000A3D6: je 0x3000a3e8 */
   4865 L_3000A3D8:
   4866     PUSH32(esp, 0); /* 0x3000A3D8: push 0 */
   4867     ecx = ebx; /* 0x3000A3DA: mov ecx, ebx */
   4868     RECOMP_ICALL(0x30001E40u); /* 0x3000A3DC: call 0x30001e40 */ /* not lifted */
   4869     RECOMP_FLAGS_IN();
   4870     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   4871     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4872     ebx = ebx + 0x14u; /* 0x3000A3E1: add ebx, 0x14 */
   4873     _flag_k = FK_ADD;
   4874     /* cmp ebx, edi */ /* 0x3000A3E4: cmp ebx, edi */
   4875     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   4876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4877     _flag_k = FK_CMP;
   4878     RECOMP_BACKEDGE();
   4879     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A3D8; /* 0x3000A3E6: jne 0x3000a3d8 */
   4880 L_3000A3E8:
   4881     ecx = MEM32(ebp + 0x8); /* 0x3000A3E8: mov ecx, dword ptr [ebp + 8] */
   4882     eax = MEM32(ecx + 0x4); /* 0x3000A3EB: mov eax, dword ptr [ecx + 4] */
   4883     /* test eax, eax */ /* 0x3000A3EE: test eax, eax */
   4884     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4885     _cf = 0;
   4886     _flag_k = FK_TEST;
   4887     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A405; /* 0x3000A3F0: jne 0x3000a405 */
   4888 L_3000A3F2:
   4889     eax = MEM32(esi + 0x4); /* 0x3000A3F2: mov eax, dword ptr [esi + 4] */
   4890     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4891     edx = 0; /* 0x3000A3F5: xor edx, edx */
   4892     _cf = 0;
   4893     _flag_k = FK_TEST;
   4894     edx = edx + edx * 4; /* 0x3000A3F7: lea edx, [edx + edx*4] */
   4895     ecx = eax + edx * 4; /* 0x3000A3FA: lea ecx, [eax + edx*4] */
   4896     MEM32(esi + 0x8) = ecx; /* 0x3000A3FD: mov dword ptr [esi + 8], ecx */
   4897     goto L_3000A543; /* 0x3000A400: jmp 0x3000a543 */
   4898 L_3000A405:
   4899     ecx = MEM32(ecx + 0x8); /* 0x3000A405: mov ecx, dword ptr [ecx + 8] */
   4900     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4902     ecx = ecx - eax; /* 0x3000A408: sub ecx, eax */
   4903     _flag_k = FK_CMP;
   4904     eax = 0x66666667u; /* 0x3000A40A: mov eax, 0x66666667 */
   4905     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A40F: imul ecx */
   4906       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4907       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4908     eax = MEM32(esi + 0x4); /* 0x3000A411: mov eax, dword ptr [esi + 4] */
   4909     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A414: sar edx, 3 */
   4910     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4911     edx = (uint32_t)((int32_t)edx >> 3u);
   4912     ecx = edx; /* 0x3000A417: mov ecx, edx */
   4913     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A419: shr ecx, 0x1f */
   4914     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4915     ecx = ecx >> 31u; /* 0x3000A419: shr ecx, 0x1f */
   4916     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4917     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4918     edx = edx + ecx; /* 0x3000A41C: add edx, ecx */
   4919     _flag_k = FK_ADD;
   4920     edx = edx + edx * 4; /* 0x3000A41E: lea edx, [edx + edx*4] */
   4921     ecx = eax + edx * 4; /* 0x3000A421: lea ecx, [eax + edx*4] */
   4922     MEM32(esi + 0x8) = ecx; /* 0x3000A424: mov dword ptr [esi + 8], ecx */
   4923     goto L_3000A543; /* 0x3000A427: jmp 0x3000a543 */
   4924 L_3000A42C:
   4925     /* test edi, edi */ /* 0x3000A42C: test edi, edi */
   4926     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4927     _cf = 0;
   4928     _flag_k = FK_TEST;
   4929     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A435; /* 0x3000A42E: jne 0x3000a435 */
   4930 L_3000A430:
   4931     MEM32(ebp + (-0x10)) = edi; /* 0x3000A430: mov dword ptr [ebp - 0x10], edi */
   4932     goto L_3000A44E; /* 0x3000A433: jmp 0x3000a44e */
   4933 L_3000A435:
   4934     edx = MEM32(ebx + 0x8); /* 0x3000A435: mov edx, dword ptr [ebx + 8] */
   4935     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   4936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4937     edx = edx - edi; /* 0x3000A438: sub edx, edi */
   4938     _flag_k = FK_CMP;
   4939     eax = 0x66666667u; /* 0x3000A43A: mov eax, 0x66666667 */
   4940     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A43F: imul edx */
   4941       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4942       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4943     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A441: sar edx, 3 */
   4944     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4945     edx = (uint32_t)((int32_t)edx >> 3u);
   4946     eax = edx; /* 0x3000A444: mov eax, edx */
   4947     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A446: shr eax, 0x1f */
   4948     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4949     eax = eax >> 31u; /* 0x3000A446: shr eax, 0x1f */
   4950     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4951     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4952     edx = edx + eax; /* 0x3000A449: add edx, eax */
   4953     _flag_k = FK_ADD;
   4954     MEM32(ebp + (-0x10)) = edx; /* 0x3000A44B: mov dword ptr [ebp - 0x10], edx */
   4955 L_3000A44E:
   4956     /* test ecx, ecx */ /* 0x3000A44E: test ecx, ecx */
   4957     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4958     _cf = 0;
   4959     _flag_k = FK_TEST;
   4960     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A456; /* 0x3000A450: jne 0x3000a456 */
   4961 L_3000A452:
   4962     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4963     edx = 0; /* 0x3000A452: xor edx, edx */
   4964     _cf = 0;
   4965     _flag_k = FK_TEST;
   4966     goto L_3000A46C; /* 0x3000A454: jmp 0x3000a46c */
   4967 L_3000A456:
   4968     edx = MEM32(esi + 0xC); /* 0x3000A456: mov edx, dword ptr [esi + 0xc] */
   4969     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4971     edx = edx - ecx; /* 0x3000A459: sub edx, ecx */
   4972     _flag_k = FK_CMP;
   4973     eax = 0x66666667u; /* 0x3000A45B: mov eax, 0x66666667 */
   4974     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A460: imul edx */
   4975       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4976       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4977     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A462: sar edx, 3 */
   4978     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4979     edx = (uint32_t)((int32_t)edx >> 3u);
   4980     eax = edx; /* 0x3000A465: mov eax, edx */
   4981     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A467: shr eax, 0x1f */
   4982     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4983     eax = eax >> 31u; /* 0x3000A467: shr eax, 0x1f */
   4984     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4985     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4986     edx = edx + eax; /* 0x3000A46A: add edx, eax */
   4987     _flag_k = FK_ADD;
   4988 L_3000A46C:
   4989     /* cmp MEM32(ebp + (-0x10)), edx */ /* 0x3000A46C: cmp dword ptr [ebp - 0x10], edx */
   4990     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edx);
   4991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4992     _flag_k = FK_CMP;
   4993     if (CMP_A(_flag_a, _flag_b)) goto L_3000A4F6; /* 0x3000A46F: ja 0x3000a4f6 */
   4994 L_3000A475:
   4995     /* test ecx, ecx */ /* 0x3000A475: test ecx, ecx */
   4996     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4997     _cf = 0;
   4998     _flag_k = FK_TEST;
   4999     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A47D; /* 0x3000A477: jne 0x3000a47d */
   5000 L_3000A479:
   5001     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5002     edx = 0; /* 0x3000A479: xor edx, edx */
   5003     _cf = 0;
   5004     _flag_k = FK_TEST;
   5005     goto L_3000A493; /* 0x3000A47B: jmp 0x3000a493 */
   5006 L_3000A47D:
   5007     edx = MEM32(esi + 0x8); /* 0x3000A47D: mov edx, dword ptr [esi + 8] */
   5008     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5009     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5010     edx = edx - ecx; /* 0x3000A480: sub edx, ecx */
   5011     _flag_k = FK_CMP;
   5012     eax = 0x66666667u; /* 0x3000A482: mov eax, 0x66666667 */
   5013     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A487: imul edx */
   5014       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5015       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5016     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A489: sar edx, 3 */
   5017     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5018     edx = (uint32_t)((int32_t)edx >> 3u);
   5019     eax = edx; /* 0x3000A48C: mov eax, edx */
   5020     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A48E: shr eax, 0x1f */
   5021     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5022     eax = eax >> 31u; /* 0x3000A48E: shr eax, 0x1f */
   5023     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5024     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5025     edx = edx + eax; /* 0x3000A491: add edx, eax */
   5026     _flag_k = FK_ADD;
   5027 L_3000A493:
   5028     edx = edx + edx * 4; /* 0x3000A493: lea edx, [edx + edx*4] */
   5029     ebx = edi + edx * 4; /* 0x3000A496: lea ebx, [edi + edx*4] */
   5030     /* cmp edi, ebx */ /* 0x3000A499: cmp edi, ebx */
   5031     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5033     _flag_k = FK_CMP;
   5034     MEM32(ebp + (-0x10)) = ecx; /* 0x3000A49B: mov dword ptr [ebp - 0x10], ecx */
   5035     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A4B9; /* 0x3000A49E: je 0x3000a4b9 */
   5036 L_3000A4A0:
   5037     ecx = MEM32(ebp + (-0x10)); /* 0x3000A4A0: mov ecx, dword ptr [ebp - 0x10] */
   5038     PUSH32(esp, edi); /* 0x3000A4A3: push edi */
   5039     RECOMP_ICALL(0x300080D0u); /* 0x3000A4A4: call 0x300080d0 */ /* not lifted */
   5040     RECOMP_FLAGS_IN();
   5041     edx = MEM32(ebp + (-0x10)); /* 0x3000A4A9: mov edx, dword ptr [ebp - 0x10] */
   5042     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
   5043     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5044     edx = edx + 0x14u; /* 0x3000A4AC: add edx, 0x14 */
   5045     _flag_k = FK_ADD;
   5046     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   5047     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5048     edi = edi + 0x14u; /* 0x3000A4AF: add edi, 0x14 */
   5049     _flag_k = FK_ADD;
   5050     /* cmp edi, ebx */ /* 0x3000A4B2: cmp edi, ebx */
   5051     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5052     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5053     _flag_k = FK_CMP;
   5054     MEM32(ebp + (-0x10)) = edx; /* 0x3000A4B4: mov dword ptr [ebp - 0x10], edx */
   5055     RECOMP_BACKEDGE();
   5056     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A4A0; /* 0x3000A4B7: jne 0x3000a4a0 */
   5057 L_3000A4B9:
   5058     eax = MEM32(ebp + 0x8); /* 0x3000A4B9: mov eax, dword ptr [ebp + 8] */
   5059     eax = MEM32(eax + 0x8); /* 0x3000A4BC: mov eax, dword ptr [eax + 8] */
   5060     /* cmp ebx, eax */ /* 0x3000A4BF: cmp ebx, eax */
   5061     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   5062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5063     _flag_k = FK_CMP;
   5064     edi = MEM32(esi + 0x8); /* 0x3000A4C1: mov edi, dword ptr [esi + 8] */
   5065     MEM32(ebp + (-0x10)) = eax; /* 0x3000A4C4: mov dword ptr [ebp - 0x10], eax */
   5066     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A4E0; /* 0x3000A4C7: je 0x3000a4e0 */
   5067 L_3000A4C9:
   5068     PUSH32(esp, ebx); /* 0x3000A4C9: push ebx */
   5069     PUSH32(esp, edi); /* 0x3000A4CA: push edi */
   5070     RECOMP_ICALL(0x30001DF0u); /* 0x3000A4CB: call 0x30001df0 */ /* not lifted */
   5071     RECOMP_FLAGS_IN();
   5072     eax = MEM32(ebp + (-0x10)); /* 0x3000A4D0: mov eax, dword ptr [ebp - 0x10] */
   5073     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   5074     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5075     ebx = ebx + 0x14u; /* 0x3000A4D3: add ebx, 0x14 */
   5076     _flag_k = FK_ADD;
   5077     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5078     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5079     esp = esp + 8; /* 0x3000A4D6: add esp, 8 */
   5080     _flag_k = FK_ADD;
   5081     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   5082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5083     edi = edi + 0x14u; /* 0x3000A4D9: add edi, 0x14 */
   5084     _flag_k = FK_ADD;
   5085     /* cmp ebx, eax */ /* 0x3000A4DC: cmp ebx, eax */
   5086     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   5087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5088     _flag_k = FK_CMP;
   5089     RECOMP_BACKEDGE();
   5090     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A4C9; /* 0x3000A4DE: jne 0x3000a4c9 */
   5091 L_3000A4E0:
   5092     ecx = MEM32(ebp + 0x8); /* 0x3000A4E0: mov ecx, dword ptr [ebp + 8] */
   5093     RECOMP_ICALL(0x30001CB0u); /* 0x3000A4E3: call 0x30001cb0 */ /* not lifted */
   5094     RECOMP_FLAGS_IN();
   5095     edx = MEM32(esi + 0x4); /* 0x3000A4E8: mov edx, dword ptr [esi + 4] */
   5096     ecx = eax + eax * 4; /* 0x3000A4EB: lea ecx, [eax + eax*4] */
   5097     eax = edx + ecx * 4; /* 0x3000A4EE: lea eax, [edx + ecx*4] */
   5098     MEM32(esi + 0x8) = eax; /* 0x3000A4F1: mov dword ptr [esi + 8], eax */
   5099     goto L_3000A543; /* 0x3000A4F4: jmp 0x3000a543 */
   5100 L_3000A4F6:
   5101     edx = MEM32(esi + 0x8); /* 0x3000A4F6: mov edx, dword ptr [esi + 8] */
   5102     PUSH32(esp, edx); /* 0x3000A4F9: push edx */
   5103     PUSH32(esp, ecx); /* 0x3000A4FA: push ecx */
   5104     ecx = esi; /* 0x3000A4FB: mov ecx, esi */
   5105     RECOMP_ICALL(0x300017A0u); /* 0x3000A4FD: call 0x300017a0 */ /* not lifted */
   5106     RECOMP_FLAGS_IN();
   5107     eax = MEM32(esi + 0x4); /* 0x3000A502: mov eax, dword ptr [esi + 4] */
   5108     PUSH32(esp, eax); /* 0x3000A505: push eax */
   5109     RECOMP_ICALL(0x30018080u); /* 0x3000A506: call 0x30018080 */ /* not lifted */
   5110     RECOMP_FLAGS_IN();
   5111     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5112     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5113     esp = esp + 4; /* 0x3000A50B: add esp, 4 */
   5114     _flag_k = FK_ADD;
   5115     ecx = ebx; /* 0x3000A50E: mov ecx, ebx */
   5116     RECOMP_ICALL(0x30001CB0u); /* 0x3000A510: call 0x30001cb0 */ /* not lifted */
   5117     RECOMP_FLAGS_IN();
   5118     /* test eax, eax */ /* 0x3000A515: test eax, eax */
   5119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5120     _cf = 0;
   5121     _flag_k = FK_TEST;
   5122     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A51B; /* 0x3000A517: jge 0x3000a51b */
   5123 L_3000A519:
   5124     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5125     eax = 0; /* 0x3000A519: xor eax, eax */
   5126     _cf = 0;
   5127     _flag_k = FK_TEST;
   5128 L_3000A51B:
   5129     ecx = eax + eax * 4; /* 0x3000A51B: lea ecx, [eax + eax*4] */
   5130     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A51E: shl ecx, 2 */
   5131     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5132     ecx = ecx << 2u; /* 0x3000A51E: shl ecx, 2 */
   5133     PUSH32(esp, ecx); /* 0x3000A521: push ecx */
   5134     RECOMP_ICALL(0x300180A8u); /* 0x3000A522: call 0x300180a8 */ /* not lifted */
   5135     RECOMP_FLAGS_IN();
   5136     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5137     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5138     esp = esp + 4; /* 0x3000A527: add esp, 4 */
   5139     _flag_k = FK_ADD;
   5140     MEM32(esi + 0x4) = eax; /* 0x3000A52A: mov dword ptr [esi + 4], eax */
   5141     ecx = MEM32(ebx + 0x8); /* 0x3000A52D: mov ecx, dword ptr [ebx + 8] */
   5142     ebx = MEM32(ebx + 0x4); /* 0x3000A530: mov ebx, dword ptr [ebx + 4] */
   5143     PUSH32(esp, eax); /* 0x3000A533: push eax */
   5144     PUSH32(esp, ecx); /* 0x3000A534: push ecx */
   5145     PUSH32(esp, ebx); /* 0x3000A535: push ebx */
   5146     ecx = esi; /* 0x3000A536: mov ecx, esi */
   5147     RECOMP_ICALL(0x300017D0u); /* 0x3000A538: call 0x300017d0 */ /* not lifted */
   5148     RECOMP_FLAGS_IN();
   5149     MEM32(esi + 0x8) = eax; /* 0x3000A53D: mov dword ptr [esi + 8], eax */
   5150     MEM32(esi + 0xC) = eax; /* 0x3000A540: mov dword ptr [esi + 0xc], eax */
   5151 L_3000A543:
   5152     ecx = esi; /* 0x3000A543: mov ecx, esi */
   5153     RECOMP_ICALL(0x3000A920u); /* 0x3000A545: call 0x3000a920 */ /* not lifted */
   5154     RECOMP_FLAGS_IN();
   5155     ecx = MEM32(ebp + (-0xC)); /* 0x3000A54A: mov ecx, dword ptr [ebp - 0xc] */
   5156     edi = POP32_VAL(esp); /* 0x3000A54D: pop edi */
   5157     eax = esi; /* 0x3000A54E: mov eax, esi */
   5158     esi = POP32_VAL(esp); /* 0x3000A550: pop esi */
   5159     ebx = POP32_VAL(esp); /* 0x3000A551: pop ebx */
   5160     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A552: mov dword ptr fs:[0], ecx */
   5161     esp = ebp; /* 0x3000A559: mov esp, ebp */
   5162     ebp = POP32_VAL(esp); /* 0x3000A55B: pop ebp */
   5163     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A55C: ret 4 */
   5164     RECOMP_REGS_OUT();
   5165 }
   5166 
   5167 void sub_3000A543(void) {
   5168     int _fpu_cmp = 0;
   5169     uint32_t _cf = 0;
   5170     int _df = 1;
   5171     uint32_t _flag_k = FK_NONE;
   5172     uint32_t _flag_a = 0, _flag_b = 0;
   5173     uint32_t _itail_tgt = 0;
   5174     RECOMP_REGS_LOCALS
   5175     RECOMP_ENTER(0x3000A543u);
   5176 
   5177 L_3000A543:
   5178     ecx = esi; /* 0x3000A543: mov ecx, esi */
   5179     RECOMP_ICALL(0x3000A920u); /* 0x3000A545: call 0x3000a920 */ /* not lifted */
   5180     RECOMP_FLAGS_IN();
   5181     ecx = MEM32(ebp + (-0xC)); /* 0x3000A54A: mov ecx, dword ptr [ebp - 0xc] */
   5182     edi = POP32_VAL(esp); /* 0x3000A54D: pop edi */
   5183     eax = esi; /* 0x3000A54E: mov eax, esi */
   5184     esi = POP32_VAL(esp); /* 0x3000A550: pop esi */
   5185     ebx = POP32_VAL(esp); /* 0x3000A551: pop ebx */
   5186     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A552: mov dword ptr fs:[0], ecx */
   5187     esp = ebp; /* 0x3000A559: mov esp, ebp */
   5188     ebp = POP32_VAL(esp); /* 0x3000A55B: pop ebp */
   5189     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A55C: ret 4 */
   5190     RECOMP_REGS_OUT();
   5191 }
   5192 
   5193 void sub_3000A560(void) {
   5194     int _fpu_cmp = 0;
   5195     uint32_t _cf = 0;
   5196     int _df = 1;
   5197     uint32_t _flag_k = FK_NONE;
   5198     uint32_t _flag_a = 0, _flag_b = 0;
   5199     uint32_t _itail_tgt = 0;
   5200     RECOMP_REGS_LOCALS
   5201     RECOMP_ENTER(0x3000A560u);
   5202 
   5203 L_3000A560:
   5204     PUSH32(esp, ebp); /* 0x3000A560: push ebp */
   5205     ebp = esp; /* 0x3000A561: mov ebp, esp */
   5206     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000A563: push -1 */
   5207     PUSH32(esp, 0x30018888u); /* 0x3000A565: push 0x30018888 */
   5208     eax = MEM32(FS_BASE + (0)); /* 0x3000A56A: mov eax, dword ptr fs:[0] */
   5209     PUSH32(esp, eax); /* 0x3000A570: push eax */
   5210     MEM32(FS_BASE + (0)) = esp; /* 0x3000A571: mov dword ptr fs:[0], esp */
   5211     PUSH32(esp, ecx); /* 0x3000A578: push ecx */
   5212     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3000A579: mov al, byte ptr [ebp + 0xb] */
   5213     PUSH32(esp, esi); /* 0x3000A57C: push esi */
   5214     esi = ecx; /* 0x3000A57D: mov esi, ecx */
   5215     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3000A57F: mov byte ptr [esi], al */
   5216     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5217     eax = 0; /* 0x3000A581: xor eax, eax */
   5218     _cf = 0;
   5219     _flag_k = FK_TEST;
   5220     MEM32(ebp + (-0x10)) = esi; /* 0x3000A583: mov dword ptr [ebp - 0x10], esi */
   5221     MEM32(esi + 0x4) = eax; /* 0x3000A586: mov dword ptr [esi + 4], eax */
   5222     MEM32(esi + 0x8) = eax; /* 0x3000A589: mov dword ptr [esi + 8], eax */
   5223     MEM32(esi + 0xC) = eax; /* 0x3000A58C: mov dword ptr [esi + 0xc], eax */
   5224     ecx = MEM32(ebp + 0x8); /* 0x3000A58F: mov ecx, dword ptr [ebp + 8] */
   5225     MEM32(esi + 0x18) = eax; /* 0x3000A592: mov dword ptr [esi + 0x18], eax */
   5226     MEM32(esi + 0x1C) = eax; /* 0x3000A595: mov dword ptr [esi + 0x1c], eax */
   5227     MEM32(esi + 0x20) = eax; /* 0x3000A598: mov dword ptr [esi + 0x20], eax */
   5228     PUSH32(esp, ecx); /* 0x3000A59B: push ecx */
   5229     ecx = esi; /* 0x3000A59C: mov ecx, esi */
   5230     MEM32(ebp + (-0x4)) = eax; /* 0x3000A59E: mov dword ptr [ebp - 4], eax */
   5231     MEM32(esi + 0x24) = eax; /* 0x3000A5A1: mov dword ptr [esi + 0x24], eax */
   5232     MEM32(esi + 0x28) = eax; /* 0x3000A5A4: mov dword ptr [esi + 0x28], eax */
   5233     MEM32(esi + 0x2C) = eax; /* 0x3000A5A7: mov dword ptr [esi + 0x2c], eax */
   5234     RECOMP_ICALL(0x3000A650u); /* 0x3000A5AA: call 0x3000a650 */ /* not lifted */
   5235     RECOMP_FLAGS_IN();
   5236     ecx = esi; /* 0x3000A5AF: mov ecx, esi */
   5237     RECOMP_ICALL(0x3000A920u); /* 0x3000A5B1: call 0x3000a920 */ /* not lifted */
   5238     RECOMP_FLAGS_IN();
   5239     ecx = MEM32(ebp + (-0xC)); /* 0x3000A5B6: mov ecx, dword ptr [ebp - 0xc] */
   5240     eax = esi; /* 0x3000A5B9: mov eax, esi */
   5241     esi = POP32_VAL(esp); /* 0x3000A5BB: pop esi */
   5242     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A5BC: mov dword ptr fs:[0], ecx */
   5243     esp = ebp; /* 0x3000A5C3: mov esp, ebp */
   5244     ebp = POP32_VAL(esp); /* 0x3000A5C5: pop ebp */
   5245     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A5C6: ret 4 */
   5246     RECOMP_REGS_OUT();
   5247 }
   5248 
   5249 void sub_3000A5D0(void) {
   5250     int _fpu_cmp = 0;
   5251     uint32_t _cf = 0;
   5252     int _df = 1;
   5253     uint32_t _flag_k = FK_NONE;
   5254     uint32_t _flag_a = 0, _flag_b = 0;
   5255     uint32_t _itail_tgt = 0;
   5256     RECOMP_REGS_LOCALS
   5257     RECOMP_ENTER(0x3000A5D0u);
   5258 
   5259 L_3000A5D0:
   5260     PUSH32(esp, ebp); /* 0x3000A5D0: push ebp */
   5261     ebp = esp; /* 0x3000A5D1: mov ebp, esp */
   5262     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000A5D3: push -1 */
   5263     PUSH32(esp, 0x300188A8u); /* 0x3000A5D5: push 0x300188a8 */
   5264     eax = MEM32(FS_BASE + (0)); /* 0x3000A5DA: mov eax, dword ptr fs:[0] */
   5265     PUSH32(esp, eax); /* 0x3000A5E0: push eax */
   5266     MEM32(FS_BASE + (0)) = esp; /* 0x3000A5E1: mov dword ptr fs:[0], esp */
   5267     PUSH32(esp, ecx); /* 0x3000A5E8: push ecx */
   5268     PUSH32(esp, ebx); /* 0x3000A5E9: push ebx */
   5269     PUSH32(esp, esi); /* 0x3000A5EA: push esi */
   5270     PUSH32(esp, edi); /* 0x3000A5EB: push edi */
   5271     edi = ecx; /* 0x3000A5EC: mov edi, ecx */
   5272     MEM32(ebp + (-0x10)) = edi; /* 0x3000A5EE: mov dword ptr [ebp - 0x10], edi */
   5273     SET_LO8(eax, MEM8(edi + 0x14)); /* 0x3000A5F1: mov al, byte ptr [edi + 0x14] */
   5274     /* test LO8(eax), LO8(eax) */ /* 0x3000A5F4: test al, al */
   5275     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5276     _cf = 0;
   5277     _flag_k = FK_NARROW(FK_TEST, 24);
   5278     MEM32(ebp + (-0x4)) = 0; /* 0x3000A5F6: mov dword ptr [ebp - 4], 0 */
   5279     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A604; /* 0x3000A5FD: je 0x3000a604 */
   5280 L_3000A5FF:
   5281     RECOMP_ICALL(0x3000A880u); /* 0x3000A5FF: call 0x3000a880 */ /* not lifted */
   5282     RECOMP_FLAGS_IN();
   5283 L_3000A604:
   5284     ebx = MEM32(edi + 0x8); /* 0x3000A604: mov ebx, dword ptr [edi + 8] */
   5285     esi = MEM32(edi + 0x4); /* 0x3000A607: mov esi, dword ptr [edi + 4] */
   5286     /* cmp esi, ebx */ /* 0x3000A60A: cmp esi, ebx */
   5287     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5289     _flag_k = FK_CMP;
   5290     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000A60C: mov dword ptr [ebp - 4], 0xffffffff */
   5291     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A623; /* 0x3000A613: je 0x3000a623 */
   5292 L_3000A615:
   5293     ecx = esi; /* 0x3000A615: mov ecx, esi */
   5294     RECOMP_ICALL(0x30007AB0u); /* 0x3000A617: call 0x30007ab0 */ /* not lifted */
   5295     RECOMP_FLAGS_IN();
   5296     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   5297     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5298     esi = esi + 0x14u; /* 0x3000A61C: add esi, 0x14 */
   5299     _flag_k = FK_ADD;
   5300     /* cmp esi, ebx */ /* 0x3000A61F: cmp esi, ebx */
   5301     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5303     _flag_k = FK_CMP;
   5304     RECOMP_BACKEDGE();
   5305     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A615; /* 0x3000A621: jne 0x3000a615 */
   5306 L_3000A623:
   5307     eax = MEM32(edi + 0x4); /* 0x3000A623: mov eax, dword ptr [edi + 4] */
   5308     PUSH32(esp, eax); /* 0x3000A626: push eax */
   5309     RECOMP_ICALL(0x30018080u); /* 0x3000A627: call 0x30018080 */ /* not lifted */
   5310     RECOMP_FLAGS_IN();
   5311     ecx = MEM32(ebp + (-0xC)); /* 0x3000A62C: mov ecx, dword ptr [ebp - 0xc] */
   5312     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5313     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5314     esp = esp + 4; /* 0x3000A62F: add esp, 4 */
   5315     _flag_k = FK_ADD;
   5316     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5317     eax = 0; /* 0x3000A632: xor eax, eax */
   5318     _cf = 0;
   5319     _flag_k = FK_TEST;
   5320     MEM32(edi + 0x4) = eax; /* 0x3000A634: mov dword ptr [edi + 4], eax */
   5321     MEM32(edi + 0x8) = eax; /* 0x3000A637: mov dword ptr [edi + 8], eax */
   5322     MEM32(edi + 0xC) = eax; /* 0x3000A63A: mov dword ptr [edi + 0xc], eax */
   5323     edi = POP32_VAL(esp); /* 0x3000A63D: pop edi */
   5324     esi = POP32_VAL(esp); /* 0x3000A63E: pop esi */
   5325     ebx = POP32_VAL(esp); /* 0x3000A63F: pop ebx */
   5326     MEM32(FS_BASE + (0)) = ecx; /* 0x3000A640: mov dword ptr fs:[0], ecx */
   5327     esp = ebp; /* 0x3000A647: mov esp, ebp */
   5328     ebp = POP32_VAL(esp); /* 0x3000A649: pop ebp */
   5329     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A64A: ret  */
   5330     RECOMP_REGS_OUT();
   5331 }
   5332 
   5333 void sub_3000A650(void) {
   5334     int _fpu_cmp = 0;
   5335     uint32_t _cf = 0;
   5336     int _df = 1;
   5337     uint32_t _flag_k = FK_NONE;
   5338     uint32_t _flag_a = 0, _flag_b = 0;
   5339     uint32_t _itail_tgt = 0;
   5340     RECOMP_REGS_LOCALS
   5341     RECOMP_ENTER(0x3000A650u);
   5342 
   5343 L_3000A650:
   5344     PUSH32(esp, ebp); /* 0x3000A650: push ebp */
   5345     ebp = esp; /* 0x3000A651: mov ebp, esp */
   5346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5348     esp = esp - 0x10u; /* 0x3000A653: sub esp, 0x10 */
   5349     _flag_k = FK_CMP;
   5350     PUSH32(esp, esi); /* 0x3000A656: push esi */
   5351     PUSH32(esp, edi); /* 0x3000A657: push edi */
   5352     edi = MEM32(ebp + 0x8); /* 0x3000A658: mov edi, dword ptr [ebp + 8] */
   5353     esi = ecx; /* 0x3000A65B: mov esi, ecx */
   5354     /* cmp esi, edi */ /* 0x3000A65D: cmp esi, edi */
   5355     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   5356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5357     _flag_k = FK_CMP;
   5358     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A66B; /* 0x3000A65F: jne 0x3000a66b */
   5359 L_3000A661:
   5360     edi = POP32_VAL(esp); /* 0x3000A661: pop edi */
   5361     eax = esi; /* 0x3000A662: mov eax, esi */
   5362     esi = POP32_VAL(esp); /* 0x3000A664: pop esi */
   5363     esp = ebp; /* 0x3000A665: mov esp, ebp */
   5364     ebp = POP32_VAL(esp); /* 0x3000A667: pop ebp */
   5365     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A668: ret 4 */
   5366 L_3000A66B:
   5367     PUSH32(esp, ebx); /* 0x3000A66B: push ebx */
   5368     ecx = esi; /* 0x3000A66C: mov ecx, esi */
   5369     RECOMP_ICALL(0x3000A920u); /* 0x3000A66E: call 0x3000a920 */ /* not lifted */
   5370     RECOMP_FLAGS_IN();
   5371     ecx = esi; /* 0x3000A673: mov ecx, esi */
   5372     RECOMP_ICALL(0x3000A880u); /* 0x3000A675: call 0x3000a880 */ /* not lifted */
   5373     RECOMP_FLAGS_IN();
   5374     ebx = MEM32(edi + 0x4); /* 0x3000A67A: mov ebx, dword ptr [edi + 4] */
   5375     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3000A67D: cmp ebx, dword ptr [edi + 8] */
   5376     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5378     _flag_k = FK_CMP;
   5379     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A680: mov dword ptr [ebp - 4], ebx */
   5380     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A874; /* 0x3000A683: je 0x3000a874 */
   5381 L_3000A689:
   5382     ecx = MEM32(esi + 0x8); /* 0x3000A689: mov ecx, dword ptr [esi + 8] */
   5383     edx = MEM32(esi + 0xC); /* 0x3000A68C: mov edx, dword ptr [esi + 0xc] */
   5384     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5386     edx = edx - ecx; /* 0x3000A68F: sub edx, ecx */
   5387     _flag_k = FK_CMP;
   5388     eax = 0x66666667u; /* 0x3000A691: mov eax, 0x66666667 */
   5389     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A696: imul edx */
   5390       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5391       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5392     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A698: sar edx, 3 */
   5393     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5394     edx = (uint32_t)((int32_t)edx >> 3u);
   5395     eax = edx; /* 0x3000A69B: mov eax, edx */
   5396     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A69D: shr eax, 0x1f */
   5397     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5398     eax = eax >> 31u; /* 0x3000A69D: shr eax, 0x1f */
   5399     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5400     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5401     edx = edx + eax; /* 0x3000A6A0: add edx, eax */
   5402     _flag_k = FK_ADD;
   5403     /* cmp edx, 1 */ /* 0x3000A6A2: cmp edx, 1 */
   5404     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5406     _flag_k = FK_CMP;
   5407     edi = ecx; /* 0x3000A6A5: mov edi, ecx */
   5408     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A7BC; /* 0x3000A6A7: jae 0x3000a7bc */
   5409 L_3000A6AD:
   5410     ebx = MEM32(esi + 0x4); /* 0x3000A6AD: mov ebx, dword ptr [esi + 4] */
   5411     /* test ebx, ebx */ /* 0x3000A6B0: test ebx, ebx */
   5412     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5413     _cf = 0;
   5414     _flag_k = FK_TEST;
   5415     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A6D1; /* 0x3000A6B2: je 0x3000a6d1 */
   5416 L_3000A6B4:
   5417     edx = ecx; /* 0x3000A6B4: mov edx, ecx */
   5418     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   5419     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5420     edx = edx - ebx; /* 0x3000A6B6: sub edx, ebx */
   5421     _flag_k = FK_CMP;
   5422     eax = 0x66666667u; /* 0x3000A6B8: mov eax, 0x66666667 */
   5423     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A6BD: imul edx */
   5424       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5425       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5426     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6BF: sar edx, 3 */
   5427     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5428     edx = (uint32_t)((int32_t)edx >> 3u);
   5429     eax = edx; /* 0x3000A6C2: mov eax, edx */
   5430     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A6C4: shr eax, 0x1f */
   5431     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5432     eax = eax >> 31u; /* 0x3000A6C4: shr eax, 0x1f */
   5433     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5435     edx = edx + eax; /* 0x3000A6C7: add edx, eax */
   5436     _flag_k = FK_ADD;
   5437     /* cmp edx, 1 */ /* 0x3000A6C9: cmp edx, 1 */
   5438     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5440     _flag_k = FK_CMP;
   5441     MEM32(ebp + (-0x8)) = edx; /* 0x3000A6CC: mov dword ptr [ebp - 8], edx */
   5442     if (CMP_A(_flag_a, _flag_b)) goto L_3000A6D8; /* 0x3000A6CF: ja 0x3000a6d8 */
   5443 L_3000A6D1:
   5444     MEM32(ebp + (-0x8)) = 1; /* 0x3000A6D1: mov dword ptr [ebp - 8], 1 */
   5445 L_3000A6D8:
   5446     /* test ebx, ebx */ /* 0x3000A6D8: test ebx, ebx */
   5447     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5448     _cf = 0;
   5449     _flag_k = FK_TEST;
   5450     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A6E0; /* 0x3000A6DA: jne 0x3000a6e0 */
   5451 L_3000A6DC:
   5452     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5453     edx = 0; /* 0x3000A6DC: xor edx, edx */
   5454     _cf = 0;
   5455     _flag_k = FK_TEST;
   5456     goto L_3000A6F3; /* 0x3000A6DE: jmp 0x3000a6f3 */
   5457 L_3000A6E0:
   5458     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   5459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5460     ecx = ecx - ebx; /* 0x3000A6E0: sub ecx, ebx */
   5461     _flag_k = FK_CMP;
   5462     eax = 0x66666667u; /* 0x3000A6E2: mov eax, 0x66666667 */
   5463     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A6E7: imul ecx */
   5464       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5465       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5466     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6E9: sar edx, 3 */
   5467     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5468     edx = (uint32_t)((int32_t)edx >> 3u);
   5469     ecx = edx; /* 0x3000A6EC: mov ecx, edx */
   5470     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A6EE: shr ecx, 0x1f */
   5471     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5472     ecx = ecx >> 31u; /* 0x3000A6EE: shr ecx, 0x1f */
   5473     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5474     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5475     edx = edx + ecx; /* 0x3000A6F1: add edx, ecx */
   5476     _flag_k = FK_ADD;
   5477 L_3000A6F3:
   5478     eax = MEM32(ebp + (-0x8)); /* 0x3000A6F3: mov eax, dword ptr [ebp - 8] */
   5479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5481     eax = eax + edx; /* 0x3000A6F6: add eax, edx */
   5482     _flag_k = FK_ADD;
   5483     /* test eax, eax */ /* 0x3000A6F8: test eax, eax */
   5484     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5485     _cf = 0;
   5486     _flag_k = FK_TEST;
   5487     MEM32(ebp + (-0xC)) = eax; /* 0x3000A6FA: mov dword ptr [ebp - 0xc], eax */
   5488     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A701; /* 0x3000A6FD: jge 0x3000a701 */
   5489 L_3000A6FF:
   5490     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5491     eax = 0; /* 0x3000A6FF: xor eax, eax */
   5492     _cf = 0;
   5493     _flag_k = FK_TEST;
   5494 L_3000A701:
   5495     ecx = eax + eax * 4; /* 0x3000A701: lea ecx, [eax + eax*4] */
   5496     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A704: shl ecx, 2 */
   5497     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5498     ecx = ecx << 2u; /* 0x3000A704: shl ecx, 2 */
   5499     PUSH32(esp, ecx); /* 0x3000A707: push ecx */
   5500     RECOMP_ICALL(0x300180A8u); /* 0x3000A708: call 0x300180a8 */ /* not lifted */
   5501     RECOMP_FLAGS_IN();
   5502     MEM32(ebp + (-0x10)) = eax; /* 0x3000A70D: mov dword ptr [ebp - 0x10], eax */
   5503     ebx = eax; /* 0x3000A710: mov ebx, eax */
   5504     eax = MEM32(esi + 0x4); /* 0x3000A712: mov eax, dword ptr [esi + 4] */
   5505     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5506     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5507     esp = esp + 4; /* 0x3000A715: add esp, 4 */
   5508     _flag_k = FK_ADD;
   5509     /* cmp eax, edi */ /* 0x3000A718: cmp eax, edi */
   5510     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5512     _flag_k = FK_CMP;
   5513     MEM32(ebp + (-0x8)) = eax; /* 0x3000A71A: mov dword ptr [ebp - 8], eax */
   5514     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A73E; /* 0x3000A71D: je 0x3000a73e */
   5515 L_3000A71F:
   5516     goto L_3000A724; /* 0x3000A71F: jmp 0x3000a724 */
   5517 L_3000A721:
   5518     eax = MEM32(ebp + (-0x8)); /* 0x3000A721: mov eax, dword ptr [ebp - 8] */
   5519 L_3000A724:
   5520     PUSH32(esp, eax); /* 0x3000A724: push eax */
   5521     PUSH32(esp, ebx); /* 0x3000A725: push ebx */
   5522     RECOMP_ICALL(0x30001DF0u); /* 0x3000A726: call 0x30001df0 */ /* not lifted */
   5523     RECOMP_FLAGS_IN();
   5524     eax = MEM32(ebp + (-0x8)); /* 0x3000A72B: mov eax, dword ptr [ebp - 8] */
   5525     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   5526     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5527     eax = eax + 0x14u; /* 0x3000A72E: add eax, 0x14 */
   5528     _flag_k = FK_ADD;
   5529     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5530     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5531     esp = esp + 8; /* 0x3000A731: add esp, 8 */
   5532     _flag_k = FK_ADD;
   5533     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   5534     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5535     ebx = ebx + 0x14u; /* 0x3000A734: add ebx, 0x14 */
   5536     _flag_k = FK_ADD;
   5537     /* cmp eax, edi */ /* 0x3000A737: cmp eax, edi */
   5538     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5539     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5540     _flag_k = FK_CMP;
   5541     MEM32(ebp + (-0x8)) = eax; /* 0x3000A739: mov dword ptr [ebp - 8], eax */
   5542     RECOMP_BACKEDGE();
   5543     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A721; /* 0x3000A73C: jne 0x3000a721 */
   5544 L_3000A73E:
   5545     edx = MEM32(ebp + (-0x4)); /* 0x3000A73E: mov edx, dword ptr [ebp - 4] */
   5546     PUSH32(esp, edx); /* 0x3000A741: push edx */
   5547     PUSH32(esp, 1); /* 0x3000A742: push 1 */
   5548     PUSH32(esp, ebx); /* 0x3000A744: push ebx */
   5549     ecx = esi; /* 0x3000A745: mov ecx, esi */
   5550     RECOMP_ICALL(0x30001860u); /* 0x3000A747: call 0x30001860 */ /* not lifted */
   5551     RECOMP_FLAGS_IN();
   5552     eax = MEM32(esi + 0x8); /* 0x3000A74C: mov eax, dword ptr [esi + 8] */
   5553     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   5554     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5555     ebx = ebx + 0x14u; /* 0x3000A74F: add ebx, 0x14 */
   5556     _flag_k = FK_ADD;
   5557     PUSH32(esp, ebx); /* 0x3000A752: push ebx */
   5558     PUSH32(esp, eax); /* 0x3000A753: push eax */
   5559     PUSH32(esp, edi); /* 0x3000A754: push edi */
   5560     ecx = esi; /* 0x3000A755: mov ecx, esi */
   5561     RECOMP_ICALL(0x300017D0u); /* 0x3000A757: call 0x300017d0 */ /* not lifted */
   5562     RECOMP_FLAGS_IN();
   5563     ecx = MEM32(esi + 0x8); /* 0x3000A75C: mov ecx, dword ptr [esi + 8] */
   5564     edx = MEM32(esi + 0x4); /* 0x3000A75F: mov edx, dword ptr [esi + 4] */
   5565     PUSH32(esp, ecx); /* 0x3000A762: push ecx */
   5566     PUSH32(esp, edx); /* 0x3000A763: push edx */
   5567     ecx = esi; /* 0x3000A764: mov ecx, esi */
   5568     RECOMP_ICALL(0x300017A0u); /* 0x3000A766: call 0x300017a0 */ /* not lifted */
   5569     RECOMP_FLAGS_IN();
   5570     eax = MEM32(esi + 0x4); /* 0x3000A76B: mov eax, dword ptr [esi + 4] */
   5571     PUSH32(esp, eax); /* 0x3000A76E: push eax */
   5572     RECOMP_ICALL(0x30018080u); /* 0x3000A76F: call 0x30018080 */ /* not lifted */
   5573     RECOMP_FLAGS_IN();
   5574     eax = MEM32(ebp + (-0xC)); /* 0x3000A774: mov eax, dword ptr [ebp - 0xc] */
   5575     edi = MEM32(ebp + (-0x10)); /* 0x3000A777: mov edi, dword ptr [ebp - 0x10] */
   5576     ecx = eax + eax * 4; /* 0x3000A77A: lea ecx, [eax + eax*4] */
   5577     eax = MEM32(esi + 0x4); /* 0x3000A77D: mov eax, dword ptr [esi + 4] */
   5578     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5579     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5580     esp = esp + 4; /* 0x3000A780: add esp, 4 */
   5581     _flag_k = FK_ADD;
   5582     /* test eax, eax */ /* 0x3000A783: test eax, eax */
   5583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5584     _cf = 0;
   5585     _flag_k = FK_TEST;
   5586     edx = edi + ecx * 4; /* 0x3000A785: lea edx, [edi + ecx*4] */
   5587     MEM32(esi + 0xC) = edx; /* 0x3000A788: mov dword ptr [esi + 0xc], edx */
   5588     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A791; /* 0x3000A78B: jne 0x3000a791 */
   5589 L_3000A78D:
   5590     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5591     edx = 0; /* 0x3000A78D: xor edx, edx */
   5592     _cf = 0;
   5593     _flag_k = FK_TEST;
   5594     goto L_3000A7A7; /* 0x3000A78F: jmp 0x3000a7a7 */
   5595 L_3000A791:
   5596     ecx = MEM32(esi + 0x8); /* 0x3000A791: mov ecx, dword ptr [esi + 8] */
   5597     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5599     ecx = ecx - eax; /* 0x3000A794: sub ecx, eax */
   5600     _flag_k = FK_CMP;
   5601     eax = 0x66666667u; /* 0x3000A796: mov eax, 0x66666667 */
   5602     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A79B: imul ecx */
   5603       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5604       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5605     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A79D: sar edx, 3 */
   5606     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5607     edx = (uint32_t)((int32_t)edx >> 3u);
   5608     eax = edx; /* 0x3000A7A0: mov eax, edx */
   5609     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7A2: shr eax, 0x1f */
   5610     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5611     eax = eax >> 31u; /* 0x3000A7A2: shr eax, 0x1f */
   5612     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5613     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5614     edx = edx + eax; /* 0x3000A7A5: add edx, eax */
   5615     _flag_k = FK_ADD;
   5616 L_3000A7A7:
   5617     ebx = MEM32(ebp + (-0x4)); /* 0x3000A7A7: mov ebx, dword ptr [ebp - 4] */
   5618     ecx = edx + edx * 4 + 0x5; /* 0x3000A7AA: lea ecx, [edx + edx*4 + 5] */
   5619     edx = edi + ecx * 4; /* 0x3000A7AE: lea edx, [edi + ecx*4] */
   5620     MEM32(esi + 0x8) = edx; /* 0x3000A7B1: mov dword ptr [esi + 8], edx */
   5621     MEM32(esi + 0x4) = edi; /* 0x3000A7B4: mov dword ptr [esi + 4], edi */
   5622     goto L_3000A860; /* 0x3000A7B7: jmp 0x3000a860 */
   5623 L_3000A7BC:
   5624     edx = ecx; /* 0x3000A7BC: mov edx, ecx */
   5625     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   5626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5627     edx = edx - edi; /* 0x3000A7BE: sub edx, edi */
   5628     _flag_k = FK_CMP;
   5629     eax = 0x66666667u; /* 0x3000A7C0: mov eax, 0x66666667 */
   5630     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A7C5: imul edx */
   5631       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5632       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5633     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7C7: sar edx, 3 */
   5634     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5635     edx = (uint32_t)((int32_t)edx >> 3u);
   5636     eax = edx; /* 0x3000A7CA: mov eax, edx */
   5637     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7CC: shr eax, 0x1f */
   5638     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5639     eax = eax >> 31u; /* 0x3000A7CC: shr eax, 0x1f */
   5640     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5641     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5642     edx = edx + eax; /* 0x3000A7CF: add edx, eax */
   5643     _flag_k = FK_ADD;
   5644     /* cmp edx, 1 */ /* 0x3000A7D1: cmp edx, 1 */
   5645     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5647     _flag_k = FK_CMP;
   5648     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A82E; /* 0x3000A7D4: jae 0x3000a82e */
   5649 L_3000A7D6:
   5650     edx = edi + 0x14; /* 0x3000A7D6: lea edx, [edi + 0x14] */
   5651     PUSH32(esp, edx); /* 0x3000A7D9: push edx */
   5652     PUSH32(esp, ecx); /* 0x3000A7DA: push ecx */
   5653     PUSH32(esp, edi); /* 0x3000A7DB: push edi */
   5654     ecx = esi; /* 0x3000A7DC: mov ecx, esi */
   5655     RECOMP_ICALL(0x300017D0u); /* 0x3000A7DE: call 0x300017d0 */ /* not lifted */
   5656     RECOMP_FLAGS_IN();
   5657     ebx = MEM32(esi + 0x8); /* 0x3000A7E3: mov ebx, dword ptr [esi + 8] */
   5658     eax = MEM32(ebp + (-0x4)); /* 0x3000A7E6: mov eax, dword ptr [ebp - 4] */
   5659     PUSH32(esp, eax); /* 0x3000A7E9: push eax */
   5660     ecx = ebx; /* 0x3000A7EA: mov ecx, ebx */
   5661     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   5662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5663     ecx = ecx - edi; /* 0x3000A7EC: sub ecx, edi */
   5664     _flag_k = FK_CMP;
   5665     eax = 0x66666667u; /* 0x3000A7EE: mov eax, 0x66666667 */
   5666     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A7F3: imul ecx */
   5667       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5668       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5669     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7F5: sar edx, 3 */
   5670     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5671     edx = (uint32_t)((int32_t)edx >> 3u);
   5672     ecx = edx; /* 0x3000A7F8: mov ecx, edx */
   5673     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A7FA: shr ecx, 0x1f */
   5674     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5675     ecx = ecx >> 31u; /* 0x3000A7FA: shr ecx, 0x1f */
   5676     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5677     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5678     edx = edx + ecx; /* 0x3000A7FD: add edx, ecx */
   5679     _flag_k = FK_ADD;
   5680     eax = 1; /* 0x3000A7FF: mov eax, 1 */
   5681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5683     eax = eax - edx; /* 0x3000A804: sub eax, edx */
   5684     _flag_k = FK_CMP;
   5685     PUSH32(esp, eax); /* 0x3000A806: push eax */
   5686     PUSH32(esp, ebx); /* 0x3000A807: push ebx */
   5687     ecx = esi; /* 0x3000A808: mov ecx, esi */
   5688     RECOMP_ICALL(0x30001860u); /* 0x3000A80A: call 0x30001860 */ /* not lifted */
   5689     RECOMP_FLAGS_IN();
   5690     ecx = MEM32(ebp + (-0x4)); /* 0x3000A80F: mov ecx, dword ptr [ebp - 4] */
   5691     edx = MEM32(esi + 0x8); /* 0x3000A812: mov edx, dword ptr [esi + 8] */
   5692     PUSH32(esp, ecx); /* 0x3000A815: push ecx */
   5693     PUSH32(esp, edx); /* 0x3000A816: push edx */
   5694     PUSH32(esp, edi); /* 0x3000A817: push edi */
   5695     RECOMP_ICALL(0x30001DC0u); /* 0x3000A818: call 0x30001dc0 */ /* not lifted */
   5696     RECOMP_FLAGS_IN();
   5697     eax = MEM32(esi + 0x8); /* 0x3000A81D: mov eax, dword ptr [esi + 8] */
   5698     ebx = MEM32(ebp + (-0x4)); /* 0x3000A820: mov ebx, dword ptr [ebp - 4] */
   5699     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5700     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5701     esp = esp + 0xCu; /* 0x3000A823: add esp, 0xc */
   5702     _flag_k = FK_ADD;
   5703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   5704     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5705     eax = eax + 0x14u; /* 0x3000A826: add eax, 0x14 */
   5706     _flag_k = FK_ADD;
   5707     MEM32(esi + 0x8) = eax; /* 0x3000A829: mov dword ptr [esi + 8], eax */
   5708     goto L_3000A860; /* 0x3000A82C: jmp 0x3000a860 */
   5709 L_3000A82E:
   5710     PUSH32(esp, ecx); /* 0x3000A82E: push ecx */
   5711     PUSH32(esp, ecx); /* 0x3000A82F: push ecx */
   5712     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   5713     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5714     ecx = ecx + 0xFFFFFFECu; /* 0x3000A830: add ecx, -0x14 */
   5715     _flag_k = FK_ADD;
   5716     PUSH32(esp, ecx); /* 0x3000A833: push ecx */
   5717     ecx = esi; /* 0x3000A834: mov ecx, esi */
   5718     RECOMP_ICALL(0x300017D0u); /* 0x3000A836: call 0x300017d0 */ /* not lifted */
   5719     RECOMP_FLAGS_IN();
   5720     eax = MEM32(esi + 0x8); /* 0x3000A83B: mov eax, dword ptr [esi + 8] */
   5721     PUSH32(esp, eax); /* 0x3000A83E: push eax */
   5722     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
   5723     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5724     eax = eax + 0xFFFFFFECu; /* 0x3000A83F: add eax, -0x14 */
   5725     _flag_k = FK_ADD;
   5726     PUSH32(esp, eax); /* 0x3000A842: push eax */
   5727     PUSH32(esp, edi); /* 0x3000A843: push edi */
   5728     RECOMP_ICALL(0x30001D80u); /* 0x3000A844: call 0x30001d80 */ /* not lifted */
   5729     RECOMP_FLAGS_IN();
   5730     PUSH32(esp, ebx); /* 0x3000A849: push ebx */
   5731     eax = edi + 0x14; /* 0x3000A84A: lea eax, [edi + 0x14] */
   5732     PUSH32(esp, eax); /* 0x3000A84D: push eax */
   5733     PUSH32(esp, edi); /* 0x3000A84E: push edi */
   5734     RECOMP_ICALL(0x30001DC0u); /* 0x3000A84F: call 0x30001dc0 */ /* not lifted */
   5735     RECOMP_FLAGS_IN();
   5736     eax = MEM32(esi + 0x8); /* 0x3000A854: mov eax, dword ptr [esi + 8] */
   5737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   5738     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5739     esp = esp + 0x18u; /* 0x3000A857: add esp, 0x18 */
   5740     _flag_k = FK_ADD;
   5741     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   5742     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5743     eax = eax + 0x14u; /* 0x3000A85A: add eax, 0x14 */
   5744     _flag_k = FK_ADD;
   5745     MEM32(esi + 0x8) = eax; /* 0x3000A85D: mov dword ptr [esi + 8], eax */
   5746 L_3000A860:
   5747     ecx = MEM32(ebp + 0x8); /* 0x3000A860: mov ecx, dword ptr [ebp + 8] */
   5748     eax = MEM32(ecx + 0x8); /* 0x3000A863: mov eax, dword ptr [ecx + 8] */
   5749     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   5750     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5751     ebx = ebx + 0x14u; /* 0x3000A866: add ebx, 0x14 */
   5752     _flag_k = FK_ADD;
   5753     /* cmp ebx, eax */ /* 0x3000A869: cmp ebx, eax */
   5754     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   5755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5756     _flag_k = FK_CMP;
   5757     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A86B: mov dword ptr [ebp - 4], ebx */
   5758     RECOMP_BACKEDGE();
   5759     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A689; /* 0x3000A86E: jne 0x3000a689 */
   5760 L_3000A874:
   5761     ebx = POP32_VAL(esp); /* 0x3000A874: pop ebx */
   5762     edi = POP32_VAL(esp); /* 0x3000A875: pop edi */
   5763     eax = esi; /* 0x3000A876: mov eax, esi */
   5764     esi = POP32_VAL(esp); /* 0x3000A878: pop esi */
   5765     esp = ebp; /* 0x3000A879: mov esp, ebp */
   5766     ebp = POP32_VAL(esp); /* 0x3000A87B: pop ebp */
   5767     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A87C: ret 4 */
   5768     RECOMP_REGS_OUT();
   5769 }
   5770 
   5771 void sub_3000A689(void) {
   5772     int _fpu_cmp = 0;
   5773     uint32_t _cf = 0;
   5774     int _df = 1;
   5775     uint32_t _flag_k = FK_NONE;
   5776     uint32_t _flag_a = 0, _flag_b = 0;
   5777     uint32_t _itail_tgt = 0;
   5778     RECOMP_REGS_LOCALS
   5779     RECOMP_ENTER(0x3000A689u);
   5780 
   5781 L_3000A689:
   5782     ecx = MEM32(esi + 0x8); /* 0x3000A689: mov ecx, dword ptr [esi + 8] */
   5783     edx = MEM32(esi + 0xC); /* 0x3000A68C: mov edx, dword ptr [esi + 0xc] */
   5784     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5786     edx = edx - ecx; /* 0x3000A68F: sub edx, ecx */
   5787     _flag_k = FK_CMP;
   5788     eax = 0x66666667u; /* 0x3000A691: mov eax, 0x66666667 */
   5789     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A696: imul edx */
   5790       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5791       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5792     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A698: sar edx, 3 */
   5793     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5794     edx = (uint32_t)((int32_t)edx >> 3u);
   5795     eax = edx; /* 0x3000A69B: mov eax, edx */
   5796     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A69D: shr eax, 0x1f */
   5797     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5798     eax = eax >> 31u; /* 0x3000A69D: shr eax, 0x1f */
   5799     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5800     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5801     edx = edx + eax; /* 0x3000A6A0: add edx, eax */
   5802     _flag_k = FK_ADD;
   5803     /* cmp edx, 1 */ /* 0x3000A6A2: cmp edx, 1 */
   5804     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5806     _flag_k = FK_CMP;
   5807     edi = ecx; /* 0x3000A6A5: mov edi, ecx */
   5808     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A7BC; /* 0x3000A6A7: jae 0x3000a7bc */
   5809 L_3000A6AD:
   5810     ebx = MEM32(esi + 0x4); /* 0x3000A6AD: mov ebx, dword ptr [esi + 4] */
   5811     /* test ebx, ebx */ /* 0x3000A6B0: test ebx, ebx */
   5812     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5813     _cf = 0;
   5814     _flag_k = FK_TEST;
   5815     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A6D1; /* 0x3000A6B2: je 0x3000a6d1 */
   5816 L_3000A6B4:
   5817     edx = ecx; /* 0x3000A6B4: mov edx, ecx */
   5818     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   5819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5820     edx = edx - ebx; /* 0x3000A6B6: sub edx, ebx */
   5821     _flag_k = FK_CMP;
   5822     eax = 0x66666667u; /* 0x3000A6B8: mov eax, 0x66666667 */
   5823     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A6BD: imul edx */
   5824       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5825       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5826     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6BF: sar edx, 3 */
   5827     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5828     edx = (uint32_t)((int32_t)edx >> 3u);
   5829     eax = edx; /* 0x3000A6C2: mov eax, edx */
   5830     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A6C4: shr eax, 0x1f */
   5831     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5832     eax = eax >> 31u; /* 0x3000A6C4: shr eax, 0x1f */
   5833     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5835     edx = edx + eax; /* 0x3000A6C7: add edx, eax */
   5836     _flag_k = FK_ADD;
   5837     /* cmp edx, 1 */ /* 0x3000A6C9: cmp edx, 1 */
   5838     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5840     _flag_k = FK_CMP;
   5841     MEM32(ebp + (-0x8)) = edx; /* 0x3000A6CC: mov dword ptr [ebp - 8], edx */
   5842     if (CMP_A(_flag_a, _flag_b)) goto L_3000A6D8; /* 0x3000A6CF: ja 0x3000a6d8 */
   5843 L_3000A6D1:
   5844     MEM32(ebp + (-0x8)) = 1; /* 0x3000A6D1: mov dword ptr [ebp - 8], 1 */
   5845 L_3000A6D8:
   5846     /* test ebx, ebx */ /* 0x3000A6D8: test ebx, ebx */
   5847     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5848     _cf = 0;
   5849     _flag_k = FK_TEST;
   5850     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A6E0; /* 0x3000A6DA: jne 0x3000a6e0 */
   5851 L_3000A6DC:
   5852     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5853     edx = 0; /* 0x3000A6DC: xor edx, edx */
   5854     _cf = 0;
   5855     _flag_k = FK_TEST;
   5856     goto L_3000A6F3; /* 0x3000A6DE: jmp 0x3000a6f3 */
   5857 L_3000A6E0:
   5858     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   5859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5860     ecx = ecx - ebx; /* 0x3000A6E0: sub ecx, ebx */
   5861     _flag_k = FK_CMP;
   5862     eax = 0x66666667u; /* 0x3000A6E2: mov eax, 0x66666667 */
   5863     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A6E7: imul ecx */
   5864       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5865       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5866     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6E9: sar edx, 3 */
   5867     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5868     edx = (uint32_t)((int32_t)edx >> 3u);
   5869     ecx = edx; /* 0x3000A6EC: mov ecx, edx */
   5870     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A6EE: shr ecx, 0x1f */
   5871     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5872     ecx = ecx >> 31u; /* 0x3000A6EE: shr ecx, 0x1f */
   5873     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5875     edx = edx + ecx; /* 0x3000A6F1: add edx, ecx */
   5876     _flag_k = FK_ADD;
   5877 L_3000A6F3:
   5878     eax = MEM32(ebp + (-0x8)); /* 0x3000A6F3: mov eax, dword ptr [ebp - 8] */
   5879     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5880     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5881     eax = eax + edx; /* 0x3000A6F6: add eax, edx */
   5882     _flag_k = FK_ADD;
   5883     /* test eax, eax */ /* 0x3000A6F8: test eax, eax */
   5884     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5885     _cf = 0;
   5886     _flag_k = FK_TEST;
   5887     MEM32(ebp + (-0xC)) = eax; /* 0x3000A6FA: mov dword ptr [ebp - 0xc], eax */
   5888     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A701; /* 0x3000A6FD: jge 0x3000a701 */
   5889 L_3000A6FF:
   5890     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5891     eax = 0; /* 0x3000A6FF: xor eax, eax */
   5892     _cf = 0;
   5893     _flag_k = FK_TEST;
   5894 L_3000A701:
   5895     ecx = eax + eax * 4; /* 0x3000A701: lea ecx, [eax + eax*4] */
   5896     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A704: shl ecx, 2 */
   5897     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5898     ecx = ecx << 2u; /* 0x3000A704: shl ecx, 2 */
   5899     PUSH32(esp, ecx); /* 0x3000A707: push ecx */
   5900     RECOMP_ICALL(0x300180A8u); /* 0x3000A708: call 0x300180a8 */ /* not lifted */
   5901     RECOMP_FLAGS_IN();
   5902     MEM32(ebp + (-0x10)) = eax; /* 0x3000A70D: mov dword ptr [ebp - 0x10], eax */
   5903     ebx = eax; /* 0x3000A710: mov ebx, eax */
   5904     eax = MEM32(esi + 0x4); /* 0x3000A712: mov eax, dword ptr [esi + 4] */
   5905     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5906     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5907     esp = esp + 4; /* 0x3000A715: add esp, 4 */
   5908     _flag_k = FK_ADD;
   5909     /* cmp eax, edi */ /* 0x3000A718: cmp eax, edi */
   5910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5911     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5912     _flag_k = FK_CMP;
   5913     MEM32(ebp + (-0x8)) = eax; /* 0x3000A71A: mov dword ptr [ebp - 8], eax */
   5914     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A73E; /* 0x3000A71D: je 0x3000a73e */
   5915 L_3000A71F:
   5916     goto L_3000A724; /* 0x3000A71F: jmp 0x3000a724 */
   5917 L_3000A721:
   5918     eax = MEM32(ebp + (-0x8)); /* 0x3000A721: mov eax, dword ptr [ebp - 8] */
   5919 L_3000A724:
   5920     PUSH32(esp, eax); /* 0x3000A724: push eax */
   5921     PUSH32(esp, ebx); /* 0x3000A725: push ebx */
   5922     RECOMP_ICALL(0x30001DF0u); /* 0x3000A726: call 0x30001df0 */ /* not lifted */
   5923     RECOMP_FLAGS_IN();
   5924     eax = MEM32(ebp + (-0x8)); /* 0x3000A72B: mov eax, dword ptr [ebp - 8] */
   5925     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   5926     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5927     eax = eax + 0x14u; /* 0x3000A72E: add eax, 0x14 */
   5928     _flag_k = FK_ADD;
   5929     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5930     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5931     esp = esp + 8; /* 0x3000A731: add esp, 8 */
   5932     _flag_k = FK_ADD;
   5933     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   5934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5935     ebx = ebx + 0x14u; /* 0x3000A734: add ebx, 0x14 */
   5936     _flag_k = FK_ADD;
   5937     /* cmp eax, edi */ /* 0x3000A737: cmp eax, edi */
   5938     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5940     _flag_k = FK_CMP;
   5941     MEM32(ebp + (-0x8)) = eax; /* 0x3000A739: mov dword ptr [ebp - 8], eax */
   5942     RECOMP_BACKEDGE();
   5943     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A721; /* 0x3000A73C: jne 0x3000a721 */
   5944 L_3000A73E:
   5945     edx = MEM32(ebp + (-0x4)); /* 0x3000A73E: mov edx, dword ptr [ebp - 4] */
   5946     PUSH32(esp, edx); /* 0x3000A741: push edx */
   5947     PUSH32(esp, 1); /* 0x3000A742: push 1 */
   5948     PUSH32(esp, ebx); /* 0x3000A744: push ebx */
   5949     ecx = esi; /* 0x3000A745: mov ecx, esi */
   5950     RECOMP_ICALL(0x30001860u); /* 0x3000A747: call 0x30001860 */ /* not lifted */
   5951     RECOMP_FLAGS_IN();
   5952     eax = MEM32(esi + 0x8); /* 0x3000A74C: mov eax, dword ptr [esi + 8] */
   5953     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   5954     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5955     ebx = ebx + 0x14u; /* 0x3000A74F: add ebx, 0x14 */
   5956     _flag_k = FK_ADD;
   5957     PUSH32(esp, ebx); /* 0x3000A752: push ebx */
   5958     PUSH32(esp, eax); /* 0x3000A753: push eax */
   5959     PUSH32(esp, edi); /* 0x3000A754: push edi */
   5960     ecx = esi; /* 0x3000A755: mov ecx, esi */
   5961     RECOMP_ICALL(0x300017D0u); /* 0x3000A757: call 0x300017d0 */ /* not lifted */
   5962     RECOMP_FLAGS_IN();
   5963     ecx = MEM32(esi + 0x8); /* 0x3000A75C: mov ecx, dword ptr [esi + 8] */
   5964     edx = MEM32(esi + 0x4); /* 0x3000A75F: mov edx, dword ptr [esi + 4] */
   5965     PUSH32(esp, ecx); /* 0x3000A762: push ecx */
   5966     PUSH32(esp, edx); /* 0x3000A763: push edx */
   5967     ecx = esi; /* 0x3000A764: mov ecx, esi */
   5968     RECOMP_ICALL(0x300017A0u); /* 0x3000A766: call 0x300017a0 */ /* not lifted */
   5969     RECOMP_FLAGS_IN();
   5970     eax = MEM32(esi + 0x4); /* 0x3000A76B: mov eax, dword ptr [esi + 4] */
   5971     PUSH32(esp, eax); /* 0x3000A76E: push eax */
   5972     RECOMP_ICALL(0x30018080u); /* 0x3000A76F: call 0x30018080 */ /* not lifted */
   5973     RECOMP_FLAGS_IN();
   5974     eax = MEM32(ebp + (-0xC)); /* 0x3000A774: mov eax, dword ptr [ebp - 0xc] */
   5975     edi = MEM32(ebp + (-0x10)); /* 0x3000A777: mov edi, dword ptr [ebp - 0x10] */
   5976     ecx = eax + eax * 4; /* 0x3000A77A: lea ecx, [eax + eax*4] */
   5977     eax = MEM32(esi + 0x4); /* 0x3000A77D: mov eax, dword ptr [esi + 4] */
   5978     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5979     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5980     esp = esp + 4; /* 0x3000A780: add esp, 4 */
   5981     _flag_k = FK_ADD;
   5982     /* test eax, eax */ /* 0x3000A783: test eax, eax */
   5983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5984     _cf = 0;
   5985     _flag_k = FK_TEST;
   5986     edx = edi + ecx * 4; /* 0x3000A785: lea edx, [edi + ecx*4] */
   5987     MEM32(esi + 0xC) = edx; /* 0x3000A788: mov dword ptr [esi + 0xc], edx */
   5988     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A791; /* 0x3000A78B: jne 0x3000a791 */
   5989 L_3000A78D:
   5990     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5991     edx = 0; /* 0x3000A78D: xor edx, edx */
   5992     _cf = 0;
   5993     _flag_k = FK_TEST;
   5994     goto L_3000A7A7; /* 0x3000A78F: jmp 0x3000a7a7 */
   5995 L_3000A791:
   5996     ecx = MEM32(esi + 0x8); /* 0x3000A791: mov ecx, dword ptr [esi + 8] */
   5997     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5998     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5999     ecx = ecx - eax; /* 0x3000A794: sub ecx, eax */
   6000     _flag_k = FK_CMP;
   6001     eax = 0x66666667u; /* 0x3000A796: mov eax, 0x66666667 */
   6002     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A79B: imul ecx */
   6003       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6004       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6005     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A79D: sar edx, 3 */
   6006     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6007     edx = (uint32_t)((int32_t)edx >> 3u);
   6008     eax = edx; /* 0x3000A7A0: mov eax, edx */
   6009     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7A2: shr eax, 0x1f */
   6010     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6011     eax = eax >> 31u; /* 0x3000A7A2: shr eax, 0x1f */
   6012     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6013     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6014     edx = edx + eax; /* 0x3000A7A5: add edx, eax */
   6015     _flag_k = FK_ADD;
   6016 L_3000A7A7:
   6017     ebx = MEM32(ebp + (-0x4)); /* 0x3000A7A7: mov ebx, dword ptr [ebp - 4] */
   6018     ecx = edx + edx * 4 + 0x5; /* 0x3000A7AA: lea ecx, [edx + edx*4 + 5] */
   6019     edx = edi + ecx * 4; /* 0x3000A7AE: lea edx, [edi + ecx*4] */
   6020     MEM32(esi + 0x8) = edx; /* 0x3000A7B1: mov dword ptr [esi + 8], edx */
   6021     MEM32(esi + 0x4) = edi; /* 0x3000A7B4: mov dword ptr [esi + 4], edi */
   6022     goto L_3000A860; /* 0x3000A7B7: jmp 0x3000a860 */
   6023 L_3000A7BC:
   6024     edx = ecx; /* 0x3000A7BC: mov edx, ecx */
   6025     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6027     edx = edx - edi; /* 0x3000A7BE: sub edx, edi */
   6028     _flag_k = FK_CMP;
   6029     eax = 0x66666667u; /* 0x3000A7C0: mov eax, 0x66666667 */
   6030     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A7C5: imul edx */
   6031       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6032       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6033     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7C7: sar edx, 3 */
   6034     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6035     edx = (uint32_t)((int32_t)edx >> 3u);
   6036     eax = edx; /* 0x3000A7CA: mov eax, edx */
   6037     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7CC: shr eax, 0x1f */
   6038     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6039     eax = eax >> 31u; /* 0x3000A7CC: shr eax, 0x1f */
   6040     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6041     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6042     edx = edx + eax; /* 0x3000A7CF: add edx, eax */
   6043     _flag_k = FK_ADD;
   6044     /* cmp edx, 1 */ /* 0x3000A7D1: cmp edx, 1 */
   6045     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6047     _flag_k = FK_CMP;
   6048     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A82E; /* 0x3000A7D4: jae 0x3000a82e */
   6049 L_3000A7D6:
   6050     edx = edi + 0x14; /* 0x3000A7D6: lea edx, [edi + 0x14] */
   6051     PUSH32(esp, edx); /* 0x3000A7D9: push edx */
   6052     PUSH32(esp, ecx); /* 0x3000A7DA: push ecx */
   6053     PUSH32(esp, edi); /* 0x3000A7DB: push edi */
   6054     ecx = esi; /* 0x3000A7DC: mov ecx, esi */
   6055     RECOMP_ICALL(0x300017D0u); /* 0x3000A7DE: call 0x300017d0 */ /* not lifted */
   6056     RECOMP_FLAGS_IN();
   6057     ebx = MEM32(esi + 0x8); /* 0x3000A7E3: mov ebx, dword ptr [esi + 8] */
   6058     eax = MEM32(ebp + (-0x4)); /* 0x3000A7E6: mov eax, dword ptr [ebp - 4] */
   6059     PUSH32(esp, eax); /* 0x3000A7E9: push eax */
   6060     ecx = ebx; /* 0x3000A7EA: mov ecx, ebx */
   6061     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6063     ecx = ecx - edi; /* 0x3000A7EC: sub ecx, edi */
   6064     _flag_k = FK_CMP;
   6065     eax = 0x66666667u; /* 0x3000A7EE: mov eax, 0x66666667 */
   6066     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A7F3: imul ecx */
   6067       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6068       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6069     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7F5: sar edx, 3 */
   6070     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6071     edx = (uint32_t)((int32_t)edx >> 3u);
   6072     ecx = edx; /* 0x3000A7F8: mov ecx, edx */
   6073     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A7FA: shr ecx, 0x1f */
   6074     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6075     ecx = ecx >> 31u; /* 0x3000A7FA: shr ecx, 0x1f */
   6076     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6078     edx = edx + ecx; /* 0x3000A7FD: add edx, ecx */
   6079     _flag_k = FK_ADD;
   6080     eax = 1; /* 0x3000A7FF: mov eax, 1 */
   6081     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6083     eax = eax - edx; /* 0x3000A804: sub eax, edx */
   6084     _flag_k = FK_CMP;
   6085     PUSH32(esp, eax); /* 0x3000A806: push eax */
   6086     PUSH32(esp, ebx); /* 0x3000A807: push ebx */
   6087     ecx = esi; /* 0x3000A808: mov ecx, esi */
   6088     RECOMP_ICALL(0x30001860u); /* 0x3000A80A: call 0x30001860 */ /* not lifted */
   6089     RECOMP_FLAGS_IN();
   6090     ecx = MEM32(ebp + (-0x4)); /* 0x3000A80F: mov ecx, dword ptr [ebp - 4] */
   6091     edx = MEM32(esi + 0x8); /* 0x3000A812: mov edx, dword ptr [esi + 8] */
   6092     PUSH32(esp, ecx); /* 0x3000A815: push ecx */
   6093     PUSH32(esp, edx); /* 0x3000A816: push edx */
   6094     PUSH32(esp, edi); /* 0x3000A817: push edi */
   6095     RECOMP_ICALL(0x30001DC0u); /* 0x3000A818: call 0x30001dc0 */ /* not lifted */
   6096     RECOMP_FLAGS_IN();
   6097     eax = MEM32(esi + 0x8); /* 0x3000A81D: mov eax, dword ptr [esi + 8] */
   6098     ebx = MEM32(ebp + (-0x4)); /* 0x3000A820: mov ebx, dword ptr [ebp - 4] */
   6099     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6100     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6101     esp = esp + 0xCu; /* 0x3000A823: add esp, 0xc */
   6102     _flag_k = FK_ADD;
   6103     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6104     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6105     eax = eax + 0x14u; /* 0x3000A826: add eax, 0x14 */
   6106     _flag_k = FK_ADD;
   6107     MEM32(esi + 0x8) = eax; /* 0x3000A829: mov dword ptr [esi + 8], eax */
   6108     goto L_3000A860; /* 0x3000A82C: jmp 0x3000a860 */
   6109 L_3000A82E:
   6110     PUSH32(esp, ecx); /* 0x3000A82E: push ecx */
   6111     PUSH32(esp, ecx); /* 0x3000A82F: push ecx */
   6112     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   6113     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6114     ecx = ecx + 0xFFFFFFECu; /* 0x3000A830: add ecx, -0x14 */
   6115     _flag_k = FK_ADD;
   6116     PUSH32(esp, ecx); /* 0x3000A833: push ecx */
   6117     ecx = esi; /* 0x3000A834: mov ecx, esi */
   6118     RECOMP_ICALL(0x300017D0u); /* 0x3000A836: call 0x300017d0 */ /* not lifted */
   6119     RECOMP_FLAGS_IN();
   6120     eax = MEM32(esi + 0x8); /* 0x3000A83B: mov eax, dword ptr [esi + 8] */
   6121     PUSH32(esp, eax); /* 0x3000A83E: push eax */
   6122     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
   6123     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6124     eax = eax + 0xFFFFFFECu; /* 0x3000A83F: add eax, -0x14 */
   6125     _flag_k = FK_ADD;
   6126     PUSH32(esp, eax); /* 0x3000A842: push eax */
   6127     PUSH32(esp, edi); /* 0x3000A843: push edi */
   6128     RECOMP_ICALL(0x30001D80u); /* 0x3000A844: call 0x30001d80 */ /* not lifted */
   6129     RECOMP_FLAGS_IN();
   6130     PUSH32(esp, ebx); /* 0x3000A849: push ebx */
   6131     eax = edi + 0x14; /* 0x3000A84A: lea eax, [edi + 0x14] */
   6132     PUSH32(esp, eax); /* 0x3000A84D: push eax */
   6133     PUSH32(esp, edi); /* 0x3000A84E: push edi */
   6134     RECOMP_ICALL(0x30001DC0u); /* 0x3000A84F: call 0x30001dc0 */ /* not lifted */
   6135     RECOMP_FLAGS_IN();
   6136     eax = MEM32(esi + 0x8); /* 0x3000A854: mov eax, dword ptr [esi + 8] */
   6137     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6139     esp = esp + 0x18u; /* 0x3000A857: add esp, 0x18 */
   6140     _flag_k = FK_ADD;
   6141     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6142     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6143     eax = eax + 0x14u; /* 0x3000A85A: add eax, 0x14 */
   6144     _flag_k = FK_ADD;
   6145     MEM32(esi + 0x8) = eax; /* 0x3000A85D: mov dword ptr [esi + 8], eax */
   6146 L_3000A860:
   6147     ecx = MEM32(ebp + 0x8); /* 0x3000A860: mov ecx, dword ptr [ebp + 8] */
   6148     eax = MEM32(ecx + 0x8); /* 0x3000A863: mov eax, dword ptr [ecx + 8] */
   6149     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   6150     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6151     ebx = ebx + 0x14u; /* 0x3000A866: add ebx, 0x14 */
   6152     _flag_k = FK_ADD;
   6153     /* cmp ebx, eax */ /* 0x3000A869: cmp ebx, eax */
   6154     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   6155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6156     _flag_k = FK_CMP;
   6157     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A86B: mov dword ptr [ebp - 4], ebx */
   6158     RECOMP_BACKEDGE();
   6159     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A689; /* 0x3000A86E: jne 0x3000a689 */
   6160 L_3000A874:
   6161     ebx = POP32_VAL(esp); /* 0x3000A874: pop ebx */
   6162     edi = POP32_VAL(esp); /* 0x3000A875: pop edi */
   6163     eax = esi; /* 0x3000A876: mov eax, esi */
   6164     esi = POP32_VAL(esp); /* 0x3000A878: pop esi */
   6165     esp = ebp; /* 0x3000A879: mov esp, ebp */
   6166     ebp = POP32_VAL(esp); /* 0x3000A87B: pop ebp */
   6167     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A87C: ret 4 */
   6168     RECOMP_REGS_OUT();
   6169 }
   6170 
   6171 void sub_3000A6F3(void) {
   6172     int _fpu_cmp = 0;
   6173     uint32_t _cf = 0;
   6174     int _df = 1;
   6175     uint32_t _flag_k = FK_NONE;
   6176     uint32_t _flag_a = 0, _flag_b = 0;
   6177     uint32_t _itail_tgt = 0;
   6178     RECOMP_REGS_LOCALS
   6179     RECOMP_ENTER(0x3000A6F3u);
   6180 
   6181     goto L_3000A6F3;
   6182 L_3000A689:
   6183     ecx = MEM32(esi + 0x8); /* 0x3000A689: mov ecx, dword ptr [esi + 8] */
   6184     edx = MEM32(esi + 0xC); /* 0x3000A68C: mov edx, dword ptr [esi + 0xc] */
   6185     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6187     edx = edx - ecx; /* 0x3000A68F: sub edx, ecx */
   6188     _flag_k = FK_CMP;
   6189     eax = 0x66666667u; /* 0x3000A691: mov eax, 0x66666667 */
   6190     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A696: imul edx */
   6191       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6192       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6193     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A698: sar edx, 3 */
   6194     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6195     edx = (uint32_t)((int32_t)edx >> 3u);
   6196     eax = edx; /* 0x3000A69B: mov eax, edx */
   6197     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A69D: shr eax, 0x1f */
   6198     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6199     eax = eax >> 31u; /* 0x3000A69D: shr eax, 0x1f */
   6200     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6201     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6202     edx = edx + eax; /* 0x3000A6A0: add edx, eax */
   6203     _flag_k = FK_ADD;
   6204     /* cmp edx, 1 */ /* 0x3000A6A2: cmp edx, 1 */
   6205     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6207     _flag_k = FK_CMP;
   6208     edi = ecx; /* 0x3000A6A5: mov edi, ecx */
   6209     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A7BC; /* 0x3000A6A7: jae 0x3000a7bc */
   6210 L_3000A6AD:
   6211     ebx = MEM32(esi + 0x4); /* 0x3000A6AD: mov ebx, dword ptr [esi + 4] */
   6212     /* test ebx, ebx */ /* 0x3000A6B0: test ebx, ebx */
   6213     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6214     _cf = 0;
   6215     _flag_k = FK_TEST;
   6216     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A6D1; /* 0x3000A6B2: je 0x3000a6d1 */
   6217 L_3000A6B4:
   6218     edx = ecx; /* 0x3000A6B4: mov edx, ecx */
   6219     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   6220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6221     edx = edx - ebx; /* 0x3000A6B6: sub edx, ebx */
   6222     _flag_k = FK_CMP;
   6223     eax = 0x66666667u; /* 0x3000A6B8: mov eax, 0x66666667 */
   6224     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A6BD: imul edx */
   6225       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6226       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6227     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6BF: sar edx, 3 */
   6228     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6229     edx = (uint32_t)((int32_t)edx >> 3u);
   6230     eax = edx; /* 0x3000A6C2: mov eax, edx */
   6231     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A6C4: shr eax, 0x1f */
   6232     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6233     eax = eax >> 31u; /* 0x3000A6C4: shr eax, 0x1f */
   6234     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6235     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6236     edx = edx + eax; /* 0x3000A6C7: add edx, eax */
   6237     _flag_k = FK_ADD;
   6238     /* cmp edx, 1 */ /* 0x3000A6C9: cmp edx, 1 */
   6239     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6240     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6241     _flag_k = FK_CMP;
   6242     MEM32(ebp + (-0x8)) = edx; /* 0x3000A6CC: mov dword ptr [ebp - 8], edx */
   6243     if (CMP_A(_flag_a, _flag_b)) goto L_3000A6D8; /* 0x3000A6CF: ja 0x3000a6d8 */
   6244 L_3000A6D1:
   6245     MEM32(ebp + (-0x8)) = 1; /* 0x3000A6D1: mov dword ptr [ebp - 8], 1 */
   6246 L_3000A6D8:
   6247     /* test ebx, ebx */ /* 0x3000A6D8: test ebx, ebx */
   6248     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6249     _cf = 0;
   6250     _flag_k = FK_TEST;
   6251     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A6E0; /* 0x3000A6DA: jne 0x3000a6e0 */
   6252 L_3000A6DC:
   6253     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6254     edx = 0; /* 0x3000A6DC: xor edx, edx */
   6255     _cf = 0;
   6256     _flag_k = FK_TEST;
   6257     goto L_3000A6F3; /* 0x3000A6DE: jmp 0x3000a6f3 */
   6258 L_3000A6E0:
   6259     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   6260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6261     ecx = ecx - ebx; /* 0x3000A6E0: sub ecx, ebx */
   6262     _flag_k = FK_CMP;
   6263     eax = 0x66666667u; /* 0x3000A6E2: mov eax, 0x66666667 */
   6264     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A6E7: imul ecx */
   6265       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6266       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6267     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6E9: sar edx, 3 */
   6268     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6269     edx = (uint32_t)((int32_t)edx >> 3u);
   6270     ecx = edx; /* 0x3000A6EC: mov ecx, edx */
   6271     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A6EE: shr ecx, 0x1f */
   6272     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6273     ecx = ecx >> 31u; /* 0x3000A6EE: shr ecx, 0x1f */
   6274     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6275     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6276     edx = edx + ecx; /* 0x3000A6F1: add edx, ecx */
   6277     _flag_k = FK_ADD;
   6278 L_3000A6F3:
   6279     eax = MEM32(ebp + (-0x8)); /* 0x3000A6F3: mov eax, dword ptr [ebp - 8] */
   6280     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6281     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6282     eax = eax + edx; /* 0x3000A6F6: add eax, edx */
   6283     _flag_k = FK_ADD;
   6284     /* test eax, eax */ /* 0x3000A6F8: test eax, eax */
   6285     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6286     _cf = 0;
   6287     _flag_k = FK_TEST;
   6288     MEM32(ebp + (-0xC)) = eax; /* 0x3000A6FA: mov dword ptr [ebp - 0xc], eax */
   6289     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A701; /* 0x3000A6FD: jge 0x3000a701 */
   6290 L_3000A6FF:
   6291     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6292     eax = 0; /* 0x3000A6FF: xor eax, eax */
   6293     _cf = 0;
   6294     _flag_k = FK_TEST;
   6295 L_3000A701:
   6296     ecx = eax + eax * 4; /* 0x3000A701: lea ecx, [eax + eax*4] */
   6297     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A704: shl ecx, 2 */
   6298     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6299     ecx = ecx << 2u; /* 0x3000A704: shl ecx, 2 */
   6300     PUSH32(esp, ecx); /* 0x3000A707: push ecx */
   6301     RECOMP_ICALL(0x300180A8u); /* 0x3000A708: call 0x300180a8 */ /* not lifted */
   6302     RECOMP_FLAGS_IN();
   6303     MEM32(ebp + (-0x10)) = eax; /* 0x3000A70D: mov dword ptr [ebp - 0x10], eax */
   6304     ebx = eax; /* 0x3000A710: mov ebx, eax */
   6305     eax = MEM32(esi + 0x4); /* 0x3000A712: mov eax, dword ptr [esi + 4] */
   6306     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6307     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6308     esp = esp + 4; /* 0x3000A715: add esp, 4 */
   6309     _flag_k = FK_ADD;
   6310     /* cmp eax, edi */ /* 0x3000A718: cmp eax, edi */
   6311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6313     _flag_k = FK_CMP;
   6314     MEM32(ebp + (-0x8)) = eax; /* 0x3000A71A: mov dword ptr [ebp - 8], eax */
   6315     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A73E; /* 0x3000A71D: je 0x3000a73e */
   6316 L_3000A71F:
   6317     goto L_3000A724; /* 0x3000A71F: jmp 0x3000a724 */
   6318 L_3000A721:
   6319     eax = MEM32(ebp + (-0x8)); /* 0x3000A721: mov eax, dword ptr [ebp - 8] */
   6320 L_3000A724:
   6321     PUSH32(esp, eax); /* 0x3000A724: push eax */
   6322     PUSH32(esp, ebx); /* 0x3000A725: push ebx */
   6323     RECOMP_ICALL(0x30001DF0u); /* 0x3000A726: call 0x30001df0 */ /* not lifted */
   6324     RECOMP_FLAGS_IN();
   6325     eax = MEM32(ebp + (-0x8)); /* 0x3000A72B: mov eax, dword ptr [ebp - 8] */
   6326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6328     eax = eax + 0x14u; /* 0x3000A72E: add eax, 0x14 */
   6329     _flag_k = FK_ADD;
   6330     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6331     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6332     esp = esp + 8; /* 0x3000A731: add esp, 8 */
   6333     _flag_k = FK_ADD;
   6334     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   6335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6336     ebx = ebx + 0x14u; /* 0x3000A734: add ebx, 0x14 */
   6337     _flag_k = FK_ADD;
   6338     /* cmp eax, edi */ /* 0x3000A737: cmp eax, edi */
   6339     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6341     _flag_k = FK_CMP;
   6342     MEM32(ebp + (-0x8)) = eax; /* 0x3000A739: mov dword ptr [ebp - 8], eax */
   6343     RECOMP_BACKEDGE();
   6344     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A721; /* 0x3000A73C: jne 0x3000a721 */
   6345 L_3000A73E:
   6346     edx = MEM32(ebp + (-0x4)); /* 0x3000A73E: mov edx, dword ptr [ebp - 4] */
   6347     PUSH32(esp, edx); /* 0x3000A741: push edx */
   6348     PUSH32(esp, 1); /* 0x3000A742: push 1 */
   6349     PUSH32(esp, ebx); /* 0x3000A744: push ebx */
   6350     ecx = esi; /* 0x3000A745: mov ecx, esi */
   6351     RECOMP_ICALL(0x30001860u); /* 0x3000A747: call 0x30001860 */ /* not lifted */
   6352     RECOMP_FLAGS_IN();
   6353     eax = MEM32(esi + 0x8); /* 0x3000A74C: mov eax, dword ptr [esi + 8] */
   6354     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   6355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6356     ebx = ebx + 0x14u; /* 0x3000A74F: add ebx, 0x14 */
   6357     _flag_k = FK_ADD;
   6358     PUSH32(esp, ebx); /* 0x3000A752: push ebx */
   6359     PUSH32(esp, eax); /* 0x3000A753: push eax */
   6360     PUSH32(esp, edi); /* 0x3000A754: push edi */
   6361     ecx = esi; /* 0x3000A755: mov ecx, esi */
   6362     RECOMP_ICALL(0x300017D0u); /* 0x3000A757: call 0x300017d0 */ /* not lifted */
   6363     RECOMP_FLAGS_IN();
   6364     ecx = MEM32(esi + 0x8); /* 0x3000A75C: mov ecx, dword ptr [esi + 8] */
   6365     edx = MEM32(esi + 0x4); /* 0x3000A75F: mov edx, dword ptr [esi + 4] */
   6366     PUSH32(esp, ecx); /* 0x3000A762: push ecx */
   6367     PUSH32(esp, edx); /* 0x3000A763: push edx */
   6368     ecx = esi; /* 0x3000A764: mov ecx, esi */
   6369     RECOMP_ICALL(0x300017A0u); /* 0x3000A766: call 0x300017a0 */ /* not lifted */
   6370     RECOMP_FLAGS_IN();
   6371     eax = MEM32(esi + 0x4); /* 0x3000A76B: mov eax, dword ptr [esi + 4] */
   6372     PUSH32(esp, eax); /* 0x3000A76E: push eax */
   6373     RECOMP_ICALL(0x30018080u); /* 0x3000A76F: call 0x30018080 */ /* not lifted */
   6374     RECOMP_FLAGS_IN();
   6375     eax = MEM32(ebp + (-0xC)); /* 0x3000A774: mov eax, dword ptr [ebp - 0xc] */
   6376     edi = MEM32(ebp + (-0x10)); /* 0x3000A777: mov edi, dword ptr [ebp - 0x10] */
   6377     ecx = eax + eax * 4; /* 0x3000A77A: lea ecx, [eax + eax*4] */
   6378     eax = MEM32(esi + 0x4); /* 0x3000A77D: mov eax, dword ptr [esi + 4] */
   6379     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6381     esp = esp + 4; /* 0x3000A780: add esp, 4 */
   6382     _flag_k = FK_ADD;
   6383     /* test eax, eax */ /* 0x3000A783: test eax, eax */
   6384     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6385     _cf = 0;
   6386     _flag_k = FK_TEST;
   6387     edx = edi + ecx * 4; /* 0x3000A785: lea edx, [edi + ecx*4] */
   6388     MEM32(esi + 0xC) = edx; /* 0x3000A788: mov dword ptr [esi + 0xc], edx */
   6389     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A791; /* 0x3000A78B: jne 0x3000a791 */
   6390 L_3000A78D:
   6391     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6392     edx = 0; /* 0x3000A78D: xor edx, edx */
   6393     _cf = 0;
   6394     _flag_k = FK_TEST;
   6395     goto L_3000A7A7; /* 0x3000A78F: jmp 0x3000a7a7 */
   6396 L_3000A791:
   6397     ecx = MEM32(esi + 0x8); /* 0x3000A791: mov ecx, dword ptr [esi + 8] */
   6398     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6400     ecx = ecx - eax; /* 0x3000A794: sub ecx, eax */
   6401     _flag_k = FK_CMP;
   6402     eax = 0x66666667u; /* 0x3000A796: mov eax, 0x66666667 */
   6403     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A79B: imul ecx */
   6404       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6405       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6406     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A79D: sar edx, 3 */
   6407     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6408     edx = (uint32_t)((int32_t)edx >> 3u);
   6409     eax = edx; /* 0x3000A7A0: mov eax, edx */
   6410     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7A2: shr eax, 0x1f */
   6411     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6412     eax = eax >> 31u; /* 0x3000A7A2: shr eax, 0x1f */
   6413     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6415     edx = edx + eax; /* 0x3000A7A5: add edx, eax */
   6416     _flag_k = FK_ADD;
   6417 L_3000A7A7:
   6418     ebx = MEM32(ebp + (-0x4)); /* 0x3000A7A7: mov ebx, dword ptr [ebp - 4] */
   6419     ecx = edx + edx * 4 + 0x5; /* 0x3000A7AA: lea ecx, [edx + edx*4 + 5] */
   6420     edx = edi + ecx * 4; /* 0x3000A7AE: lea edx, [edi + ecx*4] */
   6421     MEM32(esi + 0x8) = edx; /* 0x3000A7B1: mov dword ptr [esi + 8], edx */
   6422     MEM32(esi + 0x4) = edi; /* 0x3000A7B4: mov dword ptr [esi + 4], edi */
   6423     goto L_3000A860; /* 0x3000A7B7: jmp 0x3000a860 */
   6424 L_3000A7BC:
   6425     edx = ecx; /* 0x3000A7BC: mov edx, ecx */
   6426     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6428     edx = edx - edi; /* 0x3000A7BE: sub edx, edi */
   6429     _flag_k = FK_CMP;
   6430     eax = 0x66666667u; /* 0x3000A7C0: mov eax, 0x66666667 */
   6431     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A7C5: imul edx */
   6432       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6433       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6434     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7C7: sar edx, 3 */
   6435     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6436     edx = (uint32_t)((int32_t)edx >> 3u);
   6437     eax = edx; /* 0x3000A7CA: mov eax, edx */
   6438     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7CC: shr eax, 0x1f */
   6439     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6440     eax = eax >> 31u; /* 0x3000A7CC: shr eax, 0x1f */
   6441     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6443     edx = edx + eax; /* 0x3000A7CF: add edx, eax */
   6444     _flag_k = FK_ADD;
   6445     /* cmp edx, 1 */ /* 0x3000A7D1: cmp edx, 1 */
   6446     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6448     _flag_k = FK_CMP;
   6449     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A82E; /* 0x3000A7D4: jae 0x3000a82e */
   6450 L_3000A7D6:
   6451     edx = edi + 0x14; /* 0x3000A7D6: lea edx, [edi + 0x14] */
   6452     PUSH32(esp, edx); /* 0x3000A7D9: push edx */
   6453     PUSH32(esp, ecx); /* 0x3000A7DA: push ecx */
   6454     PUSH32(esp, edi); /* 0x3000A7DB: push edi */
   6455     ecx = esi; /* 0x3000A7DC: mov ecx, esi */
   6456     RECOMP_ICALL(0x300017D0u); /* 0x3000A7DE: call 0x300017d0 */ /* not lifted */
   6457     RECOMP_FLAGS_IN();
   6458     ebx = MEM32(esi + 0x8); /* 0x3000A7E3: mov ebx, dword ptr [esi + 8] */
   6459     eax = MEM32(ebp + (-0x4)); /* 0x3000A7E6: mov eax, dword ptr [ebp - 4] */
   6460     PUSH32(esp, eax); /* 0x3000A7E9: push eax */
   6461     ecx = ebx; /* 0x3000A7EA: mov ecx, ebx */
   6462     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6464     ecx = ecx - edi; /* 0x3000A7EC: sub ecx, edi */
   6465     _flag_k = FK_CMP;
   6466     eax = 0x66666667u; /* 0x3000A7EE: mov eax, 0x66666667 */
   6467     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A7F3: imul ecx */
   6468       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6469       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6470     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7F5: sar edx, 3 */
   6471     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6472     edx = (uint32_t)((int32_t)edx >> 3u);
   6473     ecx = edx; /* 0x3000A7F8: mov ecx, edx */
   6474     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A7FA: shr ecx, 0x1f */
   6475     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6476     ecx = ecx >> 31u; /* 0x3000A7FA: shr ecx, 0x1f */
   6477     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6478     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6479     edx = edx + ecx; /* 0x3000A7FD: add edx, ecx */
   6480     _flag_k = FK_ADD;
   6481     eax = 1; /* 0x3000A7FF: mov eax, 1 */
   6482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6484     eax = eax - edx; /* 0x3000A804: sub eax, edx */
   6485     _flag_k = FK_CMP;
   6486     PUSH32(esp, eax); /* 0x3000A806: push eax */
   6487     PUSH32(esp, ebx); /* 0x3000A807: push ebx */
   6488     ecx = esi; /* 0x3000A808: mov ecx, esi */
   6489     RECOMP_ICALL(0x30001860u); /* 0x3000A80A: call 0x30001860 */ /* not lifted */
   6490     RECOMP_FLAGS_IN();
   6491     ecx = MEM32(ebp + (-0x4)); /* 0x3000A80F: mov ecx, dword ptr [ebp - 4] */
   6492     edx = MEM32(esi + 0x8); /* 0x3000A812: mov edx, dword ptr [esi + 8] */
   6493     PUSH32(esp, ecx); /* 0x3000A815: push ecx */
   6494     PUSH32(esp, edx); /* 0x3000A816: push edx */
   6495     PUSH32(esp, edi); /* 0x3000A817: push edi */
   6496     RECOMP_ICALL(0x30001DC0u); /* 0x3000A818: call 0x30001dc0 */ /* not lifted */
   6497     RECOMP_FLAGS_IN();
   6498     eax = MEM32(esi + 0x8); /* 0x3000A81D: mov eax, dword ptr [esi + 8] */
   6499     ebx = MEM32(ebp + (-0x4)); /* 0x3000A820: mov ebx, dword ptr [ebp - 4] */
   6500     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6501     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6502     esp = esp + 0xCu; /* 0x3000A823: add esp, 0xc */
   6503     _flag_k = FK_ADD;
   6504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6505     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6506     eax = eax + 0x14u; /* 0x3000A826: add eax, 0x14 */
   6507     _flag_k = FK_ADD;
   6508     MEM32(esi + 0x8) = eax; /* 0x3000A829: mov dword ptr [esi + 8], eax */
   6509     goto L_3000A860; /* 0x3000A82C: jmp 0x3000a860 */
   6510 L_3000A82E:
   6511     PUSH32(esp, ecx); /* 0x3000A82E: push ecx */
   6512     PUSH32(esp, ecx); /* 0x3000A82F: push ecx */
   6513     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   6514     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6515     ecx = ecx + 0xFFFFFFECu; /* 0x3000A830: add ecx, -0x14 */
   6516     _flag_k = FK_ADD;
   6517     PUSH32(esp, ecx); /* 0x3000A833: push ecx */
   6518     ecx = esi; /* 0x3000A834: mov ecx, esi */
   6519     RECOMP_ICALL(0x300017D0u); /* 0x3000A836: call 0x300017d0 */ /* not lifted */
   6520     RECOMP_FLAGS_IN();
   6521     eax = MEM32(esi + 0x8); /* 0x3000A83B: mov eax, dword ptr [esi + 8] */
   6522     PUSH32(esp, eax); /* 0x3000A83E: push eax */
   6523     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
   6524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6525     eax = eax + 0xFFFFFFECu; /* 0x3000A83F: add eax, -0x14 */
   6526     _flag_k = FK_ADD;
   6527     PUSH32(esp, eax); /* 0x3000A842: push eax */
   6528     PUSH32(esp, edi); /* 0x3000A843: push edi */
   6529     RECOMP_ICALL(0x30001D80u); /* 0x3000A844: call 0x30001d80 */ /* not lifted */
   6530     RECOMP_FLAGS_IN();
   6531     PUSH32(esp, ebx); /* 0x3000A849: push ebx */
   6532     eax = edi + 0x14; /* 0x3000A84A: lea eax, [edi + 0x14] */
   6533     PUSH32(esp, eax); /* 0x3000A84D: push eax */
   6534     PUSH32(esp, edi); /* 0x3000A84E: push edi */
   6535     RECOMP_ICALL(0x30001DC0u); /* 0x3000A84F: call 0x30001dc0 */ /* not lifted */
   6536     RECOMP_FLAGS_IN();
   6537     eax = MEM32(esi + 0x8); /* 0x3000A854: mov eax, dword ptr [esi + 8] */
   6538     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6539     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6540     esp = esp + 0x18u; /* 0x3000A857: add esp, 0x18 */
   6541     _flag_k = FK_ADD;
   6542     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6543     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6544     eax = eax + 0x14u; /* 0x3000A85A: add eax, 0x14 */
   6545     _flag_k = FK_ADD;
   6546     MEM32(esi + 0x8) = eax; /* 0x3000A85D: mov dword ptr [esi + 8], eax */
   6547 L_3000A860:
   6548     ecx = MEM32(ebp + 0x8); /* 0x3000A860: mov ecx, dword ptr [ebp + 8] */
   6549     eax = MEM32(ecx + 0x8); /* 0x3000A863: mov eax, dword ptr [ecx + 8] */
   6550     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   6551     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6552     ebx = ebx + 0x14u; /* 0x3000A866: add ebx, 0x14 */
   6553     _flag_k = FK_ADD;
   6554     /* cmp ebx, eax */ /* 0x3000A869: cmp ebx, eax */
   6555     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   6556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6557     _flag_k = FK_CMP;
   6558     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A86B: mov dword ptr [ebp - 4], ebx */
   6559     RECOMP_BACKEDGE();
   6560     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A689; /* 0x3000A86E: jne 0x3000a689 */
   6561 L_3000A874:
   6562     ebx = POP32_VAL(esp); /* 0x3000A874: pop ebx */
   6563     edi = POP32_VAL(esp); /* 0x3000A875: pop edi */
   6564     eax = esi; /* 0x3000A876: mov eax, esi */
   6565     esi = POP32_VAL(esp); /* 0x3000A878: pop esi */
   6566     esp = ebp; /* 0x3000A879: mov esp, ebp */
   6567     ebp = POP32_VAL(esp); /* 0x3000A87B: pop ebp */
   6568     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A87C: ret 4 */
   6569     RECOMP_REGS_OUT();
   6570 }
   6571 
   6572 void sub_3000A721(void) {
   6573     int _fpu_cmp = 0;
   6574     uint32_t _cf = 0;
   6575     int _df = 1;
   6576     uint32_t _flag_k = FK_NONE;
   6577     uint32_t _flag_a = 0, _flag_b = 0;
   6578     uint32_t _itail_tgt = 0;
   6579     RECOMP_REGS_LOCALS
   6580     RECOMP_ENTER(0x3000A721u);
   6581 
   6582     goto L_3000A721;
   6583 L_3000A689:
   6584     ecx = MEM32(esi + 0x8); /* 0x3000A689: mov ecx, dword ptr [esi + 8] */
   6585     edx = MEM32(esi + 0xC); /* 0x3000A68C: mov edx, dword ptr [esi + 0xc] */
   6586     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6588     edx = edx - ecx; /* 0x3000A68F: sub edx, ecx */
   6589     _flag_k = FK_CMP;
   6590     eax = 0x66666667u; /* 0x3000A691: mov eax, 0x66666667 */
   6591     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A696: imul edx */
   6592       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6593       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6594     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A698: sar edx, 3 */
   6595     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6596     edx = (uint32_t)((int32_t)edx >> 3u);
   6597     eax = edx; /* 0x3000A69B: mov eax, edx */
   6598     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A69D: shr eax, 0x1f */
   6599     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6600     eax = eax >> 31u; /* 0x3000A69D: shr eax, 0x1f */
   6601     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6603     edx = edx + eax; /* 0x3000A6A0: add edx, eax */
   6604     _flag_k = FK_ADD;
   6605     /* cmp edx, 1 */ /* 0x3000A6A2: cmp edx, 1 */
   6606     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6608     _flag_k = FK_CMP;
   6609     edi = ecx; /* 0x3000A6A5: mov edi, ecx */
   6610     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A7BC; /* 0x3000A6A7: jae 0x3000a7bc */
   6611 L_3000A6AD:
   6612     ebx = MEM32(esi + 0x4); /* 0x3000A6AD: mov ebx, dword ptr [esi + 4] */
   6613     /* test ebx, ebx */ /* 0x3000A6B0: test ebx, ebx */
   6614     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6615     _cf = 0;
   6616     _flag_k = FK_TEST;
   6617     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A6D1; /* 0x3000A6B2: je 0x3000a6d1 */
   6618 L_3000A6B4:
   6619     edx = ecx; /* 0x3000A6B4: mov edx, ecx */
   6620     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   6621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6622     edx = edx - ebx; /* 0x3000A6B6: sub edx, ebx */
   6623     _flag_k = FK_CMP;
   6624     eax = 0x66666667u; /* 0x3000A6B8: mov eax, 0x66666667 */
   6625     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A6BD: imul edx */
   6626       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6627       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6628     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6BF: sar edx, 3 */
   6629     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6630     edx = (uint32_t)((int32_t)edx >> 3u);
   6631     eax = edx; /* 0x3000A6C2: mov eax, edx */
   6632     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A6C4: shr eax, 0x1f */
   6633     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6634     eax = eax >> 31u; /* 0x3000A6C4: shr eax, 0x1f */
   6635     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6636     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6637     edx = edx + eax; /* 0x3000A6C7: add edx, eax */
   6638     _flag_k = FK_ADD;
   6639     /* cmp edx, 1 */ /* 0x3000A6C9: cmp edx, 1 */
   6640     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6642     _flag_k = FK_CMP;
   6643     MEM32(ebp + (-0x8)) = edx; /* 0x3000A6CC: mov dword ptr [ebp - 8], edx */
   6644     if (CMP_A(_flag_a, _flag_b)) goto L_3000A6D8; /* 0x3000A6CF: ja 0x3000a6d8 */
   6645 L_3000A6D1:
   6646     MEM32(ebp + (-0x8)) = 1; /* 0x3000A6D1: mov dword ptr [ebp - 8], 1 */
   6647 L_3000A6D8:
   6648     /* test ebx, ebx */ /* 0x3000A6D8: test ebx, ebx */
   6649     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6650     _cf = 0;
   6651     _flag_k = FK_TEST;
   6652     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A6E0; /* 0x3000A6DA: jne 0x3000a6e0 */
   6653 L_3000A6DC:
   6654     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6655     edx = 0; /* 0x3000A6DC: xor edx, edx */
   6656     _cf = 0;
   6657     _flag_k = FK_TEST;
   6658     goto L_3000A6F3; /* 0x3000A6DE: jmp 0x3000a6f3 */
   6659 L_3000A6E0:
   6660     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   6661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6662     ecx = ecx - ebx; /* 0x3000A6E0: sub ecx, ebx */
   6663     _flag_k = FK_CMP;
   6664     eax = 0x66666667u; /* 0x3000A6E2: mov eax, 0x66666667 */
   6665     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A6E7: imul ecx */
   6666       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6667       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6668     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6E9: sar edx, 3 */
   6669     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6670     edx = (uint32_t)((int32_t)edx >> 3u);
   6671     ecx = edx; /* 0x3000A6EC: mov ecx, edx */
   6672     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A6EE: shr ecx, 0x1f */
   6673     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6674     ecx = ecx >> 31u; /* 0x3000A6EE: shr ecx, 0x1f */
   6675     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6677     edx = edx + ecx; /* 0x3000A6F1: add edx, ecx */
   6678     _flag_k = FK_ADD;
   6679 L_3000A6F3:
   6680     eax = MEM32(ebp + (-0x8)); /* 0x3000A6F3: mov eax, dword ptr [ebp - 8] */
   6681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6682     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6683     eax = eax + edx; /* 0x3000A6F6: add eax, edx */
   6684     _flag_k = FK_ADD;
   6685     /* test eax, eax */ /* 0x3000A6F8: test eax, eax */
   6686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6687     _cf = 0;
   6688     _flag_k = FK_TEST;
   6689     MEM32(ebp + (-0xC)) = eax; /* 0x3000A6FA: mov dword ptr [ebp - 0xc], eax */
   6690     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A701; /* 0x3000A6FD: jge 0x3000a701 */
   6691 L_3000A6FF:
   6692     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6693     eax = 0; /* 0x3000A6FF: xor eax, eax */
   6694     _cf = 0;
   6695     _flag_k = FK_TEST;
   6696 L_3000A701:
   6697     ecx = eax + eax * 4; /* 0x3000A701: lea ecx, [eax + eax*4] */
   6698     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A704: shl ecx, 2 */
   6699     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6700     ecx = ecx << 2u; /* 0x3000A704: shl ecx, 2 */
   6701     PUSH32(esp, ecx); /* 0x3000A707: push ecx */
   6702     RECOMP_ICALL(0x300180A8u); /* 0x3000A708: call 0x300180a8 */ /* not lifted */
   6703     RECOMP_FLAGS_IN();
   6704     MEM32(ebp + (-0x10)) = eax; /* 0x3000A70D: mov dword ptr [ebp - 0x10], eax */
   6705     ebx = eax; /* 0x3000A710: mov ebx, eax */
   6706     eax = MEM32(esi + 0x4); /* 0x3000A712: mov eax, dword ptr [esi + 4] */
   6707     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6708     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6709     esp = esp + 4; /* 0x3000A715: add esp, 4 */
   6710     _flag_k = FK_ADD;
   6711     /* cmp eax, edi */ /* 0x3000A718: cmp eax, edi */
   6712     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6714     _flag_k = FK_CMP;
   6715     MEM32(ebp + (-0x8)) = eax; /* 0x3000A71A: mov dword ptr [ebp - 8], eax */
   6716     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A73E; /* 0x3000A71D: je 0x3000a73e */
   6717 L_3000A71F:
   6718     goto L_3000A724; /* 0x3000A71F: jmp 0x3000a724 */
   6719 L_3000A721:
   6720     eax = MEM32(ebp + (-0x8)); /* 0x3000A721: mov eax, dword ptr [ebp - 8] */
   6721 L_3000A724:
   6722     PUSH32(esp, eax); /* 0x3000A724: push eax */
   6723     PUSH32(esp, ebx); /* 0x3000A725: push ebx */
   6724     RECOMP_ICALL(0x30001DF0u); /* 0x3000A726: call 0x30001df0 */ /* not lifted */
   6725     RECOMP_FLAGS_IN();
   6726     eax = MEM32(ebp + (-0x8)); /* 0x3000A72B: mov eax, dword ptr [ebp - 8] */
   6727     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6729     eax = eax + 0x14u; /* 0x3000A72E: add eax, 0x14 */
   6730     _flag_k = FK_ADD;
   6731     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6732     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6733     esp = esp + 8; /* 0x3000A731: add esp, 8 */
   6734     _flag_k = FK_ADD;
   6735     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   6736     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6737     ebx = ebx + 0x14u; /* 0x3000A734: add ebx, 0x14 */
   6738     _flag_k = FK_ADD;
   6739     /* cmp eax, edi */ /* 0x3000A737: cmp eax, edi */
   6740     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6742     _flag_k = FK_CMP;
   6743     MEM32(ebp + (-0x8)) = eax; /* 0x3000A739: mov dword ptr [ebp - 8], eax */
   6744     RECOMP_BACKEDGE();
   6745     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A721; /* 0x3000A73C: jne 0x3000a721 */
   6746 L_3000A73E:
   6747     edx = MEM32(ebp + (-0x4)); /* 0x3000A73E: mov edx, dword ptr [ebp - 4] */
   6748     PUSH32(esp, edx); /* 0x3000A741: push edx */
   6749     PUSH32(esp, 1); /* 0x3000A742: push 1 */
   6750     PUSH32(esp, ebx); /* 0x3000A744: push ebx */
   6751     ecx = esi; /* 0x3000A745: mov ecx, esi */
   6752     RECOMP_ICALL(0x30001860u); /* 0x3000A747: call 0x30001860 */ /* not lifted */
   6753     RECOMP_FLAGS_IN();
   6754     eax = MEM32(esi + 0x8); /* 0x3000A74C: mov eax, dword ptr [esi + 8] */
   6755     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   6756     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6757     ebx = ebx + 0x14u; /* 0x3000A74F: add ebx, 0x14 */
   6758     _flag_k = FK_ADD;
   6759     PUSH32(esp, ebx); /* 0x3000A752: push ebx */
   6760     PUSH32(esp, eax); /* 0x3000A753: push eax */
   6761     PUSH32(esp, edi); /* 0x3000A754: push edi */
   6762     ecx = esi; /* 0x3000A755: mov ecx, esi */
   6763     RECOMP_ICALL(0x300017D0u); /* 0x3000A757: call 0x300017d0 */ /* not lifted */
   6764     RECOMP_FLAGS_IN();
   6765     ecx = MEM32(esi + 0x8); /* 0x3000A75C: mov ecx, dword ptr [esi + 8] */
   6766     edx = MEM32(esi + 0x4); /* 0x3000A75F: mov edx, dword ptr [esi + 4] */
   6767     PUSH32(esp, ecx); /* 0x3000A762: push ecx */
   6768     PUSH32(esp, edx); /* 0x3000A763: push edx */
   6769     ecx = esi; /* 0x3000A764: mov ecx, esi */
   6770     RECOMP_ICALL(0x300017A0u); /* 0x3000A766: call 0x300017a0 */ /* not lifted */
   6771     RECOMP_FLAGS_IN();
   6772     eax = MEM32(esi + 0x4); /* 0x3000A76B: mov eax, dword ptr [esi + 4] */
   6773     PUSH32(esp, eax); /* 0x3000A76E: push eax */
   6774     RECOMP_ICALL(0x30018080u); /* 0x3000A76F: call 0x30018080 */ /* not lifted */
   6775     RECOMP_FLAGS_IN();
   6776     eax = MEM32(ebp + (-0xC)); /* 0x3000A774: mov eax, dword ptr [ebp - 0xc] */
   6777     edi = MEM32(ebp + (-0x10)); /* 0x3000A777: mov edi, dword ptr [ebp - 0x10] */
   6778     ecx = eax + eax * 4; /* 0x3000A77A: lea ecx, [eax + eax*4] */
   6779     eax = MEM32(esi + 0x4); /* 0x3000A77D: mov eax, dword ptr [esi + 4] */
   6780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6782     esp = esp + 4; /* 0x3000A780: add esp, 4 */
   6783     _flag_k = FK_ADD;
   6784     /* test eax, eax */ /* 0x3000A783: test eax, eax */
   6785     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6786     _cf = 0;
   6787     _flag_k = FK_TEST;
   6788     edx = edi + ecx * 4; /* 0x3000A785: lea edx, [edi + ecx*4] */
   6789     MEM32(esi + 0xC) = edx; /* 0x3000A788: mov dword ptr [esi + 0xc], edx */
   6790     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A791; /* 0x3000A78B: jne 0x3000a791 */
   6791 L_3000A78D:
   6792     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6793     edx = 0; /* 0x3000A78D: xor edx, edx */
   6794     _cf = 0;
   6795     _flag_k = FK_TEST;
   6796     goto L_3000A7A7; /* 0x3000A78F: jmp 0x3000a7a7 */
   6797 L_3000A791:
   6798     ecx = MEM32(esi + 0x8); /* 0x3000A791: mov ecx, dword ptr [esi + 8] */
   6799     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6801     ecx = ecx - eax; /* 0x3000A794: sub ecx, eax */
   6802     _flag_k = FK_CMP;
   6803     eax = 0x66666667u; /* 0x3000A796: mov eax, 0x66666667 */
   6804     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A79B: imul ecx */
   6805       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6806       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6807     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A79D: sar edx, 3 */
   6808     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6809     edx = (uint32_t)((int32_t)edx >> 3u);
   6810     eax = edx; /* 0x3000A7A0: mov eax, edx */
   6811     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7A2: shr eax, 0x1f */
   6812     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6813     eax = eax >> 31u; /* 0x3000A7A2: shr eax, 0x1f */
   6814     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6816     edx = edx + eax; /* 0x3000A7A5: add edx, eax */
   6817     _flag_k = FK_ADD;
   6818 L_3000A7A7:
   6819     ebx = MEM32(ebp + (-0x4)); /* 0x3000A7A7: mov ebx, dword ptr [ebp - 4] */
   6820     ecx = edx + edx * 4 + 0x5; /* 0x3000A7AA: lea ecx, [edx + edx*4 + 5] */
   6821     edx = edi + ecx * 4; /* 0x3000A7AE: lea edx, [edi + ecx*4] */
   6822     MEM32(esi + 0x8) = edx; /* 0x3000A7B1: mov dword ptr [esi + 8], edx */
   6823     MEM32(esi + 0x4) = edi; /* 0x3000A7B4: mov dword ptr [esi + 4], edi */
   6824     goto L_3000A860; /* 0x3000A7B7: jmp 0x3000a860 */
   6825 L_3000A7BC:
   6826     edx = ecx; /* 0x3000A7BC: mov edx, ecx */
   6827     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6829     edx = edx - edi; /* 0x3000A7BE: sub edx, edi */
   6830     _flag_k = FK_CMP;
   6831     eax = 0x66666667u; /* 0x3000A7C0: mov eax, 0x66666667 */
   6832     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A7C5: imul edx */
   6833       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6834       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6835     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7C7: sar edx, 3 */
   6836     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6837     edx = (uint32_t)((int32_t)edx >> 3u);
   6838     eax = edx; /* 0x3000A7CA: mov eax, edx */
   6839     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7CC: shr eax, 0x1f */
   6840     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6841     eax = eax >> 31u; /* 0x3000A7CC: shr eax, 0x1f */
   6842     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6844     edx = edx + eax; /* 0x3000A7CF: add edx, eax */
   6845     _flag_k = FK_ADD;
   6846     /* cmp edx, 1 */ /* 0x3000A7D1: cmp edx, 1 */
   6847     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6849     _flag_k = FK_CMP;
   6850     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A82E; /* 0x3000A7D4: jae 0x3000a82e */
   6851 L_3000A7D6:
   6852     edx = edi + 0x14; /* 0x3000A7D6: lea edx, [edi + 0x14] */
   6853     PUSH32(esp, edx); /* 0x3000A7D9: push edx */
   6854     PUSH32(esp, ecx); /* 0x3000A7DA: push ecx */
   6855     PUSH32(esp, edi); /* 0x3000A7DB: push edi */
   6856     ecx = esi; /* 0x3000A7DC: mov ecx, esi */
   6857     RECOMP_ICALL(0x300017D0u); /* 0x3000A7DE: call 0x300017d0 */ /* not lifted */
   6858     RECOMP_FLAGS_IN();
   6859     ebx = MEM32(esi + 0x8); /* 0x3000A7E3: mov ebx, dword ptr [esi + 8] */
   6860     eax = MEM32(ebp + (-0x4)); /* 0x3000A7E6: mov eax, dword ptr [ebp - 4] */
   6861     PUSH32(esp, eax); /* 0x3000A7E9: push eax */
   6862     ecx = ebx; /* 0x3000A7EA: mov ecx, ebx */
   6863     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6865     ecx = ecx - edi; /* 0x3000A7EC: sub ecx, edi */
   6866     _flag_k = FK_CMP;
   6867     eax = 0x66666667u; /* 0x3000A7EE: mov eax, 0x66666667 */
   6868     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A7F3: imul ecx */
   6869       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6870       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6871     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7F5: sar edx, 3 */
   6872     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6873     edx = (uint32_t)((int32_t)edx >> 3u);
   6874     ecx = edx; /* 0x3000A7F8: mov ecx, edx */
   6875     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A7FA: shr ecx, 0x1f */
   6876     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6877     ecx = ecx >> 31u; /* 0x3000A7FA: shr ecx, 0x1f */
   6878     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6880     edx = edx + ecx; /* 0x3000A7FD: add edx, ecx */
   6881     _flag_k = FK_ADD;
   6882     eax = 1; /* 0x3000A7FF: mov eax, 1 */
   6883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6885     eax = eax - edx; /* 0x3000A804: sub eax, edx */
   6886     _flag_k = FK_CMP;
   6887     PUSH32(esp, eax); /* 0x3000A806: push eax */
   6888     PUSH32(esp, ebx); /* 0x3000A807: push ebx */
   6889     ecx = esi; /* 0x3000A808: mov ecx, esi */
   6890     RECOMP_ICALL(0x30001860u); /* 0x3000A80A: call 0x30001860 */ /* not lifted */
   6891     RECOMP_FLAGS_IN();
   6892     ecx = MEM32(ebp + (-0x4)); /* 0x3000A80F: mov ecx, dword ptr [ebp - 4] */
   6893     edx = MEM32(esi + 0x8); /* 0x3000A812: mov edx, dword ptr [esi + 8] */
   6894     PUSH32(esp, ecx); /* 0x3000A815: push ecx */
   6895     PUSH32(esp, edx); /* 0x3000A816: push edx */
   6896     PUSH32(esp, edi); /* 0x3000A817: push edi */
   6897     RECOMP_ICALL(0x30001DC0u); /* 0x3000A818: call 0x30001dc0 */ /* not lifted */
   6898     RECOMP_FLAGS_IN();
   6899     eax = MEM32(esi + 0x8); /* 0x3000A81D: mov eax, dword ptr [esi + 8] */
   6900     ebx = MEM32(ebp + (-0x4)); /* 0x3000A820: mov ebx, dword ptr [ebp - 4] */
   6901     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6902     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6903     esp = esp + 0xCu; /* 0x3000A823: add esp, 0xc */
   6904     _flag_k = FK_ADD;
   6905     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6906     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6907     eax = eax + 0x14u; /* 0x3000A826: add eax, 0x14 */
   6908     _flag_k = FK_ADD;
   6909     MEM32(esi + 0x8) = eax; /* 0x3000A829: mov dword ptr [esi + 8], eax */
   6910     goto L_3000A860; /* 0x3000A82C: jmp 0x3000a860 */
   6911 L_3000A82E:
   6912     PUSH32(esp, ecx); /* 0x3000A82E: push ecx */
   6913     PUSH32(esp, ecx); /* 0x3000A82F: push ecx */
   6914     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   6915     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6916     ecx = ecx + 0xFFFFFFECu; /* 0x3000A830: add ecx, -0x14 */
   6917     _flag_k = FK_ADD;
   6918     PUSH32(esp, ecx); /* 0x3000A833: push ecx */
   6919     ecx = esi; /* 0x3000A834: mov ecx, esi */
   6920     RECOMP_ICALL(0x300017D0u); /* 0x3000A836: call 0x300017d0 */ /* not lifted */
   6921     RECOMP_FLAGS_IN();
   6922     eax = MEM32(esi + 0x8); /* 0x3000A83B: mov eax, dword ptr [esi + 8] */
   6923     PUSH32(esp, eax); /* 0x3000A83E: push eax */
   6924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
   6925     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6926     eax = eax + 0xFFFFFFECu; /* 0x3000A83F: add eax, -0x14 */
   6927     _flag_k = FK_ADD;
   6928     PUSH32(esp, eax); /* 0x3000A842: push eax */
   6929     PUSH32(esp, edi); /* 0x3000A843: push edi */
   6930     RECOMP_ICALL(0x30001D80u); /* 0x3000A844: call 0x30001d80 */ /* not lifted */
   6931     RECOMP_FLAGS_IN();
   6932     PUSH32(esp, ebx); /* 0x3000A849: push ebx */
   6933     eax = edi + 0x14; /* 0x3000A84A: lea eax, [edi + 0x14] */
   6934     PUSH32(esp, eax); /* 0x3000A84D: push eax */
   6935     PUSH32(esp, edi); /* 0x3000A84E: push edi */
   6936     RECOMP_ICALL(0x30001DC0u); /* 0x3000A84F: call 0x30001dc0 */ /* not lifted */
   6937     RECOMP_FLAGS_IN();
   6938     eax = MEM32(esi + 0x8); /* 0x3000A854: mov eax, dword ptr [esi + 8] */
   6939     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6940     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6941     esp = esp + 0x18u; /* 0x3000A857: add esp, 0x18 */
   6942     _flag_k = FK_ADD;
   6943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6944     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6945     eax = eax + 0x14u; /* 0x3000A85A: add eax, 0x14 */
   6946     _flag_k = FK_ADD;
   6947     MEM32(esi + 0x8) = eax; /* 0x3000A85D: mov dword ptr [esi + 8], eax */
   6948 L_3000A860:
   6949     ecx = MEM32(ebp + 0x8); /* 0x3000A860: mov ecx, dword ptr [ebp + 8] */
   6950     eax = MEM32(ecx + 0x8); /* 0x3000A863: mov eax, dword ptr [ecx + 8] */
   6951     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   6952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6953     ebx = ebx + 0x14u; /* 0x3000A866: add ebx, 0x14 */
   6954     _flag_k = FK_ADD;
   6955     /* cmp ebx, eax */ /* 0x3000A869: cmp ebx, eax */
   6956     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   6957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6958     _flag_k = FK_CMP;
   6959     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A86B: mov dword ptr [ebp - 4], ebx */
   6960     RECOMP_BACKEDGE();
   6961     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A689; /* 0x3000A86E: jne 0x3000a689 */
   6962 L_3000A874:
   6963     ebx = POP32_VAL(esp); /* 0x3000A874: pop ebx */
   6964     edi = POP32_VAL(esp); /* 0x3000A875: pop edi */
   6965     eax = esi; /* 0x3000A876: mov eax, esi */
   6966     esi = POP32_VAL(esp); /* 0x3000A878: pop esi */
   6967     esp = ebp; /* 0x3000A879: mov esp, ebp */
   6968     ebp = POP32_VAL(esp); /* 0x3000A87B: pop ebp */
   6969     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A87C: ret 4 */
   6970     RECOMP_REGS_OUT();
   6971 }
   6972 
   6973 void sub_3000A724(void) {
   6974     int _fpu_cmp = 0;
   6975     uint32_t _cf = 0;
   6976     int _df = 1;
   6977     uint32_t _flag_k = FK_NONE;
   6978     uint32_t _flag_a = 0, _flag_b = 0;
   6979     uint32_t _itail_tgt = 0;
   6980     RECOMP_REGS_LOCALS
   6981     RECOMP_ENTER(0x3000A724u);
   6982 
   6983     goto L_3000A724;
   6984 L_3000A689:
   6985     ecx = MEM32(esi + 0x8); /* 0x3000A689: mov ecx, dword ptr [esi + 8] */
   6986     edx = MEM32(esi + 0xC); /* 0x3000A68C: mov edx, dword ptr [esi + 0xc] */
   6987     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6988     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6989     edx = edx - ecx; /* 0x3000A68F: sub edx, ecx */
   6990     _flag_k = FK_CMP;
   6991     eax = 0x66666667u; /* 0x3000A691: mov eax, 0x66666667 */
   6992     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A696: imul edx */
   6993       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6994       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6995     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A698: sar edx, 3 */
   6996     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6997     edx = (uint32_t)((int32_t)edx >> 3u);
   6998     eax = edx; /* 0x3000A69B: mov eax, edx */
   6999     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A69D: shr eax, 0x1f */
   7000     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7001     eax = eax >> 31u; /* 0x3000A69D: shr eax, 0x1f */
   7002     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7003     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7004     edx = edx + eax; /* 0x3000A6A0: add edx, eax */
   7005     _flag_k = FK_ADD;
   7006     /* cmp edx, 1 */ /* 0x3000A6A2: cmp edx, 1 */
   7007     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7009     _flag_k = FK_CMP;
   7010     edi = ecx; /* 0x3000A6A5: mov edi, ecx */
   7011     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A7BC; /* 0x3000A6A7: jae 0x3000a7bc */
   7012 L_3000A6AD:
   7013     ebx = MEM32(esi + 0x4); /* 0x3000A6AD: mov ebx, dword ptr [esi + 4] */
   7014     /* test ebx, ebx */ /* 0x3000A6B0: test ebx, ebx */
   7015     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7016     _cf = 0;
   7017     _flag_k = FK_TEST;
   7018     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A6D1; /* 0x3000A6B2: je 0x3000a6d1 */
   7019 L_3000A6B4:
   7020     edx = ecx; /* 0x3000A6B4: mov edx, ecx */
   7021     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   7022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7023     edx = edx - ebx; /* 0x3000A6B6: sub edx, ebx */
   7024     _flag_k = FK_CMP;
   7025     eax = 0x66666667u; /* 0x3000A6B8: mov eax, 0x66666667 */
   7026     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A6BD: imul edx */
   7027       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7028       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7029     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6BF: sar edx, 3 */
   7030     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7031     edx = (uint32_t)((int32_t)edx >> 3u);
   7032     eax = edx; /* 0x3000A6C2: mov eax, edx */
   7033     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A6C4: shr eax, 0x1f */
   7034     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7035     eax = eax >> 31u; /* 0x3000A6C4: shr eax, 0x1f */
   7036     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7037     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7038     edx = edx + eax; /* 0x3000A6C7: add edx, eax */
   7039     _flag_k = FK_ADD;
   7040     /* cmp edx, 1 */ /* 0x3000A6C9: cmp edx, 1 */
   7041     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7043     _flag_k = FK_CMP;
   7044     MEM32(ebp + (-0x8)) = edx; /* 0x3000A6CC: mov dword ptr [ebp - 8], edx */
   7045     if (CMP_A(_flag_a, _flag_b)) goto L_3000A6D8; /* 0x3000A6CF: ja 0x3000a6d8 */
   7046 L_3000A6D1:
   7047     MEM32(ebp + (-0x8)) = 1; /* 0x3000A6D1: mov dword ptr [ebp - 8], 1 */
   7048 L_3000A6D8:
   7049     /* test ebx, ebx */ /* 0x3000A6D8: test ebx, ebx */
   7050     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7051     _cf = 0;
   7052     _flag_k = FK_TEST;
   7053     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A6E0; /* 0x3000A6DA: jne 0x3000a6e0 */
   7054 L_3000A6DC:
   7055     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7056     edx = 0; /* 0x3000A6DC: xor edx, edx */
   7057     _cf = 0;
   7058     _flag_k = FK_TEST;
   7059     goto L_3000A6F3; /* 0x3000A6DE: jmp 0x3000a6f3 */
   7060 L_3000A6E0:
   7061     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7063     ecx = ecx - ebx; /* 0x3000A6E0: sub ecx, ebx */
   7064     _flag_k = FK_CMP;
   7065     eax = 0x66666667u; /* 0x3000A6E2: mov eax, 0x66666667 */
   7066     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A6E7: imul ecx */
   7067       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7068       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7069     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6E9: sar edx, 3 */
   7070     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7071     edx = (uint32_t)((int32_t)edx >> 3u);
   7072     ecx = edx; /* 0x3000A6EC: mov ecx, edx */
   7073     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A6EE: shr ecx, 0x1f */
   7074     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7075     ecx = ecx >> 31u; /* 0x3000A6EE: shr ecx, 0x1f */
   7076     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7078     edx = edx + ecx; /* 0x3000A6F1: add edx, ecx */
   7079     _flag_k = FK_ADD;
   7080 L_3000A6F3:
   7081     eax = MEM32(ebp + (-0x8)); /* 0x3000A6F3: mov eax, dword ptr [ebp - 8] */
   7082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7083     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7084     eax = eax + edx; /* 0x3000A6F6: add eax, edx */
   7085     _flag_k = FK_ADD;
   7086     /* test eax, eax */ /* 0x3000A6F8: test eax, eax */
   7087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7088     _cf = 0;
   7089     _flag_k = FK_TEST;
   7090     MEM32(ebp + (-0xC)) = eax; /* 0x3000A6FA: mov dword ptr [ebp - 0xc], eax */
   7091     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A701; /* 0x3000A6FD: jge 0x3000a701 */
   7092 L_3000A6FF:
   7093     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7094     eax = 0; /* 0x3000A6FF: xor eax, eax */
   7095     _cf = 0;
   7096     _flag_k = FK_TEST;
   7097 L_3000A701:
   7098     ecx = eax + eax * 4; /* 0x3000A701: lea ecx, [eax + eax*4] */
   7099     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A704: shl ecx, 2 */
   7100     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7101     ecx = ecx << 2u; /* 0x3000A704: shl ecx, 2 */
   7102     PUSH32(esp, ecx); /* 0x3000A707: push ecx */
   7103     RECOMP_ICALL(0x300180A8u); /* 0x3000A708: call 0x300180a8 */ /* not lifted */
   7104     RECOMP_FLAGS_IN();
   7105     MEM32(ebp + (-0x10)) = eax; /* 0x3000A70D: mov dword ptr [ebp - 0x10], eax */
   7106     ebx = eax; /* 0x3000A710: mov ebx, eax */
   7107     eax = MEM32(esi + 0x4); /* 0x3000A712: mov eax, dword ptr [esi + 4] */
   7108     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7109     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7110     esp = esp + 4; /* 0x3000A715: add esp, 4 */
   7111     _flag_k = FK_ADD;
   7112     /* cmp eax, edi */ /* 0x3000A718: cmp eax, edi */
   7113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7115     _flag_k = FK_CMP;
   7116     MEM32(ebp + (-0x8)) = eax; /* 0x3000A71A: mov dword ptr [ebp - 8], eax */
   7117     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A73E; /* 0x3000A71D: je 0x3000a73e */
   7118 L_3000A71F:
   7119     goto L_3000A724; /* 0x3000A71F: jmp 0x3000a724 */
   7120 L_3000A721:
   7121     eax = MEM32(ebp + (-0x8)); /* 0x3000A721: mov eax, dword ptr [ebp - 8] */
   7122 L_3000A724:
   7123     PUSH32(esp, eax); /* 0x3000A724: push eax */
   7124     PUSH32(esp, ebx); /* 0x3000A725: push ebx */
   7125     RECOMP_ICALL(0x30001DF0u); /* 0x3000A726: call 0x30001df0 */ /* not lifted */
   7126     RECOMP_FLAGS_IN();
   7127     eax = MEM32(ebp + (-0x8)); /* 0x3000A72B: mov eax, dword ptr [ebp - 8] */
   7128     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7129     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7130     eax = eax + 0x14u; /* 0x3000A72E: add eax, 0x14 */
   7131     _flag_k = FK_ADD;
   7132     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7134     esp = esp + 8; /* 0x3000A731: add esp, 8 */
   7135     _flag_k = FK_ADD;
   7136     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   7137     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7138     ebx = ebx + 0x14u; /* 0x3000A734: add ebx, 0x14 */
   7139     _flag_k = FK_ADD;
   7140     /* cmp eax, edi */ /* 0x3000A737: cmp eax, edi */
   7141     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7142     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7143     _flag_k = FK_CMP;
   7144     MEM32(ebp + (-0x8)) = eax; /* 0x3000A739: mov dword ptr [ebp - 8], eax */
   7145     RECOMP_BACKEDGE();
   7146     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A721; /* 0x3000A73C: jne 0x3000a721 */
   7147 L_3000A73E:
   7148     edx = MEM32(ebp + (-0x4)); /* 0x3000A73E: mov edx, dword ptr [ebp - 4] */
   7149     PUSH32(esp, edx); /* 0x3000A741: push edx */
   7150     PUSH32(esp, 1); /* 0x3000A742: push 1 */
   7151     PUSH32(esp, ebx); /* 0x3000A744: push ebx */
   7152     ecx = esi; /* 0x3000A745: mov ecx, esi */
   7153     RECOMP_ICALL(0x30001860u); /* 0x3000A747: call 0x30001860 */ /* not lifted */
   7154     RECOMP_FLAGS_IN();
   7155     eax = MEM32(esi + 0x8); /* 0x3000A74C: mov eax, dword ptr [esi + 8] */
   7156     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   7157     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7158     ebx = ebx + 0x14u; /* 0x3000A74F: add ebx, 0x14 */
   7159     _flag_k = FK_ADD;
   7160     PUSH32(esp, ebx); /* 0x3000A752: push ebx */
   7161     PUSH32(esp, eax); /* 0x3000A753: push eax */
   7162     PUSH32(esp, edi); /* 0x3000A754: push edi */
   7163     ecx = esi; /* 0x3000A755: mov ecx, esi */
   7164     RECOMP_ICALL(0x300017D0u); /* 0x3000A757: call 0x300017d0 */ /* not lifted */
   7165     RECOMP_FLAGS_IN();
   7166     ecx = MEM32(esi + 0x8); /* 0x3000A75C: mov ecx, dword ptr [esi + 8] */
   7167     edx = MEM32(esi + 0x4); /* 0x3000A75F: mov edx, dword ptr [esi + 4] */
   7168     PUSH32(esp, ecx); /* 0x3000A762: push ecx */
   7169     PUSH32(esp, edx); /* 0x3000A763: push edx */
   7170     ecx = esi; /* 0x3000A764: mov ecx, esi */
   7171     RECOMP_ICALL(0x300017A0u); /* 0x3000A766: call 0x300017a0 */ /* not lifted */
   7172     RECOMP_FLAGS_IN();
   7173     eax = MEM32(esi + 0x4); /* 0x3000A76B: mov eax, dword ptr [esi + 4] */
   7174     PUSH32(esp, eax); /* 0x3000A76E: push eax */
   7175     RECOMP_ICALL(0x30018080u); /* 0x3000A76F: call 0x30018080 */ /* not lifted */
   7176     RECOMP_FLAGS_IN();
   7177     eax = MEM32(ebp + (-0xC)); /* 0x3000A774: mov eax, dword ptr [ebp - 0xc] */
   7178     edi = MEM32(ebp + (-0x10)); /* 0x3000A777: mov edi, dword ptr [ebp - 0x10] */
   7179     ecx = eax + eax * 4; /* 0x3000A77A: lea ecx, [eax + eax*4] */
   7180     eax = MEM32(esi + 0x4); /* 0x3000A77D: mov eax, dword ptr [esi + 4] */
   7181     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7182     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7183     esp = esp + 4; /* 0x3000A780: add esp, 4 */
   7184     _flag_k = FK_ADD;
   7185     /* test eax, eax */ /* 0x3000A783: test eax, eax */
   7186     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7187     _cf = 0;
   7188     _flag_k = FK_TEST;
   7189     edx = edi + ecx * 4; /* 0x3000A785: lea edx, [edi + ecx*4] */
   7190     MEM32(esi + 0xC) = edx; /* 0x3000A788: mov dword ptr [esi + 0xc], edx */
   7191     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A791; /* 0x3000A78B: jne 0x3000a791 */
   7192 L_3000A78D:
   7193     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7194     edx = 0; /* 0x3000A78D: xor edx, edx */
   7195     _cf = 0;
   7196     _flag_k = FK_TEST;
   7197     goto L_3000A7A7; /* 0x3000A78F: jmp 0x3000a7a7 */
   7198 L_3000A791:
   7199     ecx = MEM32(esi + 0x8); /* 0x3000A791: mov ecx, dword ptr [esi + 8] */
   7200     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7202     ecx = ecx - eax; /* 0x3000A794: sub ecx, eax */
   7203     _flag_k = FK_CMP;
   7204     eax = 0x66666667u; /* 0x3000A796: mov eax, 0x66666667 */
   7205     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A79B: imul ecx */
   7206       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7207       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7208     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A79D: sar edx, 3 */
   7209     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7210     edx = (uint32_t)((int32_t)edx >> 3u);
   7211     eax = edx; /* 0x3000A7A0: mov eax, edx */
   7212     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7A2: shr eax, 0x1f */
   7213     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7214     eax = eax >> 31u; /* 0x3000A7A2: shr eax, 0x1f */
   7215     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7216     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7217     edx = edx + eax; /* 0x3000A7A5: add edx, eax */
   7218     _flag_k = FK_ADD;
   7219 L_3000A7A7:
   7220     ebx = MEM32(ebp + (-0x4)); /* 0x3000A7A7: mov ebx, dword ptr [ebp - 4] */
   7221     ecx = edx + edx * 4 + 0x5; /* 0x3000A7AA: lea ecx, [edx + edx*4 + 5] */
   7222     edx = edi + ecx * 4; /* 0x3000A7AE: lea edx, [edi + ecx*4] */
   7223     MEM32(esi + 0x8) = edx; /* 0x3000A7B1: mov dword ptr [esi + 8], edx */
   7224     MEM32(esi + 0x4) = edi; /* 0x3000A7B4: mov dword ptr [esi + 4], edi */
   7225     goto L_3000A860; /* 0x3000A7B7: jmp 0x3000a860 */
   7226 L_3000A7BC:
   7227     edx = ecx; /* 0x3000A7BC: mov edx, ecx */
   7228     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7229     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7230     edx = edx - edi; /* 0x3000A7BE: sub edx, edi */
   7231     _flag_k = FK_CMP;
   7232     eax = 0x66666667u; /* 0x3000A7C0: mov eax, 0x66666667 */
   7233     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A7C5: imul edx */
   7234       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7235       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7236     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7C7: sar edx, 3 */
   7237     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7238     edx = (uint32_t)((int32_t)edx >> 3u);
   7239     eax = edx; /* 0x3000A7CA: mov eax, edx */
   7240     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7CC: shr eax, 0x1f */
   7241     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7242     eax = eax >> 31u; /* 0x3000A7CC: shr eax, 0x1f */
   7243     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7244     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7245     edx = edx + eax; /* 0x3000A7CF: add edx, eax */
   7246     _flag_k = FK_ADD;
   7247     /* cmp edx, 1 */ /* 0x3000A7D1: cmp edx, 1 */
   7248     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7250     _flag_k = FK_CMP;
   7251     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A82E; /* 0x3000A7D4: jae 0x3000a82e */
   7252 L_3000A7D6:
   7253     edx = edi + 0x14; /* 0x3000A7D6: lea edx, [edi + 0x14] */
   7254     PUSH32(esp, edx); /* 0x3000A7D9: push edx */
   7255     PUSH32(esp, ecx); /* 0x3000A7DA: push ecx */
   7256     PUSH32(esp, edi); /* 0x3000A7DB: push edi */
   7257     ecx = esi; /* 0x3000A7DC: mov ecx, esi */
   7258     RECOMP_ICALL(0x300017D0u); /* 0x3000A7DE: call 0x300017d0 */ /* not lifted */
   7259     RECOMP_FLAGS_IN();
   7260     ebx = MEM32(esi + 0x8); /* 0x3000A7E3: mov ebx, dword ptr [esi + 8] */
   7261     eax = MEM32(ebp + (-0x4)); /* 0x3000A7E6: mov eax, dword ptr [ebp - 4] */
   7262     PUSH32(esp, eax); /* 0x3000A7E9: push eax */
   7263     ecx = ebx; /* 0x3000A7EA: mov ecx, ebx */
   7264     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   7265     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7266     ecx = ecx - edi; /* 0x3000A7EC: sub ecx, edi */
   7267     _flag_k = FK_CMP;
   7268     eax = 0x66666667u; /* 0x3000A7EE: mov eax, 0x66666667 */
   7269     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A7F3: imul ecx */
   7270       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7271       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7272     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7F5: sar edx, 3 */
   7273     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7274     edx = (uint32_t)((int32_t)edx >> 3u);
   7275     ecx = edx; /* 0x3000A7F8: mov ecx, edx */
   7276     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A7FA: shr ecx, 0x1f */
   7277     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7278     ecx = ecx >> 31u; /* 0x3000A7FA: shr ecx, 0x1f */
   7279     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7281     edx = edx + ecx; /* 0x3000A7FD: add edx, ecx */
   7282     _flag_k = FK_ADD;
   7283     eax = 1; /* 0x3000A7FF: mov eax, 1 */
   7284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7286     eax = eax - edx; /* 0x3000A804: sub eax, edx */
   7287     _flag_k = FK_CMP;
   7288     PUSH32(esp, eax); /* 0x3000A806: push eax */
   7289     PUSH32(esp, ebx); /* 0x3000A807: push ebx */
   7290     ecx = esi; /* 0x3000A808: mov ecx, esi */
   7291     RECOMP_ICALL(0x30001860u); /* 0x3000A80A: call 0x30001860 */ /* not lifted */
   7292     RECOMP_FLAGS_IN();
   7293     ecx = MEM32(ebp + (-0x4)); /* 0x3000A80F: mov ecx, dword ptr [ebp - 4] */
   7294     edx = MEM32(esi + 0x8); /* 0x3000A812: mov edx, dword ptr [esi + 8] */
   7295     PUSH32(esp, ecx); /* 0x3000A815: push ecx */
   7296     PUSH32(esp, edx); /* 0x3000A816: push edx */
   7297     PUSH32(esp, edi); /* 0x3000A817: push edi */
   7298     RECOMP_ICALL(0x30001DC0u); /* 0x3000A818: call 0x30001dc0 */ /* not lifted */
   7299     RECOMP_FLAGS_IN();
   7300     eax = MEM32(esi + 0x8); /* 0x3000A81D: mov eax, dword ptr [esi + 8] */
   7301     ebx = MEM32(ebp + (-0x4)); /* 0x3000A820: mov ebx, dword ptr [ebp - 4] */
   7302     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7303     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7304     esp = esp + 0xCu; /* 0x3000A823: add esp, 0xc */
   7305     _flag_k = FK_ADD;
   7306     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7307     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7308     eax = eax + 0x14u; /* 0x3000A826: add eax, 0x14 */
   7309     _flag_k = FK_ADD;
   7310     MEM32(esi + 0x8) = eax; /* 0x3000A829: mov dword ptr [esi + 8], eax */
   7311     goto L_3000A860; /* 0x3000A82C: jmp 0x3000a860 */
   7312 L_3000A82E:
   7313     PUSH32(esp, ecx); /* 0x3000A82E: push ecx */
   7314     PUSH32(esp, ecx); /* 0x3000A82F: push ecx */
   7315     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   7316     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7317     ecx = ecx + 0xFFFFFFECu; /* 0x3000A830: add ecx, -0x14 */
   7318     _flag_k = FK_ADD;
   7319     PUSH32(esp, ecx); /* 0x3000A833: push ecx */
   7320     ecx = esi; /* 0x3000A834: mov ecx, esi */
   7321     RECOMP_ICALL(0x300017D0u); /* 0x3000A836: call 0x300017d0 */ /* not lifted */
   7322     RECOMP_FLAGS_IN();
   7323     eax = MEM32(esi + 0x8); /* 0x3000A83B: mov eax, dword ptr [esi + 8] */
   7324     PUSH32(esp, eax); /* 0x3000A83E: push eax */
   7325     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
   7326     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7327     eax = eax + 0xFFFFFFECu; /* 0x3000A83F: add eax, -0x14 */
   7328     _flag_k = FK_ADD;
   7329     PUSH32(esp, eax); /* 0x3000A842: push eax */
   7330     PUSH32(esp, edi); /* 0x3000A843: push edi */
   7331     RECOMP_ICALL(0x30001D80u); /* 0x3000A844: call 0x30001d80 */ /* not lifted */
   7332     RECOMP_FLAGS_IN();
   7333     PUSH32(esp, ebx); /* 0x3000A849: push ebx */
   7334     eax = edi + 0x14; /* 0x3000A84A: lea eax, [edi + 0x14] */
   7335     PUSH32(esp, eax); /* 0x3000A84D: push eax */
   7336     PUSH32(esp, edi); /* 0x3000A84E: push edi */
   7337     RECOMP_ICALL(0x30001DC0u); /* 0x3000A84F: call 0x30001dc0 */ /* not lifted */
   7338     RECOMP_FLAGS_IN();
   7339     eax = MEM32(esi + 0x8); /* 0x3000A854: mov eax, dword ptr [esi + 8] */
   7340     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7342     esp = esp + 0x18u; /* 0x3000A857: add esp, 0x18 */
   7343     _flag_k = FK_ADD;
   7344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7345     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7346     eax = eax + 0x14u; /* 0x3000A85A: add eax, 0x14 */
   7347     _flag_k = FK_ADD;
   7348     MEM32(esi + 0x8) = eax; /* 0x3000A85D: mov dword ptr [esi + 8], eax */
   7349 L_3000A860:
   7350     ecx = MEM32(ebp + 0x8); /* 0x3000A860: mov ecx, dword ptr [ebp + 8] */
   7351     eax = MEM32(ecx + 0x8); /* 0x3000A863: mov eax, dword ptr [ecx + 8] */
   7352     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   7353     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7354     ebx = ebx + 0x14u; /* 0x3000A866: add ebx, 0x14 */
   7355     _flag_k = FK_ADD;
   7356     /* cmp ebx, eax */ /* 0x3000A869: cmp ebx, eax */
   7357     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   7358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7359     _flag_k = FK_CMP;
   7360     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A86B: mov dword ptr [ebp - 4], ebx */
   7361     RECOMP_BACKEDGE();
   7362     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A689; /* 0x3000A86E: jne 0x3000a689 */
   7363 L_3000A874:
   7364     ebx = POP32_VAL(esp); /* 0x3000A874: pop ebx */
   7365     edi = POP32_VAL(esp); /* 0x3000A875: pop edi */
   7366     eax = esi; /* 0x3000A876: mov eax, esi */
   7367     esi = POP32_VAL(esp); /* 0x3000A878: pop esi */
   7368     esp = ebp; /* 0x3000A879: mov esp, ebp */
   7369     ebp = POP32_VAL(esp); /* 0x3000A87B: pop ebp */
   7370     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A87C: ret 4 */
   7371     RECOMP_REGS_OUT();
   7372 }
   7373 
   7374 void sub_3000A7A7(void) {
   7375     int _fpu_cmp = 0;
   7376     uint32_t _cf = 0;
   7377     int _df = 1;
   7378     uint32_t _flag_k = FK_NONE;
   7379     uint32_t _flag_a = 0, _flag_b = 0;
   7380     uint32_t _itail_tgt = 0;
   7381     RECOMP_REGS_LOCALS
   7382     RECOMP_ENTER(0x3000A7A7u);
   7383 
   7384     goto L_3000A7A7;
   7385 L_3000A689:
   7386     ecx = MEM32(esi + 0x8); /* 0x3000A689: mov ecx, dword ptr [esi + 8] */
   7387     edx = MEM32(esi + 0xC); /* 0x3000A68C: mov edx, dword ptr [esi + 0xc] */
   7388     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7390     edx = edx - ecx; /* 0x3000A68F: sub edx, ecx */
   7391     _flag_k = FK_CMP;
   7392     eax = 0x66666667u; /* 0x3000A691: mov eax, 0x66666667 */
   7393     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A696: imul edx */
   7394       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7395       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7396     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A698: sar edx, 3 */
   7397     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7398     edx = (uint32_t)((int32_t)edx >> 3u);
   7399     eax = edx; /* 0x3000A69B: mov eax, edx */
   7400     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A69D: shr eax, 0x1f */
   7401     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7402     eax = eax >> 31u; /* 0x3000A69D: shr eax, 0x1f */
   7403     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7404     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7405     edx = edx + eax; /* 0x3000A6A0: add edx, eax */
   7406     _flag_k = FK_ADD;
   7407     /* cmp edx, 1 */ /* 0x3000A6A2: cmp edx, 1 */
   7408     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7410     _flag_k = FK_CMP;
   7411     edi = ecx; /* 0x3000A6A5: mov edi, ecx */
   7412     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A7BC; /* 0x3000A6A7: jae 0x3000a7bc */
   7413 L_3000A6AD:
   7414     ebx = MEM32(esi + 0x4); /* 0x3000A6AD: mov ebx, dword ptr [esi + 4] */
   7415     /* test ebx, ebx */ /* 0x3000A6B0: test ebx, ebx */
   7416     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7417     _cf = 0;
   7418     _flag_k = FK_TEST;
   7419     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A6D1; /* 0x3000A6B2: je 0x3000a6d1 */
   7420 L_3000A6B4:
   7421     edx = ecx; /* 0x3000A6B4: mov edx, ecx */
   7422     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   7423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7424     edx = edx - ebx; /* 0x3000A6B6: sub edx, ebx */
   7425     _flag_k = FK_CMP;
   7426     eax = 0x66666667u; /* 0x3000A6B8: mov eax, 0x66666667 */
   7427     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A6BD: imul edx */
   7428       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7429       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7430     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6BF: sar edx, 3 */
   7431     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7432     edx = (uint32_t)((int32_t)edx >> 3u);
   7433     eax = edx; /* 0x3000A6C2: mov eax, edx */
   7434     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A6C4: shr eax, 0x1f */
   7435     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7436     eax = eax >> 31u; /* 0x3000A6C4: shr eax, 0x1f */
   7437     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7438     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7439     edx = edx + eax; /* 0x3000A6C7: add edx, eax */
   7440     _flag_k = FK_ADD;
   7441     /* cmp edx, 1 */ /* 0x3000A6C9: cmp edx, 1 */
   7442     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7444     _flag_k = FK_CMP;
   7445     MEM32(ebp + (-0x8)) = edx; /* 0x3000A6CC: mov dword ptr [ebp - 8], edx */
   7446     if (CMP_A(_flag_a, _flag_b)) goto L_3000A6D8; /* 0x3000A6CF: ja 0x3000a6d8 */
   7447 L_3000A6D1:
   7448     MEM32(ebp + (-0x8)) = 1; /* 0x3000A6D1: mov dword ptr [ebp - 8], 1 */
   7449 L_3000A6D8:
   7450     /* test ebx, ebx */ /* 0x3000A6D8: test ebx, ebx */
   7451     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7452     _cf = 0;
   7453     _flag_k = FK_TEST;
   7454     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A6E0; /* 0x3000A6DA: jne 0x3000a6e0 */
   7455 L_3000A6DC:
   7456     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7457     edx = 0; /* 0x3000A6DC: xor edx, edx */
   7458     _cf = 0;
   7459     _flag_k = FK_TEST;
   7460     goto L_3000A6F3; /* 0x3000A6DE: jmp 0x3000a6f3 */
   7461 L_3000A6E0:
   7462     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7464     ecx = ecx - ebx; /* 0x3000A6E0: sub ecx, ebx */
   7465     _flag_k = FK_CMP;
   7466     eax = 0x66666667u; /* 0x3000A6E2: mov eax, 0x66666667 */
   7467     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A6E7: imul ecx */
   7468       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7469       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7470     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6E9: sar edx, 3 */
   7471     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7472     edx = (uint32_t)((int32_t)edx >> 3u);
   7473     ecx = edx; /* 0x3000A6EC: mov ecx, edx */
   7474     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A6EE: shr ecx, 0x1f */
   7475     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7476     ecx = ecx >> 31u; /* 0x3000A6EE: shr ecx, 0x1f */
   7477     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7478     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7479     edx = edx + ecx; /* 0x3000A6F1: add edx, ecx */
   7480     _flag_k = FK_ADD;
   7481 L_3000A6F3:
   7482     eax = MEM32(ebp + (-0x8)); /* 0x3000A6F3: mov eax, dword ptr [ebp - 8] */
   7483     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7484     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7485     eax = eax + edx; /* 0x3000A6F6: add eax, edx */
   7486     _flag_k = FK_ADD;
   7487     /* test eax, eax */ /* 0x3000A6F8: test eax, eax */
   7488     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7489     _cf = 0;
   7490     _flag_k = FK_TEST;
   7491     MEM32(ebp + (-0xC)) = eax; /* 0x3000A6FA: mov dword ptr [ebp - 0xc], eax */
   7492     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A701; /* 0x3000A6FD: jge 0x3000a701 */
   7493 L_3000A6FF:
   7494     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7495     eax = 0; /* 0x3000A6FF: xor eax, eax */
   7496     _cf = 0;
   7497     _flag_k = FK_TEST;
   7498 L_3000A701:
   7499     ecx = eax + eax * 4; /* 0x3000A701: lea ecx, [eax + eax*4] */
   7500     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A704: shl ecx, 2 */
   7501     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7502     ecx = ecx << 2u; /* 0x3000A704: shl ecx, 2 */
   7503     PUSH32(esp, ecx); /* 0x3000A707: push ecx */
   7504     RECOMP_ICALL(0x300180A8u); /* 0x3000A708: call 0x300180a8 */ /* not lifted */
   7505     RECOMP_FLAGS_IN();
   7506     MEM32(ebp + (-0x10)) = eax; /* 0x3000A70D: mov dword ptr [ebp - 0x10], eax */
   7507     ebx = eax; /* 0x3000A710: mov ebx, eax */
   7508     eax = MEM32(esi + 0x4); /* 0x3000A712: mov eax, dword ptr [esi + 4] */
   7509     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7510     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7511     esp = esp + 4; /* 0x3000A715: add esp, 4 */
   7512     _flag_k = FK_ADD;
   7513     /* cmp eax, edi */ /* 0x3000A718: cmp eax, edi */
   7514     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7515     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7516     _flag_k = FK_CMP;
   7517     MEM32(ebp + (-0x8)) = eax; /* 0x3000A71A: mov dword ptr [ebp - 8], eax */
   7518     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A73E; /* 0x3000A71D: je 0x3000a73e */
   7519 L_3000A71F:
   7520     goto L_3000A724; /* 0x3000A71F: jmp 0x3000a724 */
   7521 L_3000A721:
   7522     eax = MEM32(ebp + (-0x8)); /* 0x3000A721: mov eax, dword ptr [ebp - 8] */
   7523 L_3000A724:
   7524     PUSH32(esp, eax); /* 0x3000A724: push eax */
   7525     PUSH32(esp, ebx); /* 0x3000A725: push ebx */
   7526     RECOMP_ICALL(0x30001DF0u); /* 0x3000A726: call 0x30001df0 */ /* not lifted */
   7527     RECOMP_FLAGS_IN();
   7528     eax = MEM32(ebp + (-0x8)); /* 0x3000A72B: mov eax, dword ptr [ebp - 8] */
   7529     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7530     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7531     eax = eax + 0x14u; /* 0x3000A72E: add eax, 0x14 */
   7532     _flag_k = FK_ADD;
   7533     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7534     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7535     esp = esp + 8; /* 0x3000A731: add esp, 8 */
   7536     _flag_k = FK_ADD;
   7537     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   7538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7539     ebx = ebx + 0x14u; /* 0x3000A734: add ebx, 0x14 */
   7540     _flag_k = FK_ADD;
   7541     /* cmp eax, edi */ /* 0x3000A737: cmp eax, edi */
   7542     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7544     _flag_k = FK_CMP;
   7545     MEM32(ebp + (-0x8)) = eax; /* 0x3000A739: mov dword ptr [ebp - 8], eax */
   7546     RECOMP_BACKEDGE();
   7547     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A721; /* 0x3000A73C: jne 0x3000a721 */
   7548 L_3000A73E:
   7549     edx = MEM32(ebp + (-0x4)); /* 0x3000A73E: mov edx, dword ptr [ebp - 4] */
   7550     PUSH32(esp, edx); /* 0x3000A741: push edx */
   7551     PUSH32(esp, 1); /* 0x3000A742: push 1 */
   7552     PUSH32(esp, ebx); /* 0x3000A744: push ebx */
   7553     ecx = esi; /* 0x3000A745: mov ecx, esi */
   7554     RECOMP_ICALL(0x30001860u); /* 0x3000A747: call 0x30001860 */ /* not lifted */
   7555     RECOMP_FLAGS_IN();
   7556     eax = MEM32(esi + 0x8); /* 0x3000A74C: mov eax, dword ptr [esi + 8] */
   7557     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   7558     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7559     ebx = ebx + 0x14u; /* 0x3000A74F: add ebx, 0x14 */
   7560     _flag_k = FK_ADD;
   7561     PUSH32(esp, ebx); /* 0x3000A752: push ebx */
   7562     PUSH32(esp, eax); /* 0x3000A753: push eax */
   7563     PUSH32(esp, edi); /* 0x3000A754: push edi */
   7564     ecx = esi; /* 0x3000A755: mov ecx, esi */
   7565     RECOMP_ICALL(0x300017D0u); /* 0x3000A757: call 0x300017d0 */ /* not lifted */
   7566     RECOMP_FLAGS_IN();
   7567     ecx = MEM32(esi + 0x8); /* 0x3000A75C: mov ecx, dword ptr [esi + 8] */
   7568     edx = MEM32(esi + 0x4); /* 0x3000A75F: mov edx, dword ptr [esi + 4] */
   7569     PUSH32(esp, ecx); /* 0x3000A762: push ecx */
   7570     PUSH32(esp, edx); /* 0x3000A763: push edx */
   7571     ecx = esi; /* 0x3000A764: mov ecx, esi */
   7572     RECOMP_ICALL(0x300017A0u); /* 0x3000A766: call 0x300017a0 */ /* not lifted */
   7573     RECOMP_FLAGS_IN();
   7574     eax = MEM32(esi + 0x4); /* 0x3000A76B: mov eax, dword ptr [esi + 4] */
   7575     PUSH32(esp, eax); /* 0x3000A76E: push eax */
   7576     RECOMP_ICALL(0x30018080u); /* 0x3000A76F: call 0x30018080 */ /* not lifted */
   7577     RECOMP_FLAGS_IN();
   7578     eax = MEM32(ebp + (-0xC)); /* 0x3000A774: mov eax, dword ptr [ebp - 0xc] */
   7579     edi = MEM32(ebp + (-0x10)); /* 0x3000A777: mov edi, dword ptr [ebp - 0x10] */
   7580     ecx = eax + eax * 4; /* 0x3000A77A: lea ecx, [eax + eax*4] */
   7581     eax = MEM32(esi + 0x4); /* 0x3000A77D: mov eax, dword ptr [esi + 4] */
   7582     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7584     esp = esp + 4; /* 0x3000A780: add esp, 4 */
   7585     _flag_k = FK_ADD;
   7586     /* test eax, eax */ /* 0x3000A783: test eax, eax */
   7587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7588     _cf = 0;
   7589     _flag_k = FK_TEST;
   7590     edx = edi + ecx * 4; /* 0x3000A785: lea edx, [edi + ecx*4] */
   7591     MEM32(esi + 0xC) = edx; /* 0x3000A788: mov dword ptr [esi + 0xc], edx */
   7592     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A791; /* 0x3000A78B: jne 0x3000a791 */
   7593 L_3000A78D:
   7594     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7595     edx = 0; /* 0x3000A78D: xor edx, edx */
   7596     _cf = 0;
   7597     _flag_k = FK_TEST;
   7598     goto L_3000A7A7; /* 0x3000A78F: jmp 0x3000a7a7 */
   7599 L_3000A791:
   7600     ecx = MEM32(esi + 0x8); /* 0x3000A791: mov ecx, dword ptr [esi + 8] */
   7601     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7603     ecx = ecx - eax; /* 0x3000A794: sub ecx, eax */
   7604     _flag_k = FK_CMP;
   7605     eax = 0x66666667u; /* 0x3000A796: mov eax, 0x66666667 */
   7606     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A79B: imul ecx */
   7607       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7608       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7609     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A79D: sar edx, 3 */
   7610     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7611     edx = (uint32_t)((int32_t)edx >> 3u);
   7612     eax = edx; /* 0x3000A7A0: mov eax, edx */
   7613     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7A2: shr eax, 0x1f */
   7614     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7615     eax = eax >> 31u; /* 0x3000A7A2: shr eax, 0x1f */
   7616     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7617     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7618     edx = edx + eax; /* 0x3000A7A5: add edx, eax */
   7619     _flag_k = FK_ADD;
   7620 L_3000A7A7:
   7621     ebx = MEM32(ebp + (-0x4)); /* 0x3000A7A7: mov ebx, dword ptr [ebp - 4] */
   7622     ecx = edx + edx * 4 + 0x5; /* 0x3000A7AA: lea ecx, [edx + edx*4 + 5] */
   7623     edx = edi + ecx * 4; /* 0x3000A7AE: lea edx, [edi + ecx*4] */
   7624     MEM32(esi + 0x8) = edx; /* 0x3000A7B1: mov dword ptr [esi + 8], edx */
   7625     MEM32(esi + 0x4) = edi; /* 0x3000A7B4: mov dword ptr [esi + 4], edi */
   7626     goto L_3000A860; /* 0x3000A7B7: jmp 0x3000a860 */
   7627 L_3000A7BC:
   7628     edx = ecx; /* 0x3000A7BC: mov edx, ecx */
   7629     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7631     edx = edx - edi; /* 0x3000A7BE: sub edx, edi */
   7632     _flag_k = FK_CMP;
   7633     eax = 0x66666667u; /* 0x3000A7C0: mov eax, 0x66666667 */
   7634     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A7C5: imul edx */
   7635       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7636       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7637     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7C7: sar edx, 3 */
   7638     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7639     edx = (uint32_t)((int32_t)edx >> 3u);
   7640     eax = edx; /* 0x3000A7CA: mov eax, edx */
   7641     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7CC: shr eax, 0x1f */
   7642     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7643     eax = eax >> 31u; /* 0x3000A7CC: shr eax, 0x1f */
   7644     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7645     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7646     edx = edx + eax; /* 0x3000A7CF: add edx, eax */
   7647     _flag_k = FK_ADD;
   7648     /* cmp edx, 1 */ /* 0x3000A7D1: cmp edx, 1 */
   7649     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7651     _flag_k = FK_CMP;
   7652     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A82E; /* 0x3000A7D4: jae 0x3000a82e */
   7653 L_3000A7D6:
   7654     edx = edi + 0x14; /* 0x3000A7D6: lea edx, [edi + 0x14] */
   7655     PUSH32(esp, edx); /* 0x3000A7D9: push edx */
   7656     PUSH32(esp, ecx); /* 0x3000A7DA: push ecx */
   7657     PUSH32(esp, edi); /* 0x3000A7DB: push edi */
   7658     ecx = esi; /* 0x3000A7DC: mov ecx, esi */
   7659     RECOMP_ICALL(0x300017D0u); /* 0x3000A7DE: call 0x300017d0 */ /* not lifted */
   7660     RECOMP_FLAGS_IN();
   7661     ebx = MEM32(esi + 0x8); /* 0x3000A7E3: mov ebx, dword ptr [esi + 8] */
   7662     eax = MEM32(ebp + (-0x4)); /* 0x3000A7E6: mov eax, dword ptr [ebp - 4] */
   7663     PUSH32(esp, eax); /* 0x3000A7E9: push eax */
   7664     ecx = ebx; /* 0x3000A7EA: mov ecx, ebx */
   7665     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   7666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7667     ecx = ecx - edi; /* 0x3000A7EC: sub ecx, edi */
   7668     _flag_k = FK_CMP;
   7669     eax = 0x66666667u; /* 0x3000A7EE: mov eax, 0x66666667 */
   7670     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A7F3: imul ecx */
   7671       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7672       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7673     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7F5: sar edx, 3 */
   7674     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7675     edx = (uint32_t)((int32_t)edx >> 3u);
   7676     ecx = edx; /* 0x3000A7F8: mov ecx, edx */
   7677     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A7FA: shr ecx, 0x1f */
   7678     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7679     ecx = ecx >> 31u; /* 0x3000A7FA: shr ecx, 0x1f */
   7680     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7682     edx = edx + ecx; /* 0x3000A7FD: add edx, ecx */
   7683     _flag_k = FK_ADD;
   7684     eax = 1; /* 0x3000A7FF: mov eax, 1 */
   7685     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7687     eax = eax - edx; /* 0x3000A804: sub eax, edx */
   7688     _flag_k = FK_CMP;
   7689     PUSH32(esp, eax); /* 0x3000A806: push eax */
   7690     PUSH32(esp, ebx); /* 0x3000A807: push ebx */
   7691     ecx = esi; /* 0x3000A808: mov ecx, esi */
   7692     RECOMP_ICALL(0x30001860u); /* 0x3000A80A: call 0x30001860 */ /* not lifted */
   7693     RECOMP_FLAGS_IN();
   7694     ecx = MEM32(ebp + (-0x4)); /* 0x3000A80F: mov ecx, dword ptr [ebp - 4] */
   7695     edx = MEM32(esi + 0x8); /* 0x3000A812: mov edx, dword ptr [esi + 8] */
   7696     PUSH32(esp, ecx); /* 0x3000A815: push ecx */
   7697     PUSH32(esp, edx); /* 0x3000A816: push edx */
   7698     PUSH32(esp, edi); /* 0x3000A817: push edi */
   7699     RECOMP_ICALL(0x30001DC0u); /* 0x3000A818: call 0x30001dc0 */ /* not lifted */
   7700     RECOMP_FLAGS_IN();
   7701     eax = MEM32(esi + 0x8); /* 0x3000A81D: mov eax, dword ptr [esi + 8] */
   7702     ebx = MEM32(ebp + (-0x4)); /* 0x3000A820: mov ebx, dword ptr [ebp - 4] */
   7703     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7704     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7705     esp = esp + 0xCu; /* 0x3000A823: add esp, 0xc */
   7706     _flag_k = FK_ADD;
   7707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7708     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7709     eax = eax + 0x14u; /* 0x3000A826: add eax, 0x14 */
   7710     _flag_k = FK_ADD;
   7711     MEM32(esi + 0x8) = eax; /* 0x3000A829: mov dword ptr [esi + 8], eax */
   7712     goto L_3000A860; /* 0x3000A82C: jmp 0x3000a860 */
   7713 L_3000A82E:
   7714     PUSH32(esp, ecx); /* 0x3000A82E: push ecx */
   7715     PUSH32(esp, ecx); /* 0x3000A82F: push ecx */
   7716     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   7717     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7718     ecx = ecx + 0xFFFFFFECu; /* 0x3000A830: add ecx, -0x14 */
   7719     _flag_k = FK_ADD;
   7720     PUSH32(esp, ecx); /* 0x3000A833: push ecx */
   7721     ecx = esi; /* 0x3000A834: mov ecx, esi */
   7722     RECOMP_ICALL(0x300017D0u); /* 0x3000A836: call 0x300017d0 */ /* not lifted */
   7723     RECOMP_FLAGS_IN();
   7724     eax = MEM32(esi + 0x8); /* 0x3000A83B: mov eax, dword ptr [esi + 8] */
   7725     PUSH32(esp, eax); /* 0x3000A83E: push eax */
   7726     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
   7727     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7728     eax = eax + 0xFFFFFFECu; /* 0x3000A83F: add eax, -0x14 */
   7729     _flag_k = FK_ADD;
   7730     PUSH32(esp, eax); /* 0x3000A842: push eax */
   7731     PUSH32(esp, edi); /* 0x3000A843: push edi */
   7732     RECOMP_ICALL(0x30001D80u); /* 0x3000A844: call 0x30001d80 */ /* not lifted */
   7733     RECOMP_FLAGS_IN();
   7734     PUSH32(esp, ebx); /* 0x3000A849: push ebx */
   7735     eax = edi + 0x14; /* 0x3000A84A: lea eax, [edi + 0x14] */
   7736     PUSH32(esp, eax); /* 0x3000A84D: push eax */
   7737     PUSH32(esp, edi); /* 0x3000A84E: push edi */
   7738     RECOMP_ICALL(0x30001DC0u); /* 0x3000A84F: call 0x30001dc0 */ /* not lifted */
   7739     RECOMP_FLAGS_IN();
   7740     eax = MEM32(esi + 0x8); /* 0x3000A854: mov eax, dword ptr [esi + 8] */
   7741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7742     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7743     esp = esp + 0x18u; /* 0x3000A857: add esp, 0x18 */
   7744     _flag_k = FK_ADD;
   7745     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7747     eax = eax + 0x14u; /* 0x3000A85A: add eax, 0x14 */
   7748     _flag_k = FK_ADD;
   7749     MEM32(esi + 0x8) = eax; /* 0x3000A85D: mov dword ptr [esi + 8], eax */
   7750 L_3000A860:
   7751     ecx = MEM32(ebp + 0x8); /* 0x3000A860: mov ecx, dword ptr [ebp + 8] */
   7752     eax = MEM32(ecx + 0x8); /* 0x3000A863: mov eax, dword ptr [ecx + 8] */
   7753     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   7754     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7755     ebx = ebx + 0x14u; /* 0x3000A866: add ebx, 0x14 */
   7756     _flag_k = FK_ADD;
   7757     /* cmp ebx, eax */ /* 0x3000A869: cmp ebx, eax */
   7758     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   7759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7760     _flag_k = FK_CMP;
   7761     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A86B: mov dword ptr [ebp - 4], ebx */
   7762     RECOMP_BACKEDGE();
   7763     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A689; /* 0x3000A86E: jne 0x3000a689 */
   7764 L_3000A874:
   7765     ebx = POP32_VAL(esp); /* 0x3000A874: pop ebx */
   7766     edi = POP32_VAL(esp); /* 0x3000A875: pop edi */
   7767     eax = esi; /* 0x3000A876: mov eax, esi */
   7768     esi = POP32_VAL(esp); /* 0x3000A878: pop esi */
   7769     esp = ebp; /* 0x3000A879: mov esp, ebp */
   7770     ebp = POP32_VAL(esp); /* 0x3000A87B: pop ebp */
   7771     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A87C: ret 4 */
   7772     RECOMP_REGS_OUT();
   7773 }
   7774 
   7775 void sub_3000A7BC(void) {
   7776     int _fpu_cmp = 0;
   7777     uint32_t _cf = 0;
   7778     int _df = 1;
   7779     uint32_t _flag_k = FK_NONE;
   7780     uint32_t _flag_a = 0, _flag_b = 0;
   7781     uint32_t _itail_tgt = 0;
   7782     RECOMP_REGS_LOCALS
   7783     RECOMP_ENTER(0x3000A7BCu);
   7784 
   7785     goto L_3000A7BC;
   7786 L_3000A689:
   7787     ecx = MEM32(esi + 0x8); /* 0x3000A689: mov ecx, dword ptr [esi + 8] */
   7788     edx = MEM32(esi + 0xC); /* 0x3000A68C: mov edx, dword ptr [esi + 0xc] */
   7789     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7791     edx = edx - ecx; /* 0x3000A68F: sub edx, ecx */
   7792     _flag_k = FK_CMP;
   7793     eax = 0x66666667u; /* 0x3000A691: mov eax, 0x66666667 */
   7794     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A696: imul edx */
   7795       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7796       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7797     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A698: sar edx, 3 */
   7798     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7799     edx = (uint32_t)((int32_t)edx >> 3u);
   7800     eax = edx; /* 0x3000A69B: mov eax, edx */
   7801     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A69D: shr eax, 0x1f */
   7802     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7803     eax = eax >> 31u; /* 0x3000A69D: shr eax, 0x1f */
   7804     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7806     edx = edx + eax; /* 0x3000A6A0: add edx, eax */
   7807     _flag_k = FK_ADD;
   7808     /* cmp edx, 1 */ /* 0x3000A6A2: cmp edx, 1 */
   7809     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7811     _flag_k = FK_CMP;
   7812     edi = ecx; /* 0x3000A6A5: mov edi, ecx */
   7813     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A7BC; /* 0x3000A6A7: jae 0x3000a7bc */
   7814 L_3000A6AD:
   7815     ebx = MEM32(esi + 0x4); /* 0x3000A6AD: mov ebx, dword ptr [esi + 4] */
   7816     /* test ebx, ebx */ /* 0x3000A6B0: test ebx, ebx */
   7817     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7818     _cf = 0;
   7819     _flag_k = FK_TEST;
   7820     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A6D1; /* 0x3000A6B2: je 0x3000a6d1 */
   7821 L_3000A6B4:
   7822     edx = ecx; /* 0x3000A6B4: mov edx, ecx */
   7823     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   7824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7825     edx = edx - ebx; /* 0x3000A6B6: sub edx, ebx */
   7826     _flag_k = FK_CMP;
   7827     eax = 0x66666667u; /* 0x3000A6B8: mov eax, 0x66666667 */
   7828     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A6BD: imul edx */
   7829       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7830       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7831     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6BF: sar edx, 3 */
   7832     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7833     edx = (uint32_t)((int32_t)edx >> 3u);
   7834     eax = edx; /* 0x3000A6C2: mov eax, edx */
   7835     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A6C4: shr eax, 0x1f */
   7836     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7837     eax = eax >> 31u; /* 0x3000A6C4: shr eax, 0x1f */
   7838     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7839     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7840     edx = edx + eax; /* 0x3000A6C7: add edx, eax */
   7841     _flag_k = FK_ADD;
   7842     /* cmp edx, 1 */ /* 0x3000A6C9: cmp edx, 1 */
   7843     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7845     _flag_k = FK_CMP;
   7846     MEM32(ebp + (-0x8)) = edx; /* 0x3000A6CC: mov dword ptr [ebp - 8], edx */
   7847     if (CMP_A(_flag_a, _flag_b)) goto L_3000A6D8; /* 0x3000A6CF: ja 0x3000a6d8 */
   7848 L_3000A6D1:
   7849     MEM32(ebp + (-0x8)) = 1; /* 0x3000A6D1: mov dword ptr [ebp - 8], 1 */
   7850 L_3000A6D8:
   7851     /* test ebx, ebx */ /* 0x3000A6D8: test ebx, ebx */
   7852     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7853     _cf = 0;
   7854     _flag_k = FK_TEST;
   7855     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A6E0; /* 0x3000A6DA: jne 0x3000a6e0 */
   7856 L_3000A6DC:
   7857     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7858     edx = 0; /* 0x3000A6DC: xor edx, edx */
   7859     _cf = 0;
   7860     _flag_k = FK_TEST;
   7861     goto L_3000A6F3; /* 0x3000A6DE: jmp 0x3000a6f3 */
   7862 L_3000A6E0:
   7863     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7865     ecx = ecx - ebx; /* 0x3000A6E0: sub ecx, ebx */
   7866     _flag_k = FK_CMP;
   7867     eax = 0x66666667u; /* 0x3000A6E2: mov eax, 0x66666667 */
   7868     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A6E7: imul ecx */
   7869       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7870       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7871     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6E9: sar edx, 3 */
   7872     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7873     edx = (uint32_t)((int32_t)edx >> 3u);
   7874     ecx = edx; /* 0x3000A6EC: mov ecx, edx */
   7875     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A6EE: shr ecx, 0x1f */
   7876     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7877     ecx = ecx >> 31u; /* 0x3000A6EE: shr ecx, 0x1f */
   7878     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7880     edx = edx + ecx; /* 0x3000A6F1: add edx, ecx */
   7881     _flag_k = FK_ADD;
   7882 L_3000A6F3:
   7883     eax = MEM32(ebp + (-0x8)); /* 0x3000A6F3: mov eax, dword ptr [ebp - 8] */
   7884     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7885     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7886     eax = eax + edx; /* 0x3000A6F6: add eax, edx */
   7887     _flag_k = FK_ADD;
   7888     /* test eax, eax */ /* 0x3000A6F8: test eax, eax */
   7889     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7890     _cf = 0;
   7891     _flag_k = FK_TEST;
   7892     MEM32(ebp + (-0xC)) = eax; /* 0x3000A6FA: mov dword ptr [ebp - 0xc], eax */
   7893     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A701; /* 0x3000A6FD: jge 0x3000a701 */
   7894 L_3000A6FF:
   7895     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7896     eax = 0; /* 0x3000A6FF: xor eax, eax */
   7897     _cf = 0;
   7898     _flag_k = FK_TEST;
   7899 L_3000A701:
   7900     ecx = eax + eax * 4; /* 0x3000A701: lea ecx, [eax + eax*4] */
   7901     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A704: shl ecx, 2 */
   7902     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7903     ecx = ecx << 2u; /* 0x3000A704: shl ecx, 2 */
   7904     PUSH32(esp, ecx); /* 0x3000A707: push ecx */
   7905     RECOMP_ICALL(0x300180A8u); /* 0x3000A708: call 0x300180a8 */ /* not lifted */
   7906     RECOMP_FLAGS_IN();
   7907     MEM32(ebp + (-0x10)) = eax; /* 0x3000A70D: mov dword ptr [ebp - 0x10], eax */
   7908     ebx = eax; /* 0x3000A710: mov ebx, eax */
   7909     eax = MEM32(esi + 0x4); /* 0x3000A712: mov eax, dword ptr [esi + 4] */
   7910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7912     esp = esp + 4; /* 0x3000A715: add esp, 4 */
   7913     _flag_k = FK_ADD;
   7914     /* cmp eax, edi */ /* 0x3000A718: cmp eax, edi */
   7915     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7917     _flag_k = FK_CMP;
   7918     MEM32(ebp + (-0x8)) = eax; /* 0x3000A71A: mov dword ptr [ebp - 8], eax */
   7919     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A73E; /* 0x3000A71D: je 0x3000a73e */
   7920 L_3000A71F:
   7921     goto L_3000A724; /* 0x3000A71F: jmp 0x3000a724 */
   7922 L_3000A721:
   7923     eax = MEM32(ebp + (-0x8)); /* 0x3000A721: mov eax, dword ptr [ebp - 8] */
   7924 L_3000A724:
   7925     PUSH32(esp, eax); /* 0x3000A724: push eax */
   7926     PUSH32(esp, ebx); /* 0x3000A725: push ebx */
   7927     RECOMP_ICALL(0x30001DF0u); /* 0x3000A726: call 0x30001df0 */ /* not lifted */
   7928     RECOMP_FLAGS_IN();
   7929     eax = MEM32(ebp + (-0x8)); /* 0x3000A72B: mov eax, dword ptr [ebp - 8] */
   7930     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7931     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7932     eax = eax + 0x14u; /* 0x3000A72E: add eax, 0x14 */
   7933     _flag_k = FK_ADD;
   7934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7936     esp = esp + 8; /* 0x3000A731: add esp, 8 */
   7937     _flag_k = FK_ADD;
   7938     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   7939     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7940     ebx = ebx + 0x14u; /* 0x3000A734: add ebx, 0x14 */
   7941     _flag_k = FK_ADD;
   7942     /* cmp eax, edi */ /* 0x3000A737: cmp eax, edi */
   7943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7945     _flag_k = FK_CMP;
   7946     MEM32(ebp + (-0x8)) = eax; /* 0x3000A739: mov dword ptr [ebp - 8], eax */
   7947     RECOMP_BACKEDGE();
   7948     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A721; /* 0x3000A73C: jne 0x3000a721 */
   7949 L_3000A73E:
   7950     edx = MEM32(ebp + (-0x4)); /* 0x3000A73E: mov edx, dword ptr [ebp - 4] */
   7951     PUSH32(esp, edx); /* 0x3000A741: push edx */
   7952     PUSH32(esp, 1); /* 0x3000A742: push 1 */
   7953     PUSH32(esp, ebx); /* 0x3000A744: push ebx */
   7954     ecx = esi; /* 0x3000A745: mov ecx, esi */
   7955     RECOMP_ICALL(0x30001860u); /* 0x3000A747: call 0x30001860 */ /* not lifted */
   7956     RECOMP_FLAGS_IN();
   7957     eax = MEM32(esi + 0x8); /* 0x3000A74C: mov eax, dword ptr [esi + 8] */
   7958     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   7959     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7960     ebx = ebx + 0x14u; /* 0x3000A74F: add ebx, 0x14 */
   7961     _flag_k = FK_ADD;
   7962     PUSH32(esp, ebx); /* 0x3000A752: push ebx */
   7963     PUSH32(esp, eax); /* 0x3000A753: push eax */
   7964     PUSH32(esp, edi); /* 0x3000A754: push edi */
   7965     ecx = esi; /* 0x3000A755: mov ecx, esi */
   7966     RECOMP_ICALL(0x300017D0u); /* 0x3000A757: call 0x300017d0 */ /* not lifted */
   7967     RECOMP_FLAGS_IN();
   7968     ecx = MEM32(esi + 0x8); /* 0x3000A75C: mov ecx, dword ptr [esi + 8] */
   7969     edx = MEM32(esi + 0x4); /* 0x3000A75F: mov edx, dword ptr [esi + 4] */
   7970     PUSH32(esp, ecx); /* 0x3000A762: push ecx */
   7971     PUSH32(esp, edx); /* 0x3000A763: push edx */
   7972     ecx = esi; /* 0x3000A764: mov ecx, esi */
   7973     RECOMP_ICALL(0x300017A0u); /* 0x3000A766: call 0x300017a0 */ /* not lifted */
   7974     RECOMP_FLAGS_IN();
   7975     eax = MEM32(esi + 0x4); /* 0x3000A76B: mov eax, dword ptr [esi + 4] */
   7976     PUSH32(esp, eax); /* 0x3000A76E: push eax */
   7977     RECOMP_ICALL(0x30018080u); /* 0x3000A76F: call 0x30018080 */ /* not lifted */
   7978     RECOMP_FLAGS_IN();
   7979     eax = MEM32(ebp + (-0xC)); /* 0x3000A774: mov eax, dword ptr [ebp - 0xc] */
   7980     edi = MEM32(ebp + (-0x10)); /* 0x3000A777: mov edi, dword ptr [ebp - 0x10] */
   7981     ecx = eax + eax * 4; /* 0x3000A77A: lea ecx, [eax + eax*4] */
   7982     eax = MEM32(esi + 0x4); /* 0x3000A77D: mov eax, dword ptr [esi + 4] */
   7983     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7984     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7985     esp = esp + 4; /* 0x3000A780: add esp, 4 */
   7986     _flag_k = FK_ADD;
   7987     /* test eax, eax */ /* 0x3000A783: test eax, eax */
   7988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7989     _cf = 0;
   7990     _flag_k = FK_TEST;
   7991     edx = edi + ecx * 4; /* 0x3000A785: lea edx, [edi + ecx*4] */
   7992     MEM32(esi + 0xC) = edx; /* 0x3000A788: mov dword ptr [esi + 0xc], edx */
   7993     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A791; /* 0x3000A78B: jne 0x3000a791 */
   7994 L_3000A78D:
   7995     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7996     edx = 0; /* 0x3000A78D: xor edx, edx */
   7997     _cf = 0;
   7998     _flag_k = FK_TEST;
   7999     goto L_3000A7A7; /* 0x3000A78F: jmp 0x3000a7a7 */
   8000 L_3000A791:
   8001     ecx = MEM32(esi + 0x8); /* 0x3000A791: mov ecx, dword ptr [esi + 8] */
   8002     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8004     ecx = ecx - eax; /* 0x3000A794: sub ecx, eax */
   8005     _flag_k = FK_CMP;
   8006     eax = 0x66666667u; /* 0x3000A796: mov eax, 0x66666667 */
   8007     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A79B: imul ecx */
   8008       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8009       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8010     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A79D: sar edx, 3 */
   8011     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8012     edx = (uint32_t)((int32_t)edx >> 3u);
   8013     eax = edx; /* 0x3000A7A0: mov eax, edx */
   8014     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7A2: shr eax, 0x1f */
   8015     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8016     eax = eax >> 31u; /* 0x3000A7A2: shr eax, 0x1f */
   8017     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8018     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8019     edx = edx + eax; /* 0x3000A7A5: add edx, eax */
   8020     _flag_k = FK_ADD;
   8021 L_3000A7A7:
   8022     ebx = MEM32(ebp + (-0x4)); /* 0x3000A7A7: mov ebx, dword ptr [ebp - 4] */
   8023     ecx = edx + edx * 4 + 0x5; /* 0x3000A7AA: lea ecx, [edx + edx*4 + 5] */
   8024     edx = edi + ecx * 4; /* 0x3000A7AE: lea edx, [edi + ecx*4] */
   8025     MEM32(esi + 0x8) = edx; /* 0x3000A7B1: mov dword ptr [esi + 8], edx */
   8026     MEM32(esi + 0x4) = edi; /* 0x3000A7B4: mov dword ptr [esi + 4], edi */
   8027     goto L_3000A860; /* 0x3000A7B7: jmp 0x3000a860 */
   8028 L_3000A7BC:
   8029     edx = ecx; /* 0x3000A7BC: mov edx, ecx */
   8030     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   8031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8032     edx = edx - edi; /* 0x3000A7BE: sub edx, edi */
   8033     _flag_k = FK_CMP;
   8034     eax = 0x66666667u; /* 0x3000A7C0: mov eax, 0x66666667 */
   8035     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A7C5: imul edx */
   8036       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8037       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8038     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7C7: sar edx, 3 */
   8039     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8040     edx = (uint32_t)((int32_t)edx >> 3u);
   8041     eax = edx; /* 0x3000A7CA: mov eax, edx */
   8042     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7CC: shr eax, 0x1f */
   8043     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8044     eax = eax >> 31u; /* 0x3000A7CC: shr eax, 0x1f */
   8045     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8046     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8047     edx = edx + eax; /* 0x3000A7CF: add edx, eax */
   8048     _flag_k = FK_ADD;
   8049     /* cmp edx, 1 */ /* 0x3000A7D1: cmp edx, 1 */
   8050     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   8051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8052     _flag_k = FK_CMP;
   8053     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A82E; /* 0x3000A7D4: jae 0x3000a82e */
   8054 L_3000A7D6:
   8055     edx = edi + 0x14; /* 0x3000A7D6: lea edx, [edi + 0x14] */
   8056     PUSH32(esp, edx); /* 0x3000A7D9: push edx */
   8057     PUSH32(esp, ecx); /* 0x3000A7DA: push ecx */
   8058     PUSH32(esp, edi); /* 0x3000A7DB: push edi */
   8059     ecx = esi; /* 0x3000A7DC: mov ecx, esi */
   8060     RECOMP_ICALL(0x300017D0u); /* 0x3000A7DE: call 0x300017d0 */ /* not lifted */
   8061     RECOMP_FLAGS_IN();
   8062     ebx = MEM32(esi + 0x8); /* 0x3000A7E3: mov ebx, dword ptr [esi + 8] */
   8063     eax = MEM32(ebp + (-0x4)); /* 0x3000A7E6: mov eax, dword ptr [ebp - 4] */
   8064     PUSH32(esp, eax); /* 0x3000A7E9: push eax */
   8065     ecx = ebx; /* 0x3000A7EA: mov ecx, ebx */
   8066     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   8067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8068     ecx = ecx - edi; /* 0x3000A7EC: sub ecx, edi */
   8069     _flag_k = FK_CMP;
   8070     eax = 0x66666667u; /* 0x3000A7EE: mov eax, 0x66666667 */
   8071     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A7F3: imul ecx */
   8072       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8073       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8074     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7F5: sar edx, 3 */
   8075     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8076     edx = (uint32_t)((int32_t)edx >> 3u);
   8077     ecx = edx; /* 0x3000A7F8: mov ecx, edx */
   8078     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A7FA: shr ecx, 0x1f */
   8079     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8080     ecx = ecx >> 31u; /* 0x3000A7FA: shr ecx, 0x1f */
   8081     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   8082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8083     edx = edx + ecx; /* 0x3000A7FD: add edx, ecx */
   8084     _flag_k = FK_ADD;
   8085     eax = 1; /* 0x3000A7FF: mov eax, 1 */
   8086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   8087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8088     eax = eax - edx; /* 0x3000A804: sub eax, edx */
   8089     _flag_k = FK_CMP;
   8090     PUSH32(esp, eax); /* 0x3000A806: push eax */
   8091     PUSH32(esp, ebx); /* 0x3000A807: push ebx */
   8092     ecx = esi; /* 0x3000A808: mov ecx, esi */
   8093     RECOMP_ICALL(0x30001860u); /* 0x3000A80A: call 0x30001860 */ /* not lifted */
   8094     RECOMP_FLAGS_IN();
   8095     ecx = MEM32(ebp + (-0x4)); /* 0x3000A80F: mov ecx, dword ptr [ebp - 4] */
   8096     edx = MEM32(esi + 0x8); /* 0x3000A812: mov edx, dword ptr [esi + 8] */
   8097     PUSH32(esp, ecx); /* 0x3000A815: push ecx */
   8098     PUSH32(esp, edx); /* 0x3000A816: push edx */
   8099     PUSH32(esp, edi); /* 0x3000A817: push edi */
   8100     RECOMP_ICALL(0x30001DC0u); /* 0x3000A818: call 0x30001dc0 */ /* not lifted */
   8101     RECOMP_FLAGS_IN();
   8102     eax = MEM32(esi + 0x8); /* 0x3000A81D: mov eax, dword ptr [esi + 8] */
   8103     ebx = MEM32(ebp + (-0x4)); /* 0x3000A820: mov ebx, dword ptr [ebp - 4] */
   8104     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8105     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8106     esp = esp + 0xCu; /* 0x3000A823: add esp, 0xc */
   8107     _flag_k = FK_ADD;
   8108     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   8109     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8110     eax = eax + 0x14u; /* 0x3000A826: add eax, 0x14 */
   8111     _flag_k = FK_ADD;
   8112     MEM32(esi + 0x8) = eax; /* 0x3000A829: mov dword ptr [esi + 8], eax */
   8113     goto L_3000A860; /* 0x3000A82C: jmp 0x3000a860 */
   8114 L_3000A82E:
   8115     PUSH32(esp, ecx); /* 0x3000A82E: push ecx */
   8116     PUSH32(esp, ecx); /* 0x3000A82F: push ecx */
   8117     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   8118     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8119     ecx = ecx + 0xFFFFFFECu; /* 0x3000A830: add ecx, -0x14 */
   8120     _flag_k = FK_ADD;
   8121     PUSH32(esp, ecx); /* 0x3000A833: push ecx */
   8122     ecx = esi; /* 0x3000A834: mov ecx, esi */
   8123     RECOMP_ICALL(0x300017D0u); /* 0x3000A836: call 0x300017d0 */ /* not lifted */
   8124     RECOMP_FLAGS_IN();
   8125     eax = MEM32(esi + 0x8); /* 0x3000A83B: mov eax, dword ptr [esi + 8] */
   8126     PUSH32(esp, eax); /* 0x3000A83E: push eax */
   8127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
   8128     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8129     eax = eax + 0xFFFFFFECu; /* 0x3000A83F: add eax, -0x14 */
   8130     _flag_k = FK_ADD;
   8131     PUSH32(esp, eax); /* 0x3000A842: push eax */
   8132     PUSH32(esp, edi); /* 0x3000A843: push edi */
   8133     RECOMP_ICALL(0x30001D80u); /* 0x3000A844: call 0x30001d80 */ /* not lifted */
   8134     RECOMP_FLAGS_IN();
   8135     PUSH32(esp, ebx); /* 0x3000A849: push ebx */
   8136     eax = edi + 0x14; /* 0x3000A84A: lea eax, [edi + 0x14] */
   8137     PUSH32(esp, eax); /* 0x3000A84D: push eax */
   8138     PUSH32(esp, edi); /* 0x3000A84E: push edi */
   8139     RECOMP_ICALL(0x30001DC0u); /* 0x3000A84F: call 0x30001dc0 */ /* not lifted */
   8140     RECOMP_FLAGS_IN();
   8141     eax = MEM32(esi + 0x8); /* 0x3000A854: mov eax, dword ptr [esi + 8] */
   8142     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8143     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8144     esp = esp + 0x18u; /* 0x3000A857: add esp, 0x18 */
   8145     _flag_k = FK_ADD;
   8146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   8147     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8148     eax = eax + 0x14u; /* 0x3000A85A: add eax, 0x14 */
   8149     _flag_k = FK_ADD;
   8150     MEM32(esi + 0x8) = eax; /* 0x3000A85D: mov dword ptr [esi + 8], eax */
   8151 L_3000A860:
   8152     ecx = MEM32(ebp + 0x8); /* 0x3000A860: mov ecx, dword ptr [ebp + 8] */
   8153     eax = MEM32(ecx + 0x8); /* 0x3000A863: mov eax, dword ptr [ecx + 8] */
   8154     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   8155     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8156     ebx = ebx + 0x14u; /* 0x3000A866: add ebx, 0x14 */
   8157     _flag_k = FK_ADD;
   8158     /* cmp ebx, eax */ /* 0x3000A869: cmp ebx, eax */
   8159     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   8160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8161     _flag_k = FK_CMP;
   8162     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A86B: mov dword ptr [ebp - 4], ebx */
   8163     RECOMP_BACKEDGE();
   8164     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A689; /* 0x3000A86E: jne 0x3000a689 */
   8165 L_3000A874:
   8166     ebx = POP32_VAL(esp); /* 0x3000A874: pop ebx */
   8167     edi = POP32_VAL(esp); /* 0x3000A875: pop edi */
   8168     eax = esi; /* 0x3000A876: mov eax, esi */
   8169     esi = POP32_VAL(esp); /* 0x3000A878: pop esi */
   8170     esp = ebp; /* 0x3000A879: mov esp, ebp */
   8171     ebp = POP32_VAL(esp); /* 0x3000A87B: pop ebp */
   8172     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A87C: ret 4 */
   8173     RECOMP_REGS_OUT();
   8174 }
   8175 
   8176 void sub_3000A860(void) {
   8177     int _fpu_cmp = 0;
   8178     uint32_t _cf = 0;
   8179     int _df = 1;
   8180     uint32_t _flag_k = FK_NONE;
   8181     uint32_t _flag_a = 0, _flag_b = 0;
   8182     uint32_t _itail_tgt = 0;
   8183     RECOMP_REGS_LOCALS
   8184     RECOMP_ENTER(0x3000A860u);
   8185 
   8186     goto L_3000A860;
   8187 L_3000A689:
   8188     ecx = MEM32(esi + 0x8); /* 0x3000A689: mov ecx, dword ptr [esi + 8] */
   8189     edx = MEM32(esi + 0xC); /* 0x3000A68C: mov edx, dword ptr [esi + 0xc] */
   8190     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   8191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8192     edx = edx - ecx; /* 0x3000A68F: sub edx, ecx */
   8193     _flag_k = FK_CMP;
   8194     eax = 0x66666667u; /* 0x3000A691: mov eax, 0x66666667 */
   8195     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A696: imul edx */
   8196       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8197       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8198     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A698: sar edx, 3 */
   8199     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8200     edx = (uint32_t)((int32_t)edx >> 3u);
   8201     eax = edx; /* 0x3000A69B: mov eax, edx */
   8202     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A69D: shr eax, 0x1f */
   8203     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8204     eax = eax >> 31u; /* 0x3000A69D: shr eax, 0x1f */
   8205     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8206     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8207     edx = edx + eax; /* 0x3000A6A0: add edx, eax */
   8208     _flag_k = FK_ADD;
   8209     /* cmp edx, 1 */ /* 0x3000A6A2: cmp edx, 1 */
   8210     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   8211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8212     _flag_k = FK_CMP;
   8213     edi = ecx; /* 0x3000A6A5: mov edi, ecx */
   8214     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A7BC; /* 0x3000A6A7: jae 0x3000a7bc */
   8215 L_3000A6AD:
   8216     ebx = MEM32(esi + 0x4); /* 0x3000A6AD: mov ebx, dword ptr [esi + 4] */
   8217     /* test ebx, ebx */ /* 0x3000A6B0: test ebx, ebx */
   8218     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   8219     _cf = 0;
   8220     _flag_k = FK_TEST;
   8221     if (TEST_Z(_flag_a, _flag_b)) goto L_3000A6D1; /* 0x3000A6B2: je 0x3000a6d1 */
   8222 L_3000A6B4:
   8223     edx = ecx; /* 0x3000A6B4: mov edx, ecx */
   8224     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   8225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8226     edx = edx - ebx; /* 0x3000A6B6: sub edx, ebx */
   8227     _flag_k = FK_CMP;
   8228     eax = 0x66666667u; /* 0x3000A6B8: mov eax, 0x66666667 */
   8229     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A6BD: imul edx */
   8230       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8231       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8232     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6BF: sar edx, 3 */
   8233     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8234     edx = (uint32_t)((int32_t)edx >> 3u);
   8235     eax = edx; /* 0x3000A6C2: mov eax, edx */
   8236     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A6C4: shr eax, 0x1f */
   8237     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8238     eax = eax >> 31u; /* 0x3000A6C4: shr eax, 0x1f */
   8239     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8241     edx = edx + eax; /* 0x3000A6C7: add edx, eax */
   8242     _flag_k = FK_ADD;
   8243     /* cmp edx, 1 */ /* 0x3000A6C9: cmp edx, 1 */
   8244     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   8245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8246     _flag_k = FK_CMP;
   8247     MEM32(ebp + (-0x8)) = edx; /* 0x3000A6CC: mov dword ptr [ebp - 8], edx */
   8248     if (CMP_A(_flag_a, _flag_b)) goto L_3000A6D8; /* 0x3000A6CF: ja 0x3000a6d8 */
   8249 L_3000A6D1:
   8250     MEM32(ebp + (-0x8)) = 1; /* 0x3000A6D1: mov dword ptr [ebp - 8], 1 */
   8251 L_3000A6D8:
   8252     /* test ebx, ebx */ /* 0x3000A6D8: test ebx, ebx */
   8253     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   8254     _cf = 0;
   8255     _flag_k = FK_TEST;
   8256     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A6E0; /* 0x3000A6DA: jne 0x3000a6e0 */
   8257 L_3000A6DC:
   8258     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8259     edx = 0; /* 0x3000A6DC: xor edx, edx */
   8260     _cf = 0;
   8261     _flag_k = FK_TEST;
   8262     goto L_3000A6F3; /* 0x3000A6DE: jmp 0x3000a6f3 */
   8263 L_3000A6E0:
   8264     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   8265     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8266     ecx = ecx - ebx; /* 0x3000A6E0: sub ecx, ebx */
   8267     _flag_k = FK_CMP;
   8268     eax = 0x66666667u; /* 0x3000A6E2: mov eax, 0x66666667 */
   8269     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A6E7: imul ecx */
   8270       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8271       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8272     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A6E9: sar edx, 3 */
   8273     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8274     edx = (uint32_t)((int32_t)edx >> 3u);
   8275     ecx = edx; /* 0x3000A6EC: mov ecx, edx */
   8276     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A6EE: shr ecx, 0x1f */
   8277     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8278     ecx = ecx >> 31u; /* 0x3000A6EE: shr ecx, 0x1f */
   8279     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   8280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8281     edx = edx + ecx; /* 0x3000A6F1: add edx, ecx */
   8282     _flag_k = FK_ADD;
   8283 L_3000A6F3:
   8284     eax = MEM32(ebp + (-0x8)); /* 0x3000A6F3: mov eax, dword ptr [ebp - 8] */
   8285     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   8286     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8287     eax = eax + edx; /* 0x3000A6F6: add eax, edx */
   8288     _flag_k = FK_ADD;
   8289     /* test eax, eax */ /* 0x3000A6F8: test eax, eax */
   8290     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8291     _cf = 0;
   8292     _flag_k = FK_TEST;
   8293     MEM32(ebp + (-0xC)) = eax; /* 0x3000A6FA: mov dword ptr [ebp - 0xc], eax */
   8294     if (TEST_NS(_flag_a, _flag_b)) goto L_3000A701; /* 0x3000A6FD: jge 0x3000a701 */
   8295 L_3000A6FF:
   8296     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8297     eax = 0; /* 0x3000A6FF: xor eax, eax */
   8298     _cf = 0;
   8299     _flag_k = FK_TEST;
   8300 L_3000A701:
   8301     ecx = eax + eax * 4; /* 0x3000A701: lea ecx, [eax + eax*4] */
   8302     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A704: shl ecx, 2 */
   8303     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8304     ecx = ecx << 2u; /* 0x3000A704: shl ecx, 2 */
   8305     PUSH32(esp, ecx); /* 0x3000A707: push ecx */
   8306     RECOMP_ICALL(0x300180A8u); /* 0x3000A708: call 0x300180a8 */ /* not lifted */
   8307     RECOMP_FLAGS_IN();
   8308     MEM32(ebp + (-0x10)) = eax; /* 0x3000A70D: mov dword ptr [ebp - 0x10], eax */
   8309     ebx = eax; /* 0x3000A710: mov ebx, eax */
   8310     eax = MEM32(esi + 0x4); /* 0x3000A712: mov eax, dword ptr [esi + 4] */
   8311     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8312     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8313     esp = esp + 4; /* 0x3000A715: add esp, 4 */
   8314     _flag_k = FK_ADD;
   8315     /* cmp eax, edi */ /* 0x3000A718: cmp eax, edi */
   8316     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8318     _flag_k = FK_CMP;
   8319     MEM32(ebp + (-0x8)) = eax; /* 0x3000A71A: mov dword ptr [ebp - 8], eax */
   8320     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A73E; /* 0x3000A71D: je 0x3000a73e */
   8321 L_3000A71F:
   8322     goto L_3000A724; /* 0x3000A71F: jmp 0x3000a724 */
   8323 L_3000A721:
   8324     eax = MEM32(ebp + (-0x8)); /* 0x3000A721: mov eax, dword ptr [ebp - 8] */
   8325 L_3000A724:
   8326     PUSH32(esp, eax); /* 0x3000A724: push eax */
   8327     PUSH32(esp, ebx); /* 0x3000A725: push ebx */
   8328     RECOMP_ICALL(0x30001DF0u); /* 0x3000A726: call 0x30001df0 */ /* not lifted */
   8329     RECOMP_FLAGS_IN();
   8330     eax = MEM32(ebp + (-0x8)); /* 0x3000A72B: mov eax, dword ptr [ebp - 8] */
   8331     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   8332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8333     eax = eax + 0x14u; /* 0x3000A72E: add eax, 0x14 */
   8334     _flag_k = FK_ADD;
   8335     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8336     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8337     esp = esp + 8; /* 0x3000A731: add esp, 8 */
   8338     _flag_k = FK_ADD;
   8339     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   8340     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8341     ebx = ebx + 0x14u; /* 0x3000A734: add ebx, 0x14 */
   8342     _flag_k = FK_ADD;
   8343     /* cmp eax, edi */ /* 0x3000A737: cmp eax, edi */
   8344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8346     _flag_k = FK_CMP;
   8347     MEM32(ebp + (-0x8)) = eax; /* 0x3000A739: mov dword ptr [ebp - 8], eax */
   8348     RECOMP_BACKEDGE();
   8349     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A721; /* 0x3000A73C: jne 0x3000a721 */
   8350 L_3000A73E:
   8351     edx = MEM32(ebp + (-0x4)); /* 0x3000A73E: mov edx, dword ptr [ebp - 4] */
   8352     PUSH32(esp, edx); /* 0x3000A741: push edx */
   8353     PUSH32(esp, 1); /* 0x3000A742: push 1 */
   8354     PUSH32(esp, ebx); /* 0x3000A744: push ebx */
   8355     ecx = esi; /* 0x3000A745: mov ecx, esi */
   8356     RECOMP_ICALL(0x30001860u); /* 0x3000A747: call 0x30001860 */ /* not lifted */
   8357     RECOMP_FLAGS_IN();
   8358     eax = MEM32(esi + 0x8); /* 0x3000A74C: mov eax, dword ptr [esi + 8] */
   8359     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   8360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8361     ebx = ebx + 0x14u; /* 0x3000A74F: add ebx, 0x14 */
   8362     _flag_k = FK_ADD;
   8363     PUSH32(esp, ebx); /* 0x3000A752: push ebx */
   8364     PUSH32(esp, eax); /* 0x3000A753: push eax */
   8365     PUSH32(esp, edi); /* 0x3000A754: push edi */
   8366     ecx = esi; /* 0x3000A755: mov ecx, esi */
   8367     RECOMP_ICALL(0x300017D0u); /* 0x3000A757: call 0x300017d0 */ /* not lifted */
   8368     RECOMP_FLAGS_IN();
   8369     ecx = MEM32(esi + 0x8); /* 0x3000A75C: mov ecx, dword ptr [esi + 8] */
   8370     edx = MEM32(esi + 0x4); /* 0x3000A75F: mov edx, dword ptr [esi + 4] */
   8371     PUSH32(esp, ecx); /* 0x3000A762: push ecx */
   8372     PUSH32(esp, edx); /* 0x3000A763: push edx */
   8373     ecx = esi; /* 0x3000A764: mov ecx, esi */
   8374     RECOMP_ICALL(0x300017A0u); /* 0x3000A766: call 0x300017a0 */ /* not lifted */
   8375     RECOMP_FLAGS_IN();
   8376     eax = MEM32(esi + 0x4); /* 0x3000A76B: mov eax, dword ptr [esi + 4] */
   8377     PUSH32(esp, eax); /* 0x3000A76E: push eax */
   8378     RECOMP_ICALL(0x30018080u); /* 0x3000A76F: call 0x30018080 */ /* not lifted */
   8379     RECOMP_FLAGS_IN();
   8380     eax = MEM32(ebp + (-0xC)); /* 0x3000A774: mov eax, dword ptr [ebp - 0xc] */
   8381     edi = MEM32(ebp + (-0x10)); /* 0x3000A777: mov edi, dword ptr [ebp - 0x10] */
   8382     ecx = eax + eax * 4; /* 0x3000A77A: lea ecx, [eax + eax*4] */
   8383     eax = MEM32(esi + 0x4); /* 0x3000A77D: mov eax, dword ptr [esi + 4] */
   8384     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8385     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8386     esp = esp + 4; /* 0x3000A780: add esp, 4 */
   8387     _flag_k = FK_ADD;
   8388     /* test eax, eax */ /* 0x3000A783: test eax, eax */
   8389     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8390     _cf = 0;
   8391     _flag_k = FK_TEST;
   8392     edx = edi + ecx * 4; /* 0x3000A785: lea edx, [edi + ecx*4] */
   8393     MEM32(esi + 0xC) = edx; /* 0x3000A788: mov dword ptr [esi + 0xc], edx */
   8394     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A791; /* 0x3000A78B: jne 0x3000a791 */
   8395 L_3000A78D:
   8396     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8397     edx = 0; /* 0x3000A78D: xor edx, edx */
   8398     _cf = 0;
   8399     _flag_k = FK_TEST;
   8400     goto L_3000A7A7; /* 0x3000A78F: jmp 0x3000a7a7 */
   8401 L_3000A791:
   8402     ecx = MEM32(esi + 0x8); /* 0x3000A791: mov ecx, dword ptr [esi + 8] */
   8403     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8405     ecx = ecx - eax; /* 0x3000A794: sub ecx, eax */
   8406     _flag_k = FK_CMP;
   8407     eax = 0x66666667u; /* 0x3000A796: mov eax, 0x66666667 */
   8408     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A79B: imul ecx */
   8409       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8410       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8411     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A79D: sar edx, 3 */
   8412     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8413     edx = (uint32_t)((int32_t)edx >> 3u);
   8414     eax = edx; /* 0x3000A7A0: mov eax, edx */
   8415     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7A2: shr eax, 0x1f */
   8416     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8417     eax = eax >> 31u; /* 0x3000A7A2: shr eax, 0x1f */
   8418     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8420     edx = edx + eax; /* 0x3000A7A5: add edx, eax */
   8421     _flag_k = FK_ADD;
   8422 L_3000A7A7:
   8423     ebx = MEM32(ebp + (-0x4)); /* 0x3000A7A7: mov ebx, dword ptr [ebp - 4] */
   8424     ecx = edx + edx * 4 + 0x5; /* 0x3000A7AA: lea ecx, [edx + edx*4 + 5] */
   8425     edx = edi + ecx * 4; /* 0x3000A7AE: lea edx, [edi + ecx*4] */
   8426     MEM32(esi + 0x8) = edx; /* 0x3000A7B1: mov dword ptr [esi + 8], edx */
   8427     MEM32(esi + 0x4) = edi; /* 0x3000A7B4: mov dword ptr [esi + 4], edi */
   8428     goto L_3000A860; /* 0x3000A7B7: jmp 0x3000a860 */
   8429 L_3000A7BC:
   8430     edx = ecx; /* 0x3000A7BC: mov edx, ecx */
   8431     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   8432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8433     edx = edx - edi; /* 0x3000A7BE: sub edx, edi */
   8434     _flag_k = FK_CMP;
   8435     eax = 0x66666667u; /* 0x3000A7C0: mov eax, 0x66666667 */
   8436     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000A7C5: imul edx */
   8437       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8438       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8439     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7C7: sar edx, 3 */
   8440     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8441     edx = (uint32_t)((int32_t)edx >> 3u);
   8442     eax = edx; /* 0x3000A7CA: mov eax, edx */
   8443     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A7CC: shr eax, 0x1f */
   8444     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8445     eax = eax >> 31u; /* 0x3000A7CC: shr eax, 0x1f */
   8446     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8447     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8448     edx = edx + eax; /* 0x3000A7CF: add edx, eax */
   8449     _flag_k = FK_ADD;
   8450     /* cmp edx, 1 */ /* 0x3000A7D1: cmp edx, 1 */
   8451     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   8452     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8453     _flag_k = FK_CMP;
   8454     if (CMP_AE(_flag_a, _flag_b)) goto L_3000A82E; /* 0x3000A7D4: jae 0x3000a82e */
   8455 L_3000A7D6:
   8456     edx = edi + 0x14; /* 0x3000A7D6: lea edx, [edi + 0x14] */
   8457     PUSH32(esp, edx); /* 0x3000A7D9: push edx */
   8458     PUSH32(esp, ecx); /* 0x3000A7DA: push ecx */
   8459     PUSH32(esp, edi); /* 0x3000A7DB: push edi */
   8460     ecx = esi; /* 0x3000A7DC: mov ecx, esi */
   8461     RECOMP_ICALL(0x300017D0u); /* 0x3000A7DE: call 0x300017d0 */ /* not lifted */
   8462     RECOMP_FLAGS_IN();
   8463     ebx = MEM32(esi + 0x8); /* 0x3000A7E3: mov ebx, dword ptr [esi + 8] */
   8464     eax = MEM32(ebp + (-0x4)); /* 0x3000A7E6: mov eax, dword ptr [ebp - 4] */
   8465     PUSH32(esp, eax); /* 0x3000A7E9: push eax */
   8466     ecx = ebx; /* 0x3000A7EA: mov ecx, ebx */
   8467     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   8468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8469     ecx = ecx - edi; /* 0x3000A7EC: sub ecx, edi */
   8470     _flag_k = FK_CMP;
   8471     eax = 0x66666667u; /* 0x3000A7EE: mov eax, 0x66666667 */
   8472     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A7F3: imul ecx */
   8473       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8474       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8475     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A7F5: sar edx, 3 */
   8476     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8477     edx = (uint32_t)((int32_t)edx >> 3u);
   8478     ecx = edx; /* 0x3000A7F8: mov ecx, edx */
   8479     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000A7FA: shr ecx, 0x1f */
   8480     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8481     ecx = ecx >> 31u; /* 0x3000A7FA: shr ecx, 0x1f */
   8482     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   8483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8484     edx = edx + ecx; /* 0x3000A7FD: add edx, ecx */
   8485     _flag_k = FK_ADD;
   8486     eax = 1; /* 0x3000A7FF: mov eax, 1 */
   8487     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   8488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8489     eax = eax - edx; /* 0x3000A804: sub eax, edx */
   8490     _flag_k = FK_CMP;
   8491     PUSH32(esp, eax); /* 0x3000A806: push eax */
   8492     PUSH32(esp, ebx); /* 0x3000A807: push ebx */
   8493     ecx = esi; /* 0x3000A808: mov ecx, esi */
   8494     RECOMP_ICALL(0x30001860u); /* 0x3000A80A: call 0x30001860 */ /* not lifted */
   8495     RECOMP_FLAGS_IN();
   8496     ecx = MEM32(ebp + (-0x4)); /* 0x3000A80F: mov ecx, dword ptr [ebp - 4] */
   8497     edx = MEM32(esi + 0x8); /* 0x3000A812: mov edx, dword ptr [esi + 8] */
   8498     PUSH32(esp, ecx); /* 0x3000A815: push ecx */
   8499     PUSH32(esp, edx); /* 0x3000A816: push edx */
   8500     PUSH32(esp, edi); /* 0x3000A817: push edi */
   8501     RECOMP_ICALL(0x30001DC0u); /* 0x3000A818: call 0x30001dc0 */ /* not lifted */
   8502     RECOMP_FLAGS_IN();
   8503     eax = MEM32(esi + 0x8); /* 0x3000A81D: mov eax, dword ptr [esi + 8] */
   8504     ebx = MEM32(ebp + (-0x4)); /* 0x3000A820: mov ebx, dword ptr [ebp - 4] */
   8505     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8506     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8507     esp = esp + 0xCu; /* 0x3000A823: add esp, 0xc */
   8508     _flag_k = FK_ADD;
   8509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   8510     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8511     eax = eax + 0x14u; /* 0x3000A826: add eax, 0x14 */
   8512     _flag_k = FK_ADD;
   8513     MEM32(esi + 0x8) = eax; /* 0x3000A829: mov dword ptr [esi + 8], eax */
   8514     goto L_3000A860; /* 0x3000A82C: jmp 0x3000a860 */
   8515 L_3000A82E:
   8516     PUSH32(esp, ecx); /* 0x3000A82E: push ecx */
   8517     PUSH32(esp, ecx); /* 0x3000A82F: push ecx */
   8518     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   8519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8520     ecx = ecx + 0xFFFFFFECu; /* 0x3000A830: add ecx, -0x14 */
   8521     _flag_k = FK_ADD;
   8522     PUSH32(esp, ecx); /* 0x3000A833: push ecx */
   8523     ecx = esi; /* 0x3000A834: mov ecx, esi */
   8524     RECOMP_ICALL(0x300017D0u); /* 0x3000A836: call 0x300017d0 */ /* not lifted */
   8525     RECOMP_FLAGS_IN();
   8526     eax = MEM32(esi + 0x8); /* 0x3000A83B: mov eax, dword ptr [esi + 8] */
   8527     PUSH32(esp, eax); /* 0x3000A83E: push eax */
   8528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
   8529     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8530     eax = eax + 0xFFFFFFECu; /* 0x3000A83F: add eax, -0x14 */
   8531     _flag_k = FK_ADD;
   8532     PUSH32(esp, eax); /* 0x3000A842: push eax */
   8533     PUSH32(esp, edi); /* 0x3000A843: push edi */
   8534     RECOMP_ICALL(0x30001D80u); /* 0x3000A844: call 0x30001d80 */ /* not lifted */
   8535     RECOMP_FLAGS_IN();
   8536     PUSH32(esp, ebx); /* 0x3000A849: push ebx */
   8537     eax = edi + 0x14; /* 0x3000A84A: lea eax, [edi + 0x14] */
   8538     PUSH32(esp, eax); /* 0x3000A84D: push eax */
   8539     PUSH32(esp, edi); /* 0x3000A84E: push edi */
   8540     RECOMP_ICALL(0x30001DC0u); /* 0x3000A84F: call 0x30001dc0 */ /* not lifted */
   8541     RECOMP_FLAGS_IN();
   8542     eax = MEM32(esi + 0x8); /* 0x3000A854: mov eax, dword ptr [esi + 8] */
   8543     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8544     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8545     esp = esp + 0x18u; /* 0x3000A857: add esp, 0x18 */
   8546     _flag_k = FK_ADD;
   8547     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   8548     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8549     eax = eax + 0x14u; /* 0x3000A85A: add eax, 0x14 */
   8550     _flag_k = FK_ADD;
   8551     MEM32(esi + 0x8) = eax; /* 0x3000A85D: mov dword ptr [esi + 8], eax */
   8552 L_3000A860:
   8553     ecx = MEM32(ebp + 0x8); /* 0x3000A860: mov ecx, dword ptr [ebp + 8] */
   8554     eax = MEM32(ecx + 0x8); /* 0x3000A863: mov eax, dword ptr [ecx + 8] */
   8555     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
   8556     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8557     ebx = ebx + 0x14u; /* 0x3000A866: add ebx, 0x14 */
   8558     _flag_k = FK_ADD;
   8559     /* cmp ebx, eax */ /* 0x3000A869: cmp ebx, eax */
   8560     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   8561     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8562     _flag_k = FK_CMP;
   8563     MEM32(ebp + (-0x4)) = ebx; /* 0x3000A86B: mov dword ptr [ebp - 4], ebx */
   8564     RECOMP_BACKEDGE();
   8565     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A689; /* 0x3000A86E: jne 0x3000a689 */
   8566 L_3000A874:
   8567     ebx = POP32_VAL(esp); /* 0x3000A874: pop ebx */
   8568     edi = POP32_VAL(esp); /* 0x3000A875: pop edi */
   8569     eax = esi; /* 0x3000A876: mov eax, esi */
   8570     esi = POP32_VAL(esp); /* 0x3000A878: pop esi */
   8571     esp = ebp; /* 0x3000A879: mov esp, ebp */
   8572     ebp = POP32_VAL(esp); /* 0x3000A87B: pop ebp */
   8573     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A87C: ret 4 */
   8574     RECOMP_REGS_OUT();
   8575 }
   8576 
   8577 void sub_3000A880(void) {
   8578     int _fpu_cmp = 0;
   8579     uint32_t _cf = 0;
   8580     int _df = 1;
   8581     uint32_t _flag_k = FK_NONE;
   8582     uint32_t _flag_a = 0, _flag_b = 0;
   8583     uint32_t _itail_tgt = 0;
   8584     RECOMP_REGS_LOCALS
   8585     RECOMP_ENTER(0x3000A880u);
   8586 
   8587 L_3000A880:
   8588     PUSH32(esp, ebp); /* 0x3000A880: push ebp */
   8589     ebp = esp; /* 0x3000A881: mov ebp, esp */
   8590     PUSH32(esp, ecx); /* 0x3000A883: push ecx */
   8591     PUSH32(esp, ebx); /* 0x3000A884: push ebx */
   8592     ebx = MEM32(ecx + 0x8); /* 0x3000A885: mov ebx, dword ptr [ecx + 8] */
   8593     PUSH32(esp, esi); /* 0x3000A888: push esi */
   8594     esi = ebx; /* 0x3000A889: mov esi, ebx */
   8595     /* cmp esi, ebx */ /* 0x3000A88B: cmp esi, ebx */
   8596     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8598     _flag_k = FK_CMP;
   8599     PUSH32(esp, edi); /* 0x3000A88D: push edi */
   8600     edi = MEM32(ecx + 0x4); /* 0x3000A88E: mov edi, dword ptr [ecx + 4] */
   8601     MEM32(ebp + (-0x4)) = ecx; /* 0x3000A891: mov dword ptr [ebp - 4], ecx */
   8602     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A8AB; /* 0x3000A894: je 0x3000a8ab */
   8603 L_3000A896:
   8604     PUSH32(esp, esi); /* 0x3000A896: push esi */
   8605     ecx = edi; /* 0x3000A897: mov ecx, edi */
   8606     RECOMP_ICALL(0x300080D0u); /* 0x3000A899: call 0x300080d0 */ /* not lifted */
   8607     RECOMP_FLAGS_IN();
   8608     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   8609     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8610     esi = esi + 0x14u; /* 0x3000A89E: add esi, 0x14 */
   8611     _flag_k = FK_ADD;
   8612     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   8613     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8614     edi = edi + 0x14u; /* 0x3000A8A1: add edi, 0x14 */
   8615     _flag_k = FK_ADD;
   8616     /* cmp esi, ebx */ /* 0x3000A8A4: cmp esi, ebx */
   8617     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8619     _flag_k = FK_CMP;
   8620     RECOMP_BACKEDGE();
   8621     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A896; /* 0x3000A8A6: jne 0x3000a896 */
   8622 L_3000A8A8:
   8623     ecx = MEM32(ebp + (-0x4)); /* 0x3000A8A8: mov ecx, dword ptr [ebp - 4] */
   8624 L_3000A8AB:
   8625     ebx = MEM32(ecx + 0x8); /* 0x3000A8AB: mov ebx, dword ptr [ecx + 8] */
   8626     /* cmp edi, ebx */ /* 0x3000A8AE: cmp edi, ebx */
   8627     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   8628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8629     _flag_k = FK_CMP;
   8630     esi = edi; /* 0x3000A8B0: mov esi, edi */
   8631     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000A8CF; /* 0x3000A8B2: je 0x3000a8cf */
   8632 L_3000A8B4:
   8633     ecx = esi; /* 0x3000A8B4: mov ecx, esi */
   8634     RECOMP_ICALL(0x30007AB0u); /* 0x3000A8B6: call 0x30007ab0 */ /* not lifted */
   8635     RECOMP_FLAGS_IN();
   8636     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   8637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8638     esi = esi + 0x14u; /* 0x3000A8BB: add esi, 0x14 */
   8639     _flag_k = FK_ADD;
   8640     /* cmp esi, ebx */ /* 0x3000A8BE: cmp esi, ebx */
   8641     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8643     _flag_k = FK_CMP;
   8644     RECOMP_BACKEDGE();
   8645     if (CMP_NE(_flag_a, _flag_b)) goto L_3000A8B4; /* 0x3000A8C0: jne 0x3000a8b4 */
   8646 L_3000A8C2:
   8647     eax = MEM32(ebp + (-0x4)); /* 0x3000A8C2: mov eax, dword ptr [ebp - 4] */
   8648     MEM32(eax + 0x8) = edi; /* 0x3000A8C5: mov dword ptr [eax + 8], edi */
   8649     edi = POP32_VAL(esp); /* 0x3000A8C8: pop edi */
   8650     esi = POP32_VAL(esp); /* 0x3000A8C9: pop esi */
   8651     ebx = POP32_VAL(esp); /* 0x3000A8CA: pop ebx */
   8652     esp = ebp; /* 0x3000A8CB: mov esp, ebp */
   8653     ebp = POP32_VAL(esp); /* 0x3000A8CD: pop ebp */
   8654     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A8CE: ret  */
   8655 L_3000A8CF:
   8656     MEM32(ecx + 0x8) = edi; /* 0x3000A8CF: mov dword ptr [ecx + 8], edi */
   8657     edi = POP32_VAL(esp); /* 0x3000A8D2: pop edi */
   8658     esi = POP32_VAL(esp); /* 0x3000A8D3: pop esi */
   8659     ebx = POP32_VAL(esp); /* 0x3000A8D4: pop ebx */
   8660     esp = ebp; /* 0x3000A8D5: mov esp, ebp */
   8661     ebp = POP32_VAL(esp); /* 0x3000A8D7: pop ebp */
   8662     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A8D8: ret  */
   8663     RECOMP_REGS_OUT();
   8664 }
   8665 
   8666 void sub_3000A8E0(void) {
   8667     int _fpu_cmp = 0;
   8668     uint32_t _cf = 0;
   8669     int _df = 1;
   8670     uint32_t _flag_k = FK_NONE;
   8671     uint32_t _flag_a = 0, _flag_b = 0;
   8672     uint32_t _itail_tgt = 0;
   8673     RECOMP_REGS_LOCALS
   8674     RECOMP_ENTER(0x3000A8E0u);
   8675 
   8676 L_3000A8E0:
   8677     eax = MEM32(ecx + 0x4); /* 0x3000A8E0: mov eax, dword ptr [ecx + 4] */
   8678     /* test eax, eax */ /* 0x3000A8E3: test eax, eax */
   8679     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8680     _cf = 0;
   8681     _flag_k = FK_TEST;
   8682     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000A8E8; /* 0x3000A8E5: jne 0x3000a8e8 */
   8683 L_3000A8E7:
   8684     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A8E7: ret  */
   8685 L_3000A8E8:
   8686     ecx = MEM32(ecx + 0x8); /* 0x3000A8E8: mov ecx, dword ptr [ecx + 8] */
   8687     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8689     ecx = ecx - eax; /* 0x3000A8EB: sub ecx, eax */
   8690     _flag_k = FK_CMP;
   8691     eax = 0x66666667u; /* 0x3000A8ED: mov eax, 0x66666667 */
   8692     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000A8F2: imul ecx */
   8693       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8694       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8695     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000A8F4: sar edx, 3 */
   8696     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8697     edx = (uint32_t)((int32_t)edx >> 3u);
   8698     eax = edx; /* 0x3000A8F7: mov eax, edx */
   8699     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000A8F9: shr eax, 0x1f */
   8700     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8701     eax = eax >> 31u; /* 0x3000A8F9: shr eax, 0x1f */
   8702     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8703     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8704     edx = edx + eax; /* 0x3000A8FC: add edx, eax */
   8705     _flag_k = FK_ADD;
   8706     eax = edx; /* 0x3000A8FE: mov eax, edx */
   8707     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A900: ret  */
   8708     RECOMP_REGS_OUT();
   8709 }
   8710 
   8711 void sub_3000A910(void) {
   8712     int _fpu_cmp = 0;
   8713     uint32_t _cf = 0;
   8714     int _df = 1;
   8715     uint32_t _flag_k = FK_NONE;
   8716     uint32_t _flag_a = 0, _flag_b = 0;
   8717     uint32_t _itail_tgt = 0;
   8718     RECOMP_REGS_LOCALS
   8719     RECOMP_ENTER(0x3000A910u);
   8720 
   8721 L_3000A910:
   8722     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3000A910: mov byte ptr [ecx + 0x14], 0 */
   8723     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A914: ret  */
   8724     RECOMP_REGS_OUT();
   8725 }
   8726 
   8727 void sub_3000A920(void) {
   8728     int _fpu_cmp = 0;
   8729     uint32_t _cf = 0;
   8730     int _df = 1;
   8731     uint32_t _flag_k = FK_NONE;
   8732     uint32_t _flag_a = 0, _flag_b = 0;
   8733     uint32_t _itail_tgt = 0;
   8734     RECOMP_REGS_LOCALS
   8735     RECOMP_ENTER(0x3000A920u);
   8736 
   8737 L_3000A920:
   8738     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3000A920: mov byte ptr [ecx + 0x14], 1 */
   8739     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000A924: ret  */
   8740     RECOMP_REGS_OUT();
   8741 }
   8742 
   8743 void sub_3000A930(void) {
   8744     int _fpu_cmp = 0;
   8745     uint32_t _cf = 0;
   8746     int _df = 1;
   8747     uint32_t _flag_k = FK_NONE;
   8748     uint32_t _flag_a = 0, _flag_b = 0;
   8749     uint32_t _itail_tgt = 0;
   8750     RECOMP_REGS_LOCALS
   8751     RECOMP_ENTER(0x3000A930u);
   8752 
   8753 L_3000A930:
   8754     PUSH32(esp, ebp); /* 0x3000A930: push ebp */
   8755     ebp = esp; /* 0x3000A931: mov ebp, esp */
   8756     eax = MEM32(ebp + 0x8); /* 0x3000A933: mov eax, dword ptr [ebp + 8] */
   8757     ecx = MEM32(ecx + 0x4); /* 0x3000A936: mov ecx, dword ptr [ecx + 4] */
   8758     eax = eax + eax * 4; /* 0x3000A939: lea eax, [eax + eax*4] */
   8759     eax = ecx + eax * 4; /* 0x3000A93C: lea eax, [ecx + eax*4] */
   8760     ebp = POP32_VAL(esp); /* 0x3000A93F: pop ebp */
   8761     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000A940: ret 4 */
   8762     RECOMP_REGS_OUT();
   8763 }
   8764 
   8765 void sub_3000A950(void) {
   8766     int _fpu_cmp = 0;
   8767     uint32_t _cf = 0;
   8768     int _df = 1;
   8769     uint32_t _flag_k = FK_NONE;
   8770     uint32_t _flag_a = 0, _flag_b = 0;
   8771     uint32_t _itail_tgt = 0;
   8772     RECOMP_REGS_LOCALS
   8773     RECOMP_ENTER(0x3000A950u);
   8774 
   8775 L_3000A950:
   8776     PUSH32(esp, ebp); /* 0x3000A950: push ebp */
   8777     ebp = esp; /* 0x3000A951: mov ebp, esp */
   8778     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000A953: push -1 */
   8779     PUSH32(esp, 0x300188D0u); /* 0x3000A955: push 0x300188d0 */
   8780     eax = MEM32(FS_BASE + (0)); /* 0x3000A95A: mov eax, dword ptr fs:[0] */
   8781     PUSH32(esp, eax); /* 0x3000A960: push eax */
   8782     MEM32(FS_BASE + (0)) = esp; /* 0x3000A961: mov dword ptr fs:[0], esp */
   8783     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u);
   8784     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8785     esp = esp - 0x58u; /* 0x3000A968: sub esp, 0x58 */
   8786     _flag_k = FK_CMP;
   8787     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000A96B: fld dword ptr [ebp + 8] */
   8788     PUSH32(esp, ebx); /* 0x3000A96E: push ebx */
   8789     _st[0] = -_st[0]; /* 0x3000A96F: fchs  */
   8790     PUSH32(esp, esi); /* 0x3000A971: push esi */
   8791     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000A972: fstp dword ptr [ebp - 0x18] */
   8792     PUSH32(esp, edi); /* 0x3000A975: push edi */
   8793     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3000A976: fld dword ptr [ebp + 0xc] */
   8794     ebx = ecx; /* 0x3000A979: mov ebx, ecx */
   8795     _st[0] = -_st[0]; /* 0x3000A97B: fchs  */
   8796     PUSH32(esp, 4); /* 0x3000A97D: push 4 */
   8797     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000A97F: fstp dword ptr [ebp - 0x14] */
   8798     ecx = ebp + (-0x64); /* 0x3000A982: lea ecx, [ebp - 0x64] */
   8799     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3000A985: fld dword ptr [ebp + 0x10] */
   8800     _st[0] = -_st[0]; /* 0x3000A988: fchs  */
   8801     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000A98A: fstp dword ptr [ebp - 0x10] */
   8802     RECOMP_ICALL(0x30007950u); /* 0x3000A98D: call 0x30007950 */ /* not lifted */
   8803     RECOMP_FLAGS_IN();
   8804     PUSH32(esp, 4); /* 0x3000A992: push 4 */
   8805     ecx = ebp + (-0x50); /* 0x3000A994: lea ecx, [ebp - 0x50] */
   8806     MEM32(ebp + (-0x4)) = 0; /* 0x3000A997: mov dword ptr [ebp - 4], 0 */
   8807     RECOMP_ICALL(0x30007950u); /* 0x3000A99E: call 0x30007950 */ /* not lifted */
   8808     RECOMP_FLAGS_IN();
   8809     PUSH32(esp, eax); /* 0x3000A9A3: push eax */
   8810     ecx = ebp + (-0x64); /* 0x3000A9A4: lea ecx, [ebp - 0x64] */
   8811     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3000A9A7: mov byte ptr [ebp - 4], 1 */
   8812     RECOMP_ICALL(0x300080D0u); /* 0x3000A9AB: call 0x300080d0 */ /* not lifted */
   8813     RECOMP_FLAGS_IN();
   8814     ecx = ebp + (-0x50); /* 0x3000A9B0: lea ecx, [ebp - 0x50] */
   8815     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3000A9B3: mov byte ptr [ebp - 4], 0 */
   8816     RECOMP_ICALL(0x30007AB0u); /* 0x3000A9B7: call 0x30007ab0 */ /* not lifted */
   8817     RECOMP_FLAGS_IN();
   8818     ecx = MEM32(ebp + (-0x14)); /* 0x3000A9BC: mov ecx, dword ptr [ebp - 0x14] */
   8819     eax = MEM32(ebp + (-0x18)); /* 0x3000A9BF: mov eax, dword ptr [ebp - 0x18] */
   8820     edx = MEM32(ebp + (-0x10)); /* 0x3000A9C2: mov edx, dword ptr [ebp - 0x10] */
   8821     esi = MEM32(ebp + 0x18); /* 0x3000A9C5: mov esi, dword ptr [ebp + 0x18] */
   8822     MEM32(ebp + (-0x20)) = ecx; /* 0x3000A9C8: mov dword ptr [ebp - 0x20], ecx */
   8823     MEM32(ebp + (-0x2C)) = ecx; /* 0x3000A9CB: mov dword ptr [ebp - 0x2c], ecx */
   8824     PUSH32(esp, esi); /* 0x3000A9CE: push esi */
   8825     ecx = ebp + (-0x30); /* 0x3000A9CF: lea ecx, [ebp - 0x30] */
   8826     MEM32(ebp + (-0x24)) = eax; /* 0x3000A9D2: mov dword ptr [ebp - 0x24], eax */
   8827     MEM32(ebp + (-0x1C)) = edx; /* 0x3000A9D5: mov dword ptr [ebp - 0x1c], edx */
   8828     MEM32(ebp + (-0x30)) = eax; /* 0x3000A9D8: mov dword ptr [ebp - 0x30], eax */
   8829     MEM32(ebp + (-0x28)) = edx; /* 0x3000A9DB: mov dword ptr [ebp - 0x28], edx */
   8830     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000A9DE: call dword ptr [0x300190ec] */
   8831     RECOMP_FLAGS_IN();
   8832     ecx = MEM32(eax); /* 0x3000A9E4: mov ecx, dword ptr [eax] */
   8833     edi = MEM32(ebp + 0x14); /* 0x3000A9E6: mov edi, dword ptr [ebp + 0x14] */
   8834     MEM32(ebp + (-0x24)) = ecx; /* 0x3000A9E9: mov dword ptr [ebp - 0x24], ecx */
   8835     edx = MEM32(eax + 0x4); /* 0x3000A9EC: mov edx, dword ptr [eax + 4] */
   8836     MEM32(ebp + (-0x20)) = edx; /* 0x3000A9EF: mov dword ptr [ebp - 0x20], edx */
   8837     eax = MEM32(eax + 0x8); /* 0x3000A9F2: mov eax, dword ptr [eax + 8] */
   8838     ecx = edi; /* 0x3000A9F5: mov ecx, edi */
   8839     edx = MEM32(ecx); /* 0x3000A9F7: mov edx, dword ptr [ecx] */
   8840     MEM32(ebp + (-0x1C)) = eax; /* 0x3000A9F9: mov dword ptr [ebp - 0x1c], eax */
   8841     eax = MEM32(ecx + 0x4); /* 0x3000A9FC: mov eax, dword ptr [ecx + 4] */
   8842     ecx = MEM32(ecx + 0x8); /* 0x3000A9FF: mov ecx, dword ptr [ecx + 8] */
   8843     MEM32(ebp + (-0x3C)) = edx; /* 0x3000AA02: mov dword ptr [ebp - 0x3c], edx */
   8844     edx = ebp + (-0x24); /* 0x3000AA05: lea edx, [ebp - 0x24] */
   8845     MEM32(ebp + (-0x34)) = ecx; /* 0x3000AA08: mov dword ptr [ebp - 0x34], ecx */
   8846     PUSH32(esp, edx); /* 0x3000AA0B: push edx */
   8847     ecx = ebp + (-0x3C); /* 0x3000AA0C: lea ecx, [ebp - 0x3c] */
   8848     MEM32(ebp + (-0x38)) = eax; /* 0x3000AA0F: mov dword ptr [ebp - 0x38], eax */
   8849     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AA12: call dword ptr [0x300190c4] */
   8850     RECOMP_FLAGS_IN();
   8851     ecx = MEM32(eax); /* 0x3000AA18: mov ecx, dword ptr [eax] */
   8852     MEM32(ebp + (-0x48)) = ecx; /* 0x3000AA1A: mov dword ptr [ebp - 0x48], ecx */
   8853     edx = MEM32(eax + 0x4); /* 0x3000AA1D: mov edx, dword ptr [eax + 4] */
   8854     ecx = ebp + (-0x48); /* 0x3000AA20: lea ecx, [ebp - 0x48] */
   8855     PUSH32(esp, ecx); /* 0x3000AA23: push ecx */
   8856     MEM32(ebp + (-0x44)) = edx; /* 0x3000AA24: mov dword ptr [ebp - 0x44], edx */
   8857     eax = MEM32(eax + 0x8); /* 0x3000AA27: mov eax, dword ptr [eax + 8] */
   8858     PUSH32(esp, 3); /* 0x3000AA2A: push 3 */
   8859     ecx = ebp + (-0x64); /* 0x3000AA2C: lea ecx, [ebp - 0x64] */
   8860     MEM32(ebp + (-0x40)) = eax; /* 0x3000AA2F: mov dword ptr [ebp - 0x40], eax */
   8861     RECOMP_ICALL(0x30007BA0u); /* 0x3000AA32: call 0x30007ba0 */ /* not lifted */
   8862     RECOMP_FLAGS_IN();
   8863     edx = MEM32(ebp + 0x8); /* 0x3000AA37: mov edx, dword ptr [ebp + 8] */
   8864     eax = MEM32(ebp + (-0x14)); /* 0x3000AA3A: mov eax, dword ptr [ebp - 0x14] */
   8865     ecx = MEM32(ebp + (-0x10)); /* 0x3000AA3D: mov ecx, dword ptr [ebp - 0x10] */
   8866     MEM32(ebp + (-0x24)) = edx; /* 0x3000AA40: mov dword ptr [ebp - 0x24], edx */
   8867     MEM32(ebp + (-0x20)) = eax; /* 0x3000AA43: mov dword ptr [ebp - 0x20], eax */
   8868     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000AA46: mov dword ptr [ebp - 0x1c], ecx */
   8869     MEM32(ebp + (-0x48)) = edx; /* 0x3000AA49: mov dword ptr [ebp - 0x48], edx */
   8870     MEM32(ebp + (-0x44)) = eax; /* 0x3000AA4C: mov dword ptr [ebp - 0x44], eax */
   8871     MEM32(ebp + (-0x40)) = ecx; /* 0x3000AA4F: mov dword ptr [ebp - 0x40], ecx */
   8872     PUSH32(esp, esi); /* 0x3000AA52: push esi */
   8873     ecx = ebp + (-0x48); /* 0x3000AA53: lea ecx, [ebp - 0x48] */
   8874     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AA56: call dword ptr [0x300190ec] */
   8875     RECOMP_FLAGS_IN();
   8876     edx = MEM32(eax); /* 0x3000AA5C: mov edx, dword ptr [eax] */
   8877     MEM32(ebp + (-0x3C)) = edx; /* 0x3000AA5E: mov dword ptr [ebp - 0x3c], edx */
   8878     ecx = MEM32(eax + 0x4); /* 0x3000AA61: mov ecx, dword ptr [eax + 4] */
   8879     MEM32(ebp + (-0x38)) = ecx; /* 0x3000AA64: mov dword ptr [ebp - 0x38], ecx */
   8880     edx = MEM32(eax + 0x8); /* 0x3000AA67: mov edx, dword ptr [eax + 8] */
   8881     eax = edi; /* 0x3000AA6A: mov eax, edi */
   8882     ecx = MEM32(eax); /* 0x3000AA6C: mov ecx, dword ptr [eax] */
   8883     MEM32(ebp + (-0x30)) = ecx; /* 0x3000AA6E: mov dword ptr [ebp - 0x30], ecx */
   8884     MEM32(ebp + (-0x34)) = edx; /* 0x3000AA71: mov dword ptr [ebp - 0x34], edx */
   8885     edx = MEM32(eax + 0x4); /* 0x3000AA74: mov edx, dword ptr [eax + 4] */
   8886     eax = MEM32(eax + 0x8); /* 0x3000AA77: mov eax, dword ptr [eax + 8] */
   8887     ecx = ebp + (-0x3C); /* 0x3000AA7A: lea ecx, [ebp - 0x3c] */
   8888     PUSH32(esp, ecx); /* 0x3000AA7D: push ecx */
   8889     ecx = ebp + (-0x30); /* 0x3000AA7E: lea ecx, [ebp - 0x30] */
   8890     MEM32(ebp + (-0x2C)) = edx; /* 0x3000AA81: mov dword ptr [ebp - 0x2c], edx */
   8891     MEM32(ebp + (-0x28)) = eax; /* 0x3000AA84: mov dword ptr [ebp - 0x28], eax */
   8892     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AA87: call dword ptr [0x300190c4] */
   8893     RECOMP_FLAGS_IN();
   8894     edx = MEM32(eax); /* 0x3000AA8D: mov edx, dword ptr [eax] */
   8895     MEM32(ebp + (-0x24)) = edx; /* 0x3000AA8F: mov dword ptr [ebp - 0x24], edx */
   8896     ecx = MEM32(eax + 0x4); /* 0x3000AA92: mov ecx, dword ptr [eax + 4] */
   8897     MEM32(ebp + (-0x20)) = ecx; /* 0x3000AA95: mov dword ptr [ebp - 0x20], ecx */
   8898     edx = MEM32(eax + 0x8); /* 0x3000AA98: mov edx, dword ptr [eax + 8] */
   8899     eax = ebp + (-0x24); /* 0x3000AA9B: lea eax, [ebp - 0x24] */
   8900     PUSH32(esp, eax); /* 0x3000AA9E: push eax */
   8901     PUSH32(esp, 2); /* 0x3000AA9F: push 2 */
   8902     ecx = ebp + (-0x64); /* 0x3000AAA1: lea ecx, [ebp - 0x64] */
   8903     MEM32(ebp + (-0x1C)) = edx; /* 0x3000AAA4: mov dword ptr [ebp - 0x1c], edx */
   8904     RECOMP_ICALL(0x30007BA0u); /* 0x3000AAA7: call 0x30007ba0 */ /* not lifted */
   8905     RECOMP_FLAGS_IN();
   8906     ecx = MEM32(ebp + 0x8); /* 0x3000AAAC: mov ecx, dword ptr [ebp + 8] */
   8907     edx = MEM32(ebp + 0xC); /* 0x3000AAAF: mov edx, dword ptr [ebp + 0xc] */
   8908     eax = MEM32(ebp + (-0x10)); /* 0x3000AAB2: mov eax, dword ptr [ebp - 0x10] */
   8909     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AAB5: mov dword ptr [ebp - 0x24], ecx */
   8910     MEM32(ebp + (-0x48)) = ecx; /* 0x3000AAB8: mov dword ptr [ebp - 0x48], ecx */
   8911     PUSH32(esp, esi); /* 0x3000AABB: push esi */
   8912     ecx = ebp + (-0x48); /* 0x3000AABC: lea ecx, [ebp - 0x48] */
   8913     MEM32(ebp + (-0x20)) = edx; /* 0x3000AABF: mov dword ptr [ebp - 0x20], edx */
   8914     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AAC2: mov dword ptr [ebp - 0x1c], eax */
   8915     MEM32(ebp + (-0x44)) = edx; /* 0x3000AAC5: mov dword ptr [ebp - 0x44], edx */
   8916     MEM32(ebp + (-0x40)) = eax; /* 0x3000AAC8: mov dword ptr [ebp - 0x40], eax */
   8917     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AACB: call dword ptr [0x300190ec] */
   8918     RECOMP_FLAGS_IN();
   8919     ecx = MEM32(eax); /* 0x3000AAD1: mov ecx, dword ptr [eax] */
   8920     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000AAD3: mov dword ptr [ebp - 0x3c], ecx */
   8921     edx = MEM32(eax + 0x4); /* 0x3000AAD6: mov edx, dword ptr [eax + 4] */
   8922     MEM32(ebp + (-0x38)) = edx; /* 0x3000AAD9: mov dword ptr [ebp - 0x38], edx */
   8923     eax = MEM32(eax + 0x8); /* 0x3000AADC: mov eax, dword ptr [eax + 8] */
   8924     ecx = edi; /* 0x3000AADF: mov ecx, edi */
   8925     edx = MEM32(ecx); /* 0x3000AAE1: mov edx, dword ptr [ecx] */
   8926     MEM32(ebp + (-0x34)) = eax; /* 0x3000AAE3: mov dword ptr [ebp - 0x34], eax */
   8927     eax = MEM32(ecx + 0x4); /* 0x3000AAE6: mov eax, dword ptr [ecx + 4] */
   8928     ecx = MEM32(ecx + 0x8); /* 0x3000AAE9: mov ecx, dword ptr [ecx + 8] */
   8929     MEM32(ebp + (-0x30)) = edx; /* 0x3000AAEC: mov dword ptr [ebp - 0x30], edx */
   8930     edx = ebp + (-0x3C); /* 0x3000AAEF: lea edx, [ebp - 0x3c] */
   8931     MEM32(ebp + (-0x28)) = ecx; /* 0x3000AAF2: mov dword ptr [ebp - 0x28], ecx */
   8932     PUSH32(esp, edx); /* 0x3000AAF5: push edx */
   8933     ecx = ebp + (-0x30); /* 0x3000AAF6: lea ecx, [ebp - 0x30] */
   8934     MEM32(ebp + (-0x2C)) = eax; /* 0x3000AAF9: mov dword ptr [ebp - 0x2c], eax */
   8935     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AAFC: call dword ptr [0x300190c4] */
   8936     RECOMP_FLAGS_IN();
   8937     ecx = MEM32(eax); /* 0x3000AB02: mov ecx, dword ptr [eax] */
   8938     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AB04: mov dword ptr [ebp - 0x24], ecx */
   8939     edx = MEM32(eax + 0x4); /* 0x3000AB07: mov edx, dword ptr [eax + 4] */
   8940     ecx = ebp + (-0x24); /* 0x3000AB0A: lea ecx, [ebp - 0x24] */
   8941     PUSH32(esp, ecx); /* 0x3000AB0D: push ecx */
   8942     MEM32(ebp + (-0x20)) = edx; /* 0x3000AB0E: mov dword ptr [ebp - 0x20], edx */
   8943     eax = MEM32(eax + 0x8); /* 0x3000AB11: mov eax, dword ptr [eax + 8] */
   8944     PUSH32(esp, 1); /* 0x3000AB14: push 1 */
   8945     ecx = ebp + (-0x64); /* 0x3000AB16: lea ecx, [ebp - 0x64] */
   8946     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AB19: mov dword ptr [ebp - 0x1c], eax */
   8947     RECOMP_ICALL(0x30007BA0u); /* 0x3000AB1C: call 0x30007ba0 */ /* not lifted */
   8948     RECOMP_FLAGS_IN();
   8949     ecx = MEM32(ebp + (-0x10)); /* 0x3000AB21: mov ecx, dword ptr [ebp - 0x10] */
   8950     edx = MEM32(ebp + (-0x18)); /* 0x3000AB24: mov edx, dword ptr [ebp - 0x18] */
   8951     eax = MEM32(ebp + 0xC); /* 0x3000AB27: mov eax, dword ptr [ebp + 0xc] */
   8952     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000AB2A: mov dword ptr [ebp - 0x1c], ecx */
   8953     MEM32(ebp + (-0x40)) = ecx; /* 0x3000AB2D: mov dword ptr [ebp - 0x40], ecx */
   8954     MEM32(ebp + (-0x24)) = edx; /* 0x3000AB30: mov dword ptr [ebp - 0x24], edx */
   8955     MEM32(ebp + (-0x20)) = eax; /* 0x3000AB33: mov dword ptr [ebp - 0x20], eax */
   8956     MEM32(ebp + (-0x48)) = edx; /* 0x3000AB36: mov dword ptr [ebp - 0x48], edx */
   8957     MEM32(ebp + (-0x44)) = eax; /* 0x3000AB39: mov dword ptr [ebp - 0x44], eax */
   8958     PUSH32(esp, esi); /* 0x3000AB3C: push esi */
   8959     ecx = ebp + (-0x48); /* 0x3000AB3D: lea ecx, [ebp - 0x48] */
   8960     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AB40: call dword ptr [0x300190ec] */
   8961     RECOMP_FLAGS_IN();
   8962     edx = MEM32(eax); /* 0x3000AB46: mov edx, dword ptr [eax] */
   8963     MEM32(ebp + (-0x3C)) = edx; /* 0x3000AB48: mov dword ptr [ebp - 0x3c], edx */
   8964     ecx = MEM32(eax + 0x4); /* 0x3000AB4B: mov ecx, dword ptr [eax + 4] */
   8965     MEM32(ebp + (-0x38)) = ecx; /* 0x3000AB4E: mov dword ptr [ebp - 0x38], ecx */
   8966     edx = MEM32(eax + 0x8); /* 0x3000AB51: mov edx, dword ptr [eax + 8] */
   8967     eax = edi; /* 0x3000AB54: mov eax, edi */
   8968     ecx = MEM32(eax); /* 0x3000AB56: mov ecx, dword ptr [eax] */
   8969     MEM32(ebp + (-0x30)) = ecx; /* 0x3000AB58: mov dword ptr [ebp - 0x30], ecx */
   8970     MEM32(ebp + (-0x34)) = edx; /* 0x3000AB5B: mov dword ptr [ebp - 0x34], edx */
   8971     edx = MEM32(eax + 0x4); /* 0x3000AB5E: mov edx, dword ptr [eax + 4] */
   8972     eax = MEM32(eax + 0x8); /* 0x3000AB61: mov eax, dword ptr [eax + 8] */
   8973     ecx = ebp + (-0x3C); /* 0x3000AB64: lea ecx, [ebp - 0x3c] */
   8974     PUSH32(esp, ecx); /* 0x3000AB67: push ecx */
   8975     ecx = ebp + (-0x30); /* 0x3000AB68: lea ecx, [ebp - 0x30] */
   8976     MEM32(ebp + (-0x2C)) = edx; /* 0x3000AB6B: mov dword ptr [ebp - 0x2c], edx */
   8977     MEM32(ebp + (-0x28)) = eax; /* 0x3000AB6E: mov dword ptr [ebp - 0x28], eax */
   8978     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AB71: call dword ptr [0x300190c4] */
   8979     RECOMP_FLAGS_IN();
   8980     edx = MEM32(eax); /* 0x3000AB77: mov edx, dword ptr [eax] */
   8981     MEM32(ebp + (-0x24)) = edx; /* 0x3000AB79: mov dword ptr [ebp - 0x24], edx */
   8982     ecx = MEM32(eax + 0x4); /* 0x3000AB7C: mov ecx, dword ptr [eax + 4] */
   8983     MEM32(ebp + (-0x20)) = ecx; /* 0x3000AB7F: mov dword ptr [ebp - 0x20], ecx */
   8984     edx = MEM32(eax + 0x8); /* 0x3000AB82: mov edx, dword ptr [eax + 8] */
   8985     eax = ebp + (-0x24); /* 0x3000AB85: lea eax, [ebp - 0x24] */
   8986     PUSH32(esp, eax); /* 0x3000AB88: push eax */
   8987     PUSH32(esp, 0); /* 0x3000AB89: push 0 */
   8988     ecx = ebp + (-0x64); /* 0x3000AB8B: lea ecx, [ebp - 0x64] */
   8989     MEM32(ebp + (-0x1C)) = edx; /* 0x3000AB8E: mov dword ptr [ebp - 0x1c], edx */
   8990     RECOMP_ICALL(0x30007BA0u); /* 0x3000AB91: call 0x30007ba0 */ /* not lifted */
   8991     RECOMP_FLAGS_IN();
   8992     eax = MEM32(ebx + 0x8); /* 0x3000AB96: mov eax, dword ptr [ebx + 8] */
   8993     ecx = ebp + (-0x64); /* 0x3000AB99: lea ecx, [ebp - 0x64] */
   8994     PUSH32(esp, ecx); /* 0x3000AB9C: push ecx */
   8995     PUSH32(esp, eax); /* 0x3000AB9D: push eax */
   8996     ecx = ebx; /* 0x3000AB9E: mov ecx, ebx */
   8997     RECOMP_ICALL(0x30002C40u); /* 0x3000ABA0: call 0x30002c40 */ /* not lifted */
   8998     RECOMP_FLAGS_IN();
   8999     ecx = MEM32(ebp + 0x10); /* 0x3000ABA5: mov ecx, dword ptr [ebp + 0x10] */
   9000     edx = MEM32(ebp + (-0x18)); /* 0x3000ABA8: mov edx, dword ptr [ebp - 0x18] */
   9001     eax = MEM32(ebp + (-0x14)); /* 0x3000ABAB: mov eax, dword ptr [ebp - 0x14] */
   9002     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000ABAE: mov dword ptr [ebp - 0x1c], ecx */
   9003     MEM32(ebp + (-0x40)) = ecx; /* 0x3000ABB1: mov dword ptr [ebp - 0x40], ecx */
   9004     PUSH32(esp, esi); /* 0x3000ABB4: push esi */
   9005     ecx = ebp + (-0x48); /* 0x3000ABB5: lea ecx, [ebp - 0x48] */
   9006     MEM32(ebp + (-0x24)) = edx; /* 0x3000ABB8: mov dword ptr [ebp - 0x24], edx */
   9007     MEM32(ebp + (-0x20)) = eax; /* 0x3000ABBB: mov dword ptr [ebp - 0x20], eax */
   9008     MEM32(ebp + (-0x48)) = edx; /* 0x3000ABBE: mov dword ptr [ebp - 0x48], edx */
   9009     MEM32(ebp + (-0x44)) = eax; /* 0x3000ABC1: mov dword ptr [ebp - 0x44], eax */
   9010     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000ABC4: call dword ptr [0x300190ec] */
   9011     RECOMP_FLAGS_IN();
   9012     edx = MEM32(eax); /* 0x3000ABCA: mov edx, dword ptr [eax] */
   9013     MEM32(ebp + (-0x3C)) = edx; /* 0x3000ABCC: mov dword ptr [ebp - 0x3c], edx */
   9014     ecx = MEM32(eax + 0x4); /* 0x3000ABCF: mov ecx, dword ptr [eax + 4] */
   9015     MEM32(ebp + (-0x38)) = ecx; /* 0x3000ABD2: mov dword ptr [ebp - 0x38], ecx */
   9016     edx = MEM32(eax + 0x8); /* 0x3000ABD5: mov edx, dword ptr [eax + 8] */
   9017     eax = edi; /* 0x3000ABD8: mov eax, edi */
   9018     ecx = MEM32(eax); /* 0x3000ABDA: mov ecx, dword ptr [eax] */
   9019     MEM32(ebp + (-0x30)) = ecx; /* 0x3000ABDC: mov dword ptr [ebp - 0x30], ecx */
   9020     MEM32(ebp + (-0x34)) = edx; /* 0x3000ABDF: mov dword ptr [ebp - 0x34], edx */
   9021     edx = MEM32(eax + 0x4); /* 0x3000ABE2: mov edx, dword ptr [eax + 4] */
   9022     eax = MEM32(eax + 0x8); /* 0x3000ABE5: mov eax, dword ptr [eax + 8] */
   9023     ecx = ebp + (-0x3C); /* 0x3000ABE8: lea ecx, [ebp - 0x3c] */
   9024     PUSH32(esp, ecx); /* 0x3000ABEB: push ecx */
   9025     ecx = ebp + (-0x30); /* 0x3000ABEC: lea ecx, [ebp - 0x30] */
   9026     MEM32(ebp + (-0x2C)) = edx; /* 0x3000ABEF: mov dword ptr [ebp - 0x2c], edx */
   9027     MEM32(ebp + (-0x28)) = eax; /* 0x3000ABF2: mov dword ptr [ebp - 0x28], eax */
   9028     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000ABF5: call dword ptr [0x300190c4] */
   9029     RECOMP_FLAGS_IN();
   9030     edx = MEM32(eax); /* 0x3000ABFB: mov edx, dword ptr [eax] */
   9031     MEM32(ebp + (-0x24)) = edx; /* 0x3000ABFD: mov dword ptr [ebp - 0x24], edx */
   9032     ecx = MEM32(eax + 0x4); /* 0x3000AC00: mov ecx, dword ptr [eax + 4] */
   9033     MEM32(ebp + (-0x20)) = ecx; /* 0x3000AC03: mov dword ptr [ebp - 0x20], ecx */
   9034     edx = MEM32(eax + 0x8); /* 0x3000AC06: mov edx, dword ptr [eax + 8] */
   9035     eax = ebp + (-0x24); /* 0x3000AC09: lea eax, [ebp - 0x24] */
   9036     PUSH32(esp, eax); /* 0x3000AC0C: push eax */
   9037     PUSH32(esp, 3); /* 0x3000AC0D: push 3 */
   9038     ecx = ebp + (-0x64); /* 0x3000AC0F: lea ecx, [ebp - 0x64] */
   9039     MEM32(ebp + (-0x1C)) = edx; /* 0x3000AC12: mov dword ptr [ebp - 0x1c], edx */
   9040     RECOMP_ICALL(0x30007BA0u); /* 0x3000AC15: call 0x30007ba0 */ /* not lifted */
   9041     RECOMP_FLAGS_IN();
   9042     ecx = MEM32(ebp + (-0x18)); /* 0x3000AC1A: mov ecx, dword ptr [ebp - 0x18] */
   9043     edx = MEM32(ebp + 0xC); /* 0x3000AC1D: mov edx, dword ptr [ebp + 0xc] */
   9044     eax = MEM32(ebp + 0x10); /* 0x3000AC20: mov eax, dword ptr [ebp + 0x10] */
   9045     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AC23: mov dword ptr [ebp - 0x24], ecx */
   9046     MEM32(ebp + (-0x20)) = edx; /* 0x3000AC26: mov dword ptr [ebp - 0x20], edx */
   9047     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AC29: mov dword ptr [ebp - 0x1c], eax */
   9048     MEM32(ebp + (-0x48)) = ecx; /* 0x3000AC2C: mov dword ptr [ebp - 0x48], ecx */
   9049     PUSH32(esp, esi); /* 0x3000AC2F: push esi */
   9050     ecx = ebp + (-0x48); /* 0x3000AC30: lea ecx, [ebp - 0x48] */
   9051     MEM32(ebp + (-0x44)) = edx; /* 0x3000AC33: mov dword ptr [ebp - 0x44], edx */
   9052     MEM32(ebp + (-0x40)) = eax; /* 0x3000AC36: mov dword ptr [ebp - 0x40], eax */
   9053     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AC39: call dword ptr [0x300190ec] */
   9054     RECOMP_FLAGS_IN();
   9055     ecx = MEM32(eax); /* 0x3000AC3F: mov ecx, dword ptr [eax] */
   9056     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000AC41: mov dword ptr [ebp - 0x3c], ecx */
   9057     edx = MEM32(eax + 0x4); /* 0x3000AC44: mov edx, dword ptr [eax + 4] */
   9058     MEM32(ebp + (-0x38)) = edx; /* 0x3000AC47: mov dword ptr [ebp - 0x38], edx */
   9059     eax = MEM32(eax + 0x8); /* 0x3000AC4A: mov eax, dword ptr [eax + 8] */
   9060     ecx = edi; /* 0x3000AC4D: mov ecx, edi */
   9061     edx = MEM32(ecx); /* 0x3000AC4F: mov edx, dword ptr [ecx] */
   9062     MEM32(ebp + (-0x34)) = eax; /* 0x3000AC51: mov dword ptr [ebp - 0x34], eax */
   9063     eax = MEM32(ecx + 0x4); /* 0x3000AC54: mov eax, dword ptr [ecx + 4] */
   9064     ecx = MEM32(ecx + 0x8); /* 0x3000AC57: mov ecx, dword ptr [ecx + 8] */
   9065     MEM32(ebp + (-0x30)) = edx; /* 0x3000AC5A: mov dword ptr [ebp - 0x30], edx */
   9066     edx = ebp + (-0x3C); /* 0x3000AC5D: lea edx, [ebp - 0x3c] */
   9067     MEM32(ebp + (-0x28)) = ecx; /* 0x3000AC60: mov dword ptr [ebp - 0x28], ecx */
   9068     PUSH32(esp, edx); /* 0x3000AC63: push edx */
   9069     ecx = ebp + (-0x30); /* 0x3000AC64: lea ecx, [ebp - 0x30] */
   9070     MEM32(ebp + (-0x2C)) = eax; /* 0x3000AC67: mov dword ptr [ebp - 0x2c], eax */
   9071     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AC6A: call dword ptr [0x300190c4] */
   9072     RECOMP_FLAGS_IN();
   9073     ecx = MEM32(eax); /* 0x3000AC70: mov ecx, dword ptr [eax] */
   9074     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AC72: mov dword ptr [ebp - 0x24], ecx */
   9075     edx = MEM32(eax + 0x4); /* 0x3000AC75: mov edx, dword ptr [eax + 4] */
   9076     ecx = ebp + (-0x24); /* 0x3000AC78: lea ecx, [ebp - 0x24] */
   9077     PUSH32(esp, ecx); /* 0x3000AC7B: push ecx */
   9078     MEM32(ebp + (-0x20)) = edx; /* 0x3000AC7C: mov dword ptr [ebp - 0x20], edx */
   9079     eax = MEM32(eax + 0x8); /* 0x3000AC7F: mov eax, dword ptr [eax + 8] */
   9080     PUSH32(esp, 2); /* 0x3000AC82: push 2 */
   9081     ecx = ebp + (-0x64); /* 0x3000AC84: lea ecx, [ebp - 0x64] */
   9082     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AC87: mov dword ptr [ebp - 0x1c], eax */
   9083     RECOMP_ICALL(0x30007BA0u); /* 0x3000AC8A: call 0x30007ba0 */ /* not lifted */
   9084     RECOMP_FLAGS_IN();
   9085     ecx = MEM32(ebp + 0x10); /* 0x3000AC8F: mov ecx, dword ptr [ebp + 0x10] */
   9086     edx = MEM32(ebp + 0x8); /* 0x3000AC92: mov edx, dword ptr [ebp + 8] */
   9087     eax = MEM32(ebp + 0xC); /* 0x3000AC95: mov eax, dword ptr [ebp + 0xc] */
   9088     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000AC98: mov dword ptr [ebp - 0x1c], ecx */
   9089     MEM32(ebp + (-0x40)) = ecx; /* 0x3000AC9B: mov dword ptr [ebp - 0x40], ecx */
   9090     PUSH32(esp, esi); /* 0x3000AC9E: push esi */
   9091     ecx = ebp + (-0x48); /* 0x3000AC9F: lea ecx, [ebp - 0x48] */
   9092     MEM32(ebp + (-0x24)) = edx; /* 0x3000ACA2: mov dword ptr [ebp - 0x24], edx */
   9093     MEM32(ebp + (-0x20)) = eax; /* 0x3000ACA5: mov dword ptr [ebp - 0x20], eax */
   9094     MEM32(ebp + (-0x48)) = edx; /* 0x3000ACA8: mov dword ptr [ebp - 0x48], edx */
   9095     MEM32(ebp + (-0x44)) = eax; /* 0x3000ACAB: mov dword ptr [ebp - 0x44], eax */
   9096     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000ACAE: call dword ptr [0x300190ec] */
   9097     RECOMP_FLAGS_IN();
   9098     edx = MEM32(eax); /* 0x3000ACB4: mov edx, dword ptr [eax] */
   9099     MEM32(ebp + (-0x3C)) = edx; /* 0x3000ACB6: mov dword ptr [ebp - 0x3c], edx */
   9100     ecx = MEM32(eax + 0x4); /* 0x3000ACB9: mov ecx, dword ptr [eax + 4] */
   9101     MEM32(ebp + (-0x38)) = ecx; /* 0x3000ACBC: mov dword ptr [ebp - 0x38], ecx */
   9102     edx = MEM32(eax + 0x8); /* 0x3000ACBF: mov edx, dword ptr [eax + 8] */
   9103     eax = edi; /* 0x3000ACC2: mov eax, edi */
   9104     ecx = MEM32(eax); /* 0x3000ACC4: mov ecx, dword ptr [eax] */
   9105     MEM32(ebp + (-0x30)) = ecx; /* 0x3000ACC6: mov dword ptr [ebp - 0x30], ecx */
   9106     MEM32(ebp + (-0x34)) = edx; /* 0x3000ACC9: mov dword ptr [ebp - 0x34], edx */
   9107     edx = MEM32(eax + 0x4); /* 0x3000ACCC: mov edx, dword ptr [eax + 4] */
   9108     eax = MEM32(eax + 0x8); /* 0x3000ACCF: mov eax, dword ptr [eax + 8] */
   9109     ecx = ebp + (-0x3C); /* 0x3000ACD2: lea ecx, [ebp - 0x3c] */
   9110     PUSH32(esp, ecx); /* 0x3000ACD5: push ecx */
   9111     ecx = ebp + (-0x30); /* 0x3000ACD6: lea ecx, [ebp - 0x30] */
   9112     MEM32(ebp + (-0x2C)) = edx; /* 0x3000ACD9: mov dword ptr [ebp - 0x2c], edx */
   9113     MEM32(ebp + (-0x28)) = eax; /* 0x3000ACDC: mov dword ptr [ebp - 0x28], eax */
   9114     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000ACDF: call dword ptr [0x300190c4] */
   9115     RECOMP_FLAGS_IN();
   9116     edx = MEM32(eax); /* 0x3000ACE5: mov edx, dword ptr [eax] */
   9117     MEM32(ebp + (-0x24)) = edx; /* 0x3000ACE7: mov dword ptr [ebp - 0x24], edx */
   9118     ecx = MEM32(eax + 0x4); /* 0x3000ACEA: mov ecx, dword ptr [eax + 4] */
   9119     MEM32(ebp + (-0x20)) = ecx; /* 0x3000ACED: mov dword ptr [ebp - 0x20], ecx */
   9120     edx = MEM32(eax + 0x8); /* 0x3000ACF0: mov edx, dword ptr [eax + 8] */
   9121     eax = ebp + (-0x24); /* 0x3000ACF3: lea eax, [ebp - 0x24] */
   9122     PUSH32(esp, eax); /* 0x3000ACF6: push eax */
   9123     PUSH32(esp, 1); /* 0x3000ACF7: push 1 */
   9124     ecx = ebp + (-0x64); /* 0x3000ACF9: lea ecx, [ebp - 0x64] */
   9125     MEM32(ebp + (-0x1C)) = edx; /* 0x3000ACFC: mov dword ptr [ebp - 0x1c], edx */
   9126     RECOMP_ICALL(0x30007BA0u); /* 0x3000ACFF: call 0x30007ba0 */ /* not lifted */
   9127     RECOMP_FLAGS_IN();
   9128     ecx = MEM32(ebp + 0x8); /* 0x3000AD04: mov ecx, dword ptr [ebp + 8] */
   9129     edx = MEM32(ebp + (-0x14)); /* 0x3000AD07: mov edx, dword ptr [ebp - 0x14] */
   9130     eax = MEM32(ebp + 0x10); /* 0x3000AD0A: mov eax, dword ptr [ebp + 0x10] */
   9131     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AD0D: mov dword ptr [ebp - 0x24], ecx */
   9132     MEM32(ebp + (-0x20)) = edx; /* 0x3000AD10: mov dword ptr [ebp - 0x20], edx */
   9133     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AD13: mov dword ptr [ebp - 0x1c], eax */
   9134     MEM32(ebp + (-0x48)) = ecx; /* 0x3000AD16: mov dword ptr [ebp - 0x48], ecx */
   9135     PUSH32(esp, esi); /* 0x3000AD19: push esi */
   9136     ecx = ebp + (-0x48); /* 0x3000AD1A: lea ecx, [ebp - 0x48] */
   9137     MEM32(ebp + (-0x44)) = edx; /* 0x3000AD1D: mov dword ptr [ebp - 0x44], edx */
   9138     MEM32(ebp + (-0x40)) = eax; /* 0x3000AD20: mov dword ptr [ebp - 0x40], eax */
   9139     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AD23: call dword ptr [0x300190ec] */
   9140     RECOMP_FLAGS_IN();
   9141     ecx = MEM32(eax); /* 0x3000AD29: mov ecx, dword ptr [eax] */
   9142     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000AD2B: mov dword ptr [ebp - 0x3c], ecx */
   9143     edx = MEM32(eax + 0x4); /* 0x3000AD2E: mov edx, dword ptr [eax + 4] */
   9144     MEM32(ebp + (-0x38)) = edx; /* 0x3000AD31: mov dword ptr [ebp - 0x38], edx */
   9145     eax = MEM32(eax + 0x8); /* 0x3000AD34: mov eax, dword ptr [eax + 8] */
   9146     ecx = edi; /* 0x3000AD37: mov ecx, edi */
   9147     edx = MEM32(ecx); /* 0x3000AD39: mov edx, dword ptr [ecx] */
   9148     MEM32(ebp + (-0x34)) = eax; /* 0x3000AD3B: mov dword ptr [ebp - 0x34], eax */
   9149     eax = MEM32(ecx + 0x4); /* 0x3000AD3E: mov eax, dword ptr [ecx + 4] */
   9150     ecx = MEM32(ecx + 0x8); /* 0x3000AD41: mov ecx, dword ptr [ecx + 8] */
   9151     MEM32(ebp + (-0x30)) = edx; /* 0x3000AD44: mov dword ptr [ebp - 0x30], edx */
   9152     edx = ebp + (-0x3C); /* 0x3000AD47: lea edx, [ebp - 0x3c] */
   9153     MEM32(ebp + (-0x28)) = ecx; /* 0x3000AD4A: mov dword ptr [ebp - 0x28], ecx */
   9154     PUSH32(esp, edx); /* 0x3000AD4D: push edx */
   9155     ecx = ebp + (-0x30); /* 0x3000AD4E: lea ecx, [ebp - 0x30] */
   9156     MEM32(ebp + (-0x2C)) = eax; /* 0x3000AD51: mov dword ptr [ebp - 0x2c], eax */
   9157     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AD54: call dword ptr [0x300190c4] */
   9158     RECOMP_FLAGS_IN();
   9159     ecx = MEM32(eax); /* 0x3000AD5A: mov ecx, dword ptr [eax] */
   9160     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AD5C: mov dword ptr [ebp - 0x24], ecx */
   9161     edx = MEM32(eax + 0x4); /* 0x3000AD5F: mov edx, dword ptr [eax + 4] */
   9162     ecx = ebp + (-0x24); /* 0x3000AD62: lea ecx, [ebp - 0x24] */
   9163     PUSH32(esp, ecx); /* 0x3000AD65: push ecx */
   9164     MEM32(ebp + (-0x20)) = edx; /* 0x3000AD66: mov dword ptr [ebp - 0x20], edx */
   9165     eax = MEM32(eax + 0x8); /* 0x3000AD69: mov eax, dword ptr [eax + 8] */
   9166     PUSH32(esp, 0); /* 0x3000AD6C: push 0 */
   9167     ecx = ebp + (-0x64); /* 0x3000AD6E: lea ecx, [ebp - 0x64] */
   9168     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AD71: mov dword ptr [ebp - 0x1c], eax */
   9169     RECOMP_ICALL(0x30007BA0u); /* 0x3000AD74: call 0x30007ba0 */ /* not lifted */
   9170     RECOMP_FLAGS_IN();
   9171     eax = MEM32(ebx + 0x8); /* 0x3000AD79: mov eax, dword ptr [ebx + 8] */
   9172     edx = ebp + (-0x64); /* 0x3000AD7C: lea edx, [ebp - 0x64] */
   9173     PUSH32(esp, edx); /* 0x3000AD7F: push edx */
   9174     PUSH32(esp, eax); /* 0x3000AD80: push eax */
   9175     ecx = ebx; /* 0x3000AD81: mov ecx, ebx */
   9176     RECOMP_ICALL(0x30002C40u); /* 0x3000AD83: call 0x30002c40 */ /* not lifted */
   9177     RECOMP_FLAGS_IN();
   9178     ecx = MEM32(ebp + (-0x14)); /* 0x3000AD88: mov ecx, dword ptr [ebp - 0x14] */
   9179     eax = MEM32(ebp + (-0x18)); /* 0x3000AD8B: mov eax, dword ptr [ebp - 0x18] */
   9180     edx = MEM32(ebp + (-0x10)); /* 0x3000AD8E: mov edx, dword ptr [ebp - 0x10] */
   9181     MEM32(ebp + (-0x20)) = ecx; /* 0x3000AD91: mov dword ptr [ebp - 0x20], ecx */
   9182     MEM32(ebp + (-0x44)) = ecx; /* 0x3000AD94: mov dword ptr [ebp - 0x44], ecx */
   9183     PUSH32(esp, esi); /* 0x3000AD97: push esi */
   9184     ecx = ebp + (-0x48); /* 0x3000AD98: lea ecx, [ebp - 0x48] */
   9185     MEM32(ebp + (-0x24)) = eax; /* 0x3000AD9B: mov dword ptr [ebp - 0x24], eax */
   9186     MEM32(ebp + (-0x1C)) = edx; /* 0x3000AD9E: mov dword ptr [ebp - 0x1c], edx */
   9187     MEM32(ebp + (-0x48)) = eax; /* 0x3000ADA1: mov dword ptr [ebp - 0x48], eax */
   9188     MEM32(ebp + (-0x40)) = edx; /* 0x3000ADA4: mov dword ptr [ebp - 0x40], edx */
   9189     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000ADA7: call dword ptr [0x300190ec] */
   9190     RECOMP_FLAGS_IN();
   9191     ecx = MEM32(eax); /* 0x3000ADAD: mov ecx, dword ptr [eax] */
   9192     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000ADAF: mov dword ptr [ebp - 0x3c], ecx */
   9193     edx = MEM32(eax + 0x4); /* 0x3000ADB2: mov edx, dword ptr [eax + 4] */
   9194     MEM32(ebp + (-0x38)) = edx; /* 0x3000ADB5: mov dword ptr [ebp - 0x38], edx */
   9195     eax = MEM32(eax + 0x8); /* 0x3000ADB8: mov eax, dword ptr [eax + 8] */
   9196     ecx = edi; /* 0x3000ADBB: mov ecx, edi */
   9197     edx = MEM32(ecx); /* 0x3000ADBD: mov edx, dword ptr [ecx] */
   9198     MEM32(ebp + (-0x34)) = eax; /* 0x3000ADBF: mov dword ptr [ebp - 0x34], eax */
   9199     eax = MEM32(ecx + 0x4); /* 0x3000ADC2: mov eax, dword ptr [ecx + 4] */
   9200     ecx = MEM32(ecx + 0x8); /* 0x3000ADC5: mov ecx, dword ptr [ecx + 8] */
   9201     MEM32(ebp + (-0x30)) = edx; /* 0x3000ADC8: mov dword ptr [ebp - 0x30], edx */
   9202     edx = ebp + (-0x3C); /* 0x3000ADCB: lea edx, [ebp - 0x3c] */
   9203     MEM32(ebp + (-0x28)) = ecx; /* 0x3000ADCE: mov dword ptr [ebp - 0x28], ecx */
   9204     PUSH32(esp, edx); /* 0x3000ADD1: push edx */
   9205     ecx = ebp + (-0x30); /* 0x3000ADD2: lea ecx, [ebp - 0x30] */
   9206     MEM32(ebp + (-0x2C)) = eax; /* 0x3000ADD5: mov dword ptr [ebp - 0x2c], eax */
   9207     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000ADD8: call dword ptr [0x300190c4] */
   9208     RECOMP_FLAGS_IN();
   9209     ecx = MEM32(eax); /* 0x3000ADDE: mov ecx, dword ptr [eax] */
   9210     MEM32(ebp + (-0x24)) = ecx; /* 0x3000ADE0: mov dword ptr [ebp - 0x24], ecx */
   9211     edx = MEM32(eax + 0x4); /* 0x3000ADE3: mov edx, dword ptr [eax + 4] */
   9212     ecx = ebp + (-0x24); /* 0x3000ADE6: lea ecx, [ebp - 0x24] */
   9213     PUSH32(esp, ecx); /* 0x3000ADE9: push ecx */
   9214     MEM32(ebp + (-0x20)) = edx; /* 0x3000ADEA: mov dword ptr [ebp - 0x20], edx */
   9215     eax = MEM32(eax + 0x8); /* 0x3000ADED: mov eax, dword ptr [eax + 8] */
   9216     PUSH32(esp, 3); /* 0x3000ADF0: push 3 */
   9217     ecx = ebp + (-0x64); /* 0x3000ADF2: lea ecx, [ebp - 0x64] */
   9218     MEM32(ebp + (-0x1C)) = eax; /* 0x3000ADF5: mov dword ptr [ebp - 0x1c], eax */
   9219     RECOMP_ICALL(0x30007BA0u); /* 0x3000ADF8: call 0x30007ba0 */ /* not lifted */
   9220     RECOMP_FLAGS_IN();
   9221     edx = MEM32(ebp + (-0x18)); /* 0x3000ADFD: mov edx, dword ptr [ebp - 0x18] */
   9222     MEM32(ebp + (-0x24)) = edx; /* 0x3000AE00: mov dword ptr [ebp - 0x24], edx */
   9223     ecx = MEM32(ebp + 0x10); /* 0x3000AE03: mov ecx, dword ptr [ebp + 0x10] */
   9224     eax = MEM32(ebp + (-0x14)); /* 0x3000AE06: mov eax, dword ptr [ebp - 0x14] */
   9225     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000AE09: mov dword ptr [ebp - 0x1c], ecx */
   9226     MEM32(ebp + (-0x40)) = ecx; /* 0x3000AE0C: mov dword ptr [ebp - 0x40], ecx */
   9227     PUSH32(esp, esi); /* 0x3000AE0F: push esi */
   9228     ecx = ebp + (-0x48); /* 0x3000AE10: lea ecx, [ebp - 0x48] */
   9229     MEM32(ebp + (-0x20)) = eax; /* 0x3000AE13: mov dword ptr [ebp - 0x20], eax */
   9230     MEM32(ebp + (-0x48)) = edx; /* 0x3000AE16: mov dword ptr [ebp - 0x48], edx */
   9231     MEM32(ebp + (-0x44)) = eax; /* 0x3000AE19: mov dword ptr [ebp - 0x44], eax */
   9232     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AE1C: call dword ptr [0x300190ec] */
   9233     RECOMP_FLAGS_IN();
   9234     edx = MEM32(eax); /* 0x3000AE22: mov edx, dword ptr [eax] */
   9235     MEM32(ebp + (-0x3C)) = edx; /* 0x3000AE24: mov dword ptr [ebp - 0x3c], edx */
   9236     ecx = MEM32(eax + 0x4); /* 0x3000AE27: mov ecx, dword ptr [eax + 4] */
   9237     MEM32(ebp + (-0x38)) = ecx; /* 0x3000AE2A: mov dword ptr [ebp - 0x38], ecx */
   9238     edx = MEM32(eax + 0x8); /* 0x3000AE2D: mov edx, dword ptr [eax + 8] */
   9239     eax = edi; /* 0x3000AE30: mov eax, edi */
   9240     ecx = MEM32(eax); /* 0x3000AE32: mov ecx, dword ptr [eax] */
   9241     MEM32(ebp + (-0x30)) = ecx; /* 0x3000AE34: mov dword ptr [ebp - 0x30], ecx */
   9242     MEM32(ebp + (-0x34)) = edx; /* 0x3000AE37: mov dword ptr [ebp - 0x34], edx */
   9243     edx = MEM32(eax + 0x4); /* 0x3000AE3A: mov edx, dword ptr [eax + 4] */
   9244     eax = MEM32(eax + 0x8); /* 0x3000AE3D: mov eax, dword ptr [eax + 8] */
   9245     ecx = ebp + (-0x3C); /* 0x3000AE40: lea ecx, [ebp - 0x3c] */
   9246     PUSH32(esp, ecx); /* 0x3000AE43: push ecx */
   9247     ecx = ebp + (-0x30); /* 0x3000AE44: lea ecx, [ebp - 0x30] */
   9248     MEM32(ebp + (-0x2C)) = edx; /* 0x3000AE47: mov dword ptr [ebp - 0x2c], edx */
   9249     MEM32(ebp + (-0x28)) = eax; /* 0x3000AE4A: mov dword ptr [ebp - 0x28], eax */
   9250     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AE4D: call dword ptr [0x300190c4] */
   9251     RECOMP_FLAGS_IN();
   9252     edx = MEM32(eax); /* 0x3000AE53: mov edx, dword ptr [eax] */
   9253     MEM32(ebp + (-0x24)) = edx; /* 0x3000AE55: mov dword ptr [ebp - 0x24], edx */
   9254     ecx = MEM32(eax + 0x4); /* 0x3000AE58: mov ecx, dword ptr [eax + 4] */
   9255     MEM32(ebp + (-0x20)) = ecx; /* 0x3000AE5B: mov dword ptr [ebp - 0x20], ecx */
   9256     edx = MEM32(eax + 0x8); /* 0x3000AE5E: mov edx, dword ptr [eax + 8] */
   9257     eax = ebp + (-0x24); /* 0x3000AE61: lea eax, [ebp - 0x24] */
   9258     PUSH32(esp, eax); /* 0x3000AE64: push eax */
   9259     PUSH32(esp, 2); /* 0x3000AE65: push 2 */
   9260     ecx = ebp + (-0x64); /* 0x3000AE67: lea ecx, [ebp - 0x64] */
   9261     MEM32(ebp + (-0x1C)) = edx; /* 0x3000AE6A: mov dword ptr [ebp - 0x1c], edx */
   9262     RECOMP_ICALL(0x30007BA0u); /* 0x3000AE6D: call 0x30007ba0 */ /* not lifted */
   9263     RECOMP_FLAGS_IN();
   9264     ecx = MEM32(ebp + 0x8); /* 0x3000AE72: mov ecx, dword ptr [ebp + 8] */
   9265     edx = MEM32(ebp + (-0x14)); /* 0x3000AE75: mov edx, dword ptr [ebp - 0x14] */
   9266     eax = MEM32(ebp + 0x10); /* 0x3000AE78: mov eax, dword ptr [ebp + 0x10] */
   9267     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AE7B: mov dword ptr [ebp - 0x24], ecx */
   9268     MEM32(ebp + (-0x48)) = ecx; /* 0x3000AE7E: mov dword ptr [ebp - 0x48], ecx */
   9269     PUSH32(esp, esi); /* 0x3000AE81: push esi */
   9270     ecx = ebp + (-0x48); /* 0x3000AE82: lea ecx, [ebp - 0x48] */
   9271     MEM32(ebp + (-0x20)) = edx; /* 0x3000AE85: mov dword ptr [ebp - 0x20], edx */
   9272     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AE88: mov dword ptr [ebp - 0x1c], eax */
   9273     MEM32(ebp + (-0x44)) = edx; /* 0x3000AE8B: mov dword ptr [ebp - 0x44], edx */
   9274     MEM32(ebp + (-0x40)) = eax; /* 0x3000AE8E: mov dword ptr [ebp - 0x40], eax */
   9275     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AE91: call dword ptr [0x300190ec] */
   9276     RECOMP_FLAGS_IN();
   9277     ecx = MEM32(eax); /* 0x3000AE97: mov ecx, dword ptr [eax] */
   9278     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000AE99: mov dword ptr [ebp - 0x3c], ecx */
   9279     edx = MEM32(eax + 0x4); /* 0x3000AE9C: mov edx, dword ptr [eax + 4] */
   9280     MEM32(ebp + (-0x38)) = edx; /* 0x3000AE9F: mov dword ptr [ebp - 0x38], edx */
   9281     eax = MEM32(eax + 0x8); /* 0x3000AEA2: mov eax, dword ptr [eax + 8] */
   9282     ecx = edi; /* 0x3000AEA5: mov ecx, edi */
   9283     edx = MEM32(ecx); /* 0x3000AEA7: mov edx, dword ptr [ecx] */
   9284     MEM32(ebp + (-0x34)) = eax; /* 0x3000AEA9: mov dword ptr [ebp - 0x34], eax */
   9285     eax = MEM32(ecx + 0x4); /* 0x3000AEAC: mov eax, dword ptr [ecx + 4] */
   9286     ecx = MEM32(ecx + 0x8); /* 0x3000AEAF: mov ecx, dword ptr [ecx + 8] */
   9287     MEM32(ebp + (-0x30)) = edx; /* 0x3000AEB2: mov dword ptr [ebp - 0x30], edx */
   9288     edx = ebp + (-0x3C); /* 0x3000AEB5: lea edx, [ebp - 0x3c] */
   9289     MEM32(ebp + (-0x28)) = ecx; /* 0x3000AEB8: mov dword ptr [ebp - 0x28], ecx */
   9290     PUSH32(esp, edx); /* 0x3000AEBB: push edx */
   9291     ecx = ebp + (-0x30); /* 0x3000AEBC: lea ecx, [ebp - 0x30] */
   9292     MEM32(ebp + (-0x2C)) = eax; /* 0x3000AEBF: mov dword ptr [ebp - 0x2c], eax */
   9293     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AEC2: call dword ptr [0x300190c4] */
   9294     RECOMP_FLAGS_IN();
   9295     ecx = MEM32(eax); /* 0x3000AEC8: mov ecx, dword ptr [eax] */
   9296     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AECA: mov dword ptr [ebp - 0x24], ecx */
   9297     edx = MEM32(eax + 0x4); /* 0x3000AECD: mov edx, dword ptr [eax + 4] */
   9298     ecx = ebp + (-0x24); /* 0x3000AED0: lea ecx, [ebp - 0x24] */
   9299     PUSH32(esp, ecx); /* 0x3000AED3: push ecx */
   9300     MEM32(ebp + (-0x20)) = edx; /* 0x3000AED4: mov dword ptr [ebp - 0x20], edx */
   9301     eax = MEM32(eax + 0x8); /* 0x3000AED7: mov eax, dword ptr [eax + 8] */
   9302     PUSH32(esp, 1); /* 0x3000AEDA: push 1 */
   9303     ecx = ebp + (-0x64); /* 0x3000AEDC: lea ecx, [ebp - 0x64] */
   9304     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AEDF: mov dword ptr [ebp - 0x1c], eax */
   9305     RECOMP_ICALL(0x30007BA0u); /* 0x3000AEE2: call 0x30007ba0 */ /* not lifted */
   9306     RECOMP_FLAGS_IN();
   9307     edx = MEM32(ebp + 0x8); /* 0x3000AEE7: mov edx, dword ptr [ebp + 8] */
   9308     eax = MEM32(ebp + (-0x14)); /* 0x3000AEEA: mov eax, dword ptr [ebp - 0x14] */
   9309     MEM32(ebp + (-0x24)) = edx; /* 0x3000AEED: mov dword ptr [ebp - 0x24], edx */
   9310     ecx = MEM32(ebp + (-0x10)); /* 0x3000AEF0: mov ecx, dword ptr [ebp - 0x10] */
   9311     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000AEF3: mov dword ptr [ebp - 0x1c], ecx */
   9312     MEM32(ebp + (-0x40)) = ecx; /* 0x3000AEF6: mov dword ptr [ebp - 0x40], ecx */
   9313     PUSH32(esp, esi); /* 0x3000AEF9: push esi */
   9314     ecx = ebp + (-0x48); /* 0x3000AEFA: lea ecx, [ebp - 0x48] */
   9315     MEM32(ebp + (-0x20)) = eax; /* 0x3000AEFD: mov dword ptr [ebp - 0x20], eax */
   9316     MEM32(ebp + (-0x48)) = edx; /* 0x3000AF00: mov dword ptr [ebp - 0x48], edx */
   9317     MEM32(ebp + (-0x44)) = eax; /* 0x3000AF03: mov dword ptr [ebp - 0x44], eax */
   9318     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AF06: call dword ptr [0x300190ec] */
   9319     RECOMP_FLAGS_IN();
   9320     edx = MEM32(eax); /* 0x3000AF0C: mov edx, dword ptr [eax] */
   9321     MEM32(ebp + (-0x3C)) = edx; /* 0x3000AF0E: mov dword ptr [ebp - 0x3c], edx */
   9322     ecx = MEM32(eax + 0x4); /* 0x3000AF11: mov ecx, dword ptr [eax + 4] */
   9323     MEM32(ebp + (-0x38)) = ecx; /* 0x3000AF14: mov dword ptr [ebp - 0x38], ecx */
   9324     edx = MEM32(eax + 0x8); /* 0x3000AF17: mov edx, dword ptr [eax + 8] */
   9325     eax = edi; /* 0x3000AF1A: mov eax, edi */
   9326     ecx = MEM32(eax); /* 0x3000AF1C: mov ecx, dword ptr [eax] */
   9327     MEM32(ebp + (-0x30)) = ecx; /* 0x3000AF1E: mov dword ptr [ebp - 0x30], ecx */
   9328     MEM32(ebp + (-0x34)) = edx; /* 0x3000AF21: mov dword ptr [ebp - 0x34], edx */
   9329     edx = MEM32(eax + 0x4); /* 0x3000AF24: mov edx, dword ptr [eax + 4] */
   9330     eax = MEM32(eax + 0x8); /* 0x3000AF27: mov eax, dword ptr [eax + 8] */
   9331     ecx = ebp + (-0x3C); /* 0x3000AF2A: lea ecx, [ebp - 0x3c] */
   9332     PUSH32(esp, ecx); /* 0x3000AF2D: push ecx */
   9333     ecx = ebp + (-0x30); /* 0x3000AF2E: lea ecx, [ebp - 0x30] */
   9334     MEM32(ebp + (-0x2C)) = edx; /* 0x3000AF31: mov dword ptr [ebp - 0x2c], edx */
   9335     MEM32(ebp + (-0x28)) = eax; /* 0x3000AF34: mov dword ptr [ebp - 0x28], eax */
   9336     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AF37: call dword ptr [0x300190c4] */
   9337     RECOMP_FLAGS_IN();
   9338     edx = MEM32(eax); /* 0x3000AF3D: mov edx, dword ptr [eax] */
   9339     MEM32(ebp + (-0x24)) = edx; /* 0x3000AF3F: mov dword ptr [ebp - 0x24], edx */
   9340     ecx = MEM32(eax + 0x4); /* 0x3000AF42: mov ecx, dword ptr [eax + 4] */
   9341     MEM32(ebp + (-0x20)) = ecx; /* 0x3000AF45: mov dword ptr [ebp - 0x20], ecx */
   9342     edx = MEM32(eax + 0x8); /* 0x3000AF48: mov edx, dword ptr [eax + 8] */
   9343     eax = ebp + (-0x24); /* 0x3000AF4B: lea eax, [ebp - 0x24] */
   9344     PUSH32(esp, eax); /* 0x3000AF4E: push eax */
   9345     PUSH32(esp, 0); /* 0x3000AF4F: push 0 */
   9346     ecx = ebp + (-0x64); /* 0x3000AF51: lea ecx, [ebp - 0x64] */
   9347     MEM32(ebp + (-0x1C)) = edx; /* 0x3000AF54: mov dword ptr [ebp - 0x1c], edx */
   9348     RECOMP_ICALL(0x30007BA0u); /* 0x3000AF57: call 0x30007ba0 */ /* not lifted */
   9349     RECOMP_FLAGS_IN();
   9350     eax = MEM32(ebx + 0x8); /* 0x3000AF5C: mov eax, dword ptr [ebx + 8] */
   9351     ecx = ebp + (-0x64); /* 0x3000AF5F: lea ecx, [ebp - 0x64] */
   9352     PUSH32(esp, ecx); /* 0x3000AF62: push ecx */
   9353     PUSH32(esp, eax); /* 0x3000AF63: push eax */
   9354     ecx = ebx; /* 0x3000AF64: mov ecx, ebx */
   9355     RECOMP_ICALL(0x30002C40u); /* 0x3000AF66: call 0x30002c40 */ /* not lifted */
   9356     RECOMP_FLAGS_IN();
   9357     ecx = MEM32(ebp + (-0x10)); /* 0x3000AF6B: mov ecx, dword ptr [ebp - 0x10] */
   9358     edx = MEM32(ebp + (-0x18)); /* 0x3000AF6E: mov edx, dword ptr [ebp - 0x18] */
   9359     eax = MEM32(ebp + 0xC); /* 0x3000AF71: mov eax, dword ptr [ebp + 0xc] */
   9360     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000AF74: mov dword ptr [ebp - 0x1c], ecx */
   9361     MEM32(ebp + (-0x40)) = ecx; /* 0x3000AF77: mov dword ptr [ebp - 0x40], ecx */
   9362     PUSH32(esp, esi); /* 0x3000AF7A: push esi */
   9363     ecx = ebp + (-0x48); /* 0x3000AF7B: lea ecx, [ebp - 0x48] */
   9364     MEM32(ebp + (-0x24)) = edx; /* 0x3000AF7E: mov dword ptr [ebp - 0x24], edx */
   9365     MEM32(ebp + (-0x20)) = eax; /* 0x3000AF81: mov dword ptr [ebp - 0x20], eax */
   9366     MEM32(ebp + (-0x48)) = edx; /* 0x3000AF84: mov dword ptr [ebp - 0x48], edx */
   9367     MEM32(ebp + (-0x44)) = eax; /* 0x3000AF87: mov dword ptr [ebp - 0x44], eax */
   9368     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AF8A: call dword ptr [0x300190ec] */
   9369     RECOMP_FLAGS_IN();
   9370     edx = MEM32(eax); /* 0x3000AF90: mov edx, dword ptr [eax] */
   9371     MEM32(ebp + (-0x3C)) = edx; /* 0x3000AF92: mov dword ptr [ebp - 0x3c], edx */
   9372     ecx = MEM32(eax + 0x4); /* 0x3000AF95: mov ecx, dword ptr [eax + 4] */
   9373     MEM32(ebp + (-0x38)) = ecx; /* 0x3000AF98: mov dword ptr [ebp - 0x38], ecx */
   9374     edx = MEM32(eax + 0x8); /* 0x3000AF9B: mov edx, dword ptr [eax + 8] */
   9375     eax = edi; /* 0x3000AF9E: mov eax, edi */
   9376     ecx = MEM32(eax); /* 0x3000AFA0: mov ecx, dword ptr [eax] */
   9377     MEM32(ebp + (-0x30)) = ecx; /* 0x3000AFA2: mov dword ptr [ebp - 0x30], ecx */
   9378     MEM32(ebp + (-0x34)) = edx; /* 0x3000AFA5: mov dword ptr [ebp - 0x34], edx */
   9379     edx = MEM32(eax + 0x4); /* 0x3000AFA8: mov edx, dword ptr [eax + 4] */
   9380     eax = MEM32(eax + 0x8); /* 0x3000AFAB: mov eax, dword ptr [eax + 8] */
   9381     ecx = ebp + (-0x3C); /* 0x3000AFAE: lea ecx, [ebp - 0x3c] */
   9382     PUSH32(esp, ecx); /* 0x3000AFB1: push ecx */
   9383     ecx = ebp + (-0x30); /* 0x3000AFB2: lea ecx, [ebp - 0x30] */
   9384     MEM32(ebp + (-0x2C)) = edx; /* 0x3000AFB5: mov dword ptr [ebp - 0x2c], edx */
   9385     MEM32(ebp + (-0x28)) = eax; /* 0x3000AFB8: mov dword ptr [ebp - 0x28], eax */
   9386     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000AFBB: call dword ptr [0x300190c4] */
   9387     RECOMP_FLAGS_IN();
   9388     edx = MEM32(eax); /* 0x3000AFC1: mov edx, dword ptr [eax] */
   9389     MEM32(ebp + (-0x24)) = edx; /* 0x3000AFC3: mov dword ptr [ebp - 0x24], edx */
   9390     ecx = MEM32(eax + 0x4); /* 0x3000AFC6: mov ecx, dword ptr [eax + 4] */
   9391     MEM32(ebp + (-0x20)) = ecx; /* 0x3000AFC9: mov dword ptr [ebp - 0x20], ecx */
   9392     edx = MEM32(eax + 0x8); /* 0x3000AFCC: mov edx, dword ptr [eax + 8] */
   9393     eax = ebp + (-0x24); /* 0x3000AFCF: lea eax, [ebp - 0x24] */
   9394     PUSH32(esp, eax); /* 0x3000AFD2: push eax */
   9395     MEM32(ebp + (-0x1C)) = edx; /* 0x3000AFD3: mov dword ptr [ebp - 0x1c], edx */
   9396     PUSH32(esp, 3); /* 0x3000AFD6: push 3 */
   9397     ecx = ebp + (-0x64); /* 0x3000AFD8: lea ecx, [ebp - 0x64] */
   9398     RECOMP_ICALL(0x30007BA0u); /* 0x3000AFDB: call 0x30007ba0 */ /* not lifted */
   9399     RECOMP_FLAGS_IN();
   9400     ecx = MEM32(ebp + 0x8); /* 0x3000AFE0: mov ecx, dword ptr [ebp + 8] */
   9401     edx = MEM32(ebp + 0xC); /* 0x3000AFE3: mov edx, dword ptr [ebp + 0xc] */
   9402     eax = MEM32(ebp + (-0x10)); /* 0x3000AFE6: mov eax, dword ptr [ebp - 0x10] */
   9403     MEM32(ebp + (-0x24)) = ecx; /* 0x3000AFE9: mov dword ptr [ebp - 0x24], ecx */
   9404     MEM32(ebp + (-0x48)) = ecx; /* 0x3000AFEC: mov dword ptr [ebp - 0x48], ecx */
   9405     PUSH32(esp, esi); /* 0x3000AFEF: push esi */
   9406     ecx = ebp + (-0x48); /* 0x3000AFF0: lea ecx, [ebp - 0x48] */
   9407     MEM32(ebp + (-0x20)) = edx; /* 0x3000AFF3: mov dword ptr [ebp - 0x20], edx */
   9408     MEM32(ebp + (-0x1C)) = eax; /* 0x3000AFF6: mov dword ptr [ebp - 0x1c], eax */
   9409     MEM32(ebp + (-0x44)) = edx; /* 0x3000AFF9: mov dword ptr [ebp - 0x44], edx */
   9410     MEM32(ebp + (-0x40)) = eax; /* 0x3000AFFC: mov dword ptr [ebp - 0x40], eax */
   9411     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000AFFF: call dword ptr [0x300190ec] */
   9412     RECOMP_FLAGS_IN();
   9413     ecx = MEM32(eax); /* 0x3000B005: mov ecx, dword ptr [eax] */
   9414     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000B007: mov dword ptr [ebp - 0x3c], ecx */
   9415     edx = MEM32(eax + 0x4); /* 0x3000B00A: mov edx, dword ptr [eax + 4] */
   9416     MEM32(ebp + (-0x38)) = edx; /* 0x3000B00D: mov dword ptr [ebp - 0x38], edx */
   9417     eax = MEM32(eax + 0x8); /* 0x3000B010: mov eax, dword ptr [eax + 8] */
   9418     ecx = edi; /* 0x3000B013: mov ecx, edi */
   9419     edx = MEM32(ecx); /* 0x3000B015: mov edx, dword ptr [ecx] */
   9420     MEM32(ebp + (-0x34)) = eax; /* 0x3000B017: mov dword ptr [ebp - 0x34], eax */
   9421     eax = MEM32(ecx + 0x4); /* 0x3000B01A: mov eax, dword ptr [ecx + 4] */
   9422     ecx = MEM32(ecx + 0x8); /* 0x3000B01D: mov ecx, dword ptr [ecx + 8] */
   9423     MEM32(ebp + (-0x30)) = edx; /* 0x3000B020: mov dword ptr [ebp - 0x30], edx */
   9424     edx = ebp + (-0x3C); /* 0x3000B023: lea edx, [ebp - 0x3c] */
   9425     MEM32(ebp + (-0x28)) = ecx; /* 0x3000B026: mov dword ptr [ebp - 0x28], ecx */
   9426     PUSH32(esp, edx); /* 0x3000B029: push edx */
   9427     ecx = ebp + (-0x30); /* 0x3000B02A: lea ecx, [ebp - 0x30] */
   9428     MEM32(ebp + (-0x2C)) = eax; /* 0x3000B02D: mov dword ptr [ebp - 0x2c], eax */
   9429     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B030: call dword ptr [0x300190c4] */
   9430     RECOMP_FLAGS_IN();
   9431     ecx = MEM32(eax); /* 0x3000B036: mov ecx, dword ptr [eax] */
   9432     MEM32(ebp + (-0x24)) = ecx; /* 0x3000B038: mov dword ptr [ebp - 0x24], ecx */
   9433     edx = MEM32(eax + 0x4); /* 0x3000B03B: mov edx, dword ptr [eax + 4] */
   9434     ecx = ebp + (-0x24); /* 0x3000B03E: lea ecx, [ebp - 0x24] */
   9435     PUSH32(esp, ecx); /* 0x3000B041: push ecx */
   9436     MEM32(ebp + (-0x20)) = edx; /* 0x3000B042: mov dword ptr [ebp - 0x20], edx */
   9437     eax = MEM32(eax + 0x8); /* 0x3000B045: mov eax, dword ptr [eax + 8] */
   9438     PUSH32(esp, 2); /* 0x3000B048: push 2 */
   9439     ecx = ebp + (-0x64); /* 0x3000B04A: lea ecx, [ebp - 0x64] */
   9440     MEM32(ebp + (-0x1C)) = eax; /* 0x3000B04D: mov dword ptr [ebp - 0x1c], eax */
   9441     RECOMP_ICALL(0x30007BA0u); /* 0x3000B050: call 0x30007ba0 */ /* not lifted */
   9442     RECOMP_FLAGS_IN();
   9443     ecx = MEM32(ebp + 0x10); /* 0x3000B055: mov ecx, dword ptr [ebp + 0x10] */
   9444     edx = MEM32(ebp + 0x8); /* 0x3000B058: mov edx, dword ptr [ebp + 8] */
   9445     eax = MEM32(ebp + 0xC); /* 0x3000B05B: mov eax, dword ptr [ebp + 0xc] */
   9446     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000B05E: mov dword ptr [ebp - 0x1c], ecx */
   9447     MEM32(ebp + (-0x40)) = ecx; /* 0x3000B061: mov dword ptr [ebp - 0x40], ecx */
   9448     PUSH32(esp, esi); /* 0x3000B064: push esi */
   9449     ecx = ebp + (-0x48); /* 0x3000B065: lea ecx, [ebp - 0x48] */
   9450     MEM32(ebp + (-0x24)) = edx; /* 0x3000B068: mov dword ptr [ebp - 0x24], edx */
   9451     MEM32(ebp + (-0x20)) = eax; /* 0x3000B06B: mov dword ptr [ebp - 0x20], eax */
   9452     MEM32(ebp + (-0x48)) = edx; /* 0x3000B06E: mov dword ptr [ebp - 0x48], edx */
   9453     MEM32(ebp + (-0x44)) = eax; /* 0x3000B071: mov dword ptr [ebp - 0x44], eax */
   9454     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B074: call dword ptr [0x300190ec] */
   9455     RECOMP_FLAGS_IN();
   9456     edx = MEM32(eax); /* 0x3000B07A: mov edx, dword ptr [eax] */
   9457     MEM32(ebp + (-0x3C)) = edx; /* 0x3000B07C: mov dword ptr [ebp - 0x3c], edx */
   9458     ecx = MEM32(eax + 0x4); /* 0x3000B07F: mov ecx, dword ptr [eax + 4] */
   9459     MEM32(ebp + (-0x38)) = ecx; /* 0x3000B082: mov dword ptr [ebp - 0x38], ecx */
   9460     edx = MEM32(eax + 0x8); /* 0x3000B085: mov edx, dword ptr [eax + 8] */
   9461     eax = edi; /* 0x3000B088: mov eax, edi */
   9462     ecx = MEM32(eax); /* 0x3000B08A: mov ecx, dword ptr [eax] */
   9463     MEM32(ebp + (-0x30)) = ecx; /* 0x3000B08C: mov dword ptr [ebp - 0x30], ecx */
   9464     MEM32(ebp + (-0x34)) = edx; /* 0x3000B08F: mov dword ptr [ebp - 0x34], edx */
   9465     edx = MEM32(eax + 0x4); /* 0x3000B092: mov edx, dword ptr [eax + 4] */
   9466     eax = MEM32(eax + 0x8); /* 0x3000B095: mov eax, dword ptr [eax + 8] */
   9467     ecx = ebp + (-0x3C); /* 0x3000B098: lea ecx, [ebp - 0x3c] */
   9468     PUSH32(esp, ecx); /* 0x3000B09B: push ecx */
   9469     ecx = ebp + (-0x30); /* 0x3000B09C: lea ecx, [ebp - 0x30] */
   9470     MEM32(ebp + (-0x2C)) = edx; /* 0x3000B09F: mov dword ptr [ebp - 0x2c], edx */
   9471     MEM32(ebp + (-0x28)) = eax; /* 0x3000B0A2: mov dword ptr [ebp - 0x28], eax */
   9472     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B0A5: call dword ptr [0x300190c4] */
   9473     RECOMP_FLAGS_IN();
   9474     edx = MEM32(eax); /* 0x3000B0AB: mov edx, dword ptr [eax] */
   9475     MEM32(ebp + (-0x24)) = edx; /* 0x3000B0AD: mov dword ptr [ebp - 0x24], edx */
   9476     ecx = MEM32(eax + 0x4); /* 0x3000B0B0: mov ecx, dword ptr [eax + 4] */
   9477     MEM32(ebp + (-0x20)) = ecx; /* 0x3000B0B3: mov dword ptr [ebp - 0x20], ecx */
   9478     edx = MEM32(eax + 0x8); /* 0x3000B0B6: mov edx, dword ptr [eax + 8] */
   9479     eax = ebp + (-0x24); /* 0x3000B0B9: lea eax, [ebp - 0x24] */
   9480     PUSH32(esp, eax); /* 0x3000B0BC: push eax */
   9481     MEM32(ebp + (-0x1C)) = edx; /* 0x3000B0BD: mov dword ptr [ebp - 0x1c], edx */
   9482     PUSH32(esp, 1); /* 0x3000B0C0: push 1 */
   9483     ecx = ebp + (-0x64); /* 0x3000B0C2: lea ecx, [ebp - 0x64] */
   9484     RECOMP_ICALL(0x30007BA0u); /* 0x3000B0C5: call 0x30007ba0 */ /* not lifted */
   9485     RECOMP_FLAGS_IN();
   9486     ecx = MEM32(ebp + (-0x18)); /* 0x3000B0CA: mov ecx, dword ptr [ebp - 0x18] */
   9487     edx = MEM32(ebp + 0xC); /* 0x3000B0CD: mov edx, dword ptr [ebp + 0xc] */
   9488     eax = MEM32(ebp + 0x10); /* 0x3000B0D0: mov eax, dword ptr [ebp + 0x10] */
   9489     MEM32(ebp + (-0x24)) = ecx; /* 0x3000B0D3: mov dword ptr [ebp - 0x24], ecx */
   9490     MEM32(ebp + (-0x48)) = ecx; /* 0x3000B0D6: mov dword ptr [ebp - 0x48], ecx */
   9491     PUSH32(esp, esi); /* 0x3000B0D9: push esi */
   9492     ecx = ebp + (-0x48); /* 0x3000B0DA: lea ecx, [ebp - 0x48] */
   9493     MEM32(ebp + (-0x20)) = edx; /* 0x3000B0DD: mov dword ptr [ebp - 0x20], edx */
   9494     MEM32(ebp + (-0x1C)) = eax; /* 0x3000B0E0: mov dword ptr [ebp - 0x1c], eax */
   9495     MEM32(ebp + (-0x44)) = edx; /* 0x3000B0E3: mov dword ptr [ebp - 0x44], edx */
   9496     MEM32(ebp + (-0x40)) = eax; /* 0x3000B0E6: mov dword ptr [ebp - 0x40], eax */
   9497     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B0E9: call dword ptr [0x300190ec] */
   9498     RECOMP_FLAGS_IN();
   9499     ecx = MEM32(eax); /* 0x3000B0EF: mov ecx, dword ptr [eax] */
   9500     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000B0F1: mov dword ptr [ebp - 0x3c], ecx */
   9501     edx = MEM32(eax + 0x4); /* 0x3000B0F4: mov edx, dword ptr [eax + 4] */
   9502     MEM32(ebp + (-0x38)) = edx; /* 0x3000B0F7: mov dword ptr [ebp - 0x38], edx */
   9503     eax = MEM32(eax + 0x8); /* 0x3000B0FA: mov eax, dword ptr [eax + 8] */
   9504     ecx = edi; /* 0x3000B0FD: mov ecx, edi */
   9505     edx = MEM32(ecx); /* 0x3000B0FF: mov edx, dword ptr [ecx] */
   9506     MEM32(ebp + (-0x34)) = eax; /* 0x3000B101: mov dword ptr [ebp - 0x34], eax */
   9507     eax = MEM32(ecx + 0x4); /* 0x3000B104: mov eax, dword ptr [ecx + 4] */
   9508     ecx = MEM32(ecx + 0x8); /* 0x3000B107: mov ecx, dword ptr [ecx + 8] */
   9509     MEM32(ebp + (-0x30)) = edx; /* 0x3000B10A: mov dword ptr [ebp - 0x30], edx */
   9510     edx = ebp + (-0x3C); /* 0x3000B10D: lea edx, [ebp - 0x3c] */
   9511     MEM32(ebp + (-0x28)) = ecx; /* 0x3000B110: mov dword ptr [ebp - 0x28], ecx */
   9512     PUSH32(esp, edx); /* 0x3000B113: push edx */
   9513     ecx = ebp + (-0x30); /* 0x3000B114: lea ecx, [ebp - 0x30] */
   9514     MEM32(ebp + (-0x2C)) = eax; /* 0x3000B117: mov dword ptr [ebp - 0x2c], eax */
   9515     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B11A: call dword ptr [0x300190c4] */
   9516     RECOMP_FLAGS_IN();
   9517     ecx = MEM32(eax); /* 0x3000B120: mov ecx, dword ptr [eax] */
   9518     MEM32(ebp + (-0x24)) = ecx; /* 0x3000B122: mov dword ptr [ebp - 0x24], ecx */
   9519     edx = MEM32(eax + 0x4); /* 0x3000B125: mov edx, dword ptr [eax + 4] */
   9520     ecx = ebp + (-0x24); /* 0x3000B128: lea ecx, [ebp - 0x24] */
   9521     PUSH32(esp, ecx); /* 0x3000B12B: push ecx */
   9522     MEM32(ebp + (-0x20)) = edx; /* 0x3000B12C: mov dword ptr [ebp - 0x20], edx */
   9523     eax = MEM32(eax + 0x8); /* 0x3000B12F: mov eax, dword ptr [eax + 8] */
   9524     PUSH32(esp, 0); /* 0x3000B132: push 0 */
   9525     ecx = ebp + (-0x64); /* 0x3000B134: lea ecx, [ebp - 0x64] */
   9526     MEM32(ebp + (-0x1C)) = eax; /* 0x3000B137: mov dword ptr [ebp - 0x1c], eax */
   9527     RECOMP_ICALL(0x30007BA0u); /* 0x3000B13A: call 0x30007ba0 */ /* not lifted */
   9528     RECOMP_FLAGS_IN();
   9529     eax = MEM32(ebx + 0x8); /* 0x3000B13F: mov eax, dword ptr [ebx + 8] */
   9530     edx = ebp + (-0x64); /* 0x3000B142: lea edx, [ebp - 0x64] */
   9531     PUSH32(esp, edx); /* 0x3000B145: push edx */
   9532     PUSH32(esp, eax); /* 0x3000B146: push eax */
   9533     ecx = ebx; /* 0x3000B147: mov ecx, ebx */
   9534     RECOMP_ICALL(0x30002C40u); /* 0x3000B149: call 0x30002c40 */ /* not lifted */
   9535     RECOMP_FLAGS_IN();
   9536     ecx = MEM32(ebp + (-0x14)); /* 0x3000B14E: mov ecx, dword ptr [ebp - 0x14] */
   9537     eax = MEM32(ebp + 0x8); /* 0x3000B151: mov eax, dword ptr [ebp + 8] */
   9538     edx = MEM32(ebp + (-0x10)); /* 0x3000B154: mov edx, dword ptr [ebp - 0x10] */
   9539     MEM32(ebp + (-0x20)) = ecx; /* 0x3000B157: mov dword ptr [ebp - 0x20], ecx */
   9540     MEM32(ebp + (-0x44)) = ecx; /* 0x3000B15A: mov dword ptr [ebp - 0x44], ecx */
   9541     PUSH32(esp, esi); /* 0x3000B15D: push esi */
   9542     ecx = ebp + (-0x48); /* 0x3000B15E: lea ecx, [ebp - 0x48] */
   9543     MEM32(ebp + (-0x24)) = eax; /* 0x3000B161: mov dword ptr [ebp - 0x24], eax */
   9544     MEM32(ebp + (-0x1C)) = edx; /* 0x3000B164: mov dword ptr [ebp - 0x1c], edx */
   9545     MEM32(ebp + (-0x48)) = eax; /* 0x3000B167: mov dword ptr [ebp - 0x48], eax */
   9546     MEM32(ebp + (-0x40)) = edx; /* 0x3000B16A: mov dword ptr [ebp - 0x40], edx */
   9547     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B16D: call dword ptr [0x300190ec] */
   9548     RECOMP_FLAGS_IN();
   9549     ecx = MEM32(eax); /* 0x3000B173: mov ecx, dword ptr [eax] */
   9550     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000B175: mov dword ptr [ebp - 0x3c], ecx */
   9551     edx = MEM32(eax + 0x4); /* 0x3000B178: mov edx, dword ptr [eax + 4] */
   9552     MEM32(ebp + (-0x38)) = edx; /* 0x3000B17B: mov dword ptr [ebp - 0x38], edx */
   9553     eax = MEM32(eax + 0x8); /* 0x3000B17E: mov eax, dword ptr [eax + 8] */
   9554     ecx = edi; /* 0x3000B181: mov ecx, edi */
   9555     edx = MEM32(ecx); /* 0x3000B183: mov edx, dword ptr [ecx] */
   9556     MEM32(ebp + (-0x34)) = eax; /* 0x3000B185: mov dword ptr [ebp - 0x34], eax */
   9557     eax = MEM32(ecx + 0x4); /* 0x3000B188: mov eax, dword ptr [ecx + 4] */
   9558     ecx = MEM32(ecx + 0x8); /* 0x3000B18B: mov ecx, dword ptr [ecx + 8] */
   9559     MEM32(ebp + (-0x30)) = edx; /* 0x3000B18E: mov dword ptr [ebp - 0x30], edx */
   9560     edx = ebp + (-0x3C); /* 0x3000B191: lea edx, [ebp - 0x3c] */
   9561     MEM32(ebp + (-0x28)) = ecx; /* 0x3000B194: mov dword ptr [ebp - 0x28], ecx */
   9562     PUSH32(esp, edx); /* 0x3000B197: push edx */
   9563     ecx = ebp + (-0x30); /* 0x3000B198: lea ecx, [ebp - 0x30] */
   9564     MEM32(ebp + (-0x2C)) = eax; /* 0x3000B19B: mov dword ptr [ebp - 0x2c], eax */
   9565     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B19E: call dword ptr [0x300190c4] */
   9566     RECOMP_FLAGS_IN();
   9567     ecx = MEM32(eax); /* 0x3000B1A4: mov ecx, dword ptr [eax] */
   9568     MEM32(ebp + (-0x24)) = ecx; /* 0x3000B1A6: mov dword ptr [ebp - 0x24], ecx */
   9569     edx = MEM32(eax + 0x4); /* 0x3000B1A9: mov edx, dword ptr [eax + 4] */
   9570     MEM32(ebp + (-0x20)) = edx; /* 0x3000B1AC: mov dword ptr [ebp - 0x20], edx */
   9571     eax = MEM32(eax + 0x8); /* 0x3000B1AF: mov eax, dword ptr [eax + 8] */
   9572     ecx = ebp + (-0x24); /* 0x3000B1B2: lea ecx, [ebp - 0x24] */
   9573     PUSH32(esp, ecx); /* 0x3000B1B5: push ecx */
   9574     PUSH32(esp, 3); /* 0x3000B1B6: push 3 */
   9575     ecx = ebp + (-0x64); /* 0x3000B1B8: lea ecx, [ebp - 0x64] */
   9576     MEM32(ebp + (-0x1C)) = eax; /* 0x3000B1BB: mov dword ptr [ebp - 0x1c], eax */
   9577     RECOMP_ICALL(0x30007BA0u); /* 0x3000B1BE: call 0x30007ba0 */ /* not lifted */
   9578     RECOMP_FLAGS_IN();
   9579     ecx = MEM32(ebp + 0x10); /* 0x3000B1C3: mov ecx, dword ptr [ebp + 0x10] */
   9580     edx = MEM32(ebp + 0x8); /* 0x3000B1C6: mov edx, dword ptr [ebp + 8] */
   9581     eax = MEM32(ebp + (-0x14)); /* 0x3000B1C9: mov eax, dword ptr [ebp - 0x14] */
   9582     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000B1CC: mov dword ptr [ebp - 0x1c], ecx */
   9583     MEM32(ebp + (-0x40)) = ecx; /* 0x3000B1CF: mov dword ptr [ebp - 0x40], ecx */
   9584     PUSH32(esp, esi); /* 0x3000B1D2: push esi */
   9585     ecx = ebp + (-0x48); /* 0x3000B1D3: lea ecx, [ebp - 0x48] */
   9586     MEM32(ebp + (-0x24)) = edx; /* 0x3000B1D6: mov dword ptr [ebp - 0x24], edx */
   9587     MEM32(ebp + (-0x20)) = eax; /* 0x3000B1D9: mov dword ptr [ebp - 0x20], eax */
   9588     MEM32(ebp + (-0x48)) = edx; /* 0x3000B1DC: mov dword ptr [ebp - 0x48], edx */
   9589     MEM32(ebp + (-0x44)) = eax; /* 0x3000B1DF: mov dword ptr [ebp - 0x44], eax */
   9590     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B1E2: call dword ptr [0x300190ec] */
   9591     RECOMP_FLAGS_IN();
   9592     edx = MEM32(eax); /* 0x3000B1E8: mov edx, dword ptr [eax] */
   9593     MEM32(ebp + (-0x3C)) = edx; /* 0x3000B1EA: mov dword ptr [ebp - 0x3c], edx */
   9594     ecx = MEM32(eax + 0x4); /* 0x3000B1ED: mov ecx, dword ptr [eax + 4] */
   9595     MEM32(ebp + (-0x38)) = ecx; /* 0x3000B1F0: mov dword ptr [ebp - 0x38], ecx */
   9596     edx = MEM32(eax + 0x8); /* 0x3000B1F3: mov edx, dword ptr [eax + 8] */
   9597     eax = edi; /* 0x3000B1F6: mov eax, edi */
   9598     ecx = MEM32(eax); /* 0x3000B1F8: mov ecx, dword ptr [eax] */
   9599     MEM32(ebp + (-0x30)) = ecx; /* 0x3000B1FA: mov dword ptr [ebp - 0x30], ecx */
   9600     MEM32(ebp + (-0x34)) = edx; /* 0x3000B1FD: mov dword ptr [ebp - 0x34], edx */
   9601     edx = MEM32(eax + 0x4); /* 0x3000B200: mov edx, dword ptr [eax + 4] */
   9602     eax = MEM32(eax + 0x8); /* 0x3000B203: mov eax, dword ptr [eax + 8] */
   9603     ecx = ebp + (-0x3C); /* 0x3000B206: lea ecx, [ebp - 0x3c] */
   9604     PUSH32(esp, ecx); /* 0x3000B209: push ecx */
   9605     ecx = ebp + (-0x30); /* 0x3000B20A: lea ecx, [ebp - 0x30] */
   9606     MEM32(ebp + (-0x2C)) = edx; /* 0x3000B20D: mov dword ptr [ebp - 0x2c], edx */
   9607     MEM32(ebp + (-0x28)) = eax; /* 0x3000B210: mov dword ptr [ebp - 0x28], eax */
   9608     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B213: call dword ptr [0x300190c4] */
   9609     RECOMP_FLAGS_IN();
   9610     edx = MEM32(eax); /* 0x3000B219: mov edx, dword ptr [eax] */
   9611     MEM32(ebp + (-0x24)) = edx; /* 0x3000B21B: mov dword ptr [ebp - 0x24], edx */
   9612     ecx = MEM32(eax + 0x4); /* 0x3000B21E: mov ecx, dword ptr [eax + 4] */
   9613     MEM32(ebp + (-0x20)) = ecx; /* 0x3000B221: mov dword ptr [ebp - 0x20], ecx */
   9614     edx = MEM32(eax + 0x8); /* 0x3000B224: mov edx, dword ptr [eax + 8] */
   9615     eax = ebp + (-0x24); /* 0x3000B227: lea eax, [ebp - 0x24] */
   9616     PUSH32(esp, eax); /* 0x3000B22A: push eax */
   9617     PUSH32(esp, 2); /* 0x3000B22B: push 2 */
   9618     ecx = ebp + (-0x64); /* 0x3000B22D: lea ecx, [ebp - 0x64] */
   9619     MEM32(ebp + (-0x1C)) = edx; /* 0x3000B230: mov dword ptr [ebp - 0x1c], edx */
   9620     RECOMP_ICALL(0x30007BA0u); /* 0x3000B233: call 0x30007ba0 */ /* not lifted */
   9621     RECOMP_FLAGS_IN();
   9622     ecx = MEM32(ebp + 0x8); /* 0x3000B238: mov ecx, dword ptr [ebp + 8] */
   9623     edx = MEM32(ebp + 0xC); /* 0x3000B23B: mov edx, dword ptr [ebp + 0xc] */
   9624     eax = MEM32(ebp + 0x10); /* 0x3000B23E: mov eax, dword ptr [ebp + 0x10] */
   9625     MEM32(ebp + (-0x24)) = ecx; /* 0x3000B241: mov dword ptr [ebp - 0x24], ecx */
   9626     MEM32(ebp + (-0x48)) = ecx; /* 0x3000B244: mov dword ptr [ebp - 0x48], ecx */
   9627     PUSH32(esp, esi); /* 0x3000B247: push esi */
   9628     ecx = ebp + (-0x48); /* 0x3000B248: lea ecx, [ebp - 0x48] */
   9629     MEM32(ebp + (-0x20)) = edx; /* 0x3000B24B: mov dword ptr [ebp - 0x20], edx */
   9630     MEM32(ebp + (-0x1C)) = eax; /* 0x3000B24E: mov dword ptr [ebp - 0x1c], eax */
   9631     MEM32(ebp + (-0x44)) = edx; /* 0x3000B251: mov dword ptr [ebp - 0x44], edx */
   9632     MEM32(ebp + (-0x40)) = eax; /* 0x3000B254: mov dword ptr [ebp - 0x40], eax */
   9633     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B257: call dword ptr [0x300190ec] */
   9634     RECOMP_FLAGS_IN();
   9635     ecx = MEM32(eax); /* 0x3000B25D: mov ecx, dword ptr [eax] */
   9636     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000B25F: mov dword ptr [ebp - 0x3c], ecx */
   9637     edx = MEM32(eax + 0x4); /* 0x3000B262: mov edx, dword ptr [eax + 4] */
   9638     MEM32(ebp + (-0x38)) = edx; /* 0x3000B265: mov dword ptr [ebp - 0x38], edx */
   9639     eax = MEM32(eax + 0x8); /* 0x3000B268: mov eax, dword ptr [eax + 8] */
   9640     ecx = edi; /* 0x3000B26B: mov ecx, edi */
   9641     edx = MEM32(ecx); /* 0x3000B26D: mov edx, dword ptr [ecx] */
   9642     MEM32(ebp + (-0x34)) = eax; /* 0x3000B26F: mov dword ptr [ebp - 0x34], eax */
   9643     eax = MEM32(ecx + 0x4); /* 0x3000B272: mov eax, dword ptr [ecx + 4] */
   9644     ecx = MEM32(ecx + 0x8); /* 0x3000B275: mov ecx, dword ptr [ecx + 8] */
   9645     MEM32(ebp + (-0x30)) = edx; /* 0x3000B278: mov dword ptr [ebp - 0x30], edx */
   9646     edx = ebp + (-0x3C); /* 0x3000B27B: lea edx, [ebp - 0x3c] */
   9647     MEM32(ebp + (-0x28)) = ecx; /* 0x3000B27E: mov dword ptr [ebp - 0x28], ecx */
   9648     PUSH32(esp, edx); /* 0x3000B281: push edx */
   9649     ecx = ebp + (-0x30); /* 0x3000B282: lea ecx, [ebp - 0x30] */
   9650     MEM32(ebp + (-0x2C)) = eax; /* 0x3000B285: mov dword ptr [ebp - 0x2c], eax */
   9651     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B288: call dword ptr [0x300190c4] */
   9652     RECOMP_FLAGS_IN();
   9653     ecx = MEM32(eax); /* 0x3000B28E: mov ecx, dword ptr [eax] */
   9654     MEM32(ebp + (-0x24)) = ecx; /* 0x3000B290: mov dword ptr [ebp - 0x24], ecx */
   9655     edx = MEM32(eax + 0x4); /* 0x3000B293: mov edx, dword ptr [eax + 4] */
   9656     MEM32(ebp + (-0x20)) = edx; /* 0x3000B296: mov dword ptr [ebp - 0x20], edx */
   9657     eax = MEM32(eax + 0x8); /* 0x3000B299: mov eax, dword ptr [eax + 8] */
   9658     MEM32(ebp + (-0x1C)) = eax; /* 0x3000B29C: mov dword ptr [ebp - 0x1c], eax */
   9659     ecx = ebp + (-0x24); /* 0x3000B29F: lea ecx, [ebp - 0x24] */
   9660     PUSH32(esp, ecx); /* 0x3000B2A2: push ecx */
   9661     PUSH32(esp, 1); /* 0x3000B2A3: push 1 */
   9662     ecx = ebp + (-0x64); /* 0x3000B2A5: lea ecx, [ebp - 0x64] */
   9663     RECOMP_ICALL(0x30007BA0u); /* 0x3000B2A8: call 0x30007ba0 */ /* not lifted */
   9664     RECOMP_FLAGS_IN();
   9665     ecx = MEM32(ebp + (-0x10)); /* 0x3000B2AD: mov ecx, dword ptr [ebp - 0x10] */
   9666     edx = MEM32(ebp + 0x8); /* 0x3000B2B0: mov edx, dword ptr [ebp + 8] */
   9667     eax = MEM32(ebp + 0xC); /* 0x3000B2B3: mov eax, dword ptr [ebp + 0xc] */
   9668     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000B2B6: mov dword ptr [ebp - 0x1c], ecx */
   9669     MEM32(ebp + (-0x40)) = ecx; /* 0x3000B2B9: mov dword ptr [ebp - 0x40], ecx */
   9670     PUSH32(esp, esi); /* 0x3000B2BC: push esi */
   9671     ecx = ebp + (-0x48); /* 0x3000B2BD: lea ecx, [ebp - 0x48] */
   9672     MEM32(ebp + (-0x24)) = edx; /* 0x3000B2C0: mov dword ptr [ebp - 0x24], edx */
   9673     MEM32(ebp + (-0x20)) = eax; /* 0x3000B2C3: mov dword ptr [ebp - 0x20], eax */
   9674     MEM32(ebp + (-0x48)) = edx; /* 0x3000B2C6: mov dword ptr [ebp - 0x48], edx */
   9675     MEM32(ebp + (-0x44)) = eax; /* 0x3000B2C9: mov dword ptr [ebp - 0x44], eax */
   9676     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B2CC: call dword ptr [0x300190ec] */
   9677     RECOMP_FLAGS_IN();
   9678     edx = MEM32(eax); /* 0x3000B2D2: mov edx, dword ptr [eax] */
   9679     MEM32(ebp + (-0x3C)) = edx; /* 0x3000B2D4: mov dword ptr [ebp - 0x3c], edx */
   9680     ecx = MEM32(eax + 0x4); /* 0x3000B2D7: mov ecx, dword ptr [eax + 4] */
   9681     MEM32(ebp + (-0x38)) = ecx; /* 0x3000B2DA: mov dword ptr [ebp - 0x38], ecx */
   9682     edx = MEM32(eax + 0x8); /* 0x3000B2DD: mov edx, dword ptr [eax + 8] */
   9683     eax = edi; /* 0x3000B2E0: mov eax, edi */
   9684     ecx = MEM32(eax); /* 0x3000B2E2: mov ecx, dword ptr [eax] */
   9685     MEM32(ebp + (-0x30)) = ecx; /* 0x3000B2E4: mov dword ptr [ebp - 0x30], ecx */
   9686     MEM32(ebp + (-0x34)) = edx; /* 0x3000B2E7: mov dword ptr [ebp - 0x34], edx */
   9687     edx = MEM32(eax + 0x4); /* 0x3000B2EA: mov edx, dword ptr [eax + 4] */
   9688     eax = MEM32(eax + 0x8); /* 0x3000B2ED: mov eax, dword ptr [eax + 8] */
   9689     ecx = ebp + (-0x3C); /* 0x3000B2F0: lea ecx, [ebp - 0x3c] */
   9690     PUSH32(esp, ecx); /* 0x3000B2F3: push ecx */
   9691     ecx = ebp + (-0x30); /* 0x3000B2F4: lea ecx, [ebp - 0x30] */
   9692     MEM32(ebp + (-0x2C)) = edx; /* 0x3000B2F7: mov dword ptr [ebp - 0x2c], edx */
   9693     MEM32(ebp + (-0x28)) = eax; /* 0x3000B2FA: mov dword ptr [ebp - 0x28], eax */
   9694     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B2FD: call dword ptr [0x300190c4] */
   9695     RECOMP_FLAGS_IN();
   9696     edx = MEM32(eax); /* 0x3000B303: mov edx, dword ptr [eax] */
   9697     MEM32(ebp + (-0x24)) = edx; /* 0x3000B305: mov dword ptr [ebp - 0x24], edx */
   9698     ecx = MEM32(eax + 0x4); /* 0x3000B308: mov ecx, dword ptr [eax + 4] */
   9699     MEM32(ebp + (-0x20)) = ecx; /* 0x3000B30B: mov dword ptr [ebp - 0x20], ecx */
   9700     edx = MEM32(eax + 0x8); /* 0x3000B30E: mov edx, dword ptr [eax + 8] */
   9701     eax = ebp + (-0x24); /* 0x3000B311: lea eax, [ebp - 0x24] */
   9702     PUSH32(esp, eax); /* 0x3000B314: push eax */
   9703     PUSH32(esp, 0); /* 0x3000B315: push 0 */
   9704     ecx = ebp + (-0x64); /* 0x3000B317: lea ecx, [ebp - 0x64] */
   9705     MEM32(ebp + (-0x1C)) = edx; /* 0x3000B31A: mov dword ptr [ebp - 0x1c], edx */
   9706     RECOMP_ICALL(0x30007BA0u); /* 0x3000B31D: call 0x30007ba0 */ /* not lifted */
   9707     RECOMP_FLAGS_IN();
   9708     eax = MEM32(ebx + 0x8); /* 0x3000B322: mov eax, dword ptr [ebx + 8] */
   9709     ecx = ebp + (-0x64); /* 0x3000B325: lea ecx, [ebp - 0x64] */
   9710     PUSH32(esp, ecx); /* 0x3000B328: push ecx */
   9711     PUSH32(esp, eax); /* 0x3000B329: push eax */
   9712     ecx = ebx; /* 0x3000B32A: mov ecx, ebx */
   9713     RECOMP_ICALL(0x30002C40u); /* 0x3000B32C: call 0x30002c40 */ /* not lifted */
   9714     RECOMP_FLAGS_IN();
   9715     edx = MEM32(ebp + (-0x18)); /* 0x3000B331: mov edx, dword ptr [ebp - 0x18] */
   9716     ecx = MEM32(ebp + (-0x10)); /* 0x3000B334: mov ecx, dword ptr [ebp - 0x10] */
   9717     eax = MEM32(ebp + (-0x14)); /* 0x3000B337: mov eax, dword ptr [ebp - 0x14] */
   9718     MEM32(ebp + (-0x48)) = edx; /* 0x3000B33A: mov dword ptr [ebp - 0x48], edx */
   9719     PUSH32(esp, esi); /* 0x3000B33D: push esi */
   9720     edx = ebp + (-0x3C); /* 0x3000B33E: lea edx, [ebp - 0x3c] */
   9721     MEM32(ebp + (-0x40)) = ecx; /* 0x3000B341: mov dword ptr [ebp - 0x40], ecx */
   9722     PUSH32(esp, edx); /* 0x3000B344: push edx */
   9723     ecx = ebp + (-0x48); /* 0x3000B345: lea ecx, [ebp - 0x48] */
   9724     MEM32(ebp + (-0x44)) = eax; /* 0x3000B348: mov dword ptr [ebp - 0x44], eax */
   9725     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000B34B: call dword ptr [0x300190b4] */
   9726     RECOMP_FLAGS_IN();
   9727     PUSH32(esp, eax); /* 0x3000B351: push eax */
   9728     eax = ebp + (-0x30); /* 0x3000B352: lea eax, [ebp - 0x30] */
   9729     PUSH32(esp, eax); /* 0x3000B355: push eax */
   9730     ecx = edi; /* 0x3000B356: mov ecx, edi */
   9731     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000B358: call dword ptr [0x300190b0] */
   9732     RECOMP_FLAGS_IN();
   9733     PUSH32(esp, eax); /* 0x3000B35E: push eax */
   9734     PUSH32(esp, 3); /* 0x3000B35F: push 3 */
   9735     ecx = ebp + (-0x64); /* 0x3000B361: lea ecx, [ebp - 0x64] */
   9736     RECOMP_ICALL(0x30007BA0u); /* 0x3000B364: call 0x30007ba0 */ /* not lifted */
   9737     RECOMP_FLAGS_IN();
   9738     edx = MEM32(ebp + (-0x10)); /* 0x3000B369: mov edx, dword ptr [ebp - 0x10] */
   9739     eax = MEM32(ebp + 0xC); /* 0x3000B36C: mov eax, dword ptr [ebp + 0xc] */
   9740     PUSH32(esp, esi); /* 0x3000B36F: push esi */
   9741     ecx = ebp + (-0x48); /* 0x3000B370: lea ecx, [ebp - 0x48] */
   9742     PUSH32(esp, ecx); /* 0x3000B373: push ecx */
   9743     ecx = MEM32(ebp + (-0x18)); /* 0x3000B374: mov ecx, dword ptr [ebp - 0x18] */
   9744     PUSH32(esp, edx); /* 0x3000B377: push edx */
   9745     PUSH32(esp, eax); /* 0x3000B378: push eax */
   9746     PUSH32(esp, ecx); /* 0x3000B379: push ecx */
   9747     ecx = ebp + (-0x3C); /* 0x3000B37A: lea ecx, [ebp - 0x3c] */
   9748     RECOMP_ICALL(MEM32(0x300190D4)); /* 0x3000B37D: call dword ptr [0x300190d4] */
   9749     RECOMP_FLAGS_IN();
   9750     ecx = eax; /* 0x3000B383: mov ecx, eax */
   9751     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000B385: call dword ptr [0x300190b4] */
   9752     RECOMP_FLAGS_IN();
   9753     PUSH32(esp, eax); /* 0x3000B38B: push eax */
   9754     edx = ebp + (-0x30); /* 0x3000B38C: lea edx, [ebp - 0x30] */
   9755     PUSH32(esp, edx); /* 0x3000B38F: push edx */
   9756     ecx = edi; /* 0x3000B390: mov ecx, edi */
   9757     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000B392: call dword ptr [0x300190b0] */
   9758     RECOMP_FLAGS_IN();
   9759     PUSH32(esp, eax); /* 0x3000B398: push eax */
   9760     PUSH32(esp, 2); /* 0x3000B399: push 2 */
   9761     ecx = ebp + (-0x64); /* 0x3000B39B: lea ecx, [ebp - 0x64] */
   9762     RECOMP_ICALL(0x30007BA0u); /* 0x3000B39E: call 0x30007ba0 */ /* not lifted */
   9763     RECOMP_FLAGS_IN();
   9764     ecx = MEM32(ebp + 0x10); /* 0x3000B3A3: mov ecx, dword ptr [ebp + 0x10] */
   9765     edx = MEM32(ebp + 0xC); /* 0x3000B3A6: mov edx, dword ptr [ebp + 0xc] */
   9766     PUSH32(esp, esi); /* 0x3000B3A9: push esi */
   9767     eax = ebp + (-0x48); /* 0x3000B3AA: lea eax, [ebp - 0x48] */
   9768     PUSH32(esp, eax); /* 0x3000B3AD: push eax */
   9769     eax = MEM32(ebp + (-0x18)); /* 0x3000B3AE: mov eax, dword ptr [ebp - 0x18] */
   9770     PUSH32(esp, ecx); /* 0x3000B3B1: push ecx */
   9771     PUSH32(esp, edx); /* 0x3000B3B2: push edx */
   9772     PUSH32(esp, eax); /* 0x3000B3B3: push eax */
   9773     ecx = ebp + (-0x3C); /* 0x3000B3B4: lea ecx, [ebp - 0x3c] */
   9774     RECOMP_ICALL(MEM32(0x300190D4)); /* 0x3000B3B7: call dword ptr [0x300190d4] */
   9775     RECOMP_FLAGS_IN();
   9776     ecx = eax; /* 0x3000B3BD: mov ecx, eax */
   9777     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000B3BF: call dword ptr [0x300190b4] */
   9778     RECOMP_FLAGS_IN();
   9779     PUSH32(esp, eax); /* 0x3000B3C5: push eax */
   9780     ecx = ebp + (-0x30); /* 0x3000B3C6: lea ecx, [ebp - 0x30] */
   9781     PUSH32(esp, ecx); /* 0x3000B3C9: push ecx */
   9782     ecx = edi; /* 0x3000B3CA: mov ecx, edi */
   9783     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000B3CC: call dword ptr [0x300190b0] */
   9784     RECOMP_FLAGS_IN();
   9785     PUSH32(esp, eax); /* 0x3000B3D2: push eax */
   9786     PUSH32(esp, 1); /* 0x3000B3D3: push 1 */
   9787     ecx = ebp + (-0x64); /* 0x3000B3D5: lea ecx, [ebp - 0x64] */
   9788     RECOMP_ICALL(0x30007BA0u); /* 0x3000B3D8: call 0x30007ba0 */ /* not lifted */
   9789     RECOMP_FLAGS_IN();
   9790     eax = MEM32(ebp + 0x10); /* 0x3000B3DD: mov eax, dword ptr [ebp + 0x10] */
   9791     ecx = MEM32(ebp + (-0x14)); /* 0x3000B3E0: mov ecx, dword ptr [ebp - 0x14] */
   9792     PUSH32(esp, esi); /* 0x3000B3E3: push esi */
   9793     edx = ebp + (-0x48); /* 0x3000B3E4: lea edx, [ebp - 0x48] */
   9794     PUSH32(esp, edx); /* 0x3000B3E7: push edx */
   9795     edx = MEM32(ebp + (-0x18)); /* 0x3000B3E8: mov edx, dword ptr [ebp - 0x18] */
   9796     PUSH32(esp, eax); /* 0x3000B3EB: push eax */
   9797     PUSH32(esp, ecx); /* 0x3000B3EC: push ecx */
   9798     PUSH32(esp, edx); /* 0x3000B3ED: push edx */
   9799     ecx = ebp + (-0x3C); /* 0x3000B3EE: lea ecx, [ebp - 0x3c] */
   9800     RECOMP_ICALL(MEM32(0x300190D4)); /* 0x3000B3F1: call dword ptr [0x300190d4] */
   9801     RECOMP_FLAGS_IN();
   9802     ecx = eax; /* 0x3000B3F7: mov ecx, eax */
   9803     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000B3F9: call dword ptr [0x300190b4] */
   9804     RECOMP_FLAGS_IN();
   9805     PUSH32(esp, eax); /* 0x3000B3FF: push eax */
   9806     eax = ebp + (-0x30); /* 0x3000B400: lea eax, [ebp - 0x30] */
   9807     PUSH32(esp, eax); /* 0x3000B403: push eax */
   9808     ecx = edi; /* 0x3000B404: mov ecx, edi */
   9809     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000B406: call dword ptr [0x300190b0] */
   9810     RECOMP_FLAGS_IN();
   9811     PUSH32(esp, eax); /* 0x3000B40C: push eax */
   9812     PUSH32(esp, 0); /* 0x3000B40D: push 0 */
   9813     ecx = ebp + (-0x64); /* 0x3000B40F: lea ecx, [ebp - 0x64] */
   9814     RECOMP_ICALL(0x30007BA0u); /* 0x3000B412: call 0x30007ba0 */ /* not lifted */
   9815     RECOMP_FLAGS_IN();
   9816     eax = MEM32(ebx + 0x8); /* 0x3000B417: mov eax, dword ptr [ebx + 8] */
   9817     ecx = ebp + (-0x64); /* 0x3000B41A: lea ecx, [ebp - 0x64] */
   9818     PUSH32(esp, ecx); /* 0x3000B41D: push ecx */
   9819     PUSH32(esp, eax); /* 0x3000B41E: push eax */
   9820     ecx = ebx; /* 0x3000B41F: mov ecx, ebx */
   9821     RECOMP_ICALL(0x30002C40u); /* 0x3000B421: call 0x30002c40 */ /* not lifted */
   9822     RECOMP_FLAGS_IN();
   9823     ecx = ebp + (-0x64); /* 0x3000B426: lea ecx, [ebp - 0x64] */
   9824     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000B429: mov dword ptr [ebp - 4], 0xffffffff */
   9825     RECOMP_ICALL(0x30007AB0u); /* 0x3000B430: call 0x30007ab0 */ /* not lifted */
   9826     RECOMP_FLAGS_IN();
   9827     ecx = MEM32(ebp + (-0xC)); /* 0x3000B435: mov ecx, dword ptr [ebp - 0xc] */
   9828     edi = POP32_VAL(esp); /* 0x3000B438: pop edi */
   9829     esi = POP32_VAL(esp); /* 0x3000B439: pop esi */
   9830     ebx = POP32_VAL(esp); /* 0x3000B43A: pop ebx */
   9831     MEM32(FS_BASE + (0)) = ecx; /* 0x3000B43B: mov dword ptr fs:[0], ecx */
   9832     esp = ebp; /* 0x3000B442: mov esp, ebp */
   9833     ebp = POP32_VAL(esp); /* 0x3000B444: pop ebp */
   9834     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3000B445: ret 0x14 */
   9835     RECOMP_REGS_OUT();
   9836 }
   9837 
   9838 void sub_3000B450(void) {
   9839     int _fpu_cmp = 0;
   9840     uint32_t _cf = 0;
   9841     int _df = 1;
   9842     uint32_t _flag_k = FK_NONE;
   9843     uint32_t _flag_a = 0, _flag_b = 0;
   9844     uint32_t _itail_tgt = 0;
   9845     RECOMP_REGS_LOCALS
   9846     RECOMP_ENTER(0x3000B450u);
   9847 
   9848 L_3000B450:
   9849     PUSH32(esp, ebp); /* 0x3000B450: push ebp */
   9850     ebp = esp; /* 0x3000B451: mov ebp, esp */
   9851     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000B453: push -1 */
   9852     PUSH32(esp, 0x300188F3u); /* 0x3000B455: push 0x300188f3 */
   9853     eax = MEM32(FS_BASE + (0)); /* 0x3000B45A: mov eax, dword ptr fs:[0] */
   9854     PUSH32(esp, eax); /* 0x3000B460: push eax */
   9855     MEM32(FS_BASE + (0)) = esp; /* 0x3000B461: mov dword ptr fs:[0], esp */
   9856     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x290u);
   9857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9858     esp = esp - 0x290u; /* 0x3000B468: sub esp, 0x290 */
   9859     _flag_k = FK_CMP;
   9860     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3000B46E: fld dword ptr [ebp + 0xc] */
   9861     PUSH32(esp, ebx); /* 0x3000B471: push ebx */
   9862     ebx = ecx; /* 0x3000B472: mov ebx, ecx */
   9863     _st[0] = -_st[0]; /* 0x3000B474: fchs  */
   9864     PUSH32(esp, 4); /* 0x3000B476: push 4 */
   9865     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000B478: fstp dword ptr [ebp - 0x10] */
   9866     ecx = ebp + (-0x3C); /* 0x3000B47B: lea ecx, [ebp - 0x3c] */
   9867     RECOMP_ICALL(0x30007950u); /* 0x3000B47E: call 0x30007950 */ /* not lifted */
   9868     RECOMP_FLAGS_IN();
   9869     ecx = MEM32(ebp + 0x1C); /* 0x3000B483: mov ecx, dword ptr [ebp + 0x1c] */
   9870     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9871     eax = 0; /* 0x3000B486: xor eax, eax */
   9872     _cf = 0;
   9873     _flag_k = FK_TEST;
   9874     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9876     ecx = ecx + ecx; /* 0x3000B488: add ecx, ecx */
   9877     _flag_k = FK_ADD;
   9878     /* cmp ecx, eax */ /* 0x3000B48A: cmp ecx, eax */
   9879     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   9880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9881     _flag_k = FK_CMP;
   9882     MEM32(ebp + (-0x4)) = eax; /* 0x3000B48C: mov dword ptr [ebp - 4], eax */
   9883     MEM32(ebp + (-0x40)) = ecx; /* 0x3000B48F: mov dword ptr [ebp - 0x40], ecx */
   9884     MEM32(ebp + 0x1C) = eax; /* 0x3000B492: mov dword ptr [ebp + 0x1c], eax */
   9885     if (CMP_LE(_flag_a, _flag_b)) goto L_3000BC8B; /* 0x3000B495: jle 0x3000bc8b */
   9886 L_3000B49B:
   9887     fp_push((double)(int32_t)MEM32(ebp + (-0x40))); /* 0x3000B49B: fild dword ptr [ebp - 0x40] */
   9888     edx = MEM32(ebp + (-0x10)); /* 0x3000B49E: mov edx, dword ptr [ebp - 0x10] */
   9889     ecx = edx; /* 0x3000B4A1: mov ecx, edx */
   9890     MEM32(ebp + (-0xC8)) = edx; /* 0x3000B4A3: mov dword ptr [ebp - 0xc8], edx */
   9891     _st[0] = (double)*(float*)ADDR(0x30019290) / _st[0]; /* 0x3000B4A9: fdivr dword ptr [0x30019290] */
   9892     edx = MEM32(ebp + 0xC); /* 0x3000B4AF: mov edx, dword ptr [ebp + 0xc] */
   9893     MEM32(ebp + (-0xD4)) = ecx; /* 0x3000B4B2: mov dword ptr [ebp - 0xd4], ecx */
   9894     ecx = edx; /* 0x3000B4B8: mov ecx, edx */
   9895     MEM32(ebp + (-0x68)) = edx; /* 0x3000B4BA: mov dword ptr [ebp - 0x68], edx */
   9896     edx = MEM32(ebp + (-0x10)); /* 0x3000B4BD: mov edx, dword ptr [ebp - 0x10] */
   9897     MEM32(ebp + (-0x50)) = ecx; /* 0x3000B4C0: mov dword ptr [ebp - 0x50], ecx */
   9898     ecx = edx; /* 0x3000B4C3: mov ecx, edx */
   9899     MEM32(ebp + (-0xB0)) = ecx; /* 0x3000B4C5: mov dword ptr [ebp - 0xb0], ecx */
   9900     ecx = MEM32(ebp + 0xC); /* 0x3000B4CB: mov ecx, dword ptr [ebp + 0xc] */
   9901     PUSH32(esp, esi); /* 0x3000B4CE: push esi */
   9902     esi = MEM32(ebp + 0x18); /* 0x3000B4CF: mov esi, dword ptr [ebp + 0x18] */
   9903     MEM32(ebp + (-0x80)) = edx; /* 0x3000B4D2: mov dword ptr [ebp - 0x80], edx */
   9904     MEM32(ebp + (-0x98)) = edx; /* 0x3000B4D5: mov dword ptr [ebp - 0x98], edx */
   9905     edx = ecx; /* 0x3000B4DB: mov edx, ecx */
   9906     PUSH32(esp, edi); /* 0x3000B4DD: push edi */
   9907     edi = MEM32(ebp + 0x14); /* 0x3000B4DE: mov edi, dword ptr [ebp + 0x14] */
   9908     MEM32(ebp + (-0x84)) = eax; /* 0x3000B4E1: mov dword ptr [ebp - 0x84], eax */
   9909     MEM32(ebp + (-0x7C)) = eax; /* 0x3000B4E7: mov dword ptr [ebp - 0x7c], eax */
   9910     MEM32(ebp + (-0x60)) = eax; /* 0x3000B4EA: mov dword ptr [ebp - 0x60], eax */
   9911     MEM32(ebp + (-0x5C)) = ecx; /* 0x3000B4ED: mov dword ptr [ebp - 0x5c], ecx */
   9912     MEM32(ebp + (-0x58)) = eax; /* 0x3000B4F0: mov dword ptr [ebp - 0x58], eax */
   9913     MEM32(ebp + (-0x8C)) = edx; /* 0x3000B4F3: mov dword ptr [ebp - 0x8c], edx */
   9914     MEM32(ebp + (-0xBC)) = ecx; /* 0x3000B4F9: mov dword ptr [ebp - 0xbc], ecx */
   9915     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3000B4FF: fstp dword ptr [ebp - 0x44] */
   9916 L_3000B502:
   9917     fp_push((double)(int32_t)MEM32(ebp + 0x1C)); /* 0x3000B502: fild dword ptr [ebp + 0x1c] */
   9918     ecx = eax + 0x1; /* 0x3000B505: lea ecx, [eax + 1] */
   9919     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80000001u);
   9920     eax = eax & 0x80000001u; /* 0x3000B508: and eax, 0x80000001 */
   9921     _cf = 0;
   9922     _flag_k = FK_TEST;
   9923     MEM32(ebp + (-0x48)) = ecx; /* 0x3000B50D: mov dword ptr [ebp - 0x48], ecx */
   9924     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3000B510: fmul dword ptr [ebp - 0x44] */
   9925     fp_push((double)(int32_t)MEM32(ebp + (-0x48))); /* 0x3000B513: fild dword ptr [ebp - 0x48] */
   9926     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3000B516: fmul dword ptr [ebp - 0x44] */
   9927     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x3000B519: fstp dword ptr [ebp + 0x1c] */
   9928     if (TEST_NS(_flag_a, _flag_b)) goto L_3000B523; /* 0x3000B51C: jns 0x3000b523 */
   9929 L_3000B51E:
   9930     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9931     eax = eax - 1; /* 0x3000B51E: dec eax */
   9932     _flag_k = FK_DEC;
   9933     _flag_a = (uint32_t)((eax | 0xFFFFFFFEu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFEu));
   9934     eax = eax | 0xFFFFFFFEu; /* 0x3000B51F: or eax, 0xfffffffe */
   9935     _cf = 0;
   9936     _flag_k = FK_TEST;
   9937     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9938     eax = eax + 1; /* 0x3000B522: inc eax */
   9939     _flag_k = FK_INC;
   9940 L_3000B523:
   9941     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80000001u);
   9942     ecx = ecx & 0x80000001u; /* 0x3000B523: and ecx, 0x80000001 */
   9943     _cf = 0;
   9944     _flag_k = FK_TEST;
   9945     MEM32(ebp + 0xC) = eax; /* 0x3000B529: mov dword ptr [ebp + 0xc], eax */
   9946     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x3000B52C: fild dword ptr [ebp + 0xc] */
   9947     _st[0] *= (double)*(float*)ADDR(0x3001928C); /* 0x3000B52F: fmul dword ptr [0x3001928c] */
   9948     _st[0] += (double)*(float*)ADDR(0x30019288); /* 0x3000B535: fadd dword ptr [0x30019288] */
   9949     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3000B53B: fstp dword ptr [ebp + 0xc] */
   9950     if (TEST_NS(_flag_a, _flag_b)) goto L_3000B545; /* 0x3000B53E: jns 0x3000b545 */
   9951 L_3000B540:
   9952     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9953     ecx = ecx - 1; /* 0x3000B540: dec ecx */
   9954     _flag_k = FK_DEC;
   9955     _flag_a = (uint32_t)((ecx | 0xFFFFFFFEu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFEu));
   9956     ecx = ecx | 0xFFFFFFFEu; /* 0x3000B541: or ecx, 0xfffffffe */
   9957     _cf = 0;
   9958     _flag_k = FK_TEST;
   9959     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9960     ecx = ecx + 1; /* 0x3000B544: inc ecx */
   9961     _flag_k = FK_INC;
   9962 L_3000B545:
   9963     MEM32(ebp + 0x18) = ecx; /* 0x3000B545: mov dword ptr [ebp + 0x18], ecx */
   9964     fp_push((double)(int32_t)MEM32(ebp + 0x18)); /* 0x3000B548: fild dword ptr [ebp + 0x18] */
   9965     ecx = MEM32(ebp + (-0xC8)); /* 0x3000B54B: mov ecx, dword ptr [ebp - 0xc8] */
   9966     MEM32(ebp + (-0x14C)) = ecx; /* 0x3000B551: mov dword ptr [ebp - 0x14c], ecx */
   9967     PUSH32(esp, esi); /* 0x3000B557: push esi */
   9968     _st[0] *= (double)*(float*)ADDR(0x3001928C); /* 0x3000B558: fmul dword ptr [0x3001928c] */
   9969     ecx = ebp + (-0x150); /* 0x3000B55E: lea ecx, [ebp - 0x150] */
   9970     _st[0] += (double)*(float*)ADDR(0x30019288); /* 0x3000B564: fadd dword ptr [0x30019288] */
   9971     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000B56A: fstp dword ptr [ebp - 0x10] */
   9972     fp_push(_st[0]); /* 0x3000B56D: fld st(0) */
   9973     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3000B56F: fsin  */
   9974     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x3000B571: fmul dword ptr [ebp + 0xc] */
   9975     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000B574: fmul dword ptr [ebp + 8] */
   9976     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x18) = _v; } /* 0x3000B577: fstp dword ptr [ebp + 0x18] */
   9977     edx = MEM32(ebp + 0x18); /* 0x3000B57A: mov edx, dword ptr [ebp + 0x18] */
   9978     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3000B57D: fcos  */
   9979     eax = edx; /* 0x3000B57F: mov eax, edx */
   9980     MEM32(ebp + (-0xCC)) = edx; /* 0x3000B581: mov dword ptr [ebp - 0xcc], edx */
   9981     MEM32(ebp + (-0x150)) = eax; /* 0x3000B587: mov dword ptr [ebp - 0x150], eax */
   9982     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x3000B58D: fmul dword ptr [ebp + 0xc] */
   9983     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x3000B590: fmul dword ptr [ebp + 0x10] */
   9984     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x14) = _v; } /* 0x3000B593: fst dword ptr [ebp + 0x14] */
   9985     fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x3000B596: fld dword ptr [ebp + 0x1c] */
   9986     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3000B599: fsin  */
   9987     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3000B59B: fmul dword ptr [ebp - 0x10] */
   9988     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000B59E: fmul dword ptr [ebp + 8] */
   9989     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3000B5A1: fstp dword ptr [ebp + 0xc] */
   9990     fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x3000B5A4: fld dword ptr [ebp + 0x1c] */
   9991     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3000B5A7: fcos  */
   9992     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3000B5A9: fmul dword ptr [ebp - 0x10] */
   9993     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x3000B5AC: fmul dword ptr [ebp + 0x10] */
   9994     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x3000B5AF: fstp dword ptr [ebp + 0x1c] */
   9995     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC4)) = _v; } /* 0x3000B5B2: fstp dword ptr [ebp - 0xc4] */
   9996     edx = MEM32(ebp + (-0xC4)); /* 0x3000B5B8: mov edx, dword ptr [ebp - 0xc4] */
   9997     MEM32(ebp + (-0x148)) = edx; /* 0x3000B5BE: mov dword ptr [ebp - 0x148], edx */
   9998     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B5C4: call dword ptr [0x300190ec] */
   9999     RECOMP_FLAGS_IN();
  10000     ecx = MEM32(eax); /* 0x3000B5CA: mov ecx, dword ptr [eax] */
  10001     MEM32(ebp + (-0x27C)) = ecx; /* 0x3000B5CC: mov dword ptr [ebp - 0x27c], ecx */
  10002     edx = MEM32(eax + 0x4); /* 0x3000B5D2: mov edx, dword ptr [eax + 4] */
  10003     MEM32(ebp + (-0x278)) = edx; /* 0x3000B5D5: mov dword ptr [ebp - 0x278], edx */
  10004     eax = MEM32(eax + 0x8); /* 0x3000B5DB: mov eax, dword ptr [eax + 8] */
  10005     ecx = edi; /* 0x3000B5DE: mov ecx, edi */
  10006     edx = MEM32(ecx); /* 0x3000B5E0: mov edx, dword ptr [ecx] */
  10007     MEM32(ebp + (-0x274)) = eax; /* 0x3000B5E2: mov dword ptr [ebp - 0x274], eax */
  10008     eax = MEM32(ecx + 0x4); /* 0x3000B5E8: mov eax, dword ptr [ecx + 4] */
  10009     ecx = MEM32(ecx + 0x8); /* 0x3000B5EB: mov ecx, dword ptr [ecx + 8] */
  10010     MEM32(ebp + (-0x1C8)) = edx; /* 0x3000B5EE: mov dword ptr [ebp - 0x1c8], edx */
  10011     edx = ebp + (-0x27C); /* 0x3000B5F4: lea edx, [ebp - 0x27c] */
  10012     MEM32(ebp + (-0x1C0)) = ecx; /* 0x3000B5FA: mov dword ptr [ebp - 0x1c0], ecx */
  10013     PUSH32(esp, edx); /* 0x3000B600: push edx */
  10014     ecx = ebp + (-0x1C8); /* 0x3000B601: lea ecx, [ebp - 0x1c8] */
  10015     MEM32(ebp + (-0x1C4)) = eax; /* 0x3000B607: mov dword ptr [ebp - 0x1c4], eax */
  10016     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B60D: call dword ptr [0x300190c4] */
  10017     RECOMP_FLAGS_IN();
  10018     ecx = MEM32(eax); /* 0x3000B613: mov ecx, dword ptr [eax] */
  10019     MEM32(ebp + (-0x108)) = ecx; /* 0x3000B615: mov dword ptr [ebp - 0x108], ecx */
  10020     edx = MEM32(eax + 0x4); /* 0x3000B61B: mov edx, dword ptr [eax + 4] */
  10021     ecx = ebp + (-0x108); /* 0x3000B61E: lea ecx, [ebp - 0x108] */
  10022     PUSH32(esp, ecx); /* 0x3000B624: push ecx */
  10023     MEM32(ebp + (-0x104)) = edx; /* 0x3000B625: mov dword ptr [ebp - 0x104], edx */
  10024     eax = MEM32(eax + 0x8); /* 0x3000B62B: mov eax, dword ptr [eax + 8] */
  10025     PUSH32(esp, 0); /* 0x3000B62E: push 0 */
  10026     ecx = ebp + (-0x3C); /* 0x3000B630: lea ecx, [ebp - 0x3c] */
  10027     MEM32(ebp + (-0x100)) = eax; /* 0x3000B633: mov dword ptr [ebp - 0x100], eax */
  10028     RECOMP_ICALL(0x30007BA0u); /* 0x3000B639: call 0x30007ba0 */ /* not lifted */
  10029     RECOMP_FLAGS_IN();
  10030     edx = MEM32(ebp + 0xC); /* 0x3000B63E: mov edx, dword ptr [ebp + 0xc] */
  10031     eax = MEM32(ebp + 0x1C); /* 0x3000B641: mov eax, dword ptr [ebp + 0x1c] */
  10032     ecx = edx; /* 0x3000B644: mov ecx, edx */
  10033     MEM32(ebp + (-0xD8)) = edx; /* 0x3000B646: mov dword ptr [ebp - 0xd8], edx */
  10034     edx = MEM32(ebp + (-0xD4)); /* 0x3000B64C: mov edx, dword ptr [ebp - 0xd4] */
  10035     MEM32(ebp + (-0x288)) = ecx; /* 0x3000B652: mov dword ptr [ebp - 0x288], ecx */
  10036     PUSH32(esp, esi); /* 0x3000B658: push esi */
  10037     ecx = ebp + (-0x288); /* 0x3000B659: lea ecx, [ebp - 0x288] */
  10038     MEM32(ebp + (-0xD0)) = eax; /* 0x3000B65F: mov dword ptr [ebp - 0xd0], eax */
  10039     MEM32(ebp + (-0x284)) = edx; /* 0x3000B665: mov dword ptr [ebp - 0x284], edx */
  10040     MEM32(ebp + (-0x280)) = eax; /* 0x3000B66B: mov dword ptr [ebp - 0x280], eax */
  10041     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B671: call dword ptr [0x300190ec] */
  10042     RECOMP_FLAGS_IN();
  10043     ecx = MEM32(eax); /* 0x3000B677: mov ecx, dword ptr [eax] */
  10044     MEM32(ebp + (-0x120)) = ecx; /* 0x3000B679: mov dword ptr [ebp - 0x120], ecx */
  10045     edx = MEM32(eax + 0x4); /* 0x3000B67F: mov edx, dword ptr [eax + 4] */
  10046     MEM32(ebp + (-0x11C)) = edx; /* 0x3000B682: mov dword ptr [ebp - 0x11c], edx */
  10047     eax = MEM32(eax + 0x8); /* 0x3000B688: mov eax, dword ptr [eax + 8] */
  10048     ecx = edi; /* 0x3000B68B: mov ecx, edi */
  10049     edx = MEM32(ecx); /* 0x3000B68D: mov edx, dword ptr [ecx] */
  10050     MEM32(ebp + (-0x118)) = eax; /* 0x3000B68F: mov dword ptr [ebp - 0x118], eax */
  10051     eax = MEM32(ecx + 0x4); /* 0x3000B695: mov eax, dword ptr [ecx + 4] */
  10052     ecx = MEM32(ecx + 0x8); /* 0x3000B698: mov ecx, dword ptr [ecx + 8] */
  10053     MEM32(ebp + (-0x1E0)) = edx; /* 0x3000B69B: mov dword ptr [ebp - 0x1e0], edx */
  10054     edx = ebp + (-0x120); /* 0x3000B6A1: lea edx, [ebp - 0x120] */
  10055     MEM32(ebp + (-0x1D8)) = ecx; /* 0x3000B6A7: mov dword ptr [ebp - 0x1d8], ecx */
  10056     PUSH32(esp, edx); /* 0x3000B6AD: push edx */
  10057     ecx = ebp + (-0x1E0); /* 0x3000B6AE: lea ecx, [ebp - 0x1e0] */
  10058     MEM32(ebp + (-0x1DC)) = eax; /* 0x3000B6B4: mov dword ptr [ebp - 0x1dc], eax */
  10059     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B6BA: call dword ptr [0x300190c4] */
  10060     RECOMP_FLAGS_IN();
  10061     ecx = MEM32(eax); /* 0x3000B6C0: mov ecx, dword ptr [eax] */
  10062     MEM32(ebp + (-0x138)) = ecx; /* 0x3000B6C2: mov dword ptr [ebp - 0x138], ecx */
  10063     edx = MEM32(eax + 0x4); /* 0x3000B6C8: mov edx, dword ptr [eax + 4] */
  10064     ecx = ebp + (-0x138); /* 0x3000B6CB: lea ecx, [ebp - 0x138] */
  10065     PUSH32(esp, ecx); /* 0x3000B6D1: push ecx */
  10066     MEM32(ebp + (-0x134)) = edx; /* 0x3000B6D2: mov dword ptr [ebp - 0x134], edx */
  10067     eax = MEM32(eax + 0x8); /* 0x3000B6D8: mov eax, dword ptr [eax + 8] */
  10068     PUSH32(esp, 1); /* 0x3000B6DB: push 1 */
  10069     ecx = ebp + (-0x3C); /* 0x3000B6DD: lea ecx, [ebp - 0x3c] */
  10070     MEM32(ebp + (-0x130)) = eax; /* 0x3000B6E0: mov dword ptr [ebp - 0x130], eax */
  10071     RECOMP_ICALL(0x30007BA0u); /* 0x3000B6E6: call 0x30007ba0 */ /* not lifted */
  10072     RECOMP_FLAGS_IN();
  10073     edx = MEM32(ebp + 0xC); /* 0x3000B6EB: mov edx, dword ptr [ebp + 0xc] */
  10074     eax = MEM32(ebp + 0x1C); /* 0x3000B6EE: mov eax, dword ptr [ebp + 0x1c] */
  10075     ecx = edx; /* 0x3000B6F1: mov ecx, edx */
  10076     MEM32(ebp + (-0x6C)) = edx; /* 0x3000B6F3: mov dword ptr [ebp - 0x6c], edx */
  10077     edx = MEM32(ebp + (-0x68)); /* 0x3000B6F6: mov edx, dword ptr [ebp - 0x68] */
  10078     MEM32(ebp + (-0x240)) = ecx; /* 0x3000B6F9: mov dword ptr [ebp - 0x240], ecx */
  10079     PUSH32(esp, esi); /* 0x3000B6FF: push esi */
  10080     ecx = ebp + (-0x240); /* 0x3000B700: lea ecx, [ebp - 0x240] */
  10081     MEM32(ebp + (-0x64)) = eax; /* 0x3000B706: mov dword ptr [ebp - 0x64], eax */
  10082     MEM32(ebp + (-0x23C)) = edx; /* 0x3000B709: mov dword ptr [ebp - 0x23c], edx */
  10083     MEM32(ebp + (-0x238)) = eax; /* 0x3000B70F: mov dword ptr [ebp - 0x238], eax */
  10084     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B715: call dword ptr [0x300190ec] */
  10085     RECOMP_FLAGS_IN();
  10086     ecx = MEM32(eax); /* 0x3000B71B: mov ecx, dword ptr [eax] */
  10087     MEM32(ebp + (-0xE4)) = ecx; /* 0x3000B71D: mov dword ptr [ebp - 0xe4], ecx */
  10088     edx = MEM32(eax + 0x4); /* 0x3000B723: mov edx, dword ptr [eax + 4] */
  10089     MEM32(ebp + (-0xE0)) = edx; /* 0x3000B726: mov dword ptr [ebp - 0xe0], edx */
  10090     eax = MEM32(eax + 0x8); /* 0x3000B72C: mov eax, dword ptr [eax + 8] */
  10091     ecx = edi; /* 0x3000B72F: mov ecx, edi */
  10092     edx = MEM32(ecx); /* 0x3000B731: mov edx, dword ptr [ecx] */
  10093     MEM32(ebp + (-0xDC)) = eax; /* 0x3000B733: mov dword ptr [ebp - 0xdc], eax */
  10094     eax = MEM32(ecx + 0x4); /* 0x3000B739: mov eax, dword ptr [ecx + 4] */
  10095     ecx = MEM32(ecx + 0x8); /* 0x3000B73C: mov ecx, dword ptr [ecx + 8] */
  10096     MEM32(ebp + (-0x1F8)) = edx; /* 0x3000B73F: mov dword ptr [ebp - 0x1f8], edx */
  10097     edx = ebp + (-0xE4); /* 0x3000B745: lea edx, [ebp - 0xe4] */
  10098     MEM32(ebp + (-0x1F0)) = ecx; /* 0x3000B74B: mov dword ptr [ebp - 0x1f0], ecx */
  10099     PUSH32(esp, edx); /* 0x3000B751: push edx */
  10100     ecx = ebp + (-0x1F8); /* 0x3000B752: lea ecx, [ebp - 0x1f8] */
  10101     MEM32(ebp + (-0x1F4)) = eax; /* 0x3000B758: mov dword ptr [ebp - 0x1f4], eax */
  10102     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B75E: call dword ptr [0x300190c4] */
  10103     RECOMP_FLAGS_IN();
  10104     ecx = MEM32(eax); /* 0x3000B764: mov ecx, dword ptr [eax] */
  10105     MEM32(ebp + (-0x168)) = ecx; /* 0x3000B766: mov dword ptr [ebp - 0x168], ecx */
  10106     edx = MEM32(eax + 0x4); /* 0x3000B76C: mov edx, dword ptr [eax + 4] */
  10107     ecx = ebp + (-0x168); /* 0x3000B76F: lea ecx, [ebp - 0x168] */
  10108     PUSH32(esp, ecx); /* 0x3000B775: push ecx */
  10109     MEM32(ebp + (-0x164)) = edx; /* 0x3000B776: mov dword ptr [ebp - 0x164], edx */
  10110     eax = MEM32(eax + 0x8); /* 0x3000B77C: mov eax, dword ptr [eax + 8] */
  10111     PUSH32(esp, 2); /* 0x3000B77F: push 2 */
  10112     ecx = ebp + (-0x3C); /* 0x3000B781: lea ecx, [ebp - 0x3c] */
  10113     MEM32(ebp + (-0x160)) = eax; /* 0x3000B784: mov dword ptr [ebp - 0x160], eax */
  10114     RECOMP_ICALL(0x30007BA0u); /* 0x3000B78A: call 0x30007ba0 */ /* not lifted */
  10115     RECOMP_FLAGS_IN();
  10116     edx = MEM32(ebp + 0x18); /* 0x3000B78F: mov edx, dword ptr [ebp + 0x18] */
  10117     eax = MEM32(ebp + 0x14); /* 0x3000B792: mov eax, dword ptr [ebp + 0x14] */
  10118     ecx = edx; /* 0x3000B795: mov ecx, edx */
  10119     MEM32(ebp + (-0x54)) = edx; /* 0x3000B797: mov dword ptr [ebp - 0x54], edx */
  10120     edx = MEM32(ebp + (-0x50)); /* 0x3000B79A: mov edx, dword ptr [ebp - 0x50] */
  10121     MEM32(ebp + (-0x270)) = ecx; /* 0x3000B79D: mov dword ptr [ebp - 0x270], ecx */
  10122     PUSH32(esp, esi); /* 0x3000B7A3: push esi */
  10123     ecx = ebp + (-0x270); /* 0x3000B7A4: lea ecx, [ebp - 0x270] */
  10124     MEM32(ebp + (-0x4C)) = eax; /* 0x3000B7AA: mov dword ptr [ebp - 0x4c], eax */
  10125     MEM32(ebp + (-0x26C)) = edx; /* 0x3000B7AD: mov dword ptr [ebp - 0x26c], edx */
  10126     MEM32(ebp + (-0x268)) = eax; /* 0x3000B7B3: mov dword ptr [ebp - 0x268], eax */
  10127     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B7B9: call dword ptr [0x300190ec] */
  10128     RECOMP_FLAGS_IN();
  10129     ecx = MEM32(eax); /* 0x3000B7BF: mov ecx, dword ptr [eax] */
  10130     MEM32(ebp + (-0x180)) = ecx; /* 0x3000B7C1: mov dword ptr [ebp - 0x180], ecx */
  10131     edx = MEM32(eax + 0x4); /* 0x3000B7C7: mov edx, dword ptr [eax + 4] */
  10132     MEM32(ebp + (-0x17C)) = edx; /* 0x3000B7CA: mov dword ptr [ebp - 0x17c], edx */
  10133     eax = MEM32(eax + 0x8); /* 0x3000B7D0: mov eax, dword ptr [eax + 8] */
  10134     MEM32(ebp + (-0x178)) = eax; /* 0x3000B7D3: mov dword ptr [ebp - 0x178], eax */
  10135     ecx = edi; /* 0x3000B7D9: mov ecx, edi */
  10136     edx = MEM32(ecx); /* 0x3000B7DB: mov edx, dword ptr [ecx] */
  10137     eax = MEM32(ecx + 0x4); /* 0x3000B7DD: mov eax, dword ptr [ecx + 4] */
  10138     ecx = MEM32(ecx + 0x8); /* 0x3000B7E0: mov ecx, dword ptr [ecx + 8] */
  10139     MEM32(ebp + (-0x210)) = edx; /* 0x3000B7E3: mov dword ptr [ebp - 0x210], edx */
  10140     edx = ebp + (-0x180); /* 0x3000B7E9: lea edx, [ebp - 0x180] */
  10141     MEM32(ebp + (-0x208)) = ecx; /* 0x3000B7EF: mov dword ptr [ebp - 0x208], ecx */
  10142     PUSH32(esp, edx); /* 0x3000B7F5: push edx */
  10143     ecx = ebp + (-0x210); /* 0x3000B7F6: lea ecx, [ebp - 0x210] */
  10144     MEM32(ebp + (-0x20C)) = eax; /* 0x3000B7FC: mov dword ptr [ebp - 0x20c], eax */
  10145     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B802: call dword ptr [0x300190c4] */
  10146     RECOMP_FLAGS_IN();
  10147     ecx = MEM32(eax); /* 0x3000B808: mov ecx, dword ptr [eax] */
  10148     MEM32(ebp + (-0x198)) = ecx; /* 0x3000B80A: mov dword ptr [ebp - 0x198], ecx */
  10149     edx = MEM32(eax + 0x4); /* 0x3000B810: mov edx, dword ptr [eax + 4] */
  10150     ecx = ebp + (-0x198); /* 0x3000B813: lea ecx, [ebp - 0x198] */
  10151     PUSH32(esp, ecx); /* 0x3000B819: push ecx */
  10152     MEM32(ebp + (-0x194)) = edx; /* 0x3000B81A: mov dword ptr [ebp - 0x194], edx */
  10153     eax = MEM32(eax + 0x8); /* 0x3000B820: mov eax, dword ptr [eax + 8] */
  10154     PUSH32(esp, 3); /* 0x3000B823: push 3 */
  10155     ecx = ebp + (-0x3C); /* 0x3000B825: lea ecx, [ebp - 0x3c] */
  10156     MEM32(ebp + (-0x190)) = eax; /* 0x3000B828: mov dword ptr [ebp - 0x190], eax */
  10157     RECOMP_ICALL(0x30007BA0u); /* 0x3000B82E: call 0x30007ba0 */ /* not lifted */
  10158     RECOMP_FLAGS_IN();
  10159     eax = MEM32(ebx + 0x8); /* 0x3000B833: mov eax, dword ptr [ebx + 8] */
  10160     edx = ebp + (-0x3C); /* 0x3000B836: lea edx, [ebp - 0x3c] */
  10161     PUSH32(esp, edx); /* 0x3000B839: push edx */
  10162     PUSH32(esp, eax); /* 0x3000B83A: push eax */
  10163     ecx = ebx; /* 0x3000B83B: mov ecx, ebx */
  10164     RECOMP_ICALL(0x30002C40u); /* 0x3000B83D: call 0x30002c40 */ /* not lifted */
  10165     RECOMP_FLAGS_IN();
  10166     PUSH32(esp, 3); /* 0x3000B842: push 3 */
  10167     ecx = ebp + (-0x29C); /* 0x3000B844: lea ecx, [ebp - 0x29c] */
  10168     RECOMP_ICALL(0x30007950u); /* 0x3000B84A: call 0x30007950 */ /* not lifted */
  10169     RECOMP_FLAGS_IN();
  10170     PUSH32(esp, eax); /* 0x3000B84F: push eax */
  10171     ecx = ebp + (-0x3C); /* 0x3000B850: lea ecx, [ebp - 0x3c] */
  10172     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3000B853: mov byte ptr [ebp - 4], 1 */
  10173     RECOMP_ICALL(0x300080D0u); /* 0x3000B857: call 0x300080d0 */ /* not lifted */
  10174     RECOMP_FLAGS_IN();
  10175     ecx = ebp + (-0x29C); /* 0x3000B85C: lea ecx, [ebp - 0x29c] */
  10176     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3000B862: mov byte ptr [ebp - 4], 0 */
  10177     RECOMP_ICALL(0x30007AB0u); /* 0x3000B866: call 0x30007ab0 */ /* not lifted */
  10178     RECOMP_FLAGS_IN();
  10179     ecx = MEM32(ebp + (-0x80)); /* 0x3000B86B: mov ecx, dword ptr [ebp - 0x80] */
  10180     eax = MEM32(ebp + (-0x84)); /* 0x3000B86E: mov eax, dword ptr [ebp - 0x84] */
  10181     edx = MEM32(ebp + (-0x7C)); /* 0x3000B874: mov edx, dword ptr [ebp - 0x7c] */
  10182     MEM32(ebp + (-0x254)) = ecx; /* 0x3000B877: mov dword ptr [ebp - 0x254], ecx */
  10183     PUSH32(esp, esi); /* 0x3000B87D: push esi */
  10184     ecx = ebp + (-0x258); /* 0x3000B87E: lea ecx, [ebp - 0x258] */
  10185     MEM32(ebp + (-0x258)) = eax; /* 0x3000B884: mov dword ptr [ebp - 0x258], eax */
  10186     MEM32(ebp + (-0x250)) = edx; /* 0x3000B88A: mov dword ptr [ebp - 0x250], edx */
  10187     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B890: call dword ptr [0x300190ec] */
  10188     RECOMP_FLAGS_IN();
  10189     ecx = MEM32(eax); /* 0x3000B896: mov ecx, dword ptr [eax] */
  10190     MEM32(ebp + (-0x1B0)) = ecx; /* 0x3000B898: mov dword ptr [ebp - 0x1b0], ecx */
  10191     edx = MEM32(eax + 0x4); /* 0x3000B89E: mov edx, dword ptr [eax + 4] */
  10192     MEM32(ebp + (-0x1AC)) = edx; /* 0x3000B8A1: mov dword ptr [ebp - 0x1ac], edx */
  10193     eax = MEM32(eax + 0x8); /* 0x3000B8A7: mov eax, dword ptr [eax + 8] */
  10194     ecx = edi; /* 0x3000B8AA: mov ecx, edi */
  10195     edx = MEM32(ecx); /* 0x3000B8AC: mov edx, dword ptr [ecx] */
  10196     MEM32(ebp + (-0x1A8)) = eax; /* 0x3000B8AE: mov dword ptr [ebp - 0x1a8], eax */
  10197     eax = MEM32(ecx + 0x4); /* 0x3000B8B4: mov eax, dword ptr [ecx + 4] */
  10198     ecx = MEM32(ecx + 0x8); /* 0x3000B8B7: mov ecx, dword ptr [ecx + 8] */
  10199     MEM32(ebp + (-0x228)) = edx; /* 0x3000B8BA: mov dword ptr [ebp - 0x228], edx */
  10200     edx = ebp + (-0x1B0); /* 0x3000B8C0: lea edx, [ebp - 0x1b0] */
  10201     MEM32(ebp + (-0x220)) = ecx; /* 0x3000B8C6: mov dword ptr [ebp - 0x220], ecx */
  10202     PUSH32(esp, edx); /* 0x3000B8CC: push edx */
  10203     ecx = ebp + (-0x228); /* 0x3000B8CD: lea ecx, [ebp - 0x228] */
  10204     MEM32(ebp + (-0x224)) = eax; /* 0x3000B8D3: mov dword ptr [ebp - 0x224], eax */
  10205     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B8D9: call dword ptr [0x300190c4] */
  10206     RECOMP_FLAGS_IN();
  10207     ecx = MEM32(eax); /* 0x3000B8DF: mov ecx, dword ptr [eax] */
  10208     MEM32(ebp + (-0xF0)) = ecx; /* 0x3000B8E1: mov dword ptr [ebp - 0xf0], ecx */
  10209     edx = MEM32(eax + 0x4); /* 0x3000B8E7: mov edx, dword ptr [eax + 4] */
  10210     ecx = ebp + (-0xF0); /* 0x3000B8EA: lea ecx, [ebp - 0xf0] */
  10211     PUSH32(esp, ecx); /* 0x3000B8F0: push ecx */
  10212     MEM32(ebp + (-0xEC)) = edx; /* 0x3000B8F1: mov dword ptr [ebp - 0xec], edx */
  10213     eax = MEM32(eax + 0x8); /* 0x3000B8F7: mov eax, dword ptr [eax + 8] */
  10214     PUSH32(esp, 0); /* 0x3000B8FA: push 0 */
  10215     ecx = ebp + (-0x3C); /* 0x3000B8FC: lea ecx, [ebp - 0x3c] */
  10216     MEM32(ebp + (-0xE8)) = eax; /* 0x3000B8FF: mov dword ptr [ebp - 0xe8], eax */
  10217     RECOMP_ICALL(0x30007BA0u); /* 0x3000B905: call 0x30007ba0 */ /* not lifted */
  10218     RECOMP_FLAGS_IN();
  10219     edx = MEM32(ebp + 0xC); /* 0x3000B90A: mov edx, dword ptr [ebp + 0xc] */
  10220     eax = MEM32(ebp + 0x1C); /* 0x3000B90D: mov eax, dword ptr [ebp + 0x1c] */
  10221     MEM32(ebp + (-0xB4)) = edx; /* 0x3000B910: mov dword ptr [ebp - 0xb4], edx */
  10222     MEM32(ebp + (-0xAC)) = eax; /* 0x3000B916: mov dword ptr [ebp - 0xac], eax */
  10223     ecx = edx; /* 0x3000B91C: mov ecx, edx */
  10224     edx = MEM32(ebp + (-0xB0)); /* 0x3000B91E: mov edx, dword ptr [ebp - 0xb0] */
  10225     MEM32(ebp + (-0xFC)) = ecx; /* 0x3000B924: mov dword ptr [ebp - 0xfc], ecx */
  10226     PUSH32(esp, esi); /* 0x3000B92A: push esi */
  10227     ecx = ebp + (-0xFC); /* 0x3000B92B: lea ecx, [ebp - 0xfc] */
  10228     MEM32(ebp + (-0xF8)) = edx; /* 0x3000B931: mov dword ptr [ebp - 0xf8], edx */
  10229     MEM32(ebp + (-0xF4)) = eax; /* 0x3000B937: mov dword ptr [ebp - 0xf4], eax */
  10230     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B93D: call dword ptr [0x300190ec] */
  10231     RECOMP_FLAGS_IN();
  10232     ecx = MEM32(eax); /* 0x3000B943: mov ecx, dword ptr [eax] */
  10233     MEM32(ebp + (-0x114)) = ecx; /* 0x3000B945: mov dword ptr [ebp - 0x114], ecx */
  10234     edx = MEM32(eax + 0x4); /* 0x3000B94B: mov edx, dword ptr [eax + 4] */
  10235     MEM32(ebp + (-0x110)) = edx; /* 0x3000B94E: mov dword ptr [ebp - 0x110], edx */
  10236     eax = MEM32(eax + 0x8); /* 0x3000B954: mov eax, dword ptr [eax + 8] */
  10237     ecx = edi; /* 0x3000B957: mov ecx, edi */
  10238     edx = MEM32(ecx); /* 0x3000B959: mov edx, dword ptr [ecx] */
  10239     MEM32(ebp + (-0x10C)) = eax; /* 0x3000B95B: mov dword ptr [ebp - 0x10c], eax */
  10240     eax = MEM32(ecx + 0x4); /* 0x3000B961: mov eax, dword ptr [ecx + 4] */
  10241     ecx = MEM32(ecx + 0x8); /* 0x3000B964: mov ecx, dword ptr [ecx + 8] */
  10242     MEM32(ebp + (-0x12C)) = edx; /* 0x3000B967: mov dword ptr [ebp - 0x12c], edx */
  10243     edx = ebp + (-0x114); /* 0x3000B96D: lea edx, [ebp - 0x114] */
  10244     MEM32(ebp + (-0x124)) = ecx; /* 0x3000B973: mov dword ptr [ebp - 0x124], ecx */
  10245     PUSH32(esp, edx); /* 0x3000B979: push edx */
  10246     ecx = ebp + (-0x12C); /* 0x3000B97A: lea ecx, [ebp - 0x12c] */
  10247     MEM32(ebp + (-0x128)) = eax; /* 0x3000B980: mov dword ptr [ebp - 0x128], eax */
  10248     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000B986: call dword ptr [0x300190c4] */
  10249     RECOMP_FLAGS_IN();
  10250     ecx = MEM32(eax); /* 0x3000B98C: mov ecx, dword ptr [eax] */
  10251     MEM32(ebp + (-0x144)) = ecx; /* 0x3000B98E: mov dword ptr [ebp - 0x144], ecx */
  10252     edx = MEM32(eax + 0x4); /* 0x3000B994: mov edx, dword ptr [eax + 4] */
  10253     ecx = ebp + (-0x144); /* 0x3000B997: lea ecx, [ebp - 0x144] */
  10254     PUSH32(esp, ecx); /* 0x3000B99D: push ecx */
  10255     MEM32(ebp + (-0x140)) = edx; /* 0x3000B99E: mov dword ptr [ebp - 0x140], edx */
  10256     eax = MEM32(eax + 0x8); /* 0x3000B9A4: mov eax, dword ptr [eax + 8] */
  10257     PUSH32(esp, 1); /* 0x3000B9A7: push 1 */
  10258     ecx = ebp + (-0x3C); /* 0x3000B9A9: lea ecx, [ebp - 0x3c] */
  10259     MEM32(ebp + (-0x13C)) = eax; /* 0x3000B9AC: mov dword ptr [ebp - 0x13c], eax */
  10260     RECOMP_ICALL(0x30007BA0u); /* 0x3000B9B2: call 0x30007ba0 */ /* not lifted */
  10261     RECOMP_FLAGS_IN();
  10262     edx = MEM32(ebp + 0x18); /* 0x3000B9B7: mov edx, dword ptr [ebp + 0x18] */
  10263     eax = MEM32(ebp + 0x14); /* 0x3000B9BA: mov eax, dword ptr [ebp + 0x14] */
  10264     ecx = edx; /* 0x3000B9BD: mov ecx, edx */
  10265     MEM32(ebp + (-0x9C)) = edx; /* 0x3000B9BF: mov dword ptr [ebp - 0x9c], edx */
  10266     edx = MEM32(ebp + (-0x98)); /* 0x3000B9C5: mov edx, dword ptr [ebp - 0x98] */
  10267     MEM32(ebp + (-0x15C)) = ecx; /* 0x3000B9CB: mov dword ptr [ebp - 0x15c], ecx */
  10268     PUSH32(esp, esi); /* 0x3000B9D1: push esi */
  10269     ecx = ebp + (-0x15C); /* 0x3000B9D2: lea ecx, [ebp - 0x15c] */
  10270     MEM32(ebp + (-0x94)) = eax; /* 0x3000B9D8: mov dword ptr [ebp - 0x94], eax */
  10271     MEM32(ebp + (-0x158)) = edx; /* 0x3000B9DE: mov dword ptr [ebp - 0x158], edx */
  10272     MEM32(ebp + (-0x154)) = eax; /* 0x3000B9E4: mov dword ptr [ebp - 0x154], eax */
  10273     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000B9EA: call dword ptr [0x300190ec] */
  10274     RECOMP_FLAGS_IN();
  10275     ecx = MEM32(eax); /* 0x3000B9F0: mov ecx, dword ptr [eax] */
  10276     MEM32(ebp + (-0x174)) = ecx; /* 0x3000B9F2: mov dword ptr [ebp - 0x174], ecx */
  10277     edx = MEM32(eax + 0x4); /* 0x3000B9F8: mov edx, dword ptr [eax + 4] */
  10278     MEM32(ebp + (-0x170)) = edx; /* 0x3000B9FB: mov dword ptr [ebp - 0x170], edx */
  10279     eax = MEM32(eax + 0x8); /* 0x3000BA01: mov eax, dword ptr [eax + 8] */
  10280     ecx = edi; /* 0x3000BA04: mov ecx, edi */
  10281     edx = MEM32(ecx); /* 0x3000BA06: mov edx, dword ptr [ecx] */
  10282     MEM32(ebp + (-0x16C)) = eax; /* 0x3000BA08: mov dword ptr [ebp - 0x16c], eax */
  10283     eax = MEM32(ecx + 0x4); /* 0x3000BA0E: mov eax, dword ptr [ecx + 4] */
  10284     ecx = MEM32(ecx + 0x8); /* 0x3000BA11: mov ecx, dword ptr [ecx + 8] */
  10285     MEM32(ebp + (-0x18C)) = edx; /* 0x3000BA14: mov dword ptr [ebp - 0x18c], edx */
  10286     edx = ebp + (-0x174); /* 0x3000BA1A: lea edx, [ebp - 0x174] */
  10287     MEM32(ebp + (-0x184)) = ecx; /* 0x3000BA20: mov dword ptr [ebp - 0x184], ecx */
  10288     PUSH32(esp, edx); /* 0x3000BA26: push edx */
  10289     ecx = ebp + (-0x18C); /* 0x3000BA27: lea ecx, [ebp - 0x18c] */
  10290     MEM32(ebp + (-0x188)) = eax; /* 0x3000BA2D: mov dword ptr [ebp - 0x188], eax */
  10291     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000BA33: call dword ptr [0x300190c4] */
  10292     RECOMP_FLAGS_IN();
  10293     ecx = MEM32(eax); /* 0x3000BA39: mov ecx, dword ptr [eax] */
  10294     MEM32(ebp + (-0x1A4)) = ecx; /* 0x3000BA3B: mov dword ptr [ebp - 0x1a4], ecx */
  10295     edx = MEM32(eax + 0x4); /* 0x3000BA41: mov edx, dword ptr [eax + 4] */
  10296     ecx = ebp + (-0x1A4); /* 0x3000BA44: lea ecx, [ebp - 0x1a4] */
  10297     PUSH32(esp, ecx); /* 0x3000BA4A: push ecx */
  10298     MEM32(ebp + (-0x1A0)) = edx; /* 0x3000BA4B: mov dword ptr [ebp - 0x1a0], edx */
  10299     eax = MEM32(eax + 0x8); /* 0x3000BA51: mov eax, dword ptr [eax + 8] */
  10300     PUSH32(esp, 2); /* 0x3000BA54: push 2 */
  10301     ecx = ebp + (-0x3C); /* 0x3000BA56: lea ecx, [ebp - 0x3c] */
  10302     MEM32(ebp + (-0x19C)) = eax; /* 0x3000BA59: mov dword ptr [ebp - 0x19c], eax */
  10303     RECOMP_ICALL(0x30007BA0u); /* 0x3000BA5F: call 0x30007ba0 */ /* not lifted */
  10304     RECOMP_FLAGS_IN();
  10305     eax = MEM32(ebx + 0x8); /* 0x3000BA64: mov eax, dword ptr [ebx + 8] */
  10306     edx = ebp + (-0x3C); /* 0x3000BA67: lea edx, [ebp - 0x3c] */
  10307     PUSH32(esp, edx); /* 0x3000BA6A: push edx */
  10308     PUSH32(esp, eax); /* 0x3000BA6B: push eax */
  10309     ecx = ebx; /* 0x3000BA6C: mov ecx, ebx */
  10310     RECOMP_ICALL(0x30002C40u); /* 0x3000BA6E: call 0x30002c40 */ /* not lifted */
  10311     RECOMP_FLAGS_IN();
  10312     ecx = MEM32(ebp + (-0x5C)); /* 0x3000BA73: mov ecx, dword ptr [ebp - 0x5c] */
  10313     eax = MEM32(ebp + (-0x60)); /* 0x3000BA76: mov eax, dword ptr [ebp - 0x60] */
  10314     edx = MEM32(ebp + (-0x58)); /* 0x3000BA79: mov edx, dword ptr [ebp - 0x58] */
  10315     MEM32(ebp + (-0x1B8)) = ecx; /* 0x3000BA7C: mov dword ptr [ebp - 0x1b8], ecx */
  10316     PUSH32(esp, esi); /* 0x3000BA82: push esi */
  10317     ecx = ebp + (-0x1BC); /* 0x3000BA83: lea ecx, [ebp - 0x1bc] */
  10318     MEM32(ebp + (-0x1BC)) = eax; /* 0x3000BA89: mov dword ptr [ebp - 0x1bc], eax */
  10319     MEM32(ebp + (-0x1B4)) = edx; /* 0x3000BA8F: mov dword ptr [ebp - 0x1b4], edx */
  10320     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000BA95: call dword ptr [0x300190ec] */
  10321     RECOMP_FLAGS_IN();
  10322     ecx = MEM32(eax); /* 0x3000BA9B: mov ecx, dword ptr [eax] */
  10323     edx = MEM32(eax + 0x4); /* 0x3000BA9D: mov edx, dword ptr [eax + 4] */
  10324     eax = MEM32(eax + 0x8); /* 0x3000BAA0: mov eax, dword ptr [eax + 8] */
  10325     MEM32(ebp + (-0x78)) = ecx; /* 0x3000BAA3: mov dword ptr [ebp - 0x78], ecx */
  10326     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x3000BAA6: fld dword ptr [ebp - 0x78] */
  10327     MEM32(ebp + (-0x74)) = edx; /* 0x3000BAA9: mov dword ptr [ebp - 0x74], edx */
  10328     ecx = edi; /* 0x3000BAAC: mov ecx, edi */
  10329     edx = MEM32(ecx); /* 0x3000BAAE: mov edx, dword ptr [ecx] */
  10330     MEM32(ebp + (-0x1C)) = edx; /* 0x3000BAB0: mov dword ptr [ebp - 0x1c], edx */
  10331     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000BAB3: fadd dword ptr [ebp - 0x1c] */
  10332     MEM32(ebp + (-0x70)) = eax; /* 0x3000BAB6: mov dword ptr [ebp - 0x70], eax */
  10333     eax = MEM32(ecx + 0x4); /* 0x3000BAB9: mov eax, dword ptr [ecx + 4] */
  10334     ecx = MEM32(ecx + 0x8); /* 0x3000BABC: mov ecx, dword ptr [ecx + 8] */
  10335     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3000BABF: fstp dword ptr [ebp - 0x1c] */
  10336     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x3000BAC2: fld dword ptr [ebp - 0x74] */
  10337     edx = MEM32(ebp + (-0x1C)); /* 0x3000BAC5: mov edx, dword ptr [ebp - 0x1c] */
  10338     MEM32(ebp + (-0x18)) = eax; /* 0x3000BAC8: mov dword ptr [ebp - 0x18], eax */
  10339     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3000BACB: fadd dword ptr [ebp - 0x18] */
  10340     MEM32(ebp + (-0x14)) = ecx; /* 0x3000BACE: mov dword ptr [ebp - 0x14], ecx */
  10341     MEM32(ebp + (-0x1D4)) = edx; /* 0x3000BAD1: mov dword ptr [ebp - 0x1d4], edx */
  10342     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000BAD7: fstp dword ptr [ebp - 0x18] */
  10343     eax = MEM32(ebp + (-0x18)); /* 0x3000BADA: mov eax, dword ptr [ebp - 0x18] */
  10344     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x3000BADD: fld dword ptr [ebp - 0x70] */
  10345     edx = ebp + (-0x1D4); /* 0x3000BAE0: lea edx, [ebp - 0x1d4] */
  10346     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3000BAE6: fadd dword ptr [ebp - 0x14] */
  10347     PUSH32(esp, edx); /* 0x3000BAE9: push edx */
  10348     PUSH32(esp, 2); /* 0x3000BAEA: push 2 */
  10349     MEM32(ebp + (-0x1D0)) = eax; /* 0x3000BAEC: mov dword ptr [ebp - 0x1d0], eax */
  10350     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000BAF2: fstp dword ptr [ebp - 0x14] */
  10351     ecx = MEM32(ebp + (-0x14)); /* 0x3000BAF5: mov ecx, dword ptr [ebp - 0x14] */
  10352     MEM32(ebp + (-0x1CC)) = ecx; /* 0x3000BAF8: mov dword ptr [ebp - 0x1cc], ecx */
  10353     ecx = ebp + (-0x3C); /* 0x3000BAFE: lea ecx, [ebp - 0x3c] */
  10354     RECOMP_ICALL(0x30007BA0u); /* 0x3000BB01: call 0x30007ba0 */ /* not lifted */
  10355     RECOMP_FLAGS_IN();
  10356     eax = MEM32(ebp + 0xC); /* 0x3000BB06: mov eax, dword ptr [ebp + 0xc] */
  10357     ecx = MEM32(ebp + 0x1C); /* 0x3000BB09: mov ecx, dword ptr [ebp + 0x1c] */
  10358     edx = eax; /* 0x3000BB0C: mov edx, eax */
  10359     MEM32(ebp + (-0x90)) = eax; /* 0x3000BB0E: mov dword ptr [ebp - 0x90], eax */
  10360     eax = MEM32(ebp + (-0x8C)); /* 0x3000BB14: mov eax, dword ptr [ebp - 0x8c] */
  10361     MEM32(ebp + (-0x88)) = ecx; /* 0x3000BB1A: mov dword ptr [ebp - 0x88], ecx */
  10362     MEM32(ebp + (-0x1E4)) = ecx; /* 0x3000BB20: mov dword ptr [ebp - 0x1e4], ecx */
  10363     PUSH32(esp, esi); /* 0x3000BB26: push esi */
  10364     ecx = ebp + (-0x1EC); /* 0x3000BB27: lea ecx, [ebp - 0x1ec] */
  10365     MEM32(ebp + (-0x1EC)) = edx; /* 0x3000BB2D: mov dword ptr [ebp - 0x1ec], edx */
  10366     MEM32(ebp + (-0x1E8)) = eax; /* 0x3000BB33: mov dword ptr [ebp - 0x1e8], eax */
  10367     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000BB39: call dword ptr [0x300190ec] */
  10368     RECOMP_FLAGS_IN();
  10369     edx = MEM32(eax); /* 0x3000BB3F: mov edx, dword ptr [eax] */
  10370     ecx = MEM32(eax + 0x4); /* 0x3000BB41: mov ecx, dword ptr [eax + 4] */
  10371     MEM32(ebp + (-0xA8)) = edx; /* 0x3000BB44: mov dword ptr [ebp - 0xa8], edx */
  10372     fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x3000BB4A: fld dword ptr [ebp - 0xa8] */
  10373     edx = MEM32(eax + 0x8); /* 0x3000BB50: mov edx, dword ptr [eax + 8] */
  10374     MEM32(ebp + (-0xA4)) = ecx; /* 0x3000BB53: mov dword ptr [ebp - 0xa4], ecx */
  10375     eax = edi; /* 0x3000BB59: mov eax, edi */
  10376     ecx = MEM32(eax); /* 0x3000BB5B: mov ecx, dword ptr [eax] */
  10377     MEM32(ebp + (-0x28)) = ecx; /* 0x3000BB5D: mov dword ptr [ebp - 0x28], ecx */
  10378     _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3000BB60: fadd dword ptr [ebp - 0x28] */
  10379     MEM32(ebp + (-0xA0)) = edx; /* 0x3000BB63: mov dword ptr [ebp - 0xa0], edx */
  10380     edx = MEM32(eax + 0x4); /* 0x3000BB69: mov edx, dword ptr [eax + 4] */
  10381     eax = MEM32(eax + 0x8); /* 0x3000BB6C: mov eax, dword ptr [eax + 8] */
  10382     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3000BB6F: fstp dword ptr [ebp - 0x28] */
  10383     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x3000BB72: fld dword ptr [ebp - 0xa4] */
  10384     ecx = MEM32(ebp + (-0x28)); /* 0x3000BB78: mov ecx, dword ptr [ebp - 0x28] */
  10385     MEM32(ebp + (-0x24)) = edx; /* 0x3000BB7B: mov dword ptr [ebp - 0x24], edx */
  10386     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3000BB7E: fadd dword ptr [ebp - 0x24] */
  10387     MEM32(ebp + (-0x20)) = eax; /* 0x3000BB81: mov dword ptr [ebp - 0x20], eax */
  10388     MEM32(ebp + (-0x204)) = ecx; /* 0x3000BB84: mov dword ptr [ebp - 0x204], ecx */
  10389     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3000BB8A: fstp dword ptr [ebp - 0x24] */
  10390     edx = MEM32(ebp + (-0x24)); /* 0x3000BB8D: mov edx, dword ptr [ebp - 0x24] */
  10391     fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x3000BB90: fld dword ptr [ebp - 0xa0] */
  10392     MEM32(ebp + (-0x200)) = edx; /* 0x3000BB96: mov dword ptr [ebp - 0x200], edx */
  10393     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3000BB9C: fadd dword ptr [ebp - 0x20] */
  10394     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000BB9F: fstp dword ptr [ebp - 0x20] */
  10395     eax = MEM32(ebp + (-0x20)); /* 0x3000BBA2: mov eax, dword ptr [ebp - 0x20] */
  10396     ecx = ebp + (-0x204); /* 0x3000BBA5: lea ecx, [ebp - 0x204] */
  10397     PUSH32(esp, ecx); /* 0x3000BBAB: push ecx */
  10398     PUSH32(esp, 1); /* 0x3000BBAC: push 1 */
  10399     ecx = ebp + (-0x3C); /* 0x3000BBAE: lea ecx, [ebp - 0x3c] */
  10400     MEM32(ebp + (-0x1FC)) = eax; /* 0x3000BBB1: mov dword ptr [ebp - 0x1fc], eax */
  10401     RECOMP_ICALL(0x30007BA0u); /* 0x3000BBB7: call 0x30007ba0 */ /* not lifted */
  10402     RECOMP_FLAGS_IN();
  10403     edx = MEM32(ebp + 0x18); /* 0x3000BBBC: mov edx, dword ptr [ebp + 0x18] */
  10404     eax = MEM32(ebp + 0x14); /* 0x3000BBBF: mov eax, dword ptr [ebp + 0x14] */
  10405     ecx = edx; /* 0x3000BBC2: mov ecx, edx */
  10406     MEM32(ebp + (-0xC0)) = edx; /* 0x3000BBC4: mov dword ptr [ebp - 0xc0], edx */
  10407     edx = MEM32(ebp + (-0xBC)); /* 0x3000BBCA: mov edx, dword ptr [ebp - 0xbc] */
  10408     MEM32(ebp + (-0x21C)) = ecx; /* 0x3000BBD0: mov dword ptr [ebp - 0x21c], ecx */
  10409     PUSH32(esp, esi); /* 0x3000BBD6: push esi */
  10410     ecx = ebp + (-0x21C); /* 0x3000BBD7: lea ecx, [ebp - 0x21c] */
  10411     MEM32(ebp + (-0xB8)) = eax; /* 0x3000BBDD: mov dword ptr [ebp - 0xb8], eax */
  10412     MEM32(ebp + (-0x218)) = edx; /* 0x3000BBE3: mov dword ptr [ebp - 0x218], edx */
  10413     MEM32(ebp + (-0x214)) = eax; /* 0x3000BBE9: mov dword ptr [ebp - 0x214], eax */
  10414     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000BBEF: call dword ptr [0x300190ec] */
  10415     RECOMP_FLAGS_IN();
  10416     ecx = MEM32(eax); /* 0x3000BBF5: mov ecx, dword ptr [eax] */
  10417     MEM32(ebp + (-0x234)) = ecx; /* 0x3000BBF7: mov dword ptr [ebp - 0x234], ecx */
  10418     edx = MEM32(eax + 0x4); /* 0x3000BBFD: mov edx, dword ptr [eax + 4] */
  10419     MEM32(ebp + (-0x230)) = edx; /* 0x3000BC00: mov dword ptr [ebp - 0x230], edx */
  10420     eax = MEM32(eax + 0x8); /* 0x3000BC06: mov eax, dword ptr [eax + 8] */
  10421     ecx = edi; /* 0x3000BC09: mov ecx, edi */
  10422     edx = MEM32(ecx); /* 0x3000BC0B: mov edx, dword ptr [ecx] */
  10423     MEM32(ebp + (-0x22C)) = eax; /* 0x3000BC0D: mov dword ptr [ebp - 0x22c], eax */
  10424     eax = MEM32(ecx + 0x4); /* 0x3000BC13: mov eax, dword ptr [ecx + 4] */
  10425     ecx = MEM32(ecx + 0x8); /* 0x3000BC16: mov ecx, dword ptr [ecx + 8] */
  10426     MEM32(ebp + (-0x24C)) = edx; /* 0x3000BC19: mov dword ptr [ebp - 0x24c], edx */
  10427     edx = ebp + (-0x234); /* 0x3000BC1F: lea edx, [ebp - 0x234] */
  10428     MEM32(ebp + (-0x244)) = ecx; /* 0x3000BC25: mov dword ptr [ebp - 0x244], ecx */
  10429     PUSH32(esp, edx); /* 0x3000BC2B: push edx */
  10430     ecx = ebp + (-0x24C); /* 0x3000BC2C: lea ecx, [ebp - 0x24c] */
  10431     MEM32(ebp + (-0x248)) = eax; /* 0x3000BC32: mov dword ptr [ebp - 0x248], eax */
  10432     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000BC38: call dword ptr [0x300190c4] */
  10433     RECOMP_FLAGS_IN();
  10434     ecx = MEM32(eax); /* 0x3000BC3E: mov ecx, dword ptr [eax] */
  10435     MEM32(ebp + (-0x264)) = ecx; /* 0x3000BC40: mov dword ptr [ebp - 0x264], ecx */
  10436     edx = MEM32(eax + 0x4); /* 0x3000BC46: mov edx, dword ptr [eax + 4] */
  10437     ecx = ebp + (-0x264); /* 0x3000BC49: lea ecx, [ebp - 0x264] */
  10438     PUSH32(esp, ecx); /* 0x3000BC4F: push ecx */
  10439     MEM32(ebp + (-0x260)) = edx; /* 0x3000BC50: mov dword ptr [ebp - 0x260], edx */
  10440     eax = MEM32(eax + 0x8); /* 0x3000BC56: mov eax, dword ptr [eax + 8] */
  10441     PUSH32(esp, 0); /* 0x3000BC59: push 0 */
  10442     ecx = ebp + (-0x3C); /* 0x3000BC5B: lea ecx, [ebp - 0x3c] */
  10443     MEM32(ebp + (-0x25C)) = eax; /* 0x3000BC5E: mov dword ptr [ebp - 0x25c], eax */
  10444     RECOMP_ICALL(0x30007BA0u); /* 0x3000BC64: call 0x30007ba0 */ /* not lifted */
  10445     RECOMP_FLAGS_IN();
  10446     eax = MEM32(ebx + 0x8); /* 0x3000BC69: mov eax, dword ptr [ebx + 8] */
  10447     edx = ebp + (-0x3C); /* 0x3000BC6C: lea edx, [ebp - 0x3c] */
  10448     PUSH32(esp, edx); /* 0x3000BC6F: push edx */
  10449     PUSH32(esp, 1); /* 0x3000BC70: push 1 */
  10450     PUSH32(esp, eax); /* 0x3000BC72: push eax */
  10451     ecx = ebx; /* 0x3000BC73: mov ecx, ebx */
  10452     RECOMP_ICALL(0x30002E30u); /* 0x3000BC75: call 0x30002e30 */ /* not lifted */
  10453     RECOMP_FLAGS_IN();
  10454     eax = MEM32(ebp + (-0x48)); /* 0x3000BC7A: mov eax, dword ptr [ebp - 0x48] */
  10455     /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x3000BC7D: cmp eax, dword ptr [ebp - 0x40] */
  10456     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40)));
  10457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10458     _flag_k = FK_CMP;
  10459     MEM32(ebp + 0x1C) = eax; /* 0x3000BC80: mov dword ptr [ebp + 0x1c], eax */
  10460     RECOMP_BACKEDGE();
  10461     if (CMP_L(_flag_a, _flag_b)) goto L_3000B502; /* 0x3000BC83: jl 0x3000b502 */
  10462 L_3000BC89:
  10463     edi = POP32_VAL(esp); /* 0x3000BC89: pop edi */
  10464     esi = POP32_VAL(esp); /* 0x3000BC8A: pop esi */
  10465 L_3000BC8B:
  10466     ecx = ebp + (-0x3C); /* 0x3000BC8B: lea ecx, [ebp - 0x3c] */
  10467     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000BC8E: mov dword ptr [ebp - 4], 0xffffffff */
  10468     RECOMP_ICALL(0x30007AB0u); /* 0x3000BC95: call 0x30007ab0 */ /* not lifted */
  10469     RECOMP_FLAGS_IN();
  10470     ecx = MEM32(ebp + (-0xC)); /* 0x3000BC9A: mov ecx, dword ptr [ebp - 0xc] */
  10471     ebx = POP32_VAL(esp); /* 0x3000BC9D: pop ebx */
  10472     MEM32(FS_BASE + (0)) = ecx; /* 0x3000BC9E: mov dword ptr fs:[0], ecx */
  10473     esp = ebp; /* 0x3000BCA5: mov esp, ebp */
  10474     ebp = POP32_VAL(esp); /* 0x3000BCA7: pop ebp */
  10475     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x3000BCA8: ret 0x18 */
  10476     RECOMP_REGS_OUT();
  10477 }
  10478 
  10479 void sub_3000BCB0(void) {
  10480     int _fpu_cmp = 0;
  10481     uint32_t _cf = 0;
  10482     int _df = 1;
  10483     uint32_t _flag_k = FK_NONE;
  10484     uint32_t _flag_a = 0, _flag_b = 0;
  10485     uint32_t _itail_tgt = 0;
  10486     RECOMP_REGS_LOCALS
  10487     RECOMP_ENTER(0x3000BCB0u);
  10488 
  10489 L_3000BCB0:
  10490     PUSH32(esp, ebp); /* 0x3000BCB0: push ebp */
  10491     ebp = esp; /* 0x3000BCB1: mov ebp, esp */
  10492     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000BCB3: push -1 */
  10493     PUSH32(esp, 0x30018929u); /* 0x3000BCB5: push 0x30018929 */
  10494     eax = MEM32(FS_BASE + (0)); /* 0x3000BCBA: mov eax, dword ptr fs:[0] */
  10495     PUSH32(esp, eax); /* 0x3000BCC0: push eax */
  10496     MEM32(FS_BASE + (0)) = esp; /* 0x3000BCC1: mov dword ptr fs:[0], esp */
  10497     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2B4u);
  10498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10499     esp = esp - 0x2B4u; /* 0x3000BCC8: sub esp, 0x2b4 */
  10500     _flag_k = FK_CMP;
  10501     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3000BCCE: fld dword ptr [ebp + 0xc] */
  10502     PUSH32(esp, ebx); /* 0x3000BCD1: push ebx */
  10503     ebx = ecx; /* 0x3000BCD2: mov ebx, ecx */
  10504     _st[0] = -_st[0]; /* 0x3000BCD4: fchs  */
  10505     ecx = ebp + (-0x4C); /* 0x3000BCD6: lea ecx, [ebp - 0x4c] */
  10506     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000BCD9: fstp dword ptr [ebp - 0x10] */
  10507     RECOMP_ICALL(0x30007930u); /* 0x3000BCDC: call 0x30007930 */ /* not lifted */
  10508     RECOMP_FLAGS_IN();
  10509     ecx = MEM32(ebp + 0x1C); /* 0x3000BCE1: mov ecx, dword ptr [ebp + 0x1c] */
  10510     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10511     eax = 0; /* 0x3000BCE4: xor eax, eax */
  10512     _cf = 0;
  10513     _flag_k = FK_TEST;
  10514     /* cmp ecx, eax */ /* 0x3000BCE6: cmp ecx, eax */
  10515     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  10516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10517     _flag_k = FK_CMP;
  10518     MEM32(ebp + (-0x4)) = eax; /* 0x3000BCE8: mov dword ptr [ebp - 4], eax */
  10519     MEM32(ebp + (-0x14)) = eax; /* 0x3000BCEB: mov dword ptr [ebp - 0x14], eax */
  10520     if (CMP_LE(_flag_a, _flag_b)) goto L_3000C4F9; /* 0x3000BCEE: jle 0x3000c4f9 */
  10521 L_3000BCF4:
  10522     fp_push((double)(int32_t)MEM32(ebp + 0x1C)); /* 0x3000BCF4: fild dword ptr [ebp + 0x1c] */
  10523     ecx = MEM32(ebp + (-0x10)); /* 0x3000BCF7: mov ecx, dword ptr [ebp - 0x10] */
  10524     edx = ecx; /* 0x3000BCFA: mov edx, ecx */
  10525     MEM32(ebp + (-0x7C)) = ecx; /* 0x3000BCFC: mov dword ptr [ebp - 0x7c], ecx */
  10526     _st[0] = (double)*(float*)ADDR(0x30019290) / _st[0]; /* 0x3000BCFF: fdivr dword ptr [0x30019290] */
  10527     ecx = MEM32(ebp + 0xC); /* 0x3000BD05: mov ecx, dword ptr [ebp + 0xc] */
  10528     MEM32(ebp + (-0xE8)) = edx; /* 0x3000BD08: mov dword ptr [ebp - 0xe8], edx */
  10529     edx = ecx; /* 0x3000BD0E: mov edx, ecx */
  10530     MEM32(ebp + (-0xAC)) = ecx; /* 0x3000BD10: mov dword ptr [ebp - 0xac], ecx */
  10531     ecx = MEM32(ebp + (-0x10)); /* 0x3000BD16: mov ecx, dword ptr [ebp - 0x10] */
  10532     MEM32(ebp + (-0x58)) = edx; /* 0x3000BD19: mov dword ptr [ebp - 0x58], edx */
  10533     edx = ecx; /* 0x3000BD1C: mov edx, ecx */
  10534     MEM32(ebp + (-0x94)) = edx; /* 0x3000BD1E: mov dword ptr [ebp - 0x94], edx */
  10535     edx = MEM32(ebp + 0xC); /* 0x3000BD24: mov edx, dword ptr [ebp + 0xc] */
  10536     PUSH32(esp, esi); /* 0x3000BD27: push esi */
  10537     esi = MEM32(ebp + 0x18); /* 0x3000BD28: mov esi, dword ptr [ebp + 0x18] */
  10538     MEM32(ebp + (-0xDC)) = ecx; /* 0x3000BD2B: mov dword ptr [ebp - 0xdc], ecx */
  10539     MEM32(ebp + (-0xC4)) = ecx; /* 0x3000BD31: mov dword ptr [ebp - 0xc4], ecx */
  10540     ecx = edx; /* 0x3000BD37: mov ecx, edx */
  10541     PUSH32(esp, edi); /* 0x3000BD39: push edi */
  10542     edi = MEM32(ebp + 0x14); /* 0x3000BD3A: mov edi, dword ptr [ebp + 0x14] */
  10543     MEM32(ebp + (-0xE0)) = eax; /* 0x3000BD3D: mov dword ptr [ebp - 0xe0], eax */
  10544     MEM32(ebp + (-0xD8)) = eax; /* 0x3000BD43: mov dword ptr [ebp - 0xd8], eax */
  10545     MEM32(ebp + (-0x68)) = eax; /* 0x3000BD49: mov dword ptr [ebp - 0x68], eax */
  10546     MEM32(ebp + (-0x64)) = edx; /* 0x3000BD4C: mov dword ptr [ebp - 0x64], edx */
  10547     MEM32(ebp + (-0x60)) = eax; /* 0x3000BD4F: mov dword ptr [ebp - 0x60], eax */
  10548     MEM32(ebp + (-0x88)) = ecx; /* 0x3000BD52: mov dword ptr [ebp - 0x88], ecx */
  10549     MEM32(ebp + (-0xB8)) = edx; /* 0x3000BD58: mov dword ptr [ebp - 0xb8], edx */
  10550     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3000BD5E: fstp dword ptr [ebp - 0x50] */
  10551 L_3000BD61:
  10552     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x3000BD61: fild dword ptr [ebp - 0x14] */
  10553     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10554     eax = eax + 1; /* 0x3000BD64: inc eax */
  10555     _flag_k = FK_INC;
  10556     MEM32(ebp + (-0x14)) = eax; /* 0x3000BD65: mov dword ptr [ebp - 0x14], eax */
  10557     PUSH32(esp, 4); /* 0x3000BD68: push 4 */
  10558     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x3000BD6A: fmul dword ptr [ebp - 0x50] */
  10559     ecx = ebp + (-0x298); /* 0x3000BD6D: lea ecx, [ebp - 0x298] */
  10560     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x3000BD73: fild dword ptr [ebp - 0x14] */
  10561     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x3000BD76: fmul dword ptr [ebp - 0x50] */
  10562     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x18) = _v; } /* 0x3000BD79: fstp dword ptr [ebp + 0x18] */
  10563     fp_push(_st[0]); /* 0x3000BD7C: fld st(0) */
  10564     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3000BD7E: fsin  */
  10565     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000BD80: fmul dword ptr [ebp + 8] */
  10566     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x3000BD83: fstp dword ptr [ebp + 0x14] */
  10567     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3000BD86: fcos  */
  10568     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x3000BD88: fmul dword ptr [ebp + 0x10] */
  10569     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000BD8B: fstp dword ptr [ebp - 0x10] */
  10570     fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x3000BD8E: fld dword ptr [ebp + 0x18] */
  10571     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3000BD91: fsin  */
  10572     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000BD93: fmul dword ptr [ebp + 8] */
  10573     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3000BD96: fstp dword ptr [ebp + 0xc] */
  10574     fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x3000BD99: fld dword ptr [ebp + 0x18] */
  10575     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3000BD9C: fcos  */
  10576     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x3000BD9E: fmul dword ptr [ebp + 0x10] */
  10577     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x18) = _v; } /* 0x3000BDA1: fstp dword ptr [ebp + 0x18] */
  10578     RECOMP_ICALL(0x30007950u); /* 0x3000BDA4: call 0x30007950 */ /* not lifted */
  10579     RECOMP_FLAGS_IN();
  10580     PUSH32(esp, eax); /* 0x3000BDA9: push eax */
  10581     ecx = ebp + (-0x4C); /* 0x3000BDAA: lea ecx, [ebp - 0x4c] */
  10582     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3000BDAD: mov byte ptr [ebp - 4], 1 */
  10583     RECOMP_ICALL(0x300080D0u); /* 0x3000BDB1: call 0x300080d0 */ /* not lifted */
  10584     RECOMP_FLAGS_IN();
  10585     ecx = ebp + (-0x298); /* 0x3000BDB6: lea ecx, [ebp - 0x298] */
  10586     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3000BDBC: mov byte ptr [ebp - 4], 0 */
  10587     RECOMP_ICALL(0x30007AB0u); /* 0x3000BDC0: call 0x30007ab0 */ /* not lifted */
  10588     RECOMP_FLAGS_IN();
  10589     eax = MEM32(ebp + 0x14); /* 0x3000BDC5: mov eax, dword ptr [ebp + 0x14] */
  10590     ecx = MEM32(ebp + (-0x10)); /* 0x3000BDC8: mov ecx, dword ptr [ebp - 0x10] */
  10591     edx = eax; /* 0x3000BDCB: mov edx, eax */
  10592     MEM32(ebp + (-0x80)) = eax; /* 0x3000BDCD: mov dword ptr [ebp - 0x80], eax */
  10593     eax = MEM32(ebp + (-0x7C)); /* 0x3000BDD0: mov eax, dword ptr [ebp - 0x7c] */
  10594     MEM32(ebp + (-0x78)) = ecx; /* 0x3000BDD3: mov dword ptr [ebp - 0x78], ecx */
  10595     MEM32(ebp + (-0x15C)) = ecx; /* 0x3000BDD6: mov dword ptr [ebp - 0x15c], ecx */
  10596     PUSH32(esp, esi); /* 0x3000BDDC: push esi */
  10597     ecx = ebp + (-0x164); /* 0x3000BDDD: lea ecx, [ebp - 0x164] */
  10598     MEM32(ebp + (-0x164)) = edx; /* 0x3000BDE3: mov dword ptr [ebp - 0x164], edx */
  10599     MEM32(ebp + (-0x160)) = eax; /* 0x3000BDE9: mov dword ptr [ebp - 0x160], eax */
  10600     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000BDEF: call dword ptr [0x300190ec] */
  10601     RECOMP_FLAGS_IN();
  10602     edx = MEM32(eax); /* 0x3000BDF5: mov edx, dword ptr [eax] */
  10603     MEM32(ebp + (-0x260)) = edx; /* 0x3000BDF7: mov dword ptr [ebp - 0x260], edx */
  10604     ecx = MEM32(eax + 0x4); /* 0x3000BDFD: mov ecx, dword ptr [eax + 4] */
  10605     MEM32(ebp + (-0x25C)) = ecx; /* 0x3000BE00: mov dword ptr [ebp - 0x25c], ecx */
  10606     edx = MEM32(eax + 0x8); /* 0x3000BE06: mov edx, dword ptr [eax + 8] */
  10607     eax = edi; /* 0x3000BE09: mov eax, edi */
  10608     ecx = MEM32(eax); /* 0x3000BE0B: mov ecx, dword ptr [eax] */
  10609     MEM32(ebp + (-0x1DC)) = ecx; /* 0x3000BE0D: mov dword ptr [ebp - 0x1dc], ecx */
  10610     MEM32(ebp + (-0x258)) = edx; /* 0x3000BE13: mov dword ptr [ebp - 0x258], edx */
  10611     edx = MEM32(eax + 0x4); /* 0x3000BE19: mov edx, dword ptr [eax + 4] */
  10612     eax = MEM32(eax + 0x8); /* 0x3000BE1C: mov eax, dword ptr [eax + 8] */
  10613     ecx = ebp + (-0x260); /* 0x3000BE1F: lea ecx, [ebp - 0x260] */
  10614     PUSH32(esp, ecx); /* 0x3000BE25: push ecx */
  10615     ecx = ebp + (-0x1DC); /* 0x3000BE26: lea ecx, [ebp - 0x1dc] */
  10616     MEM32(ebp + (-0x1D8)) = edx; /* 0x3000BE2C: mov dword ptr [ebp - 0x1d8], edx */
  10617     MEM32(ebp + (-0x1D4)) = eax; /* 0x3000BE32: mov dword ptr [ebp - 0x1d4], eax */
  10618     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000BE38: call dword ptr [0x300190c4] */
  10619     RECOMP_FLAGS_IN();
  10620     edx = MEM32(eax); /* 0x3000BE3E: mov edx, dword ptr [eax] */
  10621     MEM32(ebp + (-0x11C)) = edx; /* 0x3000BE40: mov dword ptr [ebp - 0x11c], edx */
  10622     ecx = MEM32(eax + 0x4); /* 0x3000BE46: mov ecx, dword ptr [eax + 4] */
  10623     MEM32(ebp + (-0x118)) = ecx; /* 0x3000BE49: mov dword ptr [ebp - 0x118], ecx */
  10624     edx = MEM32(eax + 0x8); /* 0x3000BE4F: mov edx, dword ptr [eax + 8] */
  10625     eax = ebp + (-0x11C); /* 0x3000BE52: lea eax, [ebp - 0x11c] */
  10626     PUSH32(esp, eax); /* 0x3000BE58: push eax */
  10627     PUSH32(esp, 0); /* 0x3000BE59: push 0 */
  10628     ecx = ebp + (-0x4C); /* 0x3000BE5B: lea ecx, [ebp - 0x4c] */
  10629     MEM32(ebp + (-0x114)) = edx; /* 0x3000BE5E: mov dword ptr [ebp - 0x114], edx */
  10630     RECOMP_ICALL(0x30007BA0u); /* 0x3000BE64: call 0x30007ba0 */ /* not lifted */
  10631     RECOMP_FLAGS_IN();
  10632     ecx = MEM32(ebp + 0xC); /* 0x3000BE69: mov ecx, dword ptr [ebp + 0xc] */
  10633     edx = MEM32(ebp + 0x18); /* 0x3000BE6C: mov edx, dword ptr [ebp + 0x18] */
  10634     eax = ecx; /* 0x3000BE6F: mov eax, ecx */
  10635     MEM32(ebp + (-0xEC)) = ecx; /* 0x3000BE71: mov dword ptr [ebp - 0xec], ecx */
  10636     ecx = MEM32(ebp + (-0xE8)); /* 0x3000BE77: mov ecx, dword ptr [ebp - 0xe8] */
  10637     MEM32(ebp + (-0xE4)) = edx; /* 0x3000BE7D: mov dword ptr [ebp - 0xe4], edx */
  10638     MEM32(ebp + (-0x284)) = eax; /* 0x3000BE83: mov dword ptr [ebp - 0x284], eax */
  10639     MEM32(ebp + (-0x280)) = ecx; /* 0x3000BE89: mov dword ptr [ebp - 0x280], ecx */
  10640     PUSH32(esp, esi); /* 0x3000BE8F: push esi */
  10641     ecx = ebp + (-0x284); /* 0x3000BE90: lea ecx, [ebp - 0x284] */
  10642     MEM32(ebp + (-0x27C)) = edx; /* 0x3000BE96: mov dword ptr [ebp - 0x27c], edx */
  10643     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000BE9C: call dword ptr [0x300190ec] */
  10644     RECOMP_FLAGS_IN();
  10645     ecx = MEM32(eax); /* 0x3000BEA2: mov ecx, dword ptr [eax] */
  10646     MEM32(ebp + (-0x134)) = ecx; /* 0x3000BEA4: mov dword ptr [ebp - 0x134], ecx */
  10647     edx = MEM32(eax + 0x4); /* 0x3000BEAA: mov edx, dword ptr [eax + 4] */
  10648     MEM32(ebp + (-0x130)) = edx; /* 0x3000BEAD: mov dword ptr [ebp - 0x130], edx */
  10649     eax = MEM32(eax + 0x8); /* 0x3000BEB3: mov eax, dword ptr [eax + 8] */
  10650     ecx = edi; /* 0x3000BEB6: mov ecx, edi */
  10651     edx = MEM32(ecx); /* 0x3000BEB8: mov edx, dword ptr [ecx] */
  10652     MEM32(ebp + (-0x12C)) = eax; /* 0x3000BEBA: mov dword ptr [ebp - 0x12c], eax */
  10653     eax = MEM32(ecx + 0x4); /* 0x3000BEC0: mov eax, dword ptr [ecx + 4] */
  10654     ecx = MEM32(ecx + 0x8); /* 0x3000BEC3: mov ecx, dword ptr [ecx + 8] */
  10655     MEM32(ebp + (-0x1F4)) = edx; /* 0x3000BEC6: mov dword ptr [ebp - 0x1f4], edx */
  10656     edx = ebp + (-0x134); /* 0x3000BECC: lea edx, [ebp - 0x134] */
  10657     MEM32(ebp + (-0x1EC)) = ecx; /* 0x3000BED2: mov dword ptr [ebp - 0x1ec], ecx */
  10658     PUSH32(esp, edx); /* 0x3000BED8: push edx */
  10659     ecx = ebp + (-0x1F4); /* 0x3000BED9: lea ecx, [ebp - 0x1f4] */
  10660     MEM32(ebp + (-0x1F0)) = eax; /* 0x3000BEDF: mov dword ptr [ebp - 0x1f0], eax */
  10661     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000BEE5: call dword ptr [0x300190c4] */
  10662     RECOMP_FLAGS_IN();
  10663     ecx = MEM32(eax); /* 0x3000BEEB: mov ecx, dword ptr [eax] */
  10664     MEM32(ebp + (-0x14C)) = ecx; /* 0x3000BEED: mov dword ptr [ebp - 0x14c], ecx */
  10665     edx = MEM32(eax + 0x4); /* 0x3000BEF3: mov edx, dword ptr [eax + 4] */
  10666     ecx = ebp + (-0x14C); /* 0x3000BEF6: lea ecx, [ebp - 0x14c] */
  10667     PUSH32(esp, ecx); /* 0x3000BEFC: push ecx */
  10668     MEM32(ebp + (-0x148)) = edx; /* 0x3000BEFD: mov dword ptr [ebp - 0x148], edx */
  10669     eax = MEM32(eax + 0x8); /* 0x3000BF03: mov eax, dword ptr [eax + 8] */
  10670     PUSH32(esp, 1); /* 0x3000BF06: push 1 */
  10671     ecx = ebp + (-0x4C); /* 0x3000BF08: lea ecx, [ebp - 0x4c] */
  10672     MEM32(ebp + (-0x144)) = eax; /* 0x3000BF0B: mov dword ptr [ebp - 0x144], eax */
  10673     RECOMP_ICALL(0x30007BA0u); /* 0x3000BF11: call 0x30007ba0 */ /* not lifted */
  10674     RECOMP_FLAGS_IN();
  10675     edx = MEM32(ebp + 0xC); /* 0x3000BF16: mov edx, dword ptr [ebp + 0xc] */
  10676     eax = MEM32(ebp + 0x18); /* 0x3000BF19: mov eax, dword ptr [ebp + 0x18] */
  10677     ecx = edx; /* 0x3000BF1C: mov ecx, edx */
  10678     MEM32(ebp + (-0xB0)) = edx; /* 0x3000BF1E: mov dword ptr [ebp - 0xb0], edx */
  10679     edx = MEM32(ebp + (-0xAC)); /* 0x3000BF24: mov edx, dword ptr [ebp - 0xac] */
  10680     MEM32(ebp + (-0x254)) = ecx; /* 0x3000BF2A: mov dword ptr [ebp - 0x254], ecx */
  10681     PUSH32(esp, esi); /* 0x3000BF30: push esi */
  10682     ecx = ebp + (-0x254); /* 0x3000BF31: lea ecx, [ebp - 0x254] */
  10683     MEM32(ebp + (-0xA8)) = eax; /* 0x3000BF37: mov dword ptr [ebp - 0xa8], eax */
  10684     MEM32(ebp + (-0x250)) = edx; /* 0x3000BF3D: mov dword ptr [ebp - 0x250], edx */
  10685     MEM32(ebp + (-0x24C)) = eax; /* 0x3000BF43: mov dword ptr [ebp - 0x24c], eax */
  10686     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000BF49: call dword ptr [0x300190ec] */
  10687     RECOMP_FLAGS_IN();
  10688     ecx = MEM32(eax); /* 0x3000BF4F: mov ecx, dword ptr [eax] */
  10689     MEM32(ebp + (-0xF8)) = ecx; /* 0x3000BF51: mov dword ptr [ebp - 0xf8], ecx */
  10690     edx = MEM32(eax + 0x4); /* 0x3000BF57: mov edx, dword ptr [eax + 4] */
  10691     MEM32(ebp + (-0xF4)) = edx; /* 0x3000BF5A: mov dword ptr [ebp - 0xf4], edx */
  10692     eax = MEM32(eax + 0x8); /* 0x3000BF60: mov eax, dword ptr [eax + 8] */
  10693     ecx = edi; /* 0x3000BF63: mov ecx, edi */
  10694     edx = MEM32(ecx); /* 0x3000BF65: mov edx, dword ptr [ecx] */
  10695     MEM32(ebp + (-0xF0)) = eax; /* 0x3000BF67: mov dword ptr [ebp - 0xf0], eax */
  10696     eax = MEM32(ecx + 0x4); /* 0x3000BF6D: mov eax, dword ptr [ecx + 4] */
  10697     ecx = MEM32(ecx + 0x8); /* 0x3000BF70: mov ecx, dword ptr [ecx + 8] */
  10698     MEM32(ebp + (-0x20C)) = edx; /* 0x3000BF73: mov dword ptr [ebp - 0x20c], edx */
  10699     edx = ebp + (-0xF8); /* 0x3000BF79: lea edx, [ebp - 0xf8] */
  10700     MEM32(ebp + (-0x204)) = ecx; /* 0x3000BF7F: mov dword ptr [ebp - 0x204], ecx */
  10701     PUSH32(esp, edx); /* 0x3000BF85: push edx */
  10702     ecx = ebp + (-0x20C); /* 0x3000BF86: lea ecx, [ebp - 0x20c] */
  10703     MEM32(ebp + (-0x208)) = eax; /* 0x3000BF8C: mov dword ptr [ebp - 0x208], eax */
  10704     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000BF92: call dword ptr [0x300190c4] */
  10705     RECOMP_FLAGS_IN();
  10706     ecx = MEM32(eax); /* 0x3000BF98: mov ecx, dword ptr [eax] */
  10707     MEM32(ebp + (-0x17C)) = ecx; /* 0x3000BF9A: mov dword ptr [ebp - 0x17c], ecx */
  10708     edx = MEM32(eax + 0x4); /* 0x3000BFA0: mov edx, dword ptr [eax + 4] */
  10709     ecx = ebp + (-0x17C); /* 0x3000BFA3: lea ecx, [ebp - 0x17c] */
  10710     PUSH32(esp, ecx); /* 0x3000BFA9: push ecx */
  10711     MEM32(ebp + (-0x178)) = edx; /* 0x3000BFAA: mov dword ptr [ebp - 0x178], edx */
  10712     eax = MEM32(eax + 0x8); /* 0x3000BFB0: mov eax, dword ptr [eax + 8] */
  10713     PUSH32(esp, 2); /* 0x3000BFB3: push 2 */
  10714     ecx = ebp + (-0x4C); /* 0x3000BFB5: lea ecx, [ebp - 0x4c] */
  10715     MEM32(ebp + (-0x174)) = eax; /* 0x3000BFB8: mov dword ptr [ebp - 0x174], eax */
  10716     RECOMP_ICALL(0x30007BA0u); /* 0x3000BFBE: call 0x30007ba0 */ /* not lifted */
  10717     RECOMP_FLAGS_IN();
  10718     edx = MEM32(ebp + 0x14); /* 0x3000BFC3: mov edx, dword ptr [ebp + 0x14] */
  10719     eax = MEM32(ebp + (-0x10)); /* 0x3000BFC6: mov eax, dword ptr [ebp - 0x10] */
  10720     ecx = edx; /* 0x3000BFC9: mov ecx, edx */
  10721     MEM32(ebp + (-0x5C)) = edx; /* 0x3000BFCB: mov dword ptr [ebp - 0x5c], edx */
  10722     edx = MEM32(ebp + (-0x58)); /* 0x3000BFCE: mov edx, dword ptr [ebp - 0x58] */
  10723     MEM32(ebp + (-0x54)) = eax; /* 0x3000BFD1: mov dword ptr [ebp - 0x54], eax */
  10724     MEM32(ebp + (-0x278)) = ecx; /* 0x3000BFD4: mov dword ptr [ebp - 0x278], ecx */
  10725     MEM32(ebp + (-0x274)) = edx; /* 0x3000BFDA: mov dword ptr [ebp - 0x274], edx */
  10726     MEM32(ebp + (-0x270)) = eax; /* 0x3000BFE0: mov dword ptr [ebp - 0x270], eax */
  10727     PUSH32(esp, esi); /* 0x3000BFE6: push esi */
  10728     ecx = ebp + (-0x278); /* 0x3000BFE7: lea ecx, [ebp - 0x278] */
  10729     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000BFED: call dword ptr [0x300190ec] */
  10730     RECOMP_FLAGS_IN();
  10731     ecx = MEM32(eax); /* 0x3000BFF3: mov ecx, dword ptr [eax] */
  10732     MEM32(ebp + (-0x194)) = ecx; /* 0x3000BFF5: mov dword ptr [ebp - 0x194], ecx */
  10733     edx = MEM32(eax + 0x4); /* 0x3000BFFB: mov edx, dword ptr [eax + 4] */
  10734     MEM32(ebp + (-0x190)) = edx; /* 0x3000BFFE: mov dword ptr [ebp - 0x190], edx */
  10735     eax = MEM32(eax + 0x8); /* 0x3000C004: mov eax, dword ptr [eax + 8] */
  10736     ecx = edi; /* 0x3000C007: mov ecx, edi */
  10737     edx = MEM32(ecx); /* 0x3000C009: mov edx, dword ptr [ecx] */
  10738     MEM32(ebp + (-0x18C)) = eax; /* 0x3000C00B: mov dword ptr [ebp - 0x18c], eax */
  10739     eax = MEM32(ecx + 0x4); /* 0x3000C011: mov eax, dword ptr [ecx + 4] */
  10740     ecx = MEM32(ecx + 0x8); /* 0x3000C014: mov ecx, dword ptr [ecx + 8] */
  10741     MEM32(ebp + (-0x224)) = edx; /* 0x3000C017: mov dword ptr [ebp - 0x224], edx */
  10742     edx = ebp + (-0x194); /* 0x3000C01D: lea edx, [ebp - 0x194] */
  10743     MEM32(ebp + (-0x21C)) = ecx; /* 0x3000C023: mov dword ptr [ebp - 0x21c], ecx */
  10744     PUSH32(esp, edx); /* 0x3000C029: push edx */
  10745     ecx = ebp + (-0x224); /* 0x3000C02A: lea ecx, [ebp - 0x224] */
  10746     MEM32(ebp + (-0x220)) = eax; /* 0x3000C030: mov dword ptr [ebp - 0x220], eax */
  10747     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C036: call dword ptr [0x300190c4] */
  10748     RECOMP_FLAGS_IN();
  10749     ecx = MEM32(eax); /* 0x3000C03C: mov ecx, dword ptr [eax] */
  10750     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3000C03E: mov dword ptr [ebp - 0x1ac], ecx */
  10751     edx = MEM32(eax + 0x4); /* 0x3000C044: mov edx, dword ptr [eax + 4] */
  10752     ecx = ebp + (-0x1AC); /* 0x3000C047: lea ecx, [ebp - 0x1ac] */
  10753     PUSH32(esp, ecx); /* 0x3000C04D: push ecx */
  10754     MEM32(ebp + (-0x1A8)) = edx; /* 0x3000C04E: mov dword ptr [ebp - 0x1a8], edx */
  10755     eax = MEM32(eax + 0x8); /* 0x3000C054: mov eax, dword ptr [eax + 8] */
  10756     PUSH32(esp, 3); /* 0x3000C057: push 3 */
  10757     ecx = ebp + (-0x4C); /* 0x3000C059: lea ecx, [ebp - 0x4c] */
  10758     MEM32(ebp + (-0x1A4)) = eax; /* 0x3000C05C: mov dword ptr [ebp - 0x1a4], eax */
  10759     RECOMP_ICALL(0x30007BA0u); /* 0x3000C062: call 0x30007ba0 */ /* not lifted */
  10760     RECOMP_FLAGS_IN();
  10761     eax = MEM32(ebx + 0x8); /* 0x3000C067: mov eax, dword ptr [ebx + 8] */
  10762     edx = ebp + (-0x4C); /* 0x3000C06A: lea edx, [ebp - 0x4c] */
  10763     PUSH32(esp, edx); /* 0x3000C06D: push edx */
  10764     PUSH32(esp, eax); /* 0x3000C06E: push eax */
  10765     ecx = ebx; /* 0x3000C06F: mov ecx, ebx */
  10766     RECOMP_ICALL(0x30002C40u); /* 0x3000C071: call 0x30002c40 */ /* not lifted */
  10767     RECOMP_FLAGS_IN();
  10768     PUSH32(esp, 3); /* 0x3000C076: push 3 */
  10769     ecx = ebp + (-0x2AC); /* 0x3000C078: lea ecx, [ebp - 0x2ac] */
  10770     RECOMP_ICALL(0x30007950u); /* 0x3000C07E: call 0x30007950 */ /* not lifted */
  10771     RECOMP_FLAGS_IN();
  10772     PUSH32(esp, eax); /* 0x3000C083: push eax */
  10773     ecx = ebp + (-0x4C); /* 0x3000C084: lea ecx, [ebp - 0x4c] */
  10774     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3000C087: mov byte ptr [ebp - 4], 2 */
  10775     RECOMP_ICALL(0x300080D0u); /* 0x3000C08B: call 0x300080d0 */ /* not lifted */
  10776     RECOMP_FLAGS_IN();
  10777     ecx = ebp + (-0x2AC); /* 0x3000C090: lea ecx, [ebp - 0x2ac] */
  10778     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3000C096: mov byte ptr [ebp - 4], 0 */
  10779     RECOMP_ICALL(0x30007AB0u); /* 0x3000C09A: call 0x30007ab0 */ /* not lifted */
  10780     RECOMP_FLAGS_IN();
  10781     ecx = MEM32(ebp + (-0xDC)); /* 0x3000C09F: mov ecx, dword ptr [ebp - 0xdc] */
  10782     eax = MEM32(ebp + (-0xE0)); /* 0x3000C0A5: mov eax, dword ptr [ebp - 0xe0] */
  10783     edx = MEM32(ebp + (-0xD8)); /* 0x3000C0AB: mov edx, dword ptr [ebp - 0xd8] */
  10784     MEM32(ebp + (-0x268)) = ecx; /* 0x3000C0B1: mov dword ptr [ebp - 0x268], ecx */
  10785     PUSH32(esp, esi); /* 0x3000C0B7: push esi */
  10786     ecx = ebp + (-0x26C); /* 0x3000C0B8: lea ecx, [ebp - 0x26c] */
  10787     MEM32(ebp + (-0x26C)) = eax; /* 0x3000C0BE: mov dword ptr [ebp - 0x26c], eax */
  10788     MEM32(ebp + (-0x264)) = edx; /* 0x3000C0C4: mov dword ptr [ebp - 0x264], edx */
  10789     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C0CA: call dword ptr [0x300190ec] */
  10790     RECOMP_FLAGS_IN();
  10791     ecx = MEM32(eax); /* 0x3000C0D0: mov ecx, dword ptr [eax] */
  10792     MEM32(ebp + (-0x1C4)) = ecx; /* 0x3000C0D2: mov dword ptr [ebp - 0x1c4], ecx */
  10793     edx = MEM32(eax + 0x4); /* 0x3000C0D8: mov edx, dword ptr [eax + 4] */
  10794     MEM32(ebp + (-0x1C0)) = edx; /* 0x3000C0DB: mov dword ptr [ebp - 0x1c0], edx */
  10795     eax = MEM32(eax + 0x8); /* 0x3000C0E1: mov eax, dword ptr [eax + 8] */
  10796     ecx = edi; /* 0x3000C0E4: mov ecx, edi */
  10797     edx = MEM32(ecx); /* 0x3000C0E6: mov edx, dword ptr [ecx] */
  10798     MEM32(ebp + (-0x1BC)) = eax; /* 0x3000C0E8: mov dword ptr [ebp - 0x1bc], eax */
  10799     eax = MEM32(ecx + 0x4); /* 0x3000C0EE: mov eax, dword ptr [ecx + 4] */
  10800     ecx = MEM32(ecx + 0x8); /* 0x3000C0F1: mov ecx, dword ptr [ecx + 8] */
  10801     MEM32(ebp + (-0x23C)) = edx; /* 0x3000C0F4: mov dword ptr [ebp - 0x23c], edx */
  10802     edx = ebp + (-0x1C4); /* 0x3000C0FA: lea edx, [ebp - 0x1c4] */
  10803     MEM32(ebp + (-0x234)) = ecx; /* 0x3000C100: mov dword ptr [ebp - 0x234], ecx */
  10804     PUSH32(esp, edx); /* 0x3000C106: push edx */
  10805     ecx = ebp + (-0x23C); /* 0x3000C107: lea ecx, [ebp - 0x23c] */
  10806     MEM32(ebp + (-0x238)) = eax; /* 0x3000C10D: mov dword ptr [ebp - 0x238], eax */
  10807     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C113: call dword ptr [0x300190c4] */
  10808     RECOMP_FLAGS_IN();
  10809     ecx = MEM32(eax); /* 0x3000C119: mov ecx, dword ptr [eax] */
  10810     MEM32(ebp + (-0x104)) = ecx; /* 0x3000C11B: mov dword ptr [ebp - 0x104], ecx */
  10811     edx = MEM32(eax + 0x4); /* 0x3000C121: mov edx, dword ptr [eax + 4] */
  10812     MEM32(ebp + (-0x100)) = edx; /* 0x3000C124: mov dword ptr [ebp - 0x100], edx */
  10813     eax = MEM32(eax + 0x8); /* 0x3000C12A: mov eax, dword ptr [eax + 8] */
  10814     MEM32(ebp + (-0xFC)) = eax; /* 0x3000C12D: mov dword ptr [ebp - 0xfc], eax */
  10815     ecx = ebp + (-0x104); /* 0x3000C133: lea ecx, [ebp - 0x104] */
  10816     PUSH32(esp, ecx); /* 0x3000C139: push ecx */
  10817     PUSH32(esp, 0); /* 0x3000C13A: push 0 */
  10818     ecx = ebp + (-0x4C); /* 0x3000C13C: lea ecx, [ebp - 0x4c] */
  10819     RECOMP_ICALL(0x30007BA0u); /* 0x3000C13F: call 0x30007ba0 */ /* not lifted */
  10820     RECOMP_FLAGS_IN();
  10821     edx = MEM32(ebp + 0xC); /* 0x3000C144: mov edx, dword ptr [ebp + 0xc] */
  10822     eax = MEM32(ebp + 0x18); /* 0x3000C147: mov eax, dword ptr [ebp + 0x18] */
  10823     ecx = edx; /* 0x3000C14A: mov ecx, edx */
  10824     MEM32(ebp + (-0x98)) = edx; /* 0x3000C14C: mov dword ptr [ebp - 0x98], edx */
  10825     edx = MEM32(ebp + (-0x94)); /* 0x3000C152: mov edx, dword ptr [ebp - 0x94] */
  10826     MEM32(ebp + (-0x110)) = ecx; /* 0x3000C158: mov dword ptr [ebp - 0x110], ecx */
  10827     PUSH32(esp, esi); /* 0x3000C15E: push esi */
  10828     ecx = ebp + (-0x110); /* 0x3000C15F: lea ecx, [ebp - 0x110] */
  10829     MEM32(ebp + (-0x90)) = eax; /* 0x3000C165: mov dword ptr [ebp - 0x90], eax */
  10830     MEM32(ebp + (-0x10C)) = edx; /* 0x3000C16B: mov dword ptr [ebp - 0x10c], edx */
  10831     MEM32(ebp + (-0x108)) = eax; /* 0x3000C171: mov dword ptr [ebp - 0x108], eax */
  10832     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C177: call dword ptr [0x300190ec] */
  10833     RECOMP_FLAGS_IN();
  10834     ecx = MEM32(eax); /* 0x3000C17D: mov ecx, dword ptr [eax] */
  10835     MEM32(ebp + (-0x128)) = ecx; /* 0x3000C17F: mov dword ptr [ebp - 0x128], ecx */
  10836     edx = MEM32(eax + 0x4); /* 0x3000C185: mov edx, dword ptr [eax + 4] */
  10837     MEM32(ebp + (-0x124)) = edx; /* 0x3000C188: mov dword ptr [ebp - 0x124], edx */
  10838     eax = MEM32(eax + 0x8); /* 0x3000C18E: mov eax, dword ptr [eax + 8] */
  10839     ecx = edi; /* 0x3000C191: mov ecx, edi */
  10840     edx = MEM32(ecx); /* 0x3000C193: mov edx, dword ptr [ecx] */
  10841     MEM32(ebp + (-0x120)) = eax; /* 0x3000C195: mov dword ptr [ebp - 0x120], eax */
  10842     eax = MEM32(ecx + 0x4); /* 0x3000C19B: mov eax, dword ptr [ecx + 4] */
  10843     ecx = MEM32(ecx + 0x8); /* 0x3000C19E: mov ecx, dword ptr [ecx + 8] */
  10844     MEM32(ebp + (-0x140)) = edx; /* 0x3000C1A1: mov dword ptr [ebp - 0x140], edx */
  10845     edx = ebp + (-0x128); /* 0x3000C1A7: lea edx, [ebp - 0x128] */
  10846     MEM32(ebp + (-0x138)) = ecx; /* 0x3000C1AD: mov dword ptr [ebp - 0x138], ecx */
  10847     PUSH32(esp, edx); /* 0x3000C1B3: push edx */
  10848     ecx = ebp + (-0x140); /* 0x3000C1B4: lea ecx, [ebp - 0x140] */
  10849     MEM32(ebp + (-0x13C)) = eax; /* 0x3000C1BA: mov dword ptr [ebp - 0x13c], eax */
  10850     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C1C0: call dword ptr [0x300190c4] */
  10851     RECOMP_FLAGS_IN();
  10852     ecx = MEM32(eax); /* 0x3000C1C6: mov ecx, dword ptr [eax] */
  10853     MEM32(ebp + (-0x158)) = ecx; /* 0x3000C1C8: mov dword ptr [ebp - 0x158], ecx */
  10854     edx = MEM32(eax + 0x4); /* 0x3000C1CE: mov edx, dword ptr [eax + 4] */
  10855     ecx = ebp + (-0x158); /* 0x3000C1D1: lea ecx, [ebp - 0x158] */
  10856     PUSH32(esp, ecx); /* 0x3000C1D7: push ecx */
  10857     MEM32(ebp + (-0x154)) = edx; /* 0x3000C1D8: mov dword ptr [ebp - 0x154], edx */
  10858     eax = MEM32(eax + 0x8); /* 0x3000C1DE: mov eax, dword ptr [eax + 8] */
  10859     PUSH32(esp, 1); /* 0x3000C1E1: push 1 */
  10860     ecx = ebp + (-0x4C); /* 0x3000C1E3: lea ecx, [ebp - 0x4c] */
  10861     MEM32(ebp + (-0x150)) = eax; /* 0x3000C1E6: mov dword ptr [ebp - 0x150], eax */
  10862     RECOMP_ICALL(0x30007BA0u); /* 0x3000C1EC: call 0x30007ba0 */ /* not lifted */
  10863     RECOMP_FLAGS_IN();
  10864     edx = MEM32(ebp + 0x14); /* 0x3000C1F1: mov edx, dword ptr [ebp + 0x14] */
  10865     eax = MEM32(ebp + (-0x10)); /* 0x3000C1F4: mov eax, dword ptr [ebp - 0x10] */
  10866     ecx = edx; /* 0x3000C1F7: mov ecx, edx */
  10867     MEM32(ebp + (-0xC8)) = edx; /* 0x3000C1F9: mov dword ptr [ebp - 0xc8], edx */
  10868     edx = MEM32(ebp + (-0xC4)); /* 0x3000C1FF: mov edx, dword ptr [ebp - 0xc4] */
  10869     MEM32(ebp + (-0x170)) = ecx; /* 0x3000C205: mov dword ptr [ebp - 0x170], ecx */
  10870     PUSH32(esp, esi); /* 0x3000C20B: push esi */
  10871     ecx = ebp + (-0x170); /* 0x3000C20C: lea ecx, [ebp - 0x170] */
  10872     MEM32(ebp + (-0xC0)) = eax; /* 0x3000C212: mov dword ptr [ebp - 0xc0], eax */
  10873     MEM32(ebp + (-0x16C)) = edx; /* 0x3000C218: mov dword ptr [ebp - 0x16c], edx */
  10874     MEM32(ebp + (-0x168)) = eax; /* 0x3000C21E: mov dword ptr [ebp - 0x168], eax */
  10875     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C224: call dword ptr [0x300190ec] */
  10876     RECOMP_FLAGS_IN();
  10877     ecx = MEM32(eax); /* 0x3000C22A: mov ecx, dword ptr [eax] */
  10878     MEM32(ebp + (-0x188)) = ecx; /* 0x3000C22C: mov dword ptr [ebp - 0x188], ecx */
  10879     edx = MEM32(eax + 0x4); /* 0x3000C232: mov edx, dword ptr [eax + 4] */
  10880     MEM32(ebp + (-0x184)) = edx; /* 0x3000C235: mov dword ptr [ebp - 0x184], edx */
  10881     eax = MEM32(eax + 0x8); /* 0x3000C23B: mov eax, dword ptr [eax + 8] */
  10882     ecx = edi; /* 0x3000C23E: mov ecx, edi */
  10883     edx = MEM32(ecx); /* 0x3000C240: mov edx, dword ptr [ecx] */
  10884     MEM32(ebp + (-0x180)) = eax; /* 0x3000C242: mov dword ptr [ebp - 0x180], eax */
  10885     eax = MEM32(ecx + 0x4); /* 0x3000C248: mov eax, dword ptr [ecx + 4] */
  10886     ecx = MEM32(ecx + 0x8); /* 0x3000C24B: mov ecx, dword ptr [ecx + 8] */
  10887     MEM32(ebp + (-0x1A0)) = edx; /* 0x3000C24E: mov dword ptr [ebp - 0x1a0], edx */
  10888     edx = ebp + (-0x188); /* 0x3000C254: lea edx, [ebp - 0x188] */
  10889     MEM32(ebp + (-0x198)) = ecx; /* 0x3000C25A: mov dword ptr [ebp - 0x198], ecx */
  10890     PUSH32(esp, edx); /* 0x3000C260: push edx */
  10891     ecx = ebp + (-0x1A0); /* 0x3000C261: lea ecx, [ebp - 0x1a0] */
  10892     MEM32(ebp + (-0x19C)) = eax; /* 0x3000C267: mov dword ptr [ebp - 0x19c], eax */
  10893     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C26D: call dword ptr [0x300190c4] */
  10894     RECOMP_FLAGS_IN();
  10895     ecx = MEM32(eax); /* 0x3000C273: mov ecx, dword ptr [eax] */
  10896     MEM32(ebp + (-0x1B8)) = ecx; /* 0x3000C275: mov dword ptr [ebp - 0x1b8], ecx */
  10897     edx = MEM32(eax + 0x4); /* 0x3000C27B: mov edx, dword ptr [eax + 4] */
  10898     MEM32(ebp + (-0x1B4)) = edx; /* 0x3000C27E: mov dword ptr [ebp - 0x1b4], edx */
  10899     eax = MEM32(eax + 0x8); /* 0x3000C284: mov eax, dword ptr [eax + 8] */
  10900     ecx = ebp + (-0x1B8); /* 0x3000C287: lea ecx, [ebp - 0x1b8] */
  10901     MEM32(ebp + (-0x1B0)) = eax; /* 0x3000C28D: mov dword ptr [ebp - 0x1b0], eax */
  10902     PUSH32(esp, ecx); /* 0x3000C293: push ecx */
  10903     PUSH32(esp, 2); /* 0x3000C294: push 2 */
  10904     ecx = ebp + (-0x4C); /* 0x3000C296: lea ecx, [ebp - 0x4c] */
  10905     RECOMP_ICALL(0x30007BA0u); /* 0x3000C299: call 0x30007ba0 */ /* not lifted */
  10906     RECOMP_FLAGS_IN();
  10907     eax = MEM32(ebx + 0x8); /* 0x3000C29E: mov eax, dword ptr [ebx + 8] */
  10908     edx = ebp + (-0x4C); /* 0x3000C2A1: lea edx, [ebp - 0x4c] */
  10909     PUSH32(esp, edx); /* 0x3000C2A4: push edx */
  10910     PUSH32(esp, eax); /* 0x3000C2A5: push eax */
  10911     ecx = ebx; /* 0x3000C2A6: mov ecx, ebx */
  10912     RECOMP_ICALL(0x30002C40u); /* 0x3000C2A8: call 0x30002c40 */ /* not lifted */
  10913     RECOMP_FLAGS_IN();
  10914     PUSH32(esp, 3); /* 0x3000C2AD: push 3 */
  10915     ecx = ebp + (-0x2C0); /* 0x3000C2AF: lea ecx, [ebp - 0x2c0] */
  10916     RECOMP_ICALL(0x30007950u); /* 0x3000C2B5: call 0x30007950 */ /* not lifted */
  10917     RECOMP_FLAGS_IN();
  10918     PUSH32(esp, eax); /* 0x3000C2BA: push eax */
  10919     ecx = ebp + (-0x4C); /* 0x3000C2BB: lea ecx, [ebp - 0x4c] */
  10920     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3000C2BE: mov byte ptr [ebp - 4], 3 */
  10921     RECOMP_ICALL(0x300080D0u); /* 0x3000C2C2: call 0x300080d0 */ /* not lifted */
  10922     RECOMP_FLAGS_IN();
  10923     ecx = ebp + (-0x2C0); /* 0x3000C2C7: lea ecx, [ebp - 0x2c0] */
  10924     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3000C2CD: mov byte ptr [ebp - 4], 0 */
  10925     RECOMP_ICALL(0x30007AB0u); /* 0x3000C2D1: call 0x30007ab0 */ /* not lifted */
  10926     RECOMP_FLAGS_IN();
  10927     ecx = MEM32(ebp + (-0x64)); /* 0x3000C2D6: mov ecx, dword ptr [ebp - 0x64] */
  10928     eax = MEM32(ebp + (-0x68)); /* 0x3000C2D9: mov eax, dword ptr [ebp - 0x68] */
  10929     edx = MEM32(ebp + (-0x60)); /* 0x3000C2DC: mov edx, dword ptr [ebp - 0x60] */
  10930     MEM32(ebp + (-0x1CC)) = ecx; /* 0x3000C2DF: mov dword ptr [ebp - 0x1cc], ecx */
  10931     PUSH32(esp, esi); /* 0x3000C2E5: push esi */
  10932     ecx = ebp + (-0x1D0); /* 0x3000C2E6: lea ecx, [ebp - 0x1d0] */
  10933     MEM32(ebp + (-0x1D0)) = eax; /* 0x3000C2EC: mov dword ptr [ebp - 0x1d0], eax */
  10934     MEM32(ebp + (-0x1C8)) = edx; /* 0x3000C2F2: mov dword ptr [ebp - 0x1c8], edx */
  10935     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C2F8: call dword ptr [0x300190ec] */
  10936     RECOMP_FLAGS_IN();
  10937     ecx = MEM32(eax); /* 0x3000C2FE: mov ecx, dword ptr [eax] */
  10938     edx = MEM32(eax + 0x4); /* 0x3000C300: mov edx, dword ptr [eax + 4] */
  10939     eax = MEM32(eax + 0x8); /* 0x3000C303: mov eax, dword ptr [eax + 8] */
  10940     MEM32(ebp + (-0x74)) = ecx; /* 0x3000C306: mov dword ptr [ebp - 0x74], ecx */
  10941     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x3000C309: fld dword ptr [ebp - 0x74] */
  10942     MEM32(ebp + (-0x70)) = edx; /* 0x3000C30C: mov dword ptr [ebp - 0x70], edx */
  10943     ecx = edi; /* 0x3000C30F: mov ecx, edi */
  10944     edx = MEM32(ecx); /* 0x3000C311: mov edx, dword ptr [ecx] */
  10945     MEM32(ebp + (-0x20)) = edx; /* 0x3000C313: mov dword ptr [ebp - 0x20], edx */
  10946     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3000C316: fadd dword ptr [ebp - 0x20] */
  10947     MEM32(ebp + (-0x6C)) = eax; /* 0x3000C319: mov dword ptr [ebp - 0x6c], eax */
  10948     eax = MEM32(ecx + 0x4); /* 0x3000C31C: mov eax, dword ptr [ecx + 4] */
  10949     ecx = MEM32(ecx + 0x8); /* 0x3000C31F: mov ecx, dword ptr [ecx + 8] */
  10950     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000C322: fstp dword ptr [ebp - 0x20] */
  10951     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x3000C325: fld dword ptr [ebp - 0x70] */
  10952     edx = MEM32(ebp + (-0x20)); /* 0x3000C328: mov edx, dword ptr [ebp - 0x20] */
  10953     MEM32(ebp + (-0x1C)) = eax; /* 0x3000C32B: mov dword ptr [ebp - 0x1c], eax */
  10954     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000C32E: fadd dword ptr [ebp - 0x1c] */
  10955     MEM32(ebp + (-0x18)) = ecx; /* 0x3000C331: mov dword ptr [ebp - 0x18], ecx */
  10956     MEM32(ebp + (-0x1E8)) = edx; /* 0x3000C334: mov dword ptr [ebp - 0x1e8], edx */
  10957     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3000C33A: fstp dword ptr [ebp - 0x1c] */
  10958     eax = MEM32(ebp + (-0x1C)); /* 0x3000C33D: mov eax, dword ptr [ebp - 0x1c] */
  10959     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x3000C340: fld dword ptr [ebp - 0x6c] */
  10960     edx = ebp + (-0x1E8); /* 0x3000C343: lea edx, [ebp - 0x1e8] */
  10961     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3000C349: fadd dword ptr [ebp - 0x18] */
  10962     PUSH32(esp, edx); /* 0x3000C34C: push edx */
  10963     PUSH32(esp, 2); /* 0x3000C34D: push 2 */
  10964     MEM32(ebp + (-0x1E4)) = eax; /* 0x3000C34F: mov dword ptr [ebp - 0x1e4], eax */
  10965     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000C355: fstp dword ptr [ebp - 0x18] */
  10966     ecx = MEM32(ebp + (-0x18)); /* 0x3000C358: mov ecx, dword ptr [ebp - 0x18] */
  10967     MEM32(ebp + (-0x1E0)) = ecx; /* 0x3000C35B: mov dword ptr [ebp - 0x1e0], ecx */
  10968     ecx = ebp + (-0x4C); /* 0x3000C361: lea ecx, [ebp - 0x4c] */
  10969     RECOMP_ICALL(0x30007BA0u); /* 0x3000C364: call 0x30007ba0 */ /* not lifted */
  10970     RECOMP_FLAGS_IN();
  10971     eax = MEM32(ebp + 0xC); /* 0x3000C369: mov eax, dword ptr [ebp + 0xc] */
  10972     ecx = MEM32(ebp + 0x18); /* 0x3000C36C: mov ecx, dword ptr [ebp + 0x18] */
  10973     edx = eax; /* 0x3000C36F: mov edx, eax */
  10974     MEM32(ebp + (-0x8C)) = eax; /* 0x3000C371: mov dword ptr [ebp - 0x8c], eax */
  10975     eax = MEM32(ebp + (-0x88)); /* 0x3000C377: mov eax, dword ptr [ebp - 0x88] */
  10976     MEM32(ebp + (-0x84)) = ecx; /* 0x3000C37D: mov dword ptr [ebp - 0x84], ecx */
  10977     MEM32(ebp + (-0x1F8)) = ecx; /* 0x3000C383: mov dword ptr [ebp - 0x1f8], ecx */
  10978     PUSH32(esp, esi); /* 0x3000C389: push esi */
  10979     ecx = ebp + (-0x200); /* 0x3000C38A: lea ecx, [ebp - 0x200] */
  10980     MEM32(ebp + (-0x200)) = edx; /* 0x3000C390: mov dword ptr [ebp - 0x200], edx */
  10981     MEM32(ebp + (-0x1FC)) = eax; /* 0x3000C396: mov dword ptr [ebp - 0x1fc], eax */
  10982     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C39C: call dword ptr [0x300190ec] */
  10983     RECOMP_FLAGS_IN();
  10984     edx = MEM32(eax); /* 0x3000C3A2: mov edx, dword ptr [eax] */
  10985     ecx = MEM32(eax + 0x4); /* 0x3000C3A4: mov ecx, dword ptr [eax + 4] */
  10986     MEM32(ebp + (-0xA4)) = edx; /* 0x3000C3A7: mov dword ptr [ebp - 0xa4], edx */
  10987     edx = MEM32(eax + 0x8); /* 0x3000C3AD: mov edx, dword ptr [eax + 8] */
  10988     MEM32(ebp + (-0xA0)) = ecx; /* 0x3000C3B0: mov dword ptr [ebp - 0xa0], ecx */
  10989     MEM32(ebp + (-0x9C)) = edx; /* 0x3000C3B6: mov dword ptr [ebp - 0x9c], edx */
  10990     eax = edi; /* 0x3000C3BC: mov eax, edi */
  10991     ecx = MEM32(eax); /* 0x3000C3BE: mov ecx, dword ptr [eax] */
  10992     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x3000C3C0: fld dword ptr [ebp - 0xa4] */
  10993     edx = MEM32(eax + 0x4); /* 0x3000C3C6: mov edx, dword ptr [eax + 4] */
  10994     eax = MEM32(eax + 0x8); /* 0x3000C3C9: mov eax, dword ptr [eax + 8] */
  10995     MEM32(ebp + (-0x2C)) = ecx; /* 0x3000C3CC: mov dword ptr [ebp - 0x2c], ecx */
  10996     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3000C3CF: fadd dword ptr [ebp - 0x2c] */
  10997     MEM32(ebp + (-0x28)) = edx; /* 0x3000C3D2: mov dword ptr [ebp - 0x28], edx */
  10998     MEM32(ebp + (-0x24)) = eax; /* 0x3000C3D5: mov dword ptr [ebp - 0x24], eax */
  10999     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3000C3D8: fstp dword ptr [ebp - 0x2c] */
  11000     ecx = MEM32(ebp + (-0x2C)); /* 0x3000C3DB: mov ecx, dword ptr [ebp - 0x2c] */
  11001     fp_push(*(float*)&MEM32(ebp + (-0xA0))); /* 0x3000C3DE: fld dword ptr [ebp - 0xa0] */
  11002     MEM32(ebp + (-0x218)) = ecx; /* 0x3000C3E4: mov dword ptr [ebp - 0x218], ecx */
  11003     _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3000C3EA: fadd dword ptr [ebp - 0x28] */
  11004     ecx = ebp + (-0x218); /* 0x3000C3ED: lea ecx, [ebp - 0x218] */
  11005     PUSH32(esp, ecx); /* 0x3000C3F3: push ecx */
  11006     PUSH32(esp, 1); /* 0x3000C3F4: push 1 */
  11007     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3000C3F6: fstp dword ptr [ebp - 0x28] */
  11008     edx = MEM32(ebp + (-0x28)); /* 0x3000C3F9: mov edx, dword ptr [ebp - 0x28] */
  11009     fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x3000C3FC: fld dword ptr [ebp - 0x9c] */
  11010     ecx = ebp + (-0x4C); /* 0x3000C402: lea ecx, [ebp - 0x4c] */
  11011     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3000C405: fadd dword ptr [ebp - 0x24] */
  11012     MEM32(ebp + (-0x214)) = edx; /* 0x3000C408: mov dword ptr [ebp - 0x214], edx */
  11013     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3000C40E: fstp dword ptr [ebp - 0x24] */
  11014     eax = MEM32(ebp + (-0x24)); /* 0x3000C411: mov eax, dword ptr [ebp - 0x24] */
  11015     MEM32(ebp + (-0x210)) = eax; /* 0x3000C414: mov dword ptr [ebp - 0x210], eax */
  11016     RECOMP_ICALL(0x30007BA0u); /* 0x3000C41A: call 0x30007ba0 */ /* not lifted */
  11017     RECOMP_FLAGS_IN();
  11018     edx = MEM32(ebp + 0x14); /* 0x3000C41F: mov edx, dword ptr [ebp + 0x14] */
  11019     eax = MEM32(ebp + (-0x10)); /* 0x3000C422: mov eax, dword ptr [ebp - 0x10] */
  11020     ecx = edx; /* 0x3000C425: mov ecx, edx */
  11021     MEM32(ebp + (-0xBC)) = edx; /* 0x3000C427: mov dword ptr [ebp - 0xbc], edx */
  11022     edx = MEM32(ebp + (-0xB8)); /* 0x3000C42D: mov edx, dword ptr [ebp - 0xb8] */
  11023     MEM32(ebp + (-0x230)) = ecx; /* 0x3000C433: mov dword ptr [ebp - 0x230], ecx */
  11024     PUSH32(esp, esi); /* 0x3000C439: push esi */
  11025     ecx = ebp + (-0x230); /* 0x3000C43A: lea ecx, [ebp - 0x230] */
  11026     MEM32(ebp + (-0xB4)) = eax; /* 0x3000C440: mov dword ptr [ebp - 0xb4], eax */
  11027     MEM32(ebp + (-0x22C)) = edx; /* 0x3000C446: mov dword ptr [ebp - 0x22c], edx */
  11028     MEM32(ebp + (-0x228)) = eax; /* 0x3000C44C: mov dword ptr [ebp - 0x228], eax */
  11029     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C452: call dword ptr [0x300190ec] */
  11030     RECOMP_FLAGS_IN();
  11031     ecx = MEM32(eax); /* 0x3000C458: mov ecx, dword ptr [eax] */
  11032     edx = MEM32(eax + 0x4); /* 0x3000C45A: mov edx, dword ptr [eax + 4] */
  11033     eax = MEM32(eax + 0x8); /* 0x3000C45D: mov eax, dword ptr [eax + 8] */
  11034     MEM32(ebp + (-0xD4)) = ecx; /* 0x3000C460: mov dword ptr [ebp - 0xd4], ecx */
  11035     fp_push(*(float*)&MEM32(ebp + (-0xD4))); /* 0x3000C466: fld dword ptr [ebp - 0xd4] */
  11036     MEM32(ebp + (-0xD0)) = edx; /* 0x3000C46C: mov dword ptr [ebp - 0xd0], edx */
  11037     ecx = edi; /* 0x3000C472: mov ecx, edi */
  11038     edx = MEM32(ecx); /* 0x3000C474: mov edx, dword ptr [ecx] */
  11039     MEM32(ebp + (-0x38)) = edx; /* 0x3000C476: mov dword ptr [ebp - 0x38], edx */
  11040     _st[0] += (double)*(float*)ADDR(ebp + (-0x38)); /* 0x3000C479: fadd dword ptr [ebp - 0x38] */
  11041     MEM32(ebp + (-0xCC)) = eax; /* 0x3000C47C: mov dword ptr [ebp - 0xcc], eax */
  11042     eax = MEM32(ecx + 0x4); /* 0x3000C482: mov eax, dword ptr [ecx + 4] */
  11043     ecx = MEM32(ecx + 0x8); /* 0x3000C485: mov ecx, dword ptr [ecx + 8] */
  11044     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3000C488: fstp dword ptr [ebp - 0x38] */
  11045     fp_push(*(float*)&MEM32(ebp + (-0xD0))); /* 0x3000C48B: fld dword ptr [ebp - 0xd0] */
  11046     edx = MEM32(ebp + (-0x38)); /* 0x3000C491: mov edx, dword ptr [ebp - 0x38] */
  11047     MEM32(ebp + (-0x34)) = eax; /* 0x3000C494: mov dword ptr [ebp - 0x34], eax */
  11048     _st[0] += (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3000C497: fadd dword ptr [ebp - 0x34] */
  11049     MEM32(ebp + (-0x30)) = ecx; /* 0x3000C49A: mov dword ptr [ebp - 0x30], ecx */
  11050     MEM32(ebp + (-0x248)) = edx; /* 0x3000C49D: mov dword ptr [ebp - 0x248], edx */
  11051     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3000C4A3: fstp dword ptr [ebp - 0x34] */
  11052     eax = MEM32(ebp + (-0x34)); /* 0x3000C4A6: mov eax, dword ptr [ebp - 0x34] */
  11053     fp_push(*(float*)&MEM32(ebp + (-0xCC))); /* 0x3000C4A9: fld dword ptr [ebp - 0xcc] */
  11054     edx = ebp + (-0x248); /* 0x3000C4AF: lea edx, [ebp - 0x248] */
  11055     _st[0] += (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000C4B5: fadd dword ptr [ebp - 0x30] */
  11056     PUSH32(esp, edx); /* 0x3000C4B8: push edx */
  11057     PUSH32(esp, 0); /* 0x3000C4B9: push 0 */
  11058     MEM32(ebp + (-0x244)) = eax; /* 0x3000C4BB: mov dword ptr [ebp - 0x244], eax */
  11059     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3000C4C1: fstp dword ptr [ebp - 0x30] */
  11060     ecx = MEM32(ebp + (-0x30)); /* 0x3000C4C4: mov ecx, dword ptr [ebp - 0x30] */
  11061     MEM32(ebp + (-0x240)) = ecx; /* 0x3000C4C7: mov dword ptr [ebp - 0x240], ecx */
  11062     ecx = ebp + (-0x4C); /* 0x3000C4CD: lea ecx, [ebp - 0x4c] */
  11063     RECOMP_ICALL(0x30007BA0u); /* 0x3000C4D0: call 0x30007ba0 */ /* not lifted */
  11064     RECOMP_FLAGS_IN();
  11065     eax = MEM32(ebx + 0x8); /* 0x3000C4D5: mov eax, dword ptr [ebx + 8] */
  11066     ecx = ebp + (-0x4C); /* 0x3000C4D8: lea ecx, [ebp - 0x4c] */
  11067     PUSH32(esp, ecx); /* 0x3000C4DB: push ecx */
  11068     PUSH32(esp, 1); /* 0x3000C4DC: push 1 */
  11069     PUSH32(esp, eax); /* 0x3000C4DE: push eax */
  11070     ecx = ebx; /* 0x3000C4DF: mov ecx, ebx */
  11071     RECOMP_ICALL(0x30002E30u); /* 0x3000C4E1: call 0x30002e30 */ /* not lifted */
  11072     RECOMP_FLAGS_IN();
  11073     eax = MEM32(ebp + (-0x14)); /* 0x3000C4E6: mov eax, dword ptr [ebp - 0x14] */
  11074     ecx = MEM32(ebp + 0x1C); /* 0x3000C4E9: mov ecx, dword ptr [ebp + 0x1c] */
  11075     MEM32(ebp + (-0x14)) = eax; /* 0x3000C4EC: mov dword ptr [ebp - 0x14], eax */
  11076     /* cmp eax, ecx */ /* 0x3000C4EF: cmp eax, ecx */
  11077     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  11078     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11079     _flag_k = FK_CMP;
  11080     RECOMP_BACKEDGE();
  11081     if (CMP_L(_flag_a, _flag_b)) goto L_3000BD61; /* 0x3000C4F1: jl 0x3000bd61 */
  11082 L_3000C4F7:
  11083     edi = POP32_VAL(esp); /* 0x3000C4F7: pop edi */
  11084     esi = POP32_VAL(esp); /* 0x3000C4F8: pop esi */
  11085 L_3000C4F9:
  11086     ecx = ebp + (-0x4C); /* 0x3000C4F9: lea ecx, [ebp - 0x4c] */
  11087     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000C4FC: mov dword ptr [ebp - 4], 0xffffffff */
  11088     RECOMP_ICALL(0x30007AB0u); /* 0x3000C503: call 0x30007ab0 */ /* not lifted */
  11089     RECOMP_FLAGS_IN();
  11090     ecx = MEM32(ebp + (-0xC)); /* 0x3000C508: mov ecx, dword ptr [ebp - 0xc] */
  11091     ebx = POP32_VAL(esp); /* 0x3000C50B: pop ebx */
  11092     MEM32(FS_BASE + (0)) = ecx; /* 0x3000C50C: mov dword ptr fs:[0], ecx */
  11093     esp = ebp; /* 0x3000C513: mov esp, ebp */
  11094     ebp = POP32_VAL(esp); /* 0x3000C515: pop ebp */
  11095     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x3000C516: ret 0x18 */
  11096     RECOMP_REGS_OUT();
  11097 }
  11098 
  11099 void sub_3000C520(void) {
  11100     int _fpu_cmp = 0;
  11101     uint32_t _cf = 0;
  11102     int _df = 1;
  11103     uint32_t _flag_k = FK_NONE;
  11104     uint32_t _flag_a = 0, _flag_b = 0;
  11105     uint32_t _itail_tgt = 0;
  11106     RECOMP_REGS_LOCALS
  11107     RECOMP_ENTER(0x3000C520u);
  11108 
  11109 L_3000C520:
  11110     PUSH32(esp, ebp); /* 0x3000C520: push ebp */
  11111     ebp = esp; /* 0x3000C521: mov ebp, esp */
  11112     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000C523: push -1 */
  11113     PUSH32(esp, 0x30018950u); /* 0x3000C525: push 0x30018950 */
  11114     eax = MEM32(FS_BASE + (0)); /* 0x3000C52A: mov eax, dword ptr fs:[0] */
  11115     PUSH32(esp, eax); /* 0x3000C530: push eax */
  11116     MEM32(FS_BASE + (0)) = esp; /* 0x3000C531: mov dword ptr fs:[0], esp */
  11117     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x110u);
  11118     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11119     esp = esp - 0x110u; /* 0x3000C538: sub esp, 0x110 */
  11120     _flag_k = FK_CMP;
  11121     PUSH32(esp, ebx); /* 0x3000C53E: push ebx */
  11122     PUSH32(esp, esi); /* 0x3000C53F: push esi */
  11123     PUSH32(esp, edi); /* 0x3000C540: push edi */
  11124     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000C541: fld dword ptr [ebp + 8] */
  11125     eax = MEM32(ebp + 0x8); /* 0x3000C544: mov eax, dword ptr [ebp + 8] */
  11126     _st[0] = -_st[0]; /* 0x3000C547: fchs  */
  11127     edx = MEM32(ebp + 0xC); /* 0x3000C549: mov edx, dword ptr [ebp + 0xc] */
  11128     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3000C54C: fld dword ptr [ebp + 0xc] */
  11129     _st[0] = -_st[0]; /* 0x3000C54F: fchs  */
  11130     ebx = ecx; /* 0x3000C551: mov ebx, ecx */
  11131     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3000C553: fld dword ptr [ebp + 0x10] */
  11132     ecx = eax; /* 0x3000C556: mov ecx, eax */
  11133     _st[0] = -_st[0]; /* 0x3000C558: fchs  */
  11134     MEM32(ebp + (-0xF4)) = eax; /* 0x3000C55A: mov dword ptr [ebp - 0xf4], eax */
  11135     fp_push(_st[2]); /* 0x3000C560: fld st(2) */
  11136     eax = edx; /* 0x3000C562: mov eax, edx */
  11137     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x3000C564: fstp dword ptr [ebp - 0xdc] */
  11138     MEM32(ebp + (-0xFC)) = edx; /* 0x3000C56A: mov dword ptr [ebp - 0xfc], edx */
  11139     fp_push(_st[1]); /* 0x3000C570: fld st(1) */
  11140     MEM32(ebp + (-0x100)) = ecx; /* 0x3000C572: mov dword ptr [ebp - 0x100], ecx */
  11141     ecx = MEM32(ebp + 0x10); /* 0x3000C578: mov ecx, dword ptr [ebp + 0x10] */
  11142     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x3000C57B: fstp dword ptr [ebp - 0xd8] */
  11143     edx = ecx; /* 0x3000C581: mov edx, ecx */
  11144     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3000C583: fst dword ptr [ebp - 0xd4] */
  11145     MEM32(ebp + (-0x80)) = edx; /* 0x3000C589: mov dword ptr [ebp - 0x80], edx */
  11146     fp_push(_st[1]); /* 0x3000C58C: fld st(1) */
  11147     MEM32(ebp + (-0xE4)) = eax; /* 0x3000C58E: mov dword ptr [ebp - 0xe4], eax */
  11148     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB4)) = _v; } /* 0x3000C594: fstp dword ptr [ebp - 0xb4] */
  11149     MEM32(ebp + (-0x64)) = 0; /* 0x3000C59A: mov dword ptr [ebp - 0x64], 0 */
  11150     edx = MEM32(ebp + (-0x64)); /* 0x3000C5A1: mov edx, dword ptr [ebp - 0x64] */
  11151     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3000C5A4: fst dword ptr [ebp - 0xb0] */
  11152     MEM32(ebp + (-0x118)) = edx; /* 0x3000C5AA: mov dword ptr [ebp - 0x118], edx */
  11153     edx = MEM32(ebp + 0x8); /* 0x3000C5B0: mov edx, dword ptr [ebp + 8] */
  11154     fp_push(_st[1]); /* 0x3000C5B3: fld st(1) */
  11155     _st[0] *= (double)*(float*)ADDR(0x30019288); /* 0x3000C5B5: fmul dword ptr [0x30019288] */
  11156     MEM32(ebp + (-0x64)) = edx; /* 0x3000C5BB: mov dword ptr [ebp - 0x64], edx */
  11157     MEM32(ebp + (-0x10C)) = edx; /* 0x3000C5BE: mov dword ptr [ebp - 0x10c], edx */
  11158     MEM32(ebp + (-0x70)) = edx; /* 0x3000C5C4: mov dword ptr [ebp - 0x70], edx */
  11159     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x11C)) = _v; } /* 0x3000C5C7: fst dword ptr [ebp - 0x11c] */
  11160     MEM32(ebp + (-0x64)) = edx; /* 0x3000C5CD: mov dword ptr [ebp - 0x64], edx */
  11161     eax = MEM32(ebp + (-0x11C)); /* 0x3000C5D0: mov eax, dword ptr [ebp - 0x11c] */
  11162     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3000C5D6: fst dword ptr [ebp - 0xcc] */
  11163     fp_push(_st[1]); /* 0x3000C5DC: fld st(1) */
  11164     MEM32(ebp + (-0x60)) = eax; /* 0x3000C5DE: mov dword ptr [ebp - 0x60], eax */
  11165     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x3000C5E1: fstp dword ptr [ebp - 0xc8] */
  11166     MEM32(ebp + (-0x60)) = eax; /* 0x3000C5E7: mov dword ptr [ebp - 0x60], eax */
  11167     MEM32(ebp + (-0x114)) = eax; /* 0x3000C5EA: mov dword ptr [ebp - 0x114], eax */
  11168     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xF0)) = _v; } /* 0x3000C5F0: fstp dword ptr [ebp - 0xf0] */
  11169     MEM32(ebp + (-0x108)) = eax; /* 0x3000C5F6: mov dword ptr [ebp - 0x108], eax */
  11170     eax = MEM32(ebp + 0xC); /* 0x3000C5FC: mov eax, dword ptr [ebp + 0xc] */
  11171     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xEC)) = _v; } /* 0x3000C5FF: fst dword ptr [ebp - 0xec] */
  11172     edx = eax; /* 0x3000C605: mov edx, eax */
  11173     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xF8)) = _v; } /* 0x3000C607: fst dword ptr [ebp - 0xf8] */
  11174     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xE0)) = _v; } /* 0x3000C60D: fst dword ptr [ebp - 0xe0] */
  11175     MEM32(ebp + (-0x5C)) = ecx; /* 0x3000C613: mov dword ptr [ebp - 0x5c], ecx */
  11176     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3000C616: fst dword ptr [ebp - 0x98] */
  11177     MEM32(ebp + (-0x5C)) = ecx; /* 0x3000C61C: mov dword ptr [ebp - 0x5c], ecx */
  11178     fp_push(_st[2]); /* 0x3000C61F: fld st(2) */
  11179     MEM32(ebp + (-0x6C)) = eax; /* 0x3000C621: mov dword ptr [ebp - 0x6c], eax */
  11180     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC4)) = _v; } /* 0x3000C624: fstp dword ptr [ebp - 0xc4] */
  11181     MEM32(ebp + (-0x60)) = eax; /* 0x3000C62A: mov dword ptr [ebp - 0x60], eax */
  11182     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xBC)) = _v; } /* 0x3000C62D: fstp dword ptr [ebp - 0xbc] */
  11183     MEM32(ebp + (-0xB8)) = 0; /* 0x3000C633: mov dword ptr [ebp - 0xb8], 0 */
  11184     fp_push(_st[1]); /* 0x3000C63D: fld st(1) */
  11185     MEM32(ebp + (-0xD0)) = 0; /* 0x3000C63F: mov dword ptr [ebp - 0xd0], 0 */
  11186     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3000C649: fstp dword ptr [ebp - 0x94] */
  11187     MEM32(ebp + (-0xE8)) = 0; /* 0x3000C64F: mov dword ptr [ebp - 0xe8], 0 */
  11188     MEM32(ebp + (-0xA0)) = 0; /* 0x3000C659: mov dword ptr [ebp - 0xa0], 0 */
  11189     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3000C663: fst dword ptr [ebp - 0x90] */
  11190     MEM32(ebp + (-0x9C)) = 0; /* 0x3000C669: mov dword ptr [ebp - 0x9c], 0 */
  11191     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x3000C673: fstp dword ptr [ebp - 0x84] */
  11192     MEM32(ebp + (-0xC0)) = 0; /* 0x3000C679: mov dword ptr [ebp - 0xc0], 0 */
  11193     MEM32(ebp + (-0x8C)) = ecx; /* 0x3000C683: mov dword ptr [ebp - 0x8c], ecx */
  11194     MEM32(ebp + (-0x88)) = 0; /* 0x3000C689: mov dword ptr [ebp - 0x88], 0 */
  11195     MEM32(ebp + (-0x110)) = ecx; /* 0x3000C693: mov dword ptr [ebp - 0x110], ecx */
  11196     MEM32(ebp + (-0x104)) = ecx; /* 0x3000C699: mov dword ptr [ebp - 0x104], ecx */
  11197     MEM32(ebp + (-0x68)) = ecx; /* 0x3000C69F: mov dword ptr [ebp - 0x68], ecx */
  11198     MEM32(ebp + (-0x5C)) = ecx; /* 0x3000C6A2: mov dword ptr [ebp - 0x5c], ecx */
  11199     MEM32(ebp + (-0x7C)) = 0; /* 0x3000C6A5: mov dword ptr [ebp - 0x7c], 0 */
  11200     MEM32(ebp + (-0x78)) = edx; /* 0x3000C6AC: mov dword ptr [ebp - 0x78], edx */
  11201     eax = ecx; /* 0x3000C6AF: mov eax, ecx */
  11202     ecx = MEM32(ebp + (-0x7C)); /* 0x3000C6B1: mov ecx, dword ptr [ebp - 0x7c] */
  11203     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000C6B4: fstp dword ptr [ebp - 0x18] */
  11204     MEM32(ebp + (-0x70)) = ecx; /* 0x3000C6B7: mov dword ptr [ebp - 0x70], ecx */
  11205     ecx = eax; /* 0x3000C6BA: mov ecx, eax */
  11206     MEM32(ebp + (-0xA4)) = ecx; /* 0x3000C6BC: mov dword ptr [ebp - 0xa4], ecx */
  11207     MEM32(ebp + (-0x74)) = eax; /* 0x3000C6C2: mov dword ptr [ebp - 0x74], eax */
  11208     MEM32(ebp + (-0x6C)) = edx; /* 0x3000C6C5: mov dword ptr [ebp - 0x6c], edx */
  11209     edx = eax; /* 0x3000C6C8: mov edx, eax */
  11210     MEM32(ebp + (-0x14)) = 0; /* 0x3000C6CA: mov dword ptr [ebp - 0x14], 0 */
  11211     ecx = MEM32(ebp + (-0x14)); /* 0x3000C6D1: mov ecx, dword ptr [ebp - 0x14] */
  11212     MEM32(ebp + (-0x68)) = eax; /* 0x3000C6D4: mov dword ptr [ebp - 0x68], eax */
  11213     eax = MEM32(ebp + (-0x18)); /* 0x3000C6D7: mov eax, dword ptr [ebp - 0x18] */
  11214     MEM32(ebp + (-0x78)) = ecx; /* 0x3000C6DA: mov dword ptr [ebp - 0x78], ecx */
  11215     ecx = ebp + (-0x58); /* 0x3000C6DD: lea ecx, [ebp - 0x58] */
  11216     MEM32(ebp + (-0xAC)) = 0; /* 0x3000C6E0: mov dword ptr [ebp - 0xac], 0 */
  11217     MEM32(ebp + (-0xA8)) = 0; /* 0x3000C6EA: mov dword ptr [ebp - 0xa8], 0 */
  11218     MEM32(ebp + (-0x10)) = edx; /* 0x3000C6F4: mov dword ptr [ebp - 0x10], edx */
  11219     MEM32(ebp + (-0x7C)) = eax; /* 0x3000C6F7: mov dword ptr [ebp - 0x7c], eax */
  11220     MEM32(ebp + (-0x74)) = edx; /* 0x3000C6FA: mov dword ptr [ebp - 0x74], edx */
  11221     RECOMP_ICALL(0x30007930u); /* 0x3000C6FD: call 0x30007930 */ /* not lifted */
  11222     RECOMP_FLAGS_IN();
  11223     PUSH32(esp, 4); /* 0x3000C702: push 4 */
  11224     ecx = ebp + (-0x44); /* 0x3000C704: lea ecx, [ebp - 0x44] */
  11225     MEM32(ebp + (-0x4)) = 0; /* 0x3000C707: mov dword ptr [ebp - 4], 0 */
  11226     RECOMP_ICALL(0x30007950u); /* 0x3000C70E: call 0x30007950 */ /* not lifted */
  11227     RECOMP_FLAGS_IN();
  11228     PUSH32(esp, eax); /* 0x3000C713: push eax */
  11229     ecx = ebp + (-0x58); /* 0x3000C714: lea ecx, [ebp - 0x58] */
  11230     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3000C717: mov byte ptr [ebp - 4], 1 */
  11231     RECOMP_ICALL(0x300080D0u); /* 0x3000C71B: call 0x300080d0 */ /* not lifted */
  11232     RECOMP_FLAGS_IN();
  11233     ecx = ebp + (-0x44); /* 0x3000C720: lea ecx, [ebp - 0x44] */
  11234     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3000C723: mov byte ptr [ebp - 4], 0 */
  11235     RECOMP_ICALL(0x30007AB0u); /* 0x3000C727: call 0x30007ab0 */ /* not lifted */
  11236     RECOMP_FLAGS_IN();
  11237     ecx = MEM32(ebp + (-0xD8)); /* 0x3000C72C: mov ecx, dword ptr [ebp - 0xd8] */
  11238     eax = MEM32(ebp + (-0xDC)); /* 0x3000C732: mov eax, dword ptr [ebp - 0xdc] */
  11239     edx = MEM32(ebp + (-0xD4)); /* 0x3000C738: mov edx, dword ptr [ebp - 0xd4] */
  11240     esi = MEM32(ebp + 0x18); /* 0x3000C73E: mov esi, dword ptr [ebp + 0x18] */
  11241     MEM32(ebp + (-0x14)) = ecx; /* 0x3000C741: mov dword ptr [ebp - 0x14], ecx */
  11242     PUSH32(esp, esi); /* 0x3000C744: push esi */
  11243     ecx = ebp + (-0x18); /* 0x3000C745: lea ecx, [ebp - 0x18] */
  11244     MEM32(ebp + (-0x18)) = eax; /* 0x3000C748: mov dword ptr [ebp - 0x18], eax */
  11245     MEM32(ebp + (-0x10)) = edx; /* 0x3000C74B: mov dword ptr [ebp - 0x10], edx */
  11246     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C74E: call dword ptr [0x300190ec] */
  11247     RECOMP_FLAGS_IN();
  11248     ecx = MEM32(eax); /* 0x3000C754: mov ecx, dword ptr [eax] */
  11249     edi = MEM32(ebp + 0x14); /* 0x3000C756: mov edi, dword ptr [ebp + 0x14] */
  11250     MEM32(ebp + (-0x30)) = ecx; /* 0x3000C759: mov dword ptr [ebp - 0x30], ecx */
  11251     edx = MEM32(eax + 0x4); /* 0x3000C75C: mov edx, dword ptr [eax + 4] */
  11252     MEM32(ebp + (-0x2C)) = edx; /* 0x3000C75F: mov dword ptr [ebp - 0x2c], edx */
  11253     eax = MEM32(eax + 0x8); /* 0x3000C762: mov eax, dword ptr [eax + 8] */
  11254     ecx = edi; /* 0x3000C765: mov ecx, edi */
  11255     edx = MEM32(ecx); /* 0x3000C767: mov edx, dword ptr [ecx] */
  11256     MEM32(ebp + (-0x28)) = eax; /* 0x3000C769: mov dword ptr [ebp - 0x28], eax */
  11257     eax = MEM32(ecx + 0x4); /* 0x3000C76C: mov eax, dword ptr [ecx + 4] */
  11258     ecx = MEM32(ecx + 0x8); /* 0x3000C76F: mov ecx, dword ptr [ecx + 8] */
  11259     MEM32(ebp + (-0x24)) = edx; /* 0x3000C772: mov dword ptr [ebp - 0x24], edx */
  11260     edx = ebp + (-0x30); /* 0x3000C775: lea edx, [ebp - 0x30] */
  11261     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000C778: mov dword ptr [ebp - 0x1c], ecx */
  11262     PUSH32(esp, edx); /* 0x3000C77B: push edx */
  11263     ecx = ebp + (-0x24); /* 0x3000C77C: lea ecx, [ebp - 0x24] */
  11264     MEM32(ebp + (-0x20)) = eax; /* 0x3000C77F: mov dword ptr [ebp - 0x20], eax */
  11265     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C782: call dword ptr [0x300190c4] */
  11266     RECOMP_FLAGS_IN();
  11267     ecx = MEM32(eax); /* 0x3000C788: mov ecx, dword ptr [eax] */
  11268     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000C78A: mov dword ptr [ebp - 0x3c], ecx */
  11269     edx = MEM32(eax + 0x4); /* 0x3000C78D: mov edx, dword ptr [eax + 4] */
  11270     ecx = ebp + (-0x3C); /* 0x3000C790: lea ecx, [ebp - 0x3c] */
  11271     PUSH32(esp, ecx); /* 0x3000C793: push ecx */
  11272     MEM32(ebp + (-0x38)) = edx; /* 0x3000C794: mov dword ptr [ebp - 0x38], edx */
  11273     eax = MEM32(eax + 0x8); /* 0x3000C797: mov eax, dword ptr [eax + 8] */
  11274     PUSH32(esp, 0); /* 0x3000C79A: push 0 */
  11275     ecx = ebp + (-0x58); /* 0x3000C79C: lea ecx, [ebp - 0x58] */
  11276     MEM32(ebp + (-0x34)) = eax; /* 0x3000C79F: mov dword ptr [ebp - 0x34], eax */
  11277     RECOMP_ICALL(0x30007BA0u); /* 0x3000C7A2: call 0x30007ba0 */ /* not lifted */
  11278     RECOMP_FLAGS_IN();
  11279     ecx = MEM32(ebp + (-0xB0)); /* 0x3000C7A7: mov ecx, dword ptr [ebp - 0xb0] */
  11280     edx = MEM32(ebp + (-0xB8)); /* 0x3000C7AD: mov edx, dword ptr [ebp - 0xb8] */
  11281     eax = MEM32(ebp + (-0xB4)); /* 0x3000C7B3: mov eax, dword ptr [ebp - 0xb4] */
  11282     MEM32(ebp + (-0x34)) = ecx; /* 0x3000C7B9: mov dword ptr [ebp - 0x34], ecx */
  11283     PUSH32(esp, esi); /* 0x3000C7BC: push esi */
  11284     ecx = ebp + (-0x3C); /* 0x3000C7BD: lea ecx, [ebp - 0x3c] */
  11285     MEM32(ebp + (-0x3C)) = edx; /* 0x3000C7C0: mov dword ptr [ebp - 0x3c], edx */
  11286     MEM32(ebp + (-0x38)) = eax; /* 0x3000C7C3: mov dword ptr [ebp - 0x38], eax */
  11287     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C7C6: call dword ptr [0x300190ec] */
  11288     RECOMP_FLAGS_IN();
  11289     edx = MEM32(eax); /* 0x3000C7CC: mov edx, dword ptr [eax] */
  11290     MEM32(ebp + (-0x24)) = edx; /* 0x3000C7CE: mov dword ptr [ebp - 0x24], edx */
  11291     ecx = MEM32(eax + 0x4); /* 0x3000C7D1: mov ecx, dword ptr [eax + 4] */
  11292     MEM32(ebp + (-0x20)) = ecx; /* 0x3000C7D4: mov dword ptr [ebp - 0x20], ecx */
  11293     edx = MEM32(eax + 0x8); /* 0x3000C7D7: mov edx, dword ptr [eax + 8] */
  11294     eax = edi; /* 0x3000C7DA: mov eax, edi */
  11295     ecx = MEM32(eax); /* 0x3000C7DC: mov ecx, dword ptr [eax] */
  11296     MEM32(ebp + (-0x30)) = ecx; /* 0x3000C7DE: mov dword ptr [ebp - 0x30], ecx */
  11297     MEM32(ebp + (-0x1C)) = edx; /* 0x3000C7E1: mov dword ptr [ebp - 0x1c], edx */
  11298     edx = MEM32(eax + 0x4); /* 0x3000C7E4: mov edx, dword ptr [eax + 4] */
  11299     eax = MEM32(eax + 0x8); /* 0x3000C7E7: mov eax, dword ptr [eax + 8] */
  11300     ecx = ebp + (-0x24); /* 0x3000C7EA: lea ecx, [ebp - 0x24] */
  11301     PUSH32(esp, ecx); /* 0x3000C7ED: push ecx */
  11302     ecx = ebp + (-0x30); /* 0x3000C7EE: lea ecx, [ebp - 0x30] */
  11303     MEM32(ebp + (-0x2C)) = edx; /* 0x3000C7F1: mov dword ptr [ebp - 0x2c], edx */
  11304     MEM32(ebp + (-0x28)) = eax; /* 0x3000C7F4: mov dword ptr [ebp - 0x28], eax */
  11305     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C7F7: call dword ptr [0x300190c4] */
  11306     RECOMP_FLAGS_IN();
  11307     edx = MEM32(eax); /* 0x3000C7FD: mov edx, dword ptr [eax] */
  11308     MEM32(ebp + (-0x18)) = edx; /* 0x3000C7FF: mov dword ptr [ebp - 0x18], edx */
  11309     ecx = MEM32(eax + 0x4); /* 0x3000C802: mov ecx, dword ptr [eax + 4] */
  11310     MEM32(ebp + (-0x14)) = ecx; /* 0x3000C805: mov dword ptr [ebp - 0x14], ecx */
  11311     edx = MEM32(eax + 0x8); /* 0x3000C808: mov edx, dword ptr [eax + 8] */
  11312     eax = ebp + (-0x18); /* 0x3000C80B: lea eax, [ebp - 0x18] */
  11313     PUSH32(esp, eax); /* 0x3000C80E: push eax */
  11314     PUSH32(esp, 1); /* 0x3000C80F: push 1 */
  11315     ecx = ebp + (-0x58); /* 0x3000C811: lea ecx, [ebp - 0x58] */
  11316     MEM32(ebp + (-0x10)) = edx; /* 0x3000C814: mov dword ptr [ebp - 0x10], edx */
  11317     RECOMP_ICALL(0x30007BA0u); /* 0x3000C817: call 0x30007ba0 */ /* not lifted */
  11318     RECOMP_FLAGS_IN();
  11319     ecx = MEM32(ebp + (-0x88)); /* 0x3000C81C: mov ecx, dword ptr [ebp - 0x88] */
  11320     edx = MEM32(ebp + (-0x84)); /* 0x3000C822: mov edx, dword ptr [ebp - 0x84] */
  11321     eax = MEM32(ebp + (-0x80)); /* 0x3000C828: mov eax, dword ptr [ebp - 0x80] */
  11322     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000C82B: mov dword ptr [ebp - 0x3c], ecx */
  11323     PUSH32(esp, esi); /* 0x3000C82E: push esi */
  11324     ecx = ebp + (-0x3C); /* 0x3000C82F: lea ecx, [ebp - 0x3c] */
  11325     MEM32(ebp + (-0x38)) = edx; /* 0x3000C832: mov dword ptr [ebp - 0x38], edx */
  11326     MEM32(ebp + (-0x34)) = eax; /* 0x3000C835: mov dword ptr [ebp - 0x34], eax */
  11327     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C838: call dword ptr [0x300190ec] */
  11328     RECOMP_FLAGS_IN();
  11329     ecx = MEM32(eax); /* 0x3000C83E: mov ecx, dword ptr [eax] */
  11330     MEM32(ebp + (-0x24)) = ecx; /* 0x3000C840: mov dword ptr [ebp - 0x24], ecx */
  11331     edx = MEM32(eax + 0x4); /* 0x3000C843: mov edx, dword ptr [eax + 4] */
  11332     MEM32(ebp + (-0x20)) = edx; /* 0x3000C846: mov dword ptr [ebp - 0x20], edx */
  11333     eax = MEM32(eax + 0x8); /* 0x3000C849: mov eax, dword ptr [eax + 8] */
  11334     ecx = edi; /* 0x3000C84C: mov ecx, edi */
  11335     edx = MEM32(ecx); /* 0x3000C84E: mov edx, dword ptr [ecx] */
  11336     MEM32(ebp + (-0x1C)) = eax; /* 0x3000C850: mov dword ptr [ebp - 0x1c], eax */
  11337     eax = MEM32(ecx + 0x4); /* 0x3000C853: mov eax, dword ptr [ecx + 4] */
  11338     ecx = MEM32(ecx + 0x8); /* 0x3000C856: mov ecx, dword ptr [ecx + 8] */
  11339     MEM32(ebp + (-0x30)) = edx; /* 0x3000C859: mov dword ptr [ebp - 0x30], edx */
  11340     edx = ebp + (-0x24); /* 0x3000C85C: lea edx, [ebp - 0x24] */
  11341     MEM32(ebp + (-0x28)) = ecx; /* 0x3000C85F: mov dword ptr [ebp - 0x28], ecx */
  11342     PUSH32(esp, edx); /* 0x3000C862: push edx */
  11343     ecx = ebp + (-0x30); /* 0x3000C863: lea ecx, [ebp - 0x30] */
  11344     MEM32(ebp + (-0x2C)) = eax; /* 0x3000C866: mov dword ptr [ebp - 0x2c], eax */
  11345     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C869: call dword ptr [0x300190c4] */
  11346     RECOMP_FLAGS_IN();
  11347     ecx = MEM32(eax); /* 0x3000C86F: mov ecx, dword ptr [eax] */
  11348     MEM32(ebp + (-0x18)) = ecx; /* 0x3000C871: mov dword ptr [ebp - 0x18], ecx */
  11349     edx = MEM32(eax + 0x4); /* 0x3000C874: mov edx, dword ptr [eax + 4] */
  11350     ecx = ebp + (-0x18); /* 0x3000C877: lea ecx, [ebp - 0x18] */
  11351     PUSH32(esp, ecx); /* 0x3000C87A: push ecx */
  11352     MEM32(ebp + (-0x14)) = edx; /* 0x3000C87B: mov dword ptr [ebp - 0x14], edx */
  11353     eax = MEM32(eax + 0x8); /* 0x3000C87E: mov eax, dword ptr [eax + 8] */
  11354     PUSH32(esp, 2); /* 0x3000C881: push 2 */
  11355     ecx = ebp + (-0x58); /* 0x3000C883: lea ecx, [ebp - 0x58] */
  11356     MEM32(ebp + (-0x10)) = eax; /* 0x3000C886: mov dword ptr [ebp - 0x10], eax */
  11357     RECOMP_ICALL(0x30007BA0u); /* 0x3000C889: call 0x30007ba0 */ /* not lifted */
  11358     RECOMP_FLAGS_IN();
  11359     ecx = MEM32(ebp + (-0x8C)); /* 0x3000C88E: mov ecx, dword ptr [ebp - 0x8c] */
  11360     edx = MEM32(ebp + (-0x94)); /* 0x3000C894: mov edx, dword ptr [ebp - 0x94] */
  11361     eax = MEM32(ebp + (-0x90)); /* 0x3000C89A: mov eax, dword ptr [ebp - 0x90] */
  11362     MEM32(ebp + (-0x34)) = ecx; /* 0x3000C8A0: mov dword ptr [ebp - 0x34], ecx */
  11363     PUSH32(esp, esi); /* 0x3000C8A3: push esi */
  11364     ecx = ebp + (-0x3C); /* 0x3000C8A4: lea ecx, [ebp - 0x3c] */
  11365     MEM32(ebp + (-0x3C)) = edx; /* 0x3000C8A7: mov dword ptr [ebp - 0x3c], edx */
  11366     MEM32(ebp + (-0x38)) = eax; /* 0x3000C8AA: mov dword ptr [ebp - 0x38], eax */
  11367     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C8AD: call dword ptr [0x300190ec] */
  11368     RECOMP_FLAGS_IN();
  11369     edx = MEM32(eax); /* 0x3000C8B3: mov edx, dword ptr [eax] */
  11370     MEM32(ebp + (-0x24)) = edx; /* 0x3000C8B5: mov dword ptr [ebp - 0x24], edx */
  11371     ecx = MEM32(eax + 0x4); /* 0x3000C8B8: mov ecx, dword ptr [eax + 4] */
  11372     MEM32(ebp + (-0x20)) = ecx; /* 0x3000C8BB: mov dword ptr [ebp - 0x20], ecx */
  11373     edx = MEM32(eax + 0x8); /* 0x3000C8BE: mov edx, dword ptr [eax + 8] */
  11374     MEM32(ebp + (-0x1C)) = edx; /* 0x3000C8C1: mov dword ptr [ebp - 0x1c], edx */
  11375     eax = edi; /* 0x3000C8C4: mov eax, edi */
  11376     ecx = MEM32(eax); /* 0x3000C8C6: mov ecx, dword ptr [eax] */
  11377     edx = MEM32(eax + 0x4); /* 0x3000C8C8: mov edx, dword ptr [eax + 4] */
  11378     eax = MEM32(eax + 0x8); /* 0x3000C8CB: mov eax, dword ptr [eax + 8] */
  11379     MEM32(ebp + (-0x30)) = ecx; /* 0x3000C8CE: mov dword ptr [ebp - 0x30], ecx */
  11380     ecx = ebp + (-0x24); /* 0x3000C8D1: lea ecx, [ebp - 0x24] */
  11381     PUSH32(esp, ecx); /* 0x3000C8D4: push ecx */
  11382     ecx = ebp + (-0x30); /* 0x3000C8D5: lea ecx, [ebp - 0x30] */
  11383     MEM32(ebp + (-0x2C)) = edx; /* 0x3000C8D8: mov dword ptr [ebp - 0x2c], edx */
  11384     MEM32(ebp + (-0x28)) = eax; /* 0x3000C8DB: mov dword ptr [ebp - 0x28], eax */
  11385     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C8DE: call dword ptr [0x300190c4] */
  11386     RECOMP_FLAGS_IN();
  11387     edx = MEM32(eax); /* 0x3000C8E4: mov edx, dword ptr [eax] */
  11388     MEM32(ebp + (-0x18)) = edx; /* 0x3000C8E6: mov dword ptr [ebp - 0x18], edx */
  11389     ecx = MEM32(eax + 0x4); /* 0x3000C8E9: mov ecx, dword ptr [eax + 4] */
  11390     MEM32(ebp + (-0x14)) = ecx; /* 0x3000C8EC: mov dword ptr [ebp - 0x14], ecx */
  11391     edx = MEM32(eax + 0x8); /* 0x3000C8EF: mov edx, dword ptr [eax + 8] */
  11392     eax = ebp + (-0x18); /* 0x3000C8F2: lea eax, [ebp - 0x18] */
  11393     PUSH32(esp, eax); /* 0x3000C8F5: push eax */
  11394     PUSH32(esp, 3); /* 0x3000C8F6: push 3 */
  11395     ecx = ebp + (-0x58); /* 0x3000C8F8: lea ecx, [ebp - 0x58] */
  11396     MEM32(ebp + (-0x10)) = edx; /* 0x3000C8FB: mov dword ptr [ebp - 0x10], edx */
  11397     RECOMP_ICALL(0x30007BA0u); /* 0x3000C8FE: call 0x30007ba0 */ /* not lifted */
  11398     RECOMP_FLAGS_IN();
  11399     eax = MEM32(ebx + 0x8); /* 0x3000C903: mov eax, dword ptr [ebx + 8] */
  11400     ecx = ebp + (-0x58); /* 0x3000C906: lea ecx, [ebp - 0x58] */
  11401     PUSH32(esp, ecx); /* 0x3000C909: push ecx */
  11402     PUSH32(esp, eax); /* 0x3000C90A: push eax */
  11403     ecx = ebx; /* 0x3000C90B: mov ecx, ebx */
  11404     RECOMP_ICALL(0x30002C40u); /* 0x3000C90D: call 0x30002c40 */ /* not lifted */
  11405     RECOMP_FLAGS_IN();
  11406     ecx = MEM32(ebp + (-0xB0)); /* 0x3000C912: mov ecx, dword ptr [ebp - 0xb0] */
  11407     edx = MEM32(ebp + (-0xB8)); /* 0x3000C918: mov edx, dword ptr [ebp - 0xb8] */
  11408     eax = MEM32(ebp + (-0xB4)); /* 0x3000C91E: mov eax, dword ptr [ebp - 0xb4] */
  11409     MEM32(ebp + (-0x34)) = ecx; /* 0x3000C924: mov dword ptr [ebp - 0x34], ecx */
  11410     PUSH32(esp, esi); /* 0x3000C927: push esi */
  11411     ecx = ebp + (-0x3C); /* 0x3000C928: lea ecx, [ebp - 0x3c] */
  11412     MEM32(ebp + (-0x3C)) = edx; /* 0x3000C92B: mov dword ptr [ebp - 0x3c], edx */
  11413     MEM32(ebp + (-0x38)) = eax; /* 0x3000C92E: mov dword ptr [ebp - 0x38], eax */
  11414     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C931: call dword ptr [0x300190ec] */
  11415     RECOMP_FLAGS_IN();
  11416     edx = MEM32(eax); /* 0x3000C937: mov edx, dword ptr [eax] */
  11417     MEM32(ebp + (-0x24)) = edx; /* 0x3000C939: mov dword ptr [ebp - 0x24], edx */
  11418     ecx = MEM32(eax + 0x4); /* 0x3000C93C: mov ecx, dword ptr [eax + 4] */
  11419     MEM32(ebp + (-0x20)) = ecx; /* 0x3000C93F: mov dword ptr [ebp - 0x20], ecx */
  11420     edx = MEM32(eax + 0x8); /* 0x3000C942: mov edx, dword ptr [eax + 8] */
  11421     eax = edi; /* 0x3000C945: mov eax, edi */
  11422     ecx = MEM32(eax); /* 0x3000C947: mov ecx, dword ptr [eax] */
  11423     MEM32(ebp + (-0x30)) = ecx; /* 0x3000C949: mov dword ptr [ebp - 0x30], ecx */
  11424     MEM32(ebp + (-0x1C)) = edx; /* 0x3000C94C: mov dword ptr [ebp - 0x1c], edx */
  11425     edx = MEM32(eax + 0x4); /* 0x3000C94F: mov edx, dword ptr [eax + 4] */
  11426     eax = MEM32(eax + 0x8); /* 0x3000C952: mov eax, dword ptr [eax + 8] */
  11427     ecx = ebp + (-0x24); /* 0x3000C955: lea ecx, [ebp - 0x24] */
  11428     PUSH32(esp, ecx); /* 0x3000C958: push ecx */
  11429     ecx = ebp + (-0x30); /* 0x3000C959: lea ecx, [ebp - 0x30] */
  11430     MEM32(ebp + (-0x2C)) = edx; /* 0x3000C95C: mov dword ptr [ebp - 0x2c], edx */
  11431     MEM32(ebp + (-0x28)) = eax; /* 0x3000C95F: mov dword ptr [ebp - 0x28], eax */
  11432     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C962: call dword ptr [0x300190c4] */
  11433     RECOMP_FLAGS_IN();
  11434     edx = MEM32(eax); /* 0x3000C968: mov edx, dword ptr [eax] */
  11435     MEM32(ebp + (-0x18)) = edx; /* 0x3000C96A: mov dword ptr [ebp - 0x18], edx */
  11436     ecx = MEM32(eax + 0x4); /* 0x3000C96D: mov ecx, dword ptr [eax + 4] */
  11437     MEM32(ebp + (-0x14)) = ecx; /* 0x3000C970: mov dword ptr [ebp - 0x14], ecx */
  11438     edx = MEM32(eax + 0x8); /* 0x3000C973: mov edx, dword ptr [eax + 8] */
  11439     eax = ebp + (-0x18); /* 0x3000C976: lea eax, [ebp - 0x18] */
  11440     PUSH32(esp, eax); /* 0x3000C979: push eax */
  11441     PUSH32(esp, 0); /* 0x3000C97A: push 0 */
  11442     ecx = ebp + (-0x58); /* 0x3000C97C: lea ecx, [ebp - 0x58] */
  11443     MEM32(ebp + (-0x10)) = edx; /* 0x3000C97F: mov dword ptr [ebp - 0x10], edx */
  11444     RECOMP_ICALL(0x30007BA0u); /* 0x3000C982: call 0x30007ba0 */ /* not lifted */
  11445     RECOMP_FLAGS_IN();
  11446     ecx = MEM32(ebp + (-0xD0)); /* 0x3000C987: mov ecx, dword ptr [ebp - 0xd0] */
  11447     edx = MEM32(ebp + (-0xCC)); /* 0x3000C98D: mov edx, dword ptr [ebp - 0xcc] */
  11448     eax = MEM32(ebp + (-0xC8)); /* 0x3000C993: mov eax, dword ptr [ebp - 0xc8] */
  11449     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000C999: mov dword ptr [ebp - 0x3c], ecx */
  11450     PUSH32(esp, esi); /* 0x3000C99C: push esi */
  11451     ecx = ebp + (-0x3C); /* 0x3000C99D: lea ecx, [ebp - 0x3c] */
  11452     MEM32(ebp + (-0x38)) = edx; /* 0x3000C9A0: mov dword ptr [ebp - 0x38], edx */
  11453     MEM32(ebp + (-0x34)) = eax; /* 0x3000C9A3: mov dword ptr [ebp - 0x34], eax */
  11454     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000C9A6: call dword ptr [0x300190ec] */
  11455     RECOMP_FLAGS_IN();
  11456     ecx = MEM32(eax); /* 0x3000C9AC: mov ecx, dword ptr [eax] */
  11457     MEM32(ebp + (-0x24)) = ecx; /* 0x3000C9AE: mov dword ptr [ebp - 0x24], ecx */
  11458     edx = MEM32(eax + 0x4); /* 0x3000C9B1: mov edx, dword ptr [eax + 4] */
  11459     MEM32(ebp + (-0x20)) = edx; /* 0x3000C9B4: mov dword ptr [ebp - 0x20], edx */
  11460     eax = MEM32(eax + 0x8); /* 0x3000C9B7: mov eax, dword ptr [eax + 8] */
  11461     ecx = edi; /* 0x3000C9BA: mov ecx, edi */
  11462     edx = MEM32(ecx); /* 0x3000C9BC: mov edx, dword ptr [ecx] */
  11463     MEM32(ebp + (-0x1C)) = eax; /* 0x3000C9BE: mov dword ptr [ebp - 0x1c], eax */
  11464     eax = MEM32(ecx + 0x4); /* 0x3000C9C1: mov eax, dword ptr [ecx + 4] */
  11465     ecx = MEM32(ecx + 0x8); /* 0x3000C9C4: mov ecx, dword ptr [ecx + 8] */
  11466     MEM32(ebp + (-0x30)) = edx; /* 0x3000C9C7: mov dword ptr [ebp - 0x30], edx */
  11467     edx = ebp + (-0x24); /* 0x3000C9CA: lea edx, [ebp - 0x24] */
  11468     MEM32(ebp + (-0x28)) = ecx; /* 0x3000C9CD: mov dword ptr [ebp - 0x28], ecx */
  11469     PUSH32(esp, edx); /* 0x3000C9D0: push edx */
  11470     ecx = ebp + (-0x30); /* 0x3000C9D1: lea ecx, [ebp - 0x30] */
  11471     MEM32(ebp + (-0x2C)) = eax; /* 0x3000C9D4: mov dword ptr [ebp - 0x2c], eax */
  11472     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000C9D7: call dword ptr [0x300190c4] */
  11473     RECOMP_FLAGS_IN();
  11474     ecx = MEM32(eax); /* 0x3000C9DD: mov ecx, dword ptr [eax] */
  11475     MEM32(ebp + (-0x18)) = ecx; /* 0x3000C9DF: mov dword ptr [ebp - 0x18], ecx */
  11476     edx = MEM32(eax + 0x4); /* 0x3000C9E2: mov edx, dword ptr [eax + 4] */
  11477     ecx = ebp + (-0x18); /* 0x3000C9E5: lea ecx, [ebp - 0x18] */
  11478     PUSH32(esp, ecx); /* 0x3000C9E8: push ecx */
  11479     MEM32(ebp + (-0x14)) = edx; /* 0x3000C9E9: mov dword ptr [ebp - 0x14], edx */
  11480     eax = MEM32(eax + 0x8); /* 0x3000C9EC: mov eax, dword ptr [eax + 8] */
  11481     PUSH32(esp, 1); /* 0x3000C9EF: push 1 */
  11482     ecx = ebp + (-0x58); /* 0x3000C9F1: lea ecx, [ebp - 0x58] */
  11483     MEM32(ebp + (-0x10)) = eax; /* 0x3000C9F4: mov dword ptr [ebp - 0x10], eax */
  11484     RECOMP_ICALL(0x30007BA0u); /* 0x3000C9F7: call 0x30007ba0 */ /* not lifted */
  11485     RECOMP_FLAGS_IN();
  11486     ecx = MEM32(ebp + (-0x110)); /* 0x3000C9FC: mov ecx, dword ptr [ebp - 0x110] */
  11487     edx = MEM32(ebp + (-0x118)); /* 0x3000CA02: mov edx, dword ptr [ebp - 0x118] */
  11488     eax = MEM32(ebp + (-0x114)); /* 0x3000CA08: mov eax, dword ptr [ebp - 0x114] */
  11489     MEM32(ebp + (-0x34)) = ecx; /* 0x3000CA0E: mov dword ptr [ebp - 0x34], ecx */
  11490     PUSH32(esp, esi); /* 0x3000CA11: push esi */
  11491     ecx = ebp + (-0x3C); /* 0x3000CA12: lea ecx, [ebp - 0x3c] */
  11492     MEM32(ebp + (-0x3C)) = edx; /* 0x3000CA15: mov dword ptr [ebp - 0x3c], edx */
  11493     MEM32(ebp + (-0x38)) = eax; /* 0x3000CA18: mov dword ptr [ebp - 0x38], eax */
  11494     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CA1B: call dword ptr [0x300190ec] */
  11495     RECOMP_FLAGS_IN();
  11496     edx = MEM32(eax); /* 0x3000CA21: mov edx, dword ptr [eax] */
  11497     MEM32(ebp + (-0x24)) = edx; /* 0x3000CA23: mov dword ptr [ebp - 0x24], edx */
  11498     ecx = MEM32(eax + 0x4); /* 0x3000CA26: mov ecx, dword ptr [eax + 4] */
  11499     MEM32(ebp + (-0x20)) = ecx; /* 0x3000CA29: mov dword ptr [ebp - 0x20], ecx */
  11500     edx = MEM32(eax + 0x8); /* 0x3000CA2C: mov edx, dword ptr [eax + 8] */
  11501     eax = edi; /* 0x3000CA2F: mov eax, edi */
  11502     ecx = MEM32(eax); /* 0x3000CA31: mov ecx, dword ptr [eax] */
  11503     MEM32(ebp + (-0x30)) = ecx; /* 0x3000CA33: mov dword ptr [ebp - 0x30], ecx */
  11504     MEM32(ebp + (-0x1C)) = edx; /* 0x3000CA36: mov dword ptr [ebp - 0x1c], edx */
  11505     edx = MEM32(eax + 0x4); /* 0x3000CA39: mov edx, dword ptr [eax + 4] */
  11506     eax = MEM32(eax + 0x8); /* 0x3000CA3C: mov eax, dword ptr [eax + 8] */
  11507     ecx = ebp + (-0x24); /* 0x3000CA3F: lea ecx, [ebp - 0x24] */
  11508     PUSH32(esp, ecx); /* 0x3000CA42: push ecx */
  11509     ecx = ebp + (-0x30); /* 0x3000CA43: lea ecx, [ebp - 0x30] */
  11510     MEM32(ebp + (-0x2C)) = edx; /* 0x3000CA46: mov dword ptr [ebp - 0x2c], edx */
  11511     MEM32(ebp + (-0x28)) = eax; /* 0x3000CA49: mov dword ptr [ebp - 0x28], eax */
  11512     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CA4C: call dword ptr [0x300190c4] */
  11513     RECOMP_FLAGS_IN();
  11514     edx = MEM32(eax); /* 0x3000CA52: mov edx, dword ptr [eax] */
  11515     MEM32(ebp + (-0x18)) = edx; /* 0x3000CA54: mov dword ptr [ebp - 0x18], edx */
  11516     ecx = MEM32(eax + 0x4); /* 0x3000CA57: mov ecx, dword ptr [eax + 4] */
  11517     MEM32(ebp + (-0x14)) = ecx; /* 0x3000CA5A: mov dword ptr [ebp - 0x14], ecx */
  11518     edx = MEM32(eax + 0x8); /* 0x3000CA5D: mov edx, dword ptr [eax + 8] */
  11519     eax = ebp + (-0x18); /* 0x3000CA60: lea eax, [ebp - 0x18] */
  11520     PUSH32(esp, eax); /* 0x3000CA63: push eax */
  11521     PUSH32(esp, 2); /* 0x3000CA64: push 2 */
  11522     ecx = ebp + (-0x58); /* 0x3000CA66: lea ecx, [ebp - 0x58] */
  11523     MEM32(ebp + (-0x10)) = edx; /* 0x3000CA69: mov dword ptr [ebp - 0x10], edx */
  11524     RECOMP_ICALL(0x30007BA0u); /* 0x3000CA6C: call 0x30007ba0 */ /* not lifted */
  11525     RECOMP_FLAGS_IN();
  11526     ecx = MEM32(ebp + (-0x88)); /* 0x3000CA71: mov ecx, dword ptr [ebp - 0x88] */
  11527     edx = MEM32(ebp + (-0x84)); /* 0x3000CA77: mov edx, dword ptr [ebp - 0x84] */
  11528     eax = MEM32(ebp + (-0x80)); /* 0x3000CA7D: mov eax, dword ptr [ebp - 0x80] */
  11529     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000CA80: mov dword ptr [ebp - 0x3c], ecx */
  11530     PUSH32(esp, esi); /* 0x3000CA83: push esi */
  11531     ecx = ebp + (-0x3C); /* 0x3000CA84: lea ecx, [ebp - 0x3c] */
  11532     MEM32(ebp + (-0x38)) = edx; /* 0x3000CA87: mov dword ptr [ebp - 0x38], edx */
  11533     MEM32(ebp + (-0x34)) = eax; /* 0x3000CA8A: mov dword ptr [ebp - 0x34], eax */
  11534     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CA8D: call dword ptr [0x300190ec] */
  11535     RECOMP_FLAGS_IN();
  11536     ecx = MEM32(eax); /* 0x3000CA93: mov ecx, dword ptr [eax] */
  11537     MEM32(ebp + (-0x24)) = ecx; /* 0x3000CA95: mov dword ptr [ebp - 0x24], ecx */
  11538     edx = MEM32(eax + 0x4); /* 0x3000CA98: mov edx, dword ptr [eax + 4] */
  11539     MEM32(ebp + (-0x20)) = edx; /* 0x3000CA9B: mov dword ptr [ebp - 0x20], edx */
  11540     eax = MEM32(eax + 0x8); /* 0x3000CA9E: mov eax, dword ptr [eax + 8] */
  11541     ecx = edi; /* 0x3000CAA1: mov ecx, edi */
  11542     edx = MEM32(ecx); /* 0x3000CAA3: mov edx, dword ptr [ecx] */
  11543     MEM32(ebp + (-0x1C)) = eax; /* 0x3000CAA5: mov dword ptr [ebp - 0x1c], eax */
  11544     eax = MEM32(ecx + 0x4); /* 0x3000CAA8: mov eax, dword ptr [ecx + 4] */
  11545     ecx = MEM32(ecx + 0x8); /* 0x3000CAAB: mov ecx, dword ptr [ecx + 8] */
  11546     MEM32(ebp + (-0x30)) = edx; /* 0x3000CAAE: mov dword ptr [ebp - 0x30], edx */
  11547     edx = ebp + (-0x24); /* 0x3000CAB1: lea edx, [ebp - 0x24] */
  11548     MEM32(ebp + (-0x2C)) = eax; /* 0x3000CAB4: mov dword ptr [ebp - 0x2c], eax */
  11549     MEM32(ebp + (-0x28)) = ecx; /* 0x3000CAB7: mov dword ptr [ebp - 0x28], ecx */
  11550     PUSH32(esp, edx); /* 0x3000CABA: push edx */
  11551     ecx = ebp + (-0x30); /* 0x3000CABB: lea ecx, [ebp - 0x30] */
  11552     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CABE: call dword ptr [0x300190c4] */
  11553     RECOMP_FLAGS_IN();
  11554     ecx = MEM32(eax); /* 0x3000CAC4: mov ecx, dword ptr [eax] */
  11555     MEM32(ebp + (-0x18)) = ecx; /* 0x3000CAC6: mov dword ptr [ebp - 0x18], ecx */
  11556     edx = MEM32(eax + 0x4); /* 0x3000CAC9: mov edx, dword ptr [eax + 4] */
  11557     ecx = ebp + (-0x18); /* 0x3000CACC: lea ecx, [ebp - 0x18] */
  11558     PUSH32(esp, ecx); /* 0x3000CACF: push ecx */
  11559     MEM32(ebp + (-0x14)) = edx; /* 0x3000CAD0: mov dword ptr [ebp - 0x14], edx */
  11560     eax = MEM32(eax + 0x8); /* 0x3000CAD3: mov eax, dword ptr [eax + 8] */
  11561     PUSH32(esp, 3); /* 0x3000CAD6: push 3 */
  11562     ecx = ebp + (-0x58); /* 0x3000CAD8: lea ecx, [ebp - 0x58] */
  11563     MEM32(ebp + (-0x10)) = eax; /* 0x3000CADB: mov dword ptr [ebp - 0x10], eax */
  11564     RECOMP_ICALL(0x30007BA0u); /* 0x3000CADE: call 0x30007ba0 */ /* not lifted */
  11565     RECOMP_FLAGS_IN();
  11566     eax = MEM32(ebx + 0x8); /* 0x3000CAE3: mov eax, dword ptr [ebx + 8] */
  11567     edx = ebp + (-0x58); /* 0x3000CAE6: lea edx, [ebp - 0x58] */
  11568     PUSH32(esp, edx); /* 0x3000CAE9: push edx */
  11569     PUSH32(esp, eax); /* 0x3000CAEA: push eax */
  11570     ecx = ebx; /* 0x3000CAEB: mov ecx, ebx */
  11571     RECOMP_ICALL(0x30002C40u); /* 0x3000CAED: call 0x30002c40 */ /* not lifted */
  11572     RECOMP_FLAGS_IN();
  11573     ecx = MEM32(ebp + (-0xCC)); /* 0x3000CAF2: mov ecx, dword ptr [ebp - 0xcc] */
  11574     eax = MEM32(ebp + (-0xD0)); /* 0x3000CAF8: mov eax, dword ptr [ebp - 0xd0] */
  11575     edx = MEM32(ebp + (-0xC8)); /* 0x3000CAFE: mov edx, dword ptr [ebp - 0xc8] */
  11576     MEM32(ebp + (-0x38)) = ecx; /* 0x3000CB04: mov dword ptr [ebp - 0x38], ecx */
  11577     PUSH32(esp, esi); /* 0x3000CB07: push esi */
  11578     ecx = ebp + (-0x3C); /* 0x3000CB08: lea ecx, [ebp - 0x3c] */
  11579     MEM32(ebp + (-0x3C)) = eax; /* 0x3000CB0B: mov dword ptr [ebp - 0x3c], eax */
  11580     MEM32(ebp + (-0x34)) = edx; /* 0x3000CB0E: mov dword ptr [ebp - 0x34], edx */
  11581     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CB11: call dword ptr [0x300190ec] */
  11582     RECOMP_FLAGS_IN();
  11583     ecx = MEM32(eax); /* 0x3000CB17: mov ecx, dword ptr [eax] */
  11584     MEM32(ebp + (-0x24)) = ecx; /* 0x3000CB19: mov dword ptr [ebp - 0x24], ecx */
  11585     edx = MEM32(eax + 0x4); /* 0x3000CB1C: mov edx, dword ptr [eax + 4] */
  11586     MEM32(ebp + (-0x20)) = edx; /* 0x3000CB1F: mov dword ptr [ebp - 0x20], edx */
  11587     eax = MEM32(eax + 0x8); /* 0x3000CB22: mov eax, dword ptr [eax + 8] */
  11588     ecx = edi; /* 0x3000CB25: mov ecx, edi */
  11589     edx = MEM32(ecx); /* 0x3000CB27: mov edx, dword ptr [ecx] */
  11590     MEM32(ebp + (-0x1C)) = eax; /* 0x3000CB29: mov dword ptr [ebp - 0x1c], eax */
  11591     eax = MEM32(ecx + 0x4); /* 0x3000CB2C: mov eax, dword ptr [ecx + 4] */
  11592     ecx = MEM32(ecx + 0x8); /* 0x3000CB2F: mov ecx, dword ptr [ecx + 8] */
  11593     MEM32(ebp + (-0x30)) = edx; /* 0x3000CB32: mov dword ptr [ebp - 0x30], edx */
  11594     edx = ebp + (-0x24); /* 0x3000CB35: lea edx, [ebp - 0x24] */
  11595     MEM32(ebp + (-0x28)) = ecx; /* 0x3000CB38: mov dword ptr [ebp - 0x28], ecx */
  11596     PUSH32(esp, edx); /* 0x3000CB3B: push edx */
  11597     ecx = ebp + (-0x30); /* 0x3000CB3C: lea ecx, [ebp - 0x30] */
  11598     MEM32(ebp + (-0x2C)) = eax; /* 0x3000CB3F: mov dword ptr [ebp - 0x2c], eax */
  11599     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CB42: call dword ptr [0x300190c4] */
  11600     RECOMP_FLAGS_IN();
  11601     ecx = MEM32(eax); /* 0x3000CB48: mov ecx, dword ptr [eax] */
  11602     MEM32(ebp + (-0x18)) = ecx; /* 0x3000CB4A: mov dword ptr [ebp - 0x18], ecx */
  11603     edx = MEM32(eax + 0x4); /* 0x3000CB4D: mov edx, dword ptr [eax + 4] */
  11604     ecx = ebp + (-0x18); /* 0x3000CB50: lea ecx, [ebp - 0x18] */
  11605     PUSH32(esp, ecx); /* 0x3000CB53: push ecx */
  11606     MEM32(ebp + (-0x14)) = edx; /* 0x3000CB54: mov dword ptr [ebp - 0x14], edx */
  11607     eax = MEM32(eax + 0x8); /* 0x3000CB57: mov eax, dword ptr [eax + 8] */
  11608     PUSH32(esp, 0); /* 0x3000CB5A: push 0 */
  11609     ecx = ebp + (-0x58); /* 0x3000CB5C: lea ecx, [ebp - 0x58] */
  11610     MEM32(ebp + (-0x10)) = eax; /* 0x3000CB5F: mov dword ptr [ebp - 0x10], eax */
  11611     RECOMP_ICALL(0x30007BA0u); /* 0x3000CB62: call 0x30007ba0 */ /* not lifted */
  11612     RECOMP_FLAGS_IN();
  11613     ecx = MEM32(ebp + (-0xEC)); /* 0x3000CB67: mov ecx, dword ptr [ebp - 0xec] */
  11614     edx = MEM32(ebp + (-0xF4)); /* 0x3000CB6D: mov edx, dword ptr [ebp - 0xf4] */
  11615     eax = MEM32(ebp + (-0xF0)); /* 0x3000CB73: mov eax, dword ptr [ebp - 0xf0] */
  11616     MEM32(ebp + (-0x34)) = ecx; /* 0x3000CB79: mov dword ptr [ebp - 0x34], ecx */
  11617     PUSH32(esp, esi); /* 0x3000CB7C: push esi */
  11618     ecx = ebp + (-0x3C); /* 0x3000CB7D: lea ecx, [ebp - 0x3c] */
  11619     MEM32(ebp + (-0x3C)) = edx; /* 0x3000CB80: mov dword ptr [ebp - 0x3c], edx */
  11620     MEM32(ebp + (-0x38)) = eax; /* 0x3000CB83: mov dword ptr [ebp - 0x38], eax */
  11621     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CB86: call dword ptr [0x300190ec] */
  11622     RECOMP_FLAGS_IN();
  11623     edx = MEM32(eax); /* 0x3000CB8C: mov edx, dword ptr [eax] */
  11624     MEM32(ebp + (-0x24)) = edx; /* 0x3000CB8E: mov dword ptr [ebp - 0x24], edx */
  11625     ecx = MEM32(eax + 0x4); /* 0x3000CB91: mov ecx, dword ptr [eax + 4] */
  11626     MEM32(ebp + (-0x20)) = ecx; /* 0x3000CB94: mov dword ptr [ebp - 0x20], ecx */
  11627     edx = MEM32(eax + 0x8); /* 0x3000CB97: mov edx, dword ptr [eax + 8] */
  11628     eax = edi; /* 0x3000CB9A: mov eax, edi */
  11629     ecx = MEM32(eax); /* 0x3000CB9C: mov ecx, dword ptr [eax] */
  11630     MEM32(ebp + (-0x1C)) = edx; /* 0x3000CB9E: mov dword ptr [ebp - 0x1c], edx */
  11631     edx = MEM32(eax + 0x4); /* 0x3000CBA1: mov edx, dword ptr [eax + 4] */
  11632     eax = MEM32(eax + 0x8); /* 0x3000CBA4: mov eax, dword ptr [eax + 8] */
  11633     MEM32(ebp + (-0x30)) = ecx; /* 0x3000CBA7: mov dword ptr [ebp - 0x30], ecx */
  11634     ecx = ebp + (-0x24); /* 0x3000CBAA: lea ecx, [ebp - 0x24] */
  11635     PUSH32(esp, ecx); /* 0x3000CBAD: push ecx */
  11636     MEM32(ebp + (-0x2C)) = edx; /* 0x3000CBAE: mov dword ptr [ebp - 0x2c], edx */
  11637     MEM32(ebp + (-0x28)) = eax; /* 0x3000CBB1: mov dword ptr [ebp - 0x28], eax */
  11638     ecx = ebp + (-0x30); /* 0x3000CBB4: lea ecx, [ebp - 0x30] */
  11639     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CBB7: call dword ptr [0x300190c4] */
  11640     RECOMP_FLAGS_IN();
  11641     edx = MEM32(eax); /* 0x3000CBBD: mov edx, dword ptr [eax] */
  11642     MEM32(ebp + (-0x18)) = edx; /* 0x3000CBBF: mov dword ptr [ebp - 0x18], edx */
  11643     ecx = MEM32(eax + 0x4); /* 0x3000CBC2: mov ecx, dword ptr [eax + 4] */
  11644     MEM32(ebp + (-0x14)) = ecx; /* 0x3000CBC5: mov dword ptr [ebp - 0x14], ecx */
  11645     edx = MEM32(eax + 0x8); /* 0x3000CBC8: mov edx, dword ptr [eax + 8] */
  11646     eax = ebp + (-0x18); /* 0x3000CBCB: lea eax, [ebp - 0x18] */
  11647     PUSH32(esp, eax); /* 0x3000CBCE: push eax */
  11648     PUSH32(esp, 1); /* 0x3000CBCF: push 1 */
  11649     ecx = ebp + (-0x58); /* 0x3000CBD1: lea ecx, [ebp - 0x58] */
  11650     MEM32(ebp + (-0x10)) = edx; /* 0x3000CBD4: mov dword ptr [ebp - 0x10], edx */
  11651     RECOMP_ICALL(0x30007BA0u); /* 0x3000CBD7: call 0x30007ba0 */ /* not lifted */
  11652     RECOMP_FLAGS_IN();
  11653     ecx = MEM32(ebp + (-0x10C)); /* 0x3000CBDC: mov ecx, dword ptr [ebp - 0x10c] */
  11654     edx = MEM32(ebp + (-0x108)); /* 0x3000CBE2: mov edx, dword ptr [ebp - 0x108] */
  11655     eax = MEM32(ebp + (-0x104)); /* 0x3000CBE8: mov eax, dword ptr [ebp - 0x104] */
  11656     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000CBEE: mov dword ptr [ebp - 0x3c], ecx */
  11657     PUSH32(esp, esi); /* 0x3000CBF1: push esi */
  11658     ecx = ebp + (-0x3C); /* 0x3000CBF2: lea ecx, [ebp - 0x3c] */
  11659     MEM32(ebp + (-0x38)) = edx; /* 0x3000CBF5: mov dword ptr [ebp - 0x38], edx */
  11660     MEM32(ebp + (-0x34)) = eax; /* 0x3000CBF8: mov dword ptr [ebp - 0x34], eax */
  11661     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CBFB: call dword ptr [0x300190ec] */
  11662     RECOMP_FLAGS_IN();
  11663     ecx = MEM32(eax); /* 0x3000CC01: mov ecx, dword ptr [eax] */
  11664     MEM32(ebp + (-0x24)) = ecx; /* 0x3000CC03: mov dword ptr [ebp - 0x24], ecx */
  11665     edx = MEM32(eax + 0x4); /* 0x3000CC06: mov edx, dword ptr [eax + 4] */
  11666     MEM32(ebp + (-0x20)) = edx; /* 0x3000CC09: mov dword ptr [ebp - 0x20], edx */
  11667     eax = MEM32(eax + 0x8); /* 0x3000CC0C: mov eax, dword ptr [eax + 8] */
  11668     ecx = edi; /* 0x3000CC0F: mov ecx, edi */
  11669     edx = MEM32(ecx); /* 0x3000CC11: mov edx, dword ptr [ecx] */
  11670     MEM32(ebp + (-0x1C)) = eax; /* 0x3000CC13: mov dword ptr [ebp - 0x1c], eax */
  11671     eax = MEM32(ecx + 0x4); /* 0x3000CC16: mov eax, dword ptr [ecx + 4] */
  11672     ecx = MEM32(ecx + 0x8); /* 0x3000CC19: mov ecx, dword ptr [ecx + 8] */
  11673     MEM32(ebp + (-0x30)) = edx; /* 0x3000CC1C: mov dword ptr [ebp - 0x30], edx */
  11674     edx = ebp + (-0x24); /* 0x3000CC1F: lea edx, [ebp - 0x24] */
  11675     MEM32(ebp + (-0x28)) = ecx; /* 0x3000CC22: mov dword ptr [ebp - 0x28], ecx */
  11676     PUSH32(esp, edx); /* 0x3000CC25: push edx */
  11677     ecx = ebp + (-0x30); /* 0x3000CC26: lea ecx, [ebp - 0x30] */
  11678     MEM32(ebp + (-0x2C)) = eax; /* 0x3000CC29: mov dword ptr [ebp - 0x2c], eax */
  11679     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CC2C: call dword ptr [0x300190c4] */
  11680     RECOMP_FLAGS_IN();
  11681     ecx = MEM32(eax); /* 0x3000CC32: mov ecx, dword ptr [eax] */
  11682     MEM32(ebp + (-0x18)) = ecx; /* 0x3000CC34: mov dword ptr [ebp - 0x18], ecx */
  11683     edx = MEM32(eax + 0x4); /* 0x3000CC37: mov edx, dword ptr [eax + 4] */
  11684     ecx = ebp + (-0x18); /* 0x3000CC3A: lea ecx, [ebp - 0x18] */
  11685     PUSH32(esp, ecx); /* 0x3000CC3D: push ecx */
  11686     MEM32(ebp + (-0x14)) = edx; /* 0x3000CC3E: mov dword ptr [ebp - 0x14], edx */
  11687     eax = MEM32(eax + 0x8); /* 0x3000CC41: mov eax, dword ptr [eax + 8] */
  11688     PUSH32(esp, 2); /* 0x3000CC44: push 2 */
  11689     ecx = ebp + (-0x58); /* 0x3000CC46: lea ecx, [ebp - 0x58] */
  11690     MEM32(ebp + (-0x10)) = eax; /* 0x3000CC49: mov dword ptr [ebp - 0x10], eax */
  11691     RECOMP_ICALL(0x30007BA0u); /* 0x3000CC4C: call 0x30007ba0 */ /* not lifted */
  11692     RECOMP_FLAGS_IN();
  11693     ecx = MEM32(ebp + (-0x110)); /* 0x3000CC51: mov ecx, dword ptr [ebp - 0x110] */
  11694     edx = MEM32(ebp + (-0x118)); /* 0x3000CC57: mov edx, dword ptr [ebp - 0x118] */
  11695     eax = MEM32(ebp + (-0x114)); /* 0x3000CC5D: mov eax, dword ptr [ebp - 0x114] */
  11696     MEM32(ebp + (-0x34)) = ecx; /* 0x3000CC63: mov dword ptr [ebp - 0x34], ecx */
  11697     PUSH32(esp, esi); /* 0x3000CC66: push esi */
  11698     ecx = ebp + (-0x3C); /* 0x3000CC67: lea ecx, [ebp - 0x3c] */
  11699     MEM32(ebp + (-0x3C)) = edx; /* 0x3000CC6A: mov dword ptr [ebp - 0x3c], edx */
  11700     MEM32(ebp + (-0x38)) = eax; /* 0x3000CC6D: mov dword ptr [ebp - 0x38], eax */
  11701     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CC70: call dword ptr [0x300190ec] */
  11702     RECOMP_FLAGS_IN();
  11703     edx = MEM32(eax); /* 0x3000CC76: mov edx, dword ptr [eax] */
  11704     MEM32(ebp + (-0x24)) = edx; /* 0x3000CC78: mov dword ptr [ebp - 0x24], edx */
  11705     ecx = MEM32(eax + 0x4); /* 0x3000CC7B: mov ecx, dword ptr [eax + 4] */
  11706     MEM32(ebp + (-0x20)) = ecx; /* 0x3000CC7E: mov dword ptr [ebp - 0x20], ecx */
  11707     edx = MEM32(eax + 0x8); /* 0x3000CC81: mov edx, dword ptr [eax + 8] */
  11708     eax = edi; /* 0x3000CC84: mov eax, edi */
  11709     ecx = MEM32(eax); /* 0x3000CC86: mov ecx, dword ptr [eax] */
  11710     MEM32(ebp + (-0x30)) = ecx; /* 0x3000CC88: mov dword ptr [ebp - 0x30], ecx */
  11711     MEM32(ebp + (-0x1C)) = edx; /* 0x3000CC8B: mov dword ptr [ebp - 0x1c], edx */
  11712     edx = MEM32(eax + 0x4); /* 0x3000CC8E: mov edx, dword ptr [eax + 4] */
  11713     eax = MEM32(eax + 0x8); /* 0x3000CC91: mov eax, dword ptr [eax + 8] */
  11714     ecx = ebp + (-0x24); /* 0x3000CC94: lea ecx, [ebp - 0x24] */
  11715     PUSH32(esp, ecx); /* 0x3000CC97: push ecx */
  11716     ecx = ebp + (-0x30); /* 0x3000CC98: lea ecx, [ebp - 0x30] */
  11717     MEM32(ebp + (-0x2C)) = edx; /* 0x3000CC9B: mov dword ptr [ebp - 0x2c], edx */
  11718     MEM32(ebp + (-0x28)) = eax; /* 0x3000CC9E: mov dword ptr [ebp - 0x28], eax */
  11719     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CCA1: call dword ptr [0x300190c4] */
  11720     RECOMP_FLAGS_IN();
  11721     edx = MEM32(eax); /* 0x3000CCA7: mov edx, dword ptr [eax] */
  11722     MEM32(ebp + (-0x18)) = edx; /* 0x3000CCA9: mov dword ptr [ebp - 0x18], edx */
  11723     ecx = MEM32(eax + 0x4); /* 0x3000CCAC: mov ecx, dword ptr [eax + 4] */
  11724     MEM32(ebp + (-0x14)) = ecx; /* 0x3000CCAF: mov dword ptr [ebp - 0x14], ecx */
  11725     edx = MEM32(eax + 0x8); /* 0x3000CCB2: mov edx, dword ptr [eax + 8] */
  11726     MEM32(ebp + (-0x10)) = edx; /* 0x3000CCB5: mov dword ptr [ebp - 0x10], edx */
  11727     eax = ebp + (-0x18); /* 0x3000CCB8: lea eax, [ebp - 0x18] */
  11728     PUSH32(esp, eax); /* 0x3000CCBB: push eax */
  11729     PUSH32(esp, 3); /* 0x3000CCBC: push 3 */
  11730     ecx = ebp + (-0x58); /* 0x3000CCBE: lea ecx, [ebp - 0x58] */
  11731     RECOMP_ICALL(0x30007BA0u); /* 0x3000CCC1: call 0x30007ba0 */ /* not lifted */
  11732     RECOMP_FLAGS_IN();
  11733     eax = MEM32(ebx + 0x8); /* 0x3000CCC6: mov eax, dword ptr [ebx + 8] */
  11734     ecx = ebp + (-0x58); /* 0x3000CCC9: lea ecx, [ebp - 0x58] */
  11735     PUSH32(esp, ecx); /* 0x3000CCCC: push ecx */
  11736     PUSH32(esp, eax); /* 0x3000CCCD: push eax */
  11737     ecx = ebx; /* 0x3000CCCE: mov ecx, ebx */
  11738     RECOMP_ICALL(0x30002C40u); /* 0x3000CCD0: call 0x30002c40 */ /* not lifted */
  11739     RECOMP_FLAGS_IN();
  11740     ecx = MEM32(ebp + (-0xEC)); /* 0x3000CCD5: mov ecx, dword ptr [ebp - 0xec] */
  11741     edx = MEM32(ebp + (-0xF4)); /* 0x3000CCDB: mov edx, dword ptr [ebp - 0xf4] */
  11742     eax = MEM32(ebp + (-0xF0)); /* 0x3000CCE1: mov eax, dword ptr [ebp - 0xf0] */
  11743     MEM32(ebp + (-0x34)) = ecx; /* 0x3000CCE7: mov dword ptr [ebp - 0x34], ecx */
  11744     PUSH32(esp, esi); /* 0x3000CCEA: push esi */
  11745     ecx = ebp + (-0x3C); /* 0x3000CCEB: lea ecx, [ebp - 0x3c] */
  11746     MEM32(ebp + (-0x3C)) = edx; /* 0x3000CCEE: mov dword ptr [ebp - 0x3c], edx */
  11747     MEM32(ebp + (-0x38)) = eax; /* 0x3000CCF1: mov dword ptr [ebp - 0x38], eax */
  11748     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CCF4: call dword ptr [0x300190ec] */
  11749     RECOMP_FLAGS_IN();
  11750     edx = MEM32(eax); /* 0x3000CCFA: mov edx, dword ptr [eax] */
  11751     MEM32(ebp + (-0x24)) = edx; /* 0x3000CCFC: mov dword ptr [ebp - 0x24], edx */
  11752     ecx = MEM32(eax + 0x4); /* 0x3000CCFF: mov ecx, dword ptr [eax + 4] */
  11753     MEM32(ebp + (-0x20)) = ecx; /* 0x3000CD02: mov dword ptr [ebp - 0x20], ecx */
  11754     edx = MEM32(eax + 0x8); /* 0x3000CD05: mov edx, dword ptr [eax + 8] */
  11755     eax = edi; /* 0x3000CD08: mov eax, edi */
  11756     ecx = MEM32(eax); /* 0x3000CD0A: mov ecx, dword ptr [eax] */
  11757     MEM32(ebp + (-0x30)) = ecx; /* 0x3000CD0C: mov dword ptr [ebp - 0x30], ecx */
  11758     MEM32(ebp + (-0x1C)) = edx; /* 0x3000CD0F: mov dword ptr [ebp - 0x1c], edx */
  11759     edx = MEM32(eax + 0x4); /* 0x3000CD12: mov edx, dword ptr [eax + 4] */
  11760     eax = MEM32(eax + 0x8); /* 0x3000CD15: mov eax, dword ptr [eax + 8] */
  11761     ecx = ebp + (-0x24); /* 0x3000CD18: lea ecx, [ebp - 0x24] */
  11762     PUSH32(esp, ecx); /* 0x3000CD1B: push ecx */
  11763     ecx = ebp + (-0x30); /* 0x3000CD1C: lea ecx, [ebp - 0x30] */
  11764     MEM32(ebp + (-0x2C)) = edx; /* 0x3000CD1F: mov dword ptr [ebp - 0x2c], edx */
  11765     MEM32(ebp + (-0x28)) = eax; /* 0x3000CD22: mov dword ptr [ebp - 0x28], eax */
  11766     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CD25: call dword ptr [0x300190c4] */
  11767     RECOMP_FLAGS_IN();
  11768     edx = MEM32(eax); /* 0x3000CD2B: mov edx, dword ptr [eax] */
  11769     MEM32(ebp + (-0x18)) = edx; /* 0x3000CD2D: mov dword ptr [ebp - 0x18], edx */
  11770     ecx = MEM32(eax + 0x4); /* 0x3000CD30: mov ecx, dword ptr [eax + 4] */
  11771     MEM32(ebp + (-0x14)) = ecx; /* 0x3000CD33: mov dword ptr [ebp - 0x14], ecx */
  11772     edx = MEM32(eax + 0x8); /* 0x3000CD36: mov edx, dword ptr [eax + 8] */
  11773     eax = ebp + (-0x18); /* 0x3000CD39: lea eax, [ebp - 0x18] */
  11774     PUSH32(esp, eax); /* 0x3000CD3C: push eax */
  11775     PUSH32(esp, 0); /* 0x3000CD3D: push 0 */
  11776     ecx = ebp + (-0x58); /* 0x3000CD3F: lea ecx, [ebp - 0x58] */
  11777     MEM32(ebp + (-0x10)) = edx; /* 0x3000CD42: mov dword ptr [ebp - 0x10], edx */
  11778     RECOMP_ICALL(0x30007BA0u); /* 0x3000CD45: call 0x30007ba0 */ /* not lifted */
  11779     RECOMP_FLAGS_IN();
  11780     ecx = MEM32(ebp + (-0x100)); /* 0x3000CD4A: mov ecx, dword ptr [ebp - 0x100] */
  11781     edx = MEM32(ebp + (-0xFC)); /* 0x3000CD50: mov edx, dword ptr [ebp - 0xfc] */
  11782     eax = MEM32(ebp + (-0xF8)); /* 0x3000CD56: mov eax, dword ptr [ebp - 0xf8] */
  11783     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000CD5C: mov dword ptr [ebp - 0x3c], ecx */
  11784     PUSH32(esp, esi); /* 0x3000CD5F: push esi */
  11785     ecx = ebp + (-0x3C); /* 0x3000CD60: lea ecx, [ebp - 0x3c] */
  11786     MEM32(ebp + (-0x38)) = edx; /* 0x3000CD63: mov dword ptr [ebp - 0x38], edx */
  11787     MEM32(ebp + (-0x34)) = eax; /* 0x3000CD66: mov dword ptr [ebp - 0x34], eax */
  11788     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CD69: call dword ptr [0x300190ec] */
  11789     RECOMP_FLAGS_IN();
  11790     ecx = MEM32(eax); /* 0x3000CD6F: mov ecx, dword ptr [eax] */
  11791     MEM32(ebp + (-0x24)) = ecx; /* 0x3000CD71: mov dword ptr [ebp - 0x24], ecx */
  11792     edx = MEM32(eax + 0x4); /* 0x3000CD74: mov edx, dword ptr [eax + 4] */
  11793     MEM32(ebp + (-0x20)) = edx; /* 0x3000CD77: mov dword ptr [ebp - 0x20], edx */
  11794     eax = MEM32(eax + 0x8); /* 0x3000CD7A: mov eax, dword ptr [eax + 8] */
  11795     ecx = edi; /* 0x3000CD7D: mov ecx, edi */
  11796     edx = MEM32(ecx); /* 0x3000CD7F: mov edx, dword ptr [ecx] */
  11797     MEM32(ebp + (-0x1C)) = eax; /* 0x3000CD81: mov dword ptr [ebp - 0x1c], eax */
  11798     eax = MEM32(ecx + 0x4); /* 0x3000CD84: mov eax, dword ptr [ecx + 4] */
  11799     ecx = MEM32(ecx + 0x8); /* 0x3000CD87: mov ecx, dword ptr [ecx + 8] */
  11800     MEM32(ebp + (-0x30)) = edx; /* 0x3000CD8A: mov dword ptr [ebp - 0x30], edx */
  11801     edx = ebp + (-0x24); /* 0x3000CD8D: lea edx, [ebp - 0x24] */
  11802     MEM32(ebp + (-0x28)) = ecx; /* 0x3000CD90: mov dword ptr [ebp - 0x28], ecx */
  11803     PUSH32(esp, edx); /* 0x3000CD93: push edx */
  11804     ecx = ebp + (-0x30); /* 0x3000CD94: lea ecx, [ebp - 0x30] */
  11805     MEM32(ebp + (-0x2C)) = eax; /* 0x3000CD97: mov dword ptr [ebp - 0x2c], eax */
  11806     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CD9A: call dword ptr [0x300190c4] */
  11807     RECOMP_FLAGS_IN();
  11808     ecx = MEM32(eax); /* 0x3000CDA0: mov ecx, dword ptr [eax] */
  11809     MEM32(ebp + (-0x18)) = ecx; /* 0x3000CDA2: mov dword ptr [ebp - 0x18], ecx */
  11810     edx = MEM32(eax + 0x4); /* 0x3000CDA5: mov edx, dword ptr [eax + 4] */
  11811     MEM32(ebp + (-0x14)) = edx; /* 0x3000CDA8: mov dword ptr [ebp - 0x14], edx */
  11812     eax = MEM32(eax + 0x8); /* 0x3000CDAB: mov eax, dword ptr [eax + 8] */
  11813     MEM32(ebp + (-0x10)) = eax; /* 0x3000CDAE: mov dword ptr [ebp - 0x10], eax */
  11814     ecx = ebp + (-0x18); /* 0x3000CDB1: lea ecx, [ebp - 0x18] */
  11815     PUSH32(esp, ecx); /* 0x3000CDB4: push ecx */
  11816     PUSH32(esp, 1); /* 0x3000CDB5: push 1 */
  11817     ecx = ebp + (-0x58); /* 0x3000CDB7: lea ecx, [ebp - 0x58] */
  11818     RECOMP_ICALL(0x30007BA0u); /* 0x3000CDBA: call 0x30007ba0 */ /* not lifted */
  11819     RECOMP_FLAGS_IN();
  11820     ecx = MEM32(ebp + (-0x5C)); /* 0x3000CDBF: mov ecx, dword ptr [ebp - 0x5c] */
  11821     edx = MEM32(ebp + (-0x64)); /* 0x3000CDC2: mov edx, dword ptr [ebp - 0x64] */
  11822     eax = MEM32(ebp + (-0x60)); /* 0x3000CDC5: mov eax, dword ptr [ebp - 0x60] */
  11823     MEM32(ebp + (-0x34)) = ecx; /* 0x3000CDC8: mov dword ptr [ebp - 0x34], ecx */
  11824     PUSH32(esp, esi); /* 0x3000CDCB: push esi */
  11825     ecx = ebp + (-0x3C); /* 0x3000CDCC: lea ecx, [ebp - 0x3c] */
  11826     MEM32(ebp + (-0x3C)) = edx; /* 0x3000CDCF: mov dword ptr [ebp - 0x3c], edx */
  11827     MEM32(ebp + (-0x38)) = eax; /* 0x3000CDD2: mov dword ptr [ebp - 0x38], eax */
  11828     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CDD5: call dword ptr [0x300190ec] */
  11829     RECOMP_FLAGS_IN();
  11830     edx = MEM32(eax); /* 0x3000CDDB: mov edx, dword ptr [eax] */
  11831     MEM32(ebp + (-0x24)) = edx; /* 0x3000CDDD: mov dword ptr [ebp - 0x24], edx */
  11832     ecx = MEM32(eax + 0x4); /* 0x3000CDE0: mov ecx, dword ptr [eax + 4] */
  11833     MEM32(ebp + (-0x20)) = ecx; /* 0x3000CDE3: mov dword ptr [ebp - 0x20], ecx */
  11834     edx = MEM32(eax + 0x8); /* 0x3000CDE6: mov edx, dword ptr [eax + 8] */
  11835     eax = edi; /* 0x3000CDE9: mov eax, edi */
  11836     ecx = MEM32(eax); /* 0x3000CDEB: mov ecx, dword ptr [eax] */
  11837     MEM32(ebp + (-0x30)) = ecx; /* 0x3000CDED: mov dword ptr [ebp - 0x30], ecx */
  11838     MEM32(ebp + (-0x1C)) = edx; /* 0x3000CDF0: mov dword ptr [ebp - 0x1c], edx */
  11839     edx = MEM32(eax + 0x4); /* 0x3000CDF3: mov edx, dword ptr [eax + 4] */
  11840     eax = MEM32(eax + 0x8); /* 0x3000CDF6: mov eax, dword ptr [eax + 8] */
  11841     ecx = ebp + (-0x24); /* 0x3000CDF9: lea ecx, [ebp - 0x24] */
  11842     PUSH32(esp, ecx); /* 0x3000CDFC: push ecx */
  11843     ecx = ebp + (-0x30); /* 0x3000CDFD: lea ecx, [ebp - 0x30] */
  11844     MEM32(ebp + (-0x2C)) = edx; /* 0x3000CE00: mov dword ptr [ebp - 0x2c], edx */
  11845     MEM32(ebp + (-0x28)) = eax; /* 0x3000CE03: mov dword ptr [ebp - 0x28], eax */
  11846     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CE06: call dword ptr [0x300190c4] */
  11847     RECOMP_FLAGS_IN();
  11848     edx = MEM32(eax); /* 0x3000CE0C: mov edx, dword ptr [eax] */
  11849     MEM32(ebp + (-0x18)) = edx; /* 0x3000CE0E: mov dword ptr [ebp - 0x18], edx */
  11850     ecx = MEM32(eax + 0x4); /* 0x3000CE11: mov ecx, dword ptr [eax + 4] */
  11851     MEM32(ebp + (-0x14)) = ecx; /* 0x3000CE14: mov dword ptr [ebp - 0x14], ecx */
  11852     edx = MEM32(eax + 0x8); /* 0x3000CE17: mov edx, dword ptr [eax + 8] */
  11853     eax = ebp + (-0x18); /* 0x3000CE1A: lea eax, [ebp - 0x18] */
  11854     PUSH32(esp, eax); /* 0x3000CE1D: push eax */
  11855     PUSH32(esp, 2); /* 0x3000CE1E: push 2 */
  11856     ecx = ebp + (-0x58); /* 0x3000CE20: lea ecx, [ebp - 0x58] */
  11857     MEM32(ebp + (-0x10)) = edx; /* 0x3000CE23: mov dword ptr [ebp - 0x10], edx */
  11858     RECOMP_ICALL(0x30007BA0u); /* 0x3000CE26: call 0x30007ba0 */ /* not lifted */
  11859     RECOMP_FLAGS_IN();
  11860     ecx = MEM32(ebp + (-0x10C)); /* 0x3000CE2B: mov ecx, dword ptr [ebp - 0x10c] */
  11861     edx = MEM32(ebp + (-0x108)); /* 0x3000CE31: mov edx, dword ptr [ebp - 0x108] */
  11862     eax = MEM32(ebp + (-0x104)); /* 0x3000CE37: mov eax, dword ptr [ebp - 0x104] */
  11863     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000CE3D: mov dword ptr [ebp - 0x3c], ecx */
  11864     PUSH32(esp, esi); /* 0x3000CE40: push esi */
  11865     ecx = ebp + (-0x3C); /* 0x3000CE41: lea ecx, [ebp - 0x3c] */
  11866     MEM32(ebp + (-0x38)) = edx; /* 0x3000CE44: mov dword ptr [ebp - 0x38], edx */
  11867     MEM32(ebp + (-0x34)) = eax; /* 0x3000CE47: mov dword ptr [ebp - 0x34], eax */
  11868     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CE4A: call dword ptr [0x300190ec] */
  11869     RECOMP_FLAGS_IN();
  11870     ecx = MEM32(eax); /* 0x3000CE50: mov ecx, dword ptr [eax] */
  11871     MEM32(ebp + (-0x24)) = ecx; /* 0x3000CE52: mov dword ptr [ebp - 0x24], ecx */
  11872     edx = MEM32(eax + 0x4); /* 0x3000CE55: mov edx, dword ptr [eax + 4] */
  11873     MEM32(ebp + (-0x20)) = edx; /* 0x3000CE58: mov dword ptr [ebp - 0x20], edx */
  11874     eax = MEM32(eax + 0x8); /* 0x3000CE5B: mov eax, dword ptr [eax + 8] */
  11875     ecx = edi; /* 0x3000CE5E: mov ecx, edi */
  11876     edx = MEM32(ecx); /* 0x3000CE60: mov edx, dword ptr [ecx] */
  11877     MEM32(ebp + (-0x1C)) = eax; /* 0x3000CE62: mov dword ptr [ebp - 0x1c], eax */
  11878     eax = MEM32(ecx + 0x4); /* 0x3000CE65: mov eax, dword ptr [ecx + 4] */
  11879     ecx = MEM32(ecx + 0x8); /* 0x3000CE68: mov ecx, dword ptr [ecx + 8] */
  11880     MEM32(ebp + (-0x30)) = edx; /* 0x3000CE6B: mov dword ptr [ebp - 0x30], edx */
  11881     edx = ebp + (-0x24); /* 0x3000CE6E: lea edx, [ebp - 0x24] */
  11882     MEM32(ebp + (-0x28)) = ecx; /* 0x3000CE71: mov dword ptr [ebp - 0x28], ecx */
  11883     PUSH32(esp, edx); /* 0x3000CE74: push edx */
  11884     ecx = ebp + (-0x30); /* 0x3000CE75: lea ecx, [ebp - 0x30] */
  11885     MEM32(ebp + (-0x2C)) = eax; /* 0x3000CE78: mov dword ptr [ebp - 0x2c], eax */
  11886     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CE7B: call dword ptr [0x300190c4] */
  11887     RECOMP_FLAGS_IN();
  11888     ecx = MEM32(eax); /* 0x3000CE81: mov ecx, dword ptr [eax] */
  11889     MEM32(ebp + (-0x18)) = ecx; /* 0x3000CE83: mov dword ptr [ebp - 0x18], ecx */
  11890     edx = MEM32(eax + 0x4); /* 0x3000CE86: mov edx, dword ptr [eax + 4] */
  11891     ecx = ebp + (-0x18); /* 0x3000CE89: lea ecx, [ebp - 0x18] */
  11892     PUSH32(esp, ecx); /* 0x3000CE8C: push ecx */
  11893     MEM32(ebp + (-0x14)) = edx; /* 0x3000CE8D: mov dword ptr [ebp - 0x14], edx */
  11894     eax = MEM32(eax + 0x8); /* 0x3000CE90: mov eax, dword ptr [eax + 8] */
  11895     PUSH32(esp, 3); /* 0x3000CE93: push 3 */
  11896     ecx = ebp + (-0x58); /* 0x3000CE95: lea ecx, [ebp - 0x58] */
  11897     MEM32(ebp + (-0x10)) = eax; /* 0x3000CE98: mov dword ptr [ebp - 0x10], eax */
  11898     RECOMP_ICALL(0x30007BA0u); /* 0x3000CE9B: call 0x30007ba0 */ /* not lifted */
  11899     RECOMP_FLAGS_IN();
  11900     eax = MEM32(ebx + 0x8); /* 0x3000CEA0: mov eax, dword ptr [ebx + 8] */
  11901     edx = ebp + (-0x58); /* 0x3000CEA3: lea edx, [ebp - 0x58] */
  11902     PUSH32(esp, edx); /* 0x3000CEA6: push edx */
  11903     PUSH32(esp, eax); /* 0x3000CEA7: push eax */
  11904     ecx = ebx; /* 0x3000CEA8: mov ecx, ebx */
  11905     RECOMP_ICALL(0x30002C40u); /* 0x3000CEAA: call 0x30002c40 */ /* not lifted */
  11906     RECOMP_FLAGS_IN();
  11907     ecx = MEM32(ebp + (-0xFC)); /* 0x3000CEAF: mov ecx, dword ptr [ebp - 0xfc] */
  11908     eax = MEM32(ebp + (-0x100)); /* 0x3000CEB5: mov eax, dword ptr [ebp - 0x100] */
  11909     edx = MEM32(ebp + (-0xF8)); /* 0x3000CEBB: mov edx, dword ptr [ebp - 0xf8] */
  11910     MEM32(ebp + (-0x38)) = ecx; /* 0x3000CEC1: mov dword ptr [ebp - 0x38], ecx */
  11911     PUSH32(esp, esi); /* 0x3000CEC4: push esi */
  11912     ecx = ebp + (-0x3C); /* 0x3000CEC5: lea ecx, [ebp - 0x3c] */
  11913     MEM32(ebp + (-0x3C)) = eax; /* 0x3000CEC8: mov dword ptr [ebp - 0x3c], eax */
  11914     MEM32(ebp + (-0x34)) = edx; /* 0x3000CECB: mov dword ptr [ebp - 0x34], edx */
  11915     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CECE: call dword ptr [0x300190ec] */
  11916     RECOMP_FLAGS_IN();
  11917     ecx = MEM32(eax); /* 0x3000CED4: mov ecx, dword ptr [eax] */
  11918     MEM32(ebp + (-0x24)) = ecx; /* 0x3000CED6: mov dword ptr [ebp - 0x24], ecx */
  11919     edx = MEM32(eax + 0x4); /* 0x3000CED9: mov edx, dword ptr [eax + 4] */
  11920     MEM32(ebp + (-0x20)) = edx; /* 0x3000CEDC: mov dword ptr [ebp - 0x20], edx */
  11921     eax = MEM32(eax + 0x8); /* 0x3000CEDF: mov eax, dword ptr [eax + 8] */
  11922     ecx = edi; /* 0x3000CEE2: mov ecx, edi */
  11923     edx = MEM32(ecx); /* 0x3000CEE4: mov edx, dword ptr [ecx] */
  11924     MEM32(ebp + (-0x1C)) = eax; /* 0x3000CEE6: mov dword ptr [ebp - 0x1c], eax */
  11925     eax = MEM32(ecx + 0x4); /* 0x3000CEE9: mov eax, dword ptr [ecx + 4] */
  11926     ecx = MEM32(ecx + 0x8); /* 0x3000CEEC: mov ecx, dword ptr [ecx + 8] */
  11927     MEM32(ebp + (-0x30)) = edx; /* 0x3000CEEF: mov dword ptr [ebp - 0x30], edx */
  11928     edx = ebp + (-0x24); /* 0x3000CEF2: lea edx, [ebp - 0x24] */
  11929     MEM32(ebp + (-0x28)) = ecx; /* 0x3000CEF5: mov dword ptr [ebp - 0x28], ecx */
  11930     PUSH32(esp, edx); /* 0x3000CEF8: push edx */
  11931     ecx = ebp + (-0x30); /* 0x3000CEF9: lea ecx, [ebp - 0x30] */
  11932     MEM32(ebp + (-0x2C)) = eax; /* 0x3000CEFC: mov dword ptr [ebp - 0x2c], eax */
  11933     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CEFF: call dword ptr [0x300190c4] */
  11934     RECOMP_FLAGS_IN();
  11935     ecx = MEM32(eax); /* 0x3000CF05: mov ecx, dword ptr [eax] */
  11936     MEM32(ebp + (-0x18)) = ecx; /* 0x3000CF07: mov dword ptr [ebp - 0x18], ecx */
  11937     edx = MEM32(eax + 0x4); /* 0x3000CF0A: mov edx, dword ptr [eax + 4] */
  11938     ecx = ebp + (-0x18); /* 0x3000CF0D: lea ecx, [ebp - 0x18] */
  11939     PUSH32(esp, ecx); /* 0x3000CF10: push ecx */
  11940     MEM32(ebp + (-0x14)) = edx; /* 0x3000CF11: mov dword ptr [ebp - 0x14], edx */
  11941     eax = MEM32(eax + 0x8); /* 0x3000CF14: mov eax, dword ptr [eax + 8] */
  11942     PUSH32(esp, 0); /* 0x3000CF17: push 0 */
  11943     ecx = ebp + (-0x58); /* 0x3000CF19: lea ecx, [ebp - 0x58] */
  11944     MEM32(ebp + (-0x10)) = eax; /* 0x3000CF1C: mov dword ptr [ebp - 0x10], eax */
  11945     RECOMP_ICALL(0x30007BA0u); /* 0x3000CF1F: call 0x30007ba0 */ /* not lifted */
  11946     RECOMP_FLAGS_IN();
  11947     ecx = MEM32(ebp + (-0xE0)); /* 0x3000CF24: mov ecx, dword ptr [ebp - 0xe0] */
  11948     edx = MEM32(ebp + (-0xE8)); /* 0x3000CF2A: mov edx, dword ptr [ebp - 0xe8] */
  11949     eax = MEM32(ebp + (-0xE4)); /* 0x3000CF30: mov eax, dword ptr [ebp - 0xe4] */
  11950     MEM32(ebp + (-0x34)) = ecx; /* 0x3000CF36: mov dword ptr [ebp - 0x34], ecx */
  11951     PUSH32(esp, esi); /* 0x3000CF39: push esi */
  11952     ecx = ebp + (-0x3C); /* 0x3000CF3A: lea ecx, [ebp - 0x3c] */
  11953     MEM32(ebp + (-0x3C)) = edx; /* 0x3000CF3D: mov dword ptr [ebp - 0x3c], edx */
  11954     MEM32(ebp + (-0x38)) = eax; /* 0x3000CF40: mov dword ptr [ebp - 0x38], eax */
  11955     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CF43: call dword ptr [0x300190ec] */
  11956     RECOMP_FLAGS_IN();
  11957     edx = MEM32(eax); /* 0x3000CF49: mov edx, dword ptr [eax] */
  11958     MEM32(ebp + (-0x24)) = edx; /* 0x3000CF4B: mov dword ptr [ebp - 0x24], edx */
  11959     ecx = MEM32(eax + 0x4); /* 0x3000CF4E: mov ecx, dword ptr [eax + 4] */
  11960     MEM32(ebp + (-0x20)) = ecx; /* 0x3000CF51: mov dword ptr [ebp - 0x20], ecx */
  11961     edx = MEM32(eax + 0x8); /* 0x3000CF54: mov edx, dword ptr [eax + 8] */
  11962     eax = edi; /* 0x3000CF57: mov eax, edi */
  11963     ecx = MEM32(eax); /* 0x3000CF59: mov ecx, dword ptr [eax] */
  11964     MEM32(ebp + (-0x30)) = ecx; /* 0x3000CF5B: mov dword ptr [ebp - 0x30], ecx */
  11965     MEM32(ebp + (-0x1C)) = edx; /* 0x3000CF5E: mov dword ptr [ebp - 0x1c], edx */
  11966     edx = MEM32(eax + 0x4); /* 0x3000CF61: mov edx, dword ptr [eax + 4] */
  11967     eax = MEM32(eax + 0x8); /* 0x3000CF64: mov eax, dword ptr [eax + 8] */
  11968     ecx = ebp + (-0x24); /* 0x3000CF67: lea ecx, [ebp - 0x24] */
  11969     PUSH32(esp, ecx); /* 0x3000CF6A: push ecx */
  11970     ecx = ebp + (-0x30); /* 0x3000CF6B: lea ecx, [ebp - 0x30] */
  11971     MEM32(ebp + (-0x2C)) = edx; /* 0x3000CF6E: mov dword ptr [ebp - 0x2c], edx */
  11972     MEM32(ebp + (-0x28)) = eax; /* 0x3000CF71: mov dword ptr [ebp - 0x28], eax */
  11973     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CF74: call dword ptr [0x300190c4] */
  11974     RECOMP_FLAGS_IN();
  11975     edx = MEM32(eax); /* 0x3000CF7A: mov edx, dword ptr [eax] */
  11976     MEM32(ebp + (-0x18)) = edx; /* 0x3000CF7C: mov dword ptr [ebp - 0x18], edx */
  11977     ecx = MEM32(eax + 0x4); /* 0x3000CF7F: mov ecx, dword ptr [eax + 4] */
  11978     MEM32(ebp + (-0x14)) = ecx; /* 0x3000CF82: mov dword ptr [ebp - 0x14], ecx */
  11979     edx = MEM32(eax + 0x8); /* 0x3000CF85: mov edx, dword ptr [eax + 8] */
  11980     eax = ebp + (-0x18); /* 0x3000CF88: lea eax, [ebp - 0x18] */
  11981     PUSH32(esp, eax); /* 0x3000CF8B: push eax */
  11982     PUSH32(esp, 1); /* 0x3000CF8C: push 1 */
  11983     ecx = ebp + (-0x58); /* 0x3000CF8E: lea ecx, [ebp - 0x58] */
  11984     MEM32(ebp + (-0x10)) = edx; /* 0x3000CF91: mov dword ptr [ebp - 0x10], edx */
  11985     RECOMP_ICALL(0x30007BA0u); /* 0x3000CF94: call 0x30007ba0 */ /* not lifted */
  11986     RECOMP_FLAGS_IN();
  11987     ecx = MEM32(ebp + (-0x70)); /* 0x3000CF99: mov ecx, dword ptr [ebp - 0x70] */
  11988     edx = MEM32(ebp + (-0x6C)); /* 0x3000CF9C: mov edx, dword ptr [ebp - 0x6c] */
  11989     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000CF9F: mov dword ptr [ebp - 0x3c], ecx */
  11990     MEM32(ebp + (-0x38)) = edx; /* 0x3000CFA2: mov dword ptr [ebp - 0x38], edx */
  11991     eax = MEM32(ebp + (-0x68)); /* 0x3000CFA5: mov eax, dword ptr [ebp - 0x68] */
  11992     PUSH32(esp, esi); /* 0x3000CFA8: push esi */
  11993     ecx = ebp + (-0x3C); /* 0x3000CFA9: lea ecx, [ebp - 0x3c] */
  11994     MEM32(ebp + (-0x34)) = eax; /* 0x3000CFAC: mov dword ptr [ebp - 0x34], eax */
  11995     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000CFAF: call dword ptr [0x300190ec] */
  11996     RECOMP_FLAGS_IN();
  11997     ecx = MEM32(eax); /* 0x3000CFB5: mov ecx, dword ptr [eax] */
  11998     MEM32(ebp + (-0x24)) = ecx; /* 0x3000CFB7: mov dword ptr [ebp - 0x24], ecx */
  11999     edx = MEM32(eax + 0x4); /* 0x3000CFBA: mov edx, dword ptr [eax + 4] */
  12000     MEM32(ebp + (-0x20)) = edx; /* 0x3000CFBD: mov dword ptr [ebp - 0x20], edx */
  12001     eax = MEM32(eax + 0x8); /* 0x3000CFC0: mov eax, dword ptr [eax + 8] */
  12002     ecx = edi; /* 0x3000CFC3: mov ecx, edi */
  12003     edx = MEM32(ecx); /* 0x3000CFC5: mov edx, dword ptr [ecx] */
  12004     MEM32(ebp + (-0x1C)) = eax; /* 0x3000CFC7: mov dword ptr [ebp - 0x1c], eax */
  12005     eax = MEM32(ecx + 0x4); /* 0x3000CFCA: mov eax, dword ptr [ecx + 4] */
  12006     ecx = MEM32(ecx + 0x8); /* 0x3000CFCD: mov ecx, dword ptr [ecx + 8] */
  12007     MEM32(ebp + (-0x30)) = edx; /* 0x3000CFD0: mov dword ptr [ebp - 0x30], edx */
  12008     edx = ebp + (-0x24); /* 0x3000CFD3: lea edx, [ebp - 0x24] */
  12009     MEM32(ebp + (-0x28)) = ecx; /* 0x3000CFD6: mov dword ptr [ebp - 0x28], ecx */
  12010     PUSH32(esp, edx); /* 0x3000CFD9: push edx */
  12011     ecx = ebp + (-0x30); /* 0x3000CFDA: lea ecx, [ebp - 0x30] */
  12012     MEM32(ebp + (-0x2C)) = eax; /* 0x3000CFDD: mov dword ptr [ebp - 0x2c], eax */
  12013     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000CFE0: call dword ptr [0x300190c4] */
  12014     RECOMP_FLAGS_IN();
  12015     ecx = MEM32(eax); /* 0x3000CFE6: mov ecx, dword ptr [eax] */
  12016     MEM32(ebp + (-0x18)) = ecx; /* 0x3000CFE8: mov dword ptr [ebp - 0x18], ecx */
  12017     edx = MEM32(eax + 0x4); /* 0x3000CFEB: mov edx, dword ptr [eax + 4] */
  12018     ecx = ebp + (-0x18); /* 0x3000CFEE: lea ecx, [ebp - 0x18] */
  12019     PUSH32(esp, ecx); /* 0x3000CFF1: push ecx */
  12020     MEM32(ebp + (-0x14)) = edx; /* 0x3000CFF2: mov dword ptr [ebp - 0x14], edx */
  12021     eax = MEM32(eax + 0x8); /* 0x3000CFF5: mov eax, dword ptr [eax + 8] */
  12022     PUSH32(esp, 2); /* 0x3000CFF8: push 2 */
  12023     ecx = ebp + (-0x58); /* 0x3000CFFA: lea ecx, [ebp - 0x58] */
  12024     MEM32(ebp + (-0x10)) = eax; /* 0x3000CFFD: mov dword ptr [ebp - 0x10], eax */
  12025     RECOMP_ICALL(0x30007BA0u); /* 0x3000D000: call 0x30007ba0 */ /* not lifted */
  12026     RECOMP_FLAGS_IN();
  12027     ecx = MEM32(ebp + (-0x5C)); /* 0x3000D005: mov ecx, dword ptr [ebp - 0x5c] */
  12028     edx = MEM32(ebp + (-0x64)); /* 0x3000D008: mov edx, dword ptr [ebp - 0x64] */
  12029     eax = MEM32(ebp + (-0x60)); /* 0x3000D00B: mov eax, dword ptr [ebp - 0x60] */
  12030     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D00E: mov dword ptr [ebp - 0x34], ecx */
  12031     PUSH32(esp, esi); /* 0x3000D011: push esi */
  12032     ecx = ebp + (-0x3C); /* 0x3000D012: lea ecx, [ebp - 0x3c] */
  12033     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D015: mov dword ptr [ebp - 0x3c], edx */
  12034     MEM32(ebp + (-0x38)) = eax; /* 0x3000D018: mov dword ptr [ebp - 0x38], eax */
  12035     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D01B: call dword ptr [0x300190ec] */
  12036     RECOMP_FLAGS_IN();
  12037     edx = MEM32(eax); /* 0x3000D021: mov edx, dword ptr [eax] */
  12038     MEM32(ebp + (-0x24)) = edx; /* 0x3000D023: mov dword ptr [ebp - 0x24], edx */
  12039     ecx = MEM32(eax + 0x4); /* 0x3000D026: mov ecx, dword ptr [eax + 4] */
  12040     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D029: mov dword ptr [ebp - 0x20], ecx */
  12041     edx = MEM32(eax + 0x8); /* 0x3000D02C: mov edx, dword ptr [eax + 8] */
  12042     eax = edi; /* 0x3000D02F: mov eax, edi */
  12043     ecx = MEM32(eax); /* 0x3000D031: mov ecx, dword ptr [eax] */
  12044     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D033: mov dword ptr [ebp - 0x30], ecx */
  12045     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D036: mov dword ptr [ebp - 0x1c], edx */
  12046     edx = MEM32(eax + 0x4); /* 0x3000D039: mov edx, dword ptr [eax + 4] */
  12047     eax = MEM32(eax + 0x8); /* 0x3000D03C: mov eax, dword ptr [eax + 8] */
  12048     ecx = ebp + (-0x24); /* 0x3000D03F: lea ecx, [ebp - 0x24] */
  12049     PUSH32(esp, ecx); /* 0x3000D042: push ecx */
  12050     ecx = ebp + (-0x30); /* 0x3000D043: lea ecx, [ebp - 0x30] */
  12051     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D046: mov dword ptr [ebp - 0x2c], edx */
  12052     MEM32(ebp + (-0x28)) = eax; /* 0x3000D049: mov dword ptr [ebp - 0x28], eax */
  12053     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D04C: call dword ptr [0x300190c4] */
  12054     RECOMP_FLAGS_IN();
  12055     edx = MEM32(eax); /* 0x3000D052: mov edx, dword ptr [eax] */
  12056     MEM32(ebp + (-0x18)) = edx; /* 0x3000D054: mov dword ptr [ebp - 0x18], edx */
  12057     ecx = MEM32(eax + 0x4); /* 0x3000D057: mov ecx, dword ptr [eax + 4] */
  12058     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D05A: mov dword ptr [ebp - 0x14], ecx */
  12059     edx = MEM32(eax + 0x8); /* 0x3000D05D: mov edx, dword ptr [eax + 8] */
  12060     eax = ebp + (-0x18); /* 0x3000D060: lea eax, [ebp - 0x18] */
  12061     PUSH32(esp, eax); /* 0x3000D063: push eax */
  12062     PUSH32(esp, 3); /* 0x3000D064: push 3 */
  12063     ecx = ebp + (-0x58); /* 0x3000D066: lea ecx, [ebp - 0x58] */
  12064     MEM32(ebp + (-0x10)) = edx; /* 0x3000D069: mov dword ptr [ebp - 0x10], edx */
  12065     RECOMP_ICALL(0x30007BA0u); /* 0x3000D06C: call 0x30007ba0 */ /* not lifted */
  12066     RECOMP_FLAGS_IN();
  12067     eax = MEM32(ebx + 0x8); /* 0x3000D071: mov eax, dword ptr [ebx + 8] */
  12068     ecx = ebp + (-0x58); /* 0x3000D074: lea ecx, [ebp - 0x58] */
  12069     PUSH32(esp, ecx); /* 0x3000D077: push ecx */
  12070     PUSH32(esp, eax); /* 0x3000D078: push eax */
  12071     ecx = ebx; /* 0x3000D079: mov ecx, ebx */
  12072     RECOMP_ICALL(0x30002C40u); /* 0x3000D07B: call 0x30002c40 */ /* not lifted */
  12073     RECOMP_FLAGS_IN();
  12074     edx = MEM32(ebp + (-0xE8)); /* 0x3000D080: mov edx, dword ptr [ebp - 0xe8] */
  12075     eax = MEM32(ebp + (-0xE4)); /* 0x3000D086: mov eax, dword ptr [ebp - 0xe4] */
  12076     ecx = MEM32(ebp + (-0xE0)); /* 0x3000D08C: mov ecx, dword ptr [ebp - 0xe0] */
  12077     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D092: mov dword ptr [ebp - 0x3c], edx */
  12078     MEM32(ebp + (-0x38)) = eax; /* 0x3000D095: mov dword ptr [ebp - 0x38], eax */
  12079     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D098: mov dword ptr [ebp - 0x34], ecx */
  12080     PUSH32(esp, esi); /* 0x3000D09B: push esi */
  12081     ecx = ebp + (-0x3C); /* 0x3000D09C: lea ecx, [ebp - 0x3c] */
  12082     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D09F: call dword ptr [0x300190ec] */
  12083     RECOMP_FLAGS_IN();
  12084     edx = MEM32(eax); /* 0x3000D0A5: mov edx, dword ptr [eax] */
  12085     MEM32(ebp + (-0x24)) = edx; /* 0x3000D0A7: mov dword ptr [ebp - 0x24], edx */
  12086     ecx = MEM32(eax + 0x4); /* 0x3000D0AA: mov ecx, dword ptr [eax + 4] */
  12087     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D0AD: mov dword ptr [ebp - 0x20], ecx */
  12088     edx = MEM32(eax + 0x8); /* 0x3000D0B0: mov edx, dword ptr [eax + 8] */
  12089     eax = edi; /* 0x3000D0B3: mov eax, edi */
  12090     ecx = MEM32(eax); /* 0x3000D0B5: mov ecx, dword ptr [eax] */
  12091     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D0B7: mov dword ptr [ebp - 0x30], ecx */
  12092     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D0BA: mov dword ptr [ebp - 0x1c], edx */
  12093     edx = MEM32(eax + 0x4); /* 0x3000D0BD: mov edx, dword ptr [eax + 4] */
  12094     eax = MEM32(eax + 0x8); /* 0x3000D0C0: mov eax, dword ptr [eax + 8] */
  12095     ecx = ebp + (-0x24); /* 0x3000D0C3: lea ecx, [ebp - 0x24] */
  12096     PUSH32(esp, ecx); /* 0x3000D0C6: push ecx */
  12097     ecx = ebp + (-0x30); /* 0x3000D0C7: lea ecx, [ebp - 0x30] */
  12098     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D0CA: mov dword ptr [ebp - 0x2c], edx */
  12099     MEM32(ebp + (-0x28)) = eax; /* 0x3000D0CD: mov dword ptr [ebp - 0x28], eax */
  12100     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D0D0: call dword ptr [0x300190c4] */
  12101     RECOMP_FLAGS_IN();
  12102     edx = MEM32(eax); /* 0x3000D0D6: mov edx, dword ptr [eax] */
  12103     MEM32(ebp + (-0x18)) = edx; /* 0x3000D0D8: mov dword ptr [ebp - 0x18], edx */
  12104     ecx = MEM32(eax + 0x4); /* 0x3000D0DB: mov ecx, dword ptr [eax + 4] */
  12105     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D0DE: mov dword ptr [ebp - 0x14], ecx */
  12106     edx = MEM32(eax + 0x8); /* 0x3000D0E1: mov edx, dword ptr [eax + 8] */
  12107     eax = ebp + (-0x18); /* 0x3000D0E4: lea eax, [ebp - 0x18] */
  12108     PUSH32(esp, eax); /* 0x3000D0E7: push eax */
  12109     PUSH32(esp, 0); /* 0x3000D0E8: push 0 */
  12110     ecx = ebp + (-0x58); /* 0x3000D0EA: lea ecx, [ebp - 0x58] */
  12111     MEM32(ebp + (-0x10)) = edx; /* 0x3000D0ED: mov dword ptr [ebp - 0x10], edx */
  12112     RECOMP_ICALL(0x30007BA0u); /* 0x3000D0F0: call 0x30007ba0 */ /* not lifted */
  12113     RECOMP_FLAGS_IN();
  12114     ecx = MEM32(ebp + (-0xA0)); /* 0x3000D0F5: mov ecx, dword ptr [ebp - 0xa0] */
  12115     edx = MEM32(ebp + (-0x9C)); /* 0x3000D0FB: mov edx, dword ptr [ebp - 0x9c] */
  12116     eax = MEM32(ebp + (-0x98)); /* 0x3000D101: mov eax, dword ptr [ebp - 0x98] */
  12117     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000D107: mov dword ptr [ebp - 0x3c], ecx */
  12118     PUSH32(esp, esi); /* 0x3000D10A: push esi */
  12119     ecx = ebp + (-0x3C); /* 0x3000D10B: lea ecx, [ebp - 0x3c] */
  12120     MEM32(ebp + (-0x38)) = edx; /* 0x3000D10E: mov dword ptr [ebp - 0x38], edx */
  12121     MEM32(ebp + (-0x34)) = eax; /* 0x3000D111: mov dword ptr [ebp - 0x34], eax */
  12122     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D114: call dword ptr [0x300190ec] */
  12123     RECOMP_FLAGS_IN();
  12124     ecx = MEM32(eax); /* 0x3000D11A: mov ecx, dword ptr [eax] */
  12125     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D11C: mov dword ptr [ebp - 0x24], ecx */
  12126     edx = MEM32(eax + 0x4); /* 0x3000D11F: mov edx, dword ptr [eax + 4] */
  12127     MEM32(ebp + (-0x20)) = edx; /* 0x3000D122: mov dword ptr [ebp - 0x20], edx */
  12128     eax = MEM32(eax + 0x8); /* 0x3000D125: mov eax, dword ptr [eax + 8] */
  12129     ecx = edi; /* 0x3000D128: mov ecx, edi */
  12130     edx = MEM32(ecx); /* 0x3000D12A: mov edx, dword ptr [ecx] */
  12131     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D12C: mov dword ptr [ebp - 0x1c], eax */
  12132     eax = MEM32(ecx + 0x4); /* 0x3000D12F: mov eax, dword ptr [ecx + 4] */
  12133     ecx = MEM32(ecx + 0x8); /* 0x3000D132: mov ecx, dword ptr [ecx + 8] */
  12134     MEM32(ebp + (-0x30)) = edx; /* 0x3000D135: mov dword ptr [ebp - 0x30], edx */
  12135     edx = ebp + (-0x24); /* 0x3000D138: lea edx, [ebp - 0x24] */
  12136     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D13B: mov dword ptr [ebp - 0x28], ecx */
  12137     PUSH32(esp, edx); /* 0x3000D13E: push edx */
  12138     ecx = ebp + (-0x30); /* 0x3000D13F: lea ecx, [ebp - 0x30] */
  12139     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D142: mov dword ptr [ebp - 0x2c], eax */
  12140     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D145: call dword ptr [0x300190c4] */
  12141     RECOMP_FLAGS_IN();
  12142     ecx = MEM32(eax); /* 0x3000D14B: mov ecx, dword ptr [eax] */
  12143     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D14D: mov dword ptr [ebp - 0x18], ecx */
  12144     edx = MEM32(eax + 0x4); /* 0x3000D150: mov edx, dword ptr [eax + 4] */
  12145     ecx = ebp + (-0x18); /* 0x3000D153: lea ecx, [ebp - 0x18] */
  12146     PUSH32(esp, ecx); /* 0x3000D156: push ecx */
  12147     MEM32(ebp + (-0x14)) = edx; /* 0x3000D157: mov dword ptr [ebp - 0x14], edx */
  12148     eax = MEM32(eax + 0x8); /* 0x3000D15A: mov eax, dword ptr [eax + 8] */
  12149     PUSH32(esp, 1); /* 0x3000D15D: push 1 */
  12150     ecx = ebp + (-0x58); /* 0x3000D15F: lea ecx, [ebp - 0x58] */
  12151     MEM32(ebp + (-0x10)) = eax; /* 0x3000D162: mov dword ptr [ebp - 0x10], eax */
  12152     RECOMP_ICALL(0x30007BA0u); /* 0x3000D165: call 0x30007ba0 */ /* not lifted */
  12153     RECOMP_FLAGS_IN();
  12154     ecx = MEM32(ebp + (-0xA4)); /* 0x3000D16A: mov ecx, dword ptr [ebp - 0xa4] */
  12155     edx = MEM32(ebp + (-0xAC)); /* 0x3000D170: mov edx, dword ptr [ebp - 0xac] */
  12156     eax = MEM32(ebp + (-0xA8)); /* 0x3000D176: mov eax, dword ptr [ebp - 0xa8] */
  12157     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D17C: mov dword ptr [ebp - 0x34], ecx */
  12158     PUSH32(esp, esi); /* 0x3000D17F: push esi */
  12159     ecx = ebp + (-0x3C); /* 0x3000D180: lea ecx, [ebp - 0x3c] */
  12160     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D183: mov dword ptr [ebp - 0x3c], edx */
  12161     MEM32(ebp + (-0x38)) = eax; /* 0x3000D186: mov dword ptr [ebp - 0x38], eax */
  12162     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D189: call dword ptr [0x300190ec] */
  12163     RECOMP_FLAGS_IN();
  12164     edx = MEM32(eax); /* 0x3000D18F: mov edx, dword ptr [eax] */
  12165     MEM32(ebp + (-0x24)) = edx; /* 0x3000D191: mov dword ptr [ebp - 0x24], edx */
  12166     ecx = MEM32(eax + 0x4); /* 0x3000D194: mov ecx, dword ptr [eax + 4] */
  12167     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D197: mov dword ptr [ebp - 0x20], ecx */
  12168     edx = MEM32(eax + 0x8); /* 0x3000D19A: mov edx, dword ptr [eax + 8] */
  12169     eax = edi; /* 0x3000D19D: mov eax, edi */
  12170     ecx = MEM32(eax); /* 0x3000D19F: mov ecx, dword ptr [eax] */
  12171     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D1A1: mov dword ptr [ebp - 0x30], ecx */
  12172     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D1A4: mov dword ptr [ebp - 0x1c], edx */
  12173     edx = MEM32(eax + 0x4); /* 0x3000D1A7: mov edx, dword ptr [eax + 4] */
  12174     eax = MEM32(eax + 0x8); /* 0x3000D1AA: mov eax, dword ptr [eax + 8] */
  12175     ecx = ebp + (-0x24); /* 0x3000D1AD: lea ecx, [ebp - 0x24] */
  12176     PUSH32(esp, ecx); /* 0x3000D1B0: push ecx */
  12177     ecx = ebp + (-0x30); /* 0x3000D1B1: lea ecx, [ebp - 0x30] */
  12178     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D1B4: mov dword ptr [ebp - 0x2c], edx */
  12179     MEM32(ebp + (-0x28)) = eax; /* 0x3000D1B7: mov dword ptr [ebp - 0x28], eax */
  12180     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D1BA: call dword ptr [0x300190c4] */
  12181     RECOMP_FLAGS_IN();
  12182     edx = MEM32(eax); /* 0x3000D1C0: mov edx, dword ptr [eax] */
  12183     MEM32(ebp + (-0x18)) = edx; /* 0x3000D1C2: mov dword ptr [ebp - 0x18], edx */
  12184     ecx = MEM32(eax + 0x4); /* 0x3000D1C5: mov ecx, dword ptr [eax + 4] */
  12185     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D1C8: mov dword ptr [ebp - 0x14], ecx */
  12186     edx = MEM32(eax + 0x8); /* 0x3000D1CB: mov edx, dword ptr [eax + 8] */
  12187     eax = ebp + (-0x18); /* 0x3000D1CE: lea eax, [ebp - 0x18] */
  12188     PUSH32(esp, eax); /* 0x3000D1D1: push eax */
  12189     PUSH32(esp, 2); /* 0x3000D1D2: push 2 */
  12190     ecx = ebp + (-0x58); /* 0x3000D1D4: lea ecx, [ebp - 0x58] */
  12191     MEM32(ebp + (-0x10)) = edx; /* 0x3000D1D7: mov dword ptr [ebp - 0x10], edx */
  12192     RECOMP_ICALL(0x30007BA0u); /* 0x3000D1DA: call 0x30007ba0 */ /* not lifted */
  12193     RECOMP_FLAGS_IN();
  12194     ecx = MEM32(ebp + (-0x70)); /* 0x3000D1DF: mov ecx, dword ptr [ebp - 0x70] */
  12195     edx = MEM32(ebp + (-0x6C)); /* 0x3000D1E2: mov edx, dword ptr [ebp - 0x6c] */
  12196     eax = MEM32(ebp + (-0x68)); /* 0x3000D1E5: mov eax, dword ptr [ebp - 0x68] */
  12197     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000D1E8: mov dword ptr [ebp - 0x3c], ecx */
  12198     PUSH32(esp, esi); /* 0x3000D1EB: push esi */
  12199     ecx = ebp + (-0x3C); /* 0x3000D1EC: lea ecx, [ebp - 0x3c] */
  12200     MEM32(ebp + (-0x38)) = edx; /* 0x3000D1EF: mov dword ptr [ebp - 0x38], edx */
  12201     MEM32(ebp + (-0x34)) = eax; /* 0x3000D1F2: mov dword ptr [ebp - 0x34], eax */
  12202     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D1F5: call dword ptr [0x300190ec] */
  12203     RECOMP_FLAGS_IN();
  12204     ecx = MEM32(eax); /* 0x3000D1FB: mov ecx, dword ptr [eax] */
  12205     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D1FD: mov dword ptr [ebp - 0x24], ecx */
  12206     edx = MEM32(eax + 0x4); /* 0x3000D200: mov edx, dword ptr [eax + 4] */
  12207     MEM32(ebp + (-0x20)) = edx; /* 0x3000D203: mov dword ptr [ebp - 0x20], edx */
  12208     eax = MEM32(eax + 0x8); /* 0x3000D206: mov eax, dword ptr [eax + 8] */
  12209     ecx = edi; /* 0x3000D209: mov ecx, edi */
  12210     edx = MEM32(ecx); /* 0x3000D20B: mov edx, dword ptr [ecx] */
  12211     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D20D: mov dword ptr [ebp - 0x1c], eax */
  12212     eax = MEM32(ecx + 0x4); /* 0x3000D210: mov eax, dword ptr [ecx + 4] */
  12213     ecx = MEM32(ecx + 0x8); /* 0x3000D213: mov ecx, dword ptr [ecx + 8] */
  12214     MEM32(ebp + (-0x30)) = edx; /* 0x3000D216: mov dword ptr [ebp - 0x30], edx */
  12215     edx = ebp + (-0x24); /* 0x3000D219: lea edx, [ebp - 0x24] */
  12216     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D21C: mov dword ptr [ebp - 0x28], ecx */
  12217     PUSH32(esp, edx); /* 0x3000D21F: push edx */
  12218     ecx = ebp + (-0x30); /* 0x3000D220: lea ecx, [ebp - 0x30] */
  12219     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D223: mov dword ptr [ebp - 0x2c], eax */
  12220     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D226: call dword ptr [0x300190c4] */
  12221     RECOMP_FLAGS_IN();
  12222     ecx = MEM32(eax); /* 0x3000D22C: mov ecx, dword ptr [eax] */
  12223     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D22E: mov dword ptr [ebp - 0x18], ecx */
  12224     edx = MEM32(eax + 0x4); /* 0x3000D231: mov edx, dword ptr [eax + 4] */
  12225     ecx = ebp + (-0x18); /* 0x3000D234: lea ecx, [ebp - 0x18] */
  12226     PUSH32(esp, ecx); /* 0x3000D237: push ecx */
  12227     MEM32(ebp + (-0x14)) = edx; /* 0x3000D238: mov dword ptr [ebp - 0x14], edx */
  12228     eax = MEM32(eax + 0x8); /* 0x3000D23B: mov eax, dword ptr [eax + 8] */
  12229     PUSH32(esp, 3); /* 0x3000D23E: push 3 */
  12230     ecx = ebp + (-0x58); /* 0x3000D240: lea ecx, [ebp - 0x58] */
  12231     MEM32(ebp + (-0x10)) = eax; /* 0x3000D243: mov dword ptr [ebp - 0x10], eax */
  12232     RECOMP_ICALL(0x30007BA0u); /* 0x3000D246: call 0x30007ba0 */ /* not lifted */
  12233     RECOMP_FLAGS_IN();
  12234     eax = MEM32(ebx + 0x8); /* 0x3000D24B: mov eax, dword ptr [ebx + 8] */
  12235     edx = ebp + (-0x58); /* 0x3000D24E: lea edx, [ebp - 0x58] */
  12236     PUSH32(esp, edx); /* 0x3000D251: push edx */
  12237     PUSH32(esp, eax); /* 0x3000D252: push eax */
  12238     ecx = ebx; /* 0x3000D253: mov ecx, ebx */
  12239     RECOMP_ICALL(0x30002C40u); /* 0x3000D255: call 0x30002c40 */ /* not lifted */
  12240     RECOMP_FLAGS_IN();
  12241     ecx = MEM32(ebp + (-0x9C)); /* 0x3000D25A: mov ecx, dword ptr [ebp - 0x9c] */
  12242     eax = MEM32(ebp + (-0xA0)); /* 0x3000D260: mov eax, dword ptr [ebp - 0xa0] */
  12243     edx = MEM32(ebp + (-0x98)); /* 0x3000D266: mov edx, dword ptr [ebp - 0x98] */
  12244     MEM32(ebp + (-0x38)) = ecx; /* 0x3000D26C: mov dword ptr [ebp - 0x38], ecx */
  12245     PUSH32(esp, esi); /* 0x3000D26F: push esi */
  12246     ecx = ebp + (-0x3C); /* 0x3000D270: lea ecx, [ebp - 0x3c] */
  12247     MEM32(ebp + (-0x3C)) = eax; /* 0x3000D273: mov dword ptr [ebp - 0x3c], eax */
  12248     MEM32(ebp + (-0x34)) = edx; /* 0x3000D276: mov dword ptr [ebp - 0x34], edx */
  12249     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D279: call dword ptr [0x300190ec] */
  12250     RECOMP_FLAGS_IN();
  12251     ecx = MEM32(eax); /* 0x3000D27F: mov ecx, dword ptr [eax] */
  12252     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D281: mov dword ptr [ebp - 0x24], ecx */
  12253     edx = MEM32(eax + 0x4); /* 0x3000D284: mov edx, dword ptr [eax + 4] */
  12254     MEM32(ebp + (-0x20)) = edx; /* 0x3000D287: mov dword ptr [ebp - 0x20], edx */
  12255     eax = MEM32(eax + 0x8); /* 0x3000D28A: mov eax, dword ptr [eax + 8] */
  12256     ecx = edi; /* 0x3000D28D: mov ecx, edi */
  12257     edx = MEM32(ecx); /* 0x3000D28F: mov edx, dword ptr [ecx] */
  12258     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D291: mov dword ptr [ebp - 0x1c], eax */
  12259     eax = MEM32(ecx + 0x4); /* 0x3000D294: mov eax, dword ptr [ecx + 4] */
  12260     ecx = MEM32(ecx + 0x8); /* 0x3000D297: mov ecx, dword ptr [ecx + 8] */
  12261     MEM32(ebp + (-0x30)) = edx; /* 0x3000D29A: mov dword ptr [ebp - 0x30], edx */
  12262     edx = ebp + (-0x24); /* 0x3000D29D: lea edx, [ebp - 0x24] */
  12263     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D2A0: mov dword ptr [ebp - 0x28], ecx */
  12264     PUSH32(esp, edx); /* 0x3000D2A3: push edx */
  12265     ecx = ebp + (-0x30); /* 0x3000D2A4: lea ecx, [ebp - 0x30] */
  12266     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D2A7: mov dword ptr [ebp - 0x2c], eax */
  12267     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D2AA: call dword ptr [0x300190c4] */
  12268     RECOMP_FLAGS_IN();
  12269     ecx = MEM32(eax); /* 0x3000D2B0: mov ecx, dword ptr [eax] */
  12270     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D2B2: mov dword ptr [ebp - 0x18], ecx */
  12271     edx = MEM32(eax + 0x4); /* 0x3000D2B5: mov edx, dword ptr [eax + 4] */
  12272     ecx = ebp + (-0x18); /* 0x3000D2B8: lea ecx, [ebp - 0x18] */
  12273     PUSH32(esp, ecx); /* 0x3000D2BB: push ecx */
  12274     MEM32(ebp + (-0x14)) = edx; /* 0x3000D2BC: mov dword ptr [ebp - 0x14], edx */
  12275     eax = MEM32(eax + 0x8); /* 0x3000D2BF: mov eax, dword ptr [eax + 8] */
  12276     PUSH32(esp, 0); /* 0x3000D2C2: push 0 */
  12277     ecx = ebp + (-0x58); /* 0x3000D2C4: lea ecx, [ebp - 0x58] */
  12278     MEM32(ebp + (-0x10)) = eax; /* 0x3000D2C7: mov dword ptr [ebp - 0x10], eax */
  12279     RECOMP_ICALL(0x30007BA0u); /* 0x3000D2CA: call 0x30007ba0 */ /* not lifted */
  12280     RECOMP_FLAGS_IN();
  12281     ecx = MEM32(ebp + (-0xBC)); /* 0x3000D2CF: mov ecx, dword ptr [ebp - 0xbc] */
  12282     edx = MEM32(ebp + (-0xC4)); /* 0x3000D2D5: mov edx, dword ptr [ebp - 0xc4] */
  12283     eax = MEM32(ebp + (-0xC0)); /* 0x3000D2DB: mov eax, dword ptr [ebp - 0xc0] */
  12284     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D2E1: mov dword ptr [ebp - 0x34], ecx */
  12285     PUSH32(esp, esi); /* 0x3000D2E4: push esi */
  12286     ecx = ebp + (-0x3C); /* 0x3000D2E5: lea ecx, [ebp - 0x3c] */
  12287     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D2E8: mov dword ptr [ebp - 0x3c], edx */
  12288     MEM32(ebp + (-0x38)) = eax; /* 0x3000D2EB: mov dword ptr [ebp - 0x38], eax */
  12289     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D2EE: call dword ptr [0x300190ec] */
  12290     RECOMP_FLAGS_IN();
  12291     edx = MEM32(eax); /* 0x3000D2F4: mov edx, dword ptr [eax] */
  12292     MEM32(ebp + (-0x24)) = edx; /* 0x3000D2F6: mov dword ptr [ebp - 0x24], edx */
  12293     ecx = MEM32(eax + 0x4); /* 0x3000D2F9: mov ecx, dword ptr [eax + 4] */
  12294     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D2FC: mov dword ptr [ebp - 0x20], ecx */
  12295     edx = MEM32(eax + 0x8); /* 0x3000D2FF: mov edx, dword ptr [eax + 8] */
  12296     eax = edi; /* 0x3000D302: mov eax, edi */
  12297     ecx = MEM32(eax); /* 0x3000D304: mov ecx, dword ptr [eax] */
  12298     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D306: mov dword ptr [ebp - 0x30], ecx */
  12299     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D309: mov dword ptr [ebp - 0x1c], edx */
  12300     edx = MEM32(eax + 0x4); /* 0x3000D30C: mov edx, dword ptr [eax + 4] */
  12301     eax = MEM32(eax + 0x8); /* 0x3000D30F: mov eax, dword ptr [eax + 8] */
  12302     ecx = ebp + (-0x24); /* 0x3000D312: lea ecx, [ebp - 0x24] */
  12303     PUSH32(esp, ecx); /* 0x3000D315: push ecx */
  12304     ecx = ebp + (-0x30); /* 0x3000D316: lea ecx, [ebp - 0x30] */
  12305     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D319: mov dword ptr [ebp - 0x2c], edx */
  12306     MEM32(ebp + (-0x28)) = eax; /* 0x3000D31C: mov dword ptr [ebp - 0x28], eax */
  12307     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D31F: call dword ptr [0x300190c4] */
  12308     RECOMP_FLAGS_IN();
  12309     edx = MEM32(eax); /* 0x3000D325: mov edx, dword ptr [eax] */
  12310     MEM32(ebp + (-0x18)) = edx; /* 0x3000D327: mov dword ptr [ebp - 0x18], edx */
  12311     ecx = MEM32(eax + 0x4); /* 0x3000D32A: mov ecx, dword ptr [eax + 4] */
  12312     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D32D: mov dword ptr [ebp - 0x14], ecx */
  12313     edx = MEM32(eax + 0x8); /* 0x3000D330: mov edx, dword ptr [eax + 8] */
  12314     eax = ebp + (-0x18); /* 0x3000D333: lea eax, [ebp - 0x18] */
  12315     PUSH32(esp, eax); /* 0x3000D336: push eax */
  12316     PUSH32(esp, 1); /* 0x3000D337: push 1 */
  12317     ecx = ebp + (-0x58); /* 0x3000D339: lea ecx, [ebp - 0x58] */
  12318     MEM32(ebp + (-0x10)) = edx; /* 0x3000D33C: mov dword ptr [ebp - 0x10], edx */
  12319     RECOMP_ICALL(0x30007BA0u); /* 0x3000D33F: call 0x30007ba0 */ /* not lifted */
  12320     RECOMP_FLAGS_IN();
  12321     ecx = MEM32(ebp + (-0x7C)); /* 0x3000D344: mov ecx, dword ptr [ebp - 0x7c] */
  12322     edx = MEM32(ebp + (-0x78)); /* 0x3000D347: mov edx, dword ptr [ebp - 0x78] */
  12323     eax = MEM32(ebp + (-0x74)); /* 0x3000D34A: mov eax, dword ptr [ebp - 0x74] */
  12324     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000D34D: mov dword ptr [ebp - 0x3c], ecx */
  12325     PUSH32(esp, esi); /* 0x3000D350: push esi */
  12326     ecx = ebp + (-0x3C); /* 0x3000D351: lea ecx, [ebp - 0x3c] */
  12327     MEM32(ebp + (-0x38)) = edx; /* 0x3000D354: mov dword ptr [ebp - 0x38], edx */
  12328     MEM32(ebp + (-0x34)) = eax; /* 0x3000D357: mov dword ptr [ebp - 0x34], eax */
  12329     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D35A: call dword ptr [0x300190ec] */
  12330     RECOMP_FLAGS_IN();
  12331     ecx = MEM32(eax); /* 0x3000D360: mov ecx, dword ptr [eax] */
  12332     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D362: mov dword ptr [ebp - 0x24], ecx */
  12333     edx = MEM32(eax + 0x4); /* 0x3000D365: mov edx, dword ptr [eax + 4] */
  12334     MEM32(ebp + (-0x20)) = edx; /* 0x3000D368: mov dword ptr [ebp - 0x20], edx */
  12335     eax = MEM32(eax + 0x8); /* 0x3000D36B: mov eax, dword ptr [eax + 8] */
  12336     ecx = edi; /* 0x3000D36E: mov ecx, edi */
  12337     edx = MEM32(ecx); /* 0x3000D370: mov edx, dword ptr [ecx] */
  12338     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D372: mov dword ptr [ebp - 0x1c], eax */
  12339     eax = MEM32(ecx + 0x4); /* 0x3000D375: mov eax, dword ptr [ecx + 4] */
  12340     MEM32(ebp + (-0x30)) = edx; /* 0x3000D378: mov dword ptr [ebp - 0x30], edx */
  12341     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D37B: mov dword ptr [ebp - 0x2c], eax */
  12342     ecx = MEM32(ecx + 0x8); /* 0x3000D37E: mov ecx, dword ptr [ecx + 8] */
  12343     edx = ebp + (-0x24); /* 0x3000D381: lea edx, [ebp - 0x24] */
  12344     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D384: mov dword ptr [ebp - 0x28], ecx */
  12345     PUSH32(esp, edx); /* 0x3000D387: push edx */
  12346     ecx = ebp + (-0x30); /* 0x3000D388: lea ecx, [ebp - 0x30] */
  12347     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D38B: call dword ptr [0x300190c4] */
  12348     RECOMP_FLAGS_IN();
  12349     ecx = MEM32(eax); /* 0x3000D391: mov ecx, dword ptr [eax] */
  12350     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D393: mov dword ptr [ebp - 0x18], ecx */
  12351     edx = MEM32(eax + 0x4); /* 0x3000D396: mov edx, dword ptr [eax + 4] */
  12352     ecx = ebp + (-0x18); /* 0x3000D399: lea ecx, [ebp - 0x18] */
  12353     PUSH32(esp, ecx); /* 0x3000D39C: push ecx */
  12354     MEM32(ebp + (-0x14)) = edx; /* 0x3000D39D: mov dword ptr [ebp - 0x14], edx */
  12355     eax = MEM32(eax + 0x8); /* 0x3000D3A0: mov eax, dword ptr [eax + 8] */
  12356     PUSH32(esp, 2); /* 0x3000D3A3: push 2 */
  12357     ecx = ebp + (-0x58); /* 0x3000D3A5: lea ecx, [ebp - 0x58] */
  12358     MEM32(ebp + (-0x10)) = eax; /* 0x3000D3A8: mov dword ptr [ebp - 0x10], eax */
  12359     RECOMP_ICALL(0x30007BA0u); /* 0x3000D3AB: call 0x30007ba0 */ /* not lifted */
  12360     RECOMP_FLAGS_IN();
  12361     ecx = MEM32(ebp + (-0xA4)); /* 0x3000D3B0: mov ecx, dword ptr [ebp - 0xa4] */
  12362     edx = MEM32(ebp + (-0xAC)); /* 0x3000D3B6: mov edx, dword ptr [ebp - 0xac] */
  12363     eax = MEM32(ebp + (-0xA8)); /* 0x3000D3BC: mov eax, dword ptr [ebp - 0xa8] */
  12364     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D3C2: mov dword ptr [ebp - 0x34], ecx */
  12365     PUSH32(esp, esi); /* 0x3000D3C5: push esi */
  12366     ecx = ebp + (-0x3C); /* 0x3000D3C6: lea ecx, [ebp - 0x3c] */
  12367     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D3C9: mov dword ptr [ebp - 0x3c], edx */
  12368     MEM32(ebp + (-0x38)) = eax; /* 0x3000D3CC: mov dword ptr [ebp - 0x38], eax */
  12369     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D3CF: call dword ptr [0x300190ec] */
  12370     RECOMP_FLAGS_IN();
  12371     edx = MEM32(eax); /* 0x3000D3D5: mov edx, dword ptr [eax] */
  12372     MEM32(ebp + (-0x24)) = edx; /* 0x3000D3D7: mov dword ptr [ebp - 0x24], edx */
  12373     ecx = MEM32(eax + 0x4); /* 0x3000D3DA: mov ecx, dword ptr [eax + 4] */
  12374     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D3DD: mov dword ptr [ebp - 0x20], ecx */
  12375     edx = MEM32(eax + 0x8); /* 0x3000D3E0: mov edx, dword ptr [eax + 8] */
  12376     eax = edi; /* 0x3000D3E3: mov eax, edi */
  12377     ecx = MEM32(eax); /* 0x3000D3E5: mov ecx, dword ptr [eax] */
  12378     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D3E7: mov dword ptr [ebp - 0x30], ecx */
  12379     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D3EA: mov dword ptr [ebp - 0x1c], edx */
  12380     edx = MEM32(eax + 0x4); /* 0x3000D3ED: mov edx, dword ptr [eax + 4] */
  12381     eax = MEM32(eax + 0x8); /* 0x3000D3F0: mov eax, dword ptr [eax + 8] */
  12382     ecx = ebp + (-0x24); /* 0x3000D3F3: lea ecx, [ebp - 0x24] */
  12383     PUSH32(esp, ecx); /* 0x3000D3F6: push ecx */
  12384     ecx = ebp + (-0x30); /* 0x3000D3F7: lea ecx, [ebp - 0x30] */
  12385     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D3FA: mov dword ptr [ebp - 0x2c], edx */
  12386     MEM32(ebp + (-0x28)) = eax; /* 0x3000D3FD: mov dword ptr [ebp - 0x28], eax */
  12387     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D400: call dword ptr [0x300190c4] */
  12388     RECOMP_FLAGS_IN();
  12389     edx = MEM32(eax); /* 0x3000D406: mov edx, dword ptr [eax] */
  12390     MEM32(ebp + (-0x18)) = edx; /* 0x3000D408: mov dword ptr [ebp - 0x18], edx */
  12391     ecx = MEM32(eax + 0x4); /* 0x3000D40B: mov ecx, dword ptr [eax + 4] */
  12392     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D40E: mov dword ptr [ebp - 0x14], ecx */
  12393     edx = MEM32(eax + 0x8); /* 0x3000D411: mov edx, dword ptr [eax + 8] */
  12394     eax = ebp + (-0x18); /* 0x3000D414: lea eax, [ebp - 0x18] */
  12395     PUSH32(esp, eax); /* 0x3000D417: push eax */
  12396     PUSH32(esp, 3); /* 0x3000D418: push 3 */
  12397     ecx = ebp + (-0x58); /* 0x3000D41A: lea ecx, [ebp - 0x58] */
  12398     MEM32(ebp + (-0x10)) = edx; /* 0x3000D41D: mov dword ptr [ebp - 0x10], edx */
  12399     RECOMP_ICALL(0x30007BA0u); /* 0x3000D420: call 0x30007ba0 */ /* not lifted */
  12400     RECOMP_FLAGS_IN();
  12401     eax = MEM32(ebx + 0x8); /* 0x3000D425: mov eax, dword ptr [ebx + 8] */
  12402     ecx = ebp + (-0x58); /* 0x3000D428: lea ecx, [ebp - 0x58] */
  12403     PUSH32(esp, ecx); /* 0x3000D42B: push ecx */
  12404     PUSH32(esp, eax); /* 0x3000D42C: push eax */
  12405     ecx = ebx; /* 0x3000D42D: mov ecx, ebx */
  12406     RECOMP_ICALL(0x30002C40u); /* 0x3000D42F: call 0x30002c40 */ /* not lifted */
  12407     RECOMP_FLAGS_IN();
  12408     ecx = MEM32(ebp + (-0xBC)); /* 0x3000D434: mov ecx, dword ptr [ebp - 0xbc] */
  12409     edx = MEM32(ebp + (-0xC4)); /* 0x3000D43A: mov edx, dword ptr [ebp - 0xc4] */
  12410     eax = MEM32(ebp + (-0xC0)); /* 0x3000D440: mov eax, dword ptr [ebp - 0xc0] */
  12411     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D446: mov dword ptr [ebp - 0x34], ecx */
  12412     PUSH32(esp, esi); /* 0x3000D449: push esi */
  12413     ecx = ebp + (-0x3C); /* 0x3000D44A: lea ecx, [ebp - 0x3c] */
  12414     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D44D: mov dword ptr [ebp - 0x3c], edx */
  12415     MEM32(ebp + (-0x38)) = eax; /* 0x3000D450: mov dword ptr [ebp - 0x38], eax */
  12416     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D453: call dword ptr [0x300190ec] */
  12417     RECOMP_FLAGS_IN();
  12418     edx = MEM32(eax); /* 0x3000D459: mov edx, dword ptr [eax] */
  12419     MEM32(ebp + (-0x24)) = edx; /* 0x3000D45B: mov dword ptr [ebp - 0x24], edx */
  12420     ecx = MEM32(eax + 0x4); /* 0x3000D45E: mov ecx, dword ptr [eax + 4] */
  12421     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D461: mov dword ptr [ebp - 0x20], ecx */
  12422     edx = MEM32(eax + 0x8); /* 0x3000D464: mov edx, dword ptr [eax + 8] */
  12423     eax = edi; /* 0x3000D467: mov eax, edi */
  12424     ecx = MEM32(eax); /* 0x3000D469: mov ecx, dword ptr [eax] */
  12425     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D46B: mov dword ptr [ebp - 0x1c], edx */
  12426     edx = MEM32(eax + 0x4); /* 0x3000D46E: mov edx, dword ptr [eax + 4] */
  12427     eax = MEM32(eax + 0x8); /* 0x3000D471: mov eax, dword ptr [eax + 8] */
  12428     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D474: mov dword ptr [ebp - 0x30], ecx */
  12429     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D477: mov dword ptr [ebp - 0x2c], edx */
  12430     ecx = ebp + (-0x24); /* 0x3000D47A: lea ecx, [ebp - 0x24] */
  12431     PUSH32(esp, ecx); /* 0x3000D47D: push ecx */
  12432     ecx = ebp + (-0x30); /* 0x3000D47E: lea ecx, [ebp - 0x30] */
  12433     MEM32(ebp + (-0x28)) = eax; /* 0x3000D481: mov dword ptr [ebp - 0x28], eax */
  12434     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D484: call dword ptr [0x300190c4] */
  12435     RECOMP_FLAGS_IN();
  12436     edx = MEM32(eax); /* 0x3000D48A: mov edx, dword ptr [eax] */
  12437     MEM32(ebp + (-0x18)) = edx; /* 0x3000D48C: mov dword ptr [ebp - 0x18], edx */
  12438     ecx = MEM32(eax + 0x4); /* 0x3000D48F: mov ecx, dword ptr [eax + 4] */
  12439     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D492: mov dword ptr [ebp - 0x14], ecx */
  12440     edx = MEM32(eax + 0x8); /* 0x3000D495: mov edx, dword ptr [eax + 8] */
  12441     eax = ebp + (-0x18); /* 0x3000D498: lea eax, [ebp - 0x18] */
  12442     PUSH32(esp, eax); /* 0x3000D49B: push eax */
  12443     PUSH32(esp, 0); /* 0x3000D49C: push 0 */
  12444     ecx = ebp + (-0x58); /* 0x3000D49E: lea ecx, [ebp - 0x58] */
  12445     MEM32(ebp + (-0x10)) = edx; /* 0x3000D4A1: mov dword ptr [ebp - 0x10], edx */
  12446     RECOMP_ICALL(0x30007BA0u); /* 0x3000D4A4: call 0x30007ba0 */ /* not lifted */
  12447     RECOMP_FLAGS_IN();
  12448     ecx = MEM32(ebp + (-0xDC)); /* 0x3000D4A9: mov ecx, dword ptr [ebp - 0xdc] */
  12449     edx = MEM32(ebp + (-0xD8)); /* 0x3000D4AF: mov edx, dword ptr [ebp - 0xd8] */
  12450     eax = MEM32(ebp + (-0xD4)); /* 0x3000D4B5: mov eax, dword ptr [ebp - 0xd4] */
  12451     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000D4BB: mov dword ptr [ebp - 0x3c], ecx */
  12452     PUSH32(esp, esi); /* 0x3000D4BE: push esi */
  12453     ecx = ebp + (-0x3C); /* 0x3000D4BF: lea ecx, [ebp - 0x3c] */
  12454     MEM32(ebp + (-0x38)) = edx; /* 0x3000D4C2: mov dword ptr [ebp - 0x38], edx */
  12455     MEM32(ebp + (-0x34)) = eax; /* 0x3000D4C5: mov dword ptr [ebp - 0x34], eax */
  12456     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D4C8: call dword ptr [0x300190ec] */
  12457     RECOMP_FLAGS_IN();
  12458     ecx = MEM32(eax); /* 0x3000D4CE: mov ecx, dword ptr [eax] */
  12459     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D4D0: mov dword ptr [ebp - 0x24], ecx */
  12460     edx = MEM32(eax + 0x4); /* 0x3000D4D3: mov edx, dword ptr [eax + 4] */
  12461     MEM32(ebp + (-0x20)) = edx; /* 0x3000D4D6: mov dword ptr [ebp - 0x20], edx */
  12462     eax = MEM32(eax + 0x8); /* 0x3000D4D9: mov eax, dword ptr [eax + 8] */
  12463     ecx = edi; /* 0x3000D4DC: mov ecx, edi */
  12464     edx = MEM32(ecx); /* 0x3000D4DE: mov edx, dword ptr [ecx] */
  12465     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D4E0: mov dword ptr [ebp - 0x1c], eax */
  12466     eax = MEM32(ecx + 0x4); /* 0x3000D4E3: mov eax, dword ptr [ecx + 4] */
  12467     ecx = MEM32(ecx + 0x8); /* 0x3000D4E6: mov ecx, dword ptr [ecx + 8] */
  12468     MEM32(ebp + (-0x30)) = edx; /* 0x3000D4E9: mov dword ptr [ebp - 0x30], edx */
  12469     edx = ebp + (-0x24); /* 0x3000D4EC: lea edx, [ebp - 0x24] */
  12470     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D4EF: mov dword ptr [ebp - 0x28], ecx */
  12471     PUSH32(esp, edx); /* 0x3000D4F2: push edx */
  12472     ecx = ebp + (-0x30); /* 0x3000D4F3: lea ecx, [ebp - 0x30] */
  12473     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D4F6: mov dword ptr [ebp - 0x2c], eax */
  12474     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D4F9: call dword ptr [0x300190c4] */
  12475     RECOMP_FLAGS_IN();
  12476     ecx = MEM32(eax); /* 0x3000D4FF: mov ecx, dword ptr [eax] */
  12477     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D501: mov dword ptr [ebp - 0x18], ecx */
  12478     edx = MEM32(eax + 0x4); /* 0x3000D504: mov edx, dword ptr [eax + 4] */
  12479     ecx = ebp + (-0x18); /* 0x3000D507: lea ecx, [ebp - 0x18] */
  12480     PUSH32(esp, ecx); /* 0x3000D50A: push ecx */
  12481     MEM32(ebp + (-0x14)) = edx; /* 0x3000D50B: mov dword ptr [ebp - 0x14], edx */
  12482     eax = MEM32(eax + 0x8); /* 0x3000D50E: mov eax, dword ptr [eax + 8] */
  12483     PUSH32(esp, 1); /* 0x3000D511: push 1 */
  12484     ecx = ebp + (-0x58); /* 0x3000D513: lea ecx, [ebp - 0x58] */
  12485     MEM32(ebp + (-0x10)) = eax; /* 0x3000D516: mov dword ptr [ebp - 0x10], eax */
  12486     RECOMP_ICALL(0x30007BA0u); /* 0x3000D519: call 0x30007ba0 */ /* not lifted */
  12487     RECOMP_FLAGS_IN();
  12488     ecx = MEM32(ebp + (-0x8C)); /* 0x3000D51E: mov ecx, dword ptr [ebp - 0x8c] */
  12489     edx = MEM32(ebp + (-0x94)); /* 0x3000D524: mov edx, dword ptr [ebp - 0x94] */
  12490     eax = MEM32(ebp + (-0x90)); /* 0x3000D52A: mov eax, dword ptr [ebp - 0x90] */
  12491     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D530: mov dword ptr [ebp - 0x34], ecx */
  12492     PUSH32(esp, esi); /* 0x3000D533: push esi */
  12493     ecx = ebp + (-0x3C); /* 0x3000D534: lea ecx, [ebp - 0x3c] */
  12494     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D537: mov dword ptr [ebp - 0x3c], edx */
  12495     MEM32(ebp + (-0x38)) = eax; /* 0x3000D53A: mov dword ptr [ebp - 0x38], eax */
  12496     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D53D: call dword ptr [0x300190ec] */
  12497     RECOMP_FLAGS_IN();
  12498     edx = MEM32(eax); /* 0x3000D543: mov edx, dword ptr [eax] */
  12499     MEM32(ebp + (-0x24)) = edx; /* 0x3000D545: mov dword ptr [ebp - 0x24], edx */
  12500     ecx = MEM32(eax + 0x4); /* 0x3000D548: mov ecx, dword ptr [eax + 4] */
  12501     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D54B: mov dword ptr [ebp - 0x20], ecx */
  12502     edx = MEM32(eax + 0x8); /* 0x3000D54E: mov edx, dword ptr [eax + 8] */
  12503     eax = edi; /* 0x3000D551: mov eax, edi */
  12504     ecx = MEM32(eax); /* 0x3000D553: mov ecx, dword ptr [eax] */
  12505     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D555: mov dword ptr [ebp - 0x30], ecx */
  12506     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D558: mov dword ptr [ebp - 0x1c], edx */
  12507     edx = MEM32(eax + 0x4); /* 0x3000D55B: mov edx, dword ptr [eax + 4] */
  12508     eax = MEM32(eax + 0x8); /* 0x3000D55E: mov eax, dword ptr [eax + 8] */
  12509     ecx = ebp + (-0x24); /* 0x3000D561: lea ecx, [ebp - 0x24] */
  12510     PUSH32(esp, ecx); /* 0x3000D564: push ecx */
  12511     ecx = ebp + (-0x30); /* 0x3000D565: lea ecx, [ebp - 0x30] */
  12512     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D568: mov dword ptr [ebp - 0x2c], edx */
  12513     MEM32(ebp + (-0x28)) = eax; /* 0x3000D56B: mov dword ptr [ebp - 0x28], eax */
  12514     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D56E: call dword ptr [0x300190c4] */
  12515     RECOMP_FLAGS_IN();
  12516     edx = MEM32(eax); /* 0x3000D574: mov edx, dword ptr [eax] */
  12517     MEM32(ebp + (-0x18)) = edx; /* 0x3000D576: mov dword ptr [ebp - 0x18], edx */
  12518     ecx = MEM32(eax + 0x4); /* 0x3000D579: mov ecx, dword ptr [eax + 4] */
  12519     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D57C: mov dword ptr [ebp - 0x14], ecx */
  12520     edx = MEM32(eax + 0x8); /* 0x3000D57F: mov edx, dword ptr [eax + 8] */
  12521     eax = ebp + (-0x18); /* 0x3000D582: lea eax, [ebp - 0x18] */
  12522     PUSH32(esp, eax); /* 0x3000D585: push eax */
  12523     PUSH32(esp, 2); /* 0x3000D586: push 2 */
  12524     ecx = ebp + (-0x58); /* 0x3000D588: lea ecx, [ebp - 0x58] */
  12525     MEM32(ebp + (-0x10)) = edx; /* 0x3000D58B: mov dword ptr [ebp - 0x10], edx */
  12526     RECOMP_ICALL(0x30007BA0u); /* 0x3000D58E: call 0x30007ba0 */ /* not lifted */
  12527     RECOMP_FLAGS_IN();
  12528     ecx = MEM32(ebp + (-0x7C)); /* 0x3000D593: mov ecx, dword ptr [ebp - 0x7c] */
  12529     edx = MEM32(ebp + (-0x78)); /* 0x3000D596: mov edx, dword ptr [ebp - 0x78] */
  12530     eax = MEM32(ebp + (-0x74)); /* 0x3000D599: mov eax, dword ptr [ebp - 0x74] */
  12531     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000D59C: mov dword ptr [ebp - 0x3c], ecx */
  12532     PUSH32(esp, esi); /* 0x3000D59F: push esi */
  12533     ecx = ebp + (-0x3C); /* 0x3000D5A0: lea ecx, [ebp - 0x3c] */
  12534     MEM32(ebp + (-0x38)) = edx; /* 0x3000D5A3: mov dword ptr [ebp - 0x38], edx */
  12535     MEM32(ebp + (-0x34)) = eax; /* 0x3000D5A6: mov dword ptr [ebp - 0x34], eax */
  12536     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D5A9: call dword ptr [0x300190ec] */
  12537     RECOMP_FLAGS_IN();
  12538     ecx = MEM32(eax); /* 0x3000D5AF: mov ecx, dword ptr [eax] */
  12539     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D5B1: mov dword ptr [ebp - 0x24], ecx */
  12540     edx = MEM32(eax + 0x4); /* 0x3000D5B4: mov edx, dword ptr [eax + 4] */
  12541     MEM32(ebp + (-0x20)) = edx; /* 0x3000D5B7: mov dword ptr [ebp - 0x20], edx */
  12542     eax = MEM32(eax + 0x8); /* 0x3000D5BA: mov eax, dword ptr [eax + 8] */
  12543     ecx = edi; /* 0x3000D5BD: mov ecx, edi */
  12544     edx = MEM32(ecx); /* 0x3000D5BF: mov edx, dword ptr [ecx] */
  12545     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D5C1: mov dword ptr [ebp - 0x1c], eax */
  12546     eax = MEM32(ecx + 0x4); /* 0x3000D5C4: mov eax, dword ptr [ecx + 4] */
  12547     ecx = MEM32(ecx + 0x8); /* 0x3000D5C7: mov ecx, dword ptr [ecx + 8] */
  12548     MEM32(ebp + (-0x30)) = edx; /* 0x3000D5CA: mov dword ptr [ebp - 0x30], edx */
  12549     edx = ebp + (-0x24); /* 0x3000D5CD: lea edx, [ebp - 0x24] */
  12550     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D5D0: mov dword ptr [ebp - 0x28], ecx */
  12551     PUSH32(esp, edx); /* 0x3000D5D3: push edx */
  12552     ecx = ebp + (-0x30); /* 0x3000D5D4: lea ecx, [ebp - 0x30] */
  12553     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D5D7: mov dword ptr [ebp - 0x2c], eax */
  12554     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D5DA: call dword ptr [0x300190c4] */
  12555     RECOMP_FLAGS_IN();
  12556     ecx = MEM32(eax); /* 0x3000D5E0: mov ecx, dword ptr [eax] */
  12557     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D5E2: mov dword ptr [ebp - 0x18], ecx */
  12558     edx = MEM32(eax + 0x4); /* 0x3000D5E5: mov edx, dword ptr [eax + 4] */
  12559     ecx = ebp + (-0x18); /* 0x3000D5E8: lea ecx, [ebp - 0x18] */
  12560     PUSH32(esp, ecx); /* 0x3000D5EB: push ecx */
  12561     MEM32(ebp + (-0x14)) = edx; /* 0x3000D5EC: mov dword ptr [ebp - 0x14], edx */
  12562     eax = MEM32(eax + 0x8); /* 0x3000D5EF: mov eax, dword ptr [eax + 8] */
  12563     PUSH32(esp, 3); /* 0x3000D5F2: push 3 */
  12564     ecx = ebp + (-0x58); /* 0x3000D5F4: lea ecx, [ebp - 0x58] */
  12565     MEM32(ebp + (-0x10)) = eax; /* 0x3000D5F7: mov dword ptr [ebp - 0x10], eax */
  12566     RECOMP_ICALL(0x30007BA0u); /* 0x3000D5FA: call 0x30007ba0 */ /* not lifted */
  12567     RECOMP_FLAGS_IN();
  12568     eax = MEM32(ebx + 0x8); /* 0x3000D5FF: mov eax, dword ptr [ebx + 8] */
  12569     edx = ebp + (-0x58); /* 0x3000D602: lea edx, [ebp - 0x58] */
  12570     PUSH32(esp, edx); /* 0x3000D605: push edx */
  12571     PUSH32(esp, eax); /* 0x3000D606: push eax */
  12572     ecx = ebx; /* 0x3000D607: mov ecx, ebx */
  12573     RECOMP_ICALL(0x30002C40u); /* 0x3000D609: call 0x30002c40 */ /* not lifted */
  12574     RECOMP_FLAGS_IN();
  12575     ecx = MEM32(ebp + (-0xD8)); /* 0x3000D60E: mov ecx, dword ptr [ebp - 0xd8] */
  12576     eax = MEM32(ebp + (-0xDC)); /* 0x3000D614: mov eax, dword ptr [ebp - 0xdc] */
  12577     edx = MEM32(ebp + (-0xD4)); /* 0x3000D61A: mov edx, dword ptr [ebp - 0xd4] */
  12578     MEM32(ebp + (-0x38)) = ecx; /* 0x3000D620: mov dword ptr [ebp - 0x38], ecx */
  12579     PUSH32(esp, esi); /* 0x3000D623: push esi */
  12580     ecx = ebp + (-0x3C); /* 0x3000D624: lea ecx, [ebp - 0x3c] */
  12581     MEM32(ebp + (-0x3C)) = eax; /* 0x3000D627: mov dword ptr [ebp - 0x3c], eax */
  12582     MEM32(ebp + (-0x34)) = edx; /* 0x3000D62A: mov dword ptr [ebp - 0x34], edx */
  12583     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D62D: call dword ptr [0x300190ec] */
  12584     RECOMP_FLAGS_IN();
  12585     ecx = MEM32(eax); /* 0x3000D633: mov ecx, dword ptr [eax] */
  12586     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D635: mov dword ptr [ebp - 0x24], ecx */
  12587     edx = MEM32(eax + 0x4); /* 0x3000D638: mov edx, dword ptr [eax + 4] */
  12588     MEM32(ebp + (-0x20)) = edx; /* 0x3000D63B: mov dword ptr [ebp - 0x20], edx */
  12589     eax = MEM32(eax + 0x8); /* 0x3000D63E: mov eax, dword ptr [eax + 8] */
  12590     ecx = edi; /* 0x3000D641: mov ecx, edi */
  12591     edx = MEM32(ecx); /* 0x3000D643: mov edx, dword ptr [ecx] */
  12592     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D645: mov dword ptr [ebp - 0x1c], eax */
  12593     eax = MEM32(ecx + 0x4); /* 0x3000D648: mov eax, dword ptr [ecx + 4] */
  12594     ecx = MEM32(ecx + 0x8); /* 0x3000D64B: mov ecx, dword ptr [ecx + 8] */
  12595     MEM32(ebp + (-0x30)) = edx; /* 0x3000D64E: mov dword ptr [ebp - 0x30], edx */
  12596     edx = ebp + (-0x24); /* 0x3000D651: lea edx, [ebp - 0x24] */
  12597     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D654: mov dword ptr [ebp - 0x28], ecx */
  12598     PUSH32(esp, edx); /* 0x3000D657: push edx */
  12599     ecx = ebp + (-0x30); /* 0x3000D658: lea ecx, [ebp - 0x30] */
  12600     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D65B: mov dword ptr [ebp - 0x2c], eax */
  12601     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D65E: call dword ptr [0x300190c4] */
  12602     RECOMP_FLAGS_IN();
  12603     ecx = MEM32(eax); /* 0x3000D664: mov ecx, dword ptr [eax] */
  12604     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D666: mov dword ptr [ebp - 0x18], ecx */
  12605     edx = MEM32(eax + 0x4); /* 0x3000D669: mov edx, dword ptr [eax + 4] */
  12606     ecx = ebp + (-0x18); /* 0x3000D66C: lea ecx, [ebp - 0x18] */
  12607     PUSH32(esp, ecx); /* 0x3000D66F: push ecx */
  12608     MEM32(ebp + (-0x14)) = edx; /* 0x3000D670: mov dword ptr [ebp - 0x14], edx */
  12609     eax = MEM32(eax + 0x8); /* 0x3000D673: mov eax, dword ptr [eax + 8] */
  12610     PUSH32(esp, 0); /* 0x3000D676: push 0 */
  12611     ecx = ebp + (-0x58); /* 0x3000D678: lea ecx, [ebp - 0x58] */
  12612     MEM32(ebp + (-0x10)) = eax; /* 0x3000D67B: mov dword ptr [ebp - 0x10], eax */
  12613     RECOMP_ICALL(0x30007BA0u); /* 0x3000D67E: call 0x30007ba0 */ /* not lifted */
  12614     RECOMP_FLAGS_IN();
  12615     ecx = MEM32(ebp + (-0xBC)); /* 0x3000D683: mov ecx, dword ptr [ebp - 0xbc] */
  12616     edx = MEM32(ebp + (-0xC4)); /* 0x3000D689: mov edx, dword ptr [ebp - 0xc4] */
  12617     eax = MEM32(ebp + (-0xC0)); /* 0x3000D68F: mov eax, dword ptr [ebp - 0xc0] */
  12618     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D695: mov dword ptr [ebp - 0x34], ecx */
  12619     PUSH32(esp, esi); /* 0x3000D698: push esi */
  12620     ecx = ebp + (-0x3C); /* 0x3000D699: lea ecx, [ebp - 0x3c] */
  12621     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D69C: mov dword ptr [ebp - 0x3c], edx */
  12622     MEM32(ebp + (-0x38)) = eax; /* 0x3000D69F: mov dword ptr [ebp - 0x38], eax */
  12623     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D6A2: call dword ptr [0x300190ec] */
  12624     RECOMP_FLAGS_IN();
  12625     edx = MEM32(eax); /* 0x3000D6A8: mov edx, dword ptr [eax] */
  12626     MEM32(ebp + (-0x24)) = edx; /* 0x3000D6AA: mov dword ptr [ebp - 0x24], edx */
  12627     ecx = MEM32(eax + 0x4); /* 0x3000D6AD: mov ecx, dword ptr [eax + 4] */
  12628     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D6B0: mov dword ptr [ebp - 0x20], ecx */
  12629     edx = MEM32(eax + 0x8); /* 0x3000D6B3: mov edx, dword ptr [eax + 8] */
  12630     eax = edi; /* 0x3000D6B6: mov eax, edi */
  12631     ecx = MEM32(eax); /* 0x3000D6B8: mov ecx, dword ptr [eax] */
  12632     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D6BA: mov dword ptr [ebp - 0x30], ecx */
  12633     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D6BD: mov dword ptr [ebp - 0x1c], edx */
  12634     edx = MEM32(eax + 0x4); /* 0x3000D6C0: mov edx, dword ptr [eax + 4] */
  12635     eax = MEM32(eax + 0x8); /* 0x3000D6C3: mov eax, dword ptr [eax + 8] */
  12636     ecx = ebp + (-0x24); /* 0x3000D6C6: lea ecx, [ebp - 0x24] */
  12637     PUSH32(esp, ecx); /* 0x3000D6C9: push ecx */
  12638     ecx = ebp + (-0x30); /* 0x3000D6CA: lea ecx, [ebp - 0x30] */
  12639     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D6CD: mov dword ptr [ebp - 0x2c], edx */
  12640     MEM32(ebp + (-0x28)) = eax; /* 0x3000D6D0: mov dword ptr [ebp - 0x28], eax */
  12641     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D6D3: call dword ptr [0x300190c4] */
  12642     RECOMP_FLAGS_IN();
  12643     edx = MEM32(eax); /* 0x3000D6D9: mov edx, dword ptr [eax] */
  12644     MEM32(ebp + (-0x18)) = edx; /* 0x3000D6DB: mov dword ptr [ebp - 0x18], edx */
  12645     ecx = MEM32(eax + 0x4); /* 0x3000D6DE: mov ecx, dword ptr [eax + 4] */
  12646     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D6E1: mov dword ptr [ebp - 0x14], ecx */
  12647     edx = MEM32(eax + 0x8); /* 0x3000D6E4: mov edx, dword ptr [eax + 8] */
  12648     eax = ebp + (-0x18); /* 0x3000D6E7: lea eax, [ebp - 0x18] */
  12649     PUSH32(esp, eax); /* 0x3000D6EA: push eax */
  12650     PUSH32(esp, 1); /* 0x3000D6EB: push 1 */
  12651     ecx = ebp + (-0x58); /* 0x3000D6ED: lea ecx, [ebp - 0x58] */
  12652     MEM32(ebp + (-0x10)) = edx; /* 0x3000D6F0: mov dword ptr [ebp - 0x10], edx */
  12653     RECOMP_ICALL(0x30007BA0u); /* 0x3000D6F3: call 0x30007ba0 */ /* not lifted */
  12654     RECOMP_FLAGS_IN();
  12655     ecx = MEM32(ebp + (-0xA0)); /* 0x3000D6F8: mov ecx, dword ptr [ebp - 0xa0] */
  12656     edx = MEM32(ebp + (-0x9C)); /* 0x3000D6FE: mov edx, dword ptr [ebp - 0x9c] */
  12657     eax = MEM32(ebp + (-0x98)); /* 0x3000D704: mov eax, dword ptr [ebp - 0x98] */
  12658     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000D70A: mov dword ptr [ebp - 0x3c], ecx */
  12659     PUSH32(esp, esi); /* 0x3000D70D: push esi */
  12660     ecx = ebp + (-0x3C); /* 0x3000D70E: lea ecx, [ebp - 0x3c] */
  12661     MEM32(ebp + (-0x38)) = edx; /* 0x3000D711: mov dword ptr [ebp - 0x38], edx */
  12662     MEM32(ebp + (-0x34)) = eax; /* 0x3000D714: mov dword ptr [ebp - 0x34], eax */
  12663     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D717: call dword ptr [0x300190ec] */
  12664     RECOMP_FLAGS_IN();
  12665     ecx = MEM32(eax); /* 0x3000D71D: mov ecx, dword ptr [eax] */
  12666     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D71F: mov dword ptr [ebp - 0x24], ecx */
  12667     edx = MEM32(eax + 0x4); /* 0x3000D722: mov edx, dword ptr [eax + 4] */
  12668     MEM32(ebp + (-0x20)) = edx; /* 0x3000D725: mov dword ptr [ebp - 0x20], edx */
  12669     eax = MEM32(eax + 0x8); /* 0x3000D728: mov eax, dword ptr [eax + 8] */
  12670     ecx = edi; /* 0x3000D72B: mov ecx, edi */
  12671     edx = MEM32(ecx); /* 0x3000D72D: mov edx, dword ptr [ecx] */
  12672     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D72F: mov dword ptr [ebp - 0x1c], eax */
  12673     eax = MEM32(ecx + 0x4); /* 0x3000D732: mov eax, dword ptr [ecx + 4] */
  12674     ecx = MEM32(ecx + 0x8); /* 0x3000D735: mov ecx, dword ptr [ecx + 8] */
  12675     MEM32(ebp + (-0x30)) = edx; /* 0x3000D738: mov dword ptr [ebp - 0x30], edx */
  12676     edx = ebp + (-0x24); /* 0x3000D73B: lea edx, [ebp - 0x24] */
  12677     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D73E: mov dword ptr [ebp - 0x28], ecx */
  12678     PUSH32(esp, edx); /* 0x3000D741: push edx */
  12679     ecx = ebp + (-0x30); /* 0x3000D742: lea ecx, [ebp - 0x30] */
  12680     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D745: mov dword ptr [ebp - 0x2c], eax */
  12681     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D748: call dword ptr [0x300190c4] */
  12682     RECOMP_FLAGS_IN();
  12683     ecx = MEM32(eax); /* 0x3000D74E: mov ecx, dword ptr [eax] */
  12684     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D750: mov dword ptr [ebp - 0x18], ecx */
  12685     edx = MEM32(eax + 0x4); /* 0x3000D753: mov edx, dword ptr [eax + 4] */
  12686     ecx = ebp + (-0x18); /* 0x3000D756: lea ecx, [ebp - 0x18] */
  12687     MEM32(ebp + (-0x14)) = edx; /* 0x3000D759: mov dword ptr [ebp - 0x14], edx */
  12688     eax = MEM32(eax + 0x8); /* 0x3000D75C: mov eax, dword ptr [eax + 8] */
  12689     PUSH32(esp, ecx); /* 0x3000D75F: push ecx */
  12690     MEM32(ebp + (-0x10)) = eax; /* 0x3000D760: mov dword ptr [ebp - 0x10], eax */
  12691     PUSH32(esp, 2); /* 0x3000D763: push 2 */
  12692     ecx = ebp + (-0x58); /* 0x3000D765: lea ecx, [ebp - 0x58] */
  12693     RECOMP_ICALL(0x30007BA0u); /* 0x3000D768: call 0x30007ba0 */ /* not lifted */
  12694     RECOMP_FLAGS_IN();
  12695     ecx = MEM32(ebp + (-0xB0)); /* 0x3000D76D: mov ecx, dword ptr [ebp - 0xb0] */
  12696     edx = MEM32(ebp + (-0xB8)); /* 0x3000D773: mov edx, dword ptr [ebp - 0xb8] */
  12697     eax = MEM32(ebp + (-0xB4)); /* 0x3000D779: mov eax, dword ptr [ebp - 0xb4] */
  12698     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D77F: mov dword ptr [ebp - 0x34], ecx */
  12699     PUSH32(esp, esi); /* 0x3000D782: push esi */
  12700     ecx = ebp + (-0x3C); /* 0x3000D783: lea ecx, [ebp - 0x3c] */
  12701     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D786: mov dword ptr [ebp - 0x3c], edx */
  12702     MEM32(ebp + (-0x38)) = eax; /* 0x3000D789: mov dword ptr [ebp - 0x38], eax */
  12703     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D78C: call dword ptr [0x300190ec] */
  12704     RECOMP_FLAGS_IN();
  12705     edx = MEM32(eax); /* 0x3000D792: mov edx, dword ptr [eax] */
  12706     MEM32(ebp + (-0x24)) = edx; /* 0x3000D794: mov dword ptr [ebp - 0x24], edx */
  12707     ecx = MEM32(eax + 0x4); /* 0x3000D797: mov ecx, dword ptr [eax + 4] */
  12708     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D79A: mov dword ptr [ebp - 0x20], ecx */
  12709     edx = MEM32(eax + 0x8); /* 0x3000D79D: mov edx, dword ptr [eax + 8] */
  12710     eax = edi; /* 0x3000D7A0: mov eax, edi */
  12711     ecx = MEM32(eax); /* 0x3000D7A2: mov ecx, dword ptr [eax] */
  12712     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D7A4: mov dword ptr [ebp - 0x30], ecx */
  12713     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D7A7: mov dword ptr [ebp - 0x1c], edx */
  12714     edx = MEM32(eax + 0x4); /* 0x3000D7AA: mov edx, dword ptr [eax + 4] */
  12715     eax = MEM32(eax + 0x8); /* 0x3000D7AD: mov eax, dword ptr [eax + 8] */
  12716     ecx = ebp + (-0x24); /* 0x3000D7B0: lea ecx, [ebp - 0x24] */
  12717     PUSH32(esp, ecx); /* 0x3000D7B3: push ecx */
  12718     ecx = ebp + (-0x30); /* 0x3000D7B4: lea ecx, [ebp - 0x30] */
  12719     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D7B7: mov dword ptr [ebp - 0x2c], edx */
  12720     MEM32(ebp + (-0x28)) = eax; /* 0x3000D7BA: mov dword ptr [ebp - 0x28], eax */
  12721     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D7BD: call dword ptr [0x300190c4] */
  12722     RECOMP_FLAGS_IN();
  12723     edx = MEM32(eax); /* 0x3000D7C3: mov edx, dword ptr [eax] */
  12724     MEM32(ebp + (-0x18)) = edx; /* 0x3000D7C5: mov dword ptr [ebp - 0x18], edx */
  12725     ecx = MEM32(eax + 0x4); /* 0x3000D7C8: mov ecx, dword ptr [eax + 4] */
  12726     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D7CB: mov dword ptr [ebp - 0x14], ecx */
  12727     edx = MEM32(eax + 0x8); /* 0x3000D7CE: mov edx, dword ptr [eax + 8] */
  12728     eax = ebp + (-0x18); /* 0x3000D7D1: lea eax, [ebp - 0x18] */
  12729     PUSH32(esp, eax); /* 0x3000D7D4: push eax */
  12730     PUSH32(esp, 3); /* 0x3000D7D5: push 3 */
  12731     ecx = ebp + (-0x58); /* 0x3000D7D7: lea ecx, [ebp - 0x58] */
  12732     MEM32(ebp + (-0x10)) = edx; /* 0x3000D7DA: mov dword ptr [ebp - 0x10], edx */
  12733     RECOMP_ICALL(0x30007BA0u); /* 0x3000D7DD: call 0x30007ba0 */ /* not lifted */
  12734     RECOMP_FLAGS_IN();
  12735     eax = MEM32(ebx + 0x8); /* 0x3000D7E2: mov eax, dword ptr [ebx + 8] */
  12736     ecx = ebp + (-0x58); /* 0x3000D7E5: lea ecx, [ebp - 0x58] */
  12737     PUSH32(esp, ecx); /* 0x3000D7E8: push ecx */
  12738     PUSH32(esp, eax); /* 0x3000D7E9: push eax */
  12739     ecx = ebx; /* 0x3000D7EA: mov ecx, ebx */
  12740     RECOMP_ICALL(0x30002C40u); /* 0x3000D7EC: call 0x30002c40 */ /* not lifted */
  12741     RECOMP_FLAGS_IN();
  12742     ecx = MEM32(ebp + (-0xC8)); /* 0x3000D7F1: mov ecx, dword ptr [ebp - 0xc8] */
  12743     edx = MEM32(ebp + (-0xD0)); /* 0x3000D7F7: mov edx, dword ptr [ebp - 0xd0] */
  12744     eax = MEM32(ebp + (-0xCC)); /* 0x3000D7FD: mov eax, dword ptr [ebp - 0xcc] */
  12745     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D803: mov dword ptr [ebp - 0x34], ecx */
  12746     PUSH32(esp, esi); /* 0x3000D806: push esi */
  12747     ecx = ebp + (-0x3C); /* 0x3000D807: lea ecx, [ebp - 0x3c] */
  12748     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D80A: mov dword ptr [ebp - 0x3c], edx */
  12749     MEM32(ebp + (-0x38)) = eax; /* 0x3000D80D: mov dword ptr [ebp - 0x38], eax */
  12750     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D810: call dword ptr [0x300190ec] */
  12751     RECOMP_FLAGS_IN();
  12752     edx = MEM32(eax); /* 0x3000D816: mov edx, dword ptr [eax] */
  12753     MEM32(ebp + (-0x24)) = edx; /* 0x3000D818: mov dword ptr [ebp - 0x24], edx */
  12754     ecx = MEM32(eax + 0x4); /* 0x3000D81B: mov ecx, dword ptr [eax + 4] */
  12755     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D81E: mov dword ptr [ebp - 0x20], ecx */
  12756     edx = MEM32(eax + 0x8); /* 0x3000D821: mov edx, dword ptr [eax + 8] */
  12757     eax = edi; /* 0x3000D824: mov eax, edi */
  12758     ecx = MEM32(eax); /* 0x3000D826: mov ecx, dword ptr [eax] */
  12759     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D828: mov dword ptr [ebp - 0x30], ecx */
  12760     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D82B: mov dword ptr [ebp - 0x1c], edx */
  12761     edx = MEM32(eax + 0x4); /* 0x3000D82E: mov edx, dword ptr [eax + 4] */
  12762     eax = MEM32(eax + 0x8); /* 0x3000D831: mov eax, dword ptr [eax + 8] */
  12763     ecx = ebp + (-0x24); /* 0x3000D834: lea ecx, [ebp - 0x24] */
  12764     PUSH32(esp, ecx); /* 0x3000D837: push ecx */
  12765     ecx = ebp + (-0x30); /* 0x3000D838: lea ecx, [ebp - 0x30] */
  12766     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D83B: mov dword ptr [ebp - 0x2c], edx */
  12767     MEM32(ebp + (-0x28)) = eax; /* 0x3000D83E: mov dword ptr [ebp - 0x28], eax */
  12768     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D841: call dword ptr [0x300190c4] */
  12769     RECOMP_FLAGS_IN();
  12770     edx = MEM32(eax); /* 0x3000D847: mov edx, dword ptr [eax] */
  12771     MEM32(ebp + (-0x18)) = edx; /* 0x3000D849: mov dword ptr [ebp - 0x18], edx */
  12772     ecx = MEM32(eax + 0x4); /* 0x3000D84C: mov ecx, dword ptr [eax + 4] */
  12773     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D84F: mov dword ptr [ebp - 0x14], ecx */
  12774     edx = MEM32(eax + 0x8); /* 0x3000D852: mov edx, dword ptr [eax + 8] */
  12775     eax = ebp + (-0x18); /* 0x3000D855: lea eax, [ebp - 0x18] */
  12776     PUSH32(esp, eax); /* 0x3000D858: push eax */
  12777     PUSH32(esp, 0); /* 0x3000D859: push 0 */
  12778     ecx = ebp + (-0x58); /* 0x3000D85B: lea ecx, [ebp - 0x58] */
  12779     MEM32(ebp + (-0x10)) = edx; /* 0x3000D85E: mov dword ptr [ebp - 0x10], edx */
  12780     RECOMP_ICALL(0x30007BA0u); /* 0x3000D861: call 0x30007ba0 */ /* not lifted */
  12781     RECOMP_FLAGS_IN();
  12782     ecx = MEM32(ebp + (-0xE8)); /* 0x3000D866: mov ecx, dword ptr [ebp - 0xe8] */
  12783     edx = MEM32(ebp + (-0xE4)); /* 0x3000D86C: mov edx, dword ptr [ebp - 0xe4] */
  12784     eax = MEM32(ebp + (-0xE0)); /* 0x3000D872: mov eax, dword ptr [ebp - 0xe0] */
  12785     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000D878: mov dword ptr [ebp - 0x3c], ecx */
  12786     PUSH32(esp, esi); /* 0x3000D87B: push esi */
  12787     ecx = ebp + (-0x3C); /* 0x3000D87C: lea ecx, [ebp - 0x3c] */
  12788     MEM32(ebp + (-0x38)) = edx; /* 0x3000D87F: mov dword ptr [ebp - 0x38], edx */
  12789     MEM32(ebp + (-0x34)) = eax; /* 0x3000D882: mov dword ptr [ebp - 0x34], eax */
  12790     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D885: call dword ptr [0x300190ec] */
  12791     RECOMP_FLAGS_IN();
  12792     ecx = MEM32(eax); /* 0x3000D88B: mov ecx, dword ptr [eax] */
  12793     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D88D: mov dword ptr [ebp - 0x24], ecx */
  12794     edx = MEM32(eax + 0x4); /* 0x3000D890: mov edx, dword ptr [eax + 4] */
  12795     MEM32(ebp + (-0x20)) = edx; /* 0x3000D893: mov dword ptr [ebp - 0x20], edx */
  12796     eax = MEM32(eax + 0x8); /* 0x3000D896: mov eax, dword ptr [eax + 8] */
  12797     ecx = edi; /* 0x3000D899: mov ecx, edi */
  12798     edx = MEM32(ecx); /* 0x3000D89B: mov edx, dword ptr [ecx] */
  12799     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D89D: mov dword ptr [ebp - 0x1c], eax */
  12800     eax = MEM32(ecx + 0x4); /* 0x3000D8A0: mov eax, dword ptr [ecx + 4] */
  12801     ecx = MEM32(ecx + 0x8); /* 0x3000D8A3: mov ecx, dword ptr [ecx + 8] */
  12802     MEM32(ebp + (-0x30)) = edx; /* 0x3000D8A6: mov dword ptr [ebp - 0x30], edx */
  12803     edx = ebp + (-0x24); /* 0x3000D8A9: lea edx, [ebp - 0x24] */
  12804     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D8AC: mov dword ptr [ebp - 0x28], ecx */
  12805     PUSH32(esp, edx); /* 0x3000D8AF: push edx */
  12806     ecx = ebp + (-0x30); /* 0x3000D8B0: lea ecx, [ebp - 0x30] */
  12807     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D8B3: mov dword ptr [ebp - 0x2c], eax */
  12808     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D8B6: call dword ptr [0x300190c4] */
  12809     RECOMP_FLAGS_IN();
  12810     ecx = MEM32(eax); /* 0x3000D8BC: mov ecx, dword ptr [eax] */
  12811     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D8BE: mov dword ptr [ebp - 0x18], ecx */
  12812     edx = MEM32(eax + 0x4); /* 0x3000D8C1: mov edx, dword ptr [eax + 4] */
  12813     ecx = ebp + (-0x18); /* 0x3000D8C4: lea ecx, [ebp - 0x18] */
  12814     PUSH32(esp, ecx); /* 0x3000D8C7: push ecx */
  12815     MEM32(ebp + (-0x14)) = edx; /* 0x3000D8C8: mov dword ptr [ebp - 0x14], edx */
  12816     eax = MEM32(eax + 0x8); /* 0x3000D8CB: mov eax, dword ptr [eax + 8] */
  12817     PUSH32(esp, 1); /* 0x3000D8CE: push 1 */
  12818     ecx = ebp + (-0x58); /* 0x3000D8D0: lea ecx, [ebp - 0x58] */
  12819     MEM32(ebp + (-0x10)) = eax; /* 0x3000D8D3: mov dword ptr [ebp - 0x10], eax */
  12820     RECOMP_ICALL(0x30007BA0u); /* 0x3000D8D6: call 0x30007ba0 */ /* not lifted */
  12821     RECOMP_FLAGS_IN();
  12822     ecx = MEM32(ebp + (-0xF8)); /* 0x3000D8DB: mov ecx, dword ptr [ebp - 0xf8] */
  12823     edx = MEM32(ebp + (-0x100)); /* 0x3000D8E1: mov edx, dword ptr [ebp - 0x100] */
  12824     eax = MEM32(ebp + (-0xFC)); /* 0x3000D8E7: mov eax, dword ptr [ebp - 0xfc] */
  12825     MEM32(ebp + (-0x34)) = ecx; /* 0x3000D8ED: mov dword ptr [ebp - 0x34], ecx */
  12826     PUSH32(esp, esi); /* 0x3000D8F0: push esi */
  12827     ecx = ebp + (-0x3C); /* 0x3000D8F1: lea ecx, [ebp - 0x3c] */
  12828     MEM32(ebp + (-0x3C)) = edx; /* 0x3000D8F4: mov dword ptr [ebp - 0x3c], edx */
  12829     MEM32(ebp + (-0x38)) = eax; /* 0x3000D8F7: mov dword ptr [ebp - 0x38], eax */
  12830     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D8FA: call dword ptr [0x300190ec] */
  12831     RECOMP_FLAGS_IN();
  12832     edx = MEM32(eax); /* 0x3000D900: mov edx, dword ptr [eax] */
  12833     MEM32(ebp + (-0x24)) = edx; /* 0x3000D902: mov dword ptr [ebp - 0x24], edx */
  12834     ecx = MEM32(eax + 0x4); /* 0x3000D905: mov ecx, dword ptr [eax + 4] */
  12835     MEM32(ebp + (-0x20)) = ecx; /* 0x3000D908: mov dword ptr [ebp - 0x20], ecx */
  12836     edx = MEM32(eax + 0x8); /* 0x3000D90B: mov edx, dword ptr [eax + 8] */
  12837     eax = edi; /* 0x3000D90E: mov eax, edi */
  12838     ecx = MEM32(eax); /* 0x3000D910: mov ecx, dword ptr [eax] */
  12839     MEM32(ebp + (-0x30)) = ecx; /* 0x3000D912: mov dword ptr [ebp - 0x30], ecx */
  12840     MEM32(ebp + (-0x1C)) = edx; /* 0x3000D915: mov dword ptr [ebp - 0x1c], edx */
  12841     edx = MEM32(eax + 0x4); /* 0x3000D918: mov edx, dword ptr [eax + 4] */
  12842     eax = MEM32(eax + 0x8); /* 0x3000D91B: mov eax, dword ptr [eax + 8] */
  12843     ecx = ebp + (-0x24); /* 0x3000D91E: lea ecx, [ebp - 0x24] */
  12844     PUSH32(esp, ecx); /* 0x3000D921: push ecx */
  12845     ecx = ebp + (-0x30); /* 0x3000D922: lea ecx, [ebp - 0x30] */
  12846     MEM32(ebp + (-0x2C)) = edx; /* 0x3000D925: mov dword ptr [ebp - 0x2c], edx */
  12847     MEM32(ebp + (-0x28)) = eax; /* 0x3000D928: mov dword ptr [ebp - 0x28], eax */
  12848     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D92B: call dword ptr [0x300190c4] */
  12849     RECOMP_FLAGS_IN();
  12850     edx = MEM32(eax); /* 0x3000D931: mov edx, dword ptr [eax] */
  12851     MEM32(ebp + (-0x18)) = edx; /* 0x3000D933: mov dword ptr [ebp - 0x18], edx */
  12852     ecx = MEM32(eax + 0x4); /* 0x3000D936: mov ecx, dword ptr [eax + 4] */
  12853     MEM32(ebp + (-0x14)) = ecx; /* 0x3000D939: mov dword ptr [ebp - 0x14], ecx */
  12854     edx = MEM32(eax + 0x8); /* 0x3000D93C: mov edx, dword ptr [eax + 8] */
  12855     eax = ebp + (-0x18); /* 0x3000D93F: lea eax, [ebp - 0x18] */
  12856     PUSH32(esp, eax); /* 0x3000D942: push eax */
  12857     PUSH32(esp, 2); /* 0x3000D943: push 2 */
  12858     ecx = ebp + (-0x58); /* 0x3000D945: lea ecx, [ebp - 0x58] */
  12859     MEM32(ebp + (-0x10)) = edx; /* 0x3000D948: mov dword ptr [ebp - 0x10], edx */
  12860     RECOMP_ICALL(0x30007BA0u); /* 0x3000D94B: call 0x30007ba0 */ /* not lifted */
  12861     RECOMP_FLAGS_IN();
  12862     ecx = MEM32(ebp + (-0xF4)); /* 0x3000D950: mov ecx, dword ptr [ebp - 0xf4] */
  12863     edx = MEM32(ebp + (-0xF0)); /* 0x3000D956: mov edx, dword ptr [ebp - 0xf0] */
  12864     eax = MEM32(ebp + (-0xEC)); /* 0x3000D95C: mov eax, dword ptr [ebp - 0xec] */
  12865     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000D962: mov dword ptr [ebp - 0x3c], ecx */
  12866     MEM32(ebp + (-0x38)) = edx; /* 0x3000D965: mov dword ptr [ebp - 0x38], edx */
  12867     MEM32(ebp + (-0x34)) = eax; /* 0x3000D968: mov dword ptr [ebp - 0x34], eax */
  12868     PUSH32(esp, esi); /* 0x3000D96B: push esi */
  12869     ecx = ebp + (-0x3C); /* 0x3000D96C: lea ecx, [ebp - 0x3c] */
  12870     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D96F: call dword ptr [0x300190ec] */
  12871     RECOMP_FLAGS_IN();
  12872     ecx = MEM32(eax); /* 0x3000D975: mov ecx, dword ptr [eax] */
  12873     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D977: mov dword ptr [ebp - 0x24], ecx */
  12874     edx = MEM32(eax + 0x4); /* 0x3000D97A: mov edx, dword ptr [eax + 4] */
  12875     MEM32(ebp + (-0x20)) = edx; /* 0x3000D97D: mov dword ptr [ebp - 0x20], edx */
  12876     eax = MEM32(eax + 0x8); /* 0x3000D980: mov eax, dword ptr [eax + 8] */
  12877     ecx = edi; /* 0x3000D983: mov ecx, edi */
  12878     edx = MEM32(ecx); /* 0x3000D985: mov edx, dword ptr [ecx] */
  12879     MEM32(ebp + (-0x1C)) = eax; /* 0x3000D987: mov dword ptr [ebp - 0x1c], eax */
  12880     eax = MEM32(ecx + 0x4); /* 0x3000D98A: mov eax, dword ptr [ecx + 4] */
  12881     ecx = MEM32(ecx + 0x8); /* 0x3000D98D: mov ecx, dword ptr [ecx + 8] */
  12882     MEM32(ebp + (-0x30)) = edx; /* 0x3000D990: mov dword ptr [ebp - 0x30], edx */
  12883     edx = ebp + (-0x24); /* 0x3000D993: lea edx, [ebp - 0x24] */
  12884     MEM32(ebp + (-0x28)) = ecx; /* 0x3000D996: mov dword ptr [ebp - 0x28], ecx */
  12885     PUSH32(esp, edx); /* 0x3000D999: push edx */
  12886     ecx = ebp + (-0x30); /* 0x3000D99A: lea ecx, [ebp - 0x30] */
  12887     MEM32(ebp + (-0x2C)) = eax; /* 0x3000D99D: mov dword ptr [ebp - 0x2c], eax */
  12888     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000D9A0: call dword ptr [0x300190c4] */
  12889     RECOMP_FLAGS_IN();
  12890     ecx = MEM32(eax); /* 0x3000D9A6: mov ecx, dword ptr [eax] */
  12891     MEM32(ebp + (-0x18)) = ecx; /* 0x3000D9A8: mov dword ptr [ebp - 0x18], ecx */
  12892     edx = MEM32(eax + 0x4); /* 0x3000D9AB: mov edx, dword ptr [eax + 4] */
  12893     ecx = ebp + (-0x18); /* 0x3000D9AE: lea ecx, [ebp - 0x18] */
  12894     PUSH32(esp, ecx); /* 0x3000D9B1: push ecx */
  12895     MEM32(ebp + (-0x14)) = edx; /* 0x3000D9B2: mov dword ptr [ebp - 0x14], edx */
  12896     eax = MEM32(eax + 0x8); /* 0x3000D9B5: mov eax, dword ptr [eax + 8] */
  12897     PUSH32(esp, 3); /* 0x3000D9B8: push 3 */
  12898     ecx = ebp + (-0x58); /* 0x3000D9BA: lea ecx, [ebp - 0x58] */
  12899     MEM32(ebp + (-0x10)) = eax; /* 0x3000D9BD: mov dword ptr [ebp - 0x10], eax */
  12900     RECOMP_ICALL(0x30007BA0u); /* 0x3000D9C0: call 0x30007ba0 */ /* not lifted */
  12901     RECOMP_FLAGS_IN();
  12902     eax = MEM32(ebx + 0x8); /* 0x3000D9C5: mov eax, dword ptr [ebx + 8] */
  12903     edx = ebp + (-0x58); /* 0x3000D9C8: lea edx, [ebp - 0x58] */
  12904     PUSH32(esp, edx); /* 0x3000D9CB: push edx */
  12905     PUSH32(esp, eax); /* 0x3000D9CC: push eax */
  12906     ecx = ebx; /* 0x3000D9CD: mov ecx, ebx */
  12907     RECOMP_ICALL(0x30002C40u); /* 0x3000D9CF: call 0x30002c40 */ /* not lifted */
  12908     RECOMP_FLAGS_IN();
  12909     ecx = MEM32(ebp + (-0x90)); /* 0x3000D9D4: mov ecx, dword ptr [ebp - 0x90] */
  12910     eax = MEM32(ebp + (-0x94)); /* 0x3000D9DA: mov eax, dword ptr [ebp - 0x94] */
  12911     edx = MEM32(ebp + (-0x8C)); /* 0x3000D9E0: mov edx, dword ptr [ebp - 0x8c] */
  12912     MEM32(ebp + (-0x38)) = ecx; /* 0x3000D9E6: mov dword ptr [ebp - 0x38], ecx */
  12913     PUSH32(esp, esi); /* 0x3000D9E9: push esi */
  12914     ecx = ebp + (-0x3C); /* 0x3000D9EA: lea ecx, [ebp - 0x3c] */
  12915     MEM32(ebp + (-0x3C)) = eax; /* 0x3000D9ED: mov dword ptr [ebp - 0x3c], eax */
  12916     MEM32(ebp + (-0x34)) = edx; /* 0x3000D9F0: mov dword ptr [ebp - 0x34], edx */
  12917     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000D9F3: call dword ptr [0x300190ec] */
  12918     RECOMP_FLAGS_IN();
  12919     ecx = MEM32(eax); /* 0x3000D9F9: mov ecx, dword ptr [eax] */
  12920     MEM32(ebp + (-0x24)) = ecx; /* 0x3000D9FB: mov dword ptr [ebp - 0x24], ecx */
  12921     edx = MEM32(eax + 0x4); /* 0x3000D9FE: mov edx, dword ptr [eax + 4] */
  12922     MEM32(ebp + (-0x20)) = edx; /* 0x3000DA01: mov dword ptr [ebp - 0x20], edx */
  12923     eax = MEM32(eax + 0x8); /* 0x3000DA04: mov eax, dword ptr [eax + 8] */
  12924     ecx = edi; /* 0x3000DA07: mov ecx, edi */
  12925     edx = MEM32(ecx); /* 0x3000DA09: mov edx, dword ptr [ecx] */
  12926     MEM32(ebp + (-0x1C)) = eax; /* 0x3000DA0B: mov dword ptr [ebp - 0x1c], eax */
  12927     eax = MEM32(ecx + 0x4); /* 0x3000DA0E: mov eax, dword ptr [ecx + 4] */
  12928     ecx = MEM32(ecx + 0x8); /* 0x3000DA11: mov ecx, dword ptr [ecx + 8] */
  12929     MEM32(ebp + (-0x30)) = edx; /* 0x3000DA14: mov dword ptr [ebp - 0x30], edx */
  12930     edx = ebp + (-0x24); /* 0x3000DA17: lea edx, [ebp - 0x24] */
  12931     MEM32(ebp + (-0x28)) = ecx; /* 0x3000DA1A: mov dword ptr [ebp - 0x28], ecx */
  12932     PUSH32(esp, edx); /* 0x3000DA1D: push edx */
  12933     ecx = ebp + (-0x30); /* 0x3000DA1E: lea ecx, [ebp - 0x30] */
  12934     MEM32(ebp + (-0x2C)) = eax; /* 0x3000DA21: mov dword ptr [ebp - 0x2c], eax */
  12935     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000DA24: call dword ptr [0x300190c4] */
  12936     RECOMP_FLAGS_IN();
  12937     ecx = MEM32(eax); /* 0x3000DA2A: mov ecx, dword ptr [eax] */
  12938     MEM32(ebp + (-0x18)) = ecx; /* 0x3000DA2C: mov dword ptr [ebp - 0x18], ecx */
  12939     edx = MEM32(eax + 0x4); /* 0x3000DA2F: mov edx, dword ptr [eax + 4] */
  12940     ecx = ebp + (-0x18); /* 0x3000DA32: lea ecx, [ebp - 0x18] */
  12941     PUSH32(esp, ecx); /* 0x3000DA35: push ecx */
  12942     MEM32(ebp + (-0x14)) = edx; /* 0x3000DA36: mov dword ptr [ebp - 0x14], edx */
  12943     eax = MEM32(eax + 0x8); /* 0x3000DA39: mov eax, dword ptr [eax + 8] */
  12944     PUSH32(esp, 0); /* 0x3000DA3C: push 0 */
  12945     ecx = ebp + (-0x58); /* 0x3000DA3E: lea ecx, [ebp - 0x58] */
  12946     MEM32(ebp + (-0x10)) = eax; /* 0x3000DA41: mov dword ptr [ebp - 0x10], eax */
  12947     RECOMP_ICALL(0x30007BA0u); /* 0x3000DA44: call 0x30007ba0 */ /* not lifted */
  12948     RECOMP_FLAGS_IN();
  12949     ecx = MEM32(ebp + (-0x80)); /* 0x3000DA49: mov ecx, dword ptr [ebp - 0x80] */
  12950     edx = MEM32(ebp + (-0x88)); /* 0x3000DA4C: mov edx, dword ptr [ebp - 0x88] */
  12951     eax = MEM32(ebp + (-0x84)); /* 0x3000DA52: mov eax, dword ptr [ebp - 0x84] */
  12952     MEM32(ebp + (-0x34)) = ecx; /* 0x3000DA58: mov dword ptr [ebp - 0x34], ecx */
  12953     MEM32(ebp + (-0x3C)) = edx; /* 0x3000DA5B: mov dword ptr [ebp - 0x3c], edx */
  12954     MEM32(ebp + (-0x38)) = eax; /* 0x3000DA5E: mov dword ptr [ebp - 0x38], eax */
  12955     PUSH32(esp, esi); /* 0x3000DA61: push esi */
  12956     ecx = ebp + (-0x3C); /* 0x3000DA62: lea ecx, [ebp - 0x3c] */
  12957     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DA65: call dword ptr [0x300190ec] */
  12958     RECOMP_FLAGS_IN();
  12959     edx = MEM32(eax); /* 0x3000DA6B: mov edx, dword ptr [eax] */
  12960     MEM32(ebp + (-0x24)) = edx; /* 0x3000DA6D: mov dword ptr [ebp - 0x24], edx */
  12961     ecx = MEM32(eax + 0x4); /* 0x3000DA70: mov ecx, dword ptr [eax + 4] */
  12962     MEM32(ebp + (-0x20)) = ecx; /* 0x3000DA73: mov dword ptr [ebp - 0x20], ecx */
  12963     edx = MEM32(eax + 0x8); /* 0x3000DA76: mov edx, dword ptr [eax + 8] */
  12964     eax = edi; /* 0x3000DA79: mov eax, edi */
  12965     ecx = MEM32(eax); /* 0x3000DA7B: mov ecx, dword ptr [eax] */
  12966     MEM32(ebp + (-0x30)) = ecx; /* 0x3000DA7D: mov dword ptr [ebp - 0x30], ecx */
  12967     MEM32(ebp + (-0x1C)) = edx; /* 0x3000DA80: mov dword ptr [ebp - 0x1c], edx */
  12968     edx = MEM32(eax + 0x4); /* 0x3000DA83: mov edx, dword ptr [eax + 4] */
  12969     eax = MEM32(eax + 0x8); /* 0x3000DA86: mov eax, dword ptr [eax + 8] */
  12970     ecx = ebp + (-0x24); /* 0x3000DA89: lea ecx, [ebp - 0x24] */
  12971     PUSH32(esp, ecx); /* 0x3000DA8C: push ecx */
  12972     ecx = ebp + (-0x30); /* 0x3000DA8D: lea ecx, [ebp - 0x30] */
  12973     MEM32(ebp + (-0x2C)) = edx; /* 0x3000DA90: mov dword ptr [ebp - 0x2c], edx */
  12974     MEM32(ebp + (-0x28)) = eax; /* 0x3000DA93: mov dword ptr [ebp - 0x28], eax */
  12975     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000DA96: call dword ptr [0x300190c4] */
  12976     RECOMP_FLAGS_IN();
  12977     edx = MEM32(eax); /* 0x3000DA9C: mov edx, dword ptr [eax] */
  12978     MEM32(ebp + (-0x18)) = edx; /* 0x3000DA9E: mov dword ptr [ebp - 0x18], edx */
  12979     ecx = MEM32(eax + 0x4); /* 0x3000DAA1: mov ecx, dword ptr [eax + 4] */
  12980     MEM32(ebp + (-0x14)) = ecx; /* 0x3000DAA4: mov dword ptr [ebp - 0x14], ecx */
  12981     edx = MEM32(eax + 0x8); /* 0x3000DAA7: mov edx, dword ptr [eax + 8] */
  12982     eax = ebp + (-0x18); /* 0x3000DAAA: lea eax, [ebp - 0x18] */
  12983     PUSH32(esp, eax); /* 0x3000DAAD: push eax */
  12984     PUSH32(esp, 1); /* 0x3000DAAE: push 1 */
  12985     ecx = ebp + (-0x58); /* 0x3000DAB0: lea ecx, [ebp - 0x58] */
  12986     MEM32(ebp + (-0x10)) = edx; /* 0x3000DAB3: mov dword ptr [ebp - 0x10], edx */
  12987     RECOMP_ICALL(0x30007BA0u); /* 0x3000DAB6: call 0x30007ba0 */ /* not lifted */
  12988     RECOMP_FLAGS_IN();
  12989     ecx = MEM32(ebp + (-0xAC)); /* 0x3000DABB: mov ecx, dword ptr [ebp - 0xac] */
  12990     edx = MEM32(ebp + (-0xA8)); /* 0x3000DAC1: mov edx, dword ptr [ebp - 0xa8] */
  12991     eax = MEM32(ebp + (-0xA4)); /* 0x3000DAC7: mov eax, dword ptr [ebp - 0xa4] */
  12992     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000DACD: mov dword ptr [ebp - 0x3c], ecx */
  12993     PUSH32(esp, esi); /* 0x3000DAD0: push esi */
  12994     ecx = ebp + (-0x3C); /* 0x3000DAD1: lea ecx, [ebp - 0x3c] */
  12995     MEM32(ebp + (-0x38)) = edx; /* 0x3000DAD4: mov dword ptr [ebp - 0x38], edx */
  12996     MEM32(ebp + (-0x34)) = eax; /* 0x3000DAD7: mov dword ptr [ebp - 0x34], eax */
  12997     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DADA: call dword ptr [0x300190ec] */
  12998     RECOMP_FLAGS_IN();
  12999     ecx = MEM32(eax); /* 0x3000DAE0: mov ecx, dword ptr [eax] */
  13000     MEM32(ebp + (-0x24)) = ecx; /* 0x3000DAE2: mov dword ptr [ebp - 0x24], ecx */
  13001     edx = MEM32(eax + 0x4); /* 0x3000DAE5: mov edx, dword ptr [eax + 4] */
  13002     MEM32(ebp + (-0x20)) = edx; /* 0x3000DAE8: mov dword ptr [ebp - 0x20], edx */
  13003     eax = MEM32(eax + 0x8); /* 0x3000DAEB: mov eax, dword ptr [eax + 8] */
  13004     ecx = edi; /* 0x3000DAEE: mov ecx, edi */
  13005     edx = MEM32(ecx); /* 0x3000DAF0: mov edx, dword ptr [ecx] */
  13006     MEM32(ebp + (-0x1C)) = eax; /* 0x3000DAF2: mov dword ptr [ebp - 0x1c], eax */
  13007     eax = MEM32(ecx + 0x4); /* 0x3000DAF5: mov eax, dword ptr [ecx + 4] */
  13008     ecx = MEM32(ecx + 0x8); /* 0x3000DAF8: mov ecx, dword ptr [ecx + 8] */
  13009     MEM32(ebp + (-0x30)) = edx; /* 0x3000DAFB: mov dword ptr [ebp - 0x30], edx */
  13010     edx = ebp + (-0x24); /* 0x3000DAFE: lea edx, [ebp - 0x24] */
  13011     MEM32(ebp + (-0x28)) = ecx; /* 0x3000DB01: mov dword ptr [ebp - 0x28], ecx */
  13012     PUSH32(esp, edx); /* 0x3000DB04: push edx */
  13013     ecx = ebp + (-0x30); /* 0x3000DB05: lea ecx, [ebp - 0x30] */
  13014     MEM32(ebp + (-0x2C)) = eax; /* 0x3000DB08: mov dword ptr [ebp - 0x2c], eax */
  13015     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000DB0B: call dword ptr [0x300190c4] */
  13016     RECOMP_FLAGS_IN();
  13017     ecx = MEM32(eax); /* 0x3000DB11: mov ecx, dword ptr [eax] */
  13018     MEM32(ebp + (-0x18)) = ecx; /* 0x3000DB13: mov dword ptr [ebp - 0x18], ecx */
  13019     edx = MEM32(eax + 0x4); /* 0x3000DB16: mov edx, dword ptr [eax + 4] */
  13020     ecx = ebp + (-0x18); /* 0x3000DB19: lea ecx, [ebp - 0x18] */
  13021     PUSH32(esp, ecx); /* 0x3000DB1C: push ecx */
  13022     MEM32(ebp + (-0x14)) = edx; /* 0x3000DB1D: mov dword ptr [ebp - 0x14], edx */
  13023     eax = MEM32(eax + 0x8); /* 0x3000DB20: mov eax, dword ptr [eax + 8] */
  13024     PUSH32(esp, 2); /* 0x3000DB23: push 2 */
  13025     ecx = ebp + (-0x58); /* 0x3000DB25: lea ecx, [ebp - 0x58] */
  13026     MEM32(ebp + (-0x10)) = eax; /* 0x3000DB28: mov dword ptr [ebp - 0x10], eax */
  13027     RECOMP_ICALL(0x30007BA0u); /* 0x3000DB2B: call 0x30007ba0 */ /* not lifted */
  13028     RECOMP_FLAGS_IN();
  13029     PUSH32(esp, esi); /* 0x3000DB30: push esi */
  13030     edx = ebp + (-0x3C); /* 0x3000DB31: lea edx, [ebp - 0x3c] */
  13031     PUSH32(esp, edx); /* 0x3000DB34: push edx */
  13032     ecx = ebp + (-0x7C); /* 0x3000DB35: lea ecx, [ebp - 0x7c] */
  13033     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000DB38: call dword ptr [0x300190b4] */
  13034     RECOMP_FLAGS_IN();
  13035     PUSH32(esp, eax); /* 0x3000DB3E: push eax */
  13036     eax = ebp + (-0x24); /* 0x3000DB3F: lea eax, [ebp - 0x24] */
  13037     PUSH32(esp, eax); /* 0x3000DB42: push eax */
  13038     ecx = edi; /* 0x3000DB43: mov ecx, edi */
  13039     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000DB45: call dword ptr [0x300190b0] */
  13040     RECOMP_FLAGS_IN();
  13041     PUSH32(esp, eax); /* 0x3000DB4B: push eax */
  13042     PUSH32(esp, 3); /* 0x3000DB4C: push 3 */
  13043     ecx = ebp + (-0x58); /* 0x3000DB4E: lea ecx, [ebp - 0x58] */
  13044     RECOMP_ICALL(0x30007BA0u); /* 0x3000DB51: call 0x30007ba0 */ /* not lifted */
  13045     RECOMP_FLAGS_IN();
  13046     eax = MEM32(ebx + 0x8); /* 0x3000DB56: mov eax, dword ptr [ebx + 8] */
  13047     ecx = ebp + (-0x58); /* 0x3000DB59: lea ecx, [ebp - 0x58] */
  13048     PUSH32(esp, ecx); /* 0x3000DB5C: push ecx */
  13049     PUSH32(esp, eax); /* 0x3000DB5D: push eax */
  13050     ecx = ebx; /* 0x3000DB5E: mov ecx, ebx */
  13051     RECOMP_ICALL(0x30002C40u); /* 0x3000DB60: call 0x30002c40 */ /* not lifted */
  13052     RECOMP_FLAGS_IN();
  13053     PUSH32(esp, esi); /* 0x3000DB65: push esi */
  13054     edx = ebp + (-0x3C); /* 0x3000DB66: lea edx, [ebp - 0x3c] */
  13055     PUSH32(esp, edx); /* 0x3000DB69: push edx */
  13056     ecx = ebp + (-0x70); /* 0x3000DB6A: lea ecx, [ebp - 0x70] */
  13057     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000DB6D: call dword ptr [0x300190b4] */
  13058     RECOMP_FLAGS_IN();
  13059     PUSH32(esp, eax); /* 0x3000DB73: push eax */
  13060     eax = ebp + (-0x24); /* 0x3000DB74: lea eax, [ebp - 0x24] */
  13061     PUSH32(esp, eax); /* 0x3000DB77: push eax */
  13062     ecx = edi; /* 0x3000DB78: mov ecx, edi */
  13063     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000DB7A: call dword ptr [0x300190b0] */
  13064     RECOMP_FLAGS_IN();
  13065     PUSH32(esp, eax); /* 0x3000DB80: push eax */
  13066     PUSH32(esp, 0); /* 0x3000DB81: push 0 */
  13067     ecx = ebp + (-0x58); /* 0x3000DB83: lea ecx, [ebp - 0x58] */
  13068     RECOMP_ICALL(0x30007BA0u); /* 0x3000DB86: call 0x30007ba0 */ /* not lifted */
  13069     RECOMP_FLAGS_IN();
  13070     PUSH32(esp, esi); /* 0x3000DB8B: push esi */
  13071     ecx = ebp + (-0x3C); /* 0x3000DB8C: lea ecx, [ebp - 0x3c] */
  13072     PUSH32(esp, ecx); /* 0x3000DB8F: push ecx */
  13073     ecx = ebp + (-0x118); /* 0x3000DB90: lea ecx, [ebp - 0x118] */
  13074     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000DB96: call dword ptr [0x300190b4] */
  13075     RECOMP_FLAGS_IN();
  13076     PUSH32(esp, eax); /* 0x3000DB9C: push eax */
  13077     edx = ebp + (-0x24); /* 0x3000DB9D: lea edx, [ebp - 0x24] */
  13078     PUSH32(esp, edx); /* 0x3000DBA0: push edx */
  13079     ecx = edi; /* 0x3000DBA1: mov ecx, edi */
  13080     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000DBA3: call dword ptr [0x300190b0] */
  13081     RECOMP_FLAGS_IN();
  13082     PUSH32(esp, eax); /* 0x3000DBA9: push eax */
  13083     PUSH32(esp, 1); /* 0x3000DBAA: push 1 */
  13084     ecx = ebp + (-0x58); /* 0x3000DBAC: lea ecx, [ebp - 0x58] */
  13085     RECOMP_ICALL(0x30007BA0u); /* 0x3000DBAF: call 0x30007ba0 */ /* not lifted */
  13086     RECOMP_FLAGS_IN();
  13087     PUSH32(esp, esi); /* 0x3000DBB4: push esi */
  13088     eax = ebp + (-0x3C); /* 0x3000DBB5: lea eax, [ebp - 0x3c] */
  13089     PUSH32(esp, eax); /* 0x3000DBB8: push eax */
  13090     ecx = ebp + (-0x10C); /* 0x3000DBB9: lea ecx, [ebp - 0x10c] */
  13091     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000DBBF: call dword ptr [0x300190b4] */
  13092     RECOMP_FLAGS_IN();
  13093     PUSH32(esp, eax); /* 0x3000DBC5: push eax */
  13094     ecx = ebp + (-0x24); /* 0x3000DBC6: lea ecx, [ebp - 0x24] */
  13095     PUSH32(esp, ecx); /* 0x3000DBC9: push ecx */
  13096     ecx = edi; /* 0x3000DBCA: mov ecx, edi */
  13097     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000DBCC: call dword ptr [0x300190b0] */
  13098     RECOMP_FLAGS_IN();
  13099     PUSH32(esp, eax); /* 0x3000DBD2: push eax */
  13100     PUSH32(esp, 2); /* 0x3000DBD3: push 2 */
  13101     ecx = ebp + (-0x58); /* 0x3000DBD5: lea ecx, [ebp - 0x58] */
  13102     RECOMP_ICALL(0x30007BA0u); /* 0x3000DBD8: call 0x30007ba0 */ /* not lifted */
  13103     RECOMP_FLAGS_IN();
  13104     PUSH32(esp, esi); /* 0x3000DBDD: push esi */
  13105     edx = ebp + (-0x3C); /* 0x3000DBDE: lea edx, [ebp - 0x3c] */
  13106     PUSH32(esp, edx); /* 0x3000DBE1: push edx */
  13107     ecx = ebp + (-0x64); /* 0x3000DBE2: lea ecx, [ebp - 0x64] */
  13108     RECOMP_ICALL(MEM32(0x300190B4)); /* 0x3000DBE5: call dword ptr [0x300190b4] */
  13109     RECOMP_FLAGS_IN();
  13110     PUSH32(esp, eax); /* 0x3000DBEB: push eax */
  13111     eax = ebp + (-0x24); /* 0x3000DBEC: lea eax, [ebp - 0x24] */
  13112     PUSH32(esp, eax); /* 0x3000DBEF: push eax */
  13113     ecx = edi; /* 0x3000DBF0: mov ecx, edi */
  13114     RECOMP_ICALL(MEM32(0x300190B0)); /* 0x3000DBF2: call dword ptr [0x300190b0] */
  13115     RECOMP_FLAGS_IN();
  13116     PUSH32(esp, eax); /* 0x3000DBF8: push eax */
  13117     PUSH32(esp, 3); /* 0x3000DBF9: push 3 */
  13118     ecx = ebp + (-0x58); /* 0x3000DBFB: lea ecx, [ebp - 0x58] */
  13119     RECOMP_ICALL(0x30007BA0u); /* 0x3000DBFE: call 0x30007ba0 */ /* not lifted */
  13120     RECOMP_FLAGS_IN();
  13121     eax = MEM32(ebx + 0x8); /* 0x3000DC03: mov eax, dword ptr [ebx + 8] */
  13122     ecx = ebp + (-0x58); /* 0x3000DC06: lea ecx, [ebp - 0x58] */
  13123     PUSH32(esp, ecx); /* 0x3000DC09: push ecx */
  13124     PUSH32(esp, eax); /* 0x3000DC0A: push eax */
  13125     ecx = ebx; /* 0x3000DC0B: mov ecx, ebx */
  13126     RECOMP_ICALL(0x30002C40u); /* 0x3000DC0D: call 0x30002c40 */ /* not lifted */
  13127     RECOMP_FLAGS_IN();
  13128     ecx = ebp + (-0x58); /* 0x3000DC12: lea ecx, [ebp - 0x58] */
  13129     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000DC15: mov dword ptr [ebp - 4], 0xffffffff */
  13130     RECOMP_ICALL(0x30007AB0u); /* 0x3000DC1C: call 0x30007ab0 */ /* not lifted */
  13131     RECOMP_FLAGS_IN();
  13132     ecx = MEM32(ebp + (-0xC)); /* 0x3000DC21: mov ecx, dword ptr [ebp - 0xc] */
  13133     edi = POP32_VAL(esp); /* 0x3000DC24: pop edi */
  13134     esi = POP32_VAL(esp); /* 0x3000DC25: pop esi */
  13135     ebx = POP32_VAL(esp); /* 0x3000DC26: pop ebx */
  13136     MEM32(FS_BASE + (0)) = ecx; /* 0x3000DC27: mov dword ptr fs:[0], ecx */
  13137     esp = ebp; /* 0x3000DC2E: mov esp, ebp */
  13138     ebp = POP32_VAL(esp); /* 0x3000DC30: pop ebp */
  13139     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3000DC31: ret 0x14 */
  13140     RECOMP_REGS_OUT();
  13141 }
  13142 
  13143 void sub_3000DC40(void) {
  13144     int _fpu_cmp = 0;
  13145     uint32_t _cf = 0;
  13146     int _df = 1;
  13147     uint32_t _flag_k = FK_NONE;
  13148     uint32_t _flag_a = 0, _flag_b = 0;
  13149     uint32_t _itail_tgt = 0;
  13150     RECOMP_REGS_LOCALS
  13151     RECOMP_ENTER(0x3000DC40u);
  13152 
  13153 L_3000DC40:
  13154     PUSH32(esp, ebp); /* 0x3000DC40: push ebp */
  13155     ebp = esp; /* 0x3000DC41: mov ebp, esp */
  13156     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000DC43: push -1 */
  13157     PUSH32(esp, 0x30018988u); /* 0x3000DC45: push 0x30018988 */
  13158     eax = MEM32(FS_BASE + (0)); /* 0x3000DC4A: mov eax, dword ptr fs:[0] */
  13159     PUSH32(esp, eax); /* 0x3000DC50: push eax */
  13160     MEM32(FS_BASE + (0)) = esp; /* 0x3000DC51: mov dword ptr fs:[0], esp */
  13161     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u);
  13162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13163     esp = esp - 0x78u; /* 0x3000DC58: sub esp, 0x78 */
  13164     _flag_k = FK_CMP;
  13165     PUSH32(esp, ebx); /* 0x3000DC5B: push ebx */
  13166     PUSH32(esp, esi); /* 0x3000DC5C: push esi */
  13167     PUSH32(esp, edi); /* 0x3000DC5D: push edi */
  13168     edi = ecx; /* 0x3000DC5E: mov edi, ecx */
  13169     esi = ebp + (-0x84); /* 0x3000DC60: lea esi, [ebp - 0x84] */
  13170     ebx = 4; /* 0x3000DC66: mov ebx, 4 */
  13171 L_3000DC6B:
  13172     ecx = esi; /* 0x3000DC6B: mov ecx, esi */
  13173     RECOMP_ICALL(MEM32(0x300190E4)); /* 0x3000DC6D: call dword ptr [0x300190e4] */
  13174     RECOMP_FLAGS_IN();
  13175     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  13176     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13177     esi = esi + 0xCu; /* 0x3000DC73: add esi, 0xc */
  13178     _flag_k = FK_ADD;
  13179     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  13180     ebx = ebx - 1; /* 0x3000DC76: dec ebx */
  13181     _flag_k = FK_DEC;
  13182     RECOMP_BACKEDGE();
  13183     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3000DC6B; /* 0x3000DC77: jne 0x3000dc6b */
  13184 L_3000DC79:
  13185     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000DC79: fld dword ptr [ebp + 8] */
  13186     MEM32(ebp + (-0x14)) = 0; /* 0x3000DC7C: mov dword ptr [ebp - 0x14], 0 */
  13187     _st[0] *= (double)*(float*)ADDR(0x30019294); /* 0x3000DC83: fmul dword ptr [0x30019294] */
  13188     ecx = MEM32(ebp + (-0x14)); /* 0x3000DC89: mov ecx, dword ptr [ebp - 0x14] */
  13189     MEM32(ebp + (-0x10)) = 0; /* 0x3000DC8C: mov dword ptr [ebp - 0x10], 0 */
  13190     edx = MEM32(ebp + (-0x10)); /* 0x3000DC93: mov edx, dword ptr [ebp - 0x10] */
  13191     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DC96: fstp dword ptr [ebp - 0x18] */
  13192     eax = MEM32(ebp + (-0x18)); /* 0x3000DC99: mov eax, dword ptr [ebp - 0x18] */
  13193     MEM32(ebp + (-0x24)) = eax; /* 0x3000DC9C: mov dword ptr [ebp - 0x24], eax */
  13194     eax = ebp + 0x10; /* 0x3000DC9F: lea eax, [ebp + 0x10] */
  13195     MEM32(ebp + (-0x20)) = ecx; /* 0x3000DCA2: mov dword ptr [ebp - 0x20], ecx */
  13196     PUSH32(esp, eax); /* 0x3000DCA5: push eax */
  13197     ecx = ebp + (-0x24); /* 0x3000DCA6: lea ecx, [ebp - 0x24] */
  13198     MEM32(ebp + (-0x1C)) = edx; /* 0x3000DCA9: mov dword ptr [ebp - 0x1c], edx */
  13199     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DCAC: call dword ptr [0x300190ec] */
  13200     RECOMP_FLAGS_IN();
  13201     ecx = MEM32(eax); /* 0x3000DCB2: mov ecx, dword ptr [eax] */
  13202     edx = MEM32(eax + 0x4); /* 0x3000DCB4: mov edx, dword ptr [eax + 4] */
  13203     esi = MEM32(ebp + 0xC); /* 0x3000DCB7: mov esi, dword ptr [ebp + 0xc] */
  13204     eax = MEM32(eax + 0x8); /* 0x3000DCBA: mov eax, dword ptr [eax + 8] */
  13205     MEM32(ebp + (-0x18)) = ecx; /* 0x3000DCBD: mov dword ptr [ebp - 0x18], ecx */
  13206     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000DCC0: fld dword ptr [ebp - 0x18] */
  13207     _st[0] += (double)*(float*)ADDR(esi); /* 0x3000DCC3: fadd dword ptr [esi] */
  13208     MEM32(ebp + (-0x14)) = edx; /* 0x3000DCC5: mov dword ptr [ebp - 0x14], edx */
  13209     MEM32(ebp + (-0x10)) = eax; /* 0x3000DCC8: mov dword ptr [ebp - 0x10], eax */
  13210     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DCCB: fstp dword ptr [ebp - 0x18] */
  13211     ecx = MEM32(ebp + (-0x18)); /* 0x3000DCCE: mov ecx, dword ptr [ebp - 0x18] */
  13212     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3000DCD1: fld dword ptr [ebp - 0x14] */
  13213     MEM32(ebp + (-0x84)) = ecx; /* 0x3000DCD4: mov dword ptr [ebp - 0x84], ecx */
  13214     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x3000DCDA: fadd dword ptr [esi + 4] */
  13215     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DCDD: fstp dword ptr [ebp - 0x14] */
  13216     edx = MEM32(ebp + (-0x14)); /* 0x3000DCE0: mov edx, dword ptr [ebp - 0x14] */
  13217     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DCE3: fld dword ptr [ebp - 0x10] */
  13218     MEM32(ebp + (-0x80)) = edx; /* 0x3000DCE6: mov dword ptr [ebp - 0x80], edx */
  13219     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DCE9: fadd dword ptr [esi + 8] */
  13220     MEM32(ebp + (-0x14)) = 0; /* 0x3000DCEC: mov dword ptr [ebp - 0x14], 0 */
  13221     edx = MEM32(ebp + (-0x14)); /* 0x3000DCF3: mov edx, dword ptr [ebp - 0x14] */
  13222     MEM32(ebp + (-0x20)) = edx; /* 0x3000DCF6: mov dword ptr [ebp - 0x20], edx */
  13223     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DCF9: fstp dword ptr [ebp - 0x10] */
  13224     eax = MEM32(ebp + (-0x10)); /* 0x3000DCFC: mov eax, dword ptr [ebp - 0x10] */
  13225     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000DCFF: fld dword ptr [ebp + 8] */
  13226     MEM32(ebp + (-0x7C)) = eax; /* 0x3000DD02: mov dword ptr [ebp - 0x7c], eax */
  13227     _st[0] *= (double)*(float*)ADDR(0x30019288); /* 0x3000DD05: fmul dword ptr [0x30019288] */
  13228     MEM32(ebp + (-0x10)) = 0; /* 0x3000DD0B: mov dword ptr [ebp - 0x10], 0 */
  13229     eax = MEM32(ebp + (-0x10)); /* 0x3000DD12: mov eax, dword ptr [ebp - 0x10] */
  13230     MEM32(ebp + (-0x1C)) = eax; /* 0x3000DD15: mov dword ptr [ebp - 0x1c], eax */
  13231     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DD18: fstp dword ptr [ebp - 0x18] */
  13232     ecx = MEM32(ebp + (-0x18)); /* 0x3000DD1B: mov ecx, dword ptr [ebp - 0x18] */
  13233     MEM32(ebp + (-0x24)) = ecx; /* 0x3000DD1E: mov dword ptr [ebp - 0x24], ecx */
  13234     ecx = ebp + 0x10; /* 0x3000DD21: lea ecx, [ebp + 0x10] */
  13235     PUSH32(esp, ecx); /* 0x3000DD24: push ecx */
  13236     ecx = ebp + (-0x24); /* 0x3000DD25: lea ecx, [ebp - 0x24] */
  13237     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DD28: call dword ptr [0x300190ec] */
  13238     RECOMP_FLAGS_IN();
  13239     edx = MEM32(eax); /* 0x3000DD2E: mov edx, dword ptr [eax] */
  13240     ecx = MEM32(eax + 0x4); /* 0x3000DD30: mov ecx, dword ptr [eax + 4] */
  13241     MEM32(ebp + (-0x18)) = edx; /* 0x3000DD33: mov dword ptr [ebp - 0x18], edx */
  13242     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000DD36: fld dword ptr [ebp - 0x18] */
  13243     _st[0] += (double)*(float*)ADDR(esi); /* 0x3000DD39: fadd dword ptr [esi] */
  13244     edx = MEM32(eax + 0x8); /* 0x3000DD3B: mov edx, dword ptr [eax + 8] */
  13245     MEM32(ebp + (-0x14)) = ecx; /* 0x3000DD3E: mov dword ptr [ebp - 0x14], ecx */
  13246     MEM32(ebp + (-0x10)) = edx; /* 0x3000DD41: mov dword ptr [ebp - 0x10], edx */
  13247     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DD44: fstp dword ptr [ebp - 0x18] */
  13248     eax = MEM32(ebp + (-0x18)); /* 0x3000DD47: mov eax, dword ptr [ebp - 0x18] */
  13249     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3000DD4A: fld dword ptr [ebp - 0x14] */
  13250     MEM32(ebp + (-0x78)) = eax; /* 0x3000DD4D: mov dword ptr [ebp - 0x78], eax */
  13251     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x3000DD50: fadd dword ptr [esi + 4] */
  13252     eax = MEM32(ebp + 0x8); /* 0x3000DD53: mov eax, dword ptr [ebp + 8] */
  13253     MEM32(ebp + (-0x18)) = 0; /* 0x3000DD56: mov dword ptr [ebp - 0x18], 0 */
  13254     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DD5D: fstp dword ptr [ebp - 0x14] */
  13255     ecx = MEM32(ebp + (-0x14)); /* 0x3000DD60: mov ecx, dword ptr [ebp - 0x14] */
  13256     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DD63: fld dword ptr [ebp - 0x10] */
  13257     MEM32(ebp + (-0x74)) = ecx; /* 0x3000DD66: mov dword ptr [ebp - 0x74], ecx */
  13258     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DD69: fadd dword ptr [esi + 8] */
  13259     ecx = MEM32(ebp + (-0x18)); /* 0x3000DD6C: mov ecx, dword ptr [ebp - 0x18] */
  13260     MEM32(ebp + (-0x14)) = 0; /* 0x3000DD6F: mov dword ptr [ebp - 0x14], 0 */
  13261     MEM32(ebp + (-0x24)) = ecx; /* 0x3000DD76: mov dword ptr [ebp - 0x24], ecx */
  13262     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DD79: fstp dword ptr [ebp - 0x10] */
  13263     edx = MEM32(ebp + (-0x10)); /* 0x3000DD7C: mov edx, dword ptr [ebp - 0x10] */
  13264     MEM32(ebp + (-0x70)) = edx; /* 0x3000DD7F: mov dword ptr [ebp - 0x70], edx */
  13265     edx = MEM32(ebp + (-0x14)); /* 0x3000DD82: mov edx, dword ptr [ebp - 0x14] */
  13266     MEM32(ebp + (-0x10)) = eax; /* 0x3000DD85: mov dword ptr [ebp - 0x10], eax */
  13267     MEM32(ebp + (-0x20)) = edx; /* 0x3000DD88: mov dword ptr [ebp - 0x20], edx */
  13268     ecx = ebp + 0x10; /* 0x3000DD8B: lea ecx, [ebp + 0x10] */
  13269     PUSH32(esp, ecx); /* 0x3000DD8E: push ecx */
  13270     ecx = ebp + (-0x24); /* 0x3000DD8F: lea ecx, [ebp - 0x24] */
  13271     MEM32(ebp + (-0x1C)) = eax; /* 0x3000DD92: mov dword ptr [ebp - 0x1c], eax */
  13272     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DD95: call dword ptr [0x300190ec] */
  13273     RECOMP_FLAGS_IN();
  13274     edx = MEM32(eax); /* 0x3000DD9B: mov edx, dword ptr [eax] */
  13275     ecx = MEM32(eax + 0x4); /* 0x3000DD9D: mov ecx, dword ptr [eax + 4] */
  13276     MEM32(ebp + (-0x18)) = edx; /* 0x3000DDA0: mov dword ptr [ebp - 0x18], edx */
  13277     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000DDA3: fld dword ptr [ebp - 0x18] */
  13278     _st[0] += (double)*(float*)ADDR(esi); /* 0x3000DDA6: fadd dword ptr [esi] */
  13279     edx = MEM32(eax + 0x8); /* 0x3000DDA8: mov edx, dword ptr [eax + 8] */
  13280     MEM32(ebp + (-0x14)) = ecx; /* 0x3000DDAB: mov dword ptr [ebp - 0x14], ecx */
  13281     MEM32(ebp + (-0x10)) = edx; /* 0x3000DDAE: mov dword ptr [ebp - 0x10], edx */
  13282     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DDB1: fstp dword ptr [ebp - 0x18] */
  13283     eax = MEM32(ebp + (-0x18)); /* 0x3000DDB4: mov eax, dword ptr [ebp - 0x18] */
  13284     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3000DDB7: fld dword ptr [ebp - 0x14] */
  13285     MEM32(ebp + (-0x6C)) = eax; /* 0x3000DDBA: mov dword ptr [ebp - 0x6c], eax */
  13286     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x3000DDBD: fadd dword ptr [esi + 4] */
  13287     eax = MEM32(ebp + 0x8); /* 0x3000DDC0: mov eax, dword ptr [ebp + 8] */
  13288     MEM32(ebp + (-0x18)) = 0; /* 0x3000DDC3: mov dword ptr [ebp - 0x18], 0 */
  13289     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DDCA: fstp dword ptr [ebp - 0x14] */
  13290     ecx = MEM32(ebp + (-0x14)); /* 0x3000DDCD: mov ecx, dword ptr [ebp - 0x14] */
  13291     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DDD0: fld dword ptr [ebp - 0x10] */
  13292     MEM32(ebp + (-0x68)) = ecx; /* 0x3000DDD3: mov dword ptr [ebp - 0x68], ecx */
  13293     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DDD6: fadd dword ptr [esi + 8] */
  13294     ecx = MEM32(ebp + (-0x18)); /* 0x3000DDD9: mov ecx, dword ptr [ebp - 0x18] */
  13295     MEM32(ebp + (-0x24)) = ecx; /* 0x3000DDDC: mov dword ptr [ebp - 0x24], ecx */
  13296     ecx = ebp + 0x10; /* 0x3000DDDF: lea ecx, [ebp + 0x10] */
  13297     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DDE2: fstp dword ptr [ebp - 0x10] */
  13298     edx = MEM32(ebp + (-0x10)); /* 0x3000DDE5: mov edx, dword ptr [ebp - 0x10] */
  13299     MEM32(ebp + (-0x64)) = edx; /* 0x3000DDE8: mov dword ptr [ebp - 0x64], edx */
  13300     edx = eax; /* 0x3000DDEB: mov edx, eax */
  13301     MEM32(ebp + (-0x14)) = eax; /* 0x3000DDED: mov dword ptr [ebp - 0x14], eax */
  13302     MEM32(ebp + (-0x10)) = 0; /* 0x3000DDF0: mov dword ptr [ebp - 0x10], 0 */
  13303     eax = MEM32(ebp + (-0x10)); /* 0x3000DDF7: mov eax, dword ptr [ebp - 0x10] */
  13304     PUSH32(esp, ecx); /* 0x3000DDFA: push ecx */
  13305     ecx = ebp + (-0x24); /* 0x3000DDFB: lea ecx, [ebp - 0x24] */
  13306     MEM32(ebp + (-0x20)) = edx; /* 0x3000DDFE: mov dword ptr [ebp - 0x20], edx */
  13307     MEM32(ebp + (-0x1C)) = eax; /* 0x3000DE01: mov dword ptr [ebp - 0x1c], eax */
  13308     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DE04: call dword ptr [0x300190ec] */
  13309     RECOMP_FLAGS_IN();
  13310     edx = MEM32(eax); /* 0x3000DE0A: mov edx, dword ptr [eax] */
  13311     ecx = MEM32(eax + 0x4); /* 0x3000DE0C: mov ecx, dword ptr [eax + 4] */
  13312     MEM32(ebp + (-0x18)) = edx; /* 0x3000DE0F: mov dword ptr [ebp - 0x18], edx */
  13313     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000DE12: fld dword ptr [ebp - 0x18] */
  13314     _st[0] += (double)*(float*)ADDR(esi); /* 0x3000DE15: fadd dword ptr [esi] */
  13315     edx = MEM32(eax + 0x8); /* 0x3000DE17: mov edx, dword ptr [eax + 8] */
  13316     MEM32(ebp + (-0x14)) = ecx; /* 0x3000DE1A: mov dword ptr [ebp - 0x14], ecx */
  13317     MEM32(ebp + (-0x10)) = edx; /* 0x3000DE1D: mov dword ptr [ebp - 0x10], edx */
  13318     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DE20: fstp dword ptr [ebp - 0x18] */
  13319     eax = MEM32(ebp + (-0x18)); /* 0x3000DE23: mov eax, dword ptr [ebp - 0x18] */
  13320     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3000DE26: fld dword ptr [ebp - 0x14] */
  13321     MEM32(ebp + (-0x60)) = eax; /* 0x3000DE29: mov dword ptr [ebp - 0x60], eax */
  13322     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x3000DE2C: fadd dword ptr [esi + 4] */
  13323     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DE2F: fstp dword ptr [ebp - 0x14] */
  13324     ecx = MEM32(ebp + (-0x14)); /* 0x3000DE32: mov ecx, dword ptr [ebp - 0x14] */
  13325     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DE35: fld dword ptr [ebp - 0x10] */
  13326     MEM32(ebp + (-0x5C)) = ecx; /* 0x3000DE38: mov dword ptr [ebp - 0x5c], ecx */
  13327     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DE3B: fadd dword ptr [esi + 8] */
  13328     ecx = ebp + (-0x40); /* 0x3000DE3E: lea ecx, [ebp - 0x40] */
  13329     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DE41: fstp dword ptr [ebp - 0x10] */
  13330     edx = MEM32(ebp + (-0x10)); /* 0x3000DE44: mov edx, dword ptr [ebp - 0x10] */
  13331     MEM32(ebp + (-0x58)) = edx; /* 0x3000DE47: mov dword ptr [ebp - 0x58], edx */
  13332     RECOMP_ICALL(0x30007930u); /* 0x3000DE4A: call 0x30007930 */ /* not lifted */
  13333     RECOMP_FLAGS_IN();
  13334     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13335     ebx = 0; /* 0x3000DE4F: xor ebx, ebx */
  13336     _cf = 0;
  13337     _flag_k = FK_TEST;
  13338     PUSH32(esp, 3); /* 0x3000DE51: push 3 */
  13339     ecx = ebp + (-0x2C); /* 0x3000DE53: lea ecx, [ebp - 0x2c] */
  13340     MEM32(ebp + (-0x4)) = ebx; /* 0x3000DE56: mov dword ptr [ebp - 4], ebx */
  13341     RECOMP_ICALL(0x30007950u); /* 0x3000DE59: call 0x30007950 */ /* not lifted */
  13342     RECOMP_FLAGS_IN();
  13343     PUSH32(esp, eax); /* 0x3000DE5E: push eax */
  13344     ecx = ebp + (-0x40); /* 0x3000DE5F: lea ecx, [ebp - 0x40] */
  13345     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3000DE62: mov byte ptr [ebp - 4], 1 */
  13346     RECOMP_ICALL(0x300080D0u); /* 0x3000DE66: call 0x300080d0 */ /* not lifted */
  13347     RECOMP_FLAGS_IN();
  13348     ecx = ebp + (-0x2C); /* 0x3000DE6B: lea ecx, [ebp - 0x2c] */
  13349     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DE6E: mov byte ptr [ebp - 4], bl */
  13350     RECOMP_ICALL(0x30007AB0u); /* 0x3000DE71: call 0x30007ab0 */ /* not lifted */
  13351     RECOMP_FLAGS_IN();
  13352     eax = ebp + (-0x84); /* 0x3000DE76: lea eax, [ebp - 0x84] */
  13353     PUSH32(esp, eax); /* 0x3000DE7C: push eax */
  13354     PUSH32(esp, ebx); /* 0x3000DE7D: push ebx */
  13355     ecx = ebp + (-0x40); /* 0x3000DE7E: lea ecx, [ebp - 0x40] */
  13356     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE81: call 0x30007ba0 */ /* not lifted */
  13357     RECOMP_FLAGS_IN();
  13358     ecx = ebp + (-0x78); /* 0x3000DE86: lea ecx, [ebp - 0x78] */
  13359     PUSH32(esp, ecx); /* 0x3000DE89: push ecx */
  13360     PUSH32(esp, 1); /* 0x3000DE8A: push 1 */
  13361     ecx = ebp + (-0x40); /* 0x3000DE8C: lea ecx, [ebp - 0x40] */
  13362     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE8F: call 0x30007ba0 */ /* not lifted */
  13363     RECOMP_FLAGS_IN();
  13364     edx = ebp + (-0x6C); /* 0x3000DE94: lea edx, [ebp - 0x6c] */
  13365     PUSH32(esp, edx); /* 0x3000DE97: push edx */
  13366     PUSH32(esp, 2); /* 0x3000DE98: push 2 */
  13367     ecx = ebp + (-0x40); /* 0x3000DE9A: lea ecx, [ebp - 0x40] */
  13368     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE9D: call 0x30007ba0 */ /* not lifted */
  13369     RECOMP_FLAGS_IN();
  13370     eax = MEM32(edi + 0x8); /* 0x3000DEA2: mov eax, dword ptr [edi + 8] */
  13371     ecx = ebp + (-0x40); /* 0x3000DEA5: lea ecx, [ebp - 0x40] */
  13372     PUSH32(esp, ecx); /* 0x3000DEA8: push ecx */
  13373     PUSH32(esp, 1); /* 0x3000DEA9: push 1 */
  13374     PUSH32(esp, eax); /* 0x3000DEAB: push eax */
  13375     ecx = edi; /* 0x3000DEAC: mov ecx, edi */
  13376     RECOMP_ICALL(0x30002E30u); /* 0x3000DEAE: call 0x30002e30 */ /* not lifted */
  13377     RECOMP_FLAGS_IN();
  13378     PUSH32(esp, 3); /* 0x3000DEB3: push 3 */
  13379     ecx = ebp + (-0x2C); /* 0x3000DEB5: lea ecx, [ebp - 0x2c] */
  13380     RECOMP_ICALL(0x30007950u); /* 0x3000DEB8: call 0x30007950 */ /* not lifted */
  13381     RECOMP_FLAGS_IN();
  13382     PUSH32(esp, eax); /* 0x3000DEBD: push eax */
  13383     ecx = ebp + (-0x40); /* 0x3000DEBE: lea ecx, [ebp - 0x40] */
  13384     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3000DEC1: mov byte ptr [ebp - 4], 2 */
  13385     RECOMP_ICALL(0x300080D0u); /* 0x3000DEC5: call 0x300080d0 */ /* not lifted */
  13386     RECOMP_FLAGS_IN();
  13387     ecx = ebp + (-0x2C); /* 0x3000DECA: lea ecx, [ebp - 0x2c] */
  13388     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DECD: mov byte ptr [ebp - 4], bl */
  13389     RECOMP_ICALL(0x30007AB0u); /* 0x3000DED0: call 0x30007ab0 */ /* not lifted */
  13390     RECOMP_FLAGS_IN();
  13391     edx = ebp + (-0x84); /* 0x3000DED5: lea edx, [ebp - 0x84] */
  13392     PUSH32(esp, edx); /* 0x3000DEDB: push edx */
  13393     PUSH32(esp, ebx); /* 0x3000DEDC: push ebx */
  13394     ecx = ebp + (-0x40); /* 0x3000DEDD: lea ecx, [ebp - 0x40] */
  13395     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEE0: call 0x30007ba0 */ /* not lifted */
  13396     RECOMP_FLAGS_IN();
  13397     eax = ebp + (-0x78); /* 0x3000DEE5: lea eax, [ebp - 0x78] */
  13398     PUSH32(esp, eax); /* 0x3000DEE8: push eax */
  13399     PUSH32(esp, 1); /* 0x3000DEE9: push 1 */
  13400     ecx = ebp + (-0x40); /* 0x3000DEEB: lea ecx, [ebp - 0x40] */
  13401     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEEE: call 0x30007ba0 */ /* not lifted */
  13402     RECOMP_FLAGS_IN();
  13403     ecx = ebp + (-0x60); /* 0x3000DEF3: lea ecx, [ebp - 0x60] */
  13404     PUSH32(esp, ecx); /* 0x3000DEF6: push ecx */
  13405     PUSH32(esp, 2); /* 0x3000DEF7: push 2 */
  13406     ecx = ebp + (-0x40); /* 0x3000DEF9: lea ecx, [ebp - 0x40] */
  13407     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEFC: call 0x30007ba0 */ /* not lifted */
  13408     RECOMP_FLAGS_IN();
  13409     eax = MEM32(edi + 0x8); /* 0x3000DF01: mov eax, dword ptr [edi + 8] */
  13410     edx = ebp + (-0x40); /* 0x3000DF04: lea edx, [ebp - 0x40] */
  13411     PUSH32(esp, edx); /* 0x3000DF07: push edx */
  13412     PUSH32(esp, 1); /* 0x3000DF08: push 1 */
  13413     PUSH32(esp, eax); /* 0x3000DF0A: push eax */
  13414     ecx = edi; /* 0x3000DF0B: mov ecx, edi */
  13415     RECOMP_ICALL(0x30002E30u); /* 0x3000DF0D: call 0x30002e30 */ /* not lifted */
  13416     RECOMP_FLAGS_IN();
  13417     PUSH32(esp, 3); /* 0x3000DF12: push 3 */
  13418     ecx = ebp + (-0x2C); /* 0x3000DF14: lea ecx, [ebp - 0x2c] */
  13419     RECOMP_ICALL(0x30007950u); /* 0x3000DF17: call 0x30007950 */ /* not lifted */
  13420     RECOMP_FLAGS_IN();
  13421     PUSH32(esp, eax); /* 0x3000DF1C: push eax */
  13422     ecx = ebp + (-0x40); /* 0x3000DF1D: lea ecx, [ebp - 0x40] */
  13423     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3000DF20: mov byte ptr [ebp - 4], 3 */
  13424     RECOMP_ICALL(0x300080D0u); /* 0x3000DF24: call 0x300080d0 */ /* not lifted */
  13425     RECOMP_FLAGS_IN();
  13426     ecx = ebp + (-0x2C); /* 0x3000DF29: lea ecx, [ebp - 0x2c] */
  13427     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DF2C: mov byte ptr [ebp - 4], bl */
  13428     RECOMP_ICALL(0x30007AB0u); /* 0x3000DF2F: call 0x30007ab0 */ /* not lifted */
  13429     RECOMP_FLAGS_IN();
  13430     eax = ebp + (-0x84); /* 0x3000DF34: lea eax, [ebp - 0x84] */
  13431     PUSH32(esp, eax); /* 0x3000DF3A: push eax */
  13432     PUSH32(esp, ebx); /* 0x3000DF3B: push ebx */
  13433     ecx = ebp + (-0x40); /* 0x3000DF3C: lea ecx, [ebp - 0x40] */
  13434     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF3F: call 0x30007ba0 */ /* not lifted */
  13435     RECOMP_FLAGS_IN();
  13436     ecx = ebp + (-0x60); /* 0x3000DF44: lea ecx, [ebp - 0x60] */
  13437     PUSH32(esp, ecx); /* 0x3000DF47: push ecx */
  13438     PUSH32(esp, 1); /* 0x3000DF48: push 1 */
  13439     ecx = ebp + (-0x40); /* 0x3000DF4A: lea ecx, [ebp - 0x40] */
  13440     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF4D: call 0x30007ba0 */ /* not lifted */
  13441     RECOMP_FLAGS_IN();
  13442     edx = ebp + (-0x6C); /* 0x3000DF52: lea edx, [ebp - 0x6c] */
  13443     PUSH32(esp, edx); /* 0x3000DF55: push edx */
  13444     PUSH32(esp, 2); /* 0x3000DF56: push 2 */
  13445     ecx = ebp + (-0x40); /* 0x3000DF58: lea ecx, [ebp - 0x40] */
  13446     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF5B: call 0x30007ba0 */ /* not lifted */
  13447     RECOMP_FLAGS_IN();
  13448     eax = MEM32(edi + 0x8); /* 0x3000DF60: mov eax, dword ptr [edi + 8] */
  13449     ecx = ebp + (-0x40); /* 0x3000DF63: lea ecx, [ebp - 0x40] */
  13450     PUSH32(esp, ecx); /* 0x3000DF66: push ecx */
  13451     PUSH32(esp, 1); /* 0x3000DF67: push 1 */
  13452     PUSH32(esp, eax); /* 0x3000DF69: push eax */
  13453     ecx = edi; /* 0x3000DF6A: mov ecx, edi */
  13454     RECOMP_ICALL(0x30002E30u); /* 0x3000DF6C: call 0x30002e30 */ /* not lifted */
  13455     RECOMP_FLAGS_IN();
  13456     PUSH32(esp, 3); /* 0x3000DF71: push 3 */
  13457     ecx = ebp + (-0x54); /* 0x3000DF73: lea ecx, [ebp - 0x54] */
  13458     RECOMP_ICALL(0x30007950u); /* 0x3000DF76: call 0x30007950 */ /* not lifted */
  13459     RECOMP_FLAGS_IN();
  13460     PUSH32(esp, eax); /* 0x3000DF7B: push eax */
  13461     ecx = ebp + (-0x40); /* 0x3000DF7C: lea ecx, [ebp - 0x40] */
  13462     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3000DF7F: mov byte ptr [ebp - 4], 4 */
  13463     RECOMP_ICALL(0x300080D0u); /* 0x3000DF83: call 0x300080d0 */ /* not lifted */
  13464     RECOMP_FLAGS_IN();
  13465     ecx = ebp + (-0x54); /* 0x3000DF88: lea ecx, [ebp - 0x54] */
  13466     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DF8B: mov byte ptr [ebp - 4], bl */
  13467     RECOMP_ICALL(0x30007AB0u); /* 0x3000DF8E: call 0x30007ab0 */ /* not lifted */
  13468     RECOMP_FLAGS_IN();
  13469     edx = ebp + (-0x78); /* 0x3000DF93: lea edx, [ebp - 0x78] */
  13470     PUSH32(esp, edx); /* 0x3000DF96: push edx */
  13471     PUSH32(esp, ebx); /* 0x3000DF97: push ebx */
  13472     ecx = ebp + (-0x40); /* 0x3000DF98: lea ecx, [ebp - 0x40] */
  13473     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF9B: call 0x30007ba0 */ /* not lifted */
  13474     RECOMP_FLAGS_IN();
  13475     eax = ebp + (-0x6C); /* 0x3000DFA0: lea eax, [ebp - 0x6c] */
  13476     PUSH32(esp, eax); /* 0x3000DFA3: push eax */
  13477     PUSH32(esp, 1); /* 0x3000DFA4: push 1 */
  13478     ecx = ebp + (-0x40); /* 0x3000DFA6: lea ecx, [ebp - 0x40] */
  13479     RECOMP_ICALL(0x30007BA0u); /* 0x3000DFA9: call 0x30007ba0 */ /* not lifted */
  13480     RECOMP_FLAGS_IN();
  13481     ecx = ebp + (-0x60); /* 0x3000DFAE: lea ecx, [ebp - 0x60] */
  13482     PUSH32(esp, ecx); /* 0x3000DFB1: push ecx */
  13483     PUSH32(esp, 2); /* 0x3000DFB2: push 2 */
  13484     ecx = ebp + (-0x40); /* 0x3000DFB4: lea ecx, [ebp - 0x40] */
  13485     RECOMP_ICALL(0x30007BA0u); /* 0x3000DFB7: call 0x30007ba0 */ /* not lifted */
  13486     RECOMP_FLAGS_IN();
  13487     eax = MEM32(edi + 0x8); /* 0x3000DFBC: mov eax, dword ptr [edi + 8] */
  13488     edx = ebp + (-0x40); /* 0x3000DFBF: lea edx, [ebp - 0x40] */
  13489     PUSH32(esp, edx); /* 0x3000DFC2: push edx */
  13490     PUSH32(esp, 1); /* 0x3000DFC3: push 1 */
  13491     PUSH32(esp, eax); /* 0x3000DFC5: push eax */
  13492     ecx = edi; /* 0x3000DFC6: mov ecx, edi */
  13493     RECOMP_ICALL(0x30002E30u); /* 0x3000DFC8: call 0x30002e30 */ /* not lifted */
  13494     RECOMP_FLAGS_IN();
  13495     ecx = ebp + (-0x40); /* 0x3000DFCD: lea ecx, [ebp - 0x40] */
  13496     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000DFD0: mov dword ptr [ebp - 4], 0xffffffff */
  13497     RECOMP_ICALL(0x30007AB0u); /* 0x3000DFD7: call 0x30007ab0 */ /* not lifted */
  13498     RECOMP_FLAGS_IN();
  13499     ecx = MEM32(ebp + (-0xC)); /* 0x3000DFDC: mov ecx, dword ptr [ebp - 0xc] */
  13500     edi = POP32_VAL(esp); /* 0x3000DFDF: pop edi */
  13501     esi = POP32_VAL(esp); /* 0x3000DFE0: pop esi */
  13502     ebx = POP32_VAL(esp); /* 0x3000DFE1: pop ebx */
  13503     MEM32(FS_BASE + (0)) = ecx; /* 0x3000DFE2: mov dword ptr fs:[0], ecx */
  13504     esp = ebp; /* 0x3000DFE9: mov esp, ebp */
  13505     ebp = POP32_VAL(esp); /* 0x3000DFEB: pop ebp */
  13506     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x3000DFEC: ret 0x18 */
  13507     RECOMP_REGS_OUT();
  13508 }
  13509 
  13510 void sub_3000DD5D(void) {
  13511     int _fpu_cmp = 0;
  13512     uint32_t _cf = 0;
  13513     int _df = 1;
  13514     uint32_t _flag_k = FK_NONE;
  13515     uint32_t _flag_a = 0, _flag_b = 0;
  13516     uint32_t _itail_tgt = 0;
  13517     RECOMP_REGS_LOCALS
  13518     RECOMP_ENTER(0x3000DD5Du);
  13519 
  13520 L_3000DD5D:
  13521     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DD5D: fstp dword ptr [ebp - 0x14] */
  13522     ecx = MEM32(ebp + (-0x14)); /* 0x3000DD60: mov ecx, dword ptr [ebp - 0x14] */
  13523     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DD63: fld dword ptr [ebp - 0x10] */
  13524     MEM32(ebp + (-0x74)) = ecx; /* 0x3000DD66: mov dword ptr [ebp - 0x74], ecx */
  13525     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DD69: fadd dword ptr [esi + 8] */
  13526     ecx = MEM32(ebp + (-0x18)); /* 0x3000DD6C: mov ecx, dword ptr [ebp - 0x18] */
  13527     MEM32(ebp + (-0x14)) = 0; /* 0x3000DD6F: mov dword ptr [ebp - 0x14], 0 */
  13528     MEM32(ebp + (-0x24)) = ecx; /* 0x3000DD76: mov dword ptr [ebp - 0x24], ecx */
  13529     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DD79: fstp dword ptr [ebp - 0x10] */
  13530     edx = MEM32(ebp + (-0x10)); /* 0x3000DD7C: mov edx, dword ptr [ebp - 0x10] */
  13531     MEM32(ebp + (-0x70)) = edx; /* 0x3000DD7F: mov dword ptr [ebp - 0x70], edx */
  13532     edx = MEM32(ebp + (-0x14)); /* 0x3000DD82: mov edx, dword ptr [ebp - 0x14] */
  13533     MEM32(ebp + (-0x10)) = eax; /* 0x3000DD85: mov dword ptr [ebp - 0x10], eax */
  13534     MEM32(ebp + (-0x20)) = edx; /* 0x3000DD88: mov dword ptr [ebp - 0x20], edx */
  13535     ecx = ebp + 0x10; /* 0x3000DD8B: lea ecx, [ebp + 0x10] */
  13536     PUSH32(esp, ecx); /* 0x3000DD8E: push ecx */
  13537     ecx = ebp + (-0x24); /* 0x3000DD8F: lea ecx, [ebp - 0x24] */
  13538     MEM32(ebp + (-0x1C)) = eax; /* 0x3000DD92: mov dword ptr [ebp - 0x1c], eax */
  13539     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DD95: call dword ptr [0x300190ec] */
  13540     RECOMP_FLAGS_IN();
  13541     edx = MEM32(eax); /* 0x3000DD9B: mov edx, dword ptr [eax] */
  13542     ecx = MEM32(eax + 0x4); /* 0x3000DD9D: mov ecx, dword ptr [eax + 4] */
  13543     MEM32(ebp + (-0x18)) = edx; /* 0x3000DDA0: mov dword ptr [ebp - 0x18], edx */
  13544     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000DDA3: fld dword ptr [ebp - 0x18] */
  13545     _st[0] += (double)*(float*)ADDR(esi); /* 0x3000DDA6: fadd dword ptr [esi] */
  13546     edx = MEM32(eax + 0x8); /* 0x3000DDA8: mov edx, dword ptr [eax + 8] */
  13547     MEM32(ebp + (-0x14)) = ecx; /* 0x3000DDAB: mov dword ptr [ebp - 0x14], ecx */
  13548     MEM32(ebp + (-0x10)) = edx; /* 0x3000DDAE: mov dword ptr [ebp - 0x10], edx */
  13549     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DDB1: fstp dword ptr [ebp - 0x18] */
  13550     eax = MEM32(ebp + (-0x18)); /* 0x3000DDB4: mov eax, dword ptr [ebp - 0x18] */
  13551     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3000DDB7: fld dword ptr [ebp - 0x14] */
  13552     MEM32(ebp + (-0x6C)) = eax; /* 0x3000DDBA: mov dword ptr [ebp - 0x6c], eax */
  13553     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x3000DDBD: fadd dword ptr [esi + 4] */
  13554     eax = MEM32(ebp + 0x8); /* 0x3000DDC0: mov eax, dword ptr [ebp + 8] */
  13555     MEM32(ebp + (-0x18)) = 0; /* 0x3000DDC3: mov dword ptr [ebp - 0x18], 0 */
  13556     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DDCA: fstp dword ptr [ebp - 0x14] */
  13557     ecx = MEM32(ebp + (-0x14)); /* 0x3000DDCD: mov ecx, dword ptr [ebp - 0x14] */
  13558     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DDD0: fld dword ptr [ebp - 0x10] */
  13559     MEM32(ebp + (-0x68)) = ecx; /* 0x3000DDD3: mov dword ptr [ebp - 0x68], ecx */
  13560     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DDD6: fadd dword ptr [esi + 8] */
  13561     ecx = MEM32(ebp + (-0x18)); /* 0x3000DDD9: mov ecx, dword ptr [ebp - 0x18] */
  13562     MEM32(ebp + (-0x24)) = ecx; /* 0x3000DDDC: mov dword ptr [ebp - 0x24], ecx */
  13563     ecx = ebp + 0x10; /* 0x3000DDDF: lea ecx, [ebp + 0x10] */
  13564     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DDE2: fstp dword ptr [ebp - 0x10] */
  13565     edx = MEM32(ebp + (-0x10)); /* 0x3000DDE5: mov edx, dword ptr [ebp - 0x10] */
  13566     MEM32(ebp + (-0x64)) = edx; /* 0x3000DDE8: mov dword ptr [ebp - 0x64], edx */
  13567     edx = eax; /* 0x3000DDEB: mov edx, eax */
  13568     MEM32(ebp + (-0x14)) = eax; /* 0x3000DDED: mov dword ptr [ebp - 0x14], eax */
  13569     MEM32(ebp + (-0x10)) = 0; /* 0x3000DDF0: mov dword ptr [ebp - 0x10], 0 */
  13570     eax = MEM32(ebp + (-0x10)); /* 0x3000DDF7: mov eax, dword ptr [ebp - 0x10] */
  13571     PUSH32(esp, ecx); /* 0x3000DDFA: push ecx */
  13572     ecx = ebp + (-0x24); /* 0x3000DDFB: lea ecx, [ebp - 0x24] */
  13573     MEM32(ebp + (-0x20)) = edx; /* 0x3000DDFE: mov dword ptr [ebp - 0x20], edx */
  13574     MEM32(ebp + (-0x1C)) = eax; /* 0x3000DE01: mov dword ptr [ebp - 0x1c], eax */
  13575     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DE04: call dword ptr [0x300190ec] */
  13576     RECOMP_FLAGS_IN();
  13577     edx = MEM32(eax); /* 0x3000DE0A: mov edx, dword ptr [eax] */
  13578     ecx = MEM32(eax + 0x4); /* 0x3000DE0C: mov ecx, dword ptr [eax + 4] */
  13579     MEM32(ebp + (-0x18)) = edx; /* 0x3000DE0F: mov dword ptr [ebp - 0x18], edx */
  13580     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000DE12: fld dword ptr [ebp - 0x18] */
  13581     _st[0] += (double)*(float*)ADDR(esi); /* 0x3000DE15: fadd dword ptr [esi] */
  13582     edx = MEM32(eax + 0x8); /* 0x3000DE17: mov edx, dword ptr [eax + 8] */
  13583     MEM32(ebp + (-0x14)) = ecx; /* 0x3000DE1A: mov dword ptr [ebp - 0x14], ecx */
  13584     MEM32(ebp + (-0x10)) = edx; /* 0x3000DE1D: mov dword ptr [ebp - 0x10], edx */
  13585     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DE20: fstp dword ptr [ebp - 0x18] */
  13586     eax = MEM32(ebp + (-0x18)); /* 0x3000DE23: mov eax, dword ptr [ebp - 0x18] */
  13587     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3000DE26: fld dword ptr [ebp - 0x14] */
  13588     MEM32(ebp + (-0x60)) = eax; /* 0x3000DE29: mov dword ptr [ebp - 0x60], eax */
  13589     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x3000DE2C: fadd dword ptr [esi + 4] */
  13590     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DE2F: fstp dword ptr [ebp - 0x14] */
  13591     ecx = MEM32(ebp + (-0x14)); /* 0x3000DE32: mov ecx, dword ptr [ebp - 0x14] */
  13592     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DE35: fld dword ptr [ebp - 0x10] */
  13593     MEM32(ebp + (-0x5C)) = ecx; /* 0x3000DE38: mov dword ptr [ebp - 0x5c], ecx */
  13594     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DE3B: fadd dword ptr [esi + 8] */
  13595     ecx = ebp + (-0x40); /* 0x3000DE3E: lea ecx, [ebp - 0x40] */
  13596     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DE41: fstp dword ptr [ebp - 0x10] */
  13597     edx = MEM32(ebp + (-0x10)); /* 0x3000DE44: mov edx, dword ptr [ebp - 0x10] */
  13598     MEM32(ebp + (-0x58)) = edx; /* 0x3000DE47: mov dword ptr [ebp - 0x58], edx */
  13599     RECOMP_ICALL(0x30007930u); /* 0x3000DE4A: call 0x30007930 */ /* not lifted */
  13600     RECOMP_FLAGS_IN();
  13601     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13602     ebx = 0; /* 0x3000DE4F: xor ebx, ebx */
  13603     _cf = 0;
  13604     _flag_k = FK_TEST;
  13605     PUSH32(esp, 3); /* 0x3000DE51: push 3 */
  13606     ecx = ebp + (-0x2C); /* 0x3000DE53: lea ecx, [ebp - 0x2c] */
  13607     MEM32(ebp + (-0x4)) = ebx; /* 0x3000DE56: mov dword ptr [ebp - 4], ebx */
  13608     RECOMP_ICALL(0x30007950u); /* 0x3000DE59: call 0x30007950 */ /* not lifted */
  13609     RECOMP_FLAGS_IN();
  13610     PUSH32(esp, eax); /* 0x3000DE5E: push eax */
  13611     ecx = ebp + (-0x40); /* 0x3000DE5F: lea ecx, [ebp - 0x40] */
  13612     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3000DE62: mov byte ptr [ebp - 4], 1 */
  13613     RECOMP_ICALL(0x300080D0u); /* 0x3000DE66: call 0x300080d0 */ /* not lifted */
  13614     RECOMP_FLAGS_IN();
  13615     ecx = ebp + (-0x2C); /* 0x3000DE6B: lea ecx, [ebp - 0x2c] */
  13616     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DE6E: mov byte ptr [ebp - 4], bl */
  13617     RECOMP_ICALL(0x30007AB0u); /* 0x3000DE71: call 0x30007ab0 */ /* not lifted */
  13618     RECOMP_FLAGS_IN();
  13619     eax = ebp + (-0x84); /* 0x3000DE76: lea eax, [ebp - 0x84] */
  13620     PUSH32(esp, eax); /* 0x3000DE7C: push eax */
  13621     PUSH32(esp, ebx); /* 0x3000DE7D: push ebx */
  13622     ecx = ebp + (-0x40); /* 0x3000DE7E: lea ecx, [ebp - 0x40] */
  13623     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE81: call 0x30007ba0 */ /* not lifted */
  13624     RECOMP_FLAGS_IN();
  13625     ecx = ebp + (-0x78); /* 0x3000DE86: lea ecx, [ebp - 0x78] */
  13626     PUSH32(esp, ecx); /* 0x3000DE89: push ecx */
  13627     PUSH32(esp, 1); /* 0x3000DE8A: push 1 */
  13628     ecx = ebp + (-0x40); /* 0x3000DE8C: lea ecx, [ebp - 0x40] */
  13629     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE8F: call 0x30007ba0 */ /* not lifted */
  13630     RECOMP_FLAGS_IN();
  13631     edx = ebp + (-0x6C); /* 0x3000DE94: lea edx, [ebp - 0x6c] */
  13632     PUSH32(esp, edx); /* 0x3000DE97: push edx */
  13633     PUSH32(esp, 2); /* 0x3000DE98: push 2 */
  13634     ecx = ebp + (-0x40); /* 0x3000DE9A: lea ecx, [ebp - 0x40] */
  13635     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE9D: call 0x30007ba0 */ /* not lifted */
  13636     RECOMP_FLAGS_IN();
  13637     eax = MEM32(edi + 0x8); /* 0x3000DEA2: mov eax, dword ptr [edi + 8] */
  13638     ecx = ebp + (-0x40); /* 0x3000DEA5: lea ecx, [ebp - 0x40] */
  13639     PUSH32(esp, ecx); /* 0x3000DEA8: push ecx */
  13640     PUSH32(esp, 1); /* 0x3000DEA9: push 1 */
  13641     PUSH32(esp, eax); /* 0x3000DEAB: push eax */
  13642     ecx = edi; /* 0x3000DEAC: mov ecx, edi */
  13643     RECOMP_ICALL(0x30002E30u); /* 0x3000DEAE: call 0x30002e30 */ /* not lifted */
  13644     RECOMP_FLAGS_IN();
  13645     PUSH32(esp, 3); /* 0x3000DEB3: push 3 */
  13646     ecx = ebp + (-0x2C); /* 0x3000DEB5: lea ecx, [ebp - 0x2c] */
  13647     RECOMP_ICALL(0x30007950u); /* 0x3000DEB8: call 0x30007950 */ /* not lifted */
  13648     RECOMP_FLAGS_IN();
  13649     PUSH32(esp, eax); /* 0x3000DEBD: push eax */
  13650     ecx = ebp + (-0x40); /* 0x3000DEBE: lea ecx, [ebp - 0x40] */
  13651     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3000DEC1: mov byte ptr [ebp - 4], 2 */
  13652     RECOMP_ICALL(0x300080D0u); /* 0x3000DEC5: call 0x300080d0 */ /* not lifted */
  13653     RECOMP_FLAGS_IN();
  13654     ecx = ebp + (-0x2C); /* 0x3000DECA: lea ecx, [ebp - 0x2c] */
  13655     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DECD: mov byte ptr [ebp - 4], bl */
  13656     RECOMP_ICALL(0x30007AB0u); /* 0x3000DED0: call 0x30007ab0 */ /* not lifted */
  13657     RECOMP_FLAGS_IN();
  13658     edx = ebp + (-0x84); /* 0x3000DED5: lea edx, [ebp - 0x84] */
  13659     PUSH32(esp, edx); /* 0x3000DEDB: push edx */
  13660     PUSH32(esp, ebx); /* 0x3000DEDC: push ebx */
  13661     ecx = ebp + (-0x40); /* 0x3000DEDD: lea ecx, [ebp - 0x40] */
  13662     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEE0: call 0x30007ba0 */ /* not lifted */
  13663     RECOMP_FLAGS_IN();
  13664     eax = ebp + (-0x78); /* 0x3000DEE5: lea eax, [ebp - 0x78] */
  13665     PUSH32(esp, eax); /* 0x3000DEE8: push eax */
  13666     PUSH32(esp, 1); /* 0x3000DEE9: push 1 */
  13667     ecx = ebp + (-0x40); /* 0x3000DEEB: lea ecx, [ebp - 0x40] */
  13668     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEEE: call 0x30007ba0 */ /* not lifted */
  13669     RECOMP_FLAGS_IN();
  13670     ecx = ebp + (-0x60); /* 0x3000DEF3: lea ecx, [ebp - 0x60] */
  13671     PUSH32(esp, ecx); /* 0x3000DEF6: push ecx */
  13672     PUSH32(esp, 2); /* 0x3000DEF7: push 2 */
  13673     ecx = ebp + (-0x40); /* 0x3000DEF9: lea ecx, [ebp - 0x40] */
  13674     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEFC: call 0x30007ba0 */ /* not lifted */
  13675     RECOMP_FLAGS_IN();
  13676     eax = MEM32(edi + 0x8); /* 0x3000DF01: mov eax, dword ptr [edi + 8] */
  13677     edx = ebp + (-0x40); /* 0x3000DF04: lea edx, [ebp - 0x40] */
  13678     PUSH32(esp, edx); /* 0x3000DF07: push edx */
  13679     PUSH32(esp, 1); /* 0x3000DF08: push 1 */
  13680     PUSH32(esp, eax); /* 0x3000DF0A: push eax */
  13681     ecx = edi; /* 0x3000DF0B: mov ecx, edi */
  13682     RECOMP_ICALL(0x30002E30u); /* 0x3000DF0D: call 0x30002e30 */ /* not lifted */
  13683     RECOMP_FLAGS_IN();
  13684     PUSH32(esp, 3); /* 0x3000DF12: push 3 */
  13685     ecx = ebp + (-0x2C); /* 0x3000DF14: lea ecx, [ebp - 0x2c] */
  13686     RECOMP_ICALL(0x30007950u); /* 0x3000DF17: call 0x30007950 */ /* not lifted */
  13687     RECOMP_FLAGS_IN();
  13688     PUSH32(esp, eax); /* 0x3000DF1C: push eax */
  13689     ecx = ebp + (-0x40); /* 0x3000DF1D: lea ecx, [ebp - 0x40] */
  13690     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3000DF20: mov byte ptr [ebp - 4], 3 */
  13691     RECOMP_ICALL(0x300080D0u); /* 0x3000DF24: call 0x300080d0 */ /* not lifted */
  13692     RECOMP_FLAGS_IN();
  13693     ecx = ebp + (-0x2C); /* 0x3000DF29: lea ecx, [ebp - 0x2c] */
  13694     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DF2C: mov byte ptr [ebp - 4], bl */
  13695     RECOMP_ICALL(0x30007AB0u); /* 0x3000DF2F: call 0x30007ab0 */ /* not lifted */
  13696     RECOMP_FLAGS_IN();
  13697     eax = ebp + (-0x84); /* 0x3000DF34: lea eax, [ebp - 0x84] */
  13698     PUSH32(esp, eax); /* 0x3000DF3A: push eax */
  13699     PUSH32(esp, ebx); /* 0x3000DF3B: push ebx */
  13700     ecx = ebp + (-0x40); /* 0x3000DF3C: lea ecx, [ebp - 0x40] */
  13701     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF3F: call 0x30007ba0 */ /* not lifted */
  13702     RECOMP_FLAGS_IN();
  13703     ecx = ebp + (-0x60); /* 0x3000DF44: lea ecx, [ebp - 0x60] */
  13704     PUSH32(esp, ecx); /* 0x3000DF47: push ecx */
  13705     PUSH32(esp, 1); /* 0x3000DF48: push 1 */
  13706     ecx = ebp + (-0x40); /* 0x3000DF4A: lea ecx, [ebp - 0x40] */
  13707     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF4D: call 0x30007ba0 */ /* not lifted */
  13708     RECOMP_FLAGS_IN();
  13709     edx = ebp + (-0x6C); /* 0x3000DF52: lea edx, [ebp - 0x6c] */
  13710     PUSH32(esp, edx); /* 0x3000DF55: push edx */
  13711     PUSH32(esp, 2); /* 0x3000DF56: push 2 */
  13712     ecx = ebp + (-0x40); /* 0x3000DF58: lea ecx, [ebp - 0x40] */
  13713     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF5B: call 0x30007ba0 */ /* not lifted */
  13714     RECOMP_FLAGS_IN();
  13715     eax = MEM32(edi + 0x8); /* 0x3000DF60: mov eax, dword ptr [edi + 8] */
  13716     ecx = ebp + (-0x40); /* 0x3000DF63: lea ecx, [ebp - 0x40] */
  13717     PUSH32(esp, ecx); /* 0x3000DF66: push ecx */
  13718     PUSH32(esp, 1); /* 0x3000DF67: push 1 */
  13719     PUSH32(esp, eax); /* 0x3000DF69: push eax */
  13720     ecx = edi; /* 0x3000DF6A: mov ecx, edi */
  13721     RECOMP_ICALL(0x30002E30u); /* 0x3000DF6C: call 0x30002e30 */ /* not lifted */
  13722     RECOMP_FLAGS_IN();
  13723     PUSH32(esp, 3); /* 0x3000DF71: push 3 */
  13724     ecx = ebp + (-0x54); /* 0x3000DF73: lea ecx, [ebp - 0x54] */
  13725     RECOMP_ICALL(0x30007950u); /* 0x3000DF76: call 0x30007950 */ /* not lifted */
  13726     RECOMP_FLAGS_IN();
  13727     PUSH32(esp, eax); /* 0x3000DF7B: push eax */
  13728     ecx = ebp + (-0x40); /* 0x3000DF7C: lea ecx, [ebp - 0x40] */
  13729     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3000DF7F: mov byte ptr [ebp - 4], 4 */
  13730     RECOMP_ICALL(0x300080D0u); /* 0x3000DF83: call 0x300080d0 */ /* not lifted */
  13731     RECOMP_FLAGS_IN();
  13732     ecx = ebp + (-0x54); /* 0x3000DF88: lea ecx, [ebp - 0x54] */
  13733     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DF8B: mov byte ptr [ebp - 4], bl */
  13734     RECOMP_ICALL(0x30007AB0u); /* 0x3000DF8E: call 0x30007ab0 */ /* not lifted */
  13735     RECOMP_FLAGS_IN();
  13736     edx = ebp + (-0x78); /* 0x3000DF93: lea edx, [ebp - 0x78] */
  13737     PUSH32(esp, edx); /* 0x3000DF96: push edx */
  13738     PUSH32(esp, ebx); /* 0x3000DF97: push ebx */
  13739     ecx = ebp + (-0x40); /* 0x3000DF98: lea ecx, [ebp - 0x40] */
  13740     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF9B: call 0x30007ba0 */ /* not lifted */
  13741     RECOMP_FLAGS_IN();
  13742     eax = ebp + (-0x6C); /* 0x3000DFA0: lea eax, [ebp - 0x6c] */
  13743     PUSH32(esp, eax); /* 0x3000DFA3: push eax */
  13744     PUSH32(esp, 1); /* 0x3000DFA4: push 1 */
  13745     ecx = ebp + (-0x40); /* 0x3000DFA6: lea ecx, [ebp - 0x40] */
  13746     RECOMP_ICALL(0x30007BA0u); /* 0x3000DFA9: call 0x30007ba0 */ /* not lifted */
  13747     RECOMP_FLAGS_IN();
  13748     ecx = ebp + (-0x60); /* 0x3000DFAE: lea ecx, [ebp - 0x60] */
  13749     PUSH32(esp, ecx); /* 0x3000DFB1: push ecx */
  13750     PUSH32(esp, 2); /* 0x3000DFB2: push 2 */
  13751     ecx = ebp + (-0x40); /* 0x3000DFB4: lea ecx, [ebp - 0x40] */
  13752     RECOMP_ICALL(0x30007BA0u); /* 0x3000DFB7: call 0x30007ba0 */ /* not lifted */
  13753     RECOMP_FLAGS_IN();
  13754     eax = MEM32(edi + 0x8); /* 0x3000DFBC: mov eax, dword ptr [edi + 8] */
  13755     edx = ebp + (-0x40); /* 0x3000DFBF: lea edx, [ebp - 0x40] */
  13756     PUSH32(esp, edx); /* 0x3000DFC2: push edx */
  13757     PUSH32(esp, 1); /* 0x3000DFC3: push 1 */
  13758     PUSH32(esp, eax); /* 0x3000DFC5: push eax */
  13759     ecx = edi; /* 0x3000DFC6: mov ecx, edi */
  13760     RECOMP_ICALL(0x30002E30u); /* 0x3000DFC8: call 0x30002e30 */ /* not lifted */
  13761     RECOMP_FLAGS_IN();
  13762     ecx = ebp + (-0x40); /* 0x3000DFCD: lea ecx, [ebp - 0x40] */
  13763     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000DFD0: mov dword ptr [ebp - 4], 0xffffffff */
  13764     RECOMP_ICALL(0x30007AB0u); /* 0x3000DFD7: call 0x30007ab0 */ /* not lifted */
  13765     RECOMP_FLAGS_IN();
  13766     ecx = MEM32(ebp + (-0xC)); /* 0x3000DFDC: mov ecx, dword ptr [ebp - 0xc] */
  13767     edi = POP32_VAL(esp); /* 0x3000DFDF: pop edi */
  13768     esi = POP32_VAL(esp); /* 0x3000DFE0: pop esi */
  13769     ebx = POP32_VAL(esp); /* 0x3000DFE1: pop ebx */
  13770     MEM32(FS_BASE + (0)) = ecx; /* 0x3000DFE2: mov dword ptr fs:[0], ecx */
  13771     esp = ebp; /* 0x3000DFE9: mov esp, ebp */
  13772     ebp = POP32_VAL(esp); /* 0x3000DFEB: pop ebp */
  13773     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x3000DFEC: ret 0x18 */
  13774     RECOMP_REGS_OUT();
  13775 }
  13776 
  13777 void sub_3000DDCA(void) {
  13778     int _fpu_cmp = 0;
  13779     uint32_t _cf = 0;
  13780     int _df = 1;
  13781     uint32_t _flag_k = FK_NONE;
  13782     uint32_t _flag_a = 0, _flag_b = 0;
  13783     uint32_t _itail_tgt = 0;
  13784     RECOMP_REGS_LOCALS
  13785     RECOMP_ENTER(0x3000DDCAu);
  13786 
  13787 L_3000DDCA:
  13788     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DDCA: fstp dword ptr [ebp - 0x14] */
  13789     ecx = MEM32(ebp + (-0x14)); /* 0x3000DDCD: mov ecx, dword ptr [ebp - 0x14] */
  13790     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DDD0: fld dword ptr [ebp - 0x10] */
  13791     MEM32(ebp + (-0x68)) = ecx; /* 0x3000DDD3: mov dword ptr [ebp - 0x68], ecx */
  13792     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DDD6: fadd dword ptr [esi + 8] */
  13793     ecx = MEM32(ebp + (-0x18)); /* 0x3000DDD9: mov ecx, dword ptr [ebp - 0x18] */
  13794     MEM32(ebp + (-0x24)) = ecx; /* 0x3000DDDC: mov dword ptr [ebp - 0x24], ecx */
  13795     ecx = ebp + 0x10; /* 0x3000DDDF: lea ecx, [ebp + 0x10] */
  13796     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DDE2: fstp dword ptr [ebp - 0x10] */
  13797     edx = MEM32(ebp + (-0x10)); /* 0x3000DDE5: mov edx, dword ptr [ebp - 0x10] */
  13798     MEM32(ebp + (-0x64)) = edx; /* 0x3000DDE8: mov dword ptr [ebp - 0x64], edx */
  13799     edx = eax; /* 0x3000DDEB: mov edx, eax */
  13800     MEM32(ebp + (-0x14)) = eax; /* 0x3000DDED: mov dword ptr [ebp - 0x14], eax */
  13801     MEM32(ebp + (-0x10)) = 0; /* 0x3000DDF0: mov dword ptr [ebp - 0x10], 0 */
  13802     eax = MEM32(ebp + (-0x10)); /* 0x3000DDF7: mov eax, dword ptr [ebp - 0x10] */
  13803     PUSH32(esp, ecx); /* 0x3000DDFA: push ecx */
  13804     ecx = ebp + (-0x24); /* 0x3000DDFB: lea ecx, [ebp - 0x24] */
  13805     MEM32(ebp + (-0x20)) = edx; /* 0x3000DDFE: mov dword ptr [ebp - 0x20], edx */
  13806     MEM32(ebp + (-0x1C)) = eax; /* 0x3000DE01: mov dword ptr [ebp - 0x1c], eax */
  13807     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x3000DE04: call dword ptr [0x300190ec] */
  13808     RECOMP_FLAGS_IN();
  13809     edx = MEM32(eax); /* 0x3000DE0A: mov edx, dword ptr [eax] */
  13810     ecx = MEM32(eax + 0x4); /* 0x3000DE0C: mov ecx, dword ptr [eax + 4] */
  13811     MEM32(ebp + (-0x18)) = edx; /* 0x3000DE0F: mov dword ptr [ebp - 0x18], edx */
  13812     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000DE12: fld dword ptr [ebp - 0x18] */
  13813     _st[0] += (double)*(float*)ADDR(esi); /* 0x3000DE15: fadd dword ptr [esi] */
  13814     edx = MEM32(eax + 0x8); /* 0x3000DE17: mov edx, dword ptr [eax + 8] */
  13815     MEM32(ebp + (-0x14)) = ecx; /* 0x3000DE1A: mov dword ptr [ebp - 0x14], ecx */
  13816     MEM32(ebp + (-0x10)) = edx; /* 0x3000DE1D: mov dword ptr [ebp - 0x10], edx */
  13817     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000DE20: fstp dword ptr [ebp - 0x18] */
  13818     eax = MEM32(ebp + (-0x18)); /* 0x3000DE23: mov eax, dword ptr [ebp - 0x18] */
  13819     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3000DE26: fld dword ptr [ebp - 0x14] */
  13820     MEM32(ebp + (-0x60)) = eax; /* 0x3000DE29: mov dword ptr [ebp - 0x60], eax */
  13821     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x3000DE2C: fadd dword ptr [esi + 4] */
  13822     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000DE2F: fstp dword ptr [ebp - 0x14] */
  13823     ecx = MEM32(ebp + (-0x14)); /* 0x3000DE32: mov ecx, dword ptr [ebp - 0x14] */
  13824     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000DE35: fld dword ptr [ebp - 0x10] */
  13825     MEM32(ebp + (-0x5C)) = ecx; /* 0x3000DE38: mov dword ptr [ebp - 0x5c], ecx */
  13826     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x3000DE3B: fadd dword ptr [esi + 8] */
  13827     ecx = ebp + (-0x40); /* 0x3000DE3E: lea ecx, [ebp - 0x40] */
  13828     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000DE41: fstp dword ptr [ebp - 0x10] */
  13829     edx = MEM32(ebp + (-0x10)); /* 0x3000DE44: mov edx, dword ptr [ebp - 0x10] */
  13830     MEM32(ebp + (-0x58)) = edx; /* 0x3000DE47: mov dword ptr [ebp - 0x58], edx */
  13831     RECOMP_ICALL(0x30007930u); /* 0x3000DE4A: call 0x30007930 */ /* not lifted */
  13832     RECOMP_FLAGS_IN();
  13833     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13834     ebx = 0; /* 0x3000DE4F: xor ebx, ebx */
  13835     _cf = 0;
  13836     _flag_k = FK_TEST;
  13837     PUSH32(esp, 3); /* 0x3000DE51: push 3 */
  13838     ecx = ebp + (-0x2C); /* 0x3000DE53: lea ecx, [ebp - 0x2c] */
  13839     MEM32(ebp + (-0x4)) = ebx; /* 0x3000DE56: mov dword ptr [ebp - 4], ebx */
  13840     RECOMP_ICALL(0x30007950u); /* 0x3000DE59: call 0x30007950 */ /* not lifted */
  13841     RECOMP_FLAGS_IN();
  13842     PUSH32(esp, eax); /* 0x3000DE5E: push eax */
  13843     ecx = ebp + (-0x40); /* 0x3000DE5F: lea ecx, [ebp - 0x40] */
  13844     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3000DE62: mov byte ptr [ebp - 4], 1 */
  13845     RECOMP_ICALL(0x300080D0u); /* 0x3000DE66: call 0x300080d0 */ /* not lifted */
  13846     RECOMP_FLAGS_IN();
  13847     ecx = ebp + (-0x2C); /* 0x3000DE6B: lea ecx, [ebp - 0x2c] */
  13848     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DE6E: mov byte ptr [ebp - 4], bl */
  13849     RECOMP_ICALL(0x30007AB0u); /* 0x3000DE71: call 0x30007ab0 */ /* not lifted */
  13850     RECOMP_FLAGS_IN();
  13851     eax = ebp + (-0x84); /* 0x3000DE76: lea eax, [ebp - 0x84] */
  13852     PUSH32(esp, eax); /* 0x3000DE7C: push eax */
  13853     PUSH32(esp, ebx); /* 0x3000DE7D: push ebx */
  13854     ecx = ebp + (-0x40); /* 0x3000DE7E: lea ecx, [ebp - 0x40] */
  13855     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE81: call 0x30007ba0 */ /* not lifted */
  13856     RECOMP_FLAGS_IN();
  13857     ecx = ebp + (-0x78); /* 0x3000DE86: lea ecx, [ebp - 0x78] */
  13858     PUSH32(esp, ecx); /* 0x3000DE89: push ecx */
  13859     PUSH32(esp, 1); /* 0x3000DE8A: push 1 */
  13860     ecx = ebp + (-0x40); /* 0x3000DE8C: lea ecx, [ebp - 0x40] */
  13861     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE8F: call 0x30007ba0 */ /* not lifted */
  13862     RECOMP_FLAGS_IN();
  13863     edx = ebp + (-0x6C); /* 0x3000DE94: lea edx, [ebp - 0x6c] */
  13864     PUSH32(esp, edx); /* 0x3000DE97: push edx */
  13865     PUSH32(esp, 2); /* 0x3000DE98: push 2 */
  13866     ecx = ebp + (-0x40); /* 0x3000DE9A: lea ecx, [ebp - 0x40] */
  13867     RECOMP_ICALL(0x30007BA0u); /* 0x3000DE9D: call 0x30007ba0 */ /* not lifted */
  13868     RECOMP_FLAGS_IN();
  13869     eax = MEM32(edi + 0x8); /* 0x3000DEA2: mov eax, dword ptr [edi + 8] */
  13870     ecx = ebp + (-0x40); /* 0x3000DEA5: lea ecx, [ebp - 0x40] */
  13871     PUSH32(esp, ecx); /* 0x3000DEA8: push ecx */
  13872     PUSH32(esp, 1); /* 0x3000DEA9: push 1 */
  13873     PUSH32(esp, eax); /* 0x3000DEAB: push eax */
  13874     ecx = edi; /* 0x3000DEAC: mov ecx, edi */
  13875     RECOMP_ICALL(0x30002E30u); /* 0x3000DEAE: call 0x30002e30 */ /* not lifted */
  13876     RECOMP_FLAGS_IN();
  13877     PUSH32(esp, 3); /* 0x3000DEB3: push 3 */
  13878     ecx = ebp + (-0x2C); /* 0x3000DEB5: lea ecx, [ebp - 0x2c] */
  13879     RECOMP_ICALL(0x30007950u); /* 0x3000DEB8: call 0x30007950 */ /* not lifted */
  13880     RECOMP_FLAGS_IN();
  13881     PUSH32(esp, eax); /* 0x3000DEBD: push eax */
  13882     ecx = ebp + (-0x40); /* 0x3000DEBE: lea ecx, [ebp - 0x40] */
  13883     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3000DEC1: mov byte ptr [ebp - 4], 2 */
  13884     RECOMP_ICALL(0x300080D0u); /* 0x3000DEC5: call 0x300080d0 */ /* not lifted */
  13885     RECOMP_FLAGS_IN();
  13886     ecx = ebp + (-0x2C); /* 0x3000DECA: lea ecx, [ebp - 0x2c] */
  13887     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DECD: mov byte ptr [ebp - 4], bl */
  13888     RECOMP_ICALL(0x30007AB0u); /* 0x3000DED0: call 0x30007ab0 */ /* not lifted */
  13889     RECOMP_FLAGS_IN();
  13890     edx = ebp + (-0x84); /* 0x3000DED5: lea edx, [ebp - 0x84] */
  13891     PUSH32(esp, edx); /* 0x3000DEDB: push edx */
  13892     PUSH32(esp, ebx); /* 0x3000DEDC: push ebx */
  13893     ecx = ebp + (-0x40); /* 0x3000DEDD: lea ecx, [ebp - 0x40] */
  13894     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEE0: call 0x30007ba0 */ /* not lifted */
  13895     RECOMP_FLAGS_IN();
  13896     eax = ebp + (-0x78); /* 0x3000DEE5: lea eax, [ebp - 0x78] */
  13897     PUSH32(esp, eax); /* 0x3000DEE8: push eax */
  13898     PUSH32(esp, 1); /* 0x3000DEE9: push 1 */
  13899     ecx = ebp + (-0x40); /* 0x3000DEEB: lea ecx, [ebp - 0x40] */
  13900     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEEE: call 0x30007ba0 */ /* not lifted */
  13901     RECOMP_FLAGS_IN();
  13902     ecx = ebp + (-0x60); /* 0x3000DEF3: lea ecx, [ebp - 0x60] */
  13903     PUSH32(esp, ecx); /* 0x3000DEF6: push ecx */
  13904     PUSH32(esp, 2); /* 0x3000DEF7: push 2 */
  13905     ecx = ebp + (-0x40); /* 0x3000DEF9: lea ecx, [ebp - 0x40] */
  13906     RECOMP_ICALL(0x30007BA0u); /* 0x3000DEFC: call 0x30007ba0 */ /* not lifted */
  13907     RECOMP_FLAGS_IN();
  13908     eax = MEM32(edi + 0x8); /* 0x3000DF01: mov eax, dword ptr [edi + 8] */
  13909     edx = ebp + (-0x40); /* 0x3000DF04: lea edx, [ebp - 0x40] */
  13910     PUSH32(esp, edx); /* 0x3000DF07: push edx */
  13911     PUSH32(esp, 1); /* 0x3000DF08: push 1 */
  13912     PUSH32(esp, eax); /* 0x3000DF0A: push eax */
  13913     ecx = edi; /* 0x3000DF0B: mov ecx, edi */
  13914     RECOMP_ICALL(0x30002E30u); /* 0x3000DF0D: call 0x30002e30 */ /* not lifted */
  13915     RECOMP_FLAGS_IN();
  13916     PUSH32(esp, 3); /* 0x3000DF12: push 3 */
  13917     ecx = ebp + (-0x2C); /* 0x3000DF14: lea ecx, [ebp - 0x2c] */
  13918     RECOMP_ICALL(0x30007950u); /* 0x3000DF17: call 0x30007950 */ /* not lifted */
  13919     RECOMP_FLAGS_IN();
  13920     PUSH32(esp, eax); /* 0x3000DF1C: push eax */
  13921     ecx = ebp + (-0x40); /* 0x3000DF1D: lea ecx, [ebp - 0x40] */
  13922     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3000DF20: mov byte ptr [ebp - 4], 3 */
  13923     RECOMP_ICALL(0x300080D0u); /* 0x3000DF24: call 0x300080d0 */ /* not lifted */
  13924     RECOMP_FLAGS_IN();
  13925     ecx = ebp + (-0x2C); /* 0x3000DF29: lea ecx, [ebp - 0x2c] */
  13926     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DF2C: mov byte ptr [ebp - 4], bl */
  13927     RECOMP_ICALL(0x30007AB0u); /* 0x3000DF2F: call 0x30007ab0 */ /* not lifted */
  13928     RECOMP_FLAGS_IN();
  13929     eax = ebp + (-0x84); /* 0x3000DF34: lea eax, [ebp - 0x84] */
  13930     PUSH32(esp, eax); /* 0x3000DF3A: push eax */
  13931     PUSH32(esp, ebx); /* 0x3000DF3B: push ebx */
  13932     ecx = ebp + (-0x40); /* 0x3000DF3C: lea ecx, [ebp - 0x40] */
  13933     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF3F: call 0x30007ba0 */ /* not lifted */
  13934     RECOMP_FLAGS_IN();
  13935     ecx = ebp + (-0x60); /* 0x3000DF44: lea ecx, [ebp - 0x60] */
  13936     PUSH32(esp, ecx); /* 0x3000DF47: push ecx */
  13937     PUSH32(esp, 1); /* 0x3000DF48: push 1 */
  13938     ecx = ebp + (-0x40); /* 0x3000DF4A: lea ecx, [ebp - 0x40] */
  13939     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF4D: call 0x30007ba0 */ /* not lifted */
  13940     RECOMP_FLAGS_IN();
  13941     edx = ebp + (-0x6C); /* 0x3000DF52: lea edx, [ebp - 0x6c] */
  13942     PUSH32(esp, edx); /* 0x3000DF55: push edx */
  13943     PUSH32(esp, 2); /* 0x3000DF56: push 2 */
  13944     ecx = ebp + (-0x40); /* 0x3000DF58: lea ecx, [ebp - 0x40] */
  13945     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF5B: call 0x30007ba0 */ /* not lifted */
  13946     RECOMP_FLAGS_IN();
  13947     eax = MEM32(edi + 0x8); /* 0x3000DF60: mov eax, dword ptr [edi + 8] */
  13948     ecx = ebp + (-0x40); /* 0x3000DF63: lea ecx, [ebp - 0x40] */
  13949     PUSH32(esp, ecx); /* 0x3000DF66: push ecx */
  13950     PUSH32(esp, 1); /* 0x3000DF67: push 1 */
  13951     PUSH32(esp, eax); /* 0x3000DF69: push eax */
  13952     ecx = edi; /* 0x3000DF6A: mov ecx, edi */
  13953     RECOMP_ICALL(0x30002E30u); /* 0x3000DF6C: call 0x30002e30 */ /* not lifted */
  13954     RECOMP_FLAGS_IN();
  13955     PUSH32(esp, 3); /* 0x3000DF71: push 3 */
  13956     ecx = ebp + (-0x54); /* 0x3000DF73: lea ecx, [ebp - 0x54] */
  13957     RECOMP_ICALL(0x30007950u); /* 0x3000DF76: call 0x30007950 */ /* not lifted */
  13958     RECOMP_FLAGS_IN();
  13959     PUSH32(esp, eax); /* 0x3000DF7B: push eax */
  13960     ecx = ebp + (-0x40); /* 0x3000DF7C: lea ecx, [ebp - 0x40] */
  13961     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3000DF7F: mov byte ptr [ebp - 4], 4 */
  13962     RECOMP_ICALL(0x300080D0u); /* 0x3000DF83: call 0x300080d0 */ /* not lifted */
  13963     RECOMP_FLAGS_IN();
  13964     ecx = ebp + (-0x54); /* 0x3000DF88: lea ecx, [ebp - 0x54] */
  13965     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000DF8B: mov byte ptr [ebp - 4], bl */
  13966     RECOMP_ICALL(0x30007AB0u); /* 0x3000DF8E: call 0x30007ab0 */ /* not lifted */
  13967     RECOMP_FLAGS_IN();
  13968     edx = ebp + (-0x78); /* 0x3000DF93: lea edx, [ebp - 0x78] */
  13969     PUSH32(esp, edx); /* 0x3000DF96: push edx */
  13970     PUSH32(esp, ebx); /* 0x3000DF97: push ebx */
  13971     ecx = ebp + (-0x40); /* 0x3000DF98: lea ecx, [ebp - 0x40] */
  13972     RECOMP_ICALL(0x30007BA0u); /* 0x3000DF9B: call 0x30007ba0 */ /* not lifted */
  13973     RECOMP_FLAGS_IN();
  13974     eax = ebp + (-0x6C); /* 0x3000DFA0: lea eax, [ebp - 0x6c] */
  13975     PUSH32(esp, eax); /* 0x3000DFA3: push eax */
  13976     PUSH32(esp, 1); /* 0x3000DFA4: push 1 */
  13977     ecx = ebp + (-0x40); /* 0x3000DFA6: lea ecx, [ebp - 0x40] */
  13978     RECOMP_ICALL(0x30007BA0u); /* 0x3000DFA9: call 0x30007ba0 */ /* not lifted */
  13979     RECOMP_FLAGS_IN();
  13980     ecx = ebp + (-0x60); /* 0x3000DFAE: lea ecx, [ebp - 0x60] */
  13981     PUSH32(esp, ecx); /* 0x3000DFB1: push ecx */
  13982     PUSH32(esp, 2); /* 0x3000DFB2: push 2 */
  13983     ecx = ebp + (-0x40); /* 0x3000DFB4: lea ecx, [ebp - 0x40] */
  13984     RECOMP_ICALL(0x30007BA0u); /* 0x3000DFB7: call 0x30007ba0 */ /* not lifted */
  13985     RECOMP_FLAGS_IN();
  13986     eax = MEM32(edi + 0x8); /* 0x3000DFBC: mov eax, dword ptr [edi + 8] */
  13987     edx = ebp + (-0x40); /* 0x3000DFBF: lea edx, [ebp - 0x40] */
  13988     PUSH32(esp, edx); /* 0x3000DFC2: push edx */
  13989     PUSH32(esp, 1); /* 0x3000DFC3: push 1 */
  13990     PUSH32(esp, eax); /* 0x3000DFC5: push eax */
  13991     ecx = edi; /* 0x3000DFC6: mov ecx, edi */
  13992     RECOMP_ICALL(0x30002E30u); /* 0x3000DFC8: call 0x30002e30 */ /* not lifted */
  13993     RECOMP_FLAGS_IN();
  13994     ecx = ebp + (-0x40); /* 0x3000DFCD: lea ecx, [ebp - 0x40] */
  13995     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000DFD0: mov dword ptr [ebp - 4], 0xffffffff */
  13996     RECOMP_ICALL(0x30007AB0u); /* 0x3000DFD7: call 0x30007ab0 */ /* not lifted */
  13997     RECOMP_FLAGS_IN();
  13998     ecx = MEM32(ebp + (-0xC)); /* 0x3000DFDC: mov ecx, dword ptr [ebp - 0xc] */
  13999     edi = POP32_VAL(esp); /* 0x3000DFDF: pop edi */
  14000     esi = POP32_VAL(esp); /* 0x3000DFE0: pop esi */
  14001     ebx = POP32_VAL(esp); /* 0x3000DFE1: pop ebx */
  14002     MEM32(FS_BASE + (0)) = ecx; /* 0x3000DFE2: mov dword ptr fs:[0], ecx */
  14003     esp = ebp; /* 0x3000DFE9: mov esp, ebp */
  14004     ebp = POP32_VAL(esp); /* 0x3000DFEB: pop ebp */
  14005     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x3000DFEC: ret 0x18 */
  14006     RECOMP_REGS_OUT();
  14007 }
  14008 
  14009 void sub_3000DFF0(void) {
  14010     int _fpu_cmp = 0;
  14011     uint32_t _cf = 0;
  14012     int _df = 1;
  14013     uint32_t _flag_k = FK_NONE;
  14014     uint32_t _flag_a = 0, _flag_b = 0;
  14015     uint32_t _itail_tgt = 0;
  14016     RECOMP_REGS_LOCALS
  14017     RECOMP_ENTER(0x3000DFF0u);
  14018 
  14019 L_3000DFF0:
  14020     PUSH32(esp, ebp); /* 0x3000DFF0: push ebp */
  14021     ebp = esp; /* 0x3000DFF1: mov ebp, esp */
  14022     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u);
  14023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14024     esp = esp - 0x30u; /* 0x3000DFF3: sub esp, 0x30 */
  14025     _flag_k = FK_CMP;
  14026     PUSH32(esp, esi); /* 0x3000DFF6: push esi */
  14027     esi = ecx; /* 0x3000DFF7: mov esi, ecx */
  14028     eax = MEM32(esi + 0x8); /* 0x3000DFF9: mov eax, dword ptr [esi + 8] */
  14029     ecx = MEM32(esi + 0x4); /* 0x3000DFFC: mov ecx, dword ptr [esi + 4] */
  14030     /* cmp ecx, eax */ /* 0x3000DFFF: cmp ecx, eax */
  14031     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  14032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14033     _flag_k = FK_CMP;
  14034     PUSH32(esp, edi); /* 0x3000E001: push edi */
  14035     MEM32(ebp + (-0xC)) = esi; /* 0x3000E002: mov dword ptr [ebp - 0xc], esi */
  14036     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E013; /* 0x3000E005: je 0x3000e013 */
  14037 L_3000E007:
  14038     PUSH32(esp, 0); /* 0x3000E007: push 0 */
  14039     PUSH32(esp, eax); /* 0x3000E009: push eax */
  14040     PUSH32(esp, ecx); /* 0x3000E00A: push ecx */
  14041     RECOMP_ICALL(0x3000EC20u); /* 0x3000E00B: call 0x3000ec20 */ /* not lifted */
  14042     RECOMP_FLAGS_IN();
  14043     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  14044     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14045     esp = esp + 0xCu; /* 0x3000E010: add esp, 0xc */
  14046     _flag_k = FK_ADD;
  14047 L_3000E013:
  14048     SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x3000E013: mov al, byte ptr [ebp + 8] */
  14049     /* test LO8(eax), LO8(eax) */ /* 0x3000E016: test al, al */
  14050     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14051     _cf = 0;
  14052     _flag_k = FK_NARROW(FK_TEST, 24);
  14053     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E13A; /* 0x3000E018: je 0x3000e13a */
  14054 L_3000E01E:
  14055     edi = MEM32(esi + 0x4); /* 0x3000E01E: mov edi, dword ptr [esi + 4] */
  14056     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3000E021: cmp edi, dword ptr [esi + 8] */
  14057     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14059     _flag_k = FK_CMP;
  14060     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E13A; /* 0x3000E024: je 0x3000e13a */
  14061 L_3000E02A:
  14062     PUSH32(esp, ebx); /* 0x3000E02A: push ebx */
  14063     ebx = MEM32(0x3001905C); /* 0x3000E02B: mov ebx, dword ptr [0x3001905c] */
  14064 L_3000E031:
  14065     eax = MEM32(edi + 0x4); /* 0x3000E031: mov eax, dword ptr [edi + 4] */
  14066     esi = MEM32(edi); /* 0x3000E034: mov esi, dword ptr [edi] */
  14067     eax = eax + eax * 2; /* 0x3000E036: lea eax, [eax + eax*2] */
  14068     ecx = esi + eax * 4; /* 0x3000E039: lea ecx, [esi + eax*4] */
  14069     /* cmp esi, ecx */ /* 0x3000E03C: cmp esi, ecx */
  14070     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  14071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14072     _flag_k = FK_CMP;
  14073     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E128; /* 0x3000E03E: je 0x3000e128 */
  14074 L_3000E044:
  14075     RECOMP_ICALL(ebx); /* 0x3000E044: call ebx */
  14076     RECOMP_FLAGS_IN();
  14077     MEM32(ebp + 0x8) = eax; /* 0x3000E046: mov dword ptr [ebp + 8], eax */
  14078     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3000E049: fild dword ptr [ebp + 8] */
  14079     _st[0] *= (double)*(float*)ADDR(0x3001929C); /* 0x3000E04C: fmul dword ptr [0x3001929c] */
  14080     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3000E052: fstp dword ptr [ebp - 8] */
  14081     RECOMP_ICALL(ebx); /* 0x3000E055: call ebx */
  14082     RECOMP_FLAGS_IN();
  14083     MEM32(ebp + 0x8) = eax; /* 0x3000E057: mov dword ptr [ebp + 8], eax */
  14084     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3000E05A: fild dword ptr [ebp + 8] */
  14085     _st[0] *= (double)*(float*)ADDR(0x3001929C); /* 0x3000E05D: fmul dword ptr [0x3001929c] */
  14086     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3000E063: fstp dword ptr [ebp - 4] */
  14087     RECOMP_ICALL(ebx); /* 0x3000E066: call ebx */
  14088     RECOMP_FLAGS_IN();
  14089     MEM32(ebp + 0x8) = eax; /* 0x3000E068: mov dword ptr [ebp + 8], eax */
  14090     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3000E06B: fild dword ptr [ebp + 8] */
  14091     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  14092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14093     esi = esi + 0xCu; /* 0x3000E06E: add esi, 0xc */
  14094     _flag_k = FK_ADD;
  14095     _st[0] *= (double)*(float*)ADDR(0x3001929C); /* 0x3000E071: fmul dword ptr [0x3001929c] */
  14096     _st[0] -= (double)*(float*)ADDR(0x30019288); /* 0x3000E077: fsub dword ptr [0x30019288] */
  14097     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3000E07D: fstp dword ptr [ebp - 0x30] */
  14098     edx = MEM32(ebp + (-0x30)); /* 0x3000E080: mov edx, dword ptr [ebp - 0x30] */
  14099     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3000E083: fld dword ptr [ebp - 4] */
  14100     MEM32(ebp + (-0x18)) = edx; /* 0x3000E086: mov dword ptr [ebp - 0x18], edx */
  14101     _st[0] -= (double)*(float*)ADDR(0x30019288); /* 0x3000E089: fsub dword ptr [0x30019288] */
  14102     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3000E08F: fstp dword ptr [ebp - 0x2c] */
  14103     eax = MEM32(ebp + (-0x2C)); /* 0x3000E092: mov eax, dword ptr [ebp - 0x2c] */
  14104     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3000E095: fld dword ptr [ebp - 8] */
  14105     MEM32(ebp + (-0x14)) = eax; /* 0x3000E098: mov dword ptr [ebp - 0x14], eax */
  14106     _st[0] -= (double)*(float*)ADDR(0x30019288); /* 0x3000E09B: fsub dword ptr [0x30019288] */
  14107     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3000E0A1: fstp dword ptr [ebp - 0x28] */
  14108     ecx = MEM32(ebp + (-0x28)); /* 0x3000E0A4: mov ecx, dword ptr [ebp - 0x28] */
  14109     fp_push(*(float*)&MEM32(0x3001E27C)); /* 0x3000E0A7: fld dword ptr [0x3001e27c] */
  14110     MEM32(ebp + (-0x10)) = ecx; /* 0x3000E0AD: mov dword ptr [ebp - 0x10], ecx */
  14111     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3000E0B0: fld dword ptr [ebp - 0x30] */
  14112     _st[0] *= _st[1]; /* 0x3000E0B3: fmul st(1) */
  14113     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3000E0B5: fstp dword ptr [ebp - 0x18] */
  14114     edx = MEM32(ebp + (-0x18)); /* 0x3000E0B8: mov edx, dword ptr [ebp - 0x18] */
  14115     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3000E0BB: fld dword ptr [ebp - 0x14] */
  14116     MEM32(ebp + (-0x24)) = edx; /* 0x3000E0BE: mov dword ptr [ebp - 0x24], edx */
  14117     _st[0] *= _st[1]; /* 0x3000E0C1: fmul st(1) */
  14118     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000E0C3: fstp dword ptr [ebp - 0x14] */
  14119     eax = MEM32(ebp + (-0x14)); /* 0x3000E0C6: mov eax, dword ptr [ebp - 0x14] */
  14120     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000E0C9: fld dword ptr [ebp - 0x10] */
  14121     MEM32(ebp + (-0x20)) = eax; /* 0x3000E0CC: mov dword ptr [ebp - 0x20], eax */
  14122     _st[0] *= _st[1]; /* 0x3000E0CF: fmul st(1) */
  14123     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3000E0D1: fstp dword ptr [ebp - 0x10] */
  14124     ecx = MEM32(ebp + (-0x10)); /* 0x3000E0D4: mov ecx, dword ptr [ebp - 0x10] */
  14125     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000E0D7: mov dword ptr [ebp - 0x1c], ecx */
  14126     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000E0DA: fstp st(0) */
  14127     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000E0DC: fld dword ptr [ebp - 0x18] */
  14128     _st[0] *= (double)*(float*)ADDR(0x30019298); /* 0x3000E0DF: fmul dword ptr [0x30019298] */
  14129     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3000E0E5: fld dword ptr [ebp - 0x20] */
  14130     _st[0] *= (double)*(float*)ADDR(0x30019298); /* 0x3000E0E8: fmul dword ptr [0x30019298] */
  14131     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000E0EE: fstp dword ptr [ebp - 0x20] */
  14132     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3000E0F1: fld dword ptr [ebp - 0x1c] */
  14133     _st[0] *= (double)*(float*)ADDR(0x30019298); /* 0x3000E0F4: fmul dword ptr [0x30019298] */
  14134     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3000E0FA: fstp dword ptr [ebp - 0x1c] */
  14135     _st[0] += (double)*(float*)ADDR(esi + (-0xC)); /* 0x3000E0FD: fadd dword ptr [esi - 0xc] */
  14136     { float _v = (float)fp_pop(); *(float*)ADDR(esi + (-0xC)) = _v; } /* 0x3000E100: fstp dword ptr [esi - 0xc] */
  14137     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3000E103: fld dword ptr [ebp - 0x20] */
  14138     _st[0] += (double)*(float*)ADDR(esi + (-0x8)); /* 0x3000E106: fadd dword ptr [esi - 8] */
  14139     { float _v = (float)fp_pop(); *(float*)ADDR(esi + (-0x8)) = _v; } /* 0x3000E109: fstp dword ptr [esi - 8] */
  14140     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3000E10C: fld dword ptr [ebp - 0x1c] */
  14141     _st[0] += (double)*(float*)ADDR(esi + (-0x4)); /* 0x3000E10F: fadd dword ptr [esi - 4] */
  14142     { float _v = (float)fp_pop(); *(float*)ADDR(esi + (-0x4)) = _v; } /* 0x3000E112: fstp dword ptr [esi - 4] */
  14143     eax = MEM32(edi + 0x4); /* 0x3000E115: mov eax, dword ptr [edi + 4] */
  14144     edx = eax + eax * 2; /* 0x3000E118: lea edx, [eax + eax*2] */
  14145     eax = MEM32(edi); /* 0x3000E11B: mov eax, dword ptr [edi] */
  14146     ecx = eax + edx * 4; /* 0x3000E11D: lea ecx, [eax + edx*4] */
  14147     /* cmp esi, ecx */ /* 0x3000E120: cmp esi, ecx */
  14148     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
  14149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14150     _flag_k = FK_CMP;
  14151     RECOMP_BACKEDGE();
  14152     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E044; /* 0x3000E122: jne 0x3000e044 */
  14153 L_3000E128:
  14154     edx = MEM32(ebp + (-0xC)); /* 0x3000E128: mov edx, dword ptr [ebp - 0xc] */
  14155     eax = MEM32(edx + 0x8); /* 0x3000E12B: mov eax, dword ptr [edx + 8] */
  14156     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  14157     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14158     edi = edi + 0x14u; /* 0x3000E12E: add edi, 0x14 */
  14159     _flag_k = FK_ADD;
  14160     /* cmp edi, eax */ /* 0x3000E131: cmp edi, eax */
  14161     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  14162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14163     _flag_k = FK_CMP;
  14164     RECOMP_BACKEDGE();
  14165     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E031; /* 0x3000E133: jne 0x3000e031 */
  14166 L_3000E139:
  14167     ebx = POP32_VAL(esp); /* 0x3000E139: pop ebx */
  14168 L_3000E13A:
  14169     edi = POP32_VAL(esp); /* 0x3000E13A: pop edi */
  14170     esi = POP32_VAL(esp); /* 0x3000E13B: pop esi */
  14171     esp = ebp; /* 0x3000E13C: mov esp, ebp */
  14172     ebp = POP32_VAL(esp); /* 0x3000E13E: pop ebp */
  14173     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E13F: ret 4 */
  14174     RECOMP_REGS_OUT();
  14175 }
  14176 
  14177 void sub_3000E150(void) {
  14178     int _fpu_cmp = 0;
  14179     uint32_t _cf = 0;
  14180     int _df = 1;
  14181     uint32_t _flag_k = FK_NONE;
  14182     uint32_t _flag_a = 0, _flag_b = 0;
  14183     uint32_t _itail_tgt = 0;
  14184     RECOMP_REGS_LOCALS
  14185     RECOMP_ENTER(0x3000E150u);
  14186 
  14187 L_3000E150:
  14188     PUSH32(esp, ebp); /* 0x3000E150: push ebp */
  14189     ebp = esp; /* 0x3000E151: mov ebp, esp */
  14190     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  14191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14192     esp = esp - 0xCu; /* 0x3000E153: sub esp, 0xc */
  14193     _flag_k = FK_CMP;
  14194     PUSH32(esp, ebx); /* 0x3000E156: push ebx */
  14195     PUSH32(esp, esi); /* 0x3000E157: push esi */
  14196     esi = ecx; /* 0x3000E158: mov esi, ecx */
  14197     ecx = MEM32(esi + 0x8); /* 0x3000E15A: mov ecx, dword ptr [esi + 8] */
  14198     edx = MEM32(esi + 0xC); /* 0x3000E15D: mov edx, dword ptr [esi + 0xc] */
  14199     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  14200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14201     edx = edx - ecx; /* 0x3000E160: sub edx, ecx */
  14202     _flag_k = FK_CMP;
  14203     eax = 0x66666667u; /* 0x3000E162: mov eax, 0x66666667 */
  14204     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E167: imul edx */
  14205       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14206       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14207     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E169: sar edx, 3 */
  14208     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14209     edx = (uint32_t)((int32_t)edx >> 3u);
  14210     eax = edx; /* 0x3000E16C: mov eax, edx */
  14211     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E16E: shr eax, 0x1f */
  14212     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14213     eax = eax >> 31u; /* 0x3000E16E: shr eax, 0x1f */
  14214     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  14215     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14216     edx = edx + eax; /* 0x3000E171: add edx, eax */
  14217     _flag_k = FK_ADD;
  14218     /* cmp edx, 1 */ /* 0x3000E173: cmp edx, 1 */
  14219     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  14220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14221     _flag_k = FK_CMP;
  14222     PUSH32(esp, edi); /* 0x3000E176: push edi */
  14223     edi = ecx; /* 0x3000E177: mov edi, ecx */
  14224     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E2A3; /* 0x3000E179: jae 0x3000e2a3 */
  14225 L_3000E17F:
  14226     ebx = MEM32(esi + 0x4); /* 0x3000E17F: mov ebx, dword ptr [esi + 4] */
  14227     /* test ebx, ebx */ /* 0x3000E182: test ebx, ebx */
  14228     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  14229     _cf = 0;
  14230     _flag_k = FK_TEST;
  14231     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E1A3; /* 0x3000E184: je 0x3000e1a3 */
  14232 L_3000E186:
  14233     edx = ecx; /* 0x3000E186: mov edx, ecx */
  14234     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  14235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14236     edx = edx - ebx; /* 0x3000E188: sub edx, ebx */
  14237     _flag_k = FK_CMP;
  14238     eax = 0x66666667u; /* 0x3000E18A: mov eax, 0x66666667 */
  14239     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E18F: imul edx */
  14240       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14241       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14242     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E191: sar edx, 3 */
  14243     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14244     edx = (uint32_t)((int32_t)edx >> 3u);
  14245     eax = edx; /* 0x3000E194: mov eax, edx */
  14246     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E196: shr eax, 0x1f */
  14247     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14248     eax = eax >> 31u; /* 0x3000E196: shr eax, 0x1f */
  14249     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  14250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14251     edx = edx + eax; /* 0x3000E199: add edx, eax */
  14252     _flag_k = FK_ADD;
  14253     /* cmp edx, 1 */ /* 0x3000E19B: cmp edx, 1 */
  14254     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  14255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14256     _flag_k = FK_CMP;
  14257     MEM32(ebp + (-0x4)) = edx; /* 0x3000E19E: mov dword ptr [ebp - 4], edx */
  14258     if (CMP_A(_flag_a, _flag_b)) goto L_3000E1AA; /* 0x3000E1A1: ja 0x3000e1aa */
  14259 L_3000E1A3:
  14260     MEM32(ebp + (-0x4)) = 1; /* 0x3000E1A3: mov dword ptr [ebp - 4], 1 */
  14261 L_3000E1AA:
  14262     /* test ebx, ebx */ /* 0x3000E1AA: test ebx, ebx */
  14263     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  14264     _cf = 0;
  14265     _flag_k = FK_TEST;
  14266     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E1B2; /* 0x3000E1AC: jne 0x3000e1b2 */
  14267 L_3000E1AE:
  14268     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14269     edx = 0; /* 0x3000E1AE: xor edx, edx */
  14270     _cf = 0;
  14271     _flag_k = FK_TEST;
  14272     goto L_3000E1C5; /* 0x3000E1B0: jmp 0x3000e1c5 */
  14273 L_3000E1B2:
  14274     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  14275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14276     ecx = ecx - ebx; /* 0x3000E1B2: sub ecx, ebx */
  14277     _flag_k = FK_CMP;
  14278     eax = 0x66666667u; /* 0x3000E1B4: mov eax, 0x66666667 */
  14279     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E1B9: imul ecx */
  14280       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14281       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14282     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E1BB: sar edx, 3 */
  14283     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14284     edx = (uint32_t)((int32_t)edx >> 3u);
  14285     ecx = edx; /* 0x3000E1BE: mov ecx, edx */
  14286     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E1C0: shr ecx, 0x1f */
  14287     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14288     ecx = ecx >> 31u; /* 0x3000E1C0: shr ecx, 0x1f */
  14289     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  14290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14291     edx = edx + ecx; /* 0x3000E1C3: add edx, ecx */
  14292     _flag_k = FK_ADD;
  14293 L_3000E1C5:
  14294     eax = MEM32(ebp + (-0x4)); /* 0x3000E1C5: mov eax, dword ptr [ebp - 4] */
  14295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  14296     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14297     eax = eax + edx; /* 0x3000E1C8: add eax, edx */
  14298     _flag_k = FK_ADD;
  14299     /* test eax, eax */ /* 0x3000E1CA: test eax, eax */
  14300     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14301     _cf = 0;
  14302     _flag_k = FK_TEST;
  14303     MEM32(ebp + (-0x8)) = eax; /* 0x3000E1CC: mov dword ptr [ebp - 8], eax */
  14304     if (TEST_NS(_flag_a, _flag_b)) goto L_3000E1D3; /* 0x3000E1CF: jge 0x3000e1d3 */
  14305 L_3000E1D1:
  14306     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14307     eax = 0; /* 0x3000E1D1: xor eax, eax */
  14308     _cf = 0;
  14309     _flag_k = FK_TEST;
  14310 L_3000E1D3:
  14311     ecx = eax + eax * 4; /* 0x3000E1D3: lea ecx, [eax + eax*4] */
  14312     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E1D6: shl ecx, 2 */
  14313     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14314     ecx = ecx << 2u; /* 0x3000E1D6: shl ecx, 2 */
  14315     PUSH32(esp, ecx); /* 0x3000E1D9: push ecx */
  14316     RECOMP_ICALL(0x300180A8u); /* 0x3000E1DA: call 0x300180a8 */ /* not lifted */
  14317     RECOMP_FLAGS_IN();
  14318     MEM32(ebp + (-0xC)) = eax; /* 0x3000E1DF: mov dword ptr [ebp - 0xc], eax */
  14319     ebx = eax; /* 0x3000E1E2: mov ebx, eax */
  14320     eax = MEM32(esi + 0x4); /* 0x3000E1E4: mov eax, dword ptr [esi + 4] */
  14321     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14322     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14323     esp = esp + 4; /* 0x3000E1E7: add esp, 4 */
  14324     _flag_k = FK_ADD;
  14325     /* cmp eax, edi */ /* 0x3000E1EA: cmp eax, edi */
  14326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  14327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14328     _flag_k = FK_CMP;
  14329     MEM32(ebp + (-0x4)) = eax; /* 0x3000E1EC: mov dword ptr [ebp - 4], eax */
  14330     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E210; /* 0x3000E1EF: je 0x3000e210 */
  14331 L_3000E1F1:
  14332     goto L_3000E1F6; /* 0x3000E1F1: jmp 0x3000e1f6 */
  14333 L_3000E1F3:
  14334     eax = MEM32(ebp + (-0x4)); /* 0x3000E1F3: mov eax, dword ptr [ebp - 4] */
  14335 L_3000E1F6:
  14336     PUSH32(esp, eax); /* 0x3000E1F6: push eax */
  14337     PUSH32(esp, ebx); /* 0x3000E1F7: push ebx */
  14338     RECOMP_ICALL(0x30001DF0u); /* 0x3000E1F8: call 0x30001df0 */ /* not lifted */
  14339     RECOMP_FLAGS_IN();
  14340     eax = MEM32(ebp + (-0x4)); /* 0x3000E1FD: mov eax, dword ptr [ebp - 4] */
  14341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  14342     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14343     eax = eax + 0x14u; /* 0x3000E200: add eax, 0x14 */
  14344     _flag_k = FK_ADD;
  14345     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  14346     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14347     esp = esp + 8; /* 0x3000E203: add esp, 8 */
  14348     _flag_k = FK_ADD;
  14349     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
  14350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14351     ebx = ebx + 0x14u; /* 0x3000E206: add ebx, 0x14 */
  14352     _flag_k = FK_ADD;
  14353     /* cmp eax, edi */ /* 0x3000E209: cmp eax, edi */
  14354     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  14355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14356     _flag_k = FK_CMP;
  14357     MEM32(ebp + (-0x4)) = eax; /* 0x3000E20B: mov dword ptr [ebp - 4], eax */
  14358     RECOMP_BACKEDGE();
  14359     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E1F3; /* 0x3000E20E: jne 0x3000e1f3 */
  14360 L_3000E210:
  14361     edx = MEM32(ebp + 0x8); /* 0x3000E210: mov edx, dword ptr [ebp + 8] */
  14362     PUSH32(esp, edx); /* 0x3000E213: push edx */
  14363     PUSH32(esp, 1); /* 0x3000E214: push 1 */
  14364     PUSH32(esp, ebx); /* 0x3000E216: push ebx */
  14365     ecx = esi; /* 0x3000E217: mov ecx, esi */
  14366     RECOMP_ICALL(0x30001860u); /* 0x3000E219: call 0x30001860 */ /* not lifted */
  14367     RECOMP_FLAGS_IN();
  14368     eax = MEM32(esi + 0x8); /* 0x3000E21E: mov eax, dword ptr [esi + 8] */
  14369     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
  14370     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14371     ebx = ebx + 0x14u; /* 0x3000E221: add ebx, 0x14 */
  14372     _flag_k = FK_ADD;
  14373     PUSH32(esp, ebx); /* 0x3000E224: push ebx */
  14374     PUSH32(esp, eax); /* 0x3000E225: push eax */
  14375     PUSH32(esp, edi); /* 0x3000E226: push edi */
  14376     ecx = esi; /* 0x3000E227: mov ecx, esi */
  14377     RECOMP_ICALL(0x300017D0u); /* 0x3000E229: call 0x300017d0 */ /* not lifted */
  14378     RECOMP_FLAGS_IN();
  14379     ecx = MEM32(esi + 0x8); /* 0x3000E22E: mov ecx, dword ptr [esi + 8] */
  14380     edx = MEM32(esi + 0x4); /* 0x3000E231: mov edx, dword ptr [esi + 4] */
  14381     PUSH32(esp, ecx); /* 0x3000E234: push ecx */
  14382     PUSH32(esp, edx); /* 0x3000E235: push edx */
  14383     ecx = esi; /* 0x3000E236: mov ecx, esi */
  14384     RECOMP_ICALL(0x300017A0u); /* 0x3000E238: call 0x300017a0 */ /* not lifted */
  14385     RECOMP_FLAGS_IN();
  14386     eax = MEM32(esi + 0x4); /* 0x3000E23D: mov eax, dword ptr [esi + 4] */
  14387     PUSH32(esp, eax); /* 0x3000E240: push eax */
  14388     RECOMP_ICALL(0x30018080u); /* 0x3000E241: call 0x30018080 */ /* not lifted */
  14389     RECOMP_FLAGS_IN();
  14390     eax = MEM32(ebp + (-0x8)); /* 0x3000E246: mov eax, dword ptr [ebp - 8] */
  14391     edi = MEM32(ebp + (-0xC)); /* 0x3000E249: mov edi, dword ptr [ebp - 0xc] */
  14392     ecx = eax + eax * 4; /* 0x3000E24C: lea ecx, [eax + eax*4] */
  14393     eax = MEM32(esi + 0x4); /* 0x3000E24F: mov eax, dword ptr [esi + 4] */
  14394     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14395     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14396     esp = esp + 4; /* 0x3000E252: add esp, 4 */
  14397     _flag_k = FK_ADD;
  14398     /* test eax, eax */ /* 0x3000E255: test eax, eax */
  14399     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14400     _cf = 0;
  14401     _flag_k = FK_TEST;
  14402     edx = edi + ecx * 4; /* 0x3000E257: lea edx, [edi + ecx*4] */
  14403     MEM32(esi + 0xC) = edx; /* 0x3000E25A: mov dword ptr [esi + 0xc], edx */
  14404     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E277; /* 0x3000E25D: jne 0x3000e277 */
  14405 L_3000E25F:
  14406     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14407     edx = 0; /* 0x3000E25F: xor edx, edx */
  14408     _cf = 0;
  14409     _flag_k = FK_TEST;
  14410     ecx = edx + edx * 4 + 0x5; /* 0x3000E261: lea ecx, [edx + edx*4 + 5] */
  14411     edx = edi + ecx * 4; /* 0x3000E265: lea edx, [edi + ecx*4] */
  14412     MEM32(esi + 0x4) = edi; /* 0x3000E268: mov dword ptr [esi + 4], edi */
  14413     edi = POP32_VAL(esp); /* 0x3000E26B: pop edi */
  14414     MEM32(esi + 0x8) = edx; /* 0x3000E26C: mov dword ptr [esi + 8], edx */
  14415     esi = POP32_VAL(esp); /* 0x3000E26F: pop esi */
  14416     ebx = POP32_VAL(esp); /* 0x3000E270: pop ebx */
  14417     esp = ebp; /* 0x3000E271: mov esp, ebp */
  14418     ebp = POP32_VAL(esp); /* 0x3000E273: pop ebp */
  14419     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E274: ret 4 */
  14420 L_3000E277:
  14421     ecx = MEM32(esi + 0x8); /* 0x3000E277: mov ecx, dword ptr [esi + 8] */
  14422     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  14423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14424     ecx = ecx - eax; /* 0x3000E27A: sub ecx, eax */
  14425     _flag_k = FK_CMP;
  14426     eax = 0x66666667u; /* 0x3000E27C: mov eax, 0x66666667 */
  14427     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E281: imul ecx */
  14428       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14429       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14430     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E283: sar edx, 3 */
  14431     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14432     edx = (uint32_t)((int32_t)edx >> 3u);
  14433     eax = edx; /* 0x3000E286: mov eax, edx */
  14434     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E288: shr eax, 0x1f */
  14435     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14436     eax = eax >> 31u; /* 0x3000E288: shr eax, 0x1f */
  14437     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  14438     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14439     edx = edx + eax; /* 0x3000E28B: add edx, eax */
  14440     _flag_k = FK_ADD;
  14441     ecx = edx + edx * 4 + 0x5; /* 0x3000E28D: lea ecx, [edx + edx*4 + 5] */
  14442     edx = edi + ecx * 4; /* 0x3000E291: lea edx, [edi + ecx*4] */
  14443     MEM32(esi + 0x4) = edi; /* 0x3000E294: mov dword ptr [esi + 4], edi */
  14444     edi = POP32_VAL(esp); /* 0x3000E297: pop edi */
  14445     MEM32(esi + 0x8) = edx; /* 0x3000E298: mov dword ptr [esi + 8], edx */
  14446     esi = POP32_VAL(esp); /* 0x3000E29B: pop esi */
  14447     ebx = POP32_VAL(esp); /* 0x3000E29C: pop ebx */
  14448     esp = ebp; /* 0x3000E29D: mov esp, ebp */
  14449     ebp = POP32_VAL(esp); /* 0x3000E29F: pop ebp */
  14450     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E2A0: ret 4 */
  14451 L_3000E2A3:
  14452     edx = ecx; /* 0x3000E2A3: mov edx, ecx */
  14453     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  14454     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14455     edx = edx - edi; /* 0x3000E2A5: sub edx, edi */
  14456     _flag_k = FK_CMP;
  14457     eax = 0x66666667u; /* 0x3000E2A7: mov eax, 0x66666667 */
  14458     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E2AC: imul edx */
  14459       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14460       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14461     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E2AE: sar edx, 3 */
  14462     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14463     edx = (uint32_t)((int32_t)edx >> 3u);
  14464     eax = edx; /* 0x3000E2B1: mov eax, edx */
  14465     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E2B3: shr eax, 0x1f */
  14466     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14467     eax = eax >> 31u; /* 0x3000E2B3: shr eax, 0x1f */
  14468     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  14469     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14470     edx = edx + eax; /* 0x3000E2B6: add edx, eax */
  14471     _flag_k = FK_ADD;
  14472     /* cmp edx, 1 */ /* 0x3000E2B8: cmp edx, 1 */
  14473     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  14474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14475     _flag_k = FK_CMP;
  14476     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E319; /* 0x3000E2BB: jae 0x3000e319 */
  14477 L_3000E2BD:
  14478     edx = edi + 0x14; /* 0x3000E2BD: lea edx, [edi + 0x14] */
  14479     PUSH32(esp, edx); /* 0x3000E2C0: push edx */
  14480     PUSH32(esp, ecx); /* 0x3000E2C1: push ecx */
  14481     PUSH32(esp, edi); /* 0x3000E2C2: push edi */
  14482     ecx = esi; /* 0x3000E2C3: mov ecx, esi */
  14483     RECOMP_ICALL(0x300017D0u); /* 0x3000E2C5: call 0x300017d0 */ /* not lifted */
  14484     RECOMP_FLAGS_IN();
  14485     ebx = MEM32(esi + 0x8); /* 0x3000E2CA: mov ebx, dword ptr [esi + 8] */
  14486     eax = MEM32(ebp + 0x8); /* 0x3000E2CD: mov eax, dword ptr [ebp + 8] */
  14487     PUSH32(esp, eax); /* 0x3000E2D0: push eax */
  14488     ecx = ebx; /* 0x3000E2D1: mov ecx, ebx */
  14489     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  14490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14491     ecx = ecx - edi; /* 0x3000E2D3: sub ecx, edi */
  14492     _flag_k = FK_CMP;
  14493     eax = 0x66666667u; /* 0x3000E2D5: mov eax, 0x66666667 */
  14494     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E2DA: imul ecx */
  14495       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14496       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14497     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E2DC: sar edx, 3 */
  14498     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14499     edx = (uint32_t)((int32_t)edx >> 3u);
  14500     ecx = edx; /* 0x3000E2DF: mov ecx, edx */
  14501     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E2E1: shr ecx, 0x1f */
  14502     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14503     ecx = ecx >> 31u; /* 0x3000E2E1: shr ecx, 0x1f */
  14504     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  14505     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14506     edx = edx + ecx; /* 0x3000E2E4: add edx, ecx */
  14507     _flag_k = FK_ADD;
  14508     eax = 1; /* 0x3000E2E6: mov eax, 1 */
  14509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  14510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14511     eax = eax - edx; /* 0x3000E2EB: sub eax, edx */
  14512     _flag_k = FK_CMP;
  14513     PUSH32(esp, eax); /* 0x3000E2ED: push eax */
  14514     PUSH32(esp, ebx); /* 0x3000E2EE: push ebx */
  14515     ecx = esi; /* 0x3000E2EF: mov ecx, esi */
  14516     RECOMP_ICALL(0x30001860u); /* 0x3000E2F1: call 0x30001860 */ /* not lifted */
  14517     RECOMP_FLAGS_IN();
  14518     ecx = MEM32(ebp + 0x8); /* 0x3000E2F6: mov ecx, dword ptr [ebp + 8] */
  14519     edx = MEM32(esi + 0x8); /* 0x3000E2F9: mov edx, dword ptr [esi + 8] */
  14520     PUSH32(esp, ecx); /* 0x3000E2FC: push ecx */
  14521     PUSH32(esp, edx); /* 0x3000E2FD: push edx */
  14522     PUSH32(esp, edi); /* 0x3000E2FE: push edi */
  14523     RECOMP_ICALL(0x30001DC0u); /* 0x3000E2FF: call 0x30001dc0 */ /* not lifted */
  14524     RECOMP_FLAGS_IN();
  14525     eax = MEM32(esi + 0x8); /* 0x3000E304: mov eax, dword ptr [esi + 8] */
  14526     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  14527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14528     esp = esp + 0xCu; /* 0x3000E307: add esp, 0xc */
  14529     _flag_k = FK_ADD;
  14530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  14531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14532     eax = eax + 0x14u; /* 0x3000E30A: add eax, 0x14 */
  14533     _flag_k = FK_ADD;
  14534     edi = POP32_VAL(esp); /* 0x3000E30D: pop edi */
  14535     MEM32(esi + 0x8) = eax; /* 0x3000E30E: mov dword ptr [esi + 8], eax */
  14536     esi = POP32_VAL(esp); /* 0x3000E311: pop esi */
  14537     ebx = POP32_VAL(esp); /* 0x3000E312: pop ebx */
  14538     esp = ebp; /* 0x3000E313: mov esp, ebp */
  14539     ebp = POP32_VAL(esp); /* 0x3000E315: pop ebp */
  14540     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E316: ret 4 */
  14541 L_3000E319:
  14542     PUSH32(esp, ecx); /* 0x3000E319: push ecx */
  14543     PUSH32(esp, ecx); /* 0x3000E31A: push ecx */
  14544     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
  14545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14546     ecx = ecx + 0xFFFFFFECu; /* 0x3000E31B: add ecx, -0x14 */
  14547     _flag_k = FK_ADD;
  14548     PUSH32(esp, ecx); /* 0x3000E31E: push ecx */
  14549     ecx = esi; /* 0x3000E31F: mov ecx, esi */
  14550     RECOMP_ICALL(0x300017D0u); /* 0x3000E321: call 0x300017d0 */ /* not lifted */
  14551     RECOMP_FLAGS_IN();
  14552     eax = MEM32(esi + 0x8); /* 0x3000E326: mov eax, dword ptr [esi + 8] */
  14553     PUSH32(esp, eax); /* 0x3000E329: push eax */
  14554     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
  14555     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14556     eax = eax + 0xFFFFFFECu; /* 0x3000E32A: add eax, -0x14 */
  14557     _flag_k = FK_ADD;
  14558     PUSH32(esp, eax); /* 0x3000E32D: push eax */
  14559     PUSH32(esp, edi); /* 0x3000E32E: push edi */
  14560     RECOMP_ICALL(0x30001D80u); /* 0x3000E32F: call 0x30001d80 */ /* not lifted */
  14561     RECOMP_FLAGS_IN();
  14562     eax = MEM32(ebp + 0x8); /* 0x3000E334: mov eax, dword ptr [ebp + 8] */
  14563     PUSH32(esp, eax); /* 0x3000E337: push eax */
  14564     ecx = edi + 0x14; /* 0x3000E338: lea ecx, [edi + 0x14] */
  14565     PUSH32(esp, ecx); /* 0x3000E33B: push ecx */
  14566     PUSH32(esp, edi); /* 0x3000E33C: push edi */
  14567     RECOMP_ICALL(0x30001DC0u); /* 0x3000E33D: call 0x30001dc0 */ /* not lifted */
  14568     RECOMP_FLAGS_IN();
  14569     eax = MEM32(esi + 0x8); /* 0x3000E342: mov eax, dword ptr [esi + 8] */
  14570     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  14571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14572     esp = esp + 0x18u; /* 0x3000E345: add esp, 0x18 */
  14573     _flag_k = FK_ADD;
  14574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  14575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14576     eax = eax + 0x14u; /* 0x3000E348: add eax, 0x14 */
  14577     _flag_k = FK_ADD;
  14578     edi = POP32_VAL(esp); /* 0x3000E34B: pop edi */
  14579     MEM32(esi + 0x8) = eax; /* 0x3000E34C: mov dword ptr [esi + 8], eax */
  14580     esi = POP32_VAL(esp); /* 0x3000E34F: pop esi */
  14581     ebx = POP32_VAL(esp); /* 0x3000E350: pop ebx */
  14582     esp = ebp; /* 0x3000E351: mov esp, ebp */
  14583     ebp = POP32_VAL(esp); /* 0x3000E353: pop ebp */
  14584     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E354: ret 4 */
  14585     RECOMP_REGS_OUT();
  14586 }
  14587 
  14588 void sub_3000E360(void) {
  14589     int _fpu_cmp = 0;
  14590     uint32_t _cf = 0;
  14591     int _df = 1;
  14592     uint32_t _flag_k = FK_NONE;
  14593     uint32_t _flag_a = 0, _flag_b = 0;
  14594     uint32_t _itail_tgt = 0;
  14595     RECOMP_REGS_LOCALS
  14596     RECOMP_ENTER(0x3000E360u);
  14597 
  14598 L_3000E360:
  14599     PUSH32(esp, ebp); /* 0x3000E360: push ebp */
  14600     ebp = esp; /* 0x3000E361: mov ebp, esp */
  14601     PUSH32(esp, ebx); /* 0x3000E363: push ebx */
  14602     PUSH32(esp, esi); /* 0x3000E364: push esi */
  14603     PUSH32(esp, edi); /* 0x3000E365: push edi */
  14604     edi = ecx; /* 0x3000E366: mov edi, ecx */
  14605     eax = MEM32(edi + 0x4); /* 0x3000E368: mov eax, dword ptr [edi + 4] */
  14606     /* test eax, eax */ /* 0x3000E36B: test eax, eax */
  14607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14608     _cf = 0;
  14609     _flag_k = FK_TEST;
  14610     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E373; /* 0x3000E36D: jne 0x3000e373 */
  14611 L_3000E36F:
  14612     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14613     edx = 0; /* 0x3000E36F: xor edx, edx */
  14614     _cf = 0;
  14615     _flag_k = FK_TEST;
  14616     goto L_3000E389; /* 0x3000E371: jmp 0x3000e389 */
  14617 L_3000E373:
  14618     ecx = MEM32(edi + 0x8); /* 0x3000E373: mov ecx, dword ptr [edi + 8] */
  14619     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  14620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14621     ecx = ecx - eax; /* 0x3000E376: sub ecx, eax */
  14622     _flag_k = FK_CMP;
  14623     eax = 0x66666667u; /* 0x3000E378: mov eax, 0x66666667 */
  14624     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E37D: imul ecx */
  14625       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14626       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14627     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E37F: sar edx, 3 */
  14628     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14629     edx = (uint32_t)((int32_t)edx >> 3u);
  14630     eax = edx; /* 0x3000E382: mov eax, edx */
  14631     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E384: shr eax, 0x1f */
  14632     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14633     eax = eax >> 31u; /* 0x3000E384: shr eax, 0x1f */
  14634     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  14635     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14636     edx = edx + eax; /* 0x3000E387: add edx, eax */
  14637     _flag_k = FK_ADD;
  14638 L_3000E389:
  14639     ebx = MEM32(ebp + 0x8); /* 0x3000E389: mov ebx, dword ptr [ebp + 8] */
  14640     PUSH32(esp, edx); /* 0x3000E38C: push edx */
  14641     ecx = ebx; /* 0x3000E38D: mov ecx, ebx */
  14642     RECOMP_ICALL(MEM32(0x30019078)); /* 0x3000E38F: call dword ptr [0x30019078] */
  14643     RECOMP_FLAGS_IN();
  14644     esi = MEM32(edi + 0x4); /* 0x3000E395: mov esi, dword ptr [edi + 4] */
  14645     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3000E398: cmp esi, dword ptr [edi + 8] */
  14646     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14648     _flag_k = FK_CMP;
  14649     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E3AF; /* 0x3000E39B: je 0x3000e3af */
  14650 L_3000E39D:
  14651     PUSH32(esp, ebx); /* 0x3000E39D: push ebx */
  14652     ecx = esi; /* 0x3000E39E: mov ecx, esi */
  14653     RECOMP_ICALL(0x30008AE0u); /* 0x3000E3A0: call 0x30008ae0 */ /* not lifted */
  14654     RECOMP_FLAGS_IN();
  14655     eax = MEM32(edi + 0x8); /* 0x3000E3A5: mov eax, dword ptr [edi + 8] */
  14656     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  14657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14658     esi = esi + 0x14u; /* 0x3000E3A8: add esi, 0x14 */
  14659     _flag_k = FK_ADD;
  14660     /* cmp esi, eax */ /* 0x3000E3AB: cmp esi, eax */
  14661     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  14662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14663     _flag_k = FK_CMP;
  14664     RECOMP_BACKEDGE();
  14665     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E39D; /* 0x3000E3AD: jne 0x3000e39d */
  14666 L_3000E3AF:
  14667     edi = POP32_VAL(esp); /* 0x3000E3AF: pop edi */
  14668     esi = POP32_VAL(esp); /* 0x3000E3B0: pop esi */
  14669     ebx = POP32_VAL(esp); /* 0x3000E3B1: pop ebx */
  14670     ebp = POP32_VAL(esp); /* 0x3000E3B2: pop ebp */
  14671     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E3B3: ret 4 */
  14672     RECOMP_REGS_OUT();
  14673 }
  14674 
  14675 void sub_3000E3C0(void) {
  14676     int _fpu_cmp = 0;
  14677     uint32_t _cf = 0;
  14678     int _df = 1;
  14679     uint32_t _flag_k = FK_NONE;
  14680     uint32_t _flag_a = 0, _flag_b = 0;
  14681     uint32_t _itail_tgt = 0;
  14682     RECOMP_REGS_LOCALS
  14683     RECOMP_ENTER(0x3000E3C0u);
  14684 
  14685 L_3000E3C0:
  14686     PUSH32(esp, ebp); /* 0x3000E3C0: push ebp */
  14687     ebp = esp; /* 0x3000E3C1: mov ebp, esp */
  14688     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000E3C3: push -1 */
  14689     PUSH32(esp, 0x300189A8u); /* 0x3000E3C5: push 0x300189a8 */
  14690     eax = MEM32(FS_BASE + (0)); /* 0x3000E3CA: mov eax, dword ptr fs:[0] */
  14691     PUSH32(esp, eax); /* 0x3000E3D0: push eax */
  14692     MEM32(FS_BASE + (0)) = esp; /* 0x3000E3D1: mov dword ptr fs:[0], esp */
  14693     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
  14694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14695     esp = esp - 0x24u; /* 0x3000E3D8: sub esp, 0x24 */
  14696     _flag_k = FK_CMP;
  14697     PUSH32(esp, ebx); /* 0x3000E3DB: push ebx */
  14698     PUSH32(esp, esi); /* 0x3000E3DC: push esi */
  14699     PUSH32(esp, edi); /* 0x3000E3DD: push edi */
  14700     esi = ecx; /* 0x3000E3DE: mov esi, ecx */
  14701     RECOMP_ICALL(0x3000A880u); /* 0x3000E3E0: call 0x3000a880 */ /* not lifted */
  14702     RECOMP_FLAGS_IN();
  14703     ebx = MEM32(esi + 0x8); /* 0x3000E3E5: mov ebx, dword ptr [esi + 8] */
  14704     /* cmp ebx, ebx */ /* 0x3000E3E8: cmp ebx, ebx */
  14705     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  14706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14707     _flag_k = FK_CMP;
  14708     edi = MEM32(esi + 0x4); /* 0x3000E3EA: mov edi, dword ptr [esi + 4] */
  14709     MEM32(ebp + (-0x10)) = ebx; /* 0x3000E3ED: mov dword ptr [ebp - 0x10], ebx */
  14710     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E40D; /* 0x3000E3F0: je 0x3000e40d */
  14711 L_3000E3F2:
  14712     eax = MEM32(ebp + (-0x10)); /* 0x3000E3F2: mov eax, dword ptr [ebp - 0x10] */
  14713     PUSH32(esp, eax); /* 0x3000E3F5: push eax */
  14714     ecx = edi; /* 0x3000E3F6: mov ecx, edi */
  14715     RECOMP_ICALL(0x300080D0u); /* 0x3000E3F8: call 0x300080d0 */ /* not lifted */
  14716     RECOMP_FLAGS_IN();
  14717     eax = MEM32(ebp + (-0x10)); /* 0x3000E3FD: mov eax, dword ptr [ebp - 0x10] */
  14718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  14719     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14720     eax = eax + 0x14u; /* 0x3000E400: add eax, 0x14 */
  14721     _flag_k = FK_ADD;
  14722     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  14723     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14724     edi = edi + 0x14u; /* 0x3000E403: add edi, 0x14 */
  14725     _flag_k = FK_ADD;
  14726     /* cmp eax, ebx */ /* 0x3000E406: cmp eax, ebx */
  14727     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  14728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14729     _flag_k = FK_CMP;
  14730     MEM32(ebp + (-0x10)) = eax; /* 0x3000E408: mov dword ptr [ebp - 0x10], eax */
  14731     RECOMP_BACKEDGE();
  14732     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E3F2; /* 0x3000E40B: jne 0x3000e3f2 */
  14733 L_3000E40D:
  14734     eax = MEM32(esi + 0x8); /* 0x3000E40D: mov eax, dword ptr [esi + 8] */
  14735     /* cmp edi, eax */ /* 0x3000E410: cmp edi, eax */
  14736     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  14737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14738     _flag_k = FK_CMP;
  14739     MEM32(ebp + (-0x10)) = eax; /* 0x3000E412: mov dword ptr [ebp - 0x10], eax */
  14740     ebx = edi; /* 0x3000E415: mov ebx, edi */
  14741     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E42A; /* 0x3000E417: je 0x3000e42a */
  14742 L_3000E419:
  14743     ecx = ebx; /* 0x3000E419: mov ecx, ebx */
  14744     RECOMP_ICALL(0x30007AB0u); /* 0x3000E41B: call 0x30007ab0 */ /* not lifted */
  14745     RECOMP_FLAGS_IN();
  14746     eax = MEM32(ebp + (-0x10)); /* 0x3000E420: mov eax, dword ptr [ebp - 0x10] */
  14747     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
  14748     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14749     ebx = ebx + 0x14u; /* 0x3000E423: add ebx, 0x14 */
  14750     _flag_k = FK_ADD;
  14751     /* cmp ebx, eax */ /* 0x3000E426: cmp ebx, eax */
  14752     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  14753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14754     _flag_k = FK_CMP;
  14755     RECOMP_BACKEDGE();
  14756     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E419; /* 0x3000E428: jne 0x3000e419 */
  14757 L_3000E42A:
  14758     ecx = ebp + (-0x14); /* 0x3000E42A: lea ecx, [ebp - 0x14] */
  14759     PUSH32(esp, ecx); /* 0x3000E42D: push ecx */
  14760     ecx = MEM32(ebp + 0x8); /* 0x3000E42E: mov ecx, dword ptr [ebp + 8] */
  14761     MEM32(esi + 0x8) = edi; /* 0x3000E431: mov dword ptr [esi + 8], edi */
  14762     RECOMP_ICALL(MEM32(0x30019098)); /* 0x3000E434: call dword ptr [0x30019098] */
  14763     RECOMP_FLAGS_IN();
  14764     eax = MEM32(ebp + (-0x14)); /* 0x3000E43A: mov eax, dword ptr [ebp - 0x14] */
  14765     /* test eax, eax */ /* 0x3000E43D: test eax, eax */
  14766     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14767     _cf = 0;
  14768     _flag_k = FK_TEST;
  14769     MEM32(ebp + (-0x10)) = 0; /* 0x3000E43F: mov dword ptr [ebp - 0x10], 0 */
  14770     if (TEST_LE(_flag_a, _flag_b)) goto L_3000E5F2; /* 0x3000E446: jle 0x3000e5f2 */
  14771 L_3000E44C:
  14772     edx = MEM32(ebp + 0x8); /* 0x3000E44C: mov edx, dword ptr [ebp + 8] */
  14773     PUSH32(esp, edx); /* 0x3000E44F: push edx */
  14774     ecx = ebp + (-0x30); /* 0x3000E450: lea ecx, [ebp - 0x30] */
  14775     RECOMP_ICALL(0x30007A80u); /* 0x3000E453: call 0x30007a80 */ /* not lifted */
  14776     RECOMP_FLAGS_IN();
  14777     ecx = MEM32(esi + 0x8); /* 0x3000E458: mov ecx, dword ptr [esi + 8] */
  14778     edx = MEM32(esi + 0xC); /* 0x3000E45B: mov edx, dword ptr [esi + 0xc] */
  14779     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  14780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14781     edx = edx - ecx; /* 0x3000E45E: sub edx, ecx */
  14782     _flag_k = FK_CMP;
  14783     eax = 0x66666667u; /* 0x3000E460: mov eax, 0x66666667 */
  14784     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E465: imul edx */
  14785       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14786       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14787     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E467: sar edx, 3 */
  14788     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14789     edx = (uint32_t)((int32_t)edx >> 3u);
  14790     eax = edx; /* 0x3000E46A: mov eax, edx */
  14791     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E46C: shr eax, 0x1f */
  14792     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14793     eax = eax >> 31u; /* 0x3000E46C: shr eax, 0x1f */
  14794     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  14795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14796     edx = edx + eax; /* 0x3000E46F: add edx, eax */
  14797     _flag_k = FK_ADD;
  14798     /* cmp edx, 1 */ /* 0x3000E471: cmp edx, 1 */
  14799     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  14800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14801     _flag_k = FK_CMP;
  14802     MEM32(ebp + (-0x4)) = 0; /* 0x3000E474: mov dword ptr [ebp - 4], 0 */
  14803     edi = ecx; /* 0x3000E47B: mov edi, ecx */
  14804     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E53B; /* 0x3000E47D: jae 0x3000e53b */
  14805 L_3000E483:
  14806     eax = MEM32(esi + 0x4); /* 0x3000E483: mov eax, dword ptr [esi + 4] */
  14807     /* test eax, eax */ /* 0x3000E486: test eax, eax */
  14808     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14809     _cf = 0;
  14810     _flag_k = FK_TEST;
  14811     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E4A4; /* 0x3000E488: je 0x3000e4a4 */
  14812 L_3000E48A:
  14813     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  14814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14815     ecx = ecx - eax; /* 0x3000E48A: sub ecx, eax */
  14816     _flag_k = FK_CMP;
  14817     eax = 0x66666667u; /* 0x3000E48C: mov eax, 0x66666667 */
  14818     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E491: imul ecx */
  14819       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14820       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14821     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E493: sar edx, 3 */
  14822     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14823     edx = (uint32_t)((int32_t)edx >> 3u);
  14824     ecx = edx; /* 0x3000E496: mov ecx, edx */
  14825     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E498: shr ecx, 0x1f */
  14826     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14827     ecx = ecx >> 31u; /* 0x3000E498: shr ecx, 0x1f */
  14828     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  14829     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14830     edx = edx + ecx; /* 0x3000E49B: add edx, ecx */
  14831     _flag_k = FK_ADD;
  14832     /* cmp edx, 1 */ /* 0x3000E49D: cmp edx, 1 */
  14833     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  14834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14835     _flag_k = FK_CMP;
  14836     ebx = edx; /* 0x3000E4A0: mov ebx, edx */
  14837     if (CMP_A(_flag_a, _flag_b)) goto L_3000E4A9; /* 0x3000E4A2: ja 0x3000e4a9 */
  14838 L_3000E4A4:
  14839     ebx = 1; /* 0x3000E4A4: mov ebx, 1 */
  14840 L_3000E4A9:
  14841     ecx = esi; /* 0x3000E4A9: mov ecx, esi */
  14842     RECOMP_ICALL(0x30001CB0u); /* 0x3000E4AB: call 0x30001cb0 */ /* not lifted */
  14843     RECOMP_FLAGS_IN();
  14844     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  14845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14846     eax = eax + ebx; /* 0x3000E4B0: add eax, ebx */
  14847     _flag_k = FK_ADD;
  14848     MEM32(ebp + (-0x1C)) = eax; /* 0x3000E4B2: mov dword ptr [ebp - 0x1c], eax */
  14849     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3000E4B9; /* 0x3000E4B5: jns 0x3000e4b9 */
  14850 L_3000E4B7:
  14851     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14852     eax = 0; /* 0x3000E4B7: xor eax, eax */
  14853     _cf = 0;
  14854     _flag_k = FK_TEST;
  14855 L_3000E4B9:
  14856     edx = eax + eax * 4; /* 0x3000E4B9: lea edx, [eax + eax*4] */
  14857     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3000E4BC: shl edx, 2 */
  14858     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14859     edx = edx << 2u; /* 0x3000E4BC: shl edx, 2 */
  14860     PUSH32(esp, edx); /* 0x3000E4BF: push edx */
  14861     RECOMP_ICALL(0x300180A8u); /* 0x3000E4C0: call 0x300180a8 */ /* not lifted */
  14862     RECOMP_FLAGS_IN();
  14863     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14865     esp = esp + 4; /* 0x3000E4C5: add esp, 4 */
  14866     _flag_k = FK_ADD;
  14867     ebx = eax; /* 0x3000E4C8: mov ebx, eax */
  14868     eax = MEM32(esi + 0x4); /* 0x3000E4CA: mov eax, dword ptr [esi + 4] */
  14869     PUSH32(esp, ebx); /* 0x3000E4CD: push ebx */
  14870     PUSH32(esp, edi); /* 0x3000E4CE: push edi */
  14871     PUSH32(esp, eax); /* 0x3000E4CF: push eax */
  14872     ecx = esi; /* 0x3000E4D0: mov ecx, esi */
  14873     RECOMP_ICALL(0x300017D0u); /* 0x3000E4D2: call 0x300017d0 */ /* not lifted */
  14874     RECOMP_FLAGS_IN();
  14875     ecx = ebp + (-0x30); /* 0x3000E4D7: lea ecx, [ebp - 0x30] */
  14876     PUSH32(esp, ecx); /* 0x3000E4DA: push ecx */
  14877     PUSH32(esp, 1); /* 0x3000E4DB: push 1 */
  14878     PUSH32(esp, eax); /* 0x3000E4DD: push eax */
  14879     ecx = esi; /* 0x3000E4DE: mov ecx, esi */
  14880     MEM32(ebp + (-0x18)) = eax; /* 0x3000E4E0: mov dword ptr [ebp - 0x18], eax */
  14881     RECOMP_ICALL(0x30001860u); /* 0x3000E4E3: call 0x30001860 */ /* not lifted */
  14882     RECOMP_FLAGS_IN();
  14883     edx = MEM32(ebp + (-0x18)); /* 0x3000E4E8: mov edx, dword ptr [ebp - 0x18] */
  14884     eax = MEM32(esi + 0x8); /* 0x3000E4EB: mov eax, dword ptr [esi + 8] */
  14885     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
  14886     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14887     edx = edx + 0x14u; /* 0x3000E4EE: add edx, 0x14 */
  14888     _flag_k = FK_ADD;
  14889     PUSH32(esp, edx); /* 0x3000E4F1: push edx */
  14890     PUSH32(esp, eax); /* 0x3000E4F2: push eax */
  14891     PUSH32(esp, edi); /* 0x3000E4F3: push edi */
  14892     ecx = esi; /* 0x3000E4F4: mov ecx, esi */
  14893     RECOMP_ICALL(0x300017D0u); /* 0x3000E4F6: call 0x300017d0 */ /* not lifted */
  14894     RECOMP_FLAGS_IN();
  14895     ecx = MEM32(esi + 0x8); /* 0x3000E4FB: mov ecx, dword ptr [esi + 8] */
  14896     edx = MEM32(esi + 0x4); /* 0x3000E4FE: mov edx, dword ptr [esi + 4] */
  14897     PUSH32(esp, ecx); /* 0x3000E501: push ecx */
  14898     PUSH32(esp, edx); /* 0x3000E502: push edx */
  14899     ecx = esi; /* 0x3000E503: mov ecx, esi */
  14900     RECOMP_ICALL(0x300017A0u); /* 0x3000E505: call 0x300017a0 */ /* not lifted */
  14901     RECOMP_FLAGS_IN();
  14902     eax = MEM32(esi + 0x4); /* 0x3000E50A: mov eax, dword ptr [esi + 4] */
  14903     PUSH32(esp, eax); /* 0x3000E50D: push eax */
  14904     RECOMP_ICALL(0x30018080u); /* 0x3000E50E: call 0x30018080 */ /* not lifted */
  14905     RECOMP_FLAGS_IN();
  14906     eax = MEM32(ebp + (-0x1C)); /* 0x3000E513: mov eax, dword ptr [ebp - 0x1c] */
  14907     eax = eax + eax * 4; /* 0x3000E516: lea eax, [eax + eax*4] */
  14908     ecx = ebx + eax * 4; /* 0x3000E519: lea ecx, [ebx + eax*4] */
  14909     MEM32(esi + 0xC) = ecx; /* 0x3000E51C: mov dword ptr [esi + 0xc], ecx */
  14910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14912     esp = esp + 4; /* 0x3000E51F: add esp, 4 */
  14913     _flag_k = FK_ADD;
  14914     ecx = esi; /* 0x3000E522: mov ecx, esi */
  14915     RECOMP_ICALL(0x30001CB0u); /* 0x3000E524: call 0x30001cb0 */ /* not lifted */
  14916     RECOMP_FLAGS_IN();
  14917     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  14918     eax = eax + 1; /* 0x3000E529: inc eax */
  14919     _flag_k = FK_INC;
  14920     edx = eax + eax * 4; /* 0x3000E52A: lea edx, [eax + eax*4] */
  14921     eax = ebx + edx * 4; /* 0x3000E52D: lea eax, [ebx + edx*4] */
  14922     MEM32(esi + 0x8) = eax; /* 0x3000E530: mov dword ptr [esi + 8], eax */
  14923     MEM32(esi + 0x4) = ebx; /* 0x3000E533: mov dword ptr [esi + 4], ebx */
  14924     goto L_3000E5D1; /* 0x3000E536: jmp 0x3000e5d1 */
  14925 L_3000E53B:
  14926     edx = ecx; /* 0x3000E53B: mov edx, ecx */
  14927     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  14928     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14929     edx = edx - edi; /* 0x3000E53D: sub edx, edi */
  14930     _flag_k = FK_CMP;
  14931     eax = 0x66666667u; /* 0x3000E53F: mov eax, 0x66666667 */
  14932     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E544: imul edx */
  14933       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14934       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14935     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E546: sar edx, 3 */
  14936     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14937     edx = (uint32_t)((int32_t)edx >> 3u);
  14938     eax = edx; /* 0x3000E549: mov eax, edx */
  14939     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E54B: shr eax, 0x1f */
  14940     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14941     eax = eax >> 31u; /* 0x3000E54B: shr eax, 0x1f */
  14942     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  14943     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14944     edx = edx + eax; /* 0x3000E54E: add edx, eax */
  14945     _flag_k = FK_ADD;
  14946     /* cmp edx, 1 */ /* 0x3000E550: cmp edx, 1 */
  14947     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  14948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14949     _flag_k = FK_CMP;
  14950     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E5A1; /* 0x3000E553: jae 0x3000e5a1 */
  14951 L_3000E555:
  14952     edx = edi + 0x14; /* 0x3000E555: lea edx, [edi + 0x14] */
  14953     PUSH32(esp, edx); /* 0x3000E558: push edx */
  14954     PUSH32(esp, ecx); /* 0x3000E559: push ecx */
  14955     PUSH32(esp, edi); /* 0x3000E55A: push edi */
  14956     ecx = esi; /* 0x3000E55B: mov ecx, esi */
  14957     RECOMP_ICALL(0x300017D0u); /* 0x3000E55D: call 0x300017d0 */ /* not lifted */
  14958     RECOMP_FLAGS_IN();
  14959     ebx = MEM32(esi + 0x8); /* 0x3000E562: mov ebx, dword ptr [esi + 8] */
  14960     eax = ebp + (-0x30); /* 0x3000E565: lea eax, [ebp - 0x30] */
  14961     PUSH32(esp, eax); /* 0x3000E568: push eax */
  14962     ecx = ebx; /* 0x3000E569: mov ecx, ebx */
  14963     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  14964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14965     ecx = ecx - edi; /* 0x3000E56B: sub ecx, edi */
  14966     _flag_k = FK_CMP;
  14967     eax = 0x66666667u; /* 0x3000E56D: mov eax, 0x66666667 */
  14968     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E572: imul ecx */
  14969       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  14970       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  14971     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E574: sar edx, 3 */
  14972     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14973     edx = (uint32_t)((int32_t)edx >> 3u);
  14974     ecx = edx; /* 0x3000E577: mov ecx, edx */
  14975     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E579: shr ecx, 0x1f */
  14976     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14977     ecx = ecx >> 31u; /* 0x3000E579: shr ecx, 0x1f */
  14978     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  14979     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14980     edx = edx + ecx; /* 0x3000E57C: add edx, ecx */
  14981     _flag_k = FK_ADD;
  14982     eax = 1; /* 0x3000E57E: mov eax, 1 */
  14983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  14984     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14985     eax = eax - edx; /* 0x3000E583: sub eax, edx */
  14986     _flag_k = FK_CMP;
  14987     PUSH32(esp, eax); /* 0x3000E585: push eax */
  14988     PUSH32(esp, ebx); /* 0x3000E586: push ebx */
  14989     ecx = esi; /* 0x3000E587: mov ecx, esi */
  14990     RECOMP_ICALL(0x30001860u); /* 0x3000E589: call 0x30001860 */ /* not lifted */
  14991     RECOMP_FLAGS_IN();
  14992     edx = MEM32(esi + 0x8); /* 0x3000E58E: mov edx, dword ptr [esi + 8] */
  14993     ecx = ebp + (-0x30); /* 0x3000E591: lea ecx, [ebp - 0x30] */
  14994     PUSH32(esp, ecx); /* 0x3000E594: push ecx */
  14995     PUSH32(esp, edx); /* 0x3000E595: push edx */
  14996     PUSH32(esp, edi); /* 0x3000E596: push edi */
  14997     RECOMP_ICALL(0x30001DC0u); /* 0x3000E597: call 0x30001dc0 */ /* not lifted */
  14998     RECOMP_FLAGS_IN();
  14999     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  15000     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15001     esp = esp + 0xCu; /* 0x3000E59C: add esp, 0xc */
  15002     _flag_k = FK_ADD;
  15003     goto L_3000E5CD; /* 0x3000E59F: jmp 0x3000e5cd */
  15004 L_3000E5A1:
  15005     PUSH32(esp, ecx); /* 0x3000E5A1: push ecx */
  15006     PUSH32(esp, ecx); /* 0x3000E5A2: push ecx */
  15007     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
  15008     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15009     ecx = ecx + 0xFFFFFFECu; /* 0x3000E5A3: add ecx, -0x14 */
  15010     _flag_k = FK_ADD;
  15011     PUSH32(esp, ecx); /* 0x3000E5A6: push ecx */
  15012     ecx = esi; /* 0x3000E5A7: mov ecx, esi */
  15013     RECOMP_ICALL(0x300017D0u); /* 0x3000E5A9: call 0x300017d0 */ /* not lifted */
  15014     RECOMP_FLAGS_IN();
  15015     eax = MEM32(esi + 0x8); /* 0x3000E5AE: mov eax, dword ptr [esi + 8] */
  15016     PUSH32(esp, eax); /* 0x3000E5B1: push eax */
  15017     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
  15018     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15019     eax = eax + 0xFFFFFFECu; /* 0x3000E5B2: add eax, -0x14 */
  15020     _flag_k = FK_ADD;
  15021     PUSH32(esp, eax); /* 0x3000E5B5: push eax */
  15022     PUSH32(esp, edi); /* 0x3000E5B6: push edi */
  15023     RECOMP_ICALL(0x30001D80u); /* 0x3000E5B7: call 0x30001d80 */ /* not lifted */
  15024     RECOMP_FLAGS_IN();
  15025     eax = ebp + (-0x30); /* 0x3000E5BC: lea eax, [ebp - 0x30] */
  15026     PUSH32(esp, eax); /* 0x3000E5BF: push eax */
  15027     ecx = edi + 0x14; /* 0x3000E5C0: lea ecx, [edi + 0x14] */
  15028     PUSH32(esp, ecx); /* 0x3000E5C3: push ecx */
  15029     PUSH32(esp, edi); /* 0x3000E5C4: push edi */
  15030     RECOMP_ICALL(0x30001DC0u); /* 0x3000E5C5: call 0x30001dc0 */ /* not lifted */
  15031     RECOMP_FLAGS_IN();
  15032     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  15033     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15034     esp = esp + 0x18u; /* 0x3000E5CA: add esp, 0x18 */
  15035     _flag_k = FK_ADD;
  15036 L_3000E5CD:
  15037     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u);
  15038     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15039     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3000E5CD: add dword ptr [esi + 8], 0x14 */
  15040     _flag_k = FK_ADD;
  15041 L_3000E5D1:
  15042     ecx = ebp + (-0x30); /* 0x3000E5D1: lea ecx, [ebp - 0x30] */
  15043     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E5D4: mov dword ptr [ebp - 4], 0xffffffff */
  15044     RECOMP_ICALL(0x30007AB0u); /* 0x3000E5DB: call 0x30007ab0 */ /* not lifted */
  15045     RECOMP_FLAGS_IN();
  15046     eax = MEM32(ebp + (-0x10)); /* 0x3000E5E0: mov eax, dword ptr [ebp - 0x10] */
  15047     ecx = MEM32(ebp + (-0x14)); /* 0x3000E5E3: mov ecx, dword ptr [ebp - 0x14] */
  15048     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15049     eax = eax + 1; /* 0x3000E5E6: inc eax */
  15050     _flag_k = FK_INC;
  15051     /* cmp eax, ecx */ /* 0x3000E5E7: cmp eax, ecx */
  15052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15054     _flag_k = FK_CMP;
  15055     MEM32(ebp + (-0x10)) = eax; /* 0x3000E5E9: mov dword ptr [ebp - 0x10], eax */
  15056     RECOMP_BACKEDGE();
  15057     if (CMP_L(_flag_a, _flag_b)) goto L_3000E44C; /* 0x3000E5EC: jl 0x3000e44c */
  15058 L_3000E5F2:
  15059     ecx = MEM32(ebp + (-0xC)); /* 0x3000E5F2: mov ecx, dword ptr [ebp - 0xc] */
  15060     edi = POP32_VAL(esp); /* 0x3000E5F5: pop edi */
  15061     esi = POP32_VAL(esp); /* 0x3000E5F6: pop esi */
  15062     ebx = POP32_VAL(esp); /* 0x3000E5F7: pop ebx */
  15063     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E5F8: mov dword ptr fs:[0], ecx */
  15064     esp = ebp; /* 0x3000E5FF: mov esp, ebp */
  15065     ebp = POP32_VAL(esp); /* 0x3000E601: pop ebp */
  15066     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E602: ret 4 */
  15067     RECOMP_REGS_OUT();
  15068 }
  15069 
  15070 void sub_3000E44C(void) {
  15071     int _fpu_cmp = 0;
  15072     uint32_t _cf = 0;
  15073     int _df = 1;
  15074     uint32_t _flag_k = FK_NONE;
  15075     uint32_t _flag_a = 0, _flag_b = 0;
  15076     uint32_t _itail_tgt = 0;
  15077     RECOMP_REGS_LOCALS
  15078     RECOMP_ENTER(0x3000E44Cu);
  15079 
  15080 L_3000E44C:
  15081     edx = MEM32(ebp + 0x8); /* 0x3000E44C: mov edx, dword ptr [ebp + 8] */
  15082     PUSH32(esp, edx); /* 0x3000E44F: push edx */
  15083     ecx = ebp + (-0x30); /* 0x3000E450: lea ecx, [ebp - 0x30] */
  15084     RECOMP_ICALL(0x30007A80u); /* 0x3000E453: call 0x30007a80 */ /* not lifted */
  15085     RECOMP_FLAGS_IN();
  15086     ecx = MEM32(esi + 0x8); /* 0x3000E458: mov ecx, dword ptr [esi + 8] */
  15087     edx = MEM32(esi + 0xC); /* 0x3000E45B: mov edx, dword ptr [esi + 0xc] */
  15088     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15090     edx = edx - ecx; /* 0x3000E45E: sub edx, ecx */
  15091     _flag_k = FK_CMP;
  15092     eax = 0x66666667u; /* 0x3000E460: mov eax, 0x66666667 */
  15093     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E465: imul edx */
  15094       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15095       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15096     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E467: sar edx, 3 */
  15097     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15098     edx = (uint32_t)((int32_t)edx >> 3u);
  15099     eax = edx; /* 0x3000E46A: mov eax, edx */
  15100     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E46C: shr eax, 0x1f */
  15101     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15102     eax = eax >> 31u; /* 0x3000E46C: shr eax, 0x1f */
  15103     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  15104     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15105     edx = edx + eax; /* 0x3000E46F: add edx, eax */
  15106     _flag_k = FK_ADD;
  15107     /* cmp edx, 1 */ /* 0x3000E471: cmp edx, 1 */
  15108     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15110     _flag_k = FK_CMP;
  15111     MEM32(ebp + (-0x4)) = 0; /* 0x3000E474: mov dword ptr [ebp - 4], 0 */
  15112     edi = ecx; /* 0x3000E47B: mov edi, ecx */
  15113     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E53B; /* 0x3000E47D: jae 0x3000e53b */
  15114 L_3000E483:
  15115     eax = MEM32(esi + 0x4); /* 0x3000E483: mov eax, dword ptr [esi + 4] */
  15116     /* test eax, eax */ /* 0x3000E486: test eax, eax */
  15117     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  15118     _cf = 0;
  15119     _flag_k = FK_TEST;
  15120     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E4A4; /* 0x3000E488: je 0x3000e4a4 */
  15121 L_3000E48A:
  15122     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  15123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15124     ecx = ecx - eax; /* 0x3000E48A: sub ecx, eax */
  15125     _flag_k = FK_CMP;
  15126     eax = 0x66666667u; /* 0x3000E48C: mov eax, 0x66666667 */
  15127     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E491: imul ecx */
  15128       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15129       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15130     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E493: sar edx, 3 */
  15131     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15132     edx = (uint32_t)((int32_t)edx >> 3u);
  15133     ecx = edx; /* 0x3000E496: mov ecx, edx */
  15134     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E498: shr ecx, 0x1f */
  15135     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15136     ecx = ecx >> 31u; /* 0x3000E498: shr ecx, 0x1f */
  15137     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15139     edx = edx + ecx; /* 0x3000E49B: add edx, ecx */
  15140     _flag_k = FK_ADD;
  15141     /* cmp edx, 1 */ /* 0x3000E49D: cmp edx, 1 */
  15142     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15144     _flag_k = FK_CMP;
  15145     ebx = edx; /* 0x3000E4A0: mov ebx, edx */
  15146     if (CMP_A(_flag_a, _flag_b)) goto L_3000E4A9; /* 0x3000E4A2: ja 0x3000e4a9 */
  15147 L_3000E4A4:
  15148     ebx = 1; /* 0x3000E4A4: mov ebx, 1 */
  15149 L_3000E4A9:
  15150     ecx = esi; /* 0x3000E4A9: mov ecx, esi */
  15151     RECOMP_ICALL(0x30001CB0u); /* 0x3000E4AB: call 0x30001cb0 */ /* not lifted */
  15152     RECOMP_FLAGS_IN();
  15153     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  15154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15155     eax = eax + ebx; /* 0x3000E4B0: add eax, ebx */
  15156     _flag_k = FK_ADD;
  15157     MEM32(ebp + (-0x1C)) = eax; /* 0x3000E4B2: mov dword ptr [ebp - 0x1c], eax */
  15158     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3000E4B9; /* 0x3000E4B5: jns 0x3000e4b9 */
  15159 L_3000E4B7:
  15160     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15161     eax = 0; /* 0x3000E4B7: xor eax, eax */
  15162     _cf = 0;
  15163     _flag_k = FK_TEST;
  15164 L_3000E4B9:
  15165     edx = eax + eax * 4; /* 0x3000E4B9: lea edx, [eax + eax*4] */
  15166     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3000E4BC: shl edx, 2 */
  15167     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15168     edx = edx << 2u; /* 0x3000E4BC: shl edx, 2 */
  15169     PUSH32(esp, edx); /* 0x3000E4BF: push edx */
  15170     RECOMP_ICALL(0x300180A8u); /* 0x3000E4C0: call 0x300180a8 */ /* not lifted */
  15171     RECOMP_FLAGS_IN();
  15172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15173     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15174     esp = esp + 4; /* 0x3000E4C5: add esp, 4 */
  15175     _flag_k = FK_ADD;
  15176     ebx = eax; /* 0x3000E4C8: mov ebx, eax */
  15177     eax = MEM32(esi + 0x4); /* 0x3000E4CA: mov eax, dword ptr [esi + 4] */
  15178     PUSH32(esp, ebx); /* 0x3000E4CD: push ebx */
  15179     PUSH32(esp, edi); /* 0x3000E4CE: push edi */
  15180     PUSH32(esp, eax); /* 0x3000E4CF: push eax */
  15181     ecx = esi; /* 0x3000E4D0: mov ecx, esi */
  15182     RECOMP_ICALL(0x300017D0u); /* 0x3000E4D2: call 0x300017d0 */ /* not lifted */
  15183     RECOMP_FLAGS_IN();
  15184     ecx = ebp + (-0x30); /* 0x3000E4D7: lea ecx, [ebp - 0x30] */
  15185     PUSH32(esp, ecx); /* 0x3000E4DA: push ecx */
  15186     PUSH32(esp, 1); /* 0x3000E4DB: push 1 */
  15187     PUSH32(esp, eax); /* 0x3000E4DD: push eax */
  15188     ecx = esi; /* 0x3000E4DE: mov ecx, esi */
  15189     MEM32(ebp + (-0x18)) = eax; /* 0x3000E4E0: mov dword ptr [ebp - 0x18], eax */
  15190     RECOMP_ICALL(0x30001860u); /* 0x3000E4E3: call 0x30001860 */ /* not lifted */
  15191     RECOMP_FLAGS_IN();
  15192     edx = MEM32(ebp + (-0x18)); /* 0x3000E4E8: mov edx, dword ptr [ebp - 0x18] */
  15193     eax = MEM32(esi + 0x8); /* 0x3000E4EB: mov eax, dword ptr [esi + 8] */
  15194     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
  15195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15196     edx = edx + 0x14u; /* 0x3000E4EE: add edx, 0x14 */
  15197     _flag_k = FK_ADD;
  15198     PUSH32(esp, edx); /* 0x3000E4F1: push edx */
  15199     PUSH32(esp, eax); /* 0x3000E4F2: push eax */
  15200     PUSH32(esp, edi); /* 0x3000E4F3: push edi */
  15201     ecx = esi; /* 0x3000E4F4: mov ecx, esi */
  15202     RECOMP_ICALL(0x300017D0u); /* 0x3000E4F6: call 0x300017d0 */ /* not lifted */
  15203     RECOMP_FLAGS_IN();
  15204     ecx = MEM32(esi + 0x8); /* 0x3000E4FB: mov ecx, dword ptr [esi + 8] */
  15205     edx = MEM32(esi + 0x4); /* 0x3000E4FE: mov edx, dword ptr [esi + 4] */
  15206     PUSH32(esp, ecx); /* 0x3000E501: push ecx */
  15207     PUSH32(esp, edx); /* 0x3000E502: push edx */
  15208     ecx = esi; /* 0x3000E503: mov ecx, esi */
  15209     RECOMP_ICALL(0x300017A0u); /* 0x3000E505: call 0x300017a0 */ /* not lifted */
  15210     RECOMP_FLAGS_IN();
  15211     eax = MEM32(esi + 0x4); /* 0x3000E50A: mov eax, dword ptr [esi + 4] */
  15212     PUSH32(esp, eax); /* 0x3000E50D: push eax */
  15213     RECOMP_ICALL(0x30018080u); /* 0x3000E50E: call 0x30018080 */ /* not lifted */
  15214     RECOMP_FLAGS_IN();
  15215     eax = MEM32(ebp + (-0x1C)); /* 0x3000E513: mov eax, dword ptr [ebp - 0x1c] */
  15216     eax = eax + eax * 4; /* 0x3000E516: lea eax, [eax + eax*4] */
  15217     ecx = ebx + eax * 4; /* 0x3000E519: lea ecx, [ebx + eax*4] */
  15218     MEM32(esi + 0xC) = ecx; /* 0x3000E51C: mov dword ptr [esi + 0xc], ecx */
  15219     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15220     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15221     esp = esp + 4; /* 0x3000E51F: add esp, 4 */
  15222     _flag_k = FK_ADD;
  15223     ecx = esi; /* 0x3000E522: mov ecx, esi */
  15224     RECOMP_ICALL(0x30001CB0u); /* 0x3000E524: call 0x30001cb0 */ /* not lifted */
  15225     RECOMP_FLAGS_IN();
  15226     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15227     eax = eax + 1; /* 0x3000E529: inc eax */
  15228     _flag_k = FK_INC;
  15229     edx = eax + eax * 4; /* 0x3000E52A: lea edx, [eax + eax*4] */
  15230     eax = ebx + edx * 4; /* 0x3000E52D: lea eax, [ebx + edx*4] */
  15231     MEM32(esi + 0x8) = eax; /* 0x3000E530: mov dword ptr [esi + 8], eax */
  15232     MEM32(esi + 0x4) = ebx; /* 0x3000E533: mov dword ptr [esi + 4], ebx */
  15233     goto L_3000E5D1; /* 0x3000E536: jmp 0x3000e5d1 */
  15234 L_3000E53B:
  15235     edx = ecx; /* 0x3000E53B: mov edx, ecx */
  15236     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  15237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15238     edx = edx - edi; /* 0x3000E53D: sub edx, edi */
  15239     _flag_k = FK_CMP;
  15240     eax = 0x66666667u; /* 0x3000E53F: mov eax, 0x66666667 */
  15241     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E544: imul edx */
  15242       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15243       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15244     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E546: sar edx, 3 */
  15245     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15246     edx = (uint32_t)((int32_t)edx >> 3u);
  15247     eax = edx; /* 0x3000E549: mov eax, edx */
  15248     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E54B: shr eax, 0x1f */
  15249     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15250     eax = eax >> 31u; /* 0x3000E54B: shr eax, 0x1f */
  15251     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  15252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15253     edx = edx + eax; /* 0x3000E54E: add edx, eax */
  15254     _flag_k = FK_ADD;
  15255     /* cmp edx, 1 */ /* 0x3000E550: cmp edx, 1 */
  15256     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15258     _flag_k = FK_CMP;
  15259     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E5A1; /* 0x3000E553: jae 0x3000e5a1 */
  15260 L_3000E555:
  15261     edx = edi + 0x14; /* 0x3000E555: lea edx, [edi + 0x14] */
  15262     PUSH32(esp, edx); /* 0x3000E558: push edx */
  15263     PUSH32(esp, ecx); /* 0x3000E559: push ecx */
  15264     PUSH32(esp, edi); /* 0x3000E55A: push edi */
  15265     ecx = esi; /* 0x3000E55B: mov ecx, esi */
  15266     RECOMP_ICALL(0x300017D0u); /* 0x3000E55D: call 0x300017d0 */ /* not lifted */
  15267     RECOMP_FLAGS_IN();
  15268     ebx = MEM32(esi + 0x8); /* 0x3000E562: mov ebx, dword ptr [esi + 8] */
  15269     eax = ebp + (-0x30); /* 0x3000E565: lea eax, [ebp - 0x30] */
  15270     PUSH32(esp, eax); /* 0x3000E568: push eax */
  15271     ecx = ebx; /* 0x3000E569: mov ecx, ebx */
  15272     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  15273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15274     ecx = ecx - edi; /* 0x3000E56B: sub ecx, edi */
  15275     _flag_k = FK_CMP;
  15276     eax = 0x66666667u; /* 0x3000E56D: mov eax, 0x66666667 */
  15277     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E572: imul ecx */
  15278       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15279       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15280     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E574: sar edx, 3 */
  15281     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15282     edx = (uint32_t)((int32_t)edx >> 3u);
  15283     ecx = edx; /* 0x3000E577: mov ecx, edx */
  15284     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E579: shr ecx, 0x1f */
  15285     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15286     ecx = ecx >> 31u; /* 0x3000E579: shr ecx, 0x1f */
  15287     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15288     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15289     edx = edx + ecx; /* 0x3000E57C: add edx, ecx */
  15290     _flag_k = FK_ADD;
  15291     eax = 1; /* 0x3000E57E: mov eax, 1 */
  15292     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  15293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15294     eax = eax - edx; /* 0x3000E583: sub eax, edx */
  15295     _flag_k = FK_CMP;
  15296     PUSH32(esp, eax); /* 0x3000E585: push eax */
  15297     PUSH32(esp, ebx); /* 0x3000E586: push ebx */
  15298     ecx = esi; /* 0x3000E587: mov ecx, esi */
  15299     RECOMP_ICALL(0x30001860u); /* 0x3000E589: call 0x30001860 */ /* not lifted */
  15300     RECOMP_FLAGS_IN();
  15301     edx = MEM32(esi + 0x8); /* 0x3000E58E: mov edx, dword ptr [esi + 8] */
  15302     ecx = ebp + (-0x30); /* 0x3000E591: lea ecx, [ebp - 0x30] */
  15303     PUSH32(esp, ecx); /* 0x3000E594: push ecx */
  15304     PUSH32(esp, edx); /* 0x3000E595: push edx */
  15305     PUSH32(esp, edi); /* 0x3000E596: push edi */
  15306     RECOMP_ICALL(0x30001DC0u); /* 0x3000E597: call 0x30001dc0 */ /* not lifted */
  15307     RECOMP_FLAGS_IN();
  15308     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  15309     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15310     esp = esp + 0xCu; /* 0x3000E59C: add esp, 0xc */
  15311     _flag_k = FK_ADD;
  15312     goto L_3000E5CD; /* 0x3000E59F: jmp 0x3000e5cd */
  15313 L_3000E5A1:
  15314     PUSH32(esp, ecx); /* 0x3000E5A1: push ecx */
  15315     PUSH32(esp, ecx); /* 0x3000E5A2: push ecx */
  15316     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
  15317     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15318     ecx = ecx + 0xFFFFFFECu; /* 0x3000E5A3: add ecx, -0x14 */
  15319     _flag_k = FK_ADD;
  15320     PUSH32(esp, ecx); /* 0x3000E5A6: push ecx */
  15321     ecx = esi; /* 0x3000E5A7: mov ecx, esi */
  15322     RECOMP_ICALL(0x300017D0u); /* 0x3000E5A9: call 0x300017d0 */ /* not lifted */
  15323     RECOMP_FLAGS_IN();
  15324     eax = MEM32(esi + 0x8); /* 0x3000E5AE: mov eax, dword ptr [esi + 8] */
  15325     PUSH32(esp, eax); /* 0x3000E5B1: push eax */
  15326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
  15327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15328     eax = eax + 0xFFFFFFECu; /* 0x3000E5B2: add eax, -0x14 */
  15329     _flag_k = FK_ADD;
  15330     PUSH32(esp, eax); /* 0x3000E5B5: push eax */
  15331     PUSH32(esp, edi); /* 0x3000E5B6: push edi */
  15332     RECOMP_ICALL(0x30001D80u); /* 0x3000E5B7: call 0x30001d80 */ /* not lifted */
  15333     RECOMP_FLAGS_IN();
  15334     eax = ebp + (-0x30); /* 0x3000E5BC: lea eax, [ebp - 0x30] */
  15335     PUSH32(esp, eax); /* 0x3000E5BF: push eax */
  15336     ecx = edi + 0x14; /* 0x3000E5C0: lea ecx, [edi + 0x14] */
  15337     PUSH32(esp, ecx); /* 0x3000E5C3: push ecx */
  15338     PUSH32(esp, edi); /* 0x3000E5C4: push edi */
  15339     RECOMP_ICALL(0x30001DC0u); /* 0x3000E5C5: call 0x30001dc0 */ /* not lifted */
  15340     RECOMP_FLAGS_IN();
  15341     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  15342     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15343     esp = esp + 0x18u; /* 0x3000E5CA: add esp, 0x18 */
  15344     _flag_k = FK_ADD;
  15345 L_3000E5CD:
  15346     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u);
  15347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15348     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3000E5CD: add dword ptr [esi + 8], 0x14 */
  15349     _flag_k = FK_ADD;
  15350 L_3000E5D1:
  15351     ecx = ebp + (-0x30); /* 0x3000E5D1: lea ecx, [ebp - 0x30] */
  15352     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E5D4: mov dword ptr [ebp - 4], 0xffffffff */
  15353     RECOMP_ICALL(0x30007AB0u); /* 0x3000E5DB: call 0x30007ab0 */ /* not lifted */
  15354     RECOMP_FLAGS_IN();
  15355     eax = MEM32(ebp + (-0x10)); /* 0x3000E5E0: mov eax, dword ptr [ebp - 0x10] */
  15356     ecx = MEM32(ebp + (-0x14)); /* 0x3000E5E3: mov ecx, dword ptr [ebp - 0x14] */
  15357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15358     eax = eax + 1; /* 0x3000E5E6: inc eax */
  15359     _flag_k = FK_INC;
  15360     /* cmp eax, ecx */ /* 0x3000E5E7: cmp eax, ecx */
  15361     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15363     _flag_k = FK_CMP;
  15364     MEM32(ebp + (-0x10)) = eax; /* 0x3000E5E9: mov dword ptr [ebp - 0x10], eax */
  15365     RECOMP_BACKEDGE();
  15366     if (CMP_L(_flag_a, _flag_b)) goto L_3000E44C; /* 0x3000E5EC: jl 0x3000e44c */
  15367 L_3000E5F2:
  15368     ecx = MEM32(ebp + (-0xC)); /* 0x3000E5F2: mov ecx, dword ptr [ebp - 0xc] */
  15369     edi = POP32_VAL(esp); /* 0x3000E5F5: pop edi */
  15370     esi = POP32_VAL(esp); /* 0x3000E5F6: pop esi */
  15371     ebx = POP32_VAL(esp); /* 0x3000E5F7: pop ebx */
  15372     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E5F8: mov dword ptr fs:[0], ecx */
  15373     esp = ebp; /* 0x3000E5FF: mov esp, ebp */
  15374     ebp = POP32_VAL(esp); /* 0x3000E601: pop ebp */
  15375     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E602: ret 4 */
  15376     RECOMP_REGS_OUT();
  15377 }
  15378 
  15379 void sub_3000E5CD(void) {
  15380     int _fpu_cmp = 0;
  15381     uint32_t _cf = 0;
  15382     int _df = 1;
  15383     uint32_t _flag_k = FK_NONE;
  15384     uint32_t _flag_a = 0, _flag_b = 0;
  15385     uint32_t _itail_tgt = 0;
  15386     RECOMP_REGS_LOCALS
  15387     RECOMP_ENTER(0x3000E5CDu);
  15388 
  15389     goto L_3000E5CD;
  15390 L_3000E44C:
  15391     edx = MEM32(ebp + 0x8); /* 0x3000E44C: mov edx, dword ptr [ebp + 8] */
  15392     PUSH32(esp, edx); /* 0x3000E44F: push edx */
  15393     ecx = ebp + (-0x30); /* 0x3000E450: lea ecx, [ebp - 0x30] */
  15394     RECOMP_ICALL(0x30007A80u); /* 0x3000E453: call 0x30007a80 */ /* not lifted */
  15395     RECOMP_FLAGS_IN();
  15396     ecx = MEM32(esi + 0x8); /* 0x3000E458: mov ecx, dword ptr [esi + 8] */
  15397     edx = MEM32(esi + 0xC); /* 0x3000E45B: mov edx, dword ptr [esi + 0xc] */
  15398     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15400     edx = edx - ecx; /* 0x3000E45E: sub edx, ecx */
  15401     _flag_k = FK_CMP;
  15402     eax = 0x66666667u; /* 0x3000E460: mov eax, 0x66666667 */
  15403     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E465: imul edx */
  15404       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15405       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15406     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E467: sar edx, 3 */
  15407     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15408     edx = (uint32_t)((int32_t)edx >> 3u);
  15409     eax = edx; /* 0x3000E46A: mov eax, edx */
  15410     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E46C: shr eax, 0x1f */
  15411     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15412     eax = eax >> 31u; /* 0x3000E46C: shr eax, 0x1f */
  15413     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  15414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15415     edx = edx + eax; /* 0x3000E46F: add edx, eax */
  15416     _flag_k = FK_ADD;
  15417     /* cmp edx, 1 */ /* 0x3000E471: cmp edx, 1 */
  15418     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15419     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15420     _flag_k = FK_CMP;
  15421     MEM32(ebp + (-0x4)) = 0; /* 0x3000E474: mov dword ptr [ebp - 4], 0 */
  15422     edi = ecx; /* 0x3000E47B: mov edi, ecx */
  15423     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E53B; /* 0x3000E47D: jae 0x3000e53b */
  15424 L_3000E483:
  15425     eax = MEM32(esi + 0x4); /* 0x3000E483: mov eax, dword ptr [esi + 4] */
  15426     /* test eax, eax */ /* 0x3000E486: test eax, eax */
  15427     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  15428     _cf = 0;
  15429     _flag_k = FK_TEST;
  15430     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E4A4; /* 0x3000E488: je 0x3000e4a4 */
  15431 L_3000E48A:
  15432     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  15433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15434     ecx = ecx - eax; /* 0x3000E48A: sub ecx, eax */
  15435     _flag_k = FK_CMP;
  15436     eax = 0x66666667u; /* 0x3000E48C: mov eax, 0x66666667 */
  15437     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E491: imul ecx */
  15438       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15439       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15440     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E493: sar edx, 3 */
  15441     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15442     edx = (uint32_t)((int32_t)edx >> 3u);
  15443     ecx = edx; /* 0x3000E496: mov ecx, edx */
  15444     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E498: shr ecx, 0x1f */
  15445     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15446     ecx = ecx >> 31u; /* 0x3000E498: shr ecx, 0x1f */
  15447     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15448     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15449     edx = edx + ecx; /* 0x3000E49B: add edx, ecx */
  15450     _flag_k = FK_ADD;
  15451     /* cmp edx, 1 */ /* 0x3000E49D: cmp edx, 1 */
  15452     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15454     _flag_k = FK_CMP;
  15455     ebx = edx; /* 0x3000E4A0: mov ebx, edx */
  15456     if (CMP_A(_flag_a, _flag_b)) goto L_3000E4A9; /* 0x3000E4A2: ja 0x3000e4a9 */
  15457 L_3000E4A4:
  15458     ebx = 1; /* 0x3000E4A4: mov ebx, 1 */
  15459 L_3000E4A9:
  15460     ecx = esi; /* 0x3000E4A9: mov ecx, esi */
  15461     RECOMP_ICALL(0x30001CB0u); /* 0x3000E4AB: call 0x30001cb0 */ /* not lifted */
  15462     RECOMP_FLAGS_IN();
  15463     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  15464     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15465     eax = eax + ebx; /* 0x3000E4B0: add eax, ebx */
  15466     _flag_k = FK_ADD;
  15467     MEM32(ebp + (-0x1C)) = eax; /* 0x3000E4B2: mov dword ptr [ebp - 0x1c], eax */
  15468     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3000E4B9; /* 0x3000E4B5: jns 0x3000e4b9 */
  15469 L_3000E4B7:
  15470     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15471     eax = 0; /* 0x3000E4B7: xor eax, eax */
  15472     _cf = 0;
  15473     _flag_k = FK_TEST;
  15474 L_3000E4B9:
  15475     edx = eax + eax * 4; /* 0x3000E4B9: lea edx, [eax + eax*4] */
  15476     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3000E4BC: shl edx, 2 */
  15477     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15478     edx = edx << 2u; /* 0x3000E4BC: shl edx, 2 */
  15479     PUSH32(esp, edx); /* 0x3000E4BF: push edx */
  15480     RECOMP_ICALL(0x300180A8u); /* 0x3000E4C0: call 0x300180a8 */ /* not lifted */
  15481     RECOMP_FLAGS_IN();
  15482     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15484     esp = esp + 4; /* 0x3000E4C5: add esp, 4 */
  15485     _flag_k = FK_ADD;
  15486     ebx = eax; /* 0x3000E4C8: mov ebx, eax */
  15487     eax = MEM32(esi + 0x4); /* 0x3000E4CA: mov eax, dword ptr [esi + 4] */
  15488     PUSH32(esp, ebx); /* 0x3000E4CD: push ebx */
  15489     PUSH32(esp, edi); /* 0x3000E4CE: push edi */
  15490     PUSH32(esp, eax); /* 0x3000E4CF: push eax */
  15491     ecx = esi; /* 0x3000E4D0: mov ecx, esi */
  15492     RECOMP_ICALL(0x300017D0u); /* 0x3000E4D2: call 0x300017d0 */ /* not lifted */
  15493     RECOMP_FLAGS_IN();
  15494     ecx = ebp + (-0x30); /* 0x3000E4D7: lea ecx, [ebp - 0x30] */
  15495     PUSH32(esp, ecx); /* 0x3000E4DA: push ecx */
  15496     PUSH32(esp, 1); /* 0x3000E4DB: push 1 */
  15497     PUSH32(esp, eax); /* 0x3000E4DD: push eax */
  15498     ecx = esi; /* 0x3000E4DE: mov ecx, esi */
  15499     MEM32(ebp + (-0x18)) = eax; /* 0x3000E4E0: mov dword ptr [ebp - 0x18], eax */
  15500     RECOMP_ICALL(0x30001860u); /* 0x3000E4E3: call 0x30001860 */ /* not lifted */
  15501     RECOMP_FLAGS_IN();
  15502     edx = MEM32(ebp + (-0x18)); /* 0x3000E4E8: mov edx, dword ptr [ebp - 0x18] */
  15503     eax = MEM32(esi + 0x8); /* 0x3000E4EB: mov eax, dword ptr [esi + 8] */
  15504     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
  15505     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15506     edx = edx + 0x14u; /* 0x3000E4EE: add edx, 0x14 */
  15507     _flag_k = FK_ADD;
  15508     PUSH32(esp, edx); /* 0x3000E4F1: push edx */
  15509     PUSH32(esp, eax); /* 0x3000E4F2: push eax */
  15510     PUSH32(esp, edi); /* 0x3000E4F3: push edi */
  15511     ecx = esi; /* 0x3000E4F4: mov ecx, esi */
  15512     RECOMP_ICALL(0x300017D0u); /* 0x3000E4F6: call 0x300017d0 */ /* not lifted */
  15513     RECOMP_FLAGS_IN();
  15514     ecx = MEM32(esi + 0x8); /* 0x3000E4FB: mov ecx, dword ptr [esi + 8] */
  15515     edx = MEM32(esi + 0x4); /* 0x3000E4FE: mov edx, dword ptr [esi + 4] */
  15516     PUSH32(esp, ecx); /* 0x3000E501: push ecx */
  15517     PUSH32(esp, edx); /* 0x3000E502: push edx */
  15518     ecx = esi; /* 0x3000E503: mov ecx, esi */
  15519     RECOMP_ICALL(0x300017A0u); /* 0x3000E505: call 0x300017a0 */ /* not lifted */
  15520     RECOMP_FLAGS_IN();
  15521     eax = MEM32(esi + 0x4); /* 0x3000E50A: mov eax, dword ptr [esi + 4] */
  15522     PUSH32(esp, eax); /* 0x3000E50D: push eax */
  15523     RECOMP_ICALL(0x30018080u); /* 0x3000E50E: call 0x30018080 */ /* not lifted */
  15524     RECOMP_FLAGS_IN();
  15525     eax = MEM32(ebp + (-0x1C)); /* 0x3000E513: mov eax, dword ptr [ebp - 0x1c] */
  15526     eax = eax + eax * 4; /* 0x3000E516: lea eax, [eax + eax*4] */
  15527     ecx = ebx + eax * 4; /* 0x3000E519: lea ecx, [ebx + eax*4] */
  15528     MEM32(esi + 0xC) = ecx; /* 0x3000E51C: mov dword ptr [esi + 0xc], ecx */
  15529     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15530     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15531     esp = esp + 4; /* 0x3000E51F: add esp, 4 */
  15532     _flag_k = FK_ADD;
  15533     ecx = esi; /* 0x3000E522: mov ecx, esi */
  15534     RECOMP_ICALL(0x30001CB0u); /* 0x3000E524: call 0x30001cb0 */ /* not lifted */
  15535     RECOMP_FLAGS_IN();
  15536     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15537     eax = eax + 1; /* 0x3000E529: inc eax */
  15538     _flag_k = FK_INC;
  15539     edx = eax + eax * 4; /* 0x3000E52A: lea edx, [eax + eax*4] */
  15540     eax = ebx + edx * 4; /* 0x3000E52D: lea eax, [ebx + edx*4] */
  15541     MEM32(esi + 0x8) = eax; /* 0x3000E530: mov dword ptr [esi + 8], eax */
  15542     MEM32(esi + 0x4) = ebx; /* 0x3000E533: mov dword ptr [esi + 4], ebx */
  15543     goto L_3000E5D1; /* 0x3000E536: jmp 0x3000e5d1 */
  15544 L_3000E53B:
  15545     edx = ecx; /* 0x3000E53B: mov edx, ecx */
  15546     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  15547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15548     edx = edx - edi; /* 0x3000E53D: sub edx, edi */
  15549     _flag_k = FK_CMP;
  15550     eax = 0x66666667u; /* 0x3000E53F: mov eax, 0x66666667 */
  15551     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E544: imul edx */
  15552       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15553       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15554     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E546: sar edx, 3 */
  15555     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15556     edx = (uint32_t)((int32_t)edx >> 3u);
  15557     eax = edx; /* 0x3000E549: mov eax, edx */
  15558     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E54B: shr eax, 0x1f */
  15559     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15560     eax = eax >> 31u; /* 0x3000E54B: shr eax, 0x1f */
  15561     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  15562     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15563     edx = edx + eax; /* 0x3000E54E: add edx, eax */
  15564     _flag_k = FK_ADD;
  15565     /* cmp edx, 1 */ /* 0x3000E550: cmp edx, 1 */
  15566     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15568     _flag_k = FK_CMP;
  15569     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E5A1; /* 0x3000E553: jae 0x3000e5a1 */
  15570 L_3000E555:
  15571     edx = edi + 0x14; /* 0x3000E555: lea edx, [edi + 0x14] */
  15572     PUSH32(esp, edx); /* 0x3000E558: push edx */
  15573     PUSH32(esp, ecx); /* 0x3000E559: push ecx */
  15574     PUSH32(esp, edi); /* 0x3000E55A: push edi */
  15575     ecx = esi; /* 0x3000E55B: mov ecx, esi */
  15576     RECOMP_ICALL(0x300017D0u); /* 0x3000E55D: call 0x300017d0 */ /* not lifted */
  15577     RECOMP_FLAGS_IN();
  15578     ebx = MEM32(esi + 0x8); /* 0x3000E562: mov ebx, dword ptr [esi + 8] */
  15579     eax = ebp + (-0x30); /* 0x3000E565: lea eax, [ebp - 0x30] */
  15580     PUSH32(esp, eax); /* 0x3000E568: push eax */
  15581     ecx = ebx; /* 0x3000E569: mov ecx, ebx */
  15582     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  15583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15584     ecx = ecx - edi; /* 0x3000E56B: sub ecx, edi */
  15585     _flag_k = FK_CMP;
  15586     eax = 0x66666667u; /* 0x3000E56D: mov eax, 0x66666667 */
  15587     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E572: imul ecx */
  15588       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15589       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15590     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E574: sar edx, 3 */
  15591     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15592     edx = (uint32_t)((int32_t)edx >> 3u);
  15593     ecx = edx; /* 0x3000E577: mov ecx, edx */
  15594     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E579: shr ecx, 0x1f */
  15595     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15596     ecx = ecx >> 31u; /* 0x3000E579: shr ecx, 0x1f */
  15597     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15598     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15599     edx = edx + ecx; /* 0x3000E57C: add edx, ecx */
  15600     _flag_k = FK_ADD;
  15601     eax = 1; /* 0x3000E57E: mov eax, 1 */
  15602     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  15603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15604     eax = eax - edx; /* 0x3000E583: sub eax, edx */
  15605     _flag_k = FK_CMP;
  15606     PUSH32(esp, eax); /* 0x3000E585: push eax */
  15607     PUSH32(esp, ebx); /* 0x3000E586: push ebx */
  15608     ecx = esi; /* 0x3000E587: mov ecx, esi */
  15609     RECOMP_ICALL(0x30001860u); /* 0x3000E589: call 0x30001860 */ /* not lifted */
  15610     RECOMP_FLAGS_IN();
  15611     edx = MEM32(esi + 0x8); /* 0x3000E58E: mov edx, dword ptr [esi + 8] */
  15612     ecx = ebp + (-0x30); /* 0x3000E591: lea ecx, [ebp - 0x30] */
  15613     PUSH32(esp, ecx); /* 0x3000E594: push ecx */
  15614     PUSH32(esp, edx); /* 0x3000E595: push edx */
  15615     PUSH32(esp, edi); /* 0x3000E596: push edi */
  15616     RECOMP_ICALL(0x30001DC0u); /* 0x3000E597: call 0x30001dc0 */ /* not lifted */
  15617     RECOMP_FLAGS_IN();
  15618     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  15619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15620     esp = esp + 0xCu; /* 0x3000E59C: add esp, 0xc */
  15621     _flag_k = FK_ADD;
  15622     goto L_3000E5CD; /* 0x3000E59F: jmp 0x3000e5cd */
  15623 L_3000E5A1:
  15624     PUSH32(esp, ecx); /* 0x3000E5A1: push ecx */
  15625     PUSH32(esp, ecx); /* 0x3000E5A2: push ecx */
  15626     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
  15627     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15628     ecx = ecx + 0xFFFFFFECu; /* 0x3000E5A3: add ecx, -0x14 */
  15629     _flag_k = FK_ADD;
  15630     PUSH32(esp, ecx); /* 0x3000E5A6: push ecx */
  15631     ecx = esi; /* 0x3000E5A7: mov ecx, esi */
  15632     RECOMP_ICALL(0x300017D0u); /* 0x3000E5A9: call 0x300017d0 */ /* not lifted */
  15633     RECOMP_FLAGS_IN();
  15634     eax = MEM32(esi + 0x8); /* 0x3000E5AE: mov eax, dword ptr [esi + 8] */
  15635     PUSH32(esp, eax); /* 0x3000E5B1: push eax */
  15636     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
  15637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15638     eax = eax + 0xFFFFFFECu; /* 0x3000E5B2: add eax, -0x14 */
  15639     _flag_k = FK_ADD;
  15640     PUSH32(esp, eax); /* 0x3000E5B5: push eax */
  15641     PUSH32(esp, edi); /* 0x3000E5B6: push edi */
  15642     RECOMP_ICALL(0x30001D80u); /* 0x3000E5B7: call 0x30001d80 */ /* not lifted */
  15643     RECOMP_FLAGS_IN();
  15644     eax = ebp + (-0x30); /* 0x3000E5BC: lea eax, [ebp - 0x30] */
  15645     PUSH32(esp, eax); /* 0x3000E5BF: push eax */
  15646     ecx = edi + 0x14; /* 0x3000E5C0: lea ecx, [edi + 0x14] */
  15647     PUSH32(esp, ecx); /* 0x3000E5C3: push ecx */
  15648     PUSH32(esp, edi); /* 0x3000E5C4: push edi */
  15649     RECOMP_ICALL(0x30001DC0u); /* 0x3000E5C5: call 0x30001dc0 */ /* not lifted */
  15650     RECOMP_FLAGS_IN();
  15651     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  15652     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15653     esp = esp + 0x18u; /* 0x3000E5CA: add esp, 0x18 */
  15654     _flag_k = FK_ADD;
  15655 L_3000E5CD:
  15656     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u);
  15657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15658     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3000E5CD: add dword ptr [esi + 8], 0x14 */
  15659     _flag_k = FK_ADD;
  15660 L_3000E5D1:
  15661     ecx = ebp + (-0x30); /* 0x3000E5D1: lea ecx, [ebp - 0x30] */
  15662     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E5D4: mov dword ptr [ebp - 4], 0xffffffff */
  15663     RECOMP_ICALL(0x30007AB0u); /* 0x3000E5DB: call 0x30007ab0 */ /* not lifted */
  15664     RECOMP_FLAGS_IN();
  15665     eax = MEM32(ebp + (-0x10)); /* 0x3000E5E0: mov eax, dword ptr [ebp - 0x10] */
  15666     ecx = MEM32(ebp + (-0x14)); /* 0x3000E5E3: mov ecx, dword ptr [ebp - 0x14] */
  15667     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15668     eax = eax + 1; /* 0x3000E5E6: inc eax */
  15669     _flag_k = FK_INC;
  15670     /* cmp eax, ecx */ /* 0x3000E5E7: cmp eax, ecx */
  15671     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15673     _flag_k = FK_CMP;
  15674     MEM32(ebp + (-0x10)) = eax; /* 0x3000E5E9: mov dword ptr [ebp - 0x10], eax */
  15675     RECOMP_BACKEDGE();
  15676     if (CMP_L(_flag_a, _flag_b)) goto L_3000E44C; /* 0x3000E5EC: jl 0x3000e44c */
  15677 L_3000E5F2:
  15678     ecx = MEM32(ebp + (-0xC)); /* 0x3000E5F2: mov ecx, dword ptr [ebp - 0xc] */
  15679     edi = POP32_VAL(esp); /* 0x3000E5F5: pop edi */
  15680     esi = POP32_VAL(esp); /* 0x3000E5F6: pop esi */
  15681     ebx = POP32_VAL(esp); /* 0x3000E5F7: pop ebx */
  15682     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E5F8: mov dword ptr fs:[0], ecx */
  15683     esp = ebp; /* 0x3000E5FF: mov esp, ebp */
  15684     ebp = POP32_VAL(esp); /* 0x3000E601: pop ebp */
  15685     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E602: ret 4 */
  15686     RECOMP_REGS_OUT();
  15687 }
  15688 
  15689 void sub_3000E5D1(void) {
  15690     int _fpu_cmp = 0;
  15691     uint32_t _cf = 0;
  15692     int _df = 1;
  15693     uint32_t _flag_k = FK_NONE;
  15694     uint32_t _flag_a = 0, _flag_b = 0;
  15695     uint32_t _itail_tgt = 0;
  15696     RECOMP_REGS_LOCALS
  15697     RECOMP_ENTER(0x3000E5D1u);
  15698 
  15699     goto L_3000E5D1;
  15700 L_3000E44C:
  15701     edx = MEM32(ebp + 0x8); /* 0x3000E44C: mov edx, dword ptr [ebp + 8] */
  15702     PUSH32(esp, edx); /* 0x3000E44F: push edx */
  15703     ecx = ebp + (-0x30); /* 0x3000E450: lea ecx, [ebp - 0x30] */
  15704     RECOMP_ICALL(0x30007A80u); /* 0x3000E453: call 0x30007a80 */ /* not lifted */
  15705     RECOMP_FLAGS_IN();
  15706     ecx = MEM32(esi + 0x8); /* 0x3000E458: mov ecx, dword ptr [esi + 8] */
  15707     edx = MEM32(esi + 0xC); /* 0x3000E45B: mov edx, dword ptr [esi + 0xc] */
  15708     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15710     edx = edx - ecx; /* 0x3000E45E: sub edx, ecx */
  15711     _flag_k = FK_CMP;
  15712     eax = 0x66666667u; /* 0x3000E460: mov eax, 0x66666667 */
  15713     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E465: imul edx */
  15714       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15715       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15716     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E467: sar edx, 3 */
  15717     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15718     edx = (uint32_t)((int32_t)edx >> 3u);
  15719     eax = edx; /* 0x3000E46A: mov eax, edx */
  15720     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E46C: shr eax, 0x1f */
  15721     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15722     eax = eax >> 31u; /* 0x3000E46C: shr eax, 0x1f */
  15723     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  15724     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15725     edx = edx + eax; /* 0x3000E46F: add edx, eax */
  15726     _flag_k = FK_ADD;
  15727     /* cmp edx, 1 */ /* 0x3000E471: cmp edx, 1 */
  15728     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15729     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15730     _flag_k = FK_CMP;
  15731     MEM32(ebp + (-0x4)) = 0; /* 0x3000E474: mov dword ptr [ebp - 4], 0 */
  15732     edi = ecx; /* 0x3000E47B: mov edi, ecx */
  15733     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E53B; /* 0x3000E47D: jae 0x3000e53b */
  15734 L_3000E483:
  15735     eax = MEM32(esi + 0x4); /* 0x3000E483: mov eax, dword ptr [esi + 4] */
  15736     /* test eax, eax */ /* 0x3000E486: test eax, eax */
  15737     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  15738     _cf = 0;
  15739     _flag_k = FK_TEST;
  15740     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E4A4; /* 0x3000E488: je 0x3000e4a4 */
  15741 L_3000E48A:
  15742     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  15743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15744     ecx = ecx - eax; /* 0x3000E48A: sub ecx, eax */
  15745     _flag_k = FK_CMP;
  15746     eax = 0x66666667u; /* 0x3000E48C: mov eax, 0x66666667 */
  15747     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E491: imul ecx */
  15748       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15749       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15750     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E493: sar edx, 3 */
  15751     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15752     edx = (uint32_t)((int32_t)edx >> 3u);
  15753     ecx = edx; /* 0x3000E496: mov ecx, edx */
  15754     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E498: shr ecx, 0x1f */
  15755     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15756     ecx = ecx >> 31u; /* 0x3000E498: shr ecx, 0x1f */
  15757     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15759     edx = edx + ecx; /* 0x3000E49B: add edx, ecx */
  15760     _flag_k = FK_ADD;
  15761     /* cmp edx, 1 */ /* 0x3000E49D: cmp edx, 1 */
  15762     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15764     _flag_k = FK_CMP;
  15765     ebx = edx; /* 0x3000E4A0: mov ebx, edx */
  15766     if (CMP_A(_flag_a, _flag_b)) goto L_3000E4A9; /* 0x3000E4A2: ja 0x3000e4a9 */
  15767 L_3000E4A4:
  15768     ebx = 1; /* 0x3000E4A4: mov ebx, 1 */
  15769 L_3000E4A9:
  15770     ecx = esi; /* 0x3000E4A9: mov ecx, esi */
  15771     RECOMP_ICALL(0x30001CB0u); /* 0x3000E4AB: call 0x30001cb0 */ /* not lifted */
  15772     RECOMP_FLAGS_IN();
  15773     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  15774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15775     eax = eax + ebx; /* 0x3000E4B0: add eax, ebx */
  15776     _flag_k = FK_ADD;
  15777     MEM32(ebp + (-0x1C)) = eax; /* 0x3000E4B2: mov dword ptr [ebp - 0x1c], eax */
  15778     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3000E4B9; /* 0x3000E4B5: jns 0x3000e4b9 */
  15779 L_3000E4B7:
  15780     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15781     eax = 0; /* 0x3000E4B7: xor eax, eax */
  15782     _cf = 0;
  15783     _flag_k = FK_TEST;
  15784 L_3000E4B9:
  15785     edx = eax + eax * 4; /* 0x3000E4B9: lea edx, [eax + eax*4] */
  15786     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3000E4BC: shl edx, 2 */
  15787     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15788     edx = edx << 2u; /* 0x3000E4BC: shl edx, 2 */
  15789     PUSH32(esp, edx); /* 0x3000E4BF: push edx */
  15790     RECOMP_ICALL(0x300180A8u); /* 0x3000E4C0: call 0x300180a8 */ /* not lifted */
  15791     RECOMP_FLAGS_IN();
  15792     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15793     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15794     esp = esp + 4; /* 0x3000E4C5: add esp, 4 */
  15795     _flag_k = FK_ADD;
  15796     ebx = eax; /* 0x3000E4C8: mov ebx, eax */
  15797     eax = MEM32(esi + 0x4); /* 0x3000E4CA: mov eax, dword ptr [esi + 4] */
  15798     PUSH32(esp, ebx); /* 0x3000E4CD: push ebx */
  15799     PUSH32(esp, edi); /* 0x3000E4CE: push edi */
  15800     PUSH32(esp, eax); /* 0x3000E4CF: push eax */
  15801     ecx = esi; /* 0x3000E4D0: mov ecx, esi */
  15802     RECOMP_ICALL(0x300017D0u); /* 0x3000E4D2: call 0x300017d0 */ /* not lifted */
  15803     RECOMP_FLAGS_IN();
  15804     ecx = ebp + (-0x30); /* 0x3000E4D7: lea ecx, [ebp - 0x30] */
  15805     PUSH32(esp, ecx); /* 0x3000E4DA: push ecx */
  15806     PUSH32(esp, 1); /* 0x3000E4DB: push 1 */
  15807     PUSH32(esp, eax); /* 0x3000E4DD: push eax */
  15808     ecx = esi; /* 0x3000E4DE: mov ecx, esi */
  15809     MEM32(ebp + (-0x18)) = eax; /* 0x3000E4E0: mov dword ptr [ebp - 0x18], eax */
  15810     RECOMP_ICALL(0x30001860u); /* 0x3000E4E3: call 0x30001860 */ /* not lifted */
  15811     RECOMP_FLAGS_IN();
  15812     edx = MEM32(ebp + (-0x18)); /* 0x3000E4E8: mov edx, dword ptr [ebp - 0x18] */
  15813     eax = MEM32(esi + 0x8); /* 0x3000E4EB: mov eax, dword ptr [esi + 8] */
  15814     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
  15815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15816     edx = edx + 0x14u; /* 0x3000E4EE: add edx, 0x14 */
  15817     _flag_k = FK_ADD;
  15818     PUSH32(esp, edx); /* 0x3000E4F1: push edx */
  15819     PUSH32(esp, eax); /* 0x3000E4F2: push eax */
  15820     PUSH32(esp, edi); /* 0x3000E4F3: push edi */
  15821     ecx = esi; /* 0x3000E4F4: mov ecx, esi */
  15822     RECOMP_ICALL(0x300017D0u); /* 0x3000E4F6: call 0x300017d0 */ /* not lifted */
  15823     RECOMP_FLAGS_IN();
  15824     ecx = MEM32(esi + 0x8); /* 0x3000E4FB: mov ecx, dword ptr [esi + 8] */
  15825     edx = MEM32(esi + 0x4); /* 0x3000E4FE: mov edx, dword ptr [esi + 4] */
  15826     PUSH32(esp, ecx); /* 0x3000E501: push ecx */
  15827     PUSH32(esp, edx); /* 0x3000E502: push edx */
  15828     ecx = esi; /* 0x3000E503: mov ecx, esi */
  15829     RECOMP_ICALL(0x300017A0u); /* 0x3000E505: call 0x300017a0 */ /* not lifted */
  15830     RECOMP_FLAGS_IN();
  15831     eax = MEM32(esi + 0x4); /* 0x3000E50A: mov eax, dword ptr [esi + 4] */
  15832     PUSH32(esp, eax); /* 0x3000E50D: push eax */
  15833     RECOMP_ICALL(0x30018080u); /* 0x3000E50E: call 0x30018080 */ /* not lifted */
  15834     RECOMP_FLAGS_IN();
  15835     eax = MEM32(ebp + (-0x1C)); /* 0x3000E513: mov eax, dword ptr [ebp - 0x1c] */
  15836     eax = eax + eax * 4; /* 0x3000E516: lea eax, [eax + eax*4] */
  15837     ecx = ebx + eax * 4; /* 0x3000E519: lea ecx, [ebx + eax*4] */
  15838     MEM32(esi + 0xC) = ecx; /* 0x3000E51C: mov dword ptr [esi + 0xc], ecx */
  15839     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15840     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15841     esp = esp + 4; /* 0x3000E51F: add esp, 4 */
  15842     _flag_k = FK_ADD;
  15843     ecx = esi; /* 0x3000E522: mov ecx, esi */
  15844     RECOMP_ICALL(0x30001CB0u); /* 0x3000E524: call 0x30001cb0 */ /* not lifted */
  15845     RECOMP_FLAGS_IN();
  15846     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15847     eax = eax + 1; /* 0x3000E529: inc eax */
  15848     _flag_k = FK_INC;
  15849     edx = eax + eax * 4; /* 0x3000E52A: lea edx, [eax + eax*4] */
  15850     eax = ebx + edx * 4; /* 0x3000E52D: lea eax, [ebx + edx*4] */
  15851     MEM32(esi + 0x8) = eax; /* 0x3000E530: mov dword ptr [esi + 8], eax */
  15852     MEM32(esi + 0x4) = ebx; /* 0x3000E533: mov dword ptr [esi + 4], ebx */
  15853     goto L_3000E5D1; /* 0x3000E536: jmp 0x3000e5d1 */
  15854 L_3000E53B:
  15855     edx = ecx; /* 0x3000E53B: mov edx, ecx */
  15856     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  15857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15858     edx = edx - edi; /* 0x3000E53D: sub edx, edi */
  15859     _flag_k = FK_CMP;
  15860     eax = 0x66666667u; /* 0x3000E53F: mov eax, 0x66666667 */
  15861     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000E544: imul edx */
  15862       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15863       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15864     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E546: sar edx, 3 */
  15865     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15866     edx = (uint32_t)((int32_t)edx >> 3u);
  15867     eax = edx; /* 0x3000E549: mov eax, edx */
  15868     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E54B: shr eax, 0x1f */
  15869     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15870     eax = eax >> 31u; /* 0x3000E54B: shr eax, 0x1f */
  15871     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  15872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15873     edx = edx + eax; /* 0x3000E54E: add edx, eax */
  15874     _flag_k = FK_ADD;
  15875     /* cmp edx, 1 */ /* 0x3000E550: cmp edx, 1 */
  15876     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  15877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15878     _flag_k = FK_CMP;
  15879     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E5A1; /* 0x3000E553: jae 0x3000e5a1 */
  15880 L_3000E555:
  15881     edx = edi + 0x14; /* 0x3000E555: lea edx, [edi + 0x14] */
  15882     PUSH32(esp, edx); /* 0x3000E558: push edx */
  15883     PUSH32(esp, ecx); /* 0x3000E559: push ecx */
  15884     PUSH32(esp, edi); /* 0x3000E55A: push edi */
  15885     ecx = esi; /* 0x3000E55B: mov ecx, esi */
  15886     RECOMP_ICALL(0x300017D0u); /* 0x3000E55D: call 0x300017d0 */ /* not lifted */
  15887     RECOMP_FLAGS_IN();
  15888     ebx = MEM32(esi + 0x8); /* 0x3000E562: mov ebx, dword ptr [esi + 8] */
  15889     eax = ebp + (-0x30); /* 0x3000E565: lea eax, [ebp - 0x30] */
  15890     PUSH32(esp, eax); /* 0x3000E568: push eax */
  15891     ecx = ebx; /* 0x3000E569: mov ecx, ebx */
  15892     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  15893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15894     ecx = ecx - edi; /* 0x3000E56B: sub ecx, edi */
  15895     _flag_k = FK_CMP;
  15896     eax = 0x66666667u; /* 0x3000E56D: mov eax, 0x66666667 */
  15897     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E572: imul ecx */
  15898       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  15899       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  15900     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E574: sar edx, 3 */
  15901     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15902     edx = (uint32_t)((int32_t)edx >> 3u);
  15903     ecx = edx; /* 0x3000E577: mov ecx, edx */
  15904     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E579: shr ecx, 0x1f */
  15905     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  15906     ecx = ecx >> 31u; /* 0x3000E579: shr ecx, 0x1f */
  15907     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  15908     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15909     edx = edx + ecx; /* 0x3000E57C: add edx, ecx */
  15910     _flag_k = FK_ADD;
  15911     eax = 1; /* 0x3000E57E: mov eax, 1 */
  15912     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  15913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15914     eax = eax - edx; /* 0x3000E583: sub eax, edx */
  15915     _flag_k = FK_CMP;
  15916     PUSH32(esp, eax); /* 0x3000E585: push eax */
  15917     PUSH32(esp, ebx); /* 0x3000E586: push ebx */
  15918     ecx = esi; /* 0x3000E587: mov ecx, esi */
  15919     RECOMP_ICALL(0x30001860u); /* 0x3000E589: call 0x30001860 */ /* not lifted */
  15920     RECOMP_FLAGS_IN();
  15921     edx = MEM32(esi + 0x8); /* 0x3000E58E: mov edx, dword ptr [esi + 8] */
  15922     ecx = ebp + (-0x30); /* 0x3000E591: lea ecx, [ebp - 0x30] */
  15923     PUSH32(esp, ecx); /* 0x3000E594: push ecx */
  15924     PUSH32(esp, edx); /* 0x3000E595: push edx */
  15925     PUSH32(esp, edi); /* 0x3000E596: push edi */
  15926     RECOMP_ICALL(0x30001DC0u); /* 0x3000E597: call 0x30001dc0 */ /* not lifted */
  15927     RECOMP_FLAGS_IN();
  15928     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  15929     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15930     esp = esp + 0xCu; /* 0x3000E59C: add esp, 0xc */
  15931     _flag_k = FK_ADD;
  15932     goto L_3000E5CD; /* 0x3000E59F: jmp 0x3000e5cd */
  15933 L_3000E5A1:
  15934     PUSH32(esp, ecx); /* 0x3000E5A1: push ecx */
  15935     PUSH32(esp, ecx); /* 0x3000E5A2: push ecx */
  15936     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
  15937     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15938     ecx = ecx + 0xFFFFFFECu; /* 0x3000E5A3: add ecx, -0x14 */
  15939     _flag_k = FK_ADD;
  15940     PUSH32(esp, ecx); /* 0x3000E5A6: push ecx */
  15941     ecx = esi; /* 0x3000E5A7: mov ecx, esi */
  15942     RECOMP_ICALL(0x300017D0u); /* 0x3000E5A9: call 0x300017d0 */ /* not lifted */
  15943     RECOMP_FLAGS_IN();
  15944     eax = MEM32(esi + 0x8); /* 0x3000E5AE: mov eax, dword ptr [esi + 8] */
  15945     PUSH32(esp, eax); /* 0x3000E5B1: push eax */
  15946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu);
  15947     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15948     eax = eax + 0xFFFFFFECu; /* 0x3000E5B2: add eax, -0x14 */
  15949     _flag_k = FK_ADD;
  15950     PUSH32(esp, eax); /* 0x3000E5B5: push eax */
  15951     PUSH32(esp, edi); /* 0x3000E5B6: push edi */
  15952     RECOMP_ICALL(0x30001D80u); /* 0x3000E5B7: call 0x30001d80 */ /* not lifted */
  15953     RECOMP_FLAGS_IN();
  15954     eax = ebp + (-0x30); /* 0x3000E5BC: lea eax, [ebp - 0x30] */
  15955     PUSH32(esp, eax); /* 0x3000E5BF: push eax */
  15956     ecx = edi + 0x14; /* 0x3000E5C0: lea ecx, [edi + 0x14] */
  15957     PUSH32(esp, ecx); /* 0x3000E5C3: push ecx */
  15958     PUSH32(esp, edi); /* 0x3000E5C4: push edi */
  15959     RECOMP_ICALL(0x30001DC0u); /* 0x3000E5C5: call 0x30001dc0 */ /* not lifted */
  15960     RECOMP_FLAGS_IN();
  15961     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  15962     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15963     esp = esp + 0x18u; /* 0x3000E5CA: add esp, 0x18 */
  15964     _flag_k = FK_ADD;
  15965 L_3000E5CD:
  15966     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u);
  15967     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15968     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3000E5CD: add dword ptr [esi + 8], 0x14 */
  15969     _flag_k = FK_ADD;
  15970 L_3000E5D1:
  15971     ecx = ebp + (-0x30); /* 0x3000E5D1: lea ecx, [ebp - 0x30] */
  15972     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E5D4: mov dword ptr [ebp - 4], 0xffffffff */
  15973     RECOMP_ICALL(0x30007AB0u); /* 0x3000E5DB: call 0x30007ab0 */ /* not lifted */
  15974     RECOMP_FLAGS_IN();
  15975     eax = MEM32(ebp + (-0x10)); /* 0x3000E5E0: mov eax, dword ptr [ebp - 0x10] */
  15976     ecx = MEM32(ebp + (-0x14)); /* 0x3000E5E3: mov ecx, dword ptr [ebp - 0x14] */
  15977     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15978     eax = eax + 1; /* 0x3000E5E6: inc eax */
  15979     _flag_k = FK_INC;
  15980     /* cmp eax, ecx */ /* 0x3000E5E7: cmp eax, ecx */
  15981     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15983     _flag_k = FK_CMP;
  15984     MEM32(ebp + (-0x10)) = eax; /* 0x3000E5E9: mov dword ptr [ebp - 0x10], eax */
  15985     RECOMP_BACKEDGE();
  15986     if (CMP_L(_flag_a, _flag_b)) goto L_3000E44C; /* 0x3000E5EC: jl 0x3000e44c */
  15987 L_3000E5F2:
  15988     ecx = MEM32(ebp + (-0xC)); /* 0x3000E5F2: mov ecx, dword ptr [ebp - 0xc] */
  15989     edi = POP32_VAL(esp); /* 0x3000E5F5: pop edi */
  15990     esi = POP32_VAL(esp); /* 0x3000E5F6: pop esi */
  15991     ebx = POP32_VAL(esp); /* 0x3000E5F7: pop ebx */
  15992     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E5F8: mov dword ptr fs:[0], ecx */
  15993     esp = ebp; /* 0x3000E5FF: mov esp, ebp */
  15994     ebp = POP32_VAL(esp); /* 0x3000E601: pop ebp */
  15995     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E602: ret 4 */
  15996     RECOMP_REGS_OUT();
  15997 }
  15998 
  15999 void sub_3000E610(void) {
  16000     int _fpu_cmp = 0;
  16001     uint32_t _cf = 0;
  16002     int _df = 1;
  16003     uint32_t _flag_k = FK_NONE;
  16004     uint32_t _flag_a = 0, _flag_b = 0;
  16005     uint32_t _itail_tgt = 0;
  16006     RECOMP_REGS_LOCALS
  16007     RECOMP_ENTER(0x3000E610u);
  16008 
  16009 L_3000E610:
  16010     PUSH32(esp, ebp); /* 0x3000E610: push ebp */
  16011     ebp = esp; /* 0x3000E611: mov ebp, esp */
  16012     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000E613: push -1 */
  16013     PUSH32(esp, 0x300189C8u); /* 0x3000E615: push 0x300189c8 */
  16014     eax = MEM32(FS_BASE + (0)); /* 0x3000E61A: mov eax, dword ptr fs:[0] */
  16015     PUSH32(esp, eax); /* 0x3000E620: push eax */
  16016     MEM32(FS_BASE + (0)) = esp; /* 0x3000E621: mov dword ptr fs:[0], esp */
  16017     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
  16018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16019     esp = esp - 0x28u; /* 0x3000E628: sub esp, 0x28 */
  16020     _flag_k = FK_CMP;
  16021     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3000E62B: mov al, byte ptr [ebp - 0xd] */
  16022     PUSH32(esp, ebx); /* 0x3000E62E: push ebx */
  16023     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16024     ebx = 0; /* 0x3000E62F: xor ebx, ebx */
  16025     _cf = 0;
  16026     _flag_k = FK_TEST;
  16027     PUSH32(esp, esi); /* 0x3000E631: push esi */
  16028     PUSH32(esp, edi); /* 0x3000E632: push edi */
  16029     esi = ecx; /* 0x3000E633: mov esi, ecx */
  16030     MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x3000E635: mov byte ptr [ebp - 0x34], al */
  16031     MEM32(ebp + (-0x30)) = ebx; /* 0x3000E638: mov dword ptr [ebp - 0x30], ebx */
  16032     MEM32(ebp + (-0x2C)) = ebx; /* 0x3000E63B: mov dword ptr [ebp - 0x2c], ebx */
  16033     MEM32(ebp + (-0x28)) = ebx; /* 0x3000E63E: mov dword ptr [ebp - 0x28], ebx */
  16034     eax = MEM32(esi + 0x4); /* 0x3000E641: mov eax, dword ptr [esi + 4] */
  16035     /* cmp eax, ebx */ /* 0x3000E644: cmp eax, ebx */
  16036     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  16037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16038     _flag_k = FK_CMP;
  16039     MEM32(ebp + (-0x4)) = ebx; /* 0x3000E646: mov dword ptr [ebp - 4], ebx */
  16040     MEM32(ebp + (-0x20)) = ebx; /* 0x3000E649: mov dword ptr [ebp - 0x20], ebx */
  16041     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E682; /* 0x3000E64C: jne 0x3000e682 */
  16042 L_3000E64E:
  16043     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16044     edi = 0; /* 0x3000E64E: xor edi, edi */
  16045     _cf = 0;
  16046     _flag_k = FK_TEST;
  16047 L_3000E650:
  16048     ecx = ebp + (-0x34); /* 0x3000E650: lea ecx, [ebp - 0x34] */
  16049     RECOMP_ICALL(0x3000E9A0u); /* 0x3000E653: call 0x3000e9a0 */ /* not lifted */
  16050     RECOMP_FLAGS_IN();
  16051     /* cmp edi, eax */ /* 0x3000E658: cmp edi, eax */
  16052     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  16053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16054     _flag_k = FK_CMP;
  16055     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E66F; /* 0x3000E65A: jae 0x3000e66f */
  16056 L_3000E65C:
  16057     ecx = MEM32(ebp + (-0x30)); /* 0x3000E65C: mov ecx, dword ptr [ebp - 0x30] */
  16058     eax = MEM32(ebp + (-0x2C)); /* 0x3000E65F: mov eax, dword ptr [ebp - 0x2c] */
  16059     edx = ecx + edi * 4; /* 0x3000E662: lea edx, [ecx + edi*4] */
  16060     PUSH32(esp, eax); /* 0x3000E665: push eax */
  16061     PUSH32(esp, edx); /* 0x3000E666: push edx */
  16062     ecx = ebp + (-0x34); /* 0x3000E667: lea ecx, [ebp - 0x34] */
  16063     RECOMP_ICALL(0x3000EBD0u); /* 0x3000E66A: call 0x3000ebd0 */ /* not lifted */
  16064     RECOMP_FLAGS_IN();
  16065 L_3000E66F:
  16066     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16067     edi = 0; /* 0x3000E66F: xor edi, edi */
  16068     _cf = 0;
  16069     _flag_k = FK_TEST;
  16070     MEM32(ebp + (-0x18)) = edi; /* 0x3000E671: mov dword ptr [ebp - 0x18], edi */
  16071     MEM32(ebp + (-0x14)) = ebx; /* 0x3000E674: mov dword ptr [ebp - 0x14], ebx */
  16072 L_3000E677:
  16073     eax = MEM32(esi + 0x4); /* 0x3000E677: mov eax, dword ptr [esi + 4] */
  16074     /* cmp eax, ebx */ /* 0x3000E67A: cmp eax, ebx */
  16075     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  16076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16077     _flag_k = FK_CMP;
  16078     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E6B6; /* 0x3000E67C: jne 0x3000e6b6 */
  16079 L_3000E67E:
  16080     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16081     edx = 0; /* 0x3000E67E: xor edx, edx */
  16082     _cf = 0;
  16083     _flag_k = FK_TEST;
  16084     goto L_3000E6CC; /* 0x3000E680: jmp 0x3000e6cc */
  16085 L_3000E682:
  16086     ecx = MEM32(esi + 0x8); /* 0x3000E682: mov ecx, dword ptr [esi + 8] */
  16087     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16089     ecx = ecx - eax; /* 0x3000E685: sub ecx, eax */
  16090     _flag_k = FK_CMP;
  16091     eax = 0x66666667u; /* 0x3000E687: mov eax, 0x66666667 */
  16092     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E68C: imul ecx */
  16093       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  16094       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  16095     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E68E: sar edx, 3 */
  16096     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16097     edx = (uint32_t)((int32_t)edx >> 3u);
  16098     ecx = edx; /* 0x3000E691: mov ecx, edx */
  16099     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000E693: shr ecx, 0x1f */
  16100     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16101     ecx = ecx >> 31u; /* 0x3000E693: shr ecx, 0x1f */
  16102     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  16103     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16104     edx = edx + ecx; /* 0x3000E696: add edx, ecx */
  16105     _flag_k = FK_ADD;
  16106     edi = edx; /* 0x3000E698: mov edi, edx */
  16107     RECOMP_BACKEDGE();
  16108     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_3000E650; /* 0x3000E69A: je 0x3000e650 */
  16109 L_3000E69C:
  16110     edx = ebp + (-0x20); /* 0x3000E69C: lea edx, [ebp - 0x20] */
  16111     PUSH32(esp, edx); /* 0x3000E69F: push edx */
  16112     ecx = ebp + (-0x34); /* 0x3000E6A0: lea ecx, [ebp - 0x34] */
  16113     RECOMP_ICALL(0x3000E9A0u); /* 0x3000E6A3: call 0x3000e9a0 */ /* not lifted */
  16114     RECOMP_FLAGS_IN();
  16115     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  16116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16117     edi = edi - eax; /* 0x3000E6A8: sub edi, eax */
  16118     _flag_k = FK_CMP;
  16119     PUSH32(esp, edi); /* 0x3000E6AA: push edi */
  16120     PUSH32(esp, ebx); /* 0x3000E6AB: push ebx */
  16121     ecx = ebp + (-0x34); /* 0x3000E6AC: lea ecx, [ebp - 0x34] */
  16122     RECOMP_ICALL(0x3000E9C0u); /* 0x3000E6AF: call 0x3000e9c0 */ /* not lifted */
  16123     RECOMP_FLAGS_IN();
  16124     RECOMP_BACKEDGE();
  16125     goto L_3000E66F; /* 0x3000E6B4: jmp 0x3000e66f */
  16126 L_3000E6B6:
  16127     ecx = MEM32(esi + 0x8); /* 0x3000E6B6: mov ecx, dword ptr [esi + 8] */
  16128     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16130     ecx = ecx - eax; /* 0x3000E6B9: sub ecx, eax */
  16131     _flag_k = FK_CMP;
  16132     eax = 0x66666667u; /* 0x3000E6BB: mov eax, 0x66666667 */
  16133     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6C0: imul ecx */
  16134       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  16135       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  16136     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6C2: sar edx, 3 */
  16137     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16138     edx = (uint32_t)((int32_t)edx >> 3u);
  16139     eax = edx; /* 0x3000E6C5: mov eax, edx */
  16140     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E6C7: shr eax, 0x1f */
  16141     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16142     eax = eax >> 31u; /* 0x3000E6C7: shr eax, 0x1f */
  16143     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  16144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16145     edx = edx + eax; /* 0x3000E6CA: add edx, eax */
  16146     _flag_k = FK_ADD;
  16147 L_3000E6CC:
  16148     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  16149     edx = edx - 1; /* 0x3000E6CC: dec edx */
  16150     _flag_k = FK_DEC;
  16151     /* cmp edi, edx */ /* 0x3000E6CD: cmp edi, edx */
  16152     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  16153     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16154     _flag_k = FK_CMP;
  16155     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7C6; /* 0x3000E6CF: jge 0x3000e7c6 */
  16156 L_3000E6D5:
  16157     ecx = MEM32(ebp + (-0x14)); /* 0x3000E6D5: mov ecx, dword ptr [ebp - 0x14] */
  16158     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  16159     edi = edi + 1; /* 0x3000E6D8: inc edi */
  16160     _flag_k = FK_INC;
  16161     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
  16162     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16163     ecx = ecx + 0x14u; /* 0x3000E6D9: add ecx, 0x14 */
  16164     _flag_k = FK_ADD;
  16165     MEM32(ebp + (-0x24)) = edi; /* 0x3000E6DC: mov dword ptr [ebp - 0x24], edi */
  16166     ebx = edi; /* 0x3000E6DF: mov ebx, edi */
  16167     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000E6E1: mov dword ptr [ebp - 0x1c], ecx */
  16168 L_3000E6E4:
  16169     edi = MEM32(esi + 0x4); /* 0x3000E6E4: mov edi, dword ptr [esi + 4] */
  16170     /* test edi, edi */ /* 0x3000E6E7: test edi, edi */
  16171     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  16172     _cf = 0;
  16173     _flag_k = FK_TEST;
  16174     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E6EF; /* 0x3000E6E9: jne 0x3000e6ef */
  16175 L_3000E6EB:
  16176     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16177     edx = 0; /* 0x3000E6EB: xor edx, edx */
  16178     _cf = 0;
  16179     _flag_k = FK_TEST;
  16180     goto L_3000E705; /* 0x3000E6ED: jmp 0x3000e705 */
  16181 L_3000E6EF:
  16182     ecx = MEM32(esi + 0x8); /* 0x3000E6EF: mov ecx, dword ptr [esi + 8] */
  16183     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  16184     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16185     ecx = ecx - edi; /* 0x3000E6F2: sub ecx, edi */
  16186     _flag_k = FK_CMP;
  16187     eax = 0x66666667u; /* 0x3000E6F4: mov eax, 0x66666667 */
  16188     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6F9: imul ecx */
  16189       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  16190       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  16191     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6FB: sar edx, 3 */
  16192     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16193     edx = (uint32_t)((int32_t)edx >> 3u);
  16194     eax = edx; /* 0x3000E6FE: mov eax, edx */
  16195     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E700: shr eax, 0x1f */
  16196     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16197     eax = eax >> 31u; /* 0x3000E700: shr eax, 0x1f */
  16198     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  16199     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16200     edx = edx + eax; /* 0x3000E703: add edx, eax */
  16201     _flag_k = FK_ADD;
  16202 L_3000E705:
  16203     /* cmp ebx, edx */ /* 0x3000E705: cmp ebx, edx */
  16204     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  16205     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16206     _flag_k = FK_CMP;
  16207     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E75C; /* 0x3000E707: jge 0x3000e75c */
  16208 L_3000E709:
  16209     ecx = MEM32(ebp + (-0x14)); /* 0x3000E709: mov ecx, dword ptr [ebp - 0x14] */
  16210     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  16211     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16212     ecx = ecx + edi; /* 0x3000E70C: add ecx, edi */
  16213     _flag_k = FK_ADD;
  16214     RECOMP_ICALL(0x30008570u); /* 0x3000E70E: call 0x30008570 */ /* not lifted */
  16215     RECOMP_FLAGS_IN();
  16216     /* test LO8(eax), LO8(eax) */ /* 0x3000E713: test al, al */
  16217     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16218     _cf = 0;
  16219     _flag_k = FK_NARROW(FK_TEST, 24);
  16220     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E774; /* 0x3000E715: jne 0x3000e774 */
  16221 L_3000E717:
  16222     eax = MEM32(esi + 0x4); /* 0x3000E717: mov eax, dword ptr [esi + 4] */
  16223     edi = MEM32(ebp + (-0x1C)); /* 0x3000E71A: mov edi, dword ptr [ebp - 0x1c] */
  16224     ecx = MEM32(ebp + (-0x14)); /* 0x3000E71D: mov ecx, dword ptr [ebp - 0x14] */
  16225     edx = edi + eax; /* 0x3000E720: lea edx, [edi + eax] */
  16226     PUSH32(esp, edx); /* 0x3000E723: push edx */
  16227     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16228     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16229     ecx = ecx + eax; /* 0x3000E724: add ecx, eax */
  16230     _flag_k = FK_ADD;
  16231     RECOMP_ICALL(0x30008240u); /* 0x3000E726: call 0x30008240 */ /* not lifted */
  16232     RECOMP_FLAGS_IN();
  16233     /* test LO8(eax), LO8(eax) */ /* 0x3000E72B: test al, al */
  16234     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16235     _cf = 0;
  16236     _flag_k = FK_NARROW(FK_TEST, 24);
  16237     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E753; /* 0x3000E72D: je 0x3000e753 */
  16238 L_3000E72F:
  16239     eax = MEM32(esi + 0x4); /* 0x3000E72F: mov eax, dword ptr [esi + 4] */
  16240     ecx = MEM32(ebp + (-0x14)); /* 0x3000E732: mov ecx, dword ptr [ebp - 0x14] */
  16241     edx = edi + eax; /* 0x3000E735: lea edx, [edi + eax] */
  16242     PUSH32(esp, edx); /* 0x3000E738: push edx */
  16243     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16244     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16245     ecx = ecx + eax; /* 0x3000E739: add ecx, eax */
  16246     _flag_k = FK_ADD;
  16247     RECOMP_ICALL(0x30008350u); /* 0x3000E73B: call 0x30008350 */ /* not lifted */
  16248     RECOMP_FLAGS_IN();
  16249     /* test LO8(eax), LO8(eax) */ /* 0x3000E740: test al, al */
  16250     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16251     _cf = 0;
  16252     _flag_k = FK_NARROW(FK_TEST, 24);
  16253     eax = MEM32(ebp + (-0x30)); /* 0x3000E742: mov eax, dword ptr [ebp - 0x30] */
  16254     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E7AA; /* 0x3000E745: je 0x3000e7aa */
  16255 L_3000E747:
  16256     ecx = MEM32(ebp + (-0x18)); /* 0x3000E747: mov ecx, dword ptr [ebp - 0x18] */
  16257     _flag_a = (uint32_t)(MEM32(eax + ecx * 4)); _flag_b = (uint32_t)(1);
  16258     MEM32(eax + ecx * 4) = MEM32(eax + ecx * 4) + 1; /* 0x3000E74A: inc dword ptr [eax + ecx*4] */
  16259     _flag_k = FK_INC;
  16260     eax = MEM32(ebp + (-0x30)); /* 0x3000E74D: mov eax, dword ptr [ebp - 0x30] */
  16261     _flag_a = (uint32_t)(MEM32(eax + ebx * 4)); _flag_b = (uint32_t)(1);
  16262     MEM32(eax + ebx * 4) = MEM32(eax + ebx * 4) + 1; /* 0x3000E750: inc dword ptr [eax + ebx*4] */
  16263     _flag_k = FK_INC;
  16264 L_3000E753:
  16265     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  16266     ebx = ebx + 1; /* 0x3000E753: inc ebx */
  16267     _flag_k = FK_INC;
  16268     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  16269     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16270     edi = edi + 0x14u; /* 0x3000E754: add edi, 0x14 */
  16271     _flag_k = FK_ADD;
  16272     MEM32(ebp + (-0x1C)) = edi; /* 0x3000E757: mov dword ptr [ebp - 0x1c], edi */
  16273     RECOMP_BACKEDGE();
  16274     goto L_3000E6E4; /* 0x3000E75A: jmp 0x3000e6e4 */
  16275 L_3000E75C:
  16276     eax = MEM32(ebp + (-0x14)); /* 0x3000E75C: mov eax, dword ptr [ebp - 0x14] */
  16277     edx = MEM32(ebp + (-0x24)); /* 0x3000E75F: mov edx, dword ptr [ebp - 0x24] */
  16278     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  16279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16280     eax = eax + 0x14u; /* 0x3000E762: add eax, 0x14 */
  16281     _flag_k = FK_ADD;
  16282     MEM32(ebp + (-0x18)) = edx; /* 0x3000E765: mov dword ptr [ebp - 0x18], edx */
  16283     MEM32(ebp + (-0x14)) = eax; /* 0x3000E768: mov dword ptr [ebp - 0x14], eax */
  16284     edi = edx; /* 0x3000E76B: mov edi, edx */
  16285     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16286     ebx = 0; /* 0x3000E76D: xor ebx, ebx */
  16287     _cf = 0;
  16288     _flag_k = FK_TEST;
  16289     RECOMP_BACKEDGE();
  16290     goto L_3000E677; /* 0x3000E76F: jmp 0x3000e677 */
  16291 L_3000E774:
  16292     eax = MEM32(ebp + (-0x2C)); /* 0x3000E774: mov eax, dword ptr [ebp - 0x2c] */
  16293     ecx = MEM32(ebp + (-0x30)); /* 0x3000E777: mov ecx, dword ptr [ebp - 0x30] */
  16294     PUSH32(esp, eax); /* 0x3000E77A: push eax */
  16295     PUSH32(esp, ecx); /* 0x3000E77B: push ecx */
  16296     ecx = ebp + (-0x34); /* 0x3000E77C: lea ecx, [ebp - 0x34] */
  16297     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E77F: mov dword ptr [ebp - 4], 0xffffffff */
  16298     RECOMP_ICALL(0x3000EC10u); /* 0x3000E786: call 0x3000ec10 */ /* not lifted */
  16299     RECOMP_FLAGS_IN();
  16300     edx = MEM32(ebp + (-0x30)); /* 0x3000E78B: mov edx, dword ptr [ebp - 0x30] */
  16301 L_3000E78E:
  16302     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  16303     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  16304     RECOMP_FLAGS_IN();
  16305     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16307     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  16308     _flag_k = FK_ADD;
  16309     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  16310     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  16311     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  16312     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  16313     _cf = 0;
  16314     _flag_k = FK_NARROW(FK_TEST, 24);
  16315     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  16316     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  16317     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  16318     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  16319     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  16320     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  16321 L_3000E7AA:
  16322     PUSH32(esp, eax); /* 0x3000E7AA: push eax */
  16323     RECOMP_ICALL(0x30018080u); /* 0x3000E7AB: call 0x30018080 */ /* not lifted */
  16324     RECOMP_FLAGS_IN();
  16325     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16326     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16327     esp = esp + 4; /* 0x3000E7B0: add esp, 4 */
  16328     _flag_k = FK_ADD;
  16329     edi = POP32_VAL(esp); /* 0x3000E7B3: pop edi */
  16330     esi = POP32_VAL(esp); /* 0x3000E7B4: pop esi */
  16331     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  16332     SET_LO8(eax, 0); /* 0x3000E7B5: xor al, al */
  16333     _cf = 0;
  16334     _flag_k = FK_NARROW(FK_TEST, 24);
  16335     ebx = POP32_VAL(esp); /* 0x3000E7B7: pop ebx */
  16336     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7B8: mov ecx, dword ptr [ebp - 0xc] */
  16337     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E7BB: mov dword ptr fs:[0], ecx */
  16338     esp = ebp; /* 0x3000E7C2: mov esp, ebp */
  16339     ebp = POP32_VAL(esp); /* 0x3000E7C4: pop ebp */
  16340     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7C5: ret  */
  16341 L_3000E7C6:
  16342     esi = MEM32(esi + 0x4); /* 0x3000E7C6: mov esi, dword ptr [esi + 4] */
  16343     edi = MEM32(ebp + (-0x2C)); /* 0x3000E7C9: mov edi, dword ptr [ebp - 0x2c] */
  16344     edx = MEM32(ebp + (-0x30)); /* 0x3000E7CC: mov edx, dword ptr [ebp - 0x30] */
  16345     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16346     ecx = 0; /* 0x3000E7CF: xor ecx, ecx */
  16347     _cf = 0;
  16348     _flag_k = FK_TEST;
  16349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  16350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16351     esi = esi + 4; /* 0x3000E7D1: add esi, 4 */
  16352     _flag_k = FK_ADD;
  16353 L_3000E7D4:
  16354     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  16355     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  16356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16357     _flag_k = FK_CMP;
  16358     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  16359 L_3000E7D8:
  16360     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16361     eax = 0; /* 0x3000E7D8: xor eax, eax */
  16362     _cf = 0;
  16363     _flag_k = FK_TEST;
  16364     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  16365 L_3000E7DC:
  16366     eax = edi; /* 0x3000E7DC: mov eax, edi */
  16367     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  16368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16369     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  16370     _flag_k = FK_CMP;
  16371     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  16372     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16373     eax = (uint32_t)((int32_t)eax >> 2u);
  16374 L_3000E7E3:
  16375     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  16376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16378     _flag_k = FK_CMP;
  16379     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  16380 L_3000E7E7:
  16381     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  16382     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  16383     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  16384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16385     _flag_k = FK_CMP;
  16386     RECOMP_BACKEDGE();
  16387     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  16388 L_3000E7EE:
  16389     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  16390     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  16391     _flag_k = FK_INC;
  16392     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  16393     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16394     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  16395     _flag_k = FK_ADD;
  16396     RECOMP_BACKEDGE();
  16397     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  16398 L_3000E7F4:
  16399     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  16400     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  16401     RECOMP_FLAGS_IN();
  16402     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  16403     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16404     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16405     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  16406     _flag_k = FK_ADD;
  16407     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  16408     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  16409     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  16410     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  16411     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  16412     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  16413     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  16414     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  16415     RECOMP_REGS_OUT();
  16416 }
  16417 
  16418 void sub_3000E650(void) {
  16419     int _fpu_cmp = 0;
  16420     uint32_t _cf = 0;
  16421     int _df = 1;
  16422     uint32_t _flag_k = FK_NONE;
  16423     uint32_t _flag_a = 0, _flag_b = 0;
  16424     uint32_t _itail_tgt = 0;
  16425     RECOMP_REGS_LOCALS
  16426     RECOMP_ENTER(0x3000E650u);
  16427 
  16428 L_3000E650:
  16429     ecx = ebp + (-0x34); /* 0x3000E650: lea ecx, [ebp - 0x34] */
  16430     RECOMP_ICALL(0x3000E9A0u); /* 0x3000E653: call 0x3000e9a0 */ /* not lifted */
  16431     RECOMP_FLAGS_IN();
  16432     /* cmp edi, eax */ /* 0x3000E658: cmp edi, eax */
  16433     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  16434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16435     _flag_k = FK_CMP;
  16436     if (CMP_AE(_flag_a, _flag_b)) goto L_3000E66F; /* 0x3000E65A: jae 0x3000e66f */
  16437 L_3000E65C:
  16438     ecx = MEM32(ebp + (-0x30)); /* 0x3000E65C: mov ecx, dword ptr [ebp - 0x30] */
  16439     eax = MEM32(ebp + (-0x2C)); /* 0x3000E65F: mov eax, dword ptr [ebp - 0x2c] */
  16440     edx = ecx + edi * 4; /* 0x3000E662: lea edx, [ecx + edi*4] */
  16441     PUSH32(esp, eax); /* 0x3000E665: push eax */
  16442     PUSH32(esp, edx); /* 0x3000E666: push edx */
  16443     ecx = ebp + (-0x34); /* 0x3000E667: lea ecx, [ebp - 0x34] */
  16444     RECOMP_ICALL(0x3000EBD0u); /* 0x3000E66A: call 0x3000ebd0 */ /* not lifted */
  16445     RECOMP_FLAGS_IN();
  16446 L_3000E66F:
  16447     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16448     edi = 0; /* 0x3000E66F: xor edi, edi */
  16449     _cf = 0;
  16450     _flag_k = FK_TEST;
  16451     MEM32(ebp + (-0x18)) = edi; /* 0x3000E671: mov dword ptr [ebp - 0x18], edi */
  16452     MEM32(ebp + (-0x14)) = ebx; /* 0x3000E674: mov dword ptr [ebp - 0x14], ebx */
  16453 L_3000E677:
  16454     eax = MEM32(esi + 0x4); /* 0x3000E677: mov eax, dword ptr [esi + 4] */
  16455     /* cmp eax, ebx */ /* 0x3000E67A: cmp eax, ebx */
  16456     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  16457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16458     _flag_k = FK_CMP;
  16459     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E6B6; /* 0x3000E67C: jne 0x3000e6b6 */
  16460 L_3000E67E:
  16461     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16462     edx = 0; /* 0x3000E67E: xor edx, edx */
  16463     _cf = 0;
  16464     _flag_k = FK_TEST;
  16465     goto L_3000E6CC; /* 0x3000E680: jmp 0x3000e6cc */
  16466 L_3000E6B6:
  16467     ecx = MEM32(esi + 0x8); /* 0x3000E6B6: mov ecx, dword ptr [esi + 8] */
  16468     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16470     ecx = ecx - eax; /* 0x3000E6B9: sub ecx, eax */
  16471     _flag_k = FK_CMP;
  16472     eax = 0x66666667u; /* 0x3000E6BB: mov eax, 0x66666667 */
  16473     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6C0: imul ecx */
  16474       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  16475       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  16476     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6C2: sar edx, 3 */
  16477     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16478     edx = (uint32_t)((int32_t)edx >> 3u);
  16479     eax = edx; /* 0x3000E6C5: mov eax, edx */
  16480     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E6C7: shr eax, 0x1f */
  16481     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16482     eax = eax >> 31u; /* 0x3000E6C7: shr eax, 0x1f */
  16483     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  16484     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16485     edx = edx + eax; /* 0x3000E6CA: add edx, eax */
  16486     _flag_k = FK_ADD;
  16487 L_3000E6CC:
  16488     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  16489     edx = edx - 1; /* 0x3000E6CC: dec edx */
  16490     _flag_k = FK_DEC;
  16491     /* cmp edi, edx */ /* 0x3000E6CD: cmp edi, edx */
  16492     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  16493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16494     _flag_k = FK_CMP;
  16495     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7C6; /* 0x3000E6CF: jge 0x3000e7c6 */
  16496 L_3000E6D5:
  16497     ecx = MEM32(ebp + (-0x14)); /* 0x3000E6D5: mov ecx, dword ptr [ebp - 0x14] */
  16498     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  16499     edi = edi + 1; /* 0x3000E6D8: inc edi */
  16500     _flag_k = FK_INC;
  16501     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
  16502     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16503     ecx = ecx + 0x14u; /* 0x3000E6D9: add ecx, 0x14 */
  16504     _flag_k = FK_ADD;
  16505     MEM32(ebp + (-0x24)) = edi; /* 0x3000E6DC: mov dword ptr [ebp - 0x24], edi */
  16506     ebx = edi; /* 0x3000E6DF: mov ebx, edi */
  16507     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000E6E1: mov dword ptr [ebp - 0x1c], ecx */
  16508 L_3000E6E4:
  16509     edi = MEM32(esi + 0x4); /* 0x3000E6E4: mov edi, dword ptr [esi + 4] */
  16510     /* test edi, edi */ /* 0x3000E6E7: test edi, edi */
  16511     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  16512     _cf = 0;
  16513     _flag_k = FK_TEST;
  16514     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E6EF; /* 0x3000E6E9: jne 0x3000e6ef */
  16515 L_3000E6EB:
  16516     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16517     edx = 0; /* 0x3000E6EB: xor edx, edx */
  16518     _cf = 0;
  16519     _flag_k = FK_TEST;
  16520     goto L_3000E705; /* 0x3000E6ED: jmp 0x3000e705 */
  16521 L_3000E6EF:
  16522     ecx = MEM32(esi + 0x8); /* 0x3000E6EF: mov ecx, dword ptr [esi + 8] */
  16523     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  16524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16525     ecx = ecx - edi; /* 0x3000E6F2: sub ecx, edi */
  16526     _flag_k = FK_CMP;
  16527     eax = 0x66666667u; /* 0x3000E6F4: mov eax, 0x66666667 */
  16528     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6F9: imul ecx */
  16529       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  16530       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  16531     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6FB: sar edx, 3 */
  16532     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16533     edx = (uint32_t)((int32_t)edx >> 3u);
  16534     eax = edx; /* 0x3000E6FE: mov eax, edx */
  16535     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E700: shr eax, 0x1f */
  16536     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16537     eax = eax >> 31u; /* 0x3000E700: shr eax, 0x1f */
  16538     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  16539     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16540     edx = edx + eax; /* 0x3000E703: add edx, eax */
  16541     _flag_k = FK_ADD;
  16542 L_3000E705:
  16543     /* cmp ebx, edx */ /* 0x3000E705: cmp ebx, edx */
  16544     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  16545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16546     _flag_k = FK_CMP;
  16547     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E75C; /* 0x3000E707: jge 0x3000e75c */
  16548 L_3000E709:
  16549     ecx = MEM32(ebp + (-0x14)); /* 0x3000E709: mov ecx, dword ptr [ebp - 0x14] */
  16550     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  16551     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16552     ecx = ecx + edi; /* 0x3000E70C: add ecx, edi */
  16553     _flag_k = FK_ADD;
  16554     RECOMP_ICALL(0x30008570u); /* 0x3000E70E: call 0x30008570 */ /* not lifted */
  16555     RECOMP_FLAGS_IN();
  16556     /* test LO8(eax), LO8(eax) */ /* 0x3000E713: test al, al */
  16557     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16558     _cf = 0;
  16559     _flag_k = FK_NARROW(FK_TEST, 24);
  16560     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E774; /* 0x3000E715: jne 0x3000e774 */
  16561 L_3000E717:
  16562     eax = MEM32(esi + 0x4); /* 0x3000E717: mov eax, dword ptr [esi + 4] */
  16563     edi = MEM32(ebp + (-0x1C)); /* 0x3000E71A: mov edi, dword ptr [ebp - 0x1c] */
  16564     ecx = MEM32(ebp + (-0x14)); /* 0x3000E71D: mov ecx, dword ptr [ebp - 0x14] */
  16565     edx = edi + eax; /* 0x3000E720: lea edx, [edi + eax] */
  16566     PUSH32(esp, edx); /* 0x3000E723: push edx */
  16567     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16568     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16569     ecx = ecx + eax; /* 0x3000E724: add ecx, eax */
  16570     _flag_k = FK_ADD;
  16571     RECOMP_ICALL(0x30008240u); /* 0x3000E726: call 0x30008240 */ /* not lifted */
  16572     RECOMP_FLAGS_IN();
  16573     /* test LO8(eax), LO8(eax) */ /* 0x3000E72B: test al, al */
  16574     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16575     _cf = 0;
  16576     _flag_k = FK_NARROW(FK_TEST, 24);
  16577     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E753; /* 0x3000E72D: je 0x3000e753 */
  16578 L_3000E72F:
  16579     eax = MEM32(esi + 0x4); /* 0x3000E72F: mov eax, dword ptr [esi + 4] */
  16580     ecx = MEM32(ebp + (-0x14)); /* 0x3000E732: mov ecx, dword ptr [ebp - 0x14] */
  16581     edx = edi + eax; /* 0x3000E735: lea edx, [edi + eax] */
  16582     PUSH32(esp, edx); /* 0x3000E738: push edx */
  16583     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16584     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16585     ecx = ecx + eax; /* 0x3000E739: add ecx, eax */
  16586     _flag_k = FK_ADD;
  16587     RECOMP_ICALL(0x30008350u); /* 0x3000E73B: call 0x30008350 */ /* not lifted */
  16588     RECOMP_FLAGS_IN();
  16589     /* test LO8(eax), LO8(eax) */ /* 0x3000E740: test al, al */
  16590     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16591     _cf = 0;
  16592     _flag_k = FK_NARROW(FK_TEST, 24);
  16593     eax = MEM32(ebp + (-0x30)); /* 0x3000E742: mov eax, dword ptr [ebp - 0x30] */
  16594     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E7AA; /* 0x3000E745: je 0x3000e7aa */
  16595 L_3000E747:
  16596     ecx = MEM32(ebp + (-0x18)); /* 0x3000E747: mov ecx, dword ptr [ebp - 0x18] */
  16597     _flag_a = (uint32_t)(MEM32(eax + ecx * 4)); _flag_b = (uint32_t)(1);
  16598     MEM32(eax + ecx * 4) = MEM32(eax + ecx * 4) + 1; /* 0x3000E74A: inc dword ptr [eax + ecx*4] */
  16599     _flag_k = FK_INC;
  16600     eax = MEM32(ebp + (-0x30)); /* 0x3000E74D: mov eax, dword ptr [ebp - 0x30] */
  16601     _flag_a = (uint32_t)(MEM32(eax + ebx * 4)); _flag_b = (uint32_t)(1);
  16602     MEM32(eax + ebx * 4) = MEM32(eax + ebx * 4) + 1; /* 0x3000E750: inc dword ptr [eax + ebx*4] */
  16603     _flag_k = FK_INC;
  16604 L_3000E753:
  16605     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  16606     ebx = ebx + 1; /* 0x3000E753: inc ebx */
  16607     _flag_k = FK_INC;
  16608     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  16609     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16610     edi = edi + 0x14u; /* 0x3000E754: add edi, 0x14 */
  16611     _flag_k = FK_ADD;
  16612     MEM32(ebp + (-0x1C)) = edi; /* 0x3000E757: mov dword ptr [ebp - 0x1c], edi */
  16613     RECOMP_BACKEDGE();
  16614     goto L_3000E6E4; /* 0x3000E75A: jmp 0x3000e6e4 */
  16615 L_3000E75C:
  16616     eax = MEM32(ebp + (-0x14)); /* 0x3000E75C: mov eax, dword ptr [ebp - 0x14] */
  16617     edx = MEM32(ebp + (-0x24)); /* 0x3000E75F: mov edx, dword ptr [ebp - 0x24] */
  16618     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  16619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16620     eax = eax + 0x14u; /* 0x3000E762: add eax, 0x14 */
  16621     _flag_k = FK_ADD;
  16622     MEM32(ebp + (-0x18)) = edx; /* 0x3000E765: mov dword ptr [ebp - 0x18], edx */
  16623     MEM32(ebp + (-0x14)) = eax; /* 0x3000E768: mov dword ptr [ebp - 0x14], eax */
  16624     edi = edx; /* 0x3000E76B: mov edi, edx */
  16625     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16626     ebx = 0; /* 0x3000E76D: xor ebx, ebx */
  16627     _cf = 0;
  16628     _flag_k = FK_TEST;
  16629     RECOMP_BACKEDGE();
  16630     goto L_3000E677; /* 0x3000E76F: jmp 0x3000e677 */
  16631 L_3000E774:
  16632     eax = MEM32(ebp + (-0x2C)); /* 0x3000E774: mov eax, dword ptr [ebp - 0x2c] */
  16633     ecx = MEM32(ebp + (-0x30)); /* 0x3000E777: mov ecx, dword ptr [ebp - 0x30] */
  16634     PUSH32(esp, eax); /* 0x3000E77A: push eax */
  16635     PUSH32(esp, ecx); /* 0x3000E77B: push ecx */
  16636     ecx = ebp + (-0x34); /* 0x3000E77C: lea ecx, [ebp - 0x34] */
  16637     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E77F: mov dword ptr [ebp - 4], 0xffffffff */
  16638     RECOMP_ICALL(0x3000EC10u); /* 0x3000E786: call 0x3000ec10 */ /* not lifted */
  16639     RECOMP_FLAGS_IN();
  16640     edx = MEM32(ebp + (-0x30)); /* 0x3000E78B: mov edx, dword ptr [ebp - 0x30] */
  16641 L_3000E78E:
  16642     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  16643     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  16644     RECOMP_FLAGS_IN();
  16645     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16646     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16647     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  16648     _flag_k = FK_ADD;
  16649     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  16650     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  16651     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  16652     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  16653     _cf = 0;
  16654     _flag_k = FK_NARROW(FK_TEST, 24);
  16655     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  16656     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  16657     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  16658     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  16659     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  16660     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  16661 L_3000E7AA:
  16662     PUSH32(esp, eax); /* 0x3000E7AA: push eax */
  16663     RECOMP_ICALL(0x30018080u); /* 0x3000E7AB: call 0x30018080 */ /* not lifted */
  16664     RECOMP_FLAGS_IN();
  16665     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16666     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16667     esp = esp + 4; /* 0x3000E7B0: add esp, 4 */
  16668     _flag_k = FK_ADD;
  16669     edi = POP32_VAL(esp); /* 0x3000E7B3: pop edi */
  16670     esi = POP32_VAL(esp); /* 0x3000E7B4: pop esi */
  16671     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  16672     SET_LO8(eax, 0); /* 0x3000E7B5: xor al, al */
  16673     _cf = 0;
  16674     _flag_k = FK_NARROW(FK_TEST, 24);
  16675     ebx = POP32_VAL(esp); /* 0x3000E7B7: pop ebx */
  16676     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7B8: mov ecx, dword ptr [ebp - 0xc] */
  16677     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E7BB: mov dword ptr fs:[0], ecx */
  16678     esp = ebp; /* 0x3000E7C2: mov esp, ebp */
  16679     ebp = POP32_VAL(esp); /* 0x3000E7C4: pop ebp */
  16680     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7C5: ret  */
  16681 L_3000E7C6:
  16682     esi = MEM32(esi + 0x4); /* 0x3000E7C6: mov esi, dword ptr [esi + 4] */
  16683     edi = MEM32(ebp + (-0x2C)); /* 0x3000E7C9: mov edi, dword ptr [ebp - 0x2c] */
  16684     edx = MEM32(ebp + (-0x30)); /* 0x3000E7CC: mov edx, dword ptr [ebp - 0x30] */
  16685     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16686     ecx = 0; /* 0x3000E7CF: xor ecx, ecx */
  16687     _cf = 0;
  16688     _flag_k = FK_TEST;
  16689     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  16690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16691     esi = esi + 4; /* 0x3000E7D1: add esi, 4 */
  16692     _flag_k = FK_ADD;
  16693 L_3000E7D4:
  16694     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  16695     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  16696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16697     _flag_k = FK_CMP;
  16698     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  16699 L_3000E7D8:
  16700     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16701     eax = 0; /* 0x3000E7D8: xor eax, eax */
  16702     _cf = 0;
  16703     _flag_k = FK_TEST;
  16704     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  16705 L_3000E7DC:
  16706     eax = edi; /* 0x3000E7DC: mov eax, edi */
  16707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  16708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16709     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  16710     _flag_k = FK_CMP;
  16711     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  16712     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16713     eax = (uint32_t)((int32_t)eax >> 2u);
  16714 L_3000E7E3:
  16715     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  16716     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16718     _flag_k = FK_CMP;
  16719     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  16720 L_3000E7E7:
  16721     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  16722     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  16723     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  16724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16725     _flag_k = FK_CMP;
  16726     RECOMP_BACKEDGE();
  16727     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  16728 L_3000E7EE:
  16729     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  16730     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  16731     _flag_k = FK_INC;
  16732     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  16733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16734     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  16735     _flag_k = FK_ADD;
  16736     RECOMP_BACKEDGE();
  16737     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  16738 L_3000E7F4:
  16739     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  16740     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  16741     RECOMP_FLAGS_IN();
  16742     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  16743     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16745     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  16746     _flag_k = FK_ADD;
  16747     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  16748     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  16749     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  16750     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  16751     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  16752     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  16753     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  16754     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  16755     RECOMP_REGS_OUT();
  16756 }
  16757 
  16758 void sub_3000E66F(void) {
  16759     int _fpu_cmp = 0;
  16760     uint32_t _cf = 0;
  16761     int _df = 1;
  16762     uint32_t _flag_k = FK_NONE;
  16763     uint32_t _flag_a = 0, _flag_b = 0;
  16764     uint32_t _itail_tgt = 0;
  16765     RECOMP_REGS_LOCALS
  16766     RECOMP_ENTER(0x3000E66Fu);
  16767 
  16768 L_3000E66F:
  16769     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16770     edi = 0; /* 0x3000E66F: xor edi, edi */
  16771     _cf = 0;
  16772     _flag_k = FK_TEST;
  16773     MEM32(ebp + (-0x18)) = edi; /* 0x3000E671: mov dword ptr [ebp - 0x18], edi */
  16774     MEM32(ebp + (-0x14)) = ebx; /* 0x3000E674: mov dword ptr [ebp - 0x14], ebx */
  16775 L_3000E677:
  16776     eax = MEM32(esi + 0x4); /* 0x3000E677: mov eax, dword ptr [esi + 4] */
  16777     /* cmp eax, ebx */ /* 0x3000E67A: cmp eax, ebx */
  16778     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  16779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16780     _flag_k = FK_CMP;
  16781     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E6B6; /* 0x3000E67C: jne 0x3000e6b6 */
  16782 L_3000E67E:
  16783     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16784     edx = 0; /* 0x3000E67E: xor edx, edx */
  16785     _cf = 0;
  16786     _flag_k = FK_TEST;
  16787     goto L_3000E6CC; /* 0x3000E680: jmp 0x3000e6cc */
  16788 L_3000E6B6:
  16789     ecx = MEM32(esi + 0x8); /* 0x3000E6B6: mov ecx, dword ptr [esi + 8] */
  16790     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16792     ecx = ecx - eax; /* 0x3000E6B9: sub ecx, eax */
  16793     _flag_k = FK_CMP;
  16794     eax = 0x66666667u; /* 0x3000E6BB: mov eax, 0x66666667 */
  16795     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6C0: imul ecx */
  16796       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  16797       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  16798     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6C2: sar edx, 3 */
  16799     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16800     edx = (uint32_t)((int32_t)edx >> 3u);
  16801     eax = edx; /* 0x3000E6C5: mov eax, edx */
  16802     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E6C7: shr eax, 0x1f */
  16803     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16804     eax = eax >> 31u; /* 0x3000E6C7: shr eax, 0x1f */
  16805     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  16806     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16807     edx = edx + eax; /* 0x3000E6CA: add edx, eax */
  16808     _flag_k = FK_ADD;
  16809 L_3000E6CC:
  16810     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  16811     edx = edx - 1; /* 0x3000E6CC: dec edx */
  16812     _flag_k = FK_DEC;
  16813     /* cmp edi, edx */ /* 0x3000E6CD: cmp edi, edx */
  16814     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  16815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16816     _flag_k = FK_CMP;
  16817     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7C6; /* 0x3000E6CF: jge 0x3000e7c6 */
  16818 L_3000E6D5:
  16819     ecx = MEM32(ebp + (-0x14)); /* 0x3000E6D5: mov ecx, dword ptr [ebp - 0x14] */
  16820     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  16821     edi = edi + 1; /* 0x3000E6D8: inc edi */
  16822     _flag_k = FK_INC;
  16823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
  16824     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16825     ecx = ecx + 0x14u; /* 0x3000E6D9: add ecx, 0x14 */
  16826     _flag_k = FK_ADD;
  16827     MEM32(ebp + (-0x24)) = edi; /* 0x3000E6DC: mov dword ptr [ebp - 0x24], edi */
  16828     ebx = edi; /* 0x3000E6DF: mov ebx, edi */
  16829     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000E6E1: mov dword ptr [ebp - 0x1c], ecx */
  16830 L_3000E6E4:
  16831     edi = MEM32(esi + 0x4); /* 0x3000E6E4: mov edi, dword ptr [esi + 4] */
  16832     /* test edi, edi */ /* 0x3000E6E7: test edi, edi */
  16833     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  16834     _cf = 0;
  16835     _flag_k = FK_TEST;
  16836     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E6EF; /* 0x3000E6E9: jne 0x3000e6ef */
  16837 L_3000E6EB:
  16838     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16839     edx = 0; /* 0x3000E6EB: xor edx, edx */
  16840     _cf = 0;
  16841     _flag_k = FK_TEST;
  16842     goto L_3000E705; /* 0x3000E6ED: jmp 0x3000e705 */
  16843 L_3000E6EF:
  16844     ecx = MEM32(esi + 0x8); /* 0x3000E6EF: mov ecx, dword ptr [esi + 8] */
  16845     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  16846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16847     ecx = ecx - edi; /* 0x3000E6F2: sub ecx, edi */
  16848     _flag_k = FK_CMP;
  16849     eax = 0x66666667u; /* 0x3000E6F4: mov eax, 0x66666667 */
  16850     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6F9: imul ecx */
  16851       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  16852       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  16853     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6FB: sar edx, 3 */
  16854     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16855     edx = (uint32_t)((int32_t)edx >> 3u);
  16856     eax = edx; /* 0x3000E6FE: mov eax, edx */
  16857     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E700: shr eax, 0x1f */
  16858     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  16859     eax = eax >> 31u; /* 0x3000E700: shr eax, 0x1f */
  16860     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  16861     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16862     edx = edx + eax; /* 0x3000E703: add edx, eax */
  16863     _flag_k = FK_ADD;
  16864 L_3000E705:
  16865     /* cmp ebx, edx */ /* 0x3000E705: cmp ebx, edx */
  16866     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  16867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16868     _flag_k = FK_CMP;
  16869     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E75C; /* 0x3000E707: jge 0x3000e75c */
  16870 L_3000E709:
  16871     ecx = MEM32(ebp + (-0x14)); /* 0x3000E709: mov ecx, dword ptr [ebp - 0x14] */
  16872     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  16873     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16874     ecx = ecx + edi; /* 0x3000E70C: add ecx, edi */
  16875     _flag_k = FK_ADD;
  16876     RECOMP_ICALL(0x30008570u); /* 0x3000E70E: call 0x30008570 */ /* not lifted */
  16877     RECOMP_FLAGS_IN();
  16878     /* test LO8(eax), LO8(eax) */ /* 0x3000E713: test al, al */
  16879     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16880     _cf = 0;
  16881     _flag_k = FK_NARROW(FK_TEST, 24);
  16882     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E774; /* 0x3000E715: jne 0x3000e774 */
  16883 L_3000E717:
  16884     eax = MEM32(esi + 0x4); /* 0x3000E717: mov eax, dword ptr [esi + 4] */
  16885     edi = MEM32(ebp + (-0x1C)); /* 0x3000E71A: mov edi, dword ptr [ebp - 0x1c] */
  16886     ecx = MEM32(ebp + (-0x14)); /* 0x3000E71D: mov ecx, dword ptr [ebp - 0x14] */
  16887     edx = edi + eax; /* 0x3000E720: lea edx, [edi + eax] */
  16888     PUSH32(esp, edx); /* 0x3000E723: push edx */
  16889     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16891     ecx = ecx + eax; /* 0x3000E724: add ecx, eax */
  16892     _flag_k = FK_ADD;
  16893     RECOMP_ICALL(0x30008240u); /* 0x3000E726: call 0x30008240 */ /* not lifted */
  16894     RECOMP_FLAGS_IN();
  16895     /* test LO8(eax), LO8(eax) */ /* 0x3000E72B: test al, al */
  16896     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16897     _cf = 0;
  16898     _flag_k = FK_NARROW(FK_TEST, 24);
  16899     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E753; /* 0x3000E72D: je 0x3000e753 */
  16900 L_3000E72F:
  16901     eax = MEM32(esi + 0x4); /* 0x3000E72F: mov eax, dword ptr [esi + 4] */
  16902     ecx = MEM32(ebp + (-0x14)); /* 0x3000E732: mov ecx, dword ptr [ebp - 0x14] */
  16903     edx = edi + eax; /* 0x3000E735: lea edx, [edi + eax] */
  16904     PUSH32(esp, edx); /* 0x3000E738: push edx */
  16905     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  16906     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16907     ecx = ecx + eax; /* 0x3000E739: add ecx, eax */
  16908     _flag_k = FK_ADD;
  16909     RECOMP_ICALL(0x30008350u); /* 0x3000E73B: call 0x30008350 */ /* not lifted */
  16910     RECOMP_FLAGS_IN();
  16911     /* test LO8(eax), LO8(eax) */ /* 0x3000E740: test al, al */
  16912     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16913     _cf = 0;
  16914     _flag_k = FK_NARROW(FK_TEST, 24);
  16915     eax = MEM32(ebp + (-0x30)); /* 0x3000E742: mov eax, dword ptr [ebp - 0x30] */
  16916     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E7AA; /* 0x3000E745: je 0x3000e7aa */
  16917 L_3000E747:
  16918     ecx = MEM32(ebp + (-0x18)); /* 0x3000E747: mov ecx, dword ptr [ebp - 0x18] */
  16919     _flag_a = (uint32_t)(MEM32(eax + ecx * 4)); _flag_b = (uint32_t)(1);
  16920     MEM32(eax + ecx * 4) = MEM32(eax + ecx * 4) + 1; /* 0x3000E74A: inc dword ptr [eax + ecx*4] */
  16921     _flag_k = FK_INC;
  16922     eax = MEM32(ebp + (-0x30)); /* 0x3000E74D: mov eax, dword ptr [ebp - 0x30] */
  16923     _flag_a = (uint32_t)(MEM32(eax + ebx * 4)); _flag_b = (uint32_t)(1);
  16924     MEM32(eax + ebx * 4) = MEM32(eax + ebx * 4) + 1; /* 0x3000E750: inc dword ptr [eax + ebx*4] */
  16925     _flag_k = FK_INC;
  16926 L_3000E753:
  16927     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  16928     ebx = ebx + 1; /* 0x3000E753: inc ebx */
  16929     _flag_k = FK_INC;
  16930     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  16931     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16932     edi = edi + 0x14u; /* 0x3000E754: add edi, 0x14 */
  16933     _flag_k = FK_ADD;
  16934     MEM32(ebp + (-0x1C)) = edi; /* 0x3000E757: mov dword ptr [ebp - 0x1c], edi */
  16935     RECOMP_BACKEDGE();
  16936     goto L_3000E6E4; /* 0x3000E75A: jmp 0x3000e6e4 */
  16937 L_3000E75C:
  16938     eax = MEM32(ebp + (-0x14)); /* 0x3000E75C: mov eax, dword ptr [ebp - 0x14] */
  16939     edx = MEM32(ebp + (-0x24)); /* 0x3000E75F: mov edx, dword ptr [ebp - 0x24] */
  16940     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  16941     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16942     eax = eax + 0x14u; /* 0x3000E762: add eax, 0x14 */
  16943     _flag_k = FK_ADD;
  16944     MEM32(ebp + (-0x18)) = edx; /* 0x3000E765: mov dword ptr [ebp - 0x18], edx */
  16945     MEM32(ebp + (-0x14)) = eax; /* 0x3000E768: mov dword ptr [ebp - 0x14], eax */
  16946     edi = edx; /* 0x3000E76B: mov edi, edx */
  16947     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16948     ebx = 0; /* 0x3000E76D: xor ebx, ebx */
  16949     _cf = 0;
  16950     _flag_k = FK_TEST;
  16951     RECOMP_BACKEDGE();
  16952     goto L_3000E677; /* 0x3000E76F: jmp 0x3000e677 */
  16953 L_3000E774:
  16954     eax = MEM32(ebp + (-0x2C)); /* 0x3000E774: mov eax, dword ptr [ebp - 0x2c] */
  16955     ecx = MEM32(ebp + (-0x30)); /* 0x3000E777: mov ecx, dword ptr [ebp - 0x30] */
  16956     PUSH32(esp, eax); /* 0x3000E77A: push eax */
  16957     PUSH32(esp, ecx); /* 0x3000E77B: push ecx */
  16958     ecx = ebp + (-0x34); /* 0x3000E77C: lea ecx, [ebp - 0x34] */
  16959     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E77F: mov dword ptr [ebp - 4], 0xffffffff */
  16960     RECOMP_ICALL(0x3000EC10u); /* 0x3000E786: call 0x3000ec10 */ /* not lifted */
  16961     RECOMP_FLAGS_IN();
  16962     edx = MEM32(ebp + (-0x30)); /* 0x3000E78B: mov edx, dword ptr [ebp - 0x30] */
  16963 L_3000E78E:
  16964     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  16965     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  16966     RECOMP_FLAGS_IN();
  16967     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16968     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16969     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  16970     _flag_k = FK_ADD;
  16971     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  16972     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  16973     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  16974     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  16975     _cf = 0;
  16976     _flag_k = FK_NARROW(FK_TEST, 24);
  16977     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  16978     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  16979     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  16980     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  16981     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  16982     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  16983 L_3000E7AA:
  16984     PUSH32(esp, eax); /* 0x3000E7AA: push eax */
  16985     RECOMP_ICALL(0x30018080u); /* 0x3000E7AB: call 0x30018080 */ /* not lifted */
  16986     RECOMP_FLAGS_IN();
  16987     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16988     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16989     esp = esp + 4; /* 0x3000E7B0: add esp, 4 */
  16990     _flag_k = FK_ADD;
  16991     edi = POP32_VAL(esp); /* 0x3000E7B3: pop edi */
  16992     esi = POP32_VAL(esp); /* 0x3000E7B4: pop esi */
  16993     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  16994     SET_LO8(eax, 0); /* 0x3000E7B5: xor al, al */
  16995     _cf = 0;
  16996     _flag_k = FK_NARROW(FK_TEST, 24);
  16997     ebx = POP32_VAL(esp); /* 0x3000E7B7: pop ebx */
  16998     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7B8: mov ecx, dword ptr [ebp - 0xc] */
  16999     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E7BB: mov dword ptr fs:[0], ecx */
  17000     esp = ebp; /* 0x3000E7C2: mov esp, ebp */
  17001     ebp = POP32_VAL(esp); /* 0x3000E7C4: pop ebp */
  17002     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7C5: ret  */
  17003 L_3000E7C6:
  17004     esi = MEM32(esi + 0x4); /* 0x3000E7C6: mov esi, dword ptr [esi + 4] */
  17005     edi = MEM32(ebp + (-0x2C)); /* 0x3000E7C9: mov edi, dword ptr [ebp - 0x2c] */
  17006     edx = MEM32(ebp + (-0x30)); /* 0x3000E7CC: mov edx, dword ptr [ebp - 0x30] */
  17007     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17008     ecx = 0; /* 0x3000E7CF: xor ecx, ecx */
  17009     _cf = 0;
  17010     _flag_k = FK_TEST;
  17011     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  17012     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17013     esi = esi + 4; /* 0x3000E7D1: add esi, 4 */
  17014     _flag_k = FK_ADD;
  17015 L_3000E7D4:
  17016     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  17017     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  17018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17019     _flag_k = FK_CMP;
  17020     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  17021 L_3000E7D8:
  17022     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17023     eax = 0; /* 0x3000E7D8: xor eax, eax */
  17024     _cf = 0;
  17025     _flag_k = FK_TEST;
  17026     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  17027 L_3000E7DC:
  17028     eax = edi; /* 0x3000E7DC: mov eax, edi */
  17029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  17030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17031     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  17032     _flag_k = FK_CMP;
  17033     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  17034     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17035     eax = (uint32_t)((int32_t)eax >> 2u);
  17036 L_3000E7E3:
  17037     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  17038     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17040     _flag_k = FK_CMP;
  17041     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  17042 L_3000E7E7:
  17043     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  17044     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  17045     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  17046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17047     _flag_k = FK_CMP;
  17048     RECOMP_BACKEDGE();
  17049     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  17050 L_3000E7EE:
  17051     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  17052     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  17053     _flag_k = FK_INC;
  17054     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  17055     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17056     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  17057     _flag_k = FK_ADD;
  17058     RECOMP_BACKEDGE();
  17059     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  17060 L_3000E7F4:
  17061     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  17062     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  17063     RECOMP_FLAGS_IN();
  17064     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  17065     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17066     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17067     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  17068     _flag_k = FK_ADD;
  17069     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  17070     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  17071     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  17072     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  17073     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  17074     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  17075     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  17076     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  17077     RECOMP_REGS_OUT();
  17078 }
  17079 
  17080 void sub_3000E677(void) {
  17081     int _fpu_cmp = 0;
  17082     uint32_t _cf = 0;
  17083     int _df = 1;
  17084     uint32_t _flag_k = FK_NONE;
  17085     uint32_t _flag_a = 0, _flag_b = 0;
  17086     uint32_t _itail_tgt = 0;
  17087     RECOMP_REGS_LOCALS
  17088     RECOMP_ENTER(0x3000E677u);
  17089 
  17090 L_3000E677:
  17091     eax = MEM32(esi + 0x4); /* 0x3000E677: mov eax, dword ptr [esi + 4] */
  17092     /* cmp eax, ebx */ /* 0x3000E67A: cmp eax, ebx */
  17093     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  17094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17095     _flag_k = FK_CMP;
  17096     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E6B6; /* 0x3000E67C: jne 0x3000e6b6 */
  17097 L_3000E67E:
  17098     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17099     edx = 0; /* 0x3000E67E: xor edx, edx */
  17100     _cf = 0;
  17101     _flag_k = FK_TEST;
  17102     goto L_3000E6CC; /* 0x3000E680: jmp 0x3000e6cc */
  17103 L_3000E6B6:
  17104     ecx = MEM32(esi + 0x8); /* 0x3000E6B6: mov ecx, dword ptr [esi + 8] */
  17105     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17107     ecx = ecx - eax; /* 0x3000E6B9: sub ecx, eax */
  17108     _flag_k = FK_CMP;
  17109     eax = 0x66666667u; /* 0x3000E6BB: mov eax, 0x66666667 */
  17110     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6C0: imul ecx */
  17111       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  17112       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  17113     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6C2: sar edx, 3 */
  17114     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17115     edx = (uint32_t)((int32_t)edx >> 3u);
  17116     eax = edx; /* 0x3000E6C5: mov eax, edx */
  17117     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E6C7: shr eax, 0x1f */
  17118     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17119     eax = eax >> 31u; /* 0x3000E6C7: shr eax, 0x1f */
  17120     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  17121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17122     edx = edx + eax; /* 0x3000E6CA: add edx, eax */
  17123     _flag_k = FK_ADD;
  17124 L_3000E6CC:
  17125     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  17126     edx = edx - 1; /* 0x3000E6CC: dec edx */
  17127     _flag_k = FK_DEC;
  17128     /* cmp edi, edx */ /* 0x3000E6CD: cmp edi, edx */
  17129     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  17130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17131     _flag_k = FK_CMP;
  17132     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7C6; /* 0x3000E6CF: jge 0x3000e7c6 */
  17133 L_3000E6D5:
  17134     ecx = MEM32(ebp + (-0x14)); /* 0x3000E6D5: mov ecx, dword ptr [ebp - 0x14] */
  17135     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  17136     edi = edi + 1; /* 0x3000E6D8: inc edi */
  17137     _flag_k = FK_INC;
  17138     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
  17139     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17140     ecx = ecx + 0x14u; /* 0x3000E6D9: add ecx, 0x14 */
  17141     _flag_k = FK_ADD;
  17142     MEM32(ebp + (-0x24)) = edi; /* 0x3000E6DC: mov dword ptr [ebp - 0x24], edi */
  17143     ebx = edi; /* 0x3000E6DF: mov ebx, edi */
  17144     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000E6E1: mov dword ptr [ebp - 0x1c], ecx */
  17145 L_3000E6E4:
  17146     edi = MEM32(esi + 0x4); /* 0x3000E6E4: mov edi, dword ptr [esi + 4] */
  17147     /* test edi, edi */ /* 0x3000E6E7: test edi, edi */
  17148     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  17149     _cf = 0;
  17150     _flag_k = FK_TEST;
  17151     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E6EF; /* 0x3000E6E9: jne 0x3000e6ef */
  17152 L_3000E6EB:
  17153     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17154     edx = 0; /* 0x3000E6EB: xor edx, edx */
  17155     _cf = 0;
  17156     _flag_k = FK_TEST;
  17157     goto L_3000E705; /* 0x3000E6ED: jmp 0x3000e705 */
  17158 L_3000E6EF:
  17159     ecx = MEM32(esi + 0x8); /* 0x3000E6EF: mov ecx, dword ptr [esi + 8] */
  17160     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  17161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17162     ecx = ecx - edi; /* 0x3000E6F2: sub ecx, edi */
  17163     _flag_k = FK_CMP;
  17164     eax = 0x66666667u; /* 0x3000E6F4: mov eax, 0x66666667 */
  17165     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6F9: imul ecx */
  17166       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  17167       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  17168     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6FB: sar edx, 3 */
  17169     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17170     edx = (uint32_t)((int32_t)edx >> 3u);
  17171     eax = edx; /* 0x3000E6FE: mov eax, edx */
  17172     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E700: shr eax, 0x1f */
  17173     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17174     eax = eax >> 31u; /* 0x3000E700: shr eax, 0x1f */
  17175     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  17176     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17177     edx = edx + eax; /* 0x3000E703: add edx, eax */
  17178     _flag_k = FK_ADD;
  17179 L_3000E705:
  17180     /* cmp ebx, edx */ /* 0x3000E705: cmp ebx, edx */
  17181     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  17182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17183     _flag_k = FK_CMP;
  17184     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E75C; /* 0x3000E707: jge 0x3000e75c */
  17185 L_3000E709:
  17186     ecx = MEM32(ebp + (-0x14)); /* 0x3000E709: mov ecx, dword ptr [ebp - 0x14] */
  17187     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  17188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17189     ecx = ecx + edi; /* 0x3000E70C: add ecx, edi */
  17190     _flag_k = FK_ADD;
  17191     RECOMP_ICALL(0x30008570u); /* 0x3000E70E: call 0x30008570 */ /* not lifted */
  17192     RECOMP_FLAGS_IN();
  17193     /* test LO8(eax), LO8(eax) */ /* 0x3000E713: test al, al */
  17194     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17195     _cf = 0;
  17196     _flag_k = FK_NARROW(FK_TEST, 24);
  17197     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E774; /* 0x3000E715: jne 0x3000e774 */
  17198 L_3000E717:
  17199     eax = MEM32(esi + 0x4); /* 0x3000E717: mov eax, dword ptr [esi + 4] */
  17200     edi = MEM32(ebp + (-0x1C)); /* 0x3000E71A: mov edi, dword ptr [ebp - 0x1c] */
  17201     ecx = MEM32(ebp + (-0x14)); /* 0x3000E71D: mov ecx, dword ptr [ebp - 0x14] */
  17202     edx = edi + eax; /* 0x3000E720: lea edx, [edi + eax] */
  17203     PUSH32(esp, edx); /* 0x3000E723: push edx */
  17204     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17205     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17206     ecx = ecx + eax; /* 0x3000E724: add ecx, eax */
  17207     _flag_k = FK_ADD;
  17208     RECOMP_ICALL(0x30008240u); /* 0x3000E726: call 0x30008240 */ /* not lifted */
  17209     RECOMP_FLAGS_IN();
  17210     /* test LO8(eax), LO8(eax) */ /* 0x3000E72B: test al, al */
  17211     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17212     _cf = 0;
  17213     _flag_k = FK_NARROW(FK_TEST, 24);
  17214     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E753; /* 0x3000E72D: je 0x3000e753 */
  17215 L_3000E72F:
  17216     eax = MEM32(esi + 0x4); /* 0x3000E72F: mov eax, dword ptr [esi + 4] */
  17217     ecx = MEM32(ebp + (-0x14)); /* 0x3000E732: mov ecx, dword ptr [ebp - 0x14] */
  17218     edx = edi + eax; /* 0x3000E735: lea edx, [edi + eax] */
  17219     PUSH32(esp, edx); /* 0x3000E738: push edx */
  17220     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17221     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17222     ecx = ecx + eax; /* 0x3000E739: add ecx, eax */
  17223     _flag_k = FK_ADD;
  17224     RECOMP_ICALL(0x30008350u); /* 0x3000E73B: call 0x30008350 */ /* not lifted */
  17225     RECOMP_FLAGS_IN();
  17226     /* test LO8(eax), LO8(eax) */ /* 0x3000E740: test al, al */
  17227     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17228     _cf = 0;
  17229     _flag_k = FK_NARROW(FK_TEST, 24);
  17230     eax = MEM32(ebp + (-0x30)); /* 0x3000E742: mov eax, dword ptr [ebp - 0x30] */
  17231     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E7AA; /* 0x3000E745: je 0x3000e7aa */
  17232 L_3000E747:
  17233     ecx = MEM32(ebp + (-0x18)); /* 0x3000E747: mov ecx, dword ptr [ebp - 0x18] */
  17234     _flag_a = (uint32_t)(MEM32(eax + ecx * 4)); _flag_b = (uint32_t)(1);
  17235     MEM32(eax + ecx * 4) = MEM32(eax + ecx * 4) + 1; /* 0x3000E74A: inc dword ptr [eax + ecx*4] */
  17236     _flag_k = FK_INC;
  17237     eax = MEM32(ebp + (-0x30)); /* 0x3000E74D: mov eax, dword ptr [ebp - 0x30] */
  17238     _flag_a = (uint32_t)(MEM32(eax + ebx * 4)); _flag_b = (uint32_t)(1);
  17239     MEM32(eax + ebx * 4) = MEM32(eax + ebx * 4) + 1; /* 0x3000E750: inc dword ptr [eax + ebx*4] */
  17240     _flag_k = FK_INC;
  17241 L_3000E753:
  17242     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  17243     ebx = ebx + 1; /* 0x3000E753: inc ebx */
  17244     _flag_k = FK_INC;
  17245     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  17246     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17247     edi = edi + 0x14u; /* 0x3000E754: add edi, 0x14 */
  17248     _flag_k = FK_ADD;
  17249     MEM32(ebp + (-0x1C)) = edi; /* 0x3000E757: mov dword ptr [ebp - 0x1c], edi */
  17250     RECOMP_BACKEDGE();
  17251     goto L_3000E6E4; /* 0x3000E75A: jmp 0x3000e6e4 */
  17252 L_3000E75C:
  17253     eax = MEM32(ebp + (-0x14)); /* 0x3000E75C: mov eax, dword ptr [ebp - 0x14] */
  17254     edx = MEM32(ebp + (-0x24)); /* 0x3000E75F: mov edx, dword ptr [ebp - 0x24] */
  17255     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  17256     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17257     eax = eax + 0x14u; /* 0x3000E762: add eax, 0x14 */
  17258     _flag_k = FK_ADD;
  17259     MEM32(ebp + (-0x18)) = edx; /* 0x3000E765: mov dword ptr [ebp - 0x18], edx */
  17260     MEM32(ebp + (-0x14)) = eax; /* 0x3000E768: mov dword ptr [ebp - 0x14], eax */
  17261     edi = edx; /* 0x3000E76B: mov edi, edx */
  17262     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17263     ebx = 0; /* 0x3000E76D: xor ebx, ebx */
  17264     _cf = 0;
  17265     _flag_k = FK_TEST;
  17266     RECOMP_BACKEDGE();
  17267     goto L_3000E677; /* 0x3000E76F: jmp 0x3000e677 */
  17268 L_3000E774:
  17269     eax = MEM32(ebp + (-0x2C)); /* 0x3000E774: mov eax, dword ptr [ebp - 0x2c] */
  17270     ecx = MEM32(ebp + (-0x30)); /* 0x3000E777: mov ecx, dword ptr [ebp - 0x30] */
  17271     PUSH32(esp, eax); /* 0x3000E77A: push eax */
  17272     PUSH32(esp, ecx); /* 0x3000E77B: push ecx */
  17273     ecx = ebp + (-0x34); /* 0x3000E77C: lea ecx, [ebp - 0x34] */
  17274     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E77F: mov dword ptr [ebp - 4], 0xffffffff */
  17275     RECOMP_ICALL(0x3000EC10u); /* 0x3000E786: call 0x3000ec10 */ /* not lifted */
  17276     RECOMP_FLAGS_IN();
  17277     edx = MEM32(ebp + (-0x30)); /* 0x3000E78B: mov edx, dword ptr [ebp - 0x30] */
  17278 L_3000E78E:
  17279     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  17280     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  17281     RECOMP_FLAGS_IN();
  17282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17283     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17284     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  17285     _flag_k = FK_ADD;
  17286     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  17287     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  17288     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  17289     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  17290     _cf = 0;
  17291     _flag_k = FK_NARROW(FK_TEST, 24);
  17292     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  17293     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  17294     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  17295     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  17296     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  17297     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  17298 L_3000E7AA:
  17299     PUSH32(esp, eax); /* 0x3000E7AA: push eax */
  17300     RECOMP_ICALL(0x30018080u); /* 0x3000E7AB: call 0x30018080 */ /* not lifted */
  17301     RECOMP_FLAGS_IN();
  17302     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17303     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17304     esp = esp + 4; /* 0x3000E7B0: add esp, 4 */
  17305     _flag_k = FK_ADD;
  17306     edi = POP32_VAL(esp); /* 0x3000E7B3: pop edi */
  17307     esi = POP32_VAL(esp); /* 0x3000E7B4: pop esi */
  17308     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  17309     SET_LO8(eax, 0); /* 0x3000E7B5: xor al, al */
  17310     _cf = 0;
  17311     _flag_k = FK_NARROW(FK_TEST, 24);
  17312     ebx = POP32_VAL(esp); /* 0x3000E7B7: pop ebx */
  17313     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7B8: mov ecx, dword ptr [ebp - 0xc] */
  17314     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E7BB: mov dword ptr fs:[0], ecx */
  17315     esp = ebp; /* 0x3000E7C2: mov esp, ebp */
  17316     ebp = POP32_VAL(esp); /* 0x3000E7C4: pop ebp */
  17317     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7C5: ret  */
  17318 L_3000E7C6:
  17319     esi = MEM32(esi + 0x4); /* 0x3000E7C6: mov esi, dword ptr [esi + 4] */
  17320     edi = MEM32(ebp + (-0x2C)); /* 0x3000E7C9: mov edi, dword ptr [ebp - 0x2c] */
  17321     edx = MEM32(ebp + (-0x30)); /* 0x3000E7CC: mov edx, dword ptr [ebp - 0x30] */
  17322     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17323     ecx = 0; /* 0x3000E7CF: xor ecx, ecx */
  17324     _cf = 0;
  17325     _flag_k = FK_TEST;
  17326     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  17327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17328     esi = esi + 4; /* 0x3000E7D1: add esi, 4 */
  17329     _flag_k = FK_ADD;
  17330 L_3000E7D4:
  17331     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  17332     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  17333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17334     _flag_k = FK_CMP;
  17335     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  17336 L_3000E7D8:
  17337     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17338     eax = 0; /* 0x3000E7D8: xor eax, eax */
  17339     _cf = 0;
  17340     _flag_k = FK_TEST;
  17341     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  17342 L_3000E7DC:
  17343     eax = edi; /* 0x3000E7DC: mov eax, edi */
  17344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  17345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17346     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  17347     _flag_k = FK_CMP;
  17348     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  17349     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17350     eax = (uint32_t)((int32_t)eax >> 2u);
  17351 L_3000E7E3:
  17352     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  17353     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17355     _flag_k = FK_CMP;
  17356     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  17357 L_3000E7E7:
  17358     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  17359     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  17360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  17361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17362     _flag_k = FK_CMP;
  17363     RECOMP_BACKEDGE();
  17364     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  17365 L_3000E7EE:
  17366     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  17367     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  17368     _flag_k = FK_INC;
  17369     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  17370     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17371     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  17372     _flag_k = FK_ADD;
  17373     RECOMP_BACKEDGE();
  17374     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  17375 L_3000E7F4:
  17376     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  17377     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  17378     RECOMP_FLAGS_IN();
  17379     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  17380     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17381     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17382     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  17383     _flag_k = FK_ADD;
  17384     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  17385     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  17386     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  17387     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  17388     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  17389     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  17390     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  17391     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  17392     RECOMP_REGS_OUT();
  17393 }
  17394 
  17395 void sub_3000E6CC(void) {
  17396     int _fpu_cmp = 0;
  17397     uint32_t _cf = 0;
  17398     int _df = 1;
  17399     uint32_t _flag_k = FK_NONE;
  17400     uint32_t _flag_a = 0, _flag_b = 0;
  17401     uint32_t _itail_tgt = 0;
  17402     RECOMP_REGS_LOCALS
  17403     RECOMP_ENTER(0x3000E6CCu);
  17404 
  17405     goto L_3000E6CC;
  17406 L_3000E677:
  17407     eax = MEM32(esi + 0x4); /* 0x3000E677: mov eax, dword ptr [esi + 4] */
  17408     /* cmp eax, ebx */ /* 0x3000E67A: cmp eax, ebx */
  17409     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  17410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17411     _flag_k = FK_CMP;
  17412     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E6B6; /* 0x3000E67C: jne 0x3000e6b6 */
  17413 L_3000E67E:
  17414     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17415     edx = 0; /* 0x3000E67E: xor edx, edx */
  17416     _cf = 0;
  17417     _flag_k = FK_TEST;
  17418     goto L_3000E6CC; /* 0x3000E680: jmp 0x3000e6cc */
  17419 L_3000E6B6:
  17420     ecx = MEM32(esi + 0x8); /* 0x3000E6B6: mov ecx, dword ptr [esi + 8] */
  17421     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17423     ecx = ecx - eax; /* 0x3000E6B9: sub ecx, eax */
  17424     _flag_k = FK_CMP;
  17425     eax = 0x66666667u; /* 0x3000E6BB: mov eax, 0x66666667 */
  17426     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6C0: imul ecx */
  17427       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  17428       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  17429     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6C2: sar edx, 3 */
  17430     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17431     edx = (uint32_t)((int32_t)edx >> 3u);
  17432     eax = edx; /* 0x3000E6C5: mov eax, edx */
  17433     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E6C7: shr eax, 0x1f */
  17434     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17435     eax = eax >> 31u; /* 0x3000E6C7: shr eax, 0x1f */
  17436     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  17437     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17438     edx = edx + eax; /* 0x3000E6CA: add edx, eax */
  17439     _flag_k = FK_ADD;
  17440 L_3000E6CC:
  17441     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  17442     edx = edx - 1; /* 0x3000E6CC: dec edx */
  17443     _flag_k = FK_DEC;
  17444     /* cmp edi, edx */ /* 0x3000E6CD: cmp edi, edx */
  17445     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  17446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17447     _flag_k = FK_CMP;
  17448     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7C6; /* 0x3000E6CF: jge 0x3000e7c6 */
  17449 L_3000E6D5:
  17450     ecx = MEM32(ebp + (-0x14)); /* 0x3000E6D5: mov ecx, dword ptr [ebp - 0x14] */
  17451     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  17452     edi = edi + 1; /* 0x3000E6D8: inc edi */
  17453     _flag_k = FK_INC;
  17454     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
  17455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17456     ecx = ecx + 0x14u; /* 0x3000E6D9: add ecx, 0x14 */
  17457     _flag_k = FK_ADD;
  17458     MEM32(ebp + (-0x24)) = edi; /* 0x3000E6DC: mov dword ptr [ebp - 0x24], edi */
  17459     ebx = edi; /* 0x3000E6DF: mov ebx, edi */
  17460     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000E6E1: mov dword ptr [ebp - 0x1c], ecx */
  17461 L_3000E6E4:
  17462     edi = MEM32(esi + 0x4); /* 0x3000E6E4: mov edi, dword ptr [esi + 4] */
  17463     /* test edi, edi */ /* 0x3000E6E7: test edi, edi */
  17464     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  17465     _cf = 0;
  17466     _flag_k = FK_TEST;
  17467     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E6EF; /* 0x3000E6E9: jne 0x3000e6ef */
  17468 L_3000E6EB:
  17469     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17470     edx = 0; /* 0x3000E6EB: xor edx, edx */
  17471     _cf = 0;
  17472     _flag_k = FK_TEST;
  17473     goto L_3000E705; /* 0x3000E6ED: jmp 0x3000e705 */
  17474 L_3000E6EF:
  17475     ecx = MEM32(esi + 0x8); /* 0x3000E6EF: mov ecx, dword ptr [esi + 8] */
  17476     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  17477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17478     ecx = ecx - edi; /* 0x3000E6F2: sub ecx, edi */
  17479     _flag_k = FK_CMP;
  17480     eax = 0x66666667u; /* 0x3000E6F4: mov eax, 0x66666667 */
  17481     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6F9: imul ecx */
  17482       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  17483       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  17484     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6FB: sar edx, 3 */
  17485     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17486     edx = (uint32_t)((int32_t)edx >> 3u);
  17487     eax = edx; /* 0x3000E6FE: mov eax, edx */
  17488     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E700: shr eax, 0x1f */
  17489     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17490     eax = eax >> 31u; /* 0x3000E700: shr eax, 0x1f */
  17491     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  17492     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17493     edx = edx + eax; /* 0x3000E703: add edx, eax */
  17494     _flag_k = FK_ADD;
  17495 L_3000E705:
  17496     /* cmp ebx, edx */ /* 0x3000E705: cmp ebx, edx */
  17497     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  17498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17499     _flag_k = FK_CMP;
  17500     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E75C; /* 0x3000E707: jge 0x3000e75c */
  17501 L_3000E709:
  17502     ecx = MEM32(ebp + (-0x14)); /* 0x3000E709: mov ecx, dword ptr [ebp - 0x14] */
  17503     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  17504     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17505     ecx = ecx + edi; /* 0x3000E70C: add ecx, edi */
  17506     _flag_k = FK_ADD;
  17507     RECOMP_ICALL(0x30008570u); /* 0x3000E70E: call 0x30008570 */ /* not lifted */
  17508     RECOMP_FLAGS_IN();
  17509     /* test LO8(eax), LO8(eax) */ /* 0x3000E713: test al, al */
  17510     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17511     _cf = 0;
  17512     _flag_k = FK_NARROW(FK_TEST, 24);
  17513     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E774; /* 0x3000E715: jne 0x3000e774 */
  17514 L_3000E717:
  17515     eax = MEM32(esi + 0x4); /* 0x3000E717: mov eax, dword ptr [esi + 4] */
  17516     edi = MEM32(ebp + (-0x1C)); /* 0x3000E71A: mov edi, dword ptr [ebp - 0x1c] */
  17517     ecx = MEM32(ebp + (-0x14)); /* 0x3000E71D: mov ecx, dword ptr [ebp - 0x14] */
  17518     edx = edi + eax; /* 0x3000E720: lea edx, [edi + eax] */
  17519     PUSH32(esp, edx); /* 0x3000E723: push edx */
  17520     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17521     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17522     ecx = ecx + eax; /* 0x3000E724: add ecx, eax */
  17523     _flag_k = FK_ADD;
  17524     RECOMP_ICALL(0x30008240u); /* 0x3000E726: call 0x30008240 */ /* not lifted */
  17525     RECOMP_FLAGS_IN();
  17526     /* test LO8(eax), LO8(eax) */ /* 0x3000E72B: test al, al */
  17527     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17528     _cf = 0;
  17529     _flag_k = FK_NARROW(FK_TEST, 24);
  17530     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E753; /* 0x3000E72D: je 0x3000e753 */
  17531 L_3000E72F:
  17532     eax = MEM32(esi + 0x4); /* 0x3000E72F: mov eax, dword ptr [esi + 4] */
  17533     ecx = MEM32(ebp + (-0x14)); /* 0x3000E732: mov ecx, dword ptr [ebp - 0x14] */
  17534     edx = edi + eax; /* 0x3000E735: lea edx, [edi + eax] */
  17535     PUSH32(esp, edx); /* 0x3000E738: push edx */
  17536     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17537     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17538     ecx = ecx + eax; /* 0x3000E739: add ecx, eax */
  17539     _flag_k = FK_ADD;
  17540     RECOMP_ICALL(0x30008350u); /* 0x3000E73B: call 0x30008350 */ /* not lifted */
  17541     RECOMP_FLAGS_IN();
  17542     /* test LO8(eax), LO8(eax) */ /* 0x3000E740: test al, al */
  17543     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17544     _cf = 0;
  17545     _flag_k = FK_NARROW(FK_TEST, 24);
  17546     eax = MEM32(ebp + (-0x30)); /* 0x3000E742: mov eax, dword ptr [ebp - 0x30] */
  17547     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E7AA; /* 0x3000E745: je 0x3000e7aa */
  17548 L_3000E747:
  17549     ecx = MEM32(ebp + (-0x18)); /* 0x3000E747: mov ecx, dword ptr [ebp - 0x18] */
  17550     _flag_a = (uint32_t)(MEM32(eax + ecx * 4)); _flag_b = (uint32_t)(1);
  17551     MEM32(eax + ecx * 4) = MEM32(eax + ecx * 4) + 1; /* 0x3000E74A: inc dword ptr [eax + ecx*4] */
  17552     _flag_k = FK_INC;
  17553     eax = MEM32(ebp + (-0x30)); /* 0x3000E74D: mov eax, dword ptr [ebp - 0x30] */
  17554     _flag_a = (uint32_t)(MEM32(eax + ebx * 4)); _flag_b = (uint32_t)(1);
  17555     MEM32(eax + ebx * 4) = MEM32(eax + ebx * 4) + 1; /* 0x3000E750: inc dword ptr [eax + ebx*4] */
  17556     _flag_k = FK_INC;
  17557 L_3000E753:
  17558     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  17559     ebx = ebx + 1; /* 0x3000E753: inc ebx */
  17560     _flag_k = FK_INC;
  17561     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  17562     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17563     edi = edi + 0x14u; /* 0x3000E754: add edi, 0x14 */
  17564     _flag_k = FK_ADD;
  17565     MEM32(ebp + (-0x1C)) = edi; /* 0x3000E757: mov dword ptr [ebp - 0x1c], edi */
  17566     RECOMP_BACKEDGE();
  17567     goto L_3000E6E4; /* 0x3000E75A: jmp 0x3000e6e4 */
  17568 L_3000E75C:
  17569     eax = MEM32(ebp + (-0x14)); /* 0x3000E75C: mov eax, dword ptr [ebp - 0x14] */
  17570     edx = MEM32(ebp + (-0x24)); /* 0x3000E75F: mov edx, dword ptr [ebp - 0x24] */
  17571     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  17572     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17573     eax = eax + 0x14u; /* 0x3000E762: add eax, 0x14 */
  17574     _flag_k = FK_ADD;
  17575     MEM32(ebp + (-0x18)) = edx; /* 0x3000E765: mov dword ptr [ebp - 0x18], edx */
  17576     MEM32(ebp + (-0x14)) = eax; /* 0x3000E768: mov dword ptr [ebp - 0x14], eax */
  17577     edi = edx; /* 0x3000E76B: mov edi, edx */
  17578     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17579     ebx = 0; /* 0x3000E76D: xor ebx, ebx */
  17580     _cf = 0;
  17581     _flag_k = FK_TEST;
  17582     RECOMP_BACKEDGE();
  17583     goto L_3000E677; /* 0x3000E76F: jmp 0x3000e677 */
  17584 L_3000E774:
  17585     eax = MEM32(ebp + (-0x2C)); /* 0x3000E774: mov eax, dword ptr [ebp - 0x2c] */
  17586     ecx = MEM32(ebp + (-0x30)); /* 0x3000E777: mov ecx, dword ptr [ebp - 0x30] */
  17587     PUSH32(esp, eax); /* 0x3000E77A: push eax */
  17588     PUSH32(esp, ecx); /* 0x3000E77B: push ecx */
  17589     ecx = ebp + (-0x34); /* 0x3000E77C: lea ecx, [ebp - 0x34] */
  17590     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E77F: mov dword ptr [ebp - 4], 0xffffffff */
  17591     RECOMP_ICALL(0x3000EC10u); /* 0x3000E786: call 0x3000ec10 */ /* not lifted */
  17592     RECOMP_FLAGS_IN();
  17593     edx = MEM32(ebp + (-0x30)); /* 0x3000E78B: mov edx, dword ptr [ebp - 0x30] */
  17594 L_3000E78E:
  17595     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  17596     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  17597     RECOMP_FLAGS_IN();
  17598     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17599     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17600     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  17601     _flag_k = FK_ADD;
  17602     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  17603     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  17604     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  17605     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  17606     _cf = 0;
  17607     _flag_k = FK_NARROW(FK_TEST, 24);
  17608     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  17609     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  17610     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  17611     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  17612     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  17613     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  17614 L_3000E7AA:
  17615     PUSH32(esp, eax); /* 0x3000E7AA: push eax */
  17616     RECOMP_ICALL(0x30018080u); /* 0x3000E7AB: call 0x30018080 */ /* not lifted */
  17617     RECOMP_FLAGS_IN();
  17618     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17620     esp = esp + 4; /* 0x3000E7B0: add esp, 4 */
  17621     _flag_k = FK_ADD;
  17622     edi = POP32_VAL(esp); /* 0x3000E7B3: pop edi */
  17623     esi = POP32_VAL(esp); /* 0x3000E7B4: pop esi */
  17624     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  17625     SET_LO8(eax, 0); /* 0x3000E7B5: xor al, al */
  17626     _cf = 0;
  17627     _flag_k = FK_NARROW(FK_TEST, 24);
  17628     ebx = POP32_VAL(esp); /* 0x3000E7B7: pop ebx */
  17629     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7B8: mov ecx, dword ptr [ebp - 0xc] */
  17630     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E7BB: mov dword ptr fs:[0], ecx */
  17631     esp = ebp; /* 0x3000E7C2: mov esp, ebp */
  17632     ebp = POP32_VAL(esp); /* 0x3000E7C4: pop ebp */
  17633     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7C5: ret  */
  17634 L_3000E7C6:
  17635     esi = MEM32(esi + 0x4); /* 0x3000E7C6: mov esi, dword ptr [esi + 4] */
  17636     edi = MEM32(ebp + (-0x2C)); /* 0x3000E7C9: mov edi, dword ptr [ebp - 0x2c] */
  17637     edx = MEM32(ebp + (-0x30)); /* 0x3000E7CC: mov edx, dword ptr [ebp - 0x30] */
  17638     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17639     ecx = 0; /* 0x3000E7CF: xor ecx, ecx */
  17640     _cf = 0;
  17641     _flag_k = FK_TEST;
  17642     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  17643     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17644     esi = esi + 4; /* 0x3000E7D1: add esi, 4 */
  17645     _flag_k = FK_ADD;
  17646 L_3000E7D4:
  17647     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  17648     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  17649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17650     _flag_k = FK_CMP;
  17651     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  17652 L_3000E7D8:
  17653     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17654     eax = 0; /* 0x3000E7D8: xor eax, eax */
  17655     _cf = 0;
  17656     _flag_k = FK_TEST;
  17657     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  17658 L_3000E7DC:
  17659     eax = edi; /* 0x3000E7DC: mov eax, edi */
  17660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  17661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17662     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  17663     _flag_k = FK_CMP;
  17664     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  17665     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17666     eax = (uint32_t)((int32_t)eax >> 2u);
  17667 L_3000E7E3:
  17668     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  17669     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17671     _flag_k = FK_CMP;
  17672     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  17673 L_3000E7E7:
  17674     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  17675     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  17676     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  17677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17678     _flag_k = FK_CMP;
  17679     RECOMP_BACKEDGE();
  17680     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  17681 L_3000E7EE:
  17682     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  17683     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  17684     _flag_k = FK_INC;
  17685     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  17686     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17687     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  17688     _flag_k = FK_ADD;
  17689     RECOMP_BACKEDGE();
  17690     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  17691 L_3000E7F4:
  17692     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  17693     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  17694     RECOMP_FLAGS_IN();
  17695     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  17696     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17697     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17698     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  17699     _flag_k = FK_ADD;
  17700     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  17701     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  17702     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  17703     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  17704     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  17705     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  17706     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  17707     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  17708     RECOMP_REGS_OUT();
  17709 }
  17710 
  17711 void sub_3000E6E4(void) {
  17712     int _fpu_cmp = 0;
  17713     uint32_t _cf = 0;
  17714     int _df = 1;
  17715     uint32_t _flag_k = FK_NONE;
  17716     uint32_t _flag_a = 0, _flag_b = 0;
  17717     uint32_t _itail_tgt = 0;
  17718     RECOMP_REGS_LOCALS
  17719     RECOMP_ENTER(0x3000E6E4u);
  17720 
  17721     goto L_3000E6E4;
  17722 L_3000E677:
  17723     eax = MEM32(esi + 0x4); /* 0x3000E677: mov eax, dword ptr [esi + 4] */
  17724     /* cmp eax, ebx */ /* 0x3000E67A: cmp eax, ebx */
  17725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  17726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17727     _flag_k = FK_CMP;
  17728     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E6B6; /* 0x3000E67C: jne 0x3000e6b6 */
  17729 L_3000E67E:
  17730     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17731     edx = 0; /* 0x3000E67E: xor edx, edx */
  17732     _cf = 0;
  17733     _flag_k = FK_TEST;
  17734     goto L_3000E6CC; /* 0x3000E680: jmp 0x3000e6cc */
  17735 L_3000E6B6:
  17736     ecx = MEM32(esi + 0x8); /* 0x3000E6B6: mov ecx, dword ptr [esi + 8] */
  17737     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17739     ecx = ecx - eax; /* 0x3000E6B9: sub ecx, eax */
  17740     _flag_k = FK_CMP;
  17741     eax = 0x66666667u; /* 0x3000E6BB: mov eax, 0x66666667 */
  17742     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6C0: imul ecx */
  17743       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  17744       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  17745     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6C2: sar edx, 3 */
  17746     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17747     edx = (uint32_t)((int32_t)edx >> 3u);
  17748     eax = edx; /* 0x3000E6C5: mov eax, edx */
  17749     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E6C7: shr eax, 0x1f */
  17750     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17751     eax = eax >> 31u; /* 0x3000E6C7: shr eax, 0x1f */
  17752     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  17753     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17754     edx = edx + eax; /* 0x3000E6CA: add edx, eax */
  17755     _flag_k = FK_ADD;
  17756 L_3000E6CC:
  17757     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  17758     edx = edx - 1; /* 0x3000E6CC: dec edx */
  17759     _flag_k = FK_DEC;
  17760     /* cmp edi, edx */ /* 0x3000E6CD: cmp edi, edx */
  17761     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  17762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17763     _flag_k = FK_CMP;
  17764     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7C6; /* 0x3000E6CF: jge 0x3000e7c6 */
  17765 L_3000E6D5:
  17766     ecx = MEM32(ebp + (-0x14)); /* 0x3000E6D5: mov ecx, dword ptr [ebp - 0x14] */
  17767     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  17768     edi = edi + 1; /* 0x3000E6D8: inc edi */
  17769     _flag_k = FK_INC;
  17770     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
  17771     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17772     ecx = ecx + 0x14u; /* 0x3000E6D9: add ecx, 0x14 */
  17773     _flag_k = FK_ADD;
  17774     MEM32(ebp + (-0x24)) = edi; /* 0x3000E6DC: mov dword ptr [ebp - 0x24], edi */
  17775     ebx = edi; /* 0x3000E6DF: mov ebx, edi */
  17776     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000E6E1: mov dword ptr [ebp - 0x1c], ecx */
  17777 L_3000E6E4:
  17778     edi = MEM32(esi + 0x4); /* 0x3000E6E4: mov edi, dword ptr [esi + 4] */
  17779     /* test edi, edi */ /* 0x3000E6E7: test edi, edi */
  17780     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  17781     _cf = 0;
  17782     _flag_k = FK_TEST;
  17783     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E6EF; /* 0x3000E6E9: jne 0x3000e6ef */
  17784 L_3000E6EB:
  17785     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17786     edx = 0; /* 0x3000E6EB: xor edx, edx */
  17787     _cf = 0;
  17788     _flag_k = FK_TEST;
  17789     goto L_3000E705; /* 0x3000E6ED: jmp 0x3000e705 */
  17790 L_3000E6EF:
  17791     ecx = MEM32(esi + 0x8); /* 0x3000E6EF: mov ecx, dword ptr [esi + 8] */
  17792     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  17793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17794     ecx = ecx - edi; /* 0x3000E6F2: sub ecx, edi */
  17795     _flag_k = FK_CMP;
  17796     eax = 0x66666667u; /* 0x3000E6F4: mov eax, 0x66666667 */
  17797     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6F9: imul ecx */
  17798       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  17799       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  17800     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6FB: sar edx, 3 */
  17801     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17802     edx = (uint32_t)((int32_t)edx >> 3u);
  17803     eax = edx; /* 0x3000E6FE: mov eax, edx */
  17804     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E700: shr eax, 0x1f */
  17805     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17806     eax = eax >> 31u; /* 0x3000E700: shr eax, 0x1f */
  17807     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  17808     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17809     edx = edx + eax; /* 0x3000E703: add edx, eax */
  17810     _flag_k = FK_ADD;
  17811 L_3000E705:
  17812     /* cmp ebx, edx */ /* 0x3000E705: cmp ebx, edx */
  17813     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  17814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17815     _flag_k = FK_CMP;
  17816     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E75C; /* 0x3000E707: jge 0x3000e75c */
  17817 L_3000E709:
  17818     ecx = MEM32(ebp + (-0x14)); /* 0x3000E709: mov ecx, dword ptr [ebp - 0x14] */
  17819     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  17820     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17821     ecx = ecx + edi; /* 0x3000E70C: add ecx, edi */
  17822     _flag_k = FK_ADD;
  17823     RECOMP_ICALL(0x30008570u); /* 0x3000E70E: call 0x30008570 */ /* not lifted */
  17824     RECOMP_FLAGS_IN();
  17825     /* test LO8(eax), LO8(eax) */ /* 0x3000E713: test al, al */
  17826     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17827     _cf = 0;
  17828     _flag_k = FK_NARROW(FK_TEST, 24);
  17829     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E774; /* 0x3000E715: jne 0x3000e774 */
  17830 L_3000E717:
  17831     eax = MEM32(esi + 0x4); /* 0x3000E717: mov eax, dword ptr [esi + 4] */
  17832     edi = MEM32(ebp + (-0x1C)); /* 0x3000E71A: mov edi, dword ptr [ebp - 0x1c] */
  17833     ecx = MEM32(ebp + (-0x14)); /* 0x3000E71D: mov ecx, dword ptr [ebp - 0x14] */
  17834     edx = edi + eax; /* 0x3000E720: lea edx, [edi + eax] */
  17835     PUSH32(esp, edx); /* 0x3000E723: push edx */
  17836     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17837     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17838     ecx = ecx + eax; /* 0x3000E724: add ecx, eax */
  17839     _flag_k = FK_ADD;
  17840     RECOMP_ICALL(0x30008240u); /* 0x3000E726: call 0x30008240 */ /* not lifted */
  17841     RECOMP_FLAGS_IN();
  17842     /* test LO8(eax), LO8(eax) */ /* 0x3000E72B: test al, al */
  17843     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17844     _cf = 0;
  17845     _flag_k = FK_NARROW(FK_TEST, 24);
  17846     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E753; /* 0x3000E72D: je 0x3000e753 */
  17847 L_3000E72F:
  17848     eax = MEM32(esi + 0x4); /* 0x3000E72F: mov eax, dword ptr [esi + 4] */
  17849     ecx = MEM32(ebp + (-0x14)); /* 0x3000E732: mov ecx, dword ptr [ebp - 0x14] */
  17850     edx = edi + eax; /* 0x3000E735: lea edx, [edi + eax] */
  17851     PUSH32(esp, edx); /* 0x3000E738: push edx */
  17852     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17853     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17854     ecx = ecx + eax; /* 0x3000E739: add ecx, eax */
  17855     _flag_k = FK_ADD;
  17856     RECOMP_ICALL(0x30008350u); /* 0x3000E73B: call 0x30008350 */ /* not lifted */
  17857     RECOMP_FLAGS_IN();
  17858     /* test LO8(eax), LO8(eax) */ /* 0x3000E740: test al, al */
  17859     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17860     _cf = 0;
  17861     _flag_k = FK_NARROW(FK_TEST, 24);
  17862     eax = MEM32(ebp + (-0x30)); /* 0x3000E742: mov eax, dword ptr [ebp - 0x30] */
  17863     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E7AA; /* 0x3000E745: je 0x3000e7aa */
  17864 L_3000E747:
  17865     ecx = MEM32(ebp + (-0x18)); /* 0x3000E747: mov ecx, dword ptr [ebp - 0x18] */
  17866     _flag_a = (uint32_t)(MEM32(eax + ecx * 4)); _flag_b = (uint32_t)(1);
  17867     MEM32(eax + ecx * 4) = MEM32(eax + ecx * 4) + 1; /* 0x3000E74A: inc dword ptr [eax + ecx*4] */
  17868     _flag_k = FK_INC;
  17869     eax = MEM32(ebp + (-0x30)); /* 0x3000E74D: mov eax, dword ptr [ebp - 0x30] */
  17870     _flag_a = (uint32_t)(MEM32(eax + ebx * 4)); _flag_b = (uint32_t)(1);
  17871     MEM32(eax + ebx * 4) = MEM32(eax + ebx * 4) + 1; /* 0x3000E750: inc dword ptr [eax + ebx*4] */
  17872     _flag_k = FK_INC;
  17873 L_3000E753:
  17874     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  17875     ebx = ebx + 1; /* 0x3000E753: inc ebx */
  17876     _flag_k = FK_INC;
  17877     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  17878     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17879     edi = edi + 0x14u; /* 0x3000E754: add edi, 0x14 */
  17880     _flag_k = FK_ADD;
  17881     MEM32(ebp + (-0x1C)) = edi; /* 0x3000E757: mov dword ptr [ebp - 0x1c], edi */
  17882     RECOMP_BACKEDGE();
  17883     goto L_3000E6E4; /* 0x3000E75A: jmp 0x3000e6e4 */
  17884 L_3000E75C:
  17885     eax = MEM32(ebp + (-0x14)); /* 0x3000E75C: mov eax, dword ptr [ebp - 0x14] */
  17886     edx = MEM32(ebp + (-0x24)); /* 0x3000E75F: mov edx, dword ptr [ebp - 0x24] */
  17887     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  17888     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17889     eax = eax + 0x14u; /* 0x3000E762: add eax, 0x14 */
  17890     _flag_k = FK_ADD;
  17891     MEM32(ebp + (-0x18)) = edx; /* 0x3000E765: mov dword ptr [ebp - 0x18], edx */
  17892     MEM32(ebp + (-0x14)) = eax; /* 0x3000E768: mov dword ptr [ebp - 0x14], eax */
  17893     edi = edx; /* 0x3000E76B: mov edi, edx */
  17894     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17895     ebx = 0; /* 0x3000E76D: xor ebx, ebx */
  17896     _cf = 0;
  17897     _flag_k = FK_TEST;
  17898     RECOMP_BACKEDGE();
  17899     goto L_3000E677; /* 0x3000E76F: jmp 0x3000e677 */
  17900 L_3000E774:
  17901     eax = MEM32(ebp + (-0x2C)); /* 0x3000E774: mov eax, dword ptr [ebp - 0x2c] */
  17902     ecx = MEM32(ebp + (-0x30)); /* 0x3000E777: mov ecx, dword ptr [ebp - 0x30] */
  17903     PUSH32(esp, eax); /* 0x3000E77A: push eax */
  17904     PUSH32(esp, ecx); /* 0x3000E77B: push ecx */
  17905     ecx = ebp + (-0x34); /* 0x3000E77C: lea ecx, [ebp - 0x34] */
  17906     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E77F: mov dword ptr [ebp - 4], 0xffffffff */
  17907     RECOMP_ICALL(0x3000EC10u); /* 0x3000E786: call 0x3000ec10 */ /* not lifted */
  17908     RECOMP_FLAGS_IN();
  17909     edx = MEM32(ebp + (-0x30)); /* 0x3000E78B: mov edx, dword ptr [ebp - 0x30] */
  17910 L_3000E78E:
  17911     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  17912     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  17913     RECOMP_FLAGS_IN();
  17914     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17915     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17916     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  17917     _flag_k = FK_ADD;
  17918     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  17919     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  17920     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  17921     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  17922     _cf = 0;
  17923     _flag_k = FK_NARROW(FK_TEST, 24);
  17924     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  17925     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  17926     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  17927     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  17928     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  17929     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  17930 L_3000E7AA:
  17931     PUSH32(esp, eax); /* 0x3000E7AA: push eax */
  17932     RECOMP_ICALL(0x30018080u); /* 0x3000E7AB: call 0x30018080 */ /* not lifted */
  17933     RECOMP_FLAGS_IN();
  17934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17936     esp = esp + 4; /* 0x3000E7B0: add esp, 4 */
  17937     _flag_k = FK_ADD;
  17938     edi = POP32_VAL(esp); /* 0x3000E7B3: pop edi */
  17939     esi = POP32_VAL(esp); /* 0x3000E7B4: pop esi */
  17940     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  17941     SET_LO8(eax, 0); /* 0x3000E7B5: xor al, al */
  17942     _cf = 0;
  17943     _flag_k = FK_NARROW(FK_TEST, 24);
  17944     ebx = POP32_VAL(esp); /* 0x3000E7B7: pop ebx */
  17945     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7B8: mov ecx, dword ptr [ebp - 0xc] */
  17946     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E7BB: mov dword ptr fs:[0], ecx */
  17947     esp = ebp; /* 0x3000E7C2: mov esp, ebp */
  17948     ebp = POP32_VAL(esp); /* 0x3000E7C4: pop ebp */
  17949     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7C5: ret  */
  17950 L_3000E7C6:
  17951     esi = MEM32(esi + 0x4); /* 0x3000E7C6: mov esi, dword ptr [esi + 4] */
  17952     edi = MEM32(ebp + (-0x2C)); /* 0x3000E7C9: mov edi, dword ptr [ebp - 0x2c] */
  17953     edx = MEM32(ebp + (-0x30)); /* 0x3000E7CC: mov edx, dword ptr [ebp - 0x30] */
  17954     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17955     ecx = 0; /* 0x3000E7CF: xor ecx, ecx */
  17956     _cf = 0;
  17957     _flag_k = FK_TEST;
  17958     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  17959     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17960     esi = esi + 4; /* 0x3000E7D1: add esi, 4 */
  17961     _flag_k = FK_ADD;
  17962 L_3000E7D4:
  17963     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  17964     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  17965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17966     _flag_k = FK_CMP;
  17967     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  17968 L_3000E7D8:
  17969     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17970     eax = 0; /* 0x3000E7D8: xor eax, eax */
  17971     _cf = 0;
  17972     _flag_k = FK_TEST;
  17973     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  17974 L_3000E7DC:
  17975     eax = edi; /* 0x3000E7DC: mov eax, edi */
  17976     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  17977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17978     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  17979     _flag_k = FK_CMP;
  17980     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  17981     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  17982     eax = (uint32_t)((int32_t)eax >> 2u);
  17983 L_3000E7E3:
  17984     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  17985     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  17986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17987     _flag_k = FK_CMP;
  17988     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  17989 L_3000E7E7:
  17990     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  17991     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  17992     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  17993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17994     _flag_k = FK_CMP;
  17995     RECOMP_BACKEDGE();
  17996     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  17997 L_3000E7EE:
  17998     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  17999     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  18000     _flag_k = FK_INC;
  18001     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  18002     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18003     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  18004     _flag_k = FK_ADD;
  18005     RECOMP_BACKEDGE();
  18006     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  18007 L_3000E7F4:
  18008     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  18009     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  18010     RECOMP_FLAGS_IN();
  18011     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  18012     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18013     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18014     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  18015     _flag_k = FK_ADD;
  18016     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  18017     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  18018     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  18019     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  18020     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  18021     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  18022     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  18023     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  18024     RECOMP_REGS_OUT();
  18025 }
  18026 
  18027 void sub_3000E705(void) {
  18028     int _fpu_cmp = 0;
  18029     uint32_t _cf = 0;
  18030     int _df = 1;
  18031     uint32_t _flag_k = FK_NONE;
  18032     uint32_t _flag_a = 0, _flag_b = 0;
  18033     uint32_t _itail_tgt = 0;
  18034     RECOMP_REGS_LOCALS
  18035     RECOMP_ENTER(0x3000E705u);
  18036 
  18037     goto L_3000E705;
  18038 L_3000E677:
  18039     eax = MEM32(esi + 0x4); /* 0x3000E677: mov eax, dword ptr [esi + 4] */
  18040     /* cmp eax, ebx */ /* 0x3000E67A: cmp eax, ebx */
  18041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  18042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18043     _flag_k = FK_CMP;
  18044     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E6B6; /* 0x3000E67C: jne 0x3000e6b6 */
  18045 L_3000E67E:
  18046     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18047     edx = 0; /* 0x3000E67E: xor edx, edx */
  18048     _cf = 0;
  18049     _flag_k = FK_TEST;
  18050     goto L_3000E6CC; /* 0x3000E680: jmp 0x3000e6cc */
  18051 L_3000E6B6:
  18052     ecx = MEM32(esi + 0x8); /* 0x3000E6B6: mov ecx, dword ptr [esi + 8] */
  18053     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  18054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18055     ecx = ecx - eax; /* 0x3000E6B9: sub ecx, eax */
  18056     _flag_k = FK_CMP;
  18057     eax = 0x66666667u; /* 0x3000E6BB: mov eax, 0x66666667 */
  18058     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6C0: imul ecx */
  18059       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  18060       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  18061     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6C2: sar edx, 3 */
  18062     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18063     edx = (uint32_t)((int32_t)edx >> 3u);
  18064     eax = edx; /* 0x3000E6C5: mov eax, edx */
  18065     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E6C7: shr eax, 0x1f */
  18066     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18067     eax = eax >> 31u; /* 0x3000E6C7: shr eax, 0x1f */
  18068     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  18069     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18070     edx = edx + eax; /* 0x3000E6CA: add edx, eax */
  18071     _flag_k = FK_ADD;
  18072 L_3000E6CC:
  18073     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  18074     edx = edx - 1; /* 0x3000E6CC: dec edx */
  18075     _flag_k = FK_DEC;
  18076     /* cmp edi, edx */ /* 0x3000E6CD: cmp edi, edx */
  18077     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  18078     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18079     _flag_k = FK_CMP;
  18080     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7C6; /* 0x3000E6CF: jge 0x3000e7c6 */
  18081 L_3000E6D5:
  18082     ecx = MEM32(ebp + (-0x14)); /* 0x3000E6D5: mov ecx, dword ptr [ebp - 0x14] */
  18083     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  18084     edi = edi + 1; /* 0x3000E6D8: inc edi */
  18085     _flag_k = FK_INC;
  18086     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
  18087     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18088     ecx = ecx + 0x14u; /* 0x3000E6D9: add ecx, 0x14 */
  18089     _flag_k = FK_ADD;
  18090     MEM32(ebp + (-0x24)) = edi; /* 0x3000E6DC: mov dword ptr [ebp - 0x24], edi */
  18091     ebx = edi; /* 0x3000E6DF: mov ebx, edi */
  18092     MEM32(ebp + (-0x1C)) = ecx; /* 0x3000E6E1: mov dword ptr [ebp - 0x1c], ecx */
  18093 L_3000E6E4:
  18094     edi = MEM32(esi + 0x4); /* 0x3000E6E4: mov edi, dword ptr [esi + 4] */
  18095     /* test edi, edi */ /* 0x3000E6E7: test edi, edi */
  18096     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  18097     _cf = 0;
  18098     _flag_k = FK_TEST;
  18099     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E6EF; /* 0x3000E6E9: jne 0x3000e6ef */
  18100 L_3000E6EB:
  18101     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18102     edx = 0; /* 0x3000E6EB: xor edx, edx */
  18103     _cf = 0;
  18104     _flag_k = FK_TEST;
  18105     goto L_3000E705; /* 0x3000E6ED: jmp 0x3000e705 */
  18106 L_3000E6EF:
  18107     ecx = MEM32(esi + 0x8); /* 0x3000E6EF: mov ecx, dword ptr [esi + 8] */
  18108     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  18109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18110     ecx = ecx - edi; /* 0x3000E6F2: sub ecx, edi */
  18111     _flag_k = FK_CMP;
  18112     eax = 0x66666667u; /* 0x3000E6F4: mov eax, 0x66666667 */
  18113     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000E6F9: imul ecx */
  18114       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  18115       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  18116     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000E6FB: sar edx, 3 */
  18117     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18118     edx = (uint32_t)((int32_t)edx >> 3u);
  18119     eax = edx; /* 0x3000E6FE: mov eax, edx */
  18120     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000E700: shr eax, 0x1f */
  18121     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18122     eax = eax >> 31u; /* 0x3000E700: shr eax, 0x1f */
  18123     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  18124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18125     edx = edx + eax; /* 0x3000E703: add edx, eax */
  18126     _flag_k = FK_ADD;
  18127 L_3000E705:
  18128     /* cmp ebx, edx */ /* 0x3000E705: cmp ebx, edx */
  18129     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  18130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18131     _flag_k = FK_CMP;
  18132     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E75C; /* 0x3000E707: jge 0x3000e75c */
  18133 L_3000E709:
  18134     ecx = MEM32(ebp + (-0x14)); /* 0x3000E709: mov ecx, dword ptr [ebp - 0x14] */
  18135     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  18136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18137     ecx = ecx + edi; /* 0x3000E70C: add ecx, edi */
  18138     _flag_k = FK_ADD;
  18139     RECOMP_ICALL(0x30008570u); /* 0x3000E70E: call 0x30008570 */ /* not lifted */
  18140     RECOMP_FLAGS_IN();
  18141     /* test LO8(eax), LO8(eax) */ /* 0x3000E713: test al, al */
  18142     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18143     _cf = 0;
  18144     _flag_k = FK_NARROW(FK_TEST, 24);
  18145     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E774; /* 0x3000E715: jne 0x3000e774 */
  18146 L_3000E717:
  18147     eax = MEM32(esi + 0x4); /* 0x3000E717: mov eax, dword ptr [esi + 4] */
  18148     edi = MEM32(ebp + (-0x1C)); /* 0x3000E71A: mov edi, dword ptr [ebp - 0x1c] */
  18149     ecx = MEM32(ebp + (-0x14)); /* 0x3000E71D: mov ecx, dword ptr [ebp - 0x14] */
  18150     edx = edi + eax; /* 0x3000E720: lea edx, [edi + eax] */
  18151     PUSH32(esp, edx); /* 0x3000E723: push edx */
  18152     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  18153     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18154     ecx = ecx + eax; /* 0x3000E724: add ecx, eax */
  18155     _flag_k = FK_ADD;
  18156     RECOMP_ICALL(0x30008240u); /* 0x3000E726: call 0x30008240 */ /* not lifted */
  18157     RECOMP_FLAGS_IN();
  18158     /* test LO8(eax), LO8(eax) */ /* 0x3000E72B: test al, al */
  18159     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18160     _cf = 0;
  18161     _flag_k = FK_NARROW(FK_TEST, 24);
  18162     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E753; /* 0x3000E72D: je 0x3000e753 */
  18163 L_3000E72F:
  18164     eax = MEM32(esi + 0x4); /* 0x3000E72F: mov eax, dword ptr [esi + 4] */
  18165     ecx = MEM32(ebp + (-0x14)); /* 0x3000E732: mov ecx, dword ptr [ebp - 0x14] */
  18166     edx = edi + eax; /* 0x3000E735: lea edx, [edi + eax] */
  18167     PUSH32(esp, edx); /* 0x3000E738: push edx */
  18168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  18169     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18170     ecx = ecx + eax; /* 0x3000E739: add ecx, eax */
  18171     _flag_k = FK_ADD;
  18172     RECOMP_ICALL(0x30008350u); /* 0x3000E73B: call 0x30008350 */ /* not lifted */
  18173     RECOMP_FLAGS_IN();
  18174     /* test LO8(eax), LO8(eax) */ /* 0x3000E740: test al, al */
  18175     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18176     _cf = 0;
  18177     _flag_k = FK_NARROW(FK_TEST, 24);
  18178     eax = MEM32(ebp + (-0x30)); /* 0x3000E742: mov eax, dword ptr [ebp - 0x30] */
  18179     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E7AA; /* 0x3000E745: je 0x3000e7aa */
  18180 L_3000E747:
  18181     ecx = MEM32(ebp + (-0x18)); /* 0x3000E747: mov ecx, dword ptr [ebp - 0x18] */
  18182     _flag_a = (uint32_t)(MEM32(eax + ecx * 4)); _flag_b = (uint32_t)(1);
  18183     MEM32(eax + ecx * 4) = MEM32(eax + ecx * 4) + 1; /* 0x3000E74A: inc dword ptr [eax + ecx*4] */
  18184     _flag_k = FK_INC;
  18185     eax = MEM32(ebp + (-0x30)); /* 0x3000E74D: mov eax, dword ptr [ebp - 0x30] */
  18186     _flag_a = (uint32_t)(MEM32(eax + ebx * 4)); _flag_b = (uint32_t)(1);
  18187     MEM32(eax + ebx * 4) = MEM32(eax + ebx * 4) + 1; /* 0x3000E750: inc dword ptr [eax + ebx*4] */
  18188     _flag_k = FK_INC;
  18189 L_3000E753:
  18190     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  18191     ebx = ebx + 1; /* 0x3000E753: inc ebx */
  18192     _flag_k = FK_INC;
  18193     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
  18194     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18195     edi = edi + 0x14u; /* 0x3000E754: add edi, 0x14 */
  18196     _flag_k = FK_ADD;
  18197     MEM32(ebp + (-0x1C)) = edi; /* 0x3000E757: mov dword ptr [ebp - 0x1c], edi */
  18198     RECOMP_BACKEDGE();
  18199     goto L_3000E6E4; /* 0x3000E75A: jmp 0x3000e6e4 */
  18200 L_3000E75C:
  18201     eax = MEM32(ebp + (-0x14)); /* 0x3000E75C: mov eax, dword ptr [ebp - 0x14] */
  18202     edx = MEM32(ebp + (-0x24)); /* 0x3000E75F: mov edx, dword ptr [ebp - 0x24] */
  18203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  18204     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18205     eax = eax + 0x14u; /* 0x3000E762: add eax, 0x14 */
  18206     _flag_k = FK_ADD;
  18207     MEM32(ebp + (-0x18)) = edx; /* 0x3000E765: mov dword ptr [ebp - 0x18], edx */
  18208     MEM32(ebp + (-0x14)) = eax; /* 0x3000E768: mov dword ptr [ebp - 0x14], eax */
  18209     edi = edx; /* 0x3000E76B: mov edi, edx */
  18210     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18211     ebx = 0; /* 0x3000E76D: xor ebx, ebx */
  18212     _cf = 0;
  18213     _flag_k = FK_TEST;
  18214     RECOMP_BACKEDGE();
  18215     goto L_3000E677; /* 0x3000E76F: jmp 0x3000e677 */
  18216 L_3000E774:
  18217     eax = MEM32(ebp + (-0x2C)); /* 0x3000E774: mov eax, dword ptr [ebp - 0x2c] */
  18218     ecx = MEM32(ebp + (-0x30)); /* 0x3000E777: mov ecx, dword ptr [ebp - 0x30] */
  18219     PUSH32(esp, eax); /* 0x3000E77A: push eax */
  18220     PUSH32(esp, ecx); /* 0x3000E77B: push ecx */
  18221     ecx = ebp + (-0x34); /* 0x3000E77C: lea ecx, [ebp - 0x34] */
  18222     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000E77F: mov dword ptr [ebp - 4], 0xffffffff */
  18223     RECOMP_ICALL(0x3000EC10u); /* 0x3000E786: call 0x3000ec10 */ /* not lifted */
  18224     RECOMP_FLAGS_IN();
  18225     edx = MEM32(ebp + (-0x30)); /* 0x3000E78B: mov edx, dword ptr [ebp - 0x30] */
  18226 L_3000E78E:
  18227     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  18228     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  18229     RECOMP_FLAGS_IN();
  18230     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18231     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18232     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  18233     _flag_k = FK_ADD;
  18234     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  18235     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  18236     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  18237     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  18238     _cf = 0;
  18239     _flag_k = FK_NARROW(FK_TEST, 24);
  18240     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  18241     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  18242     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  18243     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  18244     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  18245     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  18246 L_3000E7AA:
  18247     PUSH32(esp, eax); /* 0x3000E7AA: push eax */
  18248     RECOMP_ICALL(0x30018080u); /* 0x3000E7AB: call 0x30018080 */ /* not lifted */
  18249     RECOMP_FLAGS_IN();
  18250     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18251     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18252     esp = esp + 4; /* 0x3000E7B0: add esp, 4 */
  18253     _flag_k = FK_ADD;
  18254     edi = POP32_VAL(esp); /* 0x3000E7B3: pop edi */
  18255     esi = POP32_VAL(esp); /* 0x3000E7B4: pop esi */
  18256     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  18257     SET_LO8(eax, 0); /* 0x3000E7B5: xor al, al */
  18258     _cf = 0;
  18259     _flag_k = FK_NARROW(FK_TEST, 24);
  18260     ebx = POP32_VAL(esp); /* 0x3000E7B7: pop ebx */
  18261     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7B8: mov ecx, dword ptr [ebp - 0xc] */
  18262     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E7BB: mov dword ptr fs:[0], ecx */
  18263     esp = ebp; /* 0x3000E7C2: mov esp, ebp */
  18264     ebp = POP32_VAL(esp); /* 0x3000E7C4: pop ebp */
  18265     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7C5: ret  */
  18266 L_3000E7C6:
  18267     esi = MEM32(esi + 0x4); /* 0x3000E7C6: mov esi, dword ptr [esi + 4] */
  18268     edi = MEM32(ebp + (-0x2C)); /* 0x3000E7C9: mov edi, dword ptr [ebp - 0x2c] */
  18269     edx = MEM32(ebp + (-0x30)); /* 0x3000E7CC: mov edx, dword ptr [ebp - 0x30] */
  18270     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18271     ecx = 0; /* 0x3000E7CF: xor ecx, ecx */
  18272     _cf = 0;
  18273     _flag_k = FK_TEST;
  18274     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  18275     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18276     esi = esi + 4; /* 0x3000E7D1: add esi, 4 */
  18277     _flag_k = FK_ADD;
  18278 L_3000E7D4:
  18279     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  18280     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  18281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18282     _flag_k = FK_CMP;
  18283     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  18284 L_3000E7D8:
  18285     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18286     eax = 0; /* 0x3000E7D8: xor eax, eax */
  18287     _cf = 0;
  18288     _flag_k = FK_TEST;
  18289     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  18290 L_3000E7DC:
  18291     eax = edi; /* 0x3000E7DC: mov eax, edi */
  18292     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  18293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18294     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  18295     _flag_k = FK_CMP;
  18296     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  18297     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18298     eax = (uint32_t)((int32_t)eax >> 2u);
  18299 L_3000E7E3:
  18300     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  18301     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  18302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18303     _flag_k = FK_CMP;
  18304     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  18305 L_3000E7E7:
  18306     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  18307     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  18308     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  18309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18310     _flag_k = FK_CMP;
  18311     RECOMP_BACKEDGE();
  18312     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  18313 L_3000E7EE:
  18314     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  18315     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  18316     _flag_k = FK_INC;
  18317     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  18318     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18319     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  18320     _flag_k = FK_ADD;
  18321     RECOMP_BACKEDGE();
  18322     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  18323 L_3000E7F4:
  18324     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  18325     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  18326     RECOMP_FLAGS_IN();
  18327     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  18328     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18330     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  18331     _flag_k = FK_ADD;
  18332     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  18333     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  18334     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  18335     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  18336     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  18337     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  18338     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  18339     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  18340     RECOMP_REGS_OUT();
  18341 }
  18342 
  18343 void sub_3000E78E(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(0x3000E78Eu);
  18352 
  18353 L_3000E78E:
  18354     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  18355     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  18356     RECOMP_FLAGS_IN();
  18357     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18358     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18359     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  18360     _flag_k = FK_ADD;
  18361     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  18362     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  18363     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  18364     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  18365     _cf = 0;
  18366     _flag_k = FK_NARROW(FK_TEST, 24);
  18367     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  18368     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  18369     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  18370     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  18371     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  18372     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  18373     RECOMP_REGS_OUT();
  18374 }
  18375 
  18376 void sub_3000E7D4(void) {
  18377     int _fpu_cmp = 0;
  18378     uint32_t _cf = 0;
  18379     int _df = 1;
  18380     uint32_t _flag_k = FK_NONE;
  18381     uint32_t _flag_a = 0, _flag_b = 0;
  18382     uint32_t _itail_tgt = 0;
  18383     RECOMP_REGS_LOCALS
  18384     RECOMP_ENTER(0x3000E7D4u);
  18385 
  18386     goto L_3000E7D4;
  18387 L_3000E78E:
  18388     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  18389     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  18390     RECOMP_FLAGS_IN();
  18391     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18392     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18393     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  18394     _flag_k = FK_ADD;
  18395     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  18396     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  18397     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  18398     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  18399     _cf = 0;
  18400     _flag_k = FK_NARROW(FK_TEST, 24);
  18401     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  18402     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  18403     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  18404     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  18405     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  18406     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  18407 L_3000E7D4:
  18408     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  18409     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  18410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18411     _flag_k = FK_CMP;
  18412     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  18413 L_3000E7D8:
  18414     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18415     eax = 0; /* 0x3000E7D8: xor eax, eax */
  18416     _cf = 0;
  18417     _flag_k = FK_TEST;
  18418     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  18419 L_3000E7DC:
  18420     eax = edi; /* 0x3000E7DC: mov eax, edi */
  18421     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  18422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18423     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  18424     _flag_k = FK_CMP;
  18425     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  18426     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18427     eax = (uint32_t)((int32_t)eax >> 2u);
  18428 L_3000E7E3:
  18429     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  18430     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  18431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18432     _flag_k = FK_CMP;
  18433     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  18434 L_3000E7E7:
  18435     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  18436     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  18437     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  18438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18439     _flag_k = FK_CMP;
  18440     RECOMP_BACKEDGE();
  18441     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  18442 L_3000E7EE:
  18443     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  18444     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  18445     _flag_k = FK_INC;
  18446     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  18447     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18448     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  18449     _flag_k = FK_ADD;
  18450     RECOMP_BACKEDGE();
  18451     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  18452 L_3000E7F4:
  18453     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  18454     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  18455     RECOMP_FLAGS_IN();
  18456     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  18457     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18458     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18459     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  18460     _flag_k = FK_ADD;
  18461     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  18462     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  18463     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  18464     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  18465     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  18466     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  18467     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  18468     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  18469     RECOMP_REGS_OUT();
  18470 }
  18471 
  18472 void sub_3000E7E3(void) {
  18473     int _fpu_cmp = 0;
  18474     uint32_t _cf = 0;
  18475     int _df = 1;
  18476     uint32_t _flag_k = FK_NONE;
  18477     uint32_t _flag_a = 0, _flag_b = 0;
  18478     uint32_t _itail_tgt = 0;
  18479     RECOMP_REGS_LOCALS
  18480     RECOMP_ENTER(0x3000E7E3u);
  18481 
  18482     goto L_3000E7E3;
  18483 L_3000E78E:
  18484     PUSH32(esp, edx); /* 0x3000E78E: push edx */
  18485     RECOMP_ICALL(0x30018080u); /* 0x3000E78F: call 0x30018080 */ /* not lifted */
  18486     RECOMP_FLAGS_IN();
  18487     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18489     esp = esp + 4; /* 0x3000E794: add esp, 4 */
  18490     _flag_k = FK_ADD;
  18491     edi = POP32_VAL(esp); /* 0x3000E797: pop edi */
  18492     esi = POP32_VAL(esp); /* 0x3000E798: pop esi */
  18493     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  18494     SET_LO8(eax, 0); /* 0x3000E799: xor al, al */
  18495     _cf = 0;
  18496     _flag_k = FK_NARROW(FK_TEST, 24);
  18497     ebx = POP32_VAL(esp); /* 0x3000E79B: pop ebx */
  18498     ecx = MEM32(ebp + (-0xC)); /* 0x3000E79C: mov ecx, dword ptr [ebp - 0xc] */
  18499     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E79F: mov dword ptr fs:[0], ecx */
  18500     esp = ebp; /* 0x3000E7A6: mov esp, ebp */
  18501     ebp = POP32_VAL(esp); /* 0x3000E7A8: pop ebp */
  18502     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E7A9: ret  */
  18503 L_3000E7D4:
  18504     /* cmp edx, ebx */ /* 0x3000E7D4: cmp edx, ebx */
  18505     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  18506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18507     _flag_k = FK_CMP;
  18508     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E7DC; /* 0x3000E7D6: jne 0x3000e7dc */
  18509 L_3000E7D8:
  18510     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18511     eax = 0; /* 0x3000E7D8: xor eax, eax */
  18512     _cf = 0;
  18513     _flag_k = FK_TEST;
  18514     goto L_3000E7E3; /* 0x3000E7DA: jmp 0x3000e7e3 */
  18515 L_3000E7DC:
  18516     eax = edi; /* 0x3000E7DC: mov eax, edi */
  18517     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  18518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18519     eax = eax - edx; /* 0x3000E7DE: sub eax, edx */
  18520     _flag_k = FK_CMP;
  18521     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E7E0: sar eax, 2 */
  18522     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18523     eax = (uint32_t)((int32_t)eax >> 2u);
  18524 L_3000E7E3:
  18525     /* cmp ecx, eax */ /* 0x3000E7E3: cmp ecx, eax */
  18526     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  18527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18528     _flag_k = FK_CMP;
  18529     if (CMP_GE(_flag_a, _flag_b)) goto L_3000E7F4; /* 0x3000E7E5: jge 0x3000e7f4 */
  18530 L_3000E7E7:
  18531     eax = MEM32(edx + ecx * 4); /* 0x3000E7E7: mov eax, dword ptr [edx + ecx*4] */
  18532     /* cmp eax, MEM32(esi) */ /* 0x3000E7EA: cmp eax, dword ptr [esi] */
  18533     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi));
  18534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18535     _flag_k = FK_CMP;
  18536     RECOMP_BACKEDGE();
  18537     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E78E; /* 0x3000E7EC: jne 0x3000e78e */
  18538 L_3000E7EE:
  18539     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  18540     ecx = ecx + 1; /* 0x3000E7EE: inc ecx */
  18541     _flag_k = FK_INC;
  18542     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  18543     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18544     esi = esi + 0x14u; /* 0x3000E7EF: add esi, 0x14 */
  18545     _flag_k = FK_ADD;
  18546     RECOMP_BACKEDGE();
  18547     goto L_3000E7D4; /* 0x3000E7F2: jmp 0x3000e7d4 */
  18548 L_3000E7F4:
  18549     PUSH32(esp, edx); /* 0x3000E7F4: push edx */
  18550     RECOMP_ICALL(0x30018080u); /* 0x3000E7F5: call 0x30018080 */ /* not lifted */
  18551     RECOMP_FLAGS_IN();
  18552     ecx = MEM32(ebp + (-0xC)); /* 0x3000E7FA: mov ecx, dword ptr [ebp - 0xc] */
  18553     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18554     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18555     esp = esp + 4; /* 0x3000E7FD: add esp, 4 */
  18556     _flag_k = FK_ADD;
  18557     edi = POP32_VAL(esp); /* 0x3000E800: pop edi */
  18558     esi = POP32_VAL(esp); /* 0x3000E801: pop esi */
  18559     SET_LO8(eax, 1); /* 0x3000E802: mov al, 1 */
  18560     ebx = POP32_VAL(esp); /* 0x3000E804: pop ebx */
  18561     MEM32(FS_BASE + (0)) = ecx; /* 0x3000E805: mov dword ptr fs:[0], ecx */
  18562     esp = ebp; /* 0x3000E80C: mov esp, ebp */
  18563     ebp = POP32_VAL(esp); /* 0x3000E80E: pop ebp */
  18564     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E80F: ret  */
  18565     RECOMP_REGS_OUT();
  18566 }
  18567 
  18568 void sub_3000E810(void) {
  18569     int _fpu_cmp = 0;
  18570     uint32_t _cf = 0;
  18571     int _df = 1;
  18572     uint32_t _flag_k = FK_NONE;
  18573     uint32_t _flag_a = 0, _flag_b = 0;
  18574     uint32_t _itail_tgt = 0;
  18575     RECOMP_REGS_LOCALS
  18576     RECOMP_ENTER(0x3000E810u);
  18577 
  18578 L_3000E810:
  18579     PUSH32(esp, ebp); /* 0x3000E810: push ebp */
  18580     ebp = esp; /* 0x3000E811: mov ebp, esp */
  18581     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  18582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18583     esp = esp - 0xCu; /* 0x3000E813: sub esp, 0xc */
  18584     _flag_k = FK_CMP;
  18585     PUSH32(esp, esi); /* 0x3000E816: push esi */
  18586     esi = MEM32(ecx + 0x4); /* 0x3000E817: mov esi, dword ptr [ecx + 4] */
  18587     PUSH32(esp, edi); /* 0x3000E81A: push edi */
  18588     MEM32(ebp + (-0xC)) = 0x7F7FFFFFu; /* 0x3000E81B: mov dword ptr [ebp - 0xc], 0x7f7fffff */
  18589     edx = MEM32(ebp + (-0xC)); /* 0x3000E822: mov edx, dword ptr [ebp - 0xc] */
  18590     edi = ecx + 0x18; /* 0x3000E825: lea edi, [ecx + 0x18] */
  18591     eax = edi; /* 0x3000E828: mov eax, edi */
  18592     MEM32(eax) = edx; /* 0x3000E82A: mov dword ptr [eax], edx */
  18593     MEM32(ebp + (-0x8)) = 0x7F7FFFFFu; /* 0x3000E82C: mov dword ptr [ebp - 8], 0x7f7fffff */
  18594     edx = MEM32(ebp + (-0x8)); /* 0x3000E833: mov edx, dword ptr [ebp - 8] */
  18595     MEM32(eax + 0x4) = edx; /* 0x3000E836: mov dword ptr [eax + 4], edx */
  18596     MEM32(ebp + (-0x4)) = 0x7F7FFFFFu; /* 0x3000E839: mov dword ptr [ebp - 4], 0x7f7fffff */
  18597     edx = MEM32(ebp + (-0x4)); /* 0x3000E840: mov edx, dword ptr [ebp - 4] */
  18598     MEM32(eax + 0x8) = edx; /* 0x3000E843: mov dword ptr [eax + 8], edx */
  18599     MEM32(ebp + (-0xC)) = 0xFF7FFFFFu; /* 0x3000E846: mov dword ptr [ebp - 0xc], 0xff7fffff */
  18600     edx = MEM32(ebp + (-0xC)); /* 0x3000E84D: mov edx, dword ptr [ebp - 0xc] */
  18601     eax = ecx + 0x24; /* 0x3000E850: lea eax, [ecx + 0x24] */
  18602     MEM32(eax) = edx; /* 0x3000E853: mov dword ptr [eax], edx */
  18603     MEM32(ebp + (-0x8)) = 0xFF7FFFFFu; /* 0x3000E855: mov dword ptr [ebp - 8], 0xff7fffff */
  18604     edx = MEM32(ebp + (-0x8)); /* 0x3000E85C: mov edx, dword ptr [ebp - 8] */
  18605     MEM32(eax + 0x4) = edx; /* 0x3000E85F: mov dword ptr [eax + 4], edx */
  18606     MEM32(ebp + (-0x4)) = 0xFF7FFFFFu; /* 0x3000E862: mov dword ptr [ebp - 4], 0xff7fffff */
  18607     edx = MEM32(ebp + (-0x4)); /* 0x3000E869: mov edx, dword ptr [ebp - 4] */
  18608     MEM32(eax + 0x8) = edx; /* 0x3000E86C: mov dword ptr [eax + 8], edx */
  18609     /* cmp esi, MEM32(ecx + 0x8) */ /* 0x3000E86F: cmp esi, dword ptr [ecx + 8] */
  18610     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  18611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18612     _flag_k = FK_CMP;
  18613     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E915; /* 0x3000E872: je 0x3000e915 */
  18614 L_3000E878:
  18615     PUSH32(esp, ebx); /* 0x3000E878: push ebx */
  18616 L_3000E879:
  18617     eax = MEM32(esi + 0x4); /* 0x3000E879: mov eax, dword ptr [esi + 4] */
  18618     edx = MEM32(esi); /* 0x3000E87C: mov edx, dword ptr [esi] */
  18619     eax = eax + eax * 2; /* 0x3000E87E: lea eax, [eax + eax*2] */
  18620     eax = edx + eax * 4; /* 0x3000E881: lea eax, [edx + eax*4] */
  18621     /* cmp edx, eax */ /* 0x3000E884: cmp edx, eax */
  18622     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  18623     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18624     _flag_k = FK_CMP;
  18625     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000E906; /* 0x3000E886: je 0x3000e906 */
  18626 L_3000E888:
  18627     fp_push(*(float*)&MEM32(edx)); /* 0x3000E888: fld dword ptr [edx] */
  18628     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x3000E88A: fcomp dword ptr [edi] */
  18629     fp_pop();
  18630     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000E88C: fnstsw ax */
  18631     /* test HI8(eax), 1 */ /* 0x3000E88E: test ah, 1 */
  18632     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18633     _cf = 0;
  18634     _flag_k = FK_NARROW(FK_TEST, 24);
  18635     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E897; /* 0x3000E891: je 0x3000e897 */
  18636 L_3000E893:
  18637     eax = MEM32(edx); /* 0x3000E893: mov eax, dword ptr [edx] */
  18638     MEM32(edi) = eax; /* 0x3000E895: mov dword ptr [edi], eax */
  18639 L_3000E897:
  18640     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x3000E897: fld dword ptr [edx + 4] */
  18641     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x1C)); /* 0x3000E89A: fcomp dword ptr [ecx + 0x1c] */
  18642     fp_pop();
  18643     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000E89D: fnstsw ax */
  18644     /* test HI8(eax), 1 */ /* 0x3000E89F: test ah, 1 */
  18645     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18646     _cf = 0;
  18647     _flag_k = FK_NARROW(FK_TEST, 24);
  18648     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E8AA; /* 0x3000E8A2: je 0x3000e8aa */
  18649 L_3000E8A4:
  18650     eax = MEM32(edx + 0x4); /* 0x3000E8A4: mov eax, dword ptr [edx + 4] */
  18651     MEM32(ecx + 0x1C) = eax; /* 0x3000E8A7: mov dword ptr [ecx + 0x1c], eax */
  18652 L_3000E8AA:
  18653     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x3000E8AA: fld dword ptr [edx + 8] */
  18654     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x20)); /* 0x3000E8AD: fcomp dword ptr [ecx + 0x20] */
  18655     fp_pop();
  18656     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000E8B0: fnstsw ax */
  18657     /* test HI8(eax), 1 */ /* 0x3000E8B2: test ah, 1 */
  18658     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18659     _cf = 0;
  18660     _flag_k = FK_NARROW(FK_TEST, 24);
  18661     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E8BD; /* 0x3000E8B5: je 0x3000e8bd */
  18662 L_3000E8B7:
  18663     eax = MEM32(edx + 0x8); /* 0x3000E8B7: mov eax, dword ptr [edx + 8] */
  18664     MEM32(ecx + 0x20) = eax; /* 0x3000E8BA: mov dword ptr [ecx + 0x20], eax */
  18665 L_3000E8BD:
  18666     fp_push(*(float*)&MEM32(edx)); /* 0x3000E8BD: fld dword ptr [edx] */
  18667     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x24)); /* 0x3000E8BF: fcomp dword ptr [ecx + 0x24] */
  18668     fp_pop();
  18669     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000E8C2: fnstsw ax */
  18670     /* test HI8(eax), 0x41u */ /* 0x3000E8C4: test ah, 0x41 */
  18671     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  18672     _cf = 0;
  18673     _flag_k = FK_NARROW(FK_TEST, 24);
  18674     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E8CE; /* 0x3000E8C7: jne 0x3000e8ce */
  18675 L_3000E8C9:
  18676     eax = MEM32(edx); /* 0x3000E8C9: mov eax, dword ptr [edx] */
  18677     MEM32(ecx + 0x24) = eax; /* 0x3000E8CB: mov dword ptr [ecx + 0x24], eax */
  18678 L_3000E8CE:
  18679     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x3000E8CE: fld dword ptr [edx + 4] */
  18680     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x28)); /* 0x3000E8D1: fcomp dword ptr [ecx + 0x28] */
  18681     fp_pop();
  18682     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000E8D4: fnstsw ax */
  18683     /* test HI8(eax), 0x41u */ /* 0x3000E8D6: test ah, 0x41 */
  18684     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  18685     _cf = 0;
  18686     _flag_k = FK_NARROW(FK_TEST, 24);
  18687     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E8E1; /* 0x3000E8D9: jne 0x3000e8e1 */
  18688 L_3000E8DB:
  18689     eax = MEM32(edx + 0x4); /* 0x3000E8DB: mov eax, dword ptr [edx + 4] */
  18690     MEM32(ecx + 0x28) = eax; /* 0x3000E8DE: mov dword ptr [ecx + 0x28], eax */
  18691 L_3000E8E1:
  18692     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x3000E8E1: fld dword ptr [edx + 8] */
  18693     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x2C)); /* 0x3000E8E4: fcomp dword ptr [ecx + 0x2c] */
  18694     fp_pop();
  18695     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000E8E7: fnstsw ax */
  18696     /* test HI8(eax), 0x41u */ /* 0x3000E8E9: test ah, 0x41 */
  18697     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  18698     _cf = 0;
  18699     _flag_k = FK_NARROW(FK_TEST, 24);
  18700     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E8F4; /* 0x3000E8EC: jne 0x3000e8f4 */
  18701 L_3000E8EE:
  18702     eax = MEM32(edx + 0x8); /* 0x3000E8EE: mov eax, dword ptr [edx + 8] */
  18703     MEM32(ecx + 0x2C) = eax; /* 0x3000E8F1: mov dword ptr [ecx + 0x2c], eax */
  18704 L_3000E8F4:
  18705     eax = MEM32(esi + 0x4); /* 0x3000E8F4: mov eax, dword ptr [esi + 4] */
  18706     ebx = MEM32(esi); /* 0x3000E8F7: mov ebx, dword ptr [esi] */
  18707     eax = eax + eax * 2; /* 0x3000E8F9: lea eax, [eax + eax*2] */
  18708     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  18709     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18710     edx = edx + 0xCu; /* 0x3000E8FC: add edx, 0xc */
  18711     _flag_k = FK_ADD;
  18712     eax = ebx + eax * 4; /* 0x3000E8FF: lea eax, [ebx + eax*4] */
  18713     /* cmp edx, eax */ /* 0x3000E902: cmp edx, eax */
  18714     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  18715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18716     _flag_k = FK_CMP;
  18717     RECOMP_BACKEDGE();
  18718     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E888; /* 0x3000E904: jne 0x3000e888 */
  18719 L_3000E906:
  18720     eax = MEM32(ecx + 0x8); /* 0x3000E906: mov eax, dword ptr [ecx + 8] */
  18721     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
  18722     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18723     esi = esi + 0x14u; /* 0x3000E909: add esi, 0x14 */
  18724     _flag_k = FK_ADD;
  18725     /* cmp esi, eax */ /* 0x3000E90C: cmp esi, eax */
  18726     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  18727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18728     _flag_k = FK_CMP;
  18729     RECOMP_BACKEDGE();
  18730     if (CMP_NE(_flag_a, _flag_b)) goto L_3000E879; /* 0x3000E90E: jne 0x3000e879 */
  18731 L_3000E914:
  18732     ebx = POP32_VAL(esp); /* 0x3000E914: pop ebx */
  18733 L_3000E915:
  18734     edi = POP32_VAL(esp); /* 0x3000E915: pop edi */
  18735     esi = POP32_VAL(esp); /* 0x3000E916: pop esi */
  18736     esp = ebp; /* 0x3000E917: mov esp, ebp */
  18737     ebp = POP32_VAL(esp); /* 0x3000E919: pop ebp */
  18738     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E91A: ret  */
  18739     RECOMP_REGS_OUT();
  18740 }
  18741 
  18742 void sub_3000E920(void) {
  18743     int _fpu_cmp = 0;
  18744     uint32_t _cf = 0;
  18745     int _df = 1;
  18746     uint32_t _flag_k = FK_NONE;
  18747     uint32_t _flag_a = 0, _flag_b = 0;
  18748     uint32_t _itail_tgt = 0;
  18749     RECOMP_REGS_LOCALS
  18750     RECOMP_ENTER(0x3000E920u);
  18751 
  18752 L_3000E920:
  18753     PUSH32(esp, ebp); /* 0x3000E920: push ebp */
  18754     ebp = esp; /* 0x3000E921: mov ebp, esp */
  18755     eax = MEM32(ebp + 0x8); /* 0x3000E923: mov eax, dword ptr [ebp + 8] */
  18756     PUSH32(esp, ebx); /* 0x3000E926: push ebx */
  18757     PUSH32(esp, esi); /* 0x3000E927: push esi */
  18758     ebx = eax; /* 0x3000E928: mov ebx, eax */
  18759     PUSH32(esp, edi); /* 0x3000E92A: push edi */
  18760     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18761     esi = 0; /* 0x3000E92B: xor esi, esi */
  18762     _cf = 0;
  18763     _flag_k = FK_TEST;
  18764     edi = eax + 0x24; /* 0x3000E92D: lea edi, [eax + 0x24] */
  18765     edx = ecx + 0x18; /* 0x3000E930: lea edx, [ecx + 0x18] */
  18766     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
  18767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18768     ebx = ebx - ecx; /* 0x3000E933: sub ebx, ecx */
  18769     _flag_k = FK_CMP;
  18770 L_3000E935:
  18771     fp_push(*(float*)&MEM32(ebx + edx)); /* 0x3000E935: fld dword ptr [ebx + edx] */
  18772     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edx + 0xC)); /* 0x3000E938: fcomp dword ptr [edx + 0xc] */
  18773     fp_pop();
  18774     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000E93B: fnstsw ax */
  18775     /* test HI8(eax), 0x41u */ /* 0x3000E93D: test ah, 0x41 */
  18776     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  18777     _cf = 0;
  18778     _flag_k = FK_NARROW(FK_TEST, 24);
  18779     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E962; /* 0x3000E940: je 0x3000e962 */
  18780 L_3000E942:
  18781     fp_push(*(float*)&MEM32(edx)); /* 0x3000E942: fld dword ptr [edx] */
  18782     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x3000E944: fcomp dword ptr [edi] */
  18783     fp_pop();
  18784     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000E946: fnstsw ax */
  18785     /* test HI8(eax), 0x41u */ /* 0x3000E948: test ah, 0x41 */
  18786     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  18787     _cf = 0;
  18788     _flag_k = FK_NARROW(FK_TEST, 24);
  18789     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E962; /* 0x3000E94B: je 0x3000e962 */
  18790 L_3000E94D:
  18791     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  18792     esi = esi + 1; /* 0x3000E94D: inc esi */
  18793     _flag_k = FK_INC;
  18794     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  18795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18796     edx = edx + 4; /* 0x3000E94E: add edx, 4 */
  18797     _flag_k = FK_ADD;
  18798     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  18799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18800     edi = edi + 4; /* 0x3000E951: add edi, 4 */
  18801     _flag_k = FK_ADD;
  18802     /* cmp esi, 3 */ /* 0x3000E954: cmp esi, 3 */
  18803     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
  18804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18805     _flag_k = FK_CMP;
  18806     RECOMP_BACKEDGE();
  18807     if (CMP_L(_flag_a, _flag_b)) goto L_3000E935; /* 0x3000E957: jl 0x3000e935 */
  18808 L_3000E959:
  18809     edi = POP32_VAL(esp); /* 0x3000E959: pop edi */
  18810     esi = POP32_VAL(esp); /* 0x3000E95A: pop esi */
  18811     SET_LO8(eax, 1); /* 0x3000E95B: mov al, 1 */
  18812     ebx = POP32_VAL(esp); /* 0x3000E95D: pop ebx */
  18813     ebp = POP32_VAL(esp); /* 0x3000E95E: pop ebp */
  18814     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E95F: ret 4 */
  18815 L_3000E962:
  18816     edi = POP32_VAL(esp); /* 0x3000E962: pop edi */
  18817     esi = POP32_VAL(esp); /* 0x3000E963: pop esi */
  18818     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  18819     SET_LO8(eax, 0); /* 0x3000E964: xor al, al */
  18820     _cf = 0;
  18821     _flag_k = FK_NARROW(FK_TEST, 24);
  18822     ebx = POP32_VAL(esp); /* 0x3000E966: pop ebx */
  18823     ebp = POP32_VAL(esp); /* 0x3000E967: pop ebp */
  18824     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000E968: ret 4 */
  18825     RECOMP_REGS_OUT();
  18826 }
  18827 
  18828 void sub_3000E970(void) {
  18829     int _fpu_cmp = 0;
  18830     uint32_t _cf = 0;
  18831     int _df = 1;
  18832     uint32_t _flag_k = FK_NONE;
  18833     uint32_t _flag_a = 0, _flag_b = 0;
  18834     uint32_t _itail_tgt = 0;
  18835     RECOMP_REGS_LOCALS
  18836     RECOMP_ENTER(0x3000E970u);
  18837 
  18838 L_3000E970:
  18839     PUSH32(esp, ebp); /* 0x3000E970: push ebp */
  18840     ebp = esp; /* 0x3000E971: mov ebp, esp */
  18841     PUSH32(esp, ecx); /* 0x3000E973: push ecx */
  18842     PUSH32(esp, esi); /* 0x3000E974: push esi */
  18843     esi = ecx; /* 0x3000E975: mov esi, ecx */
  18844     eax = MEM32(esi + 0x4); /* 0x3000E977: mov eax, dword ptr [esi + 4] */
  18845     PUSH32(esp, eax); /* 0x3000E97A: push eax */
  18846     MEM32(ebp + (-0x4)) = eax; /* 0x3000E97B: mov dword ptr [ebp - 4], eax */
  18847     RECOMP_ICALL(0x30018080u); /* 0x3000E97E: call 0x30018080 */ /* not lifted */
  18848     RECOMP_FLAGS_IN();
  18849     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18850     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18851     esp = esp + 4; /* 0x3000E983: add esp, 4 */
  18852     _flag_k = FK_ADD;
  18853     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18854     eax = 0; /* 0x3000E986: xor eax, eax */
  18855     _cf = 0;
  18856     _flag_k = FK_TEST;
  18857     MEM32(esi + 0x4) = eax; /* 0x3000E988: mov dword ptr [esi + 4], eax */
  18858     MEM32(esi + 0x8) = eax; /* 0x3000E98B: mov dword ptr [esi + 8], eax */
  18859     MEM32(esi + 0xC) = eax; /* 0x3000E98E: mov dword ptr [esi + 0xc], eax */
  18860     esi = POP32_VAL(esp); /* 0x3000E991: pop esi */
  18861     esp = ebp; /* 0x3000E992: mov esp, ebp */
  18862     ebp = POP32_VAL(esp); /* 0x3000E994: pop ebp */
  18863     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E995: ret  */
  18864     RECOMP_REGS_OUT();
  18865 }
  18866 
  18867 void sub_3000E9A0(void) {
  18868     int _fpu_cmp = 0;
  18869     uint32_t _cf = 0;
  18870     int _df = 1;
  18871     uint32_t _flag_k = FK_NONE;
  18872     uint32_t _flag_a = 0, _flag_b = 0;
  18873     uint32_t _itail_tgt = 0;
  18874     RECOMP_REGS_LOCALS
  18875     RECOMP_ENTER(0x3000E9A0u);
  18876 
  18877 L_3000E9A0:
  18878     edx = MEM32(ecx + 0x4); /* 0x3000E9A0: mov edx, dword ptr [ecx + 4] */
  18879     /* test edx, edx */ /* 0x3000E9A3: test edx, edx */
  18880     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  18881     _cf = 0;
  18882     _flag_k = FK_TEST;
  18883     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000E9AA; /* 0x3000E9A5: jne 0x3000e9aa */
  18884 L_3000E9A7:
  18885     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18886     eax = 0; /* 0x3000E9A7: xor eax, eax */
  18887     _cf = 0;
  18888     _flag_k = FK_TEST;
  18889     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E9A9: ret  */
  18890 L_3000E9AA:
  18891     eax = MEM32(ecx + 0x8); /* 0x3000E9AA: mov eax, dword ptr [ecx + 8] */
  18892     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  18893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18894     eax = eax - edx; /* 0x3000E9AD: sub eax, edx */
  18895     _flag_k = FK_CMP;
  18896     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000E9AF: sar eax, 2 */
  18897     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18898     eax = (uint32_t)((int32_t)eax >> 2u);
  18899     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E9B2: ret  */
  18900     RECOMP_REGS_OUT();
  18901 }
  18902 
  18903 void sub_3000E9C0(void) {
  18904     int _fpu_cmp = 0;
  18905     uint32_t _cf = 0;
  18906     int _df = 1;
  18907     uint32_t _flag_k = FK_NONE;
  18908     uint32_t _flag_a = 0, _flag_b = 0;
  18909     uint32_t _itail_tgt = 0;
  18910     RECOMP_REGS_LOCALS
  18911     RECOMP_ENTER(0x3000E9C0u);
  18912 
  18913 L_3000E9C0:
  18914     PUSH32(esp, ebp); /* 0x3000E9C0: push ebp */
  18915     ebp = esp; /* 0x3000E9C1: mov ebp, esp */
  18916     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  18917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18918     esp = esp - 0xCu; /* 0x3000E9C3: sub esp, 0xc */
  18919     _flag_k = FK_CMP;
  18920     PUSH32(esp, ebx); /* 0x3000E9C6: push ebx */
  18921     ebx = ecx; /* 0x3000E9C7: mov ebx, ecx */
  18922     eax = MEM32(ebx + 0x8); /* 0x3000E9C9: mov eax, dword ptr [ebx + 8] */
  18923     ecx = MEM32(ebx + 0xC); /* 0x3000E9CC: mov ecx, dword ptr [ebx + 0xc] */
  18924     PUSH32(esp, esi); /* 0x3000E9CF: push esi */
  18925     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  18926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18927     ecx = ecx - eax; /* 0x3000E9D0: sub ecx, eax */
  18928     _flag_k = FK_CMP;
  18929     PUSH32(esp, edi); /* 0x3000E9D2: push edi */
  18930     edi = MEM32(ebp + 0xC); /* 0x3000E9D3: mov edi, dword ptr [ebp + 0xc] */
  18931     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3000E9D6: sar ecx, 2 */
  18932     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18933     ecx = (uint32_t)((int32_t)ecx >> 2u);
  18934     /* cmp ecx, edi */ /* 0x3000E9D9: cmp ecx, edi */
  18935     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  18936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18937     _flag_k = FK_CMP;
  18938     MEM32(ebp + (-0x4)) = ebx; /* 0x3000E9DB: mov dword ptr [ebp - 4], ebx */
  18939     if (CMP_AE(_flag_a, _flag_b)) goto L_3000EAE5; /* 0x3000E9DE: jae 0x3000eae5 */
  18940 L_3000E9E4:
  18941     edx = MEM32(ebx + 0x4); /* 0x3000E9E4: mov edx, dword ptr [ebx + 4] */
  18942     /* test edx, edx */ /* 0x3000E9E7: test edx, edx */
  18943     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  18944     _cf = 0;
  18945     _flag_k = FK_TEST;
  18946     if (TEST_Z(_flag_a, _flag_b)) goto L_3000E9F6; /* 0x3000E9E9: je 0x3000e9f6 */
  18947 L_3000E9EB:
  18948     ecx = eax; /* 0x3000E9EB: mov ecx, eax */
  18949     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  18950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18951     ecx = ecx - edx; /* 0x3000E9ED: sub ecx, edx */
  18952     _flag_k = FK_CMP;
  18953     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3000E9EF: sar ecx, 2 */
  18954     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18955     ecx = (uint32_t)((int32_t)ecx >> 2u);
  18956     /* cmp edi, ecx */ /* 0x3000E9F2: cmp edi, ecx */
  18957     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
  18958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18959     _flag_k = FK_CMP;
  18960     if (CMP_B(_flag_a, _flag_b)) goto L_3000E9F8; /* 0x3000E9F4: jb 0x3000e9f8 */
  18961 L_3000E9F6:
  18962     ecx = edi; /* 0x3000E9F6: mov ecx, edi */
  18963 L_3000E9F8:
  18964     /* test edx, edx */ /* 0x3000E9F8: test edx, edx */
  18965     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  18966     _cf = 0;
  18967     _flag_k = FK_TEST;
  18968     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000EA00; /* 0x3000E9FA: jne 0x3000ea00 */
  18969 L_3000E9FC:
  18970     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18971     eax = 0; /* 0x3000E9FC: xor eax, eax */
  18972     _cf = 0;
  18973     _flag_k = FK_TEST;
  18974     goto L_3000EA05; /* 0x3000E9FE: jmp 0x3000ea05 */
  18975 L_3000EA00:
  18976     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  18977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18978     eax = eax - edx; /* 0x3000EA00: sub eax, edx */
  18979     _flag_k = FK_CMP;
  18980     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000EA02: sar eax, 2 */
  18981     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  18982     eax = (uint32_t)((int32_t)eax >> 2u);
  18983 L_3000EA05:
  18984     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  18985     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18986     eax = eax + ecx; /* 0x3000EA05: add eax, ecx */
  18987     _flag_k = FK_ADD;
  18988     /* test eax, eax */ /* 0x3000EA07: test eax, eax */
  18989     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  18990     _cf = 0;
  18991     _flag_k = FK_TEST;
  18992     MEM32(ebp + (-0xC)) = eax; /* 0x3000EA09: mov dword ptr [ebp - 0xc], eax */
  18993     if (TEST_NS(_flag_a, _flag_b)) goto L_3000EA10; /* 0x3000EA0C: jge 0x3000ea10 */
  18994 L_3000EA0E:
  18995     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18996     eax = 0; /* 0x3000EA0E: xor eax, eax */
  18997     _cf = 0;
  18998     _flag_k = FK_TEST;
  18999 L_3000EA10:
  19000     edx = eax * 4; /* 0x3000EA10: lea edx, [eax*4] */
  19001     PUSH32(esp, edx); /* 0x3000EA17: push edx */
  19002     RECOMP_ICALL(0x300180A8u); /* 0x3000EA18: call 0x300180a8 */ /* not lifted */
  19003     RECOMP_FLAGS_IN();
  19004     MEM32(ebp + (-0x8)) = eax; /* 0x3000EA1D: mov dword ptr [ebp - 8], eax */
  19005     ecx = eax; /* 0x3000EA20: mov ecx, eax */
  19006     eax = MEM32(ebx + 0x4); /* 0x3000EA22: mov eax, dword ptr [ebx + 4] */
  19007     ebx = MEM32(ebp + 0x8); /* 0x3000EA25: mov ebx, dword ptr [ebp + 8] */
  19008     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  19009     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19010     esp = esp + 4; /* 0x3000EA28: add esp, 4 */
  19011     _flag_k = FK_ADD;
  19012     /* cmp eax, ebx */ /* 0x3000EA2B: cmp eax, ebx */
  19013     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  19014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19015     _flag_k = FK_CMP;
  19016     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EA41; /* 0x3000EA2D: je 0x3000ea41 */
  19017 L_3000EA2F:
  19018     /* test ecx, ecx */ /* 0x3000EA2F: test ecx, ecx */
  19019     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  19020     _cf = 0;
  19021     _flag_k = FK_TEST;
  19022     if (TEST_Z(_flag_a, _flag_b)) goto L_3000EA37; /* 0x3000EA31: je 0x3000ea37 */
  19023 L_3000EA33:
  19024     edx = MEM32(eax); /* 0x3000EA33: mov edx, dword ptr [eax] */
  19025     MEM32(ecx) = edx; /* 0x3000EA35: mov dword ptr [ecx], edx */
  19026 L_3000EA37:
  19027     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  19028     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19029     eax = eax + 4; /* 0x3000EA37: add eax, 4 */
  19030     _flag_k = FK_ADD;
  19031     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  19032     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19033     ecx = ecx + 4; /* 0x3000EA3A: add ecx, 4 */
  19034     _flag_k = FK_ADD;
  19035     /* cmp eax, ebx */ /* 0x3000EA3D: cmp eax, ebx */
  19036     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  19037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19038     _flag_k = FK_CMP;
  19039     RECOMP_BACKEDGE();
  19040     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EA2F; /* 0x3000EA3F: jne 0x3000ea2f */
  19041 L_3000EA41:
  19042     /* test edi, edi */ /* 0x3000EA41: test edi, edi */
  19043     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  19044     _cf = 0;
  19045     _flag_k = FK_TEST;
  19046     eax = ecx; /* 0x3000EA43: mov eax, ecx */
  19047     if (TEST_Z(_flag_a, _flag_b)) goto L_3000EA5A; /* 0x3000EA45: jbe 0x3000ea5a */
  19048 L_3000EA47:
  19049     edx = edi; /* 0x3000EA47: mov edx, edi */
  19050 L_3000EA49:
  19051     /* test eax, eax */ /* 0x3000EA49: test eax, eax */
  19052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  19053     _cf = 0;
  19054     _flag_k = FK_TEST;
  19055     if (TEST_Z(_flag_a, _flag_b)) goto L_3000EA54; /* 0x3000EA4B: je 0x3000ea54 */
  19056 L_3000EA4D:
  19057     esi = MEM32(ebp + 0x10); /* 0x3000EA4D: mov esi, dword ptr [ebp + 0x10] */
  19058     esi = MEM32(esi); /* 0x3000EA50: mov esi, dword ptr [esi] */
  19059     MEM32(eax) = esi; /* 0x3000EA52: mov dword ptr [eax], esi */
  19060 L_3000EA54:
  19061     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  19062     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19063     eax = eax + 4; /* 0x3000EA54: add eax, 4 */
  19064     _flag_k = FK_ADD;
  19065     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  19066     edx = edx - 1; /* 0x3000EA57: dec edx */
  19067     _flag_k = FK_DEC;
  19068     RECOMP_BACKEDGE();
  19069     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3000EA49; /* 0x3000EA58: jne 0x3000ea49 */
  19070 L_3000EA5A:
  19071     eax = MEM32(ebp + (-0x4)); /* 0x3000EA5A: mov eax, dword ptr [ebp - 4] */
  19072     esi = edi * 4; /* 0x3000EA5D: lea esi, [edi*4] */
  19073     edi = MEM32(eax + 0x8); /* 0x3000EA64: mov edi, dword ptr [eax + 8] */
  19074     /* cmp ebx, edi */ /* 0x3000EA67: cmp ebx, edi */
  19075     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
  19076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19077     _flag_k = FK_CMP;
  19078     edx = esi + ecx; /* 0x3000EA69: lea edx, [esi + ecx] */
  19079     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EA88; /* 0x3000EA6C: je 0x3000ea88 */
  19080 L_3000EA6E:
  19081     eax = edx; /* 0x3000EA6E: mov eax, edx */
  19082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  19083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19084     eax = eax - esi; /* 0x3000EA70: sub eax, esi */
  19085     _flag_k = FK_CMP;
  19086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  19087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19088     eax = eax - ecx; /* 0x3000EA72: sub eax, ecx */
  19089     _flag_k = FK_CMP;
  19090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  19091     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19092     eax = eax + ebx; /* 0x3000EA74: add eax, ebx */
  19093     _flag_k = FK_ADD;
  19094 L_3000EA76:
  19095     /* test edx, edx */ /* 0x3000EA76: test edx, edx */
  19096     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  19097     _cf = 0;
  19098     _flag_k = FK_TEST;
  19099     if (TEST_Z(_flag_a, _flag_b)) goto L_3000EA7E; /* 0x3000EA78: je 0x3000ea7e */
  19100 L_3000EA7A:
  19101     ecx = MEM32(eax); /* 0x3000EA7A: mov ecx, dword ptr [eax] */
  19102     MEM32(edx) = ecx; /* 0x3000EA7C: mov dword ptr [edx], ecx */
  19103 L_3000EA7E:
  19104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  19105     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19106     eax = eax + 4; /* 0x3000EA7E: add eax, 4 */
  19107     _flag_k = FK_ADD;
  19108     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  19109     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19110     edx = edx + 4; /* 0x3000EA81: add edx, 4 */
  19111     _flag_k = FK_ADD;
  19112     /* cmp eax, edi */ /* 0x3000EA84: cmp eax, edi */
  19113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  19114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19115     _flag_k = FK_CMP;
  19116     RECOMP_BACKEDGE();
  19117     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EA76; /* 0x3000EA86: jne 0x3000ea76 */
  19118 L_3000EA88:
  19119     esi = MEM32(ebp + (-0x4)); /* 0x3000EA88: mov esi, dword ptr [ebp - 4] */
  19120     eax = MEM32(esi + 0x4); /* 0x3000EA8B: mov eax, dword ptr [esi + 4] */
  19121     PUSH32(esp, eax); /* 0x3000EA8E: push eax */
  19122     MEM32(ebp + 0x10) = eax; /* 0x3000EA8F: mov dword ptr [ebp + 0x10], eax */
  19123     RECOMP_ICALL(0x30018080u); /* 0x3000EA92: call 0x30018080 */ /* not lifted */
  19124     RECOMP_FLAGS_IN();
  19125     edx = MEM32(ebp + (-0x8)); /* 0x3000EA97: mov edx, dword ptr [ebp - 8] */
  19126     eax = MEM32(ebp + (-0xC)); /* 0x3000EA9A: mov eax, dword ptr [ebp - 0xc] */
  19127     ecx = edx + eax * 4; /* 0x3000EA9D: lea ecx, [edx + eax*4] */
  19128     MEM32(esi + 0xC) = ecx; /* 0x3000EAA0: mov dword ptr [esi + 0xc], ecx */
  19129     ecx = MEM32(esi + 0x4); /* 0x3000EAA3: mov ecx, dword ptr [esi + 4] */
  19130     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  19131     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19132     esp = esp + 4; /* 0x3000EAA6: add esp, 4 */
  19133     _flag_k = FK_ADD;
  19134     /* test ecx, ecx */ /* 0x3000EAA9: test ecx, ecx */
  19135     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  19136     _cf = 0;
  19137     _flag_k = FK_TEST;
  19138     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000EAC6; /* 0x3000EAAB: jne 0x3000eac6 */
  19139 L_3000EAAD:
  19140     ecx = MEM32(ebp + 0xC); /* 0x3000EAAD: mov ecx, dword ptr [ebp + 0xc] */
  19141     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19142     eax = 0; /* 0x3000EAB0: xor eax, eax */
  19143     _cf = 0;
  19144     _flag_k = FK_TEST;
  19145     eax = ecx; /* 0x3000EAB2: mov eax, ecx */
  19146     eax = edx + eax * 4; /* 0x3000EAB4: lea eax, [edx + eax*4] */
  19147     edi = POP32_VAL(esp); /* 0x3000EAB7: pop edi */
  19148     MEM32(esi + 0x8) = eax; /* 0x3000EAB8: mov dword ptr [esi + 8], eax */
  19149     MEM32(esi + 0x4) = edx; /* 0x3000EABB: mov dword ptr [esi + 4], edx */
  19150     esi = POP32_VAL(esp); /* 0x3000EABE: pop esi */
  19151     ebx = POP32_VAL(esp); /* 0x3000EABF: pop ebx */
  19152     esp = ebp; /* 0x3000EAC0: mov esp, ebp */
  19153     ebp = POP32_VAL(esp); /* 0x3000EAC2: pop ebp */
  19154     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000EAC3: ret 0xc */
  19155 L_3000EAC6:
  19156     eax = MEM32(esi + 0x8); /* 0x3000EAC6: mov eax, dword ptr [esi + 8] */
  19157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  19158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19159     eax = eax - ecx; /* 0x3000EAC9: sub eax, ecx */
  19160     _flag_k = FK_CMP;
  19161     ecx = MEM32(ebp + 0xC); /* 0x3000EACB: mov ecx, dword ptr [ebp + 0xc] */
  19162     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000EACE: sar eax, 2 */
  19163     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19164     eax = (uint32_t)((int32_t)eax >> 2u);
  19165     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  19166     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19167     eax = eax + ecx; /* 0x3000EAD1: add eax, ecx */
  19168     _flag_k = FK_ADD;
  19169     eax = edx + eax * 4; /* 0x3000EAD3: lea eax, [edx + eax*4] */
  19170     edi = POP32_VAL(esp); /* 0x3000EAD6: pop edi */
  19171     MEM32(esi + 0x8) = eax; /* 0x3000EAD7: mov dword ptr [esi + 8], eax */
  19172     MEM32(esi + 0x4) = edx; /* 0x3000EADA: mov dword ptr [esi + 4], edx */
  19173     esi = POP32_VAL(esp); /* 0x3000EADD: pop esi */
  19174     ebx = POP32_VAL(esp); /* 0x3000EADE: pop ebx */
  19175     esp = ebp; /* 0x3000EADF: mov esp, ebp */
  19176     ebp = POP32_VAL(esp); /* 0x3000EAE1: pop ebp */
  19177     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000EAE2: ret 0xc */
  19178 L_3000EAE5:
  19179     edx = MEM32(ebp + 0x8); /* 0x3000EAE5: mov edx, dword ptr [ebp + 8] */
  19180     ecx = eax; /* 0x3000EAE8: mov ecx, eax */
  19181     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  19182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19183     ecx = ecx - edx; /* 0x3000EAEA: sub ecx, edx */
  19184     _flag_k = FK_CMP;
  19185     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3000EAEC: sar ecx, 2 */
  19186     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19187     ecx = (uint32_t)((int32_t)ecx >> 2u);
  19188     /* cmp ecx, edi */ /* 0x3000EAEF: cmp ecx, edi */
  19189     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  19190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19191     _flag_k = FK_CMP;
  19192     if (CMP_AE(_flag_a, _flag_b)) goto L_3000EB66; /* 0x3000EAF1: jae 0x3000eb66 */
  19193 L_3000EAF3:
  19194     esi = edi * 4; /* 0x3000EAF3: lea esi, [edi*4] */
  19195     MEM32(ebp + 0xC) = esi; /* 0x3000EAFA: mov dword ptr [ebp + 0xc], esi */
  19196     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  19197     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19198     esi = esi + edx; /* 0x3000EAFD: add esi, edx */
  19199     _flag_k = FK_ADD;
  19200     /* cmp edx, eax */ /* 0x3000EAFF: cmp edx, eax */
  19201     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  19202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19203     _flag_k = FK_CMP;
  19204     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EB1F; /* 0x3000EB01: je 0x3000eb1f */
  19205 L_3000EB03:
  19206     ebx = MEM32(ebp + 0xC); /* 0x3000EB03: mov ebx, dword ptr [ebp + 0xc] */
  19207     ecx = esi; /* 0x3000EB06: mov ecx, esi */
  19208     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  19209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19210     ecx = ecx - ebx; /* 0x3000EB08: sub ecx, ebx */
  19211     _flag_k = FK_CMP;
  19212 L_3000EB0A:
  19213     /* test esi, esi */ /* 0x3000EB0A: test esi, esi */
  19214     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  19215     _cf = 0;
  19216     _flag_k = FK_TEST;
  19217     if (TEST_Z(_flag_a, _flag_b)) goto L_3000EB12; /* 0x3000EB0C: je 0x3000eb12 */
  19218 L_3000EB0E:
  19219     ebx = MEM32(ecx); /* 0x3000EB0E: mov ebx, dword ptr [ecx] */
  19220     MEM32(esi) = ebx; /* 0x3000EB10: mov dword ptr [esi], ebx */
  19221 L_3000EB12:
  19222     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  19223     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19224     ecx = ecx + 4; /* 0x3000EB12: add ecx, 4 */
  19225     _flag_k = FK_ADD;
  19226     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  19227     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19228     esi = esi + 4; /* 0x3000EB15: add esi, 4 */
  19229     _flag_k = FK_ADD;
  19230     /* cmp ecx, eax */ /* 0x3000EB18: cmp ecx, eax */
  19231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  19232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19233     _flag_k = FK_CMP;
  19234     RECOMP_BACKEDGE();
  19235     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EB0A; /* 0x3000EB1A: jne 0x3000eb0a */
  19236 L_3000EB1C:
  19237     ebx = MEM32(ebp + (-0x4)); /* 0x3000EB1C: mov ebx, dword ptr [ebp - 4] */
  19238 L_3000EB1F:
  19239     eax = MEM32(ebx + 0x8); /* 0x3000EB1F: mov eax, dword ptr [ebx + 8] */
  19240     esi = MEM32(ebp + 0x10); /* 0x3000EB22: mov esi, dword ptr [ebp + 0x10] */
  19241     ecx = eax; /* 0x3000EB25: mov ecx, eax */
  19242     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  19243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19244     ecx = ecx - edx; /* 0x3000EB27: sub ecx, edx */
  19245     _flag_k = FK_CMP;
  19246     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3000EB29: sar ecx, 2 */
  19247     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19248     ecx = (uint32_t)((int32_t)ecx >> 2u);
  19249     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
  19250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19251     edi = edi - ecx; /* 0x3000EB2C: sub edi, ecx */
  19252     _flag_k = FK_CMP;
  19253     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000EB3E; /* 0x3000EB2E: je 0x3000eb3e */
  19254 L_3000EB30:
  19255     /* test eax, eax */ /* 0x3000EB30: test eax, eax */
  19256     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  19257     _cf = 0;
  19258     _flag_k = FK_TEST;
  19259     if (TEST_Z(_flag_a, _flag_b)) goto L_3000EB38; /* 0x3000EB32: je 0x3000eb38 */
  19260 L_3000EB34:
  19261     ecx = MEM32(esi); /* 0x3000EB34: mov ecx, dword ptr [esi] */
  19262     MEM32(eax) = ecx; /* 0x3000EB36: mov dword ptr [eax], ecx */
  19263 L_3000EB38:
  19264     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  19265     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19266     eax = eax + 4; /* 0x3000EB38: add eax, 4 */
  19267     _flag_k = FK_ADD;
  19268     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  19269     edi = edi - 1; /* 0x3000EB3B: dec edi */
  19270     _flag_k = FK_DEC;
  19271     RECOMP_BACKEDGE();
  19272     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3000EB30; /* 0x3000EB3C: jne 0x3000eb30 */
  19273 L_3000EB3E:
  19274     ecx = MEM32(ebx + 0x8); /* 0x3000EB3E: mov ecx, dword ptr [ebx + 8] */
  19275     /* cmp edx, ecx */ /* 0x3000EB41: cmp edx, ecx */
  19276     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  19277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19278     _flag_k = FK_CMP;
  19279     eax = edx; /* 0x3000EB43: mov eax, edx */
  19280     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EB52; /* 0x3000EB45: je 0x3000eb52 */
  19281 L_3000EB47:
  19282     edx = MEM32(esi); /* 0x3000EB47: mov edx, dword ptr [esi] */
  19283     MEM32(eax) = edx; /* 0x3000EB49: mov dword ptr [eax], edx */
  19284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  19285     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19286     eax = eax + 4; /* 0x3000EB4B: add eax, 4 */
  19287     _flag_k = FK_ADD;
  19288     /* cmp eax, ecx */ /* 0x3000EB4E: cmp eax, ecx */
  19289     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  19290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19291     _flag_k = FK_CMP;
  19292     RECOMP_BACKEDGE();
  19293     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EB47; /* 0x3000EB50: jne 0x3000eb47 */
  19294 L_3000EB52:
  19295     ecx = MEM32(ebx + 0x8); /* 0x3000EB52: mov ecx, dword ptr [ebx + 8] */
  19296     eax = MEM32(ebp + 0xC); /* 0x3000EB55: mov eax, dword ptr [ebp + 0xc] */
  19297     edi = POP32_VAL(esp); /* 0x3000EB58: pop edi */
  19298     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  19299     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19300     ecx = ecx + eax; /* 0x3000EB59: add ecx, eax */
  19301     _flag_k = FK_ADD;
  19302     esi = POP32_VAL(esp); /* 0x3000EB5B: pop esi */
  19303     MEM32(ebx + 0x8) = ecx; /* 0x3000EB5C: mov dword ptr [ebx + 8], ecx */
  19304     ebx = POP32_VAL(esp); /* 0x3000EB5F: pop ebx */
  19305     esp = ebp; /* 0x3000EB60: mov esp, ebp */
  19306     ebp = POP32_VAL(esp); /* 0x3000EB62: pop ebp */
  19307     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000EB63: ret 0xc */
  19308 L_3000EB66:
  19309     /* test edi, edi */ /* 0x3000EB66: test edi, edi */
  19310     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  19311     _cf = 0;
  19312     _flag_k = FK_TEST;
  19313     if (TEST_Z(_flag_a, _flag_b)) goto L_3000EBC0; /* 0x3000EB68: jbe 0x3000ebc0 */
  19314 L_3000EB6A:
  19315     if (2u) _cf = (((edi) >> 30) & 1u); /* 0x3000EB6A: shl edi, 2 */
  19316     if (2u) { _flag_a = recomp_flags_pack((edi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19317     edi = edi << 2u; /* 0x3000EB6A: shl edi, 2 */
  19318     ecx = eax; /* 0x3000EB6D: mov ecx, eax */
  19319     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  19320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19321     ecx = ecx - edi; /* 0x3000EB6F: sub ecx, edi */
  19322     _flag_k = FK_CMP;
  19323     /* cmp ecx, eax */ /* 0x3000EB71: cmp ecx, eax */
  19324     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  19325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19326     _flag_k = FK_CMP;
  19327     esi = eax; /* 0x3000EB73: mov esi, eax */
  19328     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EB8C; /* 0x3000EB75: je 0x3000eb8c */
  19329 L_3000EB77:
  19330     /* test esi, esi */ /* 0x3000EB77: test esi, esi */
  19331     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  19332     _cf = 0;
  19333     _flag_k = FK_TEST;
  19334     if (TEST_Z(_flag_a, _flag_b)) goto L_3000EB82; /* 0x3000EB79: je 0x3000eb82 */
  19335 L_3000EB7B:
  19336     ebx = MEM32(ecx); /* 0x3000EB7B: mov ebx, dword ptr [ecx] */
  19337     MEM32(esi) = ebx; /* 0x3000EB7D: mov dword ptr [esi], ebx */
  19338     ebx = MEM32(ebp + (-0x4)); /* 0x3000EB7F: mov ebx, dword ptr [ebp - 4] */
  19339 L_3000EB82:
  19340     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  19341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19342     ecx = ecx + 4; /* 0x3000EB82: add ecx, 4 */
  19343     _flag_k = FK_ADD;
  19344     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  19345     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19346     esi = esi + 4; /* 0x3000EB85: add esi, 4 */
  19347     _flag_k = FK_ADD;
  19348     /* cmp ecx, eax */ /* 0x3000EB88: cmp ecx, eax */
  19349     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  19350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19351     _flag_k = FK_CMP;
  19352     RECOMP_BACKEDGE();
  19353     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EB77; /* 0x3000EB8A: jne 0x3000eb77 */
  19354 L_3000EB8C:
  19355     ecx = MEM32(ebx + 0x8); /* 0x3000EB8C: mov ecx, dword ptr [ebx + 8] */
  19356     eax = ecx; /* 0x3000EB8F: mov eax, ecx */
  19357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  19358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19359     eax = eax - edi; /* 0x3000EB91: sub eax, edi */
  19360     _flag_k = FK_CMP;
  19361     /* cmp edx, eax */ /* 0x3000EB93: cmp edx, eax */
  19362     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  19363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19364     _flag_k = FK_CMP;
  19365     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EBA6; /* 0x3000EB95: je 0x3000eba6 */
  19366 L_3000EB97:
  19367     esi = MEM32(eax + (-0x4)); /* 0x3000EB97: mov esi, dword ptr [eax - 4] */
  19368     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  19369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19370     eax = eax - 4; /* 0x3000EB9A: sub eax, 4 */
  19371     _flag_k = FK_CMP;
  19372     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  19373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19374     ecx = ecx - 4; /* 0x3000EB9D: sub ecx, 4 */
  19375     _flag_k = FK_CMP;
  19376     /* cmp eax, edx */ /* 0x3000EBA0: cmp eax, edx */
  19377     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  19378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19379     _flag_k = FK_CMP;
  19380     MEM32(ecx) = esi; /* 0x3000EBA2: mov dword ptr [ecx], esi */
  19381     RECOMP_BACKEDGE();
  19382     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EB97; /* 0x3000EBA4: jne 0x3000eb97 */
  19383 L_3000EBA6:
  19384     ecx = edi + edx; /* 0x3000EBA6: lea ecx, [edi + edx] */
  19385     /* cmp edx, ecx */ /* 0x3000EBA9: cmp edx, ecx */
  19386     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  19387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19388     _flag_k = FK_CMP;
  19389     eax = edx; /* 0x3000EBAB: mov eax, edx */
  19390     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EBBD; /* 0x3000EBAD: je 0x3000ebbd */
  19391 L_3000EBAF:
  19392     edx = MEM32(ebp + 0x10); /* 0x3000EBAF: mov edx, dword ptr [ebp + 0x10] */
  19393 L_3000EBB2:
  19394     esi = MEM32(edx); /* 0x3000EBB2: mov esi, dword ptr [edx] */
  19395     MEM32(eax) = esi; /* 0x3000EBB4: mov dword ptr [eax], esi */
  19396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  19397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19398     eax = eax + 4; /* 0x3000EBB6: add eax, 4 */
  19399     _flag_k = FK_ADD;
  19400     /* cmp eax, ecx */ /* 0x3000EBB9: cmp eax, ecx */
  19401     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  19402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19403     _flag_k = FK_CMP;
  19404     RECOMP_BACKEDGE();
  19405     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EBB2; /* 0x3000EBBB: jne 0x3000ebb2 */
  19406 L_3000EBBD:
  19407     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(edi);
  19408     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19409     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + edi; /* 0x3000EBBD: add dword ptr [ebx + 8], edi */
  19410     _flag_k = FK_ADD;
  19411 L_3000EBC0:
  19412     edi = POP32_VAL(esp); /* 0x3000EBC0: pop edi */
  19413     esi = POP32_VAL(esp); /* 0x3000EBC1: pop esi */
  19414     ebx = POP32_VAL(esp); /* 0x3000EBC2: pop ebx */
  19415     esp = ebp; /* 0x3000EBC3: mov esp, ebp */
  19416     ebp = POP32_VAL(esp); /* 0x3000EBC5: pop ebp */
  19417     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000EBC6: ret 0xc */
  19418     RECOMP_REGS_OUT();
  19419 }
  19420 
  19421 void sub_3000EBD0(void) {
  19422     int _fpu_cmp = 0;
  19423     uint32_t _cf = 0;
  19424     int _df = 1;
  19425     uint32_t _flag_k = FK_NONE;
  19426     uint32_t _flag_a = 0, _flag_b = 0;
  19427     uint32_t _itail_tgt = 0;
  19428     RECOMP_REGS_LOCALS
  19429     RECOMP_ENTER(0x3000EBD0u);
  19430 
  19431 L_3000EBD0:
  19432     PUSH32(esp, ebp); /* 0x3000EBD0: push ebp */
  19433     ebp = esp; /* 0x3000EBD1: mov ebp, esp */
  19434     edx = MEM32(ebp + 0xC); /* 0x3000EBD3: mov edx, dword ptr [ebp + 0xc] */
  19435     eax = MEM32(ebp + 0x8); /* 0x3000EBD6: mov eax, dword ptr [ebp + 8] */
  19436     PUSH32(esp, esi); /* 0x3000EBD9: push esi */
  19437     PUSH32(esp, edi); /* 0x3000EBDA: push edi */
  19438     edi = MEM32(ecx + 0x8); /* 0x3000EBDB: mov edi, dword ptr [ecx + 8] */
  19439     /* cmp edx, edi */ /* 0x3000EBDE: cmp edx, edi */
  19440     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  19441     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19442     _flag_k = FK_CMP;
  19443     esi = eax; /* 0x3000EBE0: mov esi, eax */
  19444     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EBF4; /* 0x3000EBE2: je 0x3000ebf4 */
  19445 L_3000EBE4:
  19446     PUSH32(esp, ebx); /* 0x3000EBE4: push ebx */
  19447 L_3000EBE5:
  19448     ebx = MEM32(edx); /* 0x3000EBE5: mov ebx, dword ptr [edx] */
  19449     MEM32(esi) = ebx; /* 0x3000EBE7: mov dword ptr [esi], ebx */
  19450     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  19451     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19452     edx = edx + 4; /* 0x3000EBE9: add edx, 4 */
  19453     _flag_k = FK_ADD;
  19454     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  19455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19456     esi = esi + 4; /* 0x3000EBEC: add esi, 4 */
  19457     _flag_k = FK_ADD;
  19458     /* cmp edx, edi */ /* 0x3000EBEF: cmp edx, edi */
  19459     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  19460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19461     _flag_k = FK_CMP;
  19462     RECOMP_BACKEDGE();
  19463     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EBE5; /* 0x3000EBF1: jne 0x3000ebe5 */
  19464 L_3000EBF3:
  19465     ebx = POP32_VAL(esp); /* 0x3000EBF3: pop ebx */
  19466 L_3000EBF4:
  19467     edx = MEM32(ecx + 0x8); /* 0x3000EBF4: mov edx, dword ptr [ecx + 8] */
  19468     edi = POP32_VAL(esp); /* 0x3000EBF7: pop edi */
  19469     MEM32(ecx + 0x8) = esi; /* 0x3000EBF8: mov dword ptr [ecx + 8], esi */
  19470     MEM32(ebp + 0x8) = edx; /* 0x3000EBFB: mov dword ptr [ebp + 8], edx */
  19471     esi = POP32_VAL(esp); /* 0x3000EBFE: pop esi */
  19472     ebp = POP32_VAL(esp); /* 0x3000EBFF: pop ebp */
  19473     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3000EC00: ret 8 */
  19474     RECOMP_REGS_OUT();
  19475 }
  19476 
  19477 void sub_3000EC10(void) {
  19478     int _fpu_cmp = 0;
  19479     uint32_t _cf = 0;
  19480     int _df = 1;
  19481     uint32_t _flag_k = FK_NONE;
  19482     uint32_t _flag_a = 0, _flag_b = 0;
  19483     uint32_t _itail_tgt = 0;
  19484     RECOMP_REGS_LOCALS
  19485     RECOMP_ENTER(0x3000EC10u);
  19486 
  19487 L_3000EC10:
  19488     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3000EC10: ret 8 */
  19489     RECOMP_REGS_OUT();
  19490 }
  19491 
  19492 void sub_3000EC20(void) {
  19493     int _fpu_cmp = 0;
  19494     uint32_t _cf = 0;
  19495     int _df = 1;
  19496     uint32_t _flag_k = FK_NONE;
  19497     uint32_t _flag_a = 0, _flag_b = 0;
  19498     uint32_t _itail_tgt = 0;
  19499     RECOMP_REGS_LOCALS
  19500     RECOMP_ENTER(0x3000EC20u);
  19501 
  19502 L_3000EC20:
  19503     PUSH32(esp, ebp); /* 0x3000EC20: push ebp */
  19504     ebp = esp; /* 0x3000EC21: mov ebp, esp */
  19505     eax = MEM32(ebp + 0x8); /* 0x3000EC23: mov eax, dword ptr [ebp + 8] */
  19506     PUSH32(esp, ebx); /* 0x3000EC26: push ebx */
  19507     ebx = eax + 0x14; /* 0x3000EC27: lea ebx, [eax + 0x14] */
  19508     /* cmp ebx, MEM32(ebp + 0xC) */ /* 0x3000EC2A: cmp ebx, dword ptr [ebp + 0xc] */
  19509     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
  19510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19511     _flag_k = FK_CMP;
  19512     PUSH32(esp, edi); /* 0x3000EC2D: push edi */
  19513     edi = 1; /* 0x3000EC2E: mov edi, 1 */
  19514     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EC86; /* 0x3000EC33: je 0x3000ec86 */
  19515 L_3000EC35:
  19516     PUSH32(esp, esi); /* 0x3000EC35: push esi */
  19517 L_3000EC36:
  19518     esi = 0x7FFFu; /* 0x3000EC36: mov esi, 0x7fff */
  19519     RECOMP_ICALL(MEM32(0x3001905C)); /* 0x3000EC3B: call dword ptr [0x3001905c] */
  19520     RECOMP_FLAGS_IN();
  19521     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  19522     eax = eax & esi; /* 0x3000EC41: and eax, esi */
  19523     _cf = 0;
  19524     _flag_k = FK_TEST;
  19525     /* cmp edi, esi */ /* 0x3000EC43: cmp edi, esi */
  19526     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
  19527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19528     _flag_k = FK_CMP;
  19529     if (CMP_BE(_flag_a, _flag_b)) goto L_3000EC61; /* 0x3000EC45: jbe 0x3000ec61 */
  19530 L_3000EC47:
  19531     /* cmp esi, 0xFFFFFFFFu */ /* 0x3000EC47: cmp esi, -1 */
  19532     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
  19533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19534     _flag_k = FK_CMP;
  19535     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EC61; /* 0x3000EC4A: je 0x3000ec61 */
  19536 L_3000EC4C:
  19537     if (15u) _cf = (((esi) >> 17) & 1u); /* 0x3000EC4C: shl esi, 0xf */
  19538     if (15u) { _flag_a = recomp_flags_pack((esi << 15u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19539     esi = esi << 15u; /* 0x3000EC4C: shl esi, 0xf */
  19540     if (15u) _cf = (((eax) >> 17) & 1u); /* 0x3000EC4F: shl eax, 0xf */
  19541     if (15u) { _flag_a = recomp_flags_pack((eax << 15u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19542     eax = eax << 15u; /* 0x3000EC4F: shl eax, 0xf */
  19543     _flag_a = (uint32_t)((esi | 0x7FFFu)); _flag_b = (uint32_t)((esi | 0x7FFFu));
  19544     esi = esi | 0x7FFFu; /* 0x3000EC52: or esi, 0x7fff */
  19545     _cf = 0;
  19546     _flag_k = FK_TEST;
  19547     _flag_a = (uint32_t)((eax | 0x7FFFu)); _flag_b = (uint32_t)((eax | 0x7FFFu));
  19548     eax = eax | 0x7FFFu; /* 0x3000EC58: or eax, 0x7fff */
  19549     _cf = 0;
  19550     _flag_k = FK_TEST;
  19551     /* cmp esi, edi */ /* 0x3000EC5D: cmp esi, edi */
  19552     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
  19553     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19554     _flag_k = FK_CMP;
  19555     RECOMP_BACKEDGE();
  19556     if (CMP_B(_flag_a, _flag_b)) goto L_3000EC47; /* 0x3000EC5F: jb 0x3000ec47 */
  19557 L_3000EC61:
  19558     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19559     edx = 0; /* 0x3000EC61: xor edx, edx */
  19560     _cf = 0;
  19561     _flag_k = FK_TEST;
  19562     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)edi; /* 0x3000EC63: div edi */
  19563       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
  19564       else { eax = 0; edx = 0; } }
  19565     PUSH32(esp, 0); /* 0x3000EC65: push 0 */
  19566     ecx = edx + edx * 4; /* 0x3000EC67: lea ecx, [edx + edx*4] */
  19567     edx = MEM32(ebp + 0x8); /* 0x3000EC6A: mov edx, dword ptr [ebp + 8] */
  19568     eax = edx + ecx * 4; /* 0x3000EC6D: lea eax, [edx + ecx*4] */
  19569     PUSH32(esp, eax); /* 0x3000EC70: push eax */
  19570     PUSH32(esp, ebx); /* 0x3000EC71: push ebx */
  19571     RECOMP_ICALL(0x3000EC90u); /* 0x3000EC72: call 0x3000ec90 */ /* not lifted */
  19572     RECOMP_FLAGS_IN();
  19573     eax = MEM32(ebp + 0xC); /* 0x3000EC77: mov eax, dword ptr [ebp + 0xc] */
  19574     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  19575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19576     esp = esp + 0xCu; /* 0x3000EC7A: add esp, 0xc */
  19577     _flag_k = FK_ADD;
  19578     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u);
  19579     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19580     ebx = ebx + 0x14u; /* 0x3000EC7D: add ebx, 0x14 */
  19581     _flag_k = FK_ADD;
  19582     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  19583     edi = edi + 1; /* 0x3000EC80: inc edi */
  19584     _flag_k = FK_INC;
  19585     /* cmp ebx, eax */ /* 0x3000EC81: cmp ebx, eax */
  19586     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  19587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19588     _flag_k = FK_CMP;
  19589     RECOMP_BACKEDGE();
  19590     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EC36; /* 0x3000EC83: jne 0x3000ec36 */
  19591 L_3000EC85:
  19592     esi = POP32_VAL(esp); /* 0x3000EC85: pop esi */
  19593 L_3000EC86:
  19594     edi = POP32_VAL(esp); /* 0x3000EC86: pop edi */
  19595     ebx = POP32_VAL(esp); /* 0x3000EC87: pop ebx */
  19596     ebp = POP32_VAL(esp); /* 0x3000EC88: pop ebp */
  19597     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000EC89: ret  */
  19598     RECOMP_REGS_OUT();
  19599 }
  19600 
  19601 void sub_3000EC90(void) {
  19602     int _fpu_cmp = 0;
  19603     uint32_t _cf = 0;
  19604     int _df = 1;
  19605     uint32_t _flag_k = FK_NONE;
  19606     uint32_t _flag_a = 0, _flag_b = 0;
  19607     uint32_t _itail_tgt = 0;
  19608     RECOMP_REGS_LOCALS
  19609     RECOMP_ENTER(0x3000EC90u);
  19610 
  19611 L_3000EC90:
  19612     PUSH32(esp, ebp); /* 0x3000EC90: push ebp */
  19613     ebp = esp; /* 0x3000EC91: mov ebp, esp */
  19614     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000EC93: push -1 */
  19615     PUSH32(esp, 0x300189E8u); /* 0x3000EC95: push 0x300189e8 */
  19616     eax = MEM32(FS_BASE + (0)); /* 0x3000EC9A: mov eax, dword ptr fs:[0] */
  19617     PUSH32(esp, eax); /* 0x3000ECA0: push eax */
  19618     MEM32(FS_BASE + (0)) = esp; /* 0x3000ECA1: mov dword ptr fs:[0], esp */
  19619     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  19620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19621     esp = esp - 0x14u; /* 0x3000ECA8: sub esp, 0x14 */
  19622     _flag_k = FK_CMP;
  19623     PUSH32(esp, esi); /* 0x3000ECAB: push esi */
  19624     esi = MEM32(ebp + 0x8); /* 0x3000ECAC: mov esi, dword ptr [ebp + 8] */
  19625     PUSH32(esp, edi); /* 0x3000ECAF: push edi */
  19626     PUSH32(esp, esi); /* 0x3000ECB0: push esi */
  19627     ecx = ebp + (-0x20); /* 0x3000ECB1: lea ecx, [ebp - 0x20] */
  19628     RECOMP_ICALL(0x30007A50u); /* 0x3000ECB4: call 0x30007a50 */ /* not lifted */
  19629     RECOMP_FLAGS_IN();
  19630     edi = MEM32(ebp + 0xC); /* 0x3000ECB9: mov edi, dword ptr [ebp + 0xc] */
  19631     PUSH32(esp, edi); /* 0x3000ECBC: push edi */
  19632     ecx = esi; /* 0x3000ECBD: mov ecx, esi */
  19633     MEM32(ebp + (-0x4)) = 0; /* 0x3000ECBF: mov dword ptr [ebp - 4], 0 */
  19634     RECOMP_ICALL(0x300080D0u); /* 0x3000ECC6: call 0x300080d0 */ /* not lifted */
  19635     RECOMP_FLAGS_IN();
  19636     eax = ebp + (-0x20); /* 0x3000ECCB: lea eax, [ebp - 0x20] */
  19637     PUSH32(esp, eax); /* 0x3000ECCE: push eax */
  19638     ecx = edi; /* 0x3000ECCF: mov ecx, edi */
  19639     RECOMP_ICALL(0x300080D0u); /* 0x3000ECD1: call 0x300080d0 */ /* not lifted */
  19640     RECOMP_FLAGS_IN();
  19641     ecx = ebp + (-0x20); /* 0x3000ECD6: lea ecx, [ebp - 0x20] */
  19642     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000ECD9: mov dword ptr [ebp - 4], 0xffffffff */
  19643     RECOMP_ICALL(0x30007AB0u); /* 0x3000ECE0: call 0x30007ab0 */ /* not lifted */
  19644     RECOMP_FLAGS_IN();
  19645     ecx = MEM32(ebp + (-0xC)); /* 0x3000ECE5: mov ecx, dword ptr [ebp - 0xc] */
  19646     edi = POP32_VAL(esp); /* 0x3000ECE8: pop edi */
  19647     esi = POP32_VAL(esp); /* 0x3000ECE9: pop esi */
  19648     MEM32(FS_BASE + (0)) = ecx; /* 0x3000ECEA: mov dword ptr fs:[0], ecx */
  19649     esp = ebp; /* 0x3000ECF1: mov esp, ebp */
  19650     ebp = POP32_VAL(esp); /* 0x3000ECF3: pop ebp */
  19651     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000ECF4: ret  */
  19652     RECOMP_REGS_OUT();
  19653 }
  19654 
  19655 void sub_3000ED00(void) {
  19656     int _fpu_cmp = 0;
  19657     uint32_t _cf = 0;
  19658     int _df = 1;
  19659     uint32_t _flag_k = FK_NONE;
  19660     uint32_t _flag_a = 0, _flag_b = 0;
  19661     uint32_t _itail_tgt = 0;
  19662     RECOMP_REGS_LOCALS
  19663     RECOMP_ENTER(0x3000ED00u);
  19664 
  19665 L_3000ED00:
  19666     PUSH32(esp, ebp); /* 0x3000ED00: push ebp */
  19667     ebp = esp; /* 0x3000ED01: mov ebp, esp */
  19668     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  19669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19670     esp = esp - 8; /* 0x3000ED03: sub esp, 8 */
  19671     _flag_k = FK_CMP;
  19672     PUSH32(esp, ebx); /* 0x3000ED06: push ebx */
  19673     PUSH32(esp, esi); /* 0x3000ED07: push esi */
  19674     PUSH32(esp, edi); /* 0x3000ED08: push edi */
  19675     edi = MEM32(ebp + 0x8); /* 0x3000ED09: mov edi, dword ptr [ebp + 8] */
  19676     esi = ecx; /* 0x3000ED0C: mov esi, ecx */
  19677     PUSH32(esp, edi); /* 0x3000ED0E: push edi */
  19678     PUSH32(esp, 1); /* 0x3000ED0F: push 1 */
  19679     eax = MEM32(esi + 0x8); /* 0x3000ED11: mov eax, dword ptr [esi + 8] */
  19680     PUSH32(esp, eax); /* 0x3000ED14: push eax */
  19681     RECOMP_ICALL(0x3000EFE0u); /* 0x3000ED15: call 0x3000efe0 */ /* not lifted */
  19682     RECOMP_FLAGS_IN();
  19683     edx = MEM32(esi + 0x8); /* 0x3000ED1A: mov edx, dword ptr [esi + 8] */
  19684     ecx = edi + 0xC; /* 0x3000ED1D: lea ecx, [edi + 0xc] */
  19685     PUSH32(esp, ecx); /* 0x3000ED20: push ecx */
  19686     PUSH32(esp, 1); /* 0x3000ED21: push 1 */
  19687     PUSH32(esp, edx); /* 0x3000ED23: push edx */
  19688     ecx = esi; /* 0x3000ED24: mov ecx, esi */
  19689     RECOMP_ICALL(0x3000EFE0u); /* 0x3000ED26: call 0x3000efe0 */ /* not lifted */
  19690     RECOMP_FLAGS_IN();
  19691     ecx = MEM32(esi + 0x8); /* 0x3000ED2B: mov ecx, dword ptr [esi + 8] */
  19692     edx = MEM32(esi + 0xC); /* 0x3000ED2E: mov edx, dword ptr [esi + 0xc] */
  19693     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  19694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19695     edx = edx - ecx; /* 0x3000ED31: sub edx, ecx */
  19696     _flag_k = FK_CMP;
  19697     eax = 0x2AAAAAABu; /* 0x3000ED33: mov eax, 0x2aaaaaab */
  19698     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000ED38: imul edx */
  19699       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  19700       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  19701     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000ED3A: sar edx, 1 */
  19702     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19703     edx = (uint32_t)((int32_t)edx >> 1u);
  19704     eax = edx; /* 0x3000ED3C: mov eax, edx */
  19705     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u);
  19706     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19707     edi = edi + 0x18u; /* 0x3000ED3E: add edi, 0x18 */
  19708     _flag_k = FK_ADD;
  19709     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000ED41: shr eax, 0x1f */
  19710     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19711     eax = eax >> 31u; /* 0x3000ED41: shr eax, 0x1f */
  19712     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  19713     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19714     edx = edx + eax; /* 0x3000ED44: add edx, eax */
  19715     _flag_k = FK_ADD;
  19716     MEM32(ebp + 0x8) = edi; /* 0x3000ED46: mov dword ptr [ebp + 8], edi */
  19717     /* cmp edx, 1 */ /* 0x3000ED49: cmp edx, 1 */
  19718     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  19719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19720     _flag_k = FK_CMP;
  19721     edi = ecx; /* 0x3000ED4C: mov edi, ecx */
  19722     if (CMP_AE(_flag_a, _flag_b)) goto L_3000EE5A; /* 0x3000ED4E: jae 0x3000ee5a */
  19723 L_3000ED54:
  19724     ebx = MEM32(esi + 0x4); /* 0x3000ED54: mov ebx, dword ptr [esi + 4] */
  19725     /* test ebx, ebx */ /* 0x3000ED57: test ebx, ebx */
  19726     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  19727     _cf = 0;
  19728     _flag_k = FK_TEST;
  19729     if (TEST_Z(_flag_a, _flag_b)) goto L_3000ED77; /* 0x3000ED59: je 0x3000ed77 */
  19730 L_3000ED5B:
  19731     edx = ecx; /* 0x3000ED5B: mov edx, ecx */
  19732     eax = 0x2AAAAAABu; /* 0x3000ED5D: mov eax, 0x2aaaaaab */
  19733     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  19734     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19735     edx = edx - ebx; /* 0x3000ED62: sub edx, ebx */
  19736     _flag_k = FK_CMP;
  19737     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000ED64: imul edx */
  19738       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  19739       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  19740     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000ED66: sar edx, 1 */
  19741     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19742     edx = (uint32_t)((int32_t)edx >> 1u);
  19743     eax = edx; /* 0x3000ED68: mov eax, edx */
  19744     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000ED6A: shr eax, 0x1f */
  19745     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19746     eax = eax >> 31u; /* 0x3000ED6A: shr eax, 0x1f */
  19747     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  19748     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19749     edx = edx + eax; /* 0x3000ED6D: add edx, eax */
  19750     _flag_k = FK_ADD;
  19751     /* cmp edx, 1 */ /* 0x3000ED6F: cmp edx, 1 */
  19752     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  19753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19754     _flag_k = FK_CMP;
  19755     MEM32(ebp + (-0x4)) = edx; /* 0x3000ED72: mov dword ptr [ebp - 4], edx */
  19756     if (CMP_A(_flag_a, _flag_b)) goto L_3000ED7E; /* 0x3000ED75: ja 0x3000ed7e */
  19757 L_3000ED77:
  19758     MEM32(ebp + (-0x4)) = 1; /* 0x3000ED77: mov dword ptr [ebp - 4], 1 */
  19759 L_3000ED7E:
  19760     /* test ebx, ebx */ /* 0x3000ED7E: test ebx, ebx */
  19761     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  19762     _cf = 0;
  19763     _flag_k = FK_TEST;
  19764     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000ED86; /* 0x3000ED80: jne 0x3000ed86 */
  19765 L_3000ED82:
  19766     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19767     edx = 0; /* 0x3000ED82: xor edx, edx */
  19768     _cf = 0;
  19769     _flag_k = FK_TEST;
  19770     goto L_3000ED98; /* 0x3000ED84: jmp 0x3000ed98 */
  19771 L_3000ED86:
  19772     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  19773     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19774     ecx = ecx - ebx; /* 0x3000ED86: sub ecx, ebx */
  19775     _flag_k = FK_CMP;
  19776     eax = 0x2AAAAAABu; /* 0x3000ED88: mov eax, 0x2aaaaaab */
  19777     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000ED8D: imul ecx */
  19778       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  19779       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  19780     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000ED8F: sar edx, 1 */
  19781     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19782     edx = (uint32_t)((int32_t)edx >> 1u);
  19783     ecx = edx; /* 0x3000ED91: mov ecx, edx */
  19784     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000ED93: shr ecx, 0x1f */
  19785     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19786     ecx = ecx >> 31u; /* 0x3000ED93: shr ecx, 0x1f */
  19787     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  19788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19789     edx = edx + ecx; /* 0x3000ED96: add edx, ecx */
  19790     _flag_k = FK_ADD;
  19791 L_3000ED98:
  19792     eax = MEM32(ebp + (-0x4)); /* 0x3000ED98: mov eax, dword ptr [ebp - 4] */
  19793     ebx = edx + eax; /* 0x3000ED9B: lea ebx, [edx + eax] */
  19794     /* test ebx, ebx */ /* 0x3000ED9E: test ebx, ebx */
  19795     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  19796     _cf = 0;
  19797     _flag_k = FK_TEST;
  19798     eax = ebx; /* 0x3000EDA0: mov eax, ebx */
  19799     if (TEST_NS(_flag_a, _flag_b)) goto L_3000EDA6; /* 0x3000EDA2: jge 0x3000eda6 */
  19800 L_3000EDA4:
  19801     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19802     eax = 0; /* 0x3000EDA4: xor eax, eax */
  19803     _cf = 0;
  19804     _flag_k = FK_TEST;
  19805 L_3000EDA6:
  19806     ecx = eax + eax * 2; /* 0x3000EDA6: lea ecx, [eax + eax*2] */
  19807     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000EDA9: shl ecx, 2 */
  19808     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19809     ecx = ecx << 2u; /* 0x3000EDA9: shl ecx, 2 */
  19810     PUSH32(esp, ecx); /* 0x3000EDAC: push ecx */
  19811     RECOMP_ICALL(0x300180A8u); /* 0x3000EDAD: call 0x300180a8 */ /* not lifted */
  19812     RECOMP_FLAGS_IN();
  19813     edx = MEM32(esi + 0x4); /* 0x3000EDB2: mov edx, dword ptr [esi + 4] */
  19814     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  19815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19816     esp = esp + 4; /* 0x3000EDB5: add esp, 4 */
  19817     _flag_k = FK_ADD;
  19818     ecx = esi; /* 0x3000EDB8: mov ecx, esi */
  19819     MEM32(ebp + (-0x8)) = eax; /* 0x3000EDBA: mov dword ptr [ebp - 8], eax */
  19820     PUSH32(esp, eax); /* 0x3000EDBD: push eax */
  19821     PUSH32(esp, edi); /* 0x3000EDBE: push edi */
  19822     PUSH32(esp, edx); /* 0x3000EDBF: push edx */
  19823     RECOMP_ICALL(0x3000F310u); /* 0x3000EDC0: call 0x3000f310 */ /* not lifted */
  19824     RECOMP_FLAGS_IN();
  19825     ecx = MEM32(ebp + 0x8); /* 0x3000EDC5: mov ecx, dword ptr [ebp + 8] */
  19826     MEM32(ebp + (-0x4)) = eax; /* 0x3000EDC8: mov dword ptr [ebp - 4], eax */
  19827     PUSH32(esp, ecx); /* 0x3000EDCB: push ecx */
  19828     PUSH32(esp, 1); /* 0x3000EDCC: push 1 */
  19829     PUSH32(esp, eax); /* 0x3000EDCE: push eax */
  19830     ecx = esi; /* 0x3000EDCF: mov ecx, esi */
  19831     RECOMP_ICALL(0x3000F360u); /* 0x3000EDD1: call 0x3000f360 */ /* not lifted */
  19832     RECOMP_FLAGS_IN();
  19833     edx = MEM32(ebp + (-0x4)); /* 0x3000EDD6: mov edx, dword ptr [ebp - 4] */
  19834     eax = MEM32(esi + 0x8); /* 0x3000EDD9: mov eax, dword ptr [esi + 8] */
  19835     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  19836     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19837     edx = edx + 0xCu; /* 0x3000EDDC: add edx, 0xc */
  19838     _flag_k = FK_ADD;
  19839     ecx = esi; /* 0x3000EDDF: mov ecx, esi */
  19840     PUSH32(esp, edx); /* 0x3000EDE1: push edx */
  19841     PUSH32(esp, eax); /* 0x3000EDE2: push eax */
  19842     PUSH32(esp, edi); /* 0x3000EDE3: push edi */
  19843     RECOMP_ICALL(0x3000F310u); /* 0x3000EDE4: call 0x3000f310 */ /* not lifted */
  19844     RECOMP_FLAGS_IN();
  19845     ecx = MEM32(esi + 0x8); /* 0x3000EDE9: mov ecx, dword ptr [esi + 8] */
  19846     edx = MEM32(esi + 0x4); /* 0x3000EDEC: mov edx, dword ptr [esi + 4] */
  19847     PUSH32(esp, ecx); /* 0x3000EDEF: push ecx */
  19848     PUSH32(esp, edx); /* 0x3000EDF0: push edx */
  19849     ecx = esi; /* 0x3000EDF1: mov ecx, esi */
  19850     RECOMP_ICALL(0x3000EC10u); /* 0x3000EDF3: call 0x3000ec10 */ /* not lifted */
  19851     RECOMP_FLAGS_IN();
  19852     eax = MEM32(esi + 0x4); /* 0x3000EDF8: mov eax, dword ptr [esi + 4] */
  19853     PUSH32(esp, eax); /* 0x3000EDFB: push eax */
  19854     RECOMP_ICALL(0x30018080u); /* 0x3000EDFC: call 0x30018080 */ /* not lifted */
  19855     RECOMP_FLAGS_IN();
  19856     edi = MEM32(ebp + (-0x8)); /* 0x3000EE01: mov edi, dword ptr [ebp - 8] */
  19857     eax = MEM32(esi + 0x4); /* 0x3000EE04: mov eax, dword ptr [esi + 4] */
  19858     ecx = ebx + ebx * 2; /* 0x3000EE07: lea ecx, [ebx + ebx*2] */
  19859     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  19860     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19861     esp = esp + 4; /* 0x3000EE0A: add esp, 4 */
  19862     _flag_k = FK_ADD;
  19863     /* test eax, eax */ /* 0x3000EE0D: test eax, eax */
  19864     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  19865     _cf = 0;
  19866     _flag_k = FK_TEST;
  19867     edx = edi + ecx * 4; /* 0x3000EE0F: lea edx, [edi + ecx*4] */
  19868     MEM32(esi + 0xC) = edx; /* 0x3000EE12: mov dword ptr [esi + 0xc], edx */
  19869     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000EE2F; /* 0x3000EE15: jne 0x3000ee2f */
  19870 L_3000EE17:
  19871     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19872     edx = 0; /* 0x3000EE17: xor edx, edx */
  19873     _cf = 0;
  19874     _flag_k = FK_TEST;
  19875     MEM32(esi + 0x4) = edi; /* 0x3000EE19: mov dword ptr [esi + 4], edi */
  19876     ecx = edx + edx * 2 + 0x3; /* 0x3000EE1C: lea ecx, [edx + edx*2 + 3] */
  19877     edx = edi + ecx * 4; /* 0x3000EE20: lea edx, [edi + ecx*4] */
  19878     edi = POP32_VAL(esp); /* 0x3000EE23: pop edi */
  19879     MEM32(esi + 0x8) = edx; /* 0x3000EE24: mov dword ptr [esi + 8], edx */
  19880     esi = POP32_VAL(esp); /* 0x3000EE27: pop esi */
  19881     ebx = POP32_VAL(esp); /* 0x3000EE28: pop ebx */
  19882     esp = ebp; /* 0x3000EE29: mov esp, ebp */
  19883     ebp = POP32_VAL(esp); /* 0x3000EE2B: pop ebp */
  19884     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000EE2C: ret 4 */
  19885 L_3000EE2F:
  19886     ecx = MEM32(esi + 0x8); /* 0x3000EE2F: mov ecx, dword ptr [esi + 8] */
  19887     MEM32(esi + 0x4) = edi; /* 0x3000EE32: mov dword ptr [esi + 4], edi */
  19888     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  19889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19890     ecx = ecx - eax; /* 0x3000EE35: sub ecx, eax */
  19891     _flag_k = FK_CMP;
  19892     eax = 0x2AAAAAABu; /* 0x3000EE37: mov eax, 0x2aaaaaab */
  19893     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000EE3C: imul ecx */
  19894       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  19895       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  19896     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000EE3E: sar edx, 1 */
  19897     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19898     edx = (uint32_t)((int32_t)edx >> 1u);
  19899     eax = edx; /* 0x3000EE40: mov eax, edx */
  19900     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000EE42: shr eax, 0x1f */
  19901     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19902     eax = eax >> 31u; /* 0x3000EE42: shr eax, 0x1f */
  19903     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  19904     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19905     edx = edx + eax; /* 0x3000EE45: add edx, eax */
  19906     _flag_k = FK_ADD;
  19907     ecx = edx + edx * 2 + 0x3; /* 0x3000EE47: lea ecx, [edx + edx*2 + 3] */
  19908     edx = edi + ecx * 4; /* 0x3000EE4B: lea edx, [edi + ecx*4] */
  19909     edi = POP32_VAL(esp); /* 0x3000EE4E: pop edi */
  19910     MEM32(esi + 0x8) = edx; /* 0x3000EE4F: mov dword ptr [esi + 8], edx */
  19911     esi = POP32_VAL(esp); /* 0x3000EE52: pop esi */
  19912     ebx = POP32_VAL(esp); /* 0x3000EE53: pop ebx */
  19913     esp = ebp; /* 0x3000EE54: mov esp, ebp */
  19914     ebp = POP32_VAL(esp); /* 0x3000EE56: pop ebp */
  19915     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000EE57: ret 4 */
  19916 L_3000EE5A:
  19917     edx = ecx; /* 0x3000EE5A: mov edx, ecx */
  19918     eax = 0x2AAAAAABu; /* 0x3000EE5C: mov eax, 0x2aaaaaab */
  19919     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  19920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19921     edx = edx - edi; /* 0x3000EE61: sub edx, edi */
  19922     _flag_k = FK_CMP;
  19923     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000EE63: imul edx */
  19924       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  19925       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  19926     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000EE65: sar edx, 1 */
  19927     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19928     edx = (uint32_t)((int32_t)edx >> 1u);
  19929     eax = edx; /* 0x3000EE67: mov eax, edx */
  19930     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000EE69: shr eax, 0x1f */
  19931     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19932     eax = eax >> 31u; /* 0x3000EE69: shr eax, 0x1f */
  19933     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  19934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19935     edx = edx + eax; /* 0x3000EE6C: add edx, eax */
  19936     _flag_k = FK_ADD;
  19937     /* cmp edx, 1 */ /* 0x3000EE6E: cmp edx, 1 */
  19938     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  19939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19940     _flag_k = FK_CMP;
  19941     if (CMP_AE(_flag_a, _flag_b)) goto L_3000EEE4; /* 0x3000EE71: jae 0x3000eee4 */
  19942 L_3000EE73:
  19943     edx = edi + 0xC; /* 0x3000EE73: lea edx, [edi + 0xc] */
  19944     PUSH32(esp, edx); /* 0x3000EE76: push edx */
  19945     PUSH32(esp, ecx); /* 0x3000EE77: push ecx */
  19946     PUSH32(esp, edi); /* 0x3000EE78: push edi */
  19947     ecx = esi; /* 0x3000EE79: mov ecx, esi */
  19948     RECOMP_ICALL(0x3000F310u); /* 0x3000EE7B: call 0x3000f310 */ /* not lifted */
  19949     RECOMP_FLAGS_IN();
  19950     ebx = MEM32(esi + 0x8); /* 0x3000EE80: mov ebx, dword ptr [esi + 8] */
  19951     eax = MEM32(ebp + 0x8); /* 0x3000EE83: mov eax, dword ptr [ebp + 8] */
  19952     ecx = ebx; /* 0x3000EE86: mov ecx, ebx */
  19953     PUSH32(esp, eax); /* 0x3000EE88: push eax */
  19954     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  19955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19956     ecx = ecx - edi; /* 0x3000EE89: sub ecx, edi */
  19957     _flag_k = FK_CMP;
  19958     eax = 0x2AAAAAABu; /* 0x3000EE8B: mov eax, 0x2aaaaaab */
  19959     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000EE90: imul ecx */
  19960       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  19961       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  19962     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000EE92: sar edx, 1 */
  19963     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19964     edx = (uint32_t)((int32_t)edx >> 1u);
  19965     ecx = edx; /* 0x3000EE94: mov ecx, edx */
  19966     eax = 1; /* 0x3000EE96: mov eax, 1 */
  19967     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000EE9B: shr ecx, 0x1f */
  19968     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  19969     ecx = ecx >> 31u; /* 0x3000EE9B: shr ecx, 0x1f */
  19970     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  19971     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19972     edx = edx + ecx; /* 0x3000EE9E: add edx, ecx */
  19973     _flag_k = FK_ADD;
  19974     ecx = esi; /* 0x3000EEA0: mov ecx, esi */
  19975     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  19976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19977     eax = eax - edx; /* 0x3000EEA2: sub eax, edx */
  19978     _flag_k = FK_CMP;
  19979     PUSH32(esp, eax); /* 0x3000EEA4: push eax */
  19980     PUSH32(esp, ebx); /* 0x3000EEA5: push ebx */
  19981     RECOMP_ICALL(0x3000F360u); /* 0x3000EEA6: call 0x3000f360 */ /* not lifted */
  19982     RECOMP_FLAGS_IN();
  19983     eax = MEM32(esi + 0x8); /* 0x3000EEAB: mov eax, dword ptr [esi + 8] */
  19984     /* cmp edi, eax */ /* 0x3000EEAE: cmp edi, eax */
  19985     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  19986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19987     _flag_k = FK_CMP;
  19988     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EF42; /* 0x3000EEB0: je 0x3000ef42 */
  19989 L_3000EEB6:
  19990     ecx = MEM32(ebp + 0x8); /* 0x3000EEB6: mov ecx, dword ptr [ebp + 8] */
  19991     edx = edi; /* 0x3000EEB9: mov edx, edi */
  19992     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
  19993     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19994     edi = edi + 0xCu; /* 0x3000EEBB: add edi, 0xc */
  19995     _flag_k = FK_ADD;
  19996     ebx = MEM32(ecx); /* 0x3000EEBE: mov ebx, dword ptr [ecx] */
  19997     /* cmp edi, eax */ /* 0x3000EEC0: cmp edi, eax */
  19998     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  19999     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20000     _flag_k = FK_CMP;
  20001     MEM32(edx) = ebx; /* 0x3000EEC2: mov dword ptr [edx], ebx */
  20002     ebx = MEM32(ecx + 0x4); /* 0x3000EEC4: mov ebx, dword ptr [ecx + 4] */
  20003     MEM32(edx + 0x4) = ebx; /* 0x3000EEC7: mov dword ptr [edx + 4], ebx */
  20004     ecx = MEM32(ecx + 0x8); /* 0x3000EECA: mov ecx, dword ptr [ecx + 8] */
  20005     MEM32(edx + 0x8) = ecx; /* 0x3000EECD: mov dword ptr [edx + 8], ecx */
  20006     RECOMP_BACKEDGE();
  20007     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EEB6; /* 0x3000EED0: jne 0x3000eeb6 */
  20008 L_3000EED2:
  20009     eax = MEM32(esi + 0x8); /* 0x3000EED2: mov eax, dword ptr [esi + 8] */
  20010     edi = POP32_VAL(esp); /* 0x3000EED5: pop edi */
  20011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20012     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20013     eax = eax + 0xCu; /* 0x3000EED6: add eax, 0xc */
  20014     _flag_k = FK_ADD;
  20015     MEM32(esi + 0x8) = eax; /* 0x3000EED9: mov dword ptr [esi + 8], eax */
  20016     esi = POP32_VAL(esp); /* 0x3000EEDC: pop esi */
  20017     ebx = POP32_VAL(esp); /* 0x3000EEDD: pop ebx */
  20018     esp = ebp; /* 0x3000EEDE: mov esp, ebp */
  20019     ebp = POP32_VAL(esp); /* 0x3000EEE0: pop ebp */
  20020     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000EEE1: ret 4 */
  20021 L_3000EEE4:
  20022     PUSH32(esp, ecx); /* 0x3000EEE4: push ecx */
  20023     PUSH32(esp, ecx); /* 0x3000EEE5: push ecx */
  20024     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF4u);
  20025     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20026     ecx = ecx + 0xFFFFFFF4u; /* 0x3000EEE6: add ecx, -0xc */
  20027     _flag_k = FK_ADD;
  20028     PUSH32(esp, ecx); /* 0x3000EEE9: push ecx */
  20029     ecx = esi; /* 0x3000EEEA: mov ecx, esi */
  20030     RECOMP_ICALL(0x3000F310u); /* 0x3000EEEC: call 0x3000f310 */ /* not lifted */
  20031     RECOMP_FLAGS_IN();
  20032     ecx = MEM32(esi + 0x8); /* 0x3000EEF1: mov ecx, dword ptr [esi + 8] */
  20033     eax = ecx + (-0xC); /* 0x3000EEF4: lea eax, [ecx - 0xc] */
  20034     /* cmp edi, eax */ /* 0x3000EEF7: cmp edi, eax */
  20035     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  20036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20037     _flag_k = FK_CMP;
  20038     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EF1F; /* 0x3000EEF9: je 0x3000ef1f */
  20039 L_3000EEFB:
  20040     goto L_3000EF00; /* 0x3000EEFB: jmp 0x3000ef00 */
  20041 L_3000EEFD:
  20042     ecx = MEM32(ebp + (-0x8)); /* 0x3000EEFD: mov ecx, dword ptr [ebp - 8] */
  20043 L_3000EF00:
  20044     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20046     eax = eax - 0xCu; /* 0x3000EF00: sub eax, 0xc */
  20047     _flag_k = FK_CMP;
  20048     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
  20049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20050     ecx = ecx - 0xCu; /* 0x3000EF03: sub ecx, 0xc */
  20051     _flag_k = FK_CMP;
  20052     edx = eax; /* 0x3000EF06: mov edx, eax */
  20053     MEM32(ebp + (-0x8)) = ecx; /* 0x3000EF08: mov dword ptr [ebp - 8], ecx */
  20054     /* cmp eax, edi */ /* 0x3000EF0B: cmp eax, edi */
  20055     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  20056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20057     _flag_k = FK_CMP;
  20058     ebx = MEM32(edx); /* 0x3000EF0D: mov ebx, dword ptr [edx] */
  20059     MEM32(ecx) = ebx; /* 0x3000EF0F: mov dword ptr [ecx], ebx */
  20060     ebx = MEM32(edx + 0x4); /* 0x3000EF11: mov ebx, dword ptr [edx + 4] */
  20061     MEM32(ecx + 0x4) = ebx; /* 0x3000EF14: mov dword ptr [ecx + 4], ebx */
  20062     edx = MEM32(edx + 0x8); /* 0x3000EF17: mov edx, dword ptr [edx + 8] */
  20063     MEM32(ecx + 0x8) = edx; /* 0x3000EF1A: mov dword ptr [ecx + 8], edx */
  20064     RECOMP_BACKEDGE();
  20065     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EEFD; /* 0x3000EF1D: jne 0x3000eefd */
  20066 L_3000EF1F:
  20067     eax = edi + 0xC; /* 0x3000EF1F: lea eax, [edi + 0xc] */
  20068     /* cmp edi, eax */ /* 0x3000EF22: cmp edi, eax */
  20069     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  20070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20071     _flag_k = FK_CMP;
  20072     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000EF42; /* 0x3000EF24: je 0x3000ef42 */
  20073 L_3000EF26:
  20074     ecx = MEM32(ebp + 0x8); /* 0x3000EF26: mov ecx, dword ptr [ebp + 8] */
  20075     edx = edi; /* 0x3000EF29: mov edx, edi */
  20076     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
  20077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20078     edi = edi + 0xCu; /* 0x3000EF2B: add edi, 0xc */
  20079     _flag_k = FK_ADD;
  20080     ebx = MEM32(ecx); /* 0x3000EF2E: mov ebx, dword ptr [ecx] */
  20081     /* cmp edi, eax */ /* 0x3000EF30: cmp edi, eax */
  20082     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  20083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20084     _flag_k = FK_CMP;
  20085     MEM32(edx) = ebx; /* 0x3000EF32: mov dword ptr [edx], ebx */
  20086     ebx = MEM32(ecx + 0x4); /* 0x3000EF34: mov ebx, dword ptr [ecx + 4] */
  20087     MEM32(edx + 0x4) = ebx; /* 0x3000EF37: mov dword ptr [edx + 4], ebx */
  20088     ecx = MEM32(ecx + 0x8); /* 0x3000EF3A: mov ecx, dword ptr [ecx + 8] */
  20089     MEM32(edx + 0x8) = ecx; /* 0x3000EF3D: mov dword ptr [edx + 8], ecx */
  20090     RECOMP_BACKEDGE();
  20091     if (CMP_NE(_flag_a, _flag_b)) goto L_3000EF26; /* 0x3000EF40: jne 0x3000ef26 */
  20092 L_3000EF42:
  20093     eax = MEM32(esi + 0x8); /* 0x3000EF42: mov eax, dword ptr [esi + 8] */
  20094     edi = POP32_VAL(esp); /* 0x3000EF45: pop edi */
  20095     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20096     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20097     eax = eax + 0xCu; /* 0x3000EF46: add eax, 0xc */
  20098     _flag_k = FK_ADD;
  20099     MEM32(esi + 0x8) = eax; /* 0x3000EF49: mov dword ptr [esi + 8], eax */
  20100     esi = POP32_VAL(esp); /* 0x3000EF4C: pop esi */
  20101     ebx = POP32_VAL(esp); /* 0x3000EF4D: pop ebx */
  20102     esp = ebp; /* 0x3000EF4E: mov esp, ebp */
  20103     ebp = POP32_VAL(esp); /* 0x3000EF50: pop ebp */
  20104     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000EF51: ret 4 */
  20105     RECOMP_REGS_OUT();
  20106 }
  20107 
  20108 void sub_3000EF60(void) {
  20109     int _fpu_cmp = 0;
  20110     uint32_t _cf = 0;
  20111     int _df = 1;
  20112     uint32_t _flag_k = FK_NONE;
  20113     uint32_t _flag_a = 0, _flag_b = 0;
  20114     uint32_t _itail_tgt = 0;
  20115     RECOMP_REGS_LOCALS
  20116     RECOMP_ENTER(0x3000EF60u);
  20117 
  20118 L_3000EF60:
  20119     RECOMP_ICALL(0x3000EF70u); /* 0x3000EF60: call 0x3000ef70 */ /* not lifted */
  20120     RECOMP_FLAGS_IN();
  20121     goto L_3000EF80; /* 0x3000EF65: jmp 0x3000ef80 */
  20122 L_3000EF80:
  20123     PUSH32(esp, 0x3000EF90u); /* 0x3000EF80: push 0x3000ef90 */
  20124     RECOMP_ICALL(0x300180ECu); /* 0x3000EF85: call 0x300180ec */ /* not lifted */
  20125     RECOMP_FLAGS_IN();
  20126     ecx = POP32_VAL(esp); /* 0x3000EF8A: pop ecx */
  20127     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000EF8B: ret  */
  20128     RECOMP_REGS_OUT();
  20129 }
  20130 
  20131 void sub_3000EF70(void) {
  20132     int _fpu_cmp = 0;
  20133     uint32_t _cf = 0;
  20134     int _df = 1;
  20135     uint32_t _flag_k = FK_NONE;
  20136     uint32_t _flag_a = 0, _flag_b = 0;
  20137     uint32_t _itail_tgt = 0;
  20138     RECOMP_REGS_LOCALS
  20139     RECOMP_ENTER(0x3000EF70u);
  20140 
  20141 L_3000EF70:
  20142     ecx = 0x3001FC15u; /* 0x3000EF70: mov ecx, 0x3001fc15 */
  20143 L_3000EF75:
  20144     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
  20145     { RECOMP_REGS_OUT(); return; } /* end of function */
  20146   _ljump:
  20147     switch (_itail_tgt) {
  20148       case 0x3000EF70u: goto L_3000EF70;
  20149       case 0x3000EF75u: goto L_3000EF75;
  20150       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  20151     }
  20152     RECOMP_REGS_OUT();
  20153 }
  20154 
  20155 void sub_3000EF80(void) {
  20156     int _fpu_cmp = 0;
  20157     uint32_t _cf = 0;
  20158     int _df = 1;
  20159     uint32_t _flag_k = FK_NONE;
  20160     uint32_t _flag_a = 0, _flag_b = 0;
  20161     uint32_t _itail_tgt = 0;
  20162     RECOMP_REGS_LOCALS
  20163     RECOMP_ENTER(0x3000EF80u);
  20164 
  20165 L_3000EF80:
  20166     PUSH32(esp, 0x3000EF90u); /* 0x3000EF80: push 0x3000ef90 */
  20167     RECOMP_ICALL(0x300180ECu); /* 0x3000EF85: call 0x300180ec */ /* not lifted */
  20168     RECOMP_FLAGS_IN();
  20169     ecx = POP32_VAL(esp); /* 0x3000EF8A: pop ecx */
  20170     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000EF8B: ret  */
  20171     RECOMP_REGS_OUT();
  20172 }
  20173 
  20174 void sub_3000EF90(void) {
  20175     int _fpu_cmp = 0;
  20176     uint32_t _cf = 0;
  20177     int _df = 1;
  20178     uint32_t _flag_k = FK_NONE;
  20179     uint32_t _flag_a = 0, _flag_b = 0;
  20180     uint32_t _itail_tgt = 0;
  20181     RECOMP_REGS_LOCALS
  20182     RECOMP_ENTER(0x3000EF90u);
  20183 
  20184 L_3000EF90:
  20185     ecx = 0x3001FC15u; /* 0x3000EF90: mov ecx, 0x3001fc15 */
  20186 L_3000EF95:
  20187     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
  20188     { RECOMP_REGS_OUT(); return; } /* end of function */
  20189   _ljump:
  20190     switch (_itail_tgt) {
  20191       case 0x3000EF90u: goto L_3000EF90;
  20192       case 0x3000EF95u: goto L_3000EF95;
  20193       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  20194     }
  20195     RECOMP_REGS_OUT();
  20196 }
  20197 
  20198 void sub_3000EFA0(void) {
  20199     int _fpu_cmp = 0;
  20200     uint32_t _cf = 0;
  20201     int _df = 1;
  20202     uint32_t _flag_k = FK_NONE;
  20203     uint32_t _flag_a = 0, _flag_b = 0;
  20204     uint32_t _itail_tgt = 0;
  20205     RECOMP_REGS_LOCALS
  20206     RECOMP_ENTER(0x3000EFA0u);
  20207 
  20208 L_3000EFA0:
  20209     RECOMP_ICALL(0x3000EFB0u); /* 0x3000EFA0: call 0x3000efb0 */ /* not lifted */
  20210     RECOMP_FLAGS_IN();
  20211     goto L_3000EFC0; /* 0x3000EFA5: jmp 0x3000efc0 */
  20212 L_3000EFC0:
  20213     PUSH32(esp, 0x3000EFD0u); /* 0x3000EFC0: push 0x3000efd0 */
  20214     RECOMP_ICALL(0x300180ECu); /* 0x3000EFC5: call 0x300180ec */ /* not lifted */
  20215     RECOMP_FLAGS_IN();
  20216     ecx = POP32_VAL(esp); /* 0x3000EFCA: pop ecx */
  20217     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000EFCB: ret  */
  20218     RECOMP_REGS_OUT();
  20219 }
  20220 
  20221 void sub_3000EFB0(void) {
  20222     int _fpu_cmp = 0;
  20223     uint32_t _cf = 0;
  20224     int _df = 1;
  20225     uint32_t _flag_k = FK_NONE;
  20226     uint32_t _flag_a = 0, _flag_b = 0;
  20227     uint32_t _itail_tgt = 0;
  20228     RECOMP_REGS_LOCALS
  20229     RECOMP_ENTER(0x3000EFB0u);
  20230 
  20231 L_3000EFB0:
  20232     ecx = 0x3001FC14u; /* 0x3000EFB0: mov ecx, 0x3001fc14 */
  20233 L_3000EFB5:
  20234     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
  20235     { RECOMP_REGS_OUT(); return; } /* end of function */
  20236   _ljump:
  20237     switch (_itail_tgt) {
  20238       case 0x3000EFB0u: goto L_3000EFB0;
  20239       case 0x3000EFB5u: goto L_3000EFB5;
  20240       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  20241     }
  20242     RECOMP_REGS_OUT();
  20243 }
  20244 
  20245 void sub_3000EFC0(void) {
  20246     int _fpu_cmp = 0;
  20247     uint32_t _cf = 0;
  20248     int _df = 1;
  20249     uint32_t _flag_k = FK_NONE;
  20250     uint32_t _flag_a = 0, _flag_b = 0;
  20251     uint32_t _itail_tgt = 0;
  20252     RECOMP_REGS_LOCALS
  20253     RECOMP_ENTER(0x3000EFC0u);
  20254 
  20255 L_3000EFC0:
  20256     PUSH32(esp, 0x3000EFD0u); /* 0x3000EFC0: push 0x3000efd0 */
  20257     RECOMP_ICALL(0x300180ECu); /* 0x3000EFC5: call 0x300180ec */ /* not lifted */
  20258     RECOMP_FLAGS_IN();
  20259     ecx = POP32_VAL(esp); /* 0x3000EFCA: pop ecx */
  20260     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000EFCB: ret  */
  20261     RECOMP_REGS_OUT();
  20262 }
  20263 
  20264 void sub_3000EFD0(void) {
  20265     int _fpu_cmp = 0;
  20266     uint32_t _cf = 0;
  20267     int _df = 1;
  20268     uint32_t _flag_k = FK_NONE;
  20269     uint32_t _flag_a = 0, _flag_b = 0;
  20270     uint32_t _itail_tgt = 0;
  20271     RECOMP_REGS_LOCALS
  20272     RECOMP_ENTER(0x3000EFD0u);
  20273 
  20274 L_3000EFD0:
  20275     ecx = 0x3001FC14u; /* 0x3000EFD0: mov ecx, 0x3001fc14 */
  20276 L_3000EFD5:
  20277     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
  20278     { RECOMP_REGS_OUT(); return; } /* end of function */
  20279   _ljump:
  20280     switch (_itail_tgt) {
  20281       case 0x3000EFD0u: goto L_3000EFD0;
  20282       case 0x3000EFD5u: goto L_3000EFD5;
  20283       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  20284     }
  20285     RECOMP_REGS_OUT();
  20286 }
  20287 
  20288 void sub_3000EFE0(void) {
  20289     int _fpu_cmp = 0;
  20290     uint32_t _cf = 0;
  20291     int _df = 1;
  20292     uint32_t _flag_k = FK_NONE;
  20293     uint32_t _flag_a = 0, _flag_b = 0;
  20294     uint32_t _itail_tgt = 0;
  20295     RECOMP_REGS_LOCALS
  20296     RECOMP_ENTER(0x3000EFE0u);
  20297 
  20298 L_3000EFE0:
  20299     PUSH32(esp, ebp); /* 0x3000EFE0: push ebp */
  20300     ebp = esp; /* 0x3000EFE1: mov ebp, esp */
  20301     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  20302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20303     esp = esp - 0xCu; /* 0x3000EFE3: sub esp, 0xc */
  20304     _flag_k = FK_CMP;
  20305     PUSH32(esp, ebx); /* 0x3000EFE6: push ebx */
  20306     ebx = ecx; /* 0x3000EFE7: mov ebx, ecx */
  20307     eax = 0x2AAAAAABu; /* 0x3000EFE9: mov eax, 0x2aaaaaab */
  20308     PUSH32(esp, esi); /* 0x3000EFEE: push esi */
  20309     ecx = MEM32(ebx + 0x8); /* 0x3000EFEF: mov ecx, dword ptr [ebx + 8] */
  20310     edx = MEM32(ebx + 0xC); /* 0x3000EFF2: mov edx, dword ptr [ebx + 0xc] */
  20311     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  20312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20313     edx = edx - ecx; /* 0x3000EFF5: sub edx, ecx */
  20314     _flag_k = FK_CMP;
  20315     esi = MEM32(ebp + 0xC); /* 0x3000EFF7: mov esi, dword ptr [ebp + 0xc] */
  20316     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000EFFA: imul edx */
  20317       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  20318       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  20319     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000EFFC: sar edx, 1 */
  20320     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20321     edx = (uint32_t)((int32_t)edx >> 1u);
  20322     eax = edx; /* 0x3000EFFE: mov eax, edx */
  20323     PUSH32(esp, edi); /* 0x3000F000: push edi */
  20324     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000F001: shr eax, 0x1f */
  20325     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20326     eax = eax >> 31u; /* 0x3000F001: shr eax, 0x1f */
  20327     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  20328     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20329     edx = edx + eax; /* 0x3000F004: add edx, eax */
  20330     _flag_k = FK_ADD;
  20331     MEM32(ebp + (-0x4)) = ebx; /* 0x3000F006: mov dword ptr [ebp - 4], ebx */
  20332     /* cmp edx, esi */ /* 0x3000F009: cmp edx, esi */
  20333     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  20334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20335     _flag_k = FK_CMP;
  20336     if (CMP_AE(_flag_a, _flag_b)) goto L_3000F184; /* 0x3000F00B: jae 0x3000f184 */
  20337 L_3000F011:
  20338     edi = MEM32(ebx + 0x4); /* 0x3000F011: mov edi, dword ptr [ebx + 4] */
  20339     /* test edi, edi */ /* 0x3000F014: test edi, edi */
  20340     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  20341     _cf = 0;
  20342     _flag_k = FK_TEST;
  20343     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F032; /* 0x3000F016: je 0x3000f032 */
  20344 L_3000F018:
  20345     edx = ecx; /* 0x3000F018: mov edx, ecx */
  20346     eax = 0x2AAAAAABu; /* 0x3000F01A: mov eax, 0x2aaaaaab */
  20347     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  20348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20349     edx = edx - edi; /* 0x3000F01F: sub edx, edi */
  20350     _flag_k = FK_CMP;
  20351     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000F021: imul edx */
  20352       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  20353       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  20354     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000F023: sar edx, 1 */
  20355     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20356     edx = (uint32_t)((int32_t)edx >> 1u);
  20357     eax = edx; /* 0x3000F025: mov eax, edx */
  20358     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000F027: shr eax, 0x1f */
  20359     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20360     eax = eax >> 31u; /* 0x3000F027: shr eax, 0x1f */
  20361     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  20362     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20363     edx = edx + eax; /* 0x3000F02A: add edx, eax */
  20364     _flag_k = FK_ADD;
  20365     /* cmp esi, edx */ /* 0x3000F02C: cmp esi, edx */
  20366     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  20367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20368     _flag_k = FK_CMP;
  20369     ebx = edx; /* 0x3000F02E: mov ebx, edx */
  20370     if (CMP_B(_flag_a, _flag_b)) goto L_3000F034; /* 0x3000F030: jb 0x3000f034 */
  20371 L_3000F032:
  20372     ebx = esi; /* 0x3000F032: mov ebx, esi */
  20373 L_3000F034:
  20374     /* test edi, edi */ /* 0x3000F034: test edi, edi */
  20375     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  20376     _cf = 0;
  20377     _flag_k = FK_TEST;
  20378     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000F03C; /* 0x3000F036: jne 0x3000f03c */
  20379 L_3000F038:
  20380     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20381     edx = 0; /* 0x3000F038: xor edx, edx */
  20382     _cf = 0;
  20383     _flag_k = FK_TEST;
  20384     goto L_3000F04E; /* 0x3000F03A: jmp 0x3000f04e */
  20385 L_3000F03C:
  20386     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  20387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20388     ecx = ecx - edi; /* 0x3000F03C: sub ecx, edi */
  20389     _flag_k = FK_CMP;
  20390     eax = 0x2AAAAAABu; /* 0x3000F03E: mov eax, 0x2aaaaaab */
  20391     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000F043: imul ecx */
  20392       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  20393       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  20394     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000F045: sar edx, 1 */
  20395     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20396     edx = (uint32_t)((int32_t)edx >> 1u);
  20397     ecx = edx; /* 0x3000F047: mov ecx, edx */
  20398     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000F049: shr ecx, 0x1f */
  20399     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20400     ecx = ecx >> 31u; /* 0x3000F049: shr ecx, 0x1f */
  20401     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  20402     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20403     edx = edx + ecx; /* 0x3000F04C: add edx, ecx */
  20404     _flag_k = FK_ADD;
  20405 L_3000F04E:
  20406     eax = edx + ebx; /* 0x3000F04E: lea eax, [edx + ebx] */
  20407     /* test eax, eax */ /* 0x3000F051: test eax, eax */
  20408     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20409     _cf = 0;
  20410     _flag_k = FK_TEST;
  20411     MEM32(ebp + (-0x8)) = eax; /* 0x3000F053: mov dword ptr [ebp - 8], eax */
  20412     if (TEST_NS(_flag_a, _flag_b)) goto L_3000F05A; /* 0x3000F056: jge 0x3000f05a */
  20413 L_3000F058:
  20414     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20415     eax = 0; /* 0x3000F058: xor eax, eax */
  20416     _cf = 0;
  20417     _flag_k = FK_TEST;
  20418 L_3000F05A:
  20419     edx = eax + eax * 2; /* 0x3000F05A: lea edx, [eax + eax*2] */
  20420     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3000F05D: shl edx, 2 */
  20421     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20422     edx = edx << 2u; /* 0x3000F05D: shl edx, 2 */
  20423     PUSH32(esp, edx); /* 0x3000F060: push edx */
  20424     RECOMP_ICALL(0x300180A8u); /* 0x3000F061: call 0x300180a8 */ /* not lifted */
  20425     RECOMP_FLAGS_IN();
  20426     ecx = MEM32(ebp + 0x8); /* 0x3000F066: mov ecx, dword ptr [ebp + 8] */
  20427     MEM32(ebp + (-0xC)) = eax; /* 0x3000F069: mov dword ptr [ebp - 0xc], eax */
  20428     edx = eax; /* 0x3000F06C: mov edx, eax */
  20429     eax = MEM32(ebp + (-0x4)); /* 0x3000F06E: mov eax, dword ptr [ebp - 4] */
  20430     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  20431     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20432     esp = esp + 4; /* 0x3000F071: add esp, 4 */
  20433     _flag_k = FK_ADD;
  20434     eax = MEM32(eax + 0x4); /* 0x3000F074: mov eax, dword ptr [eax + 4] */
  20435     /* cmp eax, ecx */ /* 0x3000F077: cmp eax, ecx */
  20436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  20437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20438     _flag_k = FK_CMP;
  20439     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F0A0; /* 0x3000F079: je 0x3000f0a0 */
  20440 L_3000F07B:
  20441     /* test edx, edx */ /* 0x3000F07B: test edx, edx */
  20442     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  20443     _cf = 0;
  20444     _flag_k = FK_TEST;
  20445     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F093; /* 0x3000F07D: je 0x3000f093 */
  20446 L_3000F07F:
  20447     ecx = eax; /* 0x3000F07F: mov ecx, eax */
  20448     edi = edx; /* 0x3000F081: mov edi, edx */
  20449     ebx = MEM32(ecx); /* 0x3000F083: mov ebx, dword ptr [ecx] */
  20450     MEM32(edi) = ebx; /* 0x3000F085: mov dword ptr [edi], ebx */
  20451     ebx = MEM32(ecx + 0x4); /* 0x3000F087: mov ebx, dword ptr [ecx + 4] */
  20452     MEM32(edi + 0x4) = ebx; /* 0x3000F08A: mov dword ptr [edi + 4], ebx */
  20453     ecx = MEM32(ecx + 0x8); /* 0x3000F08D: mov ecx, dword ptr [ecx + 8] */
  20454     MEM32(edi + 0x8) = ecx; /* 0x3000F090: mov dword ptr [edi + 8], ecx */
  20455 L_3000F093:
  20456     ecx = MEM32(ebp + 0x8); /* 0x3000F093: mov ecx, dword ptr [ebp + 8] */
  20457     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20458     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20459     eax = eax + 0xCu; /* 0x3000F096: add eax, 0xc */
  20460     _flag_k = FK_ADD;
  20461     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  20462     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20463     edx = edx + 0xCu; /* 0x3000F099: add edx, 0xc */
  20464     _flag_k = FK_ADD;
  20465     /* cmp eax, ecx */ /* 0x3000F09C: cmp eax, ecx */
  20466     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  20467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20468     _flag_k = FK_CMP;
  20469     RECOMP_BACKEDGE();
  20470     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F07B; /* 0x3000F09E: jne 0x3000f07b */
  20471 L_3000F0A0:
  20472     /* test esi, esi */ /* 0x3000F0A0: test esi, esi */
  20473     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  20474     _cf = 0;
  20475     _flag_k = FK_TEST;
  20476     eax = edx; /* 0x3000F0A2: mov eax, edx */
  20477     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F0CE; /* 0x3000F0A4: jbe 0x3000f0ce */
  20478 L_3000F0A6:
  20479     MEM32(ebp + 0xC) = esi; /* 0x3000F0A6: mov dword ptr [ebp + 0xc], esi */
  20480 L_3000F0A9:
  20481     /* test eax, eax */ /* 0x3000F0A9: test eax, eax */
  20482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20483     _cf = 0;
  20484     _flag_k = FK_TEST;
  20485     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F0C2; /* 0x3000F0AB: je 0x3000f0c2 */
  20486 L_3000F0AD:
  20487     ecx = MEM32(ebp + 0x10); /* 0x3000F0AD: mov ecx, dword ptr [ebp + 0x10] */
  20488     edi = eax; /* 0x3000F0B0: mov edi, eax */
  20489     ebx = MEM32(ecx); /* 0x3000F0B2: mov ebx, dword ptr [ecx] */
  20490     MEM32(edi) = ebx; /* 0x3000F0B4: mov dword ptr [edi], ebx */
  20491     ebx = MEM32(ecx + 0x4); /* 0x3000F0B6: mov ebx, dword ptr [ecx + 4] */
  20492     MEM32(edi + 0x4) = ebx; /* 0x3000F0B9: mov dword ptr [edi + 4], ebx */
  20493     ecx = MEM32(ecx + 0x8); /* 0x3000F0BC: mov ecx, dword ptr [ecx + 8] */
  20494     MEM32(edi + 0x8) = ecx; /* 0x3000F0BF: mov dword ptr [edi + 8], ecx */
  20495 L_3000F0C2:
  20496     ecx = MEM32(ebp + 0xC); /* 0x3000F0C2: mov ecx, dword ptr [ebp + 0xc] */
  20497     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20499     eax = eax + 0xCu; /* 0x3000F0C5: add eax, 0xc */
  20500     _flag_k = FK_ADD;
  20501     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  20502     ecx = ecx - 1; /* 0x3000F0C8: dec ecx */
  20503     _flag_k = FK_DEC;
  20504     MEM32(ebp + 0xC) = ecx; /* 0x3000F0C9: mov dword ptr [ebp + 0xc], ecx */
  20505     RECOMP_BACKEDGE();
  20506     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3000F0A9; /* 0x3000F0CC: jne 0x3000f0a9 */
  20507 L_3000F0CE:
  20508     eax = MEM32(ebp + (-0x4)); /* 0x3000F0CE: mov eax, dword ptr [ebp - 4] */
  20509     ecx = esi + esi * 2; /* 0x3000F0D1: lea ecx, [esi + esi*2] */
  20510     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3000F0D4: shl ecx, 2 */
  20511     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20512     ecx = ecx << 2u; /* 0x3000F0D4: shl ecx, 2 */
  20513     ebx = MEM32(eax + 0x8); /* 0x3000F0D7: mov ebx, dword ptr [eax + 8] */
  20514     eax = MEM32(ebp + 0x8); /* 0x3000F0DA: mov eax, dword ptr [ebp + 8] */
  20515     /* cmp eax, ebx */ /* 0x3000F0DD: cmp eax, ebx */
  20516     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  20517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20518     _flag_k = FK_CMP;
  20519     edi = ecx + edx; /* 0x3000F0DF: lea edi, [ecx + edx] */
  20520     MEM32(ebp + 0x10) = ebx; /* 0x3000F0E2: mov dword ptr [ebp + 0x10], ebx */
  20521     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F117; /* 0x3000F0E5: je 0x3000f117 */
  20522 L_3000F0E7:
  20523     eax = edi; /* 0x3000F0E7: mov eax, edi */
  20524     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  20525     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20526     eax = eax - ecx; /* 0x3000F0E9: sub eax, ecx */
  20527     _flag_k = FK_CMP;
  20528     ecx = MEM32(ebp + 0x8); /* 0x3000F0EB: mov ecx, dword ptr [ebp + 8] */
  20529     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  20530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20531     eax = eax - edx; /* 0x3000F0EE: sub eax, edx */
  20532     _flag_k = FK_CMP;
  20533     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  20534     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20535     eax = eax + ecx; /* 0x3000F0F0: add eax, ecx */
  20536     _flag_k = FK_ADD;
  20537 L_3000F0F2:
  20538     /* test edi, edi */ /* 0x3000F0F2: test edi, edi */
  20539     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  20540     _cf = 0;
  20541     _flag_k = FK_TEST;
  20542     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F10D; /* 0x3000F0F4: je 0x3000f10d */
  20543 L_3000F0F6:
  20544     ecx = eax; /* 0x3000F0F6: mov ecx, eax */
  20545     edx = edi; /* 0x3000F0F8: mov edx, edi */
  20546     ebx = MEM32(ecx); /* 0x3000F0FA: mov ebx, dword ptr [ecx] */
  20547     MEM32(edx) = ebx; /* 0x3000F0FC: mov dword ptr [edx], ebx */
  20548     ebx = MEM32(ecx + 0x4); /* 0x3000F0FE: mov ebx, dword ptr [ecx + 4] */
  20549     MEM32(edx + 0x4) = ebx; /* 0x3000F101: mov dword ptr [edx + 4], ebx */
  20550     ebx = MEM32(ebp + 0x10); /* 0x3000F104: mov ebx, dword ptr [ebp + 0x10] */
  20551     ecx = MEM32(ecx + 0x8); /* 0x3000F107: mov ecx, dword ptr [ecx + 8] */
  20552     MEM32(edx + 0x8) = ecx; /* 0x3000F10A: mov dword ptr [edx + 8], ecx */
  20553 L_3000F10D:
  20554     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20555     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20556     eax = eax + 0xCu; /* 0x3000F10D: add eax, 0xc */
  20557     _flag_k = FK_ADD;
  20558     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
  20559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20560     edi = edi + 0xCu; /* 0x3000F110: add edi, 0xc */
  20561     _flag_k = FK_ADD;
  20562     /* cmp eax, ebx */ /* 0x3000F113: cmp eax, ebx */
  20563     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  20564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20565     _flag_k = FK_CMP;
  20566     RECOMP_BACKEDGE();
  20567     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F0F2; /* 0x3000F115: jne 0x3000f0f2 */
  20568 L_3000F117:
  20569     edi = MEM32(ebp + (-0x4)); /* 0x3000F117: mov edi, dword ptr [ebp - 4] */
  20570     eax = MEM32(edi + 0x4); /* 0x3000F11A: mov eax, dword ptr [edi + 4] */
  20571     PUSH32(esp, eax); /* 0x3000F11D: push eax */
  20572     MEM32(ebp + 0x8) = eax; /* 0x3000F11E: mov dword ptr [ebp + 8], eax */
  20573     RECOMP_ICALL(0x30018080u); /* 0x3000F121: call 0x30018080 */ /* not lifted */
  20574     RECOMP_FLAGS_IN();
  20575     eax = MEM32(ebp + (-0x8)); /* 0x3000F126: mov eax, dword ptr [ebp - 8] */
  20576     ebx = MEM32(ebp + (-0xC)); /* 0x3000F129: mov ebx, dword ptr [ebp - 0xc] */
  20577     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  20578     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20579     esp = esp + 4; /* 0x3000F12C: add esp, 4 */
  20580     _flag_k = FK_ADD;
  20581     edx = eax + eax * 2; /* 0x3000F12F: lea edx, [eax + eax*2] */
  20582     eax = ebx + edx * 4; /* 0x3000F132: lea eax, [ebx + edx*4] */
  20583     MEM32(edi + 0xC) = eax; /* 0x3000F135: mov dword ptr [edi + 0xc], eax */
  20584     eax = MEM32(edi + 0x4); /* 0x3000F138: mov eax, dword ptr [edi + 4] */
  20585     /* test eax, eax */ /* 0x3000F13B: test eax, eax */
  20586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20587     _cf = 0;
  20588     _flag_k = FK_TEST;
  20589     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000F158; /* 0x3000F13D: jne 0x3000f158 */
  20590 L_3000F13F:
  20591     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20592     edx = 0; /* 0x3000F13F: xor edx, edx */
  20593     _cf = 0;
  20594     _flag_k = FK_TEST;
  20595     MEM32(edi + 0x4) = ebx; /* 0x3000F141: mov dword ptr [edi + 4], ebx */
  20596     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  20597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20598     esi = esi + edx; /* 0x3000F144: add esi, edx */
  20599     _flag_k = FK_ADD;
  20600     edx = esi + esi * 2; /* 0x3000F146: lea edx, [esi + esi*2] */
  20601     eax = ebx + edx * 4; /* 0x3000F149: lea eax, [ebx + edx*4] */
  20602     MEM32(edi + 0x8) = eax; /* 0x3000F14C: mov dword ptr [edi + 8], eax */
  20603     edi = POP32_VAL(esp); /* 0x3000F14F: pop edi */
  20604     esi = POP32_VAL(esp); /* 0x3000F150: pop esi */
  20605     ebx = POP32_VAL(esp); /* 0x3000F151: pop ebx */
  20606     esp = ebp; /* 0x3000F152: mov esp, ebp */
  20607     ebp = POP32_VAL(esp); /* 0x3000F154: pop ebp */
  20608     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000F155: ret 0xc */
  20609 L_3000F158:
  20610     ecx = MEM32(edi + 0x8); /* 0x3000F158: mov ecx, dword ptr [edi + 8] */
  20611     MEM32(edi + 0x4) = ebx; /* 0x3000F15B: mov dword ptr [edi + 4], ebx */
  20612     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  20613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20614     ecx = ecx - eax; /* 0x3000F15E: sub ecx, eax */
  20615     _flag_k = FK_CMP;
  20616     eax = 0x2AAAAAABu; /* 0x3000F160: mov eax, 0x2aaaaaab */
  20617     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000F165: imul ecx */
  20618       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  20619       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  20620     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000F167: sar edx, 1 */
  20621     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20622     edx = (uint32_t)((int32_t)edx >> 1u);
  20623     ecx = edx; /* 0x3000F169: mov ecx, edx */
  20624     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3000F16B: shr ecx, 0x1f */
  20625     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20626     ecx = ecx >> 31u; /* 0x3000F16B: shr ecx, 0x1f */
  20627     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  20628     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20629     edx = edx + ecx; /* 0x3000F16E: add edx, ecx */
  20630     _flag_k = FK_ADD;
  20631     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  20632     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20633     esi = esi + edx; /* 0x3000F170: add esi, edx */
  20634     _flag_k = FK_ADD;
  20635     edx = esi + esi * 2; /* 0x3000F172: lea edx, [esi + esi*2] */
  20636     eax = ebx + edx * 4; /* 0x3000F175: lea eax, [ebx + edx*4] */
  20637     MEM32(edi + 0x8) = eax; /* 0x3000F178: mov dword ptr [edi + 8], eax */
  20638     edi = POP32_VAL(esp); /* 0x3000F17B: pop edi */
  20639     esi = POP32_VAL(esp); /* 0x3000F17C: pop esi */
  20640     ebx = POP32_VAL(esp); /* 0x3000F17D: pop ebx */
  20641     esp = ebp; /* 0x3000F17E: mov esp, ebp */
  20642     ebp = POP32_VAL(esp); /* 0x3000F180: pop ebp */
  20643     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000F181: ret 0xc */
  20644 L_3000F184:
  20645     edi = MEM32(ebp + 0x8); /* 0x3000F184: mov edi, dword ptr [ebp + 8] */
  20646     edx = ecx; /* 0x3000F187: mov edx, ecx */
  20647     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  20648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20649     edx = edx - edi; /* 0x3000F189: sub edx, edi */
  20650     _flag_k = FK_CMP;
  20651     eax = 0x2AAAAAABu; /* 0x3000F18B: mov eax, 0x2aaaaaab */
  20652     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000F190: imul edx */
  20653       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  20654       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  20655     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000F192: sar edx, 1 */
  20656     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20657     edx = (uint32_t)((int32_t)edx >> 1u);
  20658     eax = edx; /* 0x3000F194: mov eax, edx */
  20659     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000F196: shr eax, 0x1f */
  20660     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20661     eax = eax >> 31u; /* 0x3000F196: shr eax, 0x1f */
  20662     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  20663     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20664     edx = edx + eax; /* 0x3000F199: add edx, eax */
  20665     _flag_k = FK_ADD;
  20666     /* cmp edx, esi */ /* 0x3000F19B: cmp edx, esi */
  20667     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  20668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20669     _flag_k = FK_CMP;
  20670     if (CMP_AE(_flag_a, _flag_b)) goto L_3000F263; /* 0x3000F19D: jae 0x3000f263 */
  20671 L_3000F1A3:
  20672     ebx = esi + esi * 2; /* 0x3000F1A3: lea ebx, [esi + esi*2] */
  20673     if (2u) _cf = (((ebx) >> 30) & 1u); /* 0x3000F1A6: shl ebx, 2 */
  20674     if (2u) { _flag_a = recomp_flags_pack((ebx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20675     ebx = ebx << 2u; /* 0x3000F1A6: shl ebx, 2 */
  20676     /* cmp edi, ecx */ /* 0x3000F1A9: cmp edi, ecx */
  20677     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
  20678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20679     _flag_k = FK_CMP;
  20680     MEM32(ebp + 0x8) = ebx; /* 0x3000F1AB: mov dword ptr [ebp + 8], ebx */
  20681     edx = ebx + edi; /* 0x3000F1AE: lea edx, [ebx + edi] */
  20682     MEM32(ebp + 0xC) = edx; /* 0x3000F1B1: mov dword ptr [ebp + 0xc], edx */
  20683     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F1E7; /* 0x3000F1B4: je 0x3000f1e7 */
  20684 L_3000F1B6:
  20685     eax = edx; /* 0x3000F1B6: mov eax, edx */
  20686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  20687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20688     eax = eax - ebx; /* 0x3000F1B8: sub eax, ebx */
  20689     _flag_k = FK_CMP;
  20690     MEM32(ebp + (-0x8)) = eax; /* 0x3000F1BA: mov dword ptr [ebp - 8], eax */
  20691 L_3000F1BD:
  20692     /* test edx, edx */ /* 0x3000F1BD: test edx, edx */
  20693     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  20694     _cf = 0;
  20695     _flag_k = FK_TEST;
  20696     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F1D7; /* 0x3000F1BF: je 0x3000f1d7 */
  20697 L_3000F1C1:
  20698     ebx = MEM32(eax); /* 0x3000F1C1: mov ebx, dword ptr [eax] */
  20699     MEM32(edx) = ebx; /* 0x3000F1C3: mov dword ptr [edx], ebx */
  20700     ebx = MEM32(eax + 0x4); /* 0x3000F1C5: mov ebx, dword ptr [eax + 4] */
  20701     MEM32(edx + 0x4) = ebx; /* 0x3000F1C8: mov dword ptr [edx + 4], ebx */
  20702     eax = MEM32(eax + 0x8); /* 0x3000F1CB: mov eax, dword ptr [eax + 8] */
  20703     MEM32(edx + 0x8) = eax; /* 0x3000F1CE: mov dword ptr [edx + 8], eax */
  20704     edx = MEM32(ebp + 0xC); /* 0x3000F1D1: mov edx, dword ptr [ebp + 0xc] */
  20705     eax = MEM32(ebp + (-0x8)); /* 0x3000F1D4: mov eax, dword ptr [ebp - 8] */
  20706 L_3000F1D7:
  20707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20708     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20709     eax = eax + 0xCu; /* 0x3000F1D7: add eax, 0xc */
  20710     _flag_k = FK_ADD;
  20711     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  20712     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20713     edx = edx + 0xCu; /* 0x3000F1DA: add edx, 0xc */
  20714     _flag_k = FK_ADD;
  20715     /* cmp eax, ecx */ /* 0x3000F1DD: cmp eax, ecx */
  20716     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  20717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20718     _flag_k = FK_CMP;
  20719     MEM32(ebp + 0xC) = edx; /* 0x3000F1DF: mov dword ptr [ebp + 0xc], edx */
  20720     MEM32(ebp + (-0x8)) = eax; /* 0x3000F1E2: mov dword ptr [ebp - 8], eax */
  20721     RECOMP_BACKEDGE();
  20722     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F1BD; /* 0x3000F1E5: jne 0x3000f1bd */
  20723 L_3000F1E7:
  20724     ecx = MEM32(ebp + (-0x4)); /* 0x3000F1E7: mov ecx, dword ptr [ebp - 4] */
  20725     eax = 0x2AAAAAABu; /* 0x3000F1EA: mov eax, 0x2aaaaaab */
  20726     ebx = MEM32(ecx + 0x8); /* 0x3000F1EF: mov ebx, dword ptr [ecx + 8] */
  20727     ecx = ebx; /* 0x3000F1F2: mov ecx, ebx */
  20728     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  20729     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20730     ecx = ecx - edi; /* 0x3000F1F4: sub ecx, edi */
  20731     _flag_k = FK_CMP;
  20732     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000F1F6: imul ecx */
  20733       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  20734       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  20735     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3000F1F8: sar edx, 1 */
  20736     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20737     edx = (uint32_t)((int32_t)edx >> 1u);
  20738     ecx = MEM32(ebp + 0x10); /* 0x3000F1FA: mov ecx, dword ptr [ebp + 0x10] */
  20739     eax = edx; /* 0x3000F1FD: mov eax, edx */
  20740     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000F1FF: shr eax, 0x1f */
  20741     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20742     eax = eax >> 31u; /* 0x3000F1FF: shr eax, 0x1f */
  20743     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  20744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20745     edx = edx + eax; /* 0x3000F202: add edx, eax */
  20746     _flag_k = FK_ADD;
  20747     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  20748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20749     esi = esi - edx; /* 0x3000F204: sub esi, edx */
  20750     _flag_k = FK_CMP;
  20751     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000F227; /* 0x3000F206: je 0x3000f227 */
  20752 L_3000F208:
  20753     /* test ebx, ebx */ /* 0x3000F208: test ebx, ebx */
  20754     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  20755     _cf = 0;
  20756     _flag_k = FK_TEST;
  20757     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F221; /* 0x3000F20A: je 0x3000f221 */
  20758 L_3000F20C:
  20759     eax = MEM32(ecx); /* 0x3000F20C: mov eax, dword ptr [ecx] */
  20760     edx = ebx; /* 0x3000F20E: mov edx, ebx */
  20761     MEM32(edx) = eax; /* 0x3000F210: mov dword ptr [edx], eax */
  20762     eax = MEM32(ecx + 0x4); /* 0x3000F212: mov eax, dword ptr [ecx + 4] */
  20763     MEM32(edx + 0x4) = eax; /* 0x3000F215: mov dword ptr [edx + 4], eax */
  20764     ecx = MEM32(ecx + 0x8); /* 0x3000F218: mov ecx, dword ptr [ecx + 8] */
  20765     MEM32(edx + 0x8) = ecx; /* 0x3000F21B: mov dword ptr [edx + 8], ecx */
  20766     ecx = MEM32(ebp + 0x10); /* 0x3000F21E: mov ecx, dword ptr [ebp + 0x10] */
  20767 L_3000F221:
  20768     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
  20769     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20770     ebx = ebx + 0xCu; /* 0x3000F221: add ebx, 0xc */
  20771     _flag_k = FK_ADD;
  20772     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  20773     esi = esi - 1; /* 0x3000F224: dec esi */
  20774     _flag_k = FK_DEC;
  20775     RECOMP_BACKEDGE();
  20776     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3000F208; /* 0x3000F225: jne 0x3000f208 */
  20777 L_3000F227:
  20778     edx = MEM32(ebp + (-0x4)); /* 0x3000F227: mov edx, dword ptr [ebp - 4] */
  20779     eax = MEM32(edx + 0x8); /* 0x3000F22A: mov eax, dword ptr [edx + 8] */
  20780     /* cmp edi, eax */ /* 0x3000F22D: cmp edi, eax */
  20781     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  20782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20783     _flag_k = FK_CMP;
  20784     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F24F; /* 0x3000F22F: je 0x3000f24f */
  20785 L_3000F231:
  20786     edx = ecx; /* 0x3000F231: mov edx, ecx */
  20787     esi = edi; /* 0x3000F233: mov esi, edi */
  20788     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
  20789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20790     edi = edi + 0xCu; /* 0x3000F235: add edi, 0xc */
  20791     _flag_k = FK_ADD;
  20792     ebx = MEM32(edx); /* 0x3000F238: mov ebx, dword ptr [edx] */
  20793     /* cmp edi, eax */ /* 0x3000F23A: cmp edi, eax */
  20794     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  20795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20796     _flag_k = FK_CMP;
  20797     MEM32(esi) = ebx; /* 0x3000F23C: mov dword ptr [esi], ebx */
  20798     ebx = MEM32(edx + 0x4); /* 0x3000F23E: mov ebx, dword ptr [edx + 4] */
  20799     MEM32(esi + 0x4) = ebx; /* 0x3000F241: mov dword ptr [esi + 4], ebx */
  20800     edx = MEM32(edx + 0x8); /* 0x3000F244: mov edx, dword ptr [edx + 8] */
  20801     MEM32(esi + 0x8) = edx; /* 0x3000F247: mov dword ptr [esi + 8], edx */
  20802     RECOMP_BACKEDGE();
  20803     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F231; /* 0x3000F24A: jne 0x3000f231 */
  20804 L_3000F24C:
  20805     edx = MEM32(ebp + (-0x4)); /* 0x3000F24C: mov edx, dword ptr [ebp - 4] */
  20806 L_3000F24F:
  20807     eax = MEM32(ebp + 0x8); /* 0x3000F24F: mov eax, dword ptr [ebp + 8] */
  20808     ecx = MEM32(edx + 0x8); /* 0x3000F252: mov ecx, dword ptr [edx + 8] */
  20809     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  20810     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20811     ecx = ecx + eax; /* 0x3000F255: add ecx, eax */
  20812     _flag_k = FK_ADD;
  20813     edi = POP32_VAL(esp); /* 0x3000F257: pop edi */
  20814     esi = POP32_VAL(esp); /* 0x3000F258: pop esi */
  20815     MEM32(edx + 0x8) = ecx; /* 0x3000F259: mov dword ptr [edx + 8], ecx */
  20816     ebx = POP32_VAL(esp); /* 0x3000F25C: pop ebx */
  20817     esp = ebp; /* 0x3000F25D: mov esp, ebp */
  20818     ebp = POP32_VAL(esp); /* 0x3000F25F: pop ebp */
  20819     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000F260: ret 0xc */
  20820 L_3000F263:
  20821     /* test esi, esi */ /* 0x3000F263: test esi, esi */
  20822     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  20823     _cf = 0;
  20824     _flag_k = FK_TEST;
  20825     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F305; /* 0x3000F265: jbe 0x3000f305 */
  20826 L_3000F26B:
  20827     esi = esi + esi * 2; /* 0x3000F26B: lea esi, [esi + esi*2] */
  20828     eax = ecx; /* 0x3000F26E: mov eax, ecx */
  20829     if (2u) _cf = (((esi) >> 30) & 1u); /* 0x3000F270: shl esi, 2 */
  20830     if (2u) { _flag_a = recomp_flags_pack((esi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  20831     esi = esi << 2u; /* 0x3000F270: shl esi, 2 */
  20832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  20833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20834     eax = eax - esi; /* 0x3000F273: sub eax, esi */
  20835     _flag_k = FK_CMP;
  20836     edx = ecx; /* 0x3000F275: mov edx, ecx */
  20837     /* cmp eax, ecx */ /* 0x3000F277: cmp eax, ecx */
  20838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  20839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20840     _flag_k = FK_CMP;
  20841     MEM32(ebp + 0xC) = edx; /* 0x3000F279: mov dword ptr [ebp + 0xc], edx */
  20842     MEM32(ebp + 0x8) = esi; /* 0x3000F27C: mov dword ptr [ebp + 8], esi */
  20843     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F2AD; /* 0x3000F27F: je 0x3000f2ad */
  20844 L_3000F281:
  20845     /* test edx, edx */ /* 0x3000F281: test edx, edx */
  20846     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  20847     _cf = 0;
  20848     _flag_k = FK_TEST;
  20849     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F2A0; /* 0x3000F283: je 0x3000f2a0 */
  20850 L_3000F285:
  20851     esi = eax; /* 0x3000F285: mov esi, eax */
  20852     ebx = MEM32(esi); /* 0x3000F287: mov ebx, dword ptr [esi] */
  20853     MEM32(edx) = ebx; /* 0x3000F289: mov dword ptr [edx], ebx */
  20854     ebx = MEM32(esi + 0x4); /* 0x3000F28B: mov ebx, dword ptr [esi + 4] */
  20855     MEM32(edx + 0x4) = ebx; /* 0x3000F28E: mov dword ptr [edx + 4], ebx */
  20856     ebx = MEM32(ebp + (-0x4)); /* 0x3000F291: mov ebx, dword ptr [ebp - 4] */
  20857     esi = MEM32(esi + 0x8); /* 0x3000F294: mov esi, dword ptr [esi + 8] */
  20858     MEM32(edx + 0x8) = esi; /* 0x3000F297: mov dword ptr [edx + 8], esi */
  20859     edx = MEM32(ebp + 0xC); /* 0x3000F29A: mov edx, dword ptr [ebp + 0xc] */
  20860     esi = MEM32(ebp + 0x8); /* 0x3000F29D: mov esi, dword ptr [ebp + 8] */
  20861 L_3000F2A0:
  20862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20863     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20864     eax = eax + 0xCu; /* 0x3000F2A0: add eax, 0xc */
  20865     _flag_k = FK_ADD;
  20866     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  20867     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20868     edx = edx + 0xCu; /* 0x3000F2A3: add edx, 0xc */
  20869     _flag_k = FK_ADD;
  20870     /* cmp eax, ecx */ /* 0x3000F2A6: cmp eax, ecx */
  20871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  20872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20873     _flag_k = FK_CMP;
  20874     MEM32(ebp + 0xC) = edx; /* 0x3000F2A8: mov dword ptr [ebp + 0xc], edx */
  20875     RECOMP_BACKEDGE();
  20876     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F281; /* 0x3000F2AB: jne 0x3000f281 */
  20877 L_3000F2AD:
  20878     ecx = MEM32(ebx + 0x8); /* 0x3000F2AD: mov ecx, dword ptr [ebx + 8] */
  20879     eax = ecx; /* 0x3000F2B0: mov eax, ecx */
  20880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  20881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20882     eax = eax - esi; /* 0x3000F2B2: sub eax, esi */
  20883     _flag_k = FK_CMP;
  20884     /* cmp edi, eax */ /* 0x3000F2B4: cmp edi, eax */
  20885     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  20886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20887     _flag_k = FK_CMP;
  20888     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F2DC; /* 0x3000F2B6: je 0x3000f2dc */
  20889 L_3000F2B8:
  20890     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  20891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20892     eax = eax - 0xCu; /* 0x3000F2B8: sub eax, 0xc */
  20893     _flag_k = FK_CMP;
  20894     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
  20895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20896     ecx = ecx - 0xCu; /* 0x3000F2BB: sub ecx, 0xc */
  20897     _flag_k = FK_CMP;
  20898     edx = eax; /* 0x3000F2BE: mov edx, eax */
  20899     esi = ecx; /* 0x3000F2C0: mov esi, ecx */
  20900     /* cmp eax, edi */ /* 0x3000F2C2: cmp eax, edi */
  20901     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  20902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20903     _flag_k = FK_CMP;
  20904     ebx = MEM32(edx); /* 0x3000F2C4: mov ebx, dword ptr [edx] */
  20905     MEM32(esi) = ebx; /* 0x3000F2C6: mov dword ptr [esi], ebx */
  20906     ebx = MEM32(edx + 0x4); /* 0x3000F2C8: mov ebx, dword ptr [edx + 4] */
  20907     MEM32(esi + 0x4) = ebx; /* 0x3000F2CB: mov dword ptr [esi + 4], ebx */
  20908     edx = MEM32(edx + 0x8); /* 0x3000F2CE: mov edx, dword ptr [edx + 8] */
  20909     MEM32(esi + 0x8) = edx; /* 0x3000F2D1: mov dword ptr [esi + 8], edx */
  20910     RECOMP_BACKEDGE();
  20911     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F2B8; /* 0x3000F2D4: jne 0x3000f2b8 */
  20912 L_3000F2D6:
  20913     esi = MEM32(ebp + 0x8); /* 0x3000F2D6: mov esi, dword ptr [ebp + 8] */
  20914     ebx = MEM32(ebp + (-0x4)); /* 0x3000F2D9: mov ebx, dword ptr [ebp - 4] */
  20915 L_3000F2DC:
  20916     eax = esi + edi; /* 0x3000F2DC: lea eax, [esi + edi] */
  20917     /* cmp edi, eax */ /* 0x3000F2DF: cmp edi, eax */
  20918     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  20919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20920     _flag_k = FK_CMP;
  20921     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F302; /* 0x3000F2E1: je 0x3000f302 */
  20922 L_3000F2E3:
  20923     ecx = MEM32(ebp + 0x10); /* 0x3000F2E3: mov ecx, dword ptr [ebp + 0x10] */
  20924     edx = edi; /* 0x3000F2E6: mov edx, edi */
  20925     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
  20926     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20927     edi = edi + 0xCu; /* 0x3000F2E8: add edi, 0xc */
  20928     _flag_k = FK_ADD;
  20929     ebx = MEM32(ecx); /* 0x3000F2EB: mov ebx, dword ptr [ecx] */
  20930     /* cmp edi, eax */ /* 0x3000F2ED: cmp edi, eax */
  20931     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  20932     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20933     _flag_k = FK_CMP;
  20934     MEM32(edx) = ebx; /* 0x3000F2EF: mov dword ptr [edx], ebx */
  20935     ebx = MEM32(ecx + 0x4); /* 0x3000F2F1: mov ebx, dword ptr [ecx + 4] */
  20936     MEM32(edx + 0x4) = ebx; /* 0x3000F2F4: mov dword ptr [edx + 4], ebx */
  20937     ecx = MEM32(ecx + 0x8); /* 0x3000F2F7: mov ecx, dword ptr [ecx + 8] */
  20938     MEM32(edx + 0x8) = ecx; /* 0x3000F2FA: mov dword ptr [edx + 8], ecx */
  20939     RECOMP_BACKEDGE();
  20940     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F2E3; /* 0x3000F2FD: jne 0x3000f2e3 */
  20941 L_3000F2FF:
  20942     ebx = MEM32(ebp + (-0x4)); /* 0x3000F2FF: mov ebx, dword ptr [ebp - 4] */
  20943 L_3000F302:
  20944     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
  20945     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20946     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + esi; /* 0x3000F302: add dword ptr [ebx + 8], esi */
  20947     _flag_k = FK_ADD;
  20948 L_3000F305:
  20949     edi = POP32_VAL(esp); /* 0x3000F305: pop edi */
  20950     esi = POP32_VAL(esp); /* 0x3000F306: pop esi */
  20951     ebx = POP32_VAL(esp); /* 0x3000F307: pop ebx */
  20952     esp = ebp; /* 0x3000F308: mov esp, ebp */
  20953     ebp = POP32_VAL(esp); /* 0x3000F30A: pop ebp */
  20954     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000F30B: ret 0xc */
  20955     RECOMP_REGS_OUT();
  20956 }
  20957 
  20958 void sub_3000F310(void) {
  20959     int _fpu_cmp = 0;
  20960     uint32_t _cf = 0;
  20961     int _df = 1;
  20962     uint32_t _flag_k = FK_NONE;
  20963     uint32_t _flag_a = 0, _flag_b = 0;
  20964     uint32_t _itail_tgt = 0;
  20965     RECOMP_REGS_LOCALS
  20966     RECOMP_ENTER(0x3000F310u);
  20967 
  20968 L_3000F310:
  20969     PUSH32(esp, ebp); /* 0x3000F310: push ebp */
  20970     ebp = esp; /* 0x3000F311: mov ebp, esp */
  20971     ecx = MEM32(ebp + 0x8); /* 0x3000F313: mov ecx, dword ptr [ebp + 8] */
  20972     edx = MEM32(ebp + 0xC); /* 0x3000F316: mov edx, dword ptr [ebp + 0xc] */
  20973     /* cmp ecx, edx */ /* 0x3000F319: cmp ecx, edx */
  20974     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  20975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20976     _flag_k = FK_CMP;
  20977     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F34C; /* 0x3000F31B: je 0x3000f34c */
  20978 L_3000F31D:
  20979     eax = MEM32(ebp + 0x10); /* 0x3000F31D: mov eax, dword ptr [ebp + 0x10] */
  20980     PUSH32(esp, ebx); /* 0x3000F320: push ebx */
  20981     PUSH32(esp, esi); /* 0x3000F321: push esi */
  20982     PUSH32(esp, edi); /* 0x3000F322: push edi */
  20983 L_3000F323:
  20984     /* test eax, eax */ /* 0x3000F323: test eax, eax */
  20985     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20986     _cf = 0;
  20987     _flag_k = FK_TEST;
  20988     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F33B; /* 0x3000F325: je 0x3000f33b */
  20989 L_3000F327:
  20990     esi = ecx; /* 0x3000F327: mov esi, ecx */
  20991     edi = eax; /* 0x3000F329: mov edi, eax */
  20992     ebx = MEM32(esi); /* 0x3000F32B: mov ebx, dword ptr [esi] */
  20993     MEM32(edi) = ebx; /* 0x3000F32D: mov dword ptr [edi], ebx */
  20994     ebx = MEM32(esi + 0x4); /* 0x3000F32F: mov ebx, dword ptr [esi + 4] */
  20995     MEM32(edi + 0x4) = ebx; /* 0x3000F332: mov dword ptr [edi + 4], ebx */
  20996     esi = MEM32(esi + 0x8); /* 0x3000F335: mov esi, dword ptr [esi + 8] */
  20997     MEM32(edi + 0x8) = esi; /* 0x3000F338: mov dword ptr [edi + 8], esi */
  20998 L_3000F33B:
  20999     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
  21000     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21001     ecx = ecx + 0xCu; /* 0x3000F33B: add ecx, 0xc */
  21002     _flag_k = FK_ADD;
  21003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  21004     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21005     eax = eax + 0xCu; /* 0x3000F33E: add eax, 0xc */
  21006     _flag_k = FK_ADD;
  21007     /* cmp ecx, edx */ /* 0x3000F341: cmp ecx, edx */
  21008     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  21009     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21010     _flag_k = FK_CMP;
  21011     RECOMP_BACKEDGE();
  21012     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F323; /* 0x3000F343: jne 0x3000f323 */
  21013 L_3000F345:
  21014     edi = POP32_VAL(esp); /* 0x3000F345: pop edi */
  21015     esi = POP32_VAL(esp); /* 0x3000F346: pop esi */
  21016     ebx = POP32_VAL(esp); /* 0x3000F347: pop ebx */
  21017     ebp = POP32_VAL(esp); /* 0x3000F348: pop ebp */
  21018     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000F349: ret 0xc */
  21019 L_3000F34C:
  21020     eax = MEM32(ebp + 0x10); /* 0x3000F34C: mov eax, dword ptr [ebp + 0x10] */
  21021     ebp = POP32_VAL(esp); /* 0x3000F34F: pop ebp */
  21022     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000F350: ret 0xc */
  21023     RECOMP_REGS_OUT();
  21024 }
  21025 
  21026 void sub_3000F360(void) {
  21027     int _fpu_cmp = 0;
  21028     uint32_t _cf = 0;
  21029     int _df = 1;
  21030     uint32_t _flag_k = FK_NONE;
  21031     uint32_t _flag_a = 0, _flag_b = 0;
  21032     uint32_t _itail_tgt = 0;
  21033     RECOMP_REGS_LOCALS
  21034     RECOMP_ENTER(0x3000F360u);
  21035 
  21036 L_3000F360:
  21037     PUSH32(esp, ebp); /* 0x3000F360: push ebp */
  21038     ebp = esp; /* 0x3000F361: mov ebp, esp */
  21039     eax = MEM32(ebp + 0xC); /* 0x3000F363: mov eax, dword ptr [ebp + 0xc] */
  21040     /* test eax, eax */ /* 0x3000F366: test eax, eax */
  21041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21042     _cf = 0;
  21043     _flag_k = FK_TEST;
  21044     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F396; /* 0x3000F368: jbe 0x3000f396 */
  21045 L_3000F36A:
  21046     edx = MEM32(ebp + 0x10); /* 0x3000F36A: mov edx, dword ptr [ebp + 0x10] */
  21047     PUSH32(esp, ebx); /* 0x3000F36D: push ebx */
  21048     PUSH32(esp, esi); /* 0x3000F36E: push esi */
  21049     ecx = eax; /* 0x3000F36F: mov ecx, eax */
  21050     eax = MEM32(ebp + 0x8); /* 0x3000F371: mov eax, dword ptr [ebp + 8] */
  21051     PUSH32(esp, edi); /* 0x3000F374: push edi */
  21052 L_3000F375:
  21053     /* test eax, eax */ /* 0x3000F375: test eax, eax */
  21054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21055     _cf = 0;
  21056     _flag_k = FK_TEST;
  21057     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F38D; /* 0x3000F377: je 0x3000f38d */
  21058 L_3000F379:
  21059     esi = edx; /* 0x3000F379: mov esi, edx */
  21060     edi = eax; /* 0x3000F37B: mov edi, eax */
  21061     ebx = MEM32(esi); /* 0x3000F37D: mov ebx, dword ptr [esi] */
  21062     MEM32(edi) = ebx; /* 0x3000F37F: mov dword ptr [edi], ebx */
  21063     ebx = MEM32(esi + 0x4); /* 0x3000F381: mov ebx, dword ptr [esi + 4] */
  21064     MEM32(edi + 0x4) = ebx; /* 0x3000F384: mov dword ptr [edi + 4], ebx */
  21065     esi = MEM32(esi + 0x8); /* 0x3000F387: mov esi, dword ptr [esi + 8] */
  21066     MEM32(edi + 0x8) = esi; /* 0x3000F38A: mov dword ptr [edi + 8], esi */
  21067 L_3000F38D:
  21068     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  21069     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21070     eax = eax + 0xCu; /* 0x3000F38D: add eax, 0xc */
  21071     _flag_k = FK_ADD;
  21072     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  21073     ecx = ecx - 1; /* 0x3000F390: dec ecx */
  21074     _flag_k = FK_DEC;
  21075     RECOMP_BACKEDGE();
  21076     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3000F375; /* 0x3000F391: jne 0x3000f375 */
  21077 L_3000F393:
  21078     edi = POP32_VAL(esp); /* 0x3000F393: pop edi */
  21079     esi = POP32_VAL(esp); /* 0x3000F394: pop esi */
  21080     ebx = POP32_VAL(esp); /* 0x3000F395: pop ebx */
  21081 L_3000F396:
  21082     ebp = POP32_VAL(esp); /* 0x3000F396: pop ebp */
  21083     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000F397: ret 0xc */
  21084     RECOMP_REGS_OUT();
  21085 }
  21086 
  21087 void sub_3000F3A0(void) {
  21088     int _fpu_cmp = 0;
  21089     uint32_t _cf = 0;
  21090     int _df = 1;
  21091     uint32_t _flag_k = FK_NONE;
  21092     uint32_t _flag_a = 0, _flag_b = 0;
  21093     uint32_t _itail_tgt = 0;
  21094     RECOMP_REGS_LOCALS
  21095     RECOMP_ENTER(0x3000F3A0u);
  21096 
  21097 L_3000F3A0:
  21098     PUSH32(esp, ebp); /* 0x3000F3A0: push ebp */
  21099     ebp = esp; /* 0x3000F3A1: mov ebp, esp */
  21100     PUSH32(esp, ecx); /* 0x3000F3A3: push ecx */
  21101     eax = ecx; /* 0x3000F3A4: mov eax, ecx */
  21102     SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x3000F3A6: mov cl, byte ptr [ebp - 1] */
  21103     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3000F3A9: mov byte ptr [eax], cl */
  21104     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21105     ecx = 0; /* 0x3000F3AB: xor ecx, ecx */
  21106     _cf = 0;
  21107     _flag_k = FK_TEST;
  21108     MEM32(eax + 0x4) = ecx; /* 0x3000F3AD: mov dword ptr [eax + 4], ecx */
  21109     MEM32(eax + 0x8) = ecx; /* 0x3000F3B0: mov dword ptr [eax + 8], ecx */
  21110     MEM32(eax + 0xC) = ecx; /* 0x3000F3B3: mov dword ptr [eax + 0xc], ecx */
  21111     MEM32(eax + 0x10) = ecx; /* 0x3000F3B6: mov dword ptr [eax + 0x10], ecx */
  21112     MEM32(eax + 0x14) = ecx; /* 0x3000F3B9: mov dword ptr [eax + 0x14], ecx */
  21113     MEM32(eax + 0x18) = ecx; /* 0x3000F3BC: mov dword ptr [eax + 0x18], ecx */
  21114     MEM32(eax + 0x1C) = 0xFFFFFFFFu; /* 0x3000F3BF: mov dword ptr [eax + 0x1c], 0xffffffff */
  21115     MEM32(eax + 0x20) = ecx; /* 0x3000F3C6: mov dword ptr [eax + 0x20], ecx */
  21116     MEM32(eax + 0x24) = ecx; /* 0x3000F3C9: mov dword ptr [eax + 0x24], ecx */
  21117     MEM32(eax + 0x28) = ecx; /* 0x3000F3CC: mov dword ptr [eax + 0x28], ecx */
  21118     MEM32(eax + 0x2C) = ecx; /* 0x3000F3CF: mov dword ptr [eax + 0x2c], ecx */
  21119     MEM32(eax + 0x30) = ecx; /* 0x3000F3D2: mov dword ptr [eax + 0x30], ecx */
  21120     MEM32(eax + 0x34) = ecx; /* 0x3000F3D5: mov dword ptr [eax + 0x34], ecx */
  21121     esp = ebp; /* 0x3000F3D8: mov esp, ebp */
  21122     ebp = POP32_VAL(esp); /* 0x3000F3DA: pop ebp */
  21123     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F3DB: ret  */
  21124     RECOMP_REGS_OUT();
  21125 }
  21126 
  21127 void sub_3000F3E0(void) {
  21128     int _fpu_cmp = 0;
  21129     uint32_t _cf = 0;
  21130     int _df = 1;
  21131     uint32_t _flag_k = FK_NONE;
  21132     uint32_t _flag_a = 0, _flag_b = 0;
  21133     uint32_t _itail_tgt = 0;
  21134     RECOMP_REGS_LOCALS
  21135     RECOMP_ENTER(0x3000F3E0u);
  21136 
  21137 L_3000F3E0:
  21138     PUSH32(esp, ebp); /* 0x3000F3E0: push ebp */
  21139     ebp = esp; /* 0x3000F3E1: mov ebp, esp */
  21140     PUSH32(esp, 0xFFFFFFFFu); /* 0x3000F3E3: push -1 */
  21141     PUSH32(esp, 0x30018A08u); /* 0x3000F3E5: push 0x30018a08 */
  21142     eax = MEM32(FS_BASE + (0)); /* 0x3000F3EA: mov eax, dword ptr fs:[0] */
  21143     PUSH32(esp, eax); /* 0x3000F3F0: push eax */
  21144     MEM32(FS_BASE + (0)) = esp; /* 0x3000F3F1: mov dword ptr fs:[0], esp */
  21145     PUSH32(esp, ecx); /* 0x3000F3F8: push ecx */
  21146     PUSH32(esp, ebx); /* 0x3000F3F9: push ebx */
  21147     PUSH32(esp, esi); /* 0x3000F3FA: push esi */
  21148     esi = ecx; /* 0x3000F3FB: mov esi, ecx */
  21149     PUSH32(esp, edi); /* 0x3000F3FD: push edi */
  21150     MEM32(ebp + (-0x10)) = esi; /* 0x3000F3FE: mov dword ptr [ebp - 0x10], esi */
  21151     edi = MEM32(esi + 0x10); /* 0x3000F401: mov edi, dword ptr [esi + 0x10] */
  21152     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21153     ebx = 0; /* 0x3000F404: xor ebx, ebx */
  21154     _cf = 0;
  21155     _flag_k = FK_TEST;
  21156     /* cmp edi, ebx */ /* 0x3000F406: cmp edi, ebx */
  21157     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  21158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21159     _flag_k = FK_CMP;
  21160     MEM32(ebp + (-0x4)) = ebx; /* 0x3000F408: mov dword ptr [ebp - 4], ebx */
  21161     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F41D; /* 0x3000F40B: je 0x3000f41d */
  21162 L_3000F40D:
  21163     ecx = edi; /* 0x3000F40D: mov ecx, edi */
  21164     RECOMP_ICALL(0x3000F3E0u); /* 0x3000F40F: call 0x3000f3e0 */ /* not lifted */
  21165     RECOMP_FLAGS_IN();
  21166     PUSH32(esp, edi); /* 0x3000F414: push edi */
  21167     RECOMP_ICALL(0x30018080u); /* 0x3000F415: call 0x30018080 */ /* not lifted */
  21168     RECOMP_FLAGS_IN();
  21169     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21170     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21171     esp = esp + 4; /* 0x3000F41A: add esp, 4 */
  21172     _flag_k = FK_ADD;
  21173 L_3000F41D:
  21174     edi = MEM32(esi + 0x14); /* 0x3000F41D: mov edi, dword ptr [esi + 0x14] */
  21175     /* cmp edi, ebx */ /* 0x3000F420: cmp edi, ebx */
  21176     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  21177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21178     _flag_k = FK_CMP;
  21179     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F434; /* 0x3000F422: je 0x3000f434 */
  21180 L_3000F424:
  21181     ecx = edi; /* 0x3000F424: mov ecx, edi */
  21182     RECOMP_ICALL(0x3000F3E0u); /* 0x3000F426: call 0x3000f3e0 */ /* not lifted */
  21183     RECOMP_FLAGS_IN();
  21184     PUSH32(esp, edi); /* 0x3000F42B: push edi */
  21185     RECOMP_ICALL(0x30018080u); /* 0x3000F42C: call 0x30018080 */ /* not lifted */
  21186     RECOMP_FLAGS_IN();
  21187     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21189     esp = esp + 4; /* 0x3000F431: add esp, 4 */
  21190     _flag_k = FK_ADD;
  21191 L_3000F434:
  21192     eax = MEM32(esi + 0x4); /* 0x3000F434: mov eax, dword ptr [esi + 4] */
  21193     PUSH32(esp, eax); /* 0x3000F437: push eax */
  21194     MEM32(ebp + (-0x10)) = eax; /* 0x3000F438: mov dword ptr [ebp - 0x10], eax */
  21195     RECOMP_ICALL(0x30018080u); /* 0x3000F43B: call 0x30018080 */ /* not lifted */
  21196     RECOMP_FLAGS_IN();
  21197     ecx = MEM32(ebp + (-0xC)); /* 0x3000F440: mov ecx, dword ptr [ebp - 0xc] */
  21198     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21199     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21200     esp = esp + 4; /* 0x3000F443: add esp, 4 */
  21201     _flag_k = FK_ADD;
  21202     MEM32(esi + 0x4) = ebx; /* 0x3000F446: mov dword ptr [esi + 4], ebx */
  21203     MEM32(esi + 0x8) = ebx; /* 0x3000F449: mov dword ptr [esi + 8], ebx */
  21204     MEM32(esi + 0xC) = ebx; /* 0x3000F44C: mov dword ptr [esi + 0xc], ebx */
  21205     edi = POP32_VAL(esp); /* 0x3000F44F: pop edi */
  21206     esi = POP32_VAL(esp); /* 0x3000F450: pop esi */
  21207     ebx = POP32_VAL(esp); /* 0x3000F451: pop ebx */
  21208     MEM32(FS_BASE + (0)) = ecx; /* 0x3000F452: mov dword ptr fs:[0], ecx */
  21209     esp = ebp; /* 0x3000F459: mov esp, ebp */
  21210     ebp = POP32_VAL(esp); /* 0x3000F45B: pop ebp */
  21211     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F45C: ret  */
  21212     RECOMP_REGS_OUT();
  21213 }
  21214 
  21215 void sub_3000F460(void) {
  21216     int _fpu_cmp = 0;
  21217     uint32_t _cf = 0;
  21218     int _df = 1;
  21219     uint32_t _flag_k = FK_NONE;
  21220     uint32_t _flag_a = 0, _flag_b = 0;
  21221     uint32_t _itail_tgt = 0;
  21222     RECOMP_REGS_LOCALS
  21223     RECOMP_ENTER(0x3000F460u);
  21224 
  21225 L_3000F460:
  21226     PUSH32(esp, ebp); /* 0x3000F460: push ebp */
  21227     ebp = esp; /* 0x3000F461: mov ebp, esp */
  21228     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21229     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21230     esp = esp - 8; /* 0x3000F463: sub esp, 8 */
  21231     _flag_k = FK_CMP;
  21232     edx = MEM32(ecx + 0x4); /* 0x3000F466: mov edx, dword ptr [ecx + 4] */
  21233     ecx = MEM32(ecx + 0x8); /* 0x3000F469: mov ecx, dword ptr [ecx + 8] */
  21234     PUSH32(esp, ebx); /* 0x3000F46C: push ebx */
  21235     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21236     ebx = 0; /* 0x3000F46D: xor ebx, ebx */
  21237     _cf = 0;
  21238     _flag_k = FK_TEST;
  21239     /* cmp edx, ecx */ /* 0x3000F46F: cmp edx, ecx */
  21240     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  21241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21242     _flag_k = FK_CMP;
  21243     MEM32(ebp + (-0x4)) = ebx; /* 0x3000F471: mov dword ptr [ebp - 4], ebx */
  21244     MEM32(ebp + (-0x8)) = ebx; /* 0x3000F474: mov dword ptr [ebp - 8], ebx */
  21245     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F4AF; /* 0x3000F477: je 0x3000f4af */
  21246 L_3000F479:
  21247     PUSH32(esp, esi); /* 0x3000F479: push esi */
  21248     PUSH32(esp, edi); /* 0x3000F47A: push edi */
  21249     edi = MEM32(ebp + 0xC); /* 0x3000F47B: mov edi, dword ptr [ebp + 0xc] */
  21250 L_3000F47E:
  21251     esi = MEM32(edx); /* 0x3000F47E: mov esi, dword ptr [edx] */
  21252     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000F480: fld dword ptr [ebp + 8] */
  21253     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + edi * 4 + 0xC)); /* 0x3000F483: fcomp dword ptr [esi + edi*4 + 0xc] */
  21254     fp_pop();
  21255     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F487: fnstsw ax */
  21256     /* test HI8(eax), 0x41u */ /* 0x3000F489: test ah, 0x41 */
  21257     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21258     _cf = 0;
  21259     _flag_k = FK_NARROW(FK_TEST, 24);
  21260     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F4A5; /* 0x3000F48C: je 0x3000f4a5 */
  21261 L_3000F48E:
  21262     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000F48E: fld dword ptr [ebp + 8] */
  21263     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + edi * 4)); /* 0x3000F491: fcomp dword ptr [esi + edi*4] */
  21264     fp_pop();
  21265     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F494: fnstsw ax */
  21266     /* test HI8(eax), 0x41u */ /* 0x3000F496: test ah, 0x41 */
  21267     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21268     _cf = 0;
  21269     _flag_k = FK_NARROW(FK_TEST, 24);
  21270     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F4A0; /* 0x3000F499: je 0x3000f4a0 */
  21271 L_3000F49B:
  21272     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1);
  21273     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 1; /* 0x3000F49B: inc dword ptr [ebp - 4] */
  21274     _flag_k = FK_INC;
  21275     goto L_3000F4A6; /* 0x3000F49E: jmp 0x3000f4a6 */
  21276 L_3000F4A0:
  21277     _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(1);
  21278     MEM32(ebp + (-0x8)) = MEM32(ebp + (-0x8)) + 1; /* 0x3000F4A0: inc dword ptr [ebp - 8] */
  21279     _flag_k = FK_INC;
  21280     goto L_3000F4A6; /* 0x3000F4A3: jmp 0x3000f4a6 */
  21281 L_3000F4A5:
  21282     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  21283     ebx = ebx + 1; /* 0x3000F4A5: inc ebx */
  21284     _flag_k = FK_INC;
  21285 L_3000F4A6:
  21286     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
  21287     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21288     edx = edx + 4; /* 0x3000F4A6: add edx, 4 */
  21289     _flag_k = FK_ADD;
  21290     /* cmp edx, ecx */ /* 0x3000F4A9: cmp edx, ecx */
  21291     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  21292     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21293     _flag_k = FK_CMP;
  21294     RECOMP_BACKEDGE();
  21295     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F47E; /* 0x3000F4AB: jne 0x3000f47e */
  21296 L_3000F4AD:
  21297     edi = POP32_VAL(esp); /* 0x3000F4AD: pop edi */
  21298     esi = POP32_VAL(esp); /* 0x3000F4AE: pop esi */
  21299 L_3000F4AF:
  21300     eax = MEM32(ebp + 0x10); /* 0x3000F4AF: mov eax, dword ptr [ebp + 0x10] */
  21301     /* test eax, eax */ /* 0x3000F4B2: test eax, eax */
  21302     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21303     _cf = 0;
  21304     _flag_k = FK_TEST;
  21305     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F4B8; /* 0x3000F4B4: je 0x3000f4b8 */
  21306 L_3000F4B6:
  21307     MEM32(eax) = ebx; /* 0x3000F4B6: mov dword ptr [eax], ebx */
  21308 L_3000F4B8:
  21309     eax = MEM32(ebp + 0x14); /* 0x3000F4B8: mov eax, dword ptr [ebp + 0x14] */
  21310     ebx = POP32_VAL(esp); /* 0x3000F4BB: pop ebx */
  21311     /* test eax, eax */ /* 0x3000F4BC: test eax, eax */
  21312     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21313     _cf = 0;
  21314     _flag_k = FK_TEST;
  21315     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F4C5; /* 0x3000F4BE: je 0x3000f4c5 */
  21316 L_3000F4C0:
  21317     ecx = MEM32(ebp + (-0x4)); /* 0x3000F4C0: mov ecx, dword ptr [ebp - 4] */
  21318     MEM32(eax) = ecx; /* 0x3000F4C3: mov dword ptr [eax], ecx */
  21319 L_3000F4C5:
  21320     eax = MEM32(ebp + 0x18); /* 0x3000F4C5: mov eax, dword ptr [ebp + 0x18] */
  21321     /* test eax, eax */ /* 0x3000F4C8: test eax, eax */
  21322     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21323     _cf = 0;
  21324     _flag_k = FK_TEST;
  21325     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F4D1; /* 0x3000F4CA: je 0x3000f4d1 */
  21326 L_3000F4CC:
  21327     edx = MEM32(ebp + (-0x8)); /* 0x3000F4CC: mov edx, dword ptr [ebp - 8] */
  21328     MEM32(eax) = edx; /* 0x3000F4CF: mov dword ptr [eax], edx */
  21329 L_3000F4D1:
  21330     esp = ebp; /* 0x3000F4D1: mov esp, ebp */
  21331     ebp = POP32_VAL(esp); /* 0x3000F4D3: pop ebp */
  21332     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3000F4D4: ret 0x14 */
  21333     RECOMP_REGS_OUT();
  21334 }
  21335 
  21336 void sub_3000F4E0(void) {
  21337     int _fpu_cmp = 0;
  21338     uint32_t _cf = 0;
  21339     int _df = 1;
  21340     uint32_t _flag_k = FK_NONE;
  21341     uint32_t _flag_a = 0, _flag_b = 0;
  21342     uint32_t _itail_tgt = 0;
  21343     RECOMP_REGS_LOCALS
  21344     RECOMP_ENTER(0x3000F4E0u);
  21345 
  21346 L_3000F4E0:
  21347     PUSH32(esp, ebx); /* 0x3000F4E0: push ebx */
  21348     PUSH32(esp, esi); /* 0x3000F4E1: push esi */
  21349     esi = MEM32(ecx + 0x4); /* 0x3000F4E2: mov esi, dword ptr [ecx + 4] */
  21350     PUSH32(esp, edi); /* 0x3000F4E5: push edi */
  21351     edi = ecx + 0x20; /* 0x3000F4E6: lea edi, [ecx + 0x20] */
  21352     eax = MEM32(esi); /* 0x3000F4E9: mov eax, dword ptr [esi] */
  21353     edx = edi; /* 0x3000F4EB: mov edx, edi */
  21354     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  21355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21356     esi = esi + 4; /* 0x3000F4ED: add esi, 4 */
  21357     _flag_k = FK_ADD;
  21358     ebx = MEM32(eax); /* 0x3000F4F0: mov ebx, dword ptr [eax] */
  21359     MEM32(edx) = ebx; /* 0x3000F4F2: mov dword ptr [edx], ebx */
  21360     ebx = MEM32(eax + 0x4); /* 0x3000F4F4: mov ebx, dword ptr [eax + 4] */
  21361     MEM32(edx + 0x4) = ebx; /* 0x3000F4F7: mov dword ptr [edx + 4], ebx */
  21362     eax = MEM32(eax + 0x8); /* 0x3000F4FA: mov eax, dword ptr [eax + 8] */
  21363     MEM32(edx + 0x8) = eax; /* 0x3000F4FD: mov dword ptr [edx + 8], eax */
  21364     edx = MEM32(esi + (-0x4)); /* 0x3000F500: mov edx, dword ptr [esi - 4] */
  21365     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  21366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21367     edx = edx + 0xCu; /* 0x3000F503: add edx, 0xc */
  21368     _flag_k = FK_ADD;
  21369     eax = ecx + 0x2C; /* 0x3000F506: lea eax, [ecx + 0x2c] */
  21370     ebx = MEM32(edx); /* 0x3000F509: mov ebx, dword ptr [edx] */
  21371     MEM32(eax) = ebx; /* 0x3000F50B: mov dword ptr [eax], ebx */
  21372     ebx = MEM32(edx + 0x4); /* 0x3000F50D: mov ebx, dword ptr [edx + 4] */
  21373     MEM32(eax + 0x4) = ebx; /* 0x3000F510: mov dword ptr [eax + 4], ebx */
  21374     edx = MEM32(edx + 0x8); /* 0x3000F513: mov edx, dword ptr [edx + 8] */
  21375     MEM32(eax + 0x8) = edx; /* 0x3000F516: mov dword ptr [eax + 8], edx */
  21376     eax = MEM32(ecx + 0x8); /* 0x3000F519: mov eax, dword ptr [ecx + 8] */
  21377     /* cmp esi, eax */ /* 0x3000F51C: cmp esi, eax */
  21378     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  21379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21380     _flag_k = FK_CMP;
  21381     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F59A; /* 0x3000F51E: je 0x3000f59a */
  21382 L_3000F520:
  21383     edx = MEM32(esi); /* 0x3000F520: mov edx, dword ptr [esi] */
  21384     fp_push(*(float*)&MEM32(edx)); /* 0x3000F522: fld dword ptr [edx] */
  21385     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x3000F524: fcomp dword ptr [edi] */
  21386     fp_pop();
  21387     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F526: fnstsw ax */
  21388     /* test HI8(eax), 1 */ /* 0x3000F528: test ah, 1 */
  21389     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21390     _cf = 0;
  21391     _flag_k = FK_NARROW(FK_TEST, 24);
  21392     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F531; /* 0x3000F52B: je 0x3000f531 */
  21393 L_3000F52D:
  21394     eax = MEM32(edx); /* 0x3000F52D: mov eax, dword ptr [edx] */
  21395     MEM32(edi) = eax; /* 0x3000F52F: mov dword ptr [edi], eax */
  21396 L_3000F531:
  21397     fp_push(*(float*)&MEM32(edx + 0xC)); /* 0x3000F531: fld dword ptr [edx + 0xc] */
  21398     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x2C)); /* 0x3000F534: fcomp dword ptr [ecx + 0x2c] */
  21399     fp_pop();
  21400     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F537: fnstsw ax */
  21401     /* test HI8(eax), 0x41u */ /* 0x3000F539: test ah, 0x41 */
  21402     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21403     _cf = 0;
  21404     _flag_k = FK_NARROW(FK_TEST, 24);
  21405     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000F544; /* 0x3000F53C: jne 0x3000f544 */
  21406 L_3000F53E:
  21407     eax = MEM32(edx + 0xC); /* 0x3000F53E: mov eax, dword ptr [edx + 0xc] */
  21408     MEM32(ecx + 0x2C) = eax; /* 0x3000F541: mov dword ptr [ecx + 0x2c], eax */
  21409 L_3000F544:
  21410     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x3000F544: fld dword ptr [edx + 4] */
  21411     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x24)); /* 0x3000F547: fcomp dword ptr [ecx + 0x24] */
  21412     fp_pop();
  21413     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F54A: fnstsw ax */
  21414     /* test HI8(eax), 1 */ /* 0x3000F54C: test ah, 1 */
  21415     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21416     _cf = 0;
  21417     _flag_k = FK_NARROW(FK_TEST, 24);
  21418     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F557; /* 0x3000F54F: je 0x3000f557 */
  21419 L_3000F551:
  21420     eax = MEM32(edx + 0x4); /* 0x3000F551: mov eax, dword ptr [edx + 4] */
  21421     MEM32(ecx + 0x24) = eax; /* 0x3000F554: mov dword ptr [ecx + 0x24], eax */
  21422 L_3000F557:
  21423     fp_push(*(float*)&MEM32(edx + 0x10)); /* 0x3000F557: fld dword ptr [edx + 0x10] */
  21424     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x30)); /* 0x3000F55A: fcomp dword ptr [ecx + 0x30] */
  21425     fp_pop();
  21426     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F55D: fnstsw ax */
  21427     /* test HI8(eax), 0x41u */ /* 0x3000F55F: test ah, 0x41 */
  21428     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21429     _cf = 0;
  21430     _flag_k = FK_NARROW(FK_TEST, 24);
  21431     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000F56A; /* 0x3000F562: jne 0x3000f56a */
  21432 L_3000F564:
  21433     eax = MEM32(edx + 0x10); /* 0x3000F564: mov eax, dword ptr [edx + 0x10] */
  21434     MEM32(ecx + 0x30) = eax; /* 0x3000F567: mov dword ptr [ecx + 0x30], eax */
  21435 L_3000F56A:
  21436     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x3000F56A: fld dword ptr [edx + 8] */
  21437     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x28)); /* 0x3000F56D: fcomp dword ptr [ecx + 0x28] */
  21438     fp_pop();
  21439     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F570: fnstsw ax */
  21440     /* test HI8(eax), 1 */ /* 0x3000F572: test ah, 1 */
  21441     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21442     _cf = 0;
  21443     _flag_k = FK_NARROW(FK_TEST, 24);
  21444     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F57D; /* 0x3000F575: je 0x3000f57d */
  21445 L_3000F577:
  21446     eax = MEM32(edx + 0x8); /* 0x3000F577: mov eax, dword ptr [edx + 8] */
  21447     MEM32(ecx + 0x28) = eax; /* 0x3000F57A: mov dword ptr [ecx + 0x28], eax */
  21448 L_3000F57D:
  21449     fp_push(*(float*)&MEM32(edx + 0x14)); /* 0x3000F57D: fld dword ptr [edx + 0x14] */
  21450     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x34)); /* 0x3000F580: fcomp dword ptr [ecx + 0x34] */
  21451     fp_pop();
  21452     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F583: fnstsw ax */
  21453     /* test HI8(eax), 0x41u */ /* 0x3000F585: test ah, 0x41 */
  21454     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21455     _cf = 0;
  21456     _flag_k = FK_NARROW(FK_TEST, 24);
  21457     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000F590; /* 0x3000F588: jne 0x3000f590 */
  21458 L_3000F58A:
  21459     edx = MEM32(edx + 0x14); /* 0x3000F58A: mov edx, dword ptr [edx + 0x14] */
  21460     MEM32(ecx + 0x34) = edx; /* 0x3000F58D: mov dword ptr [ecx + 0x34], edx */
  21461 L_3000F590:
  21462     eax = MEM32(ecx + 0x8); /* 0x3000F590: mov eax, dword ptr [ecx + 8] */
  21463     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  21464     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21465     esi = esi + 4; /* 0x3000F593: add esi, 4 */
  21466     _flag_k = FK_ADD;
  21467     /* cmp esi, eax */ /* 0x3000F596: cmp esi, eax */
  21468     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  21469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21470     _flag_k = FK_CMP;
  21471     RECOMP_BACKEDGE();
  21472     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F520; /* 0x3000F598: jne 0x3000f520 */
  21473 L_3000F59A:
  21474     edi = POP32_VAL(esp); /* 0x3000F59A: pop edi */
  21475     esi = POP32_VAL(esp); /* 0x3000F59B: pop esi */
  21476     ebx = POP32_VAL(esp); /* 0x3000F59C: pop ebx */
  21477     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F59D: ret  */
  21478     RECOMP_REGS_OUT();
  21479 }
  21480 
  21481 void sub_3000F5A0(void) {
  21482     int _fpu_cmp = 0;
  21483     uint32_t _cf = 0;
  21484     int _df = 1;
  21485     uint32_t _flag_k = FK_NONE;
  21486     uint32_t _flag_a = 0, _flag_b = 0;
  21487     uint32_t _itail_tgt = 0;
  21488     RECOMP_REGS_LOCALS
  21489     RECOMP_ENTER(0x3000F5A0u);
  21490 
  21491 L_3000F5A0:
  21492     PUSH32(esp, ebp); /* 0x3000F5A0: push ebp */
  21493     ebp = esp; /* 0x3000F5A1: mov ebp, esp */
  21494     PUSH32(esp, esi); /* 0x3000F5A3: push esi */
  21495     PUSH32(esp, edi); /* 0x3000F5A4: push edi */
  21496     esi = ecx; /* 0x3000F5A5: mov esi, ecx */
  21497     PUSH32(esp, 0x38u); /* 0x3000F5A7: push 0x38 */
  21498     RECOMP_ICALL(0x300180A8u); /* 0x3000F5A9: call 0x300180a8 */ /* not lifted */
  21499     RECOMP_FLAGS_IN();
  21500     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21501     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21502     esp = esp + 4; /* 0x3000F5AE: add esp, 4 */
  21503     _flag_k = FK_ADD;
  21504     /* test eax, eax */ /* 0x3000F5B1: test eax, eax */
  21505     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21506     _cf = 0;
  21507     _flag_k = FK_TEST;
  21508     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F5BE; /* 0x3000F5B3: je 0x3000f5be */
  21509 L_3000F5B5:
  21510     ecx = eax; /* 0x3000F5B5: mov ecx, eax */
  21511     RECOMP_ICALL(0x3000F3A0u); /* 0x3000F5B7: call 0x3000f3a0 */ /* not lifted */
  21512     RECOMP_FLAGS_IN();
  21513     goto L_3000F5C0; /* 0x3000F5BC: jmp 0x3000f5c0 */
  21514 L_3000F5BE:
  21515     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21516     eax = 0; /* 0x3000F5BE: xor eax, eax */
  21517     _cf = 0;
  21518     _flag_k = FK_TEST;
  21519 L_3000F5C0:
  21520     PUSH32(esp, 0x38u); /* 0x3000F5C0: push 0x38 */
  21521     MEM32(esi + 0x10) = eax; /* 0x3000F5C2: mov dword ptr [esi + 0x10], eax */
  21522     RECOMP_ICALL(0x300180A8u); /* 0x3000F5C5: call 0x300180a8 */ /* not lifted */
  21523     RECOMP_FLAGS_IN();
  21524     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21525     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21526     esp = esp + 4; /* 0x3000F5CA: add esp, 4 */
  21527     _flag_k = FK_ADD;
  21528     /* test eax, eax */ /* 0x3000F5CD: test eax, eax */
  21529     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21530     _cf = 0;
  21531     _flag_k = FK_TEST;
  21532     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F5DA; /* 0x3000F5CF: je 0x3000f5da */
  21533 L_3000F5D1:
  21534     ecx = eax; /* 0x3000F5D1: mov ecx, eax */
  21535     RECOMP_ICALL(0x3000F3A0u); /* 0x3000F5D3: call 0x3000f3a0 */ /* not lifted */
  21536     RECOMP_FLAGS_IN();
  21537     goto L_3000F5DC; /* 0x3000F5D8: jmp 0x3000f5dc */
  21538 L_3000F5DA:
  21539     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21540     eax = 0; /* 0x3000F5DA: xor eax, eax */
  21541     _cf = 0;
  21542     _flag_k = FK_TEST;
  21543 L_3000F5DC:
  21544     edi = MEM32(esi + 0x4); /* 0x3000F5DC: mov edi, dword ptr [esi + 4] */
  21545     MEM32(esi + 0x14) = eax; /* 0x3000F5DF: mov dword ptr [esi + 0x14], eax */
  21546     eax = MEM32(esi + 0x8); /* 0x3000F5E2: mov eax, dword ptr [esi + 8] */
  21547     PUSH32(esp, ebx); /* 0x3000F5E5: push ebx */
  21548     ebx = MEM32(ebp + 0xC); /* 0x3000F5E6: mov ebx, dword ptr [ebp + 0xc] */
  21549     /* cmp edi, eax */ /* 0x3000F5E9: cmp edi, eax */
  21550     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  21551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21552     _flag_k = FK_CMP;
  21553     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F65D; /* 0x3000F5EB: je 0x3000f65d */
  21554 L_3000F5ED:
  21555     ecx = MEM32(edi); /* 0x3000F5ED: mov ecx, dword ptr [edi] */
  21556     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000F5EF: fld dword ptr [ebp + 8] */
  21557     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + ebx * 4 + 0xC)); /* 0x3000F5F2: fcomp dword ptr [ecx + ebx*4 + 0xc] */
  21558     fp_pop();
  21559     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F5F6: fnstsw ax */
  21560     /* test HI8(eax), 0x41u */ /* 0x3000F5F8: test ah, 0x41 */
  21561     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21562     _cf = 0;
  21563     _flag_k = FK_NARROW(FK_TEST, 24);
  21564     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F63E; /* 0x3000F5FB: je 0x3000f63e */
  21565 L_3000F5FD:
  21566     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000F5FD: fld dword ptr [ebp + 8] */
  21567     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + ebx * 4)); /* 0x3000F600: fcomp dword ptr [ecx + ebx*4] */
  21568     fp_pop();
  21569     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000F603: fnstsw ax */
  21570     /* test HI8(eax), 0x41u */ /* 0x3000F605: test ah, 0x41 */
  21571     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21572     _cf = 0;
  21573     _flag_k = FK_NARROW(FK_TEST, 24);
  21574     if (TEST_Z(_flag_a, _flag_b)) goto L_3000F61C; /* 0x3000F608: je 0x3000f61c */
  21575 L_3000F60A:
  21576     MEM32(ebp + 0xC) = ecx; /* 0x3000F60A: mov dword ptr [ebp + 0xc], ecx */
  21577     ecx = MEM32(esi + 0x14); /* 0x3000F60D: mov ecx, dword ptr [esi + 0x14] */
  21578     eax = ebp + 0xC; /* 0x3000F610: lea eax, [ebp + 0xc] */
  21579     edx = MEM32(ecx + 0x8); /* 0x3000F613: mov edx, dword ptr [ecx + 8] */
  21580     PUSH32(esp, eax); /* 0x3000F616: push eax */
  21581     PUSH32(esp, 1); /* 0x3000F617: push 1 */
  21582     PUSH32(esp, edx); /* 0x3000F619: push edx */
  21583     goto L_3000F64E; /* 0x3000F61A: jmp 0x3000f64e */
  21584 L_3000F61C:
  21585     MEM32(ebp + 0xC) = ecx; /* 0x3000F61C: mov dword ptr [ebp + 0xc], ecx */
  21586     ecx = MEM32(esi + 0x10); /* 0x3000F61F: mov ecx, dword ptr [esi + 0x10] */
  21587     eax = ebp + 0xC; /* 0x3000F622: lea eax, [ebp + 0xc] */
  21588     edx = MEM32(ecx + 0x8); /* 0x3000F625: mov edx, dword ptr [ecx + 8] */
  21589     PUSH32(esp, eax); /* 0x3000F628: push eax */
  21590     PUSH32(esp, 1); /* 0x3000F629: push 1 */
  21591     PUSH32(esp, edx); /* 0x3000F62B: push edx */
  21592     RECOMP_ICALL(0x30017E70u); /* 0x3000F62C: call 0x30017e70 */ /* not lifted */
  21593     RECOMP_FLAGS_IN();
  21594     eax = MEM32(edi); /* 0x3000F631: mov eax, dword ptr [edi] */
  21595     ecx = MEM32(esi + 0x14); /* 0x3000F633: mov ecx, dword ptr [esi + 0x14] */
  21596     MEM32(ebp + 0xC) = eax; /* 0x3000F636: mov dword ptr [ebp + 0xc], eax */
  21597     edx = ebp + 0xC; /* 0x3000F639: lea edx, [ebp + 0xc] */
  21598     goto L_3000F647; /* 0x3000F63C: jmp 0x3000f647 */
  21599 L_3000F63E:
  21600     MEM32(ebp + 0xC) = ecx; /* 0x3000F63E: mov dword ptr [ebp + 0xc], ecx */
  21601     ecx = MEM32(esi + 0x10); /* 0x3000F641: mov ecx, dword ptr [esi + 0x10] */
  21602     edx = ebp + 0xC; /* 0x3000F644: lea edx, [ebp + 0xc] */
  21603 L_3000F647:
  21604     eax = MEM32(ecx + 0x8); /* 0x3000F647: mov eax, dword ptr [ecx + 8] */
  21605     PUSH32(esp, edx); /* 0x3000F64A: push edx */
  21606     PUSH32(esp, 1); /* 0x3000F64B: push 1 */
  21607     PUSH32(esp, eax); /* 0x3000F64D: push eax */
  21608 L_3000F64E:
  21609     RECOMP_ICALL(0x30017E70u); /* 0x3000F64E: call 0x30017e70 */ /* not lifted */
  21610     RECOMP_FLAGS_IN();
  21611     eax = MEM32(esi + 0x8); /* 0x3000F653: mov eax, dword ptr [esi + 8] */
  21612     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  21613     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21614     edi = edi + 4; /* 0x3000F656: add edi, 4 */
  21615     _flag_k = FK_ADD;
  21616     /* cmp edi, eax */ /* 0x3000F659: cmp edi, eax */
  21617     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  21618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21619     _flag_k = FK_CMP;
  21620     RECOMP_BACKEDGE();
  21621     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F5ED; /* 0x3000F65B: jne 0x3000f5ed */
  21622 L_3000F65D:
  21623     ecx = MEM32(esi + 0x10); /* 0x3000F65D: mov ecx, dword ptr [esi + 0x10] */
  21624     RECOMP_ICALL(0x3000F4E0u); /* 0x3000F660: call 0x3000f4e0 */ /* not lifted */
  21625     RECOMP_FLAGS_IN();
  21626     ecx = MEM32(esi + 0x14); /* 0x3000F665: mov ecx, dword ptr [esi + 0x14] */
  21627     RECOMP_ICALL(0x3000F4E0u); /* 0x3000F668: call 0x3000f4e0 */ /* not lifted */
  21628     RECOMP_FLAGS_IN();
  21629     edx = MEM32(esi + 0x8); /* 0x3000F66D: mov edx, dword ptr [esi + 8] */
  21630     ecx = MEM32(ebp + 0x8); /* 0x3000F670: mov ecx, dword ptr [ebp + 8] */
  21631     eax = edx; /* 0x3000F673: mov eax, edx */
  21632     MEM32(esi + 0x18) = ecx; /* 0x3000F675: mov dword ptr [esi + 0x18], ecx */
  21633     ecx = MEM32(esi + 0x4); /* 0x3000F678: mov ecx, dword ptr [esi + 4] */
  21634     MEM32(esi + 0x1C) = ebx; /* 0x3000F67B: mov dword ptr [esi + 0x1c], ebx */
  21635     /* cmp eax, edx */ /* 0x3000F67E: cmp eax, edx */
  21636     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  21637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21638     _flag_k = FK_CMP;
  21639     ebx = POP32_VAL(esp); /* 0x3000F680: pop ebx */
  21640     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F6A0; /* 0x3000F681: je 0x3000f6a0 */
  21641 L_3000F683:
  21642     edi = MEM32(eax); /* 0x3000F683: mov edi, dword ptr [eax] */
  21643     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  21644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21645     eax = eax + 4; /* 0x3000F685: add eax, 4 */
  21646     _flag_k = FK_ADD;
  21647     MEM32(ecx) = edi; /* 0x3000F688: mov dword ptr [ecx], edi */
  21648     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  21649     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21650     ecx = ecx + 4; /* 0x3000F68A: add ecx, 4 */
  21651     _flag_k = FK_ADD;
  21652     /* cmp eax, edx */ /* 0x3000F68D: cmp eax, edx */
  21653     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  21654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21655     _flag_k = FK_CMP;
  21656     RECOMP_BACKEDGE();
  21657     if (CMP_NE(_flag_a, _flag_b)) goto L_3000F683; /* 0x3000F68F: jne 0x3000f683 */
  21658 L_3000F691:
  21659     edx = MEM32(esi + 0x8); /* 0x3000F691: mov edx, dword ptr [esi + 8] */
  21660     MEM32(esi + 0x8) = ecx; /* 0x3000F694: mov dword ptr [esi + 8], ecx */
  21661     edi = POP32_VAL(esp); /* 0x3000F697: pop edi */
  21662     MEM32(ebp + 0x8) = edx; /* 0x3000F698: mov dword ptr [ebp + 8], edx */
  21663     esi = POP32_VAL(esp); /* 0x3000F69B: pop esi */
  21664     ebp = POP32_VAL(esp); /* 0x3000F69C: pop ebp */
  21665     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3000F69D: ret 8 */
  21666 L_3000F6A0:
  21667     eax = MEM32(esi + 0x8); /* 0x3000F6A0: mov eax, dword ptr [esi + 8] */
  21668     MEM32(esi + 0x8) = ecx; /* 0x3000F6A3: mov dword ptr [esi + 8], ecx */
  21669     edi = POP32_VAL(esp); /* 0x3000F6A6: pop edi */
  21670     MEM32(ebp + 0x8) = eax; /* 0x3000F6A7: mov dword ptr [ebp + 8], eax */
  21671     esi = POP32_VAL(esp); /* 0x3000F6AA: pop esi */
  21672     ebp = POP32_VAL(esp); /* 0x3000F6AB: pop ebp */
  21673     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3000F6AC: ret 8 */
  21674     RECOMP_REGS_OUT();
  21675 }