aorecomp

Anarchy Online classic in the browser

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


client/game/ggr.dll/lifted-0002.c (457577B)


      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_30005BC0(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(0x30005BC0u);
     17 
     18 L_30005BC0:
     19     PUSH32(esp, ebp); /* 0x30005BC0: push ebp */
     20     ebp = esp; /* 0x30005BC1: mov ebp, esp */
     21     eax = ecx; /* 0x30005BC3: mov eax, ecx */
     22     ecx = MEM32(ebp + 0x8); /* 0x30005BC5: mov ecx, dword ptr [ebp + 8] */
     23     PUSH32(esp, esi); /* 0x30005BC8: push esi */
     24     PUSH32(esp, edi); /* 0x30005BC9: push edi */
     25     edx = ecx + 0x4; /* 0x30005BCA: lea edx, [ecx + 4] */
     26     edi = MEM32(edx); /* 0x30005BCD: mov edi, dword ptr [edx] */
     27     esi = eax + 0x4; /* 0x30005BCF: lea esi, [eax + 4] */
     28     MEM32(esi) = edi; /* 0x30005BD2: mov dword ptr [esi], edi */
     29     edi = MEM32(edx + 0x4); /* 0x30005BD4: mov edi, dword ptr [edx + 4] */
     30     MEM32(esi + 0x4) = edi; /* 0x30005BD7: mov dword ptr [esi + 4], edi */
     31     edx = MEM32(edx + 0x8); /* 0x30005BDA: mov edx, dword ptr [edx + 8] */
     32     MEM32(esi + 0x8) = edx; /* 0x30005BDD: mov dword ptr [esi + 8], edx */
     33     edx = MEM32(ecx + 0x10); /* 0x30005BE0: mov edx, dword ptr [ecx + 0x10] */
     34     MEM32(eax + 0x10) = edx; /* 0x30005BE3: mov dword ptr [eax + 0x10], edx */
     35     edx = MEM32(ecx + 0x14); /* 0x30005BE6: mov edx, dword ptr [ecx + 0x14] */
     36     MEM32(eax + 0x14) = edx; /* 0x30005BE9: mov dword ptr [eax + 0x14], edx */
     37     edx = MEM32(ecx + 0x18); /* 0x30005BEC: mov edx, dword ptr [ecx + 0x18] */
     38     MEM32(eax + 0x18) = edx; /* 0x30005BEF: mov dword ptr [eax + 0x18], edx */
     39     ecx = MEM32(ecx + 0x1C); /* 0x30005BF2: mov ecx, dword ptr [ecx + 0x1c] */
     40     edi = POP32_VAL(esp); /* 0x30005BF5: pop edi */
     41     MEM32(eax + 0x1C) = ecx; /* 0x30005BF6: mov dword ptr [eax + 0x1c], ecx */
     42     esi = POP32_VAL(esp); /* 0x30005BF9: pop esi */
     43     ebp = POP32_VAL(esp); /* 0x30005BFA: pop ebp */
     44     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005BFB: ret 4 */
     45     RECOMP_REGS_OUT();
     46 }
     47 
     48 void sub_30005C00(void) {
     49     int _fpu_cmp = 0;
     50     uint32_t _cf = 0;
     51     int _df = 1;
     52     uint32_t _flag_k = FK_NONE;
     53     uint32_t _flag_a = 0, _flag_b = 0;
     54     uint32_t _itail_tgt = 0;
     55     RECOMP_REGS_LOCALS
     56     RECOMP_ENTER(0x30005C00u);
     57 
     58 L_30005C00:
     59     PUSH32(esp, ebp); /* 0x30005C00: push ebp */
     60     ebp = esp; /* 0x30005C01: mov ebp, esp */
     61     PUSH32(esp, ebx); /* 0x30005C03: push ebx */
     62     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x30005C04: mov bl, byte ptr [ebp + 8] */
     63     /* test LO8(ebx), 2 */ /* 0x30005C07: test bl, 2 */
     64     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
     65     _cf = 0;
     66     _flag_k = FK_NARROW(FK_TEST, 24);
     67     PUSH32(esp, esi); /* 0x30005C0A: push esi */
     68     esi = ecx; /* 0x30005C0B: mov esi, ecx */
     69     if (TEST_Z(_flag_a, _flag_b)) goto L_30005C3B; /* 0x30005C0D: je 0x30005c3b */
     70 L_30005C0F:
     71     eax = MEM32(esi + (-0x4)); /* 0x30005C0F: mov eax, dword ptr [esi - 4] */
     72     PUSH32(esp, edi); /* 0x30005C12: push edi */
     73     PUSH32(esp, 0x30005C90u); /* 0x30005C13: push 0x30005c90 */
     74     edi = esi + (-0x4); /* 0x30005C18: lea edi, [esi - 4] */
     75     PUSH32(esp, eax); /* 0x30005C1B: push eax */
     76     PUSH32(esp, 0x20u); /* 0x30005C1C: push 0x20 */
     77     PUSH32(esp, esi); /* 0x30005C1E: push esi */
     78     RECOMP_ICALL(0x300180FEu); /* 0x30005C1F: call 0x300180fe */ /* not lifted */
     79     RECOMP_FLAGS_IN();
     80     /* test LO8(ebx), 1 */ /* 0x30005C24: test bl, 1 */
     81     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
     82     _cf = 0;
     83     _flag_k = FK_NARROW(FK_TEST, 24);
     84     if (TEST_Z(_flag_a, _flag_b)) goto L_30005C32; /* 0x30005C27: je 0x30005c32 */
     85 L_30005C29:
     86     PUSH32(esp, edi); /* 0x30005C29: push edi */
     87     RECOMP_ICALL(0x30018080u); /* 0x30005C2A: call 0x30018080 */ /* not lifted */
     88     RECOMP_FLAGS_IN();
     89     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     90     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     91     esp = esp + 4; /* 0x30005C2F: add esp, 4 */
     92     _flag_k = FK_ADD;
     93 L_30005C32:
     94     eax = edi; /* 0x30005C32: mov eax, edi */
     95     edi = POP32_VAL(esp); /* 0x30005C34: pop edi */
     96     esi = POP32_VAL(esp); /* 0x30005C35: pop esi */
     97     ebx = POP32_VAL(esp); /* 0x30005C36: pop ebx */
     98     ebp = POP32_VAL(esp); /* 0x30005C37: pop ebp */
     99     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005C38: ret 4 */
    100 L_30005C3B:
    101     ecx = esi; /* 0x30005C3B: mov ecx, esi */
    102     RECOMP_ICALL(0x30005C90u); /* 0x30005C3D: call 0x30005c90 */ /* not lifted */
    103     RECOMP_FLAGS_IN();
    104     /* test LO8(ebx), 1 */ /* 0x30005C42: test bl, 1 */
    105     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    106     _cf = 0;
    107     _flag_k = FK_NARROW(FK_TEST, 24);
    108     if (TEST_Z(_flag_a, _flag_b)) goto L_30005C50; /* 0x30005C45: je 0x30005c50 */
    109 L_30005C47:
    110     PUSH32(esp, esi); /* 0x30005C47: push esi */
    111     RECOMP_ICALL(0x30018080u); /* 0x30005C48: call 0x30018080 */ /* not lifted */
    112     RECOMP_FLAGS_IN();
    113     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    114     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    115     esp = esp + 4; /* 0x30005C4D: add esp, 4 */
    116     _flag_k = FK_ADD;
    117 L_30005C50:
    118     eax = esi; /* 0x30005C50: mov eax, esi */
    119     esi = POP32_VAL(esp); /* 0x30005C52: pop esi */
    120     ebx = POP32_VAL(esp); /* 0x30005C53: pop ebx */
    121     ebp = POP32_VAL(esp); /* 0x30005C54: pop ebp */
    122     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005C55: ret 4 */
    123     RECOMP_REGS_OUT();
    124 }
    125 
    126 void sub_30005C60(void) {
    127     int _fpu_cmp = 0;
    128     uint32_t _cf = 0;
    129     int _df = 1;
    130     uint32_t _flag_k = FK_NONE;
    131     uint32_t _flag_a = 0, _flag_b = 0;
    132     uint32_t _itail_tgt = 0;
    133     RECOMP_REGS_LOCALS
    134     RECOMP_ENTER(0x30005C60u);
    135 
    136 L_30005C60:
    137     PUSH32(esp, ebp); /* 0x30005C60: push ebp */
    138     ebp = esp; /* 0x30005C61: mov ebp, esp */
    139     PUSH32(esp, esi); /* 0x30005C63: push esi */
    140     esi = ecx; /* 0x30005C64: mov esi, ecx */
    141     PUSH32(esp, 1); /* 0x30005C66: push 1 */
    142     RECOMP_ICALL(0x30006420u); /* 0x30005C68: call 0x30006420 */ /* not lifted */
    143     RECOMP_FLAGS_IN();
    144     eax = MEM32(ebp + 0x8); /* 0x30005C6D: mov eax, dword ptr [ebp + 8] */
    145     ecx = MEM32(ebp + 0xC); /* 0x30005C70: mov ecx, dword ptr [ebp + 0xc] */
    146     MEM32(esi + 0x18) = eax; /* 0x30005C73: mov dword ptr [esi + 0x18], eax */
    147     MEM32(esi + 0x1C) = ecx; /* 0x30005C76: mov dword ptr [esi + 0x1c], ecx */
    148     MEM32(esi) = 0x300191D8u; /* 0x30005C79: mov dword ptr [esi], 0x300191d8 */
    149     eax = esi; /* 0x30005C7F: mov eax, esi */
    150     esi = POP32_VAL(esp); /* 0x30005C81: pop esi */
    151     ebp = POP32_VAL(esp); /* 0x30005C82: pop ebp */
    152     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30005C83: ret 8 */
    153     RECOMP_REGS_OUT();
    154 }
    155 
    156 void sub_30005C90(void) {
    157     int _fpu_cmp = 0;
    158     uint32_t _cf = 0;
    159     int _df = 1;
    160     uint32_t _flag_k = FK_NONE;
    161     uint32_t _flag_a = 0, _flag_b = 0;
    162     uint32_t _itail_tgt = 0;
    163     RECOMP_REGS_LOCALS
    164     RECOMP_ENTER(0x30005C90u);
    165 
    166 L_30005C90:
    167     MEM32(ecx) = 0x300191D8u; /* 0x30005C90: mov dword ptr [ecx], 0x300191d8 */
    168     goto L_30006450; /* 0x30005C96: jmp 0x30006450 */
    169 L_30006450:
    170     MEM32(ecx) = 0x300191C0u; /* 0x30006450: mov dword ptr [ecx], 0x300191c0 */
    171     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006456: ret  */
    172     RECOMP_REGS_OUT();
    173 }
    174 
    175 void sub_30005CA0(void) {
    176     int _fpu_cmp = 0;
    177     uint32_t _cf = 0;
    178     int _df = 1;
    179     uint32_t _flag_k = FK_NONE;
    180     uint32_t _flag_a = 0, _flag_b = 0;
    181     uint32_t _itail_tgt = 0;
    182     RECOMP_REGS_LOCALS
    183     RECOMP_ENTER(0x30005CA0u);
    184 
    185 L_30005CA0:
    186     RECOMP_ICALL(0x30005CB0u); /* 0x30005CA0: call 0x30005cb0 */ /* not lifted */
    187     RECOMP_FLAGS_IN();
    188     goto L_30005CC0; /* 0x30005CA5: jmp 0x30005cc0 */
    189 L_30005CC0:
    190     PUSH32(esp, 0x30005CD0u); /* 0x30005CC0: push 0x30005cd0 */
    191     RECOMP_ICALL(0x300180ECu); /* 0x30005CC5: call 0x300180ec */ /* not lifted */
    192     RECOMP_FLAGS_IN();
    193     ecx = POP32_VAL(esp); /* 0x30005CCA: pop ecx */
    194     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005CCB: ret  */
    195     RECOMP_REGS_OUT();
    196 }
    197 
    198 void sub_30005CB0(void) {
    199     int _fpu_cmp = 0;
    200     uint32_t _cf = 0;
    201     int _df = 1;
    202     uint32_t _flag_k = FK_NONE;
    203     uint32_t _flag_a = 0, _flag_b = 0;
    204     uint32_t _itail_tgt = 0;
    205     RECOMP_REGS_LOCALS
    206     RECOMP_ENTER(0x30005CB0u);
    207 
    208 L_30005CB0:
    209     ecx = 0x3001E3C1u; /* 0x30005CB0: mov ecx, 0x3001e3c1 */
    210 L_30005CB5:
    211     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
    212     { RECOMP_REGS_OUT(); return; } /* end of function */
    213   _ljump:
    214     switch (_itail_tgt) {
    215       case 0x30005CB0u: goto L_30005CB0;
    216       case 0x30005CB5u: goto L_30005CB5;
    217       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    218     }
    219     RECOMP_REGS_OUT();
    220 }
    221 
    222 void sub_30005CC0(void) {
    223     int _fpu_cmp = 0;
    224     uint32_t _cf = 0;
    225     int _df = 1;
    226     uint32_t _flag_k = FK_NONE;
    227     uint32_t _flag_a = 0, _flag_b = 0;
    228     uint32_t _itail_tgt = 0;
    229     RECOMP_REGS_LOCALS
    230     RECOMP_ENTER(0x30005CC0u);
    231 
    232 L_30005CC0:
    233     PUSH32(esp, 0x30005CD0u); /* 0x30005CC0: push 0x30005cd0 */
    234     RECOMP_ICALL(0x300180ECu); /* 0x30005CC5: call 0x300180ec */ /* not lifted */
    235     RECOMP_FLAGS_IN();
    236     ecx = POP32_VAL(esp); /* 0x30005CCA: pop ecx */
    237     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005CCB: ret  */
    238     RECOMP_REGS_OUT();
    239 }
    240 
    241 void sub_30005CD0(void) {
    242     int _fpu_cmp = 0;
    243     uint32_t _cf = 0;
    244     int _df = 1;
    245     uint32_t _flag_k = FK_NONE;
    246     uint32_t _flag_a = 0, _flag_b = 0;
    247     uint32_t _itail_tgt = 0;
    248     RECOMP_REGS_LOCALS
    249     RECOMP_ENTER(0x30005CD0u);
    250 
    251 L_30005CD0:
    252     ecx = 0x3001E3C1u; /* 0x30005CD0: mov ecx, 0x3001e3c1 */
    253 L_30005CD5:
    254     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
    255     { RECOMP_REGS_OUT(); return; } /* end of function */
    256   _ljump:
    257     switch (_itail_tgt) {
    258       case 0x30005CD0u: goto L_30005CD0;
    259       case 0x30005CD5u: goto L_30005CD5;
    260       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    261     }
    262     RECOMP_REGS_OUT();
    263 }
    264 
    265 void sub_30005CE0(void) {
    266     int _fpu_cmp = 0;
    267     uint32_t _cf = 0;
    268     int _df = 1;
    269     uint32_t _flag_k = FK_NONE;
    270     uint32_t _flag_a = 0, _flag_b = 0;
    271     uint32_t _itail_tgt = 0;
    272     RECOMP_REGS_LOCALS
    273     RECOMP_ENTER(0x30005CE0u);
    274 
    275 L_30005CE0:
    276     RECOMP_ICALL(0x30005CF0u); /* 0x30005CE0: call 0x30005cf0 */ /* not lifted */
    277     RECOMP_FLAGS_IN();
    278     goto L_30005D00; /* 0x30005CE5: jmp 0x30005d00 */
    279 L_30005D00:
    280     PUSH32(esp, 0x30005D10u); /* 0x30005D00: push 0x30005d10 */
    281     RECOMP_ICALL(0x300180ECu); /* 0x30005D05: call 0x300180ec */ /* not lifted */
    282     RECOMP_FLAGS_IN();
    283     ecx = POP32_VAL(esp); /* 0x30005D0A: pop ecx */
    284     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005D0B: ret  */
    285     RECOMP_REGS_OUT();
    286 }
    287 
    288 void sub_30005CF0(void) {
    289     int _fpu_cmp = 0;
    290     uint32_t _cf = 0;
    291     int _df = 1;
    292     uint32_t _flag_k = FK_NONE;
    293     uint32_t _flag_a = 0, _flag_b = 0;
    294     uint32_t _itail_tgt = 0;
    295     RECOMP_REGS_LOCALS
    296     RECOMP_ENTER(0x30005CF0u);
    297 
    298 L_30005CF0:
    299     ecx = 0x3001E3C0u; /* 0x30005CF0: mov ecx, 0x3001e3c0 */
    300 L_30005CF5:
    301     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
    302     { RECOMP_REGS_OUT(); return; } /* end of function */
    303   _ljump:
    304     switch (_itail_tgt) {
    305       case 0x30005CF0u: goto L_30005CF0;
    306       case 0x30005CF5u: goto L_30005CF5;
    307       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    308     }
    309     RECOMP_REGS_OUT();
    310 }
    311 
    312 void sub_30005D00(void) {
    313     int _fpu_cmp = 0;
    314     uint32_t _cf = 0;
    315     int _df = 1;
    316     uint32_t _flag_k = FK_NONE;
    317     uint32_t _flag_a = 0, _flag_b = 0;
    318     uint32_t _itail_tgt = 0;
    319     RECOMP_REGS_LOCALS
    320     RECOMP_ENTER(0x30005D00u);
    321 
    322 L_30005D00:
    323     PUSH32(esp, 0x30005D10u); /* 0x30005D00: push 0x30005d10 */
    324     RECOMP_ICALL(0x300180ECu); /* 0x30005D05: call 0x300180ec */ /* not lifted */
    325     RECOMP_FLAGS_IN();
    326     ecx = POP32_VAL(esp); /* 0x30005D0A: pop ecx */
    327     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005D0B: ret  */
    328     RECOMP_REGS_OUT();
    329 }
    330 
    331 void sub_30005D10(void) {
    332     int _fpu_cmp = 0;
    333     uint32_t _cf = 0;
    334     int _df = 1;
    335     uint32_t _flag_k = FK_NONE;
    336     uint32_t _flag_a = 0, _flag_b = 0;
    337     uint32_t _itail_tgt = 0;
    338     RECOMP_REGS_LOCALS
    339     RECOMP_ENTER(0x30005D10u);
    340 
    341 L_30005D10:
    342     ecx = 0x3001E3C0u; /* 0x30005D10: mov ecx, 0x3001e3c0 */
    343 L_30005D15:
    344     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
    345     { RECOMP_REGS_OUT(); return; } /* end of function */
    346   _ljump:
    347     switch (_itail_tgt) {
    348       case 0x30005D10u: goto L_30005D10;
    349       case 0x30005D15u: goto L_30005D15;
    350       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    351     }
    352     RECOMP_REGS_OUT();
    353 }
    354 
    355 void sub_30005D20(void) {
    356     int _fpu_cmp = 0;
    357     uint32_t _cf = 0;
    358     int _df = 1;
    359     uint32_t _flag_k = FK_NONE;
    360     uint32_t _flag_a = 0, _flag_b = 0;
    361     uint32_t _itail_tgt = 0;
    362     RECOMP_REGS_LOCALS
    363     RECOMP_ENTER(0x30005D20u);
    364 
    365 L_30005D20:
    366     PUSH32(esp, ebp); /* 0x30005D20: push ebp */
    367     ebp = esp; /* 0x30005D21: mov ebp, esp */
    368     eax = ecx; /* 0x30005D23: mov eax, ecx */
    369     ecx = MEM32(ebp + 0x8); /* 0x30005D25: mov ecx, dword ptr [ebp + 8] */
    370     /* cmp eax, ecx */ /* 0x30005D28: cmp eax, ecx */
    371     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    373     _flag_k = FK_CMP;
    374     if (CMP_EQ(_flag_a, _flag_b)) goto L_30005D36; /* 0x30005D2A: je 0x30005d36 */
    375 L_30005D2C:
    376     edx = MEM32(ecx); /* 0x30005D2C: mov edx, dword ptr [ecx] */
    377     MEM32(eax) = edx; /* 0x30005D2E: mov dword ptr [eax], edx */
    378     edx = MEM32(ecx + 0x4); /* 0x30005D30: mov edx, dword ptr [ecx + 4] */
    379     MEM32(eax + 0x4) = edx; /* 0x30005D33: mov dword ptr [eax + 4], edx */
    380 L_30005D36:
    381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    383     ecx = ecx + 8; /* 0x30005D36: add ecx, 8 */
    384     _flag_k = FK_ADD;
    385     PUSH32(esp, esi); /* 0x30005D39: push esi */
    386     esi = MEM32(ecx); /* 0x30005D3A: mov esi, dword ptr [ecx] */
    387     edx = eax + 0x8; /* 0x30005D3C: lea edx, [eax + 8] */
    388     MEM32(edx) = esi; /* 0x30005D3F: mov dword ptr [edx], esi */
    389     esi = MEM32(ecx + 0x4); /* 0x30005D41: mov esi, dword ptr [ecx + 4] */
    390     MEM32(edx + 0x4) = esi; /* 0x30005D44: mov dword ptr [edx + 4], esi */
    391     ecx = MEM32(ecx + 0x8); /* 0x30005D47: mov ecx, dword ptr [ecx + 8] */
    392     MEM32(edx + 0x8) = ecx; /* 0x30005D4A: mov dword ptr [edx + 8], ecx */
    393     esi = POP32_VAL(esp); /* 0x30005D4D: pop esi */
    394     ebp = POP32_VAL(esp); /* 0x30005D4E: pop ebp */
    395     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005D4F: ret 4 */
    396     RECOMP_REGS_OUT();
    397 }
    398 
    399 void sub_30005D60(void) {
    400     int _fpu_cmp = 0;
    401     uint32_t _cf = 0;
    402     int _df = 1;
    403     uint32_t _flag_k = FK_NONE;
    404     uint32_t _flag_a = 0, _flag_b = 0;
    405     uint32_t _itail_tgt = 0;
    406     RECOMP_REGS_LOCALS
    407     RECOMP_ENTER(0x30005D60u);
    408 
    409 L_30005D60:
    410     PUSH32(esp, ebp); /* 0x30005D60: push ebp */
    411     ebp = esp; /* 0x30005D61: mov ebp, esp */
    412     PUSH32(esp, esi); /* 0x30005D63: push esi */
    413     esi = MEM32(ebp + 0x8); /* 0x30005D64: mov esi, dword ptr [ebp + 8] */
    414     PUSH32(esp, edi); /* 0x30005D67: push edi */
    415     eax = ecx; /* 0x30005D68: mov eax, ecx */
    416     ecx = 5; /* 0x30005D6A: mov ecx, 5 */
    417     edi = eax; /* 0x30005D6F: mov edi, eax */
    418     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x30005D71: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
    419     edi = POP32_VAL(esp); /* 0x30005D73: pop edi */
    420     esi = POP32_VAL(esp); /* 0x30005D74: pop esi */
    421     ebp = POP32_VAL(esp); /* 0x30005D75: pop ebp */
    422     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005D76: ret 4 */
    423     RECOMP_REGS_OUT();
    424 }
    425 
    426 void sub_30005D80(void) {
    427     int _fpu_cmp = 0;
    428     uint32_t _cf = 0;
    429     int _df = 1;
    430     uint32_t _flag_k = FK_NONE;
    431     uint32_t _flag_a = 0, _flag_b = 0;
    432     uint32_t _itail_tgt = 0;
    433     RECOMP_REGS_LOCALS
    434     RECOMP_ENTER(0x30005D80u);
    435 
    436 L_30005D80:
    437     PUSH32(esp, ebp); /* 0x30005D80: push ebp */
    438     ebp = esp; /* 0x30005D81: mov ebp, esp */
    439     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    441     esp = esp - 0x14u; /* 0x30005D83: sub esp, 0x14 */
    442     _flag_k = FK_CMP;
    443     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    444     eax = 0; /* 0x30005D86: xor eax, eax */
    445     _cf = 0;
    446     _flag_k = FK_TEST;
    447     MEM32(ebp + (-0x8)) = eax; /* 0x30005D88: mov dword ptr [ebp - 8], eax */
    448     MEM32(ebp + (-0x4)) = eax; /* 0x30005D8B: mov dword ptr [ebp - 4], eax */
    449     eax = ebp + (-0x14); /* 0x30005D8E: lea eax, [ebp - 0x14] */
    450     PUSH32(esp, eax); /* 0x30005D91: push eax */
    451     edx = ebp + (-0x8); /* 0x30005D92: lea edx, [ebp - 8] */
    452     PUSH32(esp, edx); /* 0x30005D95: push edx */
    453     MEM32(ebp + (-0x14)) = 0; /* 0x30005D96: mov dword ptr [ebp - 0x14], 0 */
    454     MEM32(ebp + (-0x10)) = 0; /* 0x30005D9D: mov dword ptr [ebp - 0x10], 0 */
    455     MEM32(ebp + (-0xC)) = 0; /* 0x30005DA4: mov dword ptr [ebp - 0xc], 0 */
    456     RECOMP_ICALL(0x30005DC0u); /* 0x30005DAB: call 0x30005dc0 */ /* not lifted */
    457     RECOMP_FLAGS_IN();
    458     esp = ebp; /* 0x30005DB0: mov esp, ebp */
    459     ebp = POP32_VAL(esp); /* 0x30005DB2: pop ebp */
    460     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005DB3: ret  */
    461     RECOMP_REGS_OUT();
    462 }
    463 
    464 void sub_30005DC0(void) {
    465     int _fpu_cmp = 0;
    466     uint32_t _cf = 0;
    467     int _df = 1;
    468     uint32_t _flag_k = FK_NONE;
    469     uint32_t _flag_a = 0, _flag_b = 0;
    470     uint32_t _itail_tgt = 0;
    471     RECOMP_REGS_LOCALS
    472     RECOMP_ENTER(0x30005DC0u);
    473 
    474 L_30005DC0:
    475     PUSH32(esp, ebp); /* 0x30005DC0: push ebp */
    476     ebp = esp; /* 0x30005DC1: mov ebp, esp */
    477     eax = ecx; /* 0x30005DC3: mov eax, ecx */
    478     ecx = MEM32(ebp + 0x8); /* 0x30005DC5: mov ecx, dword ptr [ebp + 8] */
    479     /* cmp eax, ecx */ /* 0x30005DC8: cmp eax, ecx */
    480     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    481     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    482     _flag_k = FK_CMP;
    483     if (CMP_EQ(_flag_a, _flag_b)) goto L_30005DD6; /* 0x30005DCA: je 0x30005dd6 */
    484 L_30005DCC:
    485     edx = MEM32(ecx); /* 0x30005DCC: mov edx, dword ptr [ecx] */
    486     MEM32(eax) = edx; /* 0x30005DCE: mov dword ptr [eax], edx */
    487     ecx = MEM32(ecx + 0x4); /* 0x30005DD0: mov ecx, dword ptr [ecx + 4] */
    488     MEM32(eax + 0x4) = ecx; /* 0x30005DD3: mov dword ptr [eax + 4], ecx */
    489 L_30005DD6:
    490     ecx = MEM32(ebp + 0xC); /* 0x30005DD6: mov ecx, dword ptr [ebp + 0xc] */
    491     PUSH32(esp, esi); /* 0x30005DD9: push esi */
    492     esi = MEM32(ecx); /* 0x30005DDA: mov esi, dword ptr [ecx] */
    493     edx = eax + 0x8; /* 0x30005DDC: lea edx, [eax + 8] */
    494     MEM32(edx) = esi; /* 0x30005DDF: mov dword ptr [edx], esi */
    495     esi = MEM32(ecx + 0x4); /* 0x30005DE1: mov esi, dword ptr [ecx + 4] */
    496     MEM32(edx + 0x4) = esi; /* 0x30005DE4: mov dword ptr [edx + 4], esi */
    497     ecx = MEM32(ecx + 0x8); /* 0x30005DE7: mov ecx, dword ptr [ecx + 8] */
    498     MEM32(edx + 0x8) = ecx; /* 0x30005DEA: mov dword ptr [edx + 8], ecx */
    499     esi = POP32_VAL(esp); /* 0x30005DED: pop esi */
    500     ebp = POP32_VAL(esp); /* 0x30005DEE: pop ebp */
    501     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30005DEF: ret 8 */
    502     RECOMP_REGS_OUT();
    503 }
    504 
    505 void sub_30005E00(void) {
    506     int _fpu_cmp = 0;
    507     uint32_t _cf = 0;
    508     int _df = 1;
    509     uint32_t _flag_k = FK_NONE;
    510     uint32_t _flag_a = 0, _flag_b = 0;
    511     uint32_t _itail_tgt = 0;
    512     RECOMP_REGS_LOCALS
    513     RECOMP_ENTER(0x30005E00u);
    514 
    515 L_30005E00:
    516     RECOMP_ICALL(0x30005E10u); /* 0x30005E00: call 0x30005e10 */ /* not lifted */
    517     RECOMP_FLAGS_IN();
    518     goto L_30005E20; /* 0x30005E05: jmp 0x30005e20 */
    519 L_30005E20:
    520     PUSH32(esp, 0x30005E30u); /* 0x30005E20: push 0x30005e30 */
    521     RECOMP_ICALL(0x300180ECu); /* 0x30005E25: call 0x300180ec */ /* not lifted */
    522     RECOMP_FLAGS_IN();
    523     ecx = POP32_VAL(esp); /* 0x30005E2A: pop ecx */
    524     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005E2B: ret  */
    525     RECOMP_REGS_OUT();
    526 }
    527 
    528 void sub_30005E10(void) {
    529     int _fpu_cmp = 0;
    530     uint32_t _cf = 0;
    531     int _df = 1;
    532     uint32_t _flag_k = FK_NONE;
    533     uint32_t _flag_a = 0, _flag_b = 0;
    534     uint32_t _itail_tgt = 0;
    535     RECOMP_REGS_LOCALS
    536     RECOMP_ENTER(0x30005E10u);
    537 
    538 L_30005E10:
    539     ecx = 0x3001E3C5u; /* 0x30005E10: mov ecx, 0x3001e3c5 */
    540 L_30005E15:
    541     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
    542     { RECOMP_REGS_OUT(); return; } /* end of function */
    543   _ljump:
    544     switch (_itail_tgt) {
    545       case 0x30005E10u: goto L_30005E10;
    546       case 0x30005E15u: goto L_30005E15;
    547       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    548     }
    549     RECOMP_REGS_OUT();
    550 }
    551 
    552 void sub_30005E20(void) {
    553     int _fpu_cmp = 0;
    554     uint32_t _cf = 0;
    555     int _df = 1;
    556     uint32_t _flag_k = FK_NONE;
    557     uint32_t _flag_a = 0, _flag_b = 0;
    558     uint32_t _itail_tgt = 0;
    559     RECOMP_REGS_LOCALS
    560     RECOMP_ENTER(0x30005E20u);
    561 
    562 L_30005E20:
    563     PUSH32(esp, 0x30005E30u); /* 0x30005E20: push 0x30005e30 */
    564     RECOMP_ICALL(0x300180ECu); /* 0x30005E25: call 0x300180ec */ /* not lifted */
    565     RECOMP_FLAGS_IN();
    566     ecx = POP32_VAL(esp); /* 0x30005E2A: pop ecx */
    567     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005E2B: ret  */
    568     RECOMP_REGS_OUT();
    569 }
    570 
    571 void sub_30005E30(void) {
    572     int _fpu_cmp = 0;
    573     uint32_t _cf = 0;
    574     int _df = 1;
    575     uint32_t _flag_k = FK_NONE;
    576     uint32_t _flag_a = 0, _flag_b = 0;
    577     uint32_t _itail_tgt = 0;
    578     RECOMP_REGS_LOCALS
    579     RECOMP_ENTER(0x30005E30u);
    580 
    581 L_30005E30:
    582     ecx = 0x3001E3C5u; /* 0x30005E30: mov ecx, 0x3001e3c5 */
    583 L_30005E35:
    584     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
    585     { RECOMP_REGS_OUT(); return; } /* end of function */
    586   _ljump:
    587     switch (_itail_tgt) {
    588       case 0x30005E30u: goto L_30005E30;
    589       case 0x30005E35u: goto L_30005E35;
    590       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    591     }
    592     RECOMP_REGS_OUT();
    593 }
    594 
    595 void sub_30005E40(void) {
    596     int _fpu_cmp = 0;
    597     uint32_t _cf = 0;
    598     int _df = 1;
    599     uint32_t _flag_k = FK_NONE;
    600     uint32_t _flag_a = 0, _flag_b = 0;
    601     uint32_t _itail_tgt = 0;
    602     RECOMP_REGS_LOCALS
    603     RECOMP_ENTER(0x30005E40u);
    604 
    605 L_30005E40:
    606     RECOMP_ICALL(0x30005E50u); /* 0x30005E40: call 0x30005e50 */ /* not lifted */
    607     RECOMP_FLAGS_IN();
    608     goto L_30005E60; /* 0x30005E45: jmp 0x30005e60 */
    609 L_30005E60:
    610     PUSH32(esp, 0x30005E70u); /* 0x30005E60: push 0x30005e70 */
    611     RECOMP_ICALL(0x300180ECu); /* 0x30005E65: call 0x300180ec */ /* not lifted */
    612     RECOMP_FLAGS_IN();
    613     ecx = POP32_VAL(esp); /* 0x30005E6A: pop ecx */
    614     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005E6B: ret  */
    615     RECOMP_REGS_OUT();
    616 }
    617 
    618 void sub_30005E50(void) {
    619     int _fpu_cmp = 0;
    620     uint32_t _cf = 0;
    621     int _df = 1;
    622     uint32_t _flag_k = FK_NONE;
    623     uint32_t _flag_a = 0, _flag_b = 0;
    624     uint32_t _itail_tgt = 0;
    625     RECOMP_REGS_LOCALS
    626     RECOMP_ENTER(0x30005E50u);
    627 
    628 L_30005E50:
    629     ecx = 0x3001E3C4u; /* 0x30005E50: mov ecx, 0x3001e3c4 */
    630 L_30005E55:
    631     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
    632     { RECOMP_REGS_OUT(); return; } /* end of function */
    633   _ljump:
    634     switch (_itail_tgt) {
    635       case 0x30005E50u: goto L_30005E50;
    636       case 0x30005E55u: goto L_30005E55;
    637       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    638     }
    639     RECOMP_REGS_OUT();
    640 }
    641 
    642 void sub_30005E60(void) {
    643     int _fpu_cmp = 0;
    644     uint32_t _cf = 0;
    645     int _df = 1;
    646     uint32_t _flag_k = FK_NONE;
    647     uint32_t _flag_a = 0, _flag_b = 0;
    648     uint32_t _itail_tgt = 0;
    649     RECOMP_REGS_LOCALS
    650     RECOMP_ENTER(0x30005E60u);
    651 
    652 L_30005E60:
    653     PUSH32(esp, 0x30005E70u); /* 0x30005E60: push 0x30005e70 */
    654     RECOMP_ICALL(0x300180ECu); /* 0x30005E65: call 0x300180ec */ /* not lifted */
    655     RECOMP_FLAGS_IN();
    656     ecx = POP32_VAL(esp); /* 0x30005E6A: pop ecx */
    657     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005E6B: ret  */
    658     RECOMP_REGS_OUT();
    659 }
    660 
    661 void sub_30005E70(void) {
    662     int _fpu_cmp = 0;
    663     uint32_t _cf = 0;
    664     int _df = 1;
    665     uint32_t _flag_k = FK_NONE;
    666     uint32_t _flag_a = 0, _flag_b = 0;
    667     uint32_t _itail_tgt = 0;
    668     RECOMP_REGS_LOCALS
    669     RECOMP_ENTER(0x30005E70u);
    670 
    671 L_30005E70:
    672     ecx = 0x3001E3C4u; /* 0x30005E70: mov ecx, 0x3001e3c4 */
    673 L_30005E75:
    674     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
    675     { RECOMP_REGS_OUT(); return; } /* end of function */
    676   _ljump:
    677     switch (_itail_tgt) {
    678       case 0x30005E70u: goto L_30005E70;
    679       case 0x30005E75u: goto L_30005E75;
    680       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    681     }
    682     RECOMP_REGS_OUT();
    683 }
    684 
    685 void sub_30005E80(void) {
    686     int _fpu_cmp = 0;
    687     uint32_t _cf = 0;
    688     int _df = 1;
    689     uint32_t _flag_k = FK_NONE;
    690     uint32_t _flag_a = 0, _flag_b = 0;
    691     uint32_t _itail_tgt = 0;
    692     RECOMP_REGS_LOCALS
    693     RECOMP_ENTER(0x30005E80u);
    694 
    695 L_30005E80:
    696     SET_LO8(eax, 1); /* 0x30005E80: mov al, 1 */
    697     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005E82: ret  */
    698     RECOMP_REGS_OUT();
    699 }
    700 
    701 void sub_30005E90(void) {
    702     int _fpu_cmp = 0;
    703     uint32_t _cf = 0;
    704     int _df = 1;
    705     uint32_t _flag_k = FK_NONE;
    706     uint32_t _flag_a = 0, _flag_b = 0;
    707     uint32_t _itail_tgt = 0;
    708     RECOMP_REGS_LOCALS
    709     RECOMP_ENTER(0x30005E90u);
    710 
    711 L_30005E90:
    712     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    713     eax = 0; /* 0x30005E90: xor eax, eax */
    714     _cf = 0;
    715     _flag_k = FK_TEST;
    716     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005E92: ret  */
    717     RECOMP_REGS_OUT();
    718 }
    719 
    720 void sub_30005EA0(void) {
    721     int _fpu_cmp = 0;
    722     uint32_t _cf = 0;
    723     int _df = 1;
    724     uint32_t _flag_k = FK_NONE;
    725     uint32_t _flag_a = 0, _flag_b = 0;
    726     uint32_t _itail_tgt = 0;
    727     RECOMP_REGS_LOCALS
    728     RECOMP_ENTER(0x30005EA0u);
    729 
    730 L_30005EA0:
    731     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005EA0: ret 4 */
    732     RECOMP_REGS_OUT();
    733 }
    734 
    735 void sub_30005EB0(void) {
    736     int _fpu_cmp = 0;
    737     uint32_t _cf = 0;
    738     int _df = 1;
    739     uint32_t _flag_k = FK_NONE;
    740     uint32_t _flag_a = 0, _flag_b = 0;
    741     uint32_t _itail_tgt = 0;
    742     RECOMP_REGS_LOCALS
    743     RECOMP_ENTER(0x30005EB0u);
    744 
    745 L_30005EB0:
    746     PUSH32(esp, ebp); /* 0x30005EB0: push ebp */
    747     ebp = esp; /* 0x30005EB1: mov ebp, esp */
    748     eax = ecx; /* 0x30005EB3: mov eax, ecx */
    749     ecx = MEM32(ebp + 0x8); /* 0x30005EB5: mov ecx, dword ptr [ebp + 8] */
    750     PUSH32(esp, esi); /* 0x30005EB8: push esi */
    751     MEM32(eax) = 0x300191ACu; /* 0x30005EB9: mov dword ptr [eax], 0x300191ac */
    752     edx = ecx + 0x4; /* 0x30005EBF: lea edx, [ecx + 4] */
    753     PUSH32(esp, edi); /* 0x30005EC2: push edi */
    754     edi = MEM32(edx); /* 0x30005EC3: mov edi, dword ptr [edx] */
    755     esi = eax + 0x4; /* 0x30005EC5: lea esi, [eax + 4] */
    756     MEM32(esi) = edi; /* 0x30005EC8: mov dword ptr [esi], edi */
    757     edi = MEM32(edx + 0x4); /* 0x30005ECA: mov edi, dword ptr [edx + 4] */
    758     MEM32(esi + 0x4) = edi; /* 0x30005ECD: mov dword ptr [esi + 4], edi */
    759     edx = MEM32(edx + 0x8); /* 0x30005ED0: mov edx, dword ptr [edx + 8] */
    760     MEM32(esi + 0x8) = edx; /* 0x30005ED3: mov dword ptr [esi + 8], edx */
    761     edx = MEM32(ecx + 0x10); /* 0x30005ED6: mov edx, dword ptr [ecx + 0x10] */
    762     MEM32(eax + 0x10) = edx; /* 0x30005ED9: mov dword ptr [eax + 0x10], edx */
    763     edx = MEM32(ecx + 0x14); /* 0x30005EDC: mov edx, dword ptr [ecx + 0x14] */
    764     MEM32(eax + 0x14) = edx; /* 0x30005EDF: mov dword ptr [eax + 0x14], edx */
    765     MEM32(eax) = 0x300191C0u; /* 0x30005EE2: mov dword ptr [eax], 0x300191c0 */
    766     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
    767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    768     ecx = ecx + 0x18u; /* 0x30005EE8: add ecx, 0x18 */
    769     _flag_k = FK_ADD;
    770     esi = MEM32(ecx); /* 0x30005EEB: mov esi, dword ptr [ecx] */
    771     edx = eax + 0x18; /* 0x30005EED: lea edx, [eax + 0x18] */
    772     MEM32(edx) = esi; /* 0x30005EF0: mov dword ptr [edx], esi */
    773     esi = MEM32(ecx + 0x4); /* 0x30005EF2: mov esi, dword ptr [ecx + 4] */
    774     MEM32(edx + 0x4) = esi; /* 0x30005EF5: mov dword ptr [edx + 4], esi */
    775     ecx = MEM32(ecx + 0x8); /* 0x30005EF8: mov ecx, dword ptr [ecx + 8] */
    776     edi = POP32_VAL(esp); /* 0x30005EFB: pop edi */
    777     MEM32(edx + 0x8) = ecx; /* 0x30005EFC: mov dword ptr [edx + 8], ecx */
    778     MEM32(eax) = 0x300191F0u; /* 0x30005EFF: mov dword ptr [eax], 0x300191f0 */
    779     esi = POP32_VAL(esp); /* 0x30005F05: pop esi */
    780     ebp = POP32_VAL(esp); /* 0x30005F06: pop ebp */
    781     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005F07: ret 4 */
    782     RECOMP_REGS_OUT();
    783 }
    784 
    785 void sub_30005F10(void) {
    786     int _fpu_cmp = 0;
    787     uint32_t _cf = 0;
    788     int _df = 1;
    789     uint32_t _flag_k = FK_NONE;
    790     uint32_t _flag_a = 0, _flag_b = 0;
    791     uint32_t _itail_tgt = 0;
    792     RECOMP_REGS_LOCALS
    793     RECOMP_ENTER(0x30005F10u);
    794 
    795 L_30005F10:
    796     PUSH32(esp, ebp); /* 0x30005F10: push ebp */
    797     ebp = esp; /* 0x30005F11: mov ebp, esp */
    798     eax = ecx; /* 0x30005F13: mov eax, ecx */
    799     ecx = MEM32(ebp + 0x8); /* 0x30005F15: mov ecx, dword ptr [ebp + 8] */
    800     PUSH32(esp, esi); /* 0x30005F18: push esi */
    801     edx = ecx + 0x4; /* 0x30005F19: lea edx, [ecx + 4] */
    802     PUSH32(esp, edi); /* 0x30005F1C: push edi */
    803     edi = MEM32(edx); /* 0x30005F1D: mov edi, dword ptr [edx] */
    804     esi = eax + 0x4; /* 0x30005F1F: lea esi, [eax + 4] */
    805     MEM32(esi) = edi; /* 0x30005F22: mov dword ptr [esi], edi */
    806     edi = MEM32(edx + 0x4); /* 0x30005F24: mov edi, dword ptr [edx + 4] */
    807     MEM32(esi + 0x4) = edi; /* 0x30005F27: mov dword ptr [esi + 4], edi */
    808     edx = MEM32(edx + 0x8); /* 0x30005F2A: mov edx, dword ptr [edx + 8] */
    809     MEM32(esi + 0x8) = edx; /* 0x30005F2D: mov dword ptr [esi + 8], edx */
    810     edx = MEM32(ecx + 0x10); /* 0x30005F30: mov edx, dword ptr [ecx + 0x10] */
    811     MEM32(eax + 0x10) = edx; /* 0x30005F33: mov dword ptr [eax + 0x10], edx */
    812     edx = MEM32(ecx + 0x14); /* 0x30005F36: mov edx, dword ptr [ecx + 0x14] */
    813     MEM32(eax + 0x14) = edx; /* 0x30005F39: mov dword ptr [eax + 0x14], edx */
    814     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
    815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    816     ecx = ecx + 0x18u; /* 0x30005F3C: add ecx, 0x18 */
    817     _flag_k = FK_ADD;
    818     esi = MEM32(ecx); /* 0x30005F3F: mov esi, dword ptr [ecx] */
    819     edx = eax + 0x18; /* 0x30005F41: lea edx, [eax + 0x18] */
    820     MEM32(edx) = esi; /* 0x30005F44: mov dword ptr [edx], esi */
    821     esi = MEM32(ecx + 0x4); /* 0x30005F46: mov esi, dword ptr [ecx + 4] */
    822     MEM32(edx + 0x4) = esi; /* 0x30005F49: mov dword ptr [edx + 4], esi */
    823     ecx = MEM32(ecx + 0x8); /* 0x30005F4C: mov ecx, dword ptr [ecx + 8] */
    824     edi = POP32_VAL(esp); /* 0x30005F4F: pop edi */
    825     MEM32(edx + 0x8) = ecx; /* 0x30005F50: mov dword ptr [edx + 8], ecx */
    826     esi = POP32_VAL(esp); /* 0x30005F53: pop esi */
    827     ebp = POP32_VAL(esp); /* 0x30005F54: pop ebp */
    828     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005F55: ret 4 */
    829     RECOMP_REGS_OUT();
    830 }
    831 
    832 void sub_30005F60(void) {
    833     int _fpu_cmp = 0;
    834     uint32_t _cf = 0;
    835     int _df = 1;
    836     uint32_t _flag_k = FK_NONE;
    837     uint32_t _flag_a = 0, _flag_b = 0;
    838     uint32_t _itail_tgt = 0;
    839     RECOMP_REGS_LOCALS
    840     RECOMP_ENTER(0x30005F60u);
    841 
    842 L_30005F60:
    843     PUSH32(esp, ebp); /* 0x30005F60: push ebp */
    844     ebp = esp; /* 0x30005F61: mov ebp, esp */
    845     PUSH32(esp, ebx); /* 0x30005F63: push ebx */
    846     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x30005F64: mov bl, byte ptr [ebp + 8] */
    847     /* test LO8(ebx), 2 */ /* 0x30005F67: test bl, 2 */
    848     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    849     _cf = 0;
    850     _flag_k = FK_NARROW(FK_TEST, 24);
    851     PUSH32(esp, esi); /* 0x30005F6A: push esi */
    852     esi = ecx; /* 0x30005F6B: mov esi, ecx */
    853     if (TEST_Z(_flag_a, _flag_b)) goto L_30005F9B; /* 0x30005F6D: je 0x30005f9b */
    854 L_30005F6F:
    855     eax = MEM32(esi + (-0x4)); /* 0x30005F6F: mov eax, dword ptr [esi - 4] */
    856     PUSH32(esp, edi); /* 0x30005F72: push edi */
    857     PUSH32(esp, 0x30005FE0u); /* 0x30005F73: push 0x30005fe0 */
    858     edi = esi + (-0x4); /* 0x30005F78: lea edi, [esi - 4] */
    859     PUSH32(esp, eax); /* 0x30005F7B: push eax */
    860     PUSH32(esp, 0x24u); /* 0x30005F7C: push 0x24 */
    861     PUSH32(esp, esi); /* 0x30005F7E: push esi */
    862     RECOMP_ICALL(0x300180FEu); /* 0x30005F7F: call 0x300180fe */ /* not lifted */
    863     RECOMP_FLAGS_IN();
    864     /* test LO8(ebx), 1 */ /* 0x30005F84: test bl, 1 */
    865     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    866     _cf = 0;
    867     _flag_k = FK_NARROW(FK_TEST, 24);
    868     if (TEST_Z(_flag_a, _flag_b)) goto L_30005F92; /* 0x30005F87: je 0x30005f92 */
    869 L_30005F89:
    870     PUSH32(esp, edi); /* 0x30005F89: push edi */
    871     RECOMP_ICALL(0x30018080u); /* 0x30005F8A: call 0x30018080 */ /* not lifted */
    872     RECOMP_FLAGS_IN();
    873     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    875     esp = esp + 4; /* 0x30005F8F: add esp, 4 */
    876     _flag_k = FK_ADD;
    877 L_30005F92:
    878     eax = edi; /* 0x30005F92: mov eax, edi */
    879     edi = POP32_VAL(esp); /* 0x30005F94: pop edi */
    880     esi = POP32_VAL(esp); /* 0x30005F95: pop esi */
    881     ebx = POP32_VAL(esp); /* 0x30005F96: pop ebx */
    882     ebp = POP32_VAL(esp); /* 0x30005F97: pop ebp */
    883     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005F98: ret 4 */
    884 L_30005F9B:
    885     ecx = esi; /* 0x30005F9B: mov ecx, esi */
    886     RECOMP_ICALL(0x30005FE0u); /* 0x30005F9D: call 0x30005fe0 */ /* not lifted */
    887     RECOMP_FLAGS_IN();
    888     /* test LO8(ebx), 1 */ /* 0x30005FA2: test bl, 1 */
    889     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    890     _cf = 0;
    891     _flag_k = FK_NARROW(FK_TEST, 24);
    892     if (TEST_Z(_flag_a, _flag_b)) goto L_30005FB0; /* 0x30005FA5: je 0x30005fb0 */
    893 L_30005FA7:
    894     PUSH32(esp, esi); /* 0x30005FA7: push esi */
    895     RECOMP_ICALL(0x30018080u); /* 0x30005FA8: call 0x30018080 */ /* not lifted */
    896     RECOMP_FLAGS_IN();
    897     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    898     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    899     esp = esp + 4; /* 0x30005FAD: add esp, 4 */
    900     _flag_k = FK_ADD;
    901 L_30005FB0:
    902     eax = esi; /* 0x30005FB0: mov eax, esi */
    903     esi = POP32_VAL(esp); /* 0x30005FB2: pop esi */
    904     ebx = POP32_VAL(esp); /* 0x30005FB3: pop ebx */
    905     ebp = POP32_VAL(esp); /* 0x30005FB4: pop ebp */
    906     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005FB5: ret 4 */
    907     RECOMP_REGS_OUT();
    908 }
    909 
    910 void sub_30005FC0(void) {
    911     int _fpu_cmp = 0;
    912     uint32_t _cf = 0;
    913     int _df = 1;
    914     uint32_t _flag_k = FK_NONE;
    915     uint32_t _flag_a = 0, _flag_b = 0;
    916     uint32_t _itail_tgt = 0;
    917     RECOMP_REGS_LOCALS
    918     RECOMP_ENTER(0x30005FC0u);
    919 
    920 L_30005FC0:
    921     PUSH32(esp, esi); /* 0x30005FC0: push esi */
    922     esi = ecx; /* 0x30005FC1: mov esi, ecx */
    923     PUSH32(esp, 3); /* 0x30005FC3: push 3 */
    924     RECOMP_ICALL(0x30006420u); /* 0x30005FC5: call 0x30006420 */ /* not lifted */
    925     RECOMP_FLAGS_IN();
    926     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    927     eax = 0; /* 0x30005FCA: xor eax, eax */
    928     _cf = 0;
    929     _flag_k = FK_TEST;
    930     MEM32(esi + 0x18) = eax; /* 0x30005FCC: mov dword ptr [esi + 0x18], eax */
    931     MEM32(esi + 0x1C) = eax; /* 0x30005FCF: mov dword ptr [esi + 0x1c], eax */
    932     MEM32(esi + 0x20) = eax; /* 0x30005FD2: mov dword ptr [esi + 0x20], eax */
    933     MEM32(esi) = 0x300191F0u; /* 0x30005FD5: mov dword ptr [esi], 0x300191f0 */
    934     eax = esi; /* 0x30005FDB: mov eax, esi */
    935     esi = POP32_VAL(esp); /* 0x30005FDD: pop esi */
    936     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005FDE: ret  */
    937     RECOMP_REGS_OUT();
    938 }
    939 
    940 void sub_30005FE0(void) {
    941     int _fpu_cmp = 0;
    942     uint32_t _cf = 0;
    943     int _df = 1;
    944     uint32_t _flag_k = FK_NONE;
    945     uint32_t _flag_a = 0, _flag_b = 0;
    946     uint32_t _itail_tgt = 0;
    947     RECOMP_REGS_LOCALS
    948     RECOMP_ENTER(0x30005FE0u);
    949 
    950 L_30005FE0:
    951     MEM32(ecx) = 0x300191F0u; /* 0x30005FE0: mov dword ptr [ecx], 0x300191f0 */
    952     goto L_30006450; /* 0x30005FE6: jmp 0x30006450 */
    953 L_30006450:
    954     MEM32(ecx) = 0x300191C0u; /* 0x30006450: mov dword ptr [ecx], 0x300191c0 */
    955     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006456: ret  */
    956     RECOMP_REGS_OUT();
    957 }
    958 
    959 void sub_30005FF0(void) {
    960     int _fpu_cmp = 0;
    961     uint32_t _cf = 0;
    962     int _df = 1;
    963     uint32_t _flag_k = FK_NONE;
    964     uint32_t _flag_a = 0, _flag_b = 0;
    965     uint32_t _itail_tgt = 0;
    966     RECOMP_REGS_LOCALS
    967     RECOMP_ENTER(0x30005FF0u);
    968 
    969 L_30005FF0:
    970     RECOMP_ICALL(0x30006000u); /* 0x30005FF0: call 0x30006000 */ /* not lifted */
    971     RECOMP_FLAGS_IN();
    972     goto L_30006010; /* 0x30005FF5: jmp 0x30006010 */
    973 L_30006010:
    974     PUSH32(esp, 0x30006020u); /* 0x30006010: push 0x30006020 */
    975     RECOMP_ICALL(0x300180ECu); /* 0x30006015: call 0x300180ec */ /* not lifted */
    976     RECOMP_FLAGS_IN();
    977     ecx = POP32_VAL(esp); /* 0x3000601A: pop ecx */
    978     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000601B: ret  */
    979     RECOMP_REGS_OUT();
    980 }
    981 
    982 void sub_30006000(void) {
    983     int _fpu_cmp = 0;
    984     uint32_t _cf = 0;
    985     int _df = 1;
    986     uint32_t _flag_k = FK_NONE;
    987     uint32_t _flag_a = 0, _flag_b = 0;
    988     uint32_t _itail_tgt = 0;
    989     RECOMP_REGS_LOCALS
    990     RECOMP_ENTER(0x30006000u);
    991 
    992 L_30006000:
    993     ecx = 0x3001E3C9u; /* 0x30006000: mov ecx, 0x3001e3c9 */
    994 L_30006005:
    995     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
    996     { RECOMP_REGS_OUT(); return; } /* end of function */
    997   _ljump:
    998     switch (_itail_tgt) {
    999       case 0x30006000u: goto L_30006000;
   1000       case 0x30006005u: goto L_30006005;
   1001       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1002     }
   1003     RECOMP_REGS_OUT();
   1004 }
   1005 
   1006 void sub_30006010(void) {
   1007     int _fpu_cmp = 0;
   1008     uint32_t _cf = 0;
   1009     int _df = 1;
   1010     uint32_t _flag_k = FK_NONE;
   1011     uint32_t _flag_a = 0, _flag_b = 0;
   1012     uint32_t _itail_tgt = 0;
   1013     RECOMP_REGS_LOCALS
   1014     RECOMP_ENTER(0x30006010u);
   1015 
   1016 L_30006010:
   1017     PUSH32(esp, 0x30006020u); /* 0x30006010: push 0x30006020 */
   1018     RECOMP_ICALL(0x300180ECu); /* 0x30006015: call 0x300180ec */ /* not lifted */
   1019     RECOMP_FLAGS_IN();
   1020     ecx = POP32_VAL(esp); /* 0x3000601A: pop ecx */
   1021     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000601B: ret  */
   1022     RECOMP_REGS_OUT();
   1023 }
   1024 
   1025 void sub_30006020(void) {
   1026     int _fpu_cmp = 0;
   1027     uint32_t _cf = 0;
   1028     int _df = 1;
   1029     uint32_t _flag_k = FK_NONE;
   1030     uint32_t _flag_a = 0, _flag_b = 0;
   1031     uint32_t _itail_tgt = 0;
   1032     RECOMP_REGS_LOCALS
   1033     RECOMP_ENTER(0x30006020u);
   1034 
   1035 L_30006020:
   1036     ecx = 0x3001E3C9u; /* 0x30006020: mov ecx, 0x3001e3c9 */
   1037 L_30006025:
   1038     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
   1039     { RECOMP_REGS_OUT(); return; } /* end of function */
   1040   _ljump:
   1041     switch (_itail_tgt) {
   1042       case 0x30006020u: goto L_30006020;
   1043       case 0x30006025u: goto L_30006025;
   1044       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1045     }
   1046     RECOMP_REGS_OUT();
   1047 }
   1048 
   1049 void sub_30006030(void) {
   1050     int _fpu_cmp = 0;
   1051     uint32_t _cf = 0;
   1052     int _df = 1;
   1053     uint32_t _flag_k = FK_NONE;
   1054     uint32_t _flag_a = 0, _flag_b = 0;
   1055     uint32_t _itail_tgt = 0;
   1056     RECOMP_REGS_LOCALS
   1057     RECOMP_ENTER(0x30006030u);
   1058 
   1059 L_30006030:
   1060     RECOMP_ICALL(0x30006040u); /* 0x30006030: call 0x30006040 */ /* not lifted */
   1061     RECOMP_FLAGS_IN();
   1062     goto L_30006050; /* 0x30006035: jmp 0x30006050 */
   1063 L_30006050:
   1064     PUSH32(esp, 0x30006060u); /* 0x30006050: push 0x30006060 */
   1065     RECOMP_ICALL(0x300180ECu); /* 0x30006055: call 0x300180ec */ /* not lifted */
   1066     RECOMP_FLAGS_IN();
   1067     ecx = POP32_VAL(esp); /* 0x3000605A: pop ecx */
   1068     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000605B: ret  */
   1069     RECOMP_REGS_OUT();
   1070 }
   1071 
   1072 void sub_30006040(void) {
   1073     int _fpu_cmp = 0;
   1074     uint32_t _cf = 0;
   1075     int _df = 1;
   1076     uint32_t _flag_k = FK_NONE;
   1077     uint32_t _flag_a = 0, _flag_b = 0;
   1078     uint32_t _itail_tgt = 0;
   1079     RECOMP_REGS_LOCALS
   1080     RECOMP_ENTER(0x30006040u);
   1081 
   1082 L_30006040:
   1083     ecx = 0x3001E3C8u; /* 0x30006040: mov ecx, 0x3001e3c8 */
   1084 L_30006045:
   1085     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
   1086     { RECOMP_REGS_OUT(); return; } /* end of function */
   1087   _ljump:
   1088     switch (_itail_tgt) {
   1089       case 0x30006040u: goto L_30006040;
   1090       case 0x30006045u: goto L_30006045;
   1091       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1092     }
   1093     RECOMP_REGS_OUT();
   1094 }
   1095 
   1096 void sub_30006050(void) {
   1097     int _fpu_cmp = 0;
   1098     uint32_t _cf = 0;
   1099     int _df = 1;
   1100     uint32_t _flag_k = FK_NONE;
   1101     uint32_t _flag_a = 0, _flag_b = 0;
   1102     uint32_t _itail_tgt = 0;
   1103     RECOMP_REGS_LOCALS
   1104     RECOMP_ENTER(0x30006050u);
   1105 
   1106 L_30006050:
   1107     PUSH32(esp, 0x30006060u); /* 0x30006050: push 0x30006060 */
   1108     RECOMP_ICALL(0x300180ECu); /* 0x30006055: call 0x300180ec */ /* not lifted */
   1109     RECOMP_FLAGS_IN();
   1110     ecx = POP32_VAL(esp); /* 0x3000605A: pop ecx */
   1111     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000605B: ret  */
   1112     RECOMP_REGS_OUT();
   1113 }
   1114 
   1115 void sub_30006060(void) {
   1116     int _fpu_cmp = 0;
   1117     uint32_t _cf = 0;
   1118     int _df = 1;
   1119     uint32_t _flag_k = FK_NONE;
   1120     uint32_t _flag_a = 0, _flag_b = 0;
   1121     uint32_t _itail_tgt = 0;
   1122     RECOMP_REGS_LOCALS
   1123     RECOMP_ENTER(0x30006060u);
   1124 
   1125 L_30006060:
   1126     ecx = 0x3001E3C8u; /* 0x30006060: mov ecx, 0x3001e3c8 */
   1127 L_30006065:
   1128     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
   1129     { RECOMP_REGS_OUT(); return; } /* end of function */
   1130   _ljump:
   1131     switch (_itail_tgt) {
   1132       case 0x30006060u: goto L_30006060;
   1133       case 0x30006065u: goto L_30006065;
   1134       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1135     }
   1136     RECOMP_REGS_OUT();
   1137 }
   1138 
   1139 void sub_30006070(void) {
   1140     int _fpu_cmp = 0;
   1141     uint32_t _cf = 0;
   1142     int _df = 1;
   1143     uint32_t _flag_k = FK_NONE;
   1144     uint32_t _flag_a = 0, _flag_b = 0;
   1145     uint32_t _itail_tgt = 0;
   1146     RECOMP_REGS_LOCALS
   1147     RECOMP_ENTER(0x30006070u);
   1148 
   1149 L_30006070:
   1150     PUSH32(esp, ebp); /* 0x30006070: push ebp */
   1151     ebp = esp; /* 0x30006071: mov ebp, esp */
   1152     PUSH32(esp, esi); /* 0x30006073: push esi */
   1153     eax = ecx; /* 0x30006074: mov eax, ecx */
   1154     ecx = MEM32(ebp + 0x8); /* 0x30006076: mov ecx, dword ptr [ebp + 8] */
   1155     MEM32(eax) = 0x300191ACu; /* 0x30006079: mov dword ptr [eax], 0x300191ac */
   1156     PUSH32(esp, edi); /* 0x3000607F: push edi */
   1157     edx = ecx + 0x4; /* 0x30006080: lea edx, [ecx + 4] */
   1158     edi = MEM32(edx); /* 0x30006083: mov edi, dword ptr [edx] */
   1159     esi = eax + 0x4; /* 0x30006085: lea esi, [eax + 4] */
   1160     MEM32(esi) = edi; /* 0x30006088: mov dword ptr [esi], edi */
   1161     edi = MEM32(edx + 0x4); /* 0x3000608A: mov edi, dword ptr [edx + 4] */
   1162     MEM32(esi + 0x4) = edi; /* 0x3000608D: mov dword ptr [esi + 4], edi */
   1163     edx = MEM32(edx + 0x8); /* 0x30006090: mov edx, dword ptr [edx + 8] */
   1164     MEM32(esi + 0x8) = edx; /* 0x30006093: mov dword ptr [esi + 8], edx */
   1165     edx = MEM32(ecx + 0x10); /* 0x30006096: mov edx, dword ptr [ecx + 0x10] */
   1166     MEM32(eax + 0x10) = edx; /* 0x30006099: mov dword ptr [eax + 0x10], edx */
   1167     edx = MEM32(ecx + 0x14); /* 0x3000609C: mov edx, dword ptr [ecx + 0x14] */
   1168     MEM32(eax + 0x14) = edx; /* 0x3000609F: mov dword ptr [eax + 0x14], edx */
   1169     MEM32(eax) = 0x300191C0u; /* 0x300060A2: mov dword ptr [eax], 0x300191c0 */
   1170     edx = ecx + 0x18; /* 0x300060A8: lea edx, [ecx + 0x18] */
   1171     edi = MEM32(edx); /* 0x300060AB: mov edi, dword ptr [edx] */
   1172     esi = eax + 0x18; /* 0x300060AD: lea esi, [eax + 0x18] */
   1173     MEM32(esi) = edi; /* 0x300060B0: mov dword ptr [esi], edi */
   1174     edi = MEM32(edx + 0x4); /* 0x300060B2: mov edi, dword ptr [edx + 4] */
   1175     MEM32(esi + 0x4) = edi; /* 0x300060B5: mov dword ptr [esi + 4], edi */
   1176     edx = MEM32(edx + 0x8); /* 0x300060B8: mov edx, dword ptr [edx + 8] */
   1177     MEM32(esi + 0x8) = edx; /* 0x300060BB: mov dword ptr [esi + 8], edx */
   1178     edx = ecx + 0x24; /* 0x300060BE: lea edx, [ecx + 0x24] */
   1179     edi = MEM32(edx); /* 0x300060C1: mov edi, dword ptr [edx] */
   1180     esi = eax + 0x24; /* 0x300060C3: lea esi, [eax + 0x24] */
   1181     MEM32(esi) = edi; /* 0x300060C6: mov dword ptr [esi], edi */
   1182     edi = MEM32(edx + 0x4); /* 0x300060C8: mov edi, dword ptr [edx + 4] */
   1183     MEM32(esi + 0x4) = edi; /* 0x300060CB: mov dword ptr [esi + 4], edi */
   1184     edx = MEM32(edx + 0x8); /* 0x300060CE: mov edx, dword ptr [edx + 8] */
   1185     MEM32(esi + 0x8) = edx; /* 0x300060D1: mov dword ptr [esi + 8], edx */
   1186     edx = ecx + 0x30; /* 0x300060D4: lea edx, [ecx + 0x30] */
   1187     edi = MEM32(edx); /* 0x300060D7: mov edi, dword ptr [edx] */
   1188     esi = eax + 0x30; /* 0x300060D9: lea esi, [eax + 0x30] */
   1189     MEM32(esi) = edi; /* 0x300060DC: mov dword ptr [esi], edi */
   1190     edi = MEM32(edx + 0x4); /* 0x300060DE: mov edi, dword ptr [edx + 4] */
   1191     MEM32(esi + 0x4) = edi; /* 0x300060E1: mov dword ptr [esi + 4], edi */
   1192     edx = MEM32(edx + 0x8); /* 0x300060E4: mov edx, dword ptr [edx + 8] */
   1193     MEM32(esi + 0x8) = edx; /* 0x300060E7: mov dword ptr [esi + 8], edx */
   1194     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3Cu);
   1195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1196     ecx = ecx + 0x3Cu; /* 0x300060EA: add ecx, 0x3c */
   1197     _flag_k = FK_ADD;
   1198     esi = MEM32(ecx); /* 0x300060ED: mov esi, dword ptr [ecx] */
   1199     edx = eax + 0x3C; /* 0x300060EF: lea edx, [eax + 0x3c] */
   1200     MEM32(edx) = esi; /* 0x300060F2: mov dword ptr [edx], esi */
   1201     esi = MEM32(ecx + 0x4); /* 0x300060F4: mov esi, dword ptr [ecx + 4] */
   1202     MEM32(edx + 0x4) = esi; /* 0x300060F7: mov dword ptr [edx + 4], esi */
   1203     ecx = MEM32(ecx + 0x8); /* 0x300060FA: mov ecx, dword ptr [ecx + 8] */
   1204     edi = POP32_VAL(esp); /* 0x300060FD: pop edi */
   1205     MEM32(edx + 0x8) = ecx; /* 0x300060FE: mov dword ptr [edx + 8], ecx */
   1206     MEM32(eax) = 0x30019208u; /* 0x30006101: mov dword ptr [eax], 0x30019208 */
   1207     esi = POP32_VAL(esp); /* 0x30006107: pop esi */
   1208     ebp = POP32_VAL(esp); /* 0x30006108: pop ebp */
   1209     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30006109: ret 4 */
   1210     RECOMP_REGS_OUT();
   1211 }
   1212 
   1213 void sub_30006110(void) {
   1214     int _fpu_cmp = 0;
   1215     uint32_t _cf = 0;
   1216     int _df = 1;
   1217     uint32_t _flag_k = FK_NONE;
   1218     uint32_t _flag_a = 0, _flag_b = 0;
   1219     uint32_t _itail_tgt = 0;
   1220     RECOMP_REGS_LOCALS
   1221     RECOMP_ENTER(0x30006110u);
   1222 
   1223 L_30006110:
   1224     PUSH32(esp, ebp); /* 0x30006110: push ebp */
   1225     ebp = esp; /* 0x30006111: mov ebp, esp */
   1226     PUSH32(esp, esi); /* 0x30006113: push esi */
   1227     eax = ecx; /* 0x30006114: mov eax, ecx */
   1228     ecx = MEM32(ebp + 0x8); /* 0x30006116: mov ecx, dword ptr [ebp + 8] */
   1229     PUSH32(esp, edi); /* 0x30006119: push edi */
   1230     edx = ecx + 0x4; /* 0x3000611A: lea edx, [ecx + 4] */
   1231     edi = MEM32(edx); /* 0x3000611D: mov edi, dword ptr [edx] */
   1232     esi = eax + 0x4; /* 0x3000611F: lea esi, [eax + 4] */
   1233     MEM32(esi) = edi; /* 0x30006122: mov dword ptr [esi], edi */
   1234     edi = MEM32(edx + 0x4); /* 0x30006124: mov edi, dword ptr [edx + 4] */
   1235     MEM32(esi + 0x4) = edi; /* 0x30006127: mov dword ptr [esi + 4], edi */
   1236     edx = MEM32(edx + 0x8); /* 0x3000612A: mov edx, dword ptr [edx + 8] */
   1237     MEM32(esi + 0x8) = edx; /* 0x3000612D: mov dword ptr [esi + 8], edx */
   1238     edx = MEM32(ecx + 0x10); /* 0x30006130: mov edx, dword ptr [ecx + 0x10] */
   1239     MEM32(eax + 0x10) = edx; /* 0x30006133: mov dword ptr [eax + 0x10], edx */
   1240     edx = MEM32(ecx + 0x14); /* 0x30006136: mov edx, dword ptr [ecx + 0x14] */
   1241     MEM32(eax + 0x14) = edx; /* 0x30006139: mov dword ptr [eax + 0x14], edx */
   1242     edx = ecx + 0x18; /* 0x3000613C: lea edx, [ecx + 0x18] */
   1243     edi = MEM32(edx); /* 0x3000613F: mov edi, dword ptr [edx] */
   1244     esi = eax + 0x18; /* 0x30006141: lea esi, [eax + 0x18] */
   1245     MEM32(esi) = edi; /* 0x30006144: mov dword ptr [esi], edi */
   1246     edi = MEM32(edx + 0x4); /* 0x30006146: mov edi, dword ptr [edx + 4] */
   1247     MEM32(esi + 0x4) = edi; /* 0x30006149: mov dword ptr [esi + 4], edi */
   1248     edx = MEM32(edx + 0x8); /* 0x3000614C: mov edx, dword ptr [edx + 8] */
   1249     MEM32(esi + 0x8) = edx; /* 0x3000614F: mov dword ptr [esi + 8], edx */
   1250     edx = ecx + 0x24; /* 0x30006152: lea edx, [ecx + 0x24] */
   1251     edi = MEM32(edx); /* 0x30006155: mov edi, dword ptr [edx] */
   1252     esi = eax + 0x24; /* 0x30006157: lea esi, [eax + 0x24] */
   1253     MEM32(esi) = edi; /* 0x3000615A: mov dword ptr [esi], edi */
   1254     edi = MEM32(edx + 0x4); /* 0x3000615C: mov edi, dword ptr [edx + 4] */
   1255     MEM32(esi + 0x4) = edi; /* 0x3000615F: mov dword ptr [esi + 4], edi */
   1256     edx = MEM32(edx + 0x8); /* 0x30006162: mov edx, dword ptr [edx + 8] */
   1257     MEM32(esi + 0x8) = edx; /* 0x30006165: mov dword ptr [esi + 8], edx */
   1258     edx = ecx + 0x30; /* 0x30006168: lea edx, [ecx + 0x30] */
   1259     edi = MEM32(edx); /* 0x3000616B: mov edi, dword ptr [edx] */
   1260     esi = eax + 0x30; /* 0x3000616D: lea esi, [eax + 0x30] */
   1261     MEM32(esi) = edi; /* 0x30006170: mov dword ptr [esi], edi */
   1262     edi = MEM32(edx + 0x4); /* 0x30006172: mov edi, dword ptr [edx + 4] */
   1263     MEM32(esi + 0x4) = edi; /* 0x30006175: mov dword ptr [esi + 4], edi */
   1264     edx = MEM32(edx + 0x8); /* 0x30006178: mov edx, dword ptr [edx + 8] */
   1265     MEM32(esi + 0x8) = edx; /* 0x3000617B: mov dword ptr [esi + 8], edx */
   1266     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3Cu);
   1267     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1268     ecx = ecx + 0x3Cu; /* 0x3000617E: add ecx, 0x3c */
   1269     _flag_k = FK_ADD;
   1270     esi = MEM32(ecx); /* 0x30006181: mov esi, dword ptr [ecx] */
   1271     edx = eax + 0x3C; /* 0x30006183: lea edx, [eax + 0x3c] */
   1272     MEM32(edx) = esi; /* 0x30006186: mov dword ptr [edx], esi */
   1273     esi = MEM32(ecx + 0x4); /* 0x30006188: mov esi, dword ptr [ecx + 4] */
   1274     MEM32(edx + 0x4) = esi; /* 0x3000618B: mov dword ptr [edx + 4], esi */
   1275     ecx = MEM32(ecx + 0x8); /* 0x3000618E: mov ecx, dword ptr [ecx + 8] */
   1276     edi = POP32_VAL(esp); /* 0x30006191: pop edi */
   1277     MEM32(edx + 0x8) = ecx; /* 0x30006192: mov dword ptr [edx + 8], ecx */
   1278     esi = POP32_VAL(esp); /* 0x30006195: pop esi */
   1279     ebp = POP32_VAL(esp); /* 0x30006196: pop ebp */
   1280     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30006197: ret 4 */
   1281     RECOMP_REGS_OUT();
   1282 }
   1283 
   1284 void sub_300061A0(void) {
   1285     int _fpu_cmp = 0;
   1286     uint32_t _cf = 0;
   1287     int _df = 1;
   1288     uint32_t _flag_k = FK_NONE;
   1289     uint32_t _flag_a = 0, _flag_b = 0;
   1290     uint32_t _itail_tgt = 0;
   1291     RECOMP_REGS_LOCALS
   1292     RECOMP_ENTER(0x300061A0u);
   1293 
   1294 L_300061A0:
   1295     PUSH32(esp, ebp); /* 0x300061A0: push ebp */
   1296     ebp = esp; /* 0x300061A1: mov ebp, esp */
   1297     PUSH32(esp, ebx); /* 0x300061A3: push ebx */
   1298     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x300061A4: mov bl, byte ptr [ebp + 8] */
   1299     /* test LO8(ebx), 2 */ /* 0x300061A7: test bl, 2 */
   1300     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1301     _cf = 0;
   1302     _flag_k = FK_NARROW(FK_TEST, 24);
   1303     PUSH32(esp, esi); /* 0x300061AA: push esi */
   1304     esi = ecx; /* 0x300061AB: mov esi, ecx */
   1305     if (TEST_Z(_flag_a, _flag_b)) goto L_300061DB; /* 0x300061AD: je 0x300061db */
   1306 L_300061AF:
   1307     eax = MEM32(esi + (-0x4)); /* 0x300061AF: mov eax, dword ptr [esi - 4] */
   1308     PUSH32(esp, edi); /* 0x300061B2: push edi */
   1309     PUSH32(esp, 0x30006260u); /* 0x300061B3: push 0x30006260 */
   1310     edi = esi + (-0x4); /* 0x300061B8: lea edi, [esi - 4] */
   1311     PUSH32(esp, eax); /* 0x300061BB: push eax */
   1312     PUSH32(esp, 0x48u); /* 0x300061BC: push 0x48 */
   1313     PUSH32(esp, esi); /* 0x300061BE: push esi */
   1314     RECOMP_ICALL(0x300180FEu); /* 0x300061BF: call 0x300180fe */ /* not lifted */
   1315     RECOMP_FLAGS_IN();
   1316     /* test LO8(ebx), 1 */ /* 0x300061C4: test bl, 1 */
   1317     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1318     _cf = 0;
   1319     _flag_k = FK_NARROW(FK_TEST, 24);
   1320     if (TEST_Z(_flag_a, _flag_b)) goto L_300061D2; /* 0x300061C7: je 0x300061d2 */
   1321 L_300061C9:
   1322     PUSH32(esp, edi); /* 0x300061C9: push edi */
   1323     RECOMP_ICALL(0x30018080u); /* 0x300061CA: call 0x30018080 */ /* not lifted */
   1324     RECOMP_FLAGS_IN();
   1325     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1326     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1327     esp = esp + 4; /* 0x300061CF: add esp, 4 */
   1328     _flag_k = FK_ADD;
   1329 L_300061D2:
   1330     eax = edi; /* 0x300061D2: mov eax, edi */
   1331     edi = POP32_VAL(esp); /* 0x300061D4: pop edi */
   1332     esi = POP32_VAL(esp); /* 0x300061D5: pop esi */
   1333     ebx = POP32_VAL(esp); /* 0x300061D6: pop ebx */
   1334     ebp = POP32_VAL(esp); /* 0x300061D7: pop ebp */
   1335     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300061D8: ret 4 */
   1336 L_300061DB:
   1337     ecx = esi; /* 0x300061DB: mov ecx, esi */
   1338     RECOMP_ICALL(0x30006260u); /* 0x300061DD: call 0x30006260 */ /* not lifted */
   1339     RECOMP_FLAGS_IN();
   1340     /* test LO8(ebx), 1 */ /* 0x300061E2: test bl, 1 */
   1341     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1342     _cf = 0;
   1343     _flag_k = FK_NARROW(FK_TEST, 24);
   1344     if (TEST_Z(_flag_a, _flag_b)) goto L_300061F0; /* 0x300061E5: je 0x300061f0 */
   1345 L_300061E7:
   1346     PUSH32(esp, esi); /* 0x300061E7: push esi */
   1347     RECOMP_ICALL(0x30018080u); /* 0x300061E8: call 0x30018080 */ /* not lifted */
   1348     RECOMP_FLAGS_IN();
   1349     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1351     esp = esp + 4; /* 0x300061ED: add esp, 4 */
   1352     _flag_k = FK_ADD;
   1353 L_300061F0:
   1354     eax = esi; /* 0x300061F0: mov eax, esi */
   1355     esi = POP32_VAL(esp); /* 0x300061F2: pop esi */
   1356     ebx = POP32_VAL(esp); /* 0x300061F3: pop ebx */
   1357     ebp = POP32_VAL(esp); /* 0x300061F4: pop ebp */
   1358     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300061F5: ret 4 */
   1359     RECOMP_REGS_OUT();
   1360 }
   1361 
   1362 void sub_30006200(void) {
   1363     int _fpu_cmp = 0;
   1364     uint32_t _cf = 0;
   1365     int _df = 1;
   1366     uint32_t _flag_k = FK_NONE;
   1367     uint32_t _flag_a = 0, _flag_b = 0;
   1368     uint32_t _itail_tgt = 0;
   1369     RECOMP_REGS_LOCALS
   1370     RECOMP_ENTER(0x30006200u);
   1371 
   1372 L_30006200:
   1373     PUSH32(esp, ebp); /* 0x30006200: push ebp */
   1374     ebp = esp; /* 0x30006201: mov ebp, esp */
   1375     PUSH32(esp, esi); /* 0x30006203: push esi */
   1376     esi = ecx; /* 0x30006204: mov esi, ecx */
   1377     PUSH32(esp, 5); /* 0x30006206: push 5 */
   1378     RECOMP_ICALL(0x30006420u); /* 0x30006208: call 0x30006420 */ /* not lifted */
   1379     RECOMP_FLAGS_IN();
   1380     ecx = MEM32(ebp + 0x8); /* 0x3000620D: mov ecx, dword ptr [ebp + 8] */
   1381     edx = MEM32(ecx); /* 0x30006210: mov edx, dword ptr [ecx] */
   1382     eax = esi + 0x18; /* 0x30006212: lea eax, [esi + 0x18] */
   1383     MEM32(eax) = edx; /* 0x30006215: mov dword ptr [eax], edx */
   1384     edx = MEM32(ecx + 0x4); /* 0x30006217: mov edx, dword ptr [ecx + 4] */
   1385     MEM32(eax + 0x4) = edx; /* 0x3000621A: mov dword ptr [eax + 4], edx */
   1386     ecx = MEM32(ecx + 0x8); /* 0x3000621D: mov ecx, dword ptr [ecx + 8] */
   1387     MEM32(eax + 0x8) = ecx; /* 0x30006220: mov dword ptr [eax + 8], ecx */
   1388     eax = MEM32(ebp + 0xC); /* 0x30006223: mov eax, dword ptr [ebp + 0xc] */
   1389     ecx = MEM32(eax); /* 0x30006226: mov ecx, dword ptr [eax] */
   1390     edx = esi + 0x24; /* 0x30006228: lea edx, [esi + 0x24] */
   1391     MEM32(edx) = ecx; /* 0x3000622B: mov dword ptr [edx], ecx */
   1392     ecx = MEM32(eax + 0x4); /* 0x3000622D: mov ecx, dword ptr [eax + 4] */
   1393     MEM32(edx + 0x4) = ecx; /* 0x30006230: mov dword ptr [edx + 4], ecx */
   1394     eax = MEM32(eax + 0x8); /* 0x30006233: mov eax, dword ptr [eax + 8] */
   1395     MEM32(edx + 0x8) = eax; /* 0x30006236: mov dword ptr [edx + 8], eax */
   1396     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1397     eax = 0; /* 0x30006239: xor eax, eax */
   1398     _cf = 0;
   1399     _flag_k = FK_TEST;
   1400     MEM32(esi + 0x30) = eax; /* 0x3000623B: mov dword ptr [esi + 0x30], eax */
   1401     MEM32(esi + 0x34) = eax; /* 0x3000623E: mov dword ptr [esi + 0x34], eax */
   1402     MEM32(esi + 0x38) = eax; /* 0x30006241: mov dword ptr [esi + 0x38], eax */
   1403     MEM32(esi + 0x3C) = eax; /* 0x30006244: mov dword ptr [esi + 0x3c], eax */
   1404     MEM32(esi + 0x40) = eax; /* 0x30006247: mov dword ptr [esi + 0x40], eax */
   1405     MEM32(esi + 0x44) = eax; /* 0x3000624A: mov dword ptr [esi + 0x44], eax */
   1406     MEM32(esi) = 0x30019208u; /* 0x3000624D: mov dword ptr [esi], 0x30019208 */
   1407     eax = esi; /* 0x30006253: mov eax, esi */
   1408     esi = POP32_VAL(esp); /* 0x30006255: pop esi */
   1409     ebp = POP32_VAL(esp); /* 0x30006256: pop ebp */
   1410     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30006257: ret 8 */
   1411     RECOMP_REGS_OUT();
   1412 }
   1413 
   1414 void sub_30006260(void) {
   1415     int _fpu_cmp = 0;
   1416     uint32_t _cf = 0;
   1417     int _df = 1;
   1418     uint32_t _flag_k = FK_NONE;
   1419     uint32_t _flag_a = 0, _flag_b = 0;
   1420     uint32_t _itail_tgt = 0;
   1421     RECOMP_REGS_LOCALS
   1422     RECOMP_ENTER(0x30006260u);
   1423 
   1424 L_30006260:
   1425     MEM32(ecx) = 0x30019208u; /* 0x30006260: mov dword ptr [ecx], 0x30019208 */
   1426     goto L_30006450; /* 0x30006266: jmp 0x30006450 */
   1427 L_30006450:
   1428     MEM32(ecx) = 0x300191C0u; /* 0x30006450: mov dword ptr [ecx], 0x300191c0 */
   1429     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006456: ret  */
   1430     RECOMP_REGS_OUT();
   1431 }
   1432 
   1433 void sub_30006270(void) {
   1434     int _fpu_cmp = 0;
   1435     uint32_t _cf = 0;
   1436     int _df = 1;
   1437     uint32_t _flag_k = FK_NONE;
   1438     uint32_t _flag_a = 0, _flag_b = 0;
   1439     uint32_t _itail_tgt = 0;
   1440     RECOMP_REGS_LOCALS
   1441     RECOMP_ENTER(0x30006270u);
   1442 
   1443 L_30006270:
   1444     RECOMP_ICALL(0x30006280u); /* 0x30006270: call 0x30006280 */ /* not lifted */
   1445     RECOMP_FLAGS_IN();
   1446     goto L_30006290; /* 0x30006275: jmp 0x30006290 */
   1447 L_30006290:
   1448     PUSH32(esp, 0x300062A0u); /* 0x30006290: push 0x300062a0 */
   1449     RECOMP_ICALL(0x300180ECu); /* 0x30006295: call 0x300180ec */ /* not lifted */
   1450     RECOMP_FLAGS_IN();
   1451     ecx = POP32_VAL(esp); /* 0x3000629A: pop ecx */
   1452     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000629B: ret  */
   1453     RECOMP_REGS_OUT();
   1454 }
   1455 
   1456 void sub_30006280(void) {
   1457     int _fpu_cmp = 0;
   1458     uint32_t _cf = 0;
   1459     int _df = 1;
   1460     uint32_t _flag_k = FK_NONE;
   1461     uint32_t _flag_a = 0, _flag_b = 0;
   1462     uint32_t _itail_tgt = 0;
   1463     RECOMP_REGS_LOCALS
   1464     RECOMP_ENTER(0x30006280u);
   1465 
   1466 L_30006280:
   1467     ecx = 0x3001E3CDu; /* 0x30006280: mov ecx, 0x3001e3cd */
   1468 L_30006285:
   1469     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
   1470     { RECOMP_REGS_OUT(); return; } /* end of function */
   1471   _ljump:
   1472     switch (_itail_tgt) {
   1473       case 0x30006280u: goto L_30006280;
   1474       case 0x30006285u: goto L_30006285;
   1475       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1476     }
   1477     RECOMP_REGS_OUT();
   1478 }
   1479 
   1480 void sub_30006290(void) {
   1481     int _fpu_cmp = 0;
   1482     uint32_t _cf = 0;
   1483     int _df = 1;
   1484     uint32_t _flag_k = FK_NONE;
   1485     uint32_t _flag_a = 0, _flag_b = 0;
   1486     uint32_t _itail_tgt = 0;
   1487     RECOMP_REGS_LOCALS
   1488     RECOMP_ENTER(0x30006290u);
   1489 
   1490 L_30006290:
   1491     PUSH32(esp, 0x300062A0u); /* 0x30006290: push 0x300062a0 */
   1492     RECOMP_ICALL(0x300180ECu); /* 0x30006295: call 0x300180ec */ /* not lifted */
   1493     RECOMP_FLAGS_IN();
   1494     ecx = POP32_VAL(esp); /* 0x3000629A: pop ecx */
   1495     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000629B: ret  */
   1496     RECOMP_REGS_OUT();
   1497 }
   1498 
   1499 void sub_300062A0(void) {
   1500     int _fpu_cmp = 0;
   1501     uint32_t _cf = 0;
   1502     int _df = 1;
   1503     uint32_t _flag_k = FK_NONE;
   1504     uint32_t _flag_a = 0, _flag_b = 0;
   1505     uint32_t _itail_tgt = 0;
   1506     RECOMP_REGS_LOCALS
   1507     RECOMP_ENTER(0x300062A0u);
   1508 
   1509 L_300062A0:
   1510     ecx = 0x3001E3CDu; /* 0x300062A0: mov ecx, 0x3001e3cd */
   1511 L_300062A5:
   1512     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
   1513     { RECOMP_REGS_OUT(); return; } /* end of function */
   1514   _ljump:
   1515     switch (_itail_tgt) {
   1516       case 0x300062A0u: goto L_300062A0;
   1517       case 0x300062A5u: goto L_300062A5;
   1518       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1519     }
   1520     RECOMP_REGS_OUT();
   1521 }
   1522 
   1523 void sub_300062B0(void) {
   1524     int _fpu_cmp = 0;
   1525     uint32_t _cf = 0;
   1526     int _df = 1;
   1527     uint32_t _flag_k = FK_NONE;
   1528     uint32_t _flag_a = 0, _flag_b = 0;
   1529     uint32_t _itail_tgt = 0;
   1530     RECOMP_REGS_LOCALS
   1531     RECOMP_ENTER(0x300062B0u);
   1532 
   1533 L_300062B0:
   1534     RECOMP_ICALL(0x300062C0u); /* 0x300062B0: call 0x300062c0 */ /* not lifted */
   1535     RECOMP_FLAGS_IN();
   1536     goto L_300062D0; /* 0x300062B5: jmp 0x300062d0 */
   1537 L_300062D0:
   1538     PUSH32(esp, 0x300062E0u); /* 0x300062D0: push 0x300062e0 */
   1539     RECOMP_ICALL(0x300180ECu); /* 0x300062D5: call 0x300180ec */ /* not lifted */
   1540     RECOMP_FLAGS_IN();
   1541     ecx = POP32_VAL(esp); /* 0x300062DA: pop ecx */
   1542     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300062DB: ret  */
   1543     RECOMP_REGS_OUT();
   1544 }
   1545 
   1546 void sub_300062C0(void) {
   1547     int _fpu_cmp = 0;
   1548     uint32_t _cf = 0;
   1549     int _df = 1;
   1550     uint32_t _flag_k = FK_NONE;
   1551     uint32_t _flag_a = 0, _flag_b = 0;
   1552     uint32_t _itail_tgt = 0;
   1553     RECOMP_REGS_LOCALS
   1554     RECOMP_ENTER(0x300062C0u);
   1555 
   1556 L_300062C0:
   1557     ecx = 0x3001E3CCu; /* 0x300062C0: mov ecx, 0x3001e3cc */
   1558 L_300062C5:
   1559     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
   1560     { RECOMP_REGS_OUT(); return; } /* end of function */
   1561   _ljump:
   1562     switch (_itail_tgt) {
   1563       case 0x300062C0u: goto L_300062C0;
   1564       case 0x300062C5u: goto L_300062C5;
   1565       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1566     }
   1567     RECOMP_REGS_OUT();
   1568 }
   1569 
   1570 void sub_300062D0(void) {
   1571     int _fpu_cmp = 0;
   1572     uint32_t _cf = 0;
   1573     int _df = 1;
   1574     uint32_t _flag_k = FK_NONE;
   1575     uint32_t _flag_a = 0, _flag_b = 0;
   1576     uint32_t _itail_tgt = 0;
   1577     RECOMP_REGS_LOCALS
   1578     RECOMP_ENTER(0x300062D0u);
   1579 
   1580 L_300062D0:
   1581     PUSH32(esp, 0x300062E0u); /* 0x300062D0: push 0x300062e0 */
   1582     RECOMP_ICALL(0x300180ECu); /* 0x300062D5: call 0x300180ec */ /* not lifted */
   1583     RECOMP_FLAGS_IN();
   1584     ecx = POP32_VAL(esp); /* 0x300062DA: pop ecx */
   1585     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300062DB: ret  */
   1586     RECOMP_REGS_OUT();
   1587 }
   1588 
   1589 void sub_300062E0(void) {
   1590     int _fpu_cmp = 0;
   1591     uint32_t _cf = 0;
   1592     int _df = 1;
   1593     uint32_t _flag_k = FK_NONE;
   1594     uint32_t _flag_a = 0, _flag_b = 0;
   1595     uint32_t _itail_tgt = 0;
   1596     RECOMP_REGS_LOCALS
   1597     RECOMP_ENTER(0x300062E0u);
   1598 
   1599 L_300062E0:
   1600     ecx = 0x3001E3CCu; /* 0x300062E0: mov ecx, 0x3001e3cc */
   1601 L_300062E5:
   1602     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
   1603     { RECOMP_REGS_OUT(); return; } /* end of function */
   1604   _ljump:
   1605     switch (_itail_tgt) {
   1606       case 0x300062E0u: goto L_300062E0;
   1607       case 0x300062E5u: goto L_300062E5;
   1608       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1609     }
   1610     RECOMP_REGS_OUT();
   1611 }
   1612 
   1613 void sub_300062F0(void) {
   1614     int _fpu_cmp = 0;
   1615     uint32_t _cf = 0;
   1616     int _df = 1;
   1617     uint32_t _flag_k = FK_NONE;
   1618     uint32_t _flag_a = 0, _flag_b = 0;
   1619     uint32_t _itail_tgt = 0;
   1620     RECOMP_REGS_LOCALS
   1621     RECOMP_ENTER(0x300062F0u);
   1622 
   1623 L_300062F0:
   1624     PUSH32(esp, ebp); /* 0x300062F0: push ebp */
   1625     ebp = esp; /* 0x300062F1: mov ebp, esp */
   1626     eax = ecx; /* 0x300062F3: mov eax, ecx */
   1627     ecx = MEM32(ebp + 0x8); /* 0x300062F5: mov ecx, dword ptr [ebp + 8] */
   1628     PUSH32(esp, esi); /* 0x300062F8: push esi */
   1629     MEM32(eax) = 0x300191ACu; /* 0x300062F9: mov dword ptr [eax], 0x300191ac */
   1630     PUSH32(esp, edi); /* 0x300062FF: push edi */
   1631     edx = ecx + 0x4; /* 0x30006300: lea edx, [ecx + 4] */
   1632     edi = MEM32(edx); /* 0x30006303: mov edi, dword ptr [edx] */
   1633     esi = eax + 0x4; /* 0x30006305: lea esi, [eax + 4] */
   1634     MEM32(esi) = edi; /* 0x30006308: mov dword ptr [esi], edi */
   1635     edi = MEM32(edx + 0x4); /* 0x3000630A: mov edi, dword ptr [edx + 4] */
   1636     MEM32(esi + 0x4) = edi; /* 0x3000630D: mov dword ptr [esi + 4], edi */
   1637     edx = MEM32(edx + 0x8); /* 0x30006310: mov edx, dword ptr [edx + 8] */
   1638     MEM32(esi + 0x8) = edx; /* 0x30006313: mov dword ptr [esi + 8], edx */
   1639     edx = MEM32(ecx + 0x10); /* 0x30006316: mov edx, dword ptr [ecx + 0x10] */
   1640     MEM32(eax + 0x10) = edx; /* 0x30006319: mov dword ptr [eax + 0x10], edx */
   1641     edx = MEM32(ecx + 0x14); /* 0x3000631C: mov edx, dword ptr [ecx + 0x14] */
   1642     MEM32(eax) = 0x300191C0u; /* 0x3000631F: mov dword ptr [eax], 0x300191c0 */
   1643     MEM32(eax + 0x14) = edx; /* 0x30006325: mov dword ptr [eax + 0x14], edx */
   1644     ecx = MEM32(ecx + 0x18); /* 0x30006328: mov ecx, dword ptr [ecx + 0x18] */
   1645     edi = POP32_VAL(esp); /* 0x3000632B: pop edi */
   1646     MEM32(eax + 0x18) = ecx; /* 0x3000632C: mov dword ptr [eax + 0x18], ecx */
   1647     MEM32(eax) = 0x30019220u; /* 0x3000632F: mov dword ptr [eax], 0x30019220 */
   1648     esi = POP32_VAL(esp); /* 0x30006335: pop esi */
   1649     ebp = POP32_VAL(esp); /* 0x30006336: pop ebp */
   1650     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30006337: ret 4 */
   1651     RECOMP_REGS_OUT();
   1652 }
   1653 
   1654 void sub_30006340(void) {
   1655     int _fpu_cmp = 0;
   1656     uint32_t _cf = 0;
   1657     int _df = 1;
   1658     uint32_t _flag_k = FK_NONE;
   1659     uint32_t _flag_a = 0, _flag_b = 0;
   1660     uint32_t _itail_tgt = 0;
   1661     RECOMP_REGS_LOCALS
   1662     RECOMP_ENTER(0x30006340u);
   1663 
   1664 L_30006340:
   1665     PUSH32(esp, ebp); /* 0x30006340: push ebp */
   1666     ebp = esp; /* 0x30006341: mov ebp, esp */
   1667     PUSH32(esp, ebx); /* 0x30006343: push ebx */
   1668     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x30006344: mov bl, byte ptr [ebp + 8] */
   1669     /* test LO8(ebx), 2 */ /* 0x30006347: test bl, 2 */
   1670     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1671     _cf = 0;
   1672     _flag_k = FK_NARROW(FK_TEST, 24);
   1673     PUSH32(esp, esi); /* 0x3000634A: push esi */
   1674     esi = ecx; /* 0x3000634B: mov esi, ecx */
   1675     if (TEST_Z(_flag_a, _flag_b)) goto L_3000637B; /* 0x3000634D: je 0x3000637b */
   1676 L_3000634F:
   1677     eax = MEM32(esi + (-0x4)); /* 0x3000634F: mov eax, dword ptr [esi - 4] */
   1678     PUSH32(esp, edi); /* 0x30006352: push edi */
   1679     PUSH32(esp, 0x30007720u); /* 0x30006353: push 0x30007720 */
   1680     edi = esi + (-0x4); /* 0x30006358: lea edi, [esi - 4] */
   1681     PUSH32(esp, eax); /* 0x3000635B: push eax */
   1682     PUSH32(esp, 0x1Cu); /* 0x3000635C: push 0x1c */
   1683     PUSH32(esp, esi); /* 0x3000635E: push esi */
   1684     RECOMP_ICALL(0x300180FEu); /* 0x3000635F: call 0x300180fe */ /* not lifted */
   1685     RECOMP_FLAGS_IN();
   1686     /* test LO8(ebx), 1 */ /* 0x30006364: test bl, 1 */
   1687     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1688     _cf = 0;
   1689     _flag_k = FK_NARROW(FK_TEST, 24);
   1690     if (TEST_Z(_flag_a, _flag_b)) goto L_30006372; /* 0x30006367: je 0x30006372 */
   1691 L_30006369:
   1692     PUSH32(esp, edi); /* 0x30006369: push edi */
   1693     RECOMP_ICALL(0x30018080u); /* 0x3000636A: call 0x30018080 */ /* not lifted */
   1694     RECOMP_FLAGS_IN();
   1695     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1696     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1697     esp = esp + 4; /* 0x3000636F: add esp, 4 */
   1698     _flag_k = FK_ADD;
   1699 L_30006372:
   1700     eax = edi; /* 0x30006372: mov eax, edi */
   1701     edi = POP32_VAL(esp); /* 0x30006374: pop edi */
   1702     esi = POP32_VAL(esp); /* 0x30006375: pop esi */
   1703     ebx = POP32_VAL(esp); /* 0x30006376: pop ebx */
   1704     ebp = POP32_VAL(esp); /* 0x30006377: pop ebp */
   1705     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30006378: ret 4 */
   1706 L_3000637B:
   1707     ecx = esi; /* 0x3000637B: mov ecx, esi */
   1708     RECOMP_ICALL(0x30007720u); /* 0x3000637D: call 0x30007720 */ /* not lifted */
   1709     RECOMP_FLAGS_IN();
   1710     /* test LO8(ebx), 1 */ /* 0x30006382: test bl, 1 */
   1711     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1712     _cf = 0;
   1713     _flag_k = FK_NARROW(FK_TEST, 24);
   1714     if (TEST_Z(_flag_a, _flag_b)) goto L_30006390; /* 0x30006385: je 0x30006390 */
   1715 L_30006387:
   1716     PUSH32(esp, esi); /* 0x30006387: push esi */
   1717     RECOMP_ICALL(0x30018080u); /* 0x30006388: call 0x30018080 */ /* not lifted */
   1718     RECOMP_FLAGS_IN();
   1719     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1720     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1721     esp = esp + 4; /* 0x3000638D: add esp, 4 */
   1722     _flag_k = FK_ADD;
   1723 L_30006390:
   1724     eax = esi; /* 0x30006390: mov eax, esi */
   1725     esi = POP32_VAL(esp); /* 0x30006392: pop esi */
   1726     ebx = POP32_VAL(esp); /* 0x30006393: pop ebx */
   1727     ebp = POP32_VAL(esp); /* 0x30006394: pop ebp */
   1728     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30006395: ret 4 */
   1729     RECOMP_REGS_OUT();
   1730 }
   1731 
   1732 void sub_300063A0(void) {
   1733     int _fpu_cmp = 0;
   1734     uint32_t _cf = 0;
   1735     int _df = 1;
   1736     uint32_t _flag_k = FK_NONE;
   1737     uint32_t _flag_a = 0, _flag_b = 0;
   1738     uint32_t _itail_tgt = 0;
   1739     RECOMP_REGS_LOCALS
   1740     RECOMP_ENTER(0x300063A0u);
   1741 
   1742 L_300063A0:
   1743     PUSH32(esp, ebp); /* 0x300063A0: push ebp */
   1744     ebp = esp; /* 0x300063A1: mov ebp, esp */
   1745     eax = MEM32(ebp + 0x8); /* 0x300063A3: mov eax, dword ptr [ebp + 8] */
   1746     eax = eax + eax * 2; /* 0x300063A6: lea eax, [eax + eax*2] */
   1747     eax = ecx + eax * 4; /* 0x300063A9: lea eax, [ecx + eax*4] */
   1748     ebp = POP32_VAL(esp); /* 0x300063AC: pop ebp */
   1749     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300063AD: ret 4 */
   1750     RECOMP_REGS_OUT();
   1751 }
   1752 
   1753 void sub_300063B0(void) {
   1754     int _fpu_cmp = 0;
   1755     uint32_t _cf = 0;
   1756     int _df = 1;
   1757     uint32_t _flag_k = FK_NONE;
   1758     uint32_t _flag_a = 0, _flag_b = 0;
   1759     uint32_t _itail_tgt = 0;
   1760     RECOMP_REGS_LOCALS
   1761     RECOMP_ENTER(0x300063B0u);
   1762 
   1763 L_300063B0:
   1764     PUSH32(esp, ebp); /* 0x300063B0: push ebp */
   1765     ebp = esp; /* 0x300063B1: mov ebp, esp */
   1766     eax = MEM32(ebp + 0x8); /* 0x300063B3: mov eax, dword ptr [ebp + 8] */
   1767     edx = MEM32(ebp + 0xC); /* 0x300063B6: mov edx, dword ptr [ebp + 0xc] */
   1768     eax = eax + eax * 2; /* 0x300063B9: lea eax, [eax + eax*2] */
   1769     ecx = ecx + eax * 4; /* 0x300063BC: lea ecx, [ecx + eax*4] */
   1770     eax = MEM32(edx); /* 0x300063BF: mov eax, dword ptr [edx] */
   1771     MEM32(ecx) = eax; /* 0x300063C1: mov dword ptr [ecx], eax */
   1772     eax = MEM32(edx + 0x4); /* 0x300063C3: mov eax, dword ptr [edx + 4] */
   1773     MEM32(ecx + 0x4) = eax; /* 0x300063C6: mov dword ptr [ecx + 4], eax */
   1774     edx = MEM32(edx + 0x8); /* 0x300063C9: mov edx, dword ptr [edx + 8] */
   1775     MEM32(ecx + 0x8) = edx; /* 0x300063CC: mov dword ptr [ecx + 8], edx */
   1776     ebp = POP32_VAL(esp); /* 0x300063CF: pop ebp */
   1777     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x300063D0: ret 8 */
   1778     RECOMP_REGS_OUT();
   1779 }
   1780 
   1781 void sub_300063E0(void) {
   1782     int _fpu_cmp = 0;
   1783     uint32_t _cf = 0;
   1784     int _df = 1;
   1785     uint32_t _flag_k = FK_NONE;
   1786     uint32_t _flag_a = 0, _flag_b = 0;
   1787     uint32_t _itail_tgt = 0;
   1788     RECOMP_REGS_LOCALS
   1789     RECOMP_ENTER(0x300063E0u);
   1790 
   1791 L_300063E0:
   1792     PUSH32(esp, ebx); /* 0x300063E0: push ebx */
   1793     PUSH32(esp, esi); /* 0x300063E1: push esi */
   1794     ebx = ecx; /* 0x300063E2: mov ebx, ecx */
   1795     PUSH32(esp, edi); /* 0x300063E4: push edi */
   1796     esi = ebx; /* 0x300063E5: mov esi, ebx */
   1797     edi = 3; /* 0x300063E7: mov edi, 3 */
   1798 L_300063EC:
   1799     ecx = esi; /* 0x300063EC: mov ecx, esi */
   1800     RECOMP_ICALL(MEM32(0x300190E4)); /* 0x300063EE: call dword ptr [0x300190e4] */
   1801     RECOMP_FLAGS_IN();
   1802     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   1803     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1804     esi = esi + 0xCu; /* 0x300063F4: add esi, 0xc */
   1805     _flag_k = FK_ADD;
   1806     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1807     edi = edi - 1; /* 0x300063F7: dec edi */
   1808     _flag_k = FK_DEC;
   1809     RECOMP_BACKEDGE();
   1810     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300063EC; /* 0x300063F8: jne 0x300063ec */
   1811 L_300063FA:
   1812     edi = POP32_VAL(esp); /* 0x300063FA: pop edi */
   1813     esi = POP32_VAL(esp); /* 0x300063FB: pop esi */
   1814     eax = ebx; /* 0x300063FC: mov eax, ebx */
   1815     ebx = POP32_VAL(esp); /* 0x300063FE: pop ebx */
   1816     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300063FF: ret  */
   1817     RECOMP_REGS_OUT();
   1818 }
   1819 
   1820 void sub_30006400(void) {
   1821     int _fpu_cmp = 0;
   1822     uint32_t _cf = 0;
   1823     int _df = 1;
   1824     uint32_t _flag_k = FK_NONE;
   1825     uint32_t _flag_a = 0, _flag_b = 0;
   1826     uint32_t _itail_tgt = 0;
   1827     RECOMP_REGS_LOCALS
   1828     RECOMP_ENTER(0x30006400u);
   1829 
   1830 L_30006400:
   1831     PUSH32(esp, ebp); /* 0x30006400: push ebp */
   1832     ebp = esp; /* 0x30006401: mov ebp, esp */
   1833     PUSH32(esp, esi); /* 0x30006403: push esi */
   1834     esi = MEM32(ebp + 0x8); /* 0x30006404: mov esi, dword ptr [ebp + 8] */
   1835     PUSH32(esp, edi); /* 0x30006407: push edi */
   1836     eax = ecx; /* 0x30006408: mov eax, ecx */
   1837     ecx = 9; /* 0x3000640A: mov ecx, 9 */
   1838     edi = eax; /* 0x3000640F: mov edi, eax */
   1839     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x30006411: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1840     edi = POP32_VAL(esp); /* 0x30006413: pop edi */
   1841     esi = POP32_VAL(esp); /* 0x30006414: pop esi */
   1842     ebp = POP32_VAL(esp); /* 0x30006415: pop ebp */
   1843     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30006416: ret 4 */
   1844     RECOMP_REGS_OUT();
   1845 }
   1846 
   1847 void sub_30006420(void) {
   1848     int _fpu_cmp = 0;
   1849     uint32_t _cf = 0;
   1850     int _df = 1;
   1851     uint32_t _flag_k = FK_NONE;
   1852     uint32_t _flag_a = 0, _flag_b = 0;
   1853     uint32_t _itail_tgt = 0;
   1854     RECOMP_REGS_LOCALS
   1855     RECOMP_ENTER(0x30006420u);
   1856 
   1857 L_30006420:
   1858     PUSH32(esp, ebp); /* 0x30006420: push ebp */
   1859     ebp = esp; /* 0x30006421: mov ebp, esp */
   1860     eax = ecx; /* 0x30006423: mov eax, ecx */
   1861     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1862     ecx = 0; /* 0x30006425: xor ecx, ecx */
   1863     _cf = 0;
   1864     _flag_k = FK_TEST;
   1865     MEM32(eax + 0x4) = ecx; /* 0x30006427: mov dword ptr [eax + 4], ecx */
   1866     MEM32(eax + 0x8) = ecx; /* 0x3000642A: mov dword ptr [eax + 8], ecx */
   1867     MEM32(eax + 0xC) = ecx; /* 0x3000642D: mov dword ptr [eax + 0xc], ecx */
   1868     MEM32(eax + 0x10) = ecx; /* 0x30006430: mov dword ptr [eax + 0x10], ecx */
   1869     ecx = MEM32(ebp + 0x8); /* 0x30006433: mov ecx, dword ptr [ebp + 8] */
   1870     MEM32(eax + 0x14) = ecx; /* 0x30006436: mov dword ptr [eax + 0x14], ecx */
   1871     MEM32(eax) = 0x300191C0u; /* 0x30006439: mov dword ptr [eax], 0x300191c0 */
   1872     ebp = POP32_VAL(esp); /* 0x3000643F: pop ebp */
   1873     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30006440: ret 4 */
   1874     RECOMP_REGS_OUT();
   1875 }
   1876 
   1877 void sub_30006450(void) {
   1878     int _fpu_cmp = 0;
   1879     uint32_t _cf = 0;
   1880     int _df = 1;
   1881     uint32_t _flag_k = FK_NONE;
   1882     uint32_t _flag_a = 0, _flag_b = 0;
   1883     uint32_t _itail_tgt = 0;
   1884     RECOMP_REGS_LOCALS
   1885     RECOMP_ENTER(0x30006450u);
   1886 
   1887 L_30006450:
   1888     MEM32(ecx) = 0x300191C0u; /* 0x30006450: mov dword ptr [ecx], 0x300191c0 */
   1889     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006456: ret  */
   1890     RECOMP_REGS_OUT();
   1891 }
   1892 
   1893 void sub_30006460(void) {
   1894     int _fpu_cmp = 0;
   1895     uint32_t _cf = 0;
   1896     int _df = 1;
   1897     uint32_t _flag_k = FK_NONE;
   1898     uint32_t _flag_a = 0, _flag_b = 0;
   1899     uint32_t _itail_tgt = 0;
   1900     RECOMP_REGS_LOCALS
   1901     RECOMP_ENTER(0x30006460u);
   1902 
   1903 L_30006460:
   1904     eax = MEM32(ecx + 0x14); /* 0x30006460: mov eax, dword ptr [ecx + 0x14] */
   1905     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006463: ret  */
   1906     RECOMP_REGS_OUT();
   1907 }
   1908 
   1909 void sub_30006470(void) {
   1910     int _fpu_cmp = 0;
   1911     uint32_t _cf = 0;
   1912     int _df = 1;
   1913     uint32_t _flag_k = FK_NONE;
   1914     uint32_t _flag_a = 0, _flag_b = 0;
   1915     uint32_t _itail_tgt = 0;
   1916     RECOMP_REGS_LOCALS
   1917     RECOMP_ENTER(0x30006470u);
   1918 
   1919 L_30006470:
   1920     PUSH32(esp, ebp); /* 0x30006470: push ebp */
   1921     ebp = esp; /* 0x30006471: mov ebp, esp */
   1922     PUSH32(esp, ebx); /* 0x30006473: push ebx */
   1923     PUSH32(esp, esi); /* 0x30006474: push esi */
   1924     PUSH32(esp, edi); /* 0x30006475: push edi */
   1925     edi = MEM32(ebp + 0x8); /* 0x30006476: mov edi, dword ptr [ebp + 8] */
   1926     ecx = edi; /* 0x30006479: mov ecx, edi */
   1927     RECOMP_ICALL(0x30006460u); /* 0x3000647B: call 0x30006460 */ /* not lifted */
   1928     RECOMP_FLAGS_IN();
   1929     ebx = MEM32(ebp + 0xC); /* 0x30006480: mov ebx, dword ptr [ebp + 0xc] */
   1930     esi = eax; /* 0x30006483: mov esi, eax */
   1931     ecx = ebx; /* 0x30006485: mov ecx, ebx */
   1932     if (16u) _cf = (((esi) >> 16) & 1u); /* 0x30006487: shl esi, 0x10 */
   1933     if (16u) { _flag_a = recomp_flags_pack((esi << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1934     esi = esi << 16u; /* 0x30006487: shl esi, 0x10 */
   1935     RECOMP_ICALL(0x30006460u); /* 0x3000648A: call 0x30006460 */ /* not lifted */
   1936     RECOMP_FLAGS_IN();
   1937     _flag_a = (uint32_t)((esi | eax)); _flag_b = (uint32_t)((esi | eax));
   1938     esi = esi | eax; /* 0x3000648F: or esi, eax */
   1939     _cf = 0;
   1940     _flag_k = FK_TEST;
   1941     /* cmp esi, 0x00020005u */ /* 0x30006491: cmp esi, 0x20005 */
   1942     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x00020005u);
   1943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1944     _flag_k = FK_CMP;
   1945     if (CMP_A(_flag_a, _flag_b)) goto L_30006549; /* 0x30006497: ja 0x30006549 */
   1946 L_3000649D:
   1947     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000653A; /* 0x3000649D: je 0x3000653a */
   1948 L_300064A3:
   1949     /* cmp esi, 0x00020001u */ /* 0x300064A3: cmp esi, 0x20001 */
   1950     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x00020001u);
   1951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1952     _flag_k = FK_CMP;
   1953     if (CMP_A(_flag_a, _flag_b)) goto L_300064FB; /* 0x300064A9: ja 0x300064fb */
   1954 L_300064AB:
   1955     if (CMP_EQ(_flag_a, _flag_b)) goto L_300064EC; /* 0x300064AB: je 0x300064ec */
   1956 L_300064AD:
   1957     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x00010001u);
   1958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1959     esi = esi - 0x00010001u; /* 0x300064AD: sub esi, 0x10001 */
   1960     _flag_k = FK_CMP;
   1961     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_300064DD; /* 0x300064B3: je 0x300064dd */
   1962 L_300064B5:
   1963     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   1964     esi = esi - 1; /* 0x300064B5: dec esi */
   1965     _flag_k = FK_DEC;
   1966     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_300064CE; /* 0x300064B6: je 0x300064ce */
   1967 L_300064B8:
   1968     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   1969     esi = esi - 1; /* 0x300064B8: dec esi */
   1970     _flag_k = FK_DEC;
   1971     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300065B2; /* 0x300064B9: jne 0x300065b2 */
   1972 L_300064BF:
   1973     PUSH32(esp, ebx); /* 0x300064BF: push ebx */
   1974     PUSH32(esp, edi); /* 0x300064C0: push edi */
   1975     RECOMP_ICALL(0x30006690u); /* 0x300064C1: call 0x30006690 */ /* not lifted */
   1976     RECOMP_FLAGS_IN();
   1977     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1978     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1979     esp = esp + 8; /* 0x300064C6: add esp, 8 */
   1980     _flag_k = FK_ADD;
   1981     edi = POP32_VAL(esp); /* 0x300064C9: pop edi */
   1982     esi = POP32_VAL(esp); /* 0x300064CA: pop esi */
   1983     ebx = POP32_VAL(esp); /* 0x300064CB: pop ebx */
   1984     ebp = POP32_VAL(esp); /* 0x300064CC: pop ebp */
   1985     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300064CD: ret  */
   1986 L_300064CE:
   1987     PUSH32(esp, ebx); /* 0x300064CE: push ebx */
   1988     PUSH32(esp, edi); /* 0x300064CF: push edi */
   1989     RECOMP_ICALL(0x30006B50u); /* 0x300064D0: call 0x30006b50 */ /* not lifted */
   1990     RECOMP_FLAGS_IN();
   1991     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1992     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1993     esp = esp + 8; /* 0x300064D5: add esp, 8 */
   1994     _flag_k = FK_ADD;
   1995     edi = POP32_VAL(esp); /* 0x300064D8: pop edi */
   1996     esi = POP32_VAL(esp); /* 0x300064D9: pop esi */
   1997     ebx = POP32_VAL(esp); /* 0x300064DA: pop ebx */
   1998     ebp = POP32_VAL(esp); /* 0x300064DB: pop ebp */
   1999     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300064DC: ret  */
   2000 L_300064DD:
   2001     PUSH32(esp, ebx); /* 0x300064DD: push ebx */
   2002     PUSH32(esp, edi); /* 0x300064DE: push edi */
   2003     RECOMP_ICALL(0x300065F0u); /* 0x300064DF: call 0x300065f0 */ /* not lifted */
   2004     RECOMP_FLAGS_IN();
   2005     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2006     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2007     esp = esp + 8; /* 0x300064E4: add esp, 8 */
   2008     _flag_k = FK_ADD;
   2009     edi = POP32_VAL(esp); /* 0x300064E7: pop edi */
   2010     esi = POP32_VAL(esp); /* 0x300064E8: pop esi */
   2011     ebx = POP32_VAL(esp); /* 0x300064E9: pop ebx */
   2012     ebp = POP32_VAL(esp); /* 0x300064EA: pop ebp */
   2013     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300064EB: ret  */
   2014 L_300064EC:
   2015     PUSH32(esp, edi); /* 0x300064EC: push edi */
   2016     PUSH32(esp, ebx); /* 0x300064ED: push ebx */
   2017     RECOMP_ICALL(0x30006B50u); /* 0x300064EE: call 0x30006b50 */ /* not lifted */
   2018     RECOMP_FLAGS_IN();
   2019     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2020     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2021     esp = esp + 8; /* 0x300064F3: add esp, 8 */
   2022     _flag_k = FK_ADD;
   2023     edi = POP32_VAL(esp); /* 0x300064F6: pop edi */
   2024     esi = POP32_VAL(esp); /* 0x300064F7: pop esi */
   2025     ebx = POP32_VAL(esp); /* 0x300064F8: pop ebx */
   2026     ebp = POP32_VAL(esp); /* 0x300064F9: pop ebp */
   2027     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300064FA: ret  */
   2028 L_300064FB:
   2029     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x00020002u);
   2030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2031     esi = esi - 0x00020002u; /* 0x300064FB: sub esi, 0x20002 */
   2032     _flag_k = FK_CMP;
   2033     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000652B; /* 0x30006501: je 0x3000652b */
   2034 L_30006503:
   2035     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   2036     esi = esi - 1; /* 0x30006503: dec esi */
   2037     _flag_k = FK_DEC;
   2038     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000651C; /* 0x30006504: je 0x3000651c */
   2039 L_30006506:
   2040     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   2041     esi = esi - 1; /* 0x30006506: dec esi */
   2042     _flag_k = FK_DEC;
   2043     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300065B2; /* 0x30006507: jne 0x300065b2 */
   2044 L_3000650D:
   2045     PUSH32(esp, edi); /* 0x3000650D: push edi */
   2046     PUSH32(esp, ebx); /* 0x3000650E: push ebx */
   2047     RECOMP_ICALL(0x30006BC0u); /* 0x3000650F: call 0x30006bc0 */ /* not lifted */
   2048     RECOMP_FLAGS_IN();
   2049     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2050     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2051     esp = esp + 8; /* 0x30006514: add esp, 8 */
   2052     _flag_k = FK_ADD;
   2053     edi = POP32_VAL(esp); /* 0x30006517: pop edi */
   2054     esi = POP32_VAL(esp); /* 0x30006518: pop esi */
   2055     ebx = POP32_VAL(esp); /* 0x30006519: pop ebx */
   2056     ebp = POP32_VAL(esp); /* 0x3000651A: pop ebp */
   2057     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000651B: ret  */
   2058 L_3000651C:
   2059     PUSH32(esp, ebx); /* 0x3000651C: push ebx */
   2060     PUSH32(esp, edi); /* 0x3000651D: push edi */
   2061     RECOMP_ICALL(0x300069B0u); /* 0x3000651E: call 0x300069b0 */ /* not lifted */
   2062     RECOMP_FLAGS_IN();
   2063     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2064     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2065     esp = esp + 8; /* 0x30006523: add esp, 8 */
   2066     _flag_k = FK_ADD;
   2067     edi = POP32_VAL(esp); /* 0x30006526: pop edi */
   2068     esi = POP32_VAL(esp); /* 0x30006527: pop esi */
   2069     ebx = POP32_VAL(esp); /* 0x30006528: pop ebx */
   2070     ebp = POP32_VAL(esp); /* 0x30006529: pop ebp */
   2071     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000652A: ret  */
   2072 L_3000652B:
   2073     PUSH32(esp, ebx); /* 0x3000652B: push ebx */
   2074     PUSH32(esp, edi); /* 0x3000652C: push edi */
   2075     RECOMP_ICALL(0x300067F0u); /* 0x3000652D: call 0x300067f0 */ /* not lifted */
   2076     RECOMP_FLAGS_IN();
   2077     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2078     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2079     esp = esp + 8; /* 0x30006532: add esp, 8 */
   2080     _flag_k = FK_ADD;
   2081     edi = POP32_VAL(esp); /* 0x30006535: pop edi */
   2082     esi = POP32_VAL(esp); /* 0x30006536: pop esi */
   2083     ebx = POP32_VAL(esp); /* 0x30006537: pop ebx */
   2084     ebp = POP32_VAL(esp); /* 0x30006538: pop ebp */
   2085     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006539: ret  */
   2086 L_3000653A:
   2087     PUSH32(esp, edi); /* 0x3000653A: push edi */
   2088     PUSH32(esp, ebx); /* 0x3000653B: push ebx */
   2089     RECOMP_ICALL(0x30007090u); /* 0x3000653C: call 0x30007090 */ /* not lifted */
   2090     RECOMP_FLAGS_IN();
   2091     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2093     esp = esp + 8; /* 0x30006541: add esp, 8 */
   2094     _flag_k = FK_ADD;
   2095     edi = POP32_VAL(esp); /* 0x30006544: pop edi */
   2096     esi = POP32_VAL(esp); /* 0x30006545: pop esi */
   2097     ebx = POP32_VAL(esp); /* 0x30006546: pop ebx */
   2098     ebp = POP32_VAL(esp); /* 0x30006547: pop ebp */
   2099     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006548: ret  */
   2100 L_30006549:
   2101     /* cmp esi, 0x00040002u */ /* 0x30006549: cmp esi, 0x40002 */
   2102     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x00040002u);
   2103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2104     _flag_k = FK_CMP;
   2105     if (CMP_A(_flag_a, _flag_b)) goto L_3000659F; /* 0x3000654F: ja 0x3000659f */
   2106 L_30006551:
   2107     if (CMP_EQ(_flag_a, _flag_b)) goto L_30006590; /* 0x30006551: je 0x30006590 */
   2108 L_30006553:
   2109     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x00030001u);
   2110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2111     esi = esi - 0x00030001u; /* 0x30006553: sub esi, 0x30001 */
   2112     _flag_k = FK_CMP;
   2113     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_30006581; /* 0x30006559: je 0x30006581 */
   2114 L_3000655B:
   2115     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   2116     esi = esi - 1; /* 0x3000655B: dec esi */
   2117     _flag_k = FK_DEC;
   2118     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30006572; /* 0x3000655C: je 0x30006572 */
   2119 L_3000655E:
   2120     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2);
   2121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2122     esi = esi - 2; /* 0x3000655E: sub esi, 2 */
   2123     _flag_k = FK_CMP;
   2124     if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_300065B2; /* 0x30006561: jne 0x300065b2 */
   2125 L_30006563:
   2126     PUSH32(esp, edi); /* 0x30006563: push edi */
   2127     PUSH32(esp, ebx); /* 0x30006564: push ebx */
   2128     RECOMP_ICALL(0x30006D90u); /* 0x30006565: call 0x30006d90 */ /* not lifted */
   2129     RECOMP_FLAGS_IN();
   2130     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2131     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2132     esp = esp + 8; /* 0x3000656A: add esp, 8 */
   2133     _flag_k = FK_ADD;
   2134     edi = POP32_VAL(esp); /* 0x3000656D: pop edi */
   2135     esi = POP32_VAL(esp); /* 0x3000656E: pop esi */
   2136     ebx = POP32_VAL(esp); /* 0x3000656F: pop ebx */
   2137     ebp = POP32_VAL(esp); /* 0x30006570: pop ebp */
   2138     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006571: ret  */
   2139 L_30006572:
   2140     PUSH32(esp, edi); /* 0x30006572: push edi */
   2141     PUSH32(esp, ebx); /* 0x30006573: push ebx */
   2142     RECOMP_ICALL(0x300069B0u); /* 0x30006574: call 0x300069b0 */ /* not lifted */
   2143     RECOMP_FLAGS_IN();
   2144     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2145     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2146     esp = esp + 8; /* 0x30006579: add esp, 8 */
   2147     _flag_k = FK_ADD;
   2148     edi = POP32_VAL(esp); /* 0x3000657C: pop edi */
   2149     esi = POP32_VAL(esp); /* 0x3000657D: pop esi */
   2150     ebx = POP32_VAL(esp); /* 0x3000657E: pop ebx */
   2151     ebp = POP32_VAL(esp); /* 0x3000657F: pop ebp */
   2152     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006580: ret  */
   2153 L_30006581:
   2154     PUSH32(esp, edi); /* 0x30006581: push edi */
   2155     PUSH32(esp, ebx); /* 0x30006582: push ebx */
   2156     RECOMP_ICALL(0x30006690u); /* 0x30006583: call 0x30006690 */ /* not lifted */
   2157     RECOMP_FLAGS_IN();
   2158     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2159     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2160     esp = esp + 8; /* 0x30006588: add esp, 8 */
   2161     _flag_k = FK_ADD;
   2162     edi = POP32_VAL(esp); /* 0x3000658B: pop edi */
   2163     esi = POP32_VAL(esp); /* 0x3000658C: pop esi */
   2164     ebx = POP32_VAL(esp); /* 0x3000658D: pop ebx */
   2165     ebp = POP32_VAL(esp); /* 0x3000658E: pop ebp */
   2166     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000658F: ret  */
   2167 L_30006590:
   2168     PUSH32(esp, ebx); /* 0x30006590: push ebx */
   2169     PUSH32(esp, edi); /* 0x30006591: push edi */
   2170     RECOMP_ICALL(0x30006BC0u); /* 0x30006592: call 0x30006bc0 */ /* not lifted */
   2171     RECOMP_FLAGS_IN();
   2172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2173     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2174     esp = esp + 8; /* 0x30006597: add esp, 8 */
   2175     _flag_k = FK_ADD;
   2176     edi = POP32_VAL(esp); /* 0x3000659A: pop edi */
   2177     esi = POP32_VAL(esp); /* 0x3000659B: pop esi */
   2178     ebx = POP32_VAL(esp); /* 0x3000659C: pop ebx */
   2179     ebp = POP32_VAL(esp); /* 0x3000659D: pop ebp */
   2180     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000659E: ret  */
   2181 L_3000659F:
   2182     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x00040003u);
   2183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2184     esi = esi - 0x00040003u; /* 0x3000659F: sub esi, 0x40003 */
   2185     _flag_k = FK_CMP;
   2186     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_300065D7; /* 0x300065A5: je 0x300065d7 */
   2187 L_300065A7:
   2188     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   2189     esi = esi - 1; /* 0x300065A7: dec esi */
   2190     _flag_k = FK_DEC;
   2191     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_300065C8; /* 0x300065A8: je 0x300065c8 */
   2192 L_300065AA:
   2193     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFEu);
   2194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2195     esi = esi - 0xFFFEu; /* 0x300065AA: sub esi, 0xfffe */
   2196     _flag_k = FK_CMP;
   2197     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_300065B9; /* 0x300065B0: je 0x300065b9 */
   2198 L_300065B2:
   2199     edi = POP32_VAL(esp); /* 0x300065B2: pop edi */
   2200     esi = POP32_VAL(esp); /* 0x300065B3: pop esi */
   2201     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2202     SET_LO8(eax, 0); /* 0x300065B4: xor al, al */
   2203     _cf = 0;
   2204     _flag_k = FK_NARROW(FK_TEST, 24);
   2205     ebx = POP32_VAL(esp); /* 0x300065B6: pop ebx */
   2206     ebp = POP32_VAL(esp); /* 0x300065B7: pop ebp */
   2207     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300065B8: ret  */
   2208 L_300065B9:
   2209     PUSH32(esp, ebx); /* 0x300065B9: push ebx */
   2210     PUSH32(esp, edi); /* 0x300065BA: push edi */
   2211     RECOMP_ICALL(0x30007090u); /* 0x300065BB: call 0x30007090 */ /* not lifted */
   2212     RECOMP_FLAGS_IN();
   2213     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2214     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2215     esp = esp + 8; /* 0x300065C0: add esp, 8 */
   2216     _flag_k = FK_ADD;
   2217     edi = POP32_VAL(esp); /* 0x300065C3: pop edi */
   2218     esi = POP32_VAL(esp); /* 0x300065C4: pop esi */
   2219     ebx = POP32_VAL(esp); /* 0x300065C5: pop ebx */
   2220     ebp = POP32_VAL(esp); /* 0x300065C6: pop ebp */
   2221     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300065C7: ret  */
   2222 L_300065C8:
   2223     PUSH32(esp, ebx); /* 0x300065C8: push ebx */
   2224     PUSH32(esp, edi); /* 0x300065C9: push edi */
   2225     RECOMP_ICALL(0x30006840u); /* 0x300065CA: call 0x30006840 */ /* not lifted */
   2226     RECOMP_FLAGS_IN();
   2227     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2228     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2229     esp = esp + 8; /* 0x300065CF: add esp, 8 */
   2230     _flag_k = FK_ADD;
   2231     edi = POP32_VAL(esp); /* 0x300065D2: pop edi */
   2232     esi = POP32_VAL(esp); /* 0x300065D3: pop esi */
   2233     ebx = POP32_VAL(esp); /* 0x300065D4: pop ebx */
   2234     ebp = POP32_VAL(esp); /* 0x300065D5: pop ebp */
   2235     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300065D6: ret  */
   2236 L_300065D7:
   2237     PUSH32(esp, ebx); /* 0x300065D7: push ebx */
   2238     PUSH32(esp, edi); /* 0x300065D8: push edi */
   2239     RECOMP_ICALL(0x30006D90u); /* 0x300065D9: call 0x30006d90 */ /* not lifted */
   2240     RECOMP_FLAGS_IN();
   2241     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2242     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2243     esp = esp + 8; /* 0x300065DE: add esp, 8 */
   2244     _flag_k = FK_ADD;
   2245     edi = POP32_VAL(esp); /* 0x300065E1: pop edi */
   2246     esi = POP32_VAL(esp); /* 0x300065E2: pop esi */
   2247     ebx = POP32_VAL(esp); /* 0x300065E3: pop ebx */
   2248     ebp = POP32_VAL(esp); /* 0x300065E4: pop ebp */
   2249     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300065E5: ret  */
   2250     RECOMP_REGS_OUT();
   2251 }
   2252 
   2253 void sub_300065F0(void) {
   2254     int _fpu_cmp = 0;
   2255     uint32_t _cf = 0;
   2256     int _df = 1;
   2257     uint32_t _flag_k = FK_NONE;
   2258     uint32_t _flag_a = 0, _flag_b = 0;
   2259     uint32_t _itail_tgt = 0;
   2260     RECOMP_REGS_LOCALS
   2261     RECOMP_ENTER(0x300065F0u);
   2262 
   2263 L_300065F0:
   2264     PUSH32(esp, ebp); /* 0x300065F0: push ebp */
   2265     ebp = esp; /* 0x300065F1: mov ebp, esp */
   2266     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2268     esp = esp - 0xCu; /* 0x300065F3: sub esp, 0xc */
   2269     _flag_k = FK_CMP;
   2270     edx = MEM32(ebp + 0x8); /* 0x300065F6: mov edx, dword ptr [ebp + 8] */
   2271     ecx = MEM32(ebp + 0xC); /* 0x300065F9: mov ecx, dword ptr [ebp + 0xc] */
   2272     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x300065FC: fld dword ptr [edx + 8] */
   2273     _st[0] += (double)*(float*)ADDR(edx + 0x1C); /* 0x300065FF: fadd dword ptr [edx + 0x1c] */
   2274     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x30006602: fld dword ptr [ecx + 8] */
   2275     _st[0] -= (double)*(float*)ADDR(ecx + 0x1C); /* 0x30006605: fsub dword ptr [ecx + 0x1c] */
   2276     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30006608: fcompp  */
   2277     fp_pop(); fp_pop();
   2278     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000660A: fnstsw ax */
   2279     /* test HI8(eax), 0x41u */ /* 0x3000660C: test ah, 0x41 */
   2280     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2281     _cf = 0;
   2282     _flag_k = FK_NARROW(FK_TEST, 24);
   2283     if (TEST_Z(_flag_a, _flag_b)) goto L_3000667B; /* 0x3000660F: je 0x3000667b */
   2284 L_30006611:
   2285     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x30006611: fld dword ptr [edx + 8] */
   2286     _st[0] -= (double)*(float*)ADDR(edx + 0x1C); /* 0x30006614: fsub dword ptr [edx + 0x1c] */
   2287     fp_push(*(float*)&MEM32(ecx + 0x1C)); /* 0x30006617: fld dword ptr [ecx + 0x1c] */
   2288     _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x3000661A: fadd dword ptr [ecx + 8] */
   2289     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3000661D: fcompp  */
   2290     fp_pop(); fp_pop();
   2291     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000661F: fnstsw ax */
   2292     /* test HI8(eax), 1 */ /* 0x30006621: test ah, 1 */
   2293     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2294     _cf = 0;
   2295     _flag_k = FK_NARROW(FK_TEST, 24);
   2296     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000667B; /* 0x30006624: jne 0x3000667b */
   2297 L_30006626:
   2298     PUSH32(esp, esi); /* 0x30006626: push esi */
   2299     eax = edx + 0x4; /* 0x30006627: lea eax, [edx + 4] */
   2300     esi = MEM32(eax); /* 0x3000662A: mov esi, dword ptr [eax] */
   2301     MEM32(ebp + (-0xC)) = esi; /* 0x3000662C: mov dword ptr [ebp - 0xc], esi */
   2302     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000662F: fld dword ptr [ebp - 0xc] */
   2303     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x30006632: fsub dword ptr [ecx + 4] */
   2304     esi = MEM32(eax + 0x4); /* 0x30006635: mov esi, dword ptr [eax + 4] */
   2305     eax = MEM32(eax + 0x8); /* 0x30006638: mov eax, dword ptr [eax + 8] */
   2306     MEM32(ebp + (-0x8)) = esi; /* 0x3000663B: mov dword ptr [ebp - 8], esi */
   2307     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3000663E: fld dword ptr [ebp - 8] */
   2308     _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x30006641: fsub dword ptr [ecx + 8] */
   2309     MEM32(ebp + (-0x4)) = eax; /* 0x30006644: mov dword ptr [ebp - 4], eax */
   2310     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006647: fld dword ptr [ebp - 4] */
   2311     esi = POP32_VAL(esp); /* 0x3000664A: pop esi */
   2312     _st[0] -= (double)*(float*)ADDR(ecx + 0xC); /* 0x3000664B: fsub dword ptr [ecx + 0xc] */
   2313     fp_push(_st[0]); /* 0x3000664E: fld st(0) */
   2314     _st[0] *= _st[1]; /* 0x30006650: fmul st(1) */
   2315     fp_push(_st[3]); /* 0x30006652: fld st(3) */
   2316     _st[0] *= _st[4]; /* 0x30006654: fmul st(4) */
   2317     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006656: faddp st(1) */
   2318     fp_push(_st[2]); /* 0x30006658: fld st(2) */
   2319     _st[0] *= _st[3]; /* 0x3000665A: fmul st(3) */
   2320     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000665C: faddp st(1) */
   2321     _st[0] = sqrt(_st[0]); /* 0x3000665E: fsqrt  */
   2322     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x30006660: fstp st(3) */
   2323     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006662: fstp st(0) */
   2324     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006664: fstp st(0) */
   2325     fp_push(*(float*)&MEM32(edx + 0x18)); /* 0x30006666: fld dword ptr [edx + 0x18] */
   2326     _st[0] += (double)*(float*)ADDR(ecx + 0x18); /* 0x30006669: fadd dword ptr [ecx + 0x18] */
   2327     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3000666C: fcompp  */
   2328     fp_pop(); fp_pop();
   2329     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000666E: fnstsw ax */
   2330     /* test HI8(eax), 0x41u */ /* 0x30006670: test ah, 0x41 */
   2331     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2332     _cf = 0;
   2333     _flag_k = FK_NARROW(FK_TEST, 24);
   2334     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000667B; /* 0x30006673: jne 0x3000667b */
   2335 L_30006675:
   2336     SET_LO8(eax, 1); /* 0x30006675: mov al, 1 */
   2337     esp = ebp; /* 0x30006677: mov esp, ebp */
   2338     ebp = POP32_VAL(esp); /* 0x30006679: pop ebp */
   2339     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000667A: ret  */
   2340 L_3000667B:
   2341     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2342     SET_LO8(eax, 0); /* 0x3000667B: xor al, al */
   2343     _cf = 0;
   2344     _flag_k = FK_NARROW(FK_TEST, 24);
   2345     esp = ebp; /* 0x3000667D: mov esp, ebp */
   2346     ebp = POP32_VAL(esp); /* 0x3000667F: pop ebp */
   2347     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006680: ret  */
   2348     RECOMP_REGS_OUT();
   2349 }
   2350 
   2351 void sub_30006690(void) {
   2352     int _fpu_cmp = 0;
   2353     uint32_t _cf = 0;
   2354     int _df = 1;
   2355     uint32_t _flag_k = FK_NONE;
   2356     uint32_t _flag_a = 0, _flag_b = 0;
   2357     uint32_t _itail_tgt = 0;
   2358     RECOMP_REGS_LOCALS
   2359     RECOMP_ENTER(0x30006690u);
   2360 
   2361 L_30006690:
   2362     PUSH32(esp, ebp); /* 0x30006690: push ebp */
   2363     ebp = esp; /* 0x30006691: mov ebp, esp */
   2364     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   2365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2366     esp = esp - 0x24u; /* 0x30006693: sub esp, 0x24 */
   2367     _flag_k = FK_CMP;
   2368     PUSH32(esp, ebx); /* 0x30006696: push ebx */
   2369     ebx = MEM32(ebp + 0xC); /* 0x30006697: mov ebx, dword ptr [ebp + 0xc] */
   2370     PUSH32(esp, esi); /* 0x3000669A: push esi */
   2371     esi = MEM32(ebp + 0x8); /* 0x3000669B: mov esi, dword ptr [ebp + 8] */
   2372     PUSH32(esp, edi); /* 0x3000669E: push edi */
   2373     edi = ebx + 0x18; /* 0x3000669F: lea edi, [ebx + 0x18] */
   2374     ecx = edi; /* 0x300066A2: mov ecx, edi */
   2375     eax = MEM32(ecx); /* 0x300066A4: mov eax, dword ptr [ecx] */
   2376     edx = MEM32(ecx + 0x4); /* 0x300066A6: mov edx, dword ptr [ecx + 4] */
   2377     ecx = MEM32(ecx + 0x8); /* 0x300066A9: mov ecx, dword ptr [ecx + 8] */
   2378     MEM32(ebp + (-0x14)) = edx; /* 0x300066AC: mov dword ptr [ebp - 0x14], edx */
   2379     MEM32(ebp + (-0x10)) = ecx; /* 0x300066AF: mov dword ptr [ebp - 0x10], ecx */
   2380     edx = ebx + 0x4; /* 0x300066B2: lea edx, [ebx + 4] */
   2381     ecx = MEM32(edx); /* 0x300066B5: mov ecx, dword ptr [edx] */
   2382     MEM32(ebp + (-0xC)) = ecx; /* 0x300066B7: mov dword ptr [ebp - 0xc], ecx */
   2383     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x300066BA: fld dword ptr [ebp - 0xc] */
   2384     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x300066BD: fsub dword ptr [esi + 4] */
   2385     ecx = MEM32(edx + 0x4); /* 0x300066C0: mov ecx, dword ptr [edx + 4] */
   2386     edx = MEM32(edx + 0x8); /* 0x300066C3: mov edx, dword ptr [edx + 8] */
   2387     MEM32(ebp + (-0x4)) = edx; /* 0x300066C6: mov dword ptr [ebp - 4], edx */
   2388     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x300066C9: fstp dword ptr [ebp - 0xc] */
   2389     MEM32(ebp + (-0x8)) = ecx; /* 0x300066CC: mov dword ptr [ebp - 8], ecx */
   2390     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300066CF: fld dword ptr [ebp - 4] */
   2391     ecx = MEM32(ebp + (-0x10)); /* 0x300066D2: mov ecx, dword ptr [ebp - 0x10] */
   2392     _st[0] -= (double)*(float*)ADDR(esi + 0xC); /* 0x300066D5: fsub dword ptr [esi + 0xc] */
   2393     MEM32(ebp + (-0x18)) = eax; /* 0x300066D8: mov dword ptr [ebp - 0x18], eax */
   2394     MEM32(ebp + (-0x24)) = eax; /* 0x300066DB: mov dword ptr [ebp - 0x24], eax */
   2395     MEM32(ebp + (-0x14)) = 0; /* 0x300066DE: mov dword ptr [ebp - 0x14], 0 */
   2396     eax = MEM32(ebp + (-0x14)); /* 0x300066E5: mov eax, dword ptr [ebp - 0x14] */
   2397     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x300066E8: fstp dword ptr [ebp - 4] */
   2398     MEM32(ebp + (-0x1C)) = ecx; /* 0x300066EB: mov dword ptr [ebp - 0x1c], ecx */
   2399     ecx = ebp + (-0x24); /* 0x300066EE: lea ecx, [ebp - 0x24] */
   2400     MEM32(ebp + (-0x20)) = eax; /* 0x300066F1: mov dword ptr [ebp - 0x20], eax */
   2401     RECOMP_ICALL(MEM32(0x300190CC)); /* 0x300066F4: call dword ptr [0x300190cc] */
   2402     RECOMP_FLAGS_IN();
   2403     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x300066FA: fld dword ptr [ebp - 0x24] */
   2404     _st[0] *= _st[1]; /* 0x300066FD: fmul st(1) */
   2405     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300066FF: fstp dword ptr [ebp - 0x24] */
   2406     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x30006702: fmul dword ptr [ebp - 0x1c] */
   2407     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x30006705: fmul dword ptr [ebp - 4] */
   2408     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x30006708: fld dword ptr [ebp - 0x24] */
   2409     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000670B: fmul dword ptr [ebp - 0xc] */
   2410     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000670E: faddp st(1) */
   2411     fp_push(*(float*)&MEM32(esi + 0x18)); /* 0x30006710: fld dword ptr [esi + 0x18] */
   2412     fp_push(_st[1]); /* 0x30006713: fld st(1) */
   2413     _st[0] *= _st[2]; /* 0x30006715: fmul st(2) */
   2414     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006717: fld dword ptr [ebp - 4] */
   2415     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000671A: fmul dword ptr [ebp - 4] */
   2416     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000671D: fld dword ptr [ebp - 0xc] */
   2417     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x30006720: fmul dword ptr [ebp - 0xc] */
   2418     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006723: faddp st(1) */
   2419     fp_push(_st[2]); /* 0x30006725: fld st(2) */
   2420     _st[0] *= _st[3]; /* 0x30006727: fmul st(3) */
   2421     { double _v = fp_pop(); _st[0] -= _v; } /* 0x30006729: fsubp st(1) */
   2422     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3000672B: fsubp st(1) */
   2423     { _st[1] = _st[0]; g_st_i64[1] = g_st_i64[0]; fp_pop(); } /* 0x3000672D: fstp st(1) */
   2424     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x300191A0)); /* 0x3000672F: fcom qword ptr [0x300191a0] */
   2425     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006735: fnstsw ax */
   2426     /* test HI8(eax), 1 */ /* 0x30006737: test ah, 1 */
   2427     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2428     _cf = 0;
   2429     _flag_k = FK_NARROW(FK_TEST, 24);
   2430     if (TEST_NZ(_flag_a, _flag_b)) goto L_300067E2; /* 0x3000673A: jne 0x300067e2 */
   2431 L_30006740:
   2432     fp_xch(1); /* 0x30006740: fxch st(1) */
   2433     _st[0] = -_st[0]; /* 0x30006742: fchs  */
   2434     fp_push(_st[1]); /* 0x30006744: fld st(1) */
   2435     _st[0] *= _st[2]; /* 0x30006746: fmul st(2) */
   2436     { double _v = fp_pop(); _st[0] -= _v; } /* 0x30006748: fsubp st(1) */
   2437     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3000674A: fstp dword ptr [ebp + 0xc] */
   2438     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000674D: fstp st(0) */
   2439     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000674F: fld dword ptr [ebp - 0x10] */
   2440     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x30006752: fld dword ptr [ebp - 0x18] */
   2441     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30006755: fmul dword ptr [ebp - 0x18] */
   2442     fp_push(_st[1]); /* 0x30006758: fld st(1) */
   2443     _st[0] *= _st[2]; /* 0x3000675A: fmul st(2) */
   2444     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000675C: faddp st(1) */
   2445     _st[0] = sqrt(_st[0]); /* 0x3000675E: fsqrt  */
   2446     { _st[1] = _st[0]; g_st_i64[1] = g_st_i64[0]; fp_pop(); } /* 0x30006760: fstp st(1) */
   2447     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0xC)); /* 0x30006762: fcomp dword ptr [ebp + 0xc] */
   2448     fp_pop();
   2449     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006765: fnstsw ax */
   2450     /* test HI8(eax), 1 */ /* 0x30006767: test ah, 1 */
   2451     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2452     _cf = 0;
   2453     _flag_k = FK_NARROW(FK_TEST, 24);
   2454     if (TEST_NZ(_flag_a, _flag_b)) goto L_300067E6; /* 0x3000676A: jne 0x300067e6 */
   2455 L_3000676C:
   2456     ecx = MEM32(edi + 0x8); /* 0x3000676C: mov ecx, dword ptr [edi + 8] */
   2457     eax = MEM32(edi + 0x4); /* 0x3000676F: mov eax, dword ptr [edi + 4] */
   2458     edx = MEM32(edi); /* 0x30006772: mov edx, dword ptr [edi] */
   2459     MEM32(ebp + (-0x4)) = ecx; /* 0x30006774: mov dword ptr [ebp - 4], ecx */
   2460     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006777: fld dword ptr [ebp - 4] */
   2461     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000677A: fmul dword ptr [ebp - 4] */
   2462     MEM32(ebp + (-0x8)) = eax; /* 0x3000677D: mov dword ptr [ebp - 8], eax */
   2463     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30006780: fld dword ptr [ebp - 8] */
   2464     MEM32(ebp + (-0xC)) = edx; /* 0x30006783: mov dword ptr [ebp - 0xc], edx */
   2465     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x30006786: fmul dword ptr [ebp - 8] */
   2466     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006789: faddp st(1) */
   2467     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000678B: fld dword ptr [ebp - 0xc] */
   2468     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000678E: fmul dword ptr [ebp - 0xc] */
   2469     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006791: faddp st(1) */
   2470     _st[0] = sqrt(_st[0]); /* 0x30006793: fsqrt  */
   2471     _st[0] = (double)*(float*)ADDR(0x300191B8) / _st[0]; /* 0x30006795: fdivr dword ptr [0x300191b8] */
   2472     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3000679B: fld dword ptr [ebp - 8] */
   2473     _st[0] *= _st[1]; /* 0x3000679E: fmul st(1) */
   2474     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x300067A0: fstp dword ptr [ebp - 8] */
   2475     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300067A3: fstp st(0) */
   2476     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300067A5: fld dword ptr [ebp - 8] */
   2477     RECOMP_ICALL(0x300181FEu); /* 0x300067A8: call 0x300181fe */ /* not lifted */
   2478     RECOMP_FLAGS_IN();
   2479     _st[0] = tan(_st[0]); fp_push(1.0); _fpu_cmp = 1; /* 0x300067AD: fptan  */
   2480     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300067AF: fstp st(0) */
   2481     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x300067B1: fmul dword ptr [ebp + 0xc] */
   2482     _st[0] += (double)*(float*)ADDR(ebx + 0x8); /* 0x300067B4: fadd dword ptr [ebx + 8] */
   2483     fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x300067B7: fld dword ptr [esi + 0x1c] */
   2484     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x300067BA: fadd dword ptr [esi + 8] */
   2485     fp_push(_st[1]); /* 0x300067BD: fld st(1) */
   2486     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300067BF: fcompp  */
   2487     fp_pop(); fp_pop();
   2488     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300067C1: fnstsw ax */
   2489     /* test HI8(eax), 0x41u */ /* 0x300067C3: test ah, 0x41 */
   2490     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2491     _cf = 0;
   2492     _flag_k = FK_NARROW(FK_TEST, 24);
   2493     if (TEST_Z(_flag_a, _flag_b)) goto L_300067E4; /* 0x300067C6: je 0x300067e4 */
   2494 L_300067C8:
   2495     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x300067C8: fld dword ptr [esi + 8] */
   2496     _st[0] -= (double)*(float*)ADDR(esi + 0x1C); /* 0x300067CB: fsub dword ptr [esi + 0x1c] */
   2497     fp_xch(1); /* 0x300067CE: fxch st(1) */
   2498     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300067D0: fcompp  */
   2499     fp_pop(); fp_pop();
   2500     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300067D2: fnstsw ax */
   2501     /* test HI8(eax), 1 */ /* 0x300067D4: test ah, 1 */
   2502     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2503     _cf = 0;
   2504     _flag_k = FK_NARROW(FK_TEST, 24);
   2505     if (TEST_NZ(_flag_a, _flag_b)) goto L_300067E6; /* 0x300067D7: jne 0x300067e6 */
   2506 L_300067D9:
   2507     edi = POP32_VAL(esp); /* 0x300067D9: pop edi */
   2508     esi = POP32_VAL(esp); /* 0x300067DA: pop esi */
   2509     SET_LO8(eax, 1); /* 0x300067DB: mov al, 1 */
   2510     ebx = POP32_VAL(esp); /* 0x300067DD: pop ebx */
   2511     esp = ebp; /* 0x300067DE: mov esp, ebp */
   2512     ebp = POP32_VAL(esp); /* 0x300067E0: pop ebp */
   2513     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300067E1: ret  */
   2514 L_300067E2:
   2515     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300067E2: fstp st(0) */
   2516 L_300067E4:
   2517     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300067E4: fstp st(0) */
   2518 L_300067E6:
   2519     edi = POP32_VAL(esp); /* 0x300067E6: pop edi */
   2520     esi = POP32_VAL(esp); /* 0x300067E7: pop esi */
   2521     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2522     SET_LO8(eax, 0); /* 0x300067E8: xor al, al */
   2523     _cf = 0;
   2524     _flag_k = FK_NARROW(FK_TEST, 24);
   2525     ebx = POP32_VAL(esp); /* 0x300067EA: pop ebx */
   2526     esp = ebp; /* 0x300067EB: mov esp, ebp */
   2527     ebp = POP32_VAL(esp); /* 0x300067ED: pop ebp */
   2528     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300067EE: ret  */
   2529     RECOMP_REGS_OUT();
   2530 }
   2531 
   2532 void sub_300067F0(void) {
   2533     int _fpu_cmp = 0;
   2534     uint32_t _cf = 0;
   2535     int _df = 1;
   2536     uint32_t _flag_k = FK_NONE;
   2537     uint32_t _flag_a = 0, _flag_b = 0;
   2538     uint32_t _itail_tgt = 0;
   2539     RECOMP_REGS_LOCALS
   2540     RECOMP_ENTER(0x300067F0u);
   2541 
   2542 L_300067F0:
   2543     PUSH32(esp, ebp); /* 0x300067F0: push ebp */
   2544     ebp = esp; /* 0x300067F1: mov ebp, esp */
   2545     eax = MEM32(ebp + 0x8); /* 0x300067F3: mov eax, dword ptr [ebp + 8] */
   2546     ecx = MEM32(ebp + 0xC); /* 0x300067F6: mov ecx, dword ptr [ebp + 0xc] */
   2547     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x300067F9: fld dword ptr [eax + 4] */
   2548     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x300067FC: fsub dword ptr [ecx + 4] */
   2549     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x300067FF: fld dword ptr [eax + 8] */
   2550     _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x30006802: fsub dword ptr [ecx + 8] */
   2551     fp_push(*(float*)&MEM32(eax + 0xC)); /* 0x30006805: fld dword ptr [eax + 0xc] */
   2552     _st[0] -= (double)*(float*)ADDR(ecx + 0xC); /* 0x30006808: fsub dword ptr [ecx + 0xc] */
   2553     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x3000680B: fld dword ptr [eax + 0x18] */
   2554     _st[0] += (double)*(float*)ADDR(ecx + 0x18); /* 0x3000680E: fadd dword ptr [ecx + 0x18] */
   2555     fp_push(_st[1]); /* 0x30006811: fld st(1) */
   2556     _st[0] *= _st[2]; /* 0x30006813: fmul st(2) */
   2557     fp_push(_st[3]); /* 0x30006815: fld st(3) */
   2558     _st[0] *= _st[4]; /* 0x30006817: fmul st(4) */
   2559     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006819: faddp st(1) */
   2560     fp_push(_st[4]); /* 0x3000681B: fld st(4) */
   2561     _st[0] *= _st[5]; /* 0x3000681D: fmul st(5) */
   2562     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000681F: faddp st(1) */
   2563     fp_push(_st[1]); /* 0x30006821: fld st(1) */
   2564     _st[0] *= _st[2]; /* 0x30006823: fmul st(2) */
   2565     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30006825: fcompp  */
   2566     fp_pop(); fp_pop();
   2567     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006827: fstp st(0) */
   2568     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006829: fstp st(0) */
   2569     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000682B: fnstsw ax */
   2570     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000682D: fstp st(0) */
   2571     /* test HI8(eax), 1 */ /* 0x3000682F: test ah, 1 */
   2572     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2573     _cf = 0;
   2574     _flag_k = FK_NARROW(FK_TEST, 24);
   2575     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006832: fstp st(0) */
   2576     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000683A; /* 0x30006834: jne 0x3000683a */
   2577 L_30006836:
   2578     SET_LO8(eax, 1); /* 0x30006836: mov al, 1 */
   2579     ebp = POP32_VAL(esp); /* 0x30006838: pop ebp */
   2580     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006839: ret  */
   2581 L_3000683A:
   2582     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2583     SET_LO8(eax, 0); /* 0x3000683A: xor al, al */
   2584     _cf = 0;
   2585     _flag_k = FK_NARROW(FK_TEST, 24);
   2586     ebp = POP32_VAL(esp); /* 0x3000683C: pop ebp */
   2587     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000683D: ret  */
   2588     RECOMP_REGS_OUT();
   2589 }
   2590 
   2591 void sub_30006840(void) {
   2592     int _fpu_cmp = 0;
   2593     uint32_t _cf = 0;
   2594     int _df = 1;
   2595     uint32_t _flag_k = FK_NONE;
   2596     uint32_t _flag_a = 0, _flag_b = 0;
   2597     uint32_t _itail_tgt = 0;
   2598     RECOMP_REGS_LOCALS
   2599     RECOMP_ENTER(0x30006840u);
   2600 
   2601 L_30006840:
   2602     PUSH32(esp, ebp); /* 0x30006840: push ebp */
   2603     ebp = esp; /* 0x30006841: mov ebp, esp */
   2604     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   2605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2606     esp = esp - 0x3Cu; /* 0x30006843: sub esp, 0x3c */
   2607     _flag_k = FK_CMP;
   2608     PUSH32(esp, esi); /* 0x30006846: push esi */
   2609     PUSH32(esp, edi); /* 0x30006847: push edi */
   2610     edi = MEM32(ebp + 0x8); /* 0x30006848: mov edi, dword ptr [ebp + 8] */
   2611     ecx = edi; /* 0x3000684B: mov ecx, edi */
   2612     RECOMP_ICALL(0x30005780u); /* 0x3000684D: call 0x30005780 */ /* not lifted */
   2613     RECOMP_FLAGS_IN();
   2614     /* test LO8(eax), LO8(eax) */ /* 0x30006852: test al, al */
   2615     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2616     _cf = 0;
   2617     _flag_k = FK_NARROW(FK_TEST, 24);
   2618     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000699E; /* 0x30006854: jne 0x3000699e */
   2619 L_3000685A:
   2620     esi = MEM32(ebp + 0xC); /* 0x3000685A: mov esi, dword ptr [ebp + 0xc] */
   2621     ecx = esi; /* 0x3000685D: mov ecx, esi */
   2622     RECOMP_ICALL(0x30005780u); /* 0x3000685F: call 0x30005780 */ /* not lifted */
   2623     RECOMP_FLAGS_IN();
   2624     /* test LO8(eax), LO8(eax) */ /* 0x30006864: test al, al */
   2625     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2626     _cf = 0;
   2627     _flag_k = FK_NARROW(FK_TEST, 24);
   2628     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000699E; /* 0x30006866: jne 0x3000699e */
   2629 L_3000686C:
   2630     eax = edi + 0x4; /* 0x3000686C: lea eax, [edi + 4] */
   2631     ecx = eax; /* 0x3000686F: mov ecx, eax */
   2632     edx = MEM32(ecx); /* 0x30006871: mov edx, dword ptr [ecx] */
   2633     MEM32(ebp + (-0xC)) = edx; /* 0x30006873: mov dword ptr [ebp - 0xc], edx */
   2634     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30006876: fld dword ptr [ebp - 0xc] */
   2635     _st[0] += (double)*(float*)ADDR(edi + 0x18); /* 0x30006879: fadd dword ptr [edi + 0x18] */
   2636     edx = MEM32(ecx + 0x4); /* 0x3000687C: mov edx, dword ptr [ecx + 4] */
   2637     ecx = MEM32(ecx + 0x8); /* 0x3000687F: mov ecx, dword ptr [ecx + 8] */
   2638     MEM32(ebp + (-0x8)) = edx; /* 0x30006882: mov dword ptr [ebp - 8], edx */
   2639     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x30006885: fstp dword ptr [ebp - 0xc] */
   2640     edx = MEM32(ebp + (-0xC)); /* 0x30006888: mov edx, dword ptr [ebp - 0xc] */
   2641     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3000688B: fld dword ptr [ebp - 8] */
   2642     MEM32(ebp + (-0x4)) = ecx; /* 0x3000688E: mov dword ptr [ebp - 4], ecx */
   2643     _st[0] += (double)*(float*)ADDR(edi + 0x1C); /* 0x30006891: fadd dword ptr [edi + 0x1c] */
   2644     MEM32(ebp + (-0x30)) = edx; /* 0x30006894: mov dword ptr [ebp - 0x30], edx */
   2645     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x30006897: fstp dword ptr [ebp - 8] */
   2646     ecx = MEM32(ebp + (-0x8)); /* 0x3000689A: mov ecx, dword ptr [ebp - 8] */
   2647     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3000689D: fld dword ptr [ebp - 4] */
   2648     MEM32(ebp + (-0x2C)) = ecx; /* 0x300068A0: mov dword ptr [ebp - 0x2c], ecx */
   2649     _st[0] += (double)*(float*)ADDR(edi + 0x20); /* 0x300068A3: fadd dword ptr [edi + 0x20] */
   2650     ecx = MEM32(eax); /* 0x300068A6: mov ecx, dword ptr [eax] */
   2651     MEM32(ebp + (-0xC)) = ecx; /* 0x300068A8: mov dword ptr [ebp - 0xc], ecx */
   2652     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x300068AB: fstp dword ptr [ebp - 4] */
   2653     edx = MEM32(ebp + (-0x4)); /* 0x300068AE: mov edx, dword ptr [ebp - 4] */
   2654     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x300068B1: fld dword ptr [ebp - 0xc] */
   2655     MEM32(ebp + (-0x28)) = edx; /* 0x300068B4: mov dword ptr [ebp - 0x28], edx */
   2656     _st[0] += (double)*(float*)ADDR(edi + 0x24); /* 0x300068B7: fadd dword ptr [edi + 0x24] */
   2657     edx = MEM32(eax + 0x4); /* 0x300068BA: mov edx, dword ptr [eax + 4] */
   2658     eax = MEM32(eax + 0x8); /* 0x300068BD: mov eax, dword ptr [eax + 8] */
   2659     MEM32(ebp + (-0x8)) = edx; /* 0x300068C0: mov dword ptr [ebp - 8], edx */
   2660     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x300068C3: fstp dword ptr [ebp - 0xc] */
   2661     ecx = MEM32(ebp + (-0xC)); /* 0x300068C6: mov ecx, dword ptr [ebp - 0xc] */
   2662     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300068C9: fld dword ptr [ebp - 8] */
   2663     MEM32(ebp + (-0x4)) = eax; /* 0x300068CC: mov dword ptr [ebp - 4], eax */
   2664     _st[0] += (double)*(float*)ADDR(edi + 0x28); /* 0x300068CF: fadd dword ptr [edi + 0x28] */
   2665     MEM32(ebp + (-0x24)) = ecx; /* 0x300068D2: mov dword ptr [ebp - 0x24], ecx */
   2666     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x300068D5: fstp dword ptr [ebp - 8] */
   2667     edx = MEM32(ebp + (-0x8)); /* 0x300068D8: mov edx, dword ptr [ebp - 8] */
   2668     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300068DB: fld dword ptr [ebp - 4] */
   2669     MEM32(ebp + (-0x20)) = edx; /* 0x300068DE: mov dword ptr [ebp - 0x20], edx */
   2670     _st[0] += (double)*(float*)ADDR(edi + 0x2C); /* 0x300068E1: fadd dword ptr [edi + 0x2c] */
   2671     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x300068E4: fstp dword ptr [ebp - 4] */
   2672     eax = MEM32(ebp + (-0x4)); /* 0x300068E7: mov eax, dword ptr [ebp - 4] */
   2673     MEM32(ebp + (-0x1C)) = eax; /* 0x300068EA: mov dword ptr [ebp - 0x1c], eax */
   2674     eax = esi + 0x4; /* 0x300068ED: lea eax, [esi + 4] */
   2675     ecx = eax; /* 0x300068F0: mov ecx, eax */
   2676     edx = MEM32(ecx); /* 0x300068F2: mov edx, dword ptr [ecx] */
   2677     MEM32(ebp + (-0xC)) = edx; /* 0x300068F4: mov dword ptr [ebp - 0xc], edx */
   2678     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x300068F7: fld dword ptr [ebp - 0xc] */
   2679     _st[0] += (double)*(float*)ADDR(esi + 0x18); /* 0x300068FA: fadd dword ptr [esi + 0x18] */
   2680     edx = MEM32(ecx + 0x4); /* 0x300068FD: mov edx, dword ptr [ecx + 4] */
   2681     ecx = MEM32(ecx + 0x8); /* 0x30006900: mov ecx, dword ptr [ecx + 8] */
   2682     MEM32(ebp + (-0x8)) = edx; /* 0x30006903: mov dword ptr [ebp - 8], edx */
   2683     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x30006906: fstp dword ptr [ebp - 0xc] */
   2684     edx = MEM32(ebp + (-0xC)); /* 0x30006909: mov edx, dword ptr [ebp - 0xc] */
   2685     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3000690C: fld dword ptr [ebp - 8] */
   2686     MEM32(ebp + (-0x4)) = ecx; /* 0x3000690F: mov dword ptr [ebp - 4], ecx */
   2687     _st[0] += (double)*(float*)ADDR(esi + 0x1C); /* 0x30006912: fadd dword ptr [esi + 0x1c] */
   2688     MEM32(ebp + (-0x18)) = edx; /* 0x30006915: mov dword ptr [ebp - 0x18], edx */
   2689     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x30006918: fstp dword ptr [ebp - 8] */
   2690     ecx = MEM32(ebp + (-0x8)); /* 0x3000691B: mov ecx, dword ptr [ebp - 8] */
   2691     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3000691E: fld dword ptr [ebp - 4] */
   2692     MEM32(ebp + (-0x14)) = ecx; /* 0x30006921: mov dword ptr [ebp - 0x14], ecx */
   2693     _st[0] += (double)*(float*)ADDR(esi + 0x20); /* 0x30006924: fadd dword ptr [esi + 0x20] */
   2694     ecx = MEM32(eax); /* 0x30006927: mov ecx, dword ptr [eax] */
   2695     MEM32(ebp + (-0xC)) = ecx; /* 0x30006929: mov dword ptr [ebp - 0xc], ecx */
   2696     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3000692C: fstp dword ptr [ebp - 4] */
   2697     edx = MEM32(ebp + (-0x4)); /* 0x3000692F: mov edx, dword ptr [ebp - 4] */
   2698     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30006932: fld dword ptr [ebp - 0xc] */
   2699     MEM32(ebp + (-0x10)) = edx; /* 0x30006935: mov dword ptr [ebp - 0x10], edx */
   2700     _st[0] += (double)*(float*)ADDR(esi + 0x24); /* 0x30006938: fadd dword ptr [esi + 0x24] */
   2701     edx = MEM32(eax + 0x4); /* 0x3000693B: mov edx, dword ptr [eax + 4] */
   2702     eax = MEM32(eax + 0x8); /* 0x3000693E: mov eax, dword ptr [eax + 8] */
   2703     MEM32(ebp + (-0x8)) = edx; /* 0x30006941: mov dword ptr [ebp - 8], edx */
   2704     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x30006944: fstp dword ptr [ebp - 0xc] */
   2705     MEM32(ebp + (-0x4)) = eax; /* 0x30006947: mov dword ptr [ebp - 4], eax */
   2706     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3000694A: fld dword ptr [ebp - 8] */
   2707     _st[0] += (double)*(float*)ADDR(esi + 0x28); /* 0x3000694D: fadd dword ptr [esi + 0x28] */
   2708     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x30006950: fstp dword ptr [ebp - 8] */
   2709     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006953: fld dword ptr [ebp - 4] */
   2710     _st[0] += (double)*(float*)ADDR(esi + 0x2C); /* 0x30006956: fadd dword ptr [esi + 0x2c] */
   2711     ecx = MEM32(ebp + (-0xC)); /* 0x30006959: mov ecx, dword ptr [ebp - 0xc] */
   2712     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3000695C: fstp dword ptr [ebp - 4] */
   2713     edx = MEM32(ebp + (-0x8)); /* 0x3000695F: mov edx, dword ptr [ebp - 8] */
   2714     eax = MEM32(ebp + (-0x4)); /* 0x30006962: mov eax, dword ptr [ebp - 4] */
   2715     MEM32(ebp + (-0x3C)) = ecx; /* 0x30006965: mov dword ptr [ebp - 0x3c], ecx */
   2716     MEM32(ebp + (-0x38)) = edx; /* 0x30006968: mov dword ptr [ebp - 0x38], edx */
   2717     MEM32(ebp + (-0x34)) = eax; /* 0x3000696B: mov dword ptr [ebp - 0x34], eax */
   2718     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2719     ecx = 0; /* 0x3000696E: xor ecx, ecx */
   2720     _cf = 0;
   2721     _flag_k = FK_TEST;
   2722 L_30006970:
   2723     fp_push(*(float*)&MEM32(ebp + ecx + (-0x18))); /* 0x30006970: fld dword ptr [ebp + ecx - 0x18] */
   2724     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + ecx + (-0x24))); /* 0x30006974: fcomp dword ptr [ebp + ecx - 0x24] */
   2725     fp_pop();
   2726     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006978: fnstsw ax */
   2727     /* test HI8(eax), 0x41u */ /* 0x3000697A: test ah, 0x41 */
   2728     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2729     _cf = 0;
   2730     _flag_k = FK_NARROW(FK_TEST, 24);
   2731     if (TEST_Z(_flag_a, _flag_b)) goto L_3000699E; /* 0x3000697D: je 0x3000699e */
   2732 L_3000697F:
   2733     fp_push(*(float*)&MEM32(ebp + ecx + (-0x30))); /* 0x3000697F: fld dword ptr [ebp + ecx - 0x30] */
   2734     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + ecx + (-0x3C))); /* 0x30006983: fcomp dword ptr [ebp + ecx - 0x3c] */
   2735     fp_pop();
   2736     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006987: fnstsw ax */
   2737     /* test HI8(eax), 0x41u */ /* 0x30006989: test ah, 0x41 */
   2738     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2739     _cf = 0;
   2740     _flag_k = FK_NARROW(FK_TEST, 24);
   2741     if (TEST_Z(_flag_a, _flag_b)) goto L_3000699E; /* 0x3000698C: je 0x3000699e */
   2742 L_3000698E:
   2743     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2745     ecx = ecx + 4; /* 0x3000698E: add ecx, 4 */
   2746     _flag_k = FK_ADD;
   2747     /* cmp ecx, 0xCu */ /* 0x30006991: cmp ecx, 0xc */
   2748     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2750     _flag_k = FK_CMP;
   2751     RECOMP_BACKEDGE();
   2752     if (CMP_L(_flag_a, _flag_b)) goto L_30006970; /* 0x30006994: jl 0x30006970 */
   2753 L_30006996:
   2754     edi = POP32_VAL(esp); /* 0x30006996: pop edi */
   2755     SET_LO8(eax, 1); /* 0x30006997: mov al, 1 */
   2756     esi = POP32_VAL(esp); /* 0x30006999: pop esi */
   2757     esp = ebp; /* 0x3000699A: mov esp, ebp */
   2758     ebp = POP32_VAL(esp); /* 0x3000699C: pop ebp */
   2759     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000699D: ret  */
   2760 L_3000699E:
   2761     edi = POP32_VAL(esp); /* 0x3000699E: pop edi */
   2762     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2763     SET_LO8(eax, 0); /* 0x3000699F: xor al, al */
   2764     _cf = 0;
   2765     _flag_k = FK_NARROW(FK_TEST, 24);
   2766     esi = POP32_VAL(esp); /* 0x300069A1: pop esi */
   2767     esp = ebp; /* 0x300069A2: mov esp, ebp */
   2768     ebp = POP32_VAL(esp); /* 0x300069A4: pop ebp */
   2769     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300069A5: ret  */
   2770     RECOMP_REGS_OUT();
   2771 }
   2772 
   2773 void sub_300069B0(void) {
   2774     int _fpu_cmp = 0;
   2775     uint32_t _cf = 0;
   2776     int _df = 1;
   2777     uint32_t _flag_k = FK_NONE;
   2778     uint32_t _flag_a = 0, _flag_b = 0;
   2779     uint32_t _itail_tgt = 0;
   2780     RECOMP_REGS_LOCALS
   2781     RECOMP_ENTER(0x300069B0u);
   2782 
   2783 L_300069B0:
   2784     PUSH32(esp, ebp); /* 0x300069B0: push ebp */
   2785     ebp = esp; /* 0x300069B1: mov ebp, esp */
   2786     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2788     esp = esp - 0x18u; /* 0x300069B3: sub esp, 0x18 */
   2789     _flag_k = FK_CMP;
   2790     eax = MEM32(ebp + 0xC); /* 0x300069B6: mov eax, dword ptr [ebp + 0xc] */
   2791     PUSH32(esp, ebx); /* 0x300069B9: push ebx */
   2792     PUSH32(esp, esi); /* 0x300069BA: push esi */
   2793     PUSH32(esp, edi); /* 0x300069BB: push edi */
   2794     edi = MEM32(ebp + 0x8); /* 0x300069BC: mov edi, dword ptr [ebp + 8] */
   2795     esi = edi + 0x4; /* 0x300069BF: lea esi, [edi + 4] */
   2796     ecx = esi; /* 0x300069C2: mov ecx, esi */
   2797     ebx = MEM32(ecx); /* 0x300069C4: mov ebx, dword ptr [ecx] */
   2798     edx = eax + 0x4; /* 0x300069C6: lea edx, [eax + 4] */
   2799     MEM32(ebp + (-0x18)) = ebx; /* 0x300069C9: mov dword ptr [ebp - 0x18], ebx */
   2800     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300069CC: fld dword ptr [ebp - 0x18] */
   2801     _st[0] -= (double)*(float*)ADDR(edx); /* 0x300069CF: fsub dword ptr [edx] */
   2802     ebx = MEM32(ecx + 0x4); /* 0x300069D1: mov ebx, dword ptr [ecx + 4] */
   2803     ecx = MEM32(ecx + 0x8); /* 0x300069D4: mov ecx, dword ptr [ecx + 8] */
   2804     MEM32(ebp + (-0x14)) = ebx; /* 0x300069D7: mov dword ptr [ebp - 0x14], ebx */
   2805     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x300069DA: fld dword ptr [ebp - 0x14] */
   2806     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x300069DD: fsub dword ptr [edx + 4] */
   2807     MEM32(ebp + (-0x10)) = ecx; /* 0x300069E0: mov dword ptr [ebp - 0x10], ecx */
   2808     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x300069E3: fld dword ptr [ebp - 0x10] */
   2809     ecx = eax + 0x18; /* 0x300069E6: lea ecx, [eax + 0x18] */
   2810     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x300069E9: fsub dword ptr [edx + 8] */
   2811     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x300069EC: fmul dword ptr [ecx + 8] */
   2812     fp_xch(1); /* 0x300069EF: fxch st(1) */
   2813     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x300069F1: fmul dword ptr [ecx + 4] */
   2814     { double _v = fp_pop(); _st[0] += _v; } /* 0x300069F4: faddp st(1) */
   2815     fp_xch(1); /* 0x300069F6: fxch st(1) */
   2816     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x300069F8: fmul dword ptr [ecx] */
   2817     { double _v = fp_pop(); _st[0] += _v; } /* 0x300069FA: faddp st(1) */
   2818     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x300069FC: fld dword ptr [ecx + 8] */
   2819     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x300069FF: fmul dword ptr [ecx + 8] */
   2820     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x30006A02: fld dword ptr [ecx + 4] */
   2821     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x30006A05: fmul dword ptr [ecx + 4] */
   2822     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006A08: faddp st(1) */
   2823     fp_push(*(float*)&MEM32(ecx)); /* 0x30006A0A: fld dword ptr [ecx] */
   2824     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x30006A0C: fmul dword ptr [ecx] */
   2825     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006A0E: faddp st(1) */
   2826     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x30006A10: fdivp st(1) */
   2827     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30006A12: fst dword ptr [ebp + 0xc] */
   2828     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300191B8)); /* 0x30006A15: fcomp dword ptr [0x300191b8] */
   2829     fp_pop();
   2830     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006A1B: fnstsw ax */
   2831     /* test HI8(eax), 1 */ /* 0x30006A1D: test ah, 1 */
   2832     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2833     _cf = 0;
   2834     _flag_k = FK_NARROW(FK_TEST, 24);
   2835     if (TEST_NZ(_flag_a, _flag_b)) goto L_30006A61; /* 0x30006A20: jne 0x30006a61 */
   2836 L_30006A22:
   2837     eax = MEM32(edx); /* 0x30006A22: mov eax, dword ptr [edx] */
   2838     MEM32(ebp + (-0xC)) = eax; /* 0x30006A24: mov dword ptr [ebp - 0xc], eax */
   2839     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30006A27: fld dword ptr [ebp - 0xc] */
   2840     _st[0] += (double)*(float*)ADDR(ecx); /* 0x30006A2A: fadd dword ptr [ecx] */
   2841     eax = MEM32(edx + 0x4); /* 0x30006A2C: mov eax, dword ptr [edx + 4] */
   2842     edx = MEM32(edx + 0x8); /* 0x30006A2F: mov edx, dword ptr [edx + 8] */
   2843     MEM32(ebp + (-0x8)) = eax; /* 0x30006A32: mov dword ptr [ebp - 8], eax */
   2844     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x30006A35: fstp dword ptr [ebp - 0xc] */
   2845     eax = MEM32(ebp + (-0xC)); /* 0x30006A38: mov eax, dword ptr [ebp - 0xc] */
   2846     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30006A3B: fld dword ptr [ebp - 8] */
   2847     MEM32(ebp + (-0x4)) = edx; /* 0x30006A3E: mov dword ptr [ebp - 4], edx */
   2848     _st[0] += (double)*(float*)ADDR(ecx + 0x4); /* 0x30006A41: fadd dword ptr [ecx + 4] */
   2849     MEM32(ebp + (-0x18)) = eax; /* 0x30006A44: mov dword ptr [ebp - 0x18], eax */
   2850     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x30006A47: fstp dword ptr [ebp - 8] */
   2851     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006A4A: fld dword ptr [ebp - 4] */
   2852     _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x30006A4D: fadd dword ptr [ecx + 8] */
   2853     ecx = MEM32(ebp + (-0x8)); /* 0x30006A50: mov ecx, dword ptr [ebp - 8] */
   2854     MEM32(ebp + (-0x14)) = ecx; /* 0x30006A53: mov dword ptr [ebp - 0x14], ecx */
   2855     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x30006A56: fstp dword ptr [ebp - 4] */
   2856     edx = MEM32(ebp + (-0x4)); /* 0x30006A59: mov edx, dword ptr [ebp - 4] */
   2857     goto L_30006AE6; /* 0x30006A5C: jmp 0x30006ae6 */
   2858 L_30006A61:
   2859     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x30006A61: fld dword ptr [ebp + 0xc] */
   2860     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30006A64: fcomp dword ptr [0x3001919c] */
   2861     fp_pop();
   2862     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006A6A: fnstsw ax */
   2863     /* test HI8(eax), 0x41u */ /* 0x30006A6C: test ah, 0x41 */
   2864     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2865     _cf = 0;
   2866     _flag_k = FK_NARROW(FK_TEST, 24);
   2867     if (TEST_Z(_flag_a, _flag_b)) goto L_30006A81; /* 0x30006A6F: je 0x30006a81 */
   2868 L_30006A71:
   2869     eax = MEM32(edx); /* 0x30006A71: mov eax, dword ptr [edx] */
   2870     ecx = MEM32(edx + 0x4); /* 0x30006A73: mov ecx, dword ptr [edx + 4] */
   2871     edx = MEM32(edx + 0x8); /* 0x30006A76: mov edx, dword ptr [edx + 8] */
   2872     MEM32(ebp + (-0x18)) = eax; /* 0x30006A79: mov dword ptr [ebp - 0x18], eax */
   2873     MEM32(ebp + (-0x14)) = ecx; /* 0x30006A7C: mov dword ptr [ebp - 0x14], ecx */
   2874     goto L_30006AE6; /* 0x30006A7F: jmp 0x30006ae6 */
   2875 L_30006A81:
   2876     eax = MEM32(ecx); /* 0x30006A81: mov eax, dword ptr [ecx] */
   2877     MEM32(ebp + (-0x18)) = eax; /* 0x30006A83: mov dword ptr [ebp - 0x18], eax */
   2878     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x30006A86: fld dword ptr [ebp - 0x18] */
   2879     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x30006A89: fmul dword ptr [ebp + 0xc] */
   2880     eax = MEM32(ecx + 0x4); /* 0x30006A8C: mov eax, dword ptr [ecx + 4] */
   2881     ecx = MEM32(ecx + 0x8); /* 0x30006A8F: mov ecx, dword ptr [ecx + 8] */
   2882     MEM32(ebp + (-0x14)) = eax; /* 0x30006A92: mov dword ptr [ebp - 0x14], eax */
   2883     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x30006A95: fld dword ptr [ebp - 0x14] */
   2884     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x30006A98: fmul dword ptr [ebp + 0xc] */
   2885     eax = MEM32(edx); /* 0x30006A9B: mov eax, dword ptr [edx] */
   2886     MEM32(ebp + (-0x10)) = ecx; /* 0x30006A9D: mov dword ptr [ebp - 0x10], ecx */
   2887     ecx = MEM32(edx + 0x4); /* 0x30006AA0: mov ecx, dword ptr [edx + 4] */
   2888     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x30006AA3: fstp dword ptr [ebp - 0x14] */
   2889     edx = MEM32(edx + 0x8); /* 0x30006AA6: mov edx, dword ptr [edx + 8] */
   2890     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x30006AA9: fld dword ptr [ebp - 0x10] */
   2891     MEM32(ebp + (-0xC)) = eax; /* 0x30006AAC: mov dword ptr [ebp - 0xc], eax */
   2892     _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x30006AAF: fmul dword ptr [ebp + 0xc] */
   2893     MEM32(ebp + (-0x8)) = ecx; /* 0x30006AB2: mov dword ptr [ebp - 8], ecx */
   2894     MEM32(ebp + (-0x4)) = edx; /* 0x30006AB5: mov dword ptr [ebp - 4], edx */
   2895     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x30006AB8: fstp dword ptr [ebp - 0x10] */
   2896     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30006ABB: fld dword ptr [ebp - 0xc] */
   2897     _st[0] += _st[1]; /* 0x30006ABE: fadd st(1) */
   2898     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x30006AC0: fstp dword ptr [ebp - 0xc] */
   2899     eax = MEM32(ebp + (-0xC)); /* 0x30006AC3: mov eax, dword ptr [ebp - 0xc] */
   2900     MEM32(ebp + (-0x18)) = eax; /* 0x30006AC6: mov dword ptr [ebp - 0x18], eax */
   2901     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006AC9: fstp st(0) */
   2902     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30006ACB: fld dword ptr [ebp - 8] */
   2903     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x30006ACE: fadd dword ptr [ebp - 0x14] */
   2904     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x30006AD1: fstp dword ptr [ebp - 8] */
   2905     ecx = MEM32(ebp + (-0x8)); /* 0x30006AD4: mov ecx, dword ptr [ebp - 8] */
   2906     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006AD7: fld dword ptr [ebp - 4] */
   2907     MEM32(ebp + (-0x14)) = ecx; /* 0x30006ADA: mov dword ptr [ebp - 0x14], ecx */
   2908     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x30006ADD: fadd dword ptr [ebp - 0x10] */
   2909     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x30006AE0: fstp dword ptr [ebp - 4] */
   2910     edx = MEM32(ebp + (-0x4)); /* 0x30006AE3: mov edx, dword ptr [ebp - 4] */
   2911 L_30006AE6:
   2912     eax = MEM32(esi); /* 0x30006AE6: mov eax, dword ptr [esi] */
   2913     ecx = MEM32(esi + 0x4); /* 0x30006AE8: mov ecx, dword ptr [esi + 4] */
   2914     MEM32(ebp + (-0xC)) = eax; /* 0x30006AEB: mov dword ptr [ebp - 0xc], eax */
   2915     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30006AEE: fld dword ptr [ebp - 0xc] */
   2916     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30006AF1: fsub dword ptr [ebp - 0x18] */
   2917     MEM32(ebp + (-0x10)) = edx; /* 0x30006AF4: mov dword ptr [ebp - 0x10], edx */
   2918     edx = MEM32(esi + 0x8); /* 0x30006AF7: mov edx, dword ptr [esi + 8] */
   2919     MEM32(ebp + (-0x8)) = ecx; /* 0x30006AFA: mov dword ptr [ebp - 8], ecx */
   2920     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30006AFD: fld dword ptr [ebp - 8] */
   2921     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x30006B00: fsub dword ptr [ebp - 0x14] */
   2922     MEM32(ebp + (-0x4)) = edx; /* 0x30006B03: mov dword ptr [ebp - 4], edx */
   2923     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006B06: fld dword ptr [ebp - 4] */
   2924     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x30006B09: fsub dword ptr [ebp - 0x10] */
   2925     fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x30006B0C: fld dword ptr [edi + 0x18] */
   2926     edi = POP32_VAL(esp); /* 0x30006B0F: pop edi */
   2927     esi = POP32_VAL(esp); /* 0x30006B10: pop esi */
   2928     fp_push(_st[1]); /* 0x30006B11: fld st(1) */
   2929     ebx = POP32_VAL(esp); /* 0x30006B13: pop ebx */
   2930     _st[0] *= _st[2]; /* 0x30006B14: fmul st(2) */
   2931     fp_push(_st[3]); /* 0x30006B16: fld st(3) */
   2932     _st[0] *= _st[4]; /* 0x30006B18: fmul st(4) */
   2933     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006B1A: faddp st(1) */
   2934     fp_push(_st[4]); /* 0x30006B1C: fld st(4) */
   2935     _st[0] *= _st[5]; /* 0x30006B1E: fmul st(5) */
   2936     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006B20: faddp st(1) */
   2937     fp_push(_st[1]); /* 0x30006B22: fld st(1) */
   2938     _st[0] *= _st[2]; /* 0x30006B24: fmul st(2) */
   2939     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30006B26: fcompp  */
   2940     fp_pop(); fp_pop();
   2941     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006B28: fstp st(0) */
   2942     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006B2A: fstp st(0) */
   2943     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006B2C: fnstsw ax */
   2944     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006B2E: fstp st(0) */
   2945     /* test HI8(eax), 0x41u */ /* 0x30006B30: test ah, 0x41 */
   2946     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2947     _cf = 0;
   2948     _flag_k = FK_NARROW(FK_TEST, 24);
   2949     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006B33: fstp st(0) */
   2950     if (TEST_NZ(_flag_a, _flag_b)) goto L_30006B3D; /* 0x30006B35: jne 0x30006b3d */
   2951 L_30006B37:
   2952     SET_LO8(eax, 1); /* 0x30006B37: mov al, 1 */
   2953     esp = ebp; /* 0x30006B39: mov esp, ebp */
   2954     ebp = POP32_VAL(esp); /* 0x30006B3B: pop ebp */
   2955     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006B3C: ret  */
   2956 L_30006B3D:
   2957     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2958     SET_LO8(eax, 0); /* 0x30006B3D: xor al, al */
   2959     _cf = 0;
   2960     _flag_k = FK_NARROW(FK_TEST, 24);
   2961     esp = ebp; /* 0x30006B3F: mov esp, ebp */
   2962     ebp = POP32_VAL(esp); /* 0x30006B41: pop ebp */
   2963     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006B42: ret  */
   2964     RECOMP_REGS_OUT();
   2965 }
   2966 
   2967 void sub_30006AE6(void) {
   2968     int _fpu_cmp = 0;
   2969     uint32_t _cf = 0;
   2970     int _df = 1;
   2971     uint32_t _flag_k = FK_NONE;
   2972     uint32_t _flag_a = 0, _flag_b = 0;
   2973     uint32_t _itail_tgt = 0;
   2974     RECOMP_REGS_LOCALS
   2975     RECOMP_ENTER(0x30006AE6u);
   2976 
   2977 L_30006AE6:
   2978     eax = MEM32(esi); /* 0x30006AE6: mov eax, dword ptr [esi] */
   2979     ecx = MEM32(esi + 0x4); /* 0x30006AE8: mov ecx, dword ptr [esi + 4] */
   2980     MEM32(ebp + (-0xC)) = eax; /* 0x30006AEB: mov dword ptr [ebp - 0xc], eax */
   2981     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30006AEE: fld dword ptr [ebp - 0xc] */
   2982     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30006AF1: fsub dword ptr [ebp - 0x18] */
   2983     MEM32(ebp + (-0x10)) = edx; /* 0x30006AF4: mov dword ptr [ebp - 0x10], edx */
   2984     edx = MEM32(esi + 0x8); /* 0x30006AF7: mov edx, dword ptr [esi + 8] */
   2985     MEM32(ebp + (-0x8)) = ecx; /* 0x30006AFA: mov dword ptr [ebp - 8], ecx */
   2986     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30006AFD: fld dword ptr [ebp - 8] */
   2987     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x30006B00: fsub dword ptr [ebp - 0x14] */
   2988     MEM32(ebp + (-0x4)) = edx; /* 0x30006B03: mov dword ptr [ebp - 4], edx */
   2989     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006B06: fld dword ptr [ebp - 4] */
   2990     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x30006B09: fsub dword ptr [ebp - 0x10] */
   2991     fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x30006B0C: fld dword ptr [edi + 0x18] */
   2992     edi = POP32_VAL(esp); /* 0x30006B0F: pop edi */
   2993     esi = POP32_VAL(esp); /* 0x30006B10: pop esi */
   2994     fp_push(_st[1]); /* 0x30006B11: fld st(1) */
   2995     ebx = POP32_VAL(esp); /* 0x30006B13: pop ebx */
   2996     _st[0] *= _st[2]; /* 0x30006B14: fmul st(2) */
   2997     fp_push(_st[3]); /* 0x30006B16: fld st(3) */
   2998     _st[0] *= _st[4]; /* 0x30006B18: fmul st(4) */
   2999     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006B1A: faddp st(1) */
   3000     fp_push(_st[4]); /* 0x30006B1C: fld st(4) */
   3001     _st[0] *= _st[5]; /* 0x30006B1E: fmul st(5) */
   3002     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006B20: faddp st(1) */
   3003     fp_push(_st[1]); /* 0x30006B22: fld st(1) */
   3004     _st[0] *= _st[2]; /* 0x30006B24: fmul st(2) */
   3005     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30006B26: fcompp  */
   3006     fp_pop(); fp_pop();
   3007     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006B28: fstp st(0) */
   3008     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006B2A: fstp st(0) */
   3009     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006B2C: fnstsw ax */
   3010     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006B2E: fstp st(0) */
   3011     /* test HI8(eax), 0x41u */ /* 0x30006B30: test ah, 0x41 */
   3012     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3013     _cf = 0;
   3014     _flag_k = FK_NARROW(FK_TEST, 24);
   3015     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006B33: fstp st(0) */
   3016     if (TEST_NZ(_flag_a, _flag_b)) goto L_30006B3D; /* 0x30006B35: jne 0x30006b3d */
   3017 L_30006B37:
   3018     SET_LO8(eax, 1); /* 0x30006B37: mov al, 1 */
   3019     esp = ebp; /* 0x30006B39: mov esp, ebp */
   3020     ebp = POP32_VAL(esp); /* 0x30006B3B: pop ebp */
   3021     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006B3C: ret  */
   3022 L_30006B3D:
   3023     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3024     SET_LO8(eax, 0); /* 0x30006B3D: xor al, al */
   3025     _cf = 0;
   3026     _flag_k = FK_NARROW(FK_TEST, 24);
   3027     esp = ebp; /* 0x30006B3F: mov esp, ebp */
   3028     ebp = POP32_VAL(esp); /* 0x30006B41: pop ebp */
   3029     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006B42: ret  */
   3030     RECOMP_REGS_OUT();
   3031 }
   3032 
   3033 void sub_30006B50(void) {
   3034     int _fpu_cmp = 0;
   3035     uint32_t _cf = 0;
   3036     int _df = 1;
   3037     uint32_t _flag_k = FK_NONE;
   3038     uint32_t _flag_a = 0, _flag_b = 0;
   3039     uint32_t _itail_tgt = 0;
   3040     RECOMP_REGS_LOCALS
   3041     RECOMP_ENTER(0x30006B50u);
   3042 
   3043 L_30006B50:
   3044     PUSH32(esp, ebp); /* 0x30006B50: push ebp */
   3045     ebp = esp; /* 0x30006B51: mov ebp, esp */
   3046     ecx = MEM32(ebp + 0x8); /* 0x30006B53: mov ecx, dword ptr [ebp + 8] */
   3047     edx = MEM32(ebp + 0xC); /* 0x30006B56: mov edx, dword ptr [ebp + 0xc] */
   3048     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x30006B59: fld dword ptr [ecx + 8] */
   3049     _st[0] += (double)*(float*)ADDR(ecx + 0x1C); /* 0x30006B5C: fadd dword ptr [ecx + 0x1c] */
   3050     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x30006B5F: fld dword ptr [edx + 8] */
   3051     _st[0] -= (double)*(float*)ADDR(edx + 0x18); /* 0x30006B62: fsub dword ptr [edx + 0x18] */
   3052     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30006B65: fcompp  */
   3053     fp_pop(); fp_pop();
   3054     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006B67: fnstsw ax */
   3055     /* test HI8(eax), 0x41u */ /* 0x30006B69: test ah, 0x41 */
   3056     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3057     _cf = 0;
   3058     _flag_k = FK_NARROW(FK_TEST, 24);
   3059     if (TEST_Z(_flag_a, _flag_b)) goto L_30006BB6; /* 0x30006B6C: je 0x30006bb6 */
   3060 L_30006B6E:
   3061     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x30006B6E: fld dword ptr [ecx + 8] */
   3062     _st[0] -= (double)*(float*)ADDR(ecx + 0x1C); /* 0x30006B71: fsub dword ptr [ecx + 0x1c] */
   3063     fp_push(*(float*)&MEM32(edx + 0x18)); /* 0x30006B74: fld dword ptr [edx + 0x18] */
   3064     _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x30006B77: fadd dword ptr [edx + 8] */
   3065     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30006B7A: fcompp  */
   3066     fp_pop(); fp_pop();
   3067     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006B7C: fnstsw ax */
   3068     /* test HI8(eax), 1 */ /* 0x30006B7E: test ah, 1 */
   3069     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3070     _cf = 0;
   3071     _flag_k = FK_NARROW(FK_TEST, 24);
   3072     if (TEST_NZ(_flag_a, _flag_b)) goto L_30006BB6; /* 0x30006B81: jne 0x30006bb6 */
   3073 L_30006B83:
   3074     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x30006B83: fld dword ptr [edx + 4] */
   3075     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x30006B86: fsub dword ptr [ecx + 4] */
   3076     fp_push(*(float*)&MEM32(edx + 0xC)); /* 0x30006B89: fld dword ptr [edx + 0xc] */
   3077     _st[0] -= (double)*(float*)ADDR(ecx + 0xC); /* 0x30006B8C: fsub dword ptr [ecx + 0xc] */
   3078     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x30006B8F: fld dword ptr [ecx + 0x18] */
   3079     _st[0] += (double)*(float*)ADDR(edx + 0x18); /* 0x30006B92: fadd dword ptr [edx + 0x18] */
   3080     fp_push(_st[1]); /* 0x30006B95: fld st(1) */
   3081     _st[0] *= _st[2]; /* 0x30006B97: fmul st(2) */
   3082     fp_push(_st[3]); /* 0x30006B99: fld st(3) */
   3083     _st[0] *= _st[4]; /* 0x30006B9B: fmul st(4) */
   3084     { double _v = fp_pop(); _st[0] += _v; } /* 0x30006B9D: faddp st(1) */
   3085     fp_push(_st[1]); /* 0x30006B9F: fld st(1) */
   3086     _st[0] *= _st[2]; /* 0x30006BA1: fmul st(2) */
   3087     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30006BA3: fcompp  */
   3088     fp_pop(); fp_pop();
   3089     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006BA5: fstp st(0) */
   3090     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006BA7: fnstsw ax */
   3091     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006BA9: fstp st(0) */
   3092     /* test HI8(eax), 1 */ /* 0x30006BAB: test ah, 1 */
   3093     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3094     _cf = 0;
   3095     _flag_k = FK_NARROW(FK_TEST, 24);
   3096     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006BAE: fstp st(0) */
   3097     if (TEST_NZ(_flag_a, _flag_b)) goto L_30006BB6; /* 0x30006BB0: jne 0x30006bb6 */
   3098 L_30006BB2:
   3099     SET_LO8(eax, 1); /* 0x30006BB2: mov al, 1 */
   3100     ebp = POP32_VAL(esp); /* 0x30006BB4: pop ebp */
   3101     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006BB5: ret  */
   3102 L_30006BB6:
   3103     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3104     SET_LO8(eax, 0); /* 0x30006BB6: xor al, al */
   3105     _cf = 0;
   3106     _flag_k = FK_NARROW(FK_TEST, 24);
   3107     ebp = POP32_VAL(esp); /* 0x30006BB8: pop ebp */
   3108     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006BB9: ret  */
   3109     RECOMP_REGS_OUT();
   3110 }
   3111 
   3112 void sub_30006BC0(void) {
   3113     int _fpu_cmp = 0;
   3114     uint32_t _cf = 0;
   3115     int _df = 1;
   3116     uint32_t _flag_k = FK_NONE;
   3117     uint32_t _flag_a = 0, _flag_b = 0;
   3118     uint32_t _itail_tgt = 0;
   3119     RECOMP_REGS_LOCALS
   3120     RECOMP_ENTER(0x30006BC0u);
   3121 
   3122 L_30006BC0:
   3123     PUSH32(esp, ebp); /* 0x30006BC0: push ebp */
   3124     ebp = esp; /* 0x30006BC1: mov ebp, esp */
   3125     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u);
   3126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3127     esp = esp - 0x48u; /* 0x30006BC3: sub esp, 0x48 */
   3128     _flag_k = FK_CMP;
   3129     PUSH32(esp, ebx); /* 0x30006BC6: push ebx */
   3130     PUSH32(esp, esi); /* 0x30006BC7: push esi */
   3131     PUSH32(esp, edi); /* 0x30006BC8: push edi */
   3132     edi = MEM32(ebp + 0x8); /* 0x30006BC9: mov edi, dword ptr [ebp + 8] */
   3133     esi = edi + 0x4; /* 0x30006BCC: lea esi, [edi + 4] */
   3134     eax = esi; /* 0x30006BCF: mov eax, esi */
   3135     ecx = MEM32(eax); /* 0x30006BD1: mov ecx, dword ptr [eax] */
   3136     edx = MEM32(eax + 0x4); /* 0x30006BD3: mov edx, dword ptr [eax + 4] */
   3137     eax = MEM32(eax + 0x8); /* 0x30006BD6: mov eax, dword ptr [eax + 8] */
   3138     MEM32(ebp + (-0x3C)) = ecx; /* 0x30006BD9: mov dword ptr [ebp - 0x3c], ecx */
   3139     ecx = edi + 0x18; /* 0x30006BDC: lea ecx, [edi + 0x18] */
   3140     PUSH32(esp, ecx); /* 0x30006BDF: push ecx */
   3141     ecx = ebp + (-0x3C); /* 0x30006BE0: lea ecx, [ebp - 0x3c] */
   3142     MEM32(ebp + (-0x38)) = edx; /* 0x30006BE3: mov dword ptr [ebp - 0x38], edx */
   3143     MEM32(ebp + (-0x34)) = eax; /* 0x30006BE6: mov dword ptr [ebp - 0x34], eax */
   3144     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x30006BE9: call dword ptr [0x300190c4] */
   3145     RECOMP_FLAGS_IN();
   3146     edx = MEM32(eax); /* 0x30006BEF: mov edx, dword ptr [eax] */
   3147     ecx = MEM32(eax + 0x4); /* 0x30006BF1: mov ecx, dword ptr [eax + 4] */
   3148     MEM32(ebp + (-0x30)) = edx; /* 0x30006BF4: mov dword ptr [ebp - 0x30], edx */
   3149     edx = MEM32(eax + 0x8); /* 0x30006BF7: mov edx, dword ptr [eax + 8] */
   3150     MEM32(ebp + (-0x2C)) = ecx; /* 0x30006BFA: mov dword ptr [ebp - 0x2c], ecx */
   3151     eax = esi; /* 0x30006BFD: mov eax, esi */
   3152     ecx = MEM32(eax); /* 0x30006BFF: mov ecx, dword ptr [eax] */
   3153     MEM32(ebp + (-0x24)) = ecx; /* 0x30006C01: mov dword ptr [ebp - 0x24], ecx */
   3154     MEM32(ebp + (-0x28)) = edx; /* 0x30006C04: mov dword ptr [ebp - 0x28], edx */
   3155     edx = MEM32(eax + 0x4); /* 0x30006C07: mov edx, dword ptr [eax + 4] */
   3156     eax = MEM32(eax + 0x8); /* 0x30006C0A: mov eax, dword ptr [eax + 8] */
   3157     ecx = edi + 0x24; /* 0x30006C0D: lea ecx, [edi + 0x24] */
   3158     PUSH32(esp, ecx); /* 0x30006C10: push ecx */
   3159     ecx = ebp + (-0x24); /* 0x30006C11: lea ecx, [ebp - 0x24] */
   3160     MEM32(ebp + (-0x20)) = edx; /* 0x30006C14: mov dword ptr [ebp - 0x20], edx */
   3161     MEM32(ebp + (-0x1C)) = eax; /* 0x30006C17: mov dword ptr [ebp - 0x1c], eax */
   3162     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x30006C1A: call dword ptr [0x300190c4] */
   3163     RECOMP_FLAGS_IN();
   3164     edx = MEM32(eax); /* 0x30006C20: mov edx, dword ptr [eax] */
   3165     ecx = MEM32(eax + 0x4); /* 0x30006C22: mov ecx, dword ptr [eax + 4] */
   3166     ebx = MEM32(ebp + 0xC); /* 0x30006C25: mov ebx, dword ptr [ebp + 0xc] */
   3167     MEM32(ebp + (-0x3C)) = edx; /* 0x30006C28: mov dword ptr [ebp - 0x3c], edx */
   3168     edx = MEM32(eax + 0x8); /* 0x30006C2B: mov edx, dword ptr [eax + 8] */
   3169     MEM32(ebp + (-0x38)) = ecx; /* 0x30006C2E: mov dword ptr [ebp - 0x38], ecx */
   3170     eax = ebx + 0x4; /* 0x30006C31: lea eax, [ebx + 4] */
   3171     ecx = MEM32(eax); /* 0x30006C34: mov ecx, dword ptr [eax] */
   3172     MEM32(ebp + (-0x34)) = edx; /* 0x30006C36: mov dword ptr [ebp - 0x34], edx */
   3173     edx = MEM32(eax + 0x4); /* 0x30006C39: mov edx, dword ptr [eax + 4] */
   3174     eax = MEM32(eax + 0x8); /* 0x30006C3C: mov eax, dword ptr [eax + 8] */
   3175     MEM32(ebp + (-0xC)) = ecx; /* 0x30006C3F: mov dword ptr [ebp - 0xc], ecx */
   3176     ecx = edi; /* 0x30006C42: mov ecx, edi */
   3177     MEM32(ebp + (-0x8)) = edx; /* 0x30006C44: mov dword ptr [ebp - 8], edx */
   3178     MEM32(ebp + (-0x4)) = eax; /* 0x30006C47: mov dword ptr [ebp - 4], eax */
   3179     RECOMP_ICALL(0x30005780u); /* 0x30006C4A: call 0x30005780 */ /* not lifted */
   3180     RECOMP_FLAGS_IN();
   3181     /* test LO8(eax), LO8(eax) */ /* 0x30006C4F: test al, al */
   3182     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3183     _cf = 0;
   3184     _flag_k = FK_NARROW(FK_TEST, 24);
   3185     if (TEST_Z(_flag_a, _flag_b)) goto L_30006D1A; /* 0x30006C51: je 0x30006d1a */
   3186 L_30006C57:
   3187     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30006C57: fld dword ptr [ebp - 0xc] */
   3188     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x40u);
   3189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3190     edi = edi + 0x40u; /* 0x30006C5A: add edi, 0x40 */
   3191     _flag_k = FK_ADD;
   3192     _st[0] -= (double)*(float*)ADDR(esi); /* 0x30006C5D: fsub dword ptr [esi] */
   3193     ecx = edi; /* 0x30006C5F: mov ecx, edi */
   3194     edx = MEM32(ecx); /* 0x30006C61: mov edx, dword ptr [ecx] */
   3195     eax = MEM32(ecx + 0x4); /* 0x30006C63: mov eax, dword ptr [ecx + 4] */
   3196     ecx = MEM32(ecx + 0x8); /* 0x30006C66: mov ecx, dword ptr [ecx + 8] */
   3197     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x30006C69: fstp dword ptr [ebp - 0xc] */
   3198     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30006C6C: fld dword ptr [ebp - 8] */
   3199     MEM32(ebp + (-0x48)) = edx; /* 0x30006C6F: mov dword ptr [ebp - 0x48], edx */
   3200     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x30006C72: fsub dword ptr [esi + 4] */
   3201     edx = ebp + (-0xC); /* 0x30006C75: lea edx, [ebp - 0xc] */
   3202     MEM32(ebp + (-0x40)) = ecx; /* 0x30006C78: mov dword ptr [ebp - 0x40], ecx */
   3203     PUSH32(esp, edx); /* 0x30006C7B: push edx */
   3204     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x30006C7C: fstp dword ptr [ebp - 8] */
   3205     ecx = ebp + (-0x48); /* 0x30006C7F: lea ecx, [ebp - 0x48] */
   3206     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006C82: fld dword ptr [ebp - 4] */
   3207     MEM32(ebp + (-0x44)) = eax; /* 0x30006C85: mov dword ptr [ebp - 0x44], eax */
   3208     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x30006C88: fsub dword ptr [esi + 8] */
   3209     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x30006C8B: fstp dword ptr [ebp - 4] */
   3210     RECOMP_ICALL(MEM32(0x300190D8)); /* 0x30006C8E: call dword ptr [0x300190d8] */
   3211     RECOMP_FLAGS_IN();
   3212     ecx = MEM32(eax); /* 0x30006C94: mov ecx, dword ptr [eax] */
   3213     MEM32(ebp + (-0x18)) = ecx; /* 0x30006C96: mov dword ptr [ebp - 0x18], ecx */
   3214     edx = MEM32(eax + 0x4); /* 0x30006C99: mov edx, dword ptr [eax + 4] */
   3215     MEM32(ebp + (-0x14)) = edx; /* 0x30006C9C: mov dword ptr [ebp - 0x14], edx */
   3216     eax = MEM32(eax + 0x8); /* 0x30006C9F: mov eax, dword ptr [eax + 8] */
   3217     ecx = ebp + (-0x18); /* 0x30006CA2: lea ecx, [ebp - 0x18] */
   3218     PUSH32(esp, ecx); /* 0x30006CA5: push ecx */
   3219     edx = ebp + (-0x48); /* 0x30006CA6: lea edx, [ebp - 0x48] */
   3220     PUSH32(esp, edx); /* 0x30006CA9: push edx */
   3221     ecx = edi; /* 0x30006CAA: mov ecx, edi */
   3222     MEM32(ebp + (-0x10)) = eax; /* 0x30006CAC: mov dword ptr [ebp - 0x10], eax */
   3223     RECOMP_ICALL(MEM32(0x300190C0)); /* 0x30006CAF: call dword ptr [0x300190c0] */
   3224     RECOMP_FLAGS_IN();
   3225     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x30006CB5: fld dword ptr [edi + 0xc] */
   3226     ecx = MEM32(eax); /* 0x30006CB8: mov ecx, dword ptr [eax] */
   3227     _st[0] += _st[0]; /* 0x30006CBA: fadd st(0), st(0) */
   3228     MEM32(ebp + (-0x24)) = ecx; /* 0x30006CBC: mov dword ptr [ebp - 0x24], ecx */
   3229     edx = MEM32(eax + 0x4); /* 0x30006CBF: mov edx, dword ptr [eax + 4] */
   3230     MEM32(ebp + (-0x20)) = edx; /* 0x30006CC2: mov dword ptr [ebp - 0x20], edx */
   3231     eax = MEM32(eax + 0x8); /* 0x30006CC5: mov eax, dword ptr [eax + 8] */
   3232     PUSH32(esp, ecx); /* 0x30006CC8: push ecx */
   3233     ecx = ebp + (-0x18); /* 0x30006CC9: lea ecx, [ebp - 0x18] */
   3234     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x30006CCC: fstp dword ptr [esp] */
   3235     MEM32(ebp + (-0x1C)) = eax; /* 0x30006CCF: mov dword ptr [ebp - 0x1c], eax */
   3236     RECOMP_ICALL(MEM32(0x300190D0)); /* 0x30006CD2: call dword ptr [0x300190d0] */
   3237     RECOMP_FLAGS_IN();
   3238     PUSH32(esp, 0x40000000u); /* 0x30006CD8: push 0x40000000 */
   3239     ecx = ebp + (-0x24); /* 0x30006CDD: lea ecx, [ebp - 0x24] */
   3240     RECOMP_ICALL(MEM32(0x300190D0)); /* 0x30006CE0: call dword ptr [0x300190d0] */
   3241     RECOMP_FLAGS_IN();
   3242     ecx = ebp + (-0x18); /* 0x30006CE6: lea ecx, [ebp - 0x18] */
   3243     PUSH32(esp, ecx); /* 0x30006CE9: push ecx */
   3244     ecx = ebp + (-0xC); /* 0x30006CEA: lea ecx, [ebp - 0xc] */
   3245     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x30006CED: call dword ptr [0x300190c4] */
   3246     RECOMP_FLAGS_IN();
   3247     edx = ebp + (-0x24); /* 0x30006CF3: lea edx, [ebp - 0x24] */
   3248     PUSH32(esp, edx); /* 0x30006CF6: push edx */
   3249     ecx = ebp + (-0xC); /* 0x30006CF7: lea ecx, [ebp - 0xc] */
   3250     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x30006CFA: call dword ptr [0x300190c4] */
   3251     RECOMP_FLAGS_IN();
   3252     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30006D00: fld dword ptr [ebp - 0xc] */
   3253     _st[0] += (double)*(float*)ADDR(esi); /* 0x30006D03: fadd dword ptr [esi] */
   3254     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x30006D05: fstp dword ptr [ebp - 0xc] */
   3255     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30006D08: fld dword ptr [ebp - 8] */
   3256     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x30006D0B: fadd dword ptr [esi + 4] */
   3257     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x30006D0E: fstp dword ptr [ebp - 8] */
   3258     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30006D11: fld dword ptr [ebp - 4] */
   3259     _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x30006D14: fadd dword ptr [esi + 8] */
   3260     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x30006D17: fstp dword ptr [ebp - 4] */
   3261 L_30006D1A:
   3262     fp_push(*(float*)&MEM32(ebx + 0x18)); /* 0x30006D1A: fld dword ptr [ebx + 0x18] */
   3263     edi = POP32_VAL(esp); /* 0x30006D1D: pop edi */
   3264     fp_push(_st[0]); /* 0x30006D1E: fld st(0) */
   3265     esi = POP32_VAL(esp); /* 0x30006D20: pop esi */
   3266     _st[0] *= _st[1]; /* 0x30006D21: fmul st(1) */
   3267     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3268     ecx = 0; /* 0x30006D23: xor ecx, ecx */
   3269     _cf = 0;
   3270     _flag_k = FK_TEST;
   3271     ebx = POP32_VAL(esp); /* 0x30006D25: pop ebx */
   3272     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30006D26: fstp dword ptr [ebp + 8] */
   3273     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006D29: fstp st(0) */
   3274     fp_push(*(float*)&MEM32(0x3001919C)); /* 0x30006D2B: fld dword ptr [0x3001919c] */
   3275 L_30006D31:
   3276     fp_push(*(float*)&MEM32(ebp + ecx + (-0xC))); /* 0x30006D31: fld dword ptr [ebp + ecx - 0xc] */
   3277     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + ecx + (-0x30))); /* 0x30006D35: fcomp dword ptr [ebp + ecx - 0x30] */
   3278     fp_pop();
   3279     fp_push(*(float*)&MEM32(ebp + ecx + (-0xC))); /* 0x30006D39: fld dword ptr [ebp + ecx - 0xc] */
   3280     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006D3D: fnstsw ax */
   3281     /* test HI8(eax), 1 */ /* 0x30006D3F: test ah, 1 */
   3282     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3283     _cf = 0;
   3284     _flag_k = FK_NARROW(FK_TEST, 24);
   3285     if (TEST_Z(_flag_a, _flag_b)) goto L_30006D4A; /* 0x30006D42: je 0x30006d4a */
   3286 L_30006D44:
   3287     _st[0] -= (double)*(float*)ADDR(ebp + ecx + (-0x30)); /* 0x30006D44: fsub dword ptr [ebp + ecx - 0x30] */
   3288     goto L_30006D5D; /* 0x30006D48: jmp 0x30006d5d */
   3289 L_30006D4A:
   3290     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + ecx + (-0x3C))); /* 0x30006D4A: fcomp dword ptr [ebp + ecx - 0x3c] */
   3291     fp_pop();
   3292     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006D4E: fnstsw ax */
   3293     /* test HI8(eax), 0x41u */ /* 0x30006D50: test ah, 0x41 */
   3294     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3295     _cf = 0;
   3296     _flag_k = FK_NARROW(FK_TEST, 24);
   3297     if (TEST_NZ(_flag_a, _flag_b)) goto L_30006D65; /* 0x30006D53: jne 0x30006d65 */
   3298 L_30006D55:
   3299     fp_push(*(float*)&MEM32(ebp + ecx + (-0xC))); /* 0x30006D55: fld dword ptr [ebp + ecx - 0xc] */
   3300     _st[0] -= (double)*(float*)ADDR(ebp + ecx + (-0x3C)); /* 0x30006D59: fsub dword ptr [ebp + ecx - 0x3c] */
   3301 L_30006D5D:
   3302     fp_push(_st[0]); /* 0x30006D5D: fld st(0) */
   3303     _st[0] *= _st[1]; /* 0x30006D5F: fmul st(1) */
   3304     { double _v = fp_pop(); _st[1] += _v; } /* 0x30006D61: faddp st(2) */
   3305     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006D63: fstp st(0) */
   3306 L_30006D65:
   3307     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x30006D65: fcom dword ptr [ebp + 8] */
   3308     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006D68: fnstsw ax */
   3309     /* test HI8(eax), 0x41u */ /* 0x30006D6A: test ah, 0x41 */
   3310     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3311     _cf = 0;
   3312     _flag_k = FK_NARROW(FK_TEST, 24);
   3313     if (TEST_Z(_flag_a, _flag_b)) goto L_30006D7F; /* 0x30006D6D: je 0x30006d7f */
   3314 L_30006D6F:
   3315     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   3316     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3317     ecx = ecx + 4; /* 0x30006D6F: add ecx, 4 */
   3318     _flag_k = FK_ADD;
   3319     /* cmp ecx, 0xCu */ /* 0x30006D72: cmp ecx, 0xc */
   3320     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   3321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3322     _flag_k = FK_CMP;
   3323     RECOMP_BACKEDGE();
   3324     if (CMP_L(_flag_a, _flag_b)) goto L_30006D31; /* 0x30006D75: jl 0x30006d31 */
   3325 L_30006D77:
   3326     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006D77: fstp st(0) */
   3327     SET_LO8(eax, 1); /* 0x30006D79: mov al, 1 */
   3328     esp = ebp; /* 0x30006D7B: mov esp, ebp */
   3329     ebp = POP32_VAL(esp); /* 0x30006D7D: pop ebp */
   3330     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006D7E: ret  */
   3331 L_30006D7F:
   3332     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30006D7F: fstp st(0) */
   3333     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3334     SET_LO8(eax, 0); /* 0x30006D81: xor al, al */
   3335     _cf = 0;
   3336     _flag_k = FK_NARROW(FK_TEST, 24);
   3337     esp = ebp; /* 0x30006D83: mov esp, ebp */
   3338     ebp = POP32_VAL(esp); /* 0x30006D85: pop ebp */
   3339     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006D86: ret  */
   3340     RECOMP_REGS_OUT();
   3341 }
   3342 
   3343 void sub_30006D90(void) {
   3344     int _fpu_cmp = 0;
   3345     uint32_t _cf = 0;
   3346     int _df = 1;
   3347     uint32_t _flag_k = FK_NONE;
   3348     uint32_t _flag_a = 0, _flag_b = 0;
   3349     uint32_t _itail_tgt = 0;
   3350     RECOMP_REGS_LOCALS
   3351     RECOMP_ENTER(0x30006D90u);
   3352 
   3353 L_30006D90:
   3354     PUSH32(esp, ebp); /* 0x30006D90: push ebp */
   3355     ebp = esp; /* 0x30006D91: mov ebp, esp */
   3356     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u);
   3357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3358     esp = esp - 0x64u; /* 0x30006D93: sub esp, 0x64 */
   3359     _flag_k = FK_CMP;
   3360     PUSH32(esp, ebx); /* 0x30006D96: push ebx */
   3361     PUSH32(esp, esi); /* 0x30006D97: push esi */
   3362     PUSH32(esp, edi); /* 0x30006D98: push edi */
   3363     edi = MEM32(ebp + 0x8); /* 0x30006D99: mov edi, dword ptr [ebp + 8] */
   3364     esi = edi + 0x4; /* 0x30006D9C: lea esi, [edi + 4] */
   3365     eax = esi; /* 0x30006D9F: mov eax, esi */
   3366     ecx = MEM32(eax); /* 0x30006DA1: mov ecx, dword ptr [eax] */
   3367     edx = MEM32(eax + 0x4); /* 0x30006DA3: mov edx, dword ptr [eax + 4] */
   3368     eax = MEM32(eax + 0x8); /* 0x30006DA6: mov eax, dword ptr [eax + 8] */
   3369     MEM32(ebp + (-0x58)) = ecx; /* 0x30006DA9: mov dword ptr [ebp - 0x58], ecx */
   3370     ecx = edi + 0x18; /* 0x30006DAC: lea ecx, [edi + 0x18] */
   3371     PUSH32(esp, ecx); /* 0x30006DAF: push ecx */
   3372     ecx = ebp + (-0x58); /* 0x30006DB0: lea ecx, [ebp - 0x58] */
   3373     MEM32(ebp + (-0x34)) = 0; /* 0x30006DB3: mov dword ptr [ebp - 0x34], 0 */
   3374     MEM32(ebp + (-0x30)) = 0; /* 0x30006DBA: mov dword ptr [ebp - 0x30], 0 */
   3375     MEM32(ebp + (-0x2C)) = 0; /* 0x30006DC1: mov dword ptr [ebp - 0x2c], 0 */
   3376     MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x30006DC8: mov byte ptr [ebp - 1], 1 */
   3377     MEM32(ebp + (-0x54)) = edx; /* 0x30006DCC: mov dword ptr [ebp - 0x54], edx */
   3378     MEM32(ebp + (-0x50)) = eax; /* 0x30006DCF: mov dword ptr [ebp - 0x50], eax */
   3379     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x30006DD2: call dword ptr [0x300190c4] */
   3380     RECOMP_FLAGS_IN();
   3381     edx = MEM32(eax); /* 0x30006DD8: mov edx, dword ptr [eax] */
   3382     ecx = MEM32(eax + 0x4); /* 0x30006DDA: mov ecx, dword ptr [eax + 4] */
   3383     MEM32(ebp + (-0x4C)) = edx; /* 0x30006DDD: mov dword ptr [ebp - 0x4c], edx */
   3384     edx = MEM32(eax + 0x8); /* 0x30006DE0: mov edx, dword ptr [eax + 8] */
   3385     MEM32(ebp + (-0x48)) = ecx; /* 0x30006DE3: mov dword ptr [ebp - 0x48], ecx */
   3386     eax = esi; /* 0x30006DE6: mov eax, esi */
   3387     ecx = MEM32(eax); /* 0x30006DE8: mov ecx, dword ptr [eax] */
   3388     MEM32(ebp + (-0x40)) = ecx; /* 0x30006DEA: mov dword ptr [ebp - 0x40], ecx */
   3389     MEM32(ebp + (-0x44)) = edx; /* 0x30006DED: mov dword ptr [ebp - 0x44], edx */
   3390     edx = MEM32(eax + 0x4); /* 0x30006DF0: mov edx, dword ptr [eax + 4] */
   3391     eax = MEM32(eax + 0x8); /* 0x30006DF3: mov eax, dword ptr [eax + 8] */
   3392     ecx = edi + 0x24; /* 0x30006DF6: lea ecx, [edi + 0x24] */
   3393     PUSH32(esp, ecx); /* 0x30006DF9: push ecx */
   3394     ecx = ebp + (-0x40); /* 0x30006DFA: lea ecx, [ebp - 0x40] */
   3395     MEM32(ebp + (-0x3C)) = edx; /* 0x30006DFD: mov dword ptr [ebp - 0x3c], edx */
   3396     MEM32(ebp + (-0x38)) = eax; /* 0x30006E00: mov dword ptr [ebp - 0x38], eax */
   3397     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x30006E03: call dword ptr [0x300190c4] */
   3398     RECOMP_FLAGS_IN();
   3399     edx = MEM32(eax); /* 0x30006E09: mov edx, dword ptr [eax] */
   3400     ecx = MEM32(eax + 0x4); /* 0x30006E0B: mov ecx, dword ptr [eax + 4] */
   3401     ebx = MEM32(ebp + 0xC); /* 0x30006E0E: mov ebx, dword ptr [ebp + 0xc] */
   3402     MEM32(ebp + (-0x58)) = edx; /* 0x30006E11: mov dword ptr [ebp - 0x58], edx */
   3403     edx = MEM32(eax + 0x8); /* 0x30006E14: mov edx, dword ptr [eax + 8] */
   3404     MEM32(ebp + (-0x54)) = ecx; /* 0x30006E17: mov dword ptr [ebp - 0x54], ecx */
   3405     eax = ebx + 0x4; /* 0x30006E1A: lea eax, [ebx + 4] */
   3406     ecx = MEM32(eax); /* 0x30006E1D: mov ecx, dword ptr [eax] */
   3407     MEM32(ebp + (-0x50)) = edx; /* 0x30006E1F: mov dword ptr [ebp - 0x50], edx */
   3408     edx = MEM32(eax + 0x4); /* 0x30006E22: mov edx, dword ptr [eax + 4] */
   3409     eax = MEM32(eax + 0x8); /* 0x30006E25: mov eax, dword ptr [eax + 8] */
   3410     MEM32(ebp + (-0x40)) = ecx; /* 0x30006E28: mov dword ptr [ebp - 0x40], ecx */
   3411     PUSH32(esp, esi); /* 0x30006E2B: push esi */
   3412     ecx = ebp + (-0x40); /* 0x30006E2C: lea ecx, [ebp - 0x40] */
   3413     MEM32(ebp + (-0x3C)) = edx; /* 0x30006E2F: mov dword ptr [ebp - 0x3c], edx */
   3414     MEM32(ebp + (-0x38)) = eax; /* 0x30006E32: mov dword ptr [ebp - 0x38], eax */
   3415     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30006E35: call dword ptr [0x300190bc] */
   3416     RECOMP_FLAGS_IN();
   3417     ecx = MEM32(eax); /* 0x30006E3B: mov ecx, dword ptr [eax] */
   3418     edx = MEM32(eax + 0x4); /* 0x30006E3D: mov edx, dword ptr [eax + 4] */
   3419     eax = MEM32(eax + 0x8); /* 0x30006E40: mov eax, dword ptr [eax + 8] */
   3420     MEM32(ebp + (-0x28)) = ecx; /* 0x30006E43: mov dword ptr [ebp - 0x28], ecx */
   3421     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x40u);
   3422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3423     edi = edi + 0x40u; /* 0x30006E46: add edi, 0x40 */
   3424     _flag_k = FK_ADD;
   3425     PUSH32(esp, edi); /* 0x30006E49: push edi */
   3426     ecx = ebp + (-0x28); /* 0x30006E4A: lea ecx, [ebp - 0x28] */
   3427     MEM32(ebp + (-0x24)) = edx; /* 0x30006E4D: mov dword ptr [ebp - 0x24], edx */
   3428     MEM32(ebp + (-0x20)) = eax; /* 0x30006E50: mov dword ptr [ebp - 0x20], eax */
   3429     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x30006E53: call dword ptr [0x300190ec] */
   3430     RECOMP_FLAGS_IN();
   3431     ecx = MEM32(eax); /* 0x30006E59: mov ecx, dword ptr [eax] */
   3432     MEM32(ebp + (-0x1C)) = ecx; /* 0x30006E5B: mov dword ptr [ebp - 0x1c], ecx */
   3433     edx = MEM32(eax + 0x4); /* 0x30006E5E: mov edx, dword ptr [eax + 4] */
   3434     ecx = MEM32(esi); /* 0x30006E61: mov ecx, dword ptr [esi] */
   3435     MEM32(ebp + (-0x18)) = edx; /* 0x30006E63: mov dword ptr [ebp - 0x18], edx */
   3436     eax = MEM32(eax + 0x8); /* 0x30006E66: mov eax, dword ptr [eax + 8] */
   3437     edx = MEM32(esi + 0x4); /* 0x30006E69: mov edx, dword ptr [esi + 4] */
   3438     MEM32(ebp + (-0x64)) = ecx; /* 0x30006E6C: mov dword ptr [ebp - 0x64], ecx */
   3439     ecx = ebp + (-0x1C); /* 0x30006E6F: lea ecx, [ebp - 0x1c] */
   3440     MEM32(ebp + (-0x14)) = eax; /* 0x30006E72: mov dword ptr [ebp - 0x14], eax */
   3441     eax = MEM32(esi + 0x8); /* 0x30006E75: mov eax, dword ptr [esi + 8] */
   3442     PUSH32(esp, ecx); /* 0x30006E78: push ecx */
   3443     ecx = ebp + (-0x64); /* 0x30006E79: lea ecx, [ebp - 0x64] */
   3444     MEM32(ebp + (-0x60)) = edx; /* 0x30006E7C: mov dword ptr [ebp - 0x60], edx */
   3445     MEM32(ebp + (-0x5C)) = eax; /* 0x30006E7F: mov dword ptr [ebp - 0x5c], eax */
   3446     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x30006E82: call dword ptr [0x300190c4] */
   3447     RECOMP_FLAGS_IN();
   3448     esi = MEM32(eax); /* 0x30006E88: mov esi, dword ptr [eax] */
   3449     edx = MEM32(eax + 0x4); /* 0x30006E8A: mov edx, dword ptr [eax + 4] */
   3450     eax = MEM32(eax + 0x8); /* 0x30006E8D: mov eax, dword ptr [eax + 8] */
   3451     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x18u);
   3452     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3453     ebx = ebx + 0x18u; /* 0x30006E90: add ebx, 0x18 */
   3454     _flag_k = FK_ADD;
   3455     ecx = MEM32(ebx); /* 0x30006E93: mov ecx, dword ptr [ebx] */
   3456     MEM32(ebp + (-0xC)) = edx; /* 0x30006E95: mov dword ptr [ebp - 0xc], edx */
   3457     edx = MEM32(ebx + 0x4); /* 0x30006E98: mov edx, dword ptr [ebx + 4] */
   3458     MEM32(ebp + (-0x8)) = eax; /* 0x30006E9B: mov dword ptr [ebp - 8], eax */
   3459     eax = MEM32(ebx + 0x8); /* 0x30006E9E: mov eax, dword ptr [ebx + 8] */
   3460     MEM32(ebp + (-0x64)) = ecx; /* 0x30006EA1: mov dword ptr [ebp - 0x64], ecx */
   3461     PUSH32(esp, edi); /* 0x30006EA4: push edi */
   3462     ecx = ebp + (-0x64); /* 0x30006EA5: lea ecx, [ebp - 0x64] */
   3463     MEM32(ebp + (-0x10)) = esi; /* 0x30006EA8: mov dword ptr [ebp - 0x10], esi */
   3464     MEM32(ebp + (-0x60)) = edx; /* 0x30006EAB: mov dword ptr [ebp - 0x60], edx */
   3465     MEM32(ebp + (-0x5C)) = eax; /* 0x30006EAE: mov dword ptr [ebp - 0x5c], eax */
   3466     RECOMP_ICALL(MEM32(0x300190EC)); /* 0x30006EB1: call dword ptr [0x300190ec] */
   3467     RECOMP_FLAGS_IN();
   3468     ecx = eax; /* 0x30006EB7: mov ecx, eax */
   3469     edx = MEM32(ecx); /* 0x30006EB9: mov edx, dword ptr [ecx] */
   3470     MEM32(ebp + (-0x1C)) = edx; /* 0x30006EBB: mov dword ptr [ebp - 0x1c], edx */
   3471     edx = MEM32(ecx + 0x4); /* 0x30006EBE: mov edx, dword ptr [ecx + 4] */
   3472     ecx = MEM32(ecx + 0x8); /* 0x30006EC1: mov ecx, dword ptr [ecx + 8] */
   3473     MEM32(ebp + (-0x18)) = edx; /* 0x30006EC4: mov dword ptr [ebp - 0x18], edx */
   3474     edx = MEM32(eax); /* 0x30006EC7: mov edx, dword ptr [eax] */
   3475     MEM32(ebp + (-0x14)) = ecx; /* 0x30006EC9: mov dword ptr [ebp - 0x14], ecx */
   3476     ecx = MEM32(eax + 0x4); /* 0x30006ECC: mov ecx, dword ptr [eax + 4] */
   3477     MEM32(ebp + (-0x28)) = edx; /* 0x30006ECF: mov dword ptr [ebp - 0x28], edx */
   3478     edx = MEM32(eax + 0x8); /* 0x30006ED2: mov edx, dword ptr [eax + 8] */
   3479     MEM32(ebp + (-0x24)) = ecx; /* 0x30006ED5: mov dword ptr [ebp - 0x24], ecx */
   3480     ecx = ebp + (-0x28); /* 0x30006ED8: lea ecx, [ebp - 0x28] */
   3481     MEM32(ebp + (-0x20)) = edx; /* 0x30006EDB: mov dword ptr [ebp - 0x20], edx */
   3482     RECOMP_ICALL(MEM32(0x300190CC)); /* 0x30006EDE: call dword ptr [0x300190cc] */
   3483     RECOMP_FLAGS_IN();
   3484     PUSH32(esp, ecx); /* 0x30006EE4: push ecx */
   3485     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x30006EE5: fstp dword ptr [esp] */
   3486     ecx = ebp + (-0x28); /* 0x30006EE8: lea ecx, [ebp - 0x28] */
   3487     RECOMP_ICALL(MEM32(0x300190D0)); /* 0x30006EEB: call dword ptr [0x300190d0] */
   3488     RECOMP_FLAGS_IN();
   3489     ecx = MEM32(ebp + (-0x24)); /* 0x30006EF1: mov ecx, dword ptr [ebp - 0x24] */
   3490     eax = MEM32(ebp + (-0x28)); /* 0x30006EF4: mov eax, dword ptr [ebp - 0x28] */
   3491     edx = MEM32(ebp + (-0x20)); /* 0x30006EF7: mov edx, dword ptr [ebp - 0x20] */
   3492     MEM32(ebp + (-0x3C)) = ecx; /* 0x30006EFA: mov dword ptr [ebp - 0x3c], ecx */
   3493     MEM32(ebp + (-0x40)) = eax; /* 0x30006EFD: mov dword ptr [ebp - 0x40], eax */
   3494     MEM32(ebp + (-0x38)) = edx; /* 0x30006F00: mov dword ptr [ebp - 0x38], edx */
   3495     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3496     ecx = 0; /* 0x30006F03: xor ecx, ecx */
   3497     _cf = 0;
   3498     _flag_k = FK_TEST;
   3499     SET_LO8(ebx, 2); /* 0x30006F05: mov bl, 2 */
   3500 L_30006F07:
   3501     fp_push(*(float*)&MEM32(ebp + ecx * 4 + (-0x10))); /* 0x30006F07: fld dword ptr [ebp + ecx*4 - 0x10] */
   3502     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + ecx * 4 + (-0x4C))); /* 0x30006F0B: fcomp dword ptr [ebp + ecx*4 - 0x4c] */
   3503     fp_pop();
   3504     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006F0F: fnstsw ax */
   3505     /* test HI8(eax), 1 */ /* 0x30006F11: test ah, 1 */
   3506     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3507     _cf = 0;
   3508     _flag_k = FK_NARROW(FK_TEST, 24);
   3509     if (TEST_Z(_flag_a, _flag_b)) goto L_30006F29; /* 0x30006F14: je 0x30006f29 */
   3510 L_30006F16:
   3511     eax = MEM32(ebp + ecx * 4 + (-0x4C)); /* 0x30006F16: mov eax, dword ptr [ebp + ecx*4 - 0x4c] */
   3512     MEM8(ebp + ecx + 0x8) = (uint8_t)(1); /* 0x30006F1A: mov byte ptr [ebp + ecx + 8], 1 */
   3513     MEM32(ebp + ecx * 4 + (-0x64)) = eax; /* 0x30006F1F: mov dword ptr [ebp + ecx*4 - 0x64], eax */
   3514     MEM8(ebp + (-0x1)) = (uint8_t)(0); /* 0x30006F23: mov byte ptr [ebp - 1], 0 */
   3515     goto L_30006F4F; /* 0x30006F27: jmp 0x30006f4f */
   3516 L_30006F29:
   3517     fp_push(*(float*)&MEM32(ebp + ecx * 4 + (-0x10))); /* 0x30006F29: fld dword ptr [ebp + ecx*4 - 0x10] */
   3518     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + ecx * 4 + (-0x58))); /* 0x30006F2D: fcomp dword ptr [ebp + ecx*4 - 0x58] */
   3519     fp_pop();
   3520     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006F31: fnstsw ax */
   3521     /* test HI8(eax), 0x41u */ /* 0x30006F33: test ah, 0x41 */
   3522     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3523     _cf = 0;
   3524     _flag_k = FK_NARROW(FK_TEST, 24);
   3525     if (TEST_NZ(_flag_a, _flag_b)) goto L_30006F4B; /* 0x30006F36: jne 0x30006f4b */
   3526 L_30006F38:
   3527     edx = MEM32(ebp + ecx * 4 + (-0x58)); /* 0x30006F38: mov edx, dword ptr [ebp + ecx*4 - 0x58] */
   3528     MEM8(ebp + ecx + 0x8) = (uint8_t)(0); /* 0x30006F3C: mov byte ptr [ebp + ecx + 8], 0 */
   3529     MEM32(ebp + ecx * 4 + (-0x64)) = edx; /* 0x30006F41: mov dword ptr [ebp + ecx*4 - 0x64], edx */
   3530     MEM8(ebp + (-0x1)) = (uint8_t)(0); /* 0x30006F45: mov byte ptr [ebp - 1], 0 */
   3531     goto L_30006F4F; /* 0x30006F49: jmp 0x30006f4f */
   3532 L_30006F4B:
   3533     MEM8(ebp + ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x30006F4B: mov byte ptr [ebp + ecx + 8], bl */
   3534 L_30006F4F:
   3535     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3536     ecx = ecx + 1; /* 0x30006F4F: inc ecx */
   3537     _flag_k = FK_INC;
   3538     /* cmp ecx, 3 */ /* 0x30006F50: cmp ecx, 3 */
   3539     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3541     _flag_k = FK_CMP;
   3542     RECOMP_BACKEDGE();
   3543     if (CMP_L(_flag_a, _flag_b)) goto L_30006F07; /* 0x30006F53: jl 0x30006f07 */
   3544 L_30006F55:
   3545     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x30006F55: mov al, byte ptr [ebp - 1] */
   3546     /* test LO8(eax), LO8(eax) */ /* 0x30006F58: test al, al */
   3547     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3548     _cf = 0;
   3549     _flag_k = FK_NARROW(FK_TEST, 24);
   3550     if (TEST_NZ(_flag_a, _flag_b)) goto L_30007083; /* 0x30006F5A: jne 0x30007083 */
   3551 L_30006F60:
   3552     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3553     ecx = 0; /* 0x30006F60: xor ecx, ecx */
   3554     _cf = 0;
   3555     _flag_k = FK_TEST;
   3556     edx = 0xBF800000u; /* 0x30006F62: mov edx, 0xbf800000 */
   3557 L_30006F67:
   3558     /* cmp MEM8(ebp + ecx + 0x8), LO8(ebx) */ /* 0x30006F67: cmp byte ptr [ebp + ecx + 8], bl */
   3559     _flag_a = (uint32_t)(MEM8(ebp + ecx + 0x8)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3561     _flag_k = FK_NARROW(FK_CMP, 24);
   3562     if (CMP_EQ(_flag_a, _flag_b)) goto L_30006F90; /* 0x30006F6B: je 0x30006f90 */
   3563 L_30006F6D:
   3564     fp_push(*(float*)&MEM32(ebp + ecx * 4 + (-0x40))); /* 0x30006F6D: fld dword ptr [ebp + ecx*4 - 0x40] */
   3565     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x300191A0)); /* 0x30006F71: fcomp qword ptr [0x300191a0] */
   3566     fp_pop();
   3567     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006F77: fnstsw ax */
   3568     /* test HI8(eax), 0x40u */ /* 0x30006F79: test ah, 0x40 */
   3569     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3570     _cf = 0;
   3571     _flag_k = FK_NARROW(FK_TEST, 24);
   3572     if (TEST_NZ(_flag_a, _flag_b)) goto L_30006F90; /* 0x30006F7C: jne 0x30006f90 */
   3573 L_30006F7E:
   3574     fp_push(*(float*)&MEM32(ebp + ecx * 4 + (-0x64))); /* 0x30006F7E: fld dword ptr [ebp + ecx*4 - 0x64] */
   3575     _st[0] -= (double)*(float*)ADDR(ebp + ecx * 4 + (-0x10)); /* 0x30006F82: fsub dword ptr [ebp + ecx*4 - 0x10] */
   3576     _st[0] /= (double)*(float*)ADDR(ebp + ecx * 4 + (-0x40)); /* 0x30006F86: fdiv dword ptr [ebp + ecx*4 - 0x40] */
   3577     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + ecx * 4 + (-0x28)) = _v; } /* 0x30006F8A: fstp dword ptr [ebp + ecx*4 - 0x28] */
   3578     goto L_30006F94; /* 0x30006F8E: jmp 0x30006f94 */
   3579 L_30006F90:
   3580     MEM32(ebp + ecx * 4 + (-0x28)) = edx; /* 0x30006F90: mov dword ptr [ebp + ecx*4 - 0x28], edx */
   3581 L_30006F94:
   3582     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3583     ecx = ecx + 1; /* 0x30006F94: inc ecx */
   3584     _flag_k = FK_INC;
   3585     /* cmp ecx, 3 */ /* 0x30006F95: cmp ecx, 3 */
   3586     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3588     _flag_k = FK_CMP;
   3589     RECOMP_BACKEDGE();
   3590     if (CMP_L(_flag_a, _flag_b)) goto L_30006F67; /* 0x30006F98: jl 0x30006f67 */
   3591 L_30006F9A:
   3592     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3593     ebx = 0; /* 0x30006F9A: xor ebx, ebx */
   3594     _cf = 0;
   3595     _flag_k = FK_TEST;
   3596     ecx = 1; /* 0x30006F9C: mov ecx, 1 */
   3597     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3598     edi = 0; /* 0x30006FA1: xor edi, edi */
   3599     _cf = 0;
   3600     _flag_k = FK_TEST;
   3601 L_30006FA3:
   3602     fp_push(*(float*)&MEM32(ebp + edi + (-0x28))); /* 0x30006FA3: fld dword ptr [ebp + edi - 0x28] */
   3603     edx = ecx * 4; /* 0x30006FA7: lea edx, [ecx*4] */
   3604     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + edx + (-0x28))); /* 0x30006FAE: fcomp dword ptr [ebp + edx - 0x28] */
   3605     fp_pop();
   3606     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006FB2: fnstsw ax */
   3607     /* test HI8(eax), 1 */ /* 0x30006FB4: test ah, 1 */
   3608     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3609     _cf = 0;
   3610     _flag_k = FK_NARROW(FK_TEST, 24);
   3611     if (TEST_Z(_flag_a, _flag_b)) goto L_30006FBD; /* 0x30006FB7: je 0x30006fbd */
   3612 L_30006FB9:
   3613     ebx = ecx; /* 0x30006FB9: mov ebx, ecx */
   3614     edi = edx; /* 0x30006FBB: mov edi, edx */
   3615 L_30006FBD:
   3616     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3617     ecx = ecx + 1; /* 0x30006FBD: inc ecx */
   3618     _flag_k = FK_INC;
   3619     /* cmp ecx, 3 */ /* 0x30006FBE: cmp ecx, 3 */
   3620     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3622     _flag_k = FK_CMP;
   3623     RECOMP_BACKEDGE();
   3624     if (CMP_L(_flag_a, _flag_b)) goto L_30006FA3; /* 0x30006FC1: jl 0x30006fa3 */
   3625 L_30006FC3:
   3626     fp_push(*(float*)&MEM32(ebp + ebx * 4 + (-0x28))); /* 0x30006FC3: fld dword ptr [ebp + ebx*4 - 0x28] */
   3627     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x300191A0)); /* 0x30006FC7: fcomp qword ptr [0x300191a0] */
   3628     fp_pop();
   3629     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006FCD: fnstsw ax */
   3630     /* test HI8(eax), 1 */ /* 0x30006FCF: test ah, 1 */
   3631     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3632     _cf = 0;
   3633     _flag_k = FK_NARROW(FK_TEST, 24);
   3634     if (TEST_Z(_flag_a, _flag_b)) goto L_30006FDD; /* 0x30006FD2: je 0x30006fdd */
   3635 L_30006FD4:
   3636     edi = POP32_VAL(esp); /* 0x30006FD4: pop edi */
   3637     esi = POP32_VAL(esp); /* 0x30006FD5: pop esi */
   3638     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3639     SET_LO8(eax, 0); /* 0x30006FD6: xor al, al */
   3640     _cf = 0;
   3641     _flag_k = FK_NARROW(FK_TEST, 24);
   3642     ebx = POP32_VAL(esp); /* 0x30006FD8: pop ebx */
   3643     esp = ebp; /* 0x30006FD9: mov esp, ebp */
   3644     ebp = POP32_VAL(esp); /* 0x30006FDB: pop ebp */
   3645     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006FDC: ret  */
   3646 L_30006FDD:
   3647     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3648     ecx = 0; /* 0x30006FDD: xor ecx, ecx */
   3649     _cf = 0;
   3650     _flag_k = FK_TEST;
   3651 L_30006FDF:
   3652     /* cmp ebx, ecx */ /* 0x30006FDF: cmp ebx, ecx */
   3653     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   3654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3655     _flag_k = FK_CMP;
   3656     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000700B; /* 0x30006FE1: je 0x3000700b */
   3657 L_30006FE3:
   3658     fp_push(*(float*)&MEM32(ebp + ecx * 4 + (-0x40))); /* 0x30006FE3: fld dword ptr [ebp + ecx*4 - 0x40] */
   3659     _st[0] *= (double)*(float*)ADDR(ebp + ebx * 4 + (-0x28)); /* 0x30006FE7: fmul dword ptr [ebp + ebx*4 - 0x28] */
   3660     _st[0] += (double)*(float*)ADDR(ebp + ecx * 4 + (-0x10)); /* 0x30006FEB: fadd dword ptr [ebp + ecx*4 - 0x10] */
   3661     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + ecx * 4 + (-0x4C))); /* 0x30006FEF: fcom dword ptr [ebp + ecx*4 - 0x4c] */
   3662     { float _v = (float)_st[0]; *(float*)ADDR(ebp + ecx * 4 + (-0x34)) = _v; } /* 0x30006FF3: fst dword ptr [ebp + ecx*4 - 0x34] */
   3663     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30006FF7: fnstsw ax */
   3664     /* test HI8(eax), 1 */ /* 0x30006FF9: test ah, 1 */
   3665     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3666     _cf = 0;
   3667     _flag_k = FK_NARROW(FK_TEST, 24);
   3668     if (TEST_NZ(_flag_a, _flag_b)) goto L_30007078; /* 0x30006FFC: jne 0x30007078 */
   3669 L_30006FFE:
   3670     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + ecx * 4 + (-0x58))); /* 0x30006FFE: fcomp dword ptr [ebp + ecx*4 - 0x58] */
   3671     fp_pop();
   3672     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007002: fnstsw ax */
   3673     /* test HI8(eax), 0x41u */ /* 0x30007004: test ah, 0x41 */
   3674     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3675     _cf = 0;
   3676     _flag_k = FK_NARROW(FK_TEST, 24);
   3677     if (TEST_Z(_flag_a, _flag_b)) goto L_3000707A; /* 0x30007007: je 0x3000707a */
   3678 L_30007009:
   3679     goto L_30007013; /* 0x30007009: jmp 0x30007013 */
   3680 L_3000700B:
   3681     eax = MEM32(ebp + ecx * 4 + (-0x64)); /* 0x3000700B: mov eax, dword ptr [ebp + ecx*4 - 0x64] */
   3682     MEM32(ebp + ecx * 4 + (-0x34)) = eax; /* 0x3000700F: mov dword ptr [ebp + ecx*4 - 0x34], eax */
   3683 L_30007013:
   3684     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3685     ecx = ecx + 1; /* 0x30007013: inc ecx */
   3686     _flag_k = FK_INC;
   3687     /* cmp ecx, 3 */ /* 0x30007014: cmp ecx, 3 */
   3688     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3690     _flag_k = FK_CMP;
   3691     RECOMP_BACKEDGE();
   3692     if (CMP_L(_flag_a, _flag_b)) goto L_30006FDF; /* 0x30007017: jl 0x30006fdf */
   3693 L_30007019:
   3694     ecx = MEM32(ebp + (-0xC)); /* 0x30007019: mov ecx, dword ptr [ebp - 0xc] */
   3695     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3000701C: fld dword ptr [ebp - 0x10] */
   3696     _st[0] -= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3000701F: fsub dword ptr [ebp - 0x34] */
   3697     edx = MEM32(ebp + (-0x8)); /* 0x30007022: mov edx, dword ptr [ebp - 8] */
   3698     MEM32(ebp + (-0x54)) = ecx; /* 0x30007025: mov dword ptr [ebp - 0x54], ecx */
   3699     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x30007028: fld dword ptr [ebp - 0x54] */
   3700     _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000702B: fsub dword ptr [ebp - 0x30] */
   3701     MEM32(ebp + (-0x50)) = edx; /* 0x3000702E: mov dword ptr [ebp - 0x50], edx */
   3702     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x30007031: fld dword ptr [ebp - 0x50] */
   3703     MEM32(ebp + (-0x58)) = esi; /* 0x30007034: mov dword ptr [ebp - 0x58], esi */
   3704     _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007037: fsub dword ptr [ebp - 0x2c] */
   3705     fp_push(_st[0]); /* 0x3000703A: fld st(0) */
   3706     _st[0] *= _st[1]; /* 0x3000703C: fmul st(1) */
   3707     fp_push(_st[3]); /* 0x3000703E: fld st(3) */
   3708     _st[0] *= _st[4]; /* 0x30007040: fmul st(4) */
   3709     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007042: faddp st(1) */
   3710     fp_push(_st[2]); /* 0x30007044: fld st(2) */
   3711     _st[0] *= _st[3]; /* 0x30007046: fmul st(3) */
   3712     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007048: faddp st(1) */
   3713     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3000704A: fld dword ptr [ebp - 0x18] */
   3714     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3000704D: fmul dword ptr [ebp - 0x18] */
   3715     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x30007050: fld dword ptr [ebp - 0x14] */
   3716     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x30007053: fmul dword ptr [ebp - 0x14] */
   3717     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007056: faddp st(1) */
   3718     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30007058: fld dword ptr [ebp - 0x1c] */
   3719     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000705B: fmul dword ptr [ebp - 0x1c] */
   3720     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000705E: faddp st(1) */
   3721     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007060: fcompp  */
   3722     fp_pop(); fp_pop();
   3723     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007062: fstp st(0) */
   3724     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007064: fnstsw ax */
   3725     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007066: fstp st(0) */
   3726     /* test HI8(eax), 1 */ /* 0x30007068: test ah, 1 */
   3727     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3728     _cf = 0;
   3729     _flag_k = FK_NARROW(FK_TEST, 24);
   3730     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000706B: fstp st(0) */
   3731     if (TEST_Z(_flag_a, _flag_b)) goto L_30007083; /* 0x3000706D: je 0x30007083 */
   3732 L_3000706F:
   3733     edi = POP32_VAL(esp); /* 0x3000706F: pop edi */
   3734     esi = POP32_VAL(esp); /* 0x30007070: pop esi */
   3735     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3736     SET_LO8(eax, 0); /* 0x30007071: xor al, al */
   3737     _cf = 0;
   3738     _flag_k = FK_NARROW(FK_TEST, 24);
   3739     ebx = POP32_VAL(esp); /* 0x30007073: pop ebx */
   3740     esp = ebp; /* 0x30007074: mov esp, ebp */
   3741     ebp = POP32_VAL(esp); /* 0x30007076: pop ebp */
   3742     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007077: ret  */
   3743 L_30007078:
   3744     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007078: fstp st(0) */
   3745 L_3000707A:
   3746     edi = POP32_VAL(esp); /* 0x3000707A: pop edi */
   3747     esi = POP32_VAL(esp); /* 0x3000707B: pop esi */
   3748     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3749     SET_LO8(eax, 0); /* 0x3000707C: xor al, al */
   3750     _cf = 0;
   3751     _flag_k = FK_NARROW(FK_TEST, 24);
   3752     ebx = POP32_VAL(esp); /* 0x3000707E: pop ebx */
   3753     esp = ebp; /* 0x3000707F: mov esp, ebp */
   3754     ebp = POP32_VAL(esp); /* 0x30007081: pop ebp */
   3755     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007082: ret  */
   3756 L_30007083:
   3757     edi = POP32_VAL(esp); /* 0x30007083: pop edi */
   3758     esi = POP32_VAL(esp); /* 0x30007084: pop esi */
   3759     SET_LO8(eax, 1); /* 0x30007085: mov al, 1 */
   3760     ebx = POP32_VAL(esp); /* 0x30007087: pop ebx */
   3761     esp = ebp; /* 0x30007088: mov esp, ebp */
   3762     ebp = POP32_VAL(esp); /* 0x3000708A: pop ebp */
   3763     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000708B: ret  */
   3764     RECOMP_REGS_OUT();
   3765 }
   3766 
   3767 void sub_30007090(void) {
   3768     int _fpu_cmp = 0;
   3769     uint32_t _cf = 0;
   3770     int _df = 1;
   3771     uint32_t _flag_k = FK_NONE;
   3772     uint32_t _flag_a = 0, _flag_b = 0;
   3773     uint32_t _itail_tgt = 0;
   3774     RECOMP_REGS_LOCALS
   3775     RECOMP_ENTER(0x30007090u);
   3776 
   3777 L_30007090:
   3778     PUSH32(esp, ebp); /* 0x30007090: push ebp */
   3779     ebp = esp; /* 0x30007091: mov ebp, esp */
   3780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xD0u);
   3781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3782     esp = esp - 0xD0u; /* 0x30007093: sub esp, 0xd0 */
   3783     _flag_k = FK_CMP;
   3784     PUSH32(esp, ebx); /* 0x30007099: push ebx */
   3785     PUSH32(esp, esi); /* 0x3000709A: push esi */
   3786     esi = MEM32(ebp + 0x8); /* 0x3000709B: mov esi, dword ptr [ebp + 8] */
   3787     ebx = esi + 0x30; /* 0x3000709E: lea ebx, [esi + 0x30] */
   3788     eax = ebx; /* 0x300070A1: mov eax, ebx */
   3789     ecx = MEM32(eax); /* 0x300070A3: mov ecx, dword ptr [eax] */
   3790     edx = MEM32(eax + 0x4); /* 0x300070A5: mov edx, dword ptr [eax + 4] */
   3791     eax = MEM32(eax + 0x8); /* 0x300070A8: mov eax, dword ptr [eax + 8] */
   3792     PUSH32(esp, edi); /* 0x300070AB: push edi */
   3793     edi = esi + 0x4; /* 0x300070AC: lea edi, [esi + 4] */
   3794     MEM32(ebp + (-0x3C)) = ecx; /* 0x300070AF: mov dword ptr [ebp - 0x3c], ecx */
   3795     PUSH32(esp, edi); /* 0x300070B2: push edi */
   3796     ecx = ebp + (-0x3C); /* 0x300070B3: lea ecx, [ebp - 0x3c] */
   3797     MEM32(ebp + (-0x90)) = ebx; /* 0x300070B6: mov dword ptr [ebp - 0x90], ebx */
   3798     MEM32(ebp + (-0x38)) = edx; /* 0x300070BC: mov dword ptr [ebp - 0x38], edx */
   3799     MEM32(ebp + (-0x34)) = eax; /* 0x300070BF: mov dword ptr [ebp - 0x34], eax */
   3800     MEM32(ebp + (-0x94)) = edi; /* 0x300070C2: mov dword ptr [ebp - 0x94], edi */
   3801     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300070C8: call dword ptr [0x300190bc] */
   3802     RECOMP_FLAGS_IN();
   3803     ecx = MEM32(eax); /* 0x300070CE: mov ecx, dword ptr [eax] */
   3804     edx = MEM32(eax + 0x4); /* 0x300070D0: mov edx, dword ptr [eax + 4] */
   3805     eax = MEM32(eax + 0x8); /* 0x300070D3: mov eax, dword ptr [eax + 8] */
   3806     MEM32(ebp + (-0x30)) = ecx; /* 0x300070D6: mov dword ptr [ebp - 0x30], ecx */
   3807     MEM32(ebp + (-0x2C)) = edx; /* 0x300070D9: mov dword ptr [ebp - 0x2c], edx */
   3808     ecx = edi; /* 0x300070DC: mov ecx, edi */
   3809     edx = MEM32(ecx); /* 0x300070DE: mov edx, dword ptr [ecx] */
   3810     MEM32(ebp + (-0x28)) = eax; /* 0x300070E0: mov dword ptr [ebp - 0x28], eax */
   3811     eax = MEM32(ecx + 0x4); /* 0x300070E3: mov eax, dword ptr [ecx + 4] */
   3812     ecx = MEM32(ecx + 0x8); /* 0x300070E6: mov ecx, dword ptr [ecx + 8] */
   3813     MEM32(ebp + (-0x38)) = eax; /* 0x300070E9: mov dword ptr [ebp - 0x38], eax */
   3814     eax = esi + 0x3C; /* 0x300070EC: lea eax, [esi + 0x3c] */
   3815     MEM32(ebp + (-0x34)) = ecx; /* 0x300070EF: mov dword ptr [ebp - 0x34], ecx */
   3816     PUSH32(esp, eax); /* 0x300070F2: push eax */
   3817     ecx = ebp + (-0x3C); /* 0x300070F3: lea ecx, [ebp - 0x3c] */
   3818     MEM32(ebp + (-0x3C)) = edx; /* 0x300070F6: mov dword ptr [ebp - 0x3c], edx */
   3819     MEM32(ebp + (-0x58)) = eax; /* 0x300070F9: mov dword ptr [ebp - 0x58], eax */
   3820     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300070FC: call dword ptr [0x300190bc] */
   3821     RECOMP_FLAGS_IN();
   3822     edx = MEM32(eax); /* 0x30007102: mov edx, dword ptr [eax] */
   3823     MEM32(ebp + (-0x80)) = edx; /* 0x30007104: mov dword ptr [ebp - 0x80], edx */
   3824     ecx = MEM32(eax + 0x4); /* 0x30007107: mov ecx, dword ptr [eax + 4] */
   3825     MEM32(ebp + (-0x7C)) = ecx; /* 0x3000710A: mov dword ptr [ebp - 0x7c], ecx */
   3826     edx = MEM32(eax + 0x8); /* 0x3000710D: mov edx, dword ptr [eax + 8] */
   3827     eax = MEM32(ebp + (-0x58)); /* 0x30007110: mov eax, dword ptr [ebp - 0x58] */
   3828     ecx = MEM32(eax); /* 0x30007113: mov ecx, dword ptr [eax] */
   3829     MEM32(ebp + (-0x78)) = edx; /* 0x30007115: mov dword ptr [ebp - 0x78], edx */
   3830     edx = MEM32(eax + 0x4); /* 0x30007118: mov edx, dword ptr [eax + 4] */
   3831     eax = MEM32(eax + 0x8); /* 0x3000711B: mov eax, dword ptr [eax + 8] */
   3832     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000711E: mov dword ptr [ebp - 0x3c], ecx */
   3833     PUSH32(esp, ebx); /* 0x30007121: push ebx */
   3834     ecx = ebp + (-0x3C); /* 0x30007122: lea ecx, [ebp - 0x3c] */
   3835     MEM32(ebp + (-0x38)) = edx; /* 0x30007125: mov dword ptr [ebp - 0x38], edx */
   3836     MEM32(ebp + (-0x34)) = eax; /* 0x30007128: mov dword ptr [ebp - 0x34], eax */
   3837     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x3000712B: call dword ptr [0x300190bc] */
   3838     RECOMP_FLAGS_IN();
   3839     ecx = MEM32(eax); /* 0x30007131: mov ecx, dword ptr [eax] */
   3840     edx = MEM32(eax + 0x4); /* 0x30007133: mov edx, dword ptr [eax + 4] */
   3841     eax = MEM32(eax + 0x8); /* 0x30007136: mov eax, dword ptr [eax + 8] */
   3842     MEM32(ebp + (-0x68)) = ecx; /* 0x30007139: mov dword ptr [ebp - 0x68], ecx */
   3843     ecx = MEM32(ebp + (-0x30)); /* 0x3000713C: mov ecx, dword ptr [ebp - 0x30] */
   3844     MEM32(ebp + (-0x3C)) = ecx; /* 0x3000713F: mov dword ptr [ebp - 0x3c], ecx */
   3845     ecx = ebp + (-0x80); /* 0x30007142: lea ecx, [ebp - 0x80] */
   3846     MEM32(ebp + (-0x64)) = edx; /* 0x30007145: mov dword ptr [ebp - 0x64], edx */
   3847     edx = MEM32(ebp + (-0x2C)); /* 0x30007148: mov edx, dword ptr [ebp - 0x2c] */
   3848     MEM32(ebp + (-0x60)) = eax; /* 0x3000714B: mov dword ptr [ebp - 0x60], eax */
   3849     eax = MEM32(ebp + (-0x28)); /* 0x3000714E: mov eax, dword ptr [ebp - 0x28] */
   3850     PUSH32(esp, ecx); /* 0x30007151: push ecx */
   3851     ecx = ebp + (-0x3C); /* 0x30007152: lea ecx, [ebp - 0x3c] */
   3852     MEM32(ebp + (-0x38)) = edx; /* 0x30007155: mov dword ptr [ebp - 0x38], edx */
   3853     MEM32(ebp + (-0x34)) = eax; /* 0x30007158: mov dword ptr [ebp - 0x34], eax */
   3854     RECOMP_ICALL(MEM32(0x300190D8)); /* 0x3000715B: call dword ptr [0x300190d8] */
   3855     RECOMP_FLAGS_IN();
   3856     edx = MEM32(eax); /* 0x30007161: mov edx, dword ptr [eax] */
   3857     ecx = MEM32(eax + 0x4); /* 0x30007163: mov ecx, dword ptr [eax + 4] */
   3858     MEM32(ebp + (-0xC)) = edx; /* 0x30007166: mov dword ptr [ebp - 0xc], edx */
   3859     edx = MEM32(eax + 0x8); /* 0x30007169: mov edx, dword ptr [eax + 8] */
   3860     eax = MEM32(ebp + 0xC); /* 0x3000716C: mov eax, dword ptr [ebp + 0xc] */
   3861     MEM32(ebp + (-0x8)) = ecx; /* 0x3000716F: mov dword ptr [ebp - 8], ecx */
   3862     ecx = eax + 0x4; /* 0x30007172: lea ecx, [eax + 4] */
   3863     MEM32(ebp + (-0x4)) = edx; /* 0x30007175: mov dword ptr [ebp - 4], edx */
   3864     edx = MEM32(ecx); /* 0x30007178: mov edx, dword ptr [ecx] */
   3865     MEM32(ebp + (-0x48)) = edx; /* 0x3000717A: mov dword ptr [ebp - 0x48], edx */
   3866     edx = MEM32(ecx + 0x4); /* 0x3000717D: mov edx, dword ptr [ecx + 4] */
   3867     ecx = MEM32(ecx + 0x8); /* 0x30007180: mov ecx, dword ptr [ecx + 8] */
   3868     MEM32(ebp + (-0x44)) = edx; /* 0x30007183: mov dword ptr [ebp - 0x44], edx */
   3869     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007186: fld dword ptr [ebp - 0xc] */
   3870     MEM32(ebp + (-0x40)) = ecx; /* 0x30007189: mov dword ptr [ebp - 0x40], ecx */
   3871     _st[0] *= (double)*(float*)ADDR(edi); /* 0x3000718C: fmul dword ptr [edi] */
   3872     _st[0] = -_st[0]; /* 0x3000718E: fchs  */
   3873     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30007190: fld dword ptr [ebp - 8] */
   3874     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x30007193: fmul dword ptr [esi + 8] */
   3875     { double _v = fp_pop(); _st[0] -= _v; } /* 0x30007196: fsubp st(1) */
   3876     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30007198: fld dword ptr [ebp - 4] */
   3877     _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x3000719B: fmul dword ptr [esi + 0xc] */
   3878     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3000719E: fsubp st(1) */
   3879     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x300071A0: fld dword ptr [ebp - 0x40] */
   3880     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300071A3: fmul dword ptr [ebp - 4] */
   3881     { double _v = fp_pop(); _st[0] += _v; } /* 0x300071A6: faddp st(1) */
   3882     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x300071A8: fld dword ptr [ebp - 0x44] */
   3883     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x300071AB: fmul dword ptr [ebp - 8] */
   3884     { double _v = fp_pop(); _st[0] += _v; } /* 0x300071AE: faddp st(1) */
   3885     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x300071B0: fld dword ptr [ebp - 0x48] */
   3886     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300071B3: fmul dword ptr [ebp - 0xc] */
   3887     { double _v = fp_pop(); _st[0] += _v; } /* 0x300071B6: faddp st(1) */
   3888     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x300071B8: fld dword ptr [eax + 0x18] */
   3889     fp_push(_st[1]); /* 0x300071BB: fld st(1) */
   3890     _st[0] *= _st[2]; /* 0x300071BD: fmul st(2) */
   3891     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300071BF: fld dword ptr [ebp - 4] */
   3892     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300071C2: fmul dword ptr [ebp - 4] */
   3893     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300071C5: fld dword ptr [ebp - 8] */
   3894     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x300071C8: fmul dword ptr [ebp - 8] */
   3895     { double _v = fp_pop(); _st[0] += _v; } /* 0x300071CB: faddp st(1) */
   3896     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x300071CD: fld dword ptr [ebp - 0xc] */
   3897     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300071D0: fmul dword ptr [ebp - 0xc] */
   3898     { double _v = fp_pop(); _st[0] += _v; } /* 0x300071D3: faddp st(1) */
   3899     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x300071D5: fdivp st(1) */
   3900     fp_push(_st[1]); /* 0x300071D7: fld st(1) */
   3901     _st[0] *= _st[2]; /* 0x300071D9: fmul st(2) */
   3902     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300071DB: fcompp  */
   3903     fp_pop(); fp_pop();
   3904     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300071DD: fnstsw ax */
   3905     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300071DF: fstp st(0) */
   3906     /* test HI8(eax), 1 */ /* 0x300071E1: test ah, 1 */
   3907     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3908     _cf = 0;
   3909     _flag_k = FK_NARROW(FK_TEST, 24);
   3910     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300071E4: fstp st(0) */
   3911     if (TEST_Z(_flag_a, _flag_b)) goto L_300071F1; /* 0x300071E6: je 0x300071f1 */
   3912 L_300071E8:
   3913     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   3914     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   3915     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3916     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   3917     _cf = 0;
   3918     _flag_k = FK_NARROW(FK_TEST, 24);
   3919     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   3920     esp = ebp; /* 0x300071ED: mov esp, ebp */
   3921     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   3922     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   3923 L_300071F1:
   3924     MEM32(ebp + (-0x18)) = 0; /* 0x300071F1: mov dword ptr [ebp - 0x18], 0 */
   3925     ecx = MEM32(ebp + (-0x18)); /* 0x300071F8: mov ecx, dword ptr [ebp - 0x18] */
   3926     MEM32(ebp + (-0x14)) = 0; /* 0x300071FB: mov dword ptr [ebp - 0x14], 0 */
   3927     edx = MEM32(ebp + (-0x14)); /* 0x30007202: mov edx, dword ptr [ebp - 0x14] */
   3928     MEM32(ebp + (-0x10)) = 0; /* 0x30007205: mov dword ptr [ebp - 0x10], 0 */
   3929     esi = MEM32(ebp + (-0x10)); /* 0x3000720C: mov esi, dword ptr [ebp - 0x10] */
   3930     MEM32(ebp + (-0xC)) = 0; /* 0x3000720F: mov dword ptr [ebp - 0xc], 0 */
   3931     edi = MEM32(ebp + (-0xC)); /* 0x30007216: mov edi, dword ptr [ebp - 0xc] */
   3932     MEM32(ebp + (-0x8)) = 0; /* 0x30007219: mov dword ptr [ebp - 8], 0 */
   3933     ebx = MEM32(ebp + (-0x8)); /* 0x30007220: mov ebx, dword ptr [ebp - 8] */
   3934     MEM32(ebp + (-0x4)) = 0; /* 0x30007223: mov dword ptr [ebp - 4], 0 */
   3935     MEM32(ebp + (-0x5C)) = 1; /* 0x3000722A: mov dword ptr [ebp - 0x5c], 1 */
   3936 L_30007231:
   3937     eax = MEM32(ebp + (-0x5C)); /* 0x30007231: mov eax, dword ptr [ebp - 0x5c] */
   3938     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3939     eax = eax - 1; /* 0x30007234: dec eax */
   3940     _flag_k = FK_DEC;
   3941     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000728A; /* 0x30007235: je 0x3000728a */
   3942 L_30007237:
   3943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3944     eax = eax - 1; /* 0x30007237: dec eax */
   3945     _flag_k = FK_DEC;
   3946     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007262; /* 0x30007238: je 0x30007262 */
   3947 L_3000723A:
   3948     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3949     eax = eax - 1; /* 0x3000723A: dec eax */
   3950     _flag_k = FK_DEC;
   3951     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300072B3; /* 0x3000723B: jne 0x300072b3 */
   3952 L_3000723D:
   3953     eax = MEM32(ebp + (-0x58)); /* 0x3000723D: mov eax, dword ptr [ebp - 0x58] */
   3954     ecx = MEM32(eax); /* 0x30007240: mov ecx, dword ptr [eax] */
   3955     edx = MEM32(eax + 0x4); /* 0x30007242: mov edx, dword ptr [eax + 4] */
   3956     esi = MEM32(eax + 0x8); /* 0x30007245: mov esi, dword ptr [eax + 8] */
   3957     edi = MEM32(ebp + (-0x80)); /* 0x30007248: mov edi, dword ptr [ebp - 0x80] */
   3958     ebx = MEM32(ebp + (-0x7C)); /* 0x3000724B: mov ebx, dword ptr [ebp - 0x7c] */
   3959     eax = MEM32(ebp + (-0x78)); /* 0x3000724E: mov eax, dword ptr [ebp - 0x78] */
   3960     MEM32(ebp + (-0x18)) = ecx; /* 0x30007251: mov dword ptr [ebp - 0x18], ecx */
   3961     MEM32(ebp + (-0x14)) = edx; /* 0x30007254: mov dword ptr [ebp - 0x14], edx */
   3962     MEM32(ebp + (-0x10)) = esi; /* 0x30007257: mov dword ptr [ebp - 0x10], esi */
   3963     MEM32(ebp + (-0xC)) = edi; /* 0x3000725A: mov dword ptr [ebp - 0xc], edi */
   3964     MEM32(ebp + (-0x8)) = ebx; /* 0x3000725D: mov dword ptr [ebp - 8], ebx */
   3965     goto L_300072B0; /* 0x30007260: jmp 0x300072b0 */
   3966 L_30007262:
   3967     eax = MEM32(ebp + (-0x90)); /* 0x30007262: mov eax, dword ptr [ebp - 0x90] */
   3968     ecx = MEM32(eax); /* 0x30007268: mov ecx, dword ptr [eax] */
   3969     edx = MEM32(eax + 0x4); /* 0x3000726A: mov edx, dword ptr [eax + 4] */
   3970     esi = MEM32(eax + 0x8); /* 0x3000726D: mov esi, dword ptr [eax + 8] */
   3971     edi = MEM32(ebp + (-0x68)); /* 0x30007270: mov edi, dword ptr [ebp - 0x68] */
   3972     ebx = MEM32(ebp + (-0x64)); /* 0x30007273: mov ebx, dword ptr [ebp - 0x64] */
   3973     eax = MEM32(ebp + (-0x60)); /* 0x30007276: mov eax, dword ptr [ebp - 0x60] */
   3974     MEM32(ebp + (-0x18)) = ecx; /* 0x30007279: mov dword ptr [ebp - 0x18], ecx */
   3975     MEM32(ebp + (-0x14)) = edx; /* 0x3000727C: mov dword ptr [ebp - 0x14], edx */
   3976     MEM32(ebp + (-0x10)) = esi; /* 0x3000727F: mov dword ptr [ebp - 0x10], esi */
   3977     MEM32(ebp + (-0xC)) = edi; /* 0x30007282: mov dword ptr [ebp - 0xc], edi */
   3978     MEM32(ebp + (-0x8)) = ebx; /* 0x30007285: mov dword ptr [ebp - 8], ebx */
   3979     goto L_300072B0; /* 0x30007288: jmp 0x300072b0 */
   3980 L_3000728A:
   3981     eax = MEM32(ebp + (-0x94)); /* 0x3000728A: mov eax, dword ptr [ebp - 0x94] */
   3982     ecx = MEM32(eax); /* 0x30007290: mov ecx, dword ptr [eax] */
   3983     edx = MEM32(eax + 0x4); /* 0x30007292: mov edx, dword ptr [eax + 4] */
   3984     esi = MEM32(eax + 0x8); /* 0x30007295: mov esi, dword ptr [eax + 8] */
   3985     edi = MEM32(ebp + (-0x30)); /* 0x30007298: mov edi, dword ptr [ebp - 0x30] */
   3986     ebx = MEM32(ebp + (-0x2C)); /* 0x3000729B: mov ebx, dword ptr [ebp - 0x2c] */
   3987     eax = MEM32(ebp + (-0x28)); /* 0x3000729E: mov eax, dword ptr [ebp - 0x28] */
   3988     MEM32(ebp + (-0x18)) = ecx; /* 0x300072A1: mov dword ptr [ebp - 0x18], ecx */
   3989     MEM32(ebp + (-0x14)) = edx; /* 0x300072A4: mov dword ptr [ebp - 0x14], edx */
   3990     MEM32(ebp + (-0x10)) = esi; /* 0x300072A7: mov dword ptr [ebp - 0x10], esi */
   3991     MEM32(ebp + (-0xC)) = edi; /* 0x300072AA: mov dword ptr [ebp - 0xc], edi */
   3992     MEM32(ebp + (-0x8)) = ebx; /* 0x300072AD: mov dword ptr [ebp - 8], ebx */
   3993 L_300072B0:
   3994     MEM32(ebp + (-0x4)) = eax; /* 0x300072B0: mov dword ptr [ebp - 4], eax */
   3995 L_300072B3:
   3996     eax = MEM32(ebp + (-0x48)); /* 0x300072B3: mov eax, dword ptr [ebp - 0x48] */
   3997     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x300072B6: fld dword ptr [ebp - 0x48] */
   3998     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300072B9: fsub dword ptr [ebp - 0x18] */
   3999     MEM32(ebp + (-0xAC)) = eax; /* 0x300072BC: mov dword ptr [ebp - 0xac], eax */
   4000     eax = MEM32(ebp + (-0x44)); /* 0x300072C2: mov eax, dword ptr [ebp - 0x44] */
   4001     MEM32(ebp + (-0xA8)) = eax; /* 0x300072C5: mov dword ptr [ebp - 0xa8], eax */
   4002     fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x300072CB: fld dword ptr [ebp - 0xa8] */
   4003     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300072D1: fsub dword ptr [ebp - 0x14] */
   4004     eax = MEM32(ebp + (-0x40)); /* 0x300072D4: mov eax, dword ptr [ebp - 0x40] */
   4005     MEM32(ebp + (-0xA4)) = eax; /* 0x300072D7: mov dword ptr [ebp - 0xa4], eax */
   4006     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x300072DD: fld dword ptr [ebp - 0xa4] */
   4007     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300072E3: fsub dword ptr [ebp - 0x10] */
   4008     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072E6: fld dword ptr [ebp - 4] */
   4009     _st[0] *= _st[1]; /* 0x300072E9: fmul st(1) */
   4010     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072EB: fld dword ptr [ebp - 8] */
   4011     _st[0] *= _st[3]; /* 0x300072EE: fmul st(3) */
   4012     { double _v = fp_pop(); _st[0] += _v; } /* 0x300072F0: faddp st(1) */
   4013     fp_xch(3); /* 0x300072F2: fxch st(3) */
   4014     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300072F4: fmul dword ptr [ebp - 0xc] */
   4015     { double _v = fp_pop(); _st[2] += _v; } /* 0x300072F7: faddp st(3) */
   4016     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072F9: fld dword ptr [ebp - 4] */
   4017     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300072FC: fmul dword ptr [ebp - 4] */
   4018     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072FF: fld dword ptr [ebp - 8] */
   4019     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x30007302: fmul dword ptr [ebp - 8] */
   4020     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007305: faddp st(1) */
   4021     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007307: fld dword ptr [ebp - 0xc] */
   4022     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000730A: fmul dword ptr [ebp - 0xc] */
   4023     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000730D: faddp st(1) */
   4024     { double _v = fp_pop(); _st[2] = _v == 0.0 ? _st[2] : _st[2] / _v; } /* 0x3000730F: fdivp st(3) */
   4025     fp_xch(2); /* 0x30007311: fxch st(2) */
   4026     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30007313: fstp dword ptr [ebp + 8] */
   4027     fp_xch(1); /* 0x30007316: fxch st(1) */
   4028     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007318: fstp st(0) */
   4029     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000731A: fstp st(0) */
   4030     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000731C: fld dword ptr [ebp + 8] */
   4031     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300191B8)); /* 0x3000731F: fcomp dword ptr [0x300191b8] */
   4032     fp_pop();
   4033     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007325: fnstsw ax */
   4034     /* test HI8(eax), 1 */ /* 0x30007327: test ah, 1 */
   4035     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4036     _cf = 0;
   4037     _flag_k = FK_NARROW(FK_TEST, 24);
   4038     if (TEST_NZ(_flag_a, _flag_b)) goto L_300073DF; /* 0x3000732A: jne 0x300073df */
   4039 L_30007330:
   4040     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007330: fld dword ptr [ebp - 0xc] */
   4041     MEM32(ebp + (-0x74)) = ecx; /* 0x30007333: mov dword ptr [ebp - 0x74], ecx */
   4042     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30007336: fadd dword ptr [ebp - 0x18] */
   4043     MEM32(ebp + (-0x70)) = edx; /* 0x30007339: mov dword ptr [ebp - 0x70], edx */
   4044     MEM32(ebp + (-0x6C)) = esi; /* 0x3000733C: mov dword ptr [ebp - 0x6c], esi */
   4045     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3000733F: fstp dword ptr [ebp - 0x74] */
   4046     ecx = MEM32(ebp + (-0x74)); /* 0x30007342: mov ecx, dword ptr [ebp - 0x74] */
   4047     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x30007345: fld dword ptr [ebp - 0x70] */
   4048     MEM32(ebp + (-0xB8)) = ecx; /* 0x30007348: mov dword ptr [ebp - 0xb8], ecx */
   4049     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3000734E: fadd dword ptr [ebp - 8] */
   4050     ecx = ebp + (-0x48); /* 0x30007351: lea ecx, [ebp - 0x48] */
   4051     PUSH32(esp, ecx); /* 0x30007354: push ecx */
   4052     ecx = ebp + (-0xB8); /* 0x30007355: lea ecx, [ebp - 0xb8] */
   4053     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3000735B: fstp dword ptr [ebp - 0x70] */
   4054     edx = MEM32(ebp + (-0x70)); /* 0x3000735E: mov edx, dword ptr [ebp - 0x70] */
   4055     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x30007361: fld dword ptr [ebp - 0x6c] */
   4056     MEM32(ebp + (-0xB4)) = edx; /* 0x30007364: mov dword ptr [ebp - 0xb4], edx */
   4057     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000736A: fadd dword ptr [ebp - 4] */
   4058     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x3000736D: fstp dword ptr [ebp - 0x6c] */
   4059     eax = MEM32(ebp + (-0x6C)); /* 0x30007370: mov eax, dword ptr [ebp - 0x6c] */
   4060     MEM32(ebp + (-0xB0)) = eax; /* 0x30007373: mov dword ptr [ebp - 0xb0], eax */
   4061     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007379: call dword ptr [0x300190bc] */
   4062     RECOMP_FLAGS_IN();
   4063     edx = MEM32(eax); /* 0x3000737F: mov edx, dword ptr [eax] */
   4064     ecx = MEM32(eax + 0x4); /* 0x30007381: mov ecx, dword ptr [eax + 4] */
   4065     MEM32(ebp + (-0x8C)) = edx; /* 0x30007384: mov dword ptr [ebp - 0x8c], edx */
   4066     edx = MEM32(eax + 0x8); /* 0x3000738A: mov edx, dword ptr [eax + 8] */
   4067     eax = MEM32(ebp + 0xC); /* 0x3000738D: mov eax, dword ptr [ebp + 0xc] */
   4068     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x30007390: fld dword ptr [eax + 0x18] */
   4069     MEM32(ebp + (-0x84)) = edx; /* 0x30007393: mov dword ptr [ebp - 0x84], edx */
   4070     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x30007399: fld dword ptr [ebp - 0x84] */
   4071     MEM32(ebp + (-0x88)) = ecx; /* 0x3000739F: mov dword ptr [ebp - 0x88], ecx */
   4072     _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x300073A5: fmul dword ptr [ebp - 0x84] */
   4073     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x300073AB: fld dword ptr [ebp - 0x88] */
   4074     _st[0] *= (double)*(float*)ADDR(ebp + (-0x88)); /* 0x300073B1: fmul dword ptr [ebp - 0x88] */
   4075     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073B7: faddp st(1) */
   4076     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x300073B9: fld dword ptr [ebp - 0x8c] */
   4077     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8C)); /* 0x300073BF: fmul dword ptr [ebp - 0x8c] */
   4078     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073C5: faddp st(1) */
   4079     fp_push(_st[1]); /* 0x300073C7: fld st(1) */
   4080     _st[0] *= _st[2]; /* 0x300073C9: fmul st(2) */
   4081     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300073CB: fcompp  */
   4082     fp_pop(); fp_pop();
   4083     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073CD: fnstsw ax */
   4084     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300073CF: fstp st(0) */
   4085     /* test HI8(eax), 1 */ /* 0x300073D1: test ah, 1 */
   4086     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4087     _cf = 0;
   4088     _flag_k = FK_NARROW(FK_TEST, 24);
   4089     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x300073D4: je 0x30007650 */
   4090 L_300073DA:
   4091     goto L_3000750F; /* 0x300073DA: jmp 0x3000750f */
   4092 L_300073DF:
   4093     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x300073DF: fld dword ptr [ebp + 8] */
   4094     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x300073E2: fcomp dword ptr [0x3001919c] */
   4095     fp_pop();
   4096     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073E8: fnstsw ax */
   4097     /* test HI8(eax), 0x41u */ /* 0x300073EA: test ah, 0x41 */
   4098     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4099     _cf = 0;
   4100     _flag_k = FK_NARROW(FK_TEST, 24);
   4101     if (TEST_Z(_flag_a, _flag_b)) goto L_3000743E; /* 0x300073ED: je 0x3000743e */
   4102 L_300073EF:
   4103     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300073EF: fld dword ptr [ebp - 0x18] */
   4104     eax = MEM32(ebp + 0xC); /* 0x300073F2: mov eax, dword ptr [ebp + 0xc] */
   4105     _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x300073F5: fsub dword ptr [ebp - 0x48] */
   4106     MEM32(ebp + (-0x38)) = edx; /* 0x300073F8: mov dword ptr [ebp - 0x38], edx */
   4107     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x300073FB: fld dword ptr [ebp - 0x38] */
   4108     MEM32(ebp + (-0x34)) = esi; /* 0x300073FE: mov dword ptr [ebp - 0x34], esi */
   4109     _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x30007401: fsub dword ptr [ebp - 0x44] */
   4110     MEM32(ebp + (-0x3C)) = ecx; /* 0x30007404: mov dword ptr [ebp - 0x3c], ecx */
   4111     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30007407: fld dword ptr [ebp - 0x34] */
   4112     _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3000740A: fsub dword ptr [ebp - 0x40] */
   4113     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x3000740D: fld dword ptr [eax + 0x18] */
   4114     fp_push(_st[1]); /* 0x30007410: fld st(1) */
   4115     _st[0] *= _st[2]; /* 0x30007412: fmul st(2) */
   4116     fp_push(_st[3]); /* 0x30007414: fld st(3) */
   4117     _st[0] *= _st[4]; /* 0x30007416: fmul st(4) */
   4118     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007418: faddp st(1) */
   4119     fp_push(_st[4]); /* 0x3000741A: fld st(4) */
   4120     _st[0] *= _st[5]; /* 0x3000741C: fmul st(5) */
   4121     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000741E: faddp st(1) */
   4122     fp_push(_st[1]); /* 0x30007420: fld st(1) */
   4123     _st[0] *= _st[2]; /* 0x30007422: fmul st(2) */
   4124     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007424: fcompp  */
   4125     fp_pop(); fp_pop();
   4126     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007426: fstp st(0) */
   4127     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007428: fstp st(0) */
   4128     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000742A: fnstsw ax */
   4129     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000742C: fstp st(0) */
   4130     /* test HI8(eax), 1 */ /* 0x3000742E: test ah, 1 */
   4131     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4132     _cf = 0;
   4133     _flag_k = FK_NARROW(FK_TEST, 24);
   4134     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007431: fstp st(0) */
   4135     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007433: je 0x30007650 */
   4136 L_30007439:
   4137     goto L_30007518; /* 0x30007439: jmp 0x30007518 */
   4138 L_3000743E:
   4139     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000743E: fld dword ptr [ebp - 0xc] */
   4140     eax = MEM32(ebp + (-0x4)); /* 0x30007441: mov eax, dword ptr [ebp - 4] */
   4141     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x30007444: fmul dword ptr [ebp + 8] */
   4142     MEM32(ebp + (-0x24)) = edi; /* 0x30007447: mov dword ptr [ebp - 0x24], edi */
   4143     MEM32(ebp + (-0x20)) = ebx; /* 0x3000744A: mov dword ptr [ebp - 0x20], ebx */
   4144     MEM32(ebp + (-0x1C)) = eax; /* 0x3000744D: mov dword ptr [ebp - 0x1c], eax */
   4145     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x30007450: fstp dword ptr [ebp - 0x24] */
   4146     eax = MEM32(ebp + (-0x24)); /* 0x30007453: mov eax, dword ptr [ebp - 0x24] */
   4147     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30007456: fld dword ptr [ebp - 0x20] */
   4148     MEM32(ebp + (-0xD0)) = eax; /* 0x30007459: mov dword ptr [ebp - 0xd0], eax */
   4149     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000745F: fmul dword ptr [ebp + 8] */
   4150     MEM32(ebp + (-0xC4)) = ecx; /* 0x30007462: mov dword ptr [ebp - 0xc4], ecx */
   4151     ecx = ebp + (-0xD0); /* 0x30007468: lea ecx, [ebp - 0xd0] */
   4152     PUSH32(esp, ecx); /* 0x3000746E: push ecx */
   4153     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000746F: fstp dword ptr [ebp - 0x20] */
   4154     eax = MEM32(ebp + (-0x20)); /* 0x30007472: mov eax, dword ptr [ebp - 0x20] */
   4155     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30007475: fld dword ptr [ebp - 0x1c] */
   4156     MEM32(ebp + (-0xCC)) = eax; /* 0x30007478: mov dword ptr [ebp - 0xcc], eax */
   4157     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000747E: fmul dword ptr [ebp + 8] */
   4158     ecx = ebp + (-0xC4); /* 0x30007481: lea ecx, [ebp - 0xc4] */
   4159     MEM32(ebp + (-0xC0)) = edx; /* 0x30007487: mov dword ptr [ebp - 0xc0], edx */
   4160     MEM32(ebp + (-0xBC)) = esi; /* 0x3000748D: mov dword ptr [ebp - 0xbc], esi */
   4161     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007493: fstp dword ptr [ebp - 0x1c] */
   4162     eax = MEM32(ebp + (-0x1C)); /* 0x30007496: mov eax, dword ptr [ebp - 0x1c] */
   4163     MEM32(ebp + (-0xC8)) = eax; /* 0x30007499: mov dword ptr [ebp - 0xc8], eax */
   4164     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000749F: call dword ptr [0x300190c4] */
   4165     RECOMP_FLAGS_IN();
   4166     edx = MEM32(eax); /* 0x300074A5: mov edx, dword ptr [eax] */
   4167     ecx = MEM32(eax + 0x4); /* 0x300074A7: mov ecx, dword ptr [eax + 4] */
   4168     MEM32(ebp + (-0xA0)) = edx; /* 0x300074AA: mov dword ptr [ebp - 0xa0], edx */
   4169     edx = MEM32(eax + 0x8); /* 0x300074B0: mov edx, dword ptr [eax + 8] */
   4170     eax = ebp + (-0x48); /* 0x300074B3: lea eax, [ebp - 0x48] */
   4171     MEM32(ebp + (-0x9C)) = ecx; /* 0x300074B6: mov dword ptr [ebp - 0x9c], ecx */
   4172     PUSH32(esp, eax); /* 0x300074BC: push eax */
   4173     ecx = ebp + (-0xA0); /* 0x300074BD: lea ecx, [ebp - 0xa0] */
   4174     MEM32(ebp + (-0x98)) = edx; /* 0x300074C3: mov dword ptr [ebp - 0x98], edx */
   4175     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300074C9: call dword ptr [0x300190bc] */
   4176     RECOMP_FLAGS_IN();
   4177     ecx = MEM32(eax); /* 0x300074CF: mov ecx, dword ptr [eax] */
   4178     edx = MEM32(eax + 0x4); /* 0x300074D1: mov edx, dword ptr [eax + 4] */
   4179     eax = MEM32(eax + 0x8); /* 0x300074D4: mov eax, dword ptr [eax + 8] */
   4180     MEM32(ebp + (-0x54)) = ecx; /* 0x300074D7: mov dword ptr [ebp - 0x54], ecx */
   4181     ecx = MEM32(ebp + 0xC); /* 0x300074DA: mov ecx, dword ptr [ebp + 0xc] */
   4182     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x300074DD: fld dword ptr [ecx + 0x18] */
   4183     MEM32(ebp + (-0x4C)) = eax; /* 0x300074E0: mov dword ptr [ebp - 0x4c], eax */
   4184     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x300074E3: fld dword ptr [ebp - 0x4c] */
   4185     MEM32(ebp + (-0x50)) = edx; /* 0x300074E6: mov dword ptr [ebp - 0x50], edx */
   4186     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300074E9: fmul dword ptr [ebp - 0x4c] */
   4187     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300074EC: fld dword ptr [ebp - 0x50] */
   4188     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300074EF: fmul dword ptr [ebp - 0x50] */
   4189     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074F2: faddp st(1) */
   4190     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300074F4: fld dword ptr [ebp - 0x54] */
   4191     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x300074F7: fmul dword ptr [ebp - 0x54] */
   4192     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074FA: faddp st(1) */
   4193     fp_push(_st[1]); /* 0x300074FC: fld st(1) */
   4194     _st[0] *= _st[2]; /* 0x300074FE: fmul st(2) */
   4195     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007500: fcompp  */
   4196     fp_pop(); fp_pop();
   4197     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007502: fnstsw ax */
   4198     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007504: fstp st(0) */
   4199     /* test HI8(eax), 1 */ /* 0x30007506: test ah, 1 */
   4200     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4201     _cf = 0;
   4202     _flag_k = FK_NARROW(FK_TEST, 24);
   4203     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007509: je 0x30007650 */
   4204 L_3000750F:
   4205     edx = MEM32(ebp + (-0x14)); /* 0x3000750F: mov edx, dword ptr [ebp - 0x14] */
   4206     esi = MEM32(ebp + (-0x10)); /* 0x30007512: mov esi, dword ptr [ebp - 0x10] */
   4207     ecx = MEM32(ebp + (-0x18)); /* 0x30007515: mov ecx, dword ptr [ebp - 0x18] */
   4208 L_30007518:
   4209     eax = MEM32(ebp + (-0x5C)); /* 0x30007518: mov eax, dword ptr [ebp - 0x5c] */
   4210     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4211     eax = eax + 1; /* 0x3000751B: inc eax */
   4212     _flag_k = FK_INC;
   4213     /* cmp eax, 3 */ /* 0x3000751C: cmp eax, 3 */
   4214     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4216     _flag_k = FK_CMP;
   4217     MEM32(ebp + (-0x5C)) = eax; /* 0x3000751F: mov dword ptr [ebp - 0x5c], eax */
   4218     RECOMP_BACKEDGE();
   4219     if (CMP_LE(_flag_a, _flag_b)) goto L_30007231; /* 0x30007522: jle 0x30007231 */
   4220 L_30007528:
   4221     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x30007528: fld dword ptr [ebp - 0x28] */
   4222     edi = 1; /* 0x3000752B: mov edi, 1 */
   4223     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007530: fmul dword ptr [ebp - 0x28] */
   4224     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x30007533: fld dword ptr [ebp - 0x2c] */
   4225     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007536: fmul dword ptr [ebp - 0x2c] */
   4226     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007539: faddp st(1) */
   4227     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3000753B: fld dword ptr [ebp - 0x30] */
   4228     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000753E: fmul dword ptr [ebp - 0x30] */
   4229     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007541: faddp st(1) */
   4230     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30007543: fstp dword ptr [ebp + 0xc] */
   4231     goto L_30007551; /* 0x30007546: jmp 0x30007551 */
   4232 L_30007548:
   4233     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   4234     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   4235     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   4236 L_30007551:
   4237     eax = edi; /* 0x30007551: mov eax, edi */
   4238     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4239     eax = eax - 1; /* 0x30007553: dec eax */
   4240     _flag_k = FK_DEC;
   4241     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   4242 L_30007556:
   4243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4244     eax = eax - 1; /* 0x30007556: dec eax */
   4245     _flag_k = FK_DEC;
   4246     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   4247 L_30007559:
   4248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4249     eax = eax - 1; /* 0x30007559: dec eax */
   4250     _flag_k = FK_DEC;
   4251     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   4252 L_3000755C:
   4253     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   4254     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   4255 L_30007561:
   4256     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   4257     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   4258 L_30007569:
   4259     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   4260 L_3000756F:
   4261     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   4262     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   4263     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   4264     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   4265     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   4266     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   4267 L_30007580:
   4268     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   4269     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   4270     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   4271     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   4272     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   4273     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   4274     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   4275     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   4276     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   4277     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   4278     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   4279     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   4280     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   4281     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   4282     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   4283     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   4284     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   4285     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   4286     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   4287     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   4288     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   4289     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   4290     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   4291     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   4292     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   4293     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   4294     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   4295     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   4296     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   4297     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   4298     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   4299     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   4300     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   4301     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   4302     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   4303     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   4304     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   4305     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   4306     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   4307     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   4308     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   4309     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   4310     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   4311     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   4312     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   4313     RECOMP_FLAGS_IN();
   4314     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   4315     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   4316     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   4317     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   4318     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   4319     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   4320     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   4321     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   4322     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   4323     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   4324     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   4325     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   4326     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   4327     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   4328     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   4329     fp_pop();
   4330     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   4331     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   4332     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4333     _cf = 0;
   4334     _flag_k = FK_NARROW(FK_TEST, 24);
   4335     RECOMP_BACKEDGE();
   4336     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   4337 L_30007646:
   4338     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   4339     edi = edi + 1; /* 0x30007646: inc edi */
   4340     _flag_k = FK_INC;
   4341     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   4342     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   4343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4344     _flag_k = FK_CMP;
   4345     RECOMP_BACKEDGE();
   4346     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   4347 L_30007650:
   4348     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   4349     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   4350     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   4351     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   4352     esp = ebp; /* 0x30007655: mov esp, ebp */
   4353     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   4354     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   4355     RECOMP_REGS_OUT();
   4356 }
   4357 
   4358 void sub_300071E8(void) {
   4359     int _fpu_cmp = 0;
   4360     uint32_t _cf = 0;
   4361     int _df = 1;
   4362     uint32_t _flag_k = FK_NONE;
   4363     uint32_t _flag_a = 0, _flag_b = 0;
   4364     uint32_t _itail_tgt = 0;
   4365     RECOMP_REGS_LOCALS
   4366     RECOMP_ENTER(0x300071E8u);
   4367 
   4368 L_300071E8:
   4369     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   4370     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   4371     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4372     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   4373     _cf = 0;
   4374     _flag_k = FK_NARROW(FK_TEST, 24);
   4375     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   4376     esp = ebp; /* 0x300071ED: mov esp, ebp */
   4377     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   4378     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   4379     RECOMP_REGS_OUT();
   4380 }
   4381 
   4382 void sub_300071F8(void) {
   4383     int _fpu_cmp = 0;
   4384     uint32_t _cf = 0;
   4385     int _df = 1;
   4386     uint32_t _flag_k = FK_NONE;
   4387     uint32_t _flag_a = 0, _flag_b = 0;
   4388     uint32_t _itail_tgt = 0;
   4389     RECOMP_REGS_LOCALS
   4390     RECOMP_ENTER(0x300071F8u);
   4391 
   4392     goto L_300071F8;
   4393 L_300071E8:
   4394     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   4395     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   4396     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4397     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   4398     _cf = 0;
   4399     _flag_k = FK_NARROW(FK_TEST, 24);
   4400     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   4401     esp = ebp; /* 0x300071ED: mov esp, ebp */
   4402     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   4403     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   4404 L_300071F8:
   4405     ecx = MEM32(ebp + (-0x18)); /* 0x300071F8: mov ecx, dword ptr [ebp - 0x18] */
   4406     MEM32(ebp + (-0x14)) = 0; /* 0x300071FB: mov dword ptr [ebp - 0x14], 0 */
   4407     edx = MEM32(ebp + (-0x14)); /* 0x30007202: mov edx, dword ptr [ebp - 0x14] */
   4408     MEM32(ebp + (-0x10)) = 0; /* 0x30007205: mov dword ptr [ebp - 0x10], 0 */
   4409     esi = MEM32(ebp + (-0x10)); /* 0x3000720C: mov esi, dword ptr [ebp - 0x10] */
   4410     MEM32(ebp + (-0xC)) = 0; /* 0x3000720F: mov dword ptr [ebp - 0xc], 0 */
   4411     edi = MEM32(ebp + (-0xC)); /* 0x30007216: mov edi, dword ptr [ebp - 0xc] */
   4412     MEM32(ebp + (-0x8)) = 0; /* 0x30007219: mov dword ptr [ebp - 8], 0 */
   4413     ebx = MEM32(ebp + (-0x8)); /* 0x30007220: mov ebx, dword ptr [ebp - 8] */
   4414     MEM32(ebp + (-0x4)) = 0; /* 0x30007223: mov dword ptr [ebp - 4], 0 */
   4415     MEM32(ebp + (-0x5C)) = 1; /* 0x3000722A: mov dword ptr [ebp - 0x5c], 1 */
   4416 L_30007231:
   4417     eax = MEM32(ebp + (-0x5C)); /* 0x30007231: mov eax, dword ptr [ebp - 0x5c] */
   4418     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4419     eax = eax - 1; /* 0x30007234: dec eax */
   4420     _flag_k = FK_DEC;
   4421     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000728A; /* 0x30007235: je 0x3000728a */
   4422 L_30007237:
   4423     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4424     eax = eax - 1; /* 0x30007237: dec eax */
   4425     _flag_k = FK_DEC;
   4426     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007262; /* 0x30007238: je 0x30007262 */
   4427 L_3000723A:
   4428     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4429     eax = eax - 1; /* 0x3000723A: dec eax */
   4430     _flag_k = FK_DEC;
   4431     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300072B3; /* 0x3000723B: jne 0x300072b3 */
   4432 L_3000723D:
   4433     eax = MEM32(ebp + (-0x58)); /* 0x3000723D: mov eax, dword ptr [ebp - 0x58] */
   4434     ecx = MEM32(eax); /* 0x30007240: mov ecx, dword ptr [eax] */
   4435     edx = MEM32(eax + 0x4); /* 0x30007242: mov edx, dword ptr [eax + 4] */
   4436     esi = MEM32(eax + 0x8); /* 0x30007245: mov esi, dword ptr [eax + 8] */
   4437     edi = MEM32(ebp + (-0x80)); /* 0x30007248: mov edi, dword ptr [ebp - 0x80] */
   4438     ebx = MEM32(ebp + (-0x7C)); /* 0x3000724B: mov ebx, dword ptr [ebp - 0x7c] */
   4439     eax = MEM32(ebp + (-0x78)); /* 0x3000724E: mov eax, dword ptr [ebp - 0x78] */
   4440     MEM32(ebp + (-0x18)) = ecx; /* 0x30007251: mov dword ptr [ebp - 0x18], ecx */
   4441     MEM32(ebp + (-0x14)) = edx; /* 0x30007254: mov dword ptr [ebp - 0x14], edx */
   4442     MEM32(ebp + (-0x10)) = esi; /* 0x30007257: mov dword ptr [ebp - 0x10], esi */
   4443     MEM32(ebp + (-0xC)) = edi; /* 0x3000725A: mov dword ptr [ebp - 0xc], edi */
   4444     MEM32(ebp + (-0x8)) = ebx; /* 0x3000725D: mov dword ptr [ebp - 8], ebx */
   4445     goto L_300072B0; /* 0x30007260: jmp 0x300072b0 */
   4446 L_30007262:
   4447     eax = MEM32(ebp + (-0x90)); /* 0x30007262: mov eax, dword ptr [ebp - 0x90] */
   4448     ecx = MEM32(eax); /* 0x30007268: mov ecx, dword ptr [eax] */
   4449     edx = MEM32(eax + 0x4); /* 0x3000726A: mov edx, dword ptr [eax + 4] */
   4450     esi = MEM32(eax + 0x8); /* 0x3000726D: mov esi, dword ptr [eax + 8] */
   4451     edi = MEM32(ebp + (-0x68)); /* 0x30007270: mov edi, dword ptr [ebp - 0x68] */
   4452     ebx = MEM32(ebp + (-0x64)); /* 0x30007273: mov ebx, dword ptr [ebp - 0x64] */
   4453     eax = MEM32(ebp + (-0x60)); /* 0x30007276: mov eax, dword ptr [ebp - 0x60] */
   4454     MEM32(ebp + (-0x18)) = ecx; /* 0x30007279: mov dword ptr [ebp - 0x18], ecx */
   4455     MEM32(ebp + (-0x14)) = edx; /* 0x3000727C: mov dword ptr [ebp - 0x14], edx */
   4456     MEM32(ebp + (-0x10)) = esi; /* 0x3000727F: mov dword ptr [ebp - 0x10], esi */
   4457     MEM32(ebp + (-0xC)) = edi; /* 0x30007282: mov dword ptr [ebp - 0xc], edi */
   4458     MEM32(ebp + (-0x8)) = ebx; /* 0x30007285: mov dword ptr [ebp - 8], ebx */
   4459     goto L_300072B0; /* 0x30007288: jmp 0x300072b0 */
   4460 L_3000728A:
   4461     eax = MEM32(ebp + (-0x94)); /* 0x3000728A: mov eax, dword ptr [ebp - 0x94] */
   4462     ecx = MEM32(eax); /* 0x30007290: mov ecx, dword ptr [eax] */
   4463     edx = MEM32(eax + 0x4); /* 0x30007292: mov edx, dword ptr [eax + 4] */
   4464     esi = MEM32(eax + 0x8); /* 0x30007295: mov esi, dword ptr [eax + 8] */
   4465     edi = MEM32(ebp + (-0x30)); /* 0x30007298: mov edi, dword ptr [ebp - 0x30] */
   4466     ebx = MEM32(ebp + (-0x2C)); /* 0x3000729B: mov ebx, dword ptr [ebp - 0x2c] */
   4467     eax = MEM32(ebp + (-0x28)); /* 0x3000729E: mov eax, dword ptr [ebp - 0x28] */
   4468     MEM32(ebp + (-0x18)) = ecx; /* 0x300072A1: mov dword ptr [ebp - 0x18], ecx */
   4469     MEM32(ebp + (-0x14)) = edx; /* 0x300072A4: mov dword ptr [ebp - 0x14], edx */
   4470     MEM32(ebp + (-0x10)) = esi; /* 0x300072A7: mov dword ptr [ebp - 0x10], esi */
   4471     MEM32(ebp + (-0xC)) = edi; /* 0x300072AA: mov dword ptr [ebp - 0xc], edi */
   4472     MEM32(ebp + (-0x8)) = ebx; /* 0x300072AD: mov dword ptr [ebp - 8], ebx */
   4473 L_300072B0:
   4474     MEM32(ebp + (-0x4)) = eax; /* 0x300072B0: mov dword ptr [ebp - 4], eax */
   4475 L_300072B3:
   4476     eax = MEM32(ebp + (-0x48)); /* 0x300072B3: mov eax, dword ptr [ebp - 0x48] */
   4477     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x300072B6: fld dword ptr [ebp - 0x48] */
   4478     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300072B9: fsub dword ptr [ebp - 0x18] */
   4479     MEM32(ebp + (-0xAC)) = eax; /* 0x300072BC: mov dword ptr [ebp - 0xac], eax */
   4480     eax = MEM32(ebp + (-0x44)); /* 0x300072C2: mov eax, dword ptr [ebp - 0x44] */
   4481     MEM32(ebp + (-0xA8)) = eax; /* 0x300072C5: mov dword ptr [ebp - 0xa8], eax */
   4482     fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x300072CB: fld dword ptr [ebp - 0xa8] */
   4483     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300072D1: fsub dword ptr [ebp - 0x14] */
   4484     eax = MEM32(ebp + (-0x40)); /* 0x300072D4: mov eax, dword ptr [ebp - 0x40] */
   4485     MEM32(ebp + (-0xA4)) = eax; /* 0x300072D7: mov dword ptr [ebp - 0xa4], eax */
   4486     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x300072DD: fld dword ptr [ebp - 0xa4] */
   4487     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300072E3: fsub dword ptr [ebp - 0x10] */
   4488     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072E6: fld dword ptr [ebp - 4] */
   4489     _st[0] *= _st[1]; /* 0x300072E9: fmul st(1) */
   4490     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072EB: fld dword ptr [ebp - 8] */
   4491     _st[0] *= _st[3]; /* 0x300072EE: fmul st(3) */
   4492     { double _v = fp_pop(); _st[0] += _v; } /* 0x300072F0: faddp st(1) */
   4493     fp_xch(3); /* 0x300072F2: fxch st(3) */
   4494     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300072F4: fmul dword ptr [ebp - 0xc] */
   4495     { double _v = fp_pop(); _st[2] += _v; } /* 0x300072F7: faddp st(3) */
   4496     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072F9: fld dword ptr [ebp - 4] */
   4497     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300072FC: fmul dword ptr [ebp - 4] */
   4498     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072FF: fld dword ptr [ebp - 8] */
   4499     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x30007302: fmul dword ptr [ebp - 8] */
   4500     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007305: faddp st(1) */
   4501     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007307: fld dword ptr [ebp - 0xc] */
   4502     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000730A: fmul dword ptr [ebp - 0xc] */
   4503     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000730D: faddp st(1) */
   4504     { double _v = fp_pop(); _st[2] = _v == 0.0 ? _st[2] : _st[2] / _v; } /* 0x3000730F: fdivp st(3) */
   4505     fp_xch(2); /* 0x30007311: fxch st(2) */
   4506     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30007313: fstp dword ptr [ebp + 8] */
   4507     fp_xch(1); /* 0x30007316: fxch st(1) */
   4508     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007318: fstp st(0) */
   4509     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000731A: fstp st(0) */
   4510     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000731C: fld dword ptr [ebp + 8] */
   4511     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300191B8)); /* 0x3000731F: fcomp dword ptr [0x300191b8] */
   4512     fp_pop();
   4513     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007325: fnstsw ax */
   4514     /* test HI8(eax), 1 */ /* 0x30007327: test ah, 1 */
   4515     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4516     _cf = 0;
   4517     _flag_k = FK_NARROW(FK_TEST, 24);
   4518     if (TEST_NZ(_flag_a, _flag_b)) goto L_300073DF; /* 0x3000732A: jne 0x300073df */
   4519 L_30007330:
   4520     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007330: fld dword ptr [ebp - 0xc] */
   4521     MEM32(ebp + (-0x74)) = ecx; /* 0x30007333: mov dword ptr [ebp - 0x74], ecx */
   4522     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30007336: fadd dword ptr [ebp - 0x18] */
   4523     MEM32(ebp + (-0x70)) = edx; /* 0x30007339: mov dword ptr [ebp - 0x70], edx */
   4524     MEM32(ebp + (-0x6C)) = esi; /* 0x3000733C: mov dword ptr [ebp - 0x6c], esi */
   4525     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3000733F: fstp dword ptr [ebp - 0x74] */
   4526     ecx = MEM32(ebp + (-0x74)); /* 0x30007342: mov ecx, dword ptr [ebp - 0x74] */
   4527     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x30007345: fld dword ptr [ebp - 0x70] */
   4528     MEM32(ebp + (-0xB8)) = ecx; /* 0x30007348: mov dword ptr [ebp - 0xb8], ecx */
   4529     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3000734E: fadd dword ptr [ebp - 8] */
   4530     ecx = ebp + (-0x48); /* 0x30007351: lea ecx, [ebp - 0x48] */
   4531     PUSH32(esp, ecx); /* 0x30007354: push ecx */
   4532     ecx = ebp + (-0xB8); /* 0x30007355: lea ecx, [ebp - 0xb8] */
   4533     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3000735B: fstp dword ptr [ebp - 0x70] */
   4534     edx = MEM32(ebp + (-0x70)); /* 0x3000735E: mov edx, dword ptr [ebp - 0x70] */
   4535     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x30007361: fld dword ptr [ebp - 0x6c] */
   4536     MEM32(ebp + (-0xB4)) = edx; /* 0x30007364: mov dword ptr [ebp - 0xb4], edx */
   4537     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000736A: fadd dword ptr [ebp - 4] */
   4538     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x3000736D: fstp dword ptr [ebp - 0x6c] */
   4539     eax = MEM32(ebp + (-0x6C)); /* 0x30007370: mov eax, dword ptr [ebp - 0x6c] */
   4540     MEM32(ebp + (-0xB0)) = eax; /* 0x30007373: mov dword ptr [ebp - 0xb0], eax */
   4541     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007379: call dword ptr [0x300190bc] */
   4542     RECOMP_FLAGS_IN();
   4543     edx = MEM32(eax); /* 0x3000737F: mov edx, dword ptr [eax] */
   4544     ecx = MEM32(eax + 0x4); /* 0x30007381: mov ecx, dword ptr [eax + 4] */
   4545     MEM32(ebp + (-0x8C)) = edx; /* 0x30007384: mov dword ptr [ebp - 0x8c], edx */
   4546     edx = MEM32(eax + 0x8); /* 0x3000738A: mov edx, dword ptr [eax + 8] */
   4547     eax = MEM32(ebp + 0xC); /* 0x3000738D: mov eax, dword ptr [ebp + 0xc] */
   4548     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x30007390: fld dword ptr [eax + 0x18] */
   4549     MEM32(ebp + (-0x84)) = edx; /* 0x30007393: mov dword ptr [ebp - 0x84], edx */
   4550     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x30007399: fld dword ptr [ebp - 0x84] */
   4551     MEM32(ebp + (-0x88)) = ecx; /* 0x3000739F: mov dword ptr [ebp - 0x88], ecx */
   4552     _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x300073A5: fmul dword ptr [ebp - 0x84] */
   4553     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x300073AB: fld dword ptr [ebp - 0x88] */
   4554     _st[0] *= (double)*(float*)ADDR(ebp + (-0x88)); /* 0x300073B1: fmul dword ptr [ebp - 0x88] */
   4555     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073B7: faddp st(1) */
   4556     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x300073B9: fld dword ptr [ebp - 0x8c] */
   4557     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8C)); /* 0x300073BF: fmul dword ptr [ebp - 0x8c] */
   4558     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073C5: faddp st(1) */
   4559     fp_push(_st[1]); /* 0x300073C7: fld st(1) */
   4560     _st[0] *= _st[2]; /* 0x300073C9: fmul st(2) */
   4561     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300073CB: fcompp  */
   4562     fp_pop(); fp_pop();
   4563     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073CD: fnstsw ax */
   4564     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300073CF: fstp st(0) */
   4565     /* test HI8(eax), 1 */ /* 0x300073D1: test ah, 1 */
   4566     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4567     _cf = 0;
   4568     _flag_k = FK_NARROW(FK_TEST, 24);
   4569     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x300073D4: je 0x30007650 */
   4570 L_300073DA:
   4571     goto L_3000750F; /* 0x300073DA: jmp 0x3000750f */
   4572 L_300073DF:
   4573     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x300073DF: fld dword ptr [ebp + 8] */
   4574     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x300073E2: fcomp dword ptr [0x3001919c] */
   4575     fp_pop();
   4576     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073E8: fnstsw ax */
   4577     /* test HI8(eax), 0x41u */ /* 0x300073EA: test ah, 0x41 */
   4578     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4579     _cf = 0;
   4580     _flag_k = FK_NARROW(FK_TEST, 24);
   4581     if (TEST_Z(_flag_a, _flag_b)) goto L_3000743E; /* 0x300073ED: je 0x3000743e */
   4582 L_300073EF:
   4583     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300073EF: fld dword ptr [ebp - 0x18] */
   4584     eax = MEM32(ebp + 0xC); /* 0x300073F2: mov eax, dword ptr [ebp + 0xc] */
   4585     _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x300073F5: fsub dword ptr [ebp - 0x48] */
   4586     MEM32(ebp + (-0x38)) = edx; /* 0x300073F8: mov dword ptr [ebp - 0x38], edx */
   4587     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x300073FB: fld dword ptr [ebp - 0x38] */
   4588     MEM32(ebp + (-0x34)) = esi; /* 0x300073FE: mov dword ptr [ebp - 0x34], esi */
   4589     _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x30007401: fsub dword ptr [ebp - 0x44] */
   4590     MEM32(ebp + (-0x3C)) = ecx; /* 0x30007404: mov dword ptr [ebp - 0x3c], ecx */
   4591     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30007407: fld dword ptr [ebp - 0x34] */
   4592     _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3000740A: fsub dword ptr [ebp - 0x40] */
   4593     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x3000740D: fld dword ptr [eax + 0x18] */
   4594     fp_push(_st[1]); /* 0x30007410: fld st(1) */
   4595     _st[0] *= _st[2]; /* 0x30007412: fmul st(2) */
   4596     fp_push(_st[3]); /* 0x30007414: fld st(3) */
   4597     _st[0] *= _st[4]; /* 0x30007416: fmul st(4) */
   4598     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007418: faddp st(1) */
   4599     fp_push(_st[4]); /* 0x3000741A: fld st(4) */
   4600     _st[0] *= _st[5]; /* 0x3000741C: fmul st(5) */
   4601     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000741E: faddp st(1) */
   4602     fp_push(_st[1]); /* 0x30007420: fld st(1) */
   4603     _st[0] *= _st[2]; /* 0x30007422: fmul st(2) */
   4604     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007424: fcompp  */
   4605     fp_pop(); fp_pop();
   4606     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007426: fstp st(0) */
   4607     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007428: fstp st(0) */
   4608     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000742A: fnstsw ax */
   4609     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000742C: fstp st(0) */
   4610     /* test HI8(eax), 1 */ /* 0x3000742E: test ah, 1 */
   4611     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4612     _cf = 0;
   4613     _flag_k = FK_NARROW(FK_TEST, 24);
   4614     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007431: fstp st(0) */
   4615     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007433: je 0x30007650 */
   4616 L_30007439:
   4617     goto L_30007518; /* 0x30007439: jmp 0x30007518 */
   4618 L_3000743E:
   4619     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000743E: fld dword ptr [ebp - 0xc] */
   4620     eax = MEM32(ebp + (-0x4)); /* 0x30007441: mov eax, dword ptr [ebp - 4] */
   4621     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x30007444: fmul dword ptr [ebp + 8] */
   4622     MEM32(ebp + (-0x24)) = edi; /* 0x30007447: mov dword ptr [ebp - 0x24], edi */
   4623     MEM32(ebp + (-0x20)) = ebx; /* 0x3000744A: mov dword ptr [ebp - 0x20], ebx */
   4624     MEM32(ebp + (-0x1C)) = eax; /* 0x3000744D: mov dword ptr [ebp - 0x1c], eax */
   4625     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x30007450: fstp dword ptr [ebp - 0x24] */
   4626     eax = MEM32(ebp + (-0x24)); /* 0x30007453: mov eax, dword ptr [ebp - 0x24] */
   4627     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30007456: fld dword ptr [ebp - 0x20] */
   4628     MEM32(ebp + (-0xD0)) = eax; /* 0x30007459: mov dword ptr [ebp - 0xd0], eax */
   4629     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000745F: fmul dword ptr [ebp + 8] */
   4630     MEM32(ebp + (-0xC4)) = ecx; /* 0x30007462: mov dword ptr [ebp - 0xc4], ecx */
   4631     ecx = ebp + (-0xD0); /* 0x30007468: lea ecx, [ebp - 0xd0] */
   4632     PUSH32(esp, ecx); /* 0x3000746E: push ecx */
   4633     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000746F: fstp dword ptr [ebp - 0x20] */
   4634     eax = MEM32(ebp + (-0x20)); /* 0x30007472: mov eax, dword ptr [ebp - 0x20] */
   4635     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30007475: fld dword ptr [ebp - 0x1c] */
   4636     MEM32(ebp + (-0xCC)) = eax; /* 0x30007478: mov dword ptr [ebp - 0xcc], eax */
   4637     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000747E: fmul dword ptr [ebp + 8] */
   4638     ecx = ebp + (-0xC4); /* 0x30007481: lea ecx, [ebp - 0xc4] */
   4639     MEM32(ebp + (-0xC0)) = edx; /* 0x30007487: mov dword ptr [ebp - 0xc0], edx */
   4640     MEM32(ebp + (-0xBC)) = esi; /* 0x3000748D: mov dword ptr [ebp - 0xbc], esi */
   4641     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007493: fstp dword ptr [ebp - 0x1c] */
   4642     eax = MEM32(ebp + (-0x1C)); /* 0x30007496: mov eax, dword ptr [ebp - 0x1c] */
   4643     MEM32(ebp + (-0xC8)) = eax; /* 0x30007499: mov dword ptr [ebp - 0xc8], eax */
   4644     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000749F: call dword ptr [0x300190c4] */
   4645     RECOMP_FLAGS_IN();
   4646     edx = MEM32(eax); /* 0x300074A5: mov edx, dword ptr [eax] */
   4647     ecx = MEM32(eax + 0x4); /* 0x300074A7: mov ecx, dword ptr [eax + 4] */
   4648     MEM32(ebp + (-0xA0)) = edx; /* 0x300074AA: mov dword ptr [ebp - 0xa0], edx */
   4649     edx = MEM32(eax + 0x8); /* 0x300074B0: mov edx, dword ptr [eax + 8] */
   4650     eax = ebp + (-0x48); /* 0x300074B3: lea eax, [ebp - 0x48] */
   4651     MEM32(ebp + (-0x9C)) = ecx; /* 0x300074B6: mov dword ptr [ebp - 0x9c], ecx */
   4652     PUSH32(esp, eax); /* 0x300074BC: push eax */
   4653     ecx = ebp + (-0xA0); /* 0x300074BD: lea ecx, [ebp - 0xa0] */
   4654     MEM32(ebp + (-0x98)) = edx; /* 0x300074C3: mov dword ptr [ebp - 0x98], edx */
   4655     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300074C9: call dword ptr [0x300190bc] */
   4656     RECOMP_FLAGS_IN();
   4657     ecx = MEM32(eax); /* 0x300074CF: mov ecx, dword ptr [eax] */
   4658     edx = MEM32(eax + 0x4); /* 0x300074D1: mov edx, dword ptr [eax + 4] */
   4659     eax = MEM32(eax + 0x8); /* 0x300074D4: mov eax, dword ptr [eax + 8] */
   4660     MEM32(ebp + (-0x54)) = ecx; /* 0x300074D7: mov dword ptr [ebp - 0x54], ecx */
   4661     ecx = MEM32(ebp + 0xC); /* 0x300074DA: mov ecx, dword ptr [ebp + 0xc] */
   4662     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x300074DD: fld dword ptr [ecx + 0x18] */
   4663     MEM32(ebp + (-0x4C)) = eax; /* 0x300074E0: mov dword ptr [ebp - 0x4c], eax */
   4664     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x300074E3: fld dword ptr [ebp - 0x4c] */
   4665     MEM32(ebp + (-0x50)) = edx; /* 0x300074E6: mov dword ptr [ebp - 0x50], edx */
   4666     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300074E9: fmul dword ptr [ebp - 0x4c] */
   4667     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300074EC: fld dword ptr [ebp - 0x50] */
   4668     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300074EF: fmul dword ptr [ebp - 0x50] */
   4669     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074F2: faddp st(1) */
   4670     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300074F4: fld dword ptr [ebp - 0x54] */
   4671     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x300074F7: fmul dword ptr [ebp - 0x54] */
   4672     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074FA: faddp st(1) */
   4673     fp_push(_st[1]); /* 0x300074FC: fld st(1) */
   4674     _st[0] *= _st[2]; /* 0x300074FE: fmul st(2) */
   4675     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007500: fcompp  */
   4676     fp_pop(); fp_pop();
   4677     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007502: fnstsw ax */
   4678     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007504: fstp st(0) */
   4679     /* test HI8(eax), 1 */ /* 0x30007506: test ah, 1 */
   4680     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4681     _cf = 0;
   4682     _flag_k = FK_NARROW(FK_TEST, 24);
   4683     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007509: je 0x30007650 */
   4684 L_3000750F:
   4685     edx = MEM32(ebp + (-0x14)); /* 0x3000750F: mov edx, dword ptr [ebp - 0x14] */
   4686     esi = MEM32(ebp + (-0x10)); /* 0x30007512: mov esi, dword ptr [ebp - 0x10] */
   4687     ecx = MEM32(ebp + (-0x18)); /* 0x30007515: mov ecx, dword ptr [ebp - 0x18] */
   4688 L_30007518:
   4689     eax = MEM32(ebp + (-0x5C)); /* 0x30007518: mov eax, dword ptr [ebp - 0x5c] */
   4690     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4691     eax = eax + 1; /* 0x3000751B: inc eax */
   4692     _flag_k = FK_INC;
   4693     /* cmp eax, 3 */ /* 0x3000751C: cmp eax, 3 */
   4694     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4696     _flag_k = FK_CMP;
   4697     MEM32(ebp + (-0x5C)) = eax; /* 0x3000751F: mov dword ptr [ebp - 0x5c], eax */
   4698     RECOMP_BACKEDGE();
   4699     if (CMP_LE(_flag_a, _flag_b)) goto L_30007231; /* 0x30007522: jle 0x30007231 */
   4700 L_30007528:
   4701     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x30007528: fld dword ptr [ebp - 0x28] */
   4702     edi = 1; /* 0x3000752B: mov edi, 1 */
   4703     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007530: fmul dword ptr [ebp - 0x28] */
   4704     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x30007533: fld dword ptr [ebp - 0x2c] */
   4705     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007536: fmul dword ptr [ebp - 0x2c] */
   4706     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007539: faddp st(1) */
   4707     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3000753B: fld dword ptr [ebp - 0x30] */
   4708     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000753E: fmul dword ptr [ebp - 0x30] */
   4709     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007541: faddp st(1) */
   4710     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30007543: fstp dword ptr [ebp + 0xc] */
   4711     goto L_30007551; /* 0x30007546: jmp 0x30007551 */
   4712 L_30007548:
   4713     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   4714     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   4715     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   4716 L_30007551:
   4717     eax = edi; /* 0x30007551: mov eax, edi */
   4718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4719     eax = eax - 1; /* 0x30007553: dec eax */
   4720     _flag_k = FK_DEC;
   4721     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   4722 L_30007556:
   4723     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4724     eax = eax - 1; /* 0x30007556: dec eax */
   4725     _flag_k = FK_DEC;
   4726     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   4727 L_30007559:
   4728     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4729     eax = eax - 1; /* 0x30007559: dec eax */
   4730     _flag_k = FK_DEC;
   4731     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   4732 L_3000755C:
   4733     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   4734     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   4735 L_30007561:
   4736     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   4737     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   4738 L_30007569:
   4739     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   4740 L_3000756F:
   4741     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   4742     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   4743     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   4744     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   4745     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   4746     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   4747 L_30007580:
   4748     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   4749     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   4750     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   4751     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   4752     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   4753     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   4754     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   4755     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   4756     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   4757     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   4758     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   4759     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   4760     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   4761     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   4762     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   4763     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   4764     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   4765     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   4766     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   4767     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   4768     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   4769     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   4770     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   4771     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   4772     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   4773     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   4774     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   4775     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   4776     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   4777     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   4778     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   4779     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   4780     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   4781     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   4782     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   4783     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   4784     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   4785     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   4786     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   4787     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   4788     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   4789     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   4790     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   4791     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   4792     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   4793     RECOMP_FLAGS_IN();
   4794     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   4795     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   4796     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   4797     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   4798     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   4799     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   4800     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   4801     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   4802     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   4803     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   4804     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   4805     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   4806     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   4807     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   4808     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   4809     fp_pop();
   4810     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   4811     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   4812     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4813     _cf = 0;
   4814     _flag_k = FK_NARROW(FK_TEST, 24);
   4815     RECOMP_BACKEDGE();
   4816     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   4817 L_30007646:
   4818     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   4819     edi = edi + 1; /* 0x30007646: inc edi */
   4820     _flag_k = FK_INC;
   4821     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   4822     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   4823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4824     _flag_k = FK_CMP;
   4825     RECOMP_BACKEDGE();
   4826     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   4827 L_30007650:
   4828     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   4829     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   4830     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   4831     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   4832     esp = ebp; /* 0x30007655: mov esp, ebp */
   4833     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   4834     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   4835     RECOMP_REGS_OUT();
   4836 }
   4837 
   4838 void sub_30007231(void) {
   4839     int _fpu_cmp = 0;
   4840     uint32_t _cf = 0;
   4841     int _df = 1;
   4842     uint32_t _flag_k = FK_NONE;
   4843     uint32_t _flag_a = 0, _flag_b = 0;
   4844     uint32_t _itail_tgt = 0;
   4845     RECOMP_REGS_LOCALS
   4846     RECOMP_ENTER(0x30007231u);
   4847 
   4848     goto L_30007231;
   4849 L_300071E8:
   4850     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   4851     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   4852     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4853     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   4854     _cf = 0;
   4855     _flag_k = FK_NARROW(FK_TEST, 24);
   4856     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   4857     esp = ebp; /* 0x300071ED: mov esp, ebp */
   4858     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   4859     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   4860 L_30007231:
   4861     eax = MEM32(ebp + (-0x5C)); /* 0x30007231: mov eax, dword ptr [ebp - 0x5c] */
   4862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4863     eax = eax - 1; /* 0x30007234: dec eax */
   4864     _flag_k = FK_DEC;
   4865     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000728A; /* 0x30007235: je 0x3000728a */
   4866 L_30007237:
   4867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4868     eax = eax - 1; /* 0x30007237: dec eax */
   4869     _flag_k = FK_DEC;
   4870     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007262; /* 0x30007238: je 0x30007262 */
   4871 L_3000723A:
   4872     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4873     eax = eax - 1; /* 0x3000723A: dec eax */
   4874     _flag_k = FK_DEC;
   4875     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300072B3; /* 0x3000723B: jne 0x300072b3 */
   4876 L_3000723D:
   4877     eax = MEM32(ebp + (-0x58)); /* 0x3000723D: mov eax, dword ptr [ebp - 0x58] */
   4878     ecx = MEM32(eax); /* 0x30007240: mov ecx, dword ptr [eax] */
   4879     edx = MEM32(eax + 0x4); /* 0x30007242: mov edx, dword ptr [eax + 4] */
   4880     esi = MEM32(eax + 0x8); /* 0x30007245: mov esi, dword ptr [eax + 8] */
   4881     edi = MEM32(ebp + (-0x80)); /* 0x30007248: mov edi, dword ptr [ebp - 0x80] */
   4882     ebx = MEM32(ebp + (-0x7C)); /* 0x3000724B: mov ebx, dword ptr [ebp - 0x7c] */
   4883     eax = MEM32(ebp + (-0x78)); /* 0x3000724E: mov eax, dword ptr [ebp - 0x78] */
   4884     MEM32(ebp + (-0x18)) = ecx; /* 0x30007251: mov dword ptr [ebp - 0x18], ecx */
   4885     MEM32(ebp + (-0x14)) = edx; /* 0x30007254: mov dword ptr [ebp - 0x14], edx */
   4886     MEM32(ebp + (-0x10)) = esi; /* 0x30007257: mov dword ptr [ebp - 0x10], esi */
   4887     MEM32(ebp + (-0xC)) = edi; /* 0x3000725A: mov dword ptr [ebp - 0xc], edi */
   4888     MEM32(ebp + (-0x8)) = ebx; /* 0x3000725D: mov dword ptr [ebp - 8], ebx */
   4889     goto L_300072B0; /* 0x30007260: jmp 0x300072b0 */
   4890 L_30007262:
   4891     eax = MEM32(ebp + (-0x90)); /* 0x30007262: mov eax, dword ptr [ebp - 0x90] */
   4892     ecx = MEM32(eax); /* 0x30007268: mov ecx, dword ptr [eax] */
   4893     edx = MEM32(eax + 0x4); /* 0x3000726A: mov edx, dword ptr [eax + 4] */
   4894     esi = MEM32(eax + 0x8); /* 0x3000726D: mov esi, dword ptr [eax + 8] */
   4895     edi = MEM32(ebp + (-0x68)); /* 0x30007270: mov edi, dword ptr [ebp - 0x68] */
   4896     ebx = MEM32(ebp + (-0x64)); /* 0x30007273: mov ebx, dword ptr [ebp - 0x64] */
   4897     eax = MEM32(ebp + (-0x60)); /* 0x30007276: mov eax, dword ptr [ebp - 0x60] */
   4898     MEM32(ebp + (-0x18)) = ecx; /* 0x30007279: mov dword ptr [ebp - 0x18], ecx */
   4899     MEM32(ebp + (-0x14)) = edx; /* 0x3000727C: mov dword ptr [ebp - 0x14], edx */
   4900     MEM32(ebp + (-0x10)) = esi; /* 0x3000727F: mov dword ptr [ebp - 0x10], esi */
   4901     MEM32(ebp + (-0xC)) = edi; /* 0x30007282: mov dword ptr [ebp - 0xc], edi */
   4902     MEM32(ebp + (-0x8)) = ebx; /* 0x30007285: mov dword ptr [ebp - 8], ebx */
   4903     goto L_300072B0; /* 0x30007288: jmp 0x300072b0 */
   4904 L_3000728A:
   4905     eax = MEM32(ebp + (-0x94)); /* 0x3000728A: mov eax, dword ptr [ebp - 0x94] */
   4906     ecx = MEM32(eax); /* 0x30007290: mov ecx, dword ptr [eax] */
   4907     edx = MEM32(eax + 0x4); /* 0x30007292: mov edx, dword ptr [eax + 4] */
   4908     esi = MEM32(eax + 0x8); /* 0x30007295: mov esi, dword ptr [eax + 8] */
   4909     edi = MEM32(ebp + (-0x30)); /* 0x30007298: mov edi, dword ptr [ebp - 0x30] */
   4910     ebx = MEM32(ebp + (-0x2C)); /* 0x3000729B: mov ebx, dword ptr [ebp - 0x2c] */
   4911     eax = MEM32(ebp + (-0x28)); /* 0x3000729E: mov eax, dword ptr [ebp - 0x28] */
   4912     MEM32(ebp + (-0x18)) = ecx; /* 0x300072A1: mov dword ptr [ebp - 0x18], ecx */
   4913     MEM32(ebp + (-0x14)) = edx; /* 0x300072A4: mov dword ptr [ebp - 0x14], edx */
   4914     MEM32(ebp + (-0x10)) = esi; /* 0x300072A7: mov dword ptr [ebp - 0x10], esi */
   4915     MEM32(ebp + (-0xC)) = edi; /* 0x300072AA: mov dword ptr [ebp - 0xc], edi */
   4916     MEM32(ebp + (-0x8)) = ebx; /* 0x300072AD: mov dword ptr [ebp - 8], ebx */
   4917 L_300072B0:
   4918     MEM32(ebp + (-0x4)) = eax; /* 0x300072B0: mov dword ptr [ebp - 4], eax */
   4919 L_300072B3:
   4920     eax = MEM32(ebp + (-0x48)); /* 0x300072B3: mov eax, dword ptr [ebp - 0x48] */
   4921     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x300072B6: fld dword ptr [ebp - 0x48] */
   4922     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300072B9: fsub dword ptr [ebp - 0x18] */
   4923     MEM32(ebp + (-0xAC)) = eax; /* 0x300072BC: mov dword ptr [ebp - 0xac], eax */
   4924     eax = MEM32(ebp + (-0x44)); /* 0x300072C2: mov eax, dword ptr [ebp - 0x44] */
   4925     MEM32(ebp + (-0xA8)) = eax; /* 0x300072C5: mov dword ptr [ebp - 0xa8], eax */
   4926     fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x300072CB: fld dword ptr [ebp - 0xa8] */
   4927     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300072D1: fsub dword ptr [ebp - 0x14] */
   4928     eax = MEM32(ebp + (-0x40)); /* 0x300072D4: mov eax, dword ptr [ebp - 0x40] */
   4929     MEM32(ebp + (-0xA4)) = eax; /* 0x300072D7: mov dword ptr [ebp - 0xa4], eax */
   4930     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x300072DD: fld dword ptr [ebp - 0xa4] */
   4931     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300072E3: fsub dword ptr [ebp - 0x10] */
   4932     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072E6: fld dword ptr [ebp - 4] */
   4933     _st[0] *= _st[1]; /* 0x300072E9: fmul st(1) */
   4934     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072EB: fld dword ptr [ebp - 8] */
   4935     _st[0] *= _st[3]; /* 0x300072EE: fmul st(3) */
   4936     { double _v = fp_pop(); _st[0] += _v; } /* 0x300072F0: faddp st(1) */
   4937     fp_xch(3); /* 0x300072F2: fxch st(3) */
   4938     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300072F4: fmul dword ptr [ebp - 0xc] */
   4939     { double _v = fp_pop(); _st[2] += _v; } /* 0x300072F7: faddp st(3) */
   4940     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072F9: fld dword ptr [ebp - 4] */
   4941     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300072FC: fmul dword ptr [ebp - 4] */
   4942     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072FF: fld dword ptr [ebp - 8] */
   4943     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x30007302: fmul dword ptr [ebp - 8] */
   4944     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007305: faddp st(1) */
   4945     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007307: fld dword ptr [ebp - 0xc] */
   4946     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000730A: fmul dword ptr [ebp - 0xc] */
   4947     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000730D: faddp st(1) */
   4948     { double _v = fp_pop(); _st[2] = _v == 0.0 ? _st[2] : _st[2] / _v; } /* 0x3000730F: fdivp st(3) */
   4949     fp_xch(2); /* 0x30007311: fxch st(2) */
   4950     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30007313: fstp dword ptr [ebp + 8] */
   4951     fp_xch(1); /* 0x30007316: fxch st(1) */
   4952     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007318: fstp st(0) */
   4953     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000731A: fstp st(0) */
   4954     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000731C: fld dword ptr [ebp + 8] */
   4955     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300191B8)); /* 0x3000731F: fcomp dword ptr [0x300191b8] */
   4956     fp_pop();
   4957     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007325: fnstsw ax */
   4958     /* test HI8(eax), 1 */ /* 0x30007327: test ah, 1 */
   4959     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4960     _cf = 0;
   4961     _flag_k = FK_NARROW(FK_TEST, 24);
   4962     if (TEST_NZ(_flag_a, _flag_b)) goto L_300073DF; /* 0x3000732A: jne 0x300073df */
   4963 L_30007330:
   4964     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007330: fld dword ptr [ebp - 0xc] */
   4965     MEM32(ebp + (-0x74)) = ecx; /* 0x30007333: mov dword ptr [ebp - 0x74], ecx */
   4966     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30007336: fadd dword ptr [ebp - 0x18] */
   4967     MEM32(ebp + (-0x70)) = edx; /* 0x30007339: mov dword ptr [ebp - 0x70], edx */
   4968     MEM32(ebp + (-0x6C)) = esi; /* 0x3000733C: mov dword ptr [ebp - 0x6c], esi */
   4969     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3000733F: fstp dword ptr [ebp - 0x74] */
   4970     ecx = MEM32(ebp + (-0x74)); /* 0x30007342: mov ecx, dword ptr [ebp - 0x74] */
   4971     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x30007345: fld dword ptr [ebp - 0x70] */
   4972     MEM32(ebp + (-0xB8)) = ecx; /* 0x30007348: mov dword ptr [ebp - 0xb8], ecx */
   4973     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3000734E: fadd dword ptr [ebp - 8] */
   4974     ecx = ebp + (-0x48); /* 0x30007351: lea ecx, [ebp - 0x48] */
   4975     PUSH32(esp, ecx); /* 0x30007354: push ecx */
   4976     ecx = ebp + (-0xB8); /* 0x30007355: lea ecx, [ebp - 0xb8] */
   4977     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3000735B: fstp dword ptr [ebp - 0x70] */
   4978     edx = MEM32(ebp + (-0x70)); /* 0x3000735E: mov edx, dword ptr [ebp - 0x70] */
   4979     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x30007361: fld dword ptr [ebp - 0x6c] */
   4980     MEM32(ebp + (-0xB4)) = edx; /* 0x30007364: mov dword ptr [ebp - 0xb4], edx */
   4981     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000736A: fadd dword ptr [ebp - 4] */
   4982     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x3000736D: fstp dword ptr [ebp - 0x6c] */
   4983     eax = MEM32(ebp + (-0x6C)); /* 0x30007370: mov eax, dword ptr [ebp - 0x6c] */
   4984     MEM32(ebp + (-0xB0)) = eax; /* 0x30007373: mov dword ptr [ebp - 0xb0], eax */
   4985     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007379: call dword ptr [0x300190bc] */
   4986     RECOMP_FLAGS_IN();
   4987     edx = MEM32(eax); /* 0x3000737F: mov edx, dword ptr [eax] */
   4988     ecx = MEM32(eax + 0x4); /* 0x30007381: mov ecx, dword ptr [eax + 4] */
   4989     MEM32(ebp + (-0x8C)) = edx; /* 0x30007384: mov dword ptr [ebp - 0x8c], edx */
   4990     edx = MEM32(eax + 0x8); /* 0x3000738A: mov edx, dword ptr [eax + 8] */
   4991     eax = MEM32(ebp + 0xC); /* 0x3000738D: mov eax, dword ptr [ebp + 0xc] */
   4992     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x30007390: fld dword ptr [eax + 0x18] */
   4993     MEM32(ebp + (-0x84)) = edx; /* 0x30007393: mov dword ptr [ebp - 0x84], edx */
   4994     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x30007399: fld dword ptr [ebp - 0x84] */
   4995     MEM32(ebp + (-0x88)) = ecx; /* 0x3000739F: mov dword ptr [ebp - 0x88], ecx */
   4996     _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x300073A5: fmul dword ptr [ebp - 0x84] */
   4997     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x300073AB: fld dword ptr [ebp - 0x88] */
   4998     _st[0] *= (double)*(float*)ADDR(ebp + (-0x88)); /* 0x300073B1: fmul dword ptr [ebp - 0x88] */
   4999     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073B7: faddp st(1) */
   5000     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x300073B9: fld dword ptr [ebp - 0x8c] */
   5001     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8C)); /* 0x300073BF: fmul dword ptr [ebp - 0x8c] */
   5002     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073C5: faddp st(1) */
   5003     fp_push(_st[1]); /* 0x300073C7: fld st(1) */
   5004     _st[0] *= _st[2]; /* 0x300073C9: fmul st(2) */
   5005     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300073CB: fcompp  */
   5006     fp_pop(); fp_pop();
   5007     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073CD: fnstsw ax */
   5008     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300073CF: fstp st(0) */
   5009     /* test HI8(eax), 1 */ /* 0x300073D1: test ah, 1 */
   5010     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5011     _cf = 0;
   5012     _flag_k = FK_NARROW(FK_TEST, 24);
   5013     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x300073D4: je 0x30007650 */
   5014 L_300073DA:
   5015     goto L_3000750F; /* 0x300073DA: jmp 0x3000750f */
   5016 L_300073DF:
   5017     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x300073DF: fld dword ptr [ebp + 8] */
   5018     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x300073E2: fcomp dword ptr [0x3001919c] */
   5019     fp_pop();
   5020     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073E8: fnstsw ax */
   5021     /* test HI8(eax), 0x41u */ /* 0x300073EA: test ah, 0x41 */
   5022     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5023     _cf = 0;
   5024     _flag_k = FK_NARROW(FK_TEST, 24);
   5025     if (TEST_Z(_flag_a, _flag_b)) goto L_3000743E; /* 0x300073ED: je 0x3000743e */
   5026 L_300073EF:
   5027     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300073EF: fld dword ptr [ebp - 0x18] */
   5028     eax = MEM32(ebp + 0xC); /* 0x300073F2: mov eax, dword ptr [ebp + 0xc] */
   5029     _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x300073F5: fsub dword ptr [ebp - 0x48] */
   5030     MEM32(ebp + (-0x38)) = edx; /* 0x300073F8: mov dword ptr [ebp - 0x38], edx */
   5031     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x300073FB: fld dword ptr [ebp - 0x38] */
   5032     MEM32(ebp + (-0x34)) = esi; /* 0x300073FE: mov dword ptr [ebp - 0x34], esi */
   5033     _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x30007401: fsub dword ptr [ebp - 0x44] */
   5034     MEM32(ebp + (-0x3C)) = ecx; /* 0x30007404: mov dword ptr [ebp - 0x3c], ecx */
   5035     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30007407: fld dword ptr [ebp - 0x34] */
   5036     _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3000740A: fsub dword ptr [ebp - 0x40] */
   5037     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x3000740D: fld dword ptr [eax + 0x18] */
   5038     fp_push(_st[1]); /* 0x30007410: fld st(1) */
   5039     _st[0] *= _st[2]; /* 0x30007412: fmul st(2) */
   5040     fp_push(_st[3]); /* 0x30007414: fld st(3) */
   5041     _st[0] *= _st[4]; /* 0x30007416: fmul st(4) */
   5042     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007418: faddp st(1) */
   5043     fp_push(_st[4]); /* 0x3000741A: fld st(4) */
   5044     _st[0] *= _st[5]; /* 0x3000741C: fmul st(5) */
   5045     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000741E: faddp st(1) */
   5046     fp_push(_st[1]); /* 0x30007420: fld st(1) */
   5047     _st[0] *= _st[2]; /* 0x30007422: fmul st(2) */
   5048     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007424: fcompp  */
   5049     fp_pop(); fp_pop();
   5050     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007426: fstp st(0) */
   5051     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007428: fstp st(0) */
   5052     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000742A: fnstsw ax */
   5053     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000742C: fstp st(0) */
   5054     /* test HI8(eax), 1 */ /* 0x3000742E: test ah, 1 */
   5055     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5056     _cf = 0;
   5057     _flag_k = FK_NARROW(FK_TEST, 24);
   5058     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007431: fstp st(0) */
   5059     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007433: je 0x30007650 */
   5060 L_30007439:
   5061     goto L_30007518; /* 0x30007439: jmp 0x30007518 */
   5062 L_3000743E:
   5063     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000743E: fld dword ptr [ebp - 0xc] */
   5064     eax = MEM32(ebp + (-0x4)); /* 0x30007441: mov eax, dword ptr [ebp - 4] */
   5065     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x30007444: fmul dword ptr [ebp + 8] */
   5066     MEM32(ebp + (-0x24)) = edi; /* 0x30007447: mov dword ptr [ebp - 0x24], edi */
   5067     MEM32(ebp + (-0x20)) = ebx; /* 0x3000744A: mov dword ptr [ebp - 0x20], ebx */
   5068     MEM32(ebp + (-0x1C)) = eax; /* 0x3000744D: mov dword ptr [ebp - 0x1c], eax */
   5069     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x30007450: fstp dword ptr [ebp - 0x24] */
   5070     eax = MEM32(ebp + (-0x24)); /* 0x30007453: mov eax, dword ptr [ebp - 0x24] */
   5071     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30007456: fld dword ptr [ebp - 0x20] */
   5072     MEM32(ebp + (-0xD0)) = eax; /* 0x30007459: mov dword ptr [ebp - 0xd0], eax */
   5073     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000745F: fmul dword ptr [ebp + 8] */
   5074     MEM32(ebp + (-0xC4)) = ecx; /* 0x30007462: mov dword ptr [ebp - 0xc4], ecx */
   5075     ecx = ebp + (-0xD0); /* 0x30007468: lea ecx, [ebp - 0xd0] */
   5076     PUSH32(esp, ecx); /* 0x3000746E: push ecx */
   5077     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000746F: fstp dword ptr [ebp - 0x20] */
   5078     eax = MEM32(ebp + (-0x20)); /* 0x30007472: mov eax, dword ptr [ebp - 0x20] */
   5079     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30007475: fld dword ptr [ebp - 0x1c] */
   5080     MEM32(ebp + (-0xCC)) = eax; /* 0x30007478: mov dword ptr [ebp - 0xcc], eax */
   5081     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000747E: fmul dword ptr [ebp + 8] */
   5082     ecx = ebp + (-0xC4); /* 0x30007481: lea ecx, [ebp - 0xc4] */
   5083     MEM32(ebp + (-0xC0)) = edx; /* 0x30007487: mov dword ptr [ebp - 0xc0], edx */
   5084     MEM32(ebp + (-0xBC)) = esi; /* 0x3000748D: mov dword ptr [ebp - 0xbc], esi */
   5085     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007493: fstp dword ptr [ebp - 0x1c] */
   5086     eax = MEM32(ebp + (-0x1C)); /* 0x30007496: mov eax, dword ptr [ebp - 0x1c] */
   5087     MEM32(ebp + (-0xC8)) = eax; /* 0x30007499: mov dword ptr [ebp - 0xc8], eax */
   5088     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000749F: call dword ptr [0x300190c4] */
   5089     RECOMP_FLAGS_IN();
   5090     edx = MEM32(eax); /* 0x300074A5: mov edx, dword ptr [eax] */
   5091     ecx = MEM32(eax + 0x4); /* 0x300074A7: mov ecx, dword ptr [eax + 4] */
   5092     MEM32(ebp + (-0xA0)) = edx; /* 0x300074AA: mov dword ptr [ebp - 0xa0], edx */
   5093     edx = MEM32(eax + 0x8); /* 0x300074B0: mov edx, dword ptr [eax + 8] */
   5094     eax = ebp + (-0x48); /* 0x300074B3: lea eax, [ebp - 0x48] */
   5095     MEM32(ebp + (-0x9C)) = ecx; /* 0x300074B6: mov dword ptr [ebp - 0x9c], ecx */
   5096     PUSH32(esp, eax); /* 0x300074BC: push eax */
   5097     ecx = ebp + (-0xA0); /* 0x300074BD: lea ecx, [ebp - 0xa0] */
   5098     MEM32(ebp + (-0x98)) = edx; /* 0x300074C3: mov dword ptr [ebp - 0x98], edx */
   5099     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300074C9: call dword ptr [0x300190bc] */
   5100     RECOMP_FLAGS_IN();
   5101     ecx = MEM32(eax); /* 0x300074CF: mov ecx, dword ptr [eax] */
   5102     edx = MEM32(eax + 0x4); /* 0x300074D1: mov edx, dword ptr [eax + 4] */
   5103     eax = MEM32(eax + 0x8); /* 0x300074D4: mov eax, dword ptr [eax + 8] */
   5104     MEM32(ebp + (-0x54)) = ecx; /* 0x300074D7: mov dword ptr [ebp - 0x54], ecx */
   5105     ecx = MEM32(ebp + 0xC); /* 0x300074DA: mov ecx, dword ptr [ebp + 0xc] */
   5106     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x300074DD: fld dword ptr [ecx + 0x18] */
   5107     MEM32(ebp + (-0x4C)) = eax; /* 0x300074E0: mov dword ptr [ebp - 0x4c], eax */
   5108     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x300074E3: fld dword ptr [ebp - 0x4c] */
   5109     MEM32(ebp + (-0x50)) = edx; /* 0x300074E6: mov dword ptr [ebp - 0x50], edx */
   5110     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300074E9: fmul dword ptr [ebp - 0x4c] */
   5111     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300074EC: fld dword ptr [ebp - 0x50] */
   5112     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300074EF: fmul dword ptr [ebp - 0x50] */
   5113     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074F2: faddp st(1) */
   5114     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300074F4: fld dword ptr [ebp - 0x54] */
   5115     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x300074F7: fmul dword ptr [ebp - 0x54] */
   5116     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074FA: faddp st(1) */
   5117     fp_push(_st[1]); /* 0x300074FC: fld st(1) */
   5118     _st[0] *= _st[2]; /* 0x300074FE: fmul st(2) */
   5119     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007500: fcompp  */
   5120     fp_pop(); fp_pop();
   5121     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007502: fnstsw ax */
   5122     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007504: fstp st(0) */
   5123     /* test HI8(eax), 1 */ /* 0x30007506: test ah, 1 */
   5124     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5125     _cf = 0;
   5126     _flag_k = FK_NARROW(FK_TEST, 24);
   5127     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007509: je 0x30007650 */
   5128 L_3000750F:
   5129     edx = MEM32(ebp + (-0x14)); /* 0x3000750F: mov edx, dword ptr [ebp - 0x14] */
   5130     esi = MEM32(ebp + (-0x10)); /* 0x30007512: mov esi, dword ptr [ebp - 0x10] */
   5131     ecx = MEM32(ebp + (-0x18)); /* 0x30007515: mov ecx, dword ptr [ebp - 0x18] */
   5132 L_30007518:
   5133     eax = MEM32(ebp + (-0x5C)); /* 0x30007518: mov eax, dword ptr [ebp - 0x5c] */
   5134     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5135     eax = eax + 1; /* 0x3000751B: inc eax */
   5136     _flag_k = FK_INC;
   5137     /* cmp eax, 3 */ /* 0x3000751C: cmp eax, 3 */
   5138     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   5139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5140     _flag_k = FK_CMP;
   5141     MEM32(ebp + (-0x5C)) = eax; /* 0x3000751F: mov dword ptr [ebp - 0x5c], eax */
   5142     RECOMP_BACKEDGE();
   5143     if (CMP_LE(_flag_a, _flag_b)) goto L_30007231; /* 0x30007522: jle 0x30007231 */
   5144 L_30007528:
   5145     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x30007528: fld dword ptr [ebp - 0x28] */
   5146     edi = 1; /* 0x3000752B: mov edi, 1 */
   5147     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007530: fmul dword ptr [ebp - 0x28] */
   5148     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x30007533: fld dword ptr [ebp - 0x2c] */
   5149     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007536: fmul dword ptr [ebp - 0x2c] */
   5150     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007539: faddp st(1) */
   5151     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3000753B: fld dword ptr [ebp - 0x30] */
   5152     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000753E: fmul dword ptr [ebp - 0x30] */
   5153     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007541: faddp st(1) */
   5154     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30007543: fstp dword ptr [ebp + 0xc] */
   5155     goto L_30007551; /* 0x30007546: jmp 0x30007551 */
   5156 L_30007548:
   5157     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   5158     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   5159     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   5160 L_30007551:
   5161     eax = edi; /* 0x30007551: mov eax, edi */
   5162     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5163     eax = eax - 1; /* 0x30007553: dec eax */
   5164     _flag_k = FK_DEC;
   5165     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   5166 L_30007556:
   5167     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5168     eax = eax - 1; /* 0x30007556: dec eax */
   5169     _flag_k = FK_DEC;
   5170     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   5171 L_30007559:
   5172     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5173     eax = eax - 1; /* 0x30007559: dec eax */
   5174     _flag_k = FK_DEC;
   5175     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   5176 L_3000755C:
   5177     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   5178     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   5179 L_30007561:
   5180     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   5181     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   5182 L_30007569:
   5183     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   5184 L_3000756F:
   5185     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   5186     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   5187     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   5188     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   5189     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   5190     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   5191 L_30007580:
   5192     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   5193     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   5194     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   5195     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   5196     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   5197     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   5198     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   5199     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   5200     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   5201     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   5202     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   5203     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   5204     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   5205     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   5206     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   5207     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   5208     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   5209     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   5210     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   5211     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   5212     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   5213     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   5214     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   5215     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   5216     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   5217     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   5218     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   5219     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   5220     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   5221     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   5222     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   5223     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   5224     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   5225     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   5226     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   5227     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   5228     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   5229     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   5230     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   5231     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   5232     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   5233     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   5234     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   5235     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   5236     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   5237     RECOMP_FLAGS_IN();
   5238     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   5239     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   5240     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   5241     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   5242     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   5243     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   5244     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   5245     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   5246     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   5247     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   5248     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   5249     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   5250     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   5251     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   5252     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   5253     fp_pop();
   5254     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   5255     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   5256     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5257     _cf = 0;
   5258     _flag_k = FK_NARROW(FK_TEST, 24);
   5259     RECOMP_BACKEDGE();
   5260     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   5261 L_30007646:
   5262     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   5263     edi = edi + 1; /* 0x30007646: inc edi */
   5264     _flag_k = FK_INC;
   5265     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   5266     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   5267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5268     _flag_k = FK_CMP;
   5269     RECOMP_BACKEDGE();
   5270     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   5271 L_30007650:
   5272     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   5273     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   5274     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   5275     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   5276     esp = ebp; /* 0x30007655: mov esp, ebp */
   5277     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   5278     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   5279     RECOMP_REGS_OUT();
   5280 }
   5281 
   5282 void sub_300072B0(void) {
   5283     int _fpu_cmp = 0;
   5284     uint32_t _cf = 0;
   5285     int _df = 1;
   5286     uint32_t _flag_k = FK_NONE;
   5287     uint32_t _flag_a = 0, _flag_b = 0;
   5288     uint32_t _itail_tgt = 0;
   5289     RECOMP_REGS_LOCALS
   5290     RECOMP_ENTER(0x300072B0u);
   5291 
   5292     goto L_300072B0;
   5293 L_300071E8:
   5294     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   5295     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   5296     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   5297     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   5298     _cf = 0;
   5299     _flag_k = FK_NARROW(FK_TEST, 24);
   5300     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   5301     esp = ebp; /* 0x300071ED: mov esp, ebp */
   5302     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   5303     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   5304 L_30007231:
   5305     eax = MEM32(ebp + (-0x5C)); /* 0x30007231: mov eax, dword ptr [ebp - 0x5c] */
   5306     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5307     eax = eax - 1; /* 0x30007234: dec eax */
   5308     _flag_k = FK_DEC;
   5309     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000728A; /* 0x30007235: je 0x3000728a */
   5310 L_30007237:
   5311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5312     eax = eax - 1; /* 0x30007237: dec eax */
   5313     _flag_k = FK_DEC;
   5314     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007262; /* 0x30007238: je 0x30007262 */
   5315 L_3000723A:
   5316     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5317     eax = eax - 1; /* 0x3000723A: dec eax */
   5318     _flag_k = FK_DEC;
   5319     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300072B3; /* 0x3000723B: jne 0x300072b3 */
   5320 L_3000723D:
   5321     eax = MEM32(ebp + (-0x58)); /* 0x3000723D: mov eax, dword ptr [ebp - 0x58] */
   5322     ecx = MEM32(eax); /* 0x30007240: mov ecx, dword ptr [eax] */
   5323     edx = MEM32(eax + 0x4); /* 0x30007242: mov edx, dword ptr [eax + 4] */
   5324     esi = MEM32(eax + 0x8); /* 0x30007245: mov esi, dword ptr [eax + 8] */
   5325     edi = MEM32(ebp + (-0x80)); /* 0x30007248: mov edi, dword ptr [ebp - 0x80] */
   5326     ebx = MEM32(ebp + (-0x7C)); /* 0x3000724B: mov ebx, dword ptr [ebp - 0x7c] */
   5327     eax = MEM32(ebp + (-0x78)); /* 0x3000724E: mov eax, dword ptr [ebp - 0x78] */
   5328     MEM32(ebp + (-0x18)) = ecx; /* 0x30007251: mov dword ptr [ebp - 0x18], ecx */
   5329     MEM32(ebp + (-0x14)) = edx; /* 0x30007254: mov dword ptr [ebp - 0x14], edx */
   5330     MEM32(ebp + (-0x10)) = esi; /* 0x30007257: mov dword ptr [ebp - 0x10], esi */
   5331     MEM32(ebp + (-0xC)) = edi; /* 0x3000725A: mov dword ptr [ebp - 0xc], edi */
   5332     MEM32(ebp + (-0x8)) = ebx; /* 0x3000725D: mov dword ptr [ebp - 8], ebx */
   5333     goto L_300072B0; /* 0x30007260: jmp 0x300072b0 */
   5334 L_30007262:
   5335     eax = MEM32(ebp + (-0x90)); /* 0x30007262: mov eax, dword ptr [ebp - 0x90] */
   5336     ecx = MEM32(eax); /* 0x30007268: mov ecx, dword ptr [eax] */
   5337     edx = MEM32(eax + 0x4); /* 0x3000726A: mov edx, dword ptr [eax + 4] */
   5338     esi = MEM32(eax + 0x8); /* 0x3000726D: mov esi, dword ptr [eax + 8] */
   5339     edi = MEM32(ebp + (-0x68)); /* 0x30007270: mov edi, dword ptr [ebp - 0x68] */
   5340     ebx = MEM32(ebp + (-0x64)); /* 0x30007273: mov ebx, dword ptr [ebp - 0x64] */
   5341     eax = MEM32(ebp + (-0x60)); /* 0x30007276: mov eax, dword ptr [ebp - 0x60] */
   5342     MEM32(ebp + (-0x18)) = ecx; /* 0x30007279: mov dword ptr [ebp - 0x18], ecx */
   5343     MEM32(ebp + (-0x14)) = edx; /* 0x3000727C: mov dword ptr [ebp - 0x14], edx */
   5344     MEM32(ebp + (-0x10)) = esi; /* 0x3000727F: mov dword ptr [ebp - 0x10], esi */
   5345     MEM32(ebp + (-0xC)) = edi; /* 0x30007282: mov dword ptr [ebp - 0xc], edi */
   5346     MEM32(ebp + (-0x8)) = ebx; /* 0x30007285: mov dword ptr [ebp - 8], ebx */
   5347     goto L_300072B0; /* 0x30007288: jmp 0x300072b0 */
   5348 L_3000728A:
   5349     eax = MEM32(ebp + (-0x94)); /* 0x3000728A: mov eax, dword ptr [ebp - 0x94] */
   5350     ecx = MEM32(eax); /* 0x30007290: mov ecx, dword ptr [eax] */
   5351     edx = MEM32(eax + 0x4); /* 0x30007292: mov edx, dword ptr [eax + 4] */
   5352     esi = MEM32(eax + 0x8); /* 0x30007295: mov esi, dword ptr [eax + 8] */
   5353     edi = MEM32(ebp + (-0x30)); /* 0x30007298: mov edi, dword ptr [ebp - 0x30] */
   5354     ebx = MEM32(ebp + (-0x2C)); /* 0x3000729B: mov ebx, dword ptr [ebp - 0x2c] */
   5355     eax = MEM32(ebp + (-0x28)); /* 0x3000729E: mov eax, dword ptr [ebp - 0x28] */
   5356     MEM32(ebp + (-0x18)) = ecx; /* 0x300072A1: mov dword ptr [ebp - 0x18], ecx */
   5357     MEM32(ebp + (-0x14)) = edx; /* 0x300072A4: mov dword ptr [ebp - 0x14], edx */
   5358     MEM32(ebp + (-0x10)) = esi; /* 0x300072A7: mov dword ptr [ebp - 0x10], esi */
   5359     MEM32(ebp + (-0xC)) = edi; /* 0x300072AA: mov dword ptr [ebp - 0xc], edi */
   5360     MEM32(ebp + (-0x8)) = ebx; /* 0x300072AD: mov dword ptr [ebp - 8], ebx */
   5361 L_300072B0:
   5362     MEM32(ebp + (-0x4)) = eax; /* 0x300072B0: mov dword ptr [ebp - 4], eax */
   5363 L_300072B3:
   5364     eax = MEM32(ebp + (-0x48)); /* 0x300072B3: mov eax, dword ptr [ebp - 0x48] */
   5365     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x300072B6: fld dword ptr [ebp - 0x48] */
   5366     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300072B9: fsub dword ptr [ebp - 0x18] */
   5367     MEM32(ebp + (-0xAC)) = eax; /* 0x300072BC: mov dword ptr [ebp - 0xac], eax */
   5368     eax = MEM32(ebp + (-0x44)); /* 0x300072C2: mov eax, dword ptr [ebp - 0x44] */
   5369     MEM32(ebp + (-0xA8)) = eax; /* 0x300072C5: mov dword ptr [ebp - 0xa8], eax */
   5370     fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x300072CB: fld dword ptr [ebp - 0xa8] */
   5371     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300072D1: fsub dword ptr [ebp - 0x14] */
   5372     eax = MEM32(ebp + (-0x40)); /* 0x300072D4: mov eax, dword ptr [ebp - 0x40] */
   5373     MEM32(ebp + (-0xA4)) = eax; /* 0x300072D7: mov dword ptr [ebp - 0xa4], eax */
   5374     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x300072DD: fld dword ptr [ebp - 0xa4] */
   5375     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300072E3: fsub dword ptr [ebp - 0x10] */
   5376     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072E6: fld dword ptr [ebp - 4] */
   5377     _st[0] *= _st[1]; /* 0x300072E9: fmul st(1) */
   5378     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072EB: fld dword ptr [ebp - 8] */
   5379     _st[0] *= _st[3]; /* 0x300072EE: fmul st(3) */
   5380     { double _v = fp_pop(); _st[0] += _v; } /* 0x300072F0: faddp st(1) */
   5381     fp_xch(3); /* 0x300072F2: fxch st(3) */
   5382     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300072F4: fmul dword ptr [ebp - 0xc] */
   5383     { double _v = fp_pop(); _st[2] += _v; } /* 0x300072F7: faddp st(3) */
   5384     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072F9: fld dword ptr [ebp - 4] */
   5385     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300072FC: fmul dword ptr [ebp - 4] */
   5386     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072FF: fld dword ptr [ebp - 8] */
   5387     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x30007302: fmul dword ptr [ebp - 8] */
   5388     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007305: faddp st(1) */
   5389     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007307: fld dword ptr [ebp - 0xc] */
   5390     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000730A: fmul dword ptr [ebp - 0xc] */
   5391     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000730D: faddp st(1) */
   5392     { double _v = fp_pop(); _st[2] = _v == 0.0 ? _st[2] : _st[2] / _v; } /* 0x3000730F: fdivp st(3) */
   5393     fp_xch(2); /* 0x30007311: fxch st(2) */
   5394     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30007313: fstp dword ptr [ebp + 8] */
   5395     fp_xch(1); /* 0x30007316: fxch st(1) */
   5396     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007318: fstp st(0) */
   5397     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000731A: fstp st(0) */
   5398     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000731C: fld dword ptr [ebp + 8] */
   5399     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300191B8)); /* 0x3000731F: fcomp dword ptr [0x300191b8] */
   5400     fp_pop();
   5401     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007325: fnstsw ax */
   5402     /* test HI8(eax), 1 */ /* 0x30007327: test ah, 1 */
   5403     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5404     _cf = 0;
   5405     _flag_k = FK_NARROW(FK_TEST, 24);
   5406     if (TEST_NZ(_flag_a, _flag_b)) goto L_300073DF; /* 0x3000732A: jne 0x300073df */
   5407 L_30007330:
   5408     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007330: fld dword ptr [ebp - 0xc] */
   5409     MEM32(ebp + (-0x74)) = ecx; /* 0x30007333: mov dword ptr [ebp - 0x74], ecx */
   5410     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30007336: fadd dword ptr [ebp - 0x18] */
   5411     MEM32(ebp + (-0x70)) = edx; /* 0x30007339: mov dword ptr [ebp - 0x70], edx */
   5412     MEM32(ebp + (-0x6C)) = esi; /* 0x3000733C: mov dword ptr [ebp - 0x6c], esi */
   5413     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3000733F: fstp dword ptr [ebp - 0x74] */
   5414     ecx = MEM32(ebp + (-0x74)); /* 0x30007342: mov ecx, dword ptr [ebp - 0x74] */
   5415     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x30007345: fld dword ptr [ebp - 0x70] */
   5416     MEM32(ebp + (-0xB8)) = ecx; /* 0x30007348: mov dword ptr [ebp - 0xb8], ecx */
   5417     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3000734E: fadd dword ptr [ebp - 8] */
   5418     ecx = ebp + (-0x48); /* 0x30007351: lea ecx, [ebp - 0x48] */
   5419     PUSH32(esp, ecx); /* 0x30007354: push ecx */
   5420     ecx = ebp + (-0xB8); /* 0x30007355: lea ecx, [ebp - 0xb8] */
   5421     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3000735B: fstp dword ptr [ebp - 0x70] */
   5422     edx = MEM32(ebp + (-0x70)); /* 0x3000735E: mov edx, dword ptr [ebp - 0x70] */
   5423     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x30007361: fld dword ptr [ebp - 0x6c] */
   5424     MEM32(ebp + (-0xB4)) = edx; /* 0x30007364: mov dword ptr [ebp - 0xb4], edx */
   5425     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000736A: fadd dword ptr [ebp - 4] */
   5426     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x3000736D: fstp dword ptr [ebp - 0x6c] */
   5427     eax = MEM32(ebp + (-0x6C)); /* 0x30007370: mov eax, dword ptr [ebp - 0x6c] */
   5428     MEM32(ebp + (-0xB0)) = eax; /* 0x30007373: mov dword ptr [ebp - 0xb0], eax */
   5429     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007379: call dword ptr [0x300190bc] */
   5430     RECOMP_FLAGS_IN();
   5431     edx = MEM32(eax); /* 0x3000737F: mov edx, dword ptr [eax] */
   5432     ecx = MEM32(eax + 0x4); /* 0x30007381: mov ecx, dword ptr [eax + 4] */
   5433     MEM32(ebp + (-0x8C)) = edx; /* 0x30007384: mov dword ptr [ebp - 0x8c], edx */
   5434     edx = MEM32(eax + 0x8); /* 0x3000738A: mov edx, dword ptr [eax + 8] */
   5435     eax = MEM32(ebp + 0xC); /* 0x3000738D: mov eax, dword ptr [ebp + 0xc] */
   5436     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x30007390: fld dword ptr [eax + 0x18] */
   5437     MEM32(ebp + (-0x84)) = edx; /* 0x30007393: mov dword ptr [ebp - 0x84], edx */
   5438     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x30007399: fld dword ptr [ebp - 0x84] */
   5439     MEM32(ebp + (-0x88)) = ecx; /* 0x3000739F: mov dword ptr [ebp - 0x88], ecx */
   5440     _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x300073A5: fmul dword ptr [ebp - 0x84] */
   5441     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x300073AB: fld dword ptr [ebp - 0x88] */
   5442     _st[0] *= (double)*(float*)ADDR(ebp + (-0x88)); /* 0x300073B1: fmul dword ptr [ebp - 0x88] */
   5443     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073B7: faddp st(1) */
   5444     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x300073B9: fld dword ptr [ebp - 0x8c] */
   5445     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8C)); /* 0x300073BF: fmul dword ptr [ebp - 0x8c] */
   5446     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073C5: faddp st(1) */
   5447     fp_push(_st[1]); /* 0x300073C7: fld st(1) */
   5448     _st[0] *= _st[2]; /* 0x300073C9: fmul st(2) */
   5449     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300073CB: fcompp  */
   5450     fp_pop(); fp_pop();
   5451     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073CD: fnstsw ax */
   5452     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300073CF: fstp st(0) */
   5453     /* test HI8(eax), 1 */ /* 0x300073D1: test ah, 1 */
   5454     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5455     _cf = 0;
   5456     _flag_k = FK_NARROW(FK_TEST, 24);
   5457     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x300073D4: je 0x30007650 */
   5458 L_300073DA:
   5459     goto L_3000750F; /* 0x300073DA: jmp 0x3000750f */
   5460 L_300073DF:
   5461     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x300073DF: fld dword ptr [ebp + 8] */
   5462     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x300073E2: fcomp dword ptr [0x3001919c] */
   5463     fp_pop();
   5464     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073E8: fnstsw ax */
   5465     /* test HI8(eax), 0x41u */ /* 0x300073EA: test ah, 0x41 */
   5466     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5467     _cf = 0;
   5468     _flag_k = FK_NARROW(FK_TEST, 24);
   5469     if (TEST_Z(_flag_a, _flag_b)) goto L_3000743E; /* 0x300073ED: je 0x3000743e */
   5470 L_300073EF:
   5471     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300073EF: fld dword ptr [ebp - 0x18] */
   5472     eax = MEM32(ebp + 0xC); /* 0x300073F2: mov eax, dword ptr [ebp + 0xc] */
   5473     _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x300073F5: fsub dword ptr [ebp - 0x48] */
   5474     MEM32(ebp + (-0x38)) = edx; /* 0x300073F8: mov dword ptr [ebp - 0x38], edx */
   5475     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x300073FB: fld dword ptr [ebp - 0x38] */
   5476     MEM32(ebp + (-0x34)) = esi; /* 0x300073FE: mov dword ptr [ebp - 0x34], esi */
   5477     _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x30007401: fsub dword ptr [ebp - 0x44] */
   5478     MEM32(ebp + (-0x3C)) = ecx; /* 0x30007404: mov dword ptr [ebp - 0x3c], ecx */
   5479     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30007407: fld dword ptr [ebp - 0x34] */
   5480     _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3000740A: fsub dword ptr [ebp - 0x40] */
   5481     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x3000740D: fld dword ptr [eax + 0x18] */
   5482     fp_push(_st[1]); /* 0x30007410: fld st(1) */
   5483     _st[0] *= _st[2]; /* 0x30007412: fmul st(2) */
   5484     fp_push(_st[3]); /* 0x30007414: fld st(3) */
   5485     _st[0] *= _st[4]; /* 0x30007416: fmul st(4) */
   5486     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007418: faddp st(1) */
   5487     fp_push(_st[4]); /* 0x3000741A: fld st(4) */
   5488     _st[0] *= _st[5]; /* 0x3000741C: fmul st(5) */
   5489     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000741E: faddp st(1) */
   5490     fp_push(_st[1]); /* 0x30007420: fld st(1) */
   5491     _st[0] *= _st[2]; /* 0x30007422: fmul st(2) */
   5492     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007424: fcompp  */
   5493     fp_pop(); fp_pop();
   5494     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007426: fstp st(0) */
   5495     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007428: fstp st(0) */
   5496     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000742A: fnstsw ax */
   5497     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000742C: fstp st(0) */
   5498     /* test HI8(eax), 1 */ /* 0x3000742E: test ah, 1 */
   5499     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5500     _cf = 0;
   5501     _flag_k = FK_NARROW(FK_TEST, 24);
   5502     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007431: fstp st(0) */
   5503     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007433: je 0x30007650 */
   5504 L_30007439:
   5505     goto L_30007518; /* 0x30007439: jmp 0x30007518 */
   5506 L_3000743E:
   5507     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000743E: fld dword ptr [ebp - 0xc] */
   5508     eax = MEM32(ebp + (-0x4)); /* 0x30007441: mov eax, dword ptr [ebp - 4] */
   5509     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x30007444: fmul dword ptr [ebp + 8] */
   5510     MEM32(ebp + (-0x24)) = edi; /* 0x30007447: mov dword ptr [ebp - 0x24], edi */
   5511     MEM32(ebp + (-0x20)) = ebx; /* 0x3000744A: mov dword ptr [ebp - 0x20], ebx */
   5512     MEM32(ebp + (-0x1C)) = eax; /* 0x3000744D: mov dword ptr [ebp - 0x1c], eax */
   5513     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x30007450: fstp dword ptr [ebp - 0x24] */
   5514     eax = MEM32(ebp + (-0x24)); /* 0x30007453: mov eax, dword ptr [ebp - 0x24] */
   5515     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30007456: fld dword ptr [ebp - 0x20] */
   5516     MEM32(ebp + (-0xD0)) = eax; /* 0x30007459: mov dword ptr [ebp - 0xd0], eax */
   5517     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000745F: fmul dword ptr [ebp + 8] */
   5518     MEM32(ebp + (-0xC4)) = ecx; /* 0x30007462: mov dword ptr [ebp - 0xc4], ecx */
   5519     ecx = ebp + (-0xD0); /* 0x30007468: lea ecx, [ebp - 0xd0] */
   5520     PUSH32(esp, ecx); /* 0x3000746E: push ecx */
   5521     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000746F: fstp dword ptr [ebp - 0x20] */
   5522     eax = MEM32(ebp + (-0x20)); /* 0x30007472: mov eax, dword ptr [ebp - 0x20] */
   5523     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30007475: fld dword ptr [ebp - 0x1c] */
   5524     MEM32(ebp + (-0xCC)) = eax; /* 0x30007478: mov dword ptr [ebp - 0xcc], eax */
   5525     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000747E: fmul dword ptr [ebp + 8] */
   5526     ecx = ebp + (-0xC4); /* 0x30007481: lea ecx, [ebp - 0xc4] */
   5527     MEM32(ebp + (-0xC0)) = edx; /* 0x30007487: mov dword ptr [ebp - 0xc0], edx */
   5528     MEM32(ebp + (-0xBC)) = esi; /* 0x3000748D: mov dword ptr [ebp - 0xbc], esi */
   5529     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007493: fstp dword ptr [ebp - 0x1c] */
   5530     eax = MEM32(ebp + (-0x1C)); /* 0x30007496: mov eax, dword ptr [ebp - 0x1c] */
   5531     MEM32(ebp + (-0xC8)) = eax; /* 0x30007499: mov dword ptr [ebp - 0xc8], eax */
   5532     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000749F: call dword ptr [0x300190c4] */
   5533     RECOMP_FLAGS_IN();
   5534     edx = MEM32(eax); /* 0x300074A5: mov edx, dword ptr [eax] */
   5535     ecx = MEM32(eax + 0x4); /* 0x300074A7: mov ecx, dword ptr [eax + 4] */
   5536     MEM32(ebp + (-0xA0)) = edx; /* 0x300074AA: mov dword ptr [ebp - 0xa0], edx */
   5537     edx = MEM32(eax + 0x8); /* 0x300074B0: mov edx, dword ptr [eax + 8] */
   5538     eax = ebp + (-0x48); /* 0x300074B3: lea eax, [ebp - 0x48] */
   5539     MEM32(ebp + (-0x9C)) = ecx; /* 0x300074B6: mov dword ptr [ebp - 0x9c], ecx */
   5540     PUSH32(esp, eax); /* 0x300074BC: push eax */
   5541     ecx = ebp + (-0xA0); /* 0x300074BD: lea ecx, [ebp - 0xa0] */
   5542     MEM32(ebp + (-0x98)) = edx; /* 0x300074C3: mov dword ptr [ebp - 0x98], edx */
   5543     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300074C9: call dword ptr [0x300190bc] */
   5544     RECOMP_FLAGS_IN();
   5545     ecx = MEM32(eax); /* 0x300074CF: mov ecx, dword ptr [eax] */
   5546     edx = MEM32(eax + 0x4); /* 0x300074D1: mov edx, dword ptr [eax + 4] */
   5547     eax = MEM32(eax + 0x8); /* 0x300074D4: mov eax, dword ptr [eax + 8] */
   5548     MEM32(ebp + (-0x54)) = ecx; /* 0x300074D7: mov dword ptr [ebp - 0x54], ecx */
   5549     ecx = MEM32(ebp + 0xC); /* 0x300074DA: mov ecx, dword ptr [ebp + 0xc] */
   5550     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x300074DD: fld dword ptr [ecx + 0x18] */
   5551     MEM32(ebp + (-0x4C)) = eax; /* 0x300074E0: mov dword ptr [ebp - 0x4c], eax */
   5552     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x300074E3: fld dword ptr [ebp - 0x4c] */
   5553     MEM32(ebp + (-0x50)) = edx; /* 0x300074E6: mov dword ptr [ebp - 0x50], edx */
   5554     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300074E9: fmul dword ptr [ebp - 0x4c] */
   5555     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300074EC: fld dword ptr [ebp - 0x50] */
   5556     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300074EF: fmul dword ptr [ebp - 0x50] */
   5557     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074F2: faddp st(1) */
   5558     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300074F4: fld dword ptr [ebp - 0x54] */
   5559     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x300074F7: fmul dword ptr [ebp - 0x54] */
   5560     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074FA: faddp st(1) */
   5561     fp_push(_st[1]); /* 0x300074FC: fld st(1) */
   5562     _st[0] *= _st[2]; /* 0x300074FE: fmul st(2) */
   5563     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007500: fcompp  */
   5564     fp_pop(); fp_pop();
   5565     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007502: fnstsw ax */
   5566     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007504: fstp st(0) */
   5567     /* test HI8(eax), 1 */ /* 0x30007506: test ah, 1 */
   5568     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5569     _cf = 0;
   5570     _flag_k = FK_NARROW(FK_TEST, 24);
   5571     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007509: je 0x30007650 */
   5572 L_3000750F:
   5573     edx = MEM32(ebp + (-0x14)); /* 0x3000750F: mov edx, dword ptr [ebp - 0x14] */
   5574     esi = MEM32(ebp + (-0x10)); /* 0x30007512: mov esi, dword ptr [ebp - 0x10] */
   5575     ecx = MEM32(ebp + (-0x18)); /* 0x30007515: mov ecx, dword ptr [ebp - 0x18] */
   5576 L_30007518:
   5577     eax = MEM32(ebp + (-0x5C)); /* 0x30007518: mov eax, dword ptr [ebp - 0x5c] */
   5578     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5579     eax = eax + 1; /* 0x3000751B: inc eax */
   5580     _flag_k = FK_INC;
   5581     /* cmp eax, 3 */ /* 0x3000751C: cmp eax, 3 */
   5582     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   5583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5584     _flag_k = FK_CMP;
   5585     MEM32(ebp + (-0x5C)) = eax; /* 0x3000751F: mov dword ptr [ebp - 0x5c], eax */
   5586     RECOMP_BACKEDGE();
   5587     if (CMP_LE(_flag_a, _flag_b)) goto L_30007231; /* 0x30007522: jle 0x30007231 */
   5588 L_30007528:
   5589     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x30007528: fld dword ptr [ebp - 0x28] */
   5590     edi = 1; /* 0x3000752B: mov edi, 1 */
   5591     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007530: fmul dword ptr [ebp - 0x28] */
   5592     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x30007533: fld dword ptr [ebp - 0x2c] */
   5593     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007536: fmul dword ptr [ebp - 0x2c] */
   5594     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007539: faddp st(1) */
   5595     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3000753B: fld dword ptr [ebp - 0x30] */
   5596     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000753E: fmul dword ptr [ebp - 0x30] */
   5597     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007541: faddp st(1) */
   5598     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30007543: fstp dword ptr [ebp + 0xc] */
   5599     goto L_30007551; /* 0x30007546: jmp 0x30007551 */
   5600 L_30007548:
   5601     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   5602     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   5603     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   5604 L_30007551:
   5605     eax = edi; /* 0x30007551: mov eax, edi */
   5606     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5607     eax = eax - 1; /* 0x30007553: dec eax */
   5608     _flag_k = FK_DEC;
   5609     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   5610 L_30007556:
   5611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5612     eax = eax - 1; /* 0x30007556: dec eax */
   5613     _flag_k = FK_DEC;
   5614     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   5615 L_30007559:
   5616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5617     eax = eax - 1; /* 0x30007559: dec eax */
   5618     _flag_k = FK_DEC;
   5619     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   5620 L_3000755C:
   5621     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   5622     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   5623 L_30007561:
   5624     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   5625     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   5626 L_30007569:
   5627     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   5628 L_3000756F:
   5629     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   5630     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   5631     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   5632     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   5633     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   5634     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   5635 L_30007580:
   5636     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   5637     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   5638     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   5639     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   5640     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   5641     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   5642     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   5643     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   5644     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   5645     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   5646     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   5647     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   5648     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   5649     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   5650     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   5651     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   5652     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   5653     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   5654     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   5655     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   5656     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   5657     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   5658     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   5659     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   5660     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   5661     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   5662     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   5663     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   5664     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   5665     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   5666     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   5667     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   5668     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   5669     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   5670     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   5671     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   5672     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   5673     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   5674     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   5675     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   5676     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   5677     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   5678     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   5679     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   5680     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   5681     RECOMP_FLAGS_IN();
   5682     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   5683     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   5684     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   5685     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   5686     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   5687     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   5688     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   5689     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   5690     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   5691     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   5692     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   5693     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   5694     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   5695     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   5696     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   5697     fp_pop();
   5698     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   5699     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   5700     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5701     _cf = 0;
   5702     _flag_k = FK_NARROW(FK_TEST, 24);
   5703     RECOMP_BACKEDGE();
   5704     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   5705 L_30007646:
   5706     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   5707     edi = edi + 1; /* 0x30007646: inc edi */
   5708     _flag_k = FK_INC;
   5709     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   5710     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   5711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5712     _flag_k = FK_CMP;
   5713     RECOMP_BACKEDGE();
   5714     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   5715 L_30007650:
   5716     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   5717     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   5718     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   5719     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   5720     esp = ebp; /* 0x30007655: mov esp, ebp */
   5721     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   5722     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   5723     RECOMP_REGS_OUT();
   5724 }
   5725 
   5726 void sub_300072B3(void) {
   5727     int _fpu_cmp = 0;
   5728     uint32_t _cf = 0;
   5729     int _df = 1;
   5730     uint32_t _flag_k = FK_NONE;
   5731     uint32_t _flag_a = 0, _flag_b = 0;
   5732     uint32_t _itail_tgt = 0;
   5733     RECOMP_REGS_LOCALS
   5734     RECOMP_ENTER(0x300072B3u);
   5735 
   5736     goto L_300072B3;
   5737 L_300071E8:
   5738     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   5739     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   5740     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   5741     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   5742     _cf = 0;
   5743     _flag_k = FK_NARROW(FK_TEST, 24);
   5744     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   5745     esp = ebp; /* 0x300071ED: mov esp, ebp */
   5746     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   5747     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   5748 L_30007231:
   5749     eax = MEM32(ebp + (-0x5C)); /* 0x30007231: mov eax, dword ptr [ebp - 0x5c] */
   5750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5751     eax = eax - 1; /* 0x30007234: dec eax */
   5752     _flag_k = FK_DEC;
   5753     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000728A; /* 0x30007235: je 0x3000728a */
   5754 L_30007237:
   5755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5756     eax = eax - 1; /* 0x30007237: dec eax */
   5757     _flag_k = FK_DEC;
   5758     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007262; /* 0x30007238: je 0x30007262 */
   5759 L_3000723A:
   5760     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5761     eax = eax - 1; /* 0x3000723A: dec eax */
   5762     _flag_k = FK_DEC;
   5763     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300072B3; /* 0x3000723B: jne 0x300072b3 */
   5764 L_3000723D:
   5765     eax = MEM32(ebp + (-0x58)); /* 0x3000723D: mov eax, dword ptr [ebp - 0x58] */
   5766     ecx = MEM32(eax); /* 0x30007240: mov ecx, dword ptr [eax] */
   5767     edx = MEM32(eax + 0x4); /* 0x30007242: mov edx, dword ptr [eax + 4] */
   5768     esi = MEM32(eax + 0x8); /* 0x30007245: mov esi, dword ptr [eax + 8] */
   5769     edi = MEM32(ebp + (-0x80)); /* 0x30007248: mov edi, dword ptr [ebp - 0x80] */
   5770     ebx = MEM32(ebp + (-0x7C)); /* 0x3000724B: mov ebx, dword ptr [ebp - 0x7c] */
   5771     eax = MEM32(ebp + (-0x78)); /* 0x3000724E: mov eax, dword ptr [ebp - 0x78] */
   5772     MEM32(ebp + (-0x18)) = ecx; /* 0x30007251: mov dword ptr [ebp - 0x18], ecx */
   5773     MEM32(ebp + (-0x14)) = edx; /* 0x30007254: mov dword ptr [ebp - 0x14], edx */
   5774     MEM32(ebp + (-0x10)) = esi; /* 0x30007257: mov dword ptr [ebp - 0x10], esi */
   5775     MEM32(ebp + (-0xC)) = edi; /* 0x3000725A: mov dword ptr [ebp - 0xc], edi */
   5776     MEM32(ebp + (-0x8)) = ebx; /* 0x3000725D: mov dword ptr [ebp - 8], ebx */
   5777     goto L_300072B0; /* 0x30007260: jmp 0x300072b0 */
   5778 L_30007262:
   5779     eax = MEM32(ebp + (-0x90)); /* 0x30007262: mov eax, dword ptr [ebp - 0x90] */
   5780     ecx = MEM32(eax); /* 0x30007268: mov ecx, dword ptr [eax] */
   5781     edx = MEM32(eax + 0x4); /* 0x3000726A: mov edx, dword ptr [eax + 4] */
   5782     esi = MEM32(eax + 0x8); /* 0x3000726D: mov esi, dword ptr [eax + 8] */
   5783     edi = MEM32(ebp + (-0x68)); /* 0x30007270: mov edi, dword ptr [ebp - 0x68] */
   5784     ebx = MEM32(ebp + (-0x64)); /* 0x30007273: mov ebx, dword ptr [ebp - 0x64] */
   5785     eax = MEM32(ebp + (-0x60)); /* 0x30007276: mov eax, dword ptr [ebp - 0x60] */
   5786     MEM32(ebp + (-0x18)) = ecx; /* 0x30007279: mov dword ptr [ebp - 0x18], ecx */
   5787     MEM32(ebp + (-0x14)) = edx; /* 0x3000727C: mov dword ptr [ebp - 0x14], edx */
   5788     MEM32(ebp + (-0x10)) = esi; /* 0x3000727F: mov dword ptr [ebp - 0x10], esi */
   5789     MEM32(ebp + (-0xC)) = edi; /* 0x30007282: mov dword ptr [ebp - 0xc], edi */
   5790     MEM32(ebp + (-0x8)) = ebx; /* 0x30007285: mov dword ptr [ebp - 8], ebx */
   5791     goto L_300072B0; /* 0x30007288: jmp 0x300072b0 */
   5792 L_3000728A:
   5793     eax = MEM32(ebp + (-0x94)); /* 0x3000728A: mov eax, dword ptr [ebp - 0x94] */
   5794     ecx = MEM32(eax); /* 0x30007290: mov ecx, dword ptr [eax] */
   5795     edx = MEM32(eax + 0x4); /* 0x30007292: mov edx, dword ptr [eax + 4] */
   5796     esi = MEM32(eax + 0x8); /* 0x30007295: mov esi, dword ptr [eax + 8] */
   5797     edi = MEM32(ebp + (-0x30)); /* 0x30007298: mov edi, dword ptr [ebp - 0x30] */
   5798     ebx = MEM32(ebp + (-0x2C)); /* 0x3000729B: mov ebx, dword ptr [ebp - 0x2c] */
   5799     eax = MEM32(ebp + (-0x28)); /* 0x3000729E: mov eax, dword ptr [ebp - 0x28] */
   5800     MEM32(ebp + (-0x18)) = ecx; /* 0x300072A1: mov dword ptr [ebp - 0x18], ecx */
   5801     MEM32(ebp + (-0x14)) = edx; /* 0x300072A4: mov dword ptr [ebp - 0x14], edx */
   5802     MEM32(ebp + (-0x10)) = esi; /* 0x300072A7: mov dword ptr [ebp - 0x10], esi */
   5803     MEM32(ebp + (-0xC)) = edi; /* 0x300072AA: mov dword ptr [ebp - 0xc], edi */
   5804     MEM32(ebp + (-0x8)) = ebx; /* 0x300072AD: mov dword ptr [ebp - 8], ebx */
   5805 L_300072B0:
   5806     MEM32(ebp + (-0x4)) = eax; /* 0x300072B0: mov dword ptr [ebp - 4], eax */
   5807 L_300072B3:
   5808     eax = MEM32(ebp + (-0x48)); /* 0x300072B3: mov eax, dword ptr [ebp - 0x48] */
   5809     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x300072B6: fld dword ptr [ebp - 0x48] */
   5810     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300072B9: fsub dword ptr [ebp - 0x18] */
   5811     MEM32(ebp + (-0xAC)) = eax; /* 0x300072BC: mov dword ptr [ebp - 0xac], eax */
   5812     eax = MEM32(ebp + (-0x44)); /* 0x300072C2: mov eax, dword ptr [ebp - 0x44] */
   5813     MEM32(ebp + (-0xA8)) = eax; /* 0x300072C5: mov dword ptr [ebp - 0xa8], eax */
   5814     fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x300072CB: fld dword ptr [ebp - 0xa8] */
   5815     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300072D1: fsub dword ptr [ebp - 0x14] */
   5816     eax = MEM32(ebp + (-0x40)); /* 0x300072D4: mov eax, dword ptr [ebp - 0x40] */
   5817     MEM32(ebp + (-0xA4)) = eax; /* 0x300072D7: mov dword ptr [ebp - 0xa4], eax */
   5818     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x300072DD: fld dword ptr [ebp - 0xa4] */
   5819     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300072E3: fsub dword ptr [ebp - 0x10] */
   5820     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072E6: fld dword ptr [ebp - 4] */
   5821     _st[0] *= _st[1]; /* 0x300072E9: fmul st(1) */
   5822     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072EB: fld dword ptr [ebp - 8] */
   5823     _st[0] *= _st[3]; /* 0x300072EE: fmul st(3) */
   5824     { double _v = fp_pop(); _st[0] += _v; } /* 0x300072F0: faddp st(1) */
   5825     fp_xch(3); /* 0x300072F2: fxch st(3) */
   5826     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300072F4: fmul dword ptr [ebp - 0xc] */
   5827     { double _v = fp_pop(); _st[2] += _v; } /* 0x300072F7: faddp st(3) */
   5828     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072F9: fld dword ptr [ebp - 4] */
   5829     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300072FC: fmul dword ptr [ebp - 4] */
   5830     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072FF: fld dword ptr [ebp - 8] */
   5831     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x30007302: fmul dword ptr [ebp - 8] */
   5832     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007305: faddp st(1) */
   5833     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007307: fld dword ptr [ebp - 0xc] */
   5834     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000730A: fmul dword ptr [ebp - 0xc] */
   5835     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000730D: faddp st(1) */
   5836     { double _v = fp_pop(); _st[2] = _v == 0.0 ? _st[2] : _st[2] / _v; } /* 0x3000730F: fdivp st(3) */
   5837     fp_xch(2); /* 0x30007311: fxch st(2) */
   5838     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30007313: fstp dword ptr [ebp + 8] */
   5839     fp_xch(1); /* 0x30007316: fxch st(1) */
   5840     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007318: fstp st(0) */
   5841     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000731A: fstp st(0) */
   5842     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000731C: fld dword ptr [ebp + 8] */
   5843     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300191B8)); /* 0x3000731F: fcomp dword ptr [0x300191b8] */
   5844     fp_pop();
   5845     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007325: fnstsw ax */
   5846     /* test HI8(eax), 1 */ /* 0x30007327: test ah, 1 */
   5847     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5848     _cf = 0;
   5849     _flag_k = FK_NARROW(FK_TEST, 24);
   5850     if (TEST_NZ(_flag_a, _flag_b)) goto L_300073DF; /* 0x3000732A: jne 0x300073df */
   5851 L_30007330:
   5852     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007330: fld dword ptr [ebp - 0xc] */
   5853     MEM32(ebp + (-0x74)) = ecx; /* 0x30007333: mov dword ptr [ebp - 0x74], ecx */
   5854     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30007336: fadd dword ptr [ebp - 0x18] */
   5855     MEM32(ebp + (-0x70)) = edx; /* 0x30007339: mov dword ptr [ebp - 0x70], edx */
   5856     MEM32(ebp + (-0x6C)) = esi; /* 0x3000733C: mov dword ptr [ebp - 0x6c], esi */
   5857     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3000733F: fstp dword ptr [ebp - 0x74] */
   5858     ecx = MEM32(ebp + (-0x74)); /* 0x30007342: mov ecx, dword ptr [ebp - 0x74] */
   5859     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x30007345: fld dword ptr [ebp - 0x70] */
   5860     MEM32(ebp + (-0xB8)) = ecx; /* 0x30007348: mov dword ptr [ebp - 0xb8], ecx */
   5861     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3000734E: fadd dword ptr [ebp - 8] */
   5862     ecx = ebp + (-0x48); /* 0x30007351: lea ecx, [ebp - 0x48] */
   5863     PUSH32(esp, ecx); /* 0x30007354: push ecx */
   5864     ecx = ebp + (-0xB8); /* 0x30007355: lea ecx, [ebp - 0xb8] */
   5865     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3000735B: fstp dword ptr [ebp - 0x70] */
   5866     edx = MEM32(ebp + (-0x70)); /* 0x3000735E: mov edx, dword ptr [ebp - 0x70] */
   5867     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x30007361: fld dword ptr [ebp - 0x6c] */
   5868     MEM32(ebp + (-0xB4)) = edx; /* 0x30007364: mov dword ptr [ebp - 0xb4], edx */
   5869     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000736A: fadd dword ptr [ebp - 4] */
   5870     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x3000736D: fstp dword ptr [ebp - 0x6c] */
   5871     eax = MEM32(ebp + (-0x6C)); /* 0x30007370: mov eax, dword ptr [ebp - 0x6c] */
   5872     MEM32(ebp + (-0xB0)) = eax; /* 0x30007373: mov dword ptr [ebp - 0xb0], eax */
   5873     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007379: call dword ptr [0x300190bc] */
   5874     RECOMP_FLAGS_IN();
   5875     edx = MEM32(eax); /* 0x3000737F: mov edx, dword ptr [eax] */
   5876     ecx = MEM32(eax + 0x4); /* 0x30007381: mov ecx, dword ptr [eax + 4] */
   5877     MEM32(ebp + (-0x8C)) = edx; /* 0x30007384: mov dword ptr [ebp - 0x8c], edx */
   5878     edx = MEM32(eax + 0x8); /* 0x3000738A: mov edx, dword ptr [eax + 8] */
   5879     eax = MEM32(ebp + 0xC); /* 0x3000738D: mov eax, dword ptr [ebp + 0xc] */
   5880     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x30007390: fld dword ptr [eax + 0x18] */
   5881     MEM32(ebp + (-0x84)) = edx; /* 0x30007393: mov dword ptr [ebp - 0x84], edx */
   5882     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x30007399: fld dword ptr [ebp - 0x84] */
   5883     MEM32(ebp + (-0x88)) = ecx; /* 0x3000739F: mov dword ptr [ebp - 0x88], ecx */
   5884     _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x300073A5: fmul dword ptr [ebp - 0x84] */
   5885     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x300073AB: fld dword ptr [ebp - 0x88] */
   5886     _st[0] *= (double)*(float*)ADDR(ebp + (-0x88)); /* 0x300073B1: fmul dword ptr [ebp - 0x88] */
   5887     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073B7: faddp st(1) */
   5888     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x300073B9: fld dword ptr [ebp - 0x8c] */
   5889     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8C)); /* 0x300073BF: fmul dword ptr [ebp - 0x8c] */
   5890     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073C5: faddp st(1) */
   5891     fp_push(_st[1]); /* 0x300073C7: fld st(1) */
   5892     _st[0] *= _st[2]; /* 0x300073C9: fmul st(2) */
   5893     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300073CB: fcompp  */
   5894     fp_pop(); fp_pop();
   5895     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073CD: fnstsw ax */
   5896     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300073CF: fstp st(0) */
   5897     /* test HI8(eax), 1 */ /* 0x300073D1: test ah, 1 */
   5898     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5899     _cf = 0;
   5900     _flag_k = FK_NARROW(FK_TEST, 24);
   5901     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x300073D4: je 0x30007650 */
   5902 L_300073DA:
   5903     goto L_3000750F; /* 0x300073DA: jmp 0x3000750f */
   5904 L_300073DF:
   5905     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x300073DF: fld dword ptr [ebp + 8] */
   5906     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x300073E2: fcomp dword ptr [0x3001919c] */
   5907     fp_pop();
   5908     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073E8: fnstsw ax */
   5909     /* test HI8(eax), 0x41u */ /* 0x300073EA: test ah, 0x41 */
   5910     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5911     _cf = 0;
   5912     _flag_k = FK_NARROW(FK_TEST, 24);
   5913     if (TEST_Z(_flag_a, _flag_b)) goto L_3000743E; /* 0x300073ED: je 0x3000743e */
   5914 L_300073EF:
   5915     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300073EF: fld dword ptr [ebp - 0x18] */
   5916     eax = MEM32(ebp + 0xC); /* 0x300073F2: mov eax, dword ptr [ebp + 0xc] */
   5917     _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x300073F5: fsub dword ptr [ebp - 0x48] */
   5918     MEM32(ebp + (-0x38)) = edx; /* 0x300073F8: mov dword ptr [ebp - 0x38], edx */
   5919     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x300073FB: fld dword ptr [ebp - 0x38] */
   5920     MEM32(ebp + (-0x34)) = esi; /* 0x300073FE: mov dword ptr [ebp - 0x34], esi */
   5921     _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x30007401: fsub dword ptr [ebp - 0x44] */
   5922     MEM32(ebp + (-0x3C)) = ecx; /* 0x30007404: mov dword ptr [ebp - 0x3c], ecx */
   5923     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30007407: fld dword ptr [ebp - 0x34] */
   5924     _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3000740A: fsub dword ptr [ebp - 0x40] */
   5925     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x3000740D: fld dword ptr [eax + 0x18] */
   5926     fp_push(_st[1]); /* 0x30007410: fld st(1) */
   5927     _st[0] *= _st[2]; /* 0x30007412: fmul st(2) */
   5928     fp_push(_st[3]); /* 0x30007414: fld st(3) */
   5929     _st[0] *= _st[4]; /* 0x30007416: fmul st(4) */
   5930     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007418: faddp st(1) */
   5931     fp_push(_st[4]); /* 0x3000741A: fld st(4) */
   5932     _st[0] *= _st[5]; /* 0x3000741C: fmul st(5) */
   5933     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000741E: faddp st(1) */
   5934     fp_push(_st[1]); /* 0x30007420: fld st(1) */
   5935     _st[0] *= _st[2]; /* 0x30007422: fmul st(2) */
   5936     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007424: fcompp  */
   5937     fp_pop(); fp_pop();
   5938     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007426: fstp st(0) */
   5939     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007428: fstp st(0) */
   5940     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000742A: fnstsw ax */
   5941     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000742C: fstp st(0) */
   5942     /* test HI8(eax), 1 */ /* 0x3000742E: test ah, 1 */
   5943     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5944     _cf = 0;
   5945     _flag_k = FK_NARROW(FK_TEST, 24);
   5946     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007431: fstp st(0) */
   5947     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007433: je 0x30007650 */
   5948 L_30007439:
   5949     goto L_30007518; /* 0x30007439: jmp 0x30007518 */
   5950 L_3000743E:
   5951     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000743E: fld dword ptr [ebp - 0xc] */
   5952     eax = MEM32(ebp + (-0x4)); /* 0x30007441: mov eax, dword ptr [ebp - 4] */
   5953     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x30007444: fmul dword ptr [ebp + 8] */
   5954     MEM32(ebp + (-0x24)) = edi; /* 0x30007447: mov dword ptr [ebp - 0x24], edi */
   5955     MEM32(ebp + (-0x20)) = ebx; /* 0x3000744A: mov dword ptr [ebp - 0x20], ebx */
   5956     MEM32(ebp + (-0x1C)) = eax; /* 0x3000744D: mov dword ptr [ebp - 0x1c], eax */
   5957     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x30007450: fstp dword ptr [ebp - 0x24] */
   5958     eax = MEM32(ebp + (-0x24)); /* 0x30007453: mov eax, dword ptr [ebp - 0x24] */
   5959     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30007456: fld dword ptr [ebp - 0x20] */
   5960     MEM32(ebp + (-0xD0)) = eax; /* 0x30007459: mov dword ptr [ebp - 0xd0], eax */
   5961     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000745F: fmul dword ptr [ebp + 8] */
   5962     MEM32(ebp + (-0xC4)) = ecx; /* 0x30007462: mov dword ptr [ebp - 0xc4], ecx */
   5963     ecx = ebp + (-0xD0); /* 0x30007468: lea ecx, [ebp - 0xd0] */
   5964     PUSH32(esp, ecx); /* 0x3000746E: push ecx */
   5965     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000746F: fstp dword ptr [ebp - 0x20] */
   5966     eax = MEM32(ebp + (-0x20)); /* 0x30007472: mov eax, dword ptr [ebp - 0x20] */
   5967     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30007475: fld dword ptr [ebp - 0x1c] */
   5968     MEM32(ebp + (-0xCC)) = eax; /* 0x30007478: mov dword ptr [ebp - 0xcc], eax */
   5969     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000747E: fmul dword ptr [ebp + 8] */
   5970     ecx = ebp + (-0xC4); /* 0x30007481: lea ecx, [ebp - 0xc4] */
   5971     MEM32(ebp + (-0xC0)) = edx; /* 0x30007487: mov dword ptr [ebp - 0xc0], edx */
   5972     MEM32(ebp + (-0xBC)) = esi; /* 0x3000748D: mov dword ptr [ebp - 0xbc], esi */
   5973     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007493: fstp dword ptr [ebp - 0x1c] */
   5974     eax = MEM32(ebp + (-0x1C)); /* 0x30007496: mov eax, dword ptr [ebp - 0x1c] */
   5975     MEM32(ebp + (-0xC8)) = eax; /* 0x30007499: mov dword ptr [ebp - 0xc8], eax */
   5976     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000749F: call dword ptr [0x300190c4] */
   5977     RECOMP_FLAGS_IN();
   5978     edx = MEM32(eax); /* 0x300074A5: mov edx, dword ptr [eax] */
   5979     ecx = MEM32(eax + 0x4); /* 0x300074A7: mov ecx, dword ptr [eax + 4] */
   5980     MEM32(ebp + (-0xA0)) = edx; /* 0x300074AA: mov dword ptr [ebp - 0xa0], edx */
   5981     edx = MEM32(eax + 0x8); /* 0x300074B0: mov edx, dword ptr [eax + 8] */
   5982     eax = ebp + (-0x48); /* 0x300074B3: lea eax, [ebp - 0x48] */
   5983     MEM32(ebp + (-0x9C)) = ecx; /* 0x300074B6: mov dword ptr [ebp - 0x9c], ecx */
   5984     PUSH32(esp, eax); /* 0x300074BC: push eax */
   5985     ecx = ebp + (-0xA0); /* 0x300074BD: lea ecx, [ebp - 0xa0] */
   5986     MEM32(ebp + (-0x98)) = edx; /* 0x300074C3: mov dword ptr [ebp - 0x98], edx */
   5987     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300074C9: call dword ptr [0x300190bc] */
   5988     RECOMP_FLAGS_IN();
   5989     ecx = MEM32(eax); /* 0x300074CF: mov ecx, dword ptr [eax] */
   5990     edx = MEM32(eax + 0x4); /* 0x300074D1: mov edx, dword ptr [eax + 4] */
   5991     eax = MEM32(eax + 0x8); /* 0x300074D4: mov eax, dword ptr [eax + 8] */
   5992     MEM32(ebp + (-0x54)) = ecx; /* 0x300074D7: mov dword ptr [ebp - 0x54], ecx */
   5993     ecx = MEM32(ebp + 0xC); /* 0x300074DA: mov ecx, dword ptr [ebp + 0xc] */
   5994     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x300074DD: fld dword ptr [ecx + 0x18] */
   5995     MEM32(ebp + (-0x4C)) = eax; /* 0x300074E0: mov dword ptr [ebp - 0x4c], eax */
   5996     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x300074E3: fld dword ptr [ebp - 0x4c] */
   5997     MEM32(ebp + (-0x50)) = edx; /* 0x300074E6: mov dword ptr [ebp - 0x50], edx */
   5998     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300074E9: fmul dword ptr [ebp - 0x4c] */
   5999     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300074EC: fld dword ptr [ebp - 0x50] */
   6000     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300074EF: fmul dword ptr [ebp - 0x50] */
   6001     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074F2: faddp st(1) */
   6002     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300074F4: fld dword ptr [ebp - 0x54] */
   6003     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x300074F7: fmul dword ptr [ebp - 0x54] */
   6004     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074FA: faddp st(1) */
   6005     fp_push(_st[1]); /* 0x300074FC: fld st(1) */
   6006     _st[0] *= _st[2]; /* 0x300074FE: fmul st(2) */
   6007     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007500: fcompp  */
   6008     fp_pop(); fp_pop();
   6009     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007502: fnstsw ax */
   6010     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007504: fstp st(0) */
   6011     /* test HI8(eax), 1 */ /* 0x30007506: test ah, 1 */
   6012     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6013     _cf = 0;
   6014     _flag_k = FK_NARROW(FK_TEST, 24);
   6015     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007509: je 0x30007650 */
   6016 L_3000750F:
   6017     edx = MEM32(ebp + (-0x14)); /* 0x3000750F: mov edx, dword ptr [ebp - 0x14] */
   6018     esi = MEM32(ebp + (-0x10)); /* 0x30007512: mov esi, dword ptr [ebp - 0x10] */
   6019     ecx = MEM32(ebp + (-0x18)); /* 0x30007515: mov ecx, dword ptr [ebp - 0x18] */
   6020 L_30007518:
   6021     eax = MEM32(ebp + (-0x5C)); /* 0x30007518: mov eax, dword ptr [ebp - 0x5c] */
   6022     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6023     eax = eax + 1; /* 0x3000751B: inc eax */
   6024     _flag_k = FK_INC;
   6025     /* cmp eax, 3 */ /* 0x3000751C: cmp eax, 3 */
   6026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   6027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6028     _flag_k = FK_CMP;
   6029     MEM32(ebp + (-0x5C)) = eax; /* 0x3000751F: mov dword ptr [ebp - 0x5c], eax */
   6030     RECOMP_BACKEDGE();
   6031     if (CMP_LE(_flag_a, _flag_b)) goto L_30007231; /* 0x30007522: jle 0x30007231 */
   6032 L_30007528:
   6033     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x30007528: fld dword ptr [ebp - 0x28] */
   6034     edi = 1; /* 0x3000752B: mov edi, 1 */
   6035     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007530: fmul dword ptr [ebp - 0x28] */
   6036     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x30007533: fld dword ptr [ebp - 0x2c] */
   6037     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007536: fmul dword ptr [ebp - 0x2c] */
   6038     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007539: faddp st(1) */
   6039     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3000753B: fld dword ptr [ebp - 0x30] */
   6040     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000753E: fmul dword ptr [ebp - 0x30] */
   6041     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007541: faddp st(1) */
   6042     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30007543: fstp dword ptr [ebp + 0xc] */
   6043     goto L_30007551; /* 0x30007546: jmp 0x30007551 */
   6044 L_30007548:
   6045     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   6046     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   6047     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   6048 L_30007551:
   6049     eax = edi; /* 0x30007551: mov eax, edi */
   6050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6051     eax = eax - 1; /* 0x30007553: dec eax */
   6052     _flag_k = FK_DEC;
   6053     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   6054 L_30007556:
   6055     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6056     eax = eax - 1; /* 0x30007556: dec eax */
   6057     _flag_k = FK_DEC;
   6058     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   6059 L_30007559:
   6060     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6061     eax = eax - 1; /* 0x30007559: dec eax */
   6062     _flag_k = FK_DEC;
   6063     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   6064 L_3000755C:
   6065     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   6066     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   6067 L_30007561:
   6068     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   6069     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   6070 L_30007569:
   6071     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   6072 L_3000756F:
   6073     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   6074     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   6075     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   6076     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   6077     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   6078     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   6079 L_30007580:
   6080     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   6081     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   6082     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   6083     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   6084     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   6085     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   6086     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   6087     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   6088     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   6089     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   6090     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   6091     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   6092     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   6093     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   6094     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   6095     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   6096     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   6097     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   6098     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   6099     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   6100     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   6101     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   6102     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   6103     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   6104     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   6105     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   6106     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   6107     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   6108     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   6109     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   6110     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   6111     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   6112     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   6113     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   6114     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   6115     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   6116     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   6117     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   6118     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   6119     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   6120     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   6121     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   6122     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   6123     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   6124     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   6125     RECOMP_FLAGS_IN();
   6126     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   6127     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   6128     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   6129     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   6130     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   6131     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   6132     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   6133     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   6134     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   6135     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   6136     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   6137     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   6138     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   6139     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   6140     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   6141     fp_pop();
   6142     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   6143     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   6144     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6145     _cf = 0;
   6146     _flag_k = FK_NARROW(FK_TEST, 24);
   6147     RECOMP_BACKEDGE();
   6148     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   6149 L_30007646:
   6150     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   6151     edi = edi + 1; /* 0x30007646: inc edi */
   6152     _flag_k = FK_INC;
   6153     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   6154     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   6155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6156     _flag_k = FK_CMP;
   6157     RECOMP_BACKEDGE();
   6158     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   6159 L_30007650:
   6160     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   6161     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   6162     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   6163     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   6164     esp = ebp; /* 0x30007655: mov esp, ebp */
   6165     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   6166     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   6167     RECOMP_REGS_OUT();
   6168 }
   6169 
   6170 void sub_3000750F(void) {
   6171     int _fpu_cmp = 0;
   6172     uint32_t _cf = 0;
   6173     int _df = 1;
   6174     uint32_t _flag_k = FK_NONE;
   6175     uint32_t _flag_a = 0, _flag_b = 0;
   6176     uint32_t _itail_tgt = 0;
   6177     RECOMP_REGS_LOCALS
   6178     RECOMP_ENTER(0x3000750Fu);
   6179 
   6180     goto L_3000750F;
   6181 L_300071E8:
   6182     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   6183     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   6184     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6185     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   6186     _cf = 0;
   6187     _flag_k = FK_NARROW(FK_TEST, 24);
   6188     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   6189     esp = ebp; /* 0x300071ED: mov esp, ebp */
   6190     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   6191     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   6192 L_30007231:
   6193     eax = MEM32(ebp + (-0x5C)); /* 0x30007231: mov eax, dword ptr [ebp - 0x5c] */
   6194     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6195     eax = eax - 1; /* 0x30007234: dec eax */
   6196     _flag_k = FK_DEC;
   6197     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000728A; /* 0x30007235: je 0x3000728a */
   6198 L_30007237:
   6199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6200     eax = eax - 1; /* 0x30007237: dec eax */
   6201     _flag_k = FK_DEC;
   6202     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007262; /* 0x30007238: je 0x30007262 */
   6203 L_3000723A:
   6204     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6205     eax = eax - 1; /* 0x3000723A: dec eax */
   6206     _flag_k = FK_DEC;
   6207     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300072B3; /* 0x3000723B: jne 0x300072b3 */
   6208 L_3000723D:
   6209     eax = MEM32(ebp + (-0x58)); /* 0x3000723D: mov eax, dword ptr [ebp - 0x58] */
   6210     ecx = MEM32(eax); /* 0x30007240: mov ecx, dword ptr [eax] */
   6211     edx = MEM32(eax + 0x4); /* 0x30007242: mov edx, dword ptr [eax + 4] */
   6212     esi = MEM32(eax + 0x8); /* 0x30007245: mov esi, dword ptr [eax + 8] */
   6213     edi = MEM32(ebp + (-0x80)); /* 0x30007248: mov edi, dword ptr [ebp - 0x80] */
   6214     ebx = MEM32(ebp + (-0x7C)); /* 0x3000724B: mov ebx, dword ptr [ebp - 0x7c] */
   6215     eax = MEM32(ebp + (-0x78)); /* 0x3000724E: mov eax, dword ptr [ebp - 0x78] */
   6216     MEM32(ebp + (-0x18)) = ecx; /* 0x30007251: mov dword ptr [ebp - 0x18], ecx */
   6217     MEM32(ebp + (-0x14)) = edx; /* 0x30007254: mov dword ptr [ebp - 0x14], edx */
   6218     MEM32(ebp + (-0x10)) = esi; /* 0x30007257: mov dword ptr [ebp - 0x10], esi */
   6219     MEM32(ebp + (-0xC)) = edi; /* 0x3000725A: mov dword ptr [ebp - 0xc], edi */
   6220     MEM32(ebp + (-0x8)) = ebx; /* 0x3000725D: mov dword ptr [ebp - 8], ebx */
   6221     goto L_300072B0; /* 0x30007260: jmp 0x300072b0 */
   6222 L_30007262:
   6223     eax = MEM32(ebp + (-0x90)); /* 0x30007262: mov eax, dword ptr [ebp - 0x90] */
   6224     ecx = MEM32(eax); /* 0x30007268: mov ecx, dword ptr [eax] */
   6225     edx = MEM32(eax + 0x4); /* 0x3000726A: mov edx, dword ptr [eax + 4] */
   6226     esi = MEM32(eax + 0x8); /* 0x3000726D: mov esi, dword ptr [eax + 8] */
   6227     edi = MEM32(ebp + (-0x68)); /* 0x30007270: mov edi, dword ptr [ebp - 0x68] */
   6228     ebx = MEM32(ebp + (-0x64)); /* 0x30007273: mov ebx, dword ptr [ebp - 0x64] */
   6229     eax = MEM32(ebp + (-0x60)); /* 0x30007276: mov eax, dword ptr [ebp - 0x60] */
   6230     MEM32(ebp + (-0x18)) = ecx; /* 0x30007279: mov dword ptr [ebp - 0x18], ecx */
   6231     MEM32(ebp + (-0x14)) = edx; /* 0x3000727C: mov dword ptr [ebp - 0x14], edx */
   6232     MEM32(ebp + (-0x10)) = esi; /* 0x3000727F: mov dword ptr [ebp - 0x10], esi */
   6233     MEM32(ebp + (-0xC)) = edi; /* 0x30007282: mov dword ptr [ebp - 0xc], edi */
   6234     MEM32(ebp + (-0x8)) = ebx; /* 0x30007285: mov dword ptr [ebp - 8], ebx */
   6235     goto L_300072B0; /* 0x30007288: jmp 0x300072b0 */
   6236 L_3000728A:
   6237     eax = MEM32(ebp + (-0x94)); /* 0x3000728A: mov eax, dword ptr [ebp - 0x94] */
   6238     ecx = MEM32(eax); /* 0x30007290: mov ecx, dword ptr [eax] */
   6239     edx = MEM32(eax + 0x4); /* 0x30007292: mov edx, dword ptr [eax + 4] */
   6240     esi = MEM32(eax + 0x8); /* 0x30007295: mov esi, dword ptr [eax + 8] */
   6241     edi = MEM32(ebp + (-0x30)); /* 0x30007298: mov edi, dword ptr [ebp - 0x30] */
   6242     ebx = MEM32(ebp + (-0x2C)); /* 0x3000729B: mov ebx, dword ptr [ebp - 0x2c] */
   6243     eax = MEM32(ebp + (-0x28)); /* 0x3000729E: mov eax, dword ptr [ebp - 0x28] */
   6244     MEM32(ebp + (-0x18)) = ecx; /* 0x300072A1: mov dword ptr [ebp - 0x18], ecx */
   6245     MEM32(ebp + (-0x14)) = edx; /* 0x300072A4: mov dword ptr [ebp - 0x14], edx */
   6246     MEM32(ebp + (-0x10)) = esi; /* 0x300072A7: mov dword ptr [ebp - 0x10], esi */
   6247     MEM32(ebp + (-0xC)) = edi; /* 0x300072AA: mov dword ptr [ebp - 0xc], edi */
   6248     MEM32(ebp + (-0x8)) = ebx; /* 0x300072AD: mov dword ptr [ebp - 8], ebx */
   6249 L_300072B0:
   6250     MEM32(ebp + (-0x4)) = eax; /* 0x300072B0: mov dword ptr [ebp - 4], eax */
   6251 L_300072B3:
   6252     eax = MEM32(ebp + (-0x48)); /* 0x300072B3: mov eax, dword ptr [ebp - 0x48] */
   6253     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x300072B6: fld dword ptr [ebp - 0x48] */
   6254     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300072B9: fsub dword ptr [ebp - 0x18] */
   6255     MEM32(ebp + (-0xAC)) = eax; /* 0x300072BC: mov dword ptr [ebp - 0xac], eax */
   6256     eax = MEM32(ebp + (-0x44)); /* 0x300072C2: mov eax, dword ptr [ebp - 0x44] */
   6257     MEM32(ebp + (-0xA8)) = eax; /* 0x300072C5: mov dword ptr [ebp - 0xa8], eax */
   6258     fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x300072CB: fld dword ptr [ebp - 0xa8] */
   6259     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300072D1: fsub dword ptr [ebp - 0x14] */
   6260     eax = MEM32(ebp + (-0x40)); /* 0x300072D4: mov eax, dword ptr [ebp - 0x40] */
   6261     MEM32(ebp + (-0xA4)) = eax; /* 0x300072D7: mov dword ptr [ebp - 0xa4], eax */
   6262     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x300072DD: fld dword ptr [ebp - 0xa4] */
   6263     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300072E3: fsub dword ptr [ebp - 0x10] */
   6264     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072E6: fld dword ptr [ebp - 4] */
   6265     _st[0] *= _st[1]; /* 0x300072E9: fmul st(1) */
   6266     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072EB: fld dword ptr [ebp - 8] */
   6267     _st[0] *= _st[3]; /* 0x300072EE: fmul st(3) */
   6268     { double _v = fp_pop(); _st[0] += _v; } /* 0x300072F0: faddp st(1) */
   6269     fp_xch(3); /* 0x300072F2: fxch st(3) */
   6270     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300072F4: fmul dword ptr [ebp - 0xc] */
   6271     { double _v = fp_pop(); _st[2] += _v; } /* 0x300072F7: faddp st(3) */
   6272     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072F9: fld dword ptr [ebp - 4] */
   6273     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300072FC: fmul dword ptr [ebp - 4] */
   6274     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072FF: fld dword ptr [ebp - 8] */
   6275     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x30007302: fmul dword ptr [ebp - 8] */
   6276     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007305: faddp st(1) */
   6277     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007307: fld dword ptr [ebp - 0xc] */
   6278     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000730A: fmul dword ptr [ebp - 0xc] */
   6279     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000730D: faddp st(1) */
   6280     { double _v = fp_pop(); _st[2] = _v == 0.0 ? _st[2] : _st[2] / _v; } /* 0x3000730F: fdivp st(3) */
   6281     fp_xch(2); /* 0x30007311: fxch st(2) */
   6282     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30007313: fstp dword ptr [ebp + 8] */
   6283     fp_xch(1); /* 0x30007316: fxch st(1) */
   6284     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007318: fstp st(0) */
   6285     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000731A: fstp st(0) */
   6286     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000731C: fld dword ptr [ebp + 8] */
   6287     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300191B8)); /* 0x3000731F: fcomp dword ptr [0x300191b8] */
   6288     fp_pop();
   6289     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007325: fnstsw ax */
   6290     /* test HI8(eax), 1 */ /* 0x30007327: test ah, 1 */
   6291     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6292     _cf = 0;
   6293     _flag_k = FK_NARROW(FK_TEST, 24);
   6294     if (TEST_NZ(_flag_a, _flag_b)) goto L_300073DF; /* 0x3000732A: jne 0x300073df */
   6295 L_30007330:
   6296     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007330: fld dword ptr [ebp - 0xc] */
   6297     MEM32(ebp + (-0x74)) = ecx; /* 0x30007333: mov dword ptr [ebp - 0x74], ecx */
   6298     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30007336: fadd dword ptr [ebp - 0x18] */
   6299     MEM32(ebp + (-0x70)) = edx; /* 0x30007339: mov dword ptr [ebp - 0x70], edx */
   6300     MEM32(ebp + (-0x6C)) = esi; /* 0x3000733C: mov dword ptr [ebp - 0x6c], esi */
   6301     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3000733F: fstp dword ptr [ebp - 0x74] */
   6302     ecx = MEM32(ebp + (-0x74)); /* 0x30007342: mov ecx, dword ptr [ebp - 0x74] */
   6303     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x30007345: fld dword ptr [ebp - 0x70] */
   6304     MEM32(ebp + (-0xB8)) = ecx; /* 0x30007348: mov dword ptr [ebp - 0xb8], ecx */
   6305     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3000734E: fadd dword ptr [ebp - 8] */
   6306     ecx = ebp + (-0x48); /* 0x30007351: lea ecx, [ebp - 0x48] */
   6307     PUSH32(esp, ecx); /* 0x30007354: push ecx */
   6308     ecx = ebp + (-0xB8); /* 0x30007355: lea ecx, [ebp - 0xb8] */
   6309     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3000735B: fstp dword ptr [ebp - 0x70] */
   6310     edx = MEM32(ebp + (-0x70)); /* 0x3000735E: mov edx, dword ptr [ebp - 0x70] */
   6311     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x30007361: fld dword ptr [ebp - 0x6c] */
   6312     MEM32(ebp + (-0xB4)) = edx; /* 0x30007364: mov dword ptr [ebp - 0xb4], edx */
   6313     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000736A: fadd dword ptr [ebp - 4] */
   6314     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x3000736D: fstp dword ptr [ebp - 0x6c] */
   6315     eax = MEM32(ebp + (-0x6C)); /* 0x30007370: mov eax, dword ptr [ebp - 0x6c] */
   6316     MEM32(ebp + (-0xB0)) = eax; /* 0x30007373: mov dword ptr [ebp - 0xb0], eax */
   6317     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007379: call dword ptr [0x300190bc] */
   6318     RECOMP_FLAGS_IN();
   6319     edx = MEM32(eax); /* 0x3000737F: mov edx, dword ptr [eax] */
   6320     ecx = MEM32(eax + 0x4); /* 0x30007381: mov ecx, dword ptr [eax + 4] */
   6321     MEM32(ebp + (-0x8C)) = edx; /* 0x30007384: mov dword ptr [ebp - 0x8c], edx */
   6322     edx = MEM32(eax + 0x8); /* 0x3000738A: mov edx, dword ptr [eax + 8] */
   6323     eax = MEM32(ebp + 0xC); /* 0x3000738D: mov eax, dword ptr [ebp + 0xc] */
   6324     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x30007390: fld dword ptr [eax + 0x18] */
   6325     MEM32(ebp + (-0x84)) = edx; /* 0x30007393: mov dword ptr [ebp - 0x84], edx */
   6326     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x30007399: fld dword ptr [ebp - 0x84] */
   6327     MEM32(ebp + (-0x88)) = ecx; /* 0x3000739F: mov dword ptr [ebp - 0x88], ecx */
   6328     _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x300073A5: fmul dword ptr [ebp - 0x84] */
   6329     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x300073AB: fld dword ptr [ebp - 0x88] */
   6330     _st[0] *= (double)*(float*)ADDR(ebp + (-0x88)); /* 0x300073B1: fmul dword ptr [ebp - 0x88] */
   6331     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073B7: faddp st(1) */
   6332     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x300073B9: fld dword ptr [ebp - 0x8c] */
   6333     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8C)); /* 0x300073BF: fmul dword ptr [ebp - 0x8c] */
   6334     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073C5: faddp st(1) */
   6335     fp_push(_st[1]); /* 0x300073C7: fld st(1) */
   6336     _st[0] *= _st[2]; /* 0x300073C9: fmul st(2) */
   6337     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300073CB: fcompp  */
   6338     fp_pop(); fp_pop();
   6339     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073CD: fnstsw ax */
   6340     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300073CF: fstp st(0) */
   6341     /* test HI8(eax), 1 */ /* 0x300073D1: test ah, 1 */
   6342     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6343     _cf = 0;
   6344     _flag_k = FK_NARROW(FK_TEST, 24);
   6345     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x300073D4: je 0x30007650 */
   6346 L_300073DA:
   6347     goto L_3000750F; /* 0x300073DA: jmp 0x3000750f */
   6348 L_300073DF:
   6349     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x300073DF: fld dword ptr [ebp + 8] */
   6350     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x300073E2: fcomp dword ptr [0x3001919c] */
   6351     fp_pop();
   6352     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073E8: fnstsw ax */
   6353     /* test HI8(eax), 0x41u */ /* 0x300073EA: test ah, 0x41 */
   6354     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6355     _cf = 0;
   6356     _flag_k = FK_NARROW(FK_TEST, 24);
   6357     if (TEST_Z(_flag_a, _flag_b)) goto L_3000743E; /* 0x300073ED: je 0x3000743e */
   6358 L_300073EF:
   6359     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300073EF: fld dword ptr [ebp - 0x18] */
   6360     eax = MEM32(ebp + 0xC); /* 0x300073F2: mov eax, dword ptr [ebp + 0xc] */
   6361     _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x300073F5: fsub dword ptr [ebp - 0x48] */
   6362     MEM32(ebp + (-0x38)) = edx; /* 0x300073F8: mov dword ptr [ebp - 0x38], edx */
   6363     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x300073FB: fld dword ptr [ebp - 0x38] */
   6364     MEM32(ebp + (-0x34)) = esi; /* 0x300073FE: mov dword ptr [ebp - 0x34], esi */
   6365     _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x30007401: fsub dword ptr [ebp - 0x44] */
   6366     MEM32(ebp + (-0x3C)) = ecx; /* 0x30007404: mov dword ptr [ebp - 0x3c], ecx */
   6367     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30007407: fld dword ptr [ebp - 0x34] */
   6368     _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3000740A: fsub dword ptr [ebp - 0x40] */
   6369     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x3000740D: fld dword ptr [eax + 0x18] */
   6370     fp_push(_st[1]); /* 0x30007410: fld st(1) */
   6371     _st[0] *= _st[2]; /* 0x30007412: fmul st(2) */
   6372     fp_push(_st[3]); /* 0x30007414: fld st(3) */
   6373     _st[0] *= _st[4]; /* 0x30007416: fmul st(4) */
   6374     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007418: faddp st(1) */
   6375     fp_push(_st[4]); /* 0x3000741A: fld st(4) */
   6376     _st[0] *= _st[5]; /* 0x3000741C: fmul st(5) */
   6377     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000741E: faddp st(1) */
   6378     fp_push(_st[1]); /* 0x30007420: fld st(1) */
   6379     _st[0] *= _st[2]; /* 0x30007422: fmul st(2) */
   6380     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007424: fcompp  */
   6381     fp_pop(); fp_pop();
   6382     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007426: fstp st(0) */
   6383     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007428: fstp st(0) */
   6384     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000742A: fnstsw ax */
   6385     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000742C: fstp st(0) */
   6386     /* test HI8(eax), 1 */ /* 0x3000742E: test ah, 1 */
   6387     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6388     _cf = 0;
   6389     _flag_k = FK_NARROW(FK_TEST, 24);
   6390     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007431: fstp st(0) */
   6391     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007433: je 0x30007650 */
   6392 L_30007439:
   6393     goto L_30007518; /* 0x30007439: jmp 0x30007518 */
   6394 L_3000743E:
   6395     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000743E: fld dword ptr [ebp - 0xc] */
   6396     eax = MEM32(ebp + (-0x4)); /* 0x30007441: mov eax, dword ptr [ebp - 4] */
   6397     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x30007444: fmul dword ptr [ebp + 8] */
   6398     MEM32(ebp + (-0x24)) = edi; /* 0x30007447: mov dword ptr [ebp - 0x24], edi */
   6399     MEM32(ebp + (-0x20)) = ebx; /* 0x3000744A: mov dword ptr [ebp - 0x20], ebx */
   6400     MEM32(ebp + (-0x1C)) = eax; /* 0x3000744D: mov dword ptr [ebp - 0x1c], eax */
   6401     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x30007450: fstp dword ptr [ebp - 0x24] */
   6402     eax = MEM32(ebp + (-0x24)); /* 0x30007453: mov eax, dword ptr [ebp - 0x24] */
   6403     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30007456: fld dword ptr [ebp - 0x20] */
   6404     MEM32(ebp + (-0xD0)) = eax; /* 0x30007459: mov dword ptr [ebp - 0xd0], eax */
   6405     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000745F: fmul dword ptr [ebp + 8] */
   6406     MEM32(ebp + (-0xC4)) = ecx; /* 0x30007462: mov dword ptr [ebp - 0xc4], ecx */
   6407     ecx = ebp + (-0xD0); /* 0x30007468: lea ecx, [ebp - 0xd0] */
   6408     PUSH32(esp, ecx); /* 0x3000746E: push ecx */
   6409     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000746F: fstp dword ptr [ebp - 0x20] */
   6410     eax = MEM32(ebp + (-0x20)); /* 0x30007472: mov eax, dword ptr [ebp - 0x20] */
   6411     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30007475: fld dword ptr [ebp - 0x1c] */
   6412     MEM32(ebp + (-0xCC)) = eax; /* 0x30007478: mov dword ptr [ebp - 0xcc], eax */
   6413     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000747E: fmul dword ptr [ebp + 8] */
   6414     ecx = ebp + (-0xC4); /* 0x30007481: lea ecx, [ebp - 0xc4] */
   6415     MEM32(ebp + (-0xC0)) = edx; /* 0x30007487: mov dword ptr [ebp - 0xc0], edx */
   6416     MEM32(ebp + (-0xBC)) = esi; /* 0x3000748D: mov dword ptr [ebp - 0xbc], esi */
   6417     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007493: fstp dword ptr [ebp - 0x1c] */
   6418     eax = MEM32(ebp + (-0x1C)); /* 0x30007496: mov eax, dword ptr [ebp - 0x1c] */
   6419     MEM32(ebp + (-0xC8)) = eax; /* 0x30007499: mov dword ptr [ebp - 0xc8], eax */
   6420     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000749F: call dword ptr [0x300190c4] */
   6421     RECOMP_FLAGS_IN();
   6422     edx = MEM32(eax); /* 0x300074A5: mov edx, dword ptr [eax] */
   6423     ecx = MEM32(eax + 0x4); /* 0x300074A7: mov ecx, dword ptr [eax + 4] */
   6424     MEM32(ebp + (-0xA0)) = edx; /* 0x300074AA: mov dword ptr [ebp - 0xa0], edx */
   6425     edx = MEM32(eax + 0x8); /* 0x300074B0: mov edx, dword ptr [eax + 8] */
   6426     eax = ebp + (-0x48); /* 0x300074B3: lea eax, [ebp - 0x48] */
   6427     MEM32(ebp + (-0x9C)) = ecx; /* 0x300074B6: mov dword ptr [ebp - 0x9c], ecx */
   6428     PUSH32(esp, eax); /* 0x300074BC: push eax */
   6429     ecx = ebp + (-0xA0); /* 0x300074BD: lea ecx, [ebp - 0xa0] */
   6430     MEM32(ebp + (-0x98)) = edx; /* 0x300074C3: mov dword ptr [ebp - 0x98], edx */
   6431     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300074C9: call dword ptr [0x300190bc] */
   6432     RECOMP_FLAGS_IN();
   6433     ecx = MEM32(eax); /* 0x300074CF: mov ecx, dword ptr [eax] */
   6434     edx = MEM32(eax + 0x4); /* 0x300074D1: mov edx, dword ptr [eax + 4] */
   6435     eax = MEM32(eax + 0x8); /* 0x300074D4: mov eax, dword ptr [eax + 8] */
   6436     MEM32(ebp + (-0x54)) = ecx; /* 0x300074D7: mov dword ptr [ebp - 0x54], ecx */
   6437     ecx = MEM32(ebp + 0xC); /* 0x300074DA: mov ecx, dword ptr [ebp + 0xc] */
   6438     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x300074DD: fld dword ptr [ecx + 0x18] */
   6439     MEM32(ebp + (-0x4C)) = eax; /* 0x300074E0: mov dword ptr [ebp - 0x4c], eax */
   6440     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x300074E3: fld dword ptr [ebp - 0x4c] */
   6441     MEM32(ebp + (-0x50)) = edx; /* 0x300074E6: mov dword ptr [ebp - 0x50], edx */
   6442     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300074E9: fmul dword ptr [ebp - 0x4c] */
   6443     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300074EC: fld dword ptr [ebp - 0x50] */
   6444     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300074EF: fmul dword ptr [ebp - 0x50] */
   6445     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074F2: faddp st(1) */
   6446     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300074F4: fld dword ptr [ebp - 0x54] */
   6447     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x300074F7: fmul dword ptr [ebp - 0x54] */
   6448     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074FA: faddp st(1) */
   6449     fp_push(_st[1]); /* 0x300074FC: fld st(1) */
   6450     _st[0] *= _st[2]; /* 0x300074FE: fmul st(2) */
   6451     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007500: fcompp  */
   6452     fp_pop(); fp_pop();
   6453     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007502: fnstsw ax */
   6454     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007504: fstp st(0) */
   6455     /* test HI8(eax), 1 */ /* 0x30007506: test ah, 1 */
   6456     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6457     _cf = 0;
   6458     _flag_k = FK_NARROW(FK_TEST, 24);
   6459     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007509: je 0x30007650 */
   6460 L_3000750F:
   6461     edx = MEM32(ebp + (-0x14)); /* 0x3000750F: mov edx, dword ptr [ebp - 0x14] */
   6462     esi = MEM32(ebp + (-0x10)); /* 0x30007512: mov esi, dword ptr [ebp - 0x10] */
   6463     ecx = MEM32(ebp + (-0x18)); /* 0x30007515: mov ecx, dword ptr [ebp - 0x18] */
   6464 L_30007518:
   6465     eax = MEM32(ebp + (-0x5C)); /* 0x30007518: mov eax, dword ptr [ebp - 0x5c] */
   6466     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6467     eax = eax + 1; /* 0x3000751B: inc eax */
   6468     _flag_k = FK_INC;
   6469     /* cmp eax, 3 */ /* 0x3000751C: cmp eax, 3 */
   6470     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   6471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6472     _flag_k = FK_CMP;
   6473     MEM32(ebp + (-0x5C)) = eax; /* 0x3000751F: mov dword ptr [ebp - 0x5c], eax */
   6474     RECOMP_BACKEDGE();
   6475     if (CMP_LE(_flag_a, _flag_b)) goto L_30007231; /* 0x30007522: jle 0x30007231 */
   6476 L_30007528:
   6477     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x30007528: fld dword ptr [ebp - 0x28] */
   6478     edi = 1; /* 0x3000752B: mov edi, 1 */
   6479     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007530: fmul dword ptr [ebp - 0x28] */
   6480     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x30007533: fld dword ptr [ebp - 0x2c] */
   6481     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007536: fmul dword ptr [ebp - 0x2c] */
   6482     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007539: faddp st(1) */
   6483     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3000753B: fld dword ptr [ebp - 0x30] */
   6484     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000753E: fmul dword ptr [ebp - 0x30] */
   6485     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007541: faddp st(1) */
   6486     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30007543: fstp dword ptr [ebp + 0xc] */
   6487     goto L_30007551; /* 0x30007546: jmp 0x30007551 */
   6488 L_30007548:
   6489     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   6490     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   6491     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   6492 L_30007551:
   6493     eax = edi; /* 0x30007551: mov eax, edi */
   6494     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6495     eax = eax - 1; /* 0x30007553: dec eax */
   6496     _flag_k = FK_DEC;
   6497     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   6498 L_30007556:
   6499     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6500     eax = eax - 1; /* 0x30007556: dec eax */
   6501     _flag_k = FK_DEC;
   6502     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   6503 L_30007559:
   6504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6505     eax = eax - 1; /* 0x30007559: dec eax */
   6506     _flag_k = FK_DEC;
   6507     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   6508 L_3000755C:
   6509     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   6510     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   6511 L_30007561:
   6512     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   6513     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   6514 L_30007569:
   6515     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   6516 L_3000756F:
   6517     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   6518     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   6519     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   6520     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   6521     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   6522     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   6523 L_30007580:
   6524     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   6525     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   6526     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   6527     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   6528     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   6529     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   6530     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   6531     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   6532     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   6533     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   6534     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   6535     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   6536     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   6537     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   6538     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   6539     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   6540     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   6541     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   6542     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   6543     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   6544     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   6545     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   6546     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   6547     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   6548     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   6549     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   6550     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   6551     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   6552     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   6553     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   6554     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   6555     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   6556     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   6557     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   6558     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   6559     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   6560     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   6561     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   6562     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   6563     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   6564     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   6565     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   6566     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   6567     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   6568     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   6569     RECOMP_FLAGS_IN();
   6570     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   6571     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   6572     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   6573     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   6574     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   6575     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   6576     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   6577     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   6578     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   6579     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   6580     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   6581     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   6582     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   6583     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   6584     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   6585     fp_pop();
   6586     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   6587     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   6588     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6589     _cf = 0;
   6590     _flag_k = FK_NARROW(FK_TEST, 24);
   6591     RECOMP_BACKEDGE();
   6592     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   6593 L_30007646:
   6594     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   6595     edi = edi + 1; /* 0x30007646: inc edi */
   6596     _flag_k = FK_INC;
   6597     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   6598     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   6599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6600     _flag_k = FK_CMP;
   6601     RECOMP_BACKEDGE();
   6602     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   6603 L_30007650:
   6604     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   6605     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   6606     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   6607     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   6608     esp = ebp; /* 0x30007655: mov esp, ebp */
   6609     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   6610     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   6611     RECOMP_REGS_OUT();
   6612 }
   6613 
   6614 void sub_30007518(void) {
   6615     int _fpu_cmp = 0;
   6616     uint32_t _cf = 0;
   6617     int _df = 1;
   6618     uint32_t _flag_k = FK_NONE;
   6619     uint32_t _flag_a = 0, _flag_b = 0;
   6620     uint32_t _itail_tgt = 0;
   6621     RECOMP_REGS_LOCALS
   6622     RECOMP_ENTER(0x30007518u);
   6623 
   6624     goto L_30007518;
   6625 L_300071E8:
   6626     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   6627     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   6628     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6629     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   6630     _cf = 0;
   6631     _flag_k = FK_NARROW(FK_TEST, 24);
   6632     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   6633     esp = ebp; /* 0x300071ED: mov esp, ebp */
   6634     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   6635     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   6636 L_30007231:
   6637     eax = MEM32(ebp + (-0x5C)); /* 0x30007231: mov eax, dword ptr [ebp - 0x5c] */
   6638     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6639     eax = eax - 1; /* 0x30007234: dec eax */
   6640     _flag_k = FK_DEC;
   6641     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000728A; /* 0x30007235: je 0x3000728a */
   6642 L_30007237:
   6643     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6644     eax = eax - 1; /* 0x30007237: dec eax */
   6645     _flag_k = FK_DEC;
   6646     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007262; /* 0x30007238: je 0x30007262 */
   6647 L_3000723A:
   6648     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6649     eax = eax - 1; /* 0x3000723A: dec eax */
   6650     _flag_k = FK_DEC;
   6651     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300072B3; /* 0x3000723B: jne 0x300072b3 */
   6652 L_3000723D:
   6653     eax = MEM32(ebp + (-0x58)); /* 0x3000723D: mov eax, dword ptr [ebp - 0x58] */
   6654     ecx = MEM32(eax); /* 0x30007240: mov ecx, dword ptr [eax] */
   6655     edx = MEM32(eax + 0x4); /* 0x30007242: mov edx, dword ptr [eax + 4] */
   6656     esi = MEM32(eax + 0x8); /* 0x30007245: mov esi, dword ptr [eax + 8] */
   6657     edi = MEM32(ebp + (-0x80)); /* 0x30007248: mov edi, dword ptr [ebp - 0x80] */
   6658     ebx = MEM32(ebp + (-0x7C)); /* 0x3000724B: mov ebx, dword ptr [ebp - 0x7c] */
   6659     eax = MEM32(ebp + (-0x78)); /* 0x3000724E: mov eax, dword ptr [ebp - 0x78] */
   6660     MEM32(ebp + (-0x18)) = ecx; /* 0x30007251: mov dword ptr [ebp - 0x18], ecx */
   6661     MEM32(ebp + (-0x14)) = edx; /* 0x30007254: mov dword ptr [ebp - 0x14], edx */
   6662     MEM32(ebp + (-0x10)) = esi; /* 0x30007257: mov dword ptr [ebp - 0x10], esi */
   6663     MEM32(ebp + (-0xC)) = edi; /* 0x3000725A: mov dword ptr [ebp - 0xc], edi */
   6664     MEM32(ebp + (-0x8)) = ebx; /* 0x3000725D: mov dword ptr [ebp - 8], ebx */
   6665     goto L_300072B0; /* 0x30007260: jmp 0x300072b0 */
   6666 L_30007262:
   6667     eax = MEM32(ebp + (-0x90)); /* 0x30007262: mov eax, dword ptr [ebp - 0x90] */
   6668     ecx = MEM32(eax); /* 0x30007268: mov ecx, dword ptr [eax] */
   6669     edx = MEM32(eax + 0x4); /* 0x3000726A: mov edx, dword ptr [eax + 4] */
   6670     esi = MEM32(eax + 0x8); /* 0x3000726D: mov esi, dword ptr [eax + 8] */
   6671     edi = MEM32(ebp + (-0x68)); /* 0x30007270: mov edi, dword ptr [ebp - 0x68] */
   6672     ebx = MEM32(ebp + (-0x64)); /* 0x30007273: mov ebx, dword ptr [ebp - 0x64] */
   6673     eax = MEM32(ebp + (-0x60)); /* 0x30007276: mov eax, dword ptr [ebp - 0x60] */
   6674     MEM32(ebp + (-0x18)) = ecx; /* 0x30007279: mov dword ptr [ebp - 0x18], ecx */
   6675     MEM32(ebp + (-0x14)) = edx; /* 0x3000727C: mov dword ptr [ebp - 0x14], edx */
   6676     MEM32(ebp + (-0x10)) = esi; /* 0x3000727F: mov dword ptr [ebp - 0x10], esi */
   6677     MEM32(ebp + (-0xC)) = edi; /* 0x30007282: mov dword ptr [ebp - 0xc], edi */
   6678     MEM32(ebp + (-0x8)) = ebx; /* 0x30007285: mov dword ptr [ebp - 8], ebx */
   6679     goto L_300072B0; /* 0x30007288: jmp 0x300072b0 */
   6680 L_3000728A:
   6681     eax = MEM32(ebp + (-0x94)); /* 0x3000728A: mov eax, dword ptr [ebp - 0x94] */
   6682     ecx = MEM32(eax); /* 0x30007290: mov ecx, dword ptr [eax] */
   6683     edx = MEM32(eax + 0x4); /* 0x30007292: mov edx, dword ptr [eax + 4] */
   6684     esi = MEM32(eax + 0x8); /* 0x30007295: mov esi, dword ptr [eax + 8] */
   6685     edi = MEM32(ebp + (-0x30)); /* 0x30007298: mov edi, dword ptr [ebp - 0x30] */
   6686     ebx = MEM32(ebp + (-0x2C)); /* 0x3000729B: mov ebx, dword ptr [ebp - 0x2c] */
   6687     eax = MEM32(ebp + (-0x28)); /* 0x3000729E: mov eax, dword ptr [ebp - 0x28] */
   6688     MEM32(ebp + (-0x18)) = ecx; /* 0x300072A1: mov dword ptr [ebp - 0x18], ecx */
   6689     MEM32(ebp + (-0x14)) = edx; /* 0x300072A4: mov dword ptr [ebp - 0x14], edx */
   6690     MEM32(ebp + (-0x10)) = esi; /* 0x300072A7: mov dword ptr [ebp - 0x10], esi */
   6691     MEM32(ebp + (-0xC)) = edi; /* 0x300072AA: mov dword ptr [ebp - 0xc], edi */
   6692     MEM32(ebp + (-0x8)) = ebx; /* 0x300072AD: mov dword ptr [ebp - 8], ebx */
   6693 L_300072B0:
   6694     MEM32(ebp + (-0x4)) = eax; /* 0x300072B0: mov dword ptr [ebp - 4], eax */
   6695 L_300072B3:
   6696     eax = MEM32(ebp + (-0x48)); /* 0x300072B3: mov eax, dword ptr [ebp - 0x48] */
   6697     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x300072B6: fld dword ptr [ebp - 0x48] */
   6698     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300072B9: fsub dword ptr [ebp - 0x18] */
   6699     MEM32(ebp + (-0xAC)) = eax; /* 0x300072BC: mov dword ptr [ebp - 0xac], eax */
   6700     eax = MEM32(ebp + (-0x44)); /* 0x300072C2: mov eax, dword ptr [ebp - 0x44] */
   6701     MEM32(ebp + (-0xA8)) = eax; /* 0x300072C5: mov dword ptr [ebp - 0xa8], eax */
   6702     fp_push(*(float*)&MEM32(ebp + (-0xA8))); /* 0x300072CB: fld dword ptr [ebp - 0xa8] */
   6703     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x300072D1: fsub dword ptr [ebp - 0x14] */
   6704     eax = MEM32(ebp + (-0x40)); /* 0x300072D4: mov eax, dword ptr [ebp - 0x40] */
   6705     MEM32(ebp + (-0xA4)) = eax; /* 0x300072D7: mov dword ptr [ebp - 0xa4], eax */
   6706     fp_push(*(float*)&MEM32(ebp + (-0xA4))); /* 0x300072DD: fld dword ptr [ebp - 0xa4] */
   6707     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300072E3: fsub dword ptr [ebp - 0x10] */
   6708     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072E6: fld dword ptr [ebp - 4] */
   6709     _st[0] *= _st[1]; /* 0x300072E9: fmul st(1) */
   6710     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072EB: fld dword ptr [ebp - 8] */
   6711     _st[0] *= _st[3]; /* 0x300072EE: fmul st(3) */
   6712     { double _v = fp_pop(); _st[0] += _v; } /* 0x300072F0: faddp st(1) */
   6713     fp_xch(3); /* 0x300072F2: fxch st(3) */
   6714     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300072F4: fmul dword ptr [ebp - 0xc] */
   6715     { double _v = fp_pop(); _st[2] += _v; } /* 0x300072F7: faddp st(3) */
   6716     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300072F9: fld dword ptr [ebp - 4] */
   6717     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300072FC: fmul dword ptr [ebp - 4] */
   6718     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300072FF: fld dword ptr [ebp - 8] */
   6719     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x30007302: fmul dword ptr [ebp - 8] */
   6720     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007305: faddp st(1) */
   6721     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007307: fld dword ptr [ebp - 0xc] */
   6722     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3000730A: fmul dword ptr [ebp - 0xc] */
   6723     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000730D: faddp st(1) */
   6724     { double _v = fp_pop(); _st[2] = _v == 0.0 ? _st[2] : _st[2] / _v; } /* 0x3000730F: fdivp st(3) */
   6725     fp_xch(2); /* 0x30007311: fxch st(2) */
   6726     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30007313: fstp dword ptr [ebp + 8] */
   6727     fp_xch(1); /* 0x30007316: fxch st(1) */
   6728     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007318: fstp st(0) */
   6729     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000731A: fstp st(0) */
   6730     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3000731C: fld dword ptr [ebp + 8] */
   6731     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300191B8)); /* 0x3000731F: fcomp dword ptr [0x300191b8] */
   6732     fp_pop();
   6733     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007325: fnstsw ax */
   6734     /* test HI8(eax), 1 */ /* 0x30007327: test ah, 1 */
   6735     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6736     _cf = 0;
   6737     _flag_k = FK_NARROW(FK_TEST, 24);
   6738     if (TEST_NZ(_flag_a, _flag_b)) goto L_300073DF; /* 0x3000732A: jne 0x300073df */
   6739 L_30007330:
   6740     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30007330: fld dword ptr [ebp - 0xc] */
   6741     MEM32(ebp + (-0x74)) = ecx; /* 0x30007333: mov dword ptr [ebp - 0x74], ecx */
   6742     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x30007336: fadd dword ptr [ebp - 0x18] */
   6743     MEM32(ebp + (-0x70)) = edx; /* 0x30007339: mov dword ptr [ebp - 0x70], edx */
   6744     MEM32(ebp + (-0x6C)) = esi; /* 0x3000733C: mov dword ptr [ebp - 0x6c], esi */
   6745     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x3000733F: fstp dword ptr [ebp - 0x74] */
   6746     ecx = MEM32(ebp + (-0x74)); /* 0x30007342: mov ecx, dword ptr [ebp - 0x74] */
   6747     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x30007345: fld dword ptr [ebp - 0x70] */
   6748     MEM32(ebp + (-0xB8)) = ecx; /* 0x30007348: mov dword ptr [ebp - 0xb8], ecx */
   6749     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3000734E: fadd dword ptr [ebp - 8] */
   6750     ecx = ebp + (-0x48); /* 0x30007351: lea ecx, [ebp - 0x48] */
   6751     PUSH32(esp, ecx); /* 0x30007354: push ecx */
   6752     ecx = ebp + (-0xB8); /* 0x30007355: lea ecx, [ebp - 0xb8] */
   6753     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x3000735B: fstp dword ptr [ebp - 0x70] */
   6754     edx = MEM32(ebp + (-0x70)); /* 0x3000735E: mov edx, dword ptr [ebp - 0x70] */
   6755     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x30007361: fld dword ptr [ebp - 0x6c] */
   6756     MEM32(ebp + (-0xB4)) = edx; /* 0x30007364: mov dword ptr [ebp - 0xb4], edx */
   6757     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3000736A: fadd dword ptr [ebp - 4] */
   6758     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x3000736D: fstp dword ptr [ebp - 0x6c] */
   6759     eax = MEM32(ebp + (-0x6C)); /* 0x30007370: mov eax, dword ptr [ebp - 0x6c] */
   6760     MEM32(ebp + (-0xB0)) = eax; /* 0x30007373: mov dword ptr [ebp - 0xb0], eax */
   6761     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007379: call dword ptr [0x300190bc] */
   6762     RECOMP_FLAGS_IN();
   6763     edx = MEM32(eax); /* 0x3000737F: mov edx, dword ptr [eax] */
   6764     ecx = MEM32(eax + 0x4); /* 0x30007381: mov ecx, dword ptr [eax + 4] */
   6765     MEM32(ebp + (-0x8C)) = edx; /* 0x30007384: mov dword ptr [ebp - 0x8c], edx */
   6766     edx = MEM32(eax + 0x8); /* 0x3000738A: mov edx, dword ptr [eax + 8] */
   6767     eax = MEM32(ebp + 0xC); /* 0x3000738D: mov eax, dword ptr [ebp + 0xc] */
   6768     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x30007390: fld dword ptr [eax + 0x18] */
   6769     MEM32(ebp + (-0x84)) = edx; /* 0x30007393: mov dword ptr [ebp - 0x84], edx */
   6770     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x30007399: fld dword ptr [ebp - 0x84] */
   6771     MEM32(ebp + (-0x88)) = ecx; /* 0x3000739F: mov dword ptr [ebp - 0x88], ecx */
   6772     _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x300073A5: fmul dword ptr [ebp - 0x84] */
   6773     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x300073AB: fld dword ptr [ebp - 0x88] */
   6774     _st[0] *= (double)*(float*)ADDR(ebp + (-0x88)); /* 0x300073B1: fmul dword ptr [ebp - 0x88] */
   6775     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073B7: faddp st(1) */
   6776     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x300073B9: fld dword ptr [ebp - 0x8c] */
   6777     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8C)); /* 0x300073BF: fmul dword ptr [ebp - 0x8c] */
   6778     { double _v = fp_pop(); _st[0] += _v; } /* 0x300073C5: faddp st(1) */
   6779     fp_push(_st[1]); /* 0x300073C7: fld st(1) */
   6780     _st[0] *= _st[2]; /* 0x300073C9: fmul st(2) */
   6781     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300073CB: fcompp  */
   6782     fp_pop(); fp_pop();
   6783     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073CD: fnstsw ax */
   6784     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300073CF: fstp st(0) */
   6785     /* test HI8(eax), 1 */ /* 0x300073D1: test ah, 1 */
   6786     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6787     _cf = 0;
   6788     _flag_k = FK_NARROW(FK_TEST, 24);
   6789     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x300073D4: je 0x30007650 */
   6790 L_300073DA:
   6791     goto L_3000750F; /* 0x300073DA: jmp 0x3000750f */
   6792 L_300073DF:
   6793     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x300073DF: fld dword ptr [ebp + 8] */
   6794     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x300073E2: fcomp dword ptr [0x3001919c] */
   6795     fp_pop();
   6796     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300073E8: fnstsw ax */
   6797     /* test HI8(eax), 0x41u */ /* 0x300073EA: test ah, 0x41 */
   6798     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6799     _cf = 0;
   6800     _flag_k = FK_NARROW(FK_TEST, 24);
   6801     if (TEST_Z(_flag_a, _flag_b)) goto L_3000743E; /* 0x300073ED: je 0x3000743e */
   6802 L_300073EF:
   6803     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x300073EF: fld dword ptr [ebp - 0x18] */
   6804     eax = MEM32(ebp + 0xC); /* 0x300073F2: mov eax, dword ptr [ebp + 0xc] */
   6805     _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x300073F5: fsub dword ptr [ebp - 0x48] */
   6806     MEM32(ebp + (-0x38)) = edx; /* 0x300073F8: mov dword ptr [ebp - 0x38], edx */
   6807     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x300073FB: fld dword ptr [ebp - 0x38] */
   6808     MEM32(ebp + (-0x34)) = esi; /* 0x300073FE: mov dword ptr [ebp - 0x34], esi */
   6809     _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x30007401: fsub dword ptr [ebp - 0x44] */
   6810     MEM32(ebp + (-0x3C)) = ecx; /* 0x30007404: mov dword ptr [ebp - 0x3c], ecx */
   6811     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x30007407: fld dword ptr [ebp - 0x34] */
   6812     _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3000740A: fsub dword ptr [ebp - 0x40] */
   6813     fp_push(*(float*)&MEM32(eax + 0x18)); /* 0x3000740D: fld dword ptr [eax + 0x18] */
   6814     fp_push(_st[1]); /* 0x30007410: fld st(1) */
   6815     _st[0] *= _st[2]; /* 0x30007412: fmul st(2) */
   6816     fp_push(_st[3]); /* 0x30007414: fld st(3) */
   6817     _st[0] *= _st[4]; /* 0x30007416: fmul st(4) */
   6818     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007418: faddp st(1) */
   6819     fp_push(_st[4]); /* 0x3000741A: fld st(4) */
   6820     _st[0] *= _st[5]; /* 0x3000741C: fmul st(5) */
   6821     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000741E: faddp st(1) */
   6822     fp_push(_st[1]); /* 0x30007420: fld st(1) */
   6823     _st[0] *= _st[2]; /* 0x30007422: fmul st(2) */
   6824     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007424: fcompp  */
   6825     fp_pop(); fp_pop();
   6826     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007426: fstp st(0) */
   6827     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007428: fstp st(0) */
   6828     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000742A: fnstsw ax */
   6829     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000742C: fstp st(0) */
   6830     /* test HI8(eax), 1 */ /* 0x3000742E: test ah, 1 */
   6831     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6832     _cf = 0;
   6833     _flag_k = FK_NARROW(FK_TEST, 24);
   6834     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007431: fstp st(0) */
   6835     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007433: je 0x30007650 */
   6836 L_30007439:
   6837     goto L_30007518; /* 0x30007439: jmp 0x30007518 */
   6838 L_3000743E:
   6839     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3000743E: fld dword ptr [ebp - 0xc] */
   6840     eax = MEM32(ebp + (-0x4)); /* 0x30007441: mov eax, dword ptr [ebp - 4] */
   6841     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x30007444: fmul dword ptr [ebp + 8] */
   6842     MEM32(ebp + (-0x24)) = edi; /* 0x30007447: mov dword ptr [ebp - 0x24], edi */
   6843     MEM32(ebp + (-0x20)) = ebx; /* 0x3000744A: mov dword ptr [ebp - 0x20], ebx */
   6844     MEM32(ebp + (-0x1C)) = eax; /* 0x3000744D: mov dword ptr [ebp - 0x1c], eax */
   6845     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x30007450: fstp dword ptr [ebp - 0x24] */
   6846     eax = MEM32(ebp + (-0x24)); /* 0x30007453: mov eax, dword ptr [ebp - 0x24] */
   6847     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x30007456: fld dword ptr [ebp - 0x20] */
   6848     MEM32(ebp + (-0xD0)) = eax; /* 0x30007459: mov dword ptr [ebp - 0xd0], eax */
   6849     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000745F: fmul dword ptr [ebp + 8] */
   6850     MEM32(ebp + (-0xC4)) = ecx; /* 0x30007462: mov dword ptr [ebp - 0xc4], ecx */
   6851     ecx = ebp + (-0xD0); /* 0x30007468: lea ecx, [ebp - 0xd0] */
   6852     PUSH32(esp, ecx); /* 0x3000746E: push ecx */
   6853     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3000746F: fstp dword ptr [ebp - 0x20] */
   6854     eax = MEM32(ebp + (-0x20)); /* 0x30007472: mov eax, dword ptr [ebp - 0x20] */
   6855     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x30007475: fld dword ptr [ebp - 0x1c] */
   6856     MEM32(ebp + (-0xCC)) = eax; /* 0x30007478: mov dword ptr [ebp - 0xcc], eax */
   6857     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3000747E: fmul dword ptr [ebp + 8] */
   6858     ecx = ebp + (-0xC4); /* 0x30007481: lea ecx, [ebp - 0xc4] */
   6859     MEM32(ebp + (-0xC0)) = edx; /* 0x30007487: mov dword ptr [ebp - 0xc0], edx */
   6860     MEM32(ebp + (-0xBC)) = esi; /* 0x3000748D: mov dword ptr [ebp - 0xbc], esi */
   6861     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007493: fstp dword ptr [ebp - 0x1c] */
   6862     eax = MEM32(ebp + (-0x1C)); /* 0x30007496: mov eax, dword ptr [ebp - 0x1c] */
   6863     MEM32(ebp + (-0xC8)) = eax; /* 0x30007499: mov dword ptr [ebp - 0xc8], eax */
   6864     RECOMP_ICALL(MEM32(0x300190C4)); /* 0x3000749F: call dword ptr [0x300190c4] */
   6865     RECOMP_FLAGS_IN();
   6866     edx = MEM32(eax); /* 0x300074A5: mov edx, dword ptr [eax] */
   6867     ecx = MEM32(eax + 0x4); /* 0x300074A7: mov ecx, dword ptr [eax + 4] */
   6868     MEM32(ebp + (-0xA0)) = edx; /* 0x300074AA: mov dword ptr [ebp - 0xa0], edx */
   6869     edx = MEM32(eax + 0x8); /* 0x300074B0: mov edx, dword ptr [eax + 8] */
   6870     eax = ebp + (-0x48); /* 0x300074B3: lea eax, [ebp - 0x48] */
   6871     MEM32(ebp + (-0x9C)) = ecx; /* 0x300074B6: mov dword ptr [ebp - 0x9c], ecx */
   6872     PUSH32(esp, eax); /* 0x300074BC: push eax */
   6873     ecx = ebp + (-0xA0); /* 0x300074BD: lea ecx, [ebp - 0xa0] */
   6874     MEM32(ebp + (-0x98)) = edx; /* 0x300074C3: mov dword ptr [ebp - 0x98], edx */
   6875     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x300074C9: call dword ptr [0x300190bc] */
   6876     RECOMP_FLAGS_IN();
   6877     ecx = MEM32(eax); /* 0x300074CF: mov ecx, dword ptr [eax] */
   6878     edx = MEM32(eax + 0x4); /* 0x300074D1: mov edx, dword ptr [eax + 4] */
   6879     eax = MEM32(eax + 0x8); /* 0x300074D4: mov eax, dword ptr [eax + 8] */
   6880     MEM32(ebp + (-0x54)) = ecx; /* 0x300074D7: mov dword ptr [ebp - 0x54], ecx */
   6881     ecx = MEM32(ebp + 0xC); /* 0x300074DA: mov ecx, dword ptr [ebp + 0xc] */
   6882     fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x300074DD: fld dword ptr [ecx + 0x18] */
   6883     MEM32(ebp + (-0x4C)) = eax; /* 0x300074E0: mov dword ptr [ebp - 0x4c], eax */
   6884     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x300074E3: fld dword ptr [ebp - 0x4c] */
   6885     MEM32(ebp + (-0x50)) = edx; /* 0x300074E6: mov dword ptr [ebp - 0x50], edx */
   6886     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300074E9: fmul dword ptr [ebp - 0x4c] */
   6887     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300074EC: fld dword ptr [ebp - 0x50] */
   6888     _st[0] *= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300074EF: fmul dword ptr [ebp - 0x50] */
   6889     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074F2: faddp st(1) */
   6890     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300074F4: fld dword ptr [ebp - 0x54] */
   6891     _st[0] *= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x300074F7: fmul dword ptr [ebp - 0x54] */
   6892     { double _v = fp_pop(); _st[0] += _v; } /* 0x300074FA: faddp st(1) */
   6893     fp_push(_st[1]); /* 0x300074FC: fld st(1) */
   6894     _st[0] *= _st[2]; /* 0x300074FE: fmul st(2) */
   6895     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x30007500: fcompp  */
   6896     fp_pop(); fp_pop();
   6897     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007502: fnstsw ax */
   6898     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007504: fstp st(0) */
   6899     /* test HI8(eax), 1 */ /* 0x30007506: test ah, 1 */
   6900     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6901     _cf = 0;
   6902     _flag_k = FK_NARROW(FK_TEST, 24);
   6903     if (TEST_Z(_flag_a, _flag_b)) goto L_30007650; /* 0x30007509: je 0x30007650 */
   6904 L_3000750F:
   6905     edx = MEM32(ebp + (-0x14)); /* 0x3000750F: mov edx, dword ptr [ebp - 0x14] */
   6906     esi = MEM32(ebp + (-0x10)); /* 0x30007512: mov esi, dword ptr [ebp - 0x10] */
   6907     ecx = MEM32(ebp + (-0x18)); /* 0x30007515: mov ecx, dword ptr [ebp - 0x18] */
   6908 L_30007518:
   6909     eax = MEM32(ebp + (-0x5C)); /* 0x30007518: mov eax, dword ptr [ebp - 0x5c] */
   6910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6911     eax = eax + 1; /* 0x3000751B: inc eax */
   6912     _flag_k = FK_INC;
   6913     /* cmp eax, 3 */ /* 0x3000751C: cmp eax, 3 */
   6914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   6915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6916     _flag_k = FK_CMP;
   6917     MEM32(ebp + (-0x5C)) = eax; /* 0x3000751F: mov dword ptr [ebp - 0x5c], eax */
   6918     RECOMP_BACKEDGE();
   6919     if (CMP_LE(_flag_a, _flag_b)) goto L_30007231; /* 0x30007522: jle 0x30007231 */
   6920 L_30007528:
   6921     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x30007528: fld dword ptr [ebp - 0x28] */
   6922     edi = 1; /* 0x3000752B: mov edi, 1 */
   6923     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007530: fmul dword ptr [ebp - 0x28] */
   6924     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x30007533: fld dword ptr [ebp - 0x2c] */
   6925     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007536: fmul dword ptr [ebp - 0x2c] */
   6926     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007539: faddp st(1) */
   6927     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3000753B: fld dword ptr [ebp - 0x30] */
   6928     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3000753E: fmul dword ptr [ebp - 0x30] */
   6929     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007541: faddp st(1) */
   6930     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30007543: fstp dword ptr [ebp + 0xc] */
   6931     goto L_30007551; /* 0x30007546: jmp 0x30007551 */
   6932 L_30007548:
   6933     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   6934     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   6935     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   6936 L_30007551:
   6937     eax = edi; /* 0x30007551: mov eax, edi */
   6938     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6939     eax = eax - 1; /* 0x30007553: dec eax */
   6940     _flag_k = FK_DEC;
   6941     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   6942 L_30007556:
   6943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6944     eax = eax - 1; /* 0x30007556: dec eax */
   6945     _flag_k = FK_DEC;
   6946     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   6947 L_30007559:
   6948     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6949     eax = eax - 1; /* 0x30007559: dec eax */
   6950     _flag_k = FK_DEC;
   6951     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   6952 L_3000755C:
   6953     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   6954     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   6955 L_30007561:
   6956     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   6957     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   6958 L_30007569:
   6959     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   6960 L_3000756F:
   6961     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   6962     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   6963     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   6964     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   6965     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   6966     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   6967 L_30007580:
   6968     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   6969     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   6970     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   6971     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   6972     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   6973     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   6974     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   6975     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   6976     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   6977     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   6978     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   6979     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   6980     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   6981     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   6982     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   6983     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   6984     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   6985     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   6986     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   6987     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   6988     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   6989     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   6990     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   6991     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   6992     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   6993     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   6994     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   6995     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   6996     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   6997     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   6998     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   6999     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   7000     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   7001     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   7002     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   7003     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   7004     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   7005     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   7006     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   7007     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   7008     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   7009     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   7010     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   7011     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   7012     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   7013     RECOMP_FLAGS_IN();
   7014     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   7015     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   7016     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   7017     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   7018     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   7019     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   7020     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   7021     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   7022     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   7023     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   7024     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   7025     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   7026     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   7027     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   7028     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   7029     fp_pop();
   7030     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   7031     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   7032     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7033     _cf = 0;
   7034     _flag_k = FK_NARROW(FK_TEST, 24);
   7035     RECOMP_BACKEDGE();
   7036     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   7037 L_30007646:
   7038     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7039     edi = edi + 1; /* 0x30007646: inc edi */
   7040     _flag_k = FK_INC;
   7041     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   7042     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   7043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7044     _flag_k = FK_CMP;
   7045     RECOMP_BACKEDGE();
   7046     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   7047 L_30007650:
   7048     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   7049     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   7050     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   7051     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   7052     esp = ebp; /* 0x30007655: mov esp, ebp */
   7053     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   7054     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   7055     RECOMP_REGS_OUT();
   7056 }
   7057 
   7058 void sub_30007548(void) {
   7059     int _fpu_cmp = 0;
   7060     uint32_t _cf = 0;
   7061     int _df = 1;
   7062     uint32_t _flag_k = FK_NONE;
   7063     uint32_t _flag_a = 0, _flag_b = 0;
   7064     uint32_t _itail_tgt = 0;
   7065     RECOMP_REGS_LOCALS
   7066     RECOMP_ENTER(0x30007548u);
   7067 
   7068     goto L_30007548;
   7069 L_300071E8:
   7070     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   7071     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   7072     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7073     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   7074     _cf = 0;
   7075     _flag_k = FK_NARROW(FK_TEST, 24);
   7076     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   7077     esp = ebp; /* 0x300071ED: mov esp, ebp */
   7078     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   7079     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   7080 L_30007548:
   7081     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   7082     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   7083     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   7084     eax = edi; /* 0x30007551: mov eax, edi */
   7085     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7086     eax = eax - 1; /* 0x30007553: dec eax */
   7087     _flag_k = FK_DEC;
   7088     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   7089 L_30007556:
   7090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7091     eax = eax - 1; /* 0x30007556: dec eax */
   7092     _flag_k = FK_DEC;
   7093     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   7094 L_30007559:
   7095     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7096     eax = eax - 1; /* 0x30007559: dec eax */
   7097     _flag_k = FK_DEC;
   7098     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   7099 L_3000755C:
   7100     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   7101     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   7102 L_30007561:
   7103     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   7104     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   7105 L_30007569:
   7106     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   7107 L_3000756F:
   7108     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   7109     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   7110     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   7111     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   7112     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   7113     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   7114 L_30007580:
   7115     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   7116     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   7117     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   7118     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   7119     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   7120     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   7121     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   7122     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   7123     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   7124     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   7125     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   7126     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   7127     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   7128     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   7129     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   7130     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   7131     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   7132     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   7133     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   7134     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   7135     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   7136     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   7137     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   7138     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   7139     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   7140     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   7141     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   7142     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   7143     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   7144     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   7145     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   7146     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   7147     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   7148     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   7149     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   7150     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   7151     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   7152     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   7153     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   7154     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   7155     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   7156     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   7157     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   7158     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   7159     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   7160     RECOMP_FLAGS_IN();
   7161     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   7162     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   7163     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   7164     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   7165     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   7166     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   7167     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   7168     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   7169     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   7170     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   7171     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   7172     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   7173     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   7174     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   7175     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   7176     fp_pop();
   7177     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   7178     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   7179     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7180     _cf = 0;
   7181     _flag_k = FK_NARROW(FK_TEST, 24);
   7182     RECOMP_BACKEDGE();
   7183     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   7184 L_30007646:
   7185     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7186     edi = edi + 1; /* 0x30007646: inc edi */
   7187     _flag_k = FK_INC;
   7188     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   7189     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   7190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7191     _flag_k = FK_CMP;
   7192     RECOMP_BACKEDGE();
   7193     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   7194 L_30007650:
   7195     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   7196     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   7197     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   7198     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   7199     esp = ebp; /* 0x30007655: mov esp, ebp */
   7200     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   7201     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   7202     RECOMP_REGS_OUT();
   7203 }
   7204 
   7205 void sub_30007551(void) {
   7206     int _fpu_cmp = 0;
   7207     uint32_t _cf = 0;
   7208     int _df = 1;
   7209     uint32_t _flag_k = FK_NONE;
   7210     uint32_t _flag_a = 0, _flag_b = 0;
   7211     uint32_t _itail_tgt = 0;
   7212     RECOMP_REGS_LOCALS
   7213     RECOMP_ENTER(0x30007551u);
   7214 
   7215     goto L_30007551;
   7216 L_300071E8:
   7217     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   7218     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   7219     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7220     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   7221     _cf = 0;
   7222     _flag_k = FK_NARROW(FK_TEST, 24);
   7223     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   7224     esp = ebp; /* 0x300071ED: mov esp, ebp */
   7225     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   7226     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   7227 L_30007548:
   7228     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   7229     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   7230     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   7231 L_30007551:
   7232     eax = edi; /* 0x30007551: mov eax, edi */
   7233     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7234     eax = eax - 1; /* 0x30007553: dec eax */
   7235     _flag_k = FK_DEC;
   7236     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   7237 L_30007556:
   7238     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7239     eax = eax - 1; /* 0x30007556: dec eax */
   7240     _flag_k = FK_DEC;
   7241     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   7242 L_30007559:
   7243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7244     eax = eax - 1; /* 0x30007559: dec eax */
   7245     _flag_k = FK_DEC;
   7246     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   7247 L_3000755C:
   7248     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   7249     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   7250 L_30007561:
   7251     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   7252     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   7253 L_30007569:
   7254     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   7255 L_3000756F:
   7256     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   7257     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   7258     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   7259     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   7260     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   7261     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   7262 L_30007580:
   7263     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   7264     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   7265     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   7266     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   7267     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   7268     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   7269     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   7270     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   7271     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   7272     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   7273     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   7274     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   7275     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   7276     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   7277     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   7278     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   7279     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   7280     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   7281     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   7282     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   7283     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   7284     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   7285     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   7286     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   7287     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   7288     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   7289     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   7290     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   7291     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   7292     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   7293     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   7294     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   7295     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   7296     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   7297     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   7298     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   7299     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   7300     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   7301     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   7302     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   7303     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   7304     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   7305     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   7306     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   7307     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   7308     RECOMP_FLAGS_IN();
   7309     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   7310     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   7311     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   7312     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   7313     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   7314     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   7315     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   7316     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   7317     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   7318     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   7319     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   7320     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   7321     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   7322     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   7323     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   7324     fp_pop();
   7325     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   7326     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   7327     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7328     _cf = 0;
   7329     _flag_k = FK_NARROW(FK_TEST, 24);
   7330     RECOMP_BACKEDGE();
   7331     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   7332 L_30007646:
   7333     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7334     edi = edi + 1; /* 0x30007646: inc edi */
   7335     _flag_k = FK_INC;
   7336     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   7337     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   7338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7339     _flag_k = FK_CMP;
   7340     RECOMP_BACKEDGE();
   7341     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   7342 L_30007650:
   7343     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   7344     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   7345     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   7346     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   7347     esp = ebp; /* 0x30007655: mov esp, ebp */
   7348     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   7349     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   7350     RECOMP_REGS_OUT();
   7351 }
   7352 
   7353 void sub_3000756F(void) {
   7354     int _fpu_cmp = 0;
   7355     uint32_t _cf = 0;
   7356     int _df = 1;
   7357     uint32_t _flag_k = FK_NONE;
   7358     uint32_t _flag_a = 0, _flag_b = 0;
   7359     uint32_t _itail_tgt = 0;
   7360     RECOMP_REGS_LOCALS
   7361     RECOMP_ENTER(0x3000756Fu);
   7362 
   7363     goto L_3000756F;
   7364 L_300071E8:
   7365     edi = POP32_VAL(esp); /* 0x300071E8: pop edi */
   7366     esi = POP32_VAL(esp); /* 0x300071E9: pop esi */
   7367     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7368     SET_LO8(eax, 0); /* 0x300071EA: xor al, al */
   7369     _cf = 0;
   7370     _flag_k = FK_NARROW(FK_TEST, 24);
   7371     ebx = POP32_VAL(esp); /* 0x300071EC: pop ebx */
   7372     esp = ebp; /* 0x300071ED: mov esp, ebp */
   7373     ebp = POP32_VAL(esp); /* 0x300071EF: pop ebp */
   7374     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300071F0: ret  */
   7375 L_30007548:
   7376     edx = MEM32(ebp + (-0x14)); /* 0x30007548: mov edx, dword ptr [ebp - 0x14] */
   7377     esi = MEM32(ebp + (-0x10)); /* 0x3000754B: mov esi, dword ptr [ebp - 0x10] */
   7378     ecx = MEM32(ebp + (-0x18)); /* 0x3000754E: mov ecx, dword ptr [ebp - 0x18] */
   7379     eax = edi; /* 0x30007551: mov eax, edi */
   7380     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7381     eax = eax - 1; /* 0x30007553: dec eax */
   7382     _flag_k = FK_DEC;
   7383     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007569; /* 0x30007554: je 0x30007569 */
   7384 L_30007556:
   7385     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7386     eax = eax - 1; /* 0x30007556: dec eax */
   7387     _flag_k = FK_DEC;
   7388     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_30007561; /* 0x30007557: je 0x30007561 */
   7389 L_30007559:
   7390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7391     eax = eax - 1; /* 0x30007559: dec eax */
   7392     _flag_k = FK_DEC;
   7393     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30007580; /* 0x3000755A: jne 0x30007580 */
   7394 L_3000755C:
   7395     eax = MEM32(ebp + (-0x58)); /* 0x3000755C: mov eax, dword ptr [ebp - 0x58] */
   7396     goto L_3000756F; /* 0x3000755F: jmp 0x3000756f */
   7397 L_30007561:
   7398     eax = MEM32(ebp + (-0x90)); /* 0x30007561: mov eax, dword ptr [ebp - 0x90] */
   7399     goto L_3000756F; /* 0x30007567: jmp 0x3000756f */
   7400 L_30007569:
   7401     eax = MEM32(ebp + (-0x94)); /* 0x30007569: mov eax, dword ptr [ebp - 0x94] */
   7402 L_3000756F:
   7403     ecx = MEM32(eax); /* 0x3000756F: mov ecx, dword ptr [eax] */
   7404     edx = MEM32(eax + 0x4); /* 0x30007571: mov edx, dword ptr [eax + 4] */
   7405     esi = MEM32(eax + 0x8); /* 0x30007574: mov esi, dword ptr [eax + 8] */
   7406     MEM32(ebp + (-0x18)) = ecx; /* 0x30007577: mov dword ptr [ebp - 0x18], ecx */
   7407     MEM32(ebp + (-0x14)) = edx; /* 0x3000757A: mov dword ptr [ebp - 0x14], edx */
   7408     MEM32(ebp + (-0x10)) = esi; /* 0x3000757D: mov dword ptr [ebp - 0x10], esi */
   7409 L_30007580:
   7410     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x30007580: fld dword ptr [ebp - 0x78] */
   7411     eax = MEM32(ebp + (-0x30)); /* 0x30007583: mov eax, dword ptr [ebp - 0x30] */
   7412     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x30007586: fmul dword ptr [ebp - 0x28] */
   7413     MEM32(ebp + (-0x54)) = eax; /* 0x30007589: mov dword ptr [ebp - 0x54], eax */
   7414     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3000758C: fld dword ptr [ebp - 0x7c] */
   7415     eax = MEM32(ebp + (-0x2C)); /* 0x3000758F: mov eax, dword ptr [ebp - 0x2c] */
   7416     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x30007592: fmul dword ptr [ebp - 0x2c] */
   7417     MEM32(ebp + (-0x50)) = eax; /* 0x30007595: mov dword ptr [ebp - 0x50], eax */
   7418     eax = MEM32(ebp + (-0x28)); /* 0x30007598: mov eax, dword ptr [ebp - 0x28] */
   7419     MEM32(ebp + (-0x4C)) = eax; /* 0x3000759B: mov dword ptr [ebp - 0x4c], eax */
   7420     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000759E: faddp st(1) */
   7421     eax = MEM32(ebp + (-0x40)); /* 0x300075A0: mov eax, dword ptr [ebp - 0x40] */
   7422     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075A3: fld dword ptr [ebp - 0x30] */
   7423     MEM32(ebp + (-0x24)) = ecx; /* 0x300075A6: mov dword ptr [ebp - 0x24], ecx */
   7424     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x300075A9: fmul dword ptr [ebp - 0x80] */
   7425     ecx = MEM32(ebp + (-0x48)); /* 0x300075AC: mov ecx, dword ptr [ebp - 0x48] */
   7426     MEM32(ebp + (-0x20)) = edx; /* 0x300075AF: mov dword ptr [ebp - 0x20], edx */
   7427     edx = MEM32(ebp + (-0x44)); /* 0x300075B2: mov edx, dword ptr [ebp - 0x44] */
   7428     { double _v = fp_pop(); _st[0] += _v; } /* 0x300075B5: faddp st(1) */
   7429     MEM32(ebp + (-0x1C)) = esi; /* 0x300075B7: mov dword ptr [ebp - 0x1c], esi */
   7430     MEM32(ebp + (-0xA0)) = ecx; /* 0x300075BA: mov dword ptr [ebp - 0xa0], ecx */
   7431     ecx = ebp + (-0x18); /* 0x300075C0: lea ecx, [ebp - 0x18] */
   7432     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x300075C3: fdiv dword ptr [ebp + 0xc] */
   7433     PUSH32(esp, ecx); /* 0x300075C6: push ecx */
   7434     ecx = ebp + (-0xA0); /* 0x300075C7: lea ecx, [ebp - 0xa0] */
   7435     MEM32(ebp + (-0x9C)) = edx; /* 0x300075CD: mov dword ptr [ebp - 0x9c], edx */
   7436     MEM32(ebp + (-0x98)) = eax; /* 0x300075D3: mov dword ptr [ebp - 0x98], eax */
   7437     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x300075D9: fld dword ptr [ebp - 0x30] */
   7438     _st[0] *= _st[1]; /* 0x300075DC: fmul st(1) */
   7439     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x300075DE: fstp dword ptr [ebp - 0x54] */
   7440     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x300075E1: fld dword ptr [ebp - 0x50] */
   7441     _st[0] *= _st[1]; /* 0x300075E4: fmul st(1) */
   7442     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x300075E6: fstp dword ptr [ebp - 0x50] */
   7443     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x300075E9: fmul dword ptr [ebp - 0x4c] */
   7444     fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x300075EC: fld dword ptr [ebp - 0x54] */
   7445     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x300075EF: fadd dword ptr [ebp - 0x18] */
   7446     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x300075F2: fstp dword ptr [ebp - 0x24] */
   7447     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300075F5: fld dword ptr [ebp - 0x20] */
   7448     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x300075F8: fadd dword ptr [ebp - 0x50] */
   7449     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300075FB: fstp dword ptr [ebp - 0x20] */
   7450     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x300075FE: fld dword ptr [ebp - 0x1c] */
   7451     _st[0] += _st[1]; /* 0x30007601: fadd st(1) */
   7452     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x30007603: fstp dword ptr [ebp - 0x1c] */
   7453     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30007606: fstp st(0) */
   7454     RECOMP_ICALL(MEM32(0x300190BC)); /* 0x30007608: call dword ptr [0x300190bc] */
   7455     RECOMP_FLAGS_IN();
   7456     edx = MEM32(eax); /* 0x3000760E: mov edx, dword ptr [eax] */
   7457     ecx = MEM32(eax + 0x4); /* 0x30007610: mov ecx, dword ptr [eax + 4] */
   7458     MEM32(ebp + (-0x68)) = edx; /* 0x30007613: mov dword ptr [ebp - 0x68], edx */
   7459     edx = MEM32(eax + 0x8); /* 0x30007616: mov edx, dword ptr [eax + 8] */
   7460     MEM32(ebp + (-0x60)) = edx; /* 0x30007619: mov dword ptr [ebp - 0x60], edx */
   7461     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3000761C: fld dword ptr [ebp - 0x60] */
   7462     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3000761F: fmul dword ptr [ebp - 0x1c] */
   7463     MEM32(ebp + (-0x64)) = ecx; /* 0x30007622: mov dword ptr [ebp - 0x64], ecx */
   7464     fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x30007625: fld dword ptr [ebp - 0x64] */
   7465     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x30007628: fmul dword ptr [ebp - 0x20] */
   7466     { double _v = fp_pop(); _st[0] += _v; } /* 0x3000762B: faddp st(1) */
   7467     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3000762D: fld dword ptr [ebp - 0x24] */
   7468     _st[0] *= (double)*(float*)ADDR(ebp + (-0x68)); /* 0x30007630: fmul dword ptr [ebp - 0x68] */
   7469     { double _v = fp_pop(); _st[0] += _v; } /* 0x30007633: faddp st(1) */
   7470     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001919C)); /* 0x30007635: fcomp dword ptr [0x3001919c] */
   7471     fp_pop();
   7472     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000763B: fnstsw ax */
   7473     /* test HI8(eax), 0x41u */ /* 0x3000763D: test ah, 0x41 */
   7474     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7475     _cf = 0;
   7476     _flag_k = FK_NARROW(FK_TEST, 24);
   7477     RECOMP_BACKEDGE();
   7478     if (TEST_Z(_flag_a, _flag_b)) goto L_300071E8; /* 0x30007640: je 0x300071e8 */
   7479 L_30007646:
   7480     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7481     edi = edi + 1; /* 0x30007646: inc edi */
   7482     _flag_k = FK_INC;
   7483     /* cmp edi, 3 */ /* 0x30007647: cmp edi, 3 */
   7484     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   7485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7486     _flag_k = FK_CMP;
   7487     RECOMP_BACKEDGE();
   7488     if (CMP_LE(_flag_a, _flag_b)) goto L_30007548; /* 0x3000764A: jle 0x30007548 */
   7489 L_30007650:
   7490     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   7491     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   7492     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   7493     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   7494     esp = ebp; /* 0x30007655: mov esp, ebp */
   7495     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   7496     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   7497     RECOMP_REGS_OUT();
   7498 }
   7499 
   7500 void sub_30007650(void) {
   7501     int _fpu_cmp = 0;
   7502     uint32_t _cf = 0;
   7503     int _df = 1;
   7504     uint32_t _flag_k = FK_NONE;
   7505     uint32_t _flag_a = 0, _flag_b = 0;
   7506     uint32_t _itail_tgt = 0;
   7507     RECOMP_REGS_LOCALS
   7508     RECOMP_ENTER(0x30007650u);
   7509 
   7510 L_30007650:
   7511     edi = POP32_VAL(esp); /* 0x30007650: pop edi */
   7512     esi = POP32_VAL(esp); /* 0x30007651: pop esi */
   7513     SET_LO8(eax, 1); /* 0x30007652: mov al, 1 */
   7514     ebx = POP32_VAL(esp); /* 0x30007654: pop ebx */
   7515     esp = ebp; /* 0x30007655: mov esp, ebp */
   7516     ebp = POP32_VAL(esp); /* 0x30007657: pop ebp */
   7517     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007658: ret  */
   7518     RECOMP_REGS_OUT();
   7519 }
   7520 
   7521 void sub_30007660(void) {
   7522     int _fpu_cmp = 0;
   7523     uint32_t _cf = 0;
   7524     int _df = 1;
   7525     uint32_t _flag_k = FK_NONE;
   7526     uint32_t _flag_a = 0, _flag_b = 0;
   7527     uint32_t _itail_tgt = 0;
   7528     RECOMP_REGS_LOCALS
   7529     RECOMP_ENTER(0x30007660u);
   7530 
   7531 L_30007660:
   7532     RECOMP_ICALL(0x30007670u); /* 0x30007660: call 0x30007670 */ /* not lifted */
   7533     RECOMP_FLAGS_IN();
   7534     goto L_30007680; /* 0x30007665: jmp 0x30007680 */
   7535 L_30007680:
   7536     PUSH32(esp, 0x30007690u); /* 0x30007680: push 0x30007690 */
   7537     RECOMP_ICALL(0x300180ECu); /* 0x30007685: call 0x300180ec */ /* not lifted */
   7538     RECOMP_FLAGS_IN();
   7539     ecx = POP32_VAL(esp); /* 0x3000768A: pop ecx */
   7540     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000768B: ret  */
   7541     RECOMP_REGS_OUT();
   7542 }
   7543 
   7544 void sub_30007670(void) {
   7545     int _fpu_cmp = 0;
   7546     uint32_t _cf = 0;
   7547     int _df = 1;
   7548     uint32_t _flag_k = FK_NONE;
   7549     uint32_t _flag_a = 0, _flag_b = 0;
   7550     uint32_t _itail_tgt = 0;
   7551     RECOMP_REGS_LOCALS
   7552     RECOMP_ENTER(0x30007670u);
   7553 
   7554 L_30007670:
   7555     ecx = 0x3001E3D1u; /* 0x30007670: mov ecx, 0x3001e3d1 */
   7556 L_30007675:
   7557     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
   7558     { RECOMP_REGS_OUT(); return; } /* end of function */
   7559   _ljump:
   7560     switch (_itail_tgt) {
   7561       case 0x30007670u: goto L_30007670;
   7562       case 0x30007675u: goto L_30007675;
   7563       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7564     }
   7565     RECOMP_REGS_OUT();
   7566 }
   7567 
   7568 void sub_30007680(void) {
   7569     int _fpu_cmp = 0;
   7570     uint32_t _cf = 0;
   7571     int _df = 1;
   7572     uint32_t _flag_k = FK_NONE;
   7573     uint32_t _flag_a = 0, _flag_b = 0;
   7574     uint32_t _itail_tgt = 0;
   7575     RECOMP_REGS_LOCALS
   7576     RECOMP_ENTER(0x30007680u);
   7577 
   7578 L_30007680:
   7579     PUSH32(esp, 0x30007690u); /* 0x30007680: push 0x30007690 */
   7580     RECOMP_ICALL(0x300180ECu); /* 0x30007685: call 0x300180ec */ /* not lifted */
   7581     RECOMP_FLAGS_IN();
   7582     ecx = POP32_VAL(esp); /* 0x3000768A: pop ecx */
   7583     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000768B: ret  */
   7584     RECOMP_REGS_OUT();
   7585 }
   7586 
   7587 void sub_30007690(void) {
   7588     int _fpu_cmp = 0;
   7589     uint32_t _cf = 0;
   7590     int _df = 1;
   7591     uint32_t _flag_k = FK_NONE;
   7592     uint32_t _flag_a = 0, _flag_b = 0;
   7593     uint32_t _itail_tgt = 0;
   7594     RECOMP_REGS_LOCALS
   7595     RECOMP_ENTER(0x30007690u);
   7596 
   7597 L_30007690:
   7598     ecx = 0x3001E3D1u; /* 0x30007690: mov ecx, 0x3001e3d1 */
   7599 L_30007695:
   7600     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
   7601     { RECOMP_REGS_OUT(); return; } /* end of function */
   7602   _ljump:
   7603     switch (_itail_tgt) {
   7604       case 0x30007690u: goto L_30007690;
   7605       case 0x30007695u: goto L_30007695;
   7606       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7607     }
   7608     RECOMP_REGS_OUT();
   7609 }
   7610 
   7611 void sub_300076A0(void) {
   7612     int _fpu_cmp = 0;
   7613     uint32_t _cf = 0;
   7614     int _df = 1;
   7615     uint32_t _flag_k = FK_NONE;
   7616     uint32_t _flag_a = 0, _flag_b = 0;
   7617     uint32_t _itail_tgt = 0;
   7618     RECOMP_REGS_LOCALS
   7619     RECOMP_ENTER(0x300076A0u);
   7620 
   7621 L_300076A0:
   7622     RECOMP_ICALL(0x300076B0u); /* 0x300076A0: call 0x300076b0 */ /* not lifted */
   7623     RECOMP_FLAGS_IN();
   7624     goto L_300076C0; /* 0x300076A5: jmp 0x300076c0 */
   7625 L_300076C0:
   7626     PUSH32(esp, 0x300076D0u); /* 0x300076C0: push 0x300076d0 */
   7627     RECOMP_ICALL(0x300180ECu); /* 0x300076C5: call 0x300180ec */ /* not lifted */
   7628     RECOMP_FLAGS_IN();
   7629     ecx = POP32_VAL(esp); /* 0x300076CA: pop ecx */
   7630     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300076CB: ret  */
   7631     RECOMP_REGS_OUT();
   7632 }
   7633 
   7634 void sub_300076B0(void) {
   7635     int _fpu_cmp = 0;
   7636     uint32_t _cf = 0;
   7637     int _df = 1;
   7638     uint32_t _flag_k = FK_NONE;
   7639     uint32_t _flag_a = 0, _flag_b = 0;
   7640     uint32_t _itail_tgt = 0;
   7641     RECOMP_REGS_LOCALS
   7642     RECOMP_ENTER(0x300076B0u);
   7643 
   7644 L_300076B0:
   7645     ecx = 0x3001E3D0u; /* 0x300076B0: mov ecx, 0x3001e3d0 */
   7646 L_300076B5:
   7647     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
   7648     { RECOMP_REGS_OUT(); return; } /* end of function */
   7649   _ljump:
   7650     switch (_itail_tgt) {
   7651       case 0x300076B0u: goto L_300076B0;
   7652       case 0x300076B5u: goto L_300076B5;
   7653       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7654     }
   7655     RECOMP_REGS_OUT();
   7656 }
   7657 
   7658 void sub_300076C0(void) {
   7659     int _fpu_cmp = 0;
   7660     uint32_t _cf = 0;
   7661     int _df = 1;
   7662     uint32_t _flag_k = FK_NONE;
   7663     uint32_t _flag_a = 0, _flag_b = 0;
   7664     uint32_t _itail_tgt = 0;
   7665     RECOMP_REGS_LOCALS
   7666     RECOMP_ENTER(0x300076C0u);
   7667 
   7668 L_300076C0:
   7669     PUSH32(esp, 0x300076D0u); /* 0x300076C0: push 0x300076d0 */
   7670     RECOMP_ICALL(0x300180ECu); /* 0x300076C5: call 0x300180ec */ /* not lifted */
   7671     RECOMP_FLAGS_IN();
   7672     ecx = POP32_VAL(esp); /* 0x300076CA: pop ecx */
   7673     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300076CB: ret  */
   7674     RECOMP_REGS_OUT();
   7675 }
   7676 
   7677 void sub_300076D0(void) {
   7678     int _fpu_cmp = 0;
   7679     uint32_t _cf = 0;
   7680     int _df = 1;
   7681     uint32_t _flag_k = FK_NONE;
   7682     uint32_t _flag_a = 0, _flag_b = 0;
   7683     uint32_t _itail_tgt = 0;
   7684     RECOMP_REGS_LOCALS
   7685     RECOMP_ENTER(0x300076D0u);
   7686 
   7687 L_300076D0:
   7688     ecx = 0x3001E3D0u; /* 0x300076D0: mov ecx, 0x3001e3d0 */
   7689 L_300076D5:
   7690     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
   7691     { RECOMP_REGS_OUT(); return; } /* end of function */
   7692   _ljump:
   7693     switch (_itail_tgt) {
   7694       case 0x300076D0u: goto L_300076D0;
   7695       case 0x300076D5u: goto L_300076D5;
   7696       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7697     }
   7698     RECOMP_REGS_OUT();
   7699 }
   7700 
   7701 void sub_300076E0(void) {
   7702     int _fpu_cmp = 0;
   7703     uint32_t _cf = 0;
   7704     int _df = 1;
   7705     uint32_t _flag_k = FK_NONE;
   7706     uint32_t _flag_a = 0, _flag_b = 0;
   7707     uint32_t _itail_tgt = 0;
   7708     RECOMP_REGS_LOCALS
   7709     RECOMP_ENTER(0x300076E0u);
   7710 
   7711 L_300076E0:
   7712     PUSH32(esp, esi); /* 0x300076E0: push esi */
   7713     esi = ecx; /* 0x300076E1: mov esi, ecx */
   7714     PUSH32(esp, 2); /* 0x300076E3: push 2 */
   7715     RECOMP_ICALL(0x30006420u); /* 0x300076E5: call 0x30006420 */ /* not lifted */
   7716     RECOMP_FLAGS_IN();
   7717     MEM32(esi + 0x18) = 0; /* 0x300076EA: mov dword ptr [esi + 0x18], 0 */
   7718     MEM32(esi) = 0x30019220u; /* 0x300076F1: mov dword ptr [esi], 0x30019220 */
   7719     eax = esi; /* 0x300076F7: mov eax, esi */
   7720     esi = POP32_VAL(esp); /* 0x300076F9: pop esi */
   7721     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300076FA: ret  */
   7722     RECOMP_REGS_OUT();
   7723 }
   7724 
   7725 void sub_30007700(void) {
   7726     int _fpu_cmp = 0;
   7727     uint32_t _cf = 0;
   7728     int _df = 1;
   7729     uint32_t _flag_k = FK_NONE;
   7730     uint32_t _flag_a = 0, _flag_b = 0;
   7731     uint32_t _itail_tgt = 0;
   7732     RECOMP_REGS_LOCALS
   7733     RECOMP_ENTER(0x30007700u);
   7734 
   7735 L_30007700:
   7736     PUSH32(esp, ebp); /* 0x30007700: push ebp */
   7737     ebp = esp; /* 0x30007701: mov ebp, esp */
   7738     PUSH32(esp, esi); /* 0x30007703: push esi */
   7739     esi = ecx; /* 0x30007704: mov esi, ecx */
   7740     PUSH32(esp, 2); /* 0x30007706: push 2 */
   7741     RECOMP_ICALL(0x30006420u); /* 0x30007708: call 0x30006420 */ /* not lifted */
   7742     RECOMP_FLAGS_IN();
   7743     eax = MEM32(ebp + 0x8); /* 0x3000770D: mov eax, dword ptr [ebp + 8] */
   7744     MEM32(esi + 0x18) = eax; /* 0x30007710: mov dword ptr [esi + 0x18], eax */
   7745     MEM32(esi) = 0x30019220u; /* 0x30007713: mov dword ptr [esi], 0x30019220 */
   7746     eax = esi; /* 0x30007719: mov eax, esi */
   7747     esi = POP32_VAL(esp); /* 0x3000771B: pop esi */
   7748     ebp = POP32_VAL(esp); /* 0x3000771C: pop ebp */
   7749     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000771D: ret 4 */
   7750     RECOMP_REGS_OUT();
   7751 }
   7752 
   7753 void sub_30007720(void) {
   7754     int _fpu_cmp = 0;
   7755     uint32_t _cf = 0;
   7756     int _df = 1;
   7757     uint32_t _flag_k = FK_NONE;
   7758     uint32_t _flag_a = 0, _flag_b = 0;
   7759     uint32_t _itail_tgt = 0;
   7760     RECOMP_REGS_LOCALS
   7761     RECOMP_ENTER(0x30007720u);
   7762 
   7763     goto L_30007720;
   7764 L_30006450:
   7765     MEM32(ecx) = 0x300191C0u; /* 0x30006450: mov dword ptr [ecx], 0x300191c0 */
   7766     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006456: ret  */
   7767 L_30007720:
   7768     MEM32(ecx) = 0x30019220u; /* 0x30007720: mov dword ptr [ecx], 0x30019220 */
   7769     RECOMP_BACKEDGE();
   7770     goto L_30006450; /* 0x30007726: jmp 0x30006450 */
   7771     { RECOMP_REGS_OUT(); return; } /* end of function */
   7772     RECOMP_REGS_OUT();
   7773 }
   7774 
   7775 void sub_30007730(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(0x30007730u);
   7784 
   7785 L_30007730:
   7786     fp_push(*(float*)&MEM32(0x3001E27C)); /* 0x30007730: fld dword ptr [0x3001e27c] */
   7787     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007736: ret  */
   7788     RECOMP_REGS_OUT();
   7789 }
   7790 
   7791 void sub_30007740(void) {
   7792     int _fpu_cmp = 0;
   7793     uint32_t _cf = 0;
   7794     int _df = 1;
   7795     uint32_t _flag_k = FK_NONE;
   7796     uint32_t _flag_a = 0, _flag_b = 0;
   7797     uint32_t _itail_tgt = 0;
   7798     RECOMP_REGS_LOCALS
   7799     RECOMP_ENTER(0x30007740u);
   7800 
   7801 L_30007740:
   7802     PUSH32(esp, ebp); /* 0x30007740: push ebp */
   7803     ebp = esp; /* 0x30007741: mov ebp, esp */
   7804     eax = MEM32(ebp + 0x8); /* 0x30007743: mov eax, dword ptr [ebp + 8] */
   7805     MEM32(0x3001E27C) = eax; /* 0x30007746: mov dword ptr [0x3001e27c], eax */
   7806     ebp = POP32_VAL(esp); /* 0x3000774B: pop ebp */
   7807     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000774C: ret  */
   7808     RECOMP_REGS_OUT();
   7809 }
   7810 
   7811 void sub_30007750(void) {
   7812     int _fpu_cmp = 0;
   7813     uint32_t _cf = 0;
   7814     int _df = 1;
   7815     uint32_t _flag_k = FK_NONE;
   7816     uint32_t _flag_a = 0, _flag_b = 0;
   7817     uint32_t _itail_tgt = 0;
   7818     RECOMP_REGS_LOCALS
   7819     RECOMP_ENTER(0x30007750u);
   7820 
   7821 L_30007750:
   7822     PUSH32(esp, ebp); /* 0x30007750: push ebp */
   7823     ebp = esp; /* 0x30007751: mov ebp, esp */
   7824     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x30007753: fld dword ptr [ebp + 0xc] */
   7825     _st[0] -= (double)*(float*)ADDR(0x3001E27C); /* 0x30007756: fsub dword ptr [0x3001e27c] */
   7826     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x3000775C: fcomp dword ptr [ebp + 8] */
   7827     fp_pop();
   7828     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000775F: fnstsw ax */
   7829     /* test HI8(eax), 0x41u */ /* 0x30007761: test ah, 0x41 */
   7830     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7831     _cf = 0;
   7832     _flag_k = FK_NARROW(FK_TEST, 24);
   7833     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000776B; /* 0x30007764: jne 0x3000776b */
   7834 L_30007766:
   7835     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7836     eax = eax | 0xFFFFFFFFu; /* 0x30007766: or eax, 0xffffffff */
   7837     _cf = 0;
   7838     _flag_k = FK_TEST;
   7839     ebp = POP32_VAL(esp); /* 0x30007769: pop ebp */
   7840     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000776A: ret  */
   7841 L_3000776B:
   7842     fp_push(*(float*)&MEM32(0x3001E27C)); /* 0x3000776B: fld dword ptr [0x3001e27c] */
   7843     _st[0] += (double)*(float*)ADDR(ebp + 0xC); /* 0x30007771: fadd dword ptr [ebp + 0xc] */
   7844     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x30007774: fcomp dword ptr [ebp + 8] */
   7845     fp_pop();
   7846     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30007777: fnstsw ax */
   7847     /* test HI8(eax), 1 */ /* 0x30007779: test ah, 1 */
   7848     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7849     _cf = 0;
   7850     _flag_k = FK_NARROW(FK_TEST, 24);
   7851     if (TEST_Z(_flag_a, _flag_b)) goto L_30007785; /* 0x3000777C: je 0x30007785 */
   7852 L_3000777E:
   7853     eax = 1; /* 0x3000777E: mov eax, 1 */
   7854     ebp = POP32_VAL(esp); /* 0x30007783: pop ebp */
   7855     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007784: ret  */
   7856 L_30007785:
   7857     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7858     eax = 0; /* 0x30007785: xor eax, eax */
   7859     _cf = 0;
   7860     _flag_k = FK_TEST;
   7861     ebp = POP32_VAL(esp); /* 0x30007787: pop ebp */
   7862     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007788: ret  */
   7863     RECOMP_REGS_OUT();
   7864 }
   7865 
   7866 void sub_30007790(void) {
   7867     int _fpu_cmp = 0;
   7868     uint32_t _cf = 0;
   7869     int _df = 1;
   7870     uint32_t _flag_k = FK_NONE;
   7871     uint32_t _flag_a = 0, _flag_b = 0;
   7872     uint32_t _itail_tgt = 0;
   7873     RECOMP_REGS_LOCALS
   7874     RECOMP_ENTER(0x30007790u);
   7875 
   7876 L_30007790:
   7877     PUSH32(esp, ebp); /* 0x30007790: push ebp */
   7878     ebp = esp; /* 0x30007791: mov ebp, esp */
   7879     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x30007793: fld dword ptr [ebp + 8] */
   7880     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3001E27C)); /* 0x30007796: fcomp dword ptr [0x3001e27c] */
   7881     fp_pop();
   7882     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000779C: fnstsw ax */
   7883     /* test HI8(eax), 0x41u */ /* 0x3000779E: test ah, 0x41 */
   7884     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7885     _cf = 0;
   7886     _flag_k = FK_NARROW(FK_TEST, 24);
   7887     if (TEST_NZ(_flag_a, _flag_b)) goto L_300077AA; /* 0x300077A1: jne 0x300077aa */
   7888 L_300077A3:
   7889     eax = 1; /* 0x300077A3: mov eax, 1 */
   7890     ebp = POP32_VAL(esp); /* 0x300077A8: pop ebp */
   7891     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300077A9: ret  */
   7892 L_300077AA:
   7893     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7894     eax = 0; /* 0x300077AA: xor eax, eax */
   7895     _cf = 0;
   7896     _flag_k = FK_TEST;
   7897     ebp = POP32_VAL(esp); /* 0x300077AC: pop ebp */
   7898     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300077AD: ret  */
   7899     RECOMP_REGS_OUT();
   7900 }
   7901 
   7902 void sub_300077B0(void) {
   7903     int _fpu_cmp = 0;
   7904     uint32_t _cf = 0;
   7905     int _df = 1;
   7906     uint32_t _flag_k = FK_NONE;
   7907     uint32_t _flag_a = 0, _flag_b = 0;
   7908     uint32_t _itail_tgt = 0;
   7909     RECOMP_REGS_LOCALS
   7910     RECOMP_ENTER(0x300077B0u);
   7911 
   7912 L_300077B0:
   7913     PUSH32(esp, ebp); /* 0x300077B0: push ebp */
   7914     ebp = esp; /* 0x300077B1: mov ebp, esp */
   7915     fp_push(*(float*)&MEM32(0x3001E27C)); /* 0x300077B3: fld dword ptr [0x3001e27c] */
   7916     _st[0] = -_st[0]; /* 0x300077B9: fchs  */
   7917     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x300077BB: fcomp dword ptr [ebp + 8] */
   7918     fp_pop();
   7919     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300077BE: fnstsw ax */
   7920     /* test HI8(eax), 0x41u */ /* 0x300077C0: test ah, 0x41 */
   7921     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7922     _cf = 0;
   7923     _flag_k = FK_NARROW(FK_TEST, 24);
   7924     if (TEST_NZ(_flag_a, _flag_b)) goto L_300077CC; /* 0x300077C3: jne 0x300077cc */
   7925 L_300077C5:
   7926     eax = 1; /* 0x300077C5: mov eax, 1 */
   7927     ebp = POP32_VAL(esp); /* 0x300077CA: pop ebp */
   7928     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300077CB: ret  */
   7929 L_300077CC:
   7930     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7931     eax = 0; /* 0x300077CC: xor eax, eax */
   7932     _cf = 0;
   7933     _flag_k = FK_TEST;
   7934     ebp = POP32_VAL(esp); /* 0x300077CE: pop ebp */
   7935     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300077CF: ret  */
   7936     RECOMP_REGS_OUT();
   7937 }