aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0024.c (390916B)


      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_36049A80(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(0x36049A80u);
     17 
     18 L_36049A80:
     19     SET_LO8(ecx, MEM8(0x363066D0)); /* 0x36049A80: mov cl, byte ptr [0x363066d0] */
     20     SET_LO8(eax, 1); /* 0x36049A86: mov al, 1 */
     21     /* test LO8(eax), LO8(ecx) */ /* 0x36049A88: test al, cl */
     22     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
     23     _cf = 0;
     24     _flag_k = FK_NARROW(FK_TEST, 24);
     25     if (TEST_NZ(_flag_a, _flag_b)) goto L_36049B97; /* 0x36049A8A: jne 0x36049b97 */
     26 L_36049A90:
     27     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
     28     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x36049A90: or cl, al */
     29     _cf = 0;
     30     _flag_k = FK_NARROW(FK_TEST, 24);
     31     MEM8(0x363066D0) = (uint8_t)(LO8(ecx)); /* 0x36049A92: mov byte ptr [0x363066d0], cl */
     32     ecx = MEM32(0x3630667C); /* 0x36049A98: mov ecx, dword ptr [0x3630667c] */
     33     /* test ecx, ecx */ /* 0x36049A9E: test ecx, ecx */
     34     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     35     _cf = 0;
     36     _flag_k = FK_TEST;
     37     if (TEST_Z(_flag_a, _flag_b)) goto L_36049B97; /* 0x36049AA0: je 0x36049b97 */
     38 L_36049AA6:
     39     eax = MEM32(0x36306660); /* 0x36049AA6: mov eax, dword ptr [0x36306660] */
     40     PUSH32(esp, esi); /* 0x36049AAB: push esi */
     41     if (TEST_Z(_flag_a, _flag_b)) goto L_36049B88; /* 0x36049AAC: je 0x36049b88 */
     42 L_36049AB2:
     43     ecx = MEM32(0x3630665C); /* 0x36049AB2: mov ecx, dword ptr [0x3630665c] */
     44     edx = MEM32(0x36306658); /* 0x36049AB8: mov edx, dword ptr [0x36306658] */
     45     /* cmp ecx, edx */ /* 0x36049ABE: cmp ecx, edx */
     46     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
     47     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     48     _flag_k = FK_CMP;
     49     esi = eax; /* 0x36049AC0: mov esi, eax */
     50     if (CMP_EQ(_flag_a, _flag_b)) goto L_36049AFA; /* 0x36049AC2: je 0x36049afa */
     51 L_36049AC4:
     52     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
     53     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     54     ecx = ecx + 4; /* 0x36049AC4: add ecx, 4 */
     55     _flag_k = FK_ADD;
     56     /* cmp ecx, edx */ /* 0x36049AC7: cmp ecx, edx */
     57     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
     58     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     59     _flag_k = FK_CMP;
     60     MEM32(0x3630665C) = ecx; /* 0x36049AC9: mov dword ptr [0x3630665c], ecx */
     61     if (CMP_NE(_flag_a, _flag_b)) goto L_36049AFA; /* 0x36049ACF: jne 0x36049afa */
     62 L_36049AD1:
     63     ecx = MEM32(eax + 0x4); /* 0x36049AD1: mov ecx, dword ptr [eax + 4] */
     64     /* test ecx, ecx */ /* 0x36049AD4: test ecx, ecx */
     65     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     66     _cf = 0;
     67     _flag_k = FK_TEST;
     68     if (TEST_Z(_flag_a, _flag_b)) goto L_36049AFA; /* 0x36049AD6: je 0x36049afa */
     69 L_36049AD8:
     70     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
     71     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     72     eax = eax + 4; /* 0x36049AD8: add eax, 4 */
     73     _flag_k = FK_ADD;
     74     MEM32(0x36306660) = eax; /* 0x36049ADB: mov dword ptr [0x36306660], eax */
     75     ecx = MEM32(eax); /* 0x36049AE0: mov ecx, dword ptr [eax] */
     76     edx = ecx + 0x1000; /* 0x36049AE2: lea edx, [ecx + 0x1000] */
     77     MEM32(0x36306654) = ecx; /* 0x36049AE8: mov dword ptr [0x36306654], ecx */
     78     MEM32(0x36306658) = edx; /* 0x36049AEE: mov dword ptr [0x36306658], edx */
     79     MEM32(0x3630665C) = ecx; /* 0x36049AF4: mov dword ptr [0x3630665c], ecx */
     80 L_36049AFA:
     81     _flag_a = (uint32_t)(MEM32(0x3630667C)); _flag_b = (uint32_t)(1);
     82     MEM32(0x3630667C) = MEM32(0x3630667C) - 1; /* 0x36049AFA: dec dword ptr [0x3630667c] */
     83     _flag_k = FK_DEC;
     84     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36049B6E; /* 0x36049B00: jne 0x36049b6e */
     85 L_36049B02:
     86     eax = MEM32(eax + (-0x4)); /* 0x36049B02: mov eax, dword ptr [eax - 4] */
     87     PUSH32(esp, eax); /* 0x36049B05: push eax */
     88     RECOMP_ICALL(0x3615FCC4u); /* 0x36049B06: call 0x3615fcc4 */ /* not lifted */
     89     RECOMP_FLAGS_IN();
     90     ecx = MEM32(0x36306660); /* 0x36049B0B: mov ecx, dword ptr [0x36306660] */
     91     edx = MEM32(ecx); /* 0x36049B11: mov edx, dword ptr [ecx] */
     92     PUSH32(esp, edx); /* 0x36049B13: push edx */
     93     RECOMP_ICALL(0x3615FCC4u); /* 0x36049B14: call 0x3615fcc4 */ /* not lifted */
     94     RECOMP_FLAGS_IN();
     95     eax = MEM32(0x36306660); /* 0x36049B19: mov eax, dword ptr [0x36306660] */
     96     ecx = MEM32(eax + 0x4); /* 0x36049B1E: mov ecx, dword ptr [eax + 4] */
     97     PUSH32(esp, ecx); /* 0x36049B21: push ecx */
     98     RECOMP_ICALL(0x3615FCC4u); /* 0x36049B22: call 0x3615fcc4 */ /* not lifted */
     99     RECOMP_FLAGS_IN();
    100     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    101     edx = 0; /* 0x36049B27: xor edx, edx */
    102     _cf = 0;
    103     _flag_k = FK_TEST;
    104     MEM32(0x3630665C) = edx; /* 0x36049B29: mov dword ptr [0x3630665c], edx */
    105     MEM32(0x3630666C) = edx; /* 0x36049B2F: mov dword ptr [0x3630666c], edx */
    106     edx = MEM32(0x36306674); /* 0x36049B35: mov edx, dword ptr [0x36306674] */
    107     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    108     eax = 0; /* 0x36049B3B: xor eax, eax */
    109     _cf = 0;
    110     _flag_k = FK_TEST;
    111     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    112     ecx = 0; /* 0x36049B3D: xor ecx, ecx */
    113     _cf = 0;
    114     _flag_k = FK_TEST;
    115     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    116     esi = 0; /* 0x36049B3F: xor esi, esi */
    117     _cf = 0;
    118     _flag_k = FK_TEST;
    119     PUSH32(esp, edx); /* 0x36049B41: push edx */
    120     MEM32(0x36306654) = eax; /* 0x36049B42: mov dword ptr [0x36306654], eax */
    121     MEM32(0x36306658) = ecx; /* 0x36049B47: mov dword ptr [0x36306658], ecx */
    122     MEM32(0x36306660) = esi; /* 0x36049B4D: mov dword ptr [0x36306660], esi */
    123     MEM32(0x36306664) = eax; /* 0x36049B53: mov dword ptr [0x36306664], eax */
    124     MEM32(0x36306668) = ecx; /* 0x36049B58: mov dword ptr [0x36306668], ecx */
    125     MEM32(0x36306670) = esi; /* 0x36049B5E: mov dword ptr [0x36306670], esi */
    126     RECOMP_ICALL(0x3615FCC4u); /* 0x36049B64: call 0x3615fcc4 */ /* not lifted */
    127     RECOMP_FLAGS_IN();
    128     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    129     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    130     esp = esp + 0x10u; /* 0x36049B69: add esp, 0x10 */
    131     _flag_k = FK_ADD;
    132     goto L_36049B83; /* 0x36049B6C: jmp 0x36049b83 */
    133 L_36049B6E:
    134     /* cmp esi, eax */ /* 0x36049B6E: cmp esi, eax */
    135     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    137     _flag_k = FK_CMP;
    138     if (CMP_EQ(_flag_a, _flag_b)) goto L_36049B88; /* 0x36049B70: je 0x36049b88 */
    139 L_36049B72:
    140     eax = MEM32(esi); /* 0x36049B72: mov eax, dword ptr [esi] */
    141     PUSH32(esp, eax); /* 0x36049B74: push eax */
    142     RECOMP_ICALL(0x3615FCC4u); /* 0x36049B75: call 0x3615fcc4 */ /* not lifted */
    143     RECOMP_FLAGS_IN();
    144     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    145     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    146     esp = esp + 4; /* 0x36049B7A: add esp, 4 */
    147     _flag_k = FK_ADD;
    148     MEM32(esi) = 0; /* 0x36049B7D: mov dword ptr [esi], 0 */
    149 L_36049B83:
    150     eax = MEM32(0x36306660); /* 0x36049B83: mov eax, dword ptr [0x36306660] */
    151 L_36049B88:
    152     ecx = MEM32(0x3630667C); /* 0x36049B88: mov ecx, dword ptr [0x3630667c] */
    153     /* test ecx, ecx */ /* 0x36049B8E: test ecx, ecx */
    154     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    155     _cf = 0;
    156     _flag_k = FK_TEST;
    157     RECOMP_BACKEDGE();
    158     if (TEST_NZ(_flag_a, _flag_b)) goto L_36049AB2; /* 0x36049B90: jne 0x36049ab2 */
    159 L_36049B96:
    160     esi = POP32_VAL(esp); /* 0x36049B96: pop esi */
    161 L_36049B97:
    162     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049B97: ret  */
    163     RECOMP_REGS_OUT();
    164 }
    165 
    166 void sub_36049BA0(void) {
    167     int _fpu_cmp = 0;
    168     uint32_t _cf = 0;
    169     int _df = 1;
    170     uint32_t _flag_k = FK_NONE;
    171     uint32_t _flag_a = 0, _flag_b = 0;
    172     uint32_t _itail_tgt = 0;
    173     RECOMP_REGS_LOCALS
    174     RECOMP_ENTER(0x36049BA0u);
    175 
    176 L_36049BA0:
    177     RECOMP_ICALL(0x36049BB0u); /* 0x36049BA0: call 0x36049bb0 */ /* not lifted */
    178     RECOMP_FLAGS_IN();
    179     goto L_36049C00; /* 0x36049BA5: jmp 0x36049c00 */
    180 L_36049C00:
    181     PUSH32(esp, 0x36049C10u); /* 0x36049C00: push 0x36049c10 */
    182     RECOMP_ICALL(0x3615FEB2u); /* 0x36049C05: call 0x3615feb2 */ /* not lifted */
    183     RECOMP_FLAGS_IN();
    184     ecx = POP32_VAL(esp); /* 0x36049C0A: pop ecx */
    185     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049C0B: ret  */
    186     RECOMP_REGS_OUT();
    187 }
    188 
    189 void sub_36049BB0(void) {
    190     int _fpu_cmp = 0;
    191     uint32_t _cf = 0;
    192     int _df = 1;
    193     uint32_t _flag_k = FK_NONE;
    194     uint32_t _flag_a = 0, _flag_b = 0;
    195     uint32_t _itail_tgt = 0;
    196     RECOMP_REGS_LOCALS
    197     RECOMP_ENTER(0x36049BB0u);
    198 
    199 L_36049BB0:
    200     PUSH32(esp, ebp); /* 0x36049BB0: push ebp */
    201     ebp = esp; /* 0x36049BB1: mov ebp, esp */
    202     PUSH32(esp, ecx); /* 0x36049BB3: push ecx */
    203     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x36049BB4: mov al, byte ptr [ebp - 1] */
    204     MEM8(0x36306688) = (uint8_t)(LO8(eax)); /* 0x36049BB7: mov byte ptr [0x36306688], al */
    205     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    206     eax = 0; /* 0x36049BBC: xor eax, eax */
    207     _cf = 0;
    208     _flag_k = FK_TEST;
    209     MEM32(0x3630668C) = eax; /* 0x36049BBE: mov dword ptr [0x3630668c], eax */
    210     MEM32(0x36306690) = eax; /* 0x36049BC3: mov dword ptr [0x36306690], eax */
    211     MEM32(0x36306694) = eax; /* 0x36049BC8: mov dword ptr [0x36306694], eax */
    212     MEM32(0x36306698) = eax; /* 0x36049BCD: mov dword ptr [0x36306698], eax */
    213     MEM32(0x3630669C) = eax; /* 0x36049BD2: mov dword ptr [0x3630669c], eax */
    214     MEM32(0x363066A0) = eax; /* 0x36049BD7: mov dword ptr [0x363066a0], eax */
    215     MEM32(0x363066A4) = eax; /* 0x36049BDC: mov dword ptr [0x363066a4], eax */
    216     MEM32(0x363066A8) = eax; /* 0x36049BE1: mov dword ptr [0x363066a8], eax */
    217     MEM32(0x363066AC) = eax; /* 0x36049BE6: mov dword ptr [0x363066ac], eax */
    218     MEM32(0x363066B0) = eax; /* 0x36049BEB: mov dword ptr [0x363066b0], eax */
    219     MEM32(0x363066B4) = eax; /* 0x36049BF0: mov dword ptr [0x363066b4], eax */
    220     esp = ebp; /* 0x36049BF5: mov esp, ebp */
    221     ebp = POP32_VAL(esp); /* 0x36049BF7: pop ebp */
    222     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049BF8: ret  */
    223     RECOMP_REGS_OUT();
    224 }
    225 
    226 void sub_36049C00(void) {
    227     int _fpu_cmp = 0;
    228     uint32_t _cf = 0;
    229     int _df = 1;
    230     uint32_t _flag_k = FK_NONE;
    231     uint32_t _flag_a = 0, _flag_b = 0;
    232     uint32_t _itail_tgt = 0;
    233     RECOMP_REGS_LOCALS
    234     RECOMP_ENTER(0x36049C00u);
    235 
    236 L_36049C00:
    237     PUSH32(esp, 0x36049C10u); /* 0x36049C00: push 0x36049c10 */
    238     RECOMP_ICALL(0x3615FEB2u); /* 0x36049C05: call 0x3615feb2 */ /* not lifted */
    239     RECOMP_FLAGS_IN();
    240     ecx = POP32_VAL(esp); /* 0x36049C0A: pop ecx */
    241     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049C0B: ret  */
    242     RECOMP_REGS_OUT();
    243 }
    244 
    245 void sub_36049C10(void) {
    246     int _fpu_cmp = 0;
    247     uint32_t _cf = 0;
    248     int _df = 1;
    249     uint32_t _flag_k = FK_NONE;
    250     uint32_t _flag_a = 0, _flag_b = 0;
    251     uint32_t _itail_tgt = 0;
    252     RECOMP_REGS_LOCALS
    253     RECOMP_ENTER(0x36049C10u);
    254 
    255 L_36049C10:
    256     SET_LO8(ecx, MEM8(0x363066D0)); /* 0x36049C10: mov cl, byte ptr [0x363066d0] */
    257     SET_LO8(eax, 2); /* 0x36049C16: mov al, 2 */
    258     /* test LO8(eax), LO8(ecx) */ /* 0x36049C18: test al, cl */
    259     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    260     _cf = 0;
    261     _flag_k = FK_NARROW(FK_TEST, 24);
    262     if (TEST_NZ(_flag_a, _flag_b)) goto L_36049D27; /* 0x36049C1A: jne 0x36049d27 */
    263 L_36049C20:
    264     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
    265     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x36049C20: or cl, al */
    266     _cf = 0;
    267     _flag_k = FK_NARROW(FK_TEST, 24);
    268     MEM8(0x363066D0) = (uint8_t)(LO8(ecx)); /* 0x36049C22: mov byte ptr [0x363066d0], cl */
    269     ecx = MEM32(0x363066B4); /* 0x36049C28: mov ecx, dword ptr [0x363066b4] */
    270     /* test ecx, ecx */ /* 0x36049C2E: test ecx, ecx */
    271     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    272     _cf = 0;
    273     _flag_k = FK_TEST;
    274     if (TEST_Z(_flag_a, _flag_b)) goto L_36049D27; /* 0x36049C30: je 0x36049d27 */
    275 L_36049C36:
    276     eax = MEM32(0x36306698); /* 0x36049C36: mov eax, dword ptr [0x36306698] */
    277     PUSH32(esp, esi); /* 0x36049C3B: push esi */
    278     if (TEST_Z(_flag_a, _flag_b)) goto L_36049D18; /* 0x36049C3C: je 0x36049d18 */
    279 L_36049C42:
    280     ecx = MEM32(0x36306694); /* 0x36049C42: mov ecx, dword ptr [0x36306694] */
    281     edx = MEM32(0x36306690); /* 0x36049C48: mov edx, dword ptr [0x36306690] */
    282     /* cmp ecx, edx */ /* 0x36049C4E: cmp ecx, edx */
    283     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    284     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    285     _flag_k = FK_CMP;
    286     esi = eax; /* 0x36049C50: mov esi, eax */
    287     if (CMP_EQ(_flag_a, _flag_b)) goto L_36049C8A; /* 0x36049C52: je 0x36049c8a */
    288 L_36049C54:
    289     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    291     ecx = ecx + 4; /* 0x36049C54: add ecx, 4 */
    292     _flag_k = FK_ADD;
    293     /* cmp ecx, edx */ /* 0x36049C57: cmp ecx, edx */
    294     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    296     _flag_k = FK_CMP;
    297     MEM32(0x36306694) = ecx; /* 0x36049C59: mov dword ptr [0x36306694], ecx */
    298     if (CMP_NE(_flag_a, _flag_b)) goto L_36049C8A; /* 0x36049C5F: jne 0x36049c8a */
    299 L_36049C61:
    300     ecx = MEM32(eax + 0x4); /* 0x36049C61: mov ecx, dword ptr [eax + 4] */
    301     /* test ecx, ecx */ /* 0x36049C64: test ecx, ecx */
    302     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    303     _cf = 0;
    304     _flag_k = FK_TEST;
    305     if (TEST_Z(_flag_a, _flag_b)) goto L_36049C8A; /* 0x36049C66: je 0x36049c8a */
    306 L_36049C68:
    307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    309     eax = eax + 4; /* 0x36049C68: add eax, 4 */
    310     _flag_k = FK_ADD;
    311     MEM32(0x36306698) = eax; /* 0x36049C6B: mov dword ptr [0x36306698], eax */
    312     ecx = MEM32(eax); /* 0x36049C70: mov ecx, dword ptr [eax] */
    313     edx = ecx + 0x1000; /* 0x36049C72: lea edx, [ecx + 0x1000] */
    314     MEM32(0x3630668C) = ecx; /* 0x36049C78: mov dword ptr [0x3630668c], ecx */
    315     MEM32(0x36306690) = edx; /* 0x36049C7E: mov dword ptr [0x36306690], edx */
    316     MEM32(0x36306694) = ecx; /* 0x36049C84: mov dword ptr [0x36306694], ecx */
    317 L_36049C8A:
    318     _flag_a = (uint32_t)(MEM32(0x363066B4)); _flag_b = (uint32_t)(1);
    319     MEM32(0x363066B4) = MEM32(0x363066B4) - 1; /* 0x36049C8A: dec dword ptr [0x363066b4] */
    320     _flag_k = FK_DEC;
    321     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36049CFE; /* 0x36049C90: jne 0x36049cfe */
    322 L_36049C92:
    323     eax = MEM32(eax + (-0x4)); /* 0x36049C92: mov eax, dword ptr [eax - 4] */
    324     PUSH32(esp, eax); /* 0x36049C95: push eax */
    325     RECOMP_ICALL(0x3615FCC4u); /* 0x36049C96: call 0x3615fcc4 */ /* not lifted */
    326     RECOMP_FLAGS_IN();
    327     ecx = MEM32(0x36306698); /* 0x36049C9B: mov ecx, dword ptr [0x36306698] */
    328     edx = MEM32(ecx); /* 0x36049CA1: mov edx, dword ptr [ecx] */
    329     PUSH32(esp, edx); /* 0x36049CA3: push edx */
    330     RECOMP_ICALL(0x3615FCC4u); /* 0x36049CA4: call 0x3615fcc4 */ /* not lifted */
    331     RECOMP_FLAGS_IN();
    332     eax = MEM32(0x36306698); /* 0x36049CA9: mov eax, dword ptr [0x36306698] */
    333     ecx = MEM32(eax + 0x4); /* 0x36049CAE: mov ecx, dword ptr [eax + 4] */
    334     PUSH32(esp, ecx); /* 0x36049CB1: push ecx */
    335     RECOMP_ICALL(0x3615FCC4u); /* 0x36049CB2: call 0x3615fcc4 */ /* not lifted */
    336     RECOMP_FLAGS_IN();
    337     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    338     edx = 0; /* 0x36049CB7: xor edx, edx */
    339     _cf = 0;
    340     _flag_k = FK_TEST;
    341     MEM32(0x36306694) = edx; /* 0x36049CB9: mov dword ptr [0x36306694], edx */
    342     MEM32(0x363066A4) = edx; /* 0x36049CBF: mov dword ptr [0x363066a4], edx */
    343     edx = MEM32(0x363066AC); /* 0x36049CC5: mov edx, dword ptr [0x363066ac] */
    344     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    345     eax = 0; /* 0x36049CCB: xor eax, eax */
    346     _cf = 0;
    347     _flag_k = FK_TEST;
    348     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    349     ecx = 0; /* 0x36049CCD: xor ecx, ecx */
    350     _cf = 0;
    351     _flag_k = FK_TEST;
    352     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    353     esi = 0; /* 0x36049CCF: xor esi, esi */
    354     _cf = 0;
    355     _flag_k = FK_TEST;
    356     PUSH32(esp, edx); /* 0x36049CD1: push edx */
    357     MEM32(0x3630668C) = eax; /* 0x36049CD2: mov dword ptr [0x3630668c], eax */
    358     MEM32(0x36306690) = ecx; /* 0x36049CD7: mov dword ptr [0x36306690], ecx */
    359     MEM32(0x36306698) = esi; /* 0x36049CDD: mov dword ptr [0x36306698], esi */
    360     MEM32(0x3630669C) = eax; /* 0x36049CE3: mov dword ptr [0x3630669c], eax */
    361     MEM32(0x363066A0) = ecx; /* 0x36049CE8: mov dword ptr [0x363066a0], ecx */
    362     MEM32(0x363066A8) = esi; /* 0x36049CEE: mov dword ptr [0x363066a8], esi */
    363     RECOMP_ICALL(0x3615FCC4u); /* 0x36049CF4: call 0x3615fcc4 */ /* not lifted */
    364     RECOMP_FLAGS_IN();
    365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    367     esp = esp + 0x10u; /* 0x36049CF9: add esp, 0x10 */
    368     _flag_k = FK_ADD;
    369     goto L_36049D13; /* 0x36049CFC: jmp 0x36049d13 */
    370 L_36049CFE:
    371     /* cmp esi, eax */ /* 0x36049CFE: cmp esi, eax */
    372     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    374     _flag_k = FK_CMP;
    375     if (CMP_EQ(_flag_a, _flag_b)) goto L_36049D18; /* 0x36049D00: je 0x36049d18 */
    376 L_36049D02:
    377     eax = MEM32(esi); /* 0x36049D02: mov eax, dword ptr [esi] */
    378     PUSH32(esp, eax); /* 0x36049D04: push eax */
    379     RECOMP_ICALL(0x3615FCC4u); /* 0x36049D05: call 0x3615fcc4 */ /* not lifted */
    380     RECOMP_FLAGS_IN();
    381     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    383     esp = esp + 4; /* 0x36049D0A: add esp, 4 */
    384     _flag_k = FK_ADD;
    385     MEM32(esi) = 0; /* 0x36049D0D: mov dword ptr [esi], 0 */
    386 L_36049D13:
    387     eax = MEM32(0x36306698); /* 0x36049D13: mov eax, dword ptr [0x36306698] */
    388 L_36049D18:
    389     ecx = MEM32(0x363066B4); /* 0x36049D18: mov ecx, dword ptr [0x363066b4] */
    390     /* test ecx, ecx */ /* 0x36049D1E: test ecx, ecx */
    391     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    392     _cf = 0;
    393     _flag_k = FK_TEST;
    394     RECOMP_BACKEDGE();
    395     if (TEST_NZ(_flag_a, _flag_b)) goto L_36049C42; /* 0x36049D20: jne 0x36049c42 */
    396 L_36049D26:
    397     esi = POP32_VAL(esp); /* 0x36049D26: pop esi */
    398 L_36049D27:
    399     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049D27: ret  */
    400     RECOMP_REGS_OUT();
    401 }
    402 
    403 void sub_36049D30(void) {
    404     int _fpu_cmp = 0;
    405     uint32_t _cf = 0;
    406     int _df = 1;
    407     uint32_t _flag_k = FK_NONE;
    408     uint32_t _flag_a = 0, _flag_b = 0;
    409     uint32_t _itail_tgt = 0;
    410     RECOMP_REGS_LOCALS
    411     RECOMP_ENTER(0x36049D30u);
    412 
    413 L_36049D30:
    414     RECOMP_ICALL(0x36049D40u); /* 0x36049D30: call 0x36049d40 */ /* not lifted */
    415     RECOMP_FLAGS_IN();
    416     goto L_36049D90; /* 0x36049D35: jmp 0x36049d90 */
    417 L_36049D90:
    418     PUSH32(esp, 0x36049DA0u); /* 0x36049D90: push 0x36049da0 */
    419     RECOMP_ICALL(0x3615FEB2u); /* 0x36049D95: call 0x3615feb2 */ /* not lifted */
    420     RECOMP_FLAGS_IN();
    421     ecx = POP32_VAL(esp); /* 0x36049D9A: pop ecx */
    422     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049D9B: ret  */
    423     RECOMP_REGS_OUT();
    424 }
    425 
    426 void sub_36049D40(void) {
    427     int _fpu_cmp = 0;
    428     uint32_t _cf = 0;
    429     int _df = 1;
    430     uint32_t _flag_k = FK_NONE;
    431     uint32_t _flag_a = 0, _flag_b = 0;
    432     uint32_t _itail_tgt = 0;
    433     RECOMP_REGS_LOCALS
    434     RECOMP_ENTER(0x36049D40u);
    435 
    436 L_36049D40:
    437     PUSH32(esp, ebp); /* 0x36049D40: push ebp */
    438     ebp = esp; /* 0x36049D41: mov ebp, esp */
    439     PUSH32(esp, ecx); /* 0x36049D43: push ecx */
    440     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x36049D44: mov al, byte ptr [ebp - 1] */
    441     MEM8(0x36306620) = (uint8_t)(LO8(eax)); /* 0x36049D47: mov byte ptr [0x36306620], al */
    442     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    443     eax = 0; /* 0x36049D4C: xor eax, eax */
    444     _cf = 0;
    445     _flag_k = FK_TEST;
    446     MEM32(0x36306624) = eax; /* 0x36049D4E: mov dword ptr [0x36306624], eax */
    447     MEM32(0x36306628) = eax; /* 0x36049D53: mov dword ptr [0x36306628], eax */
    448     MEM32(0x3630662C) = eax; /* 0x36049D58: mov dword ptr [0x3630662c], eax */
    449     MEM32(0x36306630) = eax; /* 0x36049D5D: mov dword ptr [0x36306630], eax */
    450     MEM32(0x36306634) = eax; /* 0x36049D62: mov dword ptr [0x36306634], eax */
    451     MEM32(0x36306638) = eax; /* 0x36049D67: mov dword ptr [0x36306638], eax */
    452     MEM32(0x3630663C) = eax; /* 0x36049D6C: mov dword ptr [0x3630663c], eax */
    453     MEM32(0x36306640) = eax; /* 0x36049D71: mov dword ptr [0x36306640], eax */
    454     MEM32(0x36306644) = eax; /* 0x36049D76: mov dword ptr [0x36306644], eax */
    455     MEM32(0x36306648) = eax; /* 0x36049D7B: mov dword ptr [0x36306648], eax */
    456     MEM32(0x3630664C) = eax; /* 0x36049D80: mov dword ptr [0x3630664c], eax */
    457     esp = ebp; /* 0x36049D85: mov esp, ebp */
    458     ebp = POP32_VAL(esp); /* 0x36049D87: pop ebp */
    459     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049D88: ret  */
    460     RECOMP_REGS_OUT();
    461 }
    462 
    463 void sub_36049D90(void) {
    464     int _fpu_cmp = 0;
    465     uint32_t _cf = 0;
    466     int _df = 1;
    467     uint32_t _flag_k = FK_NONE;
    468     uint32_t _flag_a = 0, _flag_b = 0;
    469     uint32_t _itail_tgt = 0;
    470     RECOMP_REGS_LOCALS
    471     RECOMP_ENTER(0x36049D90u);
    472 
    473 L_36049D90:
    474     PUSH32(esp, 0x36049DA0u); /* 0x36049D90: push 0x36049da0 */
    475     RECOMP_ICALL(0x3615FEB2u); /* 0x36049D95: call 0x3615feb2 */ /* not lifted */
    476     RECOMP_FLAGS_IN();
    477     ecx = POP32_VAL(esp); /* 0x36049D9A: pop ecx */
    478     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049D9B: ret  */
    479     RECOMP_REGS_OUT();
    480 }
    481 
    482 void sub_36049DA0(void) {
    483     int _fpu_cmp = 0;
    484     uint32_t _cf = 0;
    485     int _df = 1;
    486     uint32_t _flag_k = FK_NONE;
    487     uint32_t _flag_a = 0, _flag_b = 0;
    488     uint32_t _itail_tgt = 0;
    489     RECOMP_REGS_LOCALS
    490     RECOMP_ENTER(0x36049DA0u);
    491 
    492 L_36049DA0:
    493     SET_LO8(eax, MEM8(0x363066D0)); /* 0x36049DA0: mov al, byte ptr [0x363066d0] */
    494     /* test LO8(eax), 4 */ /* 0x36049DA5: test al, 4 */
    495     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24;
    496     _cf = 0;
    497     _flag_k = FK_NARROW(FK_TEST, 24);
    498     if (TEST_NZ(_flag_a, _flag_b)) goto L_36049EB7; /* 0x36049DA7: jne 0x36049eb7 */
    499 L_36049DAD:
    500     SET_LO8(ecx, LO8(eax)); /* 0x36049DAD: mov cl, al */
    501     _flag_a = (uint32_t)((LO8(ecx) | 4)) << 24; _flag_b = (uint32_t)((LO8(ecx) | 4)) << 24;
    502     SET_LO8(ecx, LO8(ecx) | 4); /* 0x36049DAF: or cl, 4 */
    503     _cf = 0;
    504     _flag_k = FK_NARROW(FK_TEST, 24);
    505     MEM8(0x363066D0) = (uint8_t)(LO8(ecx)); /* 0x36049DB2: mov byte ptr [0x363066d0], cl */
    506     ecx = MEM32(0x3630664C); /* 0x36049DB8: mov ecx, dword ptr [0x3630664c] */
    507     /* test ecx, ecx */ /* 0x36049DBE: test ecx, ecx */
    508     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    509     _cf = 0;
    510     _flag_k = FK_TEST;
    511     if (TEST_Z(_flag_a, _flag_b)) goto L_36049EB7; /* 0x36049DC0: je 0x36049eb7 */
    512 L_36049DC6:
    513     eax = MEM32(0x36306630); /* 0x36049DC6: mov eax, dword ptr [0x36306630] */
    514     PUSH32(esp, esi); /* 0x36049DCB: push esi */
    515     if (TEST_Z(_flag_a, _flag_b)) goto L_36049EA8; /* 0x36049DCC: je 0x36049ea8 */
    516 L_36049DD2:
    517     ecx = MEM32(0x3630662C); /* 0x36049DD2: mov ecx, dword ptr [0x3630662c] */
    518     edx = MEM32(0x36306628); /* 0x36049DD8: mov edx, dword ptr [0x36306628] */
    519     /* cmp ecx, edx */ /* 0x36049DDE: cmp ecx, edx */
    520     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    522     _flag_k = FK_CMP;
    523     esi = eax; /* 0x36049DE0: mov esi, eax */
    524     if (CMP_EQ(_flag_a, _flag_b)) goto L_36049E1A; /* 0x36049DE2: je 0x36049e1a */
    525 L_36049DE4:
    526     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    528     ecx = ecx + 4; /* 0x36049DE4: add ecx, 4 */
    529     _flag_k = FK_ADD;
    530     /* cmp ecx, edx */ /* 0x36049DE7: cmp ecx, edx */
    531     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    533     _flag_k = FK_CMP;
    534     MEM32(0x3630662C) = ecx; /* 0x36049DE9: mov dword ptr [0x3630662c], ecx */
    535     if (CMP_NE(_flag_a, _flag_b)) goto L_36049E1A; /* 0x36049DEF: jne 0x36049e1a */
    536 L_36049DF1:
    537     ecx = MEM32(eax + 0x4); /* 0x36049DF1: mov ecx, dword ptr [eax + 4] */
    538     /* test ecx, ecx */ /* 0x36049DF4: test ecx, ecx */
    539     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    540     _cf = 0;
    541     _flag_k = FK_TEST;
    542     if (TEST_Z(_flag_a, _flag_b)) goto L_36049E1A; /* 0x36049DF6: je 0x36049e1a */
    543 L_36049DF8:
    544     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    546     eax = eax + 4; /* 0x36049DF8: add eax, 4 */
    547     _flag_k = FK_ADD;
    548     MEM32(0x36306630) = eax; /* 0x36049DFB: mov dword ptr [0x36306630], eax */
    549     ecx = MEM32(eax); /* 0x36049E00: mov ecx, dword ptr [eax] */
    550     edx = ecx + 0x1000; /* 0x36049E02: lea edx, [ecx + 0x1000] */
    551     MEM32(0x36306624) = ecx; /* 0x36049E08: mov dword ptr [0x36306624], ecx */
    552     MEM32(0x36306628) = edx; /* 0x36049E0E: mov dword ptr [0x36306628], edx */
    553     MEM32(0x3630662C) = ecx; /* 0x36049E14: mov dword ptr [0x3630662c], ecx */
    554 L_36049E1A:
    555     _flag_a = (uint32_t)(MEM32(0x3630664C)); _flag_b = (uint32_t)(1);
    556     MEM32(0x3630664C) = MEM32(0x3630664C) - 1; /* 0x36049E1A: dec dword ptr [0x3630664c] */
    557     _flag_k = FK_DEC;
    558     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36049E8E; /* 0x36049E20: jne 0x36049e8e */
    559 L_36049E22:
    560     eax = MEM32(eax + (-0x4)); /* 0x36049E22: mov eax, dword ptr [eax - 4] */
    561     PUSH32(esp, eax); /* 0x36049E25: push eax */
    562     RECOMP_ICALL(0x3615FCC4u); /* 0x36049E26: call 0x3615fcc4 */ /* not lifted */
    563     RECOMP_FLAGS_IN();
    564     ecx = MEM32(0x36306630); /* 0x36049E2B: mov ecx, dword ptr [0x36306630] */
    565     edx = MEM32(ecx); /* 0x36049E31: mov edx, dword ptr [ecx] */
    566     PUSH32(esp, edx); /* 0x36049E33: push edx */
    567     RECOMP_ICALL(0x3615FCC4u); /* 0x36049E34: call 0x3615fcc4 */ /* not lifted */
    568     RECOMP_FLAGS_IN();
    569     eax = MEM32(0x36306630); /* 0x36049E39: mov eax, dword ptr [0x36306630] */
    570     ecx = MEM32(eax + 0x4); /* 0x36049E3E: mov ecx, dword ptr [eax + 4] */
    571     PUSH32(esp, ecx); /* 0x36049E41: push ecx */
    572     RECOMP_ICALL(0x3615FCC4u); /* 0x36049E42: call 0x3615fcc4 */ /* not lifted */
    573     RECOMP_FLAGS_IN();
    574     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    575     edx = 0; /* 0x36049E47: xor edx, edx */
    576     _cf = 0;
    577     _flag_k = FK_TEST;
    578     MEM32(0x3630662C) = edx; /* 0x36049E49: mov dword ptr [0x3630662c], edx */
    579     MEM32(0x3630663C) = edx; /* 0x36049E4F: mov dword ptr [0x3630663c], edx */
    580     edx = MEM32(0x36306644); /* 0x36049E55: mov edx, dword ptr [0x36306644] */
    581     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    582     eax = 0; /* 0x36049E5B: xor eax, eax */
    583     _cf = 0;
    584     _flag_k = FK_TEST;
    585     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    586     ecx = 0; /* 0x36049E5D: xor ecx, ecx */
    587     _cf = 0;
    588     _flag_k = FK_TEST;
    589     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    590     esi = 0; /* 0x36049E5F: xor esi, esi */
    591     _cf = 0;
    592     _flag_k = FK_TEST;
    593     PUSH32(esp, edx); /* 0x36049E61: push edx */
    594     MEM32(0x36306624) = eax; /* 0x36049E62: mov dword ptr [0x36306624], eax */
    595     MEM32(0x36306628) = ecx; /* 0x36049E67: mov dword ptr [0x36306628], ecx */
    596     MEM32(0x36306630) = esi; /* 0x36049E6D: mov dword ptr [0x36306630], esi */
    597     MEM32(0x36306634) = eax; /* 0x36049E73: mov dword ptr [0x36306634], eax */
    598     MEM32(0x36306638) = ecx; /* 0x36049E78: mov dword ptr [0x36306638], ecx */
    599     MEM32(0x36306640) = esi; /* 0x36049E7E: mov dword ptr [0x36306640], esi */
    600     RECOMP_ICALL(0x3615FCC4u); /* 0x36049E84: call 0x3615fcc4 */ /* not lifted */
    601     RECOMP_FLAGS_IN();
    602     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    604     esp = esp + 0x10u; /* 0x36049E89: add esp, 0x10 */
    605     _flag_k = FK_ADD;
    606     goto L_36049EA3; /* 0x36049E8C: jmp 0x36049ea3 */
    607 L_36049E8E:
    608     /* cmp esi, eax */ /* 0x36049E8E: cmp esi, eax */
    609     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    611     _flag_k = FK_CMP;
    612     if (CMP_EQ(_flag_a, _flag_b)) goto L_36049EA8; /* 0x36049E90: je 0x36049ea8 */
    613 L_36049E92:
    614     eax = MEM32(esi); /* 0x36049E92: mov eax, dword ptr [esi] */
    615     PUSH32(esp, eax); /* 0x36049E94: push eax */
    616     RECOMP_ICALL(0x3615FCC4u); /* 0x36049E95: call 0x3615fcc4 */ /* not lifted */
    617     RECOMP_FLAGS_IN();
    618     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    620     esp = esp + 4; /* 0x36049E9A: add esp, 4 */
    621     _flag_k = FK_ADD;
    622     MEM32(esi) = 0; /* 0x36049E9D: mov dword ptr [esi], 0 */
    623 L_36049EA3:
    624     eax = MEM32(0x36306630); /* 0x36049EA3: mov eax, dword ptr [0x36306630] */
    625 L_36049EA8:
    626     ecx = MEM32(0x3630664C); /* 0x36049EA8: mov ecx, dword ptr [0x3630664c] */
    627     /* test ecx, ecx */ /* 0x36049EAE: test ecx, ecx */
    628     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    629     _cf = 0;
    630     _flag_k = FK_TEST;
    631     RECOMP_BACKEDGE();
    632     if (TEST_NZ(_flag_a, _flag_b)) goto L_36049DD2; /* 0x36049EB0: jne 0x36049dd2 */
    633 L_36049EB6:
    634     esi = POP32_VAL(esp); /* 0x36049EB6: pop esi */
    635 L_36049EB7:
    636     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049EB7: ret  */
    637     RECOMP_REGS_OUT();
    638 }
    639 
    640 void sub_36049EC0(void) {
    641     int _fpu_cmp = 0;
    642     uint32_t _cf = 0;
    643     int _df = 1;
    644     uint32_t _flag_k = FK_NONE;
    645     uint32_t _flag_a = 0, _flag_b = 0;
    646     uint32_t _itail_tgt = 0;
    647     RECOMP_REGS_LOCALS
    648     RECOMP_ENTER(0x36049EC0u);
    649 
    650 L_36049EC0:
    651     PUSH32(esp, ebp); /* 0x36049EC0: push ebp */
    652     ebp = esp; /* 0x36049EC1: mov ebp, esp */
    653     eax = ecx; /* 0x36049EC3: mov eax, ecx */
    654     ecx = MEM32(ebp + 0x8); /* 0x36049EC5: mov ecx, dword ptr [ebp + 8] */
    655     MEM32(eax) = ecx; /* 0x36049EC8: mov dword ptr [eax], ecx */
    656     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    657     ecx = 0; /* 0x36049ECA: xor ecx, ecx */
    658     _cf = 0;
    659     _flag_k = FK_TEST;
    660     MEM32(eax + 0x4) = ecx; /* 0x36049ECC: mov dword ptr [eax + 4], ecx */
    661     MEM32(eax + 0x8) = ecx; /* 0x36049ECF: mov dword ptr [eax + 8], ecx */
    662     MEM32(eax + 0xC) = ecx; /* 0x36049ED2: mov dword ptr [eax + 0xc], ecx */
    663     MEM32(eax + 0x10) = ecx; /* 0x36049ED5: mov dword ptr [eax + 0x10], ecx */
    664     MEM32(eax + 0x14) = ecx; /* 0x36049ED8: mov dword ptr [eax + 0x14], ecx */
    665     MEM32(eax + 0x18) = ecx; /* 0x36049EDB: mov dword ptr [eax + 0x18], ecx */
    666     edx = 0x3F800000u; /* 0x36049EDE: mov edx, 0x3f800000 */
    667     MEM32(eax + 0x1C) = edx; /* 0x36049EE3: mov dword ptr [eax + 0x1c], edx */
    668     MEM32(eax + 0x20) = ecx; /* 0x36049EE6: mov dword ptr [eax + 0x20], ecx */
    669     MEM32(eax + 0x24) = ecx; /* 0x36049EE9: mov dword ptr [eax + 0x24], ecx */
    670     MEM32(eax + 0x28) = ecx; /* 0x36049EEC: mov dword ptr [eax + 0x28], ecx */
    671     MEM32(eax + 0x2C) = edx; /* 0x36049EEF: mov dword ptr [eax + 0x2c], edx */
    672     MEM32(eax + 0x30) = ecx; /* 0x36049EF2: mov dword ptr [eax + 0x30], ecx */
    673     MEM32(eax + 0x34) = ecx; /* 0x36049EF5: mov dword ptr [eax + 0x34], ecx */
    674     MEM32(eax + 0x38) = ecx; /* 0x36049EF8: mov dword ptr [eax + 0x38], ecx */
    675     MEM32(eax + 0x3C) = edx; /* 0x36049EFB: mov dword ptr [eax + 0x3c], edx */
    676     ebp = POP32_VAL(esp); /* 0x36049EFE: pop ebp */
    677     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36049EFF: ret 4 */
    678     RECOMP_REGS_OUT();
    679 }
    680 
    681 void sub_36049F10(void) {
    682     int _fpu_cmp = 0;
    683     uint32_t _cf = 0;
    684     int _df = 1;
    685     uint32_t _flag_k = FK_NONE;
    686     uint32_t _flag_a = 0, _flag_b = 0;
    687     uint32_t _itail_tgt = 0;
    688     RECOMP_REGS_LOCALS
    689     RECOMP_ENTER(0x36049F10u);
    690 
    691 L_36049F10:
    692     PUSH32(esp, ebp); /* 0x36049F10: push ebp */
    693     ebp = esp; /* 0x36049F11: mov ebp, esp */
    694     PUSH32(esp, 0xFFFFFFFFu); /* 0x36049F13: push -1 */
    695     PUSH32(esp, 0x36163F6Bu); /* 0x36049F15: push 0x36163f6b */
    696     eax = MEM32(FS_BASE + (0)); /* 0x36049F1A: mov eax, dword ptr fs:[0] */
    697     PUSH32(esp, eax); /* 0x36049F20: push eax */
    698     MEM32(FS_BASE + (0)) = esp; /* 0x36049F21: mov dword ptr fs:[0], esp */
    699     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x84u);
    700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    701     esp = esp - 0x84u; /* 0x36049F28: sub esp, 0x84 */
    702     _flag_k = FK_CMP;
    703     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36049F2E: fld dword ptr [ebp + 8] */
    704     PUSH32(esp, ebx); /* 0x36049F31: push ebx */
    705     _st[0] *= *(double*)ADDR(0x36170EF8); /* 0x36049F32: fmul qword ptr [0x36170ef8] */
    706     PUSH32(esp, esi); /* 0x36049F38: push esi */
    707     PUSH32(esp, edi); /* 0x36049F39: push edi */
    708     edi = ecx; /* 0x36049F3A: mov edi, ecx */
    709     ecx = MEM32(edi); /* 0x36049F3C: mov ecx, dword ptr [edi] */
    710     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36049F3E: fstp dword ptr [ebp - 0x24] */
    711     RECOMP_ICALL(0x3606D5A0u); /* 0x36049F41: call 0x3606d5a0 */ /* not lifted */
    712     RECOMP_FLAGS_IN();
    713     ecx = eax; /* 0x36049F46: mov ecx, eax */
    714     RECOMP_ICALL(0x36047900u); /* 0x36049F48: call 0x36047900 */ /* not lifted */
    715     RECOMP_FLAGS_IN();
    716     ecx = eax; /* 0x36049F4D: mov ecx, eax */
    717     RECOMP_ICALL(0x36008320u); /* 0x36049F4F: call 0x36008320 */ /* not lifted */
    718     RECOMP_FLAGS_IN();
    719     /* cmp eax, 7 */ /* 0x36049F54: cmp eax, 7 */
    720     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
    721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    722     _flag_k = FK_CMP;
    723     eax = ebp + (-0x10); /* 0x36049F57: lea eax, [ebp - 0x10] */
    724     PUSH32(esp, eax); /* 0x36049F5A: push eax */
    725     ecx = 0x363066C8u; /* 0x36049F5B: mov ecx, 0x363066c8 */
    726     SET_LO8(ebx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36049F60: sete bl */
    727     RECOMP_ICALL(MEM32(0x3616FB84)); /* 0x36049F63: call dword ptr [0x3616fb84] */
    728     RECOMP_FLAGS_IN();
    729     ecx = eax; /* 0x36049F69: mov ecx, eax */
    730     RECOMP_ICALL(MEM32(0x3616FB80)); /* 0x36049F6B: call dword ptr [0x3616fb80] */
    731     RECOMP_FLAGS_IN();
    732     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36049F71: fstp dword ptr [ebp - 0x28] */
    733     ecx = 0x363066C8u; /* 0x36049F74: mov ecx, 0x363066c8 */
    734     RECOMP_ICALL(MEM32(0x3616FB7C)); /* 0x36049F79: call dword ptr [0x3616fb7c] */
    735     RECOMP_FLAGS_IN();
    736     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36049F7F: fld dword ptr [ebp + 8] */
    737     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36049F82: fcomp dword ptr [0x3617040c] */
    738     fp_pop();
    739     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36049F88: fnstsw ax */
    740     /* test HI8(eax), 0x40u */ /* 0x36049F8A: test ah, 0x40 */
    741     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
    742     _cf = 0;
    743     _flag_k = FK_NARROW(FK_TEST, 24);
    744     if (TEST_Z(_flag_a, _flag_b)) goto L_36049FA3; /* 0x36049F8D: je 0x36049fa3 */
    745 L_36049F8F:
    746     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x36049F8F: fld dword ptr [ebp + 0xc] */
    747     MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x36049F92: mov byte ptr [ebp + 0xb], 1 */
    748     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36049F96: fcomp dword ptr [0x3617040c] */
    749     fp_pop();
    750     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36049F9C: fnstsw ax */
    751     /* test HI8(eax), 0x40u */ /* 0x36049F9E: test ah, 0x40 */
    752     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
    753     _cf = 0;
    754     _flag_k = FK_NARROW(FK_TEST, 24);
    755     if (TEST_NZ(_flag_a, _flag_b)) goto L_36049FA7; /* 0x36049FA1: jne 0x36049fa7 */
    756 L_36049FA3:
    757     MEM8(ebp + 0xB) = (uint8_t)(0); /* 0x36049FA3: mov byte ptr [ebp + 0xb], 0 */
    758 L_36049FA7:
    759     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36049FA7: fld dword ptr [ebp - 0x24] */
    760     _st[0] = fabs(_st[0]); /* 0x36049FAA: fabs  */
    761     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x36049FAC: fcomp qword ptr [0x36170430] */
    762     fp_pop();
    763     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36049FB2: fnstsw ax */
    764     /* test HI8(eax), 0x41u */ /* 0x36049FB4: test ah, 0x41 */
    765     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    766     _cf = 0;
    767     _flag_k = FK_NARROW(FK_TEST, 24);
    768     if (TEST_Z(_flag_a, _flag_b)) goto L_36049FDA; /* 0x36049FB7: je 0x36049fda */
    769 L_36049FB9:
    770     /* test LO8(ebx), LO8(ebx) */ /* 0x36049FB9: test bl, bl */
    771     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    772     _cf = 0;
    773     _flag_k = FK_NARROW(FK_TEST, 24);
    774     if (TEST_Z(_flag_a, _flag_b)) goto L_36049FCF; /* 0x36049FBB: je 0x36049fcf */
    775 L_36049FBD:
    776     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x36049FBD: fld dword ptr [ebp + 0xc] */
    777     _st[0] = fabs(_st[0]); /* 0x36049FC0: fabs  */
    778     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x36049FC2: fcomp qword ptr [0x36170430] */
    779     fp_pop();
    780     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36049FC8: fnstsw ax */
    781     /* test HI8(eax), 0x41u */ /* 0x36049FCA: test ah, 0x41 */
    782     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    783     _cf = 0;
    784     _flag_k = FK_NARROW(FK_TEST, 24);
    785     if (TEST_Z(_flag_a, _flag_b)) goto L_36049FDA; /* 0x36049FCD: je 0x36049fda */
    786 L_36049FCF:
    787     ecx = MEM32(ebp + (-0x28)); /* 0x36049FCF: mov ecx, dword ptr [ebp - 0x28] */
    788     PUSH32(esp, ecx); /* 0x36049FD2: push ecx */
    789     PUSH32(esp, 0); /* 0x36049FD3: push 0 */
    790     goto L_3604A438; /* 0x36049FD5: jmp 0x3604a438 */
    791 L_36049FDA:
    792     ecx = MEM32(edi); /* 0x36049FDA: mov ecx, dword ptr [edi] */
    793     esi = edi + 0x10; /* 0x36049FDC: lea esi, [edi + 0x10] */
    794     RECOMP_ICALL(0x3606D5A0u); /* 0x36049FDF: call 0x3606d5a0 */ /* not lifted */
    795     RECOMP_FLAGS_IN();
    796     ecx = eax; /* 0x36049FE4: mov ecx, eax */
    797     RECOMP_ICALL(MEM32(0x36170290)); /* 0x36049FE6: call dword ptr [0x36170290] */
    798     RECOMP_FLAGS_IN();
    799     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36049FEC: fld dword ptr [ebp - 0x24] */
    800     ecx = MEM32(eax); /* 0x36049FEF: mov ecx, dword ptr [eax] */
    801     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36049FF1: fcomp dword ptr [0x3617040c] */
    802     fp_pop();
    803     edx = esi; /* 0x36049FF7: mov edx, esi */
    804     MEM32(edx) = ecx; /* 0x36049FF9: mov dword ptr [edx], ecx */
    805     ecx = MEM32(eax + 0x4); /* 0x36049FFB: mov ecx, dword ptr [eax + 4] */
    806     MEM32(edx + 0x4) = ecx; /* 0x36049FFE: mov dword ptr [edx + 4], ecx */
    807     ecx = MEM32(eax + 0x8); /* 0x3604A001: mov ecx, dword ptr [eax + 8] */
    808     MEM32(edx + 0x8) = ecx; /* 0x3604A004: mov dword ptr [edx + 8], ecx */
    809     eax = MEM32(eax + 0xC); /* 0x3604A007: mov eax, dword ptr [eax + 0xc] */
    810     MEM32(edx + 0xC) = eax; /* 0x3604A00A: mov dword ptr [edx + 0xc], eax */
    811     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A00D: fnstsw ax */
    812     /* test HI8(eax), 1 */ /* 0x3604A00F: test ah, 1 */
    813     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    814     _cf = 0;
    815     _flag_k = FK_NARROW(FK_TEST, 24);
    816     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604A02F; /* 0x3604A012: jne 0x3604a02f */
    817 L_3604A014:
    818     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3604A014: fld dword ptr [ebp - 0x24] */
    819     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x3604A017: fcomp qword ptr [0x361708b8] */
    820     fp_pop();
    821     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A01D: fnstsw ax */
    822     /* test HI8(eax), 1 */ /* 0x3604A01F: test ah, 1 */
    823     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    824     _cf = 0;
    825     _flag_k = FK_NARROW(FK_TEST, 24);
    826     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A02F; /* 0x3604A022: je 0x3604a02f */
    827 L_3604A024:
    828     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3604A024: fld dword ptr [ebp - 0x24] */
    829     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3604A027: fmul dword ptr [0x36170464] */
    830     goto L_3604A053; /* 0x3604A02D: jmp 0x3604a053 */
    831 L_3604A02F:
    832     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3604A02F: fld dword ptr [ebp - 0x24] */
    833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    835     esp = esp - 8; /* 0x3604A032: sub esp, 8 */
    836     _flag_k = FK_CMP;
    837     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3604A035: fmul dword ptr [0x361708b4] */
    838     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3604A03B: fst dword ptr [ebp - 0x10] */
    839     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3604A03E: fstp qword ptr [esp] */
    840     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3604A041: call dword ptr [0x3616f198] */
    841     RECOMP_FLAGS_IN();
    842     _st[0] = (double)*(float*)ADDR(ebp + (-0x10)) - _st[0]; /* 0x3604A047: fsubr dword ptr [ebp - 0x10] */
    843     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    845     esp = esp + 8; /* 0x3604A04A: add esp, 8 */
    846     _flag_k = FK_ADD;
    847     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x3604A04D: fmul dword ptr [0x361708b0] */
    848 L_3604A053:
    849     /* test LO8(ebx), LO8(ebx) */ /* 0x3604A053: test bl, bl */
    850     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    851     _cf = 0;
    852     _flag_k = FK_NARROW(FK_TEST, 24);
    853     fp_push(_st[0]); /* 0x3604A055: fld st(0) */
    854     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3604A057: fsin  */
    855     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3604A059: fld dword ptr [0x3617040c] */
    856     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3604A05F: fst dword ptr [ebp - 0x10] */
    857     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3604A062: fstp dword ptr [ebp - 0x38] */
    858     ecx = MEM32(ebp + (-0x10)); /* 0x3604A065: mov ecx, dword ptr [ebp - 0x10] */
    859     MEM32(ebp + (-0x30)) = ecx; /* 0x3604A068: mov dword ptr [ebp - 0x30], ecx */
    860     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3604A06B: fstp dword ptr [ebp - 0x34] */
    861     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3604A06E: fcos  */
    862     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3604A070: fstp dword ptr [ebp - 0x2c] */
    863     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A32E; /* 0x3604A073: je 0x3604a32e */
    864 L_3604A079:
    865     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3604A079: fld dword ptr [ebp + 0xc] */
    866     edx = esi; /* 0x3604A07C: mov edx, esi */
    867     eax = MEM32(edx); /* 0x3604A07E: mov eax, dword ptr [edx] */
    868     _st[0] *= *(double*)ADDR(0x36170EF8); /* 0x3604A080: fmul qword ptr [0x36170ef8] */
    869     ecx = MEM32(edx + 0x4); /* 0x3604A086: mov ecx, dword ptr [edx + 4] */
    870     edx = MEM32(edx + 0x8); /* 0x3604A089: mov edx, dword ptr [edx + 8] */
    871     MEM32(ebp + (-0x60)) = eax; /* 0x3604A08C: mov dword ptr [ebp - 0x60], eax */
    872     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3604A08F: fstp dword ptr [ebp + 0xc] */
    873     eax = ebp + (-0x78); /* 0x3604A092: lea eax, [ebp - 0x78] */
    874     MEM32(ebp + (-0x5C)) = ecx; /* 0x3604A095: mov dword ptr [ebp - 0x5c], ecx */
    875     PUSH32(esp, eax); /* 0x3604A098: push eax */
    876     ecx = ebp + (-0x60); /* 0x3604A099: lea ecx, [ebp - 0x60] */
    877     MEM32(ebp + (-0x78)) = 0x3F800000u; /* 0x3604A09C: mov dword ptr [ebp - 0x78], 0x3f800000 */
    878     MEM32(ebp + (-0x74)) = 0; /* 0x3604A0A3: mov dword ptr [ebp - 0x74], 0 */
    879     MEM32(ebp + (-0x70)) = 0; /* 0x3604A0AA: mov dword ptr [ebp - 0x70], 0 */
    880     MEM32(ebp + (-0x58)) = edx; /* 0x3604A0B1: mov dword ptr [ebp - 0x58], edx */
    881     RECOMP_ICALL(MEM32(0x3617017C)); /* 0x3604A0B4: call dword ptr [0x3617017c] */
    882     RECOMP_FLAGS_IN();
    883     ecx = MEM32(eax); /* 0x3604A0BA: mov ecx, dword ptr [eax] */
    884     MEM32(ebp + (-0x54)) = ecx; /* 0x3604A0BC: mov dword ptr [ebp - 0x54], ecx */
    885     edx = MEM32(eax + 0x4); /* 0x3604A0BF: mov edx, dword ptr [eax + 4] */
    886     MEM32(ebp + (-0x50)) = edx; /* 0x3604A0C2: mov dword ptr [ebp - 0x50], edx */
    887     eax = MEM32(eax + 0x8); /* 0x3604A0C5: mov eax, dword ptr [eax + 8] */
    888     ecx = ebp + (-0x54); /* 0x3604A0C8: lea ecx, [ebp - 0x54] */
    889     PUSH32(esp, ecx); /* 0x3604A0CB: push ecx */
    890     edx = ebp + (-0x60); /* 0x3604A0CC: lea edx, [ebp - 0x60] */
    891     PUSH32(esp, edx); /* 0x3604A0CF: push edx */
    892     ecx = esi; /* 0x3604A0D0: mov ecx, esi */
    893     MEM32(ebp + (-0x4C)) = eax; /* 0x3604A0D2: mov dword ptr [ebp - 0x4c], eax */
    894     RECOMP_ICALL(MEM32(0x36170180)); /* 0x3604A0D5: call dword ptr [0x36170180] */
    895     RECOMP_FLAGS_IN();
    896     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3604A0DB: fld dword ptr [esi + 0xc] */
    897     ecx = MEM32(eax); /* 0x3604A0DE: mov ecx, dword ptr [eax] */
    898     _st[0] += _st[0]; /* 0x3604A0E0: fadd st(0), st(0) */
    899     MEM32(ebp + (-0x6C)) = ecx; /* 0x3604A0E2: mov dword ptr [ebp - 0x6c], ecx */
    900     edx = MEM32(eax + 0x4); /* 0x3604A0E5: mov edx, dword ptr [eax + 4] */
    901     MEM32(ebp + (-0x68)) = edx; /* 0x3604A0E8: mov dword ptr [ebp - 0x68], edx */
    902     eax = MEM32(eax + 0x8); /* 0x3604A0EB: mov eax, dword ptr [eax + 8] */
    903     PUSH32(esp, ecx); /* 0x3604A0EE: push ecx */
    904     ecx = ebp + (-0x54); /* 0x3604A0EF: lea ecx, [ebp - 0x54] */
    905     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604A0F2: fstp dword ptr [esp] */
    906     MEM32(ebp + (-0x64)) = eax; /* 0x3604A0F5: mov dword ptr [ebp - 0x64], eax */
    907     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3604A0F8: call dword ptr [0x36170184] */
    908     RECOMP_FLAGS_IN();
    909     PUSH32(esp, 0x40000000u); /* 0x3604A0FE: push 0x40000000 */
    910     ecx = ebp + (-0x6C); /* 0x3604A103: lea ecx, [ebp - 0x6c] */
    911     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3604A106: call dword ptr [0x36170184] */
    912     RECOMP_FLAGS_IN();
    913     ecx = ebp + (-0x54); /* 0x3604A10C: lea ecx, [ebp - 0x54] */
    914     PUSH32(esp, ecx); /* 0x3604A10F: push ecx */
    915     ecx = ebp + (-0x78); /* 0x3604A110: lea ecx, [ebp - 0x78] */
    916     RECOMP_ICALL(MEM32(0x36170178)); /* 0x3604A113: call dword ptr [0x36170178] */
    917     RECOMP_FLAGS_IN();
    918     edx = ebp + (-0x6C); /* 0x3604A119: lea edx, [ebp - 0x6c] */
    919     PUSH32(esp, edx); /* 0x3604A11C: push edx */
    920     ecx = ebp + (-0x78); /* 0x3604A11D: lea ecx, [ebp - 0x78] */
    921     RECOMP_ICALL(MEM32(0x36170178)); /* 0x3604A120: call dword ptr [0x36170178] */
    922     RECOMP_FLAGS_IN();
    923     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3604A126: fld dword ptr [ebp + 0xc] */
    924     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604A129: fcomp dword ptr [0x3617040c] */
    925     fp_pop();
    926     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A12F: fnstsw ax */
    927     /* test HI8(eax), 1 */ /* 0x3604A131: test ah, 1 */
    928     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    929     _cf = 0;
    930     _flag_k = FK_NARROW(FK_TEST, 24);
    931     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604A151; /* 0x3604A134: jne 0x3604a151 */
    932 L_3604A136:
    933     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3604A136: fld dword ptr [ebp + 0xc] */
    934     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x3604A139: fcomp qword ptr [0x361708b8] */
    935     fp_pop();
    936     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A13F: fnstsw ax */
    937     /* test HI8(eax), 1 */ /* 0x3604A141: test ah, 1 */
    938     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    939     _cf = 0;
    940     _flag_k = FK_NARROW(FK_TEST, 24);
    941     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A151; /* 0x3604A144: je 0x3604a151 */
    942 L_3604A146:
    943     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3604A146: fld dword ptr [ebp + 0xc] */
    944     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3604A149: fmul dword ptr [0x36170464] */
    945     goto L_3604A175; /* 0x3604A14F: jmp 0x3604a175 */
    946 L_3604A151:
    947     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3604A151: fld dword ptr [ebp + 0xc] */
    948     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    950     esp = esp - 8; /* 0x3604A154: sub esp, 8 */
    951     _flag_k = FK_CMP;
    952     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3604A157: fmul dword ptr [0x361708b4] */
    953     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3604A15D: fst dword ptr [ebp + 0xc] */
    954     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3604A160: fstp qword ptr [esp] */
    955     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3604A163: call dword ptr [0x3616f198] */
    956     RECOMP_FLAGS_IN();
    957     _st[0] = (double)*(float*)ADDR(ebp + 0xC) - _st[0]; /* 0x3604A169: fsubr dword ptr [ebp + 0xc] */
    958     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    959     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    960     esp = esp + 8; /* 0x3604A16C: add esp, 8 */
    961     _flag_k = FK_ADD;
    962     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x3604A16F: fmul dword ptr [0x361708b0] */
    963 L_3604A175:
    964     fp_push(_st[0]); /* 0x3604A175: fld st(0) */
    965     eax = edi + 0x4; /* 0x3604A177: lea eax, [edi + 4] */
    966     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3604A17A: fsin  */
    967     ecx = MEM32(eax); /* 0x3604A17C: mov ecx, dword ptr [eax] */
    968     edx = MEM32(eax + 0x4); /* 0x3604A17E: mov edx, dword ptr [eax + 4] */
    969     eax = MEM32(eax + 0x8); /* 0x3604A181: mov eax, dword ptr [eax + 8] */
    970     MEM32(ebp + (-0x60)) = ecx; /* 0x3604A184: mov dword ptr [ebp - 0x60], ecx */
    971     MEM32(ebp + (-0x5C)) = edx; /* 0x3604A187: mov dword ptr [ebp - 0x5c], edx */
    972     ecx = esi; /* 0x3604A18A: mov ecx, esi */
    973     edx = MEM32(ecx); /* 0x3604A18C: mov edx, dword ptr [ecx] */
    974     MEM32(ebp + (-0x20)) = edx; /* 0x3604A18E: mov dword ptr [ebp - 0x20], edx */
    975     MEM32(ebp + (-0x58)) = eax; /* 0x3604A191: mov dword ptr [ebp - 0x58], eax */
    976     eax = MEM32(ecx + 0x4); /* 0x3604A194: mov eax, dword ptr [ecx + 4] */
    977     edx = MEM32(ecx + 0x8); /* 0x3604A197: mov edx, dword ptr [ecx + 8] */
    978     MEM32(ebp + (-0x1C)) = eax; /* 0x3604A19A: mov dword ptr [ebp - 0x1c], eax */
    979     eax = MEM32(ecx + 0xC); /* 0x3604A19D: mov eax, dword ptr [ecx + 0xc] */
    980     MEM32(ebp + (-0x18)) = edx; /* 0x3604A1A0: mov dword ptr [ebp - 0x18], edx */
    981     MEM32(ebp + (-0x14)) = eax; /* 0x3604A1A3: mov dword ptr [ebp - 0x14], eax */
    982     MEM32(ebp + (-0x84)) = 0; /* 0x3604A1A6: mov dword ptr [ebp - 0x84], 0 */
    983     MEM32(ebp + (-0x80)) = 0; /* 0x3604A1B0: mov dword ptr [ebp - 0x80], 0 */
    984     MEM32(ebp + (-0x7C)) = 0x3F800000u; /* 0x3604A1B7: mov dword ptr [ebp - 0x7c], 0x3f800000 */
    985     fp_push(_st[0]); /* 0x3604A1BE: fld st(0) */
    986     _st[0] *= (double)*(float*)ADDR(ebp + (-0x78)); /* 0x3604A1C0: fmul dword ptr [ebp - 0x78] */
    987     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3604A1C3: fstp dword ptr [ebp - 0x48] */
    988     fp_push(*(float*)&MEM32(ebp + (-0x74))); /* 0x3604A1C6: fld dword ptr [ebp - 0x74] */
    989     _st[0] *= _st[1]; /* 0x3604A1C9: fmul st(1) */
    990     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3604A1CB: fstp dword ptr [ebp - 0x44] */
    991     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x3604A1CE: fld dword ptr [ebp - 0x70] */
    992     _st[0] *= _st[1]; /* 0x3604A1D1: fmul st(1) */
    993     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x3604A1D3: fstp dword ptr [ebp - 0x40] */
    994     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604A1D6: fstp st(0) */
    995     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3604A1D8: fcos  */
    996     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3604A1DA: fld dword ptr [ebp - 0x18] */
    997     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3604A1DD: fmul dword ptr [ebp - 0x44] */
    998     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3604A1E0: fld dword ptr [ebp - 0x14] */
    999     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x3604A1E3: fmul dword ptr [ebp - 0x48] */
   1000     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A1E6: faddp st(1) */
   1001     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3604A1E8: fld dword ptr [ebp - 0x1c] */
   1002     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3604A1EB: fmul dword ptr [ebp - 0x40] */
   1003     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3604A1EE: fsubp st(1) */
   1004     fp_push(_st[1]); /* 0x3604A1F0: fld st(1) */
   1005     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3604A1F2: fmul dword ptr [ebp - 0x20] */
   1006     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A1F5: faddp st(1) */
   1007     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3604A1F7: fld dword ptr [ebp - 0x1c] */
   1008     _st[0] *= _st[2]; /* 0x3604A1FA: fmul st(2) */
   1009     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3604A1FC: fld dword ptr [ebp - 0x18] */
   1010     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x3604A1FF: fmul dword ptr [ebp - 0x48] */
   1011     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3604A202: fsubp st(1) */
   1012     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3604A204: fld dword ptr [ebp - 0x14] */
   1013     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3604A207: fmul dword ptr [ebp - 0x44] */
   1014     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A20A: faddp st(1) */
   1015     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x3604A20C: fld dword ptr [ebp - 0x40] */
   1016     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3604A20F: fmul dword ptr [ebp - 0x20] */
   1017     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A212: faddp st(1) */
   1018     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3604A214: fstp dword ptr [ebp + 0xc] */
   1019     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3604A217: fld dword ptr [ebp - 0x1c] */
   1020     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x3604A21A: fmul dword ptr [ebp - 0x48] */
   1021     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3604A21D: fld dword ptr [ebp - 0x44] */
   1022     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3604A220: fmul dword ptr [ebp - 0x20] */
   1023     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3604A223: fsubp st(1) */
   1024     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3604A225: fld dword ptr [ebp - 0x18] */
   1025     _st[0] *= _st[3]; /* 0x3604A228: fmul st(3) */
   1026     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A22A: faddp st(1) */
   1027     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3604A22C: fld dword ptr [ebp - 0x14] */
   1028     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3604A22F: fmul dword ptr [ebp - 0x40] */
   1029     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A232: faddp st(1) */
   1030     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3604A234: fstp dword ptr [ebp - 0x10] */
   1031     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3604A237: fld dword ptr [ebp - 0x14] */
   1032     _st[0] *= _st[2]; /* 0x3604A23A: fmul st(2) */
   1033     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3604A23C: fld dword ptr [ebp - 0x18] */
   1034     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3604A23F: fmul dword ptr [ebp - 0x40] */
   1035     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3604A242: fld dword ptr [ebp - 0x1c] */
   1036     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3604A245: fmul dword ptr [ebp - 0x44] */
   1037     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A248: faddp st(1) */
   1038     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3604A24A: fld dword ptr [ebp - 0x20] */
   1039     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x3604A24D: fmul dword ptr [ebp - 0x48] */
   1040     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A250: faddp st(1) */
   1041     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3604A252: fsubp st(1) */
   1042     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3604A254: fstp dword ptr [ebp - 0x14] */
   1043     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3604A257: fstp dword ptr [ebp - 0x20] */
   1044     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604A25A: fstp st(0) */
   1045     ecx = MEM32(ebp + 0xC); /* 0x3604A25C: mov ecx, dword ptr [ebp + 0xc] */
   1046     edx = MEM32(ebp + (-0x10)); /* 0x3604A25F: mov edx, dword ptr [ebp - 0x10] */
   1047     MEM32(ebp + (-0x1C)) = ecx; /* 0x3604A262: mov dword ptr [ebp - 0x1c], ecx */
   1048     eax = ebp + (-0x84); /* 0x3604A265: lea eax, [ebp - 0x84] */
   1049     PUSH32(esp, eax); /* 0x3604A26B: push eax */
   1050     ecx = ebp + (-0x44); /* 0x3604A26C: lea ecx, [ebp - 0x44] */
   1051     PUSH32(esp, ecx); /* 0x3604A26F: push ecx */
   1052     ecx = ebp + (-0x20); /* 0x3604A270: lea ecx, [ebp - 0x20] */
   1053     MEM32(ebp + (-0x18)) = edx; /* 0x3604A273: mov dword ptr [ebp - 0x18], edx */
   1054     RECOMP_ICALL(MEM32(0x36170180)); /* 0x3604A276: call dword ptr [0x36170180] */
   1055     RECOMP_FLAGS_IN();
   1056     edx = MEM32(eax); /* 0x3604A27C: mov edx, dword ptr [eax] */
   1057     MEM32(ebp + (-0x54)) = edx; /* 0x3604A27E: mov dword ptr [ebp - 0x54], edx */
   1058     ecx = MEM32(eax + 0x4); /* 0x3604A281: mov ecx, dword ptr [eax + 4] */
   1059     MEM32(ebp + (-0x50)) = ecx; /* 0x3604A284: mov dword ptr [ebp - 0x50], ecx */
   1060     edx = MEM32(eax + 0x8); /* 0x3604A287: mov edx, dword ptr [eax + 8] */
   1061     eax = ebp + (-0x54); /* 0x3604A28A: lea eax, [ebp - 0x54] */
   1062     PUSH32(esp, eax); /* 0x3604A28D: push eax */
   1063     ecx = ebp + (-0x44); /* 0x3604A28E: lea ecx, [ebp - 0x44] */
   1064     PUSH32(esp, ecx); /* 0x3604A291: push ecx */
   1065     ecx = ebp + (-0x20); /* 0x3604A292: lea ecx, [ebp - 0x20] */
   1066     MEM32(ebp + (-0x4C)) = edx; /* 0x3604A295: mov dword ptr [ebp - 0x4c], edx */
   1067     RECOMP_ICALL(MEM32(0x36170180)); /* 0x3604A298: call dword ptr [0x36170180] */
   1068     RECOMP_FLAGS_IN();
   1069     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3604A29E: fld dword ptr [ebp - 0x14] */
   1070     edx = MEM32(eax); /* 0x3604A2A1: mov edx, dword ptr [eax] */
   1071     _st[0] += _st[0]; /* 0x3604A2A3: fadd st(0), st(0) */
   1072     MEM32(ebp + (-0x6C)) = edx; /* 0x3604A2A5: mov dword ptr [ebp - 0x6c], edx */
   1073     ecx = MEM32(eax + 0x4); /* 0x3604A2A8: mov ecx, dword ptr [eax + 4] */
   1074     MEM32(ebp + (-0x68)) = ecx; /* 0x3604A2AB: mov dword ptr [ebp - 0x68], ecx */
   1075     edx = MEM32(eax + 0x8); /* 0x3604A2AE: mov edx, dword ptr [eax + 8] */
   1076     PUSH32(esp, ecx); /* 0x3604A2B1: push ecx */
   1077     ecx = ebp + (-0x54); /* 0x3604A2B2: lea ecx, [ebp - 0x54] */
   1078     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604A2B5: fstp dword ptr [esp] */
   1079     MEM32(ebp + (-0x64)) = edx; /* 0x3604A2B8: mov dword ptr [ebp - 0x64], edx */
   1080     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3604A2BB: call dword ptr [0x36170184] */
   1081     RECOMP_FLAGS_IN();
   1082     PUSH32(esp, 0x40000000u); /* 0x3604A2C1: push 0x40000000 */
   1083     ecx = ebp + (-0x6C); /* 0x3604A2C6: lea ecx, [ebp - 0x6c] */
   1084     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3604A2C9: call dword ptr [0x36170184] */
   1085     RECOMP_FLAGS_IN();
   1086     eax = ebp + (-0x54); /* 0x3604A2CF: lea eax, [ebp - 0x54] */
   1087     PUSH32(esp, eax); /* 0x3604A2D2: push eax */
   1088     ecx = ebp + (-0x84); /* 0x3604A2D3: lea ecx, [ebp - 0x84] */
   1089     RECOMP_ICALL(MEM32(0x36170178)); /* 0x3604A2D9: call dword ptr [0x36170178] */
   1090     RECOMP_FLAGS_IN();
   1091     ecx = ebp + (-0x6C); /* 0x3604A2DF: lea ecx, [ebp - 0x6c] */
   1092     PUSH32(esp, ecx); /* 0x3604A2E2: push ecx */
   1093     ecx = ebp + (-0x84); /* 0x3604A2E3: lea ecx, [ebp - 0x84] */
   1094     RECOMP_ICALL(MEM32(0x36170178)); /* 0x3604A2E9: call dword ptr [0x36170178] */
   1095     RECOMP_FLAGS_IN();
   1096     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3604A2EF: fld dword ptr [ebp - 0x7c] */
   1097     _st[0] *= (double)*(float*)ADDR(ebp + (-0x58)); /* 0x3604A2F2: fmul dword ptr [ebp - 0x58] */
   1098     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3604A2F5: fld dword ptr [ebp - 0x60] */
   1099     _st[0] *= (double)*(float*)ADDR(ebp + (-0x84)); /* 0x3604A2F8: fmul dword ptr [ebp - 0x84] */
   1100     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A2FE: faddp st(1) */
   1101     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170EF0)); /* 0x3604A300: fcomp dword ptr [0x36170ef0] */
   1102     fp_pop();
   1103     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A306: fnstsw ax */
   1104     /* test HI8(eax), 0x41u */ /* 0x3604A308: test ah, 0x41 */
   1105     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1106     _cf = 0;
   1107     _flag_k = FK_NARROW(FK_TEST, 24);
   1108     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604A328; /* 0x3604A30B: jne 0x3604a328 */
   1109 L_3604A30D:
   1110     eax = MEM32(ebp + (-0x20)); /* 0x3604A30D: mov eax, dword ptr [ebp - 0x20] */
   1111     ecx = MEM32(ebp + (-0x1C)); /* 0x3604A310: mov ecx, dword ptr [ebp - 0x1c] */
   1112     edx = esi; /* 0x3604A313: mov edx, esi */
   1113     MEM32(edx) = eax; /* 0x3604A315: mov dword ptr [edx], eax */
   1114     eax = MEM32(ebp + (-0x18)); /* 0x3604A317: mov eax, dword ptr [ebp - 0x18] */
   1115     MEM32(edx + 0x4) = ecx; /* 0x3604A31A: mov dword ptr [edx + 4], ecx */
   1116     ecx = MEM32(ebp + (-0x14)); /* 0x3604A31D: mov ecx, dword ptr [ebp - 0x14] */
   1117     MEM32(edx + 0x8) = eax; /* 0x3604A320: mov dword ptr [edx + 8], eax */
   1118     MEM32(edx + 0xC) = ecx; /* 0x3604A323: mov dword ptr [edx + 0xc], ecx */
   1119     goto L_3604A32E; /* 0x3604A326: jmp 0x3604a32e */
   1120 L_3604A328:
   1121     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x3604A328: call dword ptr [0x3616f254] */
   1122     RECOMP_FLAGS_IN();
   1123 L_3604A32E:
   1124     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3604A32E: fld dword ptr [ebp - 0x34] */
   1125     PUSH32(esp, esi); /* 0x3604A331: push esi */
   1126     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x3604A332: fmul dword ptr [esi + 8] */
   1127     ecx = ebp + (-0x34); /* 0x3604A335: lea ecx, [ebp - 0x34] */
   1128     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3604A338: fld dword ptr [ebp - 0x38] */
   1129     PUSH32(esp, ecx); /* 0x3604A33B: push ecx */
   1130     _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x3604A33C: fmul dword ptr [esi + 0xc] */
   1131     ecx = ebp + (-0x90); /* 0x3604A33F: lea ecx, [ebp - 0x90] */
   1132     MEM32(ebp + (-0x90)) = 0; /* 0x3604A345: mov dword ptr [ebp - 0x90], 0 */
   1133     MEM32(ebp + (-0x8C)) = 0; /* 0x3604A34F: mov dword ptr [ebp - 0x8c], 0 */
   1134     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A359: faddp st(1) */
   1135     MEM32(ebp + (-0x88)) = 0x3F800000u; /* 0x3604A35B: mov dword ptr [ebp - 0x88], 0x3f800000 */
   1136     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3604A365: fld dword ptr [ebp - 0x30] */
   1137     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x3604A368: fmul dword ptr [esi + 4] */
   1138     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3604A36B: fsubp st(1) */
   1139     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3604A36D: fld dword ptr [ebp - 0x2c] */
   1140     _st[0] *= (double)*(float*)ADDR(esi); /* 0x3604A370: fmul dword ptr [esi] */
   1141     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A372: faddp st(1) */
   1142     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3604A374: fld dword ptr [ebp - 0x2c] */
   1143     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x3604A377: fmul dword ptr [esi + 4] */
   1144     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3604A37A: fld dword ptr [ebp - 0x38] */
   1145     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x3604A37D: fmul dword ptr [esi + 8] */
   1146     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3604A380: fsubp st(1) */
   1147     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3604A382: fld dword ptr [ebp - 0x34] */
   1148     _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x3604A385: fmul dword ptr [esi + 0xc] */
   1149     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A388: faddp st(1) */
   1150     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3604A38A: fld dword ptr [ebp - 0x30] */
   1151     _st[0] *= (double)*(float*)ADDR(esi); /* 0x3604A38D: fmul dword ptr [esi] */
   1152     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A38F: faddp st(1) */
   1153     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3604A391: fstp dword ptr [ebp + 0xc] */
   1154     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3604A394: fld dword ptr [ebp - 0x38] */
   1155     edx = MEM32(ebp + 0xC); /* 0x3604A397: mov edx, dword ptr [ebp + 0xc] */
   1156     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x3604A39A: fmul dword ptr [esi + 4] */
   1157     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3604A39D: fld dword ptr [ebp - 0x34] */
   1158     _st[0] *= (double)*(float*)ADDR(esi); /* 0x3604A3A0: fmul dword ptr [esi] */
   1159     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3604A3A2: fsubp st(1) */
   1160     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3604A3A4: fld dword ptr [ebp - 0x2c] */
   1161     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x3604A3A7: fmul dword ptr [esi + 8] */
   1162     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A3AA: faddp st(1) */
   1163     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3604A3AC: fld dword ptr [ebp - 0x30] */
   1164     _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x3604A3AF: fmul dword ptr [esi + 0xc] */
   1165     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A3B2: faddp st(1) */
   1166     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3604A3B4: fstp dword ptr [ebp - 0x10] */
   1167     eax = MEM32(ebp + (-0x10)); /* 0x3604A3B7: mov eax, dword ptr [ebp - 0x10] */
   1168     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3604A3BA: fld dword ptr [ebp - 0x2c] */
   1169     _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x3604A3BD: fmul dword ptr [esi + 0xc] */
   1170     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3604A3C0: fld dword ptr [ebp - 0x30] */
   1171     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x3604A3C3: fmul dword ptr [esi + 8] */
   1172     MEM32(esi + 0x8) = eax; /* 0x3604A3C6: mov dword ptr [esi + 8], eax */
   1173     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3604A3C9: fld dword ptr [ebp - 0x34] */
   1174     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x3604A3CC: fmul dword ptr [esi + 4] */
   1175     MEM32(esi + 0x4) = edx; /* 0x3604A3CF: mov dword ptr [esi + 4], edx */
   1176     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A3D2: faddp st(1) */
   1177     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3604A3D4: fld dword ptr [ebp - 0x38] */
   1178     _st[0] *= (double)*(float*)ADDR(esi); /* 0x3604A3D7: fmul dword ptr [esi] */
   1179     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A3D9: faddp st(1) */
   1180     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3604A3DB: fsubp st(1) */
   1181     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xC) = _v; } /* 0x3604A3DD: fstp dword ptr [esi + 0xc] */
   1182     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3604A3E0: fstp dword ptr [esi] */
   1183     RECOMP_ICALL(MEM32(0x36170190)); /* 0x3604A3E2: call dword ptr [0x36170190] */
   1184     RECOMP_FLAGS_IN();
   1185     ecx = MEM32(eax); /* 0x3604A3E8: mov ecx, dword ptr [eax] */
   1186     edx = edi + 0x4; /* 0x3604A3EA: lea edx, [edi + 4] */
   1187     MEM32(edx) = ecx; /* 0x3604A3ED: mov dword ptr [edx], ecx */
   1188     ecx = MEM32(eax + 0x4); /* 0x3604A3EF: mov ecx, dword ptr [eax + 4] */
   1189     MEM32(edx + 0x4) = ecx; /* 0x3604A3F2: mov dword ptr [edx + 4], ecx */
   1190     eax = MEM32(eax + 0x8); /* 0x3604A3F5: mov eax, dword ptr [eax + 8] */
   1191     ecx = esi; /* 0x3604A3F8: mov ecx, esi */
   1192     MEM32(edx + 0x8) = eax; /* 0x3604A3FA: mov dword ptr [edx + 8], eax */
   1193     RECOMP_ICALL(MEM32(0x3617018C)); /* 0x3604A3FD: call dword ptr [0x3617018c] */
   1194     RECOMP_FLAGS_IN();
   1195     ecx = MEM32(edi); /* 0x3604A403: mov ecx, dword ptr [edi] */
   1196     PUSH32(esp, esi); /* 0x3604A405: push esi */
   1197     RECOMP_ICALL(MEM32(0x3616FC68)); /* 0x3604A406: call dword ptr [0x3616fc68] */
   1198     RECOMP_FLAGS_IN();
   1199     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3604A40C: fld dword ptr [ebp - 0x28] */
   1200     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604A40F: fcomp dword ptr [0x3617040c] */
   1201     fp_pop();
   1202     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A415: fnstsw ax */
   1203     /* test HI8(eax), 0x41u */ /* 0x3604A417: test ah, 0x41 */
   1204     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1205     _cf = 0;
   1206     _flag_k = FK_NARROW(FK_TEST, 24);
   1207     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A427; /* 0x3604A41A: je 0x3604a427 */
   1208 L_3604A41C:
   1209     RECOMP_ICALL(0x3601F1E0u); /* 0x3604A41C: call 0x3601f1e0 */ /* not lifted */
   1210     RECOMP_FLAGS_IN();
   1211     ecx = MEM32(eax + 0x64); /* 0x3604A421: mov ecx, dword ptr [eax + 0x64] */
   1212     MEM32(ebp + (-0x28)) = ecx; /* 0x3604A424: mov dword ptr [ebp - 0x28], ecx */
   1213 L_3604A427:
   1214     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3604A427: fld dword ptr [ebp - 0x24] */
   1215     edx = MEM32(ebp + (-0x28)); /* 0x3604A42A: mov edx, dword ptr [ebp - 0x28] */
   1216     _st[0] /= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3604A42D: fdiv dword ptr [ebp - 0x28] */
   1217     PUSH32(esp, edx); /* 0x3604A430: push edx */
   1218     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3604A431: fstp dword ptr [ebp + 0xc] */
   1219     eax = MEM32(ebp + 0xC); /* 0x3604A434: mov eax, dword ptr [ebp + 0xc] */
   1220     PUSH32(esp, eax); /* 0x3604A437: push eax */
   1221 L_3604A438:
   1222     ecx = edi; /* 0x3604A438: mov ecx, edi */
   1223     RECOMP_ICALL(0x3604A630u); /* 0x3604A43A: call 0x3604a630 */ /* not lifted */
   1224     RECOMP_FLAGS_IN();
   1225     ecx = edi; /* 0x3604A43F: mov ecx, edi */
   1226     RECOMP_ICALL(0x3604A950u); /* 0x3604A441: call 0x3604a950 */ /* not lifted */
   1227     RECOMP_FLAGS_IN();
   1228     SET_LO8(ebx, LO8(eax)); /* 0x3604A446: mov bl, al */
   1229     /* test LO8(ebx), LO8(ebx) */ /* 0x3604A448: test bl, bl */
   1230     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1231     _cf = 0;
   1232     _flag_k = FK_NARROW(FK_TEST, 24);
   1233     MEM8(ebp + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3604A44A: mov byte ptr [ebp + 0xc], bl */
   1234     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A456; /* 0x3604A44D: je 0x3604a456 */
   1235 L_3604A44F:
   1236     ecx = edi; /* 0x3604A44F: mov ecx, edi */
   1237     RECOMP_ICALL(0x3604AA30u); /* 0x3604A451: call 0x3604aa30 */ /* not lifted */
   1238     RECOMP_FLAGS_IN();
   1239 L_3604A456:
   1240     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3604A456: mov al, byte ptr [ebp + 0xb] */
   1241     /* test LO8(eax), LO8(eax) */ /* 0x3604A459: test al, al */
   1242     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1243     _cf = 0;
   1244     _flag_k = FK_NARROW(FK_TEST, 24);
   1245     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A465; /* 0x3604A45B: je 0x3604a465 */
   1246 L_3604A45D:
   1247     /* test LO8(ebx), LO8(ebx) */ /* 0x3604A45D: test bl, bl */
   1248     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1249     _cf = 0;
   1250     _flag_k = FK_NARROW(FK_TEST, 24);
   1251     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A523; /* 0x3604A45F: je 0x3604a523 */
   1252 L_3604A465:
   1253     PUSH32(esp, 0x6Cu); /* 0x3604A465: push 0x6c */
   1254     RECOMP_ICALL(0x3615FD6Au); /* 0x3604A467: call 0x3615fd6a */ /* not lifted */
   1255     RECOMP_FLAGS_IN();
   1256     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1257     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1258     esp = esp + 4; /* 0x3604A46C: add esp, 4 */
   1259     _flag_k = FK_ADD;
   1260     MEM32(ebp + 0x8) = eax; /* 0x3604A46F: mov dword ptr [ebp + 8], eax */
   1261     /* test eax, eax */ /* 0x3604A472: test eax, eax */
   1262     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1263     _cf = 0;
   1264     _flag_k = FK_TEST;
   1265     MEM32(ebp + (-0x4)) = 0; /* 0x3604A474: mov dword ptr [ebp - 4], 0 */
   1266     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A50C; /* 0x3604A47B: je 0x3604a50c */
   1267 L_3604A481:
   1268     edx = MEM32(ebp + 0xC); /* 0x3604A481: mov edx, dword ptr [ebp + 0xc] */
   1269     PUSH32(esp, edx); /* 0x3604A484: push edx */
   1270     ecx = MEM32(edi); /* 0x3604A485: mov ecx, dword ptr [edi] */
   1271     eax = edi + 0x30; /* 0x3604A487: lea eax, [edi + 0x30] */
   1272     ebx = MEM32(eax); /* 0x3604A48A: mov ebx, dword ptr [eax] */
   1273     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1275     esp = esp - 0x10u; /* 0x3604A48C: sub esp, 0x10 */
   1276     _flag_k = FK_CMP;
   1277     edx = esp; /* 0x3604A48F: mov edx, esp */
   1278     MEM32(edx) = ebx; /* 0x3604A491: mov dword ptr [edx], ebx */
   1279     ebx = MEM32(eax + 0x4); /* 0x3604A493: mov ebx, dword ptr [eax + 4] */
   1280     MEM32(edx + 0x4) = ebx; /* 0x3604A496: mov dword ptr [edx + 4], ebx */
   1281     ebx = MEM32(eax + 0x8); /* 0x3604A499: mov ebx, dword ptr [eax + 8] */
   1282     eax = MEM32(eax + 0xC); /* 0x3604A49C: mov eax, dword ptr [eax + 0xc] */
   1283     MEM32(edx + 0x8) = ebx; /* 0x3604A49F: mov dword ptr [edx + 8], ebx */
   1284     MEM32(edx + 0xC) = eax; /* 0x3604A4A2: mov dword ptr [edx + 0xc], eax */
   1285     edx = edi + 0x20; /* 0x3604A4A5: lea edx, [edi + 0x20] */
   1286     ebx = MEM32(edx); /* 0x3604A4A8: mov ebx, dword ptr [edx] */
   1287     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1289     esp = esp - 0x10u; /* 0x3604A4AA: sub esp, 0x10 */
   1290     _flag_k = FK_CMP;
   1291     eax = esp; /* 0x3604A4AD: mov eax, esp */
   1292     MEM32(eax) = ebx; /* 0x3604A4AF: mov dword ptr [eax], ebx */
   1293     ebx = MEM32(edx + 0x4); /* 0x3604A4B1: mov ebx, dword ptr [edx + 4] */
   1294     MEM32(eax + 0x4) = ebx; /* 0x3604A4B4: mov dword ptr [eax + 4], ebx */
   1295     ebx = MEM32(edx + 0x8); /* 0x3604A4B7: mov ebx, dword ptr [edx + 8] */
   1296     edx = MEM32(edx + 0xC); /* 0x3604A4BA: mov edx, dword ptr [edx + 0xc] */
   1297     MEM32(eax + 0x8) = ebx; /* 0x3604A4BD: mov dword ptr [eax + 8], ebx */
   1298     MEM32(eax + 0xC) = edx; /* 0x3604A4C0: mov dword ptr [eax + 0xc], edx */
   1299     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   1300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1301     edi = edi + 0x10u; /* 0x3604A4C3: add edi, 0x10 */
   1302     _flag_k = FK_ADD;
   1303     edx = MEM32(edi); /* 0x3604A4C6: mov edx, dword ptr [edi] */
   1304     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1306     esp = esp - 0x10u; /* 0x3604A4C8: sub esp, 0x10 */
   1307     _flag_k = FK_CMP;
   1308     eax = esp; /* 0x3604A4CB: mov eax, esp */
   1309     MEM32(eax) = edx; /* 0x3604A4CD: mov dword ptr [eax], edx */
   1310     edx = MEM32(edi + 0x4); /* 0x3604A4CF: mov edx, dword ptr [edi + 4] */
   1311     MEM32(eax + 0x4) = edx; /* 0x3604A4D2: mov dword ptr [eax + 4], edx */
   1312     edx = MEM32(edi + 0x8); /* 0x3604A4D5: mov edx, dword ptr [edi + 8] */
   1313     MEM32(eax + 0x8) = edx; /* 0x3604A4D8: mov dword ptr [eax + 8], edx */
   1314     edx = MEM32(edi + 0xC); /* 0x3604A4DB: mov edx, dword ptr [edi + 0xc] */
   1315     esi = ecx + 0x4; /* 0x3604A4DE: lea esi, [ecx + 4] */
   1316     MEM32(eax + 0xC) = edx; /* 0x3604A4E1: mov dword ptr [eax + 0xc], edx */
   1317     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x3604A4E4: call dword ptr [0x361700a8] */
   1318     RECOMP_FLAGS_IN();
   1319     edx = MEM32(eax); /* 0x3604A4EA: mov edx, dword ptr [eax] */
   1320     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1322     esp = esp - 0xCu; /* 0x3604A4EC: sub esp, 0xc */
   1323     _flag_k = FK_CMP;
   1324     ecx = esp; /* 0x3604A4EF: mov ecx, esp */
   1325     MEM32(ecx) = edx; /* 0x3604A4F1: mov dword ptr [ecx], edx */
   1326     edx = MEM32(eax + 0x4); /* 0x3604A4F3: mov edx, dword ptr [eax + 4] */
   1327     eax = MEM32(eax + 0x8); /* 0x3604A4F6: mov eax, dword ptr [eax + 8] */
   1328     MEM32(ecx + 0x4) = edx; /* 0x3604A4F9: mov dword ptr [ecx + 4], edx */
   1329     PUSH32(esp, 0x14u); /* 0x3604A4FC: push 0x14 */
   1330     MEM32(ecx + 0x8) = eax; /* 0x3604A4FE: mov dword ptr [ecx + 8], eax */
   1331     ecx = MEM32(ebp + 0x8); /* 0x3604A501: mov ecx, dword ptr [ebp + 8] */
   1332     PUSH32(esp, esi); /* 0x3604A504: push esi */
   1333     RECOMP_ICALL(0x36047200u); /* 0x3604A505: call 0x36047200 */ /* not lifted */
   1334     RECOMP_FLAGS_IN();
   1335     goto L_3604A50E; /* 0x3604A50A: jmp 0x3604a50e */
   1336 L_3604A50C:
   1337     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1338     eax = 0; /* 0x3604A50C: xor eax, eax */
   1339     _cf = 0;
   1340     _flag_k = FK_TEST;
   1341 L_3604A50E:
   1342     ecx = MEM32(0x3616FF74); /* 0x3604A50E: mov ecx, dword ptr [0x3616ff74] */
   1343     ecx = MEM32(ecx); /* 0x3604A514: mov ecx, dword ptr [ecx] */
   1344     edx = MEM32(ecx); /* 0x3604A516: mov edx, dword ptr [ecx] */
   1345     PUSH32(esp, eax); /* 0x3604A518: push eax */
   1346     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604A519: mov dword ptr [ebp - 4], 0xffffffff */
   1347     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3604A520: call dword ptr [edx + 0x38] */
   1348     RECOMP_FLAGS_IN();
   1349 L_3604A523:
   1350     ecx = MEM32(ebp + (-0xC)); /* 0x3604A523: mov ecx, dword ptr [ebp - 0xc] */
   1351     edi = POP32_VAL(esp); /* 0x3604A526: pop edi */
   1352     esi = POP32_VAL(esp); /* 0x3604A527: pop esi */
   1353     MEM32(FS_BASE + (0)) = ecx; /* 0x3604A528: mov dword ptr fs:[0], ecx */
   1354     ebx = POP32_VAL(esp); /* 0x3604A52F: pop ebx */
   1355     esp = ebp; /* 0x3604A530: mov esp, ebp */
   1356     ebp = POP32_VAL(esp); /* 0x3604A532: pop ebp */
   1357     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604A533: ret 8 */
   1358     RECOMP_REGS_OUT();
   1359 }
   1360 
   1361 void sub_3604A438(void) {
   1362     int _fpu_cmp = 0;
   1363     uint32_t _cf = 0;
   1364     int _df = 1;
   1365     uint32_t _flag_k = FK_NONE;
   1366     uint32_t _flag_a = 0, _flag_b = 0;
   1367     uint32_t _itail_tgt = 0;
   1368     RECOMP_REGS_LOCALS
   1369     RECOMP_ENTER(0x3604A438u);
   1370 
   1371 L_3604A438:
   1372     ecx = edi; /* 0x3604A438: mov ecx, edi */
   1373     RECOMP_ICALL(0x3604A630u); /* 0x3604A43A: call 0x3604a630 */ /* not lifted */
   1374     RECOMP_FLAGS_IN();
   1375     ecx = edi; /* 0x3604A43F: mov ecx, edi */
   1376     RECOMP_ICALL(0x3604A950u); /* 0x3604A441: call 0x3604a950 */ /* not lifted */
   1377     RECOMP_FLAGS_IN();
   1378     SET_LO8(ebx, LO8(eax)); /* 0x3604A446: mov bl, al */
   1379     /* test LO8(ebx), LO8(ebx) */ /* 0x3604A448: test bl, bl */
   1380     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1381     _cf = 0;
   1382     _flag_k = FK_NARROW(FK_TEST, 24);
   1383     MEM8(ebp + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3604A44A: mov byte ptr [ebp + 0xc], bl */
   1384     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A456; /* 0x3604A44D: je 0x3604a456 */
   1385 L_3604A44F:
   1386     ecx = edi; /* 0x3604A44F: mov ecx, edi */
   1387     RECOMP_ICALL(0x3604AA30u); /* 0x3604A451: call 0x3604aa30 */ /* not lifted */
   1388     RECOMP_FLAGS_IN();
   1389 L_3604A456:
   1390     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3604A456: mov al, byte ptr [ebp + 0xb] */
   1391     /* test LO8(eax), LO8(eax) */ /* 0x3604A459: test al, al */
   1392     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1393     _cf = 0;
   1394     _flag_k = FK_NARROW(FK_TEST, 24);
   1395     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A465; /* 0x3604A45B: je 0x3604a465 */
   1396 L_3604A45D:
   1397     /* test LO8(ebx), LO8(ebx) */ /* 0x3604A45D: test bl, bl */
   1398     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1399     _cf = 0;
   1400     _flag_k = FK_NARROW(FK_TEST, 24);
   1401     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A523; /* 0x3604A45F: je 0x3604a523 */
   1402 L_3604A465:
   1403     PUSH32(esp, 0x6Cu); /* 0x3604A465: push 0x6c */
   1404     RECOMP_ICALL(0x3615FD6Au); /* 0x3604A467: call 0x3615fd6a */ /* not lifted */
   1405     RECOMP_FLAGS_IN();
   1406     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1407     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1408     esp = esp + 4; /* 0x3604A46C: add esp, 4 */
   1409     _flag_k = FK_ADD;
   1410     MEM32(ebp + 0x8) = eax; /* 0x3604A46F: mov dword ptr [ebp + 8], eax */
   1411     /* test eax, eax */ /* 0x3604A472: test eax, eax */
   1412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1413     _cf = 0;
   1414     _flag_k = FK_TEST;
   1415     MEM32(ebp + (-0x4)) = 0; /* 0x3604A474: mov dword ptr [ebp - 4], 0 */
   1416     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A50C; /* 0x3604A47B: je 0x3604a50c */
   1417 L_3604A481:
   1418     edx = MEM32(ebp + 0xC); /* 0x3604A481: mov edx, dword ptr [ebp + 0xc] */
   1419     PUSH32(esp, edx); /* 0x3604A484: push edx */
   1420     ecx = MEM32(edi); /* 0x3604A485: mov ecx, dword ptr [edi] */
   1421     eax = edi + 0x30; /* 0x3604A487: lea eax, [edi + 0x30] */
   1422     ebx = MEM32(eax); /* 0x3604A48A: mov ebx, dword ptr [eax] */
   1423     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1424     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1425     esp = esp - 0x10u; /* 0x3604A48C: sub esp, 0x10 */
   1426     _flag_k = FK_CMP;
   1427     edx = esp; /* 0x3604A48F: mov edx, esp */
   1428     MEM32(edx) = ebx; /* 0x3604A491: mov dword ptr [edx], ebx */
   1429     ebx = MEM32(eax + 0x4); /* 0x3604A493: mov ebx, dword ptr [eax + 4] */
   1430     MEM32(edx + 0x4) = ebx; /* 0x3604A496: mov dword ptr [edx + 4], ebx */
   1431     ebx = MEM32(eax + 0x8); /* 0x3604A499: mov ebx, dword ptr [eax + 8] */
   1432     eax = MEM32(eax + 0xC); /* 0x3604A49C: mov eax, dword ptr [eax + 0xc] */
   1433     MEM32(edx + 0x8) = ebx; /* 0x3604A49F: mov dword ptr [edx + 8], ebx */
   1434     MEM32(edx + 0xC) = eax; /* 0x3604A4A2: mov dword ptr [edx + 0xc], eax */
   1435     edx = edi + 0x20; /* 0x3604A4A5: lea edx, [edi + 0x20] */
   1436     ebx = MEM32(edx); /* 0x3604A4A8: mov ebx, dword ptr [edx] */
   1437     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1439     esp = esp - 0x10u; /* 0x3604A4AA: sub esp, 0x10 */
   1440     _flag_k = FK_CMP;
   1441     eax = esp; /* 0x3604A4AD: mov eax, esp */
   1442     MEM32(eax) = ebx; /* 0x3604A4AF: mov dword ptr [eax], ebx */
   1443     ebx = MEM32(edx + 0x4); /* 0x3604A4B1: mov ebx, dword ptr [edx + 4] */
   1444     MEM32(eax + 0x4) = ebx; /* 0x3604A4B4: mov dword ptr [eax + 4], ebx */
   1445     ebx = MEM32(edx + 0x8); /* 0x3604A4B7: mov ebx, dword ptr [edx + 8] */
   1446     edx = MEM32(edx + 0xC); /* 0x3604A4BA: mov edx, dword ptr [edx + 0xc] */
   1447     MEM32(eax + 0x8) = ebx; /* 0x3604A4BD: mov dword ptr [eax + 8], ebx */
   1448     MEM32(eax + 0xC) = edx; /* 0x3604A4C0: mov dword ptr [eax + 0xc], edx */
   1449     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   1450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1451     edi = edi + 0x10u; /* 0x3604A4C3: add edi, 0x10 */
   1452     _flag_k = FK_ADD;
   1453     edx = MEM32(edi); /* 0x3604A4C6: mov edx, dword ptr [edi] */
   1454     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1456     esp = esp - 0x10u; /* 0x3604A4C8: sub esp, 0x10 */
   1457     _flag_k = FK_CMP;
   1458     eax = esp; /* 0x3604A4CB: mov eax, esp */
   1459     MEM32(eax) = edx; /* 0x3604A4CD: mov dword ptr [eax], edx */
   1460     edx = MEM32(edi + 0x4); /* 0x3604A4CF: mov edx, dword ptr [edi + 4] */
   1461     MEM32(eax + 0x4) = edx; /* 0x3604A4D2: mov dword ptr [eax + 4], edx */
   1462     edx = MEM32(edi + 0x8); /* 0x3604A4D5: mov edx, dword ptr [edi + 8] */
   1463     MEM32(eax + 0x8) = edx; /* 0x3604A4D8: mov dword ptr [eax + 8], edx */
   1464     edx = MEM32(edi + 0xC); /* 0x3604A4DB: mov edx, dword ptr [edi + 0xc] */
   1465     esi = ecx + 0x4; /* 0x3604A4DE: lea esi, [ecx + 4] */
   1466     MEM32(eax + 0xC) = edx; /* 0x3604A4E1: mov dword ptr [eax + 0xc], edx */
   1467     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x3604A4E4: call dword ptr [0x361700a8] */
   1468     RECOMP_FLAGS_IN();
   1469     edx = MEM32(eax); /* 0x3604A4EA: mov edx, dword ptr [eax] */
   1470     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1472     esp = esp - 0xCu; /* 0x3604A4EC: sub esp, 0xc */
   1473     _flag_k = FK_CMP;
   1474     ecx = esp; /* 0x3604A4EF: mov ecx, esp */
   1475     MEM32(ecx) = edx; /* 0x3604A4F1: mov dword ptr [ecx], edx */
   1476     edx = MEM32(eax + 0x4); /* 0x3604A4F3: mov edx, dword ptr [eax + 4] */
   1477     eax = MEM32(eax + 0x8); /* 0x3604A4F6: mov eax, dword ptr [eax + 8] */
   1478     MEM32(ecx + 0x4) = edx; /* 0x3604A4F9: mov dword ptr [ecx + 4], edx */
   1479     PUSH32(esp, 0x14u); /* 0x3604A4FC: push 0x14 */
   1480     MEM32(ecx + 0x8) = eax; /* 0x3604A4FE: mov dword ptr [ecx + 8], eax */
   1481     ecx = MEM32(ebp + 0x8); /* 0x3604A501: mov ecx, dword ptr [ebp + 8] */
   1482     PUSH32(esp, esi); /* 0x3604A504: push esi */
   1483     RECOMP_ICALL(0x36047200u); /* 0x3604A505: call 0x36047200 */ /* not lifted */
   1484     RECOMP_FLAGS_IN();
   1485     goto L_3604A50E; /* 0x3604A50A: jmp 0x3604a50e */
   1486 L_3604A50C:
   1487     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1488     eax = 0; /* 0x3604A50C: xor eax, eax */
   1489     _cf = 0;
   1490     _flag_k = FK_TEST;
   1491 L_3604A50E:
   1492     ecx = MEM32(0x3616FF74); /* 0x3604A50E: mov ecx, dword ptr [0x3616ff74] */
   1493     ecx = MEM32(ecx); /* 0x3604A514: mov ecx, dword ptr [ecx] */
   1494     edx = MEM32(ecx); /* 0x3604A516: mov edx, dword ptr [ecx] */
   1495     PUSH32(esp, eax); /* 0x3604A518: push eax */
   1496     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604A519: mov dword ptr [ebp - 4], 0xffffffff */
   1497     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3604A520: call dword ptr [edx + 0x38] */
   1498     RECOMP_FLAGS_IN();
   1499 L_3604A523:
   1500     ecx = MEM32(ebp + (-0xC)); /* 0x3604A523: mov ecx, dword ptr [ebp - 0xc] */
   1501     edi = POP32_VAL(esp); /* 0x3604A526: pop edi */
   1502     esi = POP32_VAL(esp); /* 0x3604A527: pop esi */
   1503     MEM32(FS_BASE + (0)) = ecx; /* 0x3604A528: mov dword ptr fs:[0], ecx */
   1504     ebx = POP32_VAL(esp); /* 0x3604A52F: pop ebx */
   1505     esp = ebp; /* 0x3604A530: mov esp, ebp */
   1506     ebp = POP32_VAL(esp); /* 0x3604A532: pop ebp */
   1507     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604A533: ret 8 */
   1508     RECOMP_REGS_OUT();
   1509 }
   1510 
   1511 void sub_3604A50E(void) {
   1512     int _fpu_cmp = 0;
   1513     uint32_t _cf = 0;
   1514     int _df = 1;
   1515     uint32_t _flag_k = FK_NONE;
   1516     uint32_t _flag_a = 0, _flag_b = 0;
   1517     uint32_t _itail_tgt = 0;
   1518     RECOMP_REGS_LOCALS
   1519     RECOMP_ENTER(0x3604A50Eu);
   1520 
   1521 L_3604A50E:
   1522     ecx = MEM32(0x3616FF74); /* 0x3604A50E: mov ecx, dword ptr [0x3616ff74] */
   1523     ecx = MEM32(ecx); /* 0x3604A514: mov ecx, dword ptr [ecx] */
   1524     edx = MEM32(ecx); /* 0x3604A516: mov edx, dword ptr [ecx] */
   1525     PUSH32(esp, eax); /* 0x3604A518: push eax */
   1526     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604A519: mov dword ptr [ebp - 4], 0xffffffff */
   1527     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3604A520: call dword ptr [edx + 0x38] */
   1528     RECOMP_FLAGS_IN();
   1529     ecx = MEM32(ebp + (-0xC)); /* 0x3604A523: mov ecx, dword ptr [ebp - 0xc] */
   1530     edi = POP32_VAL(esp); /* 0x3604A526: pop edi */
   1531     esi = POP32_VAL(esp); /* 0x3604A527: pop esi */
   1532     MEM32(FS_BASE + (0)) = ecx; /* 0x3604A528: mov dword ptr fs:[0], ecx */
   1533     ebx = POP32_VAL(esp); /* 0x3604A52F: pop ebx */
   1534     esp = ebp; /* 0x3604A530: mov esp, ebp */
   1535     ebp = POP32_VAL(esp); /* 0x3604A532: pop ebp */
   1536     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604A533: ret 8 */
   1537     RECOMP_REGS_OUT();
   1538 }
   1539 
   1540 void sub_3604A540(void) {
   1541     int _fpu_cmp = 0;
   1542     uint32_t _cf = 0;
   1543     int _df = 1;
   1544     uint32_t _flag_k = FK_NONE;
   1545     uint32_t _flag_a = 0, _flag_b = 0;
   1546     uint32_t _itail_tgt = 0;
   1547     RECOMP_REGS_LOCALS
   1548     RECOMP_ENTER(0x3604A540u);
   1549 
   1550 L_3604A540:
   1551     PUSH32(esp, ebp); /* 0x3604A540: push ebp */
   1552     ebp = esp; /* 0x3604A541: mov ebp, esp */
   1553     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604A543: push -1 */
   1554     PUSH32(esp, 0x36163F8Bu); /* 0x3604A545: push 0x36163f8b */
   1555     eax = MEM32(FS_BASE + (0)); /* 0x3604A54A: mov eax, dword ptr fs:[0] */
   1556     PUSH32(esp, eax); /* 0x3604A550: push eax */
   1557     MEM32(FS_BASE + (0)) = esp; /* 0x3604A551: mov dword ptr fs:[0], esp */
   1558     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1560     esp = esp - 8; /* 0x3604A558: sub esp, 8 */
   1561     _flag_k = FK_CMP;
   1562     PUSH32(esp, ebx); /* 0x3604A55B: push ebx */
   1563     PUSH32(esp, esi); /* 0x3604A55C: push esi */
   1564     PUSH32(esp, edi); /* 0x3604A55D: push edi */
   1565     PUSH32(esp, 0x6Cu); /* 0x3604A55E: push 0x6c */
   1566     esi = ecx; /* 0x3604A560: mov esi, ecx */
   1567     RECOMP_ICALL(0x3615FD6Au); /* 0x3604A562: call 0x3615fd6a */ /* not lifted */
   1568     RECOMP_FLAGS_IN();
   1569     edi = eax; /* 0x3604A567: mov edi, eax */
   1570     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1572     esp = esp + 4; /* 0x3604A569: add esp, 4 */
   1573     _flag_k = FK_ADD;
   1574     MEM32(ebp + (-0x14)) = edi; /* 0x3604A56C: mov dword ptr [ebp - 0x14], edi */
   1575     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1576     eax = 0; /* 0x3604A56F: xor eax, eax */
   1577     _cf = 0;
   1578     _flag_k = FK_TEST;
   1579     /* cmp edi, eax */ /* 0x3604A571: cmp edi, eax */
   1580     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1582     _flag_k = FK_CMP;
   1583     MEM32(ebp + (-0x4)) = eax; /* 0x3604A573: mov dword ptr [ebp - 4], eax */
   1584     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604A608; /* 0x3604A576: je 0x3604a608 */
   1585 L_3604A57C:
   1586     ecx = MEM32(esi); /* 0x3604A57C: mov ecx, dword ptr [esi] */
   1587     PUSH32(esp, 1); /* 0x3604A57E: push 1 */
   1588     edx = esi + 0x30; /* 0x3604A580: lea edx, [esi + 0x30] */
   1589     ebx = MEM32(edx); /* 0x3604A583: mov ebx, dword ptr [edx] */
   1590     eax = ecx + 0x4; /* 0x3604A585: lea eax, [ecx + 4] */
   1591     MEM32(ebp + (-0x10)) = eax; /* 0x3604A588: mov dword ptr [ebp - 0x10], eax */
   1592     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1594     esp = esp - 0x10u; /* 0x3604A58B: sub esp, 0x10 */
   1595     _flag_k = FK_CMP;
   1596     eax = esp; /* 0x3604A58E: mov eax, esp */
   1597     MEM32(eax) = ebx; /* 0x3604A590: mov dword ptr [eax], ebx */
   1598     ebx = MEM32(edx + 0x4); /* 0x3604A592: mov ebx, dword ptr [edx + 4] */
   1599     MEM32(eax + 0x4) = ebx; /* 0x3604A595: mov dword ptr [eax + 4], ebx */
   1600     ebx = MEM32(edx + 0x8); /* 0x3604A598: mov ebx, dword ptr [edx + 8] */
   1601     edx = MEM32(edx + 0xC); /* 0x3604A59B: mov edx, dword ptr [edx + 0xc] */
   1602     MEM32(eax + 0x8) = ebx; /* 0x3604A59E: mov dword ptr [eax + 8], ebx */
   1603     MEM32(eax + 0xC) = edx; /* 0x3604A5A1: mov dword ptr [eax + 0xc], edx */
   1604     eax = esi + 0x20; /* 0x3604A5A4: lea eax, [esi + 0x20] */
   1605     ebx = MEM32(eax); /* 0x3604A5A7: mov ebx, dword ptr [eax] */
   1606     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1608     esp = esp - 0x10u; /* 0x3604A5A9: sub esp, 0x10 */
   1609     _flag_k = FK_CMP;
   1610     edx = esp; /* 0x3604A5AC: mov edx, esp */
   1611     MEM32(edx) = ebx; /* 0x3604A5AE: mov dword ptr [edx], ebx */
   1612     ebx = MEM32(eax + 0x4); /* 0x3604A5B0: mov ebx, dword ptr [eax + 4] */
   1613     MEM32(edx + 0x4) = ebx; /* 0x3604A5B3: mov dword ptr [edx + 4], ebx */
   1614     ebx = MEM32(eax + 0x8); /* 0x3604A5B6: mov ebx, dword ptr [eax + 8] */
   1615     eax = MEM32(eax + 0xC); /* 0x3604A5B9: mov eax, dword ptr [eax + 0xc] */
   1616     MEM32(edx + 0x8) = ebx; /* 0x3604A5BC: mov dword ptr [edx + 8], ebx */
   1617     MEM32(edx + 0xC) = eax; /* 0x3604A5BF: mov dword ptr [edx + 0xc], eax */
   1618     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   1619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1620     esi = esi + 0x10u; /* 0x3604A5C2: add esi, 0x10 */
   1621     _flag_k = FK_ADD;
   1622     eax = MEM32(esi); /* 0x3604A5C5: mov eax, dword ptr [esi] */
   1623     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1625     esp = esp - 0x10u; /* 0x3604A5C7: sub esp, 0x10 */
   1626     _flag_k = FK_CMP;
   1627     edx = esp; /* 0x3604A5CA: mov edx, esp */
   1628     MEM32(edx) = eax; /* 0x3604A5CC: mov dword ptr [edx], eax */
   1629     eax = MEM32(esi + 0x4); /* 0x3604A5CE: mov eax, dword ptr [esi + 4] */
   1630     MEM32(edx + 0x4) = eax; /* 0x3604A5D1: mov dword ptr [edx + 4], eax */
   1631     eax = MEM32(esi + 0x8); /* 0x3604A5D4: mov eax, dword ptr [esi + 8] */
   1632     MEM32(edx + 0x8) = eax; /* 0x3604A5D7: mov dword ptr [edx + 8], eax */
   1633     eax = MEM32(esi + 0xC); /* 0x3604A5DA: mov eax, dword ptr [esi + 0xc] */
   1634     MEM32(edx + 0xC) = eax; /* 0x3604A5DD: mov dword ptr [edx + 0xc], eax */
   1635     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x3604A5E0: call dword ptr [0x361700a8] */
   1636     RECOMP_FLAGS_IN();
   1637     edx = MEM32(eax); /* 0x3604A5E6: mov edx, dword ptr [eax] */
   1638     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1640     esp = esp - 0xCu; /* 0x3604A5E8: sub esp, 0xc */
   1641     _flag_k = FK_CMP;
   1642     ecx = esp; /* 0x3604A5EB: mov ecx, esp */
   1643     MEM32(ecx) = edx; /* 0x3604A5ED: mov dword ptr [ecx], edx */
   1644     edx = MEM32(eax + 0x4); /* 0x3604A5EF: mov edx, dword ptr [eax + 4] */
   1645     eax = MEM32(eax + 0x8); /* 0x3604A5F2: mov eax, dword ptr [eax + 8] */
   1646     MEM32(ecx + 0x4) = edx; /* 0x3604A5F5: mov dword ptr [ecx + 4], edx */
   1647     MEM32(ecx + 0x8) = eax; /* 0x3604A5F8: mov dword ptr [ecx + 8], eax */
   1648     ecx = MEM32(ebp + (-0x10)); /* 0x3604A5FB: mov ecx, dword ptr [ebp - 0x10] */
   1649     PUSH32(esp, 0x14u); /* 0x3604A5FE: push 0x14 */
   1650     PUSH32(esp, ecx); /* 0x3604A600: push ecx */
   1651     ecx = edi; /* 0x3604A601: mov ecx, edi */
   1652     RECOMP_ICALL(0x36047200u); /* 0x3604A603: call 0x36047200 */ /* not lifted */
   1653     RECOMP_FLAGS_IN();
   1654 L_3604A608:
   1655     edx = MEM32(0x3616FF74); /* 0x3604A608: mov edx, dword ptr [0x3616ff74] */
   1656     ecx = MEM32(edx); /* 0x3604A60E: mov ecx, dword ptr [edx] */
   1657     edx = MEM32(ecx); /* 0x3604A610: mov edx, dword ptr [ecx] */
   1658     PUSH32(esp, eax); /* 0x3604A612: push eax */
   1659     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604A613: mov dword ptr [ebp - 4], 0xffffffff */
   1660     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3604A61A: call dword ptr [edx + 0x38] */
   1661     RECOMP_FLAGS_IN();
   1662     ecx = MEM32(ebp + (-0xC)); /* 0x3604A61D: mov ecx, dword ptr [ebp - 0xc] */
   1663     edi = POP32_VAL(esp); /* 0x3604A620: pop edi */
   1664     esi = POP32_VAL(esp); /* 0x3604A621: pop esi */
   1665     MEM32(FS_BASE + (0)) = ecx; /* 0x3604A622: mov dword ptr fs:[0], ecx */
   1666     ebx = POP32_VAL(esp); /* 0x3604A629: pop ebx */
   1667     esp = ebp; /* 0x3604A62A: mov esp, ebp */
   1668     ebp = POP32_VAL(esp); /* 0x3604A62C: pop ebp */
   1669     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604A62D: ret  */
   1670     RECOMP_REGS_OUT();
   1671 }
   1672 
   1673 void sub_3604A630(void) {
   1674     int _fpu_cmp = 0;
   1675     uint32_t _cf = 0;
   1676     int _df = 1;
   1677     uint32_t _flag_k = FK_NONE;
   1678     uint32_t _flag_a = 0, _flag_b = 0;
   1679     uint32_t _itail_tgt = 0;
   1680     RECOMP_REGS_LOCALS
   1681     RECOMP_ENTER(0x3604A630u);
   1682 
   1683 L_3604A630:
   1684     PUSH32(esp, ebp); /* 0x3604A630: push ebp */
   1685     ebp = esp; /* 0x3604A631: mov ebp, esp */
   1686     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   1687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1688     esp = esp - 0x24u; /* 0x3604A633: sub esp, 0x24 */
   1689     _flag_k = FK_CMP;
   1690     eax = MEM32(0x3630667C); /* 0x3604A636: mov eax, dword ptr [0x3630667c] */
   1691     /* cmp eax, 0xC8u */ /* 0x3604A63B: cmp eax, 0xc8 */
   1692     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC8u);
   1693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1694     _flag_k = FK_CMP;
   1695     PUSH32(esp, esi); /* 0x3604A640: push esi */
   1696     if (CMP_BE(_flag_a, _flag_b)) goto L_3604A6AA; /* 0x3604A641: jbe 0x3604a6aa */
   1697 L_3604A643:
   1698     /* test eax, eax */ /* 0x3604A643: test eax, eax */
   1699     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1700     _cf = 0;
   1701     _flag_k = FK_TEST;
   1702     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A651; /* 0x3604A645: je 0x3604a651 */
   1703 L_3604A647:
   1704     ecx = 0x36306650u; /* 0x3604A647: mov ecx, 0x36306650 */
   1705     RECOMP_ICALL(0x360C0EF0u); /* 0x3604A64C: call 0x360c0ef0 */ /* not lifted */
   1706     RECOMP_FLAGS_IN();
   1707 L_3604A651:
   1708     eax = MEM32(0x363066B4); /* 0x3604A651: mov eax, dword ptr [0x363066b4] */
   1709     /* test eax, eax */ /* 0x3604A656: test eax, eax */
   1710     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1711     _cf = 0;
   1712     _flag_k = FK_TEST;
   1713     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A664; /* 0x3604A658: je 0x3604a664 */
   1714 L_3604A65A:
   1715     ecx = 0x36306688u; /* 0x3604A65A: mov ecx, 0x36306688 */
   1716     RECOMP_ICALL(0x360C0EF0u); /* 0x3604A65F: call 0x360c0ef0 */ /* not lifted */
   1717     RECOMP_FLAGS_IN();
   1718 L_3604A664:
   1719     eax = MEM32(0x3630664C); /* 0x3604A664: mov eax, dword ptr [0x3630664c] */
   1720     /* test eax, eax */ /* 0x3604A669: test eax, eax */
   1721     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1722     _cf = 0;
   1723     _flag_k = FK_TEST;
   1724     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A6AA; /* 0x3604A66B: je 0x3604a6aa */
   1725 L_3604A66D:
   1726     esi = MEM32(0x36306630); /* 0x3604A66D: mov esi, dword ptr [0x36306630] */
   1727     ecx = 0x36306624u; /* 0x3604A673: mov ecx, 0x36306624 */
   1728     RECOMP_ICALL(0x360C0CA0u); /* 0x3604A678: call 0x360c0ca0 */ /* not lifted */
   1729     RECOMP_FLAGS_IN();
   1730     _flag_a = (uint32_t)(MEM32(0x3630664C)); _flag_b = (uint32_t)(1);
   1731     MEM32(0x3630664C) = MEM32(0x3630664C) - 1; /* 0x3604A67D: dec dword ptr [0x3630664c] */
   1732     _flag_k = FK_DEC;
   1733     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3604A691; /* 0x3604A683: jne 0x3604a691 */
   1734 L_3604A685:
   1735     ecx = 0x36306620u; /* 0x3604A685: mov ecx, 0x36306620 */
   1736     RECOMP_ICALL(0x3606B320u); /* 0x3604A68A: call 0x3606b320 */ /* not lifted */
   1737     RECOMP_FLAGS_IN();
   1738     goto L_3604A6AA; /* 0x3604A68F: jmp 0x3604a6aa */
   1739 L_3604A691:
   1740     /* cmp esi, MEM32(0x36306630) */ /* 0x3604A691: cmp esi, dword ptr [0x36306630] */
   1741     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(0x36306630));
   1742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1743     _flag_k = FK_CMP;
   1744     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604A6AA; /* 0x3604A697: je 0x3604a6aa */
   1745 L_3604A699:
   1746     eax = MEM32(esi); /* 0x3604A699: mov eax, dword ptr [esi] */
   1747     PUSH32(esp, eax); /* 0x3604A69B: push eax */
   1748     RECOMP_ICALL(0x3615FCC4u); /* 0x3604A69C: call 0x3615fcc4 */ /* not lifted */
   1749     RECOMP_FLAGS_IN();
   1750     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1751     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1752     esp = esp + 4; /* 0x3604A6A1: add esp, 4 */
   1753     _flag_k = FK_ADD;
   1754     MEM32(esi) = 0; /* 0x3604A6A4: mov dword ptr [esi], 0 */
   1755 L_3604A6AA:
   1756     eax = MEM32(0x3630667C); /* 0x3604A6AA: mov eax, dword ptr [0x3630667c] */
   1757     /* test eax, eax */ /* 0x3604A6AF: test eax, eax */
   1758     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1759     _cf = 0;
   1760     _flag_k = FK_TEST;
   1761     MEM32(ebp + (-0x4)) = 0; /* 0x3604A6B1: mov dword ptr [ebp - 4], 0 */
   1762     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A787; /* 0x3604A6B8: je 0x3604a787 */
   1763 L_3604A6BE:
   1764     ecx = MEM32(0x36306668); /* 0x3604A6BE: mov ecx, dword ptr [0x36306668] */
   1765     eax = MEM32(0x36306664); /* 0x3604A6C4: mov eax, dword ptr [0x36306664] */
   1766     edx = MEM32(0x3630666C); /* 0x3604A6C9: mov edx, dword ptr [0x3630666c] */
   1767     esi = MEM32(0x36306670); /* 0x3604A6CF: mov esi, dword ptr [0x36306670] */
   1768     MEM32(ebp + (-0x10)) = ecx; /* 0x3604A6D5: mov dword ptr [ebp - 0x10], ecx */
   1769     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604A6D8: push -1 */
   1770     ecx = ebp + (-0x14); /* 0x3604A6DA: lea ecx, [ebp - 0x14] */
   1771     MEM32(ebp + (-0x14)) = eax; /* 0x3604A6DD: mov dword ptr [ebp - 0x14], eax */
   1772     MEM32(ebp + (-0xC)) = edx; /* 0x3604A6E0: mov dword ptr [ebp - 0xc], edx */
   1773     MEM32(ebp + (-0x8)) = esi; /* 0x3604A6E3: mov dword ptr [ebp - 8], esi */
   1774     RECOMP_ICALL(0x360C1060u); /* 0x3604A6E6: call 0x360c1060 */ /* not lifted */
   1775     RECOMP_FLAGS_IN();
   1776     ecx = MEM32(0x363066A0); /* 0x3604A6EB: mov ecx, dword ptr [0x363066a0] */
   1777     eax = MEM32(0x3630669C); /* 0x3604A6F1: mov eax, dword ptr [0x3630669c] */
   1778     edx = MEM32(0x363066A4); /* 0x3604A6F6: mov edx, dword ptr [0x363066a4] */
   1779     esi = MEM32(0x363066A8); /* 0x3604A6FC: mov esi, dword ptr [0x363066a8] */
   1780     MEM32(ebp + (-0x10)) = ecx; /* 0x3604A702: mov dword ptr [ebp - 0x10], ecx */
   1781     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604A705: push -1 */
   1782     ecx = ebp + (-0x14); /* 0x3604A707: lea ecx, [ebp - 0x14] */
   1783     MEM32(ebp + (-0x14)) = eax; /* 0x3604A70A: mov dword ptr [ebp - 0x14], eax */
   1784     MEM32(ebp + (-0xC)) = edx; /* 0x3604A70D: mov dword ptr [ebp - 0xc], edx */
   1785     MEM32(ebp + (-0x8)) = esi; /* 0x3604A710: mov dword ptr [ebp - 8], esi */
   1786     RECOMP_ICALL(0x360C1060u); /* 0x3604A713: call 0x360c1060 */ /* not lifted */
   1787     RECOMP_FLAGS_IN();
   1788     ecx = MEM32(ebp + (-0xC)); /* 0x3604A718: mov ecx, dword ptr [ebp - 0xc] */
   1789     fp_push(*(float*)&MEM32(ecx)); /* 0x3604A71B: fld dword ptr [ecx] */
   1790     fp_push(_st[0]); /* 0x3604A71D: fld st(0) */
   1791     _st[0] *= (double)*(float*)ADDR(0x36170F0C); /* 0x3604A71F: fmul dword ptr [0x36170f0c] */
   1792     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3604A725: fld dword ptr [ebp + 8] */
   1793     _st[0] *= (double)*(float*)ADDR(0x36170F08); /* 0x3604A728: fmul dword ptr [0x36170f08] */
   1794     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604A72E: faddp st(1) */
   1795     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3604A730: fst dword ptr [ebp + 8] */
   1796     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170F04)); /* 0x3604A733: fcomp dword ptr [0x36170f04] */
   1797     fp_pop();
   1798     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A739: fnstsw ax */
   1799     /* test HI8(eax), 0x41u */ /* 0x3604A73B: test ah, 0x41 */
   1800     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1801     _cf = 0;
   1802     _flag_k = FK_NARROW(FK_TEST, 24);
   1803     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604A74D; /* 0x3604A73E: jne 0x3604a74d */
   1804 L_3604A740:
   1805     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604A740: fcom dword ptr [0x3617040c] */
   1806     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A746: fnstsw ax */
   1807     /* test HI8(eax), 1 */ /* 0x3604A748: test ah, 1 */
   1808     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1809     _cf = 0;
   1810     _flag_k = FK_NARROW(FK_TEST, 24);
   1811     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604A76A; /* 0x3604A74B: jne 0x3604a76a */
   1812 L_3604A74D:
   1813     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3604A74D: fld dword ptr [ebp + 8] */
   1814     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170F00)); /* 0x3604A750: fcomp dword ptr [0x36170f00] */
   1815     fp_pop();
   1816     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A756: fnstsw ax */
   1817     /* test HI8(eax), 1 */ /* 0x3604A758: test ah, 1 */
   1818     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1819     _cf = 0;
   1820     _flag_k = FK_NARROW(FK_TEST, 24);
   1821     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A773; /* 0x3604A75B: je 0x3604a773 */
   1822 L_3604A75D:
   1823     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604A75D: fcom dword ptr [0x3617040c] */
   1824     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A763: fnstsw ax */
   1825     /* test HI8(eax), 0x41u */ /* 0x3604A765: test ah, 0x41 */
   1826     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1827     _cf = 0;
   1828     _flag_k = FK_NARROW(FK_TEST, 24);
   1829     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604A773; /* 0x3604A768: jne 0x3604a773 */
   1830 L_3604A76A:
   1831     MEM8(0x363066B8) = (uint8_t)(1); /* 0x3604A76A: mov byte ptr [0x363066b8], 1 */
   1832     goto L_3604A77A; /* 0x3604A771: jmp 0x3604a77a */
   1833 L_3604A773:
   1834     MEM8(0x363066B8) = (uint8_t)(0); /* 0x3604A773: mov byte ptr [0x363066b8], 0 */
   1835 L_3604A77A:
   1836     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3604A77A: fld dword ptr [ebp + 8] */
   1837     _st[0] -= _st[1]; /* 0x3604A77D: fsub st(1) */
   1838     _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x3604A77F: fdiv dword ptr [ebp + 0xc] */
   1839     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3604A782: fstp dword ptr [ebp - 4] */
   1840     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604A785: fstp st(0) */
   1841 L_3604A787:
   1842     eax = MEM32(0x3630667C); /* 0x3604A787: mov eax, dword ptr [0x3630667c] */
   1843     /* test eax, eax */ /* 0x3604A78C: test eax, eax */
   1844     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1845     _cf = 0;
   1846     _flag_k = FK_TEST;
   1847     esi = POP32_VAL(esp); /* 0x3604A78E: pop esi */
   1848     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A7A0; /* 0x3604A78F: je 0x3604a7a0 */
   1849 L_3604A791:
   1850     eax = MEM32(0x3630666C); /* 0x3604A791: mov eax, dword ptr [0x3630666c] */
   1851     ecx = MEM32(0x36306668); /* 0x3604A796: mov ecx, dword ptr [0x36306668] */
   1852     /* cmp eax, ecx */ /* 0x3604A79C: cmp eax, ecx */
   1853     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1855     _flag_k = FK_CMP;
   1856     if (CMP_NE(_flag_a, _flag_b)) goto L_3604A7B9; /* 0x3604A79E: jne 0x3604a7b9 */
   1857 L_3604A7A0:
   1858     ecx = 0x36306650u; /* 0x3604A7A0: mov ecx, 0x36306650 */
   1859     RECOMP_ICALL(0x3606B0F0u); /* 0x3604A7A5: call 0x3606b0f0 */ /* not lifted */
   1860     RECOMP_FLAGS_IN();
   1861     ecx = MEM32(0x36306668); /* 0x3604A7AA: mov ecx, dword ptr [0x36306668] */
   1862     eax = MEM32(0x3630666C); /* 0x3604A7B0: mov eax, dword ptr [0x3630666c] */
   1863     /* cmp eax, ecx */ /* 0x3604A7B5: cmp eax, ecx */
   1864     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1866     _flag_k = FK_CMP;
   1867     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604A7F2; /* 0x3604A7B7: je 0x3604a7f2 */
   1868 L_3604A7B9:
   1869     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1870     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1871     eax = eax + 4; /* 0x3604A7B9: add eax, 4 */
   1872     _flag_k = FK_ADD;
   1873     /* cmp eax, ecx */ /* 0x3604A7BC: cmp eax, ecx */
   1874     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1876     _flag_k = FK_CMP;
   1877     MEM32(0x3630666C) = eax; /* 0x3604A7BE: mov dword ptr [0x3630666c], eax */
   1878     if (CMP_NE(_flag_a, _flag_b)) goto L_3604A7F2; /* 0x3604A7C3: jne 0x3604a7f2 */
   1879 L_3604A7C5:
   1880     edx = MEM32(0x36306670); /* 0x3604A7C5: mov edx, dword ptr [0x36306670] */
   1881     ecx = MEM32(edx + 0x4); /* 0x3604A7CB: mov ecx, dword ptr [edx + 4] */
   1882     /* test ecx, ecx */ /* 0x3604A7CE: test ecx, ecx */
   1883     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1884     _cf = 0;
   1885     _flag_k = FK_TEST;
   1886     eax = edx + 0x4; /* 0x3604A7D0: lea eax, [edx + 4] */
   1887     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A7F2; /* 0x3604A7D3: je 0x3604a7f2 */
   1888 L_3604A7D5:
   1889     MEM32(0x36306670) = eax; /* 0x3604A7D5: mov dword ptr [0x36306670], eax */
   1890     eax = MEM32(eax); /* 0x3604A7DA: mov eax, dword ptr [eax] */
   1891     ecx = eax + 0x1000; /* 0x3604A7DC: lea ecx, [eax + 0x1000] */
   1892     MEM32(0x36306664) = eax; /* 0x3604A7E2: mov dword ptr [0x36306664], eax */
   1893     MEM32(0x36306668) = ecx; /* 0x3604A7E7: mov dword ptr [0x36306668], ecx */
   1894     MEM32(0x3630666C) = eax; /* 0x3604A7ED: mov dword ptr [0x3630666c], eax */
   1895 L_3604A7F2:
   1896     PUSH32(esp, 1); /* 0x3604A7F2: push 1 */
   1897     edx = ebp + (-0x24); /* 0x3604A7F4: lea edx, [ebp - 0x24] */
   1898     PUSH32(esp, edx); /* 0x3604A7F7: push edx */
   1899     ecx = 0x36306664u; /* 0x3604A7F8: mov ecx, 0x36306664 */
   1900     RECOMP_ICALL(0x360C0D80u); /* 0x3604A7FD: call 0x360c0d80 */ /* not lifted */
   1901     RECOMP_FLAGS_IN();
   1902     ecx = eax; /* 0x3604A802: mov ecx, eax */
   1903     edx = MEM32(ecx); /* 0x3604A804: mov edx, dword ptr [ecx] */
   1904     eax = MEM32(ecx + 0x4); /* 0x3604A806: mov eax, dword ptr [ecx + 4] */
   1905     MEM32(ebp + (-0x14)) = edx; /* 0x3604A809: mov dword ptr [ebp - 0x14], edx */
   1906     MEM32(ebp + (-0x10)) = eax; /* 0x3604A80C: mov dword ptr [ebp - 0x10], eax */
   1907     eax = MEM32(ecx + 0x8); /* 0x3604A80F: mov eax, dword ptr [ecx + 8] */
   1908     ecx = MEM32(ecx + 0xC); /* 0x3604A812: mov ecx, dword ptr [ecx + 0xc] */
   1909     edx = ebp + 0xC; /* 0x3604A815: lea edx, [ebp + 0xc] */
   1910     PUSH32(esp, edx); /* 0x3604A818: push edx */
   1911     PUSH32(esp, eax); /* 0x3604A819: push eax */
   1912     MEM32(ebp + (-0x8)) = ecx; /* 0x3604A81A: mov dword ptr [ebp - 8], ecx */
   1913     RECOMP_ICALL(0x3614F850u); /* 0x3604A81D: call 0x3614f850 */ /* not lifted */
   1914     RECOMP_FLAGS_IN();
   1915     ecx = MEM32(0x3630667C); /* 0x3604A822: mov ecx, dword ptr [0x3630667c] */
   1916     eax = MEM32(0x363066B4); /* 0x3604A828: mov eax, dword ptr [0x363066b4] */
   1917     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1918     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1919     esp = esp + 8; /* 0x3604A82D: add esp, 8 */
   1920     _flag_k = FK_ADD;
   1921     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1922     ecx = ecx + 1; /* 0x3604A830: inc ecx */
   1923     _flag_k = FK_INC;
   1924     /* test eax, eax */ /* 0x3604A831: test eax, eax */
   1925     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1926     _cf = 0;
   1927     _flag_k = FK_TEST;
   1928     MEM32(0x3630667C) = ecx; /* 0x3604A833: mov dword ptr [0x3630667c], ecx */
   1929     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A84A; /* 0x3604A839: je 0x3604a84a */
   1930 L_3604A83B:
   1931     eax = MEM32(0x363066A4); /* 0x3604A83B: mov eax, dword ptr [0x363066a4] */
   1932     ecx = MEM32(0x363066A0); /* 0x3604A840: mov ecx, dword ptr [0x363066a0] */
   1933     /* cmp eax, ecx */ /* 0x3604A846: cmp eax, ecx */
   1934     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1936     _flag_k = FK_CMP;
   1937     if (CMP_NE(_flag_a, _flag_b)) goto L_3604A863; /* 0x3604A848: jne 0x3604a863 */
   1938 L_3604A84A:
   1939     ecx = 0x36306688u; /* 0x3604A84A: mov ecx, 0x36306688 */
   1940     RECOMP_ICALL(0x3606B0F0u); /* 0x3604A84F: call 0x3606b0f0 */ /* not lifted */
   1941     RECOMP_FLAGS_IN();
   1942     ecx = MEM32(0x363066A0); /* 0x3604A854: mov ecx, dword ptr [0x363066a0] */
   1943     eax = MEM32(0x363066A4); /* 0x3604A85A: mov eax, dword ptr [0x363066a4] */
   1944     /* cmp eax, ecx */ /* 0x3604A85F: cmp eax, ecx */
   1945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1947     _flag_k = FK_CMP;
   1948     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604A89B; /* 0x3604A861: je 0x3604a89b */
   1949 L_3604A863:
   1950     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1951     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1952     eax = eax + 4; /* 0x3604A863: add eax, 4 */
   1953     _flag_k = FK_ADD;
   1954     /* cmp eax, ecx */ /* 0x3604A866: cmp eax, ecx */
   1955     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1957     _flag_k = FK_CMP;
   1958     MEM32(0x363066A4) = eax; /* 0x3604A868: mov dword ptr [0x363066a4], eax */
   1959     if (CMP_NE(_flag_a, _flag_b)) goto L_3604A89B; /* 0x3604A86D: jne 0x3604a89b */
   1960 L_3604A86F:
   1961     eax = MEM32(0x363066A8); /* 0x3604A86F: mov eax, dword ptr [0x363066a8] */
   1962     ecx = MEM32(eax + 0x4); /* 0x3604A874: mov ecx, dword ptr [eax + 4] */
   1963     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1965     eax = eax + 4; /* 0x3604A877: add eax, 4 */
   1966     _flag_k = FK_ADD;
   1967     /* test ecx, ecx */ /* 0x3604A87A: test ecx, ecx */
   1968     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1969     _cf = 0;
   1970     _flag_k = FK_TEST;
   1971     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A89B; /* 0x3604A87C: je 0x3604a89b */
   1972 L_3604A87E:
   1973     MEM32(0x363066A8) = eax; /* 0x3604A87E: mov dword ptr [0x363066a8], eax */
   1974     eax = MEM32(eax); /* 0x3604A883: mov eax, dword ptr [eax] */
   1975     ecx = eax + 0x1000; /* 0x3604A885: lea ecx, [eax + 0x1000] */
   1976     MEM32(0x3630669C) = eax; /* 0x3604A88B: mov dword ptr [0x3630669c], eax */
   1977     MEM32(0x363066A0) = ecx; /* 0x3604A890: mov dword ptr [0x363066a0], ecx */
   1978     MEM32(0x363066A4) = eax; /* 0x3604A896: mov dword ptr [0x363066a4], eax */
   1979 L_3604A89B:
   1980     PUSH32(esp, 1); /* 0x3604A89B: push 1 */
   1981     edx = ebp + (-0x24); /* 0x3604A89D: lea edx, [ebp - 0x24] */
   1982     PUSH32(esp, edx); /* 0x3604A8A0: push edx */
   1983     ecx = 0x3630669Cu; /* 0x3604A8A1: mov ecx, 0x3630669c */
   1984     RECOMP_ICALL(0x360C0D80u); /* 0x3604A8A6: call 0x360c0d80 */ /* not lifted */
   1985     RECOMP_FLAGS_IN();
   1986     ecx = eax; /* 0x3604A8AB: mov ecx, eax */
   1987     edx = MEM32(ecx); /* 0x3604A8AD: mov edx, dword ptr [ecx] */
   1988     eax = MEM32(ecx + 0x4); /* 0x3604A8AF: mov eax, dword ptr [ecx + 4] */
   1989     MEM32(ebp + (-0x14)) = edx; /* 0x3604A8B2: mov dword ptr [ebp - 0x14], edx */
   1990     MEM32(ebp + (-0x10)) = eax; /* 0x3604A8B5: mov dword ptr [ebp - 0x10], eax */
   1991     eax = MEM32(ecx + 0x8); /* 0x3604A8B8: mov eax, dword ptr [ecx + 8] */
   1992     ecx = MEM32(ecx + 0xC); /* 0x3604A8BB: mov ecx, dword ptr [ecx + 0xc] */
   1993     edx = ebp + 0x8; /* 0x3604A8BE: lea edx, [ebp + 8] */
   1994     PUSH32(esp, edx); /* 0x3604A8C1: push edx */
   1995     PUSH32(esp, eax); /* 0x3604A8C2: push eax */
   1996     MEM32(ebp + (-0x8)) = ecx; /* 0x3604A8C3: mov dword ptr [ebp - 8], ecx */
   1997     RECOMP_ICALL(0x3614F850u); /* 0x3604A8C6: call 0x3614f850 */ /* not lifted */
   1998     RECOMP_FLAGS_IN();
   1999     ecx = MEM32(0x363066B4); /* 0x3604A8CB: mov ecx, dword ptr [0x363066b4] */
   2000     eax = MEM32(0x3630664C); /* 0x3604A8D1: mov eax, dword ptr [0x3630664c] */
   2001     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2002     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2003     esp = esp + 8; /* 0x3604A8D6: add esp, 8 */
   2004     _flag_k = FK_ADD;
   2005     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2006     ecx = ecx + 1; /* 0x3604A8D9: inc ecx */
   2007     _flag_k = FK_INC;
   2008     /* test eax, eax */ /* 0x3604A8DA: test eax, eax */
   2009     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2010     _cf = 0;
   2011     _flag_k = FK_TEST;
   2012     MEM32(0x363066B4) = ecx; /* 0x3604A8DC: mov dword ptr [0x363066b4], ecx */
   2013     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A8F1; /* 0x3604A8E2: je 0x3604a8f1 */
   2014 L_3604A8E4:
   2015     eax = MEM32(0x3630663C); /* 0x3604A8E4: mov eax, dword ptr [0x3630663c] */
   2016     /* cmp eax, MEM32(0x36306638) */ /* 0x3604A8E9: cmp eax, dword ptr [0x36306638] */
   2017     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x36306638));
   2018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2019     _flag_k = FK_CMP;
   2020     if (CMP_NE(_flag_a, _flag_b)) goto L_3604A8FB; /* 0x3604A8EF: jne 0x3604a8fb */
   2021 L_3604A8F1:
   2022     ecx = 0x36306620u; /* 0x3604A8F1: mov ecx, 0x36306620 */
   2023     RECOMP_ICALL(0x3606B0F0u); /* 0x3604A8F6: call 0x3606b0f0 */ /* not lifted */
   2024     RECOMP_FLAGS_IN();
   2025 L_3604A8FB:
   2026     ecx = 0x36306634u; /* 0x3604A8FB: mov ecx, 0x36306634 */
   2027     RECOMP_ICALL(0x360C0CA0u); /* 0x3604A900: call 0x360c0ca0 */ /* not lifted */
   2028     RECOMP_FLAGS_IN();
   2029     PUSH32(esp, 1); /* 0x3604A905: push 1 */
   2030     ecx = ebp + (-0x24); /* 0x3604A907: lea ecx, [ebp - 0x24] */
   2031     PUSH32(esp, ecx); /* 0x3604A90A: push ecx */
   2032     ecx = 0x36306634u; /* 0x3604A90B: mov ecx, 0x36306634 */
   2033     RECOMP_ICALL(0x360C0D80u); /* 0x3604A910: call 0x360c0d80 */ /* not lifted */
   2034     RECOMP_FLAGS_IN();
   2035     edx = eax; /* 0x3604A915: mov edx, eax */
   2036     eax = MEM32(edx); /* 0x3604A917: mov eax, dword ptr [edx] */
   2037     ecx = MEM32(edx + 0x4); /* 0x3604A919: mov ecx, dword ptr [edx + 4] */
   2038     MEM32(ebp + (-0x10)) = ecx; /* 0x3604A91C: mov dword ptr [ebp - 0x10], ecx */
   2039     MEM32(ebp + (-0x14)) = eax; /* 0x3604A91F: mov dword ptr [ebp - 0x14], eax */
   2040     eax = MEM32(edx + 0x8); /* 0x3604A922: mov eax, dword ptr [edx + 8] */
   2041     edx = MEM32(edx + 0xC); /* 0x3604A925: mov edx, dword ptr [edx + 0xc] */
   2042     ecx = ebp + (-0x4); /* 0x3604A928: lea ecx, [ebp - 4] */
   2043     PUSH32(esp, ecx); /* 0x3604A92B: push ecx */
   2044     PUSH32(esp, eax); /* 0x3604A92C: push eax */
   2045     MEM32(ebp + (-0x8)) = edx; /* 0x3604A92D: mov dword ptr [ebp - 8], edx */
   2046     RECOMP_ICALL(0x3614F850u); /* 0x3604A930: call 0x3614f850 */ /* not lifted */
   2047     RECOMP_FLAGS_IN();
   2048     eax = MEM32(0x3630664C); /* 0x3604A935: mov eax, dword ptr [0x3630664c] */
   2049     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2050     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2051     esp = esp + 8; /* 0x3604A93A: add esp, 8 */
   2052     _flag_k = FK_ADD;
   2053     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2054     eax = eax + 1; /* 0x3604A93D: inc eax */
   2055     _flag_k = FK_INC;
   2056     MEM32(0x3630664C) = eax; /* 0x3604A93E: mov dword ptr [0x3630664c], eax */
   2057     esp = ebp; /* 0x3604A943: mov esp, ebp */
   2058     ebp = POP32_VAL(esp); /* 0x3604A945: pop ebp */
   2059     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604A946: ret 8 */
   2060     RECOMP_REGS_OUT();
   2061 }
   2062 
   2063 void sub_3604A950(void) {
   2064     int _fpu_cmp = 0;
   2065     uint32_t _cf = 0;
   2066     int _df = 1;
   2067     uint32_t _flag_k = FK_NONE;
   2068     uint32_t _flag_a = 0, _flag_b = 0;
   2069     uint32_t _itail_tgt = 0;
   2070     RECOMP_REGS_LOCALS
   2071     RECOMP_ENTER(0x3604A950u);
   2072 
   2073 L_3604A950:
   2074     PUSH32(esp, ebp); /* 0x3604A950: push ebp */
   2075     ebp = esp; /* 0x3604A951: mov ebp, esp */
   2076     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2078     esp = esp - 0x14u; /* 0x3604A953: sub esp, 0x14 */
   2079     _flag_k = FK_CMP;
   2080     eax = MEM32(0x363066B4); /* 0x3604A956: mov eax, dword ptr [0x363066b4] */
   2081     /* test eax, eax */ /* 0x3604A95B: test eax, eax */
   2082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2083     _cf = 0;
   2084     _flag_k = FK_TEST;
   2085     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AA25; /* 0x3604A95D: je 0x3604aa25 */
   2086 L_3604A963:
   2087     eax = ebp + (-0x4); /* 0x3604A963: lea eax, [ebp - 4] */
   2088     PUSH32(esp, eax); /* 0x3604A966: push eax */
   2089     ecx = 0x363066C0u; /* 0x3604A967: mov ecx, 0x363066c0 */
   2090     RECOMP_ICALL(MEM32(0x3616FB84)); /* 0x3604A96C: call dword ptr [0x3616fb84] */
   2091     RECOMP_FLAGS_IN();
   2092     ecx = eax; /* 0x3604A972: mov ecx, eax */
   2093     RECOMP_ICALL(MEM32(0x3616FB80)); /* 0x3604A974: call dword ptr [0x3616fb80] */
   2094     RECOMP_FLAGS_IN();
   2095     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x3604A97A: fcomp dword ptr [0x36170380] */
   2096     fp_pop();
   2097     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A980: fnstsw ax */
   2098     /* test HI8(eax), 0x41u */ /* 0x3604A982: test ah, 0x41 */
   2099     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2100     _cf = 0;
   2101     _flag_k = FK_NARROW(FK_TEST, 24);
   2102     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604AA25; /* 0x3604A985: jne 0x3604aa25 */
   2103 L_3604A98B:
   2104     ecx = MEM32(0x363066A0); /* 0x3604A98B: mov ecx, dword ptr [0x363066a0] */
   2105     eax = MEM32(0x3630669C); /* 0x3604A991: mov eax, dword ptr [0x3630669c] */
   2106     MEM32(ebp + (-0x10)) = ecx; /* 0x3604A996: mov dword ptr [ebp - 0x10], ecx */
   2107     ecx = MEM32(0x363066A4); /* 0x3604A999: mov ecx, dword ptr [0x363066a4] */
   2108     edx = ecx + (-0x4); /* 0x3604A99F: lea edx, [ecx - 4] */
   2109     ecx = edx; /* 0x3604A9A2: mov ecx, edx */
   2110     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2111     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2112     ecx = ecx - eax; /* 0x3604A9A4: sub ecx, eax */
   2113     _flag_k = FK_CMP;
   2114     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3604A9A6: sar ecx, 2 */
   2115     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2116     ecx = (uint32_t)((int32_t)ecx >> 2u);
   2117     PUSH32(esp, esi); /* 0x3604A9A9: push esi */
   2118     esi = MEM32(0x363066A8); /* 0x3604A9AA: mov esi, dword ptr [0x363066a8] */
   2119     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_S, _cf)) goto L_3604A9B9; /* 0x3604A9B0: js 0x3604a9b9 */
   2120 L_3604A9B2:
   2121     eax = ecx; /* 0x3604A9B2: mov eax, ecx */
   2122     if (10u) _cf = (((eax) >> 9) & 1u); /* 0x3604A9B4: shr eax, 0xa */
   2123     if (10u) { _flag_a = recomp_flags_pack((eax >> 10u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2124     eax = eax >> 10u; /* 0x3604A9B4: shr eax, 0xa */
   2125     goto L_3604A9C5; /* 0x3604A9B7: jmp 0x3604a9c5 */
   2126 L_3604A9B9:
   2127     eax = 0x3FFu; /* 0x3604A9B9: mov eax, 0x3ff */
   2128     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2130     eax = eax - ecx; /* 0x3604A9BE: sub eax, ecx */
   2131     _flag_k = FK_CMP;
   2132     if (10u) _cf = (((eax) >> 9) & 1u); /* 0x3604A9C0: shr eax, 0xa */
   2133     if (10u) { _flag_a = recomp_flags_pack((eax >> 10u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2134     eax = eax >> 10u; /* 0x3604A9C0: shr eax, 0xa */
   2135     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2136     _cf = (eax) != 0;
   2137     eax = (uint32_t)(-(int32_t)eax); /* 0x3604A9C3: neg eax */
   2138     _flag_k = FK_CMP;
   2139 L_3604A9C5:
   2140     /* test eax, eax */ /* 0x3604A9C5: test eax, eax */
   2141     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2142     _cf = 0;
   2143     _flag_k = FK_TEST;
   2144     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A9D4; /* 0x3604A9C7: je 0x3604a9d4 */
   2145 L_3604A9C9:
   2146     edx = MEM32(esi + eax * 4); /* 0x3604A9C9: mov edx, dword ptr [esi + eax*4] */
   2147     if (10u) _cf = (((eax) >> 22) & 1u); /* 0x3604A9CC: shl eax, 0xa */
   2148     if (10u) { _flag_a = recomp_flags_pack((eax << 10u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2149     eax = eax << 10u; /* 0x3604A9CC: shl eax, 0xa */
   2150     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2152     ecx = ecx - eax; /* 0x3604A9CF: sub ecx, eax */
   2153     _flag_k = FK_CMP;
   2154     edx = edx + ecx * 4; /* 0x3604A9D1: lea edx, [edx + ecx*4] */
   2155 L_3604A9D4:
   2156     fp_push(*(float*)&MEM32(edx)); /* 0x3604A9D4: fld dword ptr [edx] */
   2157     esi = POP32_VAL(esp); /* 0x3604A9D6: pop esi */
   2158     _st[0] = fabs(_st[0]); /* 0x3604A9D7: fabs  */
   2159     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170F10)); /* 0x3604A9D9: fcom dword ptr [0x36170f10] */
   2160     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604A9DF: fnstsw ax */
   2161     /* test HI8(eax), 1 */ /* 0x3604A9E1: test ah, 1 */
   2162     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2163     _cf = 0;
   2164     _flag_k = FK_NARROW(FK_TEST, 24);
   2165     if (TEST_Z(_flag_a, _flag_b)) goto L_3604A9FC; /* 0x3604A9E4: je 0x3604a9fc */
   2166 L_3604A9E6:
   2167     SET_LO8(eax, MEM8(0x36306682)); /* 0x3604A9E6: mov al, byte ptr [0x36306682] */
   2168     /* test LO8(eax), LO8(eax) */ /* 0x3604A9EB: test al, al */
   2169     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2170     _cf = 0;
   2171     _flag_k = FK_NARROW(FK_TEST, 24);
   2172     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604A9FC; /* 0x3604A9ED: jne 0x3604a9fc */
   2173 L_3604A9EF:
   2174     SET_LO8(eax, 1); /* 0x3604A9EF: mov al, 1 */
   2175     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604A9F1: fstp st(0) */
   2176     MEM8(0x36306682) = (uint8_t)(LO8(eax)); /* 0x3604A9F3: mov byte ptr [0x36306682], al */
   2177     esp = ebp; /* 0x3604A9F8: mov esp, ebp */
   2178     ebp = POP32_VAL(esp); /* 0x3604A9FA: pop ebp */
   2179     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604A9FB: ret  */
   2180 L_3604A9FC:
   2181     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170F04)); /* 0x3604A9FC: fcomp dword ptr [0x36170f04] */
   2182     fp_pop();
   2183     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604AA02: fnstsw ax */
   2184     /* test HI8(eax), 0x41u */ /* 0x3604AA04: test ah, 0x41 */
   2185     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2186     _cf = 0;
   2187     _flag_k = FK_NARROW(FK_TEST, 24);
   2188     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604AA16; /* 0x3604AA07: jne 0x3604aa16 */
   2189 L_3604AA09:
   2190     MEM8(0x36306682) = (uint8_t)(0); /* 0x3604AA09: mov byte ptr [0x36306682], 0 */
   2191     SET_LO8(eax, 1); /* 0x3604AA10: mov al, 1 */
   2192     esp = ebp; /* 0x3604AA12: mov esp, ebp */
   2193     ebp = POP32_VAL(esp); /* 0x3604AA14: pop ebp */
   2194     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AA15: ret  */
   2195 L_3604AA16:
   2196     SET_LO8(eax, MEM8(0x363066B8)); /* 0x3604AA16: mov al, byte ptr [0x363066b8] */
   2197     /* test LO8(eax), LO8(eax) */ /* 0x3604AA1B: test al, al */
   2198     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2199     _cf = 0;
   2200     _flag_k = FK_NARROW(FK_TEST, 24);
   2201     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AA25; /* 0x3604AA1D: je 0x3604aa25 */
   2202 L_3604AA1F:
   2203     SET_LO8(eax, 1); /* 0x3604AA1F: mov al, 1 */
   2204     esp = ebp; /* 0x3604AA21: mov esp, ebp */
   2205     ebp = POP32_VAL(esp); /* 0x3604AA23: pop ebp */
   2206     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AA24: ret  */
   2207 L_3604AA25:
   2208     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2209     SET_LO8(eax, 0); /* 0x3604AA25: xor al, al */
   2210     _cf = 0;
   2211     _flag_k = FK_NARROW(FK_TEST, 24);
   2212     esp = ebp; /* 0x3604AA27: mov esp, ebp */
   2213     ebp = POP32_VAL(esp); /* 0x3604AA29: pop ebp */
   2214     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AA2A: ret  */
   2215     RECOMP_REGS_OUT();
   2216 }
   2217 
   2218 void sub_3604AA30(void) {
   2219     int _fpu_cmp = 0;
   2220     uint32_t _cf = 0;
   2221     int _df = 1;
   2222     uint32_t _flag_k = FK_NONE;
   2223     uint32_t _flag_a = 0, _flag_b = 0;
   2224     uint32_t _itail_tgt = 0;
   2225     RECOMP_REGS_LOCALS
   2226     RECOMP_ENTER(0x3604AA30u);
   2227 
   2228 L_3604AA30:
   2229     ecx = 0x363066C0u; /* 0x3604AA30: mov ecx, 0x363066c0 */
   2230     RECOMP_ICALL(MEM32(0x3616FB7C)); /* 0x3604AA35: call dword ptr [0x3616fb7c] */
   2231     RECOMP_FLAGS_IN();
   2232     SET_LO8(eax, 1); /* 0x3604AA3B: mov al, 1 */
   2233     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AA3D: ret  */
   2234     RECOMP_REGS_OUT();
   2235 }
   2236 
   2237 void sub_3604AA40(void) {
   2238     int _fpu_cmp = 0;
   2239     uint32_t _cf = 0;
   2240     int _df = 1;
   2241     uint32_t _flag_k = FK_NONE;
   2242     uint32_t _flag_a = 0, _flag_b = 0;
   2243     uint32_t _itail_tgt = 0;
   2244     RECOMP_REGS_LOCALS
   2245     RECOMP_ENTER(0x3604AA40u);
   2246 
   2247 L_3604AA40:
   2248     RECOMP_ICALL(0x3604AA50u); /* 0x3604AA40: call 0x3604aa50 */ /* not lifted */
   2249     RECOMP_FLAGS_IN();
   2250     goto L_3604AA60; /* 0x3604AA45: jmp 0x3604aa60 */
   2251 L_3604AA60:
   2252     PUSH32(esp, 0x3604AA70u); /* 0x3604AA60: push 0x3604aa70 */
   2253     RECOMP_ICALL(0x3615FEB2u); /* 0x3604AA65: call 0x3615feb2 */ /* not lifted */
   2254     RECOMP_FLAGS_IN();
   2255     ecx = POP32_VAL(esp); /* 0x3604AA6A: pop ecx */
   2256     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AA6B: ret  */
   2257     RECOMP_REGS_OUT();
   2258 }
   2259 
   2260 void sub_3604AA50(void) {
   2261     int _fpu_cmp = 0;
   2262     uint32_t _cf = 0;
   2263     int _df = 1;
   2264     uint32_t _flag_k = FK_NONE;
   2265     uint32_t _flag_a = 0, _flag_b = 0;
   2266     uint32_t _itail_tgt = 0;
   2267     RECOMP_REGS_LOCALS
   2268     RECOMP_ENTER(0x3604AA50u);
   2269 
   2270 L_3604AA50:
   2271     ecx = 0x363066D5u; /* 0x3604AA50: mov ecx, 0x363066d5 */
   2272 L_3604AA55:
   2273     { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; }
   2274     { RECOMP_REGS_OUT(); return; } /* end of function */
   2275   _ljump:
   2276     switch (_itail_tgt) {
   2277       case 0x3604AA50u: goto L_3604AA50;
   2278       case 0x3604AA55u: goto L_3604AA55;
   2279       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2280     }
   2281     RECOMP_REGS_OUT();
   2282 }
   2283 
   2284 void sub_3604AA60(void) {
   2285     int _fpu_cmp = 0;
   2286     uint32_t _cf = 0;
   2287     int _df = 1;
   2288     uint32_t _flag_k = FK_NONE;
   2289     uint32_t _flag_a = 0, _flag_b = 0;
   2290     uint32_t _itail_tgt = 0;
   2291     RECOMP_REGS_LOCALS
   2292     RECOMP_ENTER(0x3604AA60u);
   2293 
   2294 L_3604AA60:
   2295     PUSH32(esp, 0x3604AA70u); /* 0x3604AA60: push 0x3604aa70 */
   2296     RECOMP_ICALL(0x3615FEB2u); /* 0x3604AA65: call 0x3615feb2 */ /* not lifted */
   2297     RECOMP_FLAGS_IN();
   2298     ecx = POP32_VAL(esp); /* 0x3604AA6A: pop ecx */
   2299     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AA6B: ret  */
   2300     RECOMP_REGS_OUT();
   2301 }
   2302 
   2303 void sub_3604AA70(void) {
   2304     int _fpu_cmp = 0;
   2305     uint32_t _cf = 0;
   2306     int _df = 1;
   2307     uint32_t _flag_k = FK_NONE;
   2308     uint32_t _flag_a = 0, _flag_b = 0;
   2309     uint32_t _itail_tgt = 0;
   2310     RECOMP_REGS_LOCALS
   2311     RECOMP_ENTER(0x3604AA70u);
   2312 
   2313 L_3604AA70:
   2314     ecx = 0x363066D5u; /* 0x3604AA70: mov ecx, 0x363066d5 */
   2315 L_3604AA75:
   2316     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
   2317     { RECOMP_REGS_OUT(); return; } /* end of function */
   2318   _ljump:
   2319     switch (_itail_tgt) {
   2320       case 0x3604AA70u: goto L_3604AA70;
   2321       case 0x3604AA75u: goto L_3604AA75;
   2322       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2323     }
   2324     RECOMP_REGS_OUT();
   2325 }
   2326 
   2327 void sub_3604AA80(void) {
   2328     int _fpu_cmp = 0;
   2329     uint32_t _cf = 0;
   2330     int _df = 1;
   2331     uint32_t _flag_k = FK_NONE;
   2332     uint32_t _flag_a = 0, _flag_b = 0;
   2333     uint32_t _itail_tgt = 0;
   2334     RECOMP_REGS_LOCALS
   2335     RECOMP_ENTER(0x3604AA80u);
   2336 
   2337 L_3604AA80:
   2338     RECOMP_ICALL(0x3604AA90u); /* 0x3604AA80: call 0x3604aa90 */ /* not lifted */
   2339     RECOMP_FLAGS_IN();
   2340     goto L_3604AAA0; /* 0x3604AA85: jmp 0x3604aaa0 */
   2341 L_3604AAA0:
   2342     PUSH32(esp, 0x3604AAB0u); /* 0x3604AAA0: push 0x3604aab0 */
   2343     RECOMP_ICALL(0x3615FEB2u); /* 0x3604AAA5: call 0x3615feb2 */ /* not lifted */
   2344     RECOMP_FLAGS_IN();
   2345     ecx = POP32_VAL(esp); /* 0x3604AAAA: pop ecx */
   2346     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AAAB: ret  */
   2347     RECOMP_REGS_OUT();
   2348 }
   2349 
   2350 void sub_3604AA90(void) {
   2351     int _fpu_cmp = 0;
   2352     uint32_t _cf = 0;
   2353     int _df = 1;
   2354     uint32_t _flag_k = FK_NONE;
   2355     uint32_t _flag_a = 0, _flag_b = 0;
   2356     uint32_t _itail_tgt = 0;
   2357     RECOMP_REGS_LOCALS
   2358     RECOMP_ENTER(0x3604AA90u);
   2359 
   2360 L_3604AA90:
   2361     ecx = 0x363066D4u; /* 0x3604AA90: mov ecx, 0x363066d4 */
   2362 L_3604AA95:
   2363     { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; }
   2364     { RECOMP_REGS_OUT(); return; } /* end of function */
   2365   _ljump:
   2366     switch (_itail_tgt) {
   2367       case 0x3604AA90u: goto L_3604AA90;
   2368       case 0x3604AA95u: goto L_3604AA95;
   2369       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2370     }
   2371     RECOMP_REGS_OUT();
   2372 }
   2373 
   2374 void sub_3604AAA0(void) {
   2375     int _fpu_cmp = 0;
   2376     uint32_t _cf = 0;
   2377     int _df = 1;
   2378     uint32_t _flag_k = FK_NONE;
   2379     uint32_t _flag_a = 0, _flag_b = 0;
   2380     uint32_t _itail_tgt = 0;
   2381     RECOMP_REGS_LOCALS
   2382     RECOMP_ENTER(0x3604AAA0u);
   2383 
   2384 L_3604AAA0:
   2385     PUSH32(esp, 0x3604AAB0u); /* 0x3604AAA0: push 0x3604aab0 */
   2386     RECOMP_ICALL(0x3615FEB2u); /* 0x3604AAA5: call 0x3615feb2 */ /* not lifted */
   2387     RECOMP_FLAGS_IN();
   2388     ecx = POP32_VAL(esp); /* 0x3604AAAA: pop ecx */
   2389     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AAAB: ret  */
   2390     RECOMP_REGS_OUT();
   2391 }
   2392 
   2393 void sub_3604AAB0(void) {
   2394     int _fpu_cmp = 0;
   2395     uint32_t _cf = 0;
   2396     int _df = 1;
   2397     uint32_t _flag_k = FK_NONE;
   2398     uint32_t _flag_a = 0, _flag_b = 0;
   2399     uint32_t _itail_tgt = 0;
   2400     RECOMP_REGS_LOCALS
   2401     RECOMP_ENTER(0x3604AAB0u);
   2402 
   2403 L_3604AAB0:
   2404     ecx = 0x363066D4u; /* 0x3604AAB0: mov ecx, 0x363066d4 */
   2405 L_3604AAB5:
   2406     { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; }
   2407     { RECOMP_REGS_OUT(); return; } /* end of function */
   2408   _ljump:
   2409     switch (_itail_tgt) {
   2410       case 0x3604AAB0u: goto L_3604AAB0;
   2411       case 0x3604AAB5u: goto L_3604AAB5;
   2412       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2413     }
   2414     RECOMP_REGS_OUT();
   2415 }
   2416 
   2417 void sub_3604AAC0(void) {
   2418     int _fpu_cmp = 0;
   2419     uint32_t _cf = 0;
   2420     int _df = 1;
   2421     uint32_t _flag_k = FK_NONE;
   2422     uint32_t _flag_a = 0, _flag_b = 0;
   2423     uint32_t _itail_tgt = 0;
   2424     RECOMP_REGS_LOCALS
   2425     RECOMP_ENTER(0x3604AAC0u);
   2426 
   2427 L_3604AAC0:
   2428     PUSH32(esp, ebp); /* 0x3604AAC0: push ebp */
   2429     ebp = esp; /* 0x3604AAC1: mov ebp, esp */
   2430     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604AAC3: push -1 */
   2431     PUSH32(esp, 0x36163FB7u); /* 0x3604AAC5: push 0x36163fb7 */
   2432     eax = MEM32(FS_BASE + (0)); /* 0x3604AACA: mov eax, dword ptr fs:[0] */
   2433     PUSH32(esp, eax); /* 0x3604AAD0: push eax */
   2434     MEM32(FS_BASE + (0)) = esp; /* 0x3604AAD1: mov dword ptr fs:[0], esp */
   2435     PUSH32(esp, ecx); /* 0x3604AAD8: push ecx */
   2436     eax = MEM32(ebp + 0xC); /* 0x3604AAD9: mov eax, dword ptr [ebp + 0xc] */
   2437     PUSH32(esp, esi); /* 0x3604AADC: push esi */
   2438     esi = ecx; /* 0x3604AADD: mov esi, ecx */
   2439     ecx = MEM32(ebp + 0x8); /* 0x3604AADF: mov ecx, dword ptr [ebp + 8] */
   2440     PUSH32(esp, eax); /* 0x3604AAE2: push eax */
   2441     PUSH32(esp, ecx); /* 0x3604AAE3: push ecx */
   2442     ecx = esi; /* 0x3604AAE4: mov ecx, esi */
   2443     MEM32(ebp + (-0x10)) = esi; /* 0x3604AAE6: mov dword ptr [ebp - 0x10], esi */
   2444     RECOMP_ICALL(0x360476E0u); /* 0x3604AAE9: call 0x360476e0 */ /* not lifted */
   2445     RECOMP_FLAGS_IN();
   2446     ecx = esi + 0x324; /* 0x3604AAEE: lea ecx, [esi + 0x324] */
   2447     MEM32(ebp + (-0x4)) = 0; /* 0x3604AAF4: mov dword ptr [ebp - 4], 0 */
   2448     RECOMP_ICALL(MEM32(0x3617029C)); /* 0x3604AAFB: call dword ptr [0x3617029c] */
   2449     RECOMP_FLAGS_IN();
   2450     ecx = esi + 0x350; /* 0x3604AB01: lea ecx, [esi + 0x350] */
   2451     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3604AB07: mov byte ptr [ebp - 4], 1 */
   2452     RECOMP_ICALL(MEM32(0x36170298)); /* 0x3604AB0B: call dword ptr [0x36170298] */
   2453     RECOMP_FLAGS_IN();
   2454     ecx = MEM32(ebp + (-0xC)); /* 0x3604AB11: mov ecx, dword ptr [ebp - 0xc] */
   2455     MEM32(esi) = 0x36170F30u; /* 0x3604AB14: mov dword ptr [esi], 0x36170f30 */
   2456     MEM32(esi + 0x20) = 0x36170F28u; /* 0x3604AB1A: mov dword ptr [esi + 0x20], 0x36170f28 */
   2457     MEM32(esi + 0x13C) = 0x36170F1Cu; /* 0x3604AB21: mov dword ptr [esi + 0x13c], 0x36170f1c */
   2458     eax = esi; /* 0x3604AB2B: mov eax, esi */
   2459     esi = POP32_VAL(esp); /* 0x3604AB2D: pop esi */
   2460     MEM32(FS_BASE + (0)) = ecx; /* 0x3604AB2E: mov dword ptr fs:[0], ecx */
   2461     esp = ebp; /* 0x3604AB35: mov esp, ebp */
   2462     ebp = POP32_VAL(esp); /* 0x3604AB37: pop ebp */
   2463     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604AB38: ret 8 */
   2464     RECOMP_REGS_OUT();
   2465 }
   2466 
   2467 void sub_3604AB40(void) {
   2468     int _fpu_cmp = 0;
   2469     uint32_t _cf = 0;
   2470     int _df = 1;
   2471     uint32_t _flag_k = FK_NONE;
   2472     uint32_t _flag_a = 0, _flag_b = 0;
   2473     uint32_t _itail_tgt = 0;
   2474     RECOMP_REGS_LOCALS
   2475     RECOMP_ENTER(0x3604AB40u);
   2476 
   2477 L_3604AB40:
   2478     PUSH32(esp, ebp); /* 0x3604AB40: push ebp */
   2479     ebp = esp; /* 0x3604AB41: mov ebp, esp */
   2480     PUSH32(esp, esi); /* 0x3604AB43: push esi */
   2481     esi = ecx; /* 0x3604AB44: mov esi, ecx */
   2482     RECOMP_ICALL(0x3604AB70u); /* 0x3604AB46: call 0x3604ab70 */ /* not lifted */
   2483     RECOMP_FLAGS_IN();
   2484     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604AB4B: test byte ptr [ebp + 8], 1 */
   2485     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2486     _cf = 0;
   2487     _flag_k = FK_NARROW(FK_TEST, 24);
   2488     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AB5A; /* 0x3604AB4F: je 0x3604ab5a */
   2489 L_3604AB51:
   2490     PUSH32(esp, esi); /* 0x3604AB51: push esi */
   2491     RECOMP_ICALL(0x3615FCC4u); /* 0x3604AB52: call 0x3615fcc4 */ /* not lifted */
   2492     RECOMP_FLAGS_IN();
   2493     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2494     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2495     esp = esp + 4; /* 0x3604AB57: add esp, 4 */
   2496     _flag_k = FK_ADD;
   2497 L_3604AB5A:
   2498     eax = esi; /* 0x3604AB5A: mov eax, esi */
   2499     esi = POP32_VAL(esp); /* 0x3604AB5C: pop esi */
   2500     ebp = POP32_VAL(esp); /* 0x3604AB5D: pop ebp */
   2501     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604AB5E: ret 4 */
   2502     RECOMP_REGS_OUT();
   2503 }
   2504 
   2505 void sub_3604AB70(void) {
   2506     int _fpu_cmp = 0;
   2507     uint32_t _cf = 0;
   2508     int _df = 1;
   2509     uint32_t _flag_k = FK_NONE;
   2510     uint32_t _flag_a = 0, _flag_b = 0;
   2511     uint32_t _itail_tgt = 0;
   2512     RECOMP_REGS_LOCALS
   2513     RECOMP_ENTER(0x3604AB70u);
   2514 
   2515 L_3604AB70:
   2516     PUSH32(esp, ebp); /* 0x3604AB70: push ebp */
   2517     ebp = esp; /* 0x3604AB71: mov ebp, esp */
   2518     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604AB73: push -1 */
   2519     PUSH32(esp, 0x36163FE7u); /* 0x3604AB75: push 0x36163fe7 */
   2520     eax = MEM32(FS_BASE + (0)); /* 0x3604AB7A: mov eax, dword ptr fs:[0] */
   2521     PUSH32(esp, eax); /* 0x3604AB80: push eax */
   2522     MEM32(FS_BASE + (0)) = esp; /* 0x3604AB81: mov dword ptr fs:[0], esp */
   2523     PUSH32(esp, ecx); /* 0x3604AB88: push ecx */
   2524     PUSH32(esp, esi); /* 0x3604AB89: push esi */
   2525     esi = ecx; /* 0x3604AB8A: mov esi, ecx */
   2526     MEM32(ebp + (-0x10)) = esi; /* 0x3604AB8C: mov dword ptr [ebp - 0x10], esi */
   2527     MEM32(esi) = 0x36170F30u; /* 0x3604AB8F: mov dword ptr [esi], 0x36170f30 */
   2528     MEM32(esi + 0x20) = 0x36170F28u; /* 0x3604AB95: mov dword ptr [esi + 0x20], 0x36170f28 */
   2529     MEM32(esi + 0x13C) = 0x36170F1Cu; /* 0x3604AB9C: mov dword ptr [esi + 0x13c], 0x36170f1c */
   2530     ecx = esi + 0x350; /* 0x3604ABA6: lea ecx, [esi + 0x350] */
   2531     MEM32(ebp + (-0x4)) = 1; /* 0x3604ABAC: mov dword ptr [ebp - 4], 1 */
   2532     RECOMP_ICALL(MEM32(0x361702A0)); /* 0x3604ABB3: call dword ptr [0x361702a0] */
   2533     RECOMP_FLAGS_IN();
   2534     ecx = esi + 0x324; /* 0x3604ABB9: lea ecx, [esi + 0x324] */
   2535     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3604ABBF: mov byte ptr [ebp - 4], 0 */
   2536     RECOMP_ICALL(MEM32(0x36170294)); /* 0x3604ABC3: call dword ptr [0x36170294] */
   2537     RECOMP_FLAGS_IN();
   2538     ecx = esi; /* 0x3604ABC9: mov ecx, esi */
   2539     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604ABCB: mov dword ptr [ebp - 4], 0xffffffff */
   2540     RECOMP_ICALL(0x36047910u); /* 0x3604ABD2: call 0x36047910 */ /* not lifted */
   2541     RECOMP_FLAGS_IN();
   2542     ecx = MEM32(ebp + (-0xC)); /* 0x3604ABD7: mov ecx, dword ptr [ebp - 0xc] */
   2543     esi = POP32_VAL(esp); /* 0x3604ABDA: pop esi */
   2544     MEM32(FS_BASE + (0)) = ecx; /* 0x3604ABDB: mov dword ptr fs:[0], ecx */
   2545     esp = ebp; /* 0x3604ABE2: mov esp, ebp */
   2546     ebp = POP32_VAL(esp); /* 0x3604ABE4: pop ebp */
   2547     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604ABE5: ret  */
   2548     RECOMP_REGS_OUT();
   2549 }
   2550 
   2551 void sub_3604ABF0(void) {
   2552     int _fpu_cmp = 0;
   2553     uint32_t _cf = 0;
   2554     int _df = 1;
   2555     uint32_t _flag_k = FK_NONE;
   2556     uint32_t _flag_a = 0, _flag_b = 0;
   2557     uint32_t _itail_tgt = 0;
   2558     RECOMP_REGS_LOCALS
   2559     RECOMP_ENTER(0x3604ABF0u);
   2560 
   2561 L_3604ABF0:
   2562     PUSH32(esp, ebp); /* 0x3604ABF0: push ebp */
   2563     ebp = esp; /* 0x3604ABF1: mov ebp, esp */
   2564     PUSH32(esp, ecx); /* 0x3604ABF3: push ecx */
   2565     PUSH32(esp, ebx); /* 0x3604ABF4: push ebx */
   2566     PUSH32(esp, esi); /* 0x3604ABF5: push esi */
   2567     esi = MEM32(ebp + 0x8); /* 0x3604ABF6: mov esi, dword ptr [ebp + 8] */
   2568     eax = MEM32(esi + 0x8); /* 0x3604ABF9: mov eax, dword ptr [esi + 8] */
   2569     /* test eax, eax */ /* 0x3604ABFC: test eax, eax */
   2570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2571     _cf = 0;
   2572     _flag_k = FK_TEST;
   2573     PUSH32(esp, edi); /* 0x3604ABFE: push edi */
   2574     edi = esi + 0x4; /* 0x3604ABFF: lea edi, [esi + 4] */
   2575     ebx = ecx; /* 0x3604AC02: mov ebx, ecx */
   2576     MEM32(ebp + (-0x4)) = ebx; /* 0x3604AC04: mov dword ptr [ebp - 4], ebx */
   2577     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AD6D; /* 0x3604AC07: je 0x3604ad6d */
   2578 L_3604AC0D:
   2579     ecx = MEM32(edi + 0x8); /* 0x3604AC0D: mov ecx, dword ptr [edi + 8] */
   2580     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2582     ecx = ecx - eax; /* 0x3604AC10: sub ecx, eax */
   2583     _flag_k = FK_CMP;
   2584     eax = 0x2AAAAAABu; /* 0x3604AC12: mov eax, 0x2aaaaaab */
   2585     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604AC17: imul ecx */
   2586       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2587       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2588     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604AC19: sar edx, 1 */
   2589     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2590     edx = (uint32_t)((int32_t)edx >> 1u);
   2591     eax = edx; /* 0x3604AC1B: mov eax, edx */
   2592     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604AC1D: shr eax, 0x1f */
   2593     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2594     eax = eax >> 31u; /* 0x3604AC1D: shr eax, 0x1f */
   2595     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2596     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2597     edx = edx + eax; /* 0x3604AC20: add edx, eax */
   2598     _flag_k = FK_ADD;
   2599     /* test edx, edx */ /* 0x3604AC22: test edx, edx */
   2600     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2601     _cf = 0;
   2602     _flag_k = FK_TEST;
   2603     if (TEST_LE(_flag_a, _flag_b)) goto L_3604AD6D; /* 0x3604AC24: jle 0x3604ad6d */
   2604 L_3604AC2A:
   2605     eax = ebx + 0x324; /* 0x3604AC2A: lea eax, [ebx + 0x324] */
   2606     /* cmp esi, eax */ /* 0x3604AC30: cmp esi, eax */
   2607     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2609     _flag_k = FK_CMP;
   2610     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604AD60; /* 0x3604AC32: je 0x3604ad60 */
   2611 L_3604AC38:
   2612     esi = eax + 0x4; /* 0x3604AC38: lea esi, [eax + 4] */
   2613     /* cmp esi, edi */ /* 0x3604AC3B: cmp esi, edi */
   2614     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2616     _flag_k = FK_CMP;
   2617     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604AD3C; /* 0x3604AC3D: je 0x3604ad3c */
   2618 L_3604AC43:
   2619     ecx = edi; /* 0x3604AC43: mov ecx, edi */
   2620     RECOMP_ICALL(0x3604B5D0u); /* 0x3604AC45: call 0x3604b5d0 */ /* not lifted */
   2621     RECOMP_FLAGS_IN();
   2622     ecx = esi; /* 0x3604AC4A: mov ecx, esi */
   2623     ebx = eax; /* 0x3604AC4C: mov ebx, eax */
   2624     RECOMP_ICALL(0x3604B5D0u); /* 0x3604AC4E: call 0x3604b5d0 */ /* not lifted */
   2625     RECOMP_FLAGS_IN();
   2626     /* cmp ebx, eax */ /* 0x3604AC53: cmp ebx, eax */
   2627     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   2628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2629     _flag_k = FK_CMP;
   2630     if (CMP_A(_flag_a, _flag_b)) goto L_3604AC8F; /* 0x3604AC55: ja 0x3604ac8f */
   2631 L_3604AC57:
   2632     edx = MEM32(esi + 0x4); /* 0x3604AC57: mov edx, dword ptr [esi + 4] */
   2633     eax = MEM32(edi + 0x8); /* 0x3604AC5A: mov eax, dword ptr [edi + 8] */
   2634     ecx = MEM32(edi + 0x4); /* 0x3604AC5D: mov ecx, dword ptr [edi + 4] */
   2635     PUSH32(esp, edx); /* 0x3604AC60: push edx */
   2636     PUSH32(esp, eax); /* 0x3604AC61: push eax */
   2637     PUSH32(esp, ecx); /* 0x3604AC62: push ecx */
   2638     RECOMP_ICALL(0x36141C40u); /* 0x3604AC63: call 0x36141c40 */ /* not lifted */
   2639     RECOMP_FLAGS_IN();
   2640     ecx = MEM32(esi + 0x8); /* 0x3604AC68: mov ecx, dword ptr [esi + 8] */
   2641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2643     esp = esp + 0xCu; /* 0x3604AC6B: add esp, 0xc */
   2644     _flag_k = FK_ADD;
   2645     PUSH32(esp, ecx); /* 0x3604AC6E: push ecx */
   2646     PUSH32(esp, eax); /* 0x3604AC6F: push eax */
   2647     ecx = esi; /* 0x3604AC70: mov ecx, esi */
   2648     RECOMP_ICALL(0x3610ED60u); /* 0x3604AC72: call 0x3610ed60 */ /* not lifted */
   2649     RECOMP_FLAGS_IN();
   2650     ecx = edi; /* 0x3604AC77: mov ecx, edi */
   2651     RECOMP_ICALL(0x3604B5D0u); /* 0x3604AC79: call 0x3604b5d0 */ /* not lifted */
   2652     RECOMP_FLAGS_IN();
   2653     edx = eax + eax * 2; /* 0x3604AC7E: lea edx, [eax + eax*2] */
   2654     eax = MEM32(esi + 0x4); /* 0x3604AC81: mov eax, dword ptr [esi + 4] */
   2655     ecx = eax + edx * 4; /* 0x3604AC84: lea ecx, [eax + edx*4] */
   2656     MEM32(esi + 0x8) = ecx; /* 0x3604AC87: mov dword ptr [esi + 8], ecx */
   2657     goto L_3604AD39; /* 0x3604AC8A: jmp 0x3604ad39 */
   2658 L_3604AC8F:
   2659     ecx = edi; /* 0x3604AC8F: mov ecx, edi */
   2660     RECOMP_ICALL(0x3604B5D0u); /* 0x3604AC91: call 0x3604b5d0 */ /* not lifted */
   2661     RECOMP_FLAGS_IN();
   2662     ecx = esi; /* 0x3604AC96: mov ecx, esi */
   2663     ebx = eax; /* 0x3604AC98: mov ebx, eax */
   2664     RECOMP_ICALL(0x3604B7F0u); /* 0x3604AC9A: call 0x3604b7f0 */ /* not lifted */
   2665     RECOMP_FLAGS_IN();
   2666     /* cmp ebx, eax */ /* 0x3604AC9F: cmp ebx, eax */
   2667     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   2668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2669     _flag_k = FK_CMP;
   2670     if (CMP_A(_flag_a, _flag_b)) goto L_3604ACE9; /* 0x3604ACA1: ja 0x3604ace9 */
   2671 L_3604ACA3:
   2672     ebx = MEM32(edi + 0x4); /* 0x3604ACA3: mov ebx, dword ptr [edi + 4] */
   2673     ecx = esi; /* 0x3604ACA6: mov ecx, esi */
   2674     RECOMP_ICALL(0x3604B5D0u); /* 0x3604ACA8: call 0x3604b5d0 */ /* not lifted */
   2675     RECOMP_FLAGS_IN();
   2676     ecx = MEM32(edi + 0x4); /* 0x3604ACAD: mov ecx, dword ptr [edi + 4] */
   2677     edx = eax + eax * 2; /* 0x3604ACB0: lea edx, [eax + eax*2] */
   2678     eax = MEM32(esi + 0x4); /* 0x3604ACB3: mov eax, dword ptr [esi + 4] */
   2679     PUSH32(esp, eax); /* 0x3604ACB6: push eax */
   2680     ebx = ebx + edx * 4; /* 0x3604ACB7: lea ebx, [ebx + edx*4] */
   2681     PUSH32(esp, ebx); /* 0x3604ACBA: push ebx */
   2682     PUSH32(esp, ecx); /* 0x3604ACBB: push ecx */
   2683     RECOMP_ICALL(0x36141C40u); /* 0x3604ACBC: call 0x36141c40 */ /* not lifted */
   2684     RECOMP_FLAGS_IN();
   2685     edx = MEM32(esi + 0x8); /* 0x3604ACC1: mov edx, dword ptr [esi + 8] */
   2686     eax = MEM32(edi + 0x8); /* 0x3604ACC4: mov eax, dword ptr [edi + 8] */
   2687     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2688     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2689     esp = esp + 0xCu; /* 0x3604ACC7: add esp, 0xc */
   2690     _flag_k = FK_ADD;
   2691     PUSH32(esp, edx); /* 0x3604ACCA: push edx */
   2692     PUSH32(esp, eax); /* 0x3604ACCB: push eax */
   2693     PUSH32(esp, ebx); /* 0x3604ACCC: push ebx */
   2694     ecx = esi; /* 0x3604ACCD: mov ecx, esi */
   2695     RECOMP_ICALL(0x3606C710u); /* 0x3604ACCF: call 0x3606c710 */ /* not lifted */
   2696     RECOMP_FLAGS_IN();
   2697     ecx = edi; /* 0x3604ACD4: mov ecx, edi */
   2698     RECOMP_ICALL(0x3604B5D0u); /* 0x3604ACD6: call 0x3604b5d0 */ /* not lifted */
   2699     RECOMP_FLAGS_IN();
   2700     edx = MEM32(esi + 0x4); /* 0x3604ACDB: mov edx, dword ptr [esi + 4] */
   2701     ecx = eax + eax * 2; /* 0x3604ACDE: lea ecx, [eax + eax*2] */
   2702     eax = edx + ecx * 4; /* 0x3604ACE1: lea eax, [edx + ecx*4] */
   2703     MEM32(esi + 0x8) = eax; /* 0x3604ACE4: mov dword ptr [esi + 8], eax */
   2704     goto L_3604AD39; /* 0x3604ACE7: jmp 0x3604ad39 */
   2705 L_3604ACE9:
   2706     ecx = MEM32(esi + 0x8); /* 0x3604ACE9: mov ecx, dword ptr [esi + 8] */
   2707     edx = MEM32(esi + 0x4); /* 0x3604ACEC: mov edx, dword ptr [esi + 4] */
   2708     PUSH32(esp, ecx); /* 0x3604ACEF: push ecx */
   2709     PUSH32(esp, edx); /* 0x3604ACF0: push edx */
   2710     ecx = esi; /* 0x3604ACF1: mov ecx, esi */
   2711     RECOMP_ICALL(0x3610ED60u); /* 0x3604ACF3: call 0x3610ed60 */ /* not lifted */
   2712     RECOMP_FLAGS_IN();
   2713     eax = MEM32(esi + 0x4); /* 0x3604ACF8: mov eax, dword ptr [esi + 4] */
   2714     PUSH32(esp, eax); /* 0x3604ACFB: push eax */
   2715     RECOMP_ICALL(0x3615FCC4u); /* 0x3604ACFC: call 0x3615fcc4 */ /* not lifted */
   2716     RECOMP_FLAGS_IN();
   2717     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2718     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2719     esp = esp + 4; /* 0x3604AD01: add esp, 4 */
   2720     _flag_k = FK_ADD;
   2721     ecx = edi; /* 0x3604AD04: mov ecx, edi */
   2722     RECOMP_ICALL(0x3604B5D0u); /* 0x3604AD06: call 0x3604b5d0 */ /* not lifted */
   2723     RECOMP_FLAGS_IN();
   2724     /* test eax, eax */ /* 0x3604AD0B: test eax, eax */
   2725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2726     _cf = 0;
   2727     _flag_k = FK_TEST;
   2728     if (TEST_NS(_flag_a, _flag_b)) goto L_3604AD11; /* 0x3604AD0D: jge 0x3604ad11 */
   2729 L_3604AD0F:
   2730     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2731     eax = 0; /* 0x3604AD0F: xor eax, eax */
   2732     _cf = 0;
   2733     _flag_k = FK_TEST;
   2734 L_3604AD11:
   2735     ecx = eax + eax * 2; /* 0x3604AD11: lea ecx, [eax + eax*2] */
   2736     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3604AD14: shl ecx, 2 */
   2737     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2738     ecx = ecx << 2u; /* 0x3604AD14: shl ecx, 2 */
   2739     PUSH32(esp, ecx); /* 0x3604AD17: push ecx */
   2740     RECOMP_ICALL(0x3615FD6Au); /* 0x3604AD18: call 0x3615fd6a */ /* not lifted */
   2741     RECOMP_FLAGS_IN();
   2742     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2744     esp = esp + 4; /* 0x3604AD1D: add esp, 4 */
   2745     _flag_k = FK_ADD;
   2746     MEM32(esi + 0x4) = eax; /* 0x3604AD20: mov dword ptr [esi + 4], eax */
   2747     ecx = MEM32(edi + 0x8); /* 0x3604AD23: mov ecx, dword ptr [edi + 8] */
   2748     edi = MEM32(edi + 0x4); /* 0x3604AD26: mov edi, dword ptr [edi + 4] */
   2749     PUSH32(esp, eax); /* 0x3604AD29: push eax */
   2750     PUSH32(esp, ecx); /* 0x3604AD2A: push ecx */
   2751     PUSH32(esp, edi); /* 0x3604AD2B: push edi */
   2752     ecx = esi; /* 0x3604AD2C: mov ecx, esi */
   2753     RECOMP_ICALL(0x3606C710u); /* 0x3604AD2E: call 0x3606c710 */ /* not lifted */
   2754     RECOMP_FLAGS_IN();
   2755     MEM32(esi + 0x8) = eax; /* 0x3604AD33: mov dword ptr [esi + 8], eax */
   2756     MEM32(esi + 0xC) = eax; /* 0x3604AD36: mov dword ptr [esi + 0xc], eax */
   2757 L_3604AD39:
   2758     ebx = MEM32(ebp + (-0x4)); /* 0x3604AD39: mov ebx, dword ptr [ebp - 4] */
   2759 L_3604AD3C:
   2760     esi = MEM32(ebp + 0x8); /* 0x3604AD3C: mov esi, dword ptr [ebp + 8] */
   2761     edx = esi + 0x14; /* 0x3604AD3F: lea edx, [esi + 0x14] */
   2762     PUSH32(esp, edx); /* 0x3604AD42: push edx */
   2763     ecx = ebx + 0x338; /* 0x3604AD43: lea ecx, [ebx + 0x338] */
   2764     RECOMP_ICALL(0x3604B5F0u); /* 0x3604AD49: call 0x3604b5f0 */ /* not lifted */
   2765     RECOMP_FLAGS_IN();
   2766     eax = MEM32(esi + 0x24); /* 0x3604AD4E: mov eax, dword ptr [esi + 0x24] */
   2767     MEM32(ebx + 0x348) = eax; /* 0x3604AD51: mov dword ptr [ebx + 0x348], eax */
   2768     ecx = MEM32(esi + 0x28); /* 0x3604AD57: mov ecx, dword ptr [esi + 0x28] */
   2769     MEM32(ebx + 0x34C) = ecx; /* 0x3604AD5A: mov dword ptr [ebx + 0x34c], ecx */
   2770 L_3604AD60:
   2771     ecx = ebx; /* 0x3604AD60: mov ecx, ebx */
   2772     RECOMP_ICALL(0x36047900u); /* 0x3604AD62: call 0x36047900 */ /* not lifted */
   2773     RECOMP_FLAGS_IN();
   2774     edx = MEM32(eax); /* 0x3604AD67: mov edx, dword ptr [eax] */
   2775     PUSH32(esp, 1); /* 0x3604AD69: push 1 */
   2776     goto L_3604AD78; /* 0x3604AD6B: jmp 0x3604ad78 */
   2777 L_3604AD6D:
   2778     ecx = ebx; /* 0x3604AD6D: mov ecx, ebx */
   2779     RECOMP_ICALL(0x36047900u); /* 0x3604AD6F: call 0x36047900 */ /* not lifted */
   2780     RECOMP_FLAGS_IN();
   2781     edx = MEM32(eax); /* 0x3604AD74: mov edx, dword ptr [eax] */
   2782     PUSH32(esp, 2); /* 0x3604AD76: push 2 */
   2783 L_3604AD78:
   2784     ecx = eax; /* 0x3604AD78: mov ecx, eax */
   2785     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3604AD7A: call dword ptr [edx + 0x18] */
   2786     RECOMP_FLAGS_IN();
   2787     fp_push(*(float*)&MEM32(ebx + 0x38)); /* 0x3604AD7D: fld dword ptr [ebx + 0x38] */
   2788     PUSH32(esp, 0x3F000000u); /* 0x3604AD80: push 0x3f000000 */
   2789     _st[0] *= (double)*(float*)ADDR(0x36170F14); /* 0x3604AD85: fmul dword ptr [0x36170f14] */
   2790     PUSH32(esp, ecx); /* 0x3604AD8B: push ecx */
   2791     eax = ebx + 0x324; /* 0x3604AD8C: lea eax, [ebx + 0x324] */
   2792     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604AD92: fstp dword ptr [esp] */
   2793     PUSH32(esp, eax); /* 0x3604AD95: push eax */
   2794     ecx = ebx + 0x350; /* 0x3604AD96: lea ecx, [ebx + 0x350] */
   2795     RECOMP_ICALL(MEM32(0x361702A4)); /* 0x3604AD9C: call dword ptr [0x361702a4] */
   2796     RECOMP_FLAGS_IN();
   2797     edi = POP32_VAL(esp); /* 0x3604ADA2: pop edi */
   2798     esi = POP32_VAL(esp); /* 0x3604ADA3: pop esi */
   2799     MEM32(ebx + 0x104) = 0; /* 0x3604ADA4: mov dword ptr [ebx + 0x104], 0 */
   2800     ebx = POP32_VAL(esp); /* 0x3604ADAE: pop ebx */
   2801     esp = ebp; /* 0x3604ADAF: mov esp, ebp */
   2802     ebp = POP32_VAL(esp); /* 0x3604ADB1: pop ebp */
   2803     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604ADB2: ret 4 */
   2804     RECOMP_REGS_OUT();
   2805 }
   2806 
   2807 void sub_3604AD39(void) {
   2808     int _fpu_cmp = 0;
   2809     uint32_t _cf = 0;
   2810     int _df = 1;
   2811     uint32_t _flag_k = FK_NONE;
   2812     uint32_t _flag_a = 0, _flag_b = 0;
   2813     uint32_t _itail_tgt = 0;
   2814     RECOMP_REGS_LOCALS
   2815     RECOMP_ENTER(0x3604AD39u);
   2816 
   2817 L_3604AD39:
   2818     ebx = MEM32(ebp + (-0x4)); /* 0x3604AD39: mov ebx, dword ptr [ebp - 4] */
   2819     esi = MEM32(ebp + 0x8); /* 0x3604AD3C: mov esi, dword ptr [ebp + 8] */
   2820     edx = esi + 0x14; /* 0x3604AD3F: lea edx, [esi + 0x14] */
   2821     PUSH32(esp, edx); /* 0x3604AD42: push edx */
   2822     ecx = ebx + 0x338; /* 0x3604AD43: lea ecx, [ebx + 0x338] */
   2823     RECOMP_ICALL(0x3604B5F0u); /* 0x3604AD49: call 0x3604b5f0 */ /* not lifted */
   2824     RECOMP_FLAGS_IN();
   2825     eax = MEM32(esi + 0x24); /* 0x3604AD4E: mov eax, dword ptr [esi + 0x24] */
   2826     MEM32(ebx + 0x348) = eax; /* 0x3604AD51: mov dword ptr [ebx + 0x348], eax */
   2827     ecx = MEM32(esi + 0x28); /* 0x3604AD57: mov ecx, dword ptr [esi + 0x28] */
   2828     MEM32(ebx + 0x34C) = ecx; /* 0x3604AD5A: mov dword ptr [ebx + 0x34c], ecx */
   2829     ecx = ebx; /* 0x3604AD60: mov ecx, ebx */
   2830     RECOMP_ICALL(0x36047900u); /* 0x3604AD62: call 0x36047900 */ /* not lifted */
   2831     RECOMP_FLAGS_IN();
   2832     edx = MEM32(eax); /* 0x3604AD67: mov edx, dword ptr [eax] */
   2833     PUSH32(esp, 1); /* 0x3604AD69: push 1 */
   2834     goto L_3604AD78; /* 0x3604AD6B: jmp 0x3604ad78 */
   2835 L_3604AD78:
   2836     ecx = eax; /* 0x3604AD78: mov ecx, eax */
   2837     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3604AD7A: call dword ptr [edx + 0x18] */
   2838     RECOMP_FLAGS_IN();
   2839     fp_push(*(float*)&MEM32(ebx + 0x38)); /* 0x3604AD7D: fld dword ptr [ebx + 0x38] */
   2840     PUSH32(esp, 0x3F000000u); /* 0x3604AD80: push 0x3f000000 */
   2841     _st[0] *= (double)*(float*)ADDR(0x36170F14); /* 0x3604AD85: fmul dword ptr [0x36170f14] */
   2842     PUSH32(esp, ecx); /* 0x3604AD8B: push ecx */
   2843     eax = ebx + 0x324; /* 0x3604AD8C: lea eax, [ebx + 0x324] */
   2844     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604AD92: fstp dword ptr [esp] */
   2845     PUSH32(esp, eax); /* 0x3604AD95: push eax */
   2846     ecx = ebx + 0x350; /* 0x3604AD96: lea ecx, [ebx + 0x350] */
   2847     RECOMP_ICALL(MEM32(0x361702A4)); /* 0x3604AD9C: call dword ptr [0x361702a4] */
   2848     RECOMP_FLAGS_IN();
   2849     edi = POP32_VAL(esp); /* 0x3604ADA2: pop edi */
   2850     esi = POP32_VAL(esp); /* 0x3604ADA3: pop esi */
   2851     MEM32(ebx + 0x104) = 0; /* 0x3604ADA4: mov dword ptr [ebx + 0x104], 0 */
   2852     ebx = POP32_VAL(esp); /* 0x3604ADAE: pop ebx */
   2853     esp = ebp; /* 0x3604ADAF: mov esp, ebp */
   2854     ebp = POP32_VAL(esp); /* 0x3604ADB1: pop ebp */
   2855     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604ADB2: ret 4 */
   2856     RECOMP_REGS_OUT();
   2857 }
   2858 
   2859 void sub_3604AD78(void) {
   2860     int _fpu_cmp = 0;
   2861     uint32_t _cf = 0;
   2862     int _df = 1;
   2863     uint32_t _flag_k = FK_NONE;
   2864     uint32_t _flag_a = 0, _flag_b = 0;
   2865     uint32_t _itail_tgt = 0;
   2866     RECOMP_REGS_LOCALS
   2867     RECOMP_ENTER(0x3604AD78u);
   2868 
   2869 L_3604AD78:
   2870     ecx = eax; /* 0x3604AD78: mov ecx, eax */
   2871     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3604AD7A: call dword ptr [edx + 0x18] */
   2872     RECOMP_FLAGS_IN();
   2873     fp_push(*(float*)&MEM32(ebx + 0x38)); /* 0x3604AD7D: fld dword ptr [ebx + 0x38] */
   2874     PUSH32(esp, 0x3F000000u); /* 0x3604AD80: push 0x3f000000 */
   2875     _st[0] *= (double)*(float*)ADDR(0x36170F14); /* 0x3604AD85: fmul dword ptr [0x36170f14] */
   2876     PUSH32(esp, ecx); /* 0x3604AD8B: push ecx */
   2877     eax = ebx + 0x324; /* 0x3604AD8C: lea eax, [ebx + 0x324] */
   2878     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604AD92: fstp dword ptr [esp] */
   2879     PUSH32(esp, eax); /* 0x3604AD95: push eax */
   2880     ecx = ebx + 0x350; /* 0x3604AD96: lea ecx, [ebx + 0x350] */
   2881     RECOMP_ICALL(MEM32(0x361702A4)); /* 0x3604AD9C: call dword ptr [0x361702a4] */
   2882     RECOMP_FLAGS_IN();
   2883     edi = POP32_VAL(esp); /* 0x3604ADA2: pop edi */
   2884     esi = POP32_VAL(esp); /* 0x3604ADA3: pop esi */
   2885     MEM32(ebx + 0x104) = 0; /* 0x3604ADA4: mov dword ptr [ebx + 0x104], 0 */
   2886     ebx = POP32_VAL(esp); /* 0x3604ADAE: pop ebx */
   2887     esp = ebp; /* 0x3604ADAF: mov esp, ebp */
   2888     ebp = POP32_VAL(esp); /* 0x3604ADB1: pop ebp */
   2889     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604ADB2: ret 4 */
   2890     RECOMP_REGS_OUT();
   2891 }
   2892 
   2893 void sub_3604ADC0(void) {
   2894     int _fpu_cmp = 0;
   2895     uint32_t _cf = 0;
   2896     int _df = 1;
   2897     uint32_t _flag_k = FK_NONE;
   2898     uint32_t _flag_a = 0, _flag_b = 0;
   2899     uint32_t _itail_tgt = 0;
   2900     RECOMP_REGS_LOCALS
   2901     RECOMP_ENTER(0x3604ADC0u);
   2902 
   2903 L_3604ADC0:
   2904     PUSH32(esp, esi); /* 0x3604ADC0: push esi */
   2905     esi = ecx; /* 0x3604ADC1: mov esi, ecx */
   2906     PUSH32(esp, edi); /* 0x3604ADC3: push edi */
   2907     edi = esi + 0x324; /* 0x3604ADC4: lea edi, [esi + 0x324] */
   2908     ecx = edi; /* 0x3604ADCA: mov ecx, edi */
   2909     RECOMP_ICALL(MEM32(0x361702A8)); /* 0x3604ADCC: call dword ptr [0x361702a8] */
   2910     RECOMP_FLAGS_IN();
   2911     fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x3604ADD2: fld dword ptr [esi + 0x38] */
   2912     PUSH32(esp, 0); /* 0x3604ADD5: push 0 */
   2913     _st[0] *= (double)*(float*)ADDR(0x36170F14); /* 0x3604ADD7: fmul dword ptr [0x36170f14] */
   2914     PUSH32(esp, ecx); /* 0x3604ADDD: push ecx */
   2915     ecx = esi + 0x350; /* 0x3604ADDE: lea ecx, [esi + 0x350] */
   2916     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604ADE4: fstp dword ptr [esp] */
   2917     PUSH32(esp, edi); /* 0x3604ADE7: push edi */
   2918     RECOMP_ICALL(MEM32(0x361702A4)); /* 0x3604ADE8: call dword ptr [0x361702a4] */
   2919     RECOMP_FLAGS_IN();
   2920     edi = POP32_VAL(esp); /* 0x3604ADEE: pop edi */
   2921     MEM32(esi + 0x104) = 0; /* 0x3604ADEF: mov dword ptr [esi + 0x104], 0 */
   2922     esi = POP32_VAL(esp); /* 0x3604ADF9: pop esi */
   2923     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604ADFA: ret  */
   2924     RECOMP_REGS_OUT();
   2925 }
   2926 
   2927 void sub_3604AE00(void) {
   2928     int _fpu_cmp = 0;
   2929     uint32_t _cf = 0;
   2930     int _df = 1;
   2931     uint32_t _flag_k = FK_NONE;
   2932     uint32_t _flag_a = 0, _flag_b = 0;
   2933     uint32_t _itail_tgt = 0;
   2934     RECOMP_REGS_LOCALS
   2935     RECOMP_ENTER(0x3604AE00u);
   2936 
   2937 L_3604AE00:
   2938     PUSH32(esp, ebp); /* 0x3604AE00: push ebp */
   2939     ebp = esp; /* 0x3604AE01: mov ebp, esp */
   2940     PUSH32(esp, esi); /* 0x3604AE03: push esi */
   2941     esi = ecx; /* 0x3604AE04: mov esi, ecx */
   2942     eax = MEM32(esi + 0x32C); /* 0x3604AE06: mov eax, dword ptr [esi + 0x32c] */
   2943     /* test eax, eax */ /* 0x3604AE0C: test eax, eax */
   2944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2945     _cf = 0;
   2946     _flag_k = FK_TEST;
   2947     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AE3F; /* 0x3604AE0E: je 0x3604ae3f */
   2948 L_3604AE10:
   2949     ecx = MEM32(esi + 0x330); /* 0x3604AE10: mov ecx, dword ptr [esi + 0x330] */
   2950     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2952     ecx = ecx - eax; /* 0x3604AE16: sub ecx, eax */
   2953     _flag_k = FK_CMP;
   2954     eax = 0x2AAAAAABu; /* 0x3604AE18: mov eax, 0x2aaaaaab */
   2955     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604AE1D: imul ecx */
   2956       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2957       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2958     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604AE1F: sar edx, 1 */
   2959     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2960     edx = (uint32_t)((int32_t)edx >> 1u);
   2961     eax = edx; /* 0x3604AE21: mov eax, edx */
   2962     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604AE23: shr eax, 0x1f */
   2963     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2964     eax = eax >> 31u; /* 0x3604AE23: shr eax, 0x1f */
   2965     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2966     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2967     edx = edx + eax; /* 0x3604AE26: add edx, eax */
   2968     _flag_k = FK_ADD;
   2969     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_3604AE3F; /* 0x3604AE28: je 0x3604ae3f */
   2970 L_3604AE2A:
   2971     ecx = MEM32(ebp + 0x8); /* 0x3604AE2A: mov ecx, dword ptr [ebp + 8] */
   2972     PUSH32(esp, ecx); /* 0x3604AE2D: push ecx */
   2973     ecx = esi + 0x350; /* 0x3604AE2E: lea ecx, [esi + 0x350] */
   2974     RECOMP_ICALL(MEM32(0x361702AC)); /* 0x3604AE34: call dword ptr [0x361702ac] */
   2975     RECOMP_FLAGS_IN();
   2976     esi = POP32_VAL(esp); /* 0x3604AE3A: pop esi */
   2977     ebp = POP32_VAL(esp); /* 0x3604AE3B: pop ebp */
   2978     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604AE3C: ret 4 */
   2979 L_3604AE3F:
   2980     ecx = esi; /* 0x3604AE3F: mov ecx, esi */
   2981     RECOMP_ICALL(0x36048250u); /* 0x3604AE41: call 0x36048250 */ /* not lifted */
   2982     RECOMP_FLAGS_IN();
   2983     /* test LO8(eax), LO8(eax) */ /* 0x3604AE46: test al, al */
   2984     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2985     _cf = 0;
   2986     _flag_k = FK_NARROW(FK_TEST, 24);
   2987     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604AE64; /* 0x3604AE48: jne 0x3604ae64 */
   2988 L_3604AE4A:
   2989     ecx = esi; /* 0x3604AE4A: mov ecx, esi */
   2990     RECOMP_ICALL(0x36047900u); /* 0x3604AE4C: call 0x36047900 */ /* not lifted */
   2991     RECOMP_FLAGS_IN();
   2992     ecx = eax; /* 0x3604AE51: mov ecx, eax */
   2993     RECOMP_ICALL(0x3609C020u); /* 0x3604AE53: call 0x3609c020 */ /* not lifted */
   2994     RECOMP_FLAGS_IN();
   2995     /* cmp eax, 3 */ /* 0x3604AE58: cmp eax, 3 */
   2996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2998     _flag_k = FK_CMP;
   2999     if (CMP_NE(_flag_a, _flag_b)) goto L_3604AE64; /* 0x3604AE5B: jne 0x3604ae64 */
   3000 L_3604AE5D:
   3001     ecx = esi; /* 0x3604AE5D: mov ecx, esi */
   3002     RECOMP_ICALL(0x360491D0u); /* 0x3604AE5F: call 0x360491d0 */ /* not lifted */
   3003     RECOMP_FLAGS_IN();
   3004 L_3604AE64:
   3005     esi = POP32_VAL(esp); /* 0x3604AE64: pop esi */
   3006     ebp = POP32_VAL(esp); /* 0x3604AE65: pop ebp */
   3007     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604AE66: ret 4 */
   3008     RECOMP_REGS_OUT();
   3009 }
   3010 
   3011 void sub_3604AE70(void) {
   3012     int _fpu_cmp = 0;
   3013     uint32_t _cf = 0;
   3014     int _df = 1;
   3015     uint32_t _flag_k = FK_NONE;
   3016     uint32_t _flag_a = 0, _flag_b = 0;
   3017     uint32_t _itail_tgt = 0;
   3018     RECOMP_REGS_LOCALS
   3019     RECOMP_ENTER(0x3604AE70u);
   3020 
   3021 L_3604AE70:
   3022     PUSH32(esp, ebp); /* 0x3604AE70: push ebp */
   3023     ebp = esp; /* 0x3604AE71: mov ebp, esp */
   3024     PUSH32(esp, ebx); /* 0x3604AE73: push ebx */
   3025     PUSH32(esp, esi); /* 0x3604AE74: push esi */
   3026     PUSH32(esp, edi); /* 0x3604AE75: push edi */
   3027     esi = ecx; /* 0x3604AE76: mov esi, ecx */
   3028     RECOMP_ICALL(0x3604ADC0u); /* 0x3604AE78: call 0x3604adc0 */ /* not lifted */
   3029     RECOMP_FLAGS_IN();
   3030     edi = MEM32(ebp + 0x8); /* 0x3604AE7D: mov edi, dword ptr [ebp + 8] */
   3031     ebx = esi + 0x324; /* 0x3604AE80: lea ebx, [esi + 0x324] */
   3032     PUSH32(esp, edi); /* 0x3604AE86: push edi */
   3033     ecx = ebx; /* 0x3604AE87: mov ecx, ebx */
   3034     RECOMP_ICALL(MEM32(0x361702B0)); /* 0x3604AE89: call dword ptr [0x361702b0] */
   3035     RECOMP_FLAGS_IN();
   3036     eax = MEM32(edi + 0x4); /* 0x3604AE8F: mov eax, dword ptr [edi + 4] */
   3037     /* test eax, eax */ /* 0x3604AE92: test eax, eax */
   3038     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3039     _cf = 0;
   3040     _flag_k = FK_TEST;
   3041     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AEBA; /* 0x3604AE94: je 0x3604aeba */
   3042 L_3604AE96:
   3043     ecx = MEM32(edi + 0x8); /* 0x3604AE96: mov ecx, dword ptr [edi + 8] */
   3044     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3046     ecx = ecx - eax; /* 0x3604AE99: sub ecx, eax */
   3047     _flag_k = FK_CMP;
   3048     eax = 0x2AAAAAABu; /* 0x3604AE9B: mov eax, 0x2aaaaaab */
   3049     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604AEA0: imul ecx */
   3050       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3051       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3052     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604AEA2: sar edx, 1 */
   3053     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3054     edx = (uint32_t)((int32_t)edx >> 1u);
   3055     eax = edx; /* 0x3604AEA4: mov eax, edx */
   3056     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604AEA6: shr eax, 0x1f */
   3057     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3058     eax = eax >> 31u; /* 0x3604AEA6: shr eax, 0x1f */
   3059     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3060     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3061     edx = edx + eax; /* 0x3604AEA9: add edx, eax */
   3062     _flag_k = FK_ADD;
   3063     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_3604AEBA; /* 0x3604AEAB: je 0x3604aeba */
   3064 L_3604AEAD:
   3065     ecx = esi; /* 0x3604AEAD: mov ecx, esi */
   3066     RECOMP_ICALL(0x36047900u); /* 0x3604AEAF: call 0x36047900 */ /* not lifted */
   3067     RECOMP_FLAGS_IN();
   3068     edx = MEM32(eax); /* 0x3604AEB4: mov edx, dword ptr [eax] */
   3069     PUSH32(esp, 1); /* 0x3604AEB6: push 1 */
   3070     goto L_3604AEC5; /* 0x3604AEB8: jmp 0x3604aec5 */
   3071 L_3604AEBA:
   3072     ecx = esi; /* 0x3604AEBA: mov ecx, esi */
   3073     RECOMP_ICALL(0x36047900u); /* 0x3604AEBC: call 0x36047900 */ /* not lifted */
   3074     RECOMP_FLAGS_IN();
   3075     edx = MEM32(eax); /* 0x3604AEC1: mov edx, dword ptr [eax] */
   3076     PUSH32(esp, 2); /* 0x3604AEC3: push 2 */
   3077 L_3604AEC5:
   3078     ecx = eax; /* 0x3604AEC5: mov ecx, eax */
   3079     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3604AEC7: call dword ptr [edx + 0x18] */
   3080     RECOMP_FLAGS_IN();
   3081     fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x3604AECA: fld dword ptr [esi + 0x38] */
   3082     PUSH32(esp, 0x3F000000u); /* 0x3604AECD: push 0x3f000000 */
   3083     _st[0] *= (double)*(float*)ADDR(0x36170F14); /* 0x3604AED2: fmul dword ptr [0x36170f14] */
   3084     PUSH32(esp, ecx); /* 0x3604AED8: push ecx */
   3085     ecx = esi + 0x350; /* 0x3604AED9: lea ecx, [esi + 0x350] */
   3086     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604AEDF: fstp dword ptr [esp] */
   3087     PUSH32(esp, ebx); /* 0x3604AEE2: push ebx */
   3088     RECOMP_ICALL(MEM32(0x361702A4)); /* 0x3604AEE3: call dword ptr [0x361702a4] */
   3089     RECOMP_FLAGS_IN();
   3090     edi = POP32_VAL(esp); /* 0x3604AEE9: pop edi */
   3091     esi = POP32_VAL(esp); /* 0x3604AEEA: pop esi */
   3092     ebx = POP32_VAL(esp); /* 0x3604AEEB: pop ebx */
   3093     ebp = POP32_VAL(esp); /* 0x3604AEEC: pop ebp */
   3094     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604AEED: ret 4 */
   3095     RECOMP_REGS_OUT();
   3096 }
   3097 
   3098 void sub_3604AEF0(void) {
   3099     int _fpu_cmp = 0;
   3100     uint32_t _cf = 0;
   3101     int _df = 1;
   3102     uint32_t _flag_k = FK_NONE;
   3103     uint32_t _flag_a = 0, _flag_b = 0;
   3104     uint32_t _itail_tgt = 0;
   3105     RECOMP_REGS_LOCALS
   3106     RECOMP_ENTER(0x3604AEF0u);
   3107 
   3108 L_3604AEF0:
   3109     PUSH32(esp, esi); /* 0x3604AEF0: push esi */
   3110     esi = ecx; /* 0x3604AEF1: mov esi, ecx */
   3111     eax = MEM32(esi + 0x32C); /* 0x3604AEF3: mov eax, dword ptr [esi + 0x32c] */
   3112     /* test eax, eax */ /* 0x3604AEF9: test eax, eax */
   3113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3114     _cf = 0;
   3115     _flag_k = FK_TEST;
   3116     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AF17; /* 0x3604AEFB: je 0x3604af17 */
   3117 L_3604AEFD:
   3118     ecx = MEM32(esi + 0x330); /* 0x3604AEFD: mov ecx, dword ptr [esi + 0x330] */
   3119     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3120     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3121     ecx = ecx - eax; /* 0x3604AF03: sub ecx, eax */
   3122     _flag_k = FK_CMP;
   3123     eax = 0x2AAAAAABu; /* 0x3604AF05: mov eax, 0x2aaaaaab */
   3124     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604AF0A: imul ecx */
   3125       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3126       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3127     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604AF0C: sar edx, 1 */
   3128     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3129     edx = (uint32_t)((int32_t)edx >> 1u);
   3130     eax = edx; /* 0x3604AF0E: mov eax, edx */
   3131     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604AF10: shr eax, 0x1f */
   3132     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3133     eax = eax >> 31u; /* 0x3604AF10: shr eax, 0x1f */
   3134     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3135     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3136     edx = edx + eax; /* 0x3604AF13: add edx, eax */
   3137     _flag_k = FK_ADD;
   3138     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NE)) goto L_3604AF40; /* 0x3604AF15: jne 0x3604af40 */
   3139 L_3604AF17:
   3140     ecx = esi; /* 0x3604AF17: mov ecx, esi */
   3141     RECOMP_ICALL(0x36048250u); /* 0x3604AF19: call 0x36048250 */ /* not lifted */
   3142     RECOMP_FLAGS_IN();
   3143     /* test LO8(eax), LO8(eax) */ /* 0x3604AF1E: test al, al */
   3144     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3145     _cf = 0;
   3146     _flag_k = FK_NARROW(FK_TEST, 24);
   3147     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604AF40; /* 0x3604AF20: jne 0x3604af40 */
   3148 L_3604AF22:
   3149     ecx = esi; /* 0x3604AF22: mov ecx, esi */
   3150     RECOMP_ICALL(0x36047900u); /* 0x3604AF24: call 0x36047900 */ /* not lifted */
   3151     RECOMP_FLAGS_IN();
   3152     ecx = eax; /* 0x3604AF29: mov ecx, eax */
   3153     RECOMP_ICALL(0x3609C020u); /* 0x3604AF2B: call 0x3609c020 */ /* not lifted */
   3154     RECOMP_FLAGS_IN();
   3155     /* cmp eax, 3 */ /* 0x3604AF30: cmp eax, 3 */
   3156     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   3157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3158     _flag_k = FK_CMP;
   3159     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604AF40; /* 0x3604AF33: je 0x3604af40 */
   3160 L_3604AF35:
   3161     SET_LO8(eax, MEM8(esi + 0x4E)); /* 0x3604AF35: mov al, byte ptr [esi + 0x4e] */
   3162     /* test LO8(eax), LO8(eax) */ /* 0x3604AF38: test al, al */
   3163     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3164     _cf = 0;
   3165     _flag_k = FK_NARROW(FK_TEST, 24);
   3166     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604AF40; /* 0x3604AF3A: jne 0x3604af40 */
   3167 L_3604AF3C:
   3168     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3169     SET_LO8(eax, 0); /* 0x3604AF3C: xor al, al */
   3170     _cf = 0;
   3171     _flag_k = FK_NARROW(FK_TEST, 24);
   3172     esi = POP32_VAL(esp); /* 0x3604AF3E: pop esi */
   3173     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AF3F: ret  */
   3174 L_3604AF40:
   3175     SET_LO8(eax, 1); /* 0x3604AF40: mov al, 1 */
   3176     esi = POP32_VAL(esp); /* 0x3604AF42: pop esi */
   3177     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604AF43: ret  */
   3178     RECOMP_REGS_OUT();
   3179 }
   3180 
   3181 void sub_3604AF50(void) {
   3182     int _fpu_cmp = 0;
   3183     uint32_t _cf = 0;
   3184     int _df = 1;
   3185     uint32_t _flag_k = FK_NONE;
   3186     uint32_t _flag_a = 0, _flag_b = 0;
   3187     uint32_t _itail_tgt = 0;
   3188     RECOMP_REGS_LOCALS
   3189     RECOMP_ENTER(0x3604AF50u);
   3190 
   3191 L_3604AF50:
   3192     PUSH32(esp, ebp); /* 0x3604AF50: push ebp */
   3193     ebp = esp; /* 0x3604AF51: mov ebp, esp */
   3194     PUSH32(esp, esi); /* 0x3604AF53: push esi */
   3195     PUSH32(esp, edi); /* 0x3604AF54: push edi */
   3196     esi = ecx; /* 0x3604AF55: mov esi, ecx */
   3197     RECOMP_ICALL(0x36047900u); /* 0x3604AF57: call 0x36047900 */ /* not lifted */
   3198     RECOMP_FLAGS_IN();
   3199     ecx = eax; /* 0x3604AF5C: mov ecx, eax */
   3200     RECOMP_ICALL(0x36008320u); /* 0x3604AF5E: call 0x36008320 */ /* not lifted */
   3201     RECOMP_FLAGS_IN();
   3202     /* cmp eax, 1 */ /* 0x3604AF63: cmp eax, 1 */
   3203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3204     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3205     _flag_k = FK_CMP;
   3206     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604B058; /* 0x3604AF66: je 0x3604b058 */
   3207 L_3604AF6C:
   3208     ecx = esi; /* 0x3604AF6C: mov ecx, esi */
   3209     RECOMP_ICALL(0x36048250u); /* 0x3604AF6E: call 0x36048250 */ /* not lifted */
   3210     RECOMP_FLAGS_IN();
   3211     /* test LO8(eax), LO8(eax) */ /* 0x3604AF73: test al, al */
   3212     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3213     _cf = 0;
   3214     _flag_k = FK_NARROW(FK_TEST, 24);
   3215     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AF93; /* 0x3604AF75: je 0x3604af93 */
   3216 L_3604AF77:
   3217     ecx = MEM32(ebp + 0x8); /* 0x3604AF77: mov ecx, dword ptr [ebp + 8] */
   3218     PUSH32(esp, ecx); /* 0x3604AF7A: push ecx */
   3219     PUSH32(esp, 0); /* 0x3604AF7B: push 0 */
   3220     ecx = esi; /* 0x3604AF7D: mov ecx, esi */
   3221     RECOMP_ICALL(0x36048430u); /* 0x3604AF7F: call 0x36048430 */ /* not lifted */
   3222     RECOMP_FLAGS_IN();
   3223     PUSH32(esp, eax); /* 0x3604AF84: push eax */
   3224     ecx = esi; /* 0x3604AF85: mov ecx, esi */
   3225     RECOMP_ICALL(MEM32(0x36170350)); /* 0x3604AF87: call dword ptr [0x36170350] */
   3226     RECOMP_FLAGS_IN();
   3227     edi = POP32_VAL(esp); /* 0x3604AF8D: pop edi */
   3228     esi = POP32_VAL(esp); /* 0x3604AF8E: pop esi */
   3229     ebp = POP32_VAL(esp); /* 0x3604AF8F: pop ebp */
   3230     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604AF90: ret 4 */
   3231 L_3604AF93:
   3232     eax = MEM32(esi + 0x32C); /* 0x3604AF93: mov eax, dword ptr [esi + 0x32c] */
   3233     /* test eax, eax */ /* 0x3604AF99: test eax, eax */
   3234     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3235     _cf = 0;
   3236     _flag_k = FK_TEST;
   3237     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AFB7; /* 0x3604AF9B: je 0x3604afb7 */
   3238 L_3604AF9D:
   3239     ecx = MEM32(esi + 0x330); /* 0x3604AF9D: mov ecx, dword ptr [esi + 0x330] */
   3240     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3242     ecx = ecx - eax; /* 0x3604AFA3: sub ecx, eax */
   3243     _flag_k = FK_CMP;
   3244     eax = 0x2AAAAAABu; /* 0x3604AFA5: mov eax, 0x2aaaaaab */
   3245     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604AFAA: imul ecx */
   3246       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3247       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3248     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604AFAC: sar edx, 1 */
   3249     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3250     edx = (uint32_t)((int32_t)edx >> 1u);
   3251     eax = edx; /* 0x3604AFAE: mov eax, edx */
   3252     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604AFB0: shr eax, 0x1f */
   3253     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3254     eax = eax >> 31u; /* 0x3604AFB0: shr eax, 0x1f */
   3255     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3256     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3257     edx = edx + eax; /* 0x3604AFB3: add edx, eax */
   3258     _flag_k = FK_ADD;
   3259     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NE)) goto L_3604AFC9; /* 0x3604AFB5: jne 0x3604afc9 */
   3260 L_3604AFB7:
   3261     ecx = MEM32(ebp + 0x8); /* 0x3604AFB7: mov ecx, dword ptr [ebp + 8] */
   3262     PUSH32(esp, ecx); /* 0x3604AFBA: push ecx */
   3263     ecx = esi; /* 0x3604AFBB: mov ecx, esi */
   3264     RECOMP_ICALL(MEM32(0x361702B8)); /* 0x3604AFBD: call dword ptr [0x361702b8] */
   3265     RECOMP_FLAGS_IN();
   3266     edi = POP32_VAL(esp); /* 0x3604AFC3: pop edi */
   3267     esi = POP32_VAL(esp); /* 0x3604AFC4: pop esi */
   3268     ebp = POP32_VAL(esp); /* 0x3604AFC5: pop ebp */
   3269     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604AFC6: ret 4 */
   3270 L_3604AFC9:
   3271     eax = MEM32(esi + 0x32C); /* 0x3604AFC9: mov eax, dword ptr [esi + 0x32c] */
   3272     /* test eax, eax */ /* 0x3604AFCF: test eax, eax */
   3273     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3274     _cf = 0;
   3275     _flag_k = FK_TEST;
   3276     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B000; /* 0x3604AFD1: je 0x3604b000 */
   3277 L_3604AFD3:
   3278     ecx = MEM32(esi + 0x330); /* 0x3604AFD3: mov ecx, dword ptr [esi + 0x330] */
   3279     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3281     ecx = ecx - eax; /* 0x3604AFD9: sub ecx, eax */
   3282     _flag_k = FK_CMP;
   3283     eax = 0x2AAAAAABu; /* 0x3604AFDB: mov eax, 0x2aaaaaab */
   3284     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604AFE0: imul ecx */
   3285       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3286       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3287     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604AFE2: sar edx, 1 */
   3288     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3289     edx = (uint32_t)((int32_t)edx >> 1u);
   3290     eax = edx; /* 0x3604AFE4: mov eax, edx */
   3291     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604AFE6: shr eax, 0x1f */
   3292     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3293     eax = eax >> 31u; /* 0x3604AFE6: shr eax, 0x1f */
   3294     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3295     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3296     edx = edx + eax; /* 0x3604AFE9: add edx, eax */
   3297     _flag_k = FK_ADD;
   3298     /* cmp edx, 1 */ /* 0x3604AFEB: cmp edx, 1 */
   3299     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3301     _flag_k = FK_CMP;
   3302     if (CMP_LE(_flag_a, _flag_b)) goto L_3604B000; /* 0x3604AFEE: jle 0x3604b000 */
   3303 L_3604AFF0:
   3304     ecx = esi + 0x350; /* 0x3604AFF0: lea ecx, [esi + 0x350] */
   3305     RECOMP_ICALL(MEM32(0x361702B4)); /* 0x3604AFF6: call dword ptr [0x361702b4] */
   3306     RECOMP_FLAGS_IN();
   3307     ecx = eax; /* 0x3604AFFC: mov ecx, eax */
   3308     goto L_3604B02D; /* 0x3604AFFE: jmp 0x3604b02d */
   3309 L_3604B000:
   3310     eax = MEM32(esi + 0x32C); /* 0x3604B000: mov eax, dword ptr [esi + 0x32c] */
   3311     /* test eax, eax */ /* 0x3604B006: test eax, eax */
   3312     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3313     _cf = 0;
   3314     _flag_k = FK_TEST;
   3315     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B058; /* 0x3604B008: je 0x3604b058 */
   3316 L_3604B00A:
   3317     ecx = MEM32(esi + 0x330); /* 0x3604B00A: mov ecx, dword ptr [esi + 0x330] */
   3318     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3320     ecx = ecx - eax; /* 0x3604B010: sub ecx, eax */
   3321     _flag_k = FK_CMP;
   3322     eax = 0x2AAAAAABu; /* 0x3604B012: mov eax, 0x2aaaaaab */
   3323     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604B017: imul ecx */
   3324       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3325       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3326     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B019: sar edx, 1 */
   3327     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3328     edx = (uint32_t)((int32_t)edx >> 1u);
   3329     eax = edx; /* 0x3604B01B: mov eax, edx */
   3330     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604B01D: shr eax, 0x1f */
   3331     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3332     eax = eax >> 31u; /* 0x3604B01D: shr eax, 0x1f */
   3333     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3335     edx = edx + eax; /* 0x3604B020: add edx, eax */
   3336     _flag_k = FK_ADD;
   3337     /* cmp edx, 1 */ /* 0x3604B022: cmp edx, 1 */
   3338     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3340     _flag_k = FK_CMP;
   3341     if (CMP_NE(_flag_a, _flag_b)) goto L_3604B058; /* 0x3604B025: jne 0x3604b058 */
   3342 L_3604B027:
   3343     ecx = MEM32(esi + 0x32C); /* 0x3604B027: mov ecx, dword ptr [esi + 0x32c] */
   3344 L_3604B02D:
   3345     edi = MEM32(ecx); /* 0x3604B02D: mov edi, dword ptr [ecx] */
   3346     eax = MEM32(ebp + 0x8); /* 0x3604B02F: mov eax, dword ptr [ebp + 8] */
   3347     edx = eax; /* 0x3604B032: mov edx, eax */
   3348     MEM32(edx) = edi; /* 0x3604B034: mov dword ptr [edx], edi */
   3349     edi = MEM32(ecx + 0x4); /* 0x3604B036: mov edi, dword ptr [ecx + 4] */
   3350     MEM32(edx + 0x4) = edi; /* 0x3604B039: mov dword ptr [edx + 4], edi */
   3351     ecx = MEM32(ecx + 0x8); /* 0x3604B03C: mov ecx, dword ptr [ecx + 8] */
   3352     MEM32(edx + 0x8) = ecx; /* 0x3604B03F: mov dword ptr [edx + 8], ecx */
   3353     edx = MEM32(esi + 0x58); /* 0x3604B042: mov edx, dword ptr [esi + 0x58] */
   3354     PUSH32(esp, eax); /* 0x3604B045: push eax */
   3355     PUSH32(esp, eax); /* 0x3604B046: push eax */
   3356     ecx = esi; /* 0x3604B047: mov ecx, esi */
   3357     MEM32(eax + 0x4) = edx; /* 0x3604B049: mov dword ptr [eax + 4], edx */
   3358     RECOMP_ICALL(MEM32(0x36170350)); /* 0x3604B04C: call dword ptr [0x36170350] */
   3359     RECOMP_FLAGS_IN();
   3360     edi = POP32_VAL(esp); /* 0x3604B052: pop edi */
   3361     esi = POP32_VAL(esp); /* 0x3604B053: pop esi */
   3362     ebp = POP32_VAL(esp); /* 0x3604B054: pop ebp */
   3363     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B055: ret 4 */
   3364 L_3604B058:
   3365     eax = MEM32(ebp + 0x8); /* 0x3604B058: mov eax, dword ptr [ebp + 8] */
   3366     PUSH32(esp, eax); /* 0x3604B05B: push eax */
   3367     ecx = esi; /* 0x3604B05C: mov ecx, esi */
   3368     RECOMP_ICALL(MEM32(0x361702B8)); /* 0x3604B05E: call dword ptr [0x361702b8] */
   3369     RECOMP_FLAGS_IN();
   3370     edi = POP32_VAL(esp); /* 0x3604B064: pop edi */
   3371     esi = POP32_VAL(esp); /* 0x3604B065: pop esi */
   3372     ebp = POP32_VAL(esp); /* 0x3604B066: pop ebp */
   3373     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B067: ret 4 */
   3374     RECOMP_REGS_OUT();
   3375 }
   3376 
   3377 void sub_3604B070(void) {
   3378     int _fpu_cmp = 0;
   3379     uint32_t _cf = 0;
   3380     int _df = 1;
   3381     uint32_t _flag_k = FK_NONE;
   3382     uint32_t _flag_a = 0, _flag_b = 0;
   3383     uint32_t _itail_tgt = 0;
   3384     RECOMP_REGS_LOCALS
   3385     RECOMP_ENTER(0x3604B070u);
   3386 
   3387 L_3604B070:
   3388     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3389     eax = 0; /* 0x3604B070: xor eax, eax */
   3390     _cf = 0;
   3391     _flag_k = FK_TEST;
   3392     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B072: ret 4 */
   3393     RECOMP_REGS_OUT();
   3394 }
   3395 
   3396 void sub_3604B080(void) {
   3397     int _fpu_cmp = 0;
   3398     uint32_t _cf = 0;
   3399     int _df = 1;
   3400     uint32_t _flag_k = FK_NONE;
   3401     uint32_t _flag_a = 0, _flag_b = 0;
   3402     uint32_t _itail_tgt = 0;
   3403     RECOMP_REGS_LOCALS
   3404     RECOMP_ENTER(0x3604B080u);
   3405 
   3406 L_3604B080:
   3407     eax = MEM32(ecx + 0x32C); /* 0x3604B080: mov eax, dword ptr [ecx + 0x32c] */
   3408 L_3604B086:
   3409     /* test eax, eax */ /* 0x3604B086: test eax, eax */
   3410     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3411     _cf = 0;
   3412     _flag_k = FK_TEST;
   3413 L_3604B088:
   3414     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604B0AE; /* 0x3604B088: je 0x3604b0ae */
   3415 L_3604B08A:
   3416     edx = MEM32(ecx + 0x330); /* 0x3604B08A: mov edx, dword ptr [ecx + 0x330] */
   3417 L_3604B090:
   3418     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3419     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3420     edx = edx - eax; /* 0x3604B090: sub edx, eax */
   3421     _flag_k = FK_CMP;
   3422 L_3604B092:
   3423     eax = 0x2AAAAAABu; /* 0x3604B092: mov eax, 0x2aaaaaab */
   3424 L_3604B097:
   3425     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3604B097: imul edx */
   3426       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3427       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3428 L_3604B099:
   3429     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B099: sar edx, 1 */
   3430     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3431     edx = (uint32_t)((int32_t)edx >> 1u);
   3432 L_3604B09B:
   3433     eax = edx; /* 0x3604B09B: mov eax, edx */
   3434 L_3604B09D:
   3435     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604B09D: shr eax, 0x1f */
   3436     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3437     eax = eax >> 31u; /* 0x3604B09D: shr eax, 0x1f */
   3438 L_3604B0A0:
   3439     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3440     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3441     edx = edx + eax; /* 0x3604B0A0: add edx, eax */
   3442     _flag_k = FK_ADD;
   3443 L_3604B0A2:
   3444     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604B0AE; /* 0x3604B0A2: je 0x3604b0ae */
   3445 L_3604B0A4:
   3446     eax = MEM32(ecx + 0x330); /* 0x3604B0A4: mov eax, dword ptr [ecx + 0x330] */
   3447 L_3604B0AA:
   3448     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3450     eax = eax - 0xCu; /* 0x3604B0AA: sub eax, 0xc */
   3451     _flag_k = FK_CMP;
   3452 L_3604B0AD:
   3453     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B0AD: ret  */
   3454 L_3604B0AE:
   3455     { _itail_tgt = (uint32_t)(MEM32(0x3617028C)); goto _ljump; }
   3456     { RECOMP_REGS_OUT(); return; } /* end of function */
   3457   _ljump:
   3458     switch (_itail_tgt) {
   3459       case 0x3604B080u: goto L_3604B080;
   3460       case 0x3604B086u: goto L_3604B086;
   3461       case 0x3604B088u: goto L_3604B088;
   3462       case 0x3604B08Au: goto L_3604B08A;
   3463       case 0x3604B090u: goto L_3604B090;
   3464       case 0x3604B092u: goto L_3604B092;
   3465       case 0x3604B097u: goto L_3604B097;
   3466       case 0x3604B099u: goto L_3604B099;
   3467       case 0x3604B09Bu: goto L_3604B09B;
   3468       case 0x3604B09Du: goto L_3604B09D;
   3469       case 0x3604B0A0u: goto L_3604B0A0;
   3470       case 0x3604B0A2u: goto L_3604B0A2;
   3471       case 0x3604B0A4u: goto L_3604B0A4;
   3472       case 0x3604B0AAu: goto L_3604B0AA;
   3473       case 0x3604B0ADu: goto L_3604B0AD;
   3474       case 0x3604B0AEu: goto L_3604B0AE;
   3475       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3476     }
   3477     RECOMP_REGS_OUT();
   3478 }
   3479 
   3480 void sub_3604B0C0(void) {
   3481     int _fpu_cmp = 0;
   3482     uint32_t _cf = 0;
   3483     int _df = 1;
   3484     uint32_t _flag_k = FK_NONE;
   3485     uint32_t _flag_a = 0, _flag_b = 0;
   3486     uint32_t _itail_tgt = 0;
   3487     RECOMP_REGS_LOCALS
   3488     RECOMP_ENTER(0x3604B0C0u);
   3489 
   3490 L_3604B0C0:
   3491     PUSH32(esp, ebp); /* 0x3604B0C0: push ebp */
   3492     ebp = esp; /* 0x3604B0C1: mov ebp, esp */
   3493     SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x3604B0C3: mov al, byte ptr [ebp + 8] */
   3494     /* test LO8(eax), LO8(eax) */ /* 0x3604B0C6: test al, al */
   3495     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3496     _cf = 0;
   3497     _flag_k = FK_NARROW(FK_TEST, 24);
   3498     PUSH32(esp, esi); /* 0x3604B0C8: push esi */
   3499     esi = ecx; /* 0x3604B0C9: mov esi, ecx */
   3500     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B0DE; /* 0x3604B0CB: je 0x3604b0de */
   3501 L_3604B0CD:
   3502     RECOMP_ICALL(0x360491D0u); /* 0x3604B0CD: call 0x360491d0 */ /* not lifted */
   3503     RECOMP_FLAGS_IN();
   3504     ecx = esi; /* 0x3604B0D2: mov ecx, esi */
   3505     RECOMP_ICALL(0x3604ADC0u); /* 0x3604B0D4: call 0x3604adc0 */ /* not lifted */
   3506     RECOMP_FLAGS_IN();
   3507     esi = POP32_VAL(esp); /* 0x3604B0D9: pop esi */
   3508     ebp = POP32_VAL(esp); /* 0x3604B0DA: pop ebp */
   3509     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B0DB: ret 4 */
   3510 L_3604B0DE:
   3511     eax = MEM32(esi + 0x3C); /* 0x3604B0DE: mov eax, dword ptr [esi + 0x3c] */
   3512     edx = MEM32(esi); /* 0x3604B0E1: mov edx, dword ptr [esi] */
   3513     ecx = esi; /* 0x3604B0E3: mov ecx, esi */
   3514     MEM32(ebp + 0x8) = eax; /* 0x3604B0E5: mov dword ptr [ebp + 8], eax */
   3515     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3604B0E8: call dword ptr [edx + 0xc] */
   3516     RECOMP_FLAGS_IN();
   3517     PUSH32(esp, eax); /* 0x3604B0EB: push eax */
   3518     eax = MEM32(ebp + 0x8); /* 0x3604B0EC: mov eax, dword ptr [ebp + 8] */
   3519     PUSH32(esp, eax); /* 0x3604B0EF: push eax */
   3520     ecx = esi; /* 0x3604B0F0: mov ecx, esi */
   3521     RECOMP_ICALL(0x3604B100u); /* 0x3604B0F2: call 0x3604b100 */ /* not lifted */
   3522     RECOMP_FLAGS_IN();
   3523     esi = POP32_VAL(esp); /* 0x3604B0F7: pop esi */
   3524     ebp = POP32_VAL(esp); /* 0x3604B0F8: pop ebp */
   3525     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B0F9: ret 4 */
   3526     RECOMP_REGS_OUT();
   3527 }
   3528 
   3529 void sub_3604B100(void) {
   3530     int _fpu_cmp = 0;
   3531     uint32_t _cf = 0;
   3532     int _df = 1;
   3533     uint32_t _flag_k = FK_NONE;
   3534     uint32_t _flag_a = 0, _flag_b = 0;
   3535     uint32_t _itail_tgt = 0;
   3536     RECOMP_REGS_LOCALS
   3537     RECOMP_ENTER(0x3604B100u);
   3538 
   3539 L_3604B100:
   3540     PUSH32(esp, ebp); /* 0x3604B100: push ebp */
   3541     ebp = esp; /* 0x3604B101: mov ebp, esp */
   3542     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   3543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3544     esp = esp - 0x24u; /* 0x3604B103: sub esp, 0x24 */
   3545     _flag_k = FK_CMP;
   3546     PUSH32(esp, ebx); /* 0x3604B106: push ebx */
   3547     PUSH32(esp, esi); /* 0x3604B107: push esi */
   3548     esi = ecx; /* 0x3604B108: mov esi, ecx */
   3549     eax = MEM32(esi + 0x32C); /* 0x3604B10A: mov eax, dword ptr [esi + 0x32c] */
   3550     /* test eax, eax */ /* 0x3604B110: test eax, eax */
   3551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3552     _cf = 0;
   3553     _flag_k = FK_TEST;
   3554     PUSH32(esp, edi); /* 0x3604B112: push edi */
   3555     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B188; /* 0x3604B113: je 0x3604b188 */
   3556 L_3604B115:
   3557     ecx = MEM32(esi + 0x330); /* 0x3604B115: mov ecx, dword ptr [esi + 0x330] */
   3558     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3560     ecx = ecx - eax; /* 0x3604B11B: sub ecx, eax */
   3561     _flag_k = FK_CMP;
   3562     eax = 0x2AAAAAABu; /* 0x3604B11D: mov eax, 0x2aaaaaab */
   3563     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604B122: imul ecx */
   3564       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3565       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3566     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B124: sar edx, 1 */
   3567     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3568     edx = (uint32_t)((int32_t)edx >> 1u);
   3569     eax = edx; /* 0x3604B126: mov eax, edx */
   3570     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604B128: shr eax, 0x1f */
   3571     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3572     eax = eax >> 31u; /* 0x3604B128: shr eax, 0x1f */
   3573     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3574     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3575     edx = edx + eax; /* 0x3604B12B: add edx, eax */
   3576     _flag_k = FK_ADD;
   3577     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_3604B188; /* 0x3604B12D: je 0x3604b188 */
   3578 L_3604B12F:
   3579     ebx = MEM32(ebp + 0xC); /* 0x3604B12F: mov ebx, dword ptr [ebp + 0xc] */
   3580     eax = MEM32(esi + 0x330); /* 0x3604B132: mov eax, dword ptr [esi + 0x330] */
   3581     ecx = ebx; /* 0x3604B138: mov ecx, ebx */
   3582     edx = MEM32(ecx); /* 0x3604B13A: mov edx, dword ptr [ecx] */
   3583     MEM32(ebp + (-0x24)) = edx; /* 0x3604B13C: mov dword ptr [ebp - 0x24], edx */
   3584     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3604B13F: fld dword ptr [ebp - 0x24] */
   3585     edx = MEM32(ecx + 0x4); /* 0x3604B142: mov edx, dword ptr [ecx + 4] */
   3586     ecx = MEM32(ecx + 0x8); /* 0x3604B145: mov ecx, dword ptr [ecx + 8] */
   3587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3589     eax = eax - 0xCu; /* 0x3604B148: sub eax, 0xc */
   3590     _flag_k = FK_CMP;
   3591     MEM32(ebp + (-0x20)) = edx; /* 0x3604B14B: mov dword ptr [ebp - 0x20], edx */
   3592     MEM32(ebp + (-0x1C)) = ecx; /* 0x3604B14E: mov dword ptr [ebp - 0x1c], ecx */
   3593     _st[0] -= (double)*(float*)ADDR(eax); /* 0x3604B151: fsub dword ptr [eax] */
   3594     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3604B153: fld dword ptr [ebp - 0x20] */
   3595     _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3604B156: fsub dword ptr [eax + 4] */
   3596     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3604B159: fld dword ptr [ebp - 0x1c] */
   3597     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x3604B15C: fsub dword ptr [eax + 8] */
   3598     fp_push(_st[0]); /* 0x3604B15F: fld st(0) */
   3599     _st[0] *= _st[1]; /* 0x3604B161: fmul st(1) */
   3600     fp_push(_st[2]); /* 0x3604B163: fld st(2) */
   3601     _st[0] *= _st[3]; /* 0x3604B165: fmul st(3) */
   3602     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604B167: faddp st(1) */
   3603     fp_push(_st[3]); /* 0x3604B169: fld st(3) */
   3604     _st[0] *= _st[4]; /* 0x3604B16B: fmul st(4) */
   3605     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604B16D: faddp st(1) */
   3606     _st[0] = sqrt(_st[0]); /* 0x3604B16F: fsqrt  */
   3607     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3604B171: fstp st(3) */
   3608     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604B173: fstp st(0) */
   3609     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604B175: fstp st(0) */
   3610     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x3604B177: fcomp dword ptr [ebp + 8] */
   3611     fp_pop();
   3612     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604B17A: fnstsw ax */
   3613     /* test HI8(eax), 0x41u */ /* 0x3604B17C: test ah, 0x41 */
   3614     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3615     _cf = 0;
   3616     _flag_k = FK_NARROW(FK_TEST, 24);
   3617     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B1A3; /* 0x3604B17F: je 0x3604b1a3 */
   3618 L_3604B181:
   3619     ecx = esi; /* 0x3604B181: mov ecx, esi */
   3620     RECOMP_ICALL(0x3604ADC0u); /* 0x3604B183: call 0x3604adc0 */ /* not lifted */
   3621     RECOMP_FLAGS_IN();
   3622 L_3604B188:
   3623     ecx = esi; /* 0x3604B188: mov ecx, esi */
   3624     RECOMP_ICALL(0x36047900u); /* 0x3604B18A: call 0x36047900 */ /* not lifted */
   3625     RECOMP_FLAGS_IN();
   3626     edx = MEM32(eax); /* 0x3604B18F: mov edx, dword ptr [eax] */
   3627     PUSH32(esp, 2); /* 0x3604B191: push 2 */
   3628     ecx = eax; /* 0x3604B193: mov ecx, eax */
   3629     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3604B195: call dword ptr [edx + 0x18] */
   3630     RECOMP_FLAGS_IN();
   3631     edi = POP32_VAL(esp); /* 0x3604B198: pop edi */
   3632     esi = POP32_VAL(esp); /* 0x3604B199: pop esi */
   3633     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3634     SET_LO8(eax, 0); /* 0x3604B19A: xor al, al */
   3635     _cf = 0;
   3636     _flag_k = FK_NARROW(FK_TEST, 24);
   3637     ebx = POP32_VAL(esp); /* 0x3604B19C: pop ebx */
   3638     esp = ebp; /* 0x3604B19D: mov esp, ebp */
   3639     ebp = POP32_VAL(esp); /* 0x3604B19F: pop ebp */
   3640     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604B1A0: ret 8 */
   3641 L_3604B1A3:
   3642     eax = MEM32(esi + 0x32C); /* 0x3604B1A3: mov eax, dword ptr [esi + 0x32c] */
   3643     /* test eax, eax */ /* 0x3604B1A9: test eax, eax */
   3644     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3645     _cf = 0;
   3646     _flag_k = FK_TEST;
   3647     MEM32(ebp + (-0x24)) = 0; /* 0x3604B1AB: mov dword ptr [ebp - 0x24], 0 */
   3648     MEM32(ebp + (-0x20)) = 0; /* 0x3604B1B2: mov dword ptr [ebp - 0x20], 0 */
   3649     MEM32(ebp + (-0x1C)) = 0; /* 0x3604B1B9: mov dword ptr [ebp - 0x1c], 0 */
   3650     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B2D4; /* 0x3604B1C0: je 0x3604b2d4 */
   3651 L_3604B1C6:
   3652     ecx = MEM32(esi + 0x330); /* 0x3604B1C6: mov ecx, dword ptr [esi + 0x330] */
   3653     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3655     ecx = ecx - eax; /* 0x3604B1CC: sub ecx, eax */
   3656     _flag_k = FK_CMP;
   3657     eax = 0x2AAAAAABu; /* 0x3604B1CE: mov eax, 0x2aaaaaab */
   3658     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604B1D3: imul ecx */
   3659       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3660       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3661     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B1D5: sar edx, 1 */
   3662     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3663     edx = (uint32_t)((int32_t)edx >> 1u);
   3664     eax = edx; /* 0x3604B1D7: mov eax, edx */
   3665     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604B1D9: shr eax, 0x1f */
   3666     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3667     eax = eax >> 31u; /* 0x3604B1D9: shr eax, 0x1f */
   3668     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3669     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3670     edx = edx + eax; /* 0x3604B1DC: add edx, eax */
   3671     _flag_k = FK_ADD;
   3672     /* cmp edx, 1 */ /* 0x3604B1DE: cmp edx, 1 */
   3673     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3675     _flag_k = FK_CMP;
   3676     if (CMP_NE(_flag_a, _flag_b)) goto L_3604B2D4; /* 0x3604B1E1: jne 0x3604b2d4 */
   3677 L_3604B1E7:
   3678     ecx = esi; /* 0x3604B1E7: mov ecx, esi */
   3679     RECOMP_ICALL(0x3604B080u); /* 0x3604B1E9: call 0x3604b080 */ /* not lifted */
   3680     RECOMP_FLAGS_IN();
   3681     ecx = ebx; /* 0x3604B1EE: mov ecx, ebx */
   3682     edx = MEM32(ecx); /* 0x3604B1F0: mov edx, dword ptr [ecx] */
   3683     MEM32(ebp + (-0xC)) = edx; /* 0x3604B1F2: mov dword ptr [ebp - 0xc], edx */
   3684     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3604B1F5: fld dword ptr [ebp - 0xc] */
   3685     _st[0] -= (double)*(float*)ADDR(eax); /* 0x3604B1F8: fsub dword ptr [eax] */
   3686     edx = MEM32(ecx + 0x4); /* 0x3604B1FA: mov edx, dword ptr [ecx + 4] */
   3687     ecx = MEM32(ecx + 0x8); /* 0x3604B1FD: mov ecx, dword ptr [ecx + 8] */
   3688     MEM32(ebp + (-0x8)) = edx; /* 0x3604B200: mov dword ptr [ebp - 8], edx */
   3689     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3604B203: fstp dword ptr [ebp - 0xc] */
   3690     edx = MEM32(ebp + (-0xC)); /* 0x3604B206: mov edx, dword ptr [ebp - 0xc] */
   3691     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3604B209: fld dword ptr [ebp - 8] */
   3692     MEM32(ebp + (-0x4)) = ecx; /* 0x3604B20C: mov dword ptr [ebp - 4], ecx */
   3693     _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3604B20F: fsub dword ptr [eax + 4] */
   3694     MEM32(ebp + (-0x18)) = edx; /* 0x3604B212: mov dword ptr [ebp - 0x18], edx */
   3695     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3604B215: fstp dword ptr [ebp - 8] */
   3696     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3604B218: fld dword ptr [ebp - 4] */
   3697     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x3604B21B: fsub dword ptr [eax + 8] */
   3698     eax = MEM32(ebp + (-0x8)); /* 0x3604B21E: mov eax, dword ptr [ebp - 8] */
   3699     MEM32(ebp + (-0x14)) = eax; /* 0x3604B221: mov dword ptr [ebp - 0x14], eax */
   3700     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3604B224: fstp dword ptr [ebp - 4] */
   3701     ecx = MEM32(ebp + (-0x4)); /* 0x3604B227: mov ecx, dword ptr [ebp - 4] */
   3702     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3604B22A: fld dword ptr [ebp - 0xc] */
   3703     MEM32(ebp + (-0x10)) = ecx; /* 0x3604B22D: mov dword ptr [ebp - 0x10], ecx */
   3704     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604B230: fcomp dword ptr [0x3617040c] */
   3705     fp_pop();
   3706     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604B236: fnstsw ax */
   3707     /* test HI8(eax), 0x40u */ /* 0x3604B238: test ah, 0x40 */
   3708     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3709     _cf = 0;
   3710     _flag_k = FK_NARROW(FK_TEST, 24);
   3711     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B258; /* 0x3604B23B: je 0x3604b258 */
   3712 L_3604B23D:
   3713     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3604B23D: fld dword ptr [ebp - 4] */
   3714     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604B240: fcomp dword ptr [0x3617040c] */
   3715     fp_pop();
   3716     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604B246: fnstsw ax */
   3717     /* test HI8(eax), 0x40u */ /* 0x3604B248: test ah, 0x40 */
   3718     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3719     _cf = 0;
   3720     _flag_k = FK_NARROW(FK_TEST, 24);
   3721     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B258; /* 0x3604B24B: je 0x3604b258 */
   3722 L_3604B24D:
   3723     edi = POP32_VAL(esp); /* 0x3604B24D: pop edi */
   3724     esi = POP32_VAL(esp); /* 0x3604B24E: pop esi */
   3725     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3726     SET_LO8(eax, 0); /* 0x3604B24F: xor al, al */
   3727     _cf = 0;
   3728     _flag_k = FK_NARROW(FK_TEST, 24);
   3729     ebx = POP32_VAL(esp); /* 0x3604B251: pop ebx */
   3730     esp = ebp; /* 0x3604B252: mov esp, ebp */
   3731     ebp = POP32_VAL(esp); /* 0x3604B254: pop ebp */
   3732     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604B255: ret 8 */
   3733 L_3604B258:
   3734     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3604B258: fld dword ptr [ebp - 4] */
   3735     MEM32(ebp + (-0x14)) = 0; /* 0x3604B25B: mov dword ptr [ebp - 0x14], 0 */
   3736     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3604B262: fmul dword ptr [ebp - 4] */
   3737     edx = ebx; /* 0x3604B265: mov edx, ebx */
   3738     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3604B267: fld dword ptr [ebp - 0xc] */
   3739     eax = MEM32(edx); /* 0x3604B26A: mov eax, dword ptr [edx] */
   3740     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3604B26C: fmul dword ptr [ebp - 0xc] */
   3741     ecx = MEM32(edx + 0x4); /* 0x3604B26F: mov ecx, dword ptr [edx + 4] */
   3742     edx = MEM32(edx + 0x8); /* 0x3604B272: mov edx, dword ptr [edx + 8] */
   3743     MEM32(ebp + (-0x8)) = ecx; /* 0x3604B275: mov dword ptr [ebp - 8], ecx */
   3744     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604B278: faddp st(1) */
   3745     MEM32(ebp + (-0x4)) = edx; /* 0x3604B27A: mov dword ptr [ebp - 4], edx */
   3746     _st[0] = sqrt(_st[0]); /* 0x3604B27D: fsqrt  */
   3747     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x3604B27F: fdivr dword ptr [0x36170380] */
   3748     fp_push(_st[0]); /* 0x3604B285: fld st(0) */
   3749     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3604B287: fmul dword ptr [ebp - 0xc] */
   3750     MEM32(ebp + (-0xC)) = eax; /* 0x3604B28A: mov dword ptr [ebp - 0xc], eax */
   3751     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3604B28D: fstp dword ptr [ebp - 0x18] */
   3752     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3604B290: fmul dword ptr [ebp - 0x10] */
   3753     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3604B293: fld dword ptr [ebp - 0x18] */
   3754     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3604B296: fmul dword ptr [ebp + 8] */
   3755     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3604B299: fstp dword ptr [ebp - 0x18] */
   3756     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3604B29C: fld dword ptr [ebp - 0x14] */
   3757     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3604B29F: fmul dword ptr [ebp + 8] */
   3758     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3604B2A2: fstp dword ptr [ebp - 0x14] */
   3759     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3604B2A5: fmul dword ptr [ebp + 8] */
   3760     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3604B2A8: fld dword ptr [ebp - 0xc] */
   3761     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3604B2AB: fadd dword ptr [ebp - 0x18] */
   3762     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3604B2AE: fstp dword ptr [ebp - 0xc] */
   3763     eax = MEM32(ebp + (-0xC)); /* 0x3604B2B1: mov eax, dword ptr [ebp - 0xc] */
   3764     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3604B2B4: fld dword ptr [ebp - 8] */
   3765     MEM32(ebp + (-0x24)) = eax; /* 0x3604B2B7: mov dword ptr [ebp - 0x24], eax */
   3766     _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3604B2BA: fadd dword ptr [ebp - 0x14] */
   3767     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3604B2BD: fstp dword ptr [ebp - 8] */
   3768     ecx = MEM32(ebp + (-0x8)); /* 0x3604B2C0: mov ecx, dword ptr [ebp - 8] */
   3769     MEM32(ebp + (-0x20)) = ecx; /* 0x3604B2C3: mov dword ptr [ebp - 0x20], ecx */
   3770     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3604B2C6: fadd dword ptr [ebp - 4] */
   3771     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3604B2C9: fstp dword ptr [ebp - 4] */
   3772     edx = MEM32(ebp + (-0x4)); /* 0x3604B2CC: mov edx, dword ptr [ebp - 4] */
   3773     MEM32(ebp + (-0x1C)) = edx; /* 0x3604B2CF: mov dword ptr [ebp - 0x1c], edx */
   3774     goto L_3604B32F; /* 0x3604B2D2: jmp 0x3604b32f */
   3775 L_3604B2D4:
   3776     eax = ebp + 0xC; /* 0x3604B2D4: lea eax, [ebp + 0xc] */
   3777     PUSH32(esp, eax); /* 0x3604B2D7: push eax */
   3778     ecx = ebp + (-0x18); /* 0x3604B2D8: lea ecx, [ebp - 0x18] */
   3779     PUSH32(esp, ecx); /* 0x3604B2DB: push ecx */
   3780     edx = ebp + (-0xC); /* 0x3604B2DC: lea edx, [ebp - 0xc] */
   3781     PUSH32(esp, edx); /* 0x3604B2DF: push edx */
   3782     edi = esi + 0x324; /* 0x3604B2E0: lea edi, [esi + 0x324] */
   3783     PUSH32(esp, ebx); /* 0x3604B2E6: push ebx */
   3784     ecx = edi; /* 0x3604B2E7: mov ecx, edi */
   3785     MEM32(ebp + (-0xC)) = 0; /* 0x3604B2E9: mov dword ptr [ebp - 0xc], 0 */
   3786     MEM32(ebp + (-0x8)) = 0; /* 0x3604B2F0: mov dword ptr [ebp - 8], 0 */
   3787     MEM32(ebp + (-0x4)) = 0; /* 0x3604B2F7: mov dword ptr [ebp - 4], 0 */
   3788     MEM32(ebp + (-0x18)) = 0; /* 0x3604B2FE: mov dword ptr [ebp - 0x18], 0 */
   3789     MEM32(ebp + (-0x14)) = 0; /* 0x3604B305: mov dword ptr [ebp - 0x14], 0 */
   3790     MEM32(ebp + (-0x10)) = 0; /* 0x3604B30C: mov dword ptr [ebp - 0x10], 0 */
   3791     RECOMP_ICALL(MEM32(0x361702C0)); /* 0x3604B313: call dword ptr [0x361702c0] */
   3792     RECOMP_FLAGS_IN();
   3793     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3604B319: fld dword ptr [ebp + 0xc] */
   3794     _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3604B31C: fadd dword ptr [ebp + 8] */
   3795     eax = ebp + (-0x24); /* 0x3604B31F: lea eax, [ebp - 0x24] */
   3796     PUSH32(esp, eax); /* 0x3604B322: push eax */
   3797     PUSH32(esp, ecx); /* 0x3604B323: push ecx */
   3798     ecx = edi; /* 0x3604B324: mov ecx, edi */
   3799     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604B326: fstp dword ptr [esp] */
   3800     RECOMP_ICALL(MEM32(0x361702C8)); /* 0x3604B329: call dword ptr [0x361702c8] */
   3801     RECOMP_FLAGS_IN();
   3802 L_3604B32F:
   3803     ecx = esi; /* 0x3604B32F: mov ecx, esi */
   3804     RECOMP_ICALL(0x3604ADC0u); /* 0x3604B331: call 0x3604adc0 */ /* not lifted */
   3805     RECOMP_FLAGS_IN();
   3806     edi = esi + 0x324; /* 0x3604B336: lea edi, [esi + 0x324] */
   3807     PUSH32(esp, ebx); /* 0x3604B33C: push ebx */
   3808     ebx = MEM32(0x361702C4); /* 0x3604B33D: mov ebx, dword ptr [0x361702c4] */
   3809     ecx = edi; /* 0x3604B343: mov ecx, edi */
   3810     RECOMP_ICALL(ebx); /* 0x3604B345: call ebx */
   3811     RECOMP_FLAGS_IN();
   3812     ecx = ebp + (-0x24); /* 0x3604B347: lea ecx, [ebp - 0x24] */
   3813     PUSH32(esp, ecx); /* 0x3604B34A: push ecx */
   3814     ecx = edi; /* 0x3604B34B: mov ecx, edi */
   3815     RECOMP_ICALL(ebx); /* 0x3604B34D: call ebx */
   3816     RECOMP_FLAGS_IN();
   3817     PUSH32(esp, edi); /* 0x3604B34F: push edi */
   3818     ecx = esi; /* 0x3604B350: mov ecx, esi */
   3819     RECOMP_ICALL(0x3604ABF0u); /* 0x3604B352: call 0x3604abf0 */ /* not lifted */
   3820     RECOMP_FLAGS_IN();
   3821     edi = POP32_VAL(esp); /* 0x3604B357: pop edi */
   3822     esi = POP32_VAL(esp); /* 0x3604B358: pop esi */
   3823     SET_LO8(eax, 1); /* 0x3604B359: mov al, 1 */
   3824     ebx = POP32_VAL(esp); /* 0x3604B35B: pop ebx */
   3825     esp = ebp; /* 0x3604B35C: mov esp, ebp */
   3826     ebp = POP32_VAL(esp); /* 0x3604B35E: pop ebp */
   3827     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604B35F: ret 8 */
   3828     RECOMP_REGS_OUT();
   3829 }
   3830 
   3831 void sub_3604B305(void) {
   3832     int _fpu_cmp = 0;
   3833     uint32_t _cf = 0;
   3834     int _df = 1;
   3835     uint32_t _flag_k = FK_NONE;
   3836     uint32_t _flag_a = 0, _flag_b = 0;
   3837     uint32_t _itail_tgt = 0;
   3838     RECOMP_REGS_LOCALS
   3839     RECOMP_ENTER(0x3604B305u);
   3840 
   3841 L_3604B305:
   3842     MEM32(ebp + (-0x14)) = 0; /* 0x3604B305: mov dword ptr [ebp - 0x14], 0 */
   3843     MEM32(ebp + (-0x10)) = 0; /* 0x3604B30C: mov dword ptr [ebp - 0x10], 0 */
   3844     RECOMP_ICALL(MEM32(0x361702C0)); /* 0x3604B313: call dword ptr [0x361702c0] */
   3845     RECOMP_FLAGS_IN();
   3846     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x3604B319: fld dword ptr [ebp + 0xc] */
   3847     _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3604B31C: fadd dword ptr [ebp + 8] */
   3848     eax = ebp + (-0x24); /* 0x3604B31F: lea eax, [ebp - 0x24] */
   3849     PUSH32(esp, eax); /* 0x3604B322: push eax */
   3850     PUSH32(esp, ecx); /* 0x3604B323: push ecx */
   3851     ecx = edi; /* 0x3604B324: mov ecx, edi */
   3852     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604B326: fstp dword ptr [esp] */
   3853     RECOMP_ICALL(MEM32(0x361702C8)); /* 0x3604B329: call dword ptr [0x361702c8] */
   3854     RECOMP_FLAGS_IN();
   3855     ecx = esi; /* 0x3604B32F: mov ecx, esi */
   3856     RECOMP_ICALL(0x3604ADC0u); /* 0x3604B331: call 0x3604adc0 */ /* not lifted */
   3857     RECOMP_FLAGS_IN();
   3858     edi = esi + 0x324; /* 0x3604B336: lea edi, [esi + 0x324] */
   3859     PUSH32(esp, ebx); /* 0x3604B33C: push ebx */
   3860     ebx = MEM32(0x361702C4); /* 0x3604B33D: mov ebx, dword ptr [0x361702c4] */
   3861     ecx = edi; /* 0x3604B343: mov ecx, edi */
   3862     RECOMP_ICALL(ebx); /* 0x3604B345: call ebx */
   3863     RECOMP_FLAGS_IN();
   3864     ecx = ebp + (-0x24); /* 0x3604B347: lea ecx, [ebp - 0x24] */
   3865     PUSH32(esp, ecx); /* 0x3604B34A: push ecx */
   3866     ecx = edi; /* 0x3604B34B: mov ecx, edi */
   3867     RECOMP_ICALL(ebx); /* 0x3604B34D: call ebx */
   3868     RECOMP_FLAGS_IN();
   3869     PUSH32(esp, edi); /* 0x3604B34F: push edi */
   3870     ecx = esi; /* 0x3604B350: mov ecx, esi */
   3871     RECOMP_ICALL(0x3604ABF0u); /* 0x3604B352: call 0x3604abf0 */ /* not lifted */
   3872     RECOMP_FLAGS_IN();
   3873     edi = POP32_VAL(esp); /* 0x3604B357: pop edi */
   3874     esi = POP32_VAL(esp); /* 0x3604B358: pop esi */
   3875     SET_LO8(eax, 1); /* 0x3604B359: mov al, 1 */
   3876     ebx = POP32_VAL(esp); /* 0x3604B35B: pop ebx */
   3877     esp = ebp; /* 0x3604B35C: mov esp, ebp */
   3878     ebp = POP32_VAL(esp); /* 0x3604B35E: pop ebp */
   3879     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604B35F: ret 8 */
   3880     RECOMP_REGS_OUT();
   3881 }
   3882 
   3883 void sub_3604B370(void) {
   3884     int _fpu_cmp = 0;
   3885     uint32_t _cf = 0;
   3886     int _df = 1;
   3887     uint32_t _flag_k = FK_NONE;
   3888     uint32_t _flag_a = 0, _flag_b = 0;
   3889     uint32_t _itail_tgt = 0;
   3890     RECOMP_REGS_LOCALS
   3891     RECOMP_ENTER(0x3604B370u);
   3892 
   3893 L_3604B370:
   3894     PUSH32(esp, ebx); /* 0x3604B370: push ebx */
   3895     PUSH32(esp, esi); /* 0x3604B371: push esi */
   3896     PUSH32(esp, edi); /* 0x3604B372: push edi */
   3897     esi = ecx; /* 0x3604B373: mov esi, ecx */
   3898     RECOMP_ICALL(0x3604B080u); /* 0x3604B375: call 0x3604b080 */ /* not lifted */
   3899     RECOMP_FLAGS_IN();
   3900     edi = eax; /* 0x3604B37A: mov edi, eax */
   3901     eax = MEM32(esi); /* 0x3604B37C: mov eax, dword ptr [esi] */
   3902     ecx = esi; /* 0x3604B37E: mov ecx, esi */
   3903     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3604B380: call dword ptr [eax + 0xc] */
   3904     RECOMP_FLAGS_IN();
   3905     ecx = esi; /* 0x3604B383: mov ecx, esi */
   3906     ebx = eax; /* 0x3604B385: mov ebx, eax */
   3907     RECOMP_ICALL(0x36048250u); /* 0x3604B387: call 0x36048250 */ /* not lifted */
   3908     RECOMP_FLAGS_IN();
   3909     /* test LO8(eax), LO8(eax) */ /* 0x3604B38C: test al, al */
   3910     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3911     _cf = 0;
   3912     _flag_k = FK_NARROW(FK_TEST, 24);
   3913     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B39B; /* 0x3604B38E: je 0x3604b39b */
   3914 L_3604B390:
   3915     ecx = esi; /* 0x3604B390: mov ecx, esi */
   3916     RECOMP_ICALL(0x360481D0u); /* 0x3604B392: call 0x360481d0 */ /* not lifted */
   3917     RECOMP_FLAGS_IN();
   3918     edi = POP32_VAL(esp); /* 0x3604B397: pop edi */
   3919     esi = POP32_VAL(esp); /* 0x3604B398: pop esi */
   3920     ebx = POP32_VAL(esp); /* 0x3604B399: pop ebx */
   3921     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B39A: ret  */
   3922 L_3604B39B:
   3923     fp_push(*(float*)&MEM32(edi)); /* 0x3604B39B: fld dword ptr [edi] */
   3924     _st[0] -= (double)*(float*)ADDR(ebx); /* 0x3604B39D: fsub dword ptr [ebx] */
   3925     fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x3604B39F: fld dword ptr [edi + 8] */
   3926     _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x3604B3A2: fsub dword ptr [ebx + 8] */
   3927     fp_push(_st[0]); /* 0x3604B3A5: fld st(0) */
   3928     _st[0] *= _st[1]; /* 0x3604B3A7: fmul st(1) */
   3929     fp_push(_st[2]); /* 0x3604B3A9: fld st(2) */
   3930     _st[0] *= _st[3]; /* 0x3604B3AB: fmul st(3) */
   3931     { double _v = fp_pop(); _st[0] += _v; } /* 0x3604B3AD: faddp st(1) */
   3932     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170EB8)); /* 0x3604B3AF: fcomp dword ptr [0x36170eb8] */
   3933     fp_pop();
   3934     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604B3B5: fnstsw ax */
   3935     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604B3B7: fstp st(0) */
   3936     /* test HI8(eax), 1 */ /* 0x3604B3B9: test ah, 1 */
   3937     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3938     _cf = 0;
   3939     _flag_k = FK_NARROW(FK_TEST, 24);
   3940     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604B3BC: fstp st(0) */
   3941     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B3E4; /* 0x3604B3BE: jne 0x3604b3e4 */
   3942 L_3604B3C0:
   3943     eax = MEM32(esi + 0x32C); /* 0x3604B3C0: mov eax, dword ptr [esi + 0x32c] */
   3944     /* test eax, eax */ /* 0x3604B3C6: test eax, eax */
   3945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3946     _cf = 0;
   3947     _flag_k = FK_TEST;
   3948     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B3E4; /* 0x3604B3C8: je 0x3604b3e4 */
   3949 L_3604B3CA:
   3950     ecx = MEM32(esi + 0x330); /* 0x3604B3CA: mov ecx, dword ptr [esi + 0x330] */
   3951     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3953     ecx = ecx - eax; /* 0x3604B3D0: sub ecx, eax */
   3954     _flag_k = FK_CMP;
   3955     eax = 0x2AAAAAABu; /* 0x3604B3D2: mov eax, 0x2aaaaaab */
   3956     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604B3D7: imul ecx */
   3957       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3958       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3959     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B3D9: sar edx, 1 */
   3960     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3961     edx = (uint32_t)((int32_t)edx >> 1u);
   3962     ecx = edx; /* 0x3604B3DB: mov ecx, edx */
   3963     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3604B3DD: shr ecx, 0x1f */
   3964     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3965     ecx = ecx >> 31u; /* 0x3604B3DD: shr ecx, 0x1f */
   3966     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3967     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3968     edx = edx + ecx; /* 0x3604B3E0: add edx, ecx */
   3969     _flag_k = FK_ADD;
   3970     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NE)) goto L_3604B3EB; /* 0x3604B3E2: jne 0x3604b3eb */
   3971 L_3604B3E4:
   3972     ecx = esi; /* 0x3604B3E4: mov ecx, esi */
   3973     RECOMP_ICALL(0x3604B3F0u); /* 0x3604B3E6: call 0x3604b3f0 */ /* not lifted */
   3974     RECOMP_FLAGS_IN();
   3975 L_3604B3EB:
   3976     edi = POP32_VAL(esp); /* 0x3604B3EB: pop edi */
   3977     esi = POP32_VAL(esp); /* 0x3604B3EC: pop esi */
   3978     ebx = POP32_VAL(esp); /* 0x3604B3ED: pop ebx */
   3979     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B3EE: ret  */
   3980     RECOMP_REGS_OUT();
   3981 }
   3982 
   3983 void sub_3604B3F0(void) {
   3984     int _fpu_cmp = 0;
   3985     uint32_t _cf = 0;
   3986     int _df = 1;
   3987     uint32_t _flag_k = FK_NONE;
   3988     uint32_t _flag_a = 0, _flag_b = 0;
   3989     uint32_t _itail_tgt = 0;
   3990     RECOMP_REGS_LOCALS
   3991     RECOMP_ENTER(0x3604B3F0u);
   3992 
   3993 L_3604B3F0:
   3994     PUSH32(esp, esi); /* 0x3604B3F0: push esi */
   3995     esi = ecx; /* 0x3604B3F1: mov esi, ecx */
   3996     RECOMP_ICALL(0x3604ADC0u); /* 0x3604B3F3: call 0x3604adc0 */ /* not lifted */
   3997     RECOMP_FLAGS_IN();
   3998     ecx = esi; /* 0x3604B3F8: mov ecx, esi */
   3999     RECOMP_ICALL(0x36047900u); /* 0x3604B3FA: call 0x36047900 */ /* not lifted */
   4000     RECOMP_FLAGS_IN();
   4001     edx = MEM32(eax); /* 0x3604B3FF: mov edx, dword ptr [eax] */
   4002     PUSH32(esp, 2); /* 0x3604B401: push 2 */
   4003     ecx = eax; /* 0x3604B403: mov ecx, eax */
   4004     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3604B405: call dword ptr [edx + 0x18] */
   4005     RECOMP_FLAGS_IN();
   4006     ecx = esi; /* 0x3604B408: mov ecx, esi */
   4007     RECOMP_ICALL(0x36048230u); /* 0x3604B40A: call 0x36048230 */ /* not lifted */
   4008     RECOMP_FLAGS_IN();
   4009     esi = POP32_VAL(esp); /* 0x3604B40F: pop esi */
   4010     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B410: ret  */
   4011     RECOMP_REGS_OUT();
   4012 }
   4013 
   4014 void sub_3604B420(void) {
   4015     int _fpu_cmp = 0;
   4016     uint32_t _cf = 0;
   4017     int _df = 1;
   4018     uint32_t _flag_k = FK_NONE;
   4019     uint32_t _flag_a = 0, _flag_b = 0;
   4020     uint32_t _itail_tgt = 0;
   4021     RECOMP_REGS_LOCALS
   4022     RECOMP_ENTER(0x3604B420u);
   4023 
   4024 L_3604B420:
   4025     PUSH32(esp, ebp); /* 0x3604B420: push ebp */
   4026     ebp = esp; /* 0x3604B421: mov ebp, esp */
   4027     PUSH32(esp, ebx); /* 0x3604B423: push ebx */
   4028     ebx = MEM32(ebp + 0x8); /* 0x3604B424: mov ebx, dword ptr [ebp + 8] */
   4029     PUSH32(esp, esi); /* 0x3604B427: push esi */
   4030     PUSH32(esp, edi); /* 0x3604B428: push edi */
   4031     esi = ecx; /* 0x3604B429: mov esi, ecx */
   4032     PUSH32(esp, ebx); /* 0x3604B42B: push ebx */
   4033     RECOMP_ICALL(0x360491E0u); /* 0x3604B42C: call 0x360491e0 */ /* not lifted */
   4034     RECOMP_FLAGS_IN();
   4035     eax = MEM32(esi + 0x32C); /* 0x3604B431: mov eax, dword ptr [esi + 0x32c] */
   4036     /* test eax, eax */ /* 0x3604B437: test eax, eax */
   4037     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4038     _cf = 0;
   4039     _flag_k = FK_TEST;
   4040     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B43F; /* 0x3604B439: jne 0x3604b43f */
   4041 L_3604B43B:
   4042     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4043     edx = 0; /* 0x3604B43B: xor edx, edx */
   4044     _cf = 0;
   4045     _flag_k = FK_TEST;
   4046     goto L_3604B457; /* 0x3604B43D: jmp 0x3604b457 */
   4047 L_3604B43F:
   4048     ecx = MEM32(esi + 0x330); /* 0x3604B43F: mov ecx, dword ptr [esi + 0x330] */
   4049     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4051     ecx = ecx - eax; /* 0x3604B445: sub ecx, eax */
   4052     _flag_k = FK_CMP;
   4053     eax = 0x2AAAAAABu; /* 0x3604B447: mov eax, 0x2aaaaaab */
   4054     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604B44C: imul ecx */
   4055       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4056       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4057     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B44E: sar edx, 1 */
   4058     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4059     edx = (uint32_t)((int32_t)edx >> 1u);
   4060     eax = edx; /* 0x3604B450: mov eax, edx */
   4061     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604B452: shr eax, 0x1f */
   4062     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4063     eax = eax >> 31u; /* 0x3604B452: shr eax, 0x1f */
   4064     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4065     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4066     edx = edx + eax; /* 0x3604B455: add edx, eax */
   4067     _flag_k = FK_ADD;
   4068 L_3604B457:
   4069     _flag_a = (uint32_t)(LO16(edx)) << 16; _flag_b = (uint32_t)(MEM16(esi + 0x104)) << 16;
   4070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4071     SET_LO16(edx, LO16(edx) - MEM16(esi + 0x104)); /* 0x3604B457: sub dx, word ptr [esi + 0x104] */
   4072     _flag_k = FK_NARROW(FK_CMP, 16);
   4073     ecx = ebx; /* 0x3604B45E: mov ecx, ebx */
   4074     edi = edx; /* 0x3604B460: mov edi, edx */
   4075     PUSH32(esp, edi); /* 0x3604B462: push edi */
   4076     RECOMP_ICALL(MEM32(0x3616FACC)); /* 0x3604B463: call dword ptr [0x3616facc] */
   4077     RECOMP_FLAGS_IN();
   4078     /* test LO16(edi), LO16(edi) */ /* 0x3604B469: test di, di */
   4079     _flag_a = (uint32_t)(LO16(edi)) << 16; _flag_b = (uint32_t)(LO16(edi)) << 16;
   4080     _cf = 0;
   4081     _flag_k = FK_NARROW(FK_TEST, 16);
   4082     if (TEST_LE(_flag_a, _flag_b)) goto L_3604B4C0; /* 0x3604B46C: jle 0x3604b4c0 */
   4083 L_3604B46E:
   4084     fp_push(*(float*)&MEM32(esi + 0x354)); /* 0x3604B46E: fld dword ptr [esi + 0x354] */
   4085     PUSH32(esp, ecx); /* 0x3604B474: push ecx */
   4086     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604B475: fstp dword ptr [esp] */
   4087     ecx = ebx; /* 0x3604B478: mov ecx, ebx */
   4088     RECOMP_ICALL(MEM32(0x3616FAD4)); /* 0x3604B47A: call dword ptr [0x3616fad4] */
   4089     RECOMP_FLAGS_IN();
   4090     eax = MEM32(esi + 0x104); /* 0x3604B480: mov eax, dword ptr [esi + 0x104] */
   4091     edx = MEM32(esi + 0x32C); /* 0x3604B486: mov edx, dword ptr [esi + 0x32c] */
   4092     ecx = eax + eax * 2; /* 0x3604B48C: lea ecx, [eax + eax*2] */
   4093     eax = MEM32(esi + 0x330); /* 0x3604B48F: mov eax, dword ptr [esi + 0x330] */
   4094     edi = edx + ecx * 4; /* 0x3604B495: lea edi, [edx + ecx*4] */
   4095     /* cmp edi, eax */ /* 0x3604B498: cmp edi, eax */
   4096     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4098     _flag_k = FK_CMP;
   4099     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604B4C0; /* 0x3604B49A: je 0x3604b4c0 */
   4100 L_3604B49C:
   4101     eax = MEM32(edi); /* 0x3604B49C: mov eax, dword ptr [edi] */
   4102     PUSH32(esp, eax); /* 0x3604B49E: push eax */
   4103     ecx = ebx; /* 0x3604B49F: mov ecx, ebx */
   4104     RECOMP_ICALL(MEM32(0x3616FAD4)); /* 0x3604B4A1: call dword ptr [0x3616fad4] */
   4105     RECOMP_FLAGS_IN();
   4106     ecx = MEM32(edi + 0x8); /* 0x3604B4A7: mov ecx, dword ptr [edi + 8] */
   4107     PUSH32(esp, ecx); /* 0x3604B4AA: push ecx */
   4108     ecx = ebx; /* 0x3604B4AB: mov ecx, ebx */
   4109     RECOMP_ICALL(MEM32(0x3616FAD4)); /* 0x3604B4AD: call dword ptr [0x3616fad4] */
   4110     RECOMP_FLAGS_IN();
   4111     eax = MEM32(esi + 0x330); /* 0x3604B4B3: mov eax, dword ptr [esi + 0x330] */
   4112     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   4113     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4114     edi = edi + 0xCu; /* 0x3604B4B9: add edi, 0xc */
   4115     _flag_k = FK_ADD;
   4116     /* cmp edi, eax */ /* 0x3604B4BC: cmp edi, eax */
   4117     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4118     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4119     _flag_k = FK_CMP;
   4120     RECOMP_BACKEDGE();
   4121     if (CMP_NE(_flag_a, _flag_b)) goto L_3604B49C; /* 0x3604B4BE: jne 0x3604b49c */
   4122 L_3604B4C0:
   4123     edi = POP32_VAL(esp); /* 0x3604B4C0: pop edi */
   4124     esi = POP32_VAL(esp); /* 0x3604B4C1: pop esi */
   4125     ebx = POP32_VAL(esp); /* 0x3604B4C2: pop ebx */
   4126     ebp = POP32_VAL(esp); /* 0x3604B4C3: pop ebp */
   4127     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B4C4: ret 4 */
   4128     RECOMP_REGS_OUT();
   4129 }
   4130 
   4131 void sub_3604B4D0(void) {
   4132     int _fpu_cmp = 0;
   4133     uint32_t _cf = 0;
   4134     int _df = 1;
   4135     uint32_t _flag_k = FK_NONE;
   4136     uint32_t _flag_a = 0, _flag_b = 0;
   4137     uint32_t _itail_tgt = 0;
   4138     RECOMP_REGS_LOCALS
   4139     RECOMP_ENTER(0x3604B4D0u);
   4140 
   4141 L_3604B4D0:
   4142     PUSH32(esp, ebp); /* 0x3604B4D0: push ebp */
   4143     ebp = esp; /* 0x3604B4D1: mov ebp, esp */
   4144     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4146     esp = esp - 0x14u; /* 0x3604B4D3: sub esp, 0x14 */
   4147     _flag_k = FK_CMP;
   4148     PUSH32(esp, esi); /* 0x3604B4D6: push esi */
   4149     esi = MEM32(ebp + 0x8); /* 0x3604B4D7: mov esi, dword ptr [ebp + 8] */
   4150     PUSH32(esp, edi); /* 0x3604B4DA: push edi */
   4151     edi = ecx; /* 0x3604B4DB: mov edi, ecx */
   4152     PUSH32(esp, esi); /* 0x3604B4DD: push esi */
   4153     MEM32(ebp + (-0x4)) = edi; /* 0x3604B4DE: mov dword ptr [ebp - 4], edi */
   4154     RECOMP_ICALL(0x36049220u); /* 0x3604B4E1: call 0x36049220 */ /* not lifted */
   4155     RECOMP_FLAGS_IN();
   4156     eax = ebp + 0xA; /* 0x3604B4E6: lea eax, [ebp + 0xa] */
   4157     PUSH32(esp, eax); /* 0x3604B4E9: push eax */
   4158     ecx = esi; /* 0x3604B4EA: mov ecx, esi */
   4159     MEM32(ebp + (-0x8)) = 0; /* 0x3604B4EC: mov dword ptr [ebp - 8], 0 */
   4160     RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x3604B4F3: call dword ptr [0x3616fac8] */
   4161     RECOMP_FLAGS_IN();
   4162     ecx = edi; /* 0x3604B4F9: mov ecx, edi */
   4163     RECOMP_ICALL(0x3604ADC0u); /* 0x3604B4FB: call 0x3604adc0 */ /* not lifted */
   4164     RECOMP_FLAGS_IN();
   4165     /* cmp MEM16(ebp + 0xA), 0 */ /* 0x3604B500: cmp word ptr [ebp + 0xa], 0 */
   4166     _flag_a = (uint32_t)(MEM16(ebp + 0xA)) << 16; _flag_b = (uint32_t)(0) << 16;
   4167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4168     _flag_k = FK_NARROW(FK_CMP, 16);
   4169     if (CMP_LE(_flag_a, _flag_b)) goto L_3604B56A; /* 0x3604B505: jle 0x3604b56a */
   4170 L_3604B507:
   4171     PUSH32(esp, ebx); /* 0x3604B507: push ebx */
   4172     ebx = MEM32(0x3616FAD0); /* 0x3604B508: mov ebx, dword ptr [0x3616fad0] */
   4173     ecx = ebp + (-0x8); /* 0x3604B50E: lea ecx, [ebp - 8] */
   4174     PUSH32(esp, ecx); /* 0x3604B511: push ecx */
   4175     ecx = esi; /* 0x3604B512: mov ecx, esi */
   4176     RECOMP_ICALL(ebx); /* 0x3604B514: call ebx */
   4177     RECOMP_FLAGS_IN();
   4178     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4179     edi = 0; /* 0x3604B516: xor edi, edi */
   4180     _cf = 0;
   4181     _flag_k = FK_TEST;
   4182     /* cmp MEM16(ebp + 0xA), LO16(edi) */ /* 0x3604B518: cmp word ptr [ebp + 0xa], di */
   4183     _flag_a = (uint32_t)(MEM16(ebp + 0xA)) << 16; _flag_b = (uint32_t)(LO16(edi)) << 16;
   4184     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4185     _flag_k = FK_NARROW(FK_CMP, 16);
   4186     if (CMP_LE(_flag_a, _flag_b)) goto L_3604B566; /* 0x3604B51C: jle 0x3604b566 */
   4187 L_3604B51E:
   4188     edx = ebp + (-0x14); /* 0x3604B51E: lea edx, [ebp - 0x14] */
   4189     PUSH32(esp, edx); /* 0x3604B521: push edx */
   4190     ecx = esi; /* 0x3604B522: mov ecx, esi */
   4191     MEM32(ebp + (-0x14)) = 0; /* 0x3604B524: mov dword ptr [ebp - 0x14], 0 */
   4192     MEM32(ebp + (-0x10)) = 0; /* 0x3604B52B: mov dword ptr [ebp - 0x10], 0 */
   4193     MEM32(ebp + (-0xC)) = 0; /* 0x3604B532: mov dword ptr [ebp - 0xc], 0 */
   4194     RECOMP_ICALL(ebx); /* 0x3604B539: call ebx */
   4195     RECOMP_FLAGS_IN();
   4196     eax = ebp + (-0xC); /* 0x3604B53B: lea eax, [ebp - 0xc] */
   4197     PUSH32(esp, eax); /* 0x3604B53E: push eax */
   4198     ecx = esi; /* 0x3604B53F: mov ecx, esi */
   4199     RECOMP_ICALL(ebx); /* 0x3604B541: call ebx */
   4200     RECOMP_FLAGS_IN();
   4201     edx = MEM32(ebp + (-0x4)); /* 0x3604B543: mov edx, dword ptr [ebp - 4] */
   4202     ecx = ebp + (-0x14); /* 0x3604B546: lea ecx, [ebp - 0x14] */
   4203     PUSH32(esp, ecx); /* 0x3604B549: push ecx */
   4204     ecx = edx + 0x324; /* 0x3604B54A: lea ecx, [edx + 0x324] */
   4205     MEM32(ebp + (-0x10)) = 0; /* 0x3604B550: mov dword ptr [ebp - 0x10], 0 */
   4206     RECOMP_ICALL(MEM32(0x361702C4)); /* 0x3604B557: call dword ptr [0x361702c4] */
   4207     RECOMP_FLAGS_IN();
   4208     eax = (int32_t)(int16_t)MEM16(ebp + 0xA); /* 0x3604B55D: movsx eax, word ptr [ebp + 0xa] */
   4209     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   4210     edi = edi + 1; /* 0x3604B561: inc edi */
   4211     _flag_k = FK_INC;
   4212     /* cmp edi, eax */ /* 0x3604B562: cmp edi, eax */
   4213     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4215     _flag_k = FK_CMP;
   4216     RECOMP_BACKEDGE();
   4217     if (CMP_L(_flag_a, _flag_b)) goto L_3604B51E; /* 0x3604B564: jl 0x3604b51e */
   4218 L_3604B566:
   4219     edi = MEM32(ebp + (-0x4)); /* 0x3604B566: mov edi, dword ptr [ebp - 4] */
   4220     ebx = POP32_VAL(esp); /* 0x3604B569: pop ebx */
   4221 L_3604B56A:
   4222     PUSH32(esp, 0); /* 0x3604B56A: push 0 */
   4223     ecx = edi; /* 0x3604B56C: mov ecx, edi */
   4224     RECOMP_ICALL(0x360480E0u); /* 0x3604B56E: call 0x360480e0 */ /* not lifted */
   4225     RECOMP_FLAGS_IN();
   4226     eax = MEM32(edi + 0x32C); /* 0x3604B573: mov eax, dword ptr [edi + 0x32c] */
   4227     /* test eax, eax */ /* 0x3604B579: test eax, eax */
   4228     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4229     _cf = 0;
   4230     _flag_k = FK_TEST;
   4231     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B597; /* 0x3604B57B: je 0x3604b597 */
   4232 L_3604B57D:
   4233     ecx = MEM32(edi + 0x330); /* 0x3604B57D: mov ecx, dword ptr [edi + 0x330] */
   4234     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4236     ecx = ecx - eax; /* 0x3604B583: sub ecx, eax */
   4237     _flag_k = FK_CMP;
   4238     eax = 0x2AAAAAABu; /* 0x3604B585: mov eax, 0x2aaaaaab */
   4239     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604B58A: imul ecx */
   4240       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4241       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4242     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B58C: sar edx, 1 */
   4243     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4244     edx = (uint32_t)((int32_t)edx >> 1u);
   4245     ecx = edx; /* 0x3604B58E: mov ecx, edx */
   4246     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3604B590: shr ecx, 0x1f */
   4247     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4248     ecx = ecx >> 31u; /* 0x3604B590: shr ecx, 0x1f */
   4249     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4251     edx = edx + ecx; /* 0x3604B593: add edx, ecx */
   4252     _flag_k = FK_ADD;
   4253     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NE)) goto L_3604B59E; /* 0x3604B595: jne 0x3604b59e */
   4254 L_3604B597:
   4255     ecx = edi; /* 0x3604B597: mov ecx, edi */
   4256     RECOMP_ICALL(0x360491D0u); /* 0x3604B599: call 0x360491d0 */ /* not lifted */
   4257     RECOMP_FLAGS_IN();
   4258 L_3604B59E:
   4259     edx = MEM32(ebp + (-0x8)); /* 0x3604B59E: mov edx, dword ptr [ebp - 8] */
   4260     fp_push(*(float*)&MEM32(edi + 0x38)); /* 0x3604B5A1: fld dword ptr [edi + 0x38] */
   4261     PUSH32(esp, edx); /* 0x3604B5A4: push edx */
   4262     PUSH32(esp, ecx); /* 0x3604B5A5: push ecx */
   4263     eax = edi + 0x324; /* 0x3604B5A6: lea eax, [edi + 0x324] */
   4264     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604B5AC: fstp dword ptr [esp] */
   4265     PUSH32(esp, eax); /* 0x3604B5AF: push eax */
   4266     ecx = edi + 0x350; /* 0x3604B5B0: lea ecx, [edi + 0x350] */
   4267     RECOMP_ICALL(MEM32(0x361702A4)); /* 0x3604B5B6: call dword ptr [0x361702a4] */
   4268     RECOMP_FLAGS_IN();
   4269     edi = POP32_VAL(esp); /* 0x3604B5BC: pop edi */
   4270     esi = POP32_VAL(esp); /* 0x3604B5BD: pop esi */
   4271     esp = ebp; /* 0x3604B5BE: mov esp, ebp */
   4272     ebp = POP32_VAL(esp); /* 0x3604B5C0: pop ebp */
   4273     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B5C1: ret 4 */
   4274     RECOMP_REGS_OUT();
   4275 }
   4276 
   4277 void sub_3604B5D0(void) {
   4278     int _fpu_cmp = 0;
   4279     uint32_t _cf = 0;
   4280     int _df = 1;
   4281     uint32_t _flag_k = FK_NONE;
   4282     uint32_t _flag_a = 0, _flag_b = 0;
   4283     uint32_t _itail_tgt = 0;
   4284     RECOMP_REGS_LOCALS
   4285     RECOMP_ENTER(0x3604B5D0u);
   4286 
   4287 L_3604B5D0:
   4288     eax = MEM32(ecx + 0x4); /* 0x3604B5D0: mov eax, dword ptr [ecx + 4] */
   4289     /* test eax, eax */ /* 0x3604B5D3: test eax, eax */
   4290     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4291     _cf = 0;
   4292     _flag_k = FK_TEST;
   4293     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B5D8; /* 0x3604B5D5: jne 0x3604b5d8 */
   4294 L_3604B5D7:
   4295     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B5D7: ret  */
   4296 L_3604B5D8:
   4297     ecx = MEM32(ecx + 0x8); /* 0x3604B5D8: mov ecx, dword ptr [ecx + 8] */
   4298     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4300     ecx = ecx - eax; /* 0x3604B5DB: sub ecx, eax */
   4301     _flag_k = FK_CMP;
   4302     eax = 0x2AAAAAABu; /* 0x3604B5DD: mov eax, 0x2aaaaaab */
   4303     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604B5E2: imul ecx */
   4304       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4305       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4306     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B5E4: sar edx, 1 */
   4307     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4308     edx = (uint32_t)((int32_t)edx >> 1u);
   4309     eax = edx; /* 0x3604B5E6: mov eax, edx */
   4310     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604B5E8: shr eax, 0x1f */
   4311     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4312     eax = eax >> 31u; /* 0x3604B5E8: shr eax, 0x1f */
   4313     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4314     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4315     edx = edx + eax; /* 0x3604B5EB: add edx, eax */
   4316     _flag_k = FK_ADD;
   4317     eax = edx; /* 0x3604B5ED: mov eax, edx */
   4318     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B5EF: ret  */
   4319     RECOMP_REGS_OUT();
   4320 }
   4321 
   4322 void sub_3604B5F0(void) {
   4323     int _fpu_cmp = 0;
   4324     uint32_t _cf = 0;
   4325     int _df = 1;
   4326     uint32_t _flag_k = FK_NONE;
   4327     uint32_t _flag_a = 0, _flag_b = 0;
   4328     uint32_t _itail_tgt = 0;
   4329     RECOMP_REGS_LOCALS
   4330     RECOMP_ENTER(0x3604B5F0u);
   4331 
   4332 L_3604B5F0:
   4333     PUSH32(esp, ebp); /* 0x3604B5F0: push ebp */
   4334     ebp = esp; /* 0x3604B5F1: mov ebp, esp */
   4335     PUSH32(esp, ecx); /* 0x3604B5F3: push ecx */
   4336     PUSH32(esp, ebx); /* 0x3604B5F4: push ebx */
   4337     PUSH32(esp, esi); /* 0x3604B5F5: push esi */
   4338     esi = MEM32(ebp + 0x8); /* 0x3604B5F6: mov esi, dword ptr [ebp + 8] */
   4339     ebx = ecx; /* 0x3604B5F9: mov ebx, ecx */
   4340     /* cmp ebx, esi */ /* 0x3604B5FB: cmp ebx, esi */
   4341     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   4342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4343     _flag_k = FK_CMP;
   4344     PUSH32(esp, edi); /* 0x3604B5FD: push edi */
   4345     MEM32(ebp + (-0x4)) = ebx; /* 0x3604B5FE: mov dword ptr [ebp - 4], ebx */
   4346     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604B7DE; /* 0x3604B601: je 0x3604b7de */
   4347 L_3604B607:
   4348     ecx = MEM32(esi + 0x4); /* 0x3604B607: mov ecx, dword ptr [esi + 4] */
   4349     /* test ecx, ecx */ /* 0x3604B60A: test ecx, ecx */
   4350     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4351     _cf = 0;
   4352     _flag_k = FK_TEST;
   4353     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B612; /* 0x3604B60C: jne 0x3604b612 */
   4354 L_3604B60E:
   4355     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4356     edi = 0; /* 0x3604B60E: xor edi, edi */
   4357     _cf = 0;
   4358     _flag_k = FK_TEST;
   4359     goto L_3604B61A; /* 0x3604B610: jmp 0x3604b61a */
   4360 L_3604B612:
   4361     edi = MEM32(esi + 0x8); /* 0x3604B612: mov edi, dword ptr [esi + 8] */
   4362     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   4363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4364     edi = edi - ecx; /* 0x3604B615: sub edi, ecx */
   4365     _flag_k = FK_CMP;
   4366     if (4u) _cf = (((edi) >> 3) & 1u); /* 0x3604B617: sar edi, 4 */
   4367     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4368     edi = (uint32_t)((int32_t)edi >> 4u);
   4369 L_3604B61A:
   4370     edx = MEM32(ebx + 0x4); /* 0x3604B61A: mov edx, dword ptr [ebx + 4] */
   4371     /* test edx, edx */ /* 0x3604B61D: test edx, edx */
   4372     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4373     _cf = 0;
   4374     _flag_k = FK_TEST;
   4375     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B625; /* 0x3604B61F: jne 0x3604b625 */
   4376 L_3604B621:
   4377     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4378     eax = 0; /* 0x3604B621: xor eax, eax */
   4379     _cf = 0;
   4380     _flag_k = FK_TEST;
   4381     goto L_3604B62D; /* 0x3604B623: jmp 0x3604b62d */
   4382 L_3604B625:
   4383     eax = MEM32(ebx + 0x8); /* 0x3604B625: mov eax, dword ptr [ebx + 8] */
   4384     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4386     eax = eax - edx; /* 0x3604B628: sub eax, edx */
   4387     _flag_k = FK_CMP;
   4388     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3604B62A: sar eax, 4 */
   4389     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4390     eax = (uint32_t)((int32_t)eax >> 4u);
   4391 L_3604B62D:
   4392     /* cmp edi, eax */ /* 0x3604B62D: cmp edi, eax */
   4393     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4394     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4395     _flag_k = FK_CMP;
   4396     if (CMP_A(_flag_a, _flag_b)) goto L_3604B68A; /* 0x3604B62F: ja 0x3604b68a */
   4397 L_3604B631:
   4398     edi = MEM32(esi + 0x8); /* 0x3604B631: mov edi, dword ptr [esi + 8] */
   4399     eax = ecx; /* 0x3604B634: mov eax, ecx */
   4400     /* cmp eax, edi */ /* 0x3604B636: cmp eax, edi */
   4401     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4403     _flag_k = FK_CMP;
   4404     MEM32(ebp + 0x8) = edi; /* 0x3604B638: mov dword ptr [ebp + 8], edi */
   4405     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604B667; /* 0x3604B63B: je 0x3604b667 */
   4406 L_3604B63D:
   4407     ecx = eax; /* 0x3604B63D: mov ecx, eax */
   4408     ebx = MEM32(ecx); /* 0x3604B63F: mov ebx, dword ptr [ecx] */
   4409     edi = edx; /* 0x3604B641: mov edi, edx */
   4410     MEM32(edi) = ebx; /* 0x3604B643: mov dword ptr [edi], ebx */
   4411     ebx = MEM32(ecx + 0x4); /* 0x3604B645: mov ebx, dword ptr [ecx + 4] */
   4412     MEM32(edi + 0x4) = ebx; /* 0x3604B648: mov dword ptr [edi + 4], ebx */
   4413     ebx = MEM32(ecx + 0x8); /* 0x3604B64B: mov ebx, dword ptr [ecx + 8] */
   4414     MEM32(edi + 0x8) = ebx; /* 0x3604B64E: mov dword ptr [edi + 8], ebx */
   4415     ecx = MEM32(ecx + 0xC); /* 0x3604B651: mov ecx, dword ptr [ecx + 0xc] */
   4416     MEM32(edi + 0xC) = ecx; /* 0x3604B654: mov dword ptr [edi + 0xc], ecx */
   4417     ecx = MEM32(ebp + 0x8); /* 0x3604B657: mov ecx, dword ptr [ebp + 8] */
   4418     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   4419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4420     eax = eax + 0x10u; /* 0x3604B65A: add eax, 0x10 */
   4421     _flag_k = FK_ADD;
   4422     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   4423     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4424     edx = edx + 0x10u; /* 0x3604B65D: add edx, 0x10 */
   4425     _flag_k = FK_ADD;
   4426     /* cmp eax, ecx */ /* 0x3604B660: cmp eax, ecx */
   4427     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4429     _flag_k = FK_CMP;
   4430     RECOMP_BACKEDGE();
   4431     if (CMP_NE(_flag_a, _flag_b)) goto L_3604B63D; /* 0x3604B662: jne 0x3604b63d */
   4432 L_3604B664:
   4433     ebx = MEM32(ebp + (-0x4)); /* 0x3604B664: mov ebx, dword ptr [ebp - 4] */
   4434 L_3604B667:
   4435     ecx = MEM32(esi + 0x4); /* 0x3604B667: mov ecx, dword ptr [esi + 4] */
   4436     /* test ecx, ecx */ /* 0x3604B66A: test ecx, ecx */
   4437     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4438     _cf = 0;
   4439     _flag_k = FK_TEST;
   4440     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B74F; /* 0x3604B66C: jne 0x3604b74f */
   4441 L_3604B672:
   4442     ecx = MEM32(ebx + 0x4); /* 0x3604B672: mov ecx, dword ptr [ebx + 4] */
   4443     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4444     eax = 0; /* 0x3604B675: xor eax, eax */
   4445     _cf = 0;
   4446     _flag_k = FK_TEST;
   4447     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3604B677: shl eax, 4 */
   4448     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4449     eax = eax << 4u; /* 0x3604B677: shl eax, 4 */
   4450     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4451     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4452     eax = eax + ecx; /* 0x3604B67A: add eax, ecx */
   4453     _flag_k = FK_ADD;
   4454     edi = POP32_VAL(esp); /* 0x3604B67C: pop edi */
   4455     MEM32(ebx + 0x8) = eax; /* 0x3604B67D: mov dword ptr [ebx + 8], eax */
   4456     esi = POP32_VAL(esp); /* 0x3604B680: pop esi */
   4457     eax = ebx; /* 0x3604B681: mov eax, ebx */
   4458     ebx = POP32_VAL(esp); /* 0x3604B683: pop ebx */
   4459     esp = ebp; /* 0x3604B684: mov esp, ebp */
   4460     ebp = POP32_VAL(esp); /* 0x3604B686: pop ebp */
   4461     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B687: ret 4 */
   4462 L_3604B68A:
   4463     /* test ecx, ecx */ /* 0x3604B68A: test ecx, ecx */
   4464     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4465     _cf = 0;
   4466     _flag_k = FK_TEST;
   4467     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B692; /* 0x3604B68C: jne 0x3604b692 */
   4468 L_3604B68E:
   4469     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4470     edi = 0; /* 0x3604B68E: xor edi, edi */
   4471     _cf = 0;
   4472     _flag_k = FK_TEST;
   4473     goto L_3604B69A; /* 0x3604B690: jmp 0x3604b69a */
   4474 L_3604B692:
   4475     edi = MEM32(esi + 0x8); /* 0x3604B692: mov edi, dword ptr [esi + 8] */
   4476     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   4477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4478     edi = edi - ecx; /* 0x3604B695: sub edi, ecx */
   4479     _flag_k = FK_CMP;
   4480     if (4u) _cf = (((edi) >> 3) & 1u); /* 0x3604B697: sar edi, 4 */
   4481     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4482     edi = (uint32_t)((int32_t)edi >> 4u);
   4483 L_3604B69A:
   4484     /* test edx, edx */ /* 0x3604B69A: test edx, edx */
   4485     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4486     _cf = 0;
   4487     _flag_k = FK_TEST;
   4488     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B6A2; /* 0x3604B69C: jne 0x3604b6a2 */
   4489 L_3604B69E:
   4490     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4491     eax = 0; /* 0x3604B69E: xor eax, eax */
   4492     _cf = 0;
   4493     _flag_k = FK_TEST;
   4494     goto L_3604B6AA; /* 0x3604B6A0: jmp 0x3604b6aa */
   4495 L_3604B6A2:
   4496     eax = MEM32(ebx + 0xC); /* 0x3604B6A2: mov eax, dword ptr [ebx + 0xc] */
   4497     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4499     eax = eax - edx; /* 0x3604B6A5: sub eax, edx */
   4500     _flag_k = FK_CMP;
   4501     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3604B6A7: sar eax, 4 */
   4502     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4503     eax = (uint32_t)((int32_t)eax >> 4u);
   4504 L_3604B6AA:
   4505     /* cmp edi, eax */ /* 0x3604B6AA: cmp edi, eax */
   4506     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4508     _flag_k = FK_CMP;
   4509     if (CMP_A(_flag_a, _flag_b)) goto L_3604B76D; /* 0x3604B6AC: ja 0x3604b76d */
   4510 L_3604B6B2:
   4511     /* test edx, edx */ /* 0x3604B6B2: test edx, edx */
   4512     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4513     _cf = 0;
   4514     _flag_k = FK_TEST;
   4515     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B6BA; /* 0x3604B6B4: jne 0x3604b6ba */
   4516 L_3604B6B6:
   4517     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4518     eax = 0; /* 0x3604B6B6: xor eax, eax */
   4519     _cf = 0;
   4520     _flag_k = FK_TEST;
   4521     goto L_3604B6C2; /* 0x3604B6B8: jmp 0x3604b6c2 */
   4522 L_3604B6BA:
   4523     eax = MEM32(ebx + 0x8); /* 0x3604B6BA: mov eax, dword ptr [ebx + 8] */
   4524     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4525     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4526     eax = eax - edx; /* 0x3604B6BD: sub eax, edx */
   4527     _flag_k = FK_CMP;
   4528     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3604B6BF: sar eax, 4 */
   4529     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4530     eax = (uint32_t)((int32_t)eax >> 4u);
   4531 L_3604B6C2:
   4532     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3604B6C2: shl eax, 4 */
   4533     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4534     eax = eax << 4u; /* 0x3604B6C2: shl eax, 4 */
   4535     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4536     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4537     eax = eax + ecx; /* 0x3604B6C5: add eax, ecx */
   4538     _flag_k = FK_ADD;
   4539     /* cmp ecx, eax */ /* 0x3604B6C7: cmp ecx, eax */
   4540     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4542     _flag_k = FK_CMP;
   4543     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604B6F5; /* 0x3604B6C9: je 0x3604b6f5 */
   4544 L_3604B6CB:
   4545     esi = ecx; /* 0x3604B6CB: mov esi, ecx */
   4546     ebx = MEM32(esi); /* 0x3604B6CD: mov ebx, dword ptr [esi] */
   4547     edi = edx; /* 0x3604B6CF: mov edi, edx */
   4548     MEM32(edi) = ebx; /* 0x3604B6D1: mov dword ptr [edi], ebx */
   4549     ebx = MEM32(esi + 0x4); /* 0x3604B6D3: mov ebx, dword ptr [esi + 4] */
   4550     MEM32(edi + 0x4) = ebx; /* 0x3604B6D6: mov dword ptr [edi + 4], ebx */
   4551     ebx = MEM32(esi + 0x8); /* 0x3604B6D9: mov ebx, dword ptr [esi + 8] */
   4552     MEM32(edi + 0x8) = ebx; /* 0x3604B6DC: mov dword ptr [edi + 8], ebx */
   4553     esi = MEM32(esi + 0xC); /* 0x3604B6DF: mov esi, dword ptr [esi + 0xc] */
   4554     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   4555     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4556     ecx = ecx + 0x10u; /* 0x3604B6E2: add ecx, 0x10 */
   4557     _flag_k = FK_ADD;
   4558     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   4559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4560     edx = edx + 0x10u; /* 0x3604B6E5: add edx, 0x10 */
   4561     _flag_k = FK_ADD;
   4562     /* cmp ecx, eax */ /* 0x3604B6E8: cmp ecx, eax */
   4563     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4565     _flag_k = FK_CMP;
   4566     MEM32(edi + 0xC) = esi; /* 0x3604B6EA: mov dword ptr [edi + 0xc], esi */
   4567     RECOMP_BACKEDGE();
   4568     if (CMP_NE(_flag_a, _flag_b)) goto L_3604B6CB; /* 0x3604B6ED: jne 0x3604b6cb */
   4569 L_3604B6EF:
   4570     esi = MEM32(ebp + 0x8); /* 0x3604B6EF: mov esi, dword ptr [ebp + 8] */
   4571     ebx = MEM32(ebp + (-0x4)); /* 0x3604B6F2: mov ebx, dword ptr [ebp - 4] */
   4572 L_3604B6F5:
   4573     edx = MEM32(esi + 0x8); /* 0x3604B6F5: mov edx, dword ptr [esi + 8] */
   4574     /* cmp eax, edx */ /* 0x3604B6F8: cmp eax, edx */
   4575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4577     _flag_k = FK_CMP;
   4578     ecx = MEM32(ebx + 0x8); /* 0x3604B6FA: mov ecx, dword ptr [ebx + 8] */
   4579     MEM32(ebp + 0x8) = edx; /* 0x3604B6FD: mov dword ptr [ebp + 8], edx */
   4580     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604B730; /* 0x3604B700: je 0x3604b730 */
   4581 L_3604B702:
   4582     /* test ecx, ecx */ /* 0x3604B702: test ecx, ecx */
   4583     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4584     _cf = 0;
   4585     _flag_k = FK_TEST;
   4586     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B726; /* 0x3604B704: je 0x3604b726 */
   4587 L_3604B706:
   4588     edx = eax; /* 0x3604B706: mov edx, eax */
   4589     ebx = MEM32(edx); /* 0x3604B708: mov ebx, dword ptr [edx] */
   4590     edi = ecx; /* 0x3604B70A: mov edi, ecx */
   4591     MEM32(edi) = ebx; /* 0x3604B70C: mov dword ptr [edi], ebx */
   4592     ebx = MEM32(edx + 0x4); /* 0x3604B70E: mov ebx, dword ptr [edx + 4] */
   4593     MEM32(edi + 0x4) = ebx; /* 0x3604B711: mov dword ptr [edi + 4], ebx */
   4594     ebx = MEM32(edx + 0x8); /* 0x3604B714: mov ebx, dword ptr [edx + 8] */
   4595     MEM32(edi + 0x8) = ebx; /* 0x3604B717: mov dword ptr [edi + 8], ebx */
   4596     edx = MEM32(edx + 0xC); /* 0x3604B71A: mov edx, dword ptr [edx + 0xc] */
   4597     ebx = MEM32(ebp + (-0x4)); /* 0x3604B71D: mov ebx, dword ptr [ebp - 4] */
   4598     MEM32(edi + 0xC) = edx; /* 0x3604B720: mov dword ptr [edi + 0xc], edx */
   4599     edx = MEM32(ebp + 0x8); /* 0x3604B723: mov edx, dword ptr [ebp + 8] */
   4600 L_3604B726:
   4601     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   4602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4603     eax = eax + 0x10u; /* 0x3604B726: add eax, 0x10 */
   4604     _flag_k = FK_ADD;
   4605     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   4606     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4607     ecx = ecx + 0x10u; /* 0x3604B729: add ecx, 0x10 */
   4608     _flag_k = FK_ADD;
   4609     /* cmp eax, edx */ /* 0x3604B72C: cmp eax, edx */
   4610     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4612     _flag_k = FK_CMP;
   4613     RECOMP_BACKEDGE();
   4614     if (CMP_NE(_flag_a, _flag_b)) goto L_3604B702; /* 0x3604B72E: jne 0x3604b702 */
   4615 L_3604B730:
   4616     ecx = MEM32(esi + 0x4); /* 0x3604B730: mov ecx, dword ptr [esi + 4] */
   4617     /* test ecx, ecx */ /* 0x3604B733: test ecx, ecx */
   4618     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4619     _cf = 0;
   4620     _flag_k = FK_TEST;
   4621     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B74F; /* 0x3604B735: jne 0x3604b74f */
   4622 L_3604B737:
   4623     ecx = MEM32(ebx + 0x4); /* 0x3604B737: mov ecx, dword ptr [ebx + 4] */
   4624     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4625     eax = 0; /* 0x3604B73A: xor eax, eax */
   4626     _cf = 0;
   4627     _flag_k = FK_TEST;
   4628     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3604B73C: shl eax, 4 */
   4629     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4630     eax = eax << 4u; /* 0x3604B73C: shl eax, 4 */
   4631     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4632     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4633     eax = eax + ecx; /* 0x3604B73F: add eax, ecx */
   4634     _flag_k = FK_ADD;
   4635     edi = POP32_VAL(esp); /* 0x3604B741: pop edi */
   4636     MEM32(ebx + 0x8) = eax; /* 0x3604B742: mov dword ptr [ebx + 8], eax */
   4637     esi = POP32_VAL(esp); /* 0x3604B745: pop esi */
   4638     eax = ebx; /* 0x3604B746: mov eax, ebx */
   4639     ebx = POP32_VAL(esp); /* 0x3604B748: pop ebx */
   4640     esp = ebp; /* 0x3604B749: mov esp, ebp */
   4641     ebp = POP32_VAL(esp); /* 0x3604B74B: pop ebp */
   4642     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B74C: ret 4 */
   4643 L_3604B74F:
   4644     eax = MEM32(esi + 0x8); /* 0x3604B74F: mov eax, dword ptr [esi + 8] */
   4645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4647     eax = eax - ecx; /* 0x3604B752: sub eax, ecx */
   4648     _flag_k = FK_CMP;
   4649     ecx = MEM32(ebx + 0x4); /* 0x3604B754: mov ecx, dword ptr [ebx + 4] */
   4650     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3604B757: sar eax, 4 */
   4651     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4652     eax = (uint32_t)((int32_t)eax >> 4u);
   4653     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3604B75A: shl eax, 4 */
   4654     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4655     eax = eax << 4u; /* 0x3604B75A: shl eax, 4 */
   4656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4658     eax = eax + ecx; /* 0x3604B75D: add eax, ecx */
   4659     _flag_k = FK_ADD;
   4660     edi = POP32_VAL(esp); /* 0x3604B75F: pop edi */
   4661     MEM32(ebx + 0x8) = eax; /* 0x3604B760: mov dword ptr [ebx + 8], eax */
   4662     esi = POP32_VAL(esp); /* 0x3604B763: pop esi */
   4663     eax = ebx; /* 0x3604B764: mov eax, ebx */
   4664     ebx = POP32_VAL(esp); /* 0x3604B766: pop ebx */
   4665     esp = ebp; /* 0x3604B767: mov esp, ebp */
   4666     ebp = POP32_VAL(esp); /* 0x3604B769: pop ebp */
   4667     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B76A: ret 4 */
   4668 L_3604B76D:
   4669     PUSH32(esp, edx); /* 0x3604B76D: push edx */
   4670     MEM32(ebp + 0x8) = edx; /* 0x3604B76E: mov dword ptr [ebp + 8], edx */
   4671     RECOMP_ICALL(0x3615FCC4u); /* 0x3604B771: call 0x3615fcc4 */ /* not lifted */
   4672     RECOMP_FLAGS_IN();
   4673     ecx = MEM32(esi + 0x4); /* 0x3604B776: mov ecx, dword ptr [esi + 4] */
   4674     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4675     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4676     esp = esp + 4; /* 0x3604B779: add esp, 4 */
   4677     _flag_k = FK_ADD;
   4678     /* test ecx, ecx */ /* 0x3604B77C: test ecx, ecx */
   4679     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4680     _cf = 0;
   4681     _flag_k = FK_TEST;
   4682     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B784; /* 0x3604B77E: jne 0x3604b784 */
   4683 L_3604B780:
   4684     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4685     eax = 0; /* 0x3604B780: xor eax, eax */
   4686     _cf = 0;
   4687     _flag_k = FK_TEST;
   4688     goto L_3604B78C; /* 0x3604B782: jmp 0x3604b78c */
   4689 L_3604B784:
   4690     eax = MEM32(esi + 0x8); /* 0x3604B784: mov eax, dword ptr [esi + 8] */
   4691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4693     eax = eax - ecx; /* 0x3604B787: sub eax, ecx */
   4694     _flag_k = FK_CMP;
   4695     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3604B789: sar eax, 4 */
   4696     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4697     eax = (uint32_t)((int32_t)eax >> 4u);
   4698 L_3604B78C:
   4699     /* test eax, eax */ /* 0x3604B78C: test eax, eax */
   4700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4701     _cf = 0;
   4702     _flag_k = FK_TEST;
   4703     if (TEST_NS(_flag_a, _flag_b)) goto L_3604B792; /* 0x3604B78E: jge 0x3604b792 */
   4704 L_3604B790:
   4705     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4706     eax = 0; /* 0x3604B790: xor eax, eax */
   4707     _cf = 0;
   4708     _flag_k = FK_TEST;
   4709 L_3604B792:
   4710     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3604B792: shl eax, 4 */
   4711     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4712     eax = eax << 4u; /* 0x3604B792: shl eax, 4 */
   4713     PUSH32(esp, eax); /* 0x3604B795: push eax */
   4714     RECOMP_ICALL(0x3615FD6Au); /* 0x3604B796: call 0x3615fd6a */ /* not lifted */
   4715     RECOMP_FLAGS_IN();
   4716     MEM32(ebx + 0x4) = eax; /* 0x3604B79B: mov dword ptr [ebx + 4], eax */
   4717     edx = MEM32(esi + 0x8); /* 0x3604B79E: mov edx, dword ptr [esi + 8] */
   4718     ecx = eax; /* 0x3604B7A1: mov ecx, eax */
   4719     eax = MEM32(esi + 0x4); /* 0x3604B7A3: mov eax, dword ptr [esi + 4] */
   4720     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4721     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4722     esp = esp + 4; /* 0x3604B7A6: add esp, 4 */
   4723     _flag_k = FK_ADD;
   4724     /* cmp eax, edx */ /* 0x3604B7A9: cmp eax, edx */
   4725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4727     _flag_k = FK_CMP;
   4728     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604B7D8; /* 0x3604B7AB: je 0x3604b7d8 */
   4729 L_3604B7AD:
   4730     /* test ecx, ecx */ /* 0x3604B7AD: test ecx, ecx */
   4731     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4732     _cf = 0;
   4733     _flag_k = FK_TEST;
   4734     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B7CE; /* 0x3604B7AF: je 0x3604b7ce */
   4735 L_3604B7B1:
   4736     esi = eax; /* 0x3604B7B1: mov esi, eax */
   4737     ebx = MEM32(esi); /* 0x3604B7B3: mov ebx, dword ptr [esi] */
   4738     edi = ecx; /* 0x3604B7B5: mov edi, ecx */
   4739     MEM32(edi) = ebx; /* 0x3604B7B7: mov dword ptr [edi], ebx */
   4740     ebx = MEM32(esi + 0x4); /* 0x3604B7B9: mov ebx, dword ptr [esi + 4] */
   4741     MEM32(edi + 0x4) = ebx; /* 0x3604B7BC: mov dword ptr [edi + 4], ebx */
   4742     ebx = MEM32(esi + 0x8); /* 0x3604B7BF: mov ebx, dword ptr [esi + 8] */
   4743     MEM32(edi + 0x8) = ebx; /* 0x3604B7C2: mov dword ptr [edi + 8], ebx */
   4744     esi = MEM32(esi + 0xC); /* 0x3604B7C5: mov esi, dword ptr [esi + 0xc] */
   4745     ebx = MEM32(ebp + (-0x4)); /* 0x3604B7C8: mov ebx, dword ptr [ebp - 4] */
   4746     MEM32(edi + 0xC) = esi; /* 0x3604B7CB: mov dword ptr [edi + 0xc], esi */
   4747 L_3604B7CE:
   4748     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   4749     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4750     eax = eax + 0x10u; /* 0x3604B7CE: add eax, 0x10 */
   4751     _flag_k = FK_ADD;
   4752     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   4753     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4754     ecx = ecx + 0x10u; /* 0x3604B7D1: add ecx, 0x10 */
   4755     _flag_k = FK_ADD;
   4756     /* cmp eax, edx */ /* 0x3604B7D4: cmp eax, edx */
   4757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4759     _flag_k = FK_CMP;
   4760     RECOMP_BACKEDGE();
   4761     if (CMP_NE(_flag_a, _flag_b)) goto L_3604B7AD; /* 0x3604B7D6: jne 0x3604b7ad */
   4762 L_3604B7D8:
   4763     MEM32(ebx + 0x8) = ecx; /* 0x3604B7D8: mov dword ptr [ebx + 8], ecx */
   4764     MEM32(ebx + 0xC) = ecx; /* 0x3604B7DB: mov dword ptr [ebx + 0xc], ecx */
   4765 L_3604B7DE:
   4766     edi = POP32_VAL(esp); /* 0x3604B7DE: pop edi */
   4767     esi = POP32_VAL(esp); /* 0x3604B7DF: pop esi */
   4768     eax = ebx; /* 0x3604B7E0: mov eax, ebx */
   4769     ebx = POP32_VAL(esp); /* 0x3604B7E2: pop ebx */
   4770     esp = ebp; /* 0x3604B7E3: mov esp, ebp */
   4771     ebp = POP32_VAL(esp); /* 0x3604B7E5: pop ebp */
   4772     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B7E6: ret 4 */
   4773     RECOMP_REGS_OUT();
   4774 }
   4775 
   4776 void sub_3604B7F0(void) {
   4777     int _fpu_cmp = 0;
   4778     uint32_t _cf = 0;
   4779     int _df = 1;
   4780     uint32_t _flag_k = FK_NONE;
   4781     uint32_t _flag_a = 0, _flag_b = 0;
   4782     uint32_t _itail_tgt = 0;
   4783     RECOMP_REGS_LOCALS
   4784     RECOMP_ENTER(0x3604B7F0u);
   4785 
   4786 L_3604B7F0:
   4787     eax = MEM32(ecx + 0x4); /* 0x3604B7F0: mov eax, dword ptr [ecx + 4] */
   4788     /* test eax, eax */ /* 0x3604B7F3: test eax, eax */
   4789     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4790     _cf = 0;
   4791     _flag_k = FK_TEST;
   4792     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604B7F8; /* 0x3604B7F5: jne 0x3604b7f8 */
   4793 L_3604B7F7:
   4794     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B7F7: ret  */
   4795 L_3604B7F8:
   4796     ecx = MEM32(ecx + 0xC); /* 0x3604B7F8: mov ecx, dword ptr [ecx + 0xc] */
   4797     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4798     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4799     ecx = ecx - eax; /* 0x3604B7FB: sub ecx, eax */
   4800     _flag_k = FK_CMP;
   4801     eax = 0x2AAAAAABu; /* 0x3604B7FD: mov eax, 0x2aaaaaab */
   4802     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3604B802: imul ecx */
   4803       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4804       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4805     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3604B804: sar edx, 1 */
   4806     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4807     edx = (uint32_t)((int32_t)edx >> 1u);
   4808     eax = edx; /* 0x3604B806: mov eax, edx */
   4809     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3604B808: shr eax, 0x1f */
   4810     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4811     eax = eax >> 31u; /* 0x3604B808: shr eax, 0x1f */
   4812     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4813     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4814     edx = edx + eax; /* 0x3604B80B: add edx, eax */
   4815     _flag_k = FK_ADD;
   4816     eax = edx; /* 0x3604B80D: mov eax, edx */
   4817     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B80F: ret  */
   4818     RECOMP_REGS_OUT();
   4819 }
   4820 
   4821 void sub_3604B810(void) {
   4822     int _fpu_cmp = 0;
   4823     uint32_t _cf = 0;
   4824     int _df = 1;
   4825     uint32_t _flag_k = FK_NONE;
   4826     uint32_t _flag_a = 0, _flag_b = 0;
   4827     uint32_t _itail_tgt = 0;
   4828     RECOMP_REGS_LOCALS
   4829     RECOMP_ENTER(0x3604B810u);
   4830 
   4831     goto L_3604B810;
   4832 L_3604AB40:
   4833     PUSH32(esp, ebp); /* 0x3604AB40: push ebp */
   4834     ebp = esp; /* 0x3604AB41: mov ebp, esp */
   4835     PUSH32(esp, esi); /* 0x3604AB43: push esi */
   4836     esi = ecx; /* 0x3604AB44: mov esi, ecx */
   4837     RECOMP_ICALL(0x3604AB70u); /* 0x3604AB46: call 0x3604ab70 */ /* not lifted */
   4838     RECOMP_FLAGS_IN();
   4839     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604AB4B: test byte ptr [ebp + 8], 1 */
   4840     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4841     _cf = 0;
   4842     _flag_k = FK_NARROW(FK_TEST, 24);
   4843     if (TEST_Z(_flag_a, _flag_b)) goto L_3604AB5A; /* 0x3604AB4F: je 0x3604ab5a */
   4844 L_3604AB51:
   4845     PUSH32(esp, esi); /* 0x3604AB51: push esi */
   4846     RECOMP_ICALL(0x3615FCC4u); /* 0x3604AB52: call 0x3615fcc4 */ /* not lifted */
   4847     RECOMP_FLAGS_IN();
   4848     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4849     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4850     esp = esp + 4; /* 0x3604AB57: add esp, 4 */
   4851     _flag_k = FK_ADD;
   4852 L_3604AB5A:
   4853     eax = esi; /* 0x3604AB5A: mov eax, esi */
   4854     esi = POP32_VAL(esp); /* 0x3604AB5C: pop esi */
   4855     ebp = POP32_VAL(esp); /* 0x3604AB5D: pop ebp */
   4856     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604AB5E: ret 4 */
   4857 L_3604B810:
   4858     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x13Cu);
   4859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4860     ecx = ecx - 0x13Cu; /* 0x3604B810: sub ecx, 0x13c */
   4861     _flag_k = FK_CMP;
   4862     RECOMP_BACKEDGE();
   4863     goto L_3604AB40; /* 0x3604B816: jmp 0x3604ab40 */
   4864     { RECOMP_REGS_OUT(); return; } /* end of function */
   4865     RECOMP_REGS_OUT();
   4866 }
   4867 
   4868 void sub_3604B820(void) {
   4869     int _fpu_cmp = 0;
   4870     uint32_t _cf = 0;
   4871     int _df = 1;
   4872     uint32_t _flag_k = FK_NONE;
   4873     uint32_t _flag_a = 0, _flag_b = 0;
   4874     uint32_t _itail_tgt = 0;
   4875     RECOMP_REGS_LOCALS
   4876     RECOMP_ENTER(0x3604B820u);
   4877 
   4878 L_3604B820:
   4879     RECOMP_ICALL(0x3604B830u); /* 0x3604B820: call 0x3604b830 */ /* not lifted */
   4880     RECOMP_FLAGS_IN();
   4881     goto L_3604B840; /* 0x3604B825: jmp 0x3604b840 */
   4882 L_3604B840:
   4883     PUSH32(esp, 0x3604B850u); /* 0x3604B840: push 0x3604b850 */
   4884     RECOMP_ICALL(0x3615FEB2u); /* 0x3604B845: call 0x3615feb2 */ /* not lifted */
   4885     RECOMP_FLAGS_IN();
   4886     ecx = POP32_VAL(esp); /* 0x3604B84A: pop ecx */
   4887     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B84B: ret  */
   4888     RECOMP_REGS_OUT();
   4889 }
   4890 
   4891 void sub_3604B830(void) {
   4892     int _fpu_cmp = 0;
   4893     uint32_t _cf = 0;
   4894     int _df = 1;
   4895     uint32_t _flag_k = FK_NONE;
   4896     uint32_t _flag_a = 0, _flag_b = 0;
   4897     uint32_t _itail_tgt = 0;
   4898     RECOMP_REGS_LOCALS
   4899     RECOMP_ENTER(0x3604B830u);
   4900 
   4901 L_3604B830:
   4902     ecx = 0x363066E5u; /* 0x3604B830: mov ecx, 0x363066e5 */
   4903 L_3604B835:
   4904     { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; }
   4905     { RECOMP_REGS_OUT(); return; } /* end of function */
   4906   _ljump:
   4907     switch (_itail_tgt) {
   4908       case 0x3604B830u: goto L_3604B830;
   4909       case 0x3604B835u: goto L_3604B835;
   4910       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4911     }
   4912     RECOMP_REGS_OUT();
   4913 }
   4914 
   4915 void sub_3604B840(void) {
   4916     int _fpu_cmp = 0;
   4917     uint32_t _cf = 0;
   4918     int _df = 1;
   4919     uint32_t _flag_k = FK_NONE;
   4920     uint32_t _flag_a = 0, _flag_b = 0;
   4921     uint32_t _itail_tgt = 0;
   4922     RECOMP_REGS_LOCALS
   4923     RECOMP_ENTER(0x3604B840u);
   4924 
   4925 L_3604B840:
   4926     PUSH32(esp, 0x3604B850u); /* 0x3604B840: push 0x3604b850 */
   4927     RECOMP_ICALL(0x3615FEB2u); /* 0x3604B845: call 0x3615feb2 */ /* not lifted */
   4928     RECOMP_FLAGS_IN();
   4929     ecx = POP32_VAL(esp); /* 0x3604B84A: pop ecx */
   4930     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B84B: ret  */
   4931     RECOMP_REGS_OUT();
   4932 }
   4933 
   4934 void sub_3604B850(void) {
   4935     int _fpu_cmp = 0;
   4936     uint32_t _cf = 0;
   4937     int _df = 1;
   4938     uint32_t _flag_k = FK_NONE;
   4939     uint32_t _flag_a = 0, _flag_b = 0;
   4940     uint32_t _itail_tgt = 0;
   4941     RECOMP_REGS_LOCALS
   4942     RECOMP_ENTER(0x3604B850u);
   4943 
   4944 L_3604B850:
   4945     ecx = 0x363066E5u; /* 0x3604B850: mov ecx, 0x363066e5 */
   4946 L_3604B855:
   4947     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
   4948     { RECOMP_REGS_OUT(); return; } /* end of function */
   4949   _ljump:
   4950     switch (_itail_tgt) {
   4951       case 0x3604B850u: goto L_3604B850;
   4952       case 0x3604B855u: goto L_3604B855;
   4953       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4954     }
   4955     RECOMP_REGS_OUT();
   4956 }
   4957 
   4958 void sub_3604B860(void) {
   4959     int _fpu_cmp = 0;
   4960     uint32_t _cf = 0;
   4961     int _df = 1;
   4962     uint32_t _flag_k = FK_NONE;
   4963     uint32_t _flag_a = 0, _flag_b = 0;
   4964     uint32_t _itail_tgt = 0;
   4965     RECOMP_REGS_LOCALS
   4966     RECOMP_ENTER(0x3604B860u);
   4967 
   4968 L_3604B860:
   4969     RECOMP_ICALL(0x3604B870u); /* 0x3604B860: call 0x3604b870 */ /* not lifted */
   4970     RECOMP_FLAGS_IN();
   4971     goto L_3604B880; /* 0x3604B865: jmp 0x3604b880 */
   4972 L_3604B880:
   4973     PUSH32(esp, 0x3604B890u); /* 0x3604B880: push 0x3604b890 */
   4974     RECOMP_ICALL(0x3615FEB2u); /* 0x3604B885: call 0x3615feb2 */ /* not lifted */
   4975     RECOMP_FLAGS_IN();
   4976     ecx = POP32_VAL(esp); /* 0x3604B88A: pop ecx */
   4977     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B88B: ret  */
   4978     RECOMP_REGS_OUT();
   4979 }
   4980 
   4981 void sub_3604B870(void) {
   4982     int _fpu_cmp = 0;
   4983     uint32_t _cf = 0;
   4984     int _df = 1;
   4985     uint32_t _flag_k = FK_NONE;
   4986     uint32_t _flag_a = 0, _flag_b = 0;
   4987     uint32_t _itail_tgt = 0;
   4988     RECOMP_REGS_LOCALS
   4989     RECOMP_ENTER(0x3604B870u);
   4990 
   4991 L_3604B870:
   4992     ecx = 0x363066E4u; /* 0x3604B870: mov ecx, 0x363066e4 */
   4993 L_3604B875:
   4994     { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; }
   4995     { RECOMP_REGS_OUT(); return; } /* end of function */
   4996   _ljump:
   4997     switch (_itail_tgt) {
   4998       case 0x3604B870u: goto L_3604B870;
   4999       case 0x3604B875u: goto L_3604B875;
   5000       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5001     }
   5002     RECOMP_REGS_OUT();
   5003 }
   5004 
   5005 void sub_3604B880(void) {
   5006     int _fpu_cmp = 0;
   5007     uint32_t _cf = 0;
   5008     int _df = 1;
   5009     uint32_t _flag_k = FK_NONE;
   5010     uint32_t _flag_a = 0, _flag_b = 0;
   5011     uint32_t _itail_tgt = 0;
   5012     RECOMP_REGS_LOCALS
   5013     RECOMP_ENTER(0x3604B880u);
   5014 
   5015 L_3604B880:
   5016     PUSH32(esp, 0x3604B890u); /* 0x3604B880: push 0x3604b890 */
   5017     RECOMP_ICALL(0x3615FEB2u); /* 0x3604B885: call 0x3615feb2 */ /* not lifted */
   5018     RECOMP_FLAGS_IN();
   5019     ecx = POP32_VAL(esp); /* 0x3604B88A: pop ecx */
   5020     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604B88B: ret  */
   5021     RECOMP_REGS_OUT();
   5022 }
   5023 
   5024 void sub_3604B890(void) {
   5025     int _fpu_cmp = 0;
   5026     uint32_t _cf = 0;
   5027     int _df = 1;
   5028     uint32_t _flag_k = FK_NONE;
   5029     uint32_t _flag_a = 0, _flag_b = 0;
   5030     uint32_t _itail_tgt = 0;
   5031     RECOMP_REGS_LOCALS
   5032     RECOMP_ENTER(0x3604B890u);
   5033 
   5034 L_3604B890:
   5035     ecx = 0x363066E4u; /* 0x3604B890: mov ecx, 0x363066e4 */
   5036 L_3604B895:
   5037     { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; }
   5038     { RECOMP_REGS_OUT(); return; } /* end of function */
   5039   _ljump:
   5040     switch (_itail_tgt) {
   5041       case 0x3604B890u: goto L_3604B890;
   5042       case 0x3604B895u: goto L_3604B895;
   5043       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5044     }
   5045     RECOMP_REGS_OUT();
   5046 }
   5047 
   5048 void sub_3604B8A0(void) {
   5049     int _fpu_cmp = 0;
   5050     uint32_t _cf = 0;
   5051     int _df = 1;
   5052     uint32_t _flag_k = FK_NONE;
   5053     uint32_t _flag_a = 0, _flag_b = 0;
   5054     uint32_t _itail_tgt = 0;
   5055     RECOMP_REGS_LOCALS
   5056     RECOMP_ENTER(0x3604B8A0u);
   5057 
   5058 L_3604B8A0:
   5059     PUSH32(esp, ebp); /* 0x3604B8A0: push ebp */
   5060     ebp = esp; /* 0x3604B8A1: mov ebp, esp */
   5061     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604B8A3: push -1 */
   5062     PUSH32(esp, 0x36164013u); /* 0x3604B8A5: push 0x36164013 */
   5063     eax = MEM32(FS_BASE + (0)); /* 0x3604B8AA: mov eax, dword ptr fs:[0] */
   5064     PUSH32(esp, eax); /* 0x3604B8B0: push eax */
   5065     MEM32(FS_BASE + (0)) = esp; /* 0x3604B8B1: mov dword ptr fs:[0], esp */
   5066     PUSH32(esp, ecx); /* 0x3604B8B8: push ecx */
   5067     eax = MEM32(ebp + 0xC); /* 0x3604B8B9: mov eax, dword ptr [ebp + 0xc] */
   5068     PUSH32(esp, ebx); /* 0x3604B8BC: push ebx */
   5069     PUSH32(esp, esi); /* 0x3604B8BD: push esi */
   5070     PUSH32(esp, edi); /* 0x3604B8BE: push edi */
   5071     esi = ecx; /* 0x3604B8BF: mov esi, ecx */
   5072     ecx = MEM32(ebp + 0x8); /* 0x3604B8C1: mov ecx, dword ptr [ebp + 8] */
   5073     PUSH32(esp, eax); /* 0x3604B8C4: push eax */
   5074     PUSH32(esp, ecx); /* 0x3604B8C5: push ecx */
   5075     ecx = esi; /* 0x3604B8C6: mov ecx, esi */
   5076     MEM32(ebp + (-0x10)) = esi; /* 0x3604B8C8: mov dword ptr [ebp - 0x10], esi */
   5077     RECOMP_ICALL(0x360476E0u); /* 0x3604B8CB: call 0x360476e0 */ /* not lifted */
   5078     RECOMP_FLAGS_IN();
   5079     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5080     ebx = 0; /* 0x3604B8D0: xor ebx, ebx */
   5081     _cf = 0;
   5082     _flag_k = FK_TEST;
   5083     PUSH32(esp, 0x40u); /* 0x3604B8D2: push 0x40 */
   5084     MEM32(ebp + (-0x4)) = ebx; /* 0x3604B8D4: mov dword ptr [ebp - 4], ebx */
   5085     MEM32(esi + 0x324) = ebx; /* 0x3604B8D7: mov dword ptr [esi + 0x324], ebx */
   5086     MEM32(esi + 0x328) = ebx; /* 0x3604B8DD: mov dword ptr [esi + 0x328], ebx */
   5087     MEM32(esi + 0x32C) = ebx; /* 0x3604B8E3: mov dword ptr [esi + 0x32c], ebx */
   5088     MEM32(esi + 0x330) = ebx; /* 0x3604B8E9: mov dword ptr [esi + 0x330], ebx */
   5089     MEM32(esi + 0x334) = ebx; /* 0x3604B8EF: mov dword ptr [esi + 0x334], ebx */
   5090     MEM32(esi) = 0x36170FE8u; /* 0x3604B8F5: mov dword ptr [esi], 0x36170fe8 */
   5091     MEM32(esi + 0x20) = 0x36170FE0u; /* 0x3604B8FB: mov dword ptr [esi + 0x20], 0x36170fe0 */
   5092     MEM32(esi + 0x13C) = 0x36170FD4u; /* 0x3604B902: mov dword ptr [esi + 0x13c], 0x36170fd4 */
   5093     RECOMP_ICALL(0x3615FD6Au); /* 0x3604B90C: call 0x3615fd6a */ /* not lifted */
   5094     RECOMP_FLAGS_IN();
   5095     edi = eax; /* 0x3604B911: mov edi, eax */
   5096     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5097     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5098     esp = esp + 4; /* 0x3604B913: add esp, 4 */
   5099     _flag_k = FK_ADD;
   5100     MEM32(ebp + 0xC) = edi; /* 0x3604B916: mov dword ptr [ebp + 0xc], edi */
   5101     /* cmp edi, ebx */ /* 0x3604B919: cmp edi, ebx */
   5102     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5104     _flag_k = FK_CMP;
   5105     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3604B91B: mov byte ptr [ebp - 4], 1 */
   5106     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604B932; /* 0x3604B91F: je 0x3604b932 */
   5107 L_3604B921:
   5108     ecx = esi; /* 0x3604B921: mov ecx, esi */
   5109     RECOMP_ICALL(0x360478D0u); /* 0x3604B923: call 0x360478d0 */ /* not lifted */
   5110     RECOMP_FLAGS_IN();
   5111     PUSH32(esp, eax); /* 0x3604B928: push eax */
   5112     ecx = edi; /* 0x3604B929: mov ecx, edi */
   5113     RECOMP_ICALL(0x36049EC0u); /* 0x3604B92B: call 0x36049ec0 */ /* not lifted */
   5114     RECOMP_FLAGS_IN();
   5115     goto L_3604B934; /* 0x3604B930: jmp 0x3604b934 */
   5116 L_3604B932:
   5117     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5118     eax = 0; /* 0x3604B932: xor eax, eax */
   5119     _cf = 0;
   5120     _flag_k = FK_TEST;
   5121 L_3604B934:
   5122     PUSH32(esp, 3); /* 0x3604B934: push 3 */
   5123     ecx = esi; /* 0x3604B936: mov ecx, esi */
   5124     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3604B938: mov byte ptr [ebp - 4], bl */
   5125     MEM32(esi + 0x334) = eax; /* 0x3604B93B: mov dword ptr [esi + 0x334], eax */
   5126     RECOMP_ICALL(0x36047900u); /* 0x3604B941: call 0x36047900 */ /* not lifted */
   5127     RECOMP_FLAGS_IN();
   5128     ecx = eax; /* 0x3604B946: mov ecx, eax */
   5129     RECOMP_ICALL(0x360C7E50u); /* 0x3604B948: call 0x360c7e50 */ /* not lifted */
   5130     RECOMP_FLAGS_IN();
   5131     ecx = MEM32(ebp + (-0xC)); /* 0x3604B94D: mov ecx, dword ptr [ebp - 0xc] */
   5132     edi = POP32_VAL(esp); /* 0x3604B950: pop edi */
   5133     eax = esi; /* 0x3604B951: mov eax, esi */
   5134     esi = POP32_VAL(esp); /* 0x3604B953: pop esi */
   5135     ebx = POP32_VAL(esp); /* 0x3604B954: pop ebx */
   5136     MEM32(FS_BASE + (0)) = ecx; /* 0x3604B955: mov dword ptr fs:[0], ecx */
   5137     esp = ebp; /* 0x3604B95C: mov esp, ebp */
   5138     ebp = POP32_VAL(esp); /* 0x3604B95E: pop ebp */
   5139     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604B95F: ret 8 */
   5140     RECOMP_REGS_OUT();
   5141 }
   5142 
   5143 void sub_3604B970(void) {
   5144     int _fpu_cmp = 0;
   5145     uint32_t _cf = 0;
   5146     int _df = 1;
   5147     uint32_t _flag_k = FK_NONE;
   5148     uint32_t _flag_a = 0, _flag_b = 0;
   5149     uint32_t _itail_tgt = 0;
   5150     RECOMP_REGS_LOCALS
   5151     RECOMP_ENTER(0x3604B970u);
   5152 
   5153 L_3604B970:
   5154     PUSH32(esp, ebp); /* 0x3604B970: push ebp */
   5155     ebp = esp; /* 0x3604B971: mov ebp, esp */
   5156     PUSH32(esp, esi); /* 0x3604B973: push esi */
   5157     esi = ecx; /* 0x3604B974: mov esi, ecx */
   5158     RECOMP_ICALL(0x3604B9A0u); /* 0x3604B976: call 0x3604b9a0 */ /* not lifted */
   5159     RECOMP_FLAGS_IN();
   5160     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604B97B: test byte ptr [ebp + 8], 1 */
   5161     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5162     _cf = 0;
   5163     _flag_k = FK_NARROW(FK_TEST, 24);
   5164     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B98A; /* 0x3604B97F: je 0x3604b98a */
   5165 L_3604B981:
   5166     PUSH32(esp, esi); /* 0x3604B981: push esi */
   5167     RECOMP_ICALL(0x3615FCC4u); /* 0x3604B982: call 0x3615fcc4 */ /* not lifted */
   5168     RECOMP_FLAGS_IN();
   5169     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5170     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5171     esp = esp + 4; /* 0x3604B987: add esp, 4 */
   5172     _flag_k = FK_ADD;
   5173 L_3604B98A:
   5174     eax = esi; /* 0x3604B98A: mov eax, esi */
   5175     esi = POP32_VAL(esp); /* 0x3604B98C: pop esi */
   5176     ebp = POP32_VAL(esp); /* 0x3604B98D: pop ebp */
   5177     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B98E: ret 4 */
   5178     RECOMP_REGS_OUT();
   5179 }
   5180 
   5181 void sub_3604B9A0(void) {
   5182     int _fpu_cmp = 0;
   5183     uint32_t _cf = 0;
   5184     int _df = 1;
   5185     uint32_t _flag_k = FK_NONE;
   5186     uint32_t _flag_a = 0, _flag_b = 0;
   5187     uint32_t _itail_tgt = 0;
   5188     RECOMP_REGS_LOCALS
   5189     RECOMP_ENTER(0x3604B9A0u);
   5190 
   5191 L_3604B9A0:
   5192     PUSH32(esp, ebp); /* 0x3604B9A0: push ebp */
   5193     ebp = esp; /* 0x3604B9A1: mov ebp, esp */
   5194     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604B9A3: push -1 */
   5195     PUSH32(esp, 0x36164028u); /* 0x3604B9A5: push 0x36164028 */
   5196     eax = MEM32(FS_BASE + (0)); /* 0x3604B9AA: mov eax, dword ptr fs:[0] */
   5197     PUSH32(esp, eax); /* 0x3604B9B0: push eax */
   5198     MEM32(FS_BASE + (0)) = esp; /* 0x3604B9B1: mov dword ptr fs:[0], esp */
   5199     PUSH32(esp, ecx); /* 0x3604B9B8: push ecx */
   5200     PUSH32(esp, esi); /* 0x3604B9B9: push esi */
   5201     esi = ecx; /* 0x3604B9BA: mov esi, ecx */
   5202     PUSH32(esp, edi); /* 0x3604B9BC: push edi */
   5203     MEM32(ebp + (-0x10)) = esi; /* 0x3604B9BD: mov dword ptr [ebp - 0x10], esi */
   5204     MEM32(esi) = 0x36170FE8u; /* 0x3604B9C0: mov dword ptr [esi], 0x36170fe8 */
   5205     MEM32(esi + 0x20) = 0x36170FE0u; /* 0x3604B9C6: mov dword ptr [esi + 0x20], 0x36170fe0 */
   5206     MEM32(esi + 0x13C) = 0x36170FD4u; /* 0x3604B9CD: mov dword ptr [esi + 0x13c], 0x36170fd4 */
   5207     edi = MEM32(esi + 0x334); /* 0x3604B9D7: mov edi, dword ptr [esi + 0x334] */
   5208     /* test edi, edi */ /* 0x3604B9DD: test edi, edi */
   5209     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5210     _cf = 0;
   5211     _flag_k = FK_TEST;
   5212     MEM32(ebp + (-0x4)) = 0; /* 0x3604B9DF: mov dword ptr [ebp - 4], 0 */
   5213     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B9F8; /* 0x3604B9E6: je 0x3604b9f8 */
   5214 L_3604B9E8:
   5215     ecx = edi; /* 0x3604B9E8: mov ecx, edi */
   5216     RECOMP_ICALL(0x360E2940u); /* 0x3604B9EA: call 0x360e2940 */ /* not lifted */
   5217     RECOMP_FLAGS_IN();
   5218     PUSH32(esp, edi); /* 0x3604B9EF: push edi */
   5219     RECOMP_ICALL(0x3615FCC4u); /* 0x3604B9F0: call 0x3615fcc4 */ /* not lifted */
   5220     RECOMP_FLAGS_IN();
   5221     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5222     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5223     esp = esp + 4; /* 0x3604B9F5: add esp, 4 */
   5224     _flag_k = FK_ADD;
   5225 L_3604B9F8:
   5226     ecx = esi; /* 0x3604B9F8: mov ecx, esi */
   5227     MEM32(esi + 0x334) = 0; /* 0x3604B9FA: mov dword ptr [esi + 0x334], 0 */
   5228     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604BA04: mov dword ptr [ebp - 4], 0xffffffff */
   5229     RECOMP_ICALL(0x36047910u); /* 0x3604BA0B: call 0x36047910 */ /* not lifted */
   5230     RECOMP_FLAGS_IN();
   5231     ecx = MEM32(ebp + (-0xC)); /* 0x3604BA10: mov ecx, dword ptr [ebp - 0xc] */
   5232     edi = POP32_VAL(esp); /* 0x3604BA13: pop edi */
   5233     esi = POP32_VAL(esp); /* 0x3604BA14: pop esi */
   5234     MEM32(FS_BASE + (0)) = ecx; /* 0x3604BA15: mov dword ptr fs:[0], ecx */
   5235     esp = ebp; /* 0x3604BA1C: mov esp, ebp */
   5236     ebp = POP32_VAL(esp); /* 0x3604BA1E: pop ebp */
   5237     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604BA1F: ret  */
   5238     RECOMP_REGS_OUT();
   5239 }
   5240 
   5241 void sub_3604BA20(void) {
   5242     int _fpu_cmp = 0;
   5243     uint32_t _cf = 0;
   5244     int _df = 1;
   5245     uint32_t _flag_k = FK_NONE;
   5246     uint32_t _flag_a = 0, _flag_b = 0;
   5247     uint32_t _itail_tgt = 0;
   5248     RECOMP_REGS_LOCALS
   5249     RECOMP_ENTER(0x3604BA20u);
   5250 
   5251 L_3604BA20:
   5252     PUSH32(esp, ebp); /* 0x3604BA20: push ebp */
   5253     ebp = esp; /* 0x3604BA21: mov ebp, esp */
   5254     PUSH32(esp, esi); /* 0x3604BA23: push esi */
   5255     esi = ecx; /* 0x3604BA24: mov esi, ecx */
   5256     RECOMP_ICALL(0x36047900u); /* 0x3604BA26: call 0x36047900 */ /* not lifted */
   5257     RECOMP_FLAGS_IN();
   5258     ecx = eax; /* 0x3604BA2B: mov ecx, eax */
   5259     RECOMP_ICALL(0x36008320u); /* 0x3604BA2D: call 0x36008320 */ /* not lifted */
   5260     RECOMP_FLAGS_IN();
   5261     /* cmp eax, 9 */ /* 0x3604BA32: cmp eax, 9 */
   5262     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9);
   5263     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5264     _flag_k = FK_CMP;
   5265     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604BAAF; /* 0x3604BA35: je 0x3604baaf */
   5266 L_3604BA37:
   5267     /* cmp eax, 8 */ /* 0x3604BA37: cmp eax, 8 */
   5268     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   5269     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5270     _flag_k = FK_CMP;
   5271     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604BAAF; /* 0x3604BA3A: je 0x3604baaf */
   5272 L_3604BA3C:
   5273     /* cmp eax, 1 */ /* 0x3604BA3C: cmp eax, 1 */
   5274     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5276     _flag_k = FK_CMP;
   5277     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604BAAF; /* 0x3604BA3F: je 0x3604baaf */
   5278 L_3604BA41:
   5279     ecx = esi; /* 0x3604BA41: mov ecx, esi */
   5280     RECOMP_ICALL(0x36048250u); /* 0x3604BA43: call 0x36048250 */ /* not lifted */
   5281     RECOMP_FLAGS_IN();
   5282     /* test LO8(eax), LO8(eax) */ /* 0x3604BA48: test al, al */
   5283     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5284     _cf = 0;
   5285     _flag_k = FK_NARROW(FK_TEST, 24);
   5286     if (TEST_Z(_flag_a, _flag_b)) goto L_3604BA67; /* 0x3604BA4A: je 0x3604ba67 */
   5287 L_3604BA4C:
   5288     eax = MEM32(ebp + 0x8); /* 0x3604BA4C: mov eax, dword ptr [ebp + 8] */
   5289     PUSH32(esp, eax); /* 0x3604BA4F: push eax */
   5290     PUSH32(esp, 1); /* 0x3604BA50: push 1 */
   5291     ecx = esi; /* 0x3604BA52: mov ecx, esi */
   5292     RECOMP_ICALL(0x36048430u); /* 0x3604BA54: call 0x36048430 */ /* not lifted */
   5293     RECOMP_FLAGS_IN();
   5294     PUSH32(esp, eax); /* 0x3604BA59: push eax */
   5295     ecx = esi; /* 0x3604BA5A: mov ecx, esi */
   5296     RECOMP_ICALL(MEM32(0x36170350)); /* 0x3604BA5C: call dword ptr [0x36170350] */
   5297     RECOMP_FLAGS_IN();
   5298     esi = POP32_VAL(esp); /* 0x3604BA62: pop esi */
   5299     ebp = POP32_VAL(esp); /* 0x3604BA63: pop ebp */
   5300     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BA64: ret 4 */
   5301 L_3604BA67:
   5302     fp_push(*(float*)&MEM32(esi + 0x324)); /* 0x3604BA67: fld dword ptr [esi + 0x324] */
   5303     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x3604BA6D: fcomp qword ptr [0x36170430] */
   5304     fp_pop();
   5305     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604BA73: fnstsw ax */
   5306     /* test HI8(eax), 0x40u */ /* 0x3604BA75: test ah, 0x40 */
   5307     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5308     _cf = 0;
   5309     _flag_k = FK_NARROW(FK_TEST, 24);
   5310     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604BAAF; /* 0x3604BA78: jne 0x3604baaf */
   5311 L_3604BA7A:
   5312     fp_push(*(float*)&MEM32(esi + 0x324)); /* 0x3604BA7A: fld dword ptr [esi + 0x324] */
   5313     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x3604BA80: fcomp qword ptr [0x36170430] */
   5314     fp_pop();
   5315     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604BA86: fnstsw ax */
   5316     /* test HI8(eax), 0x41u */ /* 0x3604BA88: test ah, 0x41 */
   5317     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5318     _cf = 0;
   5319     _flag_k = FK_NARROW(FK_TEST, 24);
   5320     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604BA9E; /* 0x3604BA8B: jne 0x3604ba9e */
   5321 L_3604BA8D:
   5322     ecx = MEM32(ebp + 0x8); /* 0x3604BA8D: mov ecx, dword ptr [ebp + 8] */
   5323     PUSH32(esp, ecx); /* 0x3604BA90: push ecx */
   5324     ecx = esi; /* 0x3604BA91: mov ecx, esi */
   5325     RECOMP_ICALL(MEM32(0x361702D0)); /* 0x3604BA93: call dword ptr [0x361702d0] */
   5326     RECOMP_FLAGS_IN();
   5327     esi = POP32_VAL(esp); /* 0x3604BA99: pop esi */
   5328     ebp = POP32_VAL(esp); /* 0x3604BA9A: pop ebp */
   5329     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BA9B: ret 4 */
   5330 L_3604BA9E:
   5331     edx = MEM32(ebp + 0x8); /* 0x3604BA9E: mov edx, dword ptr [ebp + 8] */
   5332     PUSH32(esp, edx); /* 0x3604BAA1: push edx */
   5333     ecx = esi; /* 0x3604BAA2: mov ecx, esi */
   5334     RECOMP_ICALL(MEM32(0x361702CC)); /* 0x3604BAA4: call dword ptr [0x361702cc] */
   5335     RECOMP_FLAGS_IN();
   5336     esi = POP32_VAL(esp); /* 0x3604BAAA: pop esi */
   5337     ebp = POP32_VAL(esp); /* 0x3604BAAB: pop ebp */
   5338     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BAAC: ret 4 */
   5339 L_3604BAAF:
   5340     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5341     eax = 0; /* 0x3604BAAF: xor eax, eax */
   5342     _cf = 0;
   5343     _flag_k = FK_TEST;
   5344     esi = POP32_VAL(esp); /* 0x3604BAB1: pop esi */
   5345     ebp = POP32_VAL(esp); /* 0x3604BAB2: pop ebp */
   5346     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BAB3: ret 4 */
   5347     RECOMP_REGS_OUT();
   5348 }
   5349 
   5350 void sub_3604BAC0(void) {
   5351     int _fpu_cmp = 0;
   5352     uint32_t _cf = 0;
   5353     int _df = 1;
   5354     uint32_t _flag_k = FK_NONE;
   5355     uint32_t _flag_a = 0, _flag_b = 0;
   5356     uint32_t _itail_tgt = 0;
   5357     RECOMP_REGS_LOCALS
   5358     RECOMP_ENTER(0x3604BAC0u);
   5359 
   5360 L_3604BAC0:
   5361     PUSH32(esp, ebp); /* 0x3604BAC0: push ebp */
   5362     ebp = esp; /* 0x3604BAC1: mov ebp, esp */
   5363     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   5364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5365     esp = esp - 0x24u; /* 0x3604BAC3: sub esp, 0x24 */
   5366     _flag_k = FK_CMP;
   5367     PUSH32(esp, esi); /* 0x3604BAC6: push esi */
   5368     esi = ecx; /* 0x3604BAC7: mov esi, ecx */
   5369     fp_push(*(float*)&MEM32(esi + 0x328)); /* 0x3604BAC9: fld dword ptr [esi + 0x328] */
   5370     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x3604BACF: fcomp qword ptr [0x36170430] */
   5371     fp_pop();
   5372     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604BAD5: fnstsw ax */
   5373     /* test HI8(eax), 0x40u */ /* 0x3604BAD7: test ah, 0x40 */
   5374     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5375     _cf = 0;
   5376     _flag_k = FK_NARROW(FK_TEST, 24);
   5377     if (TEST_Z(_flag_a, _flag_b)) goto L_3604BAF8; /* 0x3604BADA: je 0x3604baf8 */
   5378 L_3604BADC:
   5379     fp_push(*(float*)&MEM32(esi + 0x330)); /* 0x3604BADC: fld dword ptr [esi + 0x330] */
   5380     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604BAE2: fcomp dword ptr [0x3617040c] */
   5381     fp_pop();
   5382     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604BAE8: fnstsw ax */
   5383     /* test HI8(eax), 0x40u */ /* 0x3604BAEA: test ah, 0x40 */
   5384     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5385     _cf = 0;
   5386     _flag_k = FK_NARROW(FK_TEST, 24);
   5387     if (TEST_Z(_flag_a, _flag_b)) goto L_3604BAF8; /* 0x3604BAED: je 0x3604baf8 */
   5388 L_3604BAEF:
   5389     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5390     eax = 0; /* 0x3604BAEF: xor eax, eax */
   5391     _cf = 0;
   5392     _flag_k = FK_TEST;
   5393     esi = POP32_VAL(esp); /* 0x3604BAF1: pop esi */
   5394     esp = ebp; /* 0x3604BAF2: mov esp, ebp */
   5395     ebp = POP32_VAL(esp); /* 0x3604BAF4: pop ebp */
   5396     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BAF5: ret 4 */
   5397 L_3604BAF8:
   5398     SET_LO8(ecx, MEM8(0x363066E6)); /* 0x3604BAF8: mov cl, byte ptr [0x363066e6] */
   5399     SET_LO8(eax, 1); /* 0x3604BAFE: mov al, 1 */
   5400     /* test LO8(eax), LO8(ecx) */ /* 0x3604BB00: test al, cl */
   5401     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5402     _cf = 0;
   5403     _flag_k = FK_NARROW(FK_TEST, 24);
   5404     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604BB39; /* 0x3604BB02: jne 0x3604bb39 */
   5405 L_3604BB04:
   5406     SET_LO8(edx, LO8(ecx)); /* 0x3604BB04: mov dl, cl */
   5407     _flag_a = (uint32_t)((LO8(edx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(eax))) << 24;
   5408     SET_LO8(edx, LO8(edx) | LO8(eax)); /* 0x3604BB06: or dl, al */
   5409     _cf = 0;
   5410     _flag_k = FK_NARROW(FK_TEST, 24);
   5411     PUSH32(esp, 0x3604BC10u); /* 0x3604BB08: push 0x3604bc10 */
   5412     MEM8(0x363066E6) = (uint8_t)(LO8(edx)); /* 0x3604BB0D: mov byte ptr [0x363066e6], dl */
   5413     MEM32(0x363066D8) = 0; /* 0x3604BB13: mov dword ptr [0x363066d8], 0 */
   5414     MEM32(0x363066DC) = 0; /* 0x3604BB1D: mov dword ptr [0x363066dc], 0 */
   5415     MEM32(0x363066E0) = 0; /* 0x3604BB27: mov dword ptr [0x363066e0], 0 */
   5416     RECOMP_ICALL(0x3615FEB2u); /* 0x3604BB31: call 0x3615feb2 */ /* not lifted */
   5417     RECOMP_FLAGS_IN();
   5418     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5420     esp = esp + 4; /* 0x3604BB36: add esp, 4 */
   5421     _flag_k = FK_ADD;
   5422 L_3604BB39:
   5423     PUSH32(esp, 0x363066D8u); /* 0x3604BB39: push 0x363066d8 */
   5424     ecx = esi; /* 0x3604BB3E: mov ecx, esi */
   5425     RECOMP_ICALL(MEM32(0x361702D4)); /* 0x3604BB40: call dword ptr [0x361702d4] */
   5426     RECOMP_FLAGS_IN();
   5427     fp_push(*(float*)&MEM32(esi + 0x330)); /* 0x3604BB46: fld dword ptr [esi + 0x330] */
   5428     MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x3604BB4C: mov dword ptr [ebp - 0x14], 0x3f800000 */
   5429     ecx = MEM32(ebp + (-0x14)); /* 0x3604BB53: mov ecx, dword ptr [ebp - 0x14] */
   5430     MEM32(ebp + (-0x20)) = ecx; /* 0x3604BB56: mov dword ptr [ebp - 0x20], ecx */
   5431     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3604BB59: fld dword ptr [ebp - 0x20] */
   5432     ecx = MEM32(0x363066DC); /* 0x3604BB5C: mov ecx, dword ptr [0x363066dc] */
   5433     _st[0] *= _st[1]; /* 0x3604BB62: fmul st(1) */
   5434     MEM32(ebp + (-0x10)) = 0; /* 0x3604BB64: mov dword ptr [ebp - 0x10], 0 */
   5435     edx = MEM32(ebp + (-0x10)); /* 0x3604BB6B: mov edx, dword ptr [ebp - 0x10] */
   5436     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3604BB6E: fstp dword ptr [ebp - 0x20] */
   5437     MEM32(ebp + (-0x1C)) = edx; /* 0x3604BB71: mov dword ptr [ebp - 0x1c], edx */
   5438     edx = MEM32(0x363066E0); /* 0x3604BB74: mov edx, dword ptr [0x363066e0] */
   5439     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3604BB7A: fmul dword ptr [ebp - 0x1c] */
   5440     MEM32(ebp + (-0x18)) = 0; /* 0x3604BB7D: mov dword ptr [ebp - 0x18], 0 */
   5441     fp_push(*(float*)&MEM32(esi + 0x328)); /* 0x3604BB84: fld dword ptr [esi + 0x328] */
   5442     eax = MEM32(ebp + (-0x18)); /* 0x3604BB8A: mov eax, dword ptr [ebp - 0x18] */
   5443     fp_push(*(float*)&MEM32(0x363066D8)); /* 0x3604BB8D: fld dword ptr [0x363066d8] */
   5444     MEM32(ebp + (-0x24)) = eax; /* 0x3604BB93: mov dword ptr [ebp - 0x24], eax */
   5445     eax = MEM32(0x363066D8); /* 0x3604BB96: mov eax, dword ptr [0x363066d8] */
   5446     _st[0] *= _st[1]; /* 0x3604BB9B: fmul st(1) */
   5447     MEM32(ebp + (-0xC)) = eax; /* 0x3604BB9D: mov dword ptr [ebp - 0xc], eax */
   5448     MEM32(ebp + (-0x8)) = ecx; /* 0x3604BBA0: mov dword ptr [ebp - 8], ecx */
   5449     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3604BBA3: fstp dword ptr [ebp - 0xc] */
   5450     eax = MEM32(ebp + (-0xC)); /* 0x3604BBA6: mov eax, dword ptr [ebp - 0xc] */
   5451     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3604BBA9: fld dword ptr [ebp - 8] */
   5452     MEM32(ebp + (-0x4)) = edx; /* 0x3604BBAC: mov dword ptr [ebp - 4], edx */
   5453     _st[0] *= _st[1]; /* 0x3604BBAF: fmul st(1) */
   5454     MEM32(ebp + (-0x24)) = 0; /* 0x3604BBB1: mov dword ptr [ebp - 0x24], 0 */
   5455     MEM32(ebp + (-0x18)) = eax; /* 0x3604BBB8: mov dword ptr [ebp - 0x18], eax */
   5456     eax = MEM32(ebp + 0x8); /* 0x3604BBBB: mov eax, dword ptr [ebp + 8] */
   5457     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3604BBBE: fstp dword ptr [ebp - 8] */
   5458     ecx = MEM32(ebp + (-0x8)); /* 0x3604BBC1: mov ecx, dword ptr [ebp - 8] */
   5459     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3604BBC4: fld dword ptr [ebp - 4] */
   5460     MEM32(ebp + (-0x14)) = ecx; /* 0x3604BBC7: mov dword ptr [ebp - 0x14], ecx */
   5461     _st[0] *= _st[1]; /* 0x3604BBCA: fmul st(1) */
   5462     esi = POP32_VAL(esp); /* 0x3604BBCC: pop esi */
   5463     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3604BBCD: fstp dword ptr [ebp - 4] */
   5464     edx = MEM32(ebp + (-0x4)); /* 0x3604BBD0: mov edx, dword ptr [ebp - 4] */
   5465     MEM32(ebp + (-0x10)) = edx; /* 0x3604BBD3: mov dword ptr [ebp - 0x10], edx */
   5466     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604BBD6: fstp st(0) */
   5467     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3604BBD8: fld dword ptr [ebp - 0xc] */
   5468     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3604BBDB: fadd dword ptr [ebp - 0x24] */
   5469     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3604BBDE: fstp dword ptr [ebp - 0x18] */
   5470     ecx = MEM32(ebp + (-0x18)); /* 0x3604BBE1: mov ecx, dword ptr [ebp - 0x18] */
   5471     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3604BBE4: fld dword ptr [ebp - 0x14] */
   5472     MEM32(eax) = ecx; /* 0x3604BBE7: mov dword ptr [eax], ecx */
   5473     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3604BBE9: fadd dword ptr [ebp - 0x20] */
   5474     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3604BBEC: fstp dword ptr [ebp - 0x14] */
   5475     edx = MEM32(ebp + (-0x14)); /* 0x3604BBEF: mov edx, dword ptr [ebp - 0x14] */
   5476     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3604BBF2: fld dword ptr [ebp - 0x10] */
   5477     MEM32(eax + 0x4) = edx; /* 0x3604BBF5: mov dword ptr [eax + 4], edx */
   5478     _st[0] += _st[1]; /* 0x3604BBF8: fadd st(1) */
   5479     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3604BBFA: fstp dword ptr [ebp - 0x10] */
   5480     ecx = MEM32(ebp + (-0x10)); /* 0x3604BBFD: mov ecx, dword ptr [ebp - 0x10] */
   5481     MEM32(eax + 0x8) = ecx; /* 0x3604BC00: mov dword ptr [eax + 8], ecx */
   5482     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604BC03: fstp st(0) */
   5483     eax = 3; /* 0x3604BC05: mov eax, 3 */
   5484     esp = ebp; /* 0x3604BC0A: mov esp, ebp */
   5485     ebp = POP32_VAL(esp); /* 0x3604BC0C: pop ebp */
   5486     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BC0D: ret 4 */
   5487     RECOMP_REGS_OUT();
   5488 }
   5489 
   5490 void sub_3604BB84(void) {
   5491     int _fpu_cmp = 0;
   5492     uint32_t _cf = 0;
   5493     int _df = 1;
   5494     uint32_t _flag_k = FK_NONE;
   5495     uint32_t _flag_a = 0, _flag_b = 0;
   5496     uint32_t _itail_tgt = 0;
   5497     RECOMP_REGS_LOCALS
   5498     RECOMP_ENTER(0x3604BB84u);
   5499 
   5500 L_3604BB84:
   5501     fp_push(*(float*)&MEM32(esi + 0x328)); /* 0x3604BB84: fld dword ptr [esi + 0x328] */
   5502     eax = MEM32(ebp + (-0x18)); /* 0x3604BB8A: mov eax, dword ptr [ebp - 0x18] */
   5503     fp_push(*(float*)&MEM32(0x363066D8)); /* 0x3604BB8D: fld dword ptr [0x363066d8] */
   5504     MEM32(ebp + (-0x24)) = eax; /* 0x3604BB93: mov dword ptr [ebp - 0x24], eax */
   5505     eax = MEM32(0x363066D8); /* 0x3604BB96: mov eax, dword ptr [0x363066d8] */
   5506     _st[0] *= _st[1]; /* 0x3604BB9B: fmul st(1) */
   5507     MEM32(ebp + (-0xC)) = eax; /* 0x3604BB9D: mov dword ptr [ebp - 0xc], eax */
   5508     MEM32(ebp + (-0x8)) = ecx; /* 0x3604BBA0: mov dword ptr [ebp - 8], ecx */
   5509     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3604BBA3: fstp dword ptr [ebp - 0xc] */
   5510     eax = MEM32(ebp + (-0xC)); /* 0x3604BBA6: mov eax, dword ptr [ebp - 0xc] */
   5511     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3604BBA9: fld dword ptr [ebp - 8] */
   5512     MEM32(ebp + (-0x4)) = edx; /* 0x3604BBAC: mov dword ptr [ebp - 4], edx */
   5513     _st[0] *= _st[1]; /* 0x3604BBAF: fmul st(1) */
   5514     MEM32(ebp + (-0x24)) = 0; /* 0x3604BBB1: mov dword ptr [ebp - 0x24], 0 */
   5515     MEM32(ebp + (-0x18)) = eax; /* 0x3604BBB8: mov dword ptr [ebp - 0x18], eax */
   5516     eax = MEM32(ebp + 0x8); /* 0x3604BBBB: mov eax, dword ptr [ebp + 8] */
   5517     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3604BBBE: fstp dword ptr [ebp - 8] */
   5518     ecx = MEM32(ebp + (-0x8)); /* 0x3604BBC1: mov ecx, dword ptr [ebp - 8] */
   5519     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3604BBC4: fld dword ptr [ebp - 4] */
   5520     MEM32(ebp + (-0x14)) = ecx; /* 0x3604BBC7: mov dword ptr [ebp - 0x14], ecx */
   5521     _st[0] *= _st[1]; /* 0x3604BBCA: fmul st(1) */
   5522     esi = POP32_VAL(esp); /* 0x3604BBCC: pop esi */
   5523     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3604BBCD: fstp dword ptr [ebp - 4] */
   5524     edx = MEM32(ebp + (-0x4)); /* 0x3604BBD0: mov edx, dword ptr [ebp - 4] */
   5525     MEM32(ebp + (-0x10)) = edx; /* 0x3604BBD3: mov dword ptr [ebp - 0x10], edx */
   5526     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604BBD6: fstp st(0) */
   5527     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3604BBD8: fld dword ptr [ebp - 0xc] */
   5528     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3604BBDB: fadd dword ptr [ebp - 0x24] */
   5529     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3604BBDE: fstp dword ptr [ebp - 0x18] */
   5530     ecx = MEM32(ebp + (-0x18)); /* 0x3604BBE1: mov ecx, dword ptr [ebp - 0x18] */
   5531     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3604BBE4: fld dword ptr [ebp - 0x14] */
   5532     MEM32(eax) = ecx; /* 0x3604BBE7: mov dword ptr [eax], ecx */
   5533     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3604BBE9: fadd dword ptr [ebp - 0x20] */
   5534     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3604BBEC: fstp dword ptr [ebp - 0x14] */
   5535     edx = MEM32(ebp + (-0x14)); /* 0x3604BBEF: mov edx, dword ptr [ebp - 0x14] */
   5536     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3604BBF2: fld dword ptr [ebp - 0x10] */
   5537     MEM32(eax + 0x4) = edx; /* 0x3604BBF5: mov dword ptr [eax + 4], edx */
   5538     _st[0] += _st[1]; /* 0x3604BBF8: fadd st(1) */
   5539     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3604BBFA: fstp dword ptr [ebp - 0x10] */
   5540     ecx = MEM32(ebp + (-0x10)); /* 0x3604BBFD: mov ecx, dword ptr [ebp - 0x10] */
   5541     MEM32(eax + 0x8) = ecx; /* 0x3604BC00: mov dword ptr [eax + 8], ecx */
   5542     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3604BC03: fstp st(0) */
   5543     eax = 3; /* 0x3604BC05: mov eax, 3 */
   5544     esp = ebp; /* 0x3604BC0A: mov esp, ebp */
   5545     ebp = POP32_VAL(esp); /* 0x3604BC0C: pop ebp */
   5546     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BC0D: ret 4 */
   5547     RECOMP_REGS_OUT();
   5548 }
   5549 
   5550 void sub_3604BC10(void) {
   5551     int _fpu_cmp = 0;
   5552     uint32_t _cf = 0;
   5553     int _df = 1;
   5554     uint32_t _flag_k = FK_NONE;
   5555     uint32_t _flag_a = 0, _flag_b = 0;
   5556     uint32_t _itail_tgt = 0;
   5557     RECOMP_REGS_LOCALS
   5558     RECOMP_ENTER(0x3604BC10u);
   5559 
   5560 L_3604BC10:
   5561     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604BC10: ret  */
   5562     RECOMP_REGS_OUT();
   5563 }
   5564 
   5565 void sub_3604BC20(void) {
   5566     int _fpu_cmp = 0;
   5567     uint32_t _cf = 0;
   5568     int _df = 1;
   5569     uint32_t _flag_k = FK_NONE;
   5570     uint32_t _flag_a = 0, _flag_b = 0;
   5571     uint32_t _itail_tgt = 0;
   5572     RECOMP_REGS_LOCALS
   5573     RECOMP_ENTER(0x3604BC20u);
   5574 
   5575 L_3604BC20:
   5576     PUSH32(esp, ebp); /* 0x3604BC20: push ebp */
   5577     ebp = esp; /* 0x3604BC21: mov ebp, esp */
   5578     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5579     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5580     esp = esp - 0xCu; /* 0x3604BC23: sub esp, 0xc */
   5581     _flag_k = FK_CMP;
   5582     fp_push(*(float*)&MEM32(ecx + 0x32C)); /* 0x3604BC26: fld dword ptr [ecx + 0x32c] */
   5583     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x3604BC2C: fcomp qword ptr [0x36170430] */
   5584     fp_pop();
   5585     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604BC32: fnstsw ax */
   5586     /* test HI8(eax), 0x40u */ /* 0x3604BC34: test ah, 0x40 */
   5587     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5588     _cf = 0;
   5589     _flag_k = FK_NARROW(FK_TEST, 24);
   5590     if (TEST_Z(_flag_a, _flag_b)) goto L_3604BC41; /* 0x3604BC37: je 0x3604bc41 */
   5591 L_3604BC39:
   5592     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5593     eax = 0; /* 0x3604BC39: xor eax, eax */
   5594     _cf = 0;
   5595     _flag_k = FK_TEST;
   5596     esp = ebp; /* 0x3604BC3B: mov esp, ebp */
   5597     ebp = POP32_VAL(esp); /* 0x3604BC3D: pop ebp */
   5598     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BC3E: ret 4 */
   5599 L_3604BC41:
   5600     fp_push(*(float*)&MEM32(ecx + 0x32C)); /* 0x3604BC41: fld dword ptr [ecx + 0x32c] */
   5601     eax = MEM32(ebp + 0x8); /* 0x3604BC47: mov eax, dword ptr [ebp + 8] */
   5602     MEM32(ebp + (-0xC)) = 0; /* 0x3604BC4A: mov dword ptr [ebp - 0xc], 0 */
   5603     ecx = MEM32(ebp + (-0xC)); /* 0x3604BC51: mov ecx, dword ptr [ebp - 0xc] */
   5604     MEM32(eax) = ecx; /* 0x3604BC54: mov dword ptr [eax], ecx */
   5605     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3604BC56: fstp dword ptr [ebp - 8] */
   5606     edx = MEM32(ebp + (-0x8)); /* 0x3604BC59: mov edx, dword ptr [ebp - 8] */
   5607     MEM32(ebp + (-0x4)) = 0; /* 0x3604BC5C: mov dword ptr [ebp - 4], 0 */
   5608     ecx = MEM32(ebp + (-0x4)); /* 0x3604BC63: mov ecx, dword ptr [ebp - 4] */
   5609     MEM32(eax + 0x4) = edx; /* 0x3604BC66: mov dword ptr [eax + 4], edx */
   5610     MEM32(eax + 0x8) = ecx; /* 0x3604BC69: mov dword ptr [eax + 8], ecx */
   5611     eax = 4; /* 0x3604BC6C: mov eax, 4 */
   5612     esp = ebp; /* 0x3604BC71: mov esp, ebp */
   5613     ebp = POP32_VAL(esp); /* 0x3604BC73: pop ebp */
   5614     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BC74: ret 4 */
   5615     RECOMP_REGS_OUT();
   5616 }
   5617 
   5618 void sub_3604BC80(void) {
   5619     int _fpu_cmp = 0;
   5620     uint32_t _cf = 0;
   5621     int _df = 1;
   5622     uint32_t _flag_k = FK_NONE;
   5623     uint32_t _flag_a = 0, _flag_b = 0;
   5624     uint32_t _itail_tgt = 0;
   5625     RECOMP_REGS_LOCALS
   5626     RECOMP_ENTER(0x3604BC80u);
   5627 
   5628 L_3604BC80:
   5629     PUSH32(esp, esi); /* 0x3604BC80: push esi */
   5630     esi = ecx; /* 0x3604BC81: mov esi, ecx */
   5631     RECOMP_ICALL(0x36048250u); /* 0x3604BC83: call 0x36048250 */ /* not lifted */
   5632     RECOMP_FLAGS_IN();
   5633     /* test LO8(eax), LO8(eax) */ /* 0x3604BC88: test al, al */
   5634     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5635     _cf = 0;
   5636     _flag_k = FK_NARROW(FK_TEST, 24);
   5637     if (TEST_Z(_flag_a, _flag_b)) goto L_3604BC93; /* 0x3604BC8A: je 0x3604bc93 */
   5638 L_3604BC8C:
   5639     ecx = esi; /* 0x3604BC8C: mov ecx, esi */
   5640     RECOMP_ICALL(0x360481D0u); /* 0x3604BC8E: call 0x360481d0 */ /* not lifted */
   5641     RECOMP_FLAGS_IN();
   5642 L_3604BC93:
   5643     esi = POP32_VAL(esp); /* 0x3604BC93: pop esi */
   5644     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604BC94: ret  */
   5645     RECOMP_REGS_OUT();
   5646 }
   5647 
   5648 void sub_3604BCA0(void) {
   5649     int _fpu_cmp = 0;
   5650     uint32_t _cf = 0;
   5651     int _df = 1;
   5652     uint32_t _flag_k = FK_NONE;
   5653     uint32_t _flag_a = 0, _flag_b = 0;
   5654     uint32_t _itail_tgt = 0;
   5655     RECOMP_REGS_LOCALS
   5656     RECOMP_ENTER(0x3604BCA0u);
   5657 
   5658 L_3604BCA0:
   5659     PUSH32(esp, ebp); /* 0x3604BCA0: push ebp */
   5660     ebp = esp; /* 0x3604BCA1: mov ebp, esp */
   5661     eax = MEM32(ebp + 0x8); /* 0x3604BCA3: mov eax, dword ptr [ebp + 8] */
   5662     MEM32(ecx + 0x324) = eax; /* 0x3604BCA6: mov dword ptr [ecx + 0x324], eax */
   5663     ebp = POP32_VAL(esp); /* 0x3604BCAC: pop ebp */
   5664     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BCAD: ret 4 */
   5665     RECOMP_REGS_OUT();
   5666 }
   5667 
   5668 void sub_3604BCB0(void) {
   5669     int _fpu_cmp = 0;
   5670     uint32_t _cf = 0;
   5671     int _df = 1;
   5672     uint32_t _flag_k = FK_NONE;
   5673     uint32_t _flag_a = 0, _flag_b = 0;
   5674     uint32_t _itail_tgt = 0;
   5675     RECOMP_REGS_LOCALS
   5676     RECOMP_ENTER(0x3604BCB0u);
   5677 
   5678 L_3604BCB0:
   5679     PUSH32(esp, ebp); /* 0x3604BCB0: push ebp */
   5680     ebp = esp; /* 0x3604BCB1: mov ebp, esp */
   5681     eax = MEM32(ebp + 0x8); /* 0x3604BCB3: mov eax, dword ptr [ebp + 8] */
   5682     MEM32(ecx + 0x32C) = eax; /* 0x3604BCB6: mov dword ptr [ecx + 0x32c], eax */
   5683     ebp = POP32_VAL(esp); /* 0x3604BCBC: pop ebp */
   5684     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BCBD: ret 4 */
   5685     RECOMP_REGS_OUT();
   5686 }
   5687 
   5688 void sub_3604BCC0(void) {
   5689     int _fpu_cmp = 0;
   5690     uint32_t _cf = 0;
   5691     int _df = 1;
   5692     uint32_t _flag_k = FK_NONE;
   5693     uint32_t _flag_a = 0, _flag_b = 0;
   5694     uint32_t _itail_tgt = 0;
   5695     RECOMP_REGS_LOCALS
   5696     RECOMP_ENTER(0x3604BCC0u);
   5697 
   5698 L_3604BCC0:
   5699     PUSH32(esp, ebp); /* 0x3604BCC0: push ebp */
   5700     ebp = esp; /* 0x3604BCC1: mov ebp, esp */
   5701     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3604BCC3: fld dword ptr [ebp + 8] */
   5702     PUSH32(esp, esi); /* 0x3604BCC6: push esi */
   5703     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x3604BCC7: fcomp qword ptr [0x36170430] */
   5704     fp_pop();
   5705     esi = ecx; /* 0x3604BCCD: mov esi, ecx */
   5706     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604BCCF: fnstsw ax */
   5707     /* test HI8(eax), 0x41u */ /* 0x3604BCD1: test ah, 0x41 */
   5708     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5709     _cf = 0;
   5710     _flag_k = FK_NARROW(FK_TEST, 24);
   5711     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604BCDF; /* 0x3604BCD4: jne 0x3604bcdf */
   5712 L_3604BCD6:
   5713     MEM32(ebp + 0x8) = 0x3F800000u; /* 0x3604BCD6: mov dword ptr [ebp + 8], 0x3f800000 */
   5714     goto L_3604BCFD; /* 0x3604BCDD: jmp 0x3604bcfd */
   5715 L_3604BCDF:
   5716     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3604BCDF: fld dword ptr [ebp + 8] */
   5717     MEM32(ebp + 0x8) = 0; /* 0x3604BCE2: mov dword ptr [ebp + 8], 0 */
   5718     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3604BCE9: fcomp dword ptr [0x3617040c] */
   5719     fp_pop();
   5720     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3604BCEF: fnstsw ax */
   5721     /* test HI8(eax), 0x40u */ /* 0x3604BCF1: test ah, 0x40 */
   5722     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5723     _cf = 0;
   5724     _flag_k = FK_NARROW(FK_TEST, 24);
   5725     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604BCFD; /* 0x3604BCF4: jne 0x3604bcfd */
   5726 L_3604BCF6:
   5727     MEM32(ebp + 0x8) = 0xBF800000u; /* 0x3604BCF6: mov dword ptr [ebp + 8], 0xbf800000 */
   5728 L_3604BCFD:
   5729     eax = MEM32(esi); /* 0x3604BCFD: mov eax, dword ptr [esi] */
   5730     ecx = esi; /* 0x3604BCFF: mov ecx, esi */
   5731     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x3604BD01: call dword ptr [eax + 0x7c] */
   5732     RECOMP_FLAGS_IN();
   5733     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x3604BD04: fmul dword ptr [ebp + 8] */
   5734     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x328) = _v; } /* 0x3604BD07: fstp dword ptr [esi + 0x328] */
   5735     esi = POP32_VAL(esp); /* 0x3604BD0D: pop esi */
   5736     ebp = POP32_VAL(esp); /* 0x3604BD0E: pop ebp */
   5737     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BD0F: ret 4 */
   5738     RECOMP_REGS_OUT();
   5739 }
   5740 
   5741 void sub_3604BD20(void) {
   5742     int _fpu_cmp = 0;
   5743     uint32_t _cf = 0;
   5744     int _df = 1;
   5745     uint32_t _flag_k = FK_NONE;
   5746     uint32_t _flag_a = 0, _flag_b = 0;
   5747     uint32_t _itail_tgt = 0;
   5748     RECOMP_REGS_LOCALS
   5749     RECOMP_ENTER(0x3604BD20u);
   5750 
   5751 L_3604BD20:
   5752     PUSH32(esp, ebp); /* 0x3604BD20: push ebp */
   5753     ebp = esp; /* 0x3604BD21: mov ebp, esp */
   5754     eax = MEM32(ebp + 0x8); /* 0x3604BD23: mov eax, dword ptr [ebp + 8] */
   5755     MEM32(ecx + 0x330) = eax; /* 0x3604BD26: mov dword ptr [ecx + 0x330], eax */
   5756     ebp = POP32_VAL(esp); /* 0x3604BD2C: pop ebp */
   5757     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BD2D: ret 4 */
   5758     RECOMP_REGS_OUT();
   5759 }
   5760 
   5761 void sub_3604BD30(void) {
   5762     int _fpu_cmp = 0;
   5763     uint32_t _cf = 0;
   5764     int _df = 1;
   5765     uint32_t _flag_k = FK_NONE;
   5766     uint32_t _flag_a = 0, _flag_b = 0;
   5767     uint32_t _itail_tgt = 0;
   5768     RECOMP_REGS_LOCALS
   5769     RECOMP_ENTER(0x3604BD30u);
   5770 
   5771 L_3604BD30:
   5772     PUSH32(esp, ebp); /* 0x3604BD30: push ebp */
   5773     ebp = esp; /* 0x3604BD31: mov ebp, esp */
   5774     eax = MEM32(ebp + 0xC); /* 0x3604BD33: mov eax, dword ptr [ebp + 0xc] */
   5775     edx = MEM32(ebp + 0x8); /* 0x3604BD36: mov edx, dword ptr [ebp + 8] */
   5776     ecx = MEM32(ecx + 0x334); /* 0x3604BD39: mov ecx, dword ptr [ecx + 0x334] */
   5777     PUSH32(esp, eax); /* 0x3604BD3F: push eax */
   5778     PUSH32(esp, edx); /* 0x3604BD40: push edx */
   5779     RECOMP_ICALL(0x36049F10u); /* 0x3604BD41: call 0x36049f10 */ /* not lifted */
   5780     RECOMP_FLAGS_IN();
   5781     ebp = POP32_VAL(esp); /* 0x3604BD46: pop ebp */
   5782     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604BD47: ret 8 */
   5783     RECOMP_REGS_OUT();
   5784 }
   5785 
   5786 void sub_3604BD50(void) {
   5787     int _fpu_cmp = 0;
   5788     uint32_t _cf = 0;
   5789     int _df = 1;
   5790     uint32_t _flag_k = FK_NONE;
   5791     uint32_t _flag_a = 0, _flag_b = 0;
   5792     uint32_t _itail_tgt = 0;
   5793     RECOMP_REGS_LOCALS
   5794     RECOMP_ENTER(0x3604BD50u);
   5795 
   5796     goto L_3604BD50;
   5797 L_3604A540:
   5798     PUSH32(esp, ebp); /* 0x3604A540: push ebp */
   5799     ebp = esp; /* 0x3604A541: mov ebp, esp */
   5800     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604A543: push -1 */
   5801     PUSH32(esp, 0x36163F8Bu); /* 0x3604A545: push 0x36163f8b */
   5802     eax = MEM32(FS_BASE + (0)); /* 0x3604A54A: mov eax, dword ptr fs:[0] */
   5803     PUSH32(esp, eax); /* 0x3604A550: push eax */
   5804     MEM32(FS_BASE + (0)) = esp; /* 0x3604A551: mov dword ptr fs:[0], esp */
   5805     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5807     esp = esp - 8; /* 0x3604A558: sub esp, 8 */
   5808     _flag_k = FK_CMP;
   5809     PUSH32(esp, ebx); /* 0x3604A55B: push ebx */
   5810     PUSH32(esp, esi); /* 0x3604A55C: push esi */
   5811     PUSH32(esp, edi); /* 0x3604A55D: push edi */
   5812     PUSH32(esp, 0x6Cu); /* 0x3604A55E: push 0x6c */
   5813     esi = ecx; /* 0x3604A560: mov esi, ecx */
   5814     RECOMP_ICALL(0x3615FD6Au); /* 0x3604A562: call 0x3615fd6a */ /* not lifted */
   5815     RECOMP_FLAGS_IN();
   5816     edi = eax; /* 0x3604A567: mov edi, eax */
   5817     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5819     esp = esp + 4; /* 0x3604A569: add esp, 4 */
   5820     _flag_k = FK_ADD;
   5821     MEM32(ebp + (-0x14)) = edi; /* 0x3604A56C: mov dword ptr [ebp - 0x14], edi */
   5822     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5823     eax = 0; /* 0x3604A56F: xor eax, eax */
   5824     _cf = 0;
   5825     _flag_k = FK_TEST;
   5826     /* cmp edi, eax */ /* 0x3604A571: cmp edi, eax */
   5827     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5829     _flag_k = FK_CMP;
   5830     MEM32(ebp + (-0x4)) = eax; /* 0x3604A573: mov dword ptr [ebp - 4], eax */
   5831     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604A608; /* 0x3604A576: je 0x3604a608 */
   5832 L_3604A57C:
   5833     ecx = MEM32(esi); /* 0x3604A57C: mov ecx, dword ptr [esi] */
   5834     PUSH32(esp, 1); /* 0x3604A57E: push 1 */
   5835     edx = esi + 0x30; /* 0x3604A580: lea edx, [esi + 0x30] */
   5836     ebx = MEM32(edx); /* 0x3604A583: mov ebx, dword ptr [edx] */
   5837     eax = ecx + 0x4; /* 0x3604A585: lea eax, [ecx + 4] */
   5838     MEM32(ebp + (-0x10)) = eax; /* 0x3604A588: mov dword ptr [ebp - 0x10], eax */
   5839     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5841     esp = esp - 0x10u; /* 0x3604A58B: sub esp, 0x10 */
   5842     _flag_k = FK_CMP;
   5843     eax = esp; /* 0x3604A58E: mov eax, esp */
   5844     MEM32(eax) = ebx; /* 0x3604A590: mov dword ptr [eax], ebx */
   5845     ebx = MEM32(edx + 0x4); /* 0x3604A592: mov ebx, dword ptr [edx + 4] */
   5846     MEM32(eax + 0x4) = ebx; /* 0x3604A595: mov dword ptr [eax + 4], ebx */
   5847     ebx = MEM32(edx + 0x8); /* 0x3604A598: mov ebx, dword ptr [edx + 8] */
   5848     edx = MEM32(edx + 0xC); /* 0x3604A59B: mov edx, dword ptr [edx + 0xc] */
   5849     MEM32(eax + 0x8) = ebx; /* 0x3604A59E: mov dword ptr [eax + 8], ebx */
   5850     MEM32(eax + 0xC) = edx; /* 0x3604A5A1: mov dword ptr [eax + 0xc], edx */
   5851     eax = esi + 0x20; /* 0x3604A5A4: lea eax, [esi + 0x20] */
   5852     ebx = MEM32(eax); /* 0x3604A5A7: mov ebx, dword ptr [eax] */
   5853     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5855     esp = esp - 0x10u; /* 0x3604A5A9: sub esp, 0x10 */
   5856     _flag_k = FK_CMP;
   5857     edx = esp; /* 0x3604A5AC: mov edx, esp */
   5858     MEM32(edx) = ebx; /* 0x3604A5AE: mov dword ptr [edx], ebx */
   5859     ebx = MEM32(eax + 0x4); /* 0x3604A5B0: mov ebx, dword ptr [eax + 4] */
   5860     MEM32(edx + 0x4) = ebx; /* 0x3604A5B3: mov dword ptr [edx + 4], ebx */
   5861     ebx = MEM32(eax + 0x8); /* 0x3604A5B6: mov ebx, dword ptr [eax + 8] */
   5862     eax = MEM32(eax + 0xC); /* 0x3604A5B9: mov eax, dword ptr [eax + 0xc] */
   5863     MEM32(edx + 0x8) = ebx; /* 0x3604A5BC: mov dword ptr [edx + 8], ebx */
   5864     MEM32(edx + 0xC) = eax; /* 0x3604A5BF: mov dword ptr [edx + 0xc], eax */
   5865     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   5866     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5867     esi = esi + 0x10u; /* 0x3604A5C2: add esi, 0x10 */
   5868     _flag_k = FK_ADD;
   5869     eax = MEM32(esi); /* 0x3604A5C5: mov eax, dword ptr [esi] */
   5870     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5872     esp = esp - 0x10u; /* 0x3604A5C7: sub esp, 0x10 */
   5873     _flag_k = FK_CMP;
   5874     edx = esp; /* 0x3604A5CA: mov edx, esp */
   5875     MEM32(edx) = eax; /* 0x3604A5CC: mov dword ptr [edx], eax */
   5876     eax = MEM32(esi + 0x4); /* 0x3604A5CE: mov eax, dword ptr [esi + 4] */
   5877     MEM32(edx + 0x4) = eax; /* 0x3604A5D1: mov dword ptr [edx + 4], eax */
   5878     eax = MEM32(esi + 0x8); /* 0x3604A5D4: mov eax, dword ptr [esi + 8] */
   5879     MEM32(edx + 0x8) = eax; /* 0x3604A5D7: mov dword ptr [edx + 8], eax */
   5880     eax = MEM32(esi + 0xC); /* 0x3604A5DA: mov eax, dword ptr [esi + 0xc] */
   5881     MEM32(edx + 0xC) = eax; /* 0x3604A5DD: mov dword ptr [edx + 0xc], eax */
   5882     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x3604A5E0: call dword ptr [0x361700a8] */
   5883     RECOMP_FLAGS_IN();
   5884     edx = MEM32(eax); /* 0x3604A5E6: mov edx, dword ptr [eax] */
   5885     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5887     esp = esp - 0xCu; /* 0x3604A5E8: sub esp, 0xc */
   5888     _flag_k = FK_CMP;
   5889     ecx = esp; /* 0x3604A5EB: mov ecx, esp */
   5890     MEM32(ecx) = edx; /* 0x3604A5ED: mov dword ptr [ecx], edx */
   5891     edx = MEM32(eax + 0x4); /* 0x3604A5EF: mov edx, dword ptr [eax + 4] */
   5892     eax = MEM32(eax + 0x8); /* 0x3604A5F2: mov eax, dword ptr [eax + 8] */
   5893     MEM32(ecx + 0x4) = edx; /* 0x3604A5F5: mov dword ptr [ecx + 4], edx */
   5894     MEM32(ecx + 0x8) = eax; /* 0x3604A5F8: mov dword ptr [ecx + 8], eax */
   5895     ecx = MEM32(ebp + (-0x10)); /* 0x3604A5FB: mov ecx, dword ptr [ebp - 0x10] */
   5896     PUSH32(esp, 0x14u); /* 0x3604A5FE: push 0x14 */
   5897     PUSH32(esp, ecx); /* 0x3604A600: push ecx */
   5898     ecx = edi; /* 0x3604A601: mov ecx, edi */
   5899     RECOMP_ICALL(0x36047200u); /* 0x3604A603: call 0x36047200 */ /* not lifted */
   5900     RECOMP_FLAGS_IN();
   5901 L_3604A608:
   5902     edx = MEM32(0x3616FF74); /* 0x3604A608: mov edx, dword ptr [0x3616ff74] */
   5903     ecx = MEM32(edx); /* 0x3604A60E: mov ecx, dword ptr [edx] */
   5904     edx = MEM32(ecx); /* 0x3604A610: mov edx, dword ptr [ecx] */
   5905     PUSH32(esp, eax); /* 0x3604A612: push eax */
   5906     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604A613: mov dword ptr [ebp - 4], 0xffffffff */
   5907     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3604A61A: call dword ptr [edx + 0x38] */
   5908     RECOMP_FLAGS_IN();
   5909     ecx = MEM32(ebp + (-0xC)); /* 0x3604A61D: mov ecx, dword ptr [ebp - 0xc] */
   5910     edi = POP32_VAL(esp); /* 0x3604A620: pop edi */
   5911     esi = POP32_VAL(esp); /* 0x3604A621: pop esi */
   5912     MEM32(FS_BASE + (0)) = ecx; /* 0x3604A622: mov dword ptr fs:[0], ecx */
   5913     ebx = POP32_VAL(esp); /* 0x3604A629: pop ebx */
   5914     esp = ebp; /* 0x3604A62A: mov esp, ebp */
   5915     ebp = POP32_VAL(esp); /* 0x3604A62C: pop ebp */
   5916     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604A62D: ret  */
   5917 L_3604BD50:
   5918     ecx = MEM32(ecx + 0x334); /* 0x3604BD50: mov ecx, dword ptr [ecx + 0x334] */
   5919     RECOMP_BACKEDGE();
   5920     goto L_3604A540; /* 0x3604BD56: jmp 0x3604a540 */
   5921     { RECOMP_REGS_OUT(); return; } /* end of function */
   5922     RECOMP_REGS_OUT();
   5923 }
   5924 
   5925 void sub_3604BD60(void) {
   5926     int _fpu_cmp = 0;
   5927     uint32_t _cf = 0;
   5928     int _df = 1;
   5929     uint32_t _flag_k = FK_NONE;
   5930     uint32_t _flag_a = 0, _flag_b = 0;
   5931     uint32_t _itail_tgt = 0;
   5932     RECOMP_REGS_LOCALS
   5933     RECOMP_ENTER(0x3604BD60u);
   5934 
   5935 L_3604BD60:
   5936     PUSH32(esp, ebp); /* 0x3604BD60: push ebp */
   5937     ebp = esp; /* 0x3604BD61: mov ebp, esp */
   5938     PUSH32(esp, ebx); /* 0x3604BD63: push ebx */
   5939     PUSH32(esp, esi); /* 0x3604BD64: push esi */
   5940     PUSH32(esp, edi); /* 0x3604BD65: push edi */
   5941     edi = MEM32(ebp + 0x8); /* 0x3604BD66: mov edi, dword ptr [ebp + 8] */
   5942     esi = ecx; /* 0x3604BD69: mov esi, ecx */
   5943     PUSH32(esp, edi); /* 0x3604BD6B: push edi */
   5944     RECOMP_ICALL(0x360491E0u); /* 0x3604BD6C: call 0x360491e0 */ /* not lifted */
   5945     RECOMP_FLAGS_IN();
   5946     eax = MEM32(esi + 0x324); /* 0x3604BD71: mov eax, dword ptr [esi + 0x324] */
   5947     ebx = MEM32(0x3616FAD4); /* 0x3604BD77: mov ebx, dword ptr [0x3616fad4] */
   5948     PUSH32(esp, eax); /* 0x3604BD7D: push eax */
   5949     ecx = edi; /* 0x3604BD7E: mov ecx, edi */
   5950     RECOMP_ICALL(ebx); /* 0x3604BD80: call ebx */
   5951     RECOMP_FLAGS_IN();
   5952     ecx = MEM32(esi + 0x328); /* 0x3604BD82: mov ecx, dword ptr [esi + 0x328] */
   5953     PUSH32(esp, ecx); /* 0x3604BD88: push ecx */
   5954     ecx = edi; /* 0x3604BD89: mov ecx, edi */
   5955     RECOMP_ICALL(ebx); /* 0x3604BD8B: call ebx */
   5956     RECOMP_FLAGS_IN();
   5957     edx = MEM32(esi + 0x32C); /* 0x3604BD8D: mov edx, dword ptr [esi + 0x32c] */
   5958     PUSH32(esp, edx); /* 0x3604BD93: push edx */
   5959     ecx = edi; /* 0x3604BD94: mov ecx, edi */
   5960     RECOMP_ICALL(ebx); /* 0x3604BD96: call ebx */
   5961     RECOMP_FLAGS_IN();
   5962     eax = MEM32(esi + 0x330); /* 0x3604BD98: mov eax, dword ptr [esi + 0x330] */
   5963     PUSH32(esp, eax); /* 0x3604BD9E: push eax */
   5964     ecx = edi; /* 0x3604BD9F: mov ecx, edi */
   5965     RECOMP_ICALL(ebx); /* 0x3604BDA1: call ebx */
   5966     RECOMP_FLAGS_IN();
   5967     edi = POP32_VAL(esp); /* 0x3604BDA3: pop edi */
   5968     esi = POP32_VAL(esp); /* 0x3604BDA4: pop esi */
   5969     ebx = POP32_VAL(esp); /* 0x3604BDA5: pop ebx */
   5970     ebp = POP32_VAL(esp); /* 0x3604BDA6: pop ebp */
   5971     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BDA7: ret 4 */
   5972     RECOMP_REGS_OUT();
   5973 }
   5974 
   5975 void sub_3604BDB0(void) {
   5976     int _fpu_cmp = 0;
   5977     uint32_t _cf = 0;
   5978     int _df = 1;
   5979     uint32_t _flag_k = FK_NONE;
   5980     uint32_t _flag_a = 0, _flag_b = 0;
   5981     uint32_t _itail_tgt = 0;
   5982     RECOMP_REGS_LOCALS
   5983     RECOMP_ENTER(0x3604BDB0u);
   5984 
   5985 L_3604BDB0:
   5986     PUSH32(esp, ebp); /* 0x3604BDB0: push ebp */
   5987     ebp = esp; /* 0x3604BDB1: mov ebp, esp */
   5988     PUSH32(esp, ebx); /* 0x3604BDB3: push ebx */
   5989     PUSH32(esp, esi); /* 0x3604BDB4: push esi */
   5990     PUSH32(esp, edi); /* 0x3604BDB5: push edi */
   5991     edi = MEM32(ebp + 0x8); /* 0x3604BDB6: mov edi, dword ptr [ebp + 8] */
   5992     esi = ecx; /* 0x3604BDB9: mov esi, ecx */
   5993     PUSH32(esp, edi); /* 0x3604BDBB: push edi */
   5994     RECOMP_ICALL(0x36049220u); /* 0x3604BDBC: call 0x36049220 */ /* not lifted */
   5995     RECOMP_FLAGS_IN();
   5996     ebx = MEM32(0x3616FAD0); /* 0x3604BDC1: mov ebx, dword ptr [0x3616fad0] */
   5997     eax = esi + 0x324; /* 0x3604BDC7: lea eax, [esi + 0x324] */
   5998     PUSH32(esp, eax); /* 0x3604BDCD: push eax */
   5999     ecx = edi; /* 0x3604BDCE: mov ecx, edi */
   6000     RECOMP_ICALL(ebx); /* 0x3604BDD0: call ebx */
   6001     RECOMP_FLAGS_IN();
   6002     ecx = esi + 0x328; /* 0x3604BDD2: lea ecx, [esi + 0x328] */
   6003     PUSH32(esp, ecx); /* 0x3604BDD8: push ecx */
   6004     ecx = edi; /* 0x3604BDD9: mov ecx, edi */
   6005     RECOMP_ICALL(ebx); /* 0x3604BDDB: call ebx */
   6006     RECOMP_FLAGS_IN();
   6007     edx = esi + 0x32C; /* 0x3604BDDD: lea edx, [esi + 0x32c] */
   6008     PUSH32(esp, edx); /* 0x3604BDE3: push edx */
   6009     ecx = edi; /* 0x3604BDE4: mov ecx, edi */
   6010     RECOMP_ICALL(ebx); /* 0x3604BDE6: call ebx */
   6011     RECOMP_FLAGS_IN();
   6012     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x330u);
   6013     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6014     esi = esi + 0x330u; /* 0x3604BDE8: add esi, 0x330 */
   6015     _flag_k = FK_ADD;
   6016     PUSH32(esp, esi); /* 0x3604BDEE: push esi */
   6017     ecx = edi; /* 0x3604BDEF: mov ecx, edi */
   6018     RECOMP_ICALL(ebx); /* 0x3604BDF1: call ebx */
   6019     RECOMP_FLAGS_IN();
   6020     edi = POP32_VAL(esp); /* 0x3604BDF3: pop edi */
   6021     esi = POP32_VAL(esp); /* 0x3604BDF4: pop esi */
   6022     ebx = POP32_VAL(esp); /* 0x3604BDF5: pop ebx */
   6023     ebp = POP32_VAL(esp); /* 0x3604BDF6: pop ebp */
   6024     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BDF7: ret 4 */
   6025     RECOMP_REGS_OUT();
   6026 }
   6027 
   6028 void sub_3604BE00(void) {
   6029     int _fpu_cmp = 0;
   6030     uint32_t _cf = 0;
   6031     int _df = 1;
   6032     uint32_t _flag_k = FK_NONE;
   6033     uint32_t _flag_a = 0, _flag_b = 0;
   6034     uint32_t _itail_tgt = 0;
   6035     RECOMP_REGS_LOCALS
   6036     RECOMP_ENTER(0x3604BE00u);
   6037 
   6038 L_3604BE00:
   6039     RECOMP_ICALL(0x360491D0u); /* 0x3604BE00: call 0x360491d0 */ /* not lifted */
   6040     RECOMP_FLAGS_IN();
   6041     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BE05: ret 4 */
   6042     RECOMP_REGS_OUT();
   6043 }
   6044 
   6045 void sub_3604BE10(void) {
   6046     int _fpu_cmp = 0;
   6047     uint32_t _cf = 0;
   6048     int _df = 1;
   6049     uint32_t _flag_k = FK_NONE;
   6050     uint32_t _flag_a = 0, _flag_b = 0;
   6051     uint32_t _itail_tgt = 0;
   6052     RECOMP_REGS_LOCALS
   6053     RECOMP_ENTER(0x3604BE10u);
   6054 
   6055     goto L_3604BE10;
   6056 L_3604B970:
   6057     PUSH32(esp, ebp); /* 0x3604B970: push ebp */
   6058     ebp = esp; /* 0x3604B971: mov ebp, esp */
   6059     PUSH32(esp, esi); /* 0x3604B973: push esi */
   6060     esi = ecx; /* 0x3604B974: mov esi, ecx */
   6061     RECOMP_ICALL(0x3604B9A0u); /* 0x3604B976: call 0x3604b9a0 */ /* not lifted */
   6062     RECOMP_FLAGS_IN();
   6063     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604B97B: test byte ptr [ebp + 8], 1 */
   6064     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6065     _cf = 0;
   6066     _flag_k = FK_NARROW(FK_TEST, 24);
   6067     if (TEST_Z(_flag_a, _flag_b)) goto L_3604B98A; /* 0x3604B97F: je 0x3604b98a */
   6068 L_3604B981:
   6069     PUSH32(esp, esi); /* 0x3604B981: push esi */
   6070     RECOMP_ICALL(0x3615FCC4u); /* 0x3604B982: call 0x3615fcc4 */ /* not lifted */
   6071     RECOMP_FLAGS_IN();
   6072     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6073     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6074     esp = esp + 4; /* 0x3604B987: add esp, 4 */
   6075     _flag_k = FK_ADD;
   6076 L_3604B98A:
   6077     eax = esi; /* 0x3604B98A: mov eax, esi */
   6078     esi = POP32_VAL(esp); /* 0x3604B98C: pop esi */
   6079     ebp = POP32_VAL(esp); /* 0x3604B98D: pop ebp */
   6080     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604B98E: ret 4 */
   6081 L_3604BE10:
   6082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x13Cu);
   6083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6084     ecx = ecx - 0x13Cu; /* 0x3604BE10: sub ecx, 0x13c */
   6085     _flag_k = FK_CMP;
   6086     RECOMP_BACKEDGE();
   6087     goto L_3604B970; /* 0x3604BE16: jmp 0x3604b970 */
   6088     { RECOMP_REGS_OUT(); return; } /* end of function */
   6089     RECOMP_REGS_OUT();
   6090 }
   6091 
   6092 void sub_3604BE20(void) {
   6093     int _fpu_cmp = 0;
   6094     uint32_t _cf = 0;
   6095     int _df = 1;
   6096     uint32_t _flag_k = FK_NONE;
   6097     uint32_t _flag_a = 0, _flag_b = 0;
   6098     uint32_t _itail_tgt = 0;
   6099     RECOMP_REGS_LOCALS
   6100     RECOMP_ENTER(0x3604BE20u);
   6101 
   6102 L_3604BE20:
   6103     eax = ecx; /* 0x3604BE20: mov eax, ecx */
   6104     MEM8(eax + 0x4) = (uint8_t)(0); /* 0x3604BE22: mov byte ptr [eax + 4], 0 */
   6105     MEM32(eax + 0x8) = 0xFEEDu; /* 0x3604BE26: mov dword ptr [eax + 8], 0xfeed */
   6106     MEM32(eax + 0xC) = 0xBABEu; /* 0x3604BE2D: mov dword ptr [eax + 0xc], 0xbabe */
   6107     MEM32(eax) = 0x3617108Cu; /* 0x3604BE34: mov dword ptr [eax], 0x3617108c */
   6108     MEM32(eax + 0x10) = 1; /* 0x3604BE3A: mov dword ptr [eax + 0x10], 1 */
   6109     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604BE41: ret  */
   6110     RECOMP_REGS_OUT();
   6111 }
   6112 
   6113 void sub_3604BE50(void) {
   6114     int _fpu_cmp = 0;
   6115     uint32_t _cf = 0;
   6116     int _df = 1;
   6117     uint32_t _flag_k = FK_NONE;
   6118     uint32_t _flag_a = 0, _flag_b = 0;
   6119     uint32_t _itail_tgt = 0;
   6120     RECOMP_REGS_LOCALS
   6121     RECOMP_ENTER(0x3604BE50u);
   6122 
   6123 L_3604BE50:
   6124     PUSH32(esp, ebp); /* 0x3604BE50: push ebp */
   6125     ebp = esp; /* 0x3604BE51: mov ebp, esp */
   6126     PUSH32(esp, esi); /* 0x3604BE53: push esi */
   6127     esi = ecx; /* 0x3604BE54: mov esi, ecx */
   6128     RECOMP_ICALL(0x3604BED0u); /* 0x3604BE56: call 0x3604bed0 */ /* not lifted */
   6129     RECOMP_FLAGS_IN();
   6130     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604BE5B: test byte ptr [ebp + 8], 1 */
   6131     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6132     _cf = 0;
   6133     _flag_k = FK_NARROW(FK_TEST, 24);
   6134     if (TEST_Z(_flag_a, _flag_b)) goto L_3604BE6A; /* 0x3604BE5F: je 0x3604be6a */
   6135 L_3604BE61:
   6136     PUSH32(esp, esi); /* 0x3604BE61: push esi */
   6137     RECOMP_ICALL(0x3615FCC4u); /* 0x3604BE62: call 0x3615fcc4 */ /* not lifted */
   6138     RECOMP_FLAGS_IN();
   6139     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6141     esp = esp + 4; /* 0x3604BE67: add esp, 4 */
   6142     _flag_k = FK_ADD;
   6143 L_3604BE6A:
   6144     eax = esi; /* 0x3604BE6A: mov eax, esi */
   6145     esi = POP32_VAL(esp); /* 0x3604BE6C: pop esi */
   6146     ebp = POP32_VAL(esp); /* 0x3604BE6D: pop ebp */
   6147     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BE6E: ret 4 */
   6148     RECOMP_REGS_OUT();
   6149 }
   6150 
   6151 void sub_3604BE80(void) {
   6152     int _fpu_cmp = 0;
   6153     uint32_t _cf = 0;
   6154     int _df = 1;
   6155     uint32_t _flag_k = FK_NONE;
   6156     uint32_t _flag_a = 0, _flag_b = 0;
   6157     uint32_t _itail_tgt = 0;
   6158     RECOMP_REGS_LOCALS
   6159     RECOMP_ENTER(0x3604BE80u);
   6160 
   6161 L_3604BE80:
   6162     PUSH32(esp, ebp); /* 0x3604BE80: push ebp */
   6163     ebp = esp; /* 0x3604BE81: mov ebp, esp */
   6164     edx = MEM32(ebp + 0x8); /* 0x3604BE83: mov edx, dword ptr [ebp + 8] */
   6165     eax = ecx; /* 0x3604BE86: mov eax, ecx */
   6166     ecx = eax + 0x8; /* 0x3604BE88: lea ecx, [eax + 8] */
   6167     /* cmp ecx, edx */ /* 0x3604BE8B: cmp ecx, edx */
   6168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6170     _flag_k = FK_CMP;
   6171     MEM8(eax + 0x4) = (uint8_t)(0); /* 0x3604BE8D: mov byte ptr [eax + 4], 0 */
   6172     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604BE9F; /* 0x3604BE91: je 0x3604be9f */
   6173 L_3604BE93:
   6174     PUSH32(esp, esi); /* 0x3604BE93: push esi */
   6175     esi = MEM32(edx); /* 0x3604BE94: mov esi, dword ptr [edx] */
   6176     MEM32(ecx) = esi; /* 0x3604BE96: mov dword ptr [ecx], esi */
   6177     edx = MEM32(edx + 0x4); /* 0x3604BE98: mov edx, dword ptr [edx + 4] */
   6178     MEM32(ecx + 0x4) = edx; /* 0x3604BE9B: mov dword ptr [ecx + 4], edx */
   6179     esi = POP32_VAL(esp); /* 0x3604BE9E: pop esi */
   6180 L_3604BE9F:
   6181     MEM32(eax) = 0x3617108Cu; /* 0x3604BE9F: mov dword ptr [eax], 0x3617108c */
   6182     MEM32(eax + 0x10) = 1; /* 0x3604BEA5: mov dword ptr [eax + 0x10], 1 */
   6183     ebp = POP32_VAL(esp); /* 0x3604BEAC: pop ebp */
   6184     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BEAD: ret 4 */
   6185     RECOMP_REGS_OUT();
   6186 }
   6187 
   6188 void sub_3604BEB0(void) {
   6189     int _fpu_cmp = 0;
   6190     uint32_t _cf = 0;
   6191     int _df = 1;
   6192     uint32_t _flag_k = FK_NONE;
   6193     uint32_t _flag_a = 0, _flag_b = 0;
   6194     uint32_t _itail_tgt = 0;
   6195     RECOMP_REGS_LOCALS
   6196     RECOMP_ENTER(0x3604BEB0u);
   6197 
   6198 L_3604BEB0:
   6199     _flag_a = (uint32_t)(MEM32(ecx + 0x10)); _flag_b = (uint32_t)(1);
   6200     MEM32(ecx + 0x10) = MEM32(ecx + 0x10) - 1; /* 0x3604BEB0: dec dword ptr [ecx + 0x10] */
   6201     _flag_k = FK_DEC;
   6202     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3604BEC0; /* 0x3604BEB3: jne 0x3604bec0 */
   6203 L_3604BEB5:
   6204     /* test ecx, ecx */ /* 0x3604BEB5: test ecx, ecx */
   6205     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6206     _cf = 0;
   6207     _flag_k = FK_TEST;
   6208     if (TEST_Z(_flag_a, _flag_b)) goto L_3604BEC0; /* 0x3604BEB7: je 0x3604bec0 */
   6209 L_3604BEB9:
   6210     eax = MEM32(ecx); /* 0x3604BEB9: mov eax, dword ptr [ecx] */
   6211     PUSH32(esp, 1); /* 0x3604BEBB: push 1 */
   6212     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3604BEBD: call dword ptr [eax + 4] */
   6213     RECOMP_FLAGS_IN();
   6214 L_3604BEC0:
   6215     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604BEC0: ret  */
   6216     RECOMP_REGS_OUT();
   6217 }
   6218 
   6219 void sub_3604BED0(void) {
   6220     int _fpu_cmp = 0;
   6221     uint32_t _cf = 0;
   6222     int _df = 1;
   6223     uint32_t _flag_k = FK_NONE;
   6224     uint32_t _flag_a = 0, _flag_b = 0;
   6225     uint32_t _itail_tgt = 0;
   6226     RECOMP_REGS_LOCALS
   6227     RECOMP_ENTER(0x3604BED0u);
   6228 
   6229 L_3604BED0:
   6230     MEM32(ecx) = 0x3617108Cu; /* 0x3604BED0: mov dword ptr [ecx], 0x3617108c */
   6231     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604BED6: ret  */
   6232     RECOMP_REGS_OUT();
   6233 }
   6234 
   6235 void sub_3604BEE0(void) {
   6236     int _fpu_cmp = 0;
   6237     uint32_t _cf = 0;
   6238     int _df = 1;
   6239     uint32_t _flag_k = FK_NONE;
   6240     uint32_t _flag_a = 0, _flag_b = 0;
   6241     uint32_t _itail_tgt = 0;
   6242     RECOMP_REGS_LOCALS
   6243     RECOMP_ENTER(0x3604BEE0u);
   6244 
   6245 L_3604BEE0:
   6246     PUSH32(esp, ebp); /* 0x3604BEE0: push ebp */
   6247     ebp = esp; /* 0x3604BEE1: mov ebp, esp */
   6248     eax = MEM32(ebp + 0x8); /* 0x3604BEE3: mov eax, dword ptr [ebp + 8] */
   6249     PUSH32(esp, esi); /* 0x3604BEE6: push esi */
   6250     esi = ecx; /* 0x3604BEE7: mov esi, ecx */
   6251     PUSH32(esp, eax); /* 0x3604BEE9: push eax */
   6252     RECOMP_ICALL(0x3604BE80u); /* 0x3604BEEA: call 0x3604be80 */ /* not lifted */
   6253     RECOMP_FLAGS_IN();
   6254     ecx = MEM32(ebp + 0xC); /* 0x3604BEEF: mov ecx, dword ptr [ebp + 0xc] */
   6255     eax = esi + 0x14; /* 0x3604BEF2: lea eax, [esi + 0x14] */
   6256     /* cmp eax, ecx */ /* 0x3604BEF5: cmp eax, ecx */
   6257     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6258     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6259     _flag_k = FK_CMP;
   6260     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604BF03; /* 0x3604BEF7: je 0x3604bf03 */
   6261 L_3604BEF9:
   6262     edx = MEM32(ecx); /* 0x3604BEF9: mov edx, dword ptr [ecx] */
   6263     MEM32(eax) = edx; /* 0x3604BEFB: mov dword ptr [eax], edx */
   6264     ecx = MEM32(ecx + 0x4); /* 0x3604BEFD: mov ecx, dword ptr [ecx + 4] */
   6265     MEM32(eax + 0x4) = ecx; /* 0x3604BF00: mov dword ptr [eax + 4], ecx */
   6266 L_3604BF03:
   6267     MEM32(esi) = 0x36171098u; /* 0x3604BF03: mov dword ptr [esi], 0x36171098 */
   6268     eax = esi; /* 0x3604BF09: mov eax, esi */
   6269     esi = POP32_VAL(esp); /* 0x3604BF0B: pop esi */
   6270     ebp = POP32_VAL(esp); /* 0x3604BF0C: pop ebp */
   6271     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3604BF0D: ret 8 */
   6272     RECOMP_REGS_OUT();
   6273 }
   6274 
   6275 void sub_3604BF10(void) {
   6276     int _fpu_cmp = 0;
   6277     uint32_t _cf = 0;
   6278     int _df = 1;
   6279     uint32_t _flag_k = FK_NONE;
   6280     uint32_t _flag_a = 0, _flag_b = 0;
   6281     uint32_t _itail_tgt = 0;
   6282     RECOMP_REGS_LOCALS
   6283     RECOMP_ENTER(0x3604BF10u);
   6284 
   6285 L_3604BF10:
   6286     PUSH32(esp, ebp); /* 0x3604BF10: push ebp */
   6287     ebp = esp; /* 0x3604BF11: mov ebp, esp */
   6288     PUSH32(esp, esi); /* 0x3604BF13: push esi */
   6289     esi = ecx; /* 0x3604BF14: mov esi, ecx */
   6290     RECOMP_ICALL(0x3604BF90u); /* 0x3604BF16: call 0x3604bf90 */ /* not lifted */
   6291     RECOMP_FLAGS_IN();
   6292     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604BF1B: test byte ptr [ebp + 8], 1 */
   6293     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6294     _cf = 0;
   6295     _flag_k = FK_NARROW(FK_TEST, 24);
   6296     if (TEST_Z(_flag_a, _flag_b)) goto L_3604BF2A; /* 0x3604BF1F: je 0x3604bf2a */
   6297 L_3604BF21:
   6298     PUSH32(esp, esi); /* 0x3604BF21: push esi */
   6299     RECOMP_ICALL(0x3615FCC4u); /* 0x3604BF22: call 0x3615fcc4 */ /* not lifted */
   6300     RECOMP_FLAGS_IN();
   6301     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6302     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6303     esp = esp + 4; /* 0x3604BF27: add esp, 4 */
   6304     _flag_k = FK_ADD;
   6305 L_3604BF2A:
   6306     eax = esi; /* 0x3604BF2A: mov eax, esi */
   6307     esi = POP32_VAL(esp); /* 0x3604BF2C: pop esi */
   6308     ebp = POP32_VAL(esp); /* 0x3604BF2D: pop ebp */
   6309     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604BF2E: ret 4 */
   6310     RECOMP_REGS_OUT();
   6311 }
   6312 
   6313 void sub_3604BF40(void) {
   6314     int _fpu_cmp = 0;
   6315     uint32_t _cf = 0;
   6316     int _df = 1;
   6317     uint32_t _flag_k = FK_NONE;
   6318     uint32_t _flag_a = 0, _flag_b = 0;
   6319     uint32_t _itail_tgt = 0;
   6320     RECOMP_REGS_LOCALS
   6321     RECOMP_ENTER(0x3604BF40u);
   6322 
   6323 L_3604BF40:
   6324     PUSH32(esp, ebp); /* 0x3604BF40: push ebp */
   6325     ebp = esp; /* 0x3604BF41: mov ebp, esp */
   6326     eax = MEM32(ebp + 0xC); /* 0x3604BF43: mov eax, dword ptr [ebp + 0xc] */
   6327     PUSH32(esp, esi); /* 0x3604BF46: push esi */
   6328     esi = ecx; /* 0x3604BF47: mov esi, ecx */
   6329     ecx = MEM32(ebp + 0x8); /* 0x3604BF49: mov ecx, dword ptr [ebp + 8] */
   6330     PUSH32(esp, eax); /* 0x3604BF4C: push eax */
   6331     PUSH32(esp, ecx); /* 0x3604BF4D: push ecx */
   6332     ecx = esi; /* 0x3604BF4E: mov ecx, esi */
   6333     RECOMP_ICALL(0x3604BEE0u); /* 0x3604BF50: call 0x3604bee0 */ /* not lifted */
   6334     RECOMP_FLAGS_IN();
   6335     eax = MEM32(ebp + 0x10); /* 0x3604BF55: mov eax, dword ptr [ebp + 0x10] */
   6336     ecx = MEM32(eax); /* 0x3604BF58: mov ecx, dword ptr [eax] */
   6337     edx = esi + 0x1C; /* 0x3604BF5A: lea edx, [esi + 0x1c] */
   6338     MEM32(edx) = ecx; /* 0x3604BF5D: mov dword ptr [edx], ecx */
   6339     ecx = MEM32(eax + 0x4); /* 0x3604BF5F: mov ecx, dword ptr [eax + 4] */
   6340     MEM32(edx + 0x4) = ecx; /* 0x3604BF62: mov dword ptr [edx + 4], ecx */
   6341     eax = MEM32(eax + 0x8); /* 0x3604BF65: mov eax, dword ptr [eax + 8] */
   6342     ecx = MEM32(ebp + 0x14); /* 0x3604BF68: mov ecx, dword ptr [ebp + 0x14] */
   6343     MEM32(edx + 0x8) = eax; /* 0x3604BF6B: mov dword ptr [edx + 8], eax */
   6344     eax = esi + 0x28; /* 0x3604BF6E: lea eax, [esi + 0x28] */
   6345     /* cmp eax, ecx */ /* 0x3604BF71: cmp eax, ecx */
   6346     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6348     _flag_k = FK_CMP;
   6349     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604BF7F; /* 0x3604BF73: je 0x3604bf7f */
   6350 L_3604BF75:
   6351     edx = MEM32(ecx); /* 0x3604BF75: mov edx, dword ptr [ecx] */
   6352     MEM32(eax) = edx; /* 0x3604BF77: mov dword ptr [eax], edx */
   6353     ecx = MEM32(ecx + 0x4); /* 0x3604BF79: mov ecx, dword ptr [ecx + 4] */
   6354     MEM32(eax + 0x4) = ecx; /* 0x3604BF7C: mov dword ptr [eax + 4], ecx */
   6355 L_3604BF7F:
   6356     MEM32(esi) = 0x361710A4u; /* 0x3604BF7F: mov dword ptr [esi], 0x361710a4 */
   6357     eax = esi; /* 0x3604BF85: mov eax, esi */
   6358     esi = POP32_VAL(esp); /* 0x3604BF87: pop esi */
   6359     ebp = POP32_VAL(esp); /* 0x3604BF88: pop ebp */
   6360     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3604BF89: ret 0x10 */
   6361     RECOMP_REGS_OUT();
   6362 }
   6363 
   6364 void sub_3604BF90(void) {
   6365     int _fpu_cmp = 0;
   6366     uint32_t _cf = 0;
   6367     int _df = 1;
   6368     uint32_t _flag_k = FK_NONE;
   6369     uint32_t _flag_a = 0, _flag_b = 0;
   6370     uint32_t _itail_tgt = 0;
   6371     RECOMP_REGS_LOCALS
   6372     RECOMP_ENTER(0x3604BF90u);
   6373 
   6374     goto L_3604BF90;
   6375 L_3604BED0:
   6376     MEM32(ecx) = 0x3617108Cu; /* 0x3604BED0: mov dword ptr [ecx], 0x3617108c */
   6377     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604BED6: ret  */
   6378 L_3604BF90:
   6379     RECOMP_BACKEDGE();
   6380     goto L_3604BED0; /* 0x3604BF90: jmp 0x3604bed0 */
   6381     { RECOMP_REGS_OUT(); return; } /* end of function */
   6382     RECOMP_REGS_OUT();
   6383 }
   6384 
   6385 void sub_3604BFA0(void) {
   6386     int _fpu_cmp = 0;
   6387     uint32_t _cf = 0;
   6388     int _df = 1;
   6389     uint32_t _flag_k = FK_NONE;
   6390     uint32_t _flag_a = 0, _flag_b = 0;
   6391     uint32_t _itail_tgt = 0;
   6392     RECOMP_REGS_LOCALS
   6393     RECOMP_ENTER(0x3604BFA0u);
   6394 
   6395 L_3604BFA0:
   6396     PUSH32(esp, ebp); /* 0x3604BFA0: push ebp */
   6397     ebp = esp; /* 0x3604BFA1: mov ebp, esp */
   6398     eax = MEM32(ebp + 0xC); /* 0x3604BFA3: mov eax, dword ptr [ebp + 0xc] */
   6399     PUSH32(esp, esi); /* 0x3604BFA6: push esi */
   6400     esi = ecx; /* 0x3604BFA7: mov esi, ecx */
   6401     ecx = MEM32(ebp + 0x8); /* 0x3604BFA9: mov ecx, dword ptr [ebp + 8] */
   6402     PUSH32(esp, eax); /* 0x3604BFAC: push eax */
   6403     PUSH32(esp, ecx); /* 0x3604BFAD: push ecx */
   6404     ecx = esi; /* 0x3604BFAE: mov ecx, esi */
   6405     RECOMP_ICALL(0x3604BEE0u); /* 0x3604BFB0: call 0x3604bee0 */ /* not lifted */
   6406     RECOMP_FLAGS_IN();
   6407     ecx = MEM32(ebp + 0x10); /* 0x3604BFB5: mov ecx, dword ptr [ebp + 0x10] */
   6408     eax = esi + 0x1C; /* 0x3604BFB8: lea eax, [esi + 0x1c] */
   6409     /* cmp eax, ecx */ /* 0x3604BFBB: cmp eax, ecx */
   6410     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6412     _flag_k = FK_CMP;
   6413     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604BFC9; /* 0x3604BFBD: je 0x3604bfc9 */
   6414 L_3604BFBF:
   6415     edx = MEM32(ecx); /* 0x3604BFBF: mov edx, dword ptr [ecx] */
   6416     MEM32(eax) = edx; /* 0x3604BFC1: mov dword ptr [eax], edx */
   6417     ecx = MEM32(ecx + 0x4); /* 0x3604BFC3: mov ecx, dword ptr [ecx + 4] */
   6418     MEM32(eax + 0x4) = ecx; /* 0x3604BFC6: mov dword ptr [eax + 4], ecx */
   6419 L_3604BFC9:
   6420     MEM32(esi) = 0x361710BCu; /* 0x3604BFC9: mov dword ptr [esi], 0x361710bc */
   6421     eax = esi; /* 0x3604BFCF: mov eax, esi */
   6422     esi = POP32_VAL(esp); /* 0x3604BFD1: pop esi */
   6423     ebp = POP32_VAL(esp); /* 0x3604BFD2: pop ebp */
   6424     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3604BFD3: ret 0xc */
   6425     RECOMP_REGS_OUT();
   6426 }
   6427 
   6428 void sub_3604BFE0(void) {
   6429     int _fpu_cmp = 0;
   6430     uint32_t _cf = 0;
   6431     int _df = 1;
   6432     uint32_t _flag_k = FK_NONE;
   6433     uint32_t _flag_a = 0, _flag_b = 0;
   6434     uint32_t _itail_tgt = 0;
   6435     RECOMP_REGS_LOCALS
   6436     RECOMP_ENTER(0x3604BFE0u);
   6437 
   6438 L_3604BFE0:
   6439     PUSH32(esp, ebp); /* 0x3604BFE0: push ebp */
   6440 L_3604BFE1:
   6441     ebp = esp; /* 0x3604BFE1: mov ebp, esp */
   6442 L_3604BFE3:
   6443     eax = MEM32(ebp + 0x8); /* 0x3604BFE3: mov eax, dword ptr [ebp + 8] */
   6444 L_3604BFE6:
   6445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6446     eax = eax - 1; /* 0x3604BFE6: dec eax */
   6447     _flag_k = FK_DEC;
   6448 L_3604BFE7:
   6449     /* cmp eax, 0x53u */ /* 0x3604BFE7: cmp eax, 0x53 */
   6450     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x53u);
   6451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6452     _flag_k = FK_CMP;
   6453 L_3604BFEA:
   6454     PUSH32(esp, esi); /* 0x3604BFEA: push esi */
   6455 L_3604BFEB:
   6456     PUSH32(esp, edi); /* 0x3604BFEB: push edi */
   6457 L_3604BFEC:
   6458     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3604C0CA; /* 0x3604BFEC: ja 0x3604c0ca */
   6459 L_3604BFF2:
   6460     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6461     ecx = 0; /* 0x3604BFF2: xor ecx, ecx */
   6462     _cf = 0;
   6463     _flag_k = FK_TEST;
   6464 L_3604BFF4:
   6465     SET_LO8(ecx, MEM8(eax + 0x3604C0E4)); /* 0x3604BFF4: mov cl, byte ptr [eax + 0x3604c0e4] */
   6466 L_3604BFFA:
   6467     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x3604C0D0)); goto _ljump; }
   6468 L_3604C001:
   6469     PUSH32(esp, 0x1Cu); /* 0x3604C001: push 0x1c */
   6470 L_3604C003:
   6471     RECOMP_ICALL(0x3615FD6Au); /* 0x3604C003: call 0x3615fd6a */ /* not lifted */
   6472     RECOMP_FLAGS_IN();
   6473 L_3604C008:
   6474     esi = eax; /* 0x3604C008: mov esi, eax */
   6475 L_3604C00A:
   6476     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6477     edi = 0; /* 0x3604C00A: xor edi, edi */
   6478     _cf = 0;
   6479     _flag_k = FK_TEST;
   6480 L_3604C00C:
   6481     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6482     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6483     esp = esp + 4; /* 0x3604C00C: add esp, 4 */
   6484     _flag_k = FK_ADD;
   6485 L_3604C00F:
   6486     /* cmp esi, edi */ /* 0x3604C00F: cmp esi, edi */
   6487     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   6488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6489     _flag_k = FK_CMP;
   6490 L_3604C011:
   6491     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604C0CA; /* 0x3604C011: je 0x3604c0ca */
   6492 L_3604C017:
   6493     ecx = esi; /* 0x3604C017: mov ecx, esi */
   6494 L_3604C019:
   6495     RECOMP_ICALL(0x3604BE20u); /* 0x3604C019: call 0x3604be20 */ /* not lifted */
   6496     RECOMP_FLAGS_IN();
   6497 L_3604C01E:
   6498     MEM32(esi + 0x14) = edi; /* 0x3604C01E: mov dword ptr [esi + 0x14], edi */
   6499 L_3604C021:
   6500     MEM32(esi + 0x18) = edi; /* 0x3604C021: mov dword ptr [esi + 0x18], edi */
   6501 L_3604C024:
   6502     edi = POP32_VAL(esp); /* 0x3604C024: pop edi */
   6503 L_3604C025:
   6504     MEM32(esi) = 0x36171098u; /* 0x3604C025: mov dword ptr [esi], 0x36171098 */
   6505 L_3604C02B:
   6506     eax = esi; /* 0x3604C02B: mov eax, esi */
   6507 L_3604C02D:
   6508     esi = POP32_VAL(esp); /* 0x3604C02D: pop esi */
   6509 L_3604C02E:
   6510     ebp = POP32_VAL(esp); /* 0x3604C02E: pop ebp */
   6511 L_3604C02F:
   6512     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C02F: ret  */
   6513 L_3604C030:
   6514     PUSH32(esp, 0x30u); /* 0x3604C030: push 0x30 */
   6515 L_3604C032:
   6516     RECOMP_ICALL(0x3615FD6Au); /* 0x3604C032: call 0x3615fd6a */ /* not lifted */
   6517     RECOMP_FLAGS_IN();
   6518 L_3604C037:
   6519     esi = eax; /* 0x3604C037: mov esi, eax */
   6520 L_3604C039:
   6521     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6522     edi = 0; /* 0x3604C039: xor edi, edi */
   6523     _cf = 0;
   6524     _flag_k = FK_TEST;
   6525 L_3604C03B:
   6526     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6528     esp = esp + 4; /* 0x3604C03B: add esp, 4 */
   6529     _flag_k = FK_ADD;
   6530 L_3604C03E:
   6531     /* cmp esi, edi */ /* 0x3604C03E: cmp esi, edi */
   6532     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   6533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6534     _flag_k = FK_CMP;
   6535 L_3604C040:
   6536     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604C0CA; /* 0x3604C040: je 0x3604c0ca */
   6537 L_3604C046:
   6538     ecx = esi; /* 0x3604C046: mov ecx, esi */
   6539 L_3604C048:
   6540     RECOMP_ICALL(0x3604BE20u); /* 0x3604C048: call 0x3604be20 */ /* not lifted */
   6541     RECOMP_FLAGS_IN();
   6542 L_3604C04D:
   6543     MEM32(esi + 0x14) = edi; /* 0x3604C04D: mov dword ptr [esi + 0x14], edi */
   6544 L_3604C050:
   6545     MEM32(esi + 0x18) = edi; /* 0x3604C050: mov dword ptr [esi + 0x18], edi */
   6546 L_3604C053:
   6547     MEM32(esi + 0x1C) = edi; /* 0x3604C053: mov dword ptr [esi + 0x1c], edi */
   6548 L_3604C056:
   6549     MEM32(esi + 0x20) = edi; /* 0x3604C056: mov dword ptr [esi + 0x20], edi */
   6550 L_3604C059:
   6551     MEM32(esi + 0x24) = edi; /* 0x3604C059: mov dword ptr [esi + 0x24], edi */
   6552 L_3604C05C:
   6553     MEM32(esi + 0x28) = edi; /* 0x3604C05C: mov dword ptr [esi + 0x28], edi */
   6554 L_3604C05F:
   6555     MEM32(esi + 0x2C) = edi; /* 0x3604C05F: mov dword ptr [esi + 0x2c], edi */
   6556 L_3604C062:
   6557     edi = POP32_VAL(esp); /* 0x3604C062: pop edi */
   6558 L_3604C063:
   6559     MEM32(esi) = 0x361710A4u; /* 0x3604C063: mov dword ptr [esi], 0x361710a4 */
   6560 L_3604C069:
   6561     eax = esi; /* 0x3604C069: mov eax, esi */
   6562 L_3604C06B:
   6563     esi = POP32_VAL(esp); /* 0x3604C06B: pop esi */
   6564 L_3604C06C:
   6565     ebp = POP32_VAL(esp); /* 0x3604C06C: pop ebp */
   6566 L_3604C06D:
   6567     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C06D: ret  */
   6568 L_3604C06E:
   6569     PUSH32(esp, 0x24u); /* 0x3604C06E: push 0x24 */
   6570 L_3604C070:
   6571     RECOMP_ICALL(0x3615FD6Au); /* 0x3604C070: call 0x3615fd6a */ /* not lifted */
   6572     RECOMP_FLAGS_IN();
   6573 L_3604C075:
   6574     esi = eax; /* 0x3604C075: mov esi, eax */
   6575 L_3604C077:
   6576     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6577     edi = 0; /* 0x3604C077: xor edi, edi */
   6578     _cf = 0;
   6579     _flag_k = FK_TEST;
   6580 L_3604C079:
   6581     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6582     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6583     esp = esp + 4; /* 0x3604C079: add esp, 4 */
   6584     _flag_k = FK_ADD;
   6585 L_3604C07C:
   6586     /* cmp esi, edi */ /* 0x3604C07C: cmp esi, edi */
   6587     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   6588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6589     _flag_k = FK_CMP;
   6590 L_3604C07E:
   6591     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604C0CA; /* 0x3604C07E: je 0x3604c0ca */
   6592 L_3604C080:
   6593     ecx = esi; /* 0x3604C080: mov ecx, esi */
   6594 L_3604C082:
   6595     RECOMP_ICALL(0x3604BE20u); /* 0x3604C082: call 0x3604be20 */ /* not lifted */
   6596     RECOMP_FLAGS_IN();
   6597 L_3604C087:
   6598     MEM32(esi + 0x14) = edi; /* 0x3604C087: mov dword ptr [esi + 0x14], edi */
   6599 L_3604C08A:
   6600     MEM32(esi + 0x18) = edi; /* 0x3604C08A: mov dword ptr [esi + 0x18], edi */
   6601 L_3604C08D:
   6602     MEM32(esi + 0x1C) = edi; /* 0x3604C08D: mov dword ptr [esi + 0x1c], edi */
   6603 L_3604C090:
   6604     MEM32(esi + 0x20) = edi; /* 0x3604C090: mov dword ptr [esi + 0x20], edi */
   6605 L_3604C093:
   6606     edi = POP32_VAL(esp); /* 0x3604C093: pop edi */
   6607 L_3604C094:
   6608     MEM32(esi) = 0x361710BCu; /* 0x3604C094: mov dword ptr [esi], 0x361710bc */
   6609 L_3604C09A:
   6610     eax = esi; /* 0x3604C09A: mov eax, esi */
   6611 L_3604C09C:
   6612     esi = POP32_VAL(esp); /* 0x3604C09C: pop esi */
   6613 L_3604C09D:
   6614     ebp = POP32_VAL(esp); /* 0x3604C09D: pop ebp */
   6615 L_3604C09E:
   6616     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C09E: ret  */
   6617 L_3604C09F:
   6618     PUSH32(esp, 0x20u); /* 0x3604C09F: push 0x20 */
   6619 L_3604C0A1:
   6620     RECOMP_ICALL(0x3615FD6Au); /* 0x3604C0A1: call 0x3615fd6a */ /* not lifted */
   6621     RECOMP_FLAGS_IN();
   6622 L_3604C0A6:
   6623     esi = eax; /* 0x3604C0A6: mov esi, eax */
   6624 L_3604C0A8:
   6625     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6626     edi = 0; /* 0x3604C0A8: xor edi, edi */
   6627     _cf = 0;
   6628     _flag_k = FK_TEST;
   6629 L_3604C0AA:
   6630     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6631     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6632     esp = esp + 4; /* 0x3604C0AA: add esp, 4 */
   6633     _flag_k = FK_ADD;
   6634 L_3604C0AD:
   6635     /* cmp esi, edi */ /* 0x3604C0AD: cmp esi, edi */
   6636     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   6637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6638     _flag_k = FK_CMP;
   6639 L_3604C0AF:
   6640     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604C0CA; /* 0x3604C0AF: je 0x3604c0ca */
   6641 L_3604C0B1:
   6642     ecx = esi; /* 0x3604C0B1: mov ecx, esi */
   6643 L_3604C0B3:
   6644     RECOMP_ICALL(0x3604BE20u); /* 0x3604C0B3: call 0x3604be20 */ /* not lifted */
   6645     RECOMP_FLAGS_IN();
   6646 L_3604C0B8:
   6647     MEM32(esi + 0x14) = edi; /* 0x3604C0B8: mov dword ptr [esi + 0x14], edi */
   6648 L_3604C0BB:
   6649     MEM32(esi + 0x18) = edi; /* 0x3604C0BB: mov dword ptr [esi + 0x18], edi */
   6650 L_3604C0BE:
   6651     edi = POP32_VAL(esp); /* 0x3604C0BE: pop edi */
   6652 L_3604C0BF:
   6653     MEM32(esi) = 0x361710B0u; /* 0x3604C0BF: mov dword ptr [esi], 0x361710b0 */
   6654 L_3604C0C5:
   6655     eax = esi; /* 0x3604C0C5: mov eax, esi */
   6656 L_3604C0C7:
   6657     esi = POP32_VAL(esp); /* 0x3604C0C7: pop esi */
   6658 L_3604C0C8:
   6659     ebp = POP32_VAL(esp); /* 0x3604C0C8: pop ebp */
   6660 L_3604C0C9:
   6661     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C0C9: ret  */
   6662 L_3604C0CA:
   6663     edi = POP32_VAL(esp); /* 0x3604C0CA: pop edi */
   6664 L_3604C0CB:
   6665     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6666     eax = 0; /* 0x3604C0CB: xor eax, eax */
   6667     _cf = 0;
   6668     _flag_k = FK_TEST;
   6669 L_3604C0CD:
   6670     esi = POP32_VAL(esp); /* 0x3604C0CD: pop esi */
   6671 L_3604C0CE:
   6672     ebp = POP32_VAL(esp); /* 0x3604C0CE: pop ebp */
   6673 L_3604C0CF:
   6674     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C0CF: ret  */
   6675   _ljump:
   6676     switch (_itail_tgt) {
   6677       case 0x3604BFE0u: goto L_3604BFE0;
   6678       case 0x3604BFE1u: goto L_3604BFE1;
   6679       case 0x3604BFE3u: goto L_3604BFE3;
   6680       case 0x3604BFE6u: goto L_3604BFE6;
   6681       case 0x3604BFE7u: goto L_3604BFE7;
   6682       case 0x3604BFEAu: goto L_3604BFEA;
   6683       case 0x3604BFEBu: goto L_3604BFEB;
   6684       case 0x3604BFECu: goto L_3604BFEC;
   6685       case 0x3604BFF2u: goto L_3604BFF2;
   6686       case 0x3604BFF4u: goto L_3604BFF4;
   6687       case 0x3604BFFAu: goto L_3604BFFA;
   6688       case 0x3604C001u: goto L_3604C001;
   6689       case 0x3604C003u: goto L_3604C003;
   6690       case 0x3604C008u: goto L_3604C008;
   6691       case 0x3604C00Au: goto L_3604C00A;
   6692       case 0x3604C00Cu: goto L_3604C00C;
   6693       case 0x3604C00Fu: goto L_3604C00F;
   6694       case 0x3604C011u: goto L_3604C011;
   6695       case 0x3604C017u: goto L_3604C017;
   6696       case 0x3604C019u: goto L_3604C019;
   6697       case 0x3604C01Eu: goto L_3604C01E;
   6698       case 0x3604C021u: goto L_3604C021;
   6699       case 0x3604C024u: goto L_3604C024;
   6700       case 0x3604C025u: goto L_3604C025;
   6701       case 0x3604C02Bu: goto L_3604C02B;
   6702       case 0x3604C02Du: goto L_3604C02D;
   6703       case 0x3604C02Eu: goto L_3604C02E;
   6704       case 0x3604C02Fu: goto L_3604C02F;
   6705       case 0x3604C030u: goto L_3604C030;
   6706       case 0x3604C032u: goto L_3604C032;
   6707       case 0x3604C037u: goto L_3604C037;
   6708       case 0x3604C039u: goto L_3604C039;
   6709       case 0x3604C03Bu: goto L_3604C03B;
   6710       case 0x3604C03Eu: goto L_3604C03E;
   6711       case 0x3604C040u: goto L_3604C040;
   6712       case 0x3604C046u: goto L_3604C046;
   6713       case 0x3604C048u: goto L_3604C048;
   6714       case 0x3604C04Du: goto L_3604C04D;
   6715       case 0x3604C050u: goto L_3604C050;
   6716       case 0x3604C053u: goto L_3604C053;
   6717       case 0x3604C056u: goto L_3604C056;
   6718       case 0x3604C059u: goto L_3604C059;
   6719       case 0x3604C05Cu: goto L_3604C05C;
   6720       case 0x3604C05Fu: goto L_3604C05F;
   6721       case 0x3604C062u: goto L_3604C062;
   6722       case 0x3604C063u: goto L_3604C063;
   6723       case 0x3604C069u: goto L_3604C069;
   6724       case 0x3604C06Bu: goto L_3604C06B;
   6725       case 0x3604C06Cu: goto L_3604C06C;
   6726       case 0x3604C06Du: goto L_3604C06D;
   6727       case 0x3604C06Eu: goto L_3604C06E;
   6728       case 0x3604C070u: goto L_3604C070;
   6729       case 0x3604C075u: goto L_3604C075;
   6730       case 0x3604C077u: goto L_3604C077;
   6731       case 0x3604C079u: goto L_3604C079;
   6732       case 0x3604C07Cu: goto L_3604C07C;
   6733       case 0x3604C07Eu: goto L_3604C07E;
   6734       case 0x3604C080u: goto L_3604C080;
   6735       case 0x3604C082u: goto L_3604C082;
   6736       case 0x3604C087u: goto L_3604C087;
   6737       case 0x3604C08Au: goto L_3604C08A;
   6738       case 0x3604C08Du: goto L_3604C08D;
   6739       case 0x3604C090u: goto L_3604C090;
   6740       case 0x3604C093u: goto L_3604C093;
   6741       case 0x3604C094u: goto L_3604C094;
   6742       case 0x3604C09Au: goto L_3604C09A;
   6743       case 0x3604C09Cu: goto L_3604C09C;
   6744       case 0x3604C09Du: goto L_3604C09D;
   6745       case 0x3604C09Eu: goto L_3604C09E;
   6746       case 0x3604C09Fu: goto L_3604C09F;
   6747       case 0x3604C0A1u: goto L_3604C0A1;
   6748       case 0x3604C0A6u: goto L_3604C0A6;
   6749       case 0x3604C0A8u: goto L_3604C0A8;
   6750       case 0x3604C0AAu: goto L_3604C0AA;
   6751       case 0x3604C0ADu: goto L_3604C0AD;
   6752       case 0x3604C0AFu: goto L_3604C0AF;
   6753       case 0x3604C0B1u: goto L_3604C0B1;
   6754       case 0x3604C0B3u: goto L_3604C0B3;
   6755       case 0x3604C0B8u: goto L_3604C0B8;
   6756       case 0x3604C0BBu: goto L_3604C0BB;
   6757       case 0x3604C0BEu: goto L_3604C0BE;
   6758       case 0x3604C0BFu: goto L_3604C0BF;
   6759       case 0x3604C0C5u: goto L_3604C0C5;
   6760       case 0x3604C0C7u: goto L_3604C0C7;
   6761       case 0x3604C0C8u: goto L_3604C0C8;
   6762       case 0x3604C0C9u: goto L_3604C0C9;
   6763       case 0x3604C0CAu: goto L_3604C0CA;
   6764       case 0x3604C0CBu: goto L_3604C0CB;
   6765       case 0x3604C0CDu: goto L_3604C0CD;
   6766       case 0x3604C0CEu: goto L_3604C0CE;
   6767       case 0x3604C0CFu: goto L_3604C0CF;
   6768       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6769     }
   6770     RECOMP_REGS_OUT();
   6771 }
   6772 
   6773 void sub_3604C140(void) {
   6774     int _fpu_cmp = 0;
   6775     uint32_t _cf = 0;
   6776     int _df = 1;
   6777     uint32_t _flag_k = FK_NONE;
   6778     uint32_t _flag_a = 0, _flag_b = 0;
   6779     uint32_t _itail_tgt = 0;
   6780     RECOMP_REGS_LOCALS
   6781     RECOMP_ENTER(0x3604C140u);
   6782 
   6783 L_3604C140:
   6784     PUSH32(esp, ebp); /* 0x3604C140: push ebp */
   6785     ebp = esp; /* 0x3604C141: mov ebp, esp */
   6786     eax = MEM32(ebp + 0x8); /* 0x3604C143: mov eax, dword ptr [ebp + 8] */
   6787     PUSH32(esp, 0); /* 0x3604C146: push 0 */
   6788     PUSH32(esp, 0x361C1A58u); /* 0x3604C148: push 0x361c1a58 */
   6789     PUSH32(esp, 0x361C1A38u); /* 0x3604C14D: push 0x361c1a38 */
   6790     PUSH32(esp, 0); /* 0x3604C152: push 0 */
   6791     PUSH32(esp, eax); /* 0x3604C154: push eax */
   6792     RECOMP_ICALL(0x3604BFE0u); /* 0x3604C155: call 0x3604bfe0 */ /* not lifted */
   6793     RECOMP_FLAGS_IN();
   6794     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6796     esp = esp + 4; /* 0x3604C15A: add esp, 4 */
   6797     _flag_k = FK_ADD;
   6798     PUSH32(esp, eax); /* 0x3604C15D: push eax */
   6799     RECOMP_ICALL(0x3615FD86u); /* 0x3604C15E: call 0x3615fd86 */ /* not lifted */
   6800     RECOMP_FLAGS_IN();
   6801     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6802     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6803     esp = esp + 0x14u; /* 0x3604C163: add esp, 0x14 */
   6804     _flag_k = FK_ADD;
   6805     ebp = POP32_VAL(esp); /* 0x3604C166: pop ebp */
   6806     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C167: ret  */
   6807     RECOMP_REGS_OUT();
   6808 }
   6809 
   6810 void sub_3604C170(void) {
   6811     int _fpu_cmp = 0;
   6812     uint32_t _cf = 0;
   6813     int _df = 1;
   6814     uint32_t _flag_k = FK_NONE;
   6815     uint32_t _flag_a = 0, _flag_b = 0;
   6816     uint32_t _itail_tgt = 0;
   6817     RECOMP_REGS_LOCALS
   6818     RECOMP_ENTER(0x3604C170u);
   6819 
   6820 L_3604C170:
   6821     PUSH32(esp, ebp); /* 0x3604C170: push ebp */
   6822     ebp = esp; /* 0x3604C171: mov ebp, esp */
   6823     eax = MEM32(ebp + 0x8); /* 0x3604C173: mov eax, dword ptr [ebp + 8] */
   6824     SET_LO8(edx, MEM8(eax + 0x4)); /* 0x3604C176: mov dl, byte ptr [eax + 4] */
   6825     MEM8(ecx + 0x4) = (uint8_t)(LO8(edx)); /* 0x3604C179: mov byte ptr [ecx + 4], dl */
   6826     edx = MEM32(eax + 0x8); /* 0x3604C17C: mov edx, dword ptr [eax + 8] */
   6827     MEM32(ecx + 0x8) = edx; /* 0x3604C17F: mov dword ptr [ecx + 8], edx */
   6828     edx = MEM32(eax + 0xC); /* 0x3604C182: mov edx, dword ptr [eax + 0xc] */
   6829     MEM32(ecx + 0xC) = edx; /* 0x3604C185: mov dword ptr [ecx + 0xc], edx */
   6830     eax = MEM32(eax + 0x10); /* 0x3604C188: mov eax, dword ptr [eax + 0x10] */
   6831     MEM32(ecx + 0x10) = eax; /* 0x3604C18B: mov dword ptr [ecx + 0x10], eax */
   6832     ebp = POP32_VAL(esp); /* 0x3604C18E: pop ebp */
   6833     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604C18F: ret 4 */
   6834     RECOMP_REGS_OUT();
   6835 }
   6836 
   6837 void sub_3604C1A0(void) {
   6838     int _fpu_cmp = 0;
   6839     uint32_t _cf = 0;
   6840     int _df = 1;
   6841     uint32_t _flag_k = FK_NONE;
   6842     uint32_t _flag_a = 0, _flag_b = 0;
   6843     uint32_t _itail_tgt = 0;
   6844     RECOMP_REGS_LOCALS
   6845     RECOMP_ENTER(0x3604C1A0u);
   6846 
   6847 L_3604C1A0:
   6848     PUSH32(esp, ebp); /* 0x3604C1A0: push ebp */
   6849     ebp = esp; /* 0x3604C1A1: mov ebp, esp */
   6850     PUSH32(esp, ebx); /* 0x3604C1A3: push ebx */
   6851     PUSH32(esp, esi); /* 0x3604C1A4: push esi */
   6852     esi = ecx; /* 0x3604C1A5: mov esi, ecx */
   6853     PUSH32(esp, edi); /* 0x3604C1A7: push edi */
   6854     PUSH32(esp, esi); /* 0x3604C1A8: push esi */
   6855     RECOMP_ICALL(0x3615FED0u); /* 0x3604C1A9: call 0x3615fed0 */ /* not lifted */
   6856     RECOMP_FLAGS_IN();
   6857     edi = eax; /* 0x3604C1AE: mov edi, eax */
   6858     eax = MEM32(ebp + 0x8); /* 0x3604C1B0: mov eax, dword ptr [ebp + 8] */
   6859     PUSH32(esp, eax); /* 0x3604C1B3: push eax */
   6860     RECOMP_ICALL(0x3615FED0u); /* 0x3604C1B4: call 0x3615fed0 */ /* not lifted */
   6861     RECOMP_FLAGS_IN();
   6862     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6863     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6864     esp = esp + 8; /* 0x3604C1B9: add esp, 8 */
   6865     _flag_k = FK_ADD;
   6866     ebx = eax; /* 0x3604C1BC: mov ebx, eax */
   6867     PUSH32(esp, ebx); /* 0x3604C1BE: push ebx */
   6868     ecx = edi; /* 0x3604C1BF: mov ecx, edi */
   6869     RECOMP_ICALL(MEM32(0x3616F1B4)); /* 0x3604C1C1: call dword ptr [0x3616f1b4] */
   6870     RECOMP_FLAGS_IN();
   6871     /* test eax, eax */ /* 0x3604C1C7: test eax, eax */
   6872     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6873     _cf = 0;
   6874     _flag_k = FK_TEST;
   6875     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604C1D8; /* 0x3604C1C9: jne 0x3604c1d8 */
   6876 L_3604C1CB:
   6877     PUSH32(esp, ebx); /* 0x3604C1CB: push ebx */
   6878     ecx = edi; /* 0x3604C1CC: mov ecx, edi */
   6879     RECOMP_ICALL(MEM32(0x3616F1AC)); /* 0x3604C1CE: call dword ptr [0x3616f1ac] */
   6880     RECOMP_FLAGS_IN();
   6881     /* test eax, eax */ /* 0x3604C1D4: test eax, eax */
   6882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6883     _cf = 0;
   6884     _flag_k = FK_TEST;
   6885     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C216; /* 0x3604C1D6: je 0x3604c216 */
   6886 L_3604C1D8:
   6887     ecx = MEM32(ebp + 0x8); /* 0x3604C1D8: mov ecx, dword ptr [ebp + 8] */
   6888     PUSH32(esp, 0); /* 0x3604C1DB: push 0 */
   6889     PUSH32(esp, 0x361C1A58u); /* 0x3604C1DD: push 0x361c1a58 */
   6890     PUSH32(esp, 0x361C1A38u); /* 0x3604C1E2: push 0x361c1a38 */
   6891     PUSH32(esp, 0); /* 0x3604C1E7: push 0 */
   6892     PUSH32(esp, ecx); /* 0x3604C1E9: push ecx */
   6893     RECOMP_ICALL(0x3615FD86u); /* 0x3604C1EA: call 0x3615fd86 */ /* not lifted */
   6894     RECOMP_FLAGS_IN();
   6895     SET_LO8(edx, MEM8(eax + 0x4)); /* 0x3604C1EF: mov dl, byte ptr [eax + 4] */
   6896     MEM8(esi + 0x4) = (uint8_t)(LO8(edx)); /* 0x3604C1F2: mov byte ptr [esi + 4], dl */
   6897     ecx = MEM32(eax + 0x8); /* 0x3604C1F5: mov ecx, dword ptr [eax + 8] */
   6898     MEM32(esi + 0x8) = ecx; /* 0x3604C1F8: mov dword ptr [esi + 8], ecx */
   6899     edx = MEM32(eax + 0xC); /* 0x3604C1FB: mov edx, dword ptr [eax + 0xc] */
   6900     MEM32(esi + 0xC) = edx; /* 0x3604C1FE: mov dword ptr [esi + 0xc], edx */
   6901     ecx = MEM32(eax + 0x10); /* 0x3604C201: mov ecx, dword ptr [eax + 0x10] */
   6902     MEM32(esi + 0x10) = ecx; /* 0x3604C204: mov dword ptr [esi + 0x10], ecx */
   6903     edx = MEM32(eax + 0x14); /* 0x3604C207: mov edx, dword ptr [eax + 0x14] */
   6904     MEM32(esi + 0x14) = edx; /* 0x3604C20A: mov dword ptr [esi + 0x14], edx */
   6905     eax = MEM32(eax + 0x18); /* 0x3604C20D: mov eax, dword ptr [eax + 0x18] */
   6906     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6908     esp = esp + 0x14u; /* 0x3604C210: add esp, 0x14 */
   6909     _flag_k = FK_ADD;
   6910     MEM32(esi + 0x18) = eax; /* 0x3604C213: mov dword ptr [esi + 0x18], eax */
   6911 L_3604C216:
   6912     edi = POP32_VAL(esp); /* 0x3604C216: pop edi */
   6913     esi = POP32_VAL(esp); /* 0x3604C217: pop esi */
   6914     ebx = POP32_VAL(esp); /* 0x3604C218: pop ebx */
   6915     ebp = POP32_VAL(esp); /* 0x3604C219: pop ebp */
   6916     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604C21A: ret 4 */
   6917     RECOMP_REGS_OUT();
   6918 }
   6919 
   6920 void sub_3604C220(void) {
   6921     int _fpu_cmp = 0;
   6922     uint32_t _cf = 0;
   6923     int _df = 1;
   6924     uint32_t _flag_k = FK_NONE;
   6925     uint32_t _flag_a = 0, _flag_b = 0;
   6926     uint32_t _itail_tgt = 0;
   6927     RECOMP_REGS_LOCALS
   6928     RECOMP_ENTER(0x3604C220u);
   6929 
   6930 L_3604C220:
   6931     PUSH32(esp, ebp); /* 0x3604C220: push ebp */
   6932     ebp = esp; /* 0x3604C221: mov ebp, esp */
   6933     PUSH32(esp, ebx); /* 0x3604C223: push ebx */
   6934     PUSH32(esp, esi); /* 0x3604C224: push esi */
   6935     esi = ecx; /* 0x3604C225: mov esi, ecx */
   6936     PUSH32(esp, edi); /* 0x3604C227: push edi */
   6937     PUSH32(esp, esi); /* 0x3604C228: push esi */
   6938     RECOMP_ICALL(0x3615FED0u); /* 0x3604C229: call 0x3615fed0 */ /* not lifted */
   6939     RECOMP_FLAGS_IN();
   6940     edi = eax; /* 0x3604C22E: mov edi, eax */
   6941     eax = MEM32(ebp + 0x8); /* 0x3604C230: mov eax, dword ptr [ebp + 8] */
   6942     PUSH32(esp, eax); /* 0x3604C233: push eax */
   6943     RECOMP_ICALL(0x3615FED0u); /* 0x3604C234: call 0x3615fed0 */ /* not lifted */
   6944     RECOMP_FLAGS_IN();
   6945     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6946     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6947     esp = esp + 8; /* 0x3604C239: add esp, 8 */
   6948     _flag_k = FK_ADD;
   6949     ebx = eax; /* 0x3604C23C: mov ebx, eax */
   6950     PUSH32(esp, ebx); /* 0x3604C23E: push ebx */
   6951     ecx = edi; /* 0x3604C23F: mov ecx, edi */
   6952     RECOMP_ICALL(MEM32(0x3616F1B4)); /* 0x3604C241: call dword ptr [0x3616f1b4] */
   6953     RECOMP_FLAGS_IN();
   6954     /* test eax, eax */ /* 0x3604C247: test eax, eax */
   6955     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6956     _cf = 0;
   6957     _flag_k = FK_TEST;
   6958     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604C258; /* 0x3604C249: jne 0x3604c258 */
   6959 L_3604C24B:
   6960     PUSH32(esp, ebx); /* 0x3604C24B: push ebx */
   6961     ecx = edi; /* 0x3604C24C: mov ecx, edi */
   6962     RECOMP_ICALL(MEM32(0x3616F1AC)); /* 0x3604C24E: call dword ptr [0x3616f1ac] */
   6963     RECOMP_FLAGS_IN();
   6964     /* test eax, eax */ /* 0x3604C254: test eax, eax */
   6965     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6966     _cf = 0;
   6967     _flag_k = FK_TEST;
   6968     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C2B8; /* 0x3604C256: je 0x3604c2b8 */
   6969 L_3604C258:
   6970     ecx = MEM32(ebp + 0x8); /* 0x3604C258: mov ecx, dword ptr [ebp + 8] */
   6971     PUSH32(esp, 0); /* 0x3604C25B: push 0 */
   6972     PUSH32(esp, 0x361C1A78u); /* 0x3604C25D: push 0x361c1a78 */
   6973     PUSH32(esp, 0x361C1A38u); /* 0x3604C262: push 0x361c1a38 */
   6974     PUSH32(esp, 0); /* 0x3604C267: push 0 */
   6975     PUSH32(esp, ecx); /* 0x3604C269: push ecx */
   6976     RECOMP_ICALL(0x3615FD86u); /* 0x3604C26A: call 0x3615fd86 */ /* not lifted */
   6977     RECOMP_FLAGS_IN();
   6978     SET_LO8(edx, MEM8(eax + 0x4)); /* 0x3604C26F: mov dl, byte ptr [eax + 4] */
   6979     MEM8(esi + 0x4) = (uint8_t)(LO8(edx)); /* 0x3604C272: mov byte ptr [esi + 4], dl */
   6980     ecx = MEM32(eax + 0x8); /* 0x3604C275: mov ecx, dword ptr [eax + 8] */
   6981     MEM32(esi + 0x8) = ecx; /* 0x3604C278: mov dword ptr [esi + 8], ecx */
   6982     edx = MEM32(eax + 0xC); /* 0x3604C27B: mov edx, dword ptr [eax + 0xc] */
   6983     MEM32(esi + 0xC) = edx; /* 0x3604C27E: mov dword ptr [esi + 0xc], edx */
   6984     ecx = MEM32(eax + 0x10); /* 0x3604C281: mov ecx, dword ptr [eax + 0x10] */
   6985     MEM32(esi + 0x10) = ecx; /* 0x3604C284: mov dword ptr [esi + 0x10], ecx */
   6986     edx = MEM32(eax + 0x14); /* 0x3604C287: mov edx, dword ptr [eax + 0x14] */
   6987     MEM32(esi + 0x14) = edx; /* 0x3604C28A: mov dword ptr [esi + 0x14], edx */
   6988     ecx = MEM32(eax + 0x18); /* 0x3604C28D: mov ecx, dword ptr [eax + 0x18] */
   6989     MEM32(esi + 0x18) = ecx; /* 0x3604C290: mov dword ptr [esi + 0x18], ecx */
   6990     edx = eax + 0x1C; /* 0x3604C293: lea edx, [eax + 0x1c] */
   6991     edi = MEM32(edx); /* 0x3604C296: mov edi, dword ptr [edx] */
   6992     ecx = esi + 0x1C; /* 0x3604C298: lea ecx, [esi + 0x1c] */
   6993     MEM32(ecx) = edi; /* 0x3604C29B: mov dword ptr [ecx], edi */
   6994     edi = MEM32(edx + 0x4); /* 0x3604C29D: mov edi, dword ptr [edx + 4] */
   6995     MEM32(ecx + 0x4) = edi; /* 0x3604C2A0: mov dword ptr [ecx + 4], edi */
   6996     edx = MEM32(edx + 0x8); /* 0x3604C2A3: mov edx, dword ptr [edx + 8] */
   6997     MEM32(ecx + 0x8) = edx; /* 0x3604C2A6: mov dword ptr [ecx + 8], edx */
   6998     ecx = MEM32(eax + 0x28); /* 0x3604C2A9: mov ecx, dword ptr [eax + 0x28] */
   6999     MEM32(esi + 0x28) = ecx; /* 0x3604C2AC: mov dword ptr [esi + 0x28], ecx */
   7000     edx = MEM32(eax + 0x2C); /* 0x3604C2AF: mov edx, dword ptr [eax + 0x2c] */
   7001     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7002     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7003     esp = esp + 0x14u; /* 0x3604C2B2: add esp, 0x14 */
   7004     _flag_k = FK_ADD;
   7005     MEM32(esi + 0x2C) = edx; /* 0x3604C2B5: mov dword ptr [esi + 0x2c], edx */
   7006 L_3604C2B8:
   7007     edi = POP32_VAL(esp); /* 0x3604C2B8: pop edi */
   7008     esi = POP32_VAL(esp); /* 0x3604C2B9: pop esi */
   7009     ebx = POP32_VAL(esp); /* 0x3604C2BA: pop ebx */
   7010     ebp = POP32_VAL(esp); /* 0x3604C2BB: pop ebp */
   7011     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604C2BC: ret 4 */
   7012     RECOMP_REGS_OUT();
   7013 }
   7014 
   7015 void sub_3604C2C0(void) {
   7016     int _fpu_cmp = 0;
   7017     uint32_t _cf = 0;
   7018     int _df = 1;
   7019     uint32_t _flag_k = FK_NONE;
   7020     uint32_t _flag_a = 0, _flag_b = 0;
   7021     uint32_t _itail_tgt = 0;
   7022     RECOMP_REGS_LOCALS
   7023     RECOMP_ENTER(0x3604C2C0u);
   7024 
   7025 L_3604C2C0:
   7026     PUSH32(esp, ebp); /* 0x3604C2C0: push ebp */
   7027     ebp = esp; /* 0x3604C2C1: mov ebp, esp */
   7028     PUSH32(esp, ebx); /* 0x3604C2C3: push ebx */
   7029     PUSH32(esp, esi); /* 0x3604C2C4: push esi */
   7030     esi = ecx; /* 0x3604C2C5: mov esi, ecx */
   7031     PUSH32(esp, edi); /* 0x3604C2C7: push edi */
   7032     PUSH32(esp, esi); /* 0x3604C2C8: push esi */
   7033     RECOMP_ICALL(0x3615FED0u); /* 0x3604C2C9: call 0x3615fed0 */ /* not lifted */
   7034     RECOMP_FLAGS_IN();
   7035     edi = eax; /* 0x3604C2CE: mov edi, eax */
   7036     eax = MEM32(ebp + 0x8); /* 0x3604C2D0: mov eax, dword ptr [ebp + 8] */
   7037     PUSH32(esp, eax); /* 0x3604C2D3: push eax */
   7038     RECOMP_ICALL(0x3615FED0u); /* 0x3604C2D4: call 0x3615fed0 */ /* not lifted */
   7039     RECOMP_FLAGS_IN();
   7040     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7041     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7042     esp = esp + 8; /* 0x3604C2D9: add esp, 8 */
   7043     _flag_k = FK_ADD;
   7044     ebx = eax; /* 0x3604C2DC: mov ebx, eax */
   7045     PUSH32(esp, ebx); /* 0x3604C2DE: push ebx */
   7046     ecx = edi; /* 0x3604C2DF: mov ecx, edi */
   7047     RECOMP_ICALL(MEM32(0x3616F1B4)); /* 0x3604C2E1: call dword ptr [0x3616f1b4] */
   7048     RECOMP_FLAGS_IN();
   7049     /* test eax, eax */ /* 0x3604C2E7: test eax, eax */
   7050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7051     _cf = 0;
   7052     _flag_k = FK_TEST;
   7053     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604C2F8; /* 0x3604C2E9: jne 0x3604c2f8 */
   7054 L_3604C2EB:
   7055     PUSH32(esp, ebx); /* 0x3604C2EB: push ebx */
   7056     ecx = edi; /* 0x3604C2EC: mov ecx, edi */
   7057     RECOMP_ICALL(MEM32(0x3616F1AC)); /* 0x3604C2EE: call dword ptr [0x3616f1ac] */
   7058     RECOMP_FLAGS_IN();
   7059     /* test eax, eax */ /* 0x3604C2F4: test eax, eax */
   7060     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7061     _cf = 0;
   7062     _flag_k = FK_TEST;
   7063     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C33C; /* 0x3604C2F6: je 0x3604c33c */
   7064 L_3604C2F8:
   7065     ecx = MEM32(ebp + 0x8); /* 0x3604C2F8: mov ecx, dword ptr [ebp + 8] */
   7066     PUSH32(esp, 0); /* 0x3604C2FB: push 0 */
   7067     PUSH32(esp, 0x361C1A98u); /* 0x3604C2FD: push 0x361c1a98 */
   7068     PUSH32(esp, 0x361C1A38u); /* 0x3604C302: push 0x361c1a38 */
   7069     PUSH32(esp, 0); /* 0x3604C307: push 0 */
   7070     PUSH32(esp, ecx); /* 0x3604C309: push ecx */
   7071     RECOMP_ICALL(0x3615FD86u); /* 0x3604C30A: call 0x3615fd86 */ /* not lifted */
   7072     RECOMP_FLAGS_IN();
   7073     SET_LO8(edx, MEM8(eax + 0x4)); /* 0x3604C30F: mov dl, byte ptr [eax + 4] */
   7074     MEM8(esi + 0x4) = (uint8_t)(LO8(edx)); /* 0x3604C312: mov byte ptr [esi + 4], dl */
   7075     ecx = MEM32(eax + 0x8); /* 0x3604C315: mov ecx, dword ptr [eax + 8] */
   7076     MEM32(esi + 0x8) = ecx; /* 0x3604C318: mov dword ptr [esi + 8], ecx */
   7077     edx = MEM32(eax + 0xC); /* 0x3604C31B: mov edx, dword ptr [eax + 0xc] */
   7078     MEM32(esi + 0xC) = edx; /* 0x3604C31E: mov dword ptr [esi + 0xc], edx */
   7079     ecx = MEM32(eax + 0x10); /* 0x3604C321: mov ecx, dword ptr [eax + 0x10] */
   7080     MEM32(esi + 0x10) = ecx; /* 0x3604C324: mov dword ptr [esi + 0x10], ecx */
   7081     edx = MEM32(eax + 0x14); /* 0x3604C327: mov edx, dword ptr [eax + 0x14] */
   7082     MEM32(esi + 0x14) = edx; /* 0x3604C32A: mov dword ptr [esi + 0x14], edx */
   7083     ecx = MEM32(eax + 0x18); /* 0x3604C32D: mov ecx, dword ptr [eax + 0x18] */
   7084     MEM32(esi + 0x18) = ecx; /* 0x3604C330: mov dword ptr [esi + 0x18], ecx */
   7085     edx = MEM32(eax + 0x1C); /* 0x3604C333: mov edx, dword ptr [eax + 0x1c] */
   7086     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7087     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7088     esp = esp + 0x14u; /* 0x3604C336: add esp, 0x14 */
   7089     _flag_k = FK_ADD;
   7090     MEM32(esi + 0x1C) = edx; /* 0x3604C339: mov dword ptr [esi + 0x1c], edx */
   7091 L_3604C33C:
   7092     edi = POP32_VAL(esp); /* 0x3604C33C: pop edi */
   7093     esi = POP32_VAL(esp); /* 0x3604C33D: pop esi */
   7094     ebx = POP32_VAL(esp); /* 0x3604C33E: pop ebx */
   7095     ebp = POP32_VAL(esp); /* 0x3604C33F: pop ebp */
   7096     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604C340: ret 4 */
   7097     RECOMP_REGS_OUT();
   7098 }
   7099 
   7100 void sub_3604C350(void) {
   7101     int _fpu_cmp = 0;
   7102     uint32_t _cf = 0;
   7103     int _df = 1;
   7104     uint32_t _flag_k = FK_NONE;
   7105     uint32_t _flag_a = 0, _flag_b = 0;
   7106     uint32_t _itail_tgt = 0;
   7107     RECOMP_REGS_LOCALS
   7108     RECOMP_ENTER(0x3604C350u);
   7109 
   7110 L_3604C350:
   7111     PUSH32(esp, ebp); /* 0x3604C350: push ebp */
   7112     ebp = esp; /* 0x3604C351: mov ebp, esp */
   7113     PUSH32(esp, ebx); /* 0x3604C353: push ebx */
   7114     PUSH32(esp, esi); /* 0x3604C354: push esi */
   7115     esi = ecx; /* 0x3604C355: mov esi, ecx */
   7116     PUSH32(esp, edi); /* 0x3604C357: push edi */
   7117     PUSH32(esp, esi); /* 0x3604C358: push esi */
   7118     RECOMP_ICALL(0x3615FED0u); /* 0x3604C359: call 0x3615fed0 */ /* not lifted */
   7119     RECOMP_FLAGS_IN();
   7120     edi = eax; /* 0x3604C35E: mov edi, eax */
   7121     eax = MEM32(ebp + 0x8); /* 0x3604C360: mov eax, dword ptr [ebp + 8] */
   7122     PUSH32(esp, eax); /* 0x3604C363: push eax */
   7123     RECOMP_ICALL(0x3615FED0u); /* 0x3604C364: call 0x3615fed0 */ /* not lifted */
   7124     RECOMP_FLAGS_IN();
   7125     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7126     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7127     esp = esp + 8; /* 0x3604C369: add esp, 8 */
   7128     _flag_k = FK_ADD;
   7129     ebx = eax; /* 0x3604C36C: mov ebx, eax */
   7130     PUSH32(esp, ebx); /* 0x3604C36E: push ebx */
   7131     ecx = edi; /* 0x3604C36F: mov ecx, edi */
   7132     RECOMP_ICALL(MEM32(0x3616F1B4)); /* 0x3604C371: call dword ptr [0x3616f1b4] */
   7133     RECOMP_FLAGS_IN();
   7134     /* test eax, eax */ /* 0x3604C377: test eax, eax */
   7135     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7136     _cf = 0;
   7137     _flag_k = FK_TEST;
   7138     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604C388; /* 0x3604C379: jne 0x3604c388 */
   7139 L_3604C37B:
   7140     PUSH32(esp, ebx); /* 0x3604C37B: push ebx */
   7141     ecx = edi; /* 0x3604C37C: mov ecx, edi */
   7142     RECOMP_ICALL(MEM32(0x3616F1AC)); /* 0x3604C37E: call dword ptr [0x3616f1ac] */
   7143     RECOMP_FLAGS_IN();
   7144     /* test eax, eax */ /* 0x3604C384: test eax, eax */
   7145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7146     _cf = 0;
   7147     _flag_k = FK_TEST;
   7148     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C3D2; /* 0x3604C386: je 0x3604c3d2 */
   7149 L_3604C388:
   7150     ecx = MEM32(ebp + 0x8); /* 0x3604C388: mov ecx, dword ptr [ebp + 8] */
   7151     PUSH32(esp, 0); /* 0x3604C38B: push 0 */
   7152     PUSH32(esp, 0x361C1AB8u); /* 0x3604C38D: push 0x361c1ab8 */
   7153     PUSH32(esp, 0x361C1A38u); /* 0x3604C392: push 0x361c1a38 */
   7154     PUSH32(esp, 0); /* 0x3604C397: push 0 */
   7155     PUSH32(esp, ecx); /* 0x3604C399: push ecx */
   7156     RECOMP_ICALL(0x3615FD86u); /* 0x3604C39A: call 0x3615fd86 */ /* not lifted */
   7157     RECOMP_FLAGS_IN();
   7158     SET_LO8(edx, MEM8(eax + 0x4)); /* 0x3604C39F: mov dl, byte ptr [eax + 4] */
   7159     MEM8(esi + 0x4) = (uint8_t)(LO8(edx)); /* 0x3604C3A2: mov byte ptr [esi + 4], dl */
   7160     ecx = MEM32(eax + 0x8); /* 0x3604C3A5: mov ecx, dword ptr [eax + 8] */
   7161     MEM32(esi + 0x8) = ecx; /* 0x3604C3A8: mov dword ptr [esi + 8], ecx */
   7162     edx = MEM32(eax + 0xC); /* 0x3604C3AB: mov edx, dword ptr [eax + 0xc] */
   7163     MEM32(esi + 0xC) = edx; /* 0x3604C3AE: mov dword ptr [esi + 0xc], edx */
   7164     ecx = MEM32(eax + 0x10); /* 0x3604C3B1: mov ecx, dword ptr [eax + 0x10] */
   7165     MEM32(esi + 0x10) = ecx; /* 0x3604C3B4: mov dword ptr [esi + 0x10], ecx */
   7166     edx = MEM32(eax + 0x14); /* 0x3604C3B7: mov edx, dword ptr [eax + 0x14] */
   7167     MEM32(esi + 0x14) = edx; /* 0x3604C3BA: mov dword ptr [esi + 0x14], edx */
   7168     ecx = MEM32(eax + 0x18); /* 0x3604C3BD: mov ecx, dword ptr [eax + 0x18] */
   7169     MEM32(esi + 0x18) = ecx; /* 0x3604C3C0: mov dword ptr [esi + 0x18], ecx */
   7170     edx = MEM32(eax + 0x1C); /* 0x3604C3C3: mov edx, dword ptr [eax + 0x1c] */
   7171     MEM32(esi + 0x1C) = edx; /* 0x3604C3C6: mov dword ptr [esi + 0x1c], edx */
   7172     eax = MEM32(eax + 0x20); /* 0x3604C3C9: mov eax, dword ptr [eax + 0x20] */
   7173     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7174     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7175     esp = esp + 0x14u; /* 0x3604C3CC: add esp, 0x14 */
   7176     _flag_k = FK_ADD;
   7177     MEM32(esi + 0x20) = eax; /* 0x3604C3CF: mov dword ptr [esi + 0x20], eax */
   7178 L_3604C3D2:
   7179     edi = POP32_VAL(esp); /* 0x3604C3D2: pop edi */
   7180     esi = POP32_VAL(esp); /* 0x3604C3D3: pop esi */
   7181     ebx = POP32_VAL(esp); /* 0x3604C3D4: pop ebx */
   7182     ebp = POP32_VAL(esp); /* 0x3604C3D5: pop ebp */
   7183     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604C3D6: ret 4 */
   7184     RECOMP_REGS_OUT();
   7185 }
   7186 
   7187 void sub_3604C3E0(void) {
   7188     int _fpu_cmp = 0;
   7189     uint32_t _cf = 0;
   7190     int _df = 1;
   7191     uint32_t _flag_k = FK_NONE;
   7192     uint32_t _flag_a = 0, _flag_b = 0;
   7193     uint32_t _itail_tgt = 0;
   7194     RECOMP_REGS_LOCALS
   7195     RECOMP_ENTER(0x3604C3E0u);
   7196 
   7197 L_3604C3E0:
   7198     PUSH32(esp, ebp); /* 0x3604C3E0: push ebp */
   7199     ebp = esp; /* 0x3604C3E1: mov ebp, esp */
   7200     PUSH32(esp, esi); /* 0x3604C3E3: push esi */
   7201     esi = MEM32(ebp + 0x8); /* 0x3604C3E4: mov esi, dword ptr [ebp + 8] */
   7202     PUSH32(esp, edi); /* 0x3604C3E7: push edi */
   7203     edi = MEM32(ebp + 0xC); /* 0x3604C3E8: mov edi, dword ptr [ebp + 0xc] */
   7204     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7205     eax = 0; /* 0x3604C3EB: xor eax, eax */
   7206     _cf = 0;
   7207     _flag_k = FK_TEST;
   7208     SET_LO8(eax, MEM8(edi + 0x4)); /* 0x3604C3ED: mov al, byte ptr [edi + 4] */
   7209     ecx = esi; /* 0x3604C3F0: mov ecx, esi */
   7210     PUSH32(esp, eax); /* 0x3604C3F2: push eax */
   7211     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3604C3F3: call dword ptr [0x3616faec] */
   7212     RECOMP_FLAGS_IN();
   7213     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   7214     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7215     edi = edi + 8; /* 0x3604C3F9: add edi, 8 */
   7216     _flag_k = FK_ADD;
   7217     PUSH32(esp, edi); /* 0x3604C3FC: push edi */
   7218     PUSH32(esp, esi); /* 0x3604C3FD: push esi */
   7219     RECOMP_ICALL(0x3615B840u); /* 0x3604C3FE: call 0x3615b840 */ /* not lifted */
   7220     RECOMP_FLAGS_IN();
   7221     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7222     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7223     esp = esp + 8; /* 0x3604C403: add esp, 8 */
   7224     _flag_k = FK_ADD;
   7225     edi = POP32_VAL(esp); /* 0x3604C406: pop edi */
   7226     eax = esi; /* 0x3604C407: mov eax, esi */
   7227     esi = POP32_VAL(esp); /* 0x3604C409: pop esi */
   7228     ebp = POP32_VAL(esp); /* 0x3604C40A: pop ebp */
   7229     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C40B: ret  */
   7230     RECOMP_REGS_OUT();
   7231 }
   7232 
   7233 void sub_3604C410(void) {
   7234     int _fpu_cmp = 0;
   7235     uint32_t _cf = 0;
   7236     int _df = 1;
   7237     uint32_t _flag_k = FK_NONE;
   7238     uint32_t _flag_a = 0, _flag_b = 0;
   7239     uint32_t _itail_tgt = 0;
   7240     RECOMP_REGS_LOCALS
   7241     RECOMP_ENTER(0x3604C410u);
   7242 
   7243 L_3604C410:
   7244     PUSH32(esp, ebp); /* 0x3604C410: push ebp */
   7245     ebp = esp; /* 0x3604C411: mov ebp, esp */
   7246     PUSH32(esp, esi); /* 0x3604C413: push esi */
   7247     esi = MEM32(ebp + 0x8); /* 0x3604C414: mov esi, dword ptr [ebp + 8] */
   7248     PUSH32(esp, edi); /* 0x3604C417: push edi */
   7249     eax = ebp + 0x8; /* 0x3604C418: lea eax, [ebp + 8] */
   7250     PUSH32(esp, eax); /* 0x3604C41B: push eax */
   7251     ecx = esi; /* 0x3604C41C: mov ecx, esi */
   7252     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3604C41E: call dword ptr [0x3616fa8c] */
   7253     RECOMP_FLAGS_IN();
   7254     edi = MEM32(ebp + 0xC); /* 0x3604C424: mov edi, dword ptr [ebp + 0xc] */
   7255     ecx = edi + 0x8; /* 0x3604C427: lea ecx, [edi + 8] */
   7256     PUSH32(esp, ecx); /* 0x3604C42A: push ecx */
   7257     PUSH32(esp, esi); /* 0x3604C42B: push esi */
   7258     RECOMP_ICALL(0x3615B870u); /* 0x3604C42C: call 0x3615b870 */ /* not lifted */
   7259     RECOMP_FLAGS_IN();
   7260     eax = MEM32(ebp + 0x8); /* 0x3604C431: mov eax, dword ptr [ebp + 8] */
   7261     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7262     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7263     esp = esp + 8; /* 0x3604C434: add esp, 8 */
   7264     _flag_k = FK_ADD;
   7265     /* test eax, eax */ /* 0x3604C437: test eax, eax */
   7266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7267     _cf = 0;
   7268     _flag_k = FK_TEST;
   7269     SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3604C439: setne dl */
   7270     MEM8(edi + 0x4) = (uint8_t)(LO8(edx)); /* 0x3604C43C: mov byte ptr [edi + 4], dl */
   7271     edi = POP32_VAL(esp); /* 0x3604C43F: pop edi */
   7272     eax = esi; /* 0x3604C440: mov eax, esi */
   7273     esi = POP32_VAL(esp); /* 0x3604C442: pop esi */
   7274     ebp = POP32_VAL(esp); /* 0x3604C443: pop ebp */
   7275     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C444: ret  */
   7276     RECOMP_REGS_OUT();
   7277 }
   7278 
   7279 void sub_3604C450(void) {
   7280     int _fpu_cmp = 0;
   7281     uint32_t _cf = 0;
   7282     int _df = 1;
   7283     uint32_t _flag_k = FK_NONE;
   7284     uint32_t _flag_a = 0, _flag_b = 0;
   7285     uint32_t _itail_tgt = 0;
   7286     RECOMP_REGS_LOCALS
   7287     RECOMP_ENTER(0x3604C450u);
   7288 
   7289 L_3604C450:
   7290     PUSH32(esp, ebp); /* 0x3604C450: push ebp */
   7291     ebp = esp; /* 0x3604C451: mov ebp, esp */
   7292     PUSH32(esp, ebx); /* 0x3604C453: push ebx */
   7293     PUSH32(esp, esi); /* 0x3604C454: push esi */
   7294     PUSH32(esp, edi); /* 0x3604C455: push edi */
   7295     edi = MEM32(ebp + 0xC); /* 0x3604C456: mov edi, dword ptr [ebp + 0xc] */
   7296     PUSH32(esp, edi); /* 0x3604C459: push edi */
   7297     RECOMP_ICALL(0x3615FED0u); /* 0x3604C45A: call 0x3615fed0 */ /* not lifted */
   7298     RECOMP_FLAGS_IN();
   7299     ebx = MEM32(0x3616F1AC); /* 0x3604C45F: mov ebx, dword ptr [0x3616f1ac] */
   7300     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7301     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7302     esp = esp + 4; /* 0x3604C465: add esp, 4 */
   7303     _flag_k = FK_ADD;
   7304     esi = eax; /* 0x3604C468: mov esi, eax */
   7305     PUSH32(esp, 0x361C1A58u); /* 0x3604C46A: push 0x361c1a58 */
   7306     ecx = esi; /* 0x3604C46F: mov ecx, esi */
   7307     RECOMP_ICALL(ebx); /* 0x3604C471: call ebx */
   7308     RECOMP_FLAGS_IN();
   7309     /* test eax, eax */ /* 0x3604C473: test eax, eax */
   7310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7311     _cf = 0;
   7312     _flag_k = FK_TEST;
   7313     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C495; /* 0x3604C475: je 0x3604c495 */
   7314 L_3604C477:
   7315     esi = MEM32(ebp + 0x8); /* 0x3604C477: mov esi, dword ptr [ebp + 8] */
   7316     PUSH32(esp, edi); /* 0x3604C47A: push edi */
   7317     PUSH32(esp, esi); /* 0x3604C47B: push esi */
   7318     RECOMP_ICALL(0x3604C3E0u); /* 0x3604C47C: call 0x3604c3e0 */ /* not lifted */
   7319     RECOMP_FLAGS_IN();
   7320     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   7321     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7322     edi = edi + 0x14u; /* 0x3604C481: add edi, 0x14 */
   7323     _flag_k = FK_ADD;
   7324     PUSH32(esp, edi); /* 0x3604C484: push edi */
   7325     PUSH32(esp, esi); /* 0x3604C485: push esi */
   7326     RECOMP_ICALL(0x3615B840u); /* 0x3604C486: call 0x3615b840 */ /* not lifted */
   7327     RECOMP_FLAGS_IN();
   7328     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7330     esp = esp + 0x10u; /* 0x3604C48B: add esp, 0x10 */
   7331     _flag_k = FK_ADD;
   7332     edi = POP32_VAL(esp); /* 0x3604C48E: pop edi */
   7333     eax = esi; /* 0x3604C48F: mov eax, esi */
   7334     esi = POP32_VAL(esp); /* 0x3604C491: pop esi */
   7335     ebx = POP32_VAL(esp); /* 0x3604C492: pop ebx */
   7336     ebp = POP32_VAL(esp); /* 0x3604C493: pop ebp */
   7337     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C494: ret  */
   7338 L_3604C495:
   7339     PUSH32(esp, 0x361C1A78u); /* 0x3604C495: push 0x361c1a78 */
   7340     ecx = esi; /* 0x3604C49A: mov ecx, esi */
   7341     RECOMP_ICALL(ebx); /* 0x3604C49C: call ebx */
   7342     RECOMP_FLAGS_IN();
   7343     /* test eax, eax */ /* 0x3604C49E: test eax, eax */
   7344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7345     _cf = 0;
   7346     _flag_k = FK_TEST;
   7347     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C4B6; /* 0x3604C4A0: je 0x3604c4b6 */
   7348 L_3604C4A2:
   7349     esi = MEM32(ebp + 0x8); /* 0x3604C4A2: mov esi, dword ptr [ebp + 8] */
   7350     PUSH32(esp, edi); /* 0x3604C4A5: push edi */
   7351     PUSH32(esp, esi); /* 0x3604C4A6: push esi */
   7352     RECOMP_ICALL(0x3604C5B0u); /* 0x3604C4A7: call 0x3604c5b0 */ /* not lifted */
   7353     RECOMP_FLAGS_IN();
   7354     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7356     esp = esp + 8; /* 0x3604C4AC: add esp, 8 */
   7357     _flag_k = FK_ADD;
   7358     edi = POP32_VAL(esp); /* 0x3604C4AF: pop edi */
   7359     eax = esi; /* 0x3604C4B0: mov eax, esi */
   7360     esi = POP32_VAL(esp); /* 0x3604C4B2: pop esi */
   7361     ebx = POP32_VAL(esp); /* 0x3604C4B3: pop ebx */
   7362     ebp = POP32_VAL(esp); /* 0x3604C4B4: pop ebp */
   7363     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C4B5: ret  */
   7364 L_3604C4B6:
   7365     PUSH32(esp, 0x361C1A98u); /* 0x3604C4B6: push 0x361c1a98 */
   7366     ecx = esi; /* 0x3604C4BB: mov ecx, esi */
   7367     RECOMP_ICALL(ebx); /* 0x3604C4BD: call ebx */
   7368     RECOMP_FLAGS_IN();
   7369     /* test eax, eax */ /* 0x3604C4BF: test eax, eax */
   7370     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7371     _cf = 0;
   7372     _flag_k = FK_TEST;
   7373     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C4D7; /* 0x3604C4C1: je 0x3604c4d7 */
   7374 L_3604C4C3:
   7375     esi = MEM32(ebp + 0x8); /* 0x3604C4C3: mov esi, dword ptr [ebp + 8] */
   7376     PUSH32(esp, edi); /* 0x3604C4C6: push edi */
   7377     PUSH32(esp, esi); /* 0x3604C4C7: push esi */
   7378     RECOMP_ICALL(0x3604C740u); /* 0x3604C4C8: call 0x3604c740 */ /* not lifted */
   7379     RECOMP_FLAGS_IN();
   7380     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7381     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7382     esp = esp + 8; /* 0x3604C4CD: add esp, 8 */
   7383     _flag_k = FK_ADD;
   7384     edi = POP32_VAL(esp); /* 0x3604C4D0: pop edi */
   7385     eax = esi; /* 0x3604C4D1: mov eax, esi */
   7386     esi = POP32_VAL(esp); /* 0x3604C4D3: pop esi */
   7387     ebx = POP32_VAL(esp); /* 0x3604C4D4: pop ebx */
   7388     ebp = POP32_VAL(esp); /* 0x3604C4D5: pop ebp */
   7389     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C4D6: ret  */
   7390 L_3604C4D7:
   7391     PUSH32(esp, 0x361C1AB8u); /* 0x3604C4D7: push 0x361c1ab8 */
   7392     ecx = esi; /* 0x3604C4DC: mov ecx, esi */
   7393     RECOMP_ICALL(ebx); /* 0x3604C4DE: call ebx */
   7394     RECOMP_FLAGS_IN();
   7395     /* test eax, eax */ /* 0x3604C4E0: test eax, eax */
   7396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7397     _cf = 0;
   7398     _flag_k = FK_TEST;
   7399     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C4F8; /* 0x3604C4E2: je 0x3604c4f8 */
   7400 L_3604C4E4:
   7401     esi = MEM32(ebp + 0x8); /* 0x3604C4E4: mov esi, dword ptr [ebp + 8] */
   7402     PUSH32(esp, edi); /* 0x3604C4E7: push edi */
   7403     PUSH32(esp, esi); /* 0x3604C4E8: push esi */
   7404     RECOMP_ICALL(0x3604C890u); /* 0x3604C4E9: call 0x3604c890 */ /* not lifted */
   7405     RECOMP_FLAGS_IN();
   7406     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7407     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7408     esp = esp + 8; /* 0x3604C4EE: add esp, 8 */
   7409     _flag_k = FK_ADD;
   7410     edi = POP32_VAL(esp); /* 0x3604C4F1: pop edi */
   7411     eax = esi; /* 0x3604C4F2: mov eax, esi */
   7412     esi = POP32_VAL(esp); /* 0x3604C4F4: pop esi */
   7413     ebx = POP32_VAL(esp); /* 0x3604C4F5: pop ebx */
   7414     ebp = POP32_VAL(esp); /* 0x3604C4F6: pop ebp */
   7415     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C4F7: ret  */
   7416 L_3604C4F8:
   7417     eax = MEM32(ebp + 0x8); /* 0x3604C4F8: mov eax, dword ptr [ebp + 8] */
   7418     edi = POP32_VAL(esp); /* 0x3604C4FB: pop edi */
   7419     esi = POP32_VAL(esp); /* 0x3604C4FC: pop esi */
   7420     ebx = POP32_VAL(esp); /* 0x3604C4FD: pop ebx */
   7421     ebp = POP32_VAL(esp); /* 0x3604C4FE: pop ebp */
   7422     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C4FF: ret  */
   7423     RECOMP_REGS_OUT();
   7424 }
   7425 
   7426 void sub_3604C500(void) {
   7427     int _fpu_cmp = 0;
   7428     uint32_t _cf = 0;
   7429     int _df = 1;
   7430     uint32_t _flag_k = FK_NONE;
   7431     uint32_t _flag_a = 0, _flag_b = 0;
   7432     uint32_t _itail_tgt = 0;
   7433     RECOMP_REGS_LOCALS
   7434     RECOMP_ENTER(0x3604C500u);
   7435 
   7436 L_3604C500:
   7437     PUSH32(esp, ebp); /* 0x3604C500: push ebp */
   7438     ebp = esp; /* 0x3604C501: mov ebp, esp */
   7439     PUSH32(esp, ebx); /* 0x3604C503: push ebx */
   7440     PUSH32(esp, esi); /* 0x3604C504: push esi */
   7441     PUSH32(esp, edi); /* 0x3604C505: push edi */
   7442     edi = MEM32(ebp + 0xC); /* 0x3604C506: mov edi, dword ptr [ebp + 0xc] */
   7443     PUSH32(esp, edi); /* 0x3604C509: push edi */
   7444     RECOMP_ICALL(0x3615FED0u); /* 0x3604C50A: call 0x3615fed0 */ /* not lifted */
   7445     RECOMP_FLAGS_IN();
   7446     ebx = MEM32(0x3616F1AC); /* 0x3604C50F: mov ebx, dword ptr [0x3616f1ac] */
   7447     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7448     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7449     esp = esp + 4; /* 0x3604C515: add esp, 4 */
   7450     _flag_k = FK_ADD;
   7451     esi = eax; /* 0x3604C518: mov esi, eax */
   7452     PUSH32(esp, 0x361C1A58u); /* 0x3604C51A: push 0x361c1a58 */
   7453     ecx = esi; /* 0x3604C51F: mov ecx, esi */
   7454     RECOMP_ICALL(ebx); /* 0x3604C521: call ebx */
   7455     RECOMP_FLAGS_IN();
   7456     /* test eax, eax */ /* 0x3604C523: test eax, eax */
   7457     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7458     _cf = 0;
   7459     _flag_k = FK_TEST;
   7460     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C545; /* 0x3604C525: je 0x3604c545 */
   7461 L_3604C527:
   7462     esi = MEM32(ebp + 0x8); /* 0x3604C527: mov esi, dword ptr [ebp + 8] */
   7463     PUSH32(esp, edi); /* 0x3604C52A: push edi */
   7464     PUSH32(esp, esi); /* 0x3604C52B: push esi */
   7465     RECOMP_ICALL(0x3604C410u); /* 0x3604C52C: call 0x3604c410 */ /* not lifted */
   7466     RECOMP_FLAGS_IN();
   7467     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   7468     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7469     edi = edi + 0x14u; /* 0x3604C531: add edi, 0x14 */
   7470     _flag_k = FK_ADD;
   7471     PUSH32(esp, edi); /* 0x3604C534: push edi */
   7472     PUSH32(esp, esi); /* 0x3604C535: push esi */
   7473     RECOMP_ICALL(0x3615B870u); /* 0x3604C536: call 0x3615b870 */ /* not lifted */
   7474     RECOMP_FLAGS_IN();
   7475     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7476     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7477     esp = esp + 0x10u; /* 0x3604C53B: add esp, 0x10 */
   7478     _flag_k = FK_ADD;
   7479     edi = POP32_VAL(esp); /* 0x3604C53E: pop edi */
   7480     eax = esi; /* 0x3604C53F: mov eax, esi */
   7481     esi = POP32_VAL(esp); /* 0x3604C541: pop esi */
   7482     ebx = POP32_VAL(esp); /* 0x3604C542: pop ebx */
   7483     ebp = POP32_VAL(esp); /* 0x3604C543: pop ebp */
   7484     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C544: ret  */
   7485 L_3604C545:
   7486     PUSH32(esp, 0x361C1A78u); /* 0x3604C545: push 0x361c1a78 */
   7487     ecx = esi; /* 0x3604C54A: mov ecx, esi */
   7488     RECOMP_ICALL(ebx); /* 0x3604C54C: call ebx */
   7489     RECOMP_FLAGS_IN();
   7490     /* test eax, eax */ /* 0x3604C54E: test eax, eax */
   7491     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7492     _cf = 0;
   7493     _flag_k = FK_TEST;
   7494     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C566; /* 0x3604C550: je 0x3604c566 */
   7495 L_3604C552:
   7496     esi = MEM32(ebp + 0x8); /* 0x3604C552: mov esi, dword ptr [ebp + 8] */
   7497     PUSH32(esp, edi); /* 0x3604C555: push edi */
   7498     PUSH32(esp, esi); /* 0x3604C556: push esi */
   7499     RECOMP_ICALL(0x3604C680u); /* 0x3604C557: call 0x3604c680 */ /* not lifted */
   7500     RECOMP_FLAGS_IN();
   7501     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7502     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7503     esp = esp + 8; /* 0x3604C55C: add esp, 8 */
   7504     _flag_k = FK_ADD;
   7505     edi = POP32_VAL(esp); /* 0x3604C55F: pop edi */
   7506     eax = esi; /* 0x3604C560: mov eax, esi */
   7507     esi = POP32_VAL(esp); /* 0x3604C562: pop esi */
   7508     ebx = POP32_VAL(esp); /* 0x3604C563: pop ebx */
   7509     ebp = POP32_VAL(esp); /* 0x3604C564: pop ebp */
   7510     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C565: ret  */
   7511 L_3604C566:
   7512     PUSH32(esp, 0x361C1A98u); /* 0x3604C566: push 0x361c1a98 */
   7513     ecx = esi; /* 0x3604C56B: mov ecx, esi */
   7514     RECOMP_ICALL(ebx); /* 0x3604C56D: call ebx */
   7515     RECOMP_FLAGS_IN();
   7516     /* test eax, eax */ /* 0x3604C56F: test eax, eax */
   7517     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7518     _cf = 0;
   7519     _flag_k = FK_TEST;
   7520     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C587; /* 0x3604C571: je 0x3604c587 */
   7521 L_3604C573:
   7522     esi = MEM32(ebp + 0x8); /* 0x3604C573: mov esi, dword ptr [ebp + 8] */
   7523     PUSH32(esp, edi); /* 0x3604C576: push edi */
   7524     PUSH32(esp, esi); /* 0x3604C577: push esi */
   7525     RECOMP_ICALL(0x3604C7F0u); /* 0x3604C578: call 0x3604c7f0 */ /* not lifted */
   7526     RECOMP_FLAGS_IN();
   7527     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7528     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7529     esp = esp + 8; /* 0x3604C57D: add esp, 8 */
   7530     _flag_k = FK_ADD;
   7531     edi = POP32_VAL(esp); /* 0x3604C580: pop edi */
   7532     eax = esi; /* 0x3604C581: mov eax, esi */
   7533     esi = POP32_VAL(esp); /* 0x3604C583: pop esi */
   7534     ebx = POP32_VAL(esp); /* 0x3604C584: pop ebx */
   7535     ebp = POP32_VAL(esp); /* 0x3604C585: pop ebp */
   7536     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C586: ret  */
   7537 L_3604C587:
   7538     PUSH32(esp, 0x361C1AB8u); /* 0x3604C587: push 0x361c1ab8 */
   7539     ecx = esi; /* 0x3604C58C: mov ecx, esi */
   7540     RECOMP_ICALL(ebx); /* 0x3604C58E: call ebx */
   7541     RECOMP_FLAGS_IN();
   7542     /* test eax, eax */ /* 0x3604C590: test eax, eax */
   7543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7544     _cf = 0;
   7545     _flag_k = FK_TEST;
   7546     if (TEST_Z(_flag_a, _flag_b)) goto L_3604C5A8; /* 0x3604C592: je 0x3604c5a8 */
   7547 L_3604C594:
   7548     esi = MEM32(ebp + 0x8); /* 0x3604C594: mov esi, dword ptr [ebp + 8] */
   7549     PUSH32(esp, edi); /* 0x3604C597: push edi */
   7550     PUSH32(esp, esi); /* 0x3604C598: push esi */
   7551     RECOMP_ICALL(0x3604C940u); /* 0x3604C599: call 0x3604c940 */ /* not lifted */
   7552     RECOMP_FLAGS_IN();
   7553     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7554     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7555     esp = esp + 8; /* 0x3604C59E: add esp, 8 */
   7556     _flag_k = FK_ADD;
   7557     edi = POP32_VAL(esp); /* 0x3604C5A1: pop edi */
   7558     eax = esi; /* 0x3604C5A2: mov eax, esi */
   7559     esi = POP32_VAL(esp); /* 0x3604C5A4: pop esi */
   7560     ebx = POP32_VAL(esp); /* 0x3604C5A5: pop ebx */
   7561     ebp = POP32_VAL(esp); /* 0x3604C5A6: pop ebp */
   7562     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C5A7: ret  */
   7563 L_3604C5A8:
   7564     eax = MEM32(ebp + 0x8); /* 0x3604C5A8: mov eax, dword ptr [ebp + 8] */
   7565     edi = POP32_VAL(esp); /* 0x3604C5AB: pop edi */
   7566     esi = POP32_VAL(esp); /* 0x3604C5AC: pop esi */
   7567     ebx = POP32_VAL(esp); /* 0x3604C5AD: pop ebx */
   7568     ebp = POP32_VAL(esp); /* 0x3604C5AE: pop ebp */
   7569     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C5AF: ret  */
   7570     RECOMP_REGS_OUT();
   7571 }
   7572 
   7573 void sub_3604C5B0(void) {
   7574     int _fpu_cmp = 0;
   7575     uint32_t _cf = 0;
   7576     int _df = 1;
   7577     uint32_t _flag_k = FK_NONE;
   7578     uint32_t _flag_a = 0, _flag_b = 0;
   7579     uint32_t _itail_tgt = 0;
   7580     RECOMP_REGS_LOCALS
   7581     RECOMP_ENTER(0x3604C5B0u);
   7582 
   7583 L_3604C5B0:
   7584     PUSH32(esp, ebp); /* 0x3604C5B0: push ebp */
   7585     ebp = esp; /* 0x3604C5B1: mov ebp, esp */
   7586     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604C5B3: push -1 */
   7587     PUSH32(esp, 0x36164048u); /* 0x3604C5B5: push 0x36164048 */
   7588     eax = MEM32(FS_BASE + (0)); /* 0x3604C5BA: mov eax, dword ptr fs:[0] */
   7589     PUSH32(esp, eax); /* 0x3604C5C0: push eax */
   7590     MEM32(FS_BASE + (0)) = esp; /* 0x3604C5C1: mov dword ptr fs:[0], esp */
   7591     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   7592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7593     esp = esp - 0x1Cu; /* 0x3604C5C8: sub esp, 0x1c */
   7594     _flag_k = FK_CMP;
   7595     PUSH32(esp, ebx); /* 0x3604C5CB: push ebx */
   7596     PUSH32(esp, esi); /* 0x3604C5CC: push esi */
   7597     esi = MEM32(ebp + 0xC); /* 0x3604C5CD: mov esi, dword ptr [ebp + 0xc] */
   7598     SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3604C5D0: mov al, byte ptr [esi + 4] */
   7599     MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x3604C5D3: mov byte ptr [ebp - 0x24], al */
   7600     eax = esi + 0x8; /* 0x3604C5D6: lea eax, [esi + 8] */
   7601     ecx = ebp + (-0x20); /* 0x3604C5D9: lea ecx, [ebp - 0x20] */
   7602     /* cmp ecx, eax */ /* 0x3604C5DC: cmp ecx, eax */
   7603     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7605     _flag_k = FK_CMP;
   7606     PUSH32(esp, edi); /* 0x3604C5DE: push edi */
   7607     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604C5EC; /* 0x3604C5DF: je 0x3604c5ec */
   7608 L_3604C5E1:
   7609     edx = MEM32(eax); /* 0x3604C5E1: mov edx, dword ptr [eax] */
   7610     eax = MEM32(eax + 0x4); /* 0x3604C5E3: mov eax, dword ptr [eax + 4] */
   7611     MEM32(ebp + (-0x20)) = edx; /* 0x3604C5E6: mov dword ptr [ebp - 0x20], edx */
   7612     MEM32(ebp + (-0x1C)) = eax; /* 0x3604C5E9: mov dword ptr [ebp - 0x1c], eax */
   7613 L_3604C5EC:
   7614     ecx = MEM32(esi + 0x10); /* 0x3604C5EC: mov ecx, dword ptr [esi + 0x10] */
   7615     eax = esi + 0x14; /* 0x3604C5EF: lea eax, [esi + 0x14] */
   7616     edx = ebp + (-0x14); /* 0x3604C5F2: lea edx, [ebp - 0x14] */
   7617     /* cmp edx, eax */ /* 0x3604C5F5: cmp edx, eax */
   7618     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7620     _flag_k = FK_CMP;
   7621     MEM32(ebp + (-0x18)) = ecx; /* 0x3604C5F7: mov dword ptr [ebp - 0x18], ecx */
   7622     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604C607; /* 0x3604C5FA: je 0x3604c607 */
   7623 L_3604C5FC:
   7624     ecx = MEM32(eax); /* 0x3604C5FC: mov ecx, dword ptr [eax] */
   7625     edx = MEM32(eax + 0x4); /* 0x3604C5FE: mov edx, dword ptr [eax + 4] */
   7626     MEM32(ebp + (-0x14)) = ecx; /* 0x3604C601: mov dword ptr [ebp - 0x14], ecx */
   7627     MEM32(ebp + (-0x10)) = edx; /* 0x3604C604: mov dword ptr [ebp - 0x10], edx */
   7628 L_3604C607:
   7629     MEM32(ebp + (-0x28)) = 0x36171098u; /* 0x3604C607: mov dword ptr [ebp - 0x28], 0x36171098 */
   7630     edi = MEM32(ebp + 0x8); /* 0x3604C60E: mov edi, dword ptr [ebp + 8] */
   7631     eax = ebp + (-0x28); /* 0x3604C611: lea eax, [ebp - 0x28] */
   7632     PUSH32(esp, eax); /* 0x3604C614: push eax */
   7633     PUSH32(esp, edi); /* 0x3604C615: push edi */
   7634     MEM32(ebp + (-0x4)) = 0; /* 0x3604C616: mov dword ptr [ebp - 4], 0 */
   7635     RECOMP_ICALL(0x3604C450u); /* 0x3604C61D: call 0x3604c450 */ /* not lifted */
   7636     RECOMP_FLAGS_IN();
   7637     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7638     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7639     esp = esp + 8; /* 0x3604C622: add esp, 8 */
   7640     _flag_k = FK_ADD;
   7641     ecx = ebp + (-0x28); /* 0x3604C625: lea ecx, [ebp - 0x28] */
   7642     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604C628: mov dword ptr [ebp - 4], 0xffffffff */
   7643     RECOMP_ICALL(0x3604BED0u); /* 0x3604C62F: call 0x3604bed0 */ /* not lifted */
   7644     RECOMP_FLAGS_IN();
   7645     ecx = MEM32(esi + 0x24); /* 0x3604C634: mov ecx, dword ptr [esi + 0x24] */
   7646     edx = MEM32(esi + 0x20); /* 0x3604C637: mov edx, dword ptr [esi + 0x20] */
   7647     eax = MEM32(esi + 0x1C); /* 0x3604C63A: mov eax, dword ptr [esi + 0x1c] */
   7648     ebx = MEM32(0x3616FAD4); /* 0x3604C63D: mov ebx, dword ptr [0x3616fad4] */
   7649     PUSH32(esp, ecx); /* 0x3604C643: push ecx */
   7650     PUSH32(esp, edx); /* 0x3604C644: push edx */
   7651     PUSH32(esp, eax); /* 0x3604C645: push eax */
   7652     ecx = edi; /* 0x3604C646: mov ecx, edi */
   7653     RECOMP_ICALL(ebx); /* 0x3604C648: call ebx */
   7654     RECOMP_FLAGS_IN();
   7655     ecx = eax; /* 0x3604C64A: mov ecx, eax */
   7656     RECOMP_ICALL(ebx); /* 0x3604C64C: call ebx */
   7657     RECOMP_FLAGS_IN();
   7658     ecx = eax; /* 0x3604C64E: mov ecx, eax */
   7659     RECOMP_ICALL(ebx); /* 0x3604C650: call ebx */
   7660     RECOMP_FLAGS_IN();
   7661     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u);
   7662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7663     esi = esi + 0x28u; /* 0x3604C652: add esi, 0x28 */
   7664     _flag_k = FK_ADD;
   7665     PUSH32(esp, esi); /* 0x3604C655: push esi */
   7666     PUSH32(esp, edi); /* 0x3604C656: push edi */
   7667     RECOMP_ICALL(0x3615B840u); /* 0x3604C657: call 0x3615b840 */ /* not lifted */
   7668     RECOMP_FLAGS_IN();
   7669     ecx = MEM32(ebp + (-0xC)); /* 0x3604C65C: mov ecx, dword ptr [ebp - 0xc] */
   7670     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7671     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7672     esp = esp + 8; /* 0x3604C65F: add esp, 8 */
   7673     _flag_k = FK_ADD;
   7674     eax = edi; /* 0x3604C662: mov eax, edi */
   7675     edi = POP32_VAL(esp); /* 0x3604C664: pop edi */
   7676     esi = POP32_VAL(esp); /* 0x3604C665: pop esi */
   7677     ebx = POP32_VAL(esp); /* 0x3604C666: pop ebx */
   7678     MEM32(FS_BASE + (0)) = ecx; /* 0x3604C667: mov dword ptr fs:[0], ecx */
   7679     esp = ebp; /* 0x3604C66E: mov esp, ebp */
   7680     ebp = POP32_VAL(esp); /* 0x3604C670: pop ebp */
   7681     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C671: ret  */
   7682     RECOMP_REGS_OUT();
   7683 }
   7684 
   7685 void sub_3604C680(void) {
   7686     int _fpu_cmp = 0;
   7687     uint32_t _cf = 0;
   7688     int _df = 1;
   7689     uint32_t _flag_k = FK_NONE;
   7690     uint32_t _flag_a = 0, _flag_b = 0;
   7691     uint32_t _itail_tgt = 0;
   7692     RECOMP_REGS_LOCALS
   7693     RECOMP_ENTER(0x3604C680u);
   7694 
   7695 L_3604C680:
   7696     PUSH32(esp, ebp); /* 0x3604C680: push ebp */
   7697     ebp = esp; /* 0x3604C681: mov ebp, esp */
   7698     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604C683: push -1 */
   7699     PUSH32(esp, 0x36164068u); /* 0x3604C685: push 0x36164068 */
   7700     eax = MEM32(FS_BASE + (0)); /* 0x3604C68A: mov eax, dword ptr fs:[0] */
   7701     PUSH32(esp, eax); /* 0x3604C690: push eax */
   7702     MEM32(FS_BASE + (0)) = esp; /* 0x3604C691: mov dword ptr fs:[0], esp */
   7703     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   7704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7705     esp = esp - 0x1Cu; /* 0x3604C698: sub esp, 0x1c */
   7706     _flag_k = FK_CMP;
   7707     PUSH32(esp, ebx); /* 0x3604C69B: push ebx */
   7708     PUSH32(esp, esi); /* 0x3604C69C: push esi */
   7709     PUSH32(esp, edi); /* 0x3604C69D: push edi */
   7710     ecx = ebp + (-0x28); /* 0x3604C69E: lea ecx, [ebp - 0x28] */
   7711     RECOMP_ICALL(0x3604BE20u); /* 0x3604C6A1: call 0x3604be20 */ /* not lifted */
   7712     RECOMP_FLAGS_IN();
   7713     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7714     eax = 0; /* 0x3604C6A6: xor eax, eax */
   7715     _cf = 0;
   7716     _flag_k = FK_TEST;
   7717     MEM32(ebp + (-0x14)) = eax; /* 0x3604C6A8: mov dword ptr [ebp - 0x14], eax */
   7718     MEM32(ebp + (-0x10)) = eax; /* 0x3604C6AB: mov dword ptr [ebp - 0x10], eax */
   7719     MEM32(ebp + (-0x28)) = 0x36171098u; /* 0x3604C6AE: mov dword ptr [ebp - 0x28], 0x36171098 */
   7720     edi = MEM32(ebp + 0x8); /* 0x3604C6B5: mov edi, dword ptr [ebp + 8] */
   7721     MEM32(ebp + (-0x4)) = eax; /* 0x3604C6B8: mov dword ptr [ebp - 4], eax */
   7722     eax = ebp + (-0x28); /* 0x3604C6BB: lea eax, [ebp - 0x28] */
   7723     PUSH32(esp, eax); /* 0x3604C6BE: push eax */
   7724     PUSH32(esp, edi); /* 0x3604C6BF: push edi */
   7725     RECOMP_ICALL(0x3604C500u); /* 0x3604C6C0: call 0x3604c500 */ /* not lifted */
   7726     RECOMP_FLAGS_IN();
   7727     esi = MEM32(ebp + 0xC); /* 0x3604C6C5: mov esi, dword ptr [ebp + 0xc] */
   7728     edx = MEM32(ebp + (-0x20)); /* 0x3604C6C8: mov edx, dword ptr [ebp - 0x20] */
   7729     eax = MEM32(ebp + (-0x1C)); /* 0x3604C6CB: mov eax, dword ptr [ebp - 0x1c] */
   7730     SET_LO8(ecx, MEM8(ebp + (-0x24))); /* 0x3604C6CE: mov cl, byte ptr [ebp - 0x24] */
   7731     ebx = MEM32(0x3616FAD0); /* 0x3604C6D1: mov ebx, dword ptr [0x3616fad0] */
   7732     MEM32(esi + 0x8) = edx; /* 0x3604C6D7: mov dword ptr [esi + 8], edx */
   7733     edx = MEM32(ebp + (-0x14)); /* 0x3604C6DA: mov edx, dword ptr [ebp - 0x14] */
   7734     MEM32(esi + 0xC) = eax; /* 0x3604C6DD: mov dword ptr [esi + 0xc], eax */
   7735     eax = MEM32(ebp + (-0x10)); /* 0x3604C6E0: mov eax, dword ptr [ebp - 0x10] */
   7736     MEM8(esi + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3604C6E3: mov byte ptr [esi + 4], cl */
   7737     ecx = MEM32(ebp + (-0x18)); /* 0x3604C6E6: mov ecx, dword ptr [ebp - 0x18] */
   7738     MEM32(esi + 0x14) = edx; /* 0x3604C6E9: mov dword ptr [esi + 0x14], edx */
   7739     MEM32(esi + 0x18) = eax; /* 0x3604C6EC: mov dword ptr [esi + 0x18], eax */
   7740     eax = esi + 0x1C; /* 0x3604C6EF: lea eax, [esi + 0x1c] */
   7741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7742     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7743     esp = esp + 8; /* 0x3604C6F2: add esp, 8 */
   7744     _flag_k = FK_ADD;
   7745     MEM32(esi + 0x10) = ecx; /* 0x3604C6F5: mov dword ptr [esi + 0x10], ecx */
   7746     ecx = eax + 0x8; /* 0x3604C6F8: lea ecx, [eax + 8] */
   7747     PUSH32(esp, ecx); /* 0x3604C6FB: push ecx */
   7748     edx = eax + 0x4; /* 0x3604C6FC: lea edx, [eax + 4] */
   7749     PUSH32(esp, edx); /* 0x3604C6FF: push edx */
   7750     PUSH32(esp, eax); /* 0x3604C700: push eax */
   7751     ecx = edi; /* 0x3604C701: mov ecx, edi */
   7752     RECOMP_ICALL(ebx); /* 0x3604C703: call ebx */
   7753     RECOMP_FLAGS_IN();
   7754     ecx = eax; /* 0x3604C705: mov ecx, eax */
   7755     RECOMP_ICALL(ebx); /* 0x3604C707: call ebx */
   7756     RECOMP_FLAGS_IN();
   7757     ecx = eax; /* 0x3604C709: mov ecx, eax */
   7758     RECOMP_ICALL(ebx); /* 0x3604C70B: call ebx */
   7759     RECOMP_FLAGS_IN();
   7760     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u);
   7761     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7762     esi = esi + 0x28u; /* 0x3604C70D: add esi, 0x28 */
   7763     _flag_k = FK_ADD;
   7764     PUSH32(esp, esi); /* 0x3604C710: push esi */
   7765     PUSH32(esp, edi); /* 0x3604C711: push edi */
   7766     RECOMP_ICALL(0x3615B870u); /* 0x3604C712: call 0x3615b870 */ /* not lifted */
   7767     RECOMP_FLAGS_IN();
   7768     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7769     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7770     esp = esp + 8; /* 0x3604C717: add esp, 8 */
   7771     _flag_k = FK_ADD;
   7772     ecx = ebp + (-0x28); /* 0x3604C71A: lea ecx, [ebp - 0x28] */
   7773     RECOMP_ICALL(0x3604BED0u); /* 0x3604C71D: call 0x3604bed0 */ /* not lifted */
   7774     RECOMP_FLAGS_IN();
   7775     ecx = MEM32(ebp + (-0xC)); /* 0x3604C722: mov ecx, dword ptr [ebp - 0xc] */
   7776     eax = edi; /* 0x3604C725: mov eax, edi */
   7777     edi = POP32_VAL(esp); /* 0x3604C727: pop edi */
   7778     esi = POP32_VAL(esp); /* 0x3604C728: pop esi */
   7779     ebx = POP32_VAL(esp); /* 0x3604C729: pop ebx */
   7780     MEM32(FS_BASE + (0)) = ecx; /* 0x3604C72A: mov dword ptr fs:[0], ecx */
   7781     esp = ebp; /* 0x3604C731: mov esp, ebp */
   7782     ebp = POP32_VAL(esp); /* 0x3604C733: pop ebp */
   7783     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C734: ret  */
   7784     RECOMP_REGS_OUT();
   7785 }
   7786 
   7787 void sub_3604C740(void) {
   7788     int _fpu_cmp = 0;
   7789     uint32_t _cf = 0;
   7790     int _df = 1;
   7791     uint32_t _flag_k = FK_NONE;
   7792     uint32_t _flag_a = 0, _flag_b = 0;
   7793     uint32_t _itail_tgt = 0;
   7794     RECOMP_REGS_LOCALS
   7795     RECOMP_ENTER(0x3604C740u);
   7796 
   7797 L_3604C740:
   7798     PUSH32(esp, ebp); /* 0x3604C740: push ebp */
   7799     ebp = esp; /* 0x3604C741: mov ebp, esp */
   7800     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604C743: push -1 */
   7801     PUSH32(esp, 0x36164088u); /* 0x3604C745: push 0x36164088 */
   7802     eax = MEM32(FS_BASE + (0)); /* 0x3604C74A: mov eax, dword ptr fs:[0] */
   7803     PUSH32(esp, eax); /* 0x3604C750: push eax */
   7804     MEM32(FS_BASE + (0)) = esp; /* 0x3604C751: mov dword ptr fs:[0], esp */
   7805     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   7806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7807     esp = esp - 0x1Cu; /* 0x3604C758: sub esp, 0x1c */
   7808     _flag_k = FK_CMP;
   7809     PUSH32(esp, esi); /* 0x3604C75B: push esi */
   7810     esi = MEM32(ebp + 0xC); /* 0x3604C75C: mov esi, dword ptr [ebp + 0xc] */
   7811     SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3604C75F: mov al, byte ptr [esi + 4] */
   7812     MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x3604C762: mov byte ptr [ebp - 0x24], al */
   7813     eax = esi + 0x8; /* 0x3604C765: lea eax, [esi + 8] */
   7814     ecx = ebp + (-0x20); /* 0x3604C768: lea ecx, [ebp - 0x20] */
   7815     /* cmp ecx, eax */ /* 0x3604C76B: cmp ecx, eax */
   7816     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7818     _flag_k = FK_CMP;
   7819     PUSH32(esp, edi); /* 0x3604C76D: push edi */
   7820     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604C77B; /* 0x3604C76E: je 0x3604c77b */
   7821 L_3604C770:
   7822     edx = MEM32(eax); /* 0x3604C770: mov edx, dword ptr [eax] */
   7823     eax = MEM32(eax + 0x4); /* 0x3604C772: mov eax, dword ptr [eax + 4] */
   7824     MEM32(ebp + (-0x20)) = edx; /* 0x3604C775: mov dword ptr [ebp - 0x20], edx */
   7825     MEM32(ebp + (-0x1C)) = eax; /* 0x3604C778: mov dword ptr [ebp - 0x1c], eax */
   7826 L_3604C77B:
   7827     ecx = MEM32(esi + 0x10); /* 0x3604C77B: mov ecx, dword ptr [esi + 0x10] */
   7828     eax = esi + 0x14; /* 0x3604C77E: lea eax, [esi + 0x14] */
   7829     edx = ebp + (-0x14); /* 0x3604C781: lea edx, [ebp - 0x14] */
   7830     /* cmp edx, eax */ /* 0x3604C784: cmp edx, eax */
   7831     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7832     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7833     _flag_k = FK_CMP;
   7834     MEM32(ebp + (-0x18)) = ecx; /* 0x3604C786: mov dword ptr [ebp - 0x18], ecx */
   7835     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604C796; /* 0x3604C789: je 0x3604c796 */
   7836 L_3604C78B:
   7837     ecx = MEM32(eax); /* 0x3604C78B: mov ecx, dword ptr [eax] */
   7838     edx = MEM32(eax + 0x4); /* 0x3604C78D: mov edx, dword ptr [eax + 4] */
   7839     MEM32(ebp + (-0x14)) = ecx; /* 0x3604C790: mov dword ptr [ebp - 0x14], ecx */
   7840     MEM32(ebp + (-0x10)) = edx; /* 0x3604C793: mov dword ptr [ebp - 0x10], edx */
   7841 L_3604C796:
   7842     MEM32(ebp + (-0x28)) = 0x36171098u; /* 0x3604C796: mov dword ptr [ebp - 0x28], 0x36171098 */
   7843     edi = MEM32(ebp + 0x8); /* 0x3604C79D: mov edi, dword ptr [ebp + 8] */
   7844     eax = ebp + (-0x28); /* 0x3604C7A0: lea eax, [ebp - 0x28] */
   7845     PUSH32(esp, eax); /* 0x3604C7A3: push eax */
   7846     PUSH32(esp, edi); /* 0x3604C7A4: push edi */
   7847     MEM32(ebp + (-0x4)) = 0; /* 0x3604C7A5: mov dword ptr [ebp - 4], 0 */
   7848     RECOMP_ICALL(0x3604C450u); /* 0x3604C7AC: call 0x3604c450 */ /* not lifted */
   7849     RECOMP_FLAGS_IN();
   7850     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7851     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7852     esp = esp + 8; /* 0x3604C7B1: add esp, 8 */
   7853     _flag_k = FK_ADD;
   7854     ecx = ebp + (-0x28); /* 0x3604C7B4: lea ecx, [ebp - 0x28] */
   7855     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3604C7B7: mov dword ptr [ebp - 4], 0xffffffff */
   7856     RECOMP_ICALL(0x3604BED0u); /* 0x3604C7BE: call 0x3604bed0 */ /* not lifted */
   7857     RECOMP_FLAGS_IN();
   7858     ecx = MEM32(esi + 0x1C); /* 0x3604C7C3: mov ecx, dword ptr [esi + 0x1c] */
   7859     PUSH32(esp, ecx); /* 0x3604C7C6: push ecx */
   7860     ecx = edi; /* 0x3604C7C7: mov ecx, edi */
   7861     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3604C7C9: call dword ptr [0x3616faec] */
   7862     RECOMP_FLAGS_IN();
   7863     ecx = MEM32(ebp + (-0xC)); /* 0x3604C7CF: mov ecx, dword ptr [ebp - 0xc] */
   7864     eax = edi; /* 0x3604C7D2: mov eax, edi */
   7865     edi = POP32_VAL(esp); /* 0x3604C7D4: pop edi */
   7866     esi = POP32_VAL(esp); /* 0x3604C7D5: pop esi */
   7867     MEM32(FS_BASE + (0)) = ecx; /* 0x3604C7D6: mov dword ptr fs:[0], ecx */
   7868     esp = ebp; /* 0x3604C7DD: mov esp, ebp */
   7869     ebp = POP32_VAL(esp); /* 0x3604C7DF: pop ebp */
   7870     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604C7E0: ret  */
   7871     RECOMP_REGS_OUT();
   7872 }