aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0076.c (1355777B)


      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_361022C6(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(0x361022C6u);
     17 
     18 L_361022C6:
     19     edi = MEM32(ebp + 0xC); /* 0x361022C6: mov edi, dword ptr [ebp + 0xc] */
     20     PUSH32(esp, 1); /* 0x361022C9: push 1 */
     21     PUSH32(esp, 1); /* 0x361022CB: push 1 */
     22     PUSH32(esp, ebx); /* 0x361022CD: push ebx */
     23     PUSH32(esp, ebx); /* 0x361022CE: push ebx */
     24     PUSH32(esp, ebx); /* 0x361022CF: push ebx */
     25     PUSH32(esp, ebx); /* 0x361022D0: push ebx */
     26     PUSH32(esp, ebx); /* 0x361022D1: push ebx */
     27     PUSH32(esp, ebx); /* 0x361022D2: push ebx */
     28     PUSH32(esp, ebx); /* 0x361022D3: push ebx */
     29     PUSH32(esp, ebx); /* 0x361022D4: push ebx */
     30     PUSH32(esp, edi); /* 0x361022D5: push edi */
     31     ecx = eax; /* 0x361022D6: mov ecx, eax */
     32     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x361022D8: mov byte ptr [ebp - 4], 3 */
     33     MEM32(esi + 0x108) = eax; /* 0x361022DC: mov dword ptr [esi + 0x108], eax */
     34     RECOMP_ICALL(0x36132EB0u); /* 0x361022E2: call 0x36132eb0 */ /* not lifted */
     35     RECOMP_FLAGS_IN();
     36     /* test LO8(eax), LO8(eax) */ /* 0x361022E7: test al, al */
     37     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
     38     _cf = 0;
     39     _flag_k = FK_NARROW(FK_TEST, 24);
     40     if (TEST_Z(_flag_a, _flag_b)) goto L_36102335; /* 0x361022E9: je 0x36102335 */
     41 L_361022EB:
     42     ecx = esi; /* 0x361022EB: mov ecx, esi */
     43     RECOMP_ICALL(0x36102BC0u); /* 0x361022ED: call 0x36102bc0 */ /* not lifted */
     44     RECOMP_FLAGS_IN();
     45     ecx = esi; /* 0x361022F2: mov ecx, esi */
     46     RECOMP_ICALL(0x360E2940u); /* 0x361022F4: call 0x360e2940 */ /* not lifted */
     47     RECOMP_FLAGS_IN();
     48     PUSH32(esp, ebx); /* 0x361022F9: push ebx */
     49     PUSH32(esp, 0x361B5CB8u); /* 0x361022FA: push 0x361b5cb8 */
     50     PUSH32(esp, 0x361B2CC0u); /* 0x361022FF: push 0x361b2cc0 */
     51     PUSH32(esp, ebx); /* 0x36102304: push ebx */
     52     PUSH32(esp, edi); /* 0x36102305: push edi */
     53     RECOMP_ICALL(0x3615FD86u); /* 0x36102306: call 0x3615fd86 */ /* not lifted */
     54     RECOMP_FLAGS_IN();
     55     ecx = MEM32(eax + 0xC8); /* 0x3610230B: mov ecx, dword ptr [eax + 0xc8] */
     56     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     57     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     58     esp = esp + 0x14u; /* 0x36102311: add esp, 0x14 */
     59     _flag_k = FK_ADD;
     60     /* cmp ecx, ebx */ /* 0x36102314: cmp ecx, ebx */
     61     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
     62     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     63     _flag_k = FK_CMP;
     64     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102339; /* 0x36102316: je 0x36102339 */
     65 L_36102318:
     66     ecx = eax; /* 0x36102318: mov ecx, eax */
     67     RECOMP_ICALL(MEM32(0x3616FFE8)); /* 0x3610231A: call dword ptr [0x3616ffe8] */
     68     RECOMP_FLAGS_IN();
     69     eax = MEM32(eax + 0x28); /* 0x36102320: mov eax, dword ptr [eax + 0x28] */
     70     PUSH32(esp, esi); /* 0x36102323: push esi */
     71     PUSH32(esp, 0x36102FA0u); /* 0x36102324: push 0x36102fa0 */
     72     ecx = eax; /* 0x36102329: mov ecx, eax */
     73     MEM32(esi + 0x44) = eax; /* 0x3610232B: mov dword ptr [esi + 0x44], eax */
     74     RECOMP_ICALL(0x3615F7F0u); /* 0x3610232E: call 0x3615f7f0 */ /* not lifted */
     75     RECOMP_FLAGS_IN();
     76     goto L_36102339; /* 0x36102333: jmp 0x36102339 */
     77 L_36102335:
     78     MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36102335: mov byte ptr [esi + 0x14], 1 */
     79 L_36102339:
     80     ecx = MEM32(ebp + (-0xC)); /* 0x36102339: mov ecx, dword ptr [ebp - 0xc] */
     81     edi = POP32_VAL(esp); /* 0x3610233C: pop edi */
     82     eax = esi; /* 0x3610233D: mov eax, esi */
     83     esi = POP32_VAL(esp); /* 0x3610233F: pop esi */
     84     ebx = POP32_VAL(esp); /* 0x36102340: pop ebx */
     85     MEM32(FS_BASE + (0)) = ecx; /* 0x36102341: mov dword ptr fs:[0], ecx */
     86     esp = ebp; /* 0x36102348: mov esp, ebp */
     87     ebp = POP32_VAL(esp); /* 0x3610234A: pop ebp */
     88     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610234B: ret 0xc */
     89     RECOMP_REGS_OUT();
     90 }
     91 
     92 void sub_36102339(void) {
     93     int _fpu_cmp = 0;
     94     uint32_t _cf = 0;
     95     int _df = 1;
     96     uint32_t _flag_k = FK_NONE;
     97     uint32_t _flag_a = 0, _flag_b = 0;
     98     uint32_t _itail_tgt = 0;
     99     RECOMP_REGS_LOCALS
    100     RECOMP_ENTER(0x36102339u);
    101 
    102 L_36102339:
    103     ecx = MEM32(ebp + (-0xC)); /* 0x36102339: mov ecx, dword ptr [ebp - 0xc] */
    104     edi = POP32_VAL(esp); /* 0x3610233C: pop edi */
    105     eax = esi; /* 0x3610233D: mov eax, esi */
    106     esi = POP32_VAL(esp); /* 0x3610233F: pop esi */
    107     ebx = POP32_VAL(esp); /* 0x36102340: pop ebx */
    108     MEM32(FS_BASE + (0)) = ecx; /* 0x36102341: mov dword ptr fs:[0], ecx */
    109     esp = ebp; /* 0x36102348: mov esp, ebp */
    110     ebp = POP32_VAL(esp); /* 0x3610234A: pop ebp */
    111     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610234B: ret 0xc */
    112     RECOMP_REGS_OUT();
    113 }
    114 
    115 void sub_36102350(void) {
    116     int _fpu_cmp = 0;
    117     uint32_t _cf = 0;
    118     int _df = 1;
    119     uint32_t _flag_k = FK_NONE;
    120     uint32_t _flag_a = 0, _flag_b = 0;
    121     uint32_t _itail_tgt = 0;
    122     RECOMP_REGS_LOCALS
    123     RECOMP_ENTER(0x36102350u);
    124 
    125 L_36102350:
    126     PUSH32(esp, ebp); /* 0x36102350: push ebp */
    127     ebp = esp; /* 0x36102351: mov ebp, esp */
    128     PUSH32(esp, esi); /* 0x36102353: push esi */
    129     esi = ecx; /* 0x36102354: mov esi, ecx */
    130     RECOMP_ICALL(0x36102380u); /* 0x36102356: call 0x36102380 */ /* not lifted */
    131     RECOMP_FLAGS_IN();
    132     /* test MEM8(ebp + 0x8), 1 */ /* 0x3610235B: test byte ptr [ebp + 8], 1 */
    133     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    134     _cf = 0;
    135     _flag_k = FK_NARROW(FK_TEST, 24);
    136     if (TEST_Z(_flag_a, _flag_b)) goto L_3610236A; /* 0x3610235F: je 0x3610236a */
    137 L_36102361:
    138     PUSH32(esp, esi); /* 0x36102361: push esi */
    139     RECOMP_ICALL(0x3615FCC4u); /* 0x36102362: call 0x3615fcc4 */ /* not lifted */
    140     RECOMP_FLAGS_IN();
    141     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    142     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    143     esp = esp + 4; /* 0x36102367: add esp, 4 */
    144     _flag_k = FK_ADD;
    145 L_3610236A:
    146     eax = esi; /* 0x3610236A: mov eax, esi */
    147     esi = POP32_VAL(esp); /* 0x3610236C: pop esi */
    148     ebp = POP32_VAL(esp); /* 0x3610236D: pop ebp */
    149     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610236E: ret 4 */
    150     RECOMP_REGS_OUT();
    151 }
    152 
    153 void sub_36102380(void) {
    154     int _fpu_cmp = 0;
    155     uint32_t _cf = 0;
    156     int _df = 1;
    157     uint32_t _flag_k = FK_NONE;
    158     uint32_t _flag_a = 0, _flag_b = 0;
    159     uint32_t _itail_tgt = 0;
    160     RECOMP_REGS_LOCALS
    161     RECOMP_ENTER(0x36102380u);
    162 
    163 L_36102380:
    164     PUSH32(esp, ebp); /* 0x36102380: push ebp */
    165     ebp = esp; /* 0x36102381: mov ebp, esp */
    166     PUSH32(esp, 0xFFFFFFFFu); /* 0x36102383: push -1 */
    167     PUSH32(esp, 0x36169E63u); /* 0x36102385: push 0x36169e63 */
    168     eax = MEM32(FS_BASE + (0)); /* 0x3610238A: mov eax, dword ptr fs:[0] */
    169     PUSH32(esp, eax); /* 0x36102390: push eax */
    170     MEM32(FS_BASE + (0)) = esp; /* 0x36102391: mov dword ptr fs:[0], esp */
    171     PUSH32(esp, ecx); /* 0x36102398: push ecx */
    172     PUSH32(esp, ebx); /* 0x36102399: push ebx */
    173     PUSH32(esp, esi); /* 0x3610239A: push esi */
    174     esi = ecx; /* 0x3610239B: mov esi, ecx */
    175     PUSH32(esp, edi); /* 0x3610239D: push edi */
    176     MEM32(ebp + (-0x10)) = esi; /* 0x3610239E: mov dword ptr [ebp - 0x10], esi */
    177     MEM32(esi) = 0x36175944u; /* 0x361023A1: mov dword ptr [esi], 0x36175944 */
    178     ecx = MEM32(esi + 0x44); /* 0x361023A7: mov ecx, dword ptr [esi + 0x44] */
    179     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    180     edi = 0; /* 0x361023AA: xor edi, edi */
    181     _cf = 0;
    182     _flag_k = FK_TEST;
    183     /* cmp ecx, edi */ /* 0x361023AC: cmp ecx, edi */
    184     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
    185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    186     _flag_k = FK_CMP;
    187     MEM32(ebp + (-0x4)) = 3; /* 0x361023AE: mov dword ptr [ebp - 4], 3 */
    188     if (CMP_EQ(_flag_a, _flag_b)) goto L_361023C5; /* 0x361023B5: je 0x361023c5 */
    189 L_361023B7:
    190     PUSH32(esp, esi); /* 0x361023B7: push esi */
    191     PUSH32(esp, 0x36102FA0u); /* 0x361023B8: push 0x36102fa0 */
    192     RECOMP_ICALL(0x3615F7F6u); /* 0x361023BD: call 0x3615f7f6 */ /* not lifted */
    193     RECOMP_FLAGS_IN();
    194     MEM32(esi + 0x44) = edi; /* 0x361023C2: mov dword ptr [esi + 0x44], edi */
    195 L_361023C5:
    196     ebx = MEM32(esi + 0x108); /* 0x361023C5: mov ebx, dword ptr [esi + 0x108] */
    197     /* cmp ebx, edi */ /* 0x361023CB: cmp ebx, edi */
    198     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
    199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    200     _flag_k = FK_CMP;
    201     if (CMP_EQ(_flag_a, _flag_b)) goto L_361023DF; /* 0x361023CD: je 0x361023df */
    202 L_361023CF:
    203     ecx = ebx; /* 0x361023CF: mov ecx, ebx */
    204     RECOMP_ICALL(0x360E2940u); /* 0x361023D1: call 0x360e2940 */ /* not lifted */
    205     RECOMP_FLAGS_IN();
    206     PUSH32(esp, ebx); /* 0x361023D6: push ebx */
    207     RECOMP_ICALL(0x3615FCC4u); /* 0x361023D7: call 0x3615fcc4 */ /* not lifted */
    208     RECOMP_FLAGS_IN();
    209     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    210     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    211     esp = esp + 4; /* 0x361023DC: add esp, 4 */
    212     _flag_k = FK_ADD;
    213 L_361023DF:
    214     eax = MEM32(esi + 0x120); /* 0x361023DF: mov eax, dword ptr [esi + 0x120] */
    215     PUSH32(esp, eax); /* 0x361023E5: push eax */
    216     MEM32(ebp + (-0x10)) = eax; /* 0x361023E6: mov dword ptr [ebp - 0x10], eax */
    217     RECOMP_ICALL(0x3615FCC4u); /* 0x361023E9: call 0x3615fcc4 */ /* not lifted */
    218     RECOMP_FLAGS_IN();
    219     MEM32(esi + 0x120) = edi; /* 0x361023EE: mov dword ptr [esi + 0x120], edi */
    220     MEM32(esi + 0x124) = edi; /* 0x361023F4: mov dword ptr [esi + 0x124], edi */
    221     MEM32(esi + 0x128) = edi; /* 0x361023FA: mov dword ptr [esi + 0x128], edi */
    222     eax = MEM32(esi + 0x110); /* 0x36102400: mov eax, dword ptr [esi + 0x110] */
    223     PUSH32(esp, eax); /* 0x36102406: push eax */
    224     MEM32(ebp + (-0x10)) = eax; /* 0x36102407: mov dword ptr [ebp - 0x10], eax */
    225     RECOMP_ICALL(0x3615FCC4u); /* 0x3610240A: call 0x3615fcc4 */ /* not lifted */
    226     RECOMP_FLAGS_IN();
    227     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    228     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    229     esp = esp + 8; /* 0x3610240F: add esp, 8 */
    230     _flag_k = FK_ADD;
    231     ecx = esi; /* 0x36102412: mov ecx, esi */
    232     MEM32(esi + 0x110) = edi; /* 0x36102414: mov dword ptr [esi + 0x110], edi */
    233     MEM32(esi + 0x114) = edi; /* 0x3610241A: mov dword ptr [esi + 0x114], edi */
    234     MEM32(esi + 0x118) = edi; /* 0x36102420: mov dword ptr [esi + 0x118], edi */
    235     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36102426: mov dword ptr [ebp - 4], 0xffffffff */
    236     RECOMP_ICALL(0x360FC2F0u); /* 0x3610242D: call 0x360fc2f0 */ /* not lifted */
    237     RECOMP_FLAGS_IN();
    238     ecx = MEM32(ebp + (-0xC)); /* 0x36102432: mov ecx, dword ptr [ebp - 0xc] */
    239     edi = POP32_VAL(esp); /* 0x36102435: pop edi */
    240     esi = POP32_VAL(esp); /* 0x36102436: pop esi */
    241     ebx = POP32_VAL(esp); /* 0x36102437: pop ebx */
    242     MEM32(FS_BASE + (0)) = ecx; /* 0x36102438: mov dword ptr fs:[0], ecx */
    243     esp = ebp; /* 0x3610243F: mov esp, ebp */
    244     ebp = POP32_VAL(esp); /* 0x36102441: pop ebp */
    245     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102442: ret  */
    246     RECOMP_REGS_OUT();
    247 }
    248 
    249 void sub_36102450(void) {
    250     int _fpu_cmp = 0;
    251     uint32_t _cf = 0;
    252     int _df = 1;
    253     uint32_t _flag_k = FK_NONE;
    254     uint32_t _flag_a = 0, _flag_b = 0;
    255     uint32_t _itail_tgt = 0;
    256     RECOMP_REGS_LOCALS
    257     RECOMP_ENTER(0x36102450u);
    258 
    259 L_36102450:
    260     SET_LO8(eax, MEM8(ecx + 0x38)); /* 0x36102450: mov al, byte ptr [ecx + 0x38] */
    261     /* test LO8(eax), LO8(eax) */ /* 0x36102453: test al, al */
    262     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    263     _cf = 0;
    264     _flag_k = FK_NARROW(FK_TEST, 24);
    265     if (TEST_NZ(_flag_a, _flag_b)) goto L_36102467; /* 0x36102455: jne 0x36102467 */
    266 L_36102457:
    267     eax = MEM32(ecx + 0x40); /* 0x36102457: mov eax, dword ptr [ecx + 0x40] */
    268     edx = MEM32(ecx + 0xC); /* 0x3610245A: mov edx, dword ptr [ecx + 0xc] */
    269     MEM8(ecx + 0x38) = (uint8_t)(1); /* 0x3610245D: mov byte ptr [ecx + 0x38], 1 */
    270     MEM32(ecx + 0x2C) = eax; /* 0x36102461: mov dword ptr [ecx + 0x2c], eax */
    271     MEM32(ecx + 0x3C) = edx; /* 0x36102464: mov dword ptr [ecx + 0x3c], edx */
    272 L_36102467:
    273     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102467: ret  */
    274     RECOMP_REGS_OUT();
    275 }
    276 
    277 void sub_36102470(void) {
    278     int _fpu_cmp = 0;
    279     uint32_t _cf = 0;
    280     int _df = 1;
    281     uint32_t _flag_k = FK_NONE;
    282     uint32_t _flag_a = 0, _flag_b = 0;
    283     uint32_t _itail_tgt = 0;
    284     RECOMP_REGS_LOCALS
    285     RECOMP_ENTER(0x36102470u);
    286 
    287 L_36102470:
    288     PUSH32(esp, ebp); /* 0x36102470: push ebp */
    289     ebp = esp; /* 0x36102471: mov ebp, esp */
    290     PUSH32(esp, 0xFFFFFFFFu); /* 0x36102473: push -1 */
    291     PUSH32(esp, 0x36169EA9u); /* 0x36102475: push 0x36169ea9 */
    292     eax = MEM32(FS_BASE + (0)); /* 0x3610247A: mov eax, dword ptr fs:[0] */
    293     PUSH32(esp, eax); /* 0x36102480: push eax */
    294     MEM32(FS_BASE + (0)) = esp; /* 0x36102481: mov dword ptr fs:[0], esp */
    295     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x148u);
    296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    297     esp = esp - 0x148u; /* 0x36102488: sub esp, 0x148 */
    298     _flag_k = FK_CMP;
    299     PUSH32(esp, ebx); /* 0x3610248E: push ebx */
    300     ebx = ecx; /* 0x3610248F: mov ebx, ecx */
    301     RECOMP_ICALL(0x360FC300u); /* 0x36102491: call 0x360fc300 */ /* not lifted */
    302     RECOMP_FLAGS_IN();
    303     eax = MEM32(ebx + 0x44); /* 0x36102496: mov eax, dword ptr [ebx + 0x44] */
    304     /* test eax, eax */ /* 0x36102499: test eax, eax */
    305     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    306     _cf = 0;
    307     _flag_k = FK_TEST;
    308     if (TEST_Z(_flag_a, _flag_b)) goto L_361024AC; /* 0x3610249B: je 0x361024ac */
    309 L_3610249D:
    310     ecx = MEM32(ebx + 0x108); /* 0x3610249D: mov ecx, dword ptr [ebx + 0x108] */
    311     RECOMP_ICALL(0x361331E0u); /* 0x361024A3: call 0x361331e0 */ /* not lifted */
    312     RECOMP_FLAGS_IN();
    313     /* test LO8(eax), LO8(eax) */ /* 0x361024A8: test al, al */
    314     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    315     _cf = 0;
    316     _flag_k = FK_NARROW(FK_TEST, 24);
    317     if (TEST_NZ(_flag_a, _flag_b)) goto L_361024B0; /* 0x361024AA: jne 0x361024b0 */
    318 L_361024AC:
    319     MEM8(ebx + 0x14) = (uint8_t)(1); /* 0x361024AC: mov byte ptr [ebx + 0x14], 1 */
    320 L_361024B0:
    321     SET_LO8(eax, MEM8(ebx + 0x14)); /* 0x361024B0: mov al, byte ptr [ebx + 0x14] */
    322     /* test LO8(eax), LO8(eax) */ /* 0x361024B3: test al, al */
    323     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    324     _cf = 0;
    325     _flag_k = FK_NARROW(FK_TEST, 24);
    326     if (TEST_NZ(_flag_a, _flag_b)) goto L_36102BA3; /* 0x361024B5: jne 0x36102ba3 */
    327 L_361024BB:
    328     PUSH32(esp, esi); /* 0x361024BB: push esi */
    329     PUSH32(esp, edi); /* 0x361024BC: push edi */
    330     MEM32(ebp + (-0x74)) = 0x3F800000u; /* 0x361024BD: mov dword ptr [ebp - 0x74], 0x3f800000 */
    331     MEM32(ebp + (-0x70)) = 0; /* 0x361024C4: mov dword ptr [ebp - 0x70], 0 */
    332     MEM32(ebp + (-0x6C)) = 0; /* 0x361024CB: mov dword ptr [ebp - 0x6c], 0 */
    333     MEM32(ebp + (-0x68)) = 0; /* 0x361024D2: mov dword ptr [ebp - 0x68], 0 */
    334     MEM32(ebp + (-0x64)) = 0; /* 0x361024D9: mov dword ptr [ebp - 0x64], 0 */
    335     MEM32(ebp + (-0x60)) = 0x3F800000u; /* 0x361024E0: mov dword ptr [ebp - 0x60], 0x3f800000 */
    336     MEM32(ebp + (-0x5C)) = 0; /* 0x361024E7: mov dword ptr [ebp - 0x5c], 0 */
    337     MEM32(ebp + (-0x58)) = 0; /* 0x361024EE: mov dword ptr [ebp - 0x58], 0 */
    338     MEM32(ebp + (-0x54)) = 0; /* 0x361024F5: mov dword ptr [ebp - 0x54], 0 */
    339     MEM32(ebp + (-0x50)) = 0; /* 0x361024FC: mov dword ptr [ebp - 0x50], 0 */
    340     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x36102503: mov dword ptr [ebp - 0x4c], 0x3f800000 */
    341     MEM32(ebp + (-0x48)) = 0; /* 0x3610250A: mov dword ptr [ebp - 0x48], 0 */
    342     MEM32(ebp + (-0x44)) = 0; /* 0x36102511: mov dword ptr [ebp - 0x44], 0 */
    343     MEM32(ebp + (-0x40)) = 0; /* 0x36102518: mov dword ptr [ebp - 0x40], 0 */
    344     MEM32(ebp + (-0x3C)) = 0; /* 0x3610251F: mov dword ptr [ebp - 0x3c], 0 */
    345     MEM32(ebp + (-0x38)) = 0x3F800000u; /* 0x36102526: mov dword ptr [ebp - 0x38], 0x3f800000 */
    346     ecx = MEM32(ebx + 0x44); /* 0x3610252D: mov ecx, dword ptr [ebx + 0x44] */
    347     eax = ebp + (-0x74); /* 0x36102530: lea eax, [ebp - 0x74] */
    348     PUSH32(esp, eax); /* 0x36102533: push eax */
    349     PUSH32(esp, 0x361C8450u); /* 0x36102534: push 0x361c8450 */
    350     MEM32(ebp + (-0x4)) = 0; /* 0x36102539: mov dword ptr [ebp - 4], 0 */
    351     RECOMP_ICALL(0x3615F7FCu); /* 0x36102540: call 0x3615f7fc */ /* not lifted */
    352     RECOMP_FLAGS_IN();
    353     edx = MEM32(ebp + (-0x44)); /* 0x36102545: mov edx, dword ptr [ebp - 0x44] */
    354     eax = MEM32(ebp + (-0x40)); /* 0x36102548: mov eax, dword ptr [ebp - 0x40] */
    355     esi = ebx + 0x48; /* 0x3610254B: lea esi, [ebx + 0x48] */
    356     ecx = esi; /* 0x3610254E: mov ecx, esi */
    357     MEM32(ecx) = edx; /* 0x36102550: mov dword ptr [ecx], edx */
    358     edx = MEM32(ebp + (-0x3C)); /* 0x36102552: mov edx, dword ptr [ebp - 0x3c] */
    359     MEM32(ecx + 0x4) = eax; /* 0x36102555: mov dword ptr [ecx + 4], eax */
    360     eax = ebp + (-0x74); /* 0x36102558: lea eax, [ebp - 0x74] */
    361     PUSH32(esp, eax); /* 0x3610255B: push eax */
    362     MEM32(ecx + 0x8) = edx; /* 0x3610255C: mov dword ptr [ecx + 8], edx */
    363     ecx = MEM32(ebx + 0x44); /* 0x3610255F: mov ecx, dword ptr [ebx + 0x44] */
    364     PUSH32(esp, 0x361C8440u); /* 0x36102562: push 0x361c8440 */
    365     RECOMP_ICALL(0x3615F7FCu); /* 0x36102567: call 0x3615f7fc */ /* not lifted */
    366     RECOMP_FLAGS_IN();
    367     edx = MEM32(ebp + (-0x44)); /* 0x3610256C: mov edx, dword ptr [ebp - 0x44] */
    368     eax = MEM32(ebp + (-0x40)); /* 0x3610256F: mov eax, dword ptr [ebp - 0x40] */
    369     ecx = ebx + 0x54; /* 0x36102572: lea ecx, [ebx + 0x54] */
    370     MEM32(ecx) = edx; /* 0x36102575: mov dword ptr [ecx], edx */
    371     edx = MEM32(ebp + (-0x3C)); /* 0x36102577: mov edx, dword ptr [ebp - 0x3c] */
    372     MEM32(ecx + 0x4) = eax; /* 0x3610257A: mov dword ptr [ecx + 4], eax */
    373     eax = ebp + (-0x74); /* 0x3610257D: lea eax, [ebp - 0x74] */
    374     PUSH32(esp, eax); /* 0x36102580: push eax */
    375     MEM32(ecx + 0x8) = edx; /* 0x36102581: mov dword ptr [ecx + 8], edx */
    376     ecx = MEM32(ebx + 0x44); /* 0x36102584: mov ecx, dword ptr [ebx + 0x44] */
    377     PUSH32(esp, 0x361C8460u); /* 0x36102587: push 0x361c8460 */
    378     RECOMP_ICALL(0x3615F7FCu); /* 0x3610258C: call 0x3615f7fc */ /* not lifted */
    379     RECOMP_FLAGS_IN();
    380     edx = MEM32(ebp + (-0x44)); /* 0x36102591: mov edx, dword ptr [ebp - 0x44] */
    381     eax = MEM32(ebp + (-0x40)); /* 0x36102594: mov eax, dword ptr [ebp - 0x40] */
    382     ecx = ebx + 0x60; /* 0x36102597: lea ecx, [ebx + 0x60] */
    383     MEM32(ecx) = edx; /* 0x3610259A: mov dword ptr [ecx], edx */
    384     edx = MEM32(ebp + (-0x3C)); /* 0x3610259C: mov edx, dword ptr [ebp - 0x3c] */
    385     MEM32(ecx + 0x4) = eax; /* 0x3610259F: mov dword ptr [ecx + 4], eax */
    386     eax = ebp + (-0x74); /* 0x361025A2: lea eax, [ebp - 0x74] */
    387     PUSH32(esp, eax); /* 0x361025A5: push eax */
    388     MEM32(ecx + 0x8) = edx; /* 0x361025A6: mov dword ptr [ecx + 8], edx */
    389     ecx = MEM32(ebx + 0x44); /* 0x361025A9: mov ecx, dword ptr [ebx + 0x44] */
    390     PUSH32(esp, 0x361C84A0u); /* 0x361025AC: push 0x361c84a0 */
    391     RECOMP_ICALL(0x3615F7FCu); /* 0x361025B1: call 0x3615f7fc */ /* not lifted */
    392     RECOMP_FLAGS_IN();
    393     edx = MEM32(ebp + (-0x44)); /* 0x361025B6: mov edx, dword ptr [ebp - 0x44] */
    394     eax = MEM32(ebp + (-0x40)); /* 0x361025B9: mov eax, dword ptr [ebp - 0x40] */
    395     edi = ebx + 0x6C; /* 0x361025BC: lea edi, [ebx + 0x6c] */
    396     ecx = edi; /* 0x361025BF: mov ecx, edi */
    397     MEM32(ecx) = edx; /* 0x361025C1: mov dword ptr [ecx], edx */
    398     edx = MEM32(ebp + (-0x3C)); /* 0x361025C3: mov edx, dword ptr [ebp - 0x3c] */
    399     MEM32(ecx + 0x4) = eax; /* 0x361025C6: mov dword ptr [ecx + 4], eax */
    400     eax = ebp + (-0x74); /* 0x361025C9: lea eax, [ebp - 0x74] */
    401     PUSH32(esp, eax); /* 0x361025CC: push eax */
    402     MEM32(ecx + 0x8) = edx; /* 0x361025CD: mov dword ptr [ecx + 8], edx */
    403     ecx = MEM32(ebx + 0x44); /* 0x361025D0: mov ecx, dword ptr [ebx + 0x44] */
    404     PUSH32(esp, 0x362E4D14u); /* 0x361025D3: push 0x362e4d14 */
    405     RECOMP_ICALL(0x3615F7FCu); /* 0x361025D8: call 0x3615f7fc */ /* not lifted */
    406     RECOMP_FLAGS_IN();
    407     edx = MEM32(ebp + (-0x44)); /* 0x361025DD: mov edx, dword ptr [ebp - 0x44] */
    408     eax = MEM32(ebp + (-0x40)); /* 0x361025E0: mov eax, dword ptr [ebp - 0x40] */
    409     ecx = ebx + 0x78; /* 0x361025E3: lea ecx, [ebx + 0x78] */
    410     MEM32(ecx) = edx; /* 0x361025E6: mov dword ptr [ecx], edx */
    411     edx = MEM32(ebp + (-0x3C)); /* 0x361025E8: mov edx, dword ptr [ebp - 0x3c] */
    412     MEM32(ecx + 0x4) = eax; /* 0x361025EB: mov dword ptr [ecx + 4], eax */
    413     eax = ebp + (-0x74); /* 0x361025EE: lea eax, [ebp - 0x74] */
    414     PUSH32(esp, eax); /* 0x361025F1: push eax */
    415     MEM32(ecx + 0x8) = edx; /* 0x361025F2: mov dword ptr [ecx + 8], edx */
    416     ecx = MEM32(ebx + 0x44); /* 0x361025F5: mov ecx, dword ptr [ebx + 0x44] */
    417     PUSH32(esp, 0x362E4D04u); /* 0x361025F8: push 0x362e4d04 */
    418     RECOMP_ICALL(0x3615F7FCu); /* 0x361025FD: call 0x3615f7fc */ /* not lifted */
    419     RECOMP_FLAGS_IN();
    420     edx = MEM32(ebp + (-0x44)); /* 0x36102602: mov edx, dword ptr [ebp - 0x44] */
    421     eax = MEM32(ebp + (-0x40)); /* 0x36102605: mov eax, dword ptr [ebp - 0x40] */
    422     ecx = ebx + 0x84; /* 0x36102608: lea ecx, [ebx + 0x84] */
    423     MEM32(ecx) = edx; /* 0x3610260E: mov dword ptr [ecx], edx */
    424     edx = MEM32(ebp + (-0x3C)); /* 0x36102610: mov edx, dword ptr [ebp - 0x3c] */
    425     MEM32(ecx + 0x4) = eax; /* 0x36102613: mov dword ptr [ecx + 4], eax */
    426     eax = ebp + (-0x74); /* 0x36102616: lea eax, [ebp - 0x74] */
    427     PUSH32(esp, eax); /* 0x36102619: push eax */
    428     MEM32(ecx + 0x8) = edx; /* 0x3610261A: mov dword ptr [ecx + 8], edx */
    429     ecx = MEM32(ebx + 0x44); /* 0x3610261D: mov ecx, dword ptr [ebx + 0x44] */
    430     PUSH32(esp, 0x362E4CF4u); /* 0x36102620: push 0x362e4cf4 */
    431     RECOMP_ICALL(0x3615F7FCu); /* 0x36102625: call 0x3615f7fc */ /* not lifted */
    432     RECOMP_FLAGS_IN();
    433     edx = MEM32(ebp + (-0x44)); /* 0x3610262A: mov edx, dword ptr [ebp - 0x44] */
    434     eax = MEM32(ebp + (-0x40)); /* 0x3610262D: mov eax, dword ptr [ebp - 0x40] */
    435     ecx = ebx + 0x90; /* 0x36102630: lea ecx, [ebx + 0x90] */
    436     MEM32(ecx) = edx; /* 0x36102636: mov dword ptr [ecx], edx */
    437     edx = MEM32(ebp + (-0x3C)); /* 0x36102638: mov edx, dword ptr [ebp - 0x3c] */
    438     MEM32(ecx + 0x4) = eax; /* 0x3610263B: mov dword ptr [ecx + 4], eax */
    439     eax = ebp + (-0x74); /* 0x3610263E: lea eax, [ebp - 0x74] */
    440     PUSH32(esp, eax); /* 0x36102641: push eax */
    441     MEM32(ecx + 0x8) = edx; /* 0x36102642: mov dword ptr [ecx + 8], edx */
    442     ecx = MEM32(ebx + 0x44); /* 0x36102645: mov ecx, dword ptr [ebx + 0x44] */
    443     PUSH32(esp, 0x362E4CE4u); /* 0x36102648: push 0x362e4ce4 */
    444     RECOMP_ICALL(0x3615F7FCu); /* 0x3610264D: call 0x3615f7fc */ /* not lifted */
    445     RECOMP_FLAGS_IN();
    446     edx = MEM32(ebp + (-0x44)); /* 0x36102652: mov edx, dword ptr [ebp - 0x44] */
    447     eax = MEM32(ebp + (-0x40)); /* 0x36102655: mov eax, dword ptr [ebp - 0x40] */
    448     ecx = ebx + 0x9C; /* 0x36102658: lea ecx, [ebx + 0x9c] */
    449     MEM32(ecx) = edx; /* 0x3610265E: mov dword ptr [ecx], edx */
    450     edx = MEM32(ebp + (-0x3C)); /* 0x36102660: mov edx, dword ptr [ebp - 0x3c] */
    451     MEM32(ecx + 0x4) = eax; /* 0x36102663: mov dword ptr [ecx + 4], eax */
    452     eax = MEM32(ebx + 0x28); /* 0x36102666: mov eax, dword ptr [ebx + 0x28] */
    453     MEM32(ecx + 0x8) = edx; /* 0x36102669: mov dword ptr [ecx + 8], edx */
    454     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    455     ecx = 0; /* 0x3610266C: xor ecx, ecx */
    456     _cf = 0;
    457     _flag_k = FK_TEST;
    458     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    460     eax = eax - ecx; /* 0x3610266E: sub eax, ecx */
    461     _flag_k = FK_CMP;
    462     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3610297A; /* 0x36102670: je 0x3610297a */
    463 L_36102676:
    464     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
    465     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    466     eax = eax - 2; /* 0x36102676: sub eax, 2 */
    467     _flag_k = FK_CMP;
    468     if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_3610290D; /* 0x36102679: jne 0x3610290d */
    469 L_3610267F:
    470     fp_push(*(float*)&MEM32(ebx + 0xC)); /* 0x3610267F: fld dword ptr [ebx + 0xc] */
    471     eax = esi; /* 0x36102682: mov eax, esi */
    472     ecx = MEM32(eax); /* 0x36102684: mov ecx, dword ptr [eax] */
    473     edx = MEM32(eax + 0x4); /* 0x36102686: mov edx, dword ptr [eax + 4] */
    474     eax = MEM32(eax + 0x8); /* 0x36102689: mov eax, dword ptr [eax + 8] */
    475     MEM32(ebp + (-0x18)) = ecx; /* 0x3610268C: mov dword ptr [ebp - 0x18], ecx */
    476     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610268F: fld dword ptr [ebp - 0x18] */
    477     _st[0] -= (double)*(float*)ADDR(edi); /* 0x36102692: fsub dword ptr [edi] */
    478     MEM32(ebp + (-0x14)) = edx; /* 0x36102694: mov dword ptr [ebp - 0x14], edx */
    479     MEM32(ebp + (-0x10)) = eax; /* 0x36102697: mov dword ptr [ebp - 0x10], eax */
    480     MEM32(ebp + (-0xB8)) = 0x3F800000u; /* 0x3610269A: mov dword ptr [ebp - 0xb8], 0x3f800000 */
    481     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361026A4: fstp dword ptr [ebp - 0x18] */
    482     ecx = MEM32(ebp + (-0x18)); /* 0x361026A7: mov ecx, dword ptr [ebp - 0x18] */
    483     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361026AA: fld dword ptr [ebp - 0x14] */
    484     MEM32(ebp + (-0x24)) = ecx; /* 0x361026AD: mov dword ptr [ebp - 0x24], ecx */
    485     _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x361026B0: fsub dword ptr [edi + 4] */
    486     MEM32(ebp + (-0xB4)) = 0; /* 0x361026B3: mov dword ptr [ebp - 0xb4], 0 */
    487     MEM32(ebp + (-0xB0)) = 0; /* 0x361026BD: mov dword ptr [ebp - 0xb0], 0 */
    488     MEM32(ebp + (-0xAC)) = 0; /* 0x361026C7: mov dword ptr [ebp - 0xac], 0 */
    489     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361026D1: fstp dword ptr [ebp - 0x14] */
    490     edx = MEM32(ebp + (-0x14)); /* 0x361026D4: mov edx, dword ptr [ebp - 0x14] */
    491     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361026D7: fld dword ptr [ebp - 0x10] */
    492     MEM32(ebp + (-0x20)) = edx; /* 0x361026DA: mov dword ptr [ebp - 0x20], edx */
    493     _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x361026DD: fsub dword ptr [edi + 8] */
    494     edi = ebx + 0xA8; /* 0x361026E0: lea edi, [ebx + 0xa8] */
    495     ecx = edi; /* 0x361026E6: mov ecx, edi */
    496     MEM32(ebp + (-0xA8)) = 0; /* 0x361026E8: mov dword ptr [ebp - 0xa8], 0 */
    497     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361026F2: fstp dword ptr [ebp - 0x10] */
    498     eax = MEM32(ebp + (-0x10)); /* 0x361026F5: mov eax, dword ptr [ebp - 0x10] */
    499     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361026F8: fld dword ptr [ebp - 0x10] */
    500     MEM32(ebp + (-0x1C)) = eax; /* 0x361026FB: mov dword ptr [ebp - 0x1c], eax */
    501     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361026FE: fmul dword ptr [ebp - 0x10] */
    502     MEM32(ebp + (-0xA4)) = 0x3F800000u; /* 0x36102701: mov dword ptr [ebp - 0xa4], 0x3f800000 */
    503     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3610270B: fld dword ptr [ebp - 0x14] */
    504     MEM32(ebp + (-0xA0)) = 0; /* 0x3610270E: mov dword ptr [ebp - 0xa0], 0 */
    505     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36102718: fmul dword ptr [ebp - 0x14] */
    506     MEM32(ebp + (-0x9C)) = 0; /* 0x3610271B: mov dword ptr [ebp - 0x9c], 0 */
    507     MEM32(ebp + (-0x98)) = 0; /* 0x36102725: mov dword ptr [ebp - 0x98], 0 */
    508     MEM32(ebp + (-0x94)) = 0; /* 0x3610272F: mov dword ptr [ebp - 0x94], 0 */
    509     { double _v = fp_pop(); _st[0] += _v; } /* 0x36102739: faddp st(1) */
    510     MEM32(ebp + (-0x90)) = 0x3F800000u; /* 0x3610273B: mov dword ptr [ebp - 0x90], 0x3f800000 */
    511     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36102745: fld dword ptr [ebp - 0x18] */
    512     MEM32(ebp + (-0x8C)) = 0; /* 0x36102748: mov dword ptr [ebp - 0x8c], 0 */
    513     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36102752: fmul dword ptr [ebp - 0x18] */
    514     MEM32(ebp + (-0x7C)) = 0x3F800000u; /* 0x36102755: mov dword ptr [ebp - 0x7c], 0x3f800000 */
    515     { double _v = fp_pop(); _st[0] += _v; } /* 0x3610275C: faddp st(1) */
    516     _st[0] = sqrt(_st[0]); /* 0x3610275E: fsqrt  */
    517     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36102760: fdivr dword ptr [0x36170380] */
    518     fp_push(_st[0]); /* 0x36102766: fld st(0) */
    519     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36102768: fmul dword ptr [ebp - 0x18] */
    520     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3610276B: fstp dword ptr [ebp - 0x24] */
    521     edx = MEM32(ebp + (-0x24)); /* 0x3610276E: mov edx, dword ptr [ebp - 0x24] */
    522     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36102771: fld dword ptr [ebp - 0x20] */
    523     MEM32(ecx) = edx; /* 0x36102774: mov dword ptr [ecx], edx */
    524     _st[0] *= _st[1]; /* 0x36102776: fmul st(1) */
    525     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102778: fstp dword ptr [ebp - 0x20] */
    526     eax = MEM32(ebp + (-0x20)); /* 0x3610277B: mov eax, dword ptr [ebp - 0x20] */
    527     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610277E: fld dword ptr [ebp - 0x1c] */
    528     MEM32(ecx + 0x4) = eax; /* 0x36102781: mov dword ptr [ecx + 4], eax */
    529     _st[0] *= _st[1]; /* 0x36102784: fmul st(1) */
    530     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102786: fstp dword ptr [ebp - 0x1c] */
    531     edx = MEM32(ebp + (-0x1C)); /* 0x36102789: mov edx, dword ptr [ebp - 0x1c] */
    532     MEM32(ecx + 0x8) = edx; /* 0x3610278C: mov dword ptr [ecx + 8], edx */
    533     eax = MEM32(esi); /* 0x3610278F: mov eax, dword ptr [esi] */
    534     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36102791: fstp st(0) */
    535     ecx = MEM32(esi + 0x4); /* 0x36102793: mov ecx, dword ptr [esi + 4] */
    536     edx = MEM32(esi + 0x8); /* 0x36102796: mov edx, dword ptr [esi + 8] */
    537     MEM32(ebp + (-0x88)) = eax; /* 0x36102799: mov dword ptr [ebp - 0x88], eax */
    538     MEM32(ebp + (-0x84)) = ecx; /* 0x3610279F: mov dword ptr [ebp - 0x84], ecx */
    539     MEM32(ebp + (-0x80)) = edx; /* 0x361027A5: mov dword ptr [ebp - 0x80], edx */
    540     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x361027A8: fsin  */
    541     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x361027AA: mov byte ptr [ebp - 4], 2 */
    542     _st[0] *= (double)*(float*)ADDR(0x36175988); /* 0x361027AE: fmul dword ptr [0x36175988] */
    543     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361027B4: fcom dword ptr [0x3617040c] */
    544     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361027BA: fnstsw ax */
    545     /* test HI8(eax), 1 */ /* 0x361027BC: test ah, 1 */
    546     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    547     _cf = 0;
    548     _flag_k = FK_NARROW(FK_TEST, 24);
    549     if (TEST_NZ(_flag_a, _flag_b)) goto L_361027D6; /* 0x361027BF: jne 0x361027d6 */
    550 L_361027C1:
    551     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x361027C1: fcom qword ptr [0x361708b8] */
    552     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361027C7: fnstsw ax */
    553     /* test HI8(eax), 1 */ /* 0x361027C9: test ah, 1 */
    554     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    555     _cf = 0;
    556     _flag_k = FK_NARROW(FK_TEST, 24);
    557     if (TEST_Z(_flag_a, _flag_b)) goto L_361027D6; /* 0x361027CC: je 0x361027d6 */
    558 L_361027CE:
    559     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x361027CE: fmul dword ptr [0x36170464] */
    560     goto L_361027F7; /* 0x361027D4: jmp 0x361027f7 */
    561 L_361027D6:
    562     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x361027D6: fmul dword ptr [0x361708b4] */
    563     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    565     esp = esp - 8; /* 0x361027DC: sub esp, 8 */
    566     _flag_k = FK_CMP;
    567     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x361027DF: fst dword ptr [ebp - 0x28] */
    568     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361027E2: fstp qword ptr [esp] */
    569     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x361027E5: call dword ptr [0x3616f198] */
    570     RECOMP_FLAGS_IN();
    571     _st[0] = (double)*(float*)ADDR(ebp + (-0x28)) - _st[0]; /* 0x361027EB: fsubr dword ptr [ebp - 0x28] */
    572     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    573     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    574     esp = esp + 8; /* 0x361027EE: add esp, 8 */
    575     _flag_k = FK_ADD;
    576     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x361027F1: fmul dword ptr [0x361708b0] */
    577 L_361027F7:
    578     fp_push(_st[0]); /* 0x361027F7: fld st(0) */
    579     eax = ebp + (-0xD4); /* 0x361027F9: lea eax, [ebp - 0xd4] */
    580     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x361027FF: fsin  */
    581     PUSH32(esp, eax); /* 0x36102801: push eax */
    582     ecx = ebp + (-0x154); /* 0x36102802: lea ecx, [ebp - 0x154] */
    583     fp_push(_st[0]); /* 0x36102808: fld st(0) */
    584     _st[0] *= (double)*(float*)ADDR(edi); /* 0x3610280A: fmul dword ptr [edi] */
    585     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610280C: fstp dword ptr [ebp - 0xd4] */
    586     fp_push(_st[0]); /* 0x36102812: fld st(0) */
    587     _st[0] *= (double)*(float*)ADDR(edi + 0x4); /* 0x36102814: fmul dword ptr [edi + 4] */
    588     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x36102817: fstp dword ptr [ebp - 0xd0] */
    589     _st[0] *= (double)*(float*)ADDR(edi + 0x8); /* 0x3610281D: fmul dword ptr [edi + 8] */
    590     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x36102820: fstp dword ptr [ebp - 0xcc] */
    591     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36102826: fcos  */
    592     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x36102828: fstp dword ptr [ebp - 0xc8] */
    593     RECOMP_ICALL(MEM32(0x361701AC)); /* 0x3610282E: call dword ptr [0x361701ac] */
    594     RECOMP_FLAGS_IN();
    595     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36102834: fld dword ptr [esi + 8] */
    596     _st[0] = -_st[0]; /* 0x36102837: fchs  */
    597     MEM32(ebp + (-0x114)) = 0x3F800000u; /* 0x36102839: mov dword ptr [ebp - 0x114], 0x3f800000 */
    598     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36102843: fld dword ptr [esi + 4] */
    599     MEM32(ebp + (-0x110)) = 0; /* 0x36102846: mov dword ptr [ebp - 0x110], 0 */
    600     _st[0] = -_st[0]; /* 0x36102850: fchs  */
    601     MEM32(ebp + (-0x10C)) = 0; /* 0x36102852: mov dword ptr [ebp - 0x10c], 0 */
    602     fp_push(*(float*)&MEM32(esi)); /* 0x3610285C: fld dword ptr [esi] */
    603     MEM32(ebp + (-0x108)) = 0; /* 0x3610285E: mov dword ptr [ebp - 0x108], 0 */
    604     _st[0] = -_st[0]; /* 0x36102868: fchs  */
    605     MEM32(ebp + (-0x104)) = 0; /* 0x3610286A: mov dword ptr [ebp - 0x104], 0 */
    606     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xE4)) = _v; } /* 0x36102874: fstp dword ptr [ebp - 0xe4] */
    607     MEM32(ebp + (-0x100)) = 0x3F800000u; /* 0x3610287A: mov dword ptr [ebp - 0x100], 0x3f800000 */
    608     MEM32(ebp + (-0xFC)) = 0; /* 0x36102884: mov dword ptr [ebp - 0xfc], 0 */
    609     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xE0)) = _v; } /* 0x3610288E: fstp dword ptr [ebp - 0xe0] */
    610     MEM32(ebp + (-0xF8)) = 0; /* 0x36102894: mov dword ptr [ebp - 0xf8], 0 */
    611     MEM32(ebp + (-0xF4)) = 0; /* 0x3610289E: mov dword ptr [ebp - 0xf4], 0 */
    612     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x361028A8: fstp dword ptr [ebp - 0xdc] */
    613     MEM32(ebp + (-0xF0)) = 0; /* 0x361028AE: mov dword ptr [ebp - 0xf0], 0 */
    614     MEM32(ebp + (-0xEC)) = 0x3F800000u; /* 0x361028B8: mov dword ptr [ebp - 0xec], 0x3f800000 */
    615     MEM32(ebp + (-0xE8)) = 0; /* 0x361028C2: mov dword ptr [ebp - 0xe8], 0 */
    616     MEM32(ebp + (-0xD8)) = 0x3F800000u; /* 0x361028CC: mov dword ptr [ebp - 0xd8], 0x3f800000 */
    617     esi = MEM32(0x361701E4); /* 0x361028D6: mov esi, dword ptr [0x361701e4] */
    618     ecx = ebp + (-0xB8); /* 0x361028DC: lea ecx, [ebp - 0xb8] */
    619     PUSH32(esp, ecx); /* 0x361028E2: push ecx */
    620     edx = ebp + (-0x154); /* 0x361028E3: lea edx, [ebp - 0x154] */
    621     PUSH32(esp, edx); /* 0x361028E9: push edx */
    622     ecx = ebp + (-0x114); /* 0x361028EA: lea ecx, [ebp - 0x114] */
    623     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x361028F0: mov byte ptr [ebp - 4], 4 */
    624     RECOMP_ICALL(esi); /* 0x361028F4: call esi */
    625     RECOMP_FLAGS_IN();
    626     ecx = eax; /* 0x361028F6: mov ecx, eax */
    627     RECOMP_ICALL(esi); /* 0x361028F8: call esi */
    628     RECOMP_FLAGS_IN();
    629     edi = ebx + 0xB4; /* 0x361028FA: lea edi, [ebx + 0xb4] */
    630     ecx = 0x10u; /* 0x36102900: mov ecx, 0x10 */
    631     esi = eax; /* 0x36102905: mov esi, eax */
    632     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102907: 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; }
    633     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36102909: mov byte ptr [ebp - 4], 0 */
    634 L_3610290D:
    635     fp_push(*(float*)&MEM32(ebx + 0x10)); /* 0x3610290D: fld dword ptr [ebx + 0x10] */
    636     edi = POP32_VAL(esp); /* 0x36102910: pop edi */
    637     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36102911: fcomp dword ptr [0x3617040c] */
    638     fp_pop();
    639     esi = POP32_VAL(esp); /* 0x36102917: pop esi */
    640     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102918: fnstsw ax */
    641     /* test HI8(eax), 0x41u */ /* 0x3610291A: test ah, 0x41 */
    642     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    643     _cf = 0;
    644     _flag_k = FK_NARROW(FK_TEST, 24);
    645     if (TEST_NZ(_flag_a, _flag_b)) goto L_36102936; /* 0x3610291D: jne 0x36102936 */
    646 L_3610291F:
    647     fp_push(*(float*)&MEM32(ebx + 0x10)); /* 0x3610291F: fld dword ptr [ebx + 0x10] */
    648     _st[0] -= (double)*(float*)ADDR(ebx + 0x34); /* 0x36102922: fsub dword ptr [ebx + 0x34] */
    649     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x36102925: fcomp dword ptr [ebx + 0xc] */
    650     fp_pop();
    651     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102928: fnstsw ax */
    652     /* test HI8(eax), 1 */ /* 0x3610292A: test ah, 1 */
    653     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    654     _cf = 0;
    655     _flag_k = FK_NARROW(FK_TEST, 24);
    656     if (TEST_Z(_flag_a, _flag_b)) goto L_36102936; /* 0x3610292D: je 0x36102936 */
    657 L_3610292F:
    658     edx = MEM32(ebx); /* 0x3610292F: mov edx, dword ptr [ebx] */
    659     ecx = ebx; /* 0x36102931: mov ecx, ebx */
    660     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36102933: call dword ptr [edx + 0x10] */
    661     RECOMP_FLAGS_IN();
    662 L_36102936:
    663     SET_LO8(eax, MEM8(ebx + 0x38)); /* 0x36102936: mov al, byte ptr [ebx + 0x38] */
    664     fp_push(*(float*)&MEM32(ebx + 0xC)); /* 0x36102939: fld dword ptr [ebx + 0xc] */
    665     /* test LO8(eax), LO8(eax) */ /* 0x3610293C: test al, al */
    666     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    667     _cf = 0;
    668     _flag_k = FK_NARROW(FK_TEST, 24);
    669     if (TEST_Z(_flag_a, _flag_b)) goto L_36102B8D; /* 0x3610293E: je 0x36102b8d */
    670 L_36102944:
    671     _st[0] -= (double)*(float*)ADDR(ebx + 0x3C); /* 0x36102944: fsub dword ptr [ebx + 0x3c] */
    672     _st[0] /= (double)*(float*)ADDR(ebx + 0x34); /* 0x36102947: fdiv dword ptr [ebx + 0x34] */
    673     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3610294A: fsubr dword ptr [0x36170380] */
    674     _st[0] *= (double)*(float*)ADDR(ebx + 0x2C); /* 0x36102950: fmul dword ptr [ebx + 0x2c] */
    675     { float _v = (float)_st[0]; *(float*)ADDR(ebx + 0x40) = _v; } /* 0x36102953: fst dword ptr [ebx + 0x40] */
    676     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36102956: fcomp dword ptr [0x3617040c] */
    677     fp_pop();
    678     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610295C: fnstsw ax */
    679     /* test HI8(eax), 0x41u */ /* 0x3610295E: test ah, 0x41 */
    680     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    681     _cf = 0;
    682     _flag_k = FK_NARROW(FK_TEST, 24);
    683     if (TEST_Z(_flag_a, _flag_b)) goto L_36102BA3; /* 0x36102961: je 0x36102ba3 */
    684 L_36102967:
    685     MEM8(ebx + 0x14) = (uint8_t)(1); /* 0x36102967: mov byte ptr [ebx + 0x14], 1 */
    686     ebx = POP32_VAL(esp); /* 0x3610296B: pop ebx */
    687     ecx = MEM32(ebp + (-0xC)); /* 0x3610296C: mov ecx, dword ptr [ebp - 0xc] */
    688     MEM32(FS_BASE + (0)) = ecx; /* 0x3610296F: mov dword ptr fs:[0], ecx */
    689     esp = ebp; /* 0x36102976: mov esp, ebp */
    690     ebp = POP32_VAL(esp); /* 0x36102978: pop ebp */
    691     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102979: ret  */
    692 L_3610297A:
    693     MEM32(ebp + (-0x28)) = ecx; /* 0x3610297A: mov dword ptr [ebp - 0x28], ecx */
    694     MEM32(ebp + (-0x78)) = ecx; /* 0x3610297D: mov dword ptr [ebp - 0x78], ecx */
    695     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    696     edi = 0; /* 0x36102980: xor edi, edi */
    697     _cf = 0;
    698     _flag_k = FK_TEST;
    699 L_36102982:
    700     eax = MEM32(ebx + 0x110); /* 0x36102982: mov eax, dword ptr [ebx + 0x110] */
    701     /* test eax, eax */ /* 0x36102988: test eax, eax */
    702     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    703     _cf = 0;
    704     _flag_k = FK_TEST;
    705     RECOMP_BACKEDGE();
    706     if (TEST_Z(_flag_a, _flag_b)) goto L_3610290D; /* 0x3610298A: je 0x3610290d */
    707 L_3610298C:
    708     ecx = MEM32(ebx + 0x114); /* 0x3610298C: mov ecx, dword ptr [ebx + 0x114] */
    709     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    711     ecx = ecx - eax; /* 0x36102992: sub ecx, eax */
    712     _flag_k = FK_CMP;
    713     eax = 0x2AAAAAABu; /* 0x36102994: mov eax, 0x2aaaaaab */
    714     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102999: imul ecx */
    715       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    716       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    717     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3610299B: sar edx, 2 */
    718     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    719     edx = (uint32_t)((int32_t)edx >> 2u);
    720     eax = edx; /* 0x3610299E: mov eax, edx */
    721     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361029A0: shr eax, 0x1f */
    722     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    723     eax = eax >> 31u; /* 0x361029A0: shr eax, 0x1f */
    724     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    725     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    726     edx = edx + eax; /* 0x361029A3: add edx, eax */
    727     _flag_k = FK_ADD;
    728     /* cmp MEM32(ebp + (-0x28)), edx */ /* 0x361029A5: cmp dword ptr [ebp - 0x28], edx */
    729     _flag_a = (uint32_t)(MEM32(ebp + (-0x28))); _flag_b = (uint32_t)(edx);
    730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    731     _flag_k = FK_CMP;
    732     RECOMP_BACKEDGE();
    733     if (CMP_AE(_flag_a, _flag_b)) goto L_3610290D; /* 0x361029A8: jae 0x3610290d */
    734 L_361029AE:
    735     esi = MEM32(ebx + 0x110); /* 0x361029AE: mov esi, dword ptr [ebx + 0x110] */
    736     MEM32(ebp + (-0xB8)) = 0x3F800000u; /* 0x361029B4: mov dword ptr [ebp - 0xb8], 0x3f800000 */
    737     MEM32(ebp + (-0xB4)) = 0; /* 0x361029BE: mov dword ptr [ebp - 0xb4], 0 */
    738     MEM32(ebp + (-0xB0)) = 0; /* 0x361029C8: mov dword ptr [ebp - 0xb0], 0 */
    739     MEM32(ebp + (-0xAC)) = 0; /* 0x361029D2: mov dword ptr [ebp - 0xac], 0 */
    740     MEM32(ebp + (-0xA8)) = 0; /* 0x361029DC: mov dword ptr [ebp - 0xa8], 0 */
    741     MEM32(ebp + (-0xA4)) = 0x3F800000u; /* 0x361029E6: mov dword ptr [ebp - 0xa4], 0x3f800000 */
    742     MEM32(ebp + (-0xA0)) = 0; /* 0x361029F0: mov dword ptr [ebp - 0xa0], 0 */
    743     MEM32(ebp + (-0x9C)) = 0; /* 0x361029FA: mov dword ptr [ebp - 0x9c], 0 */
    744     MEM32(ebp + (-0x98)) = 0; /* 0x36102A04: mov dword ptr [ebp - 0x98], 0 */
    745     MEM32(ebp + (-0x94)) = 0; /* 0x36102A0E: mov dword ptr [ebp - 0x94], 0 */
    746     MEM32(ebp + (-0x90)) = 0x3F800000u; /* 0x36102A18: mov dword ptr [ebp - 0x90], 0x3f800000 */
    747     MEM32(ebp + (-0x8C)) = 0; /* 0x36102A22: mov dword ptr [ebp - 0x8c], 0 */
    748     MEM32(ebp + (-0x88)) = 0; /* 0x36102A2C: mov dword ptr [ebp - 0x88], 0 */
    749     MEM32(ebp + (-0x84)) = 0; /* 0x36102A36: mov dword ptr [ebp - 0x84], 0 */
    750     MEM32(ebp + (-0x80)) = 0; /* 0x36102A40: mov dword ptr [ebp - 0x80], 0 */
    751     MEM32(ebp + (-0x7C)) = 0x3F800000u; /* 0x36102A47: mov dword ptr [ebp - 0x7c], 0x3f800000 */
    752     edx = MEM32(edi + esi); /* 0x36102A4E: mov edx, dword ptr [edi + esi] */
    753     ecx = ebp + (-0xB8); /* 0x36102A51: lea ecx, [ebp - 0xb8] */
    754     PUSH32(esp, ecx); /* 0x36102A57: push ecx */
    755     ecx = MEM32(ebx + 0x108); /* 0x36102A58: mov ecx, dword ptr [ebx + 0x108] */
    756     PUSH32(esp, edx); /* 0x36102A5E: push edx */
    757     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36102A5F: mov byte ptr [ebp - 4], 1 */
    758     RECOMP_ICALL(0x36133580u); /* 0x36102A63: call 0x36133580 */ /* not lifted */
    759     RECOMP_FLAGS_IN();
    760     eax = MEM32(ebp + (-0x88)); /* 0x36102A68: mov eax, dword ptr [ebp - 0x88] */
    761     ecx = MEM32(ebp + (-0x84)); /* 0x36102A6E: mov ecx, dword ptr [ebp - 0x84] */
    762     edx = MEM32(ebp + (-0x80)); /* 0x36102A74: mov edx, dword ptr [ebp - 0x80] */
    763     MEM32(ebp + (-0xC4)) = eax; /* 0x36102A77: mov dword ptr [ebp - 0xc4], eax */
    764     MEM32(ebp + (-0xC0)) = ecx; /* 0x36102A7D: mov dword ptr [ebp - 0xc0], ecx */
    765     ecx = MEM32(edi + esi + 0x4); /* 0x36102A83: mov ecx, dword ptr [edi + esi + 4] */
    766     eax = ebp + (-0xB8); /* 0x36102A87: lea eax, [ebp - 0xb8] */
    767     PUSH32(esp, eax); /* 0x36102A8D: push eax */
    768     PUSH32(esp, ecx); /* 0x36102A8E: push ecx */
    769     ecx = MEM32(ebx + 0x108); /* 0x36102A8F: mov ecx, dword ptr [ebx + 0x108] */
    770     MEM32(ebp + (-0xBC)) = edx; /* 0x36102A95: mov dword ptr [ebp - 0xbc], edx */
    771     RECOMP_ICALL(0x36133580u); /* 0x36102A9B: call 0x36133580 */ /* not lifted */
    772     RECOMP_FLAGS_IN();
    773     fp_push(*(float*)&MEM32(edi + esi + 0x8)); /* 0x36102AA0: fld dword ptr [edi + esi + 8] */
    774     _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x36102AA4: fmul dword ptr [ebx + 0xc] */
    775     edx = MEM32(ebp + (-0x88)); /* 0x36102AA7: mov edx, dword ptr [ebp - 0x88] */
    776     eax = MEM32(ebp + (-0x84)); /* 0x36102AAD: mov eax, dword ptr [ebp - 0x84] */
    777     ecx = MEM32(ebp + (-0x80)); /* 0x36102AB3: mov ecx, dword ptr [ebp - 0x80] */
    778     _st[0] += (double)*(float*)ADDR(edi + esi + 0xC); /* 0x36102AB6: fadd dword ptr [edi + esi + 0xc] */
    779     MEM32(ebp + (-0x24)) = edx; /* 0x36102ABA: mov dword ptr [ebp - 0x24], edx */
    780     edx = MEM32(ebp + (-0xC4)); /* 0x36102ABD: mov edx, dword ptr [ebp - 0xc4] */
    781     MEM32(ebp + (-0x20)) = eax; /* 0x36102AC3: mov dword ptr [ebp - 0x20], eax */
    782     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36102AC6: fsin  */
    783     eax = MEM32(ebp + (-0xC0)); /* 0x36102AC8: mov eax, dword ptr [ebp - 0xc0] */
    784     MEM32(ebp + (-0x1C)) = ecx; /* 0x36102ACE: mov dword ptr [ebp - 0x1c], ecx */
    785     ecx = MEM32(ebp + (-0xBC)); /* 0x36102AD1: mov ecx, dword ptr [ebp - 0xbc] */
    786     MEM32(ebp + (-0x18)) = edx; /* 0x36102AD7: mov dword ptr [ebp - 0x18], edx */
    787     MEM32(ebp + (-0x14)) = eax; /* 0x36102ADA: mov dword ptr [ebp - 0x14], eax */
    788     MEM32(ebp + (-0x10)) = ecx; /* 0x36102ADD: mov dword ptr [ebp - 0x10], ecx */
    789     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x36102AE0: fadd dword ptr [0x36170380] */
    790     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36102AE6: fmul dword ptr [0x36170464] */
    791     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x36102AEC: fld dword ptr [ebp - 0x88] */
    792     _st[0] *= _st[1]; /* 0x36102AF2: fmul st(1) */
    793     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102AF4: fstp dword ptr [ebp - 0x24] */
    794     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36102AF7: fld dword ptr [ebp - 0x20] */
    795     _st[0] *= _st[1]; /* 0x36102AFA: fmul st(1) */
    796     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102AFC: fstp dword ptr [ebp - 0x20] */
    797     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36102AFF: fld dword ptr [ebp - 0x1c] */
    798     _st[0] *= _st[1]; /* 0x36102B02: fmul st(1) */
    799     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102B04: fstp dword ptr [ebp - 0x1c] */
    800     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36102B07: fsubr dword ptr [0x36170380] */
    801     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x36102B0D: fld dword ptr [ebp - 0xc4] */
    802     _st[0] *= _st[1]; /* 0x36102B13: fmul st(1) */
    803     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102B15: fstp dword ptr [ebp - 0x18] */
    804     edx = MEM32(ebp + (-0x18)); /* 0x36102B18: mov edx, dword ptr [ebp - 0x18] */
    805     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36102B1B: fld dword ptr [ebp - 0x14] */
    806     MEM32(ebp + (-0x34)) = edx; /* 0x36102B1E: mov dword ptr [ebp - 0x34], edx */
    807     _st[0] *= _st[1]; /* 0x36102B21: fmul st(1) */
    808     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36102B23: fstp dword ptr [ebp - 0x14] */
    809     eax = MEM32(ebp + (-0x14)); /* 0x36102B26: mov eax, dword ptr [ebp - 0x14] */
    810     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36102B29: fld dword ptr [ebp - 0x10] */
    811     _st[0] *= _st[1]; /* 0x36102B2C: fmul st(1) */
    812     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36102B2E: fstp dword ptr [ebp - 0x10] */
    813     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36102B31: fstp st(0) */
    814     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36102B33: fld dword ptr [ebp - 0x18] */
    815     ecx = MEM32(ebp + (-0x10)); /* 0x36102B36: mov ecx, dword ptr [ebp - 0x10] */
    816     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36102B39: fadd dword ptr [ebp - 0x24] */
    817     esi = MEM32(ebp + (-0x28)); /* 0x36102B3C: mov esi, dword ptr [ebp - 0x28] */
    818     MEM32(ebp + (-0x30)) = eax; /* 0x36102B3F: mov dword ptr [ebp - 0x30], eax */
    819     eax = MEM32(ebx + 0x120); /* 0x36102B42: mov eax, dword ptr [ebx + 0x120] */
    820     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36102B48: fstp dword ptr [ebp - 0x34] */
    821     MEM32(ebp + (-0x2C)) = ecx; /* 0x36102B4B: mov dword ptr [ebp - 0x2c], ecx */
    822     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36102B4E: fld dword ptr [ebp - 0x30] */
    823     ecx = MEM32(ebp + (-0x78)); /* 0x36102B51: mov ecx, dword ptr [ebp - 0x78] */
    824     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36102B54: fadd dword ptr [ebp - 0x20] */
    825     edx = ecx + eax; /* 0x36102B57: lea edx, [ecx + eax] */
    826     eax = MEM32(ebp + (-0x34)); /* 0x36102B5A: mov eax, dword ptr [ebp - 0x34] */
    827     MEM32(edx) = eax; /* 0x36102B5D: mov dword ptr [edx], eax */
    828     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36102B5F: fstp dword ptr [ebp - 0x30] */
    829     eax = MEM32(ebp + (-0x30)); /* 0x36102B62: mov eax, dword ptr [ebp - 0x30] */
    830     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36102B65: fld dword ptr [ebp - 0x2c] */
    831     MEM32(edx + 0x4) = eax; /* 0x36102B68: mov dword ptr [edx + 4], eax */
    832     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36102B6B: fadd dword ptr [ebp - 0x1c] */
    833     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    834     esi = esi + 1; /* 0x36102B6E: inc esi */
    835     _flag_k = FK_INC;
    836     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u);
    837     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    838     edi = edi + 0x18u; /* 0x36102B6F: add edi, 0x18 */
    839     _flag_k = FK_ADD;
    840     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    841     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    842     ecx = ecx + 0xCu; /* 0x36102B72: add ecx, 0xc */
    843     _flag_k = FK_ADD;
    844     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36102B75: fstp dword ptr [ebp - 0x2c] */
    845     eax = MEM32(ebp + (-0x2C)); /* 0x36102B78: mov eax, dword ptr [ebp - 0x2c] */
    846     MEM32(edx + 0x8) = eax; /* 0x36102B7B: mov dword ptr [edx + 8], eax */
    847     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36102B7E: mov byte ptr [ebp - 4], 0 */
    848     MEM32(ebp + (-0x28)) = esi; /* 0x36102B82: mov dword ptr [ebp - 0x28], esi */
    849     MEM32(ebp + (-0x78)) = ecx; /* 0x36102B85: mov dword ptr [ebp - 0x78], ecx */
    850     RECOMP_BACKEDGE();
    851     goto L_36102982; /* 0x36102B88: jmp 0x36102982 */
    852 L_36102B8D:
    853     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0x30)); /* 0x36102B8D: fcomp dword ptr [ebx + 0x30] */
    854     fp_pop();
    855     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102B90: fnstsw ax */
    856     /* test HI8(eax), 1 */ /* 0x36102B92: test ah, 1 */
    857     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    858     _cf = 0;
    859     _flag_k = FK_NARROW(FK_TEST, 24);
    860     if (TEST_Z(_flag_a, _flag_b)) goto L_36102BA3; /* 0x36102B95: je 0x36102ba3 */
    861 L_36102B97:
    862     fp_push(*(float*)&MEM32(ebx + 0x2C)); /* 0x36102B97: fld dword ptr [ebx + 0x2c] */
    863     _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x36102B9A: fmul dword ptr [ebx + 0xc] */
    864     _st[0] /= (double)*(float*)ADDR(ebx + 0x30); /* 0x36102B9D: fdiv dword ptr [ebx + 0x30] */
    865     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x40) = _v; } /* 0x36102BA0: fstp dword ptr [ebx + 0x40] */
    866 L_36102BA3:
    867     ecx = MEM32(ebp + (-0xC)); /* 0x36102BA3: mov ecx, dword ptr [ebp - 0xc] */
    868     ebx = POP32_VAL(esp); /* 0x36102BA6: pop ebx */
    869     MEM32(FS_BASE + (0)) = ecx; /* 0x36102BA7: mov dword ptr fs:[0], ecx */
    870     esp = ebp; /* 0x36102BAE: mov esp, ebp */
    871     ebp = POP32_VAL(esp); /* 0x36102BB0: pop ebp */
    872     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102BB1: ret  */
    873     RECOMP_REGS_OUT();
    874 }
    875 
    876 void sub_3610290D(void) {
    877     int _fpu_cmp = 0;
    878     uint32_t _cf = 0;
    879     int _df = 1;
    880     uint32_t _flag_k = FK_NONE;
    881     uint32_t _flag_a = 0, _flag_b = 0;
    882     uint32_t _itail_tgt = 0;
    883     RECOMP_REGS_LOCALS
    884     RECOMP_ENTER(0x3610290Du);
    885 
    886 L_3610290D:
    887     fp_push(*(float*)&MEM32(ebx + 0x10)); /* 0x3610290D: fld dword ptr [ebx + 0x10] */
    888     edi = POP32_VAL(esp); /* 0x36102910: pop edi */
    889     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36102911: fcomp dword ptr [0x3617040c] */
    890     fp_pop();
    891     esi = POP32_VAL(esp); /* 0x36102917: pop esi */
    892     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102918: fnstsw ax */
    893     /* test HI8(eax), 0x41u */ /* 0x3610291A: test ah, 0x41 */
    894     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    895     _cf = 0;
    896     _flag_k = FK_NARROW(FK_TEST, 24);
    897     if (TEST_NZ(_flag_a, _flag_b)) goto L_36102936; /* 0x3610291D: jne 0x36102936 */
    898 L_3610291F:
    899     fp_push(*(float*)&MEM32(ebx + 0x10)); /* 0x3610291F: fld dword ptr [ebx + 0x10] */
    900     _st[0] -= (double)*(float*)ADDR(ebx + 0x34); /* 0x36102922: fsub dword ptr [ebx + 0x34] */
    901     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x36102925: fcomp dword ptr [ebx + 0xc] */
    902     fp_pop();
    903     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102928: fnstsw ax */
    904     /* test HI8(eax), 1 */ /* 0x3610292A: test ah, 1 */
    905     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    906     _cf = 0;
    907     _flag_k = FK_NARROW(FK_TEST, 24);
    908     if (TEST_Z(_flag_a, _flag_b)) goto L_36102936; /* 0x3610292D: je 0x36102936 */
    909 L_3610292F:
    910     edx = MEM32(ebx); /* 0x3610292F: mov edx, dword ptr [ebx] */
    911     ecx = ebx; /* 0x36102931: mov ecx, ebx */
    912     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36102933: call dword ptr [edx + 0x10] */
    913     RECOMP_FLAGS_IN();
    914 L_36102936:
    915     SET_LO8(eax, MEM8(ebx + 0x38)); /* 0x36102936: mov al, byte ptr [ebx + 0x38] */
    916     fp_push(*(float*)&MEM32(ebx + 0xC)); /* 0x36102939: fld dword ptr [ebx + 0xc] */
    917     /* test LO8(eax), LO8(eax) */ /* 0x3610293C: test al, al */
    918     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    919     _cf = 0;
    920     _flag_k = FK_NARROW(FK_TEST, 24);
    921     if (TEST_Z(_flag_a, _flag_b)) goto L_36102B8D; /* 0x3610293E: je 0x36102b8d */
    922 L_36102944:
    923     _st[0] -= (double)*(float*)ADDR(ebx + 0x3C); /* 0x36102944: fsub dword ptr [ebx + 0x3c] */
    924     _st[0] /= (double)*(float*)ADDR(ebx + 0x34); /* 0x36102947: fdiv dword ptr [ebx + 0x34] */
    925     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3610294A: fsubr dword ptr [0x36170380] */
    926     _st[0] *= (double)*(float*)ADDR(ebx + 0x2C); /* 0x36102950: fmul dword ptr [ebx + 0x2c] */
    927     { float _v = (float)_st[0]; *(float*)ADDR(ebx + 0x40) = _v; } /* 0x36102953: fst dword ptr [ebx + 0x40] */
    928     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36102956: fcomp dword ptr [0x3617040c] */
    929     fp_pop();
    930     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610295C: fnstsw ax */
    931     /* test HI8(eax), 0x41u */ /* 0x3610295E: test ah, 0x41 */
    932     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    933     _cf = 0;
    934     _flag_k = FK_NARROW(FK_TEST, 24);
    935     if (TEST_Z(_flag_a, _flag_b)) goto L_36102BA3; /* 0x36102961: je 0x36102ba3 */
    936 L_36102967:
    937     MEM8(ebx + 0x14) = (uint8_t)(1); /* 0x36102967: mov byte ptr [ebx + 0x14], 1 */
    938     ebx = POP32_VAL(esp); /* 0x3610296B: pop ebx */
    939     ecx = MEM32(ebp + (-0xC)); /* 0x3610296C: mov ecx, dword ptr [ebp - 0xc] */
    940     MEM32(FS_BASE + (0)) = ecx; /* 0x3610296F: mov dword ptr fs:[0], ecx */
    941     esp = ebp; /* 0x36102976: mov esp, ebp */
    942     ebp = POP32_VAL(esp); /* 0x36102978: pop ebp */
    943     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102979: ret  */
    944 L_36102B8D:
    945     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0x30)); /* 0x36102B8D: fcomp dword ptr [ebx + 0x30] */
    946     fp_pop();
    947     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102B90: fnstsw ax */
    948     /* test HI8(eax), 1 */ /* 0x36102B92: test ah, 1 */
    949     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    950     _cf = 0;
    951     _flag_k = FK_NARROW(FK_TEST, 24);
    952     if (TEST_Z(_flag_a, _flag_b)) goto L_36102BA3; /* 0x36102B95: je 0x36102ba3 */
    953 L_36102B97:
    954     fp_push(*(float*)&MEM32(ebx + 0x2C)); /* 0x36102B97: fld dword ptr [ebx + 0x2c] */
    955     _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x36102B9A: fmul dword ptr [ebx + 0xc] */
    956     _st[0] /= (double)*(float*)ADDR(ebx + 0x30); /* 0x36102B9D: fdiv dword ptr [ebx + 0x30] */
    957     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x40) = _v; } /* 0x36102BA0: fstp dword ptr [ebx + 0x40] */
    958 L_36102BA3:
    959     ecx = MEM32(ebp + (-0xC)); /* 0x36102BA3: mov ecx, dword ptr [ebp - 0xc] */
    960     ebx = POP32_VAL(esp); /* 0x36102BA6: pop ebx */
    961     MEM32(FS_BASE + (0)) = ecx; /* 0x36102BA7: mov dword ptr fs:[0], ecx */
    962     esp = ebp; /* 0x36102BAE: mov esp, ebp */
    963     ebp = POP32_VAL(esp); /* 0x36102BB0: pop ebp */
    964     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102BB1: ret  */
    965     RECOMP_REGS_OUT();
    966 }
    967 
    968 void sub_36102982(void) {
    969     int _fpu_cmp = 0;
    970     uint32_t _cf = 0;
    971     int _df = 1;
    972     uint32_t _flag_k = FK_NONE;
    973     uint32_t _flag_a = 0, _flag_b = 0;
    974     uint32_t _itail_tgt = 0;
    975     RECOMP_REGS_LOCALS
    976     RECOMP_ENTER(0x36102982u);
    977 
    978     goto L_36102982;
    979 L_3610290D:
    980     fp_push(*(float*)&MEM32(ebx + 0x10)); /* 0x3610290D: fld dword ptr [ebx + 0x10] */
    981     edi = POP32_VAL(esp); /* 0x36102910: pop edi */
    982     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36102911: fcomp dword ptr [0x3617040c] */
    983     fp_pop();
    984     esi = POP32_VAL(esp); /* 0x36102917: pop esi */
    985     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102918: fnstsw ax */
    986     /* test HI8(eax), 0x41u */ /* 0x3610291A: test ah, 0x41 */
    987     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    988     _cf = 0;
    989     _flag_k = FK_NARROW(FK_TEST, 24);
    990     if (TEST_NZ(_flag_a, _flag_b)) goto L_36102936; /* 0x3610291D: jne 0x36102936 */
    991 L_3610291F:
    992     fp_push(*(float*)&MEM32(ebx + 0x10)); /* 0x3610291F: fld dword ptr [ebx + 0x10] */
    993     _st[0] -= (double)*(float*)ADDR(ebx + 0x34); /* 0x36102922: fsub dword ptr [ebx + 0x34] */
    994     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x36102925: fcomp dword ptr [ebx + 0xc] */
    995     fp_pop();
    996     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102928: fnstsw ax */
    997     /* test HI8(eax), 1 */ /* 0x3610292A: test ah, 1 */
    998     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    999     _cf = 0;
   1000     _flag_k = FK_NARROW(FK_TEST, 24);
   1001     if (TEST_Z(_flag_a, _flag_b)) goto L_36102936; /* 0x3610292D: je 0x36102936 */
   1002 L_3610292F:
   1003     edx = MEM32(ebx); /* 0x3610292F: mov edx, dword ptr [ebx] */
   1004     ecx = ebx; /* 0x36102931: mov ecx, ebx */
   1005     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36102933: call dword ptr [edx + 0x10] */
   1006     RECOMP_FLAGS_IN();
   1007 L_36102936:
   1008     SET_LO8(eax, MEM8(ebx + 0x38)); /* 0x36102936: mov al, byte ptr [ebx + 0x38] */
   1009     fp_push(*(float*)&MEM32(ebx + 0xC)); /* 0x36102939: fld dword ptr [ebx + 0xc] */
   1010     /* test LO8(eax), LO8(eax) */ /* 0x3610293C: test al, al */
   1011     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1012     _cf = 0;
   1013     _flag_k = FK_NARROW(FK_TEST, 24);
   1014     if (TEST_Z(_flag_a, _flag_b)) goto L_36102B8D; /* 0x3610293E: je 0x36102b8d */
   1015 L_36102944:
   1016     _st[0] -= (double)*(float*)ADDR(ebx + 0x3C); /* 0x36102944: fsub dword ptr [ebx + 0x3c] */
   1017     _st[0] /= (double)*(float*)ADDR(ebx + 0x34); /* 0x36102947: fdiv dword ptr [ebx + 0x34] */
   1018     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x3610294A: fsubr dword ptr [0x36170380] */
   1019     _st[0] *= (double)*(float*)ADDR(ebx + 0x2C); /* 0x36102950: fmul dword ptr [ebx + 0x2c] */
   1020     { float _v = (float)_st[0]; *(float*)ADDR(ebx + 0x40) = _v; } /* 0x36102953: fst dword ptr [ebx + 0x40] */
   1021     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36102956: fcomp dword ptr [0x3617040c] */
   1022     fp_pop();
   1023     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610295C: fnstsw ax */
   1024     /* test HI8(eax), 0x41u */ /* 0x3610295E: test ah, 0x41 */
   1025     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1026     _cf = 0;
   1027     _flag_k = FK_NARROW(FK_TEST, 24);
   1028     if (TEST_Z(_flag_a, _flag_b)) goto L_36102BA3; /* 0x36102961: je 0x36102ba3 */
   1029 L_36102967:
   1030     MEM8(ebx + 0x14) = (uint8_t)(1); /* 0x36102967: mov byte ptr [ebx + 0x14], 1 */
   1031     ebx = POP32_VAL(esp); /* 0x3610296B: pop ebx */
   1032     ecx = MEM32(ebp + (-0xC)); /* 0x3610296C: mov ecx, dword ptr [ebp - 0xc] */
   1033     MEM32(FS_BASE + (0)) = ecx; /* 0x3610296F: mov dword ptr fs:[0], ecx */
   1034     esp = ebp; /* 0x36102976: mov esp, ebp */
   1035     ebp = POP32_VAL(esp); /* 0x36102978: pop ebp */
   1036     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102979: ret  */
   1037 L_36102982:
   1038     eax = MEM32(ebx + 0x110); /* 0x36102982: mov eax, dword ptr [ebx + 0x110] */
   1039     /* test eax, eax */ /* 0x36102988: test eax, eax */
   1040     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1041     _cf = 0;
   1042     _flag_k = FK_TEST;
   1043     RECOMP_BACKEDGE();
   1044     if (TEST_Z(_flag_a, _flag_b)) goto L_3610290D; /* 0x3610298A: je 0x3610290d */
   1045 L_3610298C:
   1046     ecx = MEM32(ebx + 0x114); /* 0x3610298C: mov ecx, dword ptr [ebx + 0x114] */
   1047     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1049     ecx = ecx - eax; /* 0x36102992: sub ecx, eax */
   1050     _flag_k = FK_CMP;
   1051     eax = 0x2AAAAAABu; /* 0x36102994: mov eax, 0x2aaaaaab */
   1052     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102999: imul ecx */
   1053       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1054       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1055     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3610299B: sar edx, 2 */
   1056     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1057     edx = (uint32_t)((int32_t)edx >> 2u);
   1058     eax = edx; /* 0x3610299E: mov eax, edx */
   1059     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361029A0: shr eax, 0x1f */
   1060     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1061     eax = eax >> 31u; /* 0x361029A0: shr eax, 0x1f */
   1062     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1063     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1064     edx = edx + eax; /* 0x361029A3: add edx, eax */
   1065     _flag_k = FK_ADD;
   1066     /* cmp MEM32(ebp + (-0x28)), edx */ /* 0x361029A5: cmp dword ptr [ebp - 0x28], edx */
   1067     _flag_a = (uint32_t)(MEM32(ebp + (-0x28))); _flag_b = (uint32_t)(edx);
   1068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1069     _flag_k = FK_CMP;
   1070     RECOMP_BACKEDGE();
   1071     if (CMP_AE(_flag_a, _flag_b)) goto L_3610290D; /* 0x361029A8: jae 0x3610290d */
   1072 L_361029AE:
   1073     esi = MEM32(ebx + 0x110); /* 0x361029AE: mov esi, dword ptr [ebx + 0x110] */
   1074     MEM32(ebp + (-0xB8)) = 0x3F800000u; /* 0x361029B4: mov dword ptr [ebp - 0xb8], 0x3f800000 */
   1075     MEM32(ebp + (-0xB4)) = 0; /* 0x361029BE: mov dword ptr [ebp - 0xb4], 0 */
   1076     MEM32(ebp + (-0xB0)) = 0; /* 0x361029C8: mov dword ptr [ebp - 0xb0], 0 */
   1077     MEM32(ebp + (-0xAC)) = 0; /* 0x361029D2: mov dword ptr [ebp - 0xac], 0 */
   1078     MEM32(ebp + (-0xA8)) = 0; /* 0x361029DC: mov dword ptr [ebp - 0xa8], 0 */
   1079     MEM32(ebp + (-0xA4)) = 0x3F800000u; /* 0x361029E6: mov dword ptr [ebp - 0xa4], 0x3f800000 */
   1080     MEM32(ebp + (-0xA0)) = 0; /* 0x361029F0: mov dword ptr [ebp - 0xa0], 0 */
   1081     MEM32(ebp + (-0x9C)) = 0; /* 0x361029FA: mov dword ptr [ebp - 0x9c], 0 */
   1082     MEM32(ebp + (-0x98)) = 0; /* 0x36102A04: mov dword ptr [ebp - 0x98], 0 */
   1083     MEM32(ebp + (-0x94)) = 0; /* 0x36102A0E: mov dword ptr [ebp - 0x94], 0 */
   1084     MEM32(ebp + (-0x90)) = 0x3F800000u; /* 0x36102A18: mov dword ptr [ebp - 0x90], 0x3f800000 */
   1085     MEM32(ebp + (-0x8C)) = 0; /* 0x36102A22: mov dword ptr [ebp - 0x8c], 0 */
   1086     MEM32(ebp + (-0x88)) = 0; /* 0x36102A2C: mov dword ptr [ebp - 0x88], 0 */
   1087     MEM32(ebp + (-0x84)) = 0; /* 0x36102A36: mov dword ptr [ebp - 0x84], 0 */
   1088     MEM32(ebp + (-0x80)) = 0; /* 0x36102A40: mov dword ptr [ebp - 0x80], 0 */
   1089     MEM32(ebp + (-0x7C)) = 0x3F800000u; /* 0x36102A47: mov dword ptr [ebp - 0x7c], 0x3f800000 */
   1090     edx = MEM32(edi + esi); /* 0x36102A4E: mov edx, dword ptr [edi + esi] */
   1091     ecx = ebp + (-0xB8); /* 0x36102A51: lea ecx, [ebp - 0xb8] */
   1092     PUSH32(esp, ecx); /* 0x36102A57: push ecx */
   1093     ecx = MEM32(ebx + 0x108); /* 0x36102A58: mov ecx, dword ptr [ebx + 0x108] */
   1094     PUSH32(esp, edx); /* 0x36102A5E: push edx */
   1095     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36102A5F: mov byte ptr [ebp - 4], 1 */
   1096     RECOMP_ICALL(0x36133580u); /* 0x36102A63: call 0x36133580 */ /* not lifted */
   1097     RECOMP_FLAGS_IN();
   1098     eax = MEM32(ebp + (-0x88)); /* 0x36102A68: mov eax, dword ptr [ebp - 0x88] */
   1099     ecx = MEM32(ebp + (-0x84)); /* 0x36102A6E: mov ecx, dword ptr [ebp - 0x84] */
   1100     edx = MEM32(ebp + (-0x80)); /* 0x36102A74: mov edx, dword ptr [ebp - 0x80] */
   1101     MEM32(ebp + (-0xC4)) = eax; /* 0x36102A77: mov dword ptr [ebp - 0xc4], eax */
   1102     MEM32(ebp + (-0xC0)) = ecx; /* 0x36102A7D: mov dword ptr [ebp - 0xc0], ecx */
   1103     ecx = MEM32(edi + esi + 0x4); /* 0x36102A83: mov ecx, dword ptr [edi + esi + 4] */
   1104     eax = ebp + (-0xB8); /* 0x36102A87: lea eax, [ebp - 0xb8] */
   1105     PUSH32(esp, eax); /* 0x36102A8D: push eax */
   1106     PUSH32(esp, ecx); /* 0x36102A8E: push ecx */
   1107     ecx = MEM32(ebx + 0x108); /* 0x36102A8F: mov ecx, dword ptr [ebx + 0x108] */
   1108     MEM32(ebp + (-0xBC)) = edx; /* 0x36102A95: mov dword ptr [ebp - 0xbc], edx */
   1109     RECOMP_ICALL(0x36133580u); /* 0x36102A9B: call 0x36133580 */ /* not lifted */
   1110     RECOMP_FLAGS_IN();
   1111     fp_push(*(float*)&MEM32(edi + esi + 0x8)); /* 0x36102AA0: fld dword ptr [edi + esi + 8] */
   1112     _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x36102AA4: fmul dword ptr [ebx + 0xc] */
   1113     edx = MEM32(ebp + (-0x88)); /* 0x36102AA7: mov edx, dword ptr [ebp - 0x88] */
   1114     eax = MEM32(ebp + (-0x84)); /* 0x36102AAD: mov eax, dword ptr [ebp - 0x84] */
   1115     ecx = MEM32(ebp + (-0x80)); /* 0x36102AB3: mov ecx, dword ptr [ebp - 0x80] */
   1116     _st[0] += (double)*(float*)ADDR(edi + esi + 0xC); /* 0x36102AB6: fadd dword ptr [edi + esi + 0xc] */
   1117     MEM32(ebp + (-0x24)) = edx; /* 0x36102ABA: mov dword ptr [ebp - 0x24], edx */
   1118     edx = MEM32(ebp + (-0xC4)); /* 0x36102ABD: mov edx, dword ptr [ebp - 0xc4] */
   1119     MEM32(ebp + (-0x20)) = eax; /* 0x36102AC3: mov dword ptr [ebp - 0x20], eax */
   1120     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36102AC6: fsin  */
   1121     eax = MEM32(ebp + (-0xC0)); /* 0x36102AC8: mov eax, dword ptr [ebp - 0xc0] */
   1122     MEM32(ebp + (-0x1C)) = ecx; /* 0x36102ACE: mov dword ptr [ebp - 0x1c], ecx */
   1123     ecx = MEM32(ebp + (-0xBC)); /* 0x36102AD1: mov ecx, dword ptr [ebp - 0xbc] */
   1124     MEM32(ebp + (-0x18)) = edx; /* 0x36102AD7: mov dword ptr [ebp - 0x18], edx */
   1125     MEM32(ebp + (-0x14)) = eax; /* 0x36102ADA: mov dword ptr [ebp - 0x14], eax */
   1126     MEM32(ebp + (-0x10)) = ecx; /* 0x36102ADD: mov dword ptr [ebp - 0x10], ecx */
   1127     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x36102AE0: fadd dword ptr [0x36170380] */
   1128     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36102AE6: fmul dword ptr [0x36170464] */
   1129     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x36102AEC: fld dword ptr [ebp - 0x88] */
   1130     _st[0] *= _st[1]; /* 0x36102AF2: fmul st(1) */
   1131     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102AF4: fstp dword ptr [ebp - 0x24] */
   1132     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36102AF7: fld dword ptr [ebp - 0x20] */
   1133     _st[0] *= _st[1]; /* 0x36102AFA: fmul st(1) */
   1134     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102AFC: fstp dword ptr [ebp - 0x20] */
   1135     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36102AFF: fld dword ptr [ebp - 0x1c] */
   1136     _st[0] *= _st[1]; /* 0x36102B02: fmul st(1) */
   1137     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102B04: fstp dword ptr [ebp - 0x1c] */
   1138     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36102B07: fsubr dword ptr [0x36170380] */
   1139     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x36102B0D: fld dword ptr [ebp - 0xc4] */
   1140     _st[0] *= _st[1]; /* 0x36102B13: fmul st(1) */
   1141     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102B15: fstp dword ptr [ebp - 0x18] */
   1142     edx = MEM32(ebp + (-0x18)); /* 0x36102B18: mov edx, dword ptr [ebp - 0x18] */
   1143     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36102B1B: fld dword ptr [ebp - 0x14] */
   1144     MEM32(ebp + (-0x34)) = edx; /* 0x36102B1E: mov dword ptr [ebp - 0x34], edx */
   1145     _st[0] *= _st[1]; /* 0x36102B21: fmul st(1) */
   1146     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36102B23: fstp dword ptr [ebp - 0x14] */
   1147     eax = MEM32(ebp + (-0x14)); /* 0x36102B26: mov eax, dword ptr [ebp - 0x14] */
   1148     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36102B29: fld dword ptr [ebp - 0x10] */
   1149     _st[0] *= _st[1]; /* 0x36102B2C: fmul st(1) */
   1150     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36102B2E: fstp dword ptr [ebp - 0x10] */
   1151     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36102B31: fstp st(0) */
   1152     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36102B33: fld dword ptr [ebp - 0x18] */
   1153     ecx = MEM32(ebp + (-0x10)); /* 0x36102B36: mov ecx, dword ptr [ebp - 0x10] */
   1154     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36102B39: fadd dword ptr [ebp - 0x24] */
   1155     esi = MEM32(ebp + (-0x28)); /* 0x36102B3C: mov esi, dword ptr [ebp - 0x28] */
   1156     MEM32(ebp + (-0x30)) = eax; /* 0x36102B3F: mov dword ptr [ebp - 0x30], eax */
   1157     eax = MEM32(ebx + 0x120); /* 0x36102B42: mov eax, dword ptr [ebx + 0x120] */
   1158     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36102B48: fstp dword ptr [ebp - 0x34] */
   1159     MEM32(ebp + (-0x2C)) = ecx; /* 0x36102B4B: mov dword ptr [ebp - 0x2c], ecx */
   1160     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36102B4E: fld dword ptr [ebp - 0x30] */
   1161     ecx = MEM32(ebp + (-0x78)); /* 0x36102B51: mov ecx, dword ptr [ebp - 0x78] */
   1162     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36102B54: fadd dword ptr [ebp - 0x20] */
   1163     edx = ecx + eax; /* 0x36102B57: lea edx, [ecx + eax] */
   1164     eax = MEM32(ebp + (-0x34)); /* 0x36102B5A: mov eax, dword ptr [ebp - 0x34] */
   1165     MEM32(edx) = eax; /* 0x36102B5D: mov dword ptr [edx], eax */
   1166     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36102B5F: fstp dword ptr [ebp - 0x30] */
   1167     eax = MEM32(ebp + (-0x30)); /* 0x36102B62: mov eax, dword ptr [ebp - 0x30] */
   1168     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36102B65: fld dword ptr [ebp - 0x2c] */
   1169     MEM32(edx + 0x4) = eax; /* 0x36102B68: mov dword ptr [edx + 4], eax */
   1170     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36102B6B: fadd dword ptr [ebp - 0x1c] */
   1171     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   1172     esi = esi + 1; /* 0x36102B6E: inc esi */
   1173     _flag_k = FK_INC;
   1174     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u);
   1175     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1176     edi = edi + 0x18u; /* 0x36102B6F: add edi, 0x18 */
   1177     _flag_k = FK_ADD;
   1178     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   1179     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1180     ecx = ecx + 0xCu; /* 0x36102B72: add ecx, 0xc */
   1181     _flag_k = FK_ADD;
   1182     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36102B75: fstp dword ptr [ebp - 0x2c] */
   1183     eax = MEM32(ebp + (-0x2C)); /* 0x36102B78: mov eax, dword ptr [ebp - 0x2c] */
   1184     MEM32(edx + 0x8) = eax; /* 0x36102B7B: mov dword ptr [edx + 8], eax */
   1185     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36102B7E: mov byte ptr [ebp - 4], 0 */
   1186     MEM32(ebp + (-0x28)) = esi; /* 0x36102B82: mov dword ptr [ebp - 0x28], esi */
   1187     MEM32(ebp + (-0x78)) = ecx; /* 0x36102B85: mov dword ptr [ebp - 0x78], ecx */
   1188     RECOMP_BACKEDGE();
   1189     goto L_36102982; /* 0x36102B88: jmp 0x36102982 */
   1190 L_36102B8D:
   1191     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0x30)); /* 0x36102B8D: fcomp dword ptr [ebx + 0x30] */
   1192     fp_pop();
   1193     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102B90: fnstsw ax */
   1194     /* test HI8(eax), 1 */ /* 0x36102B92: test ah, 1 */
   1195     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1196     _cf = 0;
   1197     _flag_k = FK_NARROW(FK_TEST, 24);
   1198     if (TEST_Z(_flag_a, _flag_b)) goto L_36102BA3; /* 0x36102B95: je 0x36102ba3 */
   1199 L_36102B97:
   1200     fp_push(*(float*)&MEM32(ebx + 0x2C)); /* 0x36102B97: fld dword ptr [ebx + 0x2c] */
   1201     _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x36102B9A: fmul dword ptr [ebx + 0xc] */
   1202     _st[0] /= (double)*(float*)ADDR(ebx + 0x30); /* 0x36102B9D: fdiv dword ptr [ebx + 0x30] */
   1203     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x40) = _v; } /* 0x36102BA0: fstp dword ptr [ebx + 0x40] */
   1204 L_36102BA3:
   1205     ecx = MEM32(ebp + (-0xC)); /* 0x36102BA3: mov ecx, dword ptr [ebp - 0xc] */
   1206     ebx = POP32_VAL(esp); /* 0x36102BA6: pop ebx */
   1207     MEM32(FS_BASE + (0)) = ecx; /* 0x36102BA7: mov dword ptr fs:[0], ecx */
   1208     esp = ebp; /* 0x36102BAE: mov esp, ebp */
   1209     ebp = POP32_VAL(esp); /* 0x36102BB0: pop ebp */
   1210     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102BB1: ret  */
   1211     RECOMP_REGS_OUT();
   1212 }
   1213 
   1214 void sub_36102B8D(void) {
   1215     int _fpu_cmp = 0;
   1216     uint32_t _cf = 0;
   1217     int _df = 1;
   1218     uint32_t _flag_k = FK_NONE;
   1219     uint32_t _flag_a = 0, _flag_b = 0;
   1220     uint32_t _itail_tgt = 0;
   1221     RECOMP_REGS_LOCALS
   1222     RECOMP_ENTER(0x36102B8Du);
   1223 
   1224 L_36102B8D:
   1225     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0x30)); /* 0x36102B8D: fcomp dword ptr [ebx + 0x30] */
   1226     fp_pop();
   1227     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36102B90: fnstsw ax */
   1228     /* test HI8(eax), 1 */ /* 0x36102B92: test ah, 1 */
   1229     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1230     _cf = 0;
   1231     _flag_k = FK_NARROW(FK_TEST, 24);
   1232     if (TEST_Z(_flag_a, _flag_b)) goto L_36102BA3; /* 0x36102B95: je 0x36102ba3 */
   1233 L_36102B97:
   1234     fp_push(*(float*)&MEM32(ebx + 0x2C)); /* 0x36102B97: fld dword ptr [ebx + 0x2c] */
   1235     _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x36102B9A: fmul dword ptr [ebx + 0xc] */
   1236     _st[0] /= (double)*(float*)ADDR(ebx + 0x30); /* 0x36102B9D: fdiv dword ptr [ebx + 0x30] */
   1237     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x40) = _v; } /* 0x36102BA0: fstp dword ptr [ebx + 0x40] */
   1238 L_36102BA3:
   1239     ecx = MEM32(ebp + (-0xC)); /* 0x36102BA3: mov ecx, dword ptr [ebp - 0xc] */
   1240     ebx = POP32_VAL(esp); /* 0x36102BA6: pop ebx */
   1241     MEM32(FS_BASE + (0)) = ecx; /* 0x36102BA7: mov dword ptr fs:[0], ecx */
   1242     esp = ebp; /* 0x36102BAE: mov esp, ebp */
   1243     ebp = POP32_VAL(esp); /* 0x36102BB0: pop ebp */
   1244     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102BB1: ret  */
   1245     RECOMP_REGS_OUT();
   1246 }
   1247 
   1248 void sub_36102BA3(void) {
   1249     int _fpu_cmp = 0;
   1250     uint32_t _cf = 0;
   1251     int _df = 1;
   1252     uint32_t _flag_k = FK_NONE;
   1253     uint32_t _flag_a = 0, _flag_b = 0;
   1254     uint32_t _itail_tgt = 0;
   1255     RECOMP_REGS_LOCALS
   1256     RECOMP_ENTER(0x36102BA3u);
   1257 
   1258 L_36102BA3:
   1259     ecx = MEM32(ebp + (-0xC)); /* 0x36102BA3: mov ecx, dword ptr [ebp - 0xc] */
   1260     ebx = POP32_VAL(esp); /* 0x36102BA6: pop ebx */
   1261     MEM32(FS_BASE + (0)) = ecx; /* 0x36102BA7: mov dword ptr fs:[0], ecx */
   1262     esp = ebp; /* 0x36102BAE: mov esp, ebp */
   1263     ebp = POP32_VAL(esp); /* 0x36102BB0: pop ebp */
   1264     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102BB1: ret  */
   1265     RECOMP_REGS_OUT();
   1266 }
   1267 
   1268 void sub_36102BC0(void) {
   1269     int _fpu_cmp = 0;
   1270     uint32_t _cf = 0;
   1271     int _df = 1;
   1272     uint32_t _flag_k = FK_NONE;
   1273     uint32_t _flag_a = 0, _flag_b = 0;
   1274     uint32_t _itail_tgt = 0;
   1275     RECOMP_REGS_LOCALS
   1276     RECOMP_ENTER(0x36102BC0u);
   1277 
   1278 L_36102BC0:
   1279     PUSH32(esp, ebp); /* 0x36102BC0: push ebp */
   1280     ebp = esp; /* 0x36102BC1: mov ebp, esp */
   1281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   1282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1283     esp = esp - 0x2Cu; /* 0x36102BC3: sub esp, 0x2c */
   1284     _flag_k = FK_CMP;
   1285     PUSH32(esp, ebx); /* 0x36102BC6: push ebx */
   1286     PUSH32(esp, esi); /* 0x36102BC7: push esi */
   1287     ebx = ecx; /* 0x36102BC8: mov ebx, ecx */
   1288     eax = MEM32(ebx + 0x4); /* 0x36102BCA: mov eax, dword ptr [ebx + 4] */
   1289     PUSH32(esp, edi); /* 0x36102BCD: push edi */
   1290     PUSH32(esp, eax); /* 0x36102BCE: push eax */
   1291     RECOMP_ICALL(0x360F7B00u); /* 0x36102BCF: call 0x360f7b00 */ /* not lifted */
   1292     RECOMP_FLAGS_IN();
   1293     ecx = eax; /* 0x36102BD4: mov ecx, eax */
   1294     RECOMP_ICALL(0x360FBFF0u); /* 0x36102BD6: call 0x360fbff0 */ /* not lifted */
   1295     RECOMP_FLAGS_IN();
   1296     ecx = eax; /* 0x36102BDB: mov ecx, eax */
   1297     RECOMP_ICALL(0x361371A0u); /* 0x36102BDD: call 0x361371a0 */ /* not lifted */
   1298     RECOMP_FLAGS_IN();
   1299     edi = eax; /* 0x36102BE2: mov edi, eax */
   1300     PUSH32(esp, 0); /* 0x36102BE4: push 0 */
   1301     ecx = edi; /* 0x36102BE6: mov ecx, edi */
   1302     MEM32(ebp + (-0x4)) = edi; /* 0x36102BE8: mov dword ptr [ebp - 4], edi */
   1303     RECOMP_ICALL(0x36136FE0u); /* 0x36102BEB: call 0x36136fe0 */ /* not lifted */
   1304     RECOMP_FLAGS_IN();
   1305     PUSH32(esp, 8); /* 0x36102BF0: push 8 */
   1306     ecx = edi; /* 0x36102BF2: mov ecx, edi */
   1307     MEM32(ebx + 0x20) = eax; /* 0x36102BF4: mov dword ptr [ebx + 0x20], eax */
   1308     RECOMP_ICALL(0x36137010u); /* 0x36102BF7: call 0x36137010 */ /* not lifted */
   1309     RECOMP_FLAGS_IN();
   1310     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x10) = _v; } /* 0x36102BFC: fstp dword ptr [ebx + 0x10] */
   1311     PUSH32(esp, 9); /* 0x36102BFF: push 9 */
   1312     ecx = edi; /* 0x36102C01: mov ecx, edi */
   1313     RECOMP_ICALL(0x36136FE0u); /* 0x36102C03: call 0x36136fe0 */ /* not lifted */
   1314     RECOMP_FLAGS_IN();
   1315     PUSH32(esp, 0xAu); /* 0x36102C08: push 0xa */
   1316     ecx = edi; /* 0x36102C0A: mov ecx, edi */
   1317     MEM32(ebx + 0x24) = eax; /* 0x36102C0C: mov dword ptr [ebx + 0x24], eax */
   1318     RECOMP_ICALL(0x36136FE0u); /* 0x36102C0F: call 0x36136fe0 */ /* not lifted */
   1319     RECOMP_FLAGS_IN();
   1320     PUSH32(esp, 0xBu); /* 0x36102C14: push 0xb */
   1321     ecx = edi; /* 0x36102C16: mov ecx, edi */
   1322     MEM32(ebx + 0x28) = eax; /* 0x36102C18: mov dword ptr [ebx + 0x28], eax */
   1323     RECOMP_ICALL(0x36137010u); /* 0x36102C1B: call 0x36137010 */ /* not lifted */
   1324     RECOMP_FLAGS_IN();
   1325     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x2C) = _v; } /* 0x36102C20: fstp dword ptr [ebx + 0x2c] */
   1326     PUSH32(esp, 0xCu); /* 0x36102C23: push 0xc */
   1327     ecx = edi; /* 0x36102C25: mov ecx, edi */
   1328     RECOMP_ICALL(0x36137010u); /* 0x36102C27: call 0x36137010 */ /* not lifted */
   1329     RECOMP_FLAGS_IN();
   1330     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x30) = _v; } /* 0x36102C2C: fstp dword ptr [ebx + 0x30] */
   1331     PUSH32(esp, 0xDu); /* 0x36102C2F: push 0xd */
   1332     ecx = edi; /* 0x36102C31: mov ecx, edi */
   1333     RECOMP_ICALL(0x36137010u); /* 0x36102C33: call 0x36137010 */ /* not lifted */
   1334     RECOMP_FLAGS_IN();
   1335     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x34) = _v; } /* 0x36102C38: fstp dword ptr [ebx + 0x34] */
   1336     eax = MEM32(ebx + 0x28); /* 0x36102C3B: mov eax, dword ptr [ebx + 0x28] */
   1337     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0);
   1338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1339     eax = eax - 0; /* 0x36102C3E: sub eax, 0 */
   1340     _flag_k = FK_CMP;
   1341     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_36102C6F; /* 0x36102C41: je 0x36102c6f */
   1342 L_36102C43:
   1343     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1344     eax = eax - 1; /* 0x36102C43: dec eax */
   1345     _flag_k = FK_DEC;
   1346     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36102F8E; /* 0x36102C44: jne 0x36102f8e */
   1347 L_36102C4A:
   1348     PUSH32(esp, 0xEu); /* 0x36102C4A: push 0xe */
   1349     ecx = edi; /* 0x36102C4C: mov ecx, edi */
   1350     RECOMP_ICALL(0x36137010u); /* 0x36102C4E: call 0x36137010 */ /* not lifted */
   1351     RECOMP_FLAGS_IN();
   1352     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x12C) = _v; } /* 0x36102C53: fstp dword ptr [ebx + 0x12c] */
   1353     PUSH32(esp, 0xFu); /* 0x36102C59: push 0xf */
   1354     ecx = edi; /* 0x36102C5B: mov ecx, edi */
   1355     RECOMP_ICALL(0x36137010u); /* 0x36102C5D: call 0x36137010 */ /* not lifted */
   1356     RECOMP_FLAGS_IN();
   1357     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x130) = _v; } /* 0x36102C62: fstp dword ptr [ebx + 0x130] */
   1358     edi = POP32_VAL(esp); /* 0x36102C68: pop edi */
   1359     esi = POP32_VAL(esp); /* 0x36102C69: pop esi */
   1360     ebx = POP32_VAL(esp); /* 0x36102C6A: pop ebx */
   1361     esp = ebp; /* 0x36102C6B: mov esp, ebp */
   1362     ebp = POP32_VAL(esp); /* 0x36102C6D: pop ebp */
   1363     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102C6E: ret  */
   1364 L_36102C6F:
   1365     PUSH32(esp, 0xEu); /* 0x36102C6F: push 0xe */
   1366     ecx = edi; /* 0x36102C71: mov ecx, edi */
   1367     RECOMP_ICALL(0x36136FE0u); /* 0x36102C73: call 0x36136fe0 */ /* not lifted */
   1368     RECOMP_FLAGS_IN();
   1369     ecx = eax; /* 0x36102C78: mov ecx, eax */
   1370     eax = MEM32(ebx + 0x120); /* 0x36102C7A: mov eax, dword ptr [ebx + 0x120] */
   1371     /* test eax, eax */ /* 0x36102C80: test eax, eax */
   1372     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1373     _cf = 0;
   1374     _flag_k = FK_TEST;
   1375     MEM32(ebp + (-0xC)) = ecx; /* 0x36102C82: mov dword ptr [ebp - 0xc], ecx */
   1376     if (TEST_NZ(_flag_a, _flag_b)) goto L_36102C8B; /* 0x36102C85: jne 0x36102c8b */
   1377 L_36102C87:
   1378     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1379     edx = 0; /* 0x36102C87: xor edx, edx */
   1380     _cf = 0;
   1381     _flag_k = FK_TEST;
   1382     goto L_36102CA3; /* 0x36102C89: jmp 0x36102ca3 */
   1383 L_36102C8B:
   1384     edx = MEM32(ebx + 0x128); /* 0x36102C8B: mov edx, dword ptr [ebx + 0x128] */
   1385     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1387     edx = edx - eax; /* 0x36102C91: sub edx, eax */
   1388     _flag_k = FK_CMP;
   1389     eax = 0x2AAAAAABu; /* 0x36102C93: mov eax, 0x2aaaaaab */
   1390     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36102C98: imul edx */
   1391       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1392       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1393     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36102C9A: sar edx, 1 */
   1394     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1395     edx = (uint32_t)((int32_t)edx >> 1u);
   1396     eax = edx; /* 0x36102C9C: mov eax, edx */
   1397     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102C9E: shr eax, 0x1f */
   1398     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1399     eax = eax >> 31u; /* 0x36102C9E: shr eax, 0x1f */
   1400     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1402     edx = edx + eax; /* 0x36102CA1: add edx, eax */
   1403     _flag_k = FK_ADD;
   1404 L_36102CA3:
   1405     /* cmp edx, ecx */ /* 0x36102CA3: cmp edx, ecx */
   1406     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1408     _flag_k = FK_CMP;
   1409     if (CMP_AE(_flag_a, _flag_b)) goto L_36102D67; /* 0x36102CA5: jae 0x36102d67 */
   1410 L_36102CAB:
   1411     /* test ecx, ecx */ /* 0x36102CAB: test ecx, ecx */
   1412     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1413     _cf = 0;
   1414     _flag_k = FK_TEST;
   1415     eax = ecx; /* 0x36102CAD: mov eax, ecx */
   1416     if (TEST_NS(_flag_a, _flag_b)) goto L_36102CB3; /* 0x36102CAF: jge 0x36102cb3 */
   1417 L_36102CB1:
   1418     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1419     eax = 0; /* 0x36102CB1: xor eax, eax */
   1420     _cf = 0;
   1421     _flag_k = FK_TEST;
   1422 L_36102CB3:
   1423     ecx = eax + eax * 2; /* 0x36102CB3: lea ecx, [eax + eax*2] */
   1424     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36102CB6: shl ecx, 2 */
   1425     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1426     ecx = ecx << 2u; /* 0x36102CB6: shl ecx, 2 */
   1427     PUSH32(esp, ecx); /* 0x36102CB9: push ecx */
   1428     RECOMP_ICALL(0x3615FD6Au); /* 0x36102CBA: call 0x3615fd6a */ /* not lifted */
   1429     RECOMP_FLAGS_IN();
   1430     edx = MEM32(ebx + 0x124); /* 0x36102CBF: mov edx, dword ptr [ebx + 0x124] */
   1431     esi = eax; /* 0x36102CC5: mov esi, eax */
   1432     eax = MEM32(ebx + 0x120); /* 0x36102CC7: mov eax, dword ptr [ebx + 0x120] */
   1433     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1435     esp = esp + 4; /* 0x36102CCD: add esp, 4 */
   1436     _flag_k = FK_ADD;
   1437     /* cmp eax, edx */ /* 0x36102CD0: cmp eax, edx */
   1438     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1440     _flag_k = FK_CMP;
   1441     ecx = esi; /* 0x36102CD2: mov ecx, esi */
   1442     MEM32(ebp + (-0x10)) = esi; /* 0x36102CD4: mov dword ptr [ebp - 0x10], esi */
   1443     MEM32(ebp + (-0x8)) = ecx; /* 0x36102CD7: mov dword ptr [ebp - 8], ecx */
   1444     MEM32(ebp + (-0x14)) = edx; /* 0x36102CDA: mov dword ptr [ebp - 0x14], edx */
   1445     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102D0B; /* 0x36102CDD: je 0x36102d0b */
   1446 L_36102CDF:
   1447     /* test ecx, ecx */ /* 0x36102CDF: test ecx, ecx */
   1448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1449     _cf = 0;
   1450     _flag_k = FK_TEST;
   1451     if (TEST_Z(_flag_a, _flag_b)) goto L_36102CFE; /* 0x36102CE1: je 0x36102cfe */
   1452 L_36102CE3:
   1453     edx = eax; /* 0x36102CE3: mov edx, eax */
   1454     esi = MEM32(edx); /* 0x36102CE5: mov esi, dword ptr [edx] */
   1455     MEM32(ecx) = esi; /* 0x36102CE7: mov dword ptr [ecx], esi */
   1456     esi = MEM32(edx + 0x4); /* 0x36102CE9: mov esi, dword ptr [edx + 4] */
   1457     MEM32(ecx + 0x4) = esi; /* 0x36102CEC: mov dword ptr [ecx + 4], esi */
   1458     edx = MEM32(edx + 0x8); /* 0x36102CEF: mov edx, dword ptr [edx + 8] */
   1459     esi = MEM32(ebp + (-0x10)); /* 0x36102CF2: mov esi, dword ptr [ebp - 0x10] */
   1460     MEM32(ecx + 0x8) = edx; /* 0x36102CF5: mov dword ptr [ecx + 8], edx */
   1461     ecx = MEM32(ebp + (-0x8)); /* 0x36102CF8: mov ecx, dword ptr [ebp - 8] */
   1462     edx = MEM32(ebp + (-0x14)); /* 0x36102CFB: mov edx, dword ptr [ebp - 0x14] */
   1463 L_36102CFE:
   1464     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   1465     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1466     ecx = ecx + 0xCu; /* 0x36102CFE: add ecx, 0xc */
   1467     _flag_k = FK_ADD;
   1468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1469     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1470     eax = eax + 0xCu; /* 0x36102D01: add eax, 0xc */
   1471     _flag_k = FK_ADD;
   1472     /* cmp eax, edx */ /* 0x36102D04: cmp eax, edx */
   1473     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1475     _flag_k = FK_CMP;
   1476     MEM32(ebp + (-0x8)) = ecx; /* 0x36102D06: mov dword ptr [ebp - 8], ecx */
   1477     RECOMP_BACKEDGE();
   1478     if (CMP_NE(_flag_a, _flag_b)) goto L_36102CDF; /* 0x36102D09: jne 0x36102cdf */
   1479 L_36102D0B:
   1480     eax = MEM32(ebx + 0x120); /* 0x36102D0B: mov eax, dword ptr [ebx + 0x120] */
   1481     PUSH32(esp, eax); /* 0x36102D11: push eax */
   1482     MEM32(ebp + (-0x14)) = eax; /* 0x36102D12: mov dword ptr [ebp - 0x14], eax */
   1483     RECOMP_ICALL(0x3615FCC4u); /* 0x36102D15: call 0x3615fcc4 */ /* not lifted */
   1484     RECOMP_FLAGS_IN();
   1485     eax = MEM32(ebp + (-0xC)); /* 0x36102D1A: mov eax, dword ptr [ebp - 0xc] */
   1486     eax = eax + eax * 2; /* 0x36102D1D: lea eax, [eax + eax*2] */
   1487     ecx = esi + eax * 4; /* 0x36102D20: lea ecx, [esi + eax*4] */
   1488     eax = MEM32(ebx + 0x120); /* 0x36102D23: mov eax, dword ptr [ebx + 0x120] */
   1489     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1490     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1491     esp = esp + 4; /* 0x36102D29: add esp, 4 */
   1492     _flag_k = FK_ADD;
   1493     /* test eax, eax */ /* 0x36102D2C: test eax, eax */
   1494     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1495     _cf = 0;
   1496     _flag_k = FK_TEST;
   1497     MEM32(ebx + 0x128) = ecx; /* 0x36102D2E: mov dword ptr [ebx + 0x128], ecx */
   1498     if (TEST_NZ(_flag_a, _flag_b)) goto L_36102D3A; /* 0x36102D34: jne 0x36102d3a */
   1499 L_36102D36:
   1500     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1501     edx = 0; /* 0x36102D36: xor edx, edx */
   1502     _cf = 0;
   1503     _flag_k = FK_TEST;
   1504     goto L_36102D52; /* 0x36102D38: jmp 0x36102d52 */
   1505 L_36102D3A:
   1506     ecx = MEM32(ebx + 0x124); /* 0x36102D3A: mov ecx, dword ptr [ebx + 0x124] */
   1507     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1508     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1509     ecx = ecx - eax; /* 0x36102D40: sub ecx, eax */
   1510     _flag_k = FK_CMP;
   1511     eax = 0x2AAAAAABu; /* 0x36102D42: mov eax, 0x2aaaaaab */
   1512     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102D47: imul ecx */
   1513       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1514       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1515     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36102D49: sar edx, 1 */
   1516     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1517     edx = (uint32_t)((int32_t)edx >> 1u);
   1518     eax = edx; /* 0x36102D4B: mov eax, edx */
   1519     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102D4D: shr eax, 0x1f */
   1520     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1521     eax = eax >> 31u; /* 0x36102D4D: shr eax, 0x1f */
   1522     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1524     edx = edx + eax; /* 0x36102D50: add edx, eax */
   1525     _flag_k = FK_ADD;
   1526 L_36102D52:
   1527     ecx = edx + edx * 2; /* 0x36102D52: lea ecx, [edx + edx*2] */
   1528     edx = esi + ecx * 4; /* 0x36102D55: lea edx, [esi + ecx*4] */
   1529     ecx = MEM32(ebp + (-0xC)); /* 0x36102D58: mov ecx, dword ptr [ebp - 0xc] */
   1530     MEM32(ebx + 0x124) = edx; /* 0x36102D5B: mov dword ptr [ebx + 0x124], edx */
   1531     MEM32(ebx + 0x120) = esi; /* 0x36102D61: mov dword ptr [ebx + 0x120], esi */
   1532 L_36102D67:
   1533     /* test ecx, ecx */ /* 0x36102D67: test ecx, ecx */
   1534     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1535     _cf = 0;
   1536     _flag_k = FK_TEST;
   1537     if (TEST_Z(_flag_a, _flag_b)) goto L_36102F8E; /* 0x36102D69: jbe 0x36102f8e */
   1538 L_36102D6F:
   1539     esi = 0x11u; /* 0x36102D6F: mov esi, 0x11 */
   1540     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10Cu);
   1541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1542     ebx = ebx + 0x10Cu; /* 0x36102D74: add ebx, 0x10c */
   1543     _flag_k = FK_ADD;
   1544     MEM32(ebp + (-0x8)) = esi; /* 0x36102D7A: mov dword ptr [ebp - 8], esi */
   1545     MEM32(ebp + (-0x10)) = ecx; /* 0x36102D7D: mov dword ptr [ebp - 0x10], ecx */
   1546     goto L_36102D85; /* 0x36102D80: jmp 0x36102d85 */
   1547 L_36102D82:
   1548     esi = MEM32(ebp + (-0x8)); /* 0x36102D82: mov esi, dword ptr [ebp - 8] */
   1549 L_36102D85:
   1550     eax = esi + (-0x2); /* 0x36102D85: lea eax, [esi - 2] */
   1551     PUSH32(esp, eax); /* 0x36102D88: push eax */
   1552     ecx = edi; /* 0x36102D89: mov ecx, edi */
   1553     RECOMP_ICALL(0x36136FE0u); /* 0x36102D8B: call 0x36136fe0 */ /* not lifted */
   1554     RECOMP_FLAGS_IN();
   1555     ecx = esi + (-0x1); /* 0x36102D90: lea ecx, [esi - 1] */
   1556     PUSH32(esp, ecx); /* 0x36102D93: push ecx */
   1557     ecx = edi; /* 0x36102D94: mov ecx, edi */
   1558     MEM32(ebp + (-0x2C)) = eax; /* 0x36102D96: mov dword ptr [ebp - 0x2c], eax */
   1559     RECOMP_ICALL(0x36136FE0u); /* 0x36102D99: call 0x36136fe0 */ /* not lifted */
   1560     RECOMP_FLAGS_IN();
   1561     PUSH32(esp, esi); /* 0x36102D9E: push esi */
   1562     ecx = edi; /* 0x36102D9F: mov ecx, edi */
   1563     MEM32(ebp + (-0x28)) = eax; /* 0x36102DA1: mov dword ptr [ebp - 0x28], eax */
   1564     RECOMP_ICALL(0x36137010u); /* 0x36102DA4: call 0x36137010 */ /* not lifted */
   1565     RECOMP_FLAGS_IN();
   1566     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102DA9: fstp dword ptr [ebp - 0x24] */
   1567     edx = esi + 0x1; /* 0x36102DAC: lea edx, [esi + 1] */
   1568     PUSH32(esp, edx); /* 0x36102DAF: push edx */
   1569     ecx = edi; /* 0x36102DB0: mov ecx, edi */
   1570     RECOMP_ICALL(0x36137010u); /* 0x36102DB2: call 0x36137010 */ /* not lifted */
   1571     RECOMP_FLAGS_IN();
   1572     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102DB7: fstp dword ptr [ebp - 0x20] */
   1573     eax = esi + 0x2; /* 0x36102DBA: lea eax, [esi + 2] */
   1574     PUSH32(esp, eax); /* 0x36102DBD: push eax */
   1575     ecx = edi; /* 0x36102DBE: mov ecx, edi */
   1576     RECOMP_ICALL(0x36137010u); /* 0x36102DC0: call 0x36137010 */ /* not lifted */
   1577     RECOMP_FLAGS_IN();
   1578     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102DC5: fstp dword ptr [ebp - 0x1c] */
   1579     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
   1580     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1581     esi = esi + 3; /* 0x36102DC8: add esi, 3 */
   1582     _flag_k = FK_ADD;
   1583     PUSH32(esp, esi); /* 0x36102DCB: push esi */
   1584     ecx = edi; /* 0x36102DCC: mov ecx, edi */
   1585     RECOMP_ICALL(0x36137010u); /* 0x36102DCE: call 0x36137010 */ /* not lifted */
   1586     RECOMP_FLAGS_IN();
   1587     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102DD3: fstp dword ptr [ebp - 0x18] */
   1588     esi = MEM32(ebx + 0x8); /* 0x36102DD6: mov esi, dword ptr [ebx + 8] */
   1589     ecx = MEM32(ebx + 0xC); /* 0x36102DD9: mov ecx, dword ptr [ebx + 0xc] */
   1590     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   1591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1592     ecx = ecx - esi; /* 0x36102DDC: sub ecx, esi */
   1593     _flag_k = FK_CMP;
   1594     eax = 0x2AAAAAABu; /* 0x36102DDE: mov eax, 0x2aaaaaab */
   1595     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102DE3: imul ecx */
   1596       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1597       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1598     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102DE5: sar edx, 2 */
   1599     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1600     edx = (uint32_t)((int32_t)edx >> 2u);
   1601     ecx = edx; /* 0x36102DE8: mov ecx, edx */
   1602     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36102DEA: shr ecx, 0x1f */
   1603     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1604     ecx = ecx >> 31u; /* 0x36102DEA: shr ecx, 0x1f */
   1605     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1606     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1607     edx = edx + ecx; /* 0x36102DED: add edx, ecx */
   1608     _flag_k = FK_ADD;
   1609     /* cmp edx, 1 */ /* 0x36102DEF: cmp edx, 1 */
   1610     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1612     _flag_k = FK_CMP;
   1613     MEM32(ebp + (-0xC)) = esi; /* 0x36102DF2: mov dword ptr [ebp - 0xc], esi */
   1614     if (CMP_AE(_flag_a, _flag_b)) goto L_36102EAC; /* 0x36102DF5: jae 0x36102eac */
   1615 L_36102DFB:
   1616     ecx = ebx; /* 0x36102DFB: mov ecx, ebx */
   1617     RECOMP_ICALL(0x36147020u); /* 0x36102DFD: call 0x36147020 */ /* not lifted */
   1618     RECOMP_FLAGS_IN();
   1619     /* cmp eax, 1 */ /* 0x36102E02: cmp eax, 1 */
   1620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1622     _flag_k = FK_CMP;
   1623     if (CMP_BE(_flag_a, _flag_b)) goto L_36102E12; /* 0x36102E05: jbe 0x36102e12 */
   1624 L_36102E07:
   1625     ecx = ebx; /* 0x36102E07: mov ecx, ebx */
   1626     RECOMP_ICALL(0x36147020u); /* 0x36102E09: call 0x36147020 */ /* not lifted */
   1627     RECOMP_FLAGS_IN();
   1628     edi = eax; /* 0x36102E0E: mov edi, eax */
   1629     goto L_36102E17; /* 0x36102E10: jmp 0x36102e17 */
   1630 L_36102E12:
   1631     edi = 1; /* 0x36102E12: mov edi, 1 */
   1632 L_36102E17:
   1633     ecx = ebx; /* 0x36102E17: mov ecx, ebx */
   1634     RECOMP_ICALL(0x36147020u); /* 0x36102E19: call 0x36147020 */ /* not lifted */
   1635     RECOMP_FLAGS_IN();
   1636     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1638     eax = eax + edi; /* 0x36102E1E: add eax, edi */
   1639     _flag_k = FK_ADD;
   1640     MEM32(ebp + (-0xC)) = eax; /* 0x36102E20: mov dword ptr [ebp - 0xc], eax */
   1641     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36102E27; /* 0x36102E23: jns 0x36102e27 */
   1642 L_36102E25:
   1643     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1644     eax = 0; /* 0x36102E25: xor eax, eax */
   1645     _cf = 0;
   1646     _flag_k = FK_TEST;
   1647 L_36102E27:
   1648     edx = eax + eax * 2; /* 0x36102E27: lea edx, [eax + eax*2] */
   1649     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36102E2A: shl edx, 3 */
   1650     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1651     edx = edx << 3u; /* 0x36102E2A: shl edx, 3 */
   1652     PUSH32(esp, edx); /* 0x36102E2D: push edx */
   1653     RECOMP_ICALL(0x3615FD6Au); /* 0x36102E2E: call 0x3615fd6a */ /* not lifted */
   1654     RECOMP_FLAGS_IN();
   1655     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1656     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1657     esp = esp + 4; /* 0x36102E33: add esp, 4 */
   1658     _flag_k = FK_ADD;
   1659     edi = eax; /* 0x36102E36: mov edi, eax */
   1660     eax = MEM32(ebx + 0x4); /* 0x36102E38: mov eax, dword ptr [ebx + 4] */
   1661     PUSH32(esp, edi); /* 0x36102E3B: push edi */
   1662     PUSH32(esp, esi); /* 0x36102E3C: push esi */
   1663     PUSH32(esp, eax); /* 0x36102E3D: push eax */
   1664     ecx = ebx; /* 0x36102E3E: mov ecx, ebx */
   1665     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E40: call 0x3615a1c0 */ /* not lifted */
   1666     RECOMP_FLAGS_IN();
   1667     ecx = ebp + (-0x2C); /* 0x36102E45: lea ecx, [ebp - 0x2c] */
   1668     PUSH32(esp, ecx); /* 0x36102E48: push ecx */
   1669     PUSH32(esp, 1); /* 0x36102E49: push 1 */
   1670     PUSH32(esp, eax); /* 0x36102E4B: push eax */
   1671     ecx = ebx; /* 0x36102E4C: mov ecx, ebx */
   1672     MEM32(ebp + (-0x14)) = eax; /* 0x36102E4E: mov dword ptr [ebp - 0x14], eax */
   1673     RECOMP_ICALL(0x3615A200u); /* 0x36102E51: call 0x3615a200 */ /* not lifted */
   1674     RECOMP_FLAGS_IN();
   1675     edx = MEM32(ebp + (-0x14)); /* 0x36102E56: mov edx, dword ptr [ebp - 0x14] */
   1676     eax = MEM32(ebx + 0x8); /* 0x36102E59: mov eax, dword ptr [ebx + 8] */
   1677     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   1678     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1679     edx = edx + 0x18u; /* 0x36102E5C: add edx, 0x18 */
   1680     _flag_k = FK_ADD;
   1681     PUSH32(esp, edx); /* 0x36102E5F: push edx */
   1682     PUSH32(esp, eax); /* 0x36102E60: push eax */
   1683     PUSH32(esp, esi); /* 0x36102E61: push esi */
   1684     ecx = ebx; /* 0x36102E62: mov ecx, ebx */
   1685     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E64: call 0x3615a1c0 */ /* not lifted */
   1686     RECOMP_FLAGS_IN();
   1687     ecx = MEM32(ebx + 0x8); /* 0x36102E69: mov ecx, dword ptr [ebx + 8] */
   1688     edx = MEM32(ebx + 0x4); /* 0x36102E6C: mov edx, dword ptr [ebx + 4] */
   1689     PUSH32(esp, ecx); /* 0x36102E6F: push ecx */
   1690     PUSH32(esp, edx); /* 0x36102E70: push edx */
   1691     ecx = ebx; /* 0x36102E71: mov ecx, ebx */
   1692     RECOMP_ICALL(0x3610ED60u); /* 0x36102E73: call 0x3610ed60 */ /* not lifted */
   1693     RECOMP_FLAGS_IN();
   1694     eax = MEM32(ebx + 0x4); /* 0x36102E78: mov eax, dword ptr [ebx + 4] */
   1695     PUSH32(esp, eax); /* 0x36102E7B: push eax */
   1696     RECOMP_ICALL(0x3615FCC4u); /* 0x36102E7C: call 0x3615fcc4 */ /* not lifted */
   1697     RECOMP_FLAGS_IN();
   1698     eax = MEM32(ebp + (-0xC)); /* 0x36102E81: mov eax, dword ptr [ebp - 0xc] */
   1699     ecx = eax + eax * 2; /* 0x36102E84: lea ecx, [eax + eax*2] */
   1700     edx = edi + ecx * 8; /* 0x36102E87: lea edx, [edi + ecx*8] */
   1701     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1702     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1703     esp = esp + 4; /* 0x36102E8A: add esp, 4 */
   1704     _flag_k = FK_ADD;
   1705     ecx = ebx; /* 0x36102E8D: mov ecx, ebx */
   1706     MEM32(ebx + 0xC) = edx; /* 0x36102E8F: mov dword ptr [ebx + 0xc], edx */
   1707     RECOMP_ICALL(0x36147020u); /* 0x36102E92: call 0x36147020 */ /* not lifted */
   1708     RECOMP_FLAGS_IN();
   1709     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1710     eax = eax + 1; /* 0x36102E97: inc eax */
   1711     _flag_k = FK_INC;
   1712     eax = eax + eax * 2; /* 0x36102E98: lea eax, [eax + eax*2] */
   1713     ecx = edi + eax * 8; /* 0x36102E9B: lea ecx, [edi + eax*8] */
   1714     MEM32(ebx + 0x4) = edi; /* 0x36102E9E: mov dword ptr [ebx + 4], edi */
   1715     edi = MEM32(ebp + (-0x4)); /* 0x36102EA1: mov edi, dword ptr [ebp - 4] */
   1716     MEM32(ebx + 0x8) = ecx; /* 0x36102EA4: mov dword ptr [ebx + 8], ecx */
   1717     goto L_36102F78; /* 0x36102EA7: jmp 0x36102f78 */
   1718 L_36102EAC:
   1719     ecx = esi; /* 0x36102EAC: mov ecx, esi */
   1720     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   1721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1722     ecx = ecx - esi; /* 0x36102EAE: sub ecx, esi */
   1723     _flag_k = FK_CMP;
   1724     eax = 0x2AAAAAABu; /* 0x36102EB0: mov eax, 0x2aaaaaab */
   1725     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EB5: imul ecx */
   1726       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1727       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1728     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EB7: sar edx, 2 */
   1729     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1730     edx = (uint32_t)((int32_t)edx >> 2u);
   1731     eax = edx; /* 0x36102EBA: mov eax, edx */
   1732     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EBC: shr eax, 0x1f */
   1733     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1734     eax = eax >> 31u; /* 0x36102EBC: shr eax, 0x1f */
   1735     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1736     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1737     edx = edx + eax; /* 0x36102EBF: add edx, eax */
   1738     _flag_k = FK_ADD;
   1739     /* cmp edx, 1 */ /* 0x36102EC1: cmp edx, 1 */
   1740     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1742     _flag_k = FK_CMP;
   1743     if (CMP_AE(_flag_a, _flag_b)) goto L_36102F1E; /* 0x36102EC4: jae 0x36102f1e */
   1744 L_36102EC6:
   1745     ecx = esi + 0x18; /* 0x36102EC6: lea ecx, [esi + 0x18] */
   1746     PUSH32(esp, ecx); /* 0x36102EC9: push ecx */
   1747     PUSH32(esp, esi); /* 0x36102ECA: push esi */
   1748     PUSH32(esp, esi); /* 0x36102ECB: push esi */
   1749     ecx = ebx; /* 0x36102ECC: mov ecx, ebx */
   1750     RECOMP_ICALL(0x3615A1C0u); /* 0x36102ECE: call 0x3615a1c0 */ /* not lifted */
   1751     RECOMP_FLAGS_IN();
   1752     ecx = MEM32(ebx + 0x8); /* 0x36102ED3: mov ecx, dword ptr [ebx + 8] */
   1753     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   1754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1755     ecx = ecx - esi; /* 0x36102ED6: sub ecx, esi */
   1756     _flag_k = FK_CMP;
   1757     edx = ebp + (-0x2C); /* 0x36102ED8: lea edx, [ebp - 0x2c] */
   1758     PUSH32(esp, edx); /* 0x36102EDB: push edx */
   1759     eax = 0x2AAAAAABu; /* 0x36102EDC: mov eax, 0x2aaaaaab */
   1760     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EE1: imul ecx */
   1761       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1762       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1763     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EE3: sar edx, 2 */
   1764     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1765     edx = (uint32_t)((int32_t)edx >> 2u);
   1766     eax = edx; /* 0x36102EE6: mov eax, edx */
   1767     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EE8: shr eax, 0x1f */
   1768     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1769     eax = eax >> 31u; /* 0x36102EE8: shr eax, 0x1f */
   1770     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1771     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1772     edx = edx + eax; /* 0x36102EEB: add edx, eax */
   1773     _flag_k = FK_ADD;
   1774     eax = MEM32(ebx + 0x8); /* 0x36102EED: mov eax, dword ptr [ebx + 8] */
   1775     ecx = 1; /* 0x36102EF0: mov ecx, 1 */
   1776     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1778     ecx = ecx - edx; /* 0x36102EF5: sub ecx, edx */
   1779     _flag_k = FK_CMP;
   1780     PUSH32(esp, ecx); /* 0x36102EF7: push ecx */
   1781     PUSH32(esp, eax); /* 0x36102EF8: push eax */
   1782     ecx = ebx; /* 0x36102EF9: mov ecx, ebx */
   1783     RECOMP_ICALL(0x3615A200u); /* 0x36102EFB: call 0x3615a200 */ /* not lifted */
   1784     RECOMP_FLAGS_IN();
   1785     edx = MEM32(ebx + 0x8); /* 0x36102F00: mov edx, dword ptr [ebx + 8] */
   1786     /* cmp esi, edx */ /* 0x36102F03: cmp esi, edx */
   1787     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1789     _flag_k = FK_CMP;
   1790     eax = esi; /* 0x36102F05: mov eax, esi */
   1791     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F07: je 0x36102f74 */
   1792 L_36102F09:
   1793     edi = eax; /* 0x36102F09: mov edi, eax */
   1794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   1795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1796     eax = eax + 0x18u; /* 0x36102F0B: add eax, 0x18 */
   1797     _flag_k = FK_ADD;
   1798     /* cmp eax, edx */ /* 0x36102F0E: cmp eax, edx */
   1799     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1801     _flag_k = FK_CMP;
   1802     ecx = 6; /* 0x36102F10: mov ecx, 6 */
   1803     esi = ebp + (-0x2C); /* 0x36102F15: lea esi, [ebp - 0x2c] */
   1804     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F18: 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; }
   1805     RECOMP_BACKEDGE();
   1806     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F09; /* 0x36102F1A: jne 0x36102f09 */
   1807 L_36102F1C:
   1808     goto L_36102F71; /* 0x36102F1C: jmp 0x36102f71 */
   1809 L_36102F1E:
   1810     PUSH32(esp, esi); /* 0x36102F1E: push esi */
   1811     eax = esi + (-0x18); /* 0x36102F1F: lea eax, [esi - 0x18] */
   1812     PUSH32(esp, esi); /* 0x36102F22: push esi */
   1813     PUSH32(esp, eax); /* 0x36102F23: push eax */
   1814     ecx = ebx; /* 0x36102F24: mov ecx, ebx */
   1815     MEM32(ebp + (-0x14)) = eax; /* 0x36102F26: mov dword ptr [ebp - 0x14], eax */
   1816     RECOMP_ICALL(0x3615A1C0u); /* 0x36102F29: call 0x3615a1c0 */ /* not lifted */
   1817     RECOMP_FLAGS_IN();
   1818     edx = MEM32(ebx + 0x8); /* 0x36102F2E: mov edx, dword ptr [ebx + 8] */
   1819     eax = edx + (-0x18); /* 0x36102F31: lea eax, [edx - 0x18] */
   1820     /* cmp esi, eax */ /* 0x36102F34: cmp esi, eax */
   1821     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1823     _flag_k = FK_CMP;
   1824     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F55; /* 0x36102F36: je 0x36102f55 */
   1825 L_36102F38:
   1826     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   1827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1828     eax = eax - 0x18u; /* 0x36102F38: sub eax, 0x18 */
   1829     _flag_k = FK_CMP;
   1830     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   1831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1832     edx = edx - 0x18u; /* 0x36102F3B: sub edx, 0x18 */
   1833     _flag_k = FK_CMP;
   1834     ecx = 6; /* 0x36102F3E: mov ecx, 6 */
   1835     esi = eax; /* 0x36102F43: mov esi, eax */
   1836     edi = edx; /* 0x36102F45: mov edi, edx */
   1837     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F47: 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; }
   1838     ecx = MEM32(ebp + (-0xC)); /* 0x36102F49: mov ecx, dword ptr [ebp - 0xc] */
   1839     /* cmp eax, ecx */ /* 0x36102F4C: cmp eax, ecx */
   1840     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1842     _flag_k = FK_CMP;
   1843     RECOMP_BACKEDGE();
   1844     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F38; /* 0x36102F4E: jne 0x36102f38 */
   1845 L_36102F50:
   1846     edi = MEM32(ebp + (-0x4)); /* 0x36102F50: mov edi, dword ptr [ebp - 4] */
   1847     esi = ecx; /* 0x36102F53: mov esi, ecx */
   1848 L_36102F55:
   1849     edx = esi + 0x18; /* 0x36102F55: lea edx, [esi + 0x18] */
   1850     /* cmp esi, edx */ /* 0x36102F58: cmp esi, edx */
   1851     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1853     _flag_k = FK_CMP;
   1854     eax = esi; /* 0x36102F5A: mov eax, esi */
   1855     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F5C: je 0x36102f74 */
   1856 L_36102F5E:
   1857     edi = eax; /* 0x36102F5E: mov edi, eax */
   1858     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   1859     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1860     eax = eax + 0x18u; /* 0x36102F60: add eax, 0x18 */
   1861     _flag_k = FK_ADD;
   1862     /* cmp eax, edx */ /* 0x36102F63: cmp eax, edx */
   1863     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1865     _flag_k = FK_CMP;
   1866     ecx = 6; /* 0x36102F65: mov ecx, 6 */
   1867     esi = ebp + (-0x2C); /* 0x36102F6A: lea esi, [ebp - 0x2c] */
   1868     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F6D: 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; }
   1869     RECOMP_BACKEDGE();
   1870     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F5E; /* 0x36102F6F: jne 0x36102f5e */
   1871 L_36102F71:
   1872     edi = MEM32(ebp + (-0x4)); /* 0x36102F71: mov edi, dword ptr [ebp - 4] */
   1873 L_36102F74:
   1874     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0x18u);
   1875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1876     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0x18u; /* 0x36102F74: add dword ptr [ebx + 8], 0x18 */
   1877     _flag_k = FK_ADD;
   1878 L_36102F78:
   1879     ecx = MEM32(ebp + (-0x8)); /* 0x36102F78: mov ecx, dword ptr [ebp - 8] */
   1880     eax = MEM32(ebp + (-0x10)); /* 0x36102F7B: mov eax, dword ptr [ebp - 0x10] */
   1881     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6);
   1882     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1883     ecx = ecx + 6; /* 0x36102F7E: add ecx, 6 */
   1884     _flag_k = FK_ADD;
   1885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1886     eax = eax - 1; /* 0x36102F81: dec eax */
   1887     _flag_k = FK_DEC;
   1888     MEM32(ebp + (-0x8)) = ecx; /* 0x36102F82: mov dword ptr [ebp - 8], ecx */
   1889     MEM32(ebp + (-0x10)) = eax; /* 0x36102F85: mov dword ptr [ebp - 0x10], eax */
   1890     RECOMP_BACKEDGE();
   1891     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36102D82; /* 0x36102F88: jne 0x36102d82 */
   1892 L_36102F8E:
   1893     edi = POP32_VAL(esp); /* 0x36102F8E: pop edi */
   1894     esi = POP32_VAL(esp); /* 0x36102F8F: pop esi */
   1895     ebx = POP32_VAL(esp); /* 0x36102F90: pop ebx */
   1896     esp = ebp; /* 0x36102F91: mov esp, ebp */
   1897     ebp = POP32_VAL(esp); /* 0x36102F93: pop ebp */
   1898     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102F94: ret  */
   1899     RECOMP_REGS_OUT();
   1900 }
   1901 
   1902 void sub_36102D82(void) {
   1903     int _fpu_cmp = 0;
   1904     uint32_t _cf = 0;
   1905     int _df = 1;
   1906     uint32_t _flag_k = FK_NONE;
   1907     uint32_t _flag_a = 0, _flag_b = 0;
   1908     uint32_t _itail_tgt = 0;
   1909     RECOMP_REGS_LOCALS
   1910     RECOMP_ENTER(0x36102D82u);
   1911 
   1912 L_36102D82:
   1913     esi = MEM32(ebp + (-0x8)); /* 0x36102D82: mov esi, dword ptr [ebp - 8] */
   1914     eax = esi + (-0x2); /* 0x36102D85: lea eax, [esi - 2] */
   1915     PUSH32(esp, eax); /* 0x36102D88: push eax */
   1916     ecx = edi; /* 0x36102D89: mov ecx, edi */
   1917     RECOMP_ICALL(0x36136FE0u); /* 0x36102D8B: call 0x36136fe0 */ /* not lifted */
   1918     RECOMP_FLAGS_IN();
   1919     ecx = esi + (-0x1); /* 0x36102D90: lea ecx, [esi - 1] */
   1920     PUSH32(esp, ecx); /* 0x36102D93: push ecx */
   1921     ecx = edi; /* 0x36102D94: mov ecx, edi */
   1922     MEM32(ebp + (-0x2C)) = eax; /* 0x36102D96: mov dword ptr [ebp - 0x2c], eax */
   1923     RECOMP_ICALL(0x36136FE0u); /* 0x36102D99: call 0x36136fe0 */ /* not lifted */
   1924     RECOMP_FLAGS_IN();
   1925     PUSH32(esp, esi); /* 0x36102D9E: push esi */
   1926     ecx = edi; /* 0x36102D9F: mov ecx, edi */
   1927     MEM32(ebp + (-0x28)) = eax; /* 0x36102DA1: mov dword ptr [ebp - 0x28], eax */
   1928     RECOMP_ICALL(0x36137010u); /* 0x36102DA4: call 0x36137010 */ /* not lifted */
   1929     RECOMP_FLAGS_IN();
   1930     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102DA9: fstp dword ptr [ebp - 0x24] */
   1931     edx = esi + 0x1; /* 0x36102DAC: lea edx, [esi + 1] */
   1932     PUSH32(esp, edx); /* 0x36102DAF: push edx */
   1933     ecx = edi; /* 0x36102DB0: mov ecx, edi */
   1934     RECOMP_ICALL(0x36137010u); /* 0x36102DB2: call 0x36137010 */ /* not lifted */
   1935     RECOMP_FLAGS_IN();
   1936     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102DB7: fstp dword ptr [ebp - 0x20] */
   1937     eax = esi + 0x2; /* 0x36102DBA: lea eax, [esi + 2] */
   1938     PUSH32(esp, eax); /* 0x36102DBD: push eax */
   1939     ecx = edi; /* 0x36102DBE: mov ecx, edi */
   1940     RECOMP_ICALL(0x36137010u); /* 0x36102DC0: call 0x36137010 */ /* not lifted */
   1941     RECOMP_FLAGS_IN();
   1942     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102DC5: fstp dword ptr [ebp - 0x1c] */
   1943     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
   1944     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1945     esi = esi + 3; /* 0x36102DC8: add esi, 3 */
   1946     _flag_k = FK_ADD;
   1947     PUSH32(esp, esi); /* 0x36102DCB: push esi */
   1948     ecx = edi; /* 0x36102DCC: mov ecx, edi */
   1949     RECOMP_ICALL(0x36137010u); /* 0x36102DCE: call 0x36137010 */ /* not lifted */
   1950     RECOMP_FLAGS_IN();
   1951     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102DD3: fstp dword ptr [ebp - 0x18] */
   1952     esi = MEM32(ebx + 0x8); /* 0x36102DD6: mov esi, dword ptr [ebx + 8] */
   1953     ecx = MEM32(ebx + 0xC); /* 0x36102DD9: mov ecx, dword ptr [ebx + 0xc] */
   1954     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   1955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1956     ecx = ecx - esi; /* 0x36102DDC: sub ecx, esi */
   1957     _flag_k = FK_CMP;
   1958     eax = 0x2AAAAAABu; /* 0x36102DDE: mov eax, 0x2aaaaaab */
   1959     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102DE3: imul ecx */
   1960       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1961       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1962     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102DE5: sar edx, 2 */
   1963     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1964     edx = (uint32_t)((int32_t)edx >> 2u);
   1965     ecx = edx; /* 0x36102DE8: mov ecx, edx */
   1966     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36102DEA: shr ecx, 0x1f */
   1967     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1968     ecx = ecx >> 31u; /* 0x36102DEA: shr ecx, 0x1f */
   1969     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1971     edx = edx + ecx; /* 0x36102DED: add edx, ecx */
   1972     _flag_k = FK_ADD;
   1973     /* cmp edx, 1 */ /* 0x36102DEF: cmp edx, 1 */
   1974     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1976     _flag_k = FK_CMP;
   1977     MEM32(ebp + (-0xC)) = esi; /* 0x36102DF2: mov dword ptr [ebp - 0xc], esi */
   1978     if (CMP_AE(_flag_a, _flag_b)) goto L_36102EAC; /* 0x36102DF5: jae 0x36102eac */
   1979 L_36102DFB:
   1980     ecx = ebx; /* 0x36102DFB: mov ecx, ebx */
   1981     RECOMP_ICALL(0x36147020u); /* 0x36102DFD: call 0x36147020 */ /* not lifted */
   1982     RECOMP_FLAGS_IN();
   1983     /* cmp eax, 1 */ /* 0x36102E02: cmp eax, 1 */
   1984     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1985     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1986     _flag_k = FK_CMP;
   1987     if (CMP_BE(_flag_a, _flag_b)) goto L_36102E12; /* 0x36102E05: jbe 0x36102e12 */
   1988 L_36102E07:
   1989     ecx = ebx; /* 0x36102E07: mov ecx, ebx */
   1990     RECOMP_ICALL(0x36147020u); /* 0x36102E09: call 0x36147020 */ /* not lifted */
   1991     RECOMP_FLAGS_IN();
   1992     edi = eax; /* 0x36102E0E: mov edi, eax */
   1993     goto L_36102E17; /* 0x36102E10: jmp 0x36102e17 */
   1994 L_36102E12:
   1995     edi = 1; /* 0x36102E12: mov edi, 1 */
   1996 L_36102E17:
   1997     ecx = ebx; /* 0x36102E17: mov ecx, ebx */
   1998     RECOMP_ICALL(0x36147020u); /* 0x36102E19: call 0x36147020 */ /* not lifted */
   1999     RECOMP_FLAGS_IN();
   2000     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2001     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2002     eax = eax + edi; /* 0x36102E1E: add eax, edi */
   2003     _flag_k = FK_ADD;
   2004     MEM32(ebp + (-0xC)) = eax; /* 0x36102E20: mov dword ptr [ebp - 0xc], eax */
   2005     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36102E27; /* 0x36102E23: jns 0x36102e27 */
   2006 L_36102E25:
   2007     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2008     eax = 0; /* 0x36102E25: xor eax, eax */
   2009     _cf = 0;
   2010     _flag_k = FK_TEST;
   2011 L_36102E27:
   2012     edx = eax + eax * 2; /* 0x36102E27: lea edx, [eax + eax*2] */
   2013     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36102E2A: shl edx, 3 */
   2014     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2015     edx = edx << 3u; /* 0x36102E2A: shl edx, 3 */
   2016     PUSH32(esp, edx); /* 0x36102E2D: push edx */
   2017     RECOMP_ICALL(0x3615FD6Au); /* 0x36102E2E: call 0x3615fd6a */ /* not lifted */
   2018     RECOMP_FLAGS_IN();
   2019     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2020     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2021     esp = esp + 4; /* 0x36102E33: add esp, 4 */
   2022     _flag_k = FK_ADD;
   2023     edi = eax; /* 0x36102E36: mov edi, eax */
   2024     eax = MEM32(ebx + 0x4); /* 0x36102E38: mov eax, dword ptr [ebx + 4] */
   2025     PUSH32(esp, edi); /* 0x36102E3B: push edi */
   2026     PUSH32(esp, esi); /* 0x36102E3C: push esi */
   2027     PUSH32(esp, eax); /* 0x36102E3D: push eax */
   2028     ecx = ebx; /* 0x36102E3E: mov ecx, ebx */
   2029     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E40: call 0x3615a1c0 */ /* not lifted */
   2030     RECOMP_FLAGS_IN();
   2031     ecx = ebp + (-0x2C); /* 0x36102E45: lea ecx, [ebp - 0x2c] */
   2032     PUSH32(esp, ecx); /* 0x36102E48: push ecx */
   2033     PUSH32(esp, 1); /* 0x36102E49: push 1 */
   2034     PUSH32(esp, eax); /* 0x36102E4B: push eax */
   2035     ecx = ebx; /* 0x36102E4C: mov ecx, ebx */
   2036     MEM32(ebp + (-0x14)) = eax; /* 0x36102E4E: mov dword ptr [ebp - 0x14], eax */
   2037     RECOMP_ICALL(0x3615A200u); /* 0x36102E51: call 0x3615a200 */ /* not lifted */
   2038     RECOMP_FLAGS_IN();
   2039     edx = MEM32(ebp + (-0x14)); /* 0x36102E56: mov edx, dword ptr [ebp - 0x14] */
   2040     eax = MEM32(ebx + 0x8); /* 0x36102E59: mov eax, dword ptr [ebx + 8] */
   2041     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   2042     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2043     edx = edx + 0x18u; /* 0x36102E5C: add edx, 0x18 */
   2044     _flag_k = FK_ADD;
   2045     PUSH32(esp, edx); /* 0x36102E5F: push edx */
   2046     PUSH32(esp, eax); /* 0x36102E60: push eax */
   2047     PUSH32(esp, esi); /* 0x36102E61: push esi */
   2048     ecx = ebx; /* 0x36102E62: mov ecx, ebx */
   2049     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E64: call 0x3615a1c0 */ /* not lifted */
   2050     RECOMP_FLAGS_IN();
   2051     ecx = MEM32(ebx + 0x8); /* 0x36102E69: mov ecx, dword ptr [ebx + 8] */
   2052     edx = MEM32(ebx + 0x4); /* 0x36102E6C: mov edx, dword ptr [ebx + 4] */
   2053     PUSH32(esp, ecx); /* 0x36102E6F: push ecx */
   2054     PUSH32(esp, edx); /* 0x36102E70: push edx */
   2055     ecx = ebx; /* 0x36102E71: mov ecx, ebx */
   2056     RECOMP_ICALL(0x3610ED60u); /* 0x36102E73: call 0x3610ed60 */ /* not lifted */
   2057     RECOMP_FLAGS_IN();
   2058     eax = MEM32(ebx + 0x4); /* 0x36102E78: mov eax, dword ptr [ebx + 4] */
   2059     PUSH32(esp, eax); /* 0x36102E7B: push eax */
   2060     RECOMP_ICALL(0x3615FCC4u); /* 0x36102E7C: call 0x3615fcc4 */ /* not lifted */
   2061     RECOMP_FLAGS_IN();
   2062     eax = MEM32(ebp + (-0xC)); /* 0x36102E81: mov eax, dword ptr [ebp - 0xc] */
   2063     ecx = eax + eax * 2; /* 0x36102E84: lea ecx, [eax + eax*2] */
   2064     edx = edi + ecx * 8; /* 0x36102E87: lea edx, [edi + ecx*8] */
   2065     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2066     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2067     esp = esp + 4; /* 0x36102E8A: add esp, 4 */
   2068     _flag_k = FK_ADD;
   2069     ecx = ebx; /* 0x36102E8D: mov ecx, ebx */
   2070     MEM32(ebx + 0xC) = edx; /* 0x36102E8F: mov dword ptr [ebx + 0xc], edx */
   2071     RECOMP_ICALL(0x36147020u); /* 0x36102E92: call 0x36147020 */ /* not lifted */
   2072     RECOMP_FLAGS_IN();
   2073     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2074     eax = eax + 1; /* 0x36102E97: inc eax */
   2075     _flag_k = FK_INC;
   2076     eax = eax + eax * 2; /* 0x36102E98: lea eax, [eax + eax*2] */
   2077     ecx = edi + eax * 8; /* 0x36102E9B: lea ecx, [edi + eax*8] */
   2078     MEM32(ebx + 0x4) = edi; /* 0x36102E9E: mov dword ptr [ebx + 4], edi */
   2079     edi = MEM32(ebp + (-0x4)); /* 0x36102EA1: mov edi, dword ptr [ebp - 4] */
   2080     MEM32(ebx + 0x8) = ecx; /* 0x36102EA4: mov dword ptr [ebx + 8], ecx */
   2081     goto L_36102F78; /* 0x36102EA7: jmp 0x36102f78 */
   2082 L_36102EAC:
   2083     ecx = esi; /* 0x36102EAC: mov ecx, esi */
   2084     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2086     ecx = ecx - esi; /* 0x36102EAE: sub ecx, esi */
   2087     _flag_k = FK_CMP;
   2088     eax = 0x2AAAAAABu; /* 0x36102EB0: mov eax, 0x2aaaaaab */
   2089     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EB5: imul ecx */
   2090       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2091       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2092     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EB7: sar edx, 2 */
   2093     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2094     edx = (uint32_t)((int32_t)edx >> 2u);
   2095     eax = edx; /* 0x36102EBA: mov eax, edx */
   2096     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EBC: shr eax, 0x1f */
   2097     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2098     eax = eax >> 31u; /* 0x36102EBC: shr eax, 0x1f */
   2099     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2100     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2101     edx = edx + eax; /* 0x36102EBF: add edx, eax */
   2102     _flag_k = FK_ADD;
   2103     /* cmp edx, 1 */ /* 0x36102EC1: cmp edx, 1 */
   2104     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2106     _flag_k = FK_CMP;
   2107     if (CMP_AE(_flag_a, _flag_b)) goto L_36102F1E; /* 0x36102EC4: jae 0x36102f1e */
   2108 L_36102EC6:
   2109     ecx = esi + 0x18; /* 0x36102EC6: lea ecx, [esi + 0x18] */
   2110     PUSH32(esp, ecx); /* 0x36102EC9: push ecx */
   2111     PUSH32(esp, esi); /* 0x36102ECA: push esi */
   2112     PUSH32(esp, esi); /* 0x36102ECB: push esi */
   2113     ecx = ebx; /* 0x36102ECC: mov ecx, ebx */
   2114     RECOMP_ICALL(0x3615A1C0u); /* 0x36102ECE: call 0x3615a1c0 */ /* not lifted */
   2115     RECOMP_FLAGS_IN();
   2116     ecx = MEM32(ebx + 0x8); /* 0x36102ED3: mov ecx, dword ptr [ebx + 8] */
   2117     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2118     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2119     ecx = ecx - esi; /* 0x36102ED6: sub ecx, esi */
   2120     _flag_k = FK_CMP;
   2121     edx = ebp + (-0x2C); /* 0x36102ED8: lea edx, [ebp - 0x2c] */
   2122     PUSH32(esp, edx); /* 0x36102EDB: push edx */
   2123     eax = 0x2AAAAAABu; /* 0x36102EDC: mov eax, 0x2aaaaaab */
   2124     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EE1: imul ecx */
   2125       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2126       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2127     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EE3: sar edx, 2 */
   2128     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2129     edx = (uint32_t)((int32_t)edx >> 2u);
   2130     eax = edx; /* 0x36102EE6: mov eax, edx */
   2131     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EE8: shr eax, 0x1f */
   2132     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2133     eax = eax >> 31u; /* 0x36102EE8: shr eax, 0x1f */
   2134     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2135     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2136     edx = edx + eax; /* 0x36102EEB: add edx, eax */
   2137     _flag_k = FK_ADD;
   2138     eax = MEM32(ebx + 0x8); /* 0x36102EED: mov eax, dword ptr [ebx + 8] */
   2139     ecx = 1; /* 0x36102EF0: mov ecx, 1 */
   2140     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2142     ecx = ecx - edx; /* 0x36102EF5: sub ecx, edx */
   2143     _flag_k = FK_CMP;
   2144     PUSH32(esp, ecx); /* 0x36102EF7: push ecx */
   2145     PUSH32(esp, eax); /* 0x36102EF8: push eax */
   2146     ecx = ebx; /* 0x36102EF9: mov ecx, ebx */
   2147     RECOMP_ICALL(0x3615A200u); /* 0x36102EFB: call 0x3615a200 */ /* not lifted */
   2148     RECOMP_FLAGS_IN();
   2149     edx = MEM32(ebx + 0x8); /* 0x36102F00: mov edx, dword ptr [ebx + 8] */
   2150     /* cmp esi, edx */ /* 0x36102F03: cmp esi, edx */
   2151     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2153     _flag_k = FK_CMP;
   2154     eax = esi; /* 0x36102F05: mov eax, esi */
   2155     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F07: je 0x36102f74 */
   2156 L_36102F09:
   2157     edi = eax; /* 0x36102F09: mov edi, eax */
   2158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2159     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2160     eax = eax + 0x18u; /* 0x36102F0B: add eax, 0x18 */
   2161     _flag_k = FK_ADD;
   2162     /* cmp eax, edx */ /* 0x36102F0E: cmp eax, edx */
   2163     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2165     _flag_k = FK_CMP;
   2166     ecx = 6; /* 0x36102F10: mov ecx, 6 */
   2167     esi = ebp + (-0x2C); /* 0x36102F15: lea esi, [ebp - 0x2c] */
   2168     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F18: 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; }
   2169     RECOMP_BACKEDGE();
   2170     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F09; /* 0x36102F1A: jne 0x36102f09 */
   2171 L_36102F1C:
   2172     goto L_36102F71; /* 0x36102F1C: jmp 0x36102f71 */
   2173 L_36102F1E:
   2174     PUSH32(esp, esi); /* 0x36102F1E: push esi */
   2175     eax = esi + (-0x18); /* 0x36102F1F: lea eax, [esi - 0x18] */
   2176     PUSH32(esp, esi); /* 0x36102F22: push esi */
   2177     PUSH32(esp, eax); /* 0x36102F23: push eax */
   2178     ecx = ebx; /* 0x36102F24: mov ecx, ebx */
   2179     MEM32(ebp + (-0x14)) = eax; /* 0x36102F26: mov dword ptr [ebp - 0x14], eax */
   2180     RECOMP_ICALL(0x3615A1C0u); /* 0x36102F29: call 0x3615a1c0 */ /* not lifted */
   2181     RECOMP_FLAGS_IN();
   2182     edx = MEM32(ebx + 0x8); /* 0x36102F2E: mov edx, dword ptr [ebx + 8] */
   2183     eax = edx + (-0x18); /* 0x36102F31: lea eax, [edx - 0x18] */
   2184     /* cmp esi, eax */ /* 0x36102F34: cmp esi, eax */
   2185     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2187     _flag_k = FK_CMP;
   2188     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F55; /* 0x36102F36: je 0x36102f55 */
   2189 L_36102F38:
   2190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2192     eax = eax - 0x18u; /* 0x36102F38: sub eax, 0x18 */
   2193     _flag_k = FK_CMP;
   2194     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   2195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2196     edx = edx - 0x18u; /* 0x36102F3B: sub edx, 0x18 */
   2197     _flag_k = FK_CMP;
   2198     ecx = 6; /* 0x36102F3E: mov ecx, 6 */
   2199     esi = eax; /* 0x36102F43: mov esi, eax */
   2200     edi = edx; /* 0x36102F45: mov edi, edx */
   2201     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F47: 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; }
   2202     ecx = MEM32(ebp + (-0xC)); /* 0x36102F49: mov ecx, dword ptr [ebp - 0xc] */
   2203     /* cmp eax, ecx */ /* 0x36102F4C: cmp eax, ecx */
   2204     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2205     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2206     _flag_k = FK_CMP;
   2207     RECOMP_BACKEDGE();
   2208     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F38; /* 0x36102F4E: jne 0x36102f38 */
   2209 L_36102F50:
   2210     edi = MEM32(ebp + (-0x4)); /* 0x36102F50: mov edi, dword ptr [ebp - 4] */
   2211     esi = ecx; /* 0x36102F53: mov esi, ecx */
   2212 L_36102F55:
   2213     edx = esi + 0x18; /* 0x36102F55: lea edx, [esi + 0x18] */
   2214     /* cmp esi, edx */ /* 0x36102F58: cmp esi, edx */
   2215     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2217     _flag_k = FK_CMP;
   2218     eax = esi; /* 0x36102F5A: mov eax, esi */
   2219     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F5C: je 0x36102f74 */
   2220 L_36102F5E:
   2221     edi = eax; /* 0x36102F5E: mov edi, eax */
   2222     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2223     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2224     eax = eax + 0x18u; /* 0x36102F60: add eax, 0x18 */
   2225     _flag_k = FK_ADD;
   2226     /* cmp eax, edx */ /* 0x36102F63: cmp eax, edx */
   2227     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2229     _flag_k = FK_CMP;
   2230     ecx = 6; /* 0x36102F65: mov ecx, 6 */
   2231     esi = ebp + (-0x2C); /* 0x36102F6A: lea esi, [ebp - 0x2c] */
   2232     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F6D: 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; }
   2233     RECOMP_BACKEDGE();
   2234     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F5E; /* 0x36102F6F: jne 0x36102f5e */
   2235 L_36102F71:
   2236     edi = MEM32(ebp + (-0x4)); /* 0x36102F71: mov edi, dword ptr [ebp - 4] */
   2237 L_36102F74:
   2238     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0x18u);
   2239     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2240     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0x18u; /* 0x36102F74: add dword ptr [ebx + 8], 0x18 */
   2241     _flag_k = FK_ADD;
   2242 L_36102F78:
   2243     ecx = MEM32(ebp + (-0x8)); /* 0x36102F78: mov ecx, dword ptr [ebp - 8] */
   2244     eax = MEM32(ebp + (-0x10)); /* 0x36102F7B: mov eax, dword ptr [ebp - 0x10] */
   2245     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6);
   2246     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2247     ecx = ecx + 6; /* 0x36102F7E: add ecx, 6 */
   2248     _flag_k = FK_ADD;
   2249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2250     eax = eax - 1; /* 0x36102F81: dec eax */
   2251     _flag_k = FK_DEC;
   2252     MEM32(ebp + (-0x8)) = ecx; /* 0x36102F82: mov dword ptr [ebp - 8], ecx */
   2253     MEM32(ebp + (-0x10)) = eax; /* 0x36102F85: mov dword ptr [ebp - 0x10], eax */
   2254     RECOMP_BACKEDGE();
   2255     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36102D82; /* 0x36102F88: jne 0x36102d82 */
   2256 L_36102F8E:
   2257     edi = POP32_VAL(esp); /* 0x36102F8E: pop edi */
   2258     esi = POP32_VAL(esp); /* 0x36102F8F: pop esi */
   2259     ebx = POP32_VAL(esp); /* 0x36102F90: pop ebx */
   2260     esp = ebp; /* 0x36102F91: mov esp, ebp */
   2261     ebp = POP32_VAL(esp); /* 0x36102F93: pop ebp */
   2262     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102F94: ret  */
   2263     RECOMP_REGS_OUT();
   2264 }
   2265 
   2266 void sub_36102E17(void) {
   2267     int _fpu_cmp = 0;
   2268     uint32_t _cf = 0;
   2269     int _df = 1;
   2270     uint32_t _flag_k = FK_NONE;
   2271     uint32_t _flag_a = 0, _flag_b = 0;
   2272     uint32_t _itail_tgt = 0;
   2273     RECOMP_REGS_LOCALS
   2274     RECOMP_ENTER(0x36102E17u);
   2275 
   2276     goto L_36102E17;
   2277 L_36102D82:
   2278     esi = MEM32(ebp + (-0x8)); /* 0x36102D82: mov esi, dword ptr [ebp - 8] */
   2279     eax = esi + (-0x2); /* 0x36102D85: lea eax, [esi - 2] */
   2280     PUSH32(esp, eax); /* 0x36102D88: push eax */
   2281     ecx = edi; /* 0x36102D89: mov ecx, edi */
   2282     RECOMP_ICALL(0x36136FE0u); /* 0x36102D8B: call 0x36136fe0 */ /* not lifted */
   2283     RECOMP_FLAGS_IN();
   2284     ecx = esi + (-0x1); /* 0x36102D90: lea ecx, [esi - 1] */
   2285     PUSH32(esp, ecx); /* 0x36102D93: push ecx */
   2286     ecx = edi; /* 0x36102D94: mov ecx, edi */
   2287     MEM32(ebp + (-0x2C)) = eax; /* 0x36102D96: mov dword ptr [ebp - 0x2c], eax */
   2288     RECOMP_ICALL(0x36136FE0u); /* 0x36102D99: call 0x36136fe0 */ /* not lifted */
   2289     RECOMP_FLAGS_IN();
   2290     PUSH32(esp, esi); /* 0x36102D9E: push esi */
   2291     ecx = edi; /* 0x36102D9F: mov ecx, edi */
   2292     MEM32(ebp + (-0x28)) = eax; /* 0x36102DA1: mov dword ptr [ebp - 0x28], eax */
   2293     RECOMP_ICALL(0x36137010u); /* 0x36102DA4: call 0x36137010 */ /* not lifted */
   2294     RECOMP_FLAGS_IN();
   2295     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102DA9: fstp dword ptr [ebp - 0x24] */
   2296     edx = esi + 0x1; /* 0x36102DAC: lea edx, [esi + 1] */
   2297     PUSH32(esp, edx); /* 0x36102DAF: push edx */
   2298     ecx = edi; /* 0x36102DB0: mov ecx, edi */
   2299     RECOMP_ICALL(0x36137010u); /* 0x36102DB2: call 0x36137010 */ /* not lifted */
   2300     RECOMP_FLAGS_IN();
   2301     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102DB7: fstp dword ptr [ebp - 0x20] */
   2302     eax = esi + 0x2; /* 0x36102DBA: lea eax, [esi + 2] */
   2303     PUSH32(esp, eax); /* 0x36102DBD: push eax */
   2304     ecx = edi; /* 0x36102DBE: mov ecx, edi */
   2305     RECOMP_ICALL(0x36137010u); /* 0x36102DC0: call 0x36137010 */ /* not lifted */
   2306     RECOMP_FLAGS_IN();
   2307     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102DC5: fstp dword ptr [ebp - 0x1c] */
   2308     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
   2309     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2310     esi = esi + 3; /* 0x36102DC8: add esi, 3 */
   2311     _flag_k = FK_ADD;
   2312     PUSH32(esp, esi); /* 0x36102DCB: push esi */
   2313     ecx = edi; /* 0x36102DCC: mov ecx, edi */
   2314     RECOMP_ICALL(0x36137010u); /* 0x36102DCE: call 0x36137010 */ /* not lifted */
   2315     RECOMP_FLAGS_IN();
   2316     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102DD3: fstp dword ptr [ebp - 0x18] */
   2317     esi = MEM32(ebx + 0x8); /* 0x36102DD6: mov esi, dword ptr [ebx + 8] */
   2318     ecx = MEM32(ebx + 0xC); /* 0x36102DD9: mov ecx, dword ptr [ebx + 0xc] */
   2319     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2321     ecx = ecx - esi; /* 0x36102DDC: sub ecx, esi */
   2322     _flag_k = FK_CMP;
   2323     eax = 0x2AAAAAABu; /* 0x36102DDE: mov eax, 0x2aaaaaab */
   2324     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102DE3: imul ecx */
   2325       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2326       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2327     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102DE5: sar edx, 2 */
   2328     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2329     edx = (uint32_t)((int32_t)edx >> 2u);
   2330     ecx = edx; /* 0x36102DE8: mov ecx, edx */
   2331     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36102DEA: shr ecx, 0x1f */
   2332     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2333     ecx = ecx >> 31u; /* 0x36102DEA: shr ecx, 0x1f */
   2334     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2336     edx = edx + ecx; /* 0x36102DED: add edx, ecx */
   2337     _flag_k = FK_ADD;
   2338     /* cmp edx, 1 */ /* 0x36102DEF: cmp edx, 1 */
   2339     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2341     _flag_k = FK_CMP;
   2342     MEM32(ebp + (-0xC)) = esi; /* 0x36102DF2: mov dword ptr [ebp - 0xc], esi */
   2343     if (CMP_AE(_flag_a, _flag_b)) goto L_36102EAC; /* 0x36102DF5: jae 0x36102eac */
   2344 L_36102DFB:
   2345     ecx = ebx; /* 0x36102DFB: mov ecx, ebx */
   2346     RECOMP_ICALL(0x36147020u); /* 0x36102DFD: call 0x36147020 */ /* not lifted */
   2347     RECOMP_FLAGS_IN();
   2348     /* cmp eax, 1 */ /* 0x36102E02: cmp eax, 1 */
   2349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2351     _flag_k = FK_CMP;
   2352     if (CMP_BE(_flag_a, _flag_b)) goto L_36102E12; /* 0x36102E05: jbe 0x36102e12 */
   2353 L_36102E07:
   2354     ecx = ebx; /* 0x36102E07: mov ecx, ebx */
   2355     RECOMP_ICALL(0x36147020u); /* 0x36102E09: call 0x36147020 */ /* not lifted */
   2356     RECOMP_FLAGS_IN();
   2357     edi = eax; /* 0x36102E0E: mov edi, eax */
   2358     goto L_36102E17; /* 0x36102E10: jmp 0x36102e17 */
   2359 L_36102E12:
   2360     edi = 1; /* 0x36102E12: mov edi, 1 */
   2361 L_36102E17:
   2362     ecx = ebx; /* 0x36102E17: mov ecx, ebx */
   2363     RECOMP_ICALL(0x36147020u); /* 0x36102E19: call 0x36147020 */ /* not lifted */
   2364     RECOMP_FLAGS_IN();
   2365     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2367     eax = eax + edi; /* 0x36102E1E: add eax, edi */
   2368     _flag_k = FK_ADD;
   2369     MEM32(ebp + (-0xC)) = eax; /* 0x36102E20: mov dword ptr [ebp - 0xc], eax */
   2370     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36102E27; /* 0x36102E23: jns 0x36102e27 */
   2371 L_36102E25:
   2372     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2373     eax = 0; /* 0x36102E25: xor eax, eax */
   2374     _cf = 0;
   2375     _flag_k = FK_TEST;
   2376 L_36102E27:
   2377     edx = eax + eax * 2; /* 0x36102E27: lea edx, [eax + eax*2] */
   2378     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36102E2A: shl edx, 3 */
   2379     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2380     edx = edx << 3u; /* 0x36102E2A: shl edx, 3 */
   2381     PUSH32(esp, edx); /* 0x36102E2D: push edx */
   2382     RECOMP_ICALL(0x3615FD6Au); /* 0x36102E2E: call 0x3615fd6a */ /* not lifted */
   2383     RECOMP_FLAGS_IN();
   2384     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2385     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2386     esp = esp + 4; /* 0x36102E33: add esp, 4 */
   2387     _flag_k = FK_ADD;
   2388     edi = eax; /* 0x36102E36: mov edi, eax */
   2389     eax = MEM32(ebx + 0x4); /* 0x36102E38: mov eax, dword ptr [ebx + 4] */
   2390     PUSH32(esp, edi); /* 0x36102E3B: push edi */
   2391     PUSH32(esp, esi); /* 0x36102E3C: push esi */
   2392     PUSH32(esp, eax); /* 0x36102E3D: push eax */
   2393     ecx = ebx; /* 0x36102E3E: mov ecx, ebx */
   2394     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E40: call 0x3615a1c0 */ /* not lifted */
   2395     RECOMP_FLAGS_IN();
   2396     ecx = ebp + (-0x2C); /* 0x36102E45: lea ecx, [ebp - 0x2c] */
   2397     PUSH32(esp, ecx); /* 0x36102E48: push ecx */
   2398     PUSH32(esp, 1); /* 0x36102E49: push 1 */
   2399     PUSH32(esp, eax); /* 0x36102E4B: push eax */
   2400     ecx = ebx; /* 0x36102E4C: mov ecx, ebx */
   2401     MEM32(ebp + (-0x14)) = eax; /* 0x36102E4E: mov dword ptr [ebp - 0x14], eax */
   2402     RECOMP_ICALL(0x3615A200u); /* 0x36102E51: call 0x3615a200 */ /* not lifted */
   2403     RECOMP_FLAGS_IN();
   2404     edx = MEM32(ebp + (-0x14)); /* 0x36102E56: mov edx, dword ptr [ebp - 0x14] */
   2405     eax = MEM32(ebx + 0x8); /* 0x36102E59: mov eax, dword ptr [ebx + 8] */
   2406     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   2407     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2408     edx = edx + 0x18u; /* 0x36102E5C: add edx, 0x18 */
   2409     _flag_k = FK_ADD;
   2410     PUSH32(esp, edx); /* 0x36102E5F: push edx */
   2411     PUSH32(esp, eax); /* 0x36102E60: push eax */
   2412     PUSH32(esp, esi); /* 0x36102E61: push esi */
   2413     ecx = ebx; /* 0x36102E62: mov ecx, ebx */
   2414     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E64: call 0x3615a1c0 */ /* not lifted */
   2415     RECOMP_FLAGS_IN();
   2416     ecx = MEM32(ebx + 0x8); /* 0x36102E69: mov ecx, dword ptr [ebx + 8] */
   2417     edx = MEM32(ebx + 0x4); /* 0x36102E6C: mov edx, dword ptr [ebx + 4] */
   2418     PUSH32(esp, ecx); /* 0x36102E6F: push ecx */
   2419     PUSH32(esp, edx); /* 0x36102E70: push edx */
   2420     ecx = ebx; /* 0x36102E71: mov ecx, ebx */
   2421     RECOMP_ICALL(0x3610ED60u); /* 0x36102E73: call 0x3610ed60 */ /* not lifted */
   2422     RECOMP_FLAGS_IN();
   2423     eax = MEM32(ebx + 0x4); /* 0x36102E78: mov eax, dword ptr [ebx + 4] */
   2424     PUSH32(esp, eax); /* 0x36102E7B: push eax */
   2425     RECOMP_ICALL(0x3615FCC4u); /* 0x36102E7C: call 0x3615fcc4 */ /* not lifted */
   2426     RECOMP_FLAGS_IN();
   2427     eax = MEM32(ebp + (-0xC)); /* 0x36102E81: mov eax, dword ptr [ebp - 0xc] */
   2428     ecx = eax + eax * 2; /* 0x36102E84: lea ecx, [eax + eax*2] */
   2429     edx = edi + ecx * 8; /* 0x36102E87: lea edx, [edi + ecx*8] */
   2430     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2431     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2432     esp = esp + 4; /* 0x36102E8A: add esp, 4 */
   2433     _flag_k = FK_ADD;
   2434     ecx = ebx; /* 0x36102E8D: mov ecx, ebx */
   2435     MEM32(ebx + 0xC) = edx; /* 0x36102E8F: mov dword ptr [ebx + 0xc], edx */
   2436     RECOMP_ICALL(0x36147020u); /* 0x36102E92: call 0x36147020 */ /* not lifted */
   2437     RECOMP_FLAGS_IN();
   2438     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2439     eax = eax + 1; /* 0x36102E97: inc eax */
   2440     _flag_k = FK_INC;
   2441     eax = eax + eax * 2; /* 0x36102E98: lea eax, [eax + eax*2] */
   2442     ecx = edi + eax * 8; /* 0x36102E9B: lea ecx, [edi + eax*8] */
   2443     MEM32(ebx + 0x4) = edi; /* 0x36102E9E: mov dword ptr [ebx + 4], edi */
   2444     edi = MEM32(ebp + (-0x4)); /* 0x36102EA1: mov edi, dword ptr [ebp - 4] */
   2445     MEM32(ebx + 0x8) = ecx; /* 0x36102EA4: mov dword ptr [ebx + 8], ecx */
   2446     goto L_36102F78; /* 0x36102EA7: jmp 0x36102f78 */
   2447 L_36102EAC:
   2448     ecx = esi; /* 0x36102EAC: mov ecx, esi */
   2449     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2451     ecx = ecx - esi; /* 0x36102EAE: sub ecx, esi */
   2452     _flag_k = FK_CMP;
   2453     eax = 0x2AAAAAABu; /* 0x36102EB0: mov eax, 0x2aaaaaab */
   2454     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EB5: imul ecx */
   2455       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2456       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2457     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EB7: sar edx, 2 */
   2458     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2459     edx = (uint32_t)((int32_t)edx >> 2u);
   2460     eax = edx; /* 0x36102EBA: mov eax, edx */
   2461     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EBC: shr eax, 0x1f */
   2462     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2463     eax = eax >> 31u; /* 0x36102EBC: shr eax, 0x1f */
   2464     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2465     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2466     edx = edx + eax; /* 0x36102EBF: add edx, eax */
   2467     _flag_k = FK_ADD;
   2468     /* cmp edx, 1 */ /* 0x36102EC1: cmp edx, 1 */
   2469     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2471     _flag_k = FK_CMP;
   2472     if (CMP_AE(_flag_a, _flag_b)) goto L_36102F1E; /* 0x36102EC4: jae 0x36102f1e */
   2473 L_36102EC6:
   2474     ecx = esi + 0x18; /* 0x36102EC6: lea ecx, [esi + 0x18] */
   2475     PUSH32(esp, ecx); /* 0x36102EC9: push ecx */
   2476     PUSH32(esp, esi); /* 0x36102ECA: push esi */
   2477     PUSH32(esp, esi); /* 0x36102ECB: push esi */
   2478     ecx = ebx; /* 0x36102ECC: mov ecx, ebx */
   2479     RECOMP_ICALL(0x3615A1C0u); /* 0x36102ECE: call 0x3615a1c0 */ /* not lifted */
   2480     RECOMP_FLAGS_IN();
   2481     ecx = MEM32(ebx + 0x8); /* 0x36102ED3: mov ecx, dword ptr [ebx + 8] */
   2482     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2484     ecx = ecx - esi; /* 0x36102ED6: sub ecx, esi */
   2485     _flag_k = FK_CMP;
   2486     edx = ebp + (-0x2C); /* 0x36102ED8: lea edx, [ebp - 0x2c] */
   2487     PUSH32(esp, edx); /* 0x36102EDB: push edx */
   2488     eax = 0x2AAAAAABu; /* 0x36102EDC: mov eax, 0x2aaaaaab */
   2489     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EE1: imul ecx */
   2490       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2491       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2492     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EE3: sar edx, 2 */
   2493     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2494     edx = (uint32_t)((int32_t)edx >> 2u);
   2495     eax = edx; /* 0x36102EE6: mov eax, edx */
   2496     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EE8: shr eax, 0x1f */
   2497     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2498     eax = eax >> 31u; /* 0x36102EE8: shr eax, 0x1f */
   2499     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2501     edx = edx + eax; /* 0x36102EEB: add edx, eax */
   2502     _flag_k = FK_ADD;
   2503     eax = MEM32(ebx + 0x8); /* 0x36102EED: mov eax, dword ptr [ebx + 8] */
   2504     ecx = 1; /* 0x36102EF0: mov ecx, 1 */
   2505     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2507     ecx = ecx - edx; /* 0x36102EF5: sub ecx, edx */
   2508     _flag_k = FK_CMP;
   2509     PUSH32(esp, ecx); /* 0x36102EF7: push ecx */
   2510     PUSH32(esp, eax); /* 0x36102EF8: push eax */
   2511     ecx = ebx; /* 0x36102EF9: mov ecx, ebx */
   2512     RECOMP_ICALL(0x3615A200u); /* 0x36102EFB: call 0x3615a200 */ /* not lifted */
   2513     RECOMP_FLAGS_IN();
   2514     edx = MEM32(ebx + 0x8); /* 0x36102F00: mov edx, dword ptr [ebx + 8] */
   2515     /* cmp esi, edx */ /* 0x36102F03: cmp esi, edx */
   2516     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2518     _flag_k = FK_CMP;
   2519     eax = esi; /* 0x36102F05: mov eax, esi */
   2520     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F07: je 0x36102f74 */
   2521 L_36102F09:
   2522     edi = eax; /* 0x36102F09: mov edi, eax */
   2523     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2525     eax = eax + 0x18u; /* 0x36102F0B: add eax, 0x18 */
   2526     _flag_k = FK_ADD;
   2527     /* cmp eax, edx */ /* 0x36102F0E: cmp eax, edx */
   2528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2530     _flag_k = FK_CMP;
   2531     ecx = 6; /* 0x36102F10: mov ecx, 6 */
   2532     esi = ebp + (-0x2C); /* 0x36102F15: lea esi, [ebp - 0x2c] */
   2533     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F18: 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; }
   2534     RECOMP_BACKEDGE();
   2535     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F09; /* 0x36102F1A: jne 0x36102f09 */
   2536 L_36102F1C:
   2537     goto L_36102F71; /* 0x36102F1C: jmp 0x36102f71 */
   2538 L_36102F1E:
   2539     PUSH32(esp, esi); /* 0x36102F1E: push esi */
   2540     eax = esi + (-0x18); /* 0x36102F1F: lea eax, [esi - 0x18] */
   2541     PUSH32(esp, esi); /* 0x36102F22: push esi */
   2542     PUSH32(esp, eax); /* 0x36102F23: push eax */
   2543     ecx = ebx; /* 0x36102F24: mov ecx, ebx */
   2544     MEM32(ebp + (-0x14)) = eax; /* 0x36102F26: mov dword ptr [ebp - 0x14], eax */
   2545     RECOMP_ICALL(0x3615A1C0u); /* 0x36102F29: call 0x3615a1c0 */ /* not lifted */
   2546     RECOMP_FLAGS_IN();
   2547     edx = MEM32(ebx + 0x8); /* 0x36102F2E: mov edx, dword ptr [ebx + 8] */
   2548     eax = edx + (-0x18); /* 0x36102F31: lea eax, [edx - 0x18] */
   2549     /* cmp esi, eax */ /* 0x36102F34: cmp esi, eax */
   2550     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2552     _flag_k = FK_CMP;
   2553     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F55; /* 0x36102F36: je 0x36102f55 */
   2554 L_36102F38:
   2555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2557     eax = eax - 0x18u; /* 0x36102F38: sub eax, 0x18 */
   2558     _flag_k = FK_CMP;
   2559     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   2560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2561     edx = edx - 0x18u; /* 0x36102F3B: sub edx, 0x18 */
   2562     _flag_k = FK_CMP;
   2563     ecx = 6; /* 0x36102F3E: mov ecx, 6 */
   2564     esi = eax; /* 0x36102F43: mov esi, eax */
   2565     edi = edx; /* 0x36102F45: mov edi, edx */
   2566     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F47: 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; }
   2567     ecx = MEM32(ebp + (-0xC)); /* 0x36102F49: mov ecx, dword ptr [ebp - 0xc] */
   2568     /* cmp eax, ecx */ /* 0x36102F4C: cmp eax, ecx */
   2569     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2571     _flag_k = FK_CMP;
   2572     RECOMP_BACKEDGE();
   2573     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F38; /* 0x36102F4E: jne 0x36102f38 */
   2574 L_36102F50:
   2575     edi = MEM32(ebp + (-0x4)); /* 0x36102F50: mov edi, dword ptr [ebp - 4] */
   2576     esi = ecx; /* 0x36102F53: mov esi, ecx */
   2577 L_36102F55:
   2578     edx = esi + 0x18; /* 0x36102F55: lea edx, [esi + 0x18] */
   2579     /* cmp esi, edx */ /* 0x36102F58: cmp esi, edx */
   2580     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2582     _flag_k = FK_CMP;
   2583     eax = esi; /* 0x36102F5A: mov eax, esi */
   2584     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F5C: je 0x36102f74 */
   2585 L_36102F5E:
   2586     edi = eax; /* 0x36102F5E: mov edi, eax */
   2587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2588     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2589     eax = eax + 0x18u; /* 0x36102F60: add eax, 0x18 */
   2590     _flag_k = FK_ADD;
   2591     /* cmp eax, edx */ /* 0x36102F63: cmp eax, edx */
   2592     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2594     _flag_k = FK_CMP;
   2595     ecx = 6; /* 0x36102F65: mov ecx, 6 */
   2596     esi = ebp + (-0x2C); /* 0x36102F6A: lea esi, [ebp - 0x2c] */
   2597     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F6D: 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; }
   2598     RECOMP_BACKEDGE();
   2599     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F5E; /* 0x36102F6F: jne 0x36102f5e */
   2600 L_36102F71:
   2601     edi = MEM32(ebp + (-0x4)); /* 0x36102F71: mov edi, dword ptr [ebp - 4] */
   2602 L_36102F74:
   2603     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0x18u);
   2604     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2605     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0x18u; /* 0x36102F74: add dword ptr [ebx + 8], 0x18 */
   2606     _flag_k = FK_ADD;
   2607 L_36102F78:
   2608     ecx = MEM32(ebp + (-0x8)); /* 0x36102F78: mov ecx, dword ptr [ebp - 8] */
   2609     eax = MEM32(ebp + (-0x10)); /* 0x36102F7B: mov eax, dword ptr [ebp - 0x10] */
   2610     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6);
   2611     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2612     ecx = ecx + 6; /* 0x36102F7E: add ecx, 6 */
   2613     _flag_k = FK_ADD;
   2614     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2615     eax = eax - 1; /* 0x36102F81: dec eax */
   2616     _flag_k = FK_DEC;
   2617     MEM32(ebp + (-0x8)) = ecx; /* 0x36102F82: mov dword ptr [ebp - 8], ecx */
   2618     MEM32(ebp + (-0x10)) = eax; /* 0x36102F85: mov dword ptr [ebp - 0x10], eax */
   2619     RECOMP_BACKEDGE();
   2620     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36102D82; /* 0x36102F88: jne 0x36102d82 */
   2621 L_36102F8E:
   2622     edi = POP32_VAL(esp); /* 0x36102F8E: pop edi */
   2623     esi = POP32_VAL(esp); /* 0x36102F8F: pop esi */
   2624     ebx = POP32_VAL(esp); /* 0x36102F90: pop ebx */
   2625     esp = ebp; /* 0x36102F91: mov esp, ebp */
   2626     ebp = POP32_VAL(esp); /* 0x36102F93: pop ebp */
   2627     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102F94: ret  */
   2628     RECOMP_REGS_OUT();
   2629 }
   2630 
   2631 void sub_36102EAC(void) {
   2632     int _fpu_cmp = 0;
   2633     uint32_t _cf = 0;
   2634     int _df = 1;
   2635     uint32_t _flag_k = FK_NONE;
   2636     uint32_t _flag_a = 0, _flag_b = 0;
   2637     uint32_t _itail_tgt = 0;
   2638     RECOMP_REGS_LOCALS
   2639     RECOMP_ENTER(0x36102EACu);
   2640 
   2641     goto L_36102EAC;
   2642 L_36102D82:
   2643     esi = MEM32(ebp + (-0x8)); /* 0x36102D82: mov esi, dword ptr [ebp - 8] */
   2644     eax = esi + (-0x2); /* 0x36102D85: lea eax, [esi - 2] */
   2645     PUSH32(esp, eax); /* 0x36102D88: push eax */
   2646     ecx = edi; /* 0x36102D89: mov ecx, edi */
   2647     RECOMP_ICALL(0x36136FE0u); /* 0x36102D8B: call 0x36136fe0 */ /* not lifted */
   2648     RECOMP_FLAGS_IN();
   2649     ecx = esi + (-0x1); /* 0x36102D90: lea ecx, [esi - 1] */
   2650     PUSH32(esp, ecx); /* 0x36102D93: push ecx */
   2651     ecx = edi; /* 0x36102D94: mov ecx, edi */
   2652     MEM32(ebp + (-0x2C)) = eax; /* 0x36102D96: mov dword ptr [ebp - 0x2c], eax */
   2653     RECOMP_ICALL(0x36136FE0u); /* 0x36102D99: call 0x36136fe0 */ /* not lifted */
   2654     RECOMP_FLAGS_IN();
   2655     PUSH32(esp, esi); /* 0x36102D9E: push esi */
   2656     ecx = edi; /* 0x36102D9F: mov ecx, edi */
   2657     MEM32(ebp + (-0x28)) = eax; /* 0x36102DA1: mov dword ptr [ebp - 0x28], eax */
   2658     RECOMP_ICALL(0x36137010u); /* 0x36102DA4: call 0x36137010 */ /* not lifted */
   2659     RECOMP_FLAGS_IN();
   2660     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102DA9: fstp dword ptr [ebp - 0x24] */
   2661     edx = esi + 0x1; /* 0x36102DAC: lea edx, [esi + 1] */
   2662     PUSH32(esp, edx); /* 0x36102DAF: push edx */
   2663     ecx = edi; /* 0x36102DB0: mov ecx, edi */
   2664     RECOMP_ICALL(0x36137010u); /* 0x36102DB2: call 0x36137010 */ /* not lifted */
   2665     RECOMP_FLAGS_IN();
   2666     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102DB7: fstp dword ptr [ebp - 0x20] */
   2667     eax = esi + 0x2; /* 0x36102DBA: lea eax, [esi + 2] */
   2668     PUSH32(esp, eax); /* 0x36102DBD: push eax */
   2669     ecx = edi; /* 0x36102DBE: mov ecx, edi */
   2670     RECOMP_ICALL(0x36137010u); /* 0x36102DC0: call 0x36137010 */ /* not lifted */
   2671     RECOMP_FLAGS_IN();
   2672     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102DC5: fstp dword ptr [ebp - 0x1c] */
   2673     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
   2674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2675     esi = esi + 3; /* 0x36102DC8: add esi, 3 */
   2676     _flag_k = FK_ADD;
   2677     PUSH32(esp, esi); /* 0x36102DCB: push esi */
   2678     ecx = edi; /* 0x36102DCC: mov ecx, edi */
   2679     RECOMP_ICALL(0x36137010u); /* 0x36102DCE: call 0x36137010 */ /* not lifted */
   2680     RECOMP_FLAGS_IN();
   2681     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102DD3: fstp dword ptr [ebp - 0x18] */
   2682     esi = MEM32(ebx + 0x8); /* 0x36102DD6: mov esi, dword ptr [ebx + 8] */
   2683     ecx = MEM32(ebx + 0xC); /* 0x36102DD9: mov ecx, dword ptr [ebx + 0xc] */
   2684     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2686     ecx = ecx - esi; /* 0x36102DDC: sub ecx, esi */
   2687     _flag_k = FK_CMP;
   2688     eax = 0x2AAAAAABu; /* 0x36102DDE: mov eax, 0x2aaaaaab */
   2689     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102DE3: imul ecx */
   2690       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2691       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2692     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102DE5: sar edx, 2 */
   2693     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2694     edx = (uint32_t)((int32_t)edx >> 2u);
   2695     ecx = edx; /* 0x36102DE8: mov ecx, edx */
   2696     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36102DEA: shr ecx, 0x1f */
   2697     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2698     ecx = ecx >> 31u; /* 0x36102DEA: shr ecx, 0x1f */
   2699     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2700     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2701     edx = edx + ecx; /* 0x36102DED: add edx, ecx */
   2702     _flag_k = FK_ADD;
   2703     /* cmp edx, 1 */ /* 0x36102DEF: cmp edx, 1 */
   2704     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2706     _flag_k = FK_CMP;
   2707     MEM32(ebp + (-0xC)) = esi; /* 0x36102DF2: mov dword ptr [ebp - 0xc], esi */
   2708     if (CMP_AE(_flag_a, _flag_b)) goto L_36102EAC; /* 0x36102DF5: jae 0x36102eac */
   2709 L_36102DFB:
   2710     ecx = ebx; /* 0x36102DFB: mov ecx, ebx */
   2711     RECOMP_ICALL(0x36147020u); /* 0x36102DFD: call 0x36147020 */ /* not lifted */
   2712     RECOMP_FLAGS_IN();
   2713     /* cmp eax, 1 */ /* 0x36102E02: cmp eax, 1 */
   2714     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2716     _flag_k = FK_CMP;
   2717     if (CMP_BE(_flag_a, _flag_b)) goto L_36102E12; /* 0x36102E05: jbe 0x36102e12 */
   2718 L_36102E07:
   2719     ecx = ebx; /* 0x36102E07: mov ecx, ebx */
   2720     RECOMP_ICALL(0x36147020u); /* 0x36102E09: call 0x36147020 */ /* not lifted */
   2721     RECOMP_FLAGS_IN();
   2722     edi = eax; /* 0x36102E0E: mov edi, eax */
   2723     goto L_36102E17; /* 0x36102E10: jmp 0x36102e17 */
   2724 L_36102E12:
   2725     edi = 1; /* 0x36102E12: mov edi, 1 */
   2726 L_36102E17:
   2727     ecx = ebx; /* 0x36102E17: mov ecx, ebx */
   2728     RECOMP_ICALL(0x36147020u); /* 0x36102E19: call 0x36147020 */ /* not lifted */
   2729     RECOMP_FLAGS_IN();
   2730     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2732     eax = eax + edi; /* 0x36102E1E: add eax, edi */
   2733     _flag_k = FK_ADD;
   2734     MEM32(ebp + (-0xC)) = eax; /* 0x36102E20: mov dword ptr [ebp - 0xc], eax */
   2735     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36102E27; /* 0x36102E23: jns 0x36102e27 */
   2736 L_36102E25:
   2737     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2738     eax = 0; /* 0x36102E25: xor eax, eax */
   2739     _cf = 0;
   2740     _flag_k = FK_TEST;
   2741 L_36102E27:
   2742     edx = eax + eax * 2; /* 0x36102E27: lea edx, [eax + eax*2] */
   2743     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36102E2A: shl edx, 3 */
   2744     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2745     edx = edx << 3u; /* 0x36102E2A: shl edx, 3 */
   2746     PUSH32(esp, edx); /* 0x36102E2D: push edx */
   2747     RECOMP_ICALL(0x3615FD6Au); /* 0x36102E2E: call 0x3615fd6a */ /* not lifted */
   2748     RECOMP_FLAGS_IN();
   2749     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2750     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2751     esp = esp + 4; /* 0x36102E33: add esp, 4 */
   2752     _flag_k = FK_ADD;
   2753     edi = eax; /* 0x36102E36: mov edi, eax */
   2754     eax = MEM32(ebx + 0x4); /* 0x36102E38: mov eax, dword ptr [ebx + 4] */
   2755     PUSH32(esp, edi); /* 0x36102E3B: push edi */
   2756     PUSH32(esp, esi); /* 0x36102E3C: push esi */
   2757     PUSH32(esp, eax); /* 0x36102E3D: push eax */
   2758     ecx = ebx; /* 0x36102E3E: mov ecx, ebx */
   2759     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E40: call 0x3615a1c0 */ /* not lifted */
   2760     RECOMP_FLAGS_IN();
   2761     ecx = ebp + (-0x2C); /* 0x36102E45: lea ecx, [ebp - 0x2c] */
   2762     PUSH32(esp, ecx); /* 0x36102E48: push ecx */
   2763     PUSH32(esp, 1); /* 0x36102E49: push 1 */
   2764     PUSH32(esp, eax); /* 0x36102E4B: push eax */
   2765     ecx = ebx; /* 0x36102E4C: mov ecx, ebx */
   2766     MEM32(ebp + (-0x14)) = eax; /* 0x36102E4E: mov dword ptr [ebp - 0x14], eax */
   2767     RECOMP_ICALL(0x3615A200u); /* 0x36102E51: call 0x3615a200 */ /* not lifted */
   2768     RECOMP_FLAGS_IN();
   2769     edx = MEM32(ebp + (-0x14)); /* 0x36102E56: mov edx, dword ptr [ebp - 0x14] */
   2770     eax = MEM32(ebx + 0x8); /* 0x36102E59: mov eax, dword ptr [ebx + 8] */
   2771     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   2772     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2773     edx = edx + 0x18u; /* 0x36102E5C: add edx, 0x18 */
   2774     _flag_k = FK_ADD;
   2775     PUSH32(esp, edx); /* 0x36102E5F: push edx */
   2776     PUSH32(esp, eax); /* 0x36102E60: push eax */
   2777     PUSH32(esp, esi); /* 0x36102E61: push esi */
   2778     ecx = ebx; /* 0x36102E62: mov ecx, ebx */
   2779     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E64: call 0x3615a1c0 */ /* not lifted */
   2780     RECOMP_FLAGS_IN();
   2781     ecx = MEM32(ebx + 0x8); /* 0x36102E69: mov ecx, dword ptr [ebx + 8] */
   2782     edx = MEM32(ebx + 0x4); /* 0x36102E6C: mov edx, dword ptr [ebx + 4] */
   2783     PUSH32(esp, ecx); /* 0x36102E6F: push ecx */
   2784     PUSH32(esp, edx); /* 0x36102E70: push edx */
   2785     ecx = ebx; /* 0x36102E71: mov ecx, ebx */
   2786     RECOMP_ICALL(0x3610ED60u); /* 0x36102E73: call 0x3610ed60 */ /* not lifted */
   2787     RECOMP_FLAGS_IN();
   2788     eax = MEM32(ebx + 0x4); /* 0x36102E78: mov eax, dword ptr [ebx + 4] */
   2789     PUSH32(esp, eax); /* 0x36102E7B: push eax */
   2790     RECOMP_ICALL(0x3615FCC4u); /* 0x36102E7C: call 0x3615fcc4 */ /* not lifted */
   2791     RECOMP_FLAGS_IN();
   2792     eax = MEM32(ebp + (-0xC)); /* 0x36102E81: mov eax, dword ptr [ebp - 0xc] */
   2793     ecx = eax + eax * 2; /* 0x36102E84: lea ecx, [eax + eax*2] */
   2794     edx = edi + ecx * 8; /* 0x36102E87: lea edx, [edi + ecx*8] */
   2795     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2796     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2797     esp = esp + 4; /* 0x36102E8A: add esp, 4 */
   2798     _flag_k = FK_ADD;
   2799     ecx = ebx; /* 0x36102E8D: mov ecx, ebx */
   2800     MEM32(ebx + 0xC) = edx; /* 0x36102E8F: mov dword ptr [ebx + 0xc], edx */
   2801     RECOMP_ICALL(0x36147020u); /* 0x36102E92: call 0x36147020 */ /* not lifted */
   2802     RECOMP_FLAGS_IN();
   2803     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2804     eax = eax + 1; /* 0x36102E97: inc eax */
   2805     _flag_k = FK_INC;
   2806     eax = eax + eax * 2; /* 0x36102E98: lea eax, [eax + eax*2] */
   2807     ecx = edi + eax * 8; /* 0x36102E9B: lea ecx, [edi + eax*8] */
   2808     MEM32(ebx + 0x4) = edi; /* 0x36102E9E: mov dword ptr [ebx + 4], edi */
   2809     edi = MEM32(ebp + (-0x4)); /* 0x36102EA1: mov edi, dword ptr [ebp - 4] */
   2810     MEM32(ebx + 0x8) = ecx; /* 0x36102EA4: mov dword ptr [ebx + 8], ecx */
   2811     goto L_36102F78; /* 0x36102EA7: jmp 0x36102f78 */
   2812 L_36102EAC:
   2813     ecx = esi; /* 0x36102EAC: mov ecx, esi */
   2814     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2816     ecx = ecx - esi; /* 0x36102EAE: sub ecx, esi */
   2817     _flag_k = FK_CMP;
   2818     eax = 0x2AAAAAABu; /* 0x36102EB0: mov eax, 0x2aaaaaab */
   2819     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EB5: imul ecx */
   2820       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2821       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2822     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EB7: sar edx, 2 */
   2823     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2824     edx = (uint32_t)((int32_t)edx >> 2u);
   2825     eax = edx; /* 0x36102EBA: mov eax, edx */
   2826     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EBC: shr eax, 0x1f */
   2827     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2828     eax = eax >> 31u; /* 0x36102EBC: shr eax, 0x1f */
   2829     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2830     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2831     edx = edx + eax; /* 0x36102EBF: add edx, eax */
   2832     _flag_k = FK_ADD;
   2833     /* cmp edx, 1 */ /* 0x36102EC1: cmp edx, 1 */
   2834     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2836     _flag_k = FK_CMP;
   2837     if (CMP_AE(_flag_a, _flag_b)) goto L_36102F1E; /* 0x36102EC4: jae 0x36102f1e */
   2838 L_36102EC6:
   2839     ecx = esi + 0x18; /* 0x36102EC6: lea ecx, [esi + 0x18] */
   2840     PUSH32(esp, ecx); /* 0x36102EC9: push ecx */
   2841     PUSH32(esp, esi); /* 0x36102ECA: push esi */
   2842     PUSH32(esp, esi); /* 0x36102ECB: push esi */
   2843     ecx = ebx; /* 0x36102ECC: mov ecx, ebx */
   2844     RECOMP_ICALL(0x3615A1C0u); /* 0x36102ECE: call 0x3615a1c0 */ /* not lifted */
   2845     RECOMP_FLAGS_IN();
   2846     ecx = MEM32(ebx + 0x8); /* 0x36102ED3: mov ecx, dword ptr [ebx + 8] */
   2847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2849     ecx = ecx - esi; /* 0x36102ED6: sub ecx, esi */
   2850     _flag_k = FK_CMP;
   2851     edx = ebp + (-0x2C); /* 0x36102ED8: lea edx, [ebp - 0x2c] */
   2852     PUSH32(esp, edx); /* 0x36102EDB: push edx */
   2853     eax = 0x2AAAAAABu; /* 0x36102EDC: mov eax, 0x2aaaaaab */
   2854     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EE1: imul ecx */
   2855       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2856       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2857     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EE3: sar edx, 2 */
   2858     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2859     edx = (uint32_t)((int32_t)edx >> 2u);
   2860     eax = edx; /* 0x36102EE6: mov eax, edx */
   2861     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EE8: shr eax, 0x1f */
   2862     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2863     eax = eax >> 31u; /* 0x36102EE8: shr eax, 0x1f */
   2864     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2865     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2866     edx = edx + eax; /* 0x36102EEB: add edx, eax */
   2867     _flag_k = FK_ADD;
   2868     eax = MEM32(ebx + 0x8); /* 0x36102EED: mov eax, dword ptr [ebx + 8] */
   2869     ecx = 1; /* 0x36102EF0: mov ecx, 1 */
   2870     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2872     ecx = ecx - edx; /* 0x36102EF5: sub ecx, edx */
   2873     _flag_k = FK_CMP;
   2874     PUSH32(esp, ecx); /* 0x36102EF7: push ecx */
   2875     PUSH32(esp, eax); /* 0x36102EF8: push eax */
   2876     ecx = ebx; /* 0x36102EF9: mov ecx, ebx */
   2877     RECOMP_ICALL(0x3615A200u); /* 0x36102EFB: call 0x3615a200 */ /* not lifted */
   2878     RECOMP_FLAGS_IN();
   2879     edx = MEM32(ebx + 0x8); /* 0x36102F00: mov edx, dword ptr [ebx + 8] */
   2880     /* cmp esi, edx */ /* 0x36102F03: cmp esi, edx */
   2881     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2883     _flag_k = FK_CMP;
   2884     eax = esi; /* 0x36102F05: mov eax, esi */
   2885     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F07: je 0x36102f74 */
   2886 L_36102F09:
   2887     edi = eax; /* 0x36102F09: mov edi, eax */
   2888     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2890     eax = eax + 0x18u; /* 0x36102F0B: add eax, 0x18 */
   2891     _flag_k = FK_ADD;
   2892     /* cmp eax, edx */ /* 0x36102F0E: cmp eax, edx */
   2893     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2894     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2895     _flag_k = FK_CMP;
   2896     ecx = 6; /* 0x36102F10: mov ecx, 6 */
   2897     esi = ebp + (-0x2C); /* 0x36102F15: lea esi, [ebp - 0x2c] */
   2898     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F18: 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; }
   2899     RECOMP_BACKEDGE();
   2900     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F09; /* 0x36102F1A: jne 0x36102f09 */
   2901 L_36102F1C:
   2902     goto L_36102F71; /* 0x36102F1C: jmp 0x36102f71 */
   2903 L_36102F1E:
   2904     PUSH32(esp, esi); /* 0x36102F1E: push esi */
   2905     eax = esi + (-0x18); /* 0x36102F1F: lea eax, [esi - 0x18] */
   2906     PUSH32(esp, esi); /* 0x36102F22: push esi */
   2907     PUSH32(esp, eax); /* 0x36102F23: push eax */
   2908     ecx = ebx; /* 0x36102F24: mov ecx, ebx */
   2909     MEM32(ebp + (-0x14)) = eax; /* 0x36102F26: mov dword ptr [ebp - 0x14], eax */
   2910     RECOMP_ICALL(0x3615A1C0u); /* 0x36102F29: call 0x3615a1c0 */ /* not lifted */
   2911     RECOMP_FLAGS_IN();
   2912     edx = MEM32(ebx + 0x8); /* 0x36102F2E: mov edx, dword ptr [ebx + 8] */
   2913     eax = edx + (-0x18); /* 0x36102F31: lea eax, [edx - 0x18] */
   2914     /* cmp esi, eax */ /* 0x36102F34: cmp esi, eax */
   2915     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2917     _flag_k = FK_CMP;
   2918     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F55; /* 0x36102F36: je 0x36102f55 */
   2919 L_36102F38:
   2920     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2922     eax = eax - 0x18u; /* 0x36102F38: sub eax, 0x18 */
   2923     _flag_k = FK_CMP;
   2924     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   2925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2926     edx = edx - 0x18u; /* 0x36102F3B: sub edx, 0x18 */
   2927     _flag_k = FK_CMP;
   2928     ecx = 6; /* 0x36102F3E: mov ecx, 6 */
   2929     esi = eax; /* 0x36102F43: mov esi, eax */
   2930     edi = edx; /* 0x36102F45: mov edi, edx */
   2931     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F47: 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; }
   2932     ecx = MEM32(ebp + (-0xC)); /* 0x36102F49: mov ecx, dword ptr [ebp - 0xc] */
   2933     /* cmp eax, ecx */ /* 0x36102F4C: cmp eax, ecx */
   2934     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2936     _flag_k = FK_CMP;
   2937     RECOMP_BACKEDGE();
   2938     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F38; /* 0x36102F4E: jne 0x36102f38 */
   2939 L_36102F50:
   2940     edi = MEM32(ebp + (-0x4)); /* 0x36102F50: mov edi, dword ptr [ebp - 4] */
   2941     esi = ecx; /* 0x36102F53: mov esi, ecx */
   2942 L_36102F55:
   2943     edx = esi + 0x18; /* 0x36102F55: lea edx, [esi + 0x18] */
   2944     /* cmp esi, edx */ /* 0x36102F58: cmp esi, edx */
   2945     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2947     _flag_k = FK_CMP;
   2948     eax = esi; /* 0x36102F5A: mov eax, esi */
   2949     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F5C: je 0x36102f74 */
   2950 L_36102F5E:
   2951     edi = eax; /* 0x36102F5E: mov edi, eax */
   2952     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   2953     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2954     eax = eax + 0x18u; /* 0x36102F60: add eax, 0x18 */
   2955     _flag_k = FK_ADD;
   2956     /* cmp eax, edx */ /* 0x36102F63: cmp eax, edx */
   2957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2959     _flag_k = FK_CMP;
   2960     ecx = 6; /* 0x36102F65: mov ecx, 6 */
   2961     esi = ebp + (-0x2C); /* 0x36102F6A: lea esi, [ebp - 0x2c] */
   2962     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F6D: 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; }
   2963     RECOMP_BACKEDGE();
   2964     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F5E; /* 0x36102F6F: jne 0x36102f5e */
   2965 L_36102F71:
   2966     edi = MEM32(ebp + (-0x4)); /* 0x36102F71: mov edi, dword ptr [ebp - 4] */
   2967 L_36102F74:
   2968     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0x18u);
   2969     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2970     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0x18u; /* 0x36102F74: add dword ptr [ebx + 8], 0x18 */
   2971     _flag_k = FK_ADD;
   2972 L_36102F78:
   2973     ecx = MEM32(ebp + (-0x8)); /* 0x36102F78: mov ecx, dword ptr [ebp - 8] */
   2974     eax = MEM32(ebp + (-0x10)); /* 0x36102F7B: mov eax, dword ptr [ebp - 0x10] */
   2975     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6);
   2976     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2977     ecx = ecx + 6; /* 0x36102F7E: add ecx, 6 */
   2978     _flag_k = FK_ADD;
   2979     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2980     eax = eax - 1; /* 0x36102F81: dec eax */
   2981     _flag_k = FK_DEC;
   2982     MEM32(ebp + (-0x8)) = ecx; /* 0x36102F82: mov dword ptr [ebp - 8], ecx */
   2983     MEM32(ebp + (-0x10)) = eax; /* 0x36102F85: mov dword ptr [ebp - 0x10], eax */
   2984     RECOMP_BACKEDGE();
   2985     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36102D82; /* 0x36102F88: jne 0x36102d82 */
   2986 L_36102F8E:
   2987     edi = POP32_VAL(esp); /* 0x36102F8E: pop edi */
   2988     esi = POP32_VAL(esp); /* 0x36102F8F: pop esi */
   2989     ebx = POP32_VAL(esp); /* 0x36102F90: pop ebx */
   2990     esp = ebp; /* 0x36102F91: mov esp, ebp */
   2991     ebp = POP32_VAL(esp); /* 0x36102F93: pop ebp */
   2992     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102F94: ret  */
   2993     RECOMP_REGS_OUT();
   2994 }
   2995 
   2996 void sub_36102F71(void) {
   2997     int _fpu_cmp = 0;
   2998     uint32_t _cf = 0;
   2999     int _df = 1;
   3000     uint32_t _flag_k = FK_NONE;
   3001     uint32_t _flag_a = 0, _flag_b = 0;
   3002     uint32_t _itail_tgt = 0;
   3003     RECOMP_REGS_LOCALS
   3004     RECOMP_ENTER(0x36102F71u);
   3005 
   3006     goto L_36102F71;
   3007 L_36102D82:
   3008     esi = MEM32(ebp + (-0x8)); /* 0x36102D82: mov esi, dword ptr [ebp - 8] */
   3009     eax = esi + (-0x2); /* 0x36102D85: lea eax, [esi - 2] */
   3010     PUSH32(esp, eax); /* 0x36102D88: push eax */
   3011     ecx = edi; /* 0x36102D89: mov ecx, edi */
   3012     RECOMP_ICALL(0x36136FE0u); /* 0x36102D8B: call 0x36136fe0 */ /* not lifted */
   3013     RECOMP_FLAGS_IN();
   3014     ecx = esi + (-0x1); /* 0x36102D90: lea ecx, [esi - 1] */
   3015     PUSH32(esp, ecx); /* 0x36102D93: push ecx */
   3016     ecx = edi; /* 0x36102D94: mov ecx, edi */
   3017     MEM32(ebp + (-0x2C)) = eax; /* 0x36102D96: mov dword ptr [ebp - 0x2c], eax */
   3018     RECOMP_ICALL(0x36136FE0u); /* 0x36102D99: call 0x36136fe0 */ /* not lifted */
   3019     RECOMP_FLAGS_IN();
   3020     PUSH32(esp, esi); /* 0x36102D9E: push esi */
   3021     ecx = edi; /* 0x36102D9F: mov ecx, edi */
   3022     MEM32(ebp + (-0x28)) = eax; /* 0x36102DA1: mov dword ptr [ebp - 0x28], eax */
   3023     RECOMP_ICALL(0x36137010u); /* 0x36102DA4: call 0x36137010 */ /* not lifted */
   3024     RECOMP_FLAGS_IN();
   3025     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102DA9: fstp dword ptr [ebp - 0x24] */
   3026     edx = esi + 0x1; /* 0x36102DAC: lea edx, [esi + 1] */
   3027     PUSH32(esp, edx); /* 0x36102DAF: push edx */
   3028     ecx = edi; /* 0x36102DB0: mov ecx, edi */
   3029     RECOMP_ICALL(0x36137010u); /* 0x36102DB2: call 0x36137010 */ /* not lifted */
   3030     RECOMP_FLAGS_IN();
   3031     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102DB7: fstp dword ptr [ebp - 0x20] */
   3032     eax = esi + 0x2; /* 0x36102DBA: lea eax, [esi + 2] */
   3033     PUSH32(esp, eax); /* 0x36102DBD: push eax */
   3034     ecx = edi; /* 0x36102DBE: mov ecx, edi */
   3035     RECOMP_ICALL(0x36137010u); /* 0x36102DC0: call 0x36137010 */ /* not lifted */
   3036     RECOMP_FLAGS_IN();
   3037     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102DC5: fstp dword ptr [ebp - 0x1c] */
   3038     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
   3039     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3040     esi = esi + 3; /* 0x36102DC8: add esi, 3 */
   3041     _flag_k = FK_ADD;
   3042     PUSH32(esp, esi); /* 0x36102DCB: push esi */
   3043     ecx = edi; /* 0x36102DCC: mov ecx, edi */
   3044     RECOMP_ICALL(0x36137010u); /* 0x36102DCE: call 0x36137010 */ /* not lifted */
   3045     RECOMP_FLAGS_IN();
   3046     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102DD3: fstp dword ptr [ebp - 0x18] */
   3047     esi = MEM32(ebx + 0x8); /* 0x36102DD6: mov esi, dword ptr [ebx + 8] */
   3048     ecx = MEM32(ebx + 0xC); /* 0x36102DD9: mov ecx, dword ptr [ebx + 0xc] */
   3049     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3051     ecx = ecx - esi; /* 0x36102DDC: sub ecx, esi */
   3052     _flag_k = FK_CMP;
   3053     eax = 0x2AAAAAABu; /* 0x36102DDE: mov eax, 0x2aaaaaab */
   3054     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102DE3: imul ecx */
   3055       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3056       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3057     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102DE5: sar edx, 2 */
   3058     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3059     edx = (uint32_t)((int32_t)edx >> 2u);
   3060     ecx = edx; /* 0x36102DE8: mov ecx, edx */
   3061     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36102DEA: shr ecx, 0x1f */
   3062     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3063     ecx = ecx >> 31u; /* 0x36102DEA: shr ecx, 0x1f */
   3064     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3065     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3066     edx = edx + ecx; /* 0x36102DED: add edx, ecx */
   3067     _flag_k = FK_ADD;
   3068     /* cmp edx, 1 */ /* 0x36102DEF: cmp edx, 1 */
   3069     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3071     _flag_k = FK_CMP;
   3072     MEM32(ebp + (-0xC)) = esi; /* 0x36102DF2: mov dword ptr [ebp - 0xc], esi */
   3073     if (CMP_AE(_flag_a, _flag_b)) goto L_36102EAC; /* 0x36102DF5: jae 0x36102eac */
   3074 L_36102DFB:
   3075     ecx = ebx; /* 0x36102DFB: mov ecx, ebx */
   3076     RECOMP_ICALL(0x36147020u); /* 0x36102DFD: call 0x36147020 */ /* not lifted */
   3077     RECOMP_FLAGS_IN();
   3078     /* cmp eax, 1 */ /* 0x36102E02: cmp eax, 1 */
   3079     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3081     _flag_k = FK_CMP;
   3082     if (CMP_BE(_flag_a, _flag_b)) goto L_36102E12; /* 0x36102E05: jbe 0x36102e12 */
   3083 L_36102E07:
   3084     ecx = ebx; /* 0x36102E07: mov ecx, ebx */
   3085     RECOMP_ICALL(0x36147020u); /* 0x36102E09: call 0x36147020 */ /* not lifted */
   3086     RECOMP_FLAGS_IN();
   3087     edi = eax; /* 0x36102E0E: mov edi, eax */
   3088     goto L_36102E17; /* 0x36102E10: jmp 0x36102e17 */
   3089 L_36102E12:
   3090     edi = 1; /* 0x36102E12: mov edi, 1 */
   3091 L_36102E17:
   3092     ecx = ebx; /* 0x36102E17: mov ecx, ebx */
   3093     RECOMP_ICALL(0x36147020u); /* 0x36102E19: call 0x36147020 */ /* not lifted */
   3094     RECOMP_FLAGS_IN();
   3095     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3096     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3097     eax = eax + edi; /* 0x36102E1E: add eax, edi */
   3098     _flag_k = FK_ADD;
   3099     MEM32(ebp + (-0xC)) = eax; /* 0x36102E20: mov dword ptr [ebp - 0xc], eax */
   3100     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36102E27; /* 0x36102E23: jns 0x36102e27 */
   3101 L_36102E25:
   3102     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3103     eax = 0; /* 0x36102E25: xor eax, eax */
   3104     _cf = 0;
   3105     _flag_k = FK_TEST;
   3106 L_36102E27:
   3107     edx = eax + eax * 2; /* 0x36102E27: lea edx, [eax + eax*2] */
   3108     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36102E2A: shl edx, 3 */
   3109     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3110     edx = edx << 3u; /* 0x36102E2A: shl edx, 3 */
   3111     PUSH32(esp, edx); /* 0x36102E2D: push edx */
   3112     RECOMP_ICALL(0x3615FD6Au); /* 0x36102E2E: call 0x3615fd6a */ /* not lifted */
   3113     RECOMP_FLAGS_IN();
   3114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3116     esp = esp + 4; /* 0x36102E33: add esp, 4 */
   3117     _flag_k = FK_ADD;
   3118     edi = eax; /* 0x36102E36: mov edi, eax */
   3119     eax = MEM32(ebx + 0x4); /* 0x36102E38: mov eax, dword ptr [ebx + 4] */
   3120     PUSH32(esp, edi); /* 0x36102E3B: push edi */
   3121     PUSH32(esp, esi); /* 0x36102E3C: push esi */
   3122     PUSH32(esp, eax); /* 0x36102E3D: push eax */
   3123     ecx = ebx; /* 0x36102E3E: mov ecx, ebx */
   3124     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E40: call 0x3615a1c0 */ /* not lifted */
   3125     RECOMP_FLAGS_IN();
   3126     ecx = ebp + (-0x2C); /* 0x36102E45: lea ecx, [ebp - 0x2c] */
   3127     PUSH32(esp, ecx); /* 0x36102E48: push ecx */
   3128     PUSH32(esp, 1); /* 0x36102E49: push 1 */
   3129     PUSH32(esp, eax); /* 0x36102E4B: push eax */
   3130     ecx = ebx; /* 0x36102E4C: mov ecx, ebx */
   3131     MEM32(ebp + (-0x14)) = eax; /* 0x36102E4E: mov dword ptr [ebp - 0x14], eax */
   3132     RECOMP_ICALL(0x3615A200u); /* 0x36102E51: call 0x3615a200 */ /* not lifted */
   3133     RECOMP_FLAGS_IN();
   3134     edx = MEM32(ebp + (-0x14)); /* 0x36102E56: mov edx, dword ptr [ebp - 0x14] */
   3135     eax = MEM32(ebx + 0x8); /* 0x36102E59: mov eax, dword ptr [ebx + 8] */
   3136     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   3137     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3138     edx = edx + 0x18u; /* 0x36102E5C: add edx, 0x18 */
   3139     _flag_k = FK_ADD;
   3140     PUSH32(esp, edx); /* 0x36102E5F: push edx */
   3141     PUSH32(esp, eax); /* 0x36102E60: push eax */
   3142     PUSH32(esp, esi); /* 0x36102E61: push esi */
   3143     ecx = ebx; /* 0x36102E62: mov ecx, ebx */
   3144     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E64: call 0x3615a1c0 */ /* not lifted */
   3145     RECOMP_FLAGS_IN();
   3146     ecx = MEM32(ebx + 0x8); /* 0x36102E69: mov ecx, dword ptr [ebx + 8] */
   3147     edx = MEM32(ebx + 0x4); /* 0x36102E6C: mov edx, dword ptr [ebx + 4] */
   3148     PUSH32(esp, ecx); /* 0x36102E6F: push ecx */
   3149     PUSH32(esp, edx); /* 0x36102E70: push edx */
   3150     ecx = ebx; /* 0x36102E71: mov ecx, ebx */
   3151     RECOMP_ICALL(0x3610ED60u); /* 0x36102E73: call 0x3610ed60 */ /* not lifted */
   3152     RECOMP_FLAGS_IN();
   3153     eax = MEM32(ebx + 0x4); /* 0x36102E78: mov eax, dword ptr [ebx + 4] */
   3154     PUSH32(esp, eax); /* 0x36102E7B: push eax */
   3155     RECOMP_ICALL(0x3615FCC4u); /* 0x36102E7C: call 0x3615fcc4 */ /* not lifted */
   3156     RECOMP_FLAGS_IN();
   3157     eax = MEM32(ebp + (-0xC)); /* 0x36102E81: mov eax, dword ptr [ebp - 0xc] */
   3158     ecx = eax + eax * 2; /* 0x36102E84: lea ecx, [eax + eax*2] */
   3159     edx = edi + ecx * 8; /* 0x36102E87: lea edx, [edi + ecx*8] */
   3160     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3161     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3162     esp = esp + 4; /* 0x36102E8A: add esp, 4 */
   3163     _flag_k = FK_ADD;
   3164     ecx = ebx; /* 0x36102E8D: mov ecx, ebx */
   3165     MEM32(ebx + 0xC) = edx; /* 0x36102E8F: mov dword ptr [ebx + 0xc], edx */
   3166     RECOMP_ICALL(0x36147020u); /* 0x36102E92: call 0x36147020 */ /* not lifted */
   3167     RECOMP_FLAGS_IN();
   3168     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3169     eax = eax + 1; /* 0x36102E97: inc eax */
   3170     _flag_k = FK_INC;
   3171     eax = eax + eax * 2; /* 0x36102E98: lea eax, [eax + eax*2] */
   3172     ecx = edi + eax * 8; /* 0x36102E9B: lea ecx, [edi + eax*8] */
   3173     MEM32(ebx + 0x4) = edi; /* 0x36102E9E: mov dword ptr [ebx + 4], edi */
   3174     edi = MEM32(ebp + (-0x4)); /* 0x36102EA1: mov edi, dword ptr [ebp - 4] */
   3175     MEM32(ebx + 0x8) = ecx; /* 0x36102EA4: mov dword ptr [ebx + 8], ecx */
   3176     goto L_36102F78; /* 0x36102EA7: jmp 0x36102f78 */
   3177 L_36102EAC:
   3178     ecx = esi; /* 0x36102EAC: mov ecx, esi */
   3179     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3181     ecx = ecx - esi; /* 0x36102EAE: sub ecx, esi */
   3182     _flag_k = FK_CMP;
   3183     eax = 0x2AAAAAABu; /* 0x36102EB0: mov eax, 0x2aaaaaab */
   3184     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EB5: imul ecx */
   3185       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3186       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3187     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EB7: sar edx, 2 */
   3188     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3189     edx = (uint32_t)((int32_t)edx >> 2u);
   3190     eax = edx; /* 0x36102EBA: mov eax, edx */
   3191     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EBC: shr eax, 0x1f */
   3192     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3193     eax = eax >> 31u; /* 0x36102EBC: shr eax, 0x1f */
   3194     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3196     edx = edx + eax; /* 0x36102EBF: add edx, eax */
   3197     _flag_k = FK_ADD;
   3198     /* cmp edx, 1 */ /* 0x36102EC1: cmp edx, 1 */
   3199     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3201     _flag_k = FK_CMP;
   3202     if (CMP_AE(_flag_a, _flag_b)) goto L_36102F1E; /* 0x36102EC4: jae 0x36102f1e */
   3203 L_36102EC6:
   3204     ecx = esi + 0x18; /* 0x36102EC6: lea ecx, [esi + 0x18] */
   3205     PUSH32(esp, ecx); /* 0x36102EC9: push ecx */
   3206     PUSH32(esp, esi); /* 0x36102ECA: push esi */
   3207     PUSH32(esp, esi); /* 0x36102ECB: push esi */
   3208     ecx = ebx; /* 0x36102ECC: mov ecx, ebx */
   3209     RECOMP_ICALL(0x3615A1C0u); /* 0x36102ECE: call 0x3615a1c0 */ /* not lifted */
   3210     RECOMP_FLAGS_IN();
   3211     ecx = MEM32(ebx + 0x8); /* 0x36102ED3: mov ecx, dword ptr [ebx + 8] */
   3212     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3214     ecx = ecx - esi; /* 0x36102ED6: sub ecx, esi */
   3215     _flag_k = FK_CMP;
   3216     edx = ebp + (-0x2C); /* 0x36102ED8: lea edx, [ebp - 0x2c] */
   3217     PUSH32(esp, edx); /* 0x36102EDB: push edx */
   3218     eax = 0x2AAAAAABu; /* 0x36102EDC: mov eax, 0x2aaaaaab */
   3219     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EE1: imul ecx */
   3220       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3221       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3222     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EE3: sar edx, 2 */
   3223     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3224     edx = (uint32_t)((int32_t)edx >> 2u);
   3225     eax = edx; /* 0x36102EE6: mov eax, edx */
   3226     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EE8: shr eax, 0x1f */
   3227     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3228     eax = eax >> 31u; /* 0x36102EE8: shr eax, 0x1f */
   3229     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3230     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3231     edx = edx + eax; /* 0x36102EEB: add edx, eax */
   3232     _flag_k = FK_ADD;
   3233     eax = MEM32(ebx + 0x8); /* 0x36102EED: mov eax, dword ptr [ebx + 8] */
   3234     ecx = 1; /* 0x36102EF0: mov ecx, 1 */
   3235     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3236     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3237     ecx = ecx - edx; /* 0x36102EF5: sub ecx, edx */
   3238     _flag_k = FK_CMP;
   3239     PUSH32(esp, ecx); /* 0x36102EF7: push ecx */
   3240     PUSH32(esp, eax); /* 0x36102EF8: push eax */
   3241     ecx = ebx; /* 0x36102EF9: mov ecx, ebx */
   3242     RECOMP_ICALL(0x3615A200u); /* 0x36102EFB: call 0x3615a200 */ /* not lifted */
   3243     RECOMP_FLAGS_IN();
   3244     edx = MEM32(ebx + 0x8); /* 0x36102F00: mov edx, dword ptr [ebx + 8] */
   3245     /* cmp esi, edx */ /* 0x36102F03: cmp esi, edx */
   3246     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   3247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3248     _flag_k = FK_CMP;
   3249     eax = esi; /* 0x36102F05: mov eax, esi */
   3250     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F07: je 0x36102f74 */
   3251 L_36102F09:
   3252     edi = eax; /* 0x36102F09: mov edi, eax */
   3253     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3254     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3255     eax = eax + 0x18u; /* 0x36102F0B: add eax, 0x18 */
   3256     _flag_k = FK_ADD;
   3257     /* cmp eax, edx */ /* 0x36102F0E: cmp eax, edx */
   3258     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3259     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3260     _flag_k = FK_CMP;
   3261     ecx = 6; /* 0x36102F10: mov ecx, 6 */
   3262     esi = ebp + (-0x2C); /* 0x36102F15: lea esi, [ebp - 0x2c] */
   3263     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F18: 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; }
   3264     RECOMP_BACKEDGE();
   3265     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F09; /* 0x36102F1A: jne 0x36102f09 */
   3266 L_36102F1C:
   3267     goto L_36102F71; /* 0x36102F1C: jmp 0x36102f71 */
   3268 L_36102F1E:
   3269     PUSH32(esp, esi); /* 0x36102F1E: push esi */
   3270     eax = esi + (-0x18); /* 0x36102F1F: lea eax, [esi - 0x18] */
   3271     PUSH32(esp, esi); /* 0x36102F22: push esi */
   3272     PUSH32(esp, eax); /* 0x36102F23: push eax */
   3273     ecx = ebx; /* 0x36102F24: mov ecx, ebx */
   3274     MEM32(ebp + (-0x14)) = eax; /* 0x36102F26: mov dword ptr [ebp - 0x14], eax */
   3275     RECOMP_ICALL(0x3615A1C0u); /* 0x36102F29: call 0x3615a1c0 */ /* not lifted */
   3276     RECOMP_FLAGS_IN();
   3277     edx = MEM32(ebx + 0x8); /* 0x36102F2E: mov edx, dword ptr [ebx + 8] */
   3278     eax = edx + (-0x18); /* 0x36102F31: lea eax, [edx - 0x18] */
   3279     /* cmp esi, eax */ /* 0x36102F34: cmp esi, eax */
   3280     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3282     _flag_k = FK_CMP;
   3283     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F55; /* 0x36102F36: je 0x36102f55 */
   3284 L_36102F38:
   3285     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3287     eax = eax - 0x18u; /* 0x36102F38: sub eax, 0x18 */
   3288     _flag_k = FK_CMP;
   3289     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   3290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3291     edx = edx - 0x18u; /* 0x36102F3B: sub edx, 0x18 */
   3292     _flag_k = FK_CMP;
   3293     ecx = 6; /* 0x36102F3E: mov ecx, 6 */
   3294     esi = eax; /* 0x36102F43: mov esi, eax */
   3295     edi = edx; /* 0x36102F45: mov edi, edx */
   3296     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F47: 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; }
   3297     ecx = MEM32(ebp + (-0xC)); /* 0x36102F49: mov ecx, dword ptr [ebp - 0xc] */
   3298     /* cmp eax, ecx */ /* 0x36102F4C: cmp eax, ecx */
   3299     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3301     _flag_k = FK_CMP;
   3302     RECOMP_BACKEDGE();
   3303     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F38; /* 0x36102F4E: jne 0x36102f38 */
   3304 L_36102F50:
   3305     edi = MEM32(ebp + (-0x4)); /* 0x36102F50: mov edi, dword ptr [ebp - 4] */
   3306     esi = ecx; /* 0x36102F53: mov esi, ecx */
   3307 L_36102F55:
   3308     edx = esi + 0x18; /* 0x36102F55: lea edx, [esi + 0x18] */
   3309     /* cmp esi, edx */ /* 0x36102F58: cmp esi, edx */
   3310     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   3311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3312     _flag_k = FK_CMP;
   3313     eax = esi; /* 0x36102F5A: mov eax, esi */
   3314     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F5C: je 0x36102f74 */
   3315 L_36102F5E:
   3316     edi = eax; /* 0x36102F5E: mov edi, eax */
   3317     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3318     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3319     eax = eax + 0x18u; /* 0x36102F60: add eax, 0x18 */
   3320     _flag_k = FK_ADD;
   3321     /* cmp eax, edx */ /* 0x36102F63: cmp eax, edx */
   3322     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3323     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3324     _flag_k = FK_CMP;
   3325     ecx = 6; /* 0x36102F65: mov ecx, 6 */
   3326     esi = ebp + (-0x2C); /* 0x36102F6A: lea esi, [ebp - 0x2c] */
   3327     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F6D: 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; }
   3328     RECOMP_BACKEDGE();
   3329     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F5E; /* 0x36102F6F: jne 0x36102f5e */
   3330 L_36102F71:
   3331     edi = MEM32(ebp + (-0x4)); /* 0x36102F71: mov edi, dword ptr [ebp - 4] */
   3332 L_36102F74:
   3333     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0x18u);
   3334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3335     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0x18u; /* 0x36102F74: add dword ptr [ebx + 8], 0x18 */
   3336     _flag_k = FK_ADD;
   3337 L_36102F78:
   3338     ecx = MEM32(ebp + (-0x8)); /* 0x36102F78: mov ecx, dword ptr [ebp - 8] */
   3339     eax = MEM32(ebp + (-0x10)); /* 0x36102F7B: mov eax, dword ptr [ebp - 0x10] */
   3340     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6);
   3341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3342     ecx = ecx + 6; /* 0x36102F7E: add ecx, 6 */
   3343     _flag_k = FK_ADD;
   3344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3345     eax = eax - 1; /* 0x36102F81: dec eax */
   3346     _flag_k = FK_DEC;
   3347     MEM32(ebp + (-0x8)) = ecx; /* 0x36102F82: mov dword ptr [ebp - 8], ecx */
   3348     MEM32(ebp + (-0x10)) = eax; /* 0x36102F85: mov dword ptr [ebp - 0x10], eax */
   3349     RECOMP_BACKEDGE();
   3350     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36102D82; /* 0x36102F88: jne 0x36102d82 */
   3351 L_36102F8E:
   3352     edi = POP32_VAL(esp); /* 0x36102F8E: pop edi */
   3353     esi = POP32_VAL(esp); /* 0x36102F8F: pop esi */
   3354     ebx = POP32_VAL(esp); /* 0x36102F90: pop ebx */
   3355     esp = ebp; /* 0x36102F91: mov esp, ebp */
   3356     ebp = POP32_VAL(esp); /* 0x36102F93: pop ebp */
   3357     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102F94: ret  */
   3358     RECOMP_REGS_OUT();
   3359 }
   3360 
   3361 void sub_36102F74(void) {
   3362     int _fpu_cmp = 0;
   3363     uint32_t _cf = 0;
   3364     int _df = 1;
   3365     uint32_t _flag_k = FK_NONE;
   3366     uint32_t _flag_a = 0, _flag_b = 0;
   3367     uint32_t _itail_tgt = 0;
   3368     RECOMP_REGS_LOCALS
   3369     RECOMP_ENTER(0x36102F74u);
   3370 
   3371     goto L_36102F74;
   3372 L_36102D82:
   3373     esi = MEM32(ebp + (-0x8)); /* 0x36102D82: mov esi, dword ptr [ebp - 8] */
   3374     eax = esi + (-0x2); /* 0x36102D85: lea eax, [esi - 2] */
   3375     PUSH32(esp, eax); /* 0x36102D88: push eax */
   3376     ecx = edi; /* 0x36102D89: mov ecx, edi */
   3377     RECOMP_ICALL(0x36136FE0u); /* 0x36102D8B: call 0x36136fe0 */ /* not lifted */
   3378     RECOMP_FLAGS_IN();
   3379     ecx = esi + (-0x1); /* 0x36102D90: lea ecx, [esi - 1] */
   3380     PUSH32(esp, ecx); /* 0x36102D93: push ecx */
   3381     ecx = edi; /* 0x36102D94: mov ecx, edi */
   3382     MEM32(ebp + (-0x2C)) = eax; /* 0x36102D96: mov dword ptr [ebp - 0x2c], eax */
   3383     RECOMP_ICALL(0x36136FE0u); /* 0x36102D99: call 0x36136fe0 */ /* not lifted */
   3384     RECOMP_FLAGS_IN();
   3385     PUSH32(esp, esi); /* 0x36102D9E: push esi */
   3386     ecx = edi; /* 0x36102D9F: mov ecx, edi */
   3387     MEM32(ebp + (-0x28)) = eax; /* 0x36102DA1: mov dword ptr [ebp - 0x28], eax */
   3388     RECOMP_ICALL(0x36137010u); /* 0x36102DA4: call 0x36137010 */ /* not lifted */
   3389     RECOMP_FLAGS_IN();
   3390     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102DA9: fstp dword ptr [ebp - 0x24] */
   3391     edx = esi + 0x1; /* 0x36102DAC: lea edx, [esi + 1] */
   3392     PUSH32(esp, edx); /* 0x36102DAF: push edx */
   3393     ecx = edi; /* 0x36102DB0: mov ecx, edi */
   3394     RECOMP_ICALL(0x36137010u); /* 0x36102DB2: call 0x36137010 */ /* not lifted */
   3395     RECOMP_FLAGS_IN();
   3396     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102DB7: fstp dword ptr [ebp - 0x20] */
   3397     eax = esi + 0x2; /* 0x36102DBA: lea eax, [esi + 2] */
   3398     PUSH32(esp, eax); /* 0x36102DBD: push eax */
   3399     ecx = edi; /* 0x36102DBE: mov ecx, edi */
   3400     RECOMP_ICALL(0x36137010u); /* 0x36102DC0: call 0x36137010 */ /* not lifted */
   3401     RECOMP_FLAGS_IN();
   3402     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102DC5: fstp dword ptr [ebp - 0x1c] */
   3403     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
   3404     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3405     esi = esi + 3; /* 0x36102DC8: add esi, 3 */
   3406     _flag_k = FK_ADD;
   3407     PUSH32(esp, esi); /* 0x36102DCB: push esi */
   3408     ecx = edi; /* 0x36102DCC: mov ecx, edi */
   3409     RECOMP_ICALL(0x36137010u); /* 0x36102DCE: call 0x36137010 */ /* not lifted */
   3410     RECOMP_FLAGS_IN();
   3411     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102DD3: fstp dword ptr [ebp - 0x18] */
   3412     esi = MEM32(ebx + 0x8); /* 0x36102DD6: mov esi, dword ptr [ebx + 8] */
   3413     ecx = MEM32(ebx + 0xC); /* 0x36102DD9: mov ecx, dword ptr [ebx + 0xc] */
   3414     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3416     ecx = ecx - esi; /* 0x36102DDC: sub ecx, esi */
   3417     _flag_k = FK_CMP;
   3418     eax = 0x2AAAAAABu; /* 0x36102DDE: mov eax, 0x2aaaaaab */
   3419     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102DE3: imul ecx */
   3420       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3421       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3422     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102DE5: sar edx, 2 */
   3423     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3424     edx = (uint32_t)((int32_t)edx >> 2u);
   3425     ecx = edx; /* 0x36102DE8: mov ecx, edx */
   3426     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36102DEA: shr ecx, 0x1f */
   3427     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3428     ecx = ecx >> 31u; /* 0x36102DEA: shr ecx, 0x1f */
   3429     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3430     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3431     edx = edx + ecx; /* 0x36102DED: add edx, ecx */
   3432     _flag_k = FK_ADD;
   3433     /* cmp edx, 1 */ /* 0x36102DEF: cmp edx, 1 */
   3434     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3436     _flag_k = FK_CMP;
   3437     MEM32(ebp + (-0xC)) = esi; /* 0x36102DF2: mov dword ptr [ebp - 0xc], esi */
   3438     if (CMP_AE(_flag_a, _flag_b)) goto L_36102EAC; /* 0x36102DF5: jae 0x36102eac */
   3439 L_36102DFB:
   3440     ecx = ebx; /* 0x36102DFB: mov ecx, ebx */
   3441     RECOMP_ICALL(0x36147020u); /* 0x36102DFD: call 0x36147020 */ /* not lifted */
   3442     RECOMP_FLAGS_IN();
   3443     /* cmp eax, 1 */ /* 0x36102E02: cmp eax, 1 */
   3444     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3446     _flag_k = FK_CMP;
   3447     if (CMP_BE(_flag_a, _flag_b)) goto L_36102E12; /* 0x36102E05: jbe 0x36102e12 */
   3448 L_36102E07:
   3449     ecx = ebx; /* 0x36102E07: mov ecx, ebx */
   3450     RECOMP_ICALL(0x36147020u); /* 0x36102E09: call 0x36147020 */ /* not lifted */
   3451     RECOMP_FLAGS_IN();
   3452     edi = eax; /* 0x36102E0E: mov edi, eax */
   3453     goto L_36102E17; /* 0x36102E10: jmp 0x36102e17 */
   3454 L_36102E12:
   3455     edi = 1; /* 0x36102E12: mov edi, 1 */
   3456 L_36102E17:
   3457     ecx = ebx; /* 0x36102E17: mov ecx, ebx */
   3458     RECOMP_ICALL(0x36147020u); /* 0x36102E19: call 0x36147020 */ /* not lifted */
   3459     RECOMP_FLAGS_IN();
   3460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3461     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3462     eax = eax + edi; /* 0x36102E1E: add eax, edi */
   3463     _flag_k = FK_ADD;
   3464     MEM32(ebp + (-0xC)) = eax; /* 0x36102E20: mov dword ptr [ebp - 0xc], eax */
   3465     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36102E27; /* 0x36102E23: jns 0x36102e27 */
   3466 L_36102E25:
   3467     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3468     eax = 0; /* 0x36102E25: xor eax, eax */
   3469     _cf = 0;
   3470     _flag_k = FK_TEST;
   3471 L_36102E27:
   3472     edx = eax + eax * 2; /* 0x36102E27: lea edx, [eax + eax*2] */
   3473     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36102E2A: shl edx, 3 */
   3474     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3475     edx = edx << 3u; /* 0x36102E2A: shl edx, 3 */
   3476     PUSH32(esp, edx); /* 0x36102E2D: push edx */
   3477     RECOMP_ICALL(0x3615FD6Au); /* 0x36102E2E: call 0x3615fd6a */ /* not lifted */
   3478     RECOMP_FLAGS_IN();
   3479     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3481     esp = esp + 4; /* 0x36102E33: add esp, 4 */
   3482     _flag_k = FK_ADD;
   3483     edi = eax; /* 0x36102E36: mov edi, eax */
   3484     eax = MEM32(ebx + 0x4); /* 0x36102E38: mov eax, dword ptr [ebx + 4] */
   3485     PUSH32(esp, edi); /* 0x36102E3B: push edi */
   3486     PUSH32(esp, esi); /* 0x36102E3C: push esi */
   3487     PUSH32(esp, eax); /* 0x36102E3D: push eax */
   3488     ecx = ebx; /* 0x36102E3E: mov ecx, ebx */
   3489     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E40: call 0x3615a1c0 */ /* not lifted */
   3490     RECOMP_FLAGS_IN();
   3491     ecx = ebp + (-0x2C); /* 0x36102E45: lea ecx, [ebp - 0x2c] */
   3492     PUSH32(esp, ecx); /* 0x36102E48: push ecx */
   3493     PUSH32(esp, 1); /* 0x36102E49: push 1 */
   3494     PUSH32(esp, eax); /* 0x36102E4B: push eax */
   3495     ecx = ebx; /* 0x36102E4C: mov ecx, ebx */
   3496     MEM32(ebp + (-0x14)) = eax; /* 0x36102E4E: mov dword ptr [ebp - 0x14], eax */
   3497     RECOMP_ICALL(0x3615A200u); /* 0x36102E51: call 0x3615a200 */ /* not lifted */
   3498     RECOMP_FLAGS_IN();
   3499     edx = MEM32(ebp + (-0x14)); /* 0x36102E56: mov edx, dword ptr [ebp - 0x14] */
   3500     eax = MEM32(ebx + 0x8); /* 0x36102E59: mov eax, dword ptr [ebx + 8] */
   3501     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   3502     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3503     edx = edx + 0x18u; /* 0x36102E5C: add edx, 0x18 */
   3504     _flag_k = FK_ADD;
   3505     PUSH32(esp, edx); /* 0x36102E5F: push edx */
   3506     PUSH32(esp, eax); /* 0x36102E60: push eax */
   3507     PUSH32(esp, esi); /* 0x36102E61: push esi */
   3508     ecx = ebx; /* 0x36102E62: mov ecx, ebx */
   3509     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E64: call 0x3615a1c0 */ /* not lifted */
   3510     RECOMP_FLAGS_IN();
   3511     ecx = MEM32(ebx + 0x8); /* 0x36102E69: mov ecx, dword ptr [ebx + 8] */
   3512     edx = MEM32(ebx + 0x4); /* 0x36102E6C: mov edx, dword ptr [ebx + 4] */
   3513     PUSH32(esp, ecx); /* 0x36102E6F: push ecx */
   3514     PUSH32(esp, edx); /* 0x36102E70: push edx */
   3515     ecx = ebx; /* 0x36102E71: mov ecx, ebx */
   3516     RECOMP_ICALL(0x3610ED60u); /* 0x36102E73: call 0x3610ed60 */ /* not lifted */
   3517     RECOMP_FLAGS_IN();
   3518     eax = MEM32(ebx + 0x4); /* 0x36102E78: mov eax, dword ptr [ebx + 4] */
   3519     PUSH32(esp, eax); /* 0x36102E7B: push eax */
   3520     RECOMP_ICALL(0x3615FCC4u); /* 0x36102E7C: call 0x3615fcc4 */ /* not lifted */
   3521     RECOMP_FLAGS_IN();
   3522     eax = MEM32(ebp + (-0xC)); /* 0x36102E81: mov eax, dword ptr [ebp - 0xc] */
   3523     ecx = eax + eax * 2; /* 0x36102E84: lea ecx, [eax + eax*2] */
   3524     edx = edi + ecx * 8; /* 0x36102E87: lea edx, [edi + ecx*8] */
   3525     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3526     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3527     esp = esp + 4; /* 0x36102E8A: add esp, 4 */
   3528     _flag_k = FK_ADD;
   3529     ecx = ebx; /* 0x36102E8D: mov ecx, ebx */
   3530     MEM32(ebx + 0xC) = edx; /* 0x36102E8F: mov dword ptr [ebx + 0xc], edx */
   3531     RECOMP_ICALL(0x36147020u); /* 0x36102E92: call 0x36147020 */ /* not lifted */
   3532     RECOMP_FLAGS_IN();
   3533     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3534     eax = eax + 1; /* 0x36102E97: inc eax */
   3535     _flag_k = FK_INC;
   3536     eax = eax + eax * 2; /* 0x36102E98: lea eax, [eax + eax*2] */
   3537     ecx = edi + eax * 8; /* 0x36102E9B: lea ecx, [edi + eax*8] */
   3538     MEM32(ebx + 0x4) = edi; /* 0x36102E9E: mov dword ptr [ebx + 4], edi */
   3539     edi = MEM32(ebp + (-0x4)); /* 0x36102EA1: mov edi, dword ptr [ebp - 4] */
   3540     MEM32(ebx + 0x8) = ecx; /* 0x36102EA4: mov dword ptr [ebx + 8], ecx */
   3541     goto L_36102F78; /* 0x36102EA7: jmp 0x36102f78 */
   3542 L_36102EAC:
   3543     ecx = esi; /* 0x36102EAC: mov ecx, esi */
   3544     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3546     ecx = ecx - esi; /* 0x36102EAE: sub ecx, esi */
   3547     _flag_k = FK_CMP;
   3548     eax = 0x2AAAAAABu; /* 0x36102EB0: mov eax, 0x2aaaaaab */
   3549     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EB5: imul ecx */
   3550       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3551       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3552     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EB7: sar edx, 2 */
   3553     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3554     edx = (uint32_t)((int32_t)edx >> 2u);
   3555     eax = edx; /* 0x36102EBA: mov eax, edx */
   3556     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EBC: shr eax, 0x1f */
   3557     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3558     eax = eax >> 31u; /* 0x36102EBC: shr eax, 0x1f */
   3559     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3560     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3561     edx = edx + eax; /* 0x36102EBF: add edx, eax */
   3562     _flag_k = FK_ADD;
   3563     /* cmp edx, 1 */ /* 0x36102EC1: cmp edx, 1 */
   3564     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3566     _flag_k = FK_CMP;
   3567     if (CMP_AE(_flag_a, _flag_b)) goto L_36102F1E; /* 0x36102EC4: jae 0x36102f1e */
   3568 L_36102EC6:
   3569     ecx = esi + 0x18; /* 0x36102EC6: lea ecx, [esi + 0x18] */
   3570     PUSH32(esp, ecx); /* 0x36102EC9: push ecx */
   3571     PUSH32(esp, esi); /* 0x36102ECA: push esi */
   3572     PUSH32(esp, esi); /* 0x36102ECB: push esi */
   3573     ecx = ebx; /* 0x36102ECC: mov ecx, ebx */
   3574     RECOMP_ICALL(0x3615A1C0u); /* 0x36102ECE: call 0x3615a1c0 */ /* not lifted */
   3575     RECOMP_FLAGS_IN();
   3576     ecx = MEM32(ebx + 0x8); /* 0x36102ED3: mov ecx, dword ptr [ebx + 8] */
   3577     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3579     ecx = ecx - esi; /* 0x36102ED6: sub ecx, esi */
   3580     _flag_k = FK_CMP;
   3581     edx = ebp + (-0x2C); /* 0x36102ED8: lea edx, [ebp - 0x2c] */
   3582     PUSH32(esp, edx); /* 0x36102EDB: push edx */
   3583     eax = 0x2AAAAAABu; /* 0x36102EDC: mov eax, 0x2aaaaaab */
   3584     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EE1: imul ecx */
   3585       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3586       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3587     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EE3: sar edx, 2 */
   3588     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3589     edx = (uint32_t)((int32_t)edx >> 2u);
   3590     eax = edx; /* 0x36102EE6: mov eax, edx */
   3591     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EE8: shr eax, 0x1f */
   3592     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3593     eax = eax >> 31u; /* 0x36102EE8: shr eax, 0x1f */
   3594     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3595     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3596     edx = edx + eax; /* 0x36102EEB: add edx, eax */
   3597     _flag_k = FK_ADD;
   3598     eax = MEM32(ebx + 0x8); /* 0x36102EED: mov eax, dword ptr [ebx + 8] */
   3599     ecx = 1; /* 0x36102EF0: mov ecx, 1 */
   3600     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3602     ecx = ecx - edx; /* 0x36102EF5: sub ecx, edx */
   3603     _flag_k = FK_CMP;
   3604     PUSH32(esp, ecx); /* 0x36102EF7: push ecx */
   3605     PUSH32(esp, eax); /* 0x36102EF8: push eax */
   3606     ecx = ebx; /* 0x36102EF9: mov ecx, ebx */
   3607     RECOMP_ICALL(0x3615A200u); /* 0x36102EFB: call 0x3615a200 */ /* not lifted */
   3608     RECOMP_FLAGS_IN();
   3609     edx = MEM32(ebx + 0x8); /* 0x36102F00: mov edx, dword ptr [ebx + 8] */
   3610     /* cmp esi, edx */ /* 0x36102F03: cmp esi, edx */
   3611     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   3612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3613     _flag_k = FK_CMP;
   3614     eax = esi; /* 0x36102F05: mov eax, esi */
   3615     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F07: je 0x36102f74 */
   3616 L_36102F09:
   3617     edi = eax; /* 0x36102F09: mov edi, eax */
   3618     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3620     eax = eax + 0x18u; /* 0x36102F0B: add eax, 0x18 */
   3621     _flag_k = FK_ADD;
   3622     /* cmp eax, edx */ /* 0x36102F0E: cmp eax, edx */
   3623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3625     _flag_k = FK_CMP;
   3626     ecx = 6; /* 0x36102F10: mov ecx, 6 */
   3627     esi = ebp + (-0x2C); /* 0x36102F15: lea esi, [ebp - 0x2c] */
   3628     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F18: 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; }
   3629     RECOMP_BACKEDGE();
   3630     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F09; /* 0x36102F1A: jne 0x36102f09 */
   3631 L_36102F1C:
   3632     goto L_36102F71; /* 0x36102F1C: jmp 0x36102f71 */
   3633 L_36102F1E:
   3634     PUSH32(esp, esi); /* 0x36102F1E: push esi */
   3635     eax = esi + (-0x18); /* 0x36102F1F: lea eax, [esi - 0x18] */
   3636     PUSH32(esp, esi); /* 0x36102F22: push esi */
   3637     PUSH32(esp, eax); /* 0x36102F23: push eax */
   3638     ecx = ebx; /* 0x36102F24: mov ecx, ebx */
   3639     MEM32(ebp + (-0x14)) = eax; /* 0x36102F26: mov dword ptr [ebp - 0x14], eax */
   3640     RECOMP_ICALL(0x3615A1C0u); /* 0x36102F29: call 0x3615a1c0 */ /* not lifted */
   3641     RECOMP_FLAGS_IN();
   3642     edx = MEM32(ebx + 0x8); /* 0x36102F2E: mov edx, dword ptr [ebx + 8] */
   3643     eax = edx + (-0x18); /* 0x36102F31: lea eax, [edx - 0x18] */
   3644     /* cmp esi, eax */ /* 0x36102F34: cmp esi, eax */
   3645     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3647     _flag_k = FK_CMP;
   3648     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F55; /* 0x36102F36: je 0x36102f55 */
   3649 L_36102F38:
   3650     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3652     eax = eax - 0x18u; /* 0x36102F38: sub eax, 0x18 */
   3653     _flag_k = FK_CMP;
   3654     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   3655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3656     edx = edx - 0x18u; /* 0x36102F3B: sub edx, 0x18 */
   3657     _flag_k = FK_CMP;
   3658     ecx = 6; /* 0x36102F3E: mov ecx, 6 */
   3659     esi = eax; /* 0x36102F43: mov esi, eax */
   3660     edi = edx; /* 0x36102F45: mov edi, edx */
   3661     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F47: 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; }
   3662     ecx = MEM32(ebp + (-0xC)); /* 0x36102F49: mov ecx, dword ptr [ebp - 0xc] */
   3663     /* cmp eax, ecx */ /* 0x36102F4C: cmp eax, ecx */
   3664     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3666     _flag_k = FK_CMP;
   3667     RECOMP_BACKEDGE();
   3668     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F38; /* 0x36102F4E: jne 0x36102f38 */
   3669 L_36102F50:
   3670     edi = MEM32(ebp + (-0x4)); /* 0x36102F50: mov edi, dword ptr [ebp - 4] */
   3671     esi = ecx; /* 0x36102F53: mov esi, ecx */
   3672 L_36102F55:
   3673     edx = esi + 0x18; /* 0x36102F55: lea edx, [esi + 0x18] */
   3674     /* cmp esi, edx */ /* 0x36102F58: cmp esi, edx */
   3675     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   3676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3677     _flag_k = FK_CMP;
   3678     eax = esi; /* 0x36102F5A: mov eax, esi */
   3679     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F5C: je 0x36102f74 */
   3680 L_36102F5E:
   3681     edi = eax; /* 0x36102F5E: mov edi, eax */
   3682     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3683     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3684     eax = eax + 0x18u; /* 0x36102F60: add eax, 0x18 */
   3685     _flag_k = FK_ADD;
   3686     /* cmp eax, edx */ /* 0x36102F63: cmp eax, edx */
   3687     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3689     _flag_k = FK_CMP;
   3690     ecx = 6; /* 0x36102F65: mov ecx, 6 */
   3691     esi = ebp + (-0x2C); /* 0x36102F6A: lea esi, [ebp - 0x2c] */
   3692     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F6D: 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; }
   3693     RECOMP_BACKEDGE();
   3694     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F5E; /* 0x36102F6F: jne 0x36102f5e */
   3695 L_36102F71:
   3696     edi = MEM32(ebp + (-0x4)); /* 0x36102F71: mov edi, dword ptr [ebp - 4] */
   3697 L_36102F74:
   3698     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0x18u);
   3699     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3700     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0x18u; /* 0x36102F74: add dword ptr [ebx + 8], 0x18 */
   3701     _flag_k = FK_ADD;
   3702 L_36102F78:
   3703     ecx = MEM32(ebp + (-0x8)); /* 0x36102F78: mov ecx, dword ptr [ebp - 8] */
   3704     eax = MEM32(ebp + (-0x10)); /* 0x36102F7B: mov eax, dword ptr [ebp - 0x10] */
   3705     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6);
   3706     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3707     ecx = ecx + 6; /* 0x36102F7E: add ecx, 6 */
   3708     _flag_k = FK_ADD;
   3709     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3710     eax = eax - 1; /* 0x36102F81: dec eax */
   3711     _flag_k = FK_DEC;
   3712     MEM32(ebp + (-0x8)) = ecx; /* 0x36102F82: mov dword ptr [ebp - 8], ecx */
   3713     MEM32(ebp + (-0x10)) = eax; /* 0x36102F85: mov dword ptr [ebp - 0x10], eax */
   3714     RECOMP_BACKEDGE();
   3715     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36102D82; /* 0x36102F88: jne 0x36102d82 */
   3716 L_36102F8E:
   3717     edi = POP32_VAL(esp); /* 0x36102F8E: pop edi */
   3718     esi = POP32_VAL(esp); /* 0x36102F8F: pop esi */
   3719     ebx = POP32_VAL(esp); /* 0x36102F90: pop ebx */
   3720     esp = ebp; /* 0x36102F91: mov esp, ebp */
   3721     ebp = POP32_VAL(esp); /* 0x36102F93: pop ebp */
   3722     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102F94: ret  */
   3723     RECOMP_REGS_OUT();
   3724 }
   3725 
   3726 void sub_36102F78(void) {
   3727     int _fpu_cmp = 0;
   3728     uint32_t _cf = 0;
   3729     int _df = 1;
   3730     uint32_t _flag_k = FK_NONE;
   3731     uint32_t _flag_a = 0, _flag_b = 0;
   3732     uint32_t _itail_tgt = 0;
   3733     RECOMP_REGS_LOCALS
   3734     RECOMP_ENTER(0x36102F78u);
   3735 
   3736     goto L_36102F78;
   3737 L_36102D82:
   3738     esi = MEM32(ebp + (-0x8)); /* 0x36102D82: mov esi, dword ptr [ebp - 8] */
   3739     eax = esi + (-0x2); /* 0x36102D85: lea eax, [esi - 2] */
   3740     PUSH32(esp, eax); /* 0x36102D88: push eax */
   3741     ecx = edi; /* 0x36102D89: mov ecx, edi */
   3742     RECOMP_ICALL(0x36136FE0u); /* 0x36102D8B: call 0x36136fe0 */ /* not lifted */
   3743     RECOMP_FLAGS_IN();
   3744     ecx = esi + (-0x1); /* 0x36102D90: lea ecx, [esi - 1] */
   3745     PUSH32(esp, ecx); /* 0x36102D93: push ecx */
   3746     ecx = edi; /* 0x36102D94: mov ecx, edi */
   3747     MEM32(ebp + (-0x2C)) = eax; /* 0x36102D96: mov dword ptr [ebp - 0x2c], eax */
   3748     RECOMP_ICALL(0x36136FE0u); /* 0x36102D99: call 0x36136fe0 */ /* not lifted */
   3749     RECOMP_FLAGS_IN();
   3750     PUSH32(esp, esi); /* 0x36102D9E: push esi */
   3751     ecx = edi; /* 0x36102D9F: mov ecx, edi */
   3752     MEM32(ebp + (-0x28)) = eax; /* 0x36102DA1: mov dword ptr [ebp - 0x28], eax */
   3753     RECOMP_ICALL(0x36137010u); /* 0x36102DA4: call 0x36137010 */ /* not lifted */
   3754     RECOMP_FLAGS_IN();
   3755     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36102DA9: fstp dword ptr [ebp - 0x24] */
   3756     edx = esi + 0x1; /* 0x36102DAC: lea edx, [esi + 1] */
   3757     PUSH32(esp, edx); /* 0x36102DAF: push edx */
   3758     ecx = edi; /* 0x36102DB0: mov ecx, edi */
   3759     RECOMP_ICALL(0x36137010u); /* 0x36102DB2: call 0x36137010 */ /* not lifted */
   3760     RECOMP_FLAGS_IN();
   3761     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36102DB7: fstp dword ptr [ebp - 0x20] */
   3762     eax = esi + 0x2; /* 0x36102DBA: lea eax, [esi + 2] */
   3763     PUSH32(esp, eax); /* 0x36102DBD: push eax */
   3764     ecx = edi; /* 0x36102DBE: mov ecx, edi */
   3765     RECOMP_ICALL(0x36137010u); /* 0x36102DC0: call 0x36137010 */ /* not lifted */
   3766     RECOMP_FLAGS_IN();
   3767     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36102DC5: fstp dword ptr [ebp - 0x1c] */
   3768     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3);
   3769     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3770     esi = esi + 3; /* 0x36102DC8: add esi, 3 */
   3771     _flag_k = FK_ADD;
   3772     PUSH32(esp, esi); /* 0x36102DCB: push esi */
   3773     ecx = edi; /* 0x36102DCC: mov ecx, edi */
   3774     RECOMP_ICALL(0x36137010u); /* 0x36102DCE: call 0x36137010 */ /* not lifted */
   3775     RECOMP_FLAGS_IN();
   3776     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36102DD3: fstp dword ptr [ebp - 0x18] */
   3777     esi = MEM32(ebx + 0x8); /* 0x36102DD6: mov esi, dword ptr [ebx + 8] */
   3778     ecx = MEM32(ebx + 0xC); /* 0x36102DD9: mov ecx, dword ptr [ebx + 0xc] */
   3779     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3781     ecx = ecx - esi; /* 0x36102DDC: sub ecx, esi */
   3782     _flag_k = FK_CMP;
   3783     eax = 0x2AAAAAABu; /* 0x36102DDE: mov eax, 0x2aaaaaab */
   3784     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102DE3: imul ecx */
   3785       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3786       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3787     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102DE5: sar edx, 2 */
   3788     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3789     edx = (uint32_t)((int32_t)edx >> 2u);
   3790     ecx = edx; /* 0x36102DE8: mov ecx, edx */
   3791     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36102DEA: shr ecx, 0x1f */
   3792     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3793     ecx = ecx >> 31u; /* 0x36102DEA: shr ecx, 0x1f */
   3794     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3796     edx = edx + ecx; /* 0x36102DED: add edx, ecx */
   3797     _flag_k = FK_ADD;
   3798     /* cmp edx, 1 */ /* 0x36102DEF: cmp edx, 1 */
   3799     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3801     _flag_k = FK_CMP;
   3802     MEM32(ebp + (-0xC)) = esi; /* 0x36102DF2: mov dword ptr [ebp - 0xc], esi */
   3803     if (CMP_AE(_flag_a, _flag_b)) goto L_36102EAC; /* 0x36102DF5: jae 0x36102eac */
   3804 L_36102DFB:
   3805     ecx = ebx; /* 0x36102DFB: mov ecx, ebx */
   3806     RECOMP_ICALL(0x36147020u); /* 0x36102DFD: call 0x36147020 */ /* not lifted */
   3807     RECOMP_FLAGS_IN();
   3808     /* cmp eax, 1 */ /* 0x36102E02: cmp eax, 1 */
   3809     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3811     _flag_k = FK_CMP;
   3812     if (CMP_BE(_flag_a, _flag_b)) goto L_36102E12; /* 0x36102E05: jbe 0x36102e12 */
   3813 L_36102E07:
   3814     ecx = ebx; /* 0x36102E07: mov ecx, ebx */
   3815     RECOMP_ICALL(0x36147020u); /* 0x36102E09: call 0x36147020 */ /* not lifted */
   3816     RECOMP_FLAGS_IN();
   3817     edi = eax; /* 0x36102E0E: mov edi, eax */
   3818     goto L_36102E17; /* 0x36102E10: jmp 0x36102e17 */
   3819 L_36102E12:
   3820     edi = 1; /* 0x36102E12: mov edi, 1 */
   3821 L_36102E17:
   3822     ecx = ebx; /* 0x36102E17: mov ecx, ebx */
   3823     RECOMP_ICALL(0x36147020u); /* 0x36102E19: call 0x36147020 */ /* not lifted */
   3824     RECOMP_FLAGS_IN();
   3825     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3826     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3827     eax = eax + edi; /* 0x36102E1E: add eax, edi */
   3828     _flag_k = FK_ADD;
   3829     MEM32(ebp + (-0xC)) = eax; /* 0x36102E20: mov dword ptr [ebp - 0xc], eax */
   3830     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36102E27; /* 0x36102E23: jns 0x36102e27 */
   3831 L_36102E25:
   3832     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3833     eax = 0; /* 0x36102E25: xor eax, eax */
   3834     _cf = 0;
   3835     _flag_k = FK_TEST;
   3836 L_36102E27:
   3837     edx = eax + eax * 2; /* 0x36102E27: lea edx, [eax + eax*2] */
   3838     if (3u) _cf = (((edx) >> 29) & 1u); /* 0x36102E2A: shl edx, 3 */
   3839     if (3u) { _flag_a = recomp_flags_pack((edx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3840     edx = edx << 3u; /* 0x36102E2A: shl edx, 3 */
   3841     PUSH32(esp, edx); /* 0x36102E2D: push edx */
   3842     RECOMP_ICALL(0x3615FD6Au); /* 0x36102E2E: call 0x3615fd6a */ /* not lifted */
   3843     RECOMP_FLAGS_IN();
   3844     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3846     esp = esp + 4; /* 0x36102E33: add esp, 4 */
   3847     _flag_k = FK_ADD;
   3848     edi = eax; /* 0x36102E36: mov edi, eax */
   3849     eax = MEM32(ebx + 0x4); /* 0x36102E38: mov eax, dword ptr [ebx + 4] */
   3850     PUSH32(esp, edi); /* 0x36102E3B: push edi */
   3851     PUSH32(esp, esi); /* 0x36102E3C: push esi */
   3852     PUSH32(esp, eax); /* 0x36102E3D: push eax */
   3853     ecx = ebx; /* 0x36102E3E: mov ecx, ebx */
   3854     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E40: call 0x3615a1c0 */ /* not lifted */
   3855     RECOMP_FLAGS_IN();
   3856     ecx = ebp + (-0x2C); /* 0x36102E45: lea ecx, [ebp - 0x2c] */
   3857     PUSH32(esp, ecx); /* 0x36102E48: push ecx */
   3858     PUSH32(esp, 1); /* 0x36102E49: push 1 */
   3859     PUSH32(esp, eax); /* 0x36102E4B: push eax */
   3860     ecx = ebx; /* 0x36102E4C: mov ecx, ebx */
   3861     MEM32(ebp + (-0x14)) = eax; /* 0x36102E4E: mov dword ptr [ebp - 0x14], eax */
   3862     RECOMP_ICALL(0x3615A200u); /* 0x36102E51: call 0x3615a200 */ /* not lifted */
   3863     RECOMP_FLAGS_IN();
   3864     edx = MEM32(ebp + (-0x14)); /* 0x36102E56: mov edx, dword ptr [ebp - 0x14] */
   3865     eax = MEM32(ebx + 0x8); /* 0x36102E59: mov eax, dword ptr [ebx + 8] */
   3866     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   3867     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3868     edx = edx + 0x18u; /* 0x36102E5C: add edx, 0x18 */
   3869     _flag_k = FK_ADD;
   3870     PUSH32(esp, edx); /* 0x36102E5F: push edx */
   3871     PUSH32(esp, eax); /* 0x36102E60: push eax */
   3872     PUSH32(esp, esi); /* 0x36102E61: push esi */
   3873     ecx = ebx; /* 0x36102E62: mov ecx, ebx */
   3874     RECOMP_ICALL(0x3615A1C0u); /* 0x36102E64: call 0x3615a1c0 */ /* not lifted */
   3875     RECOMP_FLAGS_IN();
   3876     ecx = MEM32(ebx + 0x8); /* 0x36102E69: mov ecx, dword ptr [ebx + 8] */
   3877     edx = MEM32(ebx + 0x4); /* 0x36102E6C: mov edx, dword ptr [ebx + 4] */
   3878     PUSH32(esp, ecx); /* 0x36102E6F: push ecx */
   3879     PUSH32(esp, edx); /* 0x36102E70: push edx */
   3880     ecx = ebx; /* 0x36102E71: mov ecx, ebx */
   3881     RECOMP_ICALL(0x3610ED60u); /* 0x36102E73: call 0x3610ed60 */ /* not lifted */
   3882     RECOMP_FLAGS_IN();
   3883     eax = MEM32(ebx + 0x4); /* 0x36102E78: mov eax, dword ptr [ebx + 4] */
   3884     PUSH32(esp, eax); /* 0x36102E7B: push eax */
   3885     RECOMP_ICALL(0x3615FCC4u); /* 0x36102E7C: call 0x3615fcc4 */ /* not lifted */
   3886     RECOMP_FLAGS_IN();
   3887     eax = MEM32(ebp + (-0xC)); /* 0x36102E81: mov eax, dword ptr [ebp - 0xc] */
   3888     ecx = eax + eax * 2; /* 0x36102E84: lea ecx, [eax + eax*2] */
   3889     edx = edi + ecx * 8; /* 0x36102E87: lea edx, [edi + ecx*8] */
   3890     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3891     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3892     esp = esp + 4; /* 0x36102E8A: add esp, 4 */
   3893     _flag_k = FK_ADD;
   3894     ecx = ebx; /* 0x36102E8D: mov ecx, ebx */
   3895     MEM32(ebx + 0xC) = edx; /* 0x36102E8F: mov dword ptr [ebx + 0xc], edx */
   3896     RECOMP_ICALL(0x36147020u); /* 0x36102E92: call 0x36147020 */ /* not lifted */
   3897     RECOMP_FLAGS_IN();
   3898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3899     eax = eax + 1; /* 0x36102E97: inc eax */
   3900     _flag_k = FK_INC;
   3901     eax = eax + eax * 2; /* 0x36102E98: lea eax, [eax + eax*2] */
   3902     ecx = edi + eax * 8; /* 0x36102E9B: lea ecx, [edi + eax*8] */
   3903     MEM32(ebx + 0x4) = edi; /* 0x36102E9E: mov dword ptr [ebx + 4], edi */
   3904     edi = MEM32(ebp + (-0x4)); /* 0x36102EA1: mov edi, dword ptr [ebp - 4] */
   3905     MEM32(ebx + 0x8) = ecx; /* 0x36102EA4: mov dword ptr [ebx + 8], ecx */
   3906     goto L_36102F78; /* 0x36102EA7: jmp 0x36102f78 */
   3907 L_36102EAC:
   3908     ecx = esi; /* 0x36102EAC: mov ecx, esi */
   3909     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3911     ecx = ecx - esi; /* 0x36102EAE: sub ecx, esi */
   3912     _flag_k = FK_CMP;
   3913     eax = 0x2AAAAAABu; /* 0x36102EB0: mov eax, 0x2aaaaaab */
   3914     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EB5: imul ecx */
   3915       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3916       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3917     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EB7: sar edx, 2 */
   3918     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3919     edx = (uint32_t)((int32_t)edx >> 2u);
   3920     eax = edx; /* 0x36102EBA: mov eax, edx */
   3921     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EBC: shr eax, 0x1f */
   3922     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3923     eax = eax >> 31u; /* 0x36102EBC: shr eax, 0x1f */
   3924     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3925     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3926     edx = edx + eax; /* 0x36102EBF: add edx, eax */
   3927     _flag_k = FK_ADD;
   3928     /* cmp edx, 1 */ /* 0x36102EC1: cmp edx, 1 */
   3929     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3931     _flag_k = FK_CMP;
   3932     if (CMP_AE(_flag_a, _flag_b)) goto L_36102F1E; /* 0x36102EC4: jae 0x36102f1e */
   3933 L_36102EC6:
   3934     ecx = esi + 0x18; /* 0x36102EC6: lea ecx, [esi + 0x18] */
   3935     PUSH32(esp, ecx); /* 0x36102EC9: push ecx */
   3936     PUSH32(esp, esi); /* 0x36102ECA: push esi */
   3937     PUSH32(esp, esi); /* 0x36102ECB: push esi */
   3938     ecx = ebx; /* 0x36102ECC: mov ecx, ebx */
   3939     RECOMP_ICALL(0x3615A1C0u); /* 0x36102ECE: call 0x3615a1c0 */ /* not lifted */
   3940     RECOMP_FLAGS_IN();
   3941     ecx = MEM32(ebx + 0x8); /* 0x36102ED3: mov ecx, dword ptr [ebx + 8] */
   3942     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3944     ecx = ecx - esi; /* 0x36102ED6: sub ecx, esi */
   3945     _flag_k = FK_CMP;
   3946     edx = ebp + (-0x2C); /* 0x36102ED8: lea edx, [ebp - 0x2c] */
   3947     PUSH32(esp, edx); /* 0x36102EDB: push edx */
   3948     eax = 0x2AAAAAABu; /* 0x36102EDC: mov eax, 0x2aaaaaab */
   3949     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36102EE1: imul ecx */
   3950       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3951       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3952     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36102EE3: sar edx, 2 */
   3953     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3954     edx = (uint32_t)((int32_t)edx >> 2u);
   3955     eax = edx; /* 0x36102EE6: mov eax, edx */
   3956     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36102EE8: shr eax, 0x1f */
   3957     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3958     eax = eax >> 31u; /* 0x36102EE8: shr eax, 0x1f */
   3959     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3960     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3961     edx = edx + eax; /* 0x36102EEB: add edx, eax */
   3962     _flag_k = FK_ADD;
   3963     eax = MEM32(ebx + 0x8); /* 0x36102EED: mov eax, dword ptr [ebx + 8] */
   3964     ecx = 1; /* 0x36102EF0: mov ecx, 1 */
   3965     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3967     ecx = ecx - edx; /* 0x36102EF5: sub ecx, edx */
   3968     _flag_k = FK_CMP;
   3969     PUSH32(esp, ecx); /* 0x36102EF7: push ecx */
   3970     PUSH32(esp, eax); /* 0x36102EF8: push eax */
   3971     ecx = ebx; /* 0x36102EF9: mov ecx, ebx */
   3972     RECOMP_ICALL(0x3615A200u); /* 0x36102EFB: call 0x3615a200 */ /* not lifted */
   3973     RECOMP_FLAGS_IN();
   3974     edx = MEM32(ebx + 0x8); /* 0x36102F00: mov edx, dword ptr [ebx + 8] */
   3975     /* cmp esi, edx */ /* 0x36102F03: cmp esi, edx */
   3976     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   3977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3978     _flag_k = FK_CMP;
   3979     eax = esi; /* 0x36102F05: mov eax, esi */
   3980     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F07: je 0x36102f74 */
   3981 L_36102F09:
   3982     edi = eax; /* 0x36102F09: mov edi, eax */
   3983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3984     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3985     eax = eax + 0x18u; /* 0x36102F0B: add eax, 0x18 */
   3986     _flag_k = FK_ADD;
   3987     /* cmp eax, edx */ /* 0x36102F0E: cmp eax, edx */
   3988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3990     _flag_k = FK_CMP;
   3991     ecx = 6; /* 0x36102F10: mov ecx, 6 */
   3992     esi = ebp + (-0x2C); /* 0x36102F15: lea esi, [ebp - 0x2c] */
   3993     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F18: 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; }
   3994     RECOMP_BACKEDGE();
   3995     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F09; /* 0x36102F1A: jne 0x36102f09 */
   3996 L_36102F1C:
   3997     goto L_36102F71; /* 0x36102F1C: jmp 0x36102f71 */
   3998 L_36102F1E:
   3999     PUSH32(esp, esi); /* 0x36102F1E: push esi */
   4000     eax = esi + (-0x18); /* 0x36102F1F: lea eax, [esi - 0x18] */
   4001     PUSH32(esp, esi); /* 0x36102F22: push esi */
   4002     PUSH32(esp, eax); /* 0x36102F23: push eax */
   4003     ecx = ebx; /* 0x36102F24: mov ecx, ebx */
   4004     MEM32(ebp + (-0x14)) = eax; /* 0x36102F26: mov dword ptr [ebp - 0x14], eax */
   4005     RECOMP_ICALL(0x3615A1C0u); /* 0x36102F29: call 0x3615a1c0 */ /* not lifted */
   4006     RECOMP_FLAGS_IN();
   4007     edx = MEM32(ebx + 0x8); /* 0x36102F2E: mov edx, dword ptr [ebx + 8] */
   4008     eax = edx + (-0x18); /* 0x36102F31: lea eax, [edx - 0x18] */
   4009     /* cmp esi, eax */ /* 0x36102F34: cmp esi, eax */
   4010     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4012     _flag_k = FK_CMP;
   4013     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F55; /* 0x36102F36: je 0x36102f55 */
   4014 L_36102F38:
   4015     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   4016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4017     eax = eax - 0x18u; /* 0x36102F38: sub eax, 0x18 */
   4018     _flag_k = FK_CMP;
   4019     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   4020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4021     edx = edx - 0x18u; /* 0x36102F3B: sub edx, 0x18 */
   4022     _flag_k = FK_CMP;
   4023     ecx = 6; /* 0x36102F3E: mov ecx, 6 */
   4024     esi = eax; /* 0x36102F43: mov esi, eax */
   4025     edi = edx; /* 0x36102F45: mov edi, edx */
   4026     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F47: 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; }
   4027     ecx = MEM32(ebp + (-0xC)); /* 0x36102F49: mov ecx, dword ptr [ebp - 0xc] */
   4028     /* cmp eax, ecx */ /* 0x36102F4C: cmp eax, ecx */
   4029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4031     _flag_k = FK_CMP;
   4032     RECOMP_BACKEDGE();
   4033     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F38; /* 0x36102F4E: jne 0x36102f38 */
   4034 L_36102F50:
   4035     edi = MEM32(ebp + (-0x4)); /* 0x36102F50: mov edi, dword ptr [ebp - 4] */
   4036     esi = ecx; /* 0x36102F53: mov esi, ecx */
   4037 L_36102F55:
   4038     edx = esi + 0x18; /* 0x36102F55: lea edx, [esi + 0x18] */
   4039     /* cmp esi, edx */ /* 0x36102F58: cmp esi, edx */
   4040     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4042     _flag_k = FK_CMP;
   4043     eax = esi; /* 0x36102F5A: mov eax, esi */
   4044     if (CMP_EQ(_flag_a, _flag_b)) goto L_36102F74; /* 0x36102F5C: je 0x36102f74 */
   4045 L_36102F5E:
   4046     edi = eax; /* 0x36102F5E: mov edi, eax */
   4047     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   4048     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4049     eax = eax + 0x18u; /* 0x36102F60: add eax, 0x18 */
   4050     _flag_k = FK_ADD;
   4051     /* cmp eax, edx */ /* 0x36102F63: cmp eax, edx */
   4052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4054     _flag_k = FK_CMP;
   4055     ecx = 6; /* 0x36102F65: mov ecx, 6 */
   4056     esi = ebp + (-0x2C); /* 0x36102F6A: lea esi, [ebp - 0x2c] */
   4057     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36102F6D: 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; }
   4058     RECOMP_BACKEDGE();
   4059     if (CMP_NE(_flag_a, _flag_b)) goto L_36102F5E; /* 0x36102F6F: jne 0x36102f5e */
   4060 L_36102F71:
   4061     edi = MEM32(ebp + (-0x4)); /* 0x36102F71: mov edi, dword ptr [ebp - 4] */
   4062 L_36102F74:
   4063     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0x18u);
   4064     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4065     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0x18u; /* 0x36102F74: add dword ptr [ebx + 8], 0x18 */
   4066     _flag_k = FK_ADD;
   4067 L_36102F78:
   4068     ecx = MEM32(ebp + (-0x8)); /* 0x36102F78: mov ecx, dword ptr [ebp - 8] */
   4069     eax = MEM32(ebp + (-0x10)); /* 0x36102F7B: mov eax, dword ptr [ebp - 0x10] */
   4070     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6);
   4071     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4072     ecx = ecx + 6; /* 0x36102F7E: add ecx, 6 */
   4073     _flag_k = FK_ADD;
   4074     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4075     eax = eax - 1; /* 0x36102F81: dec eax */
   4076     _flag_k = FK_DEC;
   4077     MEM32(ebp + (-0x8)) = ecx; /* 0x36102F82: mov dword ptr [ebp - 8], ecx */
   4078     MEM32(ebp + (-0x10)) = eax; /* 0x36102F85: mov dword ptr [ebp - 0x10], eax */
   4079     RECOMP_BACKEDGE();
   4080     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36102D82; /* 0x36102F88: jne 0x36102d82 */
   4081 L_36102F8E:
   4082     edi = POP32_VAL(esp); /* 0x36102F8E: pop edi */
   4083     esi = POP32_VAL(esp); /* 0x36102F8F: pop esi */
   4084     ebx = POP32_VAL(esp); /* 0x36102F90: pop ebx */
   4085     esp = ebp; /* 0x36102F91: mov esp, ebp */
   4086     ebp = POP32_VAL(esp); /* 0x36102F93: pop ebp */
   4087     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102F94: ret  */
   4088     RECOMP_REGS_OUT();
   4089 }
   4090 
   4091 void sub_36102FA0(void) {
   4092     int _fpu_cmp = 0;
   4093     uint32_t _cf = 0;
   4094     int _df = 1;
   4095     uint32_t _flag_k = FK_NONE;
   4096     uint32_t _flag_a = 0, _flag_b = 0;
   4097     uint32_t _itail_tgt = 0;
   4098     RECOMP_REGS_LOCALS
   4099     RECOMP_ENTER(0x36102FA0u);
   4100 
   4101 L_36102FA0:
   4102     PUSH32(esp, ebp); /* 0x36102FA0: push ebp */
   4103 L_36102FA1:
   4104     ebp = esp; /* 0x36102FA1: mov ebp, esp */
   4105 L_36102FA3:
   4106     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u);
   4107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4108     esp = esp - 0x50u; /* 0x36102FA3: sub esp, 0x50 */
   4109     _flag_k = FK_CMP;
   4110 L_36102FA6:
   4111     eax = MEM32(ebp + 0x8); /* 0x36102FA6: mov eax, dword ptr [ebp + 8] */
   4112 L_36102FA9:
   4113     PUSH32(esp, ebx); /* 0x36102FA9: push ebx */
   4114 L_36102FAA:
   4115     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4116     ebx = 0; /* 0x36102FAA: xor ebx, ebx */
   4117     _cf = 0;
   4118     _flag_k = FK_TEST;
   4119 L_36102FAC:
   4120     /* cmp eax, ebx */ /* 0x36102FAC: cmp eax, ebx */
   4121     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4123     _flag_k = FK_CMP;
   4124 L_36102FAE:
   4125     PUSH32(esp, esi); /* 0x36102FAE: push esi */
   4126 L_36102FAF:
   4127     PUSH32(esp, edi); /* 0x36102FAF: push edi */
   4128 L_36102FB0:
   4129     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36102FBF; /* 0x36102FB0: jne 0x36102fbf */
   4130 L_36102FB2:
   4131     eax = MEM32(ebp + 0x28); /* 0x36102FB2: mov eax, dword ptr [ebp + 0x28] */
   4132 L_36102FB5:
   4133     edi = POP32_VAL(esp); /* 0x36102FB5: pop edi */
   4134 L_36102FB6:
   4135     esi = POP32_VAL(esp); /* 0x36102FB6: pop esi */
   4136 L_36102FB7:
   4137     MEM32(eax + 0x44) = ebx; /* 0x36102FB7: mov dword ptr [eax + 0x44], ebx */
   4138 L_36102FBA:
   4139     ebx = POP32_VAL(esp); /* 0x36102FBA: pop ebx */
   4140 L_36102FBB:
   4141     esp = ebp; /* 0x36102FBB: mov esp, ebp */
   4142 L_36102FBD:
   4143     ebp = POP32_VAL(esp); /* 0x36102FBD: pop ebp */
   4144 L_36102FBE:
   4145     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36102FBE: ret  */
   4146 L_36102FBF:
   4147     ecx = MEM32(ebp + 0x28); /* 0x36102FBF: mov ecx, dword ptr [ebp + 0x28] */
   4148 L_36102FC2:
   4149     eax = MEM32(ecx + 0x40); /* 0x36102FC2: mov eax, dword ptr [ecx + 0x40] */
   4150 L_36102FC5:
   4151     edx = MEM32(ecx + 0xC); /* 0x36102FC5: mov edx, dword ptr [ecx + 0xc] */
   4152 L_36102FC8:
   4153     MEM32(ebp + 0x28) = eax; /* 0x36102FC8: mov dword ptr [ebp + 0x28], eax */
   4154 L_36102FCB:
   4155     eax = MEM32(ecx + 0x28); /* 0x36102FCB: mov eax, dword ptr [ecx + 0x28] */
   4156 L_36102FCE:
   4157     /* cmp eax, 3 */ /* 0x36102FCE: cmp eax, 3 */
   4158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4160     _flag_k = FK_CMP;
   4161 L_36102FD1:
   4162     MEM32(ebp + 0x8) = edx; /* 0x36102FD1: mov dword ptr [ebp + 8], edx */
   4163 L_36102FD4:
   4164     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36103469; /* 0x36102FD4: ja 0x36103469 */
   4165 L_36102FDA:
   4166     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36103470)); goto _ljump; }
   4167 L_36102FE1:
   4168     edi = MEM32(ebp + 0xC); /* 0x36102FE1: mov edi, dword ptr [ebp + 0xc] */
   4169 L_36102FE4:
   4170     MEM32(ebp + 0x8) = ebx; /* 0x36102FE4: mov dword ptr [ebp + 8], ebx */
   4171 L_36102FE7:
   4172     MEM32(ebp + (-0x4)) = ebx; /* 0x36102FE7: mov dword ptr [ebp - 4], ebx */
   4173 L_36102FEA:
   4174     MEM32(ebp + 0x10) = ebx; /* 0x36102FEA: mov dword ptr [ebp + 0x10], ebx */
   4175 L_36102FED:
   4176     eax = MEM32(ecx + 0x110); /* 0x36102FED: mov eax, dword ptr [ecx + 0x110] */
   4177 L_36102FF3:
   4178     /* cmp eax, ebx */ /* 0x36102FF3: cmp eax, ebx */
   4179     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4181     _flag_k = FK_CMP;
   4182 L_36102FF5:
   4183     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103469; /* 0x36102FF5: je 0x36103469 */
   4184 L_36102FFB:
   4185     edx = MEM32(ecx + 0x114); /* 0x36102FFB: mov edx, dword ptr [ecx + 0x114] */
   4186 L_36103001:
   4187     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4189     edx = edx - eax; /* 0x36103001: sub edx, eax */
   4190     _flag_k = FK_CMP;
   4191 L_36103003:
   4192     eax = 0x2AAAAAABu; /* 0x36103003: mov eax, 0x2aaaaaab */
   4193 L_36103008:
   4194     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36103008: imul edx */
   4195       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4196       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4197 L_3610300A:
   4198     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3610300A: sar edx, 2 */
   4199     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4200     edx = (uint32_t)((int32_t)edx >> 2u);
   4201 L_3610300D:
   4202     eax = edx; /* 0x3610300D: mov eax, edx */
   4203 L_3610300F:
   4204     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3610300F: shr eax, 0x1f */
   4205     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4206     eax = eax >> 31u; /* 0x3610300F: shr eax, 0x1f */
   4207 L_36103012:
   4208     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4210     edx = edx + eax; /* 0x36103012: add edx, eax */
   4211     _flag_k = FK_ADD;
   4212 L_36103014:
   4213     /* cmp MEM32(ebp + 0x8), edx */ /* 0x36103014: cmp dword ptr [ebp + 8], edx */
   4214     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edx);
   4215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4216     _flag_k = FK_CMP;
   4217 L_36103017:
   4218     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_AE, _cf)) goto L_36103469; /* 0x36103017: jae 0x36103469 */
   4219 L_3610301D:
   4220     edx = MEM32(ebp + 0x10); /* 0x3610301D: mov edx, dword ptr [ebp + 0x10] */
   4221 L_36103020:
   4222     fp_push(*(float*)&MEM32(0x36170380)); /* 0x36103020: fld dword ptr [0x36170380] */
   4223 L_36103026:
   4224     esi = MEM32(ecx + 0x110); /* 0x36103026: mov esi, dword ptr [ecx + 0x110] */
   4225 L_3610302C:
   4226     _st[0] /= (double)*(float*)ADDR(esi + edx + 0x10); /* 0x3610302C: fdiv dword ptr [esi + edx + 0x10] */
   4227 L_36103030:
   4228     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4229     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4230     esi = esi + edx; /* 0x36103030: add esi, edx */
   4231     _flag_k = FK_ADD;
   4232 L_36103032:
   4233     eax = MEM32(ebp + (-0x4)); /* 0x36103032: mov eax, dword ptr [ebp - 4] */
   4234 L_36103035:
   4235     edx = MEM32(ecx + 0x120); /* 0x36103035: mov edx, dword ptr [ecx + 0x120] */
   4236 L_3610303B:
   4237     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4239     edx = edx + eax; /* 0x3610303B: add edx, eax */
   4240     _flag_k = FK_ADD;
   4241 L_3610303D:
   4242     /* cmp edi, ebx */ /* 0x3610303D: cmp edi, ebx */
   4243     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   4244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4245     _flag_k = FK_CMP;
   4246 L_3610303F:
   4247     eax = MEM32(edx); /* 0x3610303F: mov eax, dword ptr [edx] */
   4248 L_36103041:
   4249     MEM32(ebp + (-0x20)) = eax; /* 0x36103041: mov dword ptr [ebp - 0x20], eax */
   4250 L_36103044:
   4251     eax = MEM32(edx + 0x4); /* 0x36103044: mov eax, dword ptr [edx + 4] */
   4252 L_36103047:
   4253     edx = MEM32(edx + 0x8); /* 0x36103047: mov edx, dword ptr [edx + 8] */
   4254 L_3610304A:
   4255     MEM32(ebp + (-0x1C)) = eax; /* 0x3610304A: mov dword ptr [ebp - 0x1c], eax */
   4256 L_3610304D:
   4257     MEM32(ebp + (-0x18)) = edx; /* 0x3610304D: mov dword ptr [ebp - 0x18], edx */
   4258 L_36103050:
   4259     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36103050: fstp dword ptr [ebp - 0x14] */
   4260 L_36103053:
   4261     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_3610312F; /* 0x36103053: jbe 0x3610312f */
   4262 L_36103059:
   4263     eax = MEM32(ebp + 0x14); /* 0x36103059: mov eax, dword ptr [ebp + 0x14] */
   4264 L_3610305C:
   4265     edx = eax + 0x4; /* 0x3610305C: lea edx, [eax + 4] */
   4266 L_3610305F:
   4267     MEM32(ebp + (-0x8)) = edi; /* 0x3610305F: mov dword ptr [ebp - 8], edi */
   4268 L_36103062:
   4269     edi = edx + (-0x4); /* 0x36103062: lea edi, [edx - 4] */
   4270 L_36103065:
   4271     eax = edi; /* 0x36103065: mov eax, edi */
   4272 L_36103067:
   4273     ebx = MEM32(eax); /* 0x36103067: mov ebx, dword ptr [eax] */
   4274 L_36103069:
   4275     MEM32(ebp + (-0x2C)) = ebx; /* 0x36103069: mov dword ptr [ebp - 0x2c], ebx */
   4276 L_3610306C:
   4277     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3610306C: fld dword ptr [ebp - 0x2c] */
   4278 L_3610306F:
   4279     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3610306F: fsub dword ptr [ebp - 0x20] */
   4280 L_36103072:
   4281     ebx = MEM32(eax + 0x4); /* 0x36103072: mov ebx, dword ptr [eax + 4] */
   4282 L_36103075:
   4283     eax = MEM32(eax + 0x8); /* 0x36103075: mov eax, dword ptr [eax + 8] */
   4284 L_36103078:
   4285     MEM32(ebp + (-0x28)) = ebx; /* 0x36103078: mov dword ptr [ebp - 0x28], ebx */
   4286 L_3610307B:
   4287     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3610307B: fld dword ptr [ebp - 0x28] */
   4288 L_3610307E:
   4289     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3610307E: fsub dword ptr [ebp - 0x1c] */
   4290 L_36103081:
   4291     MEM32(ebp + (-0x24)) = eax; /* 0x36103081: mov dword ptr [ebp - 0x24], eax */
   4292 L_36103084:
   4293     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36103084: fld dword ptr [ebp - 0x24] */
   4294 L_36103087:
   4295     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36103087: fsub dword ptr [ebp - 0x18] */
   4296 L_3610308A:
   4297     fp_push(_st[0]); /* 0x3610308A: fld st(0) */
   4298 L_3610308C:
   4299     _st[0] *= _st[1]; /* 0x3610308C: fmul st(1) */
   4300 L_3610308E:
   4301     fp_push(_st[2]); /* 0x3610308E: fld st(2) */
   4302 L_36103090:
   4303     _st[0] *= _st[3]; /* 0x36103090: fmul st(3) */
   4304 L_36103092:
   4305     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103092: faddp st(1) */
   4306 L_36103094:
   4307     fp_push(_st[3]); /* 0x36103094: fld st(3) */
   4308 L_36103096:
   4309     _st[0] *= _st[4]; /* 0x36103096: fmul st(4) */
   4310 L_36103098:
   4311     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103098: faddp st(1) */
   4312 L_3610309A:
   4313     _st[0] = sqrt(_st[0]); /* 0x3610309A: fsqrt  */
   4314 L_3610309C:
   4315     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3610309C: fstp st(3) */
   4316 L_3610309E:
   4317     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610309E: fstp st(0) */
   4318 L_361030A0:
   4319     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030A0: fstp st(0) */
   4320 L_361030A2:
   4321     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361030A2: fmul dword ptr [ebp - 0x14] */
   4322 L_361030A5:
   4323     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361030A5: fsubr dword ptr [0x36170380] */
   4324 L_361030AB:
   4325     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361030AB: fcom dword ptr [0x3617040c] */
   4326 L_361030B1:
   4327     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361030B1: fnstsw ax */
   4328 L_361030B3:
   4329     /* test HI8(eax), 1 */ /* 0x361030B3: test ah, 1 */
   4330     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4331     _cf = 0;
   4332     _flag_k = FK_NARROW(FK_TEST, 24);
   4333 L_361030B6:
   4334     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361030C2; /* 0x361030B6: je 0x361030c2 */
   4335 L_361030B8:
   4336     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030B8: fstp st(0) */
   4337 L_361030BA:
   4338     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x361030BA: fld dword ptr [0x3617040c] */
   4339 L_361030C0:
   4340     goto L_361030D7; /* 0x361030C0: jmp 0x361030d7 */
   4341 L_361030C2:
   4342     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361030C2: fcom dword ptr [0x36170380] */
   4343 L_361030C8:
   4344     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361030C8: fnstsw ax */
   4345 L_361030CA:
   4346     /* test HI8(eax), 0x41u */ /* 0x361030CA: test ah, 0x41 */
   4347     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4348     _cf = 0;
   4349     _flag_k = FK_NARROW(FK_TEST, 24);
   4350 L_361030CD:
   4351     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361030D7; /* 0x361030CD: jne 0x361030d7 */
   4352 L_361030CF:
   4353     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030CF: fstp st(0) */
   4354 L_361030D1:
   4355     fp_push(*(float*)&MEM32(0x36170380)); /* 0x361030D1: fld dword ptr [0x36170380] */
   4356 L_361030D7:
   4357     _st[0] *= (double)*(float*)ADDR(ebp + 0x28); /* 0x361030D7: fmul dword ptr [ebp + 0x28] */
   4358 L_361030DA:
   4359     eax = edx + 0x8; /* 0x361030DA: lea eax, [edx + 8] */
   4360 L_361030DD:
   4361     ebx = MEM32(eax); /* 0x361030DD: mov ebx, dword ptr [eax] */
   4362 L_361030DF:
   4363     MEM32(ebp + (-0x38)) = ebx; /* 0x361030DF: mov dword ptr [ebp - 0x38], ebx */
   4364 L_361030E2:
   4365     _st[0] *= (double)*(float*)ADDR(esi + 0x14); /* 0x361030E2: fmul dword ptr [esi + 0x14] */
   4366 L_361030E5:
   4367     ebx = MEM32(eax + 0x4); /* 0x361030E5: mov ebx, dword ptr [eax + 4] */
   4368 L_361030E8:
   4369     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361030E8: fld dword ptr [ebp - 0x38] */
   4370 L_361030EB:
   4371     eax = MEM32(eax + 0x8); /* 0x361030EB: mov eax, dword ptr [eax + 8] */
   4372 L_361030EE:
   4373     MEM32(ebp + (-0x34)) = ebx; /* 0x361030EE: mov dword ptr [ebp - 0x34], ebx */
   4374 L_361030F1:
   4375     _st[0] *= _st[1]; /* 0x361030F1: fmul st(1) */
   4376 L_361030F3:
   4377     MEM32(ebp + (-0x30)) = eax; /* 0x361030F3: mov dword ptr [ebp - 0x30], eax */
   4378 L_361030F6:
   4379     eax = MEM32(ebp + (-0x8)); /* 0x361030F6: mov eax, dword ptr [ebp - 8] */
   4380 L_361030F9:
   4381     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361030F9: fstp dword ptr [ebp - 0x38] */
   4382 L_361030FC:
   4383     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x20u);
   4384     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4385     edx = edx + 0x20u; /* 0x361030FC: add edx, 0x20 */
   4386     _flag_k = FK_ADD;
   4387 L_361030FF:
   4388     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361030FF: fld dword ptr [ebp - 0x34] */
   4389 L_36103102:
   4390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4391     eax = eax - 1; /* 0x36103102: dec eax */
   4392     _flag_k = FK_DEC;
   4393 L_36103103:
   4394     _st[0] *= _st[1]; /* 0x36103103: fmul st(1) */
   4395 L_36103105:
   4396     MEM32(ebp + (-0x8)) = eax; /* 0x36103105: mov dword ptr [ebp - 8], eax */
   4397 L_36103108:
   4398     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36103108: fstp dword ptr [ebp - 0x34] */
   4399 L_3610310B:
   4400     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3610310B: fmul dword ptr [ebp - 0x30] */
   4401 L_3610310E:
   4402     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3610310E: fld dword ptr [ebp - 0x38] */
   4403 L_36103111:
   4404     _st[0] += (double)*(float*)ADDR(edi); /* 0x36103111: fadd dword ptr [edi] */
   4405 L_36103113:
   4406     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103113: fstp dword ptr [edi] */
   4407 L_36103115:
   4408     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36103115: fld dword ptr [ebp - 0x34] */
   4409 L_36103118:
   4410     _st[0] += (double)*(float*)ADDR(edx + (-0x20)); /* 0x36103118: fadd dword ptr [edx - 0x20] */
   4411 L_3610311B:
   4412     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x20)) = _v; } /* 0x3610311B: fstp dword ptr [edx - 0x20] */
   4413 L_3610311E:
   4414     _st[0] += (double)*(float*)ADDR(edx + (-0x1C)); /* 0x3610311E: fadd dword ptr [edx - 0x1c] */
   4415 L_36103121:
   4416     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x1C)) = _v; } /* 0x36103121: fstp dword ptr [edx - 0x1c] */
   4417 L_36103124:
   4418     RECOMP_BACKEDGE();
   4419     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103062; /* 0x36103124: jne 0x36103062 */
   4420 L_3610312A:
   4421     edi = MEM32(ebp + 0xC); /* 0x3610312A: mov edi, dword ptr [ebp + 0xc] */
   4422 L_3610312D:
   4423     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4424     ebx = 0; /* 0x3610312D: xor ebx, ebx */
   4425     _cf = 0;
   4426     _flag_k = FK_TEST;
   4427 L_3610312F:
   4428     esi = MEM32(ebp + 0x8); /* 0x3610312F: mov esi, dword ptr [ebp + 8] */
   4429 L_36103132:
   4430     edx = MEM32(ebp + 0x10); /* 0x36103132: mov edx, dword ptr [ebp + 0x10] */
   4431 L_36103135:
   4432     eax = MEM32(ebp + (-0x4)); /* 0x36103135: mov eax, dword ptr [ebp - 4] */
   4433 L_36103138:
   4434     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4435     esi = esi + 1; /* 0x36103138: inc esi */
   4436     _flag_k = FK_INC;
   4437 L_36103139:
   4438     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   4439     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4440     edx = edx + 0x18u; /* 0x36103139: add edx, 0x18 */
   4441     _flag_k = FK_ADD;
   4442 L_3610313C:
   4443     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4444     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4445     eax = eax + 0xCu; /* 0x3610313C: add eax, 0xc */
   4446     _flag_k = FK_ADD;
   4447 L_3610313F:
   4448     MEM32(ebp + 0x8) = esi; /* 0x3610313F: mov dword ptr [ebp + 8], esi */
   4449 L_36103142:
   4450     MEM32(ebp + 0x10) = edx; /* 0x36103142: mov dword ptr [ebp + 0x10], edx */
   4451 L_36103145:
   4452     MEM32(ebp + (-0x4)) = eax; /* 0x36103145: mov dword ptr [ebp - 4], eax */
   4453 L_36103148:
   4454     RECOMP_BACKEDGE();
   4455     goto L_36102FED; /* 0x36103148: jmp 0x36102fed */
   4456 L_3610314D:
   4457     fp_push(*(float*)&MEM32(ecx + 0x12C)); /* 0x3610314D: fld dword ptr [ecx + 0x12c] */
   4458 L_36103153:
   4459     edx = MEM32(ebp + 0xC); /* 0x36103153: mov edx, dword ptr [ebp + 0xc] */
   4460 L_36103156:
   4461     /* cmp edx, ebx */ /* 0x36103156: cmp edx, ebx */
   4462     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   4463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4464     _flag_k = FK_CMP;
   4465 L_36103158:
   4466     ecx = MEM32(ecx + 0x130); /* 0x36103158: mov ecx, dword ptr [ecx + 0x130] */
   4467 L_3610315E:
   4468     MEM32(ebp + (-0x14)) = ecx; /* 0x3610315E: mov dword ptr [ebp - 0x14], ecx */
   4469 L_36103161:
   4470     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_36103467; /* 0x36103161: jbe 0x36103467 */
   4471 L_36103167:
   4472     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x36103167: fmul dword ptr [ebp + 8] */
   4473 L_3610316A:
   4474     eax = MEM32(ebp + 0x14); /* 0x3610316A: mov eax, dword ptr [ebp + 0x14] */
   4475 L_3610316D:
   4476     ecx = MEM32(ebp + 0x10); /* 0x3610316D: mov ecx, dword ptr [ebp + 0x10] */
   4477 L_36103170:
   4478     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4479     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4480     eax = eax + 4; /* 0x36103170: add eax, 4 */
   4481     _flag_k = FK_ADD;
   4482 L_36103173:
   4483     fp_push(_st[0]); /* 0x36103173: fld st(0) */
   4484 L_36103175:
   4485     fp_push(_st[0]); /* 0x36103175: fld st(0) */
   4486 L_36103177:
   4487     _st[0] *= *(double*)ADDR(0x361759A0); /* 0x36103177: fmul qword ptr [0x361759a0] */
   4488 L_3610317D:
   4489     { double _v = fp_pop(); *(double*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610317D: fstp qword ptr [ebp - 0xc] */
   4490 L_36103180:
   4491     _st[0] *= *(double*)ADDR(0x36175998); /* 0x36103180: fmul qword ptr [0x36175998] */
   4492 L_36103186:
   4493     esi = ecx; /* 0x36103186: mov esi, ecx */
   4494 L_36103188:
   4495     edi = MEM32(esi); /* 0x36103188: mov edi, dword ptr [esi] */
   4496 L_3610318A:
   4497     MEM32(ebp + (-0x2C)) = edi; /* 0x3610318A: mov dword ptr [ebp - 0x2c], edi */
   4498 L_3610318D:
   4499     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3610318D: fld dword ptr [ebp - 0x2c] */
   4500 L_36103190:
   4501     _st[0] += _st[1]; /* 0x36103190: fadd st(1) */
   4502 L_36103192:
   4503     edi = MEM32(esi + 0x4); /* 0x36103192: mov edi, dword ptr [esi + 4] */
   4504 L_36103195:
   4505     esi = MEM32(esi + 0x8); /* 0x36103195: mov esi, dword ptr [esi + 8] */
   4506 L_36103198:
   4507     MEM32(ebp + (-0x28)) = edi; /* 0x36103198: mov dword ptr [ebp - 0x28], edi */
   4508 L_3610319B:
   4509     _st[0] *= *(double*)ADDR(0x36175998); /* 0x3610319B: fmul qword ptr [0x36175998] */
   4510 L_361031A1:
   4511     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x361031A1: fld dword ptr [ebp - 0x28] */
   4512 L_361031A4:
   4513     MEM32(ebp + (-0x24)) = esi; /* 0x361031A4: mov dword ptr [ebp - 0x24], esi */
   4514 L_361031A7:
   4515     _st[0] -= *(double*)ADDR(ebp + (-0xC)); /* 0x361031A7: fsub qword ptr [ebp - 0xc] */
   4516 L_361031AA:
   4517     esi = eax + 0x8; /* 0x361031AA: lea esi, [eax + 8] */
   4518 L_361031AD:
   4519     edi = MEM32(esi); /* 0x361031AD: mov edi, dword ptr [esi] */
   4520 L_361031AF:
   4521     MEM32(ebp + (-0x38)) = edi; /* 0x361031AF: mov dword ptr [ebp - 0x38], edi */
   4522 L_361031B2:
   4523     _st[0] *= *(double*)ADDR(0x36175990); /* 0x361031B2: fmul qword ptr [0x36175990] */
   4524 L_361031B8:
   4525     edi = MEM32(esi + 0x4); /* 0x361031B8: mov edi, dword ptr [esi + 4] */
   4526 L_361031BB:
   4527     esi = MEM32(esi + 0x8); /* 0x361031BB: mov esi, dword ptr [esi + 8] */
   4528 L_361031BE:
   4529     { double _v = fp_pop(); _st[0] += _v; } /* 0x361031BE: faddp st(1) */
   4530 L_361031C0:
   4531     MEM32(ebp + (-0x34)) = edi; /* 0x361031C0: mov dword ptr [ebp - 0x34], edi */
   4532 L_361031C3:
   4533     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361031C3: fld dword ptr [ebp - 0x24] */
   4534 L_361031C6:
   4535     MEM32(ebp + (-0x30)) = esi; /* 0x361031C6: mov dword ptr [ebp - 0x30], esi */
   4536 L_361031C9:
   4537     _st[0] *= _st[3]; /* 0x361031C9: fmul st(3) */
   4538 L_361031CB:
   4539     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x44u);
   4540     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4541     ecx = ecx + 0x44u; /* 0x361031CB: add ecx, 0x44 */
   4542     _flag_k = FK_ADD;
   4543 L_361031CE:
   4544     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u);
   4545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4546     eax = eax + 0x20u; /* 0x361031CE: add eax, 0x20 */
   4547     _flag_k = FK_ADD;
   4548 L_361031D1:
   4549     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   4550     edx = edx - 1; /* 0x361031D1: dec edx */
   4551     _flag_k = FK_DEC;
   4552 L_361031D2:
   4553     _st[0] *= (double)*(float*)ADDR(0x3617598C); /* 0x361031D2: fmul dword ptr [0x3617598c] */
   4554 L_361031D8:
   4555     { double _v = fp_pop(); _st[0] += _v; } /* 0x361031D8: faddp st(1) */
   4556 L_361031DA:
   4557     _st[0] *= *(double*)ADDR(0x361759A0); /* 0x361031DA: fmul qword ptr [0x361759a0] */
   4558 L_361031E0:
   4559     fp_push(_st[2]); /* 0x361031E0: fld st(2) */
   4560 L_361031E2:
   4561     { double _v = fp_pop(); _st[0] += _v; } /* 0x361031E2: faddp st(1) */
   4562 L_361031E4:
   4563     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x361031E4: fsin  */
   4564 L_361031E6:
   4565     fp_push(_st[0]); /* 0x361031E6: fld st(0) */
   4566 L_361031E8:
   4567     { double _v = fp_pop(); _st[0] *= _v; } /* 0x361031E8: fmulp st(1) */
   4568 L_361031EA:
   4569     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361031EA: fmul dword ptr [ebp - 0x14] */
   4570 L_361031ED:
   4571     _st[0] *= (double)*(float*)ADDR(ebp + 0x28); /* 0x361031ED: fmul dword ptr [ebp + 0x28] */
   4572 L_361031F0:
   4573     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361031F0: fld dword ptr [ebp - 0x38] */
   4574 L_361031F3:
   4575     _st[0] *= _st[1]; /* 0x361031F3: fmul st(1) */
   4576 L_361031F5:
   4577     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361031F5: fstp dword ptr [ebp - 0x38] */
   4578 L_361031F8:
   4579     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361031F8: fld dword ptr [ebp - 0x34] */
   4580 L_361031FB:
   4581     _st[0] *= _st[1]; /* 0x361031FB: fmul st(1) */
   4582 L_361031FD:
   4583     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x361031FD: fstp dword ptr [ebp - 0x34] */
   4584 L_36103200:
   4585     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36103200: fmul dword ptr [ebp - 0x30] */
   4586 L_36103203:
   4587     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36103203: fld dword ptr [ebp - 0x38] */
   4588 L_36103206:
   4589     _st[0] += (double)*(float*)ADDR(eax + (-0x24)); /* 0x36103206: fadd dword ptr [eax - 0x24] */
   4590 L_36103209:
   4591     { float _v = (float)fp_pop(); *(float*)ADDR(eax + (-0x24)) = _v; } /* 0x36103209: fstp dword ptr [eax - 0x24] */
   4592 L_3610320C:
   4593     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3610320C: fld dword ptr [ebp - 0x34] */
   4594 L_3610320F:
   4595     _st[0] += (double)*(float*)ADDR(eax + (-0x20)); /* 0x3610320F: fadd dword ptr [eax - 0x20] */
   4596 L_36103212:
   4597     { float _v = (float)fp_pop(); *(float*)ADDR(eax + (-0x20)) = _v; } /* 0x36103212: fstp dword ptr [eax - 0x20] */
   4598 L_36103215:
   4599     _st[0] += (double)*(float*)ADDR(eax + (-0x1C)); /* 0x36103215: fadd dword ptr [eax - 0x1c] */
   4600 L_36103218:
   4601     { float _v = (float)fp_pop(); *(float*)ADDR(eax + (-0x1C)) = _v; } /* 0x36103218: fstp dword ptr [eax - 0x1c] */
   4602 L_3610321B:
   4603     RECOMP_BACKEDGE();
   4604     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103186; /* 0x3610321B: jne 0x36103186 */
   4605 L_36103221:
   4606     edi = POP32_VAL(esp); /* 0x36103221: pop edi */
   4607 L_36103222:
   4608     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103222: fstp st(0) */
   4609 L_36103224:
   4610     esi = POP32_VAL(esp); /* 0x36103224: pop esi */
   4611 L_36103225:
   4612     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103225: fstp st(0) */
   4613 L_36103227:
   4614     ebx = POP32_VAL(esp); /* 0x36103227: pop ebx */
   4615 L_36103228:
   4616     esp = ebp; /* 0x36103228: mov esp, ebp */
   4617 L_3610322A:
   4618     ebp = POP32_VAL(esp); /* 0x3610322A: pop ebp */
   4619 L_3610322B:
   4620     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610322B: ret  */
   4621 L_3610322C:
   4622     edx = MEM32(ebp + 0xC); /* 0x3610322C: mov edx, dword ptr [ebp + 0xc] */
   4623 L_3610322F:
   4624     /* cmp edx, ebx */ /* 0x3610322F: cmp edx, ebx */
   4625     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   4626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4627     _flag_k = FK_CMP;
   4628 L_36103231:
   4629     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_36103469; /* 0x36103231: jbe 0x36103469 */
   4630 L_36103237:
   4631     eax = MEM32(ebp + 0x14); /* 0x36103237: mov eax, dword ptr [ebp + 0x14] */
   4632 L_3610323A:
   4633     esi = ecx + 0x54; /* 0x3610323A: lea esi, [ecx + 0x54] */
   4634 L_3610323D:
   4635     edi = eax; /* 0x3610323D: mov edi, eax */
   4636 L_3610323F:
   4637     ebx = MEM32(edi); /* 0x3610323F: mov ebx, dword ptr [edi] */
   4638 L_36103241:
   4639     MEM32(ebp + (-0x50)) = ebx; /* 0x36103241: mov dword ptr [ebp - 0x50], ebx */
   4640 L_36103244:
   4641     ebx = MEM32(edi + 0x4); /* 0x36103244: mov ebx, dword ptr [edi + 4] */
   4642 L_36103247:
   4643     edi = MEM32(edi + 0x8); /* 0x36103247: mov edi, dword ptr [edi + 8] */
   4644 L_3610324A:
   4645     MEM32(ebp + (-0x48)) = edi; /* 0x3610324A: mov dword ptr [ebp - 0x48], edi */
   4646 L_3610324D:
   4647     MEM32(ebp + (-0x4C)) = ebx; /* 0x3610324D: mov dword ptr [ebp - 0x4c], ebx */
   4648 L_36103250:
   4649     edi = eax; /* 0x36103250: mov edi, eax */
   4650 L_36103252:
   4651     ebx = MEM32(edi); /* 0x36103252: mov ebx, dword ptr [edi] */
   4652 L_36103254:
   4653     MEM32(ebp + (-0x10)) = ebx; /* 0x36103254: mov dword ptr [ebp - 0x10], ebx */
   4654 L_36103257:
   4655     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36103257: fld dword ptr [ebp - 0x10] */
   4656 L_3610325A:
   4657     _st[0] *= (double)*(float*)ADDR(ecx + 0xB8); /* 0x3610325A: fmul dword ptr [ecx + 0xb8] */
   4658 L_36103260:
   4659     ebx = MEM32(edi + 0x4); /* 0x36103260: mov ebx, dword ptr [edi + 4] */
   4660 L_36103263:
   4661     edi = MEM32(edi + 0x8); /* 0x36103263: mov edi, dword ptr [edi + 8] */
   4662 L_36103266:
   4663     MEM32(ebp + (-0x8)) = edi; /* 0x36103266: mov dword ptr [ebp - 8], edi */
   4664 L_36103269:
   4665     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36103269: fld dword ptr [ebp - 8] */
   4666 L_3610326C:
   4667     _st[0] *= (double)*(float*)ADDR(ecx + 0xD8); /* 0x3610326C: fmul dword ptr [ecx + 0xd8] */
   4668 L_36103272:
   4669     MEM32(ebp + (-0xC)) = ebx; /* 0x36103272: mov dword ptr [ebp - 0xc], ebx */
   4670 L_36103275:
   4671     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103275: faddp st(1) */
   4672 L_36103277:
   4673     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36103277: fld dword ptr [ebp - 0xc] */
   4674 L_3610327A:
   4675     _st[0] *= (double)*(float*)ADDR(ecx + 0xC8); /* 0x3610327A: fmul dword ptr [ecx + 0xc8] */
   4676 L_36103280:
   4677     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103280: faddp st(1) */
   4678 L_36103282:
   4679     _st[0] += (double)*(float*)ADDR(ecx + 0xE8); /* 0x36103282: fadd dword ptr [ecx + 0xe8] */
   4680 L_36103288:
   4681     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36103288: fld dword ptr [ebp - 0x10] */
   4682 L_3610328B:
   4683     _st[0] *= (double)*(float*)ADDR(ecx + 0xBC); /* 0x3610328B: fmul dword ptr [ecx + 0xbc] */
   4684 L_36103291:
   4685     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36103291: fld dword ptr [ebp - 8] */
   4686 L_36103294:
   4687     _st[0] *= (double)*(float*)ADDR(ecx + 0xDC); /* 0x36103294: fmul dword ptr [ecx + 0xdc] */
   4688 L_3610329A:
   4689     { double _v = fp_pop(); _st[0] += _v; } /* 0x3610329A: faddp st(1) */
   4690 L_3610329C:
   4691     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610329C: fld dword ptr [ebp - 0xc] */
   4692 L_3610329F:
   4693     _st[0] *= (double)*(float*)ADDR(ecx + 0xCC); /* 0x3610329F: fmul dword ptr [ecx + 0xcc] */
   4694 L_361032A5:
   4695     { double _v = fp_pop(); _st[0] += _v; } /* 0x361032A5: faddp st(1) */
   4696 L_361032A7:
   4697     _st[0] += (double)*(float*)ADDR(ecx + 0xEC); /* 0x361032A7: fadd dword ptr [ecx + 0xec] */
   4698 L_361032AD:
   4699     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x361032AD: fstp dword ptr [ebp + 0xc] */
   4700 L_361032B0:
   4701     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361032B0: fld dword ptr [ebp - 0x10] */
   4702 L_361032B3:
   4703     edi = MEM32(ebp + 0xC); /* 0x361032B3: mov edi, dword ptr [ebp + 0xc] */
   4704 L_361032B6:
   4705     _st[0] *= (double)*(float*)ADDR(ecx + 0xB4); /* 0x361032B6: fmul dword ptr [ecx + 0xb4] */
   4706 L_361032BC:
   4707     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361032BC: fld dword ptr [ebp - 8] */
   4708 L_361032BF:
   4709     MEM32(ebp + (-0x8)) = edi; /* 0x361032BF: mov dword ptr [ebp - 8], edi */
   4710 L_361032C2:
   4711     _st[0] *= (double)*(float*)ADDR(ecx + 0xD4); /* 0x361032C2: fmul dword ptr [ecx + 0xd4] */
   4712 L_361032C8:
   4713     edi = esi; /* 0x361032C8: mov edi, esi */
   4714 L_361032CA:
   4715     ebx = MEM32(edi); /* 0x361032CA: mov ebx, dword ptr [edi] */
   4716 L_361032CC:
   4717     MEM32(ebp + (-0x44)) = ebx; /* 0x361032CC: mov dword ptr [ebp - 0x44], ebx */
   4718 L_361032CF:
   4719     { double _v = fp_pop(); _st[0] += _v; } /* 0x361032CF: faddp st(1) */
   4720 L_361032D1:
   4721     ebx = MEM32(edi + 0x4); /* 0x361032D1: mov ebx, dword ptr [edi + 4] */
   4722 L_361032D4:
   4723     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361032D4: fld dword ptr [ebp - 0xc] */
   4724 L_361032D7:
   4725     edi = MEM32(edi + 0x8); /* 0x361032D7: mov edi, dword ptr [edi + 8] */
   4726 L_361032DA:
   4727     _st[0] *= (double)*(float*)ADDR(ecx + 0xC4); /* 0x361032DA: fmul dword ptr [ecx + 0xc4] */
   4728 L_361032E0:
   4729     MEM32(ebp + (-0x40)) = ebx; /* 0x361032E0: mov dword ptr [ebp - 0x40], ebx */
   4730 L_361032E3:
   4731     MEM32(ebp + (-0x3C)) = edi; /* 0x361032E3: mov dword ptr [ebp - 0x3c], edi */
   4732 L_361032E6:
   4733     { double _v = fp_pop(); _st[0] += _v; } /* 0x361032E6: faddp st(1) */
   4734 L_361032E8:
   4735     _st[0] += (double)*(float*)ADDR(ecx + 0xE4); /* 0x361032E8: fadd dword ptr [ecx + 0xe4] */
   4736 L_361032EE:
   4737     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361032EE: fstp dword ptr [ebp - 0x10] */
   4738 L_361032F1:
   4739     edi = MEM32(ebp + (-0x10)); /* 0x361032F1: mov edi, dword ptr [ebp - 0x10] */
   4740 L_361032F4:
   4741     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x361032F4: fstp dword ptr [ebp - 0xc] */
   4742 L_361032F7:
   4743     MEM32(ebp + (-0x2C)) = edi; /* 0x361032F7: mov dword ptr [ebp - 0x2c], edi */
   4744 L_361032FA:
   4745     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361032FA: fld dword ptr [ebp - 0x44] */
   4746 L_361032FD:
   4747     edi = MEM32(ebp + (-0xC)); /* 0x361032FD: mov edi, dword ptr [ebp - 0xc] */
   4748 L_36103300:
   4749     _st[0] -= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36103300: fsub dword ptr [ebp - 0x50] */
   4750 L_36103303:
   4751     MEM32(ebp + (-0x28)) = edi; /* 0x36103303: mov dword ptr [ebp - 0x28], edi */
   4752 L_36103306:
   4753     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36103306: fld dword ptr [ebp - 0x40] */
   4754 L_36103309:
   4755     edi = MEM32(ebp + (-0x8)); /* 0x36103309: mov edi, dword ptr [ebp - 8] */
   4756 L_3610330C:
   4757     _st[0] -= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610330C: fsub dword ptr [ebp - 0x4c] */
   4758 L_3610330F:
   4759     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3610330F: fld dword ptr [ebp - 0x3c] */
   4760 L_36103312:
   4761     _st[0] -= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36103312: fsub dword ptr [ebp - 0x48] */
   4762 L_36103315:
   4763     fp_xch(2); /* 0x36103315: fxch st(2) */
   4764 L_36103317:
   4765     _st[0] *= (double)*(float*)ADDR(ecx + 0xA8); /* 0x36103317: fmul dword ptr [ecx + 0xa8] */
   4766 L_3610331D:
   4767     fp_xch(2); /* 0x3610331D: fxch st(2) */
   4768 L_3610331F:
   4769     _st[0] *= (double)*(float*)ADDR(ecx + 0xB0); /* 0x3610331F: fmul dword ptr [ecx + 0xb0] */
   4770 L_36103325:
   4771     { double _v = fp_pop(); _st[1] += _v; } /* 0x36103325: faddp st(2) */
   4772 L_36103327:
   4773     _st[0] *= (double)*(float*)ADDR(ecx + 0xAC); /* 0x36103327: fmul dword ptr [ecx + 0xac] */
   4774 L_3610332D:
   4775     { double _v = fp_pop(); _st[0] += _v; } /* 0x3610332D: faddp st(1) */
   4776 L_3610332F:
   4777     _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3610332F: fadd dword ptr [ebp + 8] */
   4778 L_36103332:
   4779     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36103332: fsin  */
   4780 L_36103334:
   4781     fp_push(_st[0]); /* 0x36103334: fld st(0) */
   4782 L_36103336:
   4783     { double _v = fp_pop(); _st[0] *= _v; } /* 0x36103336: fmulp st(1) */
   4784 L_36103338:
   4785     _st[0] *= (double)*(float*)ADDR(ebp + 0x28); /* 0x36103338: fmul dword ptr [ebp + 0x28] */
   4786 L_3610333B:
   4787     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610333B: fld dword ptr [ebp - 0x10] */
   4788 L_3610333E:
   4789     MEM32(ebp + (-0x24)) = edi; /* 0x3610333E: mov dword ptr [ebp - 0x24], edi */
   4790 L_36103341:
   4791     _st[0] *= _st[1]; /* 0x36103341: fmul st(1) */
   4792 L_36103343:
   4793     edi = eax; /* 0x36103343: mov edi, eax */
   4794 L_36103345:
   4795     ebx = MEM32(edi); /* 0x36103345: mov ebx, dword ptr [edi] */
   4796 L_36103347:
   4797     MEM32(ebp + (-0x20)) = ebx; /* 0x36103347: mov dword ptr [ebp - 0x20], ebx */
   4798 L_3610334A:
   4799     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3610334A: fstp dword ptr [ebp - 0x2c] */
   4800 L_3610334D:
   4801     ebx = MEM32(edi + 0x4); /* 0x3610334D: mov ebx, dword ptr [edi + 4] */
   4802 L_36103350:
   4803     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36103350: fld dword ptr [ebp - 0x28] */
   4804 L_36103353:
   4805     edi = MEM32(edi + 0x8); /* 0x36103353: mov edi, dword ptr [edi + 8] */
   4806 L_36103356:
   4807     _st[0] *= _st[1]; /* 0x36103356: fmul st(1) */
   4808 L_36103358:
   4809     MEM32(ebp + (-0x1C)) = ebx; /* 0x36103358: mov dword ptr [ebp - 0x1c], ebx */
   4810 L_3610335B:
   4811     MEM32(ebp + (-0x18)) = edi; /* 0x3610335B: mov dword ptr [ebp - 0x18], edi */
   4812 L_3610335E:
   4813     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3610335E: fstp dword ptr [ebp - 0x28] */
   4814 L_36103361:
   4815     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36103361: fld dword ptr [ebp - 0x24] */
   4816 L_36103364:
   4817     _st[0] *= _st[1]; /* 0x36103364: fmul st(1) */
   4818 L_36103366:
   4819     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36103366: fstp dword ptr [ebp - 0x24] */
   4820 L_36103369:
   4821     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x36103369: fsubr dword ptr [0x36170380] */
   4822 L_3610336F:
   4823     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610336F: fld dword ptr [ebp - 0x20] */
   4824 L_36103372:
   4825     _st[0] *= _st[1]; /* 0x36103372: fmul st(1) */
   4826 L_36103374:
   4827     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36103374: fstp dword ptr [ebp - 0x20] */
   4828 L_36103377:
   4829     edi = MEM32(ebp + (-0x20)); /* 0x36103377: mov edi, dword ptr [ebp - 0x20] */
   4830 L_3610337A:
   4831     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610337A: fld dword ptr [ebp - 0x1c] */
   4832 L_3610337D:
   4833     MEM32(ebp + (-0x38)) = edi; /* 0x3610337D: mov dword ptr [ebp - 0x38], edi */
   4834 L_36103380:
   4835     _st[0] *= _st[1]; /* 0x36103380: fmul st(1) */
   4836 L_36103382:
   4837     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36103382: fstp dword ptr [ebp - 0x1c] */
   4838 L_36103385:
   4839     edi = MEM32(ebp + (-0x1C)); /* 0x36103385: mov edi, dword ptr [ebp - 0x1c] */
   4840 L_36103388:
   4841     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36103388: fld dword ptr [ebp - 0x18] */
   4842 L_3610338B:
   4843     MEM32(ebp + (-0x34)) = edi; /* 0x3610338B: mov dword ptr [ebp - 0x34], edi */
   4844 L_3610338E:
   4845     _st[0] *= _st[1]; /* 0x3610338E: fmul st(1) */
   4846 L_36103390:
   4847     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36103390: fstp dword ptr [ebp - 0x18] */
   4848 L_36103393:
   4849     edi = MEM32(ebp + (-0x18)); /* 0x36103393: mov edi, dword ptr [ebp - 0x18] */
   4850 L_36103396:
   4851     MEM32(ebp + (-0x30)) = edi; /* 0x36103396: mov dword ptr [ebp - 0x30], edi */
   4852 L_36103399:
   4853     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103399: fstp st(0) */
   4854 L_3610339B:
   4855     edi = eax; /* 0x3610339B: mov edi, eax */
   4856 L_3610339D:
   4857     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610339D: fld dword ptr [ebp - 0x20] */
   4858 L_361033A0:
   4859     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u);
   4860     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4861     eax = eax + 0x20u; /* 0x361033A0: add eax, 0x20 */
   4862     _flag_k = FK_ADD;
   4863 L_361033A3:
   4864     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   4865     edx = edx - 1; /* 0x361033A3: dec edx */
   4866     _flag_k = FK_DEC;
   4867 L_361033A4:
   4868     _st[0] += (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x361033A4: fadd dword ptr [ebp - 0x2c] */
   4869 L_361033A7:
   4870     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361033A7: fstp dword ptr [ebp - 0x38] */
   4871 L_361033AA:
   4872     ebx = MEM32(ebp + (-0x38)); /* 0x361033AA: mov ebx, dword ptr [ebp - 0x38] */
   4873 L_361033AD:
   4874     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361033AD: fld dword ptr [ebp - 0x34] */
   4875 L_361033B0:
   4876     MEM32(edi) = ebx; /* 0x361033B0: mov dword ptr [edi], ebx */
   4877 L_361033B2:
   4878     _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x361033B2: fadd dword ptr [ebp - 0x28] */
   4879 L_361033B5:
   4880     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x361033B5: fstp dword ptr [ebp - 0x34] */
   4881 L_361033B8:
   4882     ebx = MEM32(ebp + (-0x34)); /* 0x361033B8: mov ebx, dword ptr [ebp - 0x34] */
   4883 L_361033BB:
   4884     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x361033BB: fld dword ptr [ebp - 0x30] */
   4885 L_361033BE:
   4886     MEM32(edi + 0x4) = ebx; /* 0x361033BE: mov dword ptr [edi + 4], ebx */
   4887 L_361033C1:
   4888     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x361033C1: fadd dword ptr [ebp - 0x24] */
   4889 L_361033C4:
   4890     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x361033C4: fstp dword ptr [ebp - 0x30] */
   4891 L_361033C7:
   4892     ebx = MEM32(ebp + (-0x30)); /* 0x361033C7: mov ebx, dword ptr [ebp - 0x30] */
   4893 L_361033CA:
   4894     MEM32(edi + 0x8) = ebx; /* 0x361033CA: mov dword ptr [edi + 8], ebx */
   4895 L_361033CD:
   4896     RECOMP_BACKEDGE();
   4897     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3610323D; /* 0x361033CD: jne 0x3610323d */
   4898 L_361033D3:
   4899     edi = POP32_VAL(esp); /* 0x361033D3: pop edi */
   4900 L_361033D4:
   4901     esi = POP32_VAL(esp); /* 0x361033D4: pop esi */
   4902 L_361033D5:
   4903     ebx = POP32_VAL(esp); /* 0x361033D5: pop ebx */
   4904 L_361033D6:
   4905     esp = ebp; /* 0x361033D6: mov esp, ebp */
   4906 L_361033D8:
   4907     ebp = POP32_VAL(esp); /* 0x361033D8: pop ebp */
   4908 L_361033D9:
   4909     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361033D9: ret  */
   4910 L_361033DA:
   4911     ecx = MEM32(ebp + 0xC); /* 0x361033DA: mov ecx, dword ptr [ebp + 0xc] */
   4912 L_361033DD:
   4913     /* cmp ecx, ebx */ /* 0x361033DD: cmp ecx, ebx */
   4914     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4916     _flag_k = FK_CMP;
   4917 L_361033DF:
   4918     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_36103469; /* 0x361033DF: jbe 0x36103469 */
   4919 L_361033E5:
   4920     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x361033E5: fld dword ptr [ebp + 8] */
   4921 L_361033E8:
   4922     eax = MEM32(ebp + 0x14); /* 0x361033E8: mov eax, dword ptr [ebp + 0x14] */
   4923 L_361033EB:
   4924     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x361033EB: fsin  */
   4925 L_361033ED:
   4926     _st[0] *= (double)*(float*)ADDR(0x361709E0); /* 0x361033ED: fmul dword ptr [0x361709e0] */
   4927 L_361033F3:
   4928     _st[0] *= (double)*(float*)ADDR(ebp + 0x28); /* 0x361033F3: fmul dword ptr [ebp + 0x28] */
   4929 L_361033F6:
   4930     edx = eax + 0xC; /* 0x361033F6: lea edx, [eax + 0xc] */
   4931 L_361033F9:
   4932     esi = MEM32(edx); /* 0x361033F9: mov esi, dword ptr [edx] */
   4933 L_361033FB:
   4934     MEM32(ebp + (-0x38)) = esi; /* 0x361033FB: mov dword ptr [ebp - 0x38], esi */
   4935 L_361033FE:
   4936     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361033FE: fld dword ptr [ebp - 0x38] */
   4937 L_36103401:
   4938     esi = MEM32(edx + 0x4); /* 0x36103401: mov esi, dword ptr [edx + 4] */
   4939 L_36103404:
   4940     _st[0] *= _st[1]; /* 0x36103404: fmul st(1) */
   4941 L_36103406:
   4942     edx = MEM32(edx + 0x8); /* 0x36103406: mov edx, dword ptr [edx + 8] */
   4943 L_36103409:
   4944     MEM32(ebp + (-0x34)) = esi; /* 0x36103409: mov dword ptr [ebp - 0x34], esi */
   4945 L_3610340C:
   4946     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3610340C: fld dword ptr [ebp - 0x34] */
   4947 L_3610340F:
   4948     _st[0] *= _st[2]; /* 0x3610340F: fmul st(2) */
   4949 L_36103411:
   4950     MEM32(ebp + (-0x30)) = edx; /* 0x36103411: mov dword ptr [ebp - 0x30], edx */
   4951 L_36103414:
   4952     edx = eax; /* 0x36103414: mov edx, eax */
   4953 L_36103416:
   4954     esi = MEM32(edx); /* 0x36103416: mov esi, dword ptr [edx] */
   4955 L_36103418:
   4956     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36103418: fstp dword ptr [ebp - 0x34] */
   4957 L_3610341B:
   4958     MEM32(ebp + (-0x20)) = esi; /* 0x3610341B: mov dword ptr [ebp - 0x20], esi */
   4959 L_3610341E:
   4960     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3610341E: fld dword ptr [ebp - 0x30] */
   4961 L_36103421:
   4962     esi = MEM32(edx + 0x4); /* 0x36103421: mov esi, dword ptr [edx + 4] */
   4963 L_36103424:
   4964     edx = MEM32(edx + 0x8); /* 0x36103424: mov edx, dword ptr [edx + 8] */
   4965 L_36103427:
   4966     _st[0] *= _st[2]; /* 0x36103427: fmul st(2) */
   4967 L_36103429:
   4968     MEM32(ebp + (-0x1C)) = esi; /* 0x36103429: mov dword ptr [ebp - 0x1c], esi */
   4969 L_3610342C:
   4970     MEM32(ebp + (-0x18)) = edx; /* 0x3610342C: mov dword ptr [ebp - 0x18], edx */
   4971 L_3610342F:
   4972     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3610342F: fstp dword ptr [ebp - 0x30] */
   4973 L_36103432:
   4974     edx = eax; /* 0x36103432: mov edx, eax */
   4975 L_36103434:
   4976     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36103434: fld dword ptr [ebp - 0x20] */
   4977 L_36103437:
   4978     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u);
   4979     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4980     eax = eax + 0x20u; /* 0x36103437: add eax, 0x20 */
   4981     _flag_k = FK_ADD;
   4982 L_3610343A:
   4983     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4984     ecx = ecx - 1; /* 0x3610343A: dec ecx */
   4985     _flag_k = FK_DEC;
   4986 L_3610343B:
   4987     _st[0] += _st[1]; /* 0x3610343B: fadd st(1) */
   4988 L_3610343D:
   4989     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3610343D: fstp dword ptr [ebp - 0x20] */
   4990 L_36103440:
   4991     esi = MEM32(ebp + (-0x20)); /* 0x36103440: mov esi, dword ptr [ebp - 0x20] */
   4992 L_36103443:
   4993     MEM32(edx) = esi; /* 0x36103443: mov dword ptr [edx], esi */
   4994 L_36103445:
   4995     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103445: fstp st(0) */
   4996 L_36103447:
   4997     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36103447: fld dword ptr [ebp - 0x1c] */
   4998 L_3610344A:
   4999     _st[0] += (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3610344A: fadd dword ptr [ebp - 0x34] */
   5000 L_3610344D:
   5001     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3610344D: fstp dword ptr [ebp - 0x1c] */
   5002 L_36103450:
   5003     esi = MEM32(ebp + (-0x1C)); /* 0x36103450: mov esi, dword ptr [ebp - 0x1c] */
   5004 L_36103453:
   5005     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36103453: fld dword ptr [ebp - 0x18] */
   5006 L_36103456:
   5007     MEM32(edx + 0x4) = esi; /* 0x36103456: mov dword ptr [edx + 4], esi */
   5008 L_36103459:
   5009     _st[0] += (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36103459: fadd dword ptr [ebp - 0x30] */
   5010 L_3610345C:
   5011     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3610345C: fstp dword ptr [ebp - 0x18] */
   5012 L_3610345F:
   5013     esi = MEM32(ebp + (-0x18)); /* 0x3610345F: mov esi, dword ptr [ebp - 0x18] */
   5014 L_36103462:
   5015     MEM32(edx + 0x8) = esi; /* 0x36103462: mov dword ptr [edx + 8], esi */
   5016 L_36103465:
   5017     RECOMP_BACKEDGE();
   5018     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361033F6; /* 0x36103465: jne 0x361033f6 */
   5019 L_36103467:
   5020     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103467: fstp st(0) */
   5021 L_36103469:
   5022     edi = POP32_VAL(esp); /* 0x36103469: pop edi */
   5023 L_3610346A:
   5024     esi = POP32_VAL(esp); /* 0x3610346A: pop esi */
   5025 L_3610346B:
   5026     ebx = POP32_VAL(esp); /* 0x3610346B: pop ebx */
   5027 L_3610346C:
   5028     esp = ebp; /* 0x3610346C: mov esp, ebp */
   5029 L_3610346E:
   5030     ebp = POP32_VAL(esp); /* 0x3610346E: pop ebp */
   5031 L_3610346F:
   5032     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610346F: ret  */
   5033   _ljump:
   5034     switch (_itail_tgt) {
   5035       case 0x36102FA0u: goto L_36102FA0;
   5036       case 0x36102FA1u: goto L_36102FA1;
   5037       case 0x36102FA3u: goto L_36102FA3;
   5038       case 0x36102FA6u: goto L_36102FA6;
   5039       case 0x36102FA9u: goto L_36102FA9;
   5040       case 0x36102FAAu: goto L_36102FAA;
   5041       case 0x36102FACu: goto L_36102FAC;
   5042       case 0x36102FAEu: goto L_36102FAE;
   5043       case 0x36102FAFu: goto L_36102FAF;
   5044       case 0x36102FB0u: goto L_36102FB0;
   5045       case 0x36102FB2u: goto L_36102FB2;
   5046       case 0x36102FB5u: goto L_36102FB5;
   5047       case 0x36102FB6u: goto L_36102FB6;
   5048       case 0x36102FB7u: goto L_36102FB7;
   5049       case 0x36102FBAu: goto L_36102FBA;
   5050       case 0x36102FBBu: goto L_36102FBB;
   5051       case 0x36102FBDu: goto L_36102FBD;
   5052       case 0x36102FBEu: goto L_36102FBE;
   5053       case 0x36102FBFu: goto L_36102FBF;
   5054       case 0x36102FC2u: goto L_36102FC2;
   5055       case 0x36102FC5u: goto L_36102FC5;
   5056       case 0x36102FC8u: goto L_36102FC8;
   5057       case 0x36102FCBu: goto L_36102FCB;
   5058       case 0x36102FCEu: goto L_36102FCE;
   5059       case 0x36102FD1u: goto L_36102FD1;
   5060       case 0x36102FD4u: goto L_36102FD4;
   5061       case 0x36102FDAu: goto L_36102FDA;
   5062       case 0x36102FE1u: goto L_36102FE1;
   5063       case 0x36102FE4u: goto L_36102FE4;
   5064       case 0x36102FE7u: goto L_36102FE7;
   5065       case 0x36102FEAu: goto L_36102FEA;
   5066       case 0x36102FEDu: goto L_36102FED;
   5067       case 0x36102FF3u: goto L_36102FF3;
   5068       case 0x36102FF5u: goto L_36102FF5;
   5069       case 0x36102FFBu: goto L_36102FFB;
   5070       case 0x36103001u: goto L_36103001;
   5071       case 0x36103003u: goto L_36103003;
   5072       case 0x36103008u: goto L_36103008;
   5073       case 0x3610300Au: goto L_3610300A;
   5074       case 0x3610300Du: goto L_3610300D;
   5075       case 0x3610300Fu: goto L_3610300F;
   5076       case 0x36103012u: goto L_36103012;
   5077       case 0x36103014u: goto L_36103014;
   5078       case 0x36103017u: goto L_36103017;
   5079       case 0x3610301Du: goto L_3610301D;
   5080       case 0x36103020u: goto L_36103020;
   5081       case 0x36103026u: goto L_36103026;
   5082       case 0x3610302Cu: goto L_3610302C;
   5083       case 0x36103030u: goto L_36103030;
   5084       case 0x36103032u: goto L_36103032;
   5085       case 0x36103035u: goto L_36103035;
   5086       case 0x3610303Bu: goto L_3610303B;
   5087       case 0x3610303Du: goto L_3610303D;
   5088       case 0x3610303Fu: goto L_3610303F;
   5089       case 0x36103041u: goto L_36103041;
   5090       case 0x36103044u: goto L_36103044;
   5091       case 0x36103047u: goto L_36103047;
   5092       case 0x3610304Au: goto L_3610304A;
   5093       case 0x3610304Du: goto L_3610304D;
   5094       case 0x36103050u: goto L_36103050;
   5095       case 0x36103053u: goto L_36103053;
   5096       case 0x36103059u: goto L_36103059;
   5097       case 0x3610305Cu: goto L_3610305C;
   5098       case 0x3610305Fu: goto L_3610305F;
   5099       case 0x36103062u: goto L_36103062;
   5100       case 0x36103065u: goto L_36103065;
   5101       case 0x36103067u: goto L_36103067;
   5102       case 0x36103069u: goto L_36103069;
   5103       case 0x3610306Cu: goto L_3610306C;
   5104       case 0x3610306Fu: goto L_3610306F;
   5105       case 0x36103072u: goto L_36103072;
   5106       case 0x36103075u: goto L_36103075;
   5107       case 0x36103078u: goto L_36103078;
   5108       case 0x3610307Bu: goto L_3610307B;
   5109       case 0x3610307Eu: goto L_3610307E;
   5110       case 0x36103081u: goto L_36103081;
   5111       case 0x36103084u: goto L_36103084;
   5112       case 0x36103087u: goto L_36103087;
   5113       case 0x3610308Au: goto L_3610308A;
   5114       case 0x3610308Cu: goto L_3610308C;
   5115       case 0x3610308Eu: goto L_3610308E;
   5116       case 0x36103090u: goto L_36103090;
   5117       case 0x36103092u: goto L_36103092;
   5118       case 0x36103094u: goto L_36103094;
   5119       case 0x36103096u: goto L_36103096;
   5120       case 0x36103098u: goto L_36103098;
   5121       case 0x3610309Au: goto L_3610309A;
   5122       case 0x3610309Cu: goto L_3610309C;
   5123       case 0x3610309Eu: goto L_3610309E;
   5124       case 0x361030A0u: goto L_361030A0;
   5125       case 0x361030A2u: goto L_361030A2;
   5126       case 0x361030A5u: goto L_361030A5;
   5127       case 0x361030ABu: goto L_361030AB;
   5128       case 0x361030B1u: goto L_361030B1;
   5129       case 0x361030B3u: goto L_361030B3;
   5130       case 0x361030B6u: goto L_361030B6;
   5131       case 0x361030B8u: goto L_361030B8;
   5132       case 0x361030BAu: goto L_361030BA;
   5133       case 0x361030C0u: goto L_361030C0;
   5134       case 0x361030C2u: goto L_361030C2;
   5135       case 0x361030C8u: goto L_361030C8;
   5136       case 0x361030CAu: goto L_361030CA;
   5137       case 0x361030CDu: goto L_361030CD;
   5138       case 0x361030CFu: goto L_361030CF;
   5139       case 0x361030D1u: goto L_361030D1;
   5140       case 0x361030D7u: goto L_361030D7;
   5141       case 0x361030DAu: goto L_361030DA;
   5142       case 0x361030DDu: goto L_361030DD;
   5143       case 0x361030DFu: goto L_361030DF;
   5144       case 0x361030E2u: goto L_361030E2;
   5145       case 0x361030E5u: goto L_361030E5;
   5146       case 0x361030E8u: goto L_361030E8;
   5147       case 0x361030EBu: goto L_361030EB;
   5148       case 0x361030EEu: goto L_361030EE;
   5149       case 0x361030F1u: goto L_361030F1;
   5150       case 0x361030F3u: goto L_361030F3;
   5151       case 0x361030F6u: goto L_361030F6;
   5152       case 0x361030F9u: goto L_361030F9;
   5153       case 0x361030FCu: goto L_361030FC;
   5154       case 0x361030FFu: goto L_361030FF;
   5155       case 0x36103102u: goto L_36103102;
   5156       case 0x36103103u: goto L_36103103;
   5157       case 0x36103105u: goto L_36103105;
   5158       case 0x36103108u: goto L_36103108;
   5159       case 0x3610310Bu: goto L_3610310B;
   5160       case 0x3610310Eu: goto L_3610310E;
   5161       case 0x36103111u: goto L_36103111;
   5162       case 0x36103113u: goto L_36103113;
   5163       case 0x36103115u: goto L_36103115;
   5164       case 0x36103118u: goto L_36103118;
   5165       case 0x3610311Bu: goto L_3610311B;
   5166       case 0x3610311Eu: goto L_3610311E;
   5167       case 0x36103121u: goto L_36103121;
   5168       case 0x36103124u: goto L_36103124;
   5169       case 0x3610312Au: goto L_3610312A;
   5170       case 0x3610312Du: goto L_3610312D;
   5171       case 0x3610312Fu: goto L_3610312F;
   5172       case 0x36103132u: goto L_36103132;
   5173       case 0x36103135u: goto L_36103135;
   5174       case 0x36103138u: goto L_36103138;
   5175       case 0x36103139u: goto L_36103139;
   5176       case 0x3610313Cu: goto L_3610313C;
   5177       case 0x3610313Fu: goto L_3610313F;
   5178       case 0x36103142u: goto L_36103142;
   5179       case 0x36103145u: goto L_36103145;
   5180       case 0x36103148u: goto L_36103148;
   5181       case 0x3610314Du: goto L_3610314D;
   5182       case 0x36103153u: goto L_36103153;
   5183       case 0x36103156u: goto L_36103156;
   5184       case 0x36103158u: goto L_36103158;
   5185       case 0x3610315Eu: goto L_3610315E;
   5186       case 0x36103161u: goto L_36103161;
   5187       case 0x36103167u: goto L_36103167;
   5188       case 0x3610316Au: goto L_3610316A;
   5189       case 0x3610316Du: goto L_3610316D;
   5190       case 0x36103170u: goto L_36103170;
   5191       case 0x36103173u: goto L_36103173;
   5192       case 0x36103175u: goto L_36103175;
   5193       case 0x36103177u: goto L_36103177;
   5194       case 0x3610317Du: goto L_3610317D;
   5195       case 0x36103180u: goto L_36103180;
   5196       case 0x36103186u: goto L_36103186;
   5197       case 0x36103188u: goto L_36103188;
   5198       case 0x3610318Au: goto L_3610318A;
   5199       case 0x3610318Du: goto L_3610318D;
   5200       case 0x36103190u: goto L_36103190;
   5201       case 0x36103192u: goto L_36103192;
   5202       case 0x36103195u: goto L_36103195;
   5203       case 0x36103198u: goto L_36103198;
   5204       case 0x3610319Bu: goto L_3610319B;
   5205       case 0x361031A1u: goto L_361031A1;
   5206       case 0x361031A4u: goto L_361031A4;
   5207       case 0x361031A7u: goto L_361031A7;
   5208       case 0x361031AAu: goto L_361031AA;
   5209       case 0x361031ADu: goto L_361031AD;
   5210       case 0x361031AFu: goto L_361031AF;
   5211       case 0x361031B2u: goto L_361031B2;
   5212       case 0x361031B8u: goto L_361031B8;
   5213       case 0x361031BBu: goto L_361031BB;
   5214       case 0x361031BEu: goto L_361031BE;
   5215       case 0x361031C0u: goto L_361031C0;
   5216       case 0x361031C3u: goto L_361031C3;
   5217       case 0x361031C6u: goto L_361031C6;
   5218       case 0x361031C9u: goto L_361031C9;
   5219       case 0x361031CBu: goto L_361031CB;
   5220       case 0x361031CEu: goto L_361031CE;
   5221       case 0x361031D1u: goto L_361031D1;
   5222       case 0x361031D2u: goto L_361031D2;
   5223       case 0x361031D8u: goto L_361031D8;
   5224       case 0x361031DAu: goto L_361031DA;
   5225       case 0x361031E0u: goto L_361031E0;
   5226       case 0x361031E2u: goto L_361031E2;
   5227       case 0x361031E4u: goto L_361031E4;
   5228       case 0x361031E6u: goto L_361031E6;
   5229       case 0x361031E8u: goto L_361031E8;
   5230       case 0x361031EAu: goto L_361031EA;
   5231       case 0x361031EDu: goto L_361031ED;
   5232       case 0x361031F0u: goto L_361031F0;
   5233       case 0x361031F3u: goto L_361031F3;
   5234       case 0x361031F5u: goto L_361031F5;
   5235       case 0x361031F8u: goto L_361031F8;
   5236       case 0x361031FBu: goto L_361031FB;
   5237       case 0x361031FDu: goto L_361031FD;
   5238       case 0x36103200u: goto L_36103200;
   5239       case 0x36103203u: goto L_36103203;
   5240       case 0x36103206u: goto L_36103206;
   5241       case 0x36103209u: goto L_36103209;
   5242       case 0x3610320Cu: goto L_3610320C;
   5243       case 0x3610320Fu: goto L_3610320F;
   5244       case 0x36103212u: goto L_36103212;
   5245       case 0x36103215u: goto L_36103215;
   5246       case 0x36103218u: goto L_36103218;
   5247       case 0x3610321Bu: goto L_3610321B;
   5248       case 0x36103221u: goto L_36103221;
   5249       case 0x36103222u: goto L_36103222;
   5250       case 0x36103224u: goto L_36103224;
   5251       case 0x36103225u: goto L_36103225;
   5252       case 0x36103227u: goto L_36103227;
   5253       case 0x36103228u: goto L_36103228;
   5254       case 0x3610322Au: goto L_3610322A;
   5255       case 0x3610322Bu: goto L_3610322B;
   5256       case 0x3610322Cu: goto L_3610322C;
   5257       case 0x3610322Fu: goto L_3610322F;
   5258       case 0x36103231u: goto L_36103231;
   5259       case 0x36103237u: goto L_36103237;
   5260       case 0x3610323Au: goto L_3610323A;
   5261       case 0x3610323Du: goto L_3610323D;
   5262       case 0x3610323Fu: goto L_3610323F;
   5263       case 0x36103241u: goto L_36103241;
   5264       case 0x36103244u: goto L_36103244;
   5265       case 0x36103247u: goto L_36103247;
   5266       case 0x3610324Au: goto L_3610324A;
   5267       case 0x3610324Du: goto L_3610324D;
   5268       case 0x36103250u: goto L_36103250;
   5269       case 0x36103252u: goto L_36103252;
   5270       case 0x36103254u: goto L_36103254;
   5271       case 0x36103257u: goto L_36103257;
   5272       case 0x3610325Au: goto L_3610325A;
   5273       case 0x36103260u: goto L_36103260;
   5274       case 0x36103263u: goto L_36103263;
   5275       case 0x36103266u: goto L_36103266;
   5276       case 0x36103269u: goto L_36103269;
   5277       case 0x3610326Cu: goto L_3610326C;
   5278       case 0x36103272u: goto L_36103272;
   5279       case 0x36103275u: goto L_36103275;
   5280       case 0x36103277u: goto L_36103277;
   5281       case 0x3610327Au: goto L_3610327A;
   5282       case 0x36103280u: goto L_36103280;
   5283       case 0x36103282u: goto L_36103282;
   5284       case 0x36103288u: goto L_36103288;
   5285       case 0x3610328Bu: goto L_3610328B;
   5286       case 0x36103291u: goto L_36103291;
   5287       case 0x36103294u: goto L_36103294;
   5288       case 0x3610329Au: goto L_3610329A;
   5289       case 0x3610329Cu: goto L_3610329C;
   5290       case 0x3610329Fu: goto L_3610329F;
   5291       case 0x361032A5u: goto L_361032A5;
   5292       case 0x361032A7u: goto L_361032A7;
   5293       case 0x361032ADu: goto L_361032AD;
   5294       case 0x361032B0u: goto L_361032B0;
   5295       case 0x361032B3u: goto L_361032B3;
   5296       case 0x361032B6u: goto L_361032B6;
   5297       case 0x361032BCu: goto L_361032BC;
   5298       case 0x361032BFu: goto L_361032BF;
   5299       case 0x361032C2u: goto L_361032C2;
   5300       case 0x361032C8u: goto L_361032C8;
   5301       case 0x361032CAu: goto L_361032CA;
   5302       case 0x361032CCu: goto L_361032CC;
   5303       case 0x361032CFu: goto L_361032CF;
   5304       case 0x361032D1u: goto L_361032D1;
   5305       case 0x361032D4u: goto L_361032D4;
   5306       case 0x361032D7u: goto L_361032D7;
   5307       case 0x361032DAu: goto L_361032DA;
   5308       case 0x361032E0u: goto L_361032E0;
   5309       case 0x361032E3u: goto L_361032E3;
   5310       case 0x361032E6u: goto L_361032E6;
   5311       case 0x361032E8u: goto L_361032E8;
   5312       case 0x361032EEu: goto L_361032EE;
   5313       case 0x361032F1u: goto L_361032F1;
   5314       case 0x361032F4u: goto L_361032F4;
   5315       case 0x361032F7u: goto L_361032F7;
   5316       case 0x361032FAu: goto L_361032FA;
   5317       case 0x361032FDu: goto L_361032FD;
   5318       case 0x36103300u: goto L_36103300;
   5319       case 0x36103303u: goto L_36103303;
   5320       case 0x36103306u: goto L_36103306;
   5321       case 0x36103309u: goto L_36103309;
   5322       case 0x3610330Cu: goto L_3610330C;
   5323       case 0x3610330Fu: goto L_3610330F;
   5324       case 0x36103312u: goto L_36103312;
   5325       case 0x36103315u: goto L_36103315;
   5326       case 0x36103317u: goto L_36103317;
   5327       case 0x3610331Du: goto L_3610331D;
   5328       case 0x3610331Fu: goto L_3610331F;
   5329       case 0x36103325u: goto L_36103325;
   5330       case 0x36103327u: goto L_36103327;
   5331       case 0x3610332Du: goto L_3610332D;
   5332       case 0x3610332Fu: goto L_3610332F;
   5333       case 0x36103332u: goto L_36103332;
   5334       case 0x36103334u: goto L_36103334;
   5335       case 0x36103336u: goto L_36103336;
   5336       case 0x36103338u: goto L_36103338;
   5337       case 0x3610333Bu: goto L_3610333B;
   5338       case 0x3610333Eu: goto L_3610333E;
   5339       case 0x36103341u: goto L_36103341;
   5340       case 0x36103343u: goto L_36103343;
   5341       case 0x36103345u: goto L_36103345;
   5342       case 0x36103347u: goto L_36103347;
   5343       case 0x3610334Au: goto L_3610334A;
   5344       case 0x3610334Du: goto L_3610334D;
   5345       case 0x36103350u: goto L_36103350;
   5346       case 0x36103353u: goto L_36103353;
   5347       case 0x36103356u: goto L_36103356;
   5348       case 0x36103358u: goto L_36103358;
   5349       case 0x3610335Bu: goto L_3610335B;
   5350       case 0x3610335Eu: goto L_3610335E;
   5351       case 0x36103361u: goto L_36103361;
   5352       case 0x36103364u: goto L_36103364;
   5353       case 0x36103366u: goto L_36103366;
   5354       case 0x36103369u: goto L_36103369;
   5355       case 0x3610336Fu: goto L_3610336F;
   5356       case 0x36103372u: goto L_36103372;
   5357       case 0x36103374u: goto L_36103374;
   5358       case 0x36103377u: goto L_36103377;
   5359       case 0x3610337Au: goto L_3610337A;
   5360       case 0x3610337Du: goto L_3610337D;
   5361       case 0x36103380u: goto L_36103380;
   5362       case 0x36103382u: goto L_36103382;
   5363       case 0x36103385u: goto L_36103385;
   5364       case 0x36103388u: goto L_36103388;
   5365       case 0x3610338Bu: goto L_3610338B;
   5366       case 0x3610338Eu: goto L_3610338E;
   5367       case 0x36103390u: goto L_36103390;
   5368       case 0x36103393u: goto L_36103393;
   5369       case 0x36103396u: goto L_36103396;
   5370       case 0x36103399u: goto L_36103399;
   5371       case 0x3610339Bu: goto L_3610339B;
   5372       case 0x3610339Du: goto L_3610339D;
   5373       case 0x361033A0u: goto L_361033A0;
   5374       case 0x361033A3u: goto L_361033A3;
   5375       case 0x361033A4u: goto L_361033A4;
   5376       case 0x361033A7u: goto L_361033A7;
   5377       case 0x361033AAu: goto L_361033AA;
   5378       case 0x361033ADu: goto L_361033AD;
   5379       case 0x361033B0u: goto L_361033B0;
   5380       case 0x361033B2u: goto L_361033B2;
   5381       case 0x361033B5u: goto L_361033B5;
   5382       case 0x361033B8u: goto L_361033B8;
   5383       case 0x361033BBu: goto L_361033BB;
   5384       case 0x361033BEu: goto L_361033BE;
   5385       case 0x361033C1u: goto L_361033C1;
   5386       case 0x361033C4u: goto L_361033C4;
   5387       case 0x361033C7u: goto L_361033C7;
   5388       case 0x361033CAu: goto L_361033CA;
   5389       case 0x361033CDu: goto L_361033CD;
   5390       case 0x361033D3u: goto L_361033D3;
   5391       case 0x361033D4u: goto L_361033D4;
   5392       case 0x361033D5u: goto L_361033D5;
   5393       case 0x361033D6u: goto L_361033D6;
   5394       case 0x361033D8u: goto L_361033D8;
   5395       case 0x361033D9u: goto L_361033D9;
   5396       case 0x361033DAu: goto L_361033DA;
   5397       case 0x361033DDu: goto L_361033DD;
   5398       case 0x361033DFu: goto L_361033DF;
   5399       case 0x361033E5u: goto L_361033E5;
   5400       case 0x361033E8u: goto L_361033E8;
   5401       case 0x361033EBu: goto L_361033EB;
   5402       case 0x361033EDu: goto L_361033ED;
   5403       case 0x361033F3u: goto L_361033F3;
   5404       case 0x361033F6u: goto L_361033F6;
   5405       case 0x361033F9u: goto L_361033F9;
   5406       case 0x361033FBu: goto L_361033FB;
   5407       case 0x361033FEu: goto L_361033FE;
   5408       case 0x36103401u: goto L_36103401;
   5409       case 0x36103404u: goto L_36103404;
   5410       case 0x36103406u: goto L_36103406;
   5411       case 0x36103409u: goto L_36103409;
   5412       case 0x3610340Cu: goto L_3610340C;
   5413       case 0x3610340Fu: goto L_3610340F;
   5414       case 0x36103411u: goto L_36103411;
   5415       case 0x36103414u: goto L_36103414;
   5416       case 0x36103416u: goto L_36103416;
   5417       case 0x36103418u: goto L_36103418;
   5418       case 0x3610341Bu: goto L_3610341B;
   5419       case 0x3610341Eu: goto L_3610341E;
   5420       case 0x36103421u: goto L_36103421;
   5421       case 0x36103424u: goto L_36103424;
   5422       case 0x36103427u: goto L_36103427;
   5423       case 0x36103429u: goto L_36103429;
   5424       case 0x3610342Cu: goto L_3610342C;
   5425       case 0x3610342Fu: goto L_3610342F;
   5426       case 0x36103432u: goto L_36103432;
   5427       case 0x36103434u: goto L_36103434;
   5428       case 0x36103437u: goto L_36103437;
   5429       case 0x3610343Au: goto L_3610343A;
   5430       case 0x3610343Bu: goto L_3610343B;
   5431       case 0x3610343Du: goto L_3610343D;
   5432       case 0x36103440u: goto L_36103440;
   5433       case 0x36103443u: goto L_36103443;
   5434       case 0x36103445u: goto L_36103445;
   5435       case 0x36103447u: goto L_36103447;
   5436       case 0x3610344Au: goto L_3610344A;
   5437       case 0x3610344Du: goto L_3610344D;
   5438       case 0x36103450u: goto L_36103450;
   5439       case 0x36103453u: goto L_36103453;
   5440       case 0x36103456u: goto L_36103456;
   5441       case 0x36103459u: goto L_36103459;
   5442       case 0x3610345Cu: goto L_3610345C;
   5443       case 0x3610345Fu: goto L_3610345F;
   5444       case 0x36103462u: goto L_36103462;
   5445       case 0x36103465u: goto L_36103465;
   5446       case 0x36103467u: goto L_36103467;
   5447       case 0x36103469u: goto L_36103469;
   5448       case 0x3610346Au: goto L_3610346A;
   5449       case 0x3610346Bu: goto L_3610346B;
   5450       case 0x3610346Cu: goto L_3610346C;
   5451       case 0x3610346Eu: goto L_3610346E;
   5452       case 0x3610346Fu: goto L_3610346F;
   5453       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5454     }
   5455     RECOMP_REGS_OUT();
   5456 }
   5457 
   5458 void sub_36102FED(void) {
   5459     int _fpu_cmp = 0;
   5460     uint32_t _cf = 0;
   5461     int _df = 1;
   5462     uint32_t _flag_k = FK_NONE;
   5463     uint32_t _flag_a = 0, _flag_b = 0;
   5464     uint32_t _itail_tgt = 0;
   5465     RECOMP_REGS_LOCALS
   5466     RECOMP_ENTER(0x36102FEDu);
   5467 
   5468 L_36102FED:
   5469     eax = MEM32(ecx + 0x110); /* 0x36102FED: mov eax, dword ptr [ecx + 0x110] */
   5470     /* cmp eax, ebx */ /* 0x36102FF3: cmp eax, ebx */
   5471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5473     _flag_k = FK_CMP;
   5474     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103469; /* 0x36102FF5: je 0x36103469 */
   5475 L_36102FFB:
   5476     edx = MEM32(ecx + 0x114); /* 0x36102FFB: mov edx, dword ptr [ecx + 0x114] */
   5477     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5478     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5479     edx = edx - eax; /* 0x36103001: sub edx, eax */
   5480     _flag_k = FK_CMP;
   5481     eax = 0x2AAAAAABu; /* 0x36103003: mov eax, 0x2aaaaaab */
   5482     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36103008: imul edx */
   5483       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5484       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5485     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3610300A: sar edx, 2 */
   5486     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5487     edx = (uint32_t)((int32_t)edx >> 2u);
   5488     eax = edx; /* 0x3610300D: mov eax, edx */
   5489     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3610300F: shr eax, 0x1f */
   5490     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5491     eax = eax >> 31u; /* 0x3610300F: shr eax, 0x1f */
   5492     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5494     edx = edx + eax; /* 0x36103012: add edx, eax */
   5495     _flag_k = FK_ADD;
   5496     /* cmp MEM32(ebp + 0x8), edx */ /* 0x36103014: cmp dword ptr [ebp + 8], edx */
   5497     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edx);
   5498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5499     _flag_k = FK_CMP;
   5500     if (CMP_AE(_flag_a, _flag_b)) goto L_36103469; /* 0x36103017: jae 0x36103469 */
   5501 L_3610301D:
   5502     edx = MEM32(ebp + 0x10); /* 0x3610301D: mov edx, dword ptr [ebp + 0x10] */
   5503     fp_push(*(float*)&MEM32(0x36170380)); /* 0x36103020: fld dword ptr [0x36170380] */
   5504     esi = MEM32(ecx + 0x110); /* 0x36103026: mov esi, dword ptr [ecx + 0x110] */
   5505     _st[0] /= (double)*(float*)ADDR(esi + edx + 0x10); /* 0x3610302C: fdiv dword ptr [esi + edx + 0x10] */
   5506     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   5507     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5508     esi = esi + edx; /* 0x36103030: add esi, edx */
   5509     _flag_k = FK_ADD;
   5510     eax = MEM32(ebp + (-0x4)); /* 0x36103032: mov eax, dword ptr [ebp - 4] */
   5511     edx = MEM32(ecx + 0x120); /* 0x36103035: mov edx, dword ptr [ecx + 0x120] */
   5512     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5513     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5514     edx = edx + eax; /* 0x3610303B: add edx, eax */
   5515     _flag_k = FK_ADD;
   5516     /* cmp edi, ebx */ /* 0x3610303D: cmp edi, ebx */
   5517     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5519     _flag_k = FK_CMP;
   5520     eax = MEM32(edx); /* 0x3610303F: mov eax, dword ptr [edx] */
   5521     MEM32(ebp + (-0x20)) = eax; /* 0x36103041: mov dword ptr [ebp - 0x20], eax */
   5522     eax = MEM32(edx + 0x4); /* 0x36103044: mov eax, dword ptr [edx + 4] */
   5523     edx = MEM32(edx + 0x8); /* 0x36103047: mov edx, dword ptr [edx + 8] */
   5524     MEM32(ebp + (-0x1C)) = eax; /* 0x3610304A: mov dword ptr [ebp - 0x1c], eax */
   5525     MEM32(ebp + (-0x18)) = edx; /* 0x3610304D: mov dword ptr [ebp - 0x18], edx */
   5526     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36103050: fstp dword ptr [ebp - 0x14] */
   5527     if (CMP_BE(_flag_a, _flag_b)) goto L_3610312F; /* 0x36103053: jbe 0x3610312f */
   5528 L_36103059:
   5529     eax = MEM32(ebp + 0x14); /* 0x36103059: mov eax, dword ptr [ebp + 0x14] */
   5530     edx = eax + 0x4; /* 0x3610305C: lea edx, [eax + 4] */
   5531     MEM32(ebp + (-0x8)) = edi; /* 0x3610305F: mov dword ptr [ebp - 8], edi */
   5532 L_36103062:
   5533     edi = edx + (-0x4); /* 0x36103062: lea edi, [edx - 4] */
   5534     eax = edi; /* 0x36103065: mov eax, edi */
   5535     ebx = MEM32(eax); /* 0x36103067: mov ebx, dword ptr [eax] */
   5536     MEM32(ebp + (-0x2C)) = ebx; /* 0x36103069: mov dword ptr [ebp - 0x2c], ebx */
   5537     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3610306C: fld dword ptr [ebp - 0x2c] */
   5538     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3610306F: fsub dword ptr [ebp - 0x20] */
   5539     ebx = MEM32(eax + 0x4); /* 0x36103072: mov ebx, dword ptr [eax + 4] */
   5540     eax = MEM32(eax + 0x8); /* 0x36103075: mov eax, dword ptr [eax + 8] */
   5541     MEM32(ebp + (-0x28)) = ebx; /* 0x36103078: mov dword ptr [ebp - 0x28], ebx */
   5542     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3610307B: fld dword ptr [ebp - 0x28] */
   5543     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3610307E: fsub dword ptr [ebp - 0x1c] */
   5544     MEM32(ebp + (-0x24)) = eax; /* 0x36103081: mov dword ptr [ebp - 0x24], eax */
   5545     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36103084: fld dword ptr [ebp - 0x24] */
   5546     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36103087: fsub dword ptr [ebp - 0x18] */
   5547     fp_push(_st[0]); /* 0x3610308A: fld st(0) */
   5548     _st[0] *= _st[1]; /* 0x3610308C: fmul st(1) */
   5549     fp_push(_st[2]); /* 0x3610308E: fld st(2) */
   5550     _st[0] *= _st[3]; /* 0x36103090: fmul st(3) */
   5551     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103092: faddp st(1) */
   5552     fp_push(_st[3]); /* 0x36103094: fld st(3) */
   5553     _st[0] *= _st[4]; /* 0x36103096: fmul st(4) */
   5554     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103098: faddp st(1) */
   5555     _st[0] = sqrt(_st[0]); /* 0x3610309A: fsqrt  */
   5556     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3610309C: fstp st(3) */
   5557     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610309E: fstp st(0) */
   5558     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030A0: fstp st(0) */
   5559     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361030A2: fmul dword ptr [ebp - 0x14] */
   5560     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361030A5: fsubr dword ptr [0x36170380] */
   5561     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361030AB: fcom dword ptr [0x3617040c] */
   5562     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361030B1: fnstsw ax */
   5563     /* test HI8(eax), 1 */ /* 0x361030B3: test ah, 1 */
   5564     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5565     _cf = 0;
   5566     _flag_k = FK_NARROW(FK_TEST, 24);
   5567     if (TEST_Z(_flag_a, _flag_b)) goto L_361030C2; /* 0x361030B6: je 0x361030c2 */
   5568 L_361030B8:
   5569     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030B8: fstp st(0) */
   5570     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x361030BA: fld dword ptr [0x3617040c] */
   5571     goto L_361030D7; /* 0x361030C0: jmp 0x361030d7 */
   5572 L_361030C2:
   5573     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361030C2: fcom dword ptr [0x36170380] */
   5574     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361030C8: fnstsw ax */
   5575     /* test HI8(eax), 0x41u */ /* 0x361030CA: test ah, 0x41 */
   5576     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5577     _cf = 0;
   5578     _flag_k = FK_NARROW(FK_TEST, 24);
   5579     if (TEST_NZ(_flag_a, _flag_b)) goto L_361030D7; /* 0x361030CD: jne 0x361030d7 */
   5580 L_361030CF:
   5581     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030CF: fstp st(0) */
   5582     fp_push(*(float*)&MEM32(0x36170380)); /* 0x361030D1: fld dword ptr [0x36170380] */
   5583 L_361030D7:
   5584     _st[0] *= (double)*(float*)ADDR(ebp + 0x28); /* 0x361030D7: fmul dword ptr [ebp + 0x28] */
   5585     eax = edx + 0x8; /* 0x361030DA: lea eax, [edx + 8] */
   5586     ebx = MEM32(eax); /* 0x361030DD: mov ebx, dword ptr [eax] */
   5587     MEM32(ebp + (-0x38)) = ebx; /* 0x361030DF: mov dword ptr [ebp - 0x38], ebx */
   5588     _st[0] *= (double)*(float*)ADDR(esi + 0x14); /* 0x361030E2: fmul dword ptr [esi + 0x14] */
   5589     ebx = MEM32(eax + 0x4); /* 0x361030E5: mov ebx, dword ptr [eax + 4] */
   5590     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361030E8: fld dword ptr [ebp - 0x38] */
   5591     eax = MEM32(eax + 0x8); /* 0x361030EB: mov eax, dword ptr [eax + 8] */
   5592     MEM32(ebp + (-0x34)) = ebx; /* 0x361030EE: mov dword ptr [ebp - 0x34], ebx */
   5593     _st[0] *= _st[1]; /* 0x361030F1: fmul st(1) */
   5594     MEM32(ebp + (-0x30)) = eax; /* 0x361030F3: mov dword ptr [ebp - 0x30], eax */
   5595     eax = MEM32(ebp + (-0x8)); /* 0x361030F6: mov eax, dword ptr [ebp - 8] */
   5596     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361030F9: fstp dword ptr [ebp - 0x38] */
   5597     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x20u);
   5598     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5599     edx = edx + 0x20u; /* 0x361030FC: add edx, 0x20 */
   5600     _flag_k = FK_ADD;
   5601     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361030FF: fld dword ptr [ebp - 0x34] */
   5602     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5603     eax = eax - 1; /* 0x36103102: dec eax */
   5604     _flag_k = FK_DEC;
   5605     _st[0] *= _st[1]; /* 0x36103103: fmul st(1) */
   5606     MEM32(ebp + (-0x8)) = eax; /* 0x36103105: mov dword ptr [ebp - 8], eax */
   5607     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36103108: fstp dword ptr [ebp - 0x34] */
   5608     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3610310B: fmul dword ptr [ebp - 0x30] */
   5609     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3610310E: fld dword ptr [ebp - 0x38] */
   5610     _st[0] += (double)*(float*)ADDR(edi); /* 0x36103111: fadd dword ptr [edi] */
   5611     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103113: fstp dword ptr [edi] */
   5612     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36103115: fld dword ptr [ebp - 0x34] */
   5613     _st[0] += (double)*(float*)ADDR(edx + (-0x20)); /* 0x36103118: fadd dword ptr [edx - 0x20] */
   5614     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x20)) = _v; } /* 0x3610311B: fstp dword ptr [edx - 0x20] */
   5615     _st[0] += (double)*(float*)ADDR(edx + (-0x1C)); /* 0x3610311E: fadd dword ptr [edx - 0x1c] */
   5616     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x1C)) = _v; } /* 0x36103121: fstp dword ptr [edx - 0x1c] */
   5617     RECOMP_BACKEDGE();
   5618     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36103062; /* 0x36103124: jne 0x36103062 */
   5619 L_3610312A:
   5620     edi = MEM32(ebp + 0xC); /* 0x3610312A: mov edi, dword ptr [ebp + 0xc] */
   5621     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5622     ebx = 0; /* 0x3610312D: xor ebx, ebx */
   5623     _cf = 0;
   5624     _flag_k = FK_TEST;
   5625 L_3610312F:
   5626     esi = MEM32(ebp + 0x8); /* 0x3610312F: mov esi, dword ptr [ebp + 8] */
   5627     edx = MEM32(ebp + 0x10); /* 0x36103132: mov edx, dword ptr [ebp + 0x10] */
   5628     eax = MEM32(ebp + (-0x4)); /* 0x36103135: mov eax, dword ptr [ebp - 4] */
   5629     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5630     esi = esi + 1; /* 0x36103138: inc esi */
   5631     _flag_k = FK_INC;
   5632     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   5633     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5634     edx = edx + 0x18u; /* 0x36103139: add edx, 0x18 */
   5635     _flag_k = FK_ADD;
   5636     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   5637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5638     eax = eax + 0xCu; /* 0x3610313C: add eax, 0xc */
   5639     _flag_k = FK_ADD;
   5640     MEM32(ebp + 0x8) = esi; /* 0x3610313F: mov dword ptr [ebp + 8], esi */
   5641     MEM32(ebp + 0x10) = edx; /* 0x36103142: mov dword ptr [ebp + 0x10], edx */
   5642     MEM32(ebp + (-0x4)) = eax; /* 0x36103145: mov dword ptr [ebp - 4], eax */
   5643     RECOMP_BACKEDGE();
   5644     goto L_36102FED; /* 0x36103148: jmp 0x36102fed */
   5645 L_36103469:
   5646     edi = POP32_VAL(esp); /* 0x36103469: pop edi */
   5647     esi = POP32_VAL(esp); /* 0x3610346A: pop esi */
   5648     ebx = POP32_VAL(esp); /* 0x3610346B: pop ebx */
   5649     esp = ebp; /* 0x3610346C: mov esp, ebp */
   5650     ebp = POP32_VAL(esp); /* 0x3610346E: pop ebp */
   5651     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610346F: ret  */
   5652     RECOMP_REGS_OUT();
   5653 }
   5654 
   5655 void sub_36103062(void) {
   5656     int _fpu_cmp = 0;
   5657     uint32_t _cf = 0;
   5658     int _df = 1;
   5659     uint32_t _flag_k = FK_NONE;
   5660     uint32_t _flag_a = 0, _flag_b = 0;
   5661     uint32_t _itail_tgt = 0;
   5662     RECOMP_REGS_LOCALS
   5663     RECOMP_ENTER(0x36103062u);
   5664 
   5665     goto L_36103062;
   5666 L_36102FED:
   5667     eax = MEM32(ecx + 0x110); /* 0x36102FED: mov eax, dword ptr [ecx + 0x110] */
   5668     /* cmp eax, ebx */ /* 0x36102FF3: cmp eax, ebx */
   5669     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5671     _flag_k = FK_CMP;
   5672     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103469; /* 0x36102FF5: je 0x36103469 */
   5673 L_36102FFB:
   5674     edx = MEM32(ecx + 0x114); /* 0x36102FFB: mov edx, dword ptr [ecx + 0x114] */
   5675     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5677     edx = edx - eax; /* 0x36103001: sub edx, eax */
   5678     _flag_k = FK_CMP;
   5679     eax = 0x2AAAAAABu; /* 0x36103003: mov eax, 0x2aaaaaab */
   5680     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36103008: imul edx */
   5681       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5682       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5683     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3610300A: sar edx, 2 */
   5684     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5685     edx = (uint32_t)((int32_t)edx >> 2u);
   5686     eax = edx; /* 0x3610300D: mov eax, edx */
   5687     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3610300F: shr eax, 0x1f */
   5688     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5689     eax = eax >> 31u; /* 0x3610300F: shr eax, 0x1f */
   5690     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5691     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5692     edx = edx + eax; /* 0x36103012: add edx, eax */
   5693     _flag_k = FK_ADD;
   5694     /* cmp MEM32(ebp + 0x8), edx */ /* 0x36103014: cmp dword ptr [ebp + 8], edx */
   5695     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edx);
   5696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5697     _flag_k = FK_CMP;
   5698     if (CMP_AE(_flag_a, _flag_b)) goto L_36103469; /* 0x36103017: jae 0x36103469 */
   5699 L_3610301D:
   5700     edx = MEM32(ebp + 0x10); /* 0x3610301D: mov edx, dword ptr [ebp + 0x10] */
   5701     fp_push(*(float*)&MEM32(0x36170380)); /* 0x36103020: fld dword ptr [0x36170380] */
   5702     esi = MEM32(ecx + 0x110); /* 0x36103026: mov esi, dword ptr [ecx + 0x110] */
   5703     _st[0] /= (double)*(float*)ADDR(esi + edx + 0x10); /* 0x3610302C: fdiv dword ptr [esi + edx + 0x10] */
   5704     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   5705     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5706     esi = esi + edx; /* 0x36103030: add esi, edx */
   5707     _flag_k = FK_ADD;
   5708     eax = MEM32(ebp + (-0x4)); /* 0x36103032: mov eax, dword ptr [ebp - 4] */
   5709     edx = MEM32(ecx + 0x120); /* 0x36103035: mov edx, dword ptr [ecx + 0x120] */
   5710     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5711     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5712     edx = edx + eax; /* 0x3610303B: add edx, eax */
   5713     _flag_k = FK_ADD;
   5714     /* cmp edi, ebx */ /* 0x3610303D: cmp edi, ebx */
   5715     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5717     _flag_k = FK_CMP;
   5718     eax = MEM32(edx); /* 0x3610303F: mov eax, dword ptr [edx] */
   5719     MEM32(ebp + (-0x20)) = eax; /* 0x36103041: mov dword ptr [ebp - 0x20], eax */
   5720     eax = MEM32(edx + 0x4); /* 0x36103044: mov eax, dword ptr [edx + 4] */
   5721     edx = MEM32(edx + 0x8); /* 0x36103047: mov edx, dword ptr [edx + 8] */
   5722     MEM32(ebp + (-0x1C)) = eax; /* 0x3610304A: mov dword ptr [ebp - 0x1c], eax */
   5723     MEM32(ebp + (-0x18)) = edx; /* 0x3610304D: mov dword ptr [ebp - 0x18], edx */
   5724     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36103050: fstp dword ptr [ebp - 0x14] */
   5725     if (CMP_BE(_flag_a, _flag_b)) goto L_3610312F; /* 0x36103053: jbe 0x3610312f */
   5726 L_36103059:
   5727     eax = MEM32(ebp + 0x14); /* 0x36103059: mov eax, dword ptr [ebp + 0x14] */
   5728     edx = eax + 0x4; /* 0x3610305C: lea edx, [eax + 4] */
   5729     MEM32(ebp + (-0x8)) = edi; /* 0x3610305F: mov dword ptr [ebp - 8], edi */
   5730 L_36103062:
   5731     edi = edx + (-0x4); /* 0x36103062: lea edi, [edx - 4] */
   5732     eax = edi; /* 0x36103065: mov eax, edi */
   5733     ebx = MEM32(eax); /* 0x36103067: mov ebx, dword ptr [eax] */
   5734     MEM32(ebp + (-0x2C)) = ebx; /* 0x36103069: mov dword ptr [ebp - 0x2c], ebx */
   5735     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3610306C: fld dword ptr [ebp - 0x2c] */
   5736     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3610306F: fsub dword ptr [ebp - 0x20] */
   5737     ebx = MEM32(eax + 0x4); /* 0x36103072: mov ebx, dword ptr [eax + 4] */
   5738     eax = MEM32(eax + 0x8); /* 0x36103075: mov eax, dword ptr [eax + 8] */
   5739     MEM32(ebp + (-0x28)) = ebx; /* 0x36103078: mov dword ptr [ebp - 0x28], ebx */
   5740     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3610307B: fld dword ptr [ebp - 0x28] */
   5741     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3610307E: fsub dword ptr [ebp - 0x1c] */
   5742     MEM32(ebp + (-0x24)) = eax; /* 0x36103081: mov dword ptr [ebp - 0x24], eax */
   5743     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36103084: fld dword ptr [ebp - 0x24] */
   5744     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36103087: fsub dword ptr [ebp - 0x18] */
   5745     fp_push(_st[0]); /* 0x3610308A: fld st(0) */
   5746     _st[0] *= _st[1]; /* 0x3610308C: fmul st(1) */
   5747     fp_push(_st[2]); /* 0x3610308E: fld st(2) */
   5748     _st[0] *= _st[3]; /* 0x36103090: fmul st(3) */
   5749     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103092: faddp st(1) */
   5750     fp_push(_st[3]); /* 0x36103094: fld st(3) */
   5751     _st[0] *= _st[4]; /* 0x36103096: fmul st(4) */
   5752     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103098: faddp st(1) */
   5753     _st[0] = sqrt(_st[0]); /* 0x3610309A: fsqrt  */
   5754     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3610309C: fstp st(3) */
   5755     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610309E: fstp st(0) */
   5756     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030A0: fstp st(0) */
   5757     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361030A2: fmul dword ptr [ebp - 0x14] */
   5758     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361030A5: fsubr dword ptr [0x36170380] */
   5759     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361030AB: fcom dword ptr [0x3617040c] */
   5760     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361030B1: fnstsw ax */
   5761     /* test HI8(eax), 1 */ /* 0x361030B3: test ah, 1 */
   5762     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5763     _cf = 0;
   5764     _flag_k = FK_NARROW(FK_TEST, 24);
   5765     if (TEST_Z(_flag_a, _flag_b)) goto L_361030C2; /* 0x361030B6: je 0x361030c2 */
   5766 L_361030B8:
   5767     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030B8: fstp st(0) */
   5768     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x361030BA: fld dword ptr [0x3617040c] */
   5769     goto L_361030D7; /* 0x361030C0: jmp 0x361030d7 */
   5770 L_361030C2:
   5771     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361030C2: fcom dword ptr [0x36170380] */
   5772     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361030C8: fnstsw ax */
   5773     /* test HI8(eax), 0x41u */ /* 0x361030CA: test ah, 0x41 */
   5774     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5775     _cf = 0;
   5776     _flag_k = FK_NARROW(FK_TEST, 24);
   5777     if (TEST_NZ(_flag_a, _flag_b)) goto L_361030D7; /* 0x361030CD: jne 0x361030d7 */
   5778 L_361030CF:
   5779     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030CF: fstp st(0) */
   5780     fp_push(*(float*)&MEM32(0x36170380)); /* 0x361030D1: fld dword ptr [0x36170380] */
   5781 L_361030D7:
   5782     _st[0] *= (double)*(float*)ADDR(ebp + 0x28); /* 0x361030D7: fmul dword ptr [ebp + 0x28] */
   5783     eax = edx + 0x8; /* 0x361030DA: lea eax, [edx + 8] */
   5784     ebx = MEM32(eax); /* 0x361030DD: mov ebx, dword ptr [eax] */
   5785     MEM32(ebp + (-0x38)) = ebx; /* 0x361030DF: mov dword ptr [ebp - 0x38], ebx */
   5786     _st[0] *= (double)*(float*)ADDR(esi + 0x14); /* 0x361030E2: fmul dword ptr [esi + 0x14] */
   5787     ebx = MEM32(eax + 0x4); /* 0x361030E5: mov ebx, dword ptr [eax + 4] */
   5788     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361030E8: fld dword ptr [ebp - 0x38] */
   5789     eax = MEM32(eax + 0x8); /* 0x361030EB: mov eax, dword ptr [eax + 8] */
   5790     MEM32(ebp + (-0x34)) = ebx; /* 0x361030EE: mov dword ptr [ebp - 0x34], ebx */
   5791     _st[0] *= _st[1]; /* 0x361030F1: fmul st(1) */
   5792     MEM32(ebp + (-0x30)) = eax; /* 0x361030F3: mov dword ptr [ebp - 0x30], eax */
   5793     eax = MEM32(ebp + (-0x8)); /* 0x361030F6: mov eax, dword ptr [ebp - 8] */
   5794     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361030F9: fstp dword ptr [ebp - 0x38] */
   5795     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x20u);
   5796     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5797     edx = edx + 0x20u; /* 0x361030FC: add edx, 0x20 */
   5798     _flag_k = FK_ADD;
   5799     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361030FF: fld dword ptr [ebp - 0x34] */
   5800     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5801     eax = eax - 1; /* 0x36103102: dec eax */
   5802     _flag_k = FK_DEC;
   5803     _st[0] *= _st[1]; /* 0x36103103: fmul st(1) */
   5804     MEM32(ebp + (-0x8)) = eax; /* 0x36103105: mov dword ptr [ebp - 8], eax */
   5805     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36103108: fstp dword ptr [ebp - 0x34] */
   5806     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3610310B: fmul dword ptr [ebp - 0x30] */
   5807     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3610310E: fld dword ptr [ebp - 0x38] */
   5808     _st[0] += (double)*(float*)ADDR(edi); /* 0x36103111: fadd dword ptr [edi] */
   5809     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103113: fstp dword ptr [edi] */
   5810     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36103115: fld dword ptr [ebp - 0x34] */
   5811     _st[0] += (double)*(float*)ADDR(edx + (-0x20)); /* 0x36103118: fadd dword ptr [edx - 0x20] */
   5812     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x20)) = _v; } /* 0x3610311B: fstp dword ptr [edx - 0x20] */
   5813     _st[0] += (double)*(float*)ADDR(edx + (-0x1C)); /* 0x3610311E: fadd dword ptr [edx - 0x1c] */
   5814     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x1C)) = _v; } /* 0x36103121: fstp dword ptr [edx - 0x1c] */
   5815     RECOMP_BACKEDGE();
   5816     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36103062; /* 0x36103124: jne 0x36103062 */
   5817 L_3610312A:
   5818     edi = MEM32(ebp + 0xC); /* 0x3610312A: mov edi, dword ptr [ebp + 0xc] */
   5819     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5820     ebx = 0; /* 0x3610312D: xor ebx, ebx */
   5821     _cf = 0;
   5822     _flag_k = FK_TEST;
   5823 L_3610312F:
   5824     esi = MEM32(ebp + 0x8); /* 0x3610312F: mov esi, dword ptr [ebp + 8] */
   5825     edx = MEM32(ebp + 0x10); /* 0x36103132: mov edx, dword ptr [ebp + 0x10] */
   5826     eax = MEM32(ebp + (-0x4)); /* 0x36103135: mov eax, dword ptr [ebp - 4] */
   5827     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5828     esi = esi + 1; /* 0x36103138: inc esi */
   5829     _flag_k = FK_INC;
   5830     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   5831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5832     edx = edx + 0x18u; /* 0x36103139: add edx, 0x18 */
   5833     _flag_k = FK_ADD;
   5834     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   5835     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5836     eax = eax + 0xCu; /* 0x3610313C: add eax, 0xc */
   5837     _flag_k = FK_ADD;
   5838     MEM32(ebp + 0x8) = esi; /* 0x3610313F: mov dword ptr [ebp + 8], esi */
   5839     MEM32(ebp + 0x10) = edx; /* 0x36103142: mov dword ptr [ebp + 0x10], edx */
   5840     MEM32(ebp + (-0x4)) = eax; /* 0x36103145: mov dword ptr [ebp - 4], eax */
   5841     RECOMP_BACKEDGE();
   5842     goto L_36102FED; /* 0x36103148: jmp 0x36102fed */
   5843 L_36103469:
   5844     edi = POP32_VAL(esp); /* 0x36103469: pop edi */
   5845     esi = POP32_VAL(esp); /* 0x3610346A: pop esi */
   5846     ebx = POP32_VAL(esp); /* 0x3610346B: pop ebx */
   5847     esp = ebp; /* 0x3610346C: mov esp, ebp */
   5848     ebp = POP32_VAL(esp); /* 0x3610346E: pop ebp */
   5849     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610346F: ret  */
   5850     RECOMP_REGS_OUT();
   5851 }
   5852 
   5853 void sub_361030D7(void) {
   5854     int _fpu_cmp = 0;
   5855     uint32_t _cf = 0;
   5856     int _df = 1;
   5857     uint32_t _flag_k = FK_NONE;
   5858     uint32_t _flag_a = 0, _flag_b = 0;
   5859     uint32_t _itail_tgt = 0;
   5860     RECOMP_REGS_LOCALS
   5861     RECOMP_ENTER(0x361030D7u);
   5862 
   5863     goto L_361030D7;
   5864 L_36102FED:
   5865     eax = MEM32(ecx + 0x110); /* 0x36102FED: mov eax, dword ptr [ecx + 0x110] */
   5866     /* cmp eax, ebx */ /* 0x36102FF3: cmp eax, ebx */
   5867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5869     _flag_k = FK_CMP;
   5870     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103469; /* 0x36102FF5: je 0x36103469 */
   5871 L_36102FFB:
   5872     edx = MEM32(ecx + 0x114); /* 0x36102FFB: mov edx, dword ptr [ecx + 0x114] */
   5873     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5874     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5875     edx = edx - eax; /* 0x36103001: sub edx, eax */
   5876     _flag_k = FK_CMP;
   5877     eax = 0x2AAAAAABu; /* 0x36103003: mov eax, 0x2aaaaaab */
   5878     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36103008: imul edx */
   5879       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5880       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5881     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3610300A: sar edx, 2 */
   5882     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5883     edx = (uint32_t)((int32_t)edx >> 2u);
   5884     eax = edx; /* 0x3610300D: mov eax, edx */
   5885     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3610300F: shr eax, 0x1f */
   5886     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5887     eax = eax >> 31u; /* 0x3610300F: shr eax, 0x1f */
   5888     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5890     edx = edx + eax; /* 0x36103012: add edx, eax */
   5891     _flag_k = FK_ADD;
   5892     /* cmp MEM32(ebp + 0x8), edx */ /* 0x36103014: cmp dword ptr [ebp + 8], edx */
   5893     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edx);
   5894     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5895     _flag_k = FK_CMP;
   5896     if (CMP_AE(_flag_a, _flag_b)) goto L_36103469; /* 0x36103017: jae 0x36103469 */
   5897 L_3610301D:
   5898     edx = MEM32(ebp + 0x10); /* 0x3610301D: mov edx, dword ptr [ebp + 0x10] */
   5899     fp_push(*(float*)&MEM32(0x36170380)); /* 0x36103020: fld dword ptr [0x36170380] */
   5900     esi = MEM32(ecx + 0x110); /* 0x36103026: mov esi, dword ptr [ecx + 0x110] */
   5901     _st[0] /= (double)*(float*)ADDR(esi + edx + 0x10); /* 0x3610302C: fdiv dword ptr [esi + edx + 0x10] */
   5902     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   5903     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5904     esi = esi + edx; /* 0x36103030: add esi, edx */
   5905     _flag_k = FK_ADD;
   5906     eax = MEM32(ebp + (-0x4)); /* 0x36103032: mov eax, dword ptr [ebp - 4] */
   5907     edx = MEM32(ecx + 0x120); /* 0x36103035: mov edx, dword ptr [ecx + 0x120] */
   5908     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5909     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5910     edx = edx + eax; /* 0x3610303B: add edx, eax */
   5911     _flag_k = FK_ADD;
   5912     /* cmp edi, ebx */ /* 0x3610303D: cmp edi, ebx */
   5913     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5915     _flag_k = FK_CMP;
   5916     eax = MEM32(edx); /* 0x3610303F: mov eax, dword ptr [edx] */
   5917     MEM32(ebp + (-0x20)) = eax; /* 0x36103041: mov dword ptr [ebp - 0x20], eax */
   5918     eax = MEM32(edx + 0x4); /* 0x36103044: mov eax, dword ptr [edx + 4] */
   5919     edx = MEM32(edx + 0x8); /* 0x36103047: mov edx, dword ptr [edx + 8] */
   5920     MEM32(ebp + (-0x1C)) = eax; /* 0x3610304A: mov dword ptr [ebp - 0x1c], eax */
   5921     MEM32(ebp + (-0x18)) = edx; /* 0x3610304D: mov dword ptr [ebp - 0x18], edx */
   5922     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36103050: fstp dword ptr [ebp - 0x14] */
   5923     if (CMP_BE(_flag_a, _flag_b)) goto L_3610312F; /* 0x36103053: jbe 0x3610312f */
   5924 L_36103059:
   5925     eax = MEM32(ebp + 0x14); /* 0x36103059: mov eax, dword ptr [ebp + 0x14] */
   5926     edx = eax + 0x4; /* 0x3610305C: lea edx, [eax + 4] */
   5927     MEM32(ebp + (-0x8)) = edi; /* 0x3610305F: mov dword ptr [ebp - 8], edi */
   5928 L_36103062:
   5929     edi = edx + (-0x4); /* 0x36103062: lea edi, [edx - 4] */
   5930     eax = edi; /* 0x36103065: mov eax, edi */
   5931     ebx = MEM32(eax); /* 0x36103067: mov ebx, dword ptr [eax] */
   5932     MEM32(ebp + (-0x2C)) = ebx; /* 0x36103069: mov dword ptr [ebp - 0x2c], ebx */
   5933     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3610306C: fld dword ptr [ebp - 0x2c] */
   5934     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3610306F: fsub dword ptr [ebp - 0x20] */
   5935     ebx = MEM32(eax + 0x4); /* 0x36103072: mov ebx, dword ptr [eax + 4] */
   5936     eax = MEM32(eax + 0x8); /* 0x36103075: mov eax, dword ptr [eax + 8] */
   5937     MEM32(ebp + (-0x28)) = ebx; /* 0x36103078: mov dword ptr [ebp - 0x28], ebx */
   5938     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3610307B: fld dword ptr [ebp - 0x28] */
   5939     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3610307E: fsub dword ptr [ebp - 0x1c] */
   5940     MEM32(ebp + (-0x24)) = eax; /* 0x36103081: mov dword ptr [ebp - 0x24], eax */
   5941     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36103084: fld dword ptr [ebp - 0x24] */
   5942     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36103087: fsub dword ptr [ebp - 0x18] */
   5943     fp_push(_st[0]); /* 0x3610308A: fld st(0) */
   5944     _st[0] *= _st[1]; /* 0x3610308C: fmul st(1) */
   5945     fp_push(_st[2]); /* 0x3610308E: fld st(2) */
   5946     _st[0] *= _st[3]; /* 0x36103090: fmul st(3) */
   5947     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103092: faddp st(1) */
   5948     fp_push(_st[3]); /* 0x36103094: fld st(3) */
   5949     _st[0] *= _st[4]; /* 0x36103096: fmul st(4) */
   5950     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103098: faddp st(1) */
   5951     _st[0] = sqrt(_st[0]); /* 0x3610309A: fsqrt  */
   5952     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3610309C: fstp st(3) */
   5953     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610309E: fstp st(0) */
   5954     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030A0: fstp st(0) */
   5955     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361030A2: fmul dword ptr [ebp - 0x14] */
   5956     _st[0] = (double)*(float*)ADDR(0x36170380) - _st[0]; /* 0x361030A5: fsubr dword ptr [0x36170380] */
   5957     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361030AB: fcom dword ptr [0x3617040c] */
   5958     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361030B1: fnstsw ax */
   5959     /* test HI8(eax), 1 */ /* 0x361030B3: test ah, 1 */
   5960     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5961     _cf = 0;
   5962     _flag_k = FK_NARROW(FK_TEST, 24);
   5963     if (TEST_Z(_flag_a, _flag_b)) goto L_361030C2; /* 0x361030B6: je 0x361030c2 */
   5964 L_361030B8:
   5965     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030B8: fstp st(0) */
   5966     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x361030BA: fld dword ptr [0x3617040c] */
   5967     goto L_361030D7; /* 0x361030C0: jmp 0x361030d7 */
   5968 L_361030C2:
   5969     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361030C2: fcom dword ptr [0x36170380] */
   5970     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361030C8: fnstsw ax */
   5971     /* test HI8(eax), 0x41u */ /* 0x361030CA: test ah, 0x41 */
   5972     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5973     _cf = 0;
   5974     _flag_k = FK_NARROW(FK_TEST, 24);
   5975     if (TEST_NZ(_flag_a, _flag_b)) goto L_361030D7; /* 0x361030CD: jne 0x361030d7 */
   5976 L_361030CF:
   5977     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361030CF: fstp st(0) */
   5978     fp_push(*(float*)&MEM32(0x36170380)); /* 0x361030D1: fld dword ptr [0x36170380] */
   5979 L_361030D7:
   5980     _st[0] *= (double)*(float*)ADDR(ebp + 0x28); /* 0x361030D7: fmul dword ptr [ebp + 0x28] */
   5981     eax = edx + 0x8; /* 0x361030DA: lea eax, [edx + 8] */
   5982     ebx = MEM32(eax); /* 0x361030DD: mov ebx, dword ptr [eax] */
   5983     MEM32(ebp + (-0x38)) = ebx; /* 0x361030DF: mov dword ptr [ebp - 0x38], ebx */
   5984     _st[0] *= (double)*(float*)ADDR(esi + 0x14); /* 0x361030E2: fmul dword ptr [esi + 0x14] */
   5985     ebx = MEM32(eax + 0x4); /* 0x361030E5: mov ebx, dword ptr [eax + 4] */
   5986     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x361030E8: fld dword ptr [ebp - 0x38] */
   5987     eax = MEM32(eax + 0x8); /* 0x361030EB: mov eax, dword ptr [eax + 8] */
   5988     MEM32(ebp + (-0x34)) = ebx; /* 0x361030EE: mov dword ptr [ebp - 0x34], ebx */
   5989     _st[0] *= _st[1]; /* 0x361030F1: fmul st(1) */
   5990     MEM32(ebp + (-0x30)) = eax; /* 0x361030F3: mov dword ptr [ebp - 0x30], eax */
   5991     eax = MEM32(ebp + (-0x8)); /* 0x361030F6: mov eax, dword ptr [ebp - 8] */
   5992     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361030F9: fstp dword ptr [ebp - 0x38] */
   5993     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x20u);
   5994     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5995     edx = edx + 0x20u; /* 0x361030FC: add edx, 0x20 */
   5996     _flag_k = FK_ADD;
   5997     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361030FF: fld dword ptr [ebp - 0x34] */
   5998     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5999     eax = eax - 1; /* 0x36103102: dec eax */
   6000     _flag_k = FK_DEC;
   6001     _st[0] *= _st[1]; /* 0x36103103: fmul st(1) */
   6002     MEM32(ebp + (-0x8)) = eax; /* 0x36103105: mov dword ptr [ebp - 8], eax */
   6003     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36103108: fstp dword ptr [ebp - 0x34] */
   6004     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3610310B: fmul dword ptr [ebp - 0x30] */
   6005     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3610310E: fld dword ptr [ebp - 0x38] */
   6006     _st[0] += (double)*(float*)ADDR(edi); /* 0x36103111: fadd dword ptr [edi] */
   6007     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103113: fstp dword ptr [edi] */
   6008     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36103115: fld dword ptr [ebp - 0x34] */
   6009     _st[0] += (double)*(float*)ADDR(edx + (-0x20)); /* 0x36103118: fadd dword ptr [edx - 0x20] */
   6010     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x20)) = _v; } /* 0x3610311B: fstp dword ptr [edx - 0x20] */
   6011     _st[0] += (double)*(float*)ADDR(edx + (-0x1C)); /* 0x3610311E: fadd dword ptr [edx - 0x1c] */
   6012     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x1C)) = _v; } /* 0x36103121: fstp dword ptr [edx - 0x1c] */
   6013     RECOMP_BACKEDGE();
   6014     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36103062; /* 0x36103124: jne 0x36103062 */
   6015 L_3610312A:
   6016     edi = MEM32(ebp + 0xC); /* 0x3610312A: mov edi, dword ptr [ebp + 0xc] */
   6017     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6018     ebx = 0; /* 0x3610312D: xor ebx, ebx */
   6019     _cf = 0;
   6020     _flag_k = FK_TEST;
   6021 L_3610312F:
   6022     esi = MEM32(ebp + 0x8); /* 0x3610312F: mov esi, dword ptr [ebp + 8] */
   6023     edx = MEM32(ebp + 0x10); /* 0x36103132: mov edx, dword ptr [ebp + 0x10] */
   6024     eax = MEM32(ebp + (-0x4)); /* 0x36103135: mov eax, dword ptr [ebp - 4] */
   6025     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   6026     esi = esi + 1; /* 0x36103138: inc esi */
   6027     _flag_k = FK_INC;
   6028     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u);
   6029     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6030     edx = edx + 0x18u; /* 0x36103139: add edx, 0x18 */
   6031     _flag_k = FK_ADD;
   6032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6033     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6034     eax = eax + 0xCu; /* 0x3610313C: add eax, 0xc */
   6035     _flag_k = FK_ADD;
   6036     MEM32(ebp + 0x8) = esi; /* 0x3610313F: mov dword ptr [ebp + 8], esi */
   6037     MEM32(ebp + 0x10) = edx; /* 0x36103142: mov dword ptr [ebp + 0x10], edx */
   6038     MEM32(ebp + (-0x4)) = eax; /* 0x36103145: mov dword ptr [ebp - 4], eax */
   6039     RECOMP_BACKEDGE();
   6040     goto L_36102FED; /* 0x36103148: jmp 0x36102fed */
   6041 L_36103469:
   6042     edi = POP32_VAL(esp); /* 0x36103469: pop edi */
   6043     esi = POP32_VAL(esp); /* 0x3610346A: pop esi */
   6044     ebx = POP32_VAL(esp); /* 0x3610346B: pop ebx */
   6045     esp = ebp; /* 0x3610346C: mov esp, ebp */
   6046     ebp = POP32_VAL(esp); /* 0x3610346E: pop ebp */
   6047     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610346F: ret  */
   6048     RECOMP_REGS_OUT();
   6049 }
   6050 
   6051 void sub_36103480(void) {
   6052     int _fpu_cmp = 0;
   6053     uint32_t _cf = 0;
   6054     int _df = 1;
   6055     uint32_t _flag_k = FK_NONE;
   6056     uint32_t _flag_a = 0, _flag_b = 0;
   6057     uint32_t _itail_tgt = 0;
   6058     RECOMP_REGS_LOCALS
   6059     RECOMP_ENTER(0x36103480u);
   6060 
   6061 L_36103480:
   6062     PUSH32(esp, ebp); /* 0x36103480: push ebp */
   6063     ebp = esp; /* 0x36103481: mov ebp, esp */
   6064     PUSH32(esp, 0xFFFFFFFFu); /* 0x36103483: push -1 */
   6065     PUSH32(esp, 0x36169EC8u); /* 0x36103485: push 0x36169ec8 */
   6066     eax = MEM32(FS_BASE + (0)); /* 0x3610348A: mov eax, dword ptr fs:[0] */
   6067     PUSH32(esp, eax); /* 0x36103490: push eax */
   6068     MEM32(FS_BASE + (0)) = esp; /* 0x36103491: mov dword ptr fs:[0], esp */
   6069     PUSH32(esp, ecx); /* 0x36103498: push ecx */
   6070     eax = MEM32(ebp + 0x8); /* 0x36103499: mov eax, dword ptr [ebp + 8] */
   6071     PUSH32(esp, esi); /* 0x3610349C: push esi */
   6072     esi = ecx; /* 0x3610349D: mov esi, ecx */
   6073     PUSH32(esp, eax); /* 0x3610349F: push eax */
   6074     MEM32(ebp + (-0x10)) = esi; /* 0x361034A0: mov dword ptr [ebp - 0x10], esi */
   6075     RECOMP_ICALL(0x360FC270u); /* 0x361034A3: call 0x360fc270 */ /* not lifted */
   6076     RECOMP_FLAGS_IN();
   6077     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6078     eax = 0; /* 0x361034A8: xor eax, eax */
   6079     _cf = 0;
   6080     _flag_k = FK_TEST;
   6081     MEM32(esi + 0x2C) = eax; /* 0x361034AA: mov dword ptr [esi + 0x2c], eax */
   6082     MEM32(esi + 0x30) = eax; /* 0x361034AD: mov dword ptr [esi + 0x30], eax */
   6083     MEM32(esi + 0x34) = eax; /* 0x361034B0: mov dword ptr [esi + 0x34], eax */
   6084     ecx = esi; /* 0x361034B3: mov ecx, esi */
   6085     MEM32(ebp + (-0x4)) = eax; /* 0x361034B5: mov dword ptr [ebp - 4], eax */
   6086     MEM32(esi) = 0x361759ACu; /* 0x361034B8: mov dword ptr [esi], 0x361759ac */
   6087     RECOMP_ICALL(0x36103820u); /* 0x361034BE: call 0x36103820 */ /* not lifted */
   6088     RECOMP_FLAGS_IN();
   6089     ecx = MEM32(ebp + 0xC); /* 0x361034C3: mov ecx, dword ptr [ebp + 0xc] */
   6090     edx = MEM32(ecx); /* 0x361034C6: mov edx, dword ptr [ecx] */
   6091     MEM32(esi + 0x2C) = edx; /* 0x361034C8: mov dword ptr [esi + 0x2c], edx */
   6092     eax = MEM32(ecx + 0x4); /* 0x361034CB: mov eax, dword ptr [ecx + 4] */
   6093     MEM32(esi + 0x30) = eax; /* 0x361034CE: mov dword ptr [esi + 0x30], eax */
   6094     ecx = MEM32(ecx + 0x8); /* 0x361034D1: mov ecx, dword ptr [ecx + 8] */
   6095     MEM32(esi + 0x34) = ecx; /* 0x361034D4: mov dword ptr [esi + 0x34], ecx */
   6096     ecx = esi; /* 0x361034D7: mov ecx, esi */
   6097     RECOMP_ICALL(0x361038A0u); /* 0x361034D9: call 0x361038a0 */ /* not lifted */
   6098     RECOMP_FLAGS_IN();
   6099     ecx = MEM32(ebp + (-0xC)); /* 0x361034DE: mov ecx, dword ptr [ebp - 0xc] */
   6100     eax = esi; /* 0x361034E1: mov eax, esi */
   6101     esi = POP32_VAL(esp); /* 0x361034E3: pop esi */
   6102     MEM32(FS_BASE + (0)) = ecx; /* 0x361034E4: mov dword ptr fs:[0], ecx */
   6103     esp = ebp; /* 0x361034EB: mov esp, ebp */
   6104     ebp = POP32_VAL(esp); /* 0x361034ED: pop ebp */
   6105     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361034EE: ret 8 */
   6106     RECOMP_REGS_OUT();
   6107 }
   6108 
   6109 void sub_36103500(void) {
   6110     int _fpu_cmp = 0;
   6111     uint32_t _cf = 0;
   6112     int _df = 1;
   6113     uint32_t _flag_k = FK_NONE;
   6114     uint32_t _flag_a = 0, _flag_b = 0;
   6115     uint32_t _itail_tgt = 0;
   6116     RECOMP_REGS_LOCALS
   6117     RECOMP_ENTER(0x36103500u);
   6118 
   6119 L_36103500:
   6120     PUSH32(esp, ebp); /* 0x36103500: push ebp */
   6121     ebp = esp; /* 0x36103501: mov ebp, esp */
   6122     PUSH32(esp, esi); /* 0x36103503: push esi */
   6123     esi = ecx; /* 0x36103504: mov esi, ecx */
   6124     RECOMP_ICALL(0x36103610u); /* 0x36103506: call 0x36103610 */ /* not lifted */
   6125     RECOMP_FLAGS_IN();
   6126     /* test MEM8(ebp + 0x8), 1 */ /* 0x3610350B: test byte ptr [ebp + 8], 1 */
   6127     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6128     _cf = 0;
   6129     _flag_k = FK_NARROW(FK_TEST, 24);
   6130     if (TEST_Z(_flag_a, _flag_b)) goto L_3610351A; /* 0x3610350F: je 0x3610351a */
   6131 L_36103511:
   6132     PUSH32(esp, esi); /* 0x36103511: push esi */
   6133     RECOMP_ICALL(0x3615FCC4u); /* 0x36103512: call 0x3615fcc4 */ /* not lifted */
   6134     RECOMP_FLAGS_IN();
   6135     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6137     esp = esp + 4; /* 0x36103517: add esp, 4 */
   6138     _flag_k = FK_ADD;
   6139 L_3610351A:
   6140     eax = esi; /* 0x3610351A: mov eax, esi */
   6141     esi = POP32_VAL(esp); /* 0x3610351C: pop esi */
   6142     ebp = POP32_VAL(esp); /* 0x3610351D: pop ebp */
   6143     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610351E: ret 4 */
   6144     RECOMP_REGS_OUT();
   6145 }
   6146 
   6147 void sub_36103530(void) {
   6148     int _fpu_cmp = 0;
   6149     uint32_t _cf = 0;
   6150     int _df = 1;
   6151     uint32_t _flag_k = FK_NONE;
   6152     uint32_t _flag_a = 0, _flag_b = 0;
   6153     uint32_t _itail_tgt = 0;
   6154     RECOMP_REGS_LOCALS
   6155     RECOMP_ENTER(0x36103530u);
   6156 
   6157 L_36103530:
   6158     PUSH32(esp, ebp); /* 0x36103530: push ebp */
   6159     ebp = esp; /* 0x36103531: mov ebp, esp */
   6160     PUSH32(esp, 0xFFFFFFFFu); /* 0x36103533: push -1 */
   6161     PUSH32(esp, 0x36169EF3u); /* 0x36103535: push 0x36169ef3 */
   6162     eax = MEM32(FS_BASE + (0)); /* 0x3610353A: mov eax, dword ptr fs:[0] */
   6163     PUSH32(esp, eax); /* 0x36103540: push eax */
   6164     MEM32(FS_BASE + (0)) = esp; /* 0x36103541: mov dword ptr fs:[0], esp */
   6165     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6167     esp = esp - 0x10u; /* 0x36103548: sub esp, 0x10 */
   6168     _flag_k = FK_CMP;
   6169     eax = MEM32(ebp + 0x8); /* 0x3610354B: mov eax, dword ptr [ebp + 8] */
   6170     PUSH32(esp, ebx); /* 0x3610354E: push ebx */
   6171     PUSH32(esp, esi); /* 0x3610354F: push esi */
   6172     PUSH32(esp, edi); /* 0x36103550: push edi */
   6173     esi = ecx; /* 0x36103551: mov esi, ecx */
   6174     PUSH32(esp, eax); /* 0x36103553: push eax */
   6175     MEM32(ebp + (-0x10)) = esi; /* 0x36103554: mov dword ptr [ebp - 0x10], esi */
   6176     RECOMP_ICALL(0x360FC270u); /* 0x36103557: call 0x360fc270 */ /* not lifted */
   6177     RECOMP_FLAGS_IN();
   6178     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6179     edi = 0; /* 0x3610355C: xor edi, edi */
   6180     _cf = 0;
   6181     _flag_k = FK_TEST;
   6182     MEM32(esi + 0x2C) = edi; /* 0x3610355E: mov dword ptr [esi + 0x2c], edi */
   6183     MEM32(esi + 0x30) = edi; /* 0x36103561: mov dword ptr [esi + 0x30], edi */
   6184     MEM32(esi + 0x34) = edi; /* 0x36103564: mov dword ptr [esi + 0x34], edi */
   6185     ecx = esi; /* 0x36103567: mov ecx, esi */
   6186     MEM32(ebp + (-0x4)) = edi; /* 0x36103569: mov dword ptr [ebp - 4], edi */
   6187     MEM32(esi) = 0x361759ACu; /* 0x3610356C: mov dword ptr [esi], 0x361759ac */
   6188     RECOMP_ICALL(0x36103820u); /* 0x36103572: call 0x36103820 */ /* not lifted */
   6189     RECOMP_FLAGS_IN();
   6190     ecx = MEM32(esi + 0x24); /* 0x36103577: mov ecx, dword ptr [esi + 0x24] */
   6191     PUSH32(esp, ecx); /* 0x3610357A: push ecx */
   6192     RECOMP_ICALL(0x360F7B00u); /* 0x3610357B: call 0x360f7b00 */ /* not lifted */
   6193     RECOMP_FLAGS_IN();
   6194     ecx = eax; /* 0x36103580: mov ecx, eax */
   6195     RECOMP_ICALL(0x360FBFF0u); /* 0x36103582: call 0x360fbff0 */ /* not lifted */
   6196     RECOMP_FLAGS_IN();
   6197     ecx = eax; /* 0x36103587: mov ecx, eax */
   6198     RECOMP_ICALL(0x361371A0u); /* 0x36103589: call 0x361371a0 */ /* not lifted */
   6199     RECOMP_FLAGS_IN();
   6200     ebx = eax; /* 0x3610358E: mov ebx, eax */
   6201     /* cmp ebx, edi */ /* 0x36103590: cmp ebx, edi */
   6202     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   6203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6204     _flag_k = FK_CMP;
   6205     if (CMP_NE(_flag_a, _flag_b)) goto L_3610359A; /* 0x36103592: jne 0x3610359a */
   6206 L_36103594:
   6207     MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36103594: mov byte ptr [esi + 0x14], 1 */
   6208     goto L_361035F5; /* 0x36103598: jmp 0x361035f5 */
   6209 L_3610359A:
   6210     PUSH32(esp, 0x10Cu); /* 0x3610359A: push 0x10c */
   6211     RECOMP_ICALL(0x3615FD6Au); /* 0x3610359F: call 0x3615fd6a */ /* not lifted */
   6212     RECOMP_FLAGS_IN();
   6213     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6214     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6215     esp = esp + 4; /* 0x361035A4: add esp, 4 */
   6216     _flag_k = FK_ADD;
   6217     MEM32(ebp + 0x8) = eax; /* 0x361035A7: mov dword ptr [ebp + 8], eax */
   6218     /* cmp eax, edi */ /* 0x361035AA: cmp eax, edi */
   6219     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6221     _flag_k = FK_CMP;
   6222     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x361035AC: mov byte ptr [ebp - 4], 1 */
   6223     if (CMP_EQ(_flag_a, _flag_b)) goto L_361035BB; /* 0x361035B0: je 0x361035bb */
   6224 L_361035B2:
   6225     ecx = eax; /* 0x361035B2: mov ecx, eax */
   6226     RECOMP_ICALL(0x36132920u); /* 0x361035B4: call 0x36132920 */ /* not lifted */
   6227     RECOMP_FLAGS_IN();
   6228     edi = eax; /* 0x361035B9: mov edi, eax */
   6229 L_361035BB:
   6230     edx = MEM32(ebp + 0x10); /* 0x361035BB: mov edx, dword ptr [ebp + 0x10] */
   6231     eax = MEM32(ebp + 0xC); /* 0x361035BE: mov eax, dword ptr [ebp + 0xc] */
   6232     PUSH32(esp, edx); /* 0x361035C1: push edx */
   6233     PUSH32(esp, eax); /* 0x361035C2: push eax */
   6234     PUSH32(esp, 0); /* 0x361035C3: push 0 */
   6235     PUSH32(esp, ebx); /* 0x361035C5: push ebx */
   6236     PUSH32(esp, edi); /* 0x361035C6: push edi */
   6237     ecx = esi; /* 0x361035C7: mov ecx, esi */
   6238     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x361035C9: mov byte ptr [ebp - 4], 0 */
   6239     RECOMP_ICALL(0x360FC670u); /* 0x361035CD: call 0x360fc670 */ /* not lifted */
   6240     RECOMP_FLAGS_IN();
   6241     ecx = ebp + (-0x1C); /* 0x361035D2: lea ecx, [ebp - 0x1c] */
   6242     PUSH32(esp, ecx); /* 0x361035D5: push ecx */
   6243     ecx = edi; /* 0x361035D6: mov ecx, edi */
   6244     RECOMP_ICALL(0x36133FC0u); /* 0x361035D8: call 0x36133fc0 */ /* not lifted */
   6245     RECOMP_FLAGS_IN();
   6246     edx = MEM32(eax); /* 0x361035DD: mov edx, dword ptr [eax] */
   6247     MEM32(esi + 0x2C) = edx; /* 0x361035DF: mov dword ptr [esi + 0x2c], edx */
   6248     ecx = MEM32(eax + 0x4); /* 0x361035E2: mov ecx, dword ptr [eax + 4] */
   6249     MEM32(esi + 0x30) = ecx; /* 0x361035E5: mov dword ptr [esi + 0x30], ecx */
   6250     edx = MEM32(eax + 0x8); /* 0x361035E8: mov edx, dword ptr [eax + 8] */
   6251     ecx = esi; /* 0x361035EB: mov ecx, esi */
   6252     MEM32(esi + 0x34) = edx; /* 0x361035ED: mov dword ptr [esi + 0x34], edx */
   6253     RECOMP_ICALL(0x361038A0u); /* 0x361035F0: call 0x361038a0 */ /* not lifted */
   6254     RECOMP_FLAGS_IN();
   6255 L_361035F5:
   6256     ecx = MEM32(ebp + (-0xC)); /* 0x361035F5: mov ecx, dword ptr [ebp - 0xc] */
   6257     edi = POP32_VAL(esp); /* 0x361035F8: pop edi */
   6258     eax = esi; /* 0x361035F9: mov eax, esi */
   6259     esi = POP32_VAL(esp); /* 0x361035FB: pop esi */
   6260     ebx = POP32_VAL(esp); /* 0x361035FC: pop ebx */
   6261     MEM32(FS_BASE + (0)) = ecx; /* 0x361035FD: mov dword ptr fs:[0], ecx */
   6262     esp = ebp; /* 0x36103604: mov esp, ebp */
   6263     ebp = POP32_VAL(esp); /* 0x36103606: pop ebp */
   6264     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36103607: ret 0xc */
   6265     RECOMP_REGS_OUT();
   6266 }
   6267 
   6268 void sub_36103610(void) {
   6269     int _fpu_cmp = 0;
   6270     uint32_t _cf = 0;
   6271     int _df = 1;
   6272     uint32_t _flag_k = FK_NONE;
   6273     uint32_t _flag_a = 0, _flag_b = 0;
   6274     uint32_t _itail_tgt = 0;
   6275     RECOMP_REGS_LOCALS
   6276     RECOMP_ENTER(0x36103610u);
   6277 
   6278 L_36103610:
   6279     PUSH32(esp, ebp); /* 0x36103610: push ebp */
   6280     ebp = esp; /* 0x36103611: mov ebp, esp */
   6281     PUSH32(esp, 0xFFFFFFFFu); /* 0x36103613: push -1 */
   6282     PUSH32(esp, 0x36169F08u); /* 0x36103615: push 0x36169f08 */
   6283     eax = MEM32(FS_BASE + (0)); /* 0x3610361A: mov eax, dword ptr fs:[0] */
   6284     PUSH32(esp, eax); /* 0x36103620: push eax */
   6285     MEM32(FS_BASE + (0)) = esp; /* 0x36103621: mov dword ptr fs:[0], esp */
   6286     PUSH32(esp, ecx); /* 0x36103628: push ecx */
   6287     PUSH32(esp, esi); /* 0x36103629: push esi */
   6288     esi = ecx; /* 0x3610362A: mov esi, ecx */
   6289     MEM32(ebp + (-0x10)) = esi; /* 0x3610362C: mov dword ptr [ebp - 0x10], esi */
   6290     MEM32(esi) = 0x361759ACu; /* 0x3610362F: mov dword ptr [esi], 0x361759ac */
   6291     MEM32(ebp + (-0x4)) = 0; /* 0x36103635: mov dword ptr [ebp - 4], 0 */
   6292     RECOMP_ICALL(0x360F7B70u); /* 0x3610363C: call 0x360f7b70 */ /* not lifted */
   6293     RECOMP_FLAGS_IN();
   6294     /* test eax, eax */ /* 0x36103641: test eax, eax */
   6295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6296     _cf = 0;
   6297     _flag_k = FK_TEST;
   6298     if (TEST_Z(_flag_a, _flag_b)) goto L_36103654; /* 0x36103643: je 0x36103654 */
   6299 L_36103645:
   6300     edx = MEM32(esi + 0x20); /* 0x36103645: mov edx, dword ptr [esi + 0x20] */
   6301     /* test edx, edx */ /* 0x36103648: test edx, edx */
   6302     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6303     _cf = 0;
   6304     _flag_k = FK_TEST;
   6305     if (TEST_Z(_flag_a, _flag_b)) goto L_36103654; /* 0x3610364A: je 0x36103654 */
   6306 L_3610364C:
   6307     PUSH32(esp, edx); /* 0x3610364C: push edx */
   6308     ecx = eax; /* 0x3610364D: mov ecx, eax */
   6309     RECOMP_ICALL(0x360FB530u); /* 0x3610364F: call 0x360fb530 */ /* not lifted */
   6310     RECOMP_FLAGS_IN();
   6311 L_36103654:
   6312     ecx = esi; /* 0x36103654: mov ecx, esi */
   6313     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36103656: mov dword ptr [ebp - 4], 0xffffffff */
   6314     RECOMP_ICALL(0x360FC2F0u); /* 0x3610365D: call 0x360fc2f0 */ /* not lifted */
   6315     RECOMP_FLAGS_IN();
   6316     ecx = MEM32(ebp + (-0xC)); /* 0x36103662: mov ecx, dword ptr [ebp - 0xc] */
   6317     esi = POP32_VAL(esp); /* 0x36103665: pop esi */
   6318     MEM32(FS_BASE + (0)) = ecx; /* 0x36103666: mov dword ptr fs:[0], ecx */
   6319     esp = ebp; /* 0x3610366D: mov esp, ebp */
   6320     ebp = POP32_VAL(esp); /* 0x3610366F: pop ebp */
   6321     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36103670: ret  */
   6322     RECOMP_REGS_OUT();
   6323 }
   6324 
   6325 void sub_36103680(void) {
   6326     int _fpu_cmp = 0;
   6327     uint32_t _cf = 0;
   6328     int _df = 1;
   6329     uint32_t _flag_k = FK_NONE;
   6330     uint32_t _flag_a = 0, _flag_b = 0;
   6331     uint32_t _itail_tgt = 0;
   6332     RECOMP_REGS_LOCALS
   6333     RECOMP_ENTER(0x36103680u);
   6334 
   6335 L_36103680:
   6336     PUSH32(esp, esi); /* 0x36103680: push esi */
   6337     esi = ecx; /* 0x36103681: mov esi, ecx */
   6338     RECOMP_ICALL(0x360FC300u); /* 0x36103683: call 0x360fc300 */ /* not lifted */
   6339     RECOMP_FLAGS_IN();
   6340     fp_push(*(float*)&MEM32(esi + 0x28)); /* 0x36103688: fld dword ptr [esi + 0x28] */
   6341     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610368B: fcomp dword ptr [0x3617040c] */
   6342     fp_pop();
   6343     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103691: fnstsw ax */
   6344     /* test HI8(eax), 0x41u */ /* 0x36103693: test ah, 0x41 */
   6345     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6346     _cf = 0;
   6347     _flag_k = FK_NARROW(FK_TEST, 24);
   6348     if (TEST_NZ(_flag_a, _flag_b)) goto L_361036CB; /* 0x36103696: jne 0x361036cb */
   6349 L_36103698:
   6350     fp_push(*(float*)&MEM32(esi + 0x28)); /* 0x36103698: fld dword ptr [esi + 0x28] */
   6351     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3610369B: fsub dword ptr [esi + 8] */
   6352     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x28) = _v; } /* 0x3610369E: fst dword ptr [esi + 0x28] */
   6353     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361036A1: fcomp dword ptr [0x3617040c] */
   6354     fp_pop();
   6355     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361036A7: fnstsw ax */
   6356     /* test HI8(eax), 1 */ /* 0x361036A9: test ah, 1 */
   6357     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6358     _cf = 0;
   6359     _flag_k = FK_NARROW(FK_TEST, 24);
   6360     if (TEST_Z(_flag_a, _flag_b)) goto L_361036E7; /* 0x361036AC: je 0x361036e7 */
   6361 L_361036AE:
   6362     eax = MEM32(esi + 0x24); /* 0x361036AE: mov eax, dword ptr [esi + 0x24] */
   6363     /* test eax, eax */ /* 0x361036B1: test eax, eax */
   6364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6365     _cf = 0;
   6366     _flag_k = FK_TEST;
   6367     if (TEST_Z(_flag_a, _flag_b)) goto L_361036E7; /* 0x361036B3: je 0x361036e7 */
   6368 L_361036B5:
   6369     ecx = esi + 0x2C; /* 0x361036B5: lea ecx, [esi + 0x2c] */
   6370     PUSH32(esp, ecx); /* 0x361036B8: push ecx */
   6371     PUSH32(esp, eax); /* 0x361036B9: push eax */
   6372     RECOMP_ICALL(0x360F7B00u); /* 0x361036BA: call 0x360f7b00 */ /* not lifted */
   6373     RECOMP_FLAGS_IN();
   6374     ecx = eax; /* 0x361036BF: mov ecx, eax */
   6375     RECOMP_ICALL(0x360F80C0u); /* 0x361036C1: call 0x360f80c0 */ /* not lifted */
   6376     RECOMP_FLAGS_IN();
   6377     MEM32(esi + 0x20) = eax; /* 0x361036C6: mov dword ptr [esi + 0x20], eax */
   6378     esi = POP32_VAL(esp); /* 0x361036C9: pop esi */
   6379     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361036CA: ret  */
   6380 L_361036CB:
   6381     eax = MEM32(esi + 0x20); /* 0x361036CB: mov eax, dword ptr [esi + 0x20] */
   6382     /* test eax, eax */ /* 0x361036CE: test eax, eax */
   6383     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6384     _cf = 0;
   6385     _flag_k = FK_TEST;
   6386     if (TEST_Z(_flag_a, _flag_b)) goto L_361036E3; /* 0x361036D0: je 0x361036e3 */
   6387 L_361036D2:
   6388     PUSH32(esp, eax); /* 0x361036D2: push eax */
   6389     RECOMP_ICALL(0x360F7B00u); /* 0x361036D3: call 0x360f7b00 */ /* not lifted */
   6390     RECOMP_FLAGS_IN();
   6391     ecx = eax; /* 0x361036D8: mov ecx, eax */
   6392     RECOMP_ICALL(0x360FB4E0u); /* 0x361036DA: call 0x360fb4e0 */ /* not lifted */
   6393     RECOMP_FLAGS_IN();
   6394     /* test LO8(eax), LO8(eax) */ /* 0x361036DF: test al, al */
   6395     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6396     _cf = 0;
   6397     _flag_k = FK_NARROW(FK_TEST, 24);
   6398     if (TEST_NZ(_flag_a, _flag_b)) goto L_361036E7; /* 0x361036E1: jne 0x361036e7 */
   6399 L_361036E3:
   6400     MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361036E3: mov byte ptr [esi + 0x14], 1 */
   6401 L_361036E7:
   6402     esi = POP32_VAL(esp); /* 0x361036E7: pop esi */
   6403     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361036E8: ret  */
   6404     RECOMP_REGS_OUT();
   6405 }
   6406 
   6407 void sub_361036F0(void) {
   6408     int _fpu_cmp = 0;
   6409     uint32_t _cf = 0;
   6410     int _df = 1;
   6411     uint32_t _flag_k = FK_NONE;
   6412     uint32_t _flag_a = 0, _flag_b = 0;
   6413     uint32_t _itail_tgt = 0;
   6414     RECOMP_REGS_LOCALS
   6415     RECOMP_ENTER(0x361036F0u);
   6416 
   6417 L_361036F0:
   6418     PUSH32(esp, ebp); /* 0x361036F0: push ebp */
   6419     ebp = esp; /* 0x361036F1: mov ebp, esp */
   6420     eax = MEM32(ecx + 0x20); /* 0x361036F3: mov eax, dword ptr [ecx + 0x20] */
   6421     /* test eax, eax */ /* 0x361036F6: test eax, eax */
   6422     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6423     _cf = 0;
   6424     _flag_k = FK_TEST;
   6425     if (TEST_Z(_flag_a, _flag_b)) goto L_3610370B; /* 0x361036F8: je 0x3610370b */
   6426 L_361036FA:
   6427     ecx = MEM32(ebp + 0x8); /* 0x361036FA: mov ecx, dword ptr [ebp + 8] */
   6428     PUSH32(esp, ecx); /* 0x361036FD: push ecx */
   6429     PUSH32(esp, eax); /* 0x361036FE: push eax */
   6430     RECOMP_ICALL(0x360F7B00u); /* 0x361036FF: call 0x360f7b00 */ /* not lifted */
   6431     RECOMP_FLAGS_IN();
   6432     ecx = eax; /* 0x36103704: mov ecx, eax */
   6433     RECOMP_ICALL(0x360FB420u); /* 0x36103706: call 0x360fb420 */ /* not lifted */
   6434     RECOMP_FLAGS_IN();
   6435 L_3610370B:
   6436     SET_LO8(eax, 1); /* 0x3610370B: mov al, 1 */
   6437     ebp = POP32_VAL(esp); /* 0x3610370D: pop ebp */
   6438     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610370E: ret 4 */
   6439     RECOMP_REGS_OUT();
   6440 }
   6441 
   6442 void sub_36103720(void) {
   6443     int _fpu_cmp = 0;
   6444     uint32_t _cf = 0;
   6445     int _df = 1;
   6446     uint32_t _flag_k = FK_NONE;
   6447     uint32_t _flag_a = 0, _flag_b = 0;
   6448     uint32_t _itail_tgt = 0;
   6449     RECOMP_REGS_LOCALS
   6450     RECOMP_ENTER(0x36103720u);
   6451 
   6452 L_36103720:
   6453     PUSH32(esp, ebp); /* 0x36103720: push ebp */
   6454     ebp = esp; /* 0x36103721: mov ebp, esp */
   6455     eax = MEM32(ecx + 0x20); /* 0x36103723: mov eax, dword ptr [ecx + 0x20] */
   6456     /* test eax, eax */ /* 0x36103726: test eax, eax */
   6457     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6458     _cf = 0;
   6459     _flag_k = FK_TEST;
   6460     if (TEST_Z(_flag_a, _flag_b)) goto L_3610373B; /* 0x36103728: je 0x3610373b */
   6461 L_3610372A:
   6462     ecx = MEM32(ebp + 0x8); /* 0x3610372A: mov ecx, dword ptr [ebp + 8] */
   6463     PUSH32(esp, ecx); /* 0x3610372D: push ecx */
   6464     PUSH32(esp, eax); /* 0x3610372E: push eax */
   6465     RECOMP_ICALL(0x360F7B00u); /* 0x3610372F: call 0x360f7b00 */ /* not lifted */
   6466     RECOMP_FLAGS_IN();
   6467     ecx = eax; /* 0x36103734: mov ecx, eax */
   6468     RECOMP_ICALL(0x360FB480u); /* 0x36103736: call 0x360fb480 */ /* not lifted */
   6469     RECOMP_FLAGS_IN();
   6470 L_3610373B:
   6471     SET_LO8(eax, 1); /* 0x3610373B: mov al, 1 */
   6472     ebp = POP32_VAL(esp); /* 0x3610373D: pop ebp */
   6473     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610373E: ret 4 */
   6474     RECOMP_REGS_OUT();
   6475 }
   6476 
   6477 void sub_36103750(void) {
   6478     int _fpu_cmp = 0;
   6479     uint32_t _cf = 0;
   6480     int _df = 1;
   6481     uint32_t _flag_k = FK_NONE;
   6482     uint32_t _flag_a = 0, _flag_b = 0;
   6483     uint32_t _itail_tgt = 0;
   6484     RECOMP_REGS_LOCALS
   6485     RECOMP_ENTER(0x36103750u);
   6486 
   6487 L_36103750:
   6488     PUSH32(esp, esi); /* 0x36103750: push esi */
   6489     esi = ecx; /* 0x36103751: mov esi, ecx */
   6490     eax = MEM32(esi + 0x20); /* 0x36103753: mov eax, dword ptr [esi + 0x20] */
   6491     /* test eax, eax */ /* 0x36103756: test eax, eax */
   6492     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6493     _cf = 0;
   6494     _flag_k = FK_TEST;
   6495     if (TEST_Z(_flag_a, _flag_b)) goto L_36103767; /* 0x36103758: je 0x36103767 */
   6496 L_3610375A:
   6497     PUSH32(esp, eax); /* 0x3610375A: push eax */
   6498     RECOMP_ICALL(0x360F7B00u); /* 0x3610375B: call 0x360f7b00 */ /* not lifted */
   6499     RECOMP_FLAGS_IN();
   6500     ecx = eax; /* 0x36103760: mov ecx, eax */
   6501     RECOMP_ICALL(0x360FB5A0u); /* 0x36103762: call 0x360fb5a0 */ /* not lifted */
   6502     RECOMP_FLAGS_IN();
   6503 L_36103767:
   6504     MEM8(esi + 0x38) = (uint8_t)(1); /* 0x36103767: mov byte ptr [esi + 0x38], 1 */
   6505     esi = POP32_VAL(esp); /* 0x3610376B: pop esi */
   6506     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610376C: ret  */
   6507     RECOMP_REGS_OUT();
   6508 }
   6509 
   6510 void sub_36103770(void) {
   6511     int _fpu_cmp = 0;
   6512     uint32_t _cf = 0;
   6513     int _df = 1;
   6514     uint32_t _flag_k = FK_NONE;
   6515     uint32_t _flag_a = 0, _flag_b = 0;
   6516     uint32_t _itail_tgt = 0;
   6517     RECOMP_REGS_LOCALS
   6518     RECOMP_ENTER(0x36103770u);
   6519 
   6520 L_36103770:
   6521     PUSH32(esp, ebp); /* 0x36103770: push ebp */
   6522     ebp = esp; /* 0x36103771: mov ebp, esp */
   6523     PUSH32(esp, esi); /* 0x36103773: push esi */
   6524     esi = ecx; /* 0x36103774: mov esi, ecx */
   6525     eax = MEM32(esi + 0x20); /* 0x36103776: mov eax, dword ptr [esi + 0x20] */
   6526     /* test eax, eax */ /* 0x36103779: test eax, eax */
   6527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6528     _cf = 0;
   6529     _flag_k = FK_TEST;
   6530     if (TEST_Z(_flag_a, _flag_b)) goto L_3610378E; /* 0x3610377B: je 0x3610378e */
   6531 L_3610377D:
   6532     ecx = MEM32(ebp + 0x8); /* 0x3610377D: mov ecx, dword ptr [ebp + 8] */
   6533     PUSH32(esp, ecx); /* 0x36103780: push ecx */
   6534     PUSH32(esp, eax); /* 0x36103781: push eax */
   6535     RECOMP_ICALL(0x360F7B00u); /* 0x36103782: call 0x360f7b00 */ /* not lifted */
   6536     RECOMP_FLAGS_IN();
   6537     ecx = eax; /* 0x36103787: mov ecx, eax */
   6538     RECOMP_ICALL(0x360FB600u); /* 0x36103789: call 0x360fb600 */ /* not lifted */
   6539     RECOMP_FLAGS_IN();
   6540 L_3610378E:
   6541     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3610378E: fld dword ptr [ebp + 8] */
   6542     _st[0] += (double)*(float*)ADDR(0x36170E88); /* 0x36103791: fadd dword ptr [0x36170e88] */
   6543     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36103797: fstp dword ptr [esi + 0x10] */
   6544     esi = POP32_VAL(esp); /* 0x3610379A: pop esi */
   6545     ebp = POP32_VAL(esp); /* 0x3610379B: pop ebp */
   6546     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610379C: ret 4 */
   6547     RECOMP_REGS_OUT();
   6548 }
   6549 
   6550 void sub_361037A0(void) {
   6551     int _fpu_cmp = 0;
   6552     uint32_t _cf = 0;
   6553     int _df = 1;
   6554     uint32_t _flag_k = FK_NONE;
   6555     uint32_t _flag_a = 0, _flag_b = 0;
   6556     uint32_t _itail_tgt = 0;
   6557     RECOMP_REGS_LOCALS
   6558     RECOMP_ENTER(0x361037A0u);
   6559 
   6560 L_361037A0:
   6561     PUSH32(esp, ebp); /* 0x361037A0: push ebp */
   6562     ebp = esp; /* 0x361037A1: mov ebp, esp */
   6563     eax = MEM32(ecx + 0x20); /* 0x361037A3: mov eax, dword ptr [ecx + 0x20] */
   6564     /* test eax, eax */ /* 0x361037A6: test eax, eax */
   6565     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6566     _cf = 0;
   6567     _flag_k = FK_TEST;
   6568     if (TEST_Z(_flag_a, _flag_b)) goto L_361037C7; /* 0x361037A8: je 0x361037c7 */
   6569 L_361037AA:
   6570     ecx = MEM32(ebp + 0x10); /* 0x361037AA: mov ecx, dword ptr [ebp + 0x10] */
   6571     edx = MEM32(ebp + 0x14); /* 0x361037AD: mov edx, dword ptr [ebp + 0x14] */
   6572     PUSH32(esp, ecx); /* 0x361037B0: push ecx */
   6573     ecx = MEM32(ebp + 0xC); /* 0x361037B1: mov ecx, dword ptr [ebp + 0xc] */
   6574     PUSH32(esp, edx); /* 0x361037B4: push edx */
   6575     edx = MEM32(ebp + 0x8); /* 0x361037B5: mov edx, dword ptr [ebp + 8] */
   6576     PUSH32(esp, ecx); /* 0x361037B8: push ecx */
   6577     PUSH32(esp, edx); /* 0x361037B9: push edx */
   6578     PUSH32(esp, eax); /* 0x361037BA: push eax */
   6579     RECOMP_ICALL(0x360F7B00u); /* 0x361037BB: call 0x360f7b00 */ /* not lifted */
   6580     RECOMP_FLAGS_IN();
   6581     ecx = eax; /* 0x361037C0: mov ecx, eax */
   6582     RECOMP_ICALL(0x360FB720u); /* 0x361037C2: call 0x360fb720 */ /* not lifted */
   6583     RECOMP_FLAGS_IN();
   6584 L_361037C7:
   6585     ebp = POP32_VAL(esp); /* 0x361037C7: pop ebp */
   6586     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x361037C8: ret 0x10 */
   6587     RECOMP_REGS_OUT();
   6588 }
   6589 
   6590 void sub_361037D0(void) {
   6591     int _fpu_cmp = 0;
   6592     uint32_t _cf = 0;
   6593     int _df = 1;
   6594     uint32_t _flag_k = FK_NONE;
   6595     uint32_t _flag_a = 0, _flag_b = 0;
   6596     uint32_t _itail_tgt = 0;
   6597     RECOMP_REGS_LOCALS
   6598     RECOMP_ENTER(0x361037D0u);
   6599 
   6600 L_361037D0:
   6601     PUSH32(esp, ebp); /* 0x361037D0: push ebp */
   6602     ebp = esp; /* 0x361037D1: mov ebp, esp */
   6603     eax = MEM32(ecx + 0x20); /* 0x361037D3: mov eax, dword ptr [ecx + 0x20] */
   6604     /* test eax, eax */ /* 0x361037D6: test eax, eax */
   6605     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6606     _cf = 0;
   6607     _flag_k = FK_TEST;
   6608     if (TEST_Z(_flag_a, _flag_b)) goto L_361037F7; /* 0x361037D8: je 0x361037f7 */
   6609 L_361037DA:
   6610     ecx = MEM32(ebp + 0x10); /* 0x361037DA: mov ecx, dword ptr [ebp + 0x10] */
   6611     edx = MEM32(ebp + 0x14); /* 0x361037DD: mov edx, dword ptr [ebp + 0x14] */
   6612     PUSH32(esp, ecx); /* 0x361037E0: push ecx */
   6613     ecx = MEM32(ebp + 0xC); /* 0x361037E1: mov ecx, dword ptr [ebp + 0xc] */
   6614     PUSH32(esp, edx); /* 0x361037E4: push edx */
   6615     edx = MEM32(ebp + 0x8); /* 0x361037E5: mov edx, dword ptr [ebp + 8] */
   6616     PUSH32(esp, ecx); /* 0x361037E8: push ecx */
   6617     PUSH32(esp, edx); /* 0x361037E9: push edx */
   6618     PUSH32(esp, eax); /* 0x361037EA: push eax */
   6619     RECOMP_ICALL(0x360F7B00u); /* 0x361037EB: call 0x360f7b00 */ /* not lifted */
   6620     RECOMP_FLAGS_IN();
   6621     ecx = eax; /* 0x361037F0: mov ecx, eax */
   6622     RECOMP_ICALL(0x360FB790u); /* 0x361037F2: call 0x360fb790 */ /* not lifted */
   6623     RECOMP_FLAGS_IN();
   6624 L_361037F7:
   6625     ebp = POP32_VAL(esp); /* 0x361037F7: pop ebp */
   6626     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x361037F8: ret 0x10 */
   6627     RECOMP_REGS_OUT();
   6628 }
   6629 
   6630 void sub_36103800(void) {
   6631     int _fpu_cmp = 0;
   6632     uint32_t _cf = 0;
   6633     int _df = 1;
   6634     uint32_t _flag_k = FK_NONE;
   6635     uint32_t _flag_a = 0, _flag_b = 0;
   6636     uint32_t _itail_tgt = 0;
   6637     RECOMP_REGS_LOCALS
   6638     RECOMP_ENTER(0x36103800u);
   6639 
   6640 L_36103800:
   6641     PUSH32(esp, ebp); /* 0x36103800: push ebp */
   6642     ebp = esp; /* 0x36103801: mov ebp, esp */
   6643     eax = MEM32(ecx + 0x20); /* 0x36103803: mov eax, dword ptr [ecx + 0x20] */
   6644     /* test eax, eax */ /* 0x36103806: test eax, eax */
   6645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6646     _cf = 0;
   6647     _flag_k = FK_TEST;
   6648     if (TEST_Z(_flag_a, _flag_b)) goto L_3610381B; /* 0x36103808: je 0x3610381b */
   6649 L_3610380A:
   6650     ecx = MEM32(ebp + 0x8); /* 0x3610380A: mov ecx, dword ptr [ebp + 8] */
   6651     PUSH32(esp, ecx); /* 0x3610380D: push ecx */
   6652     PUSH32(esp, eax); /* 0x3610380E: push eax */
   6653     RECOMP_ICALL(0x360F7B00u); /* 0x3610380F: call 0x360f7b00 */ /* not lifted */
   6654     RECOMP_FLAGS_IN();
   6655     ecx = eax; /* 0x36103814: mov ecx, eax */
   6656     RECOMP_ICALL(0x360FB800u); /* 0x36103816: call 0x360fb800 */ /* not lifted */
   6657     RECOMP_FLAGS_IN();
   6658 L_3610381B:
   6659     ebp = POP32_VAL(esp); /* 0x3610381B: pop ebp */
   6660     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610381C: ret 4 */
   6661     RECOMP_REGS_OUT();
   6662 }
   6663 
   6664 void sub_36103820(void) {
   6665     int _fpu_cmp = 0;
   6666     uint32_t _cf = 0;
   6667     int _df = 1;
   6668     uint32_t _flag_k = FK_NONE;
   6669     uint32_t _flag_a = 0, _flag_b = 0;
   6670     uint32_t _itail_tgt = 0;
   6671     RECOMP_REGS_LOCALS
   6672     RECOMP_ENTER(0x36103820u);
   6673 
   6674 L_36103820:
   6675     PUSH32(esp, ebp); /* 0x36103820: push ebp */
   6676     ebp = esp; /* 0x36103821: mov ebp, esp */
   6677     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6679     esp = esp - 0xCu; /* 0x36103823: sub esp, 0xc */
   6680     _flag_k = FK_CMP;
   6681     PUSH32(esp, esi); /* 0x36103826: push esi */
   6682     esi = ecx; /* 0x36103827: mov esi, ecx */
   6683     eax = MEM32(esi + 0x4); /* 0x36103829: mov eax, dword ptr [esi + 4] */
   6684     PUSH32(esp, edi); /* 0x3610382C: push edi */
   6685     PUSH32(esp, eax); /* 0x3610382D: push eax */
   6686     RECOMP_ICALL(0x360F7B00u); /* 0x3610382E: call 0x360f7b00 */ /* not lifted */
   6687     RECOMP_FLAGS_IN();
   6688     ecx = eax; /* 0x36103833: mov ecx, eax */
   6689     RECOMP_ICALL(0x360FBFF0u); /* 0x36103835: call 0x360fbff0 */ /* not lifted */
   6690     RECOMP_FLAGS_IN();
   6691     ecx = eax; /* 0x3610383A: mov ecx, eax */
   6692     RECOMP_ICALL(0x361371A0u); /* 0x3610383C: call 0x361371a0 */ /* not lifted */
   6693     RECOMP_FLAGS_IN();
   6694     edi = eax; /* 0x36103841: mov edi, eax */
   6695     PUSH32(esp, 0); /* 0x36103843: push 0 */
   6696     ecx = edi; /* 0x36103845: mov ecx, edi */
   6697     MEM32(esi + 0x20) = 0; /* 0x36103847: mov dword ptr [esi + 0x20], 0 */
   6698     RECOMP_ICALL(0x36137010u); /* 0x3610384E: call 0x36137010 */ /* not lifted */
   6699     RECOMP_FLAGS_IN();
   6700     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36103853: fstp dword ptr [ebp - 4] */
   6701     PUSH32(esp, 1); /* 0x36103856: push 1 */
   6702     ecx = edi; /* 0x36103858: mov ecx, edi */
   6703     RECOMP_ICALL(0x36137010u); /* 0x3610385A: call 0x36137010 */ /* not lifted */
   6704     RECOMP_FLAGS_IN();
   6705     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3610385F: fstp dword ptr [ebp - 0xc] */
   6706     PUSH32(esp, 2); /* 0x36103862: push 2 */
   6707     ecx = edi; /* 0x36103864: mov ecx, edi */
   6708     RECOMP_ICALL(0x36136FE0u); /* 0x36103866: call 0x36136fe0 */ /* not lifted */
   6709     RECOMP_FLAGS_IN();
   6710     MEM32(esi + 0x24) = eax; /* 0x3610386B: mov dword ptr [esi + 0x24], eax */
   6711     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x3610386E: call dword ptr [0x3616f254] */
   6712     RECOMP_FLAGS_IN();
   6713     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
   6714     eax = eax & 0x7FFFu; /* 0x36103874: and eax, 0x7fff */
   6715     _cf = 0;
   6716     _flag_k = FK_TEST;
   6717     MEM32(ebp + (-0x8)) = eax; /* 0x36103879: mov dword ptr [ebp - 8], eax */
   6718     fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x3610387C: fild dword ptr [ebp - 8] */
   6719     edi = POP32_VAL(esp); /* 0x3610387F: pop edi */
   6720     _st[0] *= (double)*(float*)ADDR(0x36170B94); /* 0x36103880: fmul dword ptr [0x36170b94] */
   6721     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36103886: fld dword ptr [ebp - 0xc] */
   6722     _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36103889: fsub dword ptr [ebp - 4] */
   6723     { double _v = fp_pop(); _st[0] *= _v; } /* 0x3610388C: fmulp st(1) */
   6724     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610388E: fadd dword ptr [ebp - 4] */
   6725     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x28) = _v; } /* 0x36103891: fstp dword ptr [esi + 0x28] */
   6726     esi = POP32_VAL(esp); /* 0x36103894: pop esi */
   6727     esp = ebp; /* 0x36103895: mov esp, ebp */
   6728     ebp = POP32_VAL(esp); /* 0x36103897: pop ebp */
   6729     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36103898: ret  */
   6730     RECOMP_REGS_OUT();
   6731 }
   6732 
   6733 void sub_361038A0(void) {
   6734     int _fpu_cmp = 0;
   6735     uint32_t _cf = 0;
   6736     int _df = 1;
   6737     uint32_t _flag_k = FK_NONE;
   6738     uint32_t _flag_a = 0, _flag_b = 0;
   6739     uint32_t _itail_tgt = 0;
   6740     RECOMP_REGS_LOCALS
   6741     RECOMP_ENTER(0x361038A0u);
   6742 
   6743 L_361038A0:
   6744     MEM8(ecx + 0x38) = (uint8_t)(0); /* 0x361038A0: mov byte ptr [ecx + 0x38], 0 */
   6745     MEM32(ecx + 0x10) = 0x42B40000u; /* 0x361038A4: mov dword ptr [ecx + 0x10], 0x42b40000 */
   6746     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361038AB: ret  */
   6747     RECOMP_REGS_OUT();
   6748 }
   6749 
   6750 void sub_361038B0(void) {
   6751     int _fpu_cmp = 0;
   6752     uint32_t _cf = 0;
   6753     int _df = 1;
   6754     uint32_t _flag_k = FK_NONE;
   6755     uint32_t _flag_a = 0, _flag_b = 0;
   6756     uint32_t _itail_tgt = 0;
   6757     RECOMP_REGS_LOCALS
   6758     RECOMP_ENTER(0x361038B0u);
   6759 
   6760 L_361038B0:
   6761     PUSH32(esp, ebp); /* 0x361038B0: push ebp */
   6762     ebp = esp; /* 0x361038B1: mov ebp, esp */
   6763     PUSH32(esp, 0xFFFFFFFFu); /* 0x361038B3: push -1 */
   6764     PUSH32(esp, 0x36169F41u); /* 0x361038B5: push 0x36169f41 */
   6765     eax = MEM32(FS_BASE + (0)); /* 0x361038BA: mov eax, dword ptr fs:[0] */
   6766     PUSH32(esp, eax); /* 0x361038C0: push eax */
   6767     MEM32(FS_BASE + (0)) = esp; /* 0x361038C1: mov dword ptr fs:[0], esp */
   6768     PUSH32(esp, ecx); /* 0x361038C8: push ecx */
   6769     eax = MEM32(ebp + 0x8); /* 0x361038C9: mov eax, dword ptr [ebp + 8] */
   6770     PUSH32(esp, ebx); /* 0x361038CC: push ebx */
   6771     PUSH32(esp, esi); /* 0x361038CD: push esi */
   6772     PUSH32(esp, edi); /* 0x361038CE: push edi */
   6773     esi = ecx; /* 0x361038CF: mov esi, ecx */
   6774     PUSH32(esp, eax); /* 0x361038D1: push eax */
   6775     MEM32(ebp + (-0x10)) = esi; /* 0x361038D2: mov dword ptr [ebp - 0x10], esi */
   6776     RECOMP_ICALL(0x360FC270u); /* 0x361038D5: call 0x360fc270 */ /* not lifted */
   6777     RECOMP_FLAGS_IN();
   6778     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6779     eax = 0; /* 0x361038DA: xor eax, eax */
   6780     _cf = 0;
   6781     _flag_k = FK_TEST;
   6782     MEM32(ebp + (-0x4)) = eax; /* 0x361038DC: mov dword ptr [ebp - 4], eax */
   6783     MEM32(esi + 0x20) = eax; /* 0x361038DF: mov dword ptr [esi + 0x20], eax */
   6784     MEM32(esi + 0x28) = eax; /* 0x361038E2: mov dword ptr [esi + 0x28], eax */
   6785     edi = esi + 0x30; /* 0x361038E5: lea edi, [esi + 0x30] */
   6786     ebx = 8; /* 0x361038E8: mov ebx, 8 */
   6787 L_361038ED:
   6788     ecx = edi; /* 0x361038ED: mov ecx, edi */
   6789     RECOMP_ICALL(MEM32(0x36170174)); /* 0x361038EF: call dword ptr [0x36170174] */
   6790     RECOMP_FLAGS_IN();
   6791     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   6792     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6793     edi = edi + 0xCu; /* 0x361038F5: add edi, 0xc */
   6794     _flag_k = FK_ADD;
   6795     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   6796     ebx = ebx - 1; /* 0x361038F8: dec ebx */
   6797     _flag_k = FK_DEC;
   6798     RECOMP_BACKEDGE();
   6799     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361038ED; /* 0x361038F9: jne 0x361038ed */
   6800 L_361038FB:
   6801     ecx = esi + 0x12C; /* 0x361038FB: lea ecx, [esi + 0x12c] */
   6802     RECOMP_ICALL(0x36137CC0u); /* 0x36103901: call 0x36137cc0 */ /* not lifted */
   6803     RECOMP_FLAGS_IN();
   6804     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6805     ebx = 0; /* 0x36103906: xor ebx, ebx */
   6806     _cf = 0;
   6807     _flag_k = FK_TEST;
   6808     PUSH32(esp, 0x100u); /* 0x36103908: push 0x100 */
   6809     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610390D: mov byte ptr [ebp - 4], 1 */
   6810     MEM32(esi + 0x170) = ebx; /* 0x36103911: mov dword ptr [esi + 0x170], ebx */
   6811     MEM32(esi) = 0x361759F4u; /* 0x36103917: mov dword ptr [esi], 0x361759f4 */
   6812     RECOMP_ICALL(0x3615FD6Au); /* 0x3610391D: call 0x3615fd6a */ /* not lifted */
   6813     RECOMP_FLAGS_IN();
   6814     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6816     esp = esp + 4; /* 0x36103922: add esp, 4 */
   6817     _flag_k = FK_ADD;
   6818     /* cmp eax, ebx */ /* 0x36103925: cmp eax, ebx */
   6819     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6821     _flag_k = FK_CMP;
   6822     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103941; /* 0x36103927: je 0x36103941 */
   6823 L_36103929:
   6824     ecx = eax + 0x8; /* 0x36103929: lea ecx, [eax + 8] */
   6825     edx = 8; /* 0x3610392C: mov edx, 8 */
   6826 L_36103931:
   6827     MEM32(ecx + (-0x8)) = ebx; /* 0x36103931: mov dword ptr [ecx - 8], ebx */
   6828     MEM32(ecx + (-0x4)) = ebx; /* 0x36103934: mov dword ptr [ecx - 4], ebx */
   6829     MEM32(ecx) = ebx; /* 0x36103937: mov dword ptr [ecx], ebx */
   6830     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   6831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6832     ecx = ecx + 0x20u; /* 0x36103939: add ecx, 0x20 */
   6833     _flag_k = FK_ADD;
   6834     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6835     edx = edx - 1; /* 0x3610393C: dec edx */
   6836     _flag_k = FK_DEC;
   6837     RECOMP_BACKEDGE();
   6838     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36103931; /* 0x3610393D: jne 0x36103931 */
   6839 L_3610393F:
   6840     goto L_36103943; /* 0x3610393F: jmp 0x36103943 */
   6841 L_36103941:
   6842     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6843     eax = 0; /* 0x36103941: xor eax, eax */
   6844     _cf = 0;
   6845     _flag_k = FK_TEST;
   6846 L_36103943:
   6847     ecx = esi; /* 0x36103943: mov ecx, esi */
   6848     MEM32(esi + 0x2C) = eax; /* 0x36103945: mov dword ptr [esi + 0x2c], eax */
   6849     RECOMP_ICALL(0x36104130u); /* 0x36103948: call 0x36104130 */ /* not lifted */
   6850     RECOMP_FLAGS_IN();
   6851     ecx = MEM32(esi + 0x4); /* 0x3610394D: mov ecx, dword ptr [esi + 4] */
   6852     PUSH32(esp, ecx); /* 0x36103950: push ecx */
   6853     RECOMP_ICALL(0x360F7B00u); /* 0x36103951: call 0x360f7b00 */ /* not lifted */
   6854     RECOMP_FLAGS_IN();
   6855     ecx = eax; /* 0x36103956: mov ecx, eax */
   6856     RECOMP_ICALL(0x360FBFF0u); /* 0x36103958: call 0x360fbff0 */ /* not lifted */
   6857     RECOMP_FLAGS_IN();
   6858     ecx = eax; /* 0x3610395D: mov ecx, eax */
   6859     RECOMP_ICALL(0x361371A0u); /* 0x3610395F: call 0x361371a0 */ /* not lifted */
   6860     RECOMP_FLAGS_IN();
   6861     PUSH32(esp, 0x10Cu); /* 0x36103964: push 0x10c */
   6862     edi = eax; /* 0x36103969: mov edi, eax */
   6863     RECOMP_ICALL(0x3615FD6Au); /* 0x3610396B: call 0x3615fd6a */ /* not lifted */
   6864     RECOMP_FLAGS_IN();
   6865     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6866     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6867     esp = esp + 4; /* 0x36103970: add esp, 4 */
   6868     _flag_k = FK_ADD;
   6869     MEM32(ebp + 0x8) = eax; /* 0x36103973: mov dword ptr [ebp + 8], eax */
   6870     /* cmp eax, ebx */ /* 0x36103976: cmp eax, ebx */
   6871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6873     _flag_k = FK_CMP;
   6874     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36103978: mov byte ptr [ebp - 4], 2 */
   6875     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103987; /* 0x3610397C: je 0x36103987 */
   6876 L_3610397E:
   6877     ecx = eax; /* 0x3610397E: mov ecx, eax */
   6878     RECOMP_ICALL(0x36132920u); /* 0x36103980: call 0x36132920 */ /* not lifted */
   6879     RECOMP_FLAGS_IN();
   6880     goto L_36103989; /* 0x36103985: jmp 0x36103989 */
   6881 L_36103987:
   6882     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6883     eax = 0; /* 0x36103987: xor eax, eax */
   6884     _cf = 0;
   6885     _flag_k = FK_TEST;
   6886 L_36103989:
   6887     edx = MEM32(ebp + 0xC); /* 0x36103989: mov edx, dword ptr [ebp + 0xc] */
   6888     ecx = MEM32(esi + 0x118); /* 0x3610398C: mov ecx, dword ptr [esi + 0x118] */
   6889     PUSH32(esp, edx); /* 0x36103992: push edx */
   6890     PUSH32(esp, ecx); /* 0x36103993: push ecx */
   6891     PUSH32(esp, edi); /* 0x36103994: push edi */
   6892     PUSH32(esp, eax); /* 0x36103995: push eax */
   6893     ecx = esi; /* 0x36103996: mov ecx, esi */
   6894     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36103998: mov byte ptr [ebp - 4], 1 */
   6895     MEM32(esi + 0x20) = eax; /* 0x3610399C: mov dword ptr [esi + 0x20], eax */
   6896     RECOMP_ICALL(0x360FC530u); /* 0x3610399F: call 0x360fc530 */ /* not lifted */
   6897     RECOMP_FLAGS_IN();
   6898     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6899     _cf = (LO8(eax)) != 0;
   6900     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361039A4: neg al */
   6901     _flag_k = FK_NARROW(FK_CMP, 24);
   6902     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361039A6: sbb al, al */
   6903       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   6904       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6905       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6906     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6907     SET_LO8(eax, LO8(eax) + 1); /* 0x361039A8: inc al */
   6908     _flag_k = FK_NARROW(FK_INC, 24);
   6909     ecx = esi; /* 0x361039AA: mov ecx, esi */
   6910     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x361039AC: mov byte ptr [esi + 0x14], al */
   6911     RECOMP_ICALL(0x361041F0u); /* 0x361039AF: call 0x361041f0 */ /* not lifted */
   6912     RECOMP_FLAGS_IN();
   6913     ecx = MEM32(ebp + (-0xC)); /* 0x361039B4: mov ecx, dword ptr [ebp - 0xc] */
   6914     edi = POP32_VAL(esp); /* 0x361039B7: pop edi */
   6915     eax = esi; /* 0x361039B8: mov eax, esi */
   6916     esi = POP32_VAL(esp); /* 0x361039BA: pop esi */
   6917     ebx = POP32_VAL(esp); /* 0x361039BB: pop ebx */
   6918     MEM32(FS_BASE + (0)) = ecx; /* 0x361039BC: mov dword ptr fs:[0], ecx */
   6919     esp = ebp; /* 0x361039C3: mov esp, ebp */
   6920     ebp = POP32_VAL(esp); /* 0x361039C5: pop ebp */
   6921     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361039C6: ret 8 */
   6922     RECOMP_REGS_OUT();
   6923 }
   6924 
   6925 void sub_361039D0(void) {
   6926     int _fpu_cmp = 0;
   6927     uint32_t _cf = 0;
   6928     int _df = 1;
   6929     uint32_t _flag_k = FK_NONE;
   6930     uint32_t _flag_a = 0, _flag_b = 0;
   6931     uint32_t _itail_tgt = 0;
   6932     RECOMP_REGS_LOCALS
   6933     RECOMP_ENTER(0x361039D0u);
   6934 
   6935 L_361039D0:
   6936     PUSH32(esp, ebp); /* 0x361039D0: push ebp */
   6937     ebp = esp; /* 0x361039D1: mov ebp, esp */
   6938     PUSH32(esp, esi); /* 0x361039D3: push esi */
   6939     esi = ecx; /* 0x361039D4: mov esi, ecx */
   6940     RECOMP_ICALL(0x36103CC0u); /* 0x361039D6: call 0x36103cc0 */ /* not lifted */
   6941     RECOMP_FLAGS_IN();
   6942     /* test MEM8(ebp + 0x8), 1 */ /* 0x361039DB: test byte ptr [ebp + 8], 1 */
   6943     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6944     _cf = 0;
   6945     _flag_k = FK_NARROW(FK_TEST, 24);
   6946     if (TEST_Z(_flag_a, _flag_b)) goto L_361039EA; /* 0x361039DF: je 0x361039ea */
   6947 L_361039E1:
   6948     PUSH32(esp, esi); /* 0x361039E1: push esi */
   6949     RECOMP_ICALL(0x3615FCC4u); /* 0x361039E2: call 0x3615fcc4 */ /* not lifted */
   6950     RECOMP_FLAGS_IN();
   6951     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6953     esp = esp + 4; /* 0x361039E7: add esp, 4 */
   6954     _flag_k = FK_ADD;
   6955 L_361039EA:
   6956     eax = esi; /* 0x361039EA: mov eax, esi */
   6957     esi = POP32_VAL(esp); /* 0x361039EC: pop esi */
   6958     ebp = POP32_VAL(esp); /* 0x361039ED: pop ebp */
   6959     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361039EE: ret 4 */
   6960     RECOMP_REGS_OUT();
   6961 }
   6962 
   6963 void sub_36103A00(void) {
   6964     int _fpu_cmp = 0;
   6965     uint32_t _cf = 0;
   6966     int _df = 1;
   6967     uint32_t _flag_k = FK_NONE;
   6968     uint32_t _flag_a = 0, _flag_b = 0;
   6969     uint32_t _itail_tgt = 0;
   6970     RECOMP_REGS_LOCALS
   6971     RECOMP_ENTER(0x36103A00u);
   6972 
   6973 L_36103A00:
   6974     PUSH32(esp, ebp); /* 0x36103A00: push ebp */
   6975     ebp = esp; /* 0x36103A01: mov ebp, esp */
   6976     PUSH32(esp, 0xFFFFFFFFu); /* 0x36103A03: push -1 */
   6977     PUSH32(esp, 0x36169F71u); /* 0x36103A05: push 0x36169f71 */
   6978     eax = MEM32(FS_BASE + (0)); /* 0x36103A0A: mov eax, dword ptr fs:[0] */
   6979     PUSH32(esp, eax); /* 0x36103A10: push eax */
   6980     MEM32(FS_BASE + (0)) = esp; /* 0x36103A11: mov dword ptr fs:[0], esp */
   6981     PUSH32(esp, ecx); /* 0x36103A18: push ecx */
   6982     eax = MEM32(ebp + 0x8); /* 0x36103A19: mov eax, dword ptr [ebp + 8] */
   6983     PUSH32(esp, ebx); /* 0x36103A1C: push ebx */
   6984     PUSH32(esp, esi); /* 0x36103A1D: push esi */
   6985     PUSH32(esp, edi); /* 0x36103A1E: push edi */
   6986     esi = ecx; /* 0x36103A1F: mov esi, ecx */
   6987     PUSH32(esp, eax); /* 0x36103A21: push eax */
   6988     MEM32(ebp + (-0x10)) = esi; /* 0x36103A22: mov dword ptr [ebp - 0x10], esi */
   6989     RECOMP_ICALL(0x360FC270u); /* 0x36103A25: call 0x360fc270 */ /* not lifted */
   6990     RECOMP_FLAGS_IN();
   6991     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6992     eax = 0; /* 0x36103A2A: xor eax, eax */
   6993     _cf = 0;
   6994     _flag_k = FK_TEST;
   6995     MEM32(ebp + (-0x4)) = eax; /* 0x36103A2C: mov dword ptr [ebp - 4], eax */
   6996     MEM32(esi + 0x20) = eax; /* 0x36103A2F: mov dword ptr [esi + 0x20], eax */
   6997     MEM32(esi + 0x28) = eax; /* 0x36103A32: mov dword ptr [esi + 0x28], eax */
   6998     edi = esi + 0x30; /* 0x36103A35: lea edi, [esi + 0x30] */
   6999     ebx = 8; /* 0x36103A38: mov ebx, 8 */
   7000 L_36103A3D:
   7001     ecx = edi; /* 0x36103A3D: mov ecx, edi */
   7002     RECOMP_ICALL(MEM32(0x36170174)); /* 0x36103A3F: call dword ptr [0x36170174] */
   7003     RECOMP_FLAGS_IN();
   7004     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   7005     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7006     edi = edi + 0xCu; /* 0x36103A45: add edi, 0xc */
   7007     _flag_k = FK_ADD;
   7008     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   7009     ebx = ebx - 1; /* 0x36103A48: dec ebx */
   7010     _flag_k = FK_DEC;
   7011     RECOMP_BACKEDGE();
   7012     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36103A3D; /* 0x36103A49: jne 0x36103a3d */
   7013 L_36103A4B:
   7014     ecx = esi + 0x12C; /* 0x36103A4B: lea ecx, [esi + 0x12c] */
   7015     RECOMP_ICALL(0x36137CC0u); /* 0x36103A51: call 0x36137cc0 */ /* not lifted */
   7016     RECOMP_FLAGS_IN();
   7017     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7018     ebx = 0; /* 0x36103A56: xor ebx, ebx */
   7019     _cf = 0;
   7020     _flag_k = FK_TEST;
   7021     PUSH32(esp, 0x100u); /* 0x36103A58: push 0x100 */
   7022     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36103A5D: mov byte ptr [ebp - 4], 1 */
   7023     MEM32(esi + 0x170) = ebx; /* 0x36103A61: mov dword ptr [esi + 0x170], ebx */
   7024     MEM32(esi) = 0x361759F4u; /* 0x36103A67: mov dword ptr [esi], 0x361759f4 */
   7025     RECOMP_ICALL(0x3615FD6Au); /* 0x36103A6D: call 0x3615fd6a */ /* not lifted */
   7026     RECOMP_FLAGS_IN();
   7027     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7028     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7029     esp = esp + 4; /* 0x36103A72: add esp, 4 */
   7030     _flag_k = FK_ADD;
   7031     /* cmp eax, ebx */ /* 0x36103A75: cmp eax, ebx */
   7032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7033     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7034     _flag_k = FK_CMP;
   7035     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103A91; /* 0x36103A77: je 0x36103a91 */
   7036 L_36103A79:
   7037     ecx = eax + 0x8; /* 0x36103A79: lea ecx, [eax + 8] */
   7038     edx = 8; /* 0x36103A7C: mov edx, 8 */
   7039 L_36103A81:
   7040     MEM32(ecx + (-0x8)) = ebx; /* 0x36103A81: mov dword ptr [ecx - 8], ebx */
   7041     MEM32(ecx + (-0x4)) = ebx; /* 0x36103A84: mov dword ptr [ecx - 4], ebx */
   7042     MEM32(ecx) = ebx; /* 0x36103A87: mov dword ptr [ecx], ebx */
   7043     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   7044     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7045     ecx = ecx + 0x20u; /* 0x36103A89: add ecx, 0x20 */
   7046     _flag_k = FK_ADD;
   7047     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7048     edx = edx - 1; /* 0x36103A8C: dec edx */
   7049     _flag_k = FK_DEC;
   7050     RECOMP_BACKEDGE();
   7051     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36103A81; /* 0x36103A8D: jne 0x36103a81 */
   7052 L_36103A8F:
   7053     goto L_36103A93; /* 0x36103A8F: jmp 0x36103a93 */
   7054 L_36103A91:
   7055     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7056     eax = 0; /* 0x36103A91: xor eax, eax */
   7057     _cf = 0;
   7058     _flag_k = FK_TEST;
   7059 L_36103A93:
   7060     ecx = esi; /* 0x36103A93: mov ecx, esi */
   7061     MEM32(esi + 0x2C) = eax; /* 0x36103A95: mov dword ptr [esi + 0x2c], eax */
   7062     RECOMP_ICALL(0x36104130u); /* 0x36103A98: call 0x36104130 */ /* not lifted */
   7063     RECOMP_FLAGS_IN();
   7064     ecx = MEM32(esi + 0x4); /* 0x36103A9D: mov ecx, dword ptr [esi + 4] */
   7065     PUSH32(esp, ecx); /* 0x36103AA0: push ecx */
   7066     RECOMP_ICALL(0x360F7B00u); /* 0x36103AA1: call 0x360f7b00 */ /* not lifted */
   7067     RECOMP_FLAGS_IN();
   7068     ecx = eax; /* 0x36103AA6: mov ecx, eax */
   7069     RECOMP_ICALL(0x360FBFF0u); /* 0x36103AA8: call 0x360fbff0 */ /* not lifted */
   7070     RECOMP_FLAGS_IN();
   7071     ecx = eax; /* 0x36103AAD: mov ecx, eax */
   7072     RECOMP_ICALL(0x361371A0u); /* 0x36103AAF: call 0x361371a0 */ /* not lifted */
   7073     RECOMP_FLAGS_IN();
   7074     PUSH32(esp, 0x10Cu); /* 0x36103AB4: push 0x10c */
   7075     edi = eax; /* 0x36103AB9: mov edi, eax */
   7076     RECOMP_ICALL(0x3615FD6Au); /* 0x36103ABB: call 0x3615fd6a */ /* not lifted */
   7077     RECOMP_FLAGS_IN();
   7078     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7079     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7080     esp = esp + 4; /* 0x36103AC0: add esp, 4 */
   7081     _flag_k = FK_ADD;
   7082     MEM32(ebp + 0x8) = eax; /* 0x36103AC3: mov dword ptr [ebp + 8], eax */
   7083     /* cmp eax, ebx */ /* 0x36103AC6: cmp eax, ebx */
   7084     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7086     _flag_k = FK_CMP;
   7087     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36103AC8: mov byte ptr [ebp - 4], 2 */
   7088     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103AD7; /* 0x36103ACC: je 0x36103ad7 */
   7089 L_36103ACE:
   7090     ecx = eax; /* 0x36103ACE: mov ecx, eax */
   7091     RECOMP_ICALL(0x36132920u); /* 0x36103AD0: call 0x36132920 */ /* not lifted */
   7092     RECOMP_FLAGS_IN();
   7093     goto L_36103AD9; /* 0x36103AD5: jmp 0x36103ad9 */
   7094 L_36103AD7:
   7095     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7096     eax = 0; /* 0x36103AD7: xor eax, eax */
   7097     _cf = 0;
   7098     _flag_k = FK_TEST;
   7099 L_36103AD9:
   7100     MEM32(esi + 0x20) = eax; /* 0x36103AD9: mov dword ptr [esi + 0x20], eax */
   7101     eax = MEM32(esi + 0x118); /* 0x36103ADC: mov eax, dword ptr [esi + 0x118] */
   7102     edx = eax; /* 0x36103AE2: mov edx, eax */
   7103     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2);
   7104     edx = edx & 2; /* 0x36103AE4: and edx, 2 */
   7105     _cf = 0;
   7106     _flag_k = FK_TEST;
   7107     /* cmp LO8(edx), 2 */ /* 0x36103AE7: cmp dl, 2 */
   7108     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24;
   7109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7110     _flag_k = FK_NARROW(FK_CMP, 24);
   7111     SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36103AEA: sete cl */
   7112     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7113     eax = eax & 1; /* 0x36103AED: and eax, 1 */
   7114     _cf = 0;
   7115     _flag_k = FK_TEST;
   7116     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7117     SET_LO8(eax, LO8(eax) - 1); /* 0x36103AF0: dec al */
   7118     _flag_k = FK_NARROW(FK_DEC, 24);
   7119     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7120     _cf = (LO8(eax)) != 0;
   7121     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36103AF2: neg al */
   7122     _flag_k = FK_NARROW(FK_CMP, 24);
   7123     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36103AF4: sbb al, al */
   7124       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   7125       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7126       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7127     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7128     SET_LO8(eax, LO8(eax) + 1); /* 0x36103AF6: inc al */
   7129     _flag_k = FK_NARROW(FK_INC, 24);
   7130     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36103AF8: mov byte ptr [ebp - 4], 1 */
   7131     PUSH32(esp, ecx); /* 0x36103AFC: push ecx */
   7132     ecx = edi; /* 0x36103AFD: mov ecx, edi */
   7133     PUSH32(esp, eax); /* 0x36103AFF: push eax */
   7134     PUSH32(esp, 7); /* 0x36103B00: push 7 */
   7135     RECOMP_ICALL(0x36136FE0u); /* 0x36103B02: call 0x36136fe0 */ /* not lifted */
   7136     RECOMP_FLAGS_IN();
   7137     edx = MEM32(esi + 0x118); /* 0x36103B07: mov edx, dword ptr [esi + 0x118] */
   7138     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   7139     edx = edx & 4; /* 0x36103B0D: and edx, 4 */
   7140     _cf = 0;
   7141     _flag_k = FK_TEST;
   7142     PUSH32(esp, eax); /* 0x36103B10: push eax */
   7143     /* cmp LO8(edx), 4 */ /* 0x36103B11: cmp dl, 4 */
   7144     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24;
   7145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7146     _flag_k = FK_NARROW(FK_CMP, 24);
   7147     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36103B14: sete al */
   7148     ecx = edi; /* 0x36103B17: mov ecx, edi */
   7149     PUSH32(esp, eax); /* 0x36103B19: push eax */
   7150     PUSH32(esp, 6); /* 0x36103B1A: push 6 */
   7151     RECOMP_ICALL(0x36137010u); /* 0x36103B1C: call 0x36137010 */ /* not lifted */
   7152     RECOMP_FLAGS_IN();
   7153     PUSH32(esp, ecx); /* 0x36103B21: push ecx */
   7154     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36103B22: fstp dword ptr [esp] */
   7155     PUSH32(esp, 5); /* 0x36103B25: push 5 */
   7156     ecx = edi; /* 0x36103B27: mov ecx, edi */
   7157     RECOMP_ICALL(0x36137010u); /* 0x36103B29: call 0x36137010 */ /* not lifted */
   7158     RECOMP_FLAGS_IN();
   7159     PUSH32(esp, ecx); /* 0x36103B2E: push ecx */
   7160     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36103B2F: fstp dword ptr [esp] */
   7161     PUSH32(esp, 4); /* 0x36103B32: push 4 */
   7162     ecx = edi; /* 0x36103B34: mov ecx, edi */
   7163     RECOMP_ICALL(0x36137010u); /* 0x36103B36: call 0x36137010 */ /* not lifted */
   7164     RECOMP_FLAGS_IN();
   7165     PUSH32(esp, ecx); /* 0x36103B3B: push ecx */
   7166     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36103B3C: fstp dword ptr [esp] */
   7167     PUSH32(esp, 3); /* 0x36103B3F: push 3 */
   7168     ecx = edi; /* 0x36103B41: mov ecx, edi */
   7169     RECOMP_ICALL(0x36137010u); /* 0x36103B43: call 0x36137010 */ /* not lifted */
   7170     RECOMP_FLAGS_IN();
   7171     PUSH32(esp, ecx); /* 0x36103B48: push ecx */
   7172     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36103B49: fstp dword ptr [esp] */
   7173     PUSH32(esp, 2); /* 0x36103B4C: push 2 */
   7174     ecx = edi; /* 0x36103B4E: mov ecx, edi */
   7175     RECOMP_ICALL(0x36137010u); /* 0x36103B50: call 0x36137010 */ /* not lifted */
   7176     RECOMP_FLAGS_IN();
   7177     PUSH32(esp, ecx); /* 0x36103B55: push ecx */
   7178     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36103B56: fstp dword ptr [esp] */
   7179     PUSH32(esp, 1); /* 0x36103B59: push 1 */
   7180     ecx = edi; /* 0x36103B5B: mov ecx, edi */
   7181     RECOMP_ICALL(0x36137010u); /* 0x36103B5D: call 0x36137010 */ /* not lifted */
   7182     RECOMP_FLAGS_IN();
   7183     PUSH32(esp, ecx); /* 0x36103B62: push ecx */
   7184     ecx = MEM32(ebp + 0xC); /* 0x36103B63: mov ecx, dword ptr [ebp + 0xc] */
   7185     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36103B66: fstp dword ptr [esp] */
   7186     PUSH32(esp, ecx); /* 0x36103B69: push ecx */
   7187     ecx = MEM32(esi + 0x20); /* 0x36103B6A: mov ecx, dword ptr [esi + 0x20] */
   7188     RECOMP_ICALL(0x36132BA0u); /* 0x36103B6D: call 0x36132ba0 */ /* not lifted */
   7189     RECOMP_FLAGS_IN();
   7190     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7191     _cf = (LO8(eax)) != 0;
   7192     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36103B72: neg al */
   7193     _flag_k = FK_NARROW(FK_CMP, 24);
   7194     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36103B74: sbb al, al */
   7195       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   7196       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7197       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7198     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7199     SET_LO8(eax, LO8(eax) + 1); /* 0x36103B76: inc al */
   7200     _flag_k = FK_NARROW(FK_INC, 24);
   7201     ecx = esi; /* 0x36103B78: mov ecx, esi */
   7202     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36103B7A: mov byte ptr [esi + 0x14], al */
   7203     RECOMP_ICALL(0x361041F0u); /* 0x36103B7D: call 0x361041f0 */ /* not lifted */
   7204     RECOMP_FLAGS_IN();
   7205     ecx = MEM32(ebp + (-0xC)); /* 0x36103B82: mov ecx, dword ptr [ebp - 0xc] */
   7206     edi = POP32_VAL(esp); /* 0x36103B85: pop edi */
   7207     eax = esi; /* 0x36103B86: mov eax, esi */
   7208     esi = POP32_VAL(esp); /* 0x36103B88: pop esi */
   7209     ebx = POP32_VAL(esp); /* 0x36103B89: pop ebx */
   7210     MEM32(FS_BASE + (0)) = ecx; /* 0x36103B8A: mov dword ptr fs:[0], ecx */
   7211     esp = ebp; /* 0x36103B91: mov esp, ebp */
   7212     ebp = POP32_VAL(esp); /* 0x36103B93: pop ebp */
   7213     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36103B94: ret 8 */
   7214     RECOMP_REGS_OUT();
   7215 }
   7216 
   7217 void sub_36103BA0(void) {
   7218     int _fpu_cmp = 0;
   7219     uint32_t _cf = 0;
   7220     int _df = 1;
   7221     uint32_t _flag_k = FK_NONE;
   7222     uint32_t _flag_a = 0, _flag_b = 0;
   7223     uint32_t _itail_tgt = 0;
   7224     RECOMP_REGS_LOCALS
   7225     RECOMP_ENTER(0x36103BA0u);
   7226 
   7227 L_36103BA0:
   7228     PUSH32(esp, ebp); /* 0x36103BA0: push ebp */
   7229     ebp = esp; /* 0x36103BA1: mov ebp, esp */
   7230     PUSH32(esp, 0xFFFFFFFFu); /* 0x36103BA3: push -1 */
   7231     PUSH32(esp, 0x36169FA1u); /* 0x36103BA5: push 0x36169fa1 */
   7232     eax = MEM32(FS_BASE + (0)); /* 0x36103BAA: mov eax, dword ptr fs:[0] */
   7233     PUSH32(esp, eax); /* 0x36103BB0: push eax */
   7234     MEM32(FS_BASE + (0)) = esp; /* 0x36103BB1: mov dword ptr fs:[0], esp */
   7235     PUSH32(esp, ecx); /* 0x36103BB8: push ecx */
   7236     eax = MEM32(ebp + 0x8); /* 0x36103BB9: mov eax, dword ptr [ebp + 8] */
   7237     PUSH32(esp, ebx); /* 0x36103BBC: push ebx */
   7238     PUSH32(esp, esi); /* 0x36103BBD: push esi */
   7239     PUSH32(esp, edi); /* 0x36103BBE: push edi */
   7240     esi = ecx; /* 0x36103BBF: mov esi, ecx */
   7241     PUSH32(esp, eax); /* 0x36103BC1: push eax */
   7242     MEM32(ebp + (-0x10)) = esi; /* 0x36103BC2: mov dword ptr [ebp - 0x10], esi */
   7243     RECOMP_ICALL(0x360FC270u); /* 0x36103BC5: call 0x360fc270 */ /* not lifted */
   7244     RECOMP_FLAGS_IN();
   7245     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7246     eax = 0; /* 0x36103BCA: xor eax, eax */
   7247     _cf = 0;
   7248     _flag_k = FK_TEST;
   7249     MEM32(ebp + (-0x4)) = eax; /* 0x36103BCC: mov dword ptr [ebp - 4], eax */
   7250     MEM32(esi + 0x20) = eax; /* 0x36103BCF: mov dword ptr [esi + 0x20], eax */
   7251     MEM32(esi + 0x28) = eax; /* 0x36103BD2: mov dword ptr [esi + 0x28], eax */
   7252     edi = esi + 0x30; /* 0x36103BD5: lea edi, [esi + 0x30] */
   7253     ebx = 8; /* 0x36103BD8: mov ebx, 8 */
   7254 L_36103BDD:
   7255     ecx = edi; /* 0x36103BDD: mov ecx, edi */
   7256     RECOMP_ICALL(MEM32(0x36170174)); /* 0x36103BDF: call dword ptr [0x36170174] */
   7257     RECOMP_FLAGS_IN();
   7258     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   7259     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7260     edi = edi + 0xCu; /* 0x36103BE5: add edi, 0xc */
   7261     _flag_k = FK_ADD;
   7262     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   7263     ebx = ebx - 1; /* 0x36103BE8: dec ebx */
   7264     _flag_k = FK_DEC;
   7265     RECOMP_BACKEDGE();
   7266     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36103BDD; /* 0x36103BE9: jne 0x36103bdd */
   7267 L_36103BEB:
   7268     ecx = esi + 0x12C; /* 0x36103BEB: lea ecx, [esi + 0x12c] */
   7269     RECOMP_ICALL(0x36137CC0u); /* 0x36103BF1: call 0x36137cc0 */ /* not lifted */
   7270     RECOMP_FLAGS_IN();
   7271     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7272     ebx = 0; /* 0x36103BF6: xor ebx, ebx */
   7273     _cf = 0;
   7274     _flag_k = FK_TEST;
   7275     PUSH32(esp, 0x100u); /* 0x36103BF8: push 0x100 */
   7276     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36103BFD: mov byte ptr [ebp - 4], 1 */
   7277     MEM32(esi + 0x170) = ebx; /* 0x36103C01: mov dword ptr [esi + 0x170], ebx */
   7278     MEM32(esi) = 0x361759F4u; /* 0x36103C07: mov dword ptr [esi], 0x361759f4 */
   7279     RECOMP_ICALL(0x3615FD6Au); /* 0x36103C0D: call 0x3615fd6a */ /* not lifted */
   7280     RECOMP_FLAGS_IN();
   7281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7283     esp = esp + 4; /* 0x36103C12: add esp, 4 */
   7284     _flag_k = FK_ADD;
   7285     /* cmp eax, ebx */ /* 0x36103C15: cmp eax, ebx */
   7286     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7288     _flag_k = FK_CMP;
   7289     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103C31; /* 0x36103C17: je 0x36103c31 */
   7290 L_36103C19:
   7291     ecx = eax + 0x8; /* 0x36103C19: lea ecx, [eax + 8] */
   7292     edx = 8; /* 0x36103C1C: mov edx, 8 */
   7293 L_36103C21:
   7294     MEM32(ecx + (-0x8)) = ebx; /* 0x36103C21: mov dword ptr [ecx - 8], ebx */
   7295     MEM32(ecx + (-0x4)) = ebx; /* 0x36103C24: mov dword ptr [ecx - 4], ebx */
   7296     MEM32(ecx) = ebx; /* 0x36103C27: mov dword ptr [ecx], ebx */
   7297     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   7298     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7299     ecx = ecx + 0x20u; /* 0x36103C29: add ecx, 0x20 */
   7300     _flag_k = FK_ADD;
   7301     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7302     edx = edx - 1; /* 0x36103C2C: dec edx */
   7303     _flag_k = FK_DEC;
   7304     RECOMP_BACKEDGE();
   7305     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36103C21; /* 0x36103C2D: jne 0x36103c21 */
   7306 L_36103C2F:
   7307     goto L_36103C33; /* 0x36103C2F: jmp 0x36103c33 */
   7308 L_36103C31:
   7309     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7310     eax = 0; /* 0x36103C31: xor eax, eax */
   7311     _cf = 0;
   7312     _flag_k = FK_TEST;
   7313 L_36103C33:
   7314     ecx = esi; /* 0x36103C33: mov ecx, esi */
   7315     MEM32(esi + 0x2C) = eax; /* 0x36103C35: mov dword ptr [esi + 0x2c], eax */
   7316     RECOMP_ICALL(0x36104130u); /* 0x36103C38: call 0x36104130 */ /* not lifted */
   7317     RECOMP_FLAGS_IN();
   7318     ecx = MEM32(esi + 0x4); /* 0x36103C3D: mov ecx, dword ptr [esi + 4] */
   7319     PUSH32(esp, ecx); /* 0x36103C40: push ecx */
   7320     RECOMP_ICALL(0x360F7B00u); /* 0x36103C41: call 0x360f7b00 */ /* not lifted */
   7321     RECOMP_FLAGS_IN();
   7322     ecx = eax; /* 0x36103C46: mov ecx, eax */
   7323     RECOMP_ICALL(0x360FBFF0u); /* 0x36103C48: call 0x360fbff0 */ /* not lifted */
   7324     RECOMP_FLAGS_IN();
   7325     ecx = eax; /* 0x36103C4D: mov ecx, eax */
   7326     RECOMP_ICALL(0x361371A0u); /* 0x36103C4F: call 0x361371a0 */ /* not lifted */
   7327     RECOMP_FLAGS_IN();
   7328     PUSH32(esp, 0x10Cu); /* 0x36103C54: push 0x10c */
   7329     edi = eax; /* 0x36103C59: mov edi, eax */
   7330     RECOMP_ICALL(0x3615FD6Au); /* 0x36103C5B: call 0x3615fd6a */ /* not lifted */
   7331     RECOMP_FLAGS_IN();
   7332     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7333     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7334     esp = esp + 4; /* 0x36103C60: add esp, 4 */
   7335     _flag_k = FK_ADD;
   7336     MEM32(ebp + 0x8) = eax; /* 0x36103C63: mov dword ptr [ebp + 8], eax */
   7337     /* cmp eax, ebx */ /* 0x36103C66: cmp eax, ebx */
   7338     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7340     _flag_k = FK_CMP;
   7341     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36103C68: mov byte ptr [ebp - 4], 2 */
   7342     if (CMP_EQ(_flag_a, _flag_b)) goto L_36103C77; /* 0x36103C6C: je 0x36103c77 */
   7343 L_36103C6E:
   7344     ecx = eax; /* 0x36103C6E: mov ecx, eax */
   7345     RECOMP_ICALL(0x36132920u); /* 0x36103C70: call 0x36132920 */ /* not lifted */
   7346     RECOMP_FLAGS_IN();
   7347     goto L_36103C79; /* 0x36103C75: jmp 0x36103c79 */
   7348 L_36103C77:
   7349     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7350     eax = 0; /* 0x36103C77: xor eax, eax */
   7351     _cf = 0;
   7352     _flag_k = FK_TEST;
   7353 L_36103C79:
   7354     edx = MEM32(ebp + 0x10); /* 0x36103C79: mov edx, dword ptr [ebp + 0x10] */
   7355     ecx = MEM32(ebp + 0xC); /* 0x36103C7C: mov ecx, dword ptr [ebp + 0xc] */
   7356     PUSH32(esp, edx); /* 0x36103C7F: push edx */
   7357     edx = MEM32(esi + 0x118); /* 0x36103C80: mov edx, dword ptr [esi + 0x118] */
   7358     PUSH32(esp, ecx); /* 0x36103C86: push ecx */
   7359     PUSH32(esp, edx); /* 0x36103C87: push edx */
   7360     PUSH32(esp, edi); /* 0x36103C88: push edi */
   7361     PUSH32(esp, eax); /* 0x36103C89: push eax */
   7362     ecx = esi; /* 0x36103C8A: mov ecx, esi */
   7363     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36103C8C: mov byte ptr [ebp - 4], 1 */
   7364     MEM32(esi + 0x20) = eax; /* 0x36103C90: mov dword ptr [esi + 0x20], eax */
   7365     RECOMP_ICALL(0x360FC670u); /* 0x36103C93: call 0x360fc670 */ /* not lifted */
   7366     RECOMP_FLAGS_IN();
   7367     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7368     _cf = (LO8(eax)) != 0;
   7369     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36103C98: neg al */
   7370     _flag_k = FK_NARROW(FK_CMP, 24);
   7371     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36103C9A: sbb al, al */
   7372       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   7373       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7374       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7375     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7376     SET_LO8(eax, LO8(eax) + 1); /* 0x36103C9C: inc al */
   7377     _flag_k = FK_NARROW(FK_INC, 24);
   7378     ecx = esi; /* 0x36103C9E: mov ecx, esi */
   7379     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36103CA0: mov byte ptr [esi + 0x14], al */
   7380     RECOMP_ICALL(0x361041F0u); /* 0x36103CA3: call 0x361041f0 */ /* not lifted */
   7381     RECOMP_FLAGS_IN();
   7382     ecx = MEM32(ebp + (-0xC)); /* 0x36103CA8: mov ecx, dword ptr [ebp - 0xc] */
   7383     edi = POP32_VAL(esp); /* 0x36103CAB: pop edi */
   7384     eax = esi; /* 0x36103CAC: mov eax, esi */
   7385     esi = POP32_VAL(esp); /* 0x36103CAE: pop esi */
   7386     ebx = POP32_VAL(esp); /* 0x36103CAF: pop ebx */
   7387     MEM32(FS_BASE + (0)) = ecx; /* 0x36103CB0: mov dword ptr fs:[0], ecx */
   7388     esp = ebp; /* 0x36103CB7: mov esp, ebp */
   7389     ebp = POP32_VAL(esp); /* 0x36103CB9: pop ebp */
   7390     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36103CBA: ret 0xc */
   7391     RECOMP_REGS_OUT();
   7392 }
   7393 
   7394 void sub_36103CC0(void) {
   7395     int _fpu_cmp = 0;
   7396     uint32_t _cf = 0;
   7397     int _df = 1;
   7398     uint32_t _flag_k = FK_NONE;
   7399     uint32_t _flag_a = 0, _flag_b = 0;
   7400     uint32_t _itail_tgt = 0;
   7401     RECOMP_REGS_LOCALS
   7402     RECOMP_ENTER(0x36103CC0u);
   7403 
   7404 L_36103CC0:
   7405     PUSH32(esp, ebp); /* 0x36103CC0: push ebp */
   7406     ebp = esp; /* 0x36103CC1: mov ebp, esp */
   7407     PUSH32(esp, 0xFFFFFFFFu); /* 0x36103CC3: push -1 */
   7408     PUSH32(esp, 0x36169FC6u); /* 0x36103CC5: push 0x36169fc6 */
   7409     eax = MEM32(FS_BASE + (0)); /* 0x36103CCA: mov eax, dword ptr fs:[0] */
   7410     PUSH32(esp, eax); /* 0x36103CD0: push eax */
   7411     MEM32(FS_BASE + (0)) = esp; /* 0x36103CD1: mov dword ptr fs:[0], esp */
   7412     PUSH32(esp, ecx); /* 0x36103CD8: push ecx */
   7413     PUSH32(esp, esi); /* 0x36103CD9: push esi */
   7414     esi = ecx; /* 0x36103CDA: mov esi, ecx */
   7415     PUSH32(esp, edi); /* 0x36103CDC: push edi */
   7416     MEM32(ebp + (-0x10)) = esi; /* 0x36103CDD: mov dword ptr [ebp - 0x10], esi */
   7417     MEM32(esi) = 0x361759F4u; /* 0x36103CE0: mov dword ptr [esi], 0x361759f4 */
   7418     eax = MEM32(esi + 0x2C); /* 0x36103CE6: mov eax, dword ptr [esi + 0x2c] */
   7419     PUSH32(esp, eax); /* 0x36103CE9: push eax */
   7420     MEM32(ebp + (-0x4)) = 1; /* 0x36103CEA: mov dword ptr [ebp - 4], 1 */
   7421     RECOMP_ICALL(0x3615FCC4u); /* 0x36103CF1: call 0x3615fcc4 */ /* not lifted */
   7422     RECOMP_FLAGS_IN();
   7423     edi = MEM32(esi + 0x20); /* 0x36103CF6: mov edi, dword ptr [esi + 0x20] */
   7424     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7425     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7426     esp = esp + 4; /* 0x36103CF9: add esp, 4 */
   7427     _flag_k = FK_ADD;
   7428     /* test edi, edi */ /* 0x36103CFC: test edi, edi */
   7429     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7430     _cf = 0;
   7431     _flag_k = FK_TEST;
   7432     if (TEST_Z(_flag_a, _flag_b)) goto L_36103D17; /* 0x36103CFE: je 0x36103d17 */
   7433 L_36103D00:
   7434     ecx = edi; /* 0x36103D00: mov ecx, edi */
   7435     RECOMP_ICALL(0x360E2940u); /* 0x36103D02: call 0x360e2940 */ /* not lifted */
   7436     RECOMP_FLAGS_IN();
   7437     PUSH32(esp, edi); /* 0x36103D07: push edi */
   7438     RECOMP_ICALL(0x3615FCC4u); /* 0x36103D08: call 0x3615fcc4 */ /* not lifted */
   7439     RECOMP_FLAGS_IN();
   7440     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7441     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7442     esp = esp + 4; /* 0x36103D0D: add esp, 4 */
   7443     _flag_k = FK_ADD;
   7444     MEM32(esi + 0x20) = 0; /* 0x36103D10: mov dword ptr [esi + 0x20], 0 */
   7445 L_36103D17:
   7446     ecx = MEM32(esi + 0x28); /* 0x36103D17: mov ecx, dword ptr [esi + 0x28] */
   7447     /* test ecx, ecx */ /* 0x36103D1A: test ecx, ecx */
   7448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7449     _cf = 0;
   7450     _flag_k = FK_TEST;
   7451     if (TEST_Z(_flag_a, _flag_b)) goto L_36103D2B; /* 0x36103D1C: je 0x36103d2b */
   7452 L_36103D1E:
   7453     eax = MEM32(ecx); /* 0x36103D1E: mov eax, dword ptr [ecx] */
   7454     PUSH32(esp, 1); /* 0x36103D20: push 1 */
   7455     RECOMP_ICALL(MEM32(eax)); /* 0x36103D22: call dword ptr [eax] */
   7456     RECOMP_FLAGS_IN();
   7457     MEM32(esi + 0x28) = 0; /* 0x36103D24: mov dword ptr [esi + 0x28], 0 */
   7458 L_36103D2B:
   7459     ecx = esi + 0x12C; /* 0x36103D2B: lea ecx, [esi + 0x12c] */
   7460     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36103D31: mov byte ptr [ebp - 4], 0 */
   7461     RECOMP_ICALL(0x360E2940u); /* 0x36103D35: call 0x360e2940 */ /* not lifted */
   7462     RECOMP_FLAGS_IN();
   7463     ecx = esi; /* 0x36103D3A: mov ecx, esi */
   7464     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36103D3C: mov dword ptr [ebp - 4], 0xffffffff */
   7465     RECOMP_ICALL(0x360FC2F0u); /* 0x36103D43: call 0x360fc2f0 */ /* not lifted */
   7466     RECOMP_FLAGS_IN();
   7467     ecx = MEM32(ebp + (-0xC)); /* 0x36103D48: mov ecx, dword ptr [ebp - 0xc] */
   7468     edi = POP32_VAL(esp); /* 0x36103D4B: pop edi */
   7469     esi = POP32_VAL(esp); /* 0x36103D4C: pop esi */
   7470     MEM32(FS_BASE + (0)) = ecx; /* 0x36103D4D: mov dword ptr fs:[0], ecx */
   7471     esp = ebp; /* 0x36103D54: mov esp, ebp */
   7472     ebp = POP32_VAL(esp); /* 0x36103D56: pop ebp */
   7473     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36103D57: ret  */
   7474     RECOMP_REGS_OUT();
   7475 }
   7476 
   7477 void sub_36103D60(void) {
   7478     int _fpu_cmp = 0;
   7479     uint32_t _cf = 0;
   7480     int _df = 1;
   7481     uint32_t _flag_k = FK_NONE;
   7482     uint32_t _flag_a = 0, _flag_b = 0;
   7483     uint32_t _itail_tgt = 0;
   7484     RECOMP_REGS_LOCALS
   7485     RECOMP_ENTER(0x36103D60u);
   7486 
   7487 L_36103D60:
   7488     PUSH32(esp, ebp); /* 0x36103D60: push ebp */
   7489 L_36103D61:
   7490     ebp = esp; /* 0x36103D61: mov ebp, esp */
   7491 L_36103D63:
   7492     PUSH32(esp, 0xFFFFFFFFu); /* 0x36103D63: push -1 */
   7493 L_36103D65:
   7494     PUSH32(esp, 0x36169FDCu); /* 0x36103D65: push 0x36169fdc */
   7495 L_36103D6A:
   7496     eax = MEM32(FS_BASE + (0)); /* 0x36103D6A: mov eax, dword ptr fs:[0] */
   7497 L_36103D70:
   7498     PUSH32(esp, eax); /* 0x36103D70: push eax */
   7499 L_36103D71:
   7500     MEM32(FS_BASE + (0)) = esp; /* 0x36103D71: mov dword ptr fs:[0], esp */
   7501 L_36103D78:
   7502     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u);
   7503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7504     esp = esp - 0x78u; /* 0x36103D78: sub esp, 0x78 */
   7505     _flag_k = FK_CMP;
   7506 L_36103D7B:
   7507     PUSH32(esp, esi); /* 0x36103D7B: push esi */
   7508 L_36103D7C:
   7509     esi = ecx; /* 0x36103D7C: mov esi, ecx */
   7510 L_36103D7E:
   7511     RECOMP_ICALL(0x360FC300u); /* 0x36103D7E: call 0x360fc300 */ /* not lifted */
   7512     RECOMP_FLAGS_IN();
   7513 L_36103D83:
   7514     SET_LO8(eax, MEM8(esi + 0x14)); /* 0x36103D83: mov al, byte ptr [esi + 0x14] */
   7515 L_36103D86:
   7516     /* test LO8(eax), LO8(eax) */ /* 0x36103D86: test al, al */
   7517     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7518     _cf = 0;
   7519     _flag_k = FK_NARROW(FK_TEST, 24);
   7520 L_36103D88:
   7521     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103DAC; /* 0x36103D88: je 0x36103dac */
   7522 L_36103D8A:
   7523     eax = MEM32(esi + 0x28); /* 0x36103D8A: mov eax, dword ptr [esi + 0x28] */
   7524 L_36103D8D:
   7525     /* test eax, eax */ /* 0x36103D8D: test eax, eax */
   7526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7527     _cf = 0;
   7528     _flag_k = FK_TEST;
   7529 L_36103D8F:
   7530     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36104052; /* 0x36103D8F: je 0x36104052 */
   7531 L_36103D95:
   7532     fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36103D95: fld dword ptr [esi + 0x10] */
   7533 L_36103D98:
   7534     MEM8(esi + 0x114) = (uint8_t)(1); /* 0x36103D98: mov byte ptr [esi + 0x114], 1 */
   7535 L_36103D9F:
   7536     _st[0] += (double)*(float*)ADDR(0x361710C4); /* 0x36103D9F: fadd dword ptr [0x361710c4] */
   7537 L_36103DA5:
   7538     MEM8(esi + 0x14) = (uint8_t)(0); /* 0x36103DA5: mov byte ptr [esi + 0x14], 0 */
   7539 L_36103DA9:
   7540     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36103DA9: fstp dword ptr [esi + 0x10] */
   7541 L_36103DAC:
   7542     ecx = MEM32(esi + 0x20); /* 0x36103DAC: mov ecx, dword ptr [esi + 0x20] */
   7543 L_36103DAF:
   7544     RECOMP_ICALL(0x361331E0u); /* 0x36103DAF: call 0x361331e0 */ /* not lifted */
   7545     RECOMP_FLAGS_IN();
   7546 L_36103DB4:
   7547     /* test LO8(eax), LO8(eax) */ /* 0x36103DB4: test al, al */
   7548     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7549     _cf = 0;
   7550     _flag_k = FK_NARROW(FK_TEST, 24);
   7551 L_36103DB6:
   7552     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103DC5; /* 0x36103DB6: jne 0x36103dc5 */
   7553 L_36103DB8:
   7554     eax = MEM32(esi + 0x20); /* 0x36103DB8: mov eax, dword ptr [esi + 0x20] */
   7555 L_36103DBB:
   7556     MEM8(eax) = (uint8_t)(0); /* 0x36103DBB: mov byte ptr [eax], 0 */
   7557 L_36103DBE:
   7558     MEM8(esi + 0x114) = (uint8_t)(1); /* 0x36103DBE: mov byte ptr [esi + 0x114], 1 */
   7559 L_36103DC5:
   7560     fp_push(*(float*)&MEM32(esi + 0x164)); /* 0x36103DC5: fld dword ptr [esi + 0x164] */
   7561 L_36103DCB:
   7562     PUSH32(esp, ebx); /* 0x36103DCB: push ebx */
   7563 L_36103DCC:
   7564     _st[0] += (double)*(float*)ADDR(esi + 0x110); /* 0x36103DCC: fadd dword ptr [esi + 0x110] */
   7565 L_36103DD2:
   7566     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7567     ebx = 0; /* 0x36103DD2: xor ebx, ebx */
   7568     _cf = 0;
   7569     _flag_k = FK_TEST;
   7570 L_36103DD4:
   7571     PUSH32(esp, edi); /* 0x36103DD4: push edi */
   7572 L_36103DD5:
   7573     MEM32(ebp + (-0x14)) = ebx; /* 0x36103DD5: mov dword ptr [ebp - 0x14], ebx */
   7574 L_36103DD8:
   7575     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36103DD8: fcomp dword ptr [esi + 0xc] */
   7576     fp_pop();
   7577 L_36103DDB:
   7578     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103DDB: fnstsw ax */
   7579 L_36103DDD:
   7580     /* test HI8(eax), 1 */ /* 0x36103DDD: test ah, 1 */
   7581     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7582     _cf = 0;
   7583     _flag_k = FK_NARROW(FK_TEST, 24);
   7584 L_36103DE0:
   7585     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103DE9; /* 0x36103DE0: je 0x36103de9 */
   7586 L_36103DE2:
   7587     MEM32(ebp + (-0x14)) = 1; /* 0x36103DE2: mov dword ptr [ebp - 0x14], 1 */
   7588 L_36103DE9:
   7589     ecx = esi + 0x30; /* 0x36103DE9: lea ecx, [esi + 0x30] */
   7590 L_36103DEC:
   7591     MEM32(ebp + (-0x10)) = ecx; /* 0x36103DEC: mov dword ptr [ebp - 0x10], ecx */
   7592 L_36103DEF:
   7593     edi = esi + 0xB0; /* 0x36103DEF: lea edi, [esi + 0xb0] */
   7594 L_36103DF5:
   7595     eax = MEM32(edi + 0x40); /* 0x36103DF5: mov eax, dword ptr [edi + 0x40] */
   7596 L_36103DF8:
   7597     /* cmp eax, 3 */ /* 0x36103DF8: cmp eax, 3 */
   7598     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   7599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7600     _flag_k = FK_CMP;
   7601 L_36103DFB:
   7602     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36103FB1; /* 0x36103DFB: ja 0x36103fb1 */
   7603 L_36103E01:
   7604     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36104064)); goto _ljump; }
   7605 L_36103E08:
   7606     eax = MEM32(ebp + (-0x14)); /* 0x36103E08: mov eax, dword ptr [ebp - 0x14] */
   7607 L_36103E0B:
   7608     /* test eax, eax */ /* 0x36103E0B: test eax, eax */
   7609     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7610     _cf = 0;
   7611     _flag_k = FK_TEST;
   7612 L_36103E0D:
   7613     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FC0; /* 0x36103E0D: je 0x36103fc0 */
   7614 L_36103E13:
   7615     ecx = MEM32(esi + 0x20); /* 0x36103E13: mov ecx, dword ptr [esi + 0x20] */
   7616 L_36103E16:
   7617     edx = ebp + (-0x28); /* 0x36103E16: lea edx, [ebp - 0x28] */
   7618 L_36103E19:
   7619     PUSH32(esp, edx); /* 0x36103E19: push edx */
   7620 L_36103E1A:
   7621     RECOMP_ICALL(0x36133FC0u); /* 0x36103E1A: call 0x36133fc0 */ /* not lifted */
   7622     RECOMP_FLAGS_IN();
   7623 L_36103E1F:
   7624     edx = MEM32(eax); /* 0x36103E1F: mov edx, dword ptr [eax] */
   7625 L_36103E21:
   7626     ecx = MEM32(ebp + (-0x10)); /* 0x36103E21: mov ecx, dword ptr [ebp - 0x10] */
   7627 L_36103E24:
   7628     MEM32(ecx) = edx; /* 0x36103E24: mov dword ptr [ecx], edx */
   7629 L_36103E26:
   7630     edx = MEM32(eax + 0x4); /* 0x36103E26: mov edx, dword ptr [eax + 4] */
   7631 L_36103E29:
   7632     MEM32(ecx + 0x4) = edx; /* 0x36103E29: mov dword ptr [ecx + 4], edx */
   7633 L_36103E2C:
   7634     eax = MEM32(eax + 0x8); /* 0x36103E2C: mov eax, dword ptr [eax + 8] */
   7635 L_36103E2F:
   7636     MEM32(ecx + 0x8) = eax; /* 0x36103E2F: mov dword ptr [ecx + 8], eax */
   7637 L_36103E32:
   7638     ecx = MEM32(esi + 0xC); /* 0x36103E32: mov ecx, dword ptr [esi + 0xc] */
   7639 L_36103E35:
   7640     MEM32(edi + 0x20) = ecx; /* 0x36103E35: mov dword ptr [edi + 0x20], ecx */
   7641 L_36103E38:
   7642     ecx = MEM32(ebp + (-0x10)); /* 0x36103E38: mov ecx, dword ptr [ebp - 0x10] */
   7643 L_36103E3B:
   7644     MEM32(edi + 0x40) = 1; /* 0x36103E3B: mov dword ptr [edi + 0x40], 1 */
   7645 L_36103E42:
   7646     edx = MEM32(esi + 0xC); /* 0x36103E42: mov edx, dword ptr [esi + 0xc] */
   7647 L_36103E45:
   7648     eax = MEM32(esi + 0x2C); /* 0x36103E45: mov eax, dword ptr [esi + 0x2c] */
   7649 L_36103E48:
   7650     MEM32(esi + 0x110) = edx; /* 0x36103E48: mov dword ptr [esi + 0x110], edx */
   7651 L_36103E4E:
   7652     edx = MEM32(ecx); /* 0x36103E4E: mov edx, dword ptr [ecx] */
   7653 L_36103E50:
   7654     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7655     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7656     eax = eax + ebx; /* 0x36103E50: add eax, ebx */
   7657     _flag_k = FK_ADD;
   7658 L_36103E52:
   7659     MEM32(eax) = edx; /* 0x36103E52: mov dword ptr [eax], edx */
   7660 L_36103E54:
   7661     edx = MEM32(ecx + 0x4); /* 0x36103E54: mov edx, dword ptr [ecx + 4] */
   7662 L_36103E57:
   7663     MEM32(eax + 0x4) = edx; /* 0x36103E57: mov dword ptr [eax + 4], edx */
   7664 L_36103E5A:
   7665     ecx = MEM32(ecx + 0x8); /* 0x36103E5A: mov ecx, dword ptr [ecx + 8] */
   7666 L_36103E5D:
   7667     MEM32(eax + 0x8) = ecx; /* 0x36103E5D: mov dword ptr [eax + 8], ecx */
   7668 L_36103E60:
   7669     edx = MEM32(esi + 0x2C); /* 0x36103E60: mov edx, dword ptr [esi + 0x2c] */
   7670 L_36103E63:
   7671     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7672     ecx = 0; /* 0x36103E63: xor ecx, ecx */
   7673     _cf = 0;
   7674     _flag_k = FK_TEST;
   7675 L_36103E65:
   7676     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103E65: mov dword ptr [edx + ebx + 0x18], ecx */
   7677 L_36103E69:
   7678     eax = MEM32(esi + 0x2C); /* 0x36103E69: mov eax, dword ptr [esi + 0x2c] */
   7679 L_36103E6C:
   7680     MEM8(eax + ebx + 0x1C) = (uint8_t)(1); /* 0x36103E6C: mov byte ptr [eax + ebx + 0x1c], 1 */
   7681 L_36103E71:
   7682     MEM32(ebp + (-0x14)) = ecx; /* 0x36103E71: mov dword ptr [ebp - 0x14], ecx */
   7683 L_36103E74:
   7684     goto L_36103E78; /* 0x36103E74: jmp 0x36103e78 */
   7685 L_36103E76:
   7686     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7687     ecx = 0; /* 0x36103E76: xor ecx, ecx */
   7688     _cf = 0;
   7689     _flag_k = FK_TEST;
   7690 L_36103E78:
   7691     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103E78: fld dword ptr [esi + 0xc] */
   7692 L_36103E7B:
   7693     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103E7B: fsub dword ptr [edi + 0x20] */
   7694 L_36103E7E:
   7695     _st[0] /= (double)*(float*)ADDR(esi + 0x168); /* 0x36103E7E: fdiv dword ptr [esi + 0x168] */
   7696 L_36103E84:
   7697     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36103E84: fst dword ptr [ebp - 0x1c] */
   7698 L_36103E87:
   7699     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103E87: fcomp dword ptr [0x36170380] */
   7700     fp_pop();
   7701 L_36103E8D:
   7702     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103E8D: fnstsw ax */
   7703 L_36103E8F:
   7704     /* test HI8(eax), 1 */ /* 0x36103E8F: test ah, 1 */
   7705     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7706     _cf = 0;
   7707     _flag_k = FK_NARROW(FK_TEST, 24);
   7708 L_36103E92:
   7709     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103EE8; /* 0x36103E92: je 0x36103ee8 */
   7710 L_36103E94:
   7711     ecx = ebp + (-0x34); /* 0x36103E94: lea ecx, [ebp - 0x34] */
   7712 L_36103E97:
   7713     PUSH32(esp, ecx); /* 0x36103E97: push ecx */
   7714 L_36103E98:
   7715     ecx = MEM32(esi + 0x20); /* 0x36103E98: mov ecx, dword ptr [esi + 0x20] */
   7716 L_36103E9B:
   7717     RECOMP_ICALL(0x36133FC0u); /* 0x36103E9B: call 0x36133fc0 */ /* not lifted */
   7718     RECOMP_FLAGS_IN();
   7719 L_36103EA0:
   7720     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36103EA0: fld dword ptr [ebp - 0x1c] */
   7721 L_36103EA3:
   7722     edx = MEM32(ebp + (-0x10)); /* 0x36103EA3: mov edx, dword ptr [ebp - 0x10] */
   7723 L_36103EA6:
   7724     _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36103EA6: fmul dword ptr [0x36170eb8] */
   7725 L_36103EAC:
   7726     MEM32(ebp + (-0x18)) = eax; /* 0x36103EAC: mov dword ptr [ebp - 0x18], eax */
   7727 L_36103EAF:
   7728     ecx = MEM32(eax); /* 0x36103EAF: mov ecx, dword ptr [eax] */
   7729 L_36103EB1:
   7730     MEM32(edx) = ecx; /* 0x36103EB1: mov dword ptr [edx], ecx */
   7731 L_36103EB3:
   7732     ecx = MEM32(eax + 0x4); /* 0x36103EB3: mov ecx, dword ptr [eax + 4] */
   7733 L_36103EB6:
   7734     MEM32(edx + 0x4) = ecx; /* 0x36103EB6: mov dword ptr [edx + 4], ecx */
   7735 L_36103EB9:
   7736     eax = MEM32(eax + 0x8); /* 0x36103EB9: mov eax, dword ptr [eax + 8] */
   7737 L_36103EBC:
   7738     MEM32(edx + 0x8) = eax; /* 0x36103EBC: mov dword ptr [edx + 8], eax */
   7739 L_36103EBF:
   7740     ecx = MEM32(esi + 0x2C); /* 0x36103EBF: mov ecx, dword ptr [esi + 0x2c] */
   7741 L_36103EC2:
   7742     eax = MEM32(ebp + (-0x18)); /* 0x36103EC2: mov eax, dword ptr [ebp - 0x18] */
   7743 L_36103EC5:
   7744     edx = MEM32(eax); /* 0x36103EC5: mov edx, dword ptr [eax] */
   7745 L_36103EC7:
   7746     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7747     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7748     ecx = ecx + ebx; /* 0x36103EC7: add ecx, ebx */
   7749     _flag_k = FK_ADD;
   7750 L_36103EC9:
   7751     MEM32(ecx) = edx; /* 0x36103EC9: mov dword ptr [ecx], edx */
   7752 L_36103ECB:
   7753     edx = MEM32(eax + 0x4); /* 0x36103ECB: mov edx, dword ptr [eax + 4] */
   7754 L_36103ECE:
   7755     MEM32(ecx + 0x4) = edx; /* 0x36103ECE: mov dword ptr [ecx + 4], edx */
   7756 L_36103ED1:
   7757     eax = MEM32(eax + 0x8); /* 0x36103ED1: mov eax, dword ptr [eax + 8] */
   7758 L_36103ED4:
   7759     MEM32(ecx + 0x8) = eax; /* 0x36103ED4: mov dword ptr [ecx + 8], eax */
   7760 L_36103ED7:
   7761     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103ED7: call 0x3615fd8c */ /* not lifted */
   7762     RECOMP_FLAGS_IN();
   7763 L_36103EDC:
   7764     ecx = MEM32(esi + 0x2C); /* 0x36103EDC: mov ecx, dword ptr [esi + 0x2c] */
   7765 L_36103EDF:
   7766     MEM32(ecx + ebx + 0x18) = eax; /* 0x36103EDF: mov dword ptr [ecx + ebx + 0x18], eax */
   7767 L_36103EE3:
   7768     goto L_36103FC0; /* 0x36103EE3: jmp 0x36103fc0 */
   7769 L_36103EE8:
   7770     edx = MEM32(esi + 0x2C); /* 0x36103EE8: mov edx, dword ptr [esi + 0x2c] */
   7771 L_36103EEB:
   7772     eax = MEM32(ebp + (-0x10)); /* 0x36103EEB: mov eax, dword ptr [ebp - 0x10] */
   7773 L_36103EEE:
   7774     MEM32(edx + ebx + 0x18) = 5; /* 0x36103EEE: mov dword ptr [edx + ebx + 0x18], 5 */
   7775 L_36103EF6:
   7776     PUSH32(esp, eax); /* 0x36103EF6: push eax */
   7777 L_36103EF7:
   7778     MEM32(edi + (-0x20)) = ecx; /* 0x36103EF7: mov dword ptr [edi - 0x20], ecx */
   7779 L_36103EFA:
   7780     RECOMP_ICALL(0x360FC710u); /* 0x36103EFA: call 0x360fc710 */ /* not lifted */
   7781     RECOMP_FLAGS_IN();
   7782 L_36103EFF:
   7783     fp_push(*(float*)&MEM32(esi + 0x128)); /* 0x36103EFF: fld dword ptr [esi + 0x128] */
   7784 L_36103F05:
   7785     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36103F05: fmul dword ptr [0x36170464] */
   7786 L_36103F0B:
   7787     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7789     esp = esp + 4; /* 0x36103F0B: add esp, 4 */
   7790     _flag_k = FK_ADD;
   7791 L_36103F0E:
   7792     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103F0E: faddp st(1) */
   7793 L_36103F10:
   7794     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103F10: fstp dword ptr [edi] */
   7795 L_36103F12:
   7796     MEM32(edi + 0x40) = 2; /* 0x36103F12: mov dword ptr [edi + 0x40], 2 */
   7797 L_36103F19:
   7798     ecx = MEM32(ebp + (-0x10)); /* 0x36103F19: mov ecx, dword ptr [ebp - 0x10] */
   7799 L_36103F1C:
   7800     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36103F1C: fld dword ptr [ecx + 4] */
   7801 L_36103F1F:
   7802     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x36103F1F: fcomp dword ptr [edi] */
   7803     fp_pop();
   7804 L_36103F21:
   7805     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F21: fnstsw ax */
   7806 L_36103F23:
   7807     /* test HI8(eax), 0x41u */ /* 0x36103F23: test ah, 0x41 */
   7808     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7809     _cf = 0;
   7810     _flag_k = FK_NARROW(FK_TEST, 24);
   7811 L_36103F26:
   7812     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103F54; /* 0x36103F26: jne 0x36103f54 */
   7813 L_36103F28:
   7814     edx = MEM32(esi + 0x2C); /* 0x36103F28: mov edx, dword ptr [esi + 0x2c] */
   7815 L_36103F2B:
   7816     eax = MEM32(ecx); /* 0x36103F2B: mov eax, dword ptr [ecx] */
   7817 L_36103F2D:
   7818     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   7819     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7820     edx = edx + ebx; /* 0x36103F2D: add edx, ebx */
   7821     _flag_k = FK_ADD;
   7822 L_36103F2F:
   7823     MEM32(edx) = eax; /* 0x36103F2F: mov dword ptr [edx], eax */
   7824 L_36103F31:
   7825     eax = MEM32(ecx + 0x4); /* 0x36103F31: mov eax, dword ptr [ecx + 4] */
   7826 L_36103F34:
   7827     MEM32(edx + 0x4) = eax; /* 0x36103F34: mov dword ptr [edx + 4], eax */
   7828 L_36103F37:
   7829     ecx = MEM32(ecx + 0x8); /* 0x36103F37: mov ecx, dword ptr [ecx + 8] */
   7830 L_36103F3A:
   7831     eax = MEM32(ebp + (-0x10)); /* 0x36103F3A: mov eax, dword ptr [ebp - 0x10] */
   7832 L_36103F3D:
   7833     MEM32(edx + 0x8) = ecx; /* 0x36103F3D: mov dword ptr [edx + 8], ecx */
   7834 L_36103F40:
   7835     fp_push(*(float*)&MEM32(edi + (-0x20))); /* 0x36103F40: fld dword ptr [edi - 0x20] */
   7836 L_36103F43:
   7837     _st[0] -= (double)*(float*)ADDR(0x36170850); /* 0x36103F43: fsub dword ptr [0x36170850] */
   7838 L_36103F49:
   7839     { float _v = (float)_st[0]; *(float*)ADDR(edi + (-0x20)) = _v; } /* 0x36103F49: fst dword ptr [edi - 0x20] */
   7840 L_36103F4C:
   7841     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x36103F4C: fadd dword ptr [eax + 4] */
   7842 L_36103F4F:
   7843     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36103F4F: fstp dword ptr [eax + 4] */
   7844 L_36103F52:
   7845     goto L_36103FC0; /* 0x36103F52: jmp 0x36103fc0 */
   7846 L_36103F54:
   7847     edx = MEM32(edi); /* 0x36103F54: mov edx, dword ptr [edi] */
   7848 L_36103F56:
   7849     MEM32(ecx + 0x4) = edx; /* 0x36103F56: mov dword ptr [ecx + 4], edx */
   7850 L_36103F59:
   7851     eax = MEM32(esi + 0x2C); /* 0x36103F59: mov eax, dword ptr [esi + 0x2c] */
   7852 L_36103F5C:
   7853     edx = MEM32(ecx); /* 0x36103F5C: mov edx, dword ptr [ecx] */
   7854 L_36103F5E:
   7855     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7856     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7857     eax = eax + ebx; /* 0x36103F5E: add eax, ebx */
   7858     _flag_k = FK_ADD;
   7859 L_36103F60:
   7860     MEM32(eax) = edx; /* 0x36103F60: mov dword ptr [eax], edx */
   7861 L_36103F62:
   7862     edx = MEM32(ecx + 0x4); /* 0x36103F62: mov edx, dword ptr [ecx + 4] */
   7863 L_36103F65:
   7864     MEM32(eax + 0x4) = edx; /* 0x36103F65: mov dword ptr [eax + 4], edx */
   7865 L_36103F68:
   7866     ecx = MEM32(ecx + 0x8); /* 0x36103F68: mov ecx, dword ptr [ecx + 8] */
   7867 L_36103F6B:
   7868     MEM32(eax + 0x8) = ecx; /* 0x36103F6B: mov dword ptr [eax + 8], ecx */
   7869 L_36103F6E:
   7870     edx = MEM32(esi + 0xC); /* 0x36103F6E: mov edx, dword ptr [esi + 0xc] */
   7871 L_36103F71:
   7872     MEM32(edi + 0x20) = edx; /* 0x36103F71: mov dword ptr [edi + 0x20], edx */
   7873 L_36103F74:
   7874     MEM32(edi + 0x40) = 3; /* 0x36103F74: mov dword ptr [edi + 0x40], 3 */
   7875 L_36103F7B:
   7876     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103F7B: fld dword ptr [esi + 0xc] */
   7877 L_36103F7E:
   7878     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103F7E: fsub dword ptr [edi + 0x20] */
   7879 L_36103F81:
   7880     _st[0] /= (double)*(float*)ADDR(esi + 0x16C); /* 0x36103F81: fdiv dword ptr [esi + 0x16c] */
   7881 L_36103F87:
   7882     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103F87: fcom dword ptr [0x36170380] */
   7883 L_36103F8D:
   7884     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F8D: fnstsw ax */
   7885 L_36103F8F:
   7886     /* test HI8(eax), 1 */ /* 0x36103F8F: test ah, 1 */
   7887     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7888     _cf = 0;
   7889     _flag_k = FK_NARROW(FK_TEST, 24);
   7890 L_36103F92:
   7891     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FAF; /* 0x36103F92: je 0x36103faf */
   7892 L_36103F94:
   7893     _st[0] *= (double)*(float*)ADDR(0x36175A38); /* 0x36103F94: fmul dword ptr [0x36175a38] */
   7894 L_36103F9A:
   7895     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103F9A: call 0x3615fd8c */ /* not lifted */
   7896     RECOMP_FLAGS_IN();
   7897 L_36103F9F:
   7898     edx = MEM32(esi + 0x2C); /* 0x36103F9F: mov edx, dword ptr [esi + 0x2c] */
   7899 L_36103FA2:
   7900     ecx = 5; /* 0x36103FA2: mov ecx, 5 */
   7901 L_36103FA7:
   7902     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7904     ecx = ecx - eax; /* 0x36103FA7: sub ecx, eax */
   7905     _flag_k = FK_CMP;
   7906 L_36103FA9:
   7907     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103FA9: mov dword ptr [edx + ebx + 0x18], ecx */
   7908 L_36103FAD:
   7909     goto L_36103FC0; /* 0x36103FAD: jmp 0x36103fc0 */
   7910 L_36103FAF:
   7911     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103FAF: fstp st(0) */
   7912 L_36103FB1:
   7913     eax = MEM32(esi + 0x2C); /* 0x36103FB1: mov eax, dword ptr [esi + 0x2c] */
   7914 L_36103FB4:
   7915     MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36103FB4: mov byte ptr [eax + ebx + 0x1c], 0 */
   7916 L_36103FB9:
   7917     MEM32(edi + 0x40) = 0; /* 0x36103FB9: mov dword ptr [edi + 0x40], 0 */
   7918 L_36103FC0:
   7919     edx = MEM32(ebp + (-0x10)); /* 0x36103FC0: mov edx, dword ptr [ebp - 0x10] */
   7920 L_36103FC3:
   7921     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   7922     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7923     edx = edx + 0xCu; /* 0x36103FC3: add edx, 0xc */
   7924     _flag_k = FK_ADD;
   7925 L_36103FC6:
   7926     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u);
   7927     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7928     ebx = ebx + 0x20u; /* 0x36103FC6: add ebx, 0x20 */
   7929     _flag_k = FK_ADD;
   7930 L_36103FC9:
   7931     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   7932     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7933     edi = edi + 4; /* 0x36103FC9: add edi, 4 */
   7934     _flag_k = FK_ADD;
   7935 L_36103FCC:
   7936     /* cmp ebx, 0x100u */ /* 0x36103FCC: cmp ebx, 0x100 */
   7937     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x100u);
   7938     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7939     _flag_k = FK_CMP;
   7940 L_36103FD2:
   7941     MEM32(ebp + (-0x10)) = edx; /* 0x36103FD2: mov dword ptr [ebp - 0x10], edx */
   7942 L_36103FD5:
   7943     RECOMP_BACKEDGE();
   7944     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36103DF5; /* 0x36103FD5: jl 0x36103df5 */
   7945 L_36103FDB:
   7946     ecx = ebp + (-0x34); /* 0x36103FDB: lea ecx, [ebp - 0x34] */
   7947 L_36103FDE:
   7948     PUSH32(esp, ecx); /* 0x36103FDE: push ecx */
   7949 L_36103FDF:
   7950     ecx = MEM32(esi + 0x20); /* 0x36103FDF: mov ecx, dword ptr [esi + 0x20] */
   7951 L_36103FE2:
   7952     RECOMP_ICALL(0x36133E80u); /* 0x36103FE2: call 0x36133e80 */ /* not lifted */
   7953     RECOMP_FLAGS_IN();
   7954 L_36103FE7:
   7955     ecx = MEM32(esi + 0x28); /* 0x36103FE7: mov ecx, dword ptr [esi + 0x28] */
   7956 L_36103FEA:
   7957     edi = MEM32(eax); /* 0x36103FEA: mov edi, dword ptr [eax] */
   7958 L_36103FEC:
   7959     edx = ecx + 0x78; /* 0x36103FEC: lea edx, [ecx + 0x78] */
   7960 L_36103FEF:
   7961     MEM32(edx) = edi; /* 0x36103FEF: mov dword ptr [edx], edi */
   7962 L_36103FF1:
   7963     edi = MEM32(eax + 0x4); /* 0x36103FF1: mov edi, dword ptr [eax + 4] */
   7964 L_36103FF4:
   7965     MEM32(edx + 0x4) = edi; /* 0x36103FF4: mov dword ptr [edx + 4], edi */
   7966 L_36103FF7:
   7967     eax = MEM32(eax + 0x8); /* 0x36103FF7: mov eax, dword ptr [eax + 8] */
   7968 L_36103FFA:
   7969     PUSH32(esp, 1); /* 0x36103FFA: push 1 */
   7970 L_36103FFC:
   7971     MEM32(edx + 0x8) = eax; /* 0x36103FFC: mov dword ptr [edx + 8], eax */
   7972 L_36103FFF:
   7973     edx = MEM32(ecx); /* 0x36103FFF: mov edx, dword ptr [ecx] */
   7974 L_36104001:
   7975     PUSH32(esp, 1); /* 0x36104001: push 1 */
   7976 L_36104003:
   7977     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36104003: call dword ptr [edx + 0x2c] */
   7978     RECOMP_FLAGS_IN();
   7979 L_36104006:
   7980     ecx = MEM32(esi + 0x20); /* 0x36104006: mov ecx, dword ptr [esi + 0x20] */
   7981 L_36104009:
   7982     eax = ebp + (-0x84); /* 0x36104009: lea eax, [ebp - 0x84] */
   7983 L_3610400F:
   7984     PUSH32(esp, eax); /* 0x3610400F: push eax */
   7985 L_36104010:
   7986     RECOMP_ICALL(0x36133DC0u); /* 0x36104010: call 0x36133dc0 */ /* not lifted */
   7987     RECOMP_FLAGS_IN();
   7988 L_36104015:
   7989     PUSH32(esp, eax); /* 0x36104015: push eax */
   7990 L_36104016:
   7991     ecx = ebp + (-0x44); /* 0x36104016: lea ecx, [ebp - 0x44] */
   7992 L_36104019:
   7993     MEM32(ebp + (-0x4)) = 0; /* 0x36104019: mov dword ptr [ebp - 4], 0 */
   7994 L_36104020:
   7995     RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36104020: call dword ptr [0x361701a4] */
   7996     RECOMP_FLAGS_IN();
   7997 L_36104026:
   7998     esi = MEM32(esi + 0x28); /* 0x36104026: mov esi, dword ptr [esi + 0x28] */
   7999 L_36104029:
   8000     edx = MEM32(eax); /* 0x36104029: mov edx, dword ptr [eax] */
   8001 L_3610402B:
   8002     ecx = esi + 0x84; /* 0x3610402B: lea ecx, [esi + 0x84] */
   8003 L_36104031:
   8004     MEM32(ecx) = edx; /* 0x36104031: mov dword ptr [ecx], edx */
   8005 L_36104033:
   8006     edx = MEM32(eax + 0x4); /* 0x36104033: mov edx, dword ptr [eax + 4] */
   8007 L_36104036:
   8008     MEM32(ecx + 0x4) = edx; /* 0x36104036: mov dword ptr [ecx + 4], edx */
   8009 L_36104039:
   8010     edx = MEM32(eax + 0x8); /* 0x36104039: mov edx, dword ptr [eax + 8] */
   8011 L_3610403C:
   8012     MEM32(ecx + 0x8) = edx; /* 0x3610403C: mov dword ptr [ecx + 8], edx */
   8013 L_3610403F:
   8014     eax = MEM32(eax + 0xC); /* 0x3610403F: mov eax, dword ptr [eax + 0xc] */
   8015 L_36104042:
   8016     edx = MEM32(esi); /* 0x36104042: mov edx, dword ptr [esi] */
   8017 L_36104044:
   8018     PUSH32(esp, 1); /* 0x36104044: push 1 */
   8019 L_36104046:
   8020     MEM32(ecx + 0xC) = eax; /* 0x36104046: mov dword ptr [ecx + 0xc], eax */
   8021 L_36104049:
   8022     PUSH32(esp, 2); /* 0x36104049: push 2 */
   8023 L_3610404B:
   8024     ecx = esi; /* 0x3610404B: mov ecx, esi */
   8025 L_3610404D:
   8026     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610404D: call dword ptr [edx + 0x2c] */
   8027     RECOMP_FLAGS_IN();
   8028 L_36104050:
   8029     edi = POP32_VAL(esp); /* 0x36104050: pop edi */
   8030 L_36104051:
   8031     ebx = POP32_VAL(esp); /* 0x36104051: pop ebx */
   8032 L_36104052:
   8033     ecx = MEM32(ebp + (-0xC)); /* 0x36104052: mov ecx, dword ptr [ebp - 0xc] */
   8034 L_36104055:
   8035     esi = POP32_VAL(esp); /* 0x36104055: pop esi */
   8036 L_36104056:
   8037     MEM32(FS_BASE + (0)) = ecx; /* 0x36104056: mov dword ptr fs:[0], ecx */
   8038 L_3610405D:
   8039     esp = ebp; /* 0x3610405D: mov esp, ebp */
   8040 L_3610405F:
   8041     ebp = POP32_VAL(esp); /* 0x3610405F: pop ebp */
   8042 L_36104060:
   8043     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104060: ret  */
   8044   _ljump:
   8045     switch (_itail_tgt) {
   8046       case 0x36103D60u: goto L_36103D60;
   8047       case 0x36103D61u: goto L_36103D61;
   8048       case 0x36103D63u: goto L_36103D63;
   8049       case 0x36103D65u: goto L_36103D65;
   8050       case 0x36103D6Au: goto L_36103D6A;
   8051       case 0x36103D70u: goto L_36103D70;
   8052       case 0x36103D71u: goto L_36103D71;
   8053       case 0x36103D78u: goto L_36103D78;
   8054       case 0x36103D7Bu: goto L_36103D7B;
   8055       case 0x36103D7Cu: goto L_36103D7C;
   8056       case 0x36103D7Eu: goto L_36103D7E;
   8057       case 0x36103D83u: goto L_36103D83;
   8058       case 0x36103D86u: goto L_36103D86;
   8059       case 0x36103D88u: goto L_36103D88;
   8060       case 0x36103D8Au: goto L_36103D8A;
   8061       case 0x36103D8Du: goto L_36103D8D;
   8062       case 0x36103D8Fu: goto L_36103D8F;
   8063       case 0x36103D95u: goto L_36103D95;
   8064       case 0x36103D98u: goto L_36103D98;
   8065       case 0x36103D9Fu: goto L_36103D9F;
   8066       case 0x36103DA5u: goto L_36103DA5;
   8067       case 0x36103DA9u: goto L_36103DA9;
   8068       case 0x36103DACu: goto L_36103DAC;
   8069       case 0x36103DAFu: goto L_36103DAF;
   8070       case 0x36103DB4u: goto L_36103DB4;
   8071       case 0x36103DB6u: goto L_36103DB6;
   8072       case 0x36103DB8u: goto L_36103DB8;
   8073       case 0x36103DBBu: goto L_36103DBB;
   8074       case 0x36103DBEu: goto L_36103DBE;
   8075       case 0x36103DC5u: goto L_36103DC5;
   8076       case 0x36103DCBu: goto L_36103DCB;
   8077       case 0x36103DCCu: goto L_36103DCC;
   8078       case 0x36103DD2u: goto L_36103DD2;
   8079       case 0x36103DD4u: goto L_36103DD4;
   8080       case 0x36103DD5u: goto L_36103DD5;
   8081       case 0x36103DD8u: goto L_36103DD8;
   8082       case 0x36103DDBu: goto L_36103DDB;
   8083       case 0x36103DDDu: goto L_36103DDD;
   8084       case 0x36103DE0u: goto L_36103DE0;
   8085       case 0x36103DE2u: goto L_36103DE2;
   8086       case 0x36103DE9u: goto L_36103DE9;
   8087       case 0x36103DECu: goto L_36103DEC;
   8088       case 0x36103DEFu: goto L_36103DEF;
   8089       case 0x36103DF5u: goto L_36103DF5;
   8090       case 0x36103DF8u: goto L_36103DF8;
   8091       case 0x36103DFBu: goto L_36103DFB;
   8092       case 0x36103E01u: goto L_36103E01;
   8093       case 0x36103E08u: goto L_36103E08;
   8094       case 0x36103E0Bu: goto L_36103E0B;
   8095       case 0x36103E0Du: goto L_36103E0D;
   8096       case 0x36103E13u: goto L_36103E13;
   8097       case 0x36103E16u: goto L_36103E16;
   8098       case 0x36103E19u: goto L_36103E19;
   8099       case 0x36103E1Au: goto L_36103E1A;
   8100       case 0x36103E1Fu: goto L_36103E1F;
   8101       case 0x36103E21u: goto L_36103E21;
   8102       case 0x36103E24u: goto L_36103E24;
   8103       case 0x36103E26u: goto L_36103E26;
   8104       case 0x36103E29u: goto L_36103E29;
   8105       case 0x36103E2Cu: goto L_36103E2C;
   8106       case 0x36103E2Fu: goto L_36103E2F;
   8107       case 0x36103E32u: goto L_36103E32;
   8108       case 0x36103E35u: goto L_36103E35;
   8109       case 0x36103E38u: goto L_36103E38;
   8110       case 0x36103E3Bu: goto L_36103E3B;
   8111       case 0x36103E42u: goto L_36103E42;
   8112       case 0x36103E45u: goto L_36103E45;
   8113       case 0x36103E48u: goto L_36103E48;
   8114       case 0x36103E4Eu: goto L_36103E4E;
   8115       case 0x36103E50u: goto L_36103E50;
   8116       case 0x36103E52u: goto L_36103E52;
   8117       case 0x36103E54u: goto L_36103E54;
   8118       case 0x36103E57u: goto L_36103E57;
   8119       case 0x36103E5Au: goto L_36103E5A;
   8120       case 0x36103E5Du: goto L_36103E5D;
   8121       case 0x36103E60u: goto L_36103E60;
   8122       case 0x36103E63u: goto L_36103E63;
   8123       case 0x36103E65u: goto L_36103E65;
   8124       case 0x36103E69u: goto L_36103E69;
   8125       case 0x36103E6Cu: goto L_36103E6C;
   8126       case 0x36103E71u: goto L_36103E71;
   8127       case 0x36103E74u: goto L_36103E74;
   8128       case 0x36103E76u: goto L_36103E76;
   8129       case 0x36103E78u: goto L_36103E78;
   8130       case 0x36103E7Bu: goto L_36103E7B;
   8131       case 0x36103E7Eu: goto L_36103E7E;
   8132       case 0x36103E84u: goto L_36103E84;
   8133       case 0x36103E87u: goto L_36103E87;
   8134       case 0x36103E8Du: goto L_36103E8D;
   8135       case 0x36103E8Fu: goto L_36103E8F;
   8136       case 0x36103E92u: goto L_36103E92;
   8137       case 0x36103E94u: goto L_36103E94;
   8138       case 0x36103E97u: goto L_36103E97;
   8139       case 0x36103E98u: goto L_36103E98;
   8140       case 0x36103E9Bu: goto L_36103E9B;
   8141       case 0x36103EA0u: goto L_36103EA0;
   8142       case 0x36103EA3u: goto L_36103EA3;
   8143       case 0x36103EA6u: goto L_36103EA6;
   8144       case 0x36103EACu: goto L_36103EAC;
   8145       case 0x36103EAFu: goto L_36103EAF;
   8146       case 0x36103EB1u: goto L_36103EB1;
   8147       case 0x36103EB3u: goto L_36103EB3;
   8148       case 0x36103EB6u: goto L_36103EB6;
   8149       case 0x36103EB9u: goto L_36103EB9;
   8150       case 0x36103EBCu: goto L_36103EBC;
   8151       case 0x36103EBFu: goto L_36103EBF;
   8152       case 0x36103EC2u: goto L_36103EC2;
   8153       case 0x36103EC5u: goto L_36103EC5;
   8154       case 0x36103EC7u: goto L_36103EC7;
   8155       case 0x36103EC9u: goto L_36103EC9;
   8156       case 0x36103ECBu: goto L_36103ECB;
   8157       case 0x36103ECEu: goto L_36103ECE;
   8158       case 0x36103ED1u: goto L_36103ED1;
   8159       case 0x36103ED4u: goto L_36103ED4;
   8160       case 0x36103ED7u: goto L_36103ED7;
   8161       case 0x36103EDCu: goto L_36103EDC;
   8162       case 0x36103EDFu: goto L_36103EDF;
   8163       case 0x36103EE3u: goto L_36103EE3;
   8164       case 0x36103EE8u: goto L_36103EE8;
   8165       case 0x36103EEBu: goto L_36103EEB;
   8166       case 0x36103EEEu: goto L_36103EEE;
   8167       case 0x36103EF6u: goto L_36103EF6;
   8168       case 0x36103EF7u: goto L_36103EF7;
   8169       case 0x36103EFAu: goto L_36103EFA;
   8170       case 0x36103EFFu: goto L_36103EFF;
   8171       case 0x36103F05u: goto L_36103F05;
   8172       case 0x36103F0Bu: goto L_36103F0B;
   8173       case 0x36103F0Eu: goto L_36103F0E;
   8174       case 0x36103F10u: goto L_36103F10;
   8175       case 0x36103F12u: goto L_36103F12;
   8176       case 0x36103F19u: goto L_36103F19;
   8177       case 0x36103F1Cu: goto L_36103F1C;
   8178       case 0x36103F1Fu: goto L_36103F1F;
   8179       case 0x36103F21u: goto L_36103F21;
   8180       case 0x36103F23u: goto L_36103F23;
   8181       case 0x36103F26u: goto L_36103F26;
   8182       case 0x36103F28u: goto L_36103F28;
   8183       case 0x36103F2Bu: goto L_36103F2B;
   8184       case 0x36103F2Du: goto L_36103F2D;
   8185       case 0x36103F2Fu: goto L_36103F2F;
   8186       case 0x36103F31u: goto L_36103F31;
   8187       case 0x36103F34u: goto L_36103F34;
   8188       case 0x36103F37u: goto L_36103F37;
   8189       case 0x36103F3Au: goto L_36103F3A;
   8190       case 0x36103F3Du: goto L_36103F3D;
   8191       case 0x36103F40u: goto L_36103F40;
   8192       case 0x36103F43u: goto L_36103F43;
   8193       case 0x36103F49u: goto L_36103F49;
   8194       case 0x36103F4Cu: goto L_36103F4C;
   8195       case 0x36103F4Fu: goto L_36103F4F;
   8196       case 0x36103F52u: goto L_36103F52;
   8197       case 0x36103F54u: goto L_36103F54;
   8198       case 0x36103F56u: goto L_36103F56;
   8199       case 0x36103F59u: goto L_36103F59;
   8200       case 0x36103F5Cu: goto L_36103F5C;
   8201       case 0x36103F5Eu: goto L_36103F5E;
   8202       case 0x36103F60u: goto L_36103F60;
   8203       case 0x36103F62u: goto L_36103F62;
   8204       case 0x36103F65u: goto L_36103F65;
   8205       case 0x36103F68u: goto L_36103F68;
   8206       case 0x36103F6Bu: goto L_36103F6B;
   8207       case 0x36103F6Eu: goto L_36103F6E;
   8208       case 0x36103F71u: goto L_36103F71;
   8209       case 0x36103F74u: goto L_36103F74;
   8210       case 0x36103F7Bu: goto L_36103F7B;
   8211       case 0x36103F7Eu: goto L_36103F7E;
   8212       case 0x36103F81u: goto L_36103F81;
   8213       case 0x36103F87u: goto L_36103F87;
   8214       case 0x36103F8Du: goto L_36103F8D;
   8215       case 0x36103F8Fu: goto L_36103F8F;
   8216       case 0x36103F92u: goto L_36103F92;
   8217       case 0x36103F94u: goto L_36103F94;
   8218       case 0x36103F9Au: goto L_36103F9A;
   8219       case 0x36103F9Fu: goto L_36103F9F;
   8220       case 0x36103FA2u: goto L_36103FA2;
   8221       case 0x36103FA7u: goto L_36103FA7;
   8222       case 0x36103FA9u: goto L_36103FA9;
   8223       case 0x36103FADu: goto L_36103FAD;
   8224       case 0x36103FAFu: goto L_36103FAF;
   8225       case 0x36103FB1u: goto L_36103FB1;
   8226       case 0x36103FB4u: goto L_36103FB4;
   8227       case 0x36103FB9u: goto L_36103FB9;
   8228       case 0x36103FC0u: goto L_36103FC0;
   8229       case 0x36103FC3u: goto L_36103FC3;
   8230       case 0x36103FC6u: goto L_36103FC6;
   8231       case 0x36103FC9u: goto L_36103FC9;
   8232       case 0x36103FCCu: goto L_36103FCC;
   8233       case 0x36103FD2u: goto L_36103FD2;
   8234       case 0x36103FD5u: goto L_36103FD5;
   8235       case 0x36103FDBu: goto L_36103FDB;
   8236       case 0x36103FDEu: goto L_36103FDE;
   8237       case 0x36103FDFu: goto L_36103FDF;
   8238       case 0x36103FE2u: goto L_36103FE2;
   8239       case 0x36103FE7u: goto L_36103FE7;
   8240       case 0x36103FEAu: goto L_36103FEA;
   8241       case 0x36103FECu: goto L_36103FEC;
   8242       case 0x36103FEFu: goto L_36103FEF;
   8243       case 0x36103FF1u: goto L_36103FF1;
   8244       case 0x36103FF4u: goto L_36103FF4;
   8245       case 0x36103FF7u: goto L_36103FF7;
   8246       case 0x36103FFAu: goto L_36103FFA;
   8247       case 0x36103FFCu: goto L_36103FFC;
   8248       case 0x36103FFFu: goto L_36103FFF;
   8249       case 0x36104001u: goto L_36104001;
   8250       case 0x36104003u: goto L_36104003;
   8251       case 0x36104006u: goto L_36104006;
   8252       case 0x36104009u: goto L_36104009;
   8253       case 0x3610400Fu: goto L_3610400F;
   8254       case 0x36104010u: goto L_36104010;
   8255       case 0x36104015u: goto L_36104015;
   8256       case 0x36104016u: goto L_36104016;
   8257       case 0x36104019u: goto L_36104019;
   8258       case 0x36104020u: goto L_36104020;
   8259       case 0x36104026u: goto L_36104026;
   8260       case 0x36104029u: goto L_36104029;
   8261       case 0x3610402Bu: goto L_3610402B;
   8262       case 0x36104031u: goto L_36104031;
   8263       case 0x36104033u: goto L_36104033;
   8264       case 0x36104036u: goto L_36104036;
   8265       case 0x36104039u: goto L_36104039;
   8266       case 0x3610403Cu: goto L_3610403C;
   8267       case 0x3610403Fu: goto L_3610403F;
   8268       case 0x36104042u: goto L_36104042;
   8269       case 0x36104044u: goto L_36104044;
   8270       case 0x36104046u: goto L_36104046;
   8271       case 0x36104049u: goto L_36104049;
   8272       case 0x3610404Bu: goto L_3610404B;
   8273       case 0x3610404Du: goto L_3610404D;
   8274       case 0x36104050u: goto L_36104050;
   8275       case 0x36104051u: goto L_36104051;
   8276       case 0x36104052u: goto L_36104052;
   8277       case 0x36104055u: goto L_36104055;
   8278       case 0x36104056u: goto L_36104056;
   8279       case 0x3610405Du: goto L_3610405D;
   8280       case 0x3610405Fu: goto L_3610405F;
   8281       case 0x36104060u: goto L_36104060;
   8282       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8283     }
   8284     RECOMP_REGS_OUT();
   8285 }
   8286 
   8287 void sub_36103DF5(void) {
   8288     int _fpu_cmp = 0;
   8289     uint32_t _cf = 0;
   8290     int _df = 1;
   8291     uint32_t _flag_k = FK_NONE;
   8292     uint32_t _flag_a = 0, _flag_b = 0;
   8293     uint32_t _itail_tgt = 0;
   8294     RECOMP_REGS_LOCALS
   8295     RECOMP_ENTER(0x36103DF5u);
   8296 
   8297 L_36103DF5:
   8298     eax = MEM32(edi + 0x40); /* 0x36103DF5: mov eax, dword ptr [edi + 0x40] */
   8299 L_36103DF8:
   8300     /* cmp eax, 3 */ /* 0x36103DF8: cmp eax, 3 */
   8301     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   8302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8303     _flag_k = FK_CMP;
   8304 L_36103DFB:
   8305     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36103FB1; /* 0x36103DFB: ja 0x36103fb1 */
   8306 L_36103E01:
   8307     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36104064)); goto _ljump; }
   8308 L_36103E08:
   8309     eax = MEM32(ebp + (-0x14)); /* 0x36103E08: mov eax, dword ptr [ebp - 0x14] */
   8310 L_36103E0B:
   8311     /* test eax, eax */ /* 0x36103E0B: test eax, eax */
   8312     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8313     _cf = 0;
   8314     _flag_k = FK_TEST;
   8315 L_36103E0D:
   8316     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FC0; /* 0x36103E0D: je 0x36103fc0 */
   8317 L_36103E13:
   8318     ecx = MEM32(esi + 0x20); /* 0x36103E13: mov ecx, dword ptr [esi + 0x20] */
   8319 L_36103E16:
   8320     edx = ebp + (-0x28); /* 0x36103E16: lea edx, [ebp - 0x28] */
   8321 L_36103E19:
   8322     PUSH32(esp, edx); /* 0x36103E19: push edx */
   8323 L_36103E1A:
   8324     RECOMP_ICALL(0x36133FC0u); /* 0x36103E1A: call 0x36133fc0 */ /* not lifted */
   8325     RECOMP_FLAGS_IN();
   8326 L_36103E1F:
   8327     edx = MEM32(eax); /* 0x36103E1F: mov edx, dword ptr [eax] */
   8328 L_36103E21:
   8329     ecx = MEM32(ebp + (-0x10)); /* 0x36103E21: mov ecx, dword ptr [ebp - 0x10] */
   8330 L_36103E24:
   8331     MEM32(ecx) = edx; /* 0x36103E24: mov dword ptr [ecx], edx */
   8332 L_36103E26:
   8333     edx = MEM32(eax + 0x4); /* 0x36103E26: mov edx, dword ptr [eax + 4] */
   8334 L_36103E29:
   8335     MEM32(ecx + 0x4) = edx; /* 0x36103E29: mov dword ptr [ecx + 4], edx */
   8336 L_36103E2C:
   8337     eax = MEM32(eax + 0x8); /* 0x36103E2C: mov eax, dword ptr [eax + 8] */
   8338 L_36103E2F:
   8339     MEM32(ecx + 0x8) = eax; /* 0x36103E2F: mov dword ptr [ecx + 8], eax */
   8340 L_36103E32:
   8341     ecx = MEM32(esi + 0xC); /* 0x36103E32: mov ecx, dword ptr [esi + 0xc] */
   8342 L_36103E35:
   8343     MEM32(edi + 0x20) = ecx; /* 0x36103E35: mov dword ptr [edi + 0x20], ecx */
   8344 L_36103E38:
   8345     ecx = MEM32(ebp + (-0x10)); /* 0x36103E38: mov ecx, dword ptr [ebp - 0x10] */
   8346 L_36103E3B:
   8347     MEM32(edi + 0x40) = 1; /* 0x36103E3B: mov dword ptr [edi + 0x40], 1 */
   8348 L_36103E42:
   8349     edx = MEM32(esi + 0xC); /* 0x36103E42: mov edx, dword ptr [esi + 0xc] */
   8350 L_36103E45:
   8351     eax = MEM32(esi + 0x2C); /* 0x36103E45: mov eax, dword ptr [esi + 0x2c] */
   8352 L_36103E48:
   8353     MEM32(esi + 0x110) = edx; /* 0x36103E48: mov dword ptr [esi + 0x110], edx */
   8354 L_36103E4E:
   8355     edx = MEM32(ecx); /* 0x36103E4E: mov edx, dword ptr [ecx] */
   8356 L_36103E50:
   8357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8358     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8359     eax = eax + ebx; /* 0x36103E50: add eax, ebx */
   8360     _flag_k = FK_ADD;
   8361 L_36103E52:
   8362     MEM32(eax) = edx; /* 0x36103E52: mov dword ptr [eax], edx */
   8363 L_36103E54:
   8364     edx = MEM32(ecx + 0x4); /* 0x36103E54: mov edx, dword ptr [ecx + 4] */
   8365 L_36103E57:
   8366     MEM32(eax + 0x4) = edx; /* 0x36103E57: mov dword ptr [eax + 4], edx */
   8367 L_36103E5A:
   8368     ecx = MEM32(ecx + 0x8); /* 0x36103E5A: mov ecx, dword ptr [ecx + 8] */
   8369 L_36103E5D:
   8370     MEM32(eax + 0x8) = ecx; /* 0x36103E5D: mov dword ptr [eax + 8], ecx */
   8371 L_36103E60:
   8372     edx = MEM32(esi + 0x2C); /* 0x36103E60: mov edx, dword ptr [esi + 0x2c] */
   8373 L_36103E63:
   8374     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8375     ecx = 0; /* 0x36103E63: xor ecx, ecx */
   8376     _cf = 0;
   8377     _flag_k = FK_TEST;
   8378 L_36103E65:
   8379     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103E65: mov dword ptr [edx + ebx + 0x18], ecx */
   8380 L_36103E69:
   8381     eax = MEM32(esi + 0x2C); /* 0x36103E69: mov eax, dword ptr [esi + 0x2c] */
   8382 L_36103E6C:
   8383     MEM8(eax + ebx + 0x1C) = (uint8_t)(1); /* 0x36103E6C: mov byte ptr [eax + ebx + 0x1c], 1 */
   8384 L_36103E71:
   8385     MEM32(ebp + (-0x14)) = ecx; /* 0x36103E71: mov dword ptr [ebp - 0x14], ecx */
   8386 L_36103E74:
   8387     goto L_36103E78; /* 0x36103E74: jmp 0x36103e78 */
   8388 L_36103E76:
   8389     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8390     ecx = 0; /* 0x36103E76: xor ecx, ecx */
   8391     _cf = 0;
   8392     _flag_k = FK_TEST;
   8393 L_36103E78:
   8394     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103E78: fld dword ptr [esi + 0xc] */
   8395 L_36103E7B:
   8396     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103E7B: fsub dword ptr [edi + 0x20] */
   8397 L_36103E7E:
   8398     _st[0] /= (double)*(float*)ADDR(esi + 0x168); /* 0x36103E7E: fdiv dword ptr [esi + 0x168] */
   8399 L_36103E84:
   8400     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36103E84: fst dword ptr [ebp - 0x1c] */
   8401 L_36103E87:
   8402     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103E87: fcomp dword ptr [0x36170380] */
   8403     fp_pop();
   8404 L_36103E8D:
   8405     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103E8D: fnstsw ax */
   8406 L_36103E8F:
   8407     /* test HI8(eax), 1 */ /* 0x36103E8F: test ah, 1 */
   8408     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8409     _cf = 0;
   8410     _flag_k = FK_NARROW(FK_TEST, 24);
   8411 L_36103E92:
   8412     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103EE8; /* 0x36103E92: je 0x36103ee8 */
   8413 L_36103E94:
   8414     ecx = ebp + (-0x34); /* 0x36103E94: lea ecx, [ebp - 0x34] */
   8415 L_36103E97:
   8416     PUSH32(esp, ecx); /* 0x36103E97: push ecx */
   8417 L_36103E98:
   8418     ecx = MEM32(esi + 0x20); /* 0x36103E98: mov ecx, dword ptr [esi + 0x20] */
   8419 L_36103E9B:
   8420     RECOMP_ICALL(0x36133FC0u); /* 0x36103E9B: call 0x36133fc0 */ /* not lifted */
   8421     RECOMP_FLAGS_IN();
   8422 L_36103EA0:
   8423     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36103EA0: fld dword ptr [ebp - 0x1c] */
   8424 L_36103EA3:
   8425     edx = MEM32(ebp + (-0x10)); /* 0x36103EA3: mov edx, dword ptr [ebp - 0x10] */
   8426 L_36103EA6:
   8427     _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36103EA6: fmul dword ptr [0x36170eb8] */
   8428 L_36103EAC:
   8429     MEM32(ebp + (-0x18)) = eax; /* 0x36103EAC: mov dword ptr [ebp - 0x18], eax */
   8430 L_36103EAF:
   8431     ecx = MEM32(eax); /* 0x36103EAF: mov ecx, dword ptr [eax] */
   8432 L_36103EB1:
   8433     MEM32(edx) = ecx; /* 0x36103EB1: mov dword ptr [edx], ecx */
   8434 L_36103EB3:
   8435     ecx = MEM32(eax + 0x4); /* 0x36103EB3: mov ecx, dword ptr [eax + 4] */
   8436 L_36103EB6:
   8437     MEM32(edx + 0x4) = ecx; /* 0x36103EB6: mov dword ptr [edx + 4], ecx */
   8438 L_36103EB9:
   8439     eax = MEM32(eax + 0x8); /* 0x36103EB9: mov eax, dword ptr [eax + 8] */
   8440 L_36103EBC:
   8441     MEM32(edx + 0x8) = eax; /* 0x36103EBC: mov dword ptr [edx + 8], eax */
   8442 L_36103EBF:
   8443     ecx = MEM32(esi + 0x2C); /* 0x36103EBF: mov ecx, dword ptr [esi + 0x2c] */
   8444 L_36103EC2:
   8445     eax = MEM32(ebp + (-0x18)); /* 0x36103EC2: mov eax, dword ptr [ebp - 0x18] */
   8446 L_36103EC5:
   8447     edx = MEM32(eax); /* 0x36103EC5: mov edx, dword ptr [eax] */
   8448 L_36103EC7:
   8449     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   8450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8451     ecx = ecx + ebx; /* 0x36103EC7: add ecx, ebx */
   8452     _flag_k = FK_ADD;
   8453 L_36103EC9:
   8454     MEM32(ecx) = edx; /* 0x36103EC9: mov dword ptr [ecx], edx */
   8455 L_36103ECB:
   8456     edx = MEM32(eax + 0x4); /* 0x36103ECB: mov edx, dword ptr [eax + 4] */
   8457 L_36103ECE:
   8458     MEM32(ecx + 0x4) = edx; /* 0x36103ECE: mov dword ptr [ecx + 4], edx */
   8459 L_36103ED1:
   8460     eax = MEM32(eax + 0x8); /* 0x36103ED1: mov eax, dword ptr [eax + 8] */
   8461 L_36103ED4:
   8462     MEM32(ecx + 0x8) = eax; /* 0x36103ED4: mov dword ptr [ecx + 8], eax */
   8463 L_36103ED7:
   8464     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103ED7: call 0x3615fd8c */ /* not lifted */
   8465     RECOMP_FLAGS_IN();
   8466 L_36103EDC:
   8467     ecx = MEM32(esi + 0x2C); /* 0x36103EDC: mov ecx, dword ptr [esi + 0x2c] */
   8468 L_36103EDF:
   8469     MEM32(ecx + ebx + 0x18) = eax; /* 0x36103EDF: mov dword ptr [ecx + ebx + 0x18], eax */
   8470 L_36103EE3:
   8471     goto L_36103FC0; /* 0x36103EE3: jmp 0x36103fc0 */
   8472 L_36103EE8:
   8473     edx = MEM32(esi + 0x2C); /* 0x36103EE8: mov edx, dword ptr [esi + 0x2c] */
   8474 L_36103EEB:
   8475     eax = MEM32(ebp + (-0x10)); /* 0x36103EEB: mov eax, dword ptr [ebp - 0x10] */
   8476 L_36103EEE:
   8477     MEM32(edx + ebx + 0x18) = 5; /* 0x36103EEE: mov dword ptr [edx + ebx + 0x18], 5 */
   8478 L_36103EF6:
   8479     PUSH32(esp, eax); /* 0x36103EF6: push eax */
   8480 L_36103EF7:
   8481     MEM32(edi + (-0x20)) = ecx; /* 0x36103EF7: mov dword ptr [edi - 0x20], ecx */
   8482 L_36103EFA:
   8483     RECOMP_ICALL(0x360FC710u); /* 0x36103EFA: call 0x360fc710 */ /* not lifted */
   8484     RECOMP_FLAGS_IN();
   8485 L_36103EFF:
   8486     fp_push(*(float*)&MEM32(esi + 0x128)); /* 0x36103EFF: fld dword ptr [esi + 0x128] */
   8487 L_36103F05:
   8488     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36103F05: fmul dword ptr [0x36170464] */
   8489 L_36103F0B:
   8490     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8491     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8492     esp = esp + 4; /* 0x36103F0B: add esp, 4 */
   8493     _flag_k = FK_ADD;
   8494 L_36103F0E:
   8495     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103F0E: faddp st(1) */
   8496 L_36103F10:
   8497     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103F10: fstp dword ptr [edi] */
   8498 L_36103F12:
   8499     MEM32(edi + 0x40) = 2; /* 0x36103F12: mov dword ptr [edi + 0x40], 2 */
   8500 L_36103F19:
   8501     ecx = MEM32(ebp + (-0x10)); /* 0x36103F19: mov ecx, dword ptr [ebp - 0x10] */
   8502 L_36103F1C:
   8503     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36103F1C: fld dword ptr [ecx + 4] */
   8504 L_36103F1F:
   8505     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x36103F1F: fcomp dword ptr [edi] */
   8506     fp_pop();
   8507 L_36103F21:
   8508     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F21: fnstsw ax */
   8509 L_36103F23:
   8510     /* test HI8(eax), 0x41u */ /* 0x36103F23: test ah, 0x41 */
   8511     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   8512     _cf = 0;
   8513     _flag_k = FK_NARROW(FK_TEST, 24);
   8514 L_36103F26:
   8515     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103F54; /* 0x36103F26: jne 0x36103f54 */
   8516 L_36103F28:
   8517     edx = MEM32(esi + 0x2C); /* 0x36103F28: mov edx, dword ptr [esi + 0x2c] */
   8518 L_36103F2B:
   8519     eax = MEM32(ecx); /* 0x36103F2B: mov eax, dword ptr [ecx] */
   8520 L_36103F2D:
   8521     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   8522     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8523     edx = edx + ebx; /* 0x36103F2D: add edx, ebx */
   8524     _flag_k = FK_ADD;
   8525 L_36103F2F:
   8526     MEM32(edx) = eax; /* 0x36103F2F: mov dword ptr [edx], eax */
   8527 L_36103F31:
   8528     eax = MEM32(ecx + 0x4); /* 0x36103F31: mov eax, dword ptr [ecx + 4] */
   8529 L_36103F34:
   8530     MEM32(edx + 0x4) = eax; /* 0x36103F34: mov dword ptr [edx + 4], eax */
   8531 L_36103F37:
   8532     ecx = MEM32(ecx + 0x8); /* 0x36103F37: mov ecx, dword ptr [ecx + 8] */
   8533 L_36103F3A:
   8534     eax = MEM32(ebp + (-0x10)); /* 0x36103F3A: mov eax, dword ptr [ebp - 0x10] */
   8535 L_36103F3D:
   8536     MEM32(edx + 0x8) = ecx; /* 0x36103F3D: mov dword ptr [edx + 8], ecx */
   8537 L_36103F40:
   8538     fp_push(*(float*)&MEM32(edi + (-0x20))); /* 0x36103F40: fld dword ptr [edi - 0x20] */
   8539 L_36103F43:
   8540     _st[0] -= (double)*(float*)ADDR(0x36170850); /* 0x36103F43: fsub dword ptr [0x36170850] */
   8541 L_36103F49:
   8542     { float _v = (float)_st[0]; *(float*)ADDR(edi + (-0x20)) = _v; } /* 0x36103F49: fst dword ptr [edi - 0x20] */
   8543 L_36103F4C:
   8544     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x36103F4C: fadd dword ptr [eax + 4] */
   8545 L_36103F4F:
   8546     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36103F4F: fstp dword ptr [eax + 4] */
   8547 L_36103F52:
   8548     goto L_36103FC0; /* 0x36103F52: jmp 0x36103fc0 */
   8549 L_36103F54:
   8550     edx = MEM32(edi); /* 0x36103F54: mov edx, dword ptr [edi] */
   8551 L_36103F56:
   8552     MEM32(ecx + 0x4) = edx; /* 0x36103F56: mov dword ptr [ecx + 4], edx */
   8553 L_36103F59:
   8554     eax = MEM32(esi + 0x2C); /* 0x36103F59: mov eax, dword ptr [esi + 0x2c] */
   8555 L_36103F5C:
   8556     edx = MEM32(ecx); /* 0x36103F5C: mov edx, dword ptr [ecx] */
   8557 L_36103F5E:
   8558     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8560     eax = eax + ebx; /* 0x36103F5E: add eax, ebx */
   8561     _flag_k = FK_ADD;
   8562 L_36103F60:
   8563     MEM32(eax) = edx; /* 0x36103F60: mov dword ptr [eax], edx */
   8564 L_36103F62:
   8565     edx = MEM32(ecx + 0x4); /* 0x36103F62: mov edx, dword ptr [ecx + 4] */
   8566 L_36103F65:
   8567     MEM32(eax + 0x4) = edx; /* 0x36103F65: mov dword ptr [eax + 4], edx */
   8568 L_36103F68:
   8569     ecx = MEM32(ecx + 0x8); /* 0x36103F68: mov ecx, dword ptr [ecx + 8] */
   8570 L_36103F6B:
   8571     MEM32(eax + 0x8) = ecx; /* 0x36103F6B: mov dword ptr [eax + 8], ecx */
   8572 L_36103F6E:
   8573     edx = MEM32(esi + 0xC); /* 0x36103F6E: mov edx, dword ptr [esi + 0xc] */
   8574 L_36103F71:
   8575     MEM32(edi + 0x20) = edx; /* 0x36103F71: mov dword ptr [edi + 0x20], edx */
   8576 L_36103F74:
   8577     MEM32(edi + 0x40) = 3; /* 0x36103F74: mov dword ptr [edi + 0x40], 3 */
   8578 L_36103F7B:
   8579     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103F7B: fld dword ptr [esi + 0xc] */
   8580 L_36103F7E:
   8581     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103F7E: fsub dword ptr [edi + 0x20] */
   8582 L_36103F81:
   8583     _st[0] /= (double)*(float*)ADDR(esi + 0x16C); /* 0x36103F81: fdiv dword ptr [esi + 0x16c] */
   8584 L_36103F87:
   8585     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103F87: fcom dword ptr [0x36170380] */
   8586 L_36103F8D:
   8587     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F8D: fnstsw ax */
   8588 L_36103F8F:
   8589     /* test HI8(eax), 1 */ /* 0x36103F8F: test ah, 1 */
   8590     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8591     _cf = 0;
   8592     _flag_k = FK_NARROW(FK_TEST, 24);
   8593 L_36103F92:
   8594     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FAF; /* 0x36103F92: je 0x36103faf */
   8595 L_36103F94:
   8596     _st[0] *= (double)*(float*)ADDR(0x36175A38); /* 0x36103F94: fmul dword ptr [0x36175a38] */
   8597 L_36103F9A:
   8598     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103F9A: call 0x3615fd8c */ /* not lifted */
   8599     RECOMP_FLAGS_IN();
   8600 L_36103F9F:
   8601     edx = MEM32(esi + 0x2C); /* 0x36103F9F: mov edx, dword ptr [esi + 0x2c] */
   8602 L_36103FA2:
   8603     ecx = 5; /* 0x36103FA2: mov ecx, 5 */
   8604 L_36103FA7:
   8605     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8607     ecx = ecx - eax; /* 0x36103FA7: sub ecx, eax */
   8608     _flag_k = FK_CMP;
   8609 L_36103FA9:
   8610     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103FA9: mov dword ptr [edx + ebx + 0x18], ecx */
   8611 L_36103FAD:
   8612     goto L_36103FC0; /* 0x36103FAD: jmp 0x36103fc0 */
   8613 L_36103FAF:
   8614     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103FAF: fstp st(0) */
   8615 L_36103FB1:
   8616     eax = MEM32(esi + 0x2C); /* 0x36103FB1: mov eax, dword ptr [esi + 0x2c] */
   8617 L_36103FB4:
   8618     MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36103FB4: mov byte ptr [eax + ebx + 0x1c], 0 */
   8619 L_36103FB9:
   8620     MEM32(edi + 0x40) = 0; /* 0x36103FB9: mov dword ptr [edi + 0x40], 0 */
   8621 L_36103FC0:
   8622     edx = MEM32(ebp + (-0x10)); /* 0x36103FC0: mov edx, dword ptr [ebp - 0x10] */
   8623 L_36103FC3:
   8624     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   8625     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8626     edx = edx + 0xCu; /* 0x36103FC3: add edx, 0xc */
   8627     _flag_k = FK_ADD;
   8628 L_36103FC6:
   8629     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u);
   8630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8631     ebx = ebx + 0x20u; /* 0x36103FC6: add ebx, 0x20 */
   8632     _flag_k = FK_ADD;
   8633 L_36103FC9:
   8634     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   8635     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8636     edi = edi + 4; /* 0x36103FC9: add edi, 4 */
   8637     _flag_k = FK_ADD;
   8638 L_36103FCC:
   8639     /* cmp ebx, 0x100u */ /* 0x36103FCC: cmp ebx, 0x100 */
   8640     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x100u);
   8641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8642     _flag_k = FK_CMP;
   8643 L_36103FD2:
   8644     MEM32(ebp + (-0x10)) = edx; /* 0x36103FD2: mov dword ptr [ebp - 0x10], edx */
   8645 L_36103FD5:
   8646     RECOMP_BACKEDGE();
   8647     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36103DF5; /* 0x36103FD5: jl 0x36103df5 */
   8648 L_36103FDB:
   8649     ecx = ebp + (-0x34); /* 0x36103FDB: lea ecx, [ebp - 0x34] */
   8650 L_36103FDE:
   8651     PUSH32(esp, ecx); /* 0x36103FDE: push ecx */
   8652 L_36103FDF:
   8653     ecx = MEM32(esi + 0x20); /* 0x36103FDF: mov ecx, dword ptr [esi + 0x20] */
   8654 L_36103FE2:
   8655     RECOMP_ICALL(0x36133E80u); /* 0x36103FE2: call 0x36133e80 */ /* not lifted */
   8656     RECOMP_FLAGS_IN();
   8657 L_36103FE7:
   8658     ecx = MEM32(esi + 0x28); /* 0x36103FE7: mov ecx, dword ptr [esi + 0x28] */
   8659 L_36103FEA:
   8660     edi = MEM32(eax); /* 0x36103FEA: mov edi, dword ptr [eax] */
   8661 L_36103FEC:
   8662     edx = ecx + 0x78; /* 0x36103FEC: lea edx, [ecx + 0x78] */
   8663 L_36103FEF:
   8664     MEM32(edx) = edi; /* 0x36103FEF: mov dword ptr [edx], edi */
   8665 L_36103FF1:
   8666     edi = MEM32(eax + 0x4); /* 0x36103FF1: mov edi, dword ptr [eax + 4] */
   8667 L_36103FF4:
   8668     MEM32(edx + 0x4) = edi; /* 0x36103FF4: mov dword ptr [edx + 4], edi */
   8669 L_36103FF7:
   8670     eax = MEM32(eax + 0x8); /* 0x36103FF7: mov eax, dword ptr [eax + 8] */
   8671 L_36103FFA:
   8672     PUSH32(esp, 1); /* 0x36103FFA: push 1 */
   8673 L_36103FFC:
   8674     MEM32(edx + 0x8) = eax; /* 0x36103FFC: mov dword ptr [edx + 8], eax */
   8675 L_36103FFF:
   8676     edx = MEM32(ecx); /* 0x36103FFF: mov edx, dword ptr [ecx] */
   8677 L_36104001:
   8678     PUSH32(esp, 1); /* 0x36104001: push 1 */
   8679 L_36104003:
   8680     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36104003: call dword ptr [edx + 0x2c] */
   8681     RECOMP_FLAGS_IN();
   8682 L_36104006:
   8683     ecx = MEM32(esi + 0x20); /* 0x36104006: mov ecx, dword ptr [esi + 0x20] */
   8684 L_36104009:
   8685     eax = ebp + (-0x84); /* 0x36104009: lea eax, [ebp - 0x84] */
   8686 L_3610400F:
   8687     PUSH32(esp, eax); /* 0x3610400F: push eax */
   8688 L_36104010:
   8689     RECOMP_ICALL(0x36133DC0u); /* 0x36104010: call 0x36133dc0 */ /* not lifted */
   8690     RECOMP_FLAGS_IN();
   8691 L_36104015:
   8692     PUSH32(esp, eax); /* 0x36104015: push eax */
   8693 L_36104016:
   8694     ecx = ebp + (-0x44); /* 0x36104016: lea ecx, [ebp - 0x44] */
   8695 L_36104019:
   8696     MEM32(ebp + (-0x4)) = 0; /* 0x36104019: mov dword ptr [ebp - 4], 0 */
   8697 L_36104020:
   8698     RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36104020: call dword ptr [0x361701a4] */
   8699     RECOMP_FLAGS_IN();
   8700 L_36104026:
   8701     esi = MEM32(esi + 0x28); /* 0x36104026: mov esi, dword ptr [esi + 0x28] */
   8702 L_36104029:
   8703     edx = MEM32(eax); /* 0x36104029: mov edx, dword ptr [eax] */
   8704 L_3610402B:
   8705     ecx = esi + 0x84; /* 0x3610402B: lea ecx, [esi + 0x84] */
   8706 L_36104031:
   8707     MEM32(ecx) = edx; /* 0x36104031: mov dword ptr [ecx], edx */
   8708 L_36104033:
   8709     edx = MEM32(eax + 0x4); /* 0x36104033: mov edx, dword ptr [eax + 4] */
   8710 L_36104036:
   8711     MEM32(ecx + 0x4) = edx; /* 0x36104036: mov dword ptr [ecx + 4], edx */
   8712 L_36104039:
   8713     edx = MEM32(eax + 0x8); /* 0x36104039: mov edx, dword ptr [eax + 8] */
   8714 L_3610403C:
   8715     MEM32(ecx + 0x8) = edx; /* 0x3610403C: mov dword ptr [ecx + 8], edx */
   8716 L_3610403F:
   8717     eax = MEM32(eax + 0xC); /* 0x3610403F: mov eax, dword ptr [eax + 0xc] */
   8718 L_36104042:
   8719     edx = MEM32(esi); /* 0x36104042: mov edx, dword ptr [esi] */
   8720 L_36104044:
   8721     PUSH32(esp, 1); /* 0x36104044: push 1 */
   8722 L_36104046:
   8723     MEM32(ecx + 0xC) = eax; /* 0x36104046: mov dword ptr [ecx + 0xc], eax */
   8724 L_36104049:
   8725     PUSH32(esp, 2); /* 0x36104049: push 2 */
   8726 L_3610404B:
   8727     ecx = esi; /* 0x3610404B: mov ecx, esi */
   8728 L_3610404D:
   8729     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610404D: call dword ptr [edx + 0x2c] */
   8730     RECOMP_FLAGS_IN();
   8731 L_36104050:
   8732     edi = POP32_VAL(esp); /* 0x36104050: pop edi */
   8733 L_36104051:
   8734     ebx = POP32_VAL(esp); /* 0x36104051: pop ebx */
   8735 L_36104052:
   8736     ecx = MEM32(ebp + (-0xC)); /* 0x36104052: mov ecx, dword ptr [ebp - 0xc] */
   8737 L_36104055:
   8738     esi = POP32_VAL(esp); /* 0x36104055: pop esi */
   8739 L_36104056:
   8740     MEM32(FS_BASE + (0)) = ecx; /* 0x36104056: mov dword ptr fs:[0], ecx */
   8741 L_3610405D:
   8742     esp = ebp; /* 0x3610405D: mov esp, ebp */
   8743 L_3610405F:
   8744     ebp = POP32_VAL(esp); /* 0x3610405F: pop ebp */
   8745 L_36104060:
   8746     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104060: ret  */
   8747   _ljump:
   8748     switch (_itail_tgt) {
   8749       case 0x36103DF5u: goto L_36103DF5;
   8750       case 0x36103DF8u: goto L_36103DF8;
   8751       case 0x36103DFBu: goto L_36103DFB;
   8752       case 0x36103E01u: goto L_36103E01;
   8753       case 0x36103E08u: goto L_36103E08;
   8754       case 0x36103E0Bu: goto L_36103E0B;
   8755       case 0x36103E0Du: goto L_36103E0D;
   8756       case 0x36103E13u: goto L_36103E13;
   8757       case 0x36103E16u: goto L_36103E16;
   8758       case 0x36103E19u: goto L_36103E19;
   8759       case 0x36103E1Au: goto L_36103E1A;
   8760       case 0x36103E1Fu: goto L_36103E1F;
   8761       case 0x36103E21u: goto L_36103E21;
   8762       case 0x36103E24u: goto L_36103E24;
   8763       case 0x36103E26u: goto L_36103E26;
   8764       case 0x36103E29u: goto L_36103E29;
   8765       case 0x36103E2Cu: goto L_36103E2C;
   8766       case 0x36103E2Fu: goto L_36103E2F;
   8767       case 0x36103E32u: goto L_36103E32;
   8768       case 0x36103E35u: goto L_36103E35;
   8769       case 0x36103E38u: goto L_36103E38;
   8770       case 0x36103E3Bu: goto L_36103E3B;
   8771       case 0x36103E42u: goto L_36103E42;
   8772       case 0x36103E45u: goto L_36103E45;
   8773       case 0x36103E48u: goto L_36103E48;
   8774       case 0x36103E4Eu: goto L_36103E4E;
   8775       case 0x36103E50u: goto L_36103E50;
   8776       case 0x36103E52u: goto L_36103E52;
   8777       case 0x36103E54u: goto L_36103E54;
   8778       case 0x36103E57u: goto L_36103E57;
   8779       case 0x36103E5Au: goto L_36103E5A;
   8780       case 0x36103E5Du: goto L_36103E5D;
   8781       case 0x36103E60u: goto L_36103E60;
   8782       case 0x36103E63u: goto L_36103E63;
   8783       case 0x36103E65u: goto L_36103E65;
   8784       case 0x36103E69u: goto L_36103E69;
   8785       case 0x36103E6Cu: goto L_36103E6C;
   8786       case 0x36103E71u: goto L_36103E71;
   8787       case 0x36103E74u: goto L_36103E74;
   8788       case 0x36103E76u: goto L_36103E76;
   8789       case 0x36103E78u: goto L_36103E78;
   8790       case 0x36103E7Bu: goto L_36103E7B;
   8791       case 0x36103E7Eu: goto L_36103E7E;
   8792       case 0x36103E84u: goto L_36103E84;
   8793       case 0x36103E87u: goto L_36103E87;
   8794       case 0x36103E8Du: goto L_36103E8D;
   8795       case 0x36103E8Fu: goto L_36103E8F;
   8796       case 0x36103E92u: goto L_36103E92;
   8797       case 0x36103E94u: goto L_36103E94;
   8798       case 0x36103E97u: goto L_36103E97;
   8799       case 0x36103E98u: goto L_36103E98;
   8800       case 0x36103E9Bu: goto L_36103E9B;
   8801       case 0x36103EA0u: goto L_36103EA0;
   8802       case 0x36103EA3u: goto L_36103EA3;
   8803       case 0x36103EA6u: goto L_36103EA6;
   8804       case 0x36103EACu: goto L_36103EAC;
   8805       case 0x36103EAFu: goto L_36103EAF;
   8806       case 0x36103EB1u: goto L_36103EB1;
   8807       case 0x36103EB3u: goto L_36103EB3;
   8808       case 0x36103EB6u: goto L_36103EB6;
   8809       case 0x36103EB9u: goto L_36103EB9;
   8810       case 0x36103EBCu: goto L_36103EBC;
   8811       case 0x36103EBFu: goto L_36103EBF;
   8812       case 0x36103EC2u: goto L_36103EC2;
   8813       case 0x36103EC5u: goto L_36103EC5;
   8814       case 0x36103EC7u: goto L_36103EC7;
   8815       case 0x36103EC9u: goto L_36103EC9;
   8816       case 0x36103ECBu: goto L_36103ECB;
   8817       case 0x36103ECEu: goto L_36103ECE;
   8818       case 0x36103ED1u: goto L_36103ED1;
   8819       case 0x36103ED4u: goto L_36103ED4;
   8820       case 0x36103ED7u: goto L_36103ED7;
   8821       case 0x36103EDCu: goto L_36103EDC;
   8822       case 0x36103EDFu: goto L_36103EDF;
   8823       case 0x36103EE3u: goto L_36103EE3;
   8824       case 0x36103EE8u: goto L_36103EE8;
   8825       case 0x36103EEBu: goto L_36103EEB;
   8826       case 0x36103EEEu: goto L_36103EEE;
   8827       case 0x36103EF6u: goto L_36103EF6;
   8828       case 0x36103EF7u: goto L_36103EF7;
   8829       case 0x36103EFAu: goto L_36103EFA;
   8830       case 0x36103EFFu: goto L_36103EFF;
   8831       case 0x36103F05u: goto L_36103F05;
   8832       case 0x36103F0Bu: goto L_36103F0B;
   8833       case 0x36103F0Eu: goto L_36103F0E;
   8834       case 0x36103F10u: goto L_36103F10;
   8835       case 0x36103F12u: goto L_36103F12;
   8836       case 0x36103F19u: goto L_36103F19;
   8837       case 0x36103F1Cu: goto L_36103F1C;
   8838       case 0x36103F1Fu: goto L_36103F1F;
   8839       case 0x36103F21u: goto L_36103F21;
   8840       case 0x36103F23u: goto L_36103F23;
   8841       case 0x36103F26u: goto L_36103F26;
   8842       case 0x36103F28u: goto L_36103F28;
   8843       case 0x36103F2Bu: goto L_36103F2B;
   8844       case 0x36103F2Du: goto L_36103F2D;
   8845       case 0x36103F2Fu: goto L_36103F2F;
   8846       case 0x36103F31u: goto L_36103F31;
   8847       case 0x36103F34u: goto L_36103F34;
   8848       case 0x36103F37u: goto L_36103F37;
   8849       case 0x36103F3Au: goto L_36103F3A;
   8850       case 0x36103F3Du: goto L_36103F3D;
   8851       case 0x36103F40u: goto L_36103F40;
   8852       case 0x36103F43u: goto L_36103F43;
   8853       case 0x36103F49u: goto L_36103F49;
   8854       case 0x36103F4Cu: goto L_36103F4C;
   8855       case 0x36103F4Fu: goto L_36103F4F;
   8856       case 0x36103F52u: goto L_36103F52;
   8857       case 0x36103F54u: goto L_36103F54;
   8858       case 0x36103F56u: goto L_36103F56;
   8859       case 0x36103F59u: goto L_36103F59;
   8860       case 0x36103F5Cu: goto L_36103F5C;
   8861       case 0x36103F5Eu: goto L_36103F5E;
   8862       case 0x36103F60u: goto L_36103F60;
   8863       case 0x36103F62u: goto L_36103F62;
   8864       case 0x36103F65u: goto L_36103F65;
   8865       case 0x36103F68u: goto L_36103F68;
   8866       case 0x36103F6Bu: goto L_36103F6B;
   8867       case 0x36103F6Eu: goto L_36103F6E;
   8868       case 0x36103F71u: goto L_36103F71;
   8869       case 0x36103F74u: goto L_36103F74;
   8870       case 0x36103F7Bu: goto L_36103F7B;
   8871       case 0x36103F7Eu: goto L_36103F7E;
   8872       case 0x36103F81u: goto L_36103F81;
   8873       case 0x36103F87u: goto L_36103F87;
   8874       case 0x36103F8Du: goto L_36103F8D;
   8875       case 0x36103F8Fu: goto L_36103F8F;
   8876       case 0x36103F92u: goto L_36103F92;
   8877       case 0x36103F94u: goto L_36103F94;
   8878       case 0x36103F9Au: goto L_36103F9A;
   8879       case 0x36103F9Fu: goto L_36103F9F;
   8880       case 0x36103FA2u: goto L_36103FA2;
   8881       case 0x36103FA7u: goto L_36103FA7;
   8882       case 0x36103FA9u: goto L_36103FA9;
   8883       case 0x36103FADu: goto L_36103FAD;
   8884       case 0x36103FAFu: goto L_36103FAF;
   8885       case 0x36103FB1u: goto L_36103FB1;
   8886       case 0x36103FB4u: goto L_36103FB4;
   8887       case 0x36103FB9u: goto L_36103FB9;
   8888       case 0x36103FC0u: goto L_36103FC0;
   8889       case 0x36103FC3u: goto L_36103FC3;
   8890       case 0x36103FC6u: goto L_36103FC6;
   8891       case 0x36103FC9u: goto L_36103FC9;
   8892       case 0x36103FCCu: goto L_36103FCC;
   8893       case 0x36103FD2u: goto L_36103FD2;
   8894       case 0x36103FD5u: goto L_36103FD5;
   8895       case 0x36103FDBu: goto L_36103FDB;
   8896       case 0x36103FDEu: goto L_36103FDE;
   8897       case 0x36103FDFu: goto L_36103FDF;
   8898       case 0x36103FE2u: goto L_36103FE2;
   8899       case 0x36103FE7u: goto L_36103FE7;
   8900       case 0x36103FEAu: goto L_36103FEA;
   8901       case 0x36103FECu: goto L_36103FEC;
   8902       case 0x36103FEFu: goto L_36103FEF;
   8903       case 0x36103FF1u: goto L_36103FF1;
   8904       case 0x36103FF4u: goto L_36103FF4;
   8905       case 0x36103FF7u: goto L_36103FF7;
   8906       case 0x36103FFAu: goto L_36103FFA;
   8907       case 0x36103FFCu: goto L_36103FFC;
   8908       case 0x36103FFFu: goto L_36103FFF;
   8909       case 0x36104001u: goto L_36104001;
   8910       case 0x36104003u: goto L_36104003;
   8911       case 0x36104006u: goto L_36104006;
   8912       case 0x36104009u: goto L_36104009;
   8913       case 0x3610400Fu: goto L_3610400F;
   8914       case 0x36104010u: goto L_36104010;
   8915       case 0x36104015u: goto L_36104015;
   8916       case 0x36104016u: goto L_36104016;
   8917       case 0x36104019u: goto L_36104019;
   8918       case 0x36104020u: goto L_36104020;
   8919       case 0x36104026u: goto L_36104026;
   8920       case 0x36104029u: goto L_36104029;
   8921       case 0x3610402Bu: goto L_3610402B;
   8922       case 0x36104031u: goto L_36104031;
   8923       case 0x36104033u: goto L_36104033;
   8924       case 0x36104036u: goto L_36104036;
   8925       case 0x36104039u: goto L_36104039;
   8926       case 0x3610403Cu: goto L_3610403C;
   8927       case 0x3610403Fu: goto L_3610403F;
   8928       case 0x36104042u: goto L_36104042;
   8929       case 0x36104044u: goto L_36104044;
   8930       case 0x36104046u: goto L_36104046;
   8931       case 0x36104049u: goto L_36104049;
   8932       case 0x3610404Bu: goto L_3610404B;
   8933       case 0x3610404Du: goto L_3610404D;
   8934       case 0x36104050u: goto L_36104050;
   8935       case 0x36104051u: goto L_36104051;
   8936       case 0x36104052u: goto L_36104052;
   8937       case 0x36104055u: goto L_36104055;
   8938       case 0x36104056u: goto L_36104056;
   8939       case 0x3610405Du: goto L_3610405D;
   8940       case 0x3610405Fu: goto L_3610405F;
   8941       case 0x36104060u: goto L_36104060;
   8942       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8943     }
   8944     RECOMP_REGS_OUT();
   8945 }
   8946 
   8947 void sub_36103E78(void) {
   8948     int _fpu_cmp = 0;
   8949     uint32_t _cf = 0;
   8950     int _df = 1;
   8951     uint32_t _flag_k = FK_NONE;
   8952     uint32_t _flag_a = 0, _flag_b = 0;
   8953     uint32_t _itail_tgt = 0;
   8954     RECOMP_REGS_LOCALS
   8955     RECOMP_ENTER(0x36103E78u);
   8956 
   8957     goto L_36103E78;
   8958 L_36103DF5:
   8959     eax = MEM32(edi + 0x40); /* 0x36103DF5: mov eax, dword ptr [edi + 0x40] */
   8960 L_36103DF8:
   8961     /* cmp eax, 3 */ /* 0x36103DF8: cmp eax, 3 */
   8962     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   8963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8964     _flag_k = FK_CMP;
   8965 L_36103DFB:
   8966     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36103FB1; /* 0x36103DFB: ja 0x36103fb1 */
   8967 L_36103E01:
   8968     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36104064)); goto _ljump; }
   8969 L_36103E08:
   8970     eax = MEM32(ebp + (-0x14)); /* 0x36103E08: mov eax, dword ptr [ebp - 0x14] */
   8971 L_36103E0B:
   8972     /* test eax, eax */ /* 0x36103E0B: test eax, eax */
   8973     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8974     _cf = 0;
   8975     _flag_k = FK_TEST;
   8976 L_36103E0D:
   8977     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FC0; /* 0x36103E0D: je 0x36103fc0 */
   8978 L_36103E13:
   8979     ecx = MEM32(esi + 0x20); /* 0x36103E13: mov ecx, dword ptr [esi + 0x20] */
   8980 L_36103E16:
   8981     edx = ebp + (-0x28); /* 0x36103E16: lea edx, [ebp - 0x28] */
   8982 L_36103E19:
   8983     PUSH32(esp, edx); /* 0x36103E19: push edx */
   8984 L_36103E1A:
   8985     RECOMP_ICALL(0x36133FC0u); /* 0x36103E1A: call 0x36133fc0 */ /* not lifted */
   8986     RECOMP_FLAGS_IN();
   8987 L_36103E1F:
   8988     edx = MEM32(eax); /* 0x36103E1F: mov edx, dword ptr [eax] */
   8989 L_36103E21:
   8990     ecx = MEM32(ebp + (-0x10)); /* 0x36103E21: mov ecx, dword ptr [ebp - 0x10] */
   8991 L_36103E24:
   8992     MEM32(ecx) = edx; /* 0x36103E24: mov dword ptr [ecx], edx */
   8993 L_36103E26:
   8994     edx = MEM32(eax + 0x4); /* 0x36103E26: mov edx, dword ptr [eax + 4] */
   8995 L_36103E29:
   8996     MEM32(ecx + 0x4) = edx; /* 0x36103E29: mov dword ptr [ecx + 4], edx */
   8997 L_36103E2C:
   8998     eax = MEM32(eax + 0x8); /* 0x36103E2C: mov eax, dword ptr [eax + 8] */
   8999 L_36103E2F:
   9000     MEM32(ecx + 0x8) = eax; /* 0x36103E2F: mov dword ptr [ecx + 8], eax */
   9001 L_36103E32:
   9002     ecx = MEM32(esi + 0xC); /* 0x36103E32: mov ecx, dword ptr [esi + 0xc] */
   9003 L_36103E35:
   9004     MEM32(edi + 0x20) = ecx; /* 0x36103E35: mov dword ptr [edi + 0x20], ecx */
   9005 L_36103E38:
   9006     ecx = MEM32(ebp + (-0x10)); /* 0x36103E38: mov ecx, dword ptr [ebp - 0x10] */
   9007 L_36103E3B:
   9008     MEM32(edi + 0x40) = 1; /* 0x36103E3B: mov dword ptr [edi + 0x40], 1 */
   9009 L_36103E42:
   9010     edx = MEM32(esi + 0xC); /* 0x36103E42: mov edx, dword ptr [esi + 0xc] */
   9011 L_36103E45:
   9012     eax = MEM32(esi + 0x2C); /* 0x36103E45: mov eax, dword ptr [esi + 0x2c] */
   9013 L_36103E48:
   9014     MEM32(esi + 0x110) = edx; /* 0x36103E48: mov dword ptr [esi + 0x110], edx */
   9015 L_36103E4E:
   9016     edx = MEM32(ecx); /* 0x36103E4E: mov edx, dword ptr [ecx] */
   9017 L_36103E50:
   9018     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9020     eax = eax + ebx; /* 0x36103E50: add eax, ebx */
   9021     _flag_k = FK_ADD;
   9022 L_36103E52:
   9023     MEM32(eax) = edx; /* 0x36103E52: mov dword ptr [eax], edx */
   9024 L_36103E54:
   9025     edx = MEM32(ecx + 0x4); /* 0x36103E54: mov edx, dword ptr [ecx + 4] */
   9026 L_36103E57:
   9027     MEM32(eax + 0x4) = edx; /* 0x36103E57: mov dword ptr [eax + 4], edx */
   9028 L_36103E5A:
   9029     ecx = MEM32(ecx + 0x8); /* 0x36103E5A: mov ecx, dword ptr [ecx + 8] */
   9030 L_36103E5D:
   9031     MEM32(eax + 0x8) = ecx; /* 0x36103E5D: mov dword ptr [eax + 8], ecx */
   9032 L_36103E60:
   9033     edx = MEM32(esi + 0x2C); /* 0x36103E60: mov edx, dword ptr [esi + 0x2c] */
   9034 L_36103E63:
   9035     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9036     ecx = 0; /* 0x36103E63: xor ecx, ecx */
   9037     _cf = 0;
   9038     _flag_k = FK_TEST;
   9039 L_36103E65:
   9040     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103E65: mov dword ptr [edx + ebx + 0x18], ecx */
   9041 L_36103E69:
   9042     eax = MEM32(esi + 0x2C); /* 0x36103E69: mov eax, dword ptr [esi + 0x2c] */
   9043 L_36103E6C:
   9044     MEM8(eax + ebx + 0x1C) = (uint8_t)(1); /* 0x36103E6C: mov byte ptr [eax + ebx + 0x1c], 1 */
   9045 L_36103E71:
   9046     MEM32(ebp + (-0x14)) = ecx; /* 0x36103E71: mov dword ptr [ebp - 0x14], ecx */
   9047 L_36103E74:
   9048     goto L_36103E78; /* 0x36103E74: jmp 0x36103e78 */
   9049 L_36103E76:
   9050     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9051     ecx = 0; /* 0x36103E76: xor ecx, ecx */
   9052     _cf = 0;
   9053     _flag_k = FK_TEST;
   9054 L_36103E78:
   9055     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103E78: fld dword ptr [esi + 0xc] */
   9056 L_36103E7B:
   9057     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103E7B: fsub dword ptr [edi + 0x20] */
   9058 L_36103E7E:
   9059     _st[0] /= (double)*(float*)ADDR(esi + 0x168); /* 0x36103E7E: fdiv dword ptr [esi + 0x168] */
   9060 L_36103E84:
   9061     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36103E84: fst dword ptr [ebp - 0x1c] */
   9062 L_36103E87:
   9063     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103E87: fcomp dword ptr [0x36170380] */
   9064     fp_pop();
   9065 L_36103E8D:
   9066     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103E8D: fnstsw ax */
   9067 L_36103E8F:
   9068     /* test HI8(eax), 1 */ /* 0x36103E8F: test ah, 1 */
   9069     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9070     _cf = 0;
   9071     _flag_k = FK_NARROW(FK_TEST, 24);
   9072 L_36103E92:
   9073     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103EE8; /* 0x36103E92: je 0x36103ee8 */
   9074 L_36103E94:
   9075     ecx = ebp + (-0x34); /* 0x36103E94: lea ecx, [ebp - 0x34] */
   9076 L_36103E97:
   9077     PUSH32(esp, ecx); /* 0x36103E97: push ecx */
   9078 L_36103E98:
   9079     ecx = MEM32(esi + 0x20); /* 0x36103E98: mov ecx, dword ptr [esi + 0x20] */
   9080 L_36103E9B:
   9081     RECOMP_ICALL(0x36133FC0u); /* 0x36103E9B: call 0x36133fc0 */ /* not lifted */
   9082     RECOMP_FLAGS_IN();
   9083 L_36103EA0:
   9084     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36103EA0: fld dword ptr [ebp - 0x1c] */
   9085 L_36103EA3:
   9086     edx = MEM32(ebp + (-0x10)); /* 0x36103EA3: mov edx, dword ptr [ebp - 0x10] */
   9087 L_36103EA6:
   9088     _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36103EA6: fmul dword ptr [0x36170eb8] */
   9089 L_36103EAC:
   9090     MEM32(ebp + (-0x18)) = eax; /* 0x36103EAC: mov dword ptr [ebp - 0x18], eax */
   9091 L_36103EAF:
   9092     ecx = MEM32(eax); /* 0x36103EAF: mov ecx, dword ptr [eax] */
   9093 L_36103EB1:
   9094     MEM32(edx) = ecx; /* 0x36103EB1: mov dword ptr [edx], ecx */
   9095 L_36103EB3:
   9096     ecx = MEM32(eax + 0x4); /* 0x36103EB3: mov ecx, dword ptr [eax + 4] */
   9097 L_36103EB6:
   9098     MEM32(edx + 0x4) = ecx; /* 0x36103EB6: mov dword ptr [edx + 4], ecx */
   9099 L_36103EB9:
   9100     eax = MEM32(eax + 0x8); /* 0x36103EB9: mov eax, dword ptr [eax + 8] */
   9101 L_36103EBC:
   9102     MEM32(edx + 0x8) = eax; /* 0x36103EBC: mov dword ptr [edx + 8], eax */
   9103 L_36103EBF:
   9104     ecx = MEM32(esi + 0x2C); /* 0x36103EBF: mov ecx, dword ptr [esi + 0x2c] */
   9105 L_36103EC2:
   9106     eax = MEM32(ebp + (-0x18)); /* 0x36103EC2: mov eax, dword ptr [ebp - 0x18] */
   9107 L_36103EC5:
   9108     edx = MEM32(eax); /* 0x36103EC5: mov edx, dword ptr [eax] */
   9109 L_36103EC7:
   9110     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9111     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9112     ecx = ecx + ebx; /* 0x36103EC7: add ecx, ebx */
   9113     _flag_k = FK_ADD;
   9114 L_36103EC9:
   9115     MEM32(ecx) = edx; /* 0x36103EC9: mov dword ptr [ecx], edx */
   9116 L_36103ECB:
   9117     edx = MEM32(eax + 0x4); /* 0x36103ECB: mov edx, dword ptr [eax + 4] */
   9118 L_36103ECE:
   9119     MEM32(ecx + 0x4) = edx; /* 0x36103ECE: mov dword ptr [ecx + 4], edx */
   9120 L_36103ED1:
   9121     eax = MEM32(eax + 0x8); /* 0x36103ED1: mov eax, dword ptr [eax + 8] */
   9122 L_36103ED4:
   9123     MEM32(ecx + 0x8) = eax; /* 0x36103ED4: mov dword ptr [ecx + 8], eax */
   9124 L_36103ED7:
   9125     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103ED7: call 0x3615fd8c */ /* not lifted */
   9126     RECOMP_FLAGS_IN();
   9127 L_36103EDC:
   9128     ecx = MEM32(esi + 0x2C); /* 0x36103EDC: mov ecx, dword ptr [esi + 0x2c] */
   9129 L_36103EDF:
   9130     MEM32(ecx + ebx + 0x18) = eax; /* 0x36103EDF: mov dword ptr [ecx + ebx + 0x18], eax */
   9131 L_36103EE3:
   9132     goto L_36103FC0; /* 0x36103EE3: jmp 0x36103fc0 */
   9133 L_36103EE8:
   9134     edx = MEM32(esi + 0x2C); /* 0x36103EE8: mov edx, dword ptr [esi + 0x2c] */
   9135 L_36103EEB:
   9136     eax = MEM32(ebp + (-0x10)); /* 0x36103EEB: mov eax, dword ptr [ebp - 0x10] */
   9137 L_36103EEE:
   9138     MEM32(edx + ebx + 0x18) = 5; /* 0x36103EEE: mov dword ptr [edx + ebx + 0x18], 5 */
   9139 L_36103EF6:
   9140     PUSH32(esp, eax); /* 0x36103EF6: push eax */
   9141 L_36103EF7:
   9142     MEM32(edi + (-0x20)) = ecx; /* 0x36103EF7: mov dword ptr [edi - 0x20], ecx */
   9143 L_36103EFA:
   9144     RECOMP_ICALL(0x360FC710u); /* 0x36103EFA: call 0x360fc710 */ /* not lifted */
   9145     RECOMP_FLAGS_IN();
   9146 L_36103EFF:
   9147     fp_push(*(float*)&MEM32(esi + 0x128)); /* 0x36103EFF: fld dword ptr [esi + 0x128] */
   9148 L_36103F05:
   9149     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36103F05: fmul dword ptr [0x36170464] */
   9150 L_36103F0B:
   9151     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9152     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9153     esp = esp + 4; /* 0x36103F0B: add esp, 4 */
   9154     _flag_k = FK_ADD;
   9155 L_36103F0E:
   9156     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103F0E: faddp st(1) */
   9157 L_36103F10:
   9158     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103F10: fstp dword ptr [edi] */
   9159 L_36103F12:
   9160     MEM32(edi + 0x40) = 2; /* 0x36103F12: mov dword ptr [edi + 0x40], 2 */
   9161 L_36103F19:
   9162     ecx = MEM32(ebp + (-0x10)); /* 0x36103F19: mov ecx, dword ptr [ebp - 0x10] */
   9163 L_36103F1C:
   9164     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36103F1C: fld dword ptr [ecx + 4] */
   9165 L_36103F1F:
   9166     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x36103F1F: fcomp dword ptr [edi] */
   9167     fp_pop();
   9168 L_36103F21:
   9169     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F21: fnstsw ax */
   9170 L_36103F23:
   9171     /* test HI8(eax), 0x41u */ /* 0x36103F23: test ah, 0x41 */
   9172     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   9173     _cf = 0;
   9174     _flag_k = FK_NARROW(FK_TEST, 24);
   9175 L_36103F26:
   9176     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103F54; /* 0x36103F26: jne 0x36103f54 */
   9177 L_36103F28:
   9178     edx = MEM32(esi + 0x2C); /* 0x36103F28: mov edx, dword ptr [esi + 0x2c] */
   9179 L_36103F2B:
   9180     eax = MEM32(ecx); /* 0x36103F2B: mov eax, dword ptr [ecx] */
   9181 L_36103F2D:
   9182     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   9183     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9184     edx = edx + ebx; /* 0x36103F2D: add edx, ebx */
   9185     _flag_k = FK_ADD;
   9186 L_36103F2F:
   9187     MEM32(edx) = eax; /* 0x36103F2F: mov dword ptr [edx], eax */
   9188 L_36103F31:
   9189     eax = MEM32(ecx + 0x4); /* 0x36103F31: mov eax, dword ptr [ecx + 4] */
   9190 L_36103F34:
   9191     MEM32(edx + 0x4) = eax; /* 0x36103F34: mov dword ptr [edx + 4], eax */
   9192 L_36103F37:
   9193     ecx = MEM32(ecx + 0x8); /* 0x36103F37: mov ecx, dword ptr [ecx + 8] */
   9194 L_36103F3A:
   9195     eax = MEM32(ebp + (-0x10)); /* 0x36103F3A: mov eax, dword ptr [ebp - 0x10] */
   9196 L_36103F3D:
   9197     MEM32(edx + 0x8) = ecx; /* 0x36103F3D: mov dword ptr [edx + 8], ecx */
   9198 L_36103F40:
   9199     fp_push(*(float*)&MEM32(edi + (-0x20))); /* 0x36103F40: fld dword ptr [edi - 0x20] */
   9200 L_36103F43:
   9201     _st[0] -= (double)*(float*)ADDR(0x36170850); /* 0x36103F43: fsub dword ptr [0x36170850] */
   9202 L_36103F49:
   9203     { float _v = (float)_st[0]; *(float*)ADDR(edi + (-0x20)) = _v; } /* 0x36103F49: fst dword ptr [edi - 0x20] */
   9204 L_36103F4C:
   9205     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x36103F4C: fadd dword ptr [eax + 4] */
   9206 L_36103F4F:
   9207     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36103F4F: fstp dword ptr [eax + 4] */
   9208 L_36103F52:
   9209     goto L_36103FC0; /* 0x36103F52: jmp 0x36103fc0 */
   9210 L_36103F54:
   9211     edx = MEM32(edi); /* 0x36103F54: mov edx, dword ptr [edi] */
   9212 L_36103F56:
   9213     MEM32(ecx + 0x4) = edx; /* 0x36103F56: mov dword ptr [ecx + 4], edx */
   9214 L_36103F59:
   9215     eax = MEM32(esi + 0x2C); /* 0x36103F59: mov eax, dword ptr [esi + 0x2c] */
   9216 L_36103F5C:
   9217     edx = MEM32(ecx); /* 0x36103F5C: mov edx, dword ptr [ecx] */
   9218 L_36103F5E:
   9219     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9220     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9221     eax = eax + ebx; /* 0x36103F5E: add eax, ebx */
   9222     _flag_k = FK_ADD;
   9223 L_36103F60:
   9224     MEM32(eax) = edx; /* 0x36103F60: mov dword ptr [eax], edx */
   9225 L_36103F62:
   9226     edx = MEM32(ecx + 0x4); /* 0x36103F62: mov edx, dword ptr [ecx + 4] */
   9227 L_36103F65:
   9228     MEM32(eax + 0x4) = edx; /* 0x36103F65: mov dword ptr [eax + 4], edx */
   9229 L_36103F68:
   9230     ecx = MEM32(ecx + 0x8); /* 0x36103F68: mov ecx, dword ptr [ecx + 8] */
   9231 L_36103F6B:
   9232     MEM32(eax + 0x8) = ecx; /* 0x36103F6B: mov dword ptr [eax + 8], ecx */
   9233 L_36103F6E:
   9234     edx = MEM32(esi + 0xC); /* 0x36103F6E: mov edx, dword ptr [esi + 0xc] */
   9235 L_36103F71:
   9236     MEM32(edi + 0x20) = edx; /* 0x36103F71: mov dword ptr [edi + 0x20], edx */
   9237 L_36103F74:
   9238     MEM32(edi + 0x40) = 3; /* 0x36103F74: mov dword ptr [edi + 0x40], 3 */
   9239 L_36103F7B:
   9240     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103F7B: fld dword ptr [esi + 0xc] */
   9241 L_36103F7E:
   9242     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103F7E: fsub dword ptr [edi + 0x20] */
   9243 L_36103F81:
   9244     _st[0] /= (double)*(float*)ADDR(esi + 0x16C); /* 0x36103F81: fdiv dword ptr [esi + 0x16c] */
   9245 L_36103F87:
   9246     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103F87: fcom dword ptr [0x36170380] */
   9247 L_36103F8D:
   9248     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F8D: fnstsw ax */
   9249 L_36103F8F:
   9250     /* test HI8(eax), 1 */ /* 0x36103F8F: test ah, 1 */
   9251     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9252     _cf = 0;
   9253     _flag_k = FK_NARROW(FK_TEST, 24);
   9254 L_36103F92:
   9255     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FAF; /* 0x36103F92: je 0x36103faf */
   9256 L_36103F94:
   9257     _st[0] *= (double)*(float*)ADDR(0x36175A38); /* 0x36103F94: fmul dword ptr [0x36175a38] */
   9258 L_36103F9A:
   9259     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103F9A: call 0x3615fd8c */ /* not lifted */
   9260     RECOMP_FLAGS_IN();
   9261 L_36103F9F:
   9262     edx = MEM32(esi + 0x2C); /* 0x36103F9F: mov edx, dword ptr [esi + 0x2c] */
   9263 L_36103FA2:
   9264     ecx = 5; /* 0x36103FA2: mov ecx, 5 */
   9265 L_36103FA7:
   9266     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   9267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9268     ecx = ecx - eax; /* 0x36103FA7: sub ecx, eax */
   9269     _flag_k = FK_CMP;
   9270 L_36103FA9:
   9271     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103FA9: mov dword ptr [edx + ebx + 0x18], ecx */
   9272 L_36103FAD:
   9273     goto L_36103FC0; /* 0x36103FAD: jmp 0x36103fc0 */
   9274 L_36103FAF:
   9275     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103FAF: fstp st(0) */
   9276 L_36103FB1:
   9277     eax = MEM32(esi + 0x2C); /* 0x36103FB1: mov eax, dword ptr [esi + 0x2c] */
   9278 L_36103FB4:
   9279     MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36103FB4: mov byte ptr [eax + ebx + 0x1c], 0 */
   9280 L_36103FB9:
   9281     MEM32(edi + 0x40) = 0; /* 0x36103FB9: mov dword ptr [edi + 0x40], 0 */
   9282 L_36103FC0:
   9283     edx = MEM32(ebp + (-0x10)); /* 0x36103FC0: mov edx, dword ptr [ebp - 0x10] */
   9284 L_36103FC3:
   9285     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   9286     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9287     edx = edx + 0xCu; /* 0x36103FC3: add edx, 0xc */
   9288     _flag_k = FK_ADD;
   9289 L_36103FC6:
   9290     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u);
   9291     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9292     ebx = ebx + 0x20u; /* 0x36103FC6: add ebx, 0x20 */
   9293     _flag_k = FK_ADD;
   9294 L_36103FC9:
   9295     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   9296     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9297     edi = edi + 4; /* 0x36103FC9: add edi, 4 */
   9298     _flag_k = FK_ADD;
   9299 L_36103FCC:
   9300     /* cmp ebx, 0x100u */ /* 0x36103FCC: cmp ebx, 0x100 */
   9301     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x100u);
   9302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9303     _flag_k = FK_CMP;
   9304 L_36103FD2:
   9305     MEM32(ebp + (-0x10)) = edx; /* 0x36103FD2: mov dword ptr [ebp - 0x10], edx */
   9306 L_36103FD5:
   9307     RECOMP_BACKEDGE();
   9308     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36103DF5; /* 0x36103FD5: jl 0x36103df5 */
   9309 L_36103FDB:
   9310     ecx = ebp + (-0x34); /* 0x36103FDB: lea ecx, [ebp - 0x34] */
   9311 L_36103FDE:
   9312     PUSH32(esp, ecx); /* 0x36103FDE: push ecx */
   9313 L_36103FDF:
   9314     ecx = MEM32(esi + 0x20); /* 0x36103FDF: mov ecx, dword ptr [esi + 0x20] */
   9315 L_36103FE2:
   9316     RECOMP_ICALL(0x36133E80u); /* 0x36103FE2: call 0x36133e80 */ /* not lifted */
   9317     RECOMP_FLAGS_IN();
   9318 L_36103FE7:
   9319     ecx = MEM32(esi + 0x28); /* 0x36103FE7: mov ecx, dword ptr [esi + 0x28] */
   9320 L_36103FEA:
   9321     edi = MEM32(eax); /* 0x36103FEA: mov edi, dword ptr [eax] */
   9322 L_36103FEC:
   9323     edx = ecx + 0x78; /* 0x36103FEC: lea edx, [ecx + 0x78] */
   9324 L_36103FEF:
   9325     MEM32(edx) = edi; /* 0x36103FEF: mov dword ptr [edx], edi */
   9326 L_36103FF1:
   9327     edi = MEM32(eax + 0x4); /* 0x36103FF1: mov edi, dword ptr [eax + 4] */
   9328 L_36103FF4:
   9329     MEM32(edx + 0x4) = edi; /* 0x36103FF4: mov dword ptr [edx + 4], edi */
   9330 L_36103FF7:
   9331     eax = MEM32(eax + 0x8); /* 0x36103FF7: mov eax, dword ptr [eax + 8] */
   9332 L_36103FFA:
   9333     PUSH32(esp, 1); /* 0x36103FFA: push 1 */
   9334 L_36103FFC:
   9335     MEM32(edx + 0x8) = eax; /* 0x36103FFC: mov dword ptr [edx + 8], eax */
   9336 L_36103FFF:
   9337     edx = MEM32(ecx); /* 0x36103FFF: mov edx, dword ptr [ecx] */
   9338 L_36104001:
   9339     PUSH32(esp, 1); /* 0x36104001: push 1 */
   9340 L_36104003:
   9341     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36104003: call dword ptr [edx + 0x2c] */
   9342     RECOMP_FLAGS_IN();
   9343 L_36104006:
   9344     ecx = MEM32(esi + 0x20); /* 0x36104006: mov ecx, dword ptr [esi + 0x20] */
   9345 L_36104009:
   9346     eax = ebp + (-0x84); /* 0x36104009: lea eax, [ebp - 0x84] */
   9347 L_3610400F:
   9348     PUSH32(esp, eax); /* 0x3610400F: push eax */
   9349 L_36104010:
   9350     RECOMP_ICALL(0x36133DC0u); /* 0x36104010: call 0x36133dc0 */ /* not lifted */
   9351     RECOMP_FLAGS_IN();
   9352 L_36104015:
   9353     PUSH32(esp, eax); /* 0x36104015: push eax */
   9354 L_36104016:
   9355     ecx = ebp + (-0x44); /* 0x36104016: lea ecx, [ebp - 0x44] */
   9356 L_36104019:
   9357     MEM32(ebp + (-0x4)) = 0; /* 0x36104019: mov dword ptr [ebp - 4], 0 */
   9358 L_36104020:
   9359     RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36104020: call dword ptr [0x361701a4] */
   9360     RECOMP_FLAGS_IN();
   9361 L_36104026:
   9362     esi = MEM32(esi + 0x28); /* 0x36104026: mov esi, dword ptr [esi + 0x28] */
   9363 L_36104029:
   9364     edx = MEM32(eax); /* 0x36104029: mov edx, dword ptr [eax] */
   9365 L_3610402B:
   9366     ecx = esi + 0x84; /* 0x3610402B: lea ecx, [esi + 0x84] */
   9367 L_36104031:
   9368     MEM32(ecx) = edx; /* 0x36104031: mov dword ptr [ecx], edx */
   9369 L_36104033:
   9370     edx = MEM32(eax + 0x4); /* 0x36104033: mov edx, dword ptr [eax + 4] */
   9371 L_36104036:
   9372     MEM32(ecx + 0x4) = edx; /* 0x36104036: mov dword ptr [ecx + 4], edx */
   9373 L_36104039:
   9374     edx = MEM32(eax + 0x8); /* 0x36104039: mov edx, dword ptr [eax + 8] */
   9375 L_3610403C:
   9376     MEM32(ecx + 0x8) = edx; /* 0x3610403C: mov dword ptr [ecx + 8], edx */
   9377 L_3610403F:
   9378     eax = MEM32(eax + 0xC); /* 0x3610403F: mov eax, dword ptr [eax + 0xc] */
   9379 L_36104042:
   9380     edx = MEM32(esi); /* 0x36104042: mov edx, dword ptr [esi] */
   9381 L_36104044:
   9382     PUSH32(esp, 1); /* 0x36104044: push 1 */
   9383 L_36104046:
   9384     MEM32(ecx + 0xC) = eax; /* 0x36104046: mov dword ptr [ecx + 0xc], eax */
   9385 L_36104049:
   9386     PUSH32(esp, 2); /* 0x36104049: push 2 */
   9387 L_3610404B:
   9388     ecx = esi; /* 0x3610404B: mov ecx, esi */
   9389 L_3610404D:
   9390     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610404D: call dword ptr [edx + 0x2c] */
   9391     RECOMP_FLAGS_IN();
   9392 L_36104050:
   9393     edi = POP32_VAL(esp); /* 0x36104050: pop edi */
   9394 L_36104051:
   9395     ebx = POP32_VAL(esp); /* 0x36104051: pop ebx */
   9396 L_36104052:
   9397     ecx = MEM32(ebp + (-0xC)); /* 0x36104052: mov ecx, dword ptr [ebp - 0xc] */
   9398 L_36104055:
   9399     esi = POP32_VAL(esp); /* 0x36104055: pop esi */
   9400 L_36104056:
   9401     MEM32(FS_BASE + (0)) = ecx; /* 0x36104056: mov dword ptr fs:[0], ecx */
   9402 L_3610405D:
   9403     esp = ebp; /* 0x3610405D: mov esp, ebp */
   9404 L_3610405F:
   9405     ebp = POP32_VAL(esp); /* 0x3610405F: pop ebp */
   9406 L_36104060:
   9407     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104060: ret  */
   9408   _ljump:
   9409     switch (_itail_tgt) {
   9410       case 0x36103DF5u: goto L_36103DF5;
   9411       case 0x36103DF8u: goto L_36103DF8;
   9412       case 0x36103DFBu: goto L_36103DFB;
   9413       case 0x36103E01u: goto L_36103E01;
   9414       case 0x36103E08u: goto L_36103E08;
   9415       case 0x36103E0Bu: goto L_36103E0B;
   9416       case 0x36103E0Du: goto L_36103E0D;
   9417       case 0x36103E13u: goto L_36103E13;
   9418       case 0x36103E16u: goto L_36103E16;
   9419       case 0x36103E19u: goto L_36103E19;
   9420       case 0x36103E1Au: goto L_36103E1A;
   9421       case 0x36103E1Fu: goto L_36103E1F;
   9422       case 0x36103E21u: goto L_36103E21;
   9423       case 0x36103E24u: goto L_36103E24;
   9424       case 0x36103E26u: goto L_36103E26;
   9425       case 0x36103E29u: goto L_36103E29;
   9426       case 0x36103E2Cu: goto L_36103E2C;
   9427       case 0x36103E2Fu: goto L_36103E2F;
   9428       case 0x36103E32u: goto L_36103E32;
   9429       case 0x36103E35u: goto L_36103E35;
   9430       case 0x36103E38u: goto L_36103E38;
   9431       case 0x36103E3Bu: goto L_36103E3B;
   9432       case 0x36103E42u: goto L_36103E42;
   9433       case 0x36103E45u: goto L_36103E45;
   9434       case 0x36103E48u: goto L_36103E48;
   9435       case 0x36103E4Eu: goto L_36103E4E;
   9436       case 0x36103E50u: goto L_36103E50;
   9437       case 0x36103E52u: goto L_36103E52;
   9438       case 0x36103E54u: goto L_36103E54;
   9439       case 0x36103E57u: goto L_36103E57;
   9440       case 0x36103E5Au: goto L_36103E5A;
   9441       case 0x36103E5Du: goto L_36103E5D;
   9442       case 0x36103E60u: goto L_36103E60;
   9443       case 0x36103E63u: goto L_36103E63;
   9444       case 0x36103E65u: goto L_36103E65;
   9445       case 0x36103E69u: goto L_36103E69;
   9446       case 0x36103E6Cu: goto L_36103E6C;
   9447       case 0x36103E71u: goto L_36103E71;
   9448       case 0x36103E74u: goto L_36103E74;
   9449       case 0x36103E76u: goto L_36103E76;
   9450       case 0x36103E78u: goto L_36103E78;
   9451       case 0x36103E7Bu: goto L_36103E7B;
   9452       case 0x36103E7Eu: goto L_36103E7E;
   9453       case 0x36103E84u: goto L_36103E84;
   9454       case 0x36103E87u: goto L_36103E87;
   9455       case 0x36103E8Du: goto L_36103E8D;
   9456       case 0x36103E8Fu: goto L_36103E8F;
   9457       case 0x36103E92u: goto L_36103E92;
   9458       case 0x36103E94u: goto L_36103E94;
   9459       case 0x36103E97u: goto L_36103E97;
   9460       case 0x36103E98u: goto L_36103E98;
   9461       case 0x36103E9Bu: goto L_36103E9B;
   9462       case 0x36103EA0u: goto L_36103EA0;
   9463       case 0x36103EA3u: goto L_36103EA3;
   9464       case 0x36103EA6u: goto L_36103EA6;
   9465       case 0x36103EACu: goto L_36103EAC;
   9466       case 0x36103EAFu: goto L_36103EAF;
   9467       case 0x36103EB1u: goto L_36103EB1;
   9468       case 0x36103EB3u: goto L_36103EB3;
   9469       case 0x36103EB6u: goto L_36103EB6;
   9470       case 0x36103EB9u: goto L_36103EB9;
   9471       case 0x36103EBCu: goto L_36103EBC;
   9472       case 0x36103EBFu: goto L_36103EBF;
   9473       case 0x36103EC2u: goto L_36103EC2;
   9474       case 0x36103EC5u: goto L_36103EC5;
   9475       case 0x36103EC7u: goto L_36103EC7;
   9476       case 0x36103EC9u: goto L_36103EC9;
   9477       case 0x36103ECBu: goto L_36103ECB;
   9478       case 0x36103ECEu: goto L_36103ECE;
   9479       case 0x36103ED1u: goto L_36103ED1;
   9480       case 0x36103ED4u: goto L_36103ED4;
   9481       case 0x36103ED7u: goto L_36103ED7;
   9482       case 0x36103EDCu: goto L_36103EDC;
   9483       case 0x36103EDFu: goto L_36103EDF;
   9484       case 0x36103EE3u: goto L_36103EE3;
   9485       case 0x36103EE8u: goto L_36103EE8;
   9486       case 0x36103EEBu: goto L_36103EEB;
   9487       case 0x36103EEEu: goto L_36103EEE;
   9488       case 0x36103EF6u: goto L_36103EF6;
   9489       case 0x36103EF7u: goto L_36103EF7;
   9490       case 0x36103EFAu: goto L_36103EFA;
   9491       case 0x36103EFFu: goto L_36103EFF;
   9492       case 0x36103F05u: goto L_36103F05;
   9493       case 0x36103F0Bu: goto L_36103F0B;
   9494       case 0x36103F0Eu: goto L_36103F0E;
   9495       case 0x36103F10u: goto L_36103F10;
   9496       case 0x36103F12u: goto L_36103F12;
   9497       case 0x36103F19u: goto L_36103F19;
   9498       case 0x36103F1Cu: goto L_36103F1C;
   9499       case 0x36103F1Fu: goto L_36103F1F;
   9500       case 0x36103F21u: goto L_36103F21;
   9501       case 0x36103F23u: goto L_36103F23;
   9502       case 0x36103F26u: goto L_36103F26;
   9503       case 0x36103F28u: goto L_36103F28;
   9504       case 0x36103F2Bu: goto L_36103F2B;
   9505       case 0x36103F2Du: goto L_36103F2D;
   9506       case 0x36103F2Fu: goto L_36103F2F;
   9507       case 0x36103F31u: goto L_36103F31;
   9508       case 0x36103F34u: goto L_36103F34;
   9509       case 0x36103F37u: goto L_36103F37;
   9510       case 0x36103F3Au: goto L_36103F3A;
   9511       case 0x36103F3Du: goto L_36103F3D;
   9512       case 0x36103F40u: goto L_36103F40;
   9513       case 0x36103F43u: goto L_36103F43;
   9514       case 0x36103F49u: goto L_36103F49;
   9515       case 0x36103F4Cu: goto L_36103F4C;
   9516       case 0x36103F4Fu: goto L_36103F4F;
   9517       case 0x36103F52u: goto L_36103F52;
   9518       case 0x36103F54u: goto L_36103F54;
   9519       case 0x36103F56u: goto L_36103F56;
   9520       case 0x36103F59u: goto L_36103F59;
   9521       case 0x36103F5Cu: goto L_36103F5C;
   9522       case 0x36103F5Eu: goto L_36103F5E;
   9523       case 0x36103F60u: goto L_36103F60;
   9524       case 0x36103F62u: goto L_36103F62;
   9525       case 0x36103F65u: goto L_36103F65;
   9526       case 0x36103F68u: goto L_36103F68;
   9527       case 0x36103F6Bu: goto L_36103F6B;
   9528       case 0x36103F6Eu: goto L_36103F6E;
   9529       case 0x36103F71u: goto L_36103F71;
   9530       case 0x36103F74u: goto L_36103F74;
   9531       case 0x36103F7Bu: goto L_36103F7B;
   9532       case 0x36103F7Eu: goto L_36103F7E;
   9533       case 0x36103F81u: goto L_36103F81;
   9534       case 0x36103F87u: goto L_36103F87;
   9535       case 0x36103F8Du: goto L_36103F8D;
   9536       case 0x36103F8Fu: goto L_36103F8F;
   9537       case 0x36103F92u: goto L_36103F92;
   9538       case 0x36103F94u: goto L_36103F94;
   9539       case 0x36103F9Au: goto L_36103F9A;
   9540       case 0x36103F9Fu: goto L_36103F9F;
   9541       case 0x36103FA2u: goto L_36103FA2;
   9542       case 0x36103FA7u: goto L_36103FA7;
   9543       case 0x36103FA9u: goto L_36103FA9;
   9544       case 0x36103FADu: goto L_36103FAD;
   9545       case 0x36103FAFu: goto L_36103FAF;
   9546       case 0x36103FB1u: goto L_36103FB1;
   9547       case 0x36103FB4u: goto L_36103FB4;
   9548       case 0x36103FB9u: goto L_36103FB9;
   9549       case 0x36103FC0u: goto L_36103FC0;
   9550       case 0x36103FC3u: goto L_36103FC3;
   9551       case 0x36103FC6u: goto L_36103FC6;
   9552       case 0x36103FC9u: goto L_36103FC9;
   9553       case 0x36103FCCu: goto L_36103FCC;
   9554       case 0x36103FD2u: goto L_36103FD2;
   9555       case 0x36103FD5u: goto L_36103FD5;
   9556       case 0x36103FDBu: goto L_36103FDB;
   9557       case 0x36103FDEu: goto L_36103FDE;
   9558       case 0x36103FDFu: goto L_36103FDF;
   9559       case 0x36103FE2u: goto L_36103FE2;
   9560       case 0x36103FE7u: goto L_36103FE7;
   9561       case 0x36103FEAu: goto L_36103FEA;
   9562       case 0x36103FECu: goto L_36103FEC;
   9563       case 0x36103FEFu: goto L_36103FEF;
   9564       case 0x36103FF1u: goto L_36103FF1;
   9565       case 0x36103FF4u: goto L_36103FF4;
   9566       case 0x36103FF7u: goto L_36103FF7;
   9567       case 0x36103FFAu: goto L_36103FFA;
   9568       case 0x36103FFCu: goto L_36103FFC;
   9569       case 0x36103FFFu: goto L_36103FFF;
   9570       case 0x36104001u: goto L_36104001;
   9571       case 0x36104003u: goto L_36104003;
   9572       case 0x36104006u: goto L_36104006;
   9573       case 0x36104009u: goto L_36104009;
   9574       case 0x3610400Fu: goto L_3610400F;
   9575       case 0x36104010u: goto L_36104010;
   9576       case 0x36104015u: goto L_36104015;
   9577       case 0x36104016u: goto L_36104016;
   9578       case 0x36104019u: goto L_36104019;
   9579       case 0x36104020u: goto L_36104020;
   9580       case 0x36104026u: goto L_36104026;
   9581       case 0x36104029u: goto L_36104029;
   9582       case 0x3610402Bu: goto L_3610402B;
   9583       case 0x36104031u: goto L_36104031;
   9584       case 0x36104033u: goto L_36104033;
   9585       case 0x36104036u: goto L_36104036;
   9586       case 0x36104039u: goto L_36104039;
   9587       case 0x3610403Cu: goto L_3610403C;
   9588       case 0x3610403Fu: goto L_3610403F;
   9589       case 0x36104042u: goto L_36104042;
   9590       case 0x36104044u: goto L_36104044;
   9591       case 0x36104046u: goto L_36104046;
   9592       case 0x36104049u: goto L_36104049;
   9593       case 0x3610404Bu: goto L_3610404B;
   9594       case 0x3610404Du: goto L_3610404D;
   9595       case 0x36104050u: goto L_36104050;
   9596       case 0x36104051u: goto L_36104051;
   9597       case 0x36104052u: goto L_36104052;
   9598       case 0x36104055u: goto L_36104055;
   9599       case 0x36104056u: goto L_36104056;
   9600       case 0x3610405Du: goto L_3610405D;
   9601       case 0x3610405Fu: goto L_3610405F;
   9602       case 0x36104060u: goto L_36104060;
   9603       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   9604     }
   9605     RECOMP_REGS_OUT();
   9606 }
   9607 
   9608 void sub_36103F19(void) {
   9609     int _fpu_cmp = 0;
   9610     uint32_t _cf = 0;
   9611     int _df = 1;
   9612     uint32_t _flag_k = FK_NONE;
   9613     uint32_t _flag_a = 0, _flag_b = 0;
   9614     uint32_t _itail_tgt = 0;
   9615     RECOMP_REGS_LOCALS
   9616     RECOMP_ENTER(0x36103F19u);
   9617 
   9618     goto L_36103F19;
   9619 L_36103DF5:
   9620     eax = MEM32(edi + 0x40); /* 0x36103DF5: mov eax, dword ptr [edi + 0x40] */
   9621 L_36103DF8:
   9622     /* cmp eax, 3 */ /* 0x36103DF8: cmp eax, 3 */
   9623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   9624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9625     _flag_k = FK_CMP;
   9626 L_36103DFB:
   9627     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36103FB1; /* 0x36103DFB: ja 0x36103fb1 */
   9628 L_36103E01:
   9629     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36104064)); goto _ljump; }
   9630 L_36103E08:
   9631     eax = MEM32(ebp + (-0x14)); /* 0x36103E08: mov eax, dword ptr [ebp - 0x14] */
   9632 L_36103E0B:
   9633     /* test eax, eax */ /* 0x36103E0B: test eax, eax */
   9634     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9635     _cf = 0;
   9636     _flag_k = FK_TEST;
   9637 L_36103E0D:
   9638     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FC0; /* 0x36103E0D: je 0x36103fc0 */
   9639 L_36103E13:
   9640     ecx = MEM32(esi + 0x20); /* 0x36103E13: mov ecx, dword ptr [esi + 0x20] */
   9641 L_36103E16:
   9642     edx = ebp + (-0x28); /* 0x36103E16: lea edx, [ebp - 0x28] */
   9643 L_36103E19:
   9644     PUSH32(esp, edx); /* 0x36103E19: push edx */
   9645 L_36103E1A:
   9646     RECOMP_ICALL(0x36133FC0u); /* 0x36103E1A: call 0x36133fc0 */ /* not lifted */
   9647     RECOMP_FLAGS_IN();
   9648 L_36103E1F:
   9649     edx = MEM32(eax); /* 0x36103E1F: mov edx, dword ptr [eax] */
   9650 L_36103E21:
   9651     ecx = MEM32(ebp + (-0x10)); /* 0x36103E21: mov ecx, dword ptr [ebp - 0x10] */
   9652 L_36103E24:
   9653     MEM32(ecx) = edx; /* 0x36103E24: mov dword ptr [ecx], edx */
   9654 L_36103E26:
   9655     edx = MEM32(eax + 0x4); /* 0x36103E26: mov edx, dword ptr [eax + 4] */
   9656 L_36103E29:
   9657     MEM32(ecx + 0x4) = edx; /* 0x36103E29: mov dword ptr [ecx + 4], edx */
   9658 L_36103E2C:
   9659     eax = MEM32(eax + 0x8); /* 0x36103E2C: mov eax, dword ptr [eax + 8] */
   9660 L_36103E2F:
   9661     MEM32(ecx + 0x8) = eax; /* 0x36103E2F: mov dword ptr [ecx + 8], eax */
   9662 L_36103E32:
   9663     ecx = MEM32(esi + 0xC); /* 0x36103E32: mov ecx, dword ptr [esi + 0xc] */
   9664 L_36103E35:
   9665     MEM32(edi + 0x20) = ecx; /* 0x36103E35: mov dword ptr [edi + 0x20], ecx */
   9666 L_36103E38:
   9667     ecx = MEM32(ebp + (-0x10)); /* 0x36103E38: mov ecx, dword ptr [ebp - 0x10] */
   9668 L_36103E3B:
   9669     MEM32(edi + 0x40) = 1; /* 0x36103E3B: mov dword ptr [edi + 0x40], 1 */
   9670 L_36103E42:
   9671     edx = MEM32(esi + 0xC); /* 0x36103E42: mov edx, dword ptr [esi + 0xc] */
   9672 L_36103E45:
   9673     eax = MEM32(esi + 0x2C); /* 0x36103E45: mov eax, dword ptr [esi + 0x2c] */
   9674 L_36103E48:
   9675     MEM32(esi + 0x110) = edx; /* 0x36103E48: mov dword ptr [esi + 0x110], edx */
   9676 L_36103E4E:
   9677     edx = MEM32(ecx); /* 0x36103E4E: mov edx, dword ptr [ecx] */
   9678 L_36103E50:
   9679     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9680     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9681     eax = eax + ebx; /* 0x36103E50: add eax, ebx */
   9682     _flag_k = FK_ADD;
   9683 L_36103E52:
   9684     MEM32(eax) = edx; /* 0x36103E52: mov dword ptr [eax], edx */
   9685 L_36103E54:
   9686     edx = MEM32(ecx + 0x4); /* 0x36103E54: mov edx, dword ptr [ecx + 4] */
   9687 L_36103E57:
   9688     MEM32(eax + 0x4) = edx; /* 0x36103E57: mov dword ptr [eax + 4], edx */
   9689 L_36103E5A:
   9690     ecx = MEM32(ecx + 0x8); /* 0x36103E5A: mov ecx, dword ptr [ecx + 8] */
   9691 L_36103E5D:
   9692     MEM32(eax + 0x8) = ecx; /* 0x36103E5D: mov dword ptr [eax + 8], ecx */
   9693 L_36103E60:
   9694     edx = MEM32(esi + 0x2C); /* 0x36103E60: mov edx, dword ptr [esi + 0x2c] */
   9695 L_36103E63:
   9696     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9697     ecx = 0; /* 0x36103E63: xor ecx, ecx */
   9698     _cf = 0;
   9699     _flag_k = FK_TEST;
   9700 L_36103E65:
   9701     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103E65: mov dword ptr [edx + ebx + 0x18], ecx */
   9702 L_36103E69:
   9703     eax = MEM32(esi + 0x2C); /* 0x36103E69: mov eax, dword ptr [esi + 0x2c] */
   9704 L_36103E6C:
   9705     MEM8(eax + ebx + 0x1C) = (uint8_t)(1); /* 0x36103E6C: mov byte ptr [eax + ebx + 0x1c], 1 */
   9706 L_36103E71:
   9707     MEM32(ebp + (-0x14)) = ecx; /* 0x36103E71: mov dword ptr [ebp - 0x14], ecx */
   9708 L_36103E74:
   9709     goto L_36103E78; /* 0x36103E74: jmp 0x36103e78 */
   9710 L_36103E76:
   9711     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9712     ecx = 0; /* 0x36103E76: xor ecx, ecx */
   9713     _cf = 0;
   9714     _flag_k = FK_TEST;
   9715 L_36103E78:
   9716     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103E78: fld dword ptr [esi + 0xc] */
   9717 L_36103E7B:
   9718     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103E7B: fsub dword ptr [edi + 0x20] */
   9719 L_36103E7E:
   9720     _st[0] /= (double)*(float*)ADDR(esi + 0x168); /* 0x36103E7E: fdiv dword ptr [esi + 0x168] */
   9721 L_36103E84:
   9722     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36103E84: fst dword ptr [ebp - 0x1c] */
   9723 L_36103E87:
   9724     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103E87: fcomp dword ptr [0x36170380] */
   9725     fp_pop();
   9726 L_36103E8D:
   9727     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103E8D: fnstsw ax */
   9728 L_36103E8F:
   9729     /* test HI8(eax), 1 */ /* 0x36103E8F: test ah, 1 */
   9730     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9731     _cf = 0;
   9732     _flag_k = FK_NARROW(FK_TEST, 24);
   9733 L_36103E92:
   9734     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103EE8; /* 0x36103E92: je 0x36103ee8 */
   9735 L_36103E94:
   9736     ecx = ebp + (-0x34); /* 0x36103E94: lea ecx, [ebp - 0x34] */
   9737 L_36103E97:
   9738     PUSH32(esp, ecx); /* 0x36103E97: push ecx */
   9739 L_36103E98:
   9740     ecx = MEM32(esi + 0x20); /* 0x36103E98: mov ecx, dword ptr [esi + 0x20] */
   9741 L_36103E9B:
   9742     RECOMP_ICALL(0x36133FC0u); /* 0x36103E9B: call 0x36133fc0 */ /* not lifted */
   9743     RECOMP_FLAGS_IN();
   9744 L_36103EA0:
   9745     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36103EA0: fld dword ptr [ebp - 0x1c] */
   9746 L_36103EA3:
   9747     edx = MEM32(ebp + (-0x10)); /* 0x36103EA3: mov edx, dword ptr [ebp - 0x10] */
   9748 L_36103EA6:
   9749     _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36103EA6: fmul dword ptr [0x36170eb8] */
   9750 L_36103EAC:
   9751     MEM32(ebp + (-0x18)) = eax; /* 0x36103EAC: mov dword ptr [ebp - 0x18], eax */
   9752 L_36103EAF:
   9753     ecx = MEM32(eax); /* 0x36103EAF: mov ecx, dword ptr [eax] */
   9754 L_36103EB1:
   9755     MEM32(edx) = ecx; /* 0x36103EB1: mov dword ptr [edx], ecx */
   9756 L_36103EB3:
   9757     ecx = MEM32(eax + 0x4); /* 0x36103EB3: mov ecx, dword ptr [eax + 4] */
   9758 L_36103EB6:
   9759     MEM32(edx + 0x4) = ecx; /* 0x36103EB6: mov dword ptr [edx + 4], ecx */
   9760 L_36103EB9:
   9761     eax = MEM32(eax + 0x8); /* 0x36103EB9: mov eax, dword ptr [eax + 8] */
   9762 L_36103EBC:
   9763     MEM32(edx + 0x8) = eax; /* 0x36103EBC: mov dword ptr [edx + 8], eax */
   9764 L_36103EBF:
   9765     ecx = MEM32(esi + 0x2C); /* 0x36103EBF: mov ecx, dword ptr [esi + 0x2c] */
   9766 L_36103EC2:
   9767     eax = MEM32(ebp + (-0x18)); /* 0x36103EC2: mov eax, dword ptr [ebp - 0x18] */
   9768 L_36103EC5:
   9769     edx = MEM32(eax); /* 0x36103EC5: mov edx, dword ptr [eax] */
   9770 L_36103EC7:
   9771     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9772     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9773     ecx = ecx + ebx; /* 0x36103EC7: add ecx, ebx */
   9774     _flag_k = FK_ADD;
   9775 L_36103EC9:
   9776     MEM32(ecx) = edx; /* 0x36103EC9: mov dword ptr [ecx], edx */
   9777 L_36103ECB:
   9778     edx = MEM32(eax + 0x4); /* 0x36103ECB: mov edx, dword ptr [eax + 4] */
   9779 L_36103ECE:
   9780     MEM32(ecx + 0x4) = edx; /* 0x36103ECE: mov dword ptr [ecx + 4], edx */
   9781 L_36103ED1:
   9782     eax = MEM32(eax + 0x8); /* 0x36103ED1: mov eax, dword ptr [eax + 8] */
   9783 L_36103ED4:
   9784     MEM32(ecx + 0x8) = eax; /* 0x36103ED4: mov dword ptr [ecx + 8], eax */
   9785 L_36103ED7:
   9786     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103ED7: call 0x3615fd8c */ /* not lifted */
   9787     RECOMP_FLAGS_IN();
   9788 L_36103EDC:
   9789     ecx = MEM32(esi + 0x2C); /* 0x36103EDC: mov ecx, dword ptr [esi + 0x2c] */
   9790 L_36103EDF:
   9791     MEM32(ecx + ebx + 0x18) = eax; /* 0x36103EDF: mov dword ptr [ecx + ebx + 0x18], eax */
   9792 L_36103EE3:
   9793     goto L_36103FC0; /* 0x36103EE3: jmp 0x36103fc0 */
   9794 L_36103EE8:
   9795     edx = MEM32(esi + 0x2C); /* 0x36103EE8: mov edx, dword ptr [esi + 0x2c] */
   9796 L_36103EEB:
   9797     eax = MEM32(ebp + (-0x10)); /* 0x36103EEB: mov eax, dword ptr [ebp - 0x10] */
   9798 L_36103EEE:
   9799     MEM32(edx + ebx + 0x18) = 5; /* 0x36103EEE: mov dword ptr [edx + ebx + 0x18], 5 */
   9800 L_36103EF6:
   9801     PUSH32(esp, eax); /* 0x36103EF6: push eax */
   9802 L_36103EF7:
   9803     MEM32(edi + (-0x20)) = ecx; /* 0x36103EF7: mov dword ptr [edi - 0x20], ecx */
   9804 L_36103EFA:
   9805     RECOMP_ICALL(0x360FC710u); /* 0x36103EFA: call 0x360fc710 */ /* not lifted */
   9806     RECOMP_FLAGS_IN();
   9807 L_36103EFF:
   9808     fp_push(*(float*)&MEM32(esi + 0x128)); /* 0x36103EFF: fld dword ptr [esi + 0x128] */
   9809 L_36103F05:
   9810     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36103F05: fmul dword ptr [0x36170464] */
   9811 L_36103F0B:
   9812     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9813     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9814     esp = esp + 4; /* 0x36103F0B: add esp, 4 */
   9815     _flag_k = FK_ADD;
   9816 L_36103F0E:
   9817     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103F0E: faddp st(1) */
   9818 L_36103F10:
   9819     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103F10: fstp dword ptr [edi] */
   9820 L_36103F12:
   9821     MEM32(edi + 0x40) = 2; /* 0x36103F12: mov dword ptr [edi + 0x40], 2 */
   9822 L_36103F19:
   9823     ecx = MEM32(ebp + (-0x10)); /* 0x36103F19: mov ecx, dword ptr [ebp - 0x10] */
   9824 L_36103F1C:
   9825     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36103F1C: fld dword ptr [ecx + 4] */
   9826 L_36103F1F:
   9827     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x36103F1F: fcomp dword ptr [edi] */
   9828     fp_pop();
   9829 L_36103F21:
   9830     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F21: fnstsw ax */
   9831 L_36103F23:
   9832     /* test HI8(eax), 0x41u */ /* 0x36103F23: test ah, 0x41 */
   9833     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   9834     _cf = 0;
   9835     _flag_k = FK_NARROW(FK_TEST, 24);
   9836 L_36103F26:
   9837     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103F54; /* 0x36103F26: jne 0x36103f54 */
   9838 L_36103F28:
   9839     edx = MEM32(esi + 0x2C); /* 0x36103F28: mov edx, dword ptr [esi + 0x2c] */
   9840 L_36103F2B:
   9841     eax = MEM32(ecx); /* 0x36103F2B: mov eax, dword ptr [ecx] */
   9842 L_36103F2D:
   9843     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   9844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9845     edx = edx + ebx; /* 0x36103F2D: add edx, ebx */
   9846     _flag_k = FK_ADD;
   9847 L_36103F2F:
   9848     MEM32(edx) = eax; /* 0x36103F2F: mov dword ptr [edx], eax */
   9849 L_36103F31:
   9850     eax = MEM32(ecx + 0x4); /* 0x36103F31: mov eax, dword ptr [ecx + 4] */
   9851 L_36103F34:
   9852     MEM32(edx + 0x4) = eax; /* 0x36103F34: mov dword ptr [edx + 4], eax */
   9853 L_36103F37:
   9854     ecx = MEM32(ecx + 0x8); /* 0x36103F37: mov ecx, dword ptr [ecx + 8] */
   9855 L_36103F3A:
   9856     eax = MEM32(ebp + (-0x10)); /* 0x36103F3A: mov eax, dword ptr [ebp - 0x10] */
   9857 L_36103F3D:
   9858     MEM32(edx + 0x8) = ecx; /* 0x36103F3D: mov dword ptr [edx + 8], ecx */
   9859 L_36103F40:
   9860     fp_push(*(float*)&MEM32(edi + (-0x20))); /* 0x36103F40: fld dword ptr [edi - 0x20] */
   9861 L_36103F43:
   9862     _st[0] -= (double)*(float*)ADDR(0x36170850); /* 0x36103F43: fsub dword ptr [0x36170850] */
   9863 L_36103F49:
   9864     { float _v = (float)_st[0]; *(float*)ADDR(edi + (-0x20)) = _v; } /* 0x36103F49: fst dword ptr [edi - 0x20] */
   9865 L_36103F4C:
   9866     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x36103F4C: fadd dword ptr [eax + 4] */
   9867 L_36103F4F:
   9868     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36103F4F: fstp dword ptr [eax + 4] */
   9869 L_36103F52:
   9870     goto L_36103FC0; /* 0x36103F52: jmp 0x36103fc0 */
   9871 L_36103F54:
   9872     edx = MEM32(edi); /* 0x36103F54: mov edx, dword ptr [edi] */
   9873 L_36103F56:
   9874     MEM32(ecx + 0x4) = edx; /* 0x36103F56: mov dword ptr [ecx + 4], edx */
   9875 L_36103F59:
   9876     eax = MEM32(esi + 0x2C); /* 0x36103F59: mov eax, dword ptr [esi + 0x2c] */
   9877 L_36103F5C:
   9878     edx = MEM32(ecx); /* 0x36103F5C: mov edx, dword ptr [ecx] */
   9879 L_36103F5E:
   9880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9882     eax = eax + ebx; /* 0x36103F5E: add eax, ebx */
   9883     _flag_k = FK_ADD;
   9884 L_36103F60:
   9885     MEM32(eax) = edx; /* 0x36103F60: mov dword ptr [eax], edx */
   9886 L_36103F62:
   9887     edx = MEM32(ecx + 0x4); /* 0x36103F62: mov edx, dword ptr [ecx + 4] */
   9888 L_36103F65:
   9889     MEM32(eax + 0x4) = edx; /* 0x36103F65: mov dword ptr [eax + 4], edx */
   9890 L_36103F68:
   9891     ecx = MEM32(ecx + 0x8); /* 0x36103F68: mov ecx, dword ptr [ecx + 8] */
   9892 L_36103F6B:
   9893     MEM32(eax + 0x8) = ecx; /* 0x36103F6B: mov dword ptr [eax + 8], ecx */
   9894 L_36103F6E:
   9895     edx = MEM32(esi + 0xC); /* 0x36103F6E: mov edx, dword ptr [esi + 0xc] */
   9896 L_36103F71:
   9897     MEM32(edi + 0x20) = edx; /* 0x36103F71: mov dword ptr [edi + 0x20], edx */
   9898 L_36103F74:
   9899     MEM32(edi + 0x40) = 3; /* 0x36103F74: mov dword ptr [edi + 0x40], 3 */
   9900 L_36103F7B:
   9901     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103F7B: fld dword ptr [esi + 0xc] */
   9902 L_36103F7E:
   9903     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103F7E: fsub dword ptr [edi + 0x20] */
   9904 L_36103F81:
   9905     _st[0] /= (double)*(float*)ADDR(esi + 0x16C); /* 0x36103F81: fdiv dword ptr [esi + 0x16c] */
   9906 L_36103F87:
   9907     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103F87: fcom dword ptr [0x36170380] */
   9908 L_36103F8D:
   9909     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F8D: fnstsw ax */
   9910 L_36103F8F:
   9911     /* test HI8(eax), 1 */ /* 0x36103F8F: test ah, 1 */
   9912     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9913     _cf = 0;
   9914     _flag_k = FK_NARROW(FK_TEST, 24);
   9915 L_36103F92:
   9916     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FAF; /* 0x36103F92: je 0x36103faf */
   9917 L_36103F94:
   9918     _st[0] *= (double)*(float*)ADDR(0x36175A38); /* 0x36103F94: fmul dword ptr [0x36175a38] */
   9919 L_36103F9A:
   9920     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103F9A: call 0x3615fd8c */ /* not lifted */
   9921     RECOMP_FLAGS_IN();
   9922 L_36103F9F:
   9923     edx = MEM32(esi + 0x2C); /* 0x36103F9F: mov edx, dword ptr [esi + 0x2c] */
   9924 L_36103FA2:
   9925     ecx = 5; /* 0x36103FA2: mov ecx, 5 */
   9926 L_36103FA7:
   9927     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   9928     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9929     ecx = ecx - eax; /* 0x36103FA7: sub ecx, eax */
   9930     _flag_k = FK_CMP;
   9931 L_36103FA9:
   9932     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103FA9: mov dword ptr [edx + ebx + 0x18], ecx */
   9933 L_36103FAD:
   9934     goto L_36103FC0; /* 0x36103FAD: jmp 0x36103fc0 */
   9935 L_36103FAF:
   9936     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103FAF: fstp st(0) */
   9937 L_36103FB1:
   9938     eax = MEM32(esi + 0x2C); /* 0x36103FB1: mov eax, dword ptr [esi + 0x2c] */
   9939 L_36103FB4:
   9940     MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36103FB4: mov byte ptr [eax + ebx + 0x1c], 0 */
   9941 L_36103FB9:
   9942     MEM32(edi + 0x40) = 0; /* 0x36103FB9: mov dword ptr [edi + 0x40], 0 */
   9943 L_36103FC0:
   9944     edx = MEM32(ebp + (-0x10)); /* 0x36103FC0: mov edx, dword ptr [ebp - 0x10] */
   9945 L_36103FC3:
   9946     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   9947     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9948     edx = edx + 0xCu; /* 0x36103FC3: add edx, 0xc */
   9949     _flag_k = FK_ADD;
   9950 L_36103FC6:
   9951     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u);
   9952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9953     ebx = ebx + 0x20u; /* 0x36103FC6: add ebx, 0x20 */
   9954     _flag_k = FK_ADD;
   9955 L_36103FC9:
   9956     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   9957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9958     edi = edi + 4; /* 0x36103FC9: add edi, 4 */
   9959     _flag_k = FK_ADD;
   9960 L_36103FCC:
   9961     /* cmp ebx, 0x100u */ /* 0x36103FCC: cmp ebx, 0x100 */
   9962     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x100u);
   9963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9964     _flag_k = FK_CMP;
   9965 L_36103FD2:
   9966     MEM32(ebp + (-0x10)) = edx; /* 0x36103FD2: mov dword ptr [ebp - 0x10], edx */
   9967 L_36103FD5:
   9968     RECOMP_BACKEDGE();
   9969     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36103DF5; /* 0x36103FD5: jl 0x36103df5 */
   9970 L_36103FDB:
   9971     ecx = ebp + (-0x34); /* 0x36103FDB: lea ecx, [ebp - 0x34] */
   9972 L_36103FDE:
   9973     PUSH32(esp, ecx); /* 0x36103FDE: push ecx */
   9974 L_36103FDF:
   9975     ecx = MEM32(esi + 0x20); /* 0x36103FDF: mov ecx, dword ptr [esi + 0x20] */
   9976 L_36103FE2:
   9977     RECOMP_ICALL(0x36133E80u); /* 0x36103FE2: call 0x36133e80 */ /* not lifted */
   9978     RECOMP_FLAGS_IN();
   9979 L_36103FE7:
   9980     ecx = MEM32(esi + 0x28); /* 0x36103FE7: mov ecx, dword ptr [esi + 0x28] */
   9981 L_36103FEA:
   9982     edi = MEM32(eax); /* 0x36103FEA: mov edi, dword ptr [eax] */
   9983 L_36103FEC:
   9984     edx = ecx + 0x78; /* 0x36103FEC: lea edx, [ecx + 0x78] */
   9985 L_36103FEF:
   9986     MEM32(edx) = edi; /* 0x36103FEF: mov dword ptr [edx], edi */
   9987 L_36103FF1:
   9988     edi = MEM32(eax + 0x4); /* 0x36103FF1: mov edi, dword ptr [eax + 4] */
   9989 L_36103FF4:
   9990     MEM32(edx + 0x4) = edi; /* 0x36103FF4: mov dword ptr [edx + 4], edi */
   9991 L_36103FF7:
   9992     eax = MEM32(eax + 0x8); /* 0x36103FF7: mov eax, dword ptr [eax + 8] */
   9993 L_36103FFA:
   9994     PUSH32(esp, 1); /* 0x36103FFA: push 1 */
   9995 L_36103FFC:
   9996     MEM32(edx + 0x8) = eax; /* 0x36103FFC: mov dword ptr [edx + 8], eax */
   9997 L_36103FFF:
   9998     edx = MEM32(ecx); /* 0x36103FFF: mov edx, dword ptr [ecx] */
   9999 L_36104001:
  10000     PUSH32(esp, 1); /* 0x36104001: push 1 */
  10001 L_36104003:
  10002     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36104003: call dword ptr [edx + 0x2c] */
  10003     RECOMP_FLAGS_IN();
  10004 L_36104006:
  10005     ecx = MEM32(esi + 0x20); /* 0x36104006: mov ecx, dword ptr [esi + 0x20] */
  10006 L_36104009:
  10007     eax = ebp + (-0x84); /* 0x36104009: lea eax, [ebp - 0x84] */
  10008 L_3610400F:
  10009     PUSH32(esp, eax); /* 0x3610400F: push eax */
  10010 L_36104010:
  10011     RECOMP_ICALL(0x36133DC0u); /* 0x36104010: call 0x36133dc0 */ /* not lifted */
  10012     RECOMP_FLAGS_IN();
  10013 L_36104015:
  10014     PUSH32(esp, eax); /* 0x36104015: push eax */
  10015 L_36104016:
  10016     ecx = ebp + (-0x44); /* 0x36104016: lea ecx, [ebp - 0x44] */
  10017 L_36104019:
  10018     MEM32(ebp + (-0x4)) = 0; /* 0x36104019: mov dword ptr [ebp - 4], 0 */
  10019 L_36104020:
  10020     RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36104020: call dword ptr [0x361701a4] */
  10021     RECOMP_FLAGS_IN();
  10022 L_36104026:
  10023     esi = MEM32(esi + 0x28); /* 0x36104026: mov esi, dword ptr [esi + 0x28] */
  10024 L_36104029:
  10025     edx = MEM32(eax); /* 0x36104029: mov edx, dword ptr [eax] */
  10026 L_3610402B:
  10027     ecx = esi + 0x84; /* 0x3610402B: lea ecx, [esi + 0x84] */
  10028 L_36104031:
  10029     MEM32(ecx) = edx; /* 0x36104031: mov dword ptr [ecx], edx */
  10030 L_36104033:
  10031     edx = MEM32(eax + 0x4); /* 0x36104033: mov edx, dword ptr [eax + 4] */
  10032 L_36104036:
  10033     MEM32(ecx + 0x4) = edx; /* 0x36104036: mov dword ptr [ecx + 4], edx */
  10034 L_36104039:
  10035     edx = MEM32(eax + 0x8); /* 0x36104039: mov edx, dword ptr [eax + 8] */
  10036 L_3610403C:
  10037     MEM32(ecx + 0x8) = edx; /* 0x3610403C: mov dword ptr [ecx + 8], edx */
  10038 L_3610403F:
  10039     eax = MEM32(eax + 0xC); /* 0x3610403F: mov eax, dword ptr [eax + 0xc] */
  10040 L_36104042:
  10041     edx = MEM32(esi); /* 0x36104042: mov edx, dword ptr [esi] */
  10042 L_36104044:
  10043     PUSH32(esp, 1); /* 0x36104044: push 1 */
  10044 L_36104046:
  10045     MEM32(ecx + 0xC) = eax; /* 0x36104046: mov dword ptr [ecx + 0xc], eax */
  10046 L_36104049:
  10047     PUSH32(esp, 2); /* 0x36104049: push 2 */
  10048 L_3610404B:
  10049     ecx = esi; /* 0x3610404B: mov ecx, esi */
  10050 L_3610404D:
  10051     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610404D: call dword ptr [edx + 0x2c] */
  10052     RECOMP_FLAGS_IN();
  10053 L_36104050:
  10054     edi = POP32_VAL(esp); /* 0x36104050: pop edi */
  10055 L_36104051:
  10056     ebx = POP32_VAL(esp); /* 0x36104051: pop ebx */
  10057 L_36104052:
  10058     ecx = MEM32(ebp + (-0xC)); /* 0x36104052: mov ecx, dword ptr [ebp - 0xc] */
  10059 L_36104055:
  10060     esi = POP32_VAL(esp); /* 0x36104055: pop esi */
  10061 L_36104056:
  10062     MEM32(FS_BASE + (0)) = ecx; /* 0x36104056: mov dword ptr fs:[0], ecx */
  10063 L_3610405D:
  10064     esp = ebp; /* 0x3610405D: mov esp, ebp */
  10065 L_3610405F:
  10066     ebp = POP32_VAL(esp); /* 0x3610405F: pop ebp */
  10067 L_36104060:
  10068     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104060: ret  */
  10069   _ljump:
  10070     switch (_itail_tgt) {
  10071       case 0x36103DF5u: goto L_36103DF5;
  10072       case 0x36103DF8u: goto L_36103DF8;
  10073       case 0x36103DFBu: goto L_36103DFB;
  10074       case 0x36103E01u: goto L_36103E01;
  10075       case 0x36103E08u: goto L_36103E08;
  10076       case 0x36103E0Bu: goto L_36103E0B;
  10077       case 0x36103E0Du: goto L_36103E0D;
  10078       case 0x36103E13u: goto L_36103E13;
  10079       case 0x36103E16u: goto L_36103E16;
  10080       case 0x36103E19u: goto L_36103E19;
  10081       case 0x36103E1Au: goto L_36103E1A;
  10082       case 0x36103E1Fu: goto L_36103E1F;
  10083       case 0x36103E21u: goto L_36103E21;
  10084       case 0x36103E24u: goto L_36103E24;
  10085       case 0x36103E26u: goto L_36103E26;
  10086       case 0x36103E29u: goto L_36103E29;
  10087       case 0x36103E2Cu: goto L_36103E2C;
  10088       case 0x36103E2Fu: goto L_36103E2F;
  10089       case 0x36103E32u: goto L_36103E32;
  10090       case 0x36103E35u: goto L_36103E35;
  10091       case 0x36103E38u: goto L_36103E38;
  10092       case 0x36103E3Bu: goto L_36103E3B;
  10093       case 0x36103E42u: goto L_36103E42;
  10094       case 0x36103E45u: goto L_36103E45;
  10095       case 0x36103E48u: goto L_36103E48;
  10096       case 0x36103E4Eu: goto L_36103E4E;
  10097       case 0x36103E50u: goto L_36103E50;
  10098       case 0x36103E52u: goto L_36103E52;
  10099       case 0x36103E54u: goto L_36103E54;
  10100       case 0x36103E57u: goto L_36103E57;
  10101       case 0x36103E5Au: goto L_36103E5A;
  10102       case 0x36103E5Du: goto L_36103E5D;
  10103       case 0x36103E60u: goto L_36103E60;
  10104       case 0x36103E63u: goto L_36103E63;
  10105       case 0x36103E65u: goto L_36103E65;
  10106       case 0x36103E69u: goto L_36103E69;
  10107       case 0x36103E6Cu: goto L_36103E6C;
  10108       case 0x36103E71u: goto L_36103E71;
  10109       case 0x36103E74u: goto L_36103E74;
  10110       case 0x36103E76u: goto L_36103E76;
  10111       case 0x36103E78u: goto L_36103E78;
  10112       case 0x36103E7Bu: goto L_36103E7B;
  10113       case 0x36103E7Eu: goto L_36103E7E;
  10114       case 0x36103E84u: goto L_36103E84;
  10115       case 0x36103E87u: goto L_36103E87;
  10116       case 0x36103E8Du: goto L_36103E8D;
  10117       case 0x36103E8Fu: goto L_36103E8F;
  10118       case 0x36103E92u: goto L_36103E92;
  10119       case 0x36103E94u: goto L_36103E94;
  10120       case 0x36103E97u: goto L_36103E97;
  10121       case 0x36103E98u: goto L_36103E98;
  10122       case 0x36103E9Bu: goto L_36103E9B;
  10123       case 0x36103EA0u: goto L_36103EA0;
  10124       case 0x36103EA3u: goto L_36103EA3;
  10125       case 0x36103EA6u: goto L_36103EA6;
  10126       case 0x36103EACu: goto L_36103EAC;
  10127       case 0x36103EAFu: goto L_36103EAF;
  10128       case 0x36103EB1u: goto L_36103EB1;
  10129       case 0x36103EB3u: goto L_36103EB3;
  10130       case 0x36103EB6u: goto L_36103EB6;
  10131       case 0x36103EB9u: goto L_36103EB9;
  10132       case 0x36103EBCu: goto L_36103EBC;
  10133       case 0x36103EBFu: goto L_36103EBF;
  10134       case 0x36103EC2u: goto L_36103EC2;
  10135       case 0x36103EC5u: goto L_36103EC5;
  10136       case 0x36103EC7u: goto L_36103EC7;
  10137       case 0x36103EC9u: goto L_36103EC9;
  10138       case 0x36103ECBu: goto L_36103ECB;
  10139       case 0x36103ECEu: goto L_36103ECE;
  10140       case 0x36103ED1u: goto L_36103ED1;
  10141       case 0x36103ED4u: goto L_36103ED4;
  10142       case 0x36103ED7u: goto L_36103ED7;
  10143       case 0x36103EDCu: goto L_36103EDC;
  10144       case 0x36103EDFu: goto L_36103EDF;
  10145       case 0x36103EE3u: goto L_36103EE3;
  10146       case 0x36103EE8u: goto L_36103EE8;
  10147       case 0x36103EEBu: goto L_36103EEB;
  10148       case 0x36103EEEu: goto L_36103EEE;
  10149       case 0x36103EF6u: goto L_36103EF6;
  10150       case 0x36103EF7u: goto L_36103EF7;
  10151       case 0x36103EFAu: goto L_36103EFA;
  10152       case 0x36103EFFu: goto L_36103EFF;
  10153       case 0x36103F05u: goto L_36103F05;
  10154       case 0x36103F0Bu: goto L_36103F0B;
  10155       case 0x36103F0Eu: goto L_36103F0E;
  10156       case 0x36103F10u: goto L_36103F10;
  10157       case 0x36103F12u: goto L_36103F12;
  10158       case 0x36103F19u: goto L_36103F19;
  10159       case 0x36103F1Cu: goto L_36103F1C;
  10160       case 0x36103F1Fu: goto L_36103F1F;
  10161       case 0x36103F21u: goto L_36103F21;
  10162       case 0x36103F23u: goto L_36103F23;
  10163       case 0x36103F26u: goto L_36103F26;
  10164       case 0x36103F28u: goto L_36103F28;
  10165       case 0x36103F2Bu: goto L_36103F2B;
  10166       case 0x36103F2Du: goto L_36103F2D;
  10167       case 0x36103F2Fu: goto L_36103F2F;
  10168       case 0x36103F31u: goto L_36103F31;
  10169       case 0x36103F34u: goto L_36103F34;
  10170       case 0x36103F37u: goto L_36103F37;
  10171       case 0x36103F3Au: goto L_36103F3A;
  10172       case 0x36103F3Du: goto L_36103F3D;
  10173       case 0x36103F40u: goto L_36103F40;
  10174       case 0x36103F43u: goto L_36103F43;
  10175       case 0x36103F49u: goto L_36103F49;
  10176       case 0x36103F4Cu: goto L_36103F4C;
  10177       case 0x36103F4Fu: goto L_36103F4F;
  10178       case 0x36103F52u: goto L_36103F52;
  10179       case 0x36103F54u: goto L_36103F54;
  10180       case 0x36103F56u: goto L_36103F56;
  10181       case 0x36103F59u: goto L_36103F59;
  10182       case 0x36103F5Cu: goto L_36103F5C;
  10183       case 0x36103F5Eu: goto L_36103F5E;
  10184       case 0x36103F60u: goto L_36103F60;
  10185       case 0x36103F62u: goto L_36103F62;
  10186       case 0x36103F65u: goto L_36103F65;
  10187       case 0x36103F68u: goto L_36103F68;
  10188       case 0x36103F6Bu: goto L_36103F6B;
  10189       case 0x36103F6Eu: goto L_36103F6E;
  10190       case 0x36103F71u: goto L_36103F71;
  10191       case 0x36103F74u: goto L_36103F74;
  10192       case 0x36103F7Bu: goto L_36103F7B;
  10193       case 0x36103F7Eu: goto L_36103F7E;
  10194       case 0x36103F81u: goto L_36103F81;
  10195       case 0x36103F87u: goto L_36103F87;
  10196       case 0x36103F8Du: goto L_36103F8D;
  10197       case 0x36103F8Fu: goto L_36103F8F;
  10198       case 0x36103F92u: goto L_36103F92;
  10199       case 0x36103F94u: goto L_36103F94;
  10200       case 0x36103F9Au: goto L_36103F9A;
  10201       case 0x36103F9Fu: goto L_36103F9F;
  10202       case 0x36103FA2u: goto L_36103FA2;
  10203       case 0x36103FA7u: goto L_36103FA7;
  10204       case 0x36103FA9u: goto L_36103FA9;
  10205       case 0x36103FADu: goto L_36103FAD;
  10206       case 0x36103FAFu: goto L_36103FAF;
  10207       case 0x36103FB1u: goto L_36103FB1;
  10208       case 0x36103FB4u: goto L_36103FB4;
  10209       case 0x36103FB9u: goto L_36103FB9;
  10210       case 0x36103FC0u: goto L_36103FC0;
  10211       case 0x36103FC3u: goto L_36103FC3;
  10212       case 0x36103FC6u: goto L_36103FC6;
  10213       case 0x36103FC9u: goto L_36103FC9;
  10214       case 0x36103FCCu: goto L_36103FCC;
  10215       case 0x36103FD2u: goto L_36103FD2;
  10216       case 0x36103FD5u: goto L_36103FD5;
  10217       case 0x36103FDBu: goto L_36103FDB;
  10218       case 0x36103FDEu: goto L_36103FDE;
  10219       case 0x36103FDFu: goto L_36103FDF;
  10220       case 0x36103FE2u: goto L_36103FE2;
  10221       case 0x36103FE7u: goto L_36103FE7;
  10222       case 0x36103FEAu: goto L_36103FEA;
  10223       case 0x36103FECu: goto L_36103FEC;
  10224       case 0x36103FEFu: goto L_36103FEF;
  10225       case 0x36103FF1u: goto L_36103FF1;
  10226       case 0x36103FF4u: goto L_36103FF4;
  10227       case 0x36103FF7u: goto L_36103FF7;
  10228       case 0x36103FFAu: goto L_36103FFA;
  10229       case 0x36103FFCu: goto L_36103FFC;
  10230       case 0x36103FFFu: goto L_36103FFF;
  10231       case 0x36104001u: goto L_36104001;
  10232       case 0x36104003u: goto L_36104003;
  10233       case 0x36104006u: goto L_36104006;
  10234       case 0x36104009u: goto L_36104009;
  10235       case 0x3610400Fu: goto L_3610400F;
  10236       case 0x36104010u: goto L_36104010;
  10237       case 0x36104015u: goto L_36104015;
  10238       case 0x36104016u: goto L_36104016;
  10239       case 0x36104019u: goto L_36104019;
  10240       case 0x36104020u: goto L_36104020;
  10241       case 0x36104026u: goto L_36104026;
  10242       case 0x36104029u: goto L_36104029;
  10243       case 0x3610402Bu: goto L_3610402B;
  10244       case 0x36104031u: goto L_36104031;
  10245       case 0x36104033u: goto L_36104033;
  10246       case 0x36104036u: goto L_36104036;
  10247       case 0x36104039u: goto L_36104039;
  10248       case 0x3610403Cu: goto L_3610403C;
  10249       case 0x3610403Fu: goto L_3610403F;
  10250       case 0x36104042u: goto L_36104042;
  10251       case 0x36104044u: goto L_36104044;
  10252       case 0x36104046u: goto L_36104046;
  10253       case 0x36104049u: goto L_36104049;
  10254       case 0x3610404Bu: goto L_3610404B;
  10255       case 0x3610404Du: goto L_3610404D;
  10256       case 0x36104050u: goto L_36104050;
  10257       case 0x36104051u: goto L_36104051;
  10258       case 0x36104052u: goto L_36104052;
  10259       case 0x36104055u: goto L_36104055;
  10260       case 0x36104056u: goto L_36104056;
  10261       case 0x3610405Du: goto L_3610405D;
  10262       case 0x3610405Fu: goto L_3610405F;
  10263       case 0x36104060u: goto L_36104060;
  10264       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  10265     }
  10266     RECOMP_REGS_OUT();
  10267 }
  10268 
  10269 void sub_36103F7B(void) {
  10270     int _fpu_cmp = 0;
  10271     uint32_t _cf = 0;
  10272     int _df = 1;
  10273     uint32_t _flag_k = FK_NONE;
  10274     uint32_t _flag_a = 0, _flag_b = 0;
  10275     uint32_t _itail_tgt = 0;
  10276     RECOMP_REGS_LOCALS
  10277     RECOMP_ENTER(0x36103F7Bu);
  10278 
  10279     goto L_36103F7B;
  10280 L_36103DF5:
  10281     eax = MEM32(edi + 0x40); /* 0x36103DF5: mov eax, dword ptr [edi + 0x40] */
  10282 L_36103DF8:
  10283     /* cmp eax, 3 */ /* 0x36103DF8: cmp eax, 3 */
  10284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  10285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10286     _flag_k = FK_CMP;
  10287 L_36103DFB:
  10288     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36103FB1; /* 0x36103DFB: ja 0x36103fb1 */
  10289 L_36103E01:
  10290     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36104064)); goto _ljump; }
  10291 L_36103E08:
  10292     eax = MEM32(ebp + (-0x14)); /* 0x36103E08: mov eax, dword ptr [ebp - 0x14] */
  10293 L_36103E0B:
  10294     /* test eax, eax */ /* 0x36103E0B: test eax, eax */
  10295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10296     _cf = 0;
  10297     _flag_k = FK_TEST;
  10298 L_36103E0D:
  10299     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FC0; /* 0x36103E0D: je 0x36103fc0 */
  10300 L_36103E13:
  10301     ecx = MEM32(esi + 0x20); /* 0x36103E13: mov ecx, dword ptr [esi + 0x20] */
  10302 L_36103E16:
  10303     edx = ebp + (-0x28); /* 0x36103E16: lea edx, [ebp - 0x28] */
  10304 L_36103E19:
  10305     PUSH32(esp, edx); /* 0x36103E19: push edx */
  10306 L_36103E1A:
  10307     RECOMP_ICALL(0x36133FC0u); /* 0x36103E1A: call 0x36133fc0 */ /* not lifted */
  10308     RECOMP_FLAGS_IN();
  10309 L_36103E1F:
  10310     edx = MEM32(eax); /* 0x36103E1F: mov edx, dword ptr [eax] */
  10311 L_36103E21:
  10312     ecx = MEM32(ebp + (-0x10)); /* 0x36103E21: mov ecx, dword ptr [ebp - 0x10] */
  10313 L_36103E24:
  10314     MEM32(ecx) = edx; /* 0x36103E24: mov dword ptr [ecx], edx */
  10315 L_36103E26:
  10316     edx = MEM32(eax + 0x4); /* 0x36103E26: mov edx, dword ptr [eax + 4] */
  10317 L_36103E29:
  10318     MEM32(ecx + 0x4) = edx; /* 0x36103E29: mov dword ptr [ecx + 4], edx */
  10319 L_36103E2C:
  10320     eax = MEM32(eax + 0x8); /* 0x36103E2C: mov eax, dword ptr [eax + 8] */
  10321 L_36103E2F:
  10322     MEM32(ecx + 0x8) = eax; /* 0x36103E2F: mov dword ptr [ecx + 8], eax */
  10323 L_36103E32:
  10324     ecx = MEM32(esi + 0xC); /* 0x36103E32: mov ecx, dword ptr [esi + 0xc] */
  10325 L_36103E35:
  10326     MEM32(edi + 0x20) = ecx; /* 0x36103E35: mov dword ptr [edi + 0x20], ecx */
  10327 L_36103E38:
  10328     ecx = MEM32(ebp + (-0x10)); /* 0x36103E38: mov ecx, dword ptr [ebp - 0x10] */
  10329 L_36103E3B:
  10330     MEM32(edi + 0x40) = 1; /* 0x36103E3B: mov dword ptr [edi + 0x40], 1 */
  10331 L_36103E42:
  10332     edx = MEM32(esi + 0xC); /* 0x36103E42: mov edx, dword ptr [esi + 0xc] */
  10333 L_36103E45:
  10334     eax = MEM32(esi + 0x2C); /* 0x36103E45: mov eax, dword ptr [esi + 0x2c] */
  10335 L_36103E48:
  10336     MEM32(esi + 0x110) = edx; /* 0x36103E48: mov dword ptr [esi + 0x110], edx */
  10337 L_36103E4E:
  10338     edx = MEM32(ecx); /* 0x36103E4E: mov edx, dword ptr [ecx] */
  10339 L_36103E50:
  10340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  10341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10342     eax = eax + ebx; /* 0x36103E50: add eax, ebx */
  10343     _flag_k = FK_ADD;
  10344 L_36103E52:
  10345     MEM32(eax) = edx; /* 0x36103E52: mov dword ptr [eax], edx */
  10346 L_36103E54:
  10347     edx = MEM32(ecx + 0x4); /* 0x36103E54: mov edx, dword ptr [ecx + 4] */
  10348 L_36103E57:
  10349     MEM32(eax + 0x4) = edx; /* 0x36103E57: mov dword ptr [eax + 4], edx */
  10350 L_36103E5A:
  10351     ecx = MEM32(ecx + 0x8); /* 0x36103E5A: mov ecx, dword ptr [ecx + 8] */
  10352 L_36103E5D:
  10353     MEM32(eax + 0x8) = ecx; /* 0x36103E5D: mov dword ptr [eax + 8], ecx */
  10354 L_36103E60:
  10355     edx = MEM32(esi + 0x2C); /* 0x36103E60: mov edx, dword ptr [esi + 0x2c] */
  10356 L_36103E63:
  10357     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10358     ecx = 0; /* 0x36103E63: xor ecx, ecx */
  10359     _cf = 0;
  10360     _flag_k = FK_TEST;
  10361 L_36103E65:
  10362     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103E65: mov dword ptr [edx + ebx + 0x18], ecx */
  10363 L_36103E69:
  10364     eax = MEM32(esi + 0x2C); /* 0x36103E69: mov eax, dword ptr [esi + 0x2c] */
  10365 L_36103E6C:
  10366     MEM8(eax + ebx + 0x1C) = (uint8_t)(1); /* 0x36103E6C: mov byte ptr [eax + ebx + 0x1c], 1 */
  10367 L_36103E71:
  10368     MEM32(ebp + (-0x14)) = ecx; /* 0x36103E71: mov dword ptr [ebp - 0x14], ecx */
  10369 L_36103E74:
  10370     goto L_36103E78; /* 0x36103E74: jmp 0x36103e78 */
  10371 L_36103E76:
  10372     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10373     ecx = 0; /* 0x36103E76: xor ecx, ecx */
  10374     _cf = 0;
  10375     _flag_k = FK_TEST;
  10376 L_36103E78:
  10377     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103E78: fld dword ptr [esi + 0xc] */
  10378 L_36103E7B:
  10379     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103E7B: fsub dword ptr [edi + 0x20] */
  10380 L_36103E7E:
  10381     _st[0] /= (double)*(float*)ADDR(esi + 0x168); /* 0x36103E7E: fdiv dword ptr [esi + 0x168] */
  10382 L_36103E84:
  10383     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36103E84: fst dword ptr [ebp - 0x1c] */
  10384 L_36103E87:
  10385     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103E87: fcomp dword ptr [0x36170380] */
  10386     fp_pop();
  10387 L_36103E8D:
  10388     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103E8D: fnstsw ax */
  10389 L_36103E8F:
  10390     /* test HI8(eax), 1 */ /* 0x36103E8F: test ah, 1 */
  10391     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10392     _cf = 0;
  10393     _flag_k = FK_NARROW(FK_TEST, 24);
  10394 L_36103E92:
  10395     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103EE8; /* 0x36103E92: je 0x36103ee8 */
  10396 L_36103E94:
  10397     ecx = ebp + (-0x34); /* 0x36103E94: lea ecx, [ebp - 0x34] */
  10398 L_36103E97:
  10399     PUSH32(esp, ecx); /* 0x36103E97: push ecx */
  10400 L_36103E98:
  10401     ecx = MEM32(esi + 0x20); /* 0x36103E98: mov ecx, dword ptr [esi + 0x20] */
  10402 L_36103E9B:
  10403     RECOMP_ICALL(0x36133FC0u); /* 0x36103E9B: call 0x36133fc0 */ /* not lifted */
  10404     RECOMP_FLAGS_IN();
  10405 L_36103EA0:
  10406     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36103EA0: fld dword ptr [ebp - 0x1c] */
  10407 L_36103EA3:
  10408     edx = MEM32(ebp + (-0x10)); /* 0x36103EA3: mov edx, dword ptr [ebp - 0x10] */
  10409 L_36103EA6:
  10410     _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36103EA6: fmul dword ptr [0x36170eb8] */
  10411 L_36103EAC:
  10412     MEM32(ebp + (-0x18)) = eax; /* 0x36103EAC: mov dword ptr [ebp - 0x18], eax */
  10413 L_36103EAF:
  10414     ecx = MEM32(eax); /* 0x36103EAF: mov ecx, dword ptr [eax] */
  10415 L_36103EB1:
  10416     MEM32(edx) = ecx; /* 0x36103EB1: mov dword ptr [edx], ecx */
  10417 L_36103EB3:
  10418     ecx = MEM32(eax + 0x4); /* 0x36103EB3: mov ecx, dword ptr [eax + 4] */
  10419 L_36103EB6:
  10420     MEM32(edx + 0x4) = ecx; /* 0x36103EB6: mov dword ptr [edx + 4], ecx */
  10421 L_36103EB9:
  10422     eax = MEM32(eax + 0x8); /* 0x36103EB9: mov eax, dword ptr [eax + 8] */
  10423 L_36103EBC:
  10424     MEM32(edx + 0x8) = eax; /* 0x36103EBC: mov dword ptr [edx + 8], eax */
  10425 L_36103EBF:
  10426     ecx = MEM32(esi + 0x2C); /* 0x36103EBF: mov ecx, dword ptr [esi + 0x2c] */
  10427 L_36103EC2:
  10428     eax = MEM32(ebp + (-0x18)); /* 0x36103EC2: mov eax, dword ptr [ebp - 0x18] */
  10429 L_36103EC5:
  10430     edx = MEM32(eax); /* 0x36103EC5: mov edx, dword ptr [eax] */
  10431 L_36103EC7:
  10432     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  10433     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10434     ecx = ecx + ebx; /* 0x36103EC7: add ecx, ebx */
  10435     _flag_k = FK_ADD;
  10436 L_36103EC9:
  10437     MEM32(ecx) = edx; /* 0x36103EC9: mov dword ptr [ecx], edx */
  10438 L_36103ECB:
  10439     edx = MEM32(eax + 0x4); /* 0x36103ECB: mov edx, dword ptr [eax + 4] */
  10440 L_36103ECE:
  10441     MEM32(ecx + 0x4) = edx; /* 0x36103ECE: mov dword ptr [ecx + 4], edx */
  10442 L_36103ED1:
  10443     eax = MEM32(eax + 0x8); /* 0x36103ED1: mov eax, dword ptr [eax + 8] */
  10444 L_36103ED4:
  10445     MEM32(ecx + 0x8) = eax; /* 0x36103ED4: mov dword ptr [ecx + 8], eax */
  10446 L_36103ED7:
  10447     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103ED7: call 0x3615fd8c */ /* not lifted */
  10448     RECOMP_FLAGS_IN();
  10449 L_36103EDC:
  10450     ecx = MEM32(esi + 0x2C); /* 0x36103EDC: mov ecx, dword ptr [esi + 0x2c] */
  10451 L_36103EDF:
  10452     MEM32(ecx + ebx + 0x18) = eax; /* 0x36103EDF: mov dword ptr [ecx + ebx + 0x18], eax */
  10453 L_36103EE3:
  10454     goto L_36103FC0; /* 0x36103EE3: jmp 0x36103fc0 */
  10455 L_36103EE8:
  10456     edx = MEM32(esi + 0x2C); /* 0x36103EE8: mov edx, dword ptr [esi + 0x2c] */
  10457 L_36103EEB:
  10458     eax = MEM32(ebp + (-0x10)); /* 0x36103EEB: mov eax, dword ptr [ebp - 0x10] */
  10459 L_36103EEE:
  10460     MEM32(edx + ebx + 0x18) = 5; /* 0x36103EEE: mov dword ptr [edx + ebx + 0x18], 5 */
  10461 L_36103EF6:
  10462     PUSH32(esp, eax); /* 0x36103EF6: push eax */
  10463 L_36103EF7:
  10464     MEM32(edi + (-0x20)) = ecx; /* 0x36103EF7: mov dword ptr [edi - 0x20], ecx */
  10465 L_36103EFA:
  10466     RECOMP_ICALL(0x360FC710u); /* 0x36103EFA: call 0x360fc710 */ /* not lifted */
  10467     RECOMP_FLAGS_IN();
  10468 L_36103EFF:
  10469     fp_push(*(float*)&MEM32(esi + 0x128)); /* 0x36103EFF: fld dword ptr [esi + 0x128] */
  10470 L_36103F05:
  10471     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36103F05: fmul dword ptr [0x36170464] */
  10472 L_36103F0B:
  10473     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10474     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10475     esp = esp + 4; /* 0x36103F0B: add esp, 4 */
  10476     _flag_k = FK_ADD;
  10477 L_36103F0E:
  10478     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103F0E: faddp st(1) */
  10479 L_36103F10:
  10480     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103F10: fstp dword ptr [edi] */
  10481 L_36103F12:
  10482     MEM32(edi + 0x40) = 2; /* 0x36103F12: mov dword ptr [edi + 0x40], 2 */
  10483 L_36103F19:
  10484     ecx = MEM32(ebp + (-0x10)); /* 0x36103F19: mov ecx, dword ptr [ebp - 0x10] */
  10485 L_36103F1C:
  10486     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36103F1C: fld dword ptr [ecx + 4] */
  10487 L_36103F1F:
  10488     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x36103F1F: fcomp dword ptr [edi] */
  10489     fp_pop();
  10490 L_36103F21:
  10491     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F21: fnstsw ax */
  10492 L_36103F23:
  10493     /* test HI8(eax), 0x41u */ /* 0x36103F23: test ah, 0x41 */
  10494     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  10495     _cf = 0;
  10496     _flag_k = FK_NARROW(FK_TEST, 24);
  10497 L_36103F26:
  10498     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103F54; /* 0x36103F26: jne 0x36103f54 */
  10499 L_36103F28:
  10500     edx = MEM32(esi + 0x2C); /* 0x36103F28: mov edx, dword ptr [esi + 0x2c] */
  10501 L_36103F2B:
  10502     eax = MEM32(ecx); /* 0x36103F2B: mov eax, dword ptr [ecx] */
  10503 L_36103F2D:
  10504     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10505     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10506     edx = edx + ebx; /* 0x36103F2D: add edx, ebx */
  10507     _flag_k = FK_ADD;
  10508 L_36103F2F:
  10509     MEM32(edx) = eax; /* 0x36103F2F: mov dword ptr [edx], eax */
  10510 L_36103F31:
  10511     eax = MEM32(ecx + 0x4); /* 0x36103F31: mov eax, dword ptr [ecx + 4] */
  10512 L_36103F34:
  10513     MEM32(edx + 0x4) = eax; /* 0x36103F34: mov dword ptr [edx + 4], eax */
  10514 L_36103F37:
  10515     ecx = MEM32(ecx + 0x8); /* 0x36103F37: mov ecx, dword ptr [ecx + 8] */
  10516 L_36103F3A:
  10517     eax = MEM32(ebp + (-0x10)); /* 0x36103F3A: mov eax, dword ptr [ebp - 0x10] */
  10518 L_36103F3D:
  10519     MEM32(edx + 0x8) = ecx; /* 0x36103F3D: mov dword ptr [edx + 8], ecx */
  10520 L_36103F40:
  10521     fp_push(*(float*)&MEM32(edi + (-0x20))); /* 0x36103F40: fld dword ptr [edi - 0x20] */
  10522 L_36103F43:
  10523     _st[0] -= (double)*(float*)ADDR(0x36170850); /* 0x36103F43: fsub dword ptr [0x36170850] */
  10524 L_36103F49:
  10525     { float _v = (float)_st[0]; *(float*)ADDR(edi + (-0x20)) = _v; } /* 0x36103F49: fst dword ptr [edi - 0x20] */
  10526 L_36103F4C:
  10527     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x36103F4C: fadd dword ptr [eax + 4] */
  10528 L_36103F4F:
  10529     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36103F4F: fstp dword ptr [eax + 4] */
  10530 L_36103F52:
  10531     goto L_36103FC0; /* 0x36103F52: jmp 0x36103fc0 */
  10532 L_36103F54:
  10533     edx = MEM32(edi); /* 0x36103F54: mov edx, dword ptr [edi] */
  10534 L_36103F56:
  10535     MEM32(ecx + 0x4) = edx; /* 0x36103F56: mov dword ptr [ecx + 4], edx */
  10536 L_36103F59:
  10537     eax = MEM32(esi + 0x2C); /* 0x36103F59: mov eax, dword ptr [esi + 0x2c] */
  10538 L_36103F5C:
  10539     edx = MEM32(ecx); /* 0x36103F5C: mov edx, dword ptr [ecx] */
  10540 L_36103F5E:
  10541     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  10542     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10543     eax = eax + ebx; /* 0x36103F5E: add eax, ebx */
  10544     _flag_k = FK_ADD;
  10545 L_36103F60:
  10546     MEM32(eax) = edx; /* 0x36103F60: mov dword ptr [eax], edx */
  10547 L_36103F62:
  10548     edx = MEM32(ecx + 0x4); /* 0x36103F62: mov edx, dword ptr [ecx + 4] */
  10549 L_36103F65:
  10550     MEM32(eax + 0x4) = edx; /* 0x36103F65: mov dword ptr [eax + 4], edx */
  10551 L_36103F68:
  10552     ecx = MEM32(ecx + 0x8); /* 0x36103F68: mov ecx, dword ptr [ecx + 8] */
  10553 L_36103F6B:
  10554     MEM32(eax + 0x8) = ecx; /* 0x36103F6B: mov dword ptr [eax + 8], ecx */
  10555 L_36103F6E:
  10556     edx = MEM32(esi + 0xC); /* 0x36103F6E: mov edx, dword ptr [esi + 0xc] */
  10557 L_36103F71:
  10558     MEM32(edi + 0x20) = edx; /* 0x36103F71: mov dword ptr [edi + 0x20], edx */
  10559 L_36103F74:
  10560     MEM32(edi + 0x40) = 3; /* 0x36103F74: mov dword ptr [edi + 0x40], 3 */
  10561 L_36103F7B:
  10562     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103F7B: fld dword ptr [esi + 0xc] */
  10563 L_36103F7E:
  10564     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103F7E: fsub dword ptr [edi + 0x20] */
  10565 L_36103F81:
  10566     _st[0] /= (double)*(float*)ADDR(esi + 0x16C); /* 0x36103F81: fdiv dword ptr [esi + 0x16c] */
  10567 L_36103F87:
  10568     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103F87: fcom dword ptr [0x36170380] */
  10569 L_36103F8D:
  10570     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F8D: fnstsw ax */
  10571 L_36103F8F:
  10572     /* test HI8(eax), 1 */ /* 0x36103F8F: test ah, 1 */
  10573     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10574     _cf = 0;
  10575     _flag_k = FK_NARROW(FK_TEST, 24);
  10576 L_36103F92:
  10577     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FAF; /* 0x36103F92: je 0x36103faf */
  10578 L_36103F94:
  10579     _st[0] *= (double)*(float*)ADDR(0x36175A38); /* 0x36103F94: fmul dword ptr [0x36175a38] */
  10580 L_36103F9A:
  10581     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103F9A: call 0x3615fd8c */ /* not lifted */
  10582     RECOMP_FLAGS_IN();
  10583 L_36103F9F:
  10584     edx = MEM32(esi + 0x2C); /* 0x36103F9F: mov edx, dword ptr [esi + 0x2c] */
  10585 L_36103FA2:
  10586     ecx = 5; /* 0x36103FA2: mov ecx, 5 */
  10587 L_36103FA7:
  10588     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  10589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10590     ecx = ecx - eax; /* 0x36103FA7: sub ecx, eax */
  10591     _flag_k = FK_CMP;
  10592 L_36103FA9:
  10593     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103FA9: mov dword ptr [edx + ebx + 0x18], ecx */
  10594 L_36103FAD:
  10595     goto L_36103FC0; /* 0x36103FAD: jmp 0x36103fc0 */
  10596 L_36103FAF:
  10597     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103FAF: fstp st(0) */
  10598 L_36103FB1:
  10599     eax = MEM32(esi + 0x2C); /* 0x36103FB1: mov eax, dword ptr [esi + 0x2c] */
  10600 L_36103FB4:
  10601     MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36103FB4: mov byte ptr [eax + ebx + 0x1c], 0 */
  10602 L_36103FB9:
  10603     MEM32(edi + 0x40) = 0; /* 0x36103FB9: mov dword ptr [edi + 0x40], 0 */
  10604 L_36103FC0:
  10605     edx = MEM32(ebp + (-0x10)); /* 0x36103FC0: mov edx, dword ptr [ebp - 0x10] */
  10606 L_36103FC3:
  10607     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  10608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10609     edx = edx + 0xCu; /* 0x36103FC3: add edx, 0xc */
  10610     _flag_k = FK_ADD;
  10611 L_36103FC6:
  10612     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u);
  10613     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10614     ebx = ebx + 0x20u; /* 0x36103FC6: add ebx, 0x20 */
  10615     _flag_k = FK_ADD;
  10616 L_36103FC9:
  10617     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  10618     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10619     edi = edi + 4; /* 0x36103FC9: add edi, 4 */
  10620     _flag_k = FK_ADD;
  10621 L_36103FCC:
  10622     /* cmp ebx, 0x100u */ /* 0x36103FCC: cmp ebx, 0x100 */
  10623     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x100u);
  10624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10625     _flag_k = FK_CMP;
  10626 L_36103FD2:
  10627     MEM32(ebp + (-0x10)) = edx; /* 0x36103FD2: mov dword ptr [ebp - 0x10], edx */
  10628 L_36103FD5:
  10629     RECOMP_BACKEDGE();
  10630     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36103DF5; /* 0x36103FD5: jl 0x36103df5 */
  10631 L_36103FDB:
  10632     ecx = ebp + (-0x34); /* 0x36103FDB: lea ecx, [ebp - 0x34] */
  10633 L_36103FDE:
  10634     PUSH32(esp, ecx); /* 0x36103FDE: push ecx */
  10635 L_36103FDF:
  10636     ecx = MEM32(esi + 0x20); /* 0x36103FDF: mov ecx, dword ptr [esi + 0x20] */
  10637 L_36103FE2:
  10638     RECOMP_ICALL(0x36133E80u); /* 0x36103FE2: call 0x36133e80 */ /* not lifted */
  10639     RECOMP_FLAGS_IN();
  10640 L_36103FE7:
  10641     ecx = MEM32(esi + 0x28); /* 0x36103FE7: mov ecx, dword ptr [esi + 0x28] */
  10642 L_36103FEA:
  10643     edi = MEM32(eax); /* 0x36103FEA: mov edi, dword ptr [eax] */
  10644 L_36103FEC:
  10645     edx = ecx + 0x78; /* 0x36103FEC: lea edx, [ecx + 0x78] */
  10646 L_36103FEF:
  10647     MEM32(edx) = edi; /* 0x36103FEF: mov dword ptr [edx], edi */
  10648 L_36103FF1:
  10649     edi = MEM32(eax + 0x4); /* 0x36103FF1: mov edi, dword ptr [eax + 4] */
  10650 L_36103FF4:
  10651     MEM32(edx + 0x4) = edi; /* 0x36103FF4: mov dword ptr [edx + 4], edi */
  10652 L_36103FF7:
  10653     eax = MEM32(eax + 0x8); /* 0x36103FF7: mov eax, dword ptr [eax + 8] */
  10654 L_36103FFA:
  10655     PUSH32(esp, 1); /* 0x36103FFA: push 1 */
  10656 L_36103FFC:
  10657     MEM32(edx + 0x8) = eax; /* 0x36103FFC: mov dword ptr [edx + 8], eax */
  10658 L_36103FFF:
  10659     edx = MEM32(ecx); /* 0x36103FFF: mov edx, dword ptr [ecx] */
  10660 L_36104001:
  10661     PUSH32(esp, 1); /* 0x36104001: push 1 */
  10662 L_36104003:
  10663     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36104003: call dword ptr [edx + 0x2c] */
  10664     RECOMP_FLAGS_IN();
  10665 L_36104006:
  10666     ecx = MEM32(esi + 0x20); /* 0x36104006: mov ecx, dword ptr [esi + 0x20] */
  10667 L_36104009:
  10668     eax = ebp + (-0x84); /* 0x36104009: lea eax, [ebp - 0x84] */
  10669 L_3610400F:
  10670     PUSH32(esp, eax); /* 0x3610400F: push eax */
  10671 L_36104010:
  10672     RECOMP_ICALL(0x36133DC0u); /* 0x36104010: call 0x36133dc0 */ /* not lifted */
  10673     RECOMP_FLAGS_IN();
  10674 L_36104015:
  10675     PUSH32(esp, eax); /* 0x36104015: push eax */
  10676 L_36104016:
  10677     ecx = ebp + (-0x44); /* 0x36104016: lea ecx, [ebp - 0x44] */
  10678 L_36104019:
  10679     MEM32(ebp + (-0x4)) = 0; /* 0x36104019: mov dword ptr [ebp - 4], 0 */
  10680 L_36104020:
  10681     RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36104020: call dword ptr [0x361701a4] */
  10682     RECOMP_FLAGS_IN();
  10683 L_36104026:
  10684     esi = MEM32(esi + 0x28); /* 0x36104026: mov esi, dword ptr [esi + 0x28] */
  10685 L_36104029:
  10686     edx = MEM32(eax); /* 0x36104029: mov edx, dword ptr [eax] */
  10687 L_3610402B:
  10688     ecx = esi + 0x84; /* 0x3610402B: lea ecx, [esi + 0x84] */
  10689 L_36104031:
  10690     MEM32(ecx) = edx; /* 0x36104031: mov dword ptr [ecx], edx */
  10691 L_36104033:
  10692     edx = MEM32(eax + 0x4); /* 0x36104033: mov edx, dword ptr [eax + 4] */
  10693 L_36104036:
  10694     MEM32(ecx + 0x4) = edx; /* 0x36104036: mov dword ptr [ecx + 4], edx */
  10695 L_36104039:
  10696     edx = MEM32(eax + 0x8); /* 0x36104039: mov edx, dword ptr [eax + 8] */
  10697 L_3610403C:
  10698     MEM32(ecx + 0x8) = edx; /* 0x3610403C: mov dword ptr [ecx + 8], edx */
  10699 L_3610403F:
  10700     eax = MEM32(eax + 0xC); /* 0x3610403F: mov eax, dword ptr [eax + 0xc] */
  10701 L_36104042:
  10702     edx = MEM32(esi); /* 0x36104042: mov edx, dword ptr [esi] */
  10703 L_36104044:
  10704     PUSH32(esp, 1); /* 0x36104044: push 1 */
  10705 L_36104046:
  10706     MEM32(ecx + 0xC) = eax; /* 0x36104046: mov dword ptr [ecx + 0xc], eax */
  10707 L_36104049:
  10708     PUSH32(esp, 2); /* 0x36104049: push 2 */
  10709 L_3610404B:
  10710     ecx = esi; /* 0x3610404B: mov ecx, esi */
  10711 L_3610404D:
  10712     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610404D: call dword ptr [edx + 0x2c] */
  10713     RECOMP_FLAGS_IN();
  10714 L_36104050:
  10715     edi = POP32_VAL(esp); /* 0x36104050: pop edi */
  10716 L_36104051:
  10717     ebx = POP32_VAL(esp); /* 0x36104051: pop ebx */
  10718 L_36104052:
  10719     ecx = MEM32(ebp + (-0xC)); /* 0x36104052: mov ecx, dword ptr [ebp - 0xc] */
  10720 L_36104055:
  10721     esi = POP32_VAL(esp); /* 0x36104055: pop esi */
  10722 L_36104056:
  10723     MEM32(FS_BASE + (0)) = ecx; /* 0x36104056: mov dword ptr fs:[0], ecx */
  10724 L_3610405D:
  10725     esp = ebp; /* 0x3610405D: mov esp, ebp */
  10726 L_3610405F:
  10727     ebp = POP32_VAL(esp); /* 0x3610405F: pop ebp */
  10728 L_36104060:
  10729     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104060: ret  */
  10730   _ljump:
  10731     switch (_itail_tgt) {
  10732       case 0x36103DF5u: goto L_36103DF5;
  10733       case 0x36103DF8u: goto L_36103DF8;
  10734       case 0x36103DFBu: goto L_36103DFB;
  10735       case 0x36103E01u: goto L_36103E01;
  10736       case 0x36103E08u: goto L_36103E08;
  10737       case 0x36103E0Bu: goto L_36103E0B;
  10738       case 0x36103E0Du: goto L_36103E0D;
  10739       case 0x36103E13u: goto L_36103E13;
  10740       case 0x36103E16u: goto L_36103E16;
  10741       case 0x36103E19u: goto L_36103E19;
  10742       case 0x36103E1Au: goto L_36103E1A;
  10743       case 0x36103E1Fu: goto L_36103E1F;
  10744       case 0x36103E21u: goto L_36103E21;
  10745       case 0x36103E24u: goto L_36103E24;
  10746       case 0x36103E26u: goto L_36103E26;
  10747       case 0x36103E29u: goto L_36103E29;
  10748       case 0x36103E2Cu: goto L_36103E2C;
  10749       case 0x36103E2Fu: goto L_36103E2F;
  10750       case 0x36103E32u: goto L_36103E32;
  10751       case 0x36103E35u: goto L_36103E35;
  10752       case 0x36103E38u: goto L_36103E38;
  10753       case 0x36103E3Bu: goto L_36103E3B;
  10754       case 0x36103E42u: goto L_36103E42;
  10755       case 0x36103E45u: goto L_36103E45;
  10756       case 0x36103E48u: goto L_36103E48;
  10757       case 0x36103E4Eu: goto L_36103E4E;
  10758       case 0x36103E50u: goto L_36103E50;
  10759       case 0x36103E52u: goto L_36103E52;
  10760       case 0x36103E54u: goto L_36103E54;
  10761       case 0x36103E57u: goto L_36103E57;
  10762       case 0x36103E5Au: goto L_36103E5A;
  10763       case 0x36103E5Du: goto L_36103E5D;
  10764       case 0x36103E60u: goto L_36103E60;
  10765       case 0x36103E63u: goto L_36103E63;
  10766       case 0x36103E65u: goto L_36103E65;
  10767       case 0x36103E69u: goto L_36103E69;
  10768       case 0x36103E6Cu: goto L_36103E6C;
  10769       case 0x36103E71u: goto L_36103E71;
  10770       case 0x36103E74u: goto L_36103E74;
  10771       case 0x36103E76u: goto L_36103E76;
  10772       case 0x36103E78u: goto L_36103E78;
  10773       case 0x36103E7Bu: goto L_36103E7B;
  10774       case 0x36103E7Eu: goto L_36103E7E;
  10775       case 0x36103E84u: goto L_36103E84;
  10776       case 0x36103E87u: goto L_36103E87;
  10777       case 0x36103E8Du: goto L_36103E8D;
  10778       case 0x36103E8Fu: goto L_36103E8F;
  10779       case 0x36103E92u: goto L_36103E92;
  10780       case 0x36103E94u: goto L_36103E94;
  10781       case 0x36103E97u: goto L_36103E97;
  10782       case 0x36103E98u: goto L_36103E98;
  10783       case 0x36103E9Bu: goto L_36103E9B;
  10784       case 0x36103EA0u: goto L_36103EA0;
  10785       case 0x36103EA3u: goto L_36103EA3;
  10786       case 0x36103EA6u: goto L_36103EA6;
  10787       case 0x36103EACu: goto L_36103EAC;
  10788       case 0x36103EAFu: goto L_36103EAF;
  10789       case 0x36103EB1u: goto L_36103EB1;
  10790       case 0x36103EB3u: goto L_36103EB3;
  10791       case 0x36103EB6u: goto L_36103EB6;
  10792       case 0x36103EB9u: goto L_36103EB9;
  10793       case 0x36103EBCu: goto L_36103EBC;
  10794       case 0x36103EBFu: goto L_36103EBF;
  10795       case 0x36103EC2u: goto L_36103EC2;
  10796       case 0x36103EC5u: goto L_36103EC5;
  10797       case 0x36103EC7u: goto L_36103EC7;
  10798       case 0x36103EC9u: goto L_36103EC9;
  10799       case 0x36103ECBu: goto L_36103ECB;
  10800       case 0x36103ECEu: goto L_36103ECE;
  10801       case 0x36103ED1u: goto L_36103ED1;
  10802       case 0x36103ED4u: goto L_36103ED4;
  10803       case 0x36103ED7u: goto L_36103ED7;
  10804       case 0x36103EDCu: goto L_36103EDC;
  10805       case 0x36103EDFu: goto L_36103EDF;
  10806       case 0x36103EE3u: goto L_36103EE3;
  10807       case 0x36103EE8u: goto L_36103EE8;
  10808       case 0x36103EEBu: goto L_36103EEB;
  10809       case 0x36103EEEu: goto L_36103EEE;
  10810       case 0x36103EF6u: goto L_36103EF6;
  10811       case 0x36103EF7u: goto L_36103EF7;
  10812       case 0x36103EFAu: goto L_36103EFA;
  10813       case 0x36103EFFu: goto L_36103EFF;
  10814       case 0x36103F05u: goto L_36103F05;
  10815       case 0x36103F0Bu: goto L_36103F0B;
  10816       case 0x36103F0Eu: goto L_36103F0E;
  10817       case 0x36103F10u: goto L_36103F10;
  10818       case 0x36103F12u: goto L_36103F12;
  10819       case 0x36103F19u: goto L_36103F19;
  10820       case 0x36103F1Cu: goto L_36103F1C;
  10821       case 0x36103F1Fu: goto L_36103F1F;
  10822       case 0x36103F21u: goto L_36103F21;
  10823       case 0x36103F23u: goto L_36103F23;
  10824       case 0x36103F26u: goto L_36103F26;
  10825       case 0x36103F28u: goto L_36103F28;
  10826       case 0x36103F2Bu: goto L_36103F2B;
  10827       case 0x36103F2Du: goto L_36103F2D;
  10828       case 0x36103F2Fu: goto L_36103F2F;
  10829       case 0x36103F31u: goto L_36103F31;
  10830       case 0x36103F34u: goto L_36103F34;
  10831       case 0x36103F37u: goto L_36103F37;
  10832       case 0x36103F3Au: goto L_36103F3A;
  10833       case 0x36103F3Du: goto L_36103F3D;
  10834       case 0x36103F40u: goto L_36103F40;
  10835       case 0x36103F43u: goto L_36103F43;
  10836       case 0x36103F49u: goto L_36103F49;
  10837       case 0x36103F4Cu: goto L_36103F4C;
  10838       case 0x36103F4Fu: goto L_36103F4F;
  10839       case 0x36103F52u: goto L_36103F52;
  10840       case 0x36103F54u: goto L_36103F54;
  10841       case 0x36103F56u: goto L_36103F56;
  10842       case 0x36103F59u: goto L_36103F59;
  10843       case 0x36103F5Cu: goto L_36103F5C;
  10844       case 0x36103F5Eu: goto L_36103F5E;
  10845       case 0x36103F60u: goto L_36103F60;
  10846       case 0x36103F62u: goto L_36103F62;
  10847       case 0x36103F65u: goto L_36103F65;
  10848       case 0x36103F68u: goto L_36103F68;
  10849       case 0x36103F6Bu: goto L_36103F6B;
  10850       case 0x36103F6Eu: goto L_36103F6E;
  10851       case 0x36103F71u: goto L_36103F71;
  10852       case 0x36103F74u: goto L_36103F74;
  10853       case 0x36103F7Bu: goto L_36103F7B;
  10854       case 0x36103F7Eu: goto L_36103F7E;
  10855       case 0x36103F81u: goto L_36103F81;
  10856       case 0x36103F87u: goto L_36103F87;
  10857       case 0x36103F8Du: goto L_36103F8D;
  10858       case 0x36103F8Fu: goto L_36103F8F;
  10859       case 0x36103F92u: goto L_36103F92;
  10860       case 0x36103F94u: goto L_36103F94;
  10861       case 0x36103F9Au: goto L_36103F9A;
  10862       case 0x36103F9Fu: goto L_36103F9F;
  10863       case 0x36103FA2u: goto L_36103FA2;
  10864       case 0x36103FA7u: goto L_36103FA7;
  10865       case 0x36103FA9u: goto L_36103FA9;
  10866       case 0x36103FADu: goto L_36103FAD;
  10867       case 0x36103FAFu: goto L_36103FAF;
  10868       case 0x36103FB1u: goto L_36103FB1;
  10869       case 0x36103FB4u: goto L_36103FB4;
  10870       case 0x36103FB9u: goto L_36103FB9;
  10871       case 0x36103FC0u: goto L_36103FC0;
  10872       case 0x36103FC3u: goto L_36103FC3;
  10873       case 0x36103FC6u: goto L_36103FC6;
  10874       case 0x36103FC9u: goto L_36103FC9;
  10875       case 0x36103FCCu: goto L_36103FCC;
  10876       case 0x36103FD2u: goto L_36103FD2;
  10877       case 0x36103FD5u: goto L_36103FD5;
  10878       case 0x36103FDBu: goto L_36103FDB;
  10879       case 0x36103FDEu: goto L_36103FDE;
  10880       case 0x36103FDFu: goto L_36103FDF;
  10881       case 0x36103FE2u: goto L_36103FE2;
  10882       case 0x36103FE7u: goto L_36103FE7;
  10883       case 0x36103FEAu: goto L_36103FEA;
  10884       case 0x36103FECu: goto L_36103FEC;
  10885       case 0x36103FEFu: goto L_36103FEF;
  10886       case 0x36103FF1u: goto L_36103FF1;
  10887       case 0x36103FF4u: goto L_36103FF4;
  10888       case 0x36103FF7u: goto L_36103FF7;
  10889       case 0x36103FFAu: goto L_36103FFA;
  10890       case 0x36103FFCu: goto L_36103FFC;
  10891       case 0x36103FFFu: goto L_36103FFF;
  10892       case 0x36104001u: goto L_36104001;
  10893       case 0x36104003u: goto L_36104003;
  10894       case 0x36104006u: goto L_36104006;
  10895       case 0x36104009u: goto L_36104009;
  10896       case 0x3610400Fu: goto L_3610400F;
  10897       case 0x36104010u: goto L_36104010;
  10898       case 0x36104015u: goto L_36104015;
  10899       case 0x36104016u: goto L_36104016;
  10900       case 0x36104019u: goto L_36104019;
  10901       case 0x36104020u: goto L_36104020;
  10902       case 0x36104026u: goto L_36104026;
  10903       case 0x36104029u: goto L_36104029;
  10904       case 0x3610402Bu: goto L_3610402B;
  10905       case 0x36104031u: goto L_36104031;
  10906       case 0x36104033u: goto L_36104033;
  10907       case 0x36104036u: goto L_36104036;
  10908       case 0x36104039u: goto L_36104039;
  10909       case 0x3610403Cu: goto L_3610403C;
  10910       case 0x3610403Fu: goto L_3610403F;
  10911       case 0x36104042u: goto L_36104042;
  10912       case 0x36104044u: goto L_36104044;
  10913       case 0x36104046u: goto L_36104046;
  10914       case 0x36104049u: goto L_36104049;
  10915       case 0x3610404Bu: goto L_3610404B;
  10916       case 0x3610404Du: goto L_3610404D;
  10917       case 0x36104050u: goto L_36104050;
  10918       case 0x36104051u: goto L_36104051;
  10919       case 0x36104052u: goto L_36104052;
  10920       case 0x36104055u: goto L_36104055;
  10921       case 0x36104056u: goto L_36104056;
  10922       case 0x3610405Du: goto L_3610405D;
  10923       case 0x3610405Fu: goto L_3610405F;
  10924       case 0x36104060u: goto L_36104060;
  10925       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  10926     }
  10927     RECOMP_REGS_OUT();
  10928 }
  10929 
  10930 void sub_36103FB1(void) {
  10931     int _fpu_cmp = 0;
  10932     uint32_t _cf = 0;
  10933     int _df = 1;
  10934     uint32_t _flag_k = FK_NONE;
  10935     uint32_t _flag_a = 0, _flag_b = 0;
  10936     uint32_t _itail_tgt = 0;
  10937     RECOMP_REGS_LOCALS
  10938     RECOMP_ENTER(0x36103FB1u);
  10939 
  10940     goto L_36103FB1;
  10941 L_36103DF5:
  10942     eax = MEM32(edi + 0x40); /* 0x36103DF5: mov eax, dword ptr [edi + 0x40] */
  10943 L_36103DF8:
  10944     /* cmp eax, 3 */ /* 0x36103DF8: cmp eax, 3 */
  10945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  10946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10947     _flag_k = FK_CMP;
  10948 L_36103DFB:
  10949     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36103FB1; /* 0x36103DFB: ja 0x36103fb1 */
  10950 L_36103E01:
  10951     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36104064)); goto _ljump; }
  10952 L_36103E08:
  10953     eax = MEM32(ebp + (-0x14)); /* 0x36103E08: mov eax, dword ptr [ebp - 0x14] */
  10954 L_36103E0B:
  10955     /* test eax, eax */ /* 0x36103E0B: test eax, eax */
  10956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10957     _cf = 0;
  10958     _flag_k = FK_TEST;
  10959 L_36103E0D:
  10960     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FC0; /* 0x36103E0D: je 0x36103fc0 */
  10961 L_36103E13:
  10962     ecx = MEM32(esi + 0x20); /* 0x36103E13: mov ecx, dword ptr [esi + 0x20] */
  10963 L_36103E16:
  10964     edx = ebp + (-0x28); /* 0x36103E16: lea edx, [ebp - 0x28] */
  10965 L_36103E19:
  10966     PUSH32(esp, edx); /* 0x36103E19: push edx */
  10967 L_36103E1A:
  10968     RECOMP_ICALL(0x36133FC0u); /* 0x36103E1A: call 0x36133fc0 */ /* not lifted */
  10969     RECOMP_FLAGS_IN();
  10970 L_36103E1F:
  10971     edx = MEM32(eax); /* 0x36103E1F: mov edx, dword ptr [eax] */
  10972 L_36103E21:
  10973     ecx = MEM32(ebp + (-0x10)); /* 0x36103E21: mov ecx, dword ptr [ebp - 0x10] */
  10974 L_36103E24:
  10975     MEM32(ecx) = edx; /* 0x36103E24: mov dword ptr [ecx], edx */
  10976 L_36103E26:
  10977     edx = MEM32(eax + 0x4); /* 0x36103E26: mov edx, dword ptr [eax + 4] */
  10978 L_36103E29:
  10979     MEM32(ecx + 0x4) = edx; /* 0x36103E29: mov dword ptr [ecx + 4], edx */
  10980 L_36103E2C:
  10981     eax = MEM32(eax + 0x8); /* 0x36103E2C: mov eax, dword ptr [eax + 8] */
  10982 L_36103E2F:
  10983     MEM32(ecx + 0x8) = eax; /* 0x36103E2F: mov dword ptr [ecx + 8], eax */
  10984 L_36103E32:
  10985     ecx = MEM32(esi + 0xC); /* 0x36103E32: mov ecx, dword ptr [esi + 0xc] */
  10986 L_36103E35:
  10987     MEM32(edi + 0x20) = ecx; /* 0x36103E35: mov dword ptr [edi + 0x20], ecx */
  10988 L_36103E38:
  10989     ecx = MEM32(ebp + (-0x10)); /* 0x36103E38: mov ecx, dword ptr [ebp - 0x10] */
  10990 L_36103E3B:
  10991     MEM32(edi + 0x40) = 1; /* 0x36103E3B: mov dword ptr [edi + 0x40], 1 */
  10992 L_36103E42:
  10993     edx = MEM32(esi + 0xC); /* 0x36103E42: mov edx, dword ptr [esi + 0xc] */
  10994 L_36103E45:
  10995     eax = MEM32(esi + 0x2C); /* 0x36103E45: mov eax, dword ptr [esi + 0x2c] */
  10996 L_36103E48:
  10997     MEM32(esi + 0x110) = edx; /* 0x36103E48: mov dword ptr [esi + 0x110], edx */
  10998 L_36103E4E:
  10999     edx = MEM32(ecx); /* 0x36103E4E: mov edx, dword ptr [ecx] */
  11000 L_36103E50:
  11001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  11002     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11003     eax = eax + ebx; /* 0x36103E50: add eax, ebx */
  11004     _flag_k = FK_ADD;
  11005 L_36103E52:
  11006     MEM32(eax) = edx; /* 0x36103E52: mov dword ptr [eax], edx */
  11007 L_36103E54:
  11008     edx = MEM32(ecx + 0x4); /* 0x36103E54: mov edx, dword ptr [ecx + 4] */
  11009 L_36103E57:
  11010     MEM32(eax + 0x4) = edx; /* 0x36103E57: mov dword ptr [eax + 4], edx */
  11011 L_36103E5A:
  11012     ecx = MEM32(ecx + 0x8); /* 0x36103E5A: mov ecx, dword ptr [ecx + 8] */
  11013 L_36103E5D:
  11014     MEM32(eax + 0x8) = ecx; /* 0x36103E5D: mov dword ptr [eax + 8], ecx */
  11015 L_36103E60:
  11016     edx = MEM32(esi + 0x2C); /* 0x36103E60: mov edx, dword ptr [esi + 0x2c] */
  11017 L_36103E63:
  11018     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11019     ecx = 0; /* 0x36103E63: xor ecx, ecx */
  11020     _cf = 0;
  11021     _flag_k = FK_TEST;
  11022 L_36103E65:
  11023     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103E65: mov dword ptr [edx + ebx + 0x18], ecx */
  11024 L_36103E69:
  11025     eax = MEM32(esi + 0x2C); /* 0x36103E69: mov eax, dword ptr [esi + 0x2c] */
  11026 L_36103E6C:
  11027     MEM8(eax + ebx + 0x1C) = (uint8_t)(1); /* 0x36103E6C: mov byte ptr [eax + ebx + 0x1c], 1 */
  11028 L_36103E71:
  11029     MEM32(ebp + (-0x14)) = ecx; /* 0x36103E71: mov dword ptr [ebp - 0x14], ecx */
  11030 L_36103E74:
  11031     goto L_36103E78; /* 0x36103E74: jmp 0x36103e78 */
  11032 L_36103E76:
  11033     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11034     ecx = 0; /* 0x36103E76: xor ecx, ecx */
  11035     _cf = 0;
  11036     _flag_k = FK_TEST;
  11037 L_36103E78:
  11038     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103E78: fld dword ptr [esi + 0xc] */
  11039 L_36103E7B:
  11040     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103E7B: fsub dword ptr [edi + 0x20] */
  11041 L_36103E7E:
  11042     _st[0] /= (double)*(float*)ADDR(esi + 0x168); /* 0x36103E7E: fdiv dword ptr [esi + 0x168] */
  11043 L_36103E84:
  11044     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36103E84: fst dword ptr [ebp - 0x1c] */
  11045 L_36103E87:
  11046     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103E87: fcomp dword ptr [0x36170380] */
  11047     fp_pop();
  11048 L_36103E8D:
  11049     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103E8D: fnstsw ax */
  11050 L_36103E8F:
  11051     /* test HI8(eax), 1 */ /* 0x36103E8F: test ah, 1 */
  11052     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11053     _cf = 0;
  11054     _flag_k = FK_NARROW(FK_TEST, 24);
  11055 L_36103E92:
  11056     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103EE8; /* 0x36103E92: je 0x36103ee8 */
  11057 L_36103E94:
  11058     ecx = ebp + (-0x34); /* 0x36103E94: lea ecx, [ebp - 0x34] */
  11059 L_36103E97:
  11060     PUSH32(esp, ecx); /* 0x36103E97: push ecx */
  11061 L_36103E98:
  11062     ecx = MEM32(esi + 0x20); /* 0x36103E98: mov ecx, dword ptr [esi + 0x20] */
  11063 L_36103E9B:
  11064     RECOMP_ICALL(0x36133FC0u); /* 0x36103E9B: call 0x36133fc0 */ /* not lifted */
  11065     RECOMP_FLAGS_IN();
  11066 L_36103EA0:
  11067     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36103EA0: fld dword ptr [ebp - 0x1c] */
  11068 L_36103EA3:
  11069     edx = MEM32(ebp + (-0x10)); /* 0x36103EA3: mov edx, dword ptr [ebp - 0x10] */
  11070 L_36103EA6:
  11071     _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36103EA6: fmul dword ptr [0x36170eb8] */
  11072 L_36103EAC:
  11073     MEM32(ebp + (-0x18)) = eax; /* 0x36103EAC: mov dword ptr [ebp - 0x18], eax */
  11074 L_36103EAF:
  11075     ecx = MEM32(eax); /* 0x36103EAF: mov ecx, dword ptr [eax] */
  11076 L_36103EB1:
  11077     MEM32(edx) = ecx; /* 0x36103EB1: mov dword ptr [edx], ecx */
  11078 L_36103EB3:
  11079     ecx = MEM32(eax + 0x4); /* 0x36103EB3: mov ecx, dword ptr [eax + 4] */
  11080 L_36103EB6:
  11081     MEM32(edx + 0x4) = ecx; /* 0x36103EB6: mov dword ptr [edx + 4], ecx */
  11082 L_36103EB9:
  11083     eax = MEM32(eax + 0x8); /* 0x36103EB9: mov eax, dword ptr [eax + 8] */
  11084 L_36103EBC:
  11085     MEM32(edx + 0x8) = eax; /* 0x36103EBC: mov dword ptr [edx + 8], eax */
  11086 L_36103EBF:
  11087     ecx = MEM32(esi + 0x2C); /* 0x36103EBF: mov ecx, dword ptr [esi + 0x2c] */
  11088 L_36103EC2:
  11089     eax = MEM32(ebp + (-0x18)); /* 0x36103EC2: mov eax, dword ptr [ebp - 0x18] */
  11090 L_36103EC5:
  11091     edx = MEM32(eax); /* 0x36103EC5: mov edx, dword ptr [eax] */
  11092 L_36103EC7:
  11093     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  11094     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11095     ecx = ecx + ebx; /* 0x36103EC7: add ecx, ebx */
  11096     _flag_k = FK_ADD;
  11097 L_36103EC9:
  11098     MEM32(ecx) = edx; /* 0x36103EC9: mov dword ptr [ecx], edx */
  11099 L_36103ECB:
  11100     edx = MEM32(eax + 0x4); /* 0x36103ECB: mov edx, dword ptr [eax + 4] */
  11101 L_36103ECE:
  11102     MEM32(ecx + 0x4) = edx; /* 0x36103ECE: mov dword ptr [ecx + 4], edx */
  11103 L_36103ED1:
  11104     eax = MEM32(eax + 0x8); /* 0x36103ED1: mov eax, dword ptr [eax + 8] */
  11105 L_36103ED4:
  11106     MEM32(ecx + 0x8) = eax; /* 0x36103ED4: mov dword ptr [ecx + 8], eax */
  11107 L_36103ED7:
  11108     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103ED7: call 0x3615fd8c */ /* not lifted */
  11109     RECOMP_FLAGS_IN();
  11110 L_36103EDC:
  11111     ecx = MEM32(esi + 0x2C); /* 0x36103EDC: mov ecx, dword ptr [esi + 0x2c] */
  11112 L_36103EDF:
  11113     MEM32(ecx + ebx + 0x18) = eax; /* 0x36103EDF: mov dword ptr [ecx + ebx + 0x18], eax */
  11114 L_36103EE3:
  11115     goto L_36103FC0; /* 0x36103EE3: jmp 0x36103fc0 */
  11116 L_36103EE8:
  11117     edx = MEM32(esi + 0x2C); /* 0x36103EE8: mov edx, dword ptr [esi + 0x2c] */
  11118 L_36103EEB:
  11119     eax = MEM32(ebp + (-0x10)); /* 0x36103EEB: mov eax, dword ptr [ebp - 0x10] */
  11120 L_36103EEE:
  11121     MEM32(edx + ebx + 0x18) = 5; /* 0x36103EEE: mov dword ptr [edx + ebx + 0x18], 5 */
  11122 L_36103EF6:
  11123     PUSH32(esp, eax); /* 0x36103EF6: push eax */
  11124 L_36103EF7:
  11125     MEM32(edi + (-0x20)) = ecx; /* 0x36103EF7: mov dword ptr [edi - 0x20], ecx */
  11126 L_36103EFA:
  11127     RECOMP_ICALL(0x360FC710u); /* 0x36103EFA: call 0x360fc710 */ /* not lifted */
  11128     RECOMP_FLAGS_IN();
  11129 L_36103EFF:
  11130     fp_push(*(float*)&MEM32(esi + 0x128)); /* 0x36103EFF: fld dword ptr [esi + 0x128] */
  11131 L_36103F05:
  11132     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36103F05: fmul dword ptr [0x36170464] */
  11133 L_36103F0B:
  11134     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11135     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11136     esp = esp + 4; /* 0x36103F0B: add esp, 4 */
  11137     _flag_k = FK_ADD;
  11138 L_36103F0E:
  11139     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103F0E: faddp st(1) */
  11140 L_36103F10:
  11141     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103F10: fstp dword ptr [edi] */
  11142 L_36103F12:
  11143     MEM32(edi + 0x40) = 2; /* 0x36103F12: mov dword ptr [edi + 0x40], 2 */
  11144 L_36103F19:
  11145     ecx = MEM32(ebp + (-0x10)); /* 0x36103F19: mov ecx, dword ptr [ebp - 0x10] */
  11146 L_36103F1C:
  11147     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36103F1C: fld dword ptr [ecx + 4] */
  11148 L_36103F1F:
  11149     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x36103F1F: fcomp dword ptr [edi] */
  11150     fp_pop();
  11151 L_36103F21:
  11152     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F21: fnstsw ax */
  11153 L_36103F23:
  11154     /* test HI8(eax), 0x41u */ /* 0x36103F23: test ah, 0x41 */
  11155     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  11156     _cf = 0;
  11157     _flag_k = FK_NARROW(FK_TEST, 24);
  11158 L_36103F26:
  11159     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103F54; /* 0x36103F26: jne 0x36103f54 */
  11160 L_36103F28:
  11161     edx = MEM32(esi + 0x2C); /* 0x36103F28: mov edx, dword ptr [esi + 0x2c] */
  11162 L_36103F2B:
  11163     eax = MEM32(ecx); /* 0x36103F2B: mov eax, dword ptr [ecx] */
  11164 L_36103F2D:
  11165     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11166     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11167     edx = edx + ebx; /* 0x36103F2D: add edx, ebx */
  11168     _flag_k = FK_ADD;
  11169 L_36103F2F:
  11170     MEM32(edx) = eax; /* 0x36103F2F: mov dword ptr [edx], eax */
  11171 L_36103F31:
  11172     eax = MEM32(ecx + 0x4); /* 0x36103F31: mov eax, dword ptr [ecx + 4] */
  11173 L_36103F34:
  11174     MEM32(edx + 0x4) = eax; /* 0x36103F34: mov dword ptr [edx + 4], eax */
  11175 L_36103F37:
  11176     ecx = MEM32(ecx + 0x8); /* 0x36103F37: mov ecx, dword ptr [ecx + 8] */
  11177 L_36103F3A:
  11178     eax = MEM32(ebp + (-0x10)); /* 0x36103F3A: mov eax, dword ptr [ebp - 0x10] */
  11179 L_36103F3D:
  11180     MEM32(edx + 0x8) = ecx; /* 0x36103F3D: mov dword ptr [edx + 8], ecx */
  11181 L_36103F40:
  11182     fp_push(*(float*)&MEM32(edi + (-0x20))); /* 0x36103F40: fld dword ptr [edi - 0x20] */
  11183 L_36103F43:
  11184     _st[0] -= (double)*(float*)ADDR(0x36170850); /* 0x36103F43: fsub dword ptr [0x36170850] */
  11185 L_36103F49:
  11186     { float _v = (float)_st[0]; *(float*)ADDR(edi + (-0x20)) = _v; } /* 0x36103F49: fst dword ptr [edi - 0x20] */
  11187 L_36103F4C:
  11188     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x36103F4C: fadd dword ptr [eax + 4] */
  11189 L_36103F4F:
  11190     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36103F4F: fstp dword ptr [eax + 4] */
  11191 L_36103F52:
  11192     goto L_36103FC0; /* 0x36103F52: jmp 0x36103fc0 */
  11193 L_36103F54:
  11194     edx = MEM32(edi); /* 0x36103F54: mov edx, dword ptr [edi] */
  11195 L_36103F56:
  11196     MEM32(ecx + 0x4) = edx; /* 0x36103F56: mov dword ptr [ecx + 4], edx */
  11197 L_36103F59:
  11198     eax = MEM32(esi + 0x2C); /* 0x36103F59: mov eax, dword ptr [esi + 0x2c] */
  11199 L_36103F5C:
  11200     edx = MEM32(ecx); /* 0x36103F5C: mov edx, dword ptr [ecx] */
  11201 L_36103F5E:
  11202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  11203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11204     eax = eax + ebx; /* 0x36103F5E: add eax, ebx */
  11205     _flag_k = FK_ADD;
  11206 L_36103F60:
  11207     MEM32(eax) = edx; /* 0x36103F60: mov dword ptr [eax], edx */
  11208 L_36103F62:
  11209     edx = MEM32(ecx + 0x4); /* 0x36103F62: mov edx, dword ptr [ecx + 4] */
  11210 L_36103F65:
  11211     MEM32(eax + 0x4) = edx; /* 0x36103F65: mov dword ptr [eax + 4], edx */
  11212 L_36103F68:
  11213     ecx = MEM32(ecx + 0x8); /* 0x36103F68: mov ecx, dword ptr [ecx + 8] */
  11214 L_36103F6B:
  11215     MEM32(eax + 0x8) = ecx; /* 0x36103F6B: mov dword ptr [eax + 8], ecx */
  11216 L_36103F6E:
  11217     edx = MEM32(esi + 0xC); /* 0x36103F6E: mov edx, dword ptr [esi + 0xc] */
  11218 L_36103F71:
  11219     MEM32(edi + 0x20) = edx; /* 0x36103F71: mov dword ptr [edi + 0x20], edx */
  11220 L_36103F74:
  11221     MEM32(edi + 0x40) = 3; /* 0x36103F74: mov dword ptr [edi + 0x40], 3 */
  11222 L_36103F7B:
  11223     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103F7B: fld dword ptr [esi + 0xc] */
  11224 L_36103F7E:
  11225     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103F7E: fsub dword ptr [edi + 0x20] */
  11226 L_36103F81:
  11227     _st[0] /= (double)*(float*)ADDR(esi + 0x16C); /* 0x36103F81: fdiv dword ptr [esi + 0x16c] */
  11228 L_36103F87:
  11229     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103F87: fcom dword ptr [0x36170380] */
  11230 L_36103F8D:
  11231     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F8D: fnstsw ax */
  11232 L_36103F8F:
  11233     /* test HI8(eax), 1 */ /* 0x36103F8F: test ah, 1 */
  11234     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11235     _cf = 0;
  11236     _flag_k = FK_NARROW(FK_TEST, 24);
  11237 L_36103F92:
  11238     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FAF; /* 0x36103F92: je 0x36103faf */
  11239 L_36103F94:
  11240     _st[0] *= (double)*(float*)ADDR(0x36175A38); /* 0x36103F94: fmul dword ptr [0x36175a38] */
  11241 L_36103F9A:
  11242     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103F9A: call 0x3615fd8c */ /* not lifted */
  11243     RECOMP_FLAGS_IN();
  11244 L_36103F9F:
  11245     edx = MEM32(esi + 0x2C); /* 0x36103F9F: mov edx, dword ptr [esi + 0x2c] */
  11246 L_36103FA2:
  11247     ecx = 5; /* 0x36103FA2: mov ecx, 5 */
  11248 L_36103FA7:
  11249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  11250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11251     ecx = ecx - eax; /* 0x36103FA7: sub ecx, eax */
  11252     _flag_k = FK_CMP;
  11253 L_36103FA9:
  11254     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103FA9: mov dword ptr [edx + ebx + 0x18], ecx */
  11255 L_36103FAD:
  11256     goto L_36103FC0; /* 0x36103FAD: jmp 0x36103fc0 */
  11257 L_36103FAF:
  11258     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103FAF: fstp st(0) */
  11259 L_36103FB1:
  11260     eax = MEM32(esi + 0x2C); /* 0x36103FB1: mov eax, dword ptr [esi + 0x2c] */
  11261 L_36103FB4:
  11262     MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36103FB4: mov byte ptr [eax + ebx + 0x1c], 0 */
  11263 L_36103FB9:
  11264     MEM32(edi + 0x40) = 0; /* 0x36103FB9: mov dword ptr [edi + 0x40], 0 */
  11265 L_36103FC0:
  11266     edx = MEM32(ebp + (-0x10)); /* 0x36103FC0: mov edx, dword ptr [ebp - 0x10] */
  11267 L_36103FC3:
  11268     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  11269     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11270     edx = edx + 0xCu; /* 0x36103FC3: add edx, 0xc */
  11271     _flag_k = FK_ADD;
  11272 L_36103FC6:
  11273     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u);
  11274     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11275     ebx = ebx + 0x20u; /* 0x36103FC6: add ebx, 0x20 */
  11276     _flag_k = FK_ADD;
  11277 L_36103FC9:
  11278     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  11279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11280     edi = edi + 4; /* 0x36103FC9: add edi, 4 */
  11281     _flag_k = FK_ADD;
  11282 L_36103FCC:
  11283     /* cmp ebx, 0x100u */ /* 0x36103FCC: cmp ebx, 0x100 */
  11284     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x100u);
  11285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11286     _flag_k = FK_CMP;
  11287 L_36103FD2:
  11288     MEM32(ebp + (-0x10)) = edx; /* 0x36103FD2: mov dword ptr [ebp - 0x10], edx */
  11289 L_36103FD5:
  11290     RECOMP_BACKEDGE();
  11291     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36103DF5; /* 0x36103FD5: jl 0x36103df5 */
  11292 L_36103FDB:
  11293     ecx = ebp + (-0x34); /* 0x36103FDB: lea ecx, [ebp - 0x34] */
  11294 L_36103FDE:
  11295     PUSH32(esp, ecx); /* 0x36103FDE: push ecx */
  11296 L_36103FDF:
  11297     ecx = MEM32(esi + 0x20); /* 0x36103FDF: mov ecx, dword ptr [esi + 0x20] */
  11298 L_36103FE2:
  11299     RECOMP_ICALL(0x36133E80u); /* 0x36103FE2: call 0x36133e80 */ /* not lifted */
  11300     RECOMP_FLAGS_IN();
  11301 L_36103FE7:
  11302     ecx = MEM32(esi + 0x28); /* 0x36103FE7: mov ecx, dword ptr [esi + 0x28] */
  11303 L_36103FEA:
  11304     edi = MEM32(eax); /* 0x36103FEA: mov edi, dword ptr [eax] */
  11305 L_36103FEC:
  11306     edx = ecx + 0x78; /* 0x36103FEC: lea edx, [ecx + 0x78] */
  11307 L_36103FEF:
  11308     MEM32(edx) = edi; /* 0x36103FEF: mov dword ptr [edx], edi */
  11309 L_36103FF1:
  11310     edi = MEM32(eax + 0x4); /* 0x36103FF1: mov edi, dword ptr [eax + 4] */
  11311 L_36103FF4:
  11312     MEM32(edx + 0x4) = edi; /* 0x36103FF4: mov dword ptr [edx + 4], edi */
  11313 L_36103FF7:
  11314     eax = MEM32(eax + 0x8); /* 0x36103FF7: mov eax, dword ptr [eax + 8] */
  11315 L_36103FFA:
  11316     PUSH32(esp, 1); /* 0x36103FFA: push 1 */
  11317 L_36103FFC:
  11318     MEM32(edx + 0x8) = eax; /* 0x36103FFC: mov dword ptr [edx + 8], eax */
  11319 L_36103FFF:
  11320     edx = MEM32(ecx); /* 0x36103FFF: mov edx, dword ptr [ecx] */
  11321 L_36104001:
  11322     PUSH32(esp, 1); /* 0x36104001: push 1 */
  11323 L_36104003:
  11324     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36104003: call dword ptr [edx + 0x2c] */
  11325     RECOMP_FLAGS_IN();
  11326 L_36104006:
  11327     ecx = MEM32(esi + 0x20); /* 0x36104006: mov ecx, dword ptr [esi + 0x20] */
  11328 L_36104009:
  11329     eax = ebp + (-0x84); /* 0x36104009: lea eax, [ebp - 0x84] */
  11330 L_3610400F:
  11331     PUSH32(esp, eax); /* 0x3610400F: push eax */
  11332 L_36104010:
  11333     RECOMP_ICALL(0x36133DC0u); /* 0x36104010: call 0x36133dc0 */ /* not lifted */
  11334     RECOMP_FLAGS_IN();
  11335 L_36104015:
  11336     PUSH32(esp, eax); /* 0x36104015: push eax */
  11337 L_36104016:
  11338     ecx = ebp + (-0x44); /* 0x36104016: lea ecx, [ebp - 0x44] */
  11339 L_36104019:
  11340     MEM32(ebp + (-0x4)) = 0; /* 0x36104019: mov dword ptr [ebp - 4], 0 */
  11341 L_36104020:
  11342     RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36104020: call dword ptr [0x361701a4] */
  11343     RECOMP_FLAGS_IN();
  11344 L_36104026:
  11345     esi = MEM32(esi + 0x28); /* 0x36104026: mov esi, dword ptr [esi + 0x28] */
  11346 L_36104029:
  11347     edx = MEM32(eax); /* 0x36104029: mov edx, dword ptr [eax] */
  11348 L_3610402B:
  11349     ecx = esi + 0x84; /* 0x3610402B: lea ecx, [esi + 0x84] */
  11350 L_36104031:
  11351     MEM32(ecx) = edx; /* 0x36104031: mov dword ptr [ecx], edx */
  11352 L_36104033:
  11353     edx = MEM32(eax + 0x4); /* 0x36104033: mov edx, dword ptr [eax + 4] */
  11354 L_36104036:
  11355     MEM32(ecx + 0x4) = edx; /* 0x36104036: mov dword ptr [ecx + 4], edx */
  11356 L_36104039:
  11357     edx = MEM32(eax + 0x8); /* 0x36104039: mov edx, dword ptr [eax + 8] */
  11358 L_3610403C:
  11359     MEM32(ecx + 0x8) = edx; /* 0x3610403C: mov dword ptr [ecx + 8], edx */
  11360 L_3610403F:
  11361     eax = MEM32(eax + 0xC); /* 0x3610403F: mov eax, dword ptr [eax + 0xc] */
  11362 L_36104042:
  11363     edx = MEM32(esi); /* 0x36104042: mov edx, dword ptr [esi] */
  11364 L_36104044:
  11365     PUSH32(esp, 1); /* 0x36104044: push 1 */
  11366 L_36104046:
  11367     MEM32(ecx + 0xC) = eax; /* 0x36104046: mov dword ptr [ecx + 0xc], eax */
  11368 L_36104049:
  11369     PUSH32(esp, 2); /* 0x36104049: push 2 */
  11370 L_3610404B:
  11371     ecx = esi; /* 0x3610404B: mov ecx, esi */
  11372 L_3610404D:
  11373     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610404D: call dword ptr [edx + 0x2c] */
  11374     RECOMP_FLAGS_IN();
  11375 L_36104050:
  11376     edi = POP32_VAL(esp); /* 0x36104050: pop edi */
  11377 L_36104051:
  11378     ebx = POP32_VAL(esp); /* 0x36104051: pop ebx */
  11379 L_36104052:
  11380     ecx = MEM32(ebp + (-0xC)); /* 0x36104052: mov ecx, dword ptr [ebp - 0xc] */
  11381 L_36104055:
  11382     esi = POP32_VAL(esp); /* 0x36104055: pop esi */
  11383 L_36104056:
  11384     MEM32(FS_BASE + (0)) = ecx; /* 0x36104056: mov dword ptr fs:[0], ecx */
  11385 L_3610405D:
  11386     esp = ebp; /* 0x3610405D: mov esp, ebp */
  11387 L_3610405F:
  11388     ebp = POP32_VAL(esp); /* 0x3610405F: pop ebp */
  11389 L_36104060:
  11390     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104060: ret  */
  11391   _ljump:
  11392     switch (_itail_tgt) {
  11393       case 0x36103DF5u: goto L_36103DF5;
  11394       case 0x36103DF8u: goto L_36103DF8;
  11395       case 0x36103DFBu: goto L_36103DFB;
  11396       case 0x36103E01u: goto L_36103E01;
  11397       case 0x36103E08u: goto L_36103E08;
  11398       case 0x36103E0Bu: goto L_36103E0B;
  11399       case 0x36103E0Du: goto L_36103E0D;
  11400       case 0x36103E13u: goto L_36103E13;
  11401       case 0x36103E16u: goto L_36103E16;
  11402       case 0x36103E19u: goto L_36103E19;
  11403       case 0x36103E1Au: goto L_36103E1A;
  11404       case 0x36103E1Fu: goto L_36103E1F;
  11405       case 0x36103E21u: goto L_36103E21;
  11406       case 0x36103E24u: goto L_36103E24;
  11407       case 0x36103E26u: goto L_36103E26;
  11408       case 0x36103E29u: goto L_36103E29;
  11409       case 0x36103E2Cu: goto L_36103E2C;
  11410       case 0x36103E2Fu: goto L_36103E2F;
  11411       case 0x36103E32u: goto L_36103E32;
  11412       case 0x36103E35u: goto L_36103E35;
  11413       case 0x36103E38u: goto L_36103E38;
  11414       case 0x36103E3Bu: goto L_36103E3B;
  11415       case 0x36103E42u: goto L_36103E42;
  11416       case 0x36103E45u: goto L_36103E45;
  11417       case 0x36103E48u: goto L_36103E48;
  11418       case 0x36103E4Eu: goto L_36103E4E;
  11419       case 0x36103E50u: goto L_36103E50;
  11420       case 0x36103E52u: goto L_36103E52;
  11421       case 0x36103E54u: goto L_36103E54;
  11422       case 0x36103E57u: goto L_36103E57;
  11423       case 0x36103E5Au: goto L_36103E5A;
  11424       case 0x36103E5Du: goto L_36103E5D;
  11425       case 0x36103E60u: goto L_36103E60;
  11426       case 0x36103E63u: goto L_36103E63;
  11427       case 0x36103E65u: goto L_36103E65;
  11428       case 0x36103E69u: goto L_36103E69;
  11429       case 0x36103E6Cu: goto L_36103E6C;
  11430       case 0x36103E71u: goto L_36103E71;
  11431       case 0x36103E74u: goto L_36103E74;
  11432       case 0x36103E76u: goto L_36103E76;
  11433       case 0x36103E78u: goto L_36103E78;
  11434       case 0x36103E7Bu: goto L_36103E7B;
  11435       case 0x36103E7Eu: goto L_36103E7E;
  11436       case 0x36103E84u: goto L_36103E84;
  11437       case 0x36103E87u: goto L_36103E87;
  11438       case 0x36103E8Du: goto L_36103E8D;
  11439       case 0x36103E8Fu: goto L_36103E8F;
  11440       case 0x36103E92u: goto L_36103E92;
  11441       case 0x36103E94u: goto L_36103E94;
  11442       case 0x36103E97u: goto L_36103E97;
  11443       case 0x36103E98u: goto L_36103E98;
  11444       case 0x36103E9Bu: goto L_36103E9B;
  11445       case 0x36103EA0u: goto L_36103EA0;
  11446       case 0x36103EA3u: goto L_36103EA3;
  11447       case 0x36103EA6u: goto L_36103EA6;
  11448       case 0x36103EACu: goto L_36103EAC;
  11449       case 0x36103EAFu: goto L_36103EAF;
  11450       case 0x36103EB1u: goto L_36103EB1;
  11451       case 0x36103EB3u: goto L_36103EB3;
  11452       case 0x36103EB6u: goto L_36103EB6;
  11453       case 0x36103EB9u: goto L_36103EB9;
  11454       case 0x36103EBCu: goto L_36103EBC;
  11455       case 0x36103EBFu: goto L_36103EBF;
  11456       case 0x36103EC2u: goto L_36103EC2;
  11457       case 0x36103EC5u: goto L_36103EC5;
  11458       case 0x36103EC7u: goto L_36103EC7;
  11459       case 0x36103EC9u: goto L_36103EC9;
  11460       case 0x36103ECBu: goto L_36103ECB;
  11461       case 0x36103ECEu: goto L_36103ECE;
  11462       case 0x36103ED1u: goto L_36103ED1;
  11463       case 0x36103ED4u: goto L_36103ED4;
  11464       case 0x36103ED7u: goto L_36103ED7;
  11465       case 0x36103EDCu: goto L_36103EDC;
  11466       case 0x36103EDFu: goto L_36103EDF;
  11467       case 0x36103EE3u: goto L_36103EE3;
  11468       case 0x36103EE8u: goto L_36103EE8;
  11469       case 0x36103EEBu: goto L_36103EEB;
  11470       case 0x36103EEEu: goto L_36103EEE;
  11471       case 0x36103EF6u: goto L_36103EF6;
  11472       case 0x36103EF7u: goto L_36103EF7;
  11473       case 0x36103EFAu: goto L_36103EFA;
  11474       case 0x36103EFFu: goto L_36103EFF;
  11475       case 0x36103F05u: goto L_36103F05;
  11476       case 0x36103F0Bu: goto L_36103F0B;
  11477       case 0x36103F0Eu: goto L_36103F0E;
  11478       case 0x36103F10u: goto L_36103F10;
  11479       case 0x36103F12u: goto L_36103F12;
  11480       case 0x36103F19u: goto L_36103F19;
  11481       case 0x36103F1Cu: goto L_36103F1C;
  11482       case 0x36103F1Fu: goto L_36103F1F;
  11483       case 0x36103F21u: goto L_36103F21;
  11484       case 0x36103F23u: goto L_36103F23;
  11485       case 0x36103F26u: goto L_36103F26;
  11486       case 0x36103F28u: goto L_36103F28;
  11487       case 0x36103F2Bu: goto L_36103F2B;
  11488       case 0x36103F2Du: goto L_36103F2D;
  11489       case 0x36103F2Fu: goto L_36103F2F;
  11490       case 0x36103F31u: goto L_36103F31;
  11491       case 0x36103F34u: goto L_36103F34;
  11492       case 0x36103F37u: goto L_36103F37;
  11493       case 0x36103F3Au: goto L_36103F3A;
  11494       case 0x36103F3Du: goto L_36103F3D;
  11495       case 0x36103F40u: goto L_36103F40;
  11496       case 0x36103F43u: goto L_36103F43;
  11497       case 0x36103F49u: goto L_36103F49;
  11498       case 0x36103F4Cu: goto L_36103F4C;
  11499       case 0x36103F4Fu: goto L_36103F4F;
  11500       case 0x36103F52u: goto L_36103F52;
  11501       case 0x36103F54u: goto L_36103F54;
  11502       case 0x36103F56u: goto L_36103F56;
  11503       case 0x36103F59u: goto L_36103F59;
  11504       case 0x36103F5Cu: goto L_36103F5C;
  11505       case 0x36103F5Eu: goto L_36103F5E;
  11506       case 0x36103F60u: goto L_36103F60;
  11507       case 0x36103F62u: goto L_36103F62;
  11508       case 0x36103F65u: goto L_36103F65;
  11509       case 0x36103F68u: goto L_36103F68;
  11510       case 0x36103F6Bu: goto L_36103F6B;
  11511       case 0x36103F6Eu: goto L_36103F6E;
  11512       case 0x36103F71u: goto L_36103F71;
  11513       case 0x36103F74u: goto L_36103F74;
  11514       case 0x36103F7Bu: goto L_36103F7B;
  11515       case 0x36103F7Eu: goto L_36103F7E;
  11516       case 0x36103F81u: goto L_36103F81;
  11517       case 0x36103F87u: goto L_36103F87;
  11518       case 0x36103F8Du: goto L_36103F8D;
  11519       case 0x36103F8Fu: goto L_36103F8F;
  11520       case 0x36103F92u: goto L_36103F92;
  11521       case 0x36103F94u: goto L_36103F94;
  11522       case 0x36103F9Au: goto L_36103F9A;
  11523       case 0x36103F9Fu: goto L_36103F9F;
  11524       case 0x36103FA2u: goto L_36103FA2;
  11525       case 0x36103FA7u: goto L_36103FA7;
  11526       case 0x36103FA9u: goto L_36103FA9;
  11527       case 0x36103FADu: goto L_36103FAD;
  11528       case 0x36103FAFu: goto L_36103FAF;
  11529       case 0x36103FB1u: goto L_36103FB1;
  11530       case 0x36103FB4u: goto L_36103FB4;
  11531       case 0x36103FB9u: goto L_36103FB9;
  11532       case 0x36103FC0u: goto L_36103FC0;
  11533       case 0x36103FC3u: goto L_36103FC3;
  11534       case 0x36103FC6u: goto L_36103FC6;
  11535       case 0x36103FC9u: goto L_36103FC9;
  11536       case 0x36103FCCu: goto L_36103FCC;
  11537       case 0x36103FD2u: goto L_36103FD2;
  11538       case 0x36103FD5u: goto L_36103FD5;
  11539       case 0x36103FDBu: goto L_36103FDB;
  11540       case 0x36103FDEu: goto L_36103FDE;
  11541       case 0x36103FDFu: goto L_36103FDF;
  11542       case 0x36103FE2u: goto L_36103FE2;
  11543       case 0x36103FE7u: goto L_36103FE7;
  11544       case 0x36103FEAu: goto L_36103FEA;
  11545       case 0x36103FECu: goto L_36103FEC;
  11546       case 0x36103FEFu: goto L_36103FEF;
  11547       case 0x36103FF1u: goto L_36103FF1;
  11548       case 0x36103FF4u: goto L_36103FF4;
  11549       case 0x36103FF7u: goto L_36103FF7;
  11550       case 0x36103FFAu: goto L_36103FFA;
  11551       case 0x36103FFCu: goto L_36103FFC;
  11552       case 0x36103FFFu: goto L_36103FFF;
  11553       case 0x36104001u: goto L_36104001;
  11554       case 0x36104003u: goto L_36104003;
  11555       case 0x36104006u: goto L_36104006;
  11556       case 0x36104009u: goto L_36104009;
  11557       case 0x3610400Fu: goto L_3610400F;
  11558       case 0x36104010u: goto L_36104010;
  11559       case 0x36104015u: goto L_36104015;
  11560       case 0x36104016u: goto L_36104016;
  11561       case 0x36104019u: goto L_36104019;
  11562       case 0x36104020u: goto L_36104020;
  11563       case 0x36104026u: goto L_36104026;
  11564       case 0x36104029u: goto L_36104029;
  11565       case 0x3610402Bu: goto L_3610402B;
  11566       case 0x36104031u: goto L_36104031;
  11567       case 0x36104033u: goto L_36104033;
  11568       case 0x36104036u: goto L_36104036;
  11569       case 0x36104039u: goto L_36104039;
  11570       case 0x3610403Cu: goto L_3610403C;
  11571       case 0x3610403Fu: goto L_3610403F;
  11572       case 0x36104042u: goto L_36104042;
  11573       case 0x36104044u: goto L_36104044;
  11574       case 0x36104046u: goto L_36104046;
  11575       case 0x36104049u: goto L_36104049;
  11576       case 0x3610404Bu: goto L_3610404B;
  11577       case 0x3610404Du: goto L_3610404D;
  11578       case 0x36104050u: goto L_36104050;
  11579       case 0x36104051u: goto L_36104051;
  11580       case 0x36104052u: goto L_36104052;
  11581       case 0x36104055u: goto L_36104055;
  11582       case 0x36104056u: goto L_36104056;
  11583       case 0x3610405Du: goto L_3610405D;
  11584       case 0x3610405Fu: goto L_3610405F;
  11585       case 0x36104060u: goto L_36104060;
  11586       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11587     }
  11588     RECOMP_REGS_OUT();
  11589 }
  11590 
  11591 void sub_36103FC0(void) {
  11592     int _fpu_cmp = 0;
  11593     uint32_t _cf = 0;
  11594     int _df = 1;
  11595     uint32_t _flag_k = FK_NONE;
  11596     uint32_t _flag_a = 0, _flag_b = 0;
  11597     uint32_t _itail_tgt = 0;
  11598     RECOMP_REGS_LOCALS
  11599     RECOMP_ENTER(0x36103FC0u);
  11600 
  11601     goto L_36103FC0;
  11602 L_36103DF5:
  11603     eax = MEM32(edi + 0x40); /* 0x36103DF5: mov eax, dword ptr [edi + 0x40] */
  11604 L_36103DF8:
  11605     /* cmp eax, 3 */ /* 0x36103DF8: cmp eax, 3 */
  11606     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  11607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11608     _flag_k = FK_CMP;
  11609 L_36103DFB:
  11610     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36103FB1; /* 0x36103DFB: ja 0x36103fb1 */
  11611 L_36103E01:
  11612     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36104064)); goto _ljump; }
  11613 L_36103E08:
  11614     eax = MEM32(ebp + (-0x14)); /* 0x36103E08: mov eax, dword ptr [ebp - 0x14] */
  11615 L_36103E0B:
  11616     /* test eax, eax */ /* 0x36103E0B: test eax, eax */
  11617     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11618     _cf = 0;
  11619     _flag_k = FK_TEST;
  11620 L_36103E0D:
  11621     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FC0; /* 0x36103E0D: je 0x36103fc0 */
  11622 L_36103E13:
  11623     ecx = MEM32(esi + 0x20); /* 0x36103E13: mov ecx, dword ptr [esi + 0x20] */
  11624 L_36103E16:
  11625     edx = ebp + (-0x28); /* 0x36103E16: lea edx, [ebp - 0x28] */
  11626 L_36103E19:
  11627     PUSH32(esp, edx); /* 0x36103E19: push edx */
  11628 L_36103E1A:
  11629     RECOMP_ICALL(0x36133FC0u); /* 0x36103E1A: call 0x36133fc0 */ /* not lifted */
  11630     RECOMP_FLAGS_IN();
  11631 L_36103E1F:
  11632     edx = MEM32(eax); /* 0x36103E1F: mov edx, dword ptr [eax] */
  11633 L_36103E21:
  11634     ecx = MEM32(ebp + (-0x10)); /* 0x36103E21: mov ecx, dword ptr [ebp - 0x10] */
  11635 L_36103E24:
  11636     MEM32(ecx) = edx; /* 0x36103E24: mov dword ptr [ecx], edx */
  11637 L_36103E26:
  11638     edx = MEM32(eax + 0x4); /* 0x36103E26: mov edx, dword ptr [eax + 4] */
  11639 L_36103E29:
  11640     MEM32(ecx + 0x4) = edx; /* 0x36103E29: mov dword ptr [ecx + 4], edx */
  11641 L_36103E2C:
  11642     eax = MEM32(eax + 0x8); /* 0x36103E2C: mov eax, dword ptr [eax + 8] */
  11643 L_36103E2F:
  11644     MEM32(ecx + 0x8) = eax; /* 0x36103E2F: mov dword ptr [ecx + 8], eax */
  11645 L_36103E32:
  11646     ecx = MEM32(esi + 0xC); /* 0x36103E32: mov ecx, dword ptr [esi + 0xc] */
  11647 L_36103E35:
  11648     MEM32(edi + 0x20) = ecx; /* 0x36103E35: mov dword ptr [edi + 0x20], ecx */
  11649 L_36103E38:
  11650     ecx = MEM32(ebp + (-0x10)); /* 0x36103E38: mov ecx, dword ptr [ebp - 0x10] */
  11651 L_36103E3B:
  11652     MEM32(edi + 0x40) = 1; /* 0x36103E3B: mov dword ptr [edi + 0x40], 1 */
  11653 L_36103E42:
  11654     edx = MEM32(esi + 0xC); /* 0x36103E42: mov edx, dword ptr [esi + 0xc] */
  11655 L_36103E45:
  11656     eax = MEM32(esi + 0x2C); /* 0x36103E45: mov eax, dword ptr [esi + 0x2c] */
  11657 L_36103E48:
  11658     MEM32(esi + 0x110) = edx; /* 0x36103E48: mov dword ptr [esi + 0x110], edx */
  11659 L_36103E4E:
  11660     edx = MEM32(ecx); /* 0x36103E4E: mov edx, dword ptr [ecx] */
  11661 L_36103E50:
  11662     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  11663     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11664     eax = eax + ebx; /* 0x36103E50: add eax, ebx */
  11665     _flag_k = FK_ADD;
  11666 L_36103E52:
  11667     MEM32(eax) = edx; /* 0x36103E52: mov dword ptr [eax], edx */
  11668 L_36103E54:
  11669     edx = MEM32(ecx + 0x4); /* 0x36103E54: mov edx, dword ptr [ecx + 4] */
  11670 L_36103E57:
  11671     MEM32(eax + 0x4) = edx; /* 0x36103E57: mov dword ptr [eax + 4], edx */
  11672 L_36103E5A:
  11673     ecx = MEM32(ecx + 0x8); /* 0x36103E5A: mov ecx, dword ptr [ecx + 8] */
  11674 L_36103E5D:
  11675     MEM32(eax + 0x8) = ecx; /* 0x36103E5D: mov dword ptr [eax + 8], ecx */
  11676 L_36103E60:
  11677     edx = MEM32(esi + 0x2C); /* 0x36103E60: mov edx, dword ptr [esi + 0x2c] */
  11678 L_36103E63:
  11679     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11680     ecx = 0; /* 0x36103E63: xor ecx, ecx */
  11681     _cf = 0;
  11682     _flag_k = FK_TEST;
  11683 L_36103E65:
  11684     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103E65: mov dword ptr [edx + ebx + 0x18], ecx */
  11685 L_36103E69:
  11686     eax = MEM32(esi + 0x2C); /* 0x36103E69: mov eax, dword ptr [esi + 0x2c] */
  11687 L_36103E6C:
  11688     MEM8(eax + ebx + 0x1C) = (uint8_t)(1); /* 0x36103E6C: mov byte ptr [eax + ebx + 0x1c], 1 */
  11689 L_36103E71:
  11690     MEM32(ebp + (-0x14)) = ecx; /* 0x36103E71: mov dword ptr [ebp - 0x14], ecx */
  11691 L_36103E74:
  11692     goto L_36103E78; /* 0x36103E74: jmp 0x36103e78 */
  11693 L_36103E76:
  11694     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11695     ecx = 0; /* 0x36103E76: xor ecx, ecx */
  11696     _cf = 0;
  11697     _flag_k = FK_TEST;
  11698 L_36103E78:
  11699     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103E78: fld dword ptr [esi + 0xc] */
  11700 L_36103E7B:
  11701     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103E7B: fsub dword ptr [edi + 0x20] */
  11702 L_36103E7E:
  11703     _st[0] /= (double)*(float*)ADDR(esi + 0x168); /* 0x36103E7E: fdiv dword ptr [esi + 0x168] */
  11704 L_36103E84:
  11705     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36103E84: fst dword ptr [ebp - 0x1c] */
  11706 L_36103E87:
  11707     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103E87: fcomp dword ptr [0x36170380] */
  11708     fp_pop();
  11709 L_36103E8D:
  11710     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103E8D: fnstsw ax */
  11711 L_36103E8F:
  11712     /* test HI8(eax), 1 */ /* 0x36103E8F: test ah, 1 */
  11713     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11714     _cf = 0;
  11715     _flag_k = FK_NARROW(FK_TEST, 24);
  11716 L_36103E92:
  11717     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103EE8; /* 0x36103E92: je 0x36103ee8 */
  11718 L_36103E94:
  11719     ecx = ebp + (-0x34); /* 0x36103E94: lea ecx, [ebp - 0x34] */
  11720 L_36103E97:
  11721     PUSH32(esp, ecx); /* 0x36103E97: push ecx */
  11722 L_36103E98:
  11723     ecx = MEM32(esi + 0x20); /* 0x36103E98: mov ecx, dword ptr [esi + 0x20] */
  11724 L_36103E9B:
  11725     RECOMP_ICALL(0x36133FC0u); /* 0x36103E9B: call 0x36133fc0 */ /* not lifted */
  11726     RECOMP_FLAGS_IN();
  11727 L_36103EA0:
  11728     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36103EA0: fld dword ptr [ebp - 0x1c] */
  11729 L_36103EA3:
  11730     edx = MEM32(ebp + (-0x10)); /* 0x36103EA3: mov edx, dword ptr [ebp - 0x10] */
  11731 L_36103EA6:
  11732     _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36103EA6: fmul dword ptr [0x36170eb8] */
  11733 L_36103EAC:
  11734     MEM32(ebp + (-0x18)) = eax; /* 0x36103EAC: mov dword ptr [ebp - 0x18], eax */
  11735 L_36103EAF:
  11736     ecx = MEM32(eax); /* 0x36103EAF: mov ecx, dword ptr [eax] */
  11737 L_36103EB1:
  11738     MEM32(edx) = ecx; /* 0x36103EB1: mov dword ptr [edx], ecx */
  11739 L_36103EB3:
  11740     ecx = MEM32(eax + 0x4); /* 0x36103EB3: mov ecx, dword ptr [eax + 4] */
  11741 L_36103EB6:
  11742     MEM32(edx + 0x4) = ecx; /* 0x36103EB6: mov dword ptr [edx + 4], ecx */
  11743 L_36103EB9:
  11744     eax = MEM32(eax + 0x8); /* 0x36103EB9: mov eax, dword ptr [eax + 8] */
  11745 L_36103EBC:
  11746     MEM32(edx + 0x8) = eax; /* 0x36103EBC: mov dword ptr [edx + 8], eax */
  11747 L_36103EBF:
  11748     ecx = MEM32(esi + 0x2C); /* 0x36103EBF: mov ecx, dword ptr [esi + 0x2c] */
  11749 L_36103EC2:
  11750     eax = MEM32(ebp + (-0x18)); /* 0x36103EC2: mov eax, dword ptr [ebp - 0x18] */
  11751 L_36103EC5:
  11752     edx = MEM32(eax); /* 0x36103EC5: mov edx, dword ptr [eax] */
  11753 L_36103EC7:
  11754     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  11755     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11756     ecx = ecx + ebx; /* 0x36103EC7: add ecx, ebx */
  11757     _flag_k = FK_ADD;
  11758 L_36103EC9:
  11759     MEM32(ecx) = edx; /* 0x36103EC9: mov dword ptr [ecx], edx */
  11760 L_36103ECB:
  11761     edx = MEM32(eax + 0x4); /* 0x36103ECB: mov edx, dword ptr [eax + 4] */
  11762 L_36103ECE:
  11763     MEM32(ecx + 0x4) = edx; /* 0x36103ECE: mov dword ptr [ecx + 4], edx */
  11764 L_36103ED1:
  11765     eax = MEM32(eax + 0x8); /* 0x36103ED1: mov eax, dword ptr [eax + 8] */
  11766 L_36103ED4:
  11767     MEM32(ecx + 0x8) = eax; /* 0x36103ED4: mov dword ptr [ecx + 8], eax */
  11768 L_36103ED7:
  11769     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103ED7: call 0x3615fd8c */ /* not lifted */
  11770     RECOMP_FLAGS_IN();
  11771 L_36103EDC:
  11772     ecx = MEM32(esi + 0x2C); /* 0x36103EDC: mov ecx, dword ptr [esi + 0x2c] */
  11773 L_36103EDF:
  11774     MEM32(ecx + ebx + 0x18) = eax; /* 0x36103EDF: mov dword ptr [ecx + ebx + 0x18], eax */
  11775 L_36103EE3:
  11776     goto L_36103FC0; /* 0x36103EE3: jmp 0x36103fc0 */
  11777 L_36103EE8:
  11778     edx = MEM32(esi + 0x2C); /* 0x36103EE8: mov edx, dword ptr [esi + 0x2c] */
  11779 L_36103EEB:
  11780     eax = MEM32(ebp + (-0x10)); /* 0x36103EEB: mov eax, dword ptr [ebp - 0x10] */
  11781 L_36103EEE:
  11782     MEM32(edx + ebx + 0x18) = 5; /* 0x36103EEE: mov dword ptr [edx + ebx + 0x18], 5 */
  11783 L_36103EF6:
  11784     PUSH32(esp, eax); /* 0x36103EF6: push eax */
  11785 L_36103EF7:
  11786     MEM32(edi + (-0x20)) = ecx; /* 0x36103EF7: mov dword ptr [edi - 0x20], ecx */
  11787 L_36103EFA:
  11788     RECOMP_ICALL(0x360FC710u); /* 0x36103EFA: call 0x360fc710 */ /* not lifted */
  11789     RECOMP_FLAGS_IN();
  11790 L_36103EFF:
  11791     fp_push(*(float*)&MEM32(esi + 0x128)); /* 0x36103EFF: fld dword ptr [esi + 0x128] */
  11792 L_36103F05:
  11793     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36103F05: fmul dword ptr [0x36170464] */
  11794 L_36103F0B:
  11795     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11796     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11797     esp = esp + 4; /* 0x36103F0B: add esp, 4 */
  11798     _flag_k = FK_ADD;
  11799 L_36103F0E:
  11800     { double _v = fp_pop(); _st[0] += _v; } /* 0x36103F0E: faddp st(1) */
  11801 L_36103F10:
  11802     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x36103F10: fstp dword ptr [edi] */
  11803 L_36103F12:
  11804     MEM32(edi + 0x40) = 2; /* 0x36103F12: mov dword ptr [edi + 0x40], 2 */
  11805 L_36103F19:
  11806     ecx = MEM32(ebp + (-0x10)); /* 0x36103F19: mov ecx, dword ptr [ebp - 0x10] */
  11807 L_36103F1C:
  11808     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x36103F1C: fld dword ptr [ecx + 4] */
  11809 L_36103F1F:
  11810     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x36103F1F: fcomp dword ptr [edi] */
  11811     fp_pop();
  11812 L_36103F21:
  11813     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F21: fnstsw ax */
  11814 L_36103F23:
  11815     /* test HI8(eax), 0x41u */ /* 0x36103F23: test ah, 0x41 */
  11816     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  11817     _cf = 0;
  11818     _flag_k = FK_NARROW(FK_TEST, 24);
  11819 L_36103F26:
  11820     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36103F54; /* 0x36103F26: jne 0x36103f54 */
  11821 L_36103F28:
  11822     edx = MEM32(esi + 0x2C); /* 0x36103F28: mov edx, dword ptr [esi + 0x2c] */
  11823 L_36103F2B:
  11824     eax = MEM32(ecx); /* 0x36103F2B: mov eax, dword ptr [ecx] */
  11825 L_36103F2D:
  11826     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11827     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11828     edx = edx + ebx; /* 0x36103F2D: add edx, ebx */
  11829     _flag_k = FK_ADD;
  11830 L_36103F2F:
  11831     MEM32(edx) = eax; /* 0x36103F2F: mov dword ptr [edx], eax */
  11832 L_36103F31:
  11833     eax = MEM32(ecx + 0x4); /* 0x36103F31: mov eax, dword ptr [ecx + 4] */
  11834 L_36103F34:
  11835     MEM32(edx + 0x4) = eax; /* 0x36103F34: mov dword ptr [edx + 4], eax */
  11836 L_36103F37:
  11837     ecx = MEM32(ecx + 0x8); /* 0x36103F37: mov ecx, dword ptr [ecx + 8] */
  11838 L_36103F3A:
  11839     eax = MEM32(ebp + (-0x10)); /* 0x36103F3A: mov eax, dword ptr [ebp - 0x10] */
  11840 L_36103F3D:
  11841     MEM32(edx + 0x8) = ecx; /* 0x36103F3D: mov dword ptr [edx + 8], ecx */
  11842 L_36103F40:
  11843     fp_push(*(float*)&MEM32(edi + (-0x20))); /* 0x36103F40: fld dword ptr [edi - 0x20] */
  11844 L_36103F43:
  11845     _st[0] -= (double)*(float*)ADDR(0x36170850); /* 0x36103F43: fsub dword ptr [0x36170850] */
  11846 L_36103F49:
  11847     { float _v = (float)_st[0]; *(float*)ADDR(edi + (-0x20)) = _v; } /* 0x36103F49: fst dword ptr [edi - 0x20] */
  11848 L_36103F4C:
  11849     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x36103F4C: fadd dword ptr [eax + 4] */
  11850 L_36103F4F:
  11851     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x36103F4F: fstp dword ptr [eax + 4] */
  11852 L_36103F52:
  11853     goto L_36103FC0; /* 0x36103F52: jmp 0x36103fc0 */
  11854 L_36103F54:
  11855     edx = MEM32(edi); /* 0x36103F54: mov edx, dword ptr [edi] */
  11856 L_36103F56:
  11857     MEM32(ecx + 0x4) = edx; /* 0x36103F56: mov dword ptr [ecx + 4], edx */
  11858 L_36103F59:
  11859     eax = MEM32(esi + 0x2C); /* 0x36103F59: mov eax, dword ptr [esi + 0x2c] */
  11860 L_36103F5C:
  11861     edx = MEM32(ecx); /* 0x36103F5C: mov edx, dword ptr [ecx] */
  11862 L_36103F5E:
  11863     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  11864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11865     eax = eax + ebx; /* 0x36103F5E: add eax, ebx */
  11866     _flag_k = FK_ADD;
  11867 L_36103F60:
  11868     MEM32(eax) = edx; /* 0x36103F60: mov dword ptr [eax], edx */
  11869 L_36103F62:
  11870     edx = MEM32(ecx + 0x4); /* 0x36103F62: mov edx, dword ptr [ecx + 4] */
  11871 L_36103F65:
  11872     MEM32(eax + 0x4) = edx; /* 0x36103F65: mov dword ptr [eax + 4], edx */
  11873 L_36103F68:
  11874     ecx = MEM32(ecx + 0x8); /* 0x36103F68: mov ecx, dword ptr [ecx + 8] */
  11875 L_36103F6B:
  11876     MEM32(eax + 0x8) = ecx; /* 0x36103F6B: mov dword ptr [eax + 8], ecx */
  11877 L_36103F6E:
  11878     edx = MEM32(esi + 0xC); /* 0x36103F6E: mov edx, dword ptr [esi + 0xc] */
  11879 L_36103F71:
  11880     MEM32(edi + 0x20) = edx; /* 0x36103F71: mov dword ptr [edi + 0x20], edx */
  11881 L_36103F74:
  11882     MEM32(edi + 0x40) = 3; /* 0x36103F74: mov dword ptr [edi + 0x40], 3 */
  11883 L_36103F7B:
  11884     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36103F7B: fld dword ptr [esi + 0xc] */
  11885 L_36103F7E:
  11886     _st[0] -= (double)*(float*)ADDR(edi + 0x20); /* 0x36103F7E: fsub dword ptr [edi + 0x20] */
  11887 L_36103F81:
  11888     _st[0] /= (double)*(float*)ADDR(esi + 0x16C); /* 0x36103F81: fdiv dword ptr [esi + 0x16c] */
  11889 L_36103F87:
  11890     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36103F87: fcom dword ptr [0x36170380] */
  11891 L_36103F8D:
  11892     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36103F8D: fnstsw ax */
  11893 L_36103F8F:
  11894     /* test HI8(eax), 1 */ /* 0x36103F8F: test ah, 1 */
  11895     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  11896     _cf = 0;
  11897     _flag_k = FK_NARROW(FK_TEST, 24);
  11898 L_36103F92:
  11899     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36103FAF; /* 0x36103F92: je 0x36103faf */
  11900 L_36103F94:
  11901     _st[0] *= (double)*(float*)ADDR(0x36175A38); /* 0x36103F94: fmul dword ptr [0x36175a38] */
  11902 L_36103F9A:
  11903     RECOMP_ICALL(0x3615FD8Cu); /* 0x36103F9A: call 0x3615fd8c */ /* not lifted */
  11904     RECOMP_FLAGS_IN();
  11905 L_36103F9F:
  11906     edx = MEM32(esi + 0x2C); /* 0x36103F9F: mov edx, dword ptr [esi + 0x2c] */
  11907 L_36103FA2:
  11908     ecx = 5; /* 0x36103FA2: mov ecx, 5 */
  11909 L_36103FA7:
  11910     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  11911     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11912     ecx = ecx - eax; /* 0x36103FA7: sub ecx, eax */
  11913     _flag_k = FK_CMP;
  11914 L_36103FA9:
  11915     MEM32(edx + ebx + 0x18) = ecx; /* 0x36103FA9: mov dword ptr [edx + ebx + 0x18], ecx */
  11916 L_36103FAD:
  11917     goto L_36103FC0; /* 0x36103FAD: jmp 0x36103fc0 */
  11918 L_36103FAF:
  11919     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36103FAF: fstp st(0) */
  11920 L_36103FB1:
  11921     eax = MEM32(esi + 0x2C); /* 0x36103FB1: mov eax, dword ptr [esi + 0x2c] */
  11922 L_36103FB4:
  11923     MEM8(eax + ebx + 0x1C) = (uint8_t)(0); /* 0x36103FB4: mov byte ptr [eax + ebx + 0x1c], 0 */
  11924 L_36103FB9:
  11925     MEM32(edi + 0x40) = 0; /* 0x36103FB9: mov dword ptr [edi + 0x40], 0 */
  11926 L_36103FC0:
  11927     edx = MEM32(ebp + (-0x10)); /* 0x36103FC0: mov edx, dword ptr [ebp - 0x10] */
  11928 L_36103FC3:
  11929     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  11930     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11931     edx = edx + 0xCu; /* 0x36103FC3: add edx, 0xc */
  11932     _flag_k = FK_ADD;
  11933 L_36103FC6:
  11934     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x20u);
  11935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11936     ebx = ebx + 0x20u; /* 0x36103FC6: add ebx, 0x20 */
  11937     _flag_k = FK_ADD;
  11938 L_36103FC9:
  11939     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  11940     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11941     edi = edi + 4; /* 0x36103FC9: add edi, 4 */
  11942     _flag_k = FK_ADD;
  11943 L_36103FCC:
  11944     /* cmp ebx, 0x100u */ /* 0x36103FCC: cmp ebx, 0x100 */
  11945     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x100u);
  11946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11947     _flag_k = FK_CMP;
  11948 L_36103FD2:
  11949     MEM32(ebp + (-0x10)) = edx; /* 0x36103FD2: mov dword ptr [ebp - 0x10], edx */
  11950 L_36103FD5:
  11951     RECOMP_BACKEDGE();
  11952     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36103DF5; /* 0x36103FD5: jl 0x36103df5 */
  11953 L_36103FDB:
  11954     ecx = ebp + (-0x34); /* 0x36103FDB: lea ecx, [ebp - 0x34] */
  11955 L_36103FDE:
  11956     PUSH32(esp, ecx); /* 0x36103FDE: push ecx */
  11957 L_36103FDF:
  11958     ecx = MEM32(esi + 0x20); /* 0x36103FDF: mov ecx, dword ptr [esi + 0x20] */
  11959 L_36103FE2:
  11960     RECOMP_ICALL(0x36133E80u); /* 0x36103FE2: call 0x36133e80 */ /* not lifted */
  11961     RECOMP_FLAGS_IN();
  11962 L_36103FE7:
  11963     ecx = MEM32(esi + 0x28); /* 0x36103FE7: mov ecx, dword ptr [esi + 0x28] */
  11964 L_36103FEA:
  11965     edi = MEM32(eax); /* 0x36103FEA: mov edi, dword ptr [eax] */
  11966 L_36103FEC:
  11967     edx = ecx + 0x78; /* 0x36103FEC: lea edx, [ecx + 0x78] */
  11968 L_36103FEF:
  11969     MEM32(edx) = edi; /* 0x36103FEF: mov dword ptr [edx], edi */
  11970 L_36103FF1:
  11971     edi = MEM32(eax + 0x4); /* 0x36103FF1: mov edi, dword ptr [eax + 4] */
  11972 L_36103FF4:
  11973     MEM32(edx + 0x4) = edi; /* 0x36103FF4: mov dword ptr [edx + 4], edi */
  11974 L_36103FF7:
  11975     eax = MEM32(eax + 0x8); /* 0x36103FF7: mov eax, dword ptr [eax + 8] */
  11976 L_36103FFA:
  11977     PUSH32(esp, 1); /* 0x36103FFA: push 1 */
  11978 L_36103FFC:
  11979     MEM32(edx + 0x8) = eax; /* 0x36103FFC: mov dword ptr [edx + 8], eax */
  11980 L_36103FFF:
  11981     edx = MEM32(ecx); /* 0x36103FFF: mov edx, dword ptr [ecx] */
  11982 L_36104001:
  11983     PUSH32(esp, 1); /* 0x36104001: push 1 */
  11984 L_36104003:
  11985     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36104003: call dword ptr [edx + 0x2c] */
  11986     RECOMP_FLAGS_IN();
  11987 L_36104006:
  11988     ecx = MEM32(esi + 0x20); /* 0x36104006: mov ecx, dword ptr [esi + 0x20] */
  11989 L_36104009:
  11990     eax = ebp + (-0x84); /* 0x36104009: lea eax, [ebp - 0x84] */
  11991 L_3610400F:
  11992     PUSH32(esp, eax); /* 0x3610400F: push eax */
  11993 L_36104010:
  11994     RECOMP_ICALL(0x36133DC0u); /* 0x36104010: call 0x36133dc0 */ /* not lifted */
  11995     RECOMP_FLAGS_IN();
  11996 L_36104015:
  11997     PUSH32(esp, eax); /* 0x36104015: push eax */
  11998 L_36104016:
  11999     ecx = ebp + (-0x44); /* 0x36104016: lea ecx, [ebp - 0x44] */
  12000 L_36104019:
  12001     MEM32(ebp + (-0x4)) = 0; /* 0x36104019: mov dword ptr [ebp - 4], 0 */
  12002 L_36104020:
  12003     RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36104020: call dword ptr [0x361701a4] */
  12004     RECOMP_FLAGS_IN();
  12005 L_36104026:
  12006     esi = MEM32(esi + 0x28); /* 0x36104026: mov esi, dword ptr [esi + 0x28] */
  12007 L_36104029:
  12008     edx = MEM32(eax); /* 0x36104029: mov edx, dword ptr [eax] */
  12009 L_3610402B:
  12010     ecx = esi + 0x84; /* 0x3610402B: lea ecx, [esi + 0x84] */
  12011 L_36104031:
  12012     MEM32(ecx) = edx; /* 0x36104031: mov dword ptr [ecx], edx */
  12013 L_36104033:
  12014     edx = MEM32(eax + 0x4); /* 0x36104033: mov edx, dword ptr [eax + 4] */
  12015 L_36104036:
  12016     MEM32(ecx + 0x4) = edx; /* 0x36104036: mov dword ptr [ecx + 4], edx */
  12017 L_36104039:
  12018     edx = MEM32(eax + 0x8); /* 0x36104039: mov edx, dword ptr [eax + 8] */
  12019 L_3610403C:
  12020     MEM32(ecx + 0x8) = edx; /* 0x3610403C: mov dword ptr [ecx + 8], edx */
  12021 L_3610403F:
  12022     eax = MEM32(eax + 0xC); /* 0x3610403F: mov eax, dword ptr [eax + 0xc] */
  12023 L_36104042:
  12024     edx = MEM32(esi); /* 0x36104042: mov edx, dword ptr [esi] */
  12025 L_36104044:
  12026     PUSH32(esp, 1); /* 0x36104044: push 1 */
  12027 L_36104046:
  12028     MEM32(ecx + 0xC) = eax; /* 0x36104046: mov dword ptr [ecx + 0xc], eax */
  12029 L_36104049:
  12030     PUSH32(esp, 2); /* 0x36104049: push 2 */
  12031 L_3610404B:
  12032     ecx = esi; /* 0x3610404B: mov ecx, esi */
  12033 L_3610404D:
  12034     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3610404D: call dword ptr [edx + 0x2c] */
  12035     RECOMP_FLAGS_IN();
  12036 L_36104050:
  12037     edi = POP32_VAL(esp); /* 0x36104050: pop edi */
  12038 L_36104051:
  12039     ebx = POP32_VAL(esp); /* 0x36104051: pop ebx */
  12040 L_36104052:
  12041     ecx = MEM32(ebp + (-0xC)); /* 0x36104052: mov ecx, dword ptr [ebp - 0xc] */
  12042 L_36104055:
  12043     esi = POP32_VAL(esp); /* 0x36104055: pop esi */
  12044 L_36104056:
  12045     MEM32(FS_BASE + (0)) = ecx; /* 0x36104056: mov dword ptr fs:[0], ecx */
  12046 L_3610405D:
  12047     esp = ebp; /* 0x3610405D: mov esp, ebp */
  12048 L_3610405F:
  12049     ebp = POP32_VAL(esp); /* 0x3610405F: pop ebp */
  12050 L_36104060:
  12051     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104060: ret  */
  12052   _ljump:
  12053     switch (_itail_tgt) {
  12054       case 0x36103DF5u: goto L_36103DF5;
  12055       case 0x36103DF8u: goto L_36103DF8;
  12056       case 0x36103DFBu: goto L_36103DFB;
  12057       case 0x36103E01u: goto L_36103E01;
  12058       case 0x36103E08u: goto L_36103E08;
  12059       case 0x36103E0Bu: goto L_36103E0B;
  12060       case 0x36103E0Du: goto L_36103E0D;
  12061       case 0x36103E13u: goto L_36103E13;
  12062       case 0x36103E16u: goto L_36103E16;
  12063       case 0x36103E19u: goto L_36103E19;
  12064       case 0x36103E1Au: goto L_36103E1A;
  12065       case 0x36103E1Fu: goto L_36103E1F;
  12066       case 0x36103E21u: goto L_36103E21;
  12067       case 0x36103E24u: goto L_36103E24;
  12068       case 0x36103E26u: goto L_36103E26;
  12069       case 0x36103E29u: goto L_36103E29;
  12070       case 0x36103E2Cu: goto L_36103E2C;
  12071       case 0x36103E2Fu: goto L_36103E2F;
  12072       case 0x36103E32u: goto L_36103E32;
  12073       case 0x36103E35u: goto L_36103E35;
  12074       case 0x36103E38u: goto L_36103E38;
  12075       case 0x36103E3Bu: goto L_36103E3B;
  12076       case 0x36103E42u: goto L_36103E42;
  12077       case 0x36103E45u: goto L_36103E45;
  12078       case 0x36103E48u: goto L_36103E48;
  12079       case 0x36103E4Eu: goto L_36103E4E;
  12080       case 0x36103E50u: goto L_36103E50;
  12081       case 0x36103E52u: goto L_36103E52;
  12082       case 0x36103E54u: goto L_36103E54;
  12083       case 0x36103E57u: goto L_36103E57;
  12084       case 0x36103E5Au: goto L_36103E5A;
  12085       case 0x36103E5Du: goto L_36103E5D;
  12086       case 0x36103E60u: goto L_36103E60;
  12087       case 0x36103E63u: goto L_36103E63;
  12088       case 0x36103E65u: goto L_36103E65;
  12089       case 0x36103E69u: goto L_36103E69;
  12090       case 0x36103E6Cu: goto L_36103E6C;
  12091       case 0x36103E71u: goto L_36103E71;
  12092       case 0x36103E74u: goto L_36103E74;
  12093       case 0x36103E76u: goto L_36103E76;
  12094       case 0x36103E78u: goto L_36103E78;
  12095       case 0x36103E7Bu: goto L_36103E7B;
  12096       case 0x36103E7Eu: goto L_36103E7E;
  12097       case 0x36103E84u: goto L_36103E84;
  12098       case 0x36103E87u: goto L_36103E87;
  12099       case 0x36103E8Du: goto L_36103E8D;
  12100       case 0x36103E8Fu: goto L_36103E8F;
  12101       case 0x36103E92u: goto L_36103E92;
  12102       case 0x36103E94u: goto L_36103E94;
  12103       case 0x36103E97u: goto L_36103E97;
  12104       case 0x36103E98u: goto L_36103E98;
  12105       case 0x36103E9Bu: goto L_36103E9B;
  12106       case 0x36103EA0u: goto L_36103EA0;
  12107       case 0x36103EA3u: goto L_36103EA3;
  12108       case 0x36103EA6u: goto L_36103EA6;
  12109       case 0x36103EACu: goto L_36103EAC;
  12110       case 0x36103EAFu: goto L_36103EAF;
  12111       case 0x36103EB1u: goto L_36103EB1;
  12112       case 0x36103EB3u: goto L_36103EB3;
  12113       case 0x36103EB6u: goto L_36103EB6;
  12114       case 0x36103EB9u: goto L_36103EB9;
  12115       case 0x36103EBCu: goto L_36103EBC;
  12116       case 0x36103EBFu: goto L_36103EBF;
  12117       case 0x36103EC2u: goto L_36103EC2;
  12118       case 0x36103EC5u: goto L_36103EC5;
  12119       case 0x36103EC7u: goto L_36103EC7;
  12120       case 0x36103EC9u: goto L_36103EC9;
  12121       case 0x36103ECBu: goto L_36103ECB;
  12122       case 0x36103ECEu: goto L_36103ECE;
  12123       case 0x36103ED1u: goto L_36103ED1;
  12124       case 0x36103ED4u: goto L_36103ED4;
  12125       case 0x36103ED7u: goto L_36103ED7;
  12126       case 0x36103EDCu: goto L_36103EDC;
  12127       case 0x36103EDFu: goto L_36103EDF;
  12128       case 0x36103EE3u: goto L_36103EE3;
  12129       case 0x36103EE8u: goto L_36103EE8;
  12130       case 0x36103EEBu: goto L_36103EEB;
  12131       case 0x36103EEEu: goto L_36103EEE;
  12132       case 0x36103EF6u: goto L_36103EF6;
  12133       case 0x36103EF7u: goto L_36103EF7;
  12134       case 0x36103EFAu: goto L_36103EFA;
  12135       case 0x36103EFFu: goto L_36103EFF;
  12136       case 0x36103F05u: goto L_36103F05;
  12137       case 0x36103F0Bu: goto L_36103F0B;
  12138       case 0x36103F0Eu: goto L_36103F0E;
  12139       case 0x36103F10u: goto L_36103F10;
  12140       case 0x36103F12u: goto L_36103F12;
  12141       case 0x36103F19u: goto L_36103F19;
  12142       case 0x36103F1Cu: goto L_36103F1C;
  12143       case 0x36103F1Fu: goto L_36103F1F;
  12144       case 0x36103F21u: goto L_36103F21;
  12145       case 0x36103F23u: goto L_36103F23;
  12146       case 0x36103F26u: goto L_36103F26;
  12147       case 0x36103F28u: goto L_36103F28;
  12148       case 0x36103F2Bu: goto L_36103F2B;
  12149       case 0x36103F2Du: goto L_36103F2D;
  12150       case 0x36103F2Fu: goto L_36103F2F;
  12151       case 0x36103F31u: goto L_36103F31;
  12152       case 0x36103F34u: goto L_36103F34;
  12153       case 0x36103F37u: goto L_36103F37;
  12154       case 0x36103F3Au: goto L_36103F3A;
  12155       case 0x36103F3Du: goto L_36103F3D;
  12156       case 0x36103F40u: goto L_36103F40;
  12157       case 0x36103F43u: goto L_36103F43;
  12158       case 0x36103F49u: goto L_36103F49;
  12159       case 0x36103F4Cu: goto L_36103F4C;
  12160       case 0x36103F4Fu: goto L_36103F4F;
  12161       case 0x36103F52u: goto L_36103F52;
  12162       case 0x36103F54u: goto L_36103F54;
  12163       case 0x36103F56u: goto L_36103F56;
  12164       case 0x36103F59u: goto L_36103F59;
  12165       case 0x36103F5Cu: goto L_36103F5C;
  12166       case 0x36103F5Eu: goto L_36103F5E;
  12167       case 0x36103F60u: goto L_36103F60;
  12168       case 0x36103F62u: goto L_36103F62;
  12169       case 0x36103F65u: goto L_36103F65;
  12170       case 0x36103F68u: goto L_36103F68;
  12171       case 0x36103F6Bu: goto L_36103F6B;
  12172       case 0x36103F6Eu: goto L_36103F6E;
  12173       case 0x36103F71u: goto L_36103F71;
  12174       case 0x36103F74u: goto L_36103F74;
  12175       case 0x36103F7Bu: goto L_36103F7B;
  12176       case 0x36103F7Eu: goto L_36103F7E;
  12177       case 0x36103F81u: goto L_36103F81;
  12178       case 0x36103F87u: goto L_36103F87;
  12179       case 0x36103F8Du: goto L_36103F8D;
  12180       case 0x36103F8Fu: goto L_36103F8F;
  12181       case 0x36103F92u: goto L_36103F92;
  12182       case 0x36103F94u: goto L_36103F94;
  12183       case 0x36103F9Au: goto L_36103F9A;
  12184       case 0x36103F9Fu: goto L_36103F9F;
  12185       case 0x36103FA2u: goto L_36103FA2;
  12186       case 0x36103FA7u: goto L_36103FA7;
  12187       case 0x36103FA9u: goto L_36103FA9;
  12188       case 0x36103FADu: goto L_36103FAD;
  12189       case 0x36103FAFu: goto L_36103FAF;
  12190       case 0x36103FB1u: goto L_36103FB1;
  12191       case 0x36103FB4u: goto L_36103FB4;
  12192       case 0x36103FB9u: goto L_36103FB9;
  12193       case 0x36103FC0u: goto L_36103FC0;
  12194       case 0x36103FC3u: goto L_36103FC3;
  12195       case 0x36103FC6u: goto L_36103FC6;
  12196       case 0x36103FC9u: goto L_36103FC9;
  12197       case 0x36103FCCu: goto L_36103FCC;
  12198       case 0x36103FD2u: goto L_36103FD2;
  12199       case 0x36103FD5u: goto L_36103FD5;
  12200       case 0x36103FDBu: goto L_36103FDB;
  12201       case 0x36103FDEu: goto L_36103FDE;
  12202       case 0x36103FDFu: goto L_36103FDF;
  12203       case 0x36103FE2u: goto L_36103FE2;
  12204       case 0x36103FE7u: goto L_36103FE7;
  12205       case 0x36103FEAu: goto L_36103FEA;
  12206       case 0x36103FECu: goto L_36103FEC;
  12207       case 0x36103FEFu: goto L_36103FEF;
  12208       case 0x36103FF1u: goto L_36103FF1;
  12209       case 0x36103FF4u: goto L_36103FF4;
  12210       case 0x36103FF7u: goto L_36103FF7;
  12211       case 0x36103FFAu: goto L_36103FFA;
  12212       case 0x36103FFCu: goto L_36103FFC;
  12213       case 0x36103FFFu: goto L_36103FFF;
  12214       case 0x36104001u: goto L_36104001;
  12215       case 0x36104003u: goto L_36104003;
  12216       case 0x36104006u: goto L_36104006;
  12217       case 0x36104009u: goto L_36104009;
  12218       case 0x3610400Fu: goto L_3610400F;
  12219       case 0x36104010u: goto L_36104010;
  12220       case 0x36104015u: goto L_36104015;
  12221       case 0x36104016u: goto L_36104016;
  12222       case 0x36104019u: goto L_36104019;
  12223       case 0x36104020u: goto L_36104020;
  12224       case 0x36104026u: goto L_36104026;
  12225       case 0x36104029u: goto L_36104029;
  12226       case 0x3610402Bu: goto L_3610402B;
  12227       case 0x36104031u: goto L_36104031;
  12228       case 0x36104033u: goto L_36104033;
  12229       case 0x36104036u: goto L_36104036;
  12230       case 0x36104039u: goto L_36104039;
  12231       case 0x3610403Cu: goto L_3610403C;
  12232       case 0x3610403Fu: goto L_3610403F;
  12233       case 0x36104042u: goto L_36104042;
  12234       case 0x36104044u: goto L_36104044;
  12235       case 0x36104046u: goto L_36104046;
  12236       case 0x36104049u: goto L_36104049;
  12237       case 0x3610404Bu: goto L_3610404B;
  12238       case 0x3610404Du: goto L_3610404D;
  12239       case 0x36104050u: goto L_36104050;
  12240       case 0x36104051u: goto L_36104051;
  12241       case 0x36104052u: goto L_36104052;
  12242       case 0x36104055u: goto L_36104055;
  12243       case 0x36104056u: goto L_36104056;
  12244       case 0x3610405Du: goto L_3610405D;
  12245       case 0x3610405Fu: goto L_3610405F;
  12246       case 0x36104060u: goto L_36104060;
  12247       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  12248     }
  12249     RECOMP_REGS_OUT();
  12250 }
  12251 
  12252 void sub_36104080(void) {
  12253     int _fpu_cmp = 0;
  12254     uint32_t _cf = 0;
  12255     int _df = 1;
  12256     uint32_t _flag_k = FK_NONE;
  12257     uint32_t _flag_a = 0, _flag_b = 0;
  12258     uint32_t _itail_tgt = 0;
  12259     RECOMP_REGS_LOCALS
  12260     RECOMP_ENTER(0x36104080u);
  12261 
  12262 L_36104080:
  12263     MEM8(ecx + 0x114) = (uint8_t)(1); /* 0x36104080: mov byte ptr [ecx + 0x114], 1 */
  12264     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104087: ret  */
  12265     RECOMP_REGS_OUT();
  12266 }
  12267 
  12268 void sub_36104090(void) {
  12269     int _fpu_cmp = 0;
  12270     uint32_t _cf = 0;
  12271     int _df = 1;
  12272     uint32_t _flag_k = FK_NONE;
  12273     uint32_t _flag_a = 0, _flag_b = 0;
  12274     uint32_t _itail_tgt = 0;
  12275     RECOMP_REGS_LOCALS
  12276     RECOMP_ENTER(0x36104090u);
  12277 
  12278 L_36104090:
  12279     PUSH32(esp, ebp); /* 0x36104090: push ebp */
  12280     ebp = esp; /* 0x36104091: mov ebp, esp */
  12281     eax = MEM32(ebp + 0x8); /* 0x36104093: mov eax, dword ptr [ebp + 8] */
  12282     edx = MEM32(ebp + 0xC); /* 0x36104096: mov edx, dword ptr [ebp + 0xc] */
  12283     MEM32(ecx + 0x130) = eax; /* 0x36104099: mov dword ptr [ecx + 0x130], eax */
  12284     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  12285     SET_LO8(eax, 0); /* 0x3610409F: xor al, al */
  12286     _cf = 0;
  12287     _flag_k = FK_NARROW(FK_TEST, 24);
  12288     MEM8(ecx + 0x12C) = (uint8_t)(LO8(eax)); /* 0x361040A1: mov byte ptr [ecx + 0x12c], al */
  12289     MEM32(ecx + 0x134) = edx; /* 0x361040A7: mov dword ptr [ecx + 0x134], edx */
  12290     edx = MEM32(ebp + 0x10); /* 0x361040AD: mov edx, dword ptr [ebp + 0x10] */
  12291     MEM8(ecx + 0x12C) = (uint8_t)(LO8(eax)); /* 0x361040B0: mov byte ptr [ecx + 0x12c], al */
  12292     MEM32(ecx + 0x138) = edx; /* 0x361040B6: mov dword ptr [ecx + 0x138], edx */
  12293     edx = MEM32(ebp + 0x14); /* 0x361040BC: mov edx, dword ptr [ebp + 0x14] */
  12294     MEM8(ecx + 0x12C) = (uint8_t)(LO8(eax)); /* 0x361040BF: mov byte ptr [ecx + 0x12c], al */
  12295     MEM32(ecx + 0x13C) = edx; /* 0x361040C5: mov dword ptr [ecx + 0x13c], edx */
  12296     MEM8(ecx + 0x12C) = (uint8_t)(LO8(eax)); /* 0x361040CB: mov byte ptr [ecx + 0x12c], al */
  12297     ebp = POP32_VAL(esp); /* 0x361040D1: pop ebp */
  12298     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x361040D2: ret 0x10 */
  12299     RECOMP_REGS_OUT();
  12300 }
  12301 
  12302 void sub_361040E0(void) {
  12303     int _fpu_cmp = 0;
  12304     uint32_t _cf = 0;
  12305     int _df = 1;
  12306     uint32_t _flag_k = FK_NONE;
  12307     uint32_t _flag_a = 0, _flag_b = 0;
  12308     uint32_t _itail_tgt = 0;
  12309     RECOMP_REGS_LOCALS
  12310     RECOMP_ENTER(0x361040E0u);
  12311 
  12312 L_361040E0:
  12313     PUSH32(esp, ebp); /* 0x361040E0: push ebp */
  12314     ebp = esp; /* 0x361040E1: mov ebp, esp */
  12315     eax = MEM32(ebp + 0x8); /* 0x361040E3: mov eax, dword ptr [ebp + 8] */
  12316     edx = MEM32(ebp + 0xC); /* 0x361040E6: mov edx, dword ptr [ebp + 0xc] */
  12317     MEM32(ecx + 0x140) = eax; /* 0x361040E9: mov dword ptr [ecx + 0x140], eax */
  12318     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  12319     SET_LO8(eax, 0); /* 0x361040EF: xor al, al */
  12320     _cf = 0;
  12321     _flag_k = FK_NARROW(FK_TEST, 24);
  12322     MEM8(ecx + 0x12C) = (uint8_t)(LO8(eax)); /* 0x361040F1: mov byte ptr [ecx + 0x12c], al */
  12323     MEM32(ecx + 0x144) = edx; /* 0x361040F7: mov dword ptr [ecx + 0x144], edx */
  12324     edx = MEM32(ebp + 0x10); /* 0x361040FD: mov edx, dword ptr [ebp + 0x10] */
  12325     MEM8(ecx + 0x12C) = (uint8_t)(LO8(eax)); /* 0x36104100: mov byte ptr [ecx + 0x12c], al */
  12326     MEM32(ecx + 0x148) = edx; /* 0x36104106: mov dword ptr [ecx + 0x148], edx */
  12327     edx = MEM32(ebp + 0x14); /* 0x3610410C: mov edx, dword ptr [ebp + 0x14] */
  12328     MEM8(ecx + 0x12C) = (uint8_t)(LO8(eax)); /* 0x3610410F: mov byte ptr [ecx + 0x12c], al */
  12329     MEM32(ecx + 0x14C) = edx; /* 0x36104115: mov dword ptr [ecx + 0x14c], edx */
  12330     MEM8(ecx + 0x12C) = (uint8_t)(LO8(eax)); /* 0x3610411B: mov byte ptr [ecx + 0x12c], al */
  12331     ebp = POP32_VAL(esp); /* 0x36104121: pop ebp */
  12332     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36104122: ret 0x10 */
  12333     RECOMP_REGS_OUT();
  12334 }
  12335 
  12336 void sub_36104130(void) {
  12337     int _fpu_cmp = 0;
  12338     uint32_t _cf = 0;
  12339     int _df = 1;
  12340     uint32_t _flag_k = FK_NONE;
  12341     uint32_t _flag_a = 0, _flag_b = 0;
  12342     uint32_t _itail_tgt = 0;
  12343     RECOMP_REGS_LOCALS
  12344     RECOMP_ENTER(0x36104130u);
  12345 
  12346 L_36104130:
  12347     PUSH32(esp, esi); /* 0x36104130: push esi */
  12348     esi = ecx; /* 0x36104131: mov esi, ecx */
  12349     eax = MEM32(esi + 0x4); /* 0x36104133: mov eax, dword ptr [esi + 4] */
  12350     PUSH32(esp, edi); /* 0x36104136: push edi */
  12351     PUSH32(esp, eax); /* 0x36104137: push eax */
  12352     RECOMP_ICALL(0x360F7B00u); /* 0x36104138: call 0x360f7b00 */ /* not lifted */
  12353     RECOMP_FLAGS_IN();
  12354     ecx = eax; /* 0x3610413D: mov ecx, eax */
  12355     RECOMP_ICALL(0x360FBFF0u); /* 0x3610413F: call 0x360fbff0 */ /* not lifted */
  12356     RECOMP_FLAGS_IN();
  12357     ecx = eax; /* 0x36104144: mov ecx, eax */
  12358     RECOMP_ICALL(0x361371A0u); /* 0x36104146: call 0x361371a0 */ /* not lifted */
  12359     RECOMP_FLAGS_IN();
  12360     edi = eax; /* 0x3610414B: mov edi, eax */
  12361     PUSH32(esp, 0); /* 0x3610414D: push 0 */
  12362     ecx = edi; /* 0x3610414F: mov ecx, edi */
  12363     RECOMP_ICALL(0x36136FE0u); /* 0x36104151: call 0x36136fe0 */ /* not lifted */
  12364     RECOMP_FLAGS_IN();
  12365     PUSH32(esp, 8); /* 0x36104156: push 8 */
  12366     ecx = edi; /* 0x36104158: mov ecx, edi */
  12367     MEM32(esi + 0x118) = eax; /* 0x3610415A: mov dword ptr [esi + 0x118], eax */
  12368     RECOMP_ICALL(0x36137010u); /* 0x36104160: call 0x36137010 */ /* not lifted */
  12369     RECOMP_FLAGS_IN();
  12370     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36104165: fstp dword ptr [esi + 0x10] */
  12371     PUSH32(esp, 9); /* 0x36104168: push 9 */
  12372     ecx = edi; /* 0x3610416A: mov ecx, edi */
  12373     RECOMP_ICALL(0x36136FE0u); /* 0x3610416C: call 0x36136fe0 */ /* not lifted */
  12374     RECOMP_FLAGS_IN();
  12375     PUSH32(esp, 0xAu); /* 0x36104171: push 0xa */
  12376     ecx = edi; /* 0x36104173: mov ecx, edi */
  12377     MEM32(esi + 0x11C) = eax; /* 0x36104175: mov dword ptr [esi + 0x11c], eax */
  12378     RECOMP_ICALL(0x36136FE0u); /* 0x3610417B: call 0x36136fe0 */ /* not lifted */
  12379     RECOMP_FLAGS_IN();
  12380     PUSH32(esp, 0xBu); /* 0x36104180: push 0xb */
  12381     ecx = edi; /* 0x36104182: mov ecx, edi */
  12382     MEM32(esi + 0x120) = eax; /* 0x36104184: mov dword ptr [esi + 0x120], eax */
  12383     RECOMP_ICALL(0x36137010u); /* 0x3610418A: call 0x36137010 */ /* not lifted */
  12384     RECOMP_FLAGS_IN();
  12385     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x124) = _v; } /* 0x3610418F: fstp dword ptr [esi + 0x124] */
  12386     PUSH32(esp, 0xCu); /* 0x36104195: push 0xc */
  12387     ecx = edi; /* 0x36104197: mov ecx, edi */
  12388     RECOMP_ICALL(0x36137010u); /* 0x36104199: call 0x36137010 */ /* not lifted */
  12389     RECOMP_FLAGS_IN();
  12390     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x128) = _v; } /* 0x3610419E: fstp dword ptr [esi + 0x128] */
  12391     PUSH32(esp, 0xDu); /* 0x361041A4: push 0xd */
  12392     PUSH32(esp, edi); /* 0x361041A6: push edi */
  12393     ecx = esi + 0x12C; /* 0x361041A7: lea ecx, [esi + 0x12c] */
  12394     RECOMP_ICALL(0x36137CF0u); /* 0x361041AD: call 0x36137cf0 */ /* not lifted */
  12395     RECOMP_FLAGS_IN();
  12396     PUSH32(esp, 0x15u); /* 0x361041B2: push 0x15 */
  12397     ecx = edi; /* 0x361041B4: mov ecx, edi */
  12398     RECOMP_ICALL(0x36137010u); /* 0x361041B6: call 0x36137010 */ /* not lifted */
  12399     RECOMP_FLAGS_IN();
  12400     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x361041BB: fstp dword ptr [esi + 0x10] */
  12401     PUSH32(esp, 0x16u); /* 0x361041BE: push 0x16 */
  12402     ecx = edi; /* 0x361041C0: mov ecx, edi */
  12403     RECOMP_ICALL(0x36137010u); /* 0x361041C2: call 0x36137010 */ /* not lifted */
  12404     RECOMP_FLAGS_IN();
  12405     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x164) = _v; } /* 0x361041C7: fstp dword ptr [esi + 0x164] */
  12406     PUSH32(esp, 0x17u); /* 0x361041CD: push 0x17 */
  12407     ecx = edi; /* 0x361041CF: mov ecx, edi */
  12408     RECOMP_ICALL(0x36137010u); /* 0x361041D1: call 0x36137010 */ /* not lifted */
  12409     RECOMP_FLAGS_IN();
  12410     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x168) = _v; } /* 0x361041D6: fstp dword ptr [esi + 0x168] */
  12411     PUSH32(esp, 0x18u); /* 0x361041DC: push 0x18 */
  12412     ecx = edi; /* 0x361041DE: mov ecx, edi */
  12413     RECOMP_ICALL(0x36137010u); /* 0x361041E0: call 0x36137010 */ /* not lifted */
  12414     RECOMP_FLAGS_IN();
  12415     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x16C) = _v; } /* 0x361041E5: fstp dword ptr [esi + 0x16c] */
  12416     edi = POP32_VAL(esp); /* 0x361041EB: pop edi */
  12417     esi = POP32_VAL(esp); /* 0x361041EC: pop esi */
  12418     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361041ED: ret  */
  12419     RECOMP_REGS_OUT();
  12420 }
  12421 
  12422 void sub_361041F0(void) {
  12423     int _fpu_cmp = 0;
  12424     uint32_t _cf = 0;
  12425     int _df = 1;
  12426     uint32_t _flag_k = FK_NONE;
  12427     uint32_t _flag_a = 0, _flag_b = 0;
  12428     uint32_t _itail_tgt = 0;
  12429     RECOMP_REGS_LOCALS
  12430     RECOMP_ENTER(0x361041F0u);
  12431 
  12432 L_361041F0:
  12433     PUSH32(esp, ebp); /* 0x361041F0: push ebp */
  12434     ebp = esp; /* 0x361041F1: mov ebp, esp */
  12435     PUSH32(esp, 0xFFFFFFFFu); /* 0x361041F3: push -1 */
  12436     PUSH32(esp, 0x36169FFBu); /* 0x361041F5: push 0x36169ffb */
  12437     eax = MEM32(FS_BASE + (0)); /* 0x361041FA: mov eax, dword ptr fs:[0] */
  12438     PUSH32(esp, eax); /* 0x36104200: push eax */
  12439     MEM32(FS_BASE + (0)) = esp; /* 0x36104201: mov dword ptr fs:[0], esp */
  12440     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
  12441     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12442     esp = esp - 0x20u; /* 0x36104208: sub esp, 0x20 */
  12443     _flag_k = FK_CMP;
  12444     PUSH32(esp, ebx); /* 0x3610420B: push ebx */
  12445     PUSH32(esp, esi); /* 0x3610420C: push esi */
  12446     PUSH32(esp, edi); /* 0x3610420D: push edi */
  12447     PUSH32(esp, 0x208u); /* 0x3610420E: push 0x208 */
  12448     esi = ecx; /* 0x36104213: mov esi, ecx */
  12449     RECOMP_ICALL(0x3615FD6Au); /* 0x36104215: call 0x3615fd6a */ /* not lifted */
  12450     RECOMP_FLAGS_IN();
  12451     ebx = eax; /* 0x3610421A: mov ebx, eax */
  12452     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12453     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12454     esp = esp + 4; /* 0x3610421C: add esp, 4 */
  12455     _flag_k = FK_ADD;
  12456     MEM32(ebp + (-0x10)) = ebx; /* 0x3610421F: mov dword ptr [ebp - 0x10], ebx */
  12457     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12458     edi = 0; /* 0x36104222: xor edi, edi */
  12459     _cf = 0;
  12460     _flag_k = FK_TEST;
  12461     /* cmp ebx, edi */ /* 0x36104224: cmp ebx, edi */
  12462     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
  12463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12464     _flag_k = FK_CMP;
  12465     MEM32(ebp + (-0x4)) = edi; /* 0x36104226: mov dword ptr [ebp - 4], edi */
  12466     if (CMP_EQ(_flag_a, _flag_b)) goto L_36104281; /* 0x36104229: je 0x36104281 */
  12467 L_3610422B:
  12468     eax = MEM32(esi + 0x11C); /* 0x3610422B: mov eax, dword ptr [esi + 0x11c] */
  12469     PUSH32(esp, edi); /* 0x36104231: push edi */
  12470     PUSH32(esp, edi); /* 0x36104232: push edi */
  12471     PUSH32(esp, eax); /* 0x36104233: push eax */
  12472     RECOMP_ICALL(0x360F7B00u); /* 0x36104234: call 0x360f7b00 */ /* not lifted */
  12473     RECOMP_FLAGS_IN();
  12474     ecx = eax; /* 0x36104239: mov ecx, eax */
  12475     RECOMP_ICALL(0x360FBE40u); /* 0x3610423B: call 0x360fbe40 */ /* not lifted */
  12476     RECOMP_FLAGS_IN();
  12477     PUSH32(esp, eax); /* 0x36104240: push eax */
  12478     ecx = ebx; /* 0x36104241: mov ecx, ebx */
  12479     RECOMP_ICALL(MEM32(0x3616F678)); /* 0x36104243: call dword ptr [0x3616f678] */
  12480     RECOMP_FLAGS_IN();
  12481     MEM32(ebx) = 0x36175AA0u; /* 0x36104249: mov dword ptr [ebx], 0x36175aa0 */
  12482     MEM32(ebx + 0x8) = 0x36175A90u; /* 0x3610424F: mov dword ptr [ebx + 8], 0x36175a90 */
  12483     MEM32(ebx + 0x20) = 0x36175A80u; /* 0x36104256: mov dword ptr [ebx + 0x20], 0x36175a80 */
  12484     MEM32(ebx + 0x38) = 0x36175A70u; /* 0x3610425D: mov dword ptr [ebx + 0x38], 0x36175a70 */
  12485     MEM32(ebx + 0x50) = 0x36175A60u; /* 0x36104264: mov dword ptr [ebx + 0x50], 0x36175a60 */
  12486     MEM32(ebx + 0x138) = 0x36175A50u; /* 0x3610426B: mov dword ptr [ebx + 0x138], 0x36175a50 */
  12487     MEM32(ebx + 0x150) = 0x36175A40u; /* 0x36104275: mov dword ptr [ebx + 0x150], 0x36175a40 */
  12488     goto L_36104283; /* 0x3610427F: jmp 0x36104283 */
  12489 L_36104281:
  12490     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12491     ebx = 0; /* 0x36104281: xor ebx, ebx */
  12492     _cf = 0;
  12493     _flag_k = FK_TEST;
  12494 L_36104283:
  12495     ecx = MEM32(esi + 0x11C); /* 0x36104283: mov ecx, dword ptr [esi + 0x11c] */
  12496     PUSH32(esp, ecx); /* 0x36104289: push ecx */
  12497     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610428A: mov dword ptr [ebp - 4], 0xffffffff */
  12498     MEM32(esi + 0x28) = ebx; /* 0x36104291: mov dword ptr [esi + 0x28], ebx */
  12499     RECOMP_ICALL(0x360F7B00u); /* 0x36104294: call 0x360f7b00 */ /* not lifted */
  12500     RECOMP_FLAGS_IN();
  12501     ecx = eax; /* 0x36104299: mov ecx, eax */
  12502     RECOMP_ICALL(0x360FBE60u); /* 0x3610429B: call 0x360fbe60 */ /* not lifted */
  12503     RECOMP_FLAGS_IN();
  12504     edx = MEM32(esi + 0x28); /* 0x361042A0: mov edx, dword ptr [esi + 0x28] */
  12505     MEM32(edx + 0x1E0) = eax; /* 0x361042A3: mov dword ptr [edx + 0x1e0], eax */
  12506     eax = MEM32(esi + 0x11C); /* 0x361042A9: mov eax, dword ptr [esi + 0x11c] */
  12507     PUSH32(esp, eax); /* 0x361042AF: push eax */
  12508     RECOMP_ICALL(0x360F7B00u); /* 0x361042B0: call 0x360f7b00 */ /* not lifted */
  12509     RECOMP_FLAGS_IN();
  12510     ecx = eax; /* 0x361042B5: mov ecx, eax */
  12511     RECOMP_ICALL(0x360FBEA0u); /* 0x361042B7: call 0x360fbea0 */ /* not lifted */
  12512     RECOMP_FLAGS_IN();
  12513     ecx = MEM32(esi + 0x28); /* 0x361042BC: mov ecx, dword ptr [esi + 0x28] */
  12514     edx = ebp + (-0x1C); /* 0x361042BF: lea edx, [ebp - 0x1c] */
  12515     MEM32(ecx + 0x1E4) = eax; /* 0x361042C2: mov dword ptr [ecx + 0x1e4], eax */
  12516     ecx = MEM32(esi + 0x20); /* 0x361042C8: mov ecx, dword ptr [esi + 0x20] */
  12517     PUSH32(esp, edx); /* 0x361042CB: push edx */
  12518     RECOMP_ICALL(0x36133E80u); /* 0x361042CC: call 0x36133e80 */ /* not lifted */
  12519     RECOMP_FLAGS_IN();
  12520     ecx = MEM32(esi + 0x28); /* 0x361042D1: mov ecx, dword ptr [esi + 0x28] */
  12521     ebx = MEM32(eax); /* 0x361042D4: mov ebx, dword ptr [eax] */
  12522     edx = ecx + 0x78; /* 0x361042D6: lea edx, [ecx + 0x78] */
  12523     MEM32(edx) = ebx; /* 0x361042D9: mov dword ptr [edx], ebx */
  12524     ebx = MEM32(eax + 0x4); /* 0x361042DB: mov ebx, dword ptr [eax + 4] */
  12525     MEM32(edx + 0x4) = ebx; /* 0x361042DE: mov dword ptr [edx + 4], ebx */
  12526     eax = MEM32(eax + 0x8); /* 0x361042E1: mov eax, dword ptr [eax + 8] */
  12527     PUSH32(esp, 1); /* 0x361042E4: push 1 */
  12528     MEM32(edx + 0x8) = eax; /* 0x361042E6: mov dword ptr [edx + 8], eax */
  12529     edx = MEM32(ecx); /* 0x361042E9: mov edx, dword ptr [ecx] */
  12530     PUSH32(esp, 1); /* 0x361042EB: push 1 */
  12531     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x361042ED: call dword ptr [edx + 0x2c] */
  12532     RECOMP_FLAGS_IN();
  12533     ecx = MEM32(esi + 0x28); /* 0x361042F0: mov ecx, dword ptr [esi + 0x28] */
  12534     eax = ecx + 0x84; /* 0x361042F3: lea eax, [ecx + 0x84] */
  12535     MEM32(ebp + (-0x20)) = 0; /* 0x361042F9: mov dword ptr [ebp - 0x20], 0 */
  12536     edx = MEM32(ebp + (-0x20)); /* 0x36104300: mov edx, dword ptr [ebp - 0x20] */
  12537     MEM32(eax) = edx; /* 0x36104303: mov dword ptr [eax], edx */
  12538     MEM32(ebp + (-0x1C)) = 0; /* 0x36104305: mov dword ptr [ebp - 0x1c], 0 */
  12539     edx = MEM32(ebp + (-0x1C)); /* 0x3610430C: mov edx, dword ptr [ebp - 0x1c] */
  12540     MEM32(eax + 0x4) = edx; /* 0x3610430F: mov dword ptr [eax + 4], edx */
  12541     MEM32(ebp + (-0x18)) = 0; /* 0x36104312: mov dword ptr [ebp - 0x18], 0 */
  12542     edx = MEM32(ebp + (-0x18)); /* 0x36104319: mov edx, dword ptr [ebp - 0x18] */
  12543     MEM32(eax + 0x8) = edx; /* 0x3610431C: mov dword ptr [eax + 8], edx */
  12544     MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x3610431F: mov dword ptr [ebp - 0x14], 0x3f800000 */
  12545     edx = MEM32(ebp + (-0x14)); /* 0x36104326: mov edx, dword ptr [ebp - 0x14] */
  12546     PUSH32(esp, 1); /* 0x36104329: push 1 */
  12547     MEM32(eax + 0xC) = edx; /* 0x3610432B: mov dword ptr [eax + 0xc], edx */
  12548     eax = MEM32(ecx); /* 0x3610432E: mov eax, dword ptr [ecx] */
  12549     PUSH32(esp, 2); /* 0x36104330: push 2 */
  12550     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36104332: call dword ptr [eax + 0x2c] */
  12551     RECOMP_FLAGS_IN();
  12552     ecx = MEM32(esi + 0x28); /* 0x36104335: mov ecx, dword ptr [esi + 0x28] */
  12553     RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36104338: call dword ptr [0x3616f5f8] */
  12554     RECOMP_FLAGS_IN();
  12555     ecx = MEM32(esi + 0x2C); /* 0x3610433E: mov ecx, dword ptr [esi + 0x2c] */
  12556     PUSH32(esp, 8); /* 0x36104341: push 8 */
  12557     PUSH32(esp, ecx); /* 0x36104343: push ecx */
  12558     ecx = MEM32(esi + 0x28); /* 0x36104344: mov ecx, dword ptr [esi + 0x28] */
  12559     RECOMP_ICALL(MEM32(0x3616F674)); /* 0x36104347: call dword ptr [0x3616f674] */
  12560     RECOMP_FLAGS_IN();
  12561     MEM8(esi + 0x114) = (uint8_t)(0); /* 0x3610434D: mov byte ptr [esi + 0x114], 0 */
  12562     MEM32(esi + 0x110) = edi; /* 0x36104354: mov dword ptr [esi + 0x110], edi */
  12563     ebx = esi + 0xF0; /* 0x3610435A: lea ebx, [esi + 0xf0] */
  12564 L_36104360:
  12565     ecx = MEM32(esi + 0x20); /* 0x36104360: mov ecx, dword ptr [esi + 0x20] */
  12566     edx = ebp + (-0x2C); /* 0x36104363: lea edx, [ebp - 0x2c] */
  12567     PUSH32(esp, edx); /* 0x36104366: push edx */
  12568     RECOMP_ICALL(0x36133FC0u); /* 0x36104367: call 0x36133fc0 */ /* not lifted */
  12569     RECOMP_FLAGS_IN();
  12570     edx = MEM32(esi + 0x2C); /* 0x3610436C: mov edx, dword ptr [esi + 0x2c] */
  12571     ecx = edi; /* 0x3610436F: mov ecx, edi */
  12572     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  12573     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12574     ecx = ecx + edx; /* 0x36104371: add ecx, edx */
  12575     _flag_k = FK_ADD;
  12576     edx = MEM32(eax); /* 0x36104373: mov edx, dword ptr [eax] */
  12577     MEM32(ecx) = edx; /* 0x36104375: mov dword ptr [ecx], edx */
  12578     edx = MEM32(eax + 0x4); /* 0x36104377: mov edx, dword ptr [eax + 4] */
  12579     MEM32(ecx + 0x4) = edx; /* 0x3610437A: mov dword ptr [ecx + 4], edx */
  12580     eax = MEM32(eax + 0x8); /* 0x3610437D: mov eax, dword ptr [eax + 8] */
  12581     MEM32(ecx + 0x8) = eax; /* 0x36104380: mov dword ptr [ecx + 8], eax */
  12582     ecx = MEM32(esi + 0x2C); /* 0x36104383: mov ecx, dword ptr [esi + 0x2c] */
  12583     edx = MEM32(esi + 0x128); /* 0x36104386: mov edx, dword ptr [esi + 0x128] */
  12584     MEM32(edi + ecx + 0xC) = edx; /* 0x3610438C: mov dword ptr [edi + ecx + 0xc], edx */
  12585     ecx = MEM32(esi + 0x128); /* 0x36104390: mov ecx, dword ptr [esi + 0x128] */
  12586     eax = MEM32(esi + 0x2C); /* 0x36104396: mov eax, dword ptr [esi + 0x2c] */
  12587     MEM32(edi + eax + 0x10) = ecx; /* 0x36104399: mov dword ptr [edi + eax + 0x10], ecx */
  12588     PUSH32(esp, 0); /* 0x3610439D: push 0 */
  12589     ecx = esi + 0x12C; /* 0x3610439F: lea ecx, [esi + 0x12c] */
  12590     RECOMP_ICALL(0x36137D80u); /* 0x361043A5: call 0x36137d80 */ /* not lifted */
  12591     RECOMP_FLAGS_IN();
  12592     edx = MEM32(esi + 0x2C); /* 0x361043AA: mov edx, dword ptr [esi + 0x2c] */
  12593     MEM32(edi + edx + 0x14) = eax; /* 0x361043AD: mov dword ptr [edi + edx + 0x14], eax */
  12594     eax = MEM32(esi + 0x2C); /* 0x361043B1: mov eax, dword ptr [esi + 0x2c] */
  12595     MEM32(edi + eax + 0x18) = 0; /* 0x361043B4: mov dword ptr [edi + eax + 0x18], 0 */
  12596     ecx = MEM32(esi + 0x2C); /* 0x361043BC: mov ecx, dword ptr [esi + 0x2c] */
  12597     MEM8(edi + ecx + 0x1C) = (uint8_t)(0); /* 0x361043BF: mov byte ptr [edi + ecx + 0x1c], 0 */
  12598     MEM32(ebx) = 0; /* 0x361043C4: mov dword ptr [ebx], 0 */
  12599     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u);
  12600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12601     edi = edi + 0x20u; /* 0x361043CA: add edi, 0x20 */
  12602     _flag_k = FK_ADD;
  12603     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
  12604     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12605     ebx = ebx + 4; /* 0x361043CD: add ebx, 4 */
  12606     _flag_k = FK_ADD;
  12607     /* cmp edi, 0x100u */ /* 0x361043D0: cmp edi, 0x100 */
  12608     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x100u);
  12609     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12610     _flag_k = FK_CMP;
  12611     RECOMP_BACKEDGE();
  12612     if (CMP_L(_flag_a, _flag_b)) goto L_36104360; /* 0x361043D6: jl 0x36104360 */
  12613 L_361043D8:
  12614     ecx = MEM32(ebp + (-0xC)); /* 0x361043D8: mov ecx, dword ptr [ebp - 0xc] */
  12615     edi = POP32_VAL(esp); /* 0x361043DB: pop edi */
  12616     esi = POP32_VAL(esp); /* 0x361043DC: pop esi */
  12617     ebx = POP32_VAL(esp); /* 0x361043DD: pop ebx */
  12618     MEM32(FS_BASE + (0)) = ecx; /* 0x361043DE: mov dword ptr fs:[0], ecx */
  12619     esp = ebp; /* 0x361043E5: mov esp, ebp */
  12620     ebp = POP32_VAL(esp); /* 0x361043E7: pop ebp */
  12621     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361043E8: ret  */
  12622     RECOMP_REGS_OUT();
  12623 }
  12624 
  12625 void sub_36104319(void) {
  12626     int _fpu_cmp = 0;
  12627     uint32_t _cf = 0;
  12628     int _df = 1;
  12629     uint32_t _flag_k = FK_NONE;
  12630     uint32_t _flag_a = 0, _flag_b = 0;
  12631     uint32_t _itail_tgt = 0;
  12632     RECOMP_REGS_LOCALS
  12633     RECOMP_ENTER(0x36104319u);
  12634 
  12635 L_36104319:
  12636     edx = MEM32(ebp + (-0x18)); /* 0x36104319: mov edx, dword ptr [ebp - 0x18] */
  12637     MEM32(eax + 0x8) = edx; /* 0x3610431C: mov dword ptr [eax + 8], edx */
  12638     MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x3610431F: mov dword ptr [ebp - 0x14], 0x3f800000 */
  12639     edx = MEM32(ebp + (-0x14)); /* 0x36104326: mov edx, dword ptr [ebp - 0x14] */
  12640     PUSH32(esp, 1); /* 0x36104329: push 1 */
  12641     MEM32(eax + 0xC) = edx; /* 0x3610432B: mov dword ptr [eax + 0xc], edx */
  12642     eax = MEM32(ecx); /* 0x3610432E: mov eax, dword ptr [ecx] */
  12643     PUSH32(esp, 2); /* 0x36104330: push 2 */
  12644     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36104332: call dword ptr [eax + 0x2c] */
  12645     RECOMP_FLAGS_IN();
  12646     ecx = MEM32(esi + 0x28); /* 0x36104335: mov ecx, dword ptr [esi + 0x28] */
  12647     RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36104338: call dword ptr [0x3616f5f8] */
  12648     RECOMP_FLAGS_IN();
  12649     ecx = MEM32(esi + 0x2C); /* 0x3610433E: mov ecx, dword ptr [esi + 0x2c] */
  12650     PUSH32(esp, 8); /* 0x36104341: push 8 */
  12651     PUSH32(esp, ecx); /* 0x36104343: push ecx */
  12652     ecx = MEM32(esi + 0x28); /* 0x36104344: mov ecx, dword ptr [esi + 0x28] */
  12653     RECOMP_ICALL(MEM32(0x3616F674)); /* 0x36104347: call dword ptr [0x3616f674] */
  12654     RECOMP_FLAGS_IN();
  12655     MEM8(esi + 0x114) = (uint8_t)(0); /* 0x3610434D: mov byte ptr [esi + 0x114], 0 */
  12656     MEM32(esi + 0x110) = edi; /* 0x36104354: mov dword ptr [esi + 0x110], edi */
  12657     ebx = esi + 0xF0; /* 0x3610435A: lea ebx, [esi + 0xf0] */
  12658 L_36104360:
  12659     ecx = MEM32(esi + 0x20); /* 0x36104360: mov ecx, dword ptr [esi + 0x20] */
  12660     edx = ebp + (-0x2C); /* 0x36104363: lea edx, [ebp - 0x2c] */
  12661     PUSH32(esp, edx); /* 0x36104366: push edx */
  12662     RECOMP_ICALL(0x36133FC0u); /* 0x36104367: call 0x36133fc0 */ /* not lifted */
  12663     RECOMP_FLAGS_IN();
  12664     edx = MEM32(esi + 0x2C); /* 0x3610436C: mov edx, dword ptr [esi + 0x2c] */
  12665     ecx = edi; /* 0x3610436F: mov ecx, edi */
  12666     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  12667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12668     ecx = ecx + edx; /* 0x36104371: add ecx, edx */
  12669     _flag_k = FK_ADD;
  12670     edx = MEM32(eax); /* 0x36104373: mov edx, dword ptr [eax] */
  12671     MEM32(ecx) = edx; /* 0x36104375: mov dword ptr [ecx], edx */
  12672     edx = MEM32(eax + 0x4); /* 0x36104377: mov edx, dword ptr [eax + 4] */
  12673     MEM32(ecx + 0x4) = edx; /* 0x3610437A: mov dword ptr [ecx + 4], edx */
  12674     eax = MEM32(eax + 0x8); /* 0x3610437D: mov eax, dword ptr [eax + 8] */
  12675     MEM32(ecx + 0x8) = eax; /* 0x36104380: mov dword ptr [ecx + 8], eax */
  12676     ecx = MEM32(esi + 0x2C); /* 0x36104383: mov ecx, dword ptr [esi + 0x2c] */
  12677     edx = MEM32(esi + 0x128); /* 0x36104386: mov edx, dword ptr [esi + 0x128] */
  12678     MEM32(edi + ecx + 0xC) = edx; /* 0x3610438C: mov dword ptr [edi + ecx + 0xc], edx */
  12679     ecx = MEM32(esi + 0x128); /* 0x36104390: mov ecx, dword ptr [esi + 0x128] */
  12680     eax = MEM32(esi + 0x2C); /* 0x36104396: mov eax, dword ptr [esi + 0x2c] */
  12681     MEM32(edi + eax + 0x10) = ecx; /* 0x36104399: mov dword ptr [edi + eax + 0x10], ecx */
  12682     PUSH32(esp, 0); /* 0x3610439D: push 0 */
  12683     ecx = esi + 0x12C; /* 0x3610439F: lea ecx, [esi + 0x12c] */
  12684     RECOMP_ICALL(0x36137D80u); /* 0x361043A5: call 0x36137d80 */ /* not lifted */
  12685     RECOMP_FLAGS_IN();
  12686     edx = MEM32(esi + 0x2C); /* 0x361043AA: mov edx, dword ptr [esi + 0x2c] */
  12687     MEM32(edi + edx + 0x14) = eax; /* 0x361043AD: mov dword ptr [edi + edx + 0x14], eax */
  12688     eax = MEM32(esi + 0x2C); /* 0x361043B1: mov eax, dword ptr [esi + 0x2c] */
  12689     MEM32(edi + eax + 0x18) = 0; /* 0x361043B4: mov dword ptr [edi + eax + 0x18], 0 */
  12690     ecx = MEM32(esi + 0x2C); /* 0x361043BC: mov ecx, dword ptr [esi + 0x2c] */
  12691     MEM8(edi + ecx + 0x1C) = (uint8_t)(0); /* 0x361043BF: mov byte ptr [edi + ecx + 0x1c], 0 */
  12692     MEM32(ebx) = 0; /* 0x361043C4: mov dword ptr [ebx], 0 */
  12693     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u);
  12694     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12695     edi = edi + 0x20u; /* 0x361043CA: add edi, 0x20 */
  12696     _flag_k = FK_ADD;
  12697     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
  12698     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12699     ebx = ebx + 4; /* 0x361043CD: add ebx, 4 */
  12700     _flag_k = FK_ADD;
  12701     /* cmp edi, 0x100u */ /* 0x361043D0: cmp edi, 0x100 */
  12702     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x100u);
  12703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12704     _flag_k = FK_CMP;
  12705     RECOMP_BACKEDGE();
  12706     if (CMP_L(_flag_a, _flag_b)) goto L_36104360; /* 0x361043D6: jl 0x36104360 */
  12707 L_361043D8:
  12708     ecx = MEM32(ebp + (-0xC)); /* 0x361043D8: mov ecx, dword ptr [ebp - 0xc] */
  12709     edi = POP32_VAL(esp); /* 0x361043DB: pop edi */
  12710     esi = POP32_VAL(esp); /* 0x361043DC: pop esi */
  12711     ebx = POP32_VAL(esp); /* 0x361043DD: pop ebx */
  12712     MEM32(FS_BASE + (0)) = ecx; /* 0x361043DE: mov dword ptr fs:[0], ecx */
  12713     esp = ebp; /* 0x361043E5: mov esp, ebp */
  12714     ebp = POP32_VAL(esp); /* 0x361043E7: pop ebp */
  12715     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361043E8: ret  */
  12716     RECOMP_REGS_OUT();
  12717 }
  12718 
  12719 void sub_361043F0(void) {
  12720     int _fpu_cmp = 0;
  12721     uint32_t _cf = 0;
  12722     int _df = 1;
  12723     uint32_t _flag_k = FK_NONE;
  12724     uint32_t _flag_a = 0, _flag_b = 0;
  12725     uint32_t _itail_tgt = 0;
  12726     RECOMP_REGS_LOCALS
  12727     RECOMP_ENTER(0x361043F0u);
  12728 
  12729 L_361043F0:
  12730     PUSH32(esp, ebp); /* 0x361043F0: push ebp */
  12731     ebp = esp; /* 0x361043F1: mov ebp, esp */
  12732     PUSH32(esp, esi); /* 0x361043F3: push esi */
  12733     esi = ecx; /* 0x361043F4: mov esi, ecx */
  12734     RECOMP_ICALL(MEM32(0x3616F67C)); /* 0x361043F6: call dword ptr [0x3616f67c] */
  12735     RECOMP_FLAGS_IN();
  12736     /* test MEM8(ebp + 0x8), 1 */ /* 0x361043FC: test byte ptr [ebp + 8], 1 */
  12737     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  12738     _cf = 0;
  12739     _flag_k = FK_NARROW(FK_TEST, 24);
  12740     if (TEST_Z(_flag_a, _flag_b)) goto L_3610440B; /* 0x36104400: je 0x3610440b */
  12741 L_36104402:
  12742     PUSH32(esp, esi); /* 0x36104402: push esi */
  12743     RECOMP_ICALL(0x3615FCC4u); /* 0x36104403: call 0x3615fcc4 */ /* not lifted */
  12744     RECOMP_FLAGS_IN();
  12745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12747     esp = esp + 4; /* 0x36104408: add esp, 4 */
  12748     _flag_k = FK_ADD;
  12749 L_3610440B:
  12750     eax = esi; /* 0x3610440B: mov eax, esi */
  12751     esi = POP32_VAL(esp); /* 0x3610440D: pop esi */
  12752     ebp = POP32_VAL(esp); /* 0x3610440E: pop ebp */
  12753     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610440F: ret 4 */
  12754     RECOMP_REGS_OUT();
  12755 }
  12756 
  12757 void sub_36104420(void) {
  12758     int _fpu_cmp = 0;
  12759     uint32_t _cf = 0;
  12760     int _df = 1;
  12761     uint32_t _flag_k = FK_NONE;
  12762     uint32_t _flag_a = 0, _flag_b = 0;
  12763     uint32_t _itail_tgt = 0;
  12764     RECOMP_REGS_LOCALS
  12765     RECOMP_ENTER(0x36104420u);
  12766 
  12767     goto L_36104420;
  12768 L_361043F0:
  12769     PUSH32(esp, ebp); /* 0x361043F0: push ebp */
  12770     ebp = esp; /* 0x361043F1: mov ebp, esp */
  12771     PUSH32(esp, esi); /* 0x361043F3: push esi */
  12772     esi = ecx; /* 0x361043F4: mov esi, ecx */
  12773     RECOMP_ICALL(MEM32(0x3616F67C)); /* 0x361043F6: call dword ptr [0x3616f67c] */
  12774     RECOMP_FLAGS_IN();
  12775     /* test MEM8(ebp + 0x8), 1 */ /* 0x361043FC: test byte ptr [ebp + 8], 1 */
  12776     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  12777     _cf = 0;
  12778     _flag_k = FK_NARROW(FK_TEST, 24);
  12779     if (TEST_Z(_flag_a, _flag_b)) goto L_3610440B; /* 0x36104400: je 0x3610440b */
  12780 L_36104402:
  12781     PUSH32(esp, esi); /* 0x36104402: push esi */
  12782     RECOMP_ICALL(0x3615FCC4u); /* 0x36104403: call 0x3615fcc4 */ /* not lifted */
  12783     RECOMP_FLAGS_IN();
  12784     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12785     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12786     esp = esp + 4; /* 0x36104408: add esp, 4 */
  12787     _flag_k = FK_ADD;
  12788 L_3610440B:
  12789     eax = esi; /* 0x3610440B: mov eax, esi */
  12790     esi = POP32_VAL(esp); /* 0x3610440D: pop esi */
  12791     ebp = POP32_VAL(esp); /* 0x3610440E: pop ebp */
  12792     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610440F: ret 4 */
  12793 L_36104420:
  12794     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
  12795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12796     ecx = ecx - 8; /* 0x36104420: sub ecx, 8 */
  12797     _flag_k = FK_CMP;
  12798     RECOMP_BACKEDGE();
  12799     goto L_361043F0; /* 0x36104423: jmp 0x361043f0 */
  12800     { RECOMP_REGS_OUT(); return; } /* end of function */
  12801     RECOMP_REGS_OUT();
  12802 }
  12803 
  12804 void sub_36104430(void) {
  12805     int _fpu_cmp = 0;
  12806     uint32_t _cf = 0;
  12807     int _df = 1;
  12808     uint32_t _flag_k = FK_NONE;
  12809     uint32_t _flag_a = 0, _flag_b = 0;
  12810     uint32_t _itail_tgt = 0;
  12811     RECOMP_REGS_LOCALS
  12812     RECOMP_ENTER(0x36104430u);
  12813 
  12814     goto L_36104430;
  12815 L_361043F0:
  12816     PUSH32(esp, ebp); /* 0x361043F0: push ebp */
  12817     ebp = esp; /* 0x361043F1: mov ebp, esp */
  12818     PUSH32(esp, esi); /* 0x361043F3: push esi */
  12819     esi = ecx; /* 0x361043F4: mov esi, ecx */
  12820     RECOMP_ICALL(MEM32(0x3616F67C)); /* 0x361043F6: call dword ptr [0x3616f67c] */
  12821     RECOMP_FLAGS_IN();
  12822     /* test MEM8(ebp + 0x8), 1 */ /* 0x361043FC: test byte ptr [ebp + 8], 1 */
  12823     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  12824     _cf = 0;
  12825     _flag_k = FK_NARROW(FK_TEST, 24);
  12826     if (TEST_Z(_flag_a, _flag_b)) goto L_3610440B; /* 0x36104400: je 0x3610440b */
  12827 L_36104402:
  12828     PUSH32(esp, esi); /* 0x36104402: push esi */
  12829     RECOMP_ICALL(0x3615FCC4u); /* 0x36104403: call 0x3615fcc4 */ /* not lifted */
  12830     RECOMP_FLAGS_IN();
  12831     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12832     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12833     esp = esp + 4; /* 0x36104408: add esp, 4 */
  12834     _flag_k = FK_ADD;
  12835 L_3610440B:
  12836     eax = esi; /* 0x3610440B: mov eax, esi */
  12837     esi = POP32_VAL(esp); /* 0x3610440D: pop esi */
  12838     ebp = POP32_VAL(esp); /* 0x3610440E: pop ebp */
  12839     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610440F: ret 4 */
  12840 L_36104430:
  12841     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
  12842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12843     ecx = ecx - 0x20u; /* 0x36104430: sub ecx, 0x20 */
  12844     _flag_k = FK_CMP;
  12845     RECOMP_BACKEDGE();
  12846     goto L_361043F0; /* 0x36104433: jmp 0x361043f0 */
  12847     { RECOMP_REGS_OUT(); return; } /* end of function */
  12848     RECOMP_REGS_OUT();
  12849 }
  12850 
  12851 void sub_36104440(void) {
  12852     int _fpu_cmp = 0;
  12853     uint32_t _cf = 0;
  12854     int _df = 1;
  12855     uint32_t _flag_k = FK_NONE;
  12856     uint32_t _flag_a = 0, _flag_b = 0;
  12857     uint32_t _itail_tgt = 0;
  12858     RECOMP_REGS_LOCALS
  12859     RECOMP_ENTER(0x36104440u);
  12860 
  12861     goto L_36104440;
  12862 L_361043F0:
  12863     PUSH32(esp, ebp); /* 0x361043F0: push ebp */
  12864     ebp = esp; /* 0x361043F1: mov ebp, esp */
  12865     PUSH32(esp, esi); /* 0x361043F3: push esi */
  12866     esi = ecx; /* 0x361043F4: mov esi, ecx */
  12867     RECOMP_ICALL(MEM32(0x3616F67C)); /* 0x361043F6: call dword ptr [0x3616f67c] */
  12868     RECOMP_FLAGS_IN();
  12869     /* test MEM8(ebp + 0x8), 1 */ /* 0x361043FC: test byte ptr [ebp + 8], 1 */
  12870     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  12871     _cf = 0;
  12872     _flag_k = FK_NARROW(FK_TEST, 24);
  12873     if (TEST_Z(_flag_a, _flag_b)) goto L_3610440B; /* 0x36104400: je 0x3610440b */
  12874 L_36104402:
  12875     PUSH32(esp, esi); /* 0x36104402: push esi */
  12876     RECOMP_ICALL(0x3615FCC4u); /* 0x36104403: call 0x3615fcc4 */ /* not lifted */
  12877     RECOMP_FLAGS_IN();
  12878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12880     esp = esp + 4; /* 0x36104408: add esp, 4 */
  12881     _flag_k = FK_ADD;
  12882 L_3610440B:
  12883     eax = esi; /* 0x3610440B: mov eax, esi */
  12884     esi = POP32_VAL(esp); /* 0x3610440D: pop esi */
  12885     ebp = POP32_VAL(esp); /* 0x3610440E: pop ebp */
  12886     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610440F: ret 4 */
  12887 L_36104440:
  12888     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u);
  12889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12890     ecx = ecx - 0x38u; /* 0x36104440: sub ecx, 0x38 */
  12891     _flag_k = FK_CMP;
  12892     RECOMP_BACKEDGE();
  12893     goto L_361043F0; /* 0x36104443: jmp 0x361043f0 */
  12894     { RECOMP_REGS_OUT(); return; } /* end of function */
  12895     RECOMP_REGS_OUT();
  12896 }
  12897 
  12898 void sub_36104450(void) {
  12899     int _fpu_cmp = 0;
  12900     uint32_t _cf = 0;
  12901     int _df = 1;
  12902     uint32_t _flag_k = FK_NONE;
  12903     uint32_t _flag_a = 0, _flag_b = 0;
  12904     uint32_t _itail_tgt = 0;
  12905     RECOMP_REGS_LOCALS
  12906     RECOMP_ENTER(0x36104450u);
  12907 
  12908     goto L_36104450;
  12909 L_361043F0:
  12910     PUSH32(esp, ebp); /* 0x361043F0: push ebp */
  12911     ebp = esp; /* 0x361043F1: mov ebp, esp */
  12912     PUSH32(esp, esi); /* 0x361043F3: push esi */
  12913     esi = ecx; /* 0x361043F4: mov esi, ecx */
  12914     RECOMP_ICALL(MEM32(0x3616F67C)); /* 0x361043F6: call dword ptr [0x3616f67c] */
  12915     RECOMP_FLAGS_IN();
  12916     /* test MEM8(ebp + 0x8), 1 */ /* 0x361043FC: test byte ptr [ebp + 8], 1 */
  12917     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  12918     _cf = 0;
  12919     _flag_k = FK_NARROW(FK_TEST, 24);
  12920     if (TEST_Z(_flag_a, _flag_b)) goto L_3610440B; /* 0x36104400: je 0x3610440b */
  12921 L_36104402:
  12922     PUSH32(esp, esi); /* 0x36104402: push esi */
  12923     RECOMP_ICALL(0x3615FCC4u); /* 0x36104403: call 0x3615fcc4 */ /* not lifted */
  12924     RECOMP_FLAGS_IN();
  12925     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12926     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12927     esp = esp + 4; /* 0x36104408: add esp, 4 */
  12928     _flag_k = FK_ADD;
  12929 L_3610440B:
  12930     eax = esi; /* 0x3610440B: mov eax, esi */
  12931     esi = POP32_VAL(esp); /* 0x3610440D: pop esi */
  12932     ebp = POP32_VAL(esp); /* 0x3610440E: pop ebp */
  12933     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610440F: ret 4 */
  12934 L_36104450:
  12935     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u);
  12936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12937     ecx = ecx - 0x50u; /* 0x36104450: sub ecx, 0x50 */
  12938     _flag_k = FK_CMP;
  12939     RECOMP_BACKEDGE();
  12940     goto L_361043F0; /* 0x36104453: jmp 0x361043f0 */
  12941     { RECOMP_REGS_OUT(); return; } /* end of function */
  12942     RECOMP_REGS_OUT();
  12943 }
  12944 
  12945 void sub_36104460(void) {
  12946     int _fpu_cmp = 0;
  12947     uint32_t _cf = 0;
  12948     int _df = 1;
  12949     uint32_t _flag_k = FK_NONE;
  12950     uint32_t _flag_a = 0, _flag_b = 0;
  12951     uint32_t _itail_tgt = 0;
  12952     RECOMP_REGS_LOCALS
  12953     RECOMP_ENTER(0x36104460u);
  12954 
  12955     goto L_36104460;
  12956 L_361043F0:
  12957     PUSH32(esp, ebp); /* 0x361043F0: push ebp */
  12958     ebp = esp; /* 0x361043F1: mov ebp, esp */
  12959     PUSH32(esp, esi); /* 0x361043F3: push esi */
  12960     esi = ecx; /* 0x361043F4: mov esi, ecx */
  12961     RECOMP_ICALL(MEM32(0x3616F67C)); /* 0x361043F6: call dword ptr [0x3616f67c] */
  12962     RECOMP_FLAGS_IN();
  12963     /* test MEM8(ebp + 0x8), 1 */ /* 0x361043FC: test byte ptr [ebp + 8], 1 */
  12964     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  12965     _cf = 0;
  12966     _flag_k = FK_NARROW(FK_TEST, 24);
  12967     if (TEST_Z(_flag_a, _flag_b)) goto L_3610440B; /* 0x36104400: je 0x3610440b */
  12968 L_36104402:
  12969     PUSH32(esp, esi); /* 0x36104402: push esi */
  12970     RECOMP_ICALL(0x3615FCC4u); /* 0x36104403: call 0x3615fcc4 */ /* not lifted */
  12971     RECOMP_FLAGS_IN();
  12972     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12973     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12974     esp = esp + 4; /* 0x36104408: add esp, 4 */
  12975     _flag_k = FK_ADD;
  12976 L_3610440B:
  12977     eax = esi; /* 0x3610440B: mov eax, esi */
  12978     esi = POP32_VAL(esp); /* 0x3610440D: pop esi */
  12979     ebp = POP32_VAL(esp); /* 0x3610440E: pop ebp */
  12980     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610440F: ret 4 */
  12981 L_36104460:
  12982     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u);
  12983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12984     ecx = ecx - 0x138u; /* 0x36104460: sub ecx, 0x138 */
  12985     _flag_k = FK_CMP;
  12986     RECOMP_BACKEDGE();
  12987     goto L_361043F0; /* 0x36104466: jmp 0x361043f0 */
  12988     { RECOMP_REGS_OUT(); return; } /* end of function */
  12989     RECOMP_REGS_OUT();
  12990 }
  12991 
  12992 void sub_36104470(void) {
  12993     int _fpu_cmp = 0;
  12994     uint32_t _cf = 0;
  12995     int _df = 1;
  12996     uint32_t _flag_k = FK_NONE;
  12997     uint32_t _flag_a = 0, _flag_b = 0;
  12998     uint32_t _itail_tgt = 0;
  12999     RECOMP_REGS_LOCALS
  13000     RECOMP_ENTER(0x36104470u);
  13001 
  13002     goto L_36104470;
  13003 L_361043F0:
  13004     PUSH32(esp, ebp); /* 0x361043F0: push ebp */
  13005     ebp = esp; /* 0x361043F1: mov ebp, esp */
  13006     PUSH32(esp, esi); /* 0x361043F3: push esi */
  13007     esi = ecx; /* 0x361043F4: mov esi, ecx */
  13008     RECOMP_ICALL(MEM32(0x3616F67C)); /* 0x361043F6: call dword ptr [0x3616f67c] */
  13009     RECOMP_FLAGS_IN();
  13010     /* test MEM8(ebp + 0x8), 1 */ /* 0x361043FC: test byte ptr [ebp + 8], 1 */
  13011     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  13012     _cf = 0;
  13013     _flag_k = FK_NARROW(FK_TEST, 24);
  13014     if (TEST_Z(_flag_a, _flag_b)) goto L_3610440B; /* 0x36104400: je 0x3610440b */
  13015 L_36104402:
  13016     PUSH32(esp, esi); /* 0x36104402: push esi */
  13017     RECOMP_ICALL(0x3615FCC4u); /* 0x36104403: call 0x3615fcc4 */ /* not lifted */
  13018     RECOMP_FLAGS_IN();
  13019     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13020     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13021     esp = esp + 4; /* 0x36104408: add esp, 4 */
  13022     _flag_k = FK_ADD;
  13023 L_3610440B:
  13024     eax = esi; /* 0x3610440B: mov eax, esi */
  13025     esi = POP32_VAL(esp); /* 0x3610440D: pop esi */
  13026     ebp = POP32_VAL(esp); /* 0x3610440E: pop ebp */
  13027     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3610440F: ret 4 */
  13028 L_36104470:
  13029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u);
  13030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13031     ecx = ecx - 0x150u; /* 0x36104470: sub ecx, 0x150 */
  13032     _flag_k = FK_CMP;
  13033     RECOMP_BACKEDGE();
  13034     goto L_361043F0; /* 0x36104476: jmp 0x361043f0 */
  13035     { RECOMP_REGS_OUT(); return; } /* end of function */
  13036     RECOMP_REGS_OUT();
  13037 }
  13038 
  13039 void sub_36104480(void) {
  13040     int _fpu_cmp = 0;
  13041     uint32_t _cf = 0;
  13042     int _df = 1;
  13043     uint32_t _flag_k = FK_NONE;
  13044     uint32_t _flag_a = 0, _flag_b = 0;
  13045     uint32_t _itail_tgt = 0;
  13046     RECOMP_REGS_LOCALS
  13047     RECOMP_ENTER(0x36104480u);
  13048 
  13049 L_36104480:
  13050     goto L_36104490; /* 0x36104480: jmp 0x36104490 */
  13051 L_36104490:
  13052     PUSH32(esp, esi); /* 0x36104490: push esi */
  13053     PUSH32(esp, edi); /* 0x36104491: push edi */
  13054     esi = 0x3630D5A8u; /* 0x36104492: mov esi, 0x3630d5a8 */
  13055     edi = 0xAu; /* 0x36104497: mov edi, 0xa */
  13056 L_3610449C:
  13057     ecx = esi; /* 0x3610449C: mov ecx, esi */
  13058     RECOMP_ICALL(MEM32(0x36170174)); /* 0x3610449E: call dword ptr [0x36170174] */
  13059     RECOMP_FLAGS_IN();
  13060     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  13061     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13062     esi = esi + 0xCu; /* 0x361044A4: add esi, 0xc */
  13063     _flag_k = FK_ADD;
  13064     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  13065     edi = edi - 1; /* 0x361044A7: dec edi */
  13066     _flag_k = FK_DEC;
  13067     RECOMP_BACKEDGE();
  13068     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610449C; /* 0x361044A8: jne 0x3610449c */
  13069 L_361044AA:
  13070     edi = POP32_VAL(esp); /* 0x361044AA: pop edi */
  13071     esi = POP32_VAL(esp); /* 0x361044AB: pop esi */
  13072     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361044AC: ret  */
  13073     RECOMP_REGS_OUT();
  13074 }
  13075 
  13076 void sub_36104490(void) {
  13077     int _fpu_cmp = 0;
  13078     uint32_t _cf = 0;
  13079     int _df = 1;
  13080     uint32_t _flag_k = FK_NONE;
  13081     uint32_t _flag_a = 0, _flag_b = 0;
  13082     uint32_t _itail_tgt = 0;
  13083     RECOMP_REGS_LOCALS
  13084     RECOMP_ENTER(0x36104490u);
  13085 
  13086 L_36104490:
  13087     PUSH32(esp, esi); /* 0x36104490: push esi */
  13088     PUSH32(esp, edi); /* 0x36104491: push edi */
  13089     esi = 0x3630D5A8u; /* 0x36104492: mov esi, 0x3630d5a8 */
  13090     edi = 0xAu; /* 0x36104497: mov edi, 0xa */
  13091 L_3610449C:
  13092     ecx = esi; /* 0x3610449C: mov ecx, esi */
  13093     RECOMP_ICALL(MEM32(0x36170174)); /* 0x3610449E: call dword ptr [0x36170174] */
  13094     RECOMP_FLAGS_IN();
  13095     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  13096     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13097     esi = esi + 0xCu; /* 0x361044A4: add esi, 0xc */
  13098     _flag_k = FK_ADD;
  13099     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  13100     edi = edi - 1; /* 0x361044A7: dec edi */
  13101     _flag_k = FK_DEC;
  13102     RECOMP_BACKEDGE();
  13103     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610449C; /* 0x361044A8: jne 0x3610449c */
  13104 L_361044AA:
  13105     edi = POP32_VAL(esp); /* 0x361044AA: pop edi */
  13106     esi = POP32_VAL(esp); /* 0x361044AB: pop esi */
  13107     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361044AC: ret  */
  13108     RECOMP_REGS_OUT();
  13109 }
  13110 
  13111 void sub_361044B0(void) {
  13112     int _fpu_cmp = 0;
  13113     uint32_t _cf = 0;
  13114     int _df = 1;
  13115     uint32_t _flag_k = FK_NONE;
  13116     uint32_t _flag_a = 0, _flag_b = 0;
  13117     uint32_t _itail_tgt = 0;
  13118     RECOMP_REGS_LOCALS
  13119     RECOMP_ENTER(0x361044B0u);
  13120 
  13121 L_361044B0:
  13122     goto L_361044C0; /* 0x361044B0: jmp 0x361044c0 */
  13123 L_361044C0:
  13124     PUSH32(esp, esi); /* 0x361044C0: push esi */
  13125     PUSH32(esp, edi); /* 0x361044C1: push edi */
  13126     esi = 0x3630D560u; /* 0x361044C2: mov esi, 0x3630d560 */
  13127     edi = 6; /* 0x361044C7: mov edi, 6 */
  13128 L_361044CC:
  13129     ecx = esi; /* 0x361044CC: mov ecx, esi */
  13130     RECOMP_ICALL(MEM32(0x36170174)); /* 0x361044CE: call dword ptr [0x36170174] */
  13131     RECOMP_FLAGS_IN();
  13132     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  13133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13134     esi = esi + 0xCu; /* 0x361044D4: add esi, 0xc */
  13135     _flag_k = FK_ADD;
  13136     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  13137     edi = edi - 1; /* 0x361044D7: dec edi */
  13138     _flag_k = FK_DEC;
  13139     RECOMP_BACKEDGE();
  13140     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361044CC; /* 0x361044D8: jne 0x361044cc */
  13141 L_361044DA:
  13142     edi = POP32_VAL(esp); /* 0x361044DA: pop edi */
  13143     esi = POP32_VAL(esp); /* 0x361044DB: pop esi */
  13144     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361044DC: ret  */
  13145     RECOMP_REGS_OUT();
  13146 }
  13147 
  13148 void sub_361044C0(void) {
  13149     int _fpu_cmp = 0;
  13150     uint32_t _cf = 0;
  13151     int _df = 1;
  13152     uint32_t _flag_k = FK_NONE;
  13153     uint32_t _flag_a = 0, _flag_b = 0;
  13154     uint32_t _itail_tgt = 0;
  13155     RECOMP_REGS_LOCALS
  13156     RECOMP_ENTER(0x361044C0u);
  13157 
  13158 L_361044C0:
  13159     PUSH32(esp, esi); /* 0x361044C0: push esi */
  13160     PUSH32(esp, edi); /* 0x361044C1: push edi */
  13161     esi = 0x3630D560u; /* 0x361044C2: mov esi, 0x3630d560 */
  13162     edi = 6; /* 0x361044C7: mov edi, 6 */
  13163 L_361044CC:
  13164     ecx = esi; /* 0x361044CC: mov ecx, esi */
  13165     RECOMP_ICALL(MEM32(0x36170174)); /* 0x361044CE: call dword ptr [0x36170174] */
  13166     RECOMP_FLAGS_IN();
  13167     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  13168     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13169     esi = esi + 0xCu; /* 0x361044D4: add esi, 0xc */
  13170     _flag_k = FK_ADD;
  13171     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  13172     edi = edi - 1; /* 0x361044D7: dec edi */
  13173     _flag_k = FK_DEC;
  13174     RECOMP_BACKEDGE();
  13175     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361044CC; /* 0x361044D8: jne 0x361044cc */
  13176 L_361044DA:
  13177     edi = POP32_VAL(esp); /* 0x361044DA: pop edi */
  13178     esi = POP32_VAL(esp); /* 0x361044DB: pop esi */
  13179     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361044DC: ret  */
  13180     RECOMP_REGS_OUT();
  13181 }
  13182 
  13183 void sub_361044E0(void) {
  13184     int _fpu_cmp = 0;
  13185     uint32_t _cf = 0;
  13186     int _df = 1;
  13187     uint32_t _flag_k = FK_NONE;
  13188     uint32_t _flag_a = 0, _flag_b = 0;
  13189     uint32_t _itail_tgt = 0;
  13190     RECOMP_REGS_LOCALS
  13191     RECOMP_ENTER(0x361044E0u);
  13192 
  13193 L_361044E0:
  13194     goto L_361044F0; /* 0x361044E0: jmp 0x361044f0 */
  13195 L_361044F0:
  13196     PUSH32(esp, esi); /* 0x361044F0: push esi */
  13197     PUSH32(esp, edi); /* 0x361044F1: push edi */
  13198     esi = 0x3630D518u; /* 0x361044F2: mov esi, 0x3630d518 */
  13199     edi = 6; /* 0x361044F7: mov edi, 6 */
  13200 L_361044FC:
  13201     ecx = esi; /* 0x361044FC: mov ecx, esi */
  13202     RECOMP_ICALL(MEM32(0x36170174)); /* 0x361044FE: call dword ptr [0x36170174] */
  13203     RECOMP_FLAGS_IN();
  13204     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  13205     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13206     esi = esi + 0xCu; /* 0x36104504: add esi, 0xc */
  13207     _flag_k = FK_ADD;
  13208     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  13209     edi = edi - 1; /* 0x36104507: dec edi */
  13210     _flag_k = FK_DEC;
  13211     RECOMP_BACKEDGE();
  13212     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361044FC; /* 0x36104508: jne 0x361044fc */
  13213 L_3610450A:
  13214     edi = POP32_VAL(esp); /* 0x3610450A: pop edi */
  13215     esi = POP32_VAL(esp); /* 0x3610450B: pop esi */
  13216     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610450C: ret  */
  13217     RECOMP_REGS_OUT();
  13218 }
  13219 
  13220 void sub_361044F0(void) {
  13221     int _fpu_cmp = 0;
  13222     uint32_t _cf = 0;
  13223     int _df = 1;
  13224     uint32_t _flag_k = FK_NONE;
  13225     uint32_t _flag_a = 0, _flag_b = 0;
  13226     uint32_t _itail_tgt = 0;
  13227     RECOMP_REGS_LOCALS
  13228     RECOMP_ENTER(0x361044F0u);
  13229 
  13230 L_361044F0:
  13231     PUSH32(esp, esi); /* 0x361044F0: push esi */
  13232     PUSH32(esp, edi); /* 0x361044F1: push edi */
  13233     esi = 0x3630D518u; /* 0x361044F2: mov esi, 0x3630d518 */
  13234     edi = 6; /* 0x361044F7: mov edi, 6 */
  13235 L_361044FC:
  13236     ecx = esi; /* 0x361044FC: mov ecx, esi */
  13237     RECOMP_ICALL(MEM32(0x36170174)); /* 0x361044FE: call dword ptr [0x36170174] */
  13238     RECOMP_FLAGS_IN();
  13239     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  13240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13241     esi = esi + 0xCu; /* 0x36104504: add esi, 0xc */
  13242     _flag_k = FK_ADD;
  13243     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  13244     edi = edi - 1; /* 0x36104507: dec edi */
  13245     _flag_k = FK_DEC;
  13246     RECOMP_BACKEDGE();
  13247     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361044FC; /* 0x36104508: jne 0x361044fc */
  13248 L_3610450A:
  13249     edi = POP32_VAL(esp); /* 0x3610450A: pop edi */
  13250     esi = POP32_VAL(esp); /* 0x3610450B: pop esi */
  13251     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610450C: ret  */
  13252     RECOMP_REGS_OUT();
  13253 }
  13254 
  13255 void sub_36104510(void) {
  13256     int _fpu_cmp = 0;
  13257     uint32_t _cf = 0;
  13258     int _df = 1;
  13259     uint32_t _flag_k = FK_NONE;
  13260     uint32_t _flag_a = 0, _flag_b = 0;
  13261     uint32_t _itail_tgt = 0;
  13262     RECOMP_REGS_LOCALS
  13263     RECOMP_ENTER(0x36104510u);
  13264 
  13265 L_36104510:
  13266     goto L_36104520; /* 0x36104510: jmp 0x36104520 */
  13267 L_36104520:
  13268     PUSH32(esp, esi); /* 0x36104520: push esi */
  13269     PUSH32(esp, edi); /* 0x36104521: push edi */
  13270     esi = 0x3630D428u; /* 0x36104522: mov esi, 0x3630d428 */
  13271     edi = 6; /* 0x36104527: mov edi, 6 */
  13272 L_3610452C:
  13273     ecx = esi; /* 0x3610452C: mov ecx, esi */
  13274     RECOMP_ICALL(MEM32(0x361701BC)); /* 0x3610452E: call dword ptr [0x361701bc] */
  13275     RECOMP_FLAGS_IN();
  13276     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
  13277     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13278     esi = esi + 0x24u; /* 0x36104534: add esi, 0x24 */
  13279     _flag_k = FK_ADD;
  13280     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  13281     edi = edi - 1; /* 0x36104537: dec edi */
  13282     _flag_k = FK_DEC;
  13283     RECOMP_BACKEDGE();
  13284     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610452C; /* 0x36104538: jne 0x3610452c */
  13285 L_3610453A:
  13286     edi = POP32_VAL(esp); /* 0x3610453A: pop edi */
  13287     esi = POP32_VAL(esp); /* 0x3610453B: pop esi */
  13288     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610453C: ret  */
  13289     RECOMP_REGS_OUT();
  13290 }
  13291 
  13292 void sub_36104520(void) {
  13293     int _fpu_cmp = 0;
  13294     uint32_t _cf = 0;
  13295     int _df = 1;
  13296     uint32_t _flag_k = FK_NONE;
  13297     uint32_t _flag_a = 0, _flag_b = 0;
  13298     uint32_t _itail_tgt = 0;
  13299     RECOMP_REGS_LOCALS
  13300     RECOMP_ENTER(0x36104520u);
  13301 
  13302 L_36104520:
  13303     PUSH32(esp, esi); /* 0x36104520: push esi */
  13304     PUSH32(esp, edi); /* 0x36104521: push edi */
  13305     esi = 0x3630D428u; /* 0x36104522: mov esi, 0x3630d428 */
  13306     edi = 6; /* 0x36104527: mov edi, 6 */
  13307 L_3610452C:
  13308     ecx = esi; /* 0x3610452C: mov ecx, esi */
  13309     RECOMP_ICALL(MEM32(0x361701BC)); /* 0x3610452E: call dword ptr [0x361701bc] */
  13310     RECOMP_FLAGS_IN();
  13311     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
  13312     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13313     esi = esi + 0x24u; /* 0x36104534: add esi, 0x24 */
  13314     _flag_k = FK_ADD;
  13315     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  13316     edi = edi - 1; /* 0x36104537: dec edi */
  13317     _flag_k = FK_DEC;
  13318     RECOMP_BACKEDGE();
  13319     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610452C; /* 0x36104538: jne 0x3610452c */
  13320 L_3610453A:
  13321     edi = POP32_VAL(esp); /* 0x3610453A: pop edi */
  13322     esi = POP32_VAL(esp); /* 0x3610453B: pop esi */
  13323     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610453C: ret  */
  13324     RECOMP_REGS_OUT();
  13325 }
  13326 
  13327 void sub_36104540(void) {
  13328     int _fpu_cmp = 0;
  13329     uint32_t _cf = 0;
  13330     int _df = 1;
  13331     uint32_t _flag_k = FK_NONE;
  13332     uint32_t _flag_a = 0, _flag_b = 0;
  13333     uint32_t _itail_tgt = 0;
  13334     RECOMP_REGS_LOCALS
  13335     RECOMP_ENTER(0x36104540u);
  13336 
  13337 L_36104540:
  13338     PUSH32(esp, ebp); /* 0x36104540: push ebp */
  13339     ebp = esp; /* 0x36104541: mov ebp, esp */
  13340     PUSH32(esp, 0xFFFFFFFFu); /* 0x36104543: push -1 */
  13341     PUSH32(esp, 0x3616A031u); /* 0x36104545: push 0x3616a031 */
  13342     eax = MEM32(FS_BASE + (0)); /* 0x3610454A: mov eax, dword ptr fs:[0] */
  13343     PUSH32(esp, eax); /* 0x36104550: push eax */
  13344     MEM32(FS_BASE + (0)) = esp; /* 0x36104551: mov dword ptr fs:[0], esp */
  13345     PUSH32(esp, ecx); /* 0x36104558: push ecx */
  13346     eax = MEM32(ebp + 0x8); /* 0x36104559: mov eax, dword ptr [ebp + 8] */
  13347     PUSH32(esp, ebx); /* 0x3610455C: push ebx */
  13348     PUSH32(esp, esi); /* 0x3610455D: push esi */
  13349     PUSH32(esp, edi); /* 0x3610455E: push edi */
  13350     esi = ecx; /* 0x3610455F: mov esi, ecx */
  13351     PUSH32(esp, eax); /* 0x36104561: push eax */
  13352     MEM32(ebp + (-0x10)) = esi; /* 0x36104562: mov dword ptr [ebp - 0x10], esi */
  13353     RECOMP_ICALL(0x360FC270u); /* 0x36104565: call 0x360fc270 */ /* not lifted */
  13354     RECOMP_FLAGS_IN();
  13355     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13356     edi = 0; /* 0x3610456A: xor edi, edi */
  13357     _cf = 0;
  13358     _flag_k = FK_TEST;
  13359     MEM32(ebp + (-0x4)) = edi; /* 0x3610456C: mov dword ptr [ebp - 4], edi */
  13360     MEM32(esi + 0x20) = edi; /* 0x3610456F: mov dword ptr [esi + 0x20], edi */
  13361     MEM32(esi + 0x24) = edi; /* 0x36104572: mov dword ptr [esi + 0x24], edi */
  13362     ebx = esi + 0x2C; /* 0x36104575: lea ebx, [esi + 0x2c] */
  13363     MEM32(ebp + 0x8) = 0x40u; /* 0x36104578: mov dword ptr [ebp + 8], 0x40 */
  13364 L_3610457F:
  13365     ecx = ebx; /* 0x3610457F: mov ecx, ebx */
  13366     RECOMP_ICALL(MEM32(0x36170174)); /* 0x36104581: call dword ptr [0x36170174] */
  13367     RECOMP_FLAGS_IN();
  13368     eax = MEM32(ebp + 0x8); /* 0x36104587: mov eax, dword ptr [ebp + 8] */
  13369     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
  13370     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13371     ebx = ebx + 0xCu; /* 0x3610458A: add ebx, 0xc */
  13372     _flag_k = FK_ADD;
  13373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  13374     eax = eax - 1; /* 0x3610458D: dec eax */
  13375     _flag_k = FK_DEC;
  13376     MEM32(ebp + 0x8) = eax; /* 0x3610458E: mov dword ptr [ebp + 8], eax */
  13377     RECOMP_BACKEDGE();
  13378     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610457F; /* 0x36104591: jne 0x3610457f */
  13379 L_36104593:
  13380     ebx = esi + 0x32C; /* 0x36104593: lea ebx, [esi + 0x32c] */
  13381     MEM32(ebp + 0x8) = 0x40u; /* 0x36104599: mov dword ptr [ebp + 8], 0x40 */
  13382 L_361045A0:
  13383     ecx = ebx; /* 0x361045A0: mov ecx, ebx */
  13384     RECOMP_ICALL(MEM32(0x361701BC)); /* 0x361045A2: call dword ptr [0x361701bc] */
  13385     RECOMP_FLAGS_IN();
  13386     eax = MEM32(ebp + 0x8); /* 0x361045A8: mov eax, dword ptr [ebp + 8] */
  13387     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
  13388     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13389     ebx = ebx + 0x24u; /* 0x361045AB: add ebx, 0x24 */
  13390     _flag_k = FK_ADD;
  13391     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  13392     eax = eax - 1; /* 0x361045AE: dec eax */
  13393     _flag_k = FK_DEC;
  13394     MEM32(ebp + 0x8) = eax; /* 0x361045AF: mov dword ptr [ebp + 8], eax */
  13395     RECOMP_BACKEDGE();
  13396     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361045A0; /* 0x361045B2: jne 0x361045a0 */
  13397 L_361045B4:
  13398     ecx = esi + 0xEA8; /* 0x361045B4: lea ecx, [esi + 0xea8] */
  13399     RECOMP_ICALL(0x36137CC0u); /* 0x361045BA: call 0x36137cc0 */ /* not lifted */
  13400     RECOMP_FLAGS_IN();
  13401     PUSH32(esp, 0xC00u); /* 0x361045BF: push 0xc00 */
  13402     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x361045C4: mov byte ptr [ebp - 4], 1 */
  13403     MEM32(esi + 0xEF4) = edi; /* 0x361045C8: mov dword ptr [esi + 0xef4], edi */
  13404     MEM32(esi) = 0x36175EE8u; /* 0x361045CE: mov dword ptr [esi], 0x36175ee8 */
  13405     RECOMP_ICALL(0x3615FD6Au); /* 0x361045D4: call 0x3615fd6a */ /* not lifted */
  13406     RECOMP_FLAGS_IN();
  13407     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13408     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13409     esp = esp + 4; /* 0x361045D9: add esp, 4 */
  13410     _flag_k = FK_ADD;
  13411     /* cmp eax, edi */ /* 0x361045DC: cmp eax, edi */
  13412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  13413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13414     _flag_k = FK_CMP;
  13415     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610460A; /* 0x361045DE: je 0x3610460a */
  13416 L_361045E0:
  13417     ecx = eax + 0x14; /* 0x361045E0: lea ecx, [eax + 0x14] */
  13418     edx = 0x40u; /* 0x361045E3: mov edx, 0x40 */
  13419 L_361045E8:
  13420     MEM32(ecx + (-0x14)) = edi; /* 0x361045E8: mov dword ptr [ecx - 0x14], edi */
  13421     MEM32(ecx + (-0x10)) = edi; /* 0x361045EB: mov dword ptr [ecx - 0x10], edi */
  13422     MEM32(ecx + (-0xC)) = edi; /* 0x361045EE: mov dword ptr [ecx - 0xc], edi */
  13423     MEM32(ecx + (-0x8)) = edi; /* 0x361045F1: mov dword ptr [ecx - 8], edi */
  13424     MEM32(ecx + (-0x4)) = edi; /* 0x361045F4: mov dword ptr [ecx - 4], edi */
  13425     MEM32(ecx) = edi; /* 0x361045F7: mov dword ptr [ecx], edi */
  13426     MEM32(ecx + 0x4) = edi; /* 0x361045F9: mov dword ptr [ecx + 4], edi */
  13427     MEM32(ecx + 0x8) = edi; /* 0x361045FC: mov dword ptr [ecx + 8], edi */
  13428     MEM32(ecx + 0xC) = edi; /* 0x361045FF: mov dword ptr [ecx + 0xc], edi */
  13429     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  13430     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13431     ecx = ecx + 0x30u; /* 0x36104602: add ecx, 0x30 */
  13432     _flag_k = FK_ADD;
  13433     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  13434     edx = edx - 1; /* 0x36104605: dec edx */
  13435     _flag_k = FK_DEC;
  13436     RECOMP_BACKEDGE();
  13437     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361045E8; /* 0x36104606: jne 0x361045e8 */
  13438 L_36104608:
  13439     goto L_3610460C; /* 0x36104608: jmp 0x3610460c */
  13440 L_3610460A:
  13441     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13442     eax = 0; /* 0x3610460A: xor eax, eax */
  13443     _cf = 0;
  13444     _flag_k = FK_TEST;
  13445 L_3610460C:
  13446     ecx = esi; /* 0x3610460C: mov ecx, esi */
  13447     MEM32(esi + 0x28) = eax; /* 0x3610460E: mov dword ptr [esi + 0x28], eax */
  13448     RECOMP_ICALL(0x361059E0u); /* 0x36104611: call 0x361059e0 */ /* not lifted */
  13449     RECOMP_FLAGS_IN();
  13450     ecx = MEM32(esi + 0x4); /* 0x36104616: mov ecx, dword ptr [esi + 4] */
  13451     ebx = MEM32(ebp + 0xC); /* 0x36104619: mov ebx, dword ptr [ebp + 0xc] */
  13452     PUSH32(esp, ecx); /* 0x3610461C: push ecx */
  13453     MEM32(esi + 0xE7C) = ebx; /* 0x3610461D: mov dword ptr [esi + 0xe7c], ebx */
  13454     RECOMP_ICALL(0x360F7B00u); /* 0x36104623: call 0x360f7b00 */ /* not lifted */
  13455     RECOMP_FLAGS_IN();
  13456     ecx = eax; /* 0x36104628: mov ecx, eax */
  13457     RECOMP_ICALL(0x360FBFF0u); /* 0x3610462A: call 0x360fbff0 */ /* not lifted */
  13458     RECOMP_FLAGS_IN();
  13459     ecx = eax; /* 0x3610462F: mov ecx, eax */
  13460     RECOMP_ICALL(0x361371A0u); /* 0x36104631: call 0x361371a0 */ /* not lifted */
  13461     RECOMP_FLAGS_IN();
  13462     PUSH32(esp, 0x10Cu); /* 0x36104636: push 0x10c */
  13463     MEM32(ebp + 0x8) = eax; /* 0x3610463B: mov dword ptr [ebp + 8], eax */
  13464     RECOMP_ICALL(0x3615FD6Au); /* 0x3610463E: call 0x3615fd6a */ /* not lifted */
  13465     RECOMP_FLAGS_IN();
  13466     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13467     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13468     esp = esp + 4; /* 0x36104643: add esp, 4 */
  13469     _flag_k = FK_ADD;
  13470     MEM32(ebp + 0xC) = eax; /* 0x36104646: mov dword ptr [ebp + 0xc], eax */
  13471     /* cmp eax, edi */ /* 0x36104649: cmp eax, edi */
  13472     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  13473     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13474     _flag_k = FK_CMP;
  13475     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3610464B: mov byte ptr [ebp - 4], 2 */
  13476     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610465A; /* 0x3610464F: je 0x3610465a */
  13477 L_36104651:
  13478     ecx = eax; /* 0x36104651: mov ecx, eax */
  13479     RECOMP_ICALL(0x36132920u); /* 0x36104653: call 0x36132920 */ /* not lifted */
  13480     RECOMP_FLAGS_IN();
  13481     goto L_3610465C; /* 0x36104658: jmp 0x3610465c */
  13482 L_3610465A:
  13483     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13484     eax = 0; /* 0x3610465A: xor eax, eax */
  13485     _cf = 0;
  13486     _flag_k = FK_TEST;
  13487 L_3610465C:
  13488     edx = MEM32(esi + 0xE80); /* 0x3610465C: mov edx, dword ptr [esi + 0xe80] */
  13489     ecx = MEM32(ebp + 0x8); /* 0x36104662: mov ecx, dword ptr [ebp + 8] */
  13490     PUSH32(esp, edi); /* 0x36104665: push edi */
  13491     PUSH32(esp, ebx); /* 0x36104666: push ebx */
  13492     PUSH32(esp, edx); /* 0x36104667: push edx */
  13493     PUSH32(esp, ecx); /* 0x36104668: push ecx */
  13494     PUSH32(esp, eax); /* 0x36104669: push eax */
  13495     ecx = esi; /* 0x3610466A: mov ecx, esi */
  13496     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610466C: mov byte ptr [ebp - 4], 1 */
  13497     MEM32(esi + 0x20) = eax; /* 0x36104670: mov dword ptr [esi + 0x20], eax */
  13498     RECOMP_ICALL(0x360FC670u); /* 0x36104673: call 0x360fc670 */ /* not lifted */
  13499     RECOMP_FLAGS_IN();
  13500     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  13501     _cf = (LO8(eax)) != 0;
  13502     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36104678: neg al */
  13503     _flag_k = FK_NARROW(FK_CMP, 24);
  13504     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3610467A: sbb al, al */
  13505       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  13506       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  13507       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  13508     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13509     SET_LO8(eax, LO8(eax) + 1); /* 0x3610467C: inc al */
  13510     _flag_k = FK_NARROW(FK_INC, 24);
  13511     ecx = esi; /* 0x3610467E: mov ecx, esi */
  13512     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36104680: mov byte ptr [esi + 0x14], al */
  13513     RECOMP_ICALL(0x36105B10u); /* 0x36104683: call 0x36105b10 */ /* not lifted */
  13514     RECOMP_FLAGS_IN();
  13515     ecx = MEM32(ebp + (-0xC)); /* 0x36104688: mov ecx, dword ptr [ebp - 0xc] */
  13516     edi = POP32_VAL(esp); /* 0x3610468B: pop edi */
  13517     eax = esi; /* 0x3610468C: mov eax, esi */
  13518     esi = POP32_VAL(esp); /* 0x3610468E: pop esi */
  13519     ebx = POP32_VAL(esp); /* 0x3610468F: pop ebx */
  13520     MEM32(FS_BASE + (0)) = ecx; /* 0x36104690: mov dword ptr fs:[0], ecx */
  13521     esp = ebp; /* 0x36104697: mov esp, ebp */
  13522     ebp = POP32_VAL(esp); /* 0x36104699: pop ebp */
  13523     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610469A: ret 0xc */
  13524     RECOMP_REGS_OUT();
  13525 }
  13526 
  13527 void sub_3610460C(void) {
  13528     int _fpu_cmp = 0;
  13529     uint32_t _cf = 0;
  13530     int _df = 1;
  13531     uint32_t _flag_k = FK_NONE;
  13532     uint32_t _flag_a = 0, _flag_b = 0;
  13533     uint32_t _itail_tgt = 0;
  13534     RECOMP_REGS_LOCALS
  13535     RECOMP_ENTER(0x3610460Cu);
  13536 
  13537 L_3610460C:
  13538     ecx = esi; /* 0x3610460C: mov ecx, esi */
  13539     MEM32(esi + 0x28) = eax; /* 0x3610460E: mov dword ptr [esi + 0x28], eax */
  13540     RECOMP_ICALL(0x361059E0u); /* 0x36104611: call 0x361059e0 */ /* not lifted */
  13541     RECOMP_FLAGS_IN();
  13542     ecx = MEM32(esi + 0x4); /* 0x36104616: mov ecx, dword ptr [esi + 4] */
  13543     ebx = MEM32(ebp + 0xC); /* 0x36104619: mov ebx, dword ptr [ebp + 0xc] */
  13544     PUSH32(esp, ecx); /* 0x3610461C: push ecx */
  13545     MEM32(esi + 0xE7C) = ebx; /* 0x3610461D: mov dword ptr [esi + 0xe7c], ebx */
  13546     RECOMP_ICALL(0x360F7B00u); /* 0x36104623: call 0x360f7b00 */ /* not lifted */
  13547     RECOMP_FLAGS_IN();
  13548     ecx = eax; /* 0x36104628: mov ecx, eax */
  13549     RECOMP_ICALL(0x360FBFF0u); /* 0x3610462A: call 0x360fbff0 */ /* not lifted */
  13550     RECOMP_FLAGS_IN();
  13551     ecx = eax; /* 0x3610462F: mov ecx, eax */
  13552     RECOMP_ICALL(0x361371A0u); /* 0x36104631: call 0x361371a0 */ /* not lifted */
  13553     RECOMP_FLAGS_IN();
  13554     PUSH32(esp, 0x10Cu); /* 0x36104636: push 0x10c */
  13555     MEM32(ebp + 0x8) = eax; /* 0x3610463B: mov dword ptr [ebp + 8], eax */
  13556     RECOMP_ICALL(0x3615FD6Au); /* 0x3610463E: call 0x3615fd6a */ /* not lifted */
  13557     RECOMP_FLAGS_IN();
  13558     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13560     esp = esp + 4; /* 0x36104643: add esp, 4 */
  13561     _flag_k = FK_ADD;
  13562     MEM32(ebp + 0xC) = eax; /* 0x36104646: mov dword ptr [ebp + 0xc], eax */
  13563     /* cmp eax, edi */ /* 0x36104649: cmp eax, edi */
  13564     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  13565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13566     _flag_k = FK_CMP;
  13567     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3610464B: mov byte ptr [ebp - 4], 2 */
  13568     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610465A; /* 0x3610464F: je 0x3610465a */
  13569 L_36104651:
  13570     ecx = eax; /* 0x36104651: mov ecx, eax */
  13571     RECOMP_ICALL(0x36132920u); /* 0x36104653: call 0x36132920 */ /* not lifted */
  13572     RECOMP_FLAGS_IN();
  13573     goto L_3610465C; /* 0x36104658: jmp 0x3610465c */
  13574 L_3610465A:
  13575     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13576     eax = 0; /* 0x3610465A: xor eax, eax */
  13577     _cf = 0;
  13578     _flag_k = FK_TEST;
  13579 L_3610465C:
  13580     edx = MEM32(esi + 0xE80); /* 0x3610465C: mov edx, dword ptr [esi + 0xe80] */
  13581     ecx = MEM32(ebp + 0x8); /* 0x36104662: mov ecx, dword ptr [ebp + 8] */
  13582     PUSH32(esp, edi); /* 0x36104665: push edi */
  13583     PUSH32(esp, ebx); /* 0x36104666: push ebx */
  13584     PUSH32(esp, edx); /* 0x36104667: push edx */
  13585     PUSH32(esp, ecx); /* 0x36104668: push ecx */
  13586     PUSH32(esp, eax); /* 0x36104669: push eax */
  13587     ecx = esi; /* 0x3610466A: mov ecx, esi */
  13588     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610466C: mov byte ptr [ebp - 4], 1 */
  13589     MEM32(esi + 0x20) = eax; /* 0x36104670: mov dword ptr [esi + 0x20], eax */
  13590     RECOMP_ICALL(0x360FC670u); /* 0x36104673: call 0x360fc670 */ /* not lifted */
  13591     RECOMP_FLAGS_IN();
  13592     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  13593     _cf = (LO8(eax)) != 0;
  13594     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36104678: neg al */
  13595     _flag_k = FK_NARROW(FK_CMP, 24);
  13596     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3610467A: sbb al, al */
  13597       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  13598       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  13599       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  13600     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13601     SET_LO8(eax, LO8(eax) + 1); /* 0x3610467C: inc al */
  13602     _flag_k = FK_NARROW(FK_INC, 24);
  13603     ecx = esi; /* 0x3610467E: mov ecx, esi */
  13604     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36104680: mov byte ptr [esi + 0x14], al */
  13605     RECOMP_ICALL(0x36105B10u); /* 0x36104683: call 0x36105b10 */ /* not lifted */
  13606     RECOMP_FLAGS_IN();
  13607     ecx = MEM32(ebp + (-0xC)); /* 0x36104688: mov ecx, dword ptr [ebp - 0xc] */
  13608     edi = POP32_VAL(esp); /* 0x3610468B: pop edi */
  13609     eax = esi; /* 0x3610468C: mov eax, esi */
  13610     esi = POP32_VAL(esp); /* 0x3610468E: pop esi */
  13611     ebx = POP32_VAL(esp); /* 0x3610468F: pop ebx */
  13612     MEM32(FS_BASE + (0)) = ecx; /* 0x36104690: mov dword ptr fs:[0], ecx */
  13613     esp = ebp; /* 0x36104697: mov esp, ebp */
  13614     ebp = POP32_VAL(esp); /* 0x36104699: pop ebp */
  13615     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610469A: ret 0xc */
  13616     RECOMP_REGS_OUT();
  13617 }
  13618 
  13619 void sub_3610465C(void) {
  13620     int _fpu_cmp = 0;
  13621     uint32_t _cf = 0;
  13622     int _df = 1;
  13623     uint32_t _flag_k = FK_NONE;
  13624     uint32_t _flag_a = 0, _flag_b = 0;
  13625     uint32_t _itail_tgt = 0;
  13626     RECOMP_REGS_LOCALS
  13627     RECOMP_ENTER(0x3610465Cu);
  13628 
  13629 L_3610465C:
  13630     edx = MEM32(esi + 0xE80); /* 0x3610465C: mov edx, dword ptr [esi + 0xe80] */
  13631     ecx = MEM32(ebp + 0x8); /* 0x36104662: mov ecx, dword ptr [ebp + 8] */
  13632     PUSH32(esp, edi); /* 0x36104665: push edi */
  13633     PUSH32(esp, ebx); /* 0x36104666: push ebx */
  13634     PUSH32(esp, edx); /* 0x36104667: push edx */
  13635     PUSH32(esp, ecx); /* 0x36104668: push ecx */
  13636     PUSH32(esp, eax); /* 0x36104669: push eax */
  13637     ecx = esi; /* 0x3610466A: mov ecx, esi */
  13638     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3610466C: mov byte ptr [ebp - 4], 1 */
  13639     MEM32(esi + 0x20) = eax; /* 0x36104670: mov dword ptr [esi + 0x20], eax */
  13640     RECOMP_ICALL(0x360FC670u); /* 0x36104673: call 0x360fc670 */ /* not lifted */
  13641     RECOMP_FLAGS_IN();
  13642     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  13643     _cf = (LO8(eax)) != 0;
  13644     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36104678: neg al */
  13645     _flag_k = FK_NARROW(FK_CMP, 24);
  13646     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3610467A: sbb al, al */
  13647       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  13648       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  13649       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  13650     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13651     SET_LO8(eax, LO8(eax) + 1); /* 0x3610467C: inc al */
  13652     _flag_k = FK_NARROW(FK_INC, 24);
  13653     ecx = esi; /* 0x3610467E: mov ecx, esi */
  13654     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36104680: mov byte ptr [esi + 0x14], al */
  13655     RECOMP_ICALL(0x36105B10u); /* 0x36104683: call 0x36105b10 */ /* not lifted */
  13656     RECOMP_FLAGS_IN();
  13657     ecx = MEM32(ebp + (-0xC)); /* 0x36104688: mov ecx, dword ptr [ebp - 0xc] */
  13658     edi = POP32_VAL(esp); /* 0x3610468B: pop edi */
  13659     eax = esi; /* 0x3610468C: mov eax, esi */
  13660     esi = POP32_VAL(esp); /* 0x3610468E: pop esi */
  13661     ebx = POP32_VAL(esp); /* 0x3610468F: pop ebx */
  13662     MEM32(FS_BASE + (0)) = ecx; /* 0x36104690: mov dword ptr fs:[0], ecx */
  13663     esp = ebp; /* 0x36104697: mov esp, ebp */
  13664     ebp = POP32_VAL(esp); /* 0x36104699: pop ebp */
  13665     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3610469A: ret 0xc */
  13666     RECOMP_REGS_OUT();
  13667 }
  13668 
  13669 void sub_361046A0(void) {
  13670     int _fpu_cmp = 0;
  13671     uint32_t _cf = 0;
  13672     int _df = 1;
  13673     uint32_t _flag_k = FK_NONE;
  13674     uint32_t _flag_a = 0, _flag_b = 0;
  13675     uint32_t _itail_tgt = 0;
  13676     RECOMP_REGS_LOCALS
  13677     RECOMP_ENTER(0x361046A0u);
  13678 
  13679 L_361046A0:
  13680     PUSH32(esp, ebp); /* 0x361046A0: push ebp */
  13681     ebp = esp; /* 0x361046A1: mov ebp, esp */
  13682     PUSH32(esp, esi); /* 0x361046A3: push esi */
  13683     esi = ecx; /* 0x361046A4: mov esi, ecx */
  13684     RECOMP_ICALL(0x361046D0u); /* 0x361046A6: call 0x361046d0 */ /* not lifted */
  13685     RECOMP_FLAGS_IN();
  13686     /* test MEM8(ebp + 0x8), 1 */ /* 0x361046AB: test byte ptr [ebp + 8], 1 */
  13687     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  13688     _cf = 0;
  13689     _flag_k = FK_NARROW(FK_TEST, 24);
  13690     if (TEST_Z(_flag_a, _flag_b)) goto L_361046BA; /* 0x361046AF: je 0x361046ba */
  13691 L_361046B1:
  13692     PUSH32(esp, esi); /* 0x361046B1: push esi */
  13693     RECOMP_ICALL(0x3615FCC4u); /* 0x361046B2: call 0x3615fcc4 */ /* not lifted */
  13694     RECOMP_FLAGS_IN();
  13695     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13696     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13697     esp = esp + 4; /* 0x361046B7: add esp, 4 */
  13698     _flag_k = FK_ADD;
  13699 L_361046BA:
  13700     eax = esi; /* 0x361046BA: mov eax, esi */
  13701     esi = POP32_VAL(esp); /* 0x361046BC: pop esi */
  13702     ebp = POP32_VAL(esp); /* 0x361046BD: pop ebp */
  13703     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361046BE: ret 4 */
  13704     RECOMP_REGS_OUT();
  13705 }
  13706 
  13707 void sub_361046D0(void) {
  13708     int _fpu_cmp = 0;
  13709     uint32_t _cf = 0;
  13710     int _df = 1;
  13711     uint32_t _flag_k = FK_NONE;
  13712     uint32_t _flag_a = 0, _flag_b = 0;
  13713     uint32_t _itail_tgt = 0;
  13714     RECOMP_REGS_LOCALS
  13715     RECOMP_ENTER(0x361046D0u);
  13716 
  13717 L_361046D0:
  13718     PUSH32(esp, ebp); /* 0x361046D0: push ebp */
  13719     ebp = esp; /* 0x361046D1: mov ebp, esp */
  13720     PUSH32(esp, 0xFFFFFFFFu); /* 0x361046D3: push -1 */
  13721     PUSH32(esp, 0x3616A056u); /* 0x361046D5: push 0x3616a056 */
  13722     eax = MEM32(FS_BASE + (0)); /* 0x361046DA: mov eax, dword ptr fs:[0] */
  13723     PUSH32(esp, eax); /* 0x361046E0: push eax */
  13724     MEM32(FS_BASE + (0)) = esp; /* 0x361046E1: mov dword ptr fs:[0], esp */
  13725     PUSH32(esp, ecx); /* 0x361046E8: push ecx */
  13726     PUSH32(esp, esi); /* 0x361046E9: push esi */
  13727     esi = ecx; /* 0x361046EA: mov esi, ecx */
  13728     PUSH32(esp, edi); /* 0x361046EC: push edi */
  13729     MEM32(ebp + (-0x10)) = esi; /* 0x361046ED: mov dword ptr [ebp - 0x10], esi */
  13730     MEM32(esi) = 0x36175EE8u; /* 0x361046F0: mov dword ptr [esi], 0x36175ee8 */
  13731     eax = MEM32(esi + 0x28); /* 0x361046F6: mov eax, dword ptr [esi + 0x28] */
  13732     PUSH32(esp, eax); /* 0x361046F9: push eax */
  13733     MEM32(ebp + (-0x4)) = 1; /* 0x361046FA: mov dword ptr [ebp - 4], 1 */
  13734     RECOMP_ICALL(0x3615FCC4u); /* 0x36104701: call 0x3615fcc4 */ /* not lifted */
  13735     RECOMP_FLAGS_IN();
  13736     edi = MEM32(esi + 0x20); /* 0x36104706: mov edi, dword ptr [esi + 0x20] */
  13737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13738     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13739     esp = esp + 4; /* 0x36104709: add esp, 4 */
  13740     _flag_k = FK_ADD;
  13741     /* test edi, edi */ /* 0x3610470C: test edi, edi */
  13742     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  13743     _cf = 0;
  13744     _flag_k = FK_TEST;
  13745     if (TEST_Z(_flag_a, _flag_b)) goto L_36104727; /* 0x3610470E: je 0x36104727 */
  13746 L_36104710:
  13747     ecx = edi; /* 0x36104710: mov ecx, edi */
  13748     RECOMP_ICALL(0x360E2940u); /* 0x36104712: call 0x360e2940 */ /* not lifted */
  13749     RECOMP_FLAGS_IN();
  13750     PUSH32(esp, edi); /* 0x36104717: push edi */
  13751     RECOMP_ICALL(0x3615FCC4u); /* 0x36104718: call 0x3615fcc4 */ /* not lifted */
  13752     RECOMP_FLAGS_IN();
  13753     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13754     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13755     esp = esp + 4; /* 0x3610471D: add esp, 4 */
  13756     _flag_k = FK_ADD;
  13757     MEM32(esi + 0x20) = 0; /* 0x36104720: mov dword ptr [esi + 0x20], 0 */
  13758 L_36104727:
  13759     ecx = MEM32(esi + 0x24); /* 0x36104727: mov ecx, dword ptr [esi + 0x24] */
  13760     /* test ecx, ecx */ /* 0x3610472A: test ecx, ecx */
  13761     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  13762     _cf = 0;
  13763     _flag_k = FK_TEST;
  13764     if (TEST_Z(_flag_a, _flag_b)) goto L_3610473B; /* 0x3610472C: je 0x3610473b */
  13765 L_3610472E:
  13766     eax = MEM32(ecx); /* 0x3610472E: mov eax, dword ptr [ecx] */
  13767     PUSH32(esp, 1); /* 0x36104730: push 1 */
  13768     RECOMP_ICALL(MEM32(eax)); /* 0x36104732: call dword ptr [eax] */
  13769     RECOMP_FLAGS_IN();
  13770     MEM32(esi + 0x24) = 0; /* 0x36104734: mov dword ptr [esi + 0x24], 0 */
  13771 L_3610473B:
  13772     ecx = esi + 0xEA8; /* 0x3610473B: lea ecx, [esi + 0xea8] */
  13773     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36104741: mov byte ptr [ebp - 4], 0 */
  13774     RECOMP_ICALL(0x360E2940u); /* 0x36104745: call 0x360e2940 */ /* not lifted */
  13775     RECOMP_FLAGS_IN();
  13776     ecx = esi; /* 0x3610474A: mov ecx, esi */
  13777     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3610474C: mov dword ptr [ebp - 4], 0xffffffff */
  13778     RECOMP_ICALL(0x360FC2F0u); /* 0x36104753: call 0x360fc2f0 */ /* not lifted */
  13779     RECOMP_FLAGS_IN();
  13780     ecx = MEM32(ebp + (-0xC)); /* 0x36104758: mov ecx, dword ptr [ebp - 0xc] */
  13781     edi = POP32_VAL(esp); /* 0x3610475B: pop edi */
  13782     esi = POP32_VAL(esp); /* 0x3610475C: pop esi */
  13783     MEM32(FS_BASE + (0)) = ecx; /* 0x3610475D: mov dword ptr fs:[0], ecx */
  13784     esp = ebp; /* 0x36104764: mov esp, ebp */
  13785     ebp = POP32_VAL(esp); /* 0x36104766: pop ebp */
  13786     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36104767: ret  */
  13787     RECOMP_REGS_OUT();
  13788 }
  13789 
  13790 void sub_36104770(void) {
  13791     int _fpu_cmp = 0;
  13792     uint32_t _cf = 0;
  13793     int _df = 1;
  13794     uint32_t _flag_k = FK_NONE;
  13795     uint32_t _flag_a = 0, _flag_b = 0;
  13796     uint32_t _itail_tgt = 0;
  13797     RECOMP_REGS_LOCALS
  13798     RECOMP_ENTER(0x36104770u);
  13799 
  13800 L_36104770:
  13801     PUSH32(esp, ebp); /* 0x36104770: push ebp */
  13802     ebp = esp; /* 0x36104771: mov ebp, esp */
  13803     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x244u);
  13804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13805     esp = esp - 0x244u; /* 0x36104773: sub esp, 0x244 */
  13806     _flag_k = FK_CMP;
  13807     PUSH32(esp, ebx); /* 0x36104779: push ebx */
  13808     ebx = ecx; /* 0x3610477A: mov ebx, ecx */
  13809     RECOMP_ICALL(0x360FC300u); /* 0x3610477C: call 0x360fc300 */ /* not lifted */
  13810     RECOMP_FLAGS_IN();
  13811     SET_LO8(eax, MEM8(ebx + 0x14)); /* 0x36104781: mov al, byte ptr [ebx + 0x14] */
  13812     /* test LO8(eax), LO8(eax) */ /* 0x36104784: test al, al */
  13813     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  13814     _cf = 0;
  13815     _flag_k = FK_NARROW(FK_TEST, 24);
  13816     if (TEST_Z(_flag_a, _flag_b)) goto L_361047CB; /* 0x36104786: je 0x361047cb */
  13817 L_36104788:
  13818     eax = MEM32(ebx + 0x24); /* 0x36104788: mov eax, dword ptr [ebx + 0x24] */
  13819     /* test eax, eax */ /* 0x3610478B: test eax, eax */
  13820     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  13821     _cf = 0;
  13822     _flag_k = FK_TEST;
  13823     if (TEST_Z(_flag_a, _flag_b)) goto L_36105939; /* 0x3610478D: je 0x36105939 */
  13824 L_36104793:
  13825     eax = MEM32(ebx + 0xE88); /* 0x36104793: mov eax, dword ptr [ebx + 0xe88] */
  13826     /* test eax, eax */ /* 0x36104799: test eax, eax */
  13827     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  13828     _cf = 0;
  13829     _flag_k = FK_TEST;
  13830     if (TEST_S(_flag_a, _flag_b)) goto L_36105939; /* 0x3610479B: jl 0x36105939 */
  13831 L_361047A1:
  13832     /* cmp eax, 1 */ /* 0x361047A1: cmp eax, 1 */
  13833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  13834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13835     _flag_k = FK_CMP;
  13836     if (CMP_G(_flag_a, _flag_b)) goto L_36105939; /* 0x361047A4: jg 0x36105939 */
  13837 L_361047AA:
  13838     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x361047AA: mov al, byte ptr [ebx + 0xe6c] */
  13839     /* test LO8(eax), LO8(eax) */ /* 0x361047B0: test al, al */
  13840     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  13841     _cf = 0;
  13842     _flag_k = FK_NARROW(FK_TEST, 24);
  13843     if (TEST_NZ(_flag_a, _flag_b)) goto L_361047CB; /* 0x361047B2: jne 0x361047cb */
  13844 L_361047B4:
  13845     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361047B4: fld dword ptr [ebx + 0xedc] */
  13846     MEM8(ebx + 0xE6C) = (uint8_t)(1); /* 0x361047BA: mov byte ptr [ebx + 0xe6c], 1 */
  13847     _st[0] += (double)*(float*)ADDR(ebx + 0x10); /* 0x361047C1: fadd dword ptr [ebx + 0x10] */
  13848     MEM8(ebx + 0x14) = (uint8_t)(0); /* 0x361047C4: mov byte ptr [ebx + 0x14], 0 */
  13849     { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x10) = _v; } /* 0x361047C8: fstp dword ptr [ebx + 0x10] */
  13850 L_361047CB:
  13851     ecx = MEM32(ebx + 0x20); /* 0x361047CB: mov ecx, dword ptr [ebx + 0x20] */
  13852     RECOMP_ICALL(0x361331E0u); /* 0x361047CE: call 0x361331e0 */ /* not lifted */
  13853     RECOMP_FLAGS_IN();
  13854     /* test LO8(eax), LO8(eax) */ /* 0x361047D3: test al, al */
  13855     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  13856     _cf = 0;
  13857     _flag_k = FK_NARROW(FK_TEST, 24);
  13858     if (TEST_NZ(_flag_a, _flag_b)) goto L_361047E4; /* 0x361047D5: jne 0x361047e4 */
  13859 L_361047D7:
  13860     eax = MEM32(ebx + 0x20); /* 0x361047D7: mov eax, dword ptr [ebx + 0x20] */
  13861     MEM8(eax) = (uint8_t)(0); /* 0x361047DA: mov byte ptr [eax], 0 */
  13862     MEM8(ebx + 0xE6C) = (uint8_t)(1); /* 0x361047DD: mov byte ptr [ebx + 0xe6c], 1 */
  13863 L_361047E4:
  13864     eax = MEM32(ebx + 0xE88); /* 0x361047E4: mov eax, dword ptr [ebx + 0xe88] */
  13865     PUSH32(esp, esi); /* 0x361047EA: push esi */
  13866     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13867     esi = 0; /* 0x361047EB: xor esi, esi */
  13868     _cf = 0;
  13869     _flag_k = FK_TEST;
  13870     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  13871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13872     eax = eax - esi; /* 0x361047ED: sub eax, esi */
  13873     _flag_k = FK_CMP;
  13874     PUSH32(esp, edi); /* 0x361047EF: push edi */
  13875     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_36104ECE; /* 0x361047F0: je 0x36104ece */
  13876 L_361047F6:
  13877     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  13878     eax = eax - 1; /* 0x361047F6: dec eax */
  13879     _flag_k = FK_DEC;
  13880     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3610591D; /* 0x361047F7: jne 0x3610591d */
  13881 L_361047FD:
  13882     fp_push(*(float*)&MEM32(ebx + 0xC)); /* 0x361047FD: fld dword ptr [ebx + 0xc] */
  13883     _st[0] /= (double)*(float*)ADDR(ebx + 0x10); /* 0x36104800: fdiv dword ptr [ebx + 0x10] */
  13884     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36104803: fstp dword ptr [ebp - 0xb8] */
  13885     fp_push(*(float*)&MEM32(0x36175F34)); /* 0x36104809: fld dword ptr [0x36175f34] */
  13886     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x3610480F: fdiv dword ptr [ebx + 0xedc] */
  13887     _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x36104815: fmul dword ptr [ebx + 0xc] */
  13888     RECOMP_ICALL(0x3615FD8Cu); /* 0x36104818: call 0x3615fd8c */ /* not lifted */
  13889     RECOMP_FLAGS_IN();
  13890     edx = MEM32(ebx + 0xE74); /* 0x3610481D: mov edx, dword ptr [ebx + 0xe74] */
  13891     ecx = eax; /* 0x36104823: mov ecx, eax */
  13892     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  13893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13894     ecx = ecx - edx; /* 0x36104825: sub ecx, edx */
  13895     _flag_k = FK_CMP;
  13896     /* cmp ecx, 2 */ /* 0x36104827: cmp ecx, 2 */
  13897     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2);
  13898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13899     _flag_k = FK_CMP;
  13900     MEM32(ebp + (-0x24)) = ecx; /* 0x3610482A: mov dword ptr [ebp - 0x24], ecx */
  13901     MEM32(ebx + 0xE74) = eax; /* 0x3610482D: mov dword ptr [ebx + 0xe74], eax */
  13902     if (CMP_LE(_flag_a, _flag_b)) goto L_3610483C; /* 0x36104833: jle 0x3610483c */
  13903 L_36104835:
  13904     MEM32(ebp + (-0x24)) = 2; /* 0x36104835: mov dword ptr [ebp - 0x24], 2 */
  13905 L_3610483C:
  13906     ecx = ebx + 0xD2C; /* 0x3610483C: lea ecx, [ebx + 0xd2c] */
  13907     edx = ebx + 0x2C; /* 0x36104842: lea edx, [ebx + 0x2c] */
  13908     edi = ebx + 0x334; /* 0x36104845: lea edi, [ebx + 0x334] */
  13909     MEM32(ebp + (-0x14)) = esi; /* 0x3610484B: mov dword ptr [ebp - 0x14], esi */
  13910     MEM32(ebp + (-0x34)) = esi; /* 0x3610484E: mov dword ptr [ebp - 0x34], esi */
  13911     MEM32(ebp + (-0x38)) = ecx; /* 0x36104851: mov dword ptr [ebp - 0x38], ecx */
  13912     MEM32(ebp + (-0x10)) = edx; /* 0x36104854: mov dword ptr [ebp - 0x10], edx */
  13913     MEM32(ebp + (-0x28)) = edi; /* 0x36104857: mov dword ptr [ebp - 0x28], edi */
  13914 L_3610485A:
  13915     fp_push(*(float*)&MEM32(ecx)); /* 0x3610485A: fld dword ptr [ecx] */
  13916     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x3610485C: fcomp dword ptr [ebx + 0xc] */
  13917     fp_pop();
  13918     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610485F: fnstsw ax */
  13919     /* test HI8(eax), 0x41u */ /* 0x36104861: test ah, 0x41 */
  13920     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  13921     _cf = 0;
  13922     _flag_k = FK_NARROW(FK_TEST, 24);
  13923     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104A99; /* 0x36104864: jne 0x36104a99 */
  13924 L_3610486A:
  13925     fp_push(*(float*)&MEM32(ecx)); /* 0x3610486A: fld dword ptr [ecx] */
  13926     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x3610486C: fsub dword ptr [ebx + 0xc] */
  13927     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x3610486F: fsubr dword ptr [ebx + 0xedc] */
  13928     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x36104875: fdiv dword ptr [ebx + 0xedc] */
  13929     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x3610487B: fmul dword ptr [0x36170ba4] */
  13930     RECOMP_ICALL(0x3615FD8Cu); /* 0x36104881: call 0x3615fd8c */ /* not lifted */
  13931     RECOMP_FLAGS_IN();
  13932     fp_push(*(float*)&MEM32(edi + (-0x8))); /* 0x36104886: fld dword ptr [edi - 8] */
  13933     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36104889: fstp dword ptr [ebp - 0xdc] */
  13934     fp_push(*(float*)&MEM32(edi + (-0x4))); /* 0x3610488F: fld dword ptr [edi - 4] */
  13935     MEM32(ebp + (-0x34)) = eax; /* 0x36104892: mov dword ptr [ebp - 0x34], eax */
  13936     eax = MEM32(ebp + (-0xDC)); /* 0x36104895: mov eax, dword ptr [ebp - 0xdc] */
  13937     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x3610489B: fstp dword ptr [ebp - 0xd8] */
  13938     fp_push(*(float*)&MEM32(edi)); /* 0x361048A1: fld dword ptr [edi] */
  13939     ecx = MEM32(ebp + (-0xD8)); /* 0x361048A3: mov ecx, dword ptr [ebp - 0xd8] */
  13940     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x361048A9: fstp dword ptr [ebp - 0xd4] */
  13941     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x361048AF: fld dword ptr [ebx + 0xee4] */
  13942     edx = MEM32(ebp + (-0xD4)); /* 0x361048B5: mov edx, dword ptr [ebp - 0xd4] */
  13943     fp_push(_st[0]); /* 0x361048BB: fld st(0) */
  13944     MEM32(ebp + (-0x20)) = eax; /* 0x361048BD: mov dword ptr [ebp - 0x20], eax */
  13945     _st[0] *= (double)*(float*)ADDR(ebp + (-0xDC)); /* 0x361048C0: fmul dword ptr [ebp - 0xdc] */
  13946     MEM32(ebp + (-0x1C)) = ecx; /* 0x361048C6: mov dword ptr [ebp - 0x1c], ecx */
  13947     MEM32(ebp + (-0x18)) = edx; /* 0x361048C9: mov dword ptr [ebp - 0x18], edx */
  13948     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361048CC: fstp dword ptr [ebp - 0x20] */
  13949     eax = MEM32(ebp + (-0x20)); /* 0x361048CF: mov eax, dword ptr [ebp - 0x20] */
  13950     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361048D2: fld dword ptr [ebp - 0x1c] */
  13951     MEM32(ebp + (-0xB4)) = eax; /* 0x361048D5: mov dword ptr [ebp - 0xb4], eax */
  13952     _st[0] *= _st[1]; /* 0x361048DB: fmul st(1) */
  13953     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361048DD: fstp dword ptr [ebp - 0x1c] */
  13954     ecx = MEM32(ebp + (-0x1C)); /* 0x361048E0: mov ecx, dword ptr [ebp - 0x1c] */
  13955     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361048E3: fld dword ptr [ebp - 0x18] */
  13956     MEM32(ebp + (-0xB0)) = ecx; /* 0x361048E6: mov dword ptr [ebp - 0xb0], ecx */
  13957     _st[0] *= _st[1]; /* 0x361048EC: fmul st(1) */
  13958     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361048EE: fstp dword ptr [ebp - 0x18] */
  13959     edx = MEM32(ebp + (-0x18)); /* 0x361048F1: mov edx, dword ptr [ebp - 0x18] */
  13960     MEM32(ebp + (-0xAC)) = edx; /* 0x361048F4: mov dword ptr [ebp - 0xac], edx */
  13961     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361048FA: fstp st(0) */
  13962     fp_push(*(float*)&MEM32(edi + 0x10)); /* 0x361048FC: fld dword ptr [edi + 0x10] */
  13963     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361048FF: fstp dword ptr [ebp - 0x80] */
  13964     fp_push(*(float*)&MEM32(edi + 0x14)); /* 0x36104902: fld dword ptr [edi + 0x14] */
  13965     eax = MEM32(ebp + (-0x80)); /* 0x36104905: mov eax, dword ptr [ebp - 0x80] */
  13966     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36104908: fstp dword ptr [ebp - 0x7c] */
  13967     fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x3610490B: fld dword ptr [edi + 0x18] */
  13968     ecx = MEM32(ebp + (-0x7C)); /* 0x3610490E: mov ecx, dword ptr [ebp - 0x7c] */
  13969     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36104911: fstp dword ptr [ebp - 0x78] */
  13970     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x36104914: fld dword ptr [ebx + 0xee4] */
  13971     edx = MEM32(ebp + (-0x78)); /* 0x3610491A: mov edx, dword ptr [ebp - 0x78] */
  13972     fp_push(_st[0]); /* 0x3610491D: fld st(0) */
  13973     MEM32(ebp + (-0xC4)) = eax; /* 0x3610491F: mov dword ptr [ebp - 0xc4], eax */
  13974     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36104925: fmul dword ptr [ebp - 0x80] */
  13975     eax = MEM32(ebp + (-0x14)); /* 0x36104928: mov eax, dword ptr [ebp - 0x14] */
  13976     MEM32(ebp + (-0xC0)) = ecx; /* 0x3610492B: mov dword ptr [ebp - 0xc0], ecx */
  13977     SET_LO8(ecx, MEM8(eax + ebx + 0xE2C)); /* 0x36104931: mov cl, byte ptr [eax + ebx + 0xe2c] */
  13978     /* test LO8(ecx), LO8(ecx) */ /* 0x36104938: test cl, cl */
  13979     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  13980     _cf = 0;
  13981     _flag_k = FK_NARROW(FK_TEST, 24);
  13982     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC4)) = _v; } /* 0x3610493A: fstp dword ptr [ebp - 0xc4] */
  13983     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36104940: fld dword ptr [ebp - 0xc0] */
  13984     MEM32(ebp + (-0xBC)) = edx; /* 0x36104946: mov dword ptr [ebp - 0xbc], edx */
  13985     _st[0] *= _st[1]; /* 0x3610494C: fmul st(1) */
  13986     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC0)) = _v; } /* 0x3610494E: fstp dword ptr [ebp - 0xc0] */
  13987     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36104954: fld dword ptr [ebp - 0xbc] */
  13988     _st[0] *= _st[1]; /* 0x3610495A: fmul st(1) */
  13989     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xBC)) = _v; } /* 0x3610495C: fstp dword ptr [ebp - 0xbc] */
  13990     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104962: fstp st(0) */
  13991     if (TEST_Z(_flag_a, _flag_b)) goto L_361049AB; /* 0x36104964: je 0x361049ab */
  13992 L_36104966:
  13993     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36104966: fld dword ptr [ebp - 0x20] */
  13994     _st[0] = -_st[0]; /* 0x36104969: fchs  */
  13995     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3610496B: fstp dword ptr [ebp - 0xa8] */
  13996     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36104971: fld dword ptr [ebp - 0x1c] */
  13997     ecx = MEM32(ebp + (-0xA8)); /* 0x36104974: mov ecx, dword ptr [ebp - 0xa8] */
  13998     _st[0] = -_st[0]; /* 0x3610497A: fchs  */
  13999     MEM32(ebp + (-0xB4)) = ecx; /* 0x3610497C: mov dword ptr [ebp - 0xb4], ecx */
  14000     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36104982: fstp dword ptr [ebp - 0xa4] */
  14001     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36104988: fld dword ptr [ebp - 0x18] */
  14002     edx = MEM32(ebp + (-0xA4)); /* 0x3610498B: mov edx, dword ptr [ebp - 0xa4] */
  14003     _st[0] = -_st[0]; /* 0x36104991: fchs  */
  14004     MEM32(ebp + (-0xB0)) = edx; /* 0x36104993: mov dword ptr [ebp - 0xb0], edx */
  14005     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36104999: fstp dword ptr [ebp - 0xa0] */
  14006     eax = MEM32(ebp + (-0xA0)); /* 0x3610499F: mov eax, dword ptr [ebp - 0xa0] */
  14007     MEM32(ebp + (-0xAC)) = eax; /* 0x361049A5: mov dword ptr [ebp - 0xac], eax */
  14008 L_361049AB:
  14009     ecx = ebp + (-0x220); /* 0x361049AB: lea ecx, [ebp - 0x220] */
  14010     PUSH32(esp, ecx); /* 0x361049B1: push ecx */
  14011     ecx = MEM32(ebx + 0x20); /* 0x361049B2: mov ecx, dword ptr [ebx + 0x20] */
  14012     RECOMP_ICALL(0x36133FC0u); /* 0x361049B5: call 0x36133fc0 */ /* not lifted */
  14013     RECOMP_FLAGS_IN();
  14014     edx = MEM32(eax); /* 0x361049BA: mov edx, dword ptr [eax] */
  14015     ecx = MEM32(eax + 0x4); /* 0x361049BC: mov ecx, dword ptr [eax + 4] */
  14016     MEM32(ebp + (-0x8C)) = edx; /* 0x361049BF: mov dword ptr [ebp - 0x8c], edx */
  14017     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361049C5: fld dword ptr [ebp - 0x8c] */
  14018     edx = MEM32(eax + 0x8); /* 0x361049CB: mov edx, dword ptr [eax + 8] */
  14019     eax = MEM32(ebp + (-0x10)); /* 0x361049CE: mov eax, dword ptr [ebp - 0x10] */
  14020     _st[0] += (double)*(float*)ADDR(eax); /* 0x361049D1: fadd dword ptr [eax] */
  14021     MEM32(ebp + (-0x88)) = ecx; /* 0x361049D3: mov dword ptr [ebp - 0x88], ecx */
  14022     ecx = MEM32(ebx + 0x28); /* 0x361049D9: mov ecx, dword ptr [ebx + 0x28] */
  14023     MEM32(ebp + (-0x84)) = edx; /* 0x361049DC: mov dword ptr [ebp - 0x84], edx */
  14024     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x361049E2: fstp dword ptr [ebp - 0x8c] */
  14025     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361049E8: fld dword ptr [ebp - 0x88] */
  14026     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x361049EE: fadd dword ptr [eax + 4] */
  14027     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x361049F1: fstp dword ptr [ebp - 0x88] */
  14028     edx = MEM32(ebp + (-0x88)); /* 0x361049F7: mov edx, dword ptr [ebp - 0x88] */
  14029     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x361049FD: fld dword ptr [ebp - 0x84] */
  14030     _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x36104A03: fadd dword ptr [eax + 8] */
  14031     eax = esi; /* 0x36104A06: mov eax, esi */
  14032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  14033     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14034     eax = eax + ecx; /* 0x36104A08: add eax, ecx */
  14035     _flag_k = FK_ADD;
  14036     ecx = MEM32(ebp + (-0x8C)); /* 0x36104A0A: mov ecx, dword ptr [ebp - 0x8c] */
  14037     MEM32(eax) = ecx; /* 0x36104A10: mov dword ptr [eax], ecx */
  14038     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36104A12: fstp dword ptr [ebp - 0x84] */
  14039     ecx = MEM32(ebp + (-0x84)); /* 0x36104A18: mov ecx, dword ptr [ebp - 0x84] */
  14040     MEM32(eax + 0x4) = edx; /* 0x36104A1E: mov dword ptr [eax + 4], edx */
  14041     MEM32(eax + 0x8) = ecx; /* 0x36104A21: mov dword ptr [eax + 8], ecx */
  14042     edx = MEM32(ebx + 0x28); /* 0x36104A24: mov edx, dword ptr [ebx + 0x28] */
  14043     ecx = MEM32(ebp + (-0xB4)); /* 0x36104A27: mov ecx, dword ptr [ebp - 0xb4] */
  14044     eax = esi + edx + 0xC; /* 0x36104A2D: lea eax, [esi + edx + 0xc] */
  14045     edx = MEM32(ebp + (-0xB0)); /* 0x36104A31: mov edx, dword ptr [ebp - 0xb0] */
  14046     MEM32(eax) = ecx; /* 0x36104A37: mov dword ptr [eax], ecx */
  14047     ecx = MEM32(ebp + (-0xAC)); /* 0x36104A39: mov ecx, dword ptr [ebp - 0xac] */
  14048     MEM32(eax + 0x4) = edx; /* 0x36104A3F: mov dword ptr [eax + 4], edx */
  14049     MEM32(eax + 0x8) = ecx; /* 0x36104A42: mov dword ptr [eax + 8], ecx */
  14050     edx = MEM32(ebx + 0x28); /* 0x36104A45: mov edx, dword ptr [ebx + 0x28] */
  14051     ecx = MEM32(ebp + (-0xC4)); /* 0x36104A48: mov ecx, dword ptr [ebp - 0xc4] */
  14052     eax = esi + edx + 0x18; /* 0x36104A4E: lea eax, [esi + edx + 0x18] */
  14053     edx = MEM32(ebp + (-0xC0)); /* 0x36104A52: mov edx, dword ptr [ebp - 0xc0] */
  14054     MEM32(eax) = ecx; /* 0x36104A58: mov dword ptr [eax], ecx */
  14055     ecx = MEM32(ebp + (-0xBC)); /* 0x36104A5A: mov ecx, dword ptr [ebp - 0xbc] */
  14056     MEM32(eax + 0x4) = edx; /* 0x36104A60: mov dword ptr [eax + 4], edx */
  14057     edx = MEM32(ebp + (-0xB8)); /* 0x36104A63: mov edx, dword ptr [ebp - 0xb8] */
  14058     MEM32(eax + 0x8) = ecx; /* 0x36104A69: mov dword ptr [eax + 8], ecx */
  14059     PUSH32(esp, edx); /* 0x36104A6C: push edx */
  14060     ecx = ebx + 0xEA8; /* 0x36104A6D: lea ecx, [ebx + 0xea8] */
  14061     RECOMP_ICALL(0x36137D80u); /* 0x36104A73: call 0x36137d80 */ /* not lifted */
  14062     RECOMP_FLAGS_IN();
  14063     ecx = MEM32(ebx + 0x28); /* 0x36104A78: mov ecx, dword ptr [ebx + 0x28] */
  14064     MEM32(esi + ecx + 0x24) = eax; /* 0x36104A7B: mov dword ptr [esi + ecx + 0x24], eax */
  14065     edx = MEM32(ebx + 0x28); /* 0x36104A7F: mov edx, dword ptr [ebx + 0x28] */
  14066     eax = MEM32(ebp + (-0x34)); /* 0x36104A82: mov eax, dword ptr [ebp - 0x34] */
  14067     MEM32(esi + edx + 0x28) = eax; /* 0x36104A85: mov dword ptr [esi + edx + 0x28], eax */
  14068     ecx = MEM32(ebx + 0x28); /* 0x36104A89: mov ecx, dword ptr [ebx + 0x28] */
  14069     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36104A8C: mov byte ptr [esi + ecx + 0x2c], 1 */
  14070     ecx = MEM32(ebp + (-0x38)); /* 0x36104A91: mov ecx, dword ptr [ebp - 0x38] */
  14071     goto L_36104E9F; /* 0x36104A94: jmp 0x36104e9f */
  14072 L_36104A99:
  14073     eax = MEM32(ebp + (-0x24)); /* 0x36104A99: mov eax, dword ptr [ebp - 0x24] */
  14074     /* test eax, eax */ /* 0x36104A9C: test eax, eax */
  14075     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14076     _cf = 0;
  14077     _flag_k = FK_TEST;
  14078     if (TEST_Z(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104A9E: je 0x36104e91 */
  14079 L_36104AA4:
  14080     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x36104AA4: mov al, byte ptr [ebx + 0xe6c] */
  14081     /* test LO8(eax), LO8(eax) */ /* 0x36104AAA: test al, al */
  14082     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14083     _cf = 0;
  14084     _flag_k = FK_NARROW(FK_TEST, 24);
  14085     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104AAC: jne 0x36104e91 */
  14086 L_36104AB2:
  14087     edx = ebp + (-0xC); /* 0x36104AB2: lea edx, [ebp - 0xc] */
  14088     PUSH32(esp, edx); /* 0x36104AB5: push edx */
  14089     MEM32(ebp + (-0xC)) = 0; /* 0x36104AB6: mov dword ptr [ebp - 0xc], 0 */
  14090     MEM32(ebp + (-0x8)) = 0; /* 0x36104ABD: mov dword ptr [ebp - 8], 0 */
  14091     MEM32(ebp + (-0x4)) = 0; /* 0x36104AC4: mov dword ptr [ebp - 4], 0 */
  14092     RECOMP_ICALL(0x360FCA70u); /* 0x36104ACB: call 0x360fca70 */ /* not lifted */
  14093     RECOMP_FLAGS_IN();
  14094     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104AD0: fld dword ptr [ebp - 8] */
  14095     _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x36104AD3: fmul dword ptr [0x36174f9c] */
  14096     eax = MEM32(ebp + (-0xC)); /* 0x36104AD9: mov eax, dword ptr [ebp - 0xc] */
  14097     edx = MEM32(ebp + (-0x4)); /* 0x36104ADC: mov edx, dword ptr [ebp - 4] */
  14098     MEM32(ebp + (-0x64)) = eax; /* 0x36104ADF: mov dword ptr [ebp - 0x64], eax */
  14099     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104AE2: fstp dword ptr [ebp - 8] */
  14100     ecx = MEM32(ebp + (-0x8)); /* 0x36104AE5: mov ecx, dword ptr [ebp - 8] */
  14101     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x36104AE8: fld dword ptr [ebx + 0xee8] */
  14102     MEM32(ebp + (-0x60)) = ecx; /* 0x36104AEE: mov dword ptr [ebp - 0x60], ecx */
  14103     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104AF1: fld dword ptr [ebp - 0xc] */
  14104     MEM32(ebp + (-0x5C)) = edx; /* 0x36104AF4: mov dword ptr [ebp - 0x5c], edx */
  14105     _st[0] *= _st[1]; /* 0x36104AF7: fmul st(1) */
  14106     esi = MEM32(ebp + (-0x10)); /* 0x36104AF9: mov esi, dword ptr [ebp - 0x10] */
  14107     eax = esi; /* 0x36104AFC: mov eax, esi */
  14108     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36104AFE: fstp dword ptr [ebp - 0x64] */
  14109     ecx = MEM32(ebp + (-0x64)); /* 0x36104B01: mov ecx, dword ptr [ebp - 0x64] */
  14110     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36104B04: fld dword ptr [ebp - 0x60] */
  14111     MEM32(eax) = ecx; /* 0x36104B07: mov dword ptr [eax], ecx */
  14112     _st[0] *= _st[1]; /* 0x36104B09: fmul st(1) */
  14113     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36104B0B: fstp dword ptr [ebp - 0x60] */
  14114     edx = MEM32(ebp + (-0x60)); /* 0x36104B0E: mov edx, dword ptr [ebp - 0x60] */
  14115     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36104B11: fld dword ptr [ebp - 0x5c] */
  14116     MEM32(eax + 0x4) = edx; /* 0x36104B14: mov dword ptr [eax + 4], edx */
  14117     _st[0] *= _st[1]; /* 0x36104B17: fmul st(1) */
  14118     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36104B19: fstp dword ptr [ebp - 0x5c] */
  14119     ecx = MEM32(ebp + (-0x5C)); /* 0x36104B1C: mov ecx, dword ptr [ebp - 0x5c] */
  14120     MEM32(eax + 0x8) = ecx; /* 0x36104B1F: mov dword ptr [eax + 8], ecx */
  14121     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B22: fstp st(0) */
  14122     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104B24: fld dword ptr [ebp - 8] */
  14123     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B27: fld dword ptr [ebp - 4] */
  14124     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104B2A: fld dword ptr [ebp - 0xc] */
  14125     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B2D: fmul dword ptr [ebp - 0xc] */
  14126     fp_push(_st[1]); /* 0x36104B30: fld st(1) */
  14127     _st[0] *= _st[2]; /* 0x36104B32: fmul st(2) */
  14128     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B34: faddp st(1) */
  14129     fp_push(_st[2]); /* 0x36104B36: fld st(2) */
  14130     _st[0] *= _st[3]; /* 0x36104B38: fmul st(3) */
  14131     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B3A: faddp st(1) */
  14132     _st[0] = sqrt(_st[0]); /* 0x36104B3C: fsqrt  */
  14133     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x36104B3E: fstp st(2) */
  14134     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B40: fstp st(0) */
  14135     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104B42: fdivr dword ptr [0x36170380] */
  14136     fp_push(_st[0]); /* 0x36104B48: fld st(0) */
  14137     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B4A: fmul dword ptr [ebp - 0xc] */
  14138     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36104B4D: fstp dword ptr [ebp - 0xc] */
  14139     fp_push(_st[0]); /* 0x36104B50: fld st(0) */
  14140     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104B52: fmul dword ptr [ebp - 8] */
  14141     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104B55: fstp dword ptr [ebp - 8] */
  14142     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B58: fld dword ptr [ebp - 4] */
  14143     _st[0] *= _st[1]; /* 0x36104B5B: fmul st(1) */
  14144     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36104B5D: fstp dword ptr [ebp - 4] */
  14145     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B60: fstp st(0) */
  14146     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104B62: call dword ptr [0x3616f254] */
  14147     RECOMP_FLAGS_IN();
  14148     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  14149     eax = eax & 0x7FFFu; /* 0x36104B68: and eax, 0x7fff */
  14150     _cf = 0;
  14151     _flag_k = FK_TEST;
  14152     MEM32(ebp + (-0x30)) = eax; /* 0x36104B6D: mov dword ptr [ebp - 0x30], eax */
  14153     fp_push((double)(int32_t)MEM32(ebp + (-0x30))); /* 0x36104B70: fild dword ptr [ebp - 0x30] */
  14154     edx = ebp + (-0xD0); /* 0x36104B73: lea edx, [ebp - 0xd0] */
  14155     PUSH32(esp, edx); /* 0x36104B79: push edx */
  14156     PUSH32(esp, esi); /* 0x36104B7A: push esi */
  14157     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x36104B7B: fmul dword ptr [0x36175f30] */
  14158     MEM32(ebp + (-0xD0)) = 0; /* 0x36104B81: mov dword ptr [ebp - 0xd0], 0 */
  14159     MEM32(ebp + (-0xCC)) = 0; /* 0x36104B8B: mov dword ptr [ebp - 0xcc], 0 */
  14160     MEM32(ebp + (-0xC8)) = 0; /* 0x36104B95: mov dword ptr [ebp - 0xc8], 0 */
  14161     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36104B9F: fstp dword ptr [ebp - 0x2c] */
  14162     RECOMP_ICALL(0x360FCE60u); /* 0x36104BA2: call 0x360fce60 */ /* not lifted */
  14163     RECOMP_FLAGS_IN();
  14164     eax = MEM32(ebp + (-0xD0)); /* 0x36104BA7: mov eax, dword ptr [ebp - 0xd0] */
  14165     ecx = MEM32(ebp + (-0xCC)); /* 0x36104BAD: mov ecx, dword ptr [ebp - 0xcc] */
  14166     edx = MEM32(ebp + (-0xC8)); /* 0x36104BB3: mov edx, dword ptr [ebp - 0xc8] */
  14167     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  14168     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14169     esp = esp + 0xCu; /* 0x36104BB9: add esp, 0xc */
  14170     _flag_k = FK_ADD;
  14171     MEM32(ebp + (-0xEC)) = eax; /* 0x36104BBC: mov dword ptr [ebp - 0xec], eax */
  14172     MEM32(ebp + (-0xE8)) = ecx; /* 0x36104BC2: mov dword ptr [ebp - 0xe8], ecx */
  14173     MEM32(ebp + (-0xE4)) = edx; /* 0x36104BC8: mov dword ptr [ebp - 0xe4], edx */
  14174     MEM32(ebp + (-0xE0)) = 0; /* 0x36104BCE: mov dword ptr [ebp - 0xe0], 0 */
  14175     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104BD8: fld dword ptr [ebp - 0x2c] */
  14176     MEM32(ebp + (-0x9C)) = eax; /* 0x36104BDB: mov dword ptr [ebp - 0x9c], eax */
  14177     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36104BE1: fcomp dword ptr [0x3617040c] */
  14178     fp_pop();
  14179     eax = MEM32(ebp + (-0xE0)); /* 0x36104BE7: mov eax, dword ptr [ebp - 0xe0] */
  14180     MEM32(ebp + (-0x90)) = eax; /* 0x36104BED: mov dword ptr [ebp - 0x90], eax */
  14181     MEM32(ebp + (-0x98)) = ecx; /* 0x36104BF3: mov dword ptr [ebp - 0x98], ecx */
  14182     MEM32(ebp + (-0x94)) = edx; /* 0x36104BF9: mov dword ptr [ebp - 0x94], edx */
  14183     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104BFF: fnstsw ax */
  14184     /* test HI8(eax), 1 */ /* 0x36104C01: test ah, 1 */
  14185     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  14186     _cf = 0;
  14187     _flag_k = FK_NARROW(FK_TEST, 24);
  14188     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C04: jne 0x36104c21 */
  14189 L_36104C06:
  14190     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C06: fld dword ptr [ebp - 0x2c] */
  14191     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36104C09: fcomp qword ptr [0x361708b8] */
  14192     fp_pop();
  14193     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104C0F: fnstsw ax */
  14194     /* test HI8(eax), 1 */ /* 0x36104C11: test ah, 1 */
  14195     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  14196     _cf = 0;
  14197     _flag_k = FK_NARROW(FK_TEST, 24);
  14198     if (TEST_Z(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C14: je 0x36104c21 */
  14199 L_36104C16:
  14200     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C16: fld dword ptr [ebp - 0x2c] */
  14201     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36104C19: fmul dword ptr [0x36170464] */
  14202     goto L_36104C45; /* 0x36104C1F: jmp 0x36104c45 */
  14203 L_36104C21:
  14204     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C21: fld dword ptr [ebp - 0x2c] */
  14205     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  14206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14207     esp = esp - 8; /* 0x36104C24: sub esp, 8 */
  14208     _flag_k = FK_CMP;
  14209     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x36104C27: fmul dword ptr [0x361708b4] */
  14210     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104C2D: fst dword ptr [ebp - 0x30] */
  14211     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36104C30: fstp qword ptr [esp] */
  14212     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x36104C33: call dword ptr [0x3616f198] */
  14213     RECOMP_FLAGS_IN();
  14214     _st[0] = (double)*(float*)ADDR(ebp + (-0x30)) - _st[0]; /* 0x36104C39: fsubr dword ptr [ebp - 0x30] */
  14215     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  14216     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14217     esp = esp + 8; /* 0x36104C3C: add esp, 8 */
  14218     _flag_k = FK_ADD;
  14219     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36104C3F: fmul dword ptr [0x361708b0] */
  14220 L_36104C45:
  14221     fp_push(_st[0]); /* 0x36104C45: fld st(0) */
  14222     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36104C47: fsin  */
  14223     fp_push(_st[0]); /* 0x36104C49: fld st(0) */
  14224     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104C4B: fmul dword ptr [ebp - 0xc] */
  14225     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36104C4E: fstp dword ptr [ebp - 0x48] */
  14226     eax = MEM32(ebp + (-0x48)); /* 0x36104C51: mov eax, dword ptr [ebp - 0x48] */
  14227     MEM32(ebp + (-0x74)) = eax; /* 0x36104C54: mov dword ptr [ebp - 0x74], eax */
  14228     fp_push(_st[0]); /* 0x36104C57: fld st(0) */
  14229     MEM32(ebp + (-0xFC)) = eax; /* 0x36104C59: mov dword ptr [ebp - 0xfc], eax */
  14230     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104C5F: fmul dword ptr [ebp - 8] */
  14231     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36104C62: fstp dword ptr [ebp - 0x44] */
  14232     ecx = MEM32(ebp + (-0x44)); /* 0x36104C65: mov ecx, dword ptr [ebp - 0x44] */
  14233     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104C68: fld dword ptr [ebp - 4] */
  14234     MEM32(ebp + (-0x70)) = ecx; /* 0x36104C6B: mov dword ptr [ebp - 0x70], ecx */
  14235     _st[0] *= _st[1]; /* 0x36104C6E: fmul st(1) */
  14236     MEM32(ebp + (-0xF8)) = ecx; /* 0x36104C70: mov dword ptr [ebp - 0xf8], ecx */
  14237     ecx = ebp + (-0x9C); /* 0x36104C76: lea ecx, [ebp - 0x9c] */
  14238     PUSH32(esp, ecx); /* 0x36104C7C: push ecx */
  14239     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36104C7D: fstp dword ptr [ebp - 0x40] */
  14240     edx = MEM32(ebp + (-0x40)); /* 0x36104C80: mov edx, dword ptr [ebp - 0x40] */
  14241     MEM32(ebp + (-0x6C)) = edx; /* 0x36104C83: mov dword ptr [ebp - 0x6c], edx */
  14242     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104C86: fstp st(0) */
  14243     ecx = ebp + (-0xFC); /* 0x36104C88: lea ecx, [ebp - 0xfc] */
  14244     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36104C8E: fcos  */
  14245     MEM32(ebp + (-0xF4)) = edx; /* 0x36104C90: mov dword ptr [ebp - 0xf4], edx */
  14246     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36104C96: fstp dword ptr [ebp - 0x3c] */
  14247     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36104C99: fld dword ptr [ebp - 0x48] */
  14248     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104C9C: fmul dword ptr [ebp - 0x48] */
  14249     esi = MEM32(ebp + (-0x3C)); /* 0x36104C9F: mov esi, dword ptr [ebp - 0x3c] */
  14250     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36104CA2: fld dword ptr [ebp - 0x3c] */
  14251     MEM32(ebp + (-0x68)) = esi; /* 0x36104CA5: mov dword ptr [ebp - 0x68], esi */
  14252     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36104CA8: fmul dword ptr [ebp - 0x3c] */
  14253     MEM32(ebp + (-0xF0)) = esi; /* 0x36104CAB: mov dword ptr [ebp - 0xf0], esi */
  14254     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB1: faddp st(1) */
  14255     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36104CB3: fld dword ptr [ebp - 0x40] */
  14256     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36104CB6: fmul dword ptr [ebp - 0x40] */
  14257     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB9: faddp st(1) */
  14258     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36104CBB: fld dword ptr [ebp - 0x44] */
  14259     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x36104CBE: fmul dword ptr [ebp - 0x44] */
  14260     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CC1: faddp st(1) */
  14261     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104CC3: fdivr dword ptr [0x36170380] */
  14262     fp_push(_st[0]); /* 0x36104CC9: fld st(0) */
  14263     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104CCB: fmul dword ptr [ebp - 0x48] */
  14264     _st[0] = -_st[0]; /* 0x36104CCE: fchs  */
  14265     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36104CD0: fstp dword ptr [ebp - 0x74] */
  14266     edi = MEM32(ebp + (-0x74)); /* 0x36104CD3: mov edi, dword ptr [ebp - 0x74] */
  14267     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36104CD6: fld dword ptr [ebp - 0x70] */
  14268     MEM32(ebp + (-0x198)) = edi; /* 0x36104CD9: mov dword ptr [ebp - 0x198], edi */
  14269     _st[0] *= _st[1]; /* 0x36104CDF: fmul st(1) */
  14270     _st[0] = -_st[0]; /* 0x36104CE1: fchs  */
  14271     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36104CE3: fstp dword ptr [ebp - 0x70] */
  14272     edi = MEM32(ebp + (-0x70)); /* 0x36104CE6: mov edi, dword ptr [ebp - 0x70] */
  14273     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36104CE9: fld dword ptr [ebp - 0x6c] */
  14274     MEM32(ebp + (-0x194)) = edi; /* 0x36104CEC: mov dword ptr [ebp - 0x194], edi */
  14275     _st[0] *= _st[1]; /* 0x36104CF2: fmul st(1) */
  14276     _st[0] = -_st[0]; /* 0x36104CF4: fchs  */
  14277     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36104CF6: fstp dword ptr [ebp - 0x6c] */
  14278     edi = MEM32(ebp + (-0x6C)); /* 0x36104CF9: mov edi, dword ptr [ebp - 0x6c] */
  14279     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36104CFC: fld dword ptr [ebp - 0x68] */
  14280     MEM32(ebp + (-0x190)) = edi; /* 0x36104CFF: mov dword ptr [ebp - 0x190], edi */
  14281     _st[0] *= _st[1]; /* 0x36104D05: fmul st(1) */
  14282     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36104D07: fstp dword ptr [ebp - 0x68] */
  14283     edi = MEM32(ebp + (-0x68)); /* 0x36104D0A: mov edi, dword ptr [ebp - 0x68] */
  14284     MEM32(ebp + (-0x18C)) = edi; /* 0x36104D0D: mov dword ptr [ebp - 0x18c], edi */
  14285     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104D13: fstp st(0) */
  14286     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D15: call dword ptr [0x3617019c] */
  14287     RECOMP_FLAGS_IN();
  14288     edx = MEM32(eax); /* 0x36104D1B: mov edx, dword ptr [eax] */
  14289     ecx = MEM32(eax + 0x4); /* 0x36104D1D: mov ecx, dword ptr [eax + 4] */
  14290     MEM32(ebp + (-0x108)) = ecx; /* 0x36104D20: mov dword ptr [ebp - 0x108], ecx */
  14291     MEM32(ebp + (-0x10C)) = edx; /* 0x36104D26: mov dword ptr [ebp - 0x10c], edx */
  14292     edx = MEM32(eax + 0x8); /* 0x36104D2C: mov edx, dword ptr [eax + 8] */
  14293     eax = MEM32(eax + 0xC); /* 0x36104D2F: mov eax, dword ptr [eax + 0xc] */
  14294     ecx = ebp + (-0x198); /* 0x36104D32: lea ecx, [ebp - 0x198] */
  14295     PUSH32(esp, ecx); /* 0x36104D38: push ecx */
  14296     ecx = ebp + (-0x10C); /* 0x36104D39: lea ecx, [ebp - 0x10c] */
  14297     MEM32(ebp + (-0x104)) = edx; /* 0x36104D3F: mov dword ptr [ebp - 0x104], edx */
  14298     MEM32(ebp + (-0x100)) = eax; /* 0x36104D45: mov dword ptr [ebp - 0x100], eax */
  14299     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D4B: call dword ptr [0x3617019c] */
  14300     RECOMP_FLAGS_IN();
  14301     edx = MEM32(eax); /* 0x36104D51: mov edx, dword ptr [eax] */
  14302     MEM32(ebp + (-0x9C)) = edx; /* 0x36104D53: mov dword ptr [ebp - 0x9c], edx */
  14303     ecx = MEM32(eax + 0x4); /* 0x36104D59: mov ecx, dword ptr [eax + 4] */
  14304     fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36104D5C: fld dword ptr [ebp - 0x9c] */
  14305     MEM32(ebp + (-0x98)) = ecx; /* 0x36104D62: mov dword ptr [ebp - 0x98], ecx */
  14306     edx = MEM32(eax + 0x8); /* 0x36104D68: mov edx, dword ptr [eax + 8] */
  14307     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36104D6B: fst dword ptr [ebp - 0x54] */
  14308     fp_push(*(float*)&MEM32(ebp + (-0x98))); /* 0x36104D6E: fld dword ptr [ebp - 0x98] */
  14309     MEM32(ebp + (-0x94)) = edx; /* 0x36104D74: mov dword ptr [ebp - 0x94], edx */
  14310     eax = MEM32(eax + 0xC); /* 0x36104D7A: mov eax, dword ptr [eax + 0xc] */
  14311     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36104D7D: fstp dword ptr [ebp - 0x50] */
  14312     fp_push(*(float*)&MEM32(ebp + (-0x94))); /* 0x36104D80: fld dword ptr [ebp - 0x94] */
  14313     ecx = MEM32(ebp + (-0x54)); /* 0x36104D86: mov ecx, dword ptr [ebp - 0x54] */
  14314     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36104D89: fstp dword ptr [ebp - 0x4c] */
  14315     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104D8C: fld dword ptr [ebp - 0x50] */
  14316     edx = MEM32(ebp + (-0x50)); /* 0x36104D8F: mov edx, dword ptr [ebp - 0x50] */
  14317     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36104D92: fmul dword ptr [ebp - 4] */
  14318     MEM32(ebp + (-0xD0)) = ecx; /* 0x36104D95: mov dword ptr [ebp - 0xd0], ecx */
  14319     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104D9B: fld dword ptr [ebp - 0x4c] */
  14320     ecx = MEM32(ebp + (-0xC)); /* 0x36104D9E: mov ecx, dword ptr [ebp - 0xc] */
  14321     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104DA1: fmul dword ptr [ebp - 8] */
  14322     MEM32(ebp + (-0x12C)) = ecx; /* 0x36104DA4: mov dword ptr [ebp - 0x12c], ecx */
  14323     MEM32(ebp + (-0x90)) = eax; /* 0x36104DAA: mov dword ptr [ebp - 0x90], eax */
  14324     eax = MEM32(ebp + (-0x4C)); /* 0x36104DB0: mov eax, dword ptr [ebp - 0x4c] */
  14325     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DB3: fsubp st(1) */
  14326     MEM32(ebp + (-0xC8)) = eax; /* 0x36104DB5: mov dword ptr [ebp - 0xc8], eax */
  14327     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104DBB: fld dword ptr [ebp - 0x4c] */
  14328     eax = MEM32(ebp + (-0x8)); /* 0x36104DBE: mov eax, dword ptr [ebp - 8] */
  14329     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104DC1: fmul dword ptr [ebp - 0xc] */
  14330     MEM32(ebp + (-0x124)) = edx; /* 0x36104DC4: mov dword ptr [ebp - 0x124], edx */
  14331     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104DCA: fld dword ptr [ebp - 4] */
  14332     MEM32(ebp + (-0x120)) = eax; /* 0x36104DCD: mov dword ptr [ebp - 0x120], eax */
  14333     _st[0] *= _st[3]; /* 0x36104DD3: fmul st(3) */
  14334     eax = MEM32(ebp + (-0x4)); /* 0x36104DD5: mov eax, dword ptr [ebp - 4] */
  14335     MEM32(ebp + (-0xCC)) = edx; /* 0x36104DD8: mov dword ptr [ebp - 0xcc], edx */
  14336     edx = MEM32(ebp + (-0x4C)); /* 0x36104DDE: mov edx, dword ptr [ebp - 0x4c] */
  14337     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DE1: fsubp st(1) */
  14338     MEM32(ebp + (-0x118)) = edx; /* 0x36104DE3: mov dword ptr [ebp - 0x118], edx */
  14339     MEM32(ebp + (-0x114)) = eax; /* 0x36104DE9: mov dword ptr [ebp - 0x114], eax */
  14340     esi = ebp + (-0x130); /* 0x36104DEF: lea esi, [ebp - 0x130] */
  14341     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104DF5: fstp dword ptr [ebp - 0x30] */
  14342     edi = ebp + (-0x188); /* 0x36104DF8: lea edi, [ebp - 0x188] */
  14343     ecx = MEM32(ebp + (-0x30)); /* 0x36104DFE: mov ecx, dword ptr [ebp - 0x30] */
  14344     fp_push(_st[1]); /* 0x36104E01: fld st(1) */
  14345     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104E03: fmul dword ptr [ebp - 8] */
  14346     MEM32(ebp + (-0x11C)) = ecx; /* 0x36104E06: mov dword ptr [ebp - 0x11c], ecx */
  14347     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104E0C: fld dword ptr [ebp - 0x50] */
  14348     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104E0F: fmul dword ptr [ebp - 0xc] */
  14349     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104E12: fsubp st(1) */
  14350     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36104E14: fstp dword ptr [ebp - 0x15c] */
  14351     ecx = MEM32(ebp + (-0x15C)); /* 0x36104E1A: mov ecx, dword ptr [ebp - 0x15c] */
  14352     fp_xch(1); /* 0x36104E20: fxch st(1) */
  14353     MEM32(ebp + (-0x110)) = ecx; /* 0x36104E22: mov dword ptr [ebp - 0x110], ecx */
  14354     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x130)) = _v; } /* 0x36104E28: fstp dword ptr [ebp - 0x130] */
  14355     ecx = 9; /* 0x36104E2E: mov ecx, 9 */
  14356     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x128)) = _v; } /* 0x36104E33: fstp dword ptr [ebp - 0x128] */
  14357     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E39: 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; }
  14358     ecx = ebp + (-0x188); /* 0x36104E3B: lea ecx, [ebp - 0x188] */
  14359     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36104E41: call dword ptr [0x361701f8] */
  14360     RECOMP_FLAGS_IN();
  14361     edx = MEM32(ebp + (-0x28)); /* 0x36104E47: mov edx, dword ptr [ebp - 0x28] */
  14362     eax = MEM32(ebp + (-0x38)); /* 0x36104E4A: mov eax, dword ptr [ebp - 0x38] */
  14363     edi = edx + (-0x8); /* 0x36104E4D: lea edi, [edx - 8] */
  14364     ecx = 9; /* 0x36104E50: mov ecx, 9 */
  14365     esi = ebp + (-0x188); /* 0x36104E55: lea esi, [ebp - 0x188] */
  14366     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E5B: 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; }
  14367     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x36104E5D: fld dword ptr [ebx + 0xedc] */
  14368     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x36104E63: fadd dword ptr [ebx + 0xc] */
  14369     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36104E66: fstp dword ptr [eax] */
  14370     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104E68: call dword ptr [0x3616f254] */
  14371     RECOMP_FLAGS_IN();
  14372     ecx = MEM32(ebp + (-0x14)); /* 0x36104E6E: mov ecx, dword ptr [ebp - 0x14] */
  14373     edi = MEM32(ebp + (-0x28)); /* 0x36104E71: mov edi, dword ptr [ebp - 0x28] */
  14374     esi = MEM32(ebp + (-0x34)); /* 0x36104E74: mov esi, dword ptr [ebp - 0x34] */
  14375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  14376     eax = eax & 1; /* 0x36104E77: and eax, 1 */
  14377     _cf = 0;
  14378     _flag_k = FK_TEST;
  14379     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  14380     SET_LO8(eax, LO8(eax) - 1); /* 0x36104E7A: dec al */
  14381     _flag_k = FK_NARROW(FK_DEC, 24);
  14382     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14383     _cf = (LO8(eax)) != 0;
  14384     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36104E7C: neg al */
  14385     _flag_k = FK_NARROW(FK_CMP, 24);
  14386     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36104E7E: sbb al, al */
  14387       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  14388       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  14389       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  14390     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  14391     SET_LO8(eax, LO8(eax) + 1); /* 0x36104E80: inc al */
  14392     _flag_k = FK_NARROW(FK_INC, 24);
  14393     MEM8(ecx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x36104E82: mov byte ptr [ecx + ebx + 0xe2c], al */
  14394     _flag_a = (uint32_t)(MEM32(ebp + (-0x24))); _flag_b = (uint32_t)(1);
  14395     MEM32(ebp + (-0x24)) = MEM32(ebp + (-0x24)) - 1; /* 0x36104E89: dec dword ptr [ebp - 0x24] */
  14396     _flag_k = FK_DEC;
  14397     ecx = MEM32(ebp + (-0x38)); /* 0x36104E8C: mov ecx, dword ptr [ebp - 0x38] */
  14398     goto L_36104E9F; /* 0x36104E8F: jmp 0x36104e9f */
  14399 L_36104E91:
  14400     edx = MEM32(ebx + 0x28); /* 0x36104E91: mov edx, dword ptr [ebx + 0x28] */
  14401     MEM8(edx + esi + 0x2C) = (uint8_t)(0); /* 0x36104E94: mov byte ptr [edx + esi + 0x2c], 0 */
  14402     MEM32(ecx) = 0xC2C80000u; /* 0x36104E99: mov dword ptr [ecx], 0xc2c80000 */
  14403 L_36104E9F:
  14404     _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(1);
  14405     MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) + 1; /* 0x36104E9F: inc dword ptr [ebp - 0x14] */
  14406     _flag_k = FK_INC;
  14407     edx = MEM32(ebp + (-0x10)); /* 0x36104EA2: mov edx, dword ptr [ebp - 0x10] */
  14408     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  14409     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14410     esi = esi + 0x30u; /* 0x36104EA5: add esi, 0x30 */
  14411     _flag_k = FK_ADD;
  14412     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  14413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14414     ecx = ecx + 4; /* 0x36104EA8: add ecx, 4 */
  14415     _flag_k = FK_ADD;
  14416     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  14417     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14418     edx = edx + 0xCu; /* 0x36104EAB: add edx, 0xc */
  14419     _flag_k = FK_ADD;
  14420     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
  14421     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14422     edi = edi + 0x24u; /* 0x36104EAE: add edi, 0x24 */
  14423     _flag_k = FK_ADD;
  14424     /* cmp esi, 0xC00u */ /* 0x36104EB1: cmp esi, 0xc00 */
  14425     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xC00u);
  14426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14427     _flag_k = FK_CMP;
  14428     MEM32(ebp + (-0x38)) = ecx; /* 0x36104EB7: mov dword ptr [ebp - 0x38], ecx */
  14429     MEM32(ebp + (-0x10)) = edx; /* 0x36104EBA: mov dword ptr [ebp - 0x10], edx */
  14430     MEM32(ebp + (-0x28)) = edi; /* 0x36104EBD: mov dword ptr [ebp - 0x28], edi */
  14431     MEM32(ebp + (-0x34)) = esi; /* 0x36104EC0: mov dword ptr [ebp - 0x34], esi */
  14432     RECOMP_BACKEDGE();
  14433     if (CMP_L(_flag_a, _flag_b)) goto L_3610485A; /* 0x36104EC3: jl 0x3610485a */
  14434 L_36104EC9:
  14435     goto L_3610591D; /* 0x36104EC9: jmp 0x3610591d */
  14436 L_36104ECE:
  14437     esi = ebp + (-0x130); /* 0x36104ECE: lea esi, [ebp - 0x130] */
  14438     edi = 3; /* 0x36104ED4: mov edi, 3 */
  14439 L_36104ED9:
  14440     ecx = esi; /* 0x36104ED9: mov ecx, esi */
  14441     RECOMP_ICALL(MEM32(0x36170174)); /* 0x36104EDB: call dword ptr [0x36170174] */
  14442     RECOMP_FLAGS_IN();
  14443     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  14444     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14445     esi = esi + 0xCu; /* 0x36104EE1: add esi, 0xc */
  14446     _flag_k = FK_ADD;
  14447     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  14448     edi = edi - 1; /* 0x36104EE4: dec edi */
  14449     _flag_k = FK_DEC;
  14450     RECOMP_BACKEDGE();
  14451     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36104ED9; /* 0x36104EE5: jne 0x36104ed9 */
  14452 L_36104EE7:
  14453     fp_push(*(float*)&MEM32(ebx + 0xC)); /* 0x36104EE7: fld dword ptr [ebx + 0xc] */
  14454     _st[0] /= (double)*(float*)ADDR(ebx + 0x10); /* 0x36104EEA: fdiv dword ptr [ebx + 0x10] */
  14455     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x158)) = _v; } /* 0x36104EED: fstp dword ptr [ebp - 0x158] */
  14456     fp_push(*(float*)&MEM32(0x36175F34)); /* 0x36104EF3: fld dword ptr [0x36175f34] */
  14457     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x36104EF9: fdiv dword ptr [ebx + 0xedc] */
  14458     _st[0] *= (double)*(float*)ADDR(ebx + 0xC); /* 0x36104EFF: fmul dword ptr [ebx + 0xc] */
  14459     RECOMP_ICALL(0x3615FD8Cu); /* 0x36104F02: call 0x3615fd8c */ /* not lifted */
  14460     RECOMP_FLAGS_IN();
  14461     edx = MEM32(ebx + 0xE74); /* 0x36104F07: mov edx, dword ptr [ebx + 0xe74] */
  14462     ecx = eax; /* 0x36104F0D: mov ecx, eax */
  14463     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  14464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14465     ecx = ecx - edx; /* 0x36104F0F: sub ecx, edx */
  14466     _flag_k = FK_CMP;
  14467     /* cmp ecx, 2 */ /* 0x36104F11: cmp ecx, 2 */
  14468     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2);
  14469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14470     _flag_k = FK_CMP;
  14471     MEM32(ebp + (-0x38)) = ecx; /* 0x36104F14: mov dword ptr [ebp - 0x38], ecx */
  14472     MEM32(ebx + 0xE74) = eax; /* 0x36104F17: mov dword ptr [ebx + 0xe74], eax */
  14473     if (CMP_LE(_flag_a, _flag_b)) goto L_36104F26; /* 0x36104F1D: jle 0x36104f26 */
  14474 L_36104F1F:
  14475     MEM32(ebp + (-0x38)) = 2; /* 0x36104F1F: mov dword ptr [ebp - 0x38], 2 */
  14476 L_36104F26:
  14477     ecx = MEM32(ebx + 0x20); /* 0x36104F26: mov ecx, dword ptr [ebx + 0x20] */
  14478     eax = ebp + (-0x1E4); /* 0x36104F29: lea eax, [ebp - 0x1e4] */
  14479     PUSH32(esp, eax); /* 0x36104F2F: push eax */
  14480     RECOMP_ICALL(0x36134010u); /* 0x36104F30: call 0x36134010 */ /* not lifted */
  14481     RECOMP_FLAGS_IN();
  14482     ecx = MEM32(eax); /* 0x36104F35: mov ecx, dword ptr [eax] */
  14483     MEM32(ebp + (-0x130)) = ecx; /* 0x36104F37: mov dword ptr [ebp - 0x130], ecx */
  14484     edx = MEM32(eax + 0x4); /* 0x36104F3D: mov edx, dword ptr [eax + 4] */
  14485     ecx = ebp + (-0x1F0); /* 0x36104F40: lea ecx, [ebp - 0x1f0] */
  14486     MEM32(ebp + (-0x12C)) = edx; /* 0x36104F46: mov dword ptr [ebp - 0x12c], edx */
  14487     eax = MEM32(eax + 0x8); /* 0x36104F4C: mov eax, dword ptr [eax + 8] */
  14488     PUSH32(esp, ecx); /* 0x36104F4F: push ecx */
  14489     ecx = MEM32(ebx + 0x20); /* 0x36104F50: mov ecx, dword ptr [ebx + 0x20] */
  14490     MEM32(ebp + (-0x128)) = eax; /* 0x36104F53: mov dword ptr [ebp - 0x128], eax */
  14491     RECOMP_ICALL(0x36134060u); /* 0x36104F59: call 0x36134060 */ /* not lifted */
  14492     RECOMP_FLAGS_IN();
  14493     edx = MEM32(eax); /* 0x36104F5E: mov edx, dword ptr [eax] */
  14494     MEM32(ebp + (-0x124)) = edx; /* 0x36104F60: mov dword ptr [ebp - 0x124], edx */
  14495     ecx = MEM32(eax + 0x4); /* 0x36104F66: mov ecx, dword ptr [eax + 4] */
  14496     MEM32(ebp + (-0x120)) = ecx; /* 0x36104F69: mov dword ptr [ebp - 0x120], ecx */
  14497     edx = MEM32(eax + 0x8); /* 0x36104F6F: mov edx, dword ptr [eax + 8] */
  14498     ecx = MEM32(ebx + 0x20); /* 0x36104F72: mov ecx, dword ptr [ebx + 0x20] */
  14499     eax = ebp + (-0x1D8); /* 0x36104F75: lea eax, [ebp - 0x1d8] */
  14500     PUSH32(esp, eax); /* 0x36104F7B: push eax */
  14501     MEM32(ebp + (-0x11C)) = edx; /* 0x36104F7C: mov dword ptr [ebp - 0x11c], edx */
  14502     RECOMP_ICALL(0x361340B0u); /* 0x36104F82: call 0x361340b0 */ /* not lifted */
  14503     RECOMP_FLAGS_IN();
  14504     ecx = MEM32(eax); /* 0x36104F87: mov ecx, dword ptr [eax] */
  14505     MEM32(ebp + (-0x118)) = ecx; /* 0x36104F89: mov dword ptr [ebp - 0x118], ecx */
  14506     edx = MEM32(eax + 0x4); /* 0x36104F8F: mov edx, dword ptr [eax + 4] */
  14507     MEM32(ebp + (-0x114)) = edx; /* 0x36104F92: mov dword ptr [ebp - 0x114], edx */
  14508     eax = MEM32(eax + 0x8); /* 0x36104F98: mov eax, dword ptr [eax + 8] */
  14509     MEM32(ebp + (-0x110)) = eax; /* 0x36104F9B: mov dword ptr [ebp - 0x110], eax */
  14510     edi = 0x362E4E38u; /* 0x36104FA1: mov edi, 0x362e4e38 */
  14511     esi = 0x3630D5A8u; /* 0x36104FA6: mov esi, 0x3630d5a8 */
  14512 L_36104FAB:
  14513     ecx = MEM32(edi); /* 0x36104FAB: mov ecx, dword ptr [edi] */
  14514     PUSH32(esp, esi); /* 0x36104FAD: push esi */
  14515     PUSH32(esp, ecx); /* 0x36104FAE: push ecx */
  14516     ecx = MEM32(ebx + 0x20); /* 0x36104FAF: mov ecx, dword ptr [ebx + 0x20] */
  14517     RECOMP_ICALL(0x36133900u); /* 0x36104FB2: call 0x36133900 */ /* not lifted */
  14518     RECOMP_FLAGS_IN();
  14519     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  14520     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14521     esi = esi + 0xCu; /* 0x36104FB7: add esi, 0xc */
  14522     _flag_k = FK_ADD;
  14523     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  14524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14525     edi = edi + 4; /* 0x36104FBA: add edi, 4 */
  14526     _flag_k = FK_ADD;
  14527     /* cmp esi, 0x3630D620u */ /* 0x36104FBD: cmp esi, 0x3630d620 */
  14528     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3630D620u);
  14529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14530     _flag_k = FK_CMP;
  14531     RECOMP_BACKEDGE();
  14532     if (CMP_L(_flag_a, _flag_b)) goto L_36104FAB; /* 0x36104FC3: jl 0x36104fab */
  14533 L_36104FC5:
  14534     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14535     esi = 0; /* 0x36104FC5: xor esi, esi */
  14536     _cf = 0;
  14537     _flag_k = FK_TEST;
  14538     edx = 0x362E4E60u; /* 0x36104FC7: mov edx, 0x362e4e60 */
  14539     MEM32(ebp + (-0x24)) = 0x3630D428u; /* 0x36104FCC: mov dword ptr [ebp - 0x24], 0x3630d428 */
  14540     MEM32(ebp + (-0x28)) = edx; /* 0x36104FD3: mov dword ptr [ebp - 0x28], edx */
  14541     MEM32(ebp + (-0x14)) = esi; /* 0x36104FD6: mov dword ptr [ebp - 0x14], esi */
  14542     MEM32(ebp + (-0x10)) = esi; /* 0x36104FD9: mov dword ptr [ebp - 0x10], esi */
  14543     goto L_36104FE4; /* 0x36104FDC: jmp 0x36104fe4 */
  14544 L_36104FDE:
  14545     edx = MEM32(ebp + (-0x28)); /* 0x36104FDE: mov edx, dword ptr [ebp - 0x28] */
  14546     esi = MEM32(ebp + (-0x14)); /* 0x36104FE1: mov esi, dword ptr [ebp - 0x14] */
  14547 L_36104FE4:
  14548     eax = MEM32(edx + 0x4); /* 0x36104FE4: mov eax, dword ptr [edx + 4] */
  14549     eax = eax + eax * 2; /* 0x36104FE7: lea eax, [eax + eax*2] */
  14550     ecx = eax * 4 + 0x3630D5A8; /* 0x36104FEA: lea ecx, [eax*4 + 0x3630d5a8] */
  14551     eax = MEM32(edx); /* 0x36104FF1: mov eax, dword ptr [edx] */
  14552     eax = eax + eax * 2; /* 0x36104FF3: lea eax, [eax + eax*2] */
  14553     eax = eax * 4 + 0x3630D5A8; /* 0x36104FF6: lea eax, [eax*4 + 0x3630d5a8] */
  14554     edx = eax; /* 0x36104FFD: mov edx, eax */
  14555     edi = MEM32(edx); /* 0x36104FFF: mov edi, dword ptr [edx] */
  14556     MEM32(ebp + (-0xC)) = edi; /* 0x36105001: mov dword ptr [ebp - 0xc], edi */
  14557     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36105004: fld dword ptr [ebp - 0xc] */
  14558     _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36105007: fsub dword ptr [ecx] */
  14559     edi = MEM32(edx + 0x4); /* 0x36105009: mov edi, dword ptr [edx + 4] */
  14560     edx = MEM32(edx + 0x8); /* 0x3610500C: mov edx, dword ptr [edx + 8] */
  14561     MEM32(ebp + (-0x8)) = edi; /* 0x3610500F: mov dword ptr [ebp - 8], edi */
  14562     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36105012: fstp dword ptr [ebp - 0xc] */
  14563     MEM32(ebp + (-0x4)) = edx; /* 0x36105015: mov dword ptr [ebp - 4], edx */
  14564     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36105018: fld dword ptr [ebp - 8] */
  14565     edi = MEM32(ebp + (-0xC)); /* 0x3610501B: mov edi, dword ptr [ebp - 0xc] */
  14566     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x3610501E: fsub dword ptr [ecx + 4] */
  14567     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36105021: fstp dword ptr [ebp - 8] */
  14568     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36105024: fld dword ptr [ebp - 4] */
  14569     _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x36105027: fsub dword ptr [ecx + 8] */
  14570     ecx = MEM32(ebp + (-0x10)); /* 0x3610502A: mov ecx, dword ptr [ebp - 0x10] */
  14571     ecx = ecx + 0x3630D518; /* 0x3610502D: lea ecx, [ecx + 0x3630d518] */
  14572     edx = ecx; /* 0x36105033: mov edx, ecx */
  14573     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36105035: fstp dword ptr [ebp - 4] */
  14574     MEM32(edx) = edi; /* 0x36105038: mov dword ptr [edx], edi */
  14575     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610503A: fld dword ptr [ebp - 0xc] */
  14576     edi = MEM32(ebp + (-0x8)); /* 0x3610503D: mov edi, dword ptr [ebp - 8] */
  14577     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36105040: fmul dword ptr [ebp - 0xc] */
  14578     MEM32(edx + 0x4) = edi; /* 0x36105043: mov dword ptr [edx + 4], edi */
  14579     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36105046: fld dword ptr [ebp - 4] */
  14580     edi = MEM32(ebp + (-0x4)); /* 0x36105049: mov edi, dword ptr [ebp - 4] */
  14581     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610504C: fmul dword ptr [ebp - 4] */
  14582     MEM32(edx + 0x8) = edi; /* 0x3610504F: mov dword ptr [edx + 8], edi */
  14583     edi = MEM32(eax); /* 0x36105052: mov edi, dword ptr [eax] */
  14584     edx = MEM32(ebp + (-0x10)); /* 0x36105054: mov edx, dword ptr [ebp - 0x10] */
  14585     { double _v = fp_pop(); _st[0] += _v; } /* 0x36105057: faddp st(1) */
  14586     edx = edx + 0x3630D560; /* 0x36105059: lea edx, [edx + 0x3630d560] */
  14587     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610505F: fld dword ptr [ebp - 8] */
  14588     MEM32(edx) = edi; /* 0x36105062: mov dword ptr [edx], edi */
  14589     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36105064: fmul dword ptr [ebp - 8] */
  14590     edi = MEM32(eax + 0x4); /* 0x36105067: mov edi, dword ptr [eax + 4] */
  14591     eax = MEM32(eax + 0x8); /* 0x3610506A: mov eax, dword ptr [eax + 8] */
  14592     MEM32(edx + 0x4) = edi; /* 0x3610506D: mov dword ptr [edx + 4], edi */
  14593     { double _v = fp_pop(); _st[0] += _v; } /* 0x36105070: faddp st(1) */
  14594     MEM32(edx + 0x8) = eax; /* 0x36105072: mov dword ptr [edx + 8], eax */
  14595     eax = MEM32(esi + 0x362E4E90); /* 0x36105075: mov eax, dword ptr [esi + 0x362e4e90] */
  14596     edx = eax + eax * 2; /* 0x3610507B: lea edx, [eax + eax*2] */
  14597     _st[0] = sqrt(_st[0]); /* 0x3610507E: fsqrt  */
  14598     PUSH32(esp, ecx); /* 0x36105080: push ecx */
  14599     eax = ebp + (-0x164); /* 0x36105081: lea eax, [ebp - 0x164] */
  14600     PUSH32(esp, eax); /* 0x36105087: push eax */
  14601     MEM32(ebp + (-0x154)) = 0x3F800000u; /* 0x36105088: mov dword ptr [ebp - 0x154], 0x3f800000 */
  14602     MEM32(ebp + (-0x150)) = 0; /* 0x36105092: mov dword ptr [ebp - 0x150], 0 */
  14603     MEM32(ebp + (-0x14C)) = 0; /* 0x3610509C: mov dword ptr [ebp - 0x14c], 0 */
  14604     MEM32(ebp + (-0x148)) = 0; /* 0x361050A6: mov dword ptr [ebp - 0x148], 0 */
  14605     MEM32(ebp + (-0x144)) = 0x3F800000u; /* 0x361050B0: mov dword ptr [ebp - 0x144], 0x3f800000 */
  14606     MEM32(ebp + (-0x140)) = 0; /* 0x361050BA: mov dword ptr [ebp - 0x140], 0 */
  14607     MEM32(ebp + (-0x13C)) = 0; /* 0x361050C4: mov dword ptr [ebp - 0x13c], 0 */
  14608     MEM32(ebp + (-0x138)) = 0; /* 0x361050CE: mov dword ptr [ebp - 0x138], 0 */
  14609     MEM32(ebp + (-0x134)) = 0x3F800000u; /* 0x361050D8: mov dword ptr [ebp - 0x134], 0x3f800000 */
  14610     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3630D500) = _v; } /* 0x361050E2: fstp dword ptr [esi + 0x3630d500] */
  14611     esi = ebp + edx * 4 + (-0x130); /* 0x361050E8: lea esi, [ebp + edx*4 - 0x130] */
  14612     ecx = esi; /* 0x361050EF: mov ecx, esi */
  14613     RECOMP_ICALL(MEM32(0x36170180)); /* 0x361050F1: call dword ptr [0x36170180] */
  14614     RECOMP_FLAGS_IN();
  14615     ecx = MEM32(eax); /* 0x361050F7: mov ecx, dword ptr [eax] */
  14616     MEM32(ebp + (-0x20)) = ecx; /* 0x361050F9: mov dword ptr [ebp - 0x20], ecx */
  14617     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361050FC: fld dword ptr [ebp - 0x20] */
  14618     edx = MEM32(eax + 0x4); /* 0x361050FF: mov edx, dword ptr [eax + 4] */
  14619     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36105102: fcomp dword ptr [0x3617040c] */
  14620     fp_pop();
  14621     MEM32(ebp + (-0x1C)) = edx; /* 0x36105108: mov dword ptr [ebp - 0x1c], edx */
  14622     eax = MEM32(eax + 0x8); /* 0x3610510B: mov eax, dword ptr [eax + 8] */
  14623     MEM32(ebp + (-0x18)) = eax; /* 0x3610510E: mov dword ptr [ebp - 0x18], eax */
  14624     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105111: fnstsw ax */
  14625     /* test HI8(eax), 0x40u */ /* 0x36105113: test ah, 0x40 */
  14626     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  14627     _cf = 0;
  14628     _flag_k = FK_NARROW(FK_TEST, 24);
  14629     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105116: je 0x36105178 */
  14630 L_36105118:
  14631     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105118: fld dword ptr [ebp - 0x1c] */
  14632     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610511B: fcomp dword ptr [0x3617040c] */
  14633     fp_pop();
  14634     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105121: fnstsw ax */
  14635     /* test HI8(eax), 0x40u */ /* 0x36105123: test ah, 0x40 */
  14636     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  14637     _cf = 0;
  14638     _flag_k = FK_NARROW(FK_TEST, 24);
  14639     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105126: je 0x36105178 */
  14640 L_36105128:
  14641     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36105128: fld dword ptr [ebp - 0x18] */
  14642     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610512B: fcomp dword ptr [0x3617040c] */
  14643     fp_pop();
  14644     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105131: fnstsw ax */
  14645     /* test HI8(eax), 0x40u */ /* 0x36105133: test ah, 0x40 */
  14646     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  14647     _cf = 0;
  14648     _flag_k = FK_NARROW(FK_TEST, 24);
  14649     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105136: je 0x36105178 */
  14650 L_36105138:
  14651     fp_push(*(float*)&MEM32(esi)); /* 0x36105138: fld dword ptr [esi] */
  14652     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610513A: fcomp dword ptr [0x3617040c] */
  14653     fp_pop();
  14654     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105140: fnstsw ax */
  14655     /* test HI8(eax), 0x40u */ /* 0x36105142: test ah, 0x40 */
  14656     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  14657     _cf = 0;
  14658     _flag_k = FK_NARROW(FK_TEST, 24);
  14659     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105145: je 0x36105178 */
  14660 L_36105147:
  14661     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36105147: fld dword ptr [esi + 4] */
  14662     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610514A: fcomp dword ptr [0x3617040c] */
  14663     fp_pop();
  14664     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105150: fnstsw ax */
  14665     /* test HI8(eax), 0x40u */ /* 0x36105152: test ah, 0x40 */
  14666     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  14667     _cf = 0;
  14668     _flag_k = FK_NARROW(FK_TEST, 24);
  14669     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105155: je 0x36105178 */
  14670 L_36105157:
  14671     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36105157: fld dword ptr [esi + 8] */
  14672     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610515A: fcomp dword ptr [0x3617040c] */
  14673     fp_pop();
  14674     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105160: fnstsw ax */
  14675     /* test HI8(eax), 0x40u */ /* 0x36105162: test ah, 0x40 */
  14676     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  14677     _cf = 0;
  14678     _flag_k = FK_NARROW(FK_TEST, 24);
  14679     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105165: je 0x36105178 */
  14680 L_36105167:
  14681     ecx = ebp + (-0x154); /* 0x36105167: lea ecx, [ebp - 0x154] */
  14682     RECOMP_ICALL(MEM32(0x361701F4)); /* 0x3610516D: call dword ptr [0x361701f4] */
  14683     RECOMP_FLAGS_IN();
  14684     goto L_3610524B; /* 0x36105173: jmp 0x3610524b */
  14685 L_36105178:
  14686     PUSH32(esp, 0x3F800000u); /* 0x36105178: push 0x3f800000 */
  14687     ecx = ebp + (-0xDC); /* 0x3610517D: lea ecx, [ebp - 0xdc] */
  14688     PUSH32(esp, ecx); /* 0x36105183: push ecx */
  14689     ecx = ebp + (-0x20); /* 0x36105184: lea ecx, [ebp - 0x20] */
  14690     RECOMP_ICALL(MEM32(0x361701F0)); /* 0x36105187: call dword ptr [0x361701f0] */
  14691     RECOMP_FLAGS_IN();
  14692     edx = MEM32(eax); /* 0x3610518D: mov edx, dword ptr [eax] */
  14693     MEM32(ebp + (-0x20)) = edx; /* 0x3610518F: mov dword ptr [ebp - 0x20], edx */
  14694     ecx = MEM32(eax + 0x4); /* 0x36105192: mov ecx, dword ptr [eax + 4] */
  14695     MEM32(ebp + (-0x1C)) = ecx; /* 0x36105195: mov dword ptr [ebp - 0x1c], ecx */
  14696     edx = MEM32(eax + 0x8); /* 0x36105198: mov edx, dword ptr [eax + 8] */
  14697     PUSH32(esp, 0x3F800000u); /* 0x3610519B: push 0x3f800000 */
  14698     eax = ebp + (-0xB4); /* 0x361051A0: lea eax, [ebp - 0xb4] */
  14699     PUSH32(esp, eax); /* 0x361051A6: push eax */
  14700     ecx = esi; /* 0x361051A7: mov ecx, esi */
  14701     MEM32(ebp + (-0x18)) = edx; /* 0x361051A9: mov dword ptr [ebp - 0x18], edx */
  14702     RECOMP_ICALL(MEM32(0x361701F0)); /* 0x361051AC: call dword ptr [0x361701f0] */
  14703     RECOMP_FLAGS_IN();
  14704     ecx = MEM32(eax); /* 0x361051B2: mov ecx, dword ptr [eax] */
  14705     MEM32(ebp + (-0x80)) = ecx; /* 0x361051B4: mov dword ptr [ebp - 0x80], ecx */
  14706     edx = MEM32(eax + 0x4); /* 0x361051B7: mov edx, dword ptr [eax + 4] */
  14707     MEM32(ebp + (-0x7C)) = edx; /* 0x361051BA: mov dword ptr [ebp - 0x7c], edx */
  14708     eax = MEM32(eax + 0x8); /* 0x361051BD: mov eax, dword ptr [eax + 8] */
  14709     ecx = ebp + (-0x20); /* 0x361051C0: lea ecx, [ebp - 0x20] */
  14710     PUSH32(esp, ecx); /* 0x361051C3: push ecx */
  14711     edx = ebp + (-0xD0); /* 0x361051C4: lea edx, [ebp - 0xd0] */
  14712     PUSH32(esp, edx); /* 0x361051CA: push edx */
  14713     ecx = ebp + (-0x80); /* 0x361051CB: lea ecx, [ebp - 0x80] */
  14714     MEM32(ebp + (-0x78)) = eax; /* 0x361051CE: mov dword ptr [ebp - 0x78], eax */
  14715     RECOMP_ICALL(MEM32(0x36170180)); /* 0x361051D1: call dword ptr [0x36170180] */
  14716     RECOMP_FLAGS_IN();
  14717     ecx = MEM32(eax); /* 0x361051D7: mov ecx, dword ptr [eax] */
  14718     edx = MEM32(eax + 0x4); /* 0x361051D9: mov edx, dword ptr [eax + 4] */
  14719     eax = MEM32(eax + 0x8); /* 0x361051DC: mov eax, dword ptr [eax + 8] */
  14720     MEM32(ebp + (-0xA8)) = ecx; /* 0x361051DF: mov dword ptr [ebp - 0xa8], ecx */
  14721     ecx = MEM32(ebp + (-0x20)); /* 0x361051E5: mov ecx, dword ptr [ebp - 0x20] */
  14722     MEM32(ebp + (-0xA4)) = edx; /* 0x361051E8: mov dword ptr [ebp - 0xa4], edx */
  14723     edx = MEM32(ebp + (-0x1C)); /* 0x361051EE: mov edx, dword ptr [ebp - 0x1c] */
  14724     MEM32(ebp + (-0xA0)) = eax; /* 0x361051F1: mov dword ptr [ebp - 0xa0], eax */
  14725     eax = MEM32(ebp + (-0x18)); /* 0x361051F7: mov eax, dword ptr [ebp - 0x18] */
  14726     MEM32(ebp + (-0x154)) = ecx; /* 0x361051FA: mov dword ptr [ebp - 0x154], ecx */
  14727     ecx = MEM32(ebp + (-0xA8)); /* 0x36105200: mov ecx, dword ptr [ebp - 0xa8] */
  14728     MEM32(ebp + (-0x148)) = edx; /* 0x36105206: mov dword ptr [ebp - 0x148], edx */
  14729     edx = MEM32(ebp + (-0xA4)); /* 0x3610520C: mov edx, dword ptr [ebp - 0xa4] */
  14730     MEM32(ebp + (-0x13C)) = eax; /* 0x36105212: mov dword ptr [ebp - 0x13c], eax */
  14731     eax = MEM32(ebp + (-0xA0)); /* 0x36105218: mov eax, dword ptr [ebp - 0xa0] */
  14732     MEM32(ebp + (-0x150)) = ecx; /* 0x3610521E: mov dword ptr [ebp - 0x150], ecx */
  14733     ecx = MEM32(ebp + (-0x80)); /* 0x36105224: mov ecx, dword ptr [ebp - 0x80] */
  14734     MEM32(ebp + (-0x144)) = edx; /* 0x36105227: mov dword ptr [ebp - 0x144], edx */
  14735     edx = MEM32(ebp + (-0x7C)); /* 0x3610522D: mov edx, dword ptr [ebp - 0x7c] */
  14736     MEM32(ebp + (-0x138)) = eax; /* 0x36105230: mov dword ptr [ebp - 0x138], eax */
  14737     eax = MEM32(ebp + (-0x78)); /* 0x36105236: mov eax, dword ptr [ebp - 0x78] */
  14738     MEM32(ebp + (-0x14C)) = ecx; /* 0x36105239: mov dword ptr [ebp - 0x14c], ecx */
  14739     MEM32(ebp + (-0x140)) = edx; /* 0x3610523F: mov dword ptr [ebp - 0x140], edx */
  14740     MEM32(ebp + (-0x134)) = eax; /* 0x36105245: mov dword ptr [ebp - 0x134], eax */
  14741 L_3610524B:
  14742     edi = MEM32(ebp + (-0x24)); /* 0x3610524B: mov edi, dword ptr [ebp - 0x24] */
  14743     ecx = 9; /* 0x3610524E: mov ecx, 9 */
  14744     esi = ebp + (-0x154); /* 0x36105253: lea esi, [ebp - 0x154] */
  14745     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105259: 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; }
  14746     esi = MEM32(ebp + (-0x24)); /* 0x3610525B: mov esi, dword ptr [ebp - 0x24] */
  14747     ecx = esi; /* 0x3610525E: mov ecx, esi */
  14748     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105260: call dword ptr [0x361701f8] */
  14749     RECOMP_FLAGS_IN();
  14750     eax = MEM32(ebp + (-0x28)); /* 0x36105266: mov eax, dword ptr [ebp - 0x28] */
  14751     ecx = MEM32(ebp + (-0x14)); /* 0x36105269: mov ecx, dword ptr [ebp - 0x14] */
  14752     edi = MEM32(ebp + (-0x10)); /* 0x3610526C: mov edi, dword ptr [ebp - 0x10] */
  14753     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
  14754     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14755     eax = eax + 8; /* 0x3610526F: add eax, 8 */
  14756     _flag_k = FK_ADD;
  14757     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  14758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14759     ecx = ecx + 4; /* 0x36105272: add ecx, 4 */
  14760     _flag_k = FK_ADD;
  14761     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
  14762     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14763     edi = edi + 0xCu; /* 0x36105275: add edi, 0xc */
  14764     _flag_k = FK_ADD;
  14765     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
  14766     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14767     esi = esi + 0x24u; /* 0x36105278: add esi, 0x24 */
  14768     _flag_k = FK_ADD;
  14769     /* cmp eax, 0x362E4E90u */ /* 0x3610527B: cmp eax, 0x362e4e90 */
  14770     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x362E4E90u);
  14771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14772     _flag_k = FK_CMP;
  14773     MEM32(ebp + (-0x28)) = eax; /* 0x36105280: mov dword ptr [ebp - 0x28], eax */
  14774     MEM32(ebp + (-0x14)) = ecx; /* 0x36105283: mov dword ptr [ebp - 0x14], ecx */
  14775     MEM32(ebp + (-0x10)) = edi; /* 0x36105286: mov dword ptr [ebp - 0x10], edi */
  14776     MEM32(ebp + (-0x24)) = esi; /* 0x36105289: mov dword ptr [ebp - 0x24], esi */
  14777     RECOMP_BACKEDGE();
  14778     if (CMP_L(_flag_a, _flag_b)) goto L_36104FDE; /* 0x3610528C: jl 0x36104fde */
  14779 L_36105292:
  14780     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14781     ecx = 0; /* 0x36105292: xor ecx, ecx */
  14782     _cf = 0;
  14783     _flag_k = FK_TEST;
  14784     edi = ebx + 0xD2C; /* 0x36105294: lea edi, [ebx + 0xd2c] */
  14785     edx = ebx + 0x32C; /* 0x3610529A: lea edx, [ebx + 0x32c] */
  14786     esi = ebx + 0x34; /* 0x361052A0: lea esi, [ebx + 0x34] */
  14787     MEM32(ebp + (-0x14)) = ecx; /* 0x361052A3: mov dword ptr [ebp - 0x14], ecx */
  14788     MEM32(ebp + (-0x30)) = ecx; /* 0x361052A6: mov dword ptr [ebp - 0x30], ecx */
  14789     MEM32(ebp + (-0x24)) = edi; /* 0x361052A9: mov dword ptr [ebp - 0x24], edi */
  14790     MEM32(ebp + (-0x28)) = edx; /* 0x361052AC: mov dword ptr [ebp - 0x28], edx */
  14791     MEM32(ebp + (-0x2C)) = esi; /* 0x361052AF: mov dword ptr [ebp - 0x2c], esi */
  14792 L_361052B2:
  14793     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  14794     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  14795     fp_pop();
  14796     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  14797     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  14798     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  14799     _cf = 0;
  14800     _flag_k = FK_NARROW(FK_TEST, 24);
  14801     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  14802 L_361052C2:
  14803     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  14804     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  14805     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  14806     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  14807     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  14808     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  14809     RECOMP_FLAGS_IN();
  14810     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  14811     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  14812     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  14813     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  14814     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  14815     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  14816     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  14817     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  14818     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  14819     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  14820     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  14821     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14822     _flag_k = FK_CMP;
  14823     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  14824 L_3610530A:
  14825     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  14826     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  14827     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  14828     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  14829 L_3610531B:
  14830     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  14831     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  14832     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  14833     PUSH32(esp, eax); /* 0x3610532C: push eax */
  14834     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  14835     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  14836     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  14837     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  14838     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  14839     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  14840     RECOMP_FLAGS_IN();
  14841     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  14842     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  14843     fp_pop();
  14844     esi = eax; /* 0x3610534C: mov esi, eax */
  14845     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  14846     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  14847     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  14848     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  14849     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  14850     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  14851     _cf = 0;
  14852     _flag_k = FK_NARROW(FK_TEST, 24);
  14853     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  14854 L_36105362:
  14855     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  14856     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  14857 L_3610536A:
  14858     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  14859     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  14860 L_36105373:
  14861     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  14862     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  14863     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  14864     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  14865     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  14866     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  14867     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  14868     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  14869     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  14870     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  14871     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  14872     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  14873     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  14874     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  14875     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  14876     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  14877     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  14878     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  14879     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  14880     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  14881     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  14882     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  14883     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  14884     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  14885     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  14886     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  14887     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  14888     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  14889     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  14890     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  14891     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  14892     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  14893     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  14894     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  14895     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  14896     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  14897     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  14898     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  14899     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  14900     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14901     _cf = 0;
  14902     _flag_k = FK_NARROW(FK_TEST, 24);
  14903     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  14904     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  14905     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  14906     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  14907     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  14908     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  14909     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  14910 L_3610541F:
  14911     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  14912     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  14913     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  14914     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  14915     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  14916     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  14917     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  14918     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  14919     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  14920     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  14921     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  14922     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  14923     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  14924     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  14925 L_3610545E:
  14926     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  14927     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  14928     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  14929     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  14930     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  14931     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  14932     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  14933     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  14934     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  14935     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  14936     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  14937     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  14938     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  14939     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  14940     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  14941     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  14942     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  14943     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  14944     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  14945     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  14946     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  14947     RECOMP_FLAGS_IN();
  14948     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  14949     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  14950     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  14951     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  14952     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  14953     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  14954     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  14955     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  14956     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  14957     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  14958     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  14959     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  14960     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  14961     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  14962     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  14963     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  14964     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  14965     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  14966     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  14967     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  14968     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  14969     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  14970     edx = esi; /* 0x36105509: mov edx, esi */
  14971     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  14972     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14973     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  14974     _flag_k = FK_ADD;
  14975     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  14976     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  14977     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  14978     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  14979     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  14980     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  14981     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  14982     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  14983     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  14984     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  14985     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  14986     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  14987     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  14988     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  14989     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  14990     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  14991     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  14992     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  14993     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  14994     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  14995     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  14996     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  14997     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  14998     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  14999     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  15000     PUSH32(esp, edx); /* 0x36105563: push edx */
  15001     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  15002     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  15003     RECOMP_FLAGS_IN();
  15004     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  15005     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  15006     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  15007     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  15008     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  15009     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  15010     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  15011     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  15012     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  15013     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  15014 L_36105593:
  15015     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  15016     /* test eax, eax */ /* 0x36105596: test eax, eax */
  15017     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  15018     _cf = 0;
  15019     _flag_k = FK_TEST;
  15020     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  15021 L_3610559E:
  15022     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  15023     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  15024     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  15025     _cf = 0;
  15026     _flag_k = FK_NARROW(FK_TEST, 24);
  15027     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  15028 L_361055AC:
  15029     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  15030     PUSH32(esp, edi); /* 0x361055AF: push edi */
  15031     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  15032     RECOMP_FLAGS_IN();
  15033     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15034     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15035     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  15036     _flag_k = FK_ADD;
  15037     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  15038     RECOMP_FLAGS_IN();
  15039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  15040     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  15041     _cf = 0;
  15042     _flag_k = FK_TEST;
  15043     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  15044     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  15045     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  15046     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  15047     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  15048     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  15049     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  15050     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  15051     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  15052     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  15053     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  15054     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  15055     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  15056     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  15057     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  15058     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  15059     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  15060     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  15061     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15062     _cf = 0;
  15063     _flag_k = FK_NARROW(FK_TEST, 24);
  15064     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  15065 L_36105628:
  15066     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  15067     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  15068     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  15069     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15070     _cf = 0;
  15071     _flag_k = FK_NARROW(FK_TEST, 24);
  15072     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  15073 L_36105635:
  15074     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  15075     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  15076 L_3610563D:
  15077     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  15078     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  15079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15080     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  15081     _flag_k = FK_CMP;
  15082     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  15083     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  15084     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  15085     RECOMP_FLAGS_IN();
  15086     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  15087     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  15088     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15089     esp = esp + 8; /* 0x36105655: add esp, 8 */
  15090     _flag_k = FK_ADD;
  15091     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  15092 L_3610565E:
  15093     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  15094     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  15095     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  15096     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  15097     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  15098     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  15099     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  15100     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  15101     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  15102     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  15103     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  15104     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  15105     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  15106     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  15107     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  15108     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  15109     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  15110     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  15111     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  15112     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  15113     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  15114     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  15115     RECOMP_FLAGS_IN();
  15116     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  15117     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  15118     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  15119     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  15120     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  15121     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  15122     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  15123     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  15124     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  15125     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  15126     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  15127     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  15128     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  15129     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  15130     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  15131     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  15132     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  15133     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  15134     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  15135     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  15136     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  15137     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  15138     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  15139     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  15140     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  15141     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  15142     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  15143     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  15144     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  15145     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  15146     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  15147     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  15148     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  15149     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  15150     PUSH32(esp, eax); /* 0x36105739: push eax */
  15151     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  15152     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  15153     RECOMP_FLAGS_IN();
  15154     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  15155     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  15156     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  15157     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  15158     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  15159     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  15160     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  15161     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  15162     PUSH32(esp, eax); /* 0x36105769: push eax */
  15163     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  15164     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  15165     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  15166     RECOMP_FLAGS_IN();
  15167     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  15168     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  15169     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  15170     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  15171     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  15172     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  15173     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  15174     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  15175     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  15176     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  15177     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  15178     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  15179     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  15180     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  15181     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  15182     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  15183     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  15184     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  15185     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  15186     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  15187     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  15188     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  15189     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  15190     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  15191     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  15192     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  15193     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  15194     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  15195     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  15196     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  15197     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  15198     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  15199     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  15200     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  15201     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  15202     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  15203     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  15204     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  15205     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  15206     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  15207     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  15208     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  15209     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  15210     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  15211     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  15212     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  15213     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  15214     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  15215     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  15216     ecx = 9; /* 0x36105845: mov ecx, 9 */
  15217     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  15218     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  15219     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  15220     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  15221     RECOMP_FLAGS_IN();
  15222     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  15223     ecx = 9; /* 0x36105861: mov ecx, 9 */
  15224     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  15225     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  15226     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  15227     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  15228     RECOMP_FLAGS_IN();
  15229     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  15230     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  15231     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  15232     _cf = 0;
  15233     _flag_k = FK_TEST;
  15234     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  15235     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  15236     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  15237     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  15238     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  15239     RECOMP_FLAGS_IN();
  15240     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  15241     ecx = 6; /* 0x36105890: mov ecx, 6 */
  15242     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  15243       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  15244       else { eax = 0; edx = 0; } }
  15245     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  15246     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  15247     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  15248     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  15249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  15250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15251     _flag_k = FK_CMP;
  15252     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  15253 L_361058AB:
  15254     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  15255 L_361058B1:
  15256     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  15257     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  15258     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  15259     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  15260     RECOMP_FLAGS_IN();
  15261     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  15262     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  15263     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  15264     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15265     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  15266     _cf = 0;
  15267     _flag_k = FK_TEST;
  15268     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15269     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  15270     _flag_k = FK_NARROW(FK_DEC, 24);
  15271     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  15272     _cf = (LO8(eax)) != 0;
  15273     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  15274     _flag_k = FK_NARROW(FK_CMP, 24);
  15275     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  15276       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  15277       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  15278       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  15279     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15280     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  15281     _flag_k = FK_NARROW(FK_INC, 24);
  15282     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  15283     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  15284     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  15285     _flag_k = FK_DEC;
  15286     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  15287 L_361058DE:
  15288     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  15289     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  15290     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  15291 L_361058EC:
  15292     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  15293     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  15294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15295     eax = eax + 1; /* 0x361058F2: inc eax */
  15296     _flag_k = FK_INC;
  15297     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  15298     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  15299     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  15300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15301     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  15302     _flag_k = FK_ADD;
  15303     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  15304     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15305     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  15306     _flag_k = FK_ADD;
  15307     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  15308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15309     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  15310     _flag_k = FK_ADD;
  15311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  15312     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15313     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  15314     _flag_k = FK_ADD;
  15315     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  15316     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  15317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15318     _flag_k = FK_CMP;
  15319     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  15320     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  15321     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  15322     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  15323     RECOMP_BACKEDGE();
  15324     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  15325 L_3610591D:
  15326     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  15327     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  15328     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  15329     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15330     edx = 0; /* 0x36105929: xor edx, edx */
  15331     _cf = 0;
  15332     _flag_k = FK_TEST;
  15333     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  15334     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  15335     _cf = 0;
  15336     _flag_k = FK_NARROW(FK_TEST, 24);
  15337     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  15338     PUSH32(esp, edx); /* 0x36105930: push edx */
  15339     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  15340     RECOMP_FLAGS_IN();
  15341     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  15342     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  15343 L_36105939:
  15344     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  15345     esp = ebp; /* 0x3610593A: mov esp, ebp */
  15346     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  15347     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  15348     RECOMP_REGS_OUT();
  15349 }
  15350 
  15351 void sub_3610485A(void) {
  15352     int _fpu_cmp = 0;
  15353     uint32_t _cf = 0;
  15354     int _df = 1;
  15355     uint32_t _flag_k = FK_NONE;
  15356     uint32_t _flag_a = 0, _flag_b = 0;
  15357     uint32_t _itail_tgt = 0;
  15358     RECOMP_REGS_LOCALS
  15359     RECOMP_ENTER(0x3610485Au);
  15360 
  15361 L_3610485A:
  15362     fp_push(*(float*)&MEM32(ecx)); /* 0x3610485A: fld dword ptr [ecx] */
  15363     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x3610485C: fcomp dword ptr [ebx + 0xc] */
  15364     fp_pop();
  15365     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610485F: fnstsw ax */
  15366     /* test HI8(eax), 0x41u */ /* 0x36104861: test ah, 0x41 */
  15367     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  15368     _cf = 0;
  15369     _flag_k = FK_NARROW(FK_TEST, 24);
  15370     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104A99; /* 0x36104864: jne 0x36104a99 */
  15371 L_3610486A:
  15372     fp_push(*(float*)&MEM32(ecx)); /* 0x3610486A: fld dword ptr [ecx] */
  15373     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x3610486C: fsub dword ptr [ebx + 0xc] */
  15374     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x3610486F: fsubr dword ptr [ebx + 0xedc] */
  15375     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x36104875: fdiv dword ptr [ebx + 0xedc] */
  15376     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x3610487B: fmul dword ptr [0x36170ba4] */
  15377     RECOMP_ICALL(0x3615FD8Cu); /* 0x36104881: call 0x3615fd8c */ /* not lifted */
  15378     RECOMP_FLAGS_IN();
  15379     fp_push(*(float*)&MEM32(edi + (-0x8))); /* 0x36104886: fld dword ptr [edi - 8] */
  15380     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36104889: fstp dword ptr [ebp - 0xdc] */
  15381     fp_push(*(float*)&MEM32(edi + (-0x4))); /* 0x3610488F: fld dword ptr [edi - 4] */
  15382     MEM32(ebp + (-0x34)) = eax; /* 0x36104892: mov dword ptr [ebp - 0x34], eax */
  15383     eax = MEM32(ebp + (-0xDC)); /* 0x36104895: mov eax, dword ptr [ebp - 0xdc] */
  15384     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x3610489B: fstp dword ptr [ebp - 0xd8] */
  15385     fp_push(*(float*)&MEM32(edi)); /* 0x361048A1: fld dword ptr [edi] */
  15386     ecx = MEM32(ebp + (-0xD8)); /* 0x361048A3: mov ecx, dword ptr [ebp - 0xd8] */
  15387     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x361048A9: fstp dword ptr [ebp - 0xd4] */
  15388     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x361048AF: fld dword ptr [ebx + 0xee4] */
  15389     edx = MEM32(ebp + (-0xD4)); /* 0x361048B5: mov edx, dword ptr [ebp - 0xd4] */
  15390     fp_push(_st[0]); /* 0x361048BB: fld st(0) */
  15391     MEM32(ebp + (-0x20)) = eax; /* 0x361048BD: mov dword ptr [ebp - 0x20], eax */
  15392     _st[0] *= (double)*(float*)ADDR(ebp + (-0xDC)); /* 0x361048C0: fmul dword ptr [ebp - 0xdc] */
  15393     MEM32(ebp + (-0x1C)) = ecx; /* 0x361048C6: mov dword ptr [ebp - 0x1c], ecx */
  15394     MEM32(ebp + (-0x18)) = edx; /* 0x361048C9: mov dword ptr [ebp - 0x18], edx */
  15395     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361048CC: fstp dword ptr [ebp - 0x20] */
  15396     eax = MEM32(ebp + (-0x20)); /* 0x361048CF: mov eax, dword ptr [ebp - 0x20] */
  15397     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361048D2: fld dword ptr [ebp - 0x1c] */
  15398     MEM32(ebp + (-0xB4)) = eax; /* 0x361048D5: mov dword ptr [ebp - 0xb4], eax */
  15399     _st[0] *= _st[1]; /* 0x361048DB: fmul st(1) */
  15400     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361048DD: fstp dword ptr [ebp - 0x1c] */
  15401     ecx = MEM32(ebp + (-0x1C)); /* 0x361048E0: mov ecx, dword ptr [ebp - 0x1c] */
  15402     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361048E3: fld dword ptr [ebp - 0x18] */
  15403     MEM32(ebp + (-0xB0)) = ecx; /* 0x361048E6: mov dword ptr [ebp - 0xb0], ecx */
  15404     _st[0] *= _st[1]; /* 0x361048EC: fmul st(1) */
  15405     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361048EE: fstp dword ptr [ebp - 0x18] */
  15406     edx = MEM32(ebp + (-0x18)); /* 0x361048F1: mov edx, dword ptr [ebp - 0x18] */
  15407     MEM32(ebp + (-0xAC)) = edx; /* 0x361048F4: mov dword ptr [ebp - 0xac], edx */
  15408     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361048FA: fstp st(0) */
  15409     fp_push(*(float*)&MEM32(edi + 0x10)); /* 0x361048FC: fld dword ptr [edi + 0x10] */
  15410     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361048FF: fstp dword ptr [ebp - 0x80] */
  15411     fp_push(*(float*)&MEM32(edi + 0x14)); /* 0x36104902: fld dword ptr [edi + 0x14] */
  15412     eax = MEM32(ebp + (-0x80)); /* 0x36104905: mov eax, dword ptr [ebp - 0x80] */
  15413     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36104908: fstp dword ptr [ebp - 0x7c] */
  15414     fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x3610490B: fld dword ptr [edi + 0x18] */
  15415     ecx = MEM32(ebp + (-0x7C)); /* 0x3610490E: mov ecx, dword ptr [ebp - 0x7c] */
  15416     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36104911: fstp dword ptr [ebp - 0x78] */
  15417     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x36104914: fld dword ptr [ebx + 0xee4] */
  15418     edx = MEM32(ebp + (-0x78)); /* 0x3610491A: mov edx, dword ptr [ebp - 0x78] */
  15419     fp_push(_st[0]); /* 0x3610491D: fld st(0) */
  15420     MEM32(ebp + (-0xC4)) = eax; /* 0x3610491F: mov dword ptr [ebp - 0xc4], eax */
  15421     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36104925: fmul dword ptr [ebp - 0x80] */
  15422     eax = MEM32(ebp + (-0x14)); /* 0x36104928: mov eax, dword ptr [ebp - 0x14] */
  15423     MEM32(ebp + (-0xC0)) = ecx; /* 0x3610492B: mov dword ptr [ebp - 0xc0], ecx */
  15424     SET_LO8(ecx, MEM8(eax + ebx + 0xE2C)); /* 0x36104931: mov cl, byte ptr [eax + ebx + 0xe2c] */
  15425     /* test LO8(ecx), LO8(ecx) */ /* 0x36104938: test cl, cl */
  15426     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  15427     _cf = 0;
  15428     _flag_k = FK_NARROW(FK_TEST, 24);
  15429     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC4)) = _v; } /* 0x3610493A: fstp dword ptr [ebp - 0xc4] */
  15430     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36104940: fld dword ptr [ebp - 0xc0] */
  15431     MEM32(ebp + (-0xBC)) = edx; /* 0x36104946: mov dword ptr [ebp - 0xbc], edx */
  15432     _st[0] *= _st[1]; /* 0x3610494C: fmul st(1) */
  15433     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC0)) = _v; } /* 0x3610494E: fstp dword ptr [ebp - 0xc0] */
  15434     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36104954: fld dword ptr [ebp - 0xbc] */
  15435     _st[0] *= _st[1]; /* 0x3610495A: fmul st(1) */
  15436     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xBC)) = _v; } /* 0x3610495C: fstp dword ptr [ebp - 0xbc] */
  15437     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104962: fstp st(0) */
  15438     if (TEST_Z(_flag_a, _flag_b)) goto L_361049AB; /* 0x36104964: je 0x361049ab */
  15439 L_36104966:
  15440     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36104966: fld dword ptr [ebp - 0x20] */
  15441     _st[0] = -_st[0]; /* 0x36104969: fchs  */
  15442     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3610496B: fstp dword ptr [ebp - 0xa8] */
  15443     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36104971: fld dword ptr [ebp - 0x1c] */
  15444     ecx = MEM32(ebp + (-0xA8)); /* 0x36104974: mov ecx, dword ptr [ebp - 0xa8] */
  15445     _st[0] = -_st[0]; /* 0x3610497A: fchs  */
  15446     MEM32(ebp + (-0xB4)) = ecx; /* 0x3610497C: mov dword ptr [ebp - 0xb4], ecx */
  15447     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36104982: fstp dword ptr [ebp - 0xa4] */
  15448     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36104988: fld dword ptr [ebp - 0x18] */
  15449     edx = MEM32(ebp + (-0xA4)); /* 0x3610498B: mov edx, dword ptr [ebp - 0xa4] */
  15450     _st[0] = -_st[0]; /* 0x36104991: fchs  */
  15451     MEM32(ebp + (-0xB0)) = edx; /* 0x36104993: mov dword ptr [ebp - 0xb0], edx */
  15452     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36104999: fstp dword ptr [ebp - 0xa0] */
  15453     eax = MEM32(ebp + (-0xA0)); /* 0x3610499F: mov eax, dword ptr [ebp - 0xa0] */
  15454     MEM32(ebp + (-0xAC)) = eax; /* 0x361049A5: mov dword ptr [ebp - 0xac], eax */
  15455 L_361049AB:
  15456     ecx = ebp + (-0x220); /* 0x361049AB: lea ecx, [ebp - 0x220] */
  15457     PUSH32(esp, ecx); /* 0x361049B1: push ecx */
  15458     ecx = MEM32(ebx + 0x20); /* 0x361049B2: mov ecx, dword ptr [ebx + 0x20] */
  15459     RECOMP_ICALL(0x36133FC0u); /* 0x361049B5: call 0x36133fc0 */ /* not lifted */
  15460     RECOMP_FLAGS_IN();
  15461     edx = MEM32(eax); /* 0x361049BA: mov edx, dword ptr [eax] */
  15462     ecx = MEM32(eax + 0x4); /* 0x361049BC: mov ecx, dword ptr [eax + 4] */
  15463     MEM32(ebp + (-0x8C)) = edx; /* 0x361049BF: mov dword ptr [ebp - 0x8c], edx */
  15464     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361049C5: fld dword ptr [ebp - 0x8c] */
  15465     edx = MEM32(eax + 0x8); /* 0x361049CB: mov edx, dword ptr [eax + 8] */
  15466     eax = MEM32(ebp + (-0x10)); /* 0x361049CE: mov eax, dword ptr [ebp - 0x10] */
  15467     _st[0] += (double)*(float*)ADDR(eax); /* 0x361049D1: fadd dword ptr [eax] */
  15468     MEM32(ebp + (-0x88)) = ecx; /* 0x361049D3: mov dword ptr [ebp - 0x88], ecx */
  15469     ecx = MEM32(ebx + 0x28); /* 0x361049D9: mov ecx, dword ptr [ebx + 0x28] */
  15470     MEM32(ebp + (-0x84)) = edx; /* 0x361049DC: mov dword ptr [ebp - 0x84], edx */
  15471     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x361049E2: fstp dword ptr [ebp - 0x8c] */
  15472     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361049E8: fld dword ptr [ebp - 0x88] */
  15473     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x361049EE: fadd dword ptr [eax + 4] */
  15474     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x361049F1: fstp dword ptr [ebp - 0x88] */
  15475     edx = MEM32(ebp + (-0x88)); /* 0x361049F7: mov edx, dword ptr [ebp - 0x88] */
  15476     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x361049FD: fld dword ptr [ebp - 0x84] */
  15477     _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x36104A03: fadd dword ptr [eax + 8] */
  15478     eax = esi; /* 0x36104A06: mov eax, esi */
  15479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15481     eax = eax + ecx; /* 0x36104A08: add eax, ecx */
  15482     _flag_k = FK_ADD;
  15483     ecx = MEM32(ebp + (-0x8C)); /* 0x36104A0A: mov ecx, dword ptr [ebp - 0x8c] */
  15484     MEM32(eax) = ecx; /* 0x36104A10: mov dword ptr [eax], ecx */
  15485     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36104A12: fstp dword ptr [ebp - 0x84] */
  15486     ecx = MEM32(ebp + (-0x84)); /* 0x36104A18: mov ecx, dword ptr [ebp - 0x84] */
  15487     MEM32(eax + 0x4) = edx; /* 0x36104A1E: mov dword ptr [eax + 4], edx */
  15488     MEM32(eax + 0x8) = ecx; /* 0x36104A21: mov dword ptr [eax + 8], ecx */
  15489     edx = MEM32(ebx + 0x28); /* 0x36104A24: mov edx, dword ptr [ebx + 0x28] */
  15490     ecx = MEM32(ebp + (-0xB4)); /* 0x36104A27: mov ecx, dword ptr [ebp - 0xb4] */
  15491     eax = esi + edx + 0xC; /* 0x36104A2D: lea eax, [esi + edx + 0xc] */
  15492     edx = MEM32(ebp + (-0xB0)); /* 0x36104A31: mov edx, dword ptr [ebp - 0xb0] */
  15493     MEM32(eax) = ecx; /* 0x36104A37: mov dword ptr [eax], ecx */
  15494     ecx = MEM32(ebp + (-0xAC)); /* 0x36104A39: mov ecx, dword ptr [ebp - 0xac] */
  15495     MEM32(eax + 0x4) = edx; /* 0x36104A3F: mov dword ptr [eax + 4], edx */
  15496     MEM32(eax + 0x8) = ecx; /* 0x36104A42: mov dword ptr [eax + 8], ecx */
  15497     edx = MEM32(ebx + 0x28); /* 0x36104A45: mov edx, dword ptr [ebx + 0x28] */
  15498     ecx = MEM32(ebp + (-0xC4)); /* 0x36104A48: mov ecx, dword ptr [ebp - 0xc4] */
  15499     eax = esi + edx + 0x18; /* 0x36104A4E: lea eax, [esi + edx + 0x18] */
  15500     edx = MEM32(ebp + (-0xC0)); /* 0x36104A52: mov edx, dword ptr [ebp - 0xc0] */
  15501     MEM32(eax) = ecx; /* 0x36104A58: mov dword ptr [eax], ecx */
  15502     ecx = MEM32(ebp + (-0xBC)); /* 0x36104A5A: mov ecx, dword ptr [ebp - 0xbc] */
  15503     MEM32(eax + 0x4) = edx; /* 0x36104A60: mov dword ptr [eax + 4], edx */
  15504     edx = MEM32(ebp + (-0xB8)); /* 0x36104A63: mov edx, dword ptr [ebp - 0xb8] */
  15505     MEM32(eax + 0x8) = ecx; /* 0x36104A69: mov dword ptr [eax + 8], ecx */
  15506     PUSH32(esp, edx); /* 0x36104A6C: push edx */
  15507     ecx = ebx + 0xEA8; /* 0x36104A6D: lea ecx, [ebx + 0xea8] */
  15508     RECOMP_ICALL(0x36137D80u); /* 0x36104A73: call 0x36137d80 */ /* not lifted */
  15509     RECOMP_FLAGS_IN();
  15510     ecx = MEM32(ebx + 0x28); /* 0x36104A78: mov ecx, dword ptr [ebx + 0x28] */
  15511     MEM32(esi + ecx + 0x24) = eax; /* 0x36104A7B: mov dword ptr [esi + ecx + 0x24], eax */
  15512     edx = MEM32(ebx + 0x28); /* 0x36104A7F: mov edx, dword ptr [ebx + 0x28] */
  15513     eax = MEM32(ebp + (-0x34)); /* 0x36104A82: mov eax, dword ptr [ebp - 0x34] */
  15514     MEM32(esi + edx + 0x28) = eax; /* 0x36104A85: mov dword ptr [esi + edx + 0x28], eax */
  15515     ecx = MEM32(ebx + 0x28); /* 0x36104A89: mov ecx, dword ptr [ebx + 0x28] */
  15516     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36104A8C: mov byte ptr [esi + ecx + 0x2c], 1 */
  15517     ecx = MEM32(ebp + (-0x38)); /* 0x36104A91: mov ecx, dword ptr [ebp - 0x38] */
  15518     goto L_36104E9F; /* 0x36104A94: jmp 0x36104e9f */
  15519 L_36104A99:
  15520     eax = MEM32(ebp + (-0x24)); /* 0x36104A99: mov eax, dword ptr [ebp - 0x24] */
  15521     /* test eax, eax */ /* 0x36104A9C: test eax, eax */
  15522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  15523     _cf = 0;
  15524     _flag_k = FK_TEST;
  15525     if (TEST_Z(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104A9E: je 0x36104e91 */
  15526 L_36104AA4:
  15527     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x36104AA4: mov al, byte ptr [ebx + 0xe6c] */
  15528     /* test LO8(eax), LO8(eax) */ /* 0x36104AAA: test al, al */
  15529     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  15530     _cf = 0;
  15531     _flag_k = FK_NARROW(FK_TEST, 24);
  15532     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104AAC: jne 0x36104e91 */
  15533 L_36104AB2:
  15534     edx = ebp + (-0xC); /* 0x36104AB2: lea edx, [ebp - 0xc] */
  15535     PUSH32(esp, edx); /* 0x36104AB5: push edx */
  15536     MEM32(ebp + (-0xC)) = 0; /* 0x36104AB6: mov dword ptr [ebp - 0xc], 0 */
  15537     MEM32(ebp + (-0x8)) = 0; /* 0x36104ABD: mov dword ptr [ebp - 8], 0 */
  15538     MEM32(ebp + (-0x4)) = 0; /* 0x36104AC4: mov dword ptr [ebp - 4], 0 */
  15539     RECOMP_ICALL(0x360FCA70u); /* 0x36104ACB: call 0x360fca70 */ /* not lifted */
  15540     RECOMP_FLAGS_IN();
  15541     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104AD0: fld dword ptr [ebp - 8] */
  15542     _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x36104AD3: fmul dword ptr [0x36174f9c] */
  15543     eax = MEM32(ebp + (-0xC)); /* 0x36104AD9: mov eax, dword ptr [ebp - 0xc] */
  15544     edx = MEM32(ebp + (-0x4)); /* 0x36104ADC: mov edx, dword ptr [ebp - 4] */
  15545     MEM32(ebp + (-0x64)) = eax; /* 0x36104ADF: mov dword ptr [ebp - 0x64], eax */
  15546     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104AE2: fstp dword ptr [ebp - 8] */
  15547     ecx = MEM32(ebp + (-0x8)); /* 0x36104AE5: mov ecx, dword ptr [ebp - 8] */
  15548     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x36104AE8: fld dword ptr [ebx + 0xee8] */
  15549     MEM32(ebp + (-0x60)) = ecx; /* 0x36104AEE: mov dword ptr [ebp - 0x60], ecx */
  15550     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104AF1: fld dword ptr [ebp - 0xc] */
  15551     MEM32(ebp + (-0x5C)) = edx; /* 0x36104AF4: mov dword ptr [ebp - 0x5c], edx */
  15552     _st[0] *= _st[1]; /* 0x36104AF7: fmul st(1) */
  15553     esi = MEM32(ebp + (-0x10)); /* 0x36104AF9: mov esi, dword ptr [ebp - 0x10] */
  15554     eax = esi; /* 0x36104AFC: mov eax, esi */
  15555     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36104AFE: fstp dword ptr [ebp - 0x64] */
  15556     ecx = MEM32(ebp + (-0x64)); /* 0x36104B01: mov ecx, dword ptr [ebp - 0x64] */
  15557     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36104B04: fld dword ptr [ebp - 0x60] */
  15558     MEM32(eax) = ecx; /* 0x36104B07: mov dword ptr [eax], ecx */
  15559     _st[0] *= _st[1]; /* 0x36104B09: fmul st(1) */
  15560     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36104B0B: fstp dword ptr [ebp - 0x60] */
  15561     edx = MEM32(ebp + (-0x60)); /* 0x36104B0E: mov edx, dword ptr [ebp - 0x60] */
  15562     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36104B11: fld dword ptr [ebp - 0x5c] */
  15563     MEM32(eax + 0x4) = edx; /* 0x36104B14: mov dword ptr [eax + 4], edx */
  15564     _st[0] *= _st[1]; /* 0x36104B17: fmul st(1) */
  15565     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36104B19: fstp dword ptr [ebp - 0x5c] */
  15566     ecx = MEM32(ebp + (-0x5C)); /* 0x36104B1C: mov ecx, dword ptr [ebp - 0x5c] */
  15567     MEM32(eax + 0x8) = ecx; /* 0x36104B1F: mov dword ptr [eax + 8], ecx */
  15568     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B22: fstp st(0) */
  15569     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104B24: fld dword ptr [ebp - 8] */
  15570     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B27: fld dword ptr [ebp - 4] */
  15571     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104B2A: fld dword ptr [ebp - 0xc] */
  15572     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B2D: fmul dword ptr [ebp - 0xc] */
  15573     fp_push(_st[1]); /* 0x36104B30: fld st(1) */
  15574     _st[0] *= _st[2]; /* 0x36104B32: fmul st(2) */
  15575     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B34: faddp st(1) */
  15576     fp_push(_st[2]); /* 0x36104B36: fld st(2) */
  15577     _st[0] *= _st[3]; /* 0x36104B38: fmul st(3) */
  15578     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B3A: faddp st(1) */
  15579     _st[0] = sqrt(_st[0]); /* 0x36104B3C: fsqrt  */
  15580     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x36104B3E: fstp st(2) */
  15581     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B40: fstp st(0) */
  15582     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104B42: fdivr dword ptr [0x36170380] */
  15583     fp_push(_st[0]); /* 0x36104B48: fld st(0) */
  15584     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B4A: fmul dword ptr [ebp - 0xc] */
  15585     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36104B4D: fstp dword ptr [ebp - 0xc] */
  15586     fp_push(_st[0]); /* 0x36104B50: fld st(0) */
  15587     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104B52: fmul dword ptr [ebp - 8] */
  15588     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104B55: fstp dword ptr [ebp - 8] */
  15589     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B58: fld dword ptr [ebp - 4] */
  15590     _st[0] *= _st[1]; /* 0x36104B5B: fmul st(1) */
  15591     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36104B5D: fstp dword ptr [ebp - 4] */
  15592     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B60: fstp st(0) */
  15593     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104B62: call dword ptr [0x3616f254] */
  15594     RECOMP_FLAGS_IN();
  15595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  15596     eax = eax & 0x7FFFu; /* 0x36104B68: and eax, 0x7fff */
  15597     _cf = 0;
  15598     _flag_k = FK_TEST;
  15599     MEM32(ebp + (-0x30)) = eax; /* 0x36104B6D: mov dword ptr [ebp - 0x30], eax */
  15600     fp_push((double)(int32_t)MEM32(ebp + (-0x30))); /* 0x36104B70: fild dword ptr [ebp - 0x30] */
  15601     edx = ebp + (-0xD0); /* 0x36104B73: lea edx, [ebp - 0xd0] */
  15602     PUSH32(esp, edx); /* 0x36104B79: push edx */
  15603     PUSH32(esp, esi); /* 0x36104B7A: push esi */
  15604     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x36104B7B: fmul dword ptr [0x36175f30] */
  15605     MEM32(ebp + (-0xD0)) = 0; /* 0x36104B81: mov dword ptr [ebp - 0xd0], 0 */
  15606     MEM32(ebp + (-0xCC)) = 0; /* 0x36104B8B: mov dword ptr [ebp - 0xcc], 0 */
  15607     MEM32(ebp + (-0xC8)) = 0; /* 0x36104B95: mov dword ptr [ebp - 0xc8], 0 */
  15608     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36104B9F: fstp dword ptr [ebp - 0x2c] */
  15609     RECOMP_ICALL(0x360FCE60u); /* 0x36104BA2: call 0x360fce60 */ /* not lifted */
  15610     RECOMP_FLAGS_IN();
  15611     eax = MEM32(ebp + (-0xD0)); /* 0x36104BA7: mov eax, dword ptr [ebp - 0xd0] */
  15612     ecx = MEM32(ebp + (-0xCC)); /* 0x36104BAD: mov ecx, dword ptr [ebp - 0xcc] */
  15613     edx = MEM32(ebp + (-0xC8)); /* 0x36104BB3: mov edx, dword ptr [ebp - 0xc8] */
  15614     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  15615     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15616     esp = esp + 0xCu; /* 0x36104BB9: add esp, 0xc */
  15617     _flag_k = FK_ADD;
  15618     MEM32(ebp + (-0xEC)) = eax; /* 0x36104BBC: mov dword ptr [ebp - 0xec], eax */
  15619     MEM32(ebp + (-0xE8)) = ecx; /* 0x36104BC2: mov dword ptr [ebp - 0xe8], ecx */
  15620     MEM32(ebp + (-0xE4)) = edx; /* 0x36104BC8: mov dword ptr [ebp - 0xe4], edx */
  15621     MEM32(ebp + (-0xE0)) = 0; /* 0x36104BCE: mov dword ptr [ebp - 0xe0], 0 */
  15622     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104BD8: fld dword ptr [ebp - 0x2c] */
  15623     MEM32(ebp + (-0x9C)) = eax; /* 0x36104BDB: mov dword ptr [ebp - 0x9c], eax */
  15624     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36104BE1: fcomp dword ptr [0x3617040c] */
  15625     fp_pop();
  15626     eax = MEM32(ebp + (-0xE0)); /* 0x36104BE7: mov eax, dword ptr [ebp - 0xe0] */
  15627     MEM32(ebp + (-0x90)) = eax; /* 0x36104BED: mov dword ptr [ebp - 0x90], eax */
  15628     MEM32(ebp + (-0x98)) = ecx; /* 0x36104BF3: mov dword ptr [ebp - 0x98], ecx */
  15629     MEM32(ebp + (-0x94)) = edx; /* 0x36104BF9: mov dword ptr [ebp - 0x94], edx */
  15630     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104BFF: fnstsw ax */
  15631     /* test HI8(eax), 1 */ /* 0x36104C01: test ah, 1 */
  15632     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15633     _cf = 0;
  15634     _flag_k = FK_NARROW(FK_TEST, 24);
  15635     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C04: jne 0x36104c21 */
  15636 L_36104C06:
  15637     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C06: fld dword ptr [ebp - 0x2c] */
  15638     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36104C09: fcomp qword ptr [0x361708b8] */
  15639     fp_pop();
  15640     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104C0F: fnstsw ax */
  15641     /* test HI8(eax), 1 */ /* 0x36104C11: test ah, 1 */
  15642     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15643     _cf = 0;
  15644     _flag_k = FK_NARROW(FK_TEST, 24);
  15645     if (TEST_Z(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C14: je 0x36104c21 */
  15646 L_36104C16:
  15647     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C16: fld dword ptr [ebp - 0x2c] */
  15648     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36104C19: fmul dword ptr [0x36170464] */
  15649     goto L_36104C45; /* 0x36104C1F: jmp 0x36104c45 */
  15650 L_36104C21:
  15651     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C21: fld dword ptr [ebp - 0x2c] */
  15652     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  15653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15654     esp = esp - 8; /* 0x36104C24: sub esp, 8 */
  15655     _flag_k = FK_CMP;
  15656     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x36104C27: fmul dword ptr [0x361708b4] */
  15657     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104C2D: fst dword ptr [ebp - 0x30] */
  15658     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36104C30: fstp qword ptr [esp] */
  15659     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x36104C33: call dword ptr [0x3616f198] */
  15660     RECOMP_FLAGS_IN();
  15661     _st[0] = (double)*(float*)ADDR(ebp + (-0x30)) - _st[0]; /* 0x36104C39: fsubr dword ptr [ebp - 0x30] */
  15662     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  15663     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15664     esp = esp + 8; /* 0x36104C3C: add esp, 8 */
  15665     _flag_k = FK_ADD;
  15666     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36104C3F: fmul dword ptr [0x361708b0] */
  15667 L_36104C45:
  15668     fp_push(_st[0]); /* 0x36104C45: fld st(0) */
  15669     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36104C47: fsin  */
  15670     fp_push(_st[0]); /* 0x36104C49: fld st(0) */
  15671     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104C4B: fmul dword ptr [ebp - 0xc] */
  15672     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36104C4E: fstp dword ptr [ebp - 0x48] */
  15673     eax = MEM32(ebp + (-0x48)); /* 0x36104C51: mov eax, dword ptr [ebp - 0x48] */
  15674     MEM32(ebp + (-0x74)) = eax; /* 0x36104C54: mov dword ptr [ebp - 0x74], eax */
  15675     fp_push(_st[0]); /* 0x36104C57: fld st(0) */
  15676     MEM32(ebp + (-0xFC)) = eax; /* 0x36104C59: mov dword ptr [ebp - 0xfc], eax */
  15677     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104C5F: fmul dword ptr [ebp - 8] */
  15678     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36104C62: fstp dword ptr [ebp - 0x44] */
  15679     ecx = MEM32(ebp + (-0x44)); /* 0x36104C65: mov ecx, dword ptr [ebp - 0x44] */
  15680     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104C68: fld dword ptr [ebp - 4] */
  15681     MEM32(ebp + (-0x70)) = ecx; /* 0x36104C6B: mov dword ptr [ebp - 0x70], ecx */
  15682     _st[0] *= _st[1]; /* 0x36104C6E: fmul st(1) */
  15683     MEM32(ebp + (-0xF8)) = ecx; /* 0x36104C70: mov dword ptr [ebp - 0xf8], ecx */
  15684     ecx = ebp + (-0x9C); /* 0x36104C76: lea ecx, [ebp - 0x9c] */
  15685     PUSH32(esp, ecx); /* 0x36104C7C: push ecx */
  15686     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36104C7D: fstp dword ptr [ebp - 0x40] */
  15687     edx = MEM32(ebp + (-0x40)); /* 0x36104C80: mov edx, dword ptr [ebp - 0x40] */
  15688     MEM32(ebp + (-0x6C)) = edx; /* 0x36104C83: mov dword ptr [ebp - 0x6c], edx */
  15689     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104C86: fstp st(0) */
  15690     ecx = ebp + (-0xFC); /* 0x36104C88: lea ecx, [ebp - 0xfc] */
  15691     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36104C8E: fcos  */
  15692     MEM32(ebp + (-0xF4)) = edx; /* 0x36104C90: mov dword ptr [ebp - 0xf4], edx */
  15693     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36104C96: fstp dword ptr [ebp - 0x3c] */
  15694     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36104C99: fld dword ptr [ebp - 0x48] */
  15695     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104C9C: fmul dword ptr [ebp - 0x48] */
  15696     esi = MEM32(ebp + (-0x3C)); /* 0x36104C9F: mov esi, dword ptr [ebp - 0x3c] */
  15697     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36104CA2: fld dword ptr [ebp - 0x3c] */
  15698     MEM32(ebp + (-0x68)) = esi; /* 0x36104CA5: mov dword ptr [ebp - 0x68], esi */
  15699     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36104CA8: fmul dword ptr [ebp - 0x3c] */
  15700     MEM32(ebp + (-0xF0)) = esi; /* 0x36104CAB: mov dword ptr [ebp - 0xf0], esi */
  15701     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB1: faddp st(1) */
  15702     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36104CB3: fld dword ptr [ebp - 0x40] */
  15703     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36104CB6: fmul dword ptr [ebp - 0x40] */
  15704     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB9: faddp st(1) */
  15705     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36104CBB: fld dword ptr [ebp - 0x44] */
  15706     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x36104CBE: fmul dword ptr [ebp - 0x44] */
  15707     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CC1: faddp st(1) */
  15708     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104CC3: fdivr dword ptr [0x36170380] */
  15709     fp_push(_st[0]); /* 0x36104CC9: fld st(0) */
  15710     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104CCB: fmul dword ptr [ebp - 0x48] */
  15711     _st[0] = -_st[0]; /* 0x36104CCE: fchs  */
  15712     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36104CD0: fstp dword ptr [ebp - 0x74] */
  15713     edi = MEM32(ebp + (-0x74)); /* 0x36104CD3: mov edi, dword ptr [ebp - 0x74] */
  15714     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36104CD6: fld dword ptr [ebp - 0x70] */
  15715     MEM32(ebp + (-0x198)) = edi; /* 0x36104CD9: mov dword ptr [ebp - 0x198], edi */
  15716     _st[0] *= _st[1]; /* 0x36104CDF: fmul st(1) */
  15717     _st[0] = -_st[0]; /* 0x36104CE1: fchs  */
  15718     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36104CE3: fstp dword ptr [ebp - 0x70] */
  15719     edi = MEM32(ebp + (-0x70)); /* 0x36104CE6: mov edi, dword ptr [ebp - 0x70] */
  15720     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36104CE9: fld dword ptr [ebp - 0x6c] */
  15721     MEM32(ebp + (-0x194)) = edi; /* 0x36104CEC: mov dword ptr [ebp - 0x194], edi */
  15722     _st[0] *= _st[1]; /* 0x36104CF2: fmul st(1) */
  15723     _st[0] = -_st[0]; /* 0x36104CF4: fchs  */
  15724     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36104CF6: fstp dword ptr [ebp - 0x6c] */
  15725     edi = MEM32(ebp + (-0x6C)); /* 0x36104CF9: mov edi, dword ptr [ebp - 0x6c] */
  15726     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36104CFC: fld dword ptr [ebp - 0x68] */
  15727     MEM32(ebp + (-0x190)) = edi; /* 0x36104CFF: mov dword ptr [ebp - 0x190], edi */
  15728     _st[0] *= _st[1]; /* 0x36104D05: fmul st(1) */
  15729     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36104D07: fstp dword ptr [ebp - 0x68] */
  15730     edi = MEM32(ebp + (-0x68)); /* 0x36104D0A: mov edi, dword ptr [ebp - 0x68] */
  15731     MEM32(ebp + (-0x18C)) = edi; /* 0x36104D0D: mov dword ptr [ebp - 0x18c], edi */
  15732     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104D13: fstp st(0) */
  15733     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D15: call dword ptr [0x3617019c] */
  15734     RECOMP_FLAGS_IN();
  15735     edx = MEM32(eax); /* 0x36104D1B: mov edx, dword ptr [eax] */
  15736     ecx = MEM32(eax + 0x4); /* 0x36104D1D: mov ecx, dword ptr [eax + 4] */
  15737     MEM32(ebp + (-0x108)) = ecx; /* 0x36104D20: mov dword ptr [ebp - 0x108], ecx */
  15738     MEM32(ebp + (-0x10C)) = edx; /* 0x36104D26: mov dword ptr [ebp - 0x10c], edx */
  15739     edx = MEM32(eax + 0x8); /* 0x36104D2C: mov edx, dword ptr [eax + 8] */
  15740     eax = MEM32(eax + 0xC); /* 0x36104D2F: mov eax, dword ptr [eax + 0xc] */
  15741     ecx = ebp + (-0x198); /* 0x36104D32: lea ecx, [ebp - 0x198] */
  15742     PUSH32(esp, ecx); /* 0x36104D38: push ecx */
  15743     ecx = ebp + (-0x10C); /* 0x36104D39: lea ecx, [ebp - 0x10c] */
  15744     MEM32(ebp + (-0x104)) = edx; /* 0x36104D3F: mov dword ptr [ebp - 0x104], edx */
  15745     MEM32(ebp + (-0x100)) = eax; /* 0x36104D45: mov dword ptr [ebp - 0x100], eax */
  15746     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D4B: call dword ptr [0x3617019c] */
  15747     RECOMP_FLAGS_IN();
  15748     edx = MEM32(eax); /* 0x36104D51: mov edx, dword ptr [eax] */
  15749     MEM32(ebp + (-0x9C)) = edx; /* 0x36104D53: mov dword ptr [ebp - 0x9c], edx */
  15750     ecx = MEM32(eax + 0x4); /* 0x36104D59: mov ecx, dword ptr [eax + 4] */
  15751     fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36104D5C: fld dword ptr [ebp - 0x9c] */
  15752     MEM32(ebp + (-0x98)) = ecx; /* 0x36104D62: mov dword ptr [ebp - 0x98], ecx */
  15753     edx = MEM32(eax + 0x8); /* 0x36104D68: mov edx, dword ptr [eax + 8] */
  15754     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36104D6B: fst dword ptr [ebp - 0x54] */
  15755     fp_push(*(float*)&MEM32(ebp + (-0x98))); /* 0x36104D6E: fld dword ptr [ebp - 0x98] */
  15756     MEM32(ebp + (-0x94)) = edx; /* 0x36104D74: mov dword ptr [ebp - 0x94], edx */
  15757     eax = MEM32(eax + 0xC); /* 0x36104D7A: mov eax, dword ptr [eax + 0xc] */
  15758     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36104D7D: fstp dword ptr [ebp - 0x50] */
  15759     fp_push(*(float*)&MEM32(ebp + (-0x94))); /* 0x36104D80: fld dword ptr [ebp - 0x94] */
  15760     ecx = MEM32(ebp + (-0x54)); /* 0x36104D86: mov ecx, dword ptr [ebp - 0x54] */
  15761     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36104D89: fstp dword ptr [ebp - 0x4c] */
  15762     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104D8C: fld dword ptr [ebp - 0x50] */
  15763     edx = MEM32(ebp + (-0x50)); /* 0x36104D8F: mov edx, dword ptr [ebp - 0x50] */
  15764     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36104D92: fmul dword ptr [ebp - 4] */
  15765     MEM32(ebp + (-0xD0)) = ecx; /* 0x36104D95: mov dword ptr [ebp - 0xd0], ecx */
  15766     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104D9B: fld dword ptr [ebp - 0x4c] */
  15767     ecx = MEM32(ebp + (-0xC)); /* 0x36104D9E: mov ecx, dword ptr [ebp - 0xc] */
  15768     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104DA1: fmul dword ptr [ebp - 8] */
  15769     MEM32(ebp + (-0x12C)) = ecx; /* 0x36104DA4: mov dword ptr [ebp - 0x12c], ecx */
  15770     MEM32(ebp + (-0x90)) = eax; /* 0x36104DAA: mov dword ptr [ebp - 0x90], eax */
  15771     eax = MEM32(ebp + (-0x4C)); /* 0x36104DB0: mov eax, dword ptr [ebp - 0x4c] */
  15772     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DB3: fsubp st(1) */
  15773     MEM32(ebp + (-0xC8)) = eax; /* 0x36104DB5: mov dword ptr [ebp - 0xc8], eax */
  15774     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104DBB: fld dword ptr [ebp - 0x4c] */
  15775     eax = MEM32(ebp + (-0x8)); /* 0x36104DBE: mov eax, dword ptr [ebp - 8] */
  15776     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104DC1: fmul dword ptr [ebp - 0xc] */
  15777     MEM32(ebp + (-0x124)) = edx; /* 0x36104DC4: mov dword ptr [ebp - 0x124], edx */
  15778     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104DCA: fld dword ptr [ebp - 4] */
  15779     MEM32(ebp + (-0x120)) = eax; /* 0x36104DCD: mov dword ptr [ebp - 0x120], eax */
  15780     _st[0] *= _st[3]; /* 0x36104DD3: fmul st(3) */
  15781     eax = MEM32(ebp + (-0x4)); /* 0x36104DD5: mov eax, dword ptr [ebp - 4] */
  15782     MEM32(ebp + (-0xCC)) = edx; /* 0x36104DD8: mov dword ptr [ebp - 0xcc], edx */
  15783     edx = MEM32(ebp + (-0x4C)); /* 0x36104DDE: mov edx, dword ptr [ebp - 0x4c] */
  15784     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DE1: fsubp st(1) */
  15785     MEM32(ebp + (-0x118)) = edx; /* 0x36104DE3: mov dword ptr [ebp - 0x118], edx */
  15786     MEM32(ebp + (-0x114)) = eax; /* 0x36104DE9: mov dword ptr [ebp - 0x114], eax */
  15787     esi = ebp + (-0x130); /* 0x36104DEF: lea esi, [ebp - 0x130] */
  15788     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104DF5: fstp dword ptr [ebp - 0x30] */
  15789     edi = ebp + (-0x188); /* 0x36104DF8: lea edi, [ebp - 0x188] */
  15790     ecx = MEM32(ebp + (-0x30)); /* 0x36104DFE: mov ecx, dword ptr [ebp - 0x30] */
  15791     fp_push(_st[1]); /* 0x36104E01: fld st(1) */
  15792     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104E03: fmul dword ptr [ebp - 8] */
  15793     MEM32(ebp + (-0x11C)) = ecx; /* 0x36104E06: mov dword ptr [ebp - 0x11c], ecx */
  15794     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104E0C: fld dword ptr [ebp - 0x50] */
  15795     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104E0F: fmul dword ptr [ebp - 0xc] */
  15796     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104E12: fsubp st(1) */
  15797     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36104E14: fstp dword ptr [ebp - 0x15c] */
  15798     ecx = MEM32(ebp + (-0x15C)); /* 0x36104E1A: mov ecx, dword ptr [ebp - 0x15c] */
  15799     fp_xch(1); /* 0x36104E20: fxch st(1) */
  15800     MEM32(ebp + (-0x110)) = ecx; /* 0x36104E22: mov dword ptr [ebp - 0x110], ecx */
  15801     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x130)) = _v; } /* 0x36104E28: fstp dword ptr [ebp - 0x130] */
  15802     ecx = 9; /* 0x36104E2E: mov ecx, 9 */
  15803     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x128)) = _v; } /* 0x36104E33: fstp dword ptr [ebp - 0x128] */
  15804     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E39: 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; }
  15805     ecx = ebp + (-0x188); /* 0x36104E3B: lea ecx, [ebp - 0x188] */
  15806     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36104E41: call dword ptr [0x361701f8] */
  15807     RECOMP_FLAGS_IN();
  15808     edx = MEM32(ebp + (-0x28)); /* 0x36104E47: mov edx, dword ptr [ebp - 0x28] */
  15809     eax = MEM32(ebp + (-0x38)); /* 0x36104E4A: mov eax, dword ptr [ebp - 0x38] */
  15810     edi = edx + (-0x8); /* 0x36104E4D: lea edi, [edx - 8] */
  15811     ecx = 9; /* 0x36104E50: mov ecx, 9 */
  15812     esi = ebp + (-0x188); /* 0x36104E55: lea esi, [ebp - 0x188] */
  15813     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E5B: 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; }
  15814     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x36104E5D: fld dword ptr [ebx + 0xedc] */
  15815     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x36104E63: fadd dword ptr [ebx + 0xc] */
  15816     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36104E66: fstp dword ptr [eax] */
  15817     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104E68: call dword ptr [0x3616f254] */
  15818     RECOMP_FLAGS_IN();
  15819     ecx = MEM32(ebp + (-0x14)); /* 0x36104E6E: mov ecx, dword ptr [ebp - 0x14] */
  15820     edi = MEM32(ebp + (-0x28)); /* 0x36104E71: mov edi, dword ptr [ebp - 0x28] */
  15821     esi = MEM32(ebp + (-0x34)); /* 0x36104E74: mov esi, dword ptr [ebp - 0x34] */
  15822     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15823     eax = eax & 1; /* 0x36104E77: and eax, 1 */
  15824     _cf = 0;
  15825     _flag_k = FK_TEST;
  15826     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15827     SET_LO8(eax, LO8(eax) - 1); /* 0x36104E7A: dec al */
  15828     _flag_k = FK_NARROW(FK_DEC, 24);
  15829     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  15830     _cf = (LO8(eax)) != 0;
  15831     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36104E7C: neg al */
  15832     _flag_k = FK_NARROW(FK_CMP, 24);
  15833     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36104E7E: sbb al, al */
  15834       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  15835       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  15836       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  15837     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  15838     SET_LO8(eax, LO8(eax) + 1); /* 0x36104E80: inc al */
  15839     _flag_k = FK_NARROW(FK_INC, 24);
  15840     MEM8(ecx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x36104E82: mov byte ptr [ecx + ebx + 0xe2c], al */
  15841     _flag_a = (uint32_t)(MEM32(ebp + (-0x24))); _flag_b = (uint32_t)(1);
  15842     MEM32(ebp + (-0x24)) = MEM32(ebp + (-0x24)) - 1; /* 0x36104E89: dec dword ptr [ebp - 0x24] */
  15843     _flag_k = FK_DEC;
  15844     ecx = MEM32(ebp + (-0x38)); /* 0x36104E8C: mov ecx, dword ptr [ebp - 0x38] */
  15845     goto L_36104E9F; /* 0x36104E8F: jmp 0x36104e9f */
  15846 L_36104E91:
  15847     edx = MEM32(ebx + 0x28); /* 0x36104E91: mov edx, dword ptr [ebx + 0x28] */
  15848     MEM8(edx + esi + 0x2C) = (uint8_t)(0); /* 0x36104E94: mov byte ptr [edx + esi + 0x2c], 0 */
  15849     MEM32(ecx) = 0xC2C80000u; /* 0x36104E99: mov dword ptr [ecx], 0xc2c80000 */
  15850 L_36104E9F:
  15851     _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(1);
  15852     MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) + 1; /* 0x36104E9F: inc dword ptr [ebp - 0x14] */
  15853     _flag_k = FK_INC;
  15854     edx = MEM32(ebp + (-0x10)); /* 0x36104EA2: mov edx, dword ptr [ebp - 0x10] */
  15855     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  15856     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15857     esi = esi + 0x30u; /* 0x36104EA5: add esi, 0x30 */
  15858     _flag_k = FK_ADD;
  15859     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  15860     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15861     ecx = ecx + 4; /* 0x36104EA8: add ecx, 4 */
  15862     _flag_k = FK_ADD;
  15863     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  15864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15865     edx = edx + 0xCu; /* 0x36104EAB: add edx, 0xc */
  15866     _flag_k = FK_ADD;
  15867     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
  15868     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15869     edi = edi + 0x24u; /* 0x36104EAE: add edi, 0x24 */
  15870     _flag_k = FK_ADD;
  15871     /* cmp esi, 0xC00u */ /* 0x36104EB1: cmp esi, 0xc00 */
  15872     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xC00u);
  15873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15874     _flag_k = FK_CMP;
  15875     MEM32(ebp + (-0x38)) = ecx; /* 0x36104EB7: mov dword ptr [ebp - 0x38], ecx */
  15876     MEM32(ebp + (-0x10)) = edx; /* 0x36104EBA: mov dword ptr [ebp - 0x10], edx */
  15877     MEM32(ebp + (-0x28)) = edi; /* 0x36104EBD: mov dword ptr [ebp - 0x28], edi */
  15878     MEM32(ebp + (-0x34)) = esi; /* 0x36104EC0: mov dword ptr [ebp - 0x34], esi */
  15879     RECOMP_BACKEDGE();
  15880     if (CMP_L(_flag_a, _flag_b)) goto L_3610485A; /* 0x36104EC3: jl 0x3610485a */
  15881 L_36104EC9:
  15882     goto L_3610591D; /* 0x36104EC9: jmp 0x3610591d */
  15883 L_3610591D:
  15884     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  15885     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  15886     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  15887     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  15888     edx = 0; /* 0x36105929: xor edx, edx */
  15889     _cf = 0;
  15890     _flag_k = FK_TEST;
  15891     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  15892     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  15893     _cf = 0;
  15894     _flag_k = FK_NARROW(FK_TEST, 24);
  15895     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  15896     PUSH32(esp, edx); /* 0x36105930: push edx */
  15897     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  15898     RECOMP_FLAGS_IN();
  15899     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  15900     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  15901     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  15902     esp = ebp; /* 0x3610593A: mov esp, ebp */
  15903     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  15904     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  15905     RECOMP_REGS_OUT();
  15906 }
  15907 
  15908 void sub_36104C45(void) {
  15909     int _fpu_cmp = 0;
  15910     uint32_t _cf = 0;
  15911     int _df = 1;
  15912     uint32_t _flag_k = FK_NONE;
  15913     uint32_t _flag_a = 0, _flag_b = 0;
  15914     uint32_t _itail_tgt = 0;
  15915     RECOMP_REGS_LOCALS
  15916     RECOMP_ENTER(0x36104C45u);
  15917 
  15918     goto L_36104C45;
  15919 L_3610485A:
  15920     fp_push(*(float*)&MEM32(ecx)); /* 0x3610485A: fld dword ptr [ecx] */
  15921     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x3610485C: fcomp dword ptr [ebx + 0xc] */
  15922     fp_pop();
  15923     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610485F: fnstsw ax */
  15924     /* test HI8(eax), 0x41u */ /* 0x36104861: test ah, 0x41 */
  15925     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  15926     _cf = 0;
  15927     _flag_k = FK_NARROW(FK_TEST, 24);
  15928     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104A99; /* 0x36104864: jne 0x36104a99 */
  15929 L_3610486A:
  15930     fp_push(*(float*)&MEM32(ecx)); /* 0x3610486A: fld dword ptr [ecx] */
  15931     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x3610486C: fsub dword ptr [ebx + 0xc] */
  15932     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x3610486F: fsubr dword ptr [ebx + 0xedc] */
  15933     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x36104875: fdiv dword ptr [ebx + 0xedc] */
  15934     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x3610487B: fmul dword ptr [0x36170ba4] */
  15935     RECOMP_ICALL(0x3615FD8Cu); /* 0x36104881: call 0x3615fd8c */ /* not lifted */
  15936     RECOMP_FLAGS_IN();
  15937     fp_push(*(float*)&MEM32(edi + (-0x8))); /* 0x36104886: fld dword ptr [edi - 8] */
  15938     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36104889: fstp dword ptr [ebp - 0xdc] */
  15939     fp_push(*(float*)&MEM32(edi + (-0x4))); /* 0x3610488F: fld dword ptr [edi - 4] */
  15940     MEM32(ebp + (-0x34)) = eax; /* 0x36104892: mov dword ptr [ebp - 0x34], eax */
  15941     eax = MEM32(ebp + (-0xDC)); /* 0x36104895: mov eax, dword ptr [ebp - 0xdc] */
  15942     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x3610489B: fstp dword ptr [ebp - 0xd8] */
  15943     fp_push(*(float*)&MEM32(edi)); /* 0x361048A1: fld dword ptr [edi] */
  15944     ecx = MEM32(ebp + (-0xD8)); /* 0x361048A3: mov ecx, dword ptr [ebp - 0xd8] */
  15945     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x361048A9: fstp dword ptr [ebp - 0xd4] */
  15946     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x361048AF: fld dword ptr [ebx + 0xee4] */
  15947     edx = MEM32(ebp + (-0xD4)); /* 0x361048B5: mov edx, dword ptr [ebp - 0xd4] */
  15948     fp_push(_st[0]); /* 0x361048BB: fld st(0) */
  15949     MEM32(ebp + (-0x20)) = eax; /* 0x361048BD: mov dword ptr [ebp - 0x20], eax */
  15950     _st[0] *= (double)*(float*)ADDR(ebp + (-0xDC)); /* 0x361048C0: fmul dword ptr [ebp - 0xdc] */
  15951     MEM32(ebp + (-0x1C)) = ecx; /* 0x361048C6: mov dword ptr [ebp - 0x1c], ecx */
  15952     MEM32(ebp + (-0x18)) = edx; /* 0x361048C9: mov dword ptr [ebp - 0x18], edx */
  15953     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361048CC: fstp dword ptr [ebp - 0x20] */
  15954     eax = MEM32(ebp + (-0x20)); /* 0x361048CF: mov eax, dword ptr [ebp - 0x20] */
  15955     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361048D2: fld dword ptr [ebp - 0x1c] */
  15956     MEM32(ebp + (-0xB4)) = eax; /* 0x361048D5: mov dword ptr [ebp - 0xb4], eax */
  15957     _st[0] *= _st[1]; /* 0x361048DB: fmul st(1) */
  15958     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361048DD: fstp dword ptr [ebp - 0x1c] */
  15959     ecx = MEM32(ebp + (-0x1C)); /* 0x361048E0: mov ecx, dword ptr [ebp - 0x1c] */
  15960     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361048E3: fld dword ptr [ebp - 0x18] */
  15961     MEM32(ebp + (-0xB0)) = ecx; /* 0x361048E6: mov dword ptr [ebp - 0xb0], ecx */
  15962     _st[0] *= _st[1]; /* 0x361048EC: fmul st(1) */
  15963     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361048EE: fstp dword ptr [ebp - 0x18] */
  15964     edx = MEM32(ebp + (-0x18)); /* 0x361048F1: mov edx, dword ptr [ebp - 0x18] */
  15965     MEM32(ebp + (-0xAC)) = edx; /* 0x361048F4: mov dword ptr [ebp - 0xac], edx */
  15966     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361048FA: fstp st(0) */
  15967     fp_push(*(float*)&MEM32(edi + 0x10)); /* 0x361048FC: fld dword ptr [edi + 0x10] */
  15968     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361048FF: fstp dword ptr [ebp - 0x80] */
  15969     fp_push(*(float*)&MEM32(edi + 0x14)); /* 0x36104902: fld dword ptr [edi + 0x14] */
  15970     eax = MEM32(ebp + (-0x80)); /* 0x36104905: mov eax, dword ptr [ebp - 0x80] */
  15971     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36104908: fstp dword ptr [ebp - 0x7c] */
  15972     fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x3610490B: fld dword ptr [edi + 0x18] */
  15973     ecx = MEM32(ebp + (-0x7C)); /* 0x3610490E: mov ecx, dword ptr [ebp - 0x7c] */
  15974     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36104911: fstp dword ptr [ebp - 0x78] */
  15975     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x36104914: fld dword ptr [ebx + 0xee4] */
  15976     edx = MEM32(ebp + (-0x78)); /* 0x3610491A: mov edx, dword ptr [ebp - 0x78] */
  15977     fp_push(_st[0]); /* 0x3610491D: fld st(0) */
  15978     MEM32(ebp + (-0xC4)) = eax; /* 0x3610491F: mov dword ptr [ebp - 0xc4], eax */
  15979     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36104925: fmul dword ptr [ebp - 0x80] */
  15980     eax = MEM32(ebp + (-0x14)); /* 0x36104928: mov eax, dword ptr [ebp - 0x14] */
  15981     MEM32(ebp + (-0xC0)) = ecx; /* 0x3610492B: mov dword ptr [ebp - 0xc0], ecx */
  15982     SET_LO8(ecx, MEM8(eax + ebx + 0xE2C)); /* 0x36104931: mov cl, byte ptr [eax + ebx + 0xe2c] */
  15983     /* test LO8(ecx), LO8(ecx) */ /* 0x36104938: test cl, cl */
  15984     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  15985     _cf = 0;
  15986     _flag_k = FK_NARROW(FK_TEST, 24);
  15987     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC4)) = _v; } /* 0x3610493A: fstp dword ptr [ebp - 0xc4] */
  15988     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36104940: fld dword ptr [ebp - 0xc0] */
  15989     MEM32(ebp + (-0xBC)) = edx; /* 0x36104946: mov dword ptr [ebp - 0xbc], edx */
  15990     _st[0] *= _st[1]; /* 0x3610494C: fmul st(1) */
  15991     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC0)) = _v; } /* 0x3610494E: fstp dword ptr [ebp - 0xc0] */
  15992     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36104954: fld dword ptr [ebp - 0xbc] */
  15993     _st[0] *= _st[1]; /* 0x3610495A: fmul st(1) */
  15994     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xBC)) = _v; } /* 0x3610495C: fstp dword ptr [ebp - 0xbc] */
  15995     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104962: fstp st(0) */
  15996     if (TEST_Z(_flag_a, _flag_b)) goto L_361049AB; /* 0x36104964: je 0x361049ab */
  15997 L_36104966:
  15998     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36104966: fld dword ptr [ebp - 0x20] */
  15999     _st[0] = -_st[0]; /* 0x36104969: fchs  */
  16000     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3610496B: fstp dword ptr [ebp - 0xa8] */
  16001     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36104971: fld dword ptr [ebp - 0x1c] */
  16002     ecx = MEM32(ebp + (-0xA8)); /* 0x36104974: mov ecx, dword ptr [ebp - 0xa8] */
  16003     _st[0] = -_st[0]; /* 0x3610497A: fchs  */
  16004     MEM32(ebp + (-0xB4)) = ecx; /* 0x3610497C: mov dword ptr [ebp - 0xb4], ecx */
  16005     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36104982: fstp dword ptr [ebp - 0xa4] */
  16006     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36104988: fld dword ptr [ebp - 0x18] */
  16007     edx = MEM32(ebp + (-0xA4)); /* 0x3610498B: mov edx, dword ptr [ebp - 0xa4] */
  16008     _st[0] = -_st[0]; /* 0x36104991: fchs  */
  16009     MEM32(ebp + (-0xB0)) = edx; /* 0x36104993: mov dword ptr [ebp - 0xb0], edx */
  16010     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36104999: fstp dword ptr [ebp - 0xa0] */
  16011     eax = MEM32(ebp + (-0xA0)); /* 0x3610499F: mov eax, dword ptr [ebp - 0xa0] */
  16012     MEM32(ebp + (-0xAC)) = eax; /* 0x361049A5: mov dword ptr [ebp - 0xac], eax */
  16013 L_361049AB:
  16014     ecx = ebp + (-0x220); /* 0x361049AB: lea ecx, [ebp - 0x220] */
  16015     PUSH32(esp, ecx); /* 0x361049B1: push ecx */
  16016     ecx = MEM32(ebx + 0x20); /* 0x361049B2: mov ecx, dword ptr [ebx + 0x20] */
  16017     RECOMP_ICALL(0x36133FC0u); /* 0x361049B5: call 0x36133fc0 */ /* not lifted */
  16018     RECOMP_FLAGS_IN();
  16019     edx = MEM32(eax); /* 0x361049BA: mov edx, dword ptr [eax] */
  16020     ecx = MEM32(eax + 0x4); /* 0x361049BC: mov ecx, dword ptr [eax + 4] */
  16021     MEM32(ebp + (-0x8C)) = edx; /* 0x361049BF: mov dword ptr [ebp - 0x8c], edx */
  16022     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361049C5: fld dword ptr [ebp - 0x8c] */
  16023     edx = MEM32(eax + 0x8); /* 0x361049CB: mov edx, dword ptr [eax + 8] */
  16024     eax = MEM32(ebp + (-0x10)); /* 0x361049CE: mov eax, dword ptr [ebp - 0x10] */
  16025     _st[0] += (double)*(float*)ADDR(eax); /* 0x361049D1: fadd dword ptr [eax] */
  16026     MEM32(ebp + (-0x88)) = ecx; /* 0x361049D3: mov dword ptr [ebp - 0x88], ecx */
  16027     ecx = MEM32(ebx + 0x28); /* 0x361049D9: mov ecx, dword ptr [ebx + 0x28] */
  16028     MEM32(ebp + (-0x84)) = edx; /* 0x361049DC: mov dword ptr [ebp - 0x84], edx */
  16029     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x361049E2: fstp dword ptr [ebp - 0x8c] */
  16030     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361049E8: fld dword ptr [ebp - 0x88] */
  16031     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x361049EE: fadd dword ptr [eax + 4] */
  16032     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x361049F1: fstp dword ptr [ebp - 0x88] */
  16033     edx = MEM32(ebp + (-0x88)); /* 0x361049F7: mov edx, dword ptr [ebp - 0x88] */
  16034     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x361049FD: fld dword ptr [ebp - 0x84] */
  16035     _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x36104A03: fadd dword ptr [eax + 8] */
  16036     eax = esi; /* 0x36104A06: mov eax, esi */
  16037     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  16038     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16039     eax = eax + ecx; /* 0x36104A08: add eax, ecx */
  16040     _flag_k = FK_ADD;
  16041     ecx = MEM32(ebp + (-0x8C)); /* 0x36104A0A: mov ecx, dword ptr [ebp - 0x8c] */
  16042     MEM32(eax) = ecx; /* 0x36104A10: mov dword ptr [eax], ecx */
  16043     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36104A12: fstp dword ptr [ebp - 0x84] */
  16044     ecx = MEM32(ebp + (-0x84)); /* 0x36104A18: mov ecx, dword ptr [ebp - 0x84] */
  16045     MEM32(eax + 0x4) = edx; /* 0x36104A1E: mov dword ptr [eax + 4], edx */
  16046     MEM32(eax + 0x8) = ecx; /* 0x36104A21: mov dword ptr [eax + 8], ecx */
  16047     edx = MEM32(ebx + 0x28); /* 0x36104A24: mov edx, dword ptr [ebx + 0x28] */
  16048     ecx = MEM32(ebp + (-0xB4)); /* 0x36104A27: mov ecx, dword ptr [ebp - 0xb4] */
  16049     eax = esi + edx + 0xC; /* 0x36104A2D: lea eax, [esi + edx + 0xc] */
  16050     edx = MEM32(ebp + (-0xB0)); /* 0x36104A31: mov edx, dword ptr [ebp - 0xb0] */
  16051     MEM32(eax) = ecx; /* 0x36104A37: mov dword ptr [eax], ecx */
  16052     ecx = MEM32(ebp + (-0xAC)); /* 0x36104A39: mov ecx, dword ptr [ebp - 0xac] */
  16053     MEM32(eax + 0x4) = edx; /* 0x36104A3F: mov dword ptr [eax + 4], edx */
  16054     MEM32(eax + 0x8) = ecx; /* 0x36104A42: mov dword ptr [eax + 8], ecx */
  16055     edx = MEM32(ebx + 0x28); /* 0x36104A45: mov edx, dword ptr [ebx + 0x28] */
  16056     ecx = MEM32(ebp + (-0xC4)); /* 0x36104A48: mov ecx, dword ptr [ebp - 0xc4] */
  16057     eax = esi + edx + 0x18; /* 0x36104A4E: lea eax, [esi + edx + 0x18] */
  16058     edx = MEM32(ebp + (-0xC0)); /* 0x36104A52: mov edx, dword ptr [ebp - 0xc0] */
  16059     MEM32(eax) = ecx; /* 0x36104A58: mov dword ptr [eax], ecx */
  16060     ecx = MEM32(ebp + (-0xBC)); /* 0x36104A5A: mov ecx, dword ptr [ebp - 0xbc] */
  16061     MEM32(eax + 0x4) = edx; /* 0x36104A60: mov dword ptr [eax + 4], edx */
  16062     edx = MEM32(ebp + (-0xB8)); /* 0x36104A63: mov edx, dword ptr [ebp - 0xb8] */
  16063     MEM32(eax + 0x8) = ecx; /* 0x36104A69: mov dword ptr [eax + 8], ecx */
  16064     PUSH32(esp, edx); /* 0x36104A6C: push edx */
  16065     ecx = ebx + 0xEA8; /* 0x36104A6D: lea ecx, [ebx + 0xea8] */
  16066     RECOMP_ICALL(0x36137D80u); /* 0x36104A73: call 0x36137d80 */ /* not lifted */
  16067     RECOMP_FLAGS_IN();
  16068     ecx = MEM32(ebx + 0x28); /* 0x36104A78: mov ecx, dword ptr [ebx + 0x28] */
  16069     MEM32(esi + ecx + 0x24) = eax; /* 0x36104A7B: mov dword ptr [esi + ecx + 0x24], eax */
  16070     edx = MEM32(ebx + 0x28); /* 0x36104A7F: mov edx, dword ptr [ebx + 0x28] */
  16071     eax = MEM32(ebp + (-0x34)); /* 0x36104A82: mov eax, dword ptr [ebp - 0x34] */
  16072     MEM32(esi + edx + 0x28) = eax; /* 0x36104A85: mov dword ptr [esi + edx + 0x28], eax */
  16073     ecx = MEM32(ebx + 0x28); /* 0x36104A89: mov ecx, dword ptr [ebx + 0x28] */
  16074     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36104A8C: mov byte ptr [esi + ecx + 0x2c], 1 */
  16075     ecx = MEM32(ebp + (-0x38)); /* 0x36104A91: mov ecx, dword ptr [ebp - 0x38] */
  16076     goto L_36104E9F; /* 0x36104A94: jmp 0x36104e9f */
  16077 L_36104A99:
  16078     eax = MEM32(ebp + (-0x24)); /* 0x36104A99: mov eax, dword ptr [ebp - 0x24] */
  16079     /* test eax, eax */ /* 0x36104A9C: test eax, eax */
  16080     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  16081     _cf = 0;
  16082     _flag_k = FK_TEST;
  16083     if (TEST_Z(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104A9E: je 0x36104e91 */
  16084 L_36104AA4:
  16085     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x36104AA4: mov al, byte ptr [ebx + 0xe6c] */
  16086     /* test LO8(eax), LO8(eax) */ /* 0x36104AAA: test al, al */
  16087     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16088     _cf = 0;
  16089     _flag_k = FK_NARROW(FK_TEST, 24);
  16090     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104AAC: jne 0x36104e91 */
  16091 L_36104AB2:
  16092     edx = ebp + (-0xC); /* 0x36104AB2: lea edx, [ebp - 0xc] */
  16093     PUSH32(esp, edx); /* 0x36104AB5: push edx */
  16094     MEM32(ebp + (-0xC)) = 0; /* 0x36104AB6: mov dword ptr [ebp - 0xc], 0 */
  16095     MEM32(ebp + (-0x8)) = 0; /* 0x36104ABD: mov dword ptr [ebp - 8], 0 */
  16096     MEM32(ebp + (-0x4)) = 0; /* 0x36104AC4: mov dword ptr [ebp - 4], 0 */
  16097     RECOMP_ICALL(0x360FCA70u); /* 0x36104ACB: call 0x360fca70 */ /* not lifted */
  16098     RECOMP_FLAGS_IN();
  16099     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104AD0: fld dword ptr [ebp - 8] */
  16100     _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x36104AD3: fmul dword ptr [0x36174f9c] */
  16101     eax = MEM32(ebp + (-0xC)); /* 0x36104AD9: mov eax, dword ptr [ebp - 0xc] */
  16102     edx = MEM32(ebp + (-0x4)); /* 0x36104ADC: mov edx, dword ptr [ebp - 4] */
  16103     MEM32(ebp + (-0x64)) = eax; /* 0x36104ADF: mov dword ptr [ebp - 0x64], eax */
  16104     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104AE2: fstp dword ptr [ebp - 8] */
  16105     ecx = MEM32(ebp + (-0x8)); /* 0x36104AE5: mov ecx, dword ptr [ebp - 8] */
  16106     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x36104AE8: fld dword ptr [ebx + 0xee8] */
  16107     MEM32(ebp + (-0x60)) = ecx; /* 0x36104AEE: mov dword ptr [ebp - 0x60], ecx */
  16108     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104AF1: fld dword ptr [ebp - 0xc] */
  16109     MEM32(ebp + (-0x5C)) = edx; /* 0x36104AF4: mov dword ptr [ebp - 0x5c], edx */
  16110     _st[0] *= _st[1]; /* 0x36104AF7: fmul st(1) */
  16111     esi = MEM32(ebp + (-0x10)); /* 0x36104AF9: mov esi, dword ptr [ebp - 0x10] */
  16112     eax = esi; /* 0x36104AFC: mov eax, esi */
  16113     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36104AFE: fstp dword ptr [ebp - 0x64] */
  16114     ecx = MEM32(ebp + (-0x64)); /* 0x36104B01: mov ecx, dword ptr [ebp - 0x64] */
  16115     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36104B04: fld dword ptr [ebp - 0x60] */
  16116     MEM32(eax) = ecx; /* 0x36104B07: mov dword ptr [eax], ecx */
  16117     _st[0] *= _st[1]; /* 0x36104B09: fmul st(1) */
  16118     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36104B0B: fstp dword ptr [ebp - 0x60] */
  16119     edx = MEM32(ebp + (-0x60)); /* 0x36104B0E: mov edx, dword ptr [ebp - 0x60] */
  16120     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36104B11: fld dword ptr [ebp - 0x5c] */
  16121     MEM32(eax + 0x4) = edx; /* 0x36104B14: mov dword ptr [eax + 4], edx */
  16122     _st[0] *= _st[1]; /* 0x36104B17: fmul st(1) */
  16123     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36104B19: fstp dword ptr [ebp - 0x5c] */
  16124     ecx = MEM32(ebp + (-0x5C)); /* 0x36104B1C: mov ecx, dword ptr [ebp - 0x5c] */
  16125     MEM32(eax + 0x8) = ecx; /* 0x36104B1F: mov dword ptr [eax + 8], ecx */
  16126     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B22: fstp st(0) */
  16127     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104B24: fld dword ptr [ebp - 8] */
  16128     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B27: fld dword ptr [ebp - 4] */
  16129     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104B2A: fld dword ptr [ebp - 0xc] */
  16130     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B2D: fmul dword ptr [ebp - 0xc] */
  16131     fp_push(_st[1]); /* 0x36104B30: fld st(1) */
  16132     _st[0] *= _st[2]; /* 0x36104B32: fmul st(2) */
  16133     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B34: faddp st(1) */
  16134     fp_push(_st[2]); /* 0x36104B36: fld st(2) */
  16135     _st[0] *= _st[3]; /* 0x36104B38: fmul st(3) */
  16136     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B3A: faddp st(1) */
  16137     _st[0] = sqrt(_st[0]); /* 0x36104B3C: fsqrt  */
  16138     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x36104B3E: fstp st(2) */
  16139     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B40: fstp st(0) */
  16140     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104B42: fdivr dword ptr [0x36170380] */
  16141     fp_push(_st[0]); /* 0x36104B48: fld st(0) */
  16142     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B4A: fmul dword ptr [ebp - 0xc] */
  16143     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36104B4D: fstp dword ptr [ebp - 0xc] */
  16144     fp_push(_st[0]); /* 0x36104B50: fld st(0) */
  16145     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104B52: fmul dword ptr [ebp - 8] */
  16146     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104B55: fstp dword ptr [ebp - 8] */
  16147     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B58: fld dword ptr [ebp - 4] */
  16148     _st[0] *= _st[1]; /* 0x36104B5B: fmul st(1) */
  16149     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36104B5D: fstp dword ptr [ebp - 4] */
  16150     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B60: fstp st(0) */
  16151     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104B62: call dword ptr [0x3616f254] */
  16152     RECOMP_FLAGS_IN();
  16153     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  16154     eax = eax & 0x7FFFu; /* 0x36104B68: and eax, 0x7fff */
  16155     _cf = 0;
  16156     _flag_k = FK_TEST;
  16157     MEM32(ebp + (-0x30)) = eax; /* 0x36104B6D: mov dword ptr [ebp - 0x30], eax */
  16158     fp_push((double)(int32_t)MEM32(ebp + (-0x30))); /* 0x36104B70: fild dword ptr [ebp - 0x30] */
  16159     edx = ebp + (-0xD0); /* 0x36104B73: lea edx, [ebp - 0xd0] */
  16160     PUSH32(esp, edx); /* 0x36104B79: push edx */
  16161     PUSH32(esp, esi); /* 0x36104B7A: push esi */
  16162     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x36104B7B: fmul dword ptr [0x36175f30] */
  16163     MEM32(ebp + (-0xD0)) = 0; /* 0x36104B81: mov dword ptr [ebp - 0xd0], 0 */
  16164     MEM32(ebp + (-0xCC)) = 0; /* 0x36104B8B: mov dword ptr [ebp - 0xcc], 0 */
  16165     MEM32(ebp + (-0xC8)) = 0; /* 0x36104B95: mov dword ptr [ebp - 0xc8], 0 */
  16166     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36104B9F: fstp dword ptr [ebp - 0x2c] */
  16167     RECOMP_ICALL(0x360FCE60u); /* 0x36104BA2: call 0x360fce60 */ /* not lifted */
  16168     RECOMP_FLAGS_IN();
  16169     eax = MEM32(ebp + (-0xD0)); /* 0x36104BA7: mov eax, dword ptr [ebp - 0xd0] */
  16170     ecx = MEM32(ebp + (-0xCC)); /* 0x36104BAD: mov ecx, dword ptr [ebp - 0xcc] */
  16171     edx = MEM32(ebp + (-0xC8)); /* 0x36104BB3: mov edx, dword ptr [ebp - 0xc8] */
  16172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  16173     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16174     esp = esp + 0xCu; /* 0x36104BB9: add esp, 0xc */
  16175     _flag_k = FK_ADD;
  16176     MEM32(ebp + (-0xEC)) = eax; /* 0x36104BBC: mov dword ptr [ebp - 0xec], eax */
  16177     MEM32(ebp + (-0xE8)) = ecx; /* 0x36104BC2: mov dword ptr [ebp - 0xe8], ecx */
  16178     MEM32(ebp + (-0xE4)) = edx; /* 0x36104BC8: mov dword ptr [ebp - 0xe4], edx */
  16179     MEM32(ebp + (-0xE0)) = 0; /* 0x36104BCE: mov dword ptr [ebp - 0xe0], 0 */
  16180     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104BD8: fld dword ptr [ebp - 0x2c] */
  16181     MEM32(ebp + (-0x9C)) = eax; /* 0x36104BDB: mov dword ptr [ebp - 0x9c], eax */
  16182     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36104BE1: fcomp dword ptr [0x3617040c] */
  16183     fp_pop();
  16184     eax = MEM32(ebp + (-0xE0)); /* 0x36104BE7: mov eax, dword ptr [ebp - 0xe0] */
  16185     MEM32(ebp + (-0x90)) = eax; /* 0x36104BED: mov dword ptr [ebp - 0x90], eax */
  16186     MEM32(ebp + (-0x98)) = ecx; /* 0x36104BF3: mov dword ptr [ebp - 0x98], ecx */
  16187     MEM32(ebp + (-0x94)) = edx; /* 0x36104BF9: mov dword ptr [ebp - 0x94], edx */
  16188     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104BFF: fnstsw ax */
  16189     /* test HI8(eax), 1 */ /* 0x36104C01: test ah, 1 */
  16190     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16191     _cf = 0;
  16192     _flag_k = FK_NARROW(FK_TEST, 24);
  16193     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C04: jne 0x36104c21 */
  16194 L_36104C06:
  16195     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C06: fld dword ptr [ebp - 0x2c] */
  16196     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36104C09: fcomp qword ptr [0x361708b8] */
  16197     fp_pop();
  16198     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104C0F: fnstsw ax */
  16199     /* test HI8(eax), 1 */ /* 0x36104C11: test ah, 1 */
  16200     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16201     _cf = 0;
  16202     _flag_k = FK_NARROW(FK_TEST, 24);
  16203     if (TEST_Z(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C14: je 0x36104c21 */
  16204 L_36104C16:
  16205     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C16: fld dword ptr [ebp - 0x2c] */
  16206     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36104C19: fmul dword ptr [0x36170464] */
  16207     goto L_36104C45; /* 0x36104C1F: jmp 0x36104c45 */
  16208 L_36104C21:
  16209     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C21: fld dword ptr [ebp - 0x2c] */
  16210     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  16211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16212     esp = esp - 8; /* 0x36104C24: sub esp, 8 */
  16213     _flag_k = FK_CMP;
  16214     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x36104C27: fmul dword ptr [0x361708b4] */
  16215     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104C2D: fst dword ptr [ebp - 0x30] */
  16216     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36104C30: fstp qword ptr [esp] */
  16217     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x36104C33: call dword ptr [0x3616f198] */
  16218     RECOMP_FLAGS_IN();
  16219     _st[0] = (double)*(float*)ADDR(ebp + (-0x30)) - _st[0]; /* 0x36104C39: fsubr dword ptr [ebp - 0x30] */
  16220     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  16221     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16222     esp = esp + 8; /* 0x36104C3C: add esp, 8 */
  16223     _flag_k = FK_ADD;
  16224     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36104C3F: fmul dword ptr [0x361708b0] */
  16225 L_36104C45:
  16226     fp_push(_st[0]); /* 0x36104C45: fld st(0) */
  16227     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36104C47: fsin  */
  16228     fp_push(_st[0]); /* 0x36104C49: fld st(0) */
  16229     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104C4B: fmul dword ptr [ebp - 0xc] */
  16230     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36104C4E: fstp dword ptr [ebp - 0x48] */
  16231     eax = MEM32(ebp + (-0x48)); /* 0x36104C51: mov eax, dword ptr [ebp - 0x48] */
  16232     MEM32(ebp + (-0x74)) = eax; /* 0x36104C54: mov dword ptr [ebp - 0x74], eax */
  16233     fp_push(_st[0]); /* 0x36104C57: fld st(0) */
  16234     MEM32(ebp + (-0xFC)) = eax; /* 0x36104C59: mov dword ptr [ebp - 0xfc], eax */
  16235     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104C5F: fmul dword ptr [ebp - 8] */
  16236     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36104C62: fstp dword ptr [ebp - 0x44] */
  16237     ecx = MEM32(ebp + (-0x44)); /* 0x36104C65: mov ecx, dword ptr [ebp - 0x44] */
  16238     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104C68: fld dword ptr [ebp - 4] */
  16239     MEM32(ebp + (-0x70)) = ecx; /* 0x36104C6B: mov dword ptr [ebp - 0x70], ecx */
  16240     _st[0] *= _st[1]; /* 0x36104C6E: fmul st(1) */
  16241     MEM32(ebp + (-0xF8)) = ecx; /* 0x36104C70: mov dword ptr [ebp - 0xf8], ecx */
  16242     ecx = ebp + (-0x9C); /* 0x36104C76: lea ecx, [ebp - 0x9c] */
  16243     PUSH32(esp, ecx); /* 0x36104C7C: push ecx */
  16244     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36104C7D: fstp dword ptr [ebp - 0x40] */
  16245     edx = MEM32(ebp + (-0x40)); /* 0x36104C80: mov edx, dword ptr [ebp - 0x40] */
  16246     MEM32(ebp + (-0x6C)) = edx; /* 0x36104C83: mov dword ptr [ebp - 0x6c], edx */
  16247     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104C86: fstp st(0) */
  16248     ecx = ebp + (-0xFC); /* 0x36104C88: lea ecx, [ebp - 0xfc] */
  16249     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36104C8E: fcos  */
  16250     MEM32(ebp + (-0xF4)) = edx; /* 0x36104C90: mov dword ptr [ebp - 0xf4], edx */
  16251     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36104C96: fstp dword ptr [ebp - 0x3c] */
  16252     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36104C99: fld dword ptr [ebp - 0x48] */
  16253     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104C9C: fmul dword ptr [ebp - 0x48] */
  16254     esi = MEM32(ebp + (-0x3C)); /* 0x36104C9F: mov esi, dword ptr [ebp - 0x3c] */
  16255     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36104CA2: fld dword ptr [ebp - 0x3c] */
  16256     MEM32(ebp + (-0x68)) = esi; /* 0x36104CA5: mov dword ptr [ebp - 0x68], esi */
  16257     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36104CA8: fmul dword ptr [ebp - 0x3c] */
  16258     MEM32(ebp + (-0xF0)) = esi; /* 0x36104CAB: mov dword ptr [ebp - 0xf0], esi */
  16259     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB1: faddp st(1) */
  16260     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36104CB3: fld dword ptr [ebp - 0x40] */
  16261     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36104CB6: fmul dword ptr [ebp - 0x40] */
  16262     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB9: faddp st(1) */
  16263     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36104CBB: fld dword ptr [ebp - 0x44] */
  16264     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x36104CBE: fmul dword ptr [ebp - 0x44] */
  16265     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CC1: faddp st(1) */
  16266     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104CC3: fdivr dword ptr [0x36170380] */
  16267     fp_push(_st[0]); /* 0x36104CC9: fld st(0) */
  16268     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104CCB: fmul dword ptr [ebp - 0x48] */
  16269     _st[0] = -_st[0]; /* 0x36104CCE: fchs  */
  16270     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36104CD0: fstp dword ptr [ebp - 0x74] */
  16271     edi = MEM32(ebp + (-0x74)); /* 0x36104CD3: mov edi, dword ptr [ebp - 0x74] */
  16272     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36104CD6: fld dword ptr [ebp - 0x70] */
  16273     MEM32(ebp + (-0x198)) = edi; /* 0x36104CD9: mov dword ptr [ebp - 0x198], edi */
  16274     _st[0] *= _st[1]; /* 0x36104CDF: fmul st(1) */
  16275     _st[0] = -_st[0]; /* 0x36104CE1: fchs  */
  16276     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36104CE3: fstp dword ptr [ebp - 0x70] */
  16277     edi = MEM32(ebp + (-0x70)); /* 0x36104CE6: mov edi, dword ptr [ebp - 0x70] */
  16278     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36104CE9: fld dword ptr [ebp - 0x6c] */
  16279     MEM32(ebp + (-0x194)) = edi; /* 0x36104CEC: mov dword ptr [ebp - 0x194], edi */
  16280     _st[0] *= _st[1]; /* 0x36104CF2: fmul st(1) */
  16281     _st[0] = -_st[0]; /* 0x36104CF4: fchs  */
  16282     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36104CF6: fstp dword ptr [ebp - 0x6c] */
  16283     edi = MEM32(ebp + (-0x6C)); /* 0x36104CF9: mov edi, dword ptr [ebp - 0x6c] */
  16284     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36104CFC: fld dword ptr [ebp - 0x68] */
  16285     MEM32(ebp + (-0x190)) = edi; /* 0x36104CFF: mov dword ptr [ebp - 0x190], edi */
  16286     _st[0] *= _st[1]; /* 0x36104D05: fmul st(1) */
  16287     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36104D07: fstp dword ptr [ebp - 0x68] */
  16288     edi = MEM32(ebp + (-0x68)); /* 0x36104D0A: mov edi, dword ptr [ebp - 0x68] */
  16289     MEM32(ebp + (-0x18C)) = edi; /* 0x36104D0D: mov dword ptr [ebp - 0x18c], edi */
  16290     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104D13: fstp st(0) */
  16291     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D15: call dword ptr [0x3617019c] */
  16292     RECOMP_FLAGS_IN();
  16293     edx = MEM32(eax); /* 0x36104D1B: mov edx, dword ptr [eax] */
  16294     ecx = MEM32(eax + 0x4); /* 0x36104D1D: mov ecx, dword ptr [eax + 4] */
  16295     MEM32(ebp + (-0x108)) = ecx; /* 0x36104D20: mov dword ptr [ebp - 0x108], ecx */
  16296     MEM32(ebp + (-0x10C)) = edx; /* 0x36104D26: mov dword ptr [ebp - 0x10c], edx */
  16297     edx = MEM32(eax + 0x8); /* 0x36104D2C: mov edx, dword ptr [eax + 8] */
  16298     eax = MEM32(eax + 0xC); /* 0x36104D2F: mov eax, dword ptr [eax + 0xc] */
  16299     ecx = ebp + (-0x198); /* 0x36104D32: lea ecx, [ebp - 0x198] */
  16300     PUSH32(esp, ecx); /* 0x36104D38: push ecx */
  16301     ecx = ebp + (-0x10C); /* 0x36104D39: lea ecx, [ebp - 0x10c] */
  16302     MEM32(ebp + (-0x104)) = edx; /* 0x36104D3F: mov dword ptr [ebp - 0x104], edx */
  16303     MEM32(ebp + (-0x100)) = eax; /* 0x36104D45: mov dword ptr [ebp - 0x100], eax */
  16304     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D4B: call dword ptr [0x3617019c] */
  16305     RECOMP_FLAGS_IN();
  16306     edx = MEM32(eax); /* 0x36104D51: mov edx, dword ptr [eax] */
  16307     MEM32(ebp + (-0x9C)) = edx; /* 0x36104D53: mov dword ptr [ebp - 0x9c], edx */
  16308     ecx = MEM32(eax + 0x4); /* 0x36104D59: mov ecx, dword ptr [eax + 4] */
  16309     fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36104D5C: fld dword ptr [ebp - 0x9c] */
  16310     MEM32(ebp + (-0x98)) = ecx; /* 0x36104D62: mov dword ptr [ebp - 0x98], ecx */
  16311     edx = MEM32(eax + 0x8); /* 0x36104D68: mov edx, dword ptr [eax + 8] */
  16312     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36104D6B: fst dword ptr [ebp - 0x54] */
  16313     fp_push(*(float*)&MEM32(ebp + (-0x98))); /* 0x36104D6E: fld dword ptr [ebp - 0x98] */
  16314     MEM32(ebp + (-0x94)) = edx; /* 0x36104D74: mov dword ptr [ebp - 0x94], edx */
  16315     eax = MEM32(eax + 0xC); /* 0x36104D7A: mov eax, dword ptr [eax + 0xc] */
  16316     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36104D7D: fstp dword ptr [ebp - 0x50] */
  16317     fp_push(*(float*)&MEM32(ebp + (-0x94))); /* 0x36104D80: fld dword ptr [ebp - 0x94] */
  16318     ecx = MEM32(ebp + (-0x54)); /* 0x36104D86: mov ecx, dword ptr [ebp - 0x54] */
  16319     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36104D89: fstp dword ptr [ebp - 0x4c] */
  16320     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104D8C: fld dword ptr [ebp - 0x50] */
  16321     edx = MEM32(ebp + (-0x50)); /* 0x36104D8F: mov edx, dword ptr [ebp - 0x50] */
  16322     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36104D92: fmul dword ptr [ebp - 4] */
  16323     MEM32(ebp + (-0xD0)) = ecx; /* 0x36104D95: mov dword ptr [ebp - 0xd0], ecx */
  16324     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104D9B: fld dword ptr [ebp - 0x4c] */
  16325     ecx = MEM32(ebp + (-0xC)); /* 0x36104D9E: mov ecx, dword ptr [ebp - 0xc] */
  16326     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104DA1: fmul dword ptr [ebp - 8] */
  16327     MEM32(ebp + (-0x12C)) = ecx; /* 0x36104DA4: mov dword ptr [ebp - 0x12c], ecx */
  16328     MEM32(ebp + (-0x90)) = eax; /* 0x36104DAA: mov dword ptr [ebp - 0x90], eax */
  16329     eax = MEM32(ebp + (-0x4C)); /* 0x36104DB0: mov eax, dword ptr [ebp - 0x4c] */
  16330     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DB3: fsubp st(1) */
  16331     MEM32(ebp + (-0xC8)) = eax; /* 0x36104DB5: mov dword ptr [ebp - 0xc8], eax */
  16332     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104DBB: fld dword ptr [ebp - 0x4c] */
  16333     eax = MEM32(ebp + (-0x8)); /* 0x36104DBE: mov eax, dword ptr [ebp - 8] */
  16334     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104DC1: fmul dword ptr [ebp - 0xc] */
  16335     MEM32(ebp + (-0x124)) = edx; /* 0x36104DC4: mov dword ptr [ebp - 0x124], edx */
  16336     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104DCA: fld dword ptr [ebp - 4] */
  16337     MEM32(ebp + (-0x120)) = eax; /* 0x36104DCD: mov dword ptr [ebp - 0x120], eax */
  16338     _st[0] *= _st[3]; /* 0x36104DD3: fmul st(3) */
  16339     eax = MEM32(ebp + (-0x4)); /* 0x36104DD5: mov eax, dword ptr [ebp - 4] */
  16340     MEM32(ebp + (-0xCC)) = edx; /* 0x36104DD8: mov dword ptr [ebp - 0xcc], edx */
  16341     edx = MEM32(ebp + (-0x4C)); /* 0x36104DDE: mov edx, dword ptr [ebp - 0x4c] */
  16342     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DE1: fsubp st(1) */
  16343     MEM32(ebp + (-0x118)) = edx; /* 0x36104DE3: mov dword ptr [ebp - 0x118], edx */
  16344     MEM32(ebp + (-0x114)) = eax; /* 0x36104DE9: mov dword ptr [ebp - 0x114], eax */
  16345     esi = ebp + (-0x130); /* 0x36104DEF: lea esi, [ebp - 0x130] */
  16346     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104DF5: fstp dword ptr [ebp - 0x30] */
  16347     edi = ebp + (-0x188); /* 0x36104DF8: lea edi, [ebp - 0x188] */
  16348     ecx = MEM32(ebp + (-0x30)); /* 0x36104DFE: mov ecx, dword ptr [ebp - 0x30] */
  16349     fp_push(_st[1]); /* 0x36104E01: fld st(1) */
  16350     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104E03: fmul dword ptr [ebp - 8] */
  16351     MEM32(ebp + (-0x11C)) = ecx; /* 0x36104E06: mov dword ptr [ebp - 0x11c], ecx */
  16352     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104E0C: fld dword ptr [ebp - 0x50] */
  16353     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104E0F: fmul dword ptr [ebp - 0xc] */
  16354     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104E12: fsubp st(1) */
  16355     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36104E14: fstp dword ptr [ebp - 0x15c] */
  16356     ecx = MEM32(ebp + (-0x15C)); /* 0x36104E1A: mov ecx, dword ptr [ebp - 0x15c] */
  16357     fp_xch(1); /* 0x36104E20: fxch st(1) */
  16358     MEM32(ebp + (-0x110)) = ecx; /* 0x36104E22: mov dword ptr [ebp - 0x110], ecx */
  16359     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x130)) = _v; } /* 0x36104E28: fstp dword ptr [ebp - 0x130] */
  16360     ecx = 9; /* 0x36104E2E: mov ecx, 9 */
  16361     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x128)) = _v; } /* 0x36104E33: fstp dword ptr [ebp - 0x128] */
  16362     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E39: 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; }
  16363     ecx = ebp + (-0x188); /* 0x36104E3B: lea ecx, [ebp - 0x188] */
  16364     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36104E41: call dword ptr [0x361701f8] */
  16365     RECOMP_FLAGS_IN();
  16366     edx = MEM32(ebp + (-0x28)); /* 0x36104E47: mov edx, dword ptr [ebp - 0x28] */
  16367     eax = MEM32(ebp + (-0x38)); /* 0x36104E4A: mov eax, dword ptr [ebp - 0x38] */
  16368     edi = edx + (-0x8); /* 0x36104E4D: lea edi, [edx - 8] */
  16369     ecx = 9; /* 0x36104E50: mov ecx, 9 */
  16370     esi = ebp + (-0x188); /* 0x36104E55: lea esi, [ebp - 0x188] */
  16371     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E5B: 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; }
  16372     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x36104E5D: fld dword ptr [ebx + 0xedc] */
  16373     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x36104E63: fadd dword ptr [ebx + 0xc] */
  16374     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36104E66: fstp dword ptr [eax] */
  16375     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104E68: call dword ptr [0x3616f254] */
  16376     RECOMP_FLAGS_IN();
  16377     ecx = MEM32(ebp + (-0x14)); /* 0x36104E6E: mov ecx, dword ptr [ebp - 0x14] */
  16378     edi = MEM32(ebp + (-0x28)); /* 0x36104E71: mov edi, dword ptr [ebp - 0x28] */
  16379     esi = MEM32(ebp + (-0x34)); /* 0x36104E74: mov esi, dword ptr [ebp - 0x34] */
  16380     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16381     eax = eax & 1; /* 0x36104E77: and eax, 1 */
  16382     _cf = 0;
  16383     _flag_k = FK_TEST;
  16384     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16385     SET_LO8(eax, LO8(eax) - 1); /* 0x36104E7A: dec al */
  16386     _flag_k = FK_NARROW(FK_DEC, 24);
  16387     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16388     _cf = (LO8(eax)) != 0;
  16389     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36104E7C: neg al */
  16390     _flag_k = FK_NARROW(FK_CMP, 24);
  16391     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36104E7E: sbb al, al */
  16392       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  16393       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  16394       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  16395     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16396     SET_LO8(eax, LO8(eax) + 1); /* 0x36104E80: inc al */
  16397     _flag_k = FK_NARROW(FK_INC, 24);
  16398     MEM8(ecx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x36104E82: mov byte ptr [ecx + ebx + 0xe2c], al */
  16399     _flag_a = (uint32_t)(MEM32(ebp + (-0x24))); _flag_b = (uint32_t)(1);
  16400     MEM32(ebp + (-0x24)) = MEM32(ebp + (-0x24)) - 1; /* 0x36104E89: dec dword ptr [ebp - 0x24] */
  16401     _flag_k = FK_DEC;
  16402     ecx = MEM32(ebp + (-0x38)); /* 0x36104E8C: mov ecx, dword ptr [ebp - 0x38] */
  16403     goto L_36104E9F; /* 0x36104E8F: jmp 0x36104e9f */
  16404 L_36104E91:
  16405     edx = MEM32(ebx + 0x28); /* 0x36104E91: mov edx, dword ptr [ebx + 0x28] */
  16406     MEM8(edx + esi + 0x2C) = (uint8_t)(0); /* 0x36104E94: mov byte ptr [edx + esi + 0x2c], 0 */
  16407     MEM32(ecx) = 0xC2C80000u; /* 0x36104E99: mov dword ptr [ecx], 0xc2c80000 */
  16408 L_36104E9F:
  16409     _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(1);
  16410     MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) + 1; /* 0x36104E9F: inc dword ptr [ebp - 0x14] */
  16411     _flag_k = FK_INC;
  16412     edx = MEM32(ebp + (-0x10)); /* 0x36104EA2: mov edx, dword ptr [ebp - 0x10] */
  16413     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  16414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16415     esi = esi + 0x30u; /* 0x36104EA5: add esi, 0x30 */
  16416     _flag_k = FK_ADD;
  16417     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  16418     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16419     ecx = ecx + 4; /* 0x36104EA8: add ecx, 4 */
  16420     _flag_k = FK_ADD;
  16421     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  16422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16423     edx = edx + 0xCu; /* 0x36104EAB: add edx, 0xc */
  16424     _flag_k = FK_ADD;
  16425     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
  16426     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16427     edi = edi + 0x24u; /* 0x36104EAE: add edi, 0x24 */
  16428     _flag_k = FK_ADD;
  16429     /* cmp esi, 0xC00u */ /* 0x36104EB1: cmp esi, 0xc00 */
  16430     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xC00u);
  16431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16432     _flag_k = FK_CMP;
  16433     MEM32(ebp + (-0x38)) = ecx; /* 0x36104EB7: mov dword ptr [ebp - 0x38], ecx */
  16434     MEM32(ebp + (-0x10)) = edx; /* 0x36104EBA: mov dword ptr [ebp - 0x10], edx */
  16435     MEM32(ebp + (-0x28)) = edi; /* 0x36104EBD: mov dword ptr [ebp - 0x28], edi */
  16436     MEM32(ebp + (-0x34)) = esi; /* 0x36104EC0: mov dword ptr [ebp - 0x34], esi */
  16437     RECOMP_BACKEDGE();
  16438     if (CMP_L(_flag_a, _flag_b)) goto L_3610485A; /* 0x36104EC3: jl 0x3610485a */
  16439 L_36104EC9:
  16440     goto L_3610591D; /* 0x36104EC9: jmp 0x3610591d */
  16441 L_3610591D:
  16442     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  16443     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  16444     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  16445     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  16446     edx = 0; /* 0x36105929: xor edx, edx */
  16447     _cf = 0;
  16448     _flag_k = FK_TEST;
  16449     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  16450     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16451     _cf = 0;
  16452     _flag_k = FK_NARROW(FK_TEST, 24);
  16453     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  16454     PUSH32(esp, edx); /* 0x36105930: push edx */
  16455     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  16456     RECOMP_FLAGS_IN();
  16457     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  16458     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  16459     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  16460     esp = ebp; /* 0x3610593A: mov esp, ebp */
  16461     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  16462     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  16463     RECOMP_REGS_OUT();
  16464 }
  16465 
  16466 void sub_36104E91(void) {
  16467     int _fpu_cmp = 0;
  16468     uint32_t _cf = 0;
  16469     int _df = 1;
  16470     uint32_t _flag_k = FK_NONE;
  16471     uint32_t _flag_a = 0, _flag_b = 0;
  16472     uint32_t _itail_tgt = 0;
  16473     RECOMP_REGS_LOCALS
  16474     RECOMP_ENTER(0x36104E91u);
  16475 
  16476     goto L_36104E91;
  16477 L_3610485A:
  16478     fp_push(*(float*)&MEM32(ecx)); /* 0x3610485A: fld dword ptr [ecx] */
  16479     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x3610485C: fcomp dword ptr [ebx + 0xc] */
  16480     fp_pop();
  16481     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610485F: fnstsw ax */
  16482     /* test HI8(eax), 0x41u */ /* 0x36104861: test ah, 0x41 */
  16483     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  16484     _cf = 0;
  16485     _flag_k = FK_NARROW(FK_TEST, 24);
  16486     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104A99; /* 0x36104864: jne 0x36104a99 */
  16487 L_3610486A:
  16488     fp_push(*(float*)&MEM32(ecx)); /* 0x3610486A: fld dword ptr [ecx] */
  16489     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x3610486C: fsub dword ptr [ebx + 0xc] */
  16490     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x3610486F: fsubr dword ptr [ebx + 0xedc] */
  16491     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x36104875: fdiv dword ptr [ebx + 0xedc] */
  16492     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x3610487B: fmul dword ptr [0x36170ba4] */
  16493     RECOMP_ICALL(0x3615FD8Cu); /* 0x36104881: call 0x3615fd8c */ /* not lifted */
  16494     RECOMP_FLAGS_IN();
  16495     fp_push(*(float*)&MEM32(edi + (-0x8))); /* 0x36104886: fld dword ptr [edi - 8] */
  16496     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36104889: fstp dword ptr [ebp - 0xdc] */
  16497     fp_push(*(float*)&MEM32(edi + (-0x4))); /* 0x3610488F: fld dword ptr [edi - 4] */
  16498     MEM32(ebp + (-0x34)) = eax; /* 0x36104892: mov dword ptr [ebp - 0x34], eax */
  16499     eax = MEM32(ebp + (-0xDC)); /* 0x36104895: mov eax, dword ptr [ebp - 0xdc] */
  16500     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x3610489B: fstp dword ptr [ebp - 0xd8] */
  16501     fp_push(*(float*)&MEM32(edi)); /* 0x361048A1: fld dword ptr [edi] */
  16502     ecx = MEM32(ebp + (-0xD8)); /* 0x361048A3: mov ecx, dword ptr [ebp - 0xd8] */
  16503     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x361048A9: fstp dword ptr [ebp - 0xd4] */
  16504     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x361048AF: fld dword ptr [ebx + 0xee4] */
  16505     edx = MEM32(ebp + (-0xD4)); /* 0x361048B5: mov edx, dword ptr [ebp - 0xd4] */
  16506     fp_push(_st[0]); /* 0x361048BB: fld st(0) */
  16507     MEM32(ebp + (-0x20)) = eax; /* 0x361048BD: mov dword ptr [ebp - 0x20], eax */
  16508     _st[0] *= (double)*(float*)ADDR(ebp + (-0xDC)); /* 0x361048C0: fmul dword ptr [ebp - 0xdc] */
  16509     MEM32(ebp + (-0x1C)) = ecx; /* 0x361048C6: mov dword ptr [ebp - 0x1c], ecx */
  16510     MEM32(ebp + (-0x18)) = edx; /* 0x361048C9: mov dword ptr [ebp - 0x18], edx */
  16511     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361048CC: fstp dword ptr [ebp - 0x20] */
  16512     eax = MEM32(ebp + (-0x20)); /* 0x361048CF: mov eax, dword ptr [ebp - 0x20] */
  16513     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361048D2: fld dword ptr [ebp - 0x1c] */
  16514     MEM32(ebp + (-0xB4)) = eax; /* 0x361048D5: mov dword ptr [ebp - 0xb4], eax */
  16515     _st[0] *= _st[1]; /* 0x361048DB: fmul st(1) */
  16516     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361048DD: fstp dword ptr [ebp - 0x1c] */
  16517     ecx = MEM32(ebp + (-0x1C)); /* 0x361048E0: mov ecx, dword ptr [ebp - 0x1c] */
  16518     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361048E3: fld dword ptr [ebp - 0x18] */
  16519     MEM32(ebp + (-0xB0)) = ecx; /* 0x361048E6: mov dword ptr [ebp - 0xb0], ecx */
  16520     _st[0] *= _st[1]; /* 0x361048EC: fmul st(1) */
  16521     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361048EE: fstp dword ptr [ebp - 0x18] */
  16522     edx = MEM32(ebp + (-0x18)); /* 0x361048F1: mov edx, dword ptr [ebp - 0x18] */
  16523     MEM32(ebp + (-0xAC)) = edx; /* 0x361048F4: mov dword ptr [ebp - 0xac], edx */
  16524     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361048FA: fstp st(0) */
  16525     fp_push(*(float*)&MEM32(edi + 0x10)); /* 0x361048FC: fld dword ptr [edi + 0x10] */
  16526     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361048FF: fstp dword ptr [ebp - 0x80] */
  16527     fp_push(*(float*)&MEM32(edi + 0x14)); /* 0x36104902: fld dword ptr [edi + 0x14] */
  16528     eax = MEM32(ebp + (-0x80)); /* 0x36104905: mov eax, dword ptr [ebp - 0x80] */
  16529     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36104908: fstp dword ptr [ebp - 0x7c] */
  16530     fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x3610490B: fld dword ptr [edi + 0x18] */
  16531     ecx = MEM32(ebp + (-0x7C)); /* 0x3610490E: mov ecx, dword ptr [ebp - 0x7c] */
  16532     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36104911: fstp dword ptr [ebp - 0x78] */
  16533     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x36104914: fld dword ptr [ebx + 0xee4] */
  16534     edx = MEM32(ebp + (-0x78)); /* 0x3610491A: mov edx, dword ptr [ebp - 0x78] */
  16535     fp_push(_st[0]); /* 0x3610491D: fld st(0) */
  16536     MEM32(ebp + (-0xC4)) = eax; /* 0x3610491F: mov dword ptr [ebp - 0xc4], eax */
  16537     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36104925: fmul dword ptr [ebp - 0x80] */
  16538     eax = MEM32(ebp + (-0x14)); /* 0x36104928: mov eax, dword ptr [ebp - 0x14] */
  16539     MEM32(ebp + (-0xC0)) = ecx; /* 0x3610492B: mov dword ptr [ebp - 0xc0], ecx */
  16540     SET_LO8(ecx, MEM8(eax + ebx + 0xE2C)); /* 0x36104931: mov cl, byte ptr [eax + ebx + 0xe2c] */
  16541     /* test LO8(ecx), LO8(ecx) */ /* 0x36104938: test cl, cl */
  16542     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  16543     _cf = 0;
  16544     _flag_k = FK_NARROW(FK_TEST, 24);
  16545     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC4)) = _v; } /* 0x3610493A: fstp dword ptr [ebp - 0xc4] */
  16546     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36104940: fld dword ptr [ebp - 0xc0] */
  16547     MEM32(ebp + (-0xBC)) = edx; /* 0x36104946: mov dword ptr [ebp - 0xbc], edx */
  16548     _st[0] *= _st[1]; /* 0x3610494C: fmul st(1) */
  16549     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC0)) = _v; } /* 0x3610494E: fstp dword ptr [ebp - 0xc0] */
  16550     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36104954: fld dword ptr [ebp - 0xbc] */
  16551     _st[0] *= _st[1]; /* 0x3610495A: fmul st(1) */
  16552     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xBC)) = _v; } /* 0x3610495C: fstp dword ptr [ebp - 0xbc] */
  16553     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104962: fstp st(0) */
  16554     if (TEST_Z(_flag_a, _flag_b)) goto L_361049AB; /* 0x36104964: je 0x361049ab */
  16555 L_36104966:
  16556     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36104966: fld dword ptr [ebp - 0x20] */
  16557     _st[0] = -_st[0]; /* 0x36104969: fchs  */
  16558     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3610496B: fstp dword ptr [ebp - 0xa8] */
  16559     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36104971: fld dword ptr [ebp - 0x1c] */
  16560     ecx = MEM32(ebp + (-0xA8)); /* 0x36104974: mov ecx, dword ptr [ebp - 0xa8] */
  16561     _st[0] = -_st[0]; /* 0x3610497A: fchs  */
  16562     MEM32(ebp + (-0xB4)) = ecx; /* 0x3610497C: mov dword ptr [ebp - 0xb4], ecx */
  16563     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36104982: fstp dword ptr [ebp - 0xa4] */
  16564     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36104988: fld dword ptr [ebp - 0x18] */
  16565     edx = MEM32(ebp + (-0xA4)); /* 0x3610498B: mov edx, dword ptr [ebp - 0xa4] */
  16566     _st[0] = -_st[0]; /* 0x36104991: fchs  */
  16567     MEM32(ebp + (-0xB0)) = edx; /* 0x36104993: mov dword ptr [ebp - 0xb0], edx */
  16568     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36104999: fstp dword ptr [ebp - 0xa0] */
  16569     eax = MEM32(ebp + (-0xA0)); /* 0x3610499F: mov eax, dword ptr [ebp - 0xa0] */
  16570     MEM32(ebp + (-0xAC)) = eax; /* 0x361049A5: mov dword ptr [ebp - 0xac], eax */
  16571 L_361049AB:
  16572     ecx = ebp + (-0x220); /* 0x361049AB: lea ecx, [ebp - 0x220] */
  16573     PUSH32(esp, ecx); /* 0x361049B1: push ecx */
  16574     ecx = MEM32(ebx + 0x20); /* 0x361049B2: mov ecx, dword ptr [ebx + 0x20] */
  16575     RECOMP_ICALL(0x36133FC0u); /* 0x361049B5: call 0x36133fc0 */ /* not lifted */
  16576     RECOMP_FLAGS_IN();
  16577     edx = MEM32(eax); /* 0x361049BA: mov edx, dword ptr [eax] */
  16578     ecx = MEM32(eax + 0x4); /* 0x361049BC: mov ecx, dword ptr [eax + 4] */
  16579     MEM32(ebp + (-0x8C)) = edx; /* 0x361049BF: mov dword ptr [ebp - 0x8c], edx */
  16580     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361049C5: fld dword ptr [ebp - 0x8c] */
  16581     edx = MEM32(eax + 0x8); /* 0x361049CB: mov edx, dword ptr [eax + 8] */
  16582     eax = MEM32(ebp + (-0x10)); /* 0x361049CE: mov eax, dword ptr [ebp - 0x10] */
  16583     _st[0] += (double)*(float*)ADDR(eax); /* 0x361049D1: fadd dword ptr [eax] */
  16584     MEM32(ebp + (-0x88)) = ecx; /* 0x361049D3: mov dword ptr [ebp - 0x88], ecx */
  16585     ecx = MEM32(ebx + 0x28); /* 0x361049D9: mov ecx, dword ptr [ebx + 0x28] */
  16586     MEM32(ebp + (-0x84)) = edx; /* 0x361049DC: mov dword ptr [ebp - 0x84], edx */
  16587     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x361049E2: fstp dword ptr [ebp - 0x8c] */
  16588     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361049E8: fld dword ptr [ebp - 0x88] */
  16589     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x361049EE: fadd dword ptr [eax + 4] */
  16590     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x361049F1: fstp dword ptr [ebp - 0x88] */
  16591     edx = MEM32(ebp + (-0x88)); /* 0x361049F7: mov edx, dword ptr [ebp - 0x88] */
  16592     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x361049FD: fld dword ptr [ebp - 0x84] */
  16593     _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x36104A03: fadd dword ptr [eax + 8] */
  16594     eax = esi; /* 0x36104A06: mov eax, esi */
  16595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  16596     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16597     eax = eax + ecx; /* 0x36104A08: add eax, ecx */
  16598     _flag_k = FK_ADD;
  16599     ecx = MEM32(ebp + (-0x8C)); /* 0x36104A0A: mov ecx, dword ptr [ebp - 0x8c] */
  16600     MEM32(eax) = ecx; /* 0x36104A10: mov dword ptr [eax], ecx */
  16601     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36104A12: fstp dword ptr [ebp - 0x84] */
  16602     ecx = MEM32(ebp + (-0x84)); /* 0x36104A18: mov ecx, dword ptr [ebp - 0x84] */
  16603     MEM32(eax + 0x4) = edx; /* 0x36104A1E: mov dword ptr [eax + 4], edx */
  16604     MEM32(eax + 0x8) = ecx; /* 0x36104A21: mov dword ptr [eax + 8], ecx */
  16605     edx = MEM32(ebx + 0x28); /* 0x36104A24: mov edx, dword ptr [ebx + 0x28] */
  16606     ecx = MEM32(ebp + (-0xB4)); /* 0x36104A27: mov ecx, dword ptr [ebp - 0xb4] */
  16607     eax = esi + edx + 0xC; /* 0x36104A2D: lea eax, [esi + edx + 0xc] */
  16608     edx = MEM32(ebp + (-0xB0)); /* 0x36104A31: mov edx, dword ptr [ebp - 0xb0] */
  16609     MEM32(eax) = ecx; /* 0x36104A37: mov dword ptr [eax], ecx */
  16610     ecx = MEM32(ebp + (-0xAC)); /* 0x36104A39: mov ecx, dword ptr [ebp - 0xac] */
  16611     MEM32(eax + 0x4) = edx; /* 0x36104A3F: mov dword ptr [eax + 4], edx */
  16612     MEM32(eax + 0x8) = ecx; /* 0x36104A42: mov dword ptr [eax + 8], ecx */
  16613     edx = MEM32(ebx + 0x28); /* 0x36104A45: mov edx, dword ptr [ebx + 0x28] */
  16614     ecx = MEM32(ebp + (-0xC4)); /* 0x36104A48: mov ecx, dword ptr [ebp - 0xc4] */
  16615     eax = esi + edx + 0x18; /* 0x36104A4E: lea eax, [esi + edx + 0x18] */
  16616     edx = MEM32(ebp + (-0xC0)); /* 0x36104A52: mov edx, dword ptr [ebp - 0xc0] */
  16617     MEM32(eax) = ecx; /* 0x36104A58: mov dword ptr [eax], ecx */
  16618     ecx = MEM32(ebp + (-0xBC)); /* 0x36104A5A: mov ecx, dword ptr [ebp - 0xbc] */
  16619     MEM32(eax + 0x4) = edx; /* 0x36104A60: mov dword ptr [eax + 4], edx */
  16620     edx = MEM32(ebp + (-0xB8)); /* 0x36104A63: mov edx, dword ptr [ebp - 0xb8] */
  16621     MEM32(eax + 0x8) = ecx; /* 0x36104A69: mov dword ptr [eax + 8], ecx */
  16622     PUSH32(esp, edx); /* 0x36104A6C: push edx */
  16623     ecx = ebx + 0xEA8; /* 0x36104A6D: lea ecx, [ebx + 0xea8] */
  16624     RECOMP_ICALL(0x36137D80u); /* 0x36104A73: call 0x36137d80 */ /* not lifted */
  16625     RECOMP_FLAGS_IN();
  16626     ecx = MEM32(ebx + 0x28); /* 0x36104A78: mov ecx, dword ptr [ebx + 0x28] */
  16627     MEM32(esi + ecx + 0x24) = eax; /* 0x36104A7B: mov dword ptr [esi + ecx + 0x24], eax */
  16628     edx = MEM32(ebx + 0x28); /* 0x36104A7F: mov edx, dword ptr [ebx + 0x28] */
  16629     eax = MEM32(ebp + (-0x34)); /* 0x36104A82: mov eax, dword ptr [ebp - 0x34] */
  16630     MEM32(esi + edx + 0x28) = eax; /* 0x36104A85: mov dword ptr [esi + edx + 0x28], eax */
  16631     ecx = MEM32(ebx + 0x28); /* 0x36104A89: mov ecx, dword ptr [ebx + 0x28] */
  16632     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36104A8C: mov byte ptr [esi + ecx + 0x2c], 1 */
  16633     ecx = MEM32(ebp + (-0x38)); /* 0x36104A91: mov ecx, dword ptr [ebp - 0x38] */
  16634     goto L_36104E9F; /* 0x36104A94: jmp 0x36104e9f */
  16635 L_36104A99:
  16636     eax = MEM32(ebp + (-0x24)); /* 0x36104A99: mov eax, dword ptr [ebp - 0x24] */
  16637     /* test eax, eax */ /* 0x36104A9C: test eax, eax */
  16638     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  16639     _cf = 0;
  16640     _flag_k = FK_TEST;
  16641     if (TEST_Z(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104A9E: je 0x36104e91 */
  16642 L_36104AA4:
  16643     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x36104AA4: mov al, byte ptr [ebx + 0xe6c] */
  16644     /* test LO8(eax), LO8(eax) */ /* 0x36104AAA: test al, al */
  16645     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16646     _cf = 0;
  16647     _flag_k = FK_NARROW(FK_TEST, 24);
  16648     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104AAC: jne 0x36104e91 */
  16649 L_36104AB2:
  16650     edx = ebp + (-0xC); /* 0x36104AB2: lea edx, [ebp - 0xc] */
  16651     PUSH32(esp, edx); /* 0x36104AB5: push edx */
  16652     MEM32(ebp + (-0xC)) = 0; /* 0x36104AB6: mov dword ptr [ebp - 0xc], 0 */
  16653     MEM32(ebp + (-0x8)) = 0; /* 0x36104ABD: mov dword ptr [ebp - 8], 0 */
  16654     MEM32(ebp + (-0x4)) = 0; /* 0x36104AC4: mov dword ptr [ebp - 4], 0 */
  16655     RECOMP_ICALL(0x360FCA70u); /* 0x36104ACB: call 0x360fca70 */ /* not lifted */
  16656     RECOMP_FLAGS_IN();
  16657     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104AD0: fld dword ptr [ebp - 8] */
  16658     _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x36104AD3: fmul dword ptr [0x36174f9c] */
  16659     eax = MEM32(ebp + (-0xC)); /* 0x36104AD9: mov eax, dword ptr [ebp - 0xc] */
  16660     edx = MEM32(ebp + (-0x4)); /* 0x36104ADC: mov edx, dword ptr [ebp - 4] */
  16661     MEM32(ebp + (-0x64)) = eax; /* 0x36104ADF: mov dword ptr [ebp - 0x64], eax */
  16662     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104AE2: fstp dword ptr [ebp - 8] */
  16663     ecx = MEM32(ebp + (-0x8)); /* 0x36104AE5: mov ecx, dword ptr [ebp - 8] */
  16664     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x36104AE8: fld dword ptr [ebx + 0xee8] */
  16665     MEM32(ebp + (-0x60)) = ecx; /* 0x36104AEE: mov dword ptr [ebp - 0x60], ecx */
  16666     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104AF1: fld dword ptr [ebp - 0xc] */
  16667     MEM32(ebp + (-0x5C)) = edx; /* 0x36104AF4: mov dword ptr [ebp - 0x5c], edx */
  16668     _st[0] *= _st[1]; /* 0x36104AF7: fmul st(1) */
  16669     esi = MEM32(ebp + (-0x10)); /* 0x36104AF9: mov esi, dword ptr [ebp - 0x10] */
  16670     eax = esi; /* 0x36104AFC: mov eax, esi */
  16671     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36104AFE: fstp dword ptr [ebp - 0x64] */
  16672     ecx = MEM32(ebp + (-0x64)); /* 0x36104B01: mov ecx, dword ptr [ebp - 0x64] */
  16673     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36104B04: fld dword ptr [ebp - 0x60] */
  16674     MEM32(eax) = ecx; /* 0x36104B07: mov dword ptr [eax], ecx */
  16675     _st[0] *= _st[1]; /* 0x36104B09: fmul st(1) */
  16676     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36104B0B: fstp dword ptr [ebp - 0x60] */
  16677     edx = MEM32(ebp + (-0x60)); /* 0x36104B0E: mov edx, dword ptr [ebp - 0x60] */
  16678     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36104B11: fld dword ptr [ebp - 0x5c] */
  16679     MEM32(eax + 0x4) = edx; /* 0x36104B14: mov dword ptr [eax + 4], edx */
  16680     _st[0] *= _st[1]; /* 0x36104B17: fmul st(1) */
  16681     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36104B19: fstp dword ptr [ebp - 0x5c] */
  16682     ecx = MEM32(ebp + (-0x5C)); /* 0x36104B1C: mov ecx, dword ptr [ebp - 0x5c] */
  16683     MEM32(eax + 0x8) = ecx; /* 0x36104B1F: mov dword ptr [eax + 8], ecx */
  16684     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B22: fstp st(0) */
  16685     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104B24: fld dword ptr [ebp - 8] */
  16686     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B27: fld dword ptr [ebp - 4] */
  16687     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104B2A: fld dword ptr [ebp - 0xc] */
  16688     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B2D: fmul dword ptr [ebp - 0xc] */
  16689     fp_push(_st[1]); /* 0x36104B30: fld st(1) */
  16690     _st[0] *= _st[2]; /* 0x36104B32: fmul st(2) */
  16691     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B34: faddp st(1) */
  16692     fp_push(_st[2]); /* 0x36104B36: fld st(2) */
  16693     _st[0] *= _st[3]; /* 0x36104B38: fmul st(3) */
  16694     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B3A: faddp st(1) */
  16695     _st[0] = sqrt(_st[0]); /* 0x36104B3C: fsqrt  */
  16696     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x36104B3E: fstp st(2) */
  16697     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B40: fstp st(0) */
  16698     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104B42: fdivr dword ptr [0x36170380] */
  16699     fp_push(_st[0]); /* 0x36104B48: fld st(0) */
  16700     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B4A: fmul dword ptr [ebp - 0xc] */
  16701     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36104B4D: fstp dword ptr [ebp - 0xc] */
  16702     fp_push(_st[0]); /* 0x36104B50: fld st(0) */
  16703     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104B52: fmul dword ptr [ebp - 8] */
  16704     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104B55: fstp dword ptr [ebp - 8] */
  16705     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B58: fld dword ptr [ebp - 4] */
  16706     _st[0] *= _st[1]; /* 0x36104B5B: fmul st(1) */
  16707     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36104B5D: fstp dword ptr [ebp - 4] */
  16708     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B60: fstp st(0) */
  16709     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104B62: call dword ptr [0x3616f254] */
  16710     RECOMP_FLAGS_IN();
  16711     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  16712     eax = eax & 0x7FFFu; /* 0x36104B68: and eax, 0x7fff */
  16713     _cf = 0;
  16714     _flag_k = FK_TEST;
  16715     MEM32(ebp + (-0x30)) = eax; /* 0x36104B6D: mov dword ptr [ebp - 0x30], eax */
  16716     fp_push((double)(int32_t)MEM32(ebp + (-0x30))); /* 0x36104B70: fild dword ptr [ebp - 0x30] */
  16717     edx = ebp + (-0xD0); /* 0x36104B73: lea edx, [ebp - 0xd0] */
  16718     PUSH32(esp, edx); /* 0x36104B79: push edx */
  16719     PUSH32(esp, esi); /* 0x36104B7A: push esi */
  16720     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x36104B7B: fmul dword ptr [0x36175f30] */
  16721     MEM32(ebp + (-0xD0)) = 0; /* 0x36104B81: mov dword ptr [ebp - 0xd0], 0 */
  16722     MEM32(ebp + (-0xCC)) = 0; /* 0x36104B8B: mov dword ptr [ebp - 0xcc], 0 */
  16723     MEM32(ebp + (-0xC8)) = 0; /* 0x36104B95: mov dword ptr [ebp - 0xc8], 0 */
  16724     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36104B9F: fstp dword ptr [ebp - 0x2c] */
  16725     RECOMP_ICALL(0x360FCE60u); /* 0x36104BA2: call 0x360fce60 */ /* not lifted */
  16726     RECOMP_FLAGS_IN();
  16727     eax = MEM32(ebp + (-0xD0)); /* 0x36104BA7: mov eax, dword ptr [ebp - 0xd0] */
  16728     ecx = MEM32(ebp + (-0xCC)); /* 0x36104BAD: mov ecx, dword ptr [ebp - 0xcc] */
  16729     edx = MEM32(ebp + (-0xC8)); /* 0x36104BB3: mov edx, dword ptr [ebp - 0xc8] */
  16730     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  16731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16732     esp = esp + 0xCu; /* 0x36104BB9: add esp, 0xc */
  16733     _flag_k = FK_ADD;
  16734     MEM32(ebp + (-0xEC)) = eax; /* 0x36104BBC: mov dword ptr [ebp - 0xec], eax */
  16735     MEM32(ebp + (-0xE8)) = ecx; /* 0x36104BC2: mov dword ptr [ebp - 0xe8], ecx */
  16736     MEM32(ebp + (-0xE4)) = edx; /* 0x36104BC8: mov dword ptr [ebp - 0xe4], edx */
  16737     MEM32(ebp + (-0xE0)) = 0; /* 0x36104BCE: mov dword ptr [ebp - 0xe0], 0 */
  16738     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104BD8: fld dword ptr [ebp - 0x2c] */
  16739     MEM32(ebp + (-0x9C)) = eax; /* 0x36104BDB: mov dword ptr [ebp - 0x9c], eax */
  16740     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36104BE1: fcomp dword ptr [0x3617040c] */
  16741     fp_pop();
  16742     eax = MEM32(ebp + (-0xE0)); /* 0x36104BE7: mov eax, dword ptr [ebp - 0xe0] */
  16743     MEM32(ebp + (-0x90)) = eax; /* 0x36104BED: mov dword ptr [ebp - 0x90], eax */
  16744     MEM32(ebp + (-0x98)) = ecx; /* 0x36104BF3: mov dword ptr [ebp - 0x98], ecx */
  16745     MEM32(ebp + (-0x94)) = edx; /* 0x36104BF9: mov dword ptr [ebp - 0x94], edx */
  16746     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104BFF: fnstsw ax */
  16747     /* test HI8(eax), 1 */ /* 0x36104C01: test ah, 1 */
  16748     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16749     _cf = 0;
  16750     _flag_k = FK_NARROW(FK_TEST, 24);
  16751     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C04: jne 0x36104c21 */
  16752 L_36104C06:
  16753     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C06: fld dword ptr [ebp - 0x2c] */
  16754     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36104C09: fcomp qword ptr [0x361708b8] */
  16755     fp_pop();
  16756     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104C0F: fnstsw ax */
  16757     /* test HI8(eax), 1 */ /* 0x36104C11: test ah, 1 */
  16758     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16759     _cf = 0;
  16760     _flag_k = FK_NARROW(FK_TEST, 24);
  16761     if (TEST_Z(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C14: je 0x36104c21 */
  16762 L_36104C16:
  16763     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C16: fld dword ptr [ebp - 0x2c] */
  16764     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36104C19: fmul dword ptr [0x36170464] */
  16765     goto L_36104C45; /* 0x36104C1F: jmp 0x36104c45 */
  16766 L_36104C21:
  16767     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C21: fld dword ptr [ebp - 0x2c] */
  16768     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  16769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16770     esp = esp - 8; /* 0x36104C24: sub esp, 8 */
  16771     _flag_k = FK_CMP;
  16772     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x36104C27: fmul dword ptr [0x361708b4] */
  16773     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104C2D: fst dword ptr [ebp - 0x30] */
  16774     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36104C30: fstp qword ptr [esp] */
  16775     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x36104C33: call dword ptr [0x3616f198] */
  16776     RECOMP_FLAGS_IN();
  16777     _st[0] = (double)*(float*)ADDR(ebp + (-0x30)) - _st[0]; /* 0x36104C39: fsubr dword ptr [ebp - 0x30] */
  16778     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  16779     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16780     esp = esp + 8; /* 0x36104C3C: add esp, 8 */
  16781     _flag_k = FK_ADD;
  16782     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36104C3F: fmul dword ptr [0x361708b0] */
  16783 L_36104C45:
  16784     fp_push(_st[0]); /* 0x36104C45: fld st(0) */
  16785     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36104C47: fsin  */
  16786     fp_push(_st[0]); /* 0x36104C49: fld st(0) */
  16787     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104C4B: fmul dword ptr [ebp - 0xc] */
  16788     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36104C4E: fstp dword ptr [ebp - 0x48] */
  16789     eax = MEM32(ebp + (-0x48)); /* 0x36104C51: mov eax, dword ptr [ebp - 0x48] */
  16790     MEM32(ebp + (-0x74)) = eax; /* 0x36104C54: mov dword ptr [ebp - 0x74], eax */
  16791     fp_push(_st[0]); /* 0x36104C57: fld st(0) */
  16792     MEM32(ebp + (-0xFC)) = eax; /* 0x36104C59: mov dword ptr [ebp - 0xfc], eax */
  16793     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104C5F: fmul dword ptr [ebp - 8] */
  16794     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36104C62: fstp dword ptr [ebp - 0x44] */
  16795     ecx = MEM32(ebp + (-0x44)); /* 0x36104C65: mov ecx, dword ptr [ebp - 0x44] */
  16796     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104C68: fld dword ptr [ebp - 4] */
  16797     MEM32(ebp + (-0x70)) = ecx; /* 0x36104C6B: mov dword ptr [ebp - 0x70], ecx */
  16798     _st[0] *= _st[1]; /* 0x36104C6E: fmul st(1) */
  16799     MEM32(ebp + (-0xF8)) = ecx; /* 0x36104C70: mov dword ptr [ebp - 0xf8], ecx */
  16800     ecx = ebp + (-0x9C); /* 0x36104C76: lea ecx, [ebp - 0x9c] */
  16801     PUSH32(esp, ecx); /* 0x36104C7C: push ecx */
  16802     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36104C7D: fstp dword ptr [ebp - 0x40] */
  16803     edx = MEM32(ebp + (-0x40)); /* 0x36104C80: mov edx, dword ptr [ebp - 0x40] */
  16804     MEM32(ebp + (-0x6C)) = edx; /* 0x36104C83: mov dword ptr [ebp - 0x6c], edx */
  16805     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104C86: fstp st(0) */
  16806     ecx = ebp + (-0xFC); /* 0x36104C88: lea ecx, [ebp - 0xfc] */
  16807     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36104C8E: fcos  */
  16808     MEM32(ebp + (-0xF4)) = edx; /* 0x36104C90: mov dword ptr [ebp - 0xf4], edx */
  16809     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36104C96: fstp dword ptr [ebp - 0x3c] */
  16810     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36104C99: fld dword ptr [ebp - 0x48] */
  16811     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104C9C: fmul dword ptr [ebp - 0x48] */
  16812     esi = MEM32(ebp + (-0x3C)); /* 0x36104C9F: mov esi, dword ptr [ebp - 0x3c] */
  16813     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36104CA2: fld dword ptr [ebp - 0x3c] */
  16814     MEM32(ebp + (-0x68)) = esi; /* 0x36104CA5: mov dword ptr [ebp - 0x68], esi */
  16815     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36104CA8: fmul dword ptr [ebp - 0x3c] */
  16816     MEM32(ebp + (-0xF0)) = esi; /* 0x36104CAB: mov dword ptr [ebp - 0xf0], esi */
  16817     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB1: faddp st(1) */
  16818     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36104CB3: fld dword ptr [ebp - 0x40] */
  16819     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36104CB6: fmul dword ptr [ebp - 0x40] */
  16820     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB9: faddp st(1) */
  16821     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36104CBB: fld dword ptr [ebp - 0x44] */
  16822     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x36104CBE: fmul dword ptr [ebp - 0x44] */
  16823     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CC1: faddp st(1) */
  16824     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104CC3: fdivr dword ptr [0x36170380] */
  16825     fp_push(_st[0]); /* 0x36104CC9: fld st(0) */
  16826     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104CCB: fmul dword ptr [ebp - 0x48] */
  16827     _st[0] = -_st[0]; /* 0x36104CCE: fchs  */
  16828     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36104CD0: fstp dword ptr [ebp - 0x74] */
  16829     edi = MEM32(ebp + (-0x74)); /* 0x36104CD3: mov edi, dword ptr [ebp - 0x74] */
  16830     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36104CD6: fld dword ptr [ebp - 0x70] */
  16831     MEM32(ebp + (-0x198)) = edi; /* 0x36104CD9: mov dword ptr [ebp - 0x198], edi */
  16832     _st[0] *= _st[1]; /* 0x36104CDF: fmul st(1) */
  16833     _st[0] = -_st[0]; /* 0x36104CE1: fchs  */
  16834     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36104CE3: fstp dword ptr [ebp - 0x70] */
  16835     edi = MEM32(ebp + (-0x70)); /* 0x36104CE6: mov edi, dword ptr [ebp - 0x70] */
  16836     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36104CE9: fld dword ptr [ebp - 0x6c] */
  16837     MEM32(ebp + (-0x194)) = edi; /* 0x36104CEC: mov dword ptr [ebp - 0x194], edi */
  16838     _st[0] *= _st[1]; /* 0x36104CF2: fmul st(1) */
  16839     _st[0] = -_st[0]; /* 0x36104CF4: fchs  */
  16840     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36104CF6: fstp dword ptr [ebp - 0x6c] */
  16841     edi = MEM32(ebp + (-0x6C)); /* 0x36104CF9: mov edi, dword ptr [ebp - 0x6c] */
  16842     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36104CFC: fld dword ptr [ebp - 0x68] */
  16843     MEM32(ebp + (-0x190)) = edi; /* 0x36104CFF: mov dword ptr [ebp - 0x190], edi */
  16844     _st[0] *= _st[1]; /* 0x36104D05: fmul st(1) */
  16845     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36104D07: fstp dword ptr [ebp - 0x68] */
  16846     edi = MEM32(ebp + (-0x68)); /* 0x36104D0A: mov edi, dword ptr [ebp - 0x68] */
  16847     MEM32(ebp + (-0x18C)) = edi; /* 0x36104D0D: mov dword ptr [ebp - 0x18c], edi */
  16848     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104D13: fstp st(0) */
  16849     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D15: call dword ptr [0x3617019c] */
  16850     RECOMP_FLAGS_IN();
  16851     edx = MEM32(eax); /* 0x36104D1B: mov edx, dword ptr [eax] */
  16852     ecx = MEM32(eax + 0x4); /* 0x36104D1D: mov ecx, dword ptr [eax + 4] */
  16853     MEM32(ebp + (-0x108)) = ecx; /* 0x36104D20: mov dword ptr [ebp - 0x108], ecx */
  16854     MEM32(ebp + (-0x10C)) = edx; /* 0x36104D26: mov dword ptr [ebp - 0x10c], edx */
  16855     edx = MEM32(eax + 0x8); /* 0x36104D2C: mov edx, dword ptr [eax + 8] */
  16856     eax = MEM32(eax + 0xC); /* 0x36104D2F: mov eax, dword ptr [eax + 0xc] */
  16857     ecx = ebp + (-0x198); /* 0x36104D32: lea ecx, [ebp - 0x198] */
  16858     PUSH32(esp, ecx); /* 0x36104D38: push ecx */
  16859     ecx = ebp + (-0x10C); /* 0x36104D39: lea ecx, [ebp - 0x10c] */
  16860     MEM32(ebp + (-0x104)) = edx; /* 0x36104D3F: mov dword ptr [ebp - 0x104], edx */
  16861     MEM32(ebp + (-0x100)) = eax; /* 0x36104D45: mov dword ptr [ebp - 0x100], eax */
  16862     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D4B: call dword ptr [0x3617019c] */
  16863     RECOMP_FLAGS_IN();
  16864     edx = MEM32(eax); /* 0x36104D51: mov edx, dword ptr [eax] */
  16865     MEM32(ebp + (-0x9C)) = edx; /* 0x36104D53: mov dword ptr [ebp - 0x9c], edx */
  16866     ecx = MEM32(eax + 0x4); /* 0x36104D59: mov ecx, dword ptr [eax + 4] */
  16867     fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36104D5C: fld dword ptr [ebp - 0x9c] */
  16868     MEM32(ebp + (-0x98)) = ecx; /* 0x36104D62: mov dword ptr [ebp - 0x98], ecx */
  16869     edx = MEM32(eax + 0x8); /* 0x36104D68: mov edx, dword ptr [eax + 8] */
  16870     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36104D6B: fst dword ptr [ebp - 0x54] */
  16871     fp_push(*(float*)&MEM32(ebp + (-0x98))); /* 0x36104D6E: fld dword ptr [ebp - 0x98] */
  16872     MEM32(ebp + (-0x94)) = edx; /* 0x36104D74: mov dword ptr [ebp - 0x94], edx */
  16873     eax = MEM32(eax + 0xC); /* 0x36104D7A: mov eax, dword ptr [eax + 0xc] */
  16874     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36104D7D: fstp dword ptr [ebp - 0x50] */
  16875     fp_push(*(float*)&MEM32(ebp + (-0x94))); /* 0x36104D80: fld dword ptr [ebp - 0x94] */
  16876     ecx = MEM32(ebp + (-0x54)); /* 0x36104D86: mov ecx, dword ptr [ebp - 0x54] */
  16877     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36104D89: fstp dword ptr [ebp - 0x4c] */
  16878     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104D8C: fld dword ptr [ebp - 0x50] */
  16879     edx = MEM32(ebp + (-0x50)); /* 0x36104D8F: mov edx, dword ptr [ebp - 0x50] */
  16880     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36104D92: fmul dword ptr [ebp - 4] */
  16881     MEM32(ebp + (-0xD0)) = ecx; /* 0x36104D95: mov dword ptr [ebp - 0xd0], ecx */
  16882     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104D9B: fld dword ptr [ebp - 0x4c] */
  16883     ecx = MEM32(ebp + (-0xC)); /* 0x36104D9E: mov ecx, dword ptr [ebp - 0xc] */
  16884     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104DA1: fmul dword ptr [ebp - 8] */
  16885     MEM32(ebp + (-0x12C)) = ecx; /* 0x36104DA4: mov dword ptr [ebp - 0x12c], ecx */
  16886     MEM32(ebp + (-0x90)) = eax; /* 0x36104DAA: mov dword ptr [ebp - 0x90], eax */
  16887     eax = MEM32(ebp + (-0x4C)); /* 0x36104DB0: mov eax, dword ptr [ebp - 0x4c] */
  16888     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DB3: fsubp st(1) */
  16889     MEM32(ebp + (-0xC8)) = eax; /* 0x36104DB5: mov dword ptr [ebp - 0xc8], eax */
  16890     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104DBB: fld dword ptr [ebp - 0x4c] */
  16891     eax = MEM32(ebp + (-0x8)); /* 0x36104DBE: mov eax, dword ptr [ebp - 8] */
  16892     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104DC1: fmul dword ptr [ebp - 0xc] */
  16893     MEM32(ebp + (-0x124)) = edx; /* 0x36104DC4: mov dword ptr [ebp - 0x124], edx */
  16894     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104DCA: fld dword ptr [ebp - 4] */
  16895     MEM32(ebp + (-0x120)) = eax; /* 0x36104DCD: mov dword ptr [ebp - 0x120], eax */
  16896     _st[0] *= _st[3]; /* 0x36104DD3: fmul st(3) */
  16897     eax = MEM32(ebp + (-0x4)); /* 0x36104DD5: mov eax, dword ptr [ebp - 4] */
  16898     MEM32(ebp + (-0xCC)) = edx; /* 0x36104DD8: mov dword ptr [ebp - 0xcc], edx */
  16899     edx = MEM32(ebp + (-0x4C)); /* 0x36104DDE: mov edx, dword ptr [ebp - 0x4c] */
  16900     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DE1: fsubp st(1) */
  16901     MEM32(ebp + (-0x118)) = edx; /* 0x36104DE3: mov dword ptr [ebp - 0x118], edx */
  16902     MEM32(ebp + (-0x114)) = eax; /* 0x36104DE9: mov dword ptr [ebp - 0x114], eax */
  16903     esi = ebp + (-0x130); /* 0x36104DEF: lea esi, [ebp - 0x130] */
  16904     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104DF5: fstp dword ptr [ebp - 0x30] */
  16905     edi = ebp + (-0x188); /* 0x36104DF8: lea edi, [ebp - 0x188] */
  16906     ecx = MEM32(ebp + (-0x30)); /* 0x36104DFE: mov ecx, dword ptr [ebp - 0x30] */
  16907     fp_push(_st[1]); /* 0x36104E01: fld st(1) */
  16908     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104E03: fmul dword ptr [ebp - 8] */
  16909     MEM32(ebp + (-0x11C)) = ecx; /* 0x36104E06: mov dword ptr [ebp - 0x11c], ecx */
  16910     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104E0C: fld dword ptr [ebp - 0x50] */
  16911     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104E0F: fmul dword ptr [ebp - 0xc] */
  16912     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104E12: fsubp st(1) */
  16913     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36104E14: fstp dword ptr [ebp - 0x15c] */
  16914     ecx = MEM32(ebp + (-0x15C)); /* 0x36104E1A: mov ecx, dword ptr [ebp - 0x15c] */
  16915     fp_xch(1); /* 0x36104E20: fxch st(1) */
  16916     MEM32(ebp + (-0x110)) = ecx; /* 0x36104E22: mov dword ptr [ebp - 0x110], ecx */
  16917     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x130)) = _v; } /* 0x36104E28: fstp dword ptr [ebp - 0x130] */
  16918     ecx = 9; /* 0x36104E2E: mov ecx, 9 */
  16919     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x128)) = _v; } /* 0x36104E33: fstp dword ptr [ebp - 0x128] */
  16920     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E39: 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; }
  16921     ecx = ebp + (-0x188); /* 0x36104E3B: lea ecx, [ebp - 0x188] */
  16922     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36104E41: call dword ptr [0x361701f8] */
  16923     RECOMP_FLAGS_IN();
  16924     edx = MEM32(ebp + (-0x28)); /* 0x36104E47: mov edx, dword ptr [ebp - 0x28] */
  16925     eax = MEM32(ebp + (-0x38)); /* 0x36104E4A: mov eax, dword ptr [ebp - 0x38] */
  16926     edi = edx + (-0x8); /* 0x36104E4D: lea edi, [edx - 8] */
  16927     ecx = 9; /* 0x36104E50: mov ecx, 9 */
  16928     esi = ebp + (-0x188); /* 0x36104E55: lea esi, [ebp - 0x188] */
  16929     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E5B: 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; }
  16930     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x36104E5D: fld dword ptr [ebx + 0xedc] */
  16931     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x36104E63: fadd dword ptr [ebx + 0xc] */
  16932     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36104E66: fstp dword ptr [eax] */
  16933     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104E68: call dword ptr [0x3616f254] */
  16934     RECOMP_FLAGS_IN();
  16935     ecx = MEM32(ebp + (-0x14)); /* 0x36104E6E: mov ecx, dword ptr [ebp - 0x14] */
  16936     edi = MEM32(ebp + (-0x28)); /* 0x36104E71: mov edi, dword ptr [ebp - 0x28] */
  16937     esi = MEM32(ebp + (-0x34)); /* 0x36104E74: mov esi, dword ptr [ebp - 0x34] */
  16938     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16939     eax = eax & 1; /* 0x36104E77: and eax, 1 */
  16940     _cf = 0;
  16941     _flag_k = FK_TEST;
  16942     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16943     SET_LO8(eax, LO8(eax) - 1); /* 0x36104E7A: dec al */
  16944     _flag_k = FK_NARROW(FK_DEC, 24);
  16945     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  16946     _cf = (LO8(eax)) != 0;
  16947     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36104E7C: neg al */
  16948     _flag_k = FK_NARROW(FK_CMP, 24);
  16949     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36104E7E: sbb al, al */
  16950       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  16951       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  16952       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  16953     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  16954     SET_LO8(eax, LO8(eax) + 1); /* 0x36104E80: inc al */
  16955     _flag_k = FK_NARROW(FK_INC, 24);
  16956     MEM8(ecx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x36104E82: mov byte ptr [ecx + ebx + 0xe2c], al */
  16957     _flag_a = (uint32_t)(MEM32(ebp + (-0x24))); _flag_b = (uint32_t)(1);
  16958     MEM32(ebp + (-0x24)) = MEM32(ebp + (-0x24)) - 1; /* 0x36104E89: dec dword ptr [ebp - 0x24] */
  16959     _flag_k = FK_DEC;
  16960     ecx = MEM32(ebp + (-0x38)); /* 0x36104E8C: mov ecx, dword ptr [ebp - 0x38] */
  16961     goto L_36104E9F; /* 0x36104E8F: jmp 0x36104e9f */
  16962 L_36104E91:
  16963     edx = MEM32(ebx + 0x28); /* 0x36104E91: mov edx, dword ptr [ebx + 0x28] */
  16964     MEM8(edx + esi + 0x2C) = (uint8_t)(0); /* 0x36104E94: mov byte ptr [edx + esi + 0x2c], 0 */
  16965     MEM32(ecx) = 0xC2C80000u; /* 0x36104E99: mov dword ptr [ecx], 0xc2c80000 */
  16966 L_36104E9F:
  16967     _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(1);
  16968     MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) + 1; /* 0x36104E9F: inc dword ptr [ebp - 0x14] */
  16969     _flag_k = FK_INC;
  16970     edx = MEM32(ebp + (-0x10)); /* 0x36104EA2: mov edx, dword ptr [ebp - 0x10] */
  16971     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  16972     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16973     esi = esi + 0x30u; /* 0x36104EA5: add esi, 0x30 */
  16974     _flag_k = FK_ADD;
  16975     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  16976     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16977     ecx = ecx + 4; /* 0x36104EA8: add ecx, 4 */
  16978     _flag_k = FK_ADD;
  16979     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  16980     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16981     edx = edx + 0xCu; /* 0x36104EAB: add edx, 0xc */
  16982     _flag_k = FK_ADD;
  16983     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
  16984     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16985     edi = edi + 0x24u; /* 0x36104EAE: add edi, 0x24 */
  16986     _flag_k = FK_ADD;
  16987     /* cmp esi, 0xC00u */ /* 0x36104EB1: cmp esi, 0xc00 */
  16988     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xC00u);
  16989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16990     _flag_k = FK_CMP;
  16991     MEM32(ebp + (-0x38)) = ecx; /* 0x36104EB7: mov dword ptr [ebp - 0x38], ecx */
  16992     MEM32(ebp + (-0x10)) = edx; /* 0x36104EBA: mov dword ptr [ebp - 0x10], edx */
  16993     MEM32(ebp + (-0x28)) = edi; /* 0x36104EBD: mov dword ptr [ebp - 0x28], edi */
  16994     MEM32(ebp + (-0x34)) = esi; /* 0x36104EC0: mov dword ptr [ebp - 0x34], esi */
  16995     RECOMP_BACKEDGE();
  16996     if (CMP_L(_flag_a, _flag_b)) goto L_3610485A; /* 0x36104EC3: jl 0x3610485a */
  16997 L_36104EC9:
  16998     goto L_3610591D; /* 0x36104EC9: jmp 0x3610591d */
  16999 L_3610591D:
  17000     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  17001     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  17002     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  17003     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17004     edx = 0; /* 0x36105929: xor edx, edx */
  17005     _cf = 0;
  17006     _flag_k = FK_TEST;
  17007     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  17008     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17009     _cf = 0;
  17010     _flag_k = FK_NARROW(FK_TEST, 24);
  17011     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  17012     PUSH32(esp, edx); /* 0x36105930: push edx */
  17013     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  17014     RECOMP_FLAGS_IN();
  17015     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  17016     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  17017     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  17018     esp = ebp; /* 0x3610593A: mov esp, ebp */
  17019     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  17020     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  17021     RECOMP_REGS_OUT();
  17022 }
  17023 
  17024 void sub_36104E9F(void) {
  17025     int _fpu_cmp = 0;
  17026     uint32_t _cf = 0;
  17027     int _df = 1;
  17028     uint32_t _flag_k = FK_NONE;
  17029     uint32_t _flag_a = 0, _flag_b = 0;
  17030     uint32_t _itail_tgt = 0;
  17031     RECOMP_REGS_LOCALS
  17032     RECOMP_ENTER(0x36104E9Fu);
  17033 
  17034     goto L_36104E9F;
  17035 L_3610485A:
  17036     fp_push(*(float*)&MEM32(ecx)); /* 0x3610485A: fld dword ptr [ecx] */
  17037     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x3610485C: fcomp dword ptr [ebx + 0xc] */
  17038     fp_pop();
  17039     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610485F: fnstsw ax */
  17040     /* test HI8(eax), 0x41u */ /* 0x36104861: test ah, 0x41 */
  17041     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  17042     _cf = 0;
  17043     _flag_k = FK_NARROW(FK_TEST, 24);
  17044     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104A99; /* 0x36104864: jne 0x36104a99 */
  17045 L_3610486A:
  17046     fp_push(*(float*)&MEM32(ecx)); /* 0x3610486A: fld dword ptr [ecx] */
  17047     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x3610486C: fsub dword ptr [ebx + 0xc] */
  17048     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x3610486F: fsubr dword ptr [ebx + 0xedc] */
  17049     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x36104875: fdiv dword ptr [ebx + 0xedc] */
  17050     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x3610487B: fmul dword ptr [0x36170ba4] */
  17051     RECOMP_ICALL(0x3615FD8Cu); /* 0x36104881: call 0x3615fd8c */ /* not lifted */
  17052     RECOMP_FLAGS_IN();
  17053     fp_push(*(float*)&MEM32(edi + (-0x8))); /* 0x36104886: fld dword ptr [edi - 8] */
  17054     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36104889: fstp dword ptr [ebp - 0xdc] */
  17055     fp_push(*(float*)&MEM32(edi + (-0x4))); /* 0x3610488F: fld dword ptr [edi - 4] */
  17056     MEM32(ebp + (-0x34)) = eax; /* 0x36104892: mov dword ptr [ebp - 0x34], eax */
  17057     eax = MEM32(ebp + (-0xDC)); /* 0x36104895: mov eax, dword ptr [ebp - 0xdc] */
  17058     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x3610489B: fstp dword ptr [ebp - 0xd8] */
  17059     fp_push(*(float*)&MEM32(edi)); /* 0x361048A1: fld dword ptr [edi] */
  17060     ecx = MEM32(ebp + (-0xD8)); /* 0x361048A3: mov ecx, dword ptr [ebp - 0xd8] */
  17061     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x361048A9: fstp dword ptr [ebp - 0xd4] */
  17062     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x361048AF: fld dword ptr [ebx + 0xee4] */
  17063     edx = MEM32(ebp + (-0xD4)); /* 0x361048B5: mov edx, dword ptr [ebp - 0xd4] */
  17064     fp_push(_st[0]); /* 0x361048BB: fld st(0) */
  17065     MEM32(ebp + (-0x20)) = eax; /* 0x361048BD: mov dword ptr [ebp - 0x20], eax */
  17066     _st[0] *= (double)*(float*)ADDR(ebp + (-0xDC)); /* 0x361048C0: fmul dword ptr [ebp - 0xdc] */
  17067     MEM32(ebp + (-0x1C)) = ecx; /* 0x361048C6: mov dword ptr [ebp - 0x1c], ecx */
  17068     MEM32(ebp + (-0x18)) = edx; /* 0x361048C9: mov dword ptr [ebp - 0x18], edx */
  17069     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361048CC: fstp dword ptr [ebp - 0x20] */
  17070     eax = MEM32(ebp + (-0x20)); /* 0x361048CF: mov eax, dword ptr [ebp - 0x20] */
  17071     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361048D2: fld dword ptr [ebp - 0x1c] */
  17072     MEM32(ebp + (-0xB4)) = eax; /* 0x361048D5: mov dword ptr [ebp - 0xb4], eax */
  17073     _st[0] *= _st[1]; /* 0x361048DB: fmul st(1) */
  17074     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361048DD: fstp dword ptr [ebp - 0x1c] */
  17075     ecx = MEM32(ebp + (-0x1C)); /* 0x361048E0: mov ecx, dword ptr [ebp - 0x1c] */
  17076     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361048E3: fld dword ptr [ebp - 0x18] */
  17077     MEM32(ebp + (-0xB0)) = ecx; /* 0x361048E6: mov dword ptr [ebp - 0xb0], ecx */
  17078     _st[0] *= _st[1]; /* 0x361048EC: fmul st(1) */
  17079     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361048EE: fstp dword ptr [ebp - 0x18] */
  17080     edx = MEM32(ebp + (-0x18)); /* 0x361048F1: mov edx, dword ptr [ebp - 0x18] */
  17081     MEM32(ebp + (-0xAC)) = edx; /* 0x361048F4: mov dword ptr [ebp - 0xac], edx */
  17082     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361048FA: fstp st(0) */
  17083     fp_push(*(float*)&MEM32(edi + 0x10)); /* 0x361048FC: fld dword ptr [edi + 0x10] */
  17084     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x361048FF: fstp dword ptr [ebp - 0x80] */
  17085     fp_push(*(float*)&MEM32(edi + 0x14)); /* 0x36104902: fld dword ptr [edi + 0x14] */
  17086     eax = MEM32(ebp + (-0x80)); /* 0x36104905: mov eax, dword ptr [ebp - 0x80] */
  17087     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36104908: fstp dword ptr [ebp - 0x7c] */
  17088     fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x3610490B: fld dword ptr [edi + 0x18] */
  17089     ecx = MEM32(ebp + (-0x7C)); /* 0x3610490E: mov ecx, dword ptr [ebp - 0x7c] */
  17090     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36104911: fstp dword ptr [ebp - 0x78] */
  17091     fp_push(*(float*)&MEM32(ebx + 0xEE4)); /* 0x36104914: fld dword ptr [ebx + 0xee4] */
  17092     edx = MEM32(ebp + (-0x78)); /* 0x3610491A: mov edx, dword ptr [ebp - 0x78] */
  17093     fp_push(_st[0]); /* 0x3610491D: fld st(0) */
  17094     MEM32(ebp + (-0xC4)) = eax; /* 0x3610491F: mov dword ptr [ebp - 0xc4], eax */
  17095     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x36104925: fmul dword ptr [ebp - 0x80] */
  17096     eax = MEM32(ebp + (-0x14)); /* 0x36104928: mov eax, dword ptr [ebp - 0x14] */
  17097     MEM32(ebp + (-0xC0)) = ecx; /* 0x3610492B: mov dword ptr [ebp - 0xc0], ecx */
  17098     SET_LO8(ecx, MEM8(eax + ebx + 0xE2C)); /* 0x36104931: mov cl, byte ptr [eax + ebx + 0xe2c] */
  17099     /* test LO8(ecx), LO8(ecx) */ /* 0x36104938: test cl, cl */
  17100     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  17101     _cf = 0;
  17102     _flag_k = FK_NARROW(FK_TEST, 24);
  17103     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC4)) = _v; } /* 0x3610493A: fstp dword ptr [ebp - 0xc4] */
  17104     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x36104940: fld dword ptr [ebp - 0xc0] */
  17105     MEM32(ebp + (-0xBC)) = edx; /* 0x36104946: mov dword ptr [ebp - 0xbc], edx */
  17106     _st[0] *= _st[1]; /* 0x3610494C: fmul st(1) */
  17107     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC0)) = _v; } /* 0x3610494E: fstp dword ptr [ebp - 0xc0] */
  17108     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36104954: fld dword ptr [ebp - 0xbc] */
  17109     _st[0] *= _st[1]; /* 0x3610495A: fmul st(1) */
  17110     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xBC)) = _v; } /* 0x3610495C: fstp dword ptr [ebp - 0xbc] */
  17111     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104962: fstp st(0) */
  17112     if (TEST_Z(_flag_a, _flag_b)) goto L_361049AB; /* 0x36104964: je 0x361049ab */
  17113 L_36104966:
  17114     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36104966: fld dword ptr [ebp - 0x20] */
  17115     _st[0] = -_st[0]; /* 0x36104969: fchs  */
  17116     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA8)) = _v; } /* 0x3610496B: fstp dword ptr [ebp - 0xa8] */
  17117     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36104971: fld dword ptr [ebp - 0x1c] */
  17118     ecx = MEM32(ebp + (-0xA8)); /* 0x36104974: mov ecx, dword ptr [ebp - 0xa8] */
  17119     _st[0] = -_st[0]; /* 0x3610497A: fchs  */
  17120     MEM32(ebp + (-0xB4)) = ecx; /* 0x3610497C: mov dword ptr [ebp - 0xb4], ecx */
  17121     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA4)) = _v; } /* 0x36104982: fstp dword ptr [ebp - 0xa4] */
  17122     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36104988: fld dword ptr [ebp - 0x18] */
  17123     edx = MEM32(ebp + (-0xA4)); /* 0x3610498B: mov edx, dword ptr [ebp - 0xa4] */
  17124     _st[0] = -_st[0]; /* 0x36104991: fchs  */
  17125     MEM32(ebp + (-0xB0)) = edx; /* 0x36104993: mov dword ptr [ebp - 0xb0], edx */
  17126     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xA0)) = _v; } /* 0x36104999: fstp dword ptr [ebp - 0xa0] */
  17127     eax = MEM32(ebp + (-0xA0)); /* 0x3610499F: mov eax, dword ptr [ebp - 0xa0] */
  17128     MEM32(ebp + (-0xAC)) = eax; /* 0x361049A5: mov dword ptr [ebp - 0xac], eax */
  17129 L_361049AB:
  17130     ecx = ebp + (-0x220); /* 0x361049AB: lea ecx, [ebp - 0x220] */
  17131     PUSH32(esp, ecx); /* 0x361049B1: push ecx */
  17132     ecx = MEM32(ebx + 0x20); /* 0x361049B2: mov ecx, dword ptr [ebx + 0x20] */
  17133     RECOMP_ICALL(0x36133FC0u); /* 0x361049B5: call 0x36133fc0 */ /* not lifted */
  17134     RECOMP_FLAGS_IN();
  17135     edx = MEM32(eax); /* 0x361049BA: mov edx, dword ptr [eax] */
  17136     ecx = MEM32(eax + 0x4); /* 0x361049BC: mov ecx, dword ptr [eax + 4] */
  17137     MEM32(ebp + (-0x8C)) = edx; /* 0x361049BF: mov dword ptr [ebp - 0x8c], edx */
  17138     fp_push(*(float*)&MEM32(ebp + (-0x8C))); /* 0x361049C5: fld dword ptr [ebp - 0x8c] */
  17139     edx = MEM32(eax + 0x8); /* 0x361049CB: mov edx, dword ptr [eax + 8] */
  17140     eax = MEM32(ebp + (-0x10)); /* 0x361049CE: mov eax, dword ptr [ebp - 0x10] */
  17141     _st[0] += (double)*(float*)ADDR(eax); /* 0x361049D1: fadd dword ptr [eax] */
  17142     MEM32(ebp + (-0x88)) = ecx; /* 0x361049D3: mov dword ptr [ebp - 0x88], ecx */
  17143     ecx = MEM32(ebx + 0x28); /* 0x361049D9: mov ecx, dword ptr [ebx + 0x28] */
  17144     MEM32(ebp + (-0x84)) = edx; /* 0x361049DC: mov dword ptr [ebp - 0x84], edx */
  17145     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x361049E2: fstp dword ptr [ebp - 0x8c] */
  17146     fp_push(*(float*)&MEM32(ebp + (-0x88))); /* 0x361049E8: fld dword ptr [ebp - 0x88] */
  17147     _st[0] += (double)*(float*)ADDR(eax + 0x4); /* 0x361049EE: fadd dword ptr [eax + 4] */
  17148     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x361049F1: fstp dword ptr [ebp - 0x88] */
  17149     edx = MEM32(ebp + (-0x88)); /* 0x361049F7: mov edx, dword ptr [ebp - 0x88] */
  17150     fp_push(*(float*)&MEM32(ebp + (-0x84))); /* 0x361049FD: fld dword ptr [ebp - 0x84] */
  17151     _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x36104A03: fadd dword ptr [eax + 8] */
  17152     eax = esi; /* 0x36104A06: mov eax, esi */
  17153     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  17154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17155     eax = eax + ecx; /* 0x36104A08: add eax, ecx */
  17156     _flag_k = FK_ADD;
  17157     ecx = MEM32(ebp + (-0x8C)); /* 0x36104A0A: mov ecx, dword ptr [ebp - 0x8c] */
  17158     MEM32(eax) = ecx; /* 0x36104A10: mov dword ptr [eax], ecx */
  17159     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x84)) = _v; } /* 0x36104A12: fstp dword ptr [ebp - 0x84] */
  17160     ecx = MEM32(ebp + (-0x84)); /* 0x36104A18: mov ecx, dword ptr [ebp - 0x84] */
  17161     MEM32(eax + 0x4) = edx; /* 0x36104A1E: mov dword ptr [eax + 4], edx */
  17162     MEM32(eax + 0x8) = ecx; /* 0x36104A21: mov dword ptr [eax + 8], ecx */
  17163     edx = MEM32(ebx + 0x28); /* 0x36104A24: mov edx, dword ptr [ebx + 0x28] */
  17164     ecx = MEM32(ebp + (-0xB4)); /* 0x36104A27: mov ecx, dword ptr [ebp - 0xb4] */
  17165     eax = esi + edx + 0xC; /* 0x36104A2D: lea eax, [esi + edx + 0xc] */
  17166     edx = MEM32(ebp + (-0xB0)); /* 0x36104A31: mov edx, dword ptr [ebp - 0xb0] */
  17167     MEM32(eax) = ecx; /* 0x36104A37: mov dword ptr [eax], ecx */
  17168     ecx = MEM32(ebp + (-0xAC)); /* 0x36104A39: mov ecx, dword ptr [ebp - 0xac] */
  17169     MEM32(eax + 0x4) = edx; /* 0x36104A3F: mov dword ptr [eax + 4], edx */
  17170     MEM32(eax + 0x8) = ecx; /* 0x36104A42: mov dword ptr [eax + 8], ecx */
  17171     edx = MEM32(ebx + 0x28); /* 0x36104A45: mov edx, dword ptr [ebx + 0x28] */
  17172     ecx = MEM32(ebp + (-0xC4)); /* 0x36104A48: mov ecx, dword ptr [ebp - 0xc4] */
  17173     eax = esi + edx + 0x18; /* 0x36104A4E: lea eax, [esi + edx + 0x18] */
  17174     edx = MEM32(ebp + (-0xC0)); /* 0x36104A52: mov edx, dword ptr [ebp - 0xc0] */
  17175     MEM32(eax) = ecx; /* 0x36104A58: mov dword ptr [eax], ecx */
  17176     ecx = MEM32(ebp + (-0xBC)); /* 0x36104A5A: mov ecx, dword ptr [ebp - 0xbc] */
  17177     MEM32(eax + 0x4) = edx; /* 0x36104A60: mov dword ptr [eax + 4], edx */
  17178     edx = MEM32(ebp + (-0xB8)); /* 0x36104A63: mov edx, dword ptr [ebp - 0xb8] */
  17179     MEM32(eax + 0x8) = ecx; /* 0x36104A69: mov dword ptr [eax + 8], ecx */
  17180     PUSH32(esp, edx); /* 0x36104A6C: push edx */
  17181     ecx = ebx + 0xEA8; /* 0x36104A6D: lea ecx, [ebx + 0xea8] */
  17182     RECOMP_ICALL(0x36137D80u); /* 0x36104A73: call 0x36137d80 */ /* not lifted */
  17183     RECOMP_FLAGS_IN();
  17184     ecx = MEM32(ebx + 0x28); /* 0x36104A78: mov ecx, dword ptr [ebx + 0x28] */
  17185     MEM32(esi + ecx + 0x24) = eax; /* 0x36104A7B: mov dword ptr [esi + ecx + 0x24], eax */
  17186     edx = MEM32(ebx + 0x28); /* 0x36104A7F: mov edx, dword ptr [ebx + 0x28] */
  17187     eax = MEM32(ebp + (-0x34)); /* 0x36104A82: mov eax, dword ptr [ebp - 0x34] */
  17188     MEM32(esi + edx + 0x28) = eax; /* 0x36104A85: mov dword ptr [esi + edx + 0x28], eax */
  17189     ecx = MEM32(ebx + 0x28); /* 0x36104A89: mov ecx, dword ptr [ebx + 0x28] */
  17190     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36104A8C: mov byte ptr [esi + ecx + 0x2c], 1 */
  17191     ecx = MEM32(ebp + (-0x38)); /* 0x36104A91: mov ecx, dword ptr [ebp - 0x38] */
  17192     goto L_36104E9F; /* 0x36104A94: jmp 0x36104e9f */
  17193 L_36104A99:
  17194     eax = MEM32(ebp + (-0x24)); /* 0x36104A99: mov eax, dword ptr [ebp - 0x24] */
  17195     /* test eax, eax */ /* 0x36104A9C: test eax, eax */
  17196     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  17197     _cf = 0;
  17198     _flag_k = FK_TEST;
  17199     if (TEST_Z(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104A9E: je 0x36104e91 */
  17200 L_36104AA4:
  17201     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x36104AA4: mov al, byte ptr [ebx + 0xe6c] */
  17202     /* test LO8(eax), LO8(eax) */ /* 0x36104AAA: test al, al */
  17203     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17204     _cf = 0;
  17205     _flag_k = FK_NARROW(FK_TEST, 24);
  17206     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104E91; /* 0x36104AAC: jne 0x36104e91 */
  17207 L_36104AB2:
  17208     edx = ebp + (-0xC); /* 0x36104AB2: lea edx, [ebp - 0xc] */
  17209     PUSH32(esp, edx); /* 0x36104AB5: push edx */
  17210     MEM32(ebp + (-0xC)) = 0; /* 0x36104AB6: mov dword ptr [ebp - 0xc], 0 */
  17211     MEM32(ebp + (-0x8)) = 0; /* 0x36104ABD: mov dword ptr [ebp - 8], 0 */
  17212     MEM32(ebp + (-0x4)) = 0; /* 0x36104AC4: mov dword ptr [ebp - 4], 0 */
  17213     RECOMP_ICALL(0x360FCA70u); /* 0x36104ACB: call 0x360fca70 */ /* not lifted */
  17214     RECOMP_FLAGS_IN();
  17215     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104AD0: fld dword ptr [ebp - 8] */
  17216     _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x36104AD3: fmul dword ptr [0x36174f9c] */
  17217     eax = MEM32(ebp + (-0xC)); /* 0x36104AD9: mov eax, dword ptr [ebp - 0xc] */
  17218     edx = MEM32(ebp + (-0x4)); /* 0x36104ADC: mov edx, dword ptr [ebp - 4] */
  17219     MEM32(ebp + (-0x64)) = eax; /* 0x36104ADF: mov dword ptr [ebp - 0x64], eax */
  17220     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104AE2: fstp dword ptr [ebp - 8] */
  17221     ecx = MEM32(ebp + (-0x8)); /* 0x36104AE5: mov ecx, dword ptr [ebp - 8] */
  17222     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x36104AE8: fld dword ptr [ebx + 0xee8] */
  17223     MEM32(ebp + (-0x60)) = ecx; /* 0x36104AEE: mov dword ptr [ebp - 0x60], ecx */
  17224     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104AF1: fld dword ptr [ebp - 0xc] */
  17225     MEM32(ebp + (-0x5C)) = edx; /* 0x36104AF4: mov dword ptr [ebp - 0x5c], edx */
  17226     _st[0] *= _st[1]; /* 0x36104AF7: fmul st(1) */
  17227     esi = MEM32(ebp + (-0x10)); /* 0x36104AF9: mov esi, dword ptr [ebp - 0x10] */
  17228     eax = esi; /* 0x36104AFC: mov eax, esi */
  17229     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36104AFE: fstp dword ptr [ebp - 0x64] */
  17230     ecx = MEM32(ebp + (-0x64)); /* 0x36104B01: mov ecx, dword ptr [ebp - 0x64] */
  17231     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36104B04: fld dword ptr [ebp - 0x60] */
  17232     MEM32(eax) = ecx; /* 0x36104B07: mov dword ptr [eax], ecx */
  17233     _st[0] *= _st[1]; /* 0x36104B09: fmul st(1) */
  17234     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x36104B0B: fstp dword ptr [ebp - 0x60] */
  17235     edx = MEM32(ebp + (-0x60)); /* 0x36104B0E: mov edx, dword ptr [ebp - 0x60] */
  17236     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36104B11: fld dword ptr [ebp - 0x5c] */
  17237     MEM32(eax + 0x4) = edx; /* 0x36104B14: mov dword ptr [eax + 4], edx */
  17238     _st[0] *= _st[1]; /* 0x36104B17: fmul st(1) */
  17239     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36104B19: fstp dword ptr [ebp - 0x5c] */
  17240     ecx = MEM32(ebp + (-0x5C)); /* 0x36104B1C: mov ecx, dword ptr [ebp - 0x5c] */
  17241     MEM32(eax + 0x8) = ecx; /* 0x36104B1F: mov dword ptr [eax + 8], ecx */
  17242     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B22: fstp st(0) */
  17243     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36104B24: fld dword ptr [ebp - 8] */
  17244     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B27: fld dword ptr [ebp - 4] */
  17245     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36104B2A: fld dword ptr [ebp - 0xc] */
  17246     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B2D: fmul dword ptr [ebp - 0xc] */
  17247     fp_push(_st[1]); /* 0x36104B30: fld st(1) */
  17248     _st[0] *= _st[2]; /* 0x36104B32: fmul st(2) */
  17249     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B34: faddp st(1) */
  17250     fp_push(_st[2]); /* 0x36104B36: fld st(2) */
  17251     _st[0] *= _st[3]; /* 0x36104B38: fmul st(3) */
  17252     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104B3A: faddp st(1) */
  17253     _st[0] = sqrt(_st[0]); /* 0x36104B3C: fsqrt  */
  17254     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x36104B3E: fstp st(2) */
  17255     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B40: fstp st(0) */
  17256     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104B42: fdivr dword ptr [0x36170380] */
  17257     fp_push(_st[0]); /* 0x36104B48: fld st(0) */
  17258     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104B4A: fmul dword ptr [ebp - 0xc] */
  17259     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36104B4D: fstp dword ptr [ebp - 0xc] */
  17260     fp_push(_st[0]); /* 0x36104B50: fld st(0) */
  17261     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104B52: fmul dword ptr [ebp - 8] */
  17262     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36104B55: fstp dword ptr [ebp - 8] */
  17263     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104B58: fld dword ptr [ebp - 4] */
  17264     _st[0] *= _st[1]; /* 0x36104B5B: fmul st(1) */
  17265     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36104B5D: fstp dword ptr [ebp - 4] */
  17266     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104B60: fstp st(0) */
  17267     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104B62: call dword ptr [0x3616f254] */
  17268     RECOMP_FLAGS_IN();
  17269     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  17270     eax = eax & 0x7FFFu; /* 0x36104B68: and eax, 0x7fff */
  17271     _cf = 0;
  17272     _flag_k = FK_TEST;
  17273     MEM32(ebp + (-0x30)) = eax; /* 0x36104B6D: mov dword ptr [ebp - 0x30], eax */
  17274     fp_push((double)(int32_t)MEM32(ebp + (-0x30))); /* 0x36104B70: fild dword ptr [ebp - 0x30] */
  17275     edx = ebp + (-0xD0); /* 0x36104B73: lea edx, [ebp - 0xd0] */
  17276     PUSH32(esp, edx); /* 0x36104B79: push edx */
  17277     PUSH32(esp, esi); /* 0x36104B7A: push esi */
  17278     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x36104B7B: fmul dword ptr [0x36175f30] */
  17279     MEM32(ebp + (-0xD0)) = 0; /* 0x36104B81: mov dword ptr [ebp - 0xd0], 0 */
  17280     MEM32(ebp + (-0xCC)) = 0; /* 0x36104B8B: mov dword ptr [ebp - 0xcc], 0 */
  17281     MEM32(ebp + (-0xC8)) = 0; /* 0x36104B95: mov dword ptr [ebp - 0xc8], 0 */
  17282     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36104B9F: fstp dword ptr [ebp - 0x2c] */
  17283     RECOMP_ICALL(0x360FCE60u); /* 0x36104BA2: call 0x360fce60 */ /* not lifted */
  17284     RECOMP_FLAGS_IN();
  17285     eax = MEM32(ebp + (-0xD0)); /* 0x36104BA7: mov eax, dword ptr [ebp - 0xd0] */
  17286     ecx = MEM32(ebp + (-0xCC)); /* 0x36104BAD: mov ecx, dword ptr [ebp - 0xcc] */
  17287     edx = MEM32(ebp + (-0xC8)); /* 0x36104BB3: mov edx, dword ptr [ebp - 0xc8] */
  17288     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  17289     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17290     esp = esp + 0xCu; /* 0x36104BB9: add esp, 0xc */
  17291     _flag_k = FK_ADD;
  17292     MEM32(ebp + (-0xEC)) = eax; /* 0x36104BBC: mov dword ptr [ebp - 0xec], eax */
  17293     MEM32(ebp + (-0xE8)) = ecx; /* 0x36104BC2: mov dword ptr [ebp - 0xe8], ecx */
  17294     MEM32(ebp + (-0xE4)) = edx; /* 0x36104BC8: mov dword ptr [ebp - 0xe4], edx */
  17295     MEM32(ebp + (-0xE0)) = 0; /* 0x36104BCE: mov dword ptr [ebp - 0xe0], 0 */
  17296     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104BD8: fld dword ptr [ebp - 0x2c] */
  17297     MEM32(ebp + (-0x9C)) = eax; /* 0x36104BDB: mov dword ptr [ebp - 0x9c], eax */
  17298     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36104BE1: fcomp dword ptr [0x3617040c] */
  17299     fp_pop();
  17300     eax = MEM32(ebp + (-0xE0)); /* 0x36104BE7: mov eax, dword ptr [ebp - 0xe0] */
  17301     MEM32(ebp + (-0x90)) = eax; /* 0x36104BED: mov dword ptr [ebp - 0x90], eax */
  17302     MEM32(ebp + (-0x98)) = ecx; /* 0x36104BF3: mov dword ptr [ebp - 0x98], ecx */
  17303     MEM32(ebp + (-0x94)) = edx; /* 0x36104BF9: mov dword ptr [ebp - 0x94], edx */
  17304     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104BFF: fnstsw ax */
  17305     /* test HI8(eax), 1 */ /* 0x36104C01: test ah, 1 */
  17306     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  17307     _cf = 0;
  17308     _flag_k = FK_NARROW(FK_TEST, 24);
  17309     if (TEST_NZ(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C04: jne 0x36104c21 */
  17310 L_36104C06:
  17311     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C06: fld dword ptr [ebp - 0x2c] */
  17312     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36104C09: fcomp qword ptr [0x361708b8] */
  17313     fp_pop();
  17314     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36104C0F: fnstsw ax */
  17315     /* test HI8(eax), 1 */ /* 0x36104C11: test ah, 1 */
  17316     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  17317     _cf = 0;
  17318     _flag_k = FK_NARROW(FK_TEST, 24);
  17319     if (TEST_Z(_flag_a, _flag_b)) goto L_36104C21; /* 0x36104C14: je 0x36104c21 */
  17320 L_36104C16:
  17321     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C16: fld dword ptr [ebp - 0x2c] */
  17322     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36104C19: fmul dword ptr [0x36170464] */
  17323     goto L_36104C45; /* 0x36104C1F: jmp 0x36104c45 */
  17324 L_36104C21:
  17325     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36104C21: fld dword ptr [ebp - 0x2c] */
  17326     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  17327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17328     esp = esp - 8; /* 0x36104C24: sub esp, 8 */
  17329     _flag_k = FK_CMP;
  17330     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x36104C27: fmul dword ptr [0x361708b4] */
  17331     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104C2D: fst dword ptr [ebp - 0x30] */
  17332     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36104C30: fstp qword ptr [esp] */
  17333     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x36104C33: call dword ptr [0x3616f198] */
  17334     RECOMP_FLAGS_IN();
  17335     _st[0] = (double)*(float*)ADDR(ebp + (-0x30)) - _st[0]; /* 0x36104C39: fsubr dword ptr [ebp - 0x30] */
  17336     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  17337     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17338     esp = esp + 8; /* 0x36104C3C: add esp, 8 */
  17339     _flag_k = FK_ADD;
  17340     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36104C3F: fmul dword ptr [0x361708b0] */
  17341 L_36104C45:
  17342     fp_push(_st[0]); /* 0x36104C45: fld st(0) */
  17343     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36104C47: fsin  */
  17344     fp_push(_st[0]); /* 0x36104C49: fld st(0) */
  17345     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104C4B: fmul dword ptr [ebp - 0xc] */
  17346     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x36104C4E: fstp dword ptr [ebp - 0x48] */
  17347     eax = MEM32(ebp + (-0x48)); /* 0x36104C51: mov eax, dword ptr [ebp - 0x48] */
  17348     MEM32(ebp + (-0x74)) = eax; /* 0x36104C54: mov dword ptr [ebp - 0x74], eax */
  17349     fp_push(_st[0]); /* 0x36104C57: fld st(0) */
  17350     MEM32(ebp + (-0xFC)) = eax; /* 0x36104C59: mov dword ptr [ebp - 0xfc], eax */
  17351     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104C5F: fmul dword ptr [ebp - 8] */
  17352     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x36104C62: fstp dword ptr [ebp - 0x44] */
  17353     ecx = MEM32(ebp + (-0x44)); /* 0x36104C65: mov ecx, dword ptr [ebp - 0x44] */
  17354     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104C68: fld dword ptr [ebp - 4] */
  17355     MEM32(ebp + (-0x70)) = ecx; /* 0x36104C6B: mov dword ptr [ebp - 0x70], ecx */
  17356     _st[0] *= _st[1]; /* 0x36104C6E: fmul st(1) */
  17357     MEM32(ebp + (-0xF8)) = ecx; /* 0x36104C70: mov dword ptr [ebp - 0xf8], ecx */
  17358     ecx = ebp + (-0x9C); /* 0x36104C76: lea ecx, [ebp - 0x9c] */
  17359     PUSH32(esp, ecx); /* 0x36104C7C: push ecx */
  17360     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36104C7D: fstp dword ptr [ebp - 0x40] */
  17361     edx = MEM32(ebp + (-0x40)); /* 0x36104C80: mov edx, dword ptr [ebp - 0x40] */
  17362     MEM32(ebp + (-0x6C)) = edx; /* 0x36104C83: mov dword ptr [ebp - 0x6c], edx */
  17363     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104C86: fstp st(0) */
  17364     ecx = ebp + (-0xFC); /* 0x36104C88: lea ecx, [ebp - 0xfc] */
  17365     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36104C8E: fcos  */
  17366     MEM32(ebp + (-0xF4)) = edx; /* 0x36104C90: mov dword ptr [ebp - 0xf4], edx */
  17367     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36104C96: fstp dword ptr [ebp - 0x3c] */
  17368     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36104C99: fld dword ptr [ebp - 0x48] */
  17369     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104C9C: fmul dword ptr [ebp - 0x48] */
  17370     esi = MEM32(ebp + (-0x3C)); /* 0x36104C9F: mov esi, dword ptr [ebp - 0x3c] */
  17371     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36104CA2: fld dword ptr [ebp - 0x3c] */
  17372     MEM32(ebp + (-0x68)) = esi; /* 0x36104CA5: mov dword ptr [ebp - 0x68], esi */
  17373     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x36104CA8: fmul dword ptr [ebp - 0x3c] */
  17374     MEM32(ebp + (-0xF0)) = esi; /* 0x36104CAB: mov dword ptr [ebp - 0xf0], esi */
  17375     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB1: faddp st(1) */
  17376     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36104CB3: fld dword ptr [ebp - 0x40] */
  17377     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x36104CB6: fmul dword ptr [ebp - 0x40] */
  17378     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CB9: faddp st(1) */
  17379     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x36104CBB: fld dword ptr [ebp - 0x44] */
  17380     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x36104CBE: fmul dword ptr [ebp - 0x44] */
  17381     { double _v = fp_pop(); _st[0] += _v; } /* 0x36104CC1: faddp st(1) */
  17382     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36104CC3: fdivr dword ptr [0x36170380] */
  17383     fp_push(_st[0]); /* 0x36104CC9: fld st(0) */
  17384     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x36104CCB: fmul dword ptr [ebp - 0x48] */
  17385     _st[0] = -_st[0]; /* 0x36104CCE: fchs  */
  17386     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x36104CD0: fstp dword ptr [ebp - 0x74] */
  17387     edi = MEM32(ebp + (-0x74)); /* 0x36104CD3: mov edi, dword ptr [ebp - 0x74] */
  17388     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36104CD6: fld dword ptr [ebp - 0x70] */
  17389     MEM32(ebp + (-0x198)) = edi; /* 0x36104CD9: mov dword ptr [ebp - 0x198], edi */
  17390     _st[0] *= _st[1]; /* 0x36104CDF: fmul st(1) */
  17391     _st[0] = -_st[0]; /* 0x36104CE1: fchs  */
  17392     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x36104CE3: fstp dword ptr [ebp - 0x70] */
  17393     edi = MEM32(ebp + (-0x70)); /* 0x36104CE6: mov edi, dword ptr [ebp - 0x70] */
  17394     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x36104CE9: fld dword ptr [ebp - 0x6c] */
  17395     MEM32(ebp + (-0x194)) = edi; /* 0x36104CEC: mov dword ptr [ebp - 0x194], edi */
  17396     _st[0] *= _st[1]; /* 0x36104CF2: fmul st(1) */
  17397     _st[0] = -_st[0]; /* 0x36104CF4: fchs  */
  17398     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x36104CF6: fstp dword ptr [ebp - 0x6c] */
  17399     edi = MEM32(ebp + (-0x6C)); /* 0x36104CF9: mov edi, dword ptr [ebp - 0x6c] */
  17400     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36104CFC: fld dword ptr [ebp - 0x68] */
  17401     MEM32(ebp + (-0x190)) = edi; /* 0x36104CFF: mov dword ptr [ebp - 0x190], edi */
  17402     _st[0] *= _st[1]; /* 0x36104D05: fmul st(1) */
  17403     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36104D07: fstp dword ptr [ebp - 0x68] */
  17404     edi = MEM32(ebp + (-0x68)); /* 0x36104D0A: mov edi, dword ptr [ebp - 0x68] */
  17405     MEM32(ebp + (-0x18C)) = edi; /* 0x36104D0D: mov dword ptr [ebp - 0x18c], edi */
  17406     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36104D13: fstp st(0) */
  17407     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D15: call dword ptr [0x3617019c] */
  17408     RECOMP_FLAGS_IN();
  17409     edx = MEM32(eax); /* 0x36104D1B: mov edx, dword ptr [eax] */
  17410     ecx = MEM32(eax + 0x4); /* 0x36104D1D: mov ecx, dword ptr [eax + 4] */
  17411     MEM32(ebp + (-0x108)) = ecx; /* 0x36104D20: mov dword ptr [ebp - 0x108], ecx */
  17412     MEM32(ebp + (-0x10C)) = edx; /* 0x36104D26: mov dword ptr [ebp - 0x10c], edx */
  17413     edx = MEM32(eax + 0x8); /* 0x36104D2C: mov edx, dword ptr [eax + 8] */
  17414     eax = MEM32(eax + 0xC); /* 0x36104D2F: mov eax, dword ptr [eax + 0xc] */
  17415     ecx = ebp + (-0x198); /* 0x36104D32: lea ecx, [ebp - 0x198] */
  17416     PUSH32(esp, ecx); /* 0x36104D38: push ecx */
  17417     ecx = ebp + (-0x10C); /* 0x36104D39: lea ecx, [ebp - 0x10c] */
  17418     MEM32(ebp + (-0x104)) = edx; /* 0x36104D3F: mov dword ptr [ebp - 0x104], edx */
  17419     MEM32(ebp + (-0x100)) = eax; /* 0x36104D45: mov dword ptr [ebp - 0x100], eax */
  17420     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36104D4B: call dword ptr [0x3617019c] */
  17421     RECOMP_FLAGS_IN();
  17422     edx = MEM32(eax); /* 0x36104D51: mov edx, dword ptr [eax] */
  17423     MEM32(ebp + (-0x9C)) = edx; /* 0x36104D53: mov dword ptr [ebp - 0x9c], edx */
  17424     ecx = MEM32(eax + 0x4); /* 0x36104D59: mov ecx, dword ptr [eax + 4] */
  17425     fp_push(*(float*)&MEM32(ebp + (-0x9C))); /* 0x36104D5C: fld dword ptr [ebp - 0x9c] */
  17426     MEM32(ebp + (-0x98)) = ecx; /* 0x36104D62: mov dword ptr [ebp - 0x98], ecx */
  17427     edx = MEM32(eax + 0x8); /* 0x36104D68: mov edx, dword ptr [eax + 8] */
  17428     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x36104D6B: fst dword ptr [ebp - 0x54] */
  17429     fp_push(*(float*)&MEM32(ebp + (-0x98))); /* 0x36104D6E: fld dword ptr [ebp - 0x98] */
  17430     MEM32(ebp + (-0x94)) = edx; /* 0x36104D74: mov dword ptr [ebp - 0x94], edx */
  17431     eax = MEM32(eax + 0xC); /* 0x36104D7A: mov eax, dword ptr [eax + 0xc] */
  17432     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x36104D7D: fstp dword ptr [ebp - 0x50] */
  17433     fp_push(*(float*)&MEM32(ebp + (-0x94))); /* 0x36104D80: fld dword ptr [ebp - 0x94] */
  17434     ecx = MEM32(ebp + (-0x54)); /* 0x36104D86: mov ecx, dword ptr [ebp - 0x54] */
  17435     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36104D89: fstp dword ptr [ebp - 0x4c] */
  17436     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104D8C: fld dword ptr [ebp - 0x50] */
  17437     edx = MEM32(ebp + (-0x50)); /* 0x36104D8F: mov edx, dword ptr [ebp - 0x50] */
  17438     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36104D92: fmul dword ptr [ebp - 4] */
  17439     MEM32(ebp + (-0xD0)) = ecx; /* 0x36104D95: mov dword ptr [ebp - 0xd0], ecx */
  17440     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104D9B: fld dword ptr [ebp - 0x4c] */
  17441     ecx = MEM32(ebp + (-0xC)); /* 0x36104D9E: mov ecx, dword ptr [ebp - 0xc] */
  17442     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104DA1: fmul dword ptr [ebp - 8] */
  17443     MEM32(ebp + (-0x12C)) = ecx; /* 0x36104DA4: mov dword ptr [ebp - 0x12c], ecx */
  17444     MEM32(ebp + (-0x90)) = eax; /* 0x36104DAA: mov dword ptr [ebp - 0x90], eax */
  17445     eax = MEM32(ebp + (-0x4C)); /* 0x36104DB0: mov eax, dword ptr [ebp - 0x4c] */
  17446     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DB3: fsubp st(1) */
  17447     MEM32(ebp + (-0xC8)) = eax; /* 0x36104DB5: mov dword ptr [ebp - 0xc8], eax */
  17448     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36104DBB: fld dword ptr [ebp - 0x4c] */
  17449     eax = MEM32(ebp + (-0x8)); /* 0x36104DBE: mov eax, dword ptr [ebp - 8] */
  17450     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104DC1: fmul dword ptr [ebp - 0xc] */
  17451     MEM32(ebp + (-0x124)) = edx; /* 0x36104DC4: mov dword ptr [ebp - 0x124], edx */
  17452     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36104DCA: fld dword ptr [ebp - 4] */
  17453     MEM32(ebp + (-0x120)) = eax; /* 0x36104DCD: mov dword ptr [ebp - 0x120], eax */
  17454     _st[0] *= _st[3]; /* 0x36104DD3: fmul st(3) */
  17455     eax = MEM32(ebp + (-0x4)); /* 0x36104DD5: mov eax, dword ptr [ebp - 4] */
  17456     MEM32(ebp + (-0xCC)) = edx; /* 0x36104DD8: mov dword ptr [ebp - 0xcc], edx */
  17457     edx = MEM32(ebp + (-0x4C)); /* 0x36104DDE: mov edx, dword ptr [ebp - 0x4c] */
  17458     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104DE1: fsubp st(1) */
  17459     MEM32(ebp + (-0x118)) = edx; /* 0x36104DE3: mov dword ptr [ebp - 0x118], edx */
  17460     MEM32(ebp + (-0x114)) = eax; /* 0x36104DE9: mov dword ptr [ebp - 0x114], eax */
  17461     esi = ebp + (-0x130); /* 0x36104DEF: lea esi, [ebp - 0x130] */
  17462     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36104DF5: fstp dword ptr [ebp - 0x30] */
  17463     edi = ebp + (-0x188); /* 0x36104DF8: lea edi, [ebp - 0x188] */
  17464     ecx = MEM32(ebp + (-0x30)); /* 0x36104DFE: mov ecx, dword ptr [ebp - 0x30] */
  17465     fp_push(_st[1]); /* 0x36104E01: fld st(1) */
  17466     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36104E03: fmul dword ptr [ebp - 8] */
  17467     MEM32(ebp + (-0x11C)) = ecx; /* 0x36104E06: mov dword ptr [ebp - 0x11c], ecx */
  17468     fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x36104E0C: fld dword ptr [ebp - 0x50] */
  17469     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36104E0F: fmul dword ptr [ebp - 0xc] */
  17470     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36104E12: fsubp st(1) */
  17471     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36104E14: fstp dword ptr [ebp - 0x15c] */
  17472     ecx = MEM32(ebp + (-0x15C)); /* 0x36104E1A: mov ecx, dword ptr [ebp - 0x15c] */
  17473     fp_xch(1); /* 0x36104E20: fxch st(1) */
  17474     MEM32(ebp + (-0x110)) = ecx; /* 0x36104E22: mov dword ptr [ebp - 0x110], ecx */
  17475     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x130)) = _v; } /* 0x36104E28: fstp dword ptr [ebp - 0x130] */
  17476     ecx = 9; /* 0x36104E2E: mov ecx, 9 */
  17477     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x128)) = _v; } /* 0x36104E33: fstp dword ptr [ebp - 0x128] */
  17478     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E39: 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; }
  17479     ecx = ebp + (-0x188); /* 0x36104E3B: lea ecx, [ebp - 0x188] */
  17480     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36104E41: call dword ptr [0x361701f8] */
  17481     RECOMP_FLAGS_IN();
  17482     edx = MEM32(ebp + (-0x28)); /* 0x36104E47: mov edx, dword ptr [ebp - 0x28] */
  17483     eax = MEM32(ebp + (-0x38)); /* 0x36104E4A: mov eax, dword ptr [ebp - 0x38] */
  17484     edi = edx + (-0x8); /* 0x36104E4D: lea edi, [edx - 8] */
  17485     ecx = 9; /* 0x36104E50: mov ecx, 9 */
  17486     esi = ebp + (-0x188); /* 0x36104E55: lea esi, [ebp - 0x188] */
  17487     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36104E5B: 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; }
  17488     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x36104E5D: fld dword ptr [ebx + 0xedc] */
  17489     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x36104E63: fadd dword ptr [ebx + 0xc] */
  17490     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36104E66: fstp dword ptr [eax] */
  17491     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36104E68: call dword ptr [0x3616f254] */
  17492     RECOMP_FLAGS_IN();
  17493     ecx = MEM32(ebp + (-0x14)); /* 0x36104E6E: mov ecx, dword ptr [ebp - 0x14] */
  17494     edi = MEM32(ebp + (-0x28)); /* 0x36104E71: mov edi, dword ptr [ebp - 0x28] */
  17495     esi = MEM32(ebp + (-0x34)); /* 0x36104E74: mov esi, dword ptr [ebp - 0x34] */
  17496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  17497     eax = eax & 1; /* 0x36104E77: and eax, 1 */
  17498     _cf = 0;
  17499     _flag_k = FK_TEST;
  17500     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  17501     SET_LO8(eax, LO8(eax) - 1); /* 0x36104E7A: dec al */
  17502     _flag_k = FK_NARROW(FK_DEC, 24);
  17503     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17504     _cf = (LO8(eax)) != 0;
  17505     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36104E7C: neg al */
  17506     _flag_k = FK_NARROW(FK_CMP, 24);
  17507     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36104E7E: sbb al, al */
  17508       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  17509       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  17510       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  17511     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  17512     SET_LO8(eax, LO8(eax) + 1); /* 0x36104E80: inc al */
  17513     _flag_k = FK_NARROW(FK_INC, 24);
  17514     MEM8(ecx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x36104E82: mov byte ptr [ecx + ebx + 0xe2c], al */
  17515     _flag_a = (uint32_t)(MEM32(ebp + (-0x24))); _flag_b = (uint32_t)(1);
  17516     MEM32(ebp + (-0x24)) = MEM32(ebp + (-0x24)) - 1; /* 0x36104E89: dec dword ptr [ebp - 0x24] */
  17517     _flag_k = FK_DEC;
  17518     ecx = MEM32(ebp + (-0x38)); /* 0x36104E8C: mov ecx, dword ptr [ebp - 0x38] */
  17519     goto L_36104E9F; /* 0x36104E8F: jmp 0x36104e9f */
  17520 L_36104E91:
  17521     edx = MEM32(ebx + 0x28); /* 0x36104E91: mov edx, dword ptr [ebx + 0x28] */
  17522     MEM8(edx + esi + 0x2C) = (uint8_t)(0); /* 0x36104E94: mov byte ptr [edx + esi + 0x2c], 0 */
  17523     MEM32(ecx) = 0xC2C80000u; /* 0x36104E99: mov dword ptr [ecx], 0xc2c80000 */
  17524 L_36104E9F:
  17525     _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(1);
  17526     MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) + 1; /* 0x36104E9F: inc dword ptr [ebp - 0x14] */
  17527     _flag_k = FK_INC;
  17528     edx = MEM32(ebp + (-0x10)); /* 0x36104EA2: mov edx, dword ptr [ebp - 0x10] */
  17529     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  17530     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17531     esi = esi + 0x30u; /* 0x36104EA5: add esi, 0x30 */
  17532     _flag_k = FK_ADD;
  17533     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  17534     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17535     ecx = ecx + 4; /* 0x36104EA8: add ecx, 4 */
  17536     _flag_k = FK_ADD;
  17537     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
  17538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17539     edx = edx + 0xCu; /* 0x36104EAB: add edx, 0xc */
  17540     _flag_k = FK_ADD;
  17541     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
  17542     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17543     edi = edi + 0x24u; /* 0x36104EAE: add edi, 0x24 */
  17544     _flag_k = FK_ADD;
  17545     /* cmp esi, 0xC00u */ /* 0x36104EB1: cmp esi, 0xc00 */
  17546     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xC00u);
  17547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17548     _flag_k = FK_CMP;
  17549     MEM32(ebp + (-0x38)) = ecx; /* 0x36104EB7: mov dword ptr [ebp - 0x38], ecx */
  17550     MEM32(ebp + (-0x10)) = edx; /* 0x36104EBA: mov dword ptr [ebp - 0x10], edx */
  17551     MEM32(ebp + (-0x28)) = edi; /* 0x36104EBD: mov dword ptr [ebp - 0x28], edi */
  17552     MEM32(ebp + (-0x34)) = esi; /* 0x36104EC0: mov dword ptr [ebp - 0x34], esi */
  17553     RECOMP_BACKEDGE();
  17554     if (CMP_L(_flag_a, _flag_b)) goto L_3610485A; /* 0x36104EC3: jl 0x3610485a */
  17555 L_36104EC9:
  17556     goto L_3610591D; /* 0x36104EC9: jmp 0x3610591d */
  17557 L_3610591D:
  17558     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  17559     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  17560     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  17561     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17562     edx = 0; /* 0x36105929: xor edx, edx */
  17563     _cf = 0;
  17564     _flag_k = FK_TEST;
  17565     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  17566     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17567     _cf = 0;
  17568     _flag_k = FK_NARROW(FK_TEST, 24);
  17569     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  17570     PUSH32(esp, edx); /* 0x36105930: push edx */
  17571     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  17572     RECOMP_FLAGS_IN();
  17573     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  17574     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  17575     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  17576     esp = ebp; /* 0x3610593A: mov esp, ebp */
  17577     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  17578     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  17579     RECOMP_REGS_OUT();
  17580 }
  17581 
  17582 void sub_36104FDE(void) {
  17583     int _fpu_cmp = 0;
  17584     uint32_t _cf = 0;
  17585     int _df = 1;
  17586     uint32_t _flag_k = FK_NONE;
  17587     uint32_t _flag_a = 0, _flag_b = 0;
  17588     uint32_t _itail_tgt = 0;
  17589     RECOMP_REGS_LOCALS
  17590     RECOMP_ENTER(0x36104FDEu);
  17591 
  17592 L_36104FDE:
  17593     edx = MEM32(ebp + (-0x28)); /* 0x36104FDE: mov edx, dword ptr [ebp - 0x28] */
  17594     esi = MEM32(ebp + (-0x14)); /* 0x36104FE1: mov esi, dword ptr [ebp - 0x14] */
  17595     eax = MEM32(edx + 0x4); /* 0x36104FE4: mov eax, dword ptr [edx + 4] */
  17596     eax = eax + eax * 2; /* 0x36104FE7: lea eax, [eax + eax*2] */
  17597     ecx = eax * 4 + 0x3630D5A8; /* 0x36104FEA: lea ecx, [eax*4 + 0x3630d5a8] */
  17598     eax = MEM32(edx); /* 0x36104FF1: mov eax, dword ptr [edx] */
  17599     eax = eax + eax * 2; /* 0x36104FF3: lea eax, [eax + eax*2] */
  17600     eax = eax * 4 + 0x3630D5A8; /* 0x36104FF6: lea eax, [eax*4 + 0x3630d5a8] */
  17601     edx = eax; /* 0x36104FFD: mov edx, eax */
  17602     edi = MEM32(edx); /* 0x36104FFF: mov edi, dword ptr [edx] */
  17603     MEM32(ebp + (-0xC)) = edi; /* 0x36105001: mov dword ptr [ebp - 0xc], edi */
  17604     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36105004: fld dword ptr [ebp - 0xc] */
  17605     _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36105007: fsub dword ptr [ecx] */
  17606     edi = MEM32(edx + 0x4); /* 0x36105009: mov edi, dword ptr [edx + 4] */
  17607     edx = MEM32(edx + 0x8); /* 0x3610500C: mov edx, dword ptr [edx + 8] */
  17608     MEM32(ebp + (-0x8)) = edi; /* 0x3610500F: mov dword ptr [ebp - 8], edi */
  17609     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36105012: fstp dword ptr [ebp - 0xc] */
  17610     MEM32(ebp + (-0x4)) = edx; /* 0x36105015: mov dword ptr [ebp - 4], edx */
  17611     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36105018: fld dword ptr [ebp - 8] */
  17612     edi = MEM32(ebp + (-0xC)); /* 0x3610501B: mov edi, dword ptr [ebp - 0xc] */
  17613     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x3610501E: fsub dword ptr [ecx + 4] */
  17614     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36105021: fstp dword ptr [ebp - 8] */
  17615     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36105024: fld dword ptr [ebp - 4] */
  17616     _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x36105027: fsub dword ptr [ecx + 8] */
  17617     ecx = MEM32(ebp + (-0x10)); /* 0x3610502A: mov ecx, dword ptr [ebp - 0x10] */
  17618     ecx = ecx + 0x3630D518; /* 0x3610502D: lea ecx, [ecx + 0x3630d518] */
  17619     edx = ecx; /* 0x36105033: mov edx, ecx */
  17620     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36105035: fstp dword ptr [ebp - 4] */
  17621     MEM32(edx) = edi; /* 0x36105038: mov dword ptr [edx], edi */
  17622     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610503A: fld dword ptr [ebp - 0xc] */
  17623     edi = MEM32(ebp + (-0x8)); /* 0x3610503D: mov edi, dword ptr [ebp - 8] */
  17624     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36105040: fmul dword ptr [ebp - 0xc] */
  17625     MEM32(edx + 0x4) = edi; /* 0x36105043: mov dword ptr [edx + 4], edi */
  17626     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36105046: fld dword ptr [ebp - 4] */
  17627     edi = MEM32(ebp + (-0x4)); /* 0x36105049: mov edi, dword ptr [ebp - 4] */
  17628     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610504C: fmul dword ptr [ebp - 4] */
  17629     MEM32(edx + 0x8) = edi; /* 0x3610504F: mov dword ptr [edx + 8], edi */
  17630     edi = MEM32(eax); /* 0x36105052: mov edi, dword ptr [eax] */
  17631     edx = MEM32(ebp + (-0x10)); /* 0x36105054: mov edx, dword ptr [ebp - 0x10] */
  17632     { double _v = fp_pop(); _st[0] += _v; } /* 0x36105057: faddp st(1) */
  17633     edx = edx + 0x3630D560; /* 0x36105059: lea edx, [edx + 0x3630d560] */
  17634     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610505F: fld dword ptr [ebp - 8] */
  17635     MEM32(edx) = edi; /* 0x36105062: mov dword ptr [edx], edi */
  17636     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36105064: fmul dword ptr [ebp - 8] */
  17637     edi = MEM32(eax + 0x4); /* 0x36105067: mov edi, dword ptr [eax + 4] */
  17638     eax = MEM32(eax + 0x8); /* 0x3610506A: mov eax, dword ptr [eax + 8] */
  17639     MEM32(edx + 0x4) = edi; /* 0x3610506D: mov dword ptr [edx + 4], edi */
  17640     { double _v = fp_pop(); _st[0] += _v; } /* 0x36105070: faddp st(1) */
  17641     MEM32(edx + 0x8) = eax; /* 0x36105072: mov dword ptr [edx + 8], eax */
  17642     eax = MEM32(esi + 0x362E4E90); /* 0x36105075: mov eax, dword ptr [esi + 0x362e4e90] */
  17643     edx = eax + eax * 2; /* 0x3610507B: lea edx, [eax + eax*2] */
  17644     _st[0] = sqrt(_st[0]); /* 0x3610507E: fsqrt  */
  17645     PUSH32(esp, ecx); /* 0x36105080: push ecx */
  17646     eax = ebp + (-0x164); /* 0x36105081: lea eax, [ebp - 0x164] */
  17647     PUSH32(esp, eax); /* 0x36105087: push eax */
  17648     MEM32(ebp + (-0x154)) = 0x3F800000u; /* 0x36105088: mov dword ptr [ebp - 0x154], 0x3f800000 */
  17649     MEM32(ebp + (-0x150)) = 0; /* 0x36105092: mov dword ptr [ebp - 0x150], 0 */
  17650     MEM32(ebp + (-0x14C)) = 0; /* 0x3610509C: mov dword ptr [ebp - 0x14c], 0 */
  17651     MEM32(ebp + (-0x148)) = 0; /* 0x361050A6: mov dword ptr [ebp - 0x148], 0 */
  17652     MEM32(ebp + (-0x144)) = 0x3F800000u; /* 0x361050B0: mov dword ptr [ebp - 0x144], 0x3f800000 */
  17653     MEM32(ebp + (-0x140)) = 0; /* 0x361050BA: mov dword ptr [ebp - 0x140], 0 */
  17654     MEM32(ebp + (-0x13C)) = 0; /* 0x361050C4: mov dword ptr [ebp - 0x13c], 0 */
  17655     MEM32(ebp + (-0x138)) = 0; /* 0x361050CE: mov dword ptr [ebp - 0x138], 0 */
  17656     MEM32(ebp + (-0x134)) = 0x3F800000u; /* 0x361050D8: mov dword ptr [ebp - 0x134], 0x3f800000 */
  17657     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3630D500) = _v; } /* 0x361050E2: fstp dword ptr [esi + 0x3630d500] */
  17658     esi = ebp + edx * 4 + (-0x130); /* 0x361050E8: lea esi, [ebp + edx*4 - 0x130] */
  17659     ecx = esi; /* 0x361050EF: mov ecx, esi */
  17660     RECOMP_ICALL(MEM32(0x36170180)); /* 0x361050F1: call dword ptr [0x36170180] */
  17661     RECOMP_FLAGS_IN();
  17662     ecx = MEM32(eax); /* 0x361050F7: mov ecx, dword ptr [eax] */
  17663     MEM32(ebp + (-0x20)) = ecx; /* 0x361050F9: mov dword ptr [ebp - 0x20], ecx */
  17664     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361050FC: fld dword ptr [ebp - 0x20] */
  17665     edx = MEM32(eax + 0x4); /* 0x361050FF: mov edx, dword ptr [eax + 4] */
  17666     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36105102: fcomp dword ptr [0x3617040c] */
  17667     fp_pop();
  17668     MEM32(ebp + (-0x1C)) = edx; /* 0x36105108: mov dword ptr [ebp - 0x1c], edx */
  17669     eax = MEM32(eax + 0x8); /* 0x3610510B: mov eax, dword ptr [eax + 8] */
  17670     MEM32(ebp + (-0x18)) = eax; /* 0x3610510E: mov dword ptr [ebp - 0x18], eax */
  17671     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105111: fnstsw ax */
  17672     /* test HI8(eax), 0x40u */ /* 0x36105113: test ah, 0x40 */
  17673     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  17674     _cf = 0;
  17675     _flag_k = FK_NARROW(FK_TEST, 24);
  17676     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105116: je 0x36105178 */
  17677 L_36105118:
  17678     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105118: fld dword ptr [ebp - 0x1c] */
  17679     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610511B: fcomp dword ptr [0x3617040c] */
  17680     fp_pop();
  17681     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105121: fnstsw ax */
  17682     /* test HI8(eax), 0x40u */ /* 0x36105123: test ah, 0x40 */
  17683     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  17684     _cf = 0;
  17685     _flag_k = FK_NARROW(FK_TEST, 24);
  17686     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105126: je 0x36105178 */
  17687 L_36105128:
  17688     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36105128: fld dword ptr [ebp - 0x18] */
  17689     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610512B: fcomp dword ptr [0x3617040c] */
  17690     fp_pop();
  17691     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105131: fnstsw ax */
  17692     /* test HI8(eax), 0x40u */ /* 0x36105133: test ah, 0x40 */
  17693     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  17694     _cf = 0;
  17695     _flag_k = FK_NARROW(FK_TEST, 24);
  17696     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105136: je 0x36105178 */
  17697 L_36105138:
  17698     fp_push(*(float*)&MEM32(esi)); /* 0x36105138: fld dword ptr [esi] */
  17699     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610513A: fcomp dword ptr [0x3617040c] */
  17700     fp_pop();
  17701     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105140: fnstsw ax */
  17702     /* test HI8(eax), 0x40u */ /* 0x36105142: test ah, 0x40 */
  17703     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  17704     _cf = 0;
  17705     _flag_k = FK_NARROW(FK_TEST, 24);
  17706     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105145: je 0x36105178 */
  17707 L_36105147:
  17708     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36105147: fld dword ptr [esi + 4] */
  17709     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610514A: fcomp dword ptr [0x3617040c] */
  17710     fp_pop();
  17711     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105150: fnstsw ax */
  17712     /* test HI8(eax), 0x40u */ /* 0x36105152: test ah, 0x40 */
  17713     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  17714     _cf = 0;
  17715     _flag_k = FK_NARROW(FK_TEST, 24);
  17716     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105155: je 0x36105178 */
  17717 L_36105157:
  17718     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36105157: fld dword ptr [esi + 8] */
  17719     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610515A: fcomp dword ptr [0x3617040c] */
  17720     fp_pop();
  17721     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105160: fnstsw ax */
  17722     /* test HI8(eax), 0x40u */ /* 0x36105162: test ah, 0x40 */
  17723     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  17724     _cf = 0;
  17725     _flag_k = FK_NARROW(FK_TEST, 24);
  17726     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105165: je 0x36105178 */
  17727 L_36105167:
  17728     ecx = ebp + (-0x154); /* 0x36105167: lea ecx, [ebp - 0x154] */
  17729     RECOMP_ICALL(MEM32(0x361701F4)); /* 0x3610516D: call dword ptr [0x361701f4] */
  17730     RECOMP_FLAGS_IN();
  17731     goto L_3610524B; /* 0x36105173: jmp 0x3610524b */
  17732 L_36105178:
  17733     PUSH32(esp, 0x3F800000u); /* 0x36105178: push 0x3f800000 */
  17734     ecx = ebp + (-0xDC); /* 0x3610517D: lea ecx, [ebp - 0xdc] */
  17735     PUSH32(esp, ecx); /* 0x36105183: push ecx */
  17736     ecx = ebp + (-0x20); /* 0x36105184: lea ecx, [ebp - 0x20] */
  17737     RECOMP_ICALL(MEM32(0x361701F0)); /* 0x36105187: call dword ptr [0x361701f0] */
  17738     RECOMP_FLAGS_IN();
  17739     edx = MEM32(eax); /* 0x3610518D: mov edx, dword ptr [eax] */
  17740     MEM32(ebp + (-0x20)) = edx; /* 0x3610518F: mov dword ptr [ebp - 0x20], edx */
  17741     ecx = MEM32(eax + 0x4); /* 0x36105192: mov ecx, dword ptr [eax + 4] */
  17742     MEM32(ebp + (-0x1C)) = ecx; /* 0x36105195: mov dword ptr [ebp - 0x1c], ecx */
  17743     edx = MEM32(eax + 0x8); /* 0x36105198: mov edx, dword ptr [eax + 8] */
  17744     PUSH32(esp, 0x3F800000u); /* 0x3610519B: push 0x3f800000 */
  17745     eax = ebp + (-0xB4); /* 0x361051A0: lea eax, [ebp - 0xb4] */
  17746     PUSH32(esp, eax); /* 0x361051A6: push eax */
  17747     ecx = esi; /* 0x361051A7: mov ecx, esi */
  17748     MEM32(ebp + (-0x18)) = edx; /* 0x361051A9: mov dword ptr [ebp - 0x18], edx */
  17749     RECOMP_ICALL(MEM32(0x361701F0)); /* 0x361051AC: call dword ptr [0x361701f0] */
  17750     RECOMP_FLAGS_IN();
  17751     ecx = MEM32(eax); /* 0x361051B2: mov ecx, dword ptr [eax] */
  17752     MEM32(ebp + (-0x80)) = ecx; /* 0x361051B4: mov dword ptr [ebp - 0x80], ecx */
  17753     edx = MEM32(eax + 0x4); /* 0x361051B7: mov edx, dword ptr [eax + 4] */
  17754     MEM32(ebp + (-0x7C)) = edx; /* 0x361051BA: mov dword ptr [ebp - 0x7c], edx */
  17755     eax = MEM32(eax + 0x8); /* 0x361051BD: mov eax, dword ptr [eax + 8] */
  17756     ecx = ebp + (-0x20); /* 0x361051C0: lea ecx, [ebp - 0x20] */
  17757     PUSH32(esp, ecx); /* 0x361051C3: push ecx */
  17758     edx = ebp + (-0xD0); /* 0x361051C4: lea edx, [ebp - 0xd0] */
  17759     PUSH32(esp, edx); /* 0x361051CA: push edx */
  17760     ecx = ebp + (-0x80); /* 0x361051CB: lea ecx, [ebp - 0x80] */
  17761     MEM32(ebp + (-0x78)) = eax; /* 0x361051CE: mov dword ptr [ebp - 0x78], eax */
  17762     RECOMP_ICALL(MEM32(0x36170180)); /* 0x361051D1: call dword ptr [0x36170180] */
  17763     RECOMP_FLAGS_IN();
  17764     ecx = MEM32(eax); /* 0x361051D7: mov ecx, dword ptr [eax] */
  17765     edx = MEM32(eax + 0x4); /* 0x361051D9: mov edx, dword ptr [eax + 4] */
  17766     eax = MEM32(eax + 0x8); /* 0x361051DC: mov eax, dword ptr [eax + 8] */
  17767     MEM32(ebp + (-0xA8)) = ecx; /* 0x361051DF: mov dword ptr [ebp - 0xa8], ecx */
  17768     ecx = MEM32(ebp + (-0x20)); /* 0x361051E5: mov ecx, dword ptr [ebp - 0x20] */
  17769     MEM32(ebp + (-0xA4)) = edx; /* 0x361051E8: mov dword ptr [ebp - 0xa4], edx */
  17770     edx = MEM32(ebp + (-0x1C)); /* 0x361051EE: mov edx, dword ptr [ebp - 0x1c] */
  17771     MEM32(ebp + (-0xA0)) = eax; /* 0x361051F1: mov dword ptr [ebp - 0xa0], eax */
  17772     eax = MEM32(ebp + (-0x18)); /* 0x361051F7: mov eax, dword ptr [ebp - 0x18] */
  17773     MEM32(ebp + (-0x154)) = ecx; /* 0x361051FA: mov dword ptr [ebp - 0x154], ecx */
  17774     ecx = MEM32(ebp + (-0xA8)); /* 0x36105200: mov ecx, dword ptr [ebp - 0xa8] */
  17775     MEM32(ebp + (-0x148)) = edx; /* 0x36105206: mov dword ptr [ebp - 0x148], edx */
  17776     edx = MEM32(ebp + (-0xA4)); /* 0x3610520C: mov edx, dword ptr [ebp - 0xa4] */
  17777     MEM32(ebp + (-0x13C)) = eax; /* 0x36105212: mov dword ptr [ebp - 0x13c], eax */
  17778     eax = MEM32(ebp + (-0xA0)); /* 0x36105218: mov eax, dword ptr [ebp - 0xa0] */
  17779     MEM32(ebp + (-0x150)) = ecx; /* 0x3610521E: mov dword ptr [ebp - 0x150], ecx */
  17780     ecx = MEM32(ebp + (-0x80)); /* 0x36105224: mov ecx, dword ptr [ebp - 0x80] */
  17781     MEM32(ebp + (-0x144)) = edx; /* 0x36105227: mov dword ptr [ebp - 0x144], edx */
  17782     edx = MEM32(ebp + (-0x7C)); /* 0x3610522D: mov edx, dword ptr [ebp - 0x7c] */
  17783     MEM32(ebp + (-0x138)) = eax; /* 0x36105230: mov dword ptr [ebp - 0x138], eax */
  17784     eax = MEM32(ebp + (-0x78)); /* 0x36105236: mov eax, dword ptr [ebp - 0x78] */
  17785     MEM32(ebp + (-0x14C)) = ecx; /* 0x36105239: mov dword ptr [ebp - 0x14c], ecx */
  17786     MEM32(ebp + (-0x140)) = edx; /* 0x3610523F: mov dword ptr [ebp - 0x140], edx */
  17787     MEM32(ebp + (-0x134)) = eax; /* 0x36105245: mov dword ptr [ebp - 0x134], eax */
  17788 L_3610524B:
  17789     edi = MEM32(ebp + (-0x24)); /* 0x3610524B: mov edi, dword ptr [ebp - 0x24] */
  17790     ecx = 9; /* 0x3610524E: mov ecx, 9 */
  17791     esi = ebp + (-0x154); /* 0x36105253: lea esi, [ebp - 0x154] */
  17792     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105259: 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; }
  17793     esi = MEM32(ebp + (-0x24)); /* 0x3610525B: mov esi, dword ptr [ebp - 0x24] */
  17794     ecx = esi; /* 0x3610525E: mov ecx, esi */
  17795     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105260: call dword ptr [0x361701f8] */
  17796     RECOMP_FLAGS_IN();
  17797     eax = MEM32(ebp + (-0x28)); /* 0x36105266: mov eax, dword ptr [ebp - 0x28] */
  17798     ecx = MEM32(ebp + (-0x14)); /* 0x36105269: mov ecx, dword ptr [ebp - 0x14] */
  17799     edi = MEM32(ebp + (-0x10)); /* 0x3610526C: mov edi, dword ptr [ebp - 0x10] */
  17800     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
  17801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17802     eax = eax + 8; /* 0x3610526F: add eax, 8 */
  17803     _flag_k = FK_ADD;
  17804     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  17805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17806     ecx = ecx + 4; /* 0x36105272: add ecx, 4 */
  17807     _flag_k = FK_ADD;
  17808     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
  17809     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17810     edi = edi + 0xCu; /* 0x36105275: add edi, 0xc */
  17811     _flag_k = FK_ADD;
  17812     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
  17813     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17814     esi = esi + 0x24u; /* 0x36105278: add esi, 0x24 */
  17815     _flag_k = FK_ADD;
  17816     /* cmp eax, 0x362E4E90u */ /* 0x3610527B: cmp eax, 0x362e4e90 */
  17817     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x362E4E90u);
  17818     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17819     _flag_k = FK_CMP;
  17820     MEM32(ebp + (-0x28)) = eax; /* 0x36105280: mov dword ptr [ebp - 0x28], eax */
  17821     MEM32(ebp + (-0x14)) = ecx; /* 0x36105283: mov dword ptr [ebp - 0x14], ecx */
  17822     MEM32(ebp + (-0x10)) = edi; /* 0x36105286: mov dword ptr [ebp - 0x10], edi */
  17823     MEM32(ebp + (-0x24)) = esi; /* 0x36105289: mov dword ptr [ebp - 0x24], esi */
  17824     RECOMP_BACKEDGE();
  17825     if (CMP_L(_flag_a, _flag_b)) goto L_36104FDE; /* 0x3610528C: jl 0x36104fde */
  17826 L_36105292:
  17827     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  17828     ecx = 0; /* 0x36105292: xor ecx, ecx */
  17829     _cf = 0;
  17830     _flag_k = FK_TEST;
  17831     edi = ebx + 0xD2C; /* 0x36105294: lea edi, [ebx + 0xd2c] */
  17832     edx = ebx + 0x32C; /* 0x3610529A: lea edx, [ebx + 0x32c] */
  17833     esi = ebx + 0x34; /* 0x361052A0: lea esi, [ebx + 0x34] */
  17834     MEM32(ebp + (-0x14)) = ecx; /* 0x361052A3: mov dword ptr [ebp - 0x14], ecx */
  17835     MEM32(ebp + (-0x30)) = ecx; /* 0x361052A6: mov dword ptr [ebp - 0x30], ecx */
  17836     MEM32(ebp + (-0x24)) = edi; /* 0x361052A9: mov dword ptr [ebp - 0x24], edi */
  17837     MEM32(ebp + (-0x28)) = edx; /* 0x361052AC: mov dword ptr [ebp - 0x28], edx */
  17838     MEM32(ebp + (-0x2C)) = esi; /* 0x361052AF: mov dword ptr [ebp - 0x2c], esi */
  17839 L_361052B2:
  17840     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  17841     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  17842     fp_pop();
  17843     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  17844     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  17845     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  17846     _cf = 0;
  17847     _flag_k = FK_NARROW(FK_TEST, 24);
  17848     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  17849 L_361052C2:
  17850     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  17851     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  17852     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  17853     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  17854     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  17855     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  17856     RECOMP_FLAGS_IN();
  17857     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  17858     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  17859     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  17860     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  17861     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  17862     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  17863     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  17864     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  17865     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  17866     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  17867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  17868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17869     _flag_k = FK_CMP;
  17870     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  17871 L_3610530A:
  17872     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  17873     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  17874     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  17875     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  17876 L_3610531B:
  17877     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  17878     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  17879     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  17880     PUSH32(esp, eax); /* 0x3610532C: push eax */
  17881     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  17882     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  17883     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  17884     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  17885     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  17886     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  17887     RECOMP_FLAGS_IN();
  17888     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  17889     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  17890     fp_pop();
  17891     esi = eax; /* 0x3610534C: mov esi, eax */
  17892     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  17893     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  17894     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  17895     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  17896     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  17897     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  17898     _cf = 0;
  17899     _flag_k = FK_NARROW(FK_TEST, 24);
  17900     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  17901 L_36105362:
  17902     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  17903     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  17904 L_3610536A:
  17905     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  17906     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  17907 L_36105373:
  17908     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  17909     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  17910     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  17911     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  17912     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  17913     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  17914     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  17915     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  17916     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  17917     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  17918     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  17919     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  17920     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  17921     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  17922     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  17923     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  17924     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  17925     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  17926     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  17927     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  17928     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  17929     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  17930     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  17931     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  17932     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  17933     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  17934     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  17935     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  17936     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  17937     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  17938     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  17939     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  17940     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  17941     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  17942     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  17943     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  17944     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  17945     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  17946     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  17947     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17948     _cf = 0;
  17949     _flag_k = FK_NARROW(FK_TEST, 24);
  17950     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  17951     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  17952     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  17953     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  17954     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  17955     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  17956     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  17957 L_3610541F:
  17958     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  17959     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  17960     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  17961     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  17962     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  17963     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  17964     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  17965     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  17966     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  17967     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  17968     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  17969     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  17970     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  17971     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  17972 L_3610545E:
  17973     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  17974     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  17975     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  17976     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  17977     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  17978     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  17979     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  17980     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  17981     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  17982     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  17983     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  17984     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  17985     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  17986     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  17987     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  17988     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  17989     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  17990     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  17991     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  17992     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  17993     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  17994     RECOMP_FLAGS_IN();
  17995     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  17996     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  17997     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  17998     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  17999     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  18000     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  18001     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  18002     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  18003     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  18004     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  18005     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  18006     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  18007     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  18008     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  18009     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  18010     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  18011     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  18012     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  18013     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  18014     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  18015     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  18016     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  18017     edx = esi; /* 0x36105509: mov edx, esi */
  18018     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  18019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18020     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  18021     _flag_k = FK_ADD;
  18022     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  18023     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  18024     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  18025     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  18026     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  18027     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  18028     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  18029     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  18030     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  18031     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  18032     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  18033     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  18034     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  18035     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  18036     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  18037     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  18038     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  18039     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  18040     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  18041     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  18042     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  18043     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  18044     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  18045     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  18046     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  18047     PUSH32(esp, edx); /* 0x36105563: push edx */
  18048     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  18049     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  18050     RECOMP_FLAGS_IN();
  18051     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  18052     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  18053     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  18054     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  18055     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  18056     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  18057     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  18058     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  18059     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  18060     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  18061 L_36105593:
  18062     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  18063     /* test eax, eax */ /* 0x36105596: test eax, eax */
  18064     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  18065     _cf = 0;
  18066     _flag_k = FK_TEST;
  18067     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  18068 L_3610559E:
  18069     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  18070     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  18071     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18072     _cf = 0;
  18073     _flag_k = FK_NARROW(FK_TEST, 24);
  18074     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  18075 L_361055AC:
  18076     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  18077     PUSH32(esp, edi); /* 0x361055AF: push edi */
  18078     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  18079     RECOMP_FLAGS_IN();
  18080     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18081     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18082     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  18083     _flag_k = FK_ADD;
  18084     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  18085     RECOMP_FLAGS_IN();
  18086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  18087     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  18088     _cf = 0;
  18089     _flag_k = FK_TEST;
  18090     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  18091     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  18092     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  18093     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  18094     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  18095     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  18096     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  18097     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  18098     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  18099     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  18100     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  18101     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  18102     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  18103     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  18104     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  18105     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  18106     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  18107     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  18108     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18109     _cf = 0;
  18110     _flag_k = FK_NARROW(FK_TEST, 24);
  18111     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  18112 L_36105628:
  18113     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  18114     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  18115     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  18116     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18117     _cf = 0;
  18118     _flag_k = FK_NARROW(FK_TEST, 24);
  18119     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  18120 L_36105635:
  18121     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  18122     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  18123 L_3610563D:
  18124     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  18125     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  18126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18127     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  18128     _flag_k = FK_CMP;
  18129     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  18130     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  18131     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  18132     RECOMP_FLAGS_IN();
  18133     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  18134     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  18135     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18136     esp = esp + 8; /* 0x36105655: add esp, 8 */
  18137     _flag_k = FK_ADD;
  18138     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  18139 L_3610565E:
  18140     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  18141     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  18142     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  18143     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  18144     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  18145     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  18146     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  18147     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  18148     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  18149     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  18150     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  18151     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  18152     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  18153     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  18154     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  18155     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  18156     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  18157     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  18158     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  18159     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  18160     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  18161     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  18162     RECOMP_FLAGS_IN();
  18163     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  18164     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  18165     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  18166     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  18167     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  18168     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  18169     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  18170     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  18171     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  18172     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  18173     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  18174     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  18175     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  18176     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  18177     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  18178     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  18179     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  18180     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  18181     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  18182     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  18183     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  18184     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  18185     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  18186     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  18187     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  18188     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  18189     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  18190     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  18191     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  18192     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  18193     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  18194     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  18195     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  18196     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  18197     PUSH32(esp, eax); /* 0x36105739: push eax */
  18198     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  18199     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  18200     RECOMP_FLAGS_IN();
  18201     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  18202     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  18203     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  18204     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  18205     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  18206     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  18207     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  18208     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  18209     PUSH32(esp, eax); /* 0x36105769: push eax */
  18210     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  18211     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  18212     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  18213     RECOMP_FLAGS_IN();
  18214     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  18215     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  18216     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  18217     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  18218     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  18219     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  18220     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  18221     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  18222     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  18223     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  18224     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  18225     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  18226     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  18227     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  18228     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  18229     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  18230     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  18231     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  18232     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  18233     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  18234     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  18235     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  18236     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  18237     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  18238     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  18239     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  18240     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  18241     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  18242     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  18243     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  18244     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  18245     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  18246     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  18247     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  18248     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  18249     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  18250     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  18251     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  18252     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  18253     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  18254     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  18255     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  18256     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  18257     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  18258     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  18259     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  18260     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  18261     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  18262     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  18263     ecx = 9; /* 0x36105845: mov ecx, 9 */
  18264     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  18265     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  18266     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  18267     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  18268     RECOMP_FLAGS_IN();
  18269     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  18270     ecx = 9; /* 0x36105861: mov ecx, 9 */
  18271     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  18272     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  18273     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  18274     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  18275     RECOMP_FLAGS_IN();
  18276     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  18277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  18278     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  18279     _cf = 0;
  18280     _flag_k = FK_TEST;
  18281     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  18282     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  18283     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  18284     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  18285     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  18286     RECOMP_FLAGS_IN();
  18287     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  18288     ecx = 6; /* 0x36105890: mov ecx, 6 */
  18289     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  18290       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  18291       else { eax = 0; edx = 0; } }
  18292     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  18293     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  18294     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  18295     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  18296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  18297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18298     _flag_k = FK_CMP;
  18299     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  18300 L_361058AB:
  18301     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  18302 L_361058B1:
  18303     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  18304     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  18305     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  18306     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  18307     RECOMP_FLAGS_IN();
  18308     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  18309     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  18310     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  18311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  18312     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  18313     _cf = 0;
  18314     _flag_k = FK_TEST;
  18315     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18316     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  18317     _flag_k = FK_NARROW(FK_DEC, 24);
  18318     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18319     _cf = (LO8(eax)) != 0;
  18320     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  18321     _flag_k = FK_NARROW(FK_CMP, 24);
  18322     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  18323       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  18324       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  18325       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  18326     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18327     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  18328     _flag_k = FK_NARROW(FK_INC, 24);
  18329     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  18330     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  18331     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  18332     _flag_k = FK_DEC;
  18333     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  18334 L_361058DE:
  18335     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  18336     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  18337     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  18338 L_361058EC:
  18339     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  18340     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  18341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  18342     eax = eax + 1; /* 0x361058F2: inc eax */
  18343     _flag_k = FK_INC;
  18344     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  18345     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  18346     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  18347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18348     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  18349     _flag_k = FK_ADD;
  18350     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  18351     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18352     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  18353     _flag_k = FK_ADD;
  18354     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  18355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18356     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  18357     _flag_k = FK_ADD;
  18358     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  18359     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18360     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  18361     _flag_k = FK_ADD;
  18362     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  18363     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  18364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18365     _flag_k = FK_CMP;
  18366     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  18367     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  18368     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  18369     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  18370     RECOMP_BACKEDGE();
  18371     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  18372 L_3610591D:
  18373     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  18374     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  18375     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  18376     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18377     edx = 0; /* 0x36105929: xor edx, edx */
  18378     _cf = 0;
  18379     _flag_k = FK_TEST;
  18380     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  18381     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18382     _cf = 0;
  18383     _flag_k = FK_NARROW(FK_TEST, 24);
  18384     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  18385     PUSH32(esp, edx); /* 0x36105930: push edx */
  18386     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  18387     RECOMP_FLAGS_IN();
  18388     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  18389     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  18390     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  18391     esp = ebp; /* 0x3610593A: mov esp, ebp */
  18392     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  18393     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  18394     RECOMP_REGS_OUT();
  18395 }
  18396 
  18397 void sub_3610524B(void) {
  18398     int _fpu_cmp = 0;
  18399     uint32_t _cf = 0;
  18400     int _df = 1;
  18401     uint32_t _flag_k = FK_NONE;
  18402     uint32_t _flag_a = 0, _flag_b = 0;
  18403     uint32_t _itail_tgt = 0;
  18404     RECOMP_REGS_LOCALS
  18405     RECOMP_ENTER(0x3610524Bu);
  18406 
  18407     goto L_3610524B;
  18408 L_36104FDE:
  18409     edx = MEM32(ebp + (-0x28)); /* 0x36104FDE: mov edx, dword ptr [ebp - 0x28] */
  18410     esi = MEM32(ebp + (-0x14)); /* 0x36104FE1: mov esi, dword ptr [ebp - 0x14] */
  18411     eax = MEM32(edx + 0x4); /* 0x36104FE4: mov eax, dword ptr [edx + 4] */
  18412     eax = eax + eax * 2; /* 0x36104FE7: lea eax, [eax + eax*2] */
  18413     ecx = eax * 4 + 0x3630D5A8; /* 0x36104FEA: lea ecx, [eax*4 + 0x3630d5a8] */
  18414     eax = MEM32(edx); /* 0x36104FF1: mov eax, dword ptr [edx] */
  18415     eax = eax + eax * 2; /* 0x36104FF3: lea eax, [eax + eax*2] */
  18416     eax = eax * 4 + 0x3630D5A8; /* 0x36104FF6: lea eax, [eax*4 + 0x3630d5a8] */
  18417     edx = eax; /* 0x36104FFD: mov edx, eax */
  18418     edi = MEM32(edx); /* 0x36104FFF: mov edi, dword ptr [edx] */
  18419     MEM32(ebp + (-0xC)) = edi; /* 0x36105001: mov dword ptr [ebp - 0xc], edi */
  18420     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36105004: fld dword ptr [ebp - 0xc] */
  18421     _st[0] -= (double)*(float*)ADDR(ecx); /* 0x36105007: fsub dword ptr [ecx] */
  18422     edi = MEM32(edx + 0x4); /* 0x36105009: mov edi, dword ptr [edx + 4] */
  18423     edx = MEM32(edx + 0x8); /* 0x3610500C: mov edx, dword ptr [edx + 8] */
  18424     MEM32(ebp + (-0x8)) = edi; /* 0x3610500F: mov dword ptr [ebp - 8], edi */
  18425     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36105012: fstp dword ptr [ebp - 0xc] */
  18426     MEM32(ebp + (-0x4)) = edx; /* 0x36105015: mov dword ptr [ebp - 4], edx */
  18427     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36105018: fld dword ptr [ebp - 8] */
  18428     edi = MEM32(ebp + (-0xC)); /* 0x3610501B: mov edi, dword ptr [ebp - 0xc] */
  18429     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x3610501E: fsub dword ptr [ecx + 4] */
  18430     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36105021: fstp dword ptr [ebp - 8] */
  18431     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36105024: fld dword ptr [ebp - 4] */
  18432     _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x36105027: fsub dword ptr [ecx + 8] */
  18433     ecx = MEM32(ebp + (-0x10)); /* 0x3610502A: mov ecx, dword ptr [ebp - 0x10] */
  18434     ecx = ecx + 0x3630D518; /* 0x3610502D: lea ecx, [ecx + 0x3630d518] */
  18435     edx = ecx; /* 0x36105033: mov edx, ecx */
  18436     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36105035: fstp dword ptr [ebp - 4] */
  18437     MEM32(edx) = edi; /* 0x36105038: mov dword ptr [edx], edi */
  18438     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3610503A: fld dword ptr [ebp - 0xc] */
  18439     edi = MEM32(ebp + (-0x8)); /* 0x3610503D: mov edi, dword ptr [ebp - 8] */
  18440     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36105040: fmul dword ptr [ebp - 0xc] */
  18441     MEM32(edx + 0x4) = edi; /* 0x36105043: mov dword ptr [edx + 4], edi */
  18442     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36105046: fld dword ptr [ebp - 4] */
  18443     edi = MEM32(ebp + (-0x4)); /* 0x36105049: mov edi, dword ptr [ebp - 4] */
  18444     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3610504C: fmul dword ptr [ebp - 4] */
  18445     MEM32(edx + 0x8) = edi; /* 0x3610504F: mov dword ptr [edx + 8], edi */
  18446     edi = MEM32(eax); /* 0x36105052: mov edi, dword ptr [eax] */
  18447     edx = MEM32(ebp + (-0x10)); /* 0x36105054: mov edx, dword ptr [ebp - 0x10] */
  18448     { double _v = fp_pop(); _st[0] += _v; } /* 0x36105057: faddp st(1) */
  18449     edx = edx + 0x3630D560; /* 0x36105059: lea edx, [edx + 0x3630d560] */
  18450     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3610505F: fld dword ptr [ebp - 8] */
  18451     MEM32(edx) = edi; /* 0x36105062: mov dword ptr [edx], edi */
  18452     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36105064: fmul dword ptr [ebp - 8] */
  18453     edi = MEM32(eax + 0x4); /* 0x36105067: mov edi, dword ptr [eax + 4] */
  18454     eax = MEM32(eax + 0x8); /* 0x3610506A: mov eax, dword ptr [eax + 8] */
  18455     MEM32(edx + 0x4) = edi; /* 0x3610506D: mov dword ptr [edx + 4], edi */
  18456     { double _v = fp_pop(); _st[0] += _v; } /* 0x36105070: faddp st(1) */
  18457     MEM32(edx + 0x8) = eax; /* 0x36105072: mov dword ptr [edx + 8], eax */
  18458     eax = MEM32(esi + 0x362E4E90); /* 0x36105075: mov eax, dword ptr [esi + 0x362e4e90] */
  18459     edx = eax + eax * 2; /* 0x3610507B: lea edx, [eax + eax*2] */
  18460     _st[0] = sqrt(_st[0]); /* 0x3610507E: fsqrt  */
  18461     PUSH32(esp, ecx); /* 0x36105080: push ecx */
  18462     eax = ebp + (-0x164); /* 0x36105081: lea eax, [ebp - 0x164] */
  18463     PUSH32(esp, eax); /* 0x36105087: push eax */
  18464     MEM32(ebp + (-0x154)) = 0x3F800000u; /* 0x36105088: mov dword ptr [ebp - 0x154], 0x3f800000 */
  18465     MEM32(ebp + (-0x150)) = 0; /* 0x36105092: mov dword ptr [ebp - 0x150], 0 */
  18466     MEM32(ebp + (-0x14C)) = 0; /* 0x3610509C: mov dword ptr [ebp - 0x14c], 0 */
  18467     MEM32(ebp + (-0x148)) = 0; /* 0x361050A6: mov dword ptr [ebp - 0x148], 0 */
  18468     MEM32(ebp + (-0x144)) = 0x3F800000u; /* 0x361050B0: mov dword ptr [ebp - 0x144], 0x3f800000 */
  18469     MEM32(ebp + (-0x140)) = 0; /* 0x361050BA: mov dword ptr [ebp - 0x140], 0 */
  18470     MEM32(ebp + (-0x13C)) = 0; /* 0x361050C4: mov dword ptr [ebp - 0x13c], 0 */
  18471     MEM32(ebp + (-0x138)) = 0; /* 0x361050CE: mov dword ptr [ebp - 0x138], 0 */
  18472     MEM32(ebp + (-0x134)) = 0x3F800000u; /* 0x361050D8: mov dword ptr [ebp - 0x134], 0x3f800000 */
  18473     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3630D500) = _v; } /* 0x361050E2: fstp dword ptr [esi + 0x3630d500] */
  18474     esi = ebp + edx * 4 + (-0x130); /* 0x361050E8: lea esi, [ebp + edx*4 - 0x130] */
  18475     ecx = esi; /* 0x361050EF: mov ecx, esi */
  18476     RECOMP_ICALL(MEM32(0x36170180)); /* 0x361050F1: call dword ptr [0x36170180] */
  18477     RECOMP_FLAGS_IN();
  18478     ecx = MEM32(eax); /* 0x361050F7: mov ecx, dword ptr [eax] */
  18479     MEM32(ebp + (-0x20)) = ecx; /* 0x361050F9: mov dword ptr [ebp - 0x20], ecx */
  18480     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361050FC: fld dword ptr [ebp - 0x20] */
  18481     edx = MEM32(eax + 0x4); /* 0x361050FF: mov edx, dword ptr [eax + 4] */
  18482     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36105102: fcomp dword ptr [0x3617040c] */
  18483     fp_pop();
  18484     MEM32(ebp + (-0x1C)) = edx; /* 0x36105108: mov dword ptr [ebp - 0x1c], edx */
  18485     eax = MEM32(eax + 0x8); /* 0x3610510B: mov eax, dword ptr [eax + 8] */
  18486     MEM32(ebp + (-0x18)) = eax; /* 0x3610510E: mov dword ptr [ebp - 0x18], eax */
  18487     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105111: fnstsw ax */
  18488     /* test HI8(eax), 0x40u */ /* 0x36105113: test ah, 0x40 */
  18489     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  18490     _cf = 0;
  18491     _flag_k = FK_NARROW(FK_TEST, 24);
  18492     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105116: je 0x36105178 */
  18493 L_36105118:
  18494     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105118: fld dword ptr [ebp - 0x1c] */
  18495     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610511B: fcomp dword ptr [0x3617040c] */
  18496     fp_pop();
  18497     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105121: fnstsw ax */
  18498     /* test HI8(eax), 0x40u */ /* 0x36105123: test ah, 0x40 */
  18499     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  18500     _cf = 0;
  18501     _flag_k = FK_NARROW(FK_TEST, 24);
  18502     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105126: je 0x36105178 */
  18503 L_36105128:
  18504     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36105128: fld dword ptr [ebp - 0x18] */
  18505     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610512B: fcomp dword ptr [0x3617040c] */
  18506     fp_pop();
  18507     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105131: fnstsw ax */
  18508     /* test HI8(eax), 0x40u */ /* 0x36105133: test ah, 0x40 */
  18509     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  18510     _cf = 0;
  18511     _flag_k = FK_NARROW(FK_TEST, 24);
  18512     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105136: je 0x36105178 */
  18513 L_36105138:
  18514     fp_push(*(float*)&MEM32(esi)); /* 0x36105138: fld dword ptr [esi] */
  18515     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610513A: fcomp dword ptr [0x3617040c] */
  18516     fp_pop();
  18517     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105140: fnstsw ax */
  18518     /* test HI8(eax), 0x40u */ /* 0x36105142: test ah, 0x40 */
  18519     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  18520     _cf = 0;
  18521     _flag_k = FK_NARROW(FK_TEST, 24);
  18522     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105145: je 0x36105178 */
  18523 L_36105147:
  18524     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x36105147: fld dword ptr [esi + 4] */
  18525     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610514A: fcomp dword ptr [0x3617040c] */
  18526     fp_pop();
  18527     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105150: fnstsw ax */
  18528     /* test HI8(eax), 0x40u */ /* 0x36105152: test ah, 0x40 */
  18529     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  18530     _cf = 0;
  18531     _flag_k = FK_NARROW(FK_TEST, 24);
  18532     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105155: je 0x36105178 */
  18533 L_36105157:
  18534     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36105157: fld dword ptr [esi + 8] */
  18535     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3610515A: fcomp dword ptr [0x3617040c] */
  18536     fp_pop();
  18537     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36105160: fnstsw ax */
  18538     /* test HI8(eax), 0x40u */ /* 0x36105162: test ah, 0x40 */
  18539     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  18540     _cf = 0;
  18541     _flag_k = FK_NARROW(FK_TEST, 24);
  18542     if (TEST_Z(_flag_a, _flag_b)) goto L_36105178; /* 0x36105165: je 0x36105178 */
  18543 L_36105167:
  18544     ecx = ebp + (-0x154); /* 0x36105167: lea ecx, [ebp - 0x154] */
  18545     RECOMP_ICALL(MEM32(0x361701F4)); /* 0x3610516D: call dword ptr [0x361701f4] */
  18546     RECOMP_FLAGS_IN();
  18547     goto L_3610524B; /* 0x36105173: jmp 0x3610524b */
  18548 L_36105178:
  18549     PUSH32(esp, 0x3F800000u); /* 0x36105178: push 0x3f800000 */
  18550     ecx = ebp + (-0xDC); /* 0x3610517D: lea ecx, [ebp - 0xdc] */
  18551     PUSH32(esp, ecx); /* 0x36105183: push ecx */
  18552     ecx = ebp + (-0x20); /* 0x36105184: lea ecx, [ebp - 0x20] */
  18553     RECOMP_ICALL(MEM32(0x361701F0)); /* 0x36105187: call dword ptr [0x361701f0] */
  18554     RECOMP_FLAGS_IN();
  18555     edx = MEM32(eax); /* 0x3610518D: mov edx, dword ptr [eax] */
  18556     MEM32(ebp + (-0x20)) = edx; /* 0x3610518F: mov dword ptr [ebp - 0x20], edx */
  18557     ecx = MEM32(eax + 0x4); /* 0x36105192: mov ecx, dword ptr [eax + 4] */
  18558     MEM32(ebp + (-0x1C)) = ecx; /* 0x36105195: mov dword ptr [ebp - 0x1c], ecx */
  18559     edx = MEM32(eax + 0x8); /* 0x36105198: mov edx, dword ptr [eax + 8] */
  18560     PUSH32(esp, 0x3F800000u); /* 0x3610519B: push 0x3f800000 */
  18561     eax = ebp + (-0xB4); /* 0x361051A0: lea eax, [ebp - 0xb4] */
  18562     PUSH32(esp, eax); /* 0x361051A6: push eax */
  18563     ecx = esi; /* 0x361051A7: mov ecx, esi */
  18564     MEM32(ebp + (-0x18)) = edx; /* 0x361051A9: mov dword ptr [ebp - 0x18], edx */
  18565     RECOMP_ICALL(MEM32(0x361701F0)); /* 0x361051AC: call dword ptr [0x361701f0] */
  18566     RECOMP_FLAGS_IN();
  18567     ecx = MEM32(eax); /* 0x361051B2: mov ecx, dword ptr [eax] */
  18568     MEM32(ebp + (-0x80)) = ecx; /* 0x361051B4: mov dword ptr [ebp - 0x80], ecx */
  18569     edx = MEM32(eax + 0x4); /* 0x361051B7: mov edx, dword ptr [eax + 4] */
  18570     MEM32(ebp + (-0x7C)) = edx; /* 0x361051BA: mov dword ptr [ebp - 0x7c], edx */
  18571     eax = MEM32(eax + 0x8); /* 0x361051BD: mov eax, dword ptr [eax + 8] */
  18572     ecx = ebp + (-0x20); /* 0x361051C0: lea ecx, [ebp - 0x20] */
  18573     PUSH32(esp, ecx); /* 0x361051C3: push ecx */
  18574     edx = ebp + (-0xD0); /* 0x361051C4: lea edx, [ebp - 0xd0] */
  18575     PUSH32(esp, edx); /* 0x361051CA: push edx */
  18576     ecx = ebp + (-0x80); /* 0x361051CB: lea ecx, [ebp - 0x80] */
  18577     MEM32(ebp + (-0x78)) = eax; /* 0x361051CE: mov dword ptr [ebp - 0x78], eax */
  18578     RECOMP_ICALL(MEM32(0x36170180)); /* 0x361051D1: call dword ptr [0x36170180] */
  18579     RECOMP_FLAGS_IN();
  18580     ecx = MEM32(eax); /* 0x361051D7: mov ecx, dword ptr [eax] */
  18581     edx = MEM32(eax + 0x4); /* 0x361051D9: mov edx, dword ptr [eax + 4] */
  18582     eax = MEM32(eax + 0x8); /* 0x361051DC: mov eax, dword ptr [eax + 8] */
  18583     MEM32(ebp + (-0xA8)) = ecx; /* 0x361051DF: mov dword ptr [ebp - 0xa8], ecx */
  18584     ecx = MEM32(ebp + (-0x20)); /* 0x361051E5: mov ecx, dword ptr [ebp - 0x20] */
  18585     MEM32(ebp + (-0xA4)) = edx; /* 0x361051E8: mov dword ptr [ebp - 0xa4], edx */
  18586     edx = MEM32(ebp + (-0x1C)); /* 0x361051EE: mov edx, dword ptr [ebp - 0x1c] */
  18587     MEM32(ebp + (-0xA0)) = eax; /* 0x361051F1: mov dword ptr [ebp - 0xa0], eax */
  18588     eax = MEM32(ebp + (-0x18)); /* 0x361051F7: mov eax, dword ptr [ebp - 0x18] */
  18589     MEM32(ebp + (-0x154)) = ecx; /* 0x361051FA: mov dword ptr [ebp - 0x154], ecx */
  18590     ecx = MEM32(ebp + (-0xA8)); /* 0x36105200: mov ecx, dword ptr [ebp - 0xa8] */
  18591     MEM32(ebp + (-0x148)) = edx; /* 0x36105206: mov dword ptr [ebp - 0x148], edx */
  18592     edx = MEM32(ebp + (-0xA4)); /* 0x3610520C: mov edx, dword ptr [ebp - 0xa4] */
  18593     MEM32(ebp + (-0x13C)) = eax; /* 0x36105212: mov dword ptr [ebp - 0x13c], eax */
  18594     eax = MEM32(ebp + (-0xA0)); /* 0x36105218: mov eax, dword ptr [ebp - 0xa0] */
  18595     MEM32(ebp + (-0x150)) = ecx; /* 0x3610521E: mov dword ptr [ebp - 0x150], ecx */
  18596     ecx = MEM32(ebp + (-0x80)); /* 0x36105224: mov ecx, dword ptr [ebp - 0x80] */
  18597     MEM32(ebp + (-0x144)) = edx; /* 0x36105227: mov dword ptr [ebp - 0x144], edx */
  18598     edx = MEM32(ebp + (-0x7C)); /* 0x3610522D: mov edx, dword ptr [ebp - 0x7c] */
  18599     MEM32(ebp + (-0x138)) = eax; /* 0x36105230: mov dword ptr [ebp - 0x138], eax */
  18600     eax = MEM32(ebp + (-0x78)); /* 0x36105236: mov eax, dword ptr [ebp - 0x78] */
  18601     MEM32(ebp + (-0x14C)) = ecx; /* 0x36105239: mov dword ptr [ebp - 0x14c], ecx */
  18602     MEM32(ebp + (-0x140)) = edx; /* 0x3610523F: mov dword ptr [ebp - 0x140], edx */
  18603     MEM32(ebp + (-0x134)) = eax; /* 0x36105245: mov dword ptr [ebp - 0x134], eax */
  18604 L_3610524B:
  18605     edi = MEM32(ebp + (-0x24)); /* 0x3610524B: mov edi, dword ptr [ebp - 0x24] */
  18606     ecx = 9; /* 0x3610524E: mov ecx, 9 */
  18607     esi = ebp + (-0x154); /* 0x36105253: lea esi, [ebp - 0x154] */
  18608     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105259: 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; }
  18609     esi = MEM32(ebp + (-0x24)); /* 0x3610525B: mov esi, dword ptr [ebp - 0x24] */
  18610     ecx = esi; /* 0x3610525E: mov ecx, esi */
  18611     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105260: call dword ptr [0x361701f8] */
  18612     RECOMP_FLAGS_IN();
  18613     eax = MEM32(ebp + (-0x28)); /* 0x36105266: mov eax, dword ptr [ebp - 0x28] */
  18614     ecx = MEM32(ebp + (-0x14)); /* 0x36105269: mov ecx, dword ptr [ebp - 0x14] */
  18615     edi = MEM32(ebp + (-0x10)); /* 0x3610526C: mov edi, dword ptr [ebp - 0x10] */
  18616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
  18617     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18618     eax = eax + 8; /* 0x3610526F: add eax, 8 */
  18619     _flag_k = FK_ADD;
  18620     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  18621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18622     ecx = ecx + 4; /* 0x36105272: add ecx, 4 */
  18623     _flag_k = FK_ADD;
  18624     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
  18625     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18626     edi = edi + 0xCu; /* 0x36105275: add edi, 0xc */
  18627     _flag_k = FK_ADD;
  18628     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
  18629     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18630     esi = esi + 0x24u; /* 0x36105278: add esi, 0x24 */
  18631     _flag_k = FK_ADD;
  18632     /* cmp eax, 0x362E4E90u */ /* 0x3610527B: cmp eax, 0x362e4e90 */
  18633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x362E4E90u);
  18634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18635     _flag_k = FK_CMP;
  18636     MEM32(ebp + (-0x28)) = eax; /* 0x36105280: mov dword ptr [ebp - 0x28], eax */
  18637     MEM32(ebp + (-0x14)) = ecx; /* 0x36105283: mov dword ptr [ebp - 0x14], ecx */
  18638     MEM32(ebp + (-0x10)) = edi; /* 0x36105286: mov dword ptr [ebp - 0x10], edi */
  18639     MEM32(ebp + (-0x24)) = esi; /* 0x36105289: mov dword ptr [ebp - 0x24], esi */
  18640     RECOMP_BACKEDGE();
  18641     if (CMP_L(_flag_a, _flag_b)) goto L_36104FDE; /* 0x3610528C: jl 0x36104fde */
  18642 L_36105292:
  18643     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  18644     ecx = 0; /* 0x36105292: xor ecx, ecx */
  18645     _cf = 0;
  18646     _flag_k = FK_TEST;
  18647     edi = ebx + 0xD2C; /* 0x36105294: lea edi, [ebx + 0xd2c] */
  18648     edx = ebx + 0x32C; /* 0x3610529A: lea edx, [ebx + 0x32c] */
  18649     esi = ebx + 0x34; /* 0x361052A0: lea esi, [ebx + 0x34] */
  18650     MEM32(ebp + (-0x14)) = ecx; /* 0x361052A3: mov dword ptr [ebp - 0x14], ecx */
  18651     MEM32(ebp + (-0x30)) = ecx; /* 0x361052A6: mov dword ptr [ebp - 0x30], ecx */
  18652     MEM32(ebp + (-0x24)) = edi; /* 0x361052A9: mov dword ptr [ebp - 0x24], edi */
  18653     MEM32(ebp + (-0x28)) = edx; /* 0x361052AC: mov dword ptr [ebp - 0x28], edx */
  18654     MEM32(ebp + (-0x2C)) = esi; /* 0x361052AF: mov dword ptr [ebp - 0x2c], esi */
  18655 L_361052B2:
  18656     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  18657     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  18658     fp_pop();
  18659     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  18660     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  18661     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  18662     _cf = 0;
  18663     _flag_k = FK_NARROW(FK_TEST, 24);
  18664     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  18665 L_361052C2:
  18666     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  18667     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  18668     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  18669     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  18670     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  18671     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  18672     RECOMP_FLAGS_IN();
  18673     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  18674     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  18675     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  18676     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  18677     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  18678     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  18679     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  18680     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  18681     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  18682     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  18683     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  18684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18685     _flag_k = FK_CMP;
  18686     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  18687 L_3610530A:
  18688     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  18689     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  18690     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  18691     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  18692 L_3610531B:
  18693     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  18694     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  18695     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  18696     PUSH32(esp, eax); /* 0x3610532C: push eax */
  18697     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  18698     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  18699     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  18700     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  18701     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  18702     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  18703     RECOMP_FLAGS_IN();
  18704     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  18705     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  18706     fp_pop();
  18707     esi = eax; /* 0x3610534C: mov esi, eax */
  18708     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  18709     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  18710     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  18711     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  18712     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  18713     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  18714     _cf = 0;
  18715     _flag_k = FK_NARROW(FK_TEST, 24);
  18716     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  18717 L_36105362:
  18718     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  18719     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  18720 L_3610536A:
  18721     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  18722     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  18723 L_36105373:
  18724     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  18725     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  18726     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  18727     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  18728     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  18729     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  18730     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  18731     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  18732     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  18733     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  18734     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  18735     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  18736     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  18737     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  18738     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  18739     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  18740     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  18741     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  18742     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  18743     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  18744     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  18745     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  18746     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  18747     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  18748     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  18749     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  18750     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  18751     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  18752     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  18753     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  18754     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  18755     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  18756     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  18757     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  18758     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  18759     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  18760     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  18761     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  18762     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  18763     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18764     _cf = 0;
  18765     _flag_k = FK_NARROW(FK_TEST, 24);
  18766     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  18767     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  18768     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  18769     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  18770     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  18771     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  18772     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  18773 L_3610541F:
  18774     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  18775     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  18776     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  18777     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  18778     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  18779     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  18780     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  18781     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  18782     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  18783     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  18784     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  18785     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  18786     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  18787     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  18788 L_3610545E:
  18789     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  18790     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  18791     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  18792     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  18793     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  18794     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  18795     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  18796     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  18797     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  18798     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  18799     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  18800     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  18801     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  18802     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  18803     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  18804     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  18805     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  18806     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  18807     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  18808     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  18809     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  18810     RECOMP_FLAGS_IN();
  18811     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  18812     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  18813     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  18814     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  18815     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  18816     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  18817     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  18818     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  18819     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  18820     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  18821     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  18822     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  18823     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  18824     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  18825     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  18826     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  18827     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  18828     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  18829     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  18830     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  18831     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  18832     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  18833     edx = esi; /* 0x36105509: mov edx, esi */
  18834     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  18835     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18836     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  18837     _flag_k = FK_ADD;
  18838     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  18839     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  18840     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  18841     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  18842     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  18843     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  18844     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  18845     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  18846     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  18847     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  18848     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  18849     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  18850     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  18851     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  18852     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  18853     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  18854     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  18855     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  18856     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  18857     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  18858     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  18859     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  18860     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  18861     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  18862     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  18863     PUSH32(esp, edx); /* 0x36105563: push edx */
  18864     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  18865     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  18866     RECOMP_FLAGS_IN();
  18867     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  18868     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  18869     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  18870     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  18871     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  18872     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  18873     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  18874     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  18875     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  18876     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  18877 L_36105593:
  18878     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  18879     /* test eax, eax */ /* 0x36105596: test eax, eax */
  18880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  18881     _cf = 0;
  18882     _flag_k = FK_TEST;
  18883     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  18884 L_3610559E:
  18885     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  18886     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  18887     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  18888     _cf = 0;
  18889     _flag_k = FK_NARROW(FK_TEST, 24);
  18890     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  18891 L_361055AC:
  18892     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  18893     PUSH32(esp, edi); /* 0x361055AF: push edi */
  18894     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  18895     RECOMP_FLAGS_IN();
  18896     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  18897     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18898     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  18899     _flag_k = FK_ADD;
  18900     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  18901     RECOMP_FLAGS_IN();
  18902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  18903     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  18904     _cf = 0;
  18905     _flag_k = FK_TEST;
  18906     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  18907     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  18908     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  18909     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  18910     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  18911     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  18912     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  18913     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  18914     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  18915     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  18916     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  18917     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  18918     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  18919     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  18920     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  18921     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  18922     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  18923     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  18924     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18925     _cf = 0;
  18926     _flag_k = FK_NARROW(FK_TEST, 24);
  18927     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  18928 L_36105628:
  18929     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  18930     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  18931     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  18932     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  18933     _cf = 0;
  18934     _flag_k = FK_NARROW(FK_TEST, 24);
  18935     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  18936 L_36105635:
  18937     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  18938     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  18939 L_3610563D:
  18940     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  18941     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  18942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  18943     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  18944     _flag_k = FK_CMP;
  18945     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  18946     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  18947     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  18948     RECOMP_FLAGS_IN();
  18949     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  18950     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  18951     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  18952     esp = esp + 8; /* 0x36105655: add esp, 8 */
  18953     _flag_k = FK_ADD;
  18954     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  18955 L_3610565E:
  18956     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  18957     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  18958     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  18959     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  18960     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  18961     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  18962     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  18963     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  18964     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  18965     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  18966     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  18967     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  18968     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  18969     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  18970     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  18971     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  18972     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  18973     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  18974     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  18975     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  18976     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  18977     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  18978     RECOMP_FLAGS_IN();
  18979     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  18980     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  18981     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  18982     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  18983     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  18984     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  18985     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  18986     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  18987     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  18988     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  18989     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  18990     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  18991     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  18992     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  18993     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  18994     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  18995     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  18996     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  18997     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  18998     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  18999     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  19000     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  19001     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  19002     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  19003     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  19004     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  19005     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  19006     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  19007     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  19008     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  19009     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  19010     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  19011     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  19012     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  19013     PUSH32(esp, eax); /* 0x36105739: push eax */
  19014     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  19015     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  19016     RECOMP_FLAGS_IN();
  19017     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  19018     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  19019     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  19020     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  19021     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  19022     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  19023     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  19024     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  19025     PUSH32(esp, eax); /* 0x36105769: push eax */
  19026     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  19027     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  19028     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  19029     RECOMP_FLAGS_IN();
  19030     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  19031     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  19032     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  19033     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  19034     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  19035     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  19036     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  19037     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  19038     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  19039     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  19040     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  19041     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  19042     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  19043     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  19044     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  19045     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  19046     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  19047     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  19048     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  19049     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  19050     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  19051     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  19052     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  19053     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  19054     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  19055     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  19056     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  19057     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  19058     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  19059     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  19060     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  19061     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  19062     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  19063     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  19064     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  19065     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  19066     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  19067     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  19068     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  19069     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  19070     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  19071     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  19072     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  19073     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  19074     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  19075     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  19076     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  19077     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  19078     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  19079     ecx = 9; /* 0x36105845: mov ecx, 9 */
  19080     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  19081     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  19082     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  19083     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  19084     RECOMP_FLAGS_IN();
  19085     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  19086     ecx = 9; /* 0x36105861: mov ecx, 9 */
  19087     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  19088     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  19089     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  19090     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  19091     RECOMP_FLAGS_IN();
  19092     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  19093     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  19094     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  19095     _cf = 0;
  19096     _flag_k = FK_TEST;
  19097     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  19098     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  19099     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  19100     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  19101     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  19102     RECOMP_FLAGS_IN();
  19103     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  19104     ecx = 6; /* 0x36105890: mov ecx, 6 */
  19105     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  19106       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  19107       else { eax = 0; edx = 0; } }
  19108     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  19109     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  19110     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  19111     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  19112     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  19113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19114     _flag_k = FK_CMP;
  19115     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  19116 L_361058AB:
  19117     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  19118 L_361058B1:
  19119     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  19120     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  19121     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  19122     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  19123     RECOMP_FLAGS_IN();
  19124     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  19125     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  19126     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  19127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  19128     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  19129     _cf = 0;
  19130     _flag_k = FK_TEST;
  19131     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19132     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  19133     _flag_k = FK_NARROW(FK_DEC, 24);
  19134     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19135     _cf = (LO8(eax)) != 0;
  19136     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  19137     _flag_k = FK_NARROW(FK_CMP, 24);
  19138     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  19139       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  19140       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  19141       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  19142     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19143     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  19144     _flag_k = FK_NARROW(FK_INC, 24);
  19145     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  19146     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  19147     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  19148     _flag_k = FK_DEC;
  19149     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  19150 L_361058DE:
  19151     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  19152     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  19153     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  19154 L_361058EC:
  19155     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  19156     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  19157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  19158     eax = eax + 1; /* 0x361058F2: inc eax */
  19159     _flag_k = FK_INC;
  19160     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  19161     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  19162     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  19163     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19164     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  19165     _flag_k = FK_ADD;
  19166     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  19167     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19168     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  19169     _flag_k = FK_ADD;
  19170     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  19171     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19172     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  19173     _flag_k = FK_ADD;
  19174     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  19175     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19176     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  19177     _flag_k = FK_ADD;
  19178     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  19179     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  19180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19181     _flag_k = FK_CMP;
  19182     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  19183     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  19184     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  19185     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  19186     RECOMP_BACKEDGE();
  19187     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  19188 L_3610591D:
  19189     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  19190     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  19191     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  19192     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19193     edx = 0; /* 0x36105929: xor edx, edx */
  19194     _cf = 0;
  19195     _flag_k = FK_TEST;
  19196     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  19197     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19198     _cf = 0;
  19199     _flag_k = FK_NARROW(FK_TEST, 24);
  19200     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  19201     PUSH32(esp, edx); /* 0x36105930: push edx */
  19202     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  19203     RECOMP_FLAGS_IN();
  19204     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  19205     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  19206     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  19207     esp = ebp; /* 0x3610593A: mov esp, ebp */
  19208     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  19209     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  19210     RECOMP_REGS_OUT();
  19211 }
  19212 
  19213 void sub_361052B2(void) {
  19214     int _fpu_cmp = 0;
  19215     uint32_t _cf = 0;
  19216     int _df = 1;
  19217     uint32_t _flag_k = FK_NONE;
  19218     uint32_t _flag_a = 0, _flag_b = 0;
  19219     uint32_t _itail_tgt = 0;
  19220     RECOMP_REGS_LOCALS
  19221     RECOMP_ENTER(0x361052B2u);
  19222 
  19223 L_361052B2:
  19224     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  19225     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  19226     fp_pop();
  19227     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  19228     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  19229     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  19230     _cf = 0;
  19231     _flag_k = FK_NARROW(FK_TEST, 24);
  19232     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  19233 L_361052C2:
  19234     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  19235     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  19236     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  19237     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  19238     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  19239     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  19240     RECOMP_FLAGS_IN();
  19241     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  19242     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  19243     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  19244     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  19245     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  19246     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  19247     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  19248     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  19249     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  19250     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  19251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  19252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19253     _flag_k = FK_CMP;
  19254     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  19255 L_3610530A:
  19256     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  19257     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  19258     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  19259     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  19260 L_3610531B:
  19261     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  19262     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  19263     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  19264     PUSH32(esp, eax); /* 0x3610532C: push eax */
  19265     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  19266     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  19267     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  19268     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  19269     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  19270     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  19271     RECOMP_FLAGS_IN();
  19272     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  19273     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  19274     fp_pop();
  19275     esi = eax; /* 0x3610534C: mov esi, eax */
  19276     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  19277     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  19278     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  19279     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  19280     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  19281     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  19282     _cf = 0;
  19283     _flag_k = FK_NARROW(FK_TEST, 24);
  19284     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  19285 L_36105362:
  19286     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  19287     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  19288 L_3610536A:
  19289     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  19290     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  19291 L_36105373:
  19292     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  19293     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  19294     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  19295     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  19296     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  19297     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  19298     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  19299     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  19300     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  19301     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  19302     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  19303     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  19304     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  19305     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  19306     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  19307     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  19308     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  19309     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  19310     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  19311     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  19312     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  19313     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  19314     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  19315     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  19316     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  19317     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  19318     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  19319     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  19320     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  19321     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  19322     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  19323     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  19324     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  19325     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  19326     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  19327     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  19328     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  19329     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  19330     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  19331     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19332     _cf = 0;
  19333     _flag_k = FK_NARROW(FK_TEST, 24);
  19334     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  19335     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  19336     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  19337     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  19338     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  19339     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  19340     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  19341 L_3610541F:
  19342     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  19343     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  19344     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  19345     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  19346     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  19347     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  19348     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  19349     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  19350     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  19351     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  19352     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  19353     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  19354     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  19355     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  19356 L_3610545E:
  19357     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  19358     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  19359     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  19360     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  19361     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  19362     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  19363     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  19364     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  19365     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  19366     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  19367     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  19368     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  19369     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  19370     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  19371     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  19372     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  19373     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  19374     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  19375     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  19376     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  19377     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  19378     RECOMP_FLAGS_IN();
  19379     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  19380     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  19381     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  19382     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  19383     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  19384     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  19385     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  19386     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  19387     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  19388     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  19389     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  19390     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  19391     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  19392     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  19393     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  19394     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  19395     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  19396     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  19397     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  19398     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  19399     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  19400     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  19401     edx = esi; /* 0x36105509: mov edx, esi */
  19402     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  19403     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19404     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  19405     _flag_k = FK_ADD;
  19406     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  19407     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  19408     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  19409     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  19410     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  19411     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  19412     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  19413     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  19414     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  19415     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  19416     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  19417     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  19418     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  19419     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  19420     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  19421     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  19422     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  19423     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  19424     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  19425     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  19426     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  19427     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  19428     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  19429     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  19430     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  19431     PUSH32(esp, edx); /* 0x36105563: push edx */
  19432     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  19433     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  19434     RECOMP_FLAGS_IN();
  19435     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  19436     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  19437     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  19438     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  19439     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  19440     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  19441     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  19442     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  19443     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  19444     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  19445 L_36105593:
  19446     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  19447     /* test eax, eax */ /* 0x36105596: test eax, eax */
  19448     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  19449     _cf = 0;
  19450     _flag_k = FK_TEST;
  19451     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  19452 L_3610559E:
  19453     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  19454     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  19455     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19456     _cf = 0;
  19457     _flag_k = FK_NARROW(FK_TEST, 24);
  19458     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  19459 L_361055AC:
  19460     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  19461     PUSH32(esp, edi); /* 0x361055AF: push edi */
  19462     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  19463     RECOMP_FLAGS_IN();
  19464     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  19465     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19466     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  19467     _flag_k = FK_ADD;
  19468     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  19469     RECOMP_FLAGS_IN();
  19470     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  19471     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  19472     _cf = 0;
  19473     _flag_k = FK_TEST;
  19474     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  19475     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  19476     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  19477     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  19478     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  19479     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  19480     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  19481     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  19482     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  19483     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  19484     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  19485     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  19486     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  19487     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  19488     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  19489     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  19490     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  19491     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  19492     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19493     _cf = 0;
  19494     _flag_k = FK_NARROW(FK_TEST, 24);
  19495     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  19496 L_36105628:
  19497     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  19498     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  19499     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  19500     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19501     _cf = 0;
  19502     _flag_k = FK_NARROW(FK_TEST, 24);
  19503     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  19504 L_36105635:
  19505     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  19506     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  19507 L_3610563D:
  19508     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  19509     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  19510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19511     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  19512     _flag_k = FK_CMP;
  19513     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  19514     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  19515     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  19516     RECOMP_FLAGS_IN();
  19517     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  19518     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  19519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19520     esp = esp + 8; /* 0x36105655: add esp, 8 */
  19521     _flag_k = FK_ADD;
  19522     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  19523 L_3610565E:
  19524     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  19525     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  19526     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  19527     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  19528     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  19529     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  19530     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  19531     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  19532     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  19533     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  19534     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  19535     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  19536     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  19537     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  19538     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  19539     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  19540     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  19541     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  19542     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  19543     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  19544     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  19545     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  19546     RECOMP_FLAGS_IN();
  19547     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  19548     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  19549     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  19550     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  19551     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  19552     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  19553     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  19554     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  19555     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  19556     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  19557     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  19558     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  19559     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  19560     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  19561     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  19562     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  19563     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  19564     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  19565     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  19566     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  19567     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  19568     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  19569     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  19570     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  19571     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  19572     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  19573     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  19574     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  19575     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  19576     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  19577     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  19578     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  19579     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  19580     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  19581     PUSH32(esp, eax); /* 0x36105739: push eax */
  19582     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  19583     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  19584     RECOMP_FLAGS_IN();
  19585     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  19586     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  19587     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  19588     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  19589     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  19590     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  19591     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  19592     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  19593     PUSH32(esp, eax); /* 0x36105769: push eax */
  19594     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  19595     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  19596     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  19597     RECOMP_FLAGS_IN();
  19598     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  19599     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  19600     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  19601     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  19602     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  19603     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  19604     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  19605     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  19606     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  19607     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  19608     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  19609     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  19610     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  19611     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  19612     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  19613     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  19614     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  19615     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  19616     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  19617     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  19618     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  19619     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  19620     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  19621     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  19622     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  19623     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  19624     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  19625     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  19626     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  19627     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  19628     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  19629     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  19630     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  19631     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  19632     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  19633     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  19634     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  19635     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  19636     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  19637     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  19638     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  19639     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  19640     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  19641     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  19642     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  19643     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  19644     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  19645     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  19646     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  19647     ecx = 9; /* 0x36105845: mov ecx, 9 */
  19648     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  19649     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  19650     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  19651     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  19652     RECOMP_FLAGS_IN();
  19653     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  19654     ecx = 9; /* 0x36105861: mov ecx, 9 */
  19655     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  19656     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  19657     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  19658     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  19659     RECOMP_FLAGS_IN();
  19660     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  19661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  19662     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  19663     _cf = 0;
  19664     _flag_k = FK_TEST;
  19665     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  19666     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  19667     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  19668     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  19669     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  19670     RECOMP_FLAGS_IN();
  19671     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  19672     ecx = 6; /* 0x36105890: mov ecx, 6 */
  19673     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  19674       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  19675       else { eax = 0; edx = 0; } }
  19676     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  19677     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  19678     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  19679     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  19680     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  19681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19682     _flag_k = FK_CMP;
  19683     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  19684 L_361058AB:
  19685     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  19686 L_361058B1:
  19687     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  19688     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  19689     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  19690     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  19691     RECOMP_FLAGS_IN();
  19692     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  19693     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  19694     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  19695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  19696     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  19697     _cf = 0;
  19698     _flag_k = FK_TEST;
  19699     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19700     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  19701     _flag_k = FK_NARROW(FK_DEC, 24);
  19702     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19703     _cf = (LO8(eax)) != 0;
  19704     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  19705     _flag_k = FK_NARROW(FK_CMP, 24);
  19706     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  19707       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  19708       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  19709       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  19710     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  19711     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  19712     _flag_k = FK_NARROW(FK_INC, 24);
  19713     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  19714     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  19715     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  19716     _flag_k = FK_DEC;
  19717     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  19718 L_361058DE:
  19719     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  19720     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  19721     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  19722 L_361058EC:
  19723     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  19724     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  19725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  19726     eax = eax + 1; /* 0x361058F2: inc eax */
  19727     _flag_k = FK_INC;
  19728     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  19729     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  19730     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  19731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19732     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  19733     _flag_k = FK_ADD;
  19734     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  19735     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19736     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  19737     _flag_k = FK_ADD;
  19738     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  19739     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19740     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  19741     _flag_k = FK_ADD;
  19742     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  19743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19744     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  19745     _flag_k = FK_ADD;
  19746     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  19747     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  19748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19749     _flag_k = FK_CMP;
  19750     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  19751     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  19752     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  19753     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  19754     RECOMP_BACKEDGE();
  19755     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  19756 L_3610591D:
  19757     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  19758     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  19759     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  19760     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  19761     edx = 0; /* 0x36105929: xor edx, edx */
  19762     _cf = 0;
  19763     _flag_k = FK_TEST;
  19764     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  19765     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19766     _cf = 0;
  19767     _flag_k = FK_NARROW(FK_TEST, 24);
  19768     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  19769     PUSH32(esp, edx); /* 0x36105930: push edx */
  19770     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  19771     RECOMP_FLAGS_IN();
  19772     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  19773     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  19774     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  19775     esp = ebp; /* 0x3610593A: mov esp, ebp */
  19776     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  19777     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  19778     RECOMP_REGS_OUT();
  19779 }
  19780 
  19781 void sub_36105373(void) {
  19782     int _fpu_cmp = 0;
  19783     uint32_t _cf = 0;
  19784     int _df = 1;
  19785     uint32_t _flag_k = FK_NONE;
  19786     uint32_t _flag_a = 0, _flag_b = 0;
  19787     uint32_t _itail_tgt = 0;
  19788     RECOMP_REGS_LOCALS
  19789     RECOMP_ENTER(0x36105373u);
  19790 
  19791     goto L_36105373;
  19792 L_361052B2:
  19793     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  19794     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  19795     fp_pop();
  19796     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  19797     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  19798     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  19799     _cf = 0;
  19800     _flag_k = FK_NARROW(FK_TEST, 24);
  19801     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  19802 L_361052C2:
  19803     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  19804     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  19805     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  19806     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  19807     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  19808     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  19809     RECOMP_FLAGS_IN();
  19810     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  19811     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  19812     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  19813     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  19814     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  19815     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  19816     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  19817     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  19818     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  19819     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  19820     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  19821     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  19822     _flag_k = FK_CMP;
  19823     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  19824 L_3610530A:
  19825     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  19826     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  19827     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  19828     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  19829 L_3610531B:
  19830     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  19831     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  19832     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  19833     PUSH32(esp, eax); /* 0x3610532C: push eax */
  19834     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  19835     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  19836     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  19837     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  19838     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  19839     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  19840     RECOMP_FLAGS_IN();
  19841     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  19842     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  19843     fp_pop();
  19844     esi = eax; /* 0x3610534C: mov esi, eax */
  19845     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  19846     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  19847     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  19848     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  19849     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  19850     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  19851     _cf = 0;
  19852     _flag_k = FK_NARROW(FK_TEST, 24);
  19853     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  19854 L_36105362:
  19855     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  19856     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  19857 L_3610536A:
  19858     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  19859     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  19860 L_36105373:
  19861     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  19862     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  19863     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  19864     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  19865     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  19866     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  19867     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  19868     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  19869     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  19870     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  19871     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  19872     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  19873     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  19874     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  19875     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  19876     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  19877     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  19878     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  19879     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  19880     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  19881     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  19882     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  19883     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  19884     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  19885     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  19886     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  19887     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  19888     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  19889     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  19890     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  19891     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  19892     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  19893     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  19894     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  19895     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  19896     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  19897     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  19898     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  19899     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  19900     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  19901     _cf = 0;
  19902     _flag_k = FK_NARROW(FK_TEST, 24);
  19903     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  19904     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  19905     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  19906     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  19907     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  19908     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  19909     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  19910 L_3610541F:
  19911     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  19912     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  19913     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  19914     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  19915     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  19916     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  19917     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  19918     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  19919     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  19920     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  19921     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  19922     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  19923     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  19924     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  19925 L_3610545E:
  19926     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  19927     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  19928     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  19929     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  19930     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  19931     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  19932     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  19933     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  19934     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  19935     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  19936     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  19937     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  19938     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  19939     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  19940     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  19941     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  19942     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  19943     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  19944     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  19945     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  19946     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  19947     RECOMP_FLAGS_IN();
  19948     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  19949     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  19950     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  19951     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  19952     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  19953     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  19954     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  19955     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  19956     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  19957     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  19958     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  19959     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  19960     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  19961     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  19962     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  19963     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  19964     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  19965     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  19966     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  19967     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  19968     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  19969     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  19970     edx = esi; /* 0x36105509: mov edx, esi */
  19971     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  19972     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  19973     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  19974     _flag_k = FK_ADD;
  19975     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  19976     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  19977     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  19978     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  19979     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  19980     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  19981     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  19982     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  19983     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  19984     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  19985     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  19986     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  19987     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  19988     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  19989     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  19990     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  19991     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  19992     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  19993     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  19994     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  19995     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  19996     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  19997     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  19998     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  19999     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  20000     PUSH32(esp, edx); /* 0x36105563: push edx */
  20001     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  20002     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  20003     RECOMP_FLAGS_IN();
  20004     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  20005     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  20006     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  20007     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  20008     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  20009     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  20010     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  20011     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  20012     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  20013     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  20014 L_36105593:
  20015     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  20016     /* test eax, eax */ /* 0x36105596: test eax, eax */
  20017     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20018     _cf = 0;
  20019     _flag_k = FK_TEST;
  20020     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  20021 L_3610559E:
  20022     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  20023     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  20024     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  20025     _cf = 0;
  20026     _flag_k = FK_NARROW(FK_TEST, 24);
  20027     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  20028 L_361055AC:
  20029     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  20030     PUSH32(esp, edi); /* 0x361055AF: push edi */
  20031     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  20032     RECOMP_FLAGS_IN();
  20033     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  20034     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20035     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  20036     _flag_k = FK_ADD;
  20037     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  20038     RECOMP_FLAGS_IN();
  20039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  20040     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  20041     _cf = 0;
  20042     _flag_k = FK_TEST;
  20043     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  20044     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  20045     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  20046     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  20047     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  20048     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  20049     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  20050     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  20051     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  20052     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  20053     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  20054     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  20055     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  20056     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  20057     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  20058     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  20059     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  20060     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  20061     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  20062     _cf = 0;
  20063     _flag_k = FK_NARROW(FK_TEST, 24);
  20064     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  20065 L_36105628:
  20066     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  20067     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  20068     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  20069     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  20070     _cf = 0;
  20071     _flag_k = FK_NARROW(FK_TEST, 24);
  20072     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  20073 L_36105635:
  20074     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  20075     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  20076 L_3610563D:
  20077     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  20078     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  20079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20080     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  20081     _flag_k = FK_CMP;
  20082     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  20083     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  20084     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  20085     RECOMP_FLAGS_IN();
  20086     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  20087     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  20088     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20089     esp = esp + 8; /* 0x36105655: add esp, 8 */
  20090     _flag_k = FK_ADD;
  20091     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  20092 L_3610565E:
  20093     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  20094     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  20095     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  20096     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  20097     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  20098     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  20099     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  20100     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  20101     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  20102     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  20103     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  20104     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  20105     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  20106     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  20107     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  20108     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  20109     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  20110     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  20111     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  20112     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  20113     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  20114     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  20115     RECOMP_FLAGS_IN();
  20116     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  20117     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  20118     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  20119     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  20120     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  20121     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  20122     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  20123     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  20124     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  20125     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  20126     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  20127     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  20128     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  20129     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  20130     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  20131     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  20132     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  20133     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  20134     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  20135     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  20136     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  20137     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  20138     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  20139     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  20140     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  20141     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  20142     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  20143     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  20144     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  20145     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  20146     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  20147     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  20148     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  20149     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  20150     PUSH32(esp, eax); /* 0x36105739: push eax */
  20151     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  20152     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  20153     RECOMP_FLAGS_IN();
  20154     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  20155     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  20156     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  20157     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  20158     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  20159     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  20160     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  20161     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  20162     PUSH32(esp, eax); /* 0x36105769: push eax */
  20163     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  20164     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  20165     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  20166     RECOMP_FLAGS_IN();
  20167     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  20168     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  20169     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  20170     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  20171     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  20172     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  20173     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  20174     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  20175     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  20176     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  20177     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  20178     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  20179     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  20180     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  20181     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  20182     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  20183     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  20184     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  20185     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  20186     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  20187     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  20188     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  20189     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  20190     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  20191     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  20192     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  20193     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  20194     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  20195     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  20196     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  20197     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  20198     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  20199     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  20200     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  20201     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  20202     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  20203     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  20204     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  20205     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  20206     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  20207     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  20208     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  20209     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  20210     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  20211     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  20212     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  20213     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  20214     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  20215     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  20216     ecx = 9; /* 0x36105845: mov ecx, 9 */
  20217     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  20218     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  20219     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  20220     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  20221     RECOMP_FLAGS_IN();
  20222     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  20223     ecx = 9; /* 0x36105861: mov ecx, 9 */
  20224     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  20225     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  20226     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  20227     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  20228     RECOMP_FLAGS_IN();
  20229     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  20230     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  20231     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  20232     _cf = 0;
  20233     _flag_k = FK_TEST;
  20234     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  20235     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  20236     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  20237     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  20238     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  20239     RECOMP_FLAGS_IN();
  20240     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  20241     ecx = 6; /* 0x36105890: mov ecx, 6 */
  20242     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  20243       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  20244       else { eax = 0; edx = 0; } }
  20245     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  20246     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  20247     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  20248     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  20249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  20250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20251     _flag_k = FK_CMP;
  20252     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  20253 L_361058AB:
  20254     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  20255 L_361058B1:
  20256     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  20257     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  20258     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  20259     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  20260     RECOMP_FLAGS_IN();
  20261     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  20262     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  20263     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  20264     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  20265     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  20266     _cf = 0;
  20267     _flag_k = FK_TEST;
  20268     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  20269     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  20270     _flag_k = FK_NARROW(FK_DEC, 24);
  20271     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  20272     _cf = (LO8(eax)) != 0;
  20273     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  20274     _flag_k = FK_NARROW(FK_CMP, 24);
  20275     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  20276       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  20277       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  20278       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  20279     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  20280     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  20281     _flag_k = FK_NARROW(FK_INC, 24);
  20282     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  20283     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  20284     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  20285     _flag_k = FK_DEC;
  20286     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  20287 L_361058DE:
  20288     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  20289     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  20290     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  20291 L_361058EC:
  20292     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  20293     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  20294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  20295     eax = eax + 1; /* 0x361058F2: inc eax */
  20296     _flag_k = FK_INC;
  20297     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  20298     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  20299     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  20300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20301     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  20302     _flag_k = FK_ADD;
  20303     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  20304     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20305     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  20306     _flag_k = FK_ADD;
  20307     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  20308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20309     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  20310     _flag_k = FK_ADD;
  20311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  20312     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20313     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  20314     _flag_k = FK_ADD;
  20315     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  20316     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  20317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20318     _flag_k = FK_CMP;
  20319     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  20320     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  20321     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  20322     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  20323     RECOMP_BACKEDGE();
  20324     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  20325 L_3610591D:
  20326     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  20327     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  20328     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  20329     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20330     edx = 0; /* 0x36105929: xor edx, edx */
  20331     _cf = 0;
  20332     _flag_k = FK_TEST;
  20333     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  20334     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  20335     _cf = 0;
  20336     _flag_k = FK_NARROW(FK_TEST, 24);
  20337     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  20338     PUSH32(esp, edx); /* 0x36105930: push edx */
  20339     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  20340     RECOMP_FLAGS_IN();
  20341     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  20342     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  20343     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  20344     esp = ebp; /* 0x3610593A: mov esp, ebp */
  20345     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  20346     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  20347     RECOMP_REGS_OUT();
  20348 }
  20349 
  20350 void sub_36105593(void) {
  20351     int _fpu_cmp = 0;
  20352     uint32_t _cf = 0;
  20353     int _df = 1;
  20354     uint32_t _flag_k = FK_NONE;
  20355     uint32_t _flag_a = 0, _flag_b = 0;
  20356     uint32_t _itail_tgt = 0;
  20357     RECOMP_REGS_LOCALS
  20358     RECOMP_ENTER(0x36105593u);
  20359 
  20360     goto L_36105593;
  20361 L_361052B2:
  20362     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  20363     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  20364     fp_pop();
  20365     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  20366     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  20367     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  20368     _cf = 0;
  20369     _flag_k = FK_NARROW(FK_TEST, 24);
  20370     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  20371 L_361052C2:
  20372     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  20373     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  20374     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  20375     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  20376     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  20377     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  20378     RECOMP_FLAGS_IN();
  20379     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  20380     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  20381     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  20382     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  20383     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  20384     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  20385     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  20386     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  20387     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  20388     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  20389     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  20390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20391     _flag_k = FK_CMP;
  20392     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  20393 L_3610530A:
  20394     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  20395     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  20396     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  20397     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  20398 L_3610531B:
  20399     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  20400     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  20401     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  20402     PUSH32(esp, eax); /* 0x3610532C: push eax */
  20403     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  20404     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  20405     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  20406     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  20407     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  20408     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  20409     RECOMP_FLAGS_IN();
  20410     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  20411     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  20412     fp_pop();
  20413     esi = eax; /* 0x3610534C: mov esi, eax */
  20414     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  20415     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  20416     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  20417     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  20418     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  20419     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  20420     _cf = 0;
  20421     _flag_k = FK_NARROW(FK_TEST, 24);
  20422     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  20423 L_36105362:
  20424     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  20425     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  20426 L_3610536A:
  20427     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  20428     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  20429 L_36105373:
  20430     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  20431     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  20432     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  20433     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  20434     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  20435     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  20436     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  20437     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  20438     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  20439     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  20440     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  20441     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  20442     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  20443     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  20444     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  20445     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  20446     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  20447     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  20448     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  20449     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  20450     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  20451     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  20452     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  20453     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  20454     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  20455     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  20456     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  20457     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  20458     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  20459     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  20460     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  20461     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  20462     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  20463     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  20464     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  20465     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  20466     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  20467     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  20468     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  20469     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  20470     _cf = 0;
  20471     _flag_k = FK_NARROW(FK_TEST, 24);
  20472     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  20473     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  20474     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  20475     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  20476     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  20477     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  20478     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  20479 L_3610541F:
  20480     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  20481     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  20482     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  20483     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  20484     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  20485     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  20486     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  20487     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  20488     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  20489     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  20490     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  20491     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  20492     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  20493     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  20494 L_3610545E:
  20495     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  20496     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  20497     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  20498     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  20499     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  20500     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  20501     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  20502     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  20503     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  20504     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  20505     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  20506     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  20507     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  20508     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  20509     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  20510     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  20511     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  20512     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  20513     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  20514     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  20515     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  20516     RECOMP_FLAGS_IN();
  20517     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  20518     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  20519     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  20520     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  20521     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  20522     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  20523     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  20524     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  20525     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  20526     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  20527     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  20528     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  20529     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  20530     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  20531     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  20532     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  20533     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  20534     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  20535     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  20536     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  20537     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  20538     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  20539     edx = esi; /* 0x36105509: mov edx, esi */
  20540     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  20541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20542     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  20543     _flag_k = FK_ADD;
  20544     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  20545     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  20546     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  20547     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  20548     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  20549     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  20550     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  20551     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  20552     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  20553     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  20554     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  20555     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  20556     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  20557     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  20558     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  20559     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  20560     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  20561     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  20562     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  20563     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  20564     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  20565     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  20566     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  20567     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  20568     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  20569     PUSH32(esp, edx); /* 0x36105563: push edx */
  20570     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  20571     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  20572     RECOMP_FLAGS_IN();
  20573     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  20574     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  20575     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  20576     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  20577     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  20578     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  20579     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  20580     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  20581     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  20582     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  20583 L_36105593:
  20584     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  20585     /* test eax, eax */ /* 0x36105596: test eax, eax */
  20586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  20587     _cf = 0;
  20588     _flag_k = FK_TEST;
  20589     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  20590 L_3610559E:
  20591     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  20592     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  20593     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  20594     _cf = 0;
  20595     _flag_k = FK_NARROW(FK_TEST, 24);
  20596     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  20597 L_361055AC:
  20598     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  20599     PUSH32(esp, edi); /* 0x361055AF: push edi */
  20600     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  20601     RECOMP_FLAGS_IN();
  20602     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  20603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20604     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  20605     _flag_k = FK_ADD;
  20606     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  20607     RECOMP_FLAGS_IN();
  20608     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  20609     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  20610     _cf = 0;
  20611     _flag_k = FK_TEST;
  20612     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  20613     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  20614     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  20615     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  20616     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  20617     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  20618     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  20619     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  20620     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  20621     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  20622     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  20623     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  20624     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  20625     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  20626     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  20627     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  20628     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  20629     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  20630     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  20631     _cf = 0;
  20632     _flag_k = FK_NARROW(FK_TEST, 24);
  20633     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  20634 L_36105628:
  20635     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  20636     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  20637     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  20638     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  20639     _cf = 0;
  20640     _flag_k = FK_NARROW(FK_TEST, 24);
  20641     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  20642 L_36105635:
  20643     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  20644     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  20645 L_3610563D:
  20646     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  20647     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  20648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20649     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  20650     _flag_k = FK_CMP;
  20651     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  20652     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  20653     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  20654     RECOMP_FLAGS_IN();
  20655     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  20656     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  20657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20658     esp = esp + 8; /* 0x36105655: add esp, 8 */
  20659     _flag_k = FK_ADD;
  20660     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  20661 L_3610565E:
  20662     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  20663     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  20664     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  20665     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  20666     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  20667     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  20668     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  20669     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  20670     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  20671     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  20672     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  20673     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  20674     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  20675     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  20676     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  20677     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  20678     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  20679     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  20680     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  20681     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  20682     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  20683     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  20684     RECOMP_FLAGS_IN();
  20685     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  20686     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  20687     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  20688     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  20689     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  20690     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  20691     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  20692     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  20693     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  20694     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  20695     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  20696     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  20697     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  20698     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  20699     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  20700     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  20701     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  20702     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  20703     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  20704     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  20705     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  20706     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  20707     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  20708     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  20709     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  20710     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  20711     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  20712     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  20713     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  20714     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  20715     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  20716     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  20717     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  20718     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  20719     PUSH32(esp, eax); /* 0x36105739: push eax */
  20720     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  20721     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  20722     RECOMP_FLAGS_IN();
  20723     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  20724     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  20725     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  20726     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  20727     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  20728     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  20729     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  20730     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  20731     PUSH32(esp, eax); /* 0x36105769: push eax */
  20732     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  20733     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  20734     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  20735     RECOMP_FLAGS_IN();
  20736     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  20737     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  20738     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  20739     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  20740     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  20741     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  20742     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  20743     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  20744     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  20745     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  20746     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  20747     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  20748     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  20749     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  20750     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  20751     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  20752     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  20753     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  20754     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  20755     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  20756     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  20757     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  20758     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  20759     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  20760     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  20761     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  20762     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  20763     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  20764     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  20765     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  20766     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  20767     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  20768     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  20769     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  20770     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  20771     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  20772     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  20773     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  20774     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  20775     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  20776     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  20777     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  20778     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  20779     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  20780     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  20781     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  20782     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  20783     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  20784     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  20785     ecx = 9; /* 0x36105845: mov ecx, 9 */
  20786     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  20787     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  20788     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  20789     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  20790     RECOMP_FLAGS_IN();
  20791     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  20792     ecx = 9; /* 0x36105861: mov ecx, 9 */
  20793     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  20794     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  20795     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  20796     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  20797     RECOMP_FLAGS_IN();
  20798     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  20799     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  20800     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  20801     _cf = 0;
  20802     _flag_k = FK_TEST;
  20803     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  20804     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  20805     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  20806     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  20807     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  20808     RECOMP_FLAGS_IN();
  20809     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  20810     ecx = 6; /* 0x36105890: mov ecx, 6 */
  20811     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  20812       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  20813       else { eax = 0; edx = 0; } }
  20814     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  20815     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  20816     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  20817     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  20818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  20819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20820     _flag_k = FK_CMP;
  20821     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  20822 L_361058AB:
  20823     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  20824 L_361058B1:
  20825     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  20826     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  20827     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  20828     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  20829     RECOMP_FLAGS_IN();
  20830     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  20831     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  20832     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  20833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  20834     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  20835     _cf = 0;
  20836     _flag_k = FK_TEST;
  20837     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  20838     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  20839     _flag_k = FK_NARROW(FK_DEC, 24);
  20840     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  20841     _cf = (LO8(eax)) != 0;
  20842     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  20843     _flag_k = FK_NARROW(FK_CMP, 24);
  20844     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  20845       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  20846       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  20847       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  20848     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  20849     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  20850     _flag_k = FK_NARROW(FK_INC, 24);
  20851     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  20852     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  20853     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  20854     _flag_k = FK_DEC;
  20855     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  20856 L_361058DE:
  20857     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  20858     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  20859     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  20860 L_361058EC:
  20861     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  20862     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  20863     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  20864     eax = eax + 1; /* 0x361058F2: inc eax */
  20865     _flag_k = FK_INC;
  20866     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  20867     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  20868     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  20869     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20870     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  20871     _flag_k = FK_ADD;
  20872     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  20873     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20874     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  20875     _flag_k = FK_ADD;
  20876     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  20877     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20878     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  20879     _flag_k = FK_ADD;
  20880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  20881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  20882     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  20883     _flag_k = FK_ADD;
  20884     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  20885     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  20886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20887     _flag_k = FK_CMP;
  20888     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  20889     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  20890     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  20891     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  20892     RECOMP_BACKEDGE();
  20893     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  20894 L_3610591D:
  20895     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  20896     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  20897     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  20898     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  20899     edx = 0; /* 0x36105929: xor edx, edx */
  20900     _cf = 0;
  20901     _flag_k = FK_TEST;
  20902     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  20903     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  20904     _cf = 0;
  20905     _flag_k = FK_NARROW(FK_TEST, 24);
  20906     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  20907     PUSH32(esp, edx); /* 0x36105930: push edx */
  20908     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  20909     RECOMP_FLAGS_IN();
  20910     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  20911     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  20912     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  20913     esp = ebp; /* 0x3610593A: mov esp, ebp */
  20914     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  20915     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  20916     RECOMP_REGS_OUT();
  20917 }
  20918 
  20919 void sub_3610565E(void) {
  20920     int _fpu_cmp = 0;
  20921     uint32_t _cf = 0;
  20922     int _df = 1;
  20923     uint32_t _flag_k = FK_NONE;
  20924     uint32_t _flag_a = 0, _flag_b = 0;
  20925     uint32_t _itail_tgt = 0;
  20926     RECOMP_REGS_LOCALS
  20927     RECOMP_ENTER(0x3610565Eu);
  20928 
  20929     goto L_3610565E;
  20930 L_361052B2:
  20931     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  20932     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  20933     fp_pop();
  20934     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  20935     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  20936     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  20937     _cf = 0;
  20938     _flag_k = FK_NARROW(FK_TEST, 24);
  20939     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  20940 L_361052C2:
  20941     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  20942     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  20943     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  20944     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  20945     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  20946     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  20947     RECOMP_FLAGS_IN();
  20948     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  20949     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  20950     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  20951     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  20952     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  20953     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  20954     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  20955     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  20956     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  20957     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  20958     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  20959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  20960     _flag_k = FK_CMP;
  20961     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  20962 L_3610530A:
  20963     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  20964     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  20965     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  20966     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  20967 L_3610531B:
  20968     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  20969     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  20970     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  20971     PUSH32(esp, eax); /* 0x3610532C: push eax */
  20972     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  20973     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  20974     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  20975     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  20976     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  20977     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  20978     RECOMP_FLAGS_IN();
  20979     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  20980     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  20981     fp_pop();
  20982     esi = eax; /* 0x3610534C: mov esi, eax */
  20983     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  20984     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  20985     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  20986     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  20987     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  20988     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  20989     _cf = 0;
  20990     _flag_k = FK_NARROW(FK_TEST, 24);
  20991     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  20992 L_36105362:
  20993     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  20994     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  20995 L_3610536A:
  20996     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  20997     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  20998 L_36105373:
  20999     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  21000     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  21001     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  21002     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  21003     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  21004     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  21005     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  21006     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  21007     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  21008     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  21009     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  21010     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  21011     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  21012     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  21013     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  21014     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  21015     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  21016     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  21017     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  21018     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  21019     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  21020     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  21021     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  21022     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  21023     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  21024     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  21025     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  21026     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  21027     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  21028     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  21029     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  21030     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  21031     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  21032     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  21033     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  21034     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  21035     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  21036     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  21037     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  21038     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  21039     _cf = 0;
  21040     _flag_k = FK_NARROW(FK_TEST, 24);
  21041     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  21042     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  21043     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  21044     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  21045     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  21046     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  21047     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  21048 L_3610541F:
  21049     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  21050     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  21051     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  21052     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  21053     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  21054     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  21055     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  21056     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  21057     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  21058     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  21059     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  21060     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  21061     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  21062     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  21063 L_3610545E:
  21064     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  21065     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  21066     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  21067     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  21068     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  21069     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  21070     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  21071     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  21072     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  21073     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  21074     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  21075     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  21076     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  21077     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  21078     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  21079     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  21080     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  21081     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  21082     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  21083     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  21084     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  21085     RECOMP_FLAGS_IN();
  21086     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  21087     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  21088     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  21089     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  21090     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  21091     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  21092     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  21093     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  21094     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  21095     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  21096     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  21097     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  21098     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  21099     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  21100     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  21101     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  21102     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  21103     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  21104     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  21105     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  21106     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  21107     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  21108     edx = esi; /* 0x36105509: mov edx, esi */
  21109     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  21110     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21111     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  21112     _flag_k = FK_ADD;
  21113     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  21114     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  21115     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  21116     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  21117     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  21118     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  21119     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  21120     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  21121     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  21122     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  21123     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  21124     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  21125     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  21126     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  21127     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  21128     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  21129     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  21130     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  21131     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  21132     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  21133     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  21134     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  21135     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  21136     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  21137     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  21138     PUSH32(esp, edx); /* 0x36105563: push edx */
  21139     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  21140     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  21141     RECOMP_FLAGS_IN();
  21142     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  21143     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  21144     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  21145     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  21146     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  21147     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  21148     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  21149     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  21150     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  21151     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  21152 L_36105593:
  21153     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  21154     /* test eax, eax */ /* 0x36105596: test eax, eax */
  21155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21156     _cf = 0;
  21157     _flag_k = FK_TEST;
  21158     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  21159 L_3610559E:
  21160     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  21161     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  21162     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  21163     _cf = 0;
  21164     _flag_k = FK_NARROW(FK_TEST, 24);
  21165     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  21166 L_361055AC:
  21167     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  21168     PUSH32(esp, edi); /* 0x361055AF: push edi */
  21169     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  21170     RECOMP_FLAGS_IN();
  21171     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21172     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21173     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  21174     _flag_k = FK_ADD;
  21175     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  21176     RECOMP_FLAGS_IN();
  21177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  21178     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  21179     _cf = 0;
  21180     _flag_k = FK_TEST;
  21181     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  21182     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  21183     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  21184     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  21185     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  21186     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  21187     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  21188     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  21189     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  21190     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  21191     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  21192     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  21193     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  21194     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  21195     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  21196     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  21197     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  21198     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  21199     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21200     _cf = 0;
  21201     _flag_k = FK_NARROW(FK_TEST, 24);
  21202     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  21203 L_36105628:
  21204     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  21205     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  21206     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  21207     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21208     _cf = 0;
  21209     _flag_k = FK_NARROW(FK_TEST, 24);
  21210     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  21211 L_36105635:
  21212     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  21213     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  21214 L_3610563D:
  21215     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  21216     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21218     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  21219     _flag_k = FK_CMP;
  21220     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  21221     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  21222     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  21223     RECOMP_FLAGS_IN();
  21224     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  21225     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21226     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21227     esp = esp + 8; /* 0x36105655: add esp, 8 */
  21228     _flag_k = FK_ADD;
  21229     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  21230 L_3610565E:
  21231     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  21232     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  21233     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  21234     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  21235     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  21236     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  21237     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  21238     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  21239     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  21240     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  21241     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  21242     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  21243     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  21244     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  21245     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  21246     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  21247     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  21248     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  21249     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  21250     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  21251     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  21252     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  21253     RECOMP_FLAGS_IN();
  21254     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  21255     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  21256     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  21257     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  21258     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  21259     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  21260     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  21261     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  21262     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  21263     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  21264     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  21265     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  21266     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  21267     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  21268     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  21269     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  21270     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  21271     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  21272     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  21273     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  21274     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  21275     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  21276     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  21277     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  21278     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  21279     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  21280     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  21281     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  21282     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  21283     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  21284     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  21285     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  21286     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  21287     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  21288     PUSH32(esp, eax); /* 0x36105739: push eax */
  21289     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  21290     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  21291     RECOMP_FLAGS_IN();
  21292     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  21293     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  21294     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  21295     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  21296     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  21297     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  21298     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  21299     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  21300     PUSH32(esp, eax); /* 0x36105769: push eax */
  21301     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  21302     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  21303     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  21304     RECOMP_FLAGS_IN();
  21305     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  21306     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  21307     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  21308     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  21309     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  21310     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  21311     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  21312     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  21313     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  21314     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  21315     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  21316     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  21317     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  21318     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  21319     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  21320     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  21321     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  21322     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  21323     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  21324     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  21325     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  21326     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  21327     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  21328     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  21329     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  21330     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  21331     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  21332     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  21333     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  21334     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  21335     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  21336     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  21337     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  21338     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  21339     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  21340     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  21341     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  21342     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  21343     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  21344     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  21345     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  21346     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  21347     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  21348     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  21349     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  21350     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  21351     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  21352     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  21353     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  21354     ecx = 9; /* 0x36105845: mov ecx, 9 */
  21355     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  21356     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  21357     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  21358     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  21359     RECOMP_FLAGS_IN();
  21360     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  21361     ecx = 9; /* 0x36105861: mov ecx, 9 */
  21362     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  21363     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  21364     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  21365     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  21366     RECOMP_FLAGS_IN();
  21367     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  21368     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  21369     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  21370     _cf = 0;
  21371     _flag_k = FK_TEST;
  21372     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  21373     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  21374     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  21375     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  21376     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  21377     RECOMP_FLAGS_IN();
  21378     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  21379     ecx = 6; /* 0x36105890: mov ecx, 6 */
  21380     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  21381       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  21382       else { eax = 0; edx = 0; } }
  21383     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  21384     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  21385     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  21386     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  21387     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  21388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21389     _flag_k = FK_CMP;
  21390     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  21391 L_361058AB:
  21392     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  21393 L_361058B1:
  21394     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  21395     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  21396     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  21397     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  21398     RECOMP_FLAGS_IN();
  21399     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  21400     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  21401     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  21402     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  21403     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  21404     _cf = 0;
  21405     _flag_k = FK_TEST;
  21406     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21407     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  21408     _flag_k = FK_NARROW(FK_DEC, 24);
  21409     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  21410     _cf = (LO8(eax)) != 0;
  21411     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  21412     _flag_k = FK_NARROW(FK_CMP, 24);
  21413     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  21414       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  21415       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  21416       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  21417     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21418     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  21419     _flag_k = FK_NARROW(FK_INC, 24);
  21420     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  21421     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  21422     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  21423     _flag_k = FK_DEC;
  21424     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  21425 L_361058DE:
  21426     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  21427     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  21428     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  21429 L_361058EC:
  21430     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  21431     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  21432     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  21433     eax = eax + 1; /* 0x361058F2: inc eax */
  21434     _flag_k = FK_INC;
  21435     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  21436     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  21437     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  21438     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21439     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  21440     _flag_k = FK_ADD;
  21441     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  21442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21443     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  21444     _flag_k = FK_ADD;
  21445     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  21446     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21447     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  21448     _flag_k = FK_ADD;
  21449     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  21450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21451     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  21452     _flag_k = FK_ADD;
  21453     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  21454     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  21455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21456     _flag_k = FK_CMP;
  21457     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  21458     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  21459     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  21460     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  21461     RECOMP_BACKEDGE();
  21462     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  21463 L_3610591D:
  21464     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  21465     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  21466     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  21467     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  21468     edx = 0; /* 0x36105929: xor edx, edx */
  21469     _cf = 0;
  21470     _flag_k = FK_TEST;
  21471     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  21472     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  21473     _cf = 0;
  21474     _flag_k = FK_NARROW(FK_TEST, 24);
  21475     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  21476     PUSH32(esp, edx); /* 0x36105930: push edx */
  21477     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  21478     RECOMP_FLAGS_IN();
  21479     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  21480     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  21481     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  21482     esp = ebp; /* 0x3610593A: mov esp, ebp */
  21483     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  21484     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  21485     RECOMP_REGS_OUT();
  21486 }
  21487 
  21488 void sub_361058DE(void) {
  21489     int _fpu_cmp = 0;
  21490     uint32_t _cf = 0;
  21491     int _df = 1;
  21492     uint32_t _flag_k = FK_NONE;
  21493     uint32_t _flag_a = 0, _flag_b = 0;
  21494     uint32_t _itail_tgt = 0;
  21495     RECOMP_REGS_LOCALS
  21496     RECOMP_ENTER(0x361058DEu);
  21497 
  21498     goto L_361058DE;
  21499 L_361052B2:
  21500     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  21501     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  21502     fp_pop();
  21503     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  21504     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  21505     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21506     _cf = 0;
  21507     _flag_k = FK_NARROW(FK_TEST, 24);
  21508     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  21509 L_361052C2:
  21510     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  21511     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  21512     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  21513     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  21514     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  21515     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  21516     RECOMP_FLAGS_IN();
  21517     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  21518     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  21519     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  21520     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  21521     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  21522     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  21523     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  21524     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  21525     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  21526     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  21527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  21528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21529     _flag_k = FK_CMP;
  21530     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  21531 L_3610530A:
  21532     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  21533     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  21534     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  21535     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  21536 L_3610531B:
  21537     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  21538     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  21539     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  21540     PUSH32(esp, eax); /* 0x3610532C: push eax */
  21541     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  21542     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  21543     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  21544     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  21545     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  21546     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  21547     RECOMP_FLAGS_IN();
  21548     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  21549     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  21550     fp_pop();
  21551     esi = eax; /* 0x3610534C: mov esi, eax */
  21552     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  21553     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  21554     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  21555     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  21556     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  21557     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  21558     _cf = 0;
  21559     _flag_k = FK_NARROW(FK_TEST, 24);
  21560     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  21561 L_36105362:
  21562     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  21563     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  21564 L_3610536A:
  21565     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  21566     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  21567 L_36105373:
  21568     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  21569     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  21570     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  21571     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  21572     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  21573     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  21574     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  21575     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  21576     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  21577     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  21578     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  21579     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  21580     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  21581     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  21582     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  21583     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  21584     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  21585     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  21586     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  21587     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  21588     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  21589     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  21590     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  21591     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  21592     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  21593     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  21594     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  21595     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  21596     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  21597     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  21598     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  21599     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  21600     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  21601     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  21602     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  21603     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  21604     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  21605     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  21606     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  21607     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  21608     _cf = 0;
  21609     _flag_k = FK_NARROW(FK_TEST, 24);
  21610     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  21611     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  21612     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  21613     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  21614     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  21615     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  21616     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  21617 L_3610541F:
  21618     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  21619     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  21620     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  21621     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  21622     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  21623     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  21624     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  21625     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  21626     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  21627     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  21628     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  21629     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  21630     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  21631     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  21632 L_3610545E:
  21633     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  21634     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  21635     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  21636     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  21637     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  21638     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  21639     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  21640     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  21641     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  21642     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  21643     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  21644     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  21645     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  21646     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  21647     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  21648     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  21649     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  21650     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  21651     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  21652     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  21653     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  21654     RECOMP_FLAGS_IN();
  21655     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  21656     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  21657     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  21658     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  21659     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  21660     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  21661     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  21662     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  21663     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  21664     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  21665     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  21666     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  21667     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  21668     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  21669     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  21670     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  21671     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  21672     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  21673     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  21674     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  21675     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  21676     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  21677     edx = esi; /* 0x36105509: mov edx, esi */
  21678     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  21679     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21680     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  21681     _flag_k = FK_ADD;
  21682     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  21683     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  21684     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  21685     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  21686     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  21687     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  21688     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  21689     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  21690     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  21691     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  21692     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  21693     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  21694     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  21695     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  21696     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  21697     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  21698     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  21699     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  21700     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  21701     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  21702     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  21703     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  21704     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  21705     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  21706     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  21707     PUSH32(esp, edx); /* 0x36105563: push edx */
  21708     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  21709     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  21710     RECOMP_FLAGS_IN();
  21711     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  21712     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  21713     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  21714     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  21715     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  21716     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  21717     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  21718     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  21719     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  21720     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  21721 L_36105593:
  21722     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  21723     /* test eax, eax */ /* 0x36105596: test eax, eax */
  21724     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  21725     _cf = 0;
  21726     _flag_k = FK_TEST;
  21727     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  21728 L_3610559E:
  21729     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  21730     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  21731     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  21732     _cf = 0;
  21733     _flag_k = FK_NARROW(FK_TEST, 24);
  21734     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  21735 L_361055AC:
  21736     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  21737     PUSH32(esp, edi); /* 0x361055AF: push edi */
  21738     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  21739     RECOMP_FLAGS_IN();
  21740     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  21741     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21742     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  21743     _flag_k = FK_ADD;
  21744     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  21745     RECOMP_FLAGS_IN();
  21746     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  21747     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  21748     _cf = 0;
  21749     _flag_k = FK_TEST;
  21750     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  21751     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  21752     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  21753     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  21754     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  21755     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  21756     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  21757     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  21758     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  21759     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  21760     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  21761     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  21762     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  21763     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  21764     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  21765     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  21766     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  21767     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  21768     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21769     _cf = 0;
  21770     _flag_k = FK_NARROW(FK_TEST, 24);
  21771     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  21772 L_36105628:
  21773     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  21774     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  21775     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  21776     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21777     _cf = 0;
  21778     _flag_k = FK_NARROW(FK_TEST, 24);
  21779     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  21780 L_36105635:
  21781     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  21782     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  21783 L_3610563D:
  21784     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  21785     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21787     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  21788     _flag_k = FK_CMP;
  21789     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  21790     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  21791     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  21792     RECOMP_FLAGS_IN();
  21793     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  21794     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  21795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  21796     esp = esp + 8; /* 0x36105655: add esp, 8 */
  21797     _flag_k = FK_ADD;
  21798     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  21799 L_3610565E:
  21800     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  21801     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  21802     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  21803     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  21804     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  21805     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  21806     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  21807     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  21808     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  21809     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  21810     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  21811     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  21812     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  21813     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  21814     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  21815     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  21816     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  21817     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  21818     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  21819     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  21820     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  21821     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  21822     RECOMP_FLAGS_IN();
  21823     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  21824     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  21825     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  21826     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  21827     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  21828     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  21829     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  21830     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  21831     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  21832     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  21833     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  21834     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  21835     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  21836     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  21837     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  21838     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  21839     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  21840     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  21841     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  21842     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  21843     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  21844     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  21845     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  21846     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  21847     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  21848     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  21849     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  21850     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  21851     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  21852     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  21853     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  21854     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  21855     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  21856     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  21857     PUSH32(esp, eax); /* 0x36105739: push eax */
  21858     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  21859     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  21860     RECOMP_FLAGS_IN();
  21861     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  21862     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  21863     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  21864     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  21865     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  21866     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  21867     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  21868     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  21869     PUSH32(esp, eax); /* 0x36105769: push eax */
  21870     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  21871     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  21872     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  21873     RECOMP_FLAGS_IN();
  21874     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  21875     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  21876     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  21877     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  21878     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  21879     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  21880     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  21881     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  21882     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  21883     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  21884     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  21885     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  21886     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  21887     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  21888     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  21889     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  21890     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  21891     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  21892     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  21893     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  21894     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  21895     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  21896     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  21897     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  21898     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  21899     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  21900     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  21901     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  21902     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  21903     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  21904     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  21905     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  21906     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  21907     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  21908     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  21909     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  21910     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  21911     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  21912     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  21913     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  21914     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  21915     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  21916     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  21917     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  21918     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  21919     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  21920     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  21921     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  21922     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  21923     ecx = 9; /* 0x36105845: mov ecx, 9 */
  21924     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  21925     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  21926     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  21927     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  21928     RECOMP_FLAGS_IN();
  21929     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  21930     ecx = 9; /* 0x36105861: mov ecx, 9 */
  21931     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  21932     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  21933     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  21934     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  21935     RECOMP_FLAGS_IN();
  21936     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  21937     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  21938     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  21939     _cf = 0;
  21940     _flag_k = FK_TEST;
  21941     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  21942     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  21943     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  21944     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  21945     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  21946     RECOMP_FLAGS_IN();
  21947     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  21948     ecx = 6; /* 0x36105890: mov ecx, 6 */
  21949     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  21950       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  21951       else { eax = 0; edx = 0; } }
  21952     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  21953     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  21954     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  21955     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  21956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  21957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  21958     _flag_k = FK_CMP;
  21959     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  21960 L_361058AB:
  21961     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  21962 L_361058B1:
  21963     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  21964     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  21965     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  21966     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  21967     RECOMP_FLAGS_IN();
  21968     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  21969     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  21970     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  21971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  21972     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  21973     _cf = 0;
  21974     _flag_k = FK_TEST;
  21975     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21976     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  21977     _flag_k = FK_NARROW(FK_DEC, 24);
  21978     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  21979     _cf = (LO8(eax)) != 0;
  21980     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  21981     _flag_k = FK_NARROW(FK_CMP, 24);
  21982     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  21983       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  21984       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  21985       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  21986     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  21987     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  21988     _flag_k = FK_NARROW(FK_INC, 24);
  21989     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  21990     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  21991     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  21992     _flag_k = FK_DEC;
  21993     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  21994 L_361058DE:
  21995     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  21996     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  21997     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  21998 L_361058EC:
  21999     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  22000     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  22001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  22002     eax = eax + 1; /* 0x361058F2: inc eax */
  22003     _flag_k = FK_INC;
  22004     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  22005     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  22006     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  22007     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22008     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  22009     _flag_k = FK_ADD;
  22010     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  22011     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22012     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  22013     _flag_k = FK_ADD;
  22014     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  22015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22016     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  22017     _flag_k = FK_ADD;
  22018     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  22019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22020     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  22021     _flag_k = FK_ADD;
  22022     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  22023     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  22024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22025     _flag_k = FK_CMP;
  22026     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  22027     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  22028     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  22029     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  22030     RECOMP_BACKEDGE();
  22031     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  22032 L_3610591D:
  22033     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  22034     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  22035     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  22036     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22037     edx = 0; /* 0x36105929: xor edx, edx */
  22038     _cf = 0;
  22039     _flag_k = FK_TEST;
  22040     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  22041     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  22042     _cf = 0;
  22043     _flag_k = FK_NARROW(FK_TEST, 24);
  22044     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  22045     PUSH32(esp, edx); /* 0x36105930: push edx */
  22046     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  22047     RECOMP_FLAGS_IN();
  22048     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  22049     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  22050     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  22051     esp = ebp; /* 0x3610593A: mov esp, ebp */
  22052     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  22053     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  22054     RECOMP_REGS_OUT();
  22055 }
  22056 
  22057 void sub_361058EC(void) {
  22058     int _fpu_cmp = 0;
  22059     uint32_t _cf = 0;
  22060     int _df = 1;
  22061     uint32_t _flag_k = FK_NONE;
  22062     uint32_t _flag_a = 0, _flag_b = 0;
  22063     uint32_t _itail_tgt = 0;
  22064     RECOMP_REGS_LOCALS
  22065     RECOMP_ENTER(0x361058ECu);
  22066 
  22067     goto L_361058EC;
  22068 L_361052B2:
  22069     fp_push(*(float*)&MEM32(edi)); /* 0x361052B2: fld dword ptr [edi] */
  22070     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebx + 0xC)); /* 0x361052B4: fcomp dword ptr [ebx + 0xc] */
  22071     fp_pop();
  22072     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361052B7: fnstsw ax */
  22073     /* test HI8(eax), 0x41u */ /* 0x361052B9: test ah, 0x41 */
  22074     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  22075     _cf = 0;
  22076     _flag_k = FK_NARROW(FK_TEST, 24);
  22077     if (TEST_NZ(_flag_a, _flag_b)) goto L_36105593; /* 0x361052BC: jne 0x36105593 */
  22078 L_361052C2:
  22079     fp_push(*(float*)&MEM32(edi)); /* 0x361052C2: fld dword ptr [edi] */
  22080     _st[0] -= (double)*(float*)ADDR(ebx + 0xC); /* 0x361052C4: fsub dword ptr [ebx + 0xc] */
  22081     _st[0] = (double)*(float*)ADDR(ebx + 0xEDC) - _st[0]; /* 0x361052C7: fsubr dword ptr [ebx + 0xedc] */
  22082     _st[0] /= (double)*(float*)ADDR(ebx + 0xEDC); /* 0x361052CD: fdiv dword ptr [ebx + 0xedc] */
  22083     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x361052D3: fmul dword ptr [0x36170ba4] */
  22084     RECOMP_ICALL(0x3615FD8Cu); /* 0x361052D9: call 0x3615fd8c */ /* not lifted */
  22085     RECOMP_FLAGS_IN();
  22086     edi = MEM32(edi + (-0x100)); /* 0x361052DE: mov edi, dword ptr [edi - 0x100] */
  22087     MEM32(ebp + (-0x58)) = eax; /* 0x361052E4: mov dword ptr [ebp - 0x58], eax */
  22088     eax = MEM32(ebx + 0xE78); /* 0x361052E7: mov eax, dword ptr [ebx + 0xe78] */
  22089     fp_push(*(float*)&MEM32(eax + edi * 8 + 0x4)); /* 0x361052ED: fld dword ptr [eax + edi*8 + 4] */
  22090     eax = eax + edi * 8; /* 0x361052F1: lea eax, [eax + edi*8] */
  22091     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361052F4: fmul dword ptr [esi - 4] */
  22092     MEM32(ebp + (-0xB8)) = edi; /* 0x361052F7: mov dword ptr [ebp - 0xb8], edi */
  22093     _st[0] += (double)*(float*)ADDR(eax); /* 0x361052FD: fadd dword ptr [eax] */
  22094     eax = MEM32(ebx + 0xEF0); /* 0x361052FF: mov eax, dword ptr [ebx + 0xef0] */
  22095     /* cmp eax, 6 */ /* 0x36105305: cmp eax, 6 */
  22096     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  22097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22098     _flag_k = FK_CMP;
  22099     if (CMP_EQ(_flag_a, _flag_b)) goto L_3610531B; /* 0x36105308: je 0x3610531b */
  22100 L_3610530A:
  22101     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610530A: fstp st(0) */
  22102     fp_push(*(float*)&MEM32(ebx + 0xEE8)); /* 0x3610530C: fld dword ptr [ebx + 0xee8] */
  22103     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105312: fmul dword ptr [esi - 4] */
  22104     _st[0] += (double)*(float*)ADDR(ebx + 0xEE4); /* 0x36105315: fadd dword ptr [ebx + 0xee4] */
  22105 L_3610531B:
  22106     _st[0] *= (double)*(float*)ADDR(edi * 4 + 0x3630D500); /* 0x3610531B: fmul dword ptr [edi*4 + 0x3630d500] */
  22107     eax = edi + edi * 8; /* 0x36105322: lea eax, [edi + edi*8] */
  22108     eax = eax * 4 + 0x3630D428; /* 0x36105325: lea eax, [eax*4 + 0x3630d428] */
  22109     PUSH32(esp, eax); /* 0x3610532C: push eax */
  22110     ecx = ebp + (-0x244); /* 0x3610532D: lea ecx, [ebp - 0x244] */
  22111     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36105333: fstp dword ptr [ebp - 0x10] */
  22112     PUSH32(esp, ecx); /* 0x36105336: push ecx */
  22113     ecx = MEM32(ebp + (-0x28)); /* 0x36105337: mov ecx, dword ptr [ebp - 0x28] */
  22114     MEM32(ebp + (-0x34)) = eax; /* 0x3610533A: mov dword ptr [ebp - 0x34], eax */
  22115     RECOMP_ICALL(MEM32(0x361701CC)); /* 0x3610533D: call dword ptr [0x361701cc] */
  22116     RECOMP_FLAGS_IN();
  22117     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105343: fld dword ptr [ebp - 0x10] */
  22118     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36105346: fcomp dword ptr [0x36170d68] */
  22119     fp_pop();
  22120     esi = eax; /* 0x3610534C: mov esi, eax */
  22121     ecx = 9; /* 0x3610534E: mov ecx, 9 */
  22122     edi = ebp + (-0x188); /* 0x36105353: lea edi, [ebp - 0x188] */
  22123     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105359: 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; }
  22124     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610535B: fnstsw ax */
  22125     /* test HI8(eax), 0x41u */ /* 0x3610535D: test ah, 0x41 */
  22126     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
  22127     _cf = 0;
  22128     _flag_k = FK_NARROW(FK_TEST, 24);
  22129     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610536A; /* 0x36105360: jne 0x3610536a */
  22130 L_36105362:
  22131     fp_push(*(float*)&MEM32(0x36174F98)); /* 0x36105362: fld dword ptr [0x36174f98] */
  22132     goto L_36105373; /* 0x36105368: jmp 0x36105373 */
  22133 L_3610536A:
  22134     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3610536A: fld dword ptr [ebp - 0x10] */
  22135     _st[0] *= (double)*(float*)ADDR(0x3617158C); /* 0x3610536D: fmul dword ptr [0x3617158c] */
  22136 L_36105373:
  22137     fp_push(*(float*)&MEM32(ebp + (-0x188))); /* 0x36105373: fld dword ptr [ebp - 0x188] */
  22138     edx = MEM32(ebp + (-0x188)); /* 0x36105379: mov edx, dword ptr [ebp - 0x188] */
  22139     eax = MEM32(ebp + (-0x184)); /* 0x3610537F: mov eax, dword ptr [ebp - 0x184] */
  22140     _st[0] *= _st[1]; /* 0x36105385: fmul st(1) */
  22141     ecx = MEM32(ebp + (-0x180)); /* 0x36105387: mov ecx, dword ptr [ebp - 0x180] */
  22142     MEM32(ebp + (-0x1C)) = eax; /* 0x3610538D: mov dword ptr [ebp - 0x1c], eax */
  22143     MEM32(ebp + (-0x20)) = edx; /* 0x36105390: mov dword ptr [ebp - 0x20], edx */
  22144     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36105393: fstp dword ptr [ebp - 0x20] */
  22145     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36105396: fld dword ptr [ebp - 0x1c] */
  22146     MEM32(ebp + (-0x18)) = ecx; /* 0x36105399: mov dword ptr [ebp - 0x18], ecx */
  22147     _st[0] *= _st[1]; /* 0x3610539C: fmul st(1) */
  22148     edi = MEM32(ebp + (-0x20)); /* 0x3610539E: mov edi, dword ptr [ebp - 0x20] */
  22149     MEM32(ebp + (-0xA8)) = edx; /* 0x361053A1: mov dword ptr [ebp - 0xa8], edx */
  22150     MEM32(ebp + (-0xA0)) = ecx; /* 0x361053A7: mov dword ptr [ebp - 0xa0], ecx */
  22151     ecx = MEM32(ebp + (-0x170)); /* 0x361053AD: mov ecx, dword ptr [ebp - 0x170] */
  22152     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361053B3: fstp dword ptr [ebp - 0x1c] */
  22153     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361053B6: fld dword ptr [ebp - 0x18] */
  22154     edx = MEM32(ebp + (-0x1C)); /* 0x361053B9: mov edx, dword ptr [ebp - 0x1c] */
  22155     _st[0] *= _st[1]; /* 0x361053BC: fmul st(1) */
  22156     MEM32(ebp + (-0x88)) = edx; /* 0x361053BE: mov dword ptr [ebp - 0x88], edx */
  22157     edx = MEM32(ebp + (-0x16C)); /* 0x361053C4: mov edx, dword ptr [ebp - 0x16c] */
  22158     MEM32(ebp + (-0x64)) = ecx; /* 0x361053CA: mov dword ptr [ebp - 0x64], ecx */
  22159     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361053CD: fstp dword ptr [ebp - 0x18] */
  22160     MEM32(ebp + (-0xA4)) = eax; /* 0x361053D0: mov dword ptr [ebp - 0xa4], eax */
  22161     fp_push(*(float*)&MEM32(ebp + (-0x170))); /* 0x361053D6: fld dword ptr [ebp - 0x170] */
  22162     eax = MEM32(ebp + (-0x18)); /* 0x361053DC: mov eax, dword ptr [ebp - 0x18] */
  22163     _st[0] *= _st[1]; /* 0x361053DF: fmul st(1) */
  22164     MEM32(ebp + (-0x60)) = edx; /* 0x361053E1: mov dword ptr [ebp - 0x60], edx */
  22165     MEM32(ebp + (-0x84)) = eax; /* 0x361053E4: mov dword ptr [ebp - 0x84], eax */
  22166     eax = MEM32(ebp + (-0x168)); /* 0x361053EA: mov eax, dword ptr [ebp - 0x168] */
  22167     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x361053F0: fstp dword ptr [ebp - 0x64] */
  22168     MEM32(ebp + (-0x5C)) = eax; /* 0x361053F3: mov dword ptr [ebp - 0x5c], eax */
  22169     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x361053F6: fld dword ptr [ebp - 0x60] */
  22170     MEM32(ebp + (-0x80)) = ecx; /* 0x361053F9: mov dword ptr [ebp - 0x80], ecx */
  22171     ecx = MEM32(ebp + (-0x14)); /* 0x361053FC: mov ecx, dword ptr [ebp - 0x14] */
  22172     _st[0] *= _st[1]; /* 0x361053FF: fmul st(1) */
  22173     MEM32(ebp + (-0x78)) = eax; /* 0x36105401: mov dword ptr [ebp - 0x78], eax */
  22174     SET_LO8(eax, MEM8(ecx + ebx + 0xE2C)); /* 0x36105404: mov al, byte ptr [ecx + ebx + 0xe2c] */
  22175     /* test LO8(eax), LO8(eax) */ /* 0x3610540B: test al, al */
  22176     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  22177     _cf = 0;
  22178     _flag_k = FK_NARROW(FK_TEST, 24);
  22179     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3610540D: fstp dword ptr [ebp - 0x60] */
  22180     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36105410: fld dword ptr [ebp - 0x5c] */
  22181     MEM32(ebp + (-0x7C)) = edx; /* 0x36105413: mov dword ptr [ebp - 0x7c], edx */
  22182     _st[0] *= _st[1]; /* 0x36105416: fmul st(1) */
  22183     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x36105418: fstp dword ptr [ebp - 0x5c] */
  22184     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3610541B: fstp st(0) */
  22185     if (TEST_Z(_flag_a, _flag_b)) goto L_3610545E; /* 0x3610541D: je 0x3610545e */
  22186 L_3610541F:
  22187     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3610541F: fld dword ptr [ebp - 0x20] */
  22188     _st[0] = -_st[0]; /* 0x36105422: fchs  */
  22189     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xDC)) = _v; } /* 0x36105424: fstp dword ptr [ebp - 0xdc] */
  22190     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3610542A: fld dword ptr [ebp - 0x1c] */
  22191     edi = MEM32(ebp + (-0xDC)); /* 0x3610542D: mov edi, dword ptr [ebp - 0xdc] */
  22192     _st[0] = -_st[0]; /* 0x36105433: fchs  */
  22193     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD8)) = _v; } /* 0x36105435: fstp dword ptr [ebp - 0xd8] */
  22194     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3610543B: fld dword ptr [ebp - 0x18] */
  22195     edx = MEM32(ebp + (-0xD8)); /* 0x3610543E: mov edx, dword ptr [ebp - 0xd8] */
  22196     _st[0] = -_st[0]; /* 0x36105444: fchs  */
  22197     MEM32(ebp + (-0x88)) = edx; /* 0x36105446: mov dword ptr [ebp - 0x88], edx */
  22198     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD4)) = _v; } /* 0x3610544C: fstp dword ptr [ebp - 0xd4] */
  22199     eax = MEM32(ebp + (-0xD4)); /* 0x36105452: mov eax, dword ptr [ebp - 0xd4] */
  22200     MEM32(ebp + (-0x84)) = eax; /* 0x36105458: mov dword ptr [ebp - 0x84], eax */
  22201 L_3610545E:
  22202     eax = MEM32(ebp + (-0x2C)); /* 0x3610545E: mov eax, dword ptr [ebp - 0x2c] */
  22203     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105461: fld dword ptr [ebp - 0x10] */
  22204     _st[0] *= (double)*(float*)ADDR(eax + (-0x8)); /* 0x36105464: fmul dword ptr [eax - 8] */
  22205     esi = MEM32(ebp + (-0xB8)); /* 0x36105467: mov esi, dword ptr [ebp - 0xb8] */
  22206     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xD0)) = _v; } /* 0x3610546D: fstp dword ptr [ebp - 0xd0] */
  22207     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x36105473: fld dword ptr [eax - 4] */
  22208     ecx = MEM32(ebp + (-0xD0)); /* 0x36105476: mov ecx, dword ptr [ebp - 0xd0] */
  22209     _st[0] *= (double)*(float*)ADDR(esi * 4 + 0x3630D500); /* 0x3610547C: fmul dword ptr [esi*4 + 0x3630d500] */
  22210     MEM32(ebp + (-0xC)) = ecx; /* 0x36105483: mov dword ptr [ebp - 0xc], ecx */
  22211     ecx = MEM32(ebp + (-0x34)); /* 0x36105486: mov ecx, dword ptr [ebp - 0x34] */
  22212     PUSH32(esp, ecx); /* 0x36105489: push ecx */
  22213     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xCC)) = _v; } /* 0x3610548A: fstp dword ptr [ebp - 0xcc] */
  22214     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36105490: fld dword ptr [ebp - 0x10] */
  22215     edx = MEM32(ebp + (-0xCC)); /* 0x36105493: mov edx, dword ptr [ebp - 0xcc] */
  22216     _st[0] *= (double)*(float*)ADDR(eax); /* 0x36105499: fmul dword ptr [eax] */
  22217     ecx = ebp + (-0xC); /* 0x3610549B: lea ecx, [ebp - 0xc] */
  22218     MEM32(ebp + (-0x8)) = edx; /* 0x3610549E: mov dword ptr [ebp - 8], edx */
  22219     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC8)) = _v; } /* 0x361054A1: fstp dword ptr [ebp - 0xc8] */
  22220     eax = MEM32(ebp + (-0xC8)); /* 0x361054A7: mov eax, dword ptr [ebp - 0xc8] */
  22221     MEM32(ebp + (-0x4)) = eax; /* 0x361054AD: mov dword ptr [ebp - 4], eax */
  22222     RECOMP_ICALL(MEM32(0x361701C8)); /* 0x361054B0: call dword ptr [0x361701c8] */
  22223     RECOMP_FLAGS_IN();
  22224     edx = MEM32(eax); /* 0x361054B6: mov edx, dword ptr [eax] */
  22225     ecx = MEM32(eax + 0x4); /* 0x361054B8: mov ecx, dword ptr [eax + 4] */
  22226     MEM32(ebp + (-0xC4)) = edx; /* 0x361054BB: mov dword ptr [ebp - 0xc4], edx */
  22227     fp_push(*(float*)&MEM32(ebp + (-0xC4))); /* 0x361054C1: fld dword ptr [ebp - 0xc4] */
  22228     edx = MEM32(eax + 0x8); /* 0x361054C7: mov edx, dword ptr [eax + 8] */
  22229     MEM32(ebp + (-0xC0)) = ecx; /* 0x361054CA: mov dword ptr [ebp - 0xc0], ecx */
  22230     MEM32(ebp + (-0xBC)) = edx; /* 0x361054D0: mov dword ptr [ebp - 0xbc], edx */
  22231     eax = esi + esi * 2; /* 0x361054D6: lea eax, [esi + esi*2] */
  22232     esi = MEM32(ebp + (-0x30)); /* 0x361054D9: mov esi, dword ptr [ebp - 0x30] */
  22233     ecx = eax * 4 + 0x3630D560; /* 0x361054DC: lea ecx, [eax*4 + 0x3630d560] */
  22234     edx = MEM32(ecx); /* 0x361054E3: mov edx, dword ptr [ecx] */
  22235     eax = MEM32(ecx + 0x4); /* 0x361054E5: mov eax, dword ptr [ecx + 4] */
  22236     ecx = MEM32(ecx + 0x8); /* 0x361054E8: mov ecx, dword ptr [ecx + 8] */
  22237     MEM32(ebp + (-0x54)) = edx; /* 0x361054EB: mov dword ptr [ebp - 0x54], edx */
  22238     _st[0] += (double)*(float*)ADDR(ebp + (-0x54)); /* 0x361054EE: fadd dword ptr [ebp - 0x54] */
  22239     MEM32(ebp + (-0x50)) = eax; /* 0x361054F1: mov dword ptr [ebp - 0x50], eax */
  22240     MEM32(ebp + (-0x4C)) = ecx; /* 0x361054F4: mov dword ptr [ebp - 0x4c], ecx */
  22241     ecx = MEM32(ebx + 0x28); /* 0x361054F7: mov ecx, dword ptr [ebx + 0x28] */
  22242     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x361054FA: fstp dword ptr [ebp - 0x54] */
  22243     fp_push(*(float*)&MEM32(ebp + (-0xC0))); /* 0x361054FD: fld dword ptr [ebp - 0xc0] */
  22244     eax = MEM32(ebp + (-0x54)); /* 0x36105503: mov eax, dword ptr [ebp - 0x54] */
  22245     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36105506: fadd dword ptr [ebp - 0x50] */
  22246     edx = esi; /* 0x36105509: mov edx, esi */
  22247     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  22248     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22249     edx = edx + ecx; /* 0x3610550B: add edx, ecx */
  22250     _flag_k = FK_ADD;
  22251     MEM32(edx) = eax; /* 0x3610550D: mov dword ptr [edx], eax */
  22252     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3610550F: fstp dword ptr [ebp - 0x50] */
  22253     ecx = MEM32(ebp + (-0x50)); /* 0x36105512: mov ecx, dword ptr [ebp - 0x50] */
  22254     fp_push(*(float*)&MEM32(ebp + (-0xBC))); /* 0x36105515: fld dword ptr [ebp - 0xbc] */
  22255     MEM32(edx + 0x4) = ecx; /* 0x3610551B: mov dword ptr [edx + 4], ecx */
  22256     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3610551E: fadd dword ptr [ebp - 0x4c] */
  22257     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36105521: fstp dword ptr [ebp - 0x4c] */
  22258     eax = MEM32(ebp + (-0x4C)); /* 0x36105524: mov eax, dword ptr [ebp - 0x4c] */
  22259     MEM32(edx + 0x8) = eax; /* 0x36105527: mov dword ptr [edx + 8], eax */
  22260     ecx = MEM32(ebx + 0x28); /* 0x3610552A: mov ecx, dword ptr [ebx + 0x28] */
  22261     eax = MEM32(ebp + (-0x88)); /* 0x3610552D: mov eax, dword ptr [ebp - 0x88] */
  22262     edx = esi + ecx + 0xC; /* 0x36105533: lea edx, [esi + ecx + 0xc] */
  22263     ecx = MEM32(ebp + (-0x84)); /* 0x36105537: mov ecx, dword ptr [ebp - 0x84] */
  22264     MEM32(edx) = edi; /* 0x3610553D: mov dword ptr [edx], edi */
  22265     MEM32(edx + 0x4) = eax; /* 0x3610553F: mov dword ptr [edx + 4], eax */
  22266     MEM32(edx + 0x8) = ecx; /* 0x36105542: mov dword ptr [edx + 8], ecx */
  22267     edx = MEM32(ebx + 0x28); /* 0x36105545: mov edx, dword ptr [ebx + 0x28] */
  22268     ecx = MEM32(ebp + (-0x64)); /* 0x36105548: mov ecx, dword ptr [ebp - 0x64] */
  22269     eax = esi + edx + 0x18; /* 0x3610554B: lea eax, [esi + edx + 0x18] */
  22270     edx = MEM32(ebp + (-0x60)); /* 0x3610554F: mov edx, dword ptr [ebp - 0x60] */
  22271     MEM32(eax) = ecx; /* 0x36105552: mov dword ptr [eax], ecx */
  22272     ecx = MEM32(ebp + (-0x5C)); /* 0x36105554: mov ecx, dword ptr [ebp - 0x5c] */
  22273     MEM32(eax + 0x4) = edx; /* 0x36105557: mov dword ptr [eax + 4], edx */
  22274     edx = MEM32(ebp + (-0x158)); /* 0x3610555A: mov edx, dword ptr [ebp - 0x158] */
  22275     MEM32(eax + 0x8) = ecx; /* 0x36105560: mov dword ptr [eax + 8], ecx */
  22276     PUSH32(esp, edx); /* 0x36105563: push edx */
  22277     ecx = ebx + 0xEA8; /* 0x36105564: lea ecx, [ebx + 0xea8] */
  22278     RECOMP_ICALL(0x36137D80u); /* 0x3610556A: call 0x36137d80 */ /* not lifted */
  22279     RECOMP_FLAGS_IN();
  22280     ecx = MEM32(ebx + 0x28); /* 0x3610556F: mov ecx, dword ptr [ebx + 0x28] */
  22281     MEM32(esi + ecx + 0x24) = eax; /* 0x36105572: mov dword ptr [esi + ecx + 0x24], eax */
  22282     edx = MEM32(ebx + 0x28); /* 0x36105576: mov edx, dword ptr [ebx + 0x28] */
  22283     eax = MEM32(ebp + (-0x58)); /* 0x36105579: mov eax, dword ptr [ebp - 0x58] */
  22284     MEM32(esi + edx + 0x28) = eax; /* 0x3610557C: mov dword ptr [esi + edx + 0x28], eax */
  22285     ecx = MEM32(ebx + 0x28); /* 0x36105580: mov ecx, dword ptr [ebx + 0x28] */
  22286     edi = MEM32(ebp + (-0x24)); /* 0x36105583: mov edi, dword ptr [ebp - 0x24] */
  22287     MEM8(esi + ecx + 0x2C) = (uint8_t)(1); /* 0x36105586: mov byte ptr [esi + ecx + 0x2c], 1 */
  22288     esi = MEM32(ebp + (-0x2C)); /* 0x3610558B: mov esi, dword ptr [ebp - 0x2c] */
  22289     goto L_361058EC; /* 0x3610558E: jmp 0x361058ec */
  22290 L_36105593:
  22291     eax = MEM32(ebp + (-0x38)); /* 0x36105593: mov eax, dword ptr [ebp - 0x38] */
  22292     /* test eax, eax */ /* 0x36105596: test eax, eax */
  22293     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  22294     _cf = 0;
  22295     _flag_k = FK_TEST;
  22296     if (TEST_Z(_flag_a, _flag_b)) goto L_361058DE; /* 0x36105598: je 0x361058de */
  22297 L_3610559E:
  22298     SET_LO8(eax, MEM8(ebx + 0xE6C)); /* 0x3610559E: mov al, byte ptr [ebx + 0xe6c] */
  22299     /* test LO8(eax), LO8(eax) */ /* 0x361055A4: test al, al */
  22300     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  22301     _cf = 0;
  22302     _flag_k = FK_NARROW(FK_TEST, 24);
  22303     if (TEST_NZ(_flag_a, _flag_b)) goto L_361058DE; /* 0x361055A6: jne 0x361058de */
  22304 L_361055AC:
  22305     edi = esi + (-0x8); /* 0x361055AC: lea edi, [esi - 8] */
  22306     PUSH32(esp, edi); /* 0x361055AF: push edi */
  22307     RECOMP_ICALL(0x360FCD10u); /* 0x361055B0: call 0x360fcd10 */ /* not lifted */
  22308     RECOMP_FLAGS_IN();
  22309     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22311     esp = esp + 4; /* 0x361055B5: add esp, 4 */
  22312     _flag_k = FK_ADD;
  22313     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x361055B8: call dword ptr [0x3616f254] */
  22314     RECOMP_FLAGS_IN();
  22315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  22316     eax = eax & 0x7FFFu; /* 0x361055BE: and eax, 0x7fff */
  22317     _cf = 0;
  22318     _flag_k = FK_TEST;
  22319     MEM32(ebp + (-0x58)) = eax; /* 0x361055C3: mov dword ptr [ebp - 0x58], eax */
  22320     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x361055C6: fild dword ptr [ebp - 0x58] */
  22321     MEM32(ebp + (-0xE8)) = 0x3F800000u; /* 0x361055C9: mov dword ptr [ebp - 0xe8], 0x3f800000 */
  22322     eax = MEM32(ebp + (-0xE8)); /* 0x361055D3: mov eax, dword ptr [ebp - 0xe8] */
  22323     MEM32(ebp + (-0xEC)) = 0; /* 0x361055D9: mov dword ptr [ebp - 0xec], 0 */
  22324     _st[0] *= (double)*(float*)ADDR(0x36175F30); /* 0x361055E3: fmul dword ptr [0x36175f30] */
  22325     edx = MEM32(ebp + (-0xEC)); /* 0x361055E9: mov edx, dword ptr [ebp - 0xec] */
  22326     MEM32(ebp + (-0x70)) = eax; /* 0x361055EF: mov dword ptr [ebp - 0x70], eax */
  22327     MEM32(ebp + (-0xE4)) = 0; /* 0x361055F2: mov dword ptr [ebp - 0xe4], 0 */
  22328     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361055FC: fcom dword ptr [0x3617040c] */
  22329     ecx = MEM32(ebp + (-0xE4)); /* 0x36105602: mov ecx, dword ptr [ebp - 0xe4] */
  22330     MEM32(ebp + (-0xE0)) = 0; /* 0x36105608: mov dword ptr [ebp - 0xe0], 0 */
  22331     MEM32(ebp + (-0x74)) = edx; /* 0x36105612: mov dword ptr [ebp - 0x74], edx */
  22332     edx = MEM32(ebp + (-0xE0)); /* 0x36105615: mov edx, dword ptr [ebp - 0xe0] */
  22333     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610561B: fnstsw ax */
  22334     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610561D: mov dword ptr [ebp - 0x6c], ecx */
  22335     MEM32(ebp + (-0x68)) = edx; /* 0x36105620: mov dword ptr [ebp - 0x68], edx */
  22336     /* test HI8(eax), 1 */ /* 0x36105623: test ah, 1 */
  22337     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  22338     _cf = 0;
  22339     _flag_k = FK_NARROW(FK_TEST, 24);
  22340     if (TEST_NZ(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105626: jne 0x3610563d */
  22341 L_36105628:
  22342     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36105628: fcom qword ptr [0x361708b8] */
  22343     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3610562E: fnstsw ax */
  22344     /* test HI8(eax), 1 */ /* 0x36105630: test ah, 1 */
  22345     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  22346     _cf = 0;
  22347     _flag_k = FK_NARROW(FK_TEST, 24);
  22348     if (TEST_Z(_flag_a, _flag_b)) goto L_3610563D; /* 0x36105633: je 0x3610563d */
  22349 L_36105635:
  22350     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36105635: fmul dword ptr [0x36170464] */
  22351     goto L_3610565E; /* 0x3610563B: jmp 0x3610565e */
  22352 L_3610563D:
  22353     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3610563D: fmul dword ptr [0x361708b4] */
  22354     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  22355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22356     esp = esp - 8; /* 0x36105643: sub esp, 8 */
  22357     _flag_k = FK_CMP;
  22358     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36105646: fst dword ptr [ebp - 0x34] */
  22359     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36105649: fstp qword ptr [esp] */
  22360     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3610564C: call dword ptr [0x3616f198] */
  22361     RECOMP_FLAGS_IN();
  22362     _st[0] = (double)*(float*)ADDR(ebp + (-0x34)) - _st[0]; /* 0x36105652: fsubr dword ptr [ebp - 0x34] */
  22363     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  22364     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22365     esp = esp + 8; /* 0x36105655: add esp, 8 */
  22366     _flag_k = FK_ADD;
  22367     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x36105658: fmul dword ptr [0x361708b0] */
  22368 L_3610565E:
  22369     fp_push(_st[0]); /* 0x3610565E: fld st(0) */
  22370     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36105660: fsin  */
  22371     fp_push(_st[0]); /* 0x36105662: fld st(0) */
  22372     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105664: fmul dword ptr [edi] */
  22373     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x9C)) = _v; } /* 0x36105666: fstp dword ptr [ebp - 0x9c] */
  22374     eax = MEM32(ebp + (-0x9C)); /* 0x3610566C: mov eax, dword ptr [ebp - 0x9c] */
  22375     MEM32(ebp + (-0x48)) = eax; /* 0x36105672: mov dword ptr [ebp - 0x48], eax */
  22376     fp_push(_st[0]); /* 0x36105675: fld st(0) */
  22377     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x36105677: fmul dword ptr [esi - 4] */
  22378     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x3610567A: fstp dword ptr [ebp - 0x98] */
  22379     ecx = MEM32(ebp + (-0x98)); /* 0x36105680: mov ecx, dword ptr [ebp - 0x98] */
  22380     MEM32(ebp + (-0x44)) = ecx; /* 0x36105686: mov dword ptr [ebp - 0x44], ecx */
  22381     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105689: fmul dword ptr [esi] */
  22382     ecx = ebp + (-0x48); /* 0x3610568B: lea ecx, [ebp - 0x48] */
  22383     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x94)) = _v; } /* 0x3610568E: fstp dword ptr [ebp - 0x94] */
  22384     edx = MEM32(ebp + (-0x94)); /* 0x36105694: mov edx, dword ptr [ebp - 0x94] */
  22385     MEM32(ebp + (-0x40)) = edx; /* 0x3610569A: mov dword ptr [ebp - 0x40], edx */
  22386     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3610569D: fcos  */
  22387     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x3610569F: fstp dword ptr [ebp - 0x90] */
  22388     eax = MEM32(ebp + (-0x90)); /* 0x361056A5: mov eax, dword ptr [ebp - 0x90] */
  22389     MEM32(ebp + (-0x3C)) = eax; /* 0x361056AB: mov dword ptr [ebp - 0x3c], eax */
  22390     RECOMP_ICALL(MEM32(0x361701EC)); /* 0x361056AE: call dword ptr [0x361701ec] */
  22391     RECOMP_FLAGS_IN();
  22392     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x361056B4: fdivr dword ptr [0x36170380] */
  22393     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x361056BA: fld dword ptr [ebp - 0x48] */
  22394     _st[0] *= _st[1]; /* 0x361056BD: fmul st(1) */
  22395     _st[0] = -_st[0]; /* 0x361056BF: fchs  */
  22396     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x361056C1: fstp dword ptr [ebp - 0x48] */
  22397     ecx = MEM32(ebp + (-0x48)); /* 0x361056C4: mov ecx, dword ptr [ebp - 0x48] */
  22398     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361056C7: fld dword ptr [ebp - 0x44] */
  22399     MEM32(ebp + (-0x1A8)) = ecx; /* 0x361056CA: mov dword ptr [ebp - 0x1a8], ecx */
  22400     _st[0] *= _st[1]; /* 0x361056D0: fmul st(1) */
  22401     _st[0] = -_st[0]; /* 0x361056D2: fchs  */
  22402     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361056D4: fstp dword ptr [ebp - 0x44] */
  22403     edx = MEM32(ebp + (-0x44)); /* 0x361056D7: mov edx, dword ptr [ebp - 0x44] */
  22404     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x361056DA: fld dword ptr [ebp - 0x40] */
  22405     MEM32(ebp + (-0x1A4)) = edx; /* 0x361056DD: mov dword ptr [ebp - 0x1a4], edx */
  22406     edx = MEM32(ebp + (-0x9C)); /* 0x361056E3: mov edx, dword ptr [ebp - 0x9c] */
  22407     _st[0] *= _st[1]; /* 0x361056E9: fmul st(1) */
  22408     MEM32(ebp + (-0x10C)) = edx; /* 0x361056EB: mov dword ptr [ebp - 0x10c], edx */
  22409     edx = MEM32(ebp + (-0x90)); /* 0x361056F1: mov edx, dword ptr [ebp - 0x90] */
  22410     _st[0] = -_st[0]; /* 0x361056F7: fchs  */
  22411     MEM32(ebp + (-0x100)) = edx; /* 0x361056F9: mov dword ptr [ebp - 0x100], edx */
  22412     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x361056FF: fstp dword ptr [ebp - 0x40] */
  22413     eax = MEM32(ebp + (-0x40)); /* 0x36105702: mov eax, dword ptr [ebp - 0x40] */
  22414     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36105705: fld dword ptr [ebp - 0x3c] */
  22415     MEM32(ebp + (-0x1A0)) = eax; /* 0x36105708: mov dword ptr [ebp - 0x1a0], eax */
  22416     eax = MEM32(ebp + (-0x98)); /* 0x3610570E: mov eax, dword ptr [ebp - 0x98] */
  22417     _st[0] *= _st[1]; /* 0x36105714: fmul st(1) */
  22418     MEM32(ebp + (-0x108)) = eax; /* 0x36105716: mov dword ptr [ebp - 0x108], eax */
  22419     eax = ebp + (-0x74); /* 0x3610571C: lea eax, [ebp - 0x74] */
  22420     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x3610571F: fstp dword ptr [ebp - 0x3c] */
  22421     ecx = MEM32(ebp + (-0x3C)); /* 0x36105722: mov ecx, dword ptr [ebp - 0x3c] */
  22422     MEM32(ebp + (-0x19C)) = ecx; /* 0x36105725: mov dword ptr [ebp - 0x19c], ecx */
  22423     ecx = MEM32(ebp + (-0x94)); /* 0x3610572B: mov ecx, dword ptr [ebp - 0x94] */
  22424     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36105731: fstp st(0) */
  22425     MEM32(ebp + (-0x104)) = ecx; /* 0x36105733: mov dword ptr [ebp - 0x104], ecx */
  22426     PUSH32(esp, eax); /* 0x36105739: push eax */
  22427     ecx = ebp + (-0x10C); /* 0x3610573A: lea ecx, [ebp - 0x10c] */
  22428     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105740: call dword ptr [0x3617019c] */
  22429     RECOMP_FLAGS_IN();
  22430     ecx = MEM32(eax); /* 0x36105746: mov ecx, dword ptr [eax] */
  22431     edx = MEM32(eax + 0x4); /* 0x36105748: mov edx, dword ptr [eax + 4] */
  22432     MEM32(ebp + (-0xFC)) = ecx; /* 0x3610574B: mov dword ptr [ebp - 0xfc], ecx */
  22433     ecx = MEM32(eax + 0x8); /* 0x36105751: mov ecx, dword ptr [eax + 8] */
  22434     MEM32(ebp + (-0xF8)) = edx; /* 0x36105754: mov dword ptr [ebp - 0xf8], edx */
  22435     edx = MEM32(eax + 0xC); /* 0x3610575A: mov edx, dword ptr [eax + 0xc] */
  22436     eax = ebp + (-0x1A8); /* 0x3610575D: lea eax, [ebp - 0x1a8] */
  22437     MEM32(ebp + (-0xF4)) = ecx; /* 0x36105763: mov dword ptr [ebp - 0xf4], ecx */
  22438     PUSH32(esp, eax); /* 0x36105769: push eax */
  22439     ecx = ebp + (-0xFC); /* 0x3610576A: lea ecx, [ebp - 0xfc] */
  22440     MEM32(ebp + (-0xF0)) = edx; /* 0x36105770: mov dword ptr [ebp - 0xf0], edx */
  22441     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x36105776: call dword ptr [0x3617019c] */
  22442     RECOMP_FLAGS_IN();
  22443     ecx = MEM32(eax); /* 0x3610577C: mov ecx, dword ptr [eax] */
  22444     MEM32(ebp + (-0x74)) = ecx; /* 0x3610577E: mov dword ptr [ebp - 0x74], ecx */
  22445     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x36105781: fld dword ptr [ebp - 0x74] */
  22446     edx = MEM32(eax + 0x4); /* 0x36105784: mov edx, dword ptr [eax + 4] */
  22447     MEM32(ebp + (-0x70)) = edx; /* 0x36105787: mov dword ptr [ebp - 0x70], edx */
  22448     ecx = MEM32(eax + 0x8); /* 0x3610578A: mov ecx, dword ptr [eax + 8] */
  22449     MEM32(ebp + (-0x6C)) = ecx; /* 0x3610578D: mov dword ptr [ebp - 0x6c], ecx */
  22450     edx = MEM32(eax + 0xC); /* 0x36105790: mov edx, dword ptr [eax + 0xc] */
  22451     MEM32(ebp + (-0x68)) = edx; /* 0x36105793: mov dword ptr [ebp - 0x68], edx */
  22452     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36105796: fld dword ptr [ebp - 0x70] */
  22453     eax = MEM32(edi); /* 0x36105799: mov eax, dword ptr [edi] */
  22454     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x3610579B: fstp dword ptr [ebp - 0xb0] */
  22455     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x361057A1: fld dword ptr [ebp - 0x6c] */
  22456     edx = MEM32(ebp + (-0xB0)); /* 0x361057A4: mov edx, dword ptr [ebp - 0xb0] */
  22457     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xAC)) = _v; } /* 0x361057AA: fstp dword ptr [ebp - 0xac] */
  22458     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x361057B0: fld dword ptr [ebp - 0xb0] */
  22459     MEM32(ebp + (-0x1C8)) = eax; /* 0x361057B6: mov dword ptr [ebp - 0x1c8], eax */
  22460     _st[0] *= (double)*(float*)ADDR(esi); /* 0x361057BC: fmul dword ptr [esi] */
  22461     eax = MEM32(esi + (-0x4)); /* 0x361057BE: mov eax, dword ptr [esi - 4] */
  22462     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057C1: fld dword ptr [ebp - 0xac] */
  22463     MEM32(ebp + (-0x1C0)) = edx; /* 0x361057C7: mov dword ptr [ebp - 0x1c0], edx */
  22464     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x361057CD: fmul dword ptr [esi - 4] */
  22465     edx = MEM32(ebp + (-0xAC)); /* 0x361057D0: mov edx, dword ptr [ebp - 0xac] */
  22466     MEM32(ebp + (-0x1BC)) = eax; /* 0x361057D6: mov dword ptr [ebp - 0x1bc], eax */
  22467     eax = MEM32(esi); /* 0x361057DC: mov eax, dword ptr [esi] */
  22468     { double _v = fp_pop(); _st[0] -= _v; } /* 0x361057DE: fsubp st(1) */
  22469     MEM32(ebp + (-0x1B4)) = edx; /* 0x361057E0: mov dword ptr [ebp - 0x1b4], edx */
  22470     MEM32(ebp + (-0x1B0)) = eax; /* 0x361057E6: mov dword ptr [ebp - 0x1b0], eax */
  22471     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x361057EC: fstp dword ptr [ebp - 0x58] */
  22472     fp_push(*(float*)&MEM32(ebp + (-0xAC))); /* 0x361057EF: fld dword ptr [ebp - 0xac] */
  22473     ecx = MEM32(ebp + (-0x58)); /* 0x361057F5: mov ecx, dword ptr [ebp - 0x58] */
  22474     _st[0] *= (double)*(float*)ADDR(edi); /* 0x361057F8: fmul dword ptr [edi] */
  22475     MEM32(ebp + (-0x1C4)) = ecx; /* 0x361057FA: mov dword ptr [ebp - 0x1c4], ecx */
  22476     fp_push(_st[1]); /* 0x36105800: fld st(1) */
  22477     _st[0] *= (double)*(float*)ADDR(esi); /* 0x36105802: fmul dword ptr [esi] */
  22478     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105804: fsubp st(1) */
  22479     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xB8)) = _v; } /* 0x36105806: fstp dword ptr [ebp - 0xb8] */
  22480     ecx = MEM32(ebp + (-0xB8)); /* 0x3610580C: mov ecx, dword ptr [ebp - 0xb8] */
  22481     fp_push(_st[0]); /* 0x36105812: fld st(0) */
  22482     MEM32(ebp + (-0x1B8)) = ecx; /* 0x36105814: mov dword ptr [ebp - 0x1b8], ecx */
  22483     _st[0] *= (double)*(float*)ADDR(esi + (-0x4)); /* 0x3610581A: fmul dword ptr [esi - 4] */
  22484     esi = ebp + (-0x1CC); /* 0x3610581D: lea esi, [ebp - 0x1cc] */
  22485     fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x36105823: fld dword ptr [ebp - 0xb0] */
  22486     _st[0] *= (double)*(float*)ADDR(edi); /* 0x36105829: fmul dword ptr [edi] */
  22487     edi = ebp + (-0x214); /* 0x3610582B: lea edi, [ebp - 0x214] */
  22488     { double _v = fp_pop(); _st[0] -= _v; } /* 0x36105831: fsubp st(1) */
  22489     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x15C)) = _v; } /* 0x36105833: fstp dword ptr [ebp - 0x15c] */
  22490     ecx = MEM32(ebp + (-0x15C)); /* 0x36105839: mov ecx, dword ptr [ebp - 0x15c] */
  22491     MEM32(ebp + (-0x1AC)) = ecx; /* 0x3610583F: mov dword ptr [ebp - 0x1ac], ecx */
  22492     ecx = 9; /* 0x36105845: mov ecx, 9 */
  22493     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1CC)) = _v; } /* 0x3610584A: fstp dword ptr [ebp - 0x1cc] */
  22494     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36105850: 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; }
  22495     ecx = ebp + (-0x214); /* 0x36105852: lea ecx, [ebp - 0x214] */
  22496     RECOMP_ICALL(MEM32(0x361701F8)); /* 0x36105858: call dword ptr [0x361701f8] */
  22497     RECOMP_FLAGS_IN();
  22498     edi = MEM32(ebp + (-0x28)); /* 0x3610585E: mov edi, dword ptr [ebp - 0x28] */
  22499     ecx = 9; /* 0x36105861: mov ecx, 9 */
  22500     esi = ebp + (-0x214); /* 0x36105866: lea esi, [ebp - 0x214] */
  22501     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3610586C: 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; }
  22502     esi = MEM32(0x3616F254); /* 0x3610586E: mov esi, dword ptr [0x3616f254] */
  22503     RECOMP_ICALL(esi); /* 0x36105874: call esi */
  22504     RECOMP_FLAGS_IN();
  22505     edx = MEM32(ebp + (-0x2C)); /* 0x36105876: mov edx, dword ptr [ebp - 0x2c] */
  22506     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7FFFu);
  22507     eax = eax & 0x7FFFu; /* 0x36105879: and eax, 0x7fff */
  22508     _cf = 0;
  22509     _flag_k = FK_TEST;
  22510     MEM32(ebp + (-0x58)) = eax; /* 0x3610587E: mov dword ptr [ebp - 0x58], eax */
  22511     fp_push((double)(int32_t)MEM32(ebp + (-0x58))); /* 0x36105881: fild dword ptr [ebp - 0x58] */
  22512     _st[0] *= (double)*(float*)ADDR(0x36175F2C); /* 0x36105884: fmul dword ptr [0x36175f2c] */
  22513     { float _v = (float)fp_pop(); *(float*)ADDR(edx + (-0x4)) = _v; } /* 0x3610588A: fstp dword ptr [edx - 4] */
  22514     RECOMP_ICALL(esi); /* 0x3610588D: call esi */
  22515     RECOMP_FLAGS_IN();
  22516     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3610588F: cdq  */
  22517     ecx = 6; /* 0x36105890: mov ecx, 6 */
  22518     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x36105895: idiv ecx */
  22519       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  22520       else { eax = 0; edx = 0; } }
  22521     ecx = MEM32(ebp + (-0x24)); /* 0x36105897: mov ecx, dword ptr [ebp - 0x24] */
  22522     MEM32(ecx + (-0x100)) = edx; /* 0x3610589A: mov dword ptr [ecx - 0x100], edx */
  22523     eax = MEM32(ebx + 0xEF0); /* 0x361058A0: mov eax, dword ptr [ebx + 0xef0] */
  22524     /* cmp eax, 6 */ /* 0x361058A6: cmp eax, 6 */
  22525     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  22526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22527     _flag_k = FK_CMP;
  22528     if (CMP_EQ(_flag_a, _flag_b)) goto L_361058B1; /* 0x361058A9: je 0x361058b1 */
  22529 L_361058AB:
  22530     MEM32(ecx + (-0x100)) = eax; /* 0x361058AB: mov dword ptr [ecx - 0x100], eax */
  22531 L_361058B1:
  22532     fp_push(*(float*)&MEM32(ebx + 0xEDC)); /* 0x361058B1: fld dword ptr [ebx + 0xedc] */
  22533     _st[0] += (double)*(float*)ADDR(ebx + 0xC); /* 0x361058B7: fadd dword ptr [ebx + 0xc] */
  22534     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x361058BA: fstp dword ptr [ecx] */
  22535     RECOMP_ICALL(esi); /* 0x361058BC: call esi */
  22536     RECOMP_FLAGS_IN();
  22537     edx = MEM32(ebp + (-0x14)); /* 0x361058BE: mov edx, dword ptr [ebp - 0x14] */
  22538     esi = MEM32(ebp + (-0x2C)); /* 0x361058C1: mov esi, dword ptr [ebp - 0x2c] */
  22539     edi = MEM32(ebp + (-0x24)); /* 0x361058C4: mov edi, dword ptr [ebp - 0x24] */
  22540     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  22541     eax = eax & 1; /* 0x361058C7: and eax, 1 */
  22542     _cf = 0;
  22543     _flag_k = FK_TEST;
  22544     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  22545     SET_LO8(eax, LO8(eax) - 1); /* 0x361058CA: dec al */
  22546     _flag_k = FK_NARROW(FK_DEC, 24);
  22547     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  22548     _cf = (LO8(eax)) != 0;
  22549     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361058CC: neg al */
  22550     _flag_k = FK_NARROW(FK_CMP, 24);
  22551     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361058CE: sbb al, al */
  22552       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
  22553       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  22554       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  22555     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  22556     SET_LO8(eax, LO8(eax) + 1); /* 0x361058D0: inc al */
  22557     _flag_k = FK_NARROW(FK_INC, 24);
  22558     MEM8(edx + ebx + 0xE2C) = (uint8_t)(LO8(eax)); /* 0x361058D2: mov byte ptr [edx + ebx + 0xe2c], al */
  22559     _flag_a = (uint32_t)(MEM32(ebp + (-0x38))); _flag_b = (uint32_t)(1);
  22560     MEM32(ebp + (-0x38)) = MEM32(ebp + (-0x38)) - 1; /* 0x361058D9: dec dword ptr [ebp - 0x38] */
  22561     _flag_k = FK_DEC;
  22562     goto L_361058EC; /* 0x361058DC: jmp 0x361058ec */
  22563 L_361058DE:
  22564     eax = MEM32(ebx + 0x28); /* 0x361058DE: mov eax, dword ptr [ebx + 0x28] */
  22565     MEM8(eax + ecx + 0x2C) = (uint8_t)(0); /* 0x361058E1: mov byte ptr [eax + ecx + 0x2c], 0 */
  22566     MEM32(edi) = 0xC2C80000u; /* 0x361058E6: mov dword ptr [edi], 0xc2c80000 */
  22567 L_361058EC:
  22568     eax = MEM32(ebp + (-0x14)); /* 0x361058EC: mov eax, dword ptr [ebp - 0x14] */
  22569     ecx = MEM32(ebp + (-0x30)); /* 0x361058EF: mov ecx, dword ptr [ebp - 0x30] */
  22570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  22571     eax = eax + 1; /* 0x361058F2: inc eax */
  22572     _flag_k = FK_INC;
  22573     MEM32(ebp + (-0x14)) = eax; /* 0x361058F3: mov dword ptr [ebp - 0x14], eax */
  22574     eax = MEM32(ebp + (-0x28)); /* 0x361058F6: mov eax, dword ptr [ebp - 0x28] */
  22575     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  22576     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22577     ecx = ecx + 0x30u; /* 0x361058F9: add ecx, 0x30 */
  22578     _flag_k = FK_ADD;
  22579     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  22580     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22581     edi = edi + 4; /* 0x361058FC: add edi, 4 */
  22582     _flag_k = FK_ADD;
  22583     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
  22584     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22585     esi = esi + 0xCu; /* 0x361058FF: add esi, 0xc */
  22586     _flag_k = FK_ADD;
  22587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  22588     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22589     eax = eax + 0x24u; /* 0x36105902: add eax, 0x24 */
  22590     _flag_k = FK_ADD;
  22591     /* cmp ecx, 0xC00u */ /* 0x36105905: cmp ecx, 0xc00 */
  22592     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC00u);
  22593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22594     _flag_k = FK_CMP;
  22595     MEM32(ebp + (-0x24)) = edi; /* 0x3610590B: mov dword ptr [ebp - 0x24], edi */
  22596     MEM32(ebp + (-0x2C)) = esi; /* 0x3610590E: mov dword ptr [ebp - 0x2c], esi */
  22597     MEM32(ebp + (-0x28)) = eax; /* 0x36105911: mov dword ptr [ebp - 0x28], eax */
  22598     MEM32(ebp + (-0x30)) = ecx; /* 0x36105914: mov dword ptr [ebp - 0x30], ecx */
  22599     RECOMP_BACKEDGE();
  22600     if (CMP_L(_flag_a, _flag_b)) goto L_361052B2; /* 0x36105917: jl 0x361052b2 */
  22601 L_3610591D:
  22602     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  22603     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  22604     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  22605     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22606     edx = 0; /* 0x36105929: xor edx, edx */
  22607     _cf = 0;
  22608     _flag_k = FK_TEST;
  22609     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  22610     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  22611     _cf = 0;
  22612     _flag_k = FK_NARROW(FK_TEST, 24);
  22613     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  22614     PUSH32(esp, edx); /* 0x36105930: push edx */
  22615     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  22616     RECOMP_FLAGS_IN();
  22617     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  22618     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  22619     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  22620     esp = ebp; /* 0x3610593A: mov esp, ebp */
  22621     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  22622     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  22623     RECOMP_REGS_OUT();
  22624 }
  22625 
  22626 void sub_3610591D(void) {
  22627     int _fpu_cmp = 0;
  22628     uint32_t _cf = 0;
  22629     int _df = 1;
  22630     uint32_t _flag_k = FK_NONE;
  22631     uint32_t _flag_a = 0, _flag_b = 0;
  22632     uint32_t _itail_tgt = 0;
  22633     RECOMP_REGS_LOCALS
  22634     RECOMP_ENTER(0x3610591Du);
  22635 
  22636 L_3610591D:
  22637     ecx = MEM32(ebx + 0x20); /* 0x3610591D: mov ecx, dword ptr [ebx + 0x20] */
  22638     SET_LO8(eax, MEM8(ecx + 0x108)); /* 0x36105920: mov al, byte ptr [ecx + 0x108] */
  22639     ecx = MEM32(ebx + 0x24); /* 0x36105926: mov ecx, dword ptr [ebx + 0x24] */
  22640     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22641     edx = 0; /* 0x36105929: xor edx, edx */
  22642     _cf = 0;
  22643     _flag_k = FK_TEST;
  22644     /* test LO8(eax), LO8(eax) */ /* 0x3610592B: test al, al */
  22645     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  22646     _cf = 0;
  22647     _flag_k = FK_NARROW(FK_TEST, 24);
  22648     SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3610592D: sete dl */
  22649     PUSH32(esp, edx); /* 0x36105930: push edx */
  22650     RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36105931: call dword ptr [0x3616f620] */
  22651     RECOMP_FLAGS_IN();
  22652     edi = POP32_VAL(esp); /* 0x36105937: pop edi */
  22653     esi = POP32_VAL(esp); /* 0x36105938: pop esi */
  22654     ebx = POP32_VAL(esp); /* 0x36105939: pop ebx */
  22655     esp = ebp; /* 0x3610593A: mov esp, ebp */
  22656     ebp = POP32_VAL(esp); /* 0x3610593C: pop ebp */
  22657     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610593D: ret  */
  22658     RECOMP_REGS_OUT();
  22659 }
  22660 
  22661 void sub_36105940(void) {
  22662     int _fpu_cmp = 0;
  22663     uint32_t _cf = 0;
  22664     int _df = 1;
  22665     uint32_t _flag_k = FK_NONE;
  22666     uint32_t _flag_a = 0, _flag_b = 0;
  22667     uint32_t _itail_tgt = 0;
  22668     RECOMP_REGS_LOCALS
  22669     RECOMP_ENTER(0x36105940u);
  22670 
  22671 L_36105940:
  22672     PUSH32(esp, ebp); /* 0x36105940: push ebp */
  22673     ebp = esp; /* 0x36105941: mov ebp, esp */
  22674     eax = MEM32(ebp + 0x8); /* 0x36105943: mov eax, dword ptr [ebp + 8] */
  22675     edx = MEM32(ebp + 0xC); /* 0x36105946: mov edx, dword ptr [ebp + 0xc] */
  22676     MEM32(ecx + 0xEAC) = eax; /* 0x36105949: mov dword ptr [ecx + 0xeac], eax */
  22677     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  22678     SET_LO8(eax, 0); /* 0x3610594F: xor al, al */
  22679     _cf = 0;
  22680     _flag_k = FK_NARROW(FK_TEST, 24);
  22681     MEM8(ecx + 0xEA8) = (uint8_t)(LO8(eax)); /* 0x36105951: mov byte ptr [ecx + 0xea8], al */
  22682     MEM32(ecx + 0xEB0) = edx; /* 0x36105957: mov dword ptr [ecx + 0xeb0], edx */
  22683     edx = MEM32(ebp + 0x10); /* 0x3610595D: mov edx, dword ptr [ebp + 0x10] */
  22684     MEM8(ecx + 0xEA8) = (uint8_t)(LO8(eax)); /* 0x36105960: mov byte ptr [ecx + 0xea8], al */
  22685     MEM32(ecx + 0xEB4) = edx; /* 0x36105966: mov dword ptr [ecx + 0xeb4], edx */
  22686     edx = MEM32(ebp + 0x14); /* 0x3610596C: mov edx, dword ptr [ebp + 0x14] */
  22687     MEM8(ecx + 0xEA8) = (uint8_t)(LO8(eax)); /* 0x3610596F: mov byte ptr [ecx + 0xea8], al */
  22688     MEM32(ecx + 0xEB8) = edx; /* 0x36105975: mov dword ptr [ecx + 0xeb8], edx */
  22689     MEM8(ecx + 0xEA8) = (uint8_t)(LO8(eax)); /* 0x3610597B: mov byte ptr [ecx + 0xea8], al */
  22690     ebp = POP32_VAL(esp); /* 0x36105981: pop ebp */
  22691     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36105982: ret 0x10 */
  22692     RECOMP_REGS_OUT();
  22693 }
  22694 
  22695 void sub_36105990(void) {
  22696     int _fpu_cmp = 0;
  22697     uint32_t _cf = 0;
  22698     int _df = 1;
  22699     uint32_t _flag_k = FK_NONE;
  22700     uint32_t _flag_a = 0, _flag_b = 0;
  22701     uint32_t _itail_tgt = 0;
  22702     RECOMP_REGS_LOCALS
  22703     RECOMP_ENTER(0x36105990u);
  22704 
  22705 L_36105990:
  22706     PUSH32(esp, ebp); /* 0x36105990: push ebp */
  22707     ebp = esp; /* 0x36105991: mov ebp, esp */
  22708     eax = MEM32(ebp + 0x8); /* 0x36105993: mov eax, dword ptr [ebp + 8] */
  22709     edx = MEM32(ebp + 0xC); /* 0x36105996: mov edx, dword ptr [ebp + 0xc] */
  22710     MEM32(ecx + 0xEBC) = eax; /* 0x36105999: mov dword ptr [ecx + 0xebc], eax */
  22711     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  22712     SET_LO8(eax, 0); /* 0x3610599F: xor al, al */
  22713     _cf = 0;
  22714     _flag_k = FK_NARROW(FK_TEST, 24);
  22715     MEM8(ecx + 0xEA8) = (uint8_t)(LO8(eax)); /* 0x361059A1: mov byte ptr [ecx + 0xea8], al */
  22716     MEM32(ecx + 0xEC0) = edx; /* 0x361059A7: mov dword ptr [ecx + 0xec0], edx */
  22717     edx = MEM32(ebp + 0x10); /* 0x361059AD: mov edx, dword ptr [ebp + 0x10] */
  22718     MEM8(ecx + 0xEA8) = (uint8_t)(LO8(eax)); /* 0x361059B0: mov byte ptr [ecx + 0xea8], al */
  22719     MEM32(ecx + 0xEC4) = edx; /* 0x361059B6: mov dword ptr [ecx + 0xec4], edx */
  22720     edx = MEM32(ebp + 0x14); /* 0x361059BC: mov edx, dword ptr [ebp + 0x14] */
  22721     MEM8(ecx + 0xEA8) = (uint8_t)(LO8(eax)); /* 0x361059BF: mov byte ptr [ecx + 0xea8], al */
  22722     MEM32(ecx + 0xEC8) = edx; /* 0x361059C5: mov dword ptr [ecx + 0xec8], edx */
  22723     MEM8(ecx + 0xEA8) = (uint8_t)(LO8(eax)); /* 0x361059CB: mov byte ptr [ecx + 0xea8], al */
  22724     ebp = POP32_VAL(esp); /* 0x361059D1: pop ebp */
  22725     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x361059D2: ret 0x10 */
  22726     RECOMP_REGS_OUT();
  22727 }
  22728 
  22729 void sub_361059E0(void) {
  22730     int _fpu_cmp = 0;
  22731     uint32_t _cf = 0;
  22732     int _df = 1;
  22733     uint32_t _flag_k = FK_NONE;
  22734     uint32_t _flag_a = 0, _flag_b = 0;
  22735     uint32_t _itail_tgt = 0;
  22736     RECOMP_REGS_LOCALS
  22737     RECOMP_ENTER(0x361059E0u);
  22738 
  22739 L_361059E0:
  22740     PUSH32(esp, esi); /* 0x361059E0: push esi */
  22741     esi = ecx; /* 0x361059E1: mov esi, ecx */
  22742     eax = MEM32(esi + 0x4); /* 0x361059E3: mov eax, dword ptr [esi + 4] */
  22743     PUSH32(esp, edi); /* 0x361059E6: push edi */
  22744     PUSH32(esp, eax); /* 0x361059E7: push eax */
  22745     RECOMP_ICALL(0x360F7B00u); /* 0x361059E8: call 0x360f7b00 */ /* not lifted */
  22746     RECOMP_FLAGS_IN();
  22747     ecx = eax; /* 0x361059ED: mov ecx, eax */
  22748     RECOMP_ICALL(0x360FBFF0u); /* 0x361059EF: call 0x360fbff0 */ /* not lifted */
  22749     RECOMP_FLAGS_IN();
  22750     ecx = eax; /* 0x361059F4: mov ecx, eax */
  22751     RECOMP_ICALL(0x361371A0u); /* 0x361059F6: call 0x361371a0 */ /* not lifted */
  22752     RECOMP_FLAGS_IN();
  22753     edi = eax; /* 0x361059FB: mov edi, eax */
  22754     PUSH32(esp, 0); /* 0x361059FD: push 0 */
  22755     ecx = edi; /* 0x361059FF: mov ecx, edi */
  22756     RECOMP_ICALL(0x36136FE0u); /* 0x36105A01: call 0x36136fe0 */ /* not lifted */
  22757     RECOMP_FLAGS_IN();
  22758     PUSH32(esp, 8); /* 0x36105A06: push 8 */
  22759     ecx = edi; /* 0x36105A08: mov ecx, edi */
  22760     MEM32(esi + 0xE80) = eax; /* 0x36105A0A: mov dword ptr [esi + 0xe80], eax */
  22761     RECOMP_ICALL(0x36137010u); /* 0x36105A10: call 0x36137010 */ /* not lifted */
  22762     RECOMP_FLAGS_IN();
  22763     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36105A15: fstp dword ptr [esi + 0x10] */
  22764     PUSH32(esp, 9); /* 0x36105A18: push 9 */
  22765     ecx = edi; /* 0x36105A1A: mov ecx, edi */
  22766     RECOMP_ICALL(0x36136FE0u); /* 0x36105A1C: call 0x36136fe0 */ /* not lifted */
  22767     RECOMP_FLAGS_IN();
  22768     PUSH32(esp, 0xAu); /* 0x36105A21: push 0xa */
  22769     ecx = edi; /* 0x36105A23: mov ecx, edi */
  22770     MEM32(esi + 0xE84) = eax; /* 0x36105A25: mov dword ptr [esi + 0xe84], eax */
  22771     RECOMP_ICALL(0x36136FE0u); /* 0x36105A2B: call 0x36136fe0 */ /* not lifted */
  22772     RECOMP_FLAGS_IN();
  22773     PUSH32(esp, 0xBu); /* 0x36105A30: push 0xb */
  22774     ecx = edi; /* 0x36105A32: mov ecx, edi */
  22775     MEM32(esi + 0xE88) = eax; /* 0x36105A34: mov dword ptr [esi + 0xe88], eax */
  22776     RECOMP_ICALL(0x36137010u); /* 0x36105A3A: call 0x36137010 */ /* not lifted */
  22777     RECOMP_FLAGS_IN();
  22778     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xE8C) = _v; } /* 0x36105A3F: fstp dword ptr [esi + 0xe8c] */
  22779     PUSH32(esp, 0xCu); /* 0x36105A45: push 0xc */
  22780     ecx = edi; /* 0x36105A47: mov ecx, edi */
  22781     RECOMP_ICALL(0x36137010u); /* 0x36105A49: call 0x36137010 */ /* not lifted */
  22782     RECOMP_FLAGS_IN();
  22783     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xE90) = _v; } /* 0x36105A4E: fstp dword ptr [esi + 0xe90] */
  22784     PUSH32(esp, 0xDu); /* 0x36105A54: push 0xd */
  22785     ecx = edi; /* 0x36105A56: mov ecx, edi */
  22786     RECOMP_ICALL(0x36137010u); /* 0x36105A58: call 0x36137010 */ /* not lifted */
  22787     RECOMP_FLAGS_IN();
  22788     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xE94) = _v; } /* 0x36105A5D: fstp dword ptr [esi + 0xe94] */
  22789     PUSH32(esp, 0xEu); /* 0x36105A63: push 0xe */
  22790     ecx = edi; /* 0x36105A65: mov ecx, edi */
  22791     RECOMP_ICALL(0x36137010u); /* 0x36105A67: call 0x36137010 */ /* not lifted */
  22792     RECOMP_FLAGS_IN();
  22793     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xE98) = _v; } /* 0x36105A6C: fstp dword ptr [esi + 0xe98] */
  22794     PUSH32(esp, 0xFu); /* 0x36105A72: push 0xf */
  22795     ecx = edi; /* 0x36105A74: mov ecx, edi */
  22796     RECOMP_ICALL(0x36137010u); /* 0x36105A76: call 0x36137010 */ /* not lifted */
  22797     RECOMP_FLAGS_IN();
  22798     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xE9C) = _v; } /* 0x36105A7B: fstp dword ptr [esi + 0xe9c] */
  22799     PUSH32(esp, 0x10u); /* 0x36105A81: push 0x10 */
  22800     ecx = edi; /* 0x36105A83: mov ecx, edi */
  22801     RECOMP_ICALL(0x36137010u); /* 0x36105A85: call 0x36137010 */ /* not lifted */
  22802     RECOMP_FLAGS_IN();
  22803     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xEA0) = _v; } /* 0x36105A8A: fstp dword ptr [esi + 0xea0] */
  22804     PUSH32(esp, 0x11u); /* 0x36105A90: push 0x11 */
  22805     ecx = edi; /* 0x36105A92: mov ecx, edi */
  22806     RECOMP_ICALL(0x36137010u); /* 0x36105A94: call 0x36137010 */ /* not lifted */
  22807     RECOMP_FLAGS_IN();
  22808     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xEA4) = _v; } /* 0x36105A99: fstp dword ptr [esi + 0xea4] */
  22809     PUSH32(esp, 0x12u); /* 0x36105A9F: push 0x12 */
  22810     PUSH32(esp, edi); /* 0x36105AA1: push edi */
  22811     ecx = esi + 0xEA8; /* 0x36105AA2: lea ecx, [esi + 0xea8] */
  22812     RECOMP_ICALL(0x36137CF0u); /* 0x36105AA8: call 0x36137cf0 */ /* not lifted */
  22813     RECOMP_FLAGS_IN();
  22814     PUSH32(esp, 0x1Au); /* 0x36105AAD: push 0x1a */
  22815     ecx = edi; /* 0x36105AAF: mov ecx, edi */
  22816     RECOMP_ICALL(0x36137010u); /* 0x36105AB1: call 0x36137010 */ /* not lifted */
  22817     RECOMP_FLAGS_IN();
  22818     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36105AB6: fstp dword ptr [esi + 0x10] */
  22819     PUSH32(esp, 0x1Bu); /* 0x36105AB9: push 0x1b */
  22820     ecx = edi; /* 0x36105ABB: mov ecx, edi */
  22821     RECOMP_ICALL(0x36137010u); /* 0x36105ABD: call 0x36137010 */ /* not lifted */
  22822     RECOMP_FLAGS_IN();
  22823     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xEE0) = _v; } /* 0x36105AC2: fstp dword ptr [esi + 0xee0] */
  22824     PUSH32(esp, 0x1Cu); /* 0x36105AC8: push 0x1c */
  22825     ecx = edi; /* 0x36105ACA: mov ecx, edi */
  22826     RECOMP_ICALL(0x36137010u); /* 0x36105ACC: call 0x36137010 */ /* not lifted */
  22827     RECOMP_FLAGS_IN();
  22828     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xEE4) = _v; } /* 0x36105AD1: fstp dword ptr [esi + 0xee4] */
  22829     PUSH32(esp, 0x1Du); /* 0x36105AD7: push 0x1d */
  22830     ecx = edi; /* 0x36105AD9: mov ecx, edi */
  22831     RECOMP_ICALL(0x36137010u); /* 0x36105ADB: call 0x36137010 */ /* not lifted */
  22832     RECOMP_FLAGS_IN();
  22833     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xEE8) = _v; } /* 0x36105AE0: fstp dword ptr [esi + 0xee8] */
  22834     PUSH32(esp, 0x1Eu); /* 0x36105AE6: push 0x1e */
  22835     ecx = edi; /* 0x36105AE8: mov ecx, edi */
  22836     RECOMP_ICALL(0x36136FE0u); /* 0x36105AEA: call 0x36136fe0 */ /* not lifted */
  22837     RECOMP_FLAGS_IN();
  22838     MEM32(esi + 0xEEC) = eax; /* 0x36105AEF: mov dword ptr [esi + 0xeec], eax */
  22839     PUSH32(esp, 0x1Fu); /* 0x36105AF5: push 0x1f */
  22840     ecx = edi; /* 0x36105AF7: mov ecx, edi */
  22841     RECOMP_ICALL(0x36136FE0u); /* 0x36105AF9: call 0x36136fe0 */ /* not lifted */
  22842     RECOMP_FLAGS_IN();
  22843     edi = POP32_VAL(esp); /* 0x36105AFE: pop edi */
  22844     MEM32(esi + 0xEF0) = eax; /* 0x36105AFF: mov dword ptr [esi + 0xef0], eax */
  22845     esi = POP32_VAL(esp); /* 0x36105B05: pop esi */
  22846     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36105B06: ret  */
  22847     RECOMP_REGS_OUT();
  22848 }
  22849 
  22850 void sub_36105B10(void) {
  22851     int _fpu_cmp = 0;
  22852     uint32_t _cf = 0;
  22853     int _df = 1;
  22854     uint32_t _flag_k = FK_NONE;
  22855     uint32_t _flag_a = 0, _flag_b = 0;
  22856     uint32_t _itail_tgt = 0;
  22857     RECOMP_REGS_LOCALS
  22858     RECOMP_ENTER(0x36105B10u);
  22859 
  22860 L_36105B10:
  22861     PUSH32(esp, ebp); /* 0x36105B10: push ebp */
  22862     ebp = esp; /* 0x36105B11: mov ebp, esp */
  22863     PUSH32(esp, 0xFFFFFFFFu); /* 0x36105B13: push -1 */
  22864     PUSH32(esp, 0x3616A06Bu); /* 0x36105B15: push 0x3616a06b */
  22865     eax = MEM32(FS_BASE + (0)); /* 0x36105B1A: mov eax, dword ptr fs:[0] */
  22866     PUSH32(esp, eax); /* 0x36105B20: push eax */
  22867     MEM32(FS_BASE + (0)) = esp; /* 0x36105B21: mov dword ptr fs:[0], esp */
  22868     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  22869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22870     esp = esp - 0x14u; /* 0x36105B28: sub esp, 0x14 */
  22871     _flag_k = FK_CMP;
  22872     PUSH32(esp, ebx); /* 0x36105B2B: push ebx */
  22873     PUSH32(esp, esi); /* 0x36105B2C: push esi */
  22874     PUSH32(esp, edi); /* 0x36105B2D: push edi */
  22875     PUSH32(esp, 0x210u); /* 0x36105B2E: push 0x210 */
  22876     esi = ecx; /* 0x36105B33: mov esi, ecx */
  22877     RECOMP_ICALL(0x3615FD6Au); /* 0x36105B35: call 0x3615fd6a */ /* not lifted */
  22878     RECOMP_FLAGS_IN();
  22879     edi = eax; /* 0x36105B3A: mov edi, eax */
  22880     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  22881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  22882     esp = esp + 4; /* 0x36105B3C: add esp, 4 */
  22883     _flag_k = FK_ADD;
  22884     MEM32(ebp + (-0x10)) = edi; /* 0x36105B3F: mov dword ptr [ebp - 0x10], edi */
  22885     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22886     ebx = 0; /* 0x36105B42: xor ebx, ebx */
  22887     _cf = 0;
  22888     _flag_k = FK_TEST;
  22889     /* cmp edi, ebx */ /* 0x36105B44: cmp edi, ebx */
  22890     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  22891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22892     _flag_k = FK_CMP;
  22893     MEM32(ebp + (-0x4)) = ebx; /* 0x36105B46: mov dword ptr [ebp - 4], ebx */
  22894     if (CMP_EQ(_flag_a, _flag_b)) goto L_36105BA2; /* 0x36105B49: je 0x36105ba2 */
  22895 L_36105B4B:
  22896     eax = MEM32(esi + 0xE84); /* 0x36105B4B: mov eax, dword ptr [esi + 0xe84] */
  22897     PUSH32(esp, 1); /* 0x36105B51: push 1 */
  22898     PUSH32(esp, ebx); /* 0x36105B53: push ebx */
  22899     PUSH32(esp, eax); /* 0x36105B54: push eax */
  22900     RECOMP_ICALL(0x360F7B00u); /* 0x36105B55: call 0x360f7b00 */ /* not lifted */
  22901     RECOMP_FLAGS_IN();
  22902     ecx = eax; /* 0x36105B5A: mov ecx, eax */
  22903     RECOMP_ICALL(0x360FBE40u); /* 0x36105B5C: call 0x360fbe40 */ /* not lifted */
  22904     RECOMP_FLAGS_IN();
  22905     PUSH32(esp, eax); /* 0x36105B61: push eax */
  22906     ecx = edi; /* 0x36105B62: mov ecx, edi */
  22907     RECOMP_ICALL(MEM32(0x3616F68C)); /* 0x36105B64: call dword ptr [0x3616f68c] */
  22908     RECOMP_FLAGS_IN();
  22909     MEM32(edi) = 0x36175F9Cu; /* 0x36105B6A: mov dword ptr [edi], 0x36175f9c */
  22910     MEM32(edi + 0x8) = 0x36175F8Cu; /* 0x36105B70: mov dword ptr [edi + 8], 0x36175f8c */
  22911     MEM32(edi + 0x20) = 0x36175F7Cu; /* 0x36105B77: mov dword ptr [edi + 0x20], 0x36175f7c */
  22912     MEM32(edi + 0x38) = 0x36175F6Cu; /* 0x36105B7E: mov dword ptr [edi + 0x38], 0x36175f6c */
  22913     MEM32(edi + 0x50) = 0x36175F5Cu; /* 0x36105B85: mov dword ptr [edi + 0x50], 0x36175f5c */
  22914     MEM32(edi + 0x138) = 0x36175F4Cu; /* 0x36105B8C: mov dword ptr [edi + 0x138], 0x36175f4c */
  22915     MEM32(edi + 0x150) = 0x36175F3Cu; /* 0x36105B96: mov dword ptr [edi + 0x150], 0x36175f3c */
  22916     goto L_36105BA4; /* 0x36105BA0: jmp 0x36105ba4 */
  22917 L_36105BA2:
  22918     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  22919     edi = 0; /* 0x36105BA2: xor edi, edi */
  22920     _cf = 0;
  22921     _flag_k = FK_TEST;
  22922 L_36105BA4:
  22923     ecx = MEM32(esi + 0xE84); /* 0x36105BA4: mov ecx, dword ptr [esi + 0xe84] */
  22924     PUSH32(esp, ecx); /* 0x36105BAA: push ecx */
  22925     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36105BAB: mov dword ptr [ebp - 4], 0xffffffff */
  22926     MEM32(esi + 0x24) = edi; /* 0x36105BB2: mov dword ptr [esi + 0x24], edi */
  22927     RECOMP_ICALL(0x360F7B00u); /* 0x36105BB5: call 0x360f7b00 */ /* not lifted */
  22928     RECOMP_FLAGS_IN();
  22929     ecx = eax; /* 0x36105BBA: mov ecx, eax */
  22930     RECOMP_ICALL(0x360FBE60u); /* 0x36105BBC: call 0x360fbe60 */ /* not lifted */
  22931     RECOMP_FLAGS_IN();
  22932     edx = MEM32(esi + 0x24); /* 0x36105BC1: mov edx, dword ptr [esi + 0x24] */
  22933     MEM32(edx + 0x1E0) = eax; /* 0x36105BC4: mov dword ptr [edx + 0x1e0], eax */
  22934     eax = MEM32(esi + 0xE84); /* 0x36105BCA: mov eax, dword ptr [esi + 0xe84] */
  22935     PUSH32(esp, eax); /* 0x36105BD0: push eax */
  22936     RECOMP_ICALL(0x360F7B00u); /* 0x36105BD1: call 0x360f7b00 */ /* not lifted */
  22937     RECOMP_FLAGS_IN();
  22938     ecx = eax; /* 0x36105BD6: mov ecx, eax */
  22939     RECOMP_ICALL(0x360FBEA0u); /* 0x36105BD8: call 0x360fbea0 */ /* not lifted */
  22940     RECOMP_FLAGS_IN();
  22941     ecx = MEM32(esi + 0x24); /* 0x36105BDD: mov ecx, dword ptr [esi + 0x24] */
  22942     MEM32(ecx + 0x1E4) = eax; /* 0x36105BE0: mov dword ptr [ecx + 0x1e4], eax */
  22943     ecx = MEM32(esi + 0x20); /* 0x36105BE6: mov ecx, dword ptr [esi + 0x20] */
  22944     RECOMP_ICALL(0x36134100u); /* 0x36105BE9: call 0x36134100 */ /* not lifted */
  22945     RECOMP_FLAGS_IN();
  22946     ecx = MEM32(esi + 0x20); /* 0x36105BEE: mov ecx, dword ptr [esi + 0x20] */
  22947     edx = ebp + (-0x1C); /* 0x36105BF1: lea edx, [ebp - 0x1c] */
  22948     PUSH32(esp, edx); /* 0x36105BF4: push edx */
  22949     RECOMP_ICALL(0x36133E80u); /* 0x36105BF5: call 0x36133e80 */ /* not lifted */
  22950     RECOMP_FLAGS_IN();
  22951     ecx = MEM32(esi + 0x24); /* 0x36105BFA: mov ecx, dword ptr [esi + 0x24] */
  22952     edi = MEM32(eax); /* 0x36105BFD: mov edi, dword ptr [eax] */
  22953     edx = ecx + 0x78; /* 0x36105BFF: lea edx, [ecx + 0x78] */
  22954     MEM32(edx) = edi; /* 0x36105C02: mov dword ptr [edx], edi */
  22955     edi = MEM32(eax + 0x4); /* 0x36105C04: mov edi, dword ptr [eax + 4] */
  22956     MEM32(edx + 0x4) = edi; /* 0x36105C07: mov dword ptr [edx + 4], edi */
  22957     eax = MEM32(eax + 0x8); /* 0x36105C0A: mov eax, dword ptr [eax + 8] */
  22958     PUSH32(esp, 1); /* 0x36105C0D: push 1 */
  22959     MEM32(edx + 0x8) = eax; /* 0x36105C0F: mov dword ptr [edx + 8], eax */
  22960     edx = MEM32(ecx); /* 0x36105C12: mov edx, dword ptr [ecx] */
  22961     PUSH32(esp, 1); /* 0x36105C14: push 1 */
  22962     RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36105C16: call dword ptr [edx + 0x2c] */
  22963     RECOMP_FLAGS_IN();
  22964     ecx = MEM32(esi + 0x24); /* 0x36105C19: mov ecx, dword ptr [esi + 0x24] */
  22965     eax = ecx + 0x84; /* 0x36105C1C: lea eax, [ecx + 0x84] */
  22966     MEM32(ebp + (-0x20)) = 0; /* 0x36105C22: mov dword ptr [ebp - 0x20], 0 */
  22967     edx = MEM32(ebp + (-0x20)); /* 0x36105C29: mov edx, dword ptr [ebp - 0x20] */
  22968     MEM32(eax) = edx; /* 0x36105C2C: mov dword ptr [eax], edx */
  22969     MEM32(ebp + (-0x1C)) = 0; /* 0x36105C2E: mov dword ptr [ebp - 0x1c], 0 */
  22970     edx = MEM32(ebp + (-0x1C)); /* 0x36105C35: mov edx, dword ptr [ebp - 0x1c] */
  22971     MEM32(eax + 0x4) = edx; /* 0x36105C38: mov dword ptr [eax + 4], edx */
  22972     MEM32(ebp + (-0x18)) = 0; /* 0x36105C3B: mov dword ptr [ebp - 0x18], 0 */
  22973     edx = MEM32(ebp + (-0x18)); /* 0x36105C42: mov edx, dword ptr [ebp - 0x18] */
  22974     MEM32(eax + 0x8) = edx; /* 0x36105C45: mov dword ptr [eax + 8], edx */
  22975     MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x36105C48: mov dword ptr [ebp - 0x14], 0x3f800000 */
  22976     edx = MEM32(ebp + (-0x14)); /* 0x36105C4F: mov edx, dword ptr [ebp - 0x14] */
  22977     PUSH32(esp, 1); /* 0x36105C52: push 1 */
  22978     MEM32(eax + 0xC) = edx; /* 0x36105C54: mov dword ptr [eax + 0xc], edx */
  22979     eax = MEM32(ecx); /* 0x36105C57: mov eax, dword ptr [ecx] */
  22980     PUSH32(esp, 2); /* 0x36105C59: push 2 */
  22981     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36105C5B: call dword ptr [eax + 0x2c] */
  22982     RECOMP_FLAGS_IN();
  22983     ecx = MEM32(esi + 0x24); /* 0x36105C5E: mov ecx, dword ptr [esi + 0x24] */
  22984     RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36105C61: call dword ptr [0x3616f5f8] */
  22985     RECOMP_FLAGS_IN();
  22986     ecx = MEM32(esi + 0x28); /* 0x36105C67: mov ecx, dword ptr [esi + 0x28] */
  22987     PUSH32(esp, 0x40u); /* 0x36105C6A: push 0x40 */
  22988     PUSH32(esp, ecx); /* 0x36105C6C: push ecx */
  22989     ecx = MEM32(esi + 0x24); /* 0x36105C6D: mov ecx, dword ptr [esi + 0x24] */
  22990     RECOMP_ICALL(MEM32(0x3616F688)); /* 0x36105C70: call dword ptr [0x3616f688] */
  22991     RECOMP_FLAGS_IN();
  22992     eax = MEM32(esi + 0xE7C); /* 0x36105C76: mov eax, dword ptr [esi + 0xe7c] */
  22993     /* cmp eax, ebx */ /* 0x36105C7C: cmp eax, ebx */
  22994     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  22995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  22996     _flag_k = FK_CMP;
  22997     MEM8(esi + 0xE6C) = (uint8_t)(0); /* 0x36105C7E: mov byte ptr [esi + 0xe6c], 0 */
  22998     MEM32(esi + 0xE70) = ebx; /* 0x36105C85: mov dword ptr [esi + 0xe70], ebx */
  22999     MEM32(esi + 0xE74) = ebx; /* 0x36105C8B: mov dword ptr [esi + 0xe74], ebx */
  23000     MEM32(esi + 0xE78) = 0x36175AF4u; /* 0x36105C91: mov dword ptr [esi + 0xe78], 0x36175af4 */
  23001     if (CMP_EQ(_flag_a, _flag_b)) goto L_36105D14; /* 0x36105C9B: je 0x36105d14 */
  23002 L_36105C9D:
  23003     PUSH32(esp, ebx); /* 0x36105C9D: push ebx */
  23004     PUSH32(esp, 0x361B2CD8u); /* 0x36105C9E: push 0x361b2cd8 */
  23005     PUSH32(esp, 0x361B2CC0u); /* 0x36105CA3: push 0x361b2cc0 */
  23006     PUSH32(esp, ebx); /* 0x36105CA8: push ebx */
  23007     PUSH32(esp, eax); /* 0x36105CA9: push eax */
  23008     RECOMP_ICALL(0x3615FD86u); /* 0x36105CAA: call 0x3615fd86 */ /* not lifted */
  23009     RECOMP_FLAGS_IN();
  23010     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  23011     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23012     esp = esp + 0x14u; /* 0x36105CAF: add esp, 0x14 */
  23013     _flag_k = FK_ADD;
  23014     /* cmp eax, ebx */ /* 0x36105CB2: cmp eax, ebx */
  23015     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  23016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23017     _flag_k = FK_CMP;
  23018     if (CMP_EQ(_flag_a, _flag_b)) goto L_36105D14; /* 0x36105CB4: je 0x36105d14 */
  23019 L_36105CB6:
  23020     edx = MEM32(eax + 0xE4); /* 0x36105CB6: mov edx, dword ptr [eax + 0xe4] */
  23021     edi = eax + 0xE4; /* 0x36105CBC: lea edi, [eax + 0xe4] */
  23022     PUSH32(esp, 2); /* 0x36105CC2: push 2 */
  23023     PUSH32(esp, 4); /* 0x36105CC4: push 4 */
  23024     ecx = edi; /* 0x36105CC6: mov ecx, edi */
  23025     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36105CC8: call dword ptr [edx + 4] */
  23026     RECOMP_FLAGS_IN();
  23027     PUSH32(esp, 2); /* 0x36105CCB: push 2 */
  23028     ebx = eax; /* 0x36105CCD: mov ebx, eax */
  23029     eax = MEM32(edi); /* 0x36105CCF: mov eax, dword ptr [edi] */
  23030     PUSH32(esp, 0x3Bu); /* 0x36105CD1: push 0x3b */
  23031     ecx = edi; /* 0x36105CD3: mov ecx, edi */
  23032     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36105CD5: call dword ptr [eax + 4] */
  23033     RECOMP_FLAGS_IN();
  23034     edx = MEM32(edi); /* 0x36105CD8: mov edx, dword ptr [edi] */
  23035     PUSH32(esp, 2); /* 0x36105CDA: push 2 */
  23036     PUSH32(esp, 0x2Fu); /* 0x36105CDC: push 0x2f */
  23037     ecx = edi; /* 0x36105CDE: mov ecx, edi */
  23038     MEM32(ebp + (-0x10)) = eax; /* 0x36105CE0: mov dword ptr [ebp - 0x10], eax */
  23039     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36105CE3: call dword ptr [edx + 4] */
  23040     RECOMP_FLAGS_IN();
  23041     /* cmp ebx, 1 */ /* 0x36105CE6: cmp ebx, 1 */
  23042     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  23043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23044     _flag_k = FK_CMP;
  23045     if (CMP_L(_flag_a, _flag_b)) goto L_36105D14; /* 0x36105CE9: jl 0x36105d14 */
  23046 L_36105CEB:
  23047     /* cmp ebx, 4 */ /* 0x36105CEB: cmp ebx, 4 */
  23048     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
  23049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23050     _flag_k = FK_CMP;
  23051     if (CMP_G(_flag_a, _flag_b)) goto L_36105D14; /* 0x36105CEE: jg 0x36105d14 */
  23052 L_36105CF0:
  23053     /* cmp MEM32(ebp + (-0x10)), 3 */ /* 0x36105CF0: cmp dword ptr [ebp - 0x10], 3 */
  23054     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(3);
  23055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23056     _flag_k = FK_CMP;
  23057     ecx = ebx + ebx * 2; /* 0x36105CF4: lea ecx, [ebx + ebx*2] */
  23058     ecx = ecx + ecx + (-0x6); /* 0x36105CF7: lea ecx, [ecx + ecx - 6] */
  23059     if (CMP_NE(_flag_a, _flag_b)) goto L_36105D00; /* 0x36105CFB: jne 0x36105d00 */
  23060 L_36105CFD:
  23061     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  23062     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23063     ecx = ecx + 3; /* 0x36105CFD: add ecx, 3 */
  23064     _flag_k = FK_ADD;
  23065 L_36105D00:
  23066     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  23067     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23068     eax = eax + ecx; /* 0x36105D00: add eax, ecx */
  23069     _flag_k = FK_ADD;
  23070     edx = eax + eax * 2; /* 0x36105D02: lea edx, [eax + eax*2] */
  23071     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x36105D05: shl edx, 4 */
  23072     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23073     edx = edx << 4u; /* 0x36105D05: shl edx, 4 */
  23074     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x36175AF4u);
  23075     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23076     edx = edx + 0x36175AF4u; /* 0x36105D08: add edx, 0x36175af4 */
  23077     _flag_k = FK_ADD;
  23078     MEM32(esi + 0xE78) = edx; /* 0x36105D0E: mov dword ptr [esi + 0xe78], edx */
  23079 L_36105D14:
  23080     eax = MEM32(esi + 0xE88); /* 0x36105D14: mov eax, dword ptr [esi + 0xe88] */
  23081     /* test eax, eax */ /* 0x36105D1A: test eax, eax */
  23082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23083     _cf = 0;
  23084     _flag_k = FK_TEST;
  23085     if (TEST_S(_flag_a, _flag_b)) goto L_36105D69; /* 0x36105D1C: jl 0x36105d69 */
  23086 L_36105D1E:
  23087     /* cmp eax, 1 */ /* 0x36105D1E: cmp eax, 1 */
  23088     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  23089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23090     _flag_k = FK_CMP;
  23091     if (CMP_G(_flag_a, _flag_b)) goto L_36105D69; /* 0x36105D21: jg 0x36105d69 */
  23092 L_36105D23:
  23093     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23094     eax = 0; /* 0x36105D23: xor eax, eax */
  23095     _cf = 0;
  23096     _flag_k = FK_TEST;
  23097     ecx = esi + 0xD2C; /* 0x36105D25: lea ecx, [esi + 0xd2c] */
  23098 L_36105D2B:
  23099     MEM32(ecx) = 0xC2C80000u; /* 0x36105D2B: mov dword ptr [ecx], 0xc2c80000 */
  23100     edx = MEM32(esi + 0x28); /* 0x36105D31: mov edx, dword ptr [esi + 0x28] */
  23101     MEM8(eax + edx + 0x2C) = (uint8_t)(0); /* 0x36105D34: mov byte ptr [eax + edx + 0x2c], 0 */
  23102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u);
  23103     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23104     eax = eax + 0x30u; /* 0x36105D39: add eax, 0x30 */
  23105     _flag_k = FK_ADD;
  23106     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23107     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23108     ecx = ecx + 4; /* 0x36105D3C: add ecx, 4 */
  23109     _flag_k = FK_ADD;
  23110     /* cmp eax, 0xC00u */ /* 0x36105D3F: cmp eax, 0xc00 */
  23111     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC00u);
  23112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23113     _flag_k = FK_CMP;
  23114     RECOMP_BACKEDGE();
  23115     if (CMP_L(_flag_a, _flag_b)) goto L_36105D2B; /* 0x36105D44: jl 0x36105d2b */
  23116 L_36105D46:
  23117     fp_push((double)(int32_t)MEM32(esi + 0xEEC)); /* 0x36105D46: fild dword ptr [esi + 0xeec] */
  23118     edi = POP32_VAL(esp); /* 0x36105D4C: pop edi */
  23119     _st[0] *= (double)*(float*)ADDR(0x361714DC); /* 0x36105D4D: fmul dword ptr [0x361714dc] */
  23120     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xEDC) = _v; } /* 0x36105D53: fstp dword ptr [esi + 0xedc] */
  23121     esi = POP32_VAL(esp); /* 0x36105D59: pop esi */
  23122     ebx = POP32_VAL(esp); /* 0x36105D5A: pop ebx */
  23123     ecx = MEM32(ebp + (-0xC)); /* 0x36105D5B: mov ecx, dword ptr [ebp - 0xc] */
  23124     MEM32(FS_BASE + (0)) = ecx; /* 0x36105D5E: mov dword ptr fs:[0], ecx */
  23125     esp = ebp; /* 0x36105D65: mov esp, ebp */
  23126     ebp = POP32_VAL(esp); /* 0x36105D67: pop ebp */
  23127     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36105D68: ret  */
  23128 L_36105D69:
  23129     ecx = MEM32(ebp + (-0xC)); /* 0x36105D69: mov ecx, dword ptr [ebp - 0xc] */
  23130     edi = POP32_VAL(esp); /* 0x36105D6C: pop edi */
  23131     MEM32(esi + 0x10) = 0; /* 0x36105D6D: mov dword ptr [esi + 0x10], 0 */
  23132     esi = POP32_VAL(esp); /* 0x36105D74: pop esi */
  23133     ebx = POP32_VAL(esp); /* 0x36105D75: pop ebx */
  23134     MEM32(FS_BASE + (0)) = ecx; /* 0x36105D76: mov dword ptr fs:[0], ecx */
  23135     esp = ebp; /* 0x36105D7D: mov esp, ebp */
  23136     ebp = POP32_VAL(esp); /* 0x36105D7F: pop ebp */
  23137     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36105D80: ret  */
  23138     RECOMP_REGS_OUT();
  23139 }
  23140 
  23141 void sub_36105C42(void) {
  23142     int _fpu_cmp = 0;
  23143     uint32_t _cf = 0;
  23144     int _df = 1;
  23145     uint32_t _flag_k = FK_NONE;
  23146     uint32_t _flag_a = 0, _flag_b = 0;
  23147     uint32_t _itail_tgt = 0;
  23148     RECOMP_REGS_LOCALS
  23149     RECOMP_ENTER(0x36105C42u);
  23150 
  23151 L_36105C42:
  23152     edx = MEM32(ebp + (-0x18)); /* 0x36105C42: mov edx, dword ptr [ebp - 0x18] */
  23153     MEM32(eax + 0x8) = edx; /* 0x36105C45: mov dword ptr [eax + 8], edx */
  23154     MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x36105C48: mov dword ptr [ebp - 0x14], 0x3f800000 */
  23155     edx = MEM32(ebp + (-0x14)); /* 0x36105C4F: mov edx, dword ptr [ebp - 0x14] */
  23156     PUSH32(esp, 1); /* 0x36105C52: push 1 */
  23157     MEM32(eax + 0xC) = edx; /* 0x36105C54: mov dword ptr [eax + 0xc], edx */
  23158     eax = MEM32(ecx); /* 0x36105C57: mov eax, dword ptr [ecx] */
  23159     PUSH32(esp, 2); /* 0x36105C59: push 2 */
  23160     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36105C5B: call dword ptr [eax + 0x2c] */
  23161     RECOMP_FLAGS_IN();
  23162     ecx = MEM32(esi + 0x24); /* 0x36105C5E: mov ecx, dword ptr [esi + 0x24] */
  23163     RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36105C61: call dword ptr [0x3616f5f8] */
  23164     RECOMP_FLAGS_IN();
  23165     ecx = MEM32(esi + 0x28); /* 0x36105C67: mov ecx, dword ptr [esi + 0x28] */
  23166     PUSH32(esp, 0x40u); /* 0x36105C6A: push 0x40 */
  23167     PUSH32(esp, ecx); /* 0x36105C6C: push ecx */
  23168     ecx = MEM32(esi + 0x24); /* 0x36105C6D: mov ecx, dword ptr [esi + 0x24] */
  23169     RECOMP_ICALL(MEM32(0x3616F688)); /* 0x36105C70: call dword ptr [0x3616f688] */
  23170     RECOMP_FLAGS_IN();
  23171     eax = MEM32(esi + 0xE7C); /* 0x36105C76: mov eax, dword ptr [esi + 0xe7c] */
  23172     /* cmp eax, ebx */ /* 0x36105C7C: cmp eax, ebx */
  23173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  23174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23175     _flag_k = FK_CMP;
  23176     MEM8(esi + 0xE6C) = (uint8_t)(0); /* 0x36105C7E: mov byte ptr [esi + 0xe6c], 0 */
  23177     MEM32(esi + 0xE70) = ebx; /* 0x36105C85: mov dword ptr [esi + 0xe70], ebx */
  23178     MEM32(esi + 0xE74) = ebx; /* 0x36105C8B: mov dword ptr [esi + 0xe74], ebx */
  23179     MEM32(esi + 0xE78) = 0x36175AF4u; /* 0x36105C91: mov dword ptr [esi + 0xe78], 0x36175af4 */
  23180     if (CMP_EQ(_flag_a, _flag_b)) goto L_36105D14; /* 0x36105C9B: je 0x36105d14 */
  23181 L_36105C9D:
  23182     PUSH32(esp, ebx); /* 0x36105C9D: push ebx */
  23183     PUSH32(esp, 0x361B2CD8u); /* 0x36105C9E: push 0x361b2cd8 */
  23184     PUSH32(esp, 0x361B2CC0u); /* 0x36105CA3: push 0x361b2cc0 */
  23185     PUSH32(esp, ebx); /* 0x36105CA8: push ebx */
  23186     PUSH32(esp, eax); /* 0x36105CA9: push eax */
  23187     RECOMP_ICALL(0x3615FD86u); /* 0x36105CAA: call 0x3615fd86 */ /* not lifted */
  23188     RECOMP_FLAGS_IN();
  23189     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  23190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23191     esp = esp + 0x14u; /* 0x36105CAF: add esp, 0x14 */
  23192     _flag_k = FK_ADD;
  23193     /* cmp eax, ebx */ /* 0x36105CB2: cmp eax, ebx */
  23194     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  23195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23196     _flag_k = FK_CMP;
  23197     if (CMP_EQ(_flag_a, _flag_b)) goto L_36105D14; /* 0x36105CB4: je 0x36105d14 */
  23198 L_36105CB6:
  23199     edx = MEM32(eax + 0xE4); /* 0x36105CB6: mov edx, dword ptr [eax + 0xe4] */
  23200     edi = eax + 0xE4; /* 0x36105CBC: lea edi, [eax + 0xe4] */
  23201     PUSH32(esp, 2); /* 0x36105CC2: push 2 */
  23202     PUSH32(esp, 4); /* 0x36105CC4: push 4 */
  23203     ecx = edi; /* 0x36105CC6: mov ecx, edi */
  23204     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36105CC8: call dword ptr [edx + 4] */
  23205     RECOMP_FLAGS_IN();
  23206     PUSH32(esp, 2); /* 0x36105CCB: push 2 */
  23207     ebx = eax; /* 0x36105CCD: mov ebx, eax */
  23208     eax = MEM32(edi); /* 0x36105CCF: mov eax, dword ptr [edi] */
  23209     PUSH32(esp, 0x3Bu); /* 0x36105CD1: push 0x3b */
  23210     ecx = edi; /* 0x36105CD3: mov ecx, edi */
  23211     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36105CD5: call dword ptr [eax + 4] */
  23212     RECOMP_FLAGS_IN();
  23213     edx = MEM32(edi); /* 0x36105CD8: mov edx, dword ptr [edi] */
  23214     PUSH32(esp, 2); /* 0x36105CDA: push 2 */
  23215     PUSH32(esp, 0x2Fu); /* 0x36105CDC: push 0x2f */
  23216     ecx = edi; /* 0x36105CDE: mov ecx, edi */
  23217     MEM32(ebp + (-0x10)) = eax; /* 0x36105CE0: mov dword ptr [ebp - 0x10], eax */
  23218     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36105CE3: call dword ptr [edx + 4] */
  23219     RECOMP_FLAGS_IN();
  23220     /* cmp ebx, 1 */ /* 0x36105CE6: cmp ebx, 1 */
  23221     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  23222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23223     _flag_k = FK_CMP;
  23224     if (CMP_L(_flag_a, _flag_b)) goto L_36105D14; /* 0x36105CE9: jl 0x36105d14 */
  23225 L_36105CEB:
  23226     /* cmp ebx, 4 */ /* 0x36105CEB: cmp ebx, 4 */
  23227     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
  23228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23229     _flag_k = FK_CMP;
  23230     if (CMP_G(_flag_a, _flag_b)) goto L_36105D14; /* 0x36105CEE: jg 0x36105d14 */
  23231 L_36105CF0:
  23232     /* cmp MEM32(ebp + (-0x10)), 3 */ /* 0x36105CF0: cmp dword ptr [ebp - 0x10], 3 */
  23233     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(3);
  23234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23235     _flag_k = FK_CMP;
  23236     ecx = ebx + ebx * 2; /* 0x36105CF4: lea ecx, [ebx + ebx*2] */
  23237     ecx = ecx + ecx + (-0x6); /* 0x36105CF7: lea ecx, [ecx + ecx - 6] */
  23238     if (CMP_NE(_flag_a, _flag_b)) goto L_36105D00; /* 0x36105CFB: jne 0x36105d00 */
  23239 L_36105CFD:
  23240     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  23241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23242     ecx = ecx + 3; /* 0x36105CFD: add ecx, 3 */
  23243     _flag_k = FK_ADD;
  23244 L_36105D00:
  23245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  23246     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23247     eax = eax + ecx; /* 0x36105D00: add eax, ecx */
  23248     _flag_k = FK_ADD;
  23249     edx = eax + eax * 2; /* 0x36105D02: lea edx, [eax + eax*2] */
  23250     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x36105D05: shl edx, 4 */
  23251     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  23252     edx = edx << 4u; /* 0x36105D05: shl edx, 4 */
  23253     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x36175AF4u);
  23254     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23255     edx = edx + 0x36175AF4u; /* 0x36105D08: add edx, 0x36175af4 */
  23256     _flag_k = FK_ADD;
  23257     MEM32(esi + 0xE78) = edx; /* 0x36105D0E: mov dword ptr [esi + 0xe78], edx */
  23258 L_36105D14:
  23259     eax = MEM32(esi + 0xE88); /* 0x36105D14: mov eax, dword ptr [esi + 0xe88] */
  23260     /* test eax, eax */ /* 0x36105D1A: test eax, eax */
  23261     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  23262     _cf = 0;
  23263     _flag_k = FK_TEST;
  23264     if (TEST_S(_flag_a, _flag_b)) goto L_36105D69; /* 0x36105D1C: jl 0x36105d69 */
  23265 L_36105D1E:
  23266     /* cmp eax, 1 */ /* 0x36105D1E: cmp eax, 1 */
  23267     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  23268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23269     _flag_k = FK_CMP;
  23270     if (CMP_G(_flag_a, _flag_b)) goto L_36105D69; /* 0x36105D21: jg 0x36105d69 */
  23271 L_36105D23:
  23272     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23273     eax = 0; /* 0x36105D23: xor eax, eax */
  23274     _cf = 0;
  23275     _flag_k = FK_TEST;
  23276     ecx = esi + 0xD2C; /* 0x36105D25: lea ecx, [esi + 0xd2c] */
  23277 L_36105D2B:
  23278     MEM32(ecx) = 0xC2C80000u; /* 0x36105D2B: mov dword ptr [ecx], 0xc2c80000 */
  23279     edx = MEM32(esi + 0x28); /* 0x36105D31: mov edx, dword ptr [esi + 0x28] */
  23280     MEM8(eax + edx + 0x2C) = (uint8_t)(0); /* 0x36105D34: mov byte ptr [eax + edx + 0x2c], 0 */
  23281     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u);
  23282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23283     eax = eax + 0x30u; /* 0x36105D39: add eax, 0x30 */
  23284     _flag_k = FK_ADD;
  23285     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  23286     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23287     ecx = ecx + 4; /* 0x36105D3C: add ecx, 4 */
  23288     _flag_k = FK_ADD;
  23289     /* cmp eax, 0xC00u */ /* 0x36105D3F: cmp eax, 0xc00 */
  23290     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC00u);
  23291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23292     _flag_k = FK_CMP;
  23293     RECOMP_BACKEDGE();
  23294     if (CMP_L(_flag_a, _flag_b)) goto L_36105D2B; /* 0x36105D44: jl 0x36105d2b */
  23295 L_36105D46:
  23296     fp_push((double)(int32_t)MEM32(esi + 0xEEC)); /* 0x36105D46: fild dword ptr [esi + 0xeec] */
  23297     edi = POP32_VAL(esp); /* 0x36105D4C: pop edi */
  23298     _st[0] *= (double)*(float*)ADDR(0x361714DC); /* 0x36105D4D: fmul dword ptr [0x361714dc] */
  23299     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xEDC) = _v; } /* 0x36105D53: fstp dword ptr [esi + 0xedc] */
  23300     esi = POP32_VAL(esp); /* 0x36105D59: pop esi */
  23301     ebx = POP32_VAL(esp); /* 0x36105D5A: pop ebx */
  23302     ecx = MEM32(ebp + (-0xC)); /* 0x36105D5B: mov ecx, dword ptr [ebp - 0xc] */
  23303     MEM32(FS_BASE + (0)) = ecx; /* 0x36105D5E: mov dword ptr fs:[0], ecx */
  23304     esp = ebp; /* 0x36105D65: mov esp, ebp */
  23305     ebp = POP32_VAL(esp); /* 0x36105D67: pop ebp */
  23306     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36105D68: ret  */
  23307 L_36105D69:
  23308     ecx = MEM32(ebp + (-0xC)); /* 0x36105D69: mov ecx, dword ptr [ebp - 0xc] */
  23309     edi = POP32_VAL(esp); /* 0x36105D6C: pop edi */
  23310     MEM32(esi + 0x10) = 0; /* 0x36105D6D: mov dword ptr [esi + 0x10], 0 */
  23311     esi = POP32_VAL(esp); /* 0x36105D74: pop esi */
  23312     ebx = POP32_VAL(esp); /* 0x36105D75: pop ebx */
  23313     MEM32(FS_BASE + (0)) = ecx; /* 0x36105D76: mov dword ptr fs:[0], ecx */
  23314     esp = ebp; /* 0x36105D7D: mov esp, ebp */
  23315     ebp = POP32_VAL(esp); /* 0x36105D7F: pop ebp */
  23316     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36105D80: ret  */
  23317     RECOMP_REGS_OUT();
  23318 }
  23319 
  23320 void sub_36105D90(void) {
  23321     int _fpu_cmp = 0;
  23322     uint32_t _cf = 0;
  23323     int _df = 1;
  23324     uint32_t _flag_k = FK_NONE;
  23325     uint32_t _flag_a = 0, _flag_b = 0;
  23326     uint32_t _itail_tgt = 0;
  23327     RECOMP_REGS_LOCALS
  23328     RECOMP_ENTER(0x36105D90u);
  23329 
  23330 L_36105D90:
  23331     PUSH32(esp, ebp); /* 0x36105D90: push ebp */
  23332     ebp = esp; /* 0x36105D91: mov ebp, esp */
  23333     PUSH32(esp, esi); /* 0x36105D93: push esi */
  23334     esi = ecx; /* 0x36105D94: mov esi, ecx */
  23335     RECOMP_ICALL(MEM32(0x3616F690)); /* 0x36105D96: call dword ptr [0x3616f690] */
  23336     RECOMP_FLAGS_IN();
  23337     /* test MEM8(ebp + 0x8), 1 */ /* 0x36105D9C: test byte ptr [ebp + 8], 1 */
  23338     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  23339     _cf = 0;
  23340     _flag_k = FK_NARROW(FK_TEST, 24);
  23341     if (TEST_Z(_flag_a, _flag_b)) goto L_36105DAB; /* 0x36105DA0: je 0x36105dab */
  23342 L_36105DA2:
  23343     PUSH32(esp, esi); /* 0x36105DA2: push esi */
  23344     RECOMP_ICALL(0x3615FCC4u); /* 0x36105DA3: call 0x3615fcc4 */ /* not lifted */
  23345     RECOMP_FLAGS_IN();
  23346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23348     esp = esp + 4; /* 0x36105DA8: add esp, 4 */
  23349     _flag_k = FK_ADD;
  23350 L_36105DAB:
  23351     eax = esi; /* 0x36105DAB: mov eax, esi */
  23352     esi = POP32_VAL(esp); /* 0x36105DAD: pop esi */
  23353     ebp = POP32_VAL(esp); /* 0x36105DAE: pop ebp */
  23354     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36105DAF: ret 4 */
  23355     RECOMP_REGS_OUT();
  23356 }
  23357 
  23358 void sub_36105DC0(void) {
  23359     int _fpu_cmp = 0;
  23360     uint32_t _cf = 0;
  23361     int _df = 1;
  23362     uint32_t _flag_k = FK_NONE;
  23363     uint32_t _flag_a = 0, _flag_b = 0;
  23364     uint32_t _itail_tgt = 0;
  23365     RECOMP_REGS_LOCALS
  23366     RECOMP_ENTER(0x36105DC0u);
  23367 
  23368     goto L_36105DC0;
  23369 L_36105D90:
  23370     PUSH32(esp, ebp); /* 0x36105D90: push ebp */
  23371     ebp = esp; /* 0x36105D91: mov ebp, esp */
  23372     PUSH32(esp, esi); /* 0x36105D93: push esi */
  23373     esi = ecx; /* 0x36105D94: mov esi, ecx */
  23374     RECOMP_ICALL(MEM32(0x3616F690)); /* 0x36105D96: call dword ptr [0x3616f690] */
  23375     RECOMP_FLAGS_IN();
  23376     /* test MEM8(ebp + 0x8), 1 */ /* 0x36105D9C: test byte ptr [ebp + 8], 1 */
  23377     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  23378     _cf = 0;
  23379     _flag_k = FK_NARROW(FK_TEST, 24);
  23380     if (TEST_Z(_flag_a, _flag_b)) goto L_36105DAB; /* 0x36105DA0: je 0x36105dab */
  23381 L_36105DA2:
  23382     PUSH32(esp, esi); /* 0x36105DA2: push esi */
  23383     RECOMP_ICALL(0x3615FCC4u); /* 0x36105DA3: call 0x3615fcc4 */ /* not lifted */
  23384     RECOMP_FLAGS_IN();
  23385     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23386     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23387     esp = esp + 4; /* 0x36105DA8: add esp, 4 */
  23388     _flag_k = FK_ADD;
  23389 L_36105DAB:
  23390     eax = esi; /* 0x36105DAB: mov eax, esi */
  23391     esi = POP32_VAL(esp); /* 0x36105DAD: pop esi */
  23392     ebp = POP32_VAL(esp); /* 0x36105DAE: pop ebp */
  23393     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36105DAF: ret 4 */
  23394 L_36105DC0:
  23395     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
  23396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23397     ecx = ecx - 8; /* 0x36105DC0: sub ecx, 8 */
  23398     _flag_k = FK_CMP;
  23399     RECOMP_BACKEDGE();
  23400     goto L_36105D90; /* 0x36105DC3: jmp 0x36105d90 */
  23401     { RECOMP_REGS_OUT(); return; } /* end of function */
  23402     RECOMP_REGS_OUT();
  23403 }
  23404 
  23405 void sub_36105DD0(void) {
  23406     int _fpu_cmp = 0;
  23407     uint32_t _cf = 0;
  23408     int _df = 1;
  23409     uint32_t _flag_k = FK_NONE;
  23410     uint32_t _flag_a = 0, _flag_b = 0;
  23411     uint32_t _itail_tgt = 0;
  23412     RECOMP_REGS_LOCALS
  23413     RECOMP_ENTER(0x36105DD0u);
  23414 
  23415     goto L_36105DD0;
  23416 L_36105D90:
  23417     PUSH32(esp, ebp); /* 0x36105D90: push ebp */
  23418     ebp = esp; /* 0x36105D91: mov ebp, esp */
  23419     PUSH32(esp, esi); /* 0x36105D93: push esi */
  23420     esi = ecx; /* 0x36105D94: mov esi, ecx */
  23421     RECOMP_ICALL(MEM32(0x3616F690)); /* 0x36105D96: call dword ptr [0x3616f690] */
  23422     RECOMP_FLAGS_IN();
  23423     /* test MEM8(ebp + 0x8), 1 */ /* 0x36105D9C: test byte ptr [ebp + 8], 1 */
  23424     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  23425     _cf = 0;
  23426     _flag_k = FK_NARROW(FK_TEST, 24);
  23427     if (TEST_Z(_flag_a, _flag_b)) goto L_36105DAB; /* 0x36105DA0: je 0x36105dab */
  23428 L_36105DA2:
  23429     PUSH32(esp, esi); /* 0x36105DA2: push esi */
  23430     RECOMP_ICALL(0x3615FCC4u); /* 0x36105DA3: call 0x3615fcc4 */ /* not lifted */
  23431     RECOMP_FLAGS_IN();
  23432     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23433     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23434     esp = esp + 4; /* 0x36105DA8: add esp, 4 */
  23435     _flag_k = FK_ADD;
  23436 L_36105DAB:
  23437     eax = esi; /* 0x36105DAB: mov eax, esi */
  23438     esi = POP32_VAL(esp); /* 0x36105DAD: pop esi */
  23439     ebp = POP32_VAL(esp); /* 0x36105DAE: pop ebp */
  23440     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36105DAF: ret 4 */
  23441 L_36105DD0:
  23442     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
  23443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23444     ecx = ecx - 0x20u; /* 0x36105DD0: sub ecx, 0x20 */
  23445     _flag_k = FK_CMP;
  23446     RECOMP_BACKEDGE();
  23447     goto L_36105D90; /* 0x36105DD3: jmp 0x36105d90 */
  23448     { RECOMP_REGS_OUT(); return; } /* end of function */
  23449     RECOMP_REGS_OUT();
  23450 }
  23451 
  23452 void sub_36105DE0(void) {
  23453     int _fpu_cmp = 0;
  23454     uint32_t _cf = 0;
  23455     int _df = 1;
  23456     uint32_t _flag_k = FK_NONE;
  23457     uint32_t _flag_a = 0, _flag_b = 0;
  23458     uint32_t _itail_tgt = 0;
  23459     RECOMP_REGS_LOCALS
  23460     RECOMP_ENTER(0x36105DE0u);
  23461 
  23462     goto L_36105DE0;
  23463 L_36105D90:
  23464     PUSH32(esp, ebp); /* 0x36105D90: push ebp */
  23465     ebp = esp; /* 0x36105D91: mov ebp, esp */
  23466     PUSH32(esp, esi); /* 0x36105D93: push esi */
  23467     esi = ecx; /* 0x36105D94: mov esi, ecx */
  23468     RECOMP_ICALL(MEM32(0x3616F690)); /* 0x36105D96: call dword ptr [0x3616f690] */
  23469     RECOMP_FLAGS_IN();
  23470     /* test MEM8(ebp + 0x8), 1 */ /* 0x36105D9C: test byte ptr [ebp + 8], 1 */
  23471     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  23472     _cf = 0;
  23473     _flag_k = FK_NARROW(FK_TEST, 24);
  23474     if (TEST_Z(_flag_a, _flag_b)) goto L_36105DAB; /* 0x36105DA0: je 0x36105dab */
  23475 L_36105DA2:
  23476     PUSH32(esp, esi); /* 0x36105DA2: push esi */
  23477     RECOMP_ICALL(0x3615FCC4u); /* 0x36105DA3: call 0x3615fcc4 */ /* not lifted */
  23478     RECOMP_FLAGS_IN();
  23479     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23481     esp = esp + 4; /* 0x36105DA8: add esp, 4 */
  23482     _flag_k = FK_ADD;
  23483 L_36105DAB:
  23484     eax = esi; /* 0x36105DAB: mov eax, esi */
  23485     esi = POP32_VAL(esp); /* 0x36105DAD: pop esi */
  23486     ebp = POP32_VAL(esp); /* 0x36105DAE: pop ebp */
  23487     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36105DAF: ret 4 */
  23488 L_36105DE0:
  23489     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u);
  23490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23491     ecx = ecx - 0x38u; /* 0x36105DE0: sub ecx, 0x38 */
  23492     _flag_k = FK_CMP;
  23493     RECOMP_BACKEDGE();
  23494     goto L_36105D90; /* 0x36105DE3: jmp 0x36105d90 */
  23495     { RECOMP_REGS_OUT(); return; } /* end of function */
  23496     RECOMP_REGS_OUT();
  23497 }
  23498 
  23499 void sub_36105DF0(void) {
  23500     int _fpu_cmp = 0;
  23501     uint32_t _cf = 0;
  23502     int _df = 1;
  23503     uint32_t _flag_k = FK_NONE;
  23504     uint32_t _flag_a = 0, _flag_b = 0;
  23505     uint32_t _itail_tgt = 0;
  23506     RECOMP_REGS_LOCALS
  23507     RECOMP_ENTER(0x36105DF0u);
  23508 
  23509     goto L_36105DF0;
  23510 L_36105D90:
  23511     PUSH32(esp, ebp); /* 0x36105D90: push ebp */
  23512     ebp = esp; /* 0x36105D91: mov ebp, esp */
  23513     PUSH32(esp, esi); /* 0x36105D93: push esi */
  23514     esi = ecx; /* 0x36105D94: mov esi, ecx */
  23515     RECOMP_ICALL(MEM32(0x3616F690)); /* 0x36105D96: call dword ptr [0x3616f690] */
  23516     RECOMP_FLAGS_IN();
  23517     /* test MEM8(ebp + 0x8), 1 */ /* 0x36105D9C: test byte ptr [ebp + 8], 1 */
  23518     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  23519     _cf = 0;
  23520     _flag_k = FK_NARROW(FK_TEST, 24);
  23521     if (TEST_Z(_flag_a, _flag_b)) goto L_36105DAB; /* 0x36105DA0: je 0x36105dab */
  23522 L_36105DA2:
  23523     PUSH32(esp, esi); /* 0x36105DA2: push esi */
  23524     RECOMP_ICALL(0x3615FCC4u); /* 0x36105DA3: call 0x3615fcc4 */ /* not lifted */
  23525     RECOMP_FLAGS_IN();
  23526     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23528     esp = esp + 4; /* 0x36105DA8: add esp, 4 */
  23529     _flag_k = FK_ADD;
  23530 L_36105DAB:
  23531     eax = esi; /* 0x36105DAB: mov eax, esi */
  23532     esi = POP32_VAL(esp); /* 0x36105DAD: pop esi */
  23533     ebp = POP32_VAL(esp); /* 0x36105DAE: pop ebp */
  23534     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36105DAF: ret 4 */
  23535 L_36105DF0:
  23536     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u);
  23537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23538     ecx = ecx - 0x50u; /* 0x36105DF0: sub ecx, 0x50 */
  23539     _flag_k = FK_CMP;
  23540     RECOMP_BACKEDGE();
  23541     goto L_36105D90; /* 0x36105DF3: jmp 0x36105d90 */
  23542     { RECOMP_REGS_OUT(); return; } /* end of function */
  23543     RECOMP_REGS_OUT();
  23544 }
  23545 
  23546 void sub_36105E00(void) {
  23547     int _fpu_cmp = 0;
  23548     uint32_t _cf = 0;
  23549     int _df = 1;
  23550     uint32_t _flag_k = FK_NONE;
  23551     uint32_t _flag_a = 0, _flag_b = 0;
  23552     uint32_t _itail_tgt = 0;
  23553     RECOMP_REGS_LOCALS
  23554     RECOMP_ENTER(0x36105E00u);
  23555 
  23556     goto L_36105E00;
  23557 L_36105D90:
  23558     PUSH32(esp, ebp); /* 0x36105D90: push ebp */
  23559     ebp = esp; /* 0x36105D91: mov ebp, esp */
  23560     PUSH32(esp, esi); /* 0x36105D93: push esi */
  23561     esi = ecx; /* 0x36105D94: mov esi, ecx */
  23562     RECOMP_ICALL(MEM32(0x3616F690)); /* 0x36105D96: call dword ptr [0x3616f690] */
  23563     RECOMP_FLAGS_IN();
  23564     /* test MEM8(ebp + 0x8), 1 */ /* 0x36105D9C: test byte ptr [ebp + 8], 1 */
  23565     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  23566     _cf = 0;
  23567     _flag_k = FK_NARROW(FK_TEST, 24);
  23568     if (TEST_Z(_flag_a, _flag_b)) goto L_36105DAB; /* 0x36105DA0: je 0x36105dab */
  23569 L_36105DA2:
  23570     PUSH32(esp, esi); /* 0x36105DA2: push esi */
  23571     RECOMP_ICALL(0x3615FCC4u); /* 0x36105DA3: call 0x3615fcc4 */ /* not lifted */
  23572     RECOMP_FLAGS_IN();
  23573     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23574     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23575     esp = esp + 4; /* 0x36105DA8: add esp, 4 */
  23576     _flag_k = FK_ADD;
  23577 L_36105DAB:
  23578     eax = esi; /* 0x36105DAB: mov eax, esi */
  23579     esi = POP32_VAL(esp); /* 0x36105DAD: pop esi */
  23580     ebp = POP32_VAL(esp); /* 0x36105DAE: pop ebp */
  23581     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36105DAF: ret 4 */
  23582 L_36105E00:
  23583     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u);
  23584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23585     ecx = ecx - 0x138u; /* 0x36105E00: sub ecx, 0x138 */
  23586     _flag_k = FK_CMP;
  23587     RECOMP_BACKEDGE();
  23588     goto L_36105D90; /* 0x36105E06: jmp 0x36105d90 */
  23589     { RECOMP_REGS_OUT(); return; } /* end of function */
  23590     RECOMP_REGS_OUT();
  23591 }
  23592 
  23593 void sub_36105E10(void) {
  23594     int _fpu_cmp = 0;
  23595     uint32_t _cf = 0;
  23596     int _df = 1;
  23597     uint32_t _flag_k = FK_NONE;
  23598     uint32_t _flag_a = 0, _flag_b = 0;
  23599     uint32_t _itail_tgt = 0;
  23600     RECOMP_REGS_LOCALS
  23601     RECOMP_ENTER(0x36105E10u);
  23602 
  23603     goto L_36105E10;
  23604 L_36105D90:
  23605     PUSH32(esp, ebp); /* 0x36105D90: push ebp */
  23606     ebp = esp; /* 0x36105D91: mov ebp, esp */
  23607     PUSH32(esp, esi); /* 0x36105D93: push esi */
  23608     esi = ecx; /* 0x36105D94: mov esi, ecx */
  23609     RECOMP_ICALL(MEM32(0x3616F690)); /* 0x36105D96: call dword ptr [0x3616f690] */
  23610     RECOMP_FLAGS_IN();
  23611     /* test MEM8(ebp + 0x8), 1 */ /* 0x36105D9C: test byte ptr [ebp + 8], 1 */
  23612     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  23613     _cf = 0;
  23614     _flag_k = FK_NARROW(FK_TEST, 24);
  23615     if (TEST_Z(_flag_a, _flag_b)) goto L_36105DAB; /* 0x36105DA0: je 0x36105dab */
  23616 L_36105DA2:
  23617     PUSH32(esp, esi); /* 0x36105DA2: push esi */
  23618     RECOMP_ICALL(0x3615FCC4u); /* 0x36105DA3: call 0x3615fcc4 */ /* not lifted */
  23619     RECOMP_FLAGS_IN();
  23620     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  23621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  23622     esp = esp + 4; /* 0x36105DA8: add esp, 4 */
  23623     _flag_k = FK_ADD;
  23624 L_36105DAB:
  23625     eax = esi; /* 0x36105DAB: mov eax, esi */
  23626     esi = POP32_VAL(esp); /* 0x36105DAD: pop esi */
  23627     ebp = POP32_VAL(esp); /* 0x36105DAE: pop ebp */
  23628     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36105DAF: ret 4 */
  23629 L_36105E10:
  23630     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u);
  23631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  23632     ecx = ecx - 0x150u; /* 0x36105E10: sub ecx, 0x150 */
  23633     _flag_k = FK_CMP;
  23634     RECOMP_BACKEDGE();
  23635     goto L_36105D90; /* 0x36105E16: jmp 0x36105d90 */
  23636     { RECOMP_REGS_OUT(); return; } /* end of function */
  23637     RECOMP_REGS_OUT();
  23638 }
  23639 
  23640 void sub_36105E20(void) {
  23641     int _fpu_cmp = 0;
  23642     uint32_t _cf = 0;
  23643     int _df = 1;
  23644     uint32_t _flag_k = FK_NONE;
  23645     uint32_t _flag_a = 0, _flag_b = 0;
  23646     uint32_t _itail_tgt = 0;
  23647     RECOMP_REGS_LOCALS
  23648     RECOMP_ENTER(0x36105E20u);
  23649 
  23650 L_36105E20:
  23651     PUSH32(esp, ebp); /* 0x36105E20: push ebp */
  23652     ebp = esp; /* 0x36105E21: mov ebp, esp */
  23653     PUSH32(esp, 0xFFFFFFFFu); /* 0x36105E23: push -1 */
  23654     PUSH32(esp, 0x3616A088u); /* 0x36105E25: push 0x3616a088 */
  23655     eax = MEM32(FS_BASE + (0)); /* 0x36105E2A: mov eax, dword ptr fs:[0] */
  23656     PUSH32(esp, eax); /* 0x36105E30: push eax */
  23657     MEM32(FS_BASE + (0)) = esp; /* 0x36105E31: mov dword ptr fs:[0], esp */
  23658     PUSH32(esp, ecx); /* 0x36105E38: push ecx */
  23659     eax = MEM32(ebp + 0x8); /* 0x36105E39: mov eax, dword ptr [ebp + 8] */
  23660     PUSH32(esp, esi); /* 0x36105E3C: push esi */
  23661     esi = ecx; /* 0x36105E3D: mov esi, ecx */
  23662     PUSH32(esp, eax); /* 0x36105E3F: push eax */
  23663     MEM32(ebp + (-0x10)) = esi; /* 0x36105E40: mov dword ptr [ebp - 0x10], esi */
  23664     RECOMP_ICALL(0x360FC270u); /* 0x36105E43: call 0x360fc270 */ /* not lifted */
  23665     RECOMP_FLAGS_IN();
  23666     edx = MEM32(ebp + 0xC); /* 0x36105E48: mov edx, dword ptr [ebp + 0xc] */
  23667     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  23668     eax = 0; /* 0x36105E4B: xor eax, eax */
  23669     _cf = 0;
  23670     _flag_k = FK_TEST;
  23671     MEM32(esi + 0x28) = eax; /* 0x36105E4D: mov dword ptr [esi + 0x28], eax */
  23672     MEM32(esi + 0x2C) = eax; /* 0x36105E50: mov dword ptr [esi + 0x2c], eax */
  23673     MEM32(esi + 0x30) = eax; /* 0x36105E53: mov dword ptr [esi + 0x30], eax */
  23674     MEM32(esi + 0x34) = eax; /* 0x36105E56: mov dword ptr [esi + 0x34], eax */
  23675     MEM32(esi + 0x38) = eax; /* 0x36105E59: mov dword ptr [esi + 0x38], eax */
  23676     MEM32(esi + 0x3C) = eax; /* 0x36105E5C: mov dword ptr [esi + 0x3c], eax */
  23677     MEM32(ebp + (-0x4)) = eax; /* 0x36105E5F: mov dword ptr [ebp - 4], eax */
  23678     eax = MEM32(edx); /* 0x36105E62: mov eax, dword ptr [edx] */
  23679     ecx = esi + 0x64; /* 0x36105E64: lea ecx, [esi + 0x64] */
  23680     MEM32(ecx) = eax; /* 0x36105E67: mov dword ptr [ecx], eax */
  23681     eax = MEM32(edx + 0x4); /* 0x36105E69: mov eax, dword ptr [edx + 4] */
  23682     MEM32(ecx + 0x4) = eax; /* 0x36105E6C: mov dword ptr [ecx + 4], eax */
  23683     edx = MEM32(edx + 0x8); /* 0x36105E6F: mov edx, dword ptr [edx + 8] */
  23684     MEM32(ecx + 0x8) = edx; /* 0x36105E72: mov dword ptr [ecx + 8], edx */
  23685     ecx = MEM32(ebp + 0x10); /* 0x36105E75: mov ecx, dword ptr [ebp + 0x10] */
  23686     edx = MEM32(ecx); /* 0x36105E78: mov edx, dword ptr [ecx] */
  23687     eax = esi + 0x70; /* 0x36105E7A: lea eax, [esi + 0x70] */
  23688     MEM32(eax) = edx; /* 0x36105E7D: mov dword ptr [eax], edx */
  23689     edx = MEM32(ecx + 0x4); /* 0x36105E7F: mov edx, dword ptr [ecx + 4] */
  23690     MEM32(eax + 0x4) = edx; /* 0x36105E82: mov dword ptr [eax + 4], edx */
  23691     ecx = MEM32(ecx + 0x8); /* 0x36105E85: mov ecx, dword ptr [ecx + 8] */
  23692     MEM32(eax + 0x8) = ecx; /* 0x36105E88: mov dword ptr [eax + 8], ecx */
  23693     ecx = esi; /* 0x36105E8B: mov ecx, esi */
  23694     MEM32(esi) = 0x36175FF4u; /* 0x36105E8D: mov dword ptr [esi], 0x36175ff4 */
  23695     RECOMP_ICALL(0x36106080u); /* 0x36105E93: call 0x36106080 */ /* not lifted */
  23696     RECOMP_FLAGS_IN();
  23697     ecx = MEM32(ebp + (-0xC)); /* 0x36105E98: mov ecx, dword ptr [ebp - 0xc] */
  23698     eax = esi; /* 0x36105E9B: mov eax, esi */
  23699     esi = POP32_VAL(esp); /* 0x36105E9D: pop esi */
  23700     MEM32(FS_BASE + (0)) = ecx; /* 0x36105E9E: mov dword ptr fs:[0], ecx */
  23701     esp = ebp; /* 0x36105EA5: mov esp, ebp */
  23702     ebp = POP32_VAL(esp); /* 0x36105EA7: pop ebp */
  23703     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36105EA8: ret 0xc */
  23704     RECOMP_REGS_OUT();
  23705 }